@inploi/plugin-chatbot 13.0.0 → 13.1.0
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/cdn/index.js +3 -3
- package/cdn/style.css +1 -1
- package/dist/chatbot-body-02c464c0.js +4316 -0
- package/dist/chatbot-body-9dd967cb.cjs +1 -0
- package/dist/chatbot.idb.d.ts +2 -1
- package/dist/chatbot.state.d.ts +6 -1
- package/dist/chatbot.state.test.d.ts +1 -0
- package/dist/components/chat-input/chat-input.address.test.d.ts +1 -0
- package/dist/components/chat-input/chat-input.file.test.d.ts +1 -0
- package/dist/components/status-bar.d.ts +1 -0
- package/dist/components/useChatService.d.ts +2 -4
- package/dist/i18n.d.ts +120 -6
- package/dist/index-a3ad2e04.cjs +5 -0
- package/dist/index-fc976df1.js +3176 -0
- package/dist/interpreter.d.ts +5 -3
- package/dist/mocks/mocks.utils.d.ts +2 -1
- package/dist/plugin-chatbot.cjs +1 -1
- package/dist/plugin-chatbot.js +1 -1
- package/dist/style.css +1 -1
- package/package.json +3 -4
- package/dist/chatbot-body-a286c004.cjs +0 -1
- package/dist/chatbot-body-f7362cf6.js +0 -4196
- package/dist/index-a0752f1a.cjs +0 -5
- package/dist/index-b9a25f97.js +0 -3153
|
@@ -0,0 +1,3176 @@
|
|
|
1
|
+
import { endpoint as ki, typed as zo, createPlugin as Oo, createTalentBankClient as Io } from "@inploi/sdk";
|
|
2
|
+
var q;
|
|
3
|
+
function $i(t) {
|
|
4
|
+
return { lang: (t == null ? void 0 : t.lang) ?? (q == null ? void 0 : q.lang), message: t == null ? void 0 : t.message, abortEarly: (t == null ? void 0 : t.abortEarly) ?? (q == null ? void 0 : q.abortEarly), abortPipeEarly: (t == null ? void 0 : t.abortPipeEarly) ?? (q == null ? void 0 : q.abortPipeEarly) };
|
|
5
|
+
}
|
|
6
|
+
var Gt;
|
|
7
|
+
function jo(t) {
|
|
8
|
+
return Gt == null ? void 0 : Gt.get(t);
|
|
9
|
+
}
|
|
10
|
+
var Zt;
|
|
11
|
+
function Do(t) {
|
|
12
|
+
return Zt == null ? void 0 : Zt.get(t);
|
|
13
|
+
}
|
|
14
|
+
var Jt;
|
|
15
|
+
function No(t, e) {
|
|
16
|
+
var i;
|
|
17
|
+
return (i = Jt == null ? void 0 : Jt.get(t)) == null ? void 0 : i.get(e);
|
|
18
|
+
}
|
|
19
|
+
function Si(t) {
|
|
20
|
+
var i, o;
|
|
21
|
+
let e = typeof t;
|
|
22
|
+
return e === "string" ? `"${t}"` : e === "number" || e === "bigint" || e === "boolean" ? `${t}` : e === "object" || e === "function" ? (t && ((o = (i = Object.getPrototypeOf(t)) == null ? void 0 : i.constructor) == null ? void 0 : o.name)) ?? "null" : e;
|
|
23
|
+
}
|
|
24
|
+
function Y(t, e, i, o, a) {
|
|
25
|
+
let n = a && "input" in a ? a.input : i.value, r = (a == null ? void 0 : a.expected) ?? t.expects ?? null, s = (a == null ? void 0 : a.received) ?? Si(n), c = { kind: t.kind, type: t.type, input: n, expected: r, received: s, message: `Invalid ${e}: ${r ? `Expected ${r} but r` : "R"}eceived ${s}`, requirement: t.requirement, path: a == null ? void 0 : a.path, issues: a == null ? void 0 : a.issues, lang: o.lang, abortEarly: o.abortEarly, abortPipeEarly: o.abortPipeEarly }, d = t.kind === "schema", u = (a == null ? void 0 : a.message) ?? t.message ?? No(t.reference, c.lang) ?? (d ? Do(c.lang) : null) ?? o.message ?? jo(c.lang);
|
|
26
|
+
u !== void 0 && (c.message = typeof u == "function" ? u(c) : u), d && (i.typed = !1), i.issues ? i.issues.push(c) : i.issues = [c];
|
|
27
|
+
}
|
|
28
|
+
function F(t) {
|
|
29
|
+
return { version: 1, vendor: "valibot", validate(e) {
|
|
30
|
+
return t["~run"]({ value: e }, $i());
|
|
31
|
+
} };
|
|
32
|
+
}
|
|
33
|
+
function Ao(t, e) {
|
|
34
|
+
return Object.hasOwn(t, e) && e !== "__proto__" && e !== "prototype" && e !== "constructor";
|
|
35
|
+
}
|
|
36
|
+
function Bo(t, e) {
|
|
37
|
+
let i = [...new Set(t)];
|
|
38
|
+
return i.length > 1 ? `(${i.join(` ${e} `)})` : i[0] ?? "never";
|
|
39
|
+
}
|
|
40
|
+
function Ci(t) {
|
|
41
|
+
return { kind: "transformation", type: "transform", reference: Ci, async: !1, operation: t, "~run"(e) {
|
|
42
|
+
return e.value = this.operation(e.value), e;
|
|
43
|
+
} };
|
|
44
|
+
}
|
|
45
|
+
function Fo(t, e, i) {
|
|
46
|
+
return typeof t.fallback == "function" ? t.fallback(e, i) : t.fallback;
|
|
47
|
+
}
|
|
48
|
+
function Pe(t, e, i) {
|
|
49
|
+
return typeof t.default == "function" ? t.default(e, i) : t.default;
|
|
50
|
+
}
|
|
51
|
+
function Ei() {
|
|
52
|
+
return { kind: "schema", type: "any", reference: Ei, expects: "any", async: !1, get "~standard"() {
|
|
53
|
+
return F(this);
|
|
54
|
+
}, "~run"(t) {
|
|
55
|
+
return t.typed = !0, t;
|
|
56
|
+
} };
|
|
57
|
+
}
|
|
58
|
+
function Pi(t, e) {
|
|
59
|
+
return { kind: "schema", type: "array", reference: Pi, expects: "Array", async: !1, item: t, message: e, get "~standard"() {
|
|
60
|
+
return F(this);
|
|
61
|
+
}, "~run"(i, o) {
|
|
62
|
+
var n;
|
|
63
|
+
let a = i.value;
|
|
64
|
+
if (Array.isArray(a)) {
|
|
65
|
+
i.typed = !0, i.value = [];
|
|
66
|
+
for (let r = 0; r < a.length; r++) {
|
|
67
|
+
let s = a[r], c = this.item["~run"]({ value: s }, o);
|
|
68
|
+
if (c.issues) {
|
|
69
|
+
let d = { type: "array", origin: "value", input: a, key: r, value: s };
|
|
70
|
+
for (let u of c.issues)
|
|
71
|
+
u.path ? u.path.unshift(d) : u.path = [d], (n = i.issues) == null || n.push(u);
|
|
72
|
+
if (i.issues || (i.issues = c.issues), o.abortEarly) {
|
|
73
|
+
i.typed = !1;
|
|
74
|
+
break;
|
|
75
|
+
}
|
|
76
|
+
}
|
|
77
|
+
c.typed || (i.typed = !1), i.value.push(c.value);
|
|
78
|
+
}
|
|
79
|
+
} else
|
|
80
|
+
Y(this, "type", i, o);
|
|
81
|
+
return i;
|
|
82
|
+
} };
|
|
83
|
+
}
|
|
84
|
+
function Te(t) {
|
|
85
|
+
return { kind: "schema", type: "boolean", reference: Te, expects: "boolean", async: !1, message: t, get "~standard"() {
|
|
86
|
+
return F(this);
|
|
87
|
+
}, "~run"(e, i) {
|
|
88
|
+
return typeof e.value == "boolean" ? e.typed = !0 : Y(this, "type", e, i), e;
|
|
89
|
+
} };
|
|
90
|
+
}
|
|
91
|
+
function Bt(t, e) {
|
|
92
|
+
return { kind: "schema", type: "literal", reference: Bt, expects: Si(t), async: !1, literal: t, message: e, get "~standard"() {
|
|
93
|
+
return F(this);
|
|
94
|
+
}, "~run"(i, o) {
|
|
95
|
+
return i.value === this.literal ? i.typed = !0 : Y(this, "type", i, o), i;
|
|
96
|
+
} };
|
|
97
|
+
}
|
|
98
|
+
function Ft(t, e) {
|
|
99
|
+
return { kind: "schema", type: "nullable", reference: Ft, expects: `(${t.expects} | null)`, async: !1, wrapped: t, default: e, get "~standard"() {
|
|
100
|
+
return F(this);
|
|
101
|
+
}, "~run"(i, o) {
|
|
102
|
+
return i.value === null && (this.default !== void 0 && (i.value = Pe(this, i, o)), i.value === null) ? (i.typed = !0, i) : this.wrapped["~run"](i, o);
|
|
103
|
+
} };
|
|
104
|
+
}
|
|
105
|
+
function Lt(t) {
|
|
106
|
+
return { kind: "schema", type: "number", reference: Lt, expects: "number", async: !1, message: t, get "~standard"() {
|
|
107
|
+
return F(this);
|
|
108
|
+
}, "~run"(e, i) {
|
|
109
|
+
return typeof e.value == "number" && !isNaN(e.value) ? e.typed = !0 : Y(this, "type", e, i), e;
|
|
110
|
+
} };
|
|
111
|
+
}
|
|
112
|
+
function A(t, e) {
|
|
113
|
+
return { kind: "schema", type: "object", reference: A, expects: "Object", async: !1, entries: t, message: e, get "~standard"() {
|
|
114
|
+
return F(this);
|
|
115
|
+
}, "~run"(i, o) {
|
|
116
|
+
var n;
|
|
117
|
+
let a = i.value;
|
|
118
|
+
if (a && typeof a == "object") {
|
|
119
|
+
i.typed = !0, i.value = {};
|
|
120
|
+
for (let r in this.entries) {
|
|
121
|
+
let s = this.entries[r];
|
|
122
|
+
if (r in a || (s.type === "exact_optional" || s.type === "optional" || s.type === "nullish") && s.default !== void 0) {
|
|
123
|
+
let c = r in a ? a[r] : Pe(s), d = s["~run"]({ value: c }, o);
|
|
124
|
+
if (d.issues) {
|
|
125
|
+
let u = { type: "object", origin: "value", input: a, key: r, value: c };
|
|
126
|
+
for (let l of d.issues)
|
|
127
|
+
l.path ? l.path.unshift(u) : l.path = [u], (n = i.issues) == null || n.push(l);
|
|
128
|
+
if (i.issues || (i.issues = d.issues), o.abortEarly) {
|
|
129
|
+
i.typed = !1;
|
|
130
|
+
break;
|
|
131
|
+
}
|
|
132
|
+
}
|
|
133
|
+
d.typed || (i.typed = !1), i.value[r] = d.value;
|
|
134
|
+
} else if (s.fallback !== void 0)
|
|
135
|
+
i.value[r] = Fo(s);
|
|
136
|
+
else if (s.type !== "exact_optional" && s.type !== "optional" && s.type !== "nullish" && (Y(this, "key", i, o, { input: void 0, expected: `"${r}"`, path: [{ type: "object", origin: "key", input: a, key: r, value: a[r] }] }), o.abortEarly))
|
|
137
|
+
break;
|
|
138
|
+
}
|
|
139
|
+
} else
|
|
140
|
+
Y(this, "type", i, o);
|
|
141
|
+
return i;
|
|
142
|
+
} };
|
|
143
|
+
}
|
|
144
|
+
function W(t, e) {
|
|
145
|
+
return { kind: "schema", type: "optional", reference: W, expects: `(${t.expects} | undefined)`, async: !1, wrapped: t, default: e, get "~standard"() {
|
|
146
|
+
return F(this);
|
|
147
|
+
}, "~run"(i, o) {
|
|
148
|
+
return i.value === void 0 && (this.default !== void 0 && (i.value = Pe(this, i, o)), i.value === void 0) ? (i.typed = !0, i) : this.wrapped["~run"](i, o);
|
|
149
|
+
} };
|
|
150
|
+
}
|
|
151
|
+
function Ti(t, e, i) {
|
|
152
|
+
return { kind: "schema", type: "record", reference: Ti, expects: "Object", async: !1, key: t, value: e, message: i, get "~standard"() {
|
|
153
|
+
return F(this);
|
|
154
|
+
}, "~run"(o, a) {
|
|
155
|
+
var r, s;
|
|
156
|
+
let n = o.value;
|
|
157
|
+
if (n && typeof n == "object") {
|
|
158
|
+
o.typed = !0, o.value = {};
|
|
159
|
+
for (let c in n)
|
|
160
|
+
if (Ao(n, c)) {
|
|
161
|
+
let d = n[c], u = this.key["~run"]({ value: c }, a);
|
|
162
|
+
if (u.issues) {
|
|
163
|
+
let w = { type: "object", origin: "key", input: n, key: c, value: d };
|
|
164
|
+
for (let g of u.issues)
|
|
165
|
+
g.path = [w], (r = o.issues) == null || r.push(g);
|
|
166
|
+
if (o.issues || (o.issues = u.issues), a.abortEarly) {
|
|
167
|
+
o.typed = !1;
|
|
168
|
+
break;
|
|
169
|
+
}
|
|
170
|
+
}
|
|
171
|
+
let l = this.value["~run"]({ value: d }, a);
|
|
172
|
+
if (l.issues) {
|
|
173
|
+
let w = { type: "object", origin: "value", input: n, key: c, value: d };
|
|
174
|
+
for (let g of l.issues)
|
|
175
|
+
g.path ? g.path.unshift(w) : g.path = [w], (s = o.issues) == null || s.push(g);
|
|
176
|
+
if (o.issues || (o.issues = l.issues), a.abortEarly) {
|
|
177
|
+
o.typed = !1;
|
|
178
|
+
break;
|
|
179
|
+
}
|
|
180
|
+
}
|
|
181
|
+
(!u.typed || !l.typed) && (o.typed = !1), u.typed && (o.value[u.value] = l.value);
|
|
182
|
+
}
|
|
183
|
+
} else
|
|
184
|
+
Y(this, "type", o, a);
|
|
185
|
+
return o;
|
|
186
|
+
} };
|
|
187
|
+
}
|
|
188
|
+
function L(t) {
|
|
189
|
+
return { kind: "schema", type: "string", reference: L, expects: "string", async: !1, message: t, get "~standard"() {
|
|
190
|
+
return F(this);
|
|
191
|
+
}, "~run"(e, i) {
|
|
192
|
+
return typeof e.value == "string" ? e.typed = !0 : Y(this, "type", e, i), e;
|
|
193
|
+
} };
|
|
194
|
+
}
|
|
195
|
+
function Ue(t) {
|
|
196
|
+
let e;
|
|
197
|
+
if (t)
|
|
198
|
+
for (let i of t)
|
|
199
|
+
e ? e.push(...i.issues) : e = i.issues;
|
|
200
|
+
return e;
|
|
201
|
+
}
|
|
202
|
+
function ze(t, e) {
|
|
203
|
+
return { kind: "schema", type: "union", reference: ze, expects: Bo(t.map((i) => i.expects), "|"), async: !1, options: t, message: e, get "~standard"() {
|
|
204
|
+
return F(this);
|
|
205
|
+
}, "~run"(i, o) {
|
|
206
|
+
let a, n, r;
|
|
207
|
+
for (let s of this.options) {
|
|
208
|
+
let c = s["~run"]({ value: i.value }, o);
|
|
209
|
+
if (c.typed)
|
|
210
|
+
if (c.issues)
|
|
211
|
+
n ? n.push(c) : n = [c];
|
|
212
|
+
else {
|
|
213
|
+
a = c;
|
|
214
|
+
break;
|
|
215
|
+
}
|
|
216
|
+
else
|
|
217
|
+
r ? r.push(c) : r = [c];
|
|
218
|
+
}
|
|
219
|
+
if (a)
|
|
220
|
+
return a;
|
|
221
|
+
if (n) {
|
|
222
|
+
if (n.length === 1)
|
|
223
|
+
return n[0];
|
|
224
|
+
Y(this, "type", i, o, { issues: Ue(n) }), i.typed = !0;
|
|
225
|
+
} else {
|
|
226
|
+
if ((r == null ? void 0 : r.length) === 1)
|
|
227
|
+
return r[0];
|
|
228
|
+
Y(this, "type", i, o, { issues: Ue(r) });
|
|
229
|
+
}
|
|
230
|
+
return i;
|
|
231
|
+
} };
|
|
232
|
+
}
|
|
233
|
+
function zi() {
|
|
234
|
+
return { kind: "schema", type: "unknown", reference: zi, expects: "unknown", async: !1, get "~standard"() {
|
|
235
|
+
return F(this);
|
|
236
|
+
}, "~run"(t) {
|
|
237
|
+
return t.typed = !0, t;
|
|
238
|
+
} };
|
|
239
|
+
}
|
|
240
|
+
function Lo(...t) {
|
|
241
|
+
return { ...t[0], pipe: t, get "~standard"() {
|
|
242
|
+
return F(this);
|
|
243
|
+
}, "~run"(e, i) {
|
|
244
|
+
for (let o of t)
|
|
245
|
+
if (o.kind !== "metadata") {
|
|
246
|
+
if (e.issues && (o.kind === "schema" || o.kind === "transformation")) {
|
|
247
|
+
e.typed = !1;
|
|
248
|
+
break;
|
|
249
|
+
}
|
|
250
|
+
(!e.issues || !i.abortEarly && !i.abortPipeEarly) && (e = o["~run"](e, i));
|
|
251
|
+
}
|
|
252
|
+
return e;
|
|
253
|
+
} };
|
|
254
|
+
}
|
|
255
|
+
function Oi(t, e, i) {
|
|
256
|
+
let o = t["~run"]({ value: e }, $i(i));
|
|
257
|
+
return { typed: o.typed, success: !o.issues, output: o.value, issues: o.issues };
|
|
258
|
+
}
|
|
259
|
+
var Mo = (t) => ({ ok: !0, err: !1, val: t }), Ro = (t) => ({ err: !0, ok: !1, val: t }), Ii = (t, e) => {
|
|
260
|
+
if (e.length === 0)
|
|
261
|
+
return;
|
|
262
|
+
let i = t;
|
|
263
|
+
for (let o of e) {
|
|
264
|
+
if (i == null || typeof i != "object")
|
|
265
|
+
return;
|
|
266
|
+
i = i[o];
|
|
267
|
+
}
|
|
268
|
+
return i;
|
|
269
|
+
}, Jn = (t, e = "all") => {
|
|
270
|
+
let i = {}, o = e === "all" ? null : new Set(e);
|
|
271
|
+
for (let a in t) {
|
|
272
|
+
let n = t[a];
|
|
273
|
+
n && (o && !o.has(a) || (i[a] = n.value));
|
|
274
|
+
}
|
|
275
|
+
return i;
|
|
276
|
+
}, Qn = ({ key: t, submissions: e }) => {
|
|
277
|
+
var o;
|
|
278
|
+
let i = (o = e[t]) == null ? void 0 : o.value;
|
|
279
|
+
if (typeof i != "string" && typeof i != "number")
|
|
280
|
+
throw new Error(`Submission at “${t}” is not a string or number`);
|
|
281
|
+
return i;
|
|
282
|
+
}, tr = ({ key: t, path: e, submissions: i, context: o }) => {
|
|
283
|
+
if (t === "$context") {
|
|
284
|
+
if (!e)
|
|
285
|
+
return;
|
|
286
|
+
let a = Ii(o, e);
|
|
287
|
+
switch (typeof a) {
|
|
288
|
+
case "string":
|
|
289
|
+
return { type: "string", value: a };
|
|
290
|
+
case "number":
|
|
291
|
+
return { type: "number", value: a };
|
|
292
|
+
case "boolean":
|
|
293
|
+
return { type: "boolean", value: a };
|
|
294
|
+
default:
|
|
295
|
+
console.warn(`Unexpected type for $context.${e.join(".")}`, a);
|
|
296
|
+
return;
|
|
297
|
+
}
|
|
298
|
+
}
|
|
299
|
+
return i[t];
|
|
300
|
+
}, Ho = (t) => {
|
|
301
|
+
let e = t.split(".").pop();
|
|
302
|
+
return e ? Mo(e ? "." + e : "") : Ro("No file extension found");
|
|
303
|
+
}, er = (t, e) => {
|
|
304
|
+
if (e.length === 0)
|
|
305
|
+
return !0;
|
|
306
|
+
let i = e.map((o) => o.toLowerCase());
|
|
307
|
+
return t.every((o) => {
|
|
308
|
+
let a = Ho(o.name);
|
|
309
|
+
return a.ok && i.includes(a.val.toLowerCase());
|
|
310
|
+
});
|
|
311
|
+
}, ir = (t) => t <= 1e3 ? `${Math.round(t)}KB` : t < 1e3 * 10 ? `${(t / 1e3).toFixed(1)}MB` : `${Math.round(t / 1e3)}MB`, or = (t) => typeof t == "string" ? t : `+${t.countryCode} ${t.phoneNumber}`, Uo = A({ integration_response: A({ data: A({ redirect_url: L(), message: W(Ft(L())), button_text: W(Ft(L())) }) }) }), ar = (t) => Oi(Uo, t).success, Vo = A({ integration_response: A({ error: A({ message: L() }) }) }), nr = (t) => Oi(Vo, t).success;
|
|
312
|
+
A({ success: Bt(!1), message: W(zi()) });
|
|
313
|
+
var rr = (t) => {
|
|
314
|
+
if (typeof t != "object" || t === null)
|
|
315
|
+
return null;
|
|
316
|
+
let e = t.integration_response;
|
|
317
|
+
if (typeof e != "object" || e === null)
|
|
318
|
+
return null;
|
|
319
|
+
let i = e;
|
|
320
|
+
if (typeof i.status != "number" || i.service !== void 0 && typeof i.service != "string")
|
|
321
|
+
return null;
|
|
322
|
+
let o = "data" in i, a = i.error, n = typeof a == "object" && a !== null && typeof a.message == "string" && "data" in a;
|
|
323
|
+
if (!o && !n)
|
|
324
|
+
return null;
|
|
325
|
+
let r = o ? i.data : a.data ?? null;
|
|
326
|
+
return { service: i.service ?? "INVALID_SERVICE", response: { status: i.status, payload: r } };
|
|
327
|
+
}, Wo = ({ context: t, schema: e, logger: i }) => {
|
|
328
|
+
if (e)
|
|
329
|
+
for (let o in e) {
|
|
330
|
+
let a = e[o];
|
|
331
|
+
if (!a)
|
|
332
|
+
continue;
|
|
333
|
+
let n = Ii(t, o.split("."));
|
|
334
|
+
if (a.required && n == null) {
|
|
335
|
+
let r = `Configuration error in context: ${o} is required`;
|
|
336
|
+
throw i.error(r), new Error(r);
|
|
337
|
+
}
|
|
338
|
+
if (n != null)
|
|
339
|
+
switch (a.type) {
|
|
340
|
+
case "number":
|
|
341
|
+
if (typeof n != "number")
|
|
342
|
+
throw new Error(`Configuration error in context: ${o} is not a number`);
|
|
343
|
+
break;
|
|
344
|
+
case "string":
|
|
345
|
+
if (typeof n != "string")
|
|
346
|
+
throw new Error(`Configuration error in context: ${o} is not a string`);
|
|
347
|
+
break;
|
|
348
|
+
default:
|
|
349
|
+
a.type;
|
|
350
|
+
}
|
|
351
|
+
}
|
|
352
|
+
}, Ct, h, ji, Di, st, Ve, Ni, ce, Ai, pt = {}, Bi = [], Yo = /acit|ex(?:s|g|n|p|$)|rph|grid|ows|mnc|ntw|ine[ch]|zoo|^ord|itera/i, Kt = Array.isArray;
|
|
353
|
+
function X(t, e) {
|
|
354
|
+
for (var i in e)
|
|
355
|
+
t[i] = e[i];
|
|
356
|
+
return t;
|
|
357
|
+
}
|
|
358
|
+
function Fi(t) {
|
|
359
|
+
var e = t.parentNode;
|
|
360
|
+
e && e.removeChild(t);
|
|
361
|
+
}
|
|
362
|
+
function B(t, e, i) {
|
|
363
|
+
var o, a, n, r = {};
|
|
364
|
+
for (n in e)
|
|
365
|
+
n == "key" ? o = e[n] : n == "ref" ? a = e[n] : r[n] = e[n];
|
|
366
|
+
if (arguments.length > 2 && (r.children = arguments.length > 3 ? Ct.call(arguments, 2) : i), typeof t == "function" && t.defaultProps != null)
|
|
367
|
+
for (n in t.defaultProps)
|
|
368
|
+
r[n] === void 0 && (r[n] = t.defaultProps[n]);
|
|
369
|
+
return yt(t, r, o, a, null);
|
|
370
|
+
}
|
|
371
|
+
function yt(t, e, i, o, a) {
|
|
372
|
+
var n = { type: t, props: e, key: i, ref: o, __k: null, __: null, __b: 0, __e: null, __d: void 0, __c: null, __h: null, constructor: void 0, __v: a ?? ++ji };
|
|
373
|
+
return a == null && h.vnode != null && h.vnode(n), n;
|
|
374
|
+
}
|
|
375
|
+
function Ko() {
|
|
376
|
+
return { current: null };
|
|
377
|
+
}
|
|
378
|
+
function K(t) {
|
|
379
|
+
return t.children;
|
|
380
|
+
}
|
|
381
|
+
function M(t, e) {
|
|
382
|
+
this.props = t, this.context = e;
|
|
383
|
+
}
|
|
384
|
+
function Mt(t, e) {
|
|
385
|
+
if (e == null)
|
|
386
|
+
return t.__ ? Mt(t.__, t.__.__k.indexOf(t) + 1) : null;
|
|
387
|
+
for (var i; e < t.__k.length; e++)
|
|
388
|
+
if ((i = t.__k[e]) != null && i.__e != null)
|
|
389
|
+
return i.__e;
|
|
390
|
+
return typeof t.type == "function" ? Mt(t) : null;
|
|
391
|
+
}
|
|
392
|
+
function Li(t) {
|
|
393
|
+
var e, i;
|
|
394
|
+
if ((t = t.__) != null && t.__c != null) {
|
|
395
|
+
for (t.__e = t.__c.base = null, e = 0; e < t.__k.length; e++)
|
|
396
|
+
if ((i = t.__k[e]) != null && i.__e != null) {
|
|
397
|
+
t.__e = t.__c.base = i.__e;
|
|
398
|
+
break;
|
|
399
|
+
}
|
|
400
|
+
return Li(t);
|
|
401
|
+
}
|
|
402
|
+
}
|
|
403
|
+
function de(t) {
|
|
404
|
+
(!t.__d && (t.__d = !0) && st.push(t) && !Rt.__r++ || Ve !== h.debounceRendering) && ((Ve = h.debounceRendering) || Ni)(Rt);
|
|
405
|
+
}
|
|
406
|
+
function Rt() {
|
|
407
|
+
var t, e, i, o, a, n, r, s, c;
|
|
408
|
+
for (st.sort(ce); t = st.shift(); )
|
|
409
|
+
t.__d && (e = st.length, o = void 0, a = void 0, n = void 0, s = (r = (i = t).__v).__e, (c = i.__P) && (o = [], a = [], (n = X({}, r)).__v = r.__v + 1, Oe(c, r, n, i.__n, c.ownerSVGElement !== void 0, r.__h != null ? [s] : null, o, s ?? Mt(r), r.__h, a), Ui(o, r, a), r.__e != s && Li(r)), st.length > e && st.sort(ce));
|
|
410
|
+
Rt.__r = 0;
|
|
411
|
+
}
|
|
412
|
+
function Mi(t, e, i, o, a, n, r, s, c, d, u) {
|
|
413
|
+
var l, w, g, f, b, j, x, v, _, y, E = 0, T = o && o.__k || Bi, R = T.length, H = R, O = e.length;
|
|
414
|
+
for (i.__k = [], l = 0; l < O; l++)
|
|
415
|
+
(f = i.__k[l] = (f = e[l]) == null || typeof f == "boolean" || typeof f == "function" ? null : typeof f == "string" || typeof f == "number" || typeof f == "bigint" ? yt(null, f, null, null, f) : Kt(f) ? yt(K, { children: f }, null, null, null) : f.__b > 0 ? yt(f.type, f.props, f.key, f.ref ? f.ref : null, f.__v) : f) != null && (f.__ = i, f.__b = i.__b + 1, (v = qo(f, T, x = l + E, H)) === -1 ? g = pt : (g = T[v] || pt, T[v] = void 0, H--), Oe(t, f, g, a, n, r, s, c, d, u), b = f.__e, (w = f.ref) && g.ref != w && (g.ref && Ie(g.ref, null, f), u.push(w, f.__c || b, f)), b != null && (j == null && (j = b), y = !(_ = g === pt || g.__v === null) && v === x, _ ? v == -1 && E-- : v !== x && (v === x + 1 ? (E++, y = !0) : v > x ? H > O - x ? (E += v - x, y = !0) : E-- : E = v < x && v == x - 1 ? v - x : 0), x = l + E, y = y || v == l && !_, typeof f.type != "function" || v === x && g.__k !== f.__k ? typeof f.type == "function" || y ? f.__d !== void 0 ? (c = f.__d, f.__d = void 0) : c = b.nextSibling : c = Hi(t, b, c) : c = Ri(f, c, t), typeof i.type == "function" && (i.__d = c)));
|
|
416
|
+
for (i.__e = j, l = R; l--; )
|
|
417
|
+
T[l] != null && (typeof i.type == "function" && T[l].__e != null && T[l].__e == i.__d && (i.__d = T[l].__e.nextSibling), Vi(T[l], T[l]));
|
|
418
|
+
}
|
|
419
|
+
function Ri(t, e, i) {
|
|
420
|
+
for (var o, a = t.__k, n = 0; a && n < a.length; n++)
|
|
421
|
+
(o = a[n]) && (o.__ = t, e = typeof o.type == "function" ? Ri(o, e, i) : Hi(i, o.__e, e));
|
|
422
|
+
return e;
|
|
423
|
+
}
|
|
424
|
+
function Z(t, e) {
|
|
425
|
+
return e = e || [], t == null || typeof t == "boolean" || (Kt(t) ? t.some(function(i) {
|
|
426
|
+
Z(i, e);
|
|
427
|
+
}) : e.push(t)), e;
|
|
428
|
+
}
|
|
429
|
+
function Hi(t, e, i) {
|
|
430
|
+
return i == null || i.parentNode !== t ? t.insertBefore(e, null) : e == i && e.parentNode != null || t.insertBefore(e, i), e.nextSibling;
|
|
431
|
+
}
|
|
432
|
+
function qo(t, e, i, o) {
|
|
433
|
+
var a = t.key, n = t.type, r = i - 1, s = i + 1, c = e[i];
|
|
434
|
+
if (c === null || c && a == c.key && n === c.type)
|
|
435
|
+
return i;
|
|
436
|
+
if (o > (c != null ? 1 : 0))
|
|
437
|
+
for (; r >= 0 || s < e.length; ) {
|
|
438
|
+
if (r >= 0) {
|
|
439
|
+
if ((c = e[r]) && a == c.key && n === c.type)
|
|
440
|
+
return r;
|
|
441
|
+
r--;
|
|
442
|
+
}
|
|
443
|
+
if (s < e.length) {
|
|
444
|
+
if ((c = e[s]) && a == c.key && n === c.type)
|
|
445
|
+
return s;
|
|
446
|
+
s++;
|
|
447
|
+
}
|
|
448
|
+
}
|
|
449
|
+
return -1;
|
|
450
|
+
}
|
|
451
|
+
function Xo(t, e, i, o, a) {
|
|
452
|
+
var n;
|
|
453
|
+
for (n in i)
|
|
454
|
+
n === "children" || n === "key" || n in e || Ht(t, n, null, i[n], o);
|
|
455
|
+
for (n in e)
|
|
456
|
+
a && typeof e[n] != "function" || n === "children" || n === "key" || n === "value" || n === "checked" || i[n] === e[n] || Ht(t, n, e[n], i[n], o);
|
|
457
|
+
}
|
|
458
|
+
function We(t, e, i) {
|
|
459
|
+
e[0] === "-" ? t.setProperty(e, i ?? "") : t[e] = i == null ? "" : typeof i != "number" || Yo.test(e) ? i : i + "px";
|
|
460
|
+
}
|
|
461
|
+
function Ht(t, e, i, o, a) {
|
|
462
|
+
var n;
|
|
463
|
+
t:
|
|
464
|
+
if (e === "style")
|
|
465
|
+
if (typeof i == "string")
|
|
466
|
+
t.style.cssText = i;
|
|
467
|
+
else {
|
|
468
|
+
if (typeof o == "string" && (t.style.cssText = o = ""), o)
|
|
469
|
+
for (e in o)
|
|
470
|
+
i && e in i || We(t.style, e, "");
|
|
471
|
+
if (i)
|
|
472
|
+
for (e in i)
|
|
473
|
+
o && i[e] === o[e] || We(t.style, e, i[e]);
|
|
474
|
+
}
|
|
475
|
+
else if (e[0] === "o" && e[1] === "n")
|
|
476
|
+
n = e !== (e = e.replace(/Capture$/, "")), e = e.toLowerCase() in t ? e.toLowerCase().slice(2) : e.slice(2), t.l || (t.l = {}), t.l[e + n] = i, i ? o || t.addEventListener(e, n ? Ke : Ye, n) : t.removeEventListener(e, n ? Ke : Ye, n);
|
|
477
|
+
else if (e !== "dangerouslySetInnerHTML") {
|
|
478
|
+
if (a)
|
|
479
|
+
e = e.replace(/xlink(H|:h)/, "h").replace(/sName$/, "s");
|
|
480
|
+
else if (e !== "width" && e !== "height" && e !== "href" && e !== "list" && e !== "form" && e !== "tabIndex" && e !== "download" && e !== "rowSpan" && e !== "colSpan" && e in t)
|
|
481
|
+
try {
|
|
482
|
+
t[e] = i ?? "";
|
|
483
|
+
break t;
|
|
484
|
+
} catch {
|
|
485
|
+
}
|
|
486
|
+
typeof i == "function" || (i == null || i === !1 && e[4] !== "-" ? t.removeAttribute(e) : t.setAttribute(e, i));
|
|
487
|
+
}
|
|
488
|
+
}
|
|
489
|
+
function Ye(t) {
|
|
490
|
+
return this.l[t.type + !1](h.event ? h.event(t) : t);
|
|
491
|
+
}
|
|
492
|
+
function Ke(t) {
|
|
493
|
+
return this.l[t.type + !0](h.event ? h.event(t) : t);
|
|
494
|
+
}
|
|
495
|
+
function Oe(t, e, i, o, a, n, r, s, c, d) {
|
|
496
|
+
var u, l, w, g, f, b, j, x, v, _, y, E, T, R, H, O = e.type;
|
|
497
|
+
if (e.constructor !== void 0)
|
|
498
|
+
return null;
|
|
499
|
+
i.__h != null && (c = i.__h, s = e.__e = i.__e, e.__h = null, n = [s]), (u = h.__b) && u(e);
|
|
500
|
+
try {
|
|
501
|
+
t:
|
|
502
|
+
if (typeof O == "function") {
|
|
503
|
+
if (x = e.props, v = (u = O.contextType) && o[u.__c], _ = u ? v ? v.props.value : u.__ : o, i.__c ? j = (l = e.__c = i.__c).__ = l.__E : ("prototype" in O && O.prototype.render ? e.__c = l = new O(x, _) : (e.__c = l = new M(x, _), l.constructor = O, l.render = Zo), v && v.sub(l), l.props = x, l.state || (l.state = {}), l.context = _, l.__n = o, w = l.__d = !0, l.__h = [], l._sb = []), l.__s == null && (l.__s = l.state), O.getDerivedStateFromProps != null && (l.__s == l.state && (l.__s = X({}, l.__s)), X(l.__s, O.getDerivedStateFromProps(x, l.__s))), g = l.props, f = l.state, l.__v = e, w)
|
|
504
|
+
O.getDerivedStateFromProps == null && l.componentWillMount != null && l.componentWillMount(), l.componentDidMount != null && l.__h.push(l.componentDidMount);
|
|
505
|
+
else {
|
|
506
|
+
if (O.getDerivedStateFromProps == null && x !== g && l.componentWillReceiveProps != null && l.componentWillReceiveProps(x, _), !l.__e && (l.shouldComponentUpdate != null && l.shouldComponentUpdate(x, l.__s, _) === !1 || e.__v === i.__v)) {
|
|
507
|
+
for (e.__v !== i.__v && (l.props = x, l.state = l.__s, l.__d = !1), e.__e = i.__e, e.__k = i.__k, e.__k.forEach(function(Pt) {
|
|
508
|
+
Pt && (Pt.__ = e);
|
|
509
|
+
}), y = 0; y < l._sb.length; y++)
|
|
510
|
+
l.__h.push(l._sb[y]);
|
|
511
|
+
l._sb = [], l.__h.length && r.push(l);
|
|
512
|
+
break t;
|
|
513
|
+
}
|
|
514
|
+
l.componentWillUpdate != null && l.componentWillUpdate(x, l.__s, _), l.componentDidUpdate != null && l.__h.push(function() {
|
|
515
|
+
l.componentDidUpdate(g, f, b);
|
|
516
|
+
});
|
|
517
|
+
}
|
|
518
|
+
if (l.context = _, l.props = x, l.__P = t, l.__e = !1, E = h.__r, T = 0, "prototype" in O && O.prototype.render) {
|
|
519
|
+
for (l.state = l.__s, l.__d = !1, E && E(e), u = l.render(l.props, l.state, l.context), R = 0; R < l._sb.length; R++)
|
|
520
|
+
l.__h.push(l._sb[R]);
|
|
521
|
+
l._sb = [];
|
|
522
|
+
} else
|
|
523
|
+
do
|
|
524
|
+
l.__d = !1, E && E(e), u = l.render(l.props, l.state, l.context), l.state = l.__s;
|
|
525
|
+
while (l.__d && ++T < 25);
|
|
526
|
+
l.state = l.__s, l.getChildContext != null && (o = X(X({}, o), l.getChildContext())), w || l.getSnapshotBeforeUpdate == null || (b = l.getSnapshotBeforeUpdate(g, f)), Mi(t, Kt(H = u != null && u.type === K && u.key == null ? u.props.children : u) ? H : [H], e, i, o, a, n, r, s, c, d), l.base = e.__e, e.__h = null, l.__h.length && r.push(l), j && (l.__E = l.__ = null);
|
|
527
|
+
} else
|
|
528
|
+
n == null && e.__v === i.__v ? (e.__k = i.__k, e.__e = i.__e) : e.__e = Go(i.__e, e, i, o, a, n, r, c, d);
|
|
529
|
+
(u = h.diffed) && u(e);
|
|
530
|
+
} catch (Pt) {
|
|
531
|
+
e.__v = null, (c || n != null) && (e.__e = s, e.__h = !!c, n[n.indexOf(s)] = null), h.__e(Pt, e, i);
|
|
532
|
+
}
|
|
533
|
+
}
|
|
534
|
+
function Ui(t, e, i) {
|
|
535
|
+
for (var o = 0; o < i.length; o++)
|
|
536
|
+
Ie(i[o], i[++o], i[++o]);
|
|
537
|
+
h.__c && h.__c(e, t), t.some(function(a) {
|
|
538
|
+
try {
|
|
539
|
+
t = a.__h, a.__h = [], t.some(function(n) {
|
|
540
|
+
n.call(a);
|
|
541
|
+
});
|
|
542
|
+
} catch (n) {
|
|
543
|
+
h.__e(n, a.__v);
|
|
544
|
+
}
|
|
545
|
+
});
|
|
546
|
+
}
|
|
547
|
+
function Go(t, e, i, o, a, n, r, s, c) {
|
|
548
|
+
var d, u, l, w = i.props, g = e.props, f = e.type, b = 0;
|
|
549
|
+
if (f === "svg" && (a = !0), n != null) {
|
|
550
|
+
for (; b < n.length; b++)
|
|
551
|
+
if ((d = n[b]) && "setAttribute" in d == !!f && (f ? d.localName === f : d.nodeType === 3)) {
|
|
552
|
+
t = d, n[b] = null;
|
|
553
|
+
break;
|
|
554
|
+
}
|
|
555
|
+
}
|
|
556
|
+
if (t == null) {
|
|
557
|
+
if (f === null)
|
|
558
|
+
return document.createTextNode(g);
|
|
559
|
+
t = a ? document.createElementNS("http://www.w3.org/2000/svg", f) : document.createElement(f, g.is && g), n = null, s = !1;
|
|
560
|
+
}
|
|
561
|
+
if (f === null)
|
|
562
|
+
w === g || s && t.data === g || (t.data = g);
|
|
563
|
+
else {
|
|
564
|
+
if (n = n && Ct.call(t.childNodes), u = (w = i.props || pt).dangerouslySetInnerHTML, l = g.dangerouslySetInnerHTML, !s) {
|
|
565
|
+
if (n != null)
|
|
566
|
+
for (w = {}, b = 0; b < t.attributes.length; b++)
|
|
567
|
+
w[t.attributes[b].name] = t.attributes[b].value;
|
|
568
|
+
(l || u) && (l && (u && l.__html == u.__html || l.__html === t.innerHTML) || (t.innerHTML = l && l.__html || ""));
|
|
569
|
+
}
|
|
570
|
+
if (Xo(t, g, w, a, s), l)
|
|
571
|
+
e.__k = [];
|
|
572
|
+
else if (Mi(t, Kt(b = e.props.children) ? b : [b], e, i, o, a && f !== "foreignObject", n, r, n ? n[0] : i.__k && Mt(i, 0), s, c), n != null)
|
|
573
|
+
for (b = n.length; b--; )
|
|
574
|
+
n[b] != null && Fi(n[b]);
|
|
575
|
+
s || ("value" in g && (b = g.value) !== void 0 && (b !== t.value || f === "progress" && !b || f === "option" && b !== w.value) && Ht(t, "value", b, w.value, !1), "checked" in g && (b = g.checked) !== void 0 && b !== t.checked && Ht(t, "checked", b, w.checked, !1));
|
|
576
|
+
}
|
|
577
|
+
return t;
|
|
578
|
+
}
|
|
579
|
+
function Ie(t, e, i) {
|
|
580
|
+
try {
|
|
581
|
+
typeof t == "function" ? t(e) : t.current = e;
|
|
582
|
+
} catch (o) {
|
|
583
|
+
h.__e(o, i);
|
|
584
|
+
}
|
|
585
|
+
}
|
|
586
|
+
function Vi(t, e, i) {
|
|
587
|
+
var o, a;
|
|
588
|
+
if (h.unmount && h.unmount(t), (o = t.ref) && (o.current && o.current !== t.__e || Ie(o, null, e)), (o = t.__c) != null) {
|
|
589
|
+
if (o.componentWillUnmount)
|
|
590
|
+
try {
|
|
591
|
+
o.componentWillUnmount();
|
|
592
|
+
} catch (n) {
|
|
593
|
+
h.__e(n, e);
|
|
594
|
+
}
|
|
595
|
+
o.base = o.__P = null, t.__c = void 0;
|
|
596
|
+
}
|
|
597
|
+
if (o = t.__k)
|
|
598
|
+
for (a = 0; a < o.length; a++)
|
|
599
|
+
o[a] && Vi(o[a], e, i || typeof t.type != "function");
|
|
600
|
+
i || t.__e == null || Fi(t.__e), t.__ = t.__e = t.__d = void 0;
|
|
601
|
+
}
|
|
602
|
+
function Zo(t, e, i) {
|
|
603
|
+
return this.constructor(t, i);
|
|
604
|
+
}
|
|
605
|
+
function ct(t, e, i) {
|
|
606
|
+
var o, a, n, r;
|
|
607
|
+
h.__ && h.__(t, e), a = (o = typeof i == "function") ? null : i && i.__k || e.__k, n = [], r = [], Oe(e, t = (!o && i || e).__k = B(K, null, [t]), a || pt, pt, e.ownerSVGElement !== void 0, !o && i ? [i] : a ? null : e.firstChild ? Ct.call(e.childNodes) : null, n, !o && i ? i : a ? a.__e : e.firstChild, o, r), Ui(n, t, r);
|
|
608
|
+
}
|
|
609
|
+
function Wi(t, e) {
|
|
610
|
+
ct(t, e, Wi);
|
|
611
|
+
}
|
|
612
|
+
function Jo(t, e, i) {
|
|
613
|
+
var o, a, n, r, s = X({}, t.props);
|
|
614
|
+
for (n in t.type && t.type.defaultProps && (r = t.type.defaultProps), e)
|
|
615
|
+
n == "key" ? o = e[n] : n == "ref" ? a = e[n] : s[n] = e[n] === void 0 && r !== void 0 ? r[n] : e[n];
|
|
616
|
+
return arguments.length > 2 && (s.children = arguments.length > 3 ? Ct.call(arguments, 2) : i), yt(t.type, s, o || t.key, a || t.ref, null);
|
|
617
|
+
}
|
|
618
|
+
function Yi(t, e) {
|
|
619
|
+
var i = { __c: e = "__cC" + Ai++, __: t, Consumer: function(o, a) {
|
|
620
|
+
return o.children(a);
|
|
621
|
+
}, Provider: function(o) {
|
|
622
|
+
var a, n;
|
|
623
|
+
return this.getChildContext || (a = [], (n = {})[e] = this, this.getChildContext = function() {
|
|
624
|
+
return n;
|
|
625
|
+
}, this.shouldComponentUpdate = function(r) {
|
|
626
|
+
this.props.value !== r.value && a.some(function(s) {
|
|
627
|
+
s.__e = !0, de(s);
|
|
628
|
+
});
|
|
629
|
+
}, this.sub = function(r) {
|
|
630
|
+
a.push(r);
|
|
631
|
+
var s = r.componentWillUnmount;
|
|
632
|
+
r.componentWillUnmount = function() {
|
|
633
|
+
a.splice(a.indexOf(r), 1), s && s.call(r);
|
|
634
|
+
};
|
|
635
|
+
}), o.children;
|
|
636
|
+
} };
|
|
637
|
+
return i.Provider.__ = i.Consumer.contextType = i;
|
|
638
|
+
}
|
|
639
|
+
Ct = Bi.slice, h = { __e: function(t, e, i, o) {
|
|
640
|
+
for (var a, n, r; e = e.__; )
|
|
641
|
+
if ((a = e.__c) && !a.__)
|
|
642
|
+
try {
|
|
643
|
+
if ((n = a.constructor) && n.getDerivedStateFromError != null && (a.setState(n.getDerivedStateFromError(t)), r = a.__d), a.componentDidCatch != null && (a.componentDidCatch(t, o || {}), r = a.__d), r)
|
|
644
|
+
return a.__E = a;
|
|
645
|
+
} catch (s) {
|
|
646
|
+
t = s;
|
|
647
|
+
}
|
|
648
|
+
throw t;
|
|
649
|
+
} }, ji = 0, Di = function(t) {
|
|
650
|
+
return t != null && t.constructor === void 0;
|
|
651
|
+
}, M.prototype.setState = function(t, e) {
|
|
652
|
+
var i;
|
|
653
|
+
i = this.__s != null && this.__s !== this.state ? this.__s : this.__s = X({}, this.state), typeof t == "function" && (t = t(X({}, i), this.props)), t && X(i, t), t != null && this.__v && (e && this._sb.push(e), de(this));
|
|
654
|
+
}, M.prototype.forceUpdate = function(t) {
|
|
655
|
+
this.__v && (this.__e = !0, t && this.__h.push(t), de(this));
|
|
656
|
+
}, M.prototype.render = K, st = [], Ni = typeof Promise == "function" ? Promise.prototype.then.bind(Promise.resolve()) : setTimeout, ce = function(t, e) {
|
|
657
|
+
return t.__v.__b - e.__v.__b;
|
|
658
|
+
}, Rt.__r = 0, Ai = 0;
|
|
659
|
+
function Ki(t) {
|
|
660
|
+
var e, i, o = "";
|
|
661
|
+
if (typeof t == "string" || typeof t == "number")
|
|
662
|
+
o += t;
|
|
663
|
+
else if (typeof t == "object")
|
|
664
|
+
if (Array.isArray(t)) {
|
|
665
|
+
var a = t.length;
|
|
666
|
+
for (e = 0; e < a; e++)
|
|
667
|
+
t[e] && (i = Ki(t[e])) && (o && (o += " "), o += i);
|
|
668
|
+
} else
|
|
669
|
+
for (i in t)
|
|
670
|
+
t[i] && (o && (o += " "), o += i);
|
|
671
|
+
return o;
|
|
672
|
+
}
|
|
673
|
+
function je() {
|
|
674
|
+
for (var t, e, i = 0, o = "", a = arguments.length; i < a; i++)
|
|
675
|
+
(t = arguments[i]) && (e = Ki(t)) && (o && (o += " "), o += e);
|
|
676
|
+
return o;
|
|
677
|
+
}
|
|
678
|
+
const qe = (t) => typeof t == "boolean" ? `${t}` : t === 0 ? "0" : t, Xe = je, De = (t, e) => (i) => {
|
|
679
|
+
var o;
|
|
680
|
+
if ((e == null ? void 0 : e.variants) == null)
|
|
681
|
+
return Xe(t, i == null ? void 0 : i.class, i == null ? void 0 : i.className);
|
|
682
|
+
const { variants: a, defaultVariants: n } = e, r = Object.keys(a).map((d) => {
|
|
683
|
+
const u = i == null ? void 0 : i[d], l = n == null ? void 0 : n[d];
|
|
684
|
+
if (u === null)
|
|
685
|
+
return null;
|
|
686
|
+
const w = qe(u) || qe(l);
|
|
687
|
+
return a[d][w];
|
|
688
|
+
}), s = i && Object.entries(i).reduce((d, u) => {
|
|
689
|
+
let [l, w] = u;
|
|
690
|
+
return w === void 0 || (d[l] = w), d;
|
|
691
|
+
}, {}), c = e == null || (o = e.compoundVariants) === null || o === void 0 ? void 0 : o.reduce((d, u) => {
|
|
692
|
+
let { class: l, className: w, ...g } = u;
|
|
693
|
+
return Object.entries(g).every((f) => {
|
|
694
|
+
let [b, j] = f;
|
|
695
|
+
return Array.isArray(j) ? j.includes({
|
|
696
|
+
...n,
|
|
697
|
+
...s
|
|
698
|
+
}[b]) : {
|
|
699
|
+
...n,
|
|
700
|
+
...s
|
|
701
|
+
}[b] === j;
|
|
702
|
+
}) ? [
|
|
703
|
+
...d,
|
|
704
|
+
l,
|
|
705
|
+
w
|
|
706
|
+
] : d;
|
|
707
|
+
}, []);
|
|
708
|
+
return Xe(t, r, c, i == null ? void 0 : i.class, i == null ? void 0 : i.className);
|
|
709
|
+
};
|
|
710
|
+
var at, C, Qt, Ge, ft = 0, qi = [], Ot = [], Ze = h.__b, Je = h.__r, Qe = h.diffed, ti = h.__c, ei = h.unmount;
|
|
711
|
+
function wt(t, e) {
|
|
712
|
+
h.__h && h.__h(C, t, ft || e), ft = 0;
|
|
713
|
+
var i = C.__H || (C.__H = { __: [], __h: [] });
|
|
714
|
+
return t >= i.__.length && i.__.push({ __V: Ot }), i.__[t];
|
|
715
|
+
}
|
|
716
|
+
function Xi(t) {
|
|
717
|
+
return ft = 1, Gi(Qi, t);
|
|
718
|
+
}
|
|
719
|
+
function Gi(t, e, i) {
|
|
720
|
+
var o = wt(at++, 2);
|
|
721
|
+
if (o.t = t, !o.__c && (o.__ = [i ? i(e) : Qi(void 0, e), function(s) {
|
|
722
|
+
var c = o.__N ? o.__N[0] : o.__[0], d = o.t(c, s);
|
|
723
|
+
c !== d && (o.__N = [d, o.__[1]], o.__c.setState({}));
|
|
724
|
+
}], o.__c = C, !C.u)) {
|
|
725
|
+
var a = function(s, c, d) {
|
|
726
|
+
if (!o.__c.__H)
|
|
727
|
+
return !0;
|
|
728
|
+
var u = o.__c.__H.__.filter(function(w) {
|
|
729
|
+
return w.__c;
|
|
730
|
+
});
|
|
731
|
+
if (u.every(function(w) {
|
|
732
|
+
return !w.__N;
|
|
733
|
+
}))
|
|
734
|
+
return !n || n.call(this, s, c, d);
|
|
735
|
+
var l = !1;
|
|
736
|
+
return u.forEach(function(w) {
|
|
737
|
+
if (w.__N) {
|
|
738
|
+
var g = w.__[0];
|
|
739
|
+
w.__ = w.__N, w.__N = void 0, g !== w.__[0] && (l = !0);
|
|
740
|
+
}
|
|
741
|
+
}), !(!l && o.__c.props === s) && (!n || n.call(this, s, c, d));
|
|
742
|
+
};
|
|
743
|
+
C.u = !0;
|
|
744
|
+
var n = C.shouldComponentUpdate, r = C.componentWillUpdate;
|
|
745
|
+
C.componentWillUpdate = function(s, c, d) {
|
|
746
|
+
if (this.__e) {
|
|
747
|
+
var u = n;
|
|
748
|
+
n = void 0, a(s, c, d), n = u;
|
|
749
|
+
}
|
|
750
|
+
r && r.call(this, s, c, d);
|
|
751
|
+
}, C.shouldComponentUpdate = a;
|
|
752
|
+
}
|
|
753
|
+
return o.__N || o.__;
|
|
754
|
+
}
|
|
755
|
+
function Zi(t, e) {
|
|
756
|
+
var i = wt(at++, 3);
|
|
757
|
+
!h.__s && Ne(i.__H, e) && (i.__ = t, i.i = e, C.__H.__h.push(i));
|
|
758
|
+
}
|
|
759
|
+
function gt(t, e) {
|
|
760
|
+
var i = wt(at++, 4);
|
|
761
|
+
!h.__s && Ne(i.__H, e) && (i.__ = t, i.i = e, C.__h.push(i));
|
|
762
|
+
}
|
|
763
|
+
function qt(t) {
|
|
764
|
+
return ft = 5, dt(function() {
|
|
765
|
+
return { current: t };
|
|
766
|
+
}, []);
|
|
767
|
+
}
|
|
768
|
+
function Qo(t, e, i) {
|
|
769
|
+
ft = 6, gt(function() {
|
|
770
|
+
return typeof t == "function" ? (t(e()), function() {
|
|
771
|
+
return t(null);
|
|
772
|
+
}) : t ? (t.current = e(), function() {
|
|
773
|
+
return t.current = null;
|
|
774
|
+
}) : void 0;
|
|
775
|
+
}, i == null ? i : i.concat(t));
|
|
776
|
+
}
|
|
777
|
+
function dt(t, e) {
|
|
778
|
+
var i = wt(at++, 7);
|
|
779
|
+
return Ne(i.__H, e) ? (i.__V = t(), i.i = e, i.__h = t, i.__V) : i.__;
|
|
780
|
+
}
|
|
781
|
+
function ta(t, e) {
|
|
782
|
+
return ft = 8, dt(function() {
|
|
783
|
+
return t;
|
|
784
|
+
}, e);
|
|
785
|
+
}
|
|
786
|
+
function Ji(t) {
|
|
787
|
+
var e = C.context[t.__c], i = wt(at++, 9);
|
|
788
|
+
return i.c = t, e ? (i.__ == null && (i.__ = !0, e.sub(C)), e.props.value) : t.__;
|
|
789
|
+
}
|
|
790
|
+
function ea(t, e) {
|
|
791
|
+
h.useDebugValue && h.useDebugValue(e ? e(t) : t);
|
|
792
|
+
}
|
|
793
|
+
function ia() {
|
|
794
|
+
var t = wt(at++, 11);
|
|
795
|
+
if (!t.__) {
|
|
796
|
+
for (var e = C.__v; e !== null && !e.__m && e.__ !== null; )
|
|
797
|
+
e = e.__;
|
|
798
|
+
var i = e.__m || (e.__m = [0, 0]);
|
|
799
|
+
t.__ = "P" + i[0] + "-" + i[1]++;
|
|
800
|
+
}
|
|
801
|
+
return t.__;
|
|
802
|
+
}
|
|
803
|
+
function oa() {
|
|
804
|
+
for (var t; t = qi.shift(); )
|
|
805
|
+
if (t.__P && t.__H)
|
|
806
|
+
try {
|
|
807
|
+
t.__H.__h.forEach(It), t.__H.__h.forEach(ue), t.__H.__h = [];
|
|
808
|
+
} catch (e) {
|
|
809
|
+
t.__H.__h = [], h.__e(e, t.__v);
|
|
810
|
+
}
|
|
811
|
+
}
|
|
812
|
+
h.__b = function(t) {
|
|
813
|
+
C = null, Ze && Ze(t);
|
|
814
|
+
}, h.__r = function(t) {
|
|
815
|
+
Je && Je(t), at = 0;
|
|
816
|
+
var e = (C = t.__c).__H;
|
|
817
|
+
e && (Qt === C ? (e.__h = [], C.__h = [], e.__.forEach(function(i) {
|
|
818
|
+
i.__N && (i.__ = i.__N), i.__V = Ot, i.__N = i.i = void 0;
|
|
819
|
+
})) : (e.__h.forEach(It), e.__h.forEach(ue), e.__h = [], at = 0)), Qt = C;
|
|
820
|
+
}, h.diffed = function(t) {
|
|
821
|
+
Qe && Qe(t);
|
|
822
|
+
var e = t.__c;
|
|
823
|
+
e && e.__H && (e.__H.__h.length && (qi.push(e) !== 1 && Ge === h.requestAnimationFrame || ((Ge = h.requestAnimationFrame) || aa)(oa)), e.__H.__.forEach(function(i) {
|
|
824
|
+
i.i && (i.__H = i.i), i.__V !== Ot && (i.__ = i.__V), i.i = void 0, i.__V = Ot;
|
|
825
|
+
})), Qt = C = null;
|
|
826
|
+
}, h.__c = function(t, e) {
|
|
827
|
+
e.some(function(i) {
|
|
828
|
+
try {
|
|
829
|
+
i.__h.forEach(It), i.__h = i.__h.filter(function(o) {
|
|
830
|
+
return !o.__ || ue(o);
|
|
831
|
+
});
|
|
832
|
+
} catch (o) {
|
|
833
|
+
e.some(function(a) {
|
|
834
|
+
a.__h && (a.__h = []);
|
|
835
|
+
}), e = [], h.__e(o, i.__v);
|
|
836
|
+
}
|
|
837
|
+
}), ti && ti(t, e);
|
|
838
|
+
}, h.unmount = function(t) {
|
|
839
|
+
ei && ei(t);
|
|
840
|
+
var e, i = t.__c;
|
|
841
|
+
i && i.__H && (i.__H.__.forEach(function(o) {
|
|
842
|
+
try {
|
|
843
|
+
It(o);
|
|
844
|
+
} catch (a) {
|
|
845
|
+
e = a;
|
|
846
|
+
}
|
|
847
|
+
}), i.__H = void 0, e && h.__e(e, i.__v));
|
|
848
|
+
};
|
|
849
|
+
var ii = typeof requestAnimationFrame == "function";
|
|
850
|
+
function aa(t) {
|
|
851
|
+
var e, i = function() {
|
|
852
|
+
clearTimeout(o), ii && cancelAnimationFrame(e), setTimeout(t);
|
|
853
|
+
}, o = setTimeout(i, 100);
|
|
854
|
+
ii && (e = requestAnimationFrame(i));
|
|
855
|
+
}
|
|
856
|
+
function It(t) {
|
|
857
|
+
var e = C, i = t.__c;
|
|
858
|
+
typeof i == "function" && (t.__c = void 0, i()), C = e;
|
|
859
|
+
}
|
|
860
|
+
function ue(t) {
|
|
861
|
+
var e = C;
|
|
862
|
+
t.__c = t.__(), C = e;
|
|
863
|
+
}
|
|
864
|
+
function Ne(t, e) {
|
|
865
|
+
return !t || t.length !== e.length || e.some(function(i, o) {
|
|
866
|
+
return i !== t[o];
|
|
867
|
+
});
|
|
868
|
+
}
|
|
869
|
+
function Qi(t, e) {
|
|
870
|
+
return typeof e == "function" ? e(t) : e;
|
|
871
|
+
}
|
|
872
|
+
function to(t, e) {
|
|
873
|
+
for (var i in e)
|
|
874
|
+
t[i] = e[i];
|
|
875
|
+
return t;
|
|
876
|
+
}
|
|
877
|
+
function pe(t, e) {
|
|
878
|
+
for (var i in t)
|
|
879
|
+
if (i !== "__source" && !(i in e))
|
|
880
|
+
return !0;
|
|
881
|
+
for (var o in e)
|
|
882
|
+
if (o !== "__source" && t[o] !== e[o])
|
|
883
|
+
return !0;
|
|
884
|
+
return !1;
|
|
885
|
+
}
|
|
886
|
+
function te(t, e) {
|
|
887
|
+
return t === e && (t !== 0 || 1 / t == 1 / e) || t != t && e != e;
|
|
888
|
+
}
|
|
889
|
+
function he(t) {
|
|
890
|
+
this.props = t;
|
|
891
|
+
}
|
|
892
|
+
function na(t, e) {
|
|
893
|
+
function i(a) {
|
|
894
|
+
var n = this.props.ref, r = n == a.ref;
|
|
895
|
+
return !r && n && (n.call ? n(null) : n.current = null), e ? !e(this.props, a) || !r : pe(this.props, a);
|
|
896
|
+
}
|
|
897
|
+
function o(a) {
|
|
898
|
+
return this.shouldComponentUpdate = i, B(t, a);
|
|
899
|
+
}
|
|
900
|
+
return o.displayName = "Memo(" + (t.displayName || t.name) + ")", o.prototype.isReactComponent = !0, o.__f = !0, o;
|
|
901
|
+
}
|
|
902
|
+
(he.prototype = new M()).isPureReactComponent = !0, he.prototype.shouldComponentUpdate = function(t, e) {
|
|
903
|
+
return pe(this.props, t) || pe(this.state, e);
|
|
904
|
+
};
|
|
905
|
+
var oi = h.__b;
|
|
906
|
+
h.__b = function(t) {
|
|
907
|
+
t.type && t.type.__f && t.ref && (t.props.ref = t.ref, t.ref = null), oi && oi(t);
|
|
908
|
+
};
|
|
909
|
+
var ra = typeof Symbol < "u" && Symbol.for && Symbol.for("react.forward_ref") || 3911;
|
|
910
|
+
function sa(t) {
|
|
911
|
+
function e(i) {
|
|
912
|
+
var o = to({}, i);
|
|
913
|
+
return delete o.ref, t(o, i.ref || null);
|
|
914
|
+
}
|
|
915
|
+
return e.$$typeof = ra, e.render = e, e.prototype.isReactComponent = e.__f = !0, e.displayName = "ForwardRef(" + (t.displayName || t.name) + ")", e;
|
|
916
|
+
}
|
|
917
|
+
var ai = function(t, e) {
|
|
918
|
+
return t == null ? null : Z(Z(t).map(e));
|
|
919
|
+
}, la = { map: ai, forEach: ai, count: function(t) {
|
|
920
|
+
return t ? Z(t).length : 0;
|
|
921
|
+
}, only: function(t) {
|
|
922
|
+
var e = Z(t);
|
|
923
|
+
if (e.length !== 1)
|
|
924
|
+
throw "Children.only";
|
|
925
|
+
return e[0];
|
|
926
|
+
}, toArray: Z }, ca = h.__e;
|
|
927
|
+
h.__e = function(t, e, i, o) {
|
|
928
|
+
if (t.then) {
|
|
929
|
+
for (var a, n = e; n = n.__; )
|
|
930
|
+
if ((a = n.__c) && a.__c)
|
|
931
|
+
return e.__e == null && (e.__e = i.__e, e.__k = i.__k), a.__c(t, e);
|
|
932
|
+
}
|
|
933
|
+
ca(t, e, i, o);
|
|
934
|
+
};
|
|
935
|
+
var ni = h.unmount;
|
|
936
|
+
function eo(t, e, i) {
|
|
937
|
+
return t && (t.__c && t.__c.__H && (t.__c.__H.__.forEach(function(o) {
|
|
938
|
+
typeof o.__c == "function" && o.__c();
|
|
939
|
+
}), t.__c.__H = null), (t = to({}, t)).__c != null && (t.__c.__P === i && (t.__c.__P = e), t.__c = null), t.__k = t.__k && t.__k.map(function(o) {
|
|
940
|
+
return eo(o, e, i);
|
|
941
|
+
})), t;
|
|
942
|
+
}
|
|
943
|
+
function io(t, e, i) {
|
|
944
|
+
return t && (t.__v = null, t.__k = t.__k && t.__k.map(function(o) {
|
|
945
|
+
return io(o, e, i);
|
|
946
|
+
}), t.__c && t.__c.__P === e && (t.__e && i.insertBefore(t.__e, t.__d), t.__c.__e = !0, t.__c.__P = i)), t;
|
|
947
|
+
}
|
|
948
|
+
function xt() {
|
|
949
|
+
this.__u = 0, this.t = null, this.__b = null;
|
|
950
|
+
}
|
|
951
|
+
function oo(t) {
|
|
952
|
+
var e = t.__.__c;
|
|
953
|
+
return e && e.__a && e.__a(t);
|
|
954
|
+
}
|
|
955
|
+
function ao(t) {
|
|
956
|
+
var e, i, o;
|
|
957
|
+
function a(n) {
|
|
958
|
+
if (e || (e = t()).then(function(r) {
|
|
959
|
+
i = r.default || r;
|
|
960
|
+
}, function(r) {
|
|
961
|
+
o = r;
|
|
962
|
+
}), o)
|
|
963
|
+
throw o;
|
|
964
|
+
if (!i)
|
|
965
|
+
throw e;
|
|
966
|
+
return B(i, n);
|
|
967
|
+
}
|
|
968
|
+
return a.displayName = "Lazy", a.__f = !0, a;
|
|
969
|
+
}
|
|
970
|
+
function mt() {
|
|
971
|
+
this.u = null, this.o = null;
|
|
972
|
+
}
|
|
973
|
+
h.unmount = function(t) {
|
|
974
|
+
var e = t.__c;
|
|
975
|
+
e && e.__R && e.__R(), e && t.__h === !0 && (t.type = null), ni && ni(t);
|
|
976
|
+
}, (xt.prototype = new M()).__c = function(t, e) {
|
|
977
|
+
var i = e.__c, o = this;
|
|
978
|
+
o.t == null && (o.t = []), o.t.push(i);
|
|
979
|
+
var a = oo(o.__v), n = !1, r = function() {
|
|
980
|
+
n || (n = !0, i.__R = null, a ? a(s) : s());
|
|
981
|
+
};
|
|
982
|
+
i.__R = r;
|
|
983
|
+
var s = function() {
|
|
984
|
+
if (!--o.__u) {
|
|
985
|
+
if (o.state.__a) {
|
|
986
|
+
var d = o.state.__a;
|
|
987
|
+
o.__v.__k[0] = io(d, d.__c.__P, d.__c.__O);
|
|
988
|
+
}
|
|
989
|
+
var u;
|
|
990
|
+
for (o.setState({ __a: o.__b = null }); u = o.t.pop(); )
|
|
991
|
+
u.forceUpdate();
|
|
992
|
+
}
|
|
993
|
+
}, c = e.__h === !0;
|
|
994
|
+
o.__u++ || c || o.setState({ __a: o.__b = o.__v.__k[0] }), t.then(r, r);
|
|
995
|
+
}, xt.prototype.componentWillUnmount = function() {
|
|
996
|
+
this.t = [];
|
|
997
|
+
}, xt.prototype.render = function(t, e) {
|
|
998
|
+
if (this.__b) {
|
|
999
|
+
if (this.__v.__k) {
|
|
1000
|
+
var i = document.createElement("div"), o = this.__v.__k[0].__c;
|
|
1001
|
+
this.__v.__k[0] = eo(this.__b, i, o.__O = o.__P);
|
|
1002
|
+
}
|
|
1003
|
+
this.__b = null;
|
|
1004
|
+
}
|
|
1005
|
+
var a = e.__a && B(K, null, t.fallback);
|
|
1006
|
+
return a && (a.__h = null), [B(K, null, e.__a ? null : t.children), a];
|
|
1007
|
+
};
|
|
1008
|
+
var ri = function(t, e, i) {
|
|
1009
|
+
if (++i[1] === i[0] && t.o.delete(e), t.props.revealOrder && (t.props.revealOrder[0] !== "t" || !t.o.size))
|
|
1010
|
+
for (i = t.u; i; ) {
|
|
1011
|
+
for (; i.length > 3; )
|
|
1012
|
+
i.pop()();
|
|
1013
|
+
if (i[1] < i[0])
|
|
1014
|
+
break;
|
|
1015
|
+
t.u = i = i[2];
|
|
1016
|
+
}
|
|
1017
|
+
};
|
|
1018
|
+
function da(t) {
|
|
1019
|
+
return this.getChildContext = function() {
|
|
1020
|
+
return t.context;
|
|
1021
|
+
}, t.children;
|
|
1022
|
+
}
|
|
1023
|
+
function ua(t) {
|
|
1024
|
+
var e = this, i = t.i;
|
|
1025
|
+
e.componentWillUnmount = function() {
|
|
1026
|
+
ct(null, e.l), e.l = null, e.i = null;
|
|
1027
|
+
}, e.i && e.i !== i && e.componentWillUnmount(), t.__v ? (e.l || (e.i = i, e.l = { nodeType: 1, parentNode: i, childNodes: [], appendChild: function(o) {
|
|
1028
|
+
this.childNodes.push(o), e.i.appendChild(o);
|
|
1029
|
+
}, insertBefore: function(o, a) {
|
|
1030
|
+
this.childNodes.push(o), e.i.appendChild(o);
|
|
1031
|
+
}, removeChild: function(o) {
|
|
1032
|
+
this.childNodes.splice(this.childNodes.indexOf(o) >>> 1, 1), e.i.removeChild(o);
|
|
1033
|
+
} }), ct(B(da, { context: e.context }, t.__v), e.l)) : e.l && e.componentWillUnmount();
|
|
1034
|
+
}
|
|
1035
|
+
function pa(t, e) {
|
|
1036
|
+
var i = B(ua, { __v: t, i: e });
|
|
1037
|
+
return i.containerInfo = e, i;
|
|
1038
|
+
}
|
|
1039
|
+
(mt.prototype = new M()).__a = function(t) {
|
|
1040
|
+
var e = this, i = oo(e.__v), o = e.o.get(t);
|
|
1041
|
+
return o[0]++, function(a) {
|
|
1042
|
+
var n = function() {
|
|
1043
|
+
e.props.revealOrder ? (o.push(a), ri(e, t, o)) : a();
|
|
1044
|
+
};
|
|
1045
|
+
i ? i(n) : n();
|
|
1046
|
+
};
|
|
1047
|
+
}, mt.prototype.render = function(t) {
|
|
1048
|
+
this.u = null, this.o = /* @__PURE__ */ new Map();
|
|
1049
|
+
var e = Z(t.children);
|
|
1050
|
+
t.revealOrder && t.revealOrder[0] === "b" && e.reverse();
|
|
1051
|
+
for (var i = e.length; i--; )
|
|
1052
|
+
this.o.set(e[i], this.u = [1, 0, this.u]);
|
|
1053
|
+
return t.children;
|
|
1054
|
+
}, mt.prototype.componentDidUpdate = mt.prototype.componentDidMount = function() {
|
|
1055
|
+
var t = this;
|
|
1056
|
+
this.o.forEach(function(e, i) {
|
|
1057
|
+
ri(t, i, e);
|
|
1058
|
+
});
|
|
1059
|
+
};
|
|
1060
|
+
var no = typeof Symbol < "u" && Symbol.for && Symbol.for("react.element") || 60103, ha = /^(?:accent|alignment|arabic|baseline|cap|clip(?!PathU)|color|dominant|fill|flood|font|glyph(?!R)|horiz|image(!S)|letter|lighting|marker(?!H|W|U)|overline|paint|pointer|shape|stop|strikethrough|stroke|text(?!L)|transform|underline|unicode|units|v|vector|vert|word|writing|x(?!C))[A-Z]/, fa = /^on(Ani|Tra|Tou|BeforeInp|Compo)/, wa = /[A-Z0-9]/g, ga = typeof document < "u", ba = function(t) {
|
|
1061
|
+
return (typeof Symbol < "u" && typeof Symbol() == "symbol" ? /fil|che|rad/ : /fil|che|ra/).test(t);
|
|
1062
|
+
};
|
|
1063
|
+
function va(t, e, i) {
|
|
1064
|
+
return e.__k == null && (e.textContent = ""), ct(t, e), typeof i == "function" && i(), t ? t.__c : null;
|
|
1065
|
+
}
|
|
1066
|
+
function _a(t, e, i) {
|
|
1067
|
+
return Wi(t, e), typeof i == "function" && i(), t ? t.__c : null;
|
|
1068
|
+
}
|
|
1069
|
+
M.prototype.isReactComponent = {}, ["componentWillMount", "componentWillReceiveProps", "componentWillUpdate"].forEach(function(t) {
|
|
1070
|
+
Object.defineProperty(M.prototype, t, { configurable: !0, get: function() {
|
|
1071
|
+
return this["UNSAFE_" + t];
|
|
1072
|
+
}, set: function(e) {
|
|
1073
|
+
Object.defineProperty(this, t, { configurable: !0, writable: !0, value: e });
|
|
1074
|
+
} });
|
|
1075
|
+
});
|
|
1076
|
+
var si = h.event;
|
|
1077
|
+
function ma() {
|
|
1078
|
+
}
|
|
1079
|
+
function ya() {
|
|
1080
|
+
return this.cancelBubble;
|
|
1081
|
+
}
|
|
1082
|
+
function xa() {
|
|
1083
|
+
return this.defaultPrevented;
|
|
1084
|
+
}
|
|
1085
|
+
h.event = function(t) {
|
|
1086
|
+
return si && (t = si(t)), t.persist = ma, t.isPropagationStopped = ya, t.isDefaultPrevented = xa, t.nativeEvent = t;
|
|
1087
|
+
};
|
|
1088
|
+
var Ae, ka = { enumerable: !1, configurable: !0, get: function() {
|
|
1089
|
+
return this.class;
|
|
1090
|
+
} }, li = h.vnode;
|
|
1091
|
+
h.vnode = function(t) {
|
|
1092
|
+
typeof t.type == "string" && function(e) {
|
|
1093
|
+
var i = e.props, o = e.type, a = {};
|
|
1094
|
+
for (var n in i) {
|
|
1095
|
+
var r = i[n];
|
|
1096
|
+
if (!(n === "value" && "defaultValue" in i && r == null || ga && n === "children" && o === "noscript" || n === "class" || n === "className")) {
|
|
1097
|
+
var s = n.toLowerCase();
|
|
1098
|
+
n === "defaultValue" && "value" in i && i.value == null ? n = "value" : n === "download" && r === !0 ? r = "" : s === "ondoubleclick" ? n = "ondblclick" : s !== "onchange" || o !== "input" && o !== "textarea" || ba(i.type) ? s === "onfocus" ? n = "onfocusin" : s === "onblur" ? n = "onfocusout" : fa.test(n) ? n = s : o.indexOf("-") === -1 && ha.test(n) ? n = n.replace(wa, "-$&").toLowerCase() : r === null && (r = void 0) : s = n = "oninput", s === "oninput" && a[n = s] && (n = "oninputCapture"), a[n] = r;
|
|
1099
|
+
}
|
|
1100
|
+
}
|
|
1101
|
+
o == "select" && a.multiple && Array.isArray(a.value) && (a.value = Z(i.children).forEach(function(c) {
|
|
1102
|
+
c.props.selected = a.value.indexOf(c.props.value) != -1;
|
|
1103
|
+
})), o == "select" && a.defaultValue != null && (a.value = Z(i.children).forEach(function(c) {
|
|
1104
|
+
c.props.selected = a.multiple ? a.defaultValue.indexOf(c.props.value) != -1 : a.defaultValue == c.props.value;
|
|
1105
|
+
})), i.class && !i.className ? (a.class = i.class, Object.defineProperty(a, "className", ka)) : (i.className && !i.class || i.class && i.className) && (a.class = a.className = i.className), e.props = a;
|
|
1106
|
+
}(t), t.$$typeof = no, li && li(t);
|
|
1107
|
+
};
|
|
1108
|
+
var ci = h.__r;
|
|
1109
|
+
h.__r = function(t) {
|
|
1110
|
+
ci && ci(t), Ae = t.__c;
|
|
1111
|
+
};
|
|
1112
|
+
var di = h.diffed;
|
|
1113
|
+
h.diffed = function(t) {
|
|
1114
|
+
di && di(t);
|
|
1115
|
+
var e = t.props, i = t.__e;
|
|
1116
|
+
i != null && t.type === "textarea" && "value" in e && e.value !== i.value && (i.value = e.value == null ? "" : e.value), Ae = null;
|
|
1117
|
+
};
|
|
1118
|
+
var $a = { ReactCurrentDispatcher: { current: { readContext: function(t) {
|
|
1119
|
+
return Ae.__n[t.__c].props.value;
|
|
1120
|
+
} } } };
|
|
1121
|
+
function Sa(t) {
|
|
1122
|
+
return B.bind(null, t);
|
|
1123
|
+
}
|
|
1124
|
+
function ro(t) {
|
|
1125
|
+
return !!t && t.$$typeof === no;
|
|
1126
|
+
}
|
|
1127
|
+
function Ca(t) {
|
|
1128
|
+
return ro(t) ? Jo.apply(null, arguments) : t;
|
|
1129
|
+
}
|
|
1130
|
+
function Ea(t) {
|
|
1131
|
+
return !!t.__k && (ct(null, t), !0);
|
|
1132
|
+
}
|
|
1133
|
+
function Pa(t) {
|
|
1134
|
+
return t && (t.base || t.nodeType === 1 && t) || null;
|
|
1135
|
+
}
|
|
1136
|
+
var Ta = function(t, e) {
|
|
1137
|
+
return t(e);
|
|
1138
|
+
}, za = function(t, e) {
|
|
1139
|
+
return t(e);
|
|
1140
|
+
}, Oa = K;
|
|
1141
|
+
function so(t) {
|
|
1142
|
+
t();
|
|
1143
|
+
}
|
|
1144
|
+
function Ia(t) {
|
|
1145
|
+
return t;
|
|
1146
|
+
}
|
|
1147
|
+
function ja() {
|
|
1148
|
+
return [!1, so];
|
|
1149
|
+
}
|
|
1150
|
+
var Da = gt;
|
|
1151
|
+
function Na(t, e) {
|
|
1152
|
+
var i = e(), o = Xi({ h: { __: i, v: e } }), a = o[0].h, n = o[1];
|
|
1153
|
+
return gt(function() {
|
|
1154
|
+
a.__ = i, a.v = e, te(a.__, e()) || n({ h: a });
|
|
1155
|
+
}, [t, i, e]), Zi(function() {
|
|
1156
|
+
return te(a.__, a.v()) || n({ h: a }), t(function() {
|
|
1157
|
+
te(a.__, a.v()) || n({ h: a });
|
|
1158
|
+
});
|
|
1159
|
+
}, [t]), i;
|
|
1160
|
+
}
|
|
1161
|
+
var sr = { useState: Xi, useId: ia, useReducer: Gi, useEffect: Zi, useLayoutEffect: gt, useInsertionEffect: Da, useTransition: ja, useDeferredValue: Ia, useSyncExternalStore: Na, startTransition: so, useRef: qt, useImperativeHandle: Qo, useMemo: dt, useCallback: ta, useContext: Ji, useDebugValue: ea, version: "17.0.2", Children: la, render: va, hydrate: _a, unmountComponentAtNode: Ea, createPortal: pa, createElement: B, createContext: Yi, createFactory: Sa, cloneElement: Ca, createRef: Ko, Fragment: K, isValidElement: ro, findDOMNode: Pa, Component: M, PureComponent: he, memo: na, forwardRef: sa, flushSync: za, unstable_batchedUpdates: Ta, StrictMode: Oa, Suspense: xt, SuspenseList: mt, lazy: ao, __SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED: $a };
|
|
1162
|
+
const N = Symbol.for("@ts-pattern/matcher"), lo = Symbol.for("@ts-pattern/isVariadic"), Ut = "@ts-pattern/anonymous-select-key", fe = (t) => !!(t && typeof t == "object"), jt = (t) => t && !!t[N], P = (t, e, i) => {
|
|
1163
|
+
if (jt(t)) {
|
|
1164
|
+
const o = t[N](), { matched: a, selections: n } = o.match(e);
|
|
1165
|
+
return a && n && Object.keys(n).forEach((r) => i(r, n[r])), a;
|
|
1166
|
+
}
|
|
1167
|
+
if (fe(t)) {
|
|
1168
|
+
if (!fe(e))
|
|
1169
|
+
return !1;
|
|
1170
|
+
if (Array.isArray(t)) {
|
|
1171
|
+
if (!Array.isArray(e))
|
|
1172
|
+
return !1;
|
|
1173
|
+
let o = [], a = [], n = [];
|
|
1174
|
+
for (const r of t.keys()) {
|
|
1175
|
+
const s = t[r];
|
|
1176
|
+
jt(s) && s[lo] ? n.push(s) : n.length ? a.push(s) : o.push(s);
|
|
1177
|
+
}
|
|
1178
|
+
if (n.length) {
|
|
1179
|
+
if (n.length > 1)
|
|
1180
|
+
throw new Error("Pattern error: Using `...P.array(...)` several times in a single pattern is not allowed.");
|
|
1181
|
+
if (e.length < o.length + a.length)
|
|
1182
|
+
return !1;
|
|
1183
|
+
const r = e.slice(0, o.length), s = a.length === 0 ? [] : e.slice(-a.length), c = e.slice(o.length, a.length === 0 ? 1 / 0 : -a.length);
|
|
1184
|
+
return o.every((d, u) => P(d, r[u], i)) && a.every((d, u) => P(d, s[u], i)) && (n.length === 0 || P(n[0], c, i));
|
|
1185
|
+
}
|
|
1186
|
+
return t.length === e.length && t.every((r, s) => P(r, e[s], i));
|
|
1187
|
+
}
|
|
1188
|
+
return Reflect.ownKeys(t).every((o) => {
|
|
1189
|
+
const a = t[o];
|
|
1190
|
+
return (o in e || jt(n = a) && n[N]().matcherType === "optional") && P(a, e[o], i);
|
|
1191
|
+
var n;
|
|
1192
|
+
});
|
|
1193
|
+
}
|
|
1194
|
+
return Object.is(e, t);
|
|
1195
|
+
}, D = (t) => {
|
|
1196
|
+
var e, i, o;
|
|
1197
|
+
return fe(t) ? jt(t) ? (e = (i = (o = t[N]()).getSelectionKeys) == null ? void 0 : i.call(o)) != null ? e : [] : Array.isArray(t) ? $t(t, D) : $t(Object.values(t), D) : [];
|
|
1198
|
+
}, $t = (t, e) => t.reduce((i, o) => i.concat(e(o)), []);
|
|
1199
|
+
function Aa(...t) {
|
|
1200
|
+
if (t.length === 1) {
|
|
1201
|
+
const [e] = t;
|
|
1202
|
+
return (i) => P(e, i, () => {
|
|
1203
|
+
});
|
|
1204
|
+
}
|
|
1205
|
+
if (t.length === 2) {
|
|
1206
|
+
const [e, i] = t;
|
|
1207
|
+
return P(e, i, () => {
|
|
1208
|
+
});
|
|
1209
|
+
}
|
|
1210
|
+
throw new Error(`isMatching wasn't given the right number of arguments: expected 1 or 2, received ${t.length}.`);
|
|
1211
|
+
}
|
|
1212
|
+
function z(t) {
|
|
1213
|
+
return Object.assign(t, { optional: () => Be(t), and: (e) => S(t, e), or: (e) => co(t, e), select: (e) => e === void 0 ? St(t) : St(e, t) });
|
|
1214
|
+
}
|
|
1215
|
+
function we(t) {
|
|
1216
|
+
return Object.assign(((e) => Object.assign(e, { [Symbol.iterator]() {
|
|
1217
|
+
let i = 0;
|
|
1218
|
+
const o = [{ value: Object.assign(e, { [lo]: !0 }), done: !1 }, { done: !0, value: void 0 }];
|
|
1219
|
+
return { next: () => {
|
|
1220
|
+
var a;
|
|
1221
|
+
return (a = o[i++]) != null ? a : o.at(-1);
|
|
1222
|
+
} };
|
|
1223
|
+
} }))(t), { optional: () => we(Be(t)), select: (e) => we(e === void 0 ? St(t) : St(e, t)) });
|
|
1224
|
+
}
|
|
1225
|
+
function Be(t) {
|
|
1226
|
+
return z({ [N]: () => ({ match: (e) => {
|
|
1227
|
+
let i = {};
|
|
1228
|
+
const o = (a, n) => {
|
|
1229
|
+
i[a] = n;
|
|
1230
|
+
};
|
|
1231
|
+
return e === void 0 ? (D(t).forEach((a) => o(a, void 0)), { matched: !0, selections: i }) : { matched: P(t, e, o), selections: i };
|
|
1232
|
+
}, getSelectionKeys: () => D(t), matcherType: "optional" }) });
|
|
1233
|
+
}
|
|
1234
|
+
const Ba = (t, e) => {
|
|
1235
|
+
for (const i of t)
|
|
1236
|
+
if (!e(i))
|
|
1237
|
+
return !1;
|
|
1238
|
+
return !0;
|
|
1239
|
+
}, Fa = (t, e) => {
|
|
1240
|
+
for (const [i, o] of t.entries())
|
|
1241
|
+
if (!e(o, i))
|
|
1242
|
+
return !1;
|
|
1243
|
+
return !0;
|
|
1244
|
+
}, La = (t, e) => {
|
|
1245
|
+
const i = Reflect.ownKeys(t);
|
|
1246
|
+
for (const o of i)
|
|
1247
|
+
if (!e(o, t[o]))
|
|
1248
|
+
return !1;
|
|
1249
|
+
return !0;
|
|
1250
|
+
};
|
|
1251
|
+
function S(...t) {
|
|
1252
|
+
return z({ [N]: () => ({ match: (e) => {
|
|
1253
|
+
let i = {};
|
|
1254
|
+
const o = (a, n) => {
|
|
1255
|
+
i[a] = n;
|
|
1256
|
+
};
|
|
1257
|
+
return { matched: t.every((a) => P(a, e, o)), selections: i };
|
|
1258
|
+
}, getSelectionKeys: () => $t(t, D), matcherType: "and" }) });
|
|
1259
|
+
}
|
|
1260
|
+
function co(...t) {
|
|
1261
|
+
return z({ [N]: () => ({ match: (e) => {
|
|
1262
|
+
let i = {};
|
|
1263
|
+
const o = (a, n) => {
|
|
1264
|
+
i[a] = n;
|
|
1265
|
+
};
|
|
1266
|
+
return $t(t, D).forEach((a) => o(a, void 0)), { matched: t.some((a) => P(a, e, o)), selections: i };
|
|
1267
|
+
}, getSelectionKeys: () => $t(t, D), matcherType: "or" }) });
|
|
1268
|
+
}
|
|
1269
|
+
function m(t) {
|
|
1270
|
+
return { [N]: () => ({ match: (e) => ({ matched: !!t(e) }) }) };
|
|
1271
|
+
}
|
|
1272
|
+
function St(...t) {
|
|
1273
|
+
const e = typeof t[0] == "string" ? t[0] : void 0, i = t.length === 2 ? t[1] : typeof t[0] == "string" ? void 0 : t[0];
|
|
1274
|
+
return z({ [N]: () => ({ match: (o) => {
|
|
1275
|
+
let a = { [e ?? Ut]: o };
|
|
1276
|
+
return { matched: i === void 0 || P(i, o, (n, r) => {
|
|
1277
|
+
a[n] = r;
|
|
1278
|
+
}), selections: a };
|
|
1279
|
+
}, getSelectionKeys: () => [e ?? Ut].concat(i === void 0 ? [] : D(i)) }) });
|
|
1280
|
+
}
|
|
1281
|
+
function uo(t) {
|
|
1282
|
+
return !0;
|
|
1283
|
+
}
|
|
1284
|
+
function U(t) {
|
|
1285
|
+
return typeof t == "number";
|
|
1286
|
+
}
|
|
1287
|
+
function J(t) {
|
|
1288
|
+
return typeof t == "string";
|
|
1289
|
+
}
|
|
1290
|
+
function Q(t) {
|
|
1291
|
+
return typeof t == "bigint";
|
|
1292
|
+
}
|
|
1293
|
+
const po = z(m(uo)), Ma = z(m(uo)), Ra = po, tt = (t) => Object.assign(z(t), { startsWith: (e) => {
|
|
1294
|
+
return tt(S(t, (i = e, m((o) => J(o) && o.startsWith(i)))));
|
|
1295
|
+
var i;
|
|
1296
|
+
}, endsWith: (e) => {
|
|
1297
|
+
return tt(S(t, (i = e, m((o) => J(o) && o.endsWith(i)))));
|
|
1298
|
+
var i;
|
|
1299
|
+
}, minLength: (e) => tt(S(t, ((i) => m((o) => J(o) && o.length >= i))(e))), length: (e) => tt(S(t, ((i) => m((o) => J(o) && o.length === i))(e))), maxLength: (e) => tt(S(t, ((i) => m((o) => J(o) && o.length <= i))(e))), includes: (e) => {
|
|
1300
|
+
return tt(S(t, (i = e, m((o) => J(o) && o.includes(i)))));
|
|
1301
|
+
var i;
|
|
1302
|
+
}, regex: (e) => {
|
|
1303
|
+
return tt(S(t, (i = e, m((o) => J(o) && !!o.match(i)))));
|
|
1304
|
+
var i;
|
|
1305
|
+
} }), ui = tt(m(J)), V = (t) => Object.assign(z(t), { between: (e, i) => V(S(t, ((o, a) => m((n) => U(n) && o <= n && a >= n))(e, i))), lt: (e) => V(S(t, ((i) => m((o) => U(o) && o < i))(e))), gt: (e) => V(S(t, ((i) => m((o) => U(o) && o > i))(e))), lte: (e) => V(S(t, ((i) => m((o) => U(o) && o <= i))(e))), gte: (e) => V(S(t, ((i) => m((o) => U(o) && o >= i))(e))), int: () => V(S(t, m((e) => U(e) && Number.isInteger(e)))), finite: () => V(S(t, m((e) => U(e) && Number.isFinite(e)))), positive: () => V(S(t, m((e) => U(e) && e > 0))), negative: () => V(S(t, m((e) => U(e) && e < 0))) }), Ha = V(m(U)), et = (t) => Object.assign(z(t), { between: (e, i) => et(S(t, ((o, a) => m((n) => Q(n) && o <= n && a >= n))(e, i))), lt: (e) => et(S(t, ((i) => m((o) => Q(o) && o < i))(e))), gt: (e) => et(S(t, ((i) => m((o) => Q(o) && o > i))(e))), lte: (e) => et(S(t, ((i) => m((o) => Q(o) && o <= i))(e))), gte: (e) => et(S(t, ((i) => m((o) => Q(o) && o >= i))(e))), positive: () => et(S(t, m((e) => Q(e) && e > 0))), negative: () => et(S(t, m((e) => Q(e) && e < 0))) }), Ua = et(m(Q)), Va = z(m(function(t) {
|
|
1306
|
+
return typeof t == "boolean";
|
|
1307
|
+
})), Wa = z(m(function(t) {
|
|
1308
|
+
return typeof t == "symbol";
|
|
1309
|
+
})), Ya = z(m(function(t) {
|
|
1310
|
+
return t == null;
|
|
1311
|
+
})), Ka = z(m(function(t) {
|
|
1312
|
+
return t != null;
|
|
1313
|
+
}));
|
|
1314
|
+
var Tt = { __proto__: null, matcher: N, optional: Be, array: function(...t) {
|
|
1315
|
+
return we({ [N]: () => ({ match: (e) => {
|
|
1316
|
+
if (!Array.isArray(e))
|
|
1317
|
+
return { matched: !1 };
|
|
1318
|
+
if (t.length === 0)
|
|
1319
|
+
return { matched: !0 };
|
|
1320
|
+
const i = t[0];
|
|
1321
|
+
let o = {};
|
|
1322
|
+
if (e.length === 0)
|
|
1323
|
+
return D(i).forEach((n) => {
|
|
1324
|
+
o[n] = [];
|
|
1325
|
+
}), { matched: !0, selections: o };
|
|
1326
|
+
const a = (n, r) => {
|
|
1327
|
+
o[n] = (o[n] || []).concat([r]);
|
|
1328
|
+
};
|
|
1329
|
+
return { matched: e.every((n) => P(i, n, a)), selections: o };
|
|
1330
|
+
}, getSelectionKeys: () => t.length === 0 ? [] : D(t[0]) }) });
|
|
1331
|
+
}, set: function(...t) {
|
|
1332
|
+
return z({ [N]: () => ({ match: (e) => {
|
|
1333
|
+
if (!(e instanceof Set))
|
|
1334
|
+
return { matched: !1 };
|
|
1335
|
+
let i = {};
|
|
1336
|
+
if (e.size === 0)
|
|
1337
|
+
return { matched: !0, selections: i };
|
|
1338
|
+
if (t.length === 0)
|
|
1339
|
+
return { matched: !0 };
|
|
1340
|
+
const o = (n, r) => {
|
|
1341
|
+
i[n] = (i[n] || []).concat([r]);
|
|
1342
|
+
}, a = t[0];
|
|
1343
|
+
return { matched: Ba(e, (n) => P(a, n, o)), selections: i };
|
|
1344
|
+
}, getSelectionKeys: () => t.length === 0 ? [] : D(t[0]) }) });
|
|
1345
|
+
}, map: function(...t) {
|
|
1346
|
+
return z({ [N]: () => ({ match: (e) => {
|
|
1347
|
+
if (!(e instanceof Map))
|
|
1348
|
+
return { matched: !1 };
|
|
1349
|
+
let i = {};
|
|
1350
|
+
if (e.size === 0)
|
|
1351
|
+
return { matched: !0, selections: i };
|
|
1352
|
+
const o = (s, c) => {
|
|
1353
|
+
i[s] = (i[s] || []).concat([c]);
|
|
1354
|
+
};
|
|
1355
|
+
if (t.length === 0)
|
|
1356
|
+
return { matched: !0 };
|
|
1357
|
+
var a;
|
|
1358
|
+
if (t.length === 1)
|
|
1359
|
+
throw new Error(`\`P.map\` wasn't given enough arguments. Expected (key, value), received ${(a = t[0]) == null ? void 0 : a.toString()}`);
|
|
1360
|
+
const [n, r] = t;
|
|
1361
|
+
return { matched: Fa(e, (s, c) => {
|
|
1362
|
+
const d = P(n, c, o), u = P(r, s, o);
|
|
1363
|
+
return d && u;
|
|
1364
|
+
}), selections: i };
|
|
1365
|
+
}, getSelectionKeys: () => t.length === 0 ? [] : [...D(t[0]), ...D(t[1])] }) });
|
|
1366
|
+
}, record: function(...t) {
|
|
1367
|
+
return z({ [N]: () => ({ match: (e) => {
|
|
1368
|
+
if (e === null || typeof e != "object" || Array.isArray(e))
|
|
1369
|
+
return { matched: !1 };
|
|
1370
|
+
var i;
|
|
1371
|
+
if (t.length === 0)
|
|
1372
|
+
throw new Error(`\`P.record\` wasn't given enough arguments. Expected (value) or (key, value), received ${(i = t[0]) == null ? void 0 : i.toString()}`);
|
|
1373
|
+
let o = {};
|
|
1374
|
+
const a = (s, c) => {
|
|
1375
|
+
o[s] = (o[s] || []).concat([c]);
|
|
1376
|
+
}, [n, r] = t.length === 1 ? [ui, t[0]] : t;
|
|
1377
|
+
return { matched: La(e, (s, c) => {
|
|
1378
|
+
const d = typeof s != "string" || Number.isNaN(Number(s)) ? null : Number(s), u = d !== null && P(n, d, a), l = P(n, s, a), w = P(r, c, a);
|
|
1379
|
+
return (l || u) && w;
|
|
1380
|
+
}), selections: o };
|
|
1381
|
+
}, getSelectionKeys: () => t.length === 0 ? [] : [...D(t[0]), ...D(t[1])] }) });
|
|
1382
|
+
}, intersection: S, union: co, not: function(t) {
|
|
1383
|
+
return z({ [N]: () => ({ match: (e) => ({ matched: !P(t, e, () => {
|
|
1384
|
+
}) }), getSelectionKeys: () => [], matcherType: "not" }) });
|
|
1385
|
+
}, when: m, select: St, any: po, unknown: Ma, _: Ra, string: ui, number: Ha, bigint: Ua, boolean: Va, symbol: Wa, nullish: Ya, nonNullable: Ka, instanceOf: function(t) {
|
|
1386
|
+
return z(m(function(e) {
|
|
1387
|
+
return (i) => i instanceof e;
|
|
1388
|
+
}(t)));
|
|
1389
|
+
}, shape: function(t) {
|
|
1390
|
+
return z(m(Aa(t)));
|
|
1391
|
+
} };
|
|
1392
|
+
class qa extends Error {
|
|
1393
|
+
constructor(e) {
|
|
1394
|
+
let i;
|
|
1395
|
+
try {
|
|
1396
|
+
i = JSON.stringify(e);
|
|
1397
|
+
} catch {
|
|
1398
|
+
i = e;
|
|
1399
|
+
}
|
|
1400
|
+
super(`Pattern matching error: no pattern matches value ${i}`), this.input = void 0, this.input = e;
|
|
1401
|
+
}
|
|
1402
|
+
}
|
|
1403
|
+
const ge = { matched: !1, value: void 0 };
|
|
1404
|
+
function Fe(t) {
|
|
1405
|
+
return new Vt(t, ge);
|
|
1406
|
+
}
|
|
1407
|
+
class Vt {
|
|
1408
|
+
constructor(e, i) {
|
|
1409
|
+
this.input = void 0, this.state = void 0, this.input = e, this.state = i;
|
|
1410
|
+
}
|
|
1411
|
+
with(...e) {
|
|
1412
|
+
if (this.state.matched)
|
|
1413
|
+
return this;
|
|
1414
|
+
const i = e[e.length - 1], o = [e[0]];
|
|
1415
|
+
let a;
|
|
1416
|
+
e.length === 3 && typeof e[1] == "function" ? a = e[1] : e.length > 2 && o.push(...e.slice(1, e.length - 1));
|
|
1417
|
+
let n = !1, r = {};
|
|
1418
|
+
const s = (d, u) => {
|
|
1419
|
+
n = !0, r[d] = u;
|
|
1420
|
+
}, c = !o.some((d) => P(d, this.input, s)) || a && !a(this.input) ? ge : { matched: !0, value: i(n ? Ut in r ? r[Ut] : r : this.input, this.input) };
|
|
1421
|
+
return new Vt(this.input, c);
|
|
1422
|
+
}
|
|
1423
|
+
when(e, i) {
|
|
1424
|
+
if (this.state.matched)
|
|
1425
|
+
return this;
|
|
1426
|
+
const o = !!e(this.input);
|
|
1427
|
+
return new Vt(this.input, o ? { matched: !0, value: i(this.input, this.input) } : ge);
|
|
1428
|
+
}
|
|
1429
|
+
otherwise(e) {
|
|
1430
|
+
return this.state.matched ? this.state.value : e(this.input);
|
|
1431
|
+
}
|
|
1432
|
+
exhaustive(e = Xa) {
|
|
1433
|
+
return this.state.matched ? this.state.value : e(this.input);
|
|
1434
|
+
}
|
|
1435
|
+
run() {
|
|
1436
|
+
return this.exhaustive();
|
|
1437
|
+
}
|
|
1438
|
+
returnType() {
|
|
1439
|
+
return this;
|
|
1440
|
+
}
|
|
1441
|
+
narrow() {
|
|
1442
|
+
return this;
|
|
1443
|
+
}
|
|
1444
|
+
}
|
|
1445
|
+
function Xa(t) {
|
|
1446
|
+
throw new qa(t);
|
|
1447
|
+
}
|
|
1448
|
+
var Ga = ["other", "few", "many", "two", "one", "zero"], pi = ({
|
|
1449
|
+
terms: t,
|
|
1450
|
+
overrides: e,
|
|
1451
|
+
locale: i
|
|
1452
|
+
}) => {
|
|
1453
|
+
const o = new Intl.PluralRules(i);
|
|
1454
|
+
function a(n, r) {
|
|
1455
|
+
const s = (e == null ? void 0 : e[n]) ?? t[n];
|
|
1456
|
+
switch (typeof s) {
|
|
1457
|
+
case "string":
|
|
1458
|
+
return s.replace(/{{(\w+)}}/g, (c, d) => {
|
|
1459
|
+
var u;
|
|
1460
|
+
return ((u = r == null ? void 0 : r[d]) == null ? void 0 : u.toString()) ?? "";
|
|
1461
|
+
});
|
|
1462
|
+
case "object": {
|
|
1463
|
+
if (typeof (r == null ? void 0 : r.count) != "number")
|
|
1464
|
+
throw new Error(`Missing count for translation key “${n.toString()}”`);
|
|
1465
|
+
let c = o.select(r.count);
|
|
1466
|
+
if (!(c in s)) {
|
|
1467
|
+
const d = Ga.find((u) => u in s);
|
|
1468
|
+
if (!d)
|
|
1469
|
+
throw new Error(`Missing plural rule for translation key “${n.toString()}”`);
|
|
1470
|
+
c = d;
|
|
1471
|
+
}
|
|
1472
|
+
return s[c].replace(/{{(\w+)}}/g, (d, u) => {
|
|
1473
|
+
var l;
|
|
1474
|
+
return ((l = r == null ? void 0 : r[u]) == null ? void 0 : l.toString()) ?? "";
|
|
1475
|
+
});
|
|
1476
|
+
}
|
|
1477
|
+
default:
|
|
1478
|
+
throw new Error(`Invalid translation value in dictionary for key “${n.toString()}”.`);
|
|
1479
|
+
}
|
|
1480
|
+
}
|
|
1481
|
+
return a;
|
|
1482
|
+
}, Za = 0;
|
|
1483
|
+
function p(t, e, i, o, a, n) {
|
|
1484
|
+
var r, s, c = {};
|
|
1485
|
+
for (s in e)
|
|
1486
|
+
s == "ref" ? r = e[s] : c[s] = e[s];
|
|
1487
|
+
var d = { type: t, props: c, key: i, ref: r, __k: null, __: null, __b: 0, __e: null, __d: void 0, __c: null, __h: null, constructor: void 0, __v: --Za, __source: a, __self: n };
|
|
1488
|
+
if (typeof t == "function" && (r = t.defaultProps))
|
|
1489
|
+
for (s in r)
|
|
1490
|
+
c[s] === void 0 && (c[s] = r[s]);
|
|
1491
|
+
return h.vnode && h.vnode(d), d;
|
|
1492
|
+
}
|
|
1493
|
+
var hi = Yi(null), ho = (t) => ({
|
|
1494
|
+
defaultTerms: t,
|
|
1495
|
+
TranslationProvider: ({ terms: e, children: i, locale: o }) => {
|
|
1496
|
+
const a = dt(() => pi({ locale: o, terms: t, overrides: e }), [e, o]);
|
|
1497
|
+
return /* @__PURE__ */ p(hi.Provider, { value: { t: a, locale: o }, children: i });
|
|
1498
|
+
},
|
|
1499
|
+
useTranslation: () => {
|
|
1500
|
+
const e = Ji(hi);
|
|
1501
|
+
if (e === null)
|
|
1502
|
+
throw new Error("Please wrap useTranslation in a TranslationProvider");
|
|
1503
|
+
return { t: e.t, locale: e.locale };
|
|
1504
|
+
},
|
|
1505
|
+
createTFunction: ({
|
|
1506
|
+
overrides: e,
|
|
1507
|
+
locale: i
|
|
1508
|
+
}) => pi({ terms: t, overrides: e, locale: i })
|
|
1509
|
+
}), { TranslationProvider: lr, useTranslation: cr, createTFunction: dr, defaultTerms: Ja } = ho({ submission_redirect_message: "Almost there! Please complete your submission here:", complete_submission: "Complete submission", submission_completed: "Submission completed!", submission_failed: "Failed to submit", close_application: "Close application", invalid_state: "Invalid application state", redirect_url_error: "Couldn’t get the redirect URL.", upload_file: { one: "Select file to upload", other: "Select files to upload" }, file_max_size: "max {{size}}", file_extensions: "Accepted file extensions", address_error: "Something went wrong! Plase continue manually", address_search: "Type and search for places…", address_manual: "Fill in manually", back: "Back", search: "Search", unknown_error: "An error occurred", line1: "Line 1", line2: "Line 2", line3: "Line 3", city: "City", state: "State", postcode: "Postcode", country: "Country", select_country: "Select a country", validation_empty: "Please enter a value", validation_date: "Please enter a valid date (YYYY-MM-DD)", validation_email: "That doesn’t look like a valid email address", validation_url: "That doesn’t look like a valid URL", validation_max_chars: "Please enter no more than {{count}} characters", validation_min_chars: "Please enter {{count}} or more characters", validation_phone: "Please enter a valid phone number", validation_phone_min_chars: "Your phone number must be at least {{count}} digits long", validation_country_code: "Please select a country code", validation_number: "Please enter a valid number", validation_number_min: "Please enter a number greater than or equal to {{min}}", validation_number_max: "Please enter a number less than or equal to {{max}}", validation_number_decimal_cases: "Please enter a number with at most {{count}} decimal cases", validation_file: "Please select a file", validation_file_ext: "Please only upload {{ext}} files", validation_file_min: { one: "Please upload at least one file", other: "Please only upload at least {{count}} files" }, validation_file_max: { one: "Please only upload one file", other: "Please only upload up to {{count}} files" }, validation_file_size: "Your file is too big. Please upload a file smaller than {{size}}", validation_required: "This field is required.", validation_multiple_choice_min: { one: "Please select at least {{count}} option", other: "Please select at least {{count}} options" }, validation_multiple_choice_max: { one: "Please select at most {{count}} option", other: "Please select at most {{count}} options" }, optional: "optional" });
|
|
1510
|
+
const {
|
|
1511
|
+
TranslationProvider: Qa,
|
|
1512
|
+
useTranslation: Le,
|
|
1513
|
+
createTFunction: tn
|
|
1514
|
+
} = ho({
|
|
1515
|
+
...Ja,
|
|
1516
|
+
error_heading: "Something unexpected happened",
|
|
1517
|
+
undo: "Undo",
|
|
1518
|
+
conversation_history: "Conversation history",
|
|
1519
|
+
jump_to_current: "Jump to current question",
|
|
1520
|
+
send: "Send",
|
|
1521
|
+
skip: "Skip",
|
|
1522
|
+
skipped: "Skipped",
|
|
1523
|
+
submission_closed: "This role is no longer accepting applications.",
|
|
1524
|
+
submission_duplicate: "It looks like you've already applied for this role.",
|
|
1525
|
+
submission_retryable: "We couldn't submit your application. Please try again.",
|
|
1526
|
+
submission_unknown: "We couldn't confirm whether your application was submitted. Please check for confirmation before trying again.",
|
|
1527
|
+
submission_unreadable_document: "We couldn't read that file. Please upload a different one.",
|
|
1528
|
+
file_preparing: {
|
|
1529
|
+
one: "Preparing your file…",
|
|
1530
|
+
other: "Preparing your files…"
|
|
1531
|
+
},
|
|
1532
|
+
file_ready: {
|
|
1533
|
+
one: "Your file is ready to send",
|
|
1534
|
+
other: "Your files are ready to send"
|
|
1535
|
+
},
|
|
1536
|
+
file_read_error: "We couldn't read this file. Select it again or choose another file.",
|
|
1537
|
+
file_read_error_replacement: "We couldn't read this file, so your previous file is no longer selected. Select it again or choose another file.",
|
|
1538
|
+
address_error: "We couldn't search for that address. Try again, or fill it in manually.",
|
|
1539
|
+
address_searching: "Searching addresses…",
|
|
1540
|
+
address_no_results: "We couldn't find that address. Check the spelling or postcode, or fill it in manually.",
|
|
1541
|
+
maximize: "Maximise",
|
|
1542
|
+
minimize: "Minimise"
|
|
1543
|
+
});
|
|
1544
|
+
function fo(t, e) {
|
|
1545
|
+
if (!t)
|
|
1546
|
+
throw new Error(e);
|
|
1547
|
+
}
|
|
1548
|
+
var be = (t) => t === null || typeof t != "object" ? t : Array.isArray(t) ? t.map(be) : Object.keys(t).sort().reduce((e, i) => (e[i] = be(t[i]), e), {}), en = (t) => {
|
|
1549
|
+
let e = JSON.stringify(be(t)), i = 5381;
|
|
1550
|
+
for (let o = 0; o < e.length; o++)
|
|
1551
|
+
i = i * 33 ^ e.charCodeAt(o);
|
|
1552
|
+
return (i >>> 0).toString(36);
|
|
1553
|
+
}, on = Symbol.for("preact-signals");
|
|
1554
|
+
function Me() {
|
|
1555
|
+
if (ht > 1)
|
|
1556
|
+
ht--;
|
|
1557
|
+
else {
|
|
1558
|
+
for (var t, e = !1; kt !== void 0; ) {
|
|
1559
|
+
var i = kt;
|
|
1560
|
+
for (kt = void 0, ve++; i !== void 0; ) {
|
|
1561
|
+
var o = i.o;
|
|
1562
|
+
if (i.o = void 0, i.f &= -3, !(8 & i.f) && go(i))
|
|
1563
|
+
try {
|
|
1564
|
+
i.c();
|
|
1565
|
+
} catch (a) {
|
|
1566
|
+
e || (t = a, e = !0);
|
|
1567
|
+
}
|
|
1568
|
+
i = o;
|
|
1569
|
+
}
|
|
1570
|
+
}
|
|
1571
|
+
if (ve = 0, ht--, e)
|
|
1572
|
+
throw t;
|
|
1573
|
+
}
|
|
1574
|
+
}
|
|
1575
|
+
var k = void 0, kt = void 0, ht = 0, ve = 0, Wt = 0;
|
|
1576
|
+
function wo(t) {
|
|
1577
|
+
if (k !== void 0) {
|
|
1578
|
+
var e = t.n;
|
|
1579
|
+
if (e === void 0 || e.t !== k)
|
|
1580
|
+
return e = { i: 0, S: t, p: k.s, n: void 0, t: k, e: void 0, x: void 0, r: e }, k.s !== void 0 && (k.s.n = e), k.s = e, t.n = e, 32 & k.f && t.S(e), e;
|
|
1581
|
+
if (e.i === -1)
|
|
1582
|
+
return e.i = 0, e.n !== void 0 && (e.n.p = e.p, e.p !== void 0 && (e.p.n = e.n), e.p = k.s, e.n = void 0, k.s.n = e, k.s = e), e;
|
|
1583
|
+
}
|
|
1584
|
+
}
|
|
1585
|
+
function I(t) {
|
|
1586
|
+
this.v = t, this.i = 0, this.n = void 0, this.t = void 0;
|
|
1587
|
+
}
|
|
1588
|
+
I.prototype.brand = on;
|
|
1589
|
+
I.prototype.h = function() {
|
|
1590
|
+
return !0;
|
|
1591
|
+
};
|
|
1592
|
+
I.prototype.S = function(t) {
|
|
1593
|
+
this.t !== t && t.e === void 0 && (t.x = this.t, this.t !== void 0 && (this.t.e = t), this.t = t);
|
|
1594
|
+
};
|
|
1595
|
+
I.prototype.U = function(t) {
|
|
1596
|
+
if (this.t !== void 0) {
|
|
1597
|
+
var e = t.e, i = t.x;
|
|
1598
|
+
e !== void 0 && (e.x = i, t.e = void 0), i !== void 0 && (i.e = e, t.x = void 0), t === this.t && (this.t = i);
|
|
1599
|
+
}
|
|
1600
|
+
};
|
|
1601
|
+
I.prototype.subscribe = function(t) {
|
|
1602
|
+
var e = this;
|
|
1603
|
+
return He(function() {
|
|
1604
|
+
var i = e.value, o = k;
|
|
1605
|
+
k = void 0;
|
|
1606
|
+
try {
|
|
1607
|
+
t(i);
|
|
1608
|
+
} finally {
|
|
1609
|
+
k = o;
|
|
1610
|
+
}
|
|
1611
|
+
});
|
|
1612
|
+
};
|
|
1613
|
+
I.prototype.valueOf = function() {
|
|
1614
|
+
return this.value;
|
|
1615
|
+
};
|
|
1616
|
+
I.prototype.toString = function() {
|
|
1617
|
+
return this.value + "";
|
|
1618
|
+
};
|
|
1619
|
+
I.prototype.toJSON = function() {
|
|
1620
|
+
return this.value;
|
|
1621
|
+
};
|
|
1622
|
+
I.prototype.peek = function() {
|
|
1623
|
+
var t = k;
|
|
1624
|
+
k = void 0;
|
|
1625
|
+
try {
|
|
1626
|
+
return this.value;
|
|
1627
|
+
} finally {
|
|
1628
|
+
k = t;
|
|
1629
|
+
}
|
|
1630
|
+
};
|
|
1631
|
+
Object.defineProperty(I.prototype, "value", { get: function() {
|
|
1632
|
+
var t = wo(this);
|
|
1633
|
+
return t !== void 0 && (t.i = this.i), this.v;
|
|
1634
|
+
}, set: function(t) {
|
|
1635
|
+
if (t !== this.v) {
|
|
1636
|
+
if (ve > 100)
|
|
1637
|
+
throw new Error("Cycle detected");
|
|
1638
|
+
this.v = t, this.i++, Wt++, ht++;
|
|
1639
|
+
try {
|
|
1640
|
+
for (var e = this.t; e !== void 0; e = e.x)
|
|
1641
|
+
e.t.N();
|
|
1642
|
+
} finally {
|
|
1643
|
+
Me();
|
|
1644
|
+
}
|
|
1645
|
+
}
|
|
1646
|
+
} });
|
|
1647
|
+
function G(t) {
|
|
1648
|
+
return new I(t);
|
|
1649
|
+
}
|
|
1650
|
+
function go(t) {
|
|
1651
|
+
for (var e = t.s; e !== void 0; e = e.n)
|
|
1652
|
+
if (e.S.i !== e.i || !e.S.h() || e.S.i !== e.i)
|
|
1653
|
+
return !0;
|
|
1654
|
+
return !1;
|
|
1655
|
+
}
|
|
1656
|
+
function bo(t) {
|
|
1657
|
+
for (var e = t.s; e !== void 0; e = e.n) {
|
|
1658
|
+
var i = e.S.n;
|
|
1659
|
+
if (i !== void 0 && (e.r = i), e.S.n = e, e.i = -1, e.n === void 0) {
|
|
1660
|
+
t.s = e;
|
|
1661
|
+
break;
|
|
1662
|
+
}
|
|
1663
|
+
}
|
|
1664
|
+
}
|
|
1665
|
+
function vo(t) {
|
|
1666
|
+
for (var e = t.s, i = void 0; e !== void 0; ) {
|
|
1667
|
+
var o = e.p;
|
|
1668
|
+
e.i === -1 ? (e.S.U(e), o !== void 0 && (o.n = e.n), e.n !== void 0 && (e.n.p = o)) : i = e, e.S.n = e.r, e.r !== void 0 && (e.r = void 0), e = o;
|
|
1669
|
+
}
|
|
1670
|
+
t.s = i;
|
|
1671
|
+
}
|
|
1672
|
+
function bt(t) {
|
|
1673
|
+
I.call(this, void 0), this.x = t, this.s = void 0, this.g = Wt - 1, this.f = 4;
|
|
1674
|
+
}
|
|
1675
|
+
(bt.prototype = new I()).h = function() {
|
|
1676
|
+
if (this.f &= -3, 1 & this.f)
|
|
1677
|
+
return !1;
|
|
1678
|
+
if ((36 & this.f) == 32 || (this.f &= -5, this.g === Wt))
|
|
1679
|
+
return !0;
|
|
1680
|
+
if (this.g = Wt, this.f |= 1, this.i > 0 && !go(this))
|
|
1681
|
+
return this.f &= -2, !0;
|
|
1682
|
+
var t = k;
|
|
1683
|
+
try {
|
|
1684
|
+
bo(this), k = this;
|
|
1685
|
+
var e = this.x();
|
|
1686
|
+
(16 & this.f || this.v !== e || this.i === 0) && (this.v = e, this.f &= -17, this.i++);
|
|
1687
|
+
} catch (i) {
|
|
1688
|
+
this.v = i, this.f |= 16, this.i++;
|
|
1689
|
+
}
|
|
1690
|
+
return k = t, vo(this), this.f &= -2, !0;
|
|
1691
|
+
};
|
|
1692
|
+
bt.prototype.S = function(t) {
|
|
1693
|
+
if (this.t === void 0) {
|
|
1694
|
+
this.f |= 36;
|
|
1695
|
+
for (var e = this.s; e !== void 0; e = e.n)
|
|
1696
|
+
e.S.S(e);
|
|
1697
|
+
}
|
|
1698
|
+
I.prototype.S.call(this, t);
|
|
1699
|
+
};
|
|
1700
|
+
bt.prototype.U = function(t) {
|
|
1701
|
+
if (this.t !== void 0 && (I.prototype.U.call(this, t), this.t === void 0)) {
|
|
1702
|
+
this.f &= -33;
|
|
1703
|
+
for (var e = this.s; e !== void 0; e = e.n)
|
|
1704
|
+
e.S.U(e);
|
|
1705
|
+
}
|
|
1706
|
+
};
|
|
1707
|
+
bt.prototype.N = function() {
|
|
1708
|
+
if (!(2 & this.f)) {
|
|
1709
|
+
this.f |= 6;
|
|
1710
|
+
for (var t = this.t; t !== void 0; t = t.x)
|
|
1711
|
+
t.t.N();
|
|
1712
|
+
}
|
|
1713
|
+
};
|
|
1714
|
+
Object.defineProperty(bt.prototype, "value", { get: function() {
|
|
1715
|
+
if (1 & this.f)
|
|
1716
|
+
throw new Error("Cycle detected");
|
|
1717
|
+
var t = wo(this);
|
|
1718
|
+
if (this.h(), t !== void 0 && (t.i = this.i), 16 & this.f)
|
|
1719
|
+
throw this.v;
|
|
1720
|
+
return this.v;
|
|
1721
|
+
} });
|
|
1722
|
+
function an(t) {
|
|
1723
|
+
return new bt(t);
|
|
1724
|
+
}
|
|
1725
|
+
function _o(t) {
|
|
1726
|
+
var e = t.u;
|
|
1727
|
+
if (t.u = void 0, typeof e == "function") {
|
|
1728
|
+
ht++;
|
|
1729
|
+
var i = k;
|
|
1730
|
+
k = void 0;
|
|
1731
|
+
try {
|
|
1732
|
+
e();
|
|
1733
|
+
} catch (o) {
|
|
1734
|
+
throw t.f &= -2, t.f |= 8, Re(t), o;
|
|
1735
|
+
} finally {
|
|
1736
|
+
k = i, Me();
|
|
1737
|
+
}
|
|
1738
|
+
}
|
|
1739
|
+
}
|
|
1740
|
+
function Re(t) {
|
|
1741
|
+
for (var e = t.s; e !== void 0; e = e.n)
|
|
1742
|
+
e.S.U(e);
|
|
1743
|
+
t.x = void 0, t.s = void 0, _o(t);
|
|
1744
|
+
}
|
|
1745
|
+
function nn(t) {
|
|
1746
|
+
if (k !== this)
|
|
1747
|
+
throw new Error("Out-of-order effect");
|
|
1748
|
+
vo(this), k = t, this.f &= -2, 8 & this.f && Re(this), Me();
|
|
1749
|
+
}
|
|
1750
|
+
function Et(t) {
|
|
1751
|
+
this.x = t, this.u = void 0, this.s = void 0, this.o = void 0, this.f = 32;
|
|
1752
|
+
}
|
|
1753
|
+
Et.prototype.c = function() {
|
|
1754
|
+
var t = this.S();
|
|
1755
|
+
try {
|
|
1756
|
+
if (8 & this.f || this.x === void 0)
|
|
1757
|
+
return;
|
|
1758
|
+
var e = this.x();
|
|
1759
|
+
typeof e == "function" && (this.u = e);
|
|
1760
|
+
} finally {
|
|
1761
|
+
t();
|
|
1762
|
+
}
|
|
1763
|
+
};
|
|
1764
|
+
Et.prototype.S = function() {
|
|
1765
|
+
if (1 & this.f)
|
|
1766
|
+
throw new Error("Cycle detected");
|
|
1767
|
+
this.f |= 1, this.f &= -9, _o(this), bo(this), ht++;
|
|
1768
|
+
var t = k;
|
|
1769
|
+
return k = this, nn.bind(this, t);
|
|
1770
|
+
};
|
|
1771
|
+
Et.prototype.N = function() {
|
|
1772
|
+
2 & this.f || (this.f |= 2, this.o = kt, kt = this);
|
|
1773
|
+
};
|
|
1774
|
+
Et.prototype.d = function() {
|
|
1775
|
+
this.f |= 8, 1 & this.f || Re(this);
|
|
1776
|
+
};
|
|
1777
|
+
function He(t) {
|
|
1778
|
+
var e = new Et(t);
|
|
1779
|
+
try {
|
|
1780
|
+
e.c();
|
|
1781
|
+
} catch (i) {
|
|
1782
|
+
throw e.d(), i;
|
|
1783
|
+
}
|
|
1784
|
+
return e.d.bind(e);
|
|
1785
|
+
}
|
|
1786
|
+
var ee;
|
|
1787
|
+
function vt(t, e) {
|
|
1788
|
+
h[t] = e.bind(null, h[t] || function() {
|
|
1789
|
+
});
|
|
1790
|
+
}
|
|
1791
|
+
function Yt(t) {
|
|
1792
|
+
ee && ee(), ee = t && t.S();
|
|
1793
|
+
}
|
|
1794
|
+
function mo(t) {
|
|
1795
|
+
var e = this, i = t.data, o = sn(i);
|
|
1796
|
+
o.value = i;
|
|
1797
|
+
var a = dt(function() {
|
|
1798
|
+
for (var n = e.__v; n = n.__; )
|
|
1799
|
+
if (n.__c) {
|
|
1800
|
+
n.__c.__$f |= 4;
|
|
1801
|
+
break;
|
|
1802
|
+
}
|
|
1803
|
+
return e.__$u.c = function() {
|
|
1804
|
+
var r;
|
|
1805
|
+
!Di(a.peek()) && ((r = e.base) == null ? void 0 : r.nodeType) === 3 ? e.base.data = a.peek() : (e.__$f |= 1, e.setState({}));
|
|
1806
|
+
}, an(function() {
|
|
1807
|
+
var r = o.value.value;
|
|
1808
|
+
return r === 0 ? 0 : r === !0 ? "" : r || "";
|
|
1809
|
+
});
|
|
1810
|
+
}, []);
|
|
1811
|
+
return a.value;
|
|
1812
|
+
}
|
|
1813
|
+
mo.displayName = "_st";
|
|
1814
|
+
Object.defineProperties(I.prototype, { constructor: { configurable: !0, value: void 0 }, type: { configurable: !0, value: mo }, props: { configurable: !0, get: function() {
|
|
1815
|
+
return { data: this };
|
|
1816
|
+
} }, __b: { configurable: !0, value: 1 } });
|
|
1817
|
+
vt("__b", function(t, e) {
|
|
1818
|
+
if (typeof e.type == "string") {
|
|
1819
|
+
var i, o = e.props;
|
|
1820
|
+
for (var a in o)
|
|
1821
|
+
if (a !== "children") {
|
|
1822
|
+
var n = o[a];
|
|
1823
|
+
n instanceof I && (i || (e.__np = i = {}), i[a] = n, o[a] = n.peek());
|
|
1824
|
+
}
|
|
1825
|
+
}
|
|
1826
|
+
t(e);
|
|
1827
|
+
});
|
|
1828
|
+
vt("__r", function(t, e) {
|
|
1829
|
+
Yt();
|
|
1830
|
+
var i, o = e.__c;
|
|
1831
|
+
o && (o.__$f &= -2, (i = o.__$u) === void 0 && (o.__$u = i = function(a) {
|
|
1832
|
+
var n;
|
|
1833
|
+
return He(function() {
|
|
1834
|
+
n = this;
|
|
1835
|
+
}), n.c = function() {
|
|
1836
|
+
o.__$f |= 1, o.setState({});
|
|
1837
|
+
}, n;
|
|
1838
|
+
}())), Yt(i), t(e);
|
|
1839
|
+
});
|
|
1840
|
+
vt("__e", function(t, e, i, o) {
|
|
1841
|
+
Yt(), t(e, i, o);
|
|
1842
|
+
});
|
|
1843
|
+
vt("diffed", function(t, e) {
|
|
1844
|
+
Yt();
|
|
1845
|
+
var i;
|
|
1846
|
+
if (typeof e.type == "string" && (i = e.__e)) {
|
|
1847
|
+
var o = e.__np, a = e.props;
|
|
1848
|
+
if (o) {
|
|
1849
|
+
var n = i.U;
|
|
1850
|
+
if (n)
|
|
1851
|
+
for (var r in n) {
|
|
1852
|
+
var s = n[r];
|
|
1853
|
+
s !== void 0 && !(r in o) && (s.d(), n[r] = void 0);
|
|
1854
|
+
}
|
|
1855
|
+
else
|
|
1856
|
+
i.U = n = {};
|
|
1857
|
+
for (var c in o) {
|
|
1858
|
+
var d = n[c], u = o[c];
|
|
1859
|
+
d === void 0 ? (d = rn(i, c, u, a), n[c] = d) : d.o(u, a);
|
|
1860
|
+
}
|
|
1861
|
+
}
|
|
1862
|
+
}
|
|
1863
|
+
t(e);
|
|
1864
|
+
});
|
|
1865
|
+
function rn(t, e, i, o) {
|
|
1866
|
+
var a = e in t && t.ownerSVGElement === void 0, n = G(i);
|
|
1867
|
+
return { o: function(r, s) {
|
|
1868
|
+
n.value = r, o = s;
|
|
1869
|
+
}, d: He(function() {
|
|
1870
|
+
var r = n.value.value;
|
|
1871
|
+
o[e] !== r && (o[e] = r, a ? t[e] = r : r ? t.setAttribute(e, r) : t.removeAttribute(e));
|
|
1872
|
+
}) };
|
|
1873
|
+
}
|
|
1874
|
+
vt("unmount", function(t, e) {
|
|
1875
|
+
if (typeof e.type == "string") {
|
|
1876
|
+
var i = e.__e;
|
|
1877
|
+
if (i) {
|
|
1878
|
+
var o = i.U;
|
|
1879
|
+
if (o) {
|
|
1880
|
+
i.U = void 0;
|
|
1881
|
+
for (var a in o) {
|
|
1882
|
+
var n = o[a];
|
|
1883
|
+
n && n.d();
|
|
1884
|
+
}
|
|
1885
|
+
}
|
|
1886
|
+
}
|
|
1887
|
+
} else {
|
|
1888
|
+
var r = e.__c;
|
|
1889
|
+
if (r) {
|
|
1890
|
+
var s = r.__$u;
|
|
1891
|
+
s && (r.__$u = void 0, s.d());
|
|
1892
|
+
}
|
|
1893
|
+
}
|
|
1894
|
+
t(e);
|
|
1895
|
+
});
|
|
1896
|
+
vt("__h", function(t, e, i, o) {
|
|
1897
|
+
(o < 3 || o === 9) && (e.__$f |= 2), t(e, i, o);
|
|
1898
|
+
});
|
|
1899
|
+
M.prototype.shouldComponentUpdate = function(t, e) {
|
|
1900
|
+
var i = this.__$u;
|
|
1901
|
+
if (!(i && i.s !== void 0 || 4 & this.__$f) || 3 & this.__$f)
|
|
1902
|
+
return !0;
|
|
1903
|
+
for (var o in e)
|
|
1904
|
+
return !0;
|
|
1905
|
+
for (var a in t)
|
|
1906
|
+
if (a !== "__source" && t[a] !== this.props[a])
|
|
1907
|
+
return !0;
|
|
1908
|
+
for (var n in this.props)
|
|
1909
|
+
if (!(n in t))
|
|
1910
|
+
return !0;
|
|
1911
|
+
return !1;
|
|
1912
|
+
};
|
|
1913
|
+
function sn(t) {
|
|
1914
|
+
return dt(function() {
|
|
1915
|
+
return G(t);
|
|
1916
|
+
}, []);
|
|
1917
|
+
}
|
|
1918
|
+
const _e = (t, e) => e.some((i) => t instanceof i);
|
|
1919
|
+
let fi, wi;
|
|
1920
|
+
function ln() {
|
|
1921
|
+
return fi || (fi = [
|
|
1922
|
+
IDBDatabase,
|
|
1923
|
+
IDBObjectStore,
|
|
1924
|
+
IDBIndex,
|
|
1925
|
+
IDBCursor,
|
|
1926
|
+
IDBTransaction
|
|
1927
|
+
]);
|
|
1928
|
+
}
|
|
1929
|
+
function cn() {
|
|
1930
|
+
return wi || (wi = [
|
|
1931
|
+
IDBCursor.prototype.advance,
|
|
1932
|
+
IDBCursor.prototype.continue,
|
|
1933
|
+
IDBCursor.prototype.continuePrimaryKey
|
|
1934
|
+
]);
|
|
1935
|
+
}
|
|
1936
|
+
const me = /* @__PURE__ */ new WeakMap(), ie = /* @__PURE__ */ new WeakMap(), Xt = /* @__PURE__ */ new WeakMap();
|
|
1937
|
+
function dn(t) {
|
|
1938
|
+
const e = new Promise((i, o) => {
|
|
1939
|
+
const a = () => {
|
|
1940
|
+
t.removeEventListener("success", n), t.removeEventListener("error", r);
|
|
1941
|
+
}, n = () => {
|
|
1942
|
+
i(lt(t.result)), a();
|
|
1943
|
+
}, r = () => {
|
|
1944
|
+
o(t.error), a();
|
|
1945
|
+
};
|
|
1946
|
+
t.addEventListener("success", n), t.addEventListener("error", r);
|
|
1947
|
+
});
|
|
1948
|
+
return Xt.set(e, t), e;
|
|
1949
|
+
}
|
|
1950
|
+
function un(t) {
|
|
1951
|
+
if (me.has(t))
|
|
1952
|
+
return;
|
|
1953
|
+
const e = new Promise((i, o) => {
|
|
1954
|
+
const a = () => {
|
|
1955
|
+
t.removeEventListener("complete", n), t.removeEventListener("error", r), t.removeEventListener("abort", r);
|
|
1956
|
+
}, n = () => {
|
|
1957
|
+
i(), a();
|
|
1958
|
+
}, r = () => {
|
|
1959
|
+
o(t.error || new DOMException("AbortError", "AbortError")), a();
|
|
1960
|
+
};
|
|
1961
|
+
t.addEventListener("complete", n), t.addEventListener("error", r), t.addEventListener("abort", r);
|
|
1962
|
+
});
|
|
1963
|
+
me.set(t, e);
|
|
1964
|
+
}
|
|
1965
|
+
let ye = {
|
|
1966
|
+
get(t, e, i) {
|
|
1967
|
+
if (t instanceof IDBTransaction) {
|
|
1968
|
+
if (e === "done")
|
|
1969
|
+
return me.get(t);
|
|
1970
|
+
if (e === "store")
|
|
1971
|
+
return i.objectStoreNames[1] ? void 0 : i.objectStore(i.objectStoreNames[0]);
|
|
1972
|
+
}
|
|
1973
|
+
return lt(t[e]);
|
|
1974
|
+
},
|
|
1975
|
+
set(t, e, i) {
|
|
1976
|
+
return t[e] = i, !0;
|
|
1977
|
+
},
|
|
1978
|
+
has(t, e) {
|
|
1979
|
+
return t instanceof IDBTransaction && (e === "done" || e === "store") ? !0 : e in t;
|
|
1980
|
+
}
|
|
1981
|
+
};
|
|
1982
|
+
function yo(t) {
|
|
1983
|
+
ye = t(ye);
|
|
1984
|
+
}
|
|
1985
|
+
function pn(t) {
|
|
1986
|
+
return cn().includes(t) ? function(...e) {
|
|
1987
|
+
return t.apply(xe(this), e), lt(this.request);
|
|
1988
|
+
} : function(...e) {
|
|
1989
|
+
return lt(t.apply(xe(this), e));
|
|
1990
|
+
};
|
|
1991
|
+
}
|
|
1992
|
+
function hn(t) {
|
|
1993
|
+
return typeof t == "function" ? pn(t) : (t instanceof IDBTransaction && un(t), _e(t, ln()) ? new Proxy(t, ye) : t);
|
|
1994
|
+
}
|
|
1995
|
+
function lt(t) {
|
|
1996
|
+
if (t instanceof IDBRequest)
|
|
1997
|
+
return dn(t);
|
|
1998
|
+
if (ie.has(t))
|
|
1999
|
+
return ie.get(t);
|
|
2000
|
+
const e = hn(t);
|
|
2001
|
+
return e !== t && (ie.set(t, e), Xt.set(e, t)), e;
|
|
2002
|
+
}
|
|
2003
|
+
const xe = (t) => Xt.get(t);
|
|
2004
|
+
function fn(t, e, { blocked: i, upgrade: o, blocking: a, terminated: n } = {}) {
|
|
2005
|
+
const r = indexedDB.open(t, e), s = lt(r);
|
|
2006
|
+
return o && r.addEventListener("upgradeneeded", (c) => {
|
|
2007
|
+
o(lt(r.result), c.oldVersion, c.newVersion, lt(r.transaction), c);
|
|
2008
|
+
}), i && r.addEventListener("blocked", (c) => i(
|
|
2009
|
+
// Casting due to https://github.com/microsoft/TypeScript-DOM-lib-generator/pull/1405
|
|
2010
|
+
c.oldVersion,
|
|
2011
|
+
c.newVersion,
|
|
2012
|
+
c
|
|
2013
|
+
)), s.then((c) => {
|
|
2014
|
+
n && c.addEventListener("close", () => n()), a && c.addEventListener("versionchange", (d) => a(d.oldVersion, d.newVersion, d));
|
|
2015
|
+
}).catch(() => {
|
|
2016
|
+
}), s;
|
|
2017
|
+
}
|
|
2018
|
+
const wn = ["get", "getKey", "getAll", "getAllKeys", "count"], gn = ["put", "add", "delete", "clear"], oe = /* @__PURE__ */ new Map();
|
|
2019
|
+
function gi(t, e) {
|
|
2020
|
+
if (!(t instanceof IDBDatabase && !(e in t) && typeof e == "string"))
|
|
2021
|
+
return;
|
|
2022
|
+
if (oe.get(e))
|
|
2023
|
+
return oe.get(e);
|
|
2024
|
+
const i = e.replace(/FromIndex$/, ""), o = e !== i, a = gn.includes(i);
|
|
2025
|
+
if (
|
|
2026
|
+
// Bail if the target doesn't exist on the target. Eg, getAll isn't in Edge.
|
|
2027
|
+
!(i in (o ? IDBIndex : IDBObjectStore).prototype) || !(a || wn.includes(i))
|
|
2028
|
+
)
|
|
2029
|
+
return;
|
|
2030
|
+
const n = async function(r, ...s) {
|
|
2031
|
+
const c = this.transaction(r, a ? "readwrite" : "readonly");
|
|
2032
|
+
let d = c.store;
|
|
2033
|
+
return o && (d = d.index(s.shift())), (await Promise.all([
|
|
2034
|
+
d[i](...s),
|
|
2035
|
+
a && c.done
|
|
2036
|
+
]))[0];
|
|
2037
|
+
};
|
|
2038
|
+
return oe.set(e, n), n;
|
|
2039
|
+
}
|
|
2040
|
+
yo((t) => ({
|
|
2041
|
+
...t,
|
|
2042
|
+
get: (e, i, o) => gi(e, i) || t.get(e, i, o),
|
|
2043
|
+
has: (e, i) => !!gi(e, i) || t.has(e, i)
|
|
2044
|
+
}));
|
|
2045
|
+
const bn = ["continue", "continuePrimaryKey", "advance"], bi = {}, ke = /* @__PURE__ */ new WeakMap(), xo = /* @__PURE__ */ new WeakMap(), vn = {
|
|
2046
|
+
get(t, e) {
|
|
2047
|
+
if (!bn.includes(e))
|
|
2048
|
+
return t[e];
|
|
2049
|
+
let i = bi[e];
|
|
2050
|
+
return i || (i = bi[e] = function(...o) {
|
|
2051
|
+
ke.set(this, xo.get(this)[e](...o));
|
|
2052
|
+
}), i;
|
|
2053
|
+
}
|
|
2054
|
+
};
|
|
2055
|
+
async function* _n(...t) {
|
|
2056
|
+
let e = this;
|
|
2057
|
+
if (e instanceof IDBCursor || (e = await e.openCursor(...t)), !e)
|
|
2058
|
+
return;
|
|
2059
|
+
e = e;
|
|
2060
|
+
const i = new Proxy(e, vn);
|
|
2061
|
+
for (xo.set(i, e), Xt.set(i, xe(e)); e; )
|
|
2062
|
+
yield i, e = await (ke.get(i) || e.continue()), ke.delete(i);
|
|
2063
|
+
}
|
|
2064
|
+
function vi(t, e) {
|
|
2065
|
+
return e === Symbol.asyncIterator && _e(t, [IDBIndex, IDBObjectStore, IDBCursor]) || e === "iterate" && _e(t, [IDBIndex, IDBObjectStore]);
|
|
2066
|
+
}
|
|
2067
|
+
yo((t) => ({
|
|
2068
|
+
...t,
|
|
2069
|
+
get(e, i, o) {
|
|
2070
|
+
return vi(e, i) ? _n : t.get(e, i, o);
|
|
2071
|
+
},
|
|
2072
|
+
has(e, i) {
|
|
2073
|
+
return vi(e, i) || t.has(e, i);
|
|
2074
|
+
}
|
|
2075
|
+
}));
|
|
2076
|
+
const Dt = typeof indexedDB > "u" ? void 0 : fn("inploi-chatbot", 3, {
|
|
2077
|
+
upgrade(t) {
|
|
2078
|
+
try {
|
|
2079
|
+
t.deleteObjectStore("state");
|
|
2080
|
+
} catch {
|
|
2081
|
+
}
|
|
2082
|
+
t.createObjectStore("state");
|
|
2083
|
+
}
|
|
2084
|
+
});
|
|
2085
|
+
let Nt, ae, _t;
|
|
2086
|
+
const _i = () => {
|
|
2087
|
+
if (!Nt)
|
|
2088
|
+
return _t;
|
|
2089
|
+
const t = Nt;
|
|
2090
|
+
Nt = void 0;
|
|
2091
|
+
const e = ko(t), i = Dt == null ? void 0 : Dt.then((o) => o.put("state", t.data, e)).finally(() => {
|
|
2092
|
+
_t === i && (_t = void 0);
|
|
2093
|
+
});
|
|
2094
|
+
return _t = i, _t;
|
|
2095
|
+
}, it = {
|
|
2096
|
+
getStateData: async (t, e, i) => {
|
|
2097
|
+
var a;
|
|
2098
|
+
const o = ko({
|
|
2099
|
+
...t,
|
|
2100
|
+
flowKeys: e,
|
|
2101
|
+
context: i
|
|
2102
|
+
});
|
|
2103
|
+
return (a = await Dt) == null ? void 0 : a.get("state", o);
|
|
2104
|
+
},
|
|
2105
|
+
setStateData: (t) => {
|
|
2106
|
+
Nt = t, clearTimeout(ae), ae = setTimeout(() => void _i(), 1e3);
|
|
2107
|
+
},
|
|
2108
|
+
flushStateData: () => (clearTimeout(ae), _i() ?? Promise.resolve())
|
|
2109
|
+
}, ur = (t) => {
|
|
2110
|
+
const e = t.find((i) => i.isHead);
|
|
2111
|
+
if (!e)
|
|
2112
|
+
throw new Error("No head node found");
|
|
2113
|
+
return e;
|
|
2114
|
+
}, pr = (t) => (e) => e ? e.type === t : !1;
|
|
2115
|
+
class ut extends Error {
|
|
2116
|
+
constructor() {
|
|
2117
|
+
super("Aborted");
|
|
2118
|
+
}
|
|
2119
|
+
}
|
|
2120
|
+
const mn = () => typeof crypto < "u" && "randomUUID" in crypto ? crypto.randomUUID() : Math.random().toString(36).slice(2), mi = () => ({
|
|
2121
|
+
messages: [],
|
|
2122
|
+
submissions: {},
|
|
2123
|
+
currentInput: null,
|
|
2124
|
+
nodeHistory: [],
|
|
2125
|
+
isFinished: !1,
|
|
2126
|
+
hasInteracted: !1,
|
|
2127
|
+
sequence: 0,
|
|
2128
|
+
flowSessionId: mn()
|
|
2129
|
+
}), hr = (t) => (
|
|
2130
|
+
/** nativeEvent is a hidden property not exposed by JSX's typings */
|
|
2131
|
+
Fe(t).with({
|
|
2132
|
+
nativeEvent: {
|
|
2133
|
+
submitter: Tt.select(Tt.union(Tt.instanceOf(HTMLButtonElement), Tt.instanceOf(HTMLInputElement)))
|
|
2134
|
+
}
|
|
2135
|
+
}, (e) => e).otherwise(() => {
|
|
2136
|
+
throw new Error("invalid submitter");
|
|
2137
|
+
})
|
|
2138
|
+
), At = (t, e, i, o = 0) => {
|
|
2139
|
+
if (!e.nextId)
|
|
2140
|
+
return i(e.id, {
|
|
2141
|
+
stepsMade: o,
|
|
2142
|
+
remainingSteps: 0
|
|
2143
|
+
}), {
|
|
2144
|
+
stepsMade: o,
|
|
2145
|
+
remainingSteps: 0
|
|
2146
|
+
};
|
|
2147
|
+
const a = t.find((d) => d.id === e.nextId);
|
|
2148
|
+
if (a === void 0)
|
|
2149
|
+
return {
|
|
2150
|
+
stepsMade: o,
|
|
2151
|
+
remainingSteps: 0
|
|
2152
|
+
};
|
|
2153
|
+
const n = e.type === "if-block" ? e.branchId : void 0, r = t.find((d) => d.id === n), s = e.type.includes("question") ? 1 : 0;
|
|
2154
|
+
if (r) {
|
|
2155
|
+
const d = s + Math.max(At(t, a, i, o + s).remainingSteps, At(t, r, i, o + s).remainingSteps);
|
|
2156
|
+
return i(e.id, {
|
|
2157
|
+
stepsMade: o,
|
|
2158
|
+
remainingSteps: d
|
|
2159
|
+
}), {
|
|
2160
|
+
stepsMade: o,
|
|
2161
|
+
remainingSteps: d
|
|
2162
|
+
};
|
|
2163
|
+
}
|
|
2164
|
+
const c = s + At(t, a, i, o + s).remainingSteps;
|
|
2165
|
+
return i(e.id, {
|
|
2166
|
+
stepsMade: o,
|
|
2167
|
+
remainingSteps: c
|
|
2168
|
+
}), {
|
|
2169
|
+
stepsMade: o,
|
|
2170
|
+
remainingSteps: c
|
|
2171
|
+
};
|
|
2172
|
+
}, yn = (t) => {
|
|
2173
|
+
const e = {}, i = t.find((o) => o.isHead);
|
|
2174
|
+
return i && At(t, i, (o, a) => {
|
|
2175
|
+
e[o] = a;
|
|
2176
|
+
}), e;
|
|
2177
|
+
}, ko = (t) => [...t.flowKeys, t.id, t.version, t.build, en(t.context)].join("/"), ot = G({
|
|
2178
|
+
state: "idle"
|
|
2179
|
+
}), nt = (t) => {
|
|
2180
|
+
const {
|
|
2181
|
+
state: e,
|
|
2182
|
+
flow: i
|
|
2183
|
+
} = ot.value;
|
|
2184
|
+
if (e !== "loaded")
|
|
2185
|
+
return;
|
|
2186
|
+
fo(i, "No flow to update");
|
|
2187
|
+
const o = t(i.data);
|
|
2188
|
+
i.data = o, ot.value = {
|
|
2189
|
+
state: e,
|
|
2190
|
+
flow: i
|
|
2191
|
+
}, it.setStateData(i);
|
|
2192
|
+
}, $ = {
|
|
2193
|
+
current$: ot,
|
|
2194
|
+
viewState$: G("closed"),
|
|
2195
|
+
prepareFlow: async ({
|
|
2196
|
+
flow: t,
|
|
2197
|
+
context: e = {},
|
|
2198
|
+
flowKeys: i,
|
|
2199
|
+
title: o,
|
|
2200
|
+
analytics: a,
|
|
2201
|
+
job: n,
|
|
2202
|
+
locationOrigin: r
|
|
2203
|
+
}) => (await it.flushStateData().catch(() => {
|
|
2204
|
+
}), {
|
|
2205
|
+
data: await it.getStateData(t, i, e) ?? mi(),
|
|
2206
|
+
startedAt: /* @__PURE__ */ new Date(),
|
|
2207
|
+
nodeIdToProgress: yn(t.nodes),
|
|
2208
|
+
flowKeys: i,
|
|
2209
|
+
id: t.id,
|
|
2210
|
+
version: t.version,
|
|
2211
|
+
nodes: t.nodes,
|
|
2212
|
+
build: t.build,
|
|
2213
|
+
context: e,
|
|
2214
|
+
title: o,
|
|
2215
|
+
analytics: a,
|
|
2216
|
+
job: n,
|
|
2217
|
+
locationOrigin: r
|
|
2218
|
+
}),
|
|
2219
|
+
commitFlow: (t) => {
|
|
2220
|
+
ot.value = {
|
|
2221
|
+
state: "loaded",
|
|
2222
|
+
flow: t
|
|
2223
|
+
}, it.setStateData(t);
|
|
2224
|
+
},
|
|
2225
|
+
cancelCurrentFlow: () => {
|
|
2226
|
+
ot.value = {
|
|
2227
|
+
state: "idle"
|
|
2228
|
+
}, $.viewState$.value = "closed";
|
|
2229
|
+
},
|
|
2230
|
+
markAsFinished: () => nt((t) => ({
|
|
2231
|
+
...t,
|
|
2232
|
+
isFinished: !0
|
|
2233
|
+
})),
|
|
2234
|
+
markAsInteracted: () => nt((t) => ({
|
|
2235
|
+
...t,
|
|
2236
|
+
hasInteracted: !0
|
|
2237
|
+
})),
|
|
2238
|
+
setCurrentNodeId: (t) => nt((e) => (e.nodeHistory.push(t), e)),
|
|
2239
|
+
setApplicationRecovery: async (t) => {
|
|
2240
|
+
nt((e) => (t ? e.applicationRecovery = t : delete e.applicationRecovery, e)), await it.flushStateData();
|
|
2241
|
+
},
|
|
2242
|
+
restart: () => {
|
|
2243
|
+
const {
|
|
2244
|
+
state: t,
|
|
2245
|
+
flow: e
|
|
2246
|
+
} = ot.value;
|
|
2247
|
+
if (t !== "loaded")
|
|
2248
|
+
throw new Error("Flow cannot be restarted: not in valid state");
|
|
2249
|
+
const i = mi(), o = {
|
|
2250
|
+
...e,
|
|
2251
|
+
data: i,
|
|
2252
|
+
startedAt: /* @__PURE__ */ new Date()
|
|
2253
|
+
};
|
|
2254
|
+
ot.value = {
|
|
2255
|
+
state: t,
|
|
2256
|
+
flow: o
|
|
2257
|
+
}, it.setStateData(o);
|
|
2258
|
+
},
|
|
2259
|
+
addMessage: (t, e) => {
|
|
2260
|
+
const i = {
|
|
2261
|
+
...t,
|
|
2262
|
+
groupId: e
|
|
2263
|
+
};
|
|
2264
|
+
return nt((o) => (o.messages.push(i), o));
|
|
2265
|
+
},
|
|
2266
|
+
/** Removes messages from nodeId, all the messages that have the groupId passed, until it reaches one that doesn't */
|
|
2267
|
+
removeMessagesSentByNodeIds: (t) => {
|
|
2268
|
+
const {
|
|
2269
|
+
state: e,
|
|
2270
|
+
flow: i
|
|
2271
|
+
} = ot.value;
|
|
2272
|
+
fo(e === "loaded", "Application not loaded");
|
|
2273
|
+
const o = i.data.messages.filter((a) => !a.groupId || !t.includes(a.groupId));
|
|
2274
|
+
i.data.messages = o, it.setStateData(i);
|
|
2275
|
+
},
|
|
2276
|
+
setSubmission: (t, e) => nt((i) => (e === null ? delete i.submissions[t] : i.submissions[t] = e, i)),
|
|
2277
|
+
setInput: (t) => nt((e) => ({
|
|
2278
|
+
...e,
|
|
2279
|
+
currentInput: t ?? null
|
|
2280
|
+
}))
|
|
2281
|
+
}, xn = ({
|
|
2282
|
+
message: t
|
|
2283
|
+
}) => {
|
|
2284
|
+
const {
|
|
2285
|
+
t: e
|
|
2286
|
+
} = Le();
|
|
2287
|
+
return p("div", {
|
|
2288
|
+
class: "flex flex-grow flex-col items-center justify-center",
|
|
2289
|
+
children: [p("svg", {
|
|
2290
|
+
class: "text-error-9 h-16 w-16",
|
|
2291
|
+
fill: "none",
|
|
2292
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
2293
|
+
"stroke-width": "2",
|
|
2294
|
+
stroke: "currentColor",
|
|
2295
|
+
"stroke-linecap": "round",
|
|
2296
|
+
viewBox: "0 0 96 96",
|
|
2297
|
+
children: [p("path", {
|
|
2298
|
+
d: "M48 79H19.9l-1.3-.3a3 3 0 0 1-1.3-1.3c-.1-.3-.2-.6-.2-1.3l-.1-2.5V48a31 31 0 1 1 31 31Z",
|
|
2299
|
+
fill: "#fff"
|
|
2300
|
+
}), p("path", {
|
|
2301
|
+
d: "M48 79H19.9l-1.3-.3a3 3 0 0 1-1.3-1.3c-.1-.3-.2-.6-.2-1.3l-.1-2.5V48a31 31 0 1 1 31 31Z"
|
|
2302
|
+
}), p("line", {
|
|
2303
|
+
x1: "36.7",
|
|
2304
|
+
y1: "39.3",
|
|
2305
|
+
x2: "44.8",
|
|
2306
|
+
y2: "47.4"
|
|
2307
|
+
}), p("line", {
|
|
2308
|
+
x1: "52.2",
|
|
2309
|
+
y1: "39.3",
|
|
2310
|
+
x2: "60.3",
|
|
2311
|
+
y2: "47.4"
|
|
2312
|
+
}), p("line", {
|
|
2313
|
+
x1: "44.7",
|
|
2314
|
+
y1: "39.2",
|
|
2315
|
+
x2: "36.6",
|
|
2316
|
+
y2: "47.3"
|
|
2317
|
+
}), p("line", {
|
|
2318
|
+
x1: "60.2",
|
|
2319
|
+
y1: "39.2",
|
|
2320
|
+
x2: "52.1",
|
|
2321
|
+
y2: "47.3"
|
|
2322
|
+
}), p("path", {
|
|
2323
|
+
d: "M38 56h19"
|
|
2324
|
+
})]
|
|
2325
|
+
}), p("div", {
|
|
2326
|
+
class: "flex flex-col gap-2 text-center",
|
|
2327
|
+
children: [p("p", {
|
|
2328
|
+
class: "text-error-11 font-bold",
|
|
2329
|
+
children: e("error_heading")
|
|
2330
|
+
}), t && p("p", {
|
|
2331
|
+
class: "text-neutral-9 text-sm",
|
|
2332
|
+
children: t
|
|
2333
|
+
})]
|
|
2334
|
+
})]
|
|
2335
|
+
});
|
|
2336
|
+
}, kn = (t) => p("svg", {
|
|
2337
|
+
role: "img",
|
|
2338
|
+
viewBox: "0 0 24 24",
|
|
2339
|
+
...t,
|
|
2340
|
+
children: [p("title", {
|
|
2341
|
+
children: "Loading"
|
|
2342
|
+
}), p("style", {
|
|
2343
|
+
children: "#s1{animation:3s linear infinite forwards s1__to}@keyframes s1__to{0%{transform:translate(12px,0)}66.666667%{transform:translate(12px,0);animation-timing-function:cubic-bezier(0.77,0,0.175,1)}100%{transform:translate(12px,12px)}}#s2{animation:3s linear infinite forwards s2__ts}@keyframes s2__ts{0%{transform:scale(0,0)}70%{transform:scale(0,0);animation-timing-function:cubic-bezier(0.86,0,0.07,1)}100%{transform:scale(1,1)}}#s3{animation:3s linear infinite forwards s3__to}@keyframes s3__to{0%{transform:translate(12px,12px);animation-timing-function:cubic-bezier(0.77,0,0.175,1)}100%,33.333333%{transform:translate(12px,24px)}}#s4{animation:3s linear infinite forwards s4__ts}@keyframes s4__ts{0%{transform:scale(1,1);animation-timing-function:cubic-bezier(0.86,0,0.07,1)}100%,30%{transform:scale(0,0)}}#s5{animation:3s linear infinite forwards s5__to}@keyframes s5__to{0%{transform:translate(12px,0);animation-timing-function:cubic-bezier(0.77,0,0.175,1)}33.333333%{transform:translate(12px,12.045742px);animation-timing-function:cubic-bezier(0.77,0,0.175,1)}100%,66.666667%{transform:translate(12px,24px)}}#s6{animation:3s linear infinite forwards s6__ts}@keyframes s6__ts{0%,100%,63.333333%{transform:scale(0,0)}3.333333%{transform:scale(0,0);animation-timing-function:cubic-bezier(0.86,0,0.07,1)}33.333333%{transform:scale(1,1);animation-timing-function:cubic-bezier(0.86,0,0.07,1)}}#s7{animation:3s linear infinite forwards s7__to}@keyframes s7__to{0%{transform:translate(12px,0)}33.333333%{transform:translate(12px,0);animation-timing-function:cubic-bezier(0.77,0,0.175,1)}66.666667%{transform:translate(12px,12px);animation-timing-function:cubic-bezier(0.77,0,0.175,1)}100%{transform:translate(12px,24px)}}#s8{animation:3s linear infinite forwards s8__ts}@keyframes s8__ts{0%,100%,96.666667%{transform:scale(0,0)}36.666667%{transform:scale(0,0);animation-timing-function:cubic-bezier(0.86,0,0.07,1)}66.666667%{transform:scale(1,1);animation-timing-function:cubic-bezier(0.86,0,0.07,1)}}"
|
|
2344
|
+
}), p("g", {
|
|
2345
|
+
id: "s1",
|
|
2346
|
+
transform: "translate(12,0)",
|
|
2347
|
+
children: p("g", {
|
|
2348
|
+
id: "s2",
|
|
2349
|
+
transform: "scale(0,0)",
|
|
2350
|
+
children: p("circle", {
|
|
2351
|
+
r: "6.5",
|
|
2352
|
+
transform: "translate(0,0)",
|
|
2353
|
+
fill: "currentColor"
|
|
2354
|
+
})
|
|
2355
|
+
})
|
|
2356
|
+
}), p("g", {
|
|
2357
|
+
id: "s3",
|
|
2358
|
+
transform: "translate(12,12)",
|
|
2359
|
+
children: p("g", {
|
|
2360
|
+
id: "s4",
|
|
2361
|
+
transform: "scale(1,1)",
|
|
2362
|
+
children: p("circle", {
|
|
2363
|
+
r: "6.5",
|
|
2364
|
+
transform: "translate(0,0)",
|
|
2365
|
+
fill: "currentColor"
|
|
2366
|
+
})
|
|
2367
|
+
})
|
|
2368
|
+
}), p("g", {
|
|
2369
|
+
id: "s5",
|
|
2370
|
+
transform: "translate(12,0)",
|
|
2371
|
+
children: p("g", {
|
|
2372
|
+
id: "s6",
|
|
2373
|
+
transform: "scale(0,0)",
|
|
2374
|
+
children: p("path", {
|
|
2375
|
+
d: "M6.5,13c3.5899,0,6.5-2.9101,6.5-6.5s-2.9101-6.5-6.5-6.5-6.5,2.91015-6.5,6.5s2.91015,6.5,6.5,6.5Zm0-4C7.88071,9,9,7.88071,9,6.5s-1.11929-2.5-2.5-2.5-2.5,1.11929-2.5,2.5s1.11929,2.5,2.5,2.5Z",
|
|
2376
|
+
transform: "translate(-6.5,-6.5)",
|
|
2377
|
+
"clip-rule": "evenodd",
|
|
2378
|
+
fill: "currentColor",
|
|
2379
|
+
"fill-rule": "evenodd"
|
|
2380
|
+
})
|
|
2381
|
+
})
|
|
2382
|
+
}), p("g", {
|
|
2383
|
+
id: "s7",
|
|
2384
|
+
transform: "translate(12,0)",
|
|
2385
|
+
children: p("g", {
|
|
2386
|
+
id: "s8",
|
|
2387
|
+
transform: "scale(0,0)",
|
|
2388
|
+
children: p("path", {
|
|
2389
|
+
d: "M0,6c0,3.58984,2.91016,6.5,6.5,6.5s6.5-2.91016,6.5-6.5h-4C9,7.38086,7.88086,8.5,6.5,8.5s-2.5-1.11914-2.5-2.5h-4Z",
|
|
2390
|
+
transform: "translate(-6.5,-9.25)",
|
|
2391
|
+
fill: "currentColor"
|
|
2392
|
+
})
|
|
2393
|
+
})
|
|
2394
|
+
})]
|
|
2395
|
+
}), yi = () => p("div", {
|
|
2396
|
+
class: "flex flex-grow flex-col items-center justify-center",
|
|
2397
|
+
children: p(kn, {
|
|
2398
|
+
class: "text-neutral-6 h-8 w-8"
|
|
2399
|
+
})
|
|
2400
|
+
}), $n = (t) => {
|
|
2401
|
+
const i = t / 100, o = 1.3;
|
|
2402
|
+
return t < 0 ? "0%" : t > 100 ? "100%" : `${Math.round((1 - (1 - 0.1) * Math.pow(1 - i, o)) * 100)}%`;
|
|
2403
|
+
}, Sn = De("touch-hitbox fr relative flex-none rounded-full p-2 transition-all", {
|
|
2404
|
+
variants: {
|
|
2405
|
+
variant: {
|
|
2406
|
+
neutral: "text-neutral-11 hover:text-neutral-12 active:text-neutral-12 hover:bg-interactive-bg-hover active:bg-interactive-bg-active ",
|
|
2407
|
+
white: "text-white/80 hover:text-white active:text-white hover:bg-white/20 active:bg-white/30"
|
|
2408
|
+
}
|
|
2409
|
+
},
|
|
2410
|
+
defaultVariants: {
|
|
2411
|
+
variant: "neutral"
|
|
2412
|
+
}
|
|
2413
|
+
}), $e = ({
|
|
2414
|
+
class: t,
|
|
2415
|
+
children: e,
|
|
2416
|
+
variant: i,
|
|
2417
|
+
...o
|
|
2418
|
+
}) => p("button", {
|
|
2419
|
+
class: je(Sn({
|
|
2420
|
+
variant: i
|
|
2421
|
+
}), t),
|
|
2422
|
+
...o,
|
|
2423
|
+
children: p("svg", {
|
|
2424
|
+
class: "block",
|
|
2425
|
+
width: "16",
|
|
2426
|
+
height: "16",
|
|
2427
|
+
viewBox: "0 0 16 16",
|
|
2428
|
+
fill: "none",
|
|
2429
|
+
stroke: "currentColor",
|
|
2430
|
+
"stroke-width": "1.5",
|
|
2431
|
+
"stroke-linecap": "round",
|
|
2432
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
2433
|
+
children: e
|
|
2434
|
+
})
|
|
2435
|
+
}), Cn = () => p("path", {
|
|
2436
|
+
d: "M12.5 6.5L8 11L3.5 6.5"
|
|
2437
|
+
}), En = () => {
|
|
2438
|
+
if ($.current$.value.state !== "loaded")
|
|
2439
|
+
return null;
|
|
2440
|
+
const t = $.current$.value.flow.nodeIdToProgress, e = $.current$.value.flow.data.nodeHistory.at(-1);
|
|
2441
|
+
if (e === void 0)
|
|
2442
|
+
return null;
|
|
2443
|
+
const i = t[e];
|
|
2444
|
+
if (i === void 0)
|
|
2445
|
+
return null;
|
|
2446
|
+
const o = 100 * (i.stepsMade / (i.remainingSteps + i.stepsMade));
|
|
2447
|
+
return p("div", {
|
|
2448
|
+
class: "bg-accent-3",
|
|
2449
|
+
children: p("div", {
|
|
2450
|
+
style: {
|
|
2451
|
+
width: $n(o)
|
|
2452
|
+
},
|
|
2453
|
+
class: "bg-accent-9 ring-accent-6 relative h-[3px] rounded-full transition-all duration-1000"
|
|
2454
|
+
})
|
|
2455
|
+
});
|
|
2456
|
+
}, Pn = ({
|
|
2457
|
+
children: t,
|
|
2458
|
+
params: e
|
|
2459
|
+
}) => {
|
|
2460
|
+
const {
|
|
2461
|
+
t: i
|
|
2462
|
+
} = Le(), o = $.viewState$;
|
|
2463
|
+
return p(K, {
|
|
2464
|
+
children: p("header", {
|
|
2465
|
+
class: "ring-divider bg-statusbar absolute left-0 right-0 top-0 z-20 mx-auto items-center ring-1 backdrop-blur-md backdrop-saturate-150",
|
|
2466
|
+
children: [p("div", {
|
|
2467
|
+
class: "ring-neutral-7 flex h-[var(--header-height)] gap-2 rounded-t-3xl ring-0 ring-inset transition-all duration-300 [&:has(>.view-switch:focus-visible)]:ring-1",
|
|
2468
|
+
children: [p("p", {
|
|
2469
|
+
id: "chatbot-status-bar",
|
|
2470
|
+
class: "sr-only",
|
|
2471
|
+
children: t
|
|
2472
|
+
}), p("button", {
|
|
2473
|
+
onClick: () => {
|
|
2474
|
+
o.value = "minimised";
|
|
2475
|
+
},
|
|
2476
|
+
class: "view-switch h-full flex-grow overflow-hidden px-4 py-1 focus-visible:outline-none",
|
|
2477
|
+
onTouchStart: Se,
|
|
2478
|
+
children: p("p", {
|
|
2479
|
+
"aria-hidden": !0,
|
|
2480
|
+
class: "text-neutral-12 truncate text-sm font-bold tracking-tight",
|
|
2481
|
+
children: t
|
|
2482
|
+
})
|
|
2483
|
+
}), p("div", {
|
|
2484
|
+
class: "flex flex-shrink-0 items-center gap-3 p-1.5",
|
|
2485
|
+
children: [e.feedback ? p("div", {
|
|
2486
|
+
"data-widget": "inploi-feedback",
|
|
2487
|
+
"data-key": "chatbot-header",
|
|
2488
|
+
class: je({
|
|
2489
|
+
hidden: $.current$.value.state !== "loaded" || o.value !== "maximised"
|
|
2490
|
+
}),
|
|
2491
|
+
children: p("div", {
|
|
2492
|
+
class: "ring-neutral-4 bg-neutral-3 h-8 w-[72px] animate-pulse rounded-full ring-1"
|
|
2493
|
+
})
|
|
2494
|
+
}) : null, $.current$.value.state === "loaded" && p($e, {
|
|
2495
|
+
class: "mx-1",
|
|
2496
|
+
"aria-label": "Restart",
|
|
2497
|
+
onClick: () => {
|
|
2498
|
+
$.restart();
|
|
2499
|
+
},
|
|
2500
|
+
children: [p("path", {
|
|
2501
|
+
d: "M12 8.5C12 9.29113 11.7654 10.0645 11.3259 10.7223C10.8864 11.3801 10.2616 11.8928 9.53073 12.1955C8.79983 12.4983 7.99556 12.5775 7.21964 12.4231C6.44371 12.2688 5.73098 11.8878 5.17157 11.3284C4.61216 10.769 4.2312 10.0563 4.07686 9.28036C3.92252 8.50444 4.00173 7.70017 4.30448 6.96927C4.60723 6.23836 5.11992 5.61365 5.77772 5.17412C6.43552 4.7346 7.20887 4.5 8 4.5H9"
|
|
2502
|
+
}), p("path", {
|
|
2503
|
+
d: "M8 7L10 4.5L8 2.5"
|
|
2504
|
+
})]
|
|
2505
|
+
}, "restart"), p($e, {
|
|
2506
|
+
class: "view-switch mx-1",
|
|
2507
|
+
onTouchStart: Se,
|
|
2508
|
+
"aria-label": i("minimize"),
|
|
2509
|
+
onClick: () => o.value = "minimised",
|
|
2510
|
+
children: p(Cn, {})
|
|
2511
|
+
}, "minmax")]
|
|
2512
|
+
})]
|
|
2513
|
+
}), p(En, {})]
|
|
2514
|
+
})
|
|
2515
|
+
});
|
|
2516
|
+
};
|
|
2517
|
+
function Se() {
|
|
2518
|
+
}
|
|
2519
|
+
const Tn = ao(() => import("./chatbot-body-02c464c0.js").then((t) => t.ChatbotBody)), $o = De("selection:bg-accent-4 selection:text-accent-12 fixed bottom-2 left-2 right-2 isolate mx-auto max-h-full focus:outline-none [&:has(.view-switch:active)]:scale-[0.98] transition-all duration-1000 ease-expo-out", {
|
|
2520
|
+
variants: {
|
|
2521
|
+
view: {
|
|
2522
|
+
closed: "hidden",
|
|
2523
|
+
minimised: "max-w-[min(300px,calc(100vw-4rem))] h-[var(--header-height)] animate-slide-in-bottom",
|
|
2524
|
+
maximised: "max-w-[450px] h-[var(--content-height)] animate-maximise"
|
|
2525
|
+
}
|
|
2526
|
+
}
|
|
2527
|
+
}), So = De("relative flex h-full overflow-hidden rounded-3xl outline outline-1", {
|
|
2528
|
+
variants: {
|
|
2529
|
+
view: {
|
|
2530
|
+
closed: "hidden",
|
|
2531
|
+
minimised: "outline-accent-10 bg-accent-9",
|
|
2532
|
+
maximised: "outline-neutral-3 bg-neutral-1 flex-col"
|
|
2533
|
+
}
|
|
2534
|
+
}
|
|
2535
|
+
}), zn = ({
|
|
2536
|
+
open: t,
|
|
2537
|
+
...e
|
|
2538
|
+
}) => {
|
|
2539
|
+
const i = qt(null);
|
|
2540
|
+
return gt(() => {
|
|
2541
|
+
const o = i.current;
|
|
2542
|
+
o && (t ? o.showModal() : o.close());
|
|
2543
|
+
}, [t]), p("dialog", {
|
|
2544
|
+
ref: i,
|
|
2545
|
+
...e
|
|
2546
|
+
});
|
|
2547
|
+
}, On = ({
|
|
2548
|
+
logger: t,
|
|
2549
|
+
apiClient: e,
|
|
2550
|
+
analytics: i,
|
|
2551
|
+
talentBankClient: o,
|
|
2552
|
+
params: a
|
|
2553
|
+
}) => {
|
|
2554
|
+
const {
|
|
2555
|
+
state: n,
|
|
2556
|
+
flow: r,
|
|
2557
|
+
error: s
|
|
2558
|
+
} = $.current$.value, c = $.viewState$.value, d = n !== "idle" && c === "maximised", u = qt(null);
|
|
2559
|
+
return p(Qa, {
|
|
2560
|
+
terms: a.terms,
|
|
2561
|
+
locale: void 0,
|
|
2562
|
+
children: [p(zn, {
|
|
2563
|
+
open: d,
|
|
2564
|
+
onClose: () => $.viewState$.value = "minimised",
|
|
2565
|
+
children: p("div", {
|
|
2566
|
+
ref: u,
|
|
2567
|
+
"aria-modal": "true",
|
|
2568
|
+
role: "dialog",
|
|
2569
|
+
"aria-labelledby": "chatbot-status-bar",
|
|
2570
|
+
class: $o({
|
|
2571
|
+
view: "maximised"
|
|
2572
|
+
}),
|
|
2573
|
+
children: p("div", {
|
|
2574
|
+
class: So({
|
|
2575
|
+
view: "maximised"
|
|
2576
|
+
}),
|
|
2577
|
+
children: [p(Pn, {
|
|
2578
|
+
params: a,
|
|
2579
|
+
children: r == null ? void 0 : r.title
|
|
2580
|
+
}), Fe({
|
|
2581
|
+
state: n,
|
|
2582
|
+
view: c
|
|
2583
|
+
}).with({
|
|
2584
|
+
state: "idle"
|
|
2585
|
+
}, () => null).with({
|
|
2586
|
+
state: "loading"
|
|
2587
|
+
}, () => p(yi, {}, "loading")).with({
|
|
2588
|
+
state: "loaded"
|
|
2589
|
+
}, () => p(xt, {
|
|
2590
|
+
fallback: p(yi, {}, "loading"),
|
|
2591
|
+
children: p(Tn, {
|
|
2592
|
+
analytics: i,
|
|
2593
|
+
apiClient: e,
|
|
2594
|
+
logger: t,
|
|
2595
|
+
talentBankClient: o
|
|
2596
|
+
})
|
|
2597
|
+
})).with({
|
|
2598
|
+
state: "error"
|
|
2599
|
+
}, () => p(xn, {
|
|
2600
|
+
message: s
|
|
2601
|
+
})).exhaustive()]
|
|
2602
|
+
})
|
|
2603
|
+
})
|
|
2604
|
+
}), c === "minimised" ? p(In, {
|
|
2605
|
+
flow: r
|
|
2606
|
+
}) : null]
|
|
2607
|
+
});
|
|
2608
|
+
}, In = ({
|
|
2609
|
+
flow: t
|
|
2610
|
+
}) => {
|
|
2611
|
+
const {
|
|
2612
|
+
t: e
|
|
2613
|
+
} = Le();
|
|
2614
|
+
return p("div", {
|
|
2615
|
+
class: $o({
|
|
2616
|
+
view: "minimised",
|
|
2617
|
+
class: "z-100 isolate"
|
|
2618
|
+
}),
|
|
2619
|
+
children: p("div", {
|
|
2620
|
+
class: So({
|
|
2621
|
+
view: "minimised"
|
|
2622
|
+
}),
|
|
2623
|
+
children: [p("button", {
|
|
2624
|
+
onClick: () => {
|
|
2625
|
+
$.viewState$.value = "maximised";
|
|
2626
|
+
},
|
|
2627
|
+
class: "view-switch h-full flex-grow overflow-hidden px-4 py-1 focus-visible:outline-none",
|
|
2628
|
+
onTouchStart: Se,
|
|
2629
|
+
children: p("p", {
|
|
2630
|
+
"aria-hidden": !0,
|
|
2631
|
+
class: "truncate text-sm font-bold tracking-tight text-white",
|
|
2632
|
+
children: t == null ? void 0 : t.title
|
|
2633
|
+
})
|
|
2634
|
+
}), p("div", {
|
|
2635
|
+
class: "flex items-center px-0.5",
|
|
2636
|
+
children: p($e, {
|
|
2637
|
+
class: "mx-1",
|
|
2638
|
+
"aria-label": e("close_application"),
|
|
2639
|
+
onClick: $.cancelCurrentFlow,
|
|
2640
|
+
variant: "white",
|
|
2641
|
+
children: p("path", {
|
|
2642
|
+
d: "M12 12L4 4M12 4L4 12"
|
|
2643
|
+
})
|
|
2644
|
+
}, "close")
|
|
2645
|
+
})]
|
|
2646
|
+
})
|
|
2647
|
+
});
|
|
2648
|
+
}, jn = `[data-widget=inploi-chatbot]{-webkit-touch-callout:none;-webkit-user-select:none;-moz-user-select:none;user-select:none;position:relative;z-index:2147483647;font-size:16px;font-family:sans-serif;--i-lowest: 0 0% 100%;--i-e-1: 340 100% 99%;--i-e-2: 353 100% 98%;--i-e-3: 351 91% 96%;--i-e-4: 351 100% 93%;--i-e-5: 350 100% 90%;--i-e-6: 351 80% 86%;--i-e-7: 349 68% 81%;--i-e-8: 348 61% 74%;--i-e-9: 348 75% 59%;--i-e-10: 347 70% 55%;--i-e-11: 345 70% 47%;--i-e-12: 344 63% 24%;--header-height: 44px;--content-height:calc(100vh - 64px);--content-height:calc(100svh - 64px)}@media screen and (min-width: 768px){[data-widget=inploi-chatbot]{--content-height: min(640px, calc(100vh - 16px));--content-height: min(640px, calc(100svh - 16px)) }}[data-widget=inploi-chatbot] *,[data-widget=inploi-chatbot] :before,[data-widget=inploi-chatbot] :after{--tw-border-spacing-x: 0;--tw-border-spacing-y: 0;--tw-translate-x: 0;--tw-translate-y: 0;--tw-rotate: 0;--tw-skew-x: 0;--tw-skew-y: 0;--tw-scale-x: 1;--tw-scale-y: 1;--tw-pan-x: ;--tw-pan-y: ;--tw-pinch-zoom: ;--tw-scroll-snap-strictness: proximity;--tw-gradient-from-position: ;--tw-gradient-via-position: ;--tw-gradient-to-position: ;--tw-ordinal: ;--tw-slashed-zero: ;--tw-numeric-figure: ;--tw-numeric-spacing: ;--tw-numeric-fraction: ;--tw-ring-inset: ;--tw-ring-offset-width: 0px;--tw-ring-offset-color: #fff;--tw-ring-color: rgb(59 130 246 / .5);--tw-ring-offset-shadow: 0 0 #0000;--tw-ring-shadow: 0 0 #0000;--tw-shadow: 0 0 #0000;--tw-shadow-colored: 0 0 #0000;--tw-blur: ;--tw-brightness: ;--tw-contrast: ;--tw-grayscale: ;--tw-hue-rotate: ;--tw-invert: ;--tw-saturate: ;--tw-sepia: ;--tw-drop-shadow: ;--tw-backdrop-blur: ;--tw-backdrop-brightness: ;--tw-backdrop-contrast: ;--tw-backdrop-grayscale: ;--tw-backdrop-hue-rotate: ;--tw-backdrop-invert: ;--tw-backdrop-opacity: ;--tw-backdrop-saturate: ;--tw-backdrop-sepia: ;--tw-contain-size: ;--tw-contain-layout: ;--tw-contain-paint: ;--tw-contain-style: }[data-widget=inploi-chatbot] ::backdrop{--tw-border-spacing-x: 0;--tw-border-spacing-y: 0;--tw-translate-x: 0;--tw-translate-y: 0;--tw-rotate: 0;--tw-skew-x: 0;--tw-skew-y: 0;--tw-scale-x: 1;--tw-scale-y: 1;--tw-pan-x: ;--tw-pan-y: ;--tw-pinch-zoom: ;--tw-scroll-snap-strictness: proximity;--tw-gradient-from-position: ;--tw-gradient-via-position: ;--tw-gradient-to-position: ;--tw-ordinal: ;--tw-slashed-zero: ;--tw-numeric-figure: ;--tw-numeric-spacing: ;--tw-numeric-fraction: ;--tw-ring-inset: ;--tw-ring-offset-width: 0px;--tw-ring-offset-color: #fff;--tw-ring-color: rgb(59 130 246 / .5);--tw-ring-offset-shadow: 0 0 #0000;--tw-ring-shadow: 0 0 #0000;--tw-shadow: 0 0 #0000;--tw-shadow-colored: 0 0 #0000;--tw-blur: ;--tw-brightness: ;--tw-contrast: ;--tw-grayscale: ;--tw-hue-rotate: ;--tw-invert: ;--tw-saturate: ;--tw-sepia: ;--tw-drop-shadow: ;--tw-backdrop-blur: ;--tw-backdrop-brightness: ;--tw-backdrop-contrast: ;--tw-backdrop-grayscale: ;--tw-backdrop-hue-rotate: ;--tw-backdrop-invert: ;--tw-backdrop-opacity: ;--tw-backdrop-saturate: ;--tw-backdrop-sepia: ;--tw-contain-size: ;--tw-contain-layout: ;--tw-contain-paint: ;--tw-contain-style: }[data-widget=inploi-chatbot]{--tw-content: "";font-family:system-ui,-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Oxygen,Ubuntu,Cantarell,Open Sans,Helvetica Neue,sans-serif}[data-widget=inploi-chatbot] em{font-style:italic}[data-widget=inploi-chatbot] strong{font-weight:700}[data-widget=inploi-chatbot] *{font-weight:inherit;font-style:inherit;box-sizing:border-box;font-family:inherit;border-style:solid;border-width:0;-webkit-tap-highlight-color:transparent}[data-widget=inploi-chatbot] :before,[data-widget=inploi-chatbot] :after{box-sizing:border-box}[data-widget=inploi-chatbot] :is(ul,ol){list-style:none;padding:0;margin:0}[data-widget=inploi-chatbot] :is(p){margin:0;padding:0}[data-widget=inploi-chatbot] :is(li){margin:0;padding:0;list-style:none}[data-widget=inploi-chatbot] :is(button){margin:0;padding:0;border:unset;background:unset;text-align:unset}[data-widget=inploi-chatbot] .container{width:100%}@media (min-width: 640px){[data-widget=inploi-chatbot] .container{max-width:640px}}@media (min-width: 768px){[data-widget=inploi-chatbot] .container{max-width:768px}}@media (min-width: 1024px){[data-widget=inploi-chatbot] .container{max-width:1024px}}@media (min-width: 1280px){[data-widget=inploi-chatbot] .container{max-width:1280px}}@media (min-width: 1536px){[data-widget=inploi-chatbot] .container{max-width:1536px}}[data-widget=inploi-chatbot] .sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border-width:0}[data-widget=inploi-chatbot] .visible{visibility:visible}[data-widget=inploi-chatbot] .invisible{visibility:hidden}[data-widget=inploi-chatbot] .collapse{visibility:collapse}[data-widget=inploi-chatbot] .static{position:static}[data-widget=inploi-chatbot] .fixed{position:fixed}[data-widget=inploi-chatbot] .absolute{position:absolute}[data-widget=inploi-chatbot] .relative{position:relative}[data-widget=inploi-chatbot] .sticky{position:sticky}[data-widget=inploi-chatbot] .inset-0{top:0;right:0;bottom:0;left:0}[data-widget=inploi-chatbot] .bottom-0{bottom:0}[data-widget=inploi-chatbot] .bottom-2{bottom:8px}[data-widget=inploi-chatbot] .bottom-2\\.5{bottom:10px}[data-widget=inploi-chatbot] .left-0{left:0}[data-widget=inploi-chatbot] .left-1\\/2{left:50%}[data-widget=inploi-chatbot] .left-2{left:8px}[data-widget=inploi-chatbot] .right-0{right:0}[data-widget=inploi-chatbot] .right-0\\.5{right:2px}[data-widget=inploi-chatbot] .right-1{right:4px}[data-widget=inploi-chatbot] .right-2{right:8px}[data-widget=inploi-chatbot] .top-0{top:0}[data-widget=inploi-chatbot] .isolate{isolation:isolate}[data-widget=inploi-chatbot] .z-20{z-index:20}[data-widget=inploi-chatbot] .z-50{z-index:50}[data-widget=inploi-chatbot] .m-0{margin:0}[data-widget=inploi-chatbot] .mx-1{margin-left:4px;margin-right:4px}[data-widget=inploi-chatbot] .mx-auto{margin-left:auto;margin-right:auto}[data-widget=inploi-chatbot] .mb-1{margin-bottom:4px}[data-widget=inploi-chatbot] .ml-auto{margin-left:auto}[data-widget=inploi-chatbot] .mt-0\\.5{margin-top:2px}[data-widget=inploi-chatbot] .mt-auto{margin-top:auto}[data-widget=inploi-chatbot] .block{display:block}[data-widget=inploi-chatbot] .inline-block{display:inline-block}[data-widget=inploi-chatbot] .inline{display:inline}[data-widget=inploi-chatbot] .flex{display:flex}[data-widget=inploi-chatbot] .inline-flex{display:inline-flex}[data-widget=inploi-chatbot] .table{display:table}[data-widget=inploi-chatbot] .table-row{display:table-row}[data-widget=inploi-chatbot] .flow-root{display:flow-root}[data-widget=inploi-chatbot] .grid{display:grid}[data-widget=inploi-chatbot] .inline-grid{display:inline-grid}[data-widget=inploi-chatbot] .contents{display:contents}[data-widget=inploi-chatbot] .list-item{display:list-item}[data-widget=inploi-chatbot] .\\!hidden{display:none!important}[data-widget=inploi-chatbot] .hidden{display:none}[data-widget=inploi-chatbot] .size-\\[1lh\\]{width:1lh;height:1lh}[data-widget=inploi-chatbot] .h-1\\.5{height:6px}[data-widget=inploi-chatbot] .h-16{height:64px}[data-widget=inploi-chatbot] .h-4{height:16px}[data-widget=inploi-chatbot] .h-48{height:192px}[data-widget=inploi-chatbot] .h-8{height:32px}[data-widget=inploi-chatbot] .h-\\[3px\\]{height:3px}[data-widget=inploi-chatbot] .h-\\[var\\(--content-height\\)\\]{height:var(--content-height)}[data-widget=inploi-chatbot] .h-\\[var\\(--header-height\\)\\]{height:var(--header-height)}[data-widget=inploi-chatbot] .h-full{height:100%}[data-widget=inploi-chatbot] .max-h-\\[calc\\(100\\%-var\\(--header-height\\)-4rem\\)\\]{max-height:calc(100% - var(--header-height) - 64px)}[data-widget=inploi-chatbot] .max-h-\\[calc\\(8lh\\+1rem\\)\\]{max-height:calc(8lh + 16px)}[data-widget=inploi-chatbot] .max-h-full{max-height:100%}[data-widget=inploi-chatbot] .min-h-0{min-height:0px}[data-widget=inploi-chatbot] .min-h-\\[36px\\]{min-height:36px}[data-widget=inploi-chatbot] .min-h-\\[calc\\(1lh\\+1rem\\)\\]{min-height:calc(1lh + 16px)}[data-widget=inploi-chatbot] .w-1\\.5{width:6px}[data-widget=inploi-chatbot] .w-16{width:64px}[data-widget=inploi-chatbot] .w-24{width:96px}[data-widget=inploi-chatbot] .w-4{width:16px}[data-widget=inploi-chatbot] .w-64{width:256px}[data-widget=inploi-chatbot] .w-8{width:32px}[data-widget=inploi-chatbot] .w-\\[72px\\]{width:72px}[data-widget=inploi-chatbot] .w-full{width:100%}[data-widget=inploi-chatbot] .min-w-0{min-width:0px}[data-widget=inploi-chatbot] .min-w-\\[2rem\\]{min-width:32px}[data-widget=inploi-chatbot] .max-w-\\[450px\\]{max-width:450px}[data-widget=inploi-chatbot] .max-w-\\[min\\(100\\%\\,24rem\\)\\]{max-width:min(100%,384px)}[data-widget=inploi-chatbot] .max-w-\\[min\\(300px\\,calc\\(100vw-4rem\\)\\)\\]{max-width:min(300px,calc(100vw - 64px))}[data-widget=inploi-chatbot] .max-w-\\[var\\(--radix-popover-content-available-width\\)\\]{max-width:var(--radix-popover-content-available-width)}[data-widget=inploi-chatbot] .max-w-full{max-width:100%}[data-widget=inploi-chatbot] .flex-1{flex:1 1 0%}[data-widget=inploi-chatbot] .flex-auto{flex:1 1 auto}[data-widget=inploi-chatbot] .flex-none{flex:none}[data-widget=inploi-chatbot] .flex-shrink{flex-shrink:1}[data-widget=inploi-chatbot] .flex-shrink-0{flex-shrink:0}[data-widget=inploi-chatbot] .shrink{flex-shrink:1}[data-widget=inploi-chatbot] .shrink-0{flex-shrink:0}[data-widget=inploi-chatbot] .flex-grow,[data-widget=inploi-chatbot] .grow{flex-grow:1}[data-widget=inploi-chatbot] .border-collapse{border-collapse:collapse}[data-widget=inploi-chatbot] .-translate-x-1\\/2{--tw-translate-x: -50%;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}[data-widget=inploi-chatbot] .scale-75{--tw-scale-x: .75;--tw-scale-y: .75;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}[data-widget=inploi-chatbot] .transform{transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}@keyframes bounce{0%,to{transform:translateY(-25%);animation-timing-function:cubic-bezier(.8,0,1,1)}50%{transform:none;animation-timing-function:cubic-bezier(0,0,.2,1)}}[data-widget=inploi-chatbot] .animate-bounce{animation:bounce 1s infinite}@keyframes bubble-in{0%{transform:translateY(100%) scale(.8);opacity:0}to{transform:translateY(0) scale(1);opacity:1}}[data-widget=inploi-chatbot] .animate-bubble-in{animation:bubble-in .3s cubic-bezier(.34,1.56,.64,1)}@keyframes maximise{0%{transform:translateY(50%) scaleX(.7)}to{transform:translateY(0)}}[data-widget=inploi-chatbot] .animate-maximise{animation:maximise .4s cubic-bezier(.16,1,.3,1)}@keyframes pulse{50%{opacity:.5}}[data-widget=inploi-chatbot] .animate-pulse{animation:pulse 2s cubic-bezier(.4,0,.6,1) infinite}@keyframes slide-in-bottom{0%{transform:translateY(-100%) scaleX(1.25)}to{transform:translateY(0)}}[data-widget=inploi-chatbot] .animate-slide-in-bottom{animation:slide-in-bottom .3s cubic-bezier(.175,.885,.32,1.275)}[data-widget=inploi-chatbot] .cursor-pointer{cursor:pointer}[data-widget=inploi-chatbot] .select-none{-webkit-user-select:none;-moz-user-select:none;user-select:none}[data-widget=inploi-chatbot] .select-text{-webkit-user-select:text;-moz-user-select:text;user-select:text}[data-widget=inploi-chatbot] .resize-y{resize:vertical}[data-widget=inploi-chatbot] .resize{resize:both}[data-widget=inploi-chatbot] .scroll-pb-12{scroll-padding-bottom:48px}[data-widget=inploi-chatbot] .appearance-none{-webkit-appearance:none;-moz-appearance:none;appearance:none}[data-widget=inploi-chatbot] .flex-col{flex-direction:column}[data-widget=inploi-chatbot] .flex-wrap{flex-wrap:wrap}[data-widget=inploi-chatbot] .items-start{align-items:flex-start}[data-widget=inploi-chatbot] .items-center{align-items:center}[data-widget=inploi-chatbot] .items-stretch{align-items:stretch}[data-widget=inploi-chatbot] .justify-end{justify-content:flex-end}[data-widget=inploi-chatbot] .justify-center{justify-content:center}[data-widget=inploi-chatbot] .gap-0{gap:0px}[data-widget=inploi-chatbot] .gap-1{gap:4px}[data-widget=inploi-chatbot] .gap-1\\.5{gap:6px}[data-widget=inploi-chatbot] .gap-2{gap:8px}[data-widget=inploi-chatbot] .gap-2\\.5{gap:10px}[data-widget=inploi-chatbot] .gap-3{gap:12px}[data-widget=inploi-chatbot] .gap-4{gap:16px}[data-widget=inploi-chatbot] .self-center{align-self:center}[data-widget=inploi-chatbot] .overflow-hidden{overflow:hidden}[data-widget=inploi-chatbot] .overflow-y-auto{overflow-y:auto}[data-widget=inploi-chatbot] .overscroll-contain{overscroll-behavior:contain}[data-widget=inploi-chatbot] .truncate{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}[data-widget=inploi-chatbot] .text-ellipsis{text-overflow:ellipsis}[data-widget=inploi-chatbot] .whitespace-nowrap{white-space:nowrap}[data-widget=inploi-chatbot] .text-balance{text-wrap:balance}[data-widget=inploi-chatbot] .text-pretty{text-wrap:pretty}[data-widget=inploi-chatbot] .break-words{overflow-wrap:break-word}[data-widget=inploi-chatbot] .rounded{border-radius:4px}[data-widget=inploi-chatbot] .rounded-2xl{border-radius:16px}[data-widget=inploi-chatbot] .rounded-3xl{border-radius:24px}[data-widget=inploi-chatbot] .rounded-\\[18px\\]{border-radius:18px}[data-widget=inploi-chatbot] .rounded-full{border-radius:9999px}[data-widget=inploi-chatbot] .rounded-lg{border-radius:8px}[data-widget=inploi-chatbot] .rounded-md{border-radius:6px}[data-widget=inploi-chatbot] .rounded-xl{border-radius:12px}[data-widget=inploi-chatbot] .rounded-l-full{border-top-left-radius:9999px;border-bottom-left-radius:9999px}[data-widget=inploi-chatbot] .rounded-r-full{border-top-right-radius:9999px;border-bottom-right-radius:9999px}[data-widget=inploi-chatbot] .rounded-t-3xl{border-top-left-radius:24px;border-top-right-radius:24px}[data-widget=inploi-chatbot] .rounded-bl-md{border-bottom-left-radius:6px}[data-widget=inploi-chatbot] .rounded-br-md{border-bottom-right-radius:6px}[data-widget=inploi-chatbot] .border{border-width:1px}[data-widget=inploi-chatbot] .border-b{border-bottom-width:1px}[data-widget=inploi-chatbot] .border-t{border-top-width:1px}[data-widget=inploi-chatbot] .border-solid{border-style:solid}[data-widget=inploi-chatbot] .border-dashed{border-style:dashed}[data-widget=inploi-chatbot] .border-accent-9{border-color:var(--i-color-a-9)}[data-widget=inploi-chatbot] .border-divider{border-color:var(--i-color-divider)}[data-widget=inploi-chatbot] .border-neutral-5{border-color:var(--i-color-n-5)}[data-widget=inploi-chatbot] .border-neutral-8{border-color:var(--i-color-n-8)}[data-widget=inploi-chatbot] .border-transparent{border-color:transparent}[data-widget=inploi-chatbot] .border-b-neutral-3{border-bottom-color:var(--i-color-n-3)}[data-widget=inploi-chatbot] .border-b-neutral-5{border-bottom-color:var(--i-color-n-5)}[data-widget=inploi-chatbot] .border-b-transparent{border-bottom-color:transparent}[data-widget=inploi-chatbot] .bg-accent-1{background-color:var(--i-color-a-1)}[data-widget=inploi-chatbot] .bg-accent-3{background-color:var(--i-color-a-3)}[data-widget=inploi-chatbot] .bg-accent-9{background-color:var(--i-color-a-9)}[data-widget=inploi-chatbot] .bg-bubble-weak-bg{background-color:var(--i-bubble-weak-bg)}[data-widget=inploi-chatbot] .bg-lowest{background-color:var(--i-color-lowest)}[data-widget=inploi-chatbot] .bg-neutral-1{background-color:var(--i-color-n-1)}[data-widget=inploi-chatbot] .bg-neutral-2{background-color:var(--i-color-n-2)}[data-widget=inploi-chatbot] .bg-neutral-3{background-color:var(--i-color-n-3)}[data-widget=inploi-chatbot] .bg-statusbar{background-color:var(--i-status-bar-bg)}[data-widget=inploi-chatbot] .bg-transparent{background-color:transparent}[data-widget=inploi-chatbot] .bg-none{background-image:none}[data-widget=inploi-chatbot] .p-1{padding:4px}[data-widget=inploi-chatbot] .p-1\\.5{padding:6px}[data-widget=inploi-chatbot] .p-10{padding:40px}[data-widget=inploi-chatbot] .p-11{padding:44px}[data-widget=inploi-chatbot] .p-12{padding:48px}[data-widget=inploi-chatbot] .p-2{padding:8px}[data-widget=inploi-chatbot] .p-2\\.5{padding:10px}[data-widget=inploi-chatbot] .p-3{padding:12px}[data-widget=inploi-chatbot] .p-4{padding:16px}[data-widget=inploi-chatbot] .p-5{padding:20px}[data-widget=inploi-chatbot] .p-6{padding:24px}[data-widget=inploi-chatbot] .p-7{padding:28px}[data-widget=inploi-chatbot] .p-8{padding:32px}[data-widget=inploi-chatbot] .p-9{padding:36px}[data-widget=inploi-chatbot] .px-0\\.5{padding-left:2px;padding-right:2px}[data-widget=inploi-chatbot] .px-1{padding-left:4px;padding-right:4px}[data-widget=inploi-chatbot] .px-1\\.5{padding-left:6px;padding-right:6px}[data-widget=inploi-chatbot] .px-2{padding-left:8px;padding-right:8px}[data-widget=inploi-chatbot] .px-3{padding-left:12px;padding-right:12px}[data-widget=inploi-chatbot] .px-4{padding-left:16px;padding-right:16px}[data-widget=inploi-chatbot] .px-5{padding-left:20px;padding-right:20px}[data-widget=inploi-chatbot] .py-0\\.5{padding-top:2px;padding-bottom:2px}[data-widget=inploi-chatbot] .py-1{padding-top:4px;padding-bottom:4px}[data-widget=inploi-chatbot] .py-1\\.5{padding-top:6px;padding-bottom:6px}[data-widget=inploi-chatbot] .py-2{padding-top:8px;padding-bottom:8px}[data-widget=inploi-chatbot] .py-2\\.5{padding-top:10px;padding-bottom:10px}[data-widget=inploi-chatbot] .py-3{padding-top:12px;padding-bottom:12px}[data-widget=inploi-chatbot] .pb-2{padding-bottom:8px}[data-widget=inploi-chatbot] .pb-6{padding-bottom:24px}[data-widget=inploi-chatbot] .pl-1\\.5{padding-left:6px}[data-widget=inploi-chatbot] .pl-2{padding-left:8px}[data-widget=inploi-chatbot] .pl-2\\.5{padding-left:10px}[data-widget=inploi-chatbot] .pl-3{padding-left:12px}[data-widget=inploi-chatbot] .pl-4{padding-left:16px}[data-widget=inploi-chatbot] .pr-1{padding-right:4px}[data-widget=inploi-chatbot] .pr-16{padding-right:64px}[data-widget=inploi-chatbot] .pr-2\\.5{padding-right:10px}[data-widget=inploi-chatbot] .pr-3{padding-right:12px}[data-widget=inploi-chatbot] .pr-4{padding-right:16px}[data-widget=inploi-chatbot] .pt-2{padding-top:8px}[data-widget=inploi-chatbot] .pt-2\\.5{padding-top:10px}[data-widget=inploi-chatbot] .pt-3{padding-top:12px}[data-widget=inploi-chatbot] .pt-5{padding-top:20px}[data-widget=inploi-chatbot] .pt-\\[calc\\(var\\(--header-height\\)\\+1rem\\)\\]{padding-top:calc(var(--header-height) + 16px)}[data-widget=inploi-chatbot] .text-center{text-align:center}[data-widget=inploi-chatbot] .text-justify{text-align:justify}[data-widget=inploi-chatbot] .text-\\[10px\\]{font-size:10px}[data-widget=inploi-chatbot] .text-\\[11px\\]{font-size:11px}[data-widget=inploi-chatbot] .text-base{font-size:16px;line-height:24px}[data-widget=inploi-chatbot] .text-sm{font-size:14px;line-height:20px}[data-widget=inploi-chatbot] .text-xs{font-size:12px;line-height:16px}[data-widget=inploi-chatbot] .font-bold{font-weight:700}[data-widget=inploi-chatbot] .font-medium{font-weight:500}[data-widget=inploi-chatbot] .font-semibold{font-weight:600}[data-widget=inploi-chatbot] .uppercase{text-transform:uppercase}[data-widget=inploi-chatbot] .lowercase{text-transform:lowercase}[data-widget=inploi-chatbot] .capitalize{text-transform:capitalize}[data-widget=inploi-chatbot] .italic{font-style:italic}[data-widget=inploi-chatbot] .ordinal{--tw-ordinal: ordinal;font-variant-numeric:var(--tw-ordinal) var(--tw-slashed-zero) var(--tw-numeric-figure) var(--tw-numeric-spacing) var(--tw-numeric-fraction)}[data-widget=inploi-chatbot] .leading-3{line-height:12px}[data-widget=inploi-chatbot] .leading-snug{line-height:1.375}[data-widget=inploi-chatbot] .leading-tight{line-height:1.25}[data-widget=inploi-chatbot] .tracking-\\[-0\\.01em\\]{letter-spacing:-.01em}[data-widget=inploi-chatbot] .tracking-tight{letter-spacing:-.025em}[data-widget=inploi-chatbot] .tracking-wide{letter-spacing:.025em}[data-widget=inploi-chatbot] .tracking-widest{letter-spacing:.1em}[data-widget=inploi-chatbot] .text-\\[\\#4CAF50\\]{--tw-text-opacity: 1;color:rgb(76 175 80 / var(--tw-text-opacity, 1))}[data-widget=inploi-chatbot] .text-\\[\\#FFC107\\]{--tw-text-opacity: 1;color:rgb(255 193 7 / var(--tw-text-opacity, 1))}[data-widget=inploi-chatbot] .text-accent-1{color:var(--i-color-a-1)}[data-widget=inploi-chatbot] .text-accent-10{color:var(--i-color-a-10)}[data-widget=inploi-chatbot] .text-accent-11{color:var(--i-color-a-11)}[data-widget=inploi-chatbot] .text-accent-12{color:var(--i-color-a-12)}[data-widget=inploi-chatbot] .text-accent-9{color:var(--i-color-a-9)}[data-widget=inploi-chatbot] .text-error-11{color:var(--i-color-e-11)}[data-widget=inploi-chatbot] .text-error-9{color:var(--i-color-e-9)}[data-widget=inploi-chatbot] .text-neutral-10{color:var(--i-color-n-10)}[data-widget=inploi-chatbot] .text-neutral-11{color:var(--i-color-n-11)}[data-widget=inploi-chatbot] .text-neutral-12{color:var(--i-color-n-12)}[data-widget=inploi-chatbot] .text-neutral-6{color:var(--i-color-n-6)}[data-widget=inploi-chatbot] .text-neutral-8{color:var(--i-color-n-8)}[data-widget=inploi-chatbot] .text-neutral-9{color:var(--i-color-n-9)}[data-widget=inploi-chatbot] .text-white{--tw-text-opacity: 1;color:rgb(255 255 255 / var(--tw-text-opacity, 1))}[data-widget=inploi-chatbot] .text-white\\/80{color:#fffc}[data-widget=inploi-chatbot] .underline{text-decoration-line:underline}[data-widget=inploi-chatbot] .no-underline{text-decoration-line:none}[data-widget=inploi-chatbot] .underline-offset-2{text-underline-offset:2px}[data-widget=inploi-chatbot] .underline-offset-4{text-underline-offset:4px}[data-widget=inploi-chatbot] .caret-accent-9{caret-color:var(--i-color-a-9)}[data-widget=inploi-chatbot] .opacity-0{opacity:0}[data-widget=inploi-chatbot] .shadow{--tw-shadow: 0 1px 3px 0 rgb(0 0 0 / .1), 0 1px 2px -1px rgb(0 0 0 / .1);--tw-shadow-colored: 0 1px 3px 0 var(--tw-shadow-color), 0 1px 2px -1px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow)}[data-widget=inploi-chatbot] .shadow-\\[0_0_0_1px\\]{--tw-shadow: 0 0 0 1px;--tw-shadow-colored: 0 0 0 1px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow)}[data-widget=inploi-chatbot] .shadow-surface-lg{--tw-shadow: 0px 3px 3px 0px oklch(0% 0 0 / .03), 0px 6px 4px 0px oklch(0% 0 0 / .02), 0px 11px 4px 0px oklch(0% 0 0 / .01), 0px 32px 24px -12px oklch(0% 0 0 / .06);--tw-shadow-colored: 0px 3px 3px 0px var(--tw-shadow-color), 0px 6px 4px 0px var(--tw-shadow-color), 0px 11px 4px 0px var(--tw-shadow-color), 0px 32px 24px -12px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow)}[data-widget=inploi-chatbot] .shadow-surface-md{--tw-shadow: 0px 3px 3px 0px oklch(0% 0 0 / .03), 0px 6px 4px 0px oklch(0% 0 0 / .02), 0px 6px 4px 0px oklch(0% 0 0 / .01);--tw-shadow-colored: 0px 3px 3px 0px var(--tw-shadow-color), 0px 6px 4px 0px var(--tw-shadow-color), 0px 6px 4px 0px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow)}[data-widget=inploi-chatbot] .shadow-surface-sm{--tw-shadow: 0px 3px 3px 0px oklch(0% 0 0 / .03), 0px 4px 4px 0px oklch(0% 0 0 / .02);--tw-shadow-colored: 0px 3px 3px 0px var(--tw-shadow-color), 0px 4px 4px 0px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow)}[data-widget=inploi-chatbot] .shadow-bubble-strong-shadow{--tw-shadow-color: var(--i-bubble-strong-shadow);--tw-shadow: var(--tw-shadow-colored)}[data-widget=inploi-chatbot] .outline-none{outline:2px solid transparent;outline-offset:2px}[data-widget=inploi-chatbot] .outline{outline-style:solid}[data-widget=inploi-chatbot] .outline-1{outline-width:1px}[data-widget=inploi-chatbot] .outline-2{outline-width:2px}[data-widget=inploi-chatbot] .outline-accent-10{outline-color:var(--i-color-a-10)}[data-widget=inploi-chatbot] .outline-accent-4{outline-color:var(--i-color-a-4)}[data-widget=inploi-chatbot] .outline-bubble-weak{outline-color:var(--i-bubble-weak-outline)}[data-widget=inploi-chatbot] .outline-divider{outline-color:var(--i-color-divider)}[data-widget=inploi-chatbot] .outline-neutral-3{outline-color:var(--i-color-n-3)}[data-widget=inploi-chatbot] .outline-neutral-6{outline-color:var(--i-color-n-6)}[data-widget=inploi-chatbot] .ring-0{--tw-ring-offset-shadow: var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);--tw-ring-shadow: var(--tw-ring-inset) 0 0 0 calc(0px + var(--tw-ring-offset-width)) var(--tw-ring-color);box-shadow:var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow, 0 0 #0000)}[data-widget=inploi-chatbot] .ring-1{--tw-ring-offset-shadow: var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);--tw-ring-shadow: var(--tw-ring-inset) 0 0 0 calc(1px + var(--tw-ring-offset-width)) var(--tw-ring-color);box-shadow:var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow, 0 0 #0000)}[data-widget=inploi-chatbot] .ring-2{--tw-ring-offset-shadow: var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);--tw-ring-shadow: var(--tw-ring-inset) 0 0 0 calc(2px + var(--tw-ring-offset-width)) var(--tw-ring-color);box-shadow:var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow, 0 0 #0000)}[data-widget=inploi-chatbot] .ring-inset{--tw-ring-inset: inset}[data-widget=inploi-chatbot] .ring-accent-6{--tw-ring-color: var(--i-color-a-6)}[data-widget=inploi-chatbot] .ring-divider{--tw-ring-color: var(--i-color-divider)}[data-widget=inploi-chatbot] .ring-lowest{--tw-ring-color: var(--i-color-lowest)}[data-widget=inploi-chatbot] .ring-neutral-4{--tw-ring-color: var(--i-color-n-4)}[data-widget=inploi-chatbot] .ring-neutral-5{--tw-ring-color: var(--i-color-n-5)}[data-widget=inploi-chatbot] .ring-neutral-7{--tw-ring-color: var(--i-color-n-7)}[data-widget=inploi-chatbot] .ring-transparent{--tw-ring-color: transparent}[data-widget=inploi-chatbot] .ring-offset-\\[1\\.5px\\]{--tw-ring-offset-width: 1.5px}[data-widget=inploi-chatbot] .ring-offset-neutral-1{--tw-ring-offset-color: var(--i-color-n-1)}[data-widget=inploi-chatbot] .blur{--tw-blur: blur(8px);filter:var(--tw-blur) var(--tw-brightness) var(--tw-contrast) var(--tw-grayscale) var(--tw-hue-rotate) var(--tw-invert) var(--tw-saturate) var(--tw-sepia) var(--tw-drop-shadow)}[data-widget=inploi-chatbot] .drop-shadow-\\[0_1\\.5px_var\\(--i-color-n-1\\)\\]{--tw-drop-shadow: drop-shadow(0 1.5px var(--i-color-n-1));filter:var(--tw-blur) var(--tw-brightness) var(--tw-contrast) var(--tw-grayscale) var(--tw-hue-rotate) var(--tw-invert) var(--tw-saturate) var(--tw-sepia) var(--tw-drop-shadow)}[data-widget=inploi-chatbot] .grayscale{--tw-grayscale: grayscale(100%);filter:var(--tw-blur) var(--tw-brightness) var(--tw-contrast) var(--tw-grayscale) var(--tw-hue-rotate) var(--tw-invert) var(--tw-saturate) var(--tw-sepia) var(--tw-drop-shadow)}[data-widget=inploi-chatbot] .invert{--tw-invert: invert(100%);filter:var(--tw-blur) var(--tw-brightness) var(--tw-contrast) var(--tw-grayscale) var(--tw-hue-rotate) var(--tw-invert) var(--tw-saturate) var(--tw-sepia) var(--tw-drop-shadow)}[data-widget=inploi-chatbot] .sepia{--tw-sepia: sepia(100%);filter:var(--tw-blur) var(--tw-brightness) var(--tw-contrast) var(--tw-grayscale) var(--tw-hue-rotate) var(--tw-invert) var(--tw-saturate) var(--tw-sepia) var(--tw-drop-shadow)}[data-widget=inploi-chatbot] .filter{filter:var(--tw-blur) var(--tw-brightness) var(--tw-contrast) var(--tw-grayscale) var(--tw-hue-rotate) var(--tw-invert) var(--tw-saturate) var(--tw-sepia) var(--tw-drop-shadow)}[data-widget=inploi-chatbot] .backdrop-blur-md{--tw-backdrop-blur: blur(12px);-webkit-backdrop-filter:var(--tw-backdrop-blur) var(--tw-backdrop-brightness) var(--tw-backdrop-contrast) var(--tw-backdrop-grayscale) var(--tw-backdrop-hue-rotate) var(--tw-backdrop-invert) var(--tw-backdrop-opacity) var(--tw-backdrop-saturate) var(--tw-backdrop-sepia);backdrop-filter:var(--tw-backdrop-blur) var(--tw-backdrop-brightness) var(--tw-backdrop-contrast) var(--tw-backdrop-grayscale) var(--tw-backdrop-hue-rotate) var(--tw-backdrop-invert) var(--tw-backdrop-opacity) var(--tw-backdrop-saturate) var(--tw-backdrop-sepia)}[data-widget=inploi-chatbot] .backdrop-saturate-150{--tw-backdrop-saturate: saturate(1.5);-webkit-backdrop-filter:var(--tw-backdrop-blur) var(--tw-backdrop-brightness) var(--tw-backdrop-contrast) var(--tw-backdrop-grayscale) var(--tw-backdrop-hue-rotate) var(--tw-backdrop-invert) var(--tw-backdrop-opacity) var(--tw-backdrop-saturate) var(--tw-backdrop-sepia);backdrop-filter:var(--tw-backdrop-blur) var(--tw-backdrop-brightness) var(--tw-backdrop-contrast) var(--tw-backdrop-grayscale) var(--tw-backdrop-hue-rotate) var(--tw-backdrop-invert) var(--tw-backdrop-opacity) var(--tw-backdrop-saturate) var(--tw-backdrop-sepia)}[data-widget=inploi-chatbot] .backdrop-filter{-webkit-backdrop-filter:var(--tw-backdrop-blur) var(--tw-backdrop-brightness) var(--tw-backdrop-contrast) var(--tw-backdrop-grayscale) var(--tw-backdrop-hue-rotate) var(--tw-backdrop-invert) var(--tw-backdrop-opacity) var(--tw-backdrop-saturate) var(--tw-backdrop-sepia);backdrop-filter:var(--tw-backdrop-blur) var(--tw-backdrop-brightness) var(--tw-backdrop-contrast) var(--tw-backdrop-grayscale) var(--tw-backdrop-hue-rotate) var(--tw-backdrop-invert) var(--tw-backdrop-opacity) var(--tw-backdrop-saturate) var(--tw-backdrop-sepia)}[data-widget=inploi-chatbot] .transition{transition-property:color,background-color,border-color,text-decoration-color,fill,stroke,opacity,box-shadow,transform,filter,backdrop-filter;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s}[data-widget=inploi-chatbot] .transition-\\[background\\,color\\,border-color\\,box-shadow\\]{transition-property:background,color,border-color,box-shadow;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s}[data-widget=inploi-chatbot] .transition-all{transition-property:all;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s}[data-widget=inploi-chatbot] .transition-colors{transition-property:color,background-color,border-color,text-decoration-color,fill,stroke;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s}[data-widget=inploi-chatbot] .transition-transform{transition-property:transform;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s}[data-widget=inploi-chatbot] .duration-100{transition-duration:.1s}[data-widget=inploi-chatbot] .duration-1000{transition-duration:1s}[data-widget=inploi-chatbot] .duration-300{transition-duration:.3s}[data-widget=inploi-chatbot] .ease-expo-out{transition-timing-function:cubic-bezier(.16,1,.3,1)}[data-widget=inploi-chatbot] .ease-in-out{transition-timing-function:cubic-bezier(.4,0,.2,1)}[data-widget=inploi-chatbot] .will-change-\\[transform\\,opacity\\]{will-change:transform,opacity}[data-widget=inploi-chatbot] .text-wrap-balance{text-wrap:balance}[data-widget=inploi-chatbot] .fr{outline:none}[data-widget=inploi-chatbot] .fr:focus{outline:none}[data-widget=inploi-chatbot] .fr:focus-visible{outline:none;--tw-ring-offset-width: 1px;--tw-ring-offset-color: var(--i-color-lowest);--tw-ring-opacity: 1;--tw-ring-color: var(--i-color-a-9);--tw-ring-shadow: var(--tw-ring-inset) 0 0 0 calc(2px + var(--tw-ring-offset-width)) var(--tw-ring-color);box-shadow:var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow, 0 0 #0000)}[data-widget=inploi-chatbot] .gutter-stable{scrollbar-gutter:stable}[data-widget=inploi-chatbot] .hide-scrollbars::-webkit-scrollbar{display:none}[data-widget=inploi-chatbot] .hide-scrollbars{scrollbar-width:none;-ms-overflow-style:none}[data-widget=inploi-chatbot] .touch-hitbox:before{content:"";position:absolute;display:block;top:50%;left:50%;transform:translate(-50%,-50%);width:100%;height:100%;min-height:44px;min-width:44px;z-index:9999}[data-widget=inploi-chatbot] .\\[-webkit-outer-spin-button\\:none\\]{-webkit-outer-spin-button:none}[data-widget=inploi-chatbot] .\\[a-zA-Z0-9-_\\:\\.\\$\\@\\?\\]{a-z-a--z0-9-_:.$@?}[data-widget=inploi-chatbot] .\\[grid-template-columns\\:min-content_1fr\\]{grid-template-columns:min-content 1fr}[data-widget=inploi-chatbot] .\\[text-wrap\\:pretty\\]{text-wrap:pretty}[data-widget=inploi-chatbot] .selection\\:bg-accent-4 *::-moz-selection{background-color:var(--i-color-a-4)}[data-widget=inploi-chatbot] .selection\\:bg-accent-4 *::selection{background-color:var(--i-color-a-4)}[data-widget=inploi-chatbot] .selection\\:bg-transparent *::-moz-selection{background-color:transparent}[data-widget=inploi-chatbot] .selection\\:bg-transparent *::selection{background-color:transparent}[data-widget=inploi-chatbot] .selection\\:text-accent-12 *::-moz-selection{color:var(--i-color-a-12)}[data-widget=inploi-chatbot] .selection\\:text-accent-12 *::selection{color:var(--i-color-a-12)}[data-widget=inploi-chatbot] .selection\\:bg-accent-4::-moz-selection{background-color:var(--i-color-a-4)}[data-widget=inploi-chatbot] .selection\\:bg-accent-4::selection{background-color:var(--i-color-a-4)}[data-widget=inploi-chatbot] .selection\\:bg-transparent::-moz-selection{background-color:transparent}[data-widget=inploi-chatbot] .selection\\:bg-transparent::selection{background-color:transparent}[data-widget=inploi-chatbot] .selection\\:text-accent-12::-moz-selection{color:var(--i-color-a-12)}[data-widget=inploi-chatbot] .selection\\:text-accent-12::selection{color:var(--i-color-a-12)}[data-widget=inploi-chatbot] .placeholder\\:text-neutral-10::-moz-placeholder{color:var(--i-color-n-10)}[data-widget=inploi-chatbot] .placeholder\\:text-neutral-10::placeholder{color:var(--i-color-n-10)}[data-widget=inploi-chatbot] .placeholder\\:text-neutral-8::-moz-placeholder{color:var(--i-color-n-8)}[data-widget=inploi-chatbot] .placeholder\\:text-neutral-8::placeholder{color:var(--i-color-n-8)}[data-widget=inploi-chatbot] .first-of-type\\:rounded-l-lg:first-of-type{border-top-left-radius:8px;border-bottom-left-radius:8px}[data-widget=inploi-chatbot] .last-of-type\\:rounded-r-lg:last-of-type{border-top-right-radius:8px;border-bottom-right-radius:8px}[data-widget=inploi-chatbot] .autofill\\:shadow-\\[inset_0_0_0_1000px_hsl\\(210_16\\.7\\%_97\\.6\\%\\)\\]:-webkit-autofill{--tw-shadow: inset 0 0 0 1000px hsl(210 16.7% 97.6%);--tw-shadow-colored: inset 0 0 0 1000px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow)}[data-widget=inploi-chatbot] .autofill\\:shadow-\\[inset_0_0_0_1000px_hsl\\(210_16\\.7\\%_97\\.6\\%\\)\\]:autofill{--tw-shadow: inset 0 0 0 1000px hsl(210 16.7% 97.6%);--tw-shadow-colored: inset 0 0 0 1000px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow)}[data-widget=inploi-chatbot] .autofill\\:shadow-\\[inset_0_0_0_1000px_var\\(--i-color-a-2\\)\\]:-webkit-autofill{--tw-shadow: inset 0 0 0 1000px var(--i-color-a-2);--tw-shadow-colored: inset 0 0 0 1000px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow)}[data-widget=inploi-chatbot] .autofill\\:shadow-\\[inset_0_0_0_1000px_var\\(--i-color-a-2\\)\\]:autofill{--tw-shadow: inset 0 0 0 1000px var(--i-color-a-2);--tw-shadow-colored: inset 0 0 0 1000px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow)}[data-widget=inploi-chatbot] .autofill\\:\\[-webkit-text-fill-color\\:var\\(--i-color-a-11\\)\\]:-webkit-autofill{-webkit-text-fill-color:var(--i-color-a-11)}[data-widget=inploi-chatbot] .autofill\\:\\[-webkit-text-fill-color\\:var\\(--i-color-a-11\\)\\]:autofill{-webkit-text-fill-color:var(--i-color-a-11)}[data-widget=inploi-chatbot] .focus-within\\:bg-neutral-5:focus-within{background-color:var(--i-color-n-5)}[data-widget=inploi-chatbot] .focus-within\\:outline-none:focus-within{outline:2px solid transparent;outline-offset:2px}[data-widget=inploi-chatbot] .focus-within\\:outline-accent-7:focus-within{outline-color:var(--i-color-a-7)}[data-widget=inploi-chatbot] .hover\\:z-10:hover{z-index:10}[data-widget=inploi-chatbot] .hover\\:scale-\\[1\\.02\\]:hover{--tw-scale-x: 1.02;--tw-scale-y: 1.02;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}[data-widget=inploi-chatbot] .hover\\:border-accent-10:hover{border-color:var(--i-color-a-10)}[data-widget=inploi-chatbot] .hover\\:border-neutral-5:hover{border-color:var(--i-color-n-5)}[data-widget=inploi-chatbot] .hover\\:bg-accent-10:hover{background-color:var(--i-color-a-10)}[data-widget=inploi-chatbot] .hover\\:bg-divider:hover{background-color:var(--i-color-divider)}[data-widget=inploi-chatbot] .hover\\:bg-interactive-bg-hover:hover{background-color:var(--i-interactive-bg-hover)}[data-widget=inploi-chatbot] .hover\\:bg-neutral-2:hover{background-color:var(--i-color-n-2)}[data-widget=inploi-chatbot] .hover\\:bg-neutral-3:hover{background-color:var(--i-color-n-3)}[data-widget=inploi-chatbot] .hover\\:bg-neutral-4:hover{background-color:var(--i-color-n-4)}[data-widget=inploi-chatbot] .hover\\:bg-neutral-5:hover{background-color:var(--i-color-n-5)}[data-widget=inploi-chatbot] .hover\\:bg-white\\/20:hover{background-color:#fff3}[data-widget=inploi-chatbot] .hover\\:text-accent-11:hover{color:var(--i-color-a-11)}[data-widget=inploi-chatbot] .hover\\:text-neutral-12:hover{color:var(--i-color-n-12)}[data-widget=inploi-chatbot] .hover\\:text-white:hover{--tw-text-opacity: 1;color:rgb(255 255 255 / var(--tw-text-opacity, 1))}[data-widget=inploi-chatbot] .hover\\:underline:hover{text-decoration-line:underline}[data-widget=inploi-chatbot] .hover\\:ring-accent-8:hover{--tw-ring-color: var(--i-color-a-8)}[data-widget=inploi-chatbot] .hover\\:ring-divider:hover{--tw-ring-color: var(--i-color-divider)}[data-widget=inploi-chatbot] .focus\\:z-20:focus{z-index:20}[data-widget=inploi-chatbot] .focus\\:bg-neutral-5:focus{background-color:var(--i-color-n-5)}[data-widget=inploi-chatbot] .focus\\:shadow-\\[0_0_0_2px\\]:focus{--tw-shadow: 0 0 0 2px;--tw-shadow-colored: 0 0 0 2px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow)}[data-widget=inploi-chatbot] .focus\\:outline-none:focus{outline:2px solid transparent;outline-offset:2px}[data-widget=inploi-chatbot] .autofill\\:focus\\:shadow-\\[inset_0_0_0_1000px_var\\(--i-color-a-1\\)\\]:focus:-webkit-autofill{--tw-shadow: inset 0 0 0 1000px var(--i-color-a-1);--tw-shadow-colored: inset 0 0 0 1000px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow)}[data-widget=inploi-chatbot] .autofill\\:focus\\:shadow-\\[inset_0_0_0_1000px_var\\(--i-color-a-1\\)\\]:focus:autofill{--tw-shadow: inset 0 0 0 1000px var(--i-color-a-1);--tw-shadow-colored: inset 0 0 0 1000px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow)}[data-widget=inploi-chatbot] .focus-visible\\:bg-neutral-3:focus-visible{background-color:var(--i-color-n-3)}[data-widget=inploi-chatbot] .focus-visible\\:outline-none:focus-visible{outline:2px solid transparent;outline-offset:2px}[data-widget=inploi-chatbot] .focus-visible\\:outline-2:focus-visible{outline-width:2px}[data-widget=inploi-chatbot] .focus-visible\\:outline-accent-7:focus-visible{outline-color:var(--i-color-a-7)}[data-widget=inploi-chatbot] .focus-visible\\:outline-accent-8:focus-visible{outline-color:var(--i-color-a-8)}[data-widget=inploi-chatbot] .focus-visible\\:ring-4:focus-visible{--tw-ring-offset-shadow: var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);--tw-ring-shadow: var(--tw-ring-inset) 0 0 0 calc(4px + var(--tw-ring-offset-width)) var(--tw-ring-color);box-shadow:var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow, 0 0 #0000)}[data-widget=inploi-chatbot] .focus-visible\\:ring-offset-2:focus-visible{--tw-ring-offset-width: 2px}[data-widget=inploi-chatbot] .active\\:scale-\\[\\.97\\]:active{--tw-scale-x: .97;--tw-scale-y: .97;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}[data-widget=inploi-chatbot] .active\\:border-submit-bg-active:active{border-color:var(--i-submit-button-bg-active)}[data-widget=inploi-chatbot] .active\\:bg-accent-10:active{background-color:var(--i-color-a-10)}[data-widget=inploi-chatbot] .active\\:bg-accent-2:active{background-color:var(--i-color-a-2)}[data-widget=inploi-chatbot] .active\\:bg-interactive-bg-active:active{background-color:var(--i-interactive-bg-active)}[data-widget=inploi-chatbot] .active\\:bg-interactive-bg-hover:active{background-color:var(--i-interactive-bg-hover)}[data-widget=inploi-chatbot] .active\\:bg-submit-bg-active:active{background-color:var(--i-submit-button-bg-active)}[data-widget=inploi-chatbot] .active\\:bg-white\\/30:active{background-color:#ffffff4d}[data-widget=inploi-chatbot] .active\\:text-accent-10:active{color:var(--i-color-a-10)}[data-widget=inploi-chatbot] .active\\:text-accent-11:active{color:var(--i-color-a-11)}[data-widget=inploi-chatbot] .active\\:text-neutral-12:active{color:var(--i-color-n-12)}[data-widget=inploi-chatbot] .active\\:text-white:active{--tw-text-opacity: 1;color:rgb(255 255 255 / var(--tw-text-opacity, 1))}[data-widget=inploi-chatbot] .active\\:outline-neutral-8:active{outline-color:var(--i-color-n-8)}[data-widget=inploi-chatbot] .active\\:ring-2:active{--tw-ring-offset-shadow: var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);--tw-ring-shadow: var(--tw-ring-inset) 0 0 0 calc(2px + var(--tw-ring-offset-width)) var(--tw-ring-color);box-shadow:var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow, 0 0 #0000)}[data-widget=inploi-chatbot] .active\\:ring-accent-7:active{--tw-ring-color: var(--i-color-a-7)}[data-widget=inploi-chatbot] .active\\:ring-interactive-bg-hover:active{--tw-ring-color: var(--i-interactive-bg-hover)}[data-widget=inploi-chatbot] .active\\:ring-offset-2:active{--tw-ring-offset-width: 2px}[data-widget=inploi-chatbot] .disabled\\:cursor-not-allowed:disabled{cursor:not-allowed}[data-widget=inploi-chatbot] .disabled\\:opacity-50:disabled{opacity:.5}[data-widget=inploi-chatbot] .peer:checked~.peer-checked\\:bg-accent-2{background-color:var(--i-color-a-2)}[data-widget=inploi-chatbot] .peer:checked~.peer-checked\\:text-accent-9{color:var(--i-color-a-9)}[data-widget=inploi-chatbot] .peer:checked~.peer-checked\\:outline-accent-7{outline-color:var(--i-color-a-7)}[data-widget=inploi-chatbot] .peer:focus-visible~.peer-focus-visible\\:ring-4{--tw-ring-offset-shadow: var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);--tw-ring-shadow: var(--tw-ring-inset) 0 0 0 calc(4px + var(--tw-ring-offset-width)) var(--tw-ring-color);box-shadow:var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow, 0 0 #0000)}[data-widget=inploi-chatbot] .peer:focus-visible~.peer-focus-visible\\:ring-accent-9{--tw-ring-color: var(--i-color-a-9)}[data-widget=inploi-chatbot] .peer:focus-visible~.peer-focus-visible\\:ring-offset-accent-7{--tw-ring-offset-color: var(--i-color-a-7)}[data-widget=inploi-chatbot] .group[aria-pressed=true] .group-aria-\\[pressed\\=true\\]\\:scale-100{--tw-scale-x: 1;--tw-scale-y: 1;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}@media (pointer: coarse){[data-widget=inploi-chatbot] .pointer-coarse\\:touch-hitbox\\:\\:before:before{content:"";position:absolute;display:block;top:50%;left:50%;transform:translate(-50%,-50%);width:100%;height:100%;min-height:44px;min-width:44px;z-index:9999}}[data-widget=inploi-chatbot] .\\[\\&\\:has\\(\\+\\*\\>input\\:focus\\)\\]\\:text-neutral-11:has(+*>input:focus){color:var(--i-color-n-11)}[data-widget=inploi-chatbot] .\\[\\&\\:has\\(\\.view-switch\\:active\\)\\]\\:scale-\\[0\\.98\\]:has(.view-switch:active){--tw-scale-x: .98;--tw-scale-y: .98;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}[data-widget=inploi-chatbot] .\\[\\&\\:has\\(\\>\\.view-switch\\:focus-visible\\)\\]\\:ring-1:has(>.view-switch:focus-visible){--tw-ring-offset-shadow: var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);--tw-ring-shadow: var(--tw-ring-inset) 0 0 0 calc(1px + var(--tw-ring-offset-width)) var(--tw-ring-color);box-shadow:var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow, 0 0 #0000)}@keyframes fade-in{0%{opacity:0}to{opacity:1}}[data-widget=inploi-chatbot] dialog::backdrop{animation:fade-in .5s cubic-bezier(.16,1,.3,1) both}[data-widget=inploi-chatbot] dialog::backdrop{background-color:var(--i-overlay-bg)}
|
|
2649
|
+
`, Co = "inploi-chatbot", Ce = `[data-widget='${Co}']`, Dn = () => ({
|
|
2650
|
+
getChatbotElement: () => document.querySelector(Ce),
|
|
2651
|
+
getOrCreateChatbotElement: () => {
|
|
2652
|
+
const t = document.querySelector(Ce);
|
|
2653
|
+
if (t)
|
|
2654
|
+
return document.body.appendChild(t), t;
|
|
2655
|
+
const e = document.createElement("div");
|
|
2656
|
+
return document.body.appendChild(e), e.dataset.widget = Co, e;
|
|
2657
|
+
}
|
|
2658
|
+
}), Nn = 25, Eo = G(() => {
|
|
2659
|
+
}), An = (t, e) => new Promise((i, o) => {
|
|
2660
|
+
if (e != null && e.aborted)
|
|
2661
|
+
return o(new ut());
|
|
2662
|
+
const a = setTimeout(i, t);
|
|
2663
|
+
e == null || e.addEventListener("abort", () => {
|
|
2664
|
+
clearTimeout(a), o(new ut());
|
|
2665
|
+
}, {
|
|
2666
|
+
once: !0
|
|
2667
|
+
});
|
|
2668
|
+
}), rt = {
|
|
2669
|
+
onSubmitSuccessFn$: G(() => {
|
|
2670
|
+
}),
|
|
2671
|
+
onInteractionFn$: G(() => {
|
|
2672
|
+
}),
|
|
2673
|
+
isBotTyping$: G(!1),
|
|
2674
|
+
isReadingHistory$: G(!1),
|
|
2675
|
+
scrollToEnd: () => Eo.value()
|
|
2676
|
+
}, fr = () => {
|
|
2677
|
+
const t = qt(null);
|
|
2678
|
+
gt(() => {
|
|
2679
|
+
const i = t.current;
|
|
2680
|
+
if (!i)
|
|
2681
|
+
return;
|
|
2682
|
+
const o = () => {
|
|
2683
|
+
rt.isReadingHistory$.value = !1, i.scrollTo({
|
|
2684
|
+
top: i.scrollHeight,
|
|
2685
|
+
behavior: "instant"
|
|
2686
|
+
});
|
|
2687
|
+
};
|
|
2688
|
+
Eo.value = o;
|
|
2689
|
+
const a = () => {
|
|
2690
|
+
rt.isReadingHistory$.value = i.scrollHeight - i.scrollTop - i.clientHeight > 2;
|
|
2691
|
+
};
|
|
2692
|
+
i.addEventListener("scroll", a, {
|
|
2693
|
+
passive: !0
|
|
2694
|
+
});
|
|
2695
|
+
const n = new ResizeObserver(() => {
|
|
2696
|
+
rt.isReadingHistory$.peek() || o();
|
|
2697
|
+
});
|
|
2698
|
+
return n.observe(i), i.firstElementChild && n.observe(i.firstElementChild), () => {
|
|
2699
|
+
i.removeEventListener("scroll", a), n.disconnect();
|
|
2700
|
+
};
|
|
2701
|
+
}, []);
|
|
2702
|
+
const e = dt(() => ({
|
|
2703
|
+
setSubmission: (o, a) => $.setSubmission(o, a),
|
|
2704
|
+
send: async ({
|
|
2705
|
+
message: o,
|
|
2706
|
+
signal: a,
|
|
2707
|
+
groupId: n
|
|
2708
|
+
}) => {
|
|
2709
|
+
if (await Fe(o).with({
|
|
2710
|
+
author: "bot",
|
|
2711
|
+
type: "text"
|
|
2712
|
+
}, async (r) => {
|
|
2713
|
+
if (a != null && a.aborted)
|
|
2714
|
+
throw new ut();
|
|
2715
|
+
rt.isBotTyping$.value = !0;
|
|
2716
|
+
const s = Math.min(Math.max(20, r.text.length), 100) * Nn;
|
|
2717
|
+
try {
|
|
2718
|
+
await An(s, a);
|
|
2719
|
+
} finally {
|
|
2720
|
+
rt.isBotTyping$.value = !1;
|
|
2721
|
+
}
|
|
2722
|
+
}).otherwise(async () => {
|
|
2723
|
+
}), a != null && a.aborted)
|
|
2724
|
+
throw new ut();
|
|
2725
|
+
$.addMessage(o, n);
|
|
2726
|
+
},
|
|
2727
|
+
input: ({
|
|
2728
|
+
input: o,
|
|
2729
|
+
signal: a
|
|
2730
|
+
}) => {
|
|
2731
|
+
if (a != null && a.aborted)
|
|
2732
|
+
throw new ut();
|
|
2733
|
+
return $.setInput(o), new Promise((n) => {
|
|
2734
|
+
const r = (s) => {
|
|
2735
|
+
if (a != null && a.aborted)
|
|
2736
|
+
throw new ut();
|
|
2737
|
+
$.setInput(void 0), o.key && $.setSubmission(o.key, s), n(s);
|
|
2738
|
+
};
|
|
2739
|
+
rt.onSubmitSuccessFn$.value = r;
|
|
2740
|
+
});
|
|
2741
|
+
}
|
|
2742
|
+
}), []);
|
|
2743
|
+
return {
|
|
2744
|
+
chatRef: t,
|
|
2745
|
+
chatService: e
|
|
2746
|
+
};
|
|
2747
|
+
};
|
|
2748
|
+
var Po = Lo(ze([L(), Lt()]), Ci(String)), To = A({ id: Po, version: Lt(), build: Lt(), nodes: Pi(Ei()), context_schema: W(Ft(Ti(L(), A({ required: Te(), type: ze([Bt("string"), Bt("number")]) })))) }), Bn = A({ flow: To }), Fn = A({ company: A({ name: L() }), flow: To, job: A({ id: Po, title: L() }), user: W(A({ city: W(L()), country: W(L()), isEU: W(Te()), continent: W(L()) })) }), Ln = ki({ pathname: "/flow/job/:id", method: "GET", schema: { searchParams: zo(), response: Fn } }), Mn = ki({ pathname: "/flow/id/:id", method: "GET", schema: { response: Bn } }), Rn = ["1", "2", "3", "4", "5", "6", "7", "8", "9", "10", "11", "12"], Hn = {
|
|
2749
|
+
light: {
|
|
2750
|
+
1: [98.8, 0.015],
|
|
2751
|
+
2: [97.8, 0.018],
|
|
2752
|
+
3: [95.8, 0.025],
|
|
2753
|
+
4: [92, 0.04],
|
|
2754
|
+
5: [89, 0.05],
|
|
2755
|
+
6: [85, 0.07],
|
|
2756
|
+
7: [80.5, 0.08],
|
|
2757
|
+
8: [74, 0.11],
|
|
2758
|
+
9: [60, 0.22],
|
|
2759
|
+
10: [56, 0.23],
|
|
2760
|
+
11: [50, 0.19],
|
|
2761
|
+
12: [25, 0.18]
|
|
2762
|
+
},
|
|
2763
|
+
dark: {
|
|
2764
|
+
1: [19, 0.015],
|
|
2765
|
+
2: [21, 0.018],
|
|
2766
|
+
3: [25.5, 0.055],
|
|
2767
|
+
4: [29.3, 0.084],
|
|
2768
|
+
5: [33.5, 0.098],
|
|
2769
|
+
6: [39.05, 0.107],
|
|
2770
|
+
7: [45, 0.11],
|
|
2771
|
+
8: [55, 0.13],
|
|
2772
|
+
9: [60, 0.22],
|
|
2773
|
+
10: [67, 0.18],
|
|
2774
|
+
11: [79.3, 0.12],
|
|
2775
|
+
12: [95, 0.04]
|
|
2776
|
+
}
|
|
2777
|
+
}, Un = (t, e = 1, i) => (o) => {
|
|
2778
|
+
const [a, n] = Hn[i][o];
|
|
2779
|
+
return "oklch(" + a + "% " + n * e + " " + t + ")";
|
|
2780
|
+
}, ne = (t) => {
|
|
2781
|
+
const e = Un(t.hue, t.chroma, t.mode);
|
|
2782
|
+
return Object.fromEntries(
|
|
2783
|
+
Rn.map((i) => [t.prefix + i, t.transform(e(i))])
|
|
2784
|
+
);
|
|
2785
|
+
}, re = (t) => t, Vn = (t) => {
|
|
2786
|
+
const e = Object.keys(t).flatMap((i) => {
|
|
2787
|
+
const o = t[i];
|
|
2788
|
+
return typeof o == "object" && o !== null ? Object.keys(o).map((a) => {
|
|
2789
|
+
const n = o[a];
|
|
2790
|
+
return [`${String(i)}.${a}`, n];
|
|
2791
|
+
}) : [[i, o]];
|
|
2792
|
+
});
|
|
2793
|
+
return Object.fromEntries(e);
|
|
2794
|
+
}, zt = (t) => !!t && typeof t == "object" && !Array.isArray(t), Ee = (t, ...e) => {
|
|
2795
|
+
if (!e.length)
|
|
2796
|
+
return t;
|
|
2797
|
+
const i = e.shift();
|
|
2798
|
+
if (zt(t) && zt(i))
|
|
2799
|
+
for (const o in i) {
|
|
2800
|
+
const a = i[o];
|
|
2801
|
+
if (zt(a)) {
|
|
2802
|
+
t[o] || Object.assign(t, { [o]: {} });
|
|
2803
|
+
const n = t[o];
|
|
2804
|
+
zt(n) && Ee(n, a);
|
|
2805
|
+
} else
|
|
2806
|
+
Object.assign(t, { [o]: i[o] });
|
|
2807
|
+
}
|
|
2808
|
+
return Ee(t, ...e);
|
|
2809
|
+
}, Wn = (t) => {
|
|
2810
|
+
function e(i, o) {
|
|
2811
|
+
const a = [t.prefix, o.toString().replace(/\./g, "-")].join("");
|
|
2812
|
+
return i === "declaration" ? `--${a}` : `var(--${a})`;
|
|
2813
|
+
}
|
|
2814
|
+
return e;
|
|
2815
|
+
}, Yn = () => ({
|
|
2816
|
+
core: (t) => ({
|
|
2817
|
+
semantic: (e) => ({
|
|
2818
|
+
component: (i) => ({
|
|
2819
|
+
from: (o) => {
|
|
2820
|
+
const { theme: a, getToken: n } = o, r = (w) => n("reference", w.toString()), s = t({ theme: a }), c = e({ theme: a, core: r, raw: { core: s } }), d = i({
|
|
2821
|
+
theme: a,
|
|
2822
|
+
core: r,
|
|
2823
|
+
semantic: r,
|
|
2824
|
+
raw: { core: s, semantic: c }
|
|
2825
|
+
}), u = Vn(Ee(s, c, d)), l = ([w, g], f) => {
|
|
2826
|
+
const b = [f, w].filter(Boolean).join(".");
|
|
2827
|
+
return typeof g == "object" ? Object.entries(g).flatMap((j) => l(j, b)) : [[o.getToken("declaration", b), g]];
|
|
2828
|
+
};
|
|
2829
|
+
return {
|
|
2830
|
+
values: u,
|
|
2831
|
+
declarations: Object.fromEntries(Object.entries(u).flatMap((w) => l(w))),
|
|
2832
|
+
ref: (w) => n("reference", w.toString())
|
|
2833
|
+
};
|
|
2834
|
+
}
|
|
2835
|
+
})
|
|
2836
|
+
})
|
|
2837
|
+
})
|
|
2838
|
+
});
|
|
2839
|
+
const [se, le, xi] = ["oklch(0% 0 0)", "oklch(100% 0 0)", "transparent"], Kn = Yn().core(({
|
|
2840
|
+
theme: t
|
|
2841
|
+
}) => ({
|
|
2842
|
+
color: {
|
|
2843
|
+
black: se,
|
|
2844
|
+
white: le,
|
|
2845
|
+
lowest: t.mode === "light" ? le : se,
|
|
2846
|
+
highest: t.mode === "light" ? se : le,
|
|
2847
|
+
...ne({
|
|
2848
|
+
prefix: "a-",
|
|
2849
|
+
hue: t.hue,
|
|
2850
|
+
chroma: t.chroma,
|
|
2851
|
+
mode: t.mode,
|
|
2852
|
+
transform: re
|
|
2853
|
+
}),
|
|
2854
|
+
...ne({
|
|
2855
|
+
prefix: "n-",
|
|
2856
|
+
hue: t.hue,
|
|
2857
|
+
chroma: 0.05,
|
|
2858
|
+
mode: t.mode,
|
|
2859
|
+
transform: re
|
|
2860
|
+
}),
|
|
2861
|
+
...ne({
|
|
2862
|
+
prefix: "e-",
|
|
2863
|
+
hue: 20,
|
|
2864
|
+
chroma: t.chroma,
|
|
2865
|
+
mode: t.mode,
|
|
2866
|
+
transform: re
|
|
2867
|
+
})
|
|
2868
|
+
},
|
|
2869
|
+
typography: {}
|
|
2870
|
+
})).semantic(({
|
|
2871
|
+
core: t,
|
|
2872
|
+
raw: e,
|
|
2873
|
+
theme: i
|
|
2874
|
+
}) => {
|
|
2875
|
+
const o = (a, n) => e.core.color[a].replace(")", ` / ${n})`);
|
|
2876
|
+
return {
|
|
2877
|
+
"font-family": {
|
|
2878
|
+
body: "inherit",
|
|
2879
|
+
headings: "inherit"
|
|
2880
|
+
},
|
|
2881
|
+
"font-style": {
|
|
2882
|
+
body: "normal",
|
|
2883
|
+
headings: "normal"
|
|
2884
|
+
},
|
|
2885
|
+
"font-weight-body": "normal",
|
|
2886
|
+
"font-weight-headings": "normal",
|
|
2887
|
+
"radius-app": "1.5rem",
|
|
2888
|
+
"radius-interactive": "1.5rem",
|
|
2889
|
+
color: {
|
|
2890
|
+
divider: o("n-8", i.mode === "dark" ? 0.4 : 0.2)
|
|
2891
|
+
},
|
|
2892
|
+
"copy-body": t("color.n-12"),
|
|
2893
|
+
"copy-headings": t("color.n-12"),
|
|
2894
|
+
interactive: {
|
|
2895
|
+
copy: t("color.n-11"),
|
|
2896
|
+
"copy-hover": t("color.n-12"),
|
|
2897
|
+
"copy-active": t("color.n-12"),
|
|
2898
|
+
bg: xi,
|
|
2899
|
+
"bg-hover": o("n-10", 0.2),
|
|
2900
|
+
"bg-active": o("n-10", 0.3)
|
|
2901
|
+
}
|
|
2902
|
+
};
|
|
2903
|
+
}).component(({
|
|
2904
|
+
raw: t,
|
|
2905
|
+
theme: e,
|
|
2906
|
+
semantic: i,
|
|
2907
|
+
core: o
|
|
2908
|
+
}) => {
|
|
2909
|
+
const a = (n, r) => t.core.color[n].replace(")", ` / ${r})`);
|
|
2910
|
+
return {
|
|
2911
|
+
app: {
|
|
2912
|
+
bg: o(e.mode === "dark" ? "color.n-1" : "color.n-2")
|
|
2913
|
+
},
|
|
2914
|
+
overlay: {
|
|
2915
|
+
bg: a("black", 0.4)
|
|
2916
|
+
},
|
|
2917
|
+
bubble: {
|
|
2918
|
+
"weak-bg": o(e.mode === "dark" ? "color.n-3" : "color.lowest"),
|
|
2919
|
+
"weak-outline": i("color.divider"),
|
|
2920
|
+
"strong-shadow": a("a-9", 0.05)
|
|
2921
|
+
},
|
|
2922
|
+
"status-bar": {
|
|
2923
|
+
bg: a("n-2", 0.8),
|
|
2924
|
+
"bg-button": xi,
|
|
2925
|
+
"bg-button-hover": a("n-10", 0.4),
|
|
2926
|
+
"bg-button-active": a("n-10", 0.5)
|
|
2927
|
+
},
|
|
2928
|
+
"submit-button": {
|
|
2929
|
+
"bg-active": o(e.mode === "dark" ? "color.a-8" : "color.a-11")
|
|
2930
|
+
}
|
|
2931
|
+
};
|
|
2932
|
+
}), qn = Wn({
|
|
2933
|
+
prefix: "i-"
|
|
2934
|
+
}), Xn = (t) => {
|
|
2935
|
+
const e = Kn.from({
|
|
2936
|
+
theme: t,
|
|
2937
|
+
getToken: qn
|
|
2938
|
+
}), i = Object.entries(e.declarations).map(([o, a]) => `${o}: ${a};`);
|
|
2939
|
+
return `${Ce} {
|
|
2940
|
+
${i.concat(i).join(`
|
|
2941
|
+
`)}
|
|
2942
|
+
}`;
|
|
2943
|
+
}, wr = ({
|
|
2944
|
+
_internal_domManager: t = Dn(),
|
|
2945
|
+
theme: e,
|
|
2946
|
+
terms: i,
|
|
2947
|
+
feedback: o
|
|
2948
|
+
}) => Oo(({
|
|
2949
|
+
apiClient: a,
|
|
2950
|
+
rpcClient: n,
|
|
2951
|
+
logger: r,
|
|
2952
|
+
analytics: s,
|
|
2953
|
+
publishableKey: c,
|
|
2954
|
+
env: d
|
|
2955
|
+
}) => {
|
|
2956
|
+
let u = !1, l = 0;
|
|
2957
|
+
const w = tn({
|
|
2958
|
+
locale: void 0,
|
|
2959
|
+
overrides: i ?? {}
|
|
2960
|
+
}), g = c && d ? Io({
|
|
2961
|
+
environment: d,
|
|
2962
|
+
publishableKey: c,
|
|
2963
|
+
logger: r
|
|
2964
|
+
}) : void 0, f = (v) => v === l, b = () => {
|
|
2965
|
+
if (typeof window > "u")
|
|
2966
|
+
return;
|
|
2967
|
+
l++, it.flushStateData().catch(() => {
|
|
2968
|
+
}), $.cancelCurrentFlow(), rt.isBotTyping$.value = !1;
|
|
2969
|
+
const v = t.getChatbotElement();
|
|
2970
|
+
v && (ct(null, v), v.remove()), u = !1, r.info("Chatbot plugin destroyed");
|
|
2971
|
+
}, j = () => {
|
|
2972
|
+
if (typeof window > "u")
|
|
2973
|
+
return;
|
|
2974
|
+
const v = l, _ = [B("style", {
|
|
2975
|
+
id: "inploi-chatbot-styles"
|
|
2976
|
+
}, jn), B("style", {
|
|
2977
|
+
id: "inploi-chatbot-theme"
|
|
2978
|
+
}, Xn(e))], y = t.getOrCreateChatbotElement();
|
|
2979
|
+
if (ct(B(K, {}, [_, B(On, {
|
|
2980
|
+
apiClient: a,
|
|
2981
|
+
logger: r,
|
|
2982
|
+
analytics: s,
|
|
2983
|
+
talentBankClient: g,
|
|
2984
|
+
params: {
|
|
2985
|
+
theme: e,
|
|
2986
|
+
terms: i,
|
|
2987
|
+
feedback: o
|
|
2988
|
+
}
|
|
2989
|
+
})]), y), o) {
|
|
2990
|
+
const E = (T) => {
|
|
2991
|
+
var H, O;
|
|
2992
|
+
if (!f(v))
|
|
2993
|
+
return;
|
|
2994
|
+
const R = (H = t.getChatbotElement()) == null ? void 0 : H.querySelector("dialog");
|
|
2995
|
+
R && Gn({
|
|
2996
|
+
instance: T({
|
|
2997
|
+
rpcClient: n,
|
|
2998
|
+
apiClient: a,
|
|
2999
|
+
logger: r,
|
|
3000
|
+
analytics: s
|
|
3001
|
+
}),
|
|
3002
|
+
theme: e,
|
|
3003
|
+
terms: ((O = o.params) == null ? void 0 : O.terms) ?? {},
|
|
3004
|
+
host: R
|
|
3005
|
+
});
|
|
3006
|
+
};
|
|
3007
|
+
o.plugin instanceof Promise ? o.plugin.then(({
|
|
3008
|
+
feedbackPlugin: T
|
|
3009
|
+
}) => {
|
|
3010
|
+
E(T());
|
|
3011
|
+
}).catch((T) => {
|
|
3012
|
+
r.error("Error preparing feedback plugin", T);
|
|
3013
|
+
}) : E(o.plugin);
|
|
3014
|
+
}
|
|
3015
|
+
u = !0;
|
|
3016
|
+
}, x = async (v, _) => {
|
|
3017
|
+
if (!f(_))
|
|
3018
|
+
return;
|
|
3019
|
+
Wo({
|
|
3020
|
+
context: v.context || {},
|
|
3021
|
+
schema: v.flow.context_schema,
|
|
3022
|
+
logger: r
|
|
3023
|
+
});
|
|
3024
|
+
const y = await $.prepareFlow(v);
|
|
3025
|
+
f(_) && $.commitFlow(y);
|
|
3026
|
+
};
|
|
3027
|
+
return {
|
|
3028
|
+
/** Optionally eagerly renders the interface ahead of needing the chatbot. */
|
|
3029
|
+
prepare: async () => {
|
|
3030
|
+
if (!(typeof window > "u"))
|
|
3031
|
+
try {
|
|
3032
|
+
if (u)
|
|
3033
|
+
return;
|
|
3034
|
+
j(), r.info("Chatbot plugin prepared");
|
|
3035
|
+
} catch (v) {
|
|
3036
|
+
r.error("Error preparing chatbot plugin", v);
|
|
3037
|
+
}
|
|
3038
|
+
},
|
|
3039
|
+
/** Fetches a flow by job ID.
|
|
3040
|
+
* @param jobId - The job ID to fetch the flow for. This is the job ID according to the **ATS**, and not the inploi job ID.
|
|
3041
|
+
*/
|
|
3042
|
+
fetchFlowByJobId: async (v, _) => n.request(Ln, {
|
|
3043
|
+
params: {
|
|
3044
|
+
id: v
|
|
3045
|
+
},
|
|
3046
|
+
searchParams: {
|
|
3047
|
+
id_type: (_ == null ? void 0 : _.idType) === "inploi" ? "internal" : "external"
|
|
3048
|
+
}
|
|
3049
|
+
}).then((y) => ({
|
|
3050
|
+
flow: y.flow,
|
|
3051
|
+
title: y.job.title,
|
|
3052
|
+
flowKeys: [y.job.id, ...(_ == null ? void 0 : _.flowKeys) ?? []],
|
|
3053
|
+
job: {
|
|
3054
|
+
id: y.job.id,
|
|
3055
|
+
id_type: "external"
|
|
3056
|
+
},
|
|
3057
|
+
..._,
|
|
3058
|
+
context: {
|
|
3059
|
+
user: y.user,
|
|
3060
|
+
..._ == null ? void 0 : _.context
|
|
3061
|
+
}
|
|
3062
|
+
})),
|
|
3063
|
+
fetchFlowById: async (v, _) => n.request(Mn, {
|
|
3064
|
+
params: {
|
|
3065
|
+
id: v
|
|
3066
|
+
}
|
|
3067
|
+
}).then((y) => {
|
|
3068
|
+
var E;
|
|
3069
|
+
return {
|
|
3070
|
+
flow: y.flow,
|
|
3071
|
+
title: "Chatbot",
|
|
3072
|
+
flowKeys: (_ == null ? void 0 : _.flowKeys) ?? [],
|
|
3073
|
+
..._,
|
|
3074
|
+
analytics: {
|
|
3075
|
+
customProperties: {
|
|
3076
|
+
flow_id: y.flow.id,
|
|
3077
|
+
flow_version: y.flow.version,
|
|
3078
|
+
...(E = _ == null ? void 0 : _.analytics) == null ? void 0 : E.customProperties
|
|
3079
|
+
}
|
|
3080
|
+
}
|
|
3081
|
+
};
|
|
3082
|
+
}),
|
|
3083
|
+
open: async (v) => {
|
|
3084
|
+
if (!(typeof window > "u"))
|
|
3085
|
+
try {
|
|
3086
|
+
$.cancelCurrentFlow(), $.viewState$.value = "maximised", u || j();
|
|
3087
|
+
const _ = l;
|
|
3088
|
+
v instanceof Promise ? ($.current$.value = {
|
|
3089
|
+
state: "loading"
|
|
3090
|
+
}, v.then((y) => x(y, _)).catch((y) => {
|
|
3091
|
+
if (!f(_))
|
|
3092
|
+
return;
|
|
3093
|
+
const E = y instanceof Error ? y.message : w("unknown_error");
|
|
3094
|
+
$.current$.value = {
|
|
3095
|
+
state: "error",
|
|
3096
|
+
error: E
|
|
3097
|
+
};
|
|
3098
|
+
})) : await x(v, _);
|
|
3099
|
+
} catch (_) {
|
|
3100
|
+
r.error("Error starting flow", _);
|
|
3101
|
+
}
|
|
3102
|
+
},
|
|
3103
|
+
close: async () => {
|
|
3104
|
+
typeof window > "u" || ($.cancelCurrentFlow(), r.info("Closed flow from an external source"));
|
|
3105
|
+
},
|
|
3106
|
+
destroy: b
|
|
3107
|
+
};
|
|
3108
|
+
});
|
|
3109
|
+
function Gn({
|
|
3110
|
+
instance: t,
|
|
3111
|
+
terms: e,
|
|
3112
|
+
theme: i,
|
|
3113
|
+
host: o
|
|
3114
|
+
}) {
|
|
3115
|
+
t.render({
|
|
3116
|
+
key: "chatbot-header",
|
|
3117
|
+
size: "sm",
|
|
3118
|
+
theme: {
|
|
3119
|
+
accent: {
|
|
3120
|
+
chroma: i.chroma ?? 1,
|
|
3121
|
+
hue: i.hue
|
|
3122
|
+
},
|
|
3123
|
+
positive: {
|
|
3124
|
+
hue: 180,
|
|
3125
|
+
chroma: 1
|
|
3126
|
+
},
|
|
3127
|
+
negative: {
|
|
3128
|
+
hue: 33,
|
|
3129
|
+
chroma: 1
|
|
3130
|
+
},
|
|
3131
|
+
mode: i.mode,
|
|
3132
|
+
corners: "rounded",
|
|
3133
|
+
highlights: "stroke"
|
|
3134
|
+
},
|
|
3135
|
+
terms: e,
|
|
3136
|
+
host: o
|
|
3137
|
+
});
|
|
3138
|
+
}
|
|
3139
|
+
export {
|
|
3140
|
+
or as $,
|
|
3141
|
+
ut as A,
|
|
3142
|
+
tr as C,
|
|
3143
|
+
nr as D,
|
|
3144
|
+
dt as F,
|
|
3145
|
+
kn as L,
|
|
3146
|
+
Fe as M,
|
|
3147
|
+
Qn as O,
|
|
3148
|
+
ar as P,
|
|
3149
|
+
$e as S,
|
|
3150
|
+
rr as U,
|
|
3151
|
+
ir as _,
|
|
3152
|
+
Jn as a,
|
|
3153
|
+
De as b,
|
|
3154
|
+
je as c,
|
|
3155
|
+
qt as d,
|
|
3156
|
+
sa as e,
|
|
3157
|
+
hr as f,
|
|
3158
|
+
ur as g,
|
|
3159
|
+
Xi as h,
|
|
3160
|
+
fo as i,
|
|
3161
|
+
pr as j,
|
|
3162
|
+
K as k,
|
|
3163
|
+
er as l,
|
|
3164
|
+
sr as m,
|
|
3165
|
+
rt as n,
|
|
3166
|
+
p as o,
|
|
3167
|
+
Zi as p,
|
|
3168
|
+
fr as q,
|
|
3169
|
+
Cn as r,
|
|
3170
|
+
$ as s,
|
|
3171
|
+
wr as t,
|
|
3172
|
+
Le as u,
|
|
3173
|
+
Ii as w,
|
|
3174
|
+
gt as y,
|
|
3175
|
+
Tt as z
|
|
3176
|
+
};
|