@2uinc/frontend-component-xpert-chatbot 1.27.0-beta.1 → 1.27.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/lib/index.min.js +781 -775
- package/package.json +2 -1
package/dist/lib/index.min.js
CHANGED
@@ -29,9 +29,9 @@ object-assign
|
|
29
29
|
(c) Sindre Sorhus
|
30
30
|
@license MIT
|
31
31
|
*/
|
32
|
-
var
|
32
|
+
var Yn, Mi;
|
33
33
|
function zs() {
|
34
|
-
if (Mi) return
|
34
|
+
if (Mi) return Yn;
|
35
35
|
Mi = 1;
|
36
36
|
var e = Object.getOwnPropertySymbols, t = Object.prototype.hasOwnProperty, n = Object.prototype.propertyIsEnumerable;
|
37
37
|
function r(a) {
|
@@ -61,7 +61,7 @@ function zs() {
|
|
61
61
|
return !1;
|
62
62
|
}
|
63
63
|
}
|
64
|
-
return
|
64
|
+
return Yn = i() ? Object.assign : function(a, o) {
|
65
65
|
for (var l, s = r(a), u, c = 1; c < arguments.length; c++) {
|
66
66
|
l = Object(arguments[c]);
|
67
67
|
for (var f in l)
|
@@ -73,7 +73,7 @@ function zs() {
|
|
73
73
|
}
|
74
74
|
}
|
75
75
|
return s;
|
76
|
-
},
|
76
|
+
}, Yn;
|
77
77
|
}
|
78
78
|
/** @license React v17.0.2
|
79
79
|
* react-jsx-runtime.production.min.js
|
@@ -177,7 +177,7 @@ function Er(e, t) {
|
|
177
177
|
}
|
178
178
|
);
|
179
179
|
}
|
180
|
-
var Re = Er($s, { path: "/" }),
|
180
|
+
var Re = Er($s, { path: "/" }), Kn = { exports: {} }, Jn, Hi;
|
181
181
|
function Vs() {
|
182
182
|
if (Hi) return Jn;
|
183
183
|
Hi = 1;
|
@@ -234,7 +234,7 @@ function Ws() {
|
|
234
234
|
}
|
235
235
|
var qi;
|
236
236
|
function go() {
|
237
|
-
return qi || (qi = 1,
|
237
|
+
return qi || (qi = 1, Kn.exports = /* @__PURE__ */ Ws()()), Kn.exports;
|
238
238
|
}
|
239
239
|
var Gs = /* @__PURE__ */ go();
|
240
240
|
const k = /* @__PURE__ */ tt(Gs);
|
@@ -243,8 +243,8 @@ Zt.exports;
|
|
243
243
|
var Ui;
|
244
244
|
function Xs() {
|
245
245
|
return Ui || (Ui = 1, function(e, t) {
|
246
|
-
var n = 200, r = "__lodash_hash_undefined__", i = 800, a = 16, o = 9007199254740991, l = "[object Arguments]", s = "[object Array]", u = "[object AsyncFunction]", c = "[object Boolean]", f = "[object Date]", p = "[object Error]", d = "[object Function]", y = "[object GeneratorFunction]", h = "[object Map]", w = "[object Number]", g = "[object Null]", P = "[object Object]",
|
247
|
-
x[D] = x[B] = x[O] = x[S] = x[T] = x[A] = x[j] = x[R] = x[H] = !0, x[l] = x[s] = x[N] = x[c] = x[
|
246
|
+
var n = 200, r = "__lodash_hash_undefined__", i = 800, a = 16, o = 9007199254740991, l = "[object Arguments]", s = "[object Array]", u = "[object AsyncFunction]", c = "[object Boolean]", f = "[object Date]", p = "[object Error]", d = "[object Function]", y = "[object GeneratorFunction]", h = "[object Map]", w = "[object Number]", g = "[object Null]", P = "[object Object]", L = "[object Proxy]", q = "[object RegExp]", I = "[object Set]", b = "[object String]", E = "[object Undefined]", z = "[object WeakMap]", N = "[object ArrayBuffer]", U = "[object DataView]", D = "[object Float32Array]", B = "[object Float64Array]", O = "[object Int8Array]", S = "[object Int16Array]", T = "[object Int32Array]", A = "[object Uint8Array]", j = "[object Uint8ClampedArray]", R = "[object Uint16Array]", H = "[object Uint32Array]", m = /[\\^$.*+?()[\]{}|]/g, W = /^\[object .+?Constructor\]$/, J = /^(?:0|[1-9]\d*)$/, x = {};
|
247
|
+
x[D] = x[B] = x[O] = x[S] = x[T] = x[A] = x[j] = x[R] = x[H] = !0, x[l] = x[s] = x[N] = x[c] = x[U] = x[f] = x[p] = x[d] = x[h] = x[w] = x[P] = x[q] = x[I] = x[b] = x[z] = !1;
|
248
248
|
var Z = typeof fn == "object" && fn && fn.Object === Object && fn, ie = typeof self == "object" && self && self.Object === Object && self, ne = Z || ie || Function("return this")(), fe = t && !t.nodeType && t, de = fe && !0 && e && !e.nodeType && e, xe = de && de.exports === fe, pe = xe && Z.process, Ee = function() {
|
249
249
|
try {
|
250
250
|
var v = de && de.require && de.require("util").types;
|
@@ -252,22 +252,22 @@ function Xs() {
|
|
252
252
|
} catch {
|
253
253
|
}
|
254
254
|
}(), Pe = Ee && Ee.isTypedArray;
|
255
|
-
function Xe(v, _,
|
256
|
-
switch (
|
255
|
+
function Xe(v, _, F) {
|
256
|
+
switch (F.length) {
|
257
257
|
case 0:
|
258
258
|
return v.call(_);
|
259
259
|
case 1:
|
260
|
-
return v.call(_,
|
260
|
+
return v.call(_, F[0]);
|
261
261
|
case 2:
|
262
|
-
return v.call(_,
|
262
|
+
return v.call(_, F[0], F[1]);
|
263
263
|
case 3:
|
264
|
-
return v.call(_,
|
264
|
+
return v.call(_, F[0], F[1], F[2]);
|
265
265
|
}
|
266
|
-
return v.apply(_,
|
266
|
+
return v.apply(_, F);
|
267
267
|
}
|
268
268
|
function St(v, _) {
|
269
|
-
for (var
|
270
|
-
G[
|
269
|
+
for (var F = -1, G = Array(v); ++F < v; )
|
270
|
+
G[F] = _(F);
|
271
271
|
return G;
|
272
272
|
}
|
273
273
|
function _t(v) {
|
@@ -279,24 +279,24 @@ function Xs() {
|
|
279
279
|
return v == null ? void 0 : v[_];
|
280
280
|
}
|
281
281
|
function ht(v, _) {
|
282
|
-
return function(
|
283
|
-
return v(_(
|
282
|
+
return function(F) {
|
283
|
+
return v(_(F));
|
284
284
|
};
|
285
285
|
}
|
286
|
-
var
|
286
|
+
var Y = Array.prototype, ae = Function.prototype, ye = Object.prototype, ke = ne["__core-js_shared__"], Ne = ae.toString, Oe = ye.hasOwnProperty, lt = function() {
|
287
287
|
var v = /[^.]+$/.exec(ke && ke.keys && ke.keys.IE_PROTO || "");
|
288
288
|
return v ? "Symbol(src)_1." + v : "";
|
289
289
|
}(), Et = ye.toString, Bt = Ne.call(Object), M = RegExp(
|
290
290
|
"^" + Ne.call(Oe).replace(m, "\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g, "$1.*?") + "$"
|
291
|
-
),
|
292
|
-
|
293
|
-
var ue = ht(Object.getPrototypeOf, Object), Ae = Object.create, Ze = ye.propertyIsEnumerable, $e =
|
291
|
+
), V = xe ? ne.Buffer : void 0, X = ne.Symbol, oe = ne.Uint8Array;
|
292
|
+
V && V.allocUnsafe;
|
293
|
+
var ue = ht(Object.getPrototypeOf, Object), Ae = Object.create, Ze = ye.propertyIsEnumerable, $e = Y.splice, je = X ? X.toStringTag : void 0, Ye = function() {
|
294
294
|
try {
|
295
295
|
var v = zn(Object, "defineProperty");
|
296
296
|
return v({}, "", {}), v;
|
297
297
|
} catch {
|
298
298
|
}
|
299
|
-
}(), we =
|
299
|
+
}(), we = V ? V.isBuffer : void 0, Tt = Math.max, Ve = Date.now, Ei = zn(ne, "Map"), Ht = zn(Object, "create"), Rl = /* @__PURE__ */ function() {
|
300
300
|
function v() {
|
301
301
|
}
|
302
302
|
return function(_) {
|
@@ -305,13 +305,13 @@ function Xs() {
|
|
305
305
|
if (Ae)
|
306
306
|
return Ae(_);
|
307
307
|
v.prototype = _;
|
308
|
-
var
|
309
|
-
return v.prototype = void 0,
|
308
|
+
var F = new v();
|
309
|
+
return v.prototype = void 0, F;
|
310
310
|
};
|
311
311
|
}();
|
312
312
|
function mt(v) {
|
313
|
-
var _ = -1,
|
314
|
-
for (this.clear(); ++_ <
|
313
|
+
var _ = -1, F = v == null ? 0 : v.length;
|
314
|
+
for (this.clear(); ++_ < F; ) {
|
315
315
|
var G = v[_];
|
316
316
|
this.set(G[0], G[1]);
|
317
317
|
}
|
@@ -326,8 +326,8 @@ function Xs() {
|
|
326
326
|
function zl(v) {
|
327
327
|
var _ = this.__data__;
|
328
328
|
if (Ht) {
|
329
|
-
var
|
330
|
-
return
|
329
|
+
var F = _[v];
|
330
|
+
return F === r ? void 0 : F;
|
331
331
|
}
|
332
332
|
return Oe.call(_, v) ? _[v] : void 0;
|
333
333
|
}
|
@@ -336,13 +336,13 @@ function Xs() {
|
|
336
336
|
return Ht ? _[v] !== void 0 : Oe.call(_, v);
|
337
337
|
}
|
338
338
|
function Ul(v, _) {
|
339
|
-
var
|
340
|
-
return this.size += this.has(v) ? 0 : 1,
|
339
|
+
var F = this.__data__;
|
340
|
+
return this.size += this.has(v) ? 0 : 1, F[v] = Ht && _ === void 0 ? r : _, this;
|
341
341
|
}
|
342
342
|
mt.prototype.clear = Bl, mt.prototype.delete = Hl, mt.prototype.get = zl, mt.prototype.has = ql, mt.prototype.set = Ul;
|
343
343
|
function rt(v) {
|
344
|
-
var _ = -1,
|
345
|
-
for (this.clear(); ++_ <
|
344
|
+
var _ = -1, F = v == null ? 0 : v.length;
|
345
|
+
for (this.clear(); ++_ < F; ) {
|
346
346
|
var G = v[_];
|
347
347
|
this.set(G[0], G[1]);
|
348
348
|
}
|
@@ -351,27 +351,27 @@ function Xs() {
|
|
351
351
|
this.__data__ = [], this.size = 0;
|
352
352
|
}
|
353
353
|
function Vl(v) {
|
354
|
-
var _ = this.__data__,
|
355
|
-
if (
|
354
|
+
var _ = this.__data__, F = ln(_, v);
|
355
|
+
if (F < 0)
|
356
356
|
return !1;
|
357
357
|
var G = _.length - 1;
|
358
|
-
return
|
358
|
+
return F == G ? _.pop() : $e.call(_, F, 1), --this.size, !0;
|
359
359
|
}
|
360
360
|
function Wl(v) {
|
361
|
-
var _ = this.__data__,
|
362
|
-
return
|
361
|
+
var _ = this.__data__, F = ln(_, v);
|
362
|
+
return F < 0 ? void 0 : _[F][1];
|
363
363
|
}
|
364
364
|
function Gl(v) {
|
365
365
|
return ln(this.__data__, v) > -1;
|
366
366
|
}
|
367
367
|
function Xl(v, _) {
|
368
|
-
var
|
369
|
-
return G < 0 ? (++this.size,
|
368
|
+
var F = this.__data__, G = ln(F, v);
|
369
|
+
return G < 0 ? (++this.size, F.push([v, _])) : F[G][1] = _, this;
|
370
370
|
}
|
371
371
|
rt.prototype.clear = $l, rt.prototype.delete = Vl, rt.prototype.get = Wl, rt.prototype.has = Gl, rt.prototype.set = Xl;
|
372
372
|
function Ot(v) {
|
373
|
-
var _ = -1,
|
374
|
-
for (this.clear(); ++_ <
|
373
|
+
var _ = -1, F = v == null ? 0 : v.length;
|
374
|
+
for (this.clear(); ++_ < F; ) {
|
375
375
|
var G = v[_];
|
376
376
|
this.set(G[0], G[1]);
|
377
377
|
}
|
@@ -383,21 +383,21 @@ function Xs() {
|
|
383
383
|
string: new mt()
|
384
384
|
};
|
385
385
|
}
|
386
|
-
function
|
386
|
+
function Yl(v) {
|
387
387
|
var _ = un(this, v).delete(v);
|
388
388
|
return this.size -= _ ? 1 : 0, _;
|
389
389
|
}
|
390
|
-
function
|
390
|
+
function Kl(v) {
|
391
391
|
return un(this, v).get(v);
|
392
392
|
}
|
393
393
|
function Jl(v) {
|
394
394
|
return un(this, v).has(v);
|
395
395
|
}
|
396
396
|
function Ql(v, _) {
|
397
|
-
var
|
398
|
-
return
|
397
|
+
var F = un(this, v), G = F.size;
|
398
|
+
return F.set(v, _), this.size += F.size == G ? 0 : 1, this;
|
399
399
|
}
|
400
|
-
Ot.prototype.clear = Zl, Ot.prototype.delete =
|
400
|
+
Ot.prototype.clear = Zl, Ot.prototype.delete = Yl, Ot.prototype.get = Kl, Ot.prototype.has = Jl, Ot.prototype.set = Ql;
|
401
401
|
function It(v) {
|
402
402
|
var _ = this.__data__ = new rt(v);
|
403
403
|
this.size = _.size;
|
@@ -406,8 +406,8 @@ function Xs() {
|
|
406
406
|
this.__data__ = new rt(), this.size = 0;
|
407
407
|
}
|
408
408
|
function ts(v) {
|
409
|
-
var _ = this.__data__,
|
410
|
-
return this.size = _.size,
|
409
|
+
var _ = this.__data__, F = _.delete(v);
|
410
|
+
return this.size = _.size, F;
|
411
411
|
}
|
412
412
|
function ns(v) {
|
413
413
|
return this.__data__.get(v);
|
@@ -416,18 +416,18 @@ function Xs() {
|
|
416
416
|
return this.__data__.has(v);
|
417
417
|
}
|
418
418
|
function is(v, _) {
|
419
|
-
var
|
420
|
-
if (
|
421
|
-
var G =
|
419
|
+
var F = this.__data__;
|
420
|
+
if (F instanceof rt) {
|
421
|
+
var G = F.__data__;
|
422
422
|
if (!Ei || G.length < n - 1)
|
423
|
-
return G.push([v, _]), this.size = ++
|
424
|
-
|
423
|
+
return G.push([v, _]), this.size = ++F.size, this;
|
424
|
+
F = this.__data__ = new Ot(G);
|
425
425
|
}
|
426
|
-
return
|
426
|
+
return F.set(v, _), this.size = F.size, this;
|
427
427
|
}
|
428
428
|
It.prototype.clear = es, It.prototype.delete = ts, It.prototype.get = ns, It.prototype.has = rs, It.prototype.set = is;
|
429
429
|
function as(v, _) {
|
430
|
-
var
|
430
|
+
var F = $n(v), G = !F && Un(v), re = !F && !G && Ai(v), he = !F && !G && !re && Li(v), be = F || G || re || he, le = be ? St(v.length, String) : [], ve = le.length;
|
431
431
|
for (var We in v)
|
432
432
|
be && // Safari 9 has enumerable `arguments.length` in strict mode.
|
433
433
|
(We == "length" || // Node.js 0.10 has enumerable non-index properties on buffers.
|
@@ -436,26 +436,26 @@ function Xs() {
|
|
436
436
|
Ii(We, ve)) || le.push(We);
|
437
437
|
return le;
|
438
438
|
}
|
439
|
-
function Bn(v, _,
|
440
|
-
(
|
439
|
+
function Bn(v, _, F) {
|
440
|
+
(F !== void 0 && !cn(v[_], F) || F === void 0 && !(_ in v)) && Hn(v, _, F);
|
441
441
|
}
|
442
|
-
function os(v, _,
|
442
|
+
function os(v, _, F) {
|
443
443
|
var G = v[_];
|
444
|
-
(!(Oe.call(v, _) && cn(G,
|
444
|
+
(!(Oe.call(v, _) && cn(G, F)) || F === void 0 && !(_ in v)) && Hn(v, _, F);
|
445
445
|
}
|
446
446
|
function ln(v, _) {
|
447
|
-
for (var
|
448
|
-
if (cn(v[
|
449
|
-
return
|
447
|
+
for (var F = v.length; F--; )
|
448
|
+
if (cn(v[F][0], _))
|
449
|
+
return F;
|
450
450
|
return -1;
|
451
451
|
}
|
452
|
-
function Hn(v, _,
|
453
|
-
_ == "__proto__" &&
|
452
|
+
function Hn(v, _, F) {
|
453
|
+
_ == "__proto__" && Ye ? Ye(v, _, {
|
454
454
|
configurable: !0,
|
455
455
|
enumerable: !0,
|
456
|
-
value:
|
456
|
+
value: F,
|
457
457
|
writable: !0
|
458
|
-
}) : v[_] =
|
458
|
+
}) : v[_] = F;
|
459
459
|
}
|
460
460
|
var ls = xs();
|
461
461
|
function sn(v) {
|
@@ -476,39 +476,39 @@ function Xs() {
|
|
476
476
|
function cs(v) {
|
477
477
|
if (!gt(v))
|
478
478
|
return Es(v);
|
479
|
-
var _ = Pi(v),
|
479
|
+
var _ = Pi(v), F = [];
|
480
480
|
for (var G in v)
|
481
|
-
G == "constructor" && (_ || !Oe.call(v, G)) ||
|
482
|
-
return
|
481
|
+
G == "constructor" && (_ || !Oe.call(v, G)) || F.push(G);
|
482
|
+
return F;
|
483
483
|
}
|
484
|
-
function Oi(v, _,
|
484
|
+
function Oi(v, _, F, G, re) {
|
485
485
|
v !== _ && ls(_, function(he, be) {
|
486
486
|
if (re || (re = new It()), gt(he))
|
487
|
-
fs(v, _, be,
|
487
|
+
fs(v, _, be, F, Oi, G, re);
|
488
488
|
else {
|
489
489
|
var le = G ? G(qn(v, be), he, be + "", v, _, re) : void 0;
|
490
490
|
le === void 0 && (le = he), Bn(v, be, le);
|
491
491
|
}
|
492
492
|
}, Ni);
|
493
493
|
}
|
494
|
-
function fs(v, _,
|
495
|
-
var le = qn(v,
|
494
|
+
function fs(v, _, F, G, re, he, be) {
|
495
|
+
var le = qn(v, F), ve = qn(_, F), We = be.get(ve);
|
496
496
|
if (We) {
|
497
|
-
Bn(v,
|
497
|
+
Bn(v, F, We);
|
498
498
|
return;
|
499
499
|
}
|
500
|
-
var De = he ? he(le, ve,
|
500
|
+
var De = he ? he(le, ve, F + "", v, _, be) : void 0, qt = De === void 0;
|
501
501
|
if (qt) {
|
502
502
|
var Gn = $n(ve), Xn = !Gn && Ai(ve), Di = !Gn && !Xn && Li(ve);
|
503
503
|
De = ve, Gn || Xn || Di ? $n(le) ? De = le : Fs(le) ? De = ys(le) : Xn ? (qt = !1, De = hs(ve)) : Di ? (qt = !1, De = gs(ve)) : De = [] : Ls(ve) || Un(ve) ? (De = le, Un(le) ? De = Ns(le) : (!gt(le) || Wn(le)) && (De = Cs(ve))) : qt = !1;
|
504
504
|
}
|
505
|
-
qt && (be.set(ve, De), re(De, ve, G, he, be), be.delete(ve)), Bn(v,
|
505
|
+
qt && (be.set(ve, De), re(De, ve, G, he, be), be.delete(ve)), Bn(v, F, De);
|
506
506
|
}
|
507
507
|
function ds(v, _) {
|
508
508
|
return Is(Os(v, _, ji), v + "");
|
509
509
|
}
|
510
|
-
var ps =
|
511
|
-
return
|
510
|
+
var ps = Ye ? function(v, _) {
|
511
|
+
return Ye(v, "toString", {
|
512
512
|
configurable: !0,
|
513
513
|
enumerable: !1,
|
514
514
|
value: Ds(_),
|
@@ -523,74 +523,74 @@ function Xs() {
|
|
523
523
|
return new oe(_).set(new oe(v)), _;
|
524
524
|
}
|
525
525
|
function gs(v, _) {
|
526
|
-
var
|
527
|
-
return new v.constructor(
|
526
|
+
var F = ms(v.buffer);
|
527
|
+
return new v.constructor(F, v.byteOffset, v.length);
|
528
528
|
}
|
529
529
|
function ys(v, _) {
|
530
|
-
var
|
531
|
-
for (_ || (_ = Array(G)); ++
|
532
|
-
_[
|
530
|
+
var F = -1, G = v.length;
|
531
|
+
for (_ || (_ = Array(G)); ++F < G; )
|
532
|
+
_[F] = v[F];
|
533
533
|
return _;
|
534
534
|
}
|
535
|
-
function bs(v, _,
|
536
|
-
var re = !
|
537
|
-
|
535
|
+
function bs(v, _, F, G) {
|
536
|
+
var re = !F;
|
537
|
+
F || (F = {});
|
538
538
|
for (var he = -1, be = _.length; ++he < be; ) {
|
539
539
|
var le = _[he], ve = void 0;
|
540
|
-
ve === void 0 && (ve = v[le]), re ? Hn(
|
540
|
+
ve === void 0 && (ve = v[le]), re ? Hn(F, le, ve) : os(F, le, ve);
|
541
541
|
}
|
542
|
-
return
|
542
|
+
return F;
|
543
543
|
}
|
544
544
|
function vs(v) {
|
545
|
-
return ds(function(_,
|
546
|
-
var G = -1, re =
|
547
|
-
for (he = v.length > 3 && typeof he == "function" ? (re--, he) : void 0, be && ks(
|
548
|
-
var le =
|
545
|
+
return ds(function(_, F) {
|
546
|
+
var G = -1, re = F.length, he = re > 1 ? F[re - 1] : void 0, be = re > 2 ? F[2] : void 0;
|
547
|
+
for (he = v.length > 3 && typeof he == "function" ? (re--, he) : void 0, be && ks(F[0], F[1], be) && (he = re < 3 ? void 0 : he, re = 1), _ = Object(_); ++G < re; ) {
|
548
|
+
var le = F[G];
|
549
549
|
le && v(_, le, G, he);
|
550
550
|
}
|
551
551
|
return _;
|
552
552
|
});
|
553
553
|
}
|
554
554
|
function xs(v) {
|
555
|
-
return function(_,
|
555
|
+
return function(_, F, G) {
|
556
556
|
for (var re = -1, he = Object(_), be = G(_), le = be.length; le--; ) {
|
557
557
|
var ve = be[++re];
|
558
|
-
if (
|
558
|
+
if (F(he[ve], ve, he) === !1)
|
559
559
|
break;
|
560
560
|
}
|
561
561
|
return _;
|
562
562
|
};
|
563
563
|
}
|
564
564
|
function un(v, _) {
|
565
|
-
var
|
566
|
-
return Ss(_) ?
|
565
|
+
var F = v.__data__;
|
566
|
+
return Ss(_) ? F[typeof _ == "string" ? "string" : "hash"] : F.map;
|
567
567
|
}
|
568
568
|
function zn(v, _) {
|
569
|
-
var
|
570
|
-
return ss(
|
569
|
+
var F = pt(v, _);
|
570
|
+
return ss(F) ? F : void 0;
|
571
571
|
}
|
572
572
|
function ws(v) {
|
573
|
-
var _ = Oe.call(v, je),
|
573
|
+
var _ = Oe.call(v, je), F = v[je];
|
574
574
|
try {
|
575
575
|
v[je] = void 0;
|
576
576
|
var G = !0;
|
577
577
|
} catch {
|
578
578
|
}
|
579
579
|
var re = Et.call(v);
|
580
|
-
return G && (_ ? v[je] =
|
580
|
+
return G && (_ ? v[je] = F : delete v[je]), re;
|
581
581
|
}
|
582
582
|
function Cs(v) {
|
583
583
|
return typeof v.constructor == "function" && !Pi(v) ? Rl(ue(v)) : {};
|
584
584
|
}
|
585
585
|
function Ii(v, _) {
|
586
|
-
var
|
587
|
-
return _ = _ ?? o, !!_ && (
|
586
|
+
var F = typeof v;
|
587
|
+
return _ = _ ?? o, !!_ && (F == "number" || F != "symbol" && J.test(v)) && v > -1 && v % 1 == 0 && v < _;
|
588
588
|
}
|
589
|
-
function ks(v, _,
|
590
|
-
if (!gt(
|
589
|
+
function ks(v, _, F) {
|
590
|
+
if (!gt(F))
|
591
591
|
return !1;
|
592
592
|
var G = typeof _;
|
593
|
-
return (G == "number" ? Vn(
|
593
|
+
return (G == "number" ? Vn(F) && Ii(_, F.length) : G == "string" && _ in F) ? cn(F[_], v) : !1;
|
594
594
|
}
|
595
595
|
function Ss(v) {
|
596
596
|
var _ = typeof v;
|
@@ -600,27 +600,27 @@ function Xs() {
|
|
600
600
|
return !!lt && lt in v;
|
601
601
|
}
|
602
602
|
function Pi(v) {
|
603
|
-
var _ = v && v.constructor,
|
604
|
-
return v ===
|
603
|
+
var _ = v && v.constructor, F = typeof _ == "function" && _.prototype || ye;
|
604
|
+
return v === F;
|
605
605
|
}
|
606
606
|
function Es(v) {
|
607
607
|
var _ = [];
|
608
608
|
if (v != null)
|
609
|
-
for (var
|
610
|
-
_.push(
|
609
|
+
for (var F in Object(v))
|
610
|
+
_.push(F);
|
611
611
|
return _;
|
612
612
|
}
|
613
613
|
function Ts(v) {
|
614
614
|
return Et.call(v);
|
615
615
|
}
|
616
|
-
function Os(v, _,
|
616
|
+
function Os(v, _, F) {
|
617
617
|
return _ = Tt(_ === void 0 ? v.length - 1 : _, 0), function() {
|
618
618
|
for (var G = arguments, re = -1, he = Tt(G.length - _, 0), be = Array(he); ++re < he; )
|
619
619
|
be[re] = G[_ + re];
|
620
620
|
re = -1;
|
621
621
|
for (var le = Array(_ + 1); ++re < _; )
|
622
622
|
le[re] = G[re];
|
623
|
-
return le[_] =
|
623
|
+
return le[_] = F(be), Xe(v, this, le);
|
624
624
|
};
|
625
625
|
}
|
626
626
|
function qn(v, _) {
|
@@ -629,10 +629,10 @@ function Xs() {
|
|
629
629
|
}
|
630
630
|
var Is = Ps(ps);
|
631
631
|
function Ps(v) {
|
632
|
-
var _ = 0,
|
632
|
+
var _ = 0, F = 0;
|
633
633
|
return function() {
|
634
|
-
var G = Ve(), re = a - (G -
|
635
|
-
if (
|
634
|
+
var G = Ve(), re = a - (G - F);
|
635
|
+
if (F = G, re > 0) {
|
636
636
|
if (++_ >= i)
|
637
637
|
return arguments[0];
|
638
638
|
} else
|
@@ -672,7 +672,7 @@ function Xs() {
|
|
672
672
|
if (!gt(v))
|
673
673
|
return !1;
|
674
674
|
var _ = sn(v);
|
675
|
-
return _ == d || _ == y || _ == u || _ ==
|
675
|
+
return _ == d || _ == y || _ == u || _ == L;
|
676
676
|
}
|
677
677
|
function Fi(v) {
|
678
678
|
return typeof v == "number" && v > -1 && v % 1 == 0 && v <= o;
|
@@ -690,8 +690,8 @@ function Xs() {
|
|
690
690
|
var _ = ue(v);
|
691
691
|
if (_ === null)
|
692
692
|
return !0;
|
693
|
-
var
|
694
|
-
return typeof
|
693
|
+
var F = Oe.call(_, "constructor") && _.constructor;
|
694
|
+
return typeof F == "function" && F instanceof F && Ne.call(F) == Bt;
|
695
695
|
}
|
696
696
|
var Li = Pe ? _t(Pe) : us;
|
697
697
|
function Ns(v) {
|
@@ -700,8 +700,8 @@ function Xs() {
|
|
700
700
|
function Ni(v) {
|
701
701
|
return Vn(v) ? as(v) : cs(v);
|
702
702
|
}
|
703
|
-
var js = vs(function(v, _,
|
704
|
-
Oi(v, _,
|
703
|
+
var js = vs(function(v, _, F) {
|
704
|
+
Oi(v, _, F);
|
705
705
|
});
|
706
706
|
function Ds(v) {
|
707
707
|
return function() {
|
@@ -718,7 +718,7 @@ function Xs() {
|
|
718
718
|
}(Zt, Zt.exports)), Zt.exports;
|
719
719
|
}
|
720
720
|
var Zs = Xs();
|
721
|
-
const Vr = /* @__PURE__ */ tt(Zs),
|
721
|
+
const Vr = /* @__PURE__ */ tt(Zs), Ys = {
|
722
722
|
id: "degrees-canvas-support",
|
723
723
|
chatApi: {
|
724
724
|
endpoint: "https://xpert-platform-services-api.prod.ai.2u.com/xpert/omnichannel",
|
@@ -831,7 +831,7 @@ const Vr = /* @__PURE__ */ tt(Zs), Ks = {
|
|
831
831
|
useOwnChat: !1
|
832
832
|
}
|
833
833
|
}
|
834
|
-
},
|
834
|
+
}, Ks = {
|
835
835
|
id: "degrees-moodle-support",
|
836
836
|
chatApi: {
|
837
837
|
endpoint: "https://xpert-platform-services-api.prod.ai.2u.com/xpert/omnichannel",
|
@@ -1183,7 +1183,7 @@ const Vr = /* @__PURE__ */ tt(Zs), Ks = {
|
|
1183
1183
|
},
|
1184
1184
|
container: null
|
1185
1185
|
},
|
1186
|
-
systemMessage: "Hi there! 👋 I’m Xpert
|
1186
|
+
systemMessage: "Hi there! 👋 I’m Xpert. How may I assist you in navigating your Online Learning Campus today?",
|
1187
1187
|
prompts: null,
|
1188
1188
|
userMessageBubble: {
|
1189
1189
|
style: {
|
@@ -1395,8 +1395,8 @@ const Vr = /* @__PURE__ */ tt(Zs), Ks = {
|
|
1395
1395
|
}
|
1396
1396
|
}
|
1397
1397
|
}, ru = {
|
1398
|
-
"degrees-canvas-support":
|
1399
|
-
"degrees-moodle-support":
|
1398
|
+
"degrees-canvas-support": Ys,
|
1399
|
+
"degrees-moodle-support": Ks,
|
1400
1400
|
edx: Js,
|
1401
1401
|
"edx-global-support": Qs,
|
1402
1402
|
"exec-ed-ss-olc-moodle": eu,
|
@@ -1709,8 +1709,8 @@ eyes follow your mouse when you hover near it.`, Wr = ({
|
|
1709
1709
|
};
|
1710
1710
|
}, [l]), Ce(() => {
|
1711
1711
|
const g = (P) => {
|
1712
|
-
const
|
1713
|
-
if (!(o != null && o.current) || c ||
|
1712
|
+
const L = window.devicePixelRatio > 1.5;
|
1713
|
+
if (!(o != null && o.current) || c || L)
|
1714
1714
|
return;
|
1715
1715
|
a.current.querySelectorAll(
|
1716
1716
|
".xpert_chatbot__animated_graduate__pupil"
|
@@ -2257,14 +2257,14 @@ function Eu(e, t) {
|
|
2257
2257
|
let a = n.body;
|
2258
2258
|
[n, r].forEach((h) => {
|
2259
2259
|
const w = [], g = h.hFlip, P = h.vFlip;
|
2260
|
-
let
|
2261
|
-
g ? P ?
|
2260
|
+
let L = h.rotate;
|
2261
|
+
g ? P ? L += 2 : (w.push(
|
2262
2262
|
"translate(" + (i.width + i.left).toString() + " " + (0 - i.top).toString() + ")"
|
2263
2263
|
), w.push("scale(-1 1)"), i.top = i.left = 0) : P && (w.push(
|
2264
2264
|
"translate(" + (0 - i.left).toString() + " " + (i.height + i.top).toString() + ")"
|
2265
2265
|
), w.push("scale(1 -1)"), i.top = i.left = 0);
|
2266
2266
|
let q;
|
2267
|
-
switch (
|
2267
|
+
switch (L < 0 && (L -= Math.floor(L / 4) * 4), L = L % 4, L) {
|
2268
2268
|
case 1:
|
2269
2269
|
q = i.height / 2 + i.top, w.unshift(
|
2270
2270
|
"rotate(90 " + q.toString() + " " + q.toString() + ")"
|
@@ -2281,7 +2281,7 @@ function Eu(e, t) {
|
|
2281
2281
|
);
|
2282
2282
|
break;
|
2283
2283
|
}
|
2284
|
-
|
2284
|
+
L % 2 === 1 && (i.left !== i.top && (q = i.left, i.left = i.top, i.top = q), i.width !== i.height && (q = i.width, i.width = i.height, i.height = q)), w.length && (a = Su(
|
2285
2285
|
a,
|
2286
2286
|
'<g transform="' + w.join(" ") + '">',
|
2287
2287
|
"</g>"
|
@@ -2328,7 +2328,7 @@ function Au(e, t) {
|
|
2328
2328
|
function Ir(e) {
|
2329
2329
|
return Or[e] || Or[""];
|
2330
2330
|
}
|
2331
|
-
function
|
2331
|
+
function Yr(e) {
|
2332
2332
|
let t;
|
2333
2333
|
if (typeof e.resources == "string")
|
2334
2334
|
t = [e.resources];
|
@@ -2353,21 +2353,21 @@ function Kr(e) {
|
|
2353
2353
|
dataAfterTimeout: e.dataAfterTimeout !== !1
|
2354
2354
|
};
|
2355
2355
|
}
|
2356
|
-
const
|
2356
|
+
const Kr = /* @__PURE__ */ Object.create(null), Ut = [
|
2357
2357
|
"https://api.simplesvg.com",
|
2358
2358
|
"https://api.unisvg.com"
|
2359
2359
|
], xn = [];
|
2360
2360
|
for (; Ut.length > 0; )
|
2361
2361
|
Ut.length === 1 || Math.random() > 0.5 ? xn.push(Ut.shift()) : xn.push(Ut.pop());
|
2362
|
-
|
2362
|
+
Kr[""] = Yr({
|
2363
2363
|
resources: ["https://api.iconify.design"].concat(xn)
|
2364
2364
|
});
|
2365
2365
|
function Fu(e, t) {
|
2366
|
-
const n =
|
2367
|
-
return n === null ? !1 : (
|
2366
|
+
const n = Yr(t);
|
2367
|
+
return n === null ? !1 : (Kr[e] = n, !0);
|
2368
2368
|
}
|
2369
2369
|
function Jr(e) {
|
2370
|
-
return
|
2370
|
+
return Kr[e];
|
2371
2371
|
}
|
2372
2372
|
const Lu = () => {
|
2373
2373
|
let e;
|
@@ -2377,7 +2377,7 @@ const Lu = () => {
|
|
2377
2377
|
} catch {
|
2378
2378
|
}
|
2379
2379
|
};
|
2380
|
-
let
|
2380
|
+
let Yi = Lu();
|
2381
2381
|
function Nu(e, t) {
|
2382
2382
|
const n = Jr(e);
|
2383
2383
|
if (!n)
|
@@ -2424,7 +2424,7 @@ function Mu(e) {
|
|
2424
2424
|
return "/";
|
2425
2425
|
}
|
2426
2426
|
const Ru = (e, t, n) => {
|
2427
|
-
if (!
|
2427
|
+
if (!Yi) {
|
2428
2428
|
n("abort", 424);
|
2429
2429
|
return;
|
2430
2430
|
}
|
@@ -2447,7 +2447,7 @@ const Ru = (e, t, n) => {
|
|
2447
2447
|
return;
|
2448
2448
|
}
|
2449
2449
|
let i = 503;
|
2450
|
-
|
2450
|
+
Yi(e + r).then((a) => {
|
2451
2451
|
const o = a.status;
|
2452
2452
|
if (o !== 200) {
|
2453
2453
|
setTimeout(() => {
|
@@ -2616,14 +2616,14 @@ function Wu(e, t, n, r) {
|
|
2616
2616
|
b(void 0, c);
|
2617
2617
|
});
|
2618
2618
|
}
|
2619
|
-
function
|
2619
|
+
function L() {
|
2620
2620
|
p.forEach((b) => {
|
2621
2621
|
b.status === "pending" && (b.status = "aborted");
|
2622
2622
|
}), p = [];
|
2623
2623
|
}
|
2624
2624
|
function q(b, E, z) {
|
2625
2625
|
const N = E !== "success";
|
2626
|
-
switch (p = p.filter((
|
2626
|
+
switch (p = p.filter((U) => U !== b), s) {
|
2627
2627
|
case "pending":
|
2628
2628
|
break;
|
2629
2629
|
case "failed":
|
@@ -2641,12 +2641,12 @@ function Wu(e, t, n, r) {
|
|
2641
2641
|
c = z, p.length || (o.length ? I() : P());
|
2642
2642
|
return;
|
2643
2643
|
}
|
2644
|
-
if (y(),
|
2645
|
-
const
|
2646
|
-
|
2644
|
+
if (y(), L(), !e.random) {
|
2645
|
+
const U = e.resources.indexOf(b.resource);
|
2646
|
+
U !== -1 && U !== e.index && (e.index = U);
|
2647
2647
|
}
|
2648
|
-
s = "completed", d.forEach((
|
2649
|
-
|
2648
|
+
s = "completed", d.forEach((U) => {
|
2649
|
+
U(z);
|
2650
2650
|
});
|
2651
2651
|
}
|
2652
2652
|
function I() {
|
@@ -2657,7 +2657,7 @@ function Wu(e, t, n, r) {
|
|
2657
2657
|
if (b === void 0) {
|
2658
2658
|
if (p.length) {
|
2659
2659
|
f = setTimeout(() => {
|
2660
|
-
y(), s === "pending" && (
|
2660
|
+
y(), s === "pending" && (L(), P());
|
2661
2661
|
}, e.timeout);
|
2662
2662
|
return;
|
2663
2663
|
}
|
@@ -2708,7 +2708,7 @@ function Ao(e) {
|
|
2708
2708
|
cleanup: r
|
2709
2709
|
};
|
2710
2710
|
}
|
2711
|
-
function
|
2711
|
+
function Ki() {
|
2712
2712
|
}
|
2713
2713
|
const nr = /* @__PURE__ */ Object.create(null);
|
2714
2714
|
function Gu(e) {
|
@@ -2729,21 +2729,21 @@ function Xu(e, t, n) {
|
|
2729
2729
|
if (typeof e == "string") {
|
2730
2730
|
const a = Ir(e);
|
2731
2731
|
if (!a)
|
2732
|
-
return n(void 0, 424),
|
2732
|
+
return n(void 0, 424), Ki;
|
2733
2733
|
i = a.send;
|
2734
2734
|
const o = Gu(e);
|
2735
2735
|
o && (r = o.redundancy);
|
2736
2736
|
} else {
|
2737
|
-
const a =
|
2737
|
+
const a = Yr(e);
|
2738
2738
|
if (a) {
|
2739
2739
|
r = Ao(a);
|
2740
2740
|
const o = e.resources ? e.resources[0] : "", l = Ir(o);
|
2741
2741
|
l && (i = l.send);
|
2742
2742
|
}
|
2743
2743
|
}
|
2744
|
-
return !r || !i ? (n(void 0, 424),
|
2744
|
+
return !r || !i ? (n(void 0, 424), Ki) : r.query(t, i, n)().abort;
|
2745
2745
|
}
|
2746
|
-
const Ji = "iconify2", tn = "iconify", Fo = tn + "-count", Qi = tn + "-version", Lo = 36e5, Zu = 168,
|
2746
|
+
const Ji = "iconify2", tn = "iconify", Fo = tn + "-count", Qi = tn + "-version", Lo = 36e5, Zu = 168, Yu = 50;
|
2747
2747
|
function Pr(e, t) {
|
2748
2748
|
try {
|
2749
2749
|
return e.getItem(t);
|
@@ -2776,7 +2776,7 @@ const Nn = {
|
|
2776
2776
|
session: /* @__PURE__ */ new Set()
|
2777
2777
|
};
|
2778
2778
|
let ei = !1;
|
2779
|
-
function
|
2779
|
+
function Ku(e) {
|
2780
2780
|
ei = e;
|
2781
2781
|
}
|
2782
2782
|
let pn = typeof window > "u" ? {} : window;
|
@@ -2822,7 +2822,7 @@ function Do(e, t) {
|
|
2822
2822
|
}
|
2823
2823
|
function Mo() {
|
2824
2824
|
if (!ei) {
|
2825
|
-
|
2825
|
+
Ku(!0);
|
2826
2826
|
for (const e in Nn)
|
2827
2827
|
Do(e, (t) => {
|
2828
2828
|
const n = t.data, r = t.provider, i = n.prefix, a = vt(
|
@@ -2861,7 +2861,7 @@ function Qu(e, t) {
|
|
2861
2861
|
let o;
|
2862
2862
|
if (a.size)
|
2863
2863
|
a.delete(o = Array.from(a).shift());
|
2864
|
-
else if (o = Fr(i), o >=
|
2864
|
+
else if (o = Fr(i), o >= Yu || !Ar(i, o + 1))
|
2865
2865
|
return;
|
2866
2866
|
const l = {
|
2867
2867
|
cached: Math.floor(Date.now() / Lo),
|
@@ -3060,19 +3060,19 @@ function fc(e) {
|
|
3060
3060
|
function dc(e) {
|
3061
3061
|
return 'url("' + fc(e) + '")';
|
3062
3062
|
}
|
3063
|
-
let
|
3063
|
+
let Yt;
|
3064
3064
|
function pc() {
|
3065
3065
|
try {
|
3066
|
-
|
3066
|
+
Yt = window.trustedTypes.createPolicy("iconify", {
|
3067
3067
|
// eslint-disable-next-line @typescript-eslint/no-unsafe-return
|
3068
3068
|
createHTML: (e) => e
|
3069
3069
|
});
|
3070
3070
|
} catch {
|
3071
|
-
|
3071
|
+
Yt = null;
|
3072
3072
|
}
|
3073
3073
|
}
|
3074
3074
|
function hc(e) {
|
3075
|
-
return
|
3075
|
+
return Yt === void 0 && pc(), Yt ? Yt.createHTML(e) : e;
|
3076
3076
|
}
|
3077
3077
|
const Ro = {
|
3078
3078
|
...Io,
|
@@ -3120,8 +3120,8 @@ const bc = (e, t, n) => {
|
|
3120
3120
|
"provider",
|
3121
3121
|
"prefix"
|
3122
3122
|
];
|
3123
|
-
for (const
|
3124
|
-
w[
|
3123
|
+
for (const L of P)
|
3124
|
+
w[L] && g.push("iconify--" + w[L]);
|
3125
3125
|
s.className = g.join(" ");
|
3126
3126
|
}
|
3127
3127
|
}
|
@@ -3435,7 +3435,7 @@ function Dn({
|
|
3435
3435
|
text: o,
|
3436
3436
|
userTrackingName: l
|
3437
3437
|
}) {
|
3438
|
-
var g, P,
|
3438
|
+
var g, P, L, q;
|
3439
3439
|
const [s, u] = ee(!0), { primaryColor: c, id: f, userTracking: p, conversationScreen: d } = Q(Se), y = ct(
|
3440
3440
|
(I) => {
|
3441
3441
|
var b, E, z, N;
|
@@ -3453,11 +3453,11 @@ function Dn({
|
|
3453
3453
|
[t]
|
3454
3454
|
);
|
3455
3455
|
Ce(() => {
|
3456
|
-
var E, z, N,
|
3456
|
+
var E, z, N, U;
|
3457
3457
|
let I, b;
|
3458
3458
|
return (E = d == null ? void 0 : d.liveChat) != null && E.useOwnChat && (b = setTimeout(() => {
|
3459
3459
|
u(!1);
|
3460
|
-
}, 3e3)), (z = d == null ? void 0 : d.liveChat) != null && z.enabled && !((N = d == null ? void 0 : d.liveChat) != null && N.useOwnChat) && (window.Five9ChatPlugin || (I = document.createElement("script"), I.type = "text/javascript", I.src = (
|
3460
|
+
}, 3e3)), (z = d == null ? void 0 : d.liveChat) != null && z.enabled && !((N = d == null ? void 0 : d.liveChat) != null && N.useOwnChat) && (window.Five9ChatPlugin || (I = document.createElement("script"), I.type = "text/javascript", I.src = (U = d == null ? void 0 : d.liveChat) == null ? void 0 : U.sourceCode, I.async = !0, I.onload = () => {
|
3461
3461
|
var D;
|
3462
3462
|
window.Five9ChatPlugin((D = d == null ? void 0 : d.liveChat) == null ? void 0 : D.options);
|
3463
3463
|
}, document.body.appendChild(I)), window.addEventListener("message", y), window.addEventListener("message", h), b = setTimeout(() => {
|
@@ -3469,7 +3469,7 @@ function Dn({
|
|
3469
3469
|
}, [
|
3470
3470
|
(g = d == null ? void 0 : d.liveChat) == null ? void 0 : g.enabled,
|
3471
3471
|
(P = d == null ? void 0 : d.liveChat) == null ? void 0 : P.options,
|
3472
|
-
(
|
3472
|
+
(L = d == null ? void 0 : d.liveChat) == null ? void 0 : L.sourceCode,
|
3473
3473
|
(q = d == null ? void 0 : d.liveChat) == null ? void 0 : q.useOwnChat,
|
3474
3474
|
y,
|
3475
3475
|
h
|
@@ -3570,7 +3570,7 @@ function wc() {
|
|
3570
3570
|
}
|
3571
3571
|
var Cc = wc();
|
3572
3572
|
const qo = /* @__PURE__ */ tt(Cc);
|
3573
|
-
function
|
3573
|
+
function Kt(e) {
|
3574
3574
|
return !e || typeof e != "object" ? "" : "position" in e || "type" in e ? la(e.position) : "start" in e || "end" in e ? la(e) : "line" in e || "column" in e ? Nr(e) : "";
|
3575
3575
|
}
|
3576
3576
|
function Nr(e) {
|
@@ -3613,7 +3613,7 @@ class qe extends Error {
|
|
3613
3613
|
const o = r.indexOf(":");
|
3614
3614
|
o === -1 ? i[1] = r : (i[0] = r.slice(0, o), i[1] = r.slice(o + 1));
|
3615
3615
|
}
|
3616
|
-
n && ("type" in n || "position" in n ? n.position && (a = n.position) : "start" in n || "end" in n ? a = n : ("line" in n || "column" in n) && (a.start = n)), this.name =
|
3616
|
+
n && ("type" in n || "position" in n ? n.position && (a = n.position) : "start" in n || "end" in n ? a = n : ("line" in n || "column" in n) && (a.start = n)), this.name = Kt(n) || "1:1", this.message = typeof t == "object" ? t.message : t, this.stack = "", typeof t == "object" && t.stack && (this.stack = t.stack), this.reason = this.message, this.fatal, this.line = a.start.line, this.column = a.start.column, this.position = a, this.source = i[0], this.ruleId = i[1], this.file, this.actual, this.expected, this.url, this.note;
|
3617
3617
|
}
|
3618
3618
|
}
|
3619
3619
|
qe.prototype.file = "";
|
@@ -3627,7 +3627,7 @@ qe.prototype.line = null;
|
|
3627
3627
|
qe.prototype.source = null;
|
3628
3628
|
qe.prototype.ruleId = null;
|
3629
3629
|
qe.prototype.position = null;
|
3630
|
-
const
|
3630
|
+
const Ke = { basename: kc, dirname: Sc, extname: _c, join: Ec, sep: "/" };
|
3631
3631
|
function kc(e, t) {
|
3632
3632
|
if (t !== void 0 && typeof t != "string")
|
3633
3633
|
throw new TypeError('"ext" argument must be a string');
|
@@ -3841,7 +3841,7 @@ class Uo {
|
|
3841
3841
|
* Get the parent path (example: `'~'`).
|
3842
3842
|
*/
|
3843
3843
|
get dirname() {
|
3844
|
-
return typeof this.path == "string" ?
|
3844
|
+
return typeof this.path == "string" ? Ke.dirname(this.path) : void 0;
|
3845
3845
|
}
|
3846
3846
|
/**
|
3847
3847
|
* Set the parent path (example: `'~'`).
|
@@ -3849,13 +3849,13 @@ class Uo {
|
|
3849
3849
|
* Cannot be set if there’s no `path` yet.
|
3850
3850
|
*/
|
3851
3851
|
set dirname(t) {
|
3852
|
-
ua(this.basename, "dirname"), this.path =
|
3852
|
+
ua(this.basename, "dirname"), this.path = Ke.join(t || "", this.basename);
|
3853
3853
|
}
|
3854
3854
|
/**
|
3855
3855
|
* Get the basename (including extname) (example: `'index.min.js'`).
|
3856
3856
|
*/
|
3857
3857
|
get basename() {
|
3858
|
-
return typeof this.path == "string" ?
|
3858
|
+
return typeof this.path == "string" ? Ke.basename(this.path) : void 0;
|
3859
3859
|
}
|
3860
3860
|
/**
|
3861
3861
|
* Set basename (including extname) (`'index.min.js'`).
|
@@ -3865,13 +3865,13 @@ class Uo {
|
|
3865
3865
|
* Cannot be nullified (use `file.path = file.dirname` instead).
|
3866
3866
|
*/
|
3867
3867
|
set basename(t) {
|
3868
|
-
or(t, "basename"), ar(t, "basename"), this.path =
|
3868
|
+
or(t, "basename"), ar(t, "basename"), this.path = Ke.join(this.dirname || "", t);
|
3869
3869
|
}
|
3870
3870
|
/**
|
3871
3871
|
* Get the extname (including dot) (example: `'.js'`).
|
3872
3872
|
*/
|
3873
3873
|
get extname() {
|
3874
|
-
return typeof this.path == "string" ?
|
3874
|
+
return typeof this.path == "string" ? Ke.extname(this.path) : void 0;
|
3875
3875
|
}
|
3876
3876
|
/**
|
3877
3877
|
* Set the extname (including dot) (example: `'.js'`).
|
@@ -3887,13 +3887,13 @@ class Uo {
|
|
3887
3887
|
if (t.includes(".", 1))
|
3888
3888
|
throw new Error("`extname` cannot contain multiple dots");
|
3889
3889
|
}
|
3890
|
-
this.path =
|
3890
|
+
this.path = Ke.join(this.dirname, this.stem + (t || ""));
|
3891
3891
|
}
|
3892
3892
|
/**
|
3893
3893
|
* Get the stem (basename w/o extname) (example: `'index.min'`).
|
3894
3894
|
*/
|
3895
3895
|
get stem() {
|
3896
|
-
return typeof this.path == "string" ?
|
3896
|
+
return typeof this.path == "string" ? Ke.basename(this.path, this.extname) : void 0;
|
3897
3897
|
}
|
3898
3898
|
/**
|
3899
3899
|
* Set the stem (basename w/o extname) (example: `'index.min'`).
|
@@ -3903,7 +3903,7 @@ class Uo {
|
|
3903
3903
|
* Cannot be nullified (use `file.path = file.dirname` instead).
|
3904
3904
|
*/
|
3905
3905
|
set stem(t) {
|
3906
|
-
or(t, "stem"), ar(t, "stem"), this.path =
|
3906
|
+
or(t, "stem"), ar(t, "stem"), this.path = Ke.join(this.dirname || "", t + (this.extname || ""));
|
3907
3907
|
}
|
3908
3908
|
/**
|
3909
3909
|
* Serialize the file.
|
@@ -3983,9 +3983,9 @@ class Uo {
|
|
3983
3983
|
}
|
3984
3984
|
}
|
3985
3985
|
function ar(e, t) {
|
3986
|
-
if (e && e.includes(
|
3986
|
+
if (e && e.includes(Ke.sep))
|
3987
3987
|
throw new Error(
|
3988
|
-
"`" + t + "` cannot be a path: did not expect `" +
|
3988
|
+
"`" + t + "` cannot be a path: did not expect `" + Ke.sep + "`"
|
3989
3989
|
);
|
3990
3990
|
}
|
3991
3991
|
function or(e, t) {
|
@@ -4140,7 +4140,7 @@ function Vo() {
|
|
4140
4140
|
if (cr("use", r), h != null) if (typeof h == "function")
|
4141
4141
|
I(h, ...w);
|
4142
4142
|
else if (typeof h == "object")
|
4143
|
-
Array.isArray(h) ? q(h) :
|
4143
|
+
Array.isArray(h) ? q(h) : L(h);
|
4144
4144
|
else
|
4145
4145
|
throw new TypeError("Expected usable value, not `" + h + "`");
|
4146
4146
|
return g && (n.settings = Object.assign(n.settings || {}, g)), a;
|
@@ -4152,11 +4152,11 @@ function Vo() {
|
|
4152
4152
|
const [E, ...z] = b;
|
4153
4153
|
I(E, ...z);
|
4154
4154
|
} else
|
4155
|
-
|
4155
|
+
L(b);
|
4156
4156
|
else
|
4157
4157
|
throw new TypeError("Expected usable value, not `" + b + "`");
|
4158
4158
|
}
|
4159
|
-
function
|
4159
|
+
function L(b) {
|
4160
4160
|
q(b.plugins), b.settings && (g = Object.assign(g || {}, b.settings));
|
4161
4161
|
}
|
4162
4162
|
function q(b) {
|
@@ -4193,17 +4193,17 @@ function Vo() {
|
|
4193
4193
|
if (ha(h), a.freeze(), !g && typeof w == "function" && (g = w, w = void 0), !g)
|
4194
4194
|
return new Promise(P);
|
4195
4195
|
P(null, g);
|
4196
|
-
function P(
|
4196
|
+
function P(L, q) {
|
4197
4197
|
e.run(h, Vt(w), I);
|
4198
4198
|
function I(b, E, z) {
|
4199
|
-
E = E || h, b ? q(b) :
|
4199
|
+
E = E || h, b ? q(b) : L ? L(E) : g(null, E, z);
|
4200
4200
|
}
|
4201
4201
|
}
|
4202
4202
|
}
|
4203
4203
|
function p(h, w) {
|
4204
4204
|
let g, P;
|
4205
|
-
return a.run(h, w,
|
4206
|
-
function
|
4205
|
+
return a.run(h, w, L), ma("runSync", "run", P), g;
|
4206
|
+
function L(q, I) {
|
4207
4207
|
ca(q), g = I, P = !0;
|
4208
4208
|
}
|
4209
4209
|
}
|
@@ -4211,7 +4211,7 @@ function Vo() {
|
|
4211
4211
|
if (a.freeze(), sr("process", a.Parser), ur("process", a.Compiler), !w)
|
4212
4212
|
return new Promise(g);
|
4213
4213
|
g(null, w);
|
4214
|
-
function g(P,
|
4214
|
+
function g(P, L) {
|
4215
4215
|
const q = Vt(h);
|
4216
4216
|
a.run(a.parse(q), q, (b, E, z) => {
|
4217
4217
|
if (b || !E || !z)
|
@@ -4222,7 +4222,7 @@ function Vo() {
|
|
4222
4222
|
}
|
4223
4223
|
});
|
4224
4224
|
function I(b, E) {
|
4225
|
-
b || !E ?
|
4225
|
+
b || !E ? L(b) : P ? P(E) : w(null, E);
|
4226
4226
|
}
|
4227
4227
|
}
|
4228
4228
|
}
|
@@ -4231,8 +4231,8 @@ function Vo() {
|
|
4231
4231
|
a.freeze(), sr("processSync", a.Parser), ur("processSync", a.Compiler);
|
4232
4232
|
const g = Vt(h);
|
4233
4233
|
return a.process(g, P), ma("processSync", "process", w), g;
|
4234
|
-
function P(
|
4235
|
-
w = !0, ca(
|
4234
|
+
function P(L) {
|
4235
|
+
w = !0, ca(L);
|
4236
4236
|
}
|
4237
4237
|
}
|
4238
4238
|
}
|
@@ -4363,8 +4363,8 @@ function Mr(e) {
|
|
4363
4363
|
e !== null && (e < 32 || e === 127)
|
4364
4364
|
);
|
4365
4365
|
}
|
4366
|
-
const Rr = dt(/\d/),
|
4367
|
-
function
|
4366
|
+
const Rr = dt(/\d/), Yc = dt(/[\dA-Fa-f]/), Kc = dt(/[!-/:-@[-`{-~]/);
|
4367
|
+
function K(e) {
|
4368
4368
|
return e !== null && e < -2;
|
4369
4369
|
}
|
4370
4370
|
function Le(e) {
|
@@ -4424,7 +4424,7 @@ function tf(e) {
|
|
4424
4424
|
e.exit("chunkText"), e.exit("paragraph"), e.consume(l);
|
4425
4425
|
return;
|
4426
4426
|
}
|
4427
|
-
return
|
4427
|
+
return K(l) ? (e.consume(l), e.exit("chunkText"), a) : (e.consume(l), o);
|
4428
4428
|
}
|
4429
4429
|
}
|
4430
4430
|
const nf = {
|
@@ -4436,18 +4436,18 @@ function rf(e) {
|
|
4436
4436
|
const t = this, n = [];
|
4437
4437
|
let r = 0, i, a, o;
|
4438
4438
|
return l;
|
4439
|
-
function l(
|
4439
|
+
function l(L) {
|
4440
4440
|
if (r < n.length) {
|
4441
4441
|
const q = n[r];
|
4442
4442
|
return t.containerState = q[1], e.attempt(
|
4443
4443
|
q[0].continuation,
|
4444
4444
|
s,
|
4445
4445
|
u
|
4446
|
-
)(
|
4446
|
+
)(L);
|
4447
4447
|
}
|
4448
|
-
return u(
|
4448
|
+
return u(L);
|
4449
4449
|
}
|
4450
|
-
function s(
|
4450
|
+
function s(L) {
|
4451
4451
|
if (r++, t.containerState._closeFlow) {
|
4452
4452
|
t.containerState._closeFlow = void 0, i && P();
|
4453
4453
|
const q = t.events.length;
|
@@ -4466,61 +4466,61 @@ function rf(e) {
|
|
4466
4466
|
I + 1,
|
4467
4467
|
0,
|
4468
4468
|
t.events.slice(q)
|
4469
|
-
), t.events.length = E, u(
|
4469
|
+
), t.events.length = E, u(L);
|
4470
4470
|
}
|
4471
|
-
return l(
|
4471
|
+
return l(L);
|
4472
4472
|
}
|
4473
|
-
function u(
|
4473
|
+
function u(L) {
|
4474
4474
|
if (r === n.length) {
|
4475
4475
|
if (!i)
|
4476
|
-
return p(
|
4476
|
+
return p(L);
|
4477
4477
|
if (i.currentConstruct && i.currentConstruct.concrete)
|
4478
|
-
return y(
|
4478
|
+
return y(L);
|
4479
4479
|
t.interrupt = !!(i.currentConstruct && !i._gfmTableDynamicInterruptHack);
|
4480
4480
|
}
|
4481
4481
|
return t.containerState = {}, e.check(
|
4482
4482
|
ba,
|
4483
4483
|
c,
|
4484
4484
|
f
|
4485
|
-
)(
|
4485
|
+
)(L);
|
4486
4486
|
}
|
4487
|
-
function c(
|
4488
|
-
return i && P(), g(r), p(
|
4487
|
+
function c(L) {
|
4488
|
+
return i && P(), g(r), p(L);
|
4489
4489
|
}
|
4490
|
-
function f(
|
4491
|
-
return t.parser.lazy[t.now().line] = r !== n.length, o = t.now().offset, y(
|
4490
|
+
function f(L) {
|
4491
|
+
return t.parser.lazy[t.now().line] = r !== n.length, o = t.now().offset, y(L);
|
4492
4492
|
}
|
4493
|
-
function p(
|
4493
|
+
function p(L) {
|
4494
4494
|
return t.containerState = {}, e.attempt(
|
4495
4495
|
ba,
|
4496
4496
|
d,
|
4497
4497
|
y
|
4498
|
-
)(
|
4498
|
+
)(L);
|
4499
4499
|
}
|
4500
|
-
function d(
|
4501
|
-
return r++, n.push([t.currentConstruct, t.containerState]), p(
|
4500
|
+
function d(L) {
|
4501
|
+
return r++, n.push([t.currentConstruct, t.containerState]), p(L);
|
4502
4502
|
}
|
4503
|
-
function y(
|
4504
|
-
if (
|
4505
|
-
i && P(), g(0), e.consume(
|
4503
|
+
function y(L) {
|
4504
|
+
if (L === null) {
|
4505
|
+
i && P(), g(0), e.consume(L);
|
4506
4506
|
return;
|
4507
4507
|
}
|
4508
4508
|
return i = i || t.parser.flow(t.now()), e.enter("chunkFlow", {
|
4509
4509
|
contentType: "flow",
|
4510
4510
|
previous: a,
|
4511
4511
|
_tokenizer: i
|
4512
|
-
}), h(
|
4512
|
+
}), h(L);
|
4513
4513
|
}
|
4514
|
-
function h(
|
4515
|
-
if (
|
4516
|
-
w(e.exit("chunkFlow"), !0), g(0), e.consume(
|
4514
|
+
function h(L) {
|
4515
|
+
if (L === null) {
|
4516
|
+
w(e.exit("chunkFlow"), !0), g(0), e.consume(L);
|
4517
4517
|
return;
|
4518
4518
|
}
|
4519
|
-
return
|
4519
|
+
return K(L) ? (e.consume(L), w(e.exit("chunkFlow")), r = 0, t.interrupt = void 0, l) : (e.consume(L), h);
|
4520
4520
|
}
|
4521
|
-
function w(
|
4522
|
-
const I = t.sliceStream(
|
4523
|
-
if (q && I.push(null),
|
4521
|
+
function w(L, q) {
|
4522
|
+
const I = t.sliceStream(L);
|
4523
|
+
if (q && I.push(null), L.previous = a, a && (a.next = L), a = L, i.defineSkip(L.start), i.write(I), t.parser.lazy[L.start.line]) {
|
4524
4524
|
let b = i.events.length;
|
4525
4525
|
for (; b--; )
|
4526
4526
|
if (
|
@@ -4531,17 +4531,17 @@ function rf(e) {
|
|
4531
4531
|
)
|
4532
4532
|
return;
|
4533
4533
|
const E = t.events.length;
|
4534
|
-
let z = E, N,
|
4534
|
+
let z = E, N, U;
|
4535
4535
|
for (; z--; )
|
4536
4536
|
if (t.events[z][0] === "exit" && t.events[z][1].type === "chunkFlow") {
|
4537
4537
|
if (N) {
|
4538
|
-
|
4538
|
+
U = t.events[z][1].end;
|
4539
4539
|
break;
|
4540
4540
|
}
|
4541
4541
|
N = !0;
|
4542
4542
|
}
|
4543
4543
|
for (g(r), b = E; b < t.events.length; )
|
4544
|
-
t.events[b][1].end = Object.assign({},
|
4544
|
+
t.events[b][1].end = Object.assign({}, U), b++;
|
4545
4545
|
et(
|
4546
4546
|
t.events,
|
4547
4547
|
z + 1,
|
@@ -4550,13 +4550,13 @@ function rf(e) {
|
|
4550
4550
|
), t.events.length = b;
|
4551
4551
|
}
|
4552
4552
|
}
|
4553
|
-
function g(
|
4553
|
+
function g(L) {
|
4554
4554
|
let q = n.length;
|
4555
|
-
for (; q-- >
|
4555
|
+
for (; q-- > L; ) {
|
4556
4556
|
const I = n[q];
|
4557
4557
|
t.containerState = I[1], I[0].exit.call(t, e);
|
4558
4558
|
}
|
4559
|
-
n.length =
|
4559
|
+
n.length = L;
|
4560
4560
|
}
|
4561
4561
|
function P() {
|
4562
4562
|
i.write([null]), a = void 0, i = void 0, t.containerState._closeFlow = void 0;
|
@@ -4714,7 +4714,7 @@ function cf(e, t, n) {
|
|
4714
4714
|
return se(a) ? ge(e, i, "linePrefix")(a) : i(a);
|
4715
4715
|
}
|
4716
4716
|
function i(a) {
|
4717
|
-
return a === null ||
|
4717
|
+
return a === null || K(a) ? t(a) : n(a);
|
4718
4718
|
}
|
4719
4719
|
}
|
4720
4720
|
const Go = {
|
@@ -4769,7 +4769,7 @@ function hf(e, t, n) {
|
|
4769
4769
|
return e.enter("characterEscape"), e.enter("escapeMarker"), e.consume(a), e.exit("escapeMarker"), i;
|
4770
4770
|
}
|
4771
4771
|
function i(a) {
|
4772
|
-
return
|
4772
|
+
return Kc(a) ? (e.enter("characterEscapeValue"), e.consume(a), e.exit("characterEscapeValue"), e.exit("characterEscape"), t) : n(a);
|
4773
4773
|
}
|
4774
4774
|
}
|
4775
4775
|
const wa = document.createElement("i");
|
@@ -4794,7 +4794,7 @@ function mf(e, t, n) {
|
|
4794
4794
|
return f === 35 ? (e.enter("characterReferenceMarkerNumeric"), e.consume(f), e.exit("characterReferenceMarkerNumeric"), u) : (e.enter("characterReferenceValue"), a = 31, o = Be, c(f));
|
4795
4795
|
}
|
4796
4796
|
function u(f) {
|
4797
|
-
return f === 88 || f === 120 ? (e.enter("characterReferenceMarkerHexadecimal"), e.consume(f), e.exit("characterReferenceMarkerHexadecimal"), e.enter("characterReferenceValue"), a = 6, o =
|
4797
|
+
return f === 88 || f === 120 ? (e.enter("characterReferenceMarkerHexadecimal"), e.consume(f), e.exit("characterReferenceMarkerHexadecimal"), e.enter("characterReferenceValue"), a = 6, o = Yc, c) : (e.enter("characterReferenceValue"), a = 7, o = Rr, c(f));
|
4798
4798
|
}
|
4799
4799
|
function c(f) {
|
4800
4800
|
if (f === 59 && i) {
|
@@ -4830,20 +4830,20 @@ function gf(e, t, n) {
|
|
4830
4830
|
return b === l ? (o++, e.consume(b), c) : o < 3 ? n(b) : (e.exit("codeFencedFenceSequence"), se(b) ? ge(e, f, "whitespace")(b) : f(b));
|
4831
4831
|
}
|
4832
4832
|
function f(b) {
|
4833
|
-
return b === null ||
|
4833
|
+
return b === null || K(b) ? (e.exit("codeFencedFence"), r.interrupt ? t(b) : e.check(Ca, h, q)(b)) : (e.enter("codeFencedFenceInfo"), e.enter("chunkString", {
|
4834
4834
|
contentType: "string"
|
4835
4835
|
}), p(b));
|
4836
4836
|
}
|
4837
4837
|
function p(b) {
|
4838
|
-
return b === null ||
|
4838
|
+
return b === null || K(b) ? (e.exit("chunkString"), e.exit("codeFencedFenceInfo"), f(b)) : se(b) ? (e.exit("chunkString"), e.exit("codeFencedFenceInfo"), ge(e, d, "whitespace")(b)) : b === 96 && b === l ? n(b) : (e.consume(b), p);
|
4839
4839
|
}
|
4840
4840
|
function d(b) {
|
4841
|
-
return b === null ||
|
4841
|
+
return b === null || K(b) ? f(b) : (e.enter("codeFencedFenceMeta"), e.enter("chunkString", {
|
4842
4842
|
contentType: "string"
|
4843
4843
|
}), y(b));
|
4844
4844
|
}
|
4845
4845
|
function y(b) {
|
4846
|
-
return b === null ||
|
4846
|
+
return b === null || K(b) ? (e.exit("chunkString"), e.exit("codeFencedFenceMeta"), f(b)) : b === 96 && b === l ? n(b) : (e.consume(b), y);
|
4847
4847
|
}
|
4848
4848
|
function h(b) {
|
4849
4849
|
return e.attempt(i, q, w)(b);
|
@@ -4860,18 +4860,18 @@ function gf(e, t, n) {
|
|
4860
4860
|
)(b) : P(b);
|
4861
4861
|
}
|
4862
4862
|
function P(b) {
|
4863
|
-
return b === null ||
|
4863
|
+
return b === null || K(b) ? e.check(Ca, h, q)(b) : (e.enter("codeFlowValue"), L(b));
|
4864
4864
|
}
|
4865
|
-
function
|
4866
|
-
return b === null ||
|
4865
|
+
function L(b) {
|
4866
|
+
return b === null || K(b) ? (e.exit("codeFlowValue"), P(b)) : (e.consume(b), L);
|
4867
4867
|
}
|
4868
4868
|
function q(b) {
|
4869
4869
|
return e.exit("codeFenced"), t(b);
|
4870
4870
|
}
|
4871
4871
|
function I(b, E, z) {
|
4872
4872
|
let N = 0;
|
4873
|
-
return
|
4874
|
-
function
|
4873
|
+
return U;
|
4874
|
+
function U(T) {
|
4875
4875
|
return b.enter("lineEnding"), b.consume(T), b.exit("lineEnding"), D;
|
4876
4876
|
}
|
4877
4877
|
function D(T) {
|
@@ -4889,7 +4889,7 @@ function gf(e, t, n) {
|
|
4889
4889
|
return T === l ? (N++, b.consume(T), O) : N >= o ? (b.exit("codeFencedFenceSequence"), se(T) ? ge(b, S, "whitespace")(T) : S(T)) : z(T);
|
4890
4890
|
}
|
4891
4891
|
function S(T) {
|
4892
|
-
return T === null ||
|
4892
|
+
return T === null || K(T) ? (b.exit("codeFencedFence"), E(T)) : z(T);
|
4893
4893
|
}
|
4894
4894
|
}
|
4895
4895
|
}
|
@@ -4921,10 +4921,10 @@ function vf(e, t, n) {
|
|
4921
4921
|
return c && c[1].type === "linePrefix" && c[2].sliceSerialize(c[1], !0).length >= 4 ? o(u) : n(u);
|
4922
4922
|
}
|
4923
4923
|
function o(u) {
|
4924
|
-
return u === null ? s(u) :
|
4924
|
+
return u === null ? s(u) : K(u) ? e.attempt(bf, o, s)(u) : (e.enter("codeFlowValue"), l(u));
|
4925
4925
|
}
|
4926
4926
|
function l(u) {
|
4927
|
-
return u === null ||
|
4927
|
+
return u === null || K(u) ? (e.exit("codeFlowValue"), o(u)) : (e.consume(u), l);
|
4928
4928
|
}
|
4929
4929
|
function s(u) {
|
4930
4930
|
return e.exit("codeIndented"), t(u);
|
@@ -4934,11 +4934,11 @@ function xf(e, t, n) {
|
|
4934
4934
|
const r = this;
|
4935
4935
|
return i;
|
4936
4936
|
function i(o) {
|
4937
|
-
return r.parser.lazy[r.now().line] ? n(o) :
|
4937
|
+
return r.parser.lazy[r.now().line] ? n(o) : K(o) ? (e.enter("lineEnding"), e.consume(o), e.exit("lineEnding"), i) : ge(e, a, "linePrefix", 5)(o);
|
4938
4938
|
}
|
4939
4939
|
function a(o) {
|
4940
4940
|
const l = r.events[r.events.length - 1];
|
4941
|
-
return l && l[1].type === "linePrefix" && l[2].sliceSerialize(l[1], !0).length >= 4 ? t(o) :
|
4941
|
+
return l && l[1].type === "linePrefix" && l[2].sliceSerialize(l[1], !0).length >= 4 ? t(o) : K(o) ? i(o) : n(o);
|
4942
4942
|
}
|
4943
4943
|
}
|
4944
4944
|
const wf = {
|
@@ -4973,16 +4973,16 @@ function Sf(e, t, n) {
|
|
4973
4973
|
return f === 96 ? (e.consume(f), r++, l) : (e.exit("codeTextSequence"), s(f));
|
4974
4974
|
}
|
4975
4975
|
function s(f) {
|
4976
|
-
return f === null ? n(f) : f === 32 ? (e.enter("space"), e.consume(f), e.exit("space"), s) : f === 96 ? (a = e.enter("codeTextSequence"), i = 0, c(f)) :
|
4976
|
+
return f === null ? n(f) : f === 32 ? (e.enter("space"), e.consume(f), e.exit("space"), s) : f === 96 ? (a = e.enter("codeTextSequence"), i = 0, c(f)) : K(f) ? (e.enter("lineEnding"), e.consume(f), e.exit("lineEnding"), s) : (e.enter("codeTextData"), u(f));
|
4977
4977
|
}
|
4978
4978
|
function u(f) {
|
4979
|
-
return f === null || f === 32 || f === 96 ||
|
4979
|
+
return f === null || f === 32 || f === 96 || K(f) ? (e.exit("codeTextData"), s(f)) : (e.consume(f), u);
|
4980
4980
|
}
|
4981
4981
|
function c(f) {
|
4982
4982
|
return f === 96 ? (e.consume(f), i++, c) : i === r ? (e.exit("codeTextSequence"), e.exit("codeText"), t(f)) : (a.type = "codeTextData", u(f));
|
4983
4983
|
}
|
4984
4984
|
}
|
4985
|
-
function
|
4985
|
+
function Yo(e) {
|
4986
4986
|
const t = {};
|
4987
4987
|
let n = -1, r, i, a, o, l, s, u;
|
4988
4988
|
for (; ++n < e.length; ) {
|
@@ -5031,7 +5031,7 @@ const Ef = {
|
|
5031
5031
|
partial: !0
|
5032
5032
|
};
|
5033
5033
|
function Of(e) {
|
5034
|
-
return
|
5034
|
+
return Yo(e), e;
|
5035
5035
|
}
|
5036
5036
|
function If(e, t) {
|
5037
5037
|
let n;
|
@@ -5042,7 +5042,7 @@ function If(e, t) {
|
|
5042
5042
|
}), i(l);
|
5043
5043
|
}
|
5044
5044
|
function i(l) {
|
5045
|
-
return l === null ? a(l) :
|
5045
|
+
return l === null ? a(l) : K(l) ? e.check(
|
5046
5046
|
Tf,
|
5047
5047
|
o,
|
5048
5048
|
a
|
@@ -5065,13 +5065,13 @@ function Pf(e, t, n) {
|
|
5065
5065
|
return e.exit("chunkContent"), e.enter("lineEnding"), e.consume(o), e.exit("lineEnding"), ge(e, a, "linePrefix");
|
5066
5066
|
}
|
5067
5067
|
function a(o) {
|
5068
|
-
if (o === null ||
|
5068
|
+
if (o === null || K(o))
|
5069
5069
|
return n(o);
|
5070
5070
|
const l = r.events[r.events.length - 1];
|
5071
5071
|
return !r.parser.constructs.disable.null.includes("codeIndented") && l && l[1].type === "linePrefix" && l[2].sliceSerialize(l[1], !0).length >= 4 ? t(o) : e.interrupt(r.parser.constructs.flow, n, t)(o);
|
5072
5072
|
}
|
5073
5073
|
}
|
5074
|
-
function
|
5074
|
+
function Ko(e, t, n, r, i, a, o, l, s) {
|
5075
5075
|
const u = s || Number.POSITIVE_INFINITY;
|
5076
5076
|
let c = 0;
|
5077
5077
|
return f;
|
@@ -5086,7 +5086,7 @@ function Yo(e, t, n, r, i, a, o, l, s) {
|
|
5086
5086
|
}), d(g));
|
5087
5087
|
}
|
5088
5088
|
function d(g) {
|
5089
|
-
return g === 62 ? (e.exit("chunkString"), e.exit(l), p(g)) : g === null || g === 60 ||
|
5089
|
+
return g === 62 ? (e.exit("chunkString"), e.exit(l), p(g)) : g === null || g === 60 || K(g) ? n(g) : (e.consume(g), g === 92 ? y : d);
|
5090
5090
|
}
|
5091
5091
|
function y(g) {
|
5092
5092
|
return g === 60 || g === 62 || g === 92 ? (e.consume(g), d) : d(g);
|
@@ -5111,12 +5111,12 @@ function Jo(e, t, n, r, i, a) {
|
|
5111
5111
|
// which doesn’t need this.
|
5112
5112
|
// Hidden footnotes hook.
|
5113
5113
|
/* c8 ignore next 3 */
|
5114
|
-
d === 94 && !l && "_hiddenFootnoteSupport" in o.parser.constructs ? n(d) : d === 93 ? (e.exit(a), e.enter(i), e.consume(d), e.exit(i), e.exit(r), t) :
|
5114
|
+
d === 94 && !l && "_hiddenFootnoteSupport" in o.parser.constructs ? n(d) : d === 93 ? (e.exit(a), e.enter(i), e.consume(d), e.exit(i), e.exit(r), t) : K(d) ? (e.enter("lineEnding"), e.consume(d), e.exit("lineEnding"), c) : (e.enter("chunkString", {
|
5115
5115
|
contentType: "string"
|
5116
5116
|
}), f(d));
|
5117
5117
|
}
|
5118
5118
|
function f(d) {
|
5119
|
-
return d === null || d === 91 || d === 93 ||
|
5119
|
+
return d === null || d === 91 || d === 93 || K(d) || l++ > 999 ? (e.exit("chunkString"), c(d)) : (e.consume(d), s || (s = !se(d)), d === 92 ? p : f);
|
5120
5120
|
}
|
5121
5121
|
function p(d) {
|
5122
5122
|
return d === 91 || d === 92 || d === 93 ? (e.consume(d), l++, f) : f(d);
|
@@ -5132,12 +5132,12 @@ function Qo(e, t, n, r, i, a) {
|
|
5132
5132
|
return p === o ? (e.enter(i), e.consume(p), e.exit(i), e.exit(r), t) : (e.enter(a), u(p));
|
5133
5133
|
}
|
5134
5134
|
function u(p) {
|
5135
|
-
return p === o ? (e.exit(a), s(o)) : p === null ? n(p) :
|
5135
|
+
return p === o ? (e.exit(a), s(o)) : p === null ? n(p) : K(p) ? (e.enter("lineEnding"), e.consume(p), e.exit("lineEnding"), ge(e, u, "linePrefix")) : (e.enter("chunkString", {
|
5136
5136
|
contentType: "string"
|
5137
5137
|
}), c(p));
|
5138
5138
|
}
|
5139
5139
|
function c(p) {
|
5140
|
-
return p === o || p === null ||
|
5140
|
+
return p === o || p === null || K(p) ? (e.exit("chunkString"), u(p)) : (e.consume(p), p === 92 ? f : c);
|
5141
5141
|
}
|
5142
5142
|
function f(p) {
|
5143
5143
|
return p === o || p === 92 ? (e.consume(p), c) : c(p);
|
@@ -5147,7 +5147,7 @@ function Jt(e, t) {
|
|
5147
5147
|
let n;
|
5148
5148
|
return r;
|
5149
5149
|
function r(i) {
|
5150
|
-
return
|
5150
|
+
return K(i) ? (e.enter("lineEnding"), e.consume(i), e.exit("lineEnding"), n = !0, r) : se(i) ? ge(
|
5151
5151
|
e,
|
5152
5152
|
r,
|
5153
5153
|
n ? "linePrefix" : "lineSuffix"
|
@@ -5192,7 +5192,7 @@ function Lf(e, t, n) {
|
|
5192
5192
|
return Le(d) ? Jt(e, u)(d) : u(d);
|
5193
5193
|
}
|
5194
5194
|
function u(d) {
|
5195
|
-
return
|
5195
|
+
return Ko(
|
5196
5196
|
e,
|
5197
5197
|
c,
|
5198
5198
|
// Note: we don’t need to reset the way `markdown-rs` does.
|
@@ -5211,7 +5211,7 @@ function Lf(e, t, n) {
|
|
5211
5211
|
return se(d) ? ge(e, p, "whitespace")(d) : p(d);
|
5212
5212
|
}
|
5213
5213
|
function p(d) {
|
5214
|
-
return d === null ||
|
5214
|
+
return d === null || K(d) ? (e.exit("definition"), r.parser.defined.push(i), t(d)) : n(d);
|
5215
5215
|
}
|
5216
5216
|
}
|
5217
5217
|
function Nf(e, t, n) {
|
@@ -5233,7 +5233,7 @@ function Nf(e, t, n) {
|
|
5233
5233
|
return se(l) ? ge(e, o, "whitespace")(l) : o(l);
|
5234
5234
|
}
|
5235
5235
|
function o(l) {
|
5236
|
-
return l === null ||
|
5236
|
+
return l === null || K(l) ? t(l) : n(l);
|
5237
5237
|
}
|
5238
5238
|
}
|
5239
5239
|
const jf = {
|
@@ -5246,7 +5246,7 @@ function Df(e, t, n) {
|
|
5246
5246
|
return e.enter("hardBreakEscape"), e.consume(a), i;
|
5247
5247
|
}
|
5248
5248
|
function i(a) {
|
5249
|
-
return
|
5249
|
+
return K(a) ? (e.exit("hardBreakEscape"), t(a)) : n(a);
|
5250
5250
|
}
|
5251
5251
|
}
|
5252
5252
|
const Mf = {
|
@@ -5285,7 +5285,7 @@ function Bf(e, t, n) {
|
|
5285
5285
|
return c === 35 && r++ < 6 ? (e.consume(c), o) : c === null || Le(c) ? (e.exit("atxHeadingSequence"), l(c)) : n(c);
|
5286
5286
|
}
|
5287
5287
|
function l(c) {
|
5288
|
-
return c === 35 ? (e.enter("atxHeadingSequence"), s(c)) : c === null ||
|
5288
|
+
return c === 35 ? (e.enter("atxHeadingSequence"), s(c)) : c === null || K(c) ? (e.exit("atxHeading"), t(c)) : se(c) ? ge(e, l, "whitespace")(c) : (e.enter("atxHeadingText"), u(c));
|
5289
5289
|
}
|
5290
5290
|
function s(c) {
|
5291
5291
|
return c === 35 ? (e.consume(c), s) : (e.exit("atxHeadingSequence"), l(c));
|
@@ -5404,7 +5404,7 @@ function Vf(e, t, n) {
|
|
5404
5404
|
function w(x) {
|
5405
5405
|
if (x === null || x === 47 || x === 62 || Le(x)) {
|
5406
5406
|
const Z = x === 47, ie = o.toLowerCase();
|
5407
|
-
return !Z && !a && Sa.includes(ie) ? (i = 1, r.interrupt ? t(x) : B(x)) : Hf.includes(o.toLowerCase()) ? (i = 6, Z ? (e.consume(x), g) : r.interrupt ? t(x) : B(x)) : (i = 7, r.interrupt && !r.parser.lazy[r.now().line] ? n(x) : a ? P(x) :
|
5407
|
+
return !Z && !a && Sa.includes(ie) ? (i = 1, r.interrupt ? t(x) : B(x)) : Hf.includes(o.toLowerCase()) ? (i = 6, Z ? (e.consume(x), g) : r.interrupt ? t(x) : B(x)) : (i = 7, r.interrupt && !r.parser.lazy[r.now().line] ? n(x) : a ? P(x) : L(x));
|
5408
5408
|
}
|
5409
5409
|
return x === 45 || Be(x) ? (e.consume(x), o += String.fromCharCode(x), w) : n(x);
|
5410
5410
|
}
|
@@ -5412,41 +5412,41 @@ function Vf(e, t, n) {
|
|
5412
5412
|
return x === 62 ? (e.consume(x), r.interrupt ? t : B) : n(x);
|
5413
5413
|
}
|
5414
5414
|
function P(x) {
|
5415
|
-
return se(x) ? (e.consume(x), P) :
|
5415
|
+
return se(x) ? (e.consume(x), P) : U(x);
|
5416
5416
|
}
|
5417
|
-
function
|
5418
|
-
return x === 47 ? (e.consume(x),
|
5417
|
+
function L(x) {
|
5418
|
+
return x === 47 ? (e.consume(x), U) : x === 58 || x === 95 || Je(x) ? (e.consume(x), q) : se(x) ? (e.consume(x), L) : U(x);
|
5419
5419
|
}
|
5420
5420
|
function q(x) {
|
5421
5421
|
return x === 45 || x === 46 || x === 58 || x === 95 || Be(x) ? (e.consume(x), q) : I(x);
|
5422
5422
|
}
|
5423
5423
|
function I(x) {
|
5424
|
-
return x === 61 ? (e.consume(x), b) : se(x) ? (e.consume(x), I) :
|
5424
|
+
return x === 61 ? (e.consume(x), b) : se(x) ? (e.consume(x), I) : L(x);
|
5425
5425
|
}
|
5426
5426
|
function b(x) {
|
5427
5427
|
return x === null || x === 60 || x === 61 || x === 62 || x === 96 ? n(x) : x === 34 || x === 39 ? (e.consume(x), s = x, E) : se(x) ? (e.consume(x), b) : z(x);
|
5428
5428
|
}
|
5429
5429
|
function E(x) {
|
5430
|
-
return x === s ? (e.consume(x), s = null, N) : x === null ||
|
5430
|
+
return x === s ? (e.consume(x), s = null, N) : x === null || K(x) ? n(x) : (e.consume(x), E);
|
5431
5431
|
}
|
5432
5432
|
function z(x) {
|
5433
5433
|
return x === null || x === 34 || x === 39 || x === 47 || x === 60 || x === 61 || x === 62 || x === 96 || Le(x) ? I(x) : (e.consume(x), z);
|
5434
5434
|
}
|
5435
5435
|
function N(x) {
|
5436
|
-
return x === 47 || x === 62 || se(x) ?
|
5436
|
+
return x === 47 || x === 62 || se(x) ? L(x) : n(x);
|
5437
5437
|
}
|
5438
|
-
function
|
5438
|
+
function U(x) {
|
5439
5439
|
return x === 62 ? (e.consume(x), D) : n(x);
|
5440
5440
|
}
|
5441
5441
|
function D(x) {
|
5442
|
-
return x === null ||
|
5442
|
+
return x === null || K(x) ? B(x) : se(x) ? (e.consume(x), D) : n(x);
|
5443
5443
|
}
|
5444
5444
|
function B(x) {
|
5445
|
-
return x === 45 && i === 2 ? (e.consume(x), A) : x === 60 && i === 1 ? (e.consume(x), j) : x === 62 && i === 4 ? (e.consume(x), W) : x === 63 && i === 3 ? (e.consume(x), m) : x === 93 && i === 5 ? (e.consume(x), H) :
|
5445
|
+
return x === 45 && i === 2 ? (e.consume(x), A) : x === 60 && i === 1 ? (e.consume(x), j) : x === 62 && i === 4 ? (e.consume(x), W) : x === 63 && i === 3 ? (e.consume(x), m) : x === 93 && i === 5 ? (e.consume(x), H) : K(x) && (i === 6 || i === 7) ? (e.exit("htmlFlowData"), e.check(
|
5446
5446
|
qf,
|
5447
5447
|
J,
|
5448
5448
|
O
|
5449
|
-
)(x)) : x === null ||
|
5449
|
+
)(x)) : x === null || K(x) ? (e.exit("htmlFlowData"), O(x)) : (e.consume(x), B);
|
5450
5450
|
}
|
5451
5451
|
function O(x) {
|
5452
5452
|
return e.check(
|
@@ -5459,7 +5459,7 @@ function Vf(e, t, n) {
|
|
5459
5459
|
return e.enter("lineEnding"), e.consume(x), e.exit("lineEnding"), T;
|
5460
5460
|
}
|
5461
5461
|
function T(x) {
|
5462
|
-
return x === null ||
|
5462
|
+
return x === null || K(x) ? O(x) : (e.enter("htmlFlowData"), B(x));
|
5463
5463
|
}
|
5464
5464
|
function A(x) {
|
5465
5465
|
return x === 45 ? (e.consume(x), m) : B(x);
|
@@ -5481,7 +5481,7 @@ function Vf(e, t, n) {
|
|
5481
5481
|
return x === 62 ? (e.consume(x), W) : x === 45 && i === 2 ? (e.consume(x), m) : B(x);
|
5482
5482
|
}
|
5483
5483
|
function W(x) {
|
5484
|
-
return x === null ||
|
5484
|
+
return x === null || K(x) ? (e.exit("htmlFlowData"), J(x)) : (e.consume(x), W);
|
5485
5485
|
}
|
5486
5486
|
function J(x) {
|
5487
5487
|
return e.exit("htmlFlow"), t(x);
|
@@ -5491,7 +5491,7 @@ function Wf(e, t, n) {
|
|
5491
5491
|
const r = this;
|
5492
5492
|
return i;
|
5493
5493
|
function i(o) {
|
5494
|
-
return
|
5494
|
+
return K(o) ? (e.enter("lineEnding"), e.consume(o), e.exit("lineEnding"), a) : n(o);
|
5495
5495
|
}
|
5496
5496
|
function a(o) {
|
5497
5497
|
return r.parser.lazy[r.now().line] ? n(o) : t(o);
|
@@ -5515,7 +5515,7 @@ function Zf(e, t, n) {
|
|
5515
5515
|
return e.enter("htmlText"), e.enter("htmlTextData"), e.consume(m), s;
|
5516
5516
|
}
|
5517
5517
|
function s(m) {
|
5518
|
-
return m === 33 ? (e.consume(m), u) : m === 47 ? (e.consume(m), I) : m === 63 ? (e.consume(m),
|
5518
|
+
return m === 33 ? (e.consume(m), u) : m === 47 ? (e.consume(m), I) : m === 63 ? (e.consume(m), L) : Je(m) ? (e.consume(m), z) : n(m);
|
5519
5519
|
}
|
5520
5520
|
function u(m) {
|
5521
5521
|
return m === 45 ? (e.consume(m), c) : m === 91 ? (e.consume(m), a = 0, y) : Je(m) ? (e.consume(m), P) : n(m);
|
@@ -5524,7 +5524,7 @@ function Zf(e, t, n) {
|
|
5524
5524
|
return m === 45 ? (e.consume(m), d) : n(m);
|
5525
5525
|
}
|
5526
5526
|
function f(m) {
|
5527
|
-
return m === null ? n(m) : m === 45 ? (e.consume(m), p) :
|
5527
|
+
return m === null ? n(m) : m === 45 ? (e.consume(m), p) : K(m) ? (o = f, j(m)) : (e.consume(m), f);
|
5528
5528
|
}
|
5529
5529
|
function p(m) {
|
5530
5530
|
return m === 45 ? (e.consume(m), d) : f(m);
|
@@ -5537,7 +5537,7 @@ function Zf(e, t, n) {
|
|
5537
5537
|
return m === W.charCodeAt(a++) ? (e.consume(m), a === W.length ? h : y) : n(m);
|
5538
5538
|
}
|
5539
5539
|
function h(m) {
|
5540
|
-
return m === null ? n(m) : m === 93 ? (e.consume(m), w) :
|
5540
|
+
return m === null ? n(m) : m === 93 ? (e.consume(m), w) : K(m) ? (o = h, j(m)) : (e.consume(m), h);
|
5541
5541
|
}
|
5542
5542
|
function w(m) {
|
5543
5543
|
return m === 93 ? (e.consume(m), g) : h(m);
|
@@ -5546,13 +5546,13 @@ function Zf(e, t, n) {
|
|
5546
5546
|
return m === 62 ? A(m) : m === 93 ? (e.consume(m), g) : h(m);
|
5547
5547
|
}
|
5548
5548
|
function P(m) {
|
5549
|
-
return m === null || m === 62 ? A(m) :
|
5549
|
+
return m === null || m === 62 ? A(m) : K(m) ? (o = P, j(m)) : (e.consume(m), P);
|
5550
5550
|
}
|
5551
|
-
function
|
5552
|
-
return m === null ? n(m) : m === 63 ? (e.consume(m), q) :
|
5551
|
+
function L(m) {
|
5552
|
+
return m === null ? n(m) : m === 63 ? (e.consume(m), q) : K(m) ? (o = L, j(m)) : (e.consume(m), L);
|
5553
5553
|
}
|
5554
5554
|
function q(m) {
|
5555
|
-
return m === 62 ? A(m) :
|
5555
|
+
return m === 62 ? A(m) : L(m);
|
5556
5556
|
}
|
5557
5557
|
function I(m) {
|
5558
5558
|
return Je(m) ? (e.consume(m), b) : n(m);
|
@@ -5561,25 +5561,25 @@ function Zf(e, t, n) {
|
|
5561
5561
|
return m === 45 || Be(m) ? (e.consume(m), b) : E(m);
|
5562
5562
|
}
|
5563
5563
|
function E(m) {
|
5564
|
-
return
|
5564
|
+
return K(m) ? (o = E, j(m)) : se(m) ? (e.consume(m), E) : A(m);
|
5565
5565
|
}
|
5566
5566
|
function z(m) {
|
5567
5567
|
return m === 45 || Be(m) ? (e.consume(m), z) : m === 47 || m === 62 || Le(m) ? N(m) : n(m);
|
5568
5568
|
}
|
5569
5569
|
function N(m) {
|
5570
|
-
return m === 47 ? (e.consume(m), A) : m === 58 || m === 95 || Je(m) ? (e.consume(m),
|
5570
|
+
return m === 47 ? (e.consume(m), A) : m === 58 || m === 95 || Je(m) ? (e.consume(m), U) : K(m) ? (o = N, j(m)) : se(m) ? (e.consume(m), N) : A(m);
|
5571
5571
|
}
|
5572
|
-
function
|
5573
|
-
return m === 45 || m === 46 || m === 58 || m === 95 || Be(m) ? (e.consume(m),
|
5572
|
+
function U(m) {
|
5573
|
+
return m === 45 || m === 46 || m === 58 || m === 95 || Be(m) ? (e.consume(m), U) : D(m);
|
5574
5574
|
}
|
5575
5575
|
function D(m) {
|
5576
|
-
return m === 61 ? (e.consume(m), B) :
|
5576
|
+
return m === 61 ? (e.consume(m), B) : K(m) ? (o = D, j(m)) : se(m) ? (e.consume(m), D) : N(m);
|
5577
5577
|
}
|
5578
5578
|
function B(m) {
|
5579
|
-
return m === null || m === 60 || m === 61 || m === 62 || m === 96 ? n(m) : m === 34 || m === 39 ? (e.consume(m), i = m, O) :
|
5579
|
+
return m === null || m === 60 || m === 61 || m === 62 || m === 96 ? n(m) : m === 34 || m === 39 ? (e.consume(m), i = m, O) : K(m) ? (o = B, j(m)) : se(m) ? (e.consume(m), B) : (e.consume(m), S);
|
5580
5580
|
}
|
5581
5581
|
function O(m) {
|
5582
|
-
return m === i ? (e.consume(m), i = void 0, T) : m === null ? n(m) :
|
5582
|
+
return m === i ? (e.consume(m), i = void 0, T) : m === null ? n(m) : K(m) ? (o = O, j(m)) : (e.consume(m), O);
|
5583
5583
|
}
|
5584
5584
|
function S(m) {
|
5585
5585
|
return m === null || m === 34 || m === 39 || m === 60 || m === 61 || m === 96 ? n(m) : m === 47 || m === 62 || Le(m) ? N(m) : (e.consume(m), S);
|
@@ -5610,9 +5610,9 @@ const ri = {
|
|
5610
5610
|
tokenize: td,
|
5611
5611
|
resolveTo: ed,
|
5612
5612
|
resolveAll: Qf
|
5613
|
-
}, Kf = {
|
5614
|
-
tokenize: nd
|
5615
5613
|
}, Yf = {
|
5614
|
+
tokenize: nd
|
5615
|
+
}, Kf = {
|
5616
5616
|
tokenize: rd
|
5617
5617
|
}, Jf = {
|
5618
5618
|
tokenize: id
|
@@ -5689,11 +5689,11 @@ function td(e, t, n) {
|
|
5689
5689
|
}
|
5690
5690
|
function s(p) {
|
5691
5691
|
return p === 40 ? e.attempt(
|
5692
|
-
|
5692
|
+
Yf,
|
5693
5693
|
c,
|
5694
5694
|
o ? c : f
|
5695
5695
|
)(p) : p === 91 ? e.attempt(
|
5696
|
-
|
5696
|
+
Kf,
|
5697
5697
|
c,
|
5698
5698
|
o ? u : f
|
5699
5699
|
)(p) : o ? c(p) : f(p);
|
@@ -5721,7 +5721,7 @@ function nd(e, t, n) {
|
|
5721
5721
|
return Le(f) ? Jt(e, a)(f) : a(f);
|
5722
5722
|
}
|
5723
5723
|
function a(f) {
|
5724
|
-
return f === 41 ? c(f) :
|
5724
|
+
return f === 41 ? c(f) : Ko(
|
5725
5725
|
e,
|
5726
5726
|
o,
|
5727
5727
|
l,
|
@@ -5847,7 +5847,7 @@ function cd(e, t, n) {
|
|
5847
5847
|
return i = u, l(u);
|
5848
5848
|
}
|
5849
5849
|
function l(u) {
|
5850
|
-
return u === i ? (e.enter("thematicBreakSequence"), s(u)) : r >= 3 && (u === null ||
|
5850
|
+
return u === i ? (e.enter("thematicBreakSequence"), s(u)) : r >= 3 && (u === null || K(u)) ? (e.exit("thematicBreak"), t(u)) : n(u);
|
5851
5851
|
}
|
5852
5852
|
function s(u) {
|
5853
5853
|
return u === i ? (e.consume(u), r++, s) : (e.exit("thematicBreakSequence"), se(u) ? ge(e, l, "whitespace")(u) : l(u));
|
@@ -6003,7 +6003,7 @@ function vd(e, t, n) {
|
|
6003
6003
|
return u === i ? (e.consume(u), l) : (e.exit("setextHeadingLineSequence"), se(u) ? ge(e, s, "lineSuffix")(u) : s(u));
|
6004
6004
|
}
|
6005
6005
|
function s(u) {
|
6006
|
-
return u === null ||
|
6006
|
+
return u === null || K(u) ? (e.exit("setextHeadingLine"), t(u)) : n(u);
|
6007
6007
|
}
|
6008
6008
|
}
|
6009
6009
|
const xd = {
|
@@ -6154,7 +6154,7 @@ function Ed(e, t, n) {
|
|
6154
6154
|
let o = [], l = [];
|
6155
6155
|
const s = {
|
6156
6156
|
consume: P,
|
6157
|
-
enter:
|
6157
|
+
enter: L,
|
6158
6158
|
exit: q,
|
6159
6159
|
attempt: E(I),
|
6160
6160
|
check: E(b),
|
@@ -6195,7 +6195,7 @@ function Ed(e, t, n) {
|
|
6195
6195
|
};
|
6196
6196
|
}
|
6197
6197
|
function h(D) {
|
6198
|
-
i[D.line] = D.column,
|
6198
|
+
i[D.line] = D.column, U();
|
6199
6199
|
}
|
6200
6200
|
function w() {
|
6201
6201
|
let D;
|
@@ -6212,9 +6212,9 @@ function Ed(e, t, n) {
|
|
6212
6212
|
c = c(D);
|
6213
6213
|
}
|
6214
6214
|
function P(D) {
|
6215
|
-
|
6215
|
+
K(D) ? (r.line++, r.column = 1, r.offset += D === -3 ? 2 : 1, U()) : D !== -1 && (r.column++, r.offset++), r._bufferIndex < 0 ? r._index++ : (r._bufferIndex++, r._bufferIndex === o[r._index].length && (r._bufferIndex = -1, r._index++)), u.previous = D;
|
6216
6216
|
}
|
6217
|
-
function
|
6217
|
+
function L(D, B) {
|
6218
6218
|
const O = B || {};
|
6219
6219
|
return O.type = D, O.start = y(), u.events.push(["enter", O, u]), l.push(O), O;
|
6220
6220
|
}
|
@@ -6288,10 +6288,10 @@ function Ed(e, t, n) {
|
|
6288
6288
|
from: S
|
6289
6289
|
};
|
6290
6290
|
function A() {
|
6291
|
-
r = D, u.previous = B, u.currentConstruct = O, u.events.length = S, l = T,
|
6291
|
+
r = D, u.previous = B, u.currentConstruct = O, u.events.length = S, l = T, U();
|
6292
6292
|
}
|
6293
6293
|
}
|
6294
|
-
function
|
6294
|
+
function U() {
|
6295
6295
|
r.line in i && r.column < 2 && (r.column = i[r.line], r.offset += i[r.line] - 1);
|
6296
6296
|
}
|
6297
6297
|
}
|
@@ -6473,7 +6473,7 @@ function Hd() {
|
|
6473
6473
|
}
|
6474
6474
|
}
|
6475
6475
|
function zd(e) {
|
6476
|
-
for (; !
|
6476
|
+
for (; !Yo(e); )
|
6477
6477
|
;
|
6478
6478
|
return e;
|
6479
6479
|
}
|
@@ -6549,9 +6549,9 @@ function Wd(e) {
|
|
6549
6549
|
emphasis: l(_t),
|
6550
6550
|
hardBreakEscape: l(ht),
|
6551
6551
|
hardBreakTrailing: l(ht),
|
6552
|
-
htmlFlow: l(
|
6552
|
+
htmlFlow: l(Y, s),
|
6553
6553
|
htmlFlowData: D,
|
6554
|
-
htmlText: l(
|
6554
|
+
htmlText: l(Y, s),
|
6555
6555
|
htmlTextData: D,
|
6556
6556
|
image: l(ae),
|
6557
6557
|
label: s,
|
@@ -6585,7 +6585,7 @@ function Wd(e) {
|
|
6585
6585
|
codeFencedFenceInfo: h,
|
6586
6586
|
codeFencedFenceMeta: w,
|
6587
6587
|
codeFlowValue: B,
|
6588
|
-
codeIndented: c(
|
6588
|
+
codeIndented: c(L),
|
6589
6589
|
codeText: c(j),
|
6590
6590
|
codeTextData: B,
|
6591
6591
|
data: B,
|
@@ -6613,7 +6613,7 @@ function Wd(e) {
|
|
6613
6613
|
resourceDestinationString: J,
|
6614
6614
|
resourceTitleString: x,
|
6615
6615
|
resource: Z,
|
6616
|
-
setextHeading: c(
|
6616
|
+
setextHeading: c(U),
|
6617
6617
|
setextHeadingLineSequence: N,
|
6618
6618
|
setextHeadingText: z,
|
6619
6619
|
strong: c(),
|
@@ -6624,12 +6624,12 @@ function Wd(e) {
|
|
6624
6624
|
const n = {};
|
6625
6625
|
return r;
|
6626
6626
|
function r(M) {
|
6627
|
-
let
|
6627
|
+
let V = {
|
6628
6628
|
type: "root",
|
6629
6629
|
children: []
|
6630
6630
|
};
|
6631
6631
|
const X = {
|
6632
|
-
stack: [
|
6632
|
+
stack: [V],
|
6633
6633
|
tokenStack: [],
|
6634
6634
|
config: t,
|
6635
6635
|
enter: u,
|
@@ -6664,7 +6664,7 @@ function Wd(e) {
|
|
6664
6664
|
const Ae = X.tokenStack[X.tokenStack.length - 1];
|
6665
6665
|
(Ae[1] || Ta).call(X, void 0, Ae[0]);
|
6666
6666
|
}
|
6667
|
-
for (
|
6667
|
+
for (V.position = {
|
6668
6668
|
start: st(
|
6669
6669
|
M.length > 0 ? M[0][1].start : {
|
6670
6670
|
line: 1,
|
@@ -6680,14 +6680,14 @@ function Wd(e) {
|
|
6680
6680
|
}
|
6681
6681
|
)
|
6682
6682
|
}, ue = -1; ++ue < t.transforms.length; )
|
6683
|
-
|
6684
|
-
return
|
6683
|
+
V = t.transforms[ue](V) || V;
|
6684
|
+
return V;
|
6685
6685
|
}
|
6686
|
-
function i(M,
|
6687
|
-
let oe =
|
6686
|
+
function i(M, V, X) {
|
6687
|
+
let oe = V - 1, ue = -1, Ae = !1, Ze, $e, je, Ye;
|
6688
6688
|
for (; ++oe <= X; ) {
|
6689
6689
|
const we = M[oe];
|
6690
|
-
if (we[1].type === "listUnordered" || we[1].type === "listOrdered" || we[1].type === "blockQuote" ? (we[0] === "enter" ? ue++ : ue--,
|
6690
|
+
if (we[1].type === "listUnordered" || we[1].type === "listOrdered" || we[1].type === "blockQuote" ? (we[0] === "enter" ? ue++ : ue--, Ye = void 0) : we[1].type === "lineEndingBlank" ? we[0] === "enter" && (Ze && !Ye && !ue && !je && (je = oe), Ye = void 0) : we[1].type === "linePrefix" || we[1].type === "listItemValue" || we[1].type === "listItemMarker" || we[1].type === "listItemPrefix" || we[1].type === "listItemPrefixWhitespace" || (Ye = void 0), !ue && we[0] === "enter" && we[1].type === "listItemPrefix" || ue === -1 && we[0] === "exit" && (we[1].type === "listUnordered" || we[1].type === "listOrdered")) {
|
6691
6691
|
if (Ze) {
|
6692
6692
|
let Tt = oe;
|
6693
6693
|
for ($e = void 0; Tt--; ) {
|
@@ -6708,21 +6708,21 @@ function Wd(e) {
|
|
6708
6708
|
start: Object.assign({}, we[1].start),
|
6709
6709
|
// @ts-expect-error: we’ll add `end` in a second.
|
6710
6710
|
end: void 0
|
6711
|
-
}, M.splice(oe, 0, ["enter", Ze, we[2]]), oe++, X++, je = void 0,
|
6711
|
+
}, M.splice(oe, 0, ["enter", Ze, we[2]]), oe++, X++, je = void 0, Ye = !0);
|
6712
6712
|
}
|
6713
6713
|
}
|
6714
|
-
return M[
|
6714
|
+
return M[V][1]._spread = Ae, X;
|
6715
6715
|
}
|
6716
|
-
function a(M,
|
6717
|
-
n[M] =
|
6716
|
+
function a(M, V) {
|
6717
|
+
n[M] = V;
|
6718
6718
|
}
|
6719
6719
|
function o(M) {
|
6720
6720
|
return n[M];
|
6721
6721
|
}
|
6722
|
-
function l(M,
|
6722
|
+
function l(M, V) {
|
6723
6723
|
return X;
|
6724
6724
|
function X(oe) {
|
6725
|
-
u.call(this, M(oe), oe),
|
6725
|
+
u.call(this, M(oe), oe), V && V.call(this, oe);
|
6726
6726
|
}
|
6727
6727
|
}
|
6728
6728
|
function s() {
|
@@ -6731,23 +6731,23 @@ function Wd(e) {
|
|
6731
6731
|
children: []
|
6732
6732
|
});
|
6733
6733
|
}
|
6734
|
-
function u(M,
|
6735
|
-
return this.stack[this.stack.length - 1].children.push(M), this.stack.push(M), this.tokenStack.push([
|
6736
|
-
start: st(
|
6734
|
+
function u(M, V, X) {
|
6735
|
+
return this.stack[this.stack.length - 1].children.push(M), this.stack.push(M), this.tokenStack.push([V, X]), M.position = {
|
6736
|
+
start: st(V.start)
|
6737
6737
|
}, M;
|
6738
6738
|
}
|
6739
6739
|
function c(M) {
|
6740
|
-
return
|
6741
|
-
function
|
6740
|
+
return V;
|
6741
|
+
function V(X) {
|
6742
6742
|
M && M.call(this, X), f.call(this, X);
|
6743
6743
|
}
|
6744
6744
|
}
|
6745
|
-
function f(M,
|
6745
|
+
function f(M, V) {
|
6746
6746
|
const X = this.stack.pop(), oe = this.tokenStack.pop();
|
6747
6747
|
if (oe)
|
6748
|
-
oe[0].type !== M.type && (
|
6748
|
+
oe[0].type !== M.type && (V ? V.call(this, M, oe[0]) : (oe[1] || Ta).call(this, M, oe[0]));
|
6749
6749
|
else throw new Error(
|
6750
|
-
"Cannot close `" + M.type + "` (" +
|
6750
|
+
"Cannot close `" + M.type + "` (" + Kt({
|
6751
6751
|
start: M.start,
|
6752
6752
|
end: M.end
|
6753
6753
|
}) + "): it’s not open"
|
@@ -6762,100 +6762,100 @@ function Wd(e) {
|
|
6762
6762
|
}
|
6763
6763
|
function y(M) {
|
6764
6764
|
if (o("expectingFirstListItemValue")) {
|
6765
|
-
const
|
6766
|
-
|
6765
|
+
const V = this.stack[this.stack.length - 2];
|
6766
|
+
V.start = Number.parseInt(this.sliceSerialize(M), 10), a("expectingFirstListItemValue");
|
6767
6767
|
}
|
6768
6768
|
}
|
6769
6769
|
function h() {
|
6770
|
-
const M = this.resume(),
|
6771
|
-
|
6770
|
+
const M = this.resume(), V = this.stack[this.stack.length - 1];
|
6771
|
+
V.lang = M;
|
6772
6772
|
}
|
6773
6773
|
function w() {
|
6774
|
-
const M = this.resume(),
|
6775
|
-
|
6774
|
+
const M = this.resume(), V = this.stack[this.stack.length - 1];
|
6775
|
+
V.meta = M;
|
6776
6776
|
}
|
6777
6777
|
function g() {
|
6778
6778
|
o("flowCodeInside") || (this.buffer(), a("flowCodeInside", !0));
|
6779
6779
|
}
|
6780
6780
|
function P() {
|
6781
|
-
const M = this.resume(),
|
6782
|
-
|
6781
|
+
const M = this.resume(), V = this.stack[this.stack.length - 1];
|
6782
|
+
V.value = M.replace(/^(\r?\n|\r)|(\r?\n|\r)$/g, ""), a("flowCodeInside");
|
6783
6783
|
}
|
6784
|
-
function
|
6785
|
-
const M = this.resume(),
|
6786
|
-
|
6784
|
+
function L() {
|
6785
|
+
const M = this.resume(), V = this.stack[this.stack.length - 1];
|
6786
|
+
V.value = M.replace(/(\r?\n|\r)$/g, "");
|
6787
6787
|
}
|
6788
6788
|
function q(M) {
|
6789
|
-
const
|
6790
|
-
X.label =
|
6789
|
+
const V = this.resume(), X = this.stack[this.stack.length - 1];
|
6790
|
+
X.label = V, X.identifier = jt(
|
6791
6791
|
this.sliceSerialize(M)
|
6792
6792
|
).toLowerCase();
|
6793
6793
|
}
|
6794
6794
|
function I() {
|
6795
|
-
const M = this.resume(),
|
6796
|
-
|
6795
|
+
const M = this.resume(), V = this.stack[this.stack.length - 1];
|
6796
|
+
V.title = M;
|
6797
6797
|
}
|
6798
6798
|
function b() {
|
6799
|
-
const M = this.resume(),
|
6800
|
-
|
6799
|
+
const M = this.resume(), V = this.stack[this.stack.length - 1];
|
6800
|
+
V.url = M;
|
6801
6801
|
}
|
6802
6802
|
function E(M) {
|
6803
|
-
const
|
6804
|
-
if (!
|
6803
|
+
const V = this.stack[this.stack.length - 1];
|
6804
|
+
if (!V.depth) {
|
6805
6805
|
const X = this.sliceSerialize(M).length;
|
6806
|
-
|
6806
|
+
V.depth = X;
|
6807
6807
|
}
|
6808
6808
|
}
|
6809
6809
|
function z() {
|
6810
6810
|
a("setextHeadingSlurpLineEnding", !0);
|
6811
6811
|
}
|
6812
6812
|
function N(M) {
|
6813
|
-
const
|
6814
|
-
|
6813
|
+
const V = this.stack[this.stack.length - 1];
|
6814
|
+
V.depth = this.sliceSerialize(M).charCodeAt(0) === 61 ? 1 : 2;
|
6815
6815
|
}
|
6816
|
-
function
|
6816
|
+
function U() {
|
6817
6817
|
a("setextHeadingSlurpLineEnding");
|
6818
6818
|
}
|
6819
6819
|
function D(M) {
|
6820
|
-
const
|
6821
|
-
let X =
|
6820
|
+
const V = this.stack[this.stack.length - 1];
|
6821
|
+
let X = V.children[V.children.length - 1];
|
6822
6822
|
(!X || X.type !== "text") && (X = Et(), X.position = {
|
6823
6823
|
start: st(M.start)
|
6824
|
-
},
|
6824
|
+
}, V.children.push(X)), this.stack.push(X);
|
6825
6825
|
}
|
6826
6826
|
function B(M) {
|
6827
|
-
const
|
6828
|
-
|
6827
|
+
const V = this.stack.pop();
|
6828
|
+
V.value += this.sliceSerialize(M), V.position.end = st(M.end);
|
6829
6829
|
}
|
6830
6830
|
function O(M) {
|
6831
|
-
const
|
6831
|
+
const V = this.stack[this.stack.length - 1];
|
6832
6832
|
if (o("atHardBreak")) {
|
6833
|
-
const X =
|
6833
|
+
const X = V.children[V.children.length - 1];
|
6834
6834
|
X.position.end = st(M.end), a("atHardBreak");
|
6835
6835
|
return;
|
6836
6836
|
}
|
6837
|
-
!o("setextHeadingSlurpLineEnding") && t.canContainEols.includes(
|
6837
|
+
!o("setextHeadingSlurpLineEnding") && t.canContainEols.includes(V.type) && (D.call(this, M), B.call(this, M));
|
6838
6838
|
}
|
6839
6839
|
function S() {
|
6840
6840
|
a("atHardBreak", !0);
|
6841
6841
|
}
|
6842
6842
|
function T() {
|
6843
|
-
const M = this.resume(),
|
6844
|
-
|
6843
|
+
const M = this.resume(), V = this.stack[this.stack.length - 1];
|
6844
|
+
V.value = M;
|
6845
6845
|
}
|
6846
6846
|
function A() {
|
6847
|
-
const M = this.resume(),
|
6848
|
-
|
6847
|
+
const M = this.resume(), V = this.stack[this.stack.length - 1];
|
6848
|
+
V.value = M;
|
6849
6849
|
}
|
6850
6850
|
function j() {
|
6851
|
-
const M = this.resume(),
|
6852
|
-
|
6851
|
+
const M = this.resume(), V = this.stack[this.stack.length - 1];
|
6852
|
+
V.value = M;
|
6853
6853
|
}
|
6854
6854
|
function R() {
|
6855
6855
|
const M = this.stack[this.stack.length - 1];
|
6856
6856
|
if (o("inReference")) {
|
6857
|
-
const
|
6858
|
-
M.type += "Reference", M.referenceType =
|
6857
|
+
const V = o("referenceType") || "shortcut";
|
6858
|
+
M.type += "Reference", M.referenceType = V, delete M.url, delete M.title;
|
6859
6859
|
} else
|
6860
6860
|
delete M.identifier, delete M.label;
|
6861
6861
|
a("referenceType");
|
@@ -6863,31 +6863,31 @@ function Wd(e) {
|
|
6863
6863
|
function H() {
|
6864
6864
|
const M = this.stack[this.stack.length - 1];
|
6865
6865
|
if (o("inReference")) {
|
6866
|
-
const
|
6867
|
-
M.type += "Reference", M.referenceType =
|
6866
|
+
const V = o("referenceType") || "shortcut";
|
6867
|
+
M.type += "Reference", M.referenceType = V, delete M.url, delete M.title;
|
6868
6868
|
} else
|
6869
6869
|
delete M.identifier, delete M.label;
|
6870
6870
|
a("referenceType");
|
6871
6871
|
}
|
6872
6872
|
function m(M) {
|
6873
|
-
const
|
6874
|
-
X.label = Ud(
|
6873
|
+
const V = this.sliceSerialize(M), X = this.stack[this.stack.length - 2];
|
6874
|
+
X.label = Ud(V), X.identifier = jt(V).toLowerCase();
|
6875
6875
|
}
|
6876
6876
|
function W() {
|
6877
|
-
const M = this.stack[this.stack.length - 1],
|
6877
|
+
const M = this.stack[this.stack.length - 1], V = this.resume(), X = this.stack[this.stack.length - 1];
|
6878
6878
|
if (a("inReference", !0), X.type === "link") {
|
6879
6879
|
const oe = M.children;
|
6880
6880
|
X.children = oe;
|
6881
6881
|
} else
|
6882
|
-
X.alt =
|
6882
|
+
X.alt = V;
|
6883
6883
|
}
|
6884
6884
|
function J() {
|
6885
|
-
const M = this.resume(),
|
6886
|
-
|
6885
|
+
const M = this.resume(), V = this.stack[this.stack.length - 1];
|
6886
|
+
V.url = M;
|
6887
6887
|
}
|
6888
6888
|
function x() {
|
6889
|
-
const M = this.resume(),
|
6890
|
-
|
6889
|
+
const M = this.resume(), V = this.stack[this.stack.length - 1];
|
6890
|
+
V.title = M;
|
6891
6891
|
}
|
6892
6892
|
function Z() {
|
6893
6893
|
a("inReference");
|
@@ -6896,8 +6896,8 @@ function Wd(e) {
|
|
6896
6896
|
a("referenceType", "collapsed");
|
6897
6897
|
}
|
6898
6898
|
function ne(M) {
|
6899
|
-
const
|
6900
|
-
X.label =
|
6899
|
+
const V = this.resume(), X = this.stack[this.stack.length - 1];
|
6900
|
+
X.label = V, X.identifier = jt(
|
6901
6901
|
this.sliceSerialize(M)
|
6902
6902
|
).toLowerCase(), a("referenceType", "full");
|
6903
6903
|
}
|
@@ -6905,24 +6905,24 @@ function Wd(e) {
|
|
6905
6905
|
a("characterReferenceType", M.type);
|
6906
6906
|
}
|
6907
6907
|
function de(M) {
|
6908
|
-
const
|
6908
|
+
const V = this.sliceSerialize(M), X = o("characterReferenceType");
|
6909
6909
|
let oe;
|
6910
6910
|
X ? (oe = nl(
|
6911
|
-
|
6911
|
+
V,
|
6912
6912
|
X === "characterReferenceMarkerNumeric" ? 10 : 16
|
6913
|
-
), a("characterReferenceType")) : oe = ni(
|
6913
|
+
), a("characterReferenceType")) : oe = ni(V);
|
6914
6914
|
const ue = this.stack.pop();
|
6915
6915
|
ue.value += oe, ue.position.end = st(M.end);
|
6916
6916
|
}
|
6917
6917
|
function xe(M) {
|
6918
6918
|
B.call(this, M);
|
6919
|
-
const
|
6920
|
-
|
6919
|
+
const V = this.stack[this.stack.length - 1];
|
6920
|
+
V.url = this.sliceSerialize(M);
|
6921
6921
|
}
|
6922
6922
|
function pe(M) {
|
6923
6923
|
B.call(this, M);
|
6924
|
-
const
|
6925
|
-
|
6924
|
+
const V = this.stack[this.stack.length - 1];
|
6925
|
+
V.url = "mailto:" + this.sliceSerialize(M);
|
6926
6926
|
}
|
6927
6927
|
function Ee() {
|
6928
6928
|
return {
|
@@ -6971,7 +6971,7 @@ function Wd(e) {
|
|
6971
6971
|
type: "break"
|
6972
6972
|
};
|
6973
6973
|
}
|
6974
|
-
function
|
6974
|
+
function Y() {
|
6975
6975
|
return {
|
6976
6976
|
type: "html",
|
6977
6977
|
value: ""
|
@@ -7066,15 +7066,15 @@ function Gd(e, t) {
|
|
7066
7066
|
}
|
7067
7067
|
function Ta(e, t) {
|
7068
7068
|
throw e ? new Error(
|
7069
|
-
"Cannot close `" + e.type + "` (" +
|
7069
|
+
"Cannot close `" + e.type + "` (" + Kt({
|
7070
7070
|
start: e.start,
|
7071
7071
|
end: e.end
|
7072
|
-
}) + "): a different token (`" + t.type + "`, " +
|
7072
|
+
}) + "): a different token (`" + t.type + "`, " + Kt({
|
7073
7073
|
start: t.start,
|
7074
7074
|
end: t.end
|
7075
7075
|
}) + ") is open"
|
7076
7076
|
) : new Error(
|
7077
|
-
"Cannot close document, a token (`" + t.type + "`, " +
|
7077
|
+
"Cannot close document, a token (`" + t.type + "`, " + Kt({
|
7078
7078
|
start: t.start,
|
7079
7079
|
end: t.end
|
7080
7080
|
}) + ") is still open"
|
@@ -7107,12 +7107,12 @@ function Zd(e, t) {
|
|
7107
7107
|
};
|
7108
7108
|
return e.patch(t, n), e.applyData(t, n);
|
7109
7109
|
}
|
7110
|
-
function
|
7110
|
+
function Yd(e, t) {
|
7111
7111
|
const n = { type: "element", tagName: "br", properties: {}, children: [] };
|
7112
7112
|
return e.patch(t, n), [e.applyData(t, n), { type: "text", value: `
|
7113
7113
|
` }];
|
7114
7114
|
}
|
7115
|
-
function
|
7115
|
+
function Kd(e, t) {
|
7116
7116
|
const n = t.value ? t.value + `
|
7117
7117
|
` : "", r = t.lang ? t.lang.match(/^[^ \t]+(?=[ \t]|$)/) : null, i = {};
|
7118
7118
|
r && (i.className = ["language-" + r]);
|
@@ -7472,8 +7472,8 @@ function xp(e, t) {
|
|
7472
7472
|
}
|
7473
7473
|
const wp = {
|
7474
7474
|
blockquote: Zd,
|
7475
|
-
break:
|
7476
|
-
code:
|
7475
|
+
break: Yd,
|
7476
|
+
code: Kd,
|
7477
7477
|
delete: Jd,
|
7478
7478
|
emphasis: Qd,
|
7479
7479
|
footnoteReference: al,
|
@@ -7896,7 +7896,7 @@ Ue.prototype.commaOrSpaceSeparated = !1;
|
|
7896
7896
|
Ue.prototype.mustUseProperty = !1;
|
7897
7897
|
Ue.prototype.defined = !1;
|
7898
7898
|
let zp = 0;
|
7899
|
-
const te = Ct(), _e = Ct(), pl = Ct(),
|
7899
|
+
const te = Ct(), _e = Ct(), pl = Ct(), $ = Ct(), me = Ct(), Dt = Ct(), Me = Ct();
|
7900
7900
|
function Ct() {
|
7901
7901
|
return 2 ** ++zp;
|
7902
7902
|
}
|
@@ -7906,7 +7906,7 @@ const zr = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
7906
7906
|
booleanish: _e,
|
7907
7907
|
commaOrSpaceSeparated: Me,
|
7908
7908
|
commaSeparated: Dt,
|
7909
|
-
number:
|
7909
|
+
number: $,
|
7910
7910
|
overloadedBoolean: pl,
|
7911
7911
|
spaceSeparated: me
|
7912
7912
|
}, Symbol.toStringTag, { value: "Module" })), pr = Object.keys(zr);
|
@@ -7989,9 +7989,9 @@ const bl = Rt({
|
|
7989
7989
|
ariaAutoComplete: null,
|
7990
7990
|
ariaBusy: _e,
|
7991
7991
|
ariaChecked: _e,
|
7992
|
-
ariaColCount:
|
7993
|
-
ariaColIndex:
|
7994
|
-
ariaColSpan:
|
7992
|
+
ariaColCount: $,
|
7993
|
+
ariaColIndex: $,
|
7994
|
+
ariaColSpan: $,
|
7995
7995
|
ariaControls: me,
|
7996
7996
|
ariaCurrent: null,
|
7997
7997
|
ariaDescribedBy: me,
|
@@ -8008,7 +8008,7 @@ const bl = Rt({
|
|
8008
8008
|
ariaKeyShortcuts: null,
|
8009
8009
|
ariaLabel: null,
|
8010
8010
|
ariaLabelledBy: me,
|
8011
|
-
ariaLevel:
|
8011
|
+
ariaLevel: $,
|
8012
8012
|
ariaLive: null,
|
8013
8013
|
ariaModal: _e,
|
8014
8014
|
ariaMultiLine: _e,
|
@@ -8016,21 +8016,21 @@ const bl = Rt({
|
|
8016
8016
|
ariaOrientation: null,
|
8017
8017
|
ariaOwns: me,
|
8018
8018
|
ariaPlaceholder: null,
|
8019
|
-
ariaPosInSet:
|
8019
|
+
ariaPosInSet: $,
|
8020
8020
|
ariaPressed: _e,
|
8021
8021
|
ariaReadOnly: _e,
|
8022
8022
|
ariaRelevant: null,
|
8023
8023
|
ariaRequired: _e,
|
8024
8024
|
ariaRoleDescription: me,
|
8025
|
-
ariaRowCount:
|
8026
|
-
ariaRowIndex:
|
8027
|
-
ariaRowSpan:
|
8025
|
+
ariaRowCount: $,
|
8026
|
+
ariaRowIndex: $,
|
8027
|
+
ariaRowSpan: $,
|
8028
8028
|
ariaSelected: _e,
|
8029
|
-
ariaSetSize:
|
8029
|
+
ariaSetSize: $,
|
8030
8030
|
ariaSort: null,
|
8031
|
-
ariaValueMax:
|
8032
|
-
ariaValueMin:
|
8033
|
-
ariaValueNow:
|
8031
|
+
ariaValueMax: $,
|
8032
|
+
ariaValueMin: $,
|
8033
|
+
ariaValueNow: $,
|
8034
8034
|
ariaValueText: null,
|
8035
8035
|
role: null
|
8036
8036
|
}
|
@@ -8068,13 +8068,13 @@ const bl = Rt({
|
|
8068
8068
|
checked: te,
|
8069
8069
|
cite: null,
|
8070
8070
|
className: me,
|
8071
|
-
cols:
|
8071
|
+
cols: $,
|
8072
8072
|
colSpan: null,
|
8073
8073
|
content: null,
|
8074
8074
|
contentEditable: _e,
|
8075
8075
|
controls: te,
|
8076
8076
|
controlsList: me,
|
8077
|
-
coords:
|
8077
|
+
coords: $ | Dt,
|
8078
8078
|
crossOrigin: null,
|
8079
8079
|
data: null,
|
8080
8080
|
dateTime: null,
|
@@ -8096,9 +8096,9 @@ const bl = Rt({
|
|
8096
8096
|
formNoValidate: te,
|
8097
8097
|
formTarget: null,
|
8098
8098
|
headers: me,
|
8099
|
-
height:
|
8099
|
+
height: $,
|
8100
8100
|
hidden: te,
|
8101
|
-
high:
|
8101
|
+
high: $,
|
8102
8102
|
href: null,
|
8103
8103
|
hrefLang: null,
|
8104
8104
|
htmlFor: me,
|
@@ -8123,14 +8123,14 @@ const bl = Rt({
|
|
8123
8123
|
list: null,
|
8124
8124
|
loading: null,
|
8125
8125
|
loop: te,
|
8126
|
-
low:
|
8126
|
+
low: $,
|
8127
8127
|
manifest: null,
|
8128
8128
|
max: null,
|
8129
|
-
maxLength:
|
8129
|
+
maxLength: $,
|
8130
8130
|
media: null,
|
8131
8131
|
method: null,
|
8132
8132
|
min: null,
|
8133
|
-
minLength:
|
8133
|
+
minLength: $,
|
8134
8134
|
multiple: te,
|
8135
8135
|
muted: te,
|
8136
8136
|
name: null,
|
@@ -8226,7 +8226,7 @@ const bl = Rt({
|
|
8226
8226
|
onWaiting: null,
|
8227
8227
|
onWheel: null,
|
8228
8228
|
open: te,
|
8229
|
-
optimum:
|
8229
|
+
optimum: $,
|
8230
8230
|
pattern: null,
|
8231
8231
|
ping: me,
|
8232
8232
|
placeholder: null,
|
@@ -8241,8 +8241,8 @@ const bl = Rt({
|
|
8241
8241
|
rel: me,
|
8242
8242
|
required: te,
|
8243
8243
|
reversed: te,
|
8244
|
-
rows:
|
8245
|
-
rowSpan:
|
8244
|
+
rows: $,
|
8245
|
+
rowSpan: $,
|
8246
8246
|
sandbox: me,
|
8247
8247
|
scope: null,
|
8248
8248
|
scoped: te,
|
@@ -8251,19 +8251,19 @@ const bl = Rt({
|
|
8251
8251
|
shadowRootDelegatesFocus: te,
|
8252
8252
|
shadowRootMode: null,
|
8253
8253
|
shape: null,
|
8254
|
-
size:
|
8254
|
+
size: $,
|
8255
8255
|
sizes: null,
|
8256
8256
|
slot: null,
|
8257
|
-
span:
|
8257
|
+
span: $,
|
8258
8258
|
spellCheck: _e,
|
8259
8259
|
src: null,
|
8260
8260
|
srcDoc: null,
|
8261
8261
|
srcLang: null,
|
8262
8262
|
srcSet: null,
|
8263
|
-
start:
|
8263
|
+
start: $,
|
8264
8264
|
step: null,
|
8265
8265
|
style: null,
|
8266
|
-
tabIndex:
|
8266
|
+
tabIndex: $,
|
8267
8267
|
target: null,
|
8268
8268
|
title: null,
|
8269
8269
|
translate: null,
|
@@ -8271,7 +8271,7 @@ const bl = Rt({
|
|
8271
8271
|
typeMustMatch: te,
|
8272
8272
|
useMap: null,
|
8273
8273
|
value: _e,
|
8274
|
-
width:
|
8274
|
+
width: $,
|
8275
8275
|
wrap: null,
|
8276
8276
|
// Legacy.
|
8277
8277
|
// See: https://html.spec.whatwg.org/#other-elements,-attributes-and-apis
|
@@ -8287,11 +8287,11 @@ const bl = Rt({
|
|
8287
8287
|
// `<body>`. Use CSS `background-image` instead
|
8288
8288
|
bgColor: null,
|
8289
8289
|
// `<body>` and table elements. Use CSS `background-color` instead
|
8290
|
-
border:
|
8290
|
+
border: $,
|
8291
8291
|
// `<table>`. Use CSS `border-width` instead,
|
8292
8292
|
borderColor: null,
|
8293
8293
|
// `<table>`. Use CSS `border-color` instead,
|
8294
|
-
bottomMargin:
|
8294
|
+
bottomMargin: $,
|
8295
8295
|
// `<body>`
|
8296
8296
|
cellPadding: null,
|
8297
8297
|
// `<table>`
|
@@ -8325,9 +8325,9 @@ const bl = Rt({
|
|
8325
8325
|
// `<table>`
|
8326
8326
|
frameBorder: null,
|
8327
8327
|
// `<iframe>`. Use CSS `border` instead
|
8328
|
-
hSpace:
|
8328
|
+
hSpace: $,
|
8329
8329
|
// `<img>` and `<object>`
|
8330
|
-
leftMargin:
|
8330
|
+
leftMargin: $,
|
8331
8331
|
// `<body>`
|
8332
8332
|
link: null,
|
8333
8333
|
// `<body>`. Use CSS `a:link {color: *}` instead
|
@@ -8335,9 +8335,9 @@ const bl = Rt({
|
|
8335
8335
|
// `<frame>`, `<iframe>`, and `<img>`. Use an `<a>`
|
8336
8336
|
lowSrc: null,
|
8337
8337
|
// `<img>`. Use a `<picture>`
|
8338
|
-
marginHeight:
|
8338
|
+
marginHeight: $,
|
8339
8339
|
// `<body>`
|
8340
|
-
marginWidth:
|
8340
|
+
marginWidth: $,
|
8341
8341
|
// `<body>`
|
8342
8342
|
noResize: te,
|
8343
8343
|
// `<frame>`
|
@@ -8355,7 +8355,7 @@ const bl = Rt({
|
|
8355
8355
|
// `<isindex>`
|
8356
8356
|
rev: null,
|
8357
8357
|
// `<link>`
|
8358
|
-
rightMargin:
|
8358
|
+
rightMargin: $,
|
8359
8359
|
// `<body>`
|
8360
8360
|
rules: null,
|
8361
8361
|
// `<table>`
|
@@ -8369,7 +8369,7 @@ const bl = Rt({
|
|
8369
8369
|
// `<table>`
|
8370
8370
|
text: null,
|
8371
8371
|
// `<body>`. Use CSS `color` instead
|
8372
|
-
topMargin:
|
8372
|
+
topMargin: $,
|
8373
8373
|
// `<body>`
|
8374
8374
|
valueType: null,
|
8375
8375
|
// `<param>`
|
@@ -8379,7 +8379,7 @@ const bl = Rt({
|
|
8379
8379
|
// Several. Use CSS `vertical-align` instead
|
8380
8380
|
vLink: null,
|
8381
8381
|
// `<body>`. Use CSS `a:visited {color}` instead
|
8382
|
-
vSpace:
|
8382
|
+
vSpace: $,
|
8383
8383
|
// `<img>` and `<object>`
|
8384
8384
|
// Non-standard Properties.
|
8385
8385
|
allowTransparency: null,
|
@@ -8389,7 +8389,7 @@ const bl = Rt({
|
|
8389
8389
|
disableRemotePlayback: te,
|
8390
8390
|
prefix: null,
|
8391
8391
|
property: null,
|
8392
|
-
results:
|
8392
|
+
results: $,
|
8393
8393
|
security: null,
|
8394
8394
|
unselectable: null
|
8395
8395
|
}
|
@@ -8573,27 +8573,27 @@ const bl = Rt({
|
|
8573
8573
|
transform: gl,
|
8574
8574
|
properties: {
|
8575
8575
|
about: Me,
|
8576
|
-
accentHeight:
|
8576
|
+
accentHeight: $,
|
8577
8577
|
accumulate: null,
|
8578
8578
|
additive: null,
|
8579
8579
|
alignmentBaseline: null,
|
8580
|
-
alphabetic:
|
8581
|
-
amplitude:
|
8580
|
+
alphabetic: $,
|
8581
|
+
amplitude: $,
|
8582
8582
|
arabicForm: null,
|
8583
|
-
ascent:
|
8583
|
+
ascent: $,
|
8584
8584
|
attributeName: null,
|
8585
8585
|
attributeType: null,
|
8586
|
-
azimuth:
|
8586
|
+
azimuth: $,
|
8587
8587
|
bandwidth: null,
|
8588
8588
|
baselineShift: null,
|
8589
8589
|
baseFrequency: null,
|
8590
8590
|
baseProfile: null,
|
8591
8591
|
bbox: null,
|
8592
8592
|
begin: null,
|
8593
|
-
bias:
|
8593
|
+
bias: $,
|
8594
8594
|
by: null,
|
8595
8595
|
calcMode: null,
|
8596
|
-
capHeight:
|
8596
|
+
capHeight: $,
|
8597
8597
|
className: me,
|
8598
8598
|
clip: null,
|
8599
8599
|
clipPath: null,
|
@@ -8614,26 +8614,26 @@ const bl = Rt({
|
|
8614
8614
|
d: null,
|
8615
8615
|
dataType: null,
|
8616
8616
|
defaultAction: null,
|
8617
|
-
descent:
|
8618
|
-
diffuseConstant:
|
8617
|
+
descent: $,
|
8618
|
+
diffuseConstant: $,
|
8619
8619
|
direction: null,
|
8620
8620
|
display: null,
|
8621
8621
|
dur: null,
|
8622
|
-
divisor:
|
8622
|
+
divisor: $,
|
8623
8623
|
dominantBaseline: null,
|
8624
8624
|
download: te,
|
8625
8625
|
dx: null,
|
8626
8626
|
dy: null,
|
8627
8627
|
edgeMode: null,
|
8628
8628
|
editable: null,
|
8629
|
-
elevation:
|
8629
|
+
elevation: $,
|
8630
8630
|
enableBackground: null,
|
8631
8631
|
end: null,
|
8632
8632
|
event: null,
|
8633
|
-
exponent:
|
8633
|
+
exponent: $,
|
8634
8634
|
externalResourcesRequired: null,
|
8635
8635
|
fill: null,
|
8636
|
-
fillOpacity:
|
8636
|
+
fillOpacity: $,
|
8637
8637
|
fillRule: null,
|
8638
8638
|
filter: null,
|
8639
8639
|
filterRes: null,
|
@@ -8663,27 +8663,27 @@ const bl = Rt({
|
|
8663
8663
|
gradientTransform: null,
|
8664
8664
|
gradientUnits: null,
|
8665
8665
|
handler: null,
|
8666
|
-
hanging:
|
8666
|
+
hanging: $,
|
8667
8667
|
hatchContentUnits: null,
|
8668
8668
|
hatchUnits: null,
|
8669
8669
|
height: null,
|
8670
8670
|
href: null,
|
8671
8671
|
hrefLang: null,
|
8672
|
-
horizAdvX:
|
8673
|
-
horizOriginX:
|
8674
|
-
horizOriginY:
|
8672
|
+
horizAdvX: $,
|
8673
|
+
horizOriginX: $,
|
8674
|
+
horizOriginY: $,
|
8675
8675
|
id: null,
|
8676
|
-
ideographic:
|
8676
|
+
ideographic: $,
|
8677
8677
|
imageRendering: null,
|
8678
8678
|
initialVisibility: null,
|
8679
8679
|
in: null,
|
8680
8680
|
in2: null,
|
8681
|
-
intercept:
|
8682
|
-
k:
|
8683
|
-
k1:
|
8684
|
-
k2:
|
8685
|
-
k3:
|
8686
|
-
k4:
|
8681
|
+
intercept: $,
|
8682
|
+
k: $,
|
8683
|
+
k1: $,
|
8684
|
+
k2: $,
|
8685
|
+
k3: $,
|
8686
|
+
k4: $,
|
8687
8687
|
kernelMatrix: Me,
|
8688
8688
|
kernelUnitLength: null,
|
8689
8689
|
keyPoints: null,
|
@@ -8697,7 +8697,7 @@ const bl = Rt({
|
|
8697
8697
|
lengthAdjust: null,
|
8698
8698
|
letterSpacing: null,
|
8699
8699
|
lightingColor: null,
|
8700
|
-
limitingConeAngle:
|
8700
|
+
limitingConeAngle: $,
|
8701
8701
|
local: null,
|
8702
8702
|
markerEnd: null,
|
8703
8703
|
markerMid: null,
|
@@ -8713,7 +8713,7 @@ const bl = Rt({
|
|
8713
8713
|
media: null,
|
8714
8714
|
mediaCharacterEncoding: null,
|
8715
8715
|
mediaContentEncodings: null,
|
8716
|
-
mediaSize:
|
8716
|
+
mediaSize: $,
|
8717
8717
|
mediaTime: null,
|
8718
8718
|
method: null,
|
8719
8719
|
min: null,
|
@@ -8819,12 +8819,12 @@ const bl = Rt({
|
|
8819
8819
|
origin: null,
|
8820
8820
|
overflow: null,
|
8821
8821
|
overlay: null,
|
8822
|
-
overlinePosition:
|
8823
|
-
overlineThickness:
|
8822
|
+
overlinePosition: $,
|
8823
|
+
overlineThickness: $,
|
8824
8824
|
paintOrder: null,
|
8825
8825
|
panose1: null,
|
8826
8826
|
path: null,
|
8827
|
-
pathLength:
|
8827
|
+
pathLength: $,
|
8828
8828
|
patternContentUnits: null,
|
8829
8829
|
patternTransform: null,
|
8830
8830
|
patternUnits: null,
|
@@ -8834,9 +8834,9 @@ const bl = Rt({
|
|
8834
8834
|
playbackOrder: null,
|
8835
8835
|
pointerEvents: null,
|
8836
8836
|
points: null,
|
8837
|
-
pointsAtX:
|
8838
|
-
pointsAtY:
|
8839
|
-
pointsAtZ:
|
8837
|
+
pointsAtX: $,
|
8838
|
+
pointsAtY: $,
|
8839
|
+
pointsAtZ: $,
|
8840
8840
|
preserveAlpha: null,
|
8841
8841
|
preserveAspectRatio: null,
|
8842
8842
|
primitiveUnits: null,
|
@@ -8868,8 +8868,8 @@ const bl = Rt({
|
|
8868
8868
|
side: null,
|
8869
8869
|
slope: null,
|
8870
8870
|
snapshotTime: null,
|
8871
|
-
specularConstant:
|
8872
|
-
specularExponent:
|
8871
|
+
specularConstant: $,
|
8872
|
+
specularExponent: $,
|
8873
8873
|
spreadMethod: null,
|
8874
8874
|
spacing: null,
|
8875
8875
|
startOffset: null,
|
@@ -8879,30 +8879,30 @@ const bl = Rt({
|
|
8879
8879
|
stitchTiles: null,
|
8880
8880
|
stopColor: null,
|
8881
8881
|
stopOpacity: null,
|
8882
|
-
strikethroughPosition:
|
8883
|
-
strikethroughThickness:
|
8882
|
+
strikethroughPosition: $,
|
8883
|
+
strikethroughThickness: $,
|
8884
8884
|
string: null,
|
8885
8885
|
stroke: null,
|
8886
8886
|
strokeDashArray: Me,
|
8887
8887
|
strokeDashOffset: null,
|
8888
8888
|
strokeLineCap: null,
|
8889
8889
|
strokeLineJoin: null,
|
8890
|
-
strokeMiterLimit:
|
8891
|
-
strokeOpacity:
|
8890
|
+
strokeMiterLimit: $,
|
8891
|
+
strokeOpacity: $,
|
8892
8892
|
strokeWidth: null,
|
8893
8893
|
style: null,
|
8894
|
-
surfaceScale:
|
8894
|
+
surfaceScale: $,
|
8895
8895
|
syncBehavior: null,
|
8896
8896
|
syncBehaviorDefault: null,
|
8897
8897
|
syncMaster: null,
|
8898
8898
|
syncTolerance: null,
|
8899
8899
|
syncToleranceDefault: null,
|
8900
8900
|
systemLanguage: Me,
|
8901
|
-
tabIndex:
|
8901
|
+
tabIndex: $,
|
8902
8902
|
tableValues: null,
|
8903
8903
|
target: null,
|
8904
|
-
targetX:
|
8905
|
-
targetY:
|
8904
|
+
targetX: $,
|
8905
|
+
targetY: $,
|
8906
8906
|
textAnchor: null,
|
8907
8907
|
textDecoration: null,
|
8908
8908
|
textRendering: null,
|
@@ -8917,22 +8917,22 @@ const bl = Rt({
|
|
8917
8917
|
transformOrigin: null,
|
8918
8918
|
u1: null,
|
8919
8919
|
u2: null,
|
8920
|
-
underlinePosition:
|
8921
|
-
underlineThickness:
|
8920
|
+
underlinePosition: $,
|
8921
|
+
underlineThickness: $,
|
8922
8922
|
unicode: null,
|
8923
8923
|
unicodeBidi: null,
|
8924
8924
|
unicodeRange: null,
|
8925
|
-
unitsPerEm:
|
8925
|
+
unitsPerEm: $,
|
8926
8926
|
values: null,
|
8927
|
-
vAlphabetic:
|
8928
|
-
vMathematical:
|
8927
|
+
vAlphabetic: $,
|
8928
|
+
vMathematical: $,
|
8929
8929
|
vectorEffect: null,
|
8930
|
-
vHanging:
|
8931
|
-
vIdeographic:
|
8930
|
+
vHanging: $,
|
8931
|
+
vIdeographic: $,
|
8932
8932
|
version: null,
|
8933
|
-
vertAdvY:
|
8934
|
-
vertOriginX:
|
8935
|
-
vertOriginY:
|
8933
|
+
vertAdvY: $,
|
8934
|
+
vertOriginX: $,
|
8935
|
+
vertOriginY: $,
|
8936
8936
|
viewBox: null,
|
8937
8937
|
viewTarget: null,
|
8938
8938
|
visibility: null,
|
@@ -8944,7 +8944,7 @@ const bl = Rt({
|
|
8944
8944
|
x1: null,
|
8945
8945
|
x2: null,
|
8946
8946
|
xChannelSelector: null,
|
8947
|
-
xHeight:
|
8947
|
+
xHeight: $,
|
8948
8948
|
y: null,
|
8949
8949
|
y1: null,
|
8950
8950
|
y2: null,
|
@@ -8997,7 +8997,7 @@ const Da = {
|
|
8997
8997
|
xLinkTitle: "xlinkTitle",
|
8998
8998
|
xLinkType: "xlinkType",
|
8999
8999
|
xmlnsXLink: "xmlnsXlink"
|
9000
|
-
},
|
9000
|
+
}, Yp = dl([ml, hl, bl, vl, Up], "html"), Kp = dl([ml, hl, bl, vl, $p], "svg");
|
9001
9001
|
function Jp(e) {
|
9002
9002
|
if (e.allowedElements && e.disallowedElements)
|
9003
9003
|
throw new TypeError(
|
@@ -9131,7 +9131,7 @@ function oh() {
|
|
9131
9131
|
if (!h) return [];
|
9132
9132
|
w = w || {};
|
9133
9133
|
var g = 1, P = 1;
|
9134
|
-
function
|
9134
|
+
function L(O) {
|
9135
9135
|
var S = O.match(t);
|
9136
9136
|
S && (g += S.length);
|
9137
9137
|
var T = O.lastIndexOf(s);
|
@@ -9157,7 +9157,7 @@ function oh() {
|
|
9157
9157
|
var S = O.exec(h);
|
9158
9158
|
if (S) {
|
9159
9159
|
var T = S[0];
|
9160
|
-
return
|
9160
|
+
return L(T), h = h.slice(T.length), S;
|
9161
9161
|
}
|
9162
9162
|
}
|
9163
9163
|
function z() {
|
@@ -9165,11 +9165,11 @@ function oh() {
|
|
9165
9165
|
}
|
9166
9166
|
function N(O) {
|
9167
9167
|
var S;
|
9168
|
-
for (O = O || []; S =
|
9168
|
+
for (O = O || []; S = U(); )
|
9169
9169
|
S !== !1 && O.push(S);
|
9170
9170
|
return O;
|
9171
9171
|
}
|
9172
|
-
function
|
9172
|
+
function U() {
|
9173
9173
|
var O = q();
|
9174
9174
|
if (!(u != h.charAt(0) || c != h.charAt(1))) {
|
9175
9175
|
for (var S = 2; f != h.charAt(S) && (c != h.charAt(S) || u != h.charAt(S + 1)); )
|
@@ -9177,7 +9177,7 @@ function oh() {
|
|
9177
9177
|
if (S += 2, f === h.charAt(S - 1))
|
9178
9178
|
return b("End of comment missing");
|
9179
9179
|
var T = h.slice(2, S - 2);
|
9180
|
-
return P += 2,
|
9180
|
+
return P += 2, L(T), h = h.slice(S), P += 2, O({
|
9181
9181
|
type: p,
|
9182
9182
|
comment: T
|
9183
9183
|
});
|
@@ -9186,7 +9186,7 @@ function oh() {
|
|
9186
9186
|
function D() {
|
9187
9187
|
var O = q(), S = E(r);
|
9188
9188
|
if (S) {
|
9189
|
-
if (
|
9189
|
+
if (U(), !E(i)) return b("property missing ':'");
|
9190
9190
|
var T = E(a), A = O({
|
9191
9191
|
type: d,
|
9192
9192
|
property: y(S[0].replace(e, f)),
|
@@ -9236,7 +9236,7 @@ function xl(e, t) {
|
|
9236
9236
|
function fh(e, t, n, r) {
|
9237
9237
|
const i = e.options, a = i.transformLinkUri === void 0 ? xc : i.transformLinkUri, o = e.schema, l = t.tagName, s = {};
|
9238
9238
|
let u = o, c;
|
9239
|
-
if (o.space === "html" && l === "svg" && (u =
|
9239
|
+
if (o.space === "html" && l === "svg" && (u = Kp, e.schema = u), t.properties)
|
9240
9240
|
for (c in t.properties)
|
9241
9241
|
qr.call(t.properties, c) && ph(s, c, t.properties[c], e);
|
9242
9242
|
(l === "ol" || l === "ul") && e.listDepth++;
|
@@ -9359,7 +9359,7 @@ function ui(e) {
|
|
9359
9359
|
let i = Ge.createElement(
|
9360
9360
|
Ge.Fragment,
|
9361
9361
|
{},
|
9362
|
-
xl({ options: e, schema:
|
9362
|
+
xl({ options: e, schema: Yp, listDepth: 0 }, r)
|
9363
9363
|
);
|
9364
9364
|
return e.className && (i = Ge.createElement("div", { className: e.className }, i)), i;
|
9365
9365
|
}
|
@@ -9465,12 +9465,12 @@ function xh() {
|
|
9465
9465
|
var n = 1e3, r = 6e4, i = 36e5, a = "millisecond", o = "second", l = "minute", s = "hour", u = "day", c = "week", f = "month", p = "quarter", d = "year", y = "date", h = "Invalid Date", w = /^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/, g = /\[([^\]]+)]|Y{1,4}|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a|A|m{1,2}|s{1,2}|Z{1,2}|SSS/g, P = { name: "en", weekdays: "Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"), months: "January_February_March_April_May_June_July_August_September_October_November_December".split("_"), ordinal: function(S) {
|
9466
9466
|
var T = ["th", "st", "nd", "rd"], A = S % 100;
|
9467
9467
|
return "[" + S + (T[(A - 20) % 10] || T[A] || T[0]) + "]";
|
9468
|
-
} },
|
9468
|
+
} }, L = function(S, T, A) {
|
9469
9469
|
var j = String(S);
|
9470
9470
|
return !j || j.length >= T ? S : "" + Array(T + 1 - j.length).join(A) + S;
|
9471
|
-
}, q = { s:
|
9471
|
+
}, q = { s: L, z: function(S) {
|
9472
9472
|
var T = -S.utcOffset(), A = Math.abs(T), j = Math.floor(A / 60), R = A % 60;
|
9473
|
-
return (T <= 0 ? "+" : "-") +
|
9473
|
+
return (T <= 0 ? "+" : "-") + L(j, 2, "0") + ":" + L(R, 2, "0");
|
9474
9474
|
}, m: function S(T, A) {
|
9475
9475
|
if (T.date() < A.date()) return -S(A, T);
|
9476
9476
|
var j = 12 * (A.year() - T.year()) + (A.month() - T.month()), R = T.clone().add(j, f), H = A - R < 0, m = T.clone().add(j + (H ? -1 : 1), f);
|
@@ -9498,13 +9498,13 @@ function xh() {
|
|
9498
9498
|
b[W] = T, R = W;
|
9499
9499
|
}
|
9500
9500
|
return !j && R && (I = R), R || !j && I;
|
9501
|
-
},
|
9501
|
+
}, U = function(S, T) {
|
9502
9502
|
if (z(S)) return S.clone();
|
9503
9503
|
var A = typeof T == "object" ? T : {};
|
9504
9504
|
return A.date = S, A.args = arguments, new B(A);
|
9505
9505
|
}, D = q;
|
9506
9506
|
D.l = N, D.i = z, D.w = function(S, T) {
|
9507
|
-
return
|
9507
|
+
return U(S, { locale: T.$L, utc: T.$u, x: T.$x, $offset: T.$offset });
|
9508
9508
|
};
|
9509
9509
|
var B = function() {
|
9510
9510
|
function S(A) {
|
@@ -9534,12 +9534,12 @@ function xh() {
|
|
9534
9534
|
}, T.isValid = function() {
|
9535
9535
|
return this.$d.toString() !== h;
|
9536
9536
|
}, T.isSame = function(A, j) {
|
9537
|
-
var R =
|
9537
|
+
var R = U(A);
|
9538
9538
|
return this.startOf(j) <= R && R <= this.endOf(j);
|
9539
9539
|
}, T.isAfter = function(A, j) {
|
9540
|
-
return
|
9540
|
+
return U(A) < this.startOf(j);
|
9541
9541
|
}, T.isBefore = function(A, j) {
|
9542
|
-
return this.endOf(j) <
|
9542
|
+
return this.endOf(j) < U(A);
|
9543
9543
|
}, T.$g = function(A, j, R) {
|
9544
9544
|
return D.u(A) ? this[j] : this.set(R, A);
|
9545
9545
|
}, T.unix = function() {
|
@@ -9590,7 +9590,7 @@ function xh() {
|
|
9590
9590
|
var R, H = this;
|
9591
9591
|
A = Number(A);
|
9592
9592
|
var m = D.p(j), W = function(Z) {
|
9593
|
-
var ie =
|
9593
|
+
var ie = U(H);
|
9594
9594
|
return D.w(ie.date(ie.date() + Math.round(Z * A)), H);
|
9595
9595
|
};
|
9596
9596
|
if (m === f) return this.set(f, this.$M + A);
|
@@ -9670,7 +9670,7 @@ function xh() {
|
|
9670
9670
|
}, T.utcOffset = function() {
|
9671
9671
|
return 15 * -Math.round(this.$d.getTimezoneOffset() / 15);
|
9672
9672
|
}, T.diff = function(A, j, R) {
|
9673
|
-
var H, m = this, W = D.p(j), J =
|
9673
|
+
var H, m = this, W = D.p(j), J = U(A), x = (J.utcOffset() - this.utcOffset()) * r, Z = this - J, ie = function() {
|
9674
9674
|
return D.m(m, J);
|
9675
9675
|
};
|
9676
9676
|
switch (W) {
|
@@ -9722,15 +9722,15 @@ function xh() {
|
|
9722
9722
|
return this.$d.toUTCString();
|
9723
9723
|
}, S;
|
9724
9724
|
}(), O = B.prototype;
|
9725
|
-
return
|
9725
|
+
return U.prototype = O, [["$ms", a], ["$s", o], ["$m", l], ["$H", s], ["$W", u], ["$M", f], ["$y", d], ["$D", y]].forEach(function(S) {
|
9726
9726
|
O[S[1]] = function(T) {
|
9727
9727
|
return this.$g(T, S[0], S[1]);
|
9728
9728
|
};
|
9729
|
-
}),
|
9730
|
-
return S.$i || (S(T, B,
|
9731
|
-
},
|
9732
|
-
return
|
9733
|
-
},
|
9729
|
+
}), U.extend = function(S, T) {
|
9730
|
+
return S.$i || (S(T, B, U), S.$i = !0), U;
|
9731
|
+
}, U.locale = N, U.isDayjs = z, U.unix = function(S) {
|
9732
|
+
return U(1e3 * S);
|
9733
|
+
}, U.en = b[I], U.Ls = b, U.p = {}, U;
|
9734
9734
|
});
|
9735
9735
|
}(Cn)), Cn.exports;
|
9736
9736
|
}
|
@@ -9751,7 +9751,13 @@ function _h(e) {
|
|
9751
9751
|
}
|
9752
9752
|
return t.toString();
|
9753
9753
|
}
|
9754
|
-
|
9754
|
+
function Eh(e) {
|
9755
|
+
return (e ?? []).map((t) => {
|
9756
|
+
var n;
|
9757
|
+
return (n = t == null ? void 0 : t.function) == null ? void 0 : n.name;
|
9758
|
+
}).filter(Boolean);
|
9759
|
+
}
|
9760
|
+
const Th = "Sure, I can get you to someone who can help.", an = ({
|
9755
9761
|
index: e,
|
9756
9762
|
isTestUser: t,
|
9757
9763
|
message: n,
|
@@ -9761,8 +9767,8 @@ const Eh = "Sure, I can get you to someone who can help.", an = ({
|
|
9761
9767
|
setLiveChatOpen: o,
|
9762
9768
|
submitEvent: l
|
9763
9769
|
}) => {
|
9764
|
-
var
|
9765
|
-
const { primaryColor: s, conversationScreen: u } = Q(Se), { content: c, disableFeedback: f, liveAgent: p, role: d, timestamp: y } = n ?? {},
|
9770
|
+
var L;
|
9771
|
+
const { primaryColor: s, conversationScreen: u } = Q(Se), { content: c, disableFeedback: f, liveAgent: p, role: d, timestamp: y, toolCalls: h } = n ?? {}, w = p || Eh(h).includes("escalate_to_an_agent"), g = !w && !!c, P = {
|
9766
9772
|
agent: {
|
9767
9773
|
bubbleClassName: "xpert-chatbot-popup__bubble--assistant",
|
9768
9774
|
bubbleStyle: {},
|
@@ -9785,7 +9791,7 @@ const Eh = "Sure, I can get you to someone who can help.", an = ({
|
|
9785
9791
|
bubbleClassName: "xpert-chatbot-popup__bubble--user",
|
9786
9792
|
bubbleStyle: {
|
9787
9793
|
backgroundColor: s,
|
9788
|
-
...(
|
9794
|
+
...(L = u == null ? void 0 : u.userMessageBubble) == null ? void 0 : L.style
|
9789
9795
|
},
|
9790
9796
|
innerStyle: { justifyContent: "flex-end" },
|
9791
9797
|
sectionAriaLabel: "The user said"
|
@@ -9794,7 +9800,7 @@ const Eh = "Sure, I can get you to someone who can help.", an = ({
|
|
9794
9800
|
return /* @__PURE__ */ C.jsxs(
|
9795
9801
|
"section",
|
9796
9802
|
{
|
9797
|
-
"aria-label":
|
9803
|
+
"aria-label": P[d].sectionAriaLabel,
|
9798
9804
|
className: "xpert-chatbot-popup__bubble--group",
|
9799
9805
|
ref: r,
|
9800
9806
|
children: [
|
@@ -9802,7 +9808,7 @@ const Eh = "Sure, I can get you to someone who can help.", an = ({
|
|
9802
9808
|
"div",
|
9803
9809
|
{
|
9804
9810
|
className: "xpert-chatbot-popup__bubble--group-inner",
|
9805
|
-
style:
|
9811
|
+
style: P[d].innerStyle,
|
9806
9812
|
children: [
|
9807
9813
|
d === "agent" && /* @__PURE__ */ C.jsx(
|
9808
9814
|
En,
|
@@ -9816,25 +9822,25 @@ const Eh = "Sure, I can get you to someone who can help.", an = ({
|
|
9816
9822
|
"div",
|
9817
9823
|
{
|
9818
9824
|
"data-testid": "message-container",
|
9819
|
-
className:
|
9820
|
-
style:
|
9825
|
+
className: P[d].bubbleClassName,
|
9826
|
+
style: P[d].bubbleStyle,
|
9821
9827
|
children: [
|
9822
|
-
|
9828
|
+
g && /* @__PURE__ */ C.jsx(
|
9823
9829
|
ui,
|
9824
9830
|
{
|
9825
9831
|
components: {
|
9826
|
-
a: (
|
9832
|
+
a: (q) => /* @__PURE__ */ C.jsx(
|
9827
9833
|
"a",
|
9828
9834
|
{
|
9829
|
-
...
|
9835
|
+
...q,
|
9830
9836
|
role: "link",
|
9831
9837
|
tabIndex: 0,
|
9832
9838
|
onClick: a,
|
9833
9839
|
onKeyDown: void 0,
|
9834
|
-
children:
|
9840
|
+
children: q.children
|
9835
9841
|
}
|
9836
9842
|
),
|
9837
|
-
p: (
|
9843
|
+
p: (q) => /* @__PURE__ */ C.jsx("p", { ...q, style: P[d].bubbleStyle, children: q.children })
|
9838
9844
|
},
|
9839
9845
|
linkTarget: "_blank",
|
9840
9846
|
transformLinkUri: _h,
|
@@ -9842,7 +9848,7 @@ const Eh = "Sure, I can get you to someone who can help.", an = ({
|
|
9842
9848
|
}
|
9843
9849
|
),
|
9844
9850
|
w && /* @__PURE__ */ C.jsxs(C.Fragment, { children: [
|
9845
|
-
/* @__PURE__ */ C.jsx("div", { children:
|
9851
|
+
/* @__PURE__ */ C.jsx("div", { children: Th }),
|
9846
9852
|
/* @__PURE__ */ C.jsx(
|
9847
9853
|
Dn,
|
9848
9854
|
{
|
@@ -9928,7 +9934,7 @@ ci.propTypes = {
|
|
9928
9934
|
}).isRequired
|
9929
9935
|
};
|
9930
9936
|
ci.displayName = "NotificationMessage";
|
9931
|
-
const
|
9937
|
+
const Oh = () => {
|
9932
9938
|
const e = ze(null);
|
9933
9939
|
return Ce(() => {
|
9934
9940
|
var t;
|
@@ -10066,7 +10072,7 @@ const on = ({
|
|
10066
10072
|
}
|
10067
10073
|
),
|
10068
10074
|
t && /* @__PURE__ */ C.jsx(wl, { disableScroll: l }),
|
10069
|
-
s && /* @__PURE__ */ C.jsx(
|
10075
|
+
s && /* @__PURE__ */ C.jsx(Oh, {})
|
10070
10076
|
] });
|
10071
10077
|
};
|
10072
10078
|
on.propTypes = {
|
@@ -10083,7 +10089,14 @@ on.propTypes = {
|
|
10083
10089
|
"notification",
|
10084
10090
|
"user"
|
10085
10091
|
]).isRequired,
|
10086
|
-
timestamp: k.instanceOf(Date)
|
10092
|
+
timestamp: k.instanceOf(Date),
|
10093
|
+
toolCalls: k.arrayOf(
|
10094
|
+
k.shape({
|
10095
|
+
function: k.shape({
|
10096
|
+
name: k.string
|
10097
|
+
})
|
10098
|
+
})
|
10099
|
+
)
|
10087
10100
|
})
|
10088
10101
|
),
|
10089
10102
|
onFeedbackThumbSelection: k.func.isRequired,
|
@@ -10436,7 +10449,7 @@ function gi() {
|
|
10436
10449
|
return Gt;
|
10437
10450
|
}
|
10438
10451
|
var Za;
|
10439
|
-
function
|
10452
|
+
function Ih() {
|
10440
10453
|
if (Za) return At;
|
10441
10454
|
Za = 1;
|
10442
10455
|
var e = At.__assign || function() {
|
@@ -10472,10 +10485,10 @@ function Oh() {
|
|
10472
10485
|
if (f.current.onClose && f.current.onClose(w), p(r.ReadyState.CLOSED), f.current.shouldReconnect && f.current.shouldReconnect(w)) {
|
10473
10486
|
var P = (g = f.current.reconnectAttempts) !== null && g !== void 0 ? g : r.DEFAULT_RECONNECT_LIMIT;
|
10474
10487
|
if (y.current < P) {
|
10475
|
-
var
|
10488
|
+
var L = typeof f.current.reconnectInterval == "function" ? f.current.reconnectInterval(y.current) : f.current.reconnectInterval;
|
10476
10489
|
h = window.setTimeout(function() {
|
10477
10490
|
y.current++, d();
|
10478
|
-
},
|
10491
|
+
}, L ?? r.DEFAULT_RECONNECT_INTERVAL_MS);
|
10479
10492
|
} else
|
10480
10493
|
f.current.onReconnectStop && f.current.onReconnectStop(P), console.warn("Max reconnect attempts of ".concat(P, " exceeded"));
|
10481
10494
|
}
|
@@ -10498,17 +10511,17 @@ function Oh() {
|
|
10498
10511
|
return h && window.clearTimeout(h);
|
10499
10512
|
};
|
10500
10513
|
}, u = function(c, f, p, d, y, h, w) {
|
10501
|
-
var g = f.setLastMessage, P = f.setReadyState,
|
10502
|
-
return p.current.fromSocketIO && (
|
10503
|
-
P(r.ReadyState.CLOSING), q(), I(), c.close(),
|
10514
|
+
var g = f.setLastMessage, P = f.setReadyState, L, q, I;
|
10515
|
+
return p.current.fromSocketIO && (L = (0, t.setUpSocketIOPing)(w)), a(c, p, g, h), o(c, p, P, y, h), q = l(c, p, P, d, y), I = s(c, p, P, d, y), function() {
|
10516
|
+
P(r.ReadyState.CLOSING), q(), I(), c.close(), L && clearInterval(L);
|
10504
10517
|
};
|
10505
10518
|
};
|
10506
10519
|
return At.attachListeners = u, At;
|
10507
10520
|
}
|
10508
|
-
var Ft = {},
|
10509
|
-
function
|
10510
|
-
if (
|
10511
|
-
|
10521
|
+
var Ft = {}, Ya;
|
10522
|
+
function Ph() {
|
10523
|
+
if (Ya) return Ft;
|
10524
|
+
Ya = 1;
|
10512
10525
|
var e = Ft.__assign || function() {
|
10513
10526
|
return e = Object.assign || function(f) {
|
10514
10527
|
for (var p, d = 1, y = arguments.length; d < y; d++) {
|
@@ -10564,11 +10577,11 @@ function Ih() {
|
|
10564
10577
|
};
|
10565
10578
|
return Ft.attachSharedListeners = c, Ft;
|
10566
10579
|
}
|
10567
|
-
var
|
10568
|
-
function
|
10569
|
-
if (
|
10570
|
-
|
10571
|
-
var e = pi(), t = nt(), n =
|
10580
|
+
var Ka;
|
10581
|
+
function Ah() {
|
10582
|
+
if (Ka) return Wt;
|
10583
|
+
Ka = 1, Object.defineProperty(Wt, "__esModule", { value: !0 }), Wt.createOrJoinSocket = void 0;
|
10584
|
+
var e = pi(), t = nt(), n = Ih(), r = Ph(), i = mi(), a = function(l, s, u, c, f) {
|
10572
10585
|
return function() {
|
10573
10586
|
if ((0, i.removeSubscriber)(l, s), !(0, i.hasSubscribers)(l)) {
|
10574
10587
|
try {
|
@@ -10608,7 +10621,7 @@ function Ph() {
|
|
10608
10621
|
return Wt.createOrJoinSocket = o, Wt;
|
10609
10622
|
}
|
10610
10623
|
var Lt = {}, Ja;
|
10611
|
-
function
|
10624
|
+
function Fh() {
|
10612
10625
|
return Ja || (Ja = 1, function(e) {
|
10613
10626
|
var t = Lt.__awaiter || function(s, u, c, f) {
|
10614
10627
|
function p(d) {
|
@@ -10620,15 +10633,15 @@ function Ah() {
|
|
10620
10633
|
function h(P) {
|
10621
10634
|
try {
|
10622
10635
|
g(f.next(P));
|
10623
|
-
} catch (
|
10624
|
-
y(
|
10636
|
+
} catch (L) {
|
10637
|
+
y(L);
|
10625
10638
|
}
|
10626
10639
|
}
|
10627
10640
|
function w(P) {
|
10628
10641
|
try {
|
10629
10642
|
g(f.throw(P));
|
10630
|
-
} catch (
|
10631
|
-
y(
|
10643
|
+
} catch (L) {
|
10644
|
+
y(L);
|
10632
10645
|
}
|
10633
10646
|
}
|
10634
10647
|
function g(P) {
|
@@ -10709,7 +10722,7 @@ function Ah() {
|
|
10709
10722
|
for (var c = [], f = 2; f < arguments.length; f++)
|
10710
10723
|
c[f - 2] = arguments[f];
|
10711
10724
|
return t(void 0, r([s, u], c, !0), void 0, function(p, d, y) {
|
10712
|
-
var h, w, g, P,
|
10725
|
+
var h, w, g, P, L, q, I, b;
|
10713
10726
|
return y === void 0 && (y = 0), n(this, function(E) {
|
10714
10727
|
switch (E.label) {
|
10715
10728
|
case 0:
|
@@ -10736,7 +10749,7 @@ function Ah() {
|
|
10736
10749
|
case 10:
|
10737
10750
|
h = p, E.label = 11;
|
10738
10751
|
case 11:
|
10739
|
-
return P = d.current.fromSocketIO ? (0, i.parseSocketIOUrl)(h) : h,
|
10752
|
+
return P = d.current.fromSocketIO ? (0, i.parseSocketIOUrl)(h) : h, L = d.current.queryParams ? (0, i.appendQueryParams)(P, d.current.queryParams) : P, [2, L];
|
10740
10753
|
}
|
10741
10754
|
});
|
10742
10755
|
});
|
@@ -10745,7 +10758,7 @@ function Ah() {
|
|
10745
10758
|
}(Lt)), Lt;
|
10746
10759
|
}
|
10747
10760
|
var wr = {}, Qa;
|
10748
|
-
function
|
10761
|
+
function Lh() {
|
10749
10762
|
return Qa || (Qa = 1, function(e) {
|
10750
10763
|
Object.defineProperty(e, "__esModule", { value: !0 }), e.websocketWrapper = void 0;
|
10751
10764
|
var t = function(n, r) {
|
@@ -10782,7 +10795,7 @@ function yi() {
|
|
10782
10795
|
});
|
10783
10796
|
}
|
10784
10797
|
return new (y || (y = Promise))(function(g, P) {
|
10785
|
-
function
|
10798
|
+
function L(b) {
|
10786
10799
|
try {
|
10787
10800
|
I(h.next(b));
|
10788
10801
|
} catch (E) {
|
@@ -10797,7 +10810,7 @@ function yi() {
|
|
10797
10810
|
}
|
10798
10811
|
}
|
10799
10812
|
function I(b) {
|
10800
|
-
b.done ? g(b.value) : w(b.value).then(
|
10813
|
+
b.done ? g(b.value) : w(b.value).then(L, q);
|
10801
10814
|
}
|
10802
10815
|
I((h = h.apply(p, d || [])).next());
|
10803
10816
|
});
|
@@ -10806,10 +10819,10 @@ function yi() {
|
|
10806
10819
|
if (g[0] & 1) throw g[1];
|
10807
10820
|
return g[1];
|
10808
10821
|
}, trys: [], ops: [] }, h, w, g, P = Object.create((typeof Iterator == "function" ? Iterator : Object).prototype);
|
10809
|
-
return P.next =
|
10822
|
+
return P.next = L(0), P.throw = L(1), P.return = L(2), typeof Symbol == "function" && (P[Symbol.iterator] = function() {
|
10810
10823
|
return this;
|
10811
10824
|
}), P;
|
10812
|
-
function
|
10825
|
+
function L(I) {
|
10813
10826
|
return function(b) {
|
10814
10827
|
return q([I, b]);
|
10815
10828
|
};
|
@@ -10864,9 +10877,9 @@ function yi() {
|
|
10864
10877
|
return p && p.__esModule ? p : { default: p };
|
10865
10878
|
};
|
10866
10879
|
Object.defineProperty(it, "__esModule", { value: !0 }), it.useWebSocket = void 0;
|
10867
|
-
var i = Ge, a = Hs, o = nt(), l =
|
10880
|
+
var i = Ge, a = Hs, o = nt(), l = Ah(), s = Fh(), u = r(Lh()), c = gi(), f = function(p, d, y) {
|
10868
10881
|
d === void 0 && (d = o.DEFAULT_OPTIONS), y === void 0 && (y = !0);
|
10869
|
-
var h = (0, i.useState)(null), w = h[0], g = h[1], P = (0, i.useState)({}),
|
10882
|
+
var h = (0, i.useState)(null), w = h[0], g = h[1], P = (0, i.useState)({}), L = P[0], q = P[1], I = (0, i.useMemo)(function() {
|
10870
10883
|
if (w)
|
10871
10884
|
try {
|
10872
10885
|
return JSON.parse(w.data);
|
@@ -10875,9 +10888,9 @@ function yi() {
|
|
10875
10888
|
}
|
10876
10889
|
return null;
|
10877
10890
|
}, [w]), b = (0, i.useRef)(null), E = (0, i.useRef)(null), z = (0, i.useRef)(function() {
|
10878
|
-
}), N = (0, i.useRef)(0),
|
10891
|
+
}), N = (0, i.useRef)(0), U = (0, i.useRef)(Date.now()), D = (0, i.useRef)([]), B = (0, i.useRef)(null), O = (0, i.useRef)(d);
|
10879
10892
|
O.current = d;
|
10880
|
-
var S = b.current &&
|
10893
|
+
var S = b.current && L[b.current] !== void 0 ? L[b.current] : p !== null && y === !0 ? o.ReadyState.CONNECTING : o.ReadyState.UNINSTANTIATED, T = d.queryParams ? JSON.stringify(d.queryParams) : null, A = (0, i.useCallback)(function(H, m) {
|
10881
10894
|
var W;
|
10882
10895
|
if (m === void 0 && (m = !0), o.isEventSourceSupported && E.current instanceof EventSource) {
|
10883
10896
|
console.warn("Unable to send a message from an eventSource");
|
@@ -10917,7 +10930,7 @@ function yi() {
|
|
10917
10930
|
return e(e({}, de), b.current && (xe = {}, xe[b.current] = fe, xe));
|
10918
10931
|
});
|
10919
10932
|
});
|
10920
|
-
}, W && (H = (0, l.createOrJoinSocket)(E, b.current, ie, O, Z, z, N,
|
10933
|
+
}, W && (H = (0, l.createOrJoinSocket)(E, b.current, ie, O, Z, z, N, U, A)), [
|
10921
10934
|
2
|
10922
10935
|
/*return*/
|
10923
10936
|
]);
|
@@ -10950,7 +10963,7 @@ function yi() {
|
|
10950
10963
|
return it.useWebSocket = f, it;
|
10951
10964
|
}
|
10952
10965
|
var Nt = {}, to;
|
10953
|
-
function
|
10966
|
+
function Nh() {
|
10954
10967
|
if (to) return Nt;
|
10955
10968
|
to = 1;
|
10956
10969
|
var e = Nt.__assign || function() {
|
@@ -10996,7 +11009,7 @@ function Lh() {
|
|
10996
11009
|
return Nt.useSocketIO = o, Nt;
|
10997
11010
|
}
|
10998
11011
|
var yt = {}, no;
|
10999
|
-
function
|
11012
|
+
function jh() {
|
11000
11013
|
if (no) return yt;
|
11001
11014
|
no = 1;
|
11002
11015
|
var e = yt.__assign || function() {
|
@@ -11027,8 +11040,8 @@ function Nh() {
|
|
11027
11040
|
var y = (0, r.useWebSocket)(o, p, s), h = y.lastMessage, w = y.readyState, g = y.getWebSocket;
|
11028
11041
|
return (0, n.useEffect)(function() {
|
11029
11042
|
h != null && h.type && Object.entries(d.current).forEach(function(P) {
|
11030
|
-
var
|
11031
|
-
|
11043
|
+
var L = P[0], q = P[1];
|
11044
|
+
L === h.type && q(h);
|
11032
11045
|
});
|
11033
11046
|
}, [h]), {
|
11034
11047
|
lastEvent: h,
|
@@ -11039,14 +11052,14 @@ function Nh() {
|
|
11039
11052
|
return yt.useEventSource = a, yt;
|
11040
11053
|
}
|
11041
11054
|
var ro;
|
11042
|
-
function
|
11055
|
+
function Dh() {
|
11043
11056
|
return ro || (ro = 1, function(e) {
|
11044
11057
|
Object.defineProperty(e, "__esModule", { value: !0 }), e.resetGlobalState = e.useEventSource = e.ReadyState = e.useSocketIO = e.default = void 0;
|
11045
11058
|
var t = yi();
|
11046
11059
|
Object.defineProperty(e, "default", { enumerable: !0, get: function() {
|
11047
11060
|
return t.useWebSocket;
|
11048
11061
|
} });
|
11049
|
-
var n =
|
11062
|
+
var n = Nh();
|
11050
11063
|
Object.defineProperty(e, "useSocketIO", { enumerable: !0, get: function() {
|
11051
11064
|
return n.useSocketIO;
|
11052
11065
|
} });
|
@@ -11054,7 +11067,7 @@ function jh() {
|
|
11054
11067
|
Object.defineProperty(e, "ReadyState", { enumerable: !0, get: function() {
|
11055
11068
|
return r.ReadyState;
|
11056
11069
|
} });
|
11057
|
-
var i =
|
11070
|
+
var i = jh();
|
11058
11071
|
Object.defineProperty(e, "useEventSource", { enumerable: !0, get: function() {
|
11059
11072
|
return i.useEventSource;
|
11060
11073
|
} });
|
@@ -11064,9 +11077,9 @@ function jh() {
|
|
11064
11077
|
} });
|
11065
11078
|
}(yr)), yr;
|
11066
11079
|
}
|
11067
|
-
var
|
11068
|
-
const
|
11069
|
-
async function
|
11080
|
+
var Mh = Dh();
|
11081
|
+
const Rh = /* @__PURE__ */ tt(Mh);
|
11082
|
+
async function Bh(e) {
|
11070
11083
|
const t = await new Blob([e], { type: "application/json" });
|
11071
11084
|
return new Promise((n, r) => {
|
11072
11085
|
const i = new FileReader();
|
@@ -11080,18 +11093,18 @@ async function Rh(e) {
|
|
11080
11093
|
}, i.readAsText(t);
|
11081
11094
|
});
|
11082
11095
|
}
|
11083
|
-
const
|
11096
|
+
const Hh = "This conversation with a live agent has ended. Please note that a transcript of this chat will be emailed to you. Feel free to continue chatting with Xpert.", ot = {
|
11084
11097
|
CONNECTING: "CONNECTING",
|
11085
11098
|
CONVERSATION: "CONVERSATION",
|
11086
11099
|
FORM: "FORM"
|
11087
11100
|
}, kt = An({}), Sl = ({ children: e }) => {
|
11088
|
-
const { conversationScreen: t } = Q(Se), { pushXpertMessage: n } = Q(wt), { setHasError: r, setMode: i } = Q(Ie), [a, o] = ee(""), [l, s] = ee(!1), [, u] = ee(""), [c, f] = ee([]), [p, d] = ee(null), [y, h] = ee(ot.FORM), [w, g] = ee(null), P = (j) => f((R) => [...R, j]),
|
11089
|
-
const R = await
|
11101
|
+
const { conversationScreen: t } = Q(Se), { pushXpertMessage: n } = Q(wt), { setHasError: r, setMode: i } = Q(Ie), [a, o] = ee(""), [l, s] = ee(!1), [, u] = ee(""), [c, f] = ee([]), [p, d] = ee(null), [y, h] = ee(ot.FORM), [w, g] = ee(null), P = (j) => f((R) => [...R, j]), L = async (j) => {
|
11102
|
+
const R = await Bh(j.data), { conversation_id: H, event_type: m, body: W } = R;
|
11090
11103
|
switch (m) {
|
11091
11104
|
case "AGENT_TYPING":
|
11092
11105
|
return N();
|
11093
11106
|
case "CONVERSATION_ACCEPTED":
|
11094
|
-
return
|
11107
|
+
return U(W);
|
11095
11108
|
case "CONVERSATION_CREATED":
|
11096
11109
|
return u(H);
|
11097
11110
|
case "CONVERSATION_ERROR":
|
@@ -11111,8 +11124,8 @@ const Bh = "This conversation with a live agent has ended. Please note that a tr
|
|
11111
11124
|
default:
|
11112
11125
|
return;
|
11113
11126
|
}
|
11114
|
-
}, { sendJsonMessage: q } =
|
11115
|
-
onMessage:
|
11127
|
+
}, { sendJsonMessage: q } = Rh(p, {
|
11128
|
+
onMessage: L
|
11116
11129
|
}), I = () => {
|
11117
11130
|
h(ot.FORM);
|
11118
11131
|
}, b = () => {
|
@@ -11122,7 +11135,7 @@ const Bh = "This conversation with a live agent has ended. Please note that a tr
|
|
11122
11135
|
});
|
11123
11136
|
}, E = () => {
|
11124
11137
|
n({
|
11125
|
-
content:
|
11138
|
+
content: Hh,
|
11126
11139
|
role: "info"
|
11127
11140
|
}), z();
|
11128
11141
|
}, z = () => {
|
@@ -11133,7 +11146,7 @@ const Bh = "This conversation with a live agent has ended. Please note that a tr
|
|
11133
11146
|
s(!1);
|
11134
11147
|
}, 5e3);
|
11135
11148
|
g(j);
|
11136
|
-
},
|
11149
|
+
}, U = (j) => {
|
11137
11150
|
const { displayName: R } = j;
|
11138
11151
|
f([]), o(R ?? "An agent"), h(ot.CONVERSATION);
|
11139
11152
|
}, D = (j) => {
|
@@ -11208,7 +11221,7 @@ const Bh = "This conversation with a live agent has ended. Please note that a tr
|
|
11208
11221
|
Sl.propTypes = {
|
11209
11222
|
children: k.element.isRequired
|
11210
11223
|
};
|
11211
|
-
const
|
11224
|
+
const zh = "data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20fill='%23ffffff'%20height='48'%20viewBox='0%20-960%20960%20960'%20width='48'%3e%3cpath%20d='M120-120v-300h60v198l558-558H540v-60h300v300h-60v-198L222-180h198v60H120Z'/%3e%3c/svg%3e", qh = "data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20fill='%23ffffff'%20height='48'%20viewBox='0%20-960%20960%20960'%20width='48'%3e%3cpath%20d='M370-287h360v-90H370v90ZM180-120q-24%200-42-18t-18-42v-600q0-24%2018-42t42-18h600q24%200%2042%2018t18%2042v600q0%2024-18%2042t-42%2018H180Zm0-60h600v-600H180v600Zm0-600v600-600Z'/%3e%3c/svg%3e";
|
11212
11225
|
function _l({ handleResizeButtonClick: e, setIsMounted: t }) {
|
11213
11226
|
const { isMobile: n, isNormalSize: r } = Q(Ie);
|
11214
11227
|
return n ? null : r ? /* @__PURE__ */ C.jsx(
|
@@ -11228,7 +11241,7 @@ function _l({ handleResizeButtonClick: e, setIsMounted: t }) {
|
|
11228
11241
|
alt: "Expand xpert dialog width",
|
11229
11242
|
"aria-hidden": !0,
|
11230
11243
|
height: "24px",
|
11231
|
-
src:
|
11244
|
+
src: zh,
|
11232
11245
|
width: "24px"
|
11233
11246
|
}
|
11234
11247
|
)
|
@@ -11249,7 +11262,7 @@ function _l({ handleResizeButtonClick: e, setIsMounted: t }) {
|
|
11249
11262
|
alt: "Shrink xpert dialog width",
|
11250
11263
|
"aria-hidden": !0,
|
11251
11264
|
height: "24px",
|
11252
|
-
src:
|
11265
|
+
src: qh,
|
11253
11266
|
width: "24px"
|
11254
11267
|
}
|
11255
11268
|
)
|
@@ -11373,7 +11386,7 @@ function Tl({
|
|
11373
11386
|
setIsMounted: n,
|
11374
11387
|
onClose: r
|
11375
11388
|
}) {
|
11376
|
-
var u, c, f, p, d, y, h, w, g, P,
|
11389
|
+
var u, c, f, p, d, y, h, w, g, P, L, q, I, b, E;
|
11377
11390
|
const { primaryColor: i, conversationScreen: a } = Q(Se), { isMobile: o, mode: l } = Q(Ie), { step: s } = Q(kt);
|
11378
11391
|
return s === ot.CONNECTING && l === ft.LIVECHAT ? null : /* @__PURE__ */ C.jsxs(
|
11379
11392
|
"div",
|
@@ -11411,7 +11424,7 @@ function Tl({
|
|
11411
11424
|
bi,
|
11412
11425
|
{
|
11413
11426
|
backgroundColor: (g = a == null ? void 0 : a.header.logo.style) == null ? void 0 : g.backgroundColor,
|
11414
|
-
textColor: ((q = (
|
11427
|
+
textColor: ((q = (L = (P = a == null ? void 0 : a.header) == null ? void 0 : P.logo) == null ? void 0 : L.style) == null ? void 0 : q.color) || "#FFFFFF"
|
11415
11428
|
}
|
11416
11429
|
),
|
11417
11430
|
/* @__PURE__ */ C.jsx(
|
@@ -11443,7 +11456,7 @@ Tl.propTypes = {
|
|
11443
11456
|
setIsMounted: k.func.isRequired,
|
11444
11457
|
onClose: k.func.isRequired
|
11445
11458
|
};
|
11446
|
-
function
|
11459
|
+
function Uh() {
|
11447
11460
|
const {
|
11448
11461
|
deleteConversationModal: e,
|
11449
11462
|
deleteConversationHistory: t,
|
@@ -11490,7 +11503,7 @@ var Ol = ["input:not([inert])", "select:not([inert])", "textarea:not([inert])",
|
|
11490
11503
|
n === void 0 && (n = !0);
|
11491
11504
|
var i = t == null || (r = t.getAttribute) === null || r === void 0 ? void 0 : r.call(t, "inert"), a = i === "" || i === "true", o = a || n && t && e(t.parentNode);
|
11492
11505
|
return o;
|
11493
|
-
},
|
11506
|
+
}, $h = function(t) {
|
11494
11507
|
var n, r = t == null || (n = t.getAttribute) === null || n === void 0 ? void 0 : n.call(t, "contenteditable");
|
11495
11508
|
return r === "" || r === "true";
|
11496
11509
|
}, Pl = function(t, n, r) {
|
@@ -11529,26 +11542,26 @@ var Ol = ["input:not([inert])", "select:not([inert])", "textarea:not([inert])",
|
|
11529
11542
|
}, ut = function(t) {
|
11530
11543
|
if (!t)
|
11531
11544
|
throw new Error("No node provided");
|
11532
|
-
return t.tabIndex < 0 && (/^(AUDIO|VIDEO|DETAILS)$/.test(t.tagName) ||
|
11533
|
-
},
|
11545
|
+
return t.tabIndex < 0 && (/^(AUDIO|VIDEO|DETAILS)$/.test(t.tagName) || $h(t)) && !Fl(t) ? 0 : t.tabIndex;
|
11546
|
+
}, Vh = function(t, n) {
|
11534
11547
|
var r = ut(t);
|
11535
11548
|
return r < 0 && n && !Fl(t) ? 0 : r;
|
11536
|
-
},
|
11549
|
+
}, Wh = function(t, n) {
|
11537
11550
|
return t.tabIndex === n.tabIndex ? t.documentOrder - n.documentOrder : t.tabIndex - n.tabIndex;
|
11538
11551
|
}, Ll = function(t) {
|
11539
11552
|
return t.tagName === "INPUT";
|
11540
|
-
}, Wh = function(t) {
|
11541
|
-
return Ll(t) && t.type === "hidden";
|
11542
11553
|
}, Gh = function(t) {
|
11554
|
+
return Ll(t) && t.type === "hidden";
|
11555
|
+
}, Xh = function(t) {
|
11543
11556
|
var n = t.tagName === "DETAILS" && Array.prototype.slice.apply(t.children).some(function(r) {
|
11544
11557
|
return r.tagName === "SUMMARY";
|
11545
11558
|
});
|
11546
11559
|
return n;
|
11547
|
-
},
|
11560
|
+
}, Zh = function(t, n) {
|
11548
11561
|
for (var r = 0; r < t.length; r++)
|
11549
11562
|
if (t[r].checked && t[r].form === n)
|
11550
11563
|
return t[r];
|
11551
|
-
},
|
11564
|
+
}, Yh = function(t) {
|
11552
11565
|
if (!t.name)
|
11553
11566
|
return !0;
|
11554
11567
|
var n = t.form || On(t), r = function(l) {
|
@@ -11562,13 +11575,13 @@ var Ol = ["input:not([inert])", "select:not([inert])", "textarea:not([inert])",
|
|
11562
11575
|
} catch (o) {
|
11563
11576
|
return console.error("Looks like you have a radio button with a name attribute containing invalid CSS selector characters and need the CSS.escape polyfill: %s", o.message), !1;
|
11564
11577
|
}
|
11565
|
-
var a =
|
11578
|
+
var a = Zh(i, t.form);
|
11566
11579
|
return !a || a === t;
|
11567
11580
|
}, Kh = function(t) {
|
11568
11581
|
return Ll(t) && t.type === "radio";
|
11569
|
-
}, Yh = function(t) {
|
11570
|
-
return Kh(t) && !Zh(t);
|
11571
11582
|
}, Jh = function(t) {
|
11583
|
+
return Kh(t) && !Yh(t);
|
11584
|
+
}, Qh = function(t) {
|
11572
11585
|
var n, r = t && On(t), i = (n = r) === null || n === void 0 ? void 0 : n.host, a = !1;
|
11573
11586
|
if (r && r !== t) {
|
11574
11587
|
var o, l, s;
|
@@ -11581,7 +11594,7 @@ var Ol = ["input:not([inert])", "select:not([inert])", "textarea:not([inert])",
|
|
11581
11594
|
}, io = function(t) {
|
11582
11595
|
var n = t.getBoundingClientRect(), r = n.width, i = n.height;
|
11583
11596
|
return r === 0 && i === 0;
|
11584
|
-
},
|
11597
|
+
}, e0 = function(t, n) {
|
11585
11598
|
var r = n.displayCheck, i = n.getShadowRoot;
|
11586
11599
|
if (getComputedStyle(t).visibility === "hidden")
|
11587
11600
|
return !0;
|
@@ -11598,14 +11611,14 @@ var Ol = ["input:not([inert])", "select:not([inert])", "textarea:not([inert])",
|
|
11598
11611
|
}
|
11599
11612
|
t = l;
|
11600
11613
|
}
|
11601
|
-
if (
|
11614
|
+
if (Qh(t))
|
11602
11615
|
return !t.getClientRects().length;
|
11603
11616
|
if (r !== "legacy-full")
|
11604
11617
|
return !0;
|
11605
11618
|
} else if (r === "non-zero-area")
|
11606
11619
|
return io(t);
|
11607
11620
|
return !1;
|
11608
|
-
},
|
11621
|
+
}, t0 = function(t) {
|
11609
11622
|
if (/^(INPUT|BUTTON|SELECT|TEXTAREA)$/.test(t.tagName))
|
11610
11623
|
for (var n = t.parentElement; n; ) {
|
11611
11624
|
if (n.tagName === "FIELDSET" && n.disabled) {
|
@@ -11623,17 +11636,17 @@ var Ol = ["input:not([inert])", "select:not([inert])", "textarea:not([inert])",
|
|
11623
11636
|
return !(n.disabled || // we must do an inert look up to filter out any elements inside an inert ancestor
|
11624
11637
|
// because we're limited in the type of selectors we can use in JSDom (see related
|
11625
11638
|
// note related to `candidateSelectors`)
|
11626
|
-
In(n) ||
|
11627
|
-
|
11639
|
+
In(n) || Gh(n) || e0(n, t) || // For a details element with a summary, the summary element gets the focus
|
11640
|
+
Xh(n) || t0(n));
|
11628
11641
|
}, Ur = function(t, n) {
|
11629
|
-
return !(
|
11630
|
-
},
|
11642
|
+
return !(Jh(n) || ut(n) < 0 || !Pn(t, n));
|
11643
|
+
}, n0 = function(t) {
|
11631
11644
|
var n = parseInt(t.getAttribute("tabindex"), 10);
|
11632
11645
|
return !!(isNaN(n) || n >= 0);
|
11633
|
-
},
|
11646
|
+
}, r0 = function e(t) {
|
11634
11647
|
var n = [], r = [];
|
11635
11648
|
return t.forEach(function(i, a) {
|
11636
|
-
var o = !!i.scopeParent, l = o ? i.scopeParent : i, s =
|
11649
|
+
var o = !!i.scopeParent, l = o ? i.scopeParent : i, s = Vh(l, o), u = o ? e(i.candidates) : l;
|
11637
11650
|
s === 0 ? o ? n.push.apply(n, u) : n.push(l) : r.push({
|
11638
11651
|
documentOrder: a,
|
11639
11652
|
tabIndex: s,
|
@@ -11641,7 +11654,7 @@ var Ol = ["input:not([inert])", "select:not([inert])", "textarea:not([inert])",
|
|
11641
11654
|
isScope: o,
|
11642
11655
|
content: u
|
11643
11656
|
});
|
11644
|
-
}), r.sort(
|
11657
|
+
}), r.sort(Wh).reduce(function(i, a) {
|
11645
11658
|
return a.isScope ? i.push.apply(i, a.content) : i.push(a.content), i;
|
11646
11659
|
}, []).concat(n);
|
11647
11660
|
}, Nl = function(t, n) {
|
@@ -11651,8 +11664,8 @@ var Ol = ["input:not([inert])", "select:not([inert])", "textarea:not([inert])",
|
|
11651
11664
|
filter: Ur.bind(null, n),
|
11652
11665
|
flatten: !1,
|
11653
11666
|
getShadowRoot: n.getShadowRoot,
|
11654
|
-
shadowRootFilter:
|
11655
|
-
}) : r = Pl(t, n.includeContainer, Ur.bind(null, n)),
|
11667
|
+
shadowRootFilter: n0
|
11668
|
+
}) : r = Pl(t, n.includeContainer, Ur.bind(null, n)), r0(r);
|
11656
11669
|
}, jl = function(t, n) {
|
11657
11670
|
n = n || {};
|
11658
11671
|
var r;
|
@@ -11665,12 +11678,12 @@ var Ol = ["input:not([inert])", "select:not([inert])", "textarea:not([inert])",
|
|
11665
11678
|
if (n = n || {}, !t)
|
11666
11679
|
throw new Error("No node provided");
|
11667
11680
|
return xt.call(t, Tn) === !1 ? !1 : Ur(n, t);
|
11668
|
-
},
|
11681
|
+
}, i0 = /* @__PURE__ */ Ol.concat("iframe").join(","), kn = function(t, n) {
|
11669
11682
|
if (n = n || {}, !t)
|
11670
11683
|
throw new Error("No node provided");
|
11671
|
-
return xt.call(t,
|
11684
|
+
return xt.call(t, i0) === !1 ? !1 : Pn(n, t);
|
11672
11685
|
};
|
11673
|
-
const
|
11686
|
+
const a0 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
11674
11687
|
__proto__: null,
|
11675
11688
|
focusable: jl,
|
11676
11689
|
getTabIndex: ut,
|
@@ -11687,21 +11700,21 @@ function $r(e, t) {
|
|
11687
11700
|
for (var n = 0, r = Array(t); n < t; n++) r[n] = e[n];
|
11688
11701
|
return r;
|
11689
11702
|
}
|
11690
|
-
function
|
11703
|
+
function o0(e) {
|
11691
11704
|
if (Array.isArray(e)) return $r(e);
|
11692
11705
|
}
|
11693
|
-
function
|
11694
|
-
return (t =
|
11706
|
+
function l0(e, t, n) {
|
11707
|
+
return (t = d0(t)) in e ? Object.defineProperty(e, t, {
|
11695
11708
|
value: n,
|
11696
11709
|
enumerable: !0,
|
11697
11710
|
configurable: !0,
|
11698
11711
|
writable: !0
|
11699
11712
|
}) : e[t] = n, e;
|
11700
11713
|
}
|
11701
|
-
function
|
11714
|
+
function s0(e) {
|
11702
11715
|
if (typeof Symbol < "u" && e[Symbol.iterator] != null || e["@@iterator"] != null) return Array.from(e);
|
11703
11716
|
}
|
11704
|
-
function
|
11717
|
+
function u0() {
|
11705
11718
|
throw new TypeError(`Invalid attempt to spread non-iterable instance.
|
11706
11719
|
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`);
|
11707
11720
|
}
|
@@ -11719,17 +11732,17 @@ function oo(e) {
|
|
11719
11732
|
for (var t = 1; t < arguments.length; t++) {
|
11720
11733
|
var n = arguments[t] != null ? arguments[t] : {};
|
11721
11734
|
t % 2 ? ao(Object(n), !0).forEach(function(r) {
|
11722
|
-
|
11735
|
+
l0(e, r, n[r]);
|
11723
11736
|
}) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) : ao(Object(n)).forEach(function(r) {
|
11724
11737
|
Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(n, r));
|
11725
11738
|
});
|
11726
11739
|
}
|
11727
11740
|
return e;
|
11728
11741
|
}
|
11729
|
-
function
|
11730
|
-
return
|
11742
|
+
function c0(e) {
|
11743
|
+
return o0(e) || s0(e) || p0(e) || u0();
|
11731
11744
|
}
|
11732
|
-
function
|
11745
|
+
function f0(e, t) {
|
11733
11746
|
if (typeof e != "object" || !e) return e;
|
11734
11747
|
var n = e[Symbol.toPrimitive];
|
11735
11748
|
if (n !== void 0) {
|
@@ -11739,11 +11752,11 @@ function c0(e, t) {
|
|
11739
11752
|
}
|
11740
11753
|
return (t === "string" ? String : Number)(e);
|
11741
11754
|
}
|
11742
|
-
function
|
11743
|
-
var t =
|
11755
|
+
function d0(e) {
|
11756
|
+
var t = f0(e, "string");
|
11744
11757
|
return typeof t == "symbol" ? t : t + "";
|
11745
11758
|
}
|
11746
|
-
function
|
11759
|
+
function p0(e, t) {
|
11747
11760
|
if (e) {
|
11748
11761
|
if (typeof e == "string") return $r(e, t);
|
11749
11762
|
var n = {}.toString.call(e).slice(8, -1);
|
@@ -11763,15 +11776,15 @@ var lo = {
|
|
11763
11776
|
var r = t.indexOf(n);
|
11764
11777
|
r !== -1 && t.splice(r, 1), t.length > 0 && t[t.length - 1].unpause();
|
11765
11778
|
}
|
11766
|
-
}, p0 = function(t) {
|
11767
|
-
return t.tagName && t.tagName.toLowerCase() === "input" && typeof t.select == "function";
|
11768
11779
|
}, h0 = function(t) {
|
11780
|
+
return t.tagName && t.tagName.toLowerCase() === "input" && typeof t.select == "function";
|
11781
|
+
}, m0 = function(t) {
|
11769
11782
|
return (t == null ? void 0 : t.key) === "Escape" || (t == null ? void 0 : t.key) === "Esc" || (t == null ? void 0 : t.keyCode) === 27;
|
11770
11783
|
}, Qt = function(t) {
|
11771
11784
|
return (t == null ? void 0 : t.key) === "Tab" || (t == null ? void 0 : t.keyCode) === 9;
|
11772
|
-
}, m0 = function(t) {
|
11773
|
-
return Qt(t) && !t.shiftKey;
|
11774
11785
|
}, g0 = function(t) {
|
11786
|
+
return Qt(t) && !t.shiftKey;
|
11787
|
+
}, y0 = function(t) {
|
11775
11788
|
return Qt(t) && t.shiftKey;
|
11776
11789
|
}, so = function(t) {
|
11777
11790
|
return setTimeout(t, 0);
|
@@ -11781,13 +11794,13 @@ var lo = {
|
|
11781
11794
|
return typeof t == "function" ? t.apply(void 0, r) : t;
|
11782
11795
|
}, bn = function(t) {
|
11783
11796
|
return t.target.shadowRoot && typeof t.composedPath == "function" ? t.composedPath()[0] : t.target;
|
11784
|
-
},
|
11785
|
-
var r = (n == null ? void 0 : n.document) || document, i = (n == null ? void 0 : n.trapStack) ||
|
11797
|
+
}, b0 = [], v0 = function(t, n) {
|
11798
|
+
var r = (n == null ? void 0 : n.document) || document, i = (n == null ? void 0 : n.trapStack) || b0, a = oo({
|
11786
11799
|
returnFocusOnDeactivate: !0,
|
11787
11800
|
escapeDeactivates: !0,
|
11788
11801
|
delayInitialFocus: !0,
|
11789
|
-
isKeyForward:
|
11790
|
-
isKeyBackward:
|
11802
|
+
isKeyForward: g0,
|
11803
|
+
isKeyBackward: y0
|
11791
11804
|
}, n), o = {
|
11792
11805
|
// containers given to createFocusTrap()
|
11793
11806
|
// @type {Array<HTMLElement>}
|
@@ -11840,7 +11853,7 @@ var lo = {
|
|
11840
11853
|
});
|
11841
11854
|
}, c = function(O) {
|
11842
11855
|
var S = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}, T = S.hasFallback, A = T === void 0 ? !1 : T, j = S.params, R = j === void 0 ? [] : j, H = a[O];
|
11843
|
-
if (typeof H == "function" && (H = H.apply(void 0,
|
11856
|
+
if (typeof H == "function" && (H = H.apply(void 0, c0(R))), H === !0 && (H = void 0), !H) {
|
11844
11857
|
if (H === void 0 || H === !1)
|
11845
11858
|
return H;
|
11846
11859
|
throw new Error("`".concat(O, "` was specified but was not a node, or did not return a node"));
|
@@ -11940,7 +11953,7 @@ var lo = {
|
|
11940
11953
|
}
|
11941
11954
|
O.focus({
|
11942
11955
|
preventScroll: !!a.preventScroll
|
11943
|
-
}), o.mostRecentlyFocusedNode = O,
|
11956
|
+
}), o.mostRecentlyFocusedNode = O, h0(O) && O.select();
|
11944
11957
|
}
|
11945
11958
|
}, h = function(O) {
|
11946
11959
|
var S = c("setReturnFocus", {
|
@@ -12026,7 +12039,7 @@ var lo = {
|
|
12026
12039
|
})), y(A || o.mostRecentlyFocusedNode || f());
|
12027
12040
|
}
|
12028
12041
|
o.recentNavEvent = void 0;
|
12029
|
-
},
|
12042
|
+
}, L = function(O) {
|
12030
12043
|
var S = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : !1;
|
12031
12044
|
o.recentNavEvent = O;
|
12032
12045
|
var T = w({
|
@@ -12035,9 +12048,9 @@ var lo = {
|
|
12035
12048
|
});
|
12036
12049
|
T && (Qt(O) && O.preventDefault(), y(T));
|
12037
12050
|
}, q = function(O) {
|
12038
|
-
(a.isKeyForward(O) || a.isKeyBackward(O)) &&
|
12051
|
+
(a.isKeyForward(O) || a.isKeyBackward(O)) && L(O, a.isKeyBackward(O));
|
12039
12052
|
}, I = function(O) {
|
12040
|
-
|
12053
|
+
m0(O) && Xt(a.escapeDeactivates, O) !== !1 && (O.preventDefault(), l.deactivate());
|
12041
12054
|
}, b = function(O) {
|
12042
12055
|
var S = bn(O);
|
12043
12056
|
u(S, O) >= 0 || Xt(a.clickOutsideDeactivates, O) || Xt(a.allowOutsideClick, O) || (O.preventDefault(), O.stopImmediatePropagation());
|
@@ -12069,9 +12082,9 @@ var lo = {
|
|
12069
12082
|
});
|
12070
12083
|
});
|
12071
12084
|
S && y(f());
|
12072
|
-
},
|
12073
|
-
|
12074
|
-
|
12085
|
+
}, U = typeof window < "u" && "MutationObserver" in window ? new MutationObserver(N) : void 0, D = function() {
|
12086
|
+
U && (U.disconnect(), o.active && !o.paused && o.containers.map(function(O) {
|
12087
|
+
U.observe(O, {
|
12075
12088
|
subtree: !0,
|
12076
12089
|
childList: !0
|
12077
12090
|
});
|
@@ -12132,12 +12145,12 @@ var lo = {
|
|
12132
12145
|
}
|
12133
12146
|
}, l.updateContainerElements(t), l;
|
12134
12147
|
};
|
12135
|
-
const
|
12148
|
+
const x0 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
12136
12149
|
__proto__: null,
|
12137
|
-
createFocusTrap:
|
12138
|
-
}, Symbol.toStringTag, { value: "Module" })),
|
12150
|
+
createFocusTrap: v0
|
12151
|
+
}, Symbol.toStringTag, { value: "Module" })), w0 = /* @__PURE__ */ mo(x0), C0 = /* @__PURE__ */ mo(a0);
|
12139
12152
|
var Cr, uo;
|
12140
|
-
function
|
12153
|
+
function k0() {
|
12141
12154
|
if (uo) return Cr;
|
12142
12155
|
uo = 1;
|
12143
12156
|
function e(b) {
|
@@ -12213,7 +12226,7 @@ function C0() {
|
|
12213
12226
|
}
|
12214
12227
|
return String(b);
|
12215
12228
|
}
|
12216
|
-
var y = Ge, h = /* @__PURE__ */ go(), w =
|
12229
|
+
var y = Ge, h = /* @__PURE__ */ go(), w = w0, g = w.createFocusTrap, P = C0, L = P.isFocusable, q = /* @__PURE__ */ function(b) {
|
12217
12230
|
function E(z) {
|
12218
12231
|
var N;
|
12219
12232
|
t(this, E), N = i(this, E, [z]), f(N, "getNodeForOption", function(B) {
|
@@ -12265,14 +12278,14 @@ function C0() {
|
|
12265
12278
|
// the user's setting, defaulted to false since focus-trap defaults this to false
|
12266
12279
|
clickOutsideDeactivates: !1
|
12267
12280
|
};
|
12268
|
-
var
|
12269
|
-
for (var D in
|
12270
|
-
if (Object.prototype.hasOwnProperty.call(
|
12281
|
+
var U = z.focusTrapOptions;
|
12282
|
+
for (var D in U)
|
12283
|
+
if (Object.prototype.hasOwnProperty.call(U, D)) {
|
12271
12284
|
if (D === "returnFocusOnDeactivate" || D === "onDeactivate" || D === "onPostDeactivate" || D === "checkCanReturnFocus" || D === "clickOutsideDeactivates") {
|
12272
|
-
N.originalOptions[D] =
|
12285
|
+
N.originalOptions[D] = U[D];
|
12273
12286
|
continue;
|
12274
12287
|
}
|
12275
|
-
N.internalOptions[D] =
|
12288
|
+
N.internalOptions[D] = U[D];
|
12276
12289
|
}
|
12277
12290
|
return N.outsideClick = null, N.focusTrapElements = z.containerElements || [], N.updatePreviousElement(), N;
|
12278
12291
|
}
|
@@ -12317,11 +12330,11 @@ function C0() {
|
|
12317
12330
|
}, {
|
12318
12331
|
key: "handleClickOutsideDeactivates",
|
12319
12332
|
value: function(N) {
|
12320
|
-
var
|
12321
|
-
return
|
12333
|
+
var U = typeof this.originalOptions.clickOutsideDeactivates == "function" ? this.originalOptions.clickOutsideDeactivates.call(null, N) : this.originalOptions.clickOutsideDeactivates;
|
12334
|
+
return U && (this.outsideClick = {
|
12322
12335
|
target: N.target,
|
12323
|
-
allowDeactivation:
|
12324
|
-
}),
|
12336
|
+
allowDeactivation: U
|
12337
|
+
}), U;
|
12325
12338
|
}
|
12326
12339
|
}, {
|
12327
12340
|
key: "handleDeactivate",
|
@@ -12331,7 +12344,7 @@ function C0() {
|
|
12331
12344
|
}, {
|
12332
12345
|
key: "handlePostDeactivate",
|
12333
12346
|
value: function() {
|
12334
|
-
var N = this,
|
12347
|
+
var N = this, U = function() {
|
12335
12348
|
var B = N.getReturnFocusNode(), O = !!// did the consumer allow it?
|
12336
12349
|
(N.originalOptions.returnFocusOnDeactivate && // can we actually focus the node?
|
12337
12350
|
B !== null && B !== void 0 && B.focus && // was there an outside click that allowed deactivation?
|
@@ -12339,12 +12352,12 @@ function C0() {
|
|
12339
12352
|
N.outsideClick.allowDeactivation && // is the outside node NOT focusable (implying that it did NOT receive focus
|
12340
12353
|
// as a result of the click-through) -- in which case do NOT restore focus
|
12341
12354
|
// to `returnFocusNode` because focus should remain on the outside node
|
12342
|
-
!
|
12355
|
+
!L(N.outsideClick.target, N.internalOptions.tabbableOptions))), S = N.internalOptions.preventScroll, T = S === void 0 ? !1 : S;
|
12343
12356
|
O && B.focus({
|
12344
12357
|
preventScroll: T
|
12345
12358
|
}), N.originalOptions.onPostDeactivate && N.originalOptions.onPostDeactivate.call(null), N.outsideClick = null;
|
12346
12359
|
};
|
12347
|
-
this.originalOptions.checkCanReturnFocus ? this.originalOptions.checkCanReturnFocus.call(null, this.getReturnFocusNode()).then(
|
12360
|
+
this.originalOptions.checkCanReturnFocus ? this.originalOptions.checkCanReturnFocus.call(null, this.getReturnFocusNode()).then(U, U) : U();
|
12348
12361
|
}
|
12349
12362
|
}, {
|
12350
12363
|
key: "setupFocusTrap",
|
@@ -12366,8 +12379,8 @@ function C0() {
|
|
12366
12379
|
value: function(N) {
|
12367
12380
|
if (this.focusTrap) {
|
12368
12381
|
N.containerElements !== this.props.containerElements && this.focusTrap.updateContainerElements(this.props.containerElements);
|
12369
|
-
var
|
12370
|
-
if (
|
12382
|
+
var U = !N.active && this.props.active, D = N.active && !this.props.active, B = !N.paused && this.props.paused, O = N.paused && !this.props.paused;
|
12383
|
+
if (U && (this.updatePreviousElement(), this.focusTrap.activate()), D) {
|
12371
12384
|
this.deactivateTrap();
|
12372
12385
|
return;
|
12373
12386
|
}
|
@@ -12383,14 +12396,14 @@ function C0() {
|
|
12383
12396
|
}, {
|
12384
12397
|
key: "render",
|
12385
12398
|
value: function() {
|
12386
|
-
var N = this,
|
12387
|
-
if (
|
12388
|
-
if (
|
12399
|
+
var N = this, U = this.props.children ? y.Children.only(this.props.children) : void 0;
|
12400
|
+
if (U) {
|
12401
|
+
if (U.type && U.type === y.Fragment)
|
12389
12402
|
throw new Error("A focus-trap cannot use a Fragment as its child container. Try replacing it with a <div> element.");
|
12390
12403
|
var D = function(S) {
|
12391
12404
|
var T = N.props.containerElements;
|
12392
|
-
|
12393
|
-
}, B = y.cloneElement(
|
12405
|
+
U && (typeof U.ref == "function" ? U.ref(S) : U.ref && (U.ref.current = S)), N.focusTrapElements = T || [S];
|
12406
|
+
}, B = y.cloneElement(U, {
|
12394
12407
|
ref: D
|
12395
12408
|
});
|
12396
12409
|
return B;
|
@@ -12453,12 +12466,12 @@ function C0() {
|
|
12453
12466
|
_createFocusTrap: g
|
12454
12467
|
}, Cr = q, Cr;
|
12455
12468
|
}
|
12456
|
-
var
|
12457
|
-
const
|
12469
|
+
var S0 = k0();
|
12470
|
+
const _0 = /* @__PURE__ */ tt(S0);
|
12458
12471
|
function vi({ style: e, className: t, children: n, isMounted: r }) {
|
12459
12472
|
const { isMobile: i, isNormalSize: a } = Q(Ie), o = ze(null);
|
12460
12473
|
return /* @__PURE__ */ C.jsx(
|
12461
|
-
|
12474
|
+
_0,
|
12462
12475
|
{
|
12463
12476
|
focusTrapOptions: {
|
12464
12477
|
clickOutsideDeactivates: !0,
|
@@ -12500,7 +12513,7 @@ vi.defaultProps = {
|
|
12500
12513
|
className: "",
|
12501
12514
|
isMounted: !1
|
12502
12515
|
};
|
12503
|
-
const
|
12516
|
+
const E0 = () => {
|
12504
12517
|
var n, r, i, a, o;
|
12505
12518
|
const { isMobile: e } = Q(Ie), { launchButton: t } = Q(Se);
|
12506
12519
|
return (n = t == null ? void 0 : t.message) != null && n.enabled ? /* @__PURE__ */ C.jsx(
|
@@ -12515,7 +12528,7 @@ const _0 = () => {
|
|
12515
12528
|
}
|
12516
12529
|
) : null;
|
12517
12530
|
};
|
12518
|
-
function
|
12531
|
+
function T0() {
|
12519
12532
|
return /* @__PURE__ */ C.jsx("div", { className: "spinner" });
|
12520
12533
|
}
|
12521
12534
|
function xi() {
|
@@ -12527,7 +12540,7 @@ function xi() {
|
|
12527
12540
|
className: "live-chat-connecting",
|
12528
12541
|
style: { backgroundColor: t },
|
12529
12542
|
children: [
|
12530
|
-
/* @__PURE__ */ C.jsx(
|
12543
|
+
/* @__PURE__ */ C.jsx(T0, {}),
|
12531
12544
|
/* @__PURE__ */ C.jsx("div", { className: "live-chat-connecting-messages", children: r.length === 0 ? /* @__PURE__ */ C.jsx("p", { children: "Connecting to live agent" }) : r.map((a, o) => /* @__PURE__ */ C.jsx("p", { children: a }, `queue-message-${o}`)) }),
|
12532
12545
|
/* @__PURE__ */ C.jsx("button", { onClick: n, children: "Cancel" })
|
12533
12546
|
]
|
@@ -12536,7 +12549,7 @@ function xi() {
|
|
12536
12549
|
}
|
12537
12550
|
xi.propTypes = {};
|
12538
12551
|
xi.defaultProps = {};
|
12539
|
-
const co = 500,
|
12552
|
+
const co = 500, O0 = [
|
12540
12553
|
{
|
12541
12554
|
key: "great",
|
12542
12555
|
icon: "😀",
|
@@ -12575,7 +12588,7 @@ function wi({ onDismiss: e }) {
|
|
12575
12588
|
] }),
|
12576
12589
|
r && /* @__PURE__ */ C.jsxs(C.Fragment, { children: [
|
12577
12590
|
/* @__PURE__ */ C.jsx("p", { children: "Before you go, let me know how I did:" }),
|
12578
|
-
/* @__PURE__ */ C.jsx("div", { className: "livechat-end-confirmation-container__icon-button-container", children:
|
12591
|
+
/* @__PURE__ */ C.jsx("div", { className: "livechat-end-confirmation-container__icon-button-container", children: O0.map(({ key: y, icon: h, text: w }) => {
|
12579
12592
|
const g = y === a, P = g ? { backgroundColor: "#E7E4DB", borderColor: "#767676" } : {};
|
12580
12593
|
return /* @__PURE__ */ C.jsxs(
|
12581
12594
|
"button",
|
@@ -12627,7 +12640,7 @@ wi.propTypes = {
|
|
12627
12640
|
onDismiss: k.func
|
12628
12641
|
};
|
12629
12642
|
wi.defaultProps = {};
|
12630
|
-
function
|
12643
|
+
function I0(e, t) {
|
12631
12644
|
const [n, r] = ee(!1), i = ze(), a = ct(
|
12632
12645
|
(...o) => {
|
12633
12646
|
n || (e(...o), r(!0), clearTimeout(i.current), i.current = setTimeout(() => {
|
@@ -12647,7 +12660,7 @@ function Ci() {
|
|
12647
12660
|
liveChatMessages: n,
|
12648
12661
|
sendMessage: r,
|
12649
12662
|
sendTypingEvent: i
|
12650
|
-
} = Q(kt), [a, o] = ee(!1), [l, s] = ee(""), u = ze(), c =
|
12663
|
+
} = Q(kt), [a, o] = ee(!1), [l, s] = ee(""), u = ze(), c = I0(i, 5e3), f = (y) => {
|
12651
12664
|
s(y.target.value), c();
|
12652
12665
|
}, p = () => {
|
12653
12666
|
l.trim() !== "" && (r(l), d());
|
@@ -12713,7 +12726,7 @@ function Ci() {
|
|
12713
12726
|
}
|
12714
12727
|
Ci.propTypes = {};
|
12715
12728
|
Ci.defaultProps = {};
|
12716
|
-
function
|
12729
|
+
function P0(e) {
|
12717
12730
|
const t = /^[-!#$%&'*+/0-9=?A-Z^_a-z{|}~](\.?[-!#$%&'*+/0-9=?A-Z^_a-z`{|}~])*@[a-zA-Z0-9](-*\.?[a-zA-Z0-9])*\.[a-zA-Z](-?[a-zA-Z0-9])+$/;
|
12718
12731
|
if (!e || e.length > 254 || !t.test(e)) return !1;
|
12719
12732
|
var r = e.split("@");
|
@@ -12721,7 +12734,7 @@ function I0(e) {
|
|
12721
12734
|
return a.length > 63;
|
12722
12735
|
}));
|
12723
12736
|
}
|
12724
|
-
const
|
12737
|
+
const A0 = "data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20width='24'%20height='24'%20viewBox='0%200%2024%2024'%20fill='none'%20role='img'%20focusable='false'%20aria-hidden='true'%3e%3cpath%20d='M19%2019H5V5h7V3H3v18h18v-9h-2v7zM14%203v2h3.59l-9.83%209.83%201.41%201.41L19%206.41V10h2V3h-7z'%20fill='currentColor'%3e%3c/path%3e%3c/svg%3e", F0 = () => {
|
12725
12738
|
const [e, t] = ee({});
|
12726
12739
|
return {
|
12727
12740
|
clearError: (a) => {
|
@@ -12737,7 +12750,7 @@ const P0 = "data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20wid
|
|
12737
12750
|
},
|
12738
12751
|
setErrors: t
|
12739
12752
|
};
|
12740
|
-
},
|
12753
|
+
}, L0 = (e) => {
|
12741
12754
|
const [t, n] = ee(e);
|
12742
12755
|
return [t, n, (a, o) => {
|
12743
12756
|
n((l) => ({ ...l, [a]: o }));
|
@@ -12746,7 +12759,7 @@ const P0 = "data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20wid
|
|
12746
12759
|
}];
|
12747
12760
|
}, kr = "privacy policy";
|
12748
12761
|
function ki() {
|
12749
|
-
const { conversationScreen: e, primaryColor: t } = Q(Se), { startLiveChat: n } = Q(kt), { setMode: r } = Q(Ie), { form: i, formHeader: a, privacyPolicyLink: o, privacyPolicyText: l } = e.liveChat, [s, , u] =
|
12762
|
+
const { conversationScreen: e, primaryColor: t } = Q(Se), { startLiveChat: n } = Q(kt), { setMode: r } = Q(Ie), { form: i, formHeader: a, privacyPolicyLink: o, privacyPolicyText: l } = e.liveChat, [s, , u] = L0({}), [c, f] = ee(!1), { clearError: p, errors: d, setErrors: y } = F0(), h = Rs(
|
12750
12763
|
() => (l ?? "").split(kr, 2),
|
12751
12764
|
[l]
|
12752
12765
|
), w = () => {
|
@@ -12756,17 +12769,17 @@ function ki() {
|
|
12756
12769
|
}, P = (I, b) => {
|
12757
12770
|
const E = I.target.value;
|
12758
12771
|
p(b), u(b, E);
|
12759
|
-
},
|
12772
|
+
}, L = () => {
|
12760
12773
|
q() && n(s);
|
12761
12774
|
}, q = () => {
|
12762
12775
|
const I = i.reduce((b, E) => {
|
12763
|
-
const { key: z, validations: N = [] } = E,
|
12764
|
-
if (
|
12776
|
+
const { key: z, validations: N = [] } = E, U = s[z];
|
12777
|
+
if (!U) return { ...b, [z]: "Required" };
|
12765
12778
|
if ((N == null ? void 0 : N.length) > 0)
|
12766
12779
|
for (const D of N)
|
12767
12780
|
switch (D) {
|
12768
12781
|
case "email": {
|
12769
|
-
if (!
|
12782
|
+
if (!P0(U))
|
12770
12783
|
return { ...b, [z]: "Should be email" };
|
12771
12784
|
break;
|
12772
12785
|
}
|
@@ -12811,7 +12824,7 @@ function ki() {
|
|
12811
12824
|
{
|
12812
12825
|
alt: "open in new",
|
12813
12826
|
"aria-hidden": "true",
|
12814
|
-
src:
|
12827
|
+
src: A0
|
12815
12828
|
}
|
12816
12829
|
)
|
12817
12830
|
]
|
@@ -12847,7 +12860,7 @@ function ki() {
|
|
12847
12860
|
{
|
12848
12861
|
className: "live-chat-start-button",
|
12849
12862
|
style: { backgroundColor: t },
|
12850
|
-
onClick:
|
12863
|
+
onClick: L,
|
12851
12864
|
children: "Start chat"
|
12852
12865
|
}
|
12853
12866
|
)
|
@@ -12954,7 +12967,7 @@ Dl.propTypes = {
|
|
12954
12967
|
showMessage: k.bool,
|
12955
12968
|
style: k.shape()
|
12956
12969
|
};
|
12957
|
-
function
|
12970
|
+
function N0(e, t, n) {
|
12958
12971
|
const r = ct(
|
12959
12972
|
(i) => {
|
12960
12973
|
const { data: a } = i || {}, { chatState: o, show: l, type: s } = a || {};
|
@@ -12984,7 +12997,7 @@ function L0(e, t, n) {
|
|
12984
12997
|
};
|
12985
12998
|
}, [e, t]);
|
12986
12999
|
}
|
12987
|
-
function
|
13000
|
+
function j0(e) {
|
12988
13001
|
const [t, n] = ee(null);
|
12989
13002
|
return Ce(() => {
|
12990
13003
|
try {
|
@@ -13014,7 +13027,7 @@ function N0(e) {
|
|
13014
13027
|
`Chatbot - Optimizely experimentVariation: ${t}`
|
13015
13028
|
), t;
|
13016
13029
|
}
|
13017
|
-
function
|
13030
|
+
function D0(e) {
|
13018
13031
|
Ce(() => {
|
13019
13032
|
const t = () => document.visibilityState === "visible" && e();
|
13020
13033
|
return document.addEventListener("visibilitychange", t), () => {
|
@@ -13022,50 +13035,51 @@ function j0(e) {
|
|
13022
13035
|
};
|
13023
13036
|
}, [e]);
|
13024
13037
|
}
|
13025
|
-
function
|
13038
|
+
function M0(e, t) {
|
13026
13039
|
if (!(e instanceof Date && t instanceof Date))
|
13027
13040
|
throw new Error(
|
13028
13041
|
`Both start and end must be valid Date objects: start=${e} end=${t}`
|
13029
13042
|
);
|
13030
13043
|
return (t.getTime() - e.getTime()) / 1e3;
|
13031
13044
|
}
|
13032
|
-
function
|
13045
|
+
function R0(e) {
|
13046
|
+
if (!e) return 0;
|
13033
13047
|
const t = /\[(.+)\]\(([^ ]+)( "(.+)")?\)/gm, n = e.match(t);
|
13034
13048
|
return (n == null ? void 0 : n.length) || 0;
|
13035
13049
|
}
|
13036
|
-
function
|
13050
|
+
function B0(e) {
|
13037
13051
|
return new TextEncoder().encode(e).length;
|
13038
13052
|
}
|
13039
13053
|
const Te = [];
|
13040
13054
|
for (let e = 0; e < 256; ++e)
|
13041
13055
|
Te.push((e + 256).toString(16).slice(1));
|
13042
|
-
function
|
13056
|
+
function H0(e, t = 0) {
|
13043
13057
|
return (Te[e[t + 0]] + Te[e[t + 1]] + Te[e[t + 2]] + Te[e[t + 3]] + "-" + Te[e[t + 4]] + Te[e[t + 5]] + "-" + Te[e[t + 6]] + Te[e[t + 7]] + "-" + Te[e[t + 8]] + Te[e[t + 9]] + "-" + Te[e[t + 10]] + Te[e[t + 11]] + Te[e[t + 12]] + Te[e[t + 13]] + Te[e[t + 14]] + Te[e[t + 15]]).toLowerCase();
|
13044
13058
|
}
|
13045
13059
|
let Sr;
|
13046
|
-
const
|
13047
|
-
function
|
13060
|
+
const z0 = new Uint8Array(16);
|
13061
|
+
function q0() {
|
13048
13062
|
if (!Sr) {
|
13049
13063
|
if (typeof crypto > "u" || !crypto.getRandomValues)
|
13050
13064
|
throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");
|
13051
13065
|
Sr = crypto.getRandomValues.bind(crypto);
|
13052
13066
|
}
|
13053
|
-
return Sr(
|
13067
|
+
return Sr(z0);
|
13054
13068
|
}
|
13055
|
-
const
|
13056
|
-
function
|
13069
|
+
const U0 = typeof crypto < "u" && crypto.randomUUID && crypto.randomUUID.bind(crypto), fo = { randomUUID: U0 };
|
13070
|
+
function $0(e, t, n) {
|
13057
13071
|
var i;
|
13058
13072
|
if (fo.randomUUID && !t && !e)
|
13059
13073
|
return fo.randomUUID();
|
13060
13074
|
e = e || {};
|
13061
|
-
const r = e.random ?? ((i = e.rng) == null ? void 0 : i.call(e)) ??
|
13075
|
+
const r = e.random ?? ((i = e.rng) == null ? void 0 : i.call(e)) ?? q0();
|
13062
13076
|
if (r.length < 16)
|
13063
13077
|
throw new Error("Random bytes length must be >= 16");
|
13064
|
-
return r[6] = r[6] & 15 | 64, r[8] = r[8] & 63 | 128,
|
13078
|
+
return r[6] = r[6] & 15 | 64, r[8] = r[8] & 63 | 128, H0(r);
|
13065
13079
|
}
|
13066
13080
|
const po = (e) => {
|
13067
13081
|
let t = Re.get(`${e}-conversation-history-id`);
|
13068
|
-
return t || (t =
|
13082
|
+
return t || (t = $0(), Re.set(`${e}-conversation-history-id`, t, {
|
13069
13083
|
expires: 1
|
13070
13084
|
})), t;
|
13071
13085
|
};
|
@@ -13088,19 +13102,19 @@ function _i({ submitEventExternal: e }) {
|
|
13088
13102
|
setHasNewMessage: w,
|
13089
13103
|
setIsNormalSize: g,
|
13090
13104
|
setLoading: P
|
13091
|
-
} = Q(Ie), [,
|
13092
|
-
|
13105
|
+
} = Q(Ie), [, L] = ee(!1), [, q] = ee(!1), [I, b] = ee(!1), [E, z] = ee(!1), [N, U] = ee(""), [D, B] = ee(!1), O = ze(null), S = ze(null), T = ze(null), A = Re.get(`${s}-test`) === "1";
|
13106
|
+
N0(
|
13093
13107
|
(St = r == null ? void 0 : r.liveChat) == null ? void 0 : St.enabled,
|
13094
13108
|
E,
|
13095
13109
|
z
|
13096
13110
|
);
|
13097
13111
|
const j = ct(
|
13098
|
-
({ name:
|
13112
|
+
({ name: Y, payload: ae }) => {
|
13099
13113
|
if (!n || !(o != null && o.enabled)) return;
|
13100
13114
|
const ye = Vr(o == null ? void 0 : o.payloadParams, ae);
|
13101
|
-
e ? e({ name:
|
13115
|
+
e ? e({ name: Y, payload: ye }) : T.current.track(
|
13102
13116
|
// TODO: this is untestable - create a custom hook to get submit event function.
|
13103
|
-
|
13117
|
+
Y,
|
13104
13118
|
ye
|
13105
13119
|
);
|
13106
13120
|
},
|
@@ -13113,9 +13127,9 @@ function _i({ submitEventExternal: e }) {
|
|
13113
13127
|
), R = ct(async () => {
|
13114
13128
|
if (window != null && window.OnetrustActiveGroups && window.OnetrustActiveGroups.split(",").includes("C0003") && t != null && t.baseUrl)
|
13115
13129
|
try {
|
13116
|
-
let
|
13130
|
+
let Y = po(s);
|
13117
13131
|
const ae = await fetch(
|
13118
|
-
`${t.baseUrl}/xpert/v2/history?conversation_id=${
|
13132
|
+
`${t.baseUrl}/xpert/v2/history?conversation_id=${Y}`,
|
13119
13133
|
{
|
13120
13134
|
method: "GET",
|
13121
13135
|
headers: {
|
@@ -13132,8 +13146,8 @@ function _i({ submitEventExternal: e }) {
|
|
13132
13146
|
disableFeedback: !0
|
13133
13147
|
}))
|
13134
13148
|
), y(!0), w(!0);
|
13135
|
-
} catch (
|
13136
|
-
console.error(
|
13149
|
+
} catch (Y) {
|
13150
|
+
console.error(Y);
|
13137
13151
|
} finally {
|
13138
13152
|
P(!1);
|
13139
13153
|
}
|
@@ -13147,18 +13161,18 @@ function _i({ submitEventExternal: e }) {
|
|
13147
13161
|
]);
|
13148
13162
|
Ce(() => {
|
13149
13163
|
R();
|
13150
|
-
}, [R]),
|
13164
|
+
}, [R]), D0(
|
13151
13165
|
() => r.conversationHistory.enabled && R()
|
13152
13166
|
), Ce(() => {
|
13153
|
-
let
|
13167
|
+
let Y, ae;
|
13154
13168
|
if (n)
|
13155
|
-
return o != null && o.enabled && (
|
13169
|
+
return o != null && o.enabled && (Y = setInterval(() => {
|
13156
13170
|
var ke;
|
13157
|
-
console.log("Chatbot - Finding Segment"), ((ke = window.analytics) != null && ke.track || e) && (console.log("Chatbot - Segment found"), T.current = window.analytics, clearInterval(
|
13171
|
+
console.log("Chatbot - Finding Segment"), ((ke = window.analytics) != null && ke.track || e) && (console.log("Chatbot - Segment found"), T.current = window.analytics, clearInterval(Y), clearTimeout(ae), L(!0));
|
13158
13172
|
}, 1e3), ae = setTimeout(() => {
|
13159
|
-
clearInterval(
|
13173
|
+
clearInterval(Y);
|
13160
13174
|
}, 6e4)), () => {
|
13161
|
-
clearInterval(
|
13175
|
+
clearInterval(Y), clearTimeout(ae);
|
13162
13176
|
};
|
13163
13177
|
}, [
|
13164
13178
|
n,
|
@@ -13166,33 +13180,33 @@ function _i({ submitEventExternal: e }) {
|
|
13166
13180
|
o == null ? void 0 : o.enabled,
|
13167
13181
|
o == null ? void 0 : o.prefix
|
13168
13182
|
]), Ce(() => {
|
13169
|
-
let
|
13183
|
+
let Y, ae;
|
13170
13184
|
const ye = () => {
|
13171
|
-
l != null && l.enabled && (console.log("Chatbot - Finding Optimizely"), window.optimizely && window.experiments && (console.log("Chatbot - Optimizely found"), clearInterval(
|
13185
|
+
l != null && l.enabled && (console.log("Chatbot - Finding Optimizely"), window.optimizely && window.experiments && (console.log("Chatbot - Optimizely found"), clearInterval(Y), clearTimeout(ae), q(!0)));
|
13172
13186
|
};
|
13173
13187
|
if (n)
|
13174
|
-
return
|
13175
|
-
clearInterval(
|
13188
|
+
return Y = setInterval(ye, 1e3), ae = setTimeout(() => {
|
13189
|
+
clearInterval(Y);
|
13176
13190
|
}, 6e4), () => {
|
13177
|
-
clearInterval(
|
13191
|
+
clearInterval(Y), clearTimeout(ae);
|
13178
13192
|
};
|
13179
13193
|
}, [
|
13180
13194
|
n,
|
13181
13195
|
l == null ? void 0 : l.enabled,
|
13182
13196
|
l == null ? void 0 : l.experimentName
|
13183
13197
|
]);
|
13184
|
-
const H = (
|
13198
|
+
const H = (Y) => {
|
13185
13199
|
var ae, ye;
|
13186
|
-
(ae =
|
13200
|
+
(ae = Y == null ? void 0 : Y.target) != null && ae.href && j({
|
13187
13201
|
name: `${o.prefix}.bi.xpert.chatbot.popup.chat.message.link.clicked`,
|
13188
13202
|
payload: {
|
13189
13203
|
category: "2u",
|
13190
13204
|
label: "xpert-chatbot",
|
13191
|
-
link: (ye =
|
13205
|
+
link: (ye = Y == null ? void 0 : Y.target) == null ? void 0 : ye.href,
|
13192
13206
|
isTestUser: A
|
13193
13207
|
}
|
13194
13208
|
});
|
13195
|
-
}, m =
|
13209
|
+
}, m = j0(
|
13196
13210
|
l == null ? void 0 : l.experimentName
|
13197
13211
|
);
|
13198
13212
|
if (!n) return null;
|
@@ -13203,21 +13217,21 @@ function _i({ submitEventExternal: e }) {
|
|
13203
13217
|
if (o != null && o.enabled && (o != null && o.prefix) && !((_t = T == null ? void 0 : T.current) != null && _t.track) && !e)
|
13204
13218
|
return console.log(`Chatbot - Segment not setup: ${s}`), null;
|
13205
13219
|
const W = () => {
|
13206
|
-
|
13207
|
-
}, J = (
|
13220
|
+
U(""), S.current.value = "", S.current.style.height = "auto";
|
13221
|
+
}, J = (Y, ae) => {
|
13208
13222
|
j({
|
13209
13223
|
name: `${o.prefix}.bi.xpert.chatbot.popup.chat.message.response`,
|
13210
13224
|
payload: {
|
13211
13225
|
category: "2u",
|
13212
13226
|
label: "xpert-chatbot",
|
13213
|
-
linkCount:
|
13214
|
-
apiResponseMessage:
|
13227
|
+
linkCount: R0(Y),
|
13228
|
+
apiResponseMessage: Y,
|
13215
13229
|
isTestUser: A,
|
13216
13230
|
conversationHistoryId: ae
|
13217
13231
|
}
|
13218
13232
|
});
|
13219
13233
|
}, x = ({
|
13220
|
-
conversationSize:
|
13234
|
+
conversationSize: Y,
|
13221
13235
|
userInputMessage: ae,
|
13222
13236
|
apiResponseMessage: ye,
|
13223
13237
|
elapsedSeconds: ke,
|
@@ -13229,45 +13243,46 @@ function _i({ submitEventExternal: e }) {
|
|
13229
13243
|
category: "2u",
|
13230
13244
|
label: "xpert-chatbot",
|
13231
13245
|
isTestUser: A,
|
13232
|
-
conversationSize:
|
13246
|
+
conversationSize: Y,
|
13233
13247
|
userInputMessage: ae,
|
13234
13248
|
apiResponseMessage: ye,
|
13235
13249
|
elapsedSeconds: ke,
|
13236
13250
|
conversationByteSize: Ne
|
13237
13251
|
}
|
13238
13252
|
});
|
13239
|
-
}, Z = async (
|
13253
|
+
}, Z = async (Y) => {
|
13240
13254
|
try {
|
13241
|
-
if (
|
13255
|
+
if (Y.trim().length === 0)
|
13242
13256
|
return;
|
13243
13257
|
const ae = /* @__PURE__ */ new Date();
|
13244
13258
|
w(!1), h(!1);
|
13245
|
-
const ye = f.filter((
|
13259
|
+
const ye = f.filter((X) => X.role === "user").length + 1;
|
13246
13260
|
j({
|
13247
13261
|
name: `${o.prefix}.bi.xpert.chatbot.popup.chat.message.sent`,
|
13248
13262
|
payload: {
|
13249
13263
|
category: "2u",
|
13250
13264
|
label: "xpert-chatbot",
|
13251
13265
|
totalUserInputMessagesSent: ye,
|
13252
|
-
userInputMessage:
|
13266
|
+
userInputMessage: Y,
|
13253
13267
|
isTestUser: A
|
13254
13268
|
}
|
13255
13269
|
}), W();
|
13256
13270
|
let ke = null;
|
13257
13271
|
r.conversationHistory.enabled && (ke = po(s)), u({
|
13258
13272
|
role: "user",
|
13259
|
-
content:
|
13273
|
+
content: Y
|
13260
13274
|
}), P(!0);
|
13261
13275
|
const Ne = [
|
13262
13276
|
...f,
|
13263
13277
|
{
|
13264
13278
|
role: "user",
|
13265
|
-
content:
|
13279
|
+
content: Y
|
13266
13280
|
}
|
13267
|
-
].map((
|
13268
|
-
role:
|
13269
|
-
content:
|
13270
|
-
|
13281
|
+
].map((X) => ({
|
13282
|
+
role: X.role,
|
13283
|
+
content: X.content,
|
13284
|
+
...X.toolCalls && { tool_calls: X.toolCalls }
|
13285
|
+
})).filter(({ role: X }) => ["assistant", "user"].includes(X)), Oe = await fetch(t.endpoint, {
|
13271
13286
|
method: "POST",
|
13272
13287
|
headers: {
|
13273
13288
|
"Content-Type": "application/json"
|
@@ -13282,20 +13297,25 @@ function _i({ submitEventExternal: e }) {
|
|
13282
13297
|
});
|
13283
13298
|
if (!Oe.ok)
|
13284
13299
|
throw new Error(`HTTPError: ${Oe.status} ${Oe.statusText}`);
|
13285
|
-
const {
|
13300
|
+
const {
|
13301
|
+
content: lt,
|
13302
|
+
live_agent: Et,
|
13303
|
+
tool_calls: Bt
|
13304
|
+
} = await Oe.json();
|
13286
13305
|
J(lt, ke);
|
13287
|
-
const
|
13306
|
+
const M = /* @__PURE__ */ new Date();
|
13288
13307
|
x({
|
13289
|
-
conversationByteSize:
|
13308
|
+
conversationByteSize: B0(JSON.stringify(Ne)),
|
13290
13309
|
conversationSize: f.length + 2,
|
13291
|
-
userInputMessage:
|
13310
|
+
userInputMessage: Y,
|
13292
13311
|
apiResponseMessage: lt,
|
13293
|
-
elapsedSeconds:
|
13312
|
+
elapsedSeconds: M0(ae, M)
|
13294
13313
|
}), u({
|
13295
13314
|
content: lt,
|
13296
13315
|
createdAt: /* @__PURE__ */ new Date(),
|
13297
13316
|
liveAgent: Et,
|
13298
|
-
role: "assistant"
|
13317
|
+
role: "assistant",
|
13318
|
+
toolCalls: Bt
|
13299
13319
|
}), y(!1), P(!1), W(), w(!0);
|
13300
13320
|
} catch (ae) {
|
13301
13321
|
P(!1), W(), h(!0), console.error(ae);
|
@@ -13309,15 +13329,15 @@ function _i({ submitEventExternal: e }) {
|
|
13309
13329
|
isTestUser: A
|
13310
13330
|
}
|
13311
13331
|
});
|
13312
|
-
}, ne = (
|
13332
|
+
}, ne = (Y) => {
|
13313
13333
|
j({
|
13314
|
-
name: `${o.prefix}.bi.xpert.chatbot.${
|
13334
|
+
name: `${o.prefix}.bi.xpert.chatbot.${Y ? "normal" : "expand"}.size.button.clicked`,
|
13315
13335
|
payload: {
|
13316
13336
|
category: "2u",
|
13317
13337
|
label: "xpert-chatbot",
|
13318
13338
|
isTestUser: A
|
13319
13339
|
}
|
13320
|
-
}), g(
|
13340
|
+
}), g(Y);
|
13321
13341
|
}, fe = () => {
|
13322
13342
|
b(!0), j({
|
13323
13343
|
name: `${o.prefix}.bi.xpert.chatbot.proactive.message.clicked`,
|
@@ -13345,17 +13365,17 @@ function _i({ submitEventExternal: e }) {
|
|
13345
13365
|
isTestUser: A
|
13346
13366
|
}
|
13347
13367
|
});
|
13348
|
-
}, pe = (
|
13349
|
-
|
13350
|
-
}, Ee = (
|
13351
|
-
const ye = f.map((ke, Ne) =>
|
13368
|
+
}, pe = (Y) => {
|
13369
|
+
U(Y.target.value);
|
13370
|
+
}, Ee = (Y, ae = "") => {
|
13371
|
+
const ye = f.map((ke, Ne) => Y === Ne ? (j({
|
13352
13372
|
name: `${o.prefix}.bi.xpert.chatbot.feedback.thumbs.${ae.toLowerCase()}.clicked`,
|
13353
13373
|
payload: {
|
13354
13374
|
category: "2u",
|
13355
13375
|
label: "xpert-chatbot",
|
13356
|
-
userInputMessage: f[
|
13357
|
-
apiResponseMessageIndex:
|
13358
|
-
apiResponseMessage: f[
|
13376
|
+
userInputMessage: f[Y - 1],
|
13377
|
+
apiResponseMessageIndex: Y,
|
13378
|
+
apiResponseMessage: f[Y],
|
13359
13379
|
isTestUser: A
|
13360
13380
|
}
|
13361
13381
|
}), {
|
@@ -13413,7 +13433,7 @@ function _i({ submitEventExternal: e }) {
|
|
13413
13433
|
handleFloatingActionButtonClick: ie
|
13414
13434
|
}
|
13415
13435
|
),
|
13416
|
-
/* @__PURE__ */ C.jsx(
|
13436
|
+
/* @__PURE__ */ C.jsx(E0, {}),
|
13417
13437
|
I && !E && /* @__PURE__ */ C.jsx(vi, { isMounted: D, children: /* @__PURE__ */ C.jsx(
|
13418
13438
|
"div",
|
13419
13439
|
{
|
@@ -13431,7 +13451,7 @@ function _i({ submitEventExternal: e }) {
|
|
13431
13451
|
setIsMounted: B
|
13432
13452
|
}
|
13433
13453
|
),
|
13434
|
-
/* @__PURE__ */ C.jsx(
|
13454
|
+
/* @__PURE__ */ C.jsx(Uh, {}),
|
13435
13455
|
d === ft.XPERT && /* @__PURE__ */ C.jsx(
|
13436
13456
|
di,
|
13437
13457
|
{
|
@@ -13479,21 +13499,7 @@ Ml.propTypes = {
|
|
13479
13499
|
id: k.string,
|
13480
13500
|
xpertKey: k.string
|
13481
13501
|
};
|
13482
|
-
function
|
13483
|
-
e && Object.defineProperty(document, "cookie", {
|
13484
|
-
configurable: !0,
|
13485
|
-
get: function() {
|
13486
|
-
return "";
|
13487
|
-
},
|
13488
|
-
set: function(t) {
|
13489
|
-
}
|
13490
|
-
});
|
13491
|
-
}
|
13492
|
-
const V0 = ["retool.prod.2u.com", "retool.stg.2u.com"], W0 = V0.includes(
|
13493
|
-
window.location.hostname
|
13494
|
-
);
|
13495
|
-
$0(W0);
|
13496
|
-
function G0({
|
13502
|
+
function V0({
|
13497
13503
|
clientId: e,
|
13498
13504
|
configurations: t = {},
|
13499
13505
|
submitEventExternal: n,
|
@@ -13509,12 +13515,12 @@ function G0({
|
|
13509
13515
|
}
|
13510
13516
|
);
|
13511
13517
|
}
|
13512
|
-
|
13518
|
+
V0.propTypes = {
|
13513
13519
|
clientId: k.string,
|
13514
13520
|
configurations: k.object,
|
13515
13521
|
submitEventExternal: k.func,
|
13516
13522
|
xpertKey: k.string
|
13517
13523
|
};
|
13518
13524
|
export {
|
13519
|
-
|
13525
|
+
V0 as Chatbot
|
13520
13526
|
};
|