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