@yartsun/hypershadow-widget 0.1.8 → 0.1.9
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.cjs.js +6 -6
- package/dist/lib/index.es.js +251 -251
- package/dist/lib/style.css +1 -1
- package/dist/standalone/hs-widget.css +1 -1
- package/dist/standalone/hs-widget.es.js +959 -959
- package/dist/standalone/hs-widget.iife.js +17 -17
- package/dist/static/widget/v1/chat/assets/{ChatWrapper.vue_vue_type_style_index_0_lang-BJEW3T51.js → ChatWrapper.vue_vue_type_style_index_0_lang-Bub3an18.js} +1 -1
- package/dist/static/widget/v1/chat/assets/{federation-expose-Chat-CpykKNL7.js → federation-expose-Chat-Cev1kPXO.js} +1 -1
- package/dist/static/widget/v1/chat/assets/{index-CiCnDOSD.js → index-B9aDoecz.js} +1 -1
- package/dist/static/widget/v1/chat/assets/remoteChat.js +1 -1
- package/dist/static/widget/v1/chat/assets/style-BQIRocFR.css +1 -0
- package/dist/static/widget/v1/chat/index.html +3 -3
- package/package.json +1 -1
- package/dist/static/widget/v1/chat/assets/style-6WbxXmGJ.css +0 -1
package/dist/lib/index.es.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
var aa = Object.defineProperty;
|
|
2
2
|
var la = (r, e, t) => e in r ? aa(r, e, { enumerable: !0, configurable: !0, writable: !0, value: t }) : r[e] = t;
|
|
3
3
|
var V = (r, e, t) => la(r, typeof e != "symbol" ? e + "" : e, t);
|
|
4
|
-
import { Fragment as Cn, defineComponent as Se, Comment as ca, mergeProps as ua, cloneVNode as da, h as hn, createBlock as lt, openBlock as
|
|
4
|
+
import { Fragment as Cn, defineComponent as Se, Comment as ca, mergeProps as ua, cloneVNode as da, h as hn, createBlock as lt, openBlock as E, unref as F, normalizeClass as te, withCtx as Fe, renderSlot as yi, computed as z, createElementBlock as B, normalizeStyle as K, createElementVNode as I, createCommentVNode as ne, toDisplayString as Je, createVNode as _e, withModifiers as Yt, getCurrentInstance as ha, ref as H, watch as kt, nextTick as Ot, withDirectives as Sn, isRef as vi, vModelText as pa, onMounted as Hs, createTextVNode as Ir, withKeys as ga, onUnmounted as Tn, resolveDynamicComponent as _i, onBeforeUnmount as fa, Transition as Rn, renderList as ma, vShow as Or } from "vue";
|
|
5
5
|
function xi(r) {
|
|
6
6
|
var e, t, s = "";
|
|
7
7
|
if (typeof r == "string" || typeof r == "number") s += r;
|
|
@@ -245,7 +245,7 @@ const ba = Se({
|
|
|
245
245
|
parseClassName: Ra(r),
|
|
246
246
|
sortModifiers: Ma(r),
|
|
247
247
|
..._a(r)
|
|
248
|
-
}), Aa = /\s+/,
|
|
248
|
+
}), Aa = /\s+/, Da = (r, e) => {
|
|
249
249
|
const {
|
|
250
250
|
parseClassName: t,
|
|
251
251
|
getClassGroupId: s,
|
|
@@ -290,7 +290,7 @@ const ba = Se({
|
|
|
290
290
|
}
|
|
291
291
|
return l;
|
|
292
292
|
};
|
|
293
|
-
function
|
|
293
|
+
function Ea() {
|
|
294
294
|
let r = 0, e, t, s = "";
|
|
295
295
|
for (; r < arguments.length; )
|
|
296
296
|
(e = arguments[r++]) && (t = Ti(e)) && (s && (s += " "), s += t);
|
|
@@ -314,11 +314,11 @@ function La(r, ...e) {
|
|
|
314
314
|
const c = s(l);
|
|
315
315
|
if (c)
|
|
316
316
|
return c;
|
|
317
|
-
const u =
|
|
317
|
+
const u = Da(l, t);
|
|
318
318
|
return n(l, u), u;
|
|
319
319
|
}
|
|
320
320
|
return function() {
|
|
321
|
-
return i(
|
|
321
|
+
return i(Ea.apply(null, arguments));
|
|
322
322
|
};
|
|
323
323
|
}
|
|
324
324
|
const be = (r) => {
|
|
@@ -329,13 +329,13 @@ const be = (r) => {
|
|
|
329
329
|
// For example, `hsl(0 0% 0%)` would be classified as a length without this check.
|
|
330
330
|
// I could also use lookbehind assertion in `lengthUnitRegex` but that isn't supported widely enough.
|
|
331
331
|
Oa.test(r) && !$a.test(r)
|
|
332
|
-
), Mi = () => !1, Wa = (r) => Ka.test(r), Na = (r) => Fa.test(r), Ha = (r) => !P(r) && !A(r), ja = (r) => as(r,
|
|
332
|
+
), Mi = () => !1, Wa = (r) => Ka.test(r), Na = (r) => Fa.test(r), Ha = (r) => !P(r) && !A(r), ja = (r) => as(r, Di, Mi), P = (r) => Ri.test(r), Dt = (r) => as(r, Ei, Va), gn = (r) => as(r, Ya, N), Vr = (r) => as(r, Pi, Mi), qa = (r) => as(r, Ai, Na), Os = (r) => as(r, Li, Wa), A = (r) => zi.test(r), hs = (r) => ls(r, Ei), Ga = (r) => ls(r, Qa), Wr = (r) => ls(r, Pi), Za = (r) => ls(r, Di), Xa = (r) => ls(r, Ai), $s = (r) => ls(r, Li, !0), as = (r, e, t) => {
|
|
333
333
|
const s = Ri.exec(r);
|
|
334
334
|
return s ? s[1] ? e(s[1]) : t(s[2]) : !1;
|
|
335
335
|
}, ls = (r, e, t = !1) => {
|
|
336
336
|
const s = zi.exec(r);
|
|
337
337
|
return s ? s[1] ? e(s[1]) : t : !1;
|
|
338
|
-
}, Pi = (r) => r === "position" || r === "percentage", Ai = (r) => r === "image" || r === "url",
|
|
338
|
+
}, Pi = (r) => r === "position" || r === "percentage", Ai = (r) => r === "image" || r === "url", Di = (r) => r === "length" || r === "size" || r === "bg-size", Ei = (r) => r === "length", Ya = (r) => r === "number", Qa = (r) => r === "family-name", Li = (r) => r === "shadow", Ja = () => {
|
|
339
339
|
const r = be("color"), e = be("font"), t = be("text"), s = be("font-weight"), n = be("tracking"), i = be("leading"), o = be("breakpoint"), a = be("container"), l = be("spacing"), c = be("radius"), u = be("shadow"), p = be("inset-shadow"), g = be("text-shadow"), h = be("drop-shadow"), f = be("blur"), d = be("perspective"), w = be("aspect"), v = be("ease"), y = be("animate"), b = () => ["auto", "avoid", "all", "avoid-page", "page", "left", "right", "column"], _ = () => [
|
|
340
340
|
"center",
|
|
341
341
|
"top",
|
|
@@ -356,13 +356,13 @@ const be = (r) => {
|
|
|
356
356
|
"left-bottom"
|
|
357
357
|
], m = () => [..._(), A, P], x = () => ["auto", "hidden", "clip", "visible", "scroll"], S = () => ["auto", "contain", "none"], k = () => [A, P, l], T = () => [jt, "full", "auto", ...k()], O = () => [xt, "none", "subgrid", A, P], j = () => ["auto", {
|
|
358
358
|
span: ["full", xt, A, P]
|
|
359
|
-
}, xt, A, P], q = () => [xt, "auto", A, P],
|
|
359
|
+
}, xt, A, P], q = () => [xt, "auto", A, P], X = () => ["auto", "min", "max", "fr", A, P], ce = () => ["start", "end", "center", "between", "around", "evenly", "stretch", "baseline", "center-safe", "end-safe"], D = () => ["start", "end", "center", "stretch", "center-safe", "end-safe"], Z = () => ["auto", ...k()], ee = () => [jt, "auto", "full", "dvw", "dvh", "lvw", "lvh", "svw", "svh", "min", "max", "fit", ...k()], L = () => [r, A, P], re = () => [..._(), Wr, Vr, {
|
|
360
360
|
position: [A, P]
|
|
361
361
|
}], st = () => ["no-repeat", {
|
|
362
362
|
repeat: ["", "x", "y", "space", "round"]
|
|
363
363
|
}], Be = () => ["auto", "cover", "contain", Za, ja, {
|
|
364
364
|
size: [A, P]
|
|
365
|
-
}], Ie = () => [pn, hs,
|
|
365
|
+
}], Ie = () => [pn, hs, Dt], oe = () => [
|
|
366
366
|
// Deprecated since Tailwind CSS v4.0.0
|
|
367
367
|
"",
|
|
368
368
|
"none",
|
|
@@ -370,7 +370,7 @@ const be = (r) => {
|
|
|
370
370
|
c,
|
|
371
371
|
A,
|
|
372
372
|
P
|
|
373
|
-
], Q = () => ["", N, hs,
|
|
373
|
+
], Q = () => ["", N, hs, Dt], Me = () => ["solid", "dashed", "dotted", "double"], ht = () => ["normal", "multiply", "screen", "overlay", "darken", "lighten", "color-dodge", "color-burn", "hard-light", "soft-light", "difference", "exclusion", "hue", "saturation", "color", "luminosity"], W = () => [N, pn, Wr, Vr], pt = () => [
|
|
374
374
|
// Deprecated since Tailwind CSS v4.0.0
|
|
375
375
|
"",
|
|
376
376
|
"none",
|
|
@@ -745,14 +745,14 @@ const be = (r) => {
|
|
|
745
745
|
* @see https://tailwindcss.com/docs/grid-auto-columns
|
|
746
746
|
*/
|
|
747
747
|
"auto-cols": [{
|
|
748
|
-
"auto-cols":
|
|
748
|
+
"auto-cols": X()
|
|
749
749
|
}],
|
|
750
750
|
/**
|
|
751
751
|
* Grid Auto Rows
|
|
752
752
|
* @see https://tailwindcss.com/docs/grid-auto-rows
|
|
753
753
|
*/
|
|
754
754
|
"auto-rows": [{
|
|
755
|
-
"auto-rows":
|
|
755
|
+
"auto-rows": X()
|
|
756
756
|
}],
|
|
757
757
|
/**
|
|
758
758
|
* Gap
|
|
@@ -787,14 +787,14 @@ const be = (r) => {
|
|
|
787
787
|
* @see https://tailwindcss.com/docs/justify-items
|
|
788
788
|
*/
|
|
789
789
|
"justify-items": [{
|
|
790
|
-
"justify-items": [...
|
|
790
|
+
"justify-items": [...D(), "normal"]
|
|
791
791
|
}],
|
|
792
792
|
/**
|
|
793
793
|
* Justify Self
|
|
794
794
|
* @see https://tailwindcss.com/docs/justify-self
|
|
795
795
|
*/
|
|
796
796
|
"justify-self": [{
|
|
797
|
-
"justify-self": ["auto", ...
|
|
797
|
+
"justify-self": ["auto", ...D()]
|
|
798
798
|
}],
|
|
799
799
|
/**
|
|
800
800
|
* Align Content
|
|
@@ -808,7 +808,7 @@ const be = (r) => {
|
|
|
808
808
|
* @see https://tailwindcss.com/docs/align-items
|
|
809
809
|
*/
|
|
810
810
|
"align-items": [{
|
|
811
|
-
items: [...
|
|
811
|
+
items: [...D(), {
|
|
812
812
|
baseline: ["", "last"]
|
|
813
813
|
}]
|
|
814
814
|
}],
|
|
@@ -817,7 +817,7 @@ const be = (r) => {
|
|
|
817
817
|
* @see https://tailwindcss.com/docs/align-self
|
|
818
818
|
*/
|
|
819
819
|
"align-self": [{
|
|
820
|
-
self: ["auto", ...
|
|
820
|
+
self: ["auto", ...D(), {
|
|
821
821
|
baseline: ["", "last"]
|
|
822
822
|
}]
|
|
823
823
|
}],
|
|
@@ -833,14 +833,14 @@ const be = (r) => {
|
|
|
833
833
|
* @see https://tailwindcss.com/docs/place-items
|
|
834
834
|
*/
|
|
835
835
|
"place-items": [{
|
|
836
|
-
"place-items": [...
|
|
836
|
+
"place-items": [...D(), "baseline"]
|
|
837
837
|
}],
|
|
838
838
|
/**
|
|
839
839
|
* Place Self
|
|
840
840
|
* @see https://tailwindcss.com/docs/place-self
|
|
841
841
|
*/
|
|
842
842
|
"place-self": [{
|
|
843
|
-
"place-self": ["auto", ...
|
|
843
|
+
"place-self": ["auto", ...D()]
|
|
844
844
|
}],
|
|
845
845
|
// Spacing
|
|
846
846
|
/**
|
|
@@ -1070,7 +1070,7 @@ const be = (r) => {
|
|
|
1070
1070
|
* @see https://tailwindcss.com/docs/font-size
|
|
1071
1071
|
*/
|
|
1072
1072
|
"font-size": [{
|
|
1073
|
-
text: ["base", t, hs,
|
|
1073
|
+
text: ["base", t, hs, Dt]
|
|
1074
1074
|
}],
|
|
1075
1075
|
/**
|
|
1076
1076
|
* Font Smoothing
|
|
@@ -1218,7 +1218,7 @@ const be = (r) => {
|
|
|
1218
1218
|
* @see https://tailwindcss.com/docs/text-decoration-thickness
|
|
1219
1219
|
*/
|
|
1220
1220
|
"text-decoration-thickness": [{
|
|
1221
|
-
decoration: [N, "from-font", "auto", A,
|
|
1221
|
+
decoration: [N, "from-font", "auto", A, Dt]
|
|
1222
1222
|
}],
|
|
1223
1223
|
/**
|
|
1224
1224
|
* Text Decoration Color
|
|
@@ -1356,7 +1356,7 @@ const be = (r) => {
|
|
|
1356
1356
|
}, xt, A, P],
|
|
1357
1357
|
radial: ["", A, P],
|
|
1358
1358
|
conic: [xt, A, P]
|
|
1359
|
-
},
|
|
1359
|
+
}, Xa, qa]
|
|
1360
1360
|
}],
|
|
1361
1361
|
/**
|
|
1362
1362
|
* Background Color
|
|
@@ -1705,7 +1705,7 @@ const be = (r) => {
|
|
|
1705
1705
|
* @see https://tailwindcss.com/docs/outline-width
|
|
1706
1706
|
*/
|
|
1707
1707
|
"outline-w": [{
|
|
1708
|
-
outline: ["", N, hs,
|
|
1708
|
+
outline: ["", N, hs, Dt]
|
|
1709
1709
|
}],
|
|
1710
1710
|
/**
|
|
1711
1711
|
* Outline Color
|
|
@@ -1780,7 +1780,7 @@ const be = (r) => {
|
|
|
1780
1780
|
* @see https://github.com/tailwindlabs/tailwindcss/blob/v4.0.0/packages/tailwindcss/src/utilities.ts#L4158
|
|
1781
1781
|
*/
|
|
1782
1782
|
"ring-offset-w": [{
|
|
1783
|
-
"ring-offset": [N,
|
|
1783
|
+
"ring-offset": [N, Dt]
|
|
1784
1784
|
}],
|
|
1785
1785
|
/**
|
|
1786
1786
|
* Ring Offset Color
|
|
@@ -2730,7 +2730,7 @@ const be = (r) => {
|
|
|
2730
2730
|
* @see https://tailwindcss.com/docs/stroke-width
|
|
2731
2731
|
*/
|
|
2732
2732
|
"stroke-w": [{
|
|
2733
|
-
stroke: [N, hs,
|
|
2733
|
+
stroke: [N, hs, Dt, gn]
|
|
2734
2734
|
}],
|
|
2735
2735
|
/**
|
|
2736
2736
|
* Stroke
|
|
@@ -2820,7 +2820,7 @@ const bt = /* @__PURE__ */ Se({
|
|
|
2820
2820
|
},
|
|
2821
2821
|
setup(r) {
|
|
2822
2822
|
const e = r;
|
|
2823
|
-
return (t, s) => (
|
|
2823
|
+
return (t, s) => (E(), lt(F(va), {
|
|
2824
2824
|
"data-slot": "button",
|
|
2825
2825
|
as: t.as,
|
|
2826
2826
|
"as-child": t.asChild,
|
|
@@ -2877,7 +2877,7 @@ function Ss(r, e = 8) {
|
|
|
2877
2877
|
const An = (r) => r ? r.replace(/<br>/g, "<br />").replace(/\n/g, "<br />") : "", rl = ["innerHTML"], il = ["innerHTML"], ol = ["innerHTML"], al = ["width", "height"], ll = `
|
|
2878
2878
|
<svg width="24" height="25" viewBox="0 0 24 25" fill="none" xmlns="http://www.w3.org/2000/svg">
|
|
2879
2879
|
<path d="M21.76 16.42L15.36 4.9C14.5 3.35 13.31 2.5 12 2.5C10.69 2.5 9.49998 3.35 8.63998 4.9L2.23998 16.42C1.42998 17.89 1.33998 19.3 1.98998 20.41C2.63998 21.52 3.91998 22.13 5.59998 22.13H18.4C20.08 22.13 21.36 21.52 22.01 20.41C22.66 19.3 22.57 17.88 21.76 16.42ZM11.25 9.5C11.25 9.09 11.59 8.75 12 8.75C12.41 8.75 12.75 9.09 12.75 9.5V14.5C12.75 14.91 12.41 15.25 12 15.25C11.59 15.25 11.25 14.91 11.25 14.5V9.5ZM12.71 18.21C12.66 18.25 12.61 18.29 12.56 18.33C12.5 18.37 12.44 18.4 12.38 18.42C12.32 18.45 12.26 18.47 12.19 18.48C12.13 18.49 12.06 18.5 12 18.5C11.94 18.5 11.87 18.49 11.8 18.48C11.74 18.47 11.68 18.45 11.62 18.42C11.56 18.4 11.5 18.37 11.44 18.33C11.39 18.29 11.34 18.25 11.29 18.21C11.11 18.02 11 17.76 11 17.5C11 17.24 11.11 16.98 11.29 16.79C11.34 16.75 11.39 16.71 11.44 16.67C11.5 16.63 11.56 16.6 11.62 16.58C11.68 16.55 11.74 16.53 11.8 16.52C11.93 16.49 12.07 16.49 12.19 16.52C12.26 16.53 12.32 16.55 12.38 16.58C12.44 16.6 12.5 16.63 12.56 16.67C12.61 16.71 12.66 16.75 12.71 16.79C12.89 16.98 13 17.24 13 17.5C13 17.76 12.89 18.02 12.71 18.21Z" fill="currentColor"/>
|
|
2880
|
-
</svg>`,
|
|
2880
|
+
</svg>`, Dn = /* @__PURE__ */ Se({
|
|
2881
2881
|
__name: "ChatError",
|
|
2882
2882
|
props: {
|
|
2883
2883
|
warningElement: {},
|
|
@@ -2957,7 +2957,7 @@ const An = (r) => r ? r.replace(/<br>/g, "<br />").replace(/\n/g, "<br />") : ""
|
|
|
2957
2957
|
} : {});
|
|
2958
2958
|
return (l, c) => {
|
|
2959
2959
|
var u, p, g, h, f, d, w, v, y, b, _;
|
|
2960
|
-
return
|
|
2960
|
+
return E(), B("div", {
|
|
2961
2961
|
class: te(["tw:w-full tw:flex tw:items-center tw:flex-[1_0_0] tw:self-stretch", {
|
|
2962
2962
|
"tw:flex-row tw:items-center tw:justify-between": l.type === "connectionIssue" || l.type === "reconnecting",
|
|
2963
2963
|
"tw:flex-col tw:items-center tw:justify-center tw:h-full": l.type === "launchIssue",
|
|
@@ -2980,7 +2980,7 @@ const An = (r) => r ? r.replace(/<br>/g, "<br />").replace(/\n/g, "<br />") : ""
|
|
|
2980
2980
|
gap: (((g = l.warningElement.content) == null ? void 0 : g.verticalSpacing) || 4) + "px"
|
|
2981
2981
|
})
|
|
2982
2982
|
}, [
|
|
2983
|
-
(h = l.warningElement.content.icon) != null && h.showIcon ? (
|
|
2983
|
+
(h = l.warningElement.content.icon) != null && h.showIcon ? (E(), B("div", {
|
|
2984
2984
|
key: 0,
|
|
2985
2985
|
style: K({ color: ((f = l.warningElement.content.icon) == null ? void 0 : f.color) || l.warningElement.content.color, fontSize: o.value, width: (((d = l.warningElement.content.icon) == null ? void 0 : d.size) || 16) + "px", height: (((w = l.warningElement.content.icon) == null ? void 0 : w.size) || 16) + "px" }),
|
|
2986
2986
|
class: te({
|
|
@@ -3002,7 +3002,7 @@ const An = (r) => r ? r.replace(/<br>/g, "<br />").replace(/\n/g, "<br />") : ""
|
|
|
3002
3002
|
innerHTML: F(An)(l.descriptionText)
|
|
3003
3003
|
}, null, 12, ol)
|
|
3004
3004
|
], 6),
|
|
3005
|
-
l.warningElement.resetButton ? (
|
|
3005
|
+
l.warningElement.resetButton ? (E(), lt(F(bt), {
|
|
3006
3006
|
key: 0,
|
|
3007
3007
|
size: (_ = l.warningElement.resetButton) == null ? void 0 : _.size,
|
|
3008
3008
|
class: te([{ "tw:mt-8": l.type === "launchIssue" || l.type === "reconnecting" }]),
|
|
@@ -3013,7 +3013,7 @@ const An = (r) => r ? r.replace(/<br>/g, "<br />").replace(/\n/g, "<br />") : ""
|
|
|
3013
3013
|
default: Fe(() => {
|
|
3014
3014
|
var m, x;
|
|
3015
3015
|
return [
|
|
3016
|
-
((m = l.warningElement.resetButton) == null ? void 0 : m.showType) !== "text" ? (
|
|
3016
|
+
((m = l.warningElement.resetButton) == null ? void 0 : m.showType) !== "text" ? (E(), B("svg", {
|
|
3017
3017
|
key: 0,
|
|
3018
3018
|
width: l.warningElement.resetButton.fontSize ? l.warningElement.resetButton.fontSize + 4 : 16,
|
|
3019
3019
|
height: l.warningElement.resetButton.fontSize ? l.warningElement.resetButton.fontSize + 4 : 16,
|
|
@@ -3024,7 +3024,7 @@ const An = (r) => r ? r.replace(/<br>/g, "<br />").replace(/\n/g, "<br />") : ""
|
|
|
3024
3024
|
}, c[0] || (c[0] = [
|
|
3025
3025
|
I("path", { d: "M10.7935 1.83337H5.20683C2.78016 1.83337 1.3335 3.28004 1.3335 5.70671V11.2867C1.3335 13.72 2.78016 15.1667 5.20683 15.1667H10.7868C13.2135 15.1667 14.6602 13.72 14.6602 11.2934V5.70671C14.6668 3.28004 13.2202 1.83337 10.7935 1.83337ZM8.00016 12.6667C6.80683 12.6667 5.8735 12.0734 5.24016 11.4867V11.96C5.24016 12.2334 5.0135 12.46 4.74016 12.46C4.46683 12.46 4.24016 12.2334 4.24016 11.96V10.1267C4.24016 9.85337 4.46683 9.62671 4.74016 9.62671H6.3935C6.66683 9.62671 6.8935 9.85337 6.8935 10.1267C6.8935 10.4 6.66683 10.6267 6.3935 10.6267H5.7935C6.28683 11.12 7.0535 11.6667 8.00016 11.6667C9.74683 11.6667 11.1668 10.2467 11.1668 8.50004C11.1668 8.22671 11.3935 8.00004 11.6668 8.00004C11.9402 8.00004 12.1668 8.22671 12.1668 8.50004C12.1668 10.8 10.3002 12.6667 8.00016 12.6667ZM12.1668 6.86004C12.1668 6.88004 12.1668 6.90004 12.1668 6.91337C12.1602 6.98671 12.1402 7.05337 12.1068 7.11337C12.0735 7.17337 12.0268 7.22671 11.9668 7.27337C11.9202 7.30671 11.8668 7.33337 11.8068 7.35337C11.7602 7.36671 11.7135 7.37337 11.6668 7.37337H10.0468C9.7735 7.37337 9.54683 7.14671 9.54683 6.87337C9.54683 6.60004 9.7735 6.37337 10.0468 6.37337H10.6002C10.0668 5.88004 9.20683 5.33337 8.0135 5.33337C6.26683 5.33337 4.84683 6.75337 4.84683 8.50004C4.84683 8.77337 4.62016 9.00004 4.34683 9.00004C4.0735 9.00004 3.8335 8.77337 3.8335 8.50004C3.8335 6.20004 5.70016 4.33337 8.00016 4.33337C9.4335 4.33337 10.4868 4.95337 11.1668 5.54671V5.04004C11.1668 4.76671 11.3935 4.54004 11.6668 4.54004C11.9402 4.54004 12.1668 4.76671 12.1668 5.04004V6.86004Z" }, null, -1)
|
|
3026
3026
|
]), 12, al)) : ne("", !0),
|
|
3027
|
-
((x = l.warningElement.resetButton) == null ? void 0 : x.showType) !== "icon" ? (
|
|
3027
|
+
((x = l.warningElement.resetButton) == null ? void 0 : x.showType) !== "icon" ? (E(), B("span", {
|
|
3028
3028
|
key: 1,
|
|
3029
3029
|
style: K({ fontSize: l.warningElement.resetButton.fontSize + "px" })
|
|
3030
3030
|
}, Je(l.resetButtonText || "Restart"), 5)) : ne("", !0)
|
|
@@ -3063,7 +3063,7 @@ var Ve = {
|
|
|
3063
3063
|
duration: 0.5,
|
|
3064
3064
|
overwrite: !1,
|
|
3065
3065
|
delay: 0
|
|
3066
|
-
}, er, ve, le, ct = 1e8, ke = 1 / ct,
|
|
3066
|
+
}, er, ve, le, ct = 1e8, ke = 1 / ct, En = Math.PI * 2, cl = En / 4, ul = 0, $i = Math.sqrt, dl = Math.cos, hl = Math.sin, ye = function(e) {
|
|
3067
3067
|
return typeof e == "string";
|
|
3068
3068
|
}, ge = function(e) {
|
|
3069
3069
|
return typeof e == "function";
|
|
@@ -3137,7 +3137,7 @@ var Ve = {
|
|
|
3137
3137
|
}, Zi = function(e) {
|
|
3138
3138
|
var t = parseFloat(e);
|
|
3139
3139
|
return (t || t === 0) && (e + "").match(Vi).length < 2 ? t : ye(e) ? e.trim() : e;
|
|
3140
|
-
},
|
|
3140
|
+
}, Xi = function(e) {
|
|
3141
3141
|
return e;
|
|
3142
3142
|
}, Ne = function(e, t) {
|
|
3143
3143
|
for (var s in t)
|
|
@@ -3171,7 +3171,7 @@ var Ve = {
|
|
|
3171
3171
|
for (var s = e.length, n = s === t.length; n && s-- && e[s] === t[s]; )
|
|
3172
3172
|
;
|
|
3173
3173
|
return s < 0;
|
|
3174
|
-
},
|
|
3174
|
+
}, Yi = function(e, t, s, n, i) {
|
|
3175
3175
|
var o = e[n], a;
|
|
3176
3176
|
if (i)
|
|
3177
3177
|
for (a = t[i]; o && o[i] > a; )
|
|
@@ -3210,14 +3210,14 @@ var Ve = {
|
|
|
3210
3210
|
return s && s.smoothChildTiming && e._ts && (e._start = we(s._time - (e._ts > 0 ? t / e._ts : ((e._dirty ? e.totalDuration() : e._tDur) - t) / -e._ts)), nn(e), s._dirty || Kt(s, e)), e;
|
|
3211
3211
|
}, Qi = function(e, t) {
|
|
3212
3212
|
var s;
|
|
3213
|
-
if ((t._time || !t._dur && t._initted || t._start < e._time && (t._dur || !t.add)) && (s = Zs(e.rawTime(), t), (!t._dur ||
|
|
3213
|
+
if ((t._time || !t._dur && t._initted || t._start < e._time && (t._dur || !t.add)) && (s = Zs(e.rawTime(), t), (!t._dur || Es(0, t.totalDuration(), s) - t._tTime > ke) && t.render(s, !0)), Kt(e, t)._dp && e._initted && e._time >= e._dur && e._ts) {
|
|
3214
3214
|
if (e._dur < e.duration())
|
|
3215
3215
|
for (s = e; s._dp; )
|
|
3216
3216
|
s.rawTime() >= 0 && s.totalTime(s._tTime), s = s._dp;
|
|
3217
3217
|
e._zTime = -1e-8;
|
|
3218
3218
|
}
|
|
3219
3219
|
}, ot = function(e, t, s, n) {
|
|
3220
|
-
return t.parent && Mt(t), t._start = we((yt(s) ? s : s || e !== he ? Ge(e, s, t) : e._time) + t._delay), t._end = we(t._start + (t.totalDuration() / Math.abs(t.timeScale()) || 0)),
|
|
3220
|
+
return t.parent && Mt(t), t._start = we((yt(s) ? s : s || e !== he ? Ge(e, s, t) : e._time) + t._delay), t._end = we(t._start + (t.totalDuration() / Math.abs(t.timeScale()) || 0)), Yi(e, t, "_first", "_last", e._sort ? "_start" : 0), $n(t) || (e._recent = t), n || Qi(e, t), e._ts < 0 && rn(e, e._tTime), e;
|
|
3221
3221
|
}, Ji = function(e, t) {
|
|
3222
3222
|
return (We.ScrollTrigger || rr("scrollTrigger", t)) && We.ScrollTrigger.create(t, e);
|
|
3223
3223
|
}, eo = function(e, t, s, n, i) {
|
|
@@ -3233,7 +3233,7 @@ var Ve = {
|
|
|
3233
3233
|
return t === "isFromStart" || t === "isStart";
|
|
3234
3234
|
}, xl = function(e, t, s, n) {
|
|
3235
3235
|
var i = e.ratio, o = t < 0 || !t && (!e._start && _l(e) && !(!e._initted && $n(e)) || (e._ts < 0 || e._dp._ts < 0) && !$n(e)) ? 0 : 1, a = e._rDelay, l = 0, c, u, p;
|
|
3236
|
-
if (a && e._repeat && (l =
|
|
3236
|
+
if (a && e._repeat && (l = Es(0, e._tDur, t), u = ns(l, a), e._yoyo && u & 1 && (o = 1 - o), u !== ns(e._tTime, a) && (i = 1 - o, e.vars.repeatRefresh && e._initted && e.invalidate())), o !== i || ve || n || e._zTime === ke || !t && e._zTime) {
|
|
3237
3237
|
if (!e._initted && eo(e, t, n, s, l))
|
|
3238
3238
|
return;
|
|
3239
3239
|
for (p = e._zTime, e._zTime = t || (s ? ke : 0), s || (s = t && !p), e.ratio = o, e._from && (o = 1 - o), e._time = 0, e._tTime = l, c = e._pt; c; )
|
|
@@ -3276,13 +3276,13 @@ var Ve = {
|
|
|
3276
3276
|
return new me(t[0], o, t[i + 1]);
|
|
3277
3277
|
}, At = function(e, t) {
|
|
3278
3278
|
return e || e === 0 ? t(e) : t;
|
|
3279
|
-
},
|
|
3279
|
+
}, Es = function(e, t, s) {
|
|
3280
3280
|
return s < e ? e : s > t ? t : s;
|
|
3281
3281
|
}, xe = function(e, t) {
|
|
3282
3282
|
return !ye(e) || !(t = pl.exec(e)) ? "" : t[1];
|
|
3283
3283
|
}, Sl = function(e, t, s) {
|
|
3284
3284
|
return At(s, function(n) {
|
|
3285
|
-
return
|
|
3285
|
+
return Es(e, t, n);
|
|
3286
3286
|
});
|
|
3287
3287
|
}, Kn = [].slice, to = function(e, t) {
|
|
3288
3288
|
return e && ut(e) && "length" in e && (!t && !e.length || e.length - 1 in e && ut(e[0])) && !e.nodeType && e !== it;
|
|
@@ -3382,7 +3382,7 @@ var Ve = {
|
|
|
3382
3382
|
return At(i, function(l) {
|
|
3383
3383
|
return s + ((l - e) / o * a || 0);
|
|
3384
3384
|
});
|
|
3385
|
-
},
|
|
3385
|
+
}, Dl = function r(e, t, s, n) {
|
|
3386
3386
|
var i = isNaN(e + t) ? 0 : function(h) {
|
|
3387
3387
|
return (1 - h) * e + h * t;
|
|
3388
3388
|
};
|
|
@@ -3423,7 +3423,7 @@ var Ve = {
|
|
|
3423
3423
|
return l = n[t + "Params"], c = n.callbackScope || e, s && Rt.length && qs(), a && (le = a), u = l ? i.apply(c, l) : i.call(c), le = o, u;
|
|
3424
3424
|
}, bs = function(e) {
|
|
3425
3425
|
return Mt(e), e.scrollTrigger && e.scrollTrigger.kill(!!ve), e.progress() < 1 && Ue(e, "onInterrupt"), e;
|
|
3426
|
-
},
|
|
3426
|
+
}, Xt, lo = [], co = function(e) {
|
|
3427
3427
|
if (e)
|
|
3428
3428
|
if (e = !e.name && e.default || e, sr() || e.headless) {
|
|
3429
3429
|
var t = e.name, s = ge(e), n = t && !s && e.init ? function() {
|
|
@@ -3447,7 +3447,7 @@ var Ve = {
|
|
|
3447
3447
|
return;
|
|
3448
3448
|
Ne(n, Ne(Gs(e, i), o)), ss(n.prototype, ss(i, Gs(e, o))), $e[n.prop = t] = n, e.targetTest && (Ws.push(n), ir[t] = 1), t = (t === "css" ? "CSS" : t.charAt(0).toUpperCase() + t.substr(1)) + "Plugin";
|
|
3449
3449
|
}
|
|
3450
|
-
Hi(t, n), e.register && e.register(Le, n,
|
|
3450
|
+
Hi(t, n), e.register && e.register(Le, n, De);
|
|
3451
3451
|
} else
|
|
3452
3452
|
lo.push(e);
|
|
3453
3453
|
}, ie = 255, ys = {
|
|
@@ -3515,10 +3515,10 @@ var Ve = {
|
|
|
3515
3515
|
for (e in ys)
|
|
3516
3516
|
r += "|" + e + "\\b";
|
|
3517
3517
|
return new RegExp(r + ")", "gi");
|
|
3518
|
-
}(),
|
|
3518
|
+
}(), El = /hsl[a]?\(/, po = function(e) {
|
|
3519
3519
|
var t = e.join(" "), s;
|
|
3520
3520
|
if (zt.lastIndex = 0, zt.test(t))
|
|
3521
|
-
return s =
|
|
3521
|
+
return s = El.test(t), e[1] = Zr(e[1], s), e[0] = Zr(e[0], s, ho(e[1])), !0;
|
|
3522
3522
|
}, Ms, Ke = function() {
|
|
3523
3523
|
var r = Date.now, e = 500, t = 33, s = r(), n = s, i = 1e3 / 240, o = i, a = [], l, c, u, p, g, h, f = function d(w) {
|
|
3524
3524
|
var v = r() - n, y = w === !0, b, _, m, x;
|
|
@@ -3602,12 +3602,12 @@ var Ve = {
|
|
|
3602
3602
|
return t < 0.5 ? (1 - e(1 - t * 2)) / 2 : 0.5 + e((t - 0.5) * 2) / 2;
|
|
3603
3603
|
};
|
|
3604
3604
|
}, bn = function r(e, t, s) {
|
|
3605
|
-
var n = t >= 1 ? t : 1, i = (s || (e ? 0.3 : 0.45)) / (t < 1 ? t : 1), o = i /
|
|
3605
|
+
var n = t >= 1 ? t : 1, i = (s || (e ? 0.3 : 0.45)) / (t < 1 ? t : 1), o = i / En * (Math.asin(1 / n) || 0), a = function(u) {
|
|
3606
3606
|
return u === 1 ? 1 : n * Math.pow(2, -10 * u) * hl((u - o) * i) + 1;
|
|
3607
3607
|
}, l = e === "out" ? a : e === "in" ? function(c) {
|
|
3608
3608
|
return 1 - a(1 - c);
|
|
3609
3609
|
} : mo(a);
|
|
3610
|
-
return i =
|
|
3610
|
+
return i = En / i, l.config = function(c, u) {
|
|
3611
3611
|
return r(e, c, u);
|
|
3612
3612
|
}, l;
|
|
3613
3613
|
}, yn = function r(e, t) {
|
|
@@ -3658,7 +3658,7 @@ G.SteppedEase = G.steps = We.SteppedEase = {
|
|
|
3658
3658
|
e === void 0 && (e = 1);
|
|
3659
3659
|
var s = 1 / e, n = e + (t ? 0 : 1), i = t ? 1 : 0, o = 1 - ke;
|
|
3660
3660
|
return function(a) {
|
|
3661
|
-
return ((n *
|
|
3661
|
+
return ((n * Es(0, o, a) | 0) + i) * s;
|
|
3662
3662
|
};
|
|
3663
3663
|
}
|
|
3664
3664
|
};
|
|
@@ -3704,7 +3704,7 @@ var wo = function(e, t) {
|
|
|
3704
3704
|
if (this._rts === s)
|
|
3705
3705
|
return this;
|
|
3706
3706
|
var i = this.parent && this._ts ? Zs(this.parent._time, this) : this._tTime;
|
|
3707
|
-
return this._rts = +s || 0, this._ts = this._ps || s === -1e-8 ? 0 : this._rts, this.totalTime(
|
|
3707
|
+
return this._rts = +s || 0, this._ts = this._ps || s === -1e-8 ? 0 : this._rts, this.totalTime(Es(-Math.abs(this._delay), this.totalDuration(), i), n !== !1), nn(this), yl(this);
|
|
3708
3708
|
}, e.paused = function(s) {
|
|
3709
3709
|
return arguments.length ? (this._ps !== s && (this._ps = s, s ? (this._pTime = this._tTime || Math.max(-this._delay, this.rawTime()), this._ts = this._act = 0) : (is(), this._ts = this._rts, this.totalTime(this.parent && !this.parent.smoothChildTiming ? this.rawTime() : this._tTime || this._pTime, this.progress() === 1 && Math.abs(this._zTime) !== ke && (this._tTime -= ke)))), this) : this._ps;
|
|
3710
3710
|
}, e.startTime = function(s) {
|
|
@@ -3762,7 +3762,7 @@ var wo = function(e, t) {
|
|
|
3762
3762
|
}, e.then = function(s) {
|
|
3763
3763
|
var n = this;
|
|
3764
3764
|
return new Promise(function(i) {
|
|
3765
|
-
var o = ge(s) ? s :
|
|
3765
|
+
var o = ge(s) ? s : Xi, a = function() {
|
|
3766
3766
|
var c = n.then;
|
|
3767
3767
|
n.then = null, ge(o) && (o = o(n)) && (o.then || o === n) && (n.then = c), i(o), n.then = c;
|
|
3768
3768
|
};
|
|
@@ -3988,7 +3988,7 @@ Ne(Re.prototype, {
|
|
|
3988
3988
|
_forcing: 0
|
|
3989
3989
|
});
|
|
3990
3990
|
var Kl = function(e, t, s, n, i, o, a) {
|
|
3991
|
-
var l = new
|
|
3991
|
+
var l = new De(this._pt, e, t, 0, 1, ko, null, i), c = 0, u = 0, p, g, h, f, d, w, v, y;
|
|
3992
3992
|
for (l.b = s, l.e = n, s += "", n += "", (v = ~n.indexOf("random(")) && (n = zs(n)), o && (y = [s, n], o(y, e, t), s = y[0], n = y[1]), g = s.match(fn) || []; p = fn.exec(n); )
|
|
3993
3993
|
f = p[0], d = n.substring(c, p.index), h ? h = (h + 1) % 5 : d.substr(-5) === "rgba(" && (h = 1), f !== g[u++] && (w = parseFloat(g[u - 1]) || 0, l._pt = {
|
|
3994
3994
|
_next: l._pt,
|
|
@@ -4003,7 +4003,7 @@ var Kl = function(e, t, s, n, i, o, a) {
|
|
|
4003
4003
|
ge(n) && (n = n(i || 0, e, o));
|
|
4004
4004
|
var p = e[t], g = s !== "get" ? s : ge(p) ? c ? e[t.indexOf("set") || !ge(e["get" + t.substr(3)]) ? t : "get" + t.substr(3)](c) : e[t]() : p, h = ge(p) ? c ? Nl : _o : dr, f;
|
|
4005
4005
|
if (ye(n) && (~n.indexOf("random(") && (n = zs(n)), n.charAt(1) === "=" && (f = Qt(g, n) + (xe(g) || 0), (f || f === 0) && (n = f))), !u || g !== n || Vn)
|
|
4006
|
-
return !isNaN(g * n) && n !== "" ? (f = new
|
|
4006
|
+
return !isNaN(g * n) && n !== "" ? (f = new De(this._pt, e, t, +g || 0, n - (g || 0), typeof p == "boolean" ? jl : xo, 0, h), c && (f.fp = c), a && f.modifier(a, this, e), this._pt = f) : (!p && !(t in e) && rr(t, n), Kl.call(this, e, t, g, n, h, l || Ve.stringFilter, c));
|
|
4007
4007
|
}, Fl = function(e, t, s, n, i) {
|
|
4008
4008
|
if (ge(e) && (e = ks(e, i, t, s, n)), !ut(e) || e.style && e.nodeType || Ce(e) || Ki(e))
|
|
4009
4009
|
return ye(e) ? ks(e, i, t, s, n) : e;
|
|
@@ -4013,12 +4013,12 @@ var Kl = function(e, t, s, n, i, o, a) {
|
|
|
4013
4013
|
return o;
|
|
4014
4014
|
}, bo = function(e, t, s, n, i, o) {
|
|
4015
4015
|
var a, l, c, u;
|
|
4016
|
-
if ($e[e] && (a = new $e[e]()).init(i, a.rawVars ? t[e] : Fl(t[e], n, i, o, s), s, n, o) !== !1 && (s._pt = l = new
|
|
4016
|
+
if ($e[e] && (a = new $e[e]()).init(i, a.rawVars ? t[e] : Fl(t[e], n, i, o, s), s, n, o) !== !1 && (s._pt = l = new De(s._pt, i, e, 0, 1, a.render, a, 0, a.priority), s !== Xt))
|
|
4017
4017
|
for (c = s._ptLookup[s._targets.indexOf(i)], u = a._props.length; u--; )
|
|
4018
4018
|
c[a._props[u]] = l;
|
|
4019
4019
|
return a;
|
|
4020
4020
|
}, Ct, Vn, ur = function r(e, t, s) {
|
|
4021
|
-
var n = e.vars, i = n.ease, o = n.startAt, a = n.immediateRender, l = n.lazy, c = n.onUpdate, u = n.runBackwards, p = n.yoyoEase, g = n.keyframes, h = n.autoRevert, f = e._dur, d = e._startAt, w = e._targets, v = e.parent, y = v && v.data === "nested" ? v.vars.targets : w, b = e._overwrite === "auto" && !er, _ = e.timeline, m, x, S, k, T, O, j, q,
|
|
4021
|
+
var n = e.vars, i = n.ease, o = n.startAt, a = n.immediateRender, l = n.lazy, c = n.onUpdate, u = n.runBackwards, p = n.yoyoEase, g = n.keyframes, h = n.autoRevert, f = e._dur, d = e._startAt, w = e._targets, v = e.parent, y = v && v.data === "nested" ? v.vars.targets : w, b = e._overwrite === "auto" && !er, _ = e.timeline, m, x, S, k, T, O, j, q, X, ce, D, Z, ee;
|
|
4022
4022
|
if (_ && (!g || !i) && (i = "none"), e._ease = Ft(i, ts.ease), e._yEase = p ? go(Ft(p === !0 ? i : p, ts.ease)) : 0, p && e._yoyo && !e._repeat && (p = e._yEase, e._yEase = e._ease, e._ease = p), e._from = !_ && !!n.runBackwards, !_ || g && !n.stagger) {
|
|
4023
4023
|
if (q = w[0] ? $t(w[0]).harness : 0, Z = q && n[q.prop], m = Gs(n, ir), d && (d._zTime < 0 && d.progress(1), t < 0 && u && a && !h ? d.render(-1, !0) : d.revert(u && f ? Vs : gl), d._lazy = 0), o) {
|
|
4024
4024
|
if (Mt(e._startAt = me.set(w, Ne({
|
|
@@ -4054,11 +4054,11 @@ var Kl = function(e, t, s, n, i, o, a) {
|
|
|
4054
4054
|
return;
|
|
4055
4055
|
}
|
|
4056
4056
|
for (e._pt = e._ptCache = 0, l = f && Pe(l) || l && !f, x = 0; x < w.length; x++) {
|
|
4057
|
-
if (T = w[x], j = T._gsap || ar(w)[x]._gsap, e._ptLookup[x] = ce = {}, In[j.id] && Rt.length && qs(),
|
|
4057
|
+
if (T = w[x], j = T._gsap || ar(w)[x]._gsap, e._ptLookup[x] = ce = {}, In[j.id] && Rt.length && qs(), D = y === w ? x : y.indexOf(T), q && (X = new q()).init(T, Z || m, e, D, y) !== !1 && (e._pt = k = new De(e._pt, T, X.name, 0, 1, X.render, X, 0, X.priority), X._props.forEach(function(L) {
|
|
4058
4058
|
ce[L] = k;
|
|
4059
|
-
}),
|
|
4059
|
+
}), X.priority && (O = 1)), !q || Z)
|
|
4060
4060
|
for (S in m)
|
|
4061
|
-
$e[S] && (
|
|
4061
|
+
$e[S] && (X = bo(S, m, e, D, T, y)) ? X.priority && (O = 1) : ce[S] = k = cr.call(e, T, S, "get", m[S], D, y, 0, n.stringFilter);
|
|
4062
4062
|
e._op && e._op[x] && e.kill(T, e._op[x]), b && e._pt && (Ct = e, he.killTweensOf(T, ce, e.globalTime(t)), ee = !e.parent, Ct = 0), e._pt && l && (In[j.id] = 1);
|
|
4063
4063
|
}
|
|
4064
4064
|
O && Co(e), e._onInit && e._onInit(e);
|
|
@@ -4132,7 +4132,7 @@ var me = /* @__PURE__ */ function(r) {
|
|
|
4132
4132
|
_s(Ne(_.vars.defaults, {
|
|
4133
4133
|
ease: "none"
|
|
4134
4134
|
})), _._ease = Ft(f.ease || n.ease || "none");
|
|
4135
|
-
var q = 0,
|
|
4135
|
+
var q = 0, X, ce, D;
|
|
4136
4136
|
if (Ce(f))
|
|
4137
4137
|
f.forEach(function(Z) {
|
|
4138
4138
|
return _.to(b, Z, ">");
|
|
@@ -4142,13 +4142,13 @@ var me = /* @__PURE__ */ function(r) {
|
|
|
4142
4142
|
for (k in f)
|
|
4143
4143
|
k === "ease" || k === "easeEach" || Wl(k, f[k], x, f.easeEach);
|
|
4144
4144
|
for (k in x)
|
|
4145
|
-
for (
|
|
4145
|
+
for (X = x[k].sort(function(Z, ee) {
|
|
4146
4146
|
return Z.t - ee.t;
|
|
4147
|
-
}), q = 0, m = 0; m <
|
|
4148
|
-
ce =
|
|
4147
|
+
}), q = 0, m = 0; m < X.length; m++)
|
|
4148
|
+
ce = X[m], D = {
|
|
4149
4149
|
ease: ce.e,
|
|
4150
|
-
duration: (ce.t - (m ?
|
|
4151
|
-
},
|
|
4150
|
+
duration: (ce.t - (m ? X[m - 1].t : 0)) / 100 * c
|
|
4151
|
+
}, D[k] = ce.v, _.to(b, D, q), q += D.duration;
|
|
4152
4152
|
_.duration() < c && _.to({}, {
|
|
4153
4153
|
duration: c - _.duration()
|
|
4154
4154
|
});
|
|
@@ -4194,7 +4194,7 @@ var me = /* @__PURE__ */ function(r) {
|
|
|
4194
4194
|
}, t.resetTo = function(n, i, o, a, l) {
|
|
4195
4195
|
Ms || Ke.wake(), this._ts || this.play();
|
|
4196
4196
|
var c = Math.min(this._dur, (this._dp._time - this._start) * this._ts), u;
|
|
4197
|
-
return this._initted || ur(this, c), u = this._ease(c / this._dur), Ul(this, n, i, o, a, u, c, l) ? this.resetTo(n, i, o, a, 1) : (rn(this, 0), this.parent ||
|
|
4197
|
+
return this._initted || ur(this, c), u = this._ease(c / this._dur), Ul(this, n, i, o, a, u, c, l) ? this.resetTo(n, i, o, a, 1) : (rn(this, 0), this.parent || Yi(this._dp, this, "_first", "_last", this._dp._sort ? "_start" : 0), this.render(0));
|
|
4198
4198
|
}, t.kill = function(n, i) {
|
|
4199
4199
|
if (i === void 0 && (i = "all"), !n && (!i || i === "all"))
|
|
4200
4200
|
return this._lazy = this._pt = 0, this.parent ? bs(this) : this.scrollTrigger && this.scrollTrigger.kill(!!ve), this;
|
|
@@ -4296,7 +4296,7 @@ var dr = function(e, t, s) {
|
|
|
4296
4296
|
(t._prev = n ? n._prev : o) ? t._prev._next = t : i = t, (t._next = n) ? n._prev = t : o = t, t = s;
|
|
4297
4297
|
}
|
|
4298
4298
|
e._pt = i;
|
|
4299
|
-
},
|
|
4299
|
+
}, De = /* @__PURE__ */ function() {
|
|
4300
4300
|
function r(t, s, n, i, o, a, l, c, u) {
|
|
4301
4301
|
this.t = s, this.s = i, this.c = o, this.p = n, this.r = a || xo, this.d = l || this, this.set = c || dr, this.pr = u || 0, this._next = t, t && (t._prev = this);
|
|
4302
4302
|
}
|
|
@@ -4318,13 +4318,13 @@ he = new Re({
|
|
|
4318
4318
|
smoothChildTiming: !0
|
|
4319
4319
|
});
|
|
4320
4320
|
Ve.stringFilter = po;
|
|
4321
|
-
var Ut = [], Ns = {},
|
|
4322
|
-
return (Ns[e] ||
|
|
4321
|
+
var Ut = [], Ns = {}, Xl = [], Xr = 0, Yl = 0, vn = function(e) {
|
|
4322
|
+
return (Ns[e] || Xl).map(function(t) {
|
|
4323
4323
|
return t();
|
|
4324
4324
|
});
|
|
4325
4325
|
}, Wn = function() {
|
|
4326
4326
|
var e = Date.now(), t = [];
|
|
4327
|
-
e -
|
|
4327
|
+
e - Xr > 2 && (vn("matchMediaInit"), Ut.forEach(function(s) {
|
|
4328
4328
|
var n = s.queries, i = s.conditions, o, a, l, c;
|
|
4329
4329
|
for (a in n)
|
|
4330
4330
|
o = it.matchMedia(n[a]).matches, o && (l = 1), o !== i[a] && (i[a] = o, c = 1);
|
|
@@ -4333,10 +4333,10 @@ var Ut = [], Ns = {}, Yl = [], Yr = 0, Xl = 0, vn = function(e) {
|
|
|
4333
4333
|
return s.onMatch(s, function(n) {
|
|
4334
4334
|
return s.add(null, n);
|
|
4335
4335
|
});
|
|
4336
|
-
}),
|
|
4336
|
+
}), Xr = e, vn("matchMedia"));
|
|
4337
4337
|
}, So = /* @__PURE__ */ function() {
|
|
4338
4338
|
function r(t, s) {
|
|
4339
|
-
this.selector = s && Fn(s), this.data = [], this._r = [], this.isReverted = !1, this.id =
|
|
4339
|
+
this.selector = s && Fn(s), this.data = [], this._r = [], this.isReverted = !1, this.id = Yl++, t && this.add(t);
|
|
4340
4340
|
}
|
|
4341
4341
|
var e = r.prototype;
|
|
4342
4342
|
return e.add = function(s, n, i) {
|
|
@@ -4410,7 +4410,7 @@ var Ut = [], Ns = {}, Yl = [], Yr = 0, Xl = 0, vn = function(e) {
|
|
|
4410
4410
|
return n.kill(s, !0);
|
|
4411
4411
|
});
|
|
4412
4412
|
}, r;
|
|
4413
|
-
}(),
|
|
4413
|
+
}(), Xs = {
|
|
4414
4414
|
registerPlugin: function() {
|
|
4415
4415
|
for (var e = arguments.length, t = new Array(e), s = 0; s < e; s++)
|
|
4416
4416
|
t[s] = arguments[s];
|
|
@@ -4426,7 +4426,7 @@ var Ut = [], Ns = {}, Yl = [], Yr = 0, Xl = 0, vn = function(e) {
|
|
|
4426
4426
|
},
|
|
4427
4427
|
getProperty: function(e, t, s, n) {
|
|
4428
4428
|
ye(e) && (e = Ze(e)[0]);
|
|
4429
|
-
var i = $t(e || {}).get, o = s ?
|
|
4429
|
+
var i = $t(e || {}).get, o = s ? Xi : Zi;
|
|
4430
4430
|
return s === "native" && (s = ""), e && (t ? o(($e[t] && $e[t].get || i)(e, t, s, n)) : function(a, l, c) {
|
|
4431
4431
|
return o(($e[a] && $e[a].get || i)(e, a, l, c));
|
|
4432
4432
|
});
|
|
@@ -4444,7 +4444,7 @@ var Ut = [], Ns = {}, Yl = [], Yr = 0, Xl = 0, vn = function(e) {
|
|
|
4444
4444
|
e = e[0] || {};
|
|
4445
4445
|
var o = $e[t], a = $t(e), l = a.harness && (a.harness.aliases || {})[t] || t, c = o ? function(u) {
|
|
4446
4446
|
var p = new o();
|
|
4447
|
-
|
|
4447
|
+
Xt._pt = 0, p.init(e, s ? u + s : u, Xt, 0, [e]), p.render(1, p), Xt._pt && pr(1, Xt);
|
|
4448
4448
|
} : a.set(e, l);
|
|
4449
4449
|
return o ? c : function(u) {
|
|
4450
4450
|
return c(e, l, s ? u + s : u, a, 1);
|
|
@@ -4528,7 +4528,7 @@ var Ut = [], Ns = {}, Yl = [], Yr = 0, Xl = 0, vn = function(e) {
|
|
|
4528
4528
|
mapRange: ao,
|
|
4529
4529
|
pipe: Rl,
|
|
4530
4530
|
unitize: zl,
|
|
4531
|
-
interpolate:
|
|
4531
|
+
interpolate: Dl,
|
|
4532
4532
|
shuffle: so
|
|
4533
4533
|
},
|
|
4534
4534
|
install: Ni,
|
|
@@ -4538,7 +4538,7 @@ var Ut = [], Ns = {}, Yl = [], Yr = 0, Xl = 0, vn = function(e) {
|
|
|
4538
4538
|
plugins: $e,
|
|
4539
4539
|
globalTimeline: he,
|
|
4540
4540
|
core: {
|
|
4541
|
-
PropTween:
|
|
4541
|
+
PropTween: De,
|
|
4542
4542
|
globals: Hi,
|
|
4543
4543
|
Tween: me,
|
|
4544
4544
|
Timeline: Re,
|
|
@@ -4557,10 +4557,10 @@ var Ut = [], Ns = {}, Yl = [], Yr = 0, Xl = 0, vn = function(e) {
|
|
|
4557
4557
|
}
|
|
4558
4558
|
};
|
|
4559
4559
|
Ae("to,from,fromTo,delayedCall,set,killTweensOf", function(r) {
|
|
4560
|
-
return
|
|
4560
|
+
return Xs[r] = me[r];
|
|
4561
4561
|
});
|
|
4562
4562
|
Ke.add(Re.updateRoot);
|
|
4563
|
-
|
|
4563
|
+
Xt = Xs.to({}, {
|
|
4564
4564
|
duration: 0
|
|
4565
4565
|
});
|
|
4566
4566
|
var Jl = function(e, t) {
|
|
@@ -4593,7 +4593,7 @@ var Jl = function(e, t) {
|
|
|
4593
4593
|
};
|
|
4594
4594
|
}
|
|
4595
4595
|
};
|
|
4596
|
-
}, Le =
|
|
4596
|
+
}, Le = Xs.registerPlugin({
|
|
4597
4597
|
name: "attr",
|
|
4598
4598
|
init: function(e, t, s, n, i) {
|
|
4599
4599
|
var o, a, l;
|
|
@@ -4612,7 +4612,7 @@ var Jl = function(e, t) {
|
|
|
4612
4612
|
for (var s = t.length; s--; )
|
|
4613
4613
|
this.add(e, s, e[s] || 0, t[s], 0, 0, 0, 0, 0, 1);
|
|
4614
4614
|
}
|
|
4615
|
-
}, _n("roundProps", Un), _n("modifiers"), _n("snap", ro)) ||
|
|
4615
|
+
}, _n("roundProps", Un), _n("modifiers"), _n("snap", ro)) || Xs;
|
|
4616
4616
|
me.version = Re.version = Le.version = "3.13.0";
|
|
4617
4617
|
Wi = 1;
|
|
4618
4618
|
sr() && is();
|
|
@@ -4642,7 +4642,7 @@ G.Circ;
|
|
|
4642
4642
|
* Subject to the terms at https://gsap.com/standard-license
|
|
4643
4643
|
* @author: Jack Doyle, jack@greensock.com
|
|
4644
4644
|
*/
|
|
4645
|
-
var
|
|
4645
|
+
var Yr, St, Jt, gr, It, Qr, fr, tc = function() {
|
|
4646
4646
|
return typeof window < "u";
|
|
4647
4647
|
}, vt = {}, Bt = 180 / Math.PI, es = Math.PI / 180, qt = Math.atan2, Jr = 1e8, mr = /([A-Z])/g, sc = /(left|right|width|margin|padding|x)/i, nc = /[\s,\(]\S/, at = {
|
|
4648
4648
|
autoAlpha: "opacity,visibility",
|
|
@@ -4675,20 +4675,20 @@ var Xr, St, Jt, gr, It, Qr, fr, tc = function() {
|
|
|
4675
4675
|
}, hc = function(e, t, s, n, i) {
|
|
4676
4676
|
var o = e._gsap;
|
|
4677
4677
|
o[t] = s, o.renderTransform(i, o);
|
|
4678
|
-
}, pe = "transform",
|
|
4678
|
+
}, pe = "transform", Ee = pe + "Origin", pc = function r(e, t) {
|
|
4679
4679
|
var s = this, n = this.target, i = n.style, o = n._gsap;
|
|
4680
4680
|
if (e in vt && i) {
|
|
4681
4681
|
if (this.tfm = this.tfm || {}, e !== "transform")
|
|
4682
4682
|
e = at[e] || e, ~e.indexOf(",") ? e.split(",").forEach(function(a) {
|
|
4683
4683
|
return s.tfm[a] = wt(n, a);
|
|
4684
|
-
}) : this.tfm[e] = o.x ? o[e] : wt(n, e), e ===
|
|
4684
|
+
}) : this.tfm[e] = o.x ? o[e] : wt(n, e), e === Ee && (this.tfm.zOrigin = o.zOrigin);
|
|
4685
4685
|
else
|
|
4686
4686
|
return at.transform.split(",").forEach(function(a) {
|
|
4687
4687
|
return r.call(s, a, t);
|
|
4688
4688
|
});
|
|
4689
4689
|
if (this.props.indexOf(pe) >= 0)
|
|
4690
4690
|
return;
|
|
4691
|
-
o.svg && (this.svgo = n.getAttribute("data-svg-origin"), this.props.push(
|
|
4691
|
+
o.svg && (this.svgo = n.getAttribute("data-svg-origin"), this.props.push(Ee, t, "")), e = pe;
|
|
4692
4692
|
}
|
|
4693
4693
|
(i || t) && this.props.push(e, t, i[e]);
|
|
4694
4694
|
}, zo = function(e) {
|
|
@@ -4700,7 +4700,7 @@ var Xr, St, Jt, gr, It, Qr, fr, tc = function() {
|
|
|
4700
4700
|
if (this.tfm) {
|
|
4701
4701
|
for (o in this.tfm)
|
|
4702
4702
|
n[o] = this.tfm[o];
|
|
4703
|
-
n.svg && (n.renderTransform(), t.setAttribute("data-svg-origin", this.svgo || "")), i = fr(), (!i || !i.isStart) && !s[pe] && (zo(s), n.zOrigin && s[
|
|
4703
|
+
n.svg && (n.renderTransform(), t.setAttribute("data-svg-origin", this.svgo || "")), i = fr(), (!i || !i.isStart) && !s[pe] && (zo(s), n.zOrigin && s[Ee] && (s[Ee] += " " + n.zOrigin + "px", n.zOrigin = 0, n.renderTransform()), n.uncache = 1);
|
|
4704
4704
|
}
|
|
4705
4705
|
}, Mo = function(e, t) {
|
|
4706
4706
|
var s = {
|
|
@@ -4715,7 +4715,7 @@ var Xr, St, Jt, gr, It, Qr, fr, tc = function() {
|
|
|
4715
4715
|
}, Po, Hn = function(e, t) {
|
|
4716
4716
|
var s = St.createElementNS ? St.createElementNS((t || "http://www.w3.org/1999/xhtml").replace(/^https/, "http"), e) : St.createElement(e);
|
|
4717
4717
|
return s && s.style ? s : St.createElement(e);
|
|
4718
|
-
},
|
|
4718
|
+
}, Xe = function r(e, t, s) {
|
|
4719
4719
|
var n = getComputedStyle(e);
|
|
4720
4720
|
return n[t] || n.getPropertyValue(t.replace(mr, "-$1").toLowerCase()) || n.getPropertyValue(t) || !s && r(e, os(t) || t, 1) || "";
|
|
4721
4721
|
}, ei = "O,Moz,ms,Ms,Webkit".split(","), os = function(e, t, s) {
|
|
@@ -4726,9 +4726,9 @@ var Xr, St, Jt, gr, It, Qr, fr, tc = function() {
|
|
|
4726
4726
|
;
|
|
4727
4727
|
return o < 0 ? null : (o === 3 ? "ms" : o >= 0 ? ei[o] : "") + e;
|
|
4728
4728
|
}, jn = function() {
|
|
4729
|
-
tc() && window.document && (
|
|
4729
|
+
tc() && window.document && (Yr = window, St = Yr.document, Jt = St.documentElement, It = Hn("div") || {
|
|
4730
4730
|
style: {}
|
|
4731
|
-
}, Hn("div"), pe = os(pe),
|
|
4731
|
+
}, Hn("div"), pe = os(pe), Ee = pe + "Origin", It.style.cssText = "border-width:0;line-height:0;position:absolute;padding:0", Po = !!os("perspective"), fr = Le.core.reverting, gr = 1);
|
|
4732
4732
|
}, ti = function(e) {
|
|
4733
4733
|
var t = e.ownerSVGElement, s = Hn("svg", t && t.getAttribute("xmlns") || "http://www.w3.org/2000/svg"), n = e.cloneNode(!0), i;
|
|
4734
4734
|
n.style.display = "block", s.appendChild(n), Jt.appendChild(s);
|
|
@@ -4754,15 +4754,15 @@ var Xr, St, Jt, gr, It, Qr, fr, tc = function() {
|
|
|
4754
4754
|
width: 0,
|
|
4755
4755
|
height: 0
|
|
4756
4756
|
} : t;
|
|
4757
|
-
},
|
|
4757
|
+
}, Do = function(e) {
|
|
4758
4758
|
return !!(e.getCTM && (!e.parentNode || e.ownerSVGElement) && Ao(e));
|
|
4759
4759
|
}, Vt = function(e, t) {
|
|
4760
4760
|
if (t) {
|
|
4761
4761
|
var s = e.style, n;
|
|
4762
|
-
t in vt && t !==
|
|
4762
|
+
t in vt && t !== Ee && (t = pe), s.removeProperty ? (n = t.substr(0, 2), (n === "ms" || t.substr(0, 6) === "webkit") && (t = "-" + t), s.removeProperty(n === "--" ? t : t.replace(mr, "-$1").toLowerCase())) : s.removeAttribute(t);
|
|
4763
4763
|
}
|
|
4764
4764
|
}, Tt = function(e, t, s, n, i, o) {
|
|
4765
|
-
var a = new
|
|
4765
|
+
var a = new De(e._pt, t, s, 0, 1, o ? Ro : To);
|
|
4766
4766
|
return e._pt = a, a.b = n, a.e = i, e._props.push(s), a;
|
|
4767
4767
|
}, ni = {
|
|
4768
4768
|
deg: 1,
|
|
@@ -4775,7 +4775,7 @@ var Xr, St, Jt, gr, It, Qr, fr, tc = function() {
|
|
|
4775
4775
|
var i = parseFloat(s) || 0, o = (s + "").trim().substr((i + "").length) || "px", a = It.style, l = sc.test(t), c = e.tagName.toLowerCase() === "svg", u = (c ? "client" : "offset") + (l ? "Width" : "Height"), p = 100, g = n === "px", h = n === "%", f, d, w, v;
|
|
4776
4776
|
if (n === o || !i || ni[n] || ni[o])
|
|
4777
4777
|
return i;
|
|
4778
|
-
if (o !== "px" && !g && (i = r(e, t, s, "px")), v = e.getCTM &&
|
|
4778
|
+
if (o !== "px" && !g && (i = r(e, t, s, "px")), v = e.getCTM && Do(e), (h || o === "%") && (vt[t] || ~t.indexOf("adius")))
|
|
4779
4779
|
return f = v ? e.getBBox()[l ? "width" : "height"] : e[u], fe(h ? i / f * p : i / 100 * f);
|
|
4780
4780
|
if (a[l ? "width" : "height"] = p + (g ? o : n), d = n !== "rem" && ~t.indexOf("adius") || n === "em" && e.appendChild && !c ? e : e.parentNode, v && (d = (e.ownerSVGElement || {}).parentNode), (!d || d === St || !d.appendChild) && (d = St.body), w = d._gsap, w && h && w.width && l && w.time === Ke.time && !w.uncache)
|
|
4781
4781
|
return fe(i / w.width * p);
|
|
@@ -4783,18 +4783,18 @@ var Xr, St, Jt, gr, It, Qr, fr, tc = function() {
|
|
|
4783
4783
|
var y = e.style[t];
|
|
4784
4784
|
e.style[t] = p + n, f = e[u], y ? e.style[t] = y : Vt(e, t);
|
|
4785
4785
|
} else
|
|
4786
|
-
(h || o === "%") && !fc[
|
|
4786
|
+
(h || o === "%") && !fc[Xe(d, "display")] && (a.position = Xe(e, "position")), d === e && (a.position = "static"), d.appendChild(It), f = It[u], d.removeChild(It), a.position = "absolute";
|
|
4787
4787
|
return l && h && (w = $t(d), w.time = Ke.time, w.width = d[u]), fe(g ? f * i / p : f && i ? p / f * i : 0);
|
|
4788
4788
|
}, wt = function(e, t, s, n) {
|
|
4789
4789
|
var i;
|
|
4790
|
-
return gr || jn(), t in at && t !== "transform" && (t = at[t], ~t.indexOf(",") && (t = t.split(",")[0])), vt[t] && t !== "transform" ? (i =
|
|
4790
|
+
return gr || jn(), t in at && t !== "transform" && (t = at[t], ~t.indexOf(",") && (t = t.split(",")[0])), vt[t] && t !== "transform" ? (i = Ds(e, n), i = t !== "transformOrigin" ? i[t] : i.svg ? i.origin : Qs(Xe(e, Ee)) + " " + i.zOrigin + "px") : (i = e.style[t], (!i || i === "auto" || n || ~(i + "").indexOf("calc(")) && (i = Ys[t] && Ys[t](e, t, s) || Xe(e, t) || qi(e, t) || (t === "opacity" ? 1 : 0))), s && !~(i + "").trim().indexOf(" ") ? Pt(e, t, i, s) + s : i;
|
|
4791
4791
|
}, mc = function(e, t, s, n) {
|
|
4792
4792
|
if (!s || s === "none") {
|
|
4793
|
-
var i = os(t, e, 1), o = i &&
|
|
4794
|
-
o && o !== s ? (t = i, s = o) : t === "borderColor" && (s =
|
|
4793
|
+
var i = os(t, e, 1), o = i && Xe(e, i, 1);
|
|
4794
|
+
o && o !== s ? (t = i, s = o) : t === "borderColor" && (s = Xe(e, "borderTopColor"));
|
|
4795
4795
|
}
|
|
4796
|
-
var a = new
|
|
4797
|
-
if (a.b = s, a.e = n, s += "", n += "", n.substring(0, 6) === "var(--" && (n =
|
|
4796
|
+
var a = new De(this._pt, e.style, t, 0, 1, ko), l = 0, c = 0, u, p, g, h, f, d, w, v, y, b, _, m;
|
|
4797
|
+
if (a.b = s, a.e = n, s += "", n += "", n.substring(0, 6) === "var(--" && (n = Xe(e, n.substring(4, n.indexOf(")")))), n === "auto" && (d = e.style[t], e.style[t] = n, n = Xe(e, t) || n, d ? e.style[t] = d : Vt(e, t)), u = [s, n], po(u), s = u[0], n = u[1], g = s.match(Zt) || [], m = n.match(Zt) || [], m.length) {
|
|
4798
4798
|
for (; p = Zt.exec(n); )
|
|
4799
4799
|
w = p[0], y = n.substring(l, p.index), f ? f = (f + 1) % 5 : (y.substr(-5) === "rgba(" || y.substr(-5) === "hsla(") && (f = 1), w !== (d = g[c++] || "") && (h = parseFloat(d) || 0, _ = d.substr((h + "").length), w.charAt(1) === "=" && (w = Qt(h, w) + _), v = parseFloat(w), b = w.substr((v + "").length), l = Zt.lastIndex - b.length, b || (b = b || Ve.units[t] || _, l === n.length && (n += b, a.e += b)), _ !== b && (h = Pt(e, t, d, b) || 0), a._pt = {
|
|
4800
4800
|
_next: a._pt,
|
|
@@ -4824,13 +4824,13 @@ var Xr, St, Jt, gr, It, Qr, fr, tc = function() {
|
|
|
4824
4824
|
n.cssText = "", l = 1;
|
|
4825
4825
|
else
|
|
4826
4826
|
for (i = i.split(","), c = i.length; --c > -1; )
|
|
4827
|
-
a = i[c], vt[a] && (l = 1, a = a === "transformOrigin" ?
|
|
4828
|
-
l && (Vt(s, pe), o && (o.svg && s.removeAttribute("transform"), n.scale = n.rotate = n.translate = "none",
|
|
4827
|
+
a = i[c], vt[a] && (l = 1, a = a === "transformOrigin" ? Ee : pe), Vt(s, a);
|
|
4828
|
+
l && (Vt(s, pe), o && (o.svg && s.removeAttribute("transform"), n.scale = n.rotate = n.translate = "none", Ds(s, 1), o.uncache = 1, zo(n)));
|
|
4829
4829
|
}
|
|
4830
|
-
},
|
|
4830
|
+
}, Ys = {
|
|
4831
4831
|
clearProps: function(e, t, s, n, i) {
|
|
4832
4832
|
if (i.data !== "isFromStart") {
|
|
4833
|
-
var o = e._pt = new
|
|
4833
|
+
var o = e._pt = new De(e._pt, t, s, 0, 0, bc);
|
|
4834
4834
|
return o.u = n, o.pr = -10, o.tween = i, e._props.push(s), 1;
|
|
4835
4835
|
}
|
|
4836
4836
|
}
|
|
@@ -4897,23 +4897,23 @@ var Xr, St, Jt, gr, It, Qr, fr, tc = function() {
|
|
|
4897
4897
|
return 1;
|
|
4898
4898
|
}
|
|
4899
4899
|
*/
|
|
4900
|
-
}, As = [1, 0, 0, 1, 0, 0],
|
|
4900
|
+
}, As = [1, 0, 0, 1, 0, 0], Eo = {}, Lo = function(e) {
|
|
4901
4901
|
return e === "matrix(1, 0, 0, 1, 0, 0)" || e === "none" || !e;
|
|
4902
4902
|
}, ii = function(e) {
|
|
4903
|
-
var t =
|
|
4903
|
+
var t = Xe(e, pe);
|
|
4904
4904
|
return Lo(t) ? As : t.substr(7).match(Fi).map(fe);
|
|
4905
4905
|
}, wr = function(e, t) {
|
|
4906
4906
|
var s = e._gsap || $t(e), n = e.style, i = ii(e), o, a, l, c;
|
|
4907
4907
|
return s.svg && e.getAttribute("transform") ? (l = e.transform.baseVal.consolidate().matrix, i = [l.a, l.b, l.c, l.d, l.e, l.f], i.join(",") === "1,0,0,1,0,0" ? As : i) : (i === As && !e.offsetParent && e !== Jt && !s.svg && (l = n.display, n.display = "block", o = e.parentNode, (!o || !e.offsetParent && !e.getBoundingClientRect().width) && (c = 1, a = e.nextElementSibling, Jt.appendChild(e)), i = ii(e), l ? n.display = l : Vt(e, "display"), c && (a ? o.insertBefore(e, a) : o ? o.appendChild(e) : Jt.removeChild(e))), t && i.length > 6 ? [i[0], i[1], i[4], i[5], i[12], i[13]] : i);
|
|
4908
4908
|
}, qn = function(e, t, s, n, i, o) {
|
|
4909
4909
|
var a = e._gsap, l = i || wr(e, !0), c = a.xOrigin || 0, u = a.yOrigin || 0, p = a.xOffset || 0, g = a.yOffset || 0, h = l[0], f = l[1], d = l[2], w = l[3], v = l[4], y = l[5], b = t.split(" "), _ = parseFloat(b[0]) || 0, m = parseFloat(b[1]) || 0, x, S, k, T;
|
|
4910
|
-
s ? l !== As && (S = h * w - f * d) && (k = _ * (w / S) + m * (-d / S) + (d * y - w * v) / S, T = _ * (-f / S) + m * (h / S) - (h * y - f * v) / S, _ = k, m = T) : (x = Ao(e), _ = x.x + (~b[0].indexOf("%") ? _ / 100 * x.width : _), m = x.y + (~(b[1] || b[0]).indexOf("%") ? m / 100 * x.height : m)), n || n !== !1 && a.smooth ? (v = _ - c, y = m - u, a.xOffset = p + (v * h + y * d) - v, a.yOffset = g + (v * f + y * w) - y) : a.xOffset = a.yOffset = 0, a.xOrigin = _, a.yOrigin = m, a.smooth = !!n, a.origin = t, a.originIsAbsolute = !!s, e.style[
|
|
4911
|
-
},
|
|
4910
|
+
s ? l !== As && (S = h * w - f * d) && (k = _ * (w / S) + m * (-d / S) + (d * y - w * v) / S, T = _ * (-f / S) + m * (h / S) - (h * y - f * v) / S, _ = k, m = T) : (x = Ao(e), _ = x.x + (~b[0].indexOf("%") ? _ / 100 * x.width : _), m = x.y + (~(b[1] || b[0]).indexOf("%") ? m / 100 * x.height : m)), n || n !== !1 && a.smooth ? (v = _ - c, y = m - u, a.xOffset = p + (v * h + y * d) - v, a.yOffset = g + (v * f + y * w) - y) : a.xOffset = a.yOffset = 0, a.xOrigin = _, a.yOrigin = m, a.smooth = !!n, a.origin = t, a.originIsAbsolute = !!s, e.style[Ee] = "0px 0px", o && (Tt(o, a, "xOrigin", c, _), Tt(o, a, "yOrigin", u, m), Tt(o, a, "xOffset", p, a.xOffset), Tt(o, a, "yOffset", g, a.yOffset)), e.setAttribute("data-svg-origin", _ + " " + m);
|
|
4911
|
+
}, Ds = function(e, t) {
|
|
4912
4912
|
var s = e._gsap || new wo(e);
|
|
4913
4913
|
if ("x" in s && !t && !s.uncache)
|
|
4914
4914
|
return s;
|
|
4915
|
-
var n = e.style, i = s.scaleX < 0, o = "px", a = "deg", l = getComputedStyle(e), c =
|
|
4916
|
-
return u = p = g = d = w = v = y = b = _ = 0, h = f = 1, s.svg = !!(e.getCTM &&
|
|
4915
|
+
var n = e.style, i = s.scaleX < 0, o = "px", a = "deg", l = getComputedStyle(e), c = Xe(e, Ee) || "0", u, p, g, h, f, d, w, v, y, b, _, m, x, S, k, T, O, j, q, X, ce, D, Z, ee, L, re, st, Be, Ie, oe, Q, Me;
|
|
4916
|
+
return u = p = g = d = w = v = y = b = _ = 0, h = f = 1, s.svg = !!(e.getCTM && Do(e)), l.translate && ((l.translate !== "none" || l.scale !== "none" || l.rotate !== "none") && (n[pe] = (l.translate !== "none" ? "translate3d(" + (l.translate + " 0 0").split(" ").slice(0, 3).join(", ") + ") " : "") + (l.rotate !== "none" ? "rotate(" + l.rotate + ") " : "") + (l.scale !== "none" ? "scale(" + l.scale.split(" ").join(",") + ") " : "") + (l[pe] !== "none" ? l[pe] : "")), n.scale = n.rotate = n.translate = "none"), S = wr(e, s.svg), s.svg && (s.uncache ? (L = e.getBBox(), c = s.xOrigin - L.x + "px " + (s.yOrigin - L.y) + "px", ee = "") : ee = !t && e.getAttribute("data-svg-origin"), qn(e, ee || c, !!ee || s.originIsAbsolute, s.smooth !== !1, S)), m = s.xOrigin || 0, x = s.yOrigin || 0, S !== As && (j = S[0], q = S[1], X = S[2], ce = S[3], u = D = S[4], p = Z = S[5], S.length === 6 ? (h = Math.sqrt(j * j + q * q), f = Math.sqrt(ce * ce + X * X), d = j || q ? qt(q, j) * Bt : 0, y = X || ce ? qt(X, ce) * Bt + d : 0, y && (f *= Math.abs(Math.cos(y * es))), s.svg && (u -= m - (m * j + x * X), p -= x - (m * q + x * ce))) : (Me = S[6], oe = S[7], st = S[8], Be = S[9], Ie = S[10], Q = S[11], u = S[12], p = S[13], g = S[14], k = qt(Me, Ie), w = k * Bt, k && (T = Math.cos(-k), O = Math.sin(-k), ee = D * T + st * O, L = Z * T + Be * O, re = Me * T + Ie * O, st = D * -O + st * T, Be = Z * -O + Be * T, Ie = Me * -O + Ie * T, Q = oe * -O + Q * T, D = ee, Z = L, Me = re), k = qt(-X, Ie), v = k * Bt, k && (T = Math.cos(-k), O = Math.sin(-k), ee = j * T - st * O, L = q * T - Be * O, re = X * T - Ie * O, Q = ce * O + Q * T, j = ee, q = L, X = re), k = qt(q, j), d = k * Bt, k && (T = Math.cos(k), O = Math.sin(k), ee = j * T + q * O, L = D * T + Z * O, q = q * T - j * O, Z = Z * T - D * O, j = ee, D = L), w && Math.abs(w) + Math.abs(d) > 359.9 && (w = d = 0, v = 180 - v), h = fe(Math.sqrt(j * j + q * q + X * X)), f = fe(Math.sqrt(Z * Z + Me * Me)), k = qt(D, Z), y = Math.abs(k) > 2e-4 ? k * Bt : 0, _ = Q ? 1 / (Q < 0 ? -Q : Q) : 0), s.svg && (ee = e.getAttribute("transform"), s.forceCSS = e.setAttribute("transform", "") || !Lo(Xe(e, pe)), ee && e.setAttribute("transform", ee))), Math.abs(y) > 90 && Math.abs(y) < 270 && (i ? (h *= -1, y += d <= 0 ? 180 : -180, d += d <= 0 ? 180 : -180) : (f *= -1, y += y <= 0 ? 180 : -180)), t = t || s.uncache, s.x = u - ((s.xPercent = u && (!t && s.xPercent || (Math.round(e.offsetWidth / 2) === Math.round(-u) ? -50 : 0))) ? e.offsetWidth * s.xPercent / 100 : 0) + o, s.y = p - ((s.yPercent = p && (!t && s.yPercent || (Math.round(e.offsetHeight / 2) === Math.round(-p) ? -50 : 0))) ? e.offsetHeight * s.yPercent / 100 : 0) + o, s.z = g + o, s.scaleX = fe(h), s.scaleY = fe(f), s.rotation = fe(d) + a, s.rotationX = fe(w) + a, s.rotationY = fe(v) + a, s.skewX = y + a, s.skewY = b + a, s.transformPerspective = _ + o, (s.zOrigin = parseFloat(c.split(" ")[2]) || !t && s.zOrigin || 0) && (n[Ee] = Qs(c)), s.xOffset = s.yOffset = 0, s.force3D = Ve.force3D, s.renderTransform = s.svg ? vc : Po ? Bo : yc, s.uncache = 0, s;
|
|
4917
4917
|
}, Qs = function(e) {
|
|
4918
4918
|
return (e = e.split(" "))[0] + " " + e[1];
|
|
4919
4919
|
}, xn = function(e, t, s) {
|
|
@@ -4921,35 +4921,35 @@ var Xr, St, Jt, gr, It, Qr, fr, tc = function() {
|
|
|
4921
4921
|
return fe(parseFloat(t) + parseFloat(Pt(e, "x", s + "px", n))) + n;
|
|
4922
4922
|
}, yc = function(e, t) {
|
|
4923
4923
|
t.z = "0px", t.rotationY = t.rotationX = "0deg", t.force3D = 0, Bo(e, t);
|
|
4924
|
-
},
|
|
4924
|
+
}, Et = "0deg", ps = "0px", Lt = ") ", Bo = function(e, t) {
|
|
4925
4925
|
var s = t || this, n = s.xPercent, i = s.yPercent, o = s.x, a = s.y, l = s.z, c = s.rotation, u = s.rotationY, p = s.rotationX, g = s.skewX, h = s.skewY, f = s.scaleX, d = s.scaleY, w = s.transformPerspective, v = s.force3D, y = s.target, b = s.zOrigin, _ = "", m = v === "auto" && e && e !== 1 || v === !0;
|
|
4926
|
-
if (b && (p !==
|
|
4926
|
+
if (b && (p !== Et || u !== Et)) {
|
|
4927
4927
|
var x = parseFloat(u) * es, S = Math.sin(x), k = Math.cos(x), T;
|
|
4928
4928
|
x = parseFloat(p) * es, T = Math.cos(x), o = xn(y, o, S * T * -b), a = xn(y, a, -Math.sin(x) * -b), l = xn(y, l, k * T * -b + b);
|
|
4929
4929
|
}
|
|
4930
|
-
w !== ps && (_ += "perspective(" + w + Lt), (n || i) && (_ += "translate(" + n + "%, " + i + "%) "), (m || o !== ps || a !== ps || l !== ps) && (_ += l !== ps || m ? "translate3d(" + o + ", " + a + ", " + l + ") " : "translate(" + o + ", " + a + Lt), c !==
|
|
4930
|
+
w !== ps && (_ += "perspective(" + w + Lt), (n || i) && (_ += "translate(" + n + "%, " + i + "%) "), (m || o !== ps || a !== ps || l !== ps) && (_ += l !== ps || m ? "translate3d(" + o + ", " + a + ", " + l + ") " : "translate(" + o + ", " + a + Lt), c !== Et && (_ += "rotate(" + c + Lt), u !== Et && (_ += "rotateY(" + u + Lt), p !== Et && (_ += "rotateX(" + p + Lt), (g !== Et || h !== Et) && (_ += "skew(" + g + ", " + h + Lt), (f !== 1 || d !== 1) && (_ += "scale(" + f + ", " + d + Lt), y.style[pe] = _ || "translate(0, 0)";
|
|
4931
4931
|
}, vc = function(e, t) {
|
|
4932
4932
|
var s = t || this, n = s.xPercent, i = s.yPercent, o = s.x, a = s.y, l = s.rotation, c = s.skewX, u = s.skewY, p = s.scaleX, g = s.scaleY, h = s.target, f = s.xOrigin, d = s.yOrigin, w = s.xOffset, v = s.yOffset, y = s.forceCSS, b = parseFloat(o), _ = parseFloat(a), m, x, S, k, T;
|
|
4933
4933
|
l = parseFloat(l), c = parseFloat(c), u = parseFloat(u), u && (u = parseFloat(u), c += u, l += u), l || c ? (l *= es, c *= es, m = Math.cos(l) * p, x = Math.sin(l) * p, S = Math.sin(l - c) * -g, k = Math.cos(l - c) * g, c && (u *= es, T = Math.tan(c - u), T = Math.sqrt(1 + T * T), S *= T, k *= T, u && (T = Math.tan(u), T = Math.sqrt(1 + T * T), m *= T, x *= T)), m = fe(m), x = fe(x), S = fe(S), k = fe(k)) : (m = p, k = g, x = S = 0), (b && !~(o + "").indexOf("px") || _ && !~(a + "").indexOf("px")) && (b = Pt(h, "x", o, "px"), _ = Pt(h, "y", a, "px")), (f || d || w || v) && (b = fe(b + f - (f * m + d * S) + w), _ = fe(_ + d - (f * x + d * k) + v)), (n || i) && (T = h.getBBox(), b = fe(b + n / 100 * T.width), _ = fe(_ + i / 100 * T.height)), T = "matrix(" + m + "," + x + "," + S + "," + k + "," + b + "," + _ + ")", h.setAttribute("transform", T), y && (h.style[pe] = T);
|
|
4934
4934
|
}, _c = function(e, t, s, n, i) {
|
|
4935
4935
|
var o = 360, a = ye(i), l = parseFloat(i) * (a && ~i.indexOf("rad") ? Bt : 1), c = l - n, u = n + c + "deg", p, g;
|
|
4936
|
-
return a && (p = i.split("_")[1], p === "short" && (c %= o, c !== c % (o / 2) && (c += c < 0 ? o : -360)), p === "cw" && c < 0 ? c = (c + o * Jr) % o - ~~(c / o) * o : p === "ccw" && c > 0 && (c = (c - o * Jr) % o - ~~(c / o) * o)), e._pt = g = new
|
|
4936
|
+
return a && (p = i.split("_")[1], p === "short" && (c %= o, c !== c % (o / 2) && (c += c < 0 ? o : -360)), p === "cw" && c < 0 ? c = (c + o * Jr) % o - ~~(c / o) * o : p === "ccw" && c > 0 && (c = (c - o * Jr) % o - ~~(c / o) * o)), e._pt = g = new De(e._pt, t, s, n, c, rc), g.e = u, g.u = "deg", e._props.push(s), g;
|
|
4937
4937
|
}, oi = function(e, t) {
|
|
4938
4938
|
for (var s in t)
|
|
4939
4939
|
e[s] = t[s];
|
|
4940
4940
|
return e;
|
|
4941
4941
|
}, xc = function(e, t, s) {
|
|
4942
4942
|
var n = oi({}, s._gsap), i = "perspective,force3D,transformOrigin,svgOrigin", o = s.style, a, l, c, u, p, g, h, f;
|
|
4943
|
-
n.svg ? (c = s.getAttribute("transform"), s.setAttribute("transform", ""), o[pe] = t, a =
|
|
4943
|
+
n.svg ? (c = s.getAttribute("transform"), s.setAttribute("transform", ""), o[pe] = t, a = Ds(s, 1), Vt(s, pe), s.setAttribute("transform", c)) : (c = getComputedStyle(s)[pe], o[pe] = t, a = Ds(s, 1), o[pe] = c);
|
|
4944
4944
|
for (l in vt)
|
|
4945
|
-
c = n[l], u = a[l], c !== u && i.indexOf(l) < 0 && (h = xe(c), f = xe(u), p = h !== f ? Pt(s, l, c, f) : parseFloat(c), g = parseFloat(u), e._pt = new
|
|
4945
|
+
c = n[l], u = a[l], c !== u && i.indexOf(l) < 0 && (h = xe(c), f = xe(u), p = h !== f ? Pt(s, l, c, f) : parseFloat(c), g = parseFloat(u), e._pt = new De(e._pt, a, l, p, g - p, Nn), e._pt.u = f || 0, e._props.push(l));
|
|
4946
4946
|
oi(a, n);
|
|
4947
4947
|
};
|
|
4948
4948
|
Ae("padding,margin,Width,Radius", function(r, e) {
|
|
4949
4949
|
var t = "Top", s = "Right", n = "Bottom", i = "Left", o = (e < 3 ? [t, s, n, i] : [t + i, t + s, n + s, n + i]).map(function(a) {
|
|
4950
4950
|
return e < 2 ? r + a : "border" + a + r;
|
|
4951
4951
|
});
|
|
4952
|
-
|
|
4952
|
+
Ys[e > 1 ? "border" + r : r] = function(a, l, c, u, p) {
|
|
4953
4953
|
var g, h;
|
|
4954
4954
|
if (arguments.length < 4)
|
|
4955
4955
|
return g = o.map(function(f) {
|
|
@@ -4971,21 +4971,21 @@ var Io = {
|
|
|
4971
4971
|
gr || jn(), this.styles = this.styles || Mo(e), k = this.styles.props, this.tween = s;
|
|
4972
4972
|
for (d in t)
|
|
4973
4973
|
if (d !== "autoRound" && (u = t[d], !($e[d] && bo(d, t, s, n, e, i)))) {
|
|
4974
|
-
if (h = typeof u, f =
|
|
4974
|
+
if (h = typeof u, f = Ys[d], h === "function" && (u = u.call(s, n, e, i), h = typeof u), h === "string" && ~u.indexOf("random(") && (u = zs(u)), f)
|
|
4975
4975
|
f(this, e, d, u, s) && (S = 1);
|
|
4976
4976
|
else if (d.substr(0, 2) === "--")
|
|
4977
4977
|
c = (getComputedStyle(e).getPropertyValue(d) + "").trim(), u += "", zt.lastIndex = 0, zt.test(c) || (w = xe(c), v = xe(u)), v ? w !== v && (c = Pt(e, d, c, v) + v) : w && (u += w), this.add(a, "setProperty", c, u, n, i, 0, 0, d), o.push(d), k.push(d, 0, a[d]);
|
|
4978
4978
|
else if (h !== "undefined") {
|
|
4979
4979
|
if (l && d in l ? (c = typeof l[d] == "function" ? l[d].call(s, n, e, i) : l[d], ye(c) && ~c.indexOf("random(") && (c = zs(c)), xe(c + "") || c === "auto" || (c += Ve.units[d] || xe(wt(e, d)) || ""), (c + "").charAt(1) === "=" && (c = wt(e, d))) : c = wt(e, d), g = parseFloat(c), y = h === "string" && u.charAt(1) === "=" && u.substr(0, 2), y && (u = u.substr(2)), p = parseFloat(u), d in at && (d === "autoAlpha" && (g === 1 && wt(e, "visibility") === "hidden" && p && (g = 0), k.push("visibility", 0, a.visibility), Tt(this, a, "visibility", g ? "inherit" : "hidden", p ? "inherit" : "hidden", !p)), d !== "scale" && d !== "transform" && (d = at[d], ~d.indexOf(",") && (d = d.split(",")[0]))), b = d in vt, b) {
|
|
4980
|
-
if (this.styles.save(d), h === "string" && u.substring(0, 6) === "var(--" && (u =
|
|
4981
|
-
this._pt = new
|
|
4980
|
+
if (this.styles.save(d), h === "string" && u.substring(0, 6) === "var(--" && (u = Xe(e, u.substring(4, u.indexOf(")"))), p = parseFloat(u)), _ || (m = e._gsap, m.renderTransform && !t.parseTransform || Ds(e, t.parseTransform), x = t.smoothOrigin !== !1 && m.smooth, _ = this._pt = new De(this._pt, a, pe, 0, 1, m.renderTransform, m, 0, -1), _.dep = 1), d === "scale")
|
|
4981
|
+
this._pt = new De(this._pt, m, "scaleY", m.scaleY, (y ? Qt(m.scaleY, y + p) : p) - m.scaleY || 0, Nn), this._pt.u = 0, o.push("scaleY", d), d += "X";
|
|
4982
4982
|
else if (d === "transformOrigin") {
|
|
4983
|
-
k.push(
|
|
4983
|
+
k.push(Ee, 0, a[Ee]), u = wc(u), m.svg ? qn(e, u, 0, x, 0, this) : (v = parseFloat(u.split(" ")[2]) || 0, v !== m.zOrigin && Tt(this, m, "zOrigin", m.zOrigin, v), Tt(this, a, d, Qs(c), Qs(u)));
|
|
4984
4984
|
continue;
|
|
4985
4985
|
} else if (d === "svgOrigin") {
|
|
4986
4986
|
qn(e, u, 1, x, 0, this);
|
|
4987
4987
|
continue;
|
|
4988
|
-
} else if (d in
|
|
4988
|
+
} else if (d in Eo) {
|
|
4989
4989
|
_c(this, m, d, g, y ? Qt(g, y + u) : u);
|
|
4990
4990
|
continue;
|
|
4991
4991
|
} else if (d === "smoothOrigin") {
|
|
@@ -5000,7 +5000,7 @@ var Io = {
|
|
|
5000
5000
|
}
|
|
5001
5001
|
} else d in a || (d = os(d) || d);
|
|
5002
5002
|
if (b || (p || p === 0) && (g || g === 0) && !nc.test(u) && d in a)
|
|
5003
|
-
w = (c + "").substr((g + "").length), p || (p = 0), v = xe(u) || (d in Ve.units ? Ve.units[d] : w), w !== v && (g = Pt(e, d, c, v)), this._pt = new
|
|
5003
|
+
w = (c + "").substr((g + "").length), p || (p = 0), v = xe(u) || (d in Ve.units ? Ve.units[d] : w), w !== v && (g = Pt(e, d, c, v)), this._pt = new De(this._pt, b ? m : a, d, g, (y ? Qt(g, y + p) : p) - g, !b && (v === "px" || d === "zIndex") && t.autoRound !== !1 ? oc : Nn), this._pt.u = v || 0, w !== v && v !== "%" && (this._pt.b = c, this._pt.r = ic);
|
|
5004
5004
|
else if (d in a)
|
|
5005
5005
|
mc.call(this, e, d, c, y ? y + u : u);
|
|
5006
5006
|
else if (d in e)
|
|
@@ -5025,7 +5025,7 @@ var Io = {
|
|
|
5025
5025
|
aliases: at,
|
|
5026
5026
|
getSetter: function(e, t, s) {
|
|
5027
5027
|
var n = at[t];
|
|
5028
|
-
return n && n.indexOf(",") < 0 && (t = n), t in vt && t !==
|
|
5028
|
+
return n && n.indexOf(",") < 0 && (t = n), t in vt && t !== Ee && (e._gsap.x || wt(e, "x")) ? s && Qr === s ? t === "scale" ? uc : cc : (Qr = s || {}) && (t === "scale" ? dc : hc) : e.style && !tr(e.style[t]) ? ac : ~t.indexOf("-") ? lc : hr(e, t);
|
|
5029
5029
|
},
|
|
5030
5030
|
core: {
|
|
5031
5031
|
_removeProperty: Vt,
|
|
@@ -5039,7 +5039,7 @@ Le.core.getStyleSaver = Mo;
|
|
|
5039
5039
|
vt[i] = 1;
|
|
5040
5040
|
});
|
|
5041
5041
|
Ae(e, function(i) {
|
|
5042
|
-
Ve.units[i] = "deg",
|
|
5042
|
+
Ve.units[i] = "deg", Eo[i] = 1;
|
|
5043
5043
|
}), at[n[13]] = r + "," + e, Ae(s, function(i) {
|
|
5044
5044
|
var o = i.split(":");
|
|
5045
5045
|
at[o[1]] = n[o[0]];
|
|
@@ -5156,18 +5156,18 @@ const Rc = ["innerHTML"], zc = ["src"], Mc = /* @__PURE__ */ Se({
|
|
|
5156
5156
|
const a = (l = e.element.icon) == null ? void 0 : l.size;
|
|
5157
5157
|
return a ? a + "px" : void 0;
|
|
5158
5158
|
});
|
|
5159
|
-
return (a, l) => (
|
|
5159
|
+
return (a, l) => (E(), B("div", {
|
|
5160
5160
|
style: K([s.value, { "box-sizing": "content-box" }]),
|
|
5161
5161
|
class: "chat-collapsed tw:transition-all tw:flex tw:cursor-pointer tw:items-center tw:justify-center",
|
|
5162
5162
|
onClick: l[0] || (l[0] = //@ts-ignore
|
|
5163
5163
|
(...c) => a.toggleChat && a.toggleChat(...c))
|
|
5164
5164
|
}, [
|
|
5165
|
-
n.value ? (
|
|
5165
|
+
n.value ? (E(), B("span", {
|
|
5166
5166
|
key: 0,
|
|
5167
5167
|
class: "hs-collapsed-logo tw:transition-all",
|
|
5168
5168
|
innerHTML: i.value,
|
|
5169
5169
|
style: K({ width: o.value, height: o.value })
|
|
5170
|
-
}, null, 12, Rc)) : i.value ? (
|
|
5170
|
+
}, null, 12, Rc)) : i.value ? (E(), B("img", {
|
|
5171
5171
|
key: 1,
|
|
5172
5172
|
class: "tw:transition-all",
|
|
5173
5173
|
src: i.value,
|
|
@@ -5665,7 +5665,7 @@ class Ac extends cs {
|
|
|
5665
5665
|
}
|
|
5666
5666
|
}
|
|
5667
5667
|
}
|
|
5668
|
-
class
|
|
5668
|
+
class Dc extends cs {
|
|
5669
5669
|
constructor() {
|
|
5670
5670
|
super(...arguments), this.name = "AddMessageBgTypeV1toV2", this.description = "Добавляет поле bgType в messageUser и messageBot", this.appliesTo = { from: "1.0", to: "2.0" };
|
|
5671
5671
|
}
|
|
@@ -5686,7 +5686,7 @@ class Ec extends cs {
|
|
|
5686
5686
|
}
|
|
5687
5687
|
}
|
|
5688
5688
|
}
|
|
5689
|
-
class
|
|
5689
|
+
class Ec extends cs {
|
|
5690
5690
|
constructor() {
|
|
5691
5691
|
super(...arguments), this.name = "AddActionButtonsV1toV2", this.description = "Добавляет кнопки aprooveButton и rejectButton в inside секцию", this.appliesTo = { from: "1.0", to: "2.0" };
|
|
5692
5692
|
}
|
|
@@ -5740,7 +5740,7 @@ class Bc extends cs {
|
|
|
5740
5740
|
}
|
|
5741
5741
|
}
|
|
5742
5742
|
}
|
|
5743
|
-
new Pc(), new Ac(), new
|
|
5743
|
+
new Pc(), new Ac(), new Dc(), new Ec(), new Lc(), new Bc();
|
|
5744
5744
|
const rt = (r) => typeof r == "string" && r.length >= 0, ci = (r) => typeof r == "number" && !Number.isNaN(r), gs = (r, e) => typeof r == "string" && e.includes(r);
|
|
5745
5745
|
function Ic(r) {
|
|
5746
5746
|
var c, u, p, g, h, f, d;
|
|
@@ -5890,7 +5890,7 @@ const $c = ["aria-expanded"], Kc = ["innerHTML"], Fc = ["src", "alt"], Uc = { ke
|
|
|
5890
5890
|
const d = e.configDesignClass.getKey("texts.hideText");
|
|
5891
5891
|
return d && d !== "undefined" ? d : "Hide";
|
|
5892
5892
|
}), h = z(() => e.configDesignClass.getKey("settings.logo").includes("<svg")), f = z(() => e.configDesignClass.getKey("settings.logo"));
|
|
5893
|
-
return (d, w) => (
|
|
5893
|
+
return (d, w) => (E(), B("div", {
|
|
5894
5894
|
onClick: w[0] || (w[0] = //@ts-ignore
|
|
5895
5895
|
(...v) => d.toggleChat && d.toggleChat(...v)),
|
|
5896
5896
|
class: "chat-action tw:transition-all tw:cursor-pointer tw:flex tw:items-center tw:w-full tw:justify-start tw:overflow-hidden",
|
|
@@ -5911,21 +5911,21 @@ const $c = ["aria-expanded"], Kc = ["innerHTML"], Fc = ["src", "alt"], Uc = { ke
|
|
|
5911
5911
|
title: i.value
|
|
5912
5912
|
}, {
|
|
5913
5913
|
default: Fe(() => [
|
|
5914
|
-
h.value && d.configDesignClass.getKey("sections.top.chipWidgetTitle.showType") !== "text" ? (
|
|
5914
|
+
h.value && d.configDesignClass.getKey("sections.top.chipWidgetTitle.showType") !== "text" ? (E(), B("div", {
|
|
5915
5915
|
key: 0,
|
|
5916
5916
|
class: te(["header-logo", d.configDesignClass.getKey("sections.top.params.size")]),
|
|
5917
5917
|
innerHTML: f.value
|
|
5918
|
-
}, null, 10, Kc)) : f.value && d.configDesignClass.getKey("sections.top.chipWidgetTitle.showType") !== "text" ? (
|
|
5918
|
+
}, null, 10, Kc)) : f.value && d.configDesignClass.getKey("sections.top.chipWidgetTitle.showType") !== "text" ? (E(), B("img", {
|
|
5919
5919
|
key: 1,
|
|
5920
5920
|
src: f.value,
|
|
5921
5921
|
alt: d.configDesignClass.getKey("sections.top.iconWidget.alt"),
|
|
5922
5922
|
class: te(d.configDesignClass.getKey("sections.top.params.size") === "sm" ? "tw:w-3 tw:h-3" : "tw:w-4 tw:h-4")
|
|
5923
5923
|
}, null, 10, Fc)) : ne("", !0),
|
|
5924
|
-
d.configDesignClass.getKey("sections.top.chipWidgetTitle.showType") !== "icon" ? (
|
|
5924
|
+
d.configDesignClass.getKey("sections.top.chipWidgetTitle.showType") !== "icon" ? (E(), B("span", Uc, Je(i.value), 1)) : ne("", !0)
|
|
5925
5925
|
]),
|
|
5926
5926
|
_: 1
|
|
5927
5927
|
}, 8, ["class", "variant", "size", "style", "aria-label", "title"]),
|
|
5928
|
-
d.isChatOpen ? (
|
|
5928
|
+
d.isChatOpen ? (E(), B("div", Vc, [
|
|
5929
5929
|
_e(F(bt), {
|
|
5930
5930
|
variant: l.value,
|
|
5931
5931
|
class: te(["tw:transition-all", [s.value]]),
|
|
@@ -5934,10 +5934,10 @@ const $c = ["aria-expanded"], Kc = ["innerHTML"], Fc = ["src", "alt"], Uc = { ke
|
|
|
5934
5934
|
type: "button",
|
|
5935
5935
|
"aria-label": g.value,
|
|
5936
5936
|
title: g.value,
|
|
5937
|
-
onClick:
|
|
5937
|
+
onClick: Yt(d.restartChat, ["stop"])
|
|
5938
5938
|
}, {
|
|
5939
5939
|
default: Fe(() => [
|
|
5940
|
-
c.value !== "text" ? (
|
|
5940
|
+
c.value !== "text" ? (E(), B("svg", {
|
|
5941
5941
|
key: 0,
|
|
5942
5942
|
width: d.configDesignClass.getKey("sections.top.params.size") === "sm" ? "12" : "16",
|
|
5943
5943
|
height: d.configDesignClass.getKey("sections.top.params.size") === "sm" ? "12" : "16",
|
|
@@ -5950,7 +5950,7 @@ const $c = ["aria-expanded"], Kc = ["innerHTML"], Fc = ["src", "alt"], Uc = { ke
|
|
|
5950
5950
|
fill: "currentColor"
|
|
5951
5951
|
}, null, -1)
|
|
5952
5952
|
]), 8, Wc)) : ne("", !0),
|
|
5953
|
-
c.value !== "icon" ? (
|
|
5953
|
+
c.value !== "icon" ? (E(), B("span", Nc, " Restart ")) : ne("", !0)
|
|
5954
5954
|
]),
|
|
5955
5955
|
_: 1
|
|
5956
5956
|
}, 8, ["variant", "class", "size", "style", "aria-label", "title", "onClick"]),
|
|
@@ -5962,10 +5962,10 @@ const $c = ["aria-expanded"], Kc = ["innerHTML"], Fc = ["src", "alt"], Uc = { ke
|
|
|
5962
5962
|
type: "button",
|
|
5963
5963
|
"aria-label": g.value,
|
|
5964
5964
|
title: g.value,
|
|
5965
|
-
onClick:
|
|
5965
|
+
onClick: Yt(d.toggleChat, ["stop"])
|
|
5966
5966
|
}, {
|
|
5967
5967
|
default: Fe(() => [
|
|
5968
|
-
c.value !== "text" ? (
|
|
5968
|
+
c.value !== "text" ? (E(), B("svg", {
|
|
5969
5969
|
key: 0,
|
|
5970
5970
|
width: d.configDesignClass.getKey("sections.top.params.size") === "sm" ? "12" : "16",
|
|
5971
5971
|
height: d.configDesignClass.getKey("sections.top.params.size") === "sm" ? "12" : "16",
|
|
@@ -5978,7 +5978,7 @@ const $c = ["aria-expanded"], Kc = ["innerHTML"], Fc = ["src", "alt"], Uc = { ke
|
|
|
5978
5978
|
fill: "currentColor"
|
|
5979
5979
|
}, null, -1)
|
|
5980
5980
|
]), 8, Hc)) : ne("", !0),
|
|
5981
|
-
c.value !== "icon" ? (
|
|
5981
|
+
c.value !== "icon" ? (E(), B("span", jc, Je(g.value), 1)) : ne("", !0)
|
|
5982
5982
|
]),
|
|
5983
5983
|
_: 1
|
|
5984
5984
|
}, 8, ["variant", "class", "size", "style", "aria-label", "title", "onClick"])
|
|
@@ -6032,7 +6032,7 @@ function Fo(r, e, t, s = {}) {
|
|
|
6032
6032
|
}
|
|
6033
6033
|
});
|
|
6034
6034
|
}
|
|
6035
|
-
const
|
|
6035
|
+
const Xc = /* @__PURE__ */ Se({
|
|
6036
6036
|
__name: "Textarea",
|
|
6037
6037
|
props: {
|
|
6038
6038
|
class: {},
|
|
@@ -6045,7 +6045,7 @@ const Yc = /* @__PURE__ */ Se({
|
|
|
6045
6045
|
passive: !0,
|
|
6046
6046
|
defaultValue: t.defaultValue
|
|
6047
6047
|
});
|
|
6048
|
-
return (i, o) => Sn((
|
|
6048
|
+
return (i, o) => Sn((E(), B("textarea", {
|
|
6049
6049
|
"onUpdate:modelValue": o[0] || (o[0] = (a) => vi(n) ? n.value = a : null),
|
|
6050
6050
|
style: {
|
|
6051
6051
|
resize: "none"
|
|
@@ -6057,7 +6057,7 @@ const Yc = /* @__PURE__ */ Se({
|
|
|
6057
6057
|
]);
|
|
6058
6058
|
}
|
|
6059
6059
|
});
|
|
6060
|
-
function
|
|
6060
|
+
function Yc(r) {
|
|
6061
6061
|
var b;
|
|
6062
6062
|
const e = () => F(r.transcribeUrl), t = H(!1), s = H(!1), n = H(!0), i = H(null), o = H(0);
|
|
6063
6063
|
let a = null, l = [], c = null, u = null;
|
|
@@ -6209,7 +6209,7 @@ const Qc = {
|
|
|
6209
6209
|
isSupported: a,
|
|
6210
6210
|
formattedDuration: l,
|
|
6211
6211
|
toggleRecording: c
|
|
6212
|
-
} =
|
|
6212
|
+
} = Yc({
|
|
6213
6213
|
transcribeUrl: s,
|
|
6214
6214
|
// Передаём computed напрямую
|
|
6215
6215
|
maxDuration: 60,
|
|
@@ -6242,8 +6242,8 @@ const Qc = {
|
|
|
6242
6242
|
});
|
|
6243
6243
|
return Hs(() => {
|
|
6244
6244
|
console.log("ChatBottom mounted"), console.log(t), console.log(n, a);
|
|
6245
|
-
}), (m, x) => (
|
|
6246
|
-
m.isProduction ? ne("", !0) : (
|
|
6245
|
+
}), (m, x) => (E(), B("div", null, [
|
|
6246
|
+
m.isProduction ? ne("", !0) : (E(), B("div", {
|
|
6247
6247
|
key: 0,
|
|
6248
6248
|
class: "tw:flex tw:flex-row tw:gap-2",
|
|
6249
6249
|
style: K({
|
|
@@ -6263,7 +6263,7 @@ const Qc = {
|
|
|
6263
6263
|
class: "tw:flex-shrink-1 tw:flex-grow-1",
|
|
6264
6264
|
"aria-label": "Copy last message",
|
|
6265
6265
|
title: "Copy last message",
|
|
6266
|
-
onClick: x[0] || (x[0] =
|
|
6266
|
+
onClick: x[0] || (x[0] = Yt((S) => m.$emit("trace", { action: "copyLast" }), ["stop"]))
|
|
6267
6267
|
}, {
|
|
6268
6268
|
default: Fe(() => x[3] || (x[3] = [
|
|
6269
6269
|
I("svg", {
|
|
@@ -6307,7 +6307,7 @@ const Qc = {
|
|
|
6307
6307
|
}),
|
|
6308
6308
|
"aria-label": "Copy all",
|
|
6309
6309
|
title: "Copy all",
|
|
6310
|
-
onClick: x[1] || (x[1] =
|
|
6310
|
+
onClick: x[1] || (x[1] = Yt((S) => m.$emit("trace", { action: "copyAll" }), ["stop"]))
|
|
6311
6311
|
}, {
|
|
6312
6312
|
default: Fe(() => x[4] || (x[4] = [
|
|
6313
6313
|
I("svg", {
|
|
@@ -6347,8 +6347,8 @@ const Qc = {
|
|
|
6347
6347
|
padding: h.value ? "0" : "0 " + m.configDesignClass.getKey("sections.bottom.inputSend.sidePadding") + "px"
|
|
6348
6348
|
})
|
|
6349
6349
|
}, [
|
|
6350
|
-
m.showReconnectNotice || d.value || m.isInputDisabled ? (
|
|
6351
|
-
_e(
|
|
6350
|
+
m.showReconnectNotice || d.value || m.isInputDisabled ? (E(), B("div", Qc, [
|
|
6351
|
+
_e(Dn, {
|
|
6352
6352
|
class: "tw:rounded-b-none tw:mx-0 tw:flex tw:justify-center tw:item s-center tw:px-2 tw:py-2",
|
|
6353
6353
|
type: "reconnecting",
|
|
6354
6354
|
configDesignClass: m.configDesignClass,
|
|
@@ -6396,7 +6396,7 @@ const Qc = {
|
|
|
6396
6396
|
)}`
|
|
6397
6397
|
})
|
|
6398
6398
|
}, [
|
|
6399
|
-
(
|
|
6399
|
+
(E(), lt(F(Xc), {
|
|
6400
6400
|
class: te(["tw:transition-all", [
|
|
6401
6401
|
"tw:w-full tw:outline-none tw:border-0 focus:tw:outline-none",
|
|
6402
6402
|
h.value ? "tw:h-auto rounded-none" : "h-full"
|
|
@@ -6406,7 +6406,7 @@ const Qc = {
|
|
|
6406
6406
|
key: m.configDesignClass.getKey("sections.bottom.inputSend.color"),
|
|
6407
6407
|
modelValue: F(g),
|
|
6408
6408
|
"onUpdate:modelValue": x[2] || (x[2] = (S) => vi(g) ? g.value = S : null),
|
|
6409
|
-
onKeyup: ga(
|
|
6409
|
+
onKeyup: ga(Yt(u, ["exact"]), ["enter"]),
|
|
6410
6410
|
style: K({
|
|
6411
6411
|
color: m.configDesignClass.getKey("sections.bottom.inputSend.color"),
|
|
6412
6412
|
fontSize: m.configDesignClass.getKey("sections.bottom.inputSend.fontSize") + "px",
|
|
@@ -6432,7 +6432,7 @@ const Qc = {
|
|
|
6432
6432
|
) + "px"
|
|
6433
6433
|
})
|
|
6434
6434
|
}, [
|
|
6435
|
-
n.value && F(a) ? (
|
|
6435
|
+
n.value && F(a) ? (E(), lt(F(bt), {
|
|
6436
6436
|
key: 0,
|
|
6437
6437
|
type: "button",
|
|
6438
6438
|
class: te([
|
|
@@ -6448,7 +6448,7 @@ const Qc = {
|
|
|
6448
6448
|
title: F(i) ? "Stop recording" : "Start voice input"
|
|
6449
6449
|
}, {
|
|
6450
6450
|
default: Fe(() => [
|
|
6451
|
-
!F(i) && !F(o) ? (
|
|
6451
|
+
!F(i) && !F(o) ? (E(), B("svg", Jc, x[5] || (x[5] = [
|
|
6452
6452
|
I("path", { d: "M12 2a3 3 0 0 0-3 3v7a3 3 0 0 0 6 0V5a3 3 0 0 0-3-3Z" }, null, -1),
|
|
6453
6453
|
I("path", { d: "M19 10v2a7 7 0 0 1-14 0v-2" }, null, -1),
|
|
6454
6454
|
I("line", {
|
|
@@ -6457,7 +6457,7 @@ const Qc = {
|
|
|
6457
6457
|
y1: "19",
|
|
6458
6458
|
y2: "22"
|
|
6459
6459
|
}, null, -1)
|
|
6460
|
-
]))) : F(i) ? (
|
|
6460
|
+
]))) : F(i) ? (E(), B("svg", eu, x[6] || (x[6] = [
|
|
6461
6461
|
I("rect", {
|
|
6462
6462
|
x: "6",
|
|
6463
6463
|
y: "6",
|
|
@@ -6465,7 +6465,7 @@ const Qc = {
|
|
|
6465
6465
|
height: "12",
|
|
6466
6466
|
rx: "2"
|
|
6467
6467
|
}, null, -1)
|
|
6468
|
-
]))) : (
|
|
6468
|
+
]))) : (E(), B("svg", tu, x[7] || (x[7] = [
|
|
6469
6469
|
I("circle", {
|
|
6470
6470
|
cx: "12",
|
|
6471
6471
|
cy: "12",
|
|
@@ -6481,7 +6481,7 @@ const Qc = {
|
|
|
6481
6481
|
"stroke-linecap": "round"
|
|
6482
6482
|
}, null, -1)
|
|
6483
6483
|
]))),
|
|
6484
|
-
F(i) ? (
|
|
6484
|
+
F(i) ? (E(), B("span", su, Je(F(l)), 1)) : ne("", !0)
|
|
6485
6485
|
]),
|
|
6486
6486
|
_: 1
|
|
6487
6487
|
}, 8, ["class", "style", "disabled", "onClick", "title"])) : ne("", !0),
|
|
@@ -6529,7 +6529,7 @@ const Qc = {
|
|
|
6529
6529
|
disabled: m.isInputDisabled
|
|
6530
6530
|
}, {
|
|
6531
6531
|
default: Fe(() => [
|
|
6532
|
-
b.value ? (
|
|
6532
|
+
b.value ? (E(), B("div", nu, [
|
|
6533
6533
|
I("div", {
|
|
6534
6534
|
innerHTML: b.value,
|
|
6535
6535
|
style: K({
|
|
@@ -6545,11 +6545,11 @@ const Qc = {
|
|
|
6545
6545
|
})
|
|
6546
6546
|
}, null, 12, ru)
|
|
6547
6547
|
])) : ne("", !0),
|
|
6548
|
-
m.configDesignClass.getKey("sections.bottom.btnSend.showType") === "text" || m.configDesignClass.getKey("sections.bottom.btnSend.showType") === "both" ? (
|
|
6548
|
+
m.configDesignClass.getKey("sections.bottom.btnSend.showType") === "text" || m.configDesignClass.getKey("sections.bottom.btnSend.showType") === "both" ? (E(), B("span", iu, Je(m.configDesignClass.getKey("texts.sendButton")), 1)) : ne("", !0)
|
|
6549
6549
|
]),
|
|
6550
6550
|
_: 1
|
|
6551
6551
|
}, 8, ["size", "class", "style", "disabled"]),
|
|
6552
|
-
h.value && _.value ? (
|
|
6552
|
+
h.value && _.value ? (E(), B("div", {
|
|
6553
6553
|
key: 1,
|
|
6554
6554
|
class: "tw:text-[11px] tw:text-white/50 tw:flex tw:items-center",
|
|
6555
6555
|
style: K({
|
|
@@ -6565,7 +6565,7 @@ const Qc = {
|
|
|
6565
6565
|
}, Je(_.value), 5)) : ne("", !0)
|
|
6566
6566
|
], 6)
|
|
6567
6567
|
], 6),
|
|
6568
|
-
!h.value && _.value ? (
|
|
6568
|
+
!h.value && _.value ? (E(), B("div", {
|
|
6569
6569
|
key: 1,
|
|
6570
6570
|
class: "tw:px-2 tw:text-white/50 tw:mb-2 tw:flex tw:items-center tw:justify-center",
|
|
6571
6571
|
style: K({
|
|
@@ -6921,7 +6921,7 @@ function Vo(r) {
|
|
|
6921
6921
|
Ht = r;
|
|
6922
6922
|
}
|
|
6923
6923
|
var Cs = { exec: () => null };
|
|
6924
|
-
function
|
|
6924
|
+
function Y(r, e = "") {
|
|
6925
6925
|
let t = typeof r == "string" ? r : r.source, s = { replace: (n, i) => {
|
|
6926
6926
|
let o = typeof i == "string" ? i : i.source;
|
|
6927
6927
|
return o = o.replace(ze.caret, "$1"), t = t.replace(n, o), s;
|
|
@@ -6934,8 +6934,8 @@ var _u = (() => {
|
|
|
6934
6934
|
} catch {
|
|
6935
6935
|
return !1;
|
|
6936
6936
|
}
|
|
6937
|
-
})(), ze = { codeRemoveIndent: /^(?: {1,4}| {0,3}\t)/gm, outputLinkReplace: /\\([\[\]])/g, indentCodeCompensation: /^(\s+)(?:```)/, beginningSpace: /^\s+/, endingHash: /#$/, startingSpaceChar: /^ /, endingSpaceChar: / $/, nonSpaceChar: /[^ ]/, newLineCharGlobal: /\n/g, tabCharGlobal: /\t/g, multipleSpaceGlobal: /\s+/g, blankLine: /^[ \t]*$/, doubleBlankLine: /\n[ \t]*\n[ \t]*$/, blockquoteStart: /^ {0,3}>/, blockquoteSetextReplace: /\n {0,3}((?:=+|-+) *)(?=\n|$)/g, blockquoteSetextReplace2: /^ {0,3}>[ \t]?/gm, listReplaceTabs: /^\t+/, listReplaceNesting: /^ {1,4}(?=( {4})*[^ ])/g, listIsTask: /^\[[ xX]\] +\S/, listReplaceTask: /^\[[ xX]\] +/, listTaskCheckbox: /\[[ xX]\]/, anyLine: /\n.*\n/, hrefBrackets: /^<(.*)>$/, tableDelimiter: /[:|]/, tableAlignChars: /^\||\| *$/g, tableRowBlankLine: /\n[ \t]*$/, tableAlignRight: /^ *-+: *$/, tableAlignCenter: /^ *:-+: *$/, tableAlignLeft: /^ *:-+ *$/, startATag: /^<a /i, endATag: /^<\/a>/i, startPreScriptTag: /^<(pre|code|kbd|script)(\s|>)/i, endPreScriptTag: /^<\/(pre|code|kbd|script)(\s|>)/i, startAngleBracket: /^</, endAngleBracket: />$/, pedanticHrefTitle: /^([^'"]*[^\s])\s+(['"])(.*)\2/, unicodeAlphaNumeric: /[\p{L}\p{N}]/u, escapeTest: /[&<>"']/, escapeReplace: /[&<>"']/g, escapeTestNoEncode: /[<>"']|&(?!(#\d{1,7}|#[Xx][a-fA-F0-9]{1,6}|\w+);)/, escapeReplaceNoEncode: /[<>"']|&(?!(#\d{1,7}|#[Xx][a-fA-F0-9]{1,6}|\w+);)/g, unescapeTest: /&(#(?:\d+)|(?:#x[0-9A-Fa-f]+)|(?:\w+));?/ig, caret: /(^|[^\[])\^/g, percentDecode: /%25/g, findPipe: /\|/g, splitPipe: / \|/, slashPipe: /\\\|/g, carriageReturn: /\r\n|\r/g, spaceLine: /^ +$/gm, notSpaceStart: /^\S*/, endingNewline: /\n$/, listItemRegex: (r) => new RegExp(`^( {0,3}${r})((?:[ ][^\\n]*)?(?:\\n|$))`), nextBulletRegex: (r) => new RegExp(`^ {0,${Math.min(3, r - 1)}}(?:[*+-]|\\d{1,9}[.)])((?:[ ][^\\n]*)?(?:\\n|$))`), hrRegex: (r) => new RegExp(`^ {0,${Math.min(3, r - 1)}}((?:- *){3,}|(?:_ *){3,}|(?:\\* *){3,})(?:\\n+|$)`), fencesBeginRegex: (r) => new RegExp(`^ {0,${Math.min(3, r - 1)}}(?:\`\`\`|~~~)`), headingBeginRegex: (r) => new RegExp(`^ {0,${Math.min(3, r - 1)}}#`), htmlBeginRegex: (r) => new RegExp(`^ {0,${Math.min(3, r - 1)}}<(?:[a-z].*>|!--)`, "i") }, xu = /^(?:[ \t]*(?:\n|$))+/, ku = /^((?: {4}| {0,3}\t)[^\n]+(?:\n(?:[ \t]*(?:\n|$))*)?)+/, Cu = /^ {0,3}(`{3,}(?=[^`\n]*(?:\n|$))|~{3,})([^\n]*)(?:\n|$)(?:|([\s\S]*?)(?:\n|$))(?: {0,3}\1[~`]* *(?=\n|$)|$)/, Ls = /^ {0,3}((?:-[\t ]*){3,}|(?:_[ \t]*){3,}|(?:\*[ \t]*){3,})(?:\n+|$)/, Su = /^ {0,3}(#{1,6})(?=\s|$)(.*)(?:\n+|$)/, vr = /(?:[*+-]|\d{1,9}[.)])/, Wo = /^(?!bull |blockCode|fences|blockquote|heading|html|table)((?:.|\n(?!\s*?\n|bull |blockCode|fences|blockquote|heading|html|table))+?)\n {0,3}(=+|-+) *(?:\n+|$)/, No =
|
|
6938
|
-
]`).replace("lheading", No).replace("|table", "").replace("blockquote", " {0,3}>").replace("|fences", "").replace("|list", "").replace("|html", "").replace("|tag", "").getRegex() }, Lu = /^\\([!"#$%&'()*+,\-./:;<=>?@\[\]\\^_`{|}~])/, Bu = /^(`+)([^`]|[^`][\s\S]*?[^`])\1(?!`)/, jo = /^( {2,}|\\)\n(?!\s*$)/, Iu = /^(`+|[^`])(?:(?= {2,}\n)|[\s\S]*?(?:(?=[\\<!\[`*_]|\b_|$)|[^ ](?= {2,}\n)))/, an = /[\p{P}\p{S}]/u, Sr = /[\s\p{P}\p{S}]/u, qo = /[^\s\p{P}\p{S}]/u, Ou =
|
|
6937
|
+
})(), ze = { codeRemoveIndent: /^(?: {1,4}| {0,3}\t)/gm, outputLinkReplace: /\\([\[\]])/g, indentCodeCompensation: /^(\s+)(?:```)/, beginningSpace: /^\s+/, endingHash: /#$/, startingSpaceChar: /^ /, endingSpaceChar: / $/, nonSpaceChar: /[^ ]/, newLineCharGlobal: /\n/g, tabCharGlobal: /\t/g, multipleSpaceGlobal: /\s+/g, blankLine: /^[ \t]*$/, doubleBlankLine: /\n[ \t]*\n[ \t]*$/, blockquoteStart: /^ {0,3}>/, blockquoteSetextReplace: /\n {0,3}((?:=+|-+) *)(?=\n|$)/g, blockquoteSetextReplace2: /^ {0,3}>[ \t]?/gm, listReplaceTabs: /^\t+/, listReplaceNesting: /^ {1,4}(?=( {4})*[^ ])/g, listIsTask: /^\[[ xX]\] +\S/, listReplaceTask: /^\[[ xX]\] +/, listTaskCheckbox: /\[[ xX]\]/, anyLine: /\n.*\n/, hrefBrackets: /^<(.*)>$/, tableDelimiter: /[:|]/, tableAlignChars: /^\||\| *$/g, tableRowBlankLine: /\n[ \t]*$/, tableAlignRight: /^ *-+: *$/, tableAlignCenter: /^ *:-+: *$/, tableAlignLeft: /^ *:-+ *$/, startATag: /^<a /i, endATag: /^<\/a>/i, startPreScriptTag: /^<(pre|code|kbd|script)(\s|>)/i, endPreScriptTag: /^<\/(pre|code|kbd|script)(\s|>)/i, startAngleBracket: /^</, endAngleBracket: />$/, pedanticHrefTitle: /^([^'"]*[^\s])\s+(['"])(.*)\2/, unicodeAlphaNumeric: /[\p{L}\p{N}]/u, escapeTest: /[&<>"']/, escapeReplace: /[&<>"']/g, escapeTestNoEncode: /[<>"']|&(?!(#\d{1,7}|#[Xx][a-fA-F0-9]{1,6}|\w+);)/, escapeReplaceNoEncode: /[<>"']|&(?!(#\d{1,7}|#[Xx][a-fA-F0-9]{1,6}|\w+);)/g, unescapeTest: /&(#(?:\d+)|(?:#x[0-9A-Fa-f]+)|(?:\w+));?/ig, caret: /(^|[^\[])\^/g, percentDecode: /%25/g, findPipe: /\|/g, splitPipe: / \|/, slashPipe: /\\\|/g, carriageReturn: /\r\n|\r/g, spaceLine: /^ +$/gm, notSpaceStart: /^\S*/, endingNewline: /\n$/, listItemRegex: (r) => new RegExp(`^( {0,3}${r})((?:[ ][^\\n]*)?(?:\\n|$))`), nextBulletRegex: (r) => new RegExp(`^ {0,${Math.min(3, r - 1)}}(?:[*+-]|\\d{1,9}[.)])((?:[ ][^\\n]*)?(?:\\n|$))`), hrRegex: (r) => new RegExp(`^ {0,${Math.min(3, r - 1)}}((?:- *){3,}|(?:_ *){3,}|(?:\\* *){3,})(?:\\n+|$)`), fencesBeginRegex: (r) => new RegExp(`^ {0,${Math.min(3, r - 1)}}(?:\`\`\`|~~~)`), headingBeginRegex: (r) => new RegExp(`^ {0,${Math.min(3, r - 1)}}#`), htmlBeginRegex: (r) => new RegExp(`^ {0,${Math.min(3, r - 1)}}<(?:[a-z].*>|!--)`, "i") }, xu = /^(?:[ \t]*(?:\n|$))+/, ku = /^((?: {4}| {0,3}\t)[^\n]+(?:\n(?:[ \t]*(?:\n|$))*)?)+/, Cu = /^ {0,3}(`{3,}(?=[^`\n]*(?:\n|$))|~{3,})([^\n]*)(?:\n|$)(?:|([\s\S]*?)(?:\n|$))(?: {0,3}\1[~`]* *(?=\n|$)|$)/, Ls = /^ {0,3}((?:-[\t ]*){3,}|(?:_[ \t]*){3,}|(?:\*[ \t]*){3,})(?:\n+|$)/, Su = /^ {0,3}(#{1,6})(?=\s|$)(.*)(?:\n+|$)/, vr = /(?:[*+-]|\d{1,9}[.)])/, Wo = /^(?!bull |blockCode|fences|blockquote|heading|html|table)((?:.|\n(?!\s*?\n|bull |blockCode|fences|blockquote|heading|html|table))+?)\n {0,3}(=+|-+) *(?:\n+|$)/, No = Y(Wo).replace(/bull/g, vr).replace(/blockCode/g, /(?: {4}| {0,3}\t)/).replace(/fences/g, / {0,3}(?:`{3,}|~{3,})/).replace(/blockquote/g, / {0,3}>/).replace(/heading/g, / {0,3}#{1,6}/).replace(/html/g, / {0,3}<[^\n>]+>\n/).replace(/\|table/g, "").getRegex(), Tu = Y(Wo).replace(/bull/g, vr).replace(/blockCode/g, /(?: {4}| {0,3}\t)/).replace(/fences/g, / {0,3}(?:`{3,}|~{3,})/).replace(/blockquote/g, / {0,3}>/).replace(/heading/g, / {0,3}#{1,6}/).replace(/html/g, / {0,3}<[^\n>]+>\n/).replace(/table/g, / {0,3}\|?(?:[:\- ]*\|)+[\:\- ]*\n/).getRegex(), _r = /^([^\n]+(?:\n(?!hr|heading|lheading|blockquote|fences|list|html|table| +\n)[^\n]+)*)/, Ru = /^[^\n]+/, xr = /(?!\s*\])(?:\\[\s\S]|[^\[\]\\])+/, zu = Y(/^ {0,3}\[(label)\]: *(?:\n[ \t]*)?([^<\s][^\s]*|<.*?>)(?:(?: +(?:\n[ \t]*)?| *\n[ \t]*)(title))? *(?:\n+|$)/).replace("label", xr).replace("title", /(?:"(?:\\"?|[^"\\])*"|'[^'\n]*(?:\n[^'\n]+)*\n?'|\([^()]*\))/).getRegex(), Mu = Y(/^( {0,3}bull)([ \t][^\n]+?)?(?:\n|$)/).replace(/bull/g, vr).getRegex(), on = "address|article|aside|base|basefont|blockquote|body|caption|center|col|colgroup|dd|details|dialog|dir|div|dl|dt|fieldset|figcaption|figure|footer|form|frame|frameset|h[1-6]|head|header|hr|html|iframe|legend|li|link|main|menu|menuitem|meta|nav|noframes|ol|optgroup|option|p|param|search|section|summary|table|tbody|td|tfoot|th|thead|title|tr|track|ul", kr = /<!--(?:-?>|[\s\S]*?(?:-->|$))/, Pu = Y("^ {0,3}(?:<(script|pre|style|textarea)[\\s>][\\s\\S]*?(?:</\\1>[^\\n]*\\n+|$)|comment[^\\n]*(\\n+|$)|<\\?[\\s\\S]*?(?:\\?>\\n*|$)|<![A-Z][\\s\\S]*?(?:>\\n*|$)|<!\\[CDATA\\[[\\s\\S]*?(?:\\]\\]>\\n*|$)|</?(tag)(?: +|\\n|/?>)[\\s\\S]*?(?:(?:\\n[ ]*)+\\n|$)|<(?!script|pre|style|textarea)([a-z][\\w-]*)(?:attribute)*? */?>(?=[ \\t]*(?:\\n|$))[\\s\\S]*?(?:(?:\\n[ ]*)+\\n|$)|</(?!script|pre|style|textarea)[a-z][\\w-]*\\s*>(?=[ \\t]*(?:\\n|$))[\\s\\S]*?(?:(?:\\n[ ]*)+\\n|$))", "i").replace("comment", kr).replace("tag", on).replace("attribute", / +[a-zA-Z:_][\w.:-]*(?: *= *"[^"\n]*"| *= *'[^'\n]*'| *= *[^\s"'=<>`]+)?/).getRegex(), Ho = Y(_r).replace("hr", Ls).replace("heading", " {0,3}#{1,6}(?:\\s|$)").replace("|lheading", "").replace("|table", "").replace("blockquote", " {0,3}>").replace("fences", " {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list", " {0,3}(?:[*+-]|1[.)]) ").replace("html", "</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|textarea|!--)").replace("tag", on).getRegex(), Au = Y(/^( {0,3}> ?(paragraph|[^\n]*)(?:\n|$))+/).replace("paragraph", Ho).getRegex(), Cr = { blockquote: Au, code: ku, def: zu, fences: Cu, heading: Su, hr: Ls, html: Pu, lheading: No, list: Mu, newline: xu, paragraph: Ho, table: Cs, text: Ru }, hi = Y("^ *([^\\n ].*)\\n {0,3}((?:\\| *)?:?-+:? *(?:\\| *:?-+:? *)*(?:\\| *)?)(?:\\n((?:(?! *\\n|hr|heading|blockquote|code|fences|list|html).*(?:\\n|$))*)\\n*|$)").replace("hr", Ls).replace("heading", " {0,3}#{1,6}(?:\\s|$)").replace("blockquote", " {0,3}>").replace("code", "(?: {4}| {0,3} )[^\\n]").replace("fences", " {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list", " {0,3}(?:[*+-]|1[.)]) ").replace("html", "</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|textarea|!--)").replace("tag", on).getRegex(), Du = { ...Cr, lheading: Tu, table: hi, paragraph: Y(_r).replace("hr", Ls).replace("heading", " {0,3}#{1,6}(?:\\s|$)").replace("|lheading", "").replace("table", hi).replace("blockquote", " {0,3}>").replace("fences", " {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list", " {0,3}(?:[*+-]|1[.)]) ").replace("html", "</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|textarea|!--)").replace("tag", on).getRegex() }, Eu = { ...Cr, html: Y(`^ *(?:comment *(?:\\n|\\s*$)|<(tag)[\\s\\S]+?</\\1> *(?:\\n{2,}|\\s*$)|<tag(?:"[^"]*"|'[^']*'|\\s[^'"/>\\s]*)*?/?> *(?:\\n{2,}|\\s*$))`).replace("comment", kr).replace(/tag/g, "(?!(?:a|em|strong|small|s|cite|q|dfn|abbr|data|time|code|var|samp|kbd|sub|sup|i|b|u|mark|ruby|rt|rp|bdi|bdo|span|br|wbr|ins|del|img)\\b)\\w+(?!:|[^\\w\\s@]*@)\\b").getRegex(), def: /^ *\[([^\]]+)\]: *<?([^\s>]+)>?(?: +(["(][^\n]+[")]))? *(?:\n+|$)/, heading: /^(#{1,6})(.*)(?:\n+|$)/, fences: Cs, lheading: /^(.+?)\n {0,3}(=+|-+) *(?:\n+|$)/, paragraph: Y(_r).replace("hr", Ls).replace("heading", ` *#{1,6} *[^
|
|
6938
|
+
]`).replace("lheading", No).replace("|table", "").replace("blockquote", " {0,3}>").replace("|fences", "").replace("|list", "").replace("|html", "").replace("|tag", "").getRegex() }, Lu = /^\\([!"#$%&'()*+,\-./:;<=>?@\[\]\\^_`{|}~])/, Bu = /^(`+)([^`]|[^`][\s\S]*?[^`])\1(?!`)/, jo = /^( {2,}|\\)\n(?!\s*$)/, Iu = /^(`+|[^`])(?:(?= {2,}\n)|[\s\S]*?(?:(?=[\\<!\[`*_]|\b_|$)|[^ ](?= {2,}\n)))/, an = /[\p{P}\p{S}]/u, Sr = /[\s\p{P}\p{S}]/u, qo = /[^\s\p{P}\p{S}]/u, Ou = Y(/^((?![*_])punctSpace)/, "u").replace(/punctSpace/g, Sr).getRegex(), Go = /(?!~)[\p{P}\p{S}]/u, $u = /(?!~)[\s\p{P}\p{S}]/u, Ku = /(?:[^\s\p{P}\p{S}]|~)/u, Fu = Y(/link|precode-code|html/, "g").replace("link", /\[(?:[^\[\]`]|(?<a>`+)[^`]+\k<a>(?!`))*?\]\((?:\\[\s\S]|[^\\\(\)]|\((?:\\[\s\S]|[^\\\(\)])*\))*\)/).replace("precode-", _u ? "(?<!`)()" : "(^^|[^`])").replace("code", /(?<b>`+)[^`]+\k<b>(?!`)/).replace("html", /<(?! )[^<>]*?>/).getRegex(), Zo = /^(?:\*+(?:((?!\*)punct)|[^\s*]))|^_+(?:((?!_)punct)|([^\s_]))/, Uu = Y(Zo, "u").replace(/punct/g, an).getRegex(), Vu = Y(Zo, "u").replace(/punct/g, Go).getRegex(), Xo = "^[^_*]*?__[^_*]*?\\*[^_*]*?(?=__)|[^*]+(?=[^*])|(?!\\*)punct(\\*+)(?=[\\s]|$)|notPunctSpace(\\*+)(?!\\*)(?=punctSpace|$)|(?!\\*)punctSpace(\\*+)(?=notPunctSpace)|[\\s](\\*+)(?!\\*)(?=punct)|(?!\\*)punct(\\*+)(?!\\*)(?=punct)|notPunctSpace(\\*+)(?=notPunctSpace)", Wu = Y(Xo, "gu").replace(/notPunctSpace/g, qo).replace(/punctSpace/g, Sr).replace(/punct/g, an).getRegex(), Nu = Y(Xo, "gu").replace(/notPunctSpace/g, Ku).replace(/punctSpace/g, $u).replace(/punct/g, Go).getRegex(), Hu = Y("^[^_*]*?\\*\\*[^_*]*?_[^_*]*?(?=\\*\\*)|[^_]+(?=[^_])|(?!_)punct(_+)(?=[\\s]|$)|notPunctSpace(_+)(?!_)(?=punctSpace|$)|(?!_)punctSpace(_+)(?=notPunctSpace)|[\\s](_+)(?!_)(?=punct)|(?!_)punct(_+)(?!_)(?=punct)", "gu").replace(/notPunctSpace/g, qo).replace(/punctSpace/g, Sr).replace(/punct/g, an).getRegex(), ju = Y(/\\(punct)/, "gu").replace(/punct/g, an).getRegex(), qu = Y(/^<(scheme:[^\s\x00-\x1f<>]*|email)>/).replace("scheme", /[a-zA-Z][a-zA-Z0-9+.-]{1,31}/).replace("email", /[a-zA-Z0-9.!#$%&'*+/=?^_`{|}~-]+(@)[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?)+(?![-_])/).getRegex(), Gu = Y(kr).replace("(?:-->|$)", "-->").getRegex(), Zu = Y("^comment|^</[a-zA-Z][\\w:-]*\\s*>|^<[a-zA-Z][\\w-]*(?:attribute)*?\\s*/?>|^<\\?[\\s\\S]*?\\?>|^<![a-zA-Z]+\\s[\\s\\S]*?>|^<!\\[CDATA\\[[\\s\\S]*?\\]\\]>").replace("comment", Gu).replace("attribute", /\s+[a-zA-Z:_][\w.:-]*(?:\s*=\s*"[^"]*"|\s*=\s*'[^']*'|\s*=\s*[^\s"'=<>`]+)?/).getRegex(), Js = /(?:\[(?:\\[\s\S]|[^\[\]\\])*\]|\\[\s\S]|`+[^`]*?`+(?!`)|[^\[\]\\`])*?/, Xu = Y(/^!?\[(label)\]\(\s*(href)(?:(?:[ \t]*(?:\n[ \t]*)?)(title))?\s*\)/).replace("label", Js).replace("href", /<(?:\\.|[^\n<>\\])+>|[^ \t\n\x00-\x1f]*/).replace("title", /"(?:\\"?|[^"\\])*"|'(?:\\'?|[^'\\])*'|\((?:\\\)?|[^)\\])*\)/).getRegex(), Yo = Y(/^!?\[(label)\]\[(ref)\]/).replace("label", Js).replace("ref", xr).getRegex(), Qo = Y(/^!?\[(ref)\](?:\[\])?/).replace("ref", xr).getRegex(), Yu = Y("reflink|nolink(?!\\()", "g").replace("reflink", Yo).replace("nolink", Qo).getRegex(), pi = /[hH][tT][tT][pP][sS]?|[fF][tT][pP]/, Tr = { _backpedal: Cs, anyPunctuation: ju, autolink: qu, blockSkip: Fu, br: jo, code: Bu, del: Cs, emStrongLDelim: Uu, emStrongRDelimAst: Wu, emStrongRDelimUnd: Hu, escape: Lu, link: Xu, nolink: Qo, punctuation: Ou, reflink: Yo, reflinkSearch: Yu, tag: Zu, text: Iu, url: Cs }, Qu = { ...Tr, link: Y(/^!?\[(label)\]\((.*?)\)/).replace("label", Js).getRegex(), reflink: Y(/^!?\[(label)\]\s*\[([^\]]*)\]/).replace("label", Js).getRegex() }, Xn = { ...Tr, emStrongRDelimAst: Nu, emStrongLDelim: Vu, url: Y(/^((?:protocol):\/\/|www\.)(?:[a-zA-Z0-9\-]+\.?)+[^\s<]*|^email/).replace("protocol", pi).replace("email", /[A-Za-z0-9._+-]+(@)[a-zA-Z0-9-_]+(?:\.[a-zA-Z0-9-_]*[a-zA-Z0-9])+(?![-_])/).getRegex(), _backpedal: /(?:[^?!.,:;*_'"~()&]+|\([^)]*\)|&(?![a-zA-Z0-9]+;$)|[?!.,:;*_'"~)]+(?!$))+/, del: /^(~~?)(?=[^\s~])((?:\\[\s\S]|[^\\])*?(?:\\[\s\S]|[^\s~\\]))\1(?=[^~]|$)/, text: Y(/^([`~]+|[^`~])(?:(?= {2,}\n)|(?=[a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-]+@)|[\s\S]*?(?:(?=[\\<!\[`*~_]|\b_|protocol:\/\/|www\.|$)|[^ ](?= {2,}\n)|[^a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-](?=[a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-]+@)))/).replace("protocol", pi).getRegex() }, Ju = { ...Xn, br: Y(jo).replace("{2,}", "*").getRegex(), text: Y(Xn.text).replace("\\b_", "\\b_| {2,}\\n").replace(/\{2,\}/g, "*").getRegex() }, Fs = { normal: Cr, gfm: Du, pedantic: Eu }, fs = { normal: Tr, gfm: Xn, breaks: Ju, pedantic: Qu }, ed = { "&": "&", "<": "<", ">": ">", '"': """, "'": "'" }, gi = (r) => ed[r];
|
|
6939
6939
|
function ft(r, e) {
|
|
6940
6940
|
if (e) {
|
|
6941
6941
|
if (ze.escapeTest.test(r)) return r.replace(ze.escapeReplace, gi);
|
|
@@ -7297,7 +7297,7 @@ ${u}` : u;
|
|
|
7297
7297
|
return { type: "text", raw: e[0], text: e[0], escaped: t };
|
|
7298
7298
|
}
|
|
7299
7299
|
}
|
|
7300
|
-
},
|
|
7300
|
+
}, Ye = class Yn {
|
|
7301
7301
|
constructor(e) {
|
|
7302
7302
|
V(this, "tokens");
|
|
7303
7303
|
V(this, "options");
|
|
@@ -7312,10 +7312,10 @@ ${u}` : u;
|
|
|
7312
7312
|
return { block: Fs, inline: fs };
|
|
7313
7313
|
}
|
|
7314
7314
|
static lex(e, t) {
|
|
7315
|
-
return new
|
|
7315
|
+
return new Yn(t).lex(e);
|
|
7316
7316
|
}
|
|
7317
7317
|
static lexInline(e, t) {
|
|
7318
|
-
return new
|
|
7318
|
+
return new Yn(t).inlineTokens(e);
|
|
7319
7319
|
}
|
|
7320
7320
|
lex(e) {
|
|
7321
7321
|
e = e.replace(ze.carriageReturn, `
|
|
@@ -7825,7 +7825,7 @@ ${r}</tr>
|
|
|
7825
7825
|
return r;
|
|
7826
7826
|
}
|
|
7827
7827
|
provideLexer() {
|
|
7828
|
-
return this.block ?
|
|
7828
|
+
return this.block ? Ye.lex : Ye.lexInline;
|
|
7829
7829
|
}
|
|
7830
7830
|
provideParser() {
|
|
7831
7831
|
return this.block ? Qe.parse : Qe.parseInline;
|
|
@@ -7839,7 +7839,7 @@ ${r}</tr>
|
|
|
7839
7839
|
V(this, "Parser", Qe);
|
|
7840
7840
|
V(this, "Renderer", tn);
|
|
7841
7841
|
V(this, "TextRenderer", Rr);
|
|
7842
|
-
V(this, "Lexer",
|
|
7842
|
+
V(this, "Lexer", Ye);
|
|
7843
7843
|
V(this, "Tokenizer", en);
|
|
7844
7844
|
V(this, "Hooks", vs);
|
|
7845
7845
|
this.use(...r);
|
|
@@ -7952,7 +7952,7 @@ ${r}</tr>
|
|
|
7952
7952
|
return this.defaults = { ...this.defaults, ...r }, this;
|
|
7953
7953
|
}
|
|
7954
7954
|
lexer(r, e) {
|
|
7955
|
-
return
|
|
7955
|
+
return Ye.lex(r, e ?? this.defaults);
|
|
7956
7956
|
}
|
|
7957
7957
|
parser(r, e) {
|
|
7958
7958
|
return Qe.parse(r, e ?? this.defaults);
|
|
@@ -7964,14 +7964,14 @@ ${r}</tr>
|
|
|
7964
7964
|
if (typeof e > "u" || e === null) return i(new Error("marked(): input parameter is undefined or null"));
|
|
7965
7965
|
if (typeof e != "string") return i(new Error("marked(): input parameter is of type " + Object.prototype.toString.call(e) + ", string expected"));
|
|
7966
7966
|
if (n.hooks && (n.hooks.options = n, n.hooks.block = r), n.async) return (async () => {
|
|
7967
|
-
let o = n.hooks ? await n.hooks.preprocess(e) : e, a = await (n.hooks ? await n.hooks.provideLexer() : r ?
|
|
7967
|
+
let o = n.hooks ? await n.hooks.preprocess(e) : e, a = await (n.hooks ? await n.hooks.provideLexer() : r ? Ye.lex : Ye.lexInline)(o, n), l = n.hooks ? await n.hooks.processAllTokens(a) : a;
|
|
7968
7968
|
n.walkTokens && await Promise.all(this.walkTokens(l, n.walkTokens));
|
|
7969
7969
|
let c = await (n.hooks ? await n.hooks.provideParser() : r ? Qe.parse : Qe.parseInline)(l, n);
|
|
7970
7970
|
return n.hooks ? await n.hooks.postprocess(c) : c;
|
|
7971
7971
|
})().catch(i);
|
|
7972
7972
|
try {
|
|
7973
7973
|
n.hooks && (e = n.hooks.preprocess(e));
|
|
7974
|
-
let o = (n.hooks ? n.hooks.provideLexer() : r ?
|
|
7974
|
+
let o = (n.hooks ? n.hooks.provideLexer() : r ? Ye.lex : Ye.lexInline)(e, n);
|
|
7975
7975
|
n.hooks && (o = n.hooks.processAllTokens(o)), n.walkTokens && this.walkTokens(o, n.walkTokens);
|
|
7976
7976
|
let a = (n.hooks ? n.hooks.provideParser() : r ? Qe.parse : Qe.parseInline)(o, n);
|
|
7977
7977
|
return n.hooks && (a = n.hooks.postprocess(a)), a;
|
|
@@ -8011,8 +8011,8 @@ se.Parser = Qe;
|
|
|
8011
8011
|
se.parser = Qe.parse;
|
|
8012
8012
|
se.Renderer = tn;
|
|
8013
8013
|
se.TextRenderer = Rr;
|
|
8014
|
-
se.Lexer =
|
|
8015
|
-
se.lexer =
|
|
8014
|
+
se.Lexer = Ye;
|
|
8015
|
+
se.lexer = Ye.lex;
|
|
8016
8016
|
se.Tokenizer = en;
|
|
8017
8017
|
se.Hooks = vs;
|
|
8018
8018
|
se.parse = se;
|
|
@@ -8022,7 +8022,7 @@ se.use;
|
|
|
8022
8022
|
se.walkTokens;
|
|
8023
8023
|
se.parseInline;
|
|
8024
8024
|
Qe.parse;
|
|
8025
|
-
|
|
8025
|
+
Ye.lex;
|
|
8026
8026
|
const rd = {
|
|
8027
8027
|
key: "message",
|
|
8028
8028
|
class: "message-text tw:flex tw:items-end tw:gap-1 tw:transition-all"
|
|
@@ -8068,7 +8068,7 @@ const rd = {
|
|
|
8068
8068
|
}), p = z(() => e.message.text ? se.parse(e.message.text) : "");
|
|
8069
8069
|
return (g, h) => {
|
|
8070
8070
|
var f, d, w, v;
|
|
8071
|
-
return
|
|
8071
|
+
return E(), B("li", {
|
|
8072
8072
|
class: te(["message-item tw:transition-all tw:text-white tw:w-fit tw:whitespace-break-spaces tw:transition-colors tw:duration-[250ms] tw:ease-[ease]", [u.value, {
|
|
8073
8073
|
"item-primary": !((f = g.message.chunk) != null && f.start)
|
|
8074
8074
|
}]]),
|
|
@@ -8086,14 +8086,14 @@ const rd = {
|
|
|
8086
8086
|
class: "tw:flex-1 markdown-content",
|
|
8087
8087
|
innerHTML: p.value
|
|
8088
8088
|
}, null, 8, id),
|
|
8089
|
-
s.value && g.message.text && !((v = g.message.chunk) != null && v.start) ? (
|
|
8089
|
+
s.value && g.message.text && !((v = g.message.chunk) != null && v.start) ? (E(), B("button", {
|
|
8090
8090
|
key: 0,
|
|
8091
8091
|
class: te(["tts-button tw:flex-shrink-0 tw:opacity-0 tw:transition-opacity tw:duration-200 tw:p-0.5 tw:rounded hover:tw:bg-white/10 tw:self-end", { "tw:opacity-100": l.value || F(o) || F(a), "tts-speaking": F(o), "tts-loading": F(a) }]),
|
|
8092
|
-
onClick:
|
|
8092
|
+
onClick: Yt(c, ["stop"]),
|
|
8093
8093
|
title: F(a) ? "Loading..." : F(o) ? "Stop" : "Speak",
|
|
8094
8094
|
disabled: F(a)
|
|
8095
8095
|
}, [
|
|
8096
|
-
(
|
|
8096
|
+
(E(), lt(_i(F(o) ? F(vu) : F(yu)), {
|
|
8097
8097
|
class: "tw:w-3.5 tw:h-3.5",
|
|
8098
8098
|
style: K({ color: g.color, opacity: 0.6 })
|
|
8099
8099
|
}, null, 8, ["style"]))
|
|
@@ -8127,7 +8127,7 @@ const rd = {
|
|
|
8127
8127
|
return e.bgType === "bubble" ? " tw:min-h-[40px] tw:py-3 tw:px-4" : "";
|
|
8128
8128
|
}
|
|
8129
8129
|
}), s = z(() => e.bgType === "bubble" ? e.borderWidth + "px solid " + e.borderColor : "none");
|
|
8130
|
-
return (n, i) => (
|
|
8130
|
+
return (n, i) => (E(), B("li", {
|
|
8131
8131
|
class: te(["message-item tw:transition-all tw:w-fit tw:whitespace-break-spaces item-secondary tw:ml-auto", [
|
|
8132
8132
|
t.value,
|
|
8133
8133
|
{
|
|
@@ -8187,7 +8187,7 @@ const rd = {
|
|
|
8187
8187
|
n && n.disconnect();
|
|
8188
8188
|
}), kt(() => e.text, () => Ot(i));
|
|
8189
8189
|
const o = z(() => !!e.paused || s.value);
|
|
8190
|
-
return (a, l) => (
|
|
8190
|
+
return (a, l) => (E(), B("li", {
|
|
8191
8191
|
key: "loading",
|
|
8192
8192
|
ref_key: "rootRef",
|
|
8193
8193
|
ref: t,
|
|
@@ -8198,24 +8198,24 @@ const rd = {
|
|
|
8198
8198
|
mode: "out-in"
|
|
8199
8199
|
}, {
|
|
8200
8200
|
default: Fe(() => [
|
|
8201
|
-
o.value ? (
|
|
8201
|
+
o.value ? (E(), B("div", {
|
|
8202
8202
|
key: "complete-step-icon",
|
|
8203
8203
|
innerHTML: a.configDesignClass.getKey("sections.loader.completeStep.icon.src"),
|
|
8204
8204
|
class: "svg-inherit",
|
|
8205
8205
|
style: K({ color: a.configDesignClass.getKey("sections.loader.completeStep.icon.color"), height: a.configDesignClass.getKey("sections.loader.completeStep.icon.size") + "px", width: a.configDesignClass.getKey("sections.loader.completeStep.icon.size") + "px" })
|
|
8206
|
-
}, null, 12, cd)) : !a.loader || a.loader === "dots" ? (
|
|
8206
|
+
}, null, 12, cd)) : !a.loader || a.loader === "dots" ? (E(), B("div", ud, l[0] || (l[0] = [
|
|
8207
8207
|
I("div", { class: "loading-dot tw:rounded-full" }, null, -1),
|
|
8208
8208
|
I("div", { class: "loading-dot loading-dot-delay-1 tw:rounded-full" }, null, -1),
|
|
8209
8209
|
I("div", { class: "loading-dot loading-dot-delay-2 tw:rounded-full" }, null, -1),
|
|
8210
8210
|
I("div", { class: "loading-dot loading-dot-delay-3 tw:rounded-full" }, null, -1)
|
|
8211
|
-
]))) : a.loader === "dots-pulse" ? (
|
|
8211
|
+
]))) : a.loader === "dots-pulse" ? (E(), B("div", dd, l[1] || (l[1] = [
|
|
8212
8212
|
I("span", { class: "dot-pulse dot-1" }, null, -1),
|
|
8213
8213
|
I("span", { class: "dot-pulse dot-2" }, null, -1),
|
|
8214
8214
|
I("span", { class: "dot-pulse dot-3" }, null, -1)
|
|
8215
|
-
]))) : a.loader === "circle-pulse" ? (
|
|
8215
|
+
]))) : a.loader === "circle-pulse" ? (E(), B("div", hd, l[2] || (l[2] = [
|
|
8216
8216
|
I("span", { class: "ring ring-1" }, null, -1),
|
|
8217
8217
|
I("span", { class: "ring ring-2" }, null, -1)
|
|
8218
|
-
]))) : a.loader === "circle-pulse-1" ? (
|
|
8218
|
+
]))) : a.loader === "circle-pulse-1" ? (E(), B("div", pd, l[3] || (l[3] = [
|
|
8219
8219
|
I("span", { class: "ripple r1" }, null, -1),
|
|
8220
8220
|
I("span", { class: "ripple r2" }, null, -1),
|
|
8221
8221
|
I("span", { class: "center" }, null, -1)
|
|
@@ -8230,7 +8230,7 @@ const rd = {
|
|
|
8230
8230
|
default: Fe(() => {
|
|
8231
8231
|
var c, u, p, g;
|
|
8232
8232
|
return [
|
|
8233
|
-
(
|
|
8233
|
+
(E(), B("span", {
|
|
8234
8234
|
class: te(["tw:transition-all tw:text-sm", { "typing-shimmer": !o.value }]),
|
|
8235
8235
|
key: a.text,
|
|
8236
8236
|
"data-text": (c = a.message) != null && c.text ? (u = a.message) == null ? void 0 : u.text : a.text,
|
|
@@ -8247,7 +8247,7 @@ const rd = {
|
|
|
8247
8247
|
for (const [s, n] of e)
|
|
8248
8248
|
t[s] = n;
|
|
8249
8249
|
return t;
|
|
8250
|
-
}, bi = /* @__PURE__ */ md(fd, [["__scopeId", "data-v-
|
|
8250
|
+
}, bi = /* @__PURE__ */ md(fd, [["__scopeId", "data-v-75012706"]]), wd = ["data-height"], bd = { class: "tw:transition-all tw:flex tw:flex-col tw:items-center tw:gap-1 tw:px-1" }, yd = ["innerHTML"], vd = { class: "tw:transition-all tw:flex tw:items-center tw:gap-2" }, _d = /* @__PURE__ */ Se({
|
|
8251
8251
|
__name: "MessageSystem",
|
|
8252
8252
|
props: {
|
|
8253
8253
|
message: {},
|
|
@@ -8283,7 +8283,7 @@ const rd = {
|
|
|
8283
8283
|
), c = z(
|
|
8284
8284
|
() => br(e.configDesignClass, "inside")
|
|
8285
8285
|
);
|
|
8286
|
-
return (u, p) => (
|
|
8286
|
+
return (u, p) => (E(), B("li", {
|
|
8287
8287
|
class: te(["message-system tw:text-left tw:relative tw:w-full tw:text-white tw:w-fit tw:whitespace-break-spaces tw:transition-colors tw:duration-[250ms] tw:ease-[ease]", s.value]),
|
|
8288
8288
|
"data-height": u.configDesignClass.getKey("sections.loader.completeStep.verticalSpacing"),
|
|
8289
8289
|
style: K({ "padding-top": u.configDesignClass.getKey("sections.loader.completeStep.verticalSpacing") + "px" })
|
|
@@ -8308,11 +8308,11 @@ const rd = {
|
|
|
8308
8308
|
}, null, 14, yd)
|
|
8309
8309
|
]),
|
|
8310
8310
|
I("div", vd, [
|
|
8311
|
-
u.message.meta ? ne("", !0) : (
|
|
8311
|
+
u.message.meta ? ne("", !0) : (E(), B("p", {
|
|
8312
8312
|
key: 0,
|
|
8313
8313
|
style: K({ color: a.value, "font-size": u.configDesignClass.getKey("sections.loader.completeStep.fontSize") + "px" })
|
|
8314
8314
|
}, Je(u.message.text), 5)),
|
|
8315
|
-
u.message.meta ? (
|
|
8315
|
+
u.message.meta ? (E(), lt(F(bt), {
|
|
8316
8316
|
key: 1,
|
|
8317
8317
|
style: K({
|
|
8318
8318
|
color: e.activeMessage ? "rgba(255, 255, 255, 0.60)" : "#3F3F46",
|
|
@@ -8581,7 +8581,7 @@ const Sd = ["innerHTML"], Td = /* @__PURE__ */ Se({
|
|
|
8581
8581
|
const k = S.closest("[data-cb]"), T = k == null ? void 0 : k.getAttribute("data-cb");
|
|
8582
8582
|
T && ((O = t.message.snippet) != null && O.sequence) && b("action", T, t.message.snippet.sequence);
|
|
8583
8583
|
};
|
|
8584
|
-
return (x, S) => (
|
|
8584
|
+
return (x, S) => (E(), B("div", {
|
|
8585
8585
|
class: "tw:mt-1 tw:mb-1 tw:max-w-[65%]",
|
|
8586
8586
|
onClick: m,
|
|
8587
8587
|
innerHTML: _.value
|
|
@@ -8640,13 +8640,13 @@ const Sd = ["innerHTML"], Td = /* @__PURE__ */ Se({
|
|
|
8640
8640
|
return "tw:px-4.5 tw:py-5.5";
|
|
8641
8641
|
}
|
|
8642
8642
|
}), g = z(() => s.configDesignClass.getKey("sections.inside.welcomeMessage.bgType") === "gradient" ? u(s.configDesignClass.getKey("sections.inside.welcomeMessage.bgColor")) : s.configDesignClass.getKey("sections.inside.welcomeMessage.bgType") === "bubble" ? s.configDesignClass.getKey("sections.inside.welcomeMessage.bgColor") : "transparent"), h = (f) => s.configDesignClass.getKey("settings.globalRoundingRadius") ? s.sectionBorderRadius.borderRadius : s.configDesignClass.getKey(f ? "sections.inside.messageUser.borderRadius" : "sections.inside.messageBot.borderRadius") + "px";
|
|
8643
|
-
return (f, d) => (
|
|
8643
|
+
return (f, d) => (E(), B("ul", {
|
|
8644
8644
|
class: "message-list tw:transition-all tw:overflow-y-scroll tw:flex-1 tw:list-none tw:pb-4",
|
|
8645
8645
|
ref_key: "messageListRef",
|
|
8646
8646
|
ref: t,
|
|
8647
8647
|
onScroll: c
|
|
8648
8648
|
}, [
|
|
8649
|
-
f.showWelcome ? (
|
|
8649
|
+
f.showWelcome ? (E(), B("li", {
|
|
8650
8650
|
key: 0,
|
|
8651
8651
|
class: te(["tw:transition-all", [
|
|
8652
8652
|
"tw:text-" + (f.configDesignClass.getKey("sections.inside.params.size") === "sm" ? "xs" : f.configDesignClass.getKey("sections.inside.params.size") === "md" ? "sm" : "base")
|
|
@@ -8673,17 +8673,17 @@ const Sd = ["innerHTML"], Td = /* @__PURE__ */ Se({
|
|
|
8673
8673
|
}, null, 8, Rd)
|
|
8674
8674
|
], 6)
|
|
8675
8675
|
], 6)) : ne("", !0),
|
|
8676
|
-
(
|
|
8676
|
+
(E(!0), B(Cn, null, ma(o.value, (w, v) => {
|
|
8677
8677
|
var y;
|
|
8678
|
-
return
|
|
8679
|
-
w.snippet ? (
|
|
8678
|
+
return E(), B(Cn, { key: v }, [
|
|
8679
|
+
w.snippet ? (E(), lt(Td, {
|
|
8680
8680
|
key: 0,
|
|
8681
8681
|
structure: F(kd),
|
|
8682
8682
|
data: w.snippet.data,
|
|
8683
8683
|
message: w,
|
|
8684
8684
|
configDesignClass: f.configDesignClass,
|
|
8685
8685
|
onAction: d[0] || (d[0] = (b, _) => n("handleSnippetAction", b, _))
|
|
8686
|
-
}, null, 8, ["structure", "data", "message", "configDesignClass"])) : (
|
|
8686
|
+
}, null, 8, ["structure", "data", "message", "configDesignClass"])) : (E(), lt(_i(w.isUser ? ld : w.isSystem ? f.isProduction ? bi : _d : ad), {
|
|
8687
8687
|
key: 1,
|
|
8688
8688
|
message: w,
|
|
8689
8689
|
"data-component": w.isSystem ? f.isProduction ? "LoadingMessage" : "MessageSystem" : "MessageBot",
|
|
@@ -8713,7 +8713,7 @@ const Sd = ["innerHTML"], Td = /* @__PURE__ */ Se({
|
|
|
8713
8713
|
}, null, 8, ["message", "data-component", "style", "loader", "color", "welcomeColor", "bgType", "bgColor", "size", "fontSize", "borderWidth", "borderColor", "index", "traceLastShown", "configDesignClass", "ttsUrl", "activeMessage", "isLast", "onClick"]))
|
|
8714
8714
|
], 64);
|
|
8715
8715
|
}), 128)),
|
|
8716
|
-
f.isLoading ? (
|
|
8716
|
+
f.isLoading ? (E(), lt(bi, {
|
|
8717
8717
|
key: 1,
|
|
8718
8718
|
class: te({ "tw:mt-8": f.traceLastShown }),
|
|
8719
8719
|
loader: f.configDesignClass.getKey("settings.loader"),
|
|
@@ -8747,7 +8747,7 @@ const Sd = ["innerHTML"], Td = /* @__PURE__ */ Se({
|
|
|
8747
8747
|
get: () => t.activeMessage,
|
|
8748
8748
|
set: (o) => n("update:activeMessage", o)
|
|
8749
8749
|
});
|
|
8750
|
-
return (o, a) => (
|
|
8750
|
+
return (o, a) => (E(), B("div", {
|
|
8751
8751
|
class: "tw:transition-all tw:flex tw:flex-col tw:justify-between tw:w-full tw:min-h-0",
|
|
8752
8752
|
style: K([{ flex: "1 1 0" }, {
|
|
8753
8753
|
paddingLeft: (o.configDesignClass.getKey("sections.inside.params.sidePadding") ?? 8) + "px",
|
|
@@ -8781,10 +8781,10 @@ const Sd = ["innerHTML"], Td = /* @__PURE__ */ Se({
|
|
|
8781
8781
|
}, Ad = {
|
|
8782
8782
|
key: 0,
|
|
8783
8783
|
class: "tw:w-full tw:h-full"
|
|
8784
|
-
},
|
|
8784
|
+
}, Dd = {
|
|
8785
8785
|
key: 1,
|
|
8786
8786
|
class: "messages tw:transition-all tw:flex tw:flex-col tw:justify-between tw:w-full"
|
|
8787
|
-
},
|
|
8787
|
+
}, Ed = "https://hs-generator.onrender.com/api/transcribe", Ld = "https://hs-generator.onrender.com/api/tts", ws = 0, $d = /* @__PURE__ */ Se({
|
|
8788
8788
|
__name: "ChatWrapper",
|
|
8789
8789
|
props: {
|
|
8790
8790
|
link: {},
|
|
@@ -8807,7 +8807,7 @@ const Sd = ["innerHTML"], Td = /* @__PURE__ */ Se({
|
|
|
8807
8807
|
console.error("Failed to restart chat connection", C);
|
|
8808
8808
|
}
|
|
8809
8809
|
}, _ = z(() => {
|
|
8810
|
-
const C =
|
|
8810
|
+
const C = D.value.getKey("settings.position"), R = D.value.getKey("settings.offset.x"), M = D.value.getKey("settings.offset.y"), U = re.value ? D.value.getKey("settings.size.width") : D.value.getKey("sections.colapsed.width"), ae = re.value ? D.value.getKey("settings.size.height") : D.value.getKey("sections.colapsed.height");
|
|
8811
8811
|
return {
|
|
8812
8812
|
...{
|
|
8813
8813
|
...C === "topLeft" ? {
|
|
@@ -8863,7 +8863,7 @@ const Sd = ["innerHTML"], Td = /* @__PURE__ */ Se({
|
|
|
8863
8863
|
x.value = C, s("choose-trace", { action: C.type, messages: [C] });
|
|
8864
8864
|
}, q = async () => {
|
|
8865
8865
|
s("choose-trace", { action: "copyAll", messages: W.value });
|
|
8866
|
-
},
|
|
8866
|
+
}, X = async () => {
|
|
8867
8867
|
if (W.value.length === 0) {
|
|
8868
8868
|
s("choose-trace", { action: "copyLast", messages: [] });
|
|
8869
8869
|
return;
|
|
@@ -8879,21 +8879,21 @@ const Sd = ["innerHTML"], Td = /* @__PURE__ */ Se({
|
|
|
8879
8879
|
}, ce = async (C) => {
|
|
8880
8880
|
switch (C.action) {
|
|
8881
8881
|
case "copyLast":
|
|
8882
|
-
await
|
|
8882
|
+
await X();
|
|
8883
8883
|
break;
|
|
8884
8884
|
case "copyIteration":
|
|
8885
|
-
await
|
|
8885
|
+
await X();
|
|
8886
8886
|
break;
|
|
8887
8887
|
case "copyAll":
|
|
8888
8888
|
await q();
|
|
8889
8889
|
break;
|
|
8890
8890
|
}
|
|
8891
|
-
},
|
|
8892
|
-
() => Ii(
|
|
8891
|
+
}, D = z(() => new Oc(O.value)), Z = z(
|
|
8892
|
+
() => Ii(D.value)
|
|
8893
8893
|
), ee = z(
|
|
8894
|
-
() => Ss(
|
|
8894
|
+
() => Ss(D.value, 8)
|
|
8895
8895
|
), L = z(() => {
|
|
8896
|
-
switch (
|
|
8896
|
+
switch (D.value.getKey("sections.bottom.params.size")) {
|
|
8897
8897
|
case "sm":
|
|
8898
8898
|
return "tw:min-h-[25px]";
|
|
8899
8899
|
case "md":
|
|
@@ -8943,8 +8943,8 @@ const Sd = ["innerHTML"], Td = /* @__PURE__ */ Se({
|
|
|
8943
8943
|
opacity: 0,
|
|
8944
8944
|
willChange: "width, height, opacity"
|
|
8945
8945
|
}), J.to(R, {
|
|
8946
|
-
width:
|
|
8947
|
-
height:
|
|
8946
|
+
width: D.value.getKey("settings.size.width"),
|
|
8947
|
+
height: D.value.getKey("settings.size.height"),
|
|
8948
8948
|
opacity: 1,
|
|
8949
8949
|
duration: 0.4,
|
|
8950
8950
|
ease: "power2.out",
|
|
@@ -8975,10 +8975,10 @@ const Sd = ["innerHTML"], Td = /* @__PURE__ */ Se({
|
|
|
8975
8975
|
}
|
|
8976
8976
|
});
|
|
8977
8977
|
} else {
|
|
8978
|
-
const ae =
|
|
8978
|
+
const ae = D.value.getKey("sections.colapsed.height") + D.value.getKey("sections.colapsed.borderWidth") * 2;
|
|
8979
8979
|
J.killTweensOf(R), U && J.killTweensOf(U), M && J.killTweensOf(M), J.set(R, {
|
|
8980
|
-
width:
|
|
8981
|
-
height:
|
|
8980
|
+
width: D.value.getKey("settings.size.width"),
|
|
8981
|
+
height: D.value.getKey("settings.size.height"),
|
|
8982
8982
|
overflow: "hidden",
|
|
8983
8983
|
willChange: "width, height, opacity"
|
|
8984
8984
|
}), M && (J.set(M, {
|
|
@@ -9055,7 +9055,7 @@ const Sd = ["innerHTML"], Td = /* @__PURE__ */ Se({
|
|
|
9055
9055
|
if (U)
|
|
9056
9056
|
return U;
|
|
9057
9057
|
try {
|
|
9058
|
-
const ae = "ws://
|
|
9058
|
+
const ae = "ws://dev.hypershadow.io/client/widget-chat/v1/ws/?token=3TuZUMCjeCz7Yff5u9X0tnqjZz457lu3fFqwQfvAj3UVEXTIeWwBbzHguMIhTz4BhXSQ910ZmitK8mbZC6AM6Ld-DBNAGkmgidc3fhLmGsMRBPlCtVxyzUUDsjWrqhrWEeF1hcgCxcVnJSNCyVoMQg7Hxg";
|
|
9059
9059
|
if (ae)
|
|
9060
9060
|
return ae;
|
|
9061
9061
|
} catch (ae) {
|
|
@@ -9208,7 +9208,7 @@ const Sd = ["innerHTML"], Td = /* @__PURE__ */ Se({
|
|
|
9208
9208
|
ue && ue.send(JSON.stringify(C));
|
|
9209
9209
|
}, Pr = () => {
|
|
9210
9210
|
try {
|
|
9211
|
-
const C =
|
|
9211
|
+
const C = D.value.getKey("settings.fontFamily") || "MacPaw Fixel", R = `https://fonts.googleapis.com/css2?family=${C.replace(
|
|
9212
9212
|
/\s+/g,
|
|
9213
9213
|
"+"
|
|
9214
9214
|
)}:wght@300;400;500;600;700&display=swap`, M = document.createElement("link");
|
|
@@ -9219,16 +9219,16 @@ const Sd = ["innerHTML"], Td = /* @__PURE__ */ Se({
|
|
|
9219
9219
|
console.error("Error loading font:", C);
|
|
9220
9220
|
}
|
|
9221
9221
|
}, Ar = () => {
|
|
9222
|
-
const C =
|
|
9222
|
+
const C = D.value.getKey("settings.fontWeight") || 400;
|
|
9223
9223
|
o.value && (o.value.style.fontWeight = C);
|
|
9224
9224
|
};
|
|
9225
9225
|
i.value = !0, kt(
|
|
9226
|
-
() =>
|
|
9226
|
+
() => D.value.getKey("settings.fontFamily"),
|
|
9227
9227
|
() => {
|
|
9228
9228
|
Pr();
|
|
9229
9229
|
}
|
|
9230
9230
|
), kt(
|
|
9231
|
-
() =>
|
|
9231
|
+
() => D.value.getKey("settings.fontWeight"),
|
|
9232
9232
|
() => {
|
|
9233
9233
|
Ar();
|
|
9234
9234
|
}
|
|
@@ -9245,7 +9245,7 @@ const Sd = ["innerHTML"], Td = /* @__PURE__ */ Se({
|
|
|
9245
9245
|
d.value = C + (R - C) * qe, qe < 1 ? requestAnimationFrame(Te) : U();
|
|
9246
9246
|
};
|
|
9247
9247
|
requestAnimationFrame(Te);
|
|
9248
|
-
}),
|
|
9248
|
+
}), Dr = async (C) => {
|
|
9249
9249
|
f.value = !0, d.value = 0, await Ot(), await un(0, 0.3, 500), C(), await un(0.3, 0.6, 200), d.value = 0.6, await new Promise((R) => setTimeout(R, 100)), await un(0.6, 0, 500), f.value = !1;
|
|
9250
9250
|
}, ra = async (C = 25) => {
|
|
9251
9251
|
const R = W.value.filter((U) => !U.isUser && !U.isSystem && U.text);
|
|
@@ -9258,10 +9258,10 @@ const Sd = ["innerHTML"], Td = /* @__PURE__ */ Se({
|
|
|
9258
9258
|
ae.text = Te.slice(0, nt + 1), await new Promise((qe) => setTimeout(qe, C));
|
|
9259
9259
|
}
|
|
9260
9260
|
}, dn = async (C, R) => {
|
|
9261
|
-
await
|
|
9261
|
+
await Dr(() => {
|
|
9262
9262
|
const M = di.getState(
|
|
9263
9263
|
C,
|
|
9264
|
-
|
|
9264
|
+
D.value,
|
|
9265
9265
|
R || y.scenarioOptions
|
|
9266
9266
|
);
|
|
9267
9267
|
if (re.value = M.isChatOpen, W.value = M.messages, l.value = M.traceLastShown, a.value = M.isConnectionError, c.value = M.isProcessError, u.value = M.isReconnectError, g.value = M.isInputDisabled, p.value = M.showWelcome, h.value = M.showReconnectNotice ?? !1, _t.value = M.snippet ?? null, oe.value = !0, ue) {
|
|
@@ -9273,7 +9273,7 @@ const Sd = ["innerHTML"], Td = /* @__PURE__ */ Se({
|
|
|
9273
9273
|
}
|
|
9274
9274
|
}), ra();
|
|
9275
9275
|
}, Bs = async () => {
|
|
9276
|
-
await
|
|
9276
|
+
await Dr(() => {
|
|
9277
9277
|
oe.value = Me.value, p.value = !0, g.value = !1, h.value = !1, a.value = !1, c.value = !1, u.value = !1, W.value = [], oe.value || (!ue || ue.readyState !== 1) && ln();
|
|
9278
9278
|
});
|
|
9279
9279
|
};
|
|
@@ -9345,7 +9345,7 @@ const Sd = ["innerHTML"], Td = /* @__PURE__ */ Se({
|
|
|
9345
9345
|
}, oa = () => {
|
|
9346
9346
|
const C = window;
|
|
9347
9347
|
C.hswWidgets && C.hswWidgets[ht.value] && delete C.hswWidgets[ht.value];
|
|
9348
|
-
},
|
|
9348
|
+
}, Er = async (C) => {
|
|
9349
9349
|
var ae;
|
|
9350
9350
|
const R = C, M = (ae = R.detail) == null ? void 0 : ae.widgetId;
|
|
9351
9351
|
if (M && M !== ht.value) return;
|
|
@@ -9390,17 +9390,17 @@ const Sd = ["innerHTML"], Td = /* @__PURE__ */ Se({
|
|
|
9390
9390
|
}
|
|
9391
9391
|
};
|
|
9392
9392
|
return Hs(() => {
|
|
9393
|
-
ia(), window.addEventListener("hsw:control",
|
|
9393
|
+
ia(), window.addEventListener("hsw:control", Er);
|
|
9394
9394
|
}), Tn(() => {
|
|
9395
|
-
oa(), window.removeEventListener("hsw:control",
|
|
9396
|
-
}), e(Oe), (C, R) => n.value ? (
|
|
9395
|
+
oa(), window.removeEventListener("hsw:control", Er);
|
|
9396
|
+
}), e(Oe), (C, R) => n.value ? (E(), B("div", {
|
|
9397
9397
|
key: 0,
|
|
9398
|
-
class: te(["tw:z-[999] tw:flex tw:justify-end component-isolator tw:transition-all", {
|
|
9398
|
+
class: te(["tw:z-[999] tw:flex tw:justify-end component-isolator tw:transition-all chatContainer", {
|
|
9399
9399
|
"tw:fixed": !Q.value,
|
|
9400
9400
|
"tw:w-full": re.value
|
|
9401
9401
|
}]),
|
|
9402
9402
|
style: K({
|
|
9403
|
-
letterSpacing:
|
|
9403
|
+
letterSpacing: D.value.getKey("settings.letterSpacing") + "px",
|
|
9404
9404
|
..._.value
|
|
9405
9405
|
}),
|
|
9406
9406
|
ref_key: "chatWrapperRef",
|
|
@@ -9408,7 +9408,7 @@ const Sd = ["innerHTML"], Td = /* @__PURE__ */ Se({
|
|
|
9408
9408
|
}, [
|
|
9409
9409
|
Sn(_e(Mc, {
|
|
9410
9410
|
toggleChat: cn,
|
|
9411
|
-
element:
|
|
9411
|
+
element: D.value.getKeyObject("sections.colapsed")
|
|
9412
9412
|
}, null, 8, ["element"]), [
|
|
9413
9413
|
[Or, !re.value]
|
|
9414
9414
|
]),
|
|
@@ -9421,14 +9421,14 @@ const Sd = ["innerHTML"], Td = /* @__PURE__ */ Se({
|
|
|
9421
9421
|
}
|
|
9422
9422
|
]]),
|
|
9423
9423
|
style: K({
|
|
9424
|
-
background:
|
|
9424
|
+
background: D.value.getKey("settings.bgChat"),
|
|
9425
9425
|
borderRadius: `${String(Z.value)}px`
|
|
9426
9426
|
})
|
|
9427
9427
|
}, [
|
|
9428
9428
|
_e(qc, {
|
|
9429
9429
|
isChatOpen: re.value,
|
|
9430
9430
|
toggleChat: cn,
|
|
9431
|
-
configDesignClass:
|
|
9431
|
+
configDesignClass: D.value,
|
|
9432
9432
|
sectionBorderRadius: ee.value,
|
|
9433
9433
|
mainBorderRadius: Z.value,
|
|
9434
9434
|
isPreview: oe.value,
|
|
@@ -9436,31 +9436,31 @@ const Sd = ["innerHTML"], Td = /* @__PURE__ */ Se({
|
|
|
9436
9436
|
isProduction: C.isProduction || !1,
|
|
9437
9437
|
restartChat: b
|
|
9438
9438
|
}, null, 8, ["isChatOpen", "configDesignClass", "sectionBorderRadius", "mainBorderRadius", "isPreview", "isEmbedded", "isProduction"]),
|
|
9439
|
-
re.value ? (
|
|
9440
|
-
a.value ? (
|
|
9439
|
+
re.value ? (E(), B("div", Pd, [
|
|
9440
|
+
a.value ? (E(), B("div", Ad, [
|
|
9441
9441
|
I("div", {
|
|
9442
9442
|
class: "tw:absolute tw:left-0 tw:top-0 tw:w-full tw:h-full",
|
|
9443
9443
|
style: K({
|
|
9444
|
-
padding:
|
|
9444
|
+
padding: D.value.getKey("sections.warnings.launchIssue.content.sidePadding") + "px"
|
|
9445
9445
|
})
|
|
9446
9446
|
}, [
|
|
9447
|
-
_e(
|
|
9447
|
+
_e(Dn, {
|
|
9448
9448
|
type: "launchIssue",
|
|
9449
9449
|
class: "tw:h-full",
|
|
9450
|
-
headlineText:
|
|
9451
|
-
descriptionText:
|
|
9452
|
-
warningElement:
|
|
9453
|
-
configDesignClass:
|
|
9450
|
+
headlineText: D.value.getKey("texts.launchIssueTitle"),
|
|
9451
|
+
descriptionText: D.value.getKeyObject("texts.launchIssueText"),
|
|
9452
|
+
warningElement: D.value.getKeyObject("sections.warnings.launchIssue"),
|
|
9453
|
+
configDesignClass: D.value,
|
|
9454
9454
|
isProcessError: c.value,
|
|
9455
9455
|
restartChat: b
|
|
9456
9456
|
}, null, 8, ["headlineText", "descriptionText", "warningElement", "configDesignClass", "isProcessError"])
|
|
9457
9457
|
], 4)
|
|
9458
|
-
])) : (
|
|
9458
|
+
])) : (E(), B("div", Dd, [
|
|
9459
9459
|
_e(Md, {
|
|
9460
9460
|
messages: W.value,
|
|
9461
9461
|
isPreview: oe.value,
|
|
9462
9462
|
isEmbedded: Q.value,
|
|
9463
|
-
configDesignClass:
|
|
9463
|
+
configDesignClass: D.value,
|
|
9464
9464
|
isLoading: us.value,
|
|
9465
9465
|
isStreaming: w.value,
|
|
9466
9466
|
isProduction: C.isProduction,
|
|
@@ -9476,27 +9476,27 @@ const Sd = ["innerHTML"], Td = /* @__PURE__ */ Se({
|
|
|
9476
9476
|
onHandleSnippetAction: Jo,
|
|
9477
9477
|
restartChat: b
|
|
9478
9478
|
}, null, 8, ["messages", "isPreview", "isEmbedded", "configDesignClass", "isLoading", "isStreaming", "isProduction", "sectionBorderRadius", "showWelcome", "activeMessage", "isProcessError", "snippet", "traceLastShown"]),
|
|
9479
|
-
c.value ? (
|
|
9479
|
+
c.value ? (E(), B("div", {
|
|
9480
9480
|
key: 0,
|
|
9481
9481
|
style: K({
|
|
9482
|
-
padding:
|
|
9482
|
+
padding: D.value.getKey("sections.warnings.connectionIssue.content.sidePadding") + "px"
|
|
9483
9483
|
})
|
|
9484
9484
|
}, [
|
|
9485
|
-
_e(
|
|
9485
|
+
_e(Dn, {
|
|
9486
9486
|
type: "connectionIssue",
|
|
9487
|
-
headlineText:
|
|
9488
|
-
configDesignClass:
|
|
9489
|
-
warningElement:
|
|
9487
|
+
headlineText: D.value.getKey("texts.issueText"),
|
|
9488
|
+
configDesignClass: D.value,
|
|
9489
|
+
warningElement: D.value.getKeyObject(
|
|
9490
9490
|
"sections.warnings.connectionIssue"
|
|
9491
9491
|
),
|
|
9492
9492
|
restartChat: b
|
|
9493
9493
|
}, null, 8, ["headlineText", "configDesignClass", "warningElement"])
|
|
9494
|
-
], 4)) : (
|
|
9494
|
+
], 4)) : (E(), lt(ou, {
|
|
9495
9495
|
key: 1,
|
|
9496
9496
|
messageText: pt.value,
|
|
9497
9497
|
"onUpdate:messageText": R[1] || (R[1] = (M) => pt.value = M),
|
|
9498
9498
|
isProduction: C.isProduction || !1,
|
|
9499
|
-
configDesignClass:
|
|
9499
|
+
configDesignClass: D.value,
|
|
9500
9500
|
sectionBorderRadius: ee.value,
|
|
9501
9501
|
classSize: L.value,
|
|
9502
9502
|
sendMessage: sa,
|
|
@@ -9504,14 +9504,14 @@ const Sd = ["innerHTML"], Td = /* @__PURE__ */ Se({
|
|
|
9504
9504
|
showReconnectNotice: h.value,
|
|
9505
9505
|
restartChat: b,
|
|
9506
9506
|
isStreaming: w.value,
|
|
9507
|
-
transcribeUrl:
|
|
9507
|
+
transcribeUrl: Ed,
|
|
9508
9508
|
onTrace: ce
|
|
9509
9509
|
}, null, 8, ["messageText", "isProduction", "configDesignClass", "sectionBorderRadius", "classSize", "isInputDisabled", "showReconnectNotice", "isStreaming"]))
|
|
9510
9510
|
]))
|
|
9511
9511
|
])) : ne("", !0),
|
|
9512
9512
|
_e(Rn, { name: "fade" }, {
|
|
9513
9513
|
default: Fe(() => [
|
|
9514
|
-
f.value ? (
|
|
9514
|
+
f.value ? (E(), B("div", {
|
|
9515
9515
|
key: 0,
|
|
9516
9516
|
class: "tw:absolute tw:inset-0 tw:backdrop-blur-[40px] tw:z-[1000]",
|
|
9517
9517
|
style: K({
|