@cimulate/copilot-widget 1.55.3 → 1.55.5
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/CHANGELOG.md +8 -0
- package/dist/cimulate-copilot-widget.es.js +734 -718
- package/dist/cimulate-copilot-widget.umd.js +20 -20
- package/dist/copilot.es.js +741 -725
- package/dist/copilot.umd.js +20 -20
- package/dist/messaging.es.js +2268 -2252
- package/dist/messaging.umd.js +16 -16
- package/package.json +1 -1
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
var nE = Object.defineProperty, rE = Object.defineProperties;
|
|
2
2
|
var iE = Object.getOwnPropertyDescriptors;
|
|
3
|
-
var
|
|
3
|
+
var bs = Object.getOwnPropertySymbols;
|
|
4
4
|
var Zc = Object.prototype.hasOwnProperty, el = Object.prototype.propertyIsEnumerable;
|
|
5
5
|
var Cr = (e, t) => (t = Symbol[e]) ? t : /* @__PURE__ */ Symbol.for("Symbol." + e), sE = (e) => {
|
|
6
6
|
throw TypeError(e);
|
|
7
7
|
}, li = Math.pow, Ko = (e, t, n) => t in e ? nE(e, t, { enumerable: !0, configurable: !0, writable: !0, value: n }) : e[t] = n, x = (e, t) => {
|
|
8
8
|
for (var n in t || (t = {}))
|
|
9
9
|
Zc.call(t, n) && Ko(e, n, t[n]);
|
|
10
|
-
if (
|
|
11
|
-
for (var n of
|
|
10
|
+
if (bs)
|
|
11
|
+
for (var n of bs(t))
|
|
12
12
|
el.call(t, n) && Ko(e, n, t[n]);
|
|
13
13
|
return e;
|
|
14
14
|
}, q = (e, t) => rE(e, iE(t));
|
|
@@ -16,8 +16,8 @@ var dt = (e, t) => {
|
|
|
16
16
|
var n = {};
|
|
17
17
|
for (var r in e)
|
|
18
18
|
Zc.call(e, r) && t.indexOf(r) < 0 && (n[r] = e[r]);
|
|
19
|
-
if (e != null &&
|
|
20
|
-
for (var r of
|
|
19
|
+
if (e != null && bs)
|
|
20
|
+
for (var r of bs(e))
|
|
21
21
|
t.indexOf(r) < 0 && el.call(e, r) && (n[r] = e[r]);
|
|
22
22
|
return n;
|
|
23
23
|
};
|
|
@@ -39,7 +39,7 @@ var _e = (e, t, n) => new Promise((r, i) => {
|
|
|
39
39
|
a((n = n.apply(e, t)).next());
|
|
40
40
|
}), sn = function(e, t) {
|
|
41
41
|
this[0] = e, this[1] = t;
|
|
42
|
-
},
|
|
42
|
+
}, Ts = (e, t, n) => {
|
|
43
43
|
var r = (a, u, c, l) => {
|
|
44
44
|
try {
|
|
45
45
|
var d = n[a](u), p = (u = d.value) instanceof sn, h = d.done;
|
|
@@ -68,7 +68,7 @@ var _e = (e, t, n) => new Promise((r, i) => {
|
|
|
68
68
|
}, "return" in t && r("return"), i;
|
|
69
69
|
}, tl = (e, t, n) => (t = e[Cr("asyncIterator")]) ? t.call(e) : (e = e[Cr("iterator")](), t = {}, n = (r, i) => (i = e[r]) && (t[r] = (s) => new Promise((o, a, u) => (s = i.call(e, s), u = s.done, Promise.resolve(s.value).then((c) => o({ value: c, done: u }), a)))), n("next"), n("return"), t);
|
|
70
70
|
import { jsx as y, jsxs as te, Fragment as Bt } from "react/jsx-runtime";
|
|
71
|
-
import sr, { useMemo as ze, useReducer as oE, createContext as Rt, useEffect as we, useContext as Nt, useCallback as oe, useRef as Fe, useState as xe, useId as
|
|
71
|
+
import sr, { useMemo as ze, useReducer as oE, createContext as Rt, useEffect as we, useContext as Nt, useCallback as oe, useRef as Fe, useState as xe, useId as Ji, useLayoutEffect as Hf, memo as aE, forwardRef as ft, createElement as uE, isValidElement as $f, Children as zf, cloneElement as cE, useSyncExternalStore as lE } from "react";
|
|
72
72
|
import { createPortal as Iu, flushSync as wu } from "react-dom";
|
|
73
73
|
import { createRoot as dE } from "react-dom/client";
|
|
74
74
|
const pn = /* @__PURE__ */ Object.create(null);
|
|
@@ -79,9 +79,9 @@ pn.pong = "3";
|
|
|
79
79
|
pn.message = "4";
|
|
80
80
|
pn.upgrade = "5";
|
|
81
81
|
pn.noop = "6";
|
|
82
|
-
const
|
|
82
|
+
const Ds = /* @__PURE__ */ Object.create(null);
|
|
83
83
|
Object.keys(pn).forEach((e) => {
|
|
84
|
-
|
|
84
|
+
Ds[pn[e]] = e;
|
|
85
85
|
});
|
|
86
86
|
const Ba = { type: "error", data: "parser error" }, Vf = typeof Blob == "function" || typeof Blob != "undefined" && Object.prototype.toString.call(Blob) === "[object BlobConstructor]", qf = typeof ArrayBuffer == "function", Yf = (e) => typeof ArrayBuffer.isView == "function" ? ArrayBuffer.isView(e) : e && e.buffer instanceof ArrayBuffer, ku = ({ type: e, data: t }, n, r) => Vf && t instanceof Blob ? n ? r(t) : nl(t, r) : qf && (t instanceof ArrayBuffer || Yf(t)) ? n ? r(t) : nl(new Blob([t]), r) : r(pn[e] + (t || "")), nl = (e, t) => {
|
|
87
87
|
const n = new FileReader();
|
|
@@ -123,11 +123,11 @@ const hE = (e) => {
|
|
|
123
123
|
return n === "b" ? {
|
|
124
124
|
type: "message",
|
|
125
125
|
data: mE(e.substring(1), t)
|
|
126
|
-
} :
|
|
127
|
-
type:
|
|
126
|
+
} : Ds[n] ? e.length > 1 ? {
|
|
127
|
+
type: Ds[n],
|
|
128
128
|
data: e.substring(1)
|
|
129
129
|
} : {
|
|
130
|
-
type:
|
|
130
|
+
type: Ds[n]
|
|
131
131
|
} : Ba;
|
|
132
132
|
}, mE = (e, t) => {
|
|
133
133
|
if (pE) {
|
|
@@ -175,10 +175,10 @@ function bE() {
|
|
|
175
175
|
});
|
|
176
176
|
}
|
|
177
177
|
let Zo;
|
|
178
|
-
function
|
|
178
|
+
function ys(e) {
|
|
179
179
|
return e.reduce((t, n) => t + n.length, 0);
|
|
180
180
|
}
|
|
181
|
-
function
|
|
181
|
+
function _s(e, t) {
|
|
182
182
|
if (e[0].length === t)
|
|
183
183
|
return e.shift();
|
|
184
184
|
const n = new Uint8Array(t);
|
|
@@ -195,28 +195,28 @@ function TE(e, t) {
|
|
|
195
195
|
transform(o, a) {
|
|
196
196
|
for (n.push(o); ; ) {
|
|
197
197
|
if (r === 0) {
|
|
198
|
-
if (
|
|
198
|
+
if (ys(n) < 1)
|
|
199
199
|
break;
|
|
200
|
-
const u =
|
|
200
|
+
const u = _s(n, 1);
|
|
201
201
|
s = (u[0] & 128) === 128, i = u[0] & 127, i < 126 ? r = 3 : i === 126 ? r = 1 : r = 2;
|
|
202
202
|
} else if (r === 1) {
|
|
203
|
-
if (
|
|
203
|
+
if (ys(n) < 2)
|
|
204
204
|
break;
|
|
205
|
-
const u =
|
|
205
|
+
const u = _s(n, 2);
|
|
206
206
|
i = new DataView(u.buffer, u.byteOffset, u.length).getUint16(0), r = 3;
|
|
207
207
|
} else if (r === 2) {
|
|
208
|
-
if (
|
|
208
|
+
if (ys(n) < 8)
|
|
209
209
|
break;
|
|
210
|
-
const u =
|
|
210
|
+
const u = _s(n, 8), c = new DataView(u.buffer, u.byteOffset, u.length), l = c.getUint32(0);
|
|
211
211
|
if (l > Math.pow(2, 21) - 1) {
|
|
212
212
|
a.enqueue(Ba);
|
|
213
213
|
break;
|
|
214
214
|
}
|
|
215
215
|
i = l * Math.pow(2, 32) + c.getUint32(4), r = 3;
|
|
216
216
|
} else {
|
|
217
|
-
if (
|
|
217
|
+
if (ys(n) < i)
|
|
218
218
|
break;
|
|
219
|
-
const u =
|
|
219
|
+
const u = _s(n, i);
|
|
220
220
|
a.enqueue(Ru(s ? u : Zo.decode(u), t)), r = 0;
|
|
221
221
|
}
|
|
222
222
|
if (i === 0 || i > e) {
|
|
@@ -849,9 +849,9 @@ function VE(e, t) {
|
|
|
849
849
|
i && (n[i] = s);
|
|
850
850
|
}), n;
|
|
851
851
|
}
|
|
852
|
-
const Ha = typeof addEventListener == "function" && typeof removeEventListener == "function",
|
|
852
|
+
const Ha = typeof addEventListener == "function" && typeof removeEventListener == "function", vs = [];
|
|
853
853
|
Ha && addEventListener("offline", () => {
|
|
854
|
-
|
|
854
|
+
vs.forEach((e) => e());
|
|
855
855
|
}, !1);
|
|
856
856
|
class $n extends Qe {
|
|
857
857
|
/**
|
|
@@ -888,7 +888,7 @@ class $n extends Qe {
|
|
|
888
888
|
this._onClose("transport close", {
|
|
889
889
|
description: "network connection lost"
|
|
890
890
|
});
|
|
891
|
-
},
|
|
891
|
+
}, vs.push(this._offlineEventListener))), this.opts.withCredentials && (this._cookieJar = void 0), this._open();
|
|
892
892
|
}
|
|
893
893
|
/**
|
|
894
894
|
* Creates transport of the given type.
|
|
@@ -1116,8 +1116,8 @@ class $n extends Qe {
|
|
|
1116
1116
|
_onClose(t, n) {
|
|
1117
1117
|
if (this.readyState === "opening" || this.readyState === "open" || this.readyState === "closing") {
|
|
1118
1118
|
if (this.clearTimeoutFn(this._pingTimeoutTimer), this.transport.removeAllListeners("close"), this.transport.close(), this.transport.removeAllListeners(), Ha && (this._beforeunloadEventListener && removeEventListener("beforeunload", this._beforeunloadEventListener, !1), this._offlineEventListener)) {
|
|
1119
|
-
const r =
|
|
1120
|
-
r !== -1 &&
|
|
1119
|
+
const r = vs.indexOf(this._offlineEventListener);
|
|
1120
|
+
r !== -1 && vs.splice(r, 1);
|
|
1121
1121
|
}
|
|
1122
1122
|
this.readyState = "closed", this.id = null, this.emitReserved("close", t, n), this.writeBuffer = [], this._prevBufferLen = 0;
|
|
1123
1123
|
}
|
|
@@ -1212,29 +1212,29 @@ const GE = typeof ArrayBuffer == "function", WE = (e) => typeof ArrayBuffer.isVi
|
|
|
1212
1212
|
function Du(e) {
|
|
1213
1213
|
return GE && (e instanceof ArrayBuffer || WE(e)) || XE && e instanceof Blob || KE && e instanceof File;
|
|
1214
1214
|
}
|
|
1215
|
-
function
|
|
1215
|
+
function Ms(e, t) {
|
|
1216
1216
|
if (!e || typeof e != "object")
|
|
1217
1217
|
return !1;
|
|
1218
1218
|
if (Array.isArray(e)) {
|
|
1219
1219
|
for (let n = 0, r = e.length; n < r; n++)
|
|
1220
|
-
if (
|
|
1220
|
+
if (Ms(e[n]))
|
|
1221
1221
|
return !0;
|
|
1222
1222
|
return !1;
|
|
1223
1223
|
}
|
|
1224
1224
|
if (Du(e))
|
|
1225
1225
|
return !0;
|
|
1226
1226
|
if (e.toJSON && typeof e.toJSON == "function" && arguments.length === 1)
|
|
1227
|
-
return
|
|
1227
|
+
return Ms(e.toJSON(), !0);
|
|
1228
1228
|
for (const n in e)
|
|
1229
|
-
if (Object.prototype.hasOwnProperty.call(e, n) &&
|
|
1229
|
+
if (Object.prototype.hasOwnProperty.call(e, n) && Ms(e[n]))
|
|
1230
1230
|
return !0;
|
|
1231
1231
|
return !1;
|
|
1232
1232
|
}
|
|
1233
1233
|
function QE(e) {
|
|
1234
1234
|
const t = [], n = e.data, r = e;
|
|
1235
|
-
return r.data =
|
|
1235
|
+
return r.data = Fs(n, t), r.attachments = t.length, { packet: r, buffers: t };
|
|
1236
1236
|
}
|
|
1237
|
-
function
|
|
1237
|
+
function Fs(e, t, n) {
|
|
1238
1238
|
if (!e)
|
|
1239
1239
|
return e;
|
|
1240
1240
|
if (Du(e)) {
|
|
@@ -1243,14 +1243,14 @@ function Ms(e, t, n) {
|
|
|
1243
1243
|
} else if (Array.isArray(e)) {
|
|
1244
1244
|
const r = new Array(e.length);
|
|
1245
1245
|
for (let i = 0; i < e.length; i++)
|
|
1246
|
-
r[i] =
|
|
1246
|
+
r[i] = Fs(e[i], t);
|
|
1247
1247
|
return r;
|
|
1248
1248
|
} else if (typeof e == "object" && !(e instanceof Date)) {
|
|
1249
1249
|
if (e.toJSON && typeof e.toJSON == "function" && !n)
|
|
1250
|
-
return
|
|
1250
|
+
return Fs(e.toJSON(), t, !0);
|
|
1251
1251
|
const r = {};
|
|
1252
1252
|
for (const i in e)
|
|
1253
|
-
Object.prototype.hasOwnProperty.call(e, i) && (r[i] =
|
|
1253
|
+
Object.prototype.hasOwnProperty.call(e, i) && (r[i] = Fs(e[i], t));
|
|
1254
1254
|
return r;
|
|
1255
1255
|
}
|
|
1256
1256
|
return e;
|
|
@@ -1307,7 +1307,7 @@ class e1 {
|
|
|
1307
1307
|
* @param {Object} obj - packet object
|
|
1308
1308
|
*/
|
|
1309
1309
|
encode(t) {
|
|
1310
|
-
return (t.type === Oe.EVENT || t.type === Oe.ACK) &&
|
|
1310
|
+
return (t.type === Oe.EVENT || t.type === Oe.ACK) && Ms(t) ? this.encodeAsBinary({
|
|
1311
1311
|
type: t.type === Oe.EVENT ? Oe.BINARY_EVENT : Oe.BINARY_ACK,
|
|
1312
1312
|
nsp: t.nsp,
|
|
1313
1313
|
data: t.data,
|
|
@@ -2357,17 +2357,17 @@ class za extends Qe {
|
|
|
2357
2357
|
}
|
|
2358
2358
|
}
|
|
2359
2359
|
const di = {};
|
|
2360
|
-
function
|
|
2360
|
+
function Bs(e, t) {
|
|
2361
2361
|
typeof e == "object" && (t = e, e = void 0), t = t || {};
|
|
2362
2362
|
const n = jE(e, t.path || "/socket.io"), r = n.source, i = n.id, s = n.path, o = di[i] && s in di[i].nsps, a = t.forceNew || t["force new connection"] || t.multiplex === !1 || o;
|
|
2363
2363
|
let u;
|
|
2364
2364
|
return a ? u = new za(r, t) : (di[i] || (di[i] = new za(r, t)), u = di[i]), n.query && !t.query && (t.query = n.queryKey), u.socket(n.path, t);
|
|
2365
2365
|
}
|
|
2366
|
-
Object.assign(
|
|
2366
|
+
Object.assign(Bs, {
|
|
2367
2367
|
Manager: za,
|
|
2368
2368
|
Socket: th,
|
|
2369
|
-
io:
|
|
2370
|
-
connect:
|
|
2369
|
+
io: Bs,
|
|
2370
|
+
connect: Bs
|
|
2371
2371
|
});
|
|
2372
2372
|
var s1 = function(e) {
|
|
2373
2373
|
return /* @__PURE__ */ (function(t) {
|
|
@@ -2473,15 +2473,15 @@ const d1 = typeof ArrayBuffer == "function", nh = Object.prototype.toString, f1
|
|
|
2473
2473
|
function Mu(e) {
|
|
2474
2474
|
return d1 && (e instanceof ArrayBuffer || ((t) => typeof ArrayBuffer.isView == "function" ? ArrayBuffer.isView(t) : t.buffer instanceof ArrayBuffer)(e)) || f1 && e instanceof Blob || h1 && e instanceof File;
|
|
2475
2475
|
}
|
|
2476
|
-
function
|
|
2476
|
+
function Us(e, t) {
|
|
2477
2477
|
if (!e || typeof e != "object") return !1;
|
|
2478
2478
|
if (Array.isArray(e)) {
|
|
2479
|
-
for (let n = 0, r = e.length; n < r; n++) if (
|
|
2479
|
+
for (let n = 0, r = e.length; n < r; n++) if (Us(e[n])) return !0;
|
|
2480
2480
|
return !1;
|
|
2481
2481
|
}
|
|
2482
2482
|
if (Mu(e)) return !0;
|
|
2483
|
-
if (e.toJSON && typeof e.toJSON == "function" && arguments.length === 1) return
|
|
2484
|
-
for (const n in e) if (Object.prototype.hasOwnProperty.call(e, n) &&
|
|
2483
|
+
if (e.toJSON && typeof e.toJSON == "function" && arguments.length === 1) return Us(e.toJSON(), !0);
|
|
2484
|
+
for (const n in e) if (Object.prototype.hasOwnProperty.call(e, n) && Us(e[n])) return !0;
|
|
2485
2485
|
return !1;
|
|
2486
2486
|
}
|
|
2487
2487
|
function p1(e) {
|
|
@@ -2529,7 +2529,7 @@ class E1 {
|
|
|
2529
2529
|
this.replacer = t;
|
|
2530
2530
|
}
|
|
2531
2531
|
encode(t) {
|
|
2532
|
-
return t.type !== Ye.EVENT && t.type !== Ye.ACK || !
|
|
2532
|
+
return t.type !== Ye.EVENT && t.type !== Ye.ACK || !Us(t) ? [this.encodeAsString(t)] : this.encodeAsBinary({ type: t.type === Ye.EVENT ? Ye.BINARY_EVENT : Ye.BINARY_ACK, nsp: t.nsp, data: t.data, id: t.id });
|
|
2533
2533
|
}
|
|
2534
2534
|
encodeAsString(t) {
|
|
2535
2535
|
let n = "" + t.type;
|
|
@@ -2677,7 +2677,7 @@ class A1 {
|
|
|
2677
2677
|
const u = `${r}${i}`, c = {};
|
|
2678
2678
|
t ? c["x-cimulate-api-key"] = t : n && (c.Authorization = `Bearer ${n}`), s && (c["x-cimulate-customer-id"] = s), o && (c["Tenant-ID"] = o);
|
|
2679
2679
|
const l = [S1, a, { parser: _1, withCredentials: !0, transportOptions: { polling: { extraHeaders: c } } }];
|
|
2680
|
-
this.socket =
|
|
2680
|
+
this.socket = Bs(u, c1.all(l));
|
|
2681
2681
|
}
|
|
2682
2682
|
connect() {
|
|
2683
2683
|
this.reconnectTimeout && (clearTimeout(this.reconnectTimeout), this.reconnectTimeout = void 0, this.reconnectAttempts = 0), this.offInternalHandlers(), this.on("connect_ack", this.handleConnectAck), this.socket.on("disconnect", this.handleDisconnect), this.on("connect_error", this.handleConnectError), this.socket.auth && this.sessionIdKey in this.socket.auth && (this.socket.auth = {}), this.socket.connect();
|
|
@@ -2782,7 +2782,7 @@ class A1 {
|
|
|
2782
2782
|
if (r) return void this.socket.emit(t, n, r);
|
|
2783
2783
|
let i = "";
|
|
2784
2784
|
const s = (function(o) {
|
|
2785
|
-
return
|
|
2785
|
+
return Ts(this, null, function* () {
|
|
2786
2786
|
const a = [];
|
|
2787
2787
|
let u = !1, c = null;
|
|
2788
2788
|
const l = yield new sn(o({ emit: (d) => {
|
|
@@ -2831,7 +2831,7 @@ function zr(e) {
|
|
|
2831
2831
|
}
|
|
2832
2832
|
function In(e) {
|
|
2833
2833
|
var t;
|
|
2834
|
-
return e ? uh(e) || Array.isArray(e) || !!e[fl] || !!((t = e.constructor) != null && t[fl]) ||
|
|
2834
|
+
return e ? uh(e) || Array.isArray(e) || !!e[fl] || !!((t = e.constructor) != null && t[fl]) || Zi(e) || To(e) : !1;
|
|
2835
2835
|
}
|
|
2836
2836
|
var C1 = Object.prototype.constructor.toString();
|
|
2837
2837
|
function uh(e) {
|
|
@@ -2850,7 +2850,7 @@ function Ui(e, t) {
|
|
|
2850
2850
|
}
|
|
2851
2851
|
function bo(e) {
|
|
2852
2852
|
const t = e[Ie];
|
|
2853
|
-
return t ? t.type_ : Array.isArray(e) ? 1 :
|
|
2853
|
+
return t ? t.type_ : Array.isArray(e) ? 1 : Zi(e) ? 2 : To(e) ? 3 : 0;
|
|
2854
2854
|
}
|
|
2855
2855
|
function Ya(e, t) {
|
|
2856
2856
|
return bo(e) === 2 ? e.has(t) : Object.prototype.hasOwnProperty.call(e, t);
|
|
@@ -2862,7 +2862,7 @@ function ch(e, t, n) {
|
|
|
2862
2862
|
function N1(e, t) {
|
|
2863
2863
|
return e === t ? e !== 0 || 1 / e === 1 / t : e !== e && t !== t;
|
|
2864
2864
|
}
|
|
2865
|
-
function
|
|
2865
|
+
function Zi(e) {
|
|
2866
2866
|
return e instanceof Map;
|
|
2867
2867
|
}
|
|
2868
2868
|
function To(e) {
|
|
@@ -2872,7 +2872,7 @@ function it(e) {
|
|
|
2872
2872
|
return e.copy_ || e.base_;
|
|
2873
2873
|
}
|
|
2874
2874
|
function ja(e, t) {
|
|
2875
|
-
if (
|
|
2875
|
+
if (Zi(e))
|
|
2876
2876
|
return new Map(e);
|
|
2877
2877
|
if (To(e))
|
|
2878
2878
|
return new Set(e);
|
|
@@ -2904,13 +2904,13 @@ function ja(e, t) {
|
|
|
2904
2904
|
}
|
|
2905
2905
|
function Bu(e, t = !1) {
|
|
2906
2906
|
return yo(e) || zr(e) || !In(e) || (bo(e) > 1 && Object.defineProperties(e, {
|
|
2907
|
-
set: { value:
|
|
2908
|
-
add: { value:
|
|
2909
|
-
clear: { value:
|
|
2910
|
-
delete: { value:
|
|
2907
|
+
set: { value: Ss },
|
|
2908
|
+
add: { value: Ss },
|
|
2909
|
+
clear: { value: Ss },
|
|
2910
|
+
delete: { value: Ss }
|
|
2911
2911
|
}), Object.freeze(e), t && Object.values(e).forEach((n) => Bu(n, !0))), e;
|
|
2912
2912
|
}
|
|
2913
|
-
function
|
|
2913
|
+
function Ss() {
|
|
2914
2914
|
Gt(2);
|
|
2915
2915
|
}
|
|
2916
2916
|
function yo(e) {
|
|
@@ -2925,7 +2925,7 @@ function O1(e, t) {
|
|
|
2925
2925
|
Ga[e] || (Ga[e] = t);
|
|
2926
2926
|
}
|
|
2927
2927
|
var Hi;
|
|
2928
|
-
function
|
|
2928
|
+
function Ks() {
|
|
2929
2929
|
return Hi;
|
|
2930
2930
|
}
|
|
2931
2931
|
function P1(e, t) {
|
|
@@ -2958,14 +2958,14 @@ function x1(e) {
|
|
|
2958
2958
|
function ml(e, t) {
|
|
2959
2959
|
t.unfinalizedDrafts_ = t.drafts_.length;
|
|
2960
2960
|
const n = t.drafts_[0];
|
|
2961
|
-
return e !== void 0 && e !== n ? (n[Ie].modified_ && (Wa(t), Gt(4)), In(e) && (e =
|
|
2961
|
+
return e !== void 0 && e !== n ? (n[Ie].modified_ && (Wa(t), Gt(4)), In(e) && (e = Qs(t, e), t.parent_ || Js(t, e)), t.patches_ && cr("Patches").generateReplacementPatches_(
|
|
2962
2962
|
n[Ie].base_,
|
|
2963
2963
|
e,
|
|
2964
2964
|
t.patches_,
|
|
2965
2965
|
t.inversePatches_
|
|
2966
|
-
)) : e =
|
|
2966
|
+
)) : e = Qs(t, n, []), Wa(t), t.patches_ && t.patchListener_(t.patches_, t.inversePatches_), e !== ah ? e : void 0;
|
|
2967
2967
|
}
|
|
2968
|
-
function
|
|
2968
|
+
function Qs(e, t, n) {
|
|
2969
2969
|
if (yo(t))
|
|
2970
2970
|
return t;
|
|
2971
2971
|
const r = t[Ie];
|
|
@@ -2977,7 +2977,7 @@ function Ks(e, t, n) {
|
|
|
2977
2977
|
if (r.scope_ !== e)
|
|
2978
2978
|
return t;
|
|
2979
2979
|
if (!r.modified_)
|
|
2980
|
-
return
|
|
2980
|
+
return Js(e, r.base_, !0), r.base_;
|
|
2981
2981
|
if (!r.finalized_) {
|
|
2982
2982
|
r.finalized_ = !0, r.scope_.unfinalizedDrafts_--;
|
|
2983
2983
|
const i = r.copy_;
|
|
@@ -2985,7 +2985,7 @@ function Ks(e, t, n) {
|
|
|
2985
2985
|
r.type_ === 3 && (s = new Set(i), i.clear(), o = !0), Ui(
|
|
2986
2986
|
s,
|
|
2987
2987
|
(a, u) => gl(e, r, i, a, u, n, o)
|
|
2988
|
-
),
|
|
2988
|
+
), Js(e, i, !1), n && e.patches_ && cr("Patches").generatePatches_(
|
|
2989
2989
|
r,
|
|
2990
2990
|
n,
|
|
2991
2991
|
e.patches_,
|
|
@@ -2997,7 +2997,7 @@ function Ks(e, t, n) {
|
|
|
2997
2997
|
function gl(e, t, n, r, i, s, o) {
|
|
2998
2998
|
if (zr(i)) {
|
|
2999
2999
|
const a = s && t && t.type_ !== 3 && // Set objects are atomic since they have no keys.
|
|
3000
|
-
!Ya(t.assigned_, r) ? s.concat(r) : void 0, u =
|
|
3000
|
+
!Ya(t.assigned_, r) ? s.concat(r) : void 0, u = Qs(e, i, a);
|
|
3001
3001
|
if (ch(n, r, u), zr(u))
|
|
3002
3002
|
e.canAutoFreeze_ = !1;
|
|
3003
3003
|
else
|
|
@@ -3006,17 +3006,17 @@ function gl(e, t, n, r, i, s, o) {
|
|
|
3006
3006
|
if (In(i) && !yo(i)) {
|
|
3007
3007
|
if (!e.immer_.autoFreeze_ && e.unfinalizedDrafts_ < 1)
|
|
3008
3008
|
return;
|
|
3009
|
-
|
|
3009
|
+
Qs(e, i), (!t || !t.scope_.parent_) && typeof r != "symbol" && (Zi(n) ? n.has(r) : Object.prototype.propertyIsEnumerable.call(n, r)) && Js(e, i);
|
|
3010
3010
|
}
|
|
3011
3011
|
}
|
|
3012
|
-
function
|
|
3012
|
+
function Js(e, t, n = !1) {
|
|
3013
3013
|
!e.parent_ && e.immer_.autoFreeze_ && e.canAutoFreeze_ && Bu(t, n);
|
|
3014
3014
|
}
|
|
3015
3015
|
function I1(e, t) {
|
|
3016
3016
|
const n = Array.isArray(e), r = {
|
|
3017
3017
|
type_: n ? 1 : 0,
|
|
3018
3018
|
// Track which produce call this is associated with.
|
|
3019
|
-
scope_: t ? t.scope_ :
|
|
3019
|
+
scope_: t ? t.scope_ : Ks(),
|
|
3020
3020
|
// True for both shallow and deep changes.
|
|
3021
3021
|
modified_: !1,
|
|
3022
3022
|
// Used during finalization.
|
|
@@ -3225,8 +3225,8 @@ var k1 = class {
|
|
|
3225
3225
|
}
|
|
3226
3226
|
};
|
|
3227
3227
|
function zi(e, t) {
|
|
3228
|
-
const n =
|
|
3229
|
-
return (t ? t.scope_ :
|
|
3228
|
+
const n = Zi(e) ? cr("MapSet").proxyMap_(e, t) : To(e) ? cr("MapSet").proxySet_(e, t) : I1(e, t);
|
|
3229
|
+
return (t ? t.scope_ : Ks()).drafts_.push(n), n;
|
|
3230
3230
|
}
|
|
3231
3231
|
function R1(e) {
|
|
3232
3232
|
return zr(e) || Gt(10, e), dh(e);
|
|
@@ -3252,7 +3252,7 @@ function L1() {
|
|
|
3252
3252
|
super(), this[Ie] = {
|
|
3253
3253
|
type_: 2,
|
|
3254
3254
|
parent_: c,
|
|
3255
|
-
scope_: c ? c.scope_ :
|
|
3255
|
+
scope_: c ? c.scope_ : Ks(),
|
|
3256
3256
|
modified_: !1,
|
|
3257
3257
|
finalized_: !1,
|
|
3258
3258
|
copy_: void 0,
|
|
@@ -3347,7 +3347,7 @@ function L1() {
|
|
|
3347
3347
|
super(), this[Ie] = {
|
|
3348
3348
|
type_: 3,
|
|
3349
3349
|
parent_: c,
|
|
3350
|
-
scope_: c ? c.scope_ :
|
|
3350
|
+
scope_: c ? c.scope_ : Ks(),
|
|
3351
3351
|
modified_: !1,
|
|
3352
3352
|
finalized_: !1,
|
|
3353
3353
|
copy_: void 0,
|
|
@@ -3570,7 +3570,7 @@ function Th(e, t) {
|
|
|
3570
3570
|
return e.apply(t, arguments);
|
|
3571
3571
|
};
|
|
3572
3572
|
}
|
|
3573
|
-
const { toString: z1 } = Object.prototype, { getPrototypeOf: zn } = Object, { iterator:
|
|
3573
|
+
const { toString: z1 } = Object.prototype, { getPrototypeOf: zn } = Object, { iterator: es, toStringTag: yh } = Symbol, Vi = (({ hasOwnProperty: e }) => (t, n) => e.call(t, n))(Object.prototype), _h = (e) => typeof e == "string" && (e === "__proto__" || e === "constructor" || e === "prototype"), Sh = (e, t, n) => e === Object.prototype || !n && t === null, V1 = (e) => {
|
|
3574
3574
|
if (!Object.isExtensible(e))
|
|
3575
3575
|
return !1;
|
|
3576
3576
|
const t = Object.getOwnPropertyNames(e);
|
|
@@ -3627,14 +3627,14 @@ function j1(e) {
|
|
|
3627
3627
|
let t;
|
|
3628
3628
|
return typeof ArrayBuffer != "undefined" && ArrayBuffer.isView ? t = ArrayBuffer.isView(e) : t = e && e.buffer && Ah(e.buffer), t;
|
|
3629
3629
|
}
|
|
3630
|
-
const G1 = _o("string"), kt = _o("function"), Ch = _o("number"), Kr = (e) => e !== null && typeof e == "object", W1 = (e) => e === !0 || e === !1,
|
|
3630
|
+
const G1 = _o("string"), kt = _o("function"), Ch = _o("number"), Kr = (e) => e !== null && typeof e == "object", W1 = (e) => e === !0 || e === !1, Hs = (e) => {
|
|
3631
3631
|
if (!Kr(e))
|
|
3632
3632
|
return !1;
|
|
3633
3633
|
const t = zn(e);
|
|
3634
3634
|
return (t === null || t === Object.prototype || zn(t) === null) && // Treat safe own/inherited Symbol.toStringTag or Symbol.iterator members as
|
|
3635
3635
|
// evidence the value is tagged/iterable, while ignoring members reachable
|
|
3636
3636
|
// only through shared or terminal prototype boundaries.
|
|
3637
|
-
!qi(e, yh) && !qi(e,
|
|
3637
|
+
!qi(e, yh) && !qi(e, es);
|
|
3638
3638
|
}, X1 = (e) => {
|
|
3639
3639
|
if (!Kr(e) || Xr(e))
|
|
3640
3640
|
return !1;
|
|
@@ -3661,7 +3661,7 @@ const El = ib(), bl = typeof El.FormData != "undefined" ? El.FormData : void 0,
|
|
|
3661
3661
|
"Response",
|
|
3662
3662
|
"Headers"
|
|
3663
3663
|
].map(Wt), db = (e) => e.trim ? e.trim() : e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g, "");
|
|
3664
|
-
function
|
|
3664
|
+
function ts(e, t, { allOwnKeys: n = !1 } = {}) {
|
|
3665
3665
|
if (e === null || typeof e == "undefined")
|
|
3666
3666
|
return;
|
|
3667
3667
|
let r, i;
|
|
@@ -3694,11 +3694,11 @@ function Ka(...e) {
|
|
|
3694
3694
|
if (o === "__proto__" || o === "constructor" || o === "prototype")
|
|
3695
3695
|
return;
|
|
3696
3696
|
const a = t && typeof o == "string" && Nh(r, o) || o, u = Vi(r, a) ? r[a] : void 0;
|
|
3697
|
-
|
|
3697
|
+
Hs(u) && Hs(s) ? r[a] = Ka(u, s) : Hs(s) ? r[a] = Ka({}, s) : lr(s) ? r[a] = s.slice() : (!n || !dr(s)) && (r[a] = s);
|
|
3698
3698
|
};
|
|
3699
3699
|
for (let s = 0, o = e.length; s < o; s++) {
|
|
3700
3700
|
const a = e[s];
|
|
3701
|
-
if (!a || Xr(a) || (
|
|
3701
|
+
if (!a || Xr(a) || (ts(a, i), typeof a != "object" || lr(a)))
|
|
3702
3702
|
continue;
|
|
3703
3703
|
const u = Object.getOwnPropertySymbols(a);
|
|
3704
3704
|
for (let c = 0; c < u.length; c++) {
|
|
@@ -3708,7 +3708,7 @@ function Ka(...e) {
|
|
|
3708
3708
|
}
|
|
3709
3709
|
return r;
|
|
3710
3710
|
}
|
|
3711
|
-
const fb = (e, t, n, { allOwnKeys: r } = {}) => (
|
|
3711
|
+
const fb = (e, t, n, { allOwnKeys: r } = {}) => (ts(
|
|
3712
3712
|
t,
|
|
3713
3713
|
(i, s) => {
|
|
3714
3714
|
n && kt(i) ? Object.defineProperty(e, s, {
|
|
@@ -3763,7 +3763,7 @@ const fb = (e, t, n, { allOwnKeys: r } = {}) => (es(
|
|
|
3763
3763
|
n[t] = e[t];
|
|
3764
3764
|
return n;
|
|
3765
3765
|
}, bb = /* @__PURE__ */ ((e) => (t) => e && t instanceof e)(typeof Uint8Array != "undefined" && zn(Uint8Array)), Tb = (e, t) => {
|
|
3766
|
-
const r = (e && e[
|
|
3766
|
+
const r = (e && e[es]).call(e);
|
|
3767
3767
|
let i;
|
|
3768
3768
|
for (; (i = r.next()) && !i.done; ) {
|
|
3769
3769
|
const s = i.value;
|
|
@@ -3779,7 +3779,7 @@ const fb = (e, t, n, { allOwnKeys: r } = {}) => (es(
|
|
|
3779
3779
|
return r.toUpperCase() + i;
|
|
3780
3780
|
}), { propertyIsEnumerable: Ab } = Object.prototype, Cb = Wt("RegExp"), Ph = (e, t) => {
|
|
3781
3781
|
const n = Object.getOwnPropertyDescriptors(e), r = {};
|
|
3782
|
-
|
|
3782
|
+
ts(n, (i, s) => {
|
|
3783
3783
|
let o;
|
|
3784
3784
|
(o = t(i, s, e)) !== !1 && (r[s] = o || i);
|
|
3785
3785
|
}), Object.defineProperties(e, r);
|
|
@@ -3808,7 +3808,7 @@ const fb = (e, t, n, { allOwnKeys: r } = {}) => (es(
|
|
|
3808
3808
|
}, Pb = () => {
|
|
3809
3809
|
}, xb = (e, t) => e != null && Number.isFinite(e = +e) ? e : t;
|
|
3810
3810
|
function Ib(e) {
|
|
3811
|
-
return !!(e && kt(e.append) && e[yh] === "FormData" && e[
|
|
3811
|
+
return !!(e && kt(e.append) && e[yh] === "FormData" && e[es]);
|
|
3812
3812
|
}
|
|
3813
3813
|
const wb = (e) => {
|
|
3814
3814
|
const t = /* @__PURE__ */ new WeakSet(), n = (r) => {
|
|
@@ -3827,7 +3827,7 @@ const wb = (e) => {
|
|
|
3827
3827
|
!dr(o) && i.push(o);
|
|
3828
3828
|
}
|
|
3829
3829
|
} else
|
|
3830
|
-
i = lr(r) ? [] : {},
|
|
3830
|
+
i = lr(r) ? [] : {}, ts(r, (s, o) => {
|
|
3831
3831
|
const a = n(s);
|
|
3832
3832
|
!dr(a) && (i[o] = a);
|
|
3833
3833
|
});
|
|
@@ -3845,7 +3845,7 @@ const wb = (e) => {
|
|
|
3845
3845
|
!1
|
|
3846
3846
|
), (i) => {
|
|
3847
3847
|
r.push(i), tr.postMessage(n, "*");
|
|
3848
|
-
}))(`axios@${Math.random()}`, []) : (n) => setTimeout(n))(typeof setImmediate == "function", kt(tr.postMessage)), Lb = typeof queueMicrotask != "undefined" ? queueMicrotask.bind(tr) : typeof process != "undefined" && process.nextTick || xh, Ih = (e) => e != null && kt(e[
|
|
3848
|
+
}))(`axios@${Math.random()}`, []) : (n) => setTimeout(n))(typeof setImmediate == "function", kt(tr.postMessage)), Lb = typeof queueMicrotask != "undefined" ? queueMicrotask.bind(tr) : typeof process != "undefined" && process.nextTick || xh, Ih = (e) => e != null && kt(e[es]), Db = (e) => e != null && qi(e, es) && Ih(e), w = {
|
|
3849
3849
|
isArray: lr,
|
|
3850
3850
|
isArrayBuffer: Ah,
|
|
3851
3851
|
isBuffer: Xr,
|
|
@@ -3855,7 +3855,7 @@ const wb = (e) => {
|
|
|
3855
3855
|
isNumber: Ch,
|
|
3856
3856
|
isBoolean: W1,
|
|
3857
3857
|
isObject: Kr,
|
|
3858
|
-
isPlainObject:
|
|
3858
|
+
isPlainObject: Hs,
|
|
3859
3859
|
isEmptyObject: X1,
|
|
3860
3860
|
isReadableStream: ab,
|
|
3861
3861
|
isRequest: ub,
|
|
@@ -3873,7 +3873,7 @@ const wb = (e) => {
|
|
|
3873
3873
|
isURLSearchParams: ob,
|
|
3874
3874
|
isTypedArray: bb,
|
|
3875
3875
|
isFileList: tb,
|
|
3876
|
-
forEach:
|
|
3876
|
+
forEach: ts,
|
|
3877
3877
|
merge: Ka,
|
|
3878
3878
|
extend: fb,
|
|
3879
3879
|
trim: db,
|
|
@@ -3969,8 +3969,8 @@ const Tl = /* @__PURE__ */ Symbol("internals");
|
|
|
3969
3969
|
function fi(e) {
|
|
3970
3970
|
return e && String(e).trim().toLowerCase();
|
|
3971
3971
|
}
|
|
3972
|
-
function
|
|
3973
|
-
return e === !1 || e == null ? e : w.isArray(e) ? e.map(
|
|
3972
|
+
function $s(e) {
|
|
3973
|
+
return e === !1 || e == null ? e : w.isArray(e) ? e.map($s) : Hb(String(e));
|
|
3974
3974
|
}
|
|
3975
3975
|
function zb(e) {
|
|
3976
3976
|
const t = /* @__PURE__ */ Object.create(null), n = /([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g;
|
|
@@ -4070,7 +4070,7 @@ let mt = class {
|
|
|
4070
4070
|
if (!l)
|
|
4071
4071
|
return;
|
|
4072
4072
|
const d = w.findKey(i, l);
|
|
4073
|
-
(!d || i[d] === void 0 || c === !0 || c === void 0 && i[d] !== !1) && (i[d || u] =
|
|
4073
|
+
(!d || i[d] === void 0 || c === !0 || c === void 0 && i[d] !== !1) && (i[d || u] = $s(a));
|
|
4074
4074
|
}
|
|
4075
4075
|
const o = (a, u) => w.forEach(a, (c, l) => s(c, l, u));
|
|
4076
4076
|
if (w.isPlainObject(t) || t instanceof this.constructor)
|
|
@@ -4138,11 +4138,11 @@ let mt = class {
|
|
|
4138
4138
|
return w.forEach(this, (i, s) => {
|
|
4139
4139
|
const o = w.findKey(r, s);
|
|
4140
4140
|
if (o) {
|
|
4141
|
-
n[o] =
|
|
4141
|
+
n[o] = $s(i), delete n[s];
|
|
4142
4142
|
return;
|
|
4143
4143
|
}
|
|
4144
4144
|
const a = t ? Gb(s) : String(s).trim();
|
|
4145
|
-
a !== s && delete n[s], n[a] =
|
|
4145
|
+
a !== s && delete n[s], n[a] = $s(i), r[a] = !0;
|
|
4146
4146
|
}), this;
|
|
4147
4147
|
}
|
|
4148
4148
|
concat(...t) {
|
|
@@ -4207,7 +4207,7 @@ w.reduceDescriptors(mt.prototype, ({ value: e }, t) => {
|
|
|
4207
4207
|
};
|
|
4208
4208
|
});
|
|
4209
4209
|
w.freezeMethods(mt);
|
|
4210
|
-
const
|
|
4210
|
+
const Zs = "[REDACTED ****]";
|
|
4211
4211
|
function Xb(e) {
|
|
4212
4212
|
if (w.hasOwnProp(e, "toJSON"))
|
|
4213
4213
|
return !0;
|
|
@@ -4235,7 +4235,7 @@ function Kb(e, t) {
|
|
|
4235
4235
|
return r.pop(), s;
|
|
4236
4236
|
o = /* @__PURE__ */ Object.create(null);
|
|
4237
4237
|
for (const [a, u] of Object.entries(s)) {
|
|
4238
|
-
const c = n.has(a.toLowerCase()) ?
|
|
4238
|
+
const c = n.has(a.toLowerCase()) ? Zs : i(u);
|
|
4239
4239
|
w.isUndefined(c) || (o[a] = c);
|
|
4240
4240
|
}
|
|
4241
4241
|
}
|
|
@@ -4662,7 +4662,7 @@ function hT(e, t, n) {
|
|
|
4662
4662
|
}
|
|
4663
4663
|
return (n || JSON.stringify)(e);
|
|
4664
4664
|
}
|
|
4665
|
-
const
|
|
4665
|
+
const ns = {
|
|
4666
4666
|
transitional: Xu,
|
|
4667
4667
|
adapter: ["xhr", "http", "fetch"],
|
|
4668
4668
|
transformRequest: [
|
|
@@ -4695,7 +4695,7 @@ const ts = {
|
|
|
4695
4695
|
],
|
|
4696
4696
|
transformResponse: [
|
|
4697
4697
|
function(t) {
|
|
4698
|
-
const n = Nr(this, "transitional") ||
|
|
4698
|
+
const n = Nr(this, "transitional") || ns.transitional, r = n && n.forcedJSONParsing, i = Nr(this, "responseType"), s = i === "json";
|
|
4699
4699
|
if (w.isResponse(t) || w.isReadableStream(t))
|
|
4700
4700
|
return t;
|
|
4701
4701
|
if (t && w.isString(t) && (r && !i || s)) {
|
|
@@ -4734,10 +4734,10 @@ const ts = {
|
|
|
4734
4734
|
}
|
|
4735
4735
|
};
|
|
4736
4736
|
w.forEach(Uh, (e) => {
|
|
4737
|
-
|
|
4737
|
+
ns.headers[e] = {};
|
|
4738
4738
|
});
|
|
4739
4739
|
function oa(e, t) {
|
|
4740
|
-
const n = this ||
|
|
4740
|
+
const n = this || ns, r = t || n, i = mt.from(r.headers);
|
|
4741
4741
|
let s = r.data;
|
|
4742
4742
|
return w.forEach(e, function(a) {
|
|
4743
4743
|
s = a.call(n, s, i.normalize(), t ? t.status : void 0);
|
|
@@ -4746,7 +4746,7 @@ function oa(e, t) {
|
|
|
4746
4746
|
function Hh(e) {
|
|
4747
4747
|
return !!(e && e.__CANCEL__);
|
|
4748
4748
|
}
|
|
4749
|
-
let
|
|
4749
|
+
let rs = class extends Z {
|
|
4750
4750
|
/**
|
|
4751
4751
|
* A `CanceledError` is an object that is thrown when an operation is canceled.
|
|
4752
4752
|
*
|
|
@@ -4811,7 +4811,7 @@ function gT(e, t) {
|
|
|
4811
4811
|
}, r - p)));
|
|
4812
4812
|
}, () => i && o(i), (...l) => o(l)];
|
|
4813
4813
|
}
|
|
4814
|
-
const
|
|
4814
|
+
const eo = (e, t, n = 3) => {
|
|
4815
4815
|
let r = 0;
|
|
4816
4816
|
const i = mT(50, 250);
|
|
4817
4817
|
return gT((s) => {
|
|
@@ -4896,12 +4896,12 @@ function yT(e, t) {
|
|
|
4896
4896
|
}
|
|
4897
4897
|
const _T = /^https?:(?!\/\/)/i;
|
|
4898
4898
|
function ST(e) {
|
|
4899
|
-
return e && e.replace(/(^|&)([^=&]*=)?[^&]+/g, (t, n, r = "") => `${n}${r}${
|
|
4899
|
+
return e && e.replace(/(^|&)([^=&]*=)?[^&]+/g, (t, n, r = "") => `${n}${r}${Zs}`);
|
|
4900
4900
|
}
|
|
4901
4901
|
function AT(e) {
|
|
4902
|
-
const t = e.replace(/^(https?:\/{0,2})[^/?#]*@/i, `$1${
|
|
4902
|
+
const t = e.replace(/^(https?:\/{0,2})[^/?#]*@/i, `$1${Zs}@`), n = t.indexOf("#"), i = (n === -1 ? t : t.slice(0, n)).replace(
|
|
4903
4903
|
/([?&][^=&#]*=)[^&#]*/g,
|
|
4904
|
-
`$1${
|
|
4904
|
+
`$1${Zs}`
|
|
4905
4905
|
);
|
|
4906
4906
|
return n === -1 ? i : `${i}#${ST(t.slice(n + 1))}`;
|
|
4907
4907
|
}
|
|
@@ -5125,11 +5125,11 @@ const xT = typeof XMLHttpRequest != "undefined", IT = xT && function(e) {
|
|
|
5125
5125
|
), S(), g = null;
|
|
5126
5126
|
}, s === void 0 && o.setContentType(null), "setRequestHeader" in g && w.forEach(wh(o), function(L, N) {
|
|
5127
5127
|
g.setRequestHeader(N, L);
|
|
5128
|
-
}), w.isUndefined(i.withCredentials) || (g.withCredentials = !!i.withCredentials), a && a !== "json" && (g.responseType = i.responseType), c && ([p, m, E] =
|
|
5128
|
+
}), w.isUndefined(i.withCredentials) || (g.withCredentials = !!i.withCredentials), a && a !== "json" && (g.responseType = i.responseType), c && ([p, m, E] = eo(
|
|
5129
5129
|
c,
|
|
5130
5130
|
!0
|
|
5131
|
-
), g.addEventListener("progress", p)), u && g.upload && ([d, h] =
|
|
5132
|
-
g && (r(!k || k.type ? new
|
|
5131
|
+
), g.addEventListener("progress", p)), u && g.upload && ([d, h] = eo(u), g.upload.addEventListener("progress", d), g.upload.addEventListener("loadend", h)), (i.cancelToken || i.signal) && (l = (k) => {
|
|
5132
|
+
g && (r(!k || k.type ? new rs(null, e, g) : k), g.abort(), S(), g = null);
|
|
5133
5133
|
}, i.cancelToken && i.cancelToken.subscribe(l), i.signal && (i.signal.aborted ? l() : i.signal.addEventListener("abort", l)));
|
|
5134
5134
|
const T = aa(i.url);
|
|
5135
5135
|
if (T && !ot.protocols.includes(T)) {
|
|
@@ -5154,7 +5154,7 @@ const xT = typeof XMLHttpRequest != "undefined", IT = xT && function(e) {
|
|
|
5154
5154
|
r = !0, o();
|
|
5155
5155
|
const c = u instanceof Error ? u : this.reason;
|
|
5156
5156
|
n.abort(
|
|
5157
|
-
c instanceof Z ? c : new
|
|
5157
|
+
c instanceof Z ? c : new rs(c instanceof Error ? c.message : c)
|
|
5158
5158
|
);
|
|
5159
5159
|
}
|
|
5160
5160
|
};
|
|
@@ -5187,7 +5187,7 @@ const xT = typeof XMLHttpRequest != "undefined", IT = xT && function(e) {
|
|
|
5187
5187
|
for (; r < n; )
|
|
5188
5188
|
i = r + t, yield e.slice(r, i), r = i;
|
|
5189
5189
|
}, RT = function(e, t) {
|
|
5190
|
-
return
|
|
5190
|
+
return Ts(this, null, function* () {
|
|
5191
5191
|
try {
|
|
5192
5192
|
for (var n = tl(LT(e)), r, i, s; r = !(i = yield new sn(n.next())).done; r = !1) {
|
|
5193
5193
|
const o = i.value;
|
|
@@ -5205,7 +5205,7 @@ const xT = typeof XMLHttpRequest != "undefined", IT = xT && function(e) {
|
|
|
5205
5205
|
}
|
|
5206
5206
|
});
|
|
5207
5207
|
}, LT = function(e) {
|
|
5208
|
-
return
|
|
5208
|
+
return Ts(this, null, function* () {
|
|
5209
5209
|
if (e[Symbol.asyncIterator]) {
|
|
5210
5210
|
yield* Qo(e);
|
|
5211
5211
|
return;
|
|
@@ -5328,7 +5328,7 @@ const Qu = "1.20.0", Rl = 64 * 1024, $T = {
|
|
|
5328
5328
|
keepalive: !1,
|
|
5329
5329
|
priority: "auto",
|
|
5330
5330
|
window: null
|
|
5331
|
-
}, { isFunction:
|
|
5331
|
+
}, { isFunction: As } = w, zT = (e) => encodeURIComponent(e).replace(
|
|
5332
5332
|
/%([0-9A-F]{2})/gi,
|
|
5333
5333
|
(t, n) => String.fromCharCode(parseInt(n, 16))
|
|
5334
5334
|
), Ll = (e) => {
|
|
@@ -5361,10 +5361,10 @@ const Qu = "1.20.0", Rl = 64 * 1024, $T = {
|
|
|
5361
5361
|
},
|
|
5362
5362
|
e
|
|
5363
5363
|
);
|
|
5364
|
-
const { fetch: i, Request: s, Response: o } = e, a = i ?
|
|
5364
|
+
const { fetch: i, Request: s, Response: o } = e, a = i ? As(i) : typeof fetch == "function", u = As(s), c = As(o);
|
|
5365
5365
|
if (!a)
|
|
5366
5366
|
return !1;
|
|
5367
|
-
const l = a &&
|
|
5367
|
+
const l = a && As(n), d = a && (typeof r == "function" ? /* @__PURE__ */ ((g) => (b) => g.encode(b))(new r()) : (g) => _e(null, null, function* () {
|
|
5368
5368
|
return new Uint8Array(yield new s(g).arrayBuffer());
|
|
5369
5369
|
})), p = u && l && Dl(() => {
|
|
5370
5370
|
let g = !1;
|
|
@@ -5500,7 +5500,7 @@ const Qu = "1.20.0", Rl = 64 * 1024, $T = {
|
|
|
5500
5500
|
if (w.isFormData(k) && (je = pe.headers.get("content-type")) && $.setContentType(je), pe.body) {
|
|
5501
5501
|
const [Ot, ee] = W && Nl(
|
|
5502
5502
|
be,
|
|
5503
|
-
|
|
5503
|
+
eo(Ol(W))
|
|
5504
5504
|
) || [];
|
|
5505
5505
|
k = yt(pe.body, Ot, ee);
|
|
5506
5506
|
}
|
|
@@ -5554,7 +5554,7 @@ const Qu = "1.20.0", Rl = 64 * 1024, $T = {
|
|
|
5554
5554
|
});
|
|
5555
5555
|
const je = w.toFiniteNumber(rn.getContentLength()), [Ot, ee] = H && Nl(
|
|
5556
5556
|
je,
|
|
5557
|
-
|
|
5557
|
+
eo(Ol(H), !0)
|
|
5558
5558
|
) || [];
|
|
5559
5559
|
let se = 0;
|
|
5560
5560
|
const ue = (ye) => {
|
|
@@ -5701,11 +5701,11 @@ const Gh = {
|
|
|
5701
5701
|
};
|
|
5702
5702
|
function ua(e) {
|
|
5703
5703
|
if (e.cancelToken && e.cancelToken.throwIfRequested(), e.signal && e.signal.aborted)
|
|
5704
|
-
throw new
|
|
5704
|
+
throw new rs(null, e);
|
|
5705
5705
|
}
|
|
5706
5706
|
function ca(e) {
|
|
5707
5707
|
const t = w.toSafeFlatObject(e);
|
|
5708
|
-
return ua(t), t.headers = mt.from(w.getSafeProp(t, "headers")), t.data = oa.call(t, t.transformRequest), ["post", "put", "patch"].indexOf(t.method) !== -1 && t.headers.setContentType("application/x-www-form-urlencoded", !1), Gh.getAdapter(t.adapter ||
|
|
5708
|
+
return ua(t), t.headers = mt.from(w.getSafeProp(t, "headers")), t.data = oa.call(t, t.transformRequest), ["post", "put", "patch"].indexOf(t.method) !== -1 && t.headers.setContentType("application/x-www-form-urlencoded", !1), Gh.getAdapter(t.adapter || ns.adapter, t)(t).then(
|
|
5709
5709
|
function(i) {
|
|
5710
5710
|
ua(t), t.response = i;
|
|
5711
5711
|
try {
|
|
@@ -5781,10 +5781,10 @@ function WT(e, t, n) {
|
|
|
5781
5781
|
throw new Z("Unknown option " + s, Z.ERR_BAD_OPTION);
|
|
5782
5782
|
}
|
|
5783
5783
|
}
|
|
5784
|
-
const
|
|
5784
|
+
const zs = {
|
|
5785
5785
|
assertOptions: WT,
|
|
5786
5786
|
validators: Ao
|
|
5787
|
-
}, ht =
|
|
5787
|
+
}, ht = zs.validators;
|
|
5788
5788
|
let or = class {
|
|
5789
5789
|
constructor(t) {
|
|
5790
5790
|
this.defaults = t || {}, this.interceptors = {
|
|
@@ -5834,7 +5834,7 @@ let or = class {
|
|
|
5834
5834
|
_request(t, n) {
|
|
5835
5835
|
typeof t == "string" ? (n = n || {}, n.url = t) : n = t || {}, n = fr(this.defaults, n);
|
|
5836
5836
|
const { transitional: r, paramsSerializer: i, headers: s } = n;
|
|
5837
|
-
r !== void 0 &&
|
|
5837
|
+
r !== void 0 && zs.assertOptions(
|
|
5838
5838
|
r,
|
|
5839
5839
|
{
|
|
5840
5840
|
silentJSONParsing: ht.transitional(ht.boolean),
|
|
@@ -5847,14 +5847,14 @@ let or = class {
|
|
|
5847
5847
|
!1
|
|
5848
5848
|
), i != null && (w.isFunction(i) ? n.paramsSerializer = {
|
|
5849
5849
|
serialize: i
|
|
5850
|
-
} :
|
|
5850
|
+
} : zs.assertOptions(
|
|
5851
5851
|
i,
|
|
5852
5852
|
{
|
|
5853
5853
|
encode: ht.function,
|
|
5854
5854
|
serialize: ht.function
|
|
5855
5855
|
},
|
|
5856
5856
|
!0
|
|
5857
|
-
)), n.allowAbsoluteUrls !== void 0 || (this.defaults.allowAbsoluteUrls !== void 0 ? n.allowAbsoluteUrls = this.defaults.allowAbsoluteUrls : n.allowAbsoluteUrls = !0),
|
|
5857
|
+
)), n.allowAbsoluteUrls !== void 0 || (this.defaults.allowAbsoluteUrls !== void 0 ? n.allowAbsoluteUrls = this.defaults.allowAbsoluteUrls : n.allowAbsoluteUrls = !0), zs.assertOptions(
|
|
5858
5858
|
n,
|
|
5859
5859
|
{
|
|
5860
5860
|
baseUrl: ht.spelling("baseURL"),
|
|
@@ -5976,7 +5976,7 @@ let XT = class Wh {
|
|
|
5976
5976
|
r.unsubscribe(s);
|
|
5977
5977
|
}, o;
|
|
5978
5978
|
}, t(function(s, o, a) {
|
|
5979
|
-
r.reason || (r.reason = new
|
|
5979
|
+
r.reason || (r.reason = new rs(s, o, a), n(r.reason));
|
|
5980
5980
|
});
|
|
5981
5981
|
}
|
|
5982
5982
|
/**
|
|
@@ -6033,7 +6033,7 @@ function KT(e) {
|
|
|
6033
6033
|
function QT(e) {
|
|
6034
6034
|
return w.isObject(e) && e.isAxiosError === !0;
|
|
6035
6035
|
}
|
|
6036
|
-
const
|
|
6036
|
+
const Vs = {
|
|
6037
6037
|
Continue: 100,
|
|
6038
6038
|
SwitchingProtocols: 101,
|
|
6039
6039
|
Processing: 102,
|
|
@@ -6113,8 +6113,8 @@ const zs = {
|
|
|
6113
6113
|
SslHandshakeFailed: 525,
|
|
6114
6114
|
InvalidSslCertificate: 526
|
|
6115
6115
|
};
|
|
6116
|
-
Object.entries(
|
|
6117
|
-
|
|
6116
|
+
Object.entries(Vs).forEach(([e, t]) => {
|
|
6117
|
+
Vs[t] === void 0 && (Vs[t] = e);
|
|
6118
6118
|
});
|
|
6119
6119
|
function Xh(e) {
|
|
6120
6120
|
const t = new or(e), n = Th(or.prototype.request, t);
|
|
@@ -6122,9 +6122,9 @@ function Xh(e) {
|
|
|
6122
6122
|
return Xh(fr(e, i));
|
|
6123
6123
|
}, n;
|
|
6124
6124
|
}
|
|
6125
|
-
const Xe = Xh(
|
|
6125
|
+
const Xe = Xh(ns);
|
|
6126
6126
|
Xe.Axios = or;
|
|
6127
|
-
Xe.CanceledError =
|
|
6127
|
+
Xe.CanceledError = rs;
|
|
6128
6128
|
Xe.CancelToken = XT;
|
|
6129
6129
|
Xe.isCancel = Hh;
|
|
6130
6130
|
Xe.VERSION = Qu;
|
|
@@ -6140,26 +6140,26 @@ Xe.mergeConfig = fr;
|
|
|
6140
6140
|
Xe.AxiosHeaders = mt;
|
|
6141
6141
|
Xe.formToJSON = (e) => Bh(w.isHTMLForm(e) ? new FormData(e) : e);
|
|
6142
6142
|
Xe.getAdapter = Gh.getAdapter;
|
|
6143
|
-
Xe.HttpStatusCode =
|
|
6143
|
+
Xe.HttpStatusCode = Vs;
|
|
6144
6144
|
Xe.default = Xe;
|
|
6145
6145
|
const {
|
|
6146
|
-
Axios:
|
|
6147
|
-
AxiosError:
|
|
6148
|
-
CanceledError:
|
|
6149
|
-
isCancel:
|
|
6150
|
-
CancelToken:
|
|
6151
|
-
VERSION:
|
|
6152
|
-
all:
|
|
6153
|
-
Cancel:
|
|
6154
|
-
isAxiosError:
|
|
6155
|
-
spread:
|
|
6156
|
-
toFormData:
|
|
6157
|
-
AxiosHeaders:
|
|
6158
|
-
HttpStatusCode:
|
|
6159
|
-
formToJSON:
|
|
6160
|
-
getAdapter:
|
|
6161
|
-
mergeConfig:
|
|
6162
|
-
create:
|
|
6146
|
+
Axios: f4,
|
|
6147
|
+
AxiosError: h4,
|
|
6148
|
+
CanceledError: p4,
|
|
6149
|
+
isCancel: m4,
|
|
6150
|
+
CancelToken: g4,
|
|
6151
|
+
VERSION: E4,
|
|
6152
|
+
all: b4,
|
|
6153
|
+
Cancel: T4,
|
|
6154
|
+
isAxiosError: y4,
|
|
6155
|
+
spread: _4,
|
|
6156
|
+
toFormData: S4,
|
|
6157
|
+
AxiosHeaders: A4,
|
|
6158
|
+
HttpStatusCode: C4,
|
|
6159
|
+
formToJSON: N4,
|
|
6160
|
+
getAdapter: O4,
|
|
6161
|
+
mergeConfig: P4,
|
|
6162
|
+
create: x4
|
|
6163
6163
|
} = Xe;
|
|
6164
6164
|
class JT {
|
|
6165
6165
|
constructor(t, n, r, i = !1, s, o) {
|
|
@@ -6534,7 +6534,7 @@ class ry {
|
|
|
6534
6534
|
};
|
|
6535
6535
|
}
|
|
6536
6536
|
}
|
|
6537
|
-
const Se = new ry(), hr = () => Se.connected,
|
|
6537
|
+
const Se = new ry(), hr = () => Se.connected, is = () => Se.isOpen, Za = "cimulate.widget.minimizedOnNav";
|
|
6538
6538
|
function iy() {
|
|
6539
6539
|
try {
|
|
6540
6540
|
const e = sessionStorage.getItem(Za) === "1";
|
|
@@ -6905,7 +6905,7 @@ const gt = new Sy(), Jh = (e) => {
|
|
|
6905
6905
|
window.addEventListener(Yu, e);
|
|
6906
6906
|
}, Oy = (e) => {
|
|
6907
6907
|
window.removeEventListener(Yu, e);
|
|
6908
|
-
},
|
|
6908
|
+
}, ss = (e, t, n) => {
|
|
6909
6909
|
const r = new CustomEvent(Yu, {
|
|
6910
6910
|
detail: { property: e, value: t, event: n }
|
|
6911
6911
|
});
|
|
@@ -7037,7 +7037,7 @@ const ke = new Py(), ip = (e, t) => {
|
|
|
7037
7037
|
const n = t.updatePricebooksProxy(e);
|
|
7038
7038
|
t.pricebooksProxy.pricebooks = n.pricebooks;
|
|
7039
7039
|
}, xy = (e) => {
|
|
7040
|
-
if (!hr() || !
|
|
7040
|
+
if (!hr() || !is()) {
|
|
7041
7041
|
hr() && gt.clear(), gt.add({ context: "browse", payload: q(x({}, ke.state), { categoryId: e }) });
|
|
7042
7042
|
return;
|
|
7043
7043
|
}
|
|
@@ -7057,7 +7057,7 @@ const ke = new Py(), ip = (e, t) => {
|
|
|
7057
7057
|
}, hp = (e) => {
|
|
7058
7058
|
if (!e || !("categoryId" in e))
|
|
7059
7059
|
throw new Error("Browse context must include a categoryId");
|
|
7060
|
-
const t = hr(), n =
|
|
7060
|
+
const t = hr(), n = is();
|
|
7061
7061
|
if (!t || !n) {
|
|
7062
7062
|
t && gt.clear(), gt.add({ context: "browse", payload: x({}, e) });
|
|
7063
7063
|
return;
|
|
@@ -7123,7 +7123,7 @@ class Ly {
|
|
|
7123
7123
|
const Zt = new Ly(), pp = (e) => {
|
|
7124
7124
|
if (!e || !e.productId)
|
|
7125
7125
|
throw new Error("PDP context must include a productId");
|
|
7126
|
-
const t = hr(), n =
|
|
7126
|
+
const t = hr(), n = is();
|
|
7127
7127
|
if (!t || !n) {
|
|
7128
7128
|
t && gt.clear(), gt.add({ context: "pdp", payload: x({}, e) });
|
|
7129
7129
|
return;
|
|
@@ -7143,7 +7143,7 @@ class My {
|
|
|
7143
7143
|
J(this, "_fullSet", (t, n, r) => {
|
|
7144
7144
|
if (!(n in t))
|
|
7145
7145
|
throw new Error(`Property ${n} does not exist on PromptsExtensionState`);
|
|
7146
|
-
return
|
|
7146
|
+
return os(n, r), Reflect.set(t, n, r);
|
|
7147
7147
|
});
|
|
7148
7148
|
J(this, "_paramsFullGet", (t, n) => Reflect.get(t, n));
|
|
7149
7149
|
J(this, "_paramsFullSet", (t, n, r) => Reflect.set(t, n, r));
|
|
@@ -7187,7 +7187,7 @@ const Je = new My(), Fy = (e) => {
|
|
|
7187
7187
|
window.addEventListener(qu, e);
|
|
7188
7188
|
}, By = (e) => {
|
|
7189
7189
|
window.removeEventListener(qu, e);
|
|
7190
|
-
},
|
|
7190
|
+
}, os = (e, t) => {
|
|
7191
7191
|
const n = new CustomEvent(qu, { detail: { property: e, value: t } });
|
|
7192
7192
|
window.dispatchEvent(n);
|
|
7193
7193
|
}, mp = (e) => {
|
|
@@ -7197,13 +7197,13 @@ const Je = new My(), Fy = (e) => {
|
|
|
7197
7197
|
const t = Je.isInline, n = typeof e == "boolean" ? e : !t;
|
|
7198
7198
|
Je.promptsStateProxy.isInline = n;
|
|
7199
7199
|
}, Uy = (e) => {
|
|
7200
|
-
Je.promptsParamsProxy = Je.updatePromptsParamsProxy(e),
|
|
7200
|
+
Je.promptsParamsProxy = Je.updatePromptsParamsProxy(e), os("params", e), Je.promptsStateProxy.entryType = "ask_cim";
|
|
7201
7201
|
}, Hy = (e) => {
|
|
7202
|
-
Je.promptsParamsProxy = Je.updatePromptsParamsProxy(e),
|
|
7202
|
+
Je.promptsParamsProxy = Je.updatePromptsParamsProxy(e), os("params", e), Je.promptsStateProxy.entryType = "search";
|
|
7203
7203
|
}, $y = (e) => {
|
|
7204
|
-
Je.promptsParamsProxy = Je.updatePromptsParamsProxy(e),
|
|
7204
|
+
Je.promptsParamsProxy = Je.updatePromptsParamsProxy(e), os("params", e), Je.promptsStateProxy.entryType = "browse";
|
|
7205
7205
|
}, zy = (e) => {
|
|
7206
|
-
Je.promptsParamsProxy = Je.updatePromptsParamsProxy(e),
|
|
7206
|
+
Je.promptsParamsProxy = Je.updatePromptsParamsProxy(e), os("params", e), Je.promptsStateProxy.entryType = "pdp";
|
|
7207
7207
|
}, Vy = ({
|
|
7208
7208
|
elementId: e,
|
|
7209
7209
|
entryType: t,
|
|
@@ -7212,11 +7212,11 @@ const Je = new My(), Fy = (e) => {
|
|
|
7212
7212
|
}) => {
|
|
7213
7213
|
Je.promptsStateProxy.elementId = e, t && (Je.promptsStateProxy.entryType = t), typeof r == "boolean" && gp(r), n && Je.updatePromptsParamsProxy(n), Je.isOpen || mp(!0);
|
|
7214
7214
|
}, qy = () => {
|
|
7215
|
-
|
|
7215
|
+
ss("resetConversation", !0, Pn.RESET_CONVERSATION);
|
|
7216
7216
|
}, Yy = () => {
|
|
7217
|
-
|
|
7217
|
+
ss("endConversation", !0, Pn.END_CONVERSATION);
|
|
7218
7218
|
}, jy = (e) => {
|
|
7219
|
-
|
|
7219
|
+
ss(
|
|
7220
7220
|
"getSessionInformation",
|
|
7221
7221
|
{ callback: e },
|
|
7222
7222
|
Pn.GET_SESSION_INFORMATION
|
|
@@ -7225,13 +7225,13 @@ const Je = new My(), Fy = (e) => {
|
|
|
7225
7225
|
payload: e,
|
|
7226
7226
|
callback: t
|
|
7227
7227
|
}) => {
|
|
7228
|
-
|
|
7228
|
+
ss(
|
|
7229
7229
|
"getConversationMessages",
|
|
7230
7230
|
{ payload: e, callback: t },
|
|
7231
7231
|
Pn.GET_CONVERSATION_MESSAGES
|
|
7232
7232
|
);
|
|
7233
7233
|
}, Wy = (e) => {
|
|
7234
|
-
|
|
7234
|
+
ss("loadConversation", e, Pn.LOAD_CONVERSATION);
|
|
7235
7235
|
}, Xy = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
7236
7236
|
__proto__: null,
|
|
7237
7237
|
endConversation: Yy,
|
|
@@ -7321,7 +7321,7 @@ class Ky {
|
|
|
7321
7321
|
}
|
|
7322
7322
|
}
|
|
7323
7323
|
const Be = new Ky(), Qy = (e) => {
|
|
7324
|
-
const t =
|
|
7324
|
+
const t = is(), n = hr();
|
|
7325
7325
|
if (!n || !t) {
|
|
7326
7326
|
n && gt.clear(), gt.add({ context: "search", payload: q(x({}, Be.state), { query: e }) });
|
|
7327
7327
|
return;
|
|
@@ -7342,7 +7342,7 @@ const Be = new Ky(), Qy = (e) => {
|
|
|
7342
7342
|
}, yp = (e) => {
|
|
7343
7343
|
if (!e || !e.query)
|
|
7344
7344
|
throw new Error("Search context must include a query");
|
|
7345
|
-
const t =
|
|
7345
|
+
const t = is(), n = hr();
|
|
7346
7346
|
if (!n || !t) {
|
|
7347
7347
|
n && gt.clear(), gt.add({ context: "search", payload: x({}, e) });
|
|
7348
7348
|
return;
|
|
@@ -8573,15 +8573,15 @@ function A_(e, t) {
|
|
|
8573
8573
|
}
|
|
8574
8574
|
return n;
|
|
8575
8575
|
}
|
|
8576
|
-
function
|
|
8577
|
-
return
|
|
8576
|
+
function to() {
|
|
8577
|
+
return to = Object.assign ? Object.assign.bind() : function(e) {
|
|
8578
8578
|
for (var t = 1; t < arguments.length; t++) {
|
|
8579
8579
|
var n = arguments[t];
|
|
8580
8580
|
for (var r in n)
|
|
8581
8581
|
Object.prototype.hasOwnProperty.call(n, r) && (e[r] = n[r]);
|
|
8582
8582
|
}
|
|
8583
8583
|
return e;
|
|
8584
|
-
},
|
|
8584
|
+
}, to.apply(this, arguments);
|
|
8585
8585
|
}
|
|
8586
8586
|
function Bl(e, t) {
|
|
8587
8587
|
var n = Object.keys(e);
|
|
@@ -8593,7 +8593,7 @@ function Bl(e, t) {
|
|
|
8593
8593
|
}
|
|
8594
8594
|
return n;
|
|
8595
8595
|
}
|
|
8596
|
-
function
|
|
8596
|
+
function no(e) {
|
|
8597
8597
|
for (var t = 1; t < arguments.length; t++) {
|
|
8598
8598
|
var n = arguments[t] != null ? arguments[t] : {};
|
|
8599
8599
|
t % 2 ? Bl(Object(n), !0).forEach(function(r) {
|
|
@@ -8622,13 +8622,13 @@ function O_(e, t) {
|
|
|
8622
8622
|
return (t === "string" ? String : Number)(e);
|
|
8623
8623
|
}
|
|
8624
8624
|
function Rp(e) {
|
|
8625
|
-
return e && e.map((t, n) => /* @__PURE__ */ sr.createElement(t.tag,
|
|
8625
|
+
return e && e.map((t, n) => /* @__PURE__ */ sr.createElement(t.tag, no({
|
|
8626
8626
|
key: n
|
|
8627
8627
|
}, t.attr), Rp(t.child)));
|
|
8628
8628
|
}
|
|
8629
8629
|
function Re(e) {
|
|
8630
|
-
return (t) => /* @__PURE__ */ sr.createElement(P_,
|
|
8631
|
-
attr:
|
|
8630
|
+
return (t) => /* @__PURE__ */ sr.createElement(P_, to({
|
|
8631
|
+
attr: no({}, e.attr)
|
|
8632
8632
|
}, t), Rp(e.child));
|
|
8633
8633
|
}
|
|
8634
8634
|
function P_(e) {
|
|
@@ -8638,13 +8638,13 @@ function P_(e) {
|
|
|
8638
8638
|
size: i,
|
|
8639
8639
|
title: s
|
|
8640
8640
|
} = e, o = S_(e, __), a = i || n.size || "1em", u;
|
|
8641
|
-
return n.className && (u = n.className), e.className && (u = (u ? u + " " : "") + e.className), /* @__PURE__ */ sr.createElement("svg",
|
|
8641
|
+
return n.className && (u = n.className), e.className && (u = (u ? u + " " : "") + e.className), /* @__PURE__ */ sr.createElement("svg", to({
|
|
8642
8642
|
stroke: "currentColor",
|
|
8643
8643
|
fill: "currentColor",
|
|
8644
8644
|
strokeWidth: "0"
|
|
8645
8645
|
}, n.attr, r, o, {
|
|
8646
8646
|
className: u,
|
|
8647
|
-
style:
|
|
8647
|
+
style: no(no({
|
|
8648
8648
|
color: e.color || n.color
|
|
8649
8649
|
}, n.style), e.style),
|
|
8650
8650
|
height: a,
|
|
@@ -8865,7 +8865,7 @@ const $_ = ({
|
|
|
8865
8865
|
icon: o = /* @__PURE__ */ y(H_, {}),
|
|
8866
8866
|
onFiles: a
|
|
8867
8867
|
}) => {
|
|
8868
|
-
const u = Fe(null), c =
|
|
8868
|
+
const u = Fe(null), c = Ji(), l = r != null ? r : c, d = oe(() => {
|
|
8869
8869
|
var h;
|
|
8870
8870
|
return (h = u.current) == null ? void 0 : h.click();
|
|
8871
8871
|
}, []), p = oe(
|
|
@@ -8976,7 +8976,7 @@ const $_ = ({
|
|
|
8976
8976
|
),
|
|
8977
8977
|
type: "submit",
|
|
8978
8978
|
disabled: i,
|
|
8979
|
-
ariaLabel: (t == null ? void 0 : t.buttonAriaLabel) || (t == null ? void 0 : t.buttonLabel) || "
|
|
8979
|
+
ariaLabel: (t == null ? void 0 : t.buttonAriaLabel) || (t == null ? void 0 : t.buttonLabel) || "Send message",
|
|
8980
8980
|
icon: t != null && t.buttonIconUrl ? null : /* @__PURE__ */ y(o, { size: "16px" }),
|
|
8981
8981
|
iconUrl: t == null ? void 0 : t.buttonIconUrl
|
|
8982
8982
|
}
|
|
@@ -9053,7 +9053,7 @@ function Q_(e) {
|
|
|
9053
9053
|
function Vl(e) {
|
|
9054
9054
|
return e.replace(K_, "") === "";
|
|
9055
9055
|
}
|
|
9056
|
-
class
|
|
9056
|
+
class as {
|
|
9057
9057
|
/**
|
|
9058
9058
|
* @param {SchemaType['property']} property
|
|
9059
9059
|
* Property.
|
|
@@ -9068,14 +9068,14 @@ class os {
|
|
|
9068
9068
|
this.normal = n, this.property = t, r && (this.space = r);
|
|
9069
9069
|
}
|
|
9070
9070
|
}
|
|
9071
|
-
|
|
9072
|
-
|
|
9073
|
-
|
|
9071
|
+
as.prototype.normal = {};
|
|
9072
|
+
as.prototype.property = {};
|
|
9073
|
+
as.prototype.space = void 0;
|
|
9074
9074
|
function Mp(e, t) {
|
|
9075
9075
|
const n = {}, r = {};
|
|
9076
9076
|
for (const i of e)
|
|
9077
9077
|
Object.assign(n, i.property), Object.assign(r, i.normal);
|
|
9078
|
-
return new
|
|
9078
|
+
return new as(n, r, t);
|
|
9079
9079
|
}
|
|
9080
9080
|
function ji(e) {
|
|
9081
9081
|
return e.toLowerCase();
|
|
@@ -9161,7 +9161,7 @@ function Zr(e) {
|
|
|
9161
9161
|
);
|
|
9162
9162
|
e.mustUseProperty && e.mustUseProperty.includes(r) && (s.mustUseProperty = !0), t[r] = s, n[ji(r)] = r, n[ji(s.attribute)] = r;
|
|
9163
9163
|
}
|
|
9164
|
-
return new
|
|
9164
|
+
return new as(t, n, e.space);
|
|
9165
9165
|
}
|
|
9166
9166
|
const Fp = Zr({
|
|
9167
9167
|
properties: {
|
|
@@ -10227,7 +10227,7 @@ function i2(e) {
|
|
|
10227
10227
|
function s2(e) {
|
|
10228
10228
|
return e.charAt(1).toUpperCase();
|
|
10229
10229
|
}
|
|
10230
|
-
const
|
|
10230
|
+
const us = Mp([Fp, Z_, Hp, $p, zp], "html"), jn = Mp([Fp, e2, Hp, $p, zp], "svg");
|
|
10231
10231
|
function jl(e) {
|
|
10232
10232
|
const t = String(e || "").trim();
|
|
10233
10233
|
return t ? t.split(/[ \t\n\r\f]+/g) : [];
|
|
@@ -10526,7 +10526,7 @@ function g2(e, t) {
|
|
|
10526
10526
|
ignoreInvalidStyle: t.ignoreInvalidStyle || !1,
|
|
10527
10527
|
passKeys: t.passKeys !== !1,
|
|
10528
10528
|
passNode: t.passNode || !1,
|
|
10529
|
-
schema: t.space === "svg" ? jn :
|
|
10529
|
+
schema: t.space === "svg" ? jn : us,
|
|
10530
10530
|
stylePropertyNameCase: t.stylePropertyNameCase || "dom",
|
|
10531
10531
|
tableCellAlignToStyle: t.tableCellAlignToStyle !== !1
|
|
10532
10532
|
}, s = Gp(i, e, void 0);
|
|
@@ -10900,7 +10900,7 @@ function Jt(e) {
|
|
|
10900
10900
|
return e.replace(/[\t\n\r ]+/g, " ").replace(/^ | $/g, "").toLowerCase().toUpperCase();
|
|
10901
10901
|
}
|
|
10902
10902
|
const Ct = Gn(/[A-Za-z]/), pt = Gn(/[\dA-Za-z]/), M2 = Gn(/[#-'*+\--9=?A-Z^-~]/);
|
|
10903
|
-
function
|
|
10903
|
+
function ro(e) {
|
|
10904
10904
|
return (
|
|
10905
10905
|
// Special whitespace codes (which have negative values), C0 and Control
|
|
10906
10906
|
// character DEL
|
|
@@ -11194,7 +11194,7 @@ function G2(e, t, n) {
|
|
|
11194
11194
|
return h === 58 ? (e.consume(h), r = 0, u) : (h === 43 || h === 45 || h === 46 || pt(h)) && r++ < 32 ? (e.consume(h), a) : (r = 0, c(h));
|
|
11195
11195
|
}
|
|
11196
11196
|
function u(h) {
|
|
11197
|
-
return h === 62 ? (e.exit("autolinkProtocol"), e.enter("autolinkMarker"), e.consume(h), e.exit("autolinkMarker"), e.exit("autolink"), t) : h === null || h === 32 || h === 60 ||
|
|
11197
|
+
return h === 62 ? (e.exit("autolinkProtocol"), e.enter("autolinkMarker"), e.consume(h), e.exit("autolinkMarker"), e.exit("autolink"), t) : h === null || h === 32 || h === 60 || ro(h) ? n(h) : (e.consume(h), u);
|
|
11198
11198
|
}
|
|
11199
11199
|
function c(h) {
|
|
11200
11200
|
return h === 64 ? (e.consume(h), l) : M2(h) ? (e.consume(h), c) : n(h);
|
|
@@ -11213,7 +11213,7 @@ function G2(e, t, n) {
|
|
|
11213
11213
|
return n(h);
|
|
11214
11214
|
}
|
|
11215
11215
|
}
|
|
11216
|
-
const
|
|
11216
|
+
const cs = {
|
|
11217
11217
|
partial: !0,
|
|
11218
11218
|
tokenize: W2
|
|
11219
11219
|
};
|
|
@@ -11737,7 +11737,7 @@ function r0(e, t, n, r, i, s, o, a, u) {
|
|
|
11737
11737
|
let l = 0;
|
|
11738
11738
|
return d;
|
|
11739
11739
|
function d(g) {
|
|
11740
|
-
return g === 60 ? (e.enter(r), e.enter(i), e.enter(s), e.consume(g), e.exit(s), p) : g === null || g === 32 || g === 41 ||
|
|
11740
|
+
return g === 60 ? (e.enter(r), e.enter(i), e.enter(s), e.consume(g), e.exit(s), p) : g === null || g === 32 || g === 41 || ro(g) ? n(g) : (e.enter(r), e.enter(o), e.enter(a), e.enter("chunkString", {
|
|
11741
11741
|
contentType: "string"
|
|
11742
11742
|
}), E(g));
|
|
11743
11743
|
}
|
|
@@ -11753,7 +11753,7 @@ function r0(e, t, n, r, i, s, o, a, u) {
|
|
|
11753
11753
|
return g === 60 || g === 62 || g === 92 ? (e.consume(g), h) : h(g);
|
|
11754
11754
|
}
|
|
11755
11755
|
function E(g) {
|
|
11756
|
-
return !l && (g === null || g === 41 || De(g)) ? (e.exit("chunkString"), e.exit(a), e.exit(o), e.exit(r), t(g)) : l < c && g === 40 ? (e.consume(g), l++, E) : g === 41 ? (e.consume(g), l--, E) : g === null || g === 32 || g === 40 ||
|
|
11756
|
+
return !l && (g === null || g === 41 || De(g)) ? (e.exit("chunkString"), e.exit(a), e.exit(o), e.exit(r), t(g)) : l < c && g === 40 ? (e.consume(g), l++, E) : g === 41 ? (e.consume(g), l--, E) : g === null || g === 32 || g === 40 || ro(g) ? n(g) : (e.consume(g), g === 92 ? S : E);
|
|
11757
11757
|
}
|
|
11758
11758
|
function S(g) {
|
|
11759
11759
|
return g === 40 || g === 41 || g === 92 ? (e.consume(g), E) : E(g);
|
|
@@ -12132,7 +12132,7 @@ function kS(e, t, n) {
|
|
|
12132
12132
|
function RS(e, t, n) {
|
|
12133
12133
|
return r;
|
|
12134
12134
|
function r(i) {
|
|
12135
|
-
return e.enter("lineEnding"), e.consume(i), e.exit("lineEnding"), e.attempt(
|
|
12135
|
+
return e.enter("lineEnding"), e.consume(i), e.exit("lineEnding"), e.attempt(cs, t, n);
|
|
12136
12136
|
}
|
|
12137
12137
|
}
|
|
12138
12138
|
const LS = {
|
|
@@ -12404,7 +12404,7 @@ function WS(e, t) {
|
|
|
12404
12404
|
return e.enter("lineEnding"), e.consume(r), e.exit("lineEnding"), Pe(e, t, "linePrefix");
|
|
12405
12405
|
}
|
|
12406
12406
|
}
|
|
12407
|
-
const
|
|
12407
|
+
const qs = {
|
|
12408
12408
|
name: "thematicBreak",
|
|
12409
12409
|
tokenize: XS
|
|
12410
12410
|
};
|
|
@@ -12448,7 +12448,7 @@ function JS(e, t, n) {
|
|
|
12448
12448
|
if (r.containerState.type || (r.containerState.type = m, e.enter(m, {
|
|
12449
12449
|
_container: !0
|
|
12450
12450
|
})), m === "listUnordered")
|
|
12451
|
-
return e.enter("listItemPrefix"), h === 42 || h === 45 ? e.check(
|
|
12451
|
+
return e.enter("listItemPrefix"), h === 42 || h === 45 ? e.check(qs, n, c)(h) : c(h);
|
|
12452
12452
|
if (!r.interrupt || h === 49)
|
|
12453
12453
|
return e.enter("listItemPrefix"), e.enter("listItemValue"), u(h);
|
|
12454
12454
|
}
|
|
@@ -12459,7 +12459,7 @@ function JS(e, t, n) {
|
|
|
12459
12459
|
}
|
|
12460
12460
|
function c(h) {
|
|
12461
12461
|
return e.enter("listItemMarker"), e.consume(h), e.exit("listItemMarker"), r.containerState.marker = r.containerState.marker || h, e.check(
|
|
12462
|
-
|
|
12462
|
+
cs,
|
|
12463
12463
|
// Can’t be empty when interrupting.
|
|
12464
12464
|
r.interrupt ? n : l,
|
|
12465
12465
|
e.attempt(KS, p, d)
|
|
@@ -12477,7 +12477,7 @@ function JS(e, t, n) {
|
|
|
12477
12477
|
}
|
|
12478
12478
|
function ZS(e, t, n) {
|
|
12479
12479
|
const r = this;
|
|
12480
|
-
return r.containerState._closeFlow = void 0, e.check(
|
|
12480
|
+
return r.containerState._closeFlow = void 0, e.check(cs, i, s);
|
|
12481
12481
|
function i(a) {
|
|
12482
12482
|
return r.containerState.furtherBlankLines = r.containerState.furtherBlankLines || r.containerState.initialBlankLine, Pe(e, t, "listItemIndent", r.containerState.size + 1)(a);
|
|
12483
12483
|
}
|
|
@@ -12559,7 +12559,7 @@ const sA = {
|
|
|
12559
12559
|
function oA(e) {
|
|
12560
12560
|
const t = this, n = e.attempt(
|
|
12561
12561
|
// Try to parse a blank line.
|
|
12562
|
-
|
|
12562
|
+
cs,
|
|
12563
12563
|
r,
|
|
12564
12564
|
// Try to parse initial flow (essentially, only code).
|
|
12565
12565
|
e.attempt(this.parser.constructs.flowInitial, i, Pe(e, e.attempt(this.parser.constructs.flow, i, e.attempt(dS, i)), "linePrefix"))
|
|
@@ -12689,11 +12689,11 @@ const dA = {
|
|
|
12689
12689
|
32: pa
|
|
12690
12690
|
}, pA = {
|
|
12691
12691
|
35: SS,
|
|
12692
|
-
42:
|
|
12693
|
-
45: [ad,
|
|
12692
|
+
42: qs,
|
|
12693
|
+
45: [ad, qs],
|
|
12694
12694
|
60: OS,
|
|
12695
12695
|
61: ad,
|
|
12696
|
-
95:
|
|
12696
|
+
95: qs,
|
|
12697
12697
|
96: sd,
|
|
12698
12698
|
126: sd
|
|
12699
12699
|
}, mA = {
|
|
@@ -13948,14 +13948,14 @@ const sC = {
|
|
|
13948
13948
|
tableRow: eC,
|
|
13949
13949
|
text: rC,
|
|
13950
13950
|
thematicBreak: iC,
|
|
13951
|
-
toml:
|
|
13952
|
-
yaml:
|
|
13953
|
-
definition:
|
|
13954
|
-
footnoteDefinition:
|
|
13951
|
+
toml: Cs,
|
|
13952
|
+
yaml: Cs,
|
|
13953
|
+
definition: Cs,
|
|
13954
|
+
footnoteDefinition: Cs
|
|
13955
13955
|
};
|
|
13956
|
-
function
|
|
13956
|
+
function Cs() {
|
|
13957
13957
|
}
|
|
13958
|
-
const f0 = -1, wo = 0, Ri = 1,
|
|
13958
|
+
const f0 = -1, wo = 0, Ri = 1, io = 2, dc = 3, fc = 4, hc = 5, pc = 6, h0 = 7, p0 = 8, { defineProperty: oC } = Object, m0 = typeof self == "object" ? self : globalThis, hd = (e, t) => {
|
|
13959
13959
|
switch (e) {
|
|
13960
13960
|
case "Function":
|
|
13961
13961
|
case "SharedWorker":
|
|
@@ -13981,7 +13981,7 @@ const f0 = -1, wo = 0, Ri = 1, ro = 2, dc = 3, fc = 4, hc = 5, pc = 6, h0 = 7, p
|
|
|
13981
13981
|
a.push(r(u));
|
|
13982
13982
|
return a;
|
|
13983
13983
|
}
|
|
13984
|
-
case
|
|
13984
|
+
case io: {
|
|
13985
13985
|
const a = n({}, i);
|
|
13986
13986
|
for (const [u, c] of o) {
|
|
13987
13987
|
const l = r(u), d = r(c);
|
|
@@ -14044,7 +14044,7 @@ const f0 = -1, wo = 0, Ri = 1, ro = 2, dc = 3, fc = 4, hc = 5, pc = 6, h0 = 7, p
|
|
|
14044
14044
|
case "Array":
|
|
14045
14045
|
return [Ri, er];
|
|
14046
14046
|
case "Object":
|
|
14047
|
-
return [
|
|
14047
|
+
return [io, er];
|
|
14048
14048
|
case "Date":
|
|
14049
14049
|
return [dc, er];
|
|
14050
14050
|
case "RegExp":
|
|
@@ -14056,8 +14056,8 @@ const f0 = -1, wo = 0, Ri = 1, ro = 2, dc = 3, fc = 4, hc = 5, pc = 6, h0 = 7, p
|
|
|
14056
14056
|
case "DataView":
|
|
14057
14057
|
return [Ri, n];
|
|
14058
14058
|
}
|
|
14059
|
-
return n.includes("Array") ? [Ri, n] : e instanceof Error ? [h0, e.name || "Error"] : [
|
|
14060
|
-
},
|
|
14059
|
+
return n.includes("Array") ? [Ri, n] : e instanceof Error ? [h0, e.name || "Error"] : [io, n];
|
|
14060
|
+
}, Ns = ([e, t]) => e === wo && (t === "function" || t === "symbol"), dC = (e, t, n, r) => {
|
|
14061
14061
|
const i = (o, a) => {
|
|
14062
14062
|
const u = r.push(o) - 1;
|
|
14063
14063
|
return n.set(a, u), u;
|
|
@@ -14097,7 +14097,7 @@ const f0 = -1, wo = 0, Ri = 1, ro = 2, dc = 3, fc = 4, hc = 5, pc = 6, h0 = 7, p
|
|
|
14097
14097
|
l.push(s(p));
|
|
14098
14098
|
return d;
|
|
14099
14099
|
}
|
|
14100
|
-
case
|
|
14100
|
+
case io: {
|
|
14101
14101
|
if (u)
|
|
14102
14102
|
switch (u) {
|
|
14103
14103
|
case "BigInt":
|
|
@@ -14111,7 +14111,7 @@ const f0 = -1, wo = 0, Ri = 1, ro = 2, dc = 3, fc = 4, hc = 5, pc = 6, h0 = 7, p
|
|
|
14111
14111
|
return s(o.toJSON());
|
|
14112
14112
|
const l = [], d = i([a, l], o);
|
|
14113
14113
|
for (const p of cC(o))
|
|
14114
|
-
(e || !
|
|
14114
|
+
(e || !Ns(bi(o[p]))) && l.push([s(p), s(o[p])]);
|
|
14115
14115
|
return d;
|
|
14116
14116
|
}
|
|
14117
14117
|
case dc:
|
|
@@ -14123,13 +14123,13 @@ const f0 = -1, wo = 0, Ri = 1, ro = 2, dc = 3, fc = 4, hc = 5, pc = 6, h0 = 7, p
|
|
|
14123
14123
|
case hc: {
|
|
14124
14124
|
const l = [], d = i([a, l], o);
|
|
14125
14125
|
for (const [p, h] of o)
|
|
14126
|
-
(e || !(
|
|
14126
|
+
(e || !(Ns(bi(p)) || Ns(bi(h)))) && l.push([s(p), s(h)]);
|
|
14127
14127
|
return d;
|
|
14128
14128
|
}
|
|
14129
14129
|
case pc: {
|
|
14130
14130
|
const l = [], d = i([a, l], o);
|
|
14131
14131
|
for (const p of o)
|
|
14132
|
-
(e || !
|
|
14132
|
+
(e || !Ns(bi(p))) && l.push(s(p));
|
|
14133
14133
|
return d;
|
|
14134
14134
|
}
|
|
14135
14135
|
}
|
|
@@ -14599,7 +14599,7 @@ const un = { basename: DC, dirname: vC, extname: MC, join: FC, sep: "/" };
|
|
|
14599
14599
|
function DC(e, t) {
|
|
14600
14600
|
if (t !== void 0 && typeof t != "string")
|
|
14601
14601
|
throw new TypeError('"ext" argument must be a string');
|
|
14602
|
-
|
|
14602
|
+
ls(e);
|
|
14603
14603
|
let n = 0, r = -1, i = e.length, s;
|
|
14604
14604
|
if (t === void 0 || t.length === 0 || t.length > e.length) {
|
|
14605
14605
|
for (; i--; )
|
|
@@ -14625,7 +14625,7 @@ function DC(e, t) {
|
|
|
14625
14625
|
return n === r ? r = o : r < 0 && (r = e.length), e.slice(n, r);
|
|
14626
14626
|
}
|
|
14627
14627
|
function vC(e) {
|
|
14628
|
-
if (
|
|
14628
|
+
if (ls(e), e.length === 0)
|
|
14629
14629
|
return ".";
|
|
14630
14630
|
let t = -1, n = e.length, r;
|
|
14631
14631
|
for (; --n; )
|
|
@@ -14638,7 +14638,7 @@ function vC(e) {
|
|
|
14638
14638
|
return t < 0 ? e.codePointAt(0) === 47 ? "/" : "." : t === 1 && e.codePointAt(0) === 47 ? "//" : e.slice(0, t);
|
|
14639
14639
|
}
|
|
14640
14640
|
function MC(e) {
|
|
14641
|
-
|
|
14641
|
+
ls(e);
|
|
14642
14642
|
let t = e.length, n = -1, r = 0, i = -1, s = 0, o;
|
|
14643
14643
|
for (; t--; ) {
|
|
14644
14644
|
const a = e.codePointAt(t);
|
|
@@ -14658,11 +14658,11 @@ function MC(e) {
|
|
|
14658
14658
|
function FC(...e) {
|
|
14659
14659
|
let t = -1, n;
|
|
14660
14660
|
for (; ++t < e.length; )
|
|
14661
|
-
|
|
14661
|
+
ls(e[t]), e[t] && (n = n === void 0 ? e[t] : n + "/" + e[t]);
|
|
14662
14662
|
return n === void 0 ? "." : BC(n);
|
|
14663
14663
|
}
|
|
14664
14664
|
function BC(e) {
|
|
14665
|
-
|
|
14665
|
+
ls(e);
|
|
14666
14666
|
const t = e.codePointAt(0) === 47;
|
|
14667
14667
|
let n = UC(e, !t);
|
|
14668
14668
|
return n.length === 0 && !t && (n = "."), n.length > 0 && e.codePointAt(e.length - 1) === 47 && (n += "/"), t ? "/" + n : n;
|
|
@@ -14698,7 +14698,7 @@ function UC(e, t) {
|
|
|
14698
14698
|
}
|
|
14699
14699
|
return n;
|
|
14700
14700
|
}
|
|
14701
|
-
function
|
|
14701
|
+
function ls(e) {
|
|
14702
14702
|
if (typeof e != "string")
|
|
14703
14703
|
throw new TypeError(
|
|
14704
14704
|
"Path must be a string. Received " + JSON.stringify(e)
|
|
@@ -15311,7 +15311,7 @@ class mc extends YC {
|
|
|
15311
15311
|
*/
|
|
15312
15312
|
parse(t) {
|
|
15313
15313
|
this.freeze();
|
|
15314
|
-
const n =
|
|
15314
|
+
const n = Os(t), r = this.parser || this.Parser;
|
|
15315
15315
|
return _a("parse", r), r(String(n), n);
|
|
15316
15316
|
}
|
|
15317
15317
|
/**
|
|
@@ -15360,7 +15360,7 @@ class mc extends YC {
|
|
|
15360
15360
|
const r = this;
|
|
15361
15361
|
return this.freeze(), _a("process", this.parser || this.Parser), Sa("process", this.compiler || this.Compiler), n ? i(void 0, n) : new Promise(i);
|
|
15362
15362
|
function i(s, o) {
|
|
15363
|
-
const a =
|
|
15363
|
+
const a = Os(t), u = (
|
|
15364
15364
|
/** @type {HeadTree extends undefined ? Node : HeadTree} */
|
|
15365
15365
|
/** @type {unknown} */
|
|
15366
15366
|
r.parse(a)
|
|
@@ -15465,7 +15465,7 @@ class mc extends YC {
|
|
|
15465
15465
|
const i = this.transformers;
|
|
15466
15466
|
return !r && typeof n == "function" && (r = n, n = void 0), r ? s(void 0, r) : new Promise(s);
|
|
15467
15467
|
function s(o, a) {
|
|
15468
|
-
const u =
|
|
15468
|
+
const u = Os(n);
|
|
15469
15469
|
i.run(t, u, c);
|
|
15470
15470
|
function c(l, d, p) {
|
|
15471
15471
|
const h = (
|
|
@@ -15531,7 +15531,7 @@ class mc extends YC {
|
|
|
15531
15531
|
*/
|
|
15532
15532
|
stringify(t, n) {
|
|
15533
15533
|
this.freeze();
|
|
15534
|
-
const r =
|
|
15534
|
+
const r = Os(n), i = this.compiler || this.Compiler;
|
|
15535
15535
|
return Sa("stringify", i), _d(t), i(t, r);
|
|
15536
15536
|
}
|
|
15537
15537
|
/**
|
|
@@ -15674,7 +15674,7 @@ function Sd(e, t, n) {
|
|
|
15674
15674
|
"`" + e + "` finished async. Use `" + t + "` instead"
|
|
15675
15675
|
);
|
|
15676
15676
|
}
|
|
15677
|
-
function
|
|
15677
|
+
function Os(e) {
|
|
15678
15678
|
return WC(e) ? e : new b0(e);
|
|
15679
15679
|
}
|
|
15680
15680
|
function WC(e) {
|
|
@@ -15933,7 +15933,7 @@ const uN = [
|
|
|
15933
15933
|
"solidColor",
|
|
15934
15934
|
"textArea",
|
|
15935
15935
|
"textPath"
|
|
15936
|
-
], cN = _0(
|
|
15936
|
+
], cN = _0(us, "div"), lN = _0(jn, "g", uN);
|
|
15937
15937
|
function dN(e) {
|
|
15938
15938
|
const t = String(e), n = [];
|
|
15939
15939
|
return { toOffset: i, toPoint: r };
|
|
@@ -15987,7 +15987,7 @@ function hN(e, t) {
|
|
|
15987
15987
|
{
|
|
15988
15988
|
file: n.file || void 0,
|
|
15989
15989
|
location: !1,
|
|
15990
|
-
schema: n.space === "svg" ? jn :
|
|
15990
|
+
schema: n.space === "svg" ? jn : us,
|
|
15991
15991
|
verbose: n.verbose || !1
|
|
15992
15992
|
},
|
|
15993
15993
|
e
|
|
@@ -16001,7 +16001,7 @@ function gc(e, t) {
|
|
|
16001
16001
|
/** @type {DefaultTreeAdapterMap['commentNode']} */
|
|
16002
16002
|
t
|
|
16003
16003
|
);
|
|
16004
|
-
return n = { type: "comment", value: r.data },
|
|
16004
|
+
return n = { type: "comment", value: r.data }, Ys(e, r, n), n;
|
|
16005
16005
|
}
|
|
16006
16006
|
case "#document":
|
|
16007
16007
|
case "#document-fragment": {
|
|
@@ -16024,14 +16024,14 @@ function gc(e, t) {
|
|
|
16024
16024
|
/** @type {DefaultTreeAdapterMap['documentType']} */
|
|
16025
16025
|
t
|
|
16026
16026
|
);
|
|
16027
|
-
return n = { type: "doctype" },
|
|
16027
|
+
return n = { type: "doctype" }, Ys(e, r, n), n;
|
|
16028
16028
|
}
|
|
16029
16029
|
case "#text": {
|
|
16030
16030
|
const r = (
|
|
16031
16031
|
/** @type {DefaultTreeAdapterMap['textNode']} */
|
|
16032
16032
|
t
|
|
16033
16033
|
);
|
|
16034
|
-
return n = { type: "text", value: r.value },
|
|
16034
|
+
return n = { type: "text", value: r.value }, Ys(e, r, n), n;
|
|
16035
16035
|
}
|
|
16036
16036
|
// Element.
|
|
16037
16037
|
default:
|
|
@@ -16056,7 +16056,7 @@ function A0(e, t) {
|
|
|
16056
16056
|
}
|
|
16057
16057
|
function pN(e, t) {
|
|
16058
16058
|
const n = e.schema;
|
|
16059
|
-
e.schema = t.namespaceURI === nr.svg ? jn :
|
|
16059
|
+
e.schema = t.namespaceURI === nr.svg ? jn : us;
|
|
16060
16060
|
let r = -1;
|
|
16061
16061
|
const i = {};
|
|
16062
16062
|
for (; ++r < t.attrs.length; ) {
|
|
@@ -16064,7 +16064,7 @@ function pN(e, t) {
|
|
|
16064
16064
|
S0.call(fN, u) || (i[u] = a.value);
|
|
16065
16065
|
}
|
|
16066
16066
|
const o = (e.schema.space === "svg" ? lN : cN)(t.tagName, i, A0(e, t.childNodes));
|
|
16067
|
-
if (
|
|
16067
|
+
if (Ys(e, t, o), o.tagName === "template") {
|
|
16068
16068
|
const a = (
|
|
16069
16069
|
/** @type {DefaultTreeAdapterMap['template']} */
|
|
16070
16070
|
t
|
|
@@ -16076,7 +16076,7 @@ function pN(e, t) {
|
|
|
16076
16076
|
}
|
|
16077
16077
|
return e.schema = n, o;
|
|
16078
16078
|
}
|
|
16079
|
-
function
|
|
16079
|
+
function Ys(e, t, n) {
|
|
16080
16080
|
if ("sourceCodeLocation" in t && t.sourceCodeLocation && e.file) {
|
|
16081
16081
|
const r = mN(e, n, t.sourceCodeLocation);
|
|
16082
16082
|
r && (e.location = !0, n.position = r);
|
|
@@ -16134,7 +16134,7 @@ function C0(e, t) {
|
|
|
16134
16134
|
const gN = {}, EN = {}.hasOwnProperty, N0 = C0("type", { handlers: { root: TN, element: CN, text: SN, comment: AN, doctype: _N } });
|
|
16135
16135
|
function bN(e, t) {
|
|
16136
16136
|
const r = (t || gN).space;
|
|
16137
|
-
return N0(e, r === "svg" ? jn :
|
|
16137
|
+
return N0(e, r === "svg" ? jn : us);
|
|
16138
16138
|
}
|
|
16139
16139
|
function TN(e, t) {
|
|
16140
16140
|
const n = {
|
|
@@ -16962,7 +16962,7 @@ function Fn(e) {
|
|
|
16962
16962
|
function wd(e) {
|
|
16963
16963
|
return Fn(e) || VN(e);
|
|
16964
16964
|
}
|
|
16965
|
-
function
|
|
16965
|
+
function Ps(e) {
|
|
16966
16966
|
return e + 32;
|
|
16967
16967
|
}
|
|
16968
16968
|
function w0(e) {
|
|
@@ -17669,7 +17669,7 @@ class jN {
|
|
|
17669
17669
|
break;
|
|
17670
17670
|
}
|
|
17671
17671
|
default:
|
|
17672
|
-
n.tagName += String.fromCodePoint(Oi(t) ?
|
|
17672
|
+
n.tagName += String.fromCodePoint(Oi(t) ? Ps(t) : t);
|
|
17673
17673
|
}
|
|
17674
17674
|
}
|
|
17675
17675
|
// RCDATA less-than sign state
|
|
@@ -18001,7 +18001,7 @@ class jN {
|
|
|
18001
18001
|
break;
|
|
18002
18002
|
}
|
|
18003
18003
|
default:
|
|
18004
|
-
this.currentAttr.name += String.fromCodePoint(Oi(t) ?
|
|
18004
|
+
this.currentAttr.name += String.fromCodePoint(Oi(t) ? Ps(t) : t);
|
|
18005
18005
|
}
|
|
18006
18006
|
}
|
|
18007
18007
|
// After attribute name state
|
|
@@ -18403,7 +18403,7 @@ class jN {
|
|
|
18403
18403
|
//------------------------------------------------------------------
|
|
18404
18404
|
_stateBeforeDoctypeName(t) {
|
|
18405
18405
|
if (Oi(t))
|
|
18406
|
-
this._createDoctypeToken(String.fromCharCode(
|
|
18406
|
+
this._createDoctypeToken(String.fromCharCode(Ps(t))), this.state = A.DOCTYPE_NAME;
|
|
18407
18407
|
else
|
|
18408
18408
|
switch (t) {
|
|
18409
18409
|
case _.SPACE:
|
|
@@ -18456,7 +18456,7 @@ class jN {
|
|
|
18456
18456
|
break;
|
|
18457
18457
|
}
|
|
18458
18458
|
default:
|
|
18459
|
-
n.name += String.fromCodePoint(Oi(t) ?
|
|
18459
|
+
n.name += String.fromCodePoint(Oi(t) ? Ps(t) : t);
|
|
18460
18460
|
}
|
|
18461
18461
|
}
|
|
18462
18462
|
// After DOCTYPE name state
|
|
@@ -18874,7 +18874,7 @@ const k0 = /* @__PURE__ */ new Set([f.DD, f.DT, f.LI, f.OPTGROUP, f.OPTION, f.P,
|
|
|
18874
18874
|
f.TH,
|
|
18875
18875
|
f.THEAD,
|
|
18876
18876
|
f.TR
|
|
18877
|
-
]),
|
|
18877
|
+
]), so = /* @__PURE__ */ new Set([
|
|
18878
18878
|
f.APPLET,
|
|
18879
18879
|
f.CAPTION,
|
|
18880
18880
|
f.HTML,
|
|
@@ -18884,7 +18884,7 @@ const k0 = /* @__PURE__ */ new Set([f.DD, f.DT, f.LI, f.OPTGROUP, f.OPTION, f.P,
|
|
|
18884
18884
|
f.TD,
|
|
18885
18885
|
f.TEMPLATE,
|
|
18886
18886
|
f.TH
|
|
18887
|
-
]), GN = /* @__PURE__ */ new Set([...
|
|
18887
|
+
]), GN = /* @__PURE__ */ new Set([...so, f.OL, f.UL]), WN = /* @__PURE__ */ new Set([...so, f.BUTTON]), Ld = /* @__PURE__ */ new Set([f.ANNOTATION_XML, f.MI, f.MN, f.MO, f.MS, f.MTEXT]), Dd = /* @__PURE__ */ new Set([f.DESC, f.FOREIGN_OBJECT, f.TITLE]), XN = /* @__PURE__ */ new Set([f.TR, f.TEMPLATE, f.HTML]), KN = /* @__PURE__ */ new Set([f.TBODY, f.TFOOT, f.THEAD, f.TEMPLATE, f.HTML]), QN = /* @__PURE__ */ new Set([f.TABLE, f.TEMPLATE, f.HTML]), JN = /* @__PURE__ */ new Set([f.TD, f.TH]);
|
|
18888
18888
|
class ZN {
|
|
18889
18889
|
get currentTmplContentOrNode() {
|
|
18890
18890
|
return this._isInTemplate() ? this.treeAdapter.getTemplateContent(this.current) : this.current;
|
|
@@ -19013,7 +19013,7 @@ class ZN {
|
|
|
19013
19013
|
return !0;
|
|
19014
19014
|
}
|
|
19015
19015
|
hasInScope(t) {
|
|
19016
|
-
return this.hasInDynamicScope(t,
|
|
19016
|
+
return this.hasInDynamicScope(t, so);
|
|
19017
19017
|
}
|
|
19018
19018
|
hasInListItemScope(t) {
|
|
19019
19019
|
return this.hasInDynamicScope(t, GN);
|
|
@@ -19028,7 +19028,7 @@ class ZN {
|
|
|
19028
19028
|
case z.HTML: {
|
|
19029
19029
|
if (hu.has(n))
|
|
19030
19030
|
return !0;
|
|
19031
|
-
if (
|
|
19031
|
+
if (so.has(n))
|
|
19032
19032
|
return !1;
|
|
19033
19033
|
break;
|
|
19034
19034
|
}
|
|
@@ -20095,15 +20095,15 @@ class Ud {
|
|
|
20095
20095
|
break;
|
|
20096
20096
|
}
|
|
20097
20097
|
case O.IN_COLUMN_GROUP: {
|
|
20098
|
-
|
|
20098
|
+
oo(this, t);
|
|
20099
20099
|
break;
|
|
20100
20100
|
}
|
|
20101
20101
|
case O.AFTER_BODY: {
|
|
20102
|
-
|
|
20102
|
+
ao(this, t);
|
|
20103
20103
|
break;
|
|
20104
20104
|
}
|
|
20105
20105
|
case O.AFTER_AFTER_BODY: {
|
|
20106
|
-
|
|
20106
|
+
js(this, t);
|
|
20107
20107
|
break;
|
|
20108
20108
|
}
|
|
20109
20109
|
}
|
|
@@ -20150,15 +20150,15 @@ class Ud {
|
|
|
20150
20150
|
break;
|
|
20151
20151
|
}
|
|
20152
20152
|
case O.IN_COLUMN_GROUP: {
|
|
20153
|
-
|
|
20153
|
+
oo(this, t);
|
|
20154
20154
|
break;
|
|
20155
20155
|
}
|
|
20156
20156
|
case O.AFTER_BODY: {
|
|
20157
|
-
|
|
20157
|
+
ao(this, t);
|
|
20158
20158
|
break;
|
|
20159
20159
|
}
|
|
20160
20160
|
case O.AFTER_AFTER_BODY: {
|
|
20161
|
-
|
|
20161
|
+
js(this, t);
|
|
20162
20162
|
break;
|
|
20163
20163
|
}
|
|
20164
20164
|
}
|
|
@@ -20429,7 +20429,7 @@ class Ud {
|
|
|
20429
20429
|
break;
|
|
20430
20430
|
}
|
|
20431
20431
|
case O.AFTER_AFTER_BODY: {
|
|
20432
|
-
|
|
20432
|
+
js(this, t);
|
|
20433
20433
|
break;
|
|
20434
20434
|
}
|
|
20435
20435
|
}
|
|
@@ -21351,7 +21351,7 @@ function Na(e, t) {
|
|
|
21351
21351
|
}
|
|
21352
21352
|
}
|
|
21353
21353
|
else
|
|
21354
|
-
|
|
21354
|
+
ds(e, t);
|
|
21355
21355
|
}
|
|
21356
21356
|
function PP(e, t) {
|
|
21357
21357
|
e.openElements.clearBackToTableContext(), e.activeFormattingElements.insertMarker(), e._insertElement(t, z.HTML), e.insertionMode = O.IN_CAPTION;
|
|
@@ -21372,7 +21372,7 @@ function RP(e, t) {
|
|
|
21372
21372
|
e.openElements.hasInTableScope(f.TABLE) && (e.openElements.popUntilTagNamePopped(f.TABLE), e._resetInsertionMode(), e._processStartTag(t));
|
|
21373
21373
|
}
|
|
21374
21374
|
function LP(e, t) {
|
|
21375
|
-
$0(t) ? e._appendElement(t, z.HTML) :
|
|
21375
|
+
$0(t) ? e._appendElement(t, z.HTML) : ds(e, t), t.ackSelfClosing = !0;
|
|
21376
21376
|
}
|
|
21377
21377
|
function DP(e, t) {
|
|
21378
21378
|
!e.formElement && e.openElements.tmplCount === 0 && (e._insertElement(t, z.HTML), e.formElement = e.openElements.current, e.openElements.pop());
|
|
@@ -21422,7 +21422,7 @@ function qr(e, t) {
|
|
|
21422
21422
|
break;
|
|
21423
21423
|
}
|
|
21424
21424
|
default:
|
|
21425
|
-
|
|
21425
|
+
ds(e, t);
|
|
21426
21426
|
}
|
|
21427
21427
|
}
|
|
21428
21428
|
function Wi(e, t) {
|
|
@@ -21448,10 +21448,10 @@ function Wi(e, t) {
|
|
|
21448
21448
|
case f.TR:
|
|
21449
21449
|
break;
|
|
21450
21450
|
default:
|
|
21451
|
-
|
|
21451
|
+
ds(e, t);
|
|
21452
21452
|
}
|
|
21453
21453
|
}
|
|
21454
|
-
function
|
|
21454
|
+
function ds(e, t) {
|
|
21455
21455
|
const n = e.fosterParentingEnabled;
|
|
21456
21456
|
e.fosterParentingEnabled = !0, Do(e, t), e.fosterParentingEnabled = n;
|
|
21457
21457
|
}
|
|
@@ -21465,7 +21465,7 @@ function yi(e, t) {
|
|
|
21465
21465
|
let n = 0;
|
|
21466
21466
|
if (e.hasNonWhitespacePendingCharacterToken)
|
|
21467
21467
|
for (; n < e.pendingCharacterTokens.length; n++)
|
|
21468
|
-
|
|
21468
|
+
ds(e, e.pendingCharacterTokens[n]);
|
|
21469
21469
|
else
|
|
21470
21470
|
for (; n < e.pendingCharacterTokens.length; n++)
|
|
21471
21471
|
e._insertCharacters(e.pendingCharacterTokens[n]);
|
|
@@ -21514,7 +21514,7 @@ function _c(e, t) {
|
|
|
21514
21514
|
break;
|
|
21515
21515
|
}
|
|
21516
21516
|
default:
|
|
21517
|
-
|
|
21517
|
+
oo(e, t);
|
|
21518
21518
|
}
|
|
21519
21519
|
}
|
|
21520
21520
|
function FP(e, t) {
|
|
@@ -21530,10 +21530,10 @@ function FP(e, t) {
|
|
|
21530
21530
|
case f.COL:
|
|
21531
21531
|
break;
|
|
21532
21532
|
default:
|
|
21533
|
-
|
|
21533
|
+
oo(e, t);
|
|
21534
21534
|
}
|
|
21535
21535
|
}
|
|
21536
|
-
function
|
|
21536
|
+
function oo(e, t) {
|
|
21537
21537
|
e.openElements.currentTagId === f.COLGROUP && (e.openElements.pop(), e.insertionMode = O.IN_TABLE, e._processToken(t));
|
|
21538
21538
|
}
|
|
21539
21539
|
function Mo(e, t) {
|
|
@@ -21774,7 +21774,7 @@ function K0(e, t) {
|
|
|
21774
21774
|
e.openElements.tmplCount > 0 ? (e.openElements.popUntilTagNamePopped(f.TEMPLATE), e.activeFormattingElements.clearToLastMarker(), e.tmplInsertionModeStack.shift(), e._resetInsertionMode(), e.onEof(t)) : yc(e, t);
|
|
21775
21775
|
}
|
|
21776
21776
|
function qP(e, t) {
|
|
21777
|
-
t.tagID === f.HTML ? bt(e, t) :
|
|
21777
|
+
t.tagID === f.HTML ? bt(e, t) : ao(e, t);
|
|
21778
21778
|
}
|
|
21779
21779
|
function Q0(e, t) {
|
|
21780
21780
|
var n;
|
|
@@ -21785,9 +21785,9 @@ function Q0(e, t) {
|
|
|
21785
21785
|
r && !(!((n = e.treeAdapter.getNodeSourceCodeLocation(r)) === null || n === void 0) && n.endTag) && e._setEndLocation(r, t);
|
|
21786
21786
|
}
|
|
21787
21787
|
} else
|
|
21788
|
-
|
|
21788
|
+
ao(e, t);
|
|
21789
21789
|
}
|
|
21790
|
-
function
|
|
21790
|
+
function ao(e, t) {
|
|
21791
21791
|
e.insertionMode = O.IN_BODY, Do(e, t);
|
|
21792
21792
|
}
|
|
21793
21793
|
function YP(e, t) {
|
|
@@ -21829,9 +21829,9 @@ function WP(e, t) {
|
|
|
21829
21829
|
t.tagID === f.HTML && (e.insertionMode = O.AFTER_AFTER_FRAMESET);
|
|
21830
21830
|
}
|
|
21831
21831
|
function XP(e, t) {
|
|
21832
|
-
t.tagID === f.HTML ? bt(e, t) :
|
|
21832
|
+
t.tagID === f.HTML ? bt(e, t) : js(e, t);
|
|
21833
21833
|
}
|
|
21834
|
-
function
|
|
21834
|
+
function js(e, t) {
|
|
21835
21835
|
e.insertionMode = O.IN_BODY, Do(e, t);
|
|
21836
21836
|
}
|
|
21837
21837
|
function KP(e, t) {
|
|
@@ -21936,7 +21936,7 @@ function sx(e, t) {
|
|
|
21936
21936
|
const n = {
|
|
21937
21937
|
type: Ee.CHARACTER,
|
|
21938
21938
|
chars: e.value,
|
|
21939
|
-
location:
|
|
21939
|
+
location: fs(e)
|
|
21940
21940
|
};
|
|
21941
21941
|
ri(t, En(e)), t.parser.currentToken = n, t.parser._processToken(t.parser.currentToken);
|
|
21942
21942
|
}
|
|
@@ -21947,7 +21947,7 @@ function ox(e, t) {
|
|
|
21947
21947
|
forceQuirks: !1,
|
|
21948
21948
|
publicId: "",
|
|
21949
21949
|
systemId: "",
|
|
21950
|
-
location:
|
|
21950
|
+
location: fs(e)
|
|
21951
21951
|
};
|
|
21952
21952
|
ri(t, En(e)), t.parser.currentToken = n, t.parser._processToken(t.parser.currentToken);
|
|
21953
21953
|
}
|
|
@@ -21967,7 +21967,7 @@ function tm(e, t) {
|
|
|
21967
21967
|
const n = e.value, r = {
|
|
21968
21968
|
type: Ee.COMMENT,
|
|
21969
21969
|
data: n,
|
|
21970
|
-
location:
|
|
21970
|
+
location: fs(e)
|
|
21971
21971
|
};
|
|
21972
21972
|
ri(t, En(e)), t.parser.currentToken = r, t.parser._processToken(t.parser.currentToken);
|
|
21973
21973
|
}
|
|
@@ -22033,7 +22033,7 @@ function lx(e, t) {
|
|
|
22033
22033
|
// Always element.
|
|
22034
22034
|
/* c8 ignore next */
|
|
22035
22035
|
attrs: "attrs" in s ? s.attrs : [],
|
|
22036
|
-
location:
|
|
22036
|
+
location: fs(e)
|
|
22037
22037
|
};
|
|
22038
22038
|
t.parser.currentToken = o, t.parser._processToken(t.parser.currentToken), t.parser.tokenizer.lastStartTagName = n;
|
|
22039
22039
|
}
|
|
@@ -22048,7 +22048,7 @@ function dx(e, t) {
|
|
|
22048
22048
|
selfClosing: !1,
|
|
22049
22049
|
ackSelfClosing: !1,
|
|
22050
22050
|
attrs: [],
|
|
22051
|
-
location:
|
|
22051
|
+
location: fs(e)
|
|
22052
22052
|
};
|
|
22053
22053
|
t.parser.currentToken = r, t.parser._processToken(t.parser.currentToken), // Current element is closed.
|
|
22054
22054
|
n === t.parser.tokenizer.lastStartTagName && // `<textarea>` and `<title>`
|
|
@@ -22060,7 +22060,7 @@ function fx(e) {
|
|
|
22060
22060
|
const t = e.type === "root" ? e.children[0] : e;
|
|
22061
22061
|
return !!(t && (t.type === "doctype" || t.type === "element" && t.tagName.toLowerCase() === "html"));
|
|
22062
22062
|
}
|
|
22063
|
-
function
|
|
22063
|
+
function fs(e) {
|
|
22064
22064
|
const t = En(e) || {
|
|
22065
22065
|
line: void 0,
|
|
22066
22066
|
column: void 0,
|
|
@@ -22316,13 +22316,13 @@ function im(e, t) {
|
|
|
22316
22316
|
function mx(e, t) {
|
|
22317
22317
|
if (e.schema.allowComments) {
|
|
22318
22318
|
const n = typeof t.value == "string" ? t.value : "", r = n.indexOf("-->"), s = { type: "comment", value: r < 0 ? n : n.slice(0, r) };
|
|
22319
|
-
return
|
|
22319
|
+
return hs(s, t), s;
|
|
22320
22320
|
}
|
|
22321
22321
|
}
|
|
22322
22322
|
function gx(e, t) {
|
|
22323
22323
|
if (e.schema.allowDoctypes) {
|
|
22324
22324
|
const n = { type: "doctype" };
|
|
22325
|
-
return
|
|
22325
|
+
return hs(n, t), n;
|
|
22326
22326
|
}
|
|
22327
22327
|
}
|
|
22328
22328
|
function Ex(e, t) {
|
|
@@ -22348,18 +22348,18 @@ function Ex(e, t) {
|
|
|
22348
22348
|
properties: i,
|
|
22349
22349
|
children: r
|
|
22350
22350
|
};
|
|
22351
|
-
return
|
|
22351
|
+
return hs(o, t), o;
|
|
22352
22352
|
}
|
|
22353
22353
|
function bx(e, t) {
|
|
22354
22354
|
const r = { type: "root", children: (
|
|
22355
22355
|
/** @type {Array<RootContent>} */
|
|
22356
22356
|
sm(e, t.children)
|
|
22357
22357
|
) };
|
|
22358
|
-
return
|
|
22358
|
+
return hs(r, t), r;
|
|
22359
22359
|
}
|
|
22360
22360
|
function Tx(e, t) {
|
|
22361
22361
|
const r = { type: "text", value: typeof t.value == "string" ? t.value : "" };
|
|
22362
|
-
return
|
|
22362
|
+
return hs(r, t), r;
|
|
22363
22363
|
}
|
|
22364
22364
|
function sm(e, t) {
|
|
22365
22365
|
const n = [];
|
|
@@ -22449,7 +22449,7 @@ function Sx(e, t, n) {
|
|
|
22449
22449
|
}
|
|
22450
22450
|
return !1;
|
|
22451
22451
|
}
|
|
22452
|
-
function
|
|
22452
|
+
function hs(e, t) {
|
|
22453
22453
|
const n = Yp(
|
|
22454
22454
|
// @ts-expect-error: looks like a node.
|
|
22455
22455
|
t
|
|
@@ -22663,7 +22663,9 @@ function Ox(e) {
|
|
|
22663
22663
|
return Re({ attr: { version: "1.1", viewBox: "0 0 17 17" }, child: [{ tag: "g", attr: {}, child: [] }, { tag: "path", attr: { d: "M6 8h-6v-6h1v4.109c1.013-3.193 4.036-5.484 7.5-5.484 3.506 0 6.621 2.36 7.574 5.739l-0.963 0.271c-0.832-2.95-3.551-5.011-6.611-5.011-3.226 0.001-6.016 2.276-6.708 5.376h4.208v1zM11 9v1h4.208c-0.693 3.101-3.479 5.375-6.708 5.375-3.062 0-5.78-2.061-6.611-5.011l-0.963 0.271c0.952 3.379 4.067 5.739 7.574 5.739 3.459 0 6.475-2.28 7.5-5.482v4.108h1v-6h-6z" }, child: [] }] })(e);
|
|
22664
22664
|
}
|
|
22665
22665
|
const um = Rt({
|
|
22666
|
-
isOpen: !1
|
|
22666
|
+
isOpen: !1,
|
|
22667
|
+
panelId: "",
|
|
22668
|
+
triggerId: ""
|
|
22667
22669
|
}), Ac = Rt(null), cm = Rt(null), yr = () => {
|
|
22668
22670
|
var n, r;
|
|
22669
22671
|
const e = Nt(Ac), t = Nt(cm);
|
|
@@ -22704,7 +22706,7 @@ function kx(e, t, n = {}) {
|
|
|
22704
22706
|
const { step: r = 1, loop: i = !0 } = n;
|
|
22705
22707
|
return dm(e, t, { step: -r, loop: i });
|
|
22706
22708
|
}
|
|
22707
|
-
var Rx = (e) => Array.isArray(e), fm = (e) => e != null && typeof e == "object", Lx = (e) => fm(e) && !Rx(e),
|
|
22709
|
+
var Rx = (e) => Array.isArray(e), fm = (e) => e != null && typeof e == "object", Lx = (e) => fm(e) && !Rx(e), Gs = (e) => typeof e == "string", vr = (e) => typeof e == "function", Dx = (e) => e == null, vx = (e, t) => Object.prototype.hasOwnProperty.call(e, t), Mx = (e) => Object.prototype.toString.call(e), hm = Function.prototype.toString, Fx = hm.call(Object), Bx = (e) => {
|
|
22708
22710
|
if (!fm(e) || Mx(e) != "[object Object]" || $x(e)) return !1;
|
|
22709
22711
|
const t = Object.getPrototypeOf(e);
|
|
22710
22712
|
if (t === null) return !0;
|
|
@@ -23081,10 +23083,10 @@ function FI(e) {
|
|
|
23081
23083
|
const t = ii(e), { overflow: n, overflowX: r, overflowY: i, display: s } = t.getComputedStyle(e);
|
|
23082
23084
|
return vI.test(n + i + r) && !MI.has(s);
|
|
23083
23085
|
}
|
|
23084
|
-
var Mr = "default", Tu = "",
|
|
23086
|
+
var Mr = "default", Tu = "", Ws = /* @__PURE__ */ new WeakMap();
|
|
23085
23087
|
function BI(e = {}) {
|
|
23086
23088
|
const { target: t, doc: n } = e, r = n != null ? n : document, i = r.documentElement;
|
|
23087
|
-
return Ho() ? (Mr === "default" && (Tu = i.style.webkitUserSelect, i.style.webkitUserSelect = "none"), Mr = "disabled") : t && (
|
|
23089
|
+
return Ho() ? (Mr === "default" && (Tu = i.style.webkitUserSelect, i.style.webkitUserSelect = "none"), Mr = "disabled") : t && (Ws.set(t, t.style.userSelect), t.style.userSelect = "none"), () => UI({ target: t, doc: r });
|
|
23088
23090
|
}
|
|
23089
23091
|
function UI(e = {}) {
|
|
23090
23092
|
const { target: t, doc: n } = e, i = (n != null ? n : document).documentElement;
|
|
@@ -23095,9 +23097,9 @@ function UI(e = {}) {
|
|
|
23095
23097
|
Mr === "restoring" && (i.style.webkitUserSelect === "none" && (i.style.webkitUserSelect = Tu || ""), Tu = "", Mr = "default");
|
|
23096
23098
|
});
|
|
23097
23099
|
}, 300);
|
|
23098
|
-
} else if (t &&
|
|
23099
|
-
const s =
|
|
23100
|
-
t.style.userSelect === "none" && (t.style.userSelect = s != null ? s : ""), t.getAttribute("style") === "" && t.removeAttribute("style"),
|
|
23100
|
+
} else if (t && Ws.has(t)) {
|
|
23101
|
+
const s = Ws.get(t);
|
|
23102
|
+
t.style.userSelect === "none" && (t.style.userSelect = s != null ? s : ""), t.getAttribute("style") === "" && t.removeAttribute("style"), Ws.delete(t);
|
|
23101
23103
|
}
|
|
23102
23104
|
}
|
|
23103
23105
|
function HI(e = {}) {
|
|
@@ -23160,7 +23162,7 @@ function qI(e, t) {
|
|
|
23160
23162
|
var n;
|
|
23161
23163
|
return Array.from((n = e == null ? void 0 : e.querySelectorAll(t)) != null ? n : []);
|
|
23162
23164
|
}
|
|
23163
|
-
function
|
|
23165
|
+
function uo(e, t) {
|
|
23164
23166
|
if (!e) return pm;
|
|
23165
23167
|
const n = Object.keys(t).reduce((r, i) => (r[i] = e.style.getPropertyValue(i), r), {});
|
|
23166
23168
|
return Object.assign(e.style, t), () => {
|
|
@@ -23221,10 +23223,10 @@ var WI = (...e) => e.map((t) => {
|
|
|
23221
23223
|
t[n[1]] = n[2];
|
|
23222
23224
|
return t;
|
|
23223
23225
|
}, KI = (e, t) => {
|
|
23224
|
-
if (
|
|
23225
|
-
if (
|
|
23226
|
+
if (Gs(e)) {
|
|
23227
|
+
if (Gs(t)) return `${e};${t}`;
|
|
23226
23228
|
e = Qd(e);
|
|
23227
|
-
} else
|
|
23229
|
+
} else Gs(t) && (t = Qd(t));
|
|
23228
23230
|
return Object.assign({}, e != null ? e : {}, t != null ? t : {});
|
|
23229
23231
|
};
|
|
23230
23232
|
function nt(...e) {
|
|
@@ -23280,7 +23282,7 @@ function JI(e) {
|
|
|
23280
23282
|
});
|
|
23281
23283
|
}
|
|
23282
23284
|
var ai = () => (e) => Array.from(new Set(e)), Pm = typeof globalThis.document != "undefined" ? Hf : we;
|
|
23283
|
-
function
|
|
23285
|
+
function co(e) {
|
|
23284
23286
|
var d, p;
|
|
23285
23287
|
const t = (d = e().value) != null ? d : e().defaultValue, n = (p = e().isEqual) != null ? p : Object.is, [r] = xe(t), [i, s] = xe(r), o = e().value !== void 0, a = Fe(i);
|
|
23286
23288
|
a.current = o ? e().value : i;
|
|
@@ -23313,10 +23315,10 @@ function uo(e) {
|
|
|
23313
23315
|
}
|
|
23314
23316
|
};
|
|
23315
23317
|
}
|
|
23316
|
-
|
|
23318
|
+
co.cleanup = (e) => {
|
|
23317
23319
|
we(() => e, []);
|
|
23318
23320
|
};
|
|
23319
|
-
|
|
23321
|
+
co.ref = (e) => {
|
|
23320
23322
|
const t = Fe(e);
|
|
23321
23323
|
return {
|
|
23322
23324
|
get: () => t.current,
|
|
@@ -23354,7 +23356,7 @@ function zo(e, t = {}) {
|
|
|
23354
23356
|
e.debug && console.log(...X);
|
|
23355
23357
|
}, i = (K = ($ = e.props) == null ? void 0 : $.call(e, { props: Cc(t), scope: n })) != null ? K : t, s = tw(i), o = (le = e.context) == null ? void 0 : le.call(e, {
|
|
23356
23358
|
prop: s,
|
|
23357
|
-
bindable:
|
|
23359
|
+
bindable: co,
|
|
23358
23360
|
scope: n,
|
|
23359
23361
|
flush: Jd,
|
|
23360
23362
|
getContext() {
|
|
@@ -23444,7 +23446,7 @@ function zo(e, t = {}) {
|
|
|
23444
23446
|
return () => C.forEach((re) => re == null ? void 0 : re());
|
|
23445
23447
|
}, k = (X) => Px(X).find((Q) => {
|
|
23446
23448
|
let ie = !Q.guard;
|
|
23447
|
-
return
|
|
23449
|
+
return Gs(Q.guard) ? ie = !!b(Q.guard) : vr(Q.guard) && (ie = Q.guard(S())), ie;
|
|
23448
23450
|
}), L = (X) => {
|
|
23449
23451
|
Xx(e.computed, () => "[zag-js] No computed object found on machine");
|
|
23450
23452
|
const Q = e.computed[X];
|
|
@@ -23456,7 +23458,7 @@ function zo(e, t = {}) {
|
|
|
23456
23458
|
scope: n,
|
|
23457
23459
|
computed: L
|
|
23458
23460
|
});
|
|
23459
|
-
}, N =
|
|
23461
|
+
}, N = co(() => ({
|
|
23460
23462
|
defaultValue: e.initialState({ prop: s }),
|
|
23461
23463
|
onChange(X, Q) {
|
|
23462
23464
|
var C, re, de, P;
|
|
@@ -23613,27 +23615,27 @@ const [sw, kc] = _r({
|
|
|
23613
23615
|
name: "PopoverContext",
|
|
23614
23616
|
hookName: "usePopoverContext",
|
|
23615
23617
|
providerName: "<PopoverProvider />"
|
|
23616
|
-
}), [Im,
|
|
23618
|
+
}), [Im, ps] = _r({
|
|
23617
23619
|
name: "PresenceContext",
|
|
23618
23620
|
hookName: "usePresenceContext",
|
|
23619
23621
|
providerName: "<PresenceProvider />"
|
|
23620
23622
|
}), wm = ft((e, t) => {
|
|
23621
|
-
const n = kc(), r =
|
|
23623
|
+
const n = kc(), r = ps(), i = nt(n.getContentProps(), r.getPresenceProps(), e);
|
|
23622
23624
|
return r.unmounted ? null : /* @__PURE__ */ y(Tt.div, q(x({}, i), { ref: Vo(r.ref, t) }));
|
|
23623
23625
|
});
|
|
23624
23626
|
wm.displayName = "PopoverContent";
|
|
23625
23627
|
const km = ft((e, t) => {
|
|
23626
|
-
const n = kc(), r =
|
|
23628
|
+
const n = kc(), r = ps(), i = nt(n.getPositionerProps(), e);
|
|
23627
23629
|
return r.unmounted ? null : /* @__PURE__ */ y(Tt.div, q(x({}, i), { ref: t }));
|
|
23628
23630
|
});
|
|
23629
23631
|
km.displayName = "PopoverPositioner";
|
|
23630
|
-
const
|
|
23632
|
+
const ms = () => (e, t) => t.reduce(
|
|
23631
23633
|
(n, r) => {
|
|
23632
23634
|
const [i, s] = n, o = r;
|
|
23633
23635
|
return s[o] !== void 0 && (i[o] = s[o]), delete s[o], [i, s];
|
|
23634
23636
|
},
|
|
23635
23637
|
[{}, x({}, e)]
|
|
23636
|
-
), Rm = (e) =>
|
|
23638
|
+
), Rm = (e) => ms()(e, [
|
|
23637
23639
|
"immediate",
|
|
23638
23640
|
"lazyMount",
|
|
23639
23641
|
"onExitComplete",
|
|
@@ -23755,13 +23757,13 @@ var aw = {
|
|
|
23755
23757
|
return n({ type: "UNMOUNT", src: "visibilitychange" });
|
|
23756
23758
|
tt(() => {
|
|
23757
23759
|
var a, u;
|
|
23758
|
-
const o =
|
|
23760
|
+
const o = xs(t.get("styles"));
|
|
23759
23761
|
e.set("unmountAnimationName", o), o === "none" || o === e.get("prevAnimationName") || ((a = t.get("styles")) == null ? void 0 : a.display) === "none" || ((u = t.get("styles")) == null ? void 0 : u.animationDuration) === "0s" ? n({ type: "UNMOUNT", src: "presence.changed" }) : n({ type: "UNMOUNT.SUSPEND" });
|
|
23760
23762
|
});
|
|
23761
23763
|
},
|
|
23762
23764
|
setPrevAnimationName: ({ context: e, refs: t }) => {
|
|
23763
23765
|
tt(() => {
|
|
23764
|
-
e.set("prevAnimationName",
|
|
23766
|
+
e.set("prevAnimationName", xs(t.get("styles")));
|
|
23765
23767
|
});
|
|
23766
23768
|
},
|
|
23767
23769
|
clearPrevAnimationName: ({ context: e }) => {
|
|
@@ -23774,13 +23776,13 @@ var aw = {
|
|
|
23774
23776
|
if (!i) return;
|
|
23775
23777
|
const s = (u) => {
|
|
23776
23778
|
var l, d, p;
|
|
23777
|
-
((p = (d = (l = u.composedPath) == null ? void 0 : l.call(u)) == null ? void 0 : d[0]) != null ? p : u.target) === i && e.set("prevAnimationName",
|
|
23779
|
+
((p = (d = (l = u.composedPath) == null ? void 0 : l.call(u)) == null ? void 0 : d[0]) != null ? p : u.target) === i && e.set("prevAnimationName", xs(t.get("styles")));
|
|
23778
23780
|
}, o = (u) => {
|
|
23779
|
-
const c =
|
|
23781
|
+
const c = xs(t.get("styles"));
|
|
23780
23782
|
Qt(u) === i && c === e.get("unmountAnimationName") && !r("present") && n({ type: "UNMOUNT", src: "animationend" });
|
|
23781
23783
|
};
|
|
23782
23784
|
i.addEventListener("animationstart", s), i.addEventListener("animationcancel", o), i.addEventListener("animationend", o);
|
|
23783
|
-
const a =
|
|
23785
|
+
const a = uo(i, { animationFillMode: "forwards" });
|
|
23784
23786
|
return () => {
|
|
23785
23787
|
i.removeEventListener("animationstart", s), i.removeEventListener("animationcancel", o), i.removeEventListener("animationend", o), Om(() => a());
|
|
23786
23788
|
};
|
|
@@ -23788,7 +23790,7 @@ var aw = {
|
|
|
23788
23790
|
}
|
|
23789
23791
|
}
|
|
23790
23792
|
};
|
|
23791
|
-
function
|
|
23793
|
+
function xs(e) {
|
|
23792
23794
|
return (e == null ? void 0 : e.animationName) || "none";
|
|
23793
23795
|
}
|
|
23794
23796
|
ai()(["onExitComplete", "present", "immediate"]);
|
|
@@ -23849,7 +23851,7 @@ var ir = (e, t = []) => ({
|
|
|
23849
23851
|
{}
|
|
23850
23852
|
)
|
|
23851
23853
|
}), Pr = (e) => e.replace(/([A-Z])([A-Z])/g, "$1-$2").replace(/([a-z])([A-Z])/g, "$1-$2").replace(/[\s_]+/g, "-").toLowerCase(), lw = (e) => e.length === 0;
|
|
23852
|
-
const dw = ["top", "right", "bottom", "left"], Vn = Math.min, xn = Math.max,
|
|
23854
|
+
const dw = ["top", "right", "bottom", "left"], Vn = Math.min, xn = Math.max, lo = Math.round, Is = Math.floor, hn = (e) => ({
|
|
23853
23855
|
x: e,
|
|
23854
23856
|
y: e
|
|
23855
23857
|
}), fw = {
|
|
@@ -23887,10 +23889,10 @@ function hw(e, t, n) {
|
|
|
23887
23889
|
n === void 0 && (n = !1);
|
|
23888
23890
|
const r = ui(e), i = vc(e), s = Dc(i);
|
|
23889
23891
|
let o = i === "x" ? r === (n ? "end" : "start") ? "right" : "left" : r === "start" ? "bottom" : "top";
|
|
23890
|
-
return t.reference[s] > t.floating[s] && (o =
|
|
23892
|
+
return t.reference[s] > t.floating[s] && (o = fo(o)), [o, fo(o)];
|
|
23891
23893
|
}
|
|
23892
23894
|
function pw(e) {
|
|
23893
|
-
const t =
|
|
23895
|
+
const t = fo(e);
|
|
23894
23896
|
return [yu(e), t, yu(t)];
|
|
23895
23897
|
}
|
|
23896
23898
|
function yu(e) {
|
|
@@ -23914,7 +23916,7 @@ function bw(e, t, n, r) {
|
|
|
23914
23916
|
let s = Ew(qn(e), n === "start", r);
|
|
23915
23917
|
return i && (s = s.map((o) => o + "-" + i), t && (s = s.concat(s.map(yu)))), s;
|
|
23916
23918
|
}
|
|
23917
|
-
function
|
|
23919
|
+
function fo(e) {
|
|
23918
23920
|
const t = qn(e);
|
|
23919
23921
|
return fw[t] + e.slice(t.length);
|
|
23920
23922
|
}
|
|
@@ -23935,7 +23937,7 @@ function Dm(e) {
|
|
|
23935
23937
|
left: e
|
|
23936
23938
|
};
|
|
23937
23939
|
}
|
|
23938
|
-
function
|
|
23940
|
+
function ho(e) {
|
|
23939
23941
|
const {
|
|
23940
23942
|
x: t,
|
|
23941
23943
|
y: n,
|
|
@@ -24011,7 +24013,7 @@ function yw(e, t) {
|
|
|
24011
24013
|
elementContext: d = "floating",
|
|
24012
24014
|
altBoundary: p = !1,
|
|
24013
24015
|
padding: h = 0
|
|
24014
|
-
} = kn(t, e), m = Dm(h), S = a[p ? d === "floating" ? "reference" : "floating" : d], g =
|
|
24016
|
+
} = kn(t, e), m = Dm(h), S = a[p ? d === "floating" ? "reference" : "floating" : d], g = ho(yield s.getClippingRect({
|
|
24015
24017
|
element: (n = yield s.isElement == null ? void 0 : s.isElement(S)) == null || n ? S : S.contextElement || (yield s.getDocumentElement == null ? void 0 : s.getDocumentElement(a.floating)),
|
|
24016
24018
|
boundary: c,
|
|
24017
24019
|
rootBoundary: l,
|
|
@@ -24024,7 +24026,7 @@ function yw(e, t) {
|
|
|
24024
24026
|
} : o.reference, T = yield s.getOffsetParent == null ? void 0 : s.getOffsetParent(a.floating), k = (yield s.isElement == null ? void 0 : s.isElement(T)) && (yield s.getScale == null ? void 0 : s.getScale(T)) || {
|
|
24025
24027
|
x: 1,
|
|
24026
24028
|
y: 1
|
|
24027
|
-
}, L =
|
|
24029
|
+
}, L = ho(s.convertOffsetParentRelativeRectToViewportRelativeRect ? yield s.convertOffsetParentRelativeRectToViewportRelativeRect({
|
|
24028
24030
|
elements: a,
|
|
24029
24031
|
rect: b,
|
|
24030
24032
|
offsetParent: T,
|
|
@@ -24167,7 +24169,7 @@ const _w = 50, Sw = (e, t, n) => _e(null, null, function* () {
|
|
|
24167
24169
|
]);
|
|
24168
24170
|
if ((r = o.arrow) != null && r.alignmentOffset)
|
|
24169
24171
|
return {};
|
|
24170
|
-
const b = qn(s), T = ln(u), k = qn(u) === u, L = yield c.isRTL == null ? void 0 : c.isRTL(l.floating), N = h || (k || !S ? [
|
|
24172
|
+
const b = qn(s), T = ln(u), k = qn(u) === u, L = yield c.isRTL == null ? void 0 : c.isRTL(l.floating), N = h || (k || !S ? [fo(u)] : pw(u)), D = E !== "none";
|
|
24171
24173
|
!h && D && N.push(...bw(u, S, E, L));
|
|
24172
24174
|
const H = [u, ...N], W = yield c.detectOverflow(n, g), R = [];
|
|
24173
24175
|
let $ = ((i = o.flip) == null ? void 0 : i.overflows) || [];
|
|
@@ -24493,7 +24495,7 @@ function mn(e) {
|
|
|
24493
24495
|
function sf(e) {
|
|
24494
24496
|
return !qo() || typeof ShadowRoot == "undefined" ? !1 : e instanceof ShadowRoot || e instanceof Ht(e).ShadowRoot;
|
|
24495
24497
|
}
|
|
24496
|
-
function
|
|
24498
|
+
function gs(e) {
|
|
24497
24499
|
const {
|
|
24498
24500
|
overflow: t,
|
|
24499
24501
|
overflowX: n,
|
|
@@ -24566,7 +24568,7 @@ function Yn(e) {
|
|
|
24566
24568
|
}
|
|
24567
24569
|
function Fm(e) {
|
|
24568
24570
|
const t = Yn(e);
|
|
24569
|
-
return jr(t) ? (e.ownerDocument || e).body : mn(t) &&
|
|
24571
|
+
return jr(t) ? (e.ownerDocument || e).body : mn(t) && gs(t) ? t : Fm(t);
|
|
24570
24572
|
}
|
|
24571
24573
|
function Xi(e, t, n) {
|
|
24572
24574
|
var r;
|
|
@@ -24574,7 +24576,7 @@ function Xi(e, t, n) {
|
|
|
24574
24576
|
const i = Fm(e), s = i === ((r = e.ownerDocument) == null ? void 0 : r.body), o = Ht(i);
|
|
24575
24577
|
if (s) {
|
|
24576
24578
|
const a = _u(o);
|
|
24577
|
-
return t.concat(o, o.visualViewport || [],
|
|
24579
|
+
return t.concat(o, o.visualViewport || [], gs(i) ? i : [], a && n ? Xi(a) : []);
|
|
24578
24580
|
} else
|
|
24579
24581
|
return t.concat(i, Xi(i, [], n));
|
|
24580
24582
|
}
|
|
@@ -24584,7 +24586,7 @@ function _u(e) {
|
|
|
24584
24586
|
function Bm(e) {
|
|
24585
24587
|
const t = tn(e);
|
|
24586
24588
|
let n = parseFloat(t.width) || 0, r = parseFloat(t.height) || 0;
|
|
24587
|
-
const i = mn(e), s = i ? e.offsetWidth : n, o = i ? e.offsetHeight : r, a =
|
|
24589
|
+
const i = mn(e), s = i ? e.offsetWidth : n, o = i ? e.offsetHeight : r, a = lo(n) !== s || lo(r) !== o;
|
|
24588
24590
|
return a && (n = s, r = o), {
|
|
24589
24591
|
width: n,
|
|
24590
24592
|
height: r,
|
|
@@ -24603,7 +24605,7 @@ function Ur(e) {
|
|
|
24603
24605
|
height: i,
|
|
24604
24606
|
$: s
|
|
24605
24607
|
} = Bm(t);
|
|
24606
|
-
let o = (s ?
|
|
24608
|
+
let o = (s ? lo(n.width) : n.width) / r, a = (s ? lo(n.height) : n.height) / i;
|
|
24607
24609
|
return (!o || !Number.isFinite(o)) && (o = 1), (!a || !Number.isFinite(a)) && (a = 1), {
|
|
24608
24610
|
x: o,
|
|
24609
24611
|
y: a
|
|
@@ -24635,7 +24637,7 @@ function Er(e, t, n, r) {
|
|
|
24635
24637
|
u *= S.x, c *= S.y, l *= S.x, d *= S.y, u += T, c += k, m = Ht(E), E = _u(m);
|
|
24636
24638
|
}
|
|
24637
24639
|
}
|
|
24638
|
-
return
|
|
24640
|
+
return ho({
|
|
24639
24641
|
width: l,
|
|
24640
24642
|
height: d,
|
|
24641
24643
|
x: u,
|
|
@@ -24668,7 +24670,7 @@ function Fw(e) {
|
|
|
24668
24670
|
scrollTop: 0
|
|
24669
24671
|
}, c = hn(1);
|
|
24670
24672
|
const l = hn(0), d = mn(r);
|
|
24671
|
-
if ((d || !d && !s) && ((ci(r) !== "body" ||
|
|
24673
|
+
if ((d || !d && !s) && ((ci(r) !== "body" || gs(o)) && (u = jo(r)), mn(r))) {
|
|
24672
24674
|
const h = Er(r);
|
|
24673
24675
|
c = Ur(r), l.x = h.x + r.clientLeft, l.y = h.y + r.clientTop;
|
|
24674
24676
|
}
|
|
@@ -24742,7 +24744,7 @@ function af(e, t, n) {
|
|
|
24742
24744
|
height: t.height
|
|
24743
24745
|
};
|
|
24744
24746
|
}
|
|
24745
|
-
return
|
|
24747
|
+
return ho(r);
|
|
24746
24748
|
}
|
|
24747
24749
|
function $m(e, t) {
|
|
24748
24750
|
const n = Yn(e);
|
|
@@ -24757,7 +24759,7 @@ function Vw(e, t) {
|
|
|
24757
24759
|
let o = s ? Yn(e) : e;
|
|
24758
24760
|
for (; en(o) && !jr(o); ) {
|
|
24759
24761
|
const a = tn(o), u = Mc(o);
|
|
24760
|
-
!u && a.position === "fixed" && (i = null), (s ? !u && !i : !u && a.position === "static" && !!i && $w.has(i.position) ||
|
|
24762
|
+
!u && a.position === "fixed" && (i = null), (s ? !u && !i : !u && a.position === "static" && !!i && $w.has(i.position) || gs(o) && !u && $m(e, o)) ? r = r.filter((l) => l !== o) : i = a, o = Yn(o);
|
|
24761
24763
|
}
|
|
24762
24764
|
return t.set(e, r), r;
|
|
24763
24765
|
}
|
|
@@ -24800,7 +24802,7 @@ function jw(e, t, n) {
|
|
|
24800
24802
|
u.x = Go(i);
|
|
24801
24803
|
}
|
|
24802
24804
|
if (r || !r && !s)
|
|
24803
|
-
if ((ci(t) !== "body" ||
|
|
24805
|
+
if ((ci(t) !== "body" || gs(i)) && (a = jo(t)), r) {
|
|
24804
24806
|
const h = Er(t, !0, s, t);
|
|
24805
24807
|
u.x = h.x + t.clientLeft, u.y = h.y + t.clientTop;
|
|
24806
24808
|
} else i && c();
|
|
@@ -24891,7 +24893,7 @@ function Kw(e, t) {
|
|
|
24891
24893
|
} = c;
|
|
24892
24894
|
if (a || t(), !p || !h)
|
|
24893
24895
|
return;
|
|
24894
|
-
const m =
|
|
24896
|
+
const m = Is(d), E = Is(i.clientWidth - (l + p)), S = Is(i.clientHeight - (d + h)), g = Is(l), T = {
|
|
24895
24897
|
rootMargin: -m + "px " + -E + "px " + -S + "px " + -g + "px",
|
|
24896
24898
|
threshold: xn(0, Vn(1, u)) || 1
|
|
24897
24899
|
};
|
|
@@ -25214,14 +25216,14 @@ function A3(e = {}) {
|
|
|
25214
25216
|
}
|
|
25215
25217
|
};
|
|
25216
25218
|
}
|
|
25217
|
-
var xr = /* @__PURE__ */ new WeakMap(),
|
|
25219
|
+
var xr = /* @__PURE__ */ new WeakMap(), ws = /* @__PURE__ */ new WeakMap(), ks = {}, Ra = 0, qm = (e) => e && (e.host || qm(e.parentNode)), C3 = (e, t) => t.map((n) => {
|
|
25218
25220
|
if (e.contains(n)) return n;
|
|
25219
25221
|
const r = qm(n);
|
|
25220
25222
|
return r && e.contains(r) ? r : (console.error("[zag-js > ariaHidden] target", n, "in not contained inside", e, ". Doing nothing"), null);
|
|
25221
25223
|
}).filter((n) => !!n), N3 = /* @__PURE__ */ new Set(["script", "output", "status", "next-route-announcer"]), O3 = (e) => N3.has(e.localName) || e.role === "status" || e.hasAttribute("aria-live") ? !0 : e.matches("[data-live-announcer]"), P3 = (e, t) => {
|
|
25222
25224
|
const { parentNode: n, markerName: r, controlAttribute: i, followControlledElements: s = !0 } = t, o = C3(n, Array.isArray(e) ? e : [e]);
|
|
25223
|
-
|
|
25224
|
-
const a =
|
|
25225
|
+
ks[r] || (ks[r] = /* @__PURE__ */ new WeakMap());
|
|
25226
|
+
const a = ks[r], u = [], c = /* @__PURE__ */ new Set(), l = new Set(o), d = (h) => {
|
|
25225
25227
|
!h || c.has(h) || (c.add(h), d(h.parentNode));
|
|
25226
25228
|
};
|
|
25227
25229
|
o.forEach((h) => {
|
|
@@ -25237,7 +25239,7 @@ var xr = /* @__PURE__ */ new WeakMap(), Is = /* @__PURE__ */ new WeakMap(), ws =
|
|
|
25237
25239
|
try {
|
|
25238
25240
|
if (O3(m)) return;
|
|
25239
25241
|
const S = m.getAttribute(i) === "true", g = (xr.get(m) || 0) + 1, b = (a.get(m) || 0) + 1;
|
|
25240
|
-
xr.set(m, g), a.set(m, b), u.push(m), g === 1 && S &&
|
|
25242
|
+
xr.set(m, g), a.set(m, b), u.push(m), g === 1 && S && ws.set(m, !0), b === 1 && m.setAttribute(r, ""), S || m.setAttribute(i, "true");
|
|
25241
25243
|
} catch (E) {
|
|
25242
25244
|
console.error("[zag-js > ariaHidden] cannot operate on ", m, E);
|
|
25243
25245
|
}
|
|
@@ -25246,8 +25248,8 @@ var xr = /* @__PURE__ */ new WeakMap(), Is = /* @__PURE__ */ new WeakMap(), ws =
|
|
|
25246
25248
|
return p(n), c.clear(), Ra++, () => {
|
|
25247
25249
|
u.forEach((h) => {
|
|
25248
25250
|
const m = xr.get(h) - 1, E = a.get(h) - 1;
|
|
25249
|
-
xr.set(h, m), a.set(h, E), m || (
|
|
25250
|
-
}), Ra--, Ra || (xr = /* @__PURE__ */ new WeakMap(), xr = /* @__PURE__ */ new WeakMap(),
|
|
25251
|
+
xr.set(h, m), a.set(h, E), m || (ws.has(h) || h.removeAttribute(i), ws.delete(h)), E || h.removeAttribute(r);
|
|
25252
|
+
}), Ra--, Ra || (xr = /* @__PURE__ */ new WeakMap(), xr = /* @__PURE__ */ new WeakMap(), ws = /* @__PURE__ */ new WeakMap(), ks = {});
|
|
25251
25253
|
};
|
|
25252
25254
|
}, x3 = (e) => (Array.isArray(e) ? e[0] : e).ownerDocument.body, I3 = (e, t = x3(e), n = "data-aria-hidden", r = !0) => {
|
|
25253
25255
|
if (t)
|
|
@@ -25572,7 +25574,7 @@ function z3(e, t) {
|
|
|
25572
25574
|
},
|
|
25573
25575
|
{ timeout: 1e3 }
|
|
25574
25576
|
);
|
|
25575
|
-
s.then((a) => r.push(
|
|
25577
|
+
s.then((a) => r.push(uo(a, { pointerEvents: "auto" }))), r.push(o);
|
|
25576
25578
|
}), () => {
|
|
25577
25579
|
Vt.hasPointerBlockingLayer() || (queueMicrotask(() => {
|
|
25578
25580
|
n.body.style.pointerEvents = Ef, n.body.removeAttribute("data-inert"), n.body.style.length === 0 && n.body.removeAttribute("style");
|
|
@@ -26000,7 +26002,7 @@ function Xm(e) {
|
|
|
26000
26002
|
const m = {
|
|
26001
26003
|
overflow: "hidden"
|
|
26002
26004
|
};
|
|
26003
|
-
return !o && a > 0 && (m[c] = `${a}px`),
|
|
26005
|
+
return !o && a > 0 && (m[c] = `${a}px`), uo(i, m);
|
|
26004
26006
|
}, d = () => {
|
|
26005
26007
|
var L, N;
|
|
26006
26008
|
const { scrollX: m, scrollY: E, visualViewport: S } = n, g = (L = S == null ? void 0 : S.offsetLeft) != null ? L : 0, b = (N = S == null ? void 0 : S.offsetTop) != null ? N : 0, T = {
|
|
@@ -26011,7 +26013,7 @@ function Xm(e) {
|
|
|
26011
26013
|
right: "0"
|
|
26012
26014
|
};
|
|
26013
26015
|
!o && a > 0 && (T[c] = `${a}px`);
|
|
26014
|
-
const k =
|
|
26016
|
+
const k = uo(i, T);
|
|
26015
26017
|
return () => {
|
|
26016
26018
|
k == null || k(), n.scrollTo({ left: m, top: E, behavior: "instant" });
|
|
26017
26019
|
};
|
|
@@ -26416,7 +26418,7 @@ ai()([
|
|
|
26416
26418
|
"portalled",
|
|
26417
26419
|
"positioning"
|
|
26418
26420
|
]);
|
|
26419
|
-
const [
|
|
26421
|
+
const [I4, Wo] = _r({
|
|
26420
26422
|
name: "EnvironmentContext",
|
|
26421
26423
|
hookName: "useEnvironmentContext",
|
|
26422
26424
|
providerName: "<EnvironmentProvider />",
|
|
@@ -26426,14 +26428,14 @@ const [w4, Wo] = _r({
|
|
|
26426
26428
|
getDocument: () => document,
|
|
26427
26429
|
getWindow: () => window
|
|
26428
26430
|
}
|
|
26429
|
-
}), [
|
|
26431
|
+
}), [w4, Hc] = _r({
|
|
26430
26432
|
name: "LocaleContext",
|
|
26431
26433
|
hookName: "useLocaleContext",
|
|
26432
26434
|
providerName: "<LocaleProvider />",
|
|
26433
26435
|
strict: !1,
|
|
26434
26436
|
defaultValue: { dir: "ltr", locale: "en-US" }
|
|
26435
26437
|
}), ik = (e) => {
|
|
26436
|
-
const t =
|
|
26438
|
+
const t = Ji(), { getRootNode: n } = Wo(), { dir: r } = Hc(), i = x({
|
|
26437
26439
|
id: t,
|
|
26438
26440
|
dir: r,
|
|
26439
26441
|
getRootNode: n
|
|
@@ -26443,7 +26445,7 @@ const [w4, Wo] = _r({
|
|
|
26443
26445
|
const [t, o] = Rm(e), a = o, { children: n } = a, r = dt(a, ["children"]), i = ik(r), s = Rc(nt({ present: i.open }, t));
|
|
26444
26446
|
return /* @__PURE__ */ y(sw, { value: i, children: /* @__PURE__ */ y(Im, { value: s, children: n }) });
|
|
26445
26447
|
}, Zm = ft((e, t) => {
|
|
26446
|
-
const n = kc(), r =
|
|
26448
|
+
const n = kc(), r = ps(), i = nt(
|
|
26447
26449
|
q(x({}, n.getTriggerProps()), {
|
|
26448
26450
|
"aria-controls": r.unmounted ? void 0 : n.getTriggerProps()["aria-controls"]
|
|
26449
26451
|
}),
|
|
@@ -26530,7 +26532,7 @@ const [hk, Sr] = _r({
|
|
|
26530
26532
|
});
|
|
26531
26533
|
tg.displayName = "CarouselControl";
|
|
26532
26534
|
const ng = ft((e, t) => {
|
|
26533
|
-
const [n, r] =
|
|
26535
|
+
const [n, r] = ms()(e, ["readOnly", "index"]), i = Sr(), s = nt(i.getIndicatorProps(n), r);
|
|
26534
26536
|
return /* @__PURE__ */ y(Tt.button, q(x({}, s), { ref: t }));
|
|
26535
26537
|
});
|
|
26536
26538
|
ng.displayName = "CarouselIndicator";
|
|
@@ -26540,7 +26542,7 @@ const rg = ft((e, t) => {
|
|
|
26540
26542
|
});
|
|
26541
26543
|
rg.displayName = "CarouselIndicatorGroup";
|
|
26542
26544
|
const ig = ft((e, t) => {
|
|
26543
|
-
const [n, r] =
|
|
26545
|
+
const [n, r] = ms()(e, ["index", "snapAlign"]), i = Sr(), s = nt(i.getItemProps(n), r);
|
|
26544
26546
|
return /* @__PURE__ */ y(Tt.div, q(x({}, s), { ref: t }));
|
|
26545
26547
|
});
|
|
26546
26548
|
ig.displayName = "CarouselItem";
|
|
@@ -26657,7 +26659,7 @@ var Pf = (e) => [...new Set(e)], xf = (e, t) => (n) => Math.max(e, Math.min(t, n
|
|
|
26657
26659
|
}, Tk = (e, t) => {
|
|
26658
26660
|
var n, r, i;
|
|
26659
26661
|
return (i = (r = (n = e.ids) == null ? void 0 : n.item) == null ? void 0 : r.call(n, t)) != null ? i : `carousel:${e.id}:item:${t}`;
|
|
26660
|
-
},
|
|
26662
|
+
}, Xs = (e) => {
|
|
26661
26663
|
var t, n;
|
|
26662
26664
|
return (n = (t = e.ids) == null ? void 0 : t.itemGroup) != null ? n : `carousel:${e.id}:item-group`;
|
|
26663
26665
|
}, yk = (e) => {
|
|
@@ -26672,7 +26674,7 @@ var Pf = (e) => [...new Set(e)], xf = (e, t) => (n) => Math.max(e, Math.min(t, n
|
|
|
26672
26674
|
}, lg = (e, t) => {
|
|
26673
26675
|
var n, r, i;
|
|
26674
26676
|
return (i = (r = (n = e.ids) == null ? void 0 : n.indicator) == null ? void 0 : r.call(n, t)) != null ? i : `carousel:${e.id}:indicator:${t}`;
|
|
26675
|
-
}, wt = (e) => e.getById(
|
|
26677
|
+
}, wt = (e) => e.getById(Xs(e)), If = (e) => qI(wt(e), "[data-part=item]"), Ak = (e, t) => e.getById(lg(e, t)), wf = (e) => {
|
|
26676
26678
|
const t = wt(e);
|
|
26677
26679
|
if (!t) return;
|
|
26678
26680
|
const n = oi(t);
|
|
@@ -26730,7 +26732,7 @@ function Ck(e, t) {
|
|
|
26730
26732
|
},
|
|
26731
26733
|
getItemGroupProps() {
|
|
26732
26734
|
return t.element(q(x({}, An.itemGroup.attrs), {
|
|
26733
|
-
id:
|
|
26735
|
+
id: Xs(o),
|
|
26734
26736
|
"data-orientation": a("orientation"),
|
|
26735
26737
|
"data-dragging": kr(c),
|
|
26736
26738
|
dir: a("dir"),
|
|
@@ -26801,7 +26803,7 @@ function Ck(e, t) {
|
|
|
26801
26803
|
dir: a("dir"),
|
|
26802
26804
|
"aria-label": g.prevTrigger,
|
|
26803
26805
|
"data-orientation": a("orientation"),
|
|
26804
|
-
"aria-controls":
|
|
26806
|
+
"aria-controls": Xs(o),
|
|
26805
26807
|
onClick(b) {
|
|
26806
26808
|
b.defaultPrevented || s({ type: "PAGE.PREV", src: "trigger" });
|
|
26807
26809
|
}
|
|
@@ -26814,7 +26816,7 @@ function Ck(e, t) {
|
|
|
26814
26816
|
type: "button",
|
|
26815
26817
|
"aria-label": g.nextTrigger,
|
|
26816
26818
|
"data-orientation": a("orientation"),
|
|
26817
|
-
"aria-controls":
|
|
26819
|
+
"aria-controls": Xs(o),
|
|
26818
26820
|
disabled: !l,
|
|
26819
26821
|
onClick(b) {
|
|
26820
26822
|
b.defaultPrevented || s({ type: "PAGE.NEXT", src: "trigger" });
|
|
@@ -27316,14 +27318,14 @@ ai()([
|
|
|
27316
27318
|
ai()(["index", "readOnly"]);
|
|
27317
27319
|
ai()(["index", "snapAlign"]);
|
|
27318
27320
|
const Pk = (e) => {
|
|
27319
|
-
const t =
|
|
27321
|
+
const t = Ji(), { getRootNode: n } = Wo(), { dir: r } = Hc(), i = x({
|
|
27320
27322
|
id: t,
|
|
27321
27323
|
dir: r,
|
|
27322
27324
|
getRootNode: n
|
|
27323
27325
|
}, e), s = zo(Nk, i);
|
|
27324
27326
|
return Ck(s, wc);
|
|
27325
27327
|
}, dg = ft((e, t) => {
|
|
27326
|
-
const [n, r] =
|
|
27328
|
+
const [n, r] = ms()(e, [
|
|
27327
27329
|
"allowMouseDrag",
|
|
27328
27330
|
"autoplay",
|
|
27329
27331
|
"defaultPage",
|
|
@@ -27459,28 +27461,28 @@ const wk = 180, kk = (e) => {
|
|
|
27459
27461
|
name: "RenderStrategyContext",
|
|
27460
27462
|
hookName: "useRenderStrategyContext",
|
|
27461
27463
|
providerName: "<RenderStrategyPropsProvider />"
|
|
27462
|
-
}), vk = (e) =>
|
|
27464
|
+
}), vk = (e) => ms()(e, ["lazyMount", "unmountOnExit"]), [Mk, Es] = _r({
|
|
27463
27465
|
name: "DialogContext",
|
|
27464
27466
|
hookName: "useDialogContext",
|
|
27465
27467
|
providerName: "<DialogProvider />"
|
|
27466
27468
|
}), fg = ft((e, t) => {
|
|
27467
|
-
const n =
|
|
27469
|
+
const n = Es(), r = Dk(), i = Rc(q(x({}, r), { present: n.open })), s = nt(n.getBackdropProps(), i.getPresenceProps(), e);
|
|
27468
27470
|
return i.unmounted ? null : /* @__PURE__ */ y(Tt.div, q(x({}, s), { ref: Vo(i.ref, t) }));
|
|
27469
27471
|
});
|
|
27470
27472
|
fg.displayName = "DialogBackdrop";
|
|
27471
27473
|
const zc = ft((e, t) => {
|
|
27472
|
-
const n =
|
|
27474
|
+
const n = Es(), r = ps(), i = nt(n.getContentProps(), r.getPresenceProps(), e);
|
|
27473
27475
|
return r.unmounted ? null : /* @__PURE__ */ y(Tt.div, q(x({}, i), { ref: Vo(r.ref, t) }));
|
|
27474
27476
|
});
|
|
27475
27477
|
zc.displayName = "DialogContent";
|
|
27476
27478
|
const Vc = ft((e, t) => {
|
|
27477
|
-
const n =
|
|
27479
|
+
const n = Es(), r = nt(n.getDescriptionProps(), e);
|
|
27478
27480
|
return /* @__PURE__ */ y(Tt.div, q(x({}, r), { ref: t }));
|
|
27479
27481
|
});
|
|
27480
27482
|
Vc.displayName = "DialogDescription";
|
|
27481
27483
|
const qc = ft((e, t) => {
|
|
27482
|
-
const n =
|
|
27483
|
-
return
|
|
27484
|
+
const n = Es(), r = nt(n.getPositionerProps(), e);
|
|
27485
|
+
return ps().unmounted ? null : /* @__PURE__ */ y(Tt.div, q(x({}, r), { ref: t }));
|
|
27484
27486
|
});
|
|
27485
27487
|
qc.displayName = "DialogPositioner";
|
|
27486
27488
|
var Fk = ir("dialog").parts(
|
|
@@ -27512,7 +27514,7 @@ var Fk = ir("dialog").parts(
|
|
|
27512
27514
|
}, gg = (e) => {
|
|
27513
27515
|
var t, n;
|
|
27514
27516
|
return (n = (t = e.ids) == null ? void 0 : t.closeTrigger) != null ? n : `dialog:${e.id}:close`;
|
|
27515
|
-
},
|
|
27517
|
+
}, Rs = (e) => e.getById(Nu(e)), Bk = (e) => e.getById(hg(e)), Uk = (e) => e.getById(pg(e)), Hk = (e) => e.getById(mg(e)), $k = (e) => e.getById(Ou(e)), zk = (e) => e.getById(Pu(e)), Vk = (e) => e.getById(gg(e));
|
|
27516
27518
|
function qk(e, t) {
|
|
27517
27519
|
const { state: n, send: r, context: i, prop: s, scope: o } = e, a = s("aria-label"), u = n.matches("open");
|
|
27518
27520
|
return {
|
|
@@ -27683,7 +27685,7 @@ var Yk = {
|
|
|
27683
27685
|
},
|
|
27684
27686
|
effects: {
|
|
27685
27687
|
trackDismissableElement({ scope: e, send: t, prop: n }) {
|
|
27686
|
-
return Gm(() =>
|
|
27688
|
+
return Gm(() => Rs(e), {
|
|
27687
27689
|
type: "dialog",
|
|
27688
27690
|
defer: !0,
|
|
27689
27691
|
pointerBlocking: n("modal"),
|
|
@@ -27710,7 +27712,7 @@ var Yk = {
|
|
|
27710
27712
|
return Xm(e.getDoc());
|
|
27711
27713
|
},
|
|
27712
27714
|
trapFocus({ scope: e, prop: t }) {
|
|
27713
|
-
return t("trapFocus") ? Wm(() =>
|
|
27715
|
+
return t("trapFocus") ? Wm(() => Rs(e), {
|
|
27714
27716
|
preventScroll: !0,
|
|
27715
27717
|
returnFocusOnDeactivate: !!t("restoreFocus"),
|
|
27716
27718
|
initialFocus: t("initialFocusEl"),
|
|
@@ -27722,7 +27724,7 @@ var Yk = {
|
|
|
27722
27724
|
}) : void 0;
|
|
27723
27725
|
},
|
|
27724
27726
|
hideContentBelow({ scope: e, prop: t }) {
|
|
27725
|
-
return t("modal") ? Ym(() => [
|
|
27727
|
+
return t("modal") ? Ym(() => [Rs(e)], { defer: !0 }) : void 0;
|
|
27726
27728
|
}
|
|
27727
27729
|
},
|
|
27728
27730
|
actions: {
|
|
@@ -27736,7 +27738,7 @@ var Yk = {
|
|
|
27736
27738
|
},
|
|
27737
27739
|
syncZIndex({ scope: e }) {
|
|
27738
27740
|
tt(() => {
|
|
27739
|
-
const t =
|
|
27741
|
+
const t = Rs(e);
|
|
27740
27742
|
if (!t) return;
|
|
27741
27743
|
const n = si(t);
|
|
27742
27744
|
[Bk(e), Uk(e)].forEach((i) => {
|
|
@@ -27789,7 +27791,7 @@ ai()([
|
|
|
27789
27791
|
"trapFocus"
|
|
27790
27792
|
]);
|
|
27791
27793
|
const jk = (e) => {
|
|
27792
|
-
const t =
|
|
27794
|
+
const t = Ji(), { getRootNode: n } = Wo(), { dir: r } = Hc(), i = x({
|
|
27793
27795
|
id: t,
|
|
27794
27796
|
getRootNode: n,
|
|
27795
27797
|
dir: r
|
|
@@ -27799,61 +27801,75 @@ const jk = (e) => {
|
|
|
27799
27801
|
const [t, a] = Rm(e), u = a, { children: n } = u, r = dt(u, ["children"]), [i] = vk(t), s = jk(r), o = Rc(nt({ present: s.open }, t));
|
|
27800
27802
|
return /* @__PURE__ */ y(Mk, { value: s, children: /* @__PURE__ */ y(Lk, { value: i, children: /* @__PURE__ */ y(Im, { value: o, children: n }) }) });
|
|
27801
27803
|
}, bg = ft((e, t) => {
|
|
27802
|
-
const n =
|
|
27804
|
+
const n = Es(), r = nt(n.getTitleProps(), e);
|
|
27803
27805
|
return /* @__PURE__ */ y(Tt.h2, q(x({}, r), { ref: t }));
|
|
27804
27806
|
});
|
|
27805
27807
|
bg.displayName = "DialogTitle";
|
|
27806
27808
|
const Gk = ({ children: e }) => {
|
|
27807
|
-
const
|
|
27809
|
+
const t = Ji(), n = `overflow-panel-${t}`, r = `overflow-trigger-${t}`, [i, s] = xe(!1), o = ze(
|
|
27808
27810
|
() => ({
|
|
27809
|
-
toggleMenu: () =>
|
|
27810
|
-
closeMenu: () =>
|
|
27811
|
+
toggleMenu: () => s((u) => !u),
|
|
27812
|
+
closeMenu: () => {
|
|
27813
|
+
var c;
|
|
27814
|
+
const u = document.getElementById(n);
|
|
27815
|
+
u != null && u.contains(document.activeElement) && ((c = document.getElementById(r)) == null || c.focus({ preventScroll: !0 })), s(!1);
|
|
27816
|
+
}
|
|
27811
27817
|
}),
|
|
27812
|
-
[]
|
|
27813
|
-
),
|
|
27814
|
-
return /* @__PURE__ */ y(Ac.Provider, { value:
|
|
27818
|
+
[n, r]
|
|
27819
|
+
), a = ze(() => ({ isOpen: i, panelId: n, triggerId: r }), [i, n, r]);
|
|
27820
|
+
return /* @__PURE__ */ y(Ac.Provider, { value: o, children: /* @__PURE__ */ y(um.Provider, { value: a, children: e }) });
|
|
27815
27821
|
}, Tg = () => Nt(um), yg = () => {
|
|
27816
27822
|
const e = Nt(Ac);
|
|
27817
27823
|
if (!e)
|
|
27818
27824
|
throw new Error("useOverflowMenuDispatch must be used within an OverflowMenuProvider");
|
|
27819
27825
|
return e;
|
|
27820
|
-
}, Wk =
|
|
27821
|
-
const { isOpen: n } = Tg(), { closeMenu:
|
|
27826
|
+
}, Wk = ({ componentType: e, children: t }) => {
|
|
27827
|
+
const { isOpen: n, panelId: r, triggerId: i } = Tg(), { closeMenu: s } = yg(), { globalClassName: o } = Ce(), a = Fe(null);
|
|
27822
27828
|
return we(() => {
|
|
27829
|
+
var d;
|
|
27823
27830
|
if (!n) return;
|
|
27824
|
-
const
|
|
27825
|
-
|
|
27826
|
-
|
|
27827
|
-
|
|
27828
|
-
|
|
27831
|
+
const u = a.current;
|
|
27832
|
+
(d = u == null ? void 0 : u.querySelector("button:not(:disabled)")) == null || d.focus();
|
|
27833
|
+
const c = (p) => {
|
|
27834
|
+
p.key === "Escape" && (p.preventDefault(), p.stopPropagation(), s());
|
|
27835
|
+
}, l = (p) => {
|
|
27836
|
+
var m;
|
|
27837
|
+
const h = p.target;
|
|
27838
|
+
(m = document.getElementById(i)) != null && m.contains(h) || a.current && !a.current.contains(h) && s();
|
|
27829
27839
|
};
|
|
27830
|
-
return
|
|
27831
|
-
|
|
27840
|
+
return u == null || u.addEventListener("keydown", c), document.addEventListener("mousedown", l), () => {
|
|
27841
|
+
u == null || u.removeEventListener("keydown", c), document.removeEventListener("mousedown", l);
|
|
27832
27842
|
};
|
|
27833
|
-
}, [n,
|
|
27843
|
+
}, [n, s, i]), n ? /* @__PURE__ */ y(
|
|
27834
27844
|
"div",
|
|
27835
27845
|
{
|
|
27836
|
-
ref:
|
|
27846
|
+
ref: a,
|
|
27847
|
+
id: r,
|
|
27848
|
+
role: "group",
|
|
27849
|
+
"aria-label": "More options",
|
|
27837
27850
|
className: v(
|
|
27838
27851
|
`${I}-overflow-panel`,
|
|
27839
|
-
|
|
27852
|
+
o,
|
|
27840
27853
|
`cim-${e}-component`
|
|
27841
27854
|
),
|
|
27842
27855
|
children: t
|
|
27843
27856
|
}
|
|
27844
27857
|
) : null;
|
|
27845
|
-
},
|
|
27846
|
-
const { toggleMenu: n } = yg(), { isOpen: r } = Tg(), { globalClassName:
|
|
27858
|
+
}, Xk = ({ componentType: e, className: t }) => {
|
|
27859
|
+
const { toggleMenu: n } = yg(), { isOpen: r, panelId: i, triggerId: s } = Tg(), { globalClassName: o } = Ce();
|
|
27847
27860
|
return /* @__PURE__ */ y(
|
|
27848
27861
|
"button",
|
|
27849
27862
|
{
|
|
27863
|
+
type: "button",
|
|
27864
|
+
id: s,
|
|
27865
|
+
"aria-controls": r ? i : void 0,
|
|
27850
27866
|
"aria-label": `Overflow menu for ${e}`,
|
|
27851
27867
|
title: "More options",
|
|
27852
27868
|
"aria-expanded": r,
|
|
27853
27869
|
className: v(
|
|
27854
27870
|
`${I}-overflow-menu-button-trigger`,
|
|
27855
27871
|
`${I}-icon-button`,
|
|
27856
|
-
|
|
27872
|
+
o,
|
|
27857
27873
|
t,
|
|
27858
27874
|
`cim-${e}-component`
|
|
27859
27875
|
),
|
|
@@ -27864,7 +27880,7 @@ const Gk = ({ children: e }) => {
|
|
|
27864
27880
|
}, Yc = () => {
|
|
27865
27881
|
const { status: e, entryType: t } = Xt(), { messages: n } = $t(), r = t === "ask_cim", i = !!(n && n.length > 0), s = !!e.isOpen;
|
|
27866
27882
|
return r && s || !r && s && i;
|
|
27867
|
-
},
|
|
27883
|
+
}, Kk = ({
|
|
27868
27884
|
componentType: e,
|
|
27869
27885
|
isIcon: t
|
|
27870
27886
|
}) => {
|
|
@@ -27901,7 +27917,7 @@ const Gk = ({ children: e }) => {
|
|
|
27901
27917
|
]
|
|
27902
27918
|
}
|
|
27903
27919
|
);
|
|
27904
|
-
},
|
|
27920
|
+
}, Qk = ({
|
|
27905
27921
|
componentType: e,
|
|
27906
27922
|
globalClassName: t,
|
|
27907
27923
|
controls: n,
|
|
@@ -27911,7 +27927,7 @@ const Gk = ({ children: e }) => {
|
|
|
27911
27927
|
showOverflowMenu: o,
|
|
27912
27928
|
showPrimaryToggle: a
|
|
27913
27929
|
}) => {
|
|
27914
|
-
const u = e === "modal" ?
|
|
27930
|
+
const u = e === "modal" ? Kk : Sg;
|
|
27915
27931
|
return /* @__PURE__ */ y("div", { className: v(t, `${I}-${e}-controls`), children: n != null ? /* @__PURE__ */ te(Bt, { children: [
|
|
27916
27932
|
n,
|
|
27917
27933
|
r && /* @__PURE__ */ y(
|
|
@@ -27923,7 +27939,7 @@ const Gk = ({ children: e }) => {
|
|
|
27923
27939
|
}
|
|
27924
27940
|
)
|
|
27925
27941
|
] }) : /* @__PURE__ */ te(Bt, { children: [
|
|
27926
|
-
o && /* @__PURE__ */ y(
|
|
27942
|
+
o && /* @__PURE__ */ y(Xk, { componentType: e }),
|
|
27927
27943
|
a && /* @__PURE__ */ y(u, { componentType: e, isIcon: !0 }),
|
|
27928
27944
|
r && /* @__PURE__ */ y(
|
|
27929
27945
|
tu,
|
|
@@ -27934,7 +27950,7 @@ const Gk = ({ children: e }) => {
|
|
|
27934
27950
|
}
|
|
27935
27951
|
)
|
|
27936
27952
|
] }) });
|
|
27937
|
-
},
|
|
27953
|
+
}, Jk = ({
|
|
27938
27954
|
componentType: e,
|
|
27939
27955
|
isIcon: t
|
|
27940
27956
|
}) => {
|
|
@@ -27970,7 +27986,7 @@ const Gk = ({ children: e }) => {
|
|
|
27970
27986
|
]
|
|
27971
27987
|
}
|
|
27972
27988
|
);
|
|
27973
|
-
},
|
|
27989
|
+
}, Zk = ({
|
|
27974
27990
|
componentType: e,
|
|
27975
27991
|
isIcon: t
|
|
27976
27992
|
}) => {
|
|
@@ -28006,7 +28022,7 @@ const Gk = ({ children: e }) => {
|
|
|
28006
28022
|
]
|
|
28007
28023
|
}
|
|
28008
28024
|
);
|
|
28009
|
-
},
|
|
28025
|
+
}, eR = ({
|
|
28010
28026
|
componentType: e,
|
|
28011
28027
|
controls: t,
|
|
28012
28028
|
showOverflowMenu: n,
|
|
@@ -28018,19 +28034,19 @@ const Gk = ({ children: e }) => {
|
|
|
28018
28034
|
onClearChat: u,
|
|
28019
28035
|
onEndConversation: c,
|
|
28020
28036
|
onDownloadTranscript: l
|
|
28021
|
-
}) => t != null || !n ? null : /* @__PURE__ */ te(
|
|
28022
|
-
r && /* @__PURE__ */ y(e === "modal" ?
|
|
28023
|
-
i && /* @__PURE__ */ y(
|
|
28037
|
+
}) => t != null || !n ? null : /* @__PURE__ */ te(Wk, { componentType: e, children: [
|
|
28038
|
+
r && /* @__PURE__ */ y(e === "modal" ? Jk : Zk, { componentType: e }),
|
|
28039
|
+
i && /* @__PURE__ */ y(sR, { componentType: e }),
|
|
28024
28040
|
s && /* @__PURE__ */ y(lm, { componentType: e, onClearChat: u }),
|
|
28025
28041
|
o && c && /* @__PURE__ */ y(
|
|
28026
|
-
|
|
28042
|
+
nR,
|
|
28027
28043
|
{
|
|
28028
28044
|
componentType: e,
|
|
28029
28045
|
onEndConversation: c
|
|
28030
28046
|
}
|
|
28031
28047
|
),
|
|
28032
28048
|
a && l && /* @__PURE__ */ y(
|
|
28033
|
-
|
|
28049
|
+
tR,
|
|
28034
28050
|
{
|
|
28035
28051
|
componentType: e,
|
|
28036
28052
|
onDownloadTranscript: l
|
|
@@ -28115,7 +28131,7 @@ const Gk = ({ children: e }) => {
|
|
|
28115
28131
|
}
|
|
28116
28132
|
),
|
|
28117
28133
|
/* @__PURE__ */ y(
|
|
28118
|
-
|
|
28134
|
+
Qk,
|
|
28119
28135
|
{
|
|
28120
28136
|
componentType: e,
|
|
28121
28137
|
globalClassName: c,
|
|
@@ -28131,7 +28147,7 @@ const Gk = ({ children: e }) => {
|
|
|
28131
28147
|
}
|
|
28132
28148
|
),
|
|
28133
28149
|
/* @__PURE__ */ y(
|
|
28134
|
-
|
|
28150
|
+
eR,
|
|
28135
28151
|
{
|
|
28136
28152
|
componentType: e,
|
|
28137
28153
|
controls: r,
|
|
@@ -28149,7 +28165,7 @@ const Gk = ({ children: e }) => {
|
|
|
28149
28165
|
]
|
|
28150
28166
|
}
|
|
28151
28167
|
) });
|
|
28152
|
-
},
|
|
28168
|
+
}, tR = ({
|
|
28153
28169
|
onDownloadTranscript: e,
|
|
28154
28170
|
componentType: t
|
|
28155
28171
|
}) => {
|
|
@@ -28181,7 +28197,7 @@ const Gk = ({ children: e }) => {
|
|
|
28181
28197
|
]
|
|
28182
28198
|
}
|
|
28183
28199
|
);
|
|
28184
|
-
},
|
|
28200
|
+
}, nR = ({
|
|
28185
28201
|
onEndConversation: e,
|
|
28186
28202
|
componentType: t
|
|
28187
28203
|
}) => {
|
|
@@ -28203,7 +28219,7 @@ const Gk = ({ children: e }) => {
|
|
|
28203
28219
|
]
|
|
28204
28220
|
}
|
|
28205
28221
|
);
|
|
28206
|
-
},
|
|
28222
|
+
}, rR = {
|
|
28207
28223
|
sparkle: $c,
|
|
28208
28224
|
plus: lk,
|
|
28209
28225
|
"paper-plane": dk
|
|
@@ -28211,9 +28227,9 @@ const Gk = ({ children: e }) => {
|
|
|
28211
28227
|
icon: e,
|
|
28212
28228
|
className: t
|
|
28213
28229
|
}) => {
|
|
28214
|
-
const n =
|
|
28230
|
+
const n = rR[e];
|
|
28215
28231
|
return n ? /* @__PURE__ */ y(n, { className: t, "aria-hidden": "true" }) : null;
|
|
28216
|
-
},
|
|
28232
|
+
}, iR = ({
|
|
28217
28233
|
className: e,
|
|
28218
28234
|
globalClassName: t,
|
|
28219
28235
|
suggestions: n,
|
|
@@ -28270,7 +28286,7 @@ const Gk = ({ children: e }) => {
|
|
|
28270
28286
|
)
|
|
28271
28287
|
}
|
|
28272
28288
|
);
|
|
28273
|
-
},
|
|
28289
|
+
}, sR = ({
|
|
28274
28290
|
componentType: e,
|
|
28275
28291
|
isIcon: t
|
|
28276
28292
|
}) => {
|
|
@@ -28344,7 +28360,7 @@ const Gk = ({ children: e }) => {
|
|
|
28344
28360
|
]
|
|
28345
28361
|
}
|
|
28346
28362
|
);
|
|
28347
|
-
},
|
|
28363
|
+
}, oR = ({ isWidgetStandalone: e }) => {
|
|
28348
28364
|
var S, g;
|
|
28349
28365
|
const {
|
|
28350
28366
|
globalClassName: t,
|
|
@@ -28417,10 +28433,10 @@ const Gk = ({ children: e }) => {
|
|
|
28417
28433
|
}
|
|
28418
28434
|
);
|
|
28419
28435
|
};
|
|
28420
|
-
function
|
|
28436
|
+
function aR(e) {
|
|
28421
28437
|
return e.button === 0 && !e.metaKey && !e.ctrlKey && !e.shiftKey && !e.altKey;
|
|
28422
28438
|
}
|
|
28423
|
-
function
|
|
28439
|
+
function uR(e) {
|
|
28424
28440
|
if (typeof window == "undefined") return !1;
|
|
28425
28441
|
try {
|
|
28426
28442
|
return new URL(e, window.location.href).origin === window.location.origin;
|
|
@@ -28434,11 +28450,11 @@ function Gc({
|
|
|
28434
28450
|
openLinksInNewTab: n,
|
|
28435
28451
|
onNavigate: r
|
|
28436
28452
|
}) {
|
|
28437
|
-
if (!r || n || !
|
|
28453
|
+
if (!r || n || !aR(e) || e.defaultPrevented) return;
|
|
28438
28454
|
const i = t || e.currentTarget.href;
|
|
28439
|
-
!i || !
|
|
28455
|
+
!i || !uR(i) || r(i, e);
|
|
28440
28456
|
}
|
|
28441
|
-
const
|
|
28457
|
+
const cR = ({
|
|
28442
28458
|
isWidgetStandalone: e,
|
|
28443
28459
|
product: t
|
|
28444
28460
|
}) => {
|
|
@@ -28533,7 +28549,7 @@ const lR = ({
|
|
|
28533
28549
|
]
|
|
28534
28550
|
}
|
|
28535
28551
|
);
|
|
28536
|
-
},
|
|
28552
|
+
}, lR = ({
|
|
28537
28553
|
isWidgetStandalone: e,
|
|
28538
28554
|
message: t
|
|
28539
28555
|
}) => {
|
|
@@ -28549,7 +28565,7 @@ const lR = ({
|
|
|
28549
28565
|
children: s.products.map((o) => {
|
|
28550
28566
|
const a = n.getPid(o);
|
|
28551
28567
|
return /* @__PURE__ */ y(
|
|
28552
|
-
|
|
28568
|
+
cR,
|
|
28553
28569
|
{
|
|
28554
28570
|
isWidgetStandalone: e,
|
|
28555
28571
|
product: o
|
|
@@ -28560,7 +28576,7 @@ const lR = ({
|
|
|
28560
28576
|
}
|
|
28561
28577
|
)
|
|
28562
28578
|
] }) : null;
|
|
28563
|
-
},
|
|
28579
|
+
}, dR = ({
|
|
28564
28580
|
globalClassName: e,
|
|
28565
28581
|
message: t,
|
|
28566
28582
|
isWidgetStandalone: n
|
|
@@ -28586,7 +28602,7 @@ const lR = ({
|
|
|
28586
28602
|
}
|
|
28587
28603
|
)
|
|
28588
28604
|
}
|
|
28589
|
-
),
|
|
28605
|
+
), fR = ({
|
|
28590
28606
|
globalClassName: e,
|
|
28591
28607
|
entryType: t,
|
|
28592
28608
|
message: n,
|
|
@@ -28601,7 +28617,7 @@ const lR = ({
|
|
|
28601
28617
|
return /* @__PURE__ */ te("div", { className: v(e, `${I}-follow-up`), children: [
|
|
28602
28618
|
/* @__PURE__ */ y("p", { className: v(e, `${I}-text`), children: n.message }),
|
|
28603
28619
|
/* @__PURE__ */ y(
|
|
28604
|
-
|
|
28620
|
+
iR,
|
|
28605
28621
|
{
|
|
28606
28622
|
suggestions: n.suggestions.map((E) => E.displayText),
|
|
28607
28623
|
disabled: p,
|
|
@@ -28621,13 +28637,13 @@ function kf(e, t) {
|
|
|
28621
28637
|
r++, i = n.indexOf(t, i + t.length);
|
|
28622
28638
|
return r;
|
|
28623
28639
|
}
|
|
28624
|
-
function
|
|
28640
|
+
function hR(e) {
|
|
28625
28641
|
if (typeof e != "string")
|
|
28626
28642
|
throw new TypeError("Expected a string");
|
|
28627
28643
|
return e.replace(/[|\\{}()[\]^$+*?.]/g, "\\$&").replace(/-/g, "\\x2d");
|
|
28628
28644
|
}
|
|
28629
|
-
function
|
|
28630
|
-
const i = ko((n || {}).ignore || []), s =
|
|
28645
|
+
function pR(e, t, n) {
|
|
28646
|
+
const i = ko((n || {}).ignore || []), s = mR(t);
|
|
28631
28647
|
let o = -1;
|
|
28632
28648
|
for (; ++o < s.length; )
|
|
28633
28649
|
E0(e, "text", a);
|
|
@@ -28670,7 +28686,7 @@ function mR(e, t, n) {
|
|
|
28670
28686
|
return g ? (m < c.value.length && b.push({ type: "text", value: c.value.slice(m) }), d.children.splice(S, 1, ...b)) : b = [c], S + b.length;
|
|
28671
28687
|
}
|
|
28672
28688
|
}
|
|
28673
|
-
function
|
|
28689
|
+
function mR(e) {
|
|
28674
28690
|
const t = [];
|
|
28675
28691
|
if (!Array.isArray(e))
|
|
28676
28692
|
throw new TypeError("Expected find and replace tuple or list of tuples");
|
|
@@ -28678,37 +28694,37 @@ function gR(e) {
|
|
|
28678
28694
|
let r = -1;
|
|
28679
28695
|
for (; ++r < n.length; ) {
|
|
28680
28696
|
const i = n[r];
|
|
28681
|
-
t.push([
|
|
28697
|
+
t.push([gR(i[0]), ER(i[1])]);
|
|
28682
28698
|
}
|
|
28683
28699
|
return t;
|
|
28684
28700
|
}
|
|
28685
|
-
function
|
|
28686
|
-
return typeof e == "string" ? new RegExp(
|
|
28701
|
+
function gR(e) {
|
|
28702
|
+
return typeof e == "string" ? new RegExp(hR(e), "g") : e;
|
|
28687
28703
|
}
|
|
28688
|
-
function
|
|
28704
|
+
function ER(e) {
|
|
28689
28705
|
return typeof e == "function" ? e : function() {
|
|
28690
28706
|
return e;
|
|
28691
28707
|
};
|
|
28692
28708
|
}
|
|
28693
28709
|
const Da = "phrasing", va = ["autolink", "link", "image", "label"];
|
|
28694
|
-
function
|
|
28710
|
+
function bR() {
|
|
28695
28711
|
return {
|
|
28696
|
-
transforms: [
|
|
28712
|
+
transforms: [NR],
|
|
28697
28713
|
enter: {
|
|
28698
|
-
literalAutolink:
|
|
28714
|
+
literalAutolink: yR,
|
|
28699
28715
|
literalAutolinkEmail: Ma,
|
|
28700
28716
|
literalAutolinkHttp: Ma,
|
|
28701
28717
|
literalAutolinkWww: Ma
|
|
28702
28718
|
},
|
|
28703
28719
|
exit: {
|
|
28704
|
-
literalAutolink:
|
|
28705
|
-
literalAutolinkEmail:
|
|
28706
|
-
literalAutolinkHttp:
|
|
28707
|
-
literalAutolinkWww:
|
|
28720
|
+
literalAutolink: CR,
|
|
28721
|
+
literalAutolinkEmail: AR,
|
|
28722
|
+
literalAutolinkHttp: _R,
|
|
28723
|
+
literalAutolinkWww: SR
|
|
28708
28724
|
}
|
|
28709
28725
|
};
|
|
28710
28726
|
}
|
|
28711
|
-
function
|
|
28727
|
+
function TR() {
|
|
28712
28728
|
return {
|
|
28713
28729
|
unsafe: [
|
|
28714
28730
|
{
|
|
@@ -28735,41 +28751,41 @@ function yR() {
|
|
|
28735
28751
|
]
|
|
28736
28752
|
};
|
|
28737
28753
|
}
|
|
28738
|
-
function
|
|
28754
|
+
function yR(e) {
|
|
28739
28755
|
this.enter({ type: "link", title: null, url: "", children: [] }, e);
|
|
28740
28756
|
}
|
|
28741
28757
|
function Ma(e) {
|
|
28742
28758
|
this.config.enter.autolinkProtocol.call(this, e);
|
|
28743
28759
|
}
|
|
28744
|
-
function
|
|
28760
|
+
function _R(e) {
|
|
28745
28761
|
this.config.exit.autolinkProtocol.call(this, e);
|
|
28746
28762
|
}
|
|
28747
|
-
function
|
|
28763
|
+
function SR(e) {
|
|
28748
28764
|
this.config.exit.data.call(this, e);
|
|
28749
28765
|
const t = this.stack[this.stack.length - 1];
|
|
28750
28766
|
t.type, t.url = "http://" + this.sliceSerialize(e);
|
|
28751
28767
|
}
|
|
28752
|
-
function
|
|
28768
|
+
function AR(e) {
|
|
28753
28769
|
this.config.exit.autolinkEmail.call(this, e);
|
|
28754
28770
|
}
|
|
28755
|
-
function
|
|
28771
|
+
function CR(e) {
|
|
28756
28772
|
this.exit(e);
|
|
28757
28773
|
}
|
|
28758
|
-
function
|
|
28759
|
-
|
|
28774
|
+
function NR(e) {
|
|
28775
|
+
pR(
|
|
28760
28776
|
e,
|
|
28761
28777
|
[
|
|
28762
|
-
[/(https?:\/\/|www(?=\.))([-.\w]+)([^ \t\r\n]*)/gi,
|
|
28763
|
-
[new RegExp("(?<=^|\\s|\\p{P}|\\p{S})([-.\\w+]+)@([-\\w]+(?:\\.[-\\w]+)+)", "gu"),
|
|
28778
|
+
[/(https?:\/\/|www(?=\.))([-.\w]+)([^ \t\r\n]*)/gi, OR],
|
|
28779
|
+
[new RegExp("(?<=^|\\s|\\p{P}|\\p{S})([-.\\w+]+)@([-\\w]+(?:\\.[-\\w]+)+)", "gu"), PR]
|
|
28764
28780
|
],
|
|
28765
28781
|
{ ignore: ["link", "linkReference"] }
|
|
28766
28782
|
);
|
|
28767
28783
|
}
|
|
28768
|
-
function
|
|
28784
|
+
function OR(e, t, n, r, i) {
|
|
28769
28785
|
let s = "";
|
|
28770
|
-
if (!Ag(i) || (/^w/i.test(t) && (n = t + n, t = "", s = "http://"), !
|
|
28786
|
+
if (!Ag(i) || (/^w/i.test(t) && (n = t + n, t = "", s = "http://"), !xR(n)))
|
|
28771
28787
|
return !1;
|
|
28772
|
-
const o =
|
|
28788
|
+
const o = IR(n + r);
|
|
28773
28789
|
if (!o[0]) return !1;
|
|
28774
28790
|
const a = {
|
|
28775
28791
|
type: "link",
|
|
@@ -28779,7 +28795,7 @@ function PR(e, t, n, r, i) {
|
|
|
28779
28795
|
};
|
|
28780
28796
|
return o[1] ? [a, { type: "text", value: o[1] }] : a;
|
|
28781
28797
|
}
|
|
28782
|
-
function
|
|
28798
|
+
function PR(e, t, n, r) {
|
|
28783
28799
|
return (
|
|
28784
28800
|
// Not an expected previous character.
|
|
28785
28801
|
!Ag(r, !0) || // Label ends in not allowed character.
|
|
@@ -28791,11 +28807,11 @@ function xR(e, t, n, r) {
|
|
|
28791
28807
|
}
|
|
28792
28808
|
);
|
|
28793
28809
|
}
|
|
28794
|
-
function
|
|
28810
|
+
function xR(e) {
|
|
28795
28811
|
const t = e.split(".");
|
|
28796
28812
|
return !(t.length < 2 || t[t.length - 1] && (/_/.test(t[t.length - 1]) || !/[a-zA-Z\d]/.test(t[t.length - 1])) || t[t.length - 2] && (/_/.test(t[t.length - 2]) || !/[a-zA-Z\d]/.test(t[t.length - 2])));
|
|
28797
28813
|
}
|
|
28798
|
-
function
|
|
28814
|
+
function IR(e) {
|
|
28799
28815
|
const t = /[!"&'),.:;<>?\]}]+$/.exec(e);
|
|
28800
28816
|
if (!t)
|
|
28801
28817
|
return [e, void 0];
|
|
@@ -28812,41 +28828,41 @@ function Ag(e, t) {
|
|
|
28812
28828
|
return (e.index === 0 || pr(n) || xo(n)) && // If it’s an email, the previous character should not be a slash.
|
|
28813
28829
|
(!t || n !== 47);
|
|
28814
28830
|
}
|
|
28815
|
-
Cg.peek =
|
|
28816
|
-
function
|
|
28831
|
+
Cg.peek = BR;
|
|
28832
|
+
function wR() {
|
|
28817
28833
|
this.buffer();
|
|
28818
28834
|
}
|
|
28819
|
-
function
|
|
28835
|
+
function kR(e) {
|
|
28820
28836
|
this.enter({ type: "footnoteReference", identifier: "", label: "" }, e);
|
|
28821
28837
|
}
|
|
28822
|
-
function
|
|
28838
|
+
function RR() {
|
|
28823
28839
|
this.buffer();
|
|
28824
28840
|
}
|
|
28825
|
-
function
|
|
28841
|
+
function LR(e) {
|
|
28826
28842
|
this.enter(
|
|
28827
28843
|
{ type: "footnoteDefinition", identifier: "", label: "", children: [] },
|
|
28828
28844
|
e
|
|
28829
28845
|
);
|
|
28830
28846
|
}
|
|
28831
|
-
function
|
|
28847
|
+
function DR(e) {
|
|
28832
28848
|
const t = this.resume(), n = this.stack[this.stack.length - 1];
|
|
28833
28849
|
n.type, n.identifier = Jt(
|
|
28834
28850
|
this.sliceSerialize(e)
|
|
28835
28851
|
).toLowerCase(), n.label = t;
|
|
28836
28852
|
}
|
|
28837
|
-
function
|
|
28853
|
+
function vR(e) {
|
|
28838
28854
|
this.exit(e);
|
|
28839
28855
|
}
|
|
28840
|
-
function
|
|
28856
|
+
function MR(e) {
|
|
28841
28857
|
const t = this.resume(), n = this.stack[this.stack.length - 1];
|
|
28842
28858
|
n.type, n.identifier = Jt(
|
|
28843
28859
|
this.sliceSerialize(e)
|
|
28844
28860
|
).toLowerCase(), n.label = t;
|
|
28845
28861
|
}
|
|
28846
|
-
function
|
|
28862
|
+
function FR(e) {
|
|
28847
28863
|
this.exit(e);
|
|
28848
28864
|
}
|
|
28849
|
-
function
|
|
28865
|
+
function BR() {
|
|
28850
28866
|
return "[";
|
|
28851
28867
|
}
|
|
28852
28868
|
function Cg(e, t, n, r) {
|
|
@@ -28857,23 +28873,23 @@ function Cg(e, t, n, r) {
|
|
|
28857
28873
|
n.safe(n.associationId(e), { after: "]", before: s })
|
|
28858
28874
|
), a(), o(), s += i.move("]"), s;
|
|
28859
28875
|
}
|
|
28860
|
-
function
|
|
28876
|
+
function UR() {
|
|
28861
28877
|
return {
|
|
28862
28878
|
enter: {
|
|
28863
|
-
gfmFootnoteCallString:
|
|
28864
|
-
gfmFootnoteCall:
|
|
28865
|
-
gfmFootnoteDefinitionLabelString:
|
|
28866
|
-
gfmFootnoteDefinition:
|
|
28879
|
+
gfmFootnoteCallString: wR,
|
|
28880
|
+
gfmFootnoteCall: kR,
|
|
28881
|
+
gfmFootnoteDefinitionLabelString: RR,
|
|
28882
|
+
gfmFootnoteDefinition: LR
|
|
28867
28883
|
},
|
|
28868
28884
|
exit: {
|
|
28869
|
-
gfmFootnoteCallString:
|
|
28870
|
-
gfmFootnoteCall:
|
|
28871
|
-
gfmFootnoteDefinitionLabelString:
|
|
28872
|
-
gfmFootnoteDefinition:
|
|
28885
|
+
gfmFootnoteCallString: DR,
|
|
28886
|
+
gfmFootnoteCall: vR,
|
|
28887
|
+
gfmFootnoteDefinitionLabelString: MR,
|
|
28888
|
+
gfmFootnoteDefinition: FR
|
|
28873
28889
|
}
|
|
28874
28890
|
};
|
|
28875
28891
|
}
|
|
28876
|
-
function
|
|
28892
|
+
function HR(e) {
|
|
28877
28893
|
let t = !1;
|
|
28878
28894
|
return e && e.firstLineBlank && (t = !0), {
|
|
28879
28895
|
handlers: { footnoteDefinition: n, footnoteReference: Cg },
|
|
@@ -28890,18 +28906,18 @@ function $R(e) {
|
|
|
28890
28906
|
(t ? `
|
|
28891
28907
|
` : " ") + s.indentLines(
|
|
28892
28908
|
s.containerFlow(r, a.current()),
|
|
28893
|
-
t ? Ng :
|
|
28909
|
+
t ? Ng : $R
|
|
28894
28910
|
)
|
|
28895
28911
|
)), c(), u;
|
|
28896
28912
|
}
|
|
28897
28913
|
}
|
|
28898
|
-
function
|
|
28914
|
+
function $R(e, t, n) {
|
|
28899
28915
|
return t === 0 ? e : Ng(e, t, n);
|
|
28900
28916
|
}
|
|
28901
28917
|
function Ng(e, t, n) {
|
|
28902
28918
|
return (n ? "" : " ") + e;
|
|
28903
28919
|
}
|
|
28904
|
-
const
|
|
28920
|
+
const zR = [
|
|
28905
28921
|
"autolink",
|
|
28906
28922
|
"destinationLiteral",
|
|
28907
28923
|
"destinationRaw",
|
|
@@ -28909,30 +28925,30 @@ const VR = [
|
|
|
28909
28925
|
"titleQuote",
|
|
28910
28926
|
"titleApostrophe"
|
|
28911
28927
|
];
|
|
28912
|
-
Og.peek =
|
|
28913
|
-
function
|
|
28928
|
+
Og.peek = GR;
|
|
28929
|
+
function VR() {
|
|
28914
28930
|
return {
|
|
28915
28931
|
canContainEols: ["delete"],
|
|
28916
|
-
enter: { strikethrough:
|
|
28917
|
-
exit: { strikethrough:
|
|
28932
|
+
enter: { strikethrough: YR },
|
|
28933
|
+
exit: { strikethrough: jR }
|
|
28918
28934
|
};
|
|
28919
28935
|
}
|
|
28920
|
-
function
|
|
28936
|
+
function qR() {
|
|
28921
28937
|
return {
|
|
28922
28938
|
unsafe: [
|
|
28923
28939
|
{
|
|
28924
28940
|
character: "~",
|
|
28925
28941
|
inConstruct: "phrasing",
|
|
28926
|
-
notInConstruct:
|
|
28942
|
+
notInConstruct: zR
|
|
28927
28943
|
}
|
|
28928
28944
|
],
|
|
28929
28945
|
handlers: { delete: Og }
|
|
28930
28946
|
};
|
|
28931
28947
|
}
|
|
28932
|
-
function
|
|
28948
|
+
function YR(e) {
|
|
28933
28949
|
this.enter({ type: "delete", children: [] }, e);
|
|
28934
28950
|
}
|
|
28935
|
-
function
|
|
28951
|
+
function jR(e) {
|
|
28936
28952
|
this.exit(e);
|
|
28937
28953
|
}
|
|
28938
28954
|
function Og(e, t, n, r) {
|
|
@@ -28943,20 +28959,20 @@ function Og(e, t, n, r) {
|
|
|
28943
28959
|
after: "~"
|
|
28944
28960
|
})), o += i.move("~~"), s(), o;
|
|
28945
28961
|
}
|
|
28946
|
-
function
|
|
28962
|
+
function GR() {
|
|
28947
28963
|
return "~";
|
|
28948
28964
|
}
|
|
28949
|
-
function
|
|
28965
|
+
function WR(e) {
|
|
28950
28966
|
return e.length;
|
|
28951
28967
|
}
|
|
28952
|
-
function
|
|
28953
|
-
const n = t || {}, r = (n.align || []).concat(), i = n.stringLength ||
|
|
28968
|
+
function XR(e, t) {
|
|
28969
|
+
const n = t || {}, r = (n.align || []).concat(), i = n.stringLength || WR, s = [], o = [], a = [], u = [];
|
|
28954
28970
|
let c = 0, l = -1;
|
|
28955
28971
|
for (; ++l < e.length; ) {
|
|
28956
28972
|
const E = [], S = [];
|
|
28957
28973
|
let g = -1;
|
|
28958
28974
|
for (e[l].length > c && (c = e[l].length); ++g < e[l].length; ) {
|
|
28959
|
-
const b =
|
|
28975
|
+
const b = KR(e[l][g]);
|
|
28960
28976
|
if (n.alignDelimiters !== !1) {
|
|
28961
28977
|
const T = i(b);
|
|
28962
28978
|
S[g] = T, (u[g] === void 0 || T > u[g]) && (u[g] = T);
|
|
@@ -29011,26 +29027,26 @@ function KR(e, t) {
|
|
|
29011
29027
|
return m.join(`
|
|
29012
29028
|
`);
|
|
29013
29029
|
}
|
|
29014
|
-
function
|
|
29030
|
+
function KR(e) {
|
|
29015
29031
|
return e == null ? "" : String(e);
|
|
29016
29032
|
}
|
|
29017
29033
|
function Rf(e) {
|
|
29018
29034
|
const t = typeof e == "string" ? e.codePointAt(0) : 0;
|
|
29019
29035
|
return t === 67 || t === 99 ? 99 : t === 76 || t === 108 ? 108 : t === 82 || t === 114 ? 114 : 0;
|
|
29020
29036
|
}
|
|
29021
|
-
function
|
|
29037
|
+
function QR(e, t, n, r) {
|
|
29022
29038
|
const i = n.enter("blockquote"), s = n.createTracker(r);
|
|
29023
29039
|
s.move("> "), s.shift(2);
|
|
29024
29040
|
const o = n.indentLines(
|
|
29025
29041
|
n.containerFlow(e, s.current()),
|
|
29026
|
-
|
|
29042
|
+
JR
|
|
29027
29043
|
);
|
|
29028
29044
|
return i(), o;
|
|
29029
29045
|
}
|
|
29030
|
-
function
|
|
29046
|
+
function JR(e, t, n) {
|
|
29031
29047
|
return ">" + (n ? "" : " ") + e;
|
|
29032
29048
|
}
|
|
29033
|
-
function
|
|
29049
|
+
function ZR(e, t) {
|
|
29034
29050
|
return Lf(e, t.inConstruct, !0) && !Lf(e, t.notInConstruct, !1);
|
|
29035
29051
|
}
|
|
29036
29052
|
function Lf(e, t, n) {
|
|
@@ -29046,12 +29062,12 @@ function Df(e, t, n, r) {
|
|
|
29046
29062
|
let i = -1;
|
|
29047
29063
|
for (; ++i < n.unsafe.length; )
|
|
29048
29064
|
if (n.unsafe[i].character === `
|
|
29049
|
-
` &&
|
|
29065
|
+
` && ZR(n.stack, n.unsafe[i]))
|
|
29050
29066
|
return /[ \t]/.test(r.before) ? "" : " ";
|
|
29051
29067
|
return `\\
|
|
29052
29068
|
`;
|
|
29053
29069
|
}
|
|
29054
|
-
function
|
|
29070
|
+
function e6(e, t) {
|
|
29055
29071
|
const n = String(e);
|
|
29056
29072
|
let r = n.indexOf(t), i = r, s = 0, o = 0;
|
|
29057
29073
|
if (typeof t != "string")
|
|
@@ -29060,13 +29076,13 @@ function t6(e, t) {
|
|
|
29060
29076
|
r === i ? ++s > o && (o = s) : s = 1, i = r + t.length, r = n.indexOf(t, i);
|
|
29061
29077
|
return o;
|
|
29062
29078
|
}
|
|
29063
|
-
function
|
|
29079
|
+
function t6(e, t) {
|
|
29064
29080
|
return !!(t.options.fences === !1 && e.value && // If there’s no info…
|
|
29065
29081
|
!e.lang && // And there’s a non-whitespace character…
|
|
29066
29082
|
/[^ \r\n]/.test(e.value) && // And the value doesn’t start or end in a blank…
|
|
29067
29083
|
!/^[\t ]*(?:[\r\n]|$)|(?:^|[\r\n])[\t ]*$/.test(e.value));
|
|
29068
29084
|
}
|
|
29069
|
-
function
|
|
29085
|
+
function n6(e) {
|
|
29070
29086
|
const t = e.options.fence || "`";
|
|
29071
29087
|
if (t !== "`" && t !== "~")
|
|
29072
29088
|
throw new Error(
|
|
@@ -29074,13 +29090,13 @@ function r6(e) {
|
|
|
29074
29090
|
);
|
|
29075
29091
|
return t;
|
|
29076
29092
|
}
|
|
29077
|
-
function
|
|
29078
|
-
const i =
|
|
29079
|
-
if (
|
|
29080
|
-
const d = n.enter("codeIndented"), p = n.indentLines(s,
|
|
29093
|
+
function r6(e, t, n, r) {
|
|
29094
|
+
const i = n6(n), s = e.value || "", o = i === "`" ? "GraveAccent" : "Tilde";
|
|
29095
|
+
if (t6(e, n)) {
|
|
29096
|
+
const d = n.enter("codeIndented"), p = n.indentLines(s, i6);
|
|
29081
29097
|
return d(), p;
|
|
29082
29098
|
}
|
|
29083
|
-
const a = n.createTracker(r), u = i.repeat(Math.max(
|
|
29099
|
+
const a = n.createTracker(r), u = i.repeat(Math.max(e6(s, i) + 1, 3)), c = n.enter("codeFenced");
|
|
29084
29100
|
let l = a.move(u);
|
|
29085
29101
|
if (e.lang) {
|
|
29086
29102
|
const d = n.enter(`codeFencedLang${o}`);
|
|
@@ -29107,7 +29123,7 @@ function i6(e, t, n, r) {
|
|
|
29107
29123
|
`), s && (l += a.move(s + `
|
|
29108
29124
|
`)), l += a.move(u), c(), l;
|
|
29109
29125
|
}
|
|
29110
|
-
function
|
|
29126
|
+
function i6(e, t, n) {
|
|
29111
29127
|
return (n ? "" : " ") + e;
|
|
29112
29128
|
}
|
|
29113
29129
|
function Wc(e) {
|
|
@@ -29118,7 +29134,7 @@ function Wc(e) {
|
|
|
29118
29134
|
);
|
|
29119
29135
|
return t;
|
|
29120
29136
|
}
|
|
29121
|
-
function
|
|
29137
|
+
function s6(e, t, n, r) {
|
|
29122
29138
|
const i = Wc(n), s = i === '"' ? "Quote" : "Apostrophe", o = n.enter("definition");
|
|
29123
29139
|
let a = n.enter("label");
|
|
29124
29140
|
const u = n.createTracker(r);
|
|
@@ -29145,7 +29161,7 @@ function o6(e, t, n, r) {
|
|
|
29145
29161
|
}, u.current()))
|
|
29146
29162
|
), c += u.move(i), a()), o(), c;
|
|
29147
29163
|
}
|
|
29148
|
-
function
|
|
29164
|
+
function o6(e) {
|
|
29149
29165
|
const t = e.options.emphasis || "*";
|
|
29150
29166
|
if (t !== "*" && t !== "_")
|
|
29151
29167
|
throw new Error(
|
|
@@ -29156,7 +29172,7 @@ function a6(e) {
|
|
|
29156
29172
|
function Ki(e) {
|
|
29157
29173
|
return "&#x" + e.toString(16).toUpperCase() + ";";
|
|
29158
29174
|
}
|
|
29159
|
-
function
|
|
29175
|
+
function po(e, t, n) {
|
|
29160
29176
|
const r = Vr(e), i = Vr(t);
|
|
29161
29177
|
return r === void 0 ? i === void 0 ? (
|
|
29162
29178
|
// Letter inside:
|
|
@@ -29189,22 +29205,22 @@ function ho(e, t, n) {
|
|
|
29189
29205
|
{ inside: !1, outside: !1 }
|
|
29190
29206
|
);
|
|
29191
29207
|
}
|
|
29192
|
-
Pg.peek =
|
|
29208
|
+
Pg.peek = a6;
|
|
29193
29209
|
function Pg(e, t, n, r) {
|
|
29194
|
-
const i =
|
|
29210
|
+
const i = o6(n), s = n.enter("emphasis"), o = n.createTracker(r), a = o.move(i);
|
|
29195
29211
|
let u = o.move(
|
|
29196
29212
|
n.containerPhrasing(e, x({
|
|
29197
29213
|
after: i,
|
|
29198
29214
|
before: a
|
|
29199
29215
|
}, o.current()))
|
|
29200
29216
|
);
|
|
29201
|
-
const c = u.charCodeAt(0), l =
|
|
29217
|
+
const c = u.charCodeAt(0), l = po(
|
|
29202
29218
|
r.before.charCodeAt(r.before.length - 1),
|
|
29203
29219
|
c,
|
|
29204
29220
|
i
|
|
29205
29221
|
);
|
|
29206
29222
|
l.inside && (u = Ki(c) + u.slice(1));
|
|
29207
|
-
const d = u.charCodeAt(u.length - 1), p =
|
|
29223
|
+
const d = u.charCodeAt(u.length - 1), p = po(r.after.charCodeAt(0), d, i);
|
|
29208
29224
|
p.inside && (u = u.slice(0, -1) + Ki(d));
|
|
29209
29225
|
const h = o.move(i);
|
|
29210
29226
|
return s(), n.attentionEncodeSurroundingInfo = {
|
|
@@ -29212,19 +29228,19 @@ function Pg(e, t, n, r) {
|
|
|
29212
29228
|
before: l.outside
|
|
29213
29229
|
}, a + u + h;
|
|
29214
29230
|
}
|
|
29215
|
-
function
|
|
29231
|
+
function a6(e, t, n) {
|
|
29216
29232
|
return n.options.emphasis || "*";
|
|
29217
29233
|
}
|
|
29218
|
-
function
|
|
29234
|
+
function u6(e, t) {
|
|
29219
29235
|
let n = !1;
|
|
29220
29236
|
return Lo(e, function(r) {
|
|
29221
29237
|
if ("value" in r && /\r?\n|\r/.test(r.value) || r.type === "break")
|
|
29222
29238
|
return n = !0, au;
|
|
29223
29239
|
}), !!((!e.depth || e.depth < 3) && uc(e) && (t.options.setext || n));
|
|
29224
29240
|
}
|
|
29225
|
-
function
|
|
29241
|
+
function c6(e, t, n, r) {
|
|
29226
29242
|
const i = Math.max(Math.min(6, e.depth || 1), 1), s = n.createTracker(r);
|
|
29227
|
-
if (
|
|
29243
|
+
if (u6(e, n)) {
|
|
29228
29244
|
const l = n.enter("headingSetext"), d = n.enter("phrasing"), p = n.containerPhrasing(e, q(x({}, s.current()), {
|
|
29229
29245
|
before: `
|
|
29230
29246
|
`,
|
|
@@ -29249,14 +29265,14 @@ function l6(e, t, n, r) {
|
|
|
29249
29265
|
}, s.current()));
|
|
29250
29266
|
return /^[\t ]/.test(c) && (c = Ki(c.charCodeAt(0)) + c.slice(1)), c = c ? o + " " + c : o, n.options.closeAtx && (c += " " + o), u(), a(), c;
|
|
29251
29267
|
}
|
|
29252
|
-
xg.peek =
|
|
29268
|
+
xg.peek = l6;
|
|
29253
29269
|
function xg(e) {
|
|
29254
29270
|
return e.value || "";
|
|
29255
29271
|
}
|
|
29256
|
-
function
|
|
29272
|
+
function l6() {
|
|
29257
29273
|
return "<";
|
|
29258
29274
|
}
|
|
29259
|
-
Ig.peek =
|
|
29275
|
+
Ig.peek = d6;
|
|
29260
29276
|
function Ig(e, t, n, r) {
|
|
29261
29277
|
const i = Wc(n), s = i === '"' ? "Quote" : "Apostrophe", o = n.enter("image");
|
|
29262
29278
|
let a = n.enter("label");
|
|
@@ -29280,10 +29296,10 @@ function Ig(e, t, n, r) {
|
|
|
29280
29296
|
}, u.current()))
|
|
29281
29297
|
), c += u.move(i), a()), c += u.move(")"), o(), c;
|
|
29282
29298
|
}
|
|
29283
|
-
function
|
|
29299
|
+
function d6() {
|
|
29284
29300
|
return "!";
|
|
29285
29301
|
}
|
|
29286
|
-
wg.peek =
|
|
29302
|
+
wg.peek = f6;
|
|
29287
29303
|
function wg(e, t, n, r) {
|
|
29288
29304
|
const i = e.referenceType, s = n.enter("imageReference");
|
|
29289
29305
|
let o = n.enter("label");
|
|
@@ -29302,10 +29318,10 @@ function wg(e, t, n, r) {
|
|
|
29302
29318
|
}, a.current()));
|
|
29303
29319
|
return o(), n.stack = l, s(), i === "full" || !c || c !== d ? u += a.move(d + "]") : i === "shortcut" ? u = u.slice(0, -1) : u += a.move("]"), u;
|
|
29304
29320
|
}
|
|
29305
|
-
function
|
|
29321
|
+
function f6() {
|
|
29306
29322
|
return "!";
|
|
29307
29323
|
}
|
|
29308
|
-
kg.peek =
|
|
29324
|
+
kg.peek = h6;
|
|
29309
29325
|
function kg(e, t, n) {
|
|
29310
29326
|
let r = e.value || "", i = "`", s = -1;
|
|
29311
29327
|
for (; new RegExp("(^|[^`])" + i + "([^`]|$)").test(r); )
|
|
@@ -29321,7 +29337,7 @@ function kg(e, t, n) {
|
|
|
29321
29337
|
}
|
|
29322
29338
|
return i + r + i;
|
|
29323
29339
|
}
|
|
29324
|
-
function
|
|
29340
|
+
function h6() {
|
|
29325
29341
|
return "`";
|
|
29326
29342
|
}
|
|
29327
29343
|
function Rg(e, t) {
|
|
@@ -29335,7 +29351,7 @@ function Rg(e, t) {
|
|
|
29335
29351
|
// references don’t work), space, or angle brackets…
|
|
29336
29352
|
!/[\0- <>\u007F]/.test(e.url));
|
|
29337
29353
|
}
|
|
29338
|
-
Lg.peek =
|
|
29354
|
+
Lg.peek = p6;
|
|
29339
29355
|
function Lg(e, t, n, r) {
|
|
29340
29356
|
const i = Wc(n), s = i === '"' ? "Quote" : "Apostrophe", o = n.createTracker(r);
|
|
29341
29357
|
let a, u;
|
|
@@ -29373,10 +29389,10 @@ function Lg(e, t, n, r) {
|
|
|
29373
29389
|
}, o.current()))
|
|
29374
29390
|
), c += o.move(i), u()), c += o.move(")"), a(), c;
|
|
29375
29391
|
}
|
|
29376
|
-
function
|
|
29392
|
+
function p6(e, t, n) {
|
|
29377
29393
|
return Rg(e, n) ? "<" : "[";
|
|
29378
29394
|
}
|
|
29379
|
-
Dg.peek =
|
|
29395
|
+
Dg.peek = m6;
|
|
29380
29396
|
function Dg(e, t, n, r) {
|
|
29381
29397
|
const i = e.referenceType, s = n.enter("linkReference");
|
|
29382
29398
|
let o = n.enter("label");
|
|
@@ -29395,7 +29411,7 @@ function Dg(e, t, n, r) {
|
|
|
29395
29411
|
}, a.current()));
|
|
29396
29412
|
return o(), n.stack = l, s(), i === "full" || !c || c !== d ? u += a.move(d + "]") : i === "shortcut" ? u = u.slice(0, -1) : u += a.move("]"), u;
|
|
29397
29413
|
}
|
|
29398
|
-
function
|
|
29414
|
+
function m6() {
|
|
29399
29415
|
return "[";
|
|
29400
29416
|
}
|
|
29401
29417
|
function Xc(e) {
|
|
@@ -29406,7 +29422,7 @@ function Xc(e) {
|
|
|
29406
29422
|
);
|
|
29407
29423
|
return t;
|
|
29408
29424
|
}
|
|
29409
|
-
function
|
|
29425
|
+
function g6(e) {
|
|
29410
29426
|
const t = Xc(e), n = e.options.bulletOther;
|
|
29411
29427
|
if (!n)
|
|
29412
29428
|
return t === "*" ? "-" : "*";
|
|
@@ -29420,7 +29436,7 @@ function E6(e) {
|
|
|
29420
29436
|
);
|
|
29421
29437
|
return n;
|
|
29422
29438
|
}
|
|
29423
|
-
function
|
|
29439
|
+
function E6(e) {
|
|
29424
29440
|
const t = e.options.bulletOrdered || ".";
|
|
29425
29441
|
if (t !== "." && t !== ")")
|
|
29426
29442
|
throw new Error(
|
|
@@ -29436,10 +29452,10 @@ function vg(e) {
|
|
|
29436
29452
|
);
|
|
29437
29453
|
return t;
|
|
29438
29454
|
}
|
|
29439
|
-
function
|
|
29455
|
+
function b6(e, t, n, r) {
|
|
29440
29456
|
const i = n.enter("list"), s = n.bulletCurrent;
|
|
29441
|
-
let o = e.ordered ?
|
|
29442
|
-
const a = e.ordered ? o === "." ? ")" : "." :
|
|
29457
|
+
let o = e.ordered ? E6(n) : Xc(n);
|
|
29458
|
+
const a = e.ordered ? o === "." ? ")" : "." : g6(n);
|
|
29443
29459
|
let u = t && n.bulletLastUsed ? o === n.bulletLastUsed : !1;
|
|
29444
29460
|
if (!e.ordered) {
|
|
29445
29461
|
const l = e.children ? e.children[0] : void 0;
|
|
@@ -29464,7 +29480,7 @@ function T6(e, t, n, r) {
|
|
|
29464
29480
|
const c = n.containerFlow(e, r);
|
|
29465
29481
|
return n.bulletLastUsed = o, n.bulletCurrent = s, i(), c;
|
|
29466
29482
|
}
|
|
29467
|
-
function
|
|
29483
|
+
function T6(e) {
|
|
29468
29484
|
const t = e.options.listItemIndent || "one";
|
|
29469
29485
|
if (t !== "tab" && t !== "one" && t !== "mixed")
|
|
29470
29486
|
throw new Error(
|
|
@@ -29472,8 +29488,8 @@ function y6(e) {
|
|
|
29472
29488
|
);
|
|
29473
29489
|
return t;
|
|
29474
29490
|
}
|
|
29475
|
-
function
|
|
29476
|
-
const i =
|
|
29491
|
+
function y6(e, t, n, r) {
|
|
29492
|
+
const i = T6(n);
|
|
29477
29493
|
let s = n.bulletCurrent || Xc(n);
|
|
29478
29494
|
t && t.type === "list" && t.ordered && (s = (typeof t.start == "number" && t.start > -1 ? t.start : 1) + (n.options.incrementListMarker === !1 ? 0 : t.children.indexOf(e)) + s);
|
|
29479
29495
|
let o = s.length + 1;
|
|
@@ -29489,11 +29505,11 @@ function _6(e, t, n, r) {
|
|
|
29489
29505
|
return p ? (h ? "" : " ".repeat(o)) + d : (h ? s : s + " ".repeat(o - s.length)) + d;
|
|
29490
29506
|
}
|
|
29491
29507
|
}
|
|
29492
|
-
function
|
|
29508
|
+
function _6(e, t, n, r) {
|
|
29493
29509
|
const i = n.enter("paragraph"), s = n.enter("phrasing"), o = n.containerPhrasing(e, r);
|
|
29494
29510
|
return s(), i(), o;
|
|
29495
29511
|
}
|
|
29496
|
-
const
|
|
29512
|
+
const S6 = (
|
|
29497
29513
|
/** @type {(node?: unknown) => node is Exclude<PhrasingContent, Html>} */
|
|
29498
29514
|
ko([
|
|
29499
29515
|
"break",
|
|
@@ -29519,12 +29535,12 @@ const A6 = (
|
|
|
29519
29535
|
"textDirective"
|
|
29520
29536
|
])
|
|
29521
29537
|
);
|
|
29522
|
-
function
|
|
29538
|
+
function A6(e, t, n, r) {
|
|
29523
29539
|
return (e.children.some(function(o) {
|
|
29524
|
-
return
|
|
29540
|
+
return S6(o);
|
|
29525
29541
|
}) ? n.containerPhrasing : n.containerFlow).call(n, e, r);
|
|
29526
29542
|
}
|
|
29527
|
-
function
|
|
29543
|
+
function C6(e) {
|
|
29528
29544
|
const t = e.options.strong || "*";
|
|
29529
29545
|
if (t !== "*" && t !== "_")
|
|
29530
29546
|
throw new Error(
|
|
@@ -29532,22 +29548,22 @@ function N6(e) {
|
|
|
29532
29548
|
);
|
|
29533
29549
|
return t;
|
|
29534
29550
|
}
|
|
29535
|
-
Mg.peek =
|
|
29551
|
+
Mg.peek = N6;
|
|
29536
29552
|
function Mg(e, t, n, r) {
|
|
29537
|
-
const i =
|
|
29553
|
+
const i = C6(n), s = n.enter("strong"), o = n.createTracker(r), a = o.move(i + i);
|
|
29538
29554
|
let u = o.move(
|
|
29539
29555
|
n.containerPhrasing(e, x({
|
|
29540
29556
|
after: i,
|
|
29541
29557
|
before: a
|
|
29542
29558
|
}, o.current()))
|
|
29543
29559
|
);
|
|
29544
|
-
const c = u.charCodeAt(0), l =
|
|
29560
|
+
const c = u.charCodeAt(0), l = po(
|
|
29545
29561
|
r.before.charCodeAt(r.before.length - 1),
|
|
29546
29562
|
c,
|
|
29547
29563
|
i
|
|
29548
29564
|
);
|
|
29549
29565
|
l.inside && (u = Ki(c) + u.slice(1));
|
|
29550
|
-
const d = u.charCodeAt(u.length - 1), p =
|
|
29566
|
+
const d = u.charCodeAt(u.length - 1), p = po(r.after.charCodeAt(0), d, i);
|
|
29551
29567
|
p.inside && (u = u.slice(0, -1) + Ki(d));
|
|
29552
29568
|
const h = o.move(i + i);
|
|
29553
29569
|
return s(), n.attentionEncodeSurroundingInfo = {
|
|
@@ -29555,13 +29571,13 @@ function Mg(e, t, n, r) {
|
|
|
29555
29571
|
before: l.outside
|
|
29556
29572
|
}, a + u + h;
|
|
29557
29573
|
}
|
|
29558
|
-
function
|
|
29574
|
+
function N6(e, t, n) {
|
|
29559
29575
|
return n.options.strong || "*";
|
|
29560
29576
|
}
|
|
29561
|
-
function
|
|
29577
|
+
function O6(e, t, n, r) {
|
|
29562
29578
|
return n.safe(e.value, r);
|
|
29563
29579
|
}
|
|
29564
|
-
function
|
|
29580
|
+
function P6(e) {
|
|
29565
29581
|
const t = e.options.ruleRepetition || 3;
|
|
29566
29582
|
if (t < 3)
|
|
29567
29583
|
throw new Error(
|
|
@@ -29569,50 +29585,50 @@ function x6(e) {
|
|
|
29569
29585
|
);
|
|
29570
29586
|
return t;
|
|
29571
29587
|
}
|
|
29572
|
-
function
|
|
29573
|
-
const r = (vg(n) + (n.options.ruleSpaces ? " " : "")).repeat(
|
|
29588
|
+
function x6(e, t, n) {
|
|
29589
|
+
const r = (vg(n) + (n.options.ruleSpaces ? " " : "")).repeat(P6(n));
|
|
29574
29590
|
return n.options.ruleSpaces ? r.slice(0, -1) : r;
|
|
29575
29591
|
}
|
|
29576
29592
|
const Fg = {
|
|
29577
|
-
blockquote:
|
|
29593
|
+
blockquote: QR,
|
|
29578
29594
|
break: Df,
|
|
29579
|
-
code:
|
|
29580
|
-
definition:
|
|
29595
|
+
code: r6,
|
|
29596
|
+
definition: s6,
|
|
29581
29597
|
emphasis: Pg,
|
|
29582
29598
|
hardBreak: Df,
|
|
29583
|
-
heading:
|
|
29599
|
+
heading: c6,
|
|
29584
29600
|
html: xg,
|
|
29585
29601
|
image: Ig,
|
|
29586
29602
|
imageReference: wg,
|
|
29587
29603
|
inlineCode: kg,
|
|
29588
29604
|
link: Lg,
|
|
29589
29605
|
linkReference: Dg,
|
|
29590
|
-
list:
|
|
29591
|
-
listItem:
|
|
29592
|
-
paragraph:
|
|
29593
|
-
root:
|
|
29606
|
+
list: b6,
|
|
29607
|
+
listItem: y6,
|
|
29608
|
+
paragraph: _6,
|
|
29609
|
+
root: A6,
|
|
29594
29610
|
strong: Mg,
|
|
29595
|
-
text:
|
|
29596
|
-
thematicBreak:
|
|
29611
|
+
text: O6,
|
|
29612
|
+
thematicBreak: x6
|
|
29597
29613
|
};
|
|
29598
|
-
function
|
|
29614
|
+
function I6() {
|
|
29599
29615
|
return {
|
|
29600
29616
|
enter: {
|
|
29601
|
-
table:
|
|
29617
|
+
table: w6,
|
|
29602
29618
|
tableData: vf,
|
|
29603
29619
|
tableHeader: vf,
|
|
29604
|
-
tableRow:
|
|
29620
|
+
tableRow: R6
|
|
29605
29621
|
},
|
|
29606
29622
|
exit: {
|
|
29607
|
-
codeText:
|
|
29608
|
-
table:
|
|
29623
|
+
codeText: L6,
|
|
29624
|
+
table: k6,
|
|
29609
29625
|
tableData: Fa,
|
|
29610
29626
|
tableHeader: Fa,
|
|
29611
29627
|
tableRow: Fa
|
|
29612
29628
|
}
|
|
29613
29629
|
};
|
|
29614
29630
|
}
|
|
29615
|
-
function
|
|
29631
|
+
function w6(e) {
|
|
29616
29632
|
const t = e._align;
|
|
29617
29633
|
this.enter(
|
|
29618
29634
|
{
|
|
@@ -29625,10 +29641,10 @@ function k6(e) {
|
|
|
29625
29641
|
e
|
|
29626
29642
|
), this.data.inTable = !0;
|
|
29627
29643
|
}
|
|
29628
|
-
function
|
|
29644
|
+
function k6(e) {
|
|
29629
29645
|
this.exit(e), this.data.inTable = void 0;
|
|
29630
29646
|
}
|
|
29631
|
-
function
|
|
29647
|
+
function R6(e) {
|
|
29632
29648
|
this.enter({ type: "tableRow", children: [] }, e);
|
|
29633
29649
|
}
|
|
29634
29650
|
function Fa(e) {
|
|
@@ -29637,16 +29653,16 @@ function Fa(e) {
|
|
|
29637
29653
|
function vf(e) {
|
|
29638
29654
|
this.enter({ type: "tableCell", children: [] }, e);
|
|
29639
29655
|
}
|
|
29640
|
-
function
|
|
29656
|
+
function L6(e) {
|
|
29641
29657
|
let t = this.resume();
|
|
29642
|
-
this.data.inTable && (t = t.replace(/\\([\\|])/g,
|
|
29658
|
+
this.data.inTable && (t = t.replace(/\\([\\|])/g, D6));
|
|
29643
29659
|
const n = this.stack[this.stack.length - 1];
|
|
29644
29660
|
n.type, n.value = t, this.exit(e);
|
|
29645
29661
|
}
|
|
29646
|
-
function
|
|
29662
|
+
function D6(e, t) {
|
|
29647
29663
|
return t === "|" ? t : e;
|
|
29648
29664
|
}
|
|
29649
|
-
function
|
|
29665
|
+
function v6(e) {
|
|
29650
29666
|
const t = e || {}, n = t.tableCellPadding, r = t.tablePipeAlign, i = t.stringLength, s = n ? " " : "|";
|
|
29651
29667
|
return {
|
|
29652
29668
|
unsafe: [
|
|
@@ -29691,7 +29707,7 @@ function M6(e) {
|
|
|
29691
29707
|
return b(), g(), T;
|
|
29692
29708
|
}
|
|
29693
29709
|
function c(h, m) {
|
|
29694
|
-
return
|
|
29710
|
+
return XR(h, {
|
|
29695
29711
|
align: m,
|
|
29696
29712
|
// @ts-expect-error: `markdown-table` types should support `null`.
|
|
29697
29713
|
alignDelimiters: r,
|
|
@@ -29722,26 +29738,26 @@ function M6(e) {
|
|
|
29722
29738
|
return E.stack.includes("tableCell") && (S = S.replace(/\|/g, "\\$&")), S;
|
|
29723
29739
|
}
|
|
29724
29740
|
}
|
|
29725
|
-
function
|
|
29741
|
+
function M6() {
|
|
29726
29742
|
return {
|
|
29727
29743
|
exit: {
|
|
29728
29744
|
taskListCheckValueChecked: Mf,
|
|
29729
29745
|
taskListCheckValueUnchecked: Mf,
|
|
29730
|
-
paragraph:
|
|
29746
|
+
paragraph: B6
|
|
29731
29747
|
}
|
|
29732
29748
|
};
|
|
29733
29749
|
}
|
|
29734
|
-
function
|
|
29750
|
+
function F6() {
|
|
29735
29751
|
return {
|
|
29736
29752
|
unsafe: [{ atBreak: !0, character: "-", after: "[:|-]" }],
|
|
29737
|
-
handlers: { listItem:
|
|
29753
|
+
handlers: { listItem: U6 }
|
|
29738
29754
|
};
|
|
29739
29755
|
}
|
|
29740
29756
|
function Mf(e) {
|
|
29741
29757
|
const t = this.stack[this.stack.length - 2];
|
|
29742
29758
|
t.type, t.checked = e.type === "taskListCheckValueChecked";
|
|
29743
29759
|
}
|
|
29744
|
-
function
|
|
29760
|
+
function B6(e) {
|
|
29745
29761
|
const t = this.stack[this.stack.length - 2];
|
|
29746
29762
|
if (t && t.type === "listItem" && typeof t.checked == "boolean") {
|
|
29747
29763
|
const n = this.stack[this.stack.length - 1];
|
|
@@ -29762,7 +29778,7 @@ function U6(e) {
|
|
|
29762
29778
|
}
|
|
29763
29779
|
this.exit(e);
|
|
29764
29780
|
}
|
|
29765
|
-
function
|
|
29781
|
+
function U6(e, t, n, r) {
|
|
29766
29782
|
const i = e.children[0], s = typeof e.checked == "boolean" && i && i.type === "paragraph", o = "[" + (e.checked ? "x" : " ") + "] ", a = n.createTracker(r);
|
|
29767
29783
|
s && a.move(o);
|
|
29768
29784
|
let u = Fg.listItem(e, t, n, x(x({}, r), a.current()));
|
|
@@ -29771,55 +29787,55 @@ function H6(e, t, n, r) {
|
|
|
29771
29787
|
return l + o;
|
|
29772
29788
|
}
|
|
29773
29789
|
}
|
|
29774
|
-
function
|
|
29790
|
+
function H6() {
|
|
29775
29791
|
return [
|
|
29776
|
-
|
|
29777
|
-
|
|
29778
|
-
|
|
29779
|
-
|
|
29780
|
-
|
|
29792
|
+
bR(),
|
|
29793
|
+
UR(),
|
|
29794
|
+
VR(),
|
|
29795
|
+
I6(),
|
|
29796
|
+
M6()
|
|
29781
29797
|
];
|
|
29782
29798
|
}
|
|
29783
|
-
function
|
|
29799
|
+
function $6(e) {
|
|
29784
29800
|
return {
|
|
29785
29801
|
extensions: [
|
|
29786
|
-
|
|
29787
|
-
|
|
29788
|
-
|
|
29789
|
-
|
|
29790
|
-
|
|
29802
|
+
TR(),
|
|
29803
|
+
HR(e),
|
|
29804
|
+
qR(),
|
|
29805
|
+
v6(e),
|
|
29806
|
+
F6()
|
|
29791
29807
|
]
|
|
29792
29808
|
};
|
|
29793
29809
|
}
|
|
29794
|
-
const
|
|
29795
|
-
tokenize:
|
|
29810
|
+
const z6 = {
|
|
29811
|
+
tokenize: W6,
|
|
29796
29812
|
partial: !0
|
|
29797
29813
|
}, Bg = {
|
|
29798
|
-
tokenize:
|
|
29814
|
+
tokenize: X6,
|
|
29799
29815
|
partial: !0
|
|
29800
29816
|
}, Ug = {
|
|
29801
|
-
tokenize:
|
|
29817
|
+
tokenize: K6,
|
|
29802
29818
|
partial: !0
|
|
29803
29819
|
}, Hg = {
|
|
29804
|
-
tokenize:
|
|
29820
|
+
tokenize: Q6,
|
|
29805
29821
|
partial: !0
|
|
29806
|
-
},
|
|
29807
|
-
tokenize:
|
|
29822
|
+
}, V6 = {
|
|
29823
|
+
tokenize: J6,
|
|
29808
29824
|
partial: !0
|
|
29809
29825
|
}, $g = {
|
|
29810
29826
|
name: "wwwAutolink",
|
|
29811
|
-
tokenize:
|
|
29827
|
+
tokenize: j6,
|
|
29812
29828
|
previous: Vg
|
|
29813
29829
|
}, zg = {
|
|
29814
29830
|
name: "protocolAutolink",
|
|
29815
|
-
tokenize:
|
|
29831
|
+
tokenize: G6,
|
|
29816
29832
|
previous: qg
|
|
29817
29833
|
}, Dn = {
|
|
29818
29834
|
name: "emailAutolink",
|
|
29819
|
-
tokenize:
|
|
29835
|
+
tokenize: Y6,
|
|
29820
29836
|
previous: Yg
|
|
29821
29837
|
}, yn = {};
|
|
29822
|
-
function
|
|
29838
|
+
function q6() {
|
|
29823
29839
|
return {
|
|
29824
29840
|
text: yn
|
|
29825
29841
|
};
|
|
@@ -29835,7 +29851,7 @@ yn[72] = [Dn, zg];
|
|
|
29835
29851
|
yn[104] = [Dn, zg];
|
|
29836
29852
|
yn[87] = [Dn, $g];
|
|
29837
29853
|
yn[119] = [Dn, $g];
|
|
29838
|
-
function
|
|
29854
|
+
function Y6(e, t, n) {
|
|
29839
29855
|
const r = this;
|
|
29840
29856
|
let i, s;
|
|
29841
29857
|
return o;
|
|
@@ -29846,7 +29862,7 @@ function j6(e, t, n) {
|
|
|
29846
29862
|
return xu(d) ? (e.consume(d), a) : d === 64 ? (e.consume(d), u) : n(d);
|
|
29847
29863
|
}
|
|
29848
29864
|
function u(d) {
|
|
29849
|
-
return d === 46 ? e.check(
|
|
29865
|
+
return d === 46 ? e.check(V6, l, c)(d) : d === 45 || d === 95 || pt(d) ? (s = !0, e.consume(d), u) : l(d);
|
|
29850
29866
|
}
|
|
29851
29867
|
function c(d) {
|
|
29852
29868
|
return e.consume(d), i = !0, u;
|
|
@@ -29855,17 +29871,17 @@ function j6(e, t, n) {
|
|
|
29855
29871
|
return s && i && Ct(r.previous) ? (e.exit("literalAutolinkEmail"), e.exit("literalAutolink"), t(d)) : n(d);
|
|
29856
29872
|
}
|
|
29857
29873
|
}
|
|
29858
|
-
function
|
|
29874
|
+
function j6(e, t, n) {
|
|
29859
29875
|
const r = this;
|
|
29860
29876
|
return i;
|
|
29861
29877
|
function i(o) {
|
|
29862
|
-
return o !== 87 && o !== 119 || !Vg.call(r, r.previous) || Kc(r.events) ? n(o) : (e.enter("literalAutolink"), e.enter("literalAutolinkWww"), e.check(
|
|
29878
|
+
return o !== 87 && o !== 119 || !Vg.call(r, r.previous) || Kc(r.events) ? n(o) : (e.enter("literalAutolink"), e.enter("literalAutolinkWww"), e.check(z6, e.attempt(Bg, e.attempt(Ug, s), n), n)(o));
|
|
29863
29879
|
}
|
|
29864
29880
|
function s(o) {
|
|
29865
29881
|
return e.exit("literalAutolinkWww"), e.exit("literalAutolink"), t(o);
|
|
29866
29882
|
}
|
|
29867
29883
|
}
|
|
29868
|
-
function
|
|
29884
|
+
function G6(e, t, n) {
|
|
29869
29885
|
const r = this;
|
|
29870
29886
|
let i = "", s = !1;
|
|
29871
29887
|
return o;
|
|
@@ -29886,13 +29902,13 @@ function W6(e, t, n) {
|
|
|
29886
29902
|
return d === 47 ? (e.consume(d), s ? c : (s = !0, u)) : n(d);
|
|
29887
29903
|
}
|
|
29888
29904
|
function c(d) {
|
|
29889
|
-
return d === null ||
|
|
29905
|
+
return d === null || ro(d) || De(d) || pr(d) || xo(d) ? n(d) : e.attempt(Bg, e.attempt(Ug, l), n)(d);
|
|
29890
29906
|
}
|
|
29891
29907
|
function l(d) {
|
|
29892
29908
|
return e.exit("literalAutolinkHttp"), e.exit("literalAutolink"), t(d);
|
|
29893
29909
|
}
|
|
29894
29910
|
}
|
|
29895
|
-
function
|
|
29911
|
+
function W6(e, t, n) {
|
|
29896
29912
|
let r = 0;
|
|
29897
29913
|
return i;
|
|
29898
29914
|
function i(o) {
|
|
@@ -29902,7 +29918,7 @@ function X6(e, t, n) {
|
|
|
29902
29918
|
return o === null ? n(o) : t(o);
|
|
29903
29919
|
}
|
|
29904
29920
|
}
|
|
29905
|
-
function
|
|
29921
|
+
function X6(e, t, n) {
|
|
29906
29922
|
let r, i, s;
|
|
29907
29923
|
return o;
|
|
29908
29924
|
function o(c) {
|
|
@@ -29915,7 +29931,7 @@ function K6(e, t, n) {
|
|
|
29915
29931
|
return i || r || !s ? n(c) : t(c);
|
|
29916
29932
|
}
|
|
29917
29933
|
}
|
|
29918
|
-
function
|
|
29934
|
+
function K6(e, t) {
|
|
29919
29935
|
let n = 0, r = 0;
|
|
29920
29936
|
return i;
|
|
29921
29937
|
function i(o) {
|
|
@@ -29925,7 +29941,7 @@ function Q6(e, t) {
|
|
|
29925
29941
|
return o === 41 && r++, e.consume(o), i;
|
|
29926
29942
|
}
|
|
29927
29943
|
}
|
|
29928
|
-
function
|
|
29944
|
+
function Q6(e, t, n) {
|
|
29929
29945
|
return r;
|
|
29930
29946
|
function r(a) {
|
|
29931
29947
|
return a === 33 || a === 34 || a === 39 || a === 41 || a === 42 || a === 44 || a === 46 || a === 58 || a === 59 || a === 63 || a === 95 || a === 126 ? (e.consume(a), r) : a === 38 ? (e.consume(a), s) : a === 93 ? (e.consume(a), i) : (
|
|
@@ -29944,7 +29960,7 @@ function J6(e, t, n) {
|
|
|
29944
29960
|
return a === 59 ? (e.consume(a), r) : Ct(a) ? (e.consume(a), o) : n(a);
|
|
29945
29961
|
}
|
|
29946
29962
|
}
|
|
29947
|
-
function
|
|
29963
|
+
function J6(e, t, n) {
|
|
29948
29964
|
return r;
|
|
29949
29965
|
function r(s) {
|
|
29950
29966
|
return e.consume(s), i;
|
|
@@ -29980,37 +29996,37 @@ function Kc(e) {
|
|
|
29980
29996
|
}
|
|
29981
29997
|
return e.length > 0 && !n && (e[e.length - 1][1]._gfmAutolinkLiteralWalkedInto = !0), n;
|
|
29982
29998
|
}
|
|
29983
|
-
const
|
|
29984
|
-
tokenize:
|
|
29999
|
+
const Z6 = {
|
|
30000
|
+
tokenize: aL,
|
|
29985
30001
|
partial: !0
|
|
29986
30002
|
};
|
|
29987
|
-
function
|
|
30003
|
+
function eL() {
|
|
29988
30004
|
return {
|
|
29989
30005
|
document: {
|
|
29990
30006
|
91: {
|
|
29991
30007
|
name: "gfmFootnoteDefinition",
|
|
29992
|
-
tokenize:
|
|
30008
|
+
tokenize: iL,
|
|
29993
30009
|
continuation: {
|
|
29994
|
-
tokenize:
|
|
30010
|
+
tokenize: sL
|
|
29995
30011
|
},
|
|
29996
|
-
exit:
|
|
30012
|
+
exit: oL
|
|
29997
30013
|
}
|
|
29998
30014
|
},
|
|
29999
30015
|
text: {
|
|
30000
30016
|
91: {
|
|
30001
30017
|
name: "gfmFootnoteCall",
|
|
30002
|
-
tokenize:
|
|
30018
|
+
tokenize: rL
|
|
30003
30019
|
},
|
|
30004
30020
|
93: {
|
|
30005
30021
|
name: "gfmPotentialFootnoteCall",
|
|
30006
30022
|
add: "after",
|
|
30007
|
-
tokenize:
|
|
30008
|
-
resolveTo:
|
|
30023
|
+
tokenize: tL,
|
|
30024
|
+
resolveTo: nL
|
|
30009
30025
|
}
|
|
30010
30026
|
}
|
|
30011
30027
|
};
|
|
30012
30028
|
}
|
|
30013
|
-
function
|
|
30029
|
+
function tL(e, t, n) {
|
|
30014
30030
|
const r = this;
|
|
30015
30031
|
let i = r.events.length;
|
|
30016
30032
|
const s = r.parser.gfmFootnotes || (r.parser.gfmFootnotes = []);
|
|
@@ -30035,7 +30051,7 @@ function nL(e, t, n) {
|
|
|
30035
30051
|
return c.codePointAt(0) !== 94 || !s.includes(c.slice(1)) ? n(u) : (e.enter("gfmFootnoteCallLabelMarker"), e.consume(u), e.exit("gfmFootnoteCallLabelMarker"), t(u));
|
|
30036
30052
|
}
|
|
30037
30053
|
}
|
|
30038
|
-
function
|
|
30054
|
+
function nL(e, t) {
|
|
30039
30055
|
let n = e.length;
|
|
30040
30056
|
for (; n--; )
|
|
30041
30057
|
if (e[n][1].type === "labelImage" && e[n][0] === "enter") {
|
|
@@ -30085,7 +30101,7 @@ function rL(e, t) {
|
|
|
30085
30101
|
];
|
|
30086
30102
|
return e.splice(n, e.length - n + 1, ...a), e;
|
|
30087
30103
|
}
|
|
30088
|
-
function
|
|
30104
|
+
function rL(e, t, n) {
|
|
30089
30105
|
const r = this, i = r.parser.gfmFootnotes || (r.parser.gfmFootnotes = []);
|
|
30090
30106
|
let s = 0, o;
|
|
30091
30107
|
return a;
|
|
@@ -30115,7 +30131,7 @@ function iL(e, t, n) {
|
|
|
30115
30131
|
return d === 91 || d === 92 || d === 93 ? (e.consume(d), s++, c) : c(d);
|
|
30116
30132
|
}
|
|
30117
30133
|
}
|
|
30118
|
-
function
|
|
30134
|
+
function iL(e, t, n) {
|
|
30119
30135
|
const r = this, i = r.parser.gfmFootnotes || (r.parser.gfmFootnotes = []);
|
|
30120
30136
|
let s, o = 0, a;
|
|
30121
30137
|
return u;
|
|
@@ -30151,13 +30167,13 @@ function sL(e, t, n) {
|
|
|
30151
30167
|
return t(m);
|
|
30152
30168
|
}
|
|
30153
30169
|
}
|
|
30154
|
-
function
|
|
30155
|
-
return e.check(
|
|
30170
|
+
function sL(e, t, n) {
|
|
30171
|
+
return e.check(cs, t, e.attempt(Z6, t, n));
|
|
30156
30172
|
}
|
|
30157
|
-
function
|
|
30173
|
+
function oL(e) {
|
|
30158
30174
|
e.exit("gfmFootnoteDefinition");
|
|
30159
30175
|
}
|
|
30160
|
-
function
|
|
30176
|
+
function aL(e, t, n) {
|
|
30161
30177
|
const r = this;
|
|
30162
30178
|
return Pe(e, i, "gfmFootnoteDefinitionIndent", 5);
|
|
30163
30179
|
function i(s) {
|
|
@@ -30165,7 +30181,7 @@ function uL(e, t, n) {
|
|
|
30165
30181
|
return o && o[1].type === "gfmFootnoteDefinitionIndent" && o[2].sliceSerialize(o[1], !0).length === 4 ? t(s) : n(s);
|
|
30166
30182
|
}
|
|
30167
30183
|
}
|
|
30168
|
-
function
|
|
30184
|
+
function uL(e) {
|
|
30169
30185
|
let n = (e || {}).singleTilde;
|
|
30170
30186
|
const r = {
|
|
30171
30187
|
name: "strikethrough",
|
|
@@ -30226,7 +30242,7 @@ function cL(e) {
|
|
|
30226
30242
|
}
|
|
30227
30243
|
}
|
|
30228
30244
|
}
|
|
30229
|
-
class
|
|
30245
|
+
class cL {
|
|
30230
30246
|
/**
|
|
30231
30247
|
* Create a new edit map.
|
|
30232
30248
|
*/
|
|
@@ -30242,7 +30258,7 @@ class lL {
|
|
|
30242
30258
|
* @returns {undefined}
|
|
30243
30259
|
*/
|
|
30244
30260
|
add(t, n, r) {
|
|
30245
|
-
|
|
30261
|
+
lL(this, t, n, r);
|
|
30246
30262
|
}
|
|
30247
30263
|
// To do: add this when moving to `micromark`.
|
|
30248
30264
|
// /**
|
|
@@ -30281,7 +30297,7 @@ class lL {
|
|
|
30281
30297
|
this.map.length = 0;
|
|
30282
30298
|
}
|
|
30283
30299
|
}
|
|
30284
|
-
function
|
|
30300
|
+
function lL(e, t, n, r) {
|
|
30285
30301
|
let i = 0;
|
|
30286
30302
|
if (!(n === 0 && r.length === 0)) {
|
|
30287
30303
|
for (; i < e.map.length; ) {
|
|
@@ -30294,7 +30310,7 @@ function dL(e, t, n, r) {
|
|
|
30294
30310
|
e.map.push([t, n, r]);
|
|
30295
30311
|
}
|
|
30296
30312
|
}
|
|
30297
|
-
function
|
|
30313
|
+
function dL(e, t) {
|
|
30298
30314
|
let n = !1;
|
|
30299
30315
|
const r = [];
|
|
30300
30316
|
for (; t < e.length; ) {
|
|
@@ -30314,18 +30330,18 @@ function fL(e, t) {
|
|
|
30314
30330
|
}
|
|
30315
30331
|
return r;
|
|
30316
30332
|
}
|
|
30317
|
-
function
|
|
30333
|
+
function fL() {
|
|
30318
30334
|
return {
|
|
30319
30335
|
flow: {
|
|
30320
30336
|
null: {
|
|
30321
30337
|
name: "table",
|
|
30322
|
-
tokenize:
|
|
30323
|
-
resolveAll:
|
|
30338
|
+
tokenize: hL,
|
|
30339
|
+
resolveAll: pL
|
|
30324
30340
|
}
|
|
30325
30341
|
}
|
|
30326
30342
|
};
|
|
30327
30343
|
}
|
|
30328
|
-
function
|
|
30344
|
+
function hL(e, t, n) {
|
|
30329
30345
|
const r = this;
|
|
30330
30346
|
let i = 0, s = 0, o;
|
|
30331
30347
|
return a;
|
|
@@ -30395,9 +30411,9 @@ function pL(e, t, n) {
|
|
|
30395
30411
|
return R === 92 || R === 124 ? (e.consume(R), H) : H(R);
|
|
30396
30412
|
}
|
|
30397
30413
|
}
|
|
30398
|
-
function
|
|
30414
|
+
function pL(e, t) {
|
|
30399
30415
|
let n = -1, r = !0, i = 0, s = [0, 0, 0, 0], o = [0, 0, 0, 0], a = !1, u = 0, c, l, d;
|
|
30400
|
-
const p = new
|
|
30416
|
+
const p = new cL();
|
|
30401
30417
|
for (; ++n < e.length; ) {
|
|
30402
30418
|
const h = e[n], m = h[1];
|
|
30403
30419
|
h[0] === "enter" ? m.type === "tableHead" ? (a = !1, u !== 0 && (Ff(p, t, u, c, l), l = void 0, u = 0), c = {
|
|
@@ -30410,15 +30426,15 @@ function mL(e, t) {
|
|
|
30410
30426
|
start: Object.assign({}, m.start),
|
|
30411
30427
|
// Note: correct end is set later.
|
|
30412
30428
|
end: Object.assign({}, m.end)
|
|
30413
|
-
}, p.add(n, 0, [["enter", l, t]])), i = m.type === "tableDelimiterRow" ? 2 : l ? 3 : 1) : i && (m.type === "data" || m.type === "tableDelimiterMarker" || m.type === "tableDelimiterFiller") ? (r = !1, o[2] === 0 && (s[1] !== 0 && (o[0] = o[1], d =
|
|
30429
|
+
}, p.add(n, 0, [["enter", l, t]])), i = m.type === "tableDelimiterRow" ? 2 : l ? 3 : 1) : i && (m.type === "data" || m.type === "tableDelimiterMarker" || m.type === "tableDelimiterFiller") ? (r = !1, o[2] === 0 && (s[1] !== 0 && (o[0] = o[1], d = Ls(p, t, s, i, void 0, d), s = [0, 0, 0, 0]), o[2] = n)) : m.type === "tableCellDivider" && (r ? r = !1 : (s[1] !== 0 && (o[0] = o[1], d = Ls(p, t, s, i, void 0, d)), s = o, o = [s[1], n, 0, 0])) : m.type === "tableHead" ? (a = !0, u = n) : m.type === "tableRow" || m.type === "tableDelimiterRow" ? (u = n, s[1] !== 0 ? (o[0] = o[1], d = Ls(p, t, s, i, n, d)) : o[1] !== 0 && (d = Ls(p, t, o, i, n, d)), i = 0) : i && (m.type === "data" || m.type === "tableDelimiterMarker" || m.type === "tableDelimiterFiller") && (o[3] = n);
|
|
30414
30430
|
}
|
|
30415
30431
|
for (u !== 0 && Ff(p, t, u, c, l), p.consume(t.events), n = -1; ++n < t.events.length; ) {
|
|
30416
30432
|
const h = t.events[n];
|
|
30417
|
-
h[0] === "enter" && h[1].type === "table" && (h[1]._align =
|
|
30433
|
+
h[0] === "enter" && h[1].type === "table" && (h[1]._align = dL(t.events, n));
|
|
30418
30434
|
}
|
|
30419
30435
|
return e;
|
|
30420
30436
|
}
|
|
30421
|
-
function
|
|
30437
|
+
function Ls(e, t, n, r, i, s) {
|
|
30422
30438
|
const o = r === 1 ? "tableHeader" : r === 2 ? "tableDelimiter" : "tableData", a = "tableContent";
|
|
30423
30439
|
n[0] !== 0 && (s.end = Object.assign({}, Lr(t.events, n[0])), e.add(n[0], 0, [["exit", s, t]]));
|
|
30424
30440
|
const u = Lr(t.events, n[1]);
|
|
@@ -30452,18 +30468,18 @@ function Lr(e, t) {
|
|
|
30452
30468
|
const n = e[t], r = n[0] === "enter" ? "start" : "end";
|
|
30453
30469
|
return n[1][r];
|
|
30454
30470
|
}
|
|
30455
|
-
const
|
|
30471
|
+
const mL = {
|
|
30456
30472
|
name: "tasklistCheck",
|
|
30457
|
-
tokenize:
|
|
30473
|
+
tokenize: EL
|
|
30458
30474
|
};
|
|
30459
|
-
function
|
|
30475
|
+
function gL() {
|
|
30460
30476
|
return {
|
|
30461
30477
|
text: {
|
|
30462
|
-
91:
|
|
30478
|
+
91: mL
|
|
30463
30479
|
}
|
|
30464
30480
|
};
|
|
30465
30481
|
}
|
|
30466
|
-
function
|
|
30482
|
+
function EL(e, t, n) {
|
|
30467
30483
|
const r = this;
|
|
30468
30484
|
return i;
|
|
30469
30485
|
function i(u) {
|
|
@@ -30482,35 +30498,35 @@ function bL(e, t, n) {
|
|
|
30482
30498
|
}
|
|
30483
30499
|
function a(u) {
|
|
30484
30500
|
return fe(u) ? t(u) : Ae(u) ? e.check({
|
|
30485
|
-
tokenize:
|
|
30501
|
+
tokenize: bL
|
|
30486
30502
|
}, t, n)(u) : n(u);
|
|
30487
30503
|
}
|
|
30488
30504
|
}
|
|
30489
|
-
function
|
|
30505
|
+
function bL(e, t, n) {
|
|
30490
30506
|
return Pe(e, r, "whitespace");
|
|
30491
30507
|
function r(i) {
|
|
30492
30508
|
return i === null ? n(i) : t(i);
|
|
30493
30509
|
}
|
|
30494
30510
|
}
|
|
30495
|
-
function
|
|
30511
|
+
function TL(e) {
|
|
30496
30512
|
return Qp([
|
|
30497
|
-
|
|
30498
|
-
|
|
30499
|
-
|
|
30500
|
-
|
|
30501
|
-
|
|
30513
|
+
q6(),
|
|
30514
|
+
eL(),
|
|
30515
|
+
uL(e),
|
|
30516
|
+
fL(),
|
|
30517
|
+
gL()
|
|
30502
30518
|
]);
|
|
30503
30519
|
}
|
|
30504
|
-
const
|
|
30505
|
-
function
|
|
30520
|
+
const yL = {};
|
|
30521
|
+
function _L(e) {
|
|
30506
30522
|
const t = (
|
|
30507
30523
|
/** @type {Processor<Root>} */
|
|
30508
30524
|
this
|
|
30509
|
-
), n = e ||
|
|
30510
|
-
i.push(
|
|
30525
|
+
), n = e || yL, r = t.data(), i = r.micromarkExtensions || (r.micromarkExtensions = []), s = r.fromMarkdownExtensions || (r.fromMarkdownExtensions = []), o = r.toMarkdownExtensions || (r.toMarkdownExtensions = []);
|
|
30526
|
+
i.push(TL(n)), s.push(H6()), o.push($6(n));
|
|
30511
30527
|
}
|
|
30512
30528
|
const Xo = () => /* @__PURE__ */ y("span", { className: `${I}-blinking-cursor`, children: /* @__PURE__ */ y("svg", { "aria-hidden": "true", height: "16px", width: "16px", xmlns: "http://www.w3.org/2000/svg", children: /* @__PURE__ */ y("circle", { r: "0.45rem", cx: "0.5rem", cy: "0.55rem", fill: "black" }) }) });
|
|
30513
|
-
function
|
|
30529
|
+
function SL(e) {
|
|
30514
30530
|
return /^tel:/i.test(e) ? e : y0(e);
|
|
30515
30531
|
}
|
|
30516
30532
|
const Qc = ({
|
|
@@ -30522,9 +30538,9 @@ const Qc = ({
|
|
|
30522
30538
|
}) => /* @__PURE__ */ y("div", { className: v(e, `${I}-markdown`), children: /* @__PURE__ */ y(
|
|
30523
30539
|
T0,
|
|
30524
30540
|
{
|
|
30525
|
-
remarkPlugins: [
|
|
30541
|
+
remarkPlugins: [_L],
|
|
30526
30542
|
rehypePlugins: [rm],
|
|
30527
|
-
urlTransform:
|
|
30543
|
+
urlTransform: SL,
|
|
30528
30544
|
components: {
|
|
30529
30545
|
h1: ({ children: s }) => /* @__PURE__ */ y("h1", { className: v(e, `${I}-header h1`), children: s }),
|
|
30530
30546
|
h2: ({ children: s }) => /* @__PURE__ */ y("h2", { className: v(e, `${I}-header h2`), children: s }),
|
|
@@ -30552,7 +30568,7 @@ const Qc = ({
|
|
|
30552
30568
|
},
|
|
30553
30569
|
children: r + (n ? `<span className='${I}-blinking-cursor'></span>` : "")
|
|
30554
30570
|
}
|
|
30555
|
-
) }),
|
|
30571
|
+
) }), AL = ({
|
|
30556
30572
|
globalClassName: e,
|
|
30557
30573
|
message: t
|
|
30558
30574
|
}) => {
|
|
@@ -30599,11 +30615,11 @@ const Qc = ({
|
|
|
30599
30615
|
n && /* @__PURE__ */ y("div", { className: v(e, `${I}-thought-container`), children: s && /* @__PURE__ */ y("p", { className: v(e, `${I}-progress-thought`), children: t.thought }) })
|
|
30600
30616
|
] })
|
|
30601
30617
|
] });
|
|
30602
|
-
},
|
|
30618
|
+
}, CL = ({
|
|
30603
30619
|
globalClassName: e,
|
|
30604
30620
|
message: t,
|
|
30605
30621
|
isWidgetStandalone: n
|
|
30606
|
-
}) => n ? /* @__PURE__ */ y(
|
|
30622
|
+
}) => n ? /* @__PURE__ */ y(AL, { globalClassName: e, message: t }) : /* @__PURE__ */ te(
|
|
30607
30623
|
"div",
|
|
30608
30624
|
{
|
|
30609
30625
|
className: v(e, `${I}-progress-message`, "embedded"),
|
|
@@ -30624,7 +30640,7 @@ const Qc = ({
|
|
|
30624
30640
|
/* @__PURE__ */ y("i", { className: v(e, `${I}-progress-text`, "embedded"), children: t.message })
|
|
30625
30641
|
]
|
|
30626
30642
|
}
|
|
30627
|
-
),
|
|
30643
|
+
), NL = ({
|
|
30628
30644
|
globalClassName: e,
|
|
30629
30645
|
message: t,
|
|
30630
30646
|
isWidgetStandalone: n
|
|
@@ -30699,7 +30715,7 @@ const Qc = ({
|
|
|
30699
30715
|
facetFiltersList: o,
|
|
30700
30716
|
filterCount: a
|
|
30701
30717
|
};
|
|
30702
|
-
},
|
|
30718
|
+
}, mo = ({
|
|
30703
30719
|
isWidgetStandalone: e,
|
|
30704
30720
|
globalClassName: t,
|
|
30705
30721
|
filterCount: n
|
|
@@ -30743,7 +30759,7 @@ const Qc = ({
|
|
|
30743
30759
|
title: t,
|
|
30744
30760
|
children: t
|
|
30745
30761
|
}
|
|
30746
|
-
),
|
|
30762
|
+
), OL = ({
|
|
30747
30763
|
globalClassName: e,
|
|
30748
30764
|
message: t,
|
|
30749
30765
|
isWidgetStandalone: n
|
|
@@ -30789,7 +30805,7 @@ const Qc = ({
|
|
|
30789
30805
|
}
|
|
30790
30806
|
),
|
|
30791
30807
|
s.length > 0 && /* @__PURE__ */ y(
|
|
30792
|
-
|
|
30808
|
+
mo,
|
|
30793
30809
|
{
|
|
30794
30810
|
isWidgetStandalone: !0,
|
|
30795
30811
|
globalClassName: e,
|
|
@@ -30840,7 +30856,7 @@ const Qc = ({
|
|
|
30840
30856
|
}
|
|
30841
30857
|
),
|
|
30842
30858
|
/* @__PURE__ */ y("p", { className: v(e, `${I}-user-message-text embedded`), children: (l = t.request) == null ? void 0 : l.userPrompt }),
|
|
30843
|
-
s.length > 0 && /* @__PURE__ */ y(
|
|
30859
|
+
s.length > 0 && /* @__PURE__ */ y(mo, { isWidgetStandalone: !1, filterCount: o })
|
|
30844
30860
|
] }),
|
|
30845
30861
|
/* @__PURE__ */ y(
|
|
30846
30862
|
Qi,
|
|
@@ -30851,7 +30867,7 @@ const Qc = ({
|
|
|
30851
30867
|
}
|
|
30852
30868
|
)
|
|
30853
30869
|
] });
|
|
30854
|
-
},
|
|
30870
|
+
}, PL = ({
|
|
30855
30871
|
globalClassName: e,
|
|
30856
30872
|
timestamp: t,
|
|
30857
30873
|
actionLabel: n,
|
|
@@ -30897,7 +30913,7 @@ const Qc = ({
|
|
|
30897
30913
|
}
|
|
30898
30914
|
),
|
|
30899
30915
|
o.length > 0 && /* @__PURE__ */ y(
|
|
30900
|
-
|
|
30916
|
+
mo,
|
|
30901
30917
|
{
|
|
30902
30918
|
isWidgetStandalone: !0,
|
|
30903
30919
|
globalClassName: e,
|
|
@@ -30924,7 +30940,7 @@ const Qc = ({
|
|
|
30924
30940
|
isWidgetStandalone: !0
|
|
30925
30941
|
}
|
|
30926
30942
|
)
|
|
30927
|
-
] }),
|
|
30943
|
+
] }), xL = ({
|
|
30928
30944
|
globalClassName: e,
|
|
30929
30945
|
message: t,
|
|
30930
30946
|
isWidgetStandalone: n
|
|
@@ -30957,7 +30973,7 @@ const Qc = ({
|
|
|
30957
30973
|
}
|
|
30958
30974
|
}, [i, r]);
|
|
30959
30975
|
return d ? n ? /* @__PURE__ */ y(
|
|
30960
|
-
|
|
30976
|
+
PL,
|
|
30961
30977
|
{
|
|
30962
30978
|
globalClassName: e,
|
|
30963
30979
|
timestamp: u,
|
|
@@ -30989,7 +31005,7 @@ const Qc = ({
|
|
|
30989
31005
|
}
|
|
30990
31006
|
),
|
|
30991
31007
|
/* @__PURE__ */ y("p", { className: v(e, `${I}-text bold embedded`), children: p || d }),
|
|
30992
|
-
o.length > 0 && /* @__PURE__ */ y(
|
|
31008
|
+
o.length > 0 && /* @__PURE__ */ y(mo, { isWidgetStandalone: !1, filterCount: a })
|
|
30993
31009
|
] }),
|
|
30994
31010
|
/* @__PURE__ */ y(
|
|
30995
31011
|
Qi,
|
|
@@ -31019,14 +31035,14 @@ const Qc = ({
|
|
|
31019
31035
|
case "copilot_browse":
|
|
31020
31036
|
case "product_view":
|
|
31021
31037
|
return h ? /* @__PURE__ */ y(
|
|
31022
|
-
|
|
31038
|
+
OL,
|
|
31023
31039
|
{
|
|
31024
31040
|
globalClassName: t,
|
|
31025
31041
|
isWidgetStandalone: s,
|
|
31026
31042
|
message: e
|
|
31027
31043
|
}
|
|
31028
31044
|
) : /* @__PURE__ */ y(
|
|
31029
|
-
|
|
31045
|
+
xL,
|
|
31030
31046
|
{
|
|
31031
31047
|
globalClassName: t,
|
|
31032
31048
|
message: e,
|
|
@@ -31038,7 +31054,7 @@ const Qc = ({
|
|
|
31038
31054
|
case "refined_search":
|
|
31039
31055
|
case "refined_browse":
|
|
31040
31056
|
return /* @__PURE__ */ y(
|
|
31041
|
-
|
|
31057
|
+
NL,
|
|
31042
31058
|
{
|
|
31043
31059
|
globalClassName: t,
|
|
31044
31060
|
message: e,
|
|
@@ -31047,7 +31063,7 @@ const Qc = ({
|
|
|
31047
31063
|
);
|
|
31048
31064
|
case "follow_up":
|
|
31049
31065
|
return /* @__PURE__ */ y(
|
|
31050
|
-
|
|
31066
|
+
fR,
|
|
31051
31067
|
{
|
|
31052
31068
|
globalClassName: t,
|
|
31053
31069
|
entryType: i,
|
|
@@ -31069,9 +31085,9 @@ const Qc = ({
|
|
|
31069
31085
|
}
|
|
31070
31086
|
);
|
|
31071
31087
|
case "error":
|
|
31072
|
-
return /* @__PURE__ */ y(fR, { message: e, isWidgetStandalone: s });
|
|
31073
|
-
case "display_products":
|
|
31074
31088
|
return /* @__PURE__ */ y(dR, { message: e, isWidgetStandalone: s });
|
|
31089
|
+
case "display_products":
|
|
31090
|
+
return /* @__PURE__ */ y(lR, { message: e, isWidgetStandalone: s });
|
|
31075
31091
|
// TODO [CIM-1443]: handle product table rendering
|
|
31076
31092
|
// if (message.attributes?.length > 0) {
|
|
31077
31093
|
// return (
|
|
@@ -31086,7 +31102,7 @@ const Qc = ({
|
|
|
31086
31102
|
// }
|
|
31087
31103
|
case "progress":
|
|
31088
31104
|
return /* @__PURE__ */ y(
|
|
31089
|
-
|
|
31105
|
+
CL,
|
|
31090
31106
|
{
|
|
31091
31107
|
globalClassName: t,
|
|
31092
31108
|
isWidgetStandalone: s,
|
|
@@ -31101,10 +31117,10 @@ const Qc = ({
|
|
|
31101
31117
|
default:
|
|
31102
31118
|
return null;
|
|
31103
31119
|
}
|
|
31104
|
-
},
|
|
31120
|
+
}, IL = ({ isWidgetStandalone: e, handleSuggestionClick: t }) => {
|
|
31105
31121
|
const { globalClassName: n, openLinksInNewTab: r, resetConversationMessage: i } = Ce(), { groupedMessages: s } = $t(), { entryType: o } = Xt();
|
|
31106
31122
|
return /* @__PURE__ */ te(Bt, { children: [
|
|
31107
|
-
o === "ask_cim" && /* @__PURE__ */ y(
|
|
31123
|
+
o === "ask_cim" && /* @__PURE__ */ y(oR, { isWidgetStandalone: e }),
|
|
31108
31124
|
s.map((a) => {
|
|
31109
31125
|
if (a.messages && a.type === "group") {
|
|
31110
31126
|
let u = new Date(a.createdAt).toLocaleString();
|
|
@@ -31172,7 +31188,7 @@ const Qc = ({
|
|
|
31172
31188
|
return null;
|
|
31173
31189
|
})
|
|
31174
31190
|
] });
|
|
31175
|
-
},
|
|
31191
|
+
}, wL = 4e3, kL = (e) => (typeof e == "string" ? e : "").replace(/<[^>]*>/g, " ").replace(/!\[([^\]]*)\]\([^)]*\)/g, "$1").replace(/\[([^\]]+)\]\([^)]*\)/g, "$1").replace(/[`*_~#>|]+/g, " ").replace(/\s+/g, " ").trim().slice(0, wL), RL = ({
|
|
31176
31192
|
message: e,
|
|
31177
31193
|
announcementKey: t
|
|
31178
31194
|
}) => {
|
|
@@ -31184,7 +31200,7 @@ const Qc = ({
|
|
|
31184
31200
|
clearTimeout(i), clearTimeout(s);
|
|
31185
31201
|
};
|
|
31186
31202
|
}, [e, t]), /* @__PURE__ */ y("span", { className: `${I}-visually-hidden`, role: "status", "aria-atomic": "true", children: n });
|
|
31187
|
-
},
|
|
31203
|
+
}, LL = () => {
|
|
31188
31204
|
const { groupedMessages: e } = $t(), n = e.flatMap(
|
|
31189
31205
|
(r) => {
|
|
31190
31206
|
var i;
|
|
@@ -31192,13 +31208,13 @@ const Qc = ({
|
|
|
31192
31208
|
}
|
|
31193
31209
|
).reverse().find((r) => r.name === "inquiry" && !r.bypassHandlers);
|
|
31194
31210
|
return /* @__PURE__ */ y(
|
|
31195
|
-
|
|
31211
|
+
RL,
|
|
31196
31212
|
{
|
|
31197
|
-
message: n ?
|
|
31213
|
+
message: n ? kL(n.message) : "",
|
|
31198
31214
|
announcementKey: n == null ? void 0 : n.id
|
|
31199
31215
|
}
|
|
31200
31216
|
);
|
|
31201
|
-
},
|
|
31217
|
+
}, DL = ({
|
|
31202
31218
|
isOpen: e
|
|
31203
31219
|
} = {}) => {
|
|
31204
31220
|
const { messages: t } = gn(), { autoScroll: n } = Ce(), r = Fe(null);
|
|
@@ -31210,7 +31226,7 @@ const Qc = ({
|
|
|
31210
31226
|
}, [t, n]), we(() => {
|
|
31211
31227
|
e && r.current && r.current.scrollIntoView(!0);
|
|
31212
31228
|
}, [e]), r;
|
|
31213
|
-
},
|
|
31229
|
+
}, vL = {
|
|
31214
31230
|
display: "flex",
|
|
31215
31231
|
justifyContent: "flex-start",
|
|
31216
31232
|
paddingBottom: "1rem"
|
|
@@ -31221,17 +31237,17 @@ const Qc = ({
|
|
|
31221
31237
|
handleSuggestionClick: r,
|
|
31222
31238
|
loadingIndicatorStyle: i
|
|
31223
31239
|
}) => {
|
|
31224
|
-
const s =
|
|
31240
|
+
const s = DL({ isOpen: e });
|
|
31225
31241
|
return /* @__PURE__ */ te(Bt, { children: [
|
|
31226
31242
|
/* @__PURE__ */ y(
|
|
31227
|
-
|
|
31243
|
+
IL,
|
|
31228
31244
|
{
|
|
31229
31245
|
isWidgetStandalone: t,
|
|
31230
31246
|
handleSuggestionClick: r
|
|
31231
31247
|
}
|
|
31232
31248
|
),
|
|
31233
|
-
/* @__PURE__ */ y(
|
|
31234
|
-
n && /* @__PURE__ */ y("div", { style: x(x({},
|
|
31249
|
+
/* @__PURE__ */ y(LL, {}),
|
|
31250
|
+
n && /* @__PURE__ */ y("div", { style: x(x({}, vL), i), children: /* @__PURE__ */ y(Xo, {}) }),
|
|
31235
31251
|
/* @__PURE__ */ y("div", { ref: s })
|
|
31236
31252
|
] });
|
|
31237
31253
|
}, Wg = () => {
|
|
@@ -31287,7 +31303,7 @@ const Qc = ({
|
|
|
31287
31303
|
}, Xg = (e) => {
|
|
31288
31304
|
var u;
|
|
31289
31305
|
const { children: t, disabled: n } = e, [r, i] = xe((u = e.container) == null ? void 0 : u.current), s = lE(
|
|
31290
|
-
|
|
31306
|
+
FL,
|
|
31291
31307
|
() => !1,
|
|
31292
31308
|
() => !0
|
|
31293
31309
|
), { getRootNode: o } = Wo();
|
|
@@ -31297,17 +31313,17 @@ const Qc = ({
|
|
|
31297
31313
|
return (c = e.container) == null ? void 0 : c.current;
|
|
31298
31314
|
});
|
|
31299
31315
|
}, [e.container]), s || n) return /* @__PURE__ */ y(Bt, { children: t });
|
|
31300
|
-
const a = r != null ? r :
|
|
31316
|
+
const a = r != null ? r : ML(o);
|
|
31301
31317
|
return /* @__PURE__ */ y(Bt, { children: zf.map(t, (c) => Iu(c, a)) });
|
|
31302
|
-
},
|
|
31318
|
+
}, ML = (e) => {
|
|
31303
31319
|
const t = e == null ? void 0 : e(), n = t.getRootNode();
|
|
31304
31320
|
return gr(n) ? n : bn(t).body;
|
|
31305
|
-
},
|
|
31306
|
-
},
|
|
31321
|
+
}, FL = () => () => {
|
|
31322
|
+
}, BL = [
|
|
31307
31323
|
"toggleDialogPosition",
|
|
31308
31324
|
"minimize",
|
|
31309
31325
|
"clearChat"
|
|
31310
|
-
],
|
|
31326
|
+
], UL = [
|
|
31311
31327
|
"toggleFullscreen",
|
|
31312
31328
|
"minimize",
|
|
31313
31329
|
"clearChat"
|
|
@@ -31352,7 +31368,7 @@ const Qc = ({
|
|
|
31352
31368
|
_g,
|
|
31353
31369
|
{
|
|
31354
31370
|
componentType: "dialog",
|
|
31355
|
-
overflowActions:
|
|
31371
|
+
overflowActions: BL,
|
|
31356
31372
|
onClearChat: h,
|
|
31357
31373
|
onClose: g
|
|
31358
31374
|
}
|
|
@@ -31446,7 +31462,7 @@ const Qc = ({
|
|
|
31446
31462
|
_g,
|
|
31447
31463
|
{
|
|
31448
31464
|
componentType: "modal",
|
|
31449
|
-
overflowActions:
|
|
31465
|
+
overflowActions: UL,
|
|
31450
31466
|
onClearChat: d,
|
|
31451
31467
|
onClose: S
|
|
31452
31468
|
}
|
|
@@ -31488,12 +31504,12 @@ const Qc = ({
|
|
|
31488
31504
|
) })
|
|
31489
31505
|
}
|
|
31490
31506
|
) : /* @__PURE__ */ y("div", { children: "Loading Copilot..." }) : null;
|
|
31491
|
-
},
|
|
31507
|
+
}, HL = () => {
|
|
31492
31508
|
const e = Xt(), {
|
|
31493
31509
|
status: { type: t, isMinimized: n }
|
|
31494
31510
|
} = e || { status: {} };
|
|
31495
31511
|
return n ? /* @__PURE__ */ y(k_, {}) : t === "dialog" ? /* @__PURE__ */ y(Kg, {}) : t === "modal" ? /* @__PURE__ */ y(Qg, {}) : /* @__PURE__ */ y(Wg, {});
|
|
31496
|
-
},
|
|
31512
|
+
}, $L = () => {
|
|
31497
31513
|
const { setIsOpen: e, setIsInline: t, setElementId: n, setEntryType: r, setParams: i } = tc();
|
|
31498
31514
|
we(() => {
|
|
31499
31515
|
const s = (o) => {
|
|
@@ -31504,7 +31520,7 @@ const Qc = ({
|
|
|
31504
31520
|
By(s);
|
|
31505
31521
|
};
|
|
31506
31522
|
}, [e, t, n, r, i]);
|
|
31507
|
-
},
|
|
31523
|
+
}, zL = () => {
|
|
31508
31524
|
const { copilot: e } = $t(), { entryType: t, activePromptsId: n, params: r } = Rn(), {
|
|
31509
31525
|
setIsInitialized: i,
|
|
31510
31526
|
setActivePromptsId: s,
|
|
@@ -31512,7 +31528,7 @@ const Qc = ({
|
|
|
31512
31528
|
setResponseMessage: a,
|
|
31513
31529
|
setIsResponseLoading: u
|
|
31514
31530
|
} = tc(), { getCopilotSuggestions: c } = xp();
|
|
31515
|
-
|
|
31531
|
+
$L();
|
|
31516
31532
|
const l = oe(
|
|
31517
31533
|
(m) => {
|
|
31518
31534
|
if (!t || !m) return;
|
|
@@ -31547,7 +31563,7 @@ const Qc = ({
|
|
|
31547
31563
|
}, Jg = {
|
|
31548
31564
|
copilot: "Ask Copilot",
|
|
31549
31565
|
messaging: "Ask a question"
|
|
31550
|
-
},
|
|
31566
|
+
}, VL = ({
|
|
31551
31567
|
onSubmit: e,
|
|
31552
31568
|
disabled: t = !1
|
|
31553
31569
|
}) => {
|
|
@@ -31589,7 +31605,7 @@ const Qc = ({
|
|
|
31589
31605
|
]
|
|
31590
31606
|
}
|
|
31591
31607
|
);
|
|
31592
|
-
},
|
|
31608
|
+
}, qL = () => {
|
|
31593
31609
|
const { globalClassName: e, mode: t } = Ce(), { placeholder: n } = Rn(), r = n || Jg[t];
|
|
31594
31610
|
return /* @__PURE__ */ te("div", { className: v(e, `${I}-prompts-header`), children: [
|
|
31595
31611
|
/* @__PURE__ */ y(
|
|
@@ -31623,17 +31639,17 @@ const Qc = ({
|
|
|
31623
31639
|
]
|
|
31624
31640
|
}
|
|
31625
31641
|
);
|
|
31626
|
-
},
|
|
31642
|
+
}, YL = "Ask me something else", jL = ({
|
|
31627
31643
|
label: e,
|
|
31628
31644
|
disabled: t = !1
|
|
31629
31645
|
}) => /* @__PURE__ */ y(
|
|
31630
31646
|
Zg,
|
|
31631
31647
|
{
|
|
31632
|
-
label: e ||
|
|
31648
|
+
label: e || YL,
|
|
31633
31649
|
disabled: t,
|
|
31634
31650
|
onClick: () => wn(!0)
|
|
31635
31651
|
}
|
|
31636
|
-
),
|
|
31652
|
+
), GL = ({
|
|
31637
31653
|
sendCopilotPrompt: e
|
|
31638
31654
|
}) => {
|
|
31639
31655
|
var S, g;
|
|
@@ -31661,9 +31677,9 @@ const Qc = ({
|
|
|
31661
31677
|
},
|
|
31662
31678
|
b
|
|
31663
31679
|
)),
|
|
31664
|
-
m && /* @__PURE__ */ y(
|
|
31680
|
+
m && /* @__PURE__ */ y(jL, { label: o, disabled: r })
|
|
31665
31681
|
] });
|
|
31666
|
-
},
|
|
31682
|
+
}, WL = () => {
|
|
31667
31683
|
const { globalClassName: e } = Ce(), { isInline: t, userPrompt: n } = Rn();
|
|
31668
31684
|
return !n || !t ? null : /* @__PURE__ */ y(
|
|
31669
31685
|
"div",
|
|
@@ -31672,7 +31688,7 @@ const Qc = ({
|
|
|
31672
31688
|
children: /* @__PURE__ */ y("p", { className: v(e, `${I}-prompts-user-message`), children: n })
|
|
31673
31689
|
}
|
|
31674
31690
|
);
|
|
31675
|
-
},
|
|
31691
|
+
}, XL = () => {
|
|
31676
31692
|
const { globalClassName: e, openLinksInNewTab: t, onNavigate: n } = Ce(), { isInline: r, responseMessage: i, isResponseLoading: s } = Rn();
|
|
31677
31693
|
if (!r || !i && !s) return null;
|
|
31678
31694
|
if (s)
|
|
@@ -31698,7 +31714,7 @@ const Qc = ({
|
|
|
31698
31714
|
)
|
|
31699
31715
|
}
|
|
31700
31716
|
);
|
|
31701
|
-
},
|
|
31717
|
+
}, KL = () => {
|
|
31702
31718
|
const { globalClassName: e, themeVariables: t } = Ce(), { connected: n, copilot: r } = $t(), { handleCopilotRequestAck: i } = Qr(), {
|
|
31703
31719
|
status: { isOpen: s }
|
|
31704
31720
|
} = Xt(), {
|
|
@@ -31773,9 +31789,9 @@ const Qc = ({
|
|
|
31773
31789
|
className: v(e, `${I}-prompts-extension-container`),
|
|
31774
31790
|
style: t,
|
|
31775
31791
|
children: [
|
|
31776
|
-
p && /* @__PURE__ */ y(
|
|
31777
|
-
!p && /* @__PURE__ */ y(
|
|
31778
|
-
h && /* @__PURE__ */ y(
|
|
31792
|
+
p && /* @__PURE__ */ y(VL, { onSubmit: k }),
|
|
31793
|
+
!p && /* @__PURE__ */ y(qL, {}),
|
|
31794
|
+
h && /* @__PURE__ */ y(GL, { sendCopilotPrompt: k }),
|
|
31779
31795
|
/* @__PURE__ */ te(
|
|
31780
31796
|
"div",
|
|
31781
31797
|
{
|
|
@@ -31784,8 +31800,8 @@ const Qc = ({
|
|
|
31784
31800
|
`${I}-prompts-extension-messages-container`
|
|
31785
31801
|
),
|
|
31786
31802
|
children: [
|
|
31787
|
-
/* @__PURE__ */ y(
|
|
31788
|
-
/* @__PURE__ */ y(
|
|
31803
|
+
/* @__PURE__ */ y(WL, {}),
|
|
31804
|
+
/* @__PURE__ */ y(XL, {})
|
|
31789
31805
|
]
|
|
31790
31806
|
}
|
|
31791
31807
|
)
|
|
@@ -31794,16 +31810,16 @@ const Qc = ({
|
|
|
31794
31810
|
),
|
|
31795
31811
|
b
|
|
31796
31812
|
);
|
|
31797
|
-
},
|
|
31798
|
-
/* @__PURE__ */ y(
|
|
31799
|
-
/* @__PURE__ */ y(
|
|
31813
|
+
}, QL = () => /* @__PURE__ */ te(Bt, { children: [
|
|
31814
|
+
/* @__PURE__ */ y(zL, {}),
|
|
31815
|
+
/* @__PURE__ */ y(KL, {})
|
|
31800
31816
|
] }), eE = (e) => /* @__PURE__ */ te(Ip, q(x({}, e), { children: [
|
|
31801
|
-
/* @__PURE__ */ y(
|
|
31802
|
-
/* @__PURE__ */ y(
|
|
31817
|
+
/* @__PURE__ */ y(HL, {}),
|
|
31818
|
+
/* @__PURE__ */ y(QL, {})
|
|
31803
31819
|
] })), Uf = /* @__PURE__ */ new WeakMap(), tE = (e, t) => {
|
|
31804
31820
|
let n = Uf.get(e);
|
|
31805
31821
|
n || (n = dE(e), Uf.set(e, n)), n.render(/* @__PURE__ */ y(eE, x({}, t)));
|
|
31806
|
-
},
|
|
31822
|
+
}, JL = (r) => {
|
|
31807
31823
|
var i = r, {
|
|
31808
31824
|
elementId: e,
|
|
31809
31825
|
timeout: t = 5e3
|
|
@@ -31828,7 +31844,7 @@ const Qc = ({
|
|
|
31828
31844
|
`Element with id: ${e} not found within ${t} milliseconds, stopping observation`
|
|
31829
31845
|
);
|
|
31830
31846
|
}, t), a;
|
|
31831
|
-
},
|
|
31847
|
+
}, ZL = (r) => {
|
|
31832
31848
|
var i = r, {
|
|
31833
31849
|
timeout: e,
|
|
31834
31850
|
elementId: t
|
|
@@ -31842,11 +31858,11 @@ const Qc = ({
|
|
|
31842
31858
|
}
|
|
31843
31859
|
const s = document.getElementById(t);
|
|
31844
31860
|
if (!s) {
|
|
31845
|
-
Fr(!0, "warn", "Container element not found for id:", t), Fr(!0, "warn", "Beginning observation for element"),
|
|
31861
|
+
Fr(!0, "warn", "Container element not found for id:", t), Fr(!0, "warn", "Beginning observation for element"), JL(x({ elementId: t, timeout: e }, n));
|
|
31846
31862
|
return;
|
|
31847
31863
|
}
|
|
31848
31864
|
tE(s, n);
|
|
31849
|
-
},
|
|
31865
|
+
}, e4 = {
|
|
31850
31866
|
search: t_,
|
|
31851
31867
|
browse: Ry,
|
|
31852
31868
|
pdp: {
|
|
@@ -31870,25 +31886,25 @@ const Qc = ({
|
|
|
31870
31886
|
getProductViewPrompts: zy
|
|
31871
31887
|
},
|
|
31872
31888
|
session: Xy
|
|
31873
|
-
},
|
|
31889
|
+
}, t4 = () => Object.freeze({
|
|
31874
31890
|
search: Object.freeze(Be.state),
|
|
31875
31891
|
browse: Object.freeze(ke.state),
|
|
31876
31892
|
pdp: Object.freeze(Zt.state),
|
|
31877
31893
|
isConnected: Se.state.connected,
|
|
31878
31894
|
isOpen: Se.isOpen,
|
|
31879
31895
|
entryType: Se.entryType
|
|
31880
|
-
}),
|
|
31896
|
+
}), k4 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
31881
31897
|
__proto__: null,
|
|
31882
31898
|
CopilotDialog: Kg,
|
|
31883
31899
|
CopilotEmbed: Wg,
|
|
31884
31900
|
CopilotModal: Qg,
|
|
31885
31901
|
CopilotWidget: eE,
|
|
31886
31902
|
CopilotWidgetProvider: Ip,
|
|
31887
|
-
eventHandlers:
|
|
31888
|
-
injectCopilotWidget:
|
|
31889
|
-
state:
|
|
31903
|
+
eventHandlers: e4,
|
|
31904
|
+
injectCopilotWidget: ZL,
|
|
31905
|
+
state: t4,
|
|
31890
31906
|
useCopilot: gn
|
|
31891
31907
|
}, Symbol.toStringTag, { value: "Module" }));
|
|
31892
31908
|
export {
|
|
31893
|
-
|
|
31909
|
+
k4 as default
|
|
31894
31910
|
};
|