@aikaara/chat-sdk 1.5.13 → 1.5.15
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-Bz3x34El.mjs → AikaaraLinkButton-CgGY2vIV.mjs} +1 -1
- package/dist/{AikaaraLinkButton-CuJK7ray.cjs → AikaaraLinkButton-DJA-MEH4.cjs} +1 -1
- package/dist/{MountTenant-DZJ4y1Ek.mjs → MountTenant-B5vjjcZ4.mjs} +551 -547
- package/dist/{MountTenant-BLLdcdt6.cjs → MountTenant-D_KsmvuR.cjs} +29 -29
- package/dist/cdn/aikaara-chat.iife.js +83 -83
- package/dist/headless.cjs +1 -1
- package/dist/headless.mjs +2 -2
- package/dist/index.cjs +1 -1
- package/dist/index.mjs +2 -2
- package/dist/ui.cjs +1 -1
- package/dist/ui.mjs +1 -1
- package/package.json +1 -1
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
class
|
|
1
|
+
class Gl {
|
|
2
2
|
identifier;
|
|
3
3
|
callbacks = {};
|
|
4
4
|
sendFn;
|
|
@@ -63,7 +63,7 @@ class Po {
|
|
|
63
63
|
this.ws && (this.ws.onclose = null, this.ws.close(), this.ws = null), this.subscriptions.forEach((e) => e._notifyDisconnected()), this.subscriptions.clear();
|
|
64
64
|
}
|
|
65
65
|
subscribe(e) {
|
|
66
|
-
const t = JSON.stringify(e), r = new
|
|
66
|
+
const t = JSON.stringify(e), r = new Gl(t, (o) => {
|
|
67
67
|
this.send({
|
|
68
68
|
command: "message",
|
|
69
69
|
identifier: t,
|
|
@@ -163,8 +163,8 @@ class ta {
|
|
|
163
163
|
this.handlers.clear();
|
|
164
164
|
}
|
|
165
165
|
}
|
|
166
|
-
const
|
|
167
|
-
class
|
|
166
|
+
const Yl = 1e3, Jl = 10, Ql = 400, Xl = 600, Oo = "#6366f1", Zl = 12, ec = "system-ui, -apple-system, sans-serif", Mo = "Type a message...", tc = "bottom-right", rc = "light", nc = { x: 20, y: 20 }, tn = "aikaara_conversation_id";
|
|
167
|
+
class ic extends ta {
|
|
168
168
|
client;
|
|
169
169
|
config;
|
|
170
170
|
state = "disconnected";
|
|
@@ -221,13 +221,13 @@ class nc extends ta {
|
|
|
221
221
|
this.state !== e && (this.state = e, this.emit("connection:state", e));
|
|
222
222
|
}
|
|
223
223
|
scheduleReconnect() {
|
|
224
|
-
const e = this.config.maxReconnectAttempts ??
|
|
224
|
+
const e = this.config.maxReconnectAttempts ?? Jl;
|
|
225
225
|
if (this.reconnectAttempt >= e) {
|
|
226
226
|
this.emit("error", new Error("Max reconnection attempts reached"));
|
|
227
227
|
return;
|
|
228
228
|
}
|
|
229
229
|
this.setState("reconnecting");
|
|
230
|
-
const r = (this.config.reconnectInterval ??
|
|
230
|
+
const r = (this.config.reconnectInterval ?? Yl) * Math.pow(2, this.reconnectAttempt);
|
|
231
231
|
this.reconnectAttempt++, this.reconnectTimer = setTimeout(async () => {
|
|
232
232
|
try {
|
|
233
233
|
const o = this.buildWsUrl(this.config.baseUrl, this.config.userToken);
|
|
@@ -247,7 +247,7 @@ class nc extends ta {
|
|
|
247
247
|
return `${e.replace(/^http/, "ws")}/cable?token=${t}`;
|
|
248
248
|
}
|
|
249
249
|
}
|
|
250
|
-
class
|
|
250
|
+
class oc {
|
|
251
251
|
baseUrl;
|
|
252
252
|
apiKey;
|
|
253
253
|
authToken;
|
|
@@ -354,7 +354,7 @@ class ic {
|
|
|
354
354
|
return r && (n.body = JSON.stringify(r)), fetch(e, n);
|
|
355
355
|
}
|
|
356
356
|
}
|
|
357
|
-
class
|
|
357
|
+
class sc {
|
|
358
358
|
_messages = [];
|
|
359
359
|
optimisticCounter = 0;
|
|
360
360
|
get messages() {
|
|
@@ -512,7 +512,7 @@ function ra(i) {
|
|
|
512
512
|
const r = e.payload?.elements?.[0]?.action?.url;
|
|
513
513
|
return typeof r == "string" ? r : void 0;
|
|
514
514
|
}
|
|
515
|
-
class
|
|
515
|
+
class ac {
|
|
516
516
|
_conversationId;
|
|
517
517
|
persist;
|
|
518
518
|
constructor(e, t = !0) {
|
|
@@ -546,23 +546,23 @@ class sc {
|
|
|
546
546
|
}
|
|
547
547
|
}
|
|
548
548
|
}
|
|
549
|
-
var po = Object.defineProperty,
|
|
549
|
+
var po = Object.defineProperty, lc = Object.getOwnPropertyDescriptor, cc = Object.getOwnPropertyNames, uc = Object.prototype.hasOwnProperty, Je = (i, e) => () => (i && (e = i(i = 0)), e), pe = (i, e) => () => (e || i((e = { exports: {} }).exports, e), e.exports), Gt = (i, e) => {
|
|
550
550
|
for (var t in e) po(i, t, { get: e[t], enumerable: !0 });
|
|
551
|
-
},
|
|
552
|
-
if (e && typeof e == "object" || typeof e == "function") for (let o of
|
|
551
|
+
}, dc = (i, e, t, r) => {
|
|
552
|
+
if (e && typeof e == "object" || typeof e == "function") for (let o of cc(e)) !uc.call(i, o) && o !== t && po(i, o, { get: () => e[o], enumerable: !(r = lc(e, o)) || r.enumerable });
|
|
553
553
|
return i;
|
|
554
|
-
}, Re = (i) =>
|
|
554
|
+
}, Re = (i) => dc(po({}, "__esModule", { value: !0 }), i), le = Je(() => {
|
|
555
555
|
}), Ne = {};
|
|
556
556
|
Gt(Ne, { _debugEnd: () => Kn, _debugProcess: () => Vn, _events: () => li, _eventsCount: () => ci, _exiting: () => Mn, _fatalExceptions: () => Hn, _getActiveHandles: () => ca, _getActiveRequests: () => la, _kill: () => Nn, _linkedBinding: () => sa, _maxListeners: () => ai, _preload_modules: () => oi, _rawDebug: () => Cn, _startProfilerIdleNotifier: () => Gn, _stopProfilerIdleNotifier: () => Yn, _tickCallback: () => zn, abort: () => Zn, addListener: () => ui, allowedNodeEnvironmentFlags: () => $n, arch: () => mn, argv: () => yn, argv0: () => ii, assert: () => ua, binding: () => xn, browser: () => Tn, chdir: () => An, config: () => Ln, cpuUsage: () => nr, cwd: () => En, debugPort: () => ni, default: () => go, dlopen: () => aa, domain: () => On, emit: () => mi, emitWarning: () => kn, env: () => bn, execArgv: () => vn, execPath: () => ri, exit: () => Bn, features: () => qn, hasUncaughtExceptionCaptureCallback: () => da, hrtime: () => vr, kill: () => Dn, listeners: () => fa, memoryUsage: () => Un, moduleLoadList: () => Pn, nextTick: () => ia, off: () => hi, on: () => dt, once: () => di, openStdin: () => Fn, pid: () => ei, platform: () => gn, ppid: () => ti, prependListener: () => gi, prependOnceListener: () => bi, reallyExit: () => Rn, release: () => In, removeAllListeners: () => pi, removeListener: () => fi, resourceUsage: () => jn, setSourceMapsEnabled: () => si, setUncaughtExceptionCaptureCallback: () => Wn, stderr: () => Qn, stdin: () => Xn, stdout: () => Jn, title: () => pn, umask: () => Sn, uptime: () => ha, version: () => wn, versions: () => _n });
|
|
557
557
|
function mo(i) {
|
|
558
558
|
throw new Error("Node.js process " + i + " is not supported by JSPM core outside of Node.js");
|
|
559
559
|
}
|
|
560
|
-
function
|
|
560
|
+
function hc() {
|
|
561
561
|
!Nt || !Lt || (Nt = !1, Lt.length ? lt = Lt.concat(lt) : ar = -1, lt.length && na());
|
|
562
562
|
}
|
|
563
563
|
function na() {
|
|
564
564
|
if (!Nt) {
|
|
565
|
-
var i = setTimeout(
|
|
565
|
+
var i = setTimeout(hc, 0);
|
|
566
566
|
Nt = !0;
|
|
567
567
|
for (var e = lt.length; e; ) {
|
|
568
568
|
for (Lt = lt, lt = []; ++ar < e; ) Lt && Lt[ar].run();
|
|
@@ -612,7 +612,7 @@ function dt() {
|
|
|
612
612
|
function fa(i) {
|
|
613
613
|
return [];
|
|
614
614
|
}
|
|
615
|
-
var lt, Nt, Lt, ar, pn, mn, gn, bn, yn, vn, wn, _n, kn, xn, Sn, En, An, In, Tn, Cn, Pn, On, Mn, Ln, Rn, Nn, nr, jn, Un, Dn, Bn, Fn, $n, qn, Hn, Wn, zn, Vn, Kn, Gn, Yn, Jn, Qn, Xn, Zn, ei, ti, ri, ni, ii, oi, si, ft, rn, wr, ai, li, ci, ui, di, hi, fi, pi, mi, gi, bi, go,
|
|
615
|
+
var lt, Nt, Lt, ar, pn, mn, gn, bn, yn, vn, wn, _n, kn, xn, Sn, En, An, In, Tn, Cn, Pn, On, Mn, Ln, Rn, Nn, nr, jn, Un, Dn, Bn, Fn, $n, qn, Hn, Wn, zn, Vn, Kn, Gn, Yn, Jn, Qn, Xn, Zn, ei, ti, ri, ni, ii, oi, si, ft, rn, wr, ai, li, ci, ui, di, hi, fi, pi, mi, gi, bi, go, fc = Je(() => {
|
|
616
616
|
le(), ue(), ce(), lt = [], Nt = !1, ar = -1, oa.prototype.run = function() {
|
|
617
617
|
this.fun.apply(null, this.array);
|
|
618
618
|
}, pn = "browser", mn = "x64", gn = "browser", bn = { PATH: "/usr/bin", LANG: typeof navigator < "u" ? navigator.language + ".UTF-8" : void 0, PWD: "/", HOME: "/home", TMP: "/tmp" }, yn = ["/usr/bin/node"], vn = [], wn = "v16.8.0", _n = {}, kn = function(i, e) {
|
|
@@ -631,9 +631,9 @@ var lt, Nt, Lt, ar, pn, mn, gn, bn, yn, vn, wn, _n, kn, xn, Sn, En, An, In, Tn,
|
|
|
631
631
|
return typeof BigInt > "u" ? e[0] * wr + e[1] : BigInt(e[0] * wr) + BigInt(e[1]);
|
|
632
632
|
}, ai = 10, li = {}, ci = 0, ui = dt, di = dt, hi = dt, fi = dt, pi = dt, mi = He, gi = dt, bi = dt, go = { version: wn, versions: _n, arch: mn, platform: gn, browser: Tn, release: In, _rawDebug: Cn, moduleLoadList: Pn, binding: xn, _linkedBinding: sa, _events: li, _eventsCount: ci, _maxListeners: ai, on: dt, addListener: ui, once: di, off: hi, removeListener: fi, removeAllListeners: pi, emit: mi, prependListener: gi, prependOnceListener: bi, listeners: fa, domain: On, _exiting: Mn, config: Ln, dlopen: aa, uptime: ha, _getActiveRequests: la, _getActiveHandles: ca, reallyExit: Rn, _kill: Nn, cpuUsage: nr, resourceUsage: jn, memoryUsage: Un, kill: Dn, exit: Bn, openStdin: Fn, allowedNodeEnvironmentFlags: $n, assert: ua, features: qn, _fatalExceptions: Hn, setUncaughtExceptionCaptureCallback: Wn, hasUncaughtExceptionCaptureCallback: da, emitWarning: kn, nextTick: ia, _tickCallback: zn, _debugProcess: Vn, _debugEnd: Kn, _startProfilerIdleNotifier: Gn, _stopProfilerIdleNotifier: Yn, stdout: Jn, stdin: Xn, stderr: Qn, abort: Zn, umask: Sn, chdir: An, cwd: En, env: bn, title: pn, argv: yn, execArgv: vn, pid: ei, ppid: ti, execPath: ri, debugPort: ni, hrtime: vr, argv0: ii, _preload_modules: oi, setSourceMapsEnabled: si };
|
|
633
633
|
}), ce = Je(() => {
|
|
634
|
-
|
|
634
|
+
fc();
|
|
635
635
|
});
|
|
636
|
-
function
|
|
636
|
+
function pc() {
|
|
637
637
|
if (yi) return qt;
|
|
638
638
|
yi = !0, qt.byteLength = a, qt.toByteArray = c, qt.fromByteArray = p;
|
|
639
639
|
for (var i = [], e = [], t = typeof Uint8Array < "u" ? Uint8Array : Array, r = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/", o = 0, n = r.length; o < n; ++o) i[o] = r[o], e[r.charCodeAt(o)] = o;
|
|
@@ -671,7 +671,7 @@ function fc() {
|
|
|
671
671
|
}
|
|
672
672
|
return qt;
|
|
673
673
|
}
|
|
674
|
-
function
|
|
674
|
+
function mc() {
|
|
675
675
|
return vi ? ir : (vi = !0, ir.read = function(i, e, t, r, o) {
|
|
676
676
|
var n, s, a = o * 8 - r - 1, l = (1 << a) - 1, c = l >> 1, u = -7, d = t ? o - 1 : 0, p = t ? -1 : 1, g = i[e + d];
|
|
677
677
|
for (d += p, n = g & (1 << -u) - 1, g >>= -u, u += a; u > 0; n = n * 256 + i[e + d], d += p, u -= 8) ;
|
|
@@ -689,10 +689,10 @@ function pc() {
|
|
|
689
689
|
i[t + g - f] |= b * 128;
|
|
690
690
|
}, ir);
|
|
691
691
|
}
|
|
692
|
-
function
|
|
692
|
+
function gc() {
|
|
693
693
|
if (wi) return Et;
|
|
694
694
|
wi = !0;
|
|
695
|
-
let i =
|
|
695
|
+
let i = pc(), e = mc(), t = typeof Symbol == "function" && typeof Symbol.for == "function" ? /* @__PURE__ */ Symbol.for("nodejs.util.inspect.custom") : null;
|
|
696
696
|
Et.Buffer = s, Et.SlowBuffer = w, Et.INSPECT_MAX_BYTES = 50;
|
|
697
697
|
let r = 2147483647;
|
|
698
698
|
Et.kMaxLength = r, s.TYPED_ARRAY_SUPPORT = o(), !s.TYPED_ARRAY_SUPPORT && typeof console < "u" && typeof console.error == "function" && console.error("This browser lacks typed array (Uint8Array) support which is required by `buffer` v5.x. Use `buffer` v4.x if you require old browser support.");
|
|
@@ -1447,12 +1447,12 @@ function mc() {
|
|
|
1447
1447
|
}
|
|
1448
1448
|
return Et;
|
|
1449
1449
|
}
|
|
1450
|
-
var qt, yi, ir, vi, Et, wi,
|
|
1450
|
+
var qt, yi, ir, vi, Et, wi, bc = Je(() => {
|
|
1451
1451
|
le(), ue(), ce(), qt = {}, yi = !1, ir = {}, vi = !1, Et = {}, wi = !1;
|
|
1452
1452
|
}), Fe = {};
|
|
1453
1453
|
Gt(Fe, { Buffer: () => zr, INSPECT_MAX_BYTES: () => pa, default: () => ht, kMaxLength: () => ma });
|
|
1454
1454
|
var ht, zr, pa, ma, $e = Je(() => {
|
|
1455
|
-
le(), ue(), ce(),
|
|
1455
|
+
le(), ue(), ce(), bc(), ht = gc(), ht.Buffer, ht.SlowBuffer, ht.INSPECT_MAX_BYTES, ht.kMaxLength, zr = ht.Buffer, pa = ht.INSPECT_MAX_BYTES, ma = ht.kMaxLength;
|
|
1456
1456
|
}), ue = Je(() => {
|
|
1457
1457
|
$e();
|
|
1458
1458
|
}), De = pe((i, e) => {
|
|
@@ -1699,7 +1699,7 @@ var ht, zr, pa, ma, $e = Je(() => {
|
|
|
1699
1699
|
e.exports = t, e.exports.AbortSignal = r, e.exports.default = t;
|
|
1700
1700
|
}), Tt = {};
|
|
1701
1701
|
Gt(Tt, { EventEmitter: () => ba, default: () => Ht, defaultMaxListeners: () => ya, init: () => va, listenerCount: () => wa, on: () => _a, once: () => ka });
|
|
1702
|
-
function
|
|
1702
|
+
function yc() {
|
|
1703
1703
|
if (_i) return or;
|
|
1704
1704
|
_i = !0;
|
|
1705
1705
|
var i = typeof Reflect == "object" ? Reflect : null, e = i && typeof i.apply == "function" ? i.apply : function(x, v, S) {
|
|
@@ -1871,7 +1871,7 @@ function bc() {
|
|
|
1871
1871
|
return or;
|
|
1872
1872
|
}
|
|
1873
1873
|
var or, _i, Ht, ba, ya, va, wa, _a, ka, Ut = Je(() => {
|
|
1874
|
-
le(), ue(), ce(), or = {}, _i = !1, Ht =
|
|
1874
|
+
le(), ue(), ce(), or = {}, _i = !1, Ht = yc(), Ht.once, Ht.once = function(i, e) {
|
|
1875
1875
|
return new Promise((t, r) => {
|
|
1876
1876
|
function o(...s) {
|
|
1877
1877
|
n !== void 0 && i.removeListener("error", n), t(s);
|
|
@@ -2507,7 +2507,7 @@ var or, _i, Ht, ba, ya, va, wa, _a, ka, Ut = Je(() => {
|
|
|
2507
2507
|
}
|
|
2508
2508
|
return g;
|
|
2509
2509
|
};
|
|
2510
|
-
}),
|
|
2510
|
+
}), vc = pe((i, e) => {
|
|
2511
2511
|
le(), ue(), ce();
|
|
2512
2512
|
var { StringPrototypeSlice: t, SymbolIterator: r, TypedArrayPrototypeSet: o, Uint8Array: n } = De(), { Buffer: s } = ($e(), Re(Fe)), { inspect: a } = Ye();
|
|
2513
2513
|
e.exports = class {
|
|
@@ -2610,7 +2610,7 @@ var or, _i, Ht, ba, ya, va, wa, _a, ka, Ut = Je(() => {
|
|
|
2610
2610
|
return c(p.objectMode);
|
|
2611
2611
|
}
|
|
2612
2612
|
e.exports = { getHighWaterMark: d, getDefaultHighWaterMark: c, setDefaultHighWaterMark: u };
|
|
2613
|
-
}),
|
|
2613
|
+
}), wc = pe((i, e) => {
|
|
2614
2614
|
le(), ue(), ce();
|
|
2615
2615
|
var t = ($e(), Re(Fe)), r = t.Buffer;
|
|
2616
2616
|
function o(s, a) {
|
|
@@ -2634,9 +2634,9 @@ var or, _i, Ht, ba, ya, va, wa, _a, ka, Ut = Je(() => {
|
|
|
2634
2634
|
if (typeof s != "number") throw new TypeError("Argument must be a number");
|
|
2635
2635
|
return t.SlowBuffer(s);
|
|
2636
2636
|
};
|
|
2637
|
-
}),
|
|
2637
|
+
}), _c = pe((i) => {
|
|
2638
2638
|
le(), ue(), ce();
|
|
2639
|
-
var e =
|
|
2639
|
+
var e = wc().Buffer, t = e.isEncoding || function(m) {
|
|
2640
2640
|
switch (m = "" + m, m && m.toLowerCase()) {
|
|
2641
2641
|
case "hex":
|
|
2642
2642
|
case "utf8":
|
|
@@ -2835,7 +2835,7 @@ var or, _i, Ht, ba, ya, va, wa, _a, ka, Ut = Je(() => {
|
|
|
2835
2835
|
e.exports = ae, ae.ReadableState = ve;
|
|
2836
2836
|
var { EventEmitter: b } = (Ut(), Re(Tt)), { Stream: y, prependListener: w } = bo(), { Buffer: m } = ($e(), Re(Fe)), { addAbortSignal: _ } = Gr(), x = Ct(), v = Ye().debuglog("stream", (C) => {
|
|
2837
2837
|
v = C;
|
|
2838
|
-
}), S =
|
|
2838
|
+
}), S = vc(), E = Yt(), { getHighWaterMark: I, getDefaultHighWaterMark: P } = Yr(), { aggregateTwoErrors: O, codes: { ERR_INVALID_ARG_TYPE: B, ERR_METHOD_NOT_IMPLEMENTED: T, ERR_OUT_OF_RANGE: $, ERR_STREAM_PUSH_AFTER_EOF: M, ERR_STREAM_UNSHIFT_AFTER_END_EVENT: U }, AbortError: oe } = Ke(), { validateObject: Y } = dr(), W = f("kPaused"), { StringDecoder: ee } = _c(), D = xa();
|
|
2839
2839
|
c(ae.prototype, y.prototype), c(ae, y);
|
|
2840
2840
|
var X = () => {
|
|
2841
2841
|
}, { errorOrDestroy: L } = E, J = 1, ge = 2, re = 4, we = 8, K = 16, j = 32, ne = 64, z = 128, G = 256, Q = 512, be = 1024, se = 2048, R = 4096, q = 8192, te = 16384, he = 32768, fe = 65536, ye = 1 << 17, H = 1 << 18;
|
|
@@ -3415,7 +3415,7 @@ var or, _i, Ht, ba, ya, va, wa, _a, ka, Ut = Je(() => {
|
|
|
3415
3415
|
}, Y.toWeb = function(R) {
|
|
3416
3416
|
return se().newWritableStreamFromStreamWritable(R);
|
|
3417
3417
|
};
|
|
3418
|
-
}),
|
|
3418
|
+
}), kc = pe((i, e) => {
|
|
3419
3419
|
le(), ue(), ce();
|
|
3420
3420
|
var t = Dt(), r = ($e(), Re(Fe)), { isReadable: o, isWritable: n, isIterable: s, isNodeStream: a, isReadableNodeStream: l, isWritableNodeStream: c, isDuplexNodeStream: u, isReadableStream: d, isWritableStream: p } = bt(), g = Ct(), { AbortError: f, codes: { ERR_INVALID_ARG_TYPE: b, ERR_INVALID_RETURN_VALUE: y } } = Ke(), { destroyer: w } = Yt(), m = mt(), _ = Jr(), x = yo(), { createDeferredPromise: v } = Ye(), S = xa(), E = globalThis.Blob || r.Blob, I = typeof E < "u" ? function(M) {
|
|
3421
3421
|
return M instanceof E;
|
|
@@ -3572,7 +3572,7 @@ var or, _i, Ht, ba, ya, va, wa, _a, ka, Ut = Je(() => {
|
|
|
3572
3572
|
};
|
|
3573
3573
|
var d;
|
|
3574
3574
|
l.from = function(p) {
|
|
3575
|
-
return d || (d =
|
|
3575
|
+
return d || (d = kc()), d(p, "body");
|
|
3576
3576
|
};
|
|
3577
3577
|
}), Sa = pe((i, e) => {
|
|
3578
3578
|
le(), ue(), ce();
|
|
@@ -3892,7 +3892,7 @@ var or, _i, Ht, ba, ya, va, wa, _a, ka, Ut = Je(() => {
|
|
|
3892
3892
|
!T && v !== null && (T = new p()), x = null, m = null, _ = null, v === null ? $(T) : (v = $, n(P) && o(P, T));
|
|
3893
3893
|
}, S;
|
|
3894
3894
|
};
|
|
3895
|
-
}),
|
|
3895
|
+
}), xc = pe((i, e) => {
|
|
3896
3896
|
le(), ue(), ce();
|
|
3897
3897
|
var t = globalThis.AbortController || cr().AbortController, { codes: { ERR_INVALID_ARG_VALUE: r, ERR_INVALID_ARG_TYPE: o, ERR_MISSING_ARGS: n, ERR_OUT_OF_RANGE: s }, AbortError: a } = Ke(), { validateAbortSignal: l, validateInteger: c, validateObject: u } = dr(), d = De().Symbol("kWeak"), p = De().Symbol("kResistStopPropagation"), { finished: g } = Ct(), f = Aa(), { addAbortSignalNoValidate: b } = Gr(), { isWritable: y, isNodeStream: w } = bt(), { deprecate: m } = Ye(), { ArrayPrototypePush: _, Boolean: x, MathFloor: v, Number: S, NumberIsNaN: E, Promise: I, PromiseReject: P, PromiseResolve: O, PromisePrototypeThen: B, Symbol: T } = De(), $ = T("kEmpty"), M = T("kEof");
|
|
3898
3898
|
function U(z, G) {
|
|
@@ -4089,7 +4089,7 @@ var or, _i, Ht, ba, ya, va, wa, _a, ka, Ut = Je(() => {
|
|
|
4089
4089
|
e.exports = { finished: l, pipeline: c };
|
|
4090
4090
|
}), Ta = pe((i, e) => {
|
|
4091
4091
|
le(), ue(), ce();
|
|
4092
|
-
var { Buffer: t } = ($e(), Re(Fe)), { ObjectDefineProperty: r, ObjectKeys: o, ReflectApply: n } = De(), { promisify: { custom: s } } = Ye(), { streamReturningOperators: a, promiseReturningOperators: l } =
|
|
4092
|
+
var { Buffer: t } = ($e(), Re(Fe)), { ObjectDefineProperty: r, ObjectKeys: o, ReflectApply: n } = De(), { promisify: { custom: s } } = Ye(), { streamReturningOperators: a, promiseReturningOperators: l } = xc(), { codes: { ERR_ILLEGAL_CONSTRUCTOR: c } } = Ke(), u = Aa(), { setDefaultHighWaterMark: d, getDefaultHighWaterMark: p } = Yr(), { pipeline: g } = vo(), { destroyer: f } = Yt(), b = Ct(), y = Ia(), w = bt(), m = e.exports = bo().Stream;
|
|
4093
4093
|
m.isDestroyed = w.isDestroyed, m.isDisturbed = w.isDisturbed, m.isErrored = w.isErrored, m.isReadable = w.isReadable, m.isWritable = w.isWritable, m.Readable = Jr();
|
|
4094
4094
|
for (let x of o(a)) {
|
|
4095
4095
|
let v = function(...E) {
|
|
@@ -4124,7 +4124,7 @@ var or, _i, Ht, ba, ya, va, wa, _a, ka, Ut = Je(() => {
|
|
|
4124
4124
|
e.exports = t.Readable, e.exports._uint8ArrayToBuffer = t._uint8ArrayToBuffer, e.exports._isUint8Array = t._isUint8Array, e.exports.isDisturbed = t.isDisturbed, e.exports.isErrored = t.isErrored, e.exports.isReadable = t.isReadable, e.exports.Readable = t.Readable, e.exports.Writable = t.Writable, e.exports.Duplex = t.Duplex, e.exports.Transform = t.Transform, e.exports.PassThrough = t.PassThrough, e.exports.addAbortSignal = t.addAbortSignal, e.exports.finished = t.finished, e.exports.destroy = t.destroy, e.exports.destroy = o, e.exports.pipeline = t.pipeline, e.exports.compose = t.compose, Object.defineProperty(t, "promises", { configurable: !0, enumerable: !0, get() {
|
|
4125
4125
|
return r;
|
|
4126
4126
|
} }), e.exports.Stream = t.Stream, e.exports.default = e.exports;
|
|
4127
|
-
}),
|
|
4127
|
+
}), Sc = pe((i, e) => {
|
|
4128
4128
|
le(), ue(), ce(), typeof Object.create == "function" ? e.exports = function(t, r) {
|
|
4129
4129
|
r && (t.super_ = r, t.prototype = Object.create(r.prototype, { constructor: { value: t, enumerable: !1, writable: !0, configurable: !0 } }));
|
|
4130
4130
|
} : e.exports = function(t, r) {
|
|
@@ -4135,7 +4135,7 @@ var or, _i, Ht, ba, ya, va, wa, _a, ka, Ut = Je(() => {
|
|
|
4135
4135
|
o.prototype = r.prototype, t.prototype = new o(), t.prototype.constructor = t;
|
|
4136
4136
|
}
|
|
4137
4137
|
};
|
|
4138
|
-
}),
|
|
4138
|
+
}), Ec = pe((i, e) => {
|
|
4139
4139
|
le(), ue(), ce();
|
|
4140
4140
|
var { Buffer: t } = ($e(), Re(Fe)), r = /* @__PURE__ */ Symbol.for("BufferList");
|
|
4141
4141
|
function o(n) {
|
|
@@ -4259,9 +4259,9 @@ var or, _i, Ht, ba, ya, va, wa, _a, ka, Ut = Je(() => {
|
|
|
4259
4259
|
}, o.isBufferList = function(n) {
|
|
4260
4260
|
return n != null && n[r];
|
|
4261
4261
|
}, e.exports = o;
|
|
4262
|
-
}),
|
|
4262
|
+
}), Ac = pe((i, e) => {
|
|
4263
4263
|
le(), ue(), ce();
|
|
4264
|
-
var t = Bt().Duplex, r =
|
|
4264
|
+
var t = Bt().Duplex, r = Sc(), o = Ec();
|
|
4265
4265
|
function n(s) {
|
|
4266
4266
|
if (!(this instanceof n)) return new n(s);
|
|
4267
4267
|
if (typeof s == "function") {
|
|
@@ -4291,7 +4291,7 @@ var or, _i, Ht, ba, ya, va, wa, _a, ka, Ut = Je(() => {
|
|
|
4291
4291
|
}, n.prototype._isBufferList = function(s) {
|
|
4292
4292
|
return s instanceof n || s instanceof o || n.isBufferList(s);
|
|
4293
4293
|
}, n.isBufferList = o.isBufferList, e.exports = n, e.exports.BufferListStream = n, e.exports.BufferList = o;
|
|
4294
|
-
}),
|
|
4294
|
+
}), Ic = pe((i, e) => {
|
|
4295
4295
|
le(), ue(), ce();
|
|
4296
4296
|
var t = class {
|
|
4297
4297
|
constructor() {
|
|
@@ -4325,7 +4325,7 @@ var or, _i, Ht, ba, ya, va, wa, _a, ka, Ut = Je(() => {
|
|
|
4325
4325
|
})));
|
|
4326
4326
|
}
|
|
4327
4327
|
t.PUBLISH_HEADER = o("publish"), t.SUBSCRIBE_HEADER = o("subscribe"), t.SUBSCRIBE_OPTIONS_QOS_MASK = 3, t.SUBSCRIBE_OPTIONS_NL_MASK = 1, t.SUBSCRIBE_OPTIONS_NL_SHIFT = 2, t.SUBSCRIBE_OPTIONS_RAP_MASK = 1, t.SUBSCRIBE_OPTIONS_RAP_SHIFT = 3, t.SUBSCRIBE_OPTIONS_RH_MASK = 3, t.SUBSCRIBE_OPTIONS_RH_SHIFT = 4, t.SUBSCRIBE_OPTIONS_RH = [0, 16, 32], t.SUBSCRIBE_OPTIONS_NL = 4, t.SUBSCRIBE_OPTIONS_RAP = 8, t.SUBSCRIBE_OPTIONS_QOS = [0, 1, 2], t.UNSUBSCRIBE_HEADER = o("unsubscribe"), t.ACKS = { unsuback: o("unsuback"), puback: o("puback"), pubcomp: o("pubcomp"), pubrel: o("pubrel"), pubrec: o("pubrec") }, t.SUBACK_HEADER = r.from([t.codes.suback << t.CMD_SHIFT]), t.VERSION3 = r.from([3]), t.VERSION4 = r.from([4]), t.VERSION5 = r.from([5]), t.VERSION131 = r.from([131]), t.VERSION132 = r.from([132]), t.QOS = [0, 1, 2].map((n) => r.from([n])), t.EMPTY = { pingreq: r.from([t.codes.pingreq << 4, 0]), pingresp: r.from([t.codes.pingresp << 4, 0]), disconnect: r.from([t.codes.disconnect << 4, 0]) }, t.MQTT5_PUBACK_PUBREC_CODES = { 0: "Success", 16: "No matching subscribers", 128: "Unspecified error", 131: "Implementation specific error", 135: "Not authorized", 144: "Topic Name invalid", 145: "Packet identifier in use", 151: "Quota exceeded", 153: "Payload format invalid" }, t.MQTT5_PUBREL_PUBCOMP_CODES = { 0: "Success", 146: "Packet Identifier not found" }, t.MQTT5_SUBACK_CODES = { 0: "Granted QoS 0", 1: "Granted QoS 1", 2: "Granted QoS 2", 128: "Unspecified error", 131: "Implementation specific error", 135: "Not authorized", 143: "Topic Filter invalid", 145: "Packet Identifier in use", 151: "Quota exceeded", 158: "Shared Subscriptions not supported", 161: "Subscription Identifiers not supported", 162: "Wildcard Subscriptions not supported" }, t.MQTT5_UNSUBACK_CODES = { 0: "Success", 17: "No subscription existed", 128: "Unspecified error", 131: "Implementation specific error", 135: "Not authorized", 143: "Topic Filter invalid", 145: "Packet Identifier in use" }, t.MQTT5_DISCONNECT_CODES = { 0: "Normal disconnection", 4: "Disconnect with Will Message", 128: "Unspecified error", 129: "Malformed Packet", 130: "Protocol Error", 131: "Implementation specific error", 135: "Not authorized", 137: "Server busy", 139: "Server shutting down", 141: "Keep Alive timeout", 142: "Session taken over", 143: "Topic Filter invalid", 144: "Topic Name invalid", 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" }, t.MQTT5_AUTH_CODES = { 0: "Success", 24: "Continue authentication", 25: "Re-authenticate" };
|
|
4328
|
-
}),
|
|
4328
|
+
}), Tc = pe((i, e) => {
|
|
4329
4329
|
le(), ue(), ce();
|
|
4330
4330
|
var t = 1e3, r = t * 60, o = r * 60, n = o * 24, s = n * 7, a = n * 365.25;
|
|
4331
4331
|
e.exports = function(p, g) {
|
|
@@ -4397,10 +4397,10 @@ var or, _i, Ht, ba, ya, va, wa, _a, ka, Ut = Je(() => {
|
|
|
4397
4397
|
var y = g >= f * 1.5;
|
|
4398
4398
|
return Math.round(p / f) + " " + b + (y ? "s" : "");
|
|
4399
4399
|
}
|
|
4400
|
-
}),
|
|
4400
|
+
}), Cc = pe((i, e) => {
|
|
4401
4401
|
le(), ue(), ce();
|
|
4402
4402
|
function t(r) {
|
|
4403
|
-
n.debug = n, n.default = n, n.coerce = d, n.disable = c, n.enable = a, n.enabled = u, n.humanize =
|
|
4403
|
+
n.debug = n, n.default = n, n.coerce = d, n.disable = c, n.enable = a, n.enabled = u, n.humanize = Tc(), n.destroy = p, Object.keys(r).forEach((g) => {
|
|
4404
4404
|
n[g] = r[g];
|
|
4405
4405
|
}), n.names = [], n.skips = [], n.formatters = {};
|
|
4406
4406
|
function o(g) {
|
|
@@ -4510,7 +4510,7 @@ var or, _i, Ht, ba, ya, va, wa, _a, ka, Ut = Je(() => {
|
|
|
4510
4510
|
} catch {
|
|
4511
4511
|
}
|
|
4512
4512
|
}
|
|
4513
|
-
e.exports =
|
|
4513
|
+
e.exports = Cc()(i);
|
|
4514
4514
|
var { formatters: a } = e.exports;
|
|
4515
4515
|
a.j = function(l) {
|
|
4516
4516
|
try {
|
|
@@ -4519,9 +4519,9 @@ var or, _i, Ht, ba, ya, va, wa, _a, ka, Ut = Je(() => {
|
|
|
4519
4519
|
return "[UnexpectedJSONParseError]: " + c.message;
|
|
4520
4520
|
}
|
|
4521
4521
|
};
|
|
4522
|
-
}),
|
|
4522
|
+
}), Pc = pe((i, e) => {
|
|
4523
4523
|
le(), ue(), ce();
|
|
4524
|
-
var t =
|
|
4524
|
+
var t = Ac(), { EventEmitter: r } = (Ut(), Re(Tt)), o = Ic(), n = Ca(), s = gt()("mqtt-packet:parser"), a = class ki extends r {
|
|
4525
4525
|
constructor() {
|
|
4526
4526
|
super(), this.parser = this.constructor.parser;
|
|
4527
4527
|
}
|
|
@@ -4872,7 +4872,7 @@ var or, _i, Ht, ba, ya, va, wa, _a, ka, Ut = Je(() => {
|
|
|
4872
4872
|
}
|
|
4873
4873
|
};
|
|
4874
4874
|
e.exports = a;
|
|
4875
|
-
}),
|
|
4875
|
+
}), Oc = pe((i, e) => {
|
|
4876
4876
|
le(), ue(), ce();
|
|
4877
4877
|
var { Buffer: t } = ($e(), Re(Fe)), r = 65536, o = {}, n = t.isBuffer(t.from([1, 2]).subarray(0, 1));
|
|
4878
4878
|
function s(u) {
|
|
@@ -4894,7 +4894,7 @@ var or, _i, Ht, ba, ya, va, wa, _a, ka, Ut = Je(() => {
|
|
|
4894
4894
|
return d.writeUInt32BE(u, 0), d;
|
|
4895
4895
|
}
|
|
4896
4896
|
e.exports = { cache: o, generateCache: a, generateNumber: s, genBufVariableByteInt: l, generate4ByteBuffer: c };
|
|
4897
|
-
}),
|
|
4897
|
+
}), Mc = pe((i, e) => {
|
|
4898
4898
|
le(), ue(), ce(), typeof Ne > "u" || !Ne.version || Ne.version.indexOf("v0.") === 0 || Ne.version.indexOf("v1.") === 0 && Ne.version.indexOf("v1.8.") !== 0 ? e.exports = { nextTick: t } : e.exports = Ne;
|
|
4899
4899
|
function t(r, o, n, s) {
|
|
4900
4900
|
if (typeof r != "function") throw new TypeError('"callback" argument must be a function');
|
|
@@ -4924,7 +4924,7 @@ var or, _i, Ht, ba, ya, va, wa, _a, ka, Ut = Je(() => {
|
|
|
4924
4924
|
}
|
|
4925
4925
|
}), Pa = pe((i, e) => {
|
|
4926
4926
|
le(), ue(), ce();
|
|
4927
|
-
var t = Ca(), { Buffer: r } = ($e(), Re(Fe)), o = r.allocUnsafe(0), n = r.from([0]), s =
|
|
4927
|
+
var t = Ca(), { Buffer: r } = ($e(), Re(Fe)), o = r.allocUnsafe(0), n = r.from([0]), s = Oc(), a = Mc().nextTick, l = gt()("mqtt-packet:writeToStream"), c = s.cache, u = s.generateNumber, d = s.generateCache, p = s.genBufVariableByteInt, g = s.generate4ByteBuffer, f = Y, b = !0;
|
|
4928
4928
|
function y(K, j, ne) {
|
|
4929
4929
|
switch (l("generate called"), j.cork && (j.cork(), a(w, j)), b && (b = !1, d()), l("generate: packet.cmd: %s", K.cmd), K.cmd) {
|
|
4930
4930
|
case "connect":
|
|
@@ -5305,7 +5305,7 @@ var or, _i, Ht, ba, ya, va, wa, _a, ka, Ut = Je(() => {
|
|
|
5305
5305
|
return typeof K == "string" || K instanceof r;
|
|
5306
5306
|
}
|
|
5307
5307
|
e.exports = y;
|
|
5308
|
-
}),
|
|
5308
|
+
}), Lc = pe((i, e) => {
|
|
5309
5309
|
le(), ue(), ce();
|
|
5310
5310
|
var t = Pa(), { EventEmitter: r } = (Ut(), Re(Tt)), { Buffer: o } = ($e(), Re(Fe));
|
|
5311
5311
|
function n(a, l) {
|
|
@@ -5331,9 +5331,9 @@ var or, _i, Ht, ba, ya, va, wa, _a, ka, Ut = Je(() => {
|
|
|
5331
5331
|
}
|
|
5332
5332
|
};
|
|
5333
5333
|
e.exports = n;
|
|
5334
|
-
}),
|
|
5335
|
-
le(), ue(), ce(), i.parser =
|
|
5336
|
-
}),
|
|
5334
|
+
}), Rc = pe((i) => {
|
|
5335
|
+
le(), ue(), ce(), i.parser = Pc().parser, i.generate = Lc(), i.writeToStream = Pa();
|
|
5336
|
+
}), Nc = pe((i, e) => {
|
|
5337
5337
|
le(), ue(), ce(), e.exports = r;
|
|
5338
5338
|
function t(n) {
|
|
5339
5339
|
return n instanceof zr ? zr.from(n) : new n.constructor(n.buffer.slice(), n.byteOffset, n.length);
|
|
@@ -5433,8 +5433,8 @@ var or, _i, Ht, ba, ya, va, wa, _a, ka, Ut = Je(() => {
|
|
|
5433
5433
|
return s.pop(), a.pop(), f;
|
|
5434
5434
|
}
|
|
5435
5435
|
}
|
|
5436
|
-
}),
|
|
5437
|
-
le(), ue(), ce(), e.exports =
|
|
5436
|
+
}), jc = pe((i, e) => {
|
|
5437
|
+
le(), ue(), ce(), e.exports = Nc()();
|
|
5438
5438
|
}), Oa = pe((i) => {
|
|
5439
5439
|
le(), ue(), ce(), Object.defineProperty(i, "__esModule", { value: !0 }), i.validateTopic = e, i.validateTopics = t;
|
|
5440
5440
|
function e(r) {
|
|
@@ -5486,7 +5486,7 @@ var or, _i, Ht, ba, ya, va, wa, _a, ka, Ut = Je(() => {
|
|
|
5486
5486
|
}
|
|
5487
5487
|
};
|
|
5488
5488
|
i.default = o;
|
|
5489
|
-
}),
|
|
5489
|
+
}), Uc = pe((i) => {
|
|
5490
5490
|
le(), ue(), ce(), Object.defineProperty(i, "__esModule", { value: !0 });
|
|
5491
5491
|
var e = [0, 16, 128, 131, 135, 144, 145, 151, 153], t = (r, o, n) => {
|
|
5492
5492
|
r.log("handlePublish: packet %o", o), n = typeof n < "u" ? n : r.noop;
|
|
@@ -5541,7 +5541,7 @@ var or, _i, Ht, ba, ya, va, wa, _a, ka, Ut = Je(() => {
|
|
|
5541
5541
|
}
|
|
5542
5542
|
};
|
|
5543
5543
|
i.default = t;
|
|
5544
|
-
}),
|
|
5544
|
+
}), Dc = pe((i, e) => {
|
|
5545
5545
|
e.exports = { version: "5.15.0" };
|
|
5546
5546
|
}), Jt = pe((i) => {
|
|
5547
5547
|
le(), ue(), ce(), Object.defineProperty(i, "__esModule", { value: !0 }), i.MQTTJS_VERSION = i.nextTick = i.ErrorWithSubackPacket = i.ErrorWithReasonCode = void 0, i.applyMixin = r;
|
|
@@ -5570,7 +5570,7 @@ var or, _i, Ht, ba, ya, va, wa, _a, ka, Ut = Je(() => {
|
|
|
5570
5570
|
}
|
|
5571
5571
|
i.nextTick = typeof Ne?.nextTick == "function" ? Ne.nextTick : (o) => {
|
|
5572
5572
|
setTimeout(o, 0);
|
|
5573
|
-
}, i.MQTTJS_VERSION =
|
|
5573
|
+
}, i.MQTTJS_VERSION = Dc().version;
|
|
5574
5574
|
}), Qr = pe((i) => {
|
|
5575
5575
|
le(), ue(), ce(), Object.defineProperty(i, "__esModule", { value: !0 }), i.ReasonCodes = void 0;
|
|
5576
5576
|
var e = Jt();
|
|
@@ -5624,7 +5624,7 @@ var or, _i, Ht, ba, ya, va, wa, _a, ka, Ut = Je(() => {
|
|
|
5624
5624
|
r.disconnecting && Object.keys(r.outgoing).length === 0 && r.emit("outgoingEmpty");
|
|
5625
5625
|
};
|
|
5626
5626
|
i.default = t;
|
|
5627
|
-
}),
|
|
5627
|
+
}), Bc = pe((i) => {
|
|
5628
5628
|
le(), ue(), ce(), Object.defineProperty(i, "__esModule", { value: !0 });
|
|
5629
5629
|
var e = Jt(), t = Qr(), r = (o, n) => {
|
|
5630
5630
|
let { options: s } = o, a = s.protocolVersion, l = a === 5 ? n.reasonCode : n.returnCode;
|
|
@@ -5646,7 +5646,7 @@ var or, _i, Ht, ba, ya, va, wa, _a, ka, Ut = Je(() => {
|
|
|
5646
5646
|
});
|
|
5647
5647
|
};
|
|
5648
5648
|
i.default = r;
|
|
5649
|
-
}),
|
|
5649
|
+
}), Fc = pe((i) => {
|
|
5650
5650
|
le(), ue(), ce(), Object.defineProperty(i, "__esModule", { value: !0 }), i.LRUCache = void 0;
|
|
5651
5651
|
var e = typeof performance == "object" && performance && typeof performance.now == "function" ? performance : Date, t = /* @__PURE__ */ new Set(), r = typeof Ne == "object" && Ne ? Ne : {}, o = (g, f, b, y) => {
|
|
5652
5652
|
typeof r.emitWarning == "function" ? r.emitWarning(g, f, b, y) : console.error(`[${b}] ${f}: ${g}`);
|
|
@@ -6190,7 +6190,7 @@ var or, _i, Ht, ba, ya, va, wa, _a, ka, Ut = Je(() => {
|
|
|
6190
6190
|
var r = class extends t {
|
|
6191
6191
|
};
|
|
6192
6192
|
i.Container = r;
|
|
6193
|
-
}),
|
|
6193
|
+
}), $c = pe((i) => {
|
|
6194
6194
|
le(), ue(), ce(), Object.defineProperty(i, "t", { value: !0 }), i.default = void 0;
|
|
6195
6195
|
var e = yt(), t = class extends e.Base {
|
|
6196
6196
|
constructor(o = []) {
|
|
@@ -6214,7 +6214,7 @@ var or, _i, Ht, ba, ya, va, wa, _a, ka, Ut = Je(() => {
|
|
|
6214
6214
|
}
|
|
6215
6215
|
}, r = t;
|
|
6216
6216
|
i.default = r;
|
|
6217
|
-
}),
|
|
6217
|
+
}), qc = pe((i) => {
|
|
6218
6218
|
le(), ue(), ce(), Object.defineProperty(i, "t", { value: !0 }), i.default = void 0;
|
|
6219
6219
|
var e = yt(), t = class extends e.Base {
|
|
6220
6220
|
constructor(o = []) {
|
|
@@ -6246,7 +6246,7 @@ var or, _i, Ht, ba, ya, va, wa, _a, ka, Ut = Je(() => {
|
|
|
6246
6246
|
}
|
|
6247
6247
|
}, r = t;
|
|
6248
6248
|
i.default = r;
|
|
6249
|
-
}),
|
|
6249
|
+
}), Hc = pe((i) => {
|
|
6250
6250
|
le(), ue(), ce(), Object.defineProperty(i, "t", { value: !0 }), i.default = void 0;
|
|
6251
6251
|
var e = yt(), t = class extends e.Base {
|
|
6252
6252
|
constructor(o = [], n = function(a, l) {
|
|
@@ -6344,7 +6344,7 @@ var or, _i, Ht, ba, ya, va, wa, _a, ka, Ut = Je(() => {
|
|
|
6344
6344
|
}
|
|
6345
6345
|
};
|
|
6346
6346
|
i.RandomIterator = r;
|
|
6347
|
-
}),
|
|
6347
|
+
}), Wc = pe((i) => {
|
|
6348
6348
|
le(), ue(), ce(), Object.defineProperty(i, "t", { value: !0 }), i.default = void 0;
|
|
6349
6349
|
var e = r(wo()), t = ja();
|
|
6350
6350
|
function r(a) {
|
|
@@ -6445,7 +6445,7 @@ var or, _i, Ht, ba, ya, va, wa, _a, ka, Ut = Je(() => {
|
|
|
6445
6445
|
}
|
|
6446
6446
|
}, s = n;
|
|
6447
6447
|
i.default = s;
|
|
6448
|
-
}),
|
|
6448
|
+
}), zc = pe((i) => {
|
|
6449
6449
|
le(), ue(), ce(), Object.defineProperty(i, "t", { value: !0 }), i.default = void 0;
|
|
6450
6450
|
var e = o(wo()), t = yt(), r = vt();
|
|
6451
6451
|
function o(l) {
|
|
@@ -6630,7 +6630,7 @@ var or, _i, Ht, ba, ya, va, wa, _a, ka, Ut = Je(() => {
|
|
|
6630
6630
|
}
|
|
6631
6631
|
}, a = s;
|
|
6632
6632
|
i.default = a;
|
|
6633
|
-
}),
|
|
6633
|
+
}), Vc = pe((i) => {
|
|
6634
6634
|
le(), ue(), ce(), Object.defineProperty(i, "t", { value: !0 }), i.default = void 0;
|
|
6635
6635
|
var e = r(wo()), t = ja();
|
|
6636
6636
|
function r(a) {
|
|
@@ -6815,7 +6815,7 @@ var or, _i, Ht, ba, ya, va, wa, _a, ka, Ut = Je(() => {
|
|
|
6815
6815
|
}
|
|
6816
6816
|
}, s = n;
|
|
6817
6817
|
i.default = s;
|
|
6818
|
-
}),
|
|
6818
|
+
}), Kc = pe((i) => {
|
|
6819
6819
|
le(), ue(), ce(), Object.defineProperty(i, "t", { value: !0 }), i.TreeNodeEnableIndex = i.TreeNode = void 0;
|
|
6820
6820
|
var e = class {
|
|
6821
6821
|
constructor(r, o) {
|
|
@@ -6872,7 +6872,7 @@ var or, _i, Ht, ba, ya, va, wa, _a, ka, Ut = Je(() => {
|
|
|
6872
6872
|
i.TreeNodeEnableIndex = t;
|
|
6873
6873
|
}), Fa = pe((i) => {
|
|
6874
6874
|
le(), ue(), ce(), Object.defineProperty(i, "t", { value: !0 }), i.default = void 0;
|
|
6875
|
-
var e =
|
|
6875
|
+
var e = Kc(), t = yt(), r = vt(), o = class extends t.Container {
|
|
6876
6876
|
constructor(s = function(l, c) {
|
|
6877
6877
|
return l < c ? -1 : l > c ? 1 : 0;
|
|
6878
6878
|
}, a = !1) {
|
|
@@ -7150,7 +7150,7 @@ var or, _i, Ht, ba, ya, va, wa, _a, ka, Ut = Je(() => {
|
|
|
7150
7150
|
}
|
|
7151
7151
|
}, o = r;
|
|
7152
7152
|
i.default = o;
|
|
7153
|
-
}),
|
|
7153
|
+
}), Gc = pe((i) => {
|
|
7154
7154
|
le(), ue(), ce(), Object.defineProperty(i, "t", { value: !0 }), i.default = void 0;
|
|
7155
7155
|
var e = o(Fa()), t = o($a()), r = vt();
|
|
7156
7156
|
function o(l) {
|
|
@@ -7229,7 +7229,7 @@ var or, _i, Ht, ba, ya, va, wa, _a, ka, Ut = Je(() => {
|
|
|
7229
7229
|
}
|
|
7230
7230
|
}, a = s;
|
|
7231
7231
|
i.default = a;
|
|
7232
|
-
}),
|
|
7232
|
+
}), Yc = pe((i) => {
|
|
7233
7233
|
le(), ue(), ce(), Object.defineProperty(i, "t", { value: !0 }), i.default = void 0;
|
|
7234
7234
|
var e = o(Fa()), t = o($a()), r = vt();
|
|
7235
7235
|
function o(l) {
|
|
@@ -7407,7 +7407,7 @@ var or, _i, Ht, ba, ya, va, wa, _a, ka, Ut = Je(() => {
|
|
|
7407
7407
|
}
|
|
7408
7408
|
};
|
|
7409
7409
|
i.HashContainer = s;
|
|
7410
|
-
}),
|
|
7410
|
+
}), Jc = pe((i) => {
|
|
7411
7411
|
le(), ue(), ce(), Object.defineProperty(i, "t", { value: !0 }), i.default = void 0;
|
|
7412
7412
|
var e = za(), t = vt(), r = class Va extends e.HashContainerIterator {
|
|
7413
7413
|
constructor(a, l, c, u) {
|
|
@@ -7470,7 +7470,7 @@ var or, _i, Ht, ba, ya, va, wa, _a, ka, Ut = Je(() => {
|
|
|
7470
7470
|
}
|
|
7471
7471
|
}, n = o;
|
|
7472
7472
|
i.default = n;
|
|
7473
|
-
}),
|
|
7473
|
+
}), Qc = pe((i) => {
|
|
7474
7474
|
le(), ue(), ce(), Object.defineProperty(i, "t", { value: !0 }), i.default = void 0;
|
|
7475
7475
|
var e = za(), t = o(Wa()), r = vt();
|
|
7476
7476
|
function o(l) {
|
|
@@ -7553,7 +7553,7 @@ var or, _i, Ht, ba, ya, va, wa, _a, ka, Ut = Je(() => {
|
|
|
7553
7553
|
}
|
|
7554
7554
|
}, a = s;
|
|
7555
7555
|
i.default = a;
|
|
7556
|
-
}),
|
|
7556
|
+
}), Xc = pe((i) => {
|
|
7557
7557
|
le(), ue(), ce(), Object.defineProperty(i, "t", { value: !0 }), Object.defineProperty(i, "Deque", { enumerable: !0, get: function() {
|
|
7558
7558
|
return s.default;
|
|
7559
7559
|
} }), Object.defineProperty(i, "HashMap", { enumerable: !0, get: function() {
|
|
@@ -7575,13 +7575,13 @@ var or, _i, Ht, ba, ya, va, wa, _a, ka, Ut = Je(() => {
|
|
|
7575
7575
|
} }), Object.defineProperty(i, "Vector", { enumerable: !0, get: function() {
|
|
7576
7576
|
return o.default;
|
|
7577
7577
|
} });
|
|
7578
|
-
var e = d(
|
|
7578
|
+
var e = d($c()), t = d(qc()), r = d(Hc()), o = d(Wc()), n = d(zc()), s = d(Vc()), a = d(Gc()), l = d(Yc()), c = d(Jc()), u = d(Qc());
|
|
7579
7579
|
function d(p) {
|
|
7580
7580
|
return p && p.t ? p : { default: p };
|
|
7581
7581
|
}
|
|
7582
|
-
}),
|
|
7582
|
+
}), Zc = pe((i, e) => {
|
|
7583
7583
|
le(), ue(), ce();
|
|
7584
|
-
var t =
|
|
7584
|
+
var t = Xc().OrderedSet, r = gt()("number-allocator:trace"), o = gt()("number-allocator:error");
|
|
7585
7585
|
function n(a, l) {
|
|
7586
7586
|
this.low = a, this.high = l;
|
|
7587
7587
|
}
|
|
@@ -7642,11 +7642,11 @@ var or, _i, Ht, ba, ya, va, wa, _a, ka, Ut = Je(() => {
|
|
|
7642
7642
|
}, e.exports = s;
|
|
7643
7643
|
}), Ga = pe((i, e) => {
|
|
7644
7644
|
le(), ue(), ce();
|
|
7645
|
-
var t =
|
|
7645
|
+
var t = Zc();
|
|
7646
7646
|
e.exports.NumberAllocator = t;
|
|
7647
|
-
}),
|
|
7647
|
+
}), eu = pe((i) => {
|
|
7648
7648
|
le(), ue(), ce(), Object.defineProperty(i, "__esModule", { value: !0 });
|
|
7649
|
-
var e =
|
|
7649
|
+
var e = Fc(), t = Ga(), r = class {
|
|
7650
7650
|
aliasToTopic;
|
|
7651
7651
|
topicToAlias;
|
|
7652
7652
|
max;
|
|
@@ -7675,13 +7675,13 @@ var or, _i, Ht, ba, ya, va, wa, _a, ka, Ut = Je(() => {
|
|
|
7675
7675
|
}
|
|
7676
7676
|
};
|
|
7677
7677
|
i.default = r;
|
|
7678
|
-
}),
|
|
7678
|
+
}), tu = pe((i) => {
|
|
7679
7679
|
le(), ue(), ce();
|
|
7680
7680
|
var e = i && i.__importDefault || function(s) {
|
|
7681
7681
|
return s && s.__esModule ? s : { default: s };
|
|
7682
7682
|
};
|
|
7683
7683
|
Object.defineProperty(i, "__esModule", { value: !0 });
|
|
7684
|
-
var t = Qr(), r = e(
|
|
7684
|
+
var t = Qr(), r = e(eu()), o = Jt(), n = (s, a) => {
|
|
7685
7685
|
s.log("_handleConnack");
|
|
7686
7686
|
let { options: l } = s, c = l.protocolVersion === 5 ? a.reasonCode : a.returnCode;
|
|
7687
7687
|
if (clearTimeout(s.connackTimer), delete s.topicAliasSend, a.properties) {
|
|
@@ -7701,7 +7701,7 @@ var or, _i, Ht, ba, ya, va, wa, _a, ka, Ut = Je(() => {
|
|
|
7701
7701
|
}
|
|
7702
7702
|
};
|
|
7703
7703
|
i.default = n;
|
|
7704
|
-
}),
|
|
7704
|
+
}), ru = pe((i) => {
|
|
7705
7705
|
le(), ue(), ce(), Object.defineProperty(i, "__esModule", { value: !0 });
|
|
7706
7706
|
var e = (t, r, o) => {
|
|
7707
7707
|
t.log("handling pubrel packet");
|
|
@@ -7714,13 +7714,13 @@ var or, _i, Ht, ba, ya, va, wa, _a, ka, Ut = Je(() => {
|
|
|
7714
7714
|
});
|
|
7715
7715
|
};
|
|
7716
7716
|
i.default = e;
|
|
7717
|
-
}),
|
|
7717
|
+
}), nu = pe((i) => {
|
|
7718
7718
|
le(), ue(), ce();
|
|
7719
7719
|
var e = i && i.__importDefault || function(l) {
|
|
7720
7720
|
return l && l.__esModule ? l : { default: l };
|
|
7721
7721
|
};
|
|
7722
7722
|
Object.defineProperty(i, "__esModule", { value: !0 });
|
|
7723
|
-
var t = e(
|
|
7723
|
+
var t = e(Uc()), r = e(Bc()), o = e(tu()), n = e(Qr()), s = e(ru()), a = (l, c, u) => {
|
|
7724
7724
|
let { options: d } = l;
|
|
7725
7725
|
if (d.protocolVersion === 5 && d.properties && d.properties.maximumPacketSize && d.properties.maximumPacketSize < c.length) return l.emit("error", new Error(`exceeding packets size ${c.cmd}`)), l.end({ reasonCode: 149, properties: { reasonString: "Maximum packet size was exceeded" } }), l;
|
|
7726
7726
|
switch (l.log("_handlePacket :: emitting packetreceive"), l.emit("packetreceive", c), c.cmd) {
|
|
@@ -7778,7 +7778,7 @@ var or, _i, Ht, ba, ya, va, wa, _a, ka, Ut = Je(() => {
|
|
|
7778
7778
|
}
|
|
7779
7779
|
};
|
|
7780
7780
|
i.default = e;
|
|
7781
|
-
}),
|
|
7781
|
+
}), iu = pe((i) => {
|
|
7782
7782
|
le(), ue(), ce(), Object.defineProperty(i, "__esModule", { value: !0 });
|
|
7783
7783
|
var e = class {
|
|
7784
7784
|
aliasToTopic;
|
|
@@ -7798,7 +7798,7 @@ var or, _i, Ht, ba, ya, va, wa, _a, ka, Ut = Je(() => {
|
|
|
7798
7798
|
}
|
|
7799
7799
|
};
|
|
7800
7800
|
i.default = e;
|
|
7801
|
-
}),
|
|
7801
|
+
}), ou = pe((i) => {
|
|
7802
7802
|
le(), ue(), ce();
|
|
7803
7803
|
var e = i && i.__importDefault || function(n) {
|
|
7804
7804
|
return n && n.__esModule ? n : { default: n };
|
|
@@ -7818,7 +7818,7 @@ var or, _i, Ht, ba, ya, va, wa, _a, ka, Ut = Je(() => {
|
|
|
7818
7818
|
}, e.exports.__esModule = !0, e.exports.default = e.exports, t(r);
|
|
7819
7819
|
}
|
|
7820
7820
|
e.exports = t, e.exports.__esModule = !0, e.exports.default = e.exports;
|
|
7821
|
-
}),
|
|
7821
|
+
}), su = pe((i, e) => {
|
|
7822
7822
|
le(), ue(), ce();
|
|
7823
7823
|
var t = Xr().default;
|
|
7824
7824
|
function r(o, n) {
|
|
@@ -7832,28 +7832,28 @@ var or, _i, Ht, ba, ya, va, wa, _a, ka, Ut = Je(() => {
|
|
|
7832
7832
|
return (n === "string" ? String : Number)(o);
|
|
7833
7833
|
}
|
|
7834
7834
|
e.exports = r, e.exports.__esModule = !0, e.exports.default = e.exports;
|
|
7835
|
-
}),
|
|
7835
|
+
}), au = pe((i, e) => {
|
|
7836
7836
|
le(), ue(), ce();
|
|
7837
|
-
var t = Xr().default, r =
|
|
7837
|
+
var t = Xr().default, r = su();
|
|
7838
7838
|
function o(n) {
|
|
7839
7839
|
var s = r(n, "string");
|
|
7840
7840
|
return t(s) == "symbol" ? s : s + "";
|
|
7841
7841
|
}
|
|
7842
7842
|
e.exports = o, e.exports.__esModule = !0, e.exports.default = e.exports;
|
|
7843
|
-
}),
|
|
7843
|
+
}), lu = pe((i, e) => {
|
|
7844
7844
|
le(), ue(), ce();
|
|
7845
|
-
var t =
|
|
7845
|
+
var t = au();
|
|
7846
7846
|
function r(o, n, s) {
|
|
7847
7847
|
return (n = t(n)) in o ? Object.defineProperty(o, n, { value: s, enumerable: !0, configurable: !0, writable: !0 }) : o[n] = s, o;
|
|
7848
7848
|
}
|
|
7849
7849
|
e.exports = r, e.exports.__esModule = !0, e.exports.default = e.exports;
|
|
7850
|
-
}),
|
|
7850
|
+
}), cu = pe((i, e) => {
|
|
7851
7851
|
le(), ue(), ce();
|
|
7852
7852
|
function t(r) {
|
|
7853
7853
|
if (Array.isArray(r)) return r;
|
|
7854
7854
|
}
|
|
7855
7855
|
e.exports = t, e.exports.__esModule = !0, e.exports.default = e.exports;
|
|
7856
|
-
}),
|
|
7856
|
+
}), uu = pe((i, e) => {
|
|
7857
7857
|
le(), ue(), ce();
|
|
7858
7858
|
function t(r, o) {
|
|
7859
7859
|
var n = r == null ? null : typeof Symbol < "u" && r[Symbol.iterator] || r["@@iterator"];
|
|
@@ -7877,7 +7877,7 @@ var or, _i, Ht, ba, ya, va, wa, _a, ka, Ut = Je(() => {
|
|
|
7877
7877
|
}
|
|
7878
7878
|
}
|
|
7879
7879
|
e.exports = t, e.exports.__esModule = !0, e.exports.default = e.exports;
|
|
7880
|
-
}),
|
|
7880
|
+
}), du = pe((i, e) => {
|
|
7881
7881
|
le(), ue(), ce();
|
|
7882
7882
|
function t(r, o) {
|
|
7883
7883
|
(o == null || o > r.length) && (o = r.length);
|
|
@@ -7885,9 +7885,9 @@ var or, _i, Ht, ba, ya, va, wa, _a, ka, Ut = Je(() => {
|
|
|
7885
7885
|
return s;
|
|
7886
7886
|
}
|
|
7887
7887
|
e.exports = t, e.exports.__esModule = !0, e.exports.default = e.exports;
|
|
7888
|
-
}),
|
|
7888
|
+
}), hu = pe((i, e) => {
|
|
7889
7889
|
le(), ue(), ce();
|
|
7890
|
-
var t =
|
|
7890
|
+
var t = du();
|
|
7891
7891
|
function r(o, n) {
|
|
7892
7892
|
if (o) {
|
|
7893
7893
|
if (typeof o == "string") return t(o, n);
|
|
@@ -7896,16 +7896,16 @@ var or, _i, Ht, ba, ya, va, wa, _a, ka, Ut = Je(() => {
|
|
|
7896
7896
|
}
|
|
7897
7897
|
}
|
|
7898
7898
|
e.exports = r, e.exports.__esModule = !0, e.exports.default = e.exports;
|
|
7899
|
-
}),
|
|
7899
|
+
}), fu = pe((i, e) => {
|
|
7900
7900
|
le(), ue(), ce();
|
|
7901
7901
|
function t() {
|
|
7902
7902
|
throw new TypeError(`Invalid attempt to destructure non-iterable instance.
|
|
7903
7903
|
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`);
|
|
7904
7904
|
}
|
|
7905
7905
|
e.exports = t, e.exports.__esModule = !0, e.exports.default = e.exports;
|
|
7906
|
-
}),
|
|
7906
|
+
}), pu = pe((i, e) => {
|
|
7907
7907
|
le(), ue(), ce();
|
|
7908
|
-
var t =
|
|
7908
|
+
var t = cu(), r = uu(), o = hu(), n = fu();
|
|
7909
7909
|
function s(a, l) {
|
|
7910
7910
|
return t(a) || r(a, l) || o(a, l) || n();
|
|
7911
7911
|
}
|
|
@@ -7938,7 +7938,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
7938
7938
|
}, c = /* @__PURE__ */ new WeakMap(), u = o(c), d = l(u, c), p = r(d);
|
|
7939
7939
|
t.addUniqueNumber = p, t.generateUniqueNumber = d;
|
|
7940
7940
|
});
|
|
7941
|
-
}),
|
|
7941
|
+
}), mu = pe((i, e) => {
|
|
7942
7942
|
le(), ue(), ce();
|
|
7943
7943
|
function t(o, n, s, a, l, c, u) {
|
|
7944
7944
|
try {
|
|
@@ -8094,7 +8094,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
8094
8094
|
return new r(t().w(n, s, a, l), c || Promise);
|
|
8095
8095
|
}
|
|
8096
8096
|
e.exports = o, e.exports.__esModule = !0, e.exports.default = e.exports;
|
|
8097
|
-
}),
|
|
8097
|
+
}), gu = pe((i, e) => {
|
|
8098
8098
|
le(), ue(), ce();
|
|
8099
8099
|
var t = tl();
|
|
8100
8100
|
function r(o, n, s, a, l) {
|
|
@@ -8104,7 +8104,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
8104
8104
|
});
|
|
8105
8105
|
}
|
|
8106
8106
|
e.exports = r, e.exports.__esModule = !0, e.exports.default = e.exports;
|
|
8107
|
-
}),
|
|
8107
|
+
}), bu = pe((i, e) => {
|
|
8108
8108
|
le(), ue(), ce();
|
|
8109
8109
|
function t(r) {
|
|
8110
8110
|
var o = Object(r), n = [];
|
|
@@ -8115,7 +8115,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
8115
8115
|
};
|
|
8116
8116
|
}
|
|
8117
8117
|
e.exports = t, e.exports.__esModule = !0, e.exports.default = e.exports;
|
|
8118
|
-
}),
|
|
8118
|
+
}), yu = pe((i, e) => {
|
|
8119
8119
|
le(), ue(), ce();
|
|
8120
8120
|
var t = Xr().default;
|
|
8121
8121
|
function r(o) {
|
|
@@ -8130,9 +8130,9 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
8130
8130
|
throw new TypeError(t(o) + " is not iterable");
|
|
8131
8131
|
}
|
|
8132
8132
|
e.exports = r, e.exports.__esModule = !0, e.exports.default = e.exports;
|
|
8133
|
-
}),
|
|
8133
|
+
}), vu = pe((i, e) => {
|
|
8134
8134
|
le(), ue(), ce();
|
|
8135
|
-
var t = Qa(), r = Za(), o =
|
|
8135
|
+
var t = Qa(), r = Za(), o = gu(), n = tl(), s = el(), a = bu(), l = yu();
|
|
8136
8136
|
function c() {
|
|
8137
8137
|
var u = r(), d = u.m(c), p = (Object.getPrototypeOf ? Object.getPrototypeOf(d) : d.__proto__).constructor;
|
|
8138
8138
|
function g(y) {
|
|
@@ -8179,18 +8179,18 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
8179
8179
|
}, e.exports.__esModule = !0, e.exports.default = e.exports)();
|
|
8180
8180
|
}
|
|
8181
8181
|
e.exports = c, e.exports.__esModule = !0, e.exports.default = e.exports;
|
|
8182
|
-
}),
|
|
8182
|
+
}), wu = pe((i, e) => {
|
|
8183
8183
|
le(), ue(), ce();
|
|
8184
|
-
var t =
|
|
8184
|
+
var t = vu()();
|
|
8185
8185
|
e.exports = t;
|
|
8186
8186
|
try {
|
|
8187
8187
|
regeneratorRuntime = t;
|
|
8188
8188
|
} catch {
|
|
8189
8189
|
typeof globalThis == "object" ? globalThis.regeneratorRuntime = t : Function("r", "regeneratorRuntime = r")(t);
|
|
8190
8190
|
}
|
|
8191
|
-
}),
|
|
8191
|
+
}), _u = pe((i, e) => {
|
|
8192
8192
|
le(), ue(), ce(), (function(t, r) {
|
|
8193
|
-
typeof i == "object" && typeof e < "u" ? r(i,
|
|
8193
|
+
typeof i == "object" && typeof e < "u" ? r(i, lu(), pu(), Ja(), mu(), wu()) : typeof define == "function" && define.amd ? define(["exports", "@babel/runtime/helpers/defineProperty", "@babel/runtime/helpers/slicedToArray", "fast-unique-numbers", "@babel/runtime/helpers/asyncToGenerator", "@babel/runtime/regenerator"], r) : (t = typeof globalThis < "u" ? globalThis : t || self, r(t.brokerFactory = {}, t._defineProperty, t._slicedToArray, t.fastUniqueNumbers, t._asyncToGenerator, t._regeneratorRuntime));
|
|
8194
8194
|
})(i, function(t, r, o, n, s, a) {
|
|
8195
8195
|
var l = function(m) {
|
|
8196
8196
|
return typeof m.start == "function";
|
|
@@ -8319,9 +8319,9 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
8319
8319
|
};
|
|
8320
8320
|
t.createBroker = w;
|
|
8321
8321
|
});
|
|
8322
|
-
}),
|
|
8322
|
+
}), ku = pe((i, e) => {
|
|
8323
8323
|
le(), ue(), ce(), (function(t, r) {
|
|
8324
|
-
typeof i == "object" && typeof e < "u" ? r(i, Xr(),
|
|
8324
|
+
typeof i == "object" && typeof e < "u" ? r(i, Xr(), _u(), Ja()) : typeof define == "function" && define.amd ? define(["exports", "@babel/runtime/helpers/typeof", "broker-factory", "fast-unique-numbers"], r) : (t = typeof globalThis < "u" ? globalThis : t || self, r(t.workerTimersBroker = {}, t._typeof, t.brokerFactory, t.fastUniqueNumbers));
|
|
8325
8325
|
})(i, function(t, r, o, n) {
|
|
8326
8326
|
var s = /* @__PURE__ */ new Map([[0, null]]), a = /* @__PURE__ */ new Map([[0, null]]), l = o.createBroker({ clearInterval: function(u) {
|
|
8327
8327
|
var d = u.call;
|
|
@@ -8369,9 +8369,9 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
8369
8369
|
};
|
|
8370
8370
|
t.load = c, t.wrap = l;
|
|
8371
8371
|
});
|
|
8372
|
-
}),
|
|
8372
|
+
}), xu = pe((i, e) => {
|
|
8373
8373
|
le(), ue(), ce(), (function(t, r) {
|
|
8374
|
-
typeof i == "object" && typeof e < "u" ? r(i,
|
|
8374
|
+
typeof i == "object" && typeof e < "u" ? r(i, ku()) : typeof define == "function" && define.amd ? define(["exports", "worker-timers-broker"], r) : (t = typeof globalThis < "u" ? globalThis : t || self, r(t.workerTimers = {}, t.workerTimersBroker));
|
|
8375
8375
|
})(i, function(t, r) {
|
|
8376
8376
|
var o = function(d, p) {
|
|
8377
8377
|
var g = null;
|
|
@@ -8399,7 +8399,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
8399
8399
|
le(), ue(), ce(), Object.defineProperty(i, "__esModule", { value: !0 }), i.isReactNativeBrowser = i.isWebWorker = void 0;
|
|
8400
8400
|
var e = () => typeof window < "u" ? typeof navigator < "u" && navigator.userAgent?.toLowerCase().indexOf(" electron/") > -1 && Ne?.versions ? !Object.prototype.hasOwnProperty.call(Ne.versions, "electron") : typeof window.document < "u" : !1, t = () => !!(typeof self == "object" && self?.constructor?.name?.includes("WorkerGlobalScope") && typeof Deno > "u"), r = () => typeof navigator < "u" && navigator.product === "ReactNative", o = e() || t() || r();
|
|
8401
8401
|
i.isWebWorker = t(), i.isReactNativeBrowser = r(), i.default = o;
|
|
8402
|
-
}),
|
|
8402
|
+
}), Su = pe((i) => {
|
|
8403
8403
|
le(), ue(), ce();
|
|
8404
8404
|
var e = i && i.__createBinding || (Object.create ? function(c, u, d, p) {
|
|
8405
8405
|
p === void 0 && (p = d);
|
|
@@ -8429,7 +8429,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
8429
8429
|
};
|
|
8430
8430
|
})();
|
|
8431
8431
|
Object.defineProperty(i, "__esModule", { value: !0 });
|
|
8432
|
-
var o =
|
|
8432
|
+
var o = xu(), n = r(Zr()), s = { set: o.setInterval, clear: o.clearInterval }, a = { set: (c, u) => setInterval(c, u), clear: (c) => clearInterval(c) }, l = (c) => {
|
|
8433
8433
|
switch (c) {
|
|
8434
8434
|
case "native":
|
|
8435
8435
|
return a;
|
|
@@ -8446,7 +8446,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
8446
8446
|
return o && o.__esModule ? o : { default: o };
|
|
8447
8447
|
};
|
|
8448
8448
|
Object.defineProperty(i, "__esModule", { value: !0 });
|
|
8449
|
-
var t = e(
|
|
8449
|
+
var t = e(Su()), r = class {
|
|
8450
8450
|
_keepalive;
|
|
8451
8451
|
timerId;
|
|
8452
8452
|
timer;
|
|
@@ -8519,7 +8519,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
8519
8519
|
return v && v.__esModule ? v : { default: v };
|
|
8520
8520
|
};
|
|
8521
8521
|
Object.defineProperty(i, "__esModule", { value: !0 });
|
|
8522
|
-
var n = o(
|
|
8522
|
+
var n = o(Rc()), s = Bt(), a = o(jc()), l = o(gt()), c = r(Oa()), u = o(Ma()), d = o(nu()), p = o(Ya()), g = o(iu()), f = Jt(), b = ou(), y = o(rl()), w = r(Zr()), m = globalThis.setImmediate || ((...v) => {
|
|
8523
8523
|
let S = v.shift();
|
|
8524
8524
|
(0, f.nextTick)(() => {
|
|
8525
8525
|
S(...v);
|
|
@@ -9021,7 +9021,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
9021
9021
|
}
|
|
9022
9022
|
};
|
|
9023
9023
|
i.default = x;
|
|
9024
|
-
}),
|
|
9024
|
+
}), Eu = pe((i) => {
|
|
9025
9025
|
le(), ue(), ce(), Object.defineProperty(i, "__esModule", { value: !0 });
|
|
9026
9026
|
var e = Ga(), t = class {
|
|
9027
9027
|
numberAllocator;
|
|
@@ -9047,7 +9047,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
9047
9047
|
};
|
|
9048
9048
|
i.default = t;
|
|
9049
9049
|
});
|
|
9050
|
-
function
|
|
9050
|
+
function Au() {
|
|
9051
9051
|
if (Ei) return _r;
|
|
9052
9052
|
Ei = !0;
|
|
9053
9053
|
let i = 2147483647, e = 36, t = 1, r = 26, o = 38, n = 700, s = 72, a = 128, l = "-", c = /^xn--/, u = /[^\0-\x7F]/, d = /[\x2E\u3002\uFF0E\uFF61]/g, p = { overflow: "Overflow: input needs wider integers to process", "not-basic": "Illegal input >= 0x80 (not a basic code point)", "invalid-input": "Invalid input" }, g = e - t, f = Math.floor, b = String.fromCharCode;
|
|
@@ -9138,10 +9138,10 @@ function Eu() {
|
|
|
9138
9138
|
});
|
|
9139
9139
|
} }, _r;
|
|
9140
9140
|
}
|
|
9141
|
-
var _r, Ei, At,
|
|
9142
|
-
le(), ue(), ce(), _r = {}, Ei = !1, At =
|
|
9141
|
+
var _r, Ei, At, Iu = Je(() => {
|
|
9142
|
+
le(), ue(), ce(), _r = {}, Ei = !1, At = Au(), At.decode, At.encode, At.toASCII, At.toUnicode, At.ucs2, At.version;
|
|
9143
9143
|
});
|
|
9144
|
-
function
|
|
9144
|
+
function Tu() {
|
|
9145
9145
|
return Ii || (Ii = !0, Ai = function() {
|
|
9146
9146
|
if (typeof Symbol != "function" || typeof Object.getOwnPropertySymbols != "function") return !1;
|
|
9147
9147
|
if (typeof Symbol.iterator == "symbol") return !0;
|
|
@@ -9160,16 +9160,16 @@ function Iu() {
|
|
|
9160
9160
|
return !0;
|
|
9161
9161
|
}), Ai;
|
|
9162
9162
|
}
|
|
9163
|
-
function
|
|
9163
|
+
function Cu() {
|
|
9164
9164
|
return Ci || (Ci = !0, Ti = Error), Ti;
|
|
9165
9165
|
}
|
|
9166
|
-
function
|
|
9166
|
+
function Pu() {
|
|
9167
9167
|
return Oi || (Oi = !0, Pi = EvalError), Pi;
|
|
9168
9168
|
}
|
|
9169
|
-
function
|
|
9169
|
+
function Ou() {
|
|
9170
9170
|
return Li || (Li = !0, Mi = RangeError), Mi;
|
|
9171
9171
|
}
|
|
9172
|
-
function
|
|
9172
|
+
function Mu() {
|
|
9173
9173
|
return Ni || (Ni = !0, Ri = ReferenceError), Ri;
|
|
9174
9174
|
}
|
|
9175
9175
|
function nl() {
|
|
@@ -9178,18 +9178,18 @@ function nl() {
|
|
|
9178
9178
|
function hr() {
|
|
9179
9179
|
return Bi || (Bi = !0, Di = TypeError), Di;
|
|
9180
9180
|
}
|
|
9181
|
-
function
|
|
9181
|
+
function Lu() {
|
|
9182
9182
|
return $i || ($i = !0, Fi = URIError), Fi;
|
|
9183
9183
|
}
|
|
9184
|
-
function
|
|
9184
|
+
function Ru() {
|
|
9185
9185
|
if (qi) return kr;
|
|
9186
9186
|
qi = !0;
|
|
9187
|
-
var i = typeof Symbol < "u" && Symbol, e =
|
|
9187
|
+
var i = typeof Symbol < "u" && Symbol, e = Tu();
|
|
9188
9188
|
return kr = function() {
|
|
9189
9189
|
return typeof i != "function" || typeof Symbol != "function" || typeof i("foo") != "symbol" || typeof /* @__PURE__ */ Symbol("bar") != "symbol" ? !1 : e();
|
|
9190
9190
|
}, kr;
|
|
9191
9191
|
}
|
|
9192
|
-
function
|
|
9192
|
+
function Nu() {
|
|
9193
9193
|
if (Hi) return xr;
|
|
9194
9194
|
Hi = !0;
|
|
9195
9195
|
var i = { __proto__: null, foo: {} }, e = Object;
|
|
@@ -9197,7 +9197,7 @@ function Ru() {
|
|
|
9197
9197
|
return { __proto__: i }.foo === i.foo && !(i instanceof e);
|
|
9198
9198
|
}, xr;
|
|
9199
9199
|
}
|
|
9200
|
-
function
|
|
9200
|
+
function ju() {
|
|
9201
9201
|
if (Wi) return Sr;
|
|
9202
9202
|
Wi = !0;
|
|
9203
9203
|
var i = "Function.prototype.bind called on incompatible ", e = Object.prototype.toString, t = Math.max, r = "[object Function]", o = function(a, l) {
|
|
@@ -9232,10 +9232,10 @@ function Nu() {
|
|
|
9232
9232
|
function _o() {
|
|
9233
9233
|
if (zi) return Er;
|
|
9234
9234
|
zi = !0;
|
|
9235
|
-
var i =
|
|
9235
|
+
var i = ju();
|
|
9236
9236
|
return Er = Function.prototype.bind || i, Er;
|
|
9237
9237
|
}
|
|
9238
|
-
function
|
|
9238
|
+
function Uu() {
|
|
9239
9239
|
if (Vi) return Ar;
|
|
9240
9240
|
Vi = !0;
|
|
9241
9241
|
var i = Function.prototype.call, e = Object.prototype.hasOwnProperty, t = _o();
|
|
@@ -9244,7 +9244,7 @@ function ju() {
|
|
|
9244
9244
|
function Qt() {
|
|
9245
9245
|
if (Ki) return Ir;
|
|
9246
9246
|
Ki = !0;
|
|
9247
|
-
var i, e =
|
|
9247
|
+
var i, e = Cu(), t = Pu(), r = Ou(), o = Mu(), n = nl(), s = hr(), a = Lu(), l = Function, c = function(Y) {
|
|
9248
9248
|
try {
|
|
9249
9249
|
return l('"use strict"; return (' + Y + ").constructor;")();
|
|
9250
9250
|
} catch {
|
|
@@ -9267,7 +9267,7 @@ function Qt() {
|
|
|
9267
9267
|
return d;
|
|
9268
9268
|
}
|
|
9269
9269
|
}
|
|
9270
|
-
})() : d, g =
|
|
9270
|
+
})() : d, g = Ru()(), f = Nu()(), b = Object.getPrototypeOf || (f ? function(Y) {
|
|
9271
9271
|
return Y.__proto__;
|
|
9272
9272
|
} : null), y = {}, w = typeof Uint8Array > "u" || !b ? i : b(Uint8Array), m = { __proto__: null, "%AggregateError%": typeof AggregateError > "u" ? i : AggregateError, "%Array%": Array, "%ArrayBuffer%": typeof ArrayBuffer > "u" ? i : ArrayBuffer, "%ArrayIteratorPrototype%": g && b ? b([][Symbol.iterator]()) : i, "%AsyncFromSyncIteratorPrototype%": i, "%AsyncFunction%": y, "%AsyncGenerator%": y, "%AsyncGeneratorFunction%": y, "%AsyncIteratorPrototype%": y, "%Atomics%": typeof Atomics > "u" ? i : Atomics, "%BigInt%": typeof BigInt > "u" ? i : BigInt, "%BigInt64Array%": typeof BigInt64Array > "u" ? i : BigInt64Array, "%BigUint64Array%": typeof BigUint64Array > "u" ? i : BigUint64Array, "%Boolean%": Boolean, "%DataView%": typeof DataView > "u" ? i : DataView, "%Date%": Date, "%decodeURI%": decodeURI, "%decodeURIComponent%": decodeURIComponent, "%encodeURI%": encodeURI, "%encodeURIComponent%": encodeURIComponent, "%Error%": e, "%eval%": eval, "%EvalError%": t, "%Float32Array%": typeof Float32Array > "u" ? i : Float32Array, "%Float64Array%": typeof Float64Array > "u" ? i : Float64Array, "%FinalizationRegistry%": typeof FinalizationRegistry > "u" ? i : FinalizationRegistry, "%Function%": l, "%GeneratorFunction%": y, "%Int8Array%": typeof Int8Array > "u" ? i : Int8Array, "%Int16Array%": typeof Int16Array > "u" ? i : Int16Array, "%Int32Array%": typeof Int32Array > "u" ? i : Int32Array, "%isFinite%": isFinite, "%isNaN%": isNaN, "%IteratorPrototype%": g && b ? b(b([][Symbol.iterator]())) : i, "%JSON%": typeof JSON == "object" ? JSON : i, "%Map%": typeof Map > "u" ? i : Map, "%MapIteratorPrototype%": typeof Map > "u" || !g || !b ? i : b((/* @__PURE__ */ new Map())[Symbol.iterator]()), "%Math%": Math, "%Number%": Number, "%Object%": Object, "%parseFloat%": parseFloat, "%parseInt%": parseInt, "%Promise%": typeof Promise > "u" ? i : Promise, "%Proxy%": typeof Proxy > "u" ? i : Proxy, "%RangeError%": r, "%ReferenceError%": o, "%Reflect%": typeof Reflect > "u" ? i : Reflect, "%RegExp%": RegExp, "%Set%": typeof Set > "u" ? i : Set, "%SetIteratorPrototype%": typeof Set > "u" || !g || !b ? i : b((/* @__PURE__ */ new Set())[Symbol.iterator]()), "%SharedArrayBuffer%": typeof SharedArrayBuffer > "u" ? i : SharedArrayBuffer, "%String%": String, "%StringIteratorPrototype%": g && b ? b(""[Symbol.iterator]()) : i, "%Symbol%": g ? Symbol : i, "%SyntaxError%": n, "%ThrowTypeError%": p, "%TypedArray%": w, "%TypeError%": s, "%Uint8Array%": typeof Uint8Array > "u" ? i : Uint8Array, "%Uint8ClampedArray%": typeof Uint8ClampedArray > "u" ? i : Uint8ClampedArray, "%Uint16Array%": typeof Uint16Array > "u" ? i : Uint16Array, "%Uint32Array%": typeof Uint32Array > "u" ? i : Uint32Array, "%URIError%": a, "%WeakMap%": typeof WeakMap > "u" ? i : WeakMap, "%WeakRef%": typeof WeakRef > "u" ? i : WeakRef, "%WeakSet%": typeof WeakSet > "u" ? i : WeakSet };
|
|
9273
9273
|
if (b) try {
|
|
@@ -9289,7 +9289,7 @@ function Qt() {
|
|
|
9289
9289
|
X && b && (ee = b(X.prototype));
|
|
9290
9290
|
}
|
|
9291
9291
|
return m[W] = ee, ee;
|
|
9292
|
-
}, v = { __proto__: null, "%ArrayBufferPrototype%": ["ArrayBuffer", "prototype"], "%ArrayPrototype%": ["Array", "prototype"], "%ArrayProto_entries%": ["Array", "prototype", "entries"], "%ArrayProto_forEach%": ["Array", "prototype", "forEach"], "%ArrayProto_keys%": ["Array", "prototype", "keys"], "%ArrayProto_values%": ["Array", "prototype", "values"], "%AsyncFunctionPrototype%": ["AsyncFunction", "prototype"], "%AsyncGenerator%": ["AsyncGeneratorFunction", "prototype"], "%AsyncGeneratorPrototype%": ["AsyncGeneratorFunction", "prototype", "prototype"], "%BooleanPrototype%": ["Boolean", "prototype"], "%DataViewPrototype%": ["DataView", "prototype"], "%DatePrototype%": ["Date", "prototype"], "%ErrorPrototype%": ["Error", "prototype"], "%EvalErrorPrototype%": ["EvalError", "prototype"], "%Float32ArrayPrototype%": ["Float32Array", "prototype"], "%Float64ArrayPrototype%": ["Float64Array", "prototype"], "%FunctionPrototype%": ["Function", "prototype"], "%Generator%": ["GeneratorFunction", "prototype"], "%GeneratorPrototype%": ["GeneratorFunction", "prototype", "prototype"], "%Int8ArrayPrototype%": ["Int8Array", "prototype"], "%Int16ArrayPrototype%": ["Int16Array", "prototype"], "%Int32ArrayPrototype%": ["Int32Array", "prototype"], "%JSONParse%": ["JSON", "parse"], "%JSONStringify%": ["JSON", "stringify"], "%MapPrototype%": ["Map", "prototype"], "%NumberPrototype%": ["Number", "prototype"], "%ObjectPrototype%": ["Object", "prototype"], "%ObjProto_toString%": ["Object", "prototype", "toString"], "%ObjProto_valueOf%": ["Object", "prototype", "valueOf"], "%PromisePrototype%": ["Promise", "prototype"], "%PromiseProto_then%": ["Promise", "prototype", "then"], "%Promise_all%": ["Promise", "all"], "%Promise_reject%": ["Promise", "reject"], "%Promise_resolve%": ["Promise", "resolve"], "%RangeErrorPrototype%": ["RangeError", "prototype"], "%ReferenceErrorPrototype%": ["ReferenceError", "prototype"], "%RegExpPrototype%": ["RegExp", "prototype"], "%SetPrototype%": ["Set", "prototype"], "%SharedArrayBufferPrototype%": ["SharedArrayBuffer", "prototype"], "%StringPrototype%": ["String", "prototype"], "%SymbolPrototype%": ["Symbol", "prototype"], "%SyntaxErrorPrototype%": ["SyntaxError", "prototype"], "%TypedArrayPrototype%": ["TypedArray", "prototype"], "%TypeErrorPrototype%": ["TypeError", "prototype"], "%Uint8ArrayPrototype%": ["Uint8Array", "prototype"], "%Uint8ClampedArrayPrototype%": ["Uint8ClampedArray", "prototype"], "%Uint16ArrayPrototype%": ["Uint16Array", "prototype"], "%Uint32ArrayPrototype%": ["Uint32Array", "prototype"], "%URIErrorPrototype%": ["URIError", "prototype"], "%WeakMapPrototype%": ["WeakMap", "prototype"], "%WeakSetPrototype%": ["WeakSet", "prototype"] }, S = _o(), E =
|
|
9292
|
+
}, v = { __proto__: null, "%ArrayBufferPrototype%": ["ArrayBuffer", "prototype"], "%ArrayPrototype%": ["Array", "prototype"], "%ArrayProto_entries%": ["Array", "prototype", "entries"], "%ArrayProto_forEach%": ["Array", "prototype", "forEach"], "%ArrayProto_keys%": ["Array", "prototype", "keys"], "%ArrayProto_values%": ["Array", "prototype", "values"], "%AsyncFunctionPrototype%": ["AsyncFunction", "prototype"], "%AsyncGenerator%": ["AsyncGeneratorFunction", "prototype"], "%AsyncGeneratorPrototype%": ["AsyncGeneratorFunction", "prototype", "prototype"], "%BooleanPrototype%": ["Boolean", "prototype"], "%DataViewPrototype%": ["DataView", "prototype"], "%DatePrototype%": ["Date", "prototype"], "%ErrorPrototype%": ["Error", "prototype"], "%EvalErrorPrototype%": ["EvalError", "prototype"], "%Float32ArrayPrototype%": ["Float32Array", "prototype"], "%Float64ArrayPrototype%": ["Float64Array", "prototype"], "%FunctionPrototype%": ["Function", "prototype"], "%Generator%": ["GeneratorFunction", "prototype"], "%GeneratorPrototype%": ["GeneratorFunction", "prototype", "prototype"], "%Int8ArrayPrototype%": ["Int8Array", "prototype"], "%Int16ArrayPrototype%": ["Int16Array", "prototype"], "%Int32ArrayPrototype%": ["Int32Array", "prototype"], "%JSONParse%": ["JSON", "parse"], "%JSONStringify%": ["JSON", "stringify"], "%MapPrototype%": ["Map", "prototype"], "%NumberPrototype%": ["Number", "prototype"], "%ObjectPrototype%": ["Object", "prototype"], "%ObjProto_toString%": ["Object", "prototype", "toString"], "%ObjProto_valueOf%": ["Object", "prototype", "valueOf"], "%PromisePrototype%": ["Promise", "prototype"], "%PromiseProto_then%": ["Promise", "prototype", "then"], "%Promise_all%": ["Promise", "all"], "%Promise_reject%": ["Promise", "reject"], "%Promise_resolve%": ["Promise", "resolve"], "%RangeErrorPrototype%": ["RangeError", "prototype"], "%ReferenceErrorPrototype%": ["ReferenceError", "prototype"], "%RegExpPrototype%": ["RegExp", "prototype"], "%SetPrototype%": ["Set", "prototype"], "%SharedArrayBufferPrototype%": ["SharedArrayBuffer", "prototype"], "%StringPrototype%": ["String", "prototype"], "%SymbolPrototype%": ["Symbol", "prototype"], "%SyntaxErrorPrototype%": ["SyntaxError", "prototype"], "%TypedArrayPrototype%": ["TypedArray", "prototype"], "%TypeErrorPrototype%": ["TypeError", "prototype"], "%Uint8ArrayPrototype%": ["Uint8Array", "prototype"], "%Uint8ClampedArrayPrototype%": ["Uint8ClampedArray", "prototype"], "%Uint16ArrayPrototype%": ["Uint16Array", "prototype"], "%Uint32ArrayPrototype%": ["Uint32Array", "prototype"], "%URIErrorPrototype%": ["URIError", "prototype"], "%WeakMapPrototype%": ["WeakMap", "prototype"], "%WeakSetPrototype%": ["WeakSet", "prototype"] }, S = _o(), E = Uu(), I = S.call(Function.call, Array.prototype.concat), P = S.call(Function.apply, Array.prototype.splice), O = S.call(Function.call, String.prototype.replace), B = S.call(Function.call, String.prototype.slice), T = S.call(Function.call, RegExp.prototype.exec), $ = /[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g, M = /\\(\\)?/g, U = function(Y) {
|
|
9293
9293
|
var W = B(Y, 0, 1), ee = B(Y, -1);
|
|
9294
9294
|
if (W === "%" && ee !== "%") throw new n("invalid intrinsic syntax, expected closing `%`");
|
|
9295
9295
|
if (ee === "%" && W !== "%") throw new n("invalid intrinsic syntax, expected opening `%`");
|
|
@@ -9353,7 +9353,7 @@ function il() {
|
|
|
9353
9353
|
}
|
|
9354
9354
|
return Cr = e, Cr;
|
|
9355
9355
|
}
|
|
9356
|
-
function
|
|
9356
|
+
function Du() {
|
|
9357
9357
|
if (Ji) return Pr;
|
|
9358
9358
|
Ji = !0;
|
|
9359
9359
|
var i = ko(), e = nl(), t = hr(), r = il();
|
|
@@ -9370,7 +9370,7 @@ function Uu() {
|
|
|
9370
9370
|
else throw new e("This environment does not support defining a property as non-configurable, non-writable, or non-enumerable.");
|
|
9371
9371
|
}, Pr;
|
|
9372
9372
|
}
|
|
9373
|
-
function
|
|
9373
|
+
function Bu() {
|
|
9374
9374
|
if (Qi) return Or;
|
|
9375
9375
|
Qi = !0;
|
|
9376
9376
|
var i = ko(), e = function() {
|
|
@@ -9385,10 +9385,10 @@ function Du() {
|
|
|
9385
9385
|
}
|
|
9386
9386
|
}, Or = e, Or;
|
|
9387
9387
|
}
|
|
9388
|
-
function
|
|
9388
|
+
function Fu() {
|
|
9389
9389
|
if (Xi) return Mr;
|
|
9390
9390
|
Xi = !0;
|
|
9391
|
-
var i = Qt(), e =
|
|
9391
|
+
var i = Qt(), e = Du(), t = Bu()(), r = il(), o = hr(), n = i("%Math.floor%");
|
|
9392
9392
|
return Mr = function(s, a) {
|
|
9393
9393
|
if (typeof s != "function") throw new o("`fn` is not a function");
|
|
9394
9394
|
if (typeof a != "number" || a < 0 || a > 4294967295 || n(a) !== a) throw new o("`length` must be a positive 32-bit integer");
|
|
@@ -9400,10 +9400,10 @@ function Bu() {
|
|
|
9400
9400
|
return (c || u || !l) && (t ? e(s, "length", a, !0, !0) : e(s, "length", a)), s;
|
|
9401
9401
|
}, Mr;
|
|
9402
9402
|
}
|
|
9403
|
-
function
|
|
9403
|
+
function $u() {
|
|
9404
9404
|
if (Zi) return Wt;
|
|
9405
9405
|
Zi = !0;
|
|
9406
|
-
var i = _o(), e = Qt(), t =
|
|
9406
|
+
var i = _o(), e = Qt(), t = Fu(), r = hr(), o = e("%Function.prototype.apply%"), n = e("%Function.prototype.call%"), s = e("%Reflect.apply%", !0) || i.call(n, o), a = ko(), l = e("%Math.max%");
|
|
9407
9407
|
Wt = function(u) {
|
|
9408
9408
|
if (typeof u != "function") throw new r("a function is required");
|
|
9409
9409
|
var d = s(i, n, arguments);
|
|
@@ -9414,27 +9414,27 @@ function Fu() {
|
|
|
9414
9414
|
};
|
|
9415
9415
|
return a ? a(Wt, "apply", { value: c }) : Wt.apply = c, Wt;
|
|
9416
9416
|
}
|
|
9417
|
-
function
|
|
9417
|
+
function qu() {
|
|
9418
9418
|
if (eo) return Lr;
|
|
9419
9419
|
eo = !0;
|
|
9420
|
-
var i = Qt(), e =
|
|
9420
|
+
var i = Qt(), e = $u(), t = e(i("String.prototype.indexOf"));
|
|
9421
9421
|
return Lr = function(r, o) {
|
|
9422
9422
|
var n = i(r, !!o);
|
|
9423
9423
|
return typeof n == "function" && t(r, ".prototype.") > -1 ? e(n) : n;
|
|
9424
9424
|
}, Lr;
|
|
9425
9425
|
}
|
|
9426
|
-
var Ai, Ii, Ti, Ci, Pi, Oi, Mi, Li, Ri, Ni, ji, Ui, Di, Bi, Fi, $i, kr, qi, xr, Hi, Sr, Wi, Er, zi, Ar, Vi, Ir, Ki, Tr, Gi, Cr, Yi, Pr, Ji, Or, Qi, Mr, Xi, Wt, Zi, Lr, eo,
|
|
9426
|
+
var Ai, Ii, Ti, Ci, Pi, Oi, Mi, Li, Ri, Ni, ji, Ui, Di, Bi, Fi, $i, kr, qi, xr, Hi, Sr, Wi, Er, zi, Ar, Vi, Ir, Ki, Tr, Gi, Cr, Yi, Pr, Ji, Or, Qi, Mr, Xi, Wt, Zi, Lr, eo, Hu = Je(() => {
|
|
9427
9427
|
le(), ue(), ce(), Ai = {}, Ii = !1, Ti = {}, Ci = !1, Pi = {}, Oi = !1, Mi = {}, Li = !1, Ri = {}, Ni = !1, ji = {}, Ui = !1, Di = {}, Bi = !1, Fi = {}, $i = !1, kr = {}, qi = !1, xr = {}, Hi = !1, Sr = {}, Wi = !1, Er = {}, zi = !1, Ar = {}, Vi = !1, Ir = {}, Ki = !1, Tr = {}, Gi = !1, Cr = {}, Yi = !1, Pr = {}, Ji = !1, Or = {}, Qi = !1, Mr = {}, Xi = !1, Wt = {}, Zi = !1, Lr = {}, eo = !1;
|
|
9428
9428
|
});
|
|
9429
9429
|
function xo(i) {
|
|
9430
9430
|
throw new Error("Node.js process " + i + " is not supported by JSPM core outside of Node.js");
|
|
9431
9431
|
}
|
|
9432
|
-
function
|
|
9432
|
+
function Wu() {
|
|
9433
9433
|
!jt || !Rt || (jt = !1, Rt.length ? ct = Rt.concat(ct) : lr = -1, ct.length && ol());
|
|
9434
9434
|
}
|
|
9435
9435
|
function ol() {
|
|
9436
9436
|
if (!jt) {
|
|
9437
|
-
var i = setTimeout(
|
|
9437
|
+
var i = setTimeout(Wu, 0);
|
|
9438
9438
|
jt = !0;
|
|
9439
9439
|
for (var e = ct.length; e; ) {
|
|
9440
9440
|
for (Rt = ct, ct = []; ++lr < e; ) Rt && Rt[lr].run();
|
|
@@ -9443,7 +9443,7 @@ function ol() {
|
|
|
9443
9443
|
Rt = null, jt = !1, clearTimeout(i);
|
|
9444
9444
|
}
|
|
9445
9445
|
}
|
|
9446
|
-
function
|
|
9446
|
+
function zu(i) {
|
|
9447
9447
|
var e = new Array(arguments.length - 1);
|
|
9448
9448
|
if (arguments.length > 1) for (var t = 1; t < arguments.length; t++) e[t - 1] = arguments[t];
|
|
9449
9449
|
ct.push(new sl(i, e)), ct.length === 1 && !jt && setTimeout(ol, 0);
|
|
@@ -9453,25 +9453,25 @@ function sl(i, e) {
|
|
|
9453
9453
|
}
|
|
9454
9454
|
function We() {
|
|
9455
9455
|
}
|
|
9456
|
-
function
|
|
9456
|
+
function Vu(i) {
|
|
9457
9457
|
xo("_linkedBinding");
|
|
9458
9458
|
}
|
|
9459
|
-
function
|
|
9459
|
+
function Ku(i) {
|
|
9460
9460
|
xo("dlopen");
|
|
9461
9461
|
}
|
|
9462
|
-
function
|
|
9462
|
+
function Gu() {
|
|
9463
9463
|
return [];
|
|
9464
9464
|
}
|
|
9465
|
-
function
|
|
9465
|
+
function Yu() {
|
|
9466
9466
|
return [];
|
|
9467
9467
|
}
|
|
9468
|
-
function
|
|
9468
|
+
function Ju(i, e) {
|
|
9469
9469
|
if (!i) throw new Error(e || "assertion error");
|
|
9470
9470
|
}
|
|
9471
|
-
function
|
|
9471
|
+
function Qu() {
|
|
9472
9472
|
return !1;
|
|
9473
9473
|
}
|
|
9474
|
-
function
|
|
9474
|
+
function Xu() {
|
|
9475
9475
|
return pt.now() / 1e3;
|
|
9476
9476
|
}
|
|
9477
9477
|
function nn(i) {
|
|
@@ -9481,7 +9481,7 @@ function nn(i) {
|
|
|
9481
9481
|
function kt() {
|
|
9482
9482
|
return So;
|
|
9483
9483
|
}
|
|
9484
|
-
function
|
|
9484
|
+
function Zu(i) {
|
|
9485
9485
|
return [];
|
|
9486
9486
|
}
|
|
9487
9487
|
var ct, jt, Rt, lr, jo, Uo, Do, Bo, Fo, $o, qo, Ho, Wo, zo, Vo, Ko, Go, Yo, Jo, Qo, Xo, Zo, es, ts, rs, mr, ns, is, os, ss, as, ls, cs, us, ds, hs, fs, ps, ms, gs, bs, ys, vs, ws, _s, ks, xs, Ss, Es, As, Is, pt, on, Rr, Ts, Cs, Ps, Os, Ms, Ls, Rs, Ns, js, Us, Ds, So, al = Je(() => {
|
|
@@ -9501,9 +9501,9 @@ var ct, jt, Rt, lr, jo, Uo, Do, Bo, Fo, $o, qo, Ho, Wo, zo, Vo, Ko, Go, Yo, Jo,
|
|
|
9501
9501
|
}, ns = mr, is = mr, os = We, ss = We, as = We, ls = {}, cs = { inspector: !1, debug: !1, uv: !1, ipv6: !1, tls_alpn: !1, tls_sni: !1, tls_ocsp: !1, tls: !1, cached_builtins: !0 }, us = We, ds = We, hs = We, fs = We, ps = We, ms = We, gs = We, bs = void 0, ys = void 0, vs = void 0, ws = We, _s = 2, ks = 1, xs = "/bin/usr/node", Ss = 9229, Es = "node", As = [], Is = We, pt = { now: typeof performance < "u" ? performance.now.bind(performance) : void 0, timing: typeof performance < "u" ? performance.timing : void 0 }, pt.now === void 0 && (on = Date.now(), pt.timing && pt.timing.navigationStart && (on = pt.timing.navigationStart), pt.now = () => Date.now() - on), Rr = 1e9, nn.bigint = function(i) {
|
|
9502
9502
|
var e = nn(i);
|
|
9503
9503
|
return typeof BigInt > "u" ? e[0] * Rr + e[1] : BigInt(e[0] * Rr) + BigInt(e[1]);
|
|
9504
|
-
}, Ts = 10, Cs = {}, Ps = 0, Os = kt, Ms = kt, Ls = kt, Rs = kt, Ns = kt, js = We, Us = kt, Ds = kt, So = { version: qo, versions: Ho, arch: Uo, platform: Do, release: Yo, _rawDebug: Jo, moduleLoadList: Qo, binding: zo, _linkedBinding:
|
|
9504
|
+
}, Ts = 10, Cs = {}, Ps = 0, Os = kt, Ms = kt, Ls = kt, Rs = kt, Ns = kt, js = We, Us = kt, Ds = kt, So = { version: qo, versions: Ho, arch: Uo, platform: Do, release: Yo, _rawDebug: Jo, moduleLoadList: Qo, binding: zo, _linkedBinding: Vu, _events: Cs, _eventsCount: Ps, _maxListeners: Ts, on: kt, addListener: Os, once: Ms, off: Ls, removeListener: Rs, removeAllListeners: Ns, emit: js, prependListener: Us, prependOnceListener: Ds, listeners: Zu, domain: Xo, _exiting: Zo, config: es, dlopen: Ku, uptime: Xu, _getActiveRequests: Gu, _getActiveHandles: Yu, reallyExit: ts, _kill: rs, cpuUsage: mr, resourceUsage: ns, memoryUsage: is, kill: os, exit: ss, openStdin: as, allowedNodeEnvironmentFlags: ls, assert: Ju, features: cs, _fatalExceptions: us, setUncaughtExceptionCaptureCallback: ds, hasUncaughtExceptionCaptureCallback: Qu, emitWarning: Wo, nextTick: zu, _tickCallback: hs, _debugProcess: fs, _debugEnd: ps, _startProfilerIdleNotifier: ms, _stopProfilerIdleNotifier: gs, stdout: bs, stdin: vs, stderr: ys, abort: ws, umask: Vo, chdir: Go, cwd: Ko, env: Bo, title: jo, argv: Fo, execArgv: $o, pid: _s, ppid: ks, execPath: xs, debugPort: Ss, hrtime: nn, argv0: Es, _preload_modules: As, setSourceMapsEnabled: Is };
|
|
9505
9505
|
});
|
|
9506
|
-
function
|
|
9506
|
+
function ed() {
|
|
9507
9507
|
if (to) return Nr;
|
|
9508
9508
|
to = !0;
|
|
9509
9509
|
var i = So;
|
|
@@ -9654,11 +9654,11 @@ function Zu() {
|
|
|
9654
9654
|
}, sep: "/", delimiter: ":", win32: null, posix: null };
|
|
9655
9655
|
return o.posix = o, Nr = o, Nr;
|
|
9656
9656
|
}
|
|
9657
|
-
var Nr, to, ro,
|
|
9658
|
-
le(), ue(), ce(), al(), Nr = {}, to = !1, ro =
|
|
9657
|
+
var Nr, to, ro, td = Je(() => {
|
|
9658
|
+
le(), ue(), ce(), al(), Nr = {}, to = !1, ro = ed();
|
|
9659
9659
|
}), ll = {};
|
|
9660
9660
|
Gt(ll, { URL: () => yl, Url: () => fl, default: () => ze, fileURLToPath: () => ul, format: () => pl, parse: () => bl, pathToFileURL: () => dl, resolve: () => ml, resolveObject: () => gl });
|
|
9661
|
-
function
|
|
9661
|
+
function rd() {
|
|
9662
9662
|
if (no) return jr;
|
|
9663
9663
|
no = !0;
|
|
9664
9664
|
var i = typeof Map == "function" && Map.prototype, e = Object.getOwnPropertyDescriptor && i ? Object.getOwnPropertyDescriptor(Map.prototype, "size") : null, t = i && e && typeof e.get == "function" ? e.get : null, r = i && Map.prototype.forEach, o = typeof Set == "function" && Set.prototype, n = Object.getOwnPropertyDescriptor && o ? Object.getOwnPropertyDescriptor(Set.prototype, "size") : null, s = o && n && typeof n.get == "function" ? n.get : null, a = o && Set.prototype.forEach, l = typeof WeakMap == "function" && WeakMap.prototype, c = l ? WeakMap.prototype.has : null, u = typeof WeakSet == "function" && WeakSet.prototype, d = u ? WeakSet.prototype.has : null, p = typeof WeakRef == "function" && WeakRef.prototype, g = p ? WeakRef.prototype.deref : null, f = Boolean.prototype.valueOf, b = Object.prototype.toString, y = Function.prototype.toString, w = String.prototype.match, m = String.prototype.slice, _ = String.prototype.replace, x = String.prototype.toUpperCase, v = String.prototype.toLowerCase, S = RegExp.prototype.test, E = Array.prototype.concat, I = Array.prototype.join, P = Array.prototype.slice, O = Math.floor, B = typeof BigInt == "function" ? BigInt.prototype.valueOf : null, T = Object.getOwnPropertySymbols, $ = typeof Symbol == "function" && typeof Symbol.iterator == "symbol" ? Symbol.prototype.toString : null, M = typeof Symbol == "function" && typeof Symbol.iterator == "object", U = typeof Symbol == "function" && Symbol.toStringTag && (typeof Symbol.toStringTag === M || !0) ? Symbol.toStringTag : null, oe = Object.prototype.propertyIsEnumerable, Y = (typeof Reflect == "function" ? Reflect.getPrototypeOf : Object.getPrototypeOf) || ([].__proto__ === Array.prototype ? function(V) {
|
|
@@ -9953,10 +9953,10 @@ function td() {
|
|
|
9953
9953
|
}
|
|
9954
9954
|
return jr;
|
|
9955
9955
|
}
|
|
9956
|
-
function
|
|
9956
|
+
function nd() {
|
|
9957
9957
|
if (io) return Dr;
|
|
9958
9958
|
io = !0;
|
|
9959
|
-
var i = Qt(), e =
|
|
9959
|
+
var i = Qt(), e = qu(), t = rd(), r = hr(), o = i("%WeakMap%", !0), n = i("%Map%", !0), s = e("WeakMap.prototype.get", !0), a = e("WeakMap.prototype.set", !0), l = e("WeakMap.prototype.has", !0), c = e("Map.prototype.get", !0), u = e("Map.prototype.set", !0), d = e("Map.prototype.has", !0), p = function(y, w) {
|
|
9960
9960
|
for (var m = y, _; (_ = m.next) !== null; m = _) if (_.key === w) return m.next = _.next, _.next = y.next, y.next = _, _;
|
|
9961
9961
|
}, g = function(y, w) {
|
|
9962
9962
|
var m = p(y, w);
|
|
@@ -10098,10 +10098,10 @@ function cl() {
|
|
|
10098
10098
|
};
|
|
10099
10099
|
return Fr = { arrayToObject: n, assign: a, combine: f, compact: d, decode: l, encode: u, isBuffer: g, isRegExp: p, maybeMap: b, merge: s }, Fr;
|
|
10100
10100
|
}
|
|
10101
|
-
function
|
|
10101
|
+
function id() {
|
|
10102
10102
|
if (ao) return $r;
|
|
10103
10103
|
ao = !0;
|
|
10104
|
-
var i =
|
|
10104
|
+
var i = nd(), e = cl(), t = Eo(), r = Object.prototype.hasOwnProperty, o = { brackets: function(b) {
|
|
10105
10105
|
return b + "[]";
|
|
10106
10106
|
}, comma: "comma", indices: function(b, y) {
|
|
10107
10107
|
return b + "[" + y + "]";
|
|
@@ -10190,7 +10190,7 @@ function nd() {
|
|
|
10190
10190
|
return m.charsetSentinel && (m.charset === "iso-8859-1" ? T += "utf8=%26%2310003%3B&" : T += "utf8=%E2%9C%93&"), B.length > 0 ? T + B : "";
|
|
10191
10191
|
}, $r;
|
|
10192
10192
|
}
|
|
10193
|
-
function
|
|
10193
|
+
function od() {
|
|
10194
10194
|
if (lo) return qr;
|
|
10195
10195
|
lo = !0;
|
|
10196
10196
|
var i = cl(), e = Object.prototype.hasOwnProperty, t = Array.isArray, r = { allowDots: !1, allowEmptyArrays: !1, allowPrototypes: !1, allowSparse: !1, arrayLimit: 20, charset: "utf-8", charsetSentinel: !1, comma: !1, decodeDotInKeys: !1, decoder: i.decode, delimiter: "&", depth: 5, duplicates: "combine", ignoreQueryPrefix: !1, interpretNumericEntities: !1, parameterLimit: 1e3, parseArrays: !0, plainObjects: !1, strictDepth: !1, strictNullHandling: !1 }, o = function(p) {
|
|
@@ -10263,13 +10263,13 @@ function id() {
|
|
|
10263
10263
|
return f.allowSparse === !0 ? y : i.compact(y);
|
|
10264
10264
|
}, qr;
|
|
10265
10265
|
}
|
|
10266
|
-
function
|
|
10266
|
+
function sd() {
|
|
10267
10267
|
if (co) return Hr;
|
|
10268
10268
|
co = !0;
|
|
10269
|
-
var i =
|
|
10269
|
+
var i = id(), e = od(), t = Eo();
|
|
10270
10270
|
return Hr = { formats: t, parse: e, stringify: i }, Hr;
|
|
10271
10271
|
}
|
|
10272
|
-
function
|
|
10272
|
+
function ad() {
|
|
10273
10273
|
if (uo) return It;
|
|
10274
10274
|
uo = !0;
|
|
10275
10275
|
var i = At;
|
|
@@ -10277,7 +10277,7 @@ function sd() {
|
|
|
10277
10277
|
this.protocol = null, this.slashes = null, this.auth = null, this.host = null, this.port = null, this.hostname = null, this.hash = null, this.search = null, this.query = null, this.pathname = null, this.path = null, this.href = null;
|
|
10278
10278
|
}
|
|
10279
10279
|
var t = /^([a-z0-9.+-]+:)/i, r = /:[0-9]*$/, o = /^(\/\/?(?!\/)[^?\s]*)(\?[^\s]*)?$/, n = ["<", ">", '"', "`", " ", "\r", `
|
|
10280
|
-
`, " "], s = ["{", "}", "|", "\\", "^", "`"].concat(n), a = ["'"].concat(s), l = ["%", "/", "?", ";", "#"].concat(a), c = ["/", "?", "#"], u = 255, d = /^[+a-z0-9A-Z_-]{0,63}$/, p = /^([+a-z0-9A-Z_-]{0,63})(.*)$/, g = { javascript: !0, "javascript:": !0 }, f = { javascript: !0, "javascript:": !0 }, b = { http: !0, https: !0, ftp: !0, gopher: !0, file: !0, "http:": !0, "https:": !0, "ftp:": !0, "gopher:": !0, "file:": !0 }, y =
|
|
10280
|
+
`, " "], s = ["{", "}", "|", "\\", "^", "`"].concat(n), a = ["'"].concat(s), l = ["%", "/", "?", ";", "#"].concat(a), c = ["/", "?", "#"], u = 255, d = /^[+a-z0-9A-Z_-]{0,63}$/, p = /^([+a-z0-9A-Z_-]{0,63})(.*)$/, g = { javascript: !0, "javascript:": !0 }, f = { javascript: !0, "javascript:": !0 }, b = { http: !0, https: !0, ftp: !0, gopher: !0, file: !0, "http:": !0, "https:": !0, "ftp:": !0, "gopher:": !0, "file:": !0 }, y = sd();
|
|
10281
10281
|
function w(v, S, E) {
|
|
10282
10282
|
if (v && typeof v == "object" && v instanceof e) return v;
|
|
10283
10283
|
var I = new e();
|
|
@@ -10434,9 +10434,9 @@ function ul(i) {
|
|
|
10434
10434
|
if (typeof i == "string") i = new URL(i);
|
|
10435
10435
|
else if (!(i instanceof URL)) throw new Deno.errors.InvalidData("invalid argument path , must be a string or URL");
|
|
10436
10436
|
if (i.protocol !== "file:") throw new Deno.errors.InvalidData("invalid url scheme");
|
|
10437
|
-
return Vr ?
|
|
10437
|
+
return Vr ? ld(i) : cd(i);
|
|
10438
10438
|
}
|
|
10439
|
-
function
|
|
10439
|
+
function ld(i) {
|
|
10440
10440
|
let e = i.hostname, t = i.pathname;
|
|
10441
10441
|
for (let r = 0; r < t.length; r++) if (t[r] === "%") {
|
|
10442
10442
|
let o = t.codePointAt(r + 2) || 32;
|
|
@@ -10449,7 +10449,7 @@ function ad(i) {
|
|
|
10449
10449
|
return t.slice(1);
|
|
10450
10450
|
}
|
|
10451
10451
|
}
|
|
10452
|
-
function
|
|
10452
|
+
function cd(i) {
|
|
10453
10453
|
if (i.hostname !== "") throw new Deno.errors.InvalidData("invalid file url hostname");
|
|
10454
10454
|
let e = i.pathname;
|
|
10455
10455
|
for (let t = 0; t < e.length; t++) if (e[t] === "%") {
|
|
@@ -10465,9 +10465,9 @@ function dl(i) {
|
|
|
10465
10465
|
return e.includes("%") && (e = e.replace(Sl, "%25")), !Vr && e.includes("\\") && (e = e.replace(El, "%5C")), e.includes(`
|
|
10466
10466
|
`) && (e = e.replace(Al, "%0A")), e.includes("\r") && (e = e.replace(Il, "%0D")), e.includes(" ") && (e = e.replace(Tl, "%09")), r.pathname = e, r;
|
|
10467
10467
|
}
|
|
10468
|
-
var hl, jr, no, Ur, Dr, io, Br, oo, Fr, so, $r, ao, qr, lo, Hr, co, It, uo, ze, Bs, fl, pl, ml, gl, bl, yl, vl, wl, _l, kl, Vr, xl, Sl, El, Al, Il, Tl,
|
|
10469
|
-
le(), ue(), ce(),
|
|
10470
|
-
}),
|
|
10468
|
+
var hl, jr, no, Ur, Dr, io, Br, oo, Fr, so, $r, ao, qr, lo, Hr, co, It, uo, ze, Bs, fl, pl, ml, gl, bl, yl, vl, wl, _l, kl, Vr, xl, Sl, El, Al, Il, Tl, ud = Je(() => {
|
|
10469
|
+
le(), ue(), ce(), Iu(), Hu(), td(), al(), hl = Object.freeze(/* @__PURE__ */ Object.create(null)), jr = {}, no = !1, Ur = typeof globalThis < "u" ? globalThis : typeof self < "u" ? self : global, Dr = {}, io = !1, Br = {}, oo = !1, Fr = {}, so = !1, $r = {}, ao = !1, qr = {}, lo = !1, Hr = {}, co = !1, It = {}, uo = !1, ze = ad(), ze.parse, ze.resolve, ze.resolveObject, ze.format, ze.Url, Bs = typeof Deno < "u" ? Deno.build.os === "windows" ? "win32" : Deno.build.os : void 0, ze.URL = typeof URL < "u" ? URL : null, ze.pathToFileURL = dl, ze.fileURLToPath = ul, fl = ze.Url, pl = ze.format, ml = ze.resolve, gl = ze.resolveObject, bl = ze.parse, yl = ze.URL, vl = 92, wl = 47, _l = 97, kl = 122, Vr = Bs === "win32", xl = /\//g, Sl = /%/g, El = /\\/g, Al = /\n/g, Il = /\r/g, Tl = /\t/g;
|
|
10470
|
+
}), dd = pe((i, e) => {
|
|
10471
10471
|
le(), ue(), ce(), e.exports = function() {
|
|
10472
10472
|
throw new Error("ws does not work in the browser. Browser clients must use the native WebSocket object");
|
|
10473
10473
|
};
|
|
@@ -10521,7 +10521,7 @@ var hl, jr, no, Ur, Dr, io, Br, oo, Fr, so, $r, ao, qr, lo, Hr, co, It, uo, ze,
|
|
|
10521
10521
|
return w && w.__esModule ? w : { default: w };
|
|
10522
10522
|
};
|
|
10523
10523
|
Object.defineProperty(i, "__esModule", { value: !0 }), i.streamBuilder = i.browserStreamBuilder = void 0;
|
|
10524
|
-
var t = ($e(), Re(Fe)), r = e(
|
|
10524
|
+
var t = ($e(), Re(Fe)), r = e(dd()), o = e(gt()), n = Bt(), s = e(Zr()), a = Ao(), l = (0, o.default)("mqttjs:ws"), c = ["rejectUnauthorized", "ca", "cert", "key", "pfx", "passphrase"];
|
|
10525
10525
|
function u(w, m) {
|
|
10526
10526
|
let _ = `${w.protocol}://${w.hostname}:${w.port}${w.path}`;
|
|
10527
10527
|
return typeof w.transformWsUrl == "function" && (_ = w.transformWsUrl(_, w, m)), _;
|
|
@@ -10632,7 +10632,7 @@ var Cl, Pl = Je(() => {
|
|
|
10632
10632
|
i.default = s;
|
|
10633
10633
|
}), Ml = {};
|
|
10634
10634
|
Gt(Ml, { default: () => Ll });
|
|
10635
|
-
var Ll,
|
|
10635
|
+
var Ll, hd = Je(() => {
|
|
10636
10636
|
le(), ue(), ce(), Ll = {};
|
|
10637
10637
|
}), $s = pe((i) => {
|
|
10638
10638
|
le(), ue(), ce();
|
|
@@ -10640,7 +10640,7 @@ var Ll, dd = Je(() => {
|
|
|
10640
10640
|
return c && c.__esModule ? c : { default: c };
|
|
10641
10641
|
};
|
|
10642
10642
|
Object.defineProperty(i, "__esModule", { value: !0 });
|
|
10643
|
-
var t = (
|
|
10643
|
+
var t = (hd(), Re(Ml)), r = e((Pl(), Re(Io))), o = e(gt()), n = e(Ol()), s = (0, o.default)("mqttjs:tls");
|
|
10644
10644
|
function a(c) {
|
|
10645
10645
|
let { host: u, port: d, socksProxy: p, ...g } = c;
|
|
10646
10646
|
if (p !== void 0) {
|
|
@@ -10771,13 +10771,13 @@ var Ll, dd = Je(() => {
|
|
|
10771
10771
|
return o = f.my, o.connectSocket({ url: y, protocols: b }), n = l(), s = new r.BufferedDuplex(f, n, o), d(), s;
|
|
10772
10772
|
};
|
|
10773
10773
|
i.default = p;
|
|
10774
|
-
}),
|
|
10774
|
+
}), fd = pe((i) => {
|
|
10775
10775
|
le(), ue(), ce();
|
|
10776
10776
|
var e = i && i.__importDefault || function(d) {
|
|
10777
10777
|
return d && d.__esModule ? d : { default: d };
|
|
10778
10778
|
};
|
|
10779
10779
|
Object.defineProperty(i, "__esModule", { value: !0 }), i.connectAsync = u;
|
|
10780
|
-
var t = e(gt()), r = e((
|
|
10780
|
+
var t = e(gt()), r = e((ud(), Re(ll))), o = e(xi()), n = e(Zr());
|
|
10781
10781
|
typeof Ne?.nextTick != "function" && (Ne.nextTick = setImmediate);
|
|
10782
10782
|
var s = (0, t.default)("mqttjs"), a = null;
|
|
10783
10783
|
function l(d) {
|
|
@@ -10885,11 +10885,11 @@ var Ll, dd = Je(() => {
|
|
|
10885
10885
|
i.MqttClient = s.default;
|
|
10886
10886
|
var a = n(Ya());
|
|
10887
10887
|
i.DefaultMessageIdProvider = a.default;
|
|
10888
|
-
var l = n(
|
|
10888
|
+
var l = n(Eu());
|
|
10889
10889
|
i.UniqueMessageIdProvider = l.default;
|
|
10890
10890
|
var c = n(Ma());
|
|
10891
10891
|
i.Store = c.default;
|
|
10892
|
-
var u = r(
|
|
10892
|
+
var u = r(fd());
|
|
10893
10893
|
i.connect = u.default, Object.defineProperty(i, "connectAsync", { enumerable: !0, get: function() {
|
|
10894
10894
|
return u.connectAsync;
|
|
10895
10895
|
} });
|
|
@@ -10899,7 +10899,7 @@ var Ll, dd = Je(() => {
|
|
|
10899
10899
|
Object.defineProperty(i, "ReasonCodes", { enumerable: !0, get: function() {
|
|
10900
10900
|
return p.ReasonCodes;
|
|
10901
10901
|
} });
|
|
10902
|
-
}),
|
|
10902
|
+
}), pd = pe((i) => {
|
|
10903
10903
|
le(), ue(), ce();
|
|
10904
10904
|
var e = i && i.__createBinding || (Object.create ? function(s, a, l, c) {
|
|
10905
10905
|
c === void 0 && (c = l);
|
|
@@ -10934,25 +10934,25 @@ var Ll, dd = Je(() => {
|
|
|
10934
10934
|
var n = r(Ws());
|
|
10935
10935
|
i.default = n, o(Ws(), i);
|
|
10936
10936
|
});
|
|
10937
|
-
const
|
|
10938
|
-
const
|
|
10937
|
+
const md = pd();
|
|
10938
|
+
const gd = {
|
|
10939
10939
|
inbound: "apps/{appId}/users/{userId}/messages/{conversationId}/clientadded",
|
|
10940
10940
|
inboundUpdate: "apps/{appId}/users/{userId}/messages/{conversationId}/{messageId}/update",
|
|
10941
10941
|
outbound: "apps/{appId}/outgoing/users/{userId}/messages/{conversationId}/outgoing",
|
|
10942
10942
|
presence: "apps/{appId}/users/{userId}/presence/{clientId}",
|
|
10943
10943
|
wildcardSubscribe: "apps/{appId}/users/{userId}/#"
|
|
10944
|
-
},
|
|
10944
|
+
}, bd = 300, yd = {
|
|
10945
10945
|
templateId: "7",
|
|
10946
10946
|
type: "link",
|
|
10947
10947
|
isDeepLink: !0
|
|
10948
|
-
},
|
|
10948
|
+
}, vd = {
|
|
10949
10949
|
channelType: "group",
|
|
10950
10950
|
channel: "chat21",
|
|
10951
10951
|
requestChannel: "chat21",
|
|
10952
10952
|
platform: "WEBSITE",
|
|
10953
10953
|
medium: "CHATBUDDY"
|
|
10954
10954
|
};
|
|
10955
|
-
class
|
|
10955
|
+
class wd {
|
|
10956
10956
|
client = null;
|
|
10957
10957
|
config;
|
|
10958
10958
|
currentToken;
|
|
@@ -10979,7 +10979,7 @@ class vd {
|
|
|
10979
10979
|
inboundRegex;
|
|
10980
10980
|
inboundUpdateRegex;
|
|
10981
10981
|
constructor(e) {
|
|
10982
|
-
this.config = e, this.currentToken = e.jwtToken, this.appId = e.appId ?? "tilechat", this.clientId = e.clientId ?? this.freshClientId(), this.topics = { ...
|
|
10982
|
+
this.config = e, this.currentToken = e.jwtToken, this.appId = e.appId ?? "tilechat", this.clientId = e.clientId ?? this.freshClientId(), this.topics = { ...gd, ...e.topicTemplates ?? {} }, this.maxReconnectAttempts = e.maxReconnectAttempts ?? 1 / 0, this.reconnectMaxDelayMs = e.reconnectMaxDelayMs ?? 3e4, this.inboundRegex = this.buildTopicRegex(
|
|
10983
10983
|
this.topics.inbound,
|
|
10984
10984
|
["conversationId"]
|
|
10985
10985
|
), this.inboundUpdateRegex = this.buildTopicRegex(
|
|
@@ -11031,7 +11031,7 @@ class vd {
|
|
|
11031
11031
|
() => c("connect-timeout"),
|
|
11032
11032
|
r + 500
|
|
11033
11033
|
);
|
|
11034
|
-
this.client =
|
|
11034
|
+
this.client = md.connect(this.config.mqttEndpoint, o), this.client.on("connect", () => {
|
|
11035
11035
|
if (this.connectedAt = Date.now(), a || l(() => n()), this.debugLog("CONNECT", { endpoint: this.config.mqttEndpoint, clientId: this.clientId }), this.notifyStateChange(!0), this.config.enablePresence !== !1) {
|
|
11036
11036
|
const d = this.config.presencePayloadConnected ?? { connected: !0 };
|
|
11037
11037
|
this.client.publish(e, JSON.stringify(d), { qos: 0, retain: !1 }), this.debugLog("PUBLISH", { topic: e, payload: d });
|
|
@@ -11096,9 +11096,9 @@ class vd {
|
|
|
11096
11096
|
publishFileMessage(e, t) {
|
|
11097
11097
|
if (!this.client) return;
|
|
11098
11098
|
const r = {
|
|
11099
|
-
...
|
|
11099
|
+
...yd,
|
|
11100
11100
|
...this.config.fileTemplate ?? {},
|
|
11101
|
-
...
|
|
11101
|
+
..._d(t)
|
|
11102
11102
|
}, o = {
|
|
11103
11103
|
metadata: {
|
|
11104
11104
|
contentType: "300",
|
|
@@ -11137,7 +11137,7 @@ class vd {
|
|
|
11137
11137
|
* Send a read receipt for a message. Tiledesk widgets publish
|
|
11138
11138
|
* `{"status":300}` to apps/{appId}/users/{userId}/messages/{convId}/{msgId}/update.
|
|
11139
11139
|
*/
|
|
11140
|
-
publishReadReceipt(e, t, r =
|
|
11140
|
+
publishReadReceipt(e, t, r = bd) {
|
|
11141
11141
|
if (!this.client) return;
|
|
11142
11142
|
const o = this.renderTemplate(this.topics.inboundUpdate, { conversationId: e, messageId: t });
|
|
11143
11143
|
this.client.publish(o, JSON.stringify({ status: r }), {
|
|
@@ -11268,7 +11268,7 @@ class vd {
|
|
|
11268
11268
|
this.messageHandlers.forEach((c) => c(o, l));
|
|
11269
11269
|
}
|
|
11270
11270
|
buildOutgoingEnvelope(e, t) {
|
|
11271
|
-
const r = { ...
|
|
11271
|
+
const r = { ...vd, ...this.config.messageDefaults ?? {} }, o = this.config.senderFullname ?? this.config.userName ?? this.config.userId, n = this.config.recipientFullnameResolver?.(e), s = {
|
|
11272
11272
|
projectId: this.config.projectId,
|
|
11273
11273
|
...r.departmentId ? { departmentId: r.departmentId } : {},
|
|
11274
11274
|
...this.config.userName ? { userFullname: this.config.userName } : {},
|
|
@@ -11342,16 +11342,16 @@ class vd {
|
|
|
11342
11342
|
return new RegExp(`^${r}$`);
|
|
11343
11343
|
}
|
|
11344
11344
|
}
|
|
11345
|
-
function
|
|
11345
|
+
function _d(i) {
|
|
11346
11346
|
const e = {};
|
|
11347
11347
|
for (const [t, r] of Object.entries(i))
|
|
11348
11348
|
r !== void 0 && (e[t] = r);
|
|
11349
11349
|
return e;
|
|
11350
11350
|
}
|
|
11351
|
-
function
|
|
11351
|
+
function kd(i, e) {
|
|
11352
11352
|
return (i.sender ?? "").toString() === e;
|
|
11353
11353
|
}
|
|
11354
|
-
function
|
|
11354
|
+
function xd(i, e) {
|
|
11355
11355
|
const t = (i.sender ?? "").toString(), r = e.systemSenders ?? ["metadata", "system"], o = e.botSenderPrefix ?? "bot_";
|
|
11356
11356
|
return t ? t === e.userId ? "user" : t.startsWith(o) ? "assistant" : r.includes(t) ? "system" : "agent" : "system";
|
|
11357
11357
|
}
|
|
@@ -11372,7 +11372,7 @@ function Rl(i) {
|
|
|
11372
11372
|
}
|
|
11373
11373
|
return e;
|
|
11374
11374
|
}
|
|
11375
|
-
function
|
|
11375
|
+
function Sd(i) {
|
|
11376
11376
|
const e = Rl(i);
|
|
11377
11377
|
if (e.contentType !== "300") return null;
|
|
11378
11378
|
const t = e.payload, r = t && Array.isArray(t.elements) ? t.elements : null;
|
|
@@ -11386,10 +11386,10 @@ function xd(i) {
|
|
|
11386
11386
|
};
|
|
11387
11387
|
}
|
|
11388
11388
|
function zs(i, e, t) {
|
|
11389
|
-
const r =
|
|
11389
|
+
const r = xd(i, t), o = Rl(i), n = Sd(i);
|
|
11390
11390
|
let s = "";
|
|
11391
11391
|
o.innerMessage ? s = o.innerMessage : typeof i.text == "string" && (i.text.trim().startsWith("{") ? o.contentType !== "300" && (s = i.text) : s = i.text);
|
|
11392
|
-
const a = typeof i.message_id == "string" ? i.message_id : `td_${Date.now()}_${Math.random().toString(36).slice(2, 8)}`, l = typeof i.timestamp == "number" ? new Date(i.timestamp).toISOString() : (/* @__PURE__ */ new Date()).toISOString(), c = r === "assistant" ? "assistant" : r === "agent" ? "agent" : r === "system" ? "system" : "user", u = typeof i.status == "number" ?
|
|
11392
|
+
const a = typeof i.message_id == "string" ? i.message_id : `td_${Date.now()}_${Math.random().toString(36).slice(2, 8)}`, l = typeof i.timestamp == "number" ? new Date(i.timestamp).toISOString() : (/* @__PURE__ */ new Date()).toISOString(), c = r === "assistant" ? "assistant" : r === "agent" ? "agent" : r === "system" ? "system" : "user", u = typeof i.status == "number" ? Ed(i.status) : "delivered", d = {
|
|
11393
11393
|
id: a,
|
|
11394
11394
|
externalId: a,
|
|
11395
11395
|
conversationId: e,
|
|
@@ -11416,10 +11416,10 @@ function zs(i, e, t) {
|
|
|
11416
11416
|
}
|
|
11417
11417
|
]), { message: d, template: o };
|
|
11418
11418
|
}
|
|
11419
|
-
function
|
|
11419
|
+
function Ed(i) {
|
|
11420
11420
|
return i < 0 ? "error" : i >= 250 ? "read" : i >= 150 ? "delivered" : "sent";
|
|
11421
11421
|
}
|
|
11422
|
-
class
|
|
11422
|
+
class Ad extends ta {
|
|
11423
11423
|
connection = null;
|
|
11424
11424
|
tiledesk = null;
|
|
11425
11425
|
api;
|
|
@@ -11432,7 +11432,7 @@ class Ed extends ta {
|
|
|
11432
11432
|
historyAdapter;
|
|
11433
11433
|
tiledeskUnsubs = [];
|
|
11434
11434
|
constructor(e, t) {
|
|
11435
|
-
super(), this.config = e, this.mode = e.transport ?? "aikaara", this.uploadAdapter = t?.uploadAdapter ?? null, this.historyAdapter = t?.historyAdapter ?? null, this.api = new
|
|
11435
|
+
super(), this.config = e, this.mode = e.transport ?? "aikaara", this.uploadAdapter = t?.uploadAdapter ?? null, this.historyAdapter = t?.historyAdapter ?? null, this.api = new oc(e.baseUrl, e.userToken, e.apiKey, e.authToken), this.messageStore = new sc(), this.conversationManager = new ac(e.conversationId), this.usesAikaara() && (this.connection = new ic(e), this.connection.on("connection:state", (r) => {
|
|
11436
11436
|
this.emit("connection:state", r), this.config.onConnectionStateChange?.(r);
|
|
11437
11437
|
}), this.connection.on("error", (r) => {
|
|
11438
11438
|
this.emit("error", r), this.config.onError?.(r);
|
|
@@ -11452,7 +11452,7 @@ class Ed extends ta {
|
|
|
11452
11452
|
throw new Error("AikaaraChatClient: tiledesk transport requires `config.tiledesk` (TiledeskTransportConfig)");
|
|
11453
11453
|
if (!t?.userId)
|
|
11454
11454
|
throw new Error("AikaaraChatClient: tiledesk transport requires `config.tiledeskIdentity.userId`");
|
|
11455
|
-
this.tiledesk = new
|
|
11455
|
+
this.tiledesk = new wd({
|
|
11456
11456
|
...e,
|
|
11457
11457
|
userId: t.userId,
|
|
11458
11458
|
userName: t.userName ?? e.userName,
|
|
@@ -11668,7 +11668,7 @@ class Ed extends ta {
|
|
|
11668
11668
|
systemSenders: this.config.tiledesk?.messageDefaults?.attributes?.systemSenders
|
|
11669
11669
|
});
|
|
11670
11670
|
if (this.mode === "dual" && s.role === "assistant") return;
|
|
11671
|
-
if (
|
|
11671
|
+
if (kd(e, n)) {
|
|
11672
11672
|
const u = this.messageStore.reconcileOptimistic(s);
|
|
11673
11673
|
if (u) {
|
|
11674
11674
|
this.emit("message:updated", u);
|
|
@@ -11818,12 +11818,12 @@ const Vs = {
|
|
|
11818
11818
|
doc: "application/msword",
|
|
11819
11819
|
json: "application/json"
|
|
11820
11820
|
};
|
|
11821
|
-
function
|
|
11821
|
+
function Id(i) {
|
|
11822
11822
|
const e = i.lastIndexOf(".");
|
|
11823
11823
|
return e < 0 || e === i.length - 1 ? "" : i.slice(e + 1).toLowerCase();
|
|
11824
11824
|
}
|
|
11825
|
-
function
|
|
11826
|
-
const r =
|
|
11825
|
+
function Td(i, e, t) {
|
|
11826
|
+
const r = Id(i.name || "");
|
|
11827
11827
|
if (r && e && e[r]) return e[r];
|
|
11828
11828
|
const o = i.type;
|
|
11829
11829
|
return o && o.trim().length > 0 ? o : r && Vs[r] ? Vs[r] : t;
|
|
@@ -11831,7 +11831,7 @@ function Id(i, e, t) {
|
|
|
11831
11831
|
function sn(i, e) {
|
|
11832
11832
|
return i.replace(/\{(\w+)\}/g, (t, r) => e[r] ?? "");
|
|
11833
11833
|
}
|
|
11834
|
-
function
|
|
11834
|
+
function Cd(i, e) {
|
|
11835
11835
|
const t = e.split(".");
|
|
11836
11836
|
let r = i;
|
|
11837
11837
|
for (const o of t)
|
|
@@ -11840,11 +11840,11 @@ function Td(i, e) {
|
|
|
11840
11840
|
else return "";
|
|
11841
11841
|
return typeof r == "string" ? r : "";
|
|
11842
11842
|
}
|
|
11843
|
-
function
|
|
11843
|
+
function Pd(i) {
|
|
11844
11844
|
const e = i.signedUrlPath || "data.s3SignedUrl";
|
|
11845
11845
|
return {
|
|
11846
11846
|
async upload(t, r) {
|
|
11847
|
-
const o = t.name || `upload-${Date.now()}`, n =
|
|
11847
|
+
const o = t.name || `upload-${Date.now()}`, n = Td(
|
|
11848
11848
|
t,
|
|
11849
11849
|
i.contentTypeMap,
|
|
11850
11850
|
i.contentTypeFallback ?? "application/octet-stream"
|
|
@@ -11870,7 +11870,7 @@ function Cd(i) {
|
|
|
11870
11870
|
});
|
|
11871
11871
|
if (!d.ok)
|
|
11872
11872
|
throw new Error(`Sign request failed: ${d.status}`);
|
|
11873
|
-
const p = await d.json().catch(() => ({})), g =
|
|
11873
|
+
const p = await d.json().catch(() => ({})), g = Cd(p, e);
|
|
11874
11874
|
if (!g) throw new Error(`Sign response missing path "${e}"`);
|
|
11875
11875
|
const f = i.s3HostRewrite ? g.replace(/^https:\/\/[^/]+/i, i.s3HostRewrite) : g, b = await fetch(f, {
|
|
11876
11876
|
method: "PUT",
|
|
@@ -11937,9 +11937,9 @@ function Nl(i) {
|
|
|
11937
11937
|
}
|
|
11938
11938
|
};
|
|
11939
11939
|
}
|
|
11940
|
-
const
|
|
11941
|
-
function
|
|
11942
|
-
const e = i.apiBase.replace(/\/$/, ""), t = i.pageSize ?? 200, r = i.pathTemplate ??
|
|
11940
|
+
const Od = "/tilechat/{userId}/conversations/{conversationId}/messages?pageSize={pageSize}";
|
|
11941
|
+
function Md(i) {
|
|
11942
|
+
const e = i.apiBase.replace(/\/$/, ""), t = i.pageSize ?? 200, r = i.pathTemplate ?? Od;
|
|
11943
11943
|
return {
|
|
11944
11944
|
async fetchMessages(o, n) {
|
|
11945
11945
|
const s = r.replace("{userId}", encodeURIComponent(n.userId)).replace("{conversationId}", encodeURIComponent(o)).replace("{appId}", encodeURIComponent(n.appId ?? "tilechat")).replace("{projectId}", encodeURIComponent(n.projectId ?? "")).replace("{pageSize}", String(t)), a = s.startsWith("http") ? s : `${e}${s.startsWith("/") ? s : `/${s}`}`, l = {
|
|
@@ -11965,7 +11965,7 @@ function Od(i) {
|
|
|
11965
11965
|
}
|
|
11966
11966
|
};
|
|
11967
11967
|
}
|
|
11968
|
-
const
|
|
11968
|
+
const Ld = "^[A-Z]{4}[0-9]{5}[A-Z]$", Rd = "^[A-Z]{4}0[A-Z0-9]{6}$", jl = "^[0-9]{6}$", Nd = {
|
|
11969
11969
|
id: "house-property",
|
|
11970
11970
|
title: "House Property",
|
|
11971
11971
|
icon: "🏠",
|
|
@@ -11991,25 +11991,23 @@ const Md = "^[A-Z]{4}[0-9]{5}[A-Z]$", Ld = "^[A-Z]{4}0[A-Z0-9]{6}$", jl = "^[0-9
|
|
|
11991
11991
|
id: "homeLoanDetails",
|
|
11992
11992
|
type: "group",
|
|
11993
11993
|
title: "Home Loan Details",
|
|
11994
|
+
// Nothing here is required. The whole block is optional, and a user who
|
|
11995
|
+
// only knows one detail (say the bank, or just the interest paid) must
|
|
11996
|
+
// still be able to save — the save itself fires as soon as any single
|
|
11997
|
+
// loan field is filled, so requiring three of them blocked exactly the
|
|
11998
|
+
// partial entry this section is meant to capture.
|
|
11994
11999
|
fields: [
|
|
11995
|
-
{
|
|
11996
|
-
id: "lenderName",
|
|
11997
|
-
type: "text",
|
|
11998
|
-
label: "Bank / Institute Name",
|
|
11999
|
-
required: !0
|
|
12000
|
-
},
|
|
12000
|
+
{ id: "lenderName", type: "text", label: "Bank / Institute Name" },
|
|
12001
12001
|
{
|
|
12002
12002
|
id: "sanctionDate",
|
|
12003
12003
|
type: "date",
|
|
12004
12004
|
label: "Loan Sanction Date",
|
|
12005
|
-
format: "DD/MM/YYYY"
|
|
12006
|
-
required: !0
|
|
12005
|
+
format: "DD/MM/YYYY"
|
|
12007
12006
|
},
|
|
12008
12007
|
{
|
|
12009
12008
|
id: "loanAccountNumber",
|
|
12010
12009
|
type: "text",
|
|
12011
|
-
label: "Loan Account No."
|
|
12012
|
-
required: !0
|
|
12010
|
+
label: "Loan Account No."
|
|
12013
12011
|
},
|
|
12014
12012
|
{
|
|
12015
12013
|
id: "totalLoanAmount",
|
|
@@ -12039,7 +12037,7 @@ const Md = "^[A-Z]{4}[0-9]{5}[A-Z]$", Ld = "^[A-Z]{4}0[A-Z0-9]{6}$", jl = "^[0-9
|
|
|
12039
12037
|
}
|
|
12040
12038
|
],
|
|
12041
12039
|
submitLabel: "Save"
|
|
12042
|
-
},
|
|
12040
|
+
}, jd = {
|
|
12043
12041
|
id: "salary-hra",
|
|
12044
12042
|
title: "Salary / HRA / Allowances",
|
|
12045
12043
|
icon: "💰",
|
|
@@ -12064,7 +12062,7 @@ const Md = "^[A-Z]{4}[0-9]{5}[A-Z]$", Ld = "^[A-Z]{4}0[A-Z0-9]{6}$", jl = "^[0-9
|
|
|
12064
12062
|
// Optional: the pattern check only fires on a non-empty value, so a
|
|
12065
12063
|
// blank TAN saves cleanly while a malformed one is still caught.
|
|
12066
12064
|
label: "TAN (Tax Deduction Account Number)",
|
|
12067
|
-
pattern:
|
|
12065
|
+
pattern: Ld,
|
|
12068
12066
|
maxLength: 10
|
|
12069
12067
|
}
|
|
12070
12068
|
]
|
|
@@ -12092,7 +12090,7 @@ const Md = "^[A-Z]{4}[0-9]{5}[A-Z]$", Ld = "^[A-Z]{4}0[A-Z0-9]{6}$", jl = "^[0-9
|
|
|
12092
12090
|
}
|
|
12093
12091
|
],
|
|
12094
12092
|
submitLabel: "Save"
|
|
12095
|
-
},
|
|
12093
|
+
}, Ud = {
|
|
12096
12094
|
id: "deductions",
|
|
12097
12095
|
title: "Deductions",
|
|
12098
12096
|
icon: "📋",
|
|
@@ -12313,7 +12311,7 @@ const Md = "^[A-Z]{4}[0-9]{5}[A-Z]$", Ld = "^[A-Z]{4}0[A-Z0-9]{6}$", jl = "^[0-9
|
|
|
12313
12311
|
}
|
|
12314
12312
|
],
|
|
12315
12313
|
submitLabel: "Save"
|
|
12316
|
-
},
|
|
12314
|
+
}, Dd = {
|
|
12317
12315
|
id: "other-sources",
|
|
12318
12316
|
title: "Income from Other Sources",
|
|
12319
12317
|
icon: "💵",
|
|
@@ -12369,7 +12367,7 @@ const Md = "^[A-Z]{4}[0-9]{5}[A-Z]$", Ld = "^[A-Z]{4}0[A-Z0-9]{6}$", jl = "^[0-9
|
|
|
12369
12367
|
}
|
|
12370
12368
|
],
|
|
12371
12369
|
submitLabel: "Save"
|
|
12372
|
-
},
|
|
12370
|
+
}, Bd = {
|
|
12373
12371
|
id: "crypto-income",
|
|
12374
12372
|
title: "Crypto Income",
|
|
12375
12373
|
icon: "🪙",
|
|
@@ -12398,7 +12396,7 @@ const Md = "^[A-Z]{4}[0-9]{5}[A-Z]$", Ld = "^[A-Z]{4}0[A-Z0-9]{6}$", jl = "^[0-9
|
|
|
12398
12396
|
}
|
|
12399
12397
|
],
|
|
12400
12398
|
submitLabel: "Save"
|
|
12401
|
-
},
|
|
12399
|
+
}, Fd = {
|
|
12402
12400
|
id: "business-profession",
|
|
12403
12401
|
title: "Business / Profession",
|
|
12404
12402
|
icon: "💼",
|
|
@@ -12474,7 +12472,7 @@ const Md = "^[A-Z]{4}[0-9]{5}[A-Z]$", Ld = "^[A-Z]{4}0[A-Z0-9]{6}$", jl = "^[0-9
|
|
|
12474
12472
|
}
|
|
12475
12473
|
],
|
|
12476
12474
|
submitLabel: "Save"
|
|
12477
|
-
},
|
|
12475
|
+
}, $d = {
|
|
12478
12476
|
id: "agricultural-income",
|
|
12479
12477
|
title: "Agricultural Income",
|
|
12480
12478
|
icon: "🌾",
|
|
@@ -12538,7 +12536,7 @@ const Md = "^[A-Z]{4}[0-9]{5}[A-Z]$", Ld = "^[A-Z]{4}0[A-Z0-9]{6}$", jl = "^[0-9
|
|
|
12538
12536
|
}
|
|
12539
12537
|
],
|
|
12540
12538
|
submitLabel: "Save"
|
|
12541
|
-
},
|
|
12539
|
+
}, qd = {
|
|
12542
12540
|
id: "bank-details",
|
|
12543
12541
|
title: "Personal / Bank Details",
|
|
12544
12542
|
icon: "🏦",
|
|
@@ -12568,7 +12566,7 @@ const Md = "^[A-Z]{4}[0-9]{5}[A-Z]$", Ld = "^[A-Z]{4}0[A-Z0-9]{6}$", jl = "^[0-9
|
|
|
12568
12566
|
type: "text",
|
|
12569
12567
|
label: "IFSC Code",
|
|
12570
12568
|
required: !0,
|
|
12571
|
-
pattern:
|
|
12569
|
+
pattern: Rd,
|
|
12572
12570
|
maxLength: 11
|
|
12573
12571
|
}
|
|
12574
12572
|
]
|
|
@@ -12591,22 +12589,22 @@ const Md = "^[A-Z]{4}[0-9]{5}[A-Z]$", Ld = "^[A-Z]{4}0[A-Z0-9]{6}$", jl = "^[0-9
|
|
|
12591
12589
|
// },
|
|
12592
12590
|
],
|
|
12593
12591
|
submitLabel: "Save"
|
|
12594
|
-
},
|
|
12595
|
-
Nd,
|
|
12596
|
-
Bd,
|
|
12597
|
-
Ud,
|
|
12598
|
-
Dd,
|
|
12599
|
-
Rd,
|
|
12592
|
+
}, Hd = [
|
|
12600
12593
|
jd,
|
|
12601
12594
|
Fd,
|
|
12602
|
-
|
|
12595
|
+
Dd,
|
|
12596
|
+
Bd,
|
|
12597
|
+
Nd,
|
|
12598
|
+
Ud,
|
|
12599
|
+
$d,
|
|
12600
|
+
qd
|
|
12603
12601
|
// Hidden for now — re-enable to restore the full set:
|
|
12604
12602
|
// capitalGains,
|
|
12605
12603
|
// exemptIncome,
|
|
12606
12604
|
// taxPaidTds,
|
|
12607
12605
|
// haveAQuestion,
|
|
12608
12606
|
];
|
|
12609
|
-
function
|
|
12607
|
+
function Wd(i, e) {
|
|
12610
12608
|
const t = i || {}, r = {
|
|
12611
12609
|
userId: tt(e.userId),
|
|
12612
12610
|
assessmentYear: e.assessmentYear,
|
|
@@ -12614,13 +12612,11 @@ function Hd(i, e) {
|
|
|
12614
12612
|
// though only the bank/aadhaar section exposes it for editing.
|
|
12615
12613
|
aadhaarNumber: Ee(t.aadhaarNumber),
|
|
12616
12614
|
isRevised: e.isRevised || "N",
|
|
12617
|
-
timestamp:
|
|
12615
|
+
timestamp: ih()
|
|
12618
12616
|
};
|
|
12619
|
-
r.us80cAmount = xe(t.us80cAmount), r.us80dForSelfAndFamilyAmount = xe(t.us80dForSelfAndFamilyAmount), r.us80dForParentsAmount = xe(t.us80dForParentsAmount), r.hasParentOverSixty = ur(t.hasParentOverSixty), r.preventiveHealthCheckUp = xe(t.preventiveHealthCheckUp), r.medicalExpenditure = xe(t.medicalExpenditure), r.savingBankInterest = xe(t.savingBankInterest), r.fdInterest = xe(t.fdInterest), r.dividend = xe(t.dividend), r.anyOtherIncome = xe(t.anyOtherIncome), r.cryptoSellValue = xe(t.cryptoSellPrice), r.cryptoPurchaseAmount = xe(t.cryptoPurchasePrice), r.vdaPurchaseCost = xe(t.cryptoPurchasePrice);
|
|
12617
|
+
r.us80cAmount = xe(t.us80cAmount), r.us80dForSelfAndFamilyAmount = xe(t.us80dForSelfAndFamilyAmount), r.us80dForParentsAmount = xe(t.us80dForParentsAmount), r.hasParentOverSixty = ur(t.hasParentOverSixty), r.preventiveHealthCheckUp = xe(t.preventiveHealthCheckUp), r.medicalExpenditure = xe(t.medicalExpenditure), r.savingBankInterest = xe(t.savingBankInterest), r.fdInterest = xe(t.fdInterest), r.dividend = xe(t.dividend), r.anyOtherIncome = xe(t.anyOtherIncome), r.familyPension = xe(t.familyPension), r.cryptoSellValue = xe(t.cryptoSellPrice), r.cryptoPurchaseAmount = xe(t.cryptoPurchasePrice), r.vdaPurchaseCost = xe(t.cryptoPurchasePrice);
|
|
12620
12618
|
const o = (xe(t.bizReceiptsBank) ?? 0) + (xe(t.bizReceiptsCash) ?? 0), n = (xe(t.profReceiptsBank) ?? 0) + (xe(t.profReceiptsCash) ?? 0), s = Ee(t.bizName) !== void 0 || o > 0;
|
|
12621
|
-
r.businessName = Ee(s ? t.bizName : t.profName), r.businessAnnualTurnOver = s ? o || void 0 : n || void 0, r.agricultureDetails =
|
|
12622
|
-
income: xe(t.agricultureIncome)
|
|
12623
|
-
}, r.exemptIncomeAmount = xe(t.exemptIncome), r.exemptIncomeNature = Ee(t.exemptIncomeNature), xe(t.exemptIncome) !== void 0 && (r.exemptIncomes = [
|
|
12619
|
+
r.businessName = Ee(s ? t.bizName : t.profName), r.businessAnnualTurnOver = s ? o || void 0 : n || void 0, r.agricultureDetails = Dl(t), r.exemptIncomeAmount = xe(t.exemptIncome), r.exemptIncomeNature = Ee(t.exemptIncomeNature), xe(t.exemptIncome) !== void 0 && (r.exemptIncomes = [
|
|
12624
12620
|
{ name: Ee(t.exemptIncomeNature) ?? "Exempt income", value: String(xe(t.exemptIncome)) }
|
|
12625
12621
|
]), r.bankAccountNumber = Ee(t.bankAccountNumber), r.bankIfscCode = Ee(t.bankIfscCode), (Ee(t.bankAccountNumber) || Ee(t.bankIfscCode)) && (r.bankDetails = [
|
|
12626
12622
|
{ bankAccountNumber: Ee(t.bankAccountNumber), bankIfscCode: Ee(t.bankIfscCode) }
|
|
@@ -12633,9 +12629,9 @@ function Hd(i, e) {
|
|
|
12633
12629
|
amount: xe(t.immovableAssetCost)
|
|
12634
12630
|
};
|
|
12635
12631
|
Object.values(a).some((u) => u !== void 0) && (r.immovableAsset = [a]);
|
|
12636
|
-
const l = an(t.hpDetails,
|
|
12632
|
+
const l = an(t.hpDetails, zd);
|
|
12637
12633
|
l.length && (r.hpDetails = l);
|
|
12638
|
-
const c = an(t.salaryDetails,
|
|
12634
|
+
const c = an(t.salaryDetails, Vd);
|
|
12639
12635
|
if (c.length) {
|
|
12640
12636
|
r.salaryIncome = c;
|
|
12641
12637
|
const u = an(t.salaryDetails, (p) => ({
|
|
@@ -12648,7 +12644,7 @@ function Hd(i, e) {
|
|
|
12648
12644
|
}
|
|
12649
12645
|
return et(r);
|
|
12650
12646
|
}
|
|
12651
|
-
function
|
|
12647
|
+
function zd(i) {
|
|
12652
12648
|
const e = {
|
|
12653
12649
|
loanType: "HOME_LOAN",
|
|
12654
12650
|
loanTakenFrom: Ee(i.loanTakenFrom),
|
|
@@ -12676,10 +12672,13 @@ function Wd(i) {
|
|
|
12676
12672
|
loanDetails: t ? [e] : void 0
|
|
12677
12673
|
};
|
|
12678
12674
|
}
|
|
12679
|
-
function
|
|
12675
|
+
function Vd(i) {
|
|
12680
12676
|
return {
|
|
12681
12677
|
grossSalaryIncome: xe(i.grossSalary),
|
|
12682
12678
|
salary: xe(i.basicSalary),
|
|
12679
|
+
// Present in the reference /automation/data payload. Without it the
|
|
12680
|
+
// recalculate overwrote each employer's TDS with nothing.
|
|
12681
|
+
totalTdsDeposited: xe(i.totalTdsDeposited),
|
|
12683
12682
|
employer: {
|
|
12684
12683
|
employerName: Ee(i.employerName),
|
|
12685
12684
|
employerTan: Ee(i.employerTan)
|
|
@@ -12692,7 +12691,7 @@ function zd(i) {
|
|
|
12692
12691
|
}
|
|
12693
12692
|
};
|
|
12694
12693
|
}
|
|
12695
|
-
function
|
|
12694
|
+
function Kd(i, e) {
|
|
12696
12695
|
const t = [];
|
|
12697
12696
|
for (const r of i) {
|
|
12698
12697
|
const o = Ee(r.employerName), n = Ee(r.employerTan), s = xe(r.grossSalary), a = xe(r.basicSalary), l = xe(r.totalTdsDeposited);
|
|
@@ -12711,7 +12710,7 @@ function Vd(i, e) {
|
|
|
12711
12710
|
salary: t
|
|
12712
12711
|
} : null;
|
|
12713
12712
|
}
|
|
12714
|
-
function
|
|
12713
|
+
function Gd(i, e) {
|
|
12715
12714
|
const t = Ee(i.aadhaarNumber), r = Ee(i.bankAccountNumber), o = Ee(i.bankIfscCode);
|
|
12716
12715
|
return t === void 0 && r === void 0 && o === void 0 ? null : {
|
|
12717
12716
|
userId: tt(e.userId),
|
|
@@ -12720,7 +12719,7 @@ function Kd(i, e) {
|
|
|
12720
12719
|
bankDetails: [{ bankAccountNumber: r, bankIfscCode: o }]
|
|
12721
12720
|
};
|
|
12722
12721
|
}
|
|
12723
|
-
function
|
|
12722
|
+
function Yd(i, e) {
|
|
12724
12723
|
return {
|
|
12725
12724
|
userId: tt(e.userId),
|
|
12726
12725
|
assessmentYear: e.assessmentYear,
|
|
@@ -12731,7 +12730,7 @@ function Gd(i, e) {
|
|
|
12731
12730
|
familyPension: xe(i.familyPension) ?? 0
|
|
12732
12731
|
};
|
|
12733
12732
|
}
|
|
12734
|
-
function
|
|
12733
|
+
function Jd(i, e) {
|
|
12735
12734
|
const t = xe(i.cryptoSellPrice), r = xe(i.cryptoPurchasePrice);
|
|
12736
12735
|
return t === void 0 && r === void 0 ? null : {
|
|
12737
12736
|
userId: tt(e.userId),
|
|
@@ -12740,7 +12739,7 @@ function Yd(i, e) {
|
|
|
12740
12739
|
vdaSellCost: t ?? 0
|
|
12741
12740
|
};
|
|
12742
12741
|
}
|
|
12743
|
-
function
|
|
12742
|
+
function Qd(i, e) {
|
|
12744
12743
|
const t = (o, n, s, a) => {
|
|
12745
12744
|
const l = Ee(i[o]), c = Ee(i[n]), u = xe(i[s]), d = xe(i[a]);
|
|
12746
12745
|
return l === void 0 && c === void 0 && u === void 0 && d === void 0 ? null : {
|
|
@@ -12759,15 +12758,15 @@ function Jd(i, e) {
|
|
|
12759
12758
|
presumptiveIncome: r
|
|
12760
12759
|
} : null;
|
|
12761
12760
|
}
|
|
12762
|
-
function
|
|
12761
|
+
function Xd(i) {
|
|
12763
12762
|
return Ee(i.lenderName) !== void 0 || Ee(i.loanAccountNumber) !== void 0 || xe(i.totalLoanAmount) !== void 0 || xe(i.outstandingAmount) !== void 0 || xe(i.homeLoanInterest) !== void 0;
|
|
12764
12763
|
}
|
|
12765
12764
|
function Ul(i) {
|
|
12766
12765
|
const e = Ee(i.typeOfHouseProperty)?.toUpperCase();
|
|
12767
12766
|
return xe(i.rentalIncome) !== void 0 || Ee(i.nameOfTenant) !== void 0 || e === "LOP" || e === "DLOP";
|
|
12768
12767
|
}
|
|
12769
|
-
function
|
|
12770
|
-
const t = en(i.hpDetails).filter(
|
|
12768
|
+
function Zd(i, e) {
|
|
12769
|
+
const t = en(i.hpDetails).filter(Xd).map((r) => {
|
|
12771
12770
|
const o = et({
|
|
12772
12771
|
loanType: "HOMELOAN",
|
|
12773
12772
|
bankOrInstituteName: Ee(r.lenderName),
|
|
@@ -12797,7 +12796,7 @@ function Xd(i, e) {
|
|
|
12797
12796
|
hpDetails: t
|
|
12798
12797
|
} : null;
|
|
12799
12798
|
}
|
|
12800
|
-
function
|
|
12799
|
+
function eh(i, e) {
|
|
12801
12800
|
const t = en(i.hpDetails).filter(Ul).map(
|
|
12802
12801
|
(r) => et({
|
|
12803
12802
|
typeOfHouseProperty: Ee(r.typeOfHouseProperty),
|
|
@@ -12817,7 +12816,7 @@ function Zd(i, e) {
|
|
|
12817
12816
|
hpDetails: t
|
|
12818
12817
|
} : null;
|
|
12819
12818
|
}
|
|
12820
|
-
function
|
|
12819
|
+
function th(i, e) {
|
|
12821
12820
|
const t = i || {}, r = (g) => ({
|
|
12822
12821
|
userId: tt(e.userId),
|
|
12823
12822
|
assessmentYear: e.assessmentYear,
|
|
@@ -12905,7 +12904,7 @@ function eh(i, e) {
|
|
|
12905
12904
|
})
|
|
12906
12905
|
), o;
|
|
12907
12906
|
}
|
|
12908
|
-
function
|
|
12907
|
+
function rh(i, e) {
|
|
12909
12908
|
const t = i || {}, r = xe(t.us80gDonationAmount), o = Ee(t.us80gNameOfCharity);
|
|
12910
12909
|
return r === void 0 && o === void 0 ? null : {
|
|
12911
12910
|
userId: tt(e.userId),
|
|
@@ -12921,25 +12920,30 @@ function th(i, e) {
|
|
|
12921
12920
|
]
|
|
12922
12921
|
};
|
|
12923
12922
|
}
|
|
12924
|
-
function
|
|
12925
|
-
const
|
|
12926
|
-
landInAcre: xe(
|
|
12927
|
-
nameOfDistrict: Ee(
|
|
12928
|
-
pinCode: Ee(
|
|
12929
|
-
owner: Ee(
|
|
12930
|
-
typeOfLand: Ee(
|
|
12931
|
-
}) ?? {},
|
|
12932
|
-
|
|
12933
|
-
|
|
12934
|
-
|
|
12935
|
-
agricultureDetails: et({
|
|
12936
|
-
income: r,
|
|
12923
|
+
function Dl(i) {
|
|
12924
|
+
const e = i || {}, t = xe(e.agricultureIncome), r = xe(e.agricultureExpenditure), o = et({
|
|
12925
|
+
landInAcre: xe(e.agricultureLandInAcre),
|
|
12926
|
+
nameOfDistrict: Ee(e.agricultureLandDistrict),
|
|
12927
|
+
pinCode: Ee(e.agricultureLandPincode),
|
|
12928
|
+
owner: Ee(e.agricultureLandOwner),
|
|
12929
|
+
typeOfLand: Ee(e.agricultureLandType)
|
|
12930
|
+
}) ?? {}, n = Object.keys(o).length > 0;
|
|
12931
|
+
if (!(t === void 0 && r === void 0 && !n))
|
|
12932
|
+
return et({
|
|
12933
|
+
income: t,
|
|
12937
12934
|
// Documented as optional and defaulting to 0; sent explicitly so
|
|
12938
12935
|
// clearing the field actually clears the stored value.
|
|
12939
|
-
expenditure:
|
|
12940
|
-
agricultureLandDetails:
|
|
12941
|
-
})
|
|
12942
|
-
|
|
12936
|
+
expenditure: r ?? 0,
|
|
12937
|
+
agricultureLandDetails: n ? [o] : void 0
|
|
12938
|
+
});
|
|
12939
|
+
}
|
|
12940
|
+
function nh(i, e) {
|
|
12941
|
+
const t = Dl(i);
|
|
12942
|
+
return t ? {
|
|
12943
|
+
userId: tt(e.userId),
|
|
12944
|
+
assessmentYear: e.assessmentYear,
|
|
12945
|
+
agricultureDetails: t
|
|
12946
|
+
} : null;
|
|
12943
12947
|
}
|
|
12944
12948
|
function tt(i) {
|
|
12945
12949
|
if (i === void 0 || i === "") return;
|
|
@@ -12959,7 +12963,7 @@ function Ee(i) {
|
|
|
12959
12963
|
function ur(i) {
|
|
12960
12964
|
return i === !0 || i === !1 ? i : void 0;
|
|
12961
12965
|
}
|
|
12962
|
-
function
|
|
12966
|
+
function ih() {
|
|
12963
12967
|
const i = /* @__PURE__ */ new Date(), e = (t, r = 2) => String(t).padStart(r, "0");
|
|
12964
12968
|
return `${i.getFullYear()}-${e(i.getMonth() + 1)}-${e(i.getDate())}T${e(i.getHours())}:${e(i.getMinutes())}:${e(i.getSeconds())}.${e(i.getMilliseconds(), 3)}`;
|
|
12965
12969
|
}
|
|
@@ -12989,10 +12993,10 @@ function et(i) {
|
|
|
12989
12993
|
}
|
|
12990
12994
|
return i;
|
|
12991
12995
|
}
|
|
12992
|
-
function
|
|
12996
|
+
function oh(i) {
|
|
12993
12997
|
const e = i && typeof i == "object" ? i : {}, t = {}, r = je(e.employers), o = je(e.taxPaid?.onSalary);
|
|
12994
12998
|
r.length && (t.salaryDetails = r.map((M) => {
|
|
12995
|
-
const U = ln(M.salary), oe = ln(M.perquisites), Y = ln(M.profitsInLieuOfSalaryType), W = U + oe + Y, ee =
|
|
12999
|
+
const U = ln(M.salary), oe = ln(M.perquisites), Y = ln(M.profitsInLieuOfSalaryType), W = U + oe + Y, ee = ch(M.allowance);
|
|
12996
13000
|
return {
|
|
12997
13001
|
employerName: Ce(M.employerName),
|
|
12998
13002
|
employerTan: Ce(M.employerTAN),
|
|
@@ -13003,7 +13007,7 @@ function ih(i) {
|
|
|
13003
13007
|
leaveTravelAllowance: ee.lta,
|
|
13004
13008
|
leaveEncashment: ee.leaveEncashment,
|
|
13005
13009
|
anyOtherAllowance: ee.other,
|
|
13006
|
-
totalTdsDeposited:
|
|
13010
|
+
totalTdsDeposited: lh(M, o, r) ?? Le(M.totalTdsDeposited)
|
|
13007
13011
|
};
|
|
13008
13012
|
}));
|
|
13009
13013
|
const n = je(e.houseProperties);
|
|
@@ -13060,7 +13064,7 @@ function ih(i) {
|
|
|
13060
13064
|
g?.insurerName ?? b?.insurerName
|
|
13061
13065
|
), t.us80dForParentsPolicyNumber = Ce(
|
|
13062
13066
|
g?.policyNo ?? b?.accountNo
|
|
13063
|
-
), t.hasParentOverSixty =
|
|
13067
|
+
), t.hasParentOverSixty = uh(
|
|
13064
13068
|
e.systemFlags?.hasParentOverSixty
|
|
13065
13069
|
), t.us80ccd1bAmount = void 0, t.us80ccd1bPanNo = Ce(e.pranNumber), t.us80ccd2Amount = void 0;
|
|
13066
13070
|
const w = je(e.donations)[0];
|
|
@@ -13118,17 +13122,17 @@ function ih(i) {
|
|
|
13118
13122
|
const T = je(
|
|
13119
13123
|
P?.agricultureLandDetails ?? P?.agriculturalLandDetails ?? e.agriculturalLandDetails
|
|
13120
13124
|
)[0];
|
|
13121
|
-
T && (t.agricultureLandInAcre = Le(T.landInAcre), t.agricultureLandDistrict = Ce(T.nameOfDistrict), t.agricultureLandPincode = Ce(T.pinCode), t.agricultureLandOwner =
|
|
13125
|
+
T && (t.agricultureLandInAcre = Le(T.landInAcre), t.agricultureLandDistrict = Ce(T.nameOfDistrict), t.agricultureLandPincode = Ce(T.pinCode), t.agricultureLandOwner = sh(T.owner), t.agricultureLandType = ah(T.typeOfLand)), t.aadhaarNumber = Ce(e.aadharNumber);
|
|
13122
13126
|
const $ = je(e.bankDetails)[0];
|
|
13123
|
-
return $ && (t.bankAccountNumber = Ce($.accountNumber), t.bankIfscCode = Ce($.ifsCode)),
|
|
13127
|
+
return $ && (t.bankAccountNumber = Ce($.accountNumber), t.bankIfscCode = Ce($.ifsCode)), Bl(t);
|
|
13124
13128
|
}
|
|
13125
|
-
function
|
|
13129
|
+
function sh(i) {
|
|
13126
13130
|
const e = Ce(i)?.trim();
|
|
13127
13131
|
if (!e) return;
|
|
13128
13132
|
const t = e.toUpperCase();
|
|
13129
13133
|
return t === "O" || t === "OWNED" ? "Owned" : t === "H" || t.startsWith("HELD") ? "Held on lease" : e;
|
|
13130
13134
|
}
|
|
13131
|
-
function
|
|
13135
|
+
function ah(i) {
|
|
13132
13136
|
const e = Ce(i)?.trim();
|
|
13133
13137
|
if (!e) return;
|
|
13134
13138
|
const t = e.toUpperCase();
|
|
@@ -13146,7 +13150,7 @@ function ln(i) {
|
|
|
13146
13150
|
0
|
|
13147
13151
|
);
|
|
13148
13152
|
}
|
|
13149
|
-
function
|
|
13153
|
+
function lh(i, e, t) {
|
|
13150
13154
|
if (!e.length) return;
|
|
13151
13155
|
const r = Ce(i.employerTAN)?.trim().toUpperCase();
|
|
13152
13156
|
if (r) {
|
|
@@ -13163,7 +13167,7 @@ function ah(i, e, t) {
|
|
|
13163
13167
|
if (t.length === 1 && e.length === 1)
|
|
13164
13168
|
return Le(e[0].totalTdsDeposited);
|
|
13165
13169
|
}
|
|
13166
|
-
function
|
|
13170
|
+
function ch(i) {
|
|
13167
13171
|
const e = je(i);
|
|
13168
13172
|
if (!e.length) return {};
|
|
13169
13173
|
let t, r, o, n;
|
|
@@ -13206,7 +13210,7 @@ function Ce(i) {
|
|
|
13206
13210
|
const e = String(i).trim();
|
|
13207
13211
|
return e === "" ? void 0 : e;
|
|
13208
13212
|
}
|
|
13209
|
-
function
|
|
13213
|
+
function uh(i) {
|
|
13210
13214
|
if (typeof i == "boolean") return i;
|
|
13211
13215
|
if (typeof i == "string") {
|
|
13212
13216
|
const e = i.trim().toLowerCase();
|
|
@@ -13216,10 +13220,10 @@ function ch(i) {
|
|
|
13216
13220
|
if (typeof i == "number")
|
|
13217
13221
|
return i === 1 ? !0 : i === 0 ? !1 : void 0;
|
|
13218
13222
|
}
|
|
13219
|
-
function
|
|
13223
|
+
function Bl(i) {
|
|
13220
13224
|
const e = {};
|
|
13221
13225
|
for (const [t, r] of Object.entries(i))
|
|
13222
|
-
r !== void 0 && (Array.isArray(r) ? e[t] = r.map((o) => o && typeof o == "object" ?
|
|
13226
|
+
r !== void 0 && (Array.isArray(r) ? e[t] = r.map((o) => o && typeof o == "object" ? Bl(o) : o) : e[t] = r);
|
|
13223
13227
|
return e;
|
|
13224
13228
|
}
|
|
13225
13229
|
function cn() {
|
|
@@ -13229,23 +13233,23 @@ function cn() {
|
|
|
13229
13233
|
return console.warn(
|
|
13230
13234
|
"[smart-edit] API disabled: window.__aikaara_runtime__.getChatJwt is missing — the chat was not mounted via the SDK mountFromSlug path."
|
|
13231
13235
|
), null;
|
|
13232
|
-
const t = i.__aikaara_descriptor__ ?? {}, r =
|
|
13236
|
+
const t = i.__aikaara_descriptor__ ?? {}, r = _h(t);
|
|
13233
13237
|
if (!r)
|
|
13234
13238
|
return console.warn(
|
|
13235
13239
|
"[smart-edit] API disabled: could not resolve a TaxBuddy API host from the descriptor (cloud / upload / pan / leader endpoints)."
|
|
13236
13240
|
), null;
|
|
13237
|
-
const o =
|
|
13241
|
+
const o = kh(e.slug), n = typeof o?.tenantJwt == "string" ? o.tenantJwt : "", s = e.getChatJwt, a = async () => n || await s(), l = (o && o.userId != null && o.userId !== "" ? String(o.userId) : Sh(e.identity)) || void 0;
|
|
13238
13242
|
return console.info("[smart-edit] API config — base:", r, "· userId:", l ?? "(none)"), {
|
|
13239
13243
|
baseUrl: r,
|
|
13240
13244
|
getToken: a,
|
|
13241
|
-
headers:
|
|
13242
|
-
assessmentYear: t.itr?.assessmentYear ||
|
|
13245
|
+
headers: xh(t.auth?.headers),
|
|
13246
|
+
assessmentYear: t.itr?.assessmentYear || Eh(),
|
|
13243
13247
|
isRevised: "N",
|
|
13244
13248
|
userId: l,
|
|
13245
13249
|
submitUrl: t.itr?.automationSubmitUrl || void 0
|
|
13246
13250
|
};
|
|
13247
13251
|
}
|
|
13248
|
-
async function
|
|
13252
|
+
async function dh(i) {
|
|
13249
13253
|
const e = await i.getToken(), t = i.userId;
|
|
13250
13254
|
if (!t)
|
|
13251
13255
|
throw new Error(
|
|
@@ -13263,11 +13267,11 @@ async function uh(i) {
|
|
|
13263
13267
|
const o = await r.text().catch(() => "");
|
|
13264
13268
|
throw new Error(`[smart-edit] GET /itr/latest-itr → ${r.status} ${o.slice(0, 200)}`);
|
|
13265
13269
|
}
|
|
13266
|
-
return
|
|
13270
|
+
return oh(To(await r.json().catch(() => ({}))));
|
|
13267
13271
|
}
|
|
13268
|
-
async function
|
|
13272
|
+
async function hh(i, e) {
|
|
13269
13273
|
const t = await i.getToken(), r = i.userId, o = {
|
|
13270
|
-
...
|
|
13274
|
+
...Wd(e, {
|
|
13271
13275
|
userId: r,
|
|
13272
13276
|
assessmentYear: i.assessmentYear,
|
|
13273
13277
|
isRevised: i.isRevised
|
|
@@ -13291,31 +13295,31 @@ async function dh(i, e) {
|
|
|
13291
13295
|
}
|
|
13292
13296
|
return To(await a.json().catch(() => ({})));
|
|
13293
13297
|
}
|
|
13294
|
-
async function
|
|
13298
|
+
async function fh(i, e) {
|
|
13295
13299
|
return wt(i, `${i.baseUrl}/itr/v1/automation/salary`, e);
|
|
13296
13300
|
}
|
|
13297
|
-
async function
|
|
13301
|
+
async function ph(i, e) {
|
|
13298
13302
|
return wt(i, `${i.baseUrl}/itr/v1/automation/bank-aadhaar`, e);
|
|
13299
13303
|
}
|
|
13300
13304
|
async function Gs(i, e) {
|
|
13301
13305
|
return wt(i, i.submitUrl || `${i.baseUrl}/itr/v1/automation/data`, e);
|
|
13302
13306
|
}
|
|
13303
|
-
async function ph(i, e) {
|
|
13304
|
-
return wt(i, i.submitUrl || `${i.baseUrl}/itr/v1/automation/data`, e);
|
|
13305
|
-
}
|
|
13306
13307
|
async function mh(i, e) {
|
|
13307
13308
|
return wt(i, i.submitUrl || `${i.baseUrl}/itr/v1/automation/data`, e);
|
|
13308
13309
|
}
|
|
13309
13310
|
async function gh(i, e) {
|
|
13310
|
-
return wt(i, `${i.baseUrl}/itr/v1/automation/
|
|
13311
|
+
return wt(i, i.submitUrl || `${i.baseUrl}/itr/v1/automation/data`, e);
|
|
13311
13312
|
}
|
|
13312
13313
|
async function bh(i, e) {
|
|
13313
|
-
return wt(i,
|
|
13314
|
+
return wt(i, `${i.baseUrl}/itr/v1/automation/deductions`, e);
|
|
13314
13315
|
}
|
|
13315
13316
|
async function yh(i, e) {
|
|
13316
|
-
return wt(i, `${i.baseUrl}/itr/v1/automation/
|
|
13317
|
+
return wt(i, i.submitUrl || `${i.baseUrl}/itr/v1/automation/data`, e);
|
|
13317
13318
|
}
|
|
13318
13319
|
async function vh(i, e) {
|
|
13320
|
+
return wt(i, `${i.baseUrl}/itr/v1/automation/hp-income`, e);
|
|
13321
|
+
}
|
|
13322
|
+
async function wh(i, e) {
|
|
13319
13323
|
return wt(i, `${i.baseUrl}/itr/v1/automation/vda`, e);
|
|
13320
13324
|
}
|
|
13321
13325
|
async function wt(i, e, t) {
|
|
@@ -13333,7 +13337,7 @@ async function wt(i, e, t) {
|
|
|
13333
13337
|
}
|
|
13334
13338
|
return To(await n.json().catch(() => ({})));
|
|
13335
13339
|
}
|
|
13336
|
-
function
|
|
13340
|
+
function _h(i) {
|
|
13337
13341
|
const e = [
|
|
13338
13342
|
i.cloud?.listEndpoint,
|
|
13339
13343
|
i.cloud?.downloadEndpoint,
|
|
@@ -13351,7 +13355,7 @@ function wh(i) {
|
|
|
13351
13355
|
}
|
|
13352
13356
|
return null;
|
|
13353
13357
|
}
|
|
13354
|
-
function
|
|
13358
|
+
function kh(i) {
|
|
13355
13359
|
if (!i || typeof localStorage > "u") return null;
|
|
13356
13360
|
try {
|
|
13357
13361
|
const e = localStorage.getItem(`aikaara_sso:${i}`);
|
|
@@ -13362,7 +13366,7 @@ function _h(i) {
|
|
|
13362
13366
|
return null;
|
|
13363
13367
|
}
|
|
13364
13368
|
}
|
|
13365
|
-
function
|
|
13369
|
+
function xh(i) {
|
|
13366
13370
|
const e = {};
|
|
13367
13371
|
if (!i) return e;
|
|
13368
13372
|
const t = /^(authorization|content-type|accept)$/i;
|
|
@@ -13370,7 +13374,7 @@ function kh(i) {
|
|
|
13370
13374
|
!t.test(r) && typeof o == "string" && (e[r] = o);
|
|
13371
13375
|
return e;
|
|
13372
13376
|
}
|
|
13373
|
-
function
|
|
13377
|
+
function Sh(i) {
|
|
13374
13378
|
if (!i) return;
|
|
13375
13379
|
const e = i.userId ?? i.id ?? i.ext_uid ?? i.extUid;
|
|
13376
13380
|
return e == null || e === "" ? void 0 : String(e);
|
|
@@ -13382,11 +13386,11 @@ function To(i) {
|
|
|
13382
13386
|
}
|
|
13383
13387
|
return {};
|
|
13384
13388
|
}
|
|
13385
|
-
function
|
|
13389
|
+
function Eh() {
|
|
13386
13390
|
const i = /* @__PURE__ */ new Date(), e = i.getMonth() >= 3 ? i.getFullYear() : i.getFullYear() - 1;
|
|
13387
13391
|
return `${e}-${e + 1}`;
|
|
13388
13392
|
}
|
|
13389
|
-
class
|
|
13393
|
+
class Ah {
|
|
13390
13394
|
client;
|
|
13391
13395
|
panel;
|
|
13392
13396
|
bubble;
|
|
@@ -13398,7 +13402,7 @@ class Eh {
|
|
|
13398
13402
|
isEmbed = !1;
|
|
13399
13403
|
smartEditModal = null;
|
|
13400
13404
|
constructor(e, t, r) {
|
|
13401
|
-
this.client = new
|
|
13405
|
+
this.client = new Ad(e, {
|
|
13402
13406
|
uploadAdapter: r?.uploadAdapter,
|
|
13403
13407
|
historyAdapter: r?.historyAdapter
|
|
13404
13408
|
}), this.isEmbed = e.display === "embed", this.bubble = t.querySelector("aikaara-chat-bubble"), this.panel = t.querySelector(".aikaara-panel"), this.header = t.querySelector("aikaara-chat-header"), this.messageList = t.querySelector("aikaara-message-list"), this.input = t.querySelector("aikaara-chat-input"), this.errorBanner = t.querySelector("aikaara-error-banner"), e.welcomeMessage && this.messageList.setWelcomeMessage(e.welcomeMessage), e.showTimestamps !== void 0 && this.messageList.setShowTimestamps(e.showTimestamps), (e.linkHandlers || e.getLinkBearer) && this.messageList.setLinkConfig(e.linkHandlers ?? [], e.getLinkBearer), e.chatActions !== void 0 && this.header.setActions(e.chatActions), this.wireEvents();
|
|
@@ -13525,11 +13529,11 @@ class Eh {
|
|
|
13525
13529
|
*/
|
|
13526
13530
|
async openSmartEdit() {
|
|
13527
13531
|
const e = this.ensureSmartEditModal();
|
|
13528
|
-
e.open({ schemas:
|
|
13532
|
+
e.open({ schemas: Hd, data: {} });
|
|
13529
13533
|
const t = cn();
|
|
13530
13534
|
if (!(!t || !t.baseUrl))
|
|
13531
13535
|
try {
|
|
13532
|
-
const r = await
|
|
13536
|
+
const r = await dh(t);
|
|
13533
13537
|
e.setData(r);
|
|
13534
13538
|
} catch (r) {
|
|
13535
13539
|
console.warn("[smart-edit] fetch failed", r), this.errorBanner.show(
|
|
@@ -13562,32 +13566,32 @@ class Eh {
|
|
|
13562
13566
|
const o = { userId: r.userId, assessmentYear: r.assessmentYear };
|
|
13563
13567
|
try {
|
|
13564
13568
|
if (e === "salary-hra") {
|
|
13565
|
-
const n = Array.isArray(t.salaryDetails) ? t.salaryDetails : [], s =
|
|
13566
|
-
s && await
|
|
13569
|
+
const n = Array.isArray(t.salaryDetails) ? t.salaryDetails : [], s = Kd(n, o);
|
|
13570
|
+
s && await fh(r, s);
|
|
13567
13571
|
} else if (e === "bank-details") {
|
|
13568
|
-
const n =
|
|
13569
|
-
n && await
|
|
13572
|
+
const n = Gd(t, o);
|
|
13573
|
+
n && await ph(r, n);
|
|
13570
13574
|
} else if (e === "other-sources")
|
|
13571
|
-
await Gs(r,
|
|
13575
|
+
await Gs(r, Yd(t, o));
|
|
13572
13576
|
else if (e === "business-profession") {
|
|
13573
|
-
const n =
|
|
13574
|
-
n && await
|
|
13577
|
+
const n = Qd(t, o);
|
|
13578
|
+
n && await mh(r, n);
|
|
13575
13579
|
} else if (e === "crypto-income") {
|
|
13576
|
-
const n =
|
|
13577
|
-
n && await
|
|
13580
|
+
const n = Jd(t, o);
|
|
13581
|
+
n && await wh(r, n);
|
|
13578
13582
|
} else if (e === "agricultural-income") {
|
|
13579
|
-
const n =
|
|
13580
|
-
n && await
|
|
13583
|
+
const n = nh(t, o);
|
|
13584
|
+
n && await gh(r, n);
|
|
13581
13585
|
} else if (e === "deductions") {
|
|
13582
|
-
for (const s of
|
|
13583
|
-
await
|
|
13584
|
-
const n =
|
|
13586
|
+
for (const s of th(t, o))
|
|
13587
|
+
await bh(r, s);
|
|
13588
|
+
const n = rh(t, o);
|
|
13585
13589
|
n && await Gs(r, n);
|
|
13586
13590
|
} else if (e === "house-property") {
|
|
13587
|
-
const n =
|
|
13588
|
-
n && await
|
|
13589
|
-
const s =
|
|
13590
|
-
s && await
|
|
13591
|
+
const n = Zd(t, o);
|
|
13592
|
+
n && await yh(r, n);
|
|
13593
|
+
const s = eh(t, o);
|
|
13594
|
+
s && await vh(r, s);
|
|
13591
13595
|
}
|
|
13592
13596
|
} catch (n) {
|
|
13593
13597
|
console.warn("[smart-edit] section save failed", e, n), this.errorBanner.show("Failed to save. Please try again.", 4e3);
|
|
@@ -13607,7 +13611,7 @@ class Eh {
|
|
|
13607
13611
|
return;
|
|
13608
13612
|
}
|
|
13609
13613
|
try {
|
|
13610
|
-
await
|
|
13614
|
+
await hh(t, e);
|
|
13611
13615
|
} catch (r) {
|
|
13612
13616
|
console.warn("[smart-edit] save failed", r), this.errorBanner.show(
|
|
13613
13617
|
"Failed to save your ITR details. Please try again.",
|
|
@@ -13623,7 +13627,7 @@ class Eh {
|
|
|
13623
13627
|
}, 200)));
|
|
13624
13628
|
}
|
|
13625
13629
|
}
|
|
13626
|
-
class
|
|
13630
|
+
class Ih extends HTMLElement {
|
|
13627
13631
|
shadow;
|
|
13628
13632
|
controller = null;
|
|
13629
13633
|
_config = {};
|
|
@@ -13669,13 +13673,13 @@ class Ah extends HTMLElement {
|
|
|
13669
13673
|
apiKey: this.getAttribute("api-key") || this._config.apiKey,
|
|
13670
13674
|
title: this.getAttribute("title") || this._config.title || "Chat",
|
|
13671
13675
|
subtitle: this.getAttribute("subtitle") || this._config.subtitle,
|
|
13672
|
-
theme: this.getAttribute("theme") || this._config.theme ||
|
|
13676
|
+
theme: this.getAttribute("theme") || this._config.theme || rc,
|
|
13673
13677
|
primaryColor: this.getAttribute("primary-color") || this._config.primaryColor || Oo,
|
|
13674
|
-
position: this.getAttribute("position") || this._config.position ||
|
|
13675
|
-
width: Number(this.getAttribute("width")) || this._config.width ||
|
|
13676
|
-
height: Number(this.getAttribute("height")) || this._config.height ||
|
|
13677
|
-
fontFamily: this._config.fontFamily ||
|
|
13678
|
-
borderRadius: this._config.borderRadius ??
|
|
13678
|
+
position: this.getAttribute("position") || this._config.position || tc,
|
|
13679
|
+
width: Number(this.getAttribute("width")) || this._config.width || Ql,
|
|
13680
|
+
height: Number(this.getAttribute("height")) || this._config.height || Xl,
|
|
13681
|
+
fontFamily: this._config.fontFamily || ec,
|
|
13682
|
+
borderRadius: this._config.borderRadius ?? Zl,
|
|
13679
13683
|
placeholder: this.getAttribute("placeholder") || this._config.placeholder || Mo,
|
|
13680
13684
|
welcomeMessage: this.getAttribute("welcome-message") || this._config.welcomeMessage,
|
|
13681
13685
|
avatarUrl: this.getAttribute("avatar-url") || this._config.avatarUrl,
|
|
@@ -13689,7 +13693,7 @@ class Ah extends HTMLElement {
|
|
|
13689
13693
|
chatActions: this._config.chatActions,
|
|
13690
13694
|
showBubble: this._config.showBubble ?? !0,
|
|
13691
13695
|
display: (this.getAttribute("display") || this._config.display) ?? "popup",
|
|
13692
|
-
offset: this._config.offset ||
|
|
13696
|
+
offset: this._config.offset || nc,
|
|
13693
13697
|
conversationId: this._config.conversationId,
|
|
13694
13698
|
systemPromptId: this._config.systemPromptId,
|
|
13695
13699
|
channel: this._config.channel,
|
|
@@ -13892,7 +13896,7 @@ class Ah extends HTMLElement {
|
|
|
13892
13896
|
}
|
|
13893
13897
|
async initController() {
|
|
13894
13898
|
const e = this.getConfig(), t = e.transport ?? "aikaara";
|
|
13895
|
-
(t === "aikaara" || t === "dual") && (!e.baseUrl || !e.userToken) || (this.controller?.disconnect(), this.controller = new
|
|
13899
|
+
(t === "aikaara" || t === "dual") && (!e.baseUrl || !e.userToken) || (this.controller?.disconnect(), this.controller = new Ah(e, this.shadow, {
|
|
13896
13900
|
uploadAdapter: this._config.uploadAdapter,
|
|
13897
13901
|
historyAdapter: this._config.historyAdapter
|
|
13898
13902
|
}), await this.controller.connect());
|
|
@@ -13912,7 +13916,7 @@ class Ah extends HTMLElement {
|
|
|
13912
13916
|
}
|
|
13913
13917
|
}
|
|
13914
13918
|
}
|
|
13915
|
-
class
|
|
13919
|
+
class Th extends HTMLElement {
|
|
13916
13920
|
shadow;
|
|
13917
13921
|
constructor() {
|
|
13918
13922
|
super(), this.shadow = this.attachShadow({ mode: "open" });
|
|
@@ -13965,12 +13969,12 @@ class Ih extends HTMLElement {
|
|
|
13965
13969
|
t && (t.innerHTML = e);
|
|
13966
13970
|
}
|
|
13967
13971
|
}
|
|
13968
|
-
const
|
|
13972
|
+
const Ch = [
|
|
13969
13973
|
{ id: "edit-itr", label: "Edit ITR Details", icon: "edit" }
|
|
13970
13974
|
];
|
|
13971
|
-
class
|
|
13975
|
+
class Ph extends HTMLElement {
|
|
13972
13976
|
shadow;
|
|
13973
|
-
actions =
|
|
13977
|
+
actions = Ch;
|
|
13974
13978
|
menuOpen = !1;
|
|
13975
13979
|
outsideClickHandler = null;
|
|
13976
13980
|
static get observedAttributes() {
|
|
@@ -14196,7 +14200,7 @@ class Ch extends HTMLElement {
|
|
|
14196
14200
|
this.setAttribute("status", e);
|
|
14197
14201
|
}
|
|
14198
14202
|
}
|
|
14199
|
-
const
|
|
14203
|
+
const Oh = /<\s*(br|i|b|em|strong|small|sub|sup|p|div|span|ul|ol|li|a|img|code|pre)\b/i, Mh = /&(quot|apos|amp|lt|gt|nbsp|#\d+|#x[0-9a-f]+);/i, Lh = {
|
|
14200
14204
|
""": '"',
|
|
14201
14205
|
"'": "'",
|
|
14202
14206
|
"<": "<",
|
|
@@ -14204,14 +14208,14 @@ const Ph = /<\s*(br|i|b|em|strong|small|sub|sup|p|div|span|ul|ol|li|a|img|code|p
|
|
|
14204
14208
|
"&": "&",
|
|
14205
14209
|
" ": " "
|
|
14206
14210
|
};
|
|
14207
|
-
function
|
|
14208
|
-
return i.replace(/&(quot|apos|lt|gt|nbsp);/gi, (e) =>
|
|
14211
|
+
function Rh(i) {
|
|
14212
|
+
return i.replace(/&(quot|apos|lt|gt|nbsp);/gi, (e) => Lh[e.toLowerCase()] ?? e).replace(/&#(\d+);/g, (e, t) => String.fromCharCode(parseInt(t, 10))).replace(/&#x([0-9a-f]+);/gi, (e, t) => String.fromCharCode(parseInt(t, 16))).replace(/&/gi, "&");
|
|
14209
14213
|
}
|
|
14210
14214
|
function zt(i) {
|
|
14211
|
-
if (
|
|
14215
|
+
if (Oh.test(i))
|
|
14212
14216
|
return i;
|
|
14213
|
-
const e =
|
|
14214
|
-
let t =
|
|
14217
|
+
const e = Mh.test(i) ? Rh(i) : i;
|
|
14218
|
+
let t = Nh(e);
|
|
14215
14219
|
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(
|
|
14216
14220
|
/\[([^\]]+)\]\((https?:\/\/[^\s)]+)\)/g,
|
|
14217
14221
|
'<a href="$2" target="_self" rel="noopener noreferrer">$1</a>'
|
|
@@ -14223,7 +14227,7 @@ function zt(i) {
|
|
|
14223
14227
|
}
|
|
14224
14228
|
), t = t.replace(/\n/g, "<br>"), t;
|
|
14225
14229
|
}
|
|
14226
|
-
function
|
|
14230
|
+
function Nh(i) {
|
|
14227
14231
|
const e = {
|
|
14228
14232
|
"&": "&",
|
|
14229
14233
|
"<": "<",
|
|
@@ -14233,7 +14237,7 @@ function Rh(i) {
|
|
|
14233
14237
|
};
|
|
14234
14238
|
return i.replace(/[&<>"']/g, (t) => e[t]);
|
|
14235
14239
|
}
|
|
14236
|
-
const
|
|
14240
|
+
const jh = /* @__PURE__ */ new Set([
|
|
14237
14241
|
"p",
|
|
14238
14242
|
"br",
|
|
14239
14243
|
"hr",
|
|
@@ -14268,7 +14272,7 @@ const Nh = /* @__PURE__ */ new Set([
|
|
|
14268
14272
|
"tr",
|
|
14269
14273
|
"th",
|
|
14270
14274
|
"td"
|
|
14271
|
-
]),
|
|
14275
|
+
]), Uh = {
|
|
14272
14276
|
a: /* @__PURE__ */ new Set(["href", "target", "rel"]),
|
|
14273
14277
|
img: /* @__PURE__ */ new Set(["src", "alt", "width", "height"]),
|
|
14274
14278
|
code: /* @__PURE__ */ new Set(["class"]),
|
|
@@ -14278,29 +14282,29 @@ const Nh = /* @__PURE__ */ new Set([
|
|
|
14278
14282
|
};
|
|
14279
14283
|
function Vt(i) {
|
|
14280
14284
|
const e = document.createElement("template");
|
|
14281
|
-
return e.innerHTML = i,
|
|
14285
|
+
return e.innerHTML = i, Fl(e.content), e.innerHTML;
|
|
14282
14286
|
}
|
|
14283
|
-
function
|
|
14287
|
+
function Fl(i) {
|
|
14284
14288
|
const e = Array.from(i.childNodes);
|
|
14285
14289
|
for (const t of e)
|
|
14286
14290
|
if (t.nodeType === Node.ELEMENT_NODE) {
|
|
14287
14291
|
const r = t, o = r.tagName.toLowerCase();
|
|
14288
|
-
if (!
|
|
14292
|
+
if (!jh.has(o)) {
|
|
14289
14293
|
const a = document.createTextNode(r.textContent || "");
|
|
14290
14294
|
i.replaceChild(a, t);
|
|
14291
14295
|
continue;
|
|
14292
14296
|
}
|
|
14293
|
-
const n =
|
|
14297
|
+
const n = Uh[o] || /* @__PURE__ */ new Set(), s = Array.from(r.attributes);
|
|
14294
14298
|
for (const a of s)
|
|
14295
14299
|
n.has(a.name) || r.removeAttribute(a.name);
|
|
14296
14300
|
if (r.hasAttribute("href")) {
|
|
14297
14301
|
const a = r.getAttribute("href") || "";
|
|
14298
14302
|
!a.startsWith("http://") && !a.startsWith("https://") && !a.startsWith("/") && r.removeAttribute("href");
|
|
14299
14303
|
}
|
|
14300
|
-
|
|
14304
|
+
Fl(t);
|
|
14301
14305
|
}
|
|
14302
14306
|
}
|
|
14303
|
-
function
|
|
14307
|
+
function Dh(i, e = {}) {
|
|
14304
14308
|
const { width: t = 600, height: r = 700, closeOnTypes: o } = e, n = Math.round(window.screenX + (window.outerWidth - t) / 2), s = Math.round(window.screenY + (window.outerHeight - r) / 2), a = window.open(
|
|
14305
14309
|
i,
|
|
14306
14310
|
"aikaara_popup",
|
|
@@ -14318,7 +14322,7 @@ function Uh(i, e = {}) {
|
|
|
14318
14322
|
}, 500);
|
|
14319
14323
|
return a;
|
|
14320
14324
|
}
|
|
14321
|
-
function
|
|
14325
|
+
function Bh(i) {
|
|
14322
14326
|
const e = Date.now() - i.getTime(), t = Math.round(e / 1e3);
|
|
14323
14327
|
if (t < 5) return "just now";
|
|
14324
14328
|
if (t < 60) return `${t}s ago`;
|
|
@@ -14329,7 +14333,7 @@ function Dh(i) {
|
|
|
14329
14333
|
const n = Math.round(o / 24);
|
|
14330
14334
|
return n === 1 ? "Yesterday" : n < 7 ? `${n} d ago` : i.toLocaleDateString(void 0, { month: "short", day: "2-digit" });
|
|
14331
14335
|
}
|
|
14332
|
-
class
|
|
14336
|
+
class Fh extends HTMLElement {
|
|
14333
14337
|
shadow;
|
|
14334
14338
|
container;
|
|
14335
14339
|
welcomeMessage = "";
|
|
@@ -14582,7 +14586,7 @@ class Bh extends HTMLElement {
|
|
|
14582
14586
|
if (n.role === "user") {
|
|
14583
14587
|
const s = n.metadata?.attributes?.action;
|
|
14584
14588
|
if (s) {
|
|
14585
|
-
const a =
|
|
14589
|
+
const a = $h(s);
|
|
14586
14590
|
if (s.message_id && t.set(s.message_id, a), Object.keys(a).length > 0)
|
|
14587
14591
|
for (let l = o - 1; l >= 0; l--) {
|
|
14588
14592
|
const c = e[l];
|
|
@@ -14720,7 +14724,7 @@ class Bh extends HTMLElement {
|
|
|
14720
14724
|
case "date":
|
|
14721
14725
|
return r;
|
|
14722
14726
|
case "relative":
|
|
14723
|
-
return
|
|
14727
|
+
return Bh(t);
|
|
14724
14728
|
case "time-24":
|
|
14725
14729
|
return t.toLocaleTimeString(void 0, { hour: "2-digit", minute: "2-digit", hour12: !1 });
|
|
14726
14730
|
case "time-seconds":
|
|
@@ -14746,7 +14750,7 @@ class Bh extends HTMLElement {
|
|
|
14746
14750
|
return;
|
|
14747
14751
|
}
|
|
14748
14752
|
if (o === "popup") {
|
|
14749
|
-
|
|
14753
|
+
Dh(e);
|
|
14750
14754
|
return;
|
|
14751
14755
|
}
|
|
14752
14756
|
const n = this.getOrCreateModal(), s = r?.title ?? t ?? "Link";
|
|
@@ -14754,7 +14758,7 @@ class Bh extends HTMLElement {
|
|
|
14754
14758
|
requestAnimationFrame(() => n.show?.(e, s));
|
|
14755
14759
|
return;
|
|
14756
14760
|
}
|
|
14757
|
-
const a =
|
|
14761
|
+
const a = qh(e), l = $l(r.fetch.url, a), c = {
|
|
14758
14762
|
accept: "application/json",
|
|
14759
14763
|
...r.fetch.headers ?? {}
|
|
14760
14764
|
}, u = r.fetch.authHeader ?? "session";
|
|
@@ -14800,7 +14804,7 @@ class Bh extends HTMLElement {
|
|
|
14800
14804
|
return e || (e = document.createElement("aikaara-link-modal"), document.body.appendChild(e)), e;
|
|
14801
14805
|
}
|
|
14802
14806
|
}
|
|
14803
|
-
function
|
|
14807
|
+
function $h(i) {
|
|
14804
14808
|
const e = /* @__PURE__ */ new Set(["message_id", "formAction", "requestType"]), t = {};
|
|
14805
14809
|
for (const [r, o] of Object.entries(i))
|
|
14806
14810
|
e.has(r) || (Array.isArray(o) && o.every((n) => typeof n == "string") ? t[r] = o : typeof o == "string" && (t[r] = [o]));
|
|
@@ -14810,7 +14814,7 @@ function Ys(i, e) {
|
|
|
14810
14814
|
const t = e.replace(/[.+^${}()|[\]\\]/g, "\\$&");
|
|
14811
14815
|
return new RegExp("^" + t.replace(/\*/g, ".*").replace(/\?/g, ".") + "$", "i").test(i);
|
|
14812
14816
|
}
|
|
14813
|
-
function
|
|
14817
|
+
function qh(i) {
|
|
14814
14818
|
try {
|
|
14815
14819
|
const e = new URL(i), t = {};
|
|
14816
14820
|
return e.searchParams.forEach((r, o) => {
|
|
@@ -14820,11 +14824,11 @@ function $h(i) {
|
|
|
14820
14824
|
return {};
|
|
14821
14825
|
}
|
|
14822
14826
|
}
|
|
14823
|
-
function
|
|
14827
|
+
function $l(i, e) {
|
|
14824
14828
|
return i.replace(/\{(\w+)\}/g, (t, r) => e[r] ?? "");
|
|
14825
14829
|
}
|
|
14826
14830
|
function ho(i, e) {
|
|
14827
|
-
if (typeof i == "string") return
|
|
14831
|
+
if (typeof i == "string") return $l(i, e);
|
|
14828
14832
|
if (Array.isArray(i)) return i.map((t) => ho(t, e));
|
|
14829
14833
|
if (i && typeof i == "object") {
|
|
14830
14834
|
const t = {};
|
|
@@ -14833,7 +14837,7 @@ function ho(i, e) {
|
|
|
14833
14837
|
}
|
|
14834
14838
|
return i;
|
|
14835
14839
|
}
|
|
14836
|
-
class
|
|
14840
|
+
class Hh extends HTMLElement {
|
|
14837
14841
|
shadow;
|
|
14838
14842
|
templatePayload = null;
|
|
14839
14843
|
attachments = [];
|
|
@@ -14949,7 +14953,7 @@ class qh extends HTMLElement {
|
|
|
14949
14953
|
renderAttachments() {
|
|
14950
14954
|
return this.attachments.length ? `<div class="attachments">${this.attachments.map(
|
|
14951
14955
|
(t) => `<a class="attachment" href="${Js(t.fileUrl)}" target="_blank" rel="noopener noreferrer">
|
|
14952
|
-
📎 ${
|
|
14956
|
+
📎 ${Wh(t.fileName)}
|
|
14953
14957
|
</a>`
|
|
14954
14958
|
).join("")}</div>` : "";
|
|
14955
14959
|
}
|
|
@@ -14957,10 +14961,10 @@ class qh extends HTMLElement {
|
|
|
14957
14961
|
function Js(i) {
|
|
14958
14962
|
return String(i).replace(/[&<>"']/g, (e) => ({ "&": "&", "<": "<", ">": ">", '"': """, "'": "'" })[e]);
|
|
14959
14963
|
}
|
|
14960
|
-
function
|
|
14964
|
+
function Wh(i) {
|
|
14961
14965
|
return String(i).replace(/[&<>]/g, (e) => ({ "&": "&", "<": "<", ">": ">" })[e]);
|
|
14962
14966
|
}
|
|
14963
|
-
class
|
|
14967
|
+
class zh extends HTMLElement {
|
|
14964
14968
|
shadow;
|
|
14965
14969
|
textarea;
|
|
14966
14970
|
sendBtn;
|
|
@@ -15111,7 +15115,7 @@ class Wh extends HTMLElement {
|
|
|
15111
15115
|
this.textarea.style.height = "auto", this.textarea.style.height = Math.min(this.textarea.scrollHeight, 120) + "px";
|
|
15112
15116
|
}
|
|
15113
15117
|
}
|
|
15114
|
-
class
|
|
15118
|
+
class Vh extends HTMLElement {
|
|
15115
15119
|
shadow;
|
|
15116
15120
|
constructor() {
|
|
15117
15121
|
super(), this.shadow = this.attachShadow({ mode: "open" });
|
|
@@ -15160,7 +15164,7 @@ class zh extends HTMLElement {
|
|
|
15160
15164
|
this.removeAttribute("visible");
|
|
15161
15165
|
}
|
|
15162
15166
|
}
|
|
15163
|
-
class
|
|
15167
|
+
class Kh extends HTMLElement {
|
|
15164
15168
|
shadow;
|
|
15165
15169
|
bubble;
|
|
15166
15170
|
constructor() {
|
|
@@ -15225,7 +15229,7 @@ class Vh extends HTMLElement {
|
|
|
15225
15229
|
this.bubble?.classList.remove("cursor");
|
|
15226
15230
|
}
|
|
15227
15231
|
}
|
|
15228
|
-
class
|
|
15232
|
+
class Gh extends HTMLElement {
|
|
15229
15233
|
shadow;
|
|
15230
15234
|
container;
|
|
15231
15235
|
dismissTimer = null;
|
|
@@ -15272,7 +15276,7 @@ class Kh extends HTMLElement {
|
|
|
15272
15276
|
}
|
|
15273
15277
|
}
|
|
15274
15278
|
const un = /* @__PURE__ */ new Map();
|
|
15275
|
-
function
|
|
15279
|
+
function ql(i) {
|
|
15276
15280
|
const e = un.get(i);
|
|
15277
15281
|
if (e) return e;
|
|
15278
15282
|
const t = new Promise((r, o) => {
|
|
@@ -15298,7 +15302,7 @@ function $l(i) {
|
|
|
15298
15302
|
});
|
|
15299
15303
|
return un.set(i, t), t;
|
|
15300
15304
|
}
|
|
15301
|
-
function
|
|
15305
|
+
function Yh(i, e = 5e3) {
|
|
15302
15306
|
return new Promise((t, r) => {
|
|
15303
15307
|
const o = setTimeout(() => r(new Error(`Custom element <${i}> not registered within ${e}ms`)), e);
|
|
15304
15308
|
customElements.whenDefined(i).then(() => {
|
|
@@ -15306,14 +15310,14 @@ function Gh(i, e = 5e3) {
|
|
|
15306
15310
|
});
|
|
15307
15311
|
});
|
|
15308
15312
|
}
|
|
15309
|
-
const
|
|
15313
|
+
const Jh = {
|
|
15310
15314
|
"aikaara-template-payment-link": () => import("./AikaaraPaymentLink-ZYn2r5t-.mjs").then(({ registerAikaaraPaymentLink: i }) => i())
|
|
15311
15315
|
};
|
|
15312
|
-
function
|
|
15316
|
+
function Qh(i) {
|
|
15313
15317
|
const e = `template:${i}`, t = window.__aikaara_descriptor__?.components?.[e];
|
|
15314
15318
|
return t && t.kind === "iife-element" ? { render: t.tag, scriptUrl: t.scriptUrl, props: t.props } : window.__aikaara_descriptor__?.templates?.[i];
|
|
15315
15319
|
}
|
|
15316
|
-
class
|
|
15320
|
+
class Xh extends HTMLElement {
|
|
15317
15321
|
shadow;
|
|
15318
15322
|
payloadData = null;
|
|
15319
15323
|
innerMessage = "";
|
|
@@ -15337,7 +15341,7 @@ class Qh extends HTMLElement {
|
|
|
15337
15341
|
this.render(), this.addEventListener("template-action", (e) => {
|
|
15338
15342
|
const t = e.detail, r = this.getAttribute("message-id");
|
|
15339
15343
|
if (r && t?.attributes?.action) {
|
|
15340
|
-
const o =
|
|
15344
|
+
const o = tf(t.attributes.action);
|
|
15341
15345
|
if (Object.keys(o).length > 0)
|
|
15342
15346
|
try {
|
|
15343
15347
|
localStorage.setItem(`aikaara_form:${r}`, JSON.stringify(o));
|
|
@@ -15413,8 +15417,8 @@ class Qh extends HTMLElement {
|
|
|
15413
15417
|
<slot></slot>
|
|
15414
15418
|
`; this.firstChild; ) this.removeChild(this.firstChild);
|
|
15415
15419
|
if (!e) return;
|
|
15416
|
-
const r = t ?
|
|
15417
|
-
if (n && !customElements.get(o) ? n().then(() => this.render()).catch((s) => console.warn(`[aikaara-template-renderer] native template ${o} failed to load`, s)) : r?.scriptUrl && !customElements.get(o) &&
|
|
15420
|
+
const r = t ? Qh(t) : void 0, o = r?.render ?? (t ? `aikaara-template-${t}` : `aikaara-template-${e}`), n = Jh[o];
|
|
15421
|
+
if (n && !customElements.get(o) ? n().then(() => this.render()).catch((s) => console.warn(`[aikaara-template-renderer] native template ${o} failed to load`, s)) : r?.scriptUrl && !customElements.get(o) && ql(r.scriptUrl).then(() => Yh(o)).then(() => this.render()).catch((s) => console.warn(`[aikaara-template-renderer] failed to lazy-load ${r.scriptUrl}`, s)), customElements.get(o)) {
|
|
15418
15422
|
const s = document.createElement(o);
|
|
15419
15423
|
if (r?.props) {
|
|
15420
15424
|
for (const [a, l] of Object.entries(r.props))
|
|
@@ -15501,7 +15505,7 @@ class Qh extends HTMLElement {
|
|
|
15501
15505
|
*/
|
|
15502
15506
|
mountLinkButton(e) {
|
|
15503
15507
|
const t = this.renderGen;
|
|
15504
|
-
import("./AikaaraLinkButton-
|
|
15508
|
+
import("./AikaaraLinkButton-CgGY2vIV.mjs").then(({ registerAikaaraLinkButton: r, AikaaraLinkButton: o }) => {
|
|
15505
15509
|
if (t !== this.renderGen) return;
|
|
15506
15510
|
r();
|
|
15507
15511
|
const n = document.createElement("aikaara-link-button");
|
|
@@ -15510,7 +15514,7 @@ class Qh extends HTMLElement {
|
|
|
15510
15514
|
url: e.url ?? "",
|
|
15511
15515
|
openLinkInNewTab: e.openLinkInNewTab,
|
|
15512
15516
|
orderId: e.orderId,
|
|
15513
|
-
extra:
|
|
15517
|
+
extra: ef(e),
|
|
15514
15518
|
messageId: this.getAttribute("message-id") ?? void 0
|
|
15515
15519
|
}), this.appendChild(n);
|
|
15516
15520
|
});
|
|
@@ -15520,26 +15524,26 @@ class Qh extends HTMLElement {
|
|
|
15520
15524
|
t.setPayload(e), this.appendChild(t);
|
|
15521
15525
|
}
|
|
15522
15526
|
}
|
|
15523
|
-
const
|
|
15527
|
+
const Zh = /* @__PURE__ */ new Set([
|
|
15524
15528
|
"type",
|
|
15525
15529
|
"url",
|
|
15526
15530
|
"name",
|
|
15527
15531
|
"openLinkInNewTab",
|
|
15528
15532
|
"orderId"
|
|
15529
15533
|
]);
|
|
15530
|
-
function
|
|
15534
|
+
function ef(i) {
|
|
15531
15535
|
const e = {};
|
|
15532
15536
|
for (const [t, r] of Object.entries(i))
|
|
15533
|
-
|
|
15537
|
+
Zh.has(t) || (e[t] = r);
|
|
15534
15538
|
return e;
|
|
15535
15539
|
}
|
|
15536
|
-
function
|
|
15540
|
+
function tf(i) {
|
|
15537
15541
|
const e = /* @__PURE__ */ new Set(["message_id", "formAction", "requestType", "serviceType"]), t = {};
|
|
15538
15542
|
for (const [r, o] of Object.entries(i))
|
|
15539
15543
|
e.has(r) || (Array.isArray(o) && o.every((n) => typeof n == "string") ? t[r] = o : typeof o == "string" && (t[r] = [o]));
|
|
15540
15544
|
return t;
|
|
15541
15545
|
}
|
|
15542
|
-
class
|
|
15546
|
+
class rf extends HTMLElement {
|
|
15543
15547
|
shadow;
|
|
15544
15548
|
static get observedAttributes() {
|
|
15545
15549
|
return ["text", "subtext"];
|
|
@@ -15588,7 +15592,7 @@ class tf extends HTMLElement {
|
|
|
15588
15592
|
function Qs(i) {
|
|
15589
15593
|
return String(i).replace(/[&<>]/g, (e) => ({ "&": "&", "<": "<", ">": ">" })[e]);
|
|
15590
15594
|
}
|
|
15591
|
-
class
|
|
15595
|
+
class nf extends HTMLElement {
|
|
15592
15596
|
shadow;
|
|
15593
15597
|
data = null;
|
|
15594
15598
|
selected = /* @__PURE__ */ new Set();
|
|
@@ -15813,7 +15817,7 @@ function Mt(i) {
|
|
|
15813
15817
|
function dn(i) {
|
|
15814
15818
|
return String(i).replace(/[&<>"']/g, (e) => ({ "&": "&", "<": "<", ">": ">", '"': """, "'": "'" })[e]);
|
|
15815
15819
|
}
|
|
15816
|
-
class
|
|
15820
|
+
class of extends HTMLElement {
|
|
15817
15821
|
shadow;
|
|
15818
15822
|
data = null;
|
|
15819
15823
|
constructor() {
|
|
@@ -15882,14 +15886,14 @@ class nf extends HTMLElement {
|
|
|
15882
15886
|
button:hover { background: var(--aikaara-submit-hover-bg, var(--aikaara-primary-hover, #4f46e5)); }
|
|
15883
15887
|
button:disabled { opacity: var(--aikaara-submit-disabled-opacity, 0.5); cursor: not-allowed; }
|
|
15884
15888
|
</style>
|
|
15885
|
-
<button type="button">${
|
|
15889
|
+
<button type="button">${sf(e)}</button>
|
|
15886
15890
|
`, this.shadow.querySelector("button").addEventListener("click", () => this.handleClick());
|
|
15887
15891
|
}
|
|
15888
15892
|
}
|
|
15889
|
-
function
|
|
15893
|
+
function sf(i) {
|
|
15890
15894
|
return String(i).replace(/[&<>]/g, (e) => ({ "&": "&", "<": "<", ">": ">" })[e]);
|
|
15891
15895
|
}
|
|
15892
|
-
class
|
|
15896
|
+
class af extends HTMLElement {
|
|
15893
15897
|
shadow;
|
|
15894
15898
|
data = null;
|
|
15895
15899
|
dismissed = !1;
|
|
@@ -15981,7 +15985,7 @@ class sf extends HTMLElement {
|
|
|
15981
15985
|
function hn(i) {
|
|
15982
15986
|
return String(i).replace(/[&<>]/g, (e) => ({ "&": "&", "<": "<", ">": ">" })[e]);
|
|
15983
15987
|
}
|
|
15984
|
-
class
|
|
15988
|
+
class lf extends HTMLElement {
|
|
15985
15989
|
shadow;
|
|
15986
15990
|
data = null;
|
|
15987
15991
|
_value = "";
|
|
@@ -16088,7 +16092,7 @@ function rr(i) {
|
|
|
16088
16092
|
(e) => ({ "&": "&", "<": "<", ">": ">", '"': """, "'": "'" })[e]
|
|
16089
16093
|
);
|
|
16090
16094
|
}
|
|
16091
|
-
class
|
|
16095
|
+
class cf extends HTMLElement {
|
|
16092
16096
|
static get observedAttributes() {
|
|
16093
16097
|
return ["slug", "user-id", "user-name", "user-token", "department-id", "config-base", "api-key"];
|
|
16094
16098
|
}
|
|
@@ -16142,7 +16146,7 @@ class lf extends HTMLElement {
|
|
|
16142
16146
|
const l = Object.keys(n).length > 0 ? n : void 0;
|
|
16143
16147
|
return this.mountInflight = (async () => {
|
|
16144
16148
|
try {
|
|
16145
|
-
this.mounted = await
|
|
16149
|
+
this.mounted = await Wf({
|
|
16146
16150
|
container: this,
|
|
16147
16151
|
slug: e,
|
|
16148
16152
|
configBase: this.getAttribute("config-base") ?? void 0,
|
|
@@ -16171,7 +16175,7 @@ class lf extends HTMLElement {
|
|
|
16171
16175
|
})(), this.mountInflight;
|
|
16172
16176
|
}
|
|
16173
16177
|
}
|
|
16174
|
-
class
|
|
16178
|
+
class uf extends HTMLElement {
|
|
16175
16179
|
shadow;
|
|
16176
16180
|
root = null;
|
|
16177
16181
|
iframe = null;
|
|
@@ -16288,7 +16292,7 @@ class cf extends HTMLElement {
|
|
|
16288
16292
|
});
|
|
16289
16293
|
}
|
|
16290
16294
|
}
|
|
16291
|
-
const
|
|
16295
|
+
const df = [
|
|
16292
16296
|
{ label: "Self-filing guidance" },
|
|
16293
16297
|
{ label: "Smart tax suggestions" },
|
|
16294
16298
|
{ label: "Auto-fetch 26AS / AIS" },
|
|
@@ -16296,7 +16300,7 @@ const uf = [
|
|
|
16296
16300
|
{ label: "Dedicated tax expert" },
|
|
16297
16301
|
{ label: "End-to-end filing" },
|
|
16298
16302
|
{ label: "Document handling" }
|
|
16299
|
-
],
|
|
16303
|
+
], hf = [
|
|
16300
16304
|
{
|
|
16301
16305
|
label: "DIY",
|
|
16302
16306
|
match: ["DIY", "DIY_SALARY"],
|
|
@@ -16319,11 +16323,11 @@ const uf = [
|
|
|
16319
16323
|
features: [!0, !0, !0, !0, !0, !0, !0]
|
|
16320
16324
|
}
|
|
16321
16325
|
];
|
|
16322
|
-
class
|
|
16326
|
+
class ff extends HTMLElement {
|
|
16323
16327
|
shadow;
|
|
16324
16328
|
data = null;
|
|
16325
|
-
columns =
|
|
16326
|
-
features =
|
|
16329
|
+
columns = hf;
|
|
16330
|
+
features = df;
|
|
16327
16331
|
constructor() {
|
|
16328
16332
|
super(), this.shadow = this.attachShadow({ mode: "open" });
|
|
16329
16333
|
}
|
|
@@ -16456,7 +16460,7 @@ function fn(i) {
|
|
|
16456
16460
|
(e) => ({ "&": "&", "<": "<", ">": ">", '"': """, "'": "'" })[e]
|
|
16457
16461
|
);
|
|
16458
16462
|
}
|
|
16459
|
-
class
|
|
16463
|
+
class pf extends HTMLElement {
|
|
16460
16464
|
shadow;
|
|
16461
16465
|
root = null;
|
|
16462
16466
|
schemas = [];
|
|
@@ -16547,7 +16551,7 @@ class ff extends HTMLElement {
|
|
|
16547
16551
|
`;
|
|
16548
16552
|
const r = this.shadow.querySelector(".modal-body"), o = this.schemas.map(
|
|
16549
16553
|
(s) => `
|
|
16550
|
-
<button class="chip" type="button" data-section-id="${
|
|
16554
|
+
<button class="chip" type="button" data-section-id="${gf(s.id)}">
|
|
16551
16555
|
<span class="chip-icon">${s.icon ?? "📄"}</span>
|
|
16552
16556
|
<span class="chip-label">${Zs(s.title)}</span>
|
|
16553
16557
|
</button>`
|
|
@@ -16580,7 +16584,7 @@ class ff extends HTMLElement {
|
|
|
16580
16584
|
e.classList.remove("view-picker"), e.classList.add("view-form");
|
|
16581
16585
|
const t = this.schemas.find((n) => n.id === this.activeSectionId), r = this.shadow.querySelector(".modal-header");
|
|
16582
16586
|
r.innerHTML = `
|
|
16583
|
-
<button class="icon-btn back-btn" type="button" aria-label="Back">${
|
|
16587
|
+
<button class="icon-btn back-btn" type="button" aria-label="Back">${mf}</button>
|
|
16584
16588
|
<div class="modal-title">${Zs(t?.title ?? "Edit")}</div>
|
|
16585
16589
|
<button class="icon-btn close-btn" type="button" aria-label="Close">${Xs}</button>
|
|
16586
16590
|
`;
|
|
@@ -16756,14 +16760,14 @@ class ff extends HTMLElement {
|
|
|
16756
16760
|
`;
|
|
16757
16761
|
}
|
|
16758
16762
|
}
|
|
16759
|
-
const Xs = '<svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><line x1="18" y1="6" x2="6" y2="18"/><line x1="6" y1="6" x2="18" y2="18"/></svg>',
|
|
16760
|
-
function
|
|
16763
|
+
const Xs = '<svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><line x1="18" y1="6" x2="6" y2="18"/><line x1="6" y1="6" x2="18" y2="18"/></svg>', mf = '<svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><line x1="19" y1="12" x2="5" y2="12"/><polyline points="12 19 5 12 12 5"/></svg>';
|
|
16764
|
+
function gf(i) {
|
|
16761
16765
|
return i.replace(/&/g, "&").replace(/"/g, """).replace(/</g, "<").replace(/>/g, ">");
|
|
16762
16766
|
}
|
|
16763
16767
|
function Zs(i) {
|
|
16764
16768
|
return i.replace(/&/g, "&").replace(/</g, "<").replace(/>/g, ">");
|
|
16765
16769
|
}
|
|
16766
|
-
class
|
|
16770
|
+
class bf extends HTMLElement {
|
|
16767
16771
|
shadow;
|
|
16768
16772
|
schema = null;
|
|
16769
16773
|
value = {};
|
|
@@ -17219,33 +17223,33 @@ function St(i) {
|
|
|
17219
17223
|
function Ge(i) {
|
|
17220
17224
|
return i.replace(/&/g, "&").replace(/</g, "<").replace(/>/g, ">");
|
|
17221
17225
|
}
|
|
17222
|
-
function
|
|
17226
|
+
function yf() {
|
|
17223
17227
|
const i = [
|
|
17224
|
-
["aikaara-chat-widget",
|
|
17225
|
-
["aikaara-chat-bubble",
|
|
17226
|
-
["aikaara-chat-header",
|
|
17227
|
-
["aikaara-message-list",
|
|
17228
|
-
["aikaara-message-bubble",
|
|
17229
|
-
["aikaara-chat-input",
|
|
17230
|
-
["aikaara-typing-indicator",
|
|
17231
|
-
["aikaara-streaming-message",
|
|
17232
|
-
["aikaara-error-banner",
|
|
17233
|
-
["aikaara-template-renderer",
|
|
17234
|
-
["aikaara-system-pill",
|
|
17235
|
-
["aikaara-option-list",
|
|
17236
|
-
["aikaara-submit-action",
|
|
17237
|
-
["aikaara-modal-action",
|
|
17238
|
-
["aikaara-text-input",
|
|
17239
|
-
["aikaara-chat",
|
|
17240
|
-
["aikaara-link-modal",
|
|
17241
|
-
["aikaara-compare-plans",
|
|
17242
|
-
["aikaara-smart-edit-modal",
|
|
17243
|
-
["aikaara-schema-form",
|
|
17228
|
+
["aikaara-chat-widget", Ih],
|
|
17229
|
+
["aikaara-chat-bubble", Th],
|
|
17230
|
+
["aikaara-chat-header", Ph],
|
|
17231
|
+
["aikaara-message-list", Fh],
|
|
17232
|
+
["aikaara-message-bubble", Hh],
|
|
17233
|
+
["aikaara-chat-input", zh],
|
|
17234
|
+
["aikaara-typing-indicator", Vh],
|
|
17235
|
+
["aikaara-streaming-message", Kh],
|
|
17236
|
+
["aikaara-error-banner", Gh],
|
|
17237
|
+
["aikaara-template-renderer", Xh],
|
|
17238
|
+
["aikaara-system-pill", rf],
|
|
17239
|
+
["aikaara-option-list", nf],
|
|
17240
|
+
["aikaara-submit-action", of],
|
|
17241
|
+
["aikaara-modal-action", af],
|
|
17242
|
+
["aikaara-text-input", lf],
|
|
17243
|
+
["aikaara-chat", cf],
|
|
17244
|
+
["aikaara-link-modal", uf],
|
|
17245
|
+
["aikaara-compare-plans", ff],
|
|
17246
|
+
["aikaara-smart-edit-modal", pf],
|
|
17247
|
+
["aikaara-schema-form", bf]
|
|
17244
17248
|
];
|
|
17245
17249
|
for (const [e, t] of i)
|
|
17246
17250
|
customElements.get(e) || customElements.define(e, t);
|
|
17247
17251
|
}
|
|
17248
|
-
|
|
17252
|
+
yf();
|
|
17249
17253
|
function br(i, e, t = "") {
|
|
17250
17254
|
if (!e) return t;
|
|
17251
17255
|
const r = e.split(".");
|
|
@@ -17271,7 +17275,7 @@ function ea(i) {
|
|
|
17271
17275
|
async function Kt(i) {
|
|
17272
17276
|
return typeof i == "function" ? await i() : i;
|
|
17273
17277
|
}
|
|
17274
|
-
class
|
|
17278
|
+
class vf {
|
|
17275
17279
|
constructor(e, t) {
|
|
17276
17280
|
this.descriptor = e, this.sessionToken = t;
|
|
17277
17281
|
}
|
|
@@ -17322,10 +17326,10 @@ class yf {
|
|
|
17322
17326
|
return this.cache = { token: d, requestId: g, fullName: f, userId: b, expiresAt: y }, this.cache;
|
|
17323
17327
|
}
|
|
17324
17328
|
}
|
|
17325
|
-
async function
|
|
17329
|
+
async function wf(i) {
|
|
17326
17330
|
const e = {};
|
|
17327
17331
|
for (const t of i.spec) {
|
|
17328
|
-
const r = await
|
|
17332
|
+
const r = await _f(t, i.providers);
|
|
17329
17333
|
if (r !== void 0 && r !== "")
|
|
17330
17334
|
e[t.name] = r;
|
|
17331
17335
|
else {
|
|
@@ -17338,11 +17342,11 @@ async function vf(i) {
|
|
|
17338
17342
|
}
|
|
17339
17343
|
return e;
|
|
17340
17344
|
}
|
|
17341
|
-
async function
|
|
17345
|
+
async function _f(i, e) {
|
|
17342
17346
|
const t = i.key ?? i.name;
|
|
17343
17347
|
switch (i.source) {
|
|
17344
17348
|
case "cookie":
|
|
17345
|
-
return
|
|
17349
|
+
return kf(t);
|
|
17346
17350
|
case "localStorage":
|
|
17347
17351
|
return yr(() => window.localStorage.getItem(t) ?? void 0);
|
|
17348
17352
|
case "sessionStorage":
|
|
@@ -17350,7 +17354,7 @@ async function wf(i, e) {
|
|
|
17350
17354
|
case "url_param":
|
|
17351
17355
|
return yr(() => new URL(window.location.href).searchParams.get(t) ?? void 0);
|
|
17352
17356
|
case "header_meta":
|
|
17353
|
-
return yr(() => document.querySelector(`meta[name="${
|
|
17357
|
+
return yr(() => document.querySelector(`meta[name="${xf(t)}"]`)?.content ?? void 0);
|
|
17354
17358
|
case "callback": {
|
|
17355
17359
|
const r = e?.[i.name];
|
|
17356
17360
|
if (!r) return;
|
|
@@ -17361,7 +17365,7 @@ async function wf(i, e) {
|
|
|
17361
17365
|
return;
|
|
17362
17366
|
}
|
|
17363
17367
|
}
|
|
17364
|
-
function
|
|
17368
|
+
function kf(i) {
|
|
17365
17369
|
if (typeof document > "u") return;
|
|
17366
17370
|
const e = encodeURIComponent(i), t = document.cookie ? document.cookie.split("; ") : [];
|
|
17367
17371
|
for (const r of t) {
|
|
@@ -17383,11 +17387,11 @@ function yr(i) {
|
|
|
17383
17387
|
return;
|
|
17384
17388
|
}
|
|
17385
17389
|
}
|
|
17386
|
-
function
|
|
17390
|
+
function xf(i) {
|
|
17387
17391
|
return i.replace(/["\\]/g, "\\$&");
|
|
17388
17392
|
}
|
|
17389
|
-
const
|
|
17390
|
-
class
|
|
17393
|
+
const Sf = 1800;
|
|
17394
|
+
class Ef {
|
|
17391
17395
|
constructor(e) {
|
|
17392
17396
|
this.opts = e, this.cache = this.loadCache();
|
|
17393
17397
|
}
|
|
@@ -17416,7 +17420,7 @@ class Sf {
|
|
|
17416
17420
|
throw new Error(
|
|
17417
17421
|
"[aikaara-chat-sdk] SsoExchangeAdapter.exchange() requires descriptor.sso.collect; v2 partner-token flow should be handled by TokenDiscoveryReader instead."
|
|
17418
17422
|
);
|
|
17419
|
-
const e = await
|
|
17423
|
+
const e = await wf({
|
|
17420
17424
|
spec: this.opts.descriptor.collect,
|
|
17421
17425
|
providers: this.opts.providers
|
|
17422
17426
|
}), t = JSON.stringify({ credentials: e }), r = {
|
|
@@ -17454,7 +17458,7 @@ class Sf {
|
|
|
17454
17458
|
return this.cache = u, this.persistCache(u), u;
|
|
17455
17459
|
}
|
|
17456
17460
|
computeExpiry() {
|
|
17457
|
-
const e = this.opts.descriptor.cacheTtlSec ??
|
|
17461
|
+
const e = this.opts.descriptor.cacheTtlSec ?? Sf;
|
|
17458
17462
|
if (!(!this.opts.descriptor.cacheKey || e <= 0))
|
|
17459
17463
|
return Date.now() + e * 1e3;
|
|
17460
17464
|
}
|
|
@@ -17487,8 +17491,8 @@ class Sf {
|
|
|
17487
17491
|
}
|
|
17488
17492
|
}
|
|
17489
17493
|
}
|
|
17490
|
-
const
|
|
17491
|
-
async function
|
|
17494
|
+
const Af = 3e4, If = 2e3, Tf = 100;
|
|
17495
|
+
async function Cf(i) {
|
|
17492
17496
|
const { descriptor: e } = i, t = e.tokenSourceConfig ?? {};
|
|
17493
17497
|
switch (e.tokenSource) {
|
|
17494
17498
|
case "init": {
|
|
@@ -17497,37 +17501,37 @@ async function Tf(i) {
|
|
|
17497
17501
|
return { token: i.initToken, source: "init" };
|
|
17498
17502
|
}
|
|
17499
17503
|
case "query": {
|
|
17500
|
-
const r = typeof t.key == "string" && t.key ? t.key : "token", o =
|
|
17504
|
+
const r = typeof t.key == "string" && t.key ? t.key : "token", o = Of(r);
|
|
17501
17505
|
if (!o) throw new Xe("query", `?${r}= not present`);
|
|
17502
17506
|
return { token: o, source: "query" };
|
|
17503
17507
|
}
|
|
17504
17508
|
case "hash": {
|
|
17505
|
-
const r = typeof t.key == "string" && t.key ? t.key : "token", o =
|
|
17509
|
+
const r = typeof t.key == "string" && t.key ? t.key : "token", o = Mf(r);
|
|
17506
17510
|
if (!o) throw new Xe("hash", `#${r}= not present`);
|
|
17507
17511
|
return { token: o, source: "hash" };
|
|
17508
17512
|
}
|
|
17509
17513
|
case "postmsg": {
|
|
17510
|
-
const r = typeof t.type == "string" ? t.type : "", o = typeof t.key == "string" && t.key ? t.key : "token", n =
|
|
17511
|
-
return { token: await
|
|
17514
|
+
const r = typeof t.type == "string" ? t.type : "", o = typeof t.key == "string" && t.key ? t.key : "token", n = Uf(typeof t.origins == "string" ? t.origins : ""), s = typeof t.timeoutMs == "number" && t.timeoutMs > 0 ? t.timeoutMs : Af;
|
|
17515
|
+
return { token: await jf({ type: r, key: o, origins: n, timeoutMs: s }), source: "postmsg" };
|
|
17512
17516
|
}
|
|
17513
17517
|
case "cookie": {
|
|
17514
17518
|
const r = typeof t.name == "string" && t.name ? t.name : "";
|
|
17515
17519
|
if (!r) throw new Xe("cookie", "cookie.name not configured");
|
|
17516
|
-
const o =
|
|
17520
|
+
const o = Lf(r);
|
|
17517
17521
|
if (!o) throw new Xe("cookie", `cookie "${r}" not set`);
|
|
17518
17522
|
return { token: o, source: "cookie" };
|
|
17519
17523
|
}
|
|
17520
17524
|
case "storage": {
|
|
17521
17525
|
const r = t.store === "session" ? "session" : "local", o = typeof t.key == "string" && t.key ? t.key : "", n = typeof t.path == "string" ? t.path : "";
|
|
17522
17526
|
if (!o) throw new Xe("storage", "storage.key not configured");
|
|
17523
|
-
const s =
|
|
17527
|
+
const s = Rf(r, o, n);
|
|
17524
17528
|
if (!s) throw new Xe("storage", `${r}Storage["${o}"] not set`);
|
|
17525
17529
|
return { token: s, source: "storage" };
|
|
17526
17530
|
}
|
|
17527
17531
|
case "global": {
|
|
17528
17532
|
const r = typeof t.path == "string" ? t.path : "";
|
|
17529
17533
|
if (!r) throw new Xe("global", "global.path not configured");
|
|
17530
|
-
const o = typeof t.timeoutMs == "number" && t.timeoutMs > 0 ? t.timeoutMs :
|
|
17534
|
+
const o = typeof t.timeoutMs == "number" && t.timeoutMs > 0 ? t.timeoutMs : If, n = typeof t.intervalMs == "number" && t.intervalMs > 0 ? t.intervalMs : Tf, s = await Nf(r, o, n);
|
|
17531
17535
|
if (!s) throw new Xe("global", `window.${r} not present`);
|
|
17532
17536
|
return { token: s, source: "global" };
|
|
17533
17537
|
}
|
|
@@ -17540,7 +17544,7 @@ async function Tf(i) {
|
|
|
17540
17544
|
}
|
|
17541
17545
|
}
|
|
17542
17546
|
}
|
|
17543
|
-
class
|
|
17547
|
+
class Pf {
|
|
17544
17548
|
constructor(e) {
|
|
17545
17549
|
this.opts = e;
|
|
17546
17550
|
}
|
|
@@ -17551,7 +17555,7 @@ class Cf {
|
|
|
17551
17555
|
/** Resolve the token. Returns cache if present. */
|
|
17552
17556
|
async get() {
|
|
17553
17557
|
if (this.cached) return this.cached;
|
|
17554
|
-
const e = await
|
|
17558
|
+
const e = await Cf(this.opts);
|
|
17555
17559
|
return this.cached = e, e;
|
|
17556
17560
|
}
|
|
17557
17561
|
/**
|
|
@@ -17568,7 +17572,7 @@ class Xe extends Error {
|
|
|
17568
17572
|
super(`[aikaara-chat-sdk] token-discovery (${e}): ${t}`), this.source = e, this.name = "TokenDiscoveryError";
|
|
17569
17573
|
}
|
|
17570
17574
|
}
|
|
17571
|
-
function
|
|
17575
|
+
function Of(i) {
|
|
17572
17576
|
if (!(typeof window > "u"))
|
|
17573
17577
|
try {
|
|
17574
17578
|
const e = window.location.search.slice(1);
|
|
@@ -17582,7 +17586,7 @@ function Pf(i) {
|
|
|
17582
17586
|
return;
|
|
17583
17587
|
}
|
|
17584
17588
|
}
|
|
17585
|
-
function
|
|
17589
|
+
function Mf(i) {
|
|
17586
17590
|
if (!(typeof window > "u"))
|
|
17587
17591
|
try {
|
|
17588
17592
|
const e = window.location.hash.replace(/^#/, "");
|
|
@@ -17591,7 +17595,7 @@ function Of(i) {
|
|
|
17591
17595
|
return;
|
|
17592
17596
|
}
|
|
17593
17597
|
}
|
|
17594
|
-
function
|
|
17598
|
+
function Lf(i) {
|
|
17595
17599
|
if (typeof document > "u") return;
|
|
17596
17600
|
const e = encodeURIComponent(i), t = document.cookie ? document.cookie.split("; ") : [];
|
|
17597
17601
|
for (const r of t) {
|
|
@@ -17606,7 +17610,7 @@ function Mf(i) {
|
|
|
17606
17610
|
}
|
|
17607
17611
|
}
|
|
17608
17612
|
}
|
|
17609
|
-
function
|
|
17613
|
+
function Rf(i, e, t) {
|
|
17610
17614
|
if (!(typeof window > "u"))
|
|
17611
17615
|
try {
|
|
17612
17616
|
const o = (i === "session" ? window.sessionStorage : window.localStorage).getItem(e);
|
|
@@ -17618,17 +17622,17 @@ function Lf(i, e, t) {
|
|
|
17618
17622
|
} catch {
|
|
17619
17623
|
return o;
|
|
17620
17624
|
}
|
|
17621
|
-
const s =
|
|
17625
|
+
const s = Hl(n, t);
|
|
17622
17626
|
return typeof s == "string" ? s : void 0;
|
|
17623
17627
|
} catch {
|
|
17624
17628
|
return;
|
|
17625
17629
|
}
|
|
17626
17630
|
}
|
|
17627
|
-
async function
|
|
17631
|
+
async function Nf(i, e, t) {
|
|
17628
17632
|
if (typeof window > "u") return;
|
|
17629
17633
|
const r = Date.now() + e;
|
|
17630
17634
|
for (; Date.now() < r; ) {
|
|
17631
|
-
const o =
|
|
17635
|
+
const o = Hl(window, i);
|
|
17632
17636
|
if (typeof o == "string" && o.length > 0) return o;
|
|
17633
17637
|
if (typeof o == "function")
|
|
17634
17638
|
try {
|
|
@@ -17639,7 +17643,7 @@ async function Rf(i, e, t) {
|
|
|
17639
17643
|
await new Promise((n) => setTimeout(n, t));
|
|
17640
17644
|
}
|
|
17641
17645
|
}
|
|
17642
|
-
function
|
|
17646
|
+
function jf(i) {
|
|
17643
17647
|
return new Promise((e, t) => {
|
|
17644
17648
|
if (typeof window > "u") {
|
|
17645
17649
|
t(new Xe("postmsg", "no window"));
|
|
@@ -17661,10 +17665,10 @@ function Nf(i) {
|
|
|
17661
17665
|
window.addEventListener("message", n);
|
|
17662
17666
|
});
|
|
17663
17667
|
}
|
|
17664
|
-
function
|
|
17668
|
+
function Uf(i) {
|
|
17665
17669
|
return i ? i.split(/[,\s]+/).map((e) => e.trim()).filter(Boolean) : [];
|
|
17666
17670
|
}
|
|
17667
|
-
function
|
|
17671
|
+
function Hl(i, e) {
|
|
17668
17672
|
if (!e) return i;
|
|
17669
17673
|
const t = e.split(".").filter(Boolean);
|
|
17670
17674
|
let r = i;
|
|
@@ -17675,7 +17679,7 @@ function ql(i, e) {
|
|
|
17675
17679
|
return;
|
|
17676
17680
|
return r;
|
|
17677
17681
|
}
|
|
17678
|
-
function
|
|
17682
|
+
function Df() {
|
|
17679
17683
|
const i = typeof crypto < "u" ? crypto : null;
|
|
17680
17684
|
if (i?.randomUUID) return i.randomUUID();
|
|
17681
17685
|
if (i?.getRandomValues) {
|
|
@@ -17689,25 +17693,25 @@ function Uf() {
|
|
|
17689
17693
|
return (e === "x" ? t : t & 3 | 8).toString(16);
|
|
17690
17694
|
});
|
|
17691
17695
|
}
|
|
17692
|
-
const
|
|
17696
|
+
const Bf = "aikaara_chat:requestId";
|
|
17693
17697
|
function Co(i, e, t) {
|
|
17694
|
-
const r = `${
|
|
17698
|
+
const r = `${Bf}:${i}:${e}`;
|
|
17695
17699
|
return t ? `${r}:${t}` : r;
|
|
17696
17700
|
}
|
|
17697
|
-
function
|
|
17701
|
+
function Wl(i, e, t) {
|
|
17698
17702
|
try {
|
|
17699
17703
|
return localStorage.getItem(Co(i, e, t));
|
|
17700
17704
|
} catch {
|
|
17701
17705
|
return null;
|
|
17702
17706
|
}
|
|
17703
17707
|
}
|
|
17704
|
-
function
|
|
17708
|
+
function Ff(i, e, t, r) {
|
|
17705
17709
|
try {
|
|
17706
17710
|
localStorage.setItem(Co(i, e, r), t);
|
|
17707
17711
|
} catch {
|
|
17708
17712
|
}
|
|
17709
17713
|
}
|
|
17710
|
-
function
|
|
17714
|
+
function zf(i, e, t) {
|
|
17711
17715
|
try {
|
|
17712
17716
|
localStorage.removeItem(Co(i, e, t));
|
|
17713
17717
|
} catch {
|
|
@@ -17756,7 +17760,7 @@ async function fo(i, e, t = "before-chat") {
|
|
|
17756
17760
|
_ = x;
|
|
17757
17761
|
break;
|
|
17758
17762
|
}
|
|
17759
|
-
if (y = x.status, w = await x.text().catch(() => ""), m < c.length &&
|
|
17763
|
+
if (y = x.status, w = await x.text().catch(() => ""), m < c.length && $f(y, w)) {
|
|
17760
17764
|
const S = c[m++];
|
|
17761
17765
|
console.warn(
|
|
17762
17766
|
`[aikaara-chat-sdk] preflight #${u} ${g} ${p} → ${y} (transient). Retry #${m} in ${S}ms.`
|
|
@@ -17810,7 +17814,7 @@ async function fo(i, e, t = "before-chat") {
|
|
|
17810
17814
|
}
|
|
17811
17815
|
return { captured: l };
|
|
17812
17816
|
}
|
|
17813
|
-
async function
|
|
17817
|
+
async function Vf(i) {
|
|
17814
17818
|
const e = i.steps ?? [];
|
|
17815
17819
|
return e.some((r) => r.trigger === "on-method-select") ? (await fo(
|
|
17816
17820
|
e,
|
|
@@ -17826,7 +17830,7 @@ async function zf(i) {
|
|
|
17826
17830
|
"on-method-select"
|
|
17827
17831
|
)).captured : {};
|
|
17828
17832
|
}
|
|
17829
|
-
function
|
|
17833
|
+
function $f(i, e) {
|
|
17830
17834
|
if (i === 503 || i === 504 || i === 502) return !0;
|
|
17831
17835
|
if (i === 401 || i === 403) return e.trim().length === 0;
|
|
17832
17836
|
if (i === 500) {
|
|
@@ -17835,7 +17839,7 @@ function Ff(i, e) {
|
|
|
17835
17839
|
}
|
|
17836
17840
|
return !1;
|
|
17837
17841
|
}
|
|
17838
|
-
async function
|
|
17842
|
+
async function zl(i, e) {
|
|
17839
17843
|
const t = await fetch(i, {
|
|
17840
17844
|
method: "GET",
|
|
17841
17845
|
headers: { accept: "application/json", ...e ?? {} }
|
|
@@ -17851,10 +17855,10 @@ async function Wl(i, e) {
|
|
|
17851
17855
|
}
|
|
17852
17856
|
return r;
|
|
17853
17857
|
}
|
|
17854
|
-
function
|
|
17855
|
-
return i.replace("{projectId}", e).replace("{uuid}",
|
|
17858
|
+
function Vl(i, e) {
|
|
17859
|
+
return i.replace("{projectId}", e).replace("{uuid}", Df().replace(/-/g, ""));
|
|
17856
17860
|
}
|
|
17857
|
-
function
|
|
17861
|
+
function Kl(i) {
|
|
17858
17862
|
const e = i._preload;
|
|
17859
17863
|
if (!Array.isArray(e) || e.length === 0) return;
|
|
17860
17864
|
const t = Array.from(
|
|
@@ -17862,19 +17866,19 @@ function Vl(i) {
|
|
|
17862
17866
|
e.map((r) => r && typeof r == "object" ? r.scriptUrl : null).filter((r) => typeof r == "string" && r.length > 0)
|
|
17863
17867
|
)
|
|
17864
17868
|
);
|
|
17865
|
-
t.length !== 0 && Promise.allSettled(t.map((r) =>
|
|
17869
|
+
t.length !== 0 && Promise.allSettled(t.map((r) => ql(r)));
|
|
17866
17870
|
}
|
|
17867
|
-
async function
|
|
17871
|
+
async function qf(i) {
|
|
17868
17872
|
const e = {
|
|
17869
|
-
...i.config ?? (i.configUrl ? await
|
|
17873
|
+
...i.config ?? (i.configUrl ? await zl(i.configUrl, i.configHeaders) : {}),
|
|
17870
17874
|
...i.overrides ?? {}
|
|
17871
17875
|
};
|
|
17872
|
-
|
|
17876
|
+
Kl(e);
|
|
17873
17877
|
const t = e.transport ?? "tiledesk", r = e.tiledesk;
|
|
17874
17878
|
if ((t === "tiledesk" || t === "dual") && !r)
|
|
17875
17879
|
throw new Error("mount: descriptor.tiledesk is required for tiledesk/dual transport");
|
|
17876
|
-
const o = r?.projectId ?? "", n = i.identity.userId, s = i.conversationScope || void 0, a = i.forceNewConversation ? null :
|
|
17877
|
-
(i.conversationId || !a || i.forceNewConversation) && o &&
|
|
17880
|
+
const o = r?.projectId ?? "", n = i.identity.userId, s = i.conversationScope || void 0, a = i.forceNewConversation ? null : Wl(n, o, s), l = r?.requestIdTemplate ?? "support-group-{projectId}-{uuid}", c = i.conversationId ?? a ?? Vl(l, o);
|
|
17881
|
+
(i.conversationId || !a || i.forceNewConversation) && o && Ff(n, o, c, s);
|
|
17878
17882
|
const u = await i.tokenProvider(), d = i.tokenProvider, p = i.historyTokenProvider ?? d, g = r ? {
|
|
17879
17883
|
mqttEndpoint: r.mqttEndpoint,
|
|
17880
17884
|
jwtToken: u,
|
|
@@ -17906,7 +17910,7 @@ async function $f(i) {
|
|
|
17906
17910
|
endpoint: e.uploadEndpoint,
|
|
17907
17911
|
fieldName: e.uploadFieldName,
|
|
17908
17912
|
extraFields: e.uploadExtraFields
|
|
17909
|
-
}) : void 0), b = i.historyAdapter ?? (e.historyApiBase ?
|
|
17913
|
+
}) : void 0), b = i.historyAdapter ?? (e.historyApiBase ? Md({
|
|
17910
17914
|
apiBase: e.historyApiBase,
|
|
17911
17915
|
pageSize: e.historyPageSize ?? 200,
|
|
17912
17916
|
pathTemplate: e.historyPathTemplate,
|
|
@@ -17962,17 +17966,17 @@ async function $f(i) {
|
|
|
17962
17966
|
}
|
|
17963
17967
|
};
|
|
17964
17968
|
}
|
|
17965
|
-
function
|
|
17969
|
+
function Hf(i) {
|
|
17966
17970
|
if (typeof i != "string") return i;
|
|
17967
17971
|
const e = document.querySelector(i);
|
|
17968
17972
|
if (!e) throw new Error(`mountFromSlug: container "${i}" not found`);
|
|
17969
17973
|
return e;
|
|
17970
17974
|
}
|
|
17971
|
-
async function
|
|
17975
|
+
async function Wf(i) {
|
|
17972
17976
|
const e = (i.configBase ?? "https://api.aikaara.com").replace(/\/$/, ""), t = `${e}/api/v1/widget_configs/${encodeURIComponent(i.slug)}`;
|
|
17973
17977
|
let r = null;
|
|
17974
17978
|
try {
|
|
17975
|
-
r = await
|
|
17979
|
+
r = await zl(t, i.configHeaders);
|
|
17976
17980
|
} catch (I) {
|
|
17977
17981
|
if (!i.fallbackConfig) throw I;
|
|
17978
17982
|
console.warn(
|
|
@@ -17985,7 +17989,7 @@ async function Hf(i) {
|
|
|
17985
17989
|
...r ?? {},
|
|
17986
17990
|
...i.overrides ?? {}
|
|
17987
17991
|
};
|
|
17988
|
-
if (
|
|
17992
|
+
if (Kl(o), o.templates && Object.keys(o.templates).length > 0) {
|
|
17989
17993
|
o.components = { ...o.components ?? {} };
|
|
17990
17994
|
for (const [I, P] of Object.entries(o.templates)) {
|
|
17991
17995
|
const O = `template:${I}`;
|
|
@@ -18018,7 +18022,7 @@ async function Hf(i) {
|
|
|
18018
18022
|
let s = null, a = i.user.id, l = i.user.name, c = "", u = i.user.token, d = null;
|
|
18019
18023
|
const p = await Kt(i.user.token).catch(() => ""), g = typeof p == "string" && p.length > 0;
|
|
18020
18024
|
if (!g && o.sso?.tokenSource) {
|
|
18021
|
-
d = new
|
|
18025
|
+
d = new Pf({
|
|
18022
18026
|
descriptor: {
|
|
18023
18027
|
provider: o.sso.provider,
|
|
18024
18028
|
flow: o.sso.flow,
|
|
@@ -18035,7 +18039,7 @@ async function Hf(i) {
|
|
|
18035
18039
|
u = async () => (await d.get()).token, i.user.identity && !i.user.identity.partnerToken && (i.user.identity.partnerToken = I.token);
|
|
18036
18040
|
} else if (!g && o.sso && o.sso.collect && o.sso.collect.length > 0) {
|
|
18037
18041
|
const I = `${e}/api/v1/projects/by-slug/${encodeURIComponent(i.slug)}/sso_exchange`;
|
|
18038
|
-
s = await new
|
|
18042
|
+
s = await new Ef({
|
|
18039
18043
|
descriptor: o.sso,
|
|
18040
18044
|
providers: i.user.credentialProviders,
|
|
18041
18045
|
exchangeUrl: I
|
|
@@ -18057,9 +18061,9 @@ async function Hf(i) {
|
|
|
18057
18061
|
}
|
|
18058
18062
|
I.captured.userId && (a = I.captured.userId), I.captured.requestId && (b = I.captured.requestId);
|
|
18059
18063
|
}
|
|
18060
|
-
const y = new
|
|
18064
|
+
const y = new vf(o.auth, u);
|
|
18061
18065
|
if (f) {
|
|
18062
|
-
const I = o.tiledesk?.projectId ?? "", P = I ?
|
|
18066
|
+
const I = o.tiledesk?.projectId ?? "", P = I ? Wl(a, I) : null, O = o.tiledesk?.requestIdTemplate ?? "support-group-{projectId}-{uuid}", B = P ?? (I ? Vl(O, I) : "");
|
|
18063
18067
|
y.prime(f, { requestId: B, fullName: l });
|
|
18064
18068
|
}
|
|
18065
18069
|
const w = await y.get();
|
|
@@ -18080,7 +18084,7 @@ async function Hf(i) {
|
|
|
18080
18084
|
} catch (I) {
|
|
18081
18085
|
return console.warn("[aikaara-chat-sdk] partner auto-refresh failed", I), null;
|
|
18082
18086
|
}
|
|
18083
|
-
} : null, x = o.upload, v = async () => `Bearer ${x && "tokenSource" in x && x.tokenSource === "chat" ? (await y.get()).token : await Kt(i.user.token)}`, S = i.hooks?.upload ?? (x && x.mode === "presigned-3step" ?
|
|
18087
|
+
} : null, x = o.upload, v = async () => `Bearer ${x && "tokenSource" in x && x.tokenSource === "chat" ? (await y.get()).token : await Kt(i.user.token)}`, S = i.hooks?.upload ?? (x && x.mode === "presigned-3step" ? Pd({
|
|
18084
18088
|
...x,
|
|
18085
18089
|
authHeader: v
|
|
18086
18090
|
}) : x && x.mode === "direct" ? Nl({
|
|
@@ -18088,8 +18092,8 @@ async function Hf(i) {
|
|
|
18088
18092
|
fieldName: x.fieldName,
|
|
18089
18093
|
extraFields: x.extraFields,
|
|
18090
18094
|
headers: async () => ({ authorization: await v() })
|
|
18091
|
-
}) : void 0), E = await
|
|
18092
|
-
container:
|
|
18095
|
+
}) : void 0), E = await qf({
|
|
18096
|
+
container: Hf(i.container),
|
|
18093
18097
|
config: o,
|
|
18094
18098
|
// SSO-issued Aikaara user token, used by the ActionCable transport.
|
|
18095
18099
|
// Tiledesk-only widgets ignore this; falls back to `userId` inside `mount`.
|
|
@@ -18145,51 +18149,51 @@ async function Hf(i) {
|
|
|
18145
18149
|
}
|
|
18146
18150
|
export {
|
|
18147
18151
|
Po as A,
|
|
18148
|
-
|
|
18149
|
-
|
|
18150
|
-
|
|
18152
|
+
Wf as B,
|
|
18153
|
+
Gl as C,
|
|
18154
|
+
qf as D,
|
|
18151
18155
|
ta as E,
|
|
18152
18156
|
Rl as F,
|
|
18153
|
-
|
|
18154
|
-
|
|
18155
|
-
|
|
18156
|
-
|
|
18157
|
-
|
|
18158
|
-
|
|
18159
|
-
|
|
18160
|
-
|
|
18161
|
-
|
|
18162
|
-
|
|
18163
|
-
|
|
18164
|
-
|
|
18165
|
-
|
|
18166
|
-
|
|
18167
|
-
|
|
18168
|
-
|
|
18169
|
-
|
|
18170
|
-
|
|
18171
|
-
|
|
18172
|
-
|
|
18173
|
-
|
|
18174
|
-
|
|
18175
|
-
|
|
18176
|
-
|
|
18177
|
-
|
|
18178
|
-
|
|
18179
|
-
|
|
18180
|
-
|
|
18181
|
-
|
|
18182
|
-
|
|
18157
|
+
Vf as G,
|
|
18158
|
+
Dh as H,
|
|
18159
|
+
cf as I,
|
|
18160
|
+
ff as J,
|
|
18161
|
+
uf as K,
|
|
18162
|
+
af as L,
|
|
18163
|
+
sc as M,
|
|
18164
|
+
nf as N,
|
|
18165
|
+
bf as O,
|
|
18166
|
+
pf as P,
|
|
18167
|
+
of as Q,
|
|
18168
|
+
rf as R,
|
|
18169
|
+
vf as S,
|
|
18170
|
+
wd as T,
|
|
18171
|
+
Xh as U,
|
|
18172
|
+
lf as V,
|
|
18173
|
+
Th as a,
|
|
18174
|
+
Ad as b,
|
|
18175
|
+
Ph as c,
|
|
18176
|
+
zh as d,
|
|
18177
|
+
Ih as e,
|
|
18178
|
+
Gh as f,
|
|
18179
|
+
Hh as g,
|
|
18180
|
+
Fh as h,
|
|
18181
|
+
Kh as i,
|
|
18182
|
+
Vh as j,
|
|
18183
|
+
oc as k,
|
|
18184
|
+
ic as l,
|
|
18185
|
+
ac as m,
|
|
18186
|
+
Ef as n,
|
|
18183
18187
|
Xe as o,
|
|
18184
|
-
|
|
18185
|
-
|
|
18186
|
-
|
|
18187
|
-
|
|
18188
|
+
Pf as p,
|
|
18189
|
+
zf as q,
|
|
18190
|
+
yf as r,
|
|
18191
|
+
wf as s,
|
|
18188
18192
|
Nl as t,
|
|
18189
|
-
|
|
18190
|
-
|
|
18191
|
-
|
|
18192
|
-
|
|
18193
|
-
|
|
18194
|
-
|
|
18193
|
+
Pd as u,
|
|
18194
|
+
Md as v,
|
|
18195
|
+
Cf as w,
|
|
18196
|
+
Sd as x,
|
|
18197
|
+
xd as y,
|
|
18198
|
+
kd as z
|
|
18195
18199
|
};
|