@inploi/plugin-chatbot 7.1.1 → 9.0.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,3932 @@
1
+ import { endpoint as Yi, typed as eo, createPlugin as io, createTalentBankClient as ao } from "@inploi/sdk";
2
+ var zt = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : typeof global < "u" ? global : typeof self < "u" ? self : {};
3
+ function oo(t) {
4
+ return t && t.__esModule && Object.prototype.hasOwnProperty.call(t, "default") ? t.default : t;
5
+ }
6
+ var ro = Array.isArray, Be = ro, no = typeof zt == "object" && zt && zt.Object === Object && zt, so = no, co = so, lo = typeof self == "object" && self && self.Object === Object && self, uo = co || lo || Function("return this")(), Le = uo, po = Le, ho = po.Symbol, Re = ho, ri = Re, qi = Object.prototype, fo = qi.hasOwnProperty, wo = qi.toString, xt = ri ? ri.toStringTag : void 0;
7
+ function vo(t) {
8
+ var e = fo.call(t, xt), i = t[xt];
9
+ try {
10
+ t[xt] = void 0;
11
+ var a = !0;
12
+ } catch {
13
+ }
14
+ var o = wo.call(t);
15
+ return a && (e ? t[xt] = i : delete t[xt]), o;
16
+ }
17
+ var go = vo, bo = Object.prototype, _o = bo.toString;
18
+ function mo(t) {
19
+ return _o.call(t);
20
+ }
21
+ var yo = mo, ni = Re, xo = go, ko = yo, $o = "[object Null]", So = "[object Undefined]", si = ni ? ni.toStringTag : void 0;
22
+ function Co(t) {
23
+ return t == null ? t === void 0 ? So : $o : si && si in Object(t) ? xo(t) : ko(t);
24
+ }
25
+ var Ji = Co;
26
+ function Eo(t) {
27
+ return t != null && typeof t == "object";
28
+ }
29
+ var To = Eo, Po = Ji, Oo = To, jo = "[object Symbol]";
30
+ function Io(t) {
31
+ return typeof t == "symbol" || Oo(t) && Po(t) == jo;
32
+ }
33
+ var Ue = Io, Do = Be, zo = Ue, No = /\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/, Mo = /^\w*$/;
34
+ function Ao(t, e) {
35
+ if (Do(t))
36
+ return !1;
37
+ var i = typeof t;
38
+ return i == "number" || i == "symbol" || i == "boolean" || t == null || zo(t) ? !0 : Mo.test(t) || !No.test(t) || e != null && t in Object(e);
39
+ }
40
+ var Fo = Ao;
41
+ function Ho(t) {
42
+ var e = typeof t;
43
+ return t != null && (e == "object" || e == "function");
44
+ }
45
+ var Xi = Ho, Bo = Ji, Lo = Xi, Ro = "[object AsyncFunction]", Uo = "[object Function]", Vo = "[object GeneratorFunction]", Ko = "[object Proxy]";
46
+ function Wo(t) {
47
+ if (!Lo(t))
48
+ return !1;
49
+ var e = Bo(t);
50
+ return e == Uo || e == Vo || e == Ro || e == Ko;
51
+ }
52
+ var Go = Wo, Yo = Le, qo = Yo["__core-js_shared__"], Jo = qo, re = Jo, ci = function() {
53
+ var t = /[^.]+$/.exec(re && re.keys && re.keys.IE_PROTO || "");
54
+ return t ? "Symbol(src)_1." + t : "";
55
+ }();
56
+ function Xo(t) {
57
+ return !!ci && ci in t;
58
+ }
59
+ var Zo = Xo, Qo = Function.prototype, tr = Qo.toString;
60
+ function er(t) {
61
+ if (t != null) {
62
+ try {
63
+ return tr.call(t);
64
+ } catch {
65
+ }
66
+ try {
67
+ return t + "";
68
+ } catch {
69
+ }
70
+ }
71
+ return "";
72
+ }
73
+ var ir = er, ar = Go, or = Zo, rr = Xi, nr = ir, sr = /[\\^$.*+?()[\]{}|]/g, cr = /^\[object .+?Constructor\]$/, lr = Function.prototype, dr = Object.prototype, ur = lr.toString, pr = dr.hasOwnProperty, hr = RegExp(
74
+ "^" + ur.call(pr).replace(sr, "\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g, "$1.*?") + "$"
75
+ );
76
+ function fr(t) {
77
+ if (!rr(t) || or(t))
78
+ return !1;
79
+ var e = ar(t) ? hr : cr;
80
+ return e.test(nr(t));
81
+ }
82
+ var wr = fr;
83
+ function vr(t, e) {
84
+ return t == null ? void 0 : t[e];
85
+ }
86
+ var gr = vr, br = wr, _r = gr;
87
+ function mr(t, e) {
88
+ var i = _r(t, e);
89
+ return br(i) ? i : void 0;
90
+ }
91
+ var Zi = mr, yr = Zi, xr = yr(Object, "create"), Xt = xr, li = Xt;
92
+ function kr() {
93
+ this.__data__ = li ? li(null) : {}, this.size = 0;
94
+ }
95
+ var $r = kr;
96
+ function Sr(t) {
97
+ var e = this.has(t) && delete this.__data__[t];
98
+ return this.size -= e ? 1 : 0, e;
99
+ }
100
+ var Cr = Sr, Er = Xt, Tr = "__lodash_hash_undefined__", Pr = Object.prototype, Or = Pr.hasOwnProperty;
101
+ function jr(t) {
102
+ var e = this.__data__;
103
+ if (Er) {
104
+ var i = e[t];
105
+ return i === Tr ? void 0 : i;
106
+ }
107
+ return Or.call(e, t) ? e[t] : void 0;
108
+ }
109
+ var Ir = jr, Dr = Xt, zr = Object.prototype, Nr = zr.hasOwnProperty;
110
+ function Mr(t) {
111
+ var e = this.__data__;
112
+ return Dr ? e[t] !== void 0 : Nr.call(e, t);
113
+ }
114
+ var Ar = Mr, Fr = Xt, Hr = "__lodash_hash_undefined__";
115
+ function Br(t, e) {
116
+ var i = this.__data__;
117
+ return this.size += this.has(t) ? 0 : 1, i[t] = Fr && e === void 0 ? Hr : e, this;
118
+ }
119
+ var Lr = Br, Rr = $r, Ur = Cr, Vr = Ir, Kr = Ar, Wr = Lr;
120
+ function wt(t) {
121
+ var e = -1, i = t == null ? 0 : t.length;
122
+ for (this.clear(); ++e < i; ) {
123
+ var a = t[e];
124
+ this.set(a[0], a[1]);
125
+ }
126
+ }
127
+ wt.prototype.clear = Rr;
128
+ wt.prototype.delete = Ur;
129
+ wt.prototype.get = Vr;
130
+ wt.prototype.has = Kr;
131
+ wt.prototype.set = Wr;
132
+ var Gr = wt;
133
+ function Yr() {
134
+ this.__data__ = [], this.size = 0;
135
+ }
136
+ var qr = Yr;
137
+ function Jr(t, e) {
138
+ return t === e || t !== t && e !== e;
139
+ }
140
+ var Xr = Jr, Zr = Xr;
141
+ function Qr(t, e) {
142
+ for (var i = t.length; i--; )
143
+ if (Zr(t[i][0], e))
144
+ return i;
145
+ return -1;
146
+ }
147
+ var Zt = Qr, tn = Zt, en = Array.prototype, an = en.splice;
148
+ function on(t) {
149
+ var e = this.__data__, i = tn(e, t);
150
+ if (i < 0)
151
+ return !1;
152
+ var a = e.length - 1;
153
+ return i == a ? e.pop() : an.call(e, i, 1), --this.size, !0;
154
+ }
155
+ var rn = on, nn = Zt;
156
+ function sn(t) {
157
+ var e = this.__data__, i = nn(e, t);
158
+ return i < 0 ? void 0 : e[i][1];
159
+ }
160
+ var cn = sn, ln = Zt;
161
+ function dn(t) {
162
+ return ln(this.__data__, t) > -1;
163
+ }
164
+ var un = dn, pn = Zt;
165
+ function hn(t, e) {
166
+ var i = this.__data__, a = pn(i, t);
167
+ return a < 0 ? (++this.size, i.push([t, e])) : i[a][1] = e, this;
168
+ }
169
+ var fn = hn, wn = qr, vn = rn, gn = cn, bn = un, _n = fn;
170
+ function vt(t) {
171
+ var e = -1, i = t == null ? 0 : t.length;
172
+ for (this.clear(); ++e < i; ) {
173
+ var a = t[e];
174
+ this.set(a[0], a[1]);
175
+ }
176
+ }
177
+ vt.prototype.clear = wn;
178
+ vt.prototype.delete = vn;
179
+ vt.prototype.get = gn;
180
+ vt.prototype.has = bn;
181
+ vt.prototype.set = _n;
182
+ var mn = vt, yn = Zi, xn = Le, kn = yn(xn, "Map"), $n = kn, di = Gr, Sn = mn, Cn = $n;
183
+ function En() {
184
+ this.size = 0, this.__data__ = {
185
+ hash: new di(),
186
+ map: new (Cn || Sn)(),
187
+ string: new di()
188
+ };
189
+ }
190
+ var Tn = En;
191
+ function Pn(t) {
192
+ var e = typeof t;
193
+ return e == "string" || e == "number" || e == "symbol" || e == "boolean" ? t !== "__proto__" : t === null;
194
+ }
195
+ var On = Pn, jn = On;
196
+ function In(t, e) {
197
+ var i = t.__data__;
198
+ return jn(e) ? i[typeof e == "string" ? "string" : "hash"] : i.map;
199
+ }
200
+ var Qt = In, Dn = Qt;
201
+ function zn(t) {
202
+ var e = Dn(this, t).delete(t);
203
+ return this.size -= e ? 1 : 0, e;
204
+ }
205
+ var Nn = zn, Mn = Qt;
206
+ function An(t) {
207
+ return Mn(this, t).get(t);
208
+ }
209
+ var Fn = An, Hn = Qt;
210
+ function Bn(t) {
211
+ return Hn(this, t).has(t);
212
+ }
213
+ var Ln = Bn, Rn = Qt;
214
+ function Un(t, e) {
215
+ var i = Rn(this, t), a = i.size;
216
+ return i.set(t, e), this.size += i.size == a ? 0 : 1, this;
217
+ }
218
+ var Vn = Un, Kn = Tn, Wn = Nn, Gn = Fn, Yn = Ln, qn = Vn;
219
+ function gt(t) {
220
+ var e = -1, i = t == null ? 0 : t.length;
221
+ for (this.clear(); ++e < i; ) {
222
+ var a = t[e];
223
+ this.set(a[0], a[1]);
224
+ }
225
+ }
226
+ gt.prototype.clear = Kn;
227
+ gt.prototype.delete = Wn;
228
+ gt.prototype.get = Gn;
229
+ gt.prototype.has = Yn;
230
+ gt.prototype.set = qn;
231
+ var Jn = gt, Qi = Jn, Xn = "Expected a function";
232
+ function Ve(t, e) {
233
+ if (typeof t != "function" || e != null && typeof e != "function")
234
+ throw new TypeError(Xn);
235
+ var i = function() {
236
+ var a = arguments, o = e ? e.apply(this, a) : a[0], r = i.cache;
237
+ if (r.has(o))
238
+ return r.get(o);
239
+ var n = t.apply(this, a);
240
+ return i.cache = r.set(o, n) || r, n;
241
+ };
242
+ return i.cache = new (Ve.Cache || Qi)(), i;
243
+ }
244
+ Ve.Cache = Qi;
245
+ var Zn = Ve, Qn = Zn, ts = 500;
246
+ function es(t) {
247
+ var e = Qn(t, function(a) {
248
+ return i.size === ts && i.clear(), a;
249
+ }), i = e.cache;
250
+ return e;
251
+ }
252
+ var is = es, as = is, os = /[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g, rs = /\\(\\)?/g, ns = as(function(t) {
253
+ var e = [];
254
+ return t.charCodeAt(0) === 46 && e.push(""), t.replace(os, function(i, a, o, r) {
255
+ e.push(o ? r.replace(rs, "$1") : a || i);
256
+ }), e;
257
+ }), ss = ns;
258
+ function cs(t, e) {
259
+ for (var i = -1, a = t == null ? 0 : t.length, o = Array(a); ++i < a; )
260
+ o[i] = e(t[i], i, t);
261
+ return o;
262
+ }
263
+ var ls = cs, ui = Re, ds = ls, us = Be, ps = Ue, hs = 1 / 0, pi = ui ? ui.prototype : void 0, hi = pi ? pi.toString : void 0;
264
+ function ta(t) {
265
+ if (typeof t == "string")
266
+ return t;
267
+ if (us(t))
268
+ return ds(t, ta) + "";
269
+ if (ps(t))
270
+ return hi ? hi.call(t) : "";
271
+ var e = t + "";
272
+ return e == "0" && 1 / t == -hs ? "-0" : e;
273
+ }
274
+ var fs = ta, ws = fs;
275
+ function vs(t) {
276
+ return t == null ? "" : ws(t);
277
+ }
278
+ var gs = vs, bs = Be, _s = Fo, ms = ss, ys = gs;
279
+ function xs(t, e) {
280
+ return bs(t) ? t : _s(t, e) ? [t] : ms(ys(t));
281
+ }
282
+ var ks = xs, $s = Ue, Ss = 1 / 0;
283
+ function Cs(t) {
284
+ if (typeof t == "string" || $s(t))
285
+ return t;
286
+ var e = t + "";
287
+ return e == "0" && 1 / t == -Ss ? "-0" : e;
288
+ }
289
+ var Es = Cs, Ts = ks, Ps = Es;
290
+ function Os(t, e) {
291
+ e = Ts(e, t);
292
+ for (var i = 0, a = e.length; t != null && i < a; )
293
+ t = t[Ps(e[i++])];
294
+ return i && i == a ? t : void 0;
295
+ }
296
+ var js = Os, Is = js;
297
+ function Ds(t, e, i) {
298
+ var a = t == null ? void 0 : Is(t, e);
299
+ return a === void 0 ? i : a;
300
+ }
301
+ var zs = Ds;
302
+ const Ns = /* @__PURE__ */ oo(zs);
303
+ var jt, h, ea, ia, ot, fi, aa, _e, oa, pt = {}, ra = [], Ms = /acit|ex(?:s|g|n|p|$)|rph|grid|ows|mnc|ntw|ine[ch]|zoo|^ord|itera/i, te = Array.isArray;
304
+ function W(t, e) {
305
+ for (var i in e)
306
+ t[i] = e[i];
307
+ return t;
308
+ }
309
+ function na(t) {
310
+ var e = t.parentNode;
311
+ e && e.removeChild(t);
312
+ }
313
+ function F(t, e, i) {
314
+ var a, o, r, n = {};
315
+ for (r in e)
316
+ r == "key" ? a = e[r] : r == "ref" ? o = e[r] : n[r] = e[r];
317
+ if (arguments.length > 2 && (n.children = arguments.length > 3 ? jt.call(arguments, 2) : i), typeof t == "function" && t.defaultProps != null)
318
+ for (r in t.defaultProps)
319
+ n[r] === void 0 && (n[r] = t.defaultProps[r]);
320
+ return Ct(t, n, a, o, null);
321
+ }
322
+ function Ct(t, e, i, a, o) {
323
+ var r = { 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 ?? ++ea };
324
+ return o == null && h.vnode != null && h.vnode(r), r;
325
+ }
326
+ function As() {
327
+ return { current: null };
328
+ }
329
+ function V(t) {
330
+ return t.children;
331
+ }
332
+ function H(t, e) {
333
+ this.props = t, this.context = e;
334
+ }
335
+ function Ut(t, e) {
336
+ if (e == null)
337
+ return t.__ ? Ut(t.__, t.__.__k.indexOf(t) + 1) : null;
338
+ for (var i; e < t.__k.length; e++)
339
+ if ((i = t.__k[e]) != null && i.__e != null)
340
+ return i.__e;
341
+ return typeof t.type == "function" ? Ut(t) : null;
342
+ }
343
+ function sa(t) {
344
+ var e, i;
345
+ if ((t = t.__) != null && t.__c != null) {
346
+ for (t.__e = t.__c.base = null, e = 0; e < t.__k.length; e++)
347
+ if ((i = t.__k[e]) != null && i.__e != null) {
348
+ t.__e = t.__c.base = i.__e;
349
+ break;
350
+ }
351
+ return sa(t);
352
+ }
353
+ }
354
+ function me(t) {
355
+ (!t.__d && (t.__d = !0) && ot.push(t) && !Vt.__r++ || fi !== h.debounceRendering) && ((fi = h.debounceRendering) || aa)(Vt);
356
+ }
357
+ function Vt() {
358
+ var t, e, i, a, o, r, n, s, l;
359
+ for (ot.sort(_e); t = ot.shift(); )
360
+ t.__d && (e = ot.length, a = void 0, o = void 0, r = void 0, s = (n = (i = t).__v).__e, (l = i.__P) && (a = [], o = [], (r = W({}, n)).__v = n.__v + 1, Ke(l, n, r, i.__n, l.ownerSVGElement !== void 0, n.__h != null ? [s] : null, a, s ?? Ut(n), n.__h, o), ua(a, n, o), n.__e != s && sa(n)), ot.length > e && ot.sort(_e));
361
+ Vt.__r = 0;
362
+ }
363
+ function ca(t, e, i, a, o, r, n, s, l, d, u) {
364
+ var c, w, v, f, g, z, x, b, _, y, E = 0, P = a && a.__k || ra, B = P.length, L = B, I = e.length;
365
+ for (i.__k = [], c = 0; c < I; c++)
366
+ (f = i.__k[c] = (f = e[c]) == null || typeof f == "boolean" || typeof f == "function" ? null : typeof f == "string" || typeof f == "number" || typeof f == "bigint" ? Ct(null, f, null, null, f) : te(f) ? Ct(V, { children: f }, null, null, null) : f.__b > 0 ? Ct(f.type, f.props, f.key, f.ref ? f.ref : null, f.__v) : f) != null && (f.__ = i, f.__b = i.__b + 1, (b = Fs(f, P, x = c + E, L)) === -1 ? v = pt : (v = P[b] || pt, P[b] = void 0, L--), Ke(t, f, v, o, r, n, s, l, d, u), g = f.__e, (w = f.ref) && v.ref != w && (v.ref && We(v.ref, null, f), u.push(w, f.__c || g, f)), g != null && (z == null && (z = g), y = !(_ = v === pt || v.__v === null) && b === x, _ ? b == -1 && E-- : b !== x && (b === x + 1 ? (E++, y = !0) : b > x ? L > I - x ? (E += b - x, y = !0) : E-- : E = b < x && b == x - 1 ? b - x : 0), x = c + E, y = y || b == c && !_, typeof f.type != "function" || b === x && v.__k !== f.__k ? typeof f.type == "function" || y ? f.__d !== void 0 ? (l = f.__d, f.__d = void 0) : l = g.nextSibling : l = da(t, g, l) : l = la(f, l, t), typeof i.type == "function" && (i.__d = l)));
367
+ for (i.__e = z, c = B; c--; )
368
+ P[c] != null && (typeof i.type == "function" && P[c].__e != null && P[c].__e == i.__d && (i.__d = P[c].__e.nextSibling), pa(P[c], P[c]));
369
+ }
370
+ function la(t, e, i) {
371
+ for (var a, o = t.__k, r = 0; o && r < o.length; r++)
372
+ (a = o[r]) && (a.__ = t, e = typeof a.type == "function" ? la(a, e, i) : da(i, a.__e, e));
373
+ return e;
374
+ }
375
+ function G(t, e) {
376
+ return e = e || [], t == null || typeof t == "boolean" || (te(t) ? t.some(function(i) {
377
+ G(i, e);
378
+ }) : e.push(t)), e;
379
+ }
380
+ function da(t, e, i) {
381
+ return i == null || i.parentNode !== t ? t.insertBefore(e, null) : e == i && e.parentNode != null || t.insertBefore(e, i), e.nextSibling;
382
+ }
383
+ function Fs(t, e, i, a) {
384
+ var o = t.key, r = t.type, n = i - 1, s = i + 1, l = e[i];
385
+ if (l === null || l && o == l.key && r === l.type)
386
+ return i;
387
+ if (a > (l != null ? 1 : 0))
388
+ for (; n >= 0 || s < e.length; ) {
389
+ if (n >= 0) {
390
+ if ((l = e[n]) && o == l.key && r === l.type)
391
+ return n;
392
+ n--;
393
+ }
394
+ if (s < e.length) {
395
+ if ((l = e[s]) && o == l.key && r === l.type)
396
+ return s;
397
+ s++;
398
+ }
399
+ }
400
+ return -1;
401
+ }
402
+ function Hs(t, e, i, a, o) {
403
+ var r;
404
+ for (r in i)
405
+ r === "children" || r === "key" || r in e || Kt(t, r, null, i[r], a);
406
+ for (r in e)
407
+ o && typeof e[r] != "function" || r === "children" || r === "key" || r === "value" || r === "checked" || i[r] === e[r] || Kt(t, r, e[r], i[r], a);
408
+ }
409
+ function wi(t, e, i) {
410
+ e[0] === "-" ? t.setProperty(e, i ?? "") : t[e] = i == null ? "" : typeof i != "number" || Ms.test(e) ? i : i + "px";
411
+ }
412
+ function Kt(t, e, i, a, o) {
413
+ var r;
414
+ t:
415
+ if (e === "style")
416
+ if (typeof i == "string")
417
+ t.style.cssText = i;
418
+ else {
419
+ if (typeof a == "string" && (t.style.cssText = a = ""), a)
420
+ for (e in a)
421
+ i && e in i || wi(t.style, e, "");
422
+ if (i)
423
+ for (e in i)
424
+ a && i[e] === a[e] || wi(t.style, e, i[e]);
425
+ }
426
+ else if (e[0] === "o" && e[1] === "n")
427
+ r = e !== (e = e.replace(/Capture$/, "")), e = e.toLowerCase() in t ? e.toLowerCase().slice(2) : e.slice(2), t.l || (t.l = {}), t.l[e + r] = i, i ? a || t.addEventListener(e, r ? gi : vi, r) : t.removeEventListener(e, r ? gi : vi, r);
428
+ else if (e !== "dangerouslySetInnerHTML") {
429
+ if (o)
430
+ e = e.replace(/xlink(H|:h)/, "h").replace(/sName$/, "s");
431
+ else if (e !== "width" && e !== "height" && e !== "href" && e !== "list" && e !== "form" && e !== "tabIndex" && e !== "download" && e !== "rowSpan" && e !== "colSpan" && e in t)
432
+ try {
433
+ t[e] = i ?? "";
434
+ break t;
435
+ } catch {
436
+ }
437
+ typeof i == "function" || (i == null || i === !1 && e[4] !== "-" ? t.removeAttribute(e) : t.setAttribute(e, i));
438
+ }
439
+ }
440
+ function vi(t) {
441
+ return this.l[t.type + !1](h.event ? h.event(t) : t);
442
+ }
443
+ function gi(t) {
444
+ return this.l[t.type + !0](h.event ? h.event(t) : t);
445
+ }
446
+ function Ke(t, e, i, a, o, r, n, s, l, d) {
447
+ var u, c, w, v, f, g, z, x, b, _, y, E, P, B, L, I = e.type;
448
+ if (e.constructor !== void 0)
449
+ return null;
450
+ i.__h != null && (l = i.__h, s = e.__e = i.__e, e.__h = null, r = [s]), (u = h.__b) && u(e);
451
+ try {
452
+ t:
453
+ if (typeof I == "function") {
454
+ if (x = e.props, b = (u = I.contextType) && a[u.__c], _ = u ? b ? b.props.value : u.__ : a, i.__c ? z = (c = e.__c = i.__c).__ = c.__E : ("prototype" in I && I.prototype.render ? e.__c = c = new I(x, _) : (e.__c = c = new H(x, _), c.constructor = I, c.render = Ls), b && b.sub(c), c.props = x, c.state || (c.state = {}), c.context = _, c.__n = a, w = c.__d = !0, c.__h = [], c._sb = []), c.__s == null && (c.__s = c.state), I.getDerivedStateFromProps != null && (c.__s == c.state && (c.__s = W({}, c.__s)), W(c.__s, I.getDerivedStateFromProps(x, c.__s))), v = c.props, f = c.state, c.__v = e, w)
455
+ I.getDerivedStateFromProps == null && c.componentWillMount != null && c.componentWillMount(), c.componentDidMount != null && c.__h.push(c.componentDidMount);
456
+ else {
457
+ if (I.getDerivedStateFromProps == null && x !== v && c.componentWillReceiveProps != null && c.componentWillReceiveProps(x, _), !c.__e && (c.shouldComponentUpdate != null && c.shouldComponentUpdate(x, c.__s, _) === !1 || e.__v === i.__v)) {
458
+ for (e.__v !== i.__v && (c.props = x, c.state = c.__s, c.__d = !1), e.__e = i.__e, e.__k = i.__k, e.__k.forEach(function(Dt) {
459
+ Dt && (Dt.__ = e);
460
+ }), y = 0; y < c._sb.length; y++)
461
+ c.__h.push(c._sb[y]);
462
+ c._sb = [], c.__h.length && n.push(c);
463
+ break t;
464
+ }
465
+ c.componentWillUpdate != null && c.componentWillUpdate(x, c.__s, _), c.componentDidUpdate != null && c.__h.push(function() {
466
+ c.componentDidUpdate(v, f, g);
467
+ });
468
+ }
469
+ if (c.context = _, c.props = x, c.__P = t, c.__e = !1, E = h.__r, P = 0, "prototype" in I && I.prototype.render) {
470
+ for (c.state = c.__s, c.__d = !1, E && E(e), u = c.render(c.props, c.state, c.context), B = 0; B < c._sb.length; B++)
471
+ c.__h.push(c._sb[B]);
472
+ c._sb = [];
473
+ } else
474
+ do
475
+ c.__d = !1, E && E(e), u = c.render(c.props, c.state, c.context), c.state = c.__s;
476
+ while (c.__d && ++P < 25);
477
+ c.state = c.__s, c.getChildContext != null && (a = W(W({}, a), c.getChildContext())), w || c.getSnapshotBeforeUpdate == null || (g = c.getSnapshotBeforeUpdate(v, f)), ca(t, te(L = u != null && u.type === V && u.key == null ? u.props.children : u) ? L : [L], e, i, a, o, r, n, s, l, d), c.base = e.__e, e.__h = null, c.__h.length && n.push(c), z && (c.__E = c.__ = null);
478
+ } else
479
+ r == null && e.__v === i.__v ? (e.__k = i.__k, e.__e = i.__e) : e.__e = Bs(i.__e, e, i, a, o, r, n, l, d);
480
+ (u = h.diffed) && u(e);
481
+ } catch (Dt) {
482
+ e.__v = null, (l || r != null) && (e.__e = s, e.__h = !!l, r[r.indexOf(s)] = null), h.__e(Dt, e, i);
483
+ }
484
+ }
485
+ function ua(t, e, i) {
486
+ for (var a = 0; a < i.length; a++)
487
+ We(i[a], i[++a], i[++a]);
488
+ h.__c && h.__c(e, t), t.some(function(o) {
489
+ try {
490
+ t = o.__h, o.__h = [], t.some(function(r) {
491
+ r.call(o);
492
+ });
493
+ } catch (r) {
494
+ h.__e(r, o.__v);
495
+ }
496
+ });
497
+ }
498
+ function Bs(t, e, i, a, o, r, n, s, l) {
499
+ var d, u, c, w = i.props, v = e.props, f = e.type, g = 0;
500
+ if (f === "svg" && (o = !0), r != null) {
501
+ for (; g < r.length; g++)
502
+ if ((d = r[g]) && "setAttribute" in d == !!f && (f ? d.localName === f : d.nodeType === 3)) {
503
+ t = d, r[g] = null;
504
+ break;
505
+ }
506
+ }
507
+ if (t == null) {
508
+ if (f === null)
509
+ return document.createTextNode(v);
510
+ t = o ? document.createElementNS("http://www.w3.org/2000/svg", f) : document.createElement(f, v.is && v), r = null, s = !1;
511
+ }
512
+ if (f === null)
513
+ w === v || s && t.data === v || (t.data = v);
514
+ else {
515
+ if (r = r && jt.call(t.childNodes), u = (w = i.props || pt).dangerouslySetInnerHTML, c = v.dangerouslySetInnerHTML, !s) {
516
+ if (r != null)
517
+ for (w = {}, g = 0; g < t.attributes.length; g++)
518
+ w[t.attributes[g].name] = t.attributes[g].value;
519
+ (c || u) && (c && (u && c.__html == u.__html || c.__html === t.innerHTML) || (t.innerHTML = c && c.__html || ""));
520
+ }
521
+ if (Hs(t, v, w, o, s), c)
522
+ e.__k = [];
523
+ else if (ca(t, te(g = e.props.children) ? g : [g], e, i, a, o && f !== "foreignObject", r, n, r ? r[0] : i.__k && Ut(i, 0), s, l), r != null)
524
+ for (g = r.length; g--; )
525
+ r[g] != null && na(r[g]);
526
+ s || ("value" in v && (g = v.value) !== void 0 && (g !== t.value || f === "progress" && !g || f === "option" && g !== w.value) && Kt(t, "value", g, w.value, !1), "checked" in v && (g = v.checked) !== void 0 && g !== t.checked && Kt(t, "checked", g, w.checked, !1));
527
+ }
528
+ return t;
529
+ }
530
+ function We(t, e, i) {
531
+ try {
532
+ typeof t == "function" ? t(e) : t.current = e;
533
+ } catch (a) {
534
+ h.__e(a, i);
535
+ }
536
+ }
537
+ function pa(t, e, i) {
538
+ var a, o;
539
+ if (h.unmount && h.unmount(t), (a = t.ref) && (a.current && a.current !== t.__e || We(a, null, e)), (a = t.__c) != null) {
540
+ if (a.componentWillUnmount)
541
+ try {
542
+ a.componentWillUnmount();
543
+ } catch (r) {
544
+ h.__e(r, e);
545
+ }
546
+ a.base = a.__P = null, t.__c = void 0;
547
+ }
548
+ if (a = t.__k)
549
+ for (o = 0; o < a.length; o++)
550
+ a[o] && pa(a[o], e, i || typeof t.type != "function");
551
+ i || t.__e == null || na(t.__e), t.__ = t.__e = t.__d = void 0;
552
+ }
553
+ function Ls(t, e, i) {
554
+ return this.constructor(t, i);
555
+ }
556
+ function st(t, e, i) {
557
+ var a, o, r, n;
558
+ h.__ && h.__(t, e), o = (a = typeof i == "function") ? null : i && i.__k || e.__k, r = [], n = [], Ke(e, t = (!a && i || e).__k = F(V, null, [t]), o || pt, pt, e.ownerSVGElement !== void 0, !a && i ? [i] : o ? null : e.firstChild ? jt.call(e.childNodes) : null, r, !a && i ? i : o ? o.__e : e.firstChild, a, n), ua(r, t, n);
559
+ }
560
+ function ha(t, e) {
561
+ st(t, e, ha);
562
+ }
563
+ function Rs(t, e, i) {
564
+ var a, o, r, n, s = W({}, t.props);
565
+ for (r in t.type && t.type.defaultProps && (n = t.type.defaultProps), e)
566
+ r == "key" ? a = e[r] : r == "ref" ? o = e[r] : s[r] = e[r] === void 0 && n !== void 0 ? n[r] : e[r];
567
+ return arguments.length > 2 && (s.children = arguments.length > 3 ? jt.call(arguments, 2) : i), Ct(t.type, s, a || t.key, o || t.ref, null);
568
+ }
569
+ function fa(t, e) {
570
+ var i = { __c: e = "__cC" + oa++, __: t, Consumer: function(a, o) {
571
+ return a.children(o);
572
+ }, Provider: function(a) {
573
+ var o, r;
574
+ return this.getChildContext || (o = [], (r = {})[e] = this, this.getChildContext = function() {
575
+ return r;
576
+ }, this.shouldComponentUpdate = function(n) {
577
+ this.props.value !== n.value && o.some(function(s) {
578
+ s.__e = !0, me(s);
579
+ });
580
+ }, this.sub = function(n) {
581
+ o.push(n);
582
+ var s = n.componentWillUnmount;
583
+ n.componentWillUnmount = function() {
584
+ o.splice(o.indexOf(n), 1), s && s.call(n);
585
+ };
586
+ }), a.children;
587
+ } };
588
+ return i.Provider.__ = i.Consumer.contextType = i;
589
+ }
590
+ jt = ra.slice, h = { __e: function(t, e, i, a) {
591
+ for (var o, r, n; e = e.__; )
592
+ if ((o = e.__c) && !o.__)
593
+ try {
594
+ if ((r = o.constructor) && r.getDerivedStateFromError != null && (o.setState(r.getDerivedStateFromError(t)), n = o.__d), o.componentDidCatch != null && (o.componentDidCatch(t, a || {}), n = o.__d), n)
595
+ return o.__E = o;
596
+ } catch (s) {
597
+ t = s;
598
+ }
599
+ throw t;
600
+ } }, ea = 0, ia = function(t) {
601
+ return t != null && t.constructor === void 0;
602
+ }, H.prototype.setState = function(t, e) {
603
+ var i;
604
+ i = this.__s != null && this.__s !== this.state ? this.__s : this.__s = W({}, this.state), typeof t == "function" && (t = t(W({}, i), this.props)), t && W(i, t), t != null && this.__v && (e && this._sb.push(e), me(this));
605
+ }, H.prototype.forceUpdate = function(t) {
606
+ this.__v && (this.__e = !0, t && this.__h.push(t), me(this));
607
+ }, H.prototype.render = V, ot = [], aa = typeof Promise == "function" ? Promise.prototype.then.bind(Promise.resolve()) : setTimeout, _e = function(t, e) {
608
+ return t.__v.__b - e.__v.__b;
609
+ }, Vt.__r = 0, oa = 0;
610
+ function wa(t) {
611
+ var e, i, a = "";
612
+ if (typeof t == "string" || typeof t == "number")
613
+ a += t;
614
+ else if (typeof t == "object")
615
+ if (Array.isArray(t)) {
616
+ var o = t.length;
617
+ for (e = 0; e < o; e++)
618
+ t[e] && (i = wa(t[e])) && (a && (a += " "), a += i);
619
+ } else
620
+ for (i in t)
621
+ t[i] && (a && (a += " "), a += i);
622
+ return a;
623
+ }
624
+ function Ge() {
625
+ for (var t, e, i = 0, a = "", o = arguments.length; i < o; i++)
626
+ (t = arguments[i]) && (e = wa(t)) && (a && (a += " "), a += e);
627
+ return a;
628
+ }
629
+ const bi = (t) => typeof t == "boolean" ? `${t}` : t === 0 ? "0" : t, _i = Ge, Ye = (t, e) => (i) => {
630
+ var a;
631
+ if ((e == null ? void 0 : e.variants) == null)
632
+ return _i(t, i == null ? void 0 : i.class, i == null ? void 0 : i.className);
633
+ const { variants: o, defaultVariants: r } = e, n = Object.keys(o).map((d) => {
634
+ const u = i == null ? void 0 : i[d], c = r == null ? void 0 : r[d];
635
+ if (u === null)
636
+ return null;
637
+ const w = bi(u) || bi(c);
638
+ return o[d][w];
639
+ }), s = i && Object.entries(i).reduce((d, u) => {
640
+ let [c, w] = u;
641
+ return w === void 0 || (d[c] = w), d;
642
+ }, {}), l = e == null || (a = e.compoundVariants) === null || a === void 0 ? void 0 : a.reduce((d, u) => {
643
+ let { class: c, className: w, ...v } = u;
644
+ return Object.entries(v).every((f) => {
645
+ let [g, z] = f;
646
+ return Array.isArray(z) ? z.includes({
647
+ ...r,
648
+ ...s
649
+ }[g]) : {
650
+ ...r,
651
+ ...s
652
+ }[g] === z;
653
+ }) ? [
654
+ ...d,
655
+ c,
656
+ w
657
+ ] : d;
658
+ }, []);
659
+ return _i(t, n, l, i == null ? void 0 : i.class, i == null ? void 0 : i.className);
660
+ };
661
+ var it, C, ne, mi, ft = 0, va = [], Mt = [], yi = h.__b, xi = h.__r, ki = h.diffed, $i = h.__c, Si = h.unmount;
662
+ function bt(t, e) {
663
+ h.__h && h.__h(C, t, ft || e), ft = 0;
664
+ var i = C.__H || (C.__H = { __: [], __h: [] });
665
+ return t >= i.__.length && i.__.push({ __V: Mt }), i.__[t];
666
+ }
667
+ function ga(t) {
668
+ return ft = 1, ba(ya, t);
669
+ }
670
+ function ba(t, e, i) {
671
+ var a = bt(it++, 2);
672
+ if (a.t = t, !a.__c && (a.__ = [i ? i(e) : ya(void 0, e), function(s) {
673
+ var l = a.__N ? a.__N[0] : a.__[0], d = a.t(l, s);
674
+ l !== d && (a.__N = [d, a.__[1]], a.__c.setState({}));
675
+ }], a.__c = C, !C.u)) {
676
+ var o = function(s, l, d) {
677
+ if (!a.__c.__H)
678
+ return !0;
679
+ var u = a.__c.__H.__.filter(function(w) {
680
+ return w.__c;
681
+ });
682
+ if (u.every(function(w) {
683
+ return !w.__N;
684
+ }))
685
+ return !r || r.call(this, s, l, d);
686
+ var c = !1;
687
+ return u.forEach(function(w) {
688
+ if (w.__N) {
689
+ var v = w.__[0];
690
+ w.__ = w.__N, w.__N = void 0, v !== w.__[0] && (c = !0);
691
+ }
692
+ }), !(!c && a.__c.props === s) && (!r || r.call(this, s, l, d));
693
+ };
694
+ C.u = !0;
695
+ var r = C.shouldComponentUpdate, n = C.componentWillUpdate;
696
+ C.componentWillUpdate = function(s, l, d) {
697
+ if (this.__e) {
698
+ var u = r;
699
+ r = void 0, o(s, l, d), r = u;
700
+ }
701
+ n && n.call(this, s, l, d);
702
+ }, C.shouldComponentUpdate = o;
703
+ }
704
+ return a.__N || a.__;
705
+ }
706
+ function _a(t, e) {
707
+ var i = bt(it++, 3);
708
+ !h.__s && qe(i.__H, e) && (i.__ = t, i.i = e, C.__H.__h.push(i));
709
+ }
710
+ function _t(t, e) {
711
+ var i = bt(it++, 4);
712
+ !h.__s && qe(i.__H, e) && (i.__ = t, i.i = e, C.__h.push(i));
713
+ }
714
+ function ee(t) {
715
+ return ft = 5, lt(function() {
716
+ return { current: t };
717
+ }, []);
718
+ }
719
+ function Us(t, e, i) {
720
+ ft = 6, _t(function() {
721
+ return typeof t == "function" ? (t(e()), function() {
722
+ return t(null);
723
+ }) : t ? (t.current = e(), function() {
724
+ return t.current = null;
725
+ }) : void 0;
726
+ }, i == null ? i : i.concat(t));
727
+ }
728
+ function lt(t, e) {
729
+ var i = bt(it++, 7);
730
+ return qe(i.__H, e) ? (i.__V = t(), i.i = e, i.__h = t, i.__V) : i.__;
731
+ }
732
+ function Vs(t, e) {
733
+ return ft = 8, lt(function() {
734
+ return t;
735
+ }, e);
736
+ }
737
+ function ma(t) {
738
+ var e = C.context[t.__c], i = bt(it++, 9);
739
+ return i.c = t, e ? (i.__ == null && (i.__ = !0, e.sub(C)), e.props.value) : t.__;
740
+ }
741
+ function Ks(t, e) {
742
+ h.useDebugValue && h.useDebugValue(e ? e(t) : t);
743
+ }
744
+ function Ws() {
745
+ var t = bt(it++, 11);
746
+ if (!t.__) {
747
+ for (var e = C.__v; e !== null && !e.__m && e.__ !== null; )
748
+ e = e.__;
749
+ var i = e.__m || (e.__m = [0, 0]);
750
+ t.__ = "P" + i[0] + "-" + i[1]++;
751
+ }
752
+ return t.__;
753
+ }
754
+ function Gs() {
755
+ for (var t; t = va.shift(); )
756
+ if (t.__P && t.__H)
757
+ try {
758
+ t.__H.__h.forEach(At), t.__H.__h.forEach(ye), t.__H.__h = [];
759
+ } catch (e) {
760
+ t.__H.__h = [], h.__e(e, t.__v);
761
+ }
762
+ }
763
+ h.__b = function(t) {
764
+ C = null, yi && yi(t);
765
+ }, h.__r = function(t) {
766
+ xi && xi(t), it = 0;
767
+ var e = (C = t.__c).__H;
768
+ e && (ne === C ? (e.__h = [], C.__h = [], e.__.forEach(function(i) {
769
+ i.__N && (i.__ = i.__N), i.__V = Mt, i.__N = i.i = void 0;
770
+ })) : (e.__h.forEach(At), e.__h.forEach(ye), e.__h = [], it = 0)), ne = C;
771
+ }, h.diffed = function(t) {
772
+ ki && ki(t);
773
+ var e = t.__c;
774
+ e && e.__H && (e.__H.__h.length && (va.push(e) !== 1 && mi === h.requestAnimationFrame || ((mi = h.requestAnimationFrame) || Ys)(Gs)), e.__H.__.forEach(function(i) {
775
+ i.i && (i.__H = i.i), i.__V !== Mt && (i.__ = i.__V), i.i = void 0, i.__V = Mt;
776
+ })), ne = C = null;
777
+ }, h.__c = function(t, e) {
778
+ e.some(function(i) {
779
+ try {
780
+ i.__h.forEach(At), i.__h = i.__h.filter(function(a) {
781
+ return !a.__ || ye(a);
782
+ });
783
+ } catch (a) {
784
+ e.some(function(o) {
785
+ o.__h && (o.__h = []);
786
+ }), e = [], h.__e(a, i.__v);
787
+ }
788
+ }), $i && $i(t, e);
789
+ }, h.unmount = function(t) {
790
+ Si && Si(t);
791
+ var e, i = t.__c;
792
+ i && i.__H && (i.__H.__.forEach(function(a) {
793
+ try {
794
+ At(a);
795
+ } catch (o) {
796
+ e = o;
797
+ }
798
+ }), i.__H = void 0, e && h.__e(e, i.__v));
799
+ };
800
+ var Ci = typeof requestAnimationFrame == "function";
801
+ function Ys(t) {
802
+ var e, i = function() {
803
+ clearTimeout(a), Ci && cancelAnimationFrame(e), setTimeout(t);
804
+ }, a = setTimeout(i, 100);
805
+ Ci && (e = requestAnimationFrame(i));
806
+ }
807
+ function At(t) {
808
+ var e = C, i = t.__c;
809
+ typeof i == "function" && (t.__c = void 0, i()), C = e;
810
+ }
811
+ function ye(t) {
812
+ var e = C;
813
+ t.__c = t.__(), C = e;
814
+ }
815
+ function qe(t, e) {
816
+ return !t || t.length !== e.length || e.some(function(i, a) {
817
+ return i !== t[a];
818
+ });
819
+ }
820
+ function ya(t, e) {
821
+ return typeof e == "function" ? e(t) : e;
822
+ }
823
+ function xa(t, e) {
824
+ for (var i in e)
825
+ t[i] = e[i];
826
+ return t;
827
+ }
828
+ function xe(t, e) {
829
+ for (var i in t)
830
+ if (i !== "__source" && !(i in e))
831
+ return !0;
832
+ for (var a in e)
833
+ if (a !== "__source" && t[a] !== e[a])
834
+ return !0;
835
+ return !1;
836
+ }
837
+ function se(t, e) {
838
+ return t === e && (t !== 0 || 1 / t == 1 / e) || t != t && e != e;
839
+ }
840
+ function ke(t) {
841
+ this.props = t;
842
+ }
843
+ function qs(t, e) {
844
+ function i(o) {
845
+ var r = this.props.ref, n = r == o.ref;
846
+ return !n && r && (r.call ? r(null) : r.current = null), e ? !e(this.props, o) || !n : xe(this.props, o);
847
+ }
848
+ function a(o) {
849
+ return this.shouldComponentUpdate = i, F(t, o);
850
+ }
851
+ return a.displayName = "Memo(" + (t.displayName || t.name) + ")", a.prototype.isReactComponent = !0, a.__f = !0, a;
852
+ }
853
+ (ke.prototype = new H()).isPureReactComponent = !0, ke.prototype.shouldComponentUpdate = function(t, e) {
854
+ return xe(this.props, t) || xe(this.state, e);
855
+ };
856
+ var Ei = h.__b;
857
+ h.__b = function(t) {
858
+ t.type && t.type.__f && t.ref && (t.props.ref = t.ref, t.ref = null), Ei && Ei(t);
859
+ };
860
+ var Js = typeof Symbol < "u" && Symbol.for && Symbol.for("react.forward_ref") || 3911;
861
+ function Xs(t) {
862
+ function e(i) {
863
+ var a = xa({}, i);
864
+ return delete a.ref, t(a, i.ref || null);
865
+ }
866
+ return e.$$typeof = Js, e.render = e, e.prototype.isReactComponent = e.__f = !0, e.displayName = "ForwardRef(" + (t.displayName || t.name) + ")", e;
867
+ }
868
+ var Ti = function(t, e) {
869
+ return t == null ? null : G(G(t).map(e));
870
+ }, Zs = { map: Ti, forEach: Ti, count: function(t) {
871
+ return t ? G(t).length : 0;
872
+ }, only: function(t) {
873
+ var e = G(t);
874
+ if (e.length !== 1)
875
+ throw "Children.only";
876
+ return e[0];
877
+ }, toArray: G }, Qs = h.__e;
878
+ h.__e = function(t, e, i, a) {
879
+ if (t.then) {
880
+ for (var o, r = e; r = r.__; )
881
+ if ((o = r.__c) && o.__c)
882
+ return e.__e == null && (e.__e = i.__e, e.__k = i.__k), o.__c(t, e);
883
+ }
884
+ Qs(t, e, i, a);
885
+ };
886
+ var Pi = h.unmount;
887
+ function ka(t, e, i) {
888
+ return t && (t.__c && t.__c.__H && (t.__c.__H.__.forEach(function(a) {
889
+ typeof a.__c == "function" && a.__c();
890
+ }), t.__c.__H = null), (t = xa({}, t)).__c != null && (t.__c.__P === i && (t.__c.__P = e), t.__c = null), t.__k = t.__k && t.__k.map(function(a) {
891
+ return ka(a, e, i);
892
+ })), t;
893
+ }
894
+ function $a(t, e, i) {
895
+ return t && (t.__v = null, t.__k = t.__k && t.__k.map(function(a) {
896
+ return $a(a, e, i);
897
+ }), t.__c && t.__c.__P === e && (t.__e && i.insertBefore(t.__e, t.__d), t.__c.__e = !0, t.__c.__P = i)), t;
898
+ }
899
+ function Et() {
900
+ this.__u = 0, this.t = null, this.__b = null;
901
+ }
902
+ function Sa(t) {
903
+ var e = t.__.__c;
904
+ return e && e.__a && e.__a(t);
905
+ }
906
+ function Ca(t) {
907
+ var e, i, a;
908
+ function o(r) {
909
+ if (e || (e = t()).then(function(n) {
910
+ i = n.default || n;
911
+ }, function(n) {
912
+ a = n;
913
+ }), a)
914
+ throw a;
915
+ if (!i)
916
+ throw e;
917
+ return F(i, r);
918
+ }
919
+ return o.displayName = "Lazy", o.__f = !0, o;
920
+ }
921
+ function St() {
922
+ this.u = null, this.o = null;
923
+ }
924
+ h.unmount = function(t) {
925
+ var e = t.__c;
926
+ e && e.__R && e.__R(), e && t.__h === !0 && (t.type = null), Pi && Pi(t);
927
+ }, (Et.prototype = new H()).__c = function(t, e) {
928
+ var i = e.__c, a = this;
929
+ a.t == null && (a.t = []), a.t.push(i);
930
+ var o = Sa(a.__v), r = !1, n = function() {
931
+ r || (r = !0, i.__R = null, o ? o(s) : s());
932
+ };
933
+ i.__R = n;
934
+ var s = function() {
935
+ if (!--a.__u) {
936
+ if (a.state.__a) {
937
+ var d = a.state.__a;
938
+ a.__v.__k[0] = $a(d, d.__c.__P, d.__c.__O);
939
+ }
940
+ var u;
941
+ for (a.setState({ __a: a.__b = null }); u = a.t.pop(); )
942
+ u.forceUpdate();
943
+ }
944
+ }, l = e.__h === !0;
945
+ a.__u++ || l || a.setState({ __a: a.__b = a.__v.__k[0] }), t.then(n, n);
946
+ }, Et.prototype.componentWillUnmount = function() {
947
+ this.t = [];
948
+ }, Et.prototype.render = function(t, e) {
949
+ if (this.__b) {
950
+ if (this.__v.__k) {
951
+ var i = document.createElement("div"), a = this.__v.__k[0].__c;
952
+ this.__v.__k[0] = ka(this.__b, i, a.__O = a.__P);
953
+ }
954
+ this.__b = null;
955
+ }
956
+ var o = e.__a && F(V, null, t.fallback);
957
+ return o && (o.__h = null), [F(V, null, e.__a ? null : t.children), o];
958
+ };
959
+ var Oi = function(t, e, i) {
960
+ if (++i[1] === i[0] && t.o.delete(e), t.props.revealOrder && (t.props.revealOrder[0] !== "t" || !t.o.size))
961
+ for (i = t.u; i; ) {
962
+ for (; i.length > 3; )
963
+ i.pop()();
964
+ if (i[1] < i[0])
965
+ break;
966
+ t.u = i = i[2];
967
+ }
968
+ };
969
+ function tc(t) {
970
+ return this.getChildContext = function() {
971
+ return t.context;
972
+ }, t.children;
973
+ }
974
+ function ec(t) {
975
+ var e = this, i = t.i;
976
+ e.componentWillUnmount = function() {
977
+ st(null, e.l), e.l = null, e.i = null;
978
+ }, e.i && e.i !== i && e.componentWillUnmount(), t.__v ? (e.l || (e.i = i, e.l = { nodeType: 1, parentNode: i, childNodes: [], appendChild: function(a) {
979
+ this.childNodes.push(a), e.i.appendChild(a);
980
+ }, insertBefore: function(a, o) {
981
+ this.childNodes.push(a), e.i.appendChild(a);
982
+ }, removeChild: function(a) {
983
+ this.childNodes.splice(this.childNodes.indexOf(a) >>> 1, 1), e.i.removeChild(a);
984
+ } }), st(F(tc, { context: e.context }, t.__v), e.l)) : e.l && e.componentWillUnmount();
985
+ }
986
+ function ic(t, e) {
987
+ var i = F(ec, { __v: t, i: e });
988
+ return i.containerInfo = e, i;
989
+ }
990
+ (St.prototype = new H()).__a = function(t) {
991
+ var e = this, i = Sa(e.__v), a = e.o.get(t);
992
+ return a[0]++, function(o) {
993
+ var r = function() {
994
+ e.props.revealOrder ? (a.push(o), Oi(e, t, a)) : o();
995
+ };
996
+ i ? i(r) : r();
997
+ };
998
+ }, St.prototype.render = function(t) {
999
+ this.u = null, this.o = /* @__PURE__ */ new Map();
1000
+ var e = G(t.children);
1001
+ t.revealOrder && t.revealOrder[0] === "b" && e.reverse();
1002
+ for (var i = e.length; i--; )
1003
+ this.o.set(e[i], this.u = [1, 0, this.u]);
1004
+ return t.children;
1005
+ }, St.prototype.componentDidUpdate = St.prototype.componentDidMount = function() {
1006
+ var t = this;
1007
+ this.o.forEach(function(e, i) {
1008
+ Oi(t, i, e);
1009
+ });
1010
+ };
1011
+ var Ea = typeof Symbol < "u" && Symbol.for && Symbol.for("react.element") || 60103, ac = /^(?: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]/, oc = /^on(Ani|Tra|Tou|BeforeInp|Compo)/, rc = /[A-Z0-9]/g, nc = typeof document < "u", sc = function(t) {
1012
+ return (typeof Symbol < "u" && typeof Symbol() == "symbol" ? /fil|che|rad/ : /fil|che|ra/).test(t);
1013
+ };
1014
+ function cc(t, e, i) {
1015
+ return e.__k == null && (e.textContent = ""), st(t, e), typeof i == "function" && i(), t ? t.__c : null;
1016
+ }
1017
+ function lc(t, e, i) {
1018
+ return ha(t, e), typeof i == "function" && i(), t ? t.__c : null;
1019
+ }
1020
+ H.prototype.isReactComponent = {}, ["componentWillMount", "componentWillReceiveProps", "componentWillUpdate"].forEach(function(t) {
1021
+ Object.defineProperty(H.prototype, t, { configurable: !0, get: function() {
1022
+ return this["UNSAFE_" + t];
1023
+ }, set: function(e) {
1024
+ Object.defineProperty(this, t, { configurable: !0, writable: !0, value: e });
1025
+ } });
1026
+ });
1027
+ var ji = h.event;
1028
+ function dc() {
1029
+ }
1030
+ function uc() {
1031
+ return this.cancelBubble;
1032
+ }
1033
+ function pc() {
1034
+ return this.defaultPrevented;
1035
+ }
1036
+ h.event = function(t) {
1037
+ return ji && (t = ji(t)), t.persist = dc, t.isPropagationStopped = uc, t.isDefaultPrevented = pc, t.nativeEvent = t;
1038
+ };
1039
+ var Je, hc = { enumerable: !1, configurable: !0, get: function() {
1040
+ return this.class;
1041
+ } }, Ii = h.vnode;
1042
+ h.vnode = function(t) {
1043
+ typeof t.type == "string" && function(e) {
1044
+ var i = e.props, a = e.type, o = {};
1045
+ for (var r in i) {
1046
+ var n = i[r];
1047
+ if (!(r === "value" && "defaultValue" in i && n == null || nc && r === "children" && a === "noscript" || r === "class" || r === "className")) {
1048
+ var s = r.toLowerCase();
1049
+ r === "defaultValue" && "value" in i && i.value == null ? r = "value" : r === "download" && n === !0 ? n = "" : s === "ondoubleclick" ? r = "ondblclick" : s !== "onchange" || a !== "input" && a !== "textarea" || sc(i.type) ? s === "onfocus" ? r = "onfocusin" : s === "onblur" ? r = "onfocusout" : oc.test(r) ? r = s : a.indexOf("-") === -1 && ac.test(r) ? r = r.replace(rc, "-$&").toLowerCase() : n === null && (n = void 0) : s = r = "oninput", s === "oninput" && o[r = s] && (r = "oninputCapture"), o[r] = n;
1050
+ }
1051
+ }
1052
+ a == "select" && o.multiple && Array.isArray(o.value) && (o.value = G(i.children).forEach(function(l) {
1053
+ l.props.selected = o.value.indexOf(l.props.value) != -1;
1054
+ })), a == "select" && o.defaultValue != null && (o.value = G(i.children).forEach(function(l) {
1055
+ l.props.selected = o.multiple ? o.defaultValue.indexOf(l.props.value) != -1 : o.defaultValue == l.props.value;
1056
+ })), i.class && !i.className ? (o.class = i.class, Object.defineProperty(o, "className", hc)) : (i.className && !i.class || i.class && i.className) && (o.class = o.className = i.className), e.props = o;
1057
+ }(t), t.$$typeof = Ea, Ii && Ii(t);
1058
+ };
1059
+ var Di = h.__r;
1060
+ h.__r = function(t) {
1061
+ Di && Di(t), Je = t.__c;
1062
+ };
1063
+ var zi = h.diffed;
1064
+ h.diffed = function(t) {
1065
+ zi && zi(t);
1066
+ var e = t.props, i = t.__e;
1067
+ i != null && t.type === "textarea" && "value" in e && e.value !== i.value && (i.value = e.value == null ? "" : e.value), Je = null;
1068
+ };
1069
+ var fc = { ReactCurrentDispatcher: { current: { readContext: function(t) {
1070
+ return Je.__n[t.__c].props.value;
1071
+ } } } };
1072
+ function wc(t) {
1073
+ return F.bind(null, t);
1074
+ }
1075
+ function Ta(t) {
1076
+ return !!t && t.$$typeof === Ea;
1077
+ }
1078
+ function vc(t) {
1079
+ return Ta(t) ? Rs.apply(null, arguments) : t;
1080
+ }
1081
+ function gc(t) {
1082
+ return !!t.__k && (st(null, t), !0);
1083
+ }
1084
+ function bc(t) {
1085
+ return t && (t.base || t.nodeType === 1 && t) || null;
1086
+ }
1087
+ var _c = function(t, e) {
1088
+ return t(e);
1089
+ }, mc = function(t, e) {
1090
+ return t(e);
1091
+ }, yc = V;
1092
+ function Pa(t) {
1093
+ t();
1094
+ }
1095
+ function xc(t) {
1096
+ return t;
1097
+ }
1098
+ function kc() {
1099
+ return [!1, Pa];
1100
+ }
1101
+ var $c = _t;
1102
+ function Sc(t, e) {
1103
+ var i = e(), a = ga({ h: { __: i, v: e } }), o = a[0].h, r = a[1];
1104
+ return _t(function() {
1105
+ o.__ = i, o.v = e, se(o.__, e()) || r({ h: o });
1106
+ }, [t, i, e]), _a(function() {
1107
+ return se(o.__, o.v()) || r({ h: o }), t(function() {
1108
+ se(o.__, o.v()) || r({ h: o });
1109
+ });
1110
+ }, [t]), i;
1111
+ }
1112
+ var rd = { useState: ga, useId: Ws, useReducer: ba, useEffect: _a, useLayoutEffect: _t, useInsertionEffect: $c, useTransition: kc, useDeferredValue: xc, useSyncExternalStore: Sc, startTransition: Pa, useRef: ee, useImperativeHandle: Us, useMemo: lt, useCallback: Vs, useContext: ma, useDebugValue: Ks, version: "17.0.2", Children: Zs, render: cc, hydrate: lc, unmountComponentAtNode: gc, createPortal: ic, createElement: F, createContext: fa, createFactory: wc, cloneElement: vc, createRef: As, Fragment: V, isValidElement: Ta, findDOMNode: bc, Component: H, PureComponent: ke, memo: qs, forwardRef: Xs, flushSync: mc, unstable_batchedUpdates: _c, StrictMode: yc, Suspense: Et, SuspenseList: St, lazy: Ca, __SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED: fc };
1113
+ const M = Symbol.for("@ts-pattern/matcher"), Oa = Symbol.for("@ts-pattern/isVariadic"), Wt = "@ts-pattern/anonymous-select-key", $e = (t) => !!(t && typeof t == "object"), Ft = (t) => t && !!t[M], T = (t, e, i) => {
1114
+ if (Ft(t)) {
1115
+ const a = t[M](), { matched: o, selections: r } = a.match(e);
1116
+ return o && r && Object.keys(r).forEach((n) => i(n, r[n])), o;
1117
+ }
1118
+ if ($e(t)) {
1119
+ if (!$e(e))
1120
+ return !1;
1121
+ if (Array.isArray(t)) {
1122
+ if (!Array.isArray(e))
1123
+ return !1;
1124
+ let a = [], o = [], r = [];
1125
+ for (const n of t.keys()) {
1126
+ const s = t[n];
1127
+ Ft(s) && s[Oa] ? r.push(s) : r.length ? o.push(s) : a.push(s);
1128
+ }
1129
+ if (r.length) {
1130
+ if (r.length > 1)
1131
+ throw new Error("Pattern error: Using `...P.array(...)` several times in a single pattern is not allowed.");
1132
+ if (e.length < a.length + o.length)
1133
+ return !1;
1134
+ const n = 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);
1135
+ return a.every((d, u) => T(d, n[u], i)) && o.every((d, u) => T(d, s[u], i)) && (r.length === 0 || T(r[0], l, i));
1136
+ }
1137
+ return t.length === e.length && t.every((n, s) => T(n, e[s], i));
1138
+ }
1139
+ return Reflect.ownKeys(t).every((a) => {
1140
+ const o = t[a];
1141
+ return (a in e || Ft(r = o) && r[M]().matcherType === "optional") && T(o, e[a], i);
1142
+ var r;
1143
+ });
1144
+ }
1145
+ return Object.is(e, t);
1146
+ }, N = (t) => {
1147
+ var e, i, a;
1148
+ return $e(t) ? Ft(t) ? (e = (i = (a = t[M]()).getSelectionKeys) == null ? void 0 : i.call(a)) != null ? e : [] : Array.isArray(t) ? Pt(t, N) : Pt(Object.values(t), N) : [];
1149
+ }, Pt = (t, e) => t.reduce((i, a) => i.concat(e(a)), []);
1150
+ function Cc(...t) {
1151
+ if (t.length === 1) {
1152
+ const [e] = t;
1153
+ return (i) => T(e, i, () => {
1154
+ });
1155
+ }
1156
+ if (t.length === 2) {
1157
+ const [e, i] = t;
1158
+ return T(e, i, () => {
1159
+ });
1160
+ }
1161
+ throw new Error(`isMatching wasn't given the right number of arguments: expected 1 or 2, received ${t.length}.`);
1162
+ }
1163
+ function O(t) {
1164
+ return Object.assign(t, { optional: () => Xe(t), and: (e) => S(t, e), or: (e) => ja(t, e), select: (e) => e === void 0 ? Ot(t) : Ot(e, t) });
1165
+ }
1166
+ function Se(t) {
1167
+ return Object.assign(((e) => Object.assign(e, { [Symbol.iterator]() {
1168
+ let i = 0;
1169
+ const a = [{ value: Object.assign(e, { [Oa]: !0 }), done: !1 }, { done: !0, value: void 0 }];
1170
+ return { next: () => {
1171
+ var o;
1172
+ return (o = a[i++]) != null ? o : a.at(-1);
1173
+ } };
1174
+ } }))(t), { optional: () => Se(Xe(t)), select: (e) => Se(e === void 0 ? Ot(t) : Ot(e, t)) });
1175
+ }
1176
+ function Xe(t) {
1177
+ return O({ [M]: () => ({ match: (e) => {
1178
+ let i = {};
1179
+ const a = (o, r) => {
1180
+ i[o] = r;
1181
+ };
1182
+ return e === void 0 ? (N(t).forEach((o) => a(o, void 0)), { matched: !0, selections: i }) : { matched: T(t, e, a), selections: i };
1183
+ }, getSelectionKeys: () => N(t), matcherType: "optional" }) });
1184
+ }
1185
+ const Ec = (t, e) => {
1186
+ for (const i of t)
1187
+ if (!e(i))
1188
+ return !1;
1189
+ return !0;
1190
+ }, Tc = (t, e) => {
1191
+ for (const [i, a] of t.entries())
1192
+ if (!e(a, i))
1193
+ return !1;
1194
+ return !0;
1195
+ }, Pc = (t, e) => {
1196
+ const i = Reflect.ownKeys(t);
1197
+ for (const a of i)
1198
+ if (!e(a, t[a]))
1199
+ return !1;
1200
+ return !0;
1201
+ };
1202
+ function S(...t) {
1203
+ return O({ [M]: () => ({ match: (e) => {
1204
+ let i = {};
1205
+ const a = (o, r) => {
1206
+ i[o] = r;
1207
+ };
1208
+ return { matched: t.every((o) => T(o, e, a)), selections: i };
1209
+ }, getSelectionKeys: () => Pt(t, N), matcherType: "and" }) });
1210
+ }
1211
+ function ja(...t) {
1212
+ return O({ [M]: () => ({ match: (e) => {
1213
+ let i = {};
1214
+ const a = (o, r) => {
1215
+ i[o] = r;
1216
+ };
1217
+ return Pt(t, N).forEach((o) => a(o, void 0)), { matched: t.some((o) => T(o, e, a)), selections: i };
1218
+ }, getSelectionKeys: () => Pt(t, N), matcherType: "or" }) });
1219
+ }
1220
+ function m(t) {
1221
+ return { [M]: () => ({ match: (e) => ({ matched: !!t(e) }) }) };
1222
+ }
1223
+ function Ot(...t) {
1224
+ const e = typeof t[0] == "string" ? t[0] : void 0, i = t.length === 2 ? t[1] : typeof t[0] == "string" ? void 0 : t[0];
1225
+ return O({ [M]: () => ({ match: (a) => {
1226
+ let o = { [e ?? Wt]: a };
1227
+ return { matched: i === void 0 || T(i, a, (r, n) => {
1228
+ o[r] = n;
1229
+ }), selections: o };
1230
+ }, getSelectionKeys: () => [e ?? Wt].concat(i === void 0 ? [] : N(i)) }) });
1231
+ }
1232
+ function Ia(t) {
1233
+ return !0;
1234
+ }
1235
+ function R(t) {
1236
+ return typeof t == "number";
1237
+ }
1238
+ function Y(t) {
1239
+ return typeof t == "string";
1240
+ }
1241
+ function q(t) {
1242
+ return typeof t == "bigint";
1243
+ }
1244
+ const Da = O(m(Ia)), Oc = O(m(Ia)), jc = Da, J = (t) => Object.assign(O(t), { startsWith: (e) => {
1245
+ return J(S(t, (i = e, m((a) => Y(a) && a.startsWith(i)))));
1246
+ var i;
1247
+ }, endsWith: (e) => {
1248
+ return J(S(t, (i = e, m((a) => Y(a) && a.endsWith(i)))));
1249
+ var i;
1250
+ }, minLength: (e) => J(S(t, ((i) => m((a) => Y(a) && a.length >= i))(e))), length: (e) => J(S(t, ((i) => m((a) => Y(a) && a.length === i))(e))), maxLength: (e) => J(S(t, ((i) => m((a) => Y(a) && a.length <= i))(e))), includes: (e) => {
1251
+ return J(S(t, (i = e, m((a) => Y(a) && a.includes(i)))));
1252
+ var i;
1253
+ }, regex: (e) => {
1254
+ return J(S(t, (i = e, m((a) => Y(a) && !!a.match(i)))));
1255
+ var i;
1256
+ } }), Ni = J(m(Y)), U = (t) => Object.assign(O(t), { between: (e, i) => U(S(t, ((a, o) => m((r) => R(r) && a <= r && o >= r))(e, i))), lt: (e) => U(S(t, ((i) => m((a) => R(a) && a < i))(e))), gt: (e) => U(S(t, ((i) => m((a) => R(a) && a > i))(e))), lte: (e) => U(S(t, ((i) => m((a) => R(a) && a <= i))(e))), gte: (e) => U(S(t, ((i) => m((a) => R(a) && a >= i))(e))), int: () => U(S(t, m((e) => R(e) && Number.isInteger(e)))), finite: () => U(S(t, m((e) => R(e) && Number.isFinite(e)))), positive: () => U(S(t, m((e) => R(e) && e > 0))), negative: () => U(S(t, m((e) => R(e) && e < 0))) }), Ic = U(m(R)), X = (t) => Object.assign(O(t), { between: (e, i) => X(S(t, ((a, o) => m((r) => q(r) && a <= r && o >= r))(e, i))), lt: (e) => X(S(t, ((i) => m((a) => q(a) && a < i))(e))), gt: (e) => X(S(t, ((i) => m((a) => q(a) && a > i))(e))), lte: (e) => X(S(t, ((i) => m((a) => q(a) && a <= i))(e))), gte: (e) => X(S(t, ((i) => m((a) => q(a) && a >= i))(e))), positive: () => X(S(t, m((e) => q(e) && e > 0))), negative: () => X(S(t, m((e) => q(e) && e < 0))) }), Dc = X(m(q)), zc = O(m(function(t) {
1257
+ return typeof t == "boolean";
1258
+ })), Nc = O(m(function(t) {
1259
+ return typeof t == "symbol";
1260
+ })), Mc = O(m(function(t) {
1261
+ return t == null;
1262
+ })), Ac = O(m(function(t) {
1263
+ return t != null;
1264
+ }));
1265
+ var dt = { __proto__: null, matcher: M, optional: Xe, array: function(...t) {
1266
+ return Se({ [M]: () => ({ match: (e) => {
1267
+ if (!Array.isArray(e))
1268
+ return { matched: !1 };
1269
+ if (t.length === 0)
1270
+ return { matched: !0 };
1271
+ const i = t[0];
1272
+ let a = {};
1273
+ if (e.length === 0)
1274
+ return N(i).forEach((r) => {
1275
+ a[r] = [];
1276
+ }), { matched: !0, selections: a };
1277
+ const o = (r, n) => {
1278
+ a[r] = (a[r] || []).concat([n]);
1279
+ };
1280
+ return { matched: e.every((r) => T(i, r, o)), selections: a };
1281
+ }, getSelectionKeys: () => t.length === 0 ? [] : N(t[0]) }) });
1282
+ }, set: function(...t) {
1283
+ return O({ [M]: () => ({ match: (e) => {
1284
+ if (!(e instanceof Set))
1285
+ return { matched: !1 };
1286
+ let i = {};
1287
+ if (e.size === 0)
1288
+ return { matched: !0, selections: i };
1289
+ if (t.length === 0)
1290
+ return { matched: !0 };
1291
+ const a = (r, n) => {
1292
+ i[r] = (i[r] || []).concat([n]);
1293
+ }, o = t[0];
1294
+ return { matched: Ec(e, (r) => T(o, r, a)), selections: i };
1295
+ }, getSelectionKeys: () => t.length === 0 ? [] : N(t[0]) }) });
1296
+ }, map: function(...t) {
1297
+ return O({ [M]: () => ({ match: (e) => {
1298
+ if (!(e instanceof Map))
1299
+ return { matched: !1 };
1300
+ let i = {};
1301
+ if (e.size === 0)
1302
+ return { matched: !0, selections: i };
1303
+ const a = (s, l) => {
1304
+ i[s] = (i[s] || []).concat([l]);
1305
+ };
1306
+ if (t.length === 0)
1307
+ return { matched: !0 };
1308
+ var o;
1309
+ if (t.length === 1)
1310
+ throw new Error(`\`P.map\` wasn't given enough arguments. Expected (key, value), received ${(o = t[0]) == null ? void 0 : o.toString()}`);
1311
+ const [r, n] = t;
1312
+ return { matched: Tc(e, (s, l) => {
1313
+ const d = T(r, l, a), u = T(n, s, a);
1314
+ return d && u;
1315
+ }), selections: i };
1316
+ }, getSelectionKeys: () => t.length === 0 ? [] : [...N(t[0]), ...N(t[1])] }) });
1317
+ }, record: function(...t) {
1318
+ return O({ [M]: () => ({ match: (e) => {
1319
+ if (e === null || typeof e != "object" || Array.isArray(e))
1320
+ return { matched: !1 };
1321
+ var i;
1322
+ if (t.length === 0)
1323
+ throw new Error(`\`P.record\` wasn't given enough arguments. Expected (value) or (key, value), received ${(i = t[0]) == null ? void 0 : i.toString()}`);
1324
+ let a = {};
1325
+ const o = (s, l) => {
1326
+ a[s] = (a[s] || []).concat([l]);
1327
+ }, [r, n] = t.length === 1 ? [Ni, t[0]] : t;
1328
+ return { matched: Pc(e, (s, l) => {
1329
+ const d = typeof s != "string" || Number.isNaN(Number(s)) ? null : Number(s), u = d !== null && T(r, d, o), c = T(r, s, o), w = T(n, l, o);
1330
+ return (c || u) && w;
1331
+ }), selections: a };
1332
+ }, getSelectionKeys: () => t.length === 0 ? [] : [...N(t[0]), ...N(t[1])] }) });
1333
+ }, intersection: S, union: ja, not: function(t) {
1334
+ return O({ [M]: () => ({ match: (e) => ({ matched: !T(t, e, () => {
1335
+ }) }), getSelectionKeys: () => [], matcherType: "not" }) });
1336
+ }, when: m, select: Ot, any: Da, unknown: Oc, _: jc, string: Ni, number: Ic, bigint: Dc, boolean: zc, symbol: Nc, nullish: Mc, nonNullable: Ac, instanceOf: function(t) {
1337
+ return O(m(function(e) {
1338
+ return (i) => i instanceof e;
1339
+ }(t)));
1340
+ }, shape: function(t) {
1341
+ return O(m(Cc(t)));
1342
+ } };
1343
+ class Fc extends Error {
1344
+ constructor(e) {
1345
+ let i;
1346
+ try {
1347
+ i = JSON.stringify(e);
1348
+ } catch {
1349
+ i = e;
1350
+ }
1351
+ super(`Pattern matching error: no pattern matches value ${i}`), this.input = void 0, this.input = e;
1352
+ }
1353
+ }
1354
+ const Ce = { matched: !1, value: void 0 };
1355
+ function ie(t) {
1356
+ return new Gt(t, Ce);
1357
+ }
1358
+ class Gt {
1359
+ constructor(e, i) {
1360
+ this.input = void 0, this.state = void 0, this.input = e, this.state = i;
1361
+ }
1362
+ with(...e) {
1363
+ if (this.state.matched)
1364
+ return this;
1365
+ const i = e[e.length - 1], a = [e[0]];
1366
+ let o;
1367
+ e.length === 3 && typeof e[1] == "function" ? o = e[1] : e.length > 2 && a.push(...e.slice(1, e.length - 1));
1368
+ let r = !1, n = {};
1369
+ const s = (d, u) => {
1370
+ r = !0, n[d] = u;
1371
+ }, l = !a.some((d) => T(d, this.input, s)) || o && !o(this.input) ? Ce : { matched: !0, value: i(r ? Wt in n ? n[Wt] : n : this.input, this.input) };
1372
+ return new Gt(this.input, l);
1373
+ }
1374
+ when(e, i) {
1375
+ if (this.state.matched)
1376
+ return this;
1377
+ const a = !!e(this.input);
1378
+ return new Gt(this.input, a ? { matched: !0, value: i(this.input, this.input) } : Ce);
1379
+ }
1380
+ otherwise(e) {
1381
+ return this.state.matched ? this.state.value : e(this.input);
1382
+ }
1383
+ exhaustive(e = Hc) {
1384
+ return this.state.matched ? this.state.value : e(this.input);
1385
+ }
1386
+ run() {
1387
+ return this.exhaustive();
1388
+ }
1389
+ returnType() {
1390
+ return this;
1391
+ }
1392
+ narrow() {
1393
+ return this;
1394
+ }
1395
+ }
1396
+ function Hc(t) {
1397
+ throw new Fc(t);
1398
+ }
1399
+ var Bc = ["other", "few", "many", "two", "one", "zero"], Mi = ({
1400
+ terms: t,
1401
+ overrides: e,
1402
+ locale: i
1403
+ }) => {
1404
+ const a = new Intl.PluralRules(i);
1405
+ function o(r, n) {
1406
+ const s = (e == null ? void 0 : e[r]) ?? t[r];
1407
+ switch (typeof s) {
1408
+ case "string":
1409
+ return s.replace(/{{(\w+)}}/g, (l, d) => {
1410
+ var u;
1411
+ return ((u = n == null ? void 0 : n[d]) == null ? void 0 : u.toString()) ?? "";
1412
+ });
1413
+ case "object": {
1414
+ if (typeof (n == null ? void 0 : n.count) != "number")
1415
+ throw new Error(`Missing count for translation key “${r.toString()}”`);
1416
+ let l = a.select(n.count);
1417
+ if (!(l in s)) {
1418
+ const d = Bc.find((u) => u in s);
1419
+ if (!d)
1420
+ throw new Error(`Missing plural rule for translation key “${r.toString()}”`);
1421
+ l = d;
1422
+ }
1423
+ return s[l].replace(/{{(\w+)}}/g, (d, u) => {
1424
+ var c;
1425
+ return ((c = n == null ? void 0 : n[u]) == null ? void 0 : c.toString()) ?? "";
1426
+ });
1427
+ }
1428
+ default:
1429
+ throw new Error(`Invalid translation value in dictionary for key “${r.toString()}”.`);
1430
+ }
1431
+ }
1432
+ return o;
1433
+ }, Lc = 0;
1434
+ function p(t, e, i, a, o, r) {
1435
+ var n, s, l = {};
1436
+ for (s in e)
1437
+ s == "ref" ? n = e[s] : l[s] = e[s];
1438
+ var d = { type: t, props: l, key: i, ref: n, __k: null, __: null, __b: 0, __e: null, __d: void 0, __c: null, __h: null, constructor: void 0, __v: --Lc, __source: o, __self: r };
1439
+ if (typeof t == "function" && (n = t.defaultProps))
1440
+ for (s in n)
1441
+ l[s] === void 0 && (l[s] = n[s]);
1442
+ return h.vnode && h.vnode(d), d;
1443
+ }
1444
+ var Ai = fa(null), Rc = (t) => ({
1445
+ defaultTerms: t,
1446
+ TranslationProvider: ({ terms: e, children: i, locale: a }) => {
1447
+ const o = lt(() => Mi({ locale: a, terms: t, overrides: e }), [e, a]);
1448
+ return /* @__PURE__ */ p(Ai.Provider, { value: { t: o, locale: a }, children: i });
1449
+ },
1450
+ useTranslation: () => {
1451
+ const e = ma(Ai);
1452
+ if (e === null)
1453
+ throw new Error("Please wrap useTranslation in a TranslationProvider");
1454
+ return { t: e.t, locale: e.locale };
1455
+ },
1456
+ createTFunction: ({
1457
+ overrides: e,
1458
+ locale: i
1459
+ }) => Mi({ terms: t, overrides: e, locale: i })
1460
+ });
1461
+ const {
1462
+ TranslationProvider: Uc,
1463
+ useTranslation: Ze,
1464
+ createTFunction: Vc
1465
+ } = Rc({
1466
+ error_heading: "Something unexpected happened",
1467
+ undo: "Undo",
1468
+ send: "Send",
1469
+ skip: "Skip",
1470
+ skipped: "Skipped",
1471
+ submission_redirect_message: "Almost there! Please complete your submission here:",
1472
+ complete_submission: "Complete submission",
1473
+ submission_completed: "Submission completed!",
1474
+ submission_failed: "Failed to submit",
1475
+ maximize: "Maximise",
1476
+ minimize: "Minimise",
1477
+ close_application: "Close application",
1478
+ /** When an application is at an invalid state, the user will get this error. */
1479
+ invalid_state: "Invalid application state",
1480
+ redirect_url_error: "Couldn’t get the redirect URL.",
1481
+ upload_file: {
1482
+ one: "Select file to upload",
1483
+ other: "Select files to upload"
1484
+ },
1485
+ file_max_size: "max {{size}}",
1486
+ file_extensions: "Accepted file extensions",
1487
+ address_error: "Something went wrong! Plase continue manually",
1488
+ address_search: "Type and search for places…",
1489
+ address_manual: "Fill in manually",
1490
+ back: "Back",
1491
+ search: "Search",
1492
+ unknown_error: "An error occurred",
1493
+ line1: "Line 1",
1494
+ line2: "Line 2",
1495
+ line3: "Line 3",
1496
+ city: "City",
1497
+ state: "State",
1498
+ postcode: "Postcode",
1499
+ country: "Country",
1500
+ select_country: "Select a country",
1501
+ validation_max_chars: "Please enter no more than {{count}} characters",
1502
+ validation_min_chars: "Please enter {{count}} or more characters",
1503
+ validation_phone: "Please enter a valid phone number",
1504
+ validation_phone_min_chars: "Your phone number must be at least {{count}} digits long",
1505
+ validation_country_code: "Please select a country code",
1506
+ validation_number: "Please enter a valid number",
1507
+ validation_number_min: "Please enter a number greater than or equal to {{min}}",
1508
+ validation_number_max: "Please enter a number less than or equal to {{max}}",
1509
+ validation_number_decimal_cases: "Please enter a number with at most {{count}} decimal cases",
1510
+ validation_file: "Please select a file",
1511
+ validation_file_ext: "Please only upload {{ext}} files",
1512
+ validation_file_max: {
1513
+ one: "Please only upload one file",
1514
+ other: "Please only upload up to {{count}} files"
1515
+ },
1516
+ validation_date: "Please enter a valid date (YYYY-MM-DD)",
1517
+ validation_email: "That doesn’t look like a valid email address",
1518
+ validation_url: "That doesn’t look like a valid URL",
1519
+ validation_multiple_choice_min: {
1520
+ one: "Please select at least {{count}} option",
1521
+ other: "Please select at least {{count}} options"
1522
+ },
1523
+ validation_multiple_choice_max: {
1524
+ one: "Please select at most {{count}} option",
1525
+ other: "Please select at most {{count}} options"
1526
+ }
1527
+ });
1528
+ function za(t, e) {
1529
+ if (!t)
1530
+ throw new Error(e);
1531
+ }
1532
+ var Kc = Symbol.for("preact-signals");
1533
+ function Qe() {
1534
+ if (ht > 1)
1535
+ ht--;
1536
+ else {
1537
+ for (var t, e = !1; Tt !== void 0; ) {
1538
+ var i = Tt;
1539
+ for (Tt = void 0, Ee++; i !== void 0; ) {
1540
+ var a = i.o;
1541
+ if (i.o = void 0, i.f &= -3, !(8 & i.f) && Ma(i))
1542
+ try {
1543
+ i.c();
1544
+ } catch (o) {
1545
+ e || (t = o, e = !0);
1546
+ }
1547
+ i = a;
1548
+ }
1549
+ }
1550
+ if (Ee = 0, ht--, e)
1551
+ throw t;
1552
+ }
1553
+ }
1554
+ var k = void 0, Tt = void 0, ht = 0, Ee = 0, Yt = 0;
1555
+ function Na(t) {
1556
+ if (k !== void 0) {
1557
+ var e = t.n;
1558
+ if (e === void 0 || e.t !== k)
1559
+ return e = { i: 0, S: t, p: k.s, n: void 0, t: k, e: void 0, x: void 0, r: e }, k.s !== void 0 && (k.s.n = e), k.s = e, t.n = e, 32 & k.f && t.S(e), e;
1560
+ if (e.i === -1)
1561
+ return e.i = 0, e.n !== void 0 && (e.n.p = e.p, e.p !== void 0 && (e.p.n = e.n), e.p = k.s, e.n = void 0, k.s.n = e, k.s = e), e;
1562
+ }
1563
+ }
1564
+ function D(t) {
1565
+ this.v = t, this.i = 0, this.n = void 0, this.t = void 0;
1566
+ }
1567
+ D.prototype.brand = Kc;
1568
+ D.prototype.h = function() {
1569
+ return !0;
1570
+ };
1571
+ D.prototype.S = function(t) {
1572
+ this.t !== t && t.e === void 0 && (t.x = this.t, this.t !== void 0 && (this.t.e = t), this.t = t);
1573
+ };
1574
+ D.prototype.U = function(t) {
1575
+ if (this.t !== void 0) {
1576
+ var e = t.e, i = t.x;
1577
+ 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);
1578
+ }
1579
+ };
1580
+ D.prototype.subscribe = function(t) {
1581
+ var e = this;
1582
+ return ei(function() {
1583
+ var i = e.value, a = k;
1584
+ k = void 0;
1585
+ try {
1586
+ t(i);
1587
+ } finally {
1588
+ k = a;
1589
+ }
1590
+ });
1591
+ };
1592
+ D.prototype.valueOf = function() {
1593
+ return this.value;
1594
+ };
1595
+ D.prototype.toString = function() {
1596
+ return this.value + "";
1597
+ };
1598
+ D.prototype.toJSON = function() {
1599
+ return this.value;
1600
+ };
1601
+ D.prototype.peek = function() {
1602
+ var t = k;
1603
+ k = void 0;
1604
+ try {
1605
+ return this.value;
1606
+ } finally {
1607
+ k = t;
1608
+ }
1609
+ };
1610
+ Object.defineProperty(D.prototype, "value", { get: function() {
1611
+ var t = Na(this);
1612
+ return t !== void 0 && (t.i = this.i), this.v;
1613
+ }, set: function(t) {
1614
+ if (t !== this.v) {
1615
+ if (Ee > 100)
1616
+ throw new Error("Cycle detected");
1617
+ this.v = t, this.i++, Yt++, ht++;
1618
+ try {
1619
+ for (var e = this.t; e !== void 0; e = e.x)
1620
+ e.t.N();
1621
+ } finally {
1622
+ Qe();
1623
+ }
1624
+ }
1625
+ } });
1626
+ function at(t) {
1627
+ return new D(t);
1628
+ }
1629
+ function Ma(t) {
1630
+ for (var e = t.s; e !== void 0; e = e.n)
1631
+ if (e.S.i !== e.i || !e.S.h() || e.S.i !== e.i)
1632
+ return !0;
1633
+ return !1;
1634
+ }
1635
+ function Aa(t) {
1636
+ for (var e = t.s; e !== void 0; e = e.n) {
1637
+ var i = e.S.n;
1638
+ if (i !== void 0 && (e.r = i), e.S.n = e, e.i = -1, e.n === void 0) {
1639
+ t.s = e;
1640
+ break;
1641
+ }
1642
+ }
1643
+ }
1644
+ function Fa(t) {
1645
+ for (var e = t.s, i = void 0; e !== void 0; ) {
1646
+ var a = e.p;
1647
+ 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;
1648
+ }
1649
+ t.s = i;
1650
+ }
1651
+ function mt(t) {
1652
+ D.call(this, void 0), this.x = t, this.s = void 0, this.g = Yt - 1, this.f = 4;
1653
+ }
1654
+ (mt.prototype = new D()).h = function() {
1655
+ if (this.f &= -3, 1 & this.f)
1656
+ return !1;
1657
+ if ((36 & this.f) == 32 || (this.f &= -5, this.g === Yt))
1658
+ return !0;
1659
+ if (this.g = Yt, this.f |= 1, this.i > 0 && !Ma(this))
1660
+ return this.f &= -2, !0;
1661
+ var t = k;
1662
+ try {
1663
+ Aa(this), k = this;
1664
+ var e = this.x();
1665
+ (16 & this.f || this.v !== e || this.i === 0) && (this.v = e, this.f &= -17, this.i++);
1666
+ } catch (i) {
1667
+ this.v = i, this.f |= 16, this.i++;
1668
+ }
1669
+ return k = t, Fa(this), this.f &= -2, !0;
1670
+ };
1671
+ mt.prototype.S = function(t) {
1672
+ if (this.t === void 0) {
1673
+ this.f |= 36;
1674
+ for (var e = this.s; e !== void 0; e = e.n)
1675
+ e.S.S(e);
1676
+ }
1677
+ D.prototype.S.call(this, t);
1678
+ };
1679
+ mt.prototype.U = function(t) {
1680
+ if (this.t !== void 0 && (D.prototype.U.call(this, t), this.t === void 0)) {
1681
+ this.f &= -33;
1682
+ for (var e = this.s; e !== void 0; e = e.n)
1683
+ e.S.U(e);
1684
+ }
1685
+ };
1686
+ mt.prototype.N = function() {
1687
+ if (!(2 & this.f)) {
1688
+ this.f |= 6;
1689
+ for (var t = this.t; t !== void 0; t = t.x)
1690
+ t.t.N();
1691
+ }
1692
+ };
1693
+ Object.defineProperty(mt.prototype, "value", { get: function() {
1694
+ if (1 & this.f)
1695
+ throw new Error("Cycle detected");
1696
+ var t = Na(this);
1697
+ if (this.h(), t !== void 0 && (t.i = this.i), 16 & this.f)
1698
+ throw this.v;
1699
+ return this.v;
1700
+ } });
1701
+ function Wc(t) {
1702
+ return new mt(t);
1703
+ }
1704
+ function Ha(t) {
1705
+ var e = t.u;
1706
+ if (t.u = void 0, typeof e == "function") {
1707
+ ht++;
1708
+ var i = k;
1709
+ k = void 0;
1710
+ try {
1711
+ e();
1712
+ } catch (a) {
1713
+ throw t.f &= -2, t.f |= 8, ti(t), a;
1714
+ } finally {
1715
+ k = i, Qe();
1716
+ }
1717
+ }
1718
+ }
1719
+ function ti(t) {
1720
+ for (var e = t.s; e !== void 0; e = e.n)
1721
+ e.S.U(e);
1722
+ t.x = void 0, t.s = void 0, Ha(t);
1723
+ }
1724
+ function Gc(t) {
1725
+ if (k !== this)
1726
+ throw new Error("Out-of-order effect");
1727
+ Fa(this), k = t, this.f &= -2, 8 & this.f && ti(this), Qe();
1728
+ }
1729
+ function It(t) {
1730
+ this.x = t, this.u = void 0, this.s = void 0, this.o = void 0, this.f = 32;
1731
+ }
1732
+ It.prototype.c = function() {
1733
+ var t = this.S();
1734
+ try {
1735
+ if (8 & this.f || this.x === void 0)
1736
+ return;
1737
+ var e = this.x();
1738
+ typeof e == "function" && (this.u = e);
1739
+ } finally {
1740
+ t();
1741
+ }
1742
+ };
1743
+ It.prototype.S = function() {
1744
+ if (1 & this.f)
1745
+ throw new Error("Cycle detected");
1746
+ this.f |= 1, this.f &= -9, Ha(this), Aa(this), ht++;
1747
+ var t = k;
1748
+ return k = this, Gc.bind(this, t);
1749
+ };
1750
+ It.prototype.N = function() {
1751
+ 2 & this.f || (this.f |= 2, this.o = Tt, Tt = this);
1752
+ };
1753
+ It.prototype.d = function() {
1754
+ this.f |= 8, 1 & this.f || ti(this);
1755
+ };
1756
+ function ei(t) {
1757
+ var e = new It(t);
1758
+ try {
1759
+ e.c();
1760
+ } catch (i) {
1761
+ throw e.d(), i;
1762
+ }
1763
+ return e.d.bind(e);
1764
+ }
1765
+ var ce;
1766
+ function yt(t, e) {
1767
+ h[t] = e.bind(null, h[t] || function() {
1768
+ });
1769
+ }
1770
+ function qt(t) {
1771
+ ce && ce(), ce = t && t.S();
1772
+ }
1773
+ function Ba(t) {
1774
+ var e = this, i = t.data, a = qc(i);
1775
+ a.value = i;
1776
+ var o = lt(function() {
1777
+ for (var r = e.__v; r = r.__; )
1778
+ if (r.__c) {
1779
+ r.__c.__$f |= 4;
1780
+ break;
1781
+ }
1782
+ return e.__$u.c = function() {
1783
+ var n;
1784
+ !ia(o.peek()) && ((n = e.base) == null ? void 0 : n.nodeType) === 3 ? e.base.data = o.peek() : (e.__$f |= 1, e.setState({}));
1785
+ }, Wc(function() {
1786
+ var n = a.value.value;
1787
+ return n === 0 ? 0 : n === !0 ? "" : n || "";
1788
+ });
1789
+ }, []);
1790
+ return o.value;
1791
+ }
1792
+ Ba.displayName = "_st";
1793
+ Object.defineProperties(D.prototype, { constructor: { configurable: !0, value: void 0 }, type: { configurable: !0, value: Ba }, props: { configurable: !0, get: function() {
1794
+ return { data: this };
1795
+ } }, __b: { configurable: !0, value: 1 } });
1796
+ yt("__b", function(t, e) {
1797
+ if (typeof e.type == "string") {
1798
+ var i, a = e.props;
1799
+ for (var o in a)
1800
+ if (o !== "children") {
1801
+ var r = a[o];
1802
+ r instanceof D && (i || (e.__np = i = {}), i[o] = r, a[o] = r.peek());
1803
+ }
1804
+ }
1805
+ t(e);
1806
+ });
1807
+ yt("__r", function(t, e) {
1808
+ qt();
1809
+ var i, a = e.__c;
1810
+ a && (a.__$f &= -2, (i = a.__$u) === void 0 && (a.__$u = i = function(o) {
1811
+ var r;
1812
+ return ei(function() {
1813
+ r = this;
1814
+ }), r.c = function() {
1815
+ a.__$f |= 1, a.setState({});
1816
+ }, r;
1817
+ }())), qt(i), t(e);
1818
+ });
1819
+ yt("__e", function(t, e, i, a) {
1820
+ qt(), t(e, i, a);
1821
+ });
1822
+ yt("diffed", function(t, e) {
1823
+ qt();
1824
+ var i;
1825
+ if (typeof e.type == "string" && (i = e.__e)) {
1826
+ var a = e.__np, o = e.props;
1827
+ if (a) {
1828
+ var r = i.U;
1829
+ if (r)
1830
+ for (var n in r) {
1831
+ var s = r[n];
1832
+ s !== void 0 && !(n in a) && (s.d(), r[n] = void 0);
1833
+ }
1834
+ else
1835
+ i.U = r = {};
1836
+ for (var l in a) {
1837
+ var d = r[l], u = a[l];
1838
+ d === void 0 ? (d = Yc(i, l, u, o), r[l] = d) : d.o(u, o);
1839
+ }
1840
+ }
1841
+ }
1842
+ t(e);
1843
+ });
1844
+ function Yc(t, e, i, a) {
1845
+ var o = e in t && t.ownerSVGElement === void 0, r = at(i);
1846
+ return { o: function(n, s) {
1847
+ r.value = n, a = s;
1848
+ }, d: ei(function() {
1849
+ var n = r.value.value;
1850
+ a[e] !== n && (a[e] = n, o ? t[e] = n : n ? t.setAttribute(e, n) : t.removeAttribute(e));
1851
+ }) };
1852
+ }
1853
+ yt("unmount", function(t, e) {
1854
+ if (typeof e.type == "string") {
1855
+ var i = e.__e;
1856
+ if (i) {
1857
+ var a = i.U;
1858
+ if (a) {
1859
+ i.U = void 0;
1860
+ for (var o in a) {
1861
+ var r = a[o];
1862
+ r && r.d();
1863
+ }
1864
+ }
1865
+ }
1866
+ } else {
1867
+ var n = e.__c;
1868
+ if (n) {
1869
+ var s = n.__$u;
1870
+ s && (n.__$u = void 0, s.d());
1871
+ }
1872
+ }
1873
+ t(e);
1874
+ });
1875
+ yt("__h", function(t, e, i, a) {
1876
+ (a < 3 || a === 9) && (e.__$f |= 2), t(e, i, a);
1877
+ });
1878
+ H.prototype.shouldComponentUpdate = function(t, e) {
1879
+ var i = this.__$u;
1880
+ if (!(i && i.s !== void 0 || 4 & this.__$f) || 3 & this.__$f)
1881
+ return !0;
1882
+ for (var a in e)
1883
+ return !0;
1884
+ for (var o in t)
1885
+ if (o !== "__source" && t[o] !== this.props[o])
1886
+ return !0;
1887
+ for (var r in this.props)
1888
+ if (!(r in t))
1889
+ return !0;
1890
+ return !1;
1891
+ };
1892
+ function qc(t) {
1893
+ return lt(function() {
1894
+ return at(t);
1895
+ }, []);
1896
+ }
1897
+ const Te = (t, e) => e.some((i) => t instanceof i);
1898
+ let Fi, Hi;
1899
+ function Jc() {
1900
+ return Fi || (Fi = [
1901
+ IDBDatabase,
1902
+ IDBObjectStore,
1903
+ IDBIndex,
1904
+ IDBCursor,
1905
+ IDBTransaction
1906
+ ]);
1907
+ }
1908
+ function Xc() {
1909
+ return Hi || (Hi = [
1910
+ IDBCursor.prototype.advance,
1911
+ IDBCursor.prototype.continue,
1912
+ IDBCursor.prototype.continuePrimaryKey
1913
+ ]);
1914
+ }
1915
+ const Pe = /* @__PURE__ */ new WeakMap(), le = /* @__PURE__ */ new WeakMap(), ae = /* @__PURE__ */ new WeakMap();
1916
+ function Zc(t) {
1917
+ const e = new Promise((i, a) => {
1918
+ const o = () => {
1919
+ t.removeEventListener("success", r), t.removeEventListener("error", n);
1920
+ }, r = () => {
1921
+ i(nt(t.result)), o();
1922
+ }, n = () => {
1923
+ a(t.error), o();
1924
+ };
1925
+ t.addEventListener("success", r), t.addEventListener("error", n);
1926
+ });
1927
+ return ae.set(e, t), e;
1928
+ }
1929
+ function Qc(t) {
1930
+ if (Pe.has(t))
1931
+ return;
1932
+ const e = new Promise((i, a) => {
1933
+ const o = () => {
1934
+ t.removeEventListener("complete", r), t.removeEventListener("error", n), t.removeEventListener("abort", n);
1935
+ }, r = () => {
1936
+ i(), o();
1937
+ }, n = () => {
1938
+ a(t.error || new DOMException("AbortError", "AbortError")), o();
1939
+ };
1940
+ t.addEventListener("complete", r), t.addEventListener("error", n), t.addEventListener("abort", n);
1941
+ });
1942
+ Pe.set(t, e);
1943
+ }
1944
+ let Oe = {
1945
+ get(t, e, i) {
1946
+ if (t instanceof IDBTransaction) {
1947
+ if (e === "done")
1948
+ return Pe.get(t);
1949
+ if (e === "store")
1950
+ return i.objectStoreNames[1] ? void 0 : i.objectStore(i.objectStoreNames[0]);
1951
+ }
1952
+ return nt(t[e]);
1953
+ },
1954
+ set(t, e, i) {
1955
+ return t[e] = i, !0;
1956
+ },
1957
+ has(t, e) {
1958
+ return t instanceof IDBTransaction && (e === "done" || e === "store") ? !0 : e in t;
1959
+ }
1960
+ };
1961
+ function La(t) {
1962
+ Oe = t(Oe);
1963
+ }
1964
+ function tl(t) {
1965
+ return Xc().includes(t) ? function(...e) {
1966
+ return t.apply(je(this), e), nt(this.request);
1967
+ } : function(...e) {
1968
+ return nt(t.apply(je(this), e));
1969
+ };
1970
+ }
1971
+ function el(t) {
1972
+ return typeof t == "function" ? tl(t) : (t instanceof IDBTransaction && Qc(t), Te(t, Jc()) ? new Proxy(t, Oe) : t);
1973
+ }
1974
+ function nt(t) {
1975
+ if (t instanceof IDBRequest)
1976
+ return Zc(t);
1977
+ if (le.has(t))
1978
+ return le.get(t);
1979
+ const e = el(t);
1980
+ return e !== t && (le.set(t, e), ae.set(e, t)), e;
1981
+ }
1982
+ const je = (t) => ae.get(t);
1983
+ function il(t, e, { blocked: i, upgrade: a, blocking: o, terminated: r } = {}) {
1984
+ const n = indexedDB.open(t, e), s = nt(n);
1985
+ return a && n.addEventListener("upgradeneeded", (l) => {
1986
+ a(nt(n.result), l.oldVersion, l.newVersion, nt(n.transaction), l);
1987
+ }), i && n.addEventListener("blocked", (l) => i(
1988
+ // Casting due to https://github.com/microsoft/TypeScript-DOM-lib-generator/pull/1405
1989
+ l.oldVersion,
1990
+ l.newVersion,
1991
+ l
1992
+ )), s.then((l) => {
1993
+ r && l.addEventListener("close", () => r()), o && l.addEventListener("versionchange", (d) => o(d.oldVersion, d.newVersion, d));
1994
+ }).catch(() => {
1995
+ }), s;
1996
+ }
1997
+ const al = ["get", "getKey", "getAll", "getAllKeys", "count"], ol = ["put", "add", "delete", "clear"], de = /* @__PURE__ */ new Map();
1998
+ function Bi(t, e) {
1999
+ if (!(t instanceof IDBDatabase && !(e in t) && typeof e == "string"))
2000
+ return;
2001
+ if (de.get(e))
2002
+ return de.get(e);
2003
+ const i = e.replace(/FromIndex$/, ""), a = e !== i, o = ol.includes(i);
2004
+ if (
2005
+ // Bail if the target doesn't exist on the target. Eg, getAll isn't in Edge.
2006
+ !(i in (a ? IDBIndex : IDBObjectStore).prototype) || !(o || al.includes(i))
2007
+ )
2008
+ return;
2009
+ const r = async function(n, ...s) {
2010
+ const l = this.transaction(n, o ? "readwrite" : "readonly");
2011
+ let d = l.store;
2012
+ return a && (d = d.index(s.shift())), (await Promise.all([
2013
+ d[i](...s),
2014
+ o && l.done
2015
+ ]))[0];
2016
+ };
2017
+ return de.set(e, r), r;
2018
+ }
2019
+ La((t) => ({
2020
+ ...t,
2021
+ get: (e, i, a) => Bi(e, i) || t.get(e, i, a),
2022
+ has: (e, i) => !!Bi(e, i) || t.has(e, i)
2023
+ }));
2024
+ const rl = ["continue", "continuePrimaryKey", "advance"], Li = {}, Ie = /* @__PURE__ */ new WeakMap(), Ra = /* @__PURE__ */ new WeakMap(), nl = {
2025
+ get(t, e) {
2026
+ if (!rl.includes(e))
2027
+ return t[e];
2028
+ let i = Li[e];
2029
+ return i || (i = Li[e] = function(...a) {
2030
+ Ie.set(this, Ra.get(this)[e](...a));
2031
+ }), i;
2032
+ }
2033
+ };
2034
+ async function* sl(...t) {
2035
+ let e = this;
2036
+ if (e instanceof IDBCursor || (e = await e.openCursor(...t)), !e)
2037
+ return;
2038
+ e = e;
2039
+ const i = new Proxy(e, nl);
2040
+ for (Ra.set(i, e), ae.set(i, je(e)); e; )
2041
+ yield i, e = await (Ie.get(i) || e.continue()), Ie.delete(i);
2042
+ }
2043
+ function Ri(t, e) {
2044
+ return e === Symbol.asyncIterator && Te(t, [IDBIndex, IDBObjectStore, IDBCursor]) || e === "iterate" && Te(t, [IDBIndex, IDBObjectStore]);
2045
+ }
2046
+ La((t) => ({
2047
+ ...t,
2048
+ get(e, i, a) {
2049
+ return Ri(e, i) ? sl : t.get(e, i, a);
2050
+ },
2051
+ has(e, i) {
2052
+ return Ri(e, i) || t.has(e, i);
2053
+ }
2054
+ }));
2055
+ const Ht = typeof indexedDB > "u" ? void 0 : il("inploi-chatbot", 3, {
2056
+ upgrade(t) {
2057
+ try {
2058
+ t.deleteObjectStore("state");
2059
+ } catch {
2060
+ }
2061
+ t.createObjectStore("state");
2062
+ }
2063
+ });
2064
+ let Bt, ue, kt;
2065
+ const Ui = () => {
2066
+ if (!Bt)
2067
+ return kt;
2068
+ const t = Bt;
2069
+ Bt = void 0;
2070
+ const e = Ua(t), i = Ht == null ? void 0 : Ht.then((a) => a.put("state", t.data, e)).finally(() => {
2071
+ kt === i && (kt = void 0);
2072
+ });
2073
+ return kt = i, kt;
2074
+ }, rt = {
2075
+ getStateData: async (t, e, i) => {
2076
+ var o;
2077
+ const a = Ua({
2078
+ ...t,
2079
+ flowKeys: e,
2080
+ context: i
2081
+ });
2082
+ return (o = await Ht) == null ? void 0 : o.get("state", a);
2083
+ },
2084
+ setStateData: (t) => {
2085
+ Bt = t, clearTimeout(ue), ue = setTimeout(() => void Ui(), 1e3);
2086
+ },
2087
+ flushStateData: () => (clearTimeout(ue), Ui() ?? Promise.resolve())
2088
+ }, nd = (t) => ie(t).with(dt.number.lte(1e3), () => `${Math.round(t)}KB`).with(dt.number.lt(1e3 * 10), () => `${(t / 1e3).toFixed(1)}MB`).otherwise(() => `${Math.round(t / 1e3)}MB`), sd = (t) => {
2089
+ const e = t.find((i) => i.isHead);
2090
+ if (!e)
2091
+ throw new Error("No head node found");
2092
+ return e;
2093
+ }, cd = (t) => Object.entries(t).reduce((i, [a, o]) => (i[a] = o.value, i), {}), ld = (t) => (e) => e ? e.type === t : !1;
2094
+ class ut extends Error {
2095
+ constructor() {
2096
+ super("Aborted");
2097
+ }
2098
+ }
2099
+ const dd = (t) => typeof t == "string", cl = (t) => {
2100
+ let e = 5381;
2101
+ for (let i = 0; i < t.length; i++)
2102
+ e = e * 33 ^ t.charCodeAt(i);
2103
+ return e >>> 0;
2104
+ }, De = (t) => t === null || typeof t != "object" ? t : Array.isArray(t) ? t.map(De) : Object.keys(t).sort().reduce((e, i) => (e[i] = De(t[i]), e), {}), ll = (t) => {
2105
+ const e = JSON.stringify(De(t));
2106
+ return cl(e).toString(36);
2107
+ }, dl = () => typeof crypto < "u" && "randomUUID" in crypto ? crypto.randomUUID() : Math.random().toString(36).slice(2), Vi = () => ({
2108
+ messages: [],
2109
+ submissions: {},
2110
+ currentInput: null,
2111
+ nodeHistory: [],
2112
+ isFinished: !1,
2113
+ sequence: 0,
2114
+ flowSessionId: dl()
2115
+ }), ud = (t) => (
2116
+ /** nativeEvent is a hidden property not exposed by JSX's typings */
2117
+ ie(t).with({
2118
+ nativeEvent: {
2119
+ submitter: dt.select(dt.union(dt.instanceOf(HTMLButtonElement), dt.instanceOf(HTMLInputElement)))
2120
+ }
2121
+ }, (e) => e).otherwise(() => {
2122
+ throw new Error("invalid submitter");
2123
+ })
2124
+ ), Lt = (t, e, i, a = 0) => {
2125
+ if (!e.nextId)
2126
+ return i(e.id, {
2127
+ stepsMade: a,
2128
+ remainingSteps: 0
2129
+ }), {
2130
+ stepsMade: a,
2131
+ remainingSteps: 0
2132
+ };
2133
+ const o = t.find((d) => d.id === e.nextId);
2134
+ if (o === void 0)
2135
+ return {
2136
+ stepsMade: a,
2137
+ remainingSteps: 0
2138
+ };
2139
+ const r = e.type === "if-block" ? e.branchId : void 0, n = t.find((d) => d.id === r), s = e.type.includes("question") ? 1 : 0;
2140
+ if (n) {
2141
+ const d = s + Math.max(Lt(t, o, i, a + s).remainingSteps, Lt(t, n, i, a + s).remainingSteps);
2142
+ return i(e.id, {
2143
+ stepsMade: a,
2144
+ remainingSteps: d
2145
+ }), {
2146
+ stepsMade: a,
2147
+ remainingSteps: d
2148
+ };
2149
+ }
2150
+ const l = s + Lt(t, o, i, a + s).remainingSteps;
2151
+ return i(e.id, {
2152
+ stepsMade: a,
2153
+ remainingSteps: l
2154
+ }), {
2155
+ stepsMade: a,
2156
+ remainingSteps: l
2157
+ };
2158
+ }, ul = (t) => {
2159
+ const e = {}, i = t.find((a) => a.isHead);
2160
+ return i && Lt(t, i, (a, o) => {
2161
+ e[a] = o;
2162
+ }), e;
2163
+ }, Ua = (t) => [...t.flowKeys, t.id, t.version, ll(t.context)].join("/"), Z = at({
2164
+ state: "idle"
2165
+ }), $t = (t) => {
2166
+ const {
2167
+ state: e,
2168
+ flow: i
2169
+ } = Z.value;
2170
+ if (e !== "loaded")
2171
+ return;
2172
+ za(i, "No flow to update");
2173
+ const a = t(i.data);
2174
+ i.data = a, Z.value = {
2175
+ state: e,
2176
+ flow: i
2177
+ }, rt.setStateData(i);
2178
+ }, $ = {
2179
+ current$: Z,
2180
+ viewState$: at("closed"),
2181
+ inputHeight$: at(53),
2182
+ prepareFlow: async ({
2183
+ flow: t,
2184
+ context: e = {},
2185
+ flowKeys: i,
2186
+ title: a,
2187
+ analytics: o,
2188
+ job: r,
2189
+ locationOrigin: n
2190
+ }) => (await rt.flushStateData().catch(() => {
2191
+ }), {
2192
+ data: await rt.getStateData(t, i, e) ?? Vi(),
2193
+ startedAt: /* @__PURE__ */ new Date(),
2194
+ nodeIdToProgress: ul(t.nodes),
2195
+ flowKeys: i,
2196
+ id: t.id,
2197
+ version: t.version,
2198
+ nodes: t.nodes,
2199
+ build: t.build,
2200
+ context: e,
2201
+ title: a,
2202
+ analytics: o,
2203
+ job: r,
2204
+ locationOrigin: n
2205
+ }),
2206
+ commitFlow: (t) => {
2207
+ Z.value = {
2208
+ state: "loaded",
2209
+ flow: t
2210
+ }, rt.setStateData(t);
2211
+ },
2212
+ cancelCurrentFlow: () => {
2213
+ Z.value = {
2214
+ state: "idle"
2215
+ }, $.viewState$.value = "closed";
2216
+ },
2217
+ markAsFinished: () => $t((t) => ({
2218
+ ...t,
2219
+ isFinished: !0
2220
+ })),
2221
+ setCurrentNodeId: (t) => $t((e) => (e.nodeHistory.push(t), e)),
2222
+ restart: () => {
2223
+ const {
2224
+ state: t,
2225
+ flow: e
2226
+ } = Z.value;
2227
+ if (t !== "loaded")
2228
+ throw new Error("Flow cannot be restarted: not in valid state");
2229
+ const i = Vi();
2230
+ Z.value = {
2231
+ state: t,
2232
+ flow: {
2233
+ ...e,
2234
+ data: i,
2235
+ startedAt: /* @__PURE__ */ new Date()
2236
+ }
2237
+ }, rt.setStateData(e);
2238
+ },
2239
+ addMessage: (t, e) => {
2240
+ const i = {
2241
+ ...t,
2242
+ groupId: e
2243
+ };
2244
+ return $t((a) => (a.messages.push(i), a));
2245
+ },
2246
+ /** Removes messages from nodeId, all the messages that have the groupId passed, until it reaches one that doesn't */
2247
+ removeMessagesSentByNodeIds: (t) => {
2248
+ const {
2249
+ state: e,
2250
+ flow: i
2251
+ } = Z.value;
2252
+ za(e === "loaded", "Application not loaded");
2253
+ const a = i.data.messages.filter((o) => !o.groupId || !t.includes(o.groupId));
2254
+ i.data.messages = a, rt.setStateData(i);
2255
+ },
2256
+ setSubmission: (t, e) => $t((i) => (e === null ? delete i.submissions[t] : i.submissions[t] = e, i)),
2257
+ setInput: (t) => $t((e) => ({
2258
+ ...e,
2259
+ currentInput: t ?? null
2260
+ }))
2261
+ }, pl = ({
2262
+ message: t
2263
+ }) => {
2264
+ const {
2265
+ t: e
2266
+ } = Ze();
2267
+ return p("div", {
2268
+ class: "flex flex-grow flex-col items-center justify-center",
2269
+ children: [p("svg", {
2270
+ class: "text-error-9 h-16 w-16",
2271
+ fill: "none",
2272
+ xmlns: "http://www.w3.org/2000/svg",
2273
+ "stroke-width": "2",
2274
+ stroke: "currentColor",
2275
+ "stroke-linecap": "round",
2276
+ viewBox: "0 0 96 96",
2277
+ children: [p("path", {
2278
+ 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",
2279
+ fill: "#fff"
2280
+ }), p("path", {
2281
+ 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"
2282
+ }), p("line", {
2283
+ x1: "36.7",
2284
+ y1: "39.3",
2285
+ x2: "44.8",
2286
+ y2: "47.4"
2287
+ }), p("line", {
2288
+ x1: "52.2",
2289
+ y1: "39.3",
2290
+ x2: "60.3",
2291
+ y2: "47.4"
2292
+ }), p("line", {
2293
+ x1: "44.7",
2294
+ y1: "39.2",
2295
+ x2: "36.6",
2296
+ y2: "47.3"
2297
+ }), p("line", {
2298
+ x1: "60.2",
2299
+ y1: "39.2",
2300
+ x2: "52.1",
2301
+ y2: "47.3"
2302
+ }), p("path", {
2303
+ d: "M38 56h19"
2304
+ })]
2305
+ }), p("div", {
2306
+ class: "flex flex-col gap-2 text-center",
2307
+ children: [p("p", {
2308
+ class: "text-error-11 font-bold",
2309
+ children: e("error_heading")
2310
+ }), t && p("p", {
2311
+ class: "text-neutral-9 text-sm",
2312
+ children: t
2313
+ })]
2314
+ })]
2315
+ });
2316
+ }, hl = (t) => p("svg", {
2317
+ role: "img",
2318
+ viewBox: "0 0 24 24",
2319
+ ...t,
2320
+ children: [p("title", {
2321
+ children: "Loading"
2322
+ }), p("style", {
2323
+ 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)}}"
2324
+ }), p("g", {
2325
+ id: "s1",
2326
+ transform: "translate(12,0)",
2327
+ children: p("g", {
2328
+ id: "s2",
2329
+ transform: "scale(0,0)",
2330
+ children: p("circle", {
2331
+ r: "6.5",
2332
+ transform: "translate(0,0)",
2333
+ fill: "currentColor"
2334
+ })
2335
+ })
2336
+ }), p("g", {
2337
+ id: "s3",
2338
+ transform: "translate(12,12)",
2339
+ children: p("g", {
2340
+ id: "s4",
2341
+ transform: "scale(1,1)",
2342
+ children: p("circle", {
2343
+ r: "6.5",
2344
+ transform: "translate(0,0)",
2345
+ fill: "currentColor"
2346
+ })
2347
+ })
2348
+ }), p("g", {
2349
+ id: "s5",
2350
+ transform: "translate(12,0)",
2351
+ children: p("g", {
2352
+ id: "s6",
2353
+ transform: "scale(0,0)",
2354
+ children: p("path", {
2355
+ 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",
2356
+ transform: "translate(-6.5,-6.5)",
2357
+ "clip-rule": "evenodd",
2358
+ fill: "currentColor",
2359
+ "fill-rule": "evenodd"
2360
+ })
2361
+ })
2362
+ }), p("g", {
2363
+ id: "s7",
2364
+ transform: "translate(12,0)",
2365
+ children: p("g", {
2366
+ id: "s8",
2367
+ transform: "scale(0,0)",
2368
+ children: p("path", {
2369
+ 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",
2370
+ transform: "translate(-6.5,-9.25)",
2371
+ fill: "currentColor"
2372
+ })
2373
+ })
2374
+ })]
2375
+ }), Ki = () => p("div", {
2376
+ class: "flex flex-grow flex-col items-center justify-center",
2377
+ children: p(hl, {
2378
+ class: "text-neutral-6 h-8 w-8"
2379
+ })
2380
+ }), fl = (t) => {
2381
+ const i = t / 100, a = 1.3;
2382
+ return t < 0 ? "0%" : t > 100 ? "100%" : `${Math.round((1 - (1 - 0.1) * Math.pow(1 - i, a)) * 100)}%`;
2383
+ }, wl = Ye("touch-hitbox fr relative flex-none rounded-full p-2 transition-all", {
2384
+ variants: {
2385
+ variant: {
2386
+ neutral: "text-neutral-11 hover:text-neutral-12 active:text-neutral-12 hover:bg-interactive-bg-hover active:bg-interactive-bg-active ",
2387
+ white: "text-white/80 hover:text-white active:text-white hover:bg-white/20 active:bg-white/30"
2388
+ }
2389
+ },
2390
+ defaultVariants: {
2391
+ variant: "neutral"
2392
+ }
2393
+ }), ze = ({
2394
+ class: t,
2395
+ children: e,
2396
+ variant: i,
2397
+ ...a
2398
+ }) => p("div", {
2399
+ class: "flex flex-1 items-center justify-end px-1",
2400
+ children: p("button", {
2401
+ class: Ge(wl({
2402
+ variant: i
2403
+ }), t),
2404
+ ...a,
2405
+ children: p("svg", {
2406
+ class: "block",
2407
+ width: "16",
2408
+ height: "16",
2409
+ viewBox: "0 0 16 16",
2410
+ fill: "none",
2411
+ stroke: "currentColor",
2412
+ "stroke-width": "1.5",
2413
+ "stroke-linecap": "round",
2414
+ xmlns: "http://www.w3.org/2000/svg",
2415
+ children: e
2416
+ })
2417
+ })
2418
+ }), vl = () => {
2419
+ if ($.current$.value.state !== "loaded")
2420
+ return null;
2421
+ const t = $.current$.value.flow.nodeIdToProgress, e = $.current$.value.flow.data.nodeHistory.at(-1);
2422
+ if (e === void 0)
2423
+ return null;
2424
+ const i = t[e];
2425
+ if (i === void 0)
2426
+ return null;
2427
+ const a = 100 * (i.stepsMade / (i.remainingSteps + i.stepsMade));
2428
+ return p("div", {
2429
+ class: "bg-accent-3",
2430
+ children: p("div", {
2431
+ style: {
2432
+ width: fl(a)
2433
+ },
2434
+ class: "bg-accent-9 ring-accent-6 relative h-[3px] rounded-full transition-all duration-1000"
2435
+ })
2436
+ });
2437
+ }, gl = ({
2438
+ children: t,
2439
+ params: e
2440
+ }) => {
2441
+ const {
2442
+ t: i
2443
+ } = Ze(), a = $.viewState$;
2444
+ return p(V, {
2445
+ children: p("header", {
2446
+ 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",
2447
+ children: [p("div", {
2448
+ 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",
2449
+ children: [p("p", {
2450
+ id: "chatbot-status-bar",
2451
+ class: "sr-only",
2452
+ children: t
2453
+ }), p("button", {
2454
+ onClick: () => {
2455
+ a.value = "minimised";
2456
+ },
2457
+ class: "view-switch h-full flex-grow overflow-hidden px-4 py-1 focus-visible:outline-none",
2458
+ onTouchStart: Ne,
2459
+ children: p("p", {
2460
+ "aria-hidden": !0,
2461
+ class: "text-neutral-12 truncate text-sm font-bold tracking-tight",
2462
+ children: t
2463
+ })
2464
+ }), p("div", {
2465
+ class: "flex flex-shrink-0 items-center gap-3 p-1.5",
2466
+ children: [e.feedback ? p("div", {
2467
+ "data-widget": "inploi-feedback",
2468
+ "data-key": "chatbot-header",
2469
+ class: Ge({
2470
+ hidden: $.current$.value.state !== "loaded" || a.value !== "maximised"
2471
+ }),
2472
+ children: p("div", {
2473
+ class: "ring-neutral-4 bg-neutral-3 h-8 w-[72px] animate-pulse rounded-full ring-1"
2474
+ })
2475
+ }) : null, $.current$.value.state === "loaded" && p(ze, {
2476
+ "aria-label": "Restart",
2477
+ onClick: () => {
2478
+ $.restart();
2479
+ },
2480
+ children: [p("path", {
2481
+ 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"
2482
+ }), p("path", {
2483
+ d: "M8 7L10 4.5L8 2.5"
2484
+ })]
2485
+ }, "restart"), p(ze, {
2486
+ class: "view-switch",
2487
+ onTouchStart: Ne,
2488
+ "aria-label": i("minimize"),
2489
+ onClick: () => a.value = "minimised",
2490
+ children: p("path", {
2491
+ d: "M12.5 6.5L8 11L3.5 6.5"
2492
+ })
2493
+ }, "minmax")]
2494
+ })]
2495
+ }), p(vl, {})]
2496
+ })
2497
+ });
2498
+ };
2499
+ function Ne() {
2500
+ }
2501
+ const bl = Ca(() => import("./chatbot-body-a533deae.js").then((t) => t.ChatbotBody)), Va = Ye("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", {
2502
+ variants: {
2503
+ view: {
2504
+ closed: "hidden",
2505
+ minimised: "max-w-[min(300px,calc(100vw-4rem))] h-[var(--header-height)] animate-slide-in-bottom",
2506
+ maximised: "max-w-[450px] h-[var(--content-height)] animate-maximise"
2507
+ }
2508
+ }
2509
+ }), Ka = Ye("relative flex h-full overflow-hidden rounded-3xl outline outline-1", {
2510
+ variants: {
2511
+ view: {
2512
+ closed: "hidden",
2513
+ minimised: "outline-accent-10 bg-accent-9",
2514
+ maximised: "outline-neutral-3 bg-neutral-1 flex-col"
2515
+ }
2516
+ }
2517
+ }), _l = ({
2518
+ open: t,
2519
+ ...e
2520
+ }) => {
2521
+ const i = ee(null);
2522
+ return _t(() => {
2523
+ const a = i.current;
2524
+ a && (t ? a.showModal() : a.close());
2525
+ }, [t]), p("dialog", {
2526
+ ref: i,
2527
+ ...e
2528
+ });
2529
+ }, ml = ({
2530
+ logger: t,
2531
+ apiClient: e,
2532
+ analytics: i,
2533
+ talentBankClient: a,
2534
+ params: o
2535
+ }) => {
2536
+ const {
2537
+ state: r,
2538
+ flow: n,
2539
+ error: s
2540
+ } = $.current$.value, l = $.viewState$.value, d = r !== "idle" && l === "maximised", u = ee(null);
2541
+ return p(Uc, {
2542
+ terms: o.terms,
2543
+ locale: void 0,
2544
+ children: [p(_l, {
2545
+ open: d,
2546
+ onClose: () => $.viewState$.value = "minimised",
2547
+ children: p("div", {
2548
+ ref: u,
2549
+ "aria-modal": "true",
2550
+ role: "dialog",
2551
+ "aria-labelledby": "chatbot-status-bar",
2552
+ class: Va({
2553
+ view: "maximised"
2554
+ }),
2555
+ children: p("div", {
2556
+ class: Ka({
2557
+ view: "maximised"
2558
+ }),
2559
+ children: [p(gl, {
2560
+ params: o,
2561
+ children: n == null ? void 0 : n.title
2562
+ }), ie({
2563
+ state: r,
2564
+ view: l
2565
+ }).with({
2566
+ state: "idle"
2567
+ }, () => null).with({
2568
+ state: "loading"
2569
+ }, () => p(Ki, {}, "loading")).with({
2570
+ state: "loaded"
2571
+ }, () => p(Et, {
2572
+ fallback: p(Ki, {}, "loading"),
2573
+ children: p(bl, {
2574
+ analytics: i,
2575
+ apiClient: e,
2576
+ logger: t,
2577
+ talentBankClient: a
2578
+ })
2579
+ })).with({
2580
+ state: "error"
2581
+ }, () => p(pl, {
2582
+ message: s
2583
+ })).exhaustive()]
2584
+ })
2585
+ })
2586
+ }), l === "minimised" ? p(yl, {
2587
+ flow: n
2588
+ }) : null]
2589
+ });
2590
+ }, yl = ({
2591
+ flow: t
2592
+ }) => {
2593
+ const {
2594
+ t: e
2595
+ } = Ze();
2596
+ return p("div", {
2597
+ class: Va({
2598
+ view: "minimised",
2599
+ class: "z-100 isolate"
2600
+ }),
2601
+ children: p("div", {
2602
+ class: Ka({
2603
+ view: "minimised"
2604
+ }),
2605
+ children: [p("button", {
2606
+ onClick: () => {
2607
+ $.viewState$.value = "maximised";
2608
+ },
2609
+ class: "view-switch h-full flex-grow overflow-hidden px-4 py-1 focus-visible:outline-none",
2610
+ onTouchStart: Ne,
2611
+ children: p("p", {
2612
+ "aria-hidden": !0,
2613
+ class: "truncate text-sm font-bold tracking-tight text-white",
2614
+ children: t == null ? void 0 : t.title
2615
+ })
2616
+ }), p("div", {
2617
+ class: "flex items-center px-0.5",
2618
+ children: p(ze, {
2619
+ "aria-label": e("close_application"),
2620
+ onClick: $.cancelCurrentFlow,
2621
+ variant: "white",
2622
+ children: p("path", {
2623
+ d: "M12 12L4 4M12 4L4 12"
2624
+ })
2625
+ }, "close")
2626
+ })]
2627
+ })
2628
+ });
2629
+ }, xl = `[data-widget=inploi-chatbot]{-webkit-touch-callout:none;-webkit-user-select:none;-moz-user-select:none;user-select:none;position:relative;z-index:2147483647;font-size:16px;font-family:sans-serif;--i-lowest: 0 0% 100%;--i-e-1: 340 100% 99%;--i-e-2: 353 100% 98%;--i-e-3: 351 91% 96%;--i-e-4: 351 100% 93%;--i-e-5: 350 100% 90%;--i-e-6: 351 80% 86%;--i-e-7: 349 68% 81%;--i-e-8: 348 61% 74%;--i-e-9: 348 75% 59%;--i-e-10: 347 70% 55%;--i-e-11: 345 70% 47%;--i-e-12: 344 63% 24%;--header-height: 44px;--content-height:calc(100vh - 64px);--content-height:calc(100svh - 64px)}@media screen and (min-width: 768px){[data-widget=inploi-chatbot]{--content-height: min(640px, calc(100vh - 16px));--content-height: min(640px, calc(100svh - 16px)) }}[data-widget=inploi-chatbot] *,[data-widget=inploi-chatbot] :before,[data-widget=inploi-chatbot] :after{--tw-border-spacing-x: 0;--tw-border-spacing-y: 0;--tw-translate-x: 0;--tw-translate-y: 0;--tw-rotate: 0;--tw-skew-x: 0;--tw-skew-y: 0;--tw-scale-x: 1;--tw-scale-y: 1;--tw-pan-x: ;--tw-pan-y: ;--tw-pinch-zoom: ;--tw-scroll-snap-strictness: proximity;--tw-gradient-from-position: ;--tw-gradient-via-position: ;--tw-gradient-to-position: ;--tw-ordinal: ;--tw-slashed-zero: ;--tw-numeric-figure: ;--tw-numeric-spacing: ;--tw-numeric-fraction: ;--tw-ring-inset: ;--tw-ring-offset-width: 0px;--tw-ring-offset-color: #fff;--tw-ring-color: rgb(59 130 246 / .5);--tw-ring-offset-shadow: 0 0 #0000;--tw-ring-shadow: 0 0 #0000;--tw-shadow: 0 0 #0000;--tw-shadow-colored: 0 0 #0000;--tw-blur: ;--tw-brightness: ;--tw-contrast: ;--tw-grayscale: ;--tw-hue-rotate: ;--tw-invert: ;--tw-saturate: ;--tw-sepia: ;--tw-drop-shadow: ;--tw-backdrop-blur: ;--tw-backdrop-brightness: ;--tw-backdrop-contrast: ;--tw-backdrop-grayscale: ;--tw-backdrop-hue-rotate: ;--tw-backdrop-invert: ;--tw-backdrop-opacity: ;--tw-backdrop-saturate: ;--tw-backdrop-sepia: ;--tw-contain-size: ;--tw-contain-layout: ;--tw-contain-paint: ;--tw-contain-style: }[data-widget=inploi-chatbot] ::backdrop{--tw-border-spacing-x: 0;--tw-border-spacing-y: 0;--tw-translate-x: 0;--tw-translate-y: 0;--tw-rotate: 0;--tw-skew-x: 0;--tw-skew-y: 0;--tw-scale-x: 1;--tw-scale-y: 1;--tw-pan-x: ;--tw-pan-y: ;--tw-pinch-zoom: ;--tw-scroll-snap-strictness: proximity;--tw-gradient-from-position: ;--tw-gradient-via-position: ;--tw-gradient-to-position: ;--tw-ordinal: ;--tw-slashed-zero: ;--tw-numeric-figure: ;--tw-numeric-spacing: ;--tw-numeric-fraction: ;--tw-ring-inset: ;--tw-ring-offset-width: 0px;--tw-ring-offset-color: #fff;--tw-ring-color: rgb(59 130 246 / .5);--tw-ring-offset-shadow: 0 0 #0000;--tw-ring-shadow: 0 0 #0000;--tw-shadow: 0 0 #0000;--tw-shadow-colored: 0 0 #0000;--tw-blur: ;--tw-brightness: ;--tw-contrast: ;--tw-grayscale: ;--tw-hue-rotate: ;--tw-invert: ;--tw-saturate: ;--tw-sepia: ;--tw-drop-shadow: ;--tw-backdrop-blur: ;--tw-backdrop-brightness: ;--tw-backdrop-contrast: ;--tw-backdrop-grayscale: ;--tw-backdrop-hue-rotate: ;--tw-backdrop-invert: ;--tw-backdrop-opacity: ;--tw-backdrop-saturate: ;--tw-backdrop-sepia: ;--tw-contain-size: ;--tw-contain-layout: ;--tw-contain-paint: ;--tw-contain-style: }[data-widget=inploi-chatbot]{--tw-content: "";font-family:system-ui,-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Oxygen,Ubuntu,Cantarell,Open Sans,Helvetica Neue,sans-serif}[data-widget=inploi-chatbot] em{font-style:italic}[data-widget=inploi-chatbot] strong{font-weight:700}[data-widget=inploi-chatbot] *{font-weight:inherit;font-style:inherit;box-sizing:border-box;font-family:inherit;border-style:solid;border-width:0;-webkit-tap-highlight-color:transparent}[data-widget=inploi-chatbot] :before,[data-widget=inploi-chatbot] :after{box-sizing:border-box}[data-widget=inploi-chatbot] :is(ul,ol){list-style:none;padding:0;margin:0}[data-widget=inploi-chatbot] :is(p){margin:0;padding:0}[data-widget=inploi-chatbot] :is(li){margin:0;padding:0;list-style:none}[data-widget=inploi-chatbot] :is(button){margin:0;padding:0;border:unset;background:unset;text-align:unset}[data-widget=inploi-chatbot] .container{width:100%}@media (min-width: 640px){[data-widget=inploi-chatbot] .container{max-width:640px}}@media (min-width: 768px){[data-widget=inploi-chatbot] .container{max-width:768px}}@media (min-width: 1024px){[data-widget=inploi-chatbot] .container{max-width:1024px}}@media (min-width: 1280px){[data-widget=inploi-chatbot] .container{max-width:1280px}}@media (min-width: 1536px){[data-widget=inploi-chatbot] .container{max-width:1536px}}[data-widget=inploi-chatbot] .sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border-width:0}[data-widget=inploi-chatbot] .visible{visibility:visible}[data-widget=inploi-chatbot] .invisible{visibility:hidden}[data-widget=inploi-chatbot] .collapse{visibility:collapse}[data-widget=inploi-chatbot] .static{position:static}[data-widget=inploi-chatbot] .fixed{position:fixed}[data-widget=inploi-chatbot] .absolute{position:absolute}[data-widget=inploi-chatbot] .relative{position:relative}[data-widget=inploi-chatbot] .sticky{position:sticky}[data-widget=inploi-chatbot] .inset-0{top:0;right:0;bottom:0;left:0}[data-widget=inploi-chatbot] .bottom-0{bottom:0}[data-widget=inploi-chatbot] .bottom-2{bottom:8px}[data-widget=inploi-chatbot] .bottom-2\\.5{bottom:10px}[data-widget=inploi-chatbot] .left-0{left:0}[data-widget=inploi-chatbot] .left-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-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-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\\(8lh\\+1rem\\)\\]{max-height:calc(8lh + 16px)}[data-widget=inploi-chatbot] .max-h-full{max-height:100%}[data-widget=inploi-chatbot] .min-h-\\[36px\\]{min-height:36px}[data-widget=inploi-chatbot] .min-h-\\[calc\\(1lh\\+1rem\\)\\]{min-height:calc(1lh + 16px)}[data-widget=inploi-chatbot] .w-1\\.5{width:6px}[data-widget=inploi-chatbot] .w-16{width:64px}[data-widget=inploi-chatbot] .w-24{width:96px}[data-widget=inploi-chatbot] .w-4{width:16px}[data-widget=inploi-chatbot] .w-64{width:256px}[data-widget=inploi-chatbot] .w-8{width:32px}[data-widget=inploi-chatbot] .w-\\[72px\\]{width:72px}[data-widget=inploi-chatbot] .w-full{width:100%}[data-widget=inploi-chatbot] .min-w-0{min-width:0px}[data-widget=inploi-chatbot] .min-w-\\[2rem\\]{min-width:32px}[data-widget=inploi-chatbot] .max-w-\\[450px\\]{max-width:450px}[data-widget=inploi-chatbot] .max-w-\\[min\\(100\\%\\,24rem\\)\\]{max-width:min(100%,384px)}[data-widget=inploi-chatbot] .max-w-\\[min\\(300px\\,calc\\(100vw-4rem\\)\\)\\]{max-width:min(300px,calc(100vw - 64px))}[data-widget=inploi-chatbot] .max-w-\\[var\\(--radix-popover-content-available-width\\)\\]{max-width:var(--radix-popover-content-available-width)}[data-widget=inploi-chatbot] .max-w-full{max-width:100%}[data-widget=inploi-chatbot] .flex-1{flex:1 1 0%}[data-widget=inploi-chatbot] .flex-auto{flex:1 1 auto}[data-widget=inploi-chatbot] .flex-none{flex:none}[data-widget=inploi-chatbot] .flex-shrink{flex-shrink:1}[data-widget=inploi-chatbot] .flex-shrink-0{flex-shrink:0}[data-widget=inploi-chatbot] .shrink{flex-shrink:1}[data-widget=inploi-chatbot] .flex-grow,[data-widget=inploi-chatbot] .grow{flex-grow:1}[data-widget=inploi-chatbot] .border-collapse{border-collapse:collapse}[data-widget=inploi-chatbot] .scale-75{--tw-scale-x: .75;--tw-scale-y: .75;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}[data-widget=inploi-chatbot] .transform{transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}@keyframes bounce{0%,to{transform:translateY(-25%);animation-timing-function:cubic-bezier(.8,0,1,1)}50%{transform:none;animation-timing-function:cubic-bezier(0,0,.2,1)}}[data-widget=inploi-chatbot] .animate-bounce{animation:bounce 1s infinite}@keyframes bubble-in{0%{transform:translateY(100%) scale(.8);opacity:0}to{transform:translateY(0) scale(1);opacity:1}}[data-widget=inploi-chatbot] .animate-bubble-in{animation:bubble-in .3s cubic-bezier(.34,1.56,.64,1)}@keyframes maximise{0%{transform:translateY(50%) scaleX(.7)}to{transform:translateY(0)}}[data-widget=inploi-chatbot] .animate-maximise{animation:maximise .4s cubic-bezier(.16,1,.3,1)}@keyframes pulse{50%{opacity:.5}}[data-widget=inploi-chatbot] .animate-pulse{animation:pulse 2s cubic-bezier(.4,0,.6,1) infinite}@keyframes slide-in-bottom{0%{transform:translateY(-100%) scaleX(1.25)}to{transform:translateY(0)}}[data-widget=inploi-chatbot] .animate-slide-in-bottom{animation:slide-in-bottom .3s cubic-bezier(.175,.885,.32,1.275)}[data-widget=inploi-chatbot] .cursor-pointer{cursor:pointer}[data-widget=inploi-chatbot] .select-none{-webkit-user-select:none;-moz-user-select:none;user-select:none}[data-widget=inploi-chatbot] .select-text{-webkit-user-select:text;-moz-user-select:text;user-select:text}[data-widget=inploi-chatbot] .resize-y{resize:vertical}[data-widget=inploi-chatbot] .resize{resize:both}[data-widget=inploi-chatbot] .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-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] .overflow-y-scroll{overflow-y:scroll}[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-b-3xl{border-bottom-right-radius:24px;border-bottom-left-radius:24px}[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\\.5{padding-top:10px}[data-widget=inploi-chatbot] .pt-3{padding-top:12px}[data-widget=inploi-chatbot] .pt-5{padding-top:20px}[data-widget=inploi-chatbot] .pt-\\[calc\\(var\\(--header-height\\)\\+1rem\\)\\]{padding-top:calc(var(--header-height) + 16px)}[data-widget=inploi-chatbot] .text-center{text-align:center}[data-widget=inploi-chatbot] .text-justify{text-align:justify}[data-widget=inploi-chatbot] .text-\\[10px\\]{font-size:10px}[data-widget=inploi-chatbot] .text-\\[11px\\]{font-size:11px}[data-widget=inploi-chatbot] .text-base{font-size:16px;line-height:24px}[data-widget=inploi-chatbot] .text-sm{font-size:14px;line-height:20px}[data-widget=inploi-chatbot] .text-xs{font-size:12px;line-height:16px}[data-widget=inploi-chatbot] .font-bold{font-weight:700}[data-widget=inploi-chatbot] .font-medium{font-weight:500}[data-widget=inploi-chatbot] .font-semibold{font-weight:600}[data-widget=inploi-chatbot] .uppercase{text-transform:uppercase}[data-widget=inploi-chatbot] .lowercase{text-transform:lowercase}[data-widget=inploi-chatbot] .capitalize{text-transform:capitalize}[data-widget=inploi-chatbot] .italic{font-style:italic}[data-widget=inploi-chatbot] .ordinal{--tw-ordinal: ordinal;font-variant-numeric:var(--tw-ordinal) var(--tw-slashed-zero) var(--tw-numeric-figure) var(--tw-numeric-spacing) var(--tw-numeric-fraction)}[data-widget=inploi-chatbot] .leading-3{line-height:12px}[data-widget=inploi-chatbot] .leading-snug{line-height:1.375}[data-widget=inploi-chatbot] .leading-tight{line-height:1.25}[data-widget=inploi-chatbot] .tracking-\\[-0\\.01em\\]{letter-spacing:-.01em}[data-widget=inploi-chatbot] .tracking-tight{letter-spacing:-.025em}[data-widget=inploi-chatbot] .tracking-wide{letter-spacing:.025em}[data-widget=inploi-chatbot] .tracking-widest{letter-spacing:.1em}[data-widget=inploi-chatbot] .text-\\[\\#4CAF50\\]{--tw-text-opacity: 1;color:rgb(76 175 80 / var(--tw-text-opacity, 1))}[data-widget=inploi-chatbot] .text-\\[\\#FFC107\\]{--tw-text-opacity: 1;color:rgb(255 193 7 / var(--tw-text-opacity, 1))}[data-widget=inploi-chatbot] .text-accent-1{color:var(--i-color-a-1)}[data-widget=inploi-chatbot] .text-accent-10{color:var(--i-color-a-10)}[data-widget=inploi-chatbot] .text-accent-11{color:var(--i-color-a-11)}[data-widget=inploi-chatbot] .text-accent-12{color:var(--i-color-a-12)}[data-widget=inploi-chatbot] .text-accent-9{color:var(--i-color-a-9)}[data-widget=inploi-chatbot] .text-error-11{color:var(--i-color-e-11)}[data-widget=inploi-chatbot] .text-error-9{color:var(--i-color-e-9)}[data-widget=inploi-chatbot] .text-neutral-10{color:var(--i-color-n-10)}[data-widget=inploi-chatbot] .text-neutral-11{color:var(--i-color-n-11)}[data-widget=inploi-chatbot] .text-neutral-12{color:var(--i-color-n-12)}[data-widget=inploi-chatbot] .text-neutral-6{color:var(--i-color-n-6)}[data-widget=inploi-chatbot] .text-neutral-8{color:var(--i-color-n-8)}[data-widget=inploi-chatbot] .text-neutral-9{color:var(--i-color-n-9)}[data-widget=inploi-chatbot] .text-white{--tw-text-opacity: 1;color:rgb(255 255 255 / var(--tw-text-opacity, 1))}[data-widget=inploi-chatbot] .text-white\\/80{color:#fffc}[data-widget=inploi-chatbot] .underline{text-decoration-line:underline}[data-widget=inploi-chatbot] .no-underline{text-decoration-line:none}[data-widget=inploi-chatbot] .underline-offset-2{text-underline-offset:2px}[data-widget=inploi-chatbot] .underline-offset-4{text-underline-offset:4px}[data-widget=inploi-chatbot] .caret-accent-9{caret-color:var(--i-color-a-9)}[data-widget=inploi-chatbot] .opacity-0{opacity:0}[data-widget=inploi-chatbot] .shadow{--tw-shadow: 0 1px 3px 0 rgb(0 0 0 / .1), 0 1px 2px -1px rgb(0 0 0 / .1);--tw-shadow-colored: 0 1px 3px 0 var(--tw-shadow-color), 0 1px 2px -1px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow)}[data-widget=inploi-chatbot] .shadow-\\[0_0_0_1px\\]{--tw-shadow: 0 0 0 1px;--tw-shadow-colored: 0 0 0 1px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow)}[data-widget=inploi-chatbot] .shadow-surface-lg{--tw-shadow: 0px 3px 3px 0px oklch(0% 0 0 / .03), 0px 6px 4px 0px oklch(0% 0 0 / .02), 0px 11px 4px 0px oklch(0% 0 0 / .01), 0px 32px 24px -12px oklch(0% 0 0 / .06);--tw-shadow-colored: 0px 3px 3px 0px var(--tw-shadow-color), 0px 6px 4px 0px var(--tw-shadow-color), 0px 11px 4px 0px var(--tw-shadow-color), 0px 32px 24px -12px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow)}[data-widget=inploi-chatbot] .shadow-surface-md{--tw-shadow: 0px 3px 3px 0px oklch(0% 0 0 / .03), 0px 6px 4px 0px oklch(0% 0 0 / .02), 0px 6px 4px 0px oklch(0% 0 0 / .01);--tw-shadow-colored: 0px 3px 3px 0px var(--tw-shadow-color), 0px 6px 4px 0px var(--tw-shadow-color), 0px 6px 4px 0px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow)}[data-widget=inploi-chatbot] .shadow-surface-sm{--tw-shadow: 0px 3px 3px 0px oklch(0% 0 0 / .03), 0px 4px 4px 0px oklch(0% 0 0 / .02);--tw-shadow-colored: 0px 3px 3px 0px var(--tw-shadow-color), 0px 4px 4px 0px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow)}[data-widget=inploi-chatbot] .shadow-bubble-strong-shadow{--tw-shadow-color: var(--i-bubble-strong-shadow);--tw-shadow: var(--tw-shadow-colored)}[data-widget=inploi-chatbot] .outline-none{outline:2px solid transparent;outline-offset:2px}[data-widget=inploi-chatbot] .outline{outline-style:solid}[data-widget=inploi-chatbot] .outline-1{outline-width:1px}[data-widget=inploi-chatbot] .outline-2{outline-width:2px}[data-widget=inploi-chatbot] .outline-accent-10{outline-color:var(--i-color-a-10)}[data-widget=inploi-chatbot] .outline-accent-4{outline-color:var(--i-color-a-4)}[data-widget=inploi-chatbot] .outline-bubble-weak{outline-color:var(--i-bubble-weak-outline)}[data-widget=inploi-chatbot] .outline-divider{outline-color:var(--i-color-divider)}[data-widget=inploi-chatbot] .outline-neutral-3{outline-color:var(--i-color-n-3)}[data-widget=inploi-chatbot] .outline-neutral-6{outline-color:var(--i-color-n-6)}[data-widget=inploi-chatbot] .ring-0{--tw-ring-offset-shadow: var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);--tw-ring-shadow: var(--tw-ring-inset) 0 0 0 calc(0px + var(--tw-ring-offset-width)) var(--tw-ring-color);box-shadow:var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow, 0 0 #0000)}[data-widget=inploi-chatbot] .ring-1{--tw-ring-offset-shadow: var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);--tw-ring-shadow: var(--tw-ring-inset) 0 0 0 calc(1px + var(--tw-ring-offset-width)) var(--tw-ring-color);box-shadow:var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow, 0 0 #0000)}[data-widget=inploi-chatbot] .ring-2{--tw-ring-offset-shadow: var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);--tw-ring-shadow: var(--tw-ring-inset) 0 0 0 calc(2px + var(--tw-ring-offset-width)) var(--tw-ring-color);box-shadow:var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow, 0 0 #0000)}[data-widget=inploi-chatbot] .ring-inset{--tw-ring-inset: inset}[data-widget=inploi-chatbot] .ring-accent-6{--tw-ring-color: var(--i-color-a-6)}[data-widget=inploi-chatbot] .ring-divider{--tw-ring-color: var(--i-color-divider)}[data-widget=inploi-chatbot] .ring-lowest{--tw-ring-color: var(--i-color-lowest)}[data-widget=inploi-chatbot] .ring-neutral-4{--tw-ring-color: var(--i-color-n-4)}[data-widget=inploi-chatbot] .ring-neutral-5{--tw-ring-color: var(--i-color-n-5)}[data-widget=inploi-chatbot] .ring-neutral-7{--tw-ring-color: var(--i-color-n-7)}[data-widget=inploi-chatbot] .ring-transparent{--tw-ring-color: transparent}[data-widget=inploi-chatbot] .ring-offset-\\[1\\.5px\\]{--tw-ring-offset-width: 1.5px}[data-widget=inploi-chatbot] .ring-offset-neutral-1{--tw-ring-offset-color: var(--i-color-n-1)}[data-widget=inploi-chatbot] .blur{--tw-blur: blur(8px);filter:var(--tw-blur) var(--tw-brightness) var(--tw-contrast) var(--tw-grayscale) var(--tw-hue-rotate) var(--tw-invert) var(--tw-saturate) var(--tw-sepia) var(--tw-drop-shadow)}[data-widget=inploi-chatbot] .drop-shadow-\\[0_1\\.5px_var\\(--i-color-n-1\\)\\]{--tw-drop-shadow: drop-shadow(0 1.5px var(--i-color-n-1));filter:var(--tw-blur) var(--tw-brightness) var(--tw-contrast) var(--tw-grayscale) var(--tw-hue-rotate) var(--tw-invert) var(--tw-saturate) var(--tw-sepia) var(--tw-drop-shadow)}[data-widget=inploi-chatbot] .grayscale{--tw-grayscale: grayscale(100%);filter:var(--tw-blur) var(--tw-brightness) var(--tw-contrast) var(--tw-grayscale) var(--tw-hue-rotate) var(--tw-invert) var(--tw-saturate) var(--tw-sepia) var(--tw-drop-shadow)}[data-widget=inploi-chatbot] .invert{--tw-invert: invert(100%);filter:var(--tw-blur) var(--tw-brightness) var(--tw-contrast) var(--tw-grayscale) var(--tw-hue-rotate) var(--tw-invert) var(--tw-saturate) var(--tw-sepia) var(--tw-drop-shadow)}[data-widget=inploi-chatbot] .sepia{--tw-sepia: sepia(100%);filter:var(--tw-blur) var(--tw-brightness) var(--tw-contrast) var(--tw-grayscale) var(--tw-hue-rotate) var(--tw-invert) var(--tw-saturate) var(--tw-sepia) var(--tw-drop-shadow)}[data-widget=inploi-chatbot] .filter{filter:var(--tw-blur) var(--tw-brightness) var(--tw-contrast) var(--tw-grayscale) var(--tw-hue-rotate) var(--tw-invert) var(--tw-saturate) var(--tw-sepia) var(--tw-drop-shadow)}[data-widget=inploi-chatbot] .backdrop-blur-md{--tw-backdrop-blur: blur(12px);-webkit-backdrop-filter:var(--tw-backdrop-blur) var(--tw-backdrop-brightness) var(--tw-backdrop-contrast) var(--tw-backdrop-grayscale) var(--tw-backdrop-hue-rotate) var(--tw-backdrop-invert) var(--tw-backdrop-opacity) var(--tw-backdrop-saturate) var(--tw-backdrop-sepia);backdrop-filter:var(--tw-backdrop-blur) var(--tw-backdrop-brightness) var(--tw-backdrop-contrast) var(--tw-backdrop-grayscale) var(--tw-backdrop-hue-rotate) var(--tw-backdrop-invert) var(--tw-backdrop-opacity) var(--tw-backdrop-saturate) var(--tw-backdrop-sepia)}[data-widget=inploi-chatbot] .backdrop-blur-xl{--tw-backdrop-blur: blur(24px);-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] .duration-700{transition-duration:.7s}[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-\\[height\\]{will-change:height}[data-widget=inploi-chatbot] .will-change-\\[transform\\,opacity\\]{will-change:transform,opacity}[data-widget=inploi-chatbot] .text-wrap-balance{text-wrap:balance}[data-widget=inploi-chatbot] .fr{outline:none}[data-widget=inploi-chatbot] .fr:focus{outline:none}[data-widget=inploi-chatbot] .fr:focus-visible{outline:none;--tw-ring-offset-width: 1px;--tw-ring-offset-color: var(--i-color-lowest);--tw-ring-opacity: 1;--tw-ring-color: var(--i-color-a-9);--tw-ring-shadow: var(--tw-ring-inset) 0 0 0 calc(2px + var(--tw-ring-offset-width)) var(--tw-ring-color);box-shadow:var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow, 0 0 #0000)}[data-widget=inploi-chatbot] .gutter-stable{scrollbar-gutter:stable}[data-widget=inploi-chatbot] .hide-scrollbars::-webkit-scrollbar{display:none}[data-widget=inploi-chatbot] .hide-scrollbars{scrollbar-width:none;-ms-overflow-style:none}[data-widget=inploi-chatbot] .touch-hitbox:before{content:"";position:absolute;display:block;top:50%;left:50%;transform:translate(-50%,-50%);width:100%;height:100%;min-height:44px;min-width:44px;z-index:9999}[data-widget=inploi-chatbot] .\\[-webkit-outer-spin-button\\:none\\]{-webkit-outer-spin-button:none}[data-widget=inploi-chatbot] .\\[a-zA-Z0-9-_\\:\\.\\$\\@\\?\\]{a-z-a--z0-9-_:.$@?}[data-widget=inploi-chatbot] .\\[grid-template-columns\\:min-content_1fr\\]{grid-template-columns:min-content 1fr}[data-widget=inploi-chatbot] .\\[text-wrap\\:pretty\\]{text-wrap:pretty}[data-widget=inploi-chatbot] .selection\\:bg-accent-4 *::-moz-selection{background-color:var(--i-color-a-4)}[data-widget=inploi-chatbot] .selection\\:bg-accent-4 *::selection{background-color:var(--i-color-a-4)}[data-widget=inploi-chatbot] .selection\\:bg-transparent *::-moz-selection{background-color:transparent}[data-widget=inploi-chatbot] .selection\\:bg-transparent *::selection{background-color:transparent}[data-widget=inploi-chatbot] .selection\\:text-accent-12 *::-moz-selection{color:var(--i-color-a-12)}[data-widget=inploi-chatbot] .selection\\:text-accent-12 *::selection{color:var(--i-color-a-12)}[data-widget=inploi-chatbot] .selection\\:bg-accent-4::-moz-selection{background-color:var(--i-color-a-4)}[data-widget=inploi-chatbot] .selection\\:bg-accent-4::selection{background-color:var(--i-color-a-4)}[data-widget=inploi-chatbot] .selection\\:bg-transparent::-moz-selection{background-color:transparent}[data-widget=inploi-chatbot] .selection\\:bg-transparent::selection{background-color:transparent}[data-widget=inploi-chatbot] .selection\\:text-accent-12::-moz-selection{color:var(--i-color-a-12)}[data-widget=inploi-chatbot] .selection\\:text-accent-12::selection{color:var(--i-color-a-12)}[data-widget=inploi-chatbot] .placeholder\\:text-neutral-10::-moz-placeholder{color:var(--i-color-n-10)}[data-widget=inploi-chatbot] .placeholder\\:text-neutral-10::placeholder{color:var(--i-color-n-10)}[data-widget=inploi-chatbot] .placeholder\\:text-neutral-8::-moz-placeholder{color:var(--i-color-n-8)}[data-widget=inploi-chatbot] .placeholder\\:text-neutral-8::placeholder{color:var(--i-color-n-8)}[data-widget=inploi-chatbot] .first-of-type\\:rounded-l-lg:first-of-type{border-top-left-radius:8px;border-bottom-left-radius:8px}[data-widget=inploi-chatbot] .last-of-type\\:rounded-r-lg:last-of-type{border-top-right-radius:8px;border-bottom-right-radius:8px}[data-widget=inploi-chatbot] .autofill\\:shadow-\\[inset_0_0_0_1000px_hsl\\(210_16\\.7\\%_97\\.6\\%\\)\\]:-webkit-autofill{--tw-shadow: inset 0 0 0 1000px hsl(210 16.7% 97.6%);--tw-shadow-colored: inset 0 0 0 1000px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow)}[data-widget=inploi-chatbot] .autofill\\:shadow-\\[inset_0_0_0_1000px_hsl\\(210_16\\.7\\%_97\\.6\\%\\)\\]:autofill{--tw-shadow: inset 0 0 0 1000px hsl(210 16.7% 97.6%);--tw-shadow-colored: inset 0 0 0 1000px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow)}[data-widget=inploi-chatbot] .autofill\\:shadow-\\[inset_0_0_0_1000px_var\\(--i-color-a-2\\)\\]:-webkit-autofill{--tw-shadow: inset 0 0 0 1000px var(--i-color-a-2);--tw-shadow-colored: inset 0 0 0 1000px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow)}[data-widget=inploi-chatbot] .autofill\\:shadow-\\[inset_0_0_0_1000px_var\\(--i-color-a-2\\)\\]:autofill{--tw-shadow: inset 0 0 0 1000px var(--i-color-a-2);--tw-shadow-colored: inset 0 0 0 1000px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow)}[data-widget=inploi-chatbot] .autofill\\:\\[-webkit-text-fill-color\\:var\\(--i-color-a-11\\)\\]:-webkit-autofill{-webkit-text-fill-color:var(--i-color-a-11)}[data-widget=inploi-chatbot] .autofill\\:\\[-webkit-text-fill-color\\:var\\(--i-color-a-11\\)\\]:autofill{-webkit-text-fill-color:var(--i-color-a-11)}[data-widget=inploi-chatbot] .focus-within\\:bg-neutral-5:focus-within{background-color:var(--i-color-n-5)}[data-widget=inploi-chatbot] .focus-within\\:outline-none:focus-within{outline:2px solid transparent;outline-offset:2px}[data-widget=inploi-chatbot] .focus-within\\:outline-accent-7:focus-within{outline-color:var(--i-color-a-7)}[data-widget=inploi-chatbot] .hover\\:z-10:hover{z-index:10}[data-widget=inploi-chatbot] .hover\\:scale-\\[1\\.02\\]:hover{--tw-scale-x: 1.02;--tw-scale-y: 1.02;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}[data-widget=inploi-chatbot] .hover\\:border-accent-10:hover{border-color:var(--i-color-a-10)}[data-widget=inploi-chatbot] .hover\\:border-neutral-5:hover{border-color:var(--i-color-n-5)}[data-widget=inploi-chatbot] .hover\\:bg-accent-10:hover{background-color:var(--i-color-a-10)}[data-widget=inploi-chatbot] .hover\\:bg-divider:hover{background-color:var(--i-color-divider)}[data-widget=inploi-chatbot] .hover\\:bg-interactive-bg-hover:hover{background-color:var(--i-interactive-bg-hover)}[data-widget=inploi-chatbot] .hover\\:bg-neutral-2:hover{background-color:var(--i-color-n-2)}[data-widget=inploi-chatbot] .hover\\:bg-neutral-3:hover{background-color:var(--i-color-n-3)}[data-widget=inploi-chatbot] .hover\\:bg-neutral-4:hover{background-color:var(--i-color-n-4)}[data-widget=inploi-chatbot] .hover\\:bg-neutral-5:hover{background-color:var(--i-color-n-5)}[data-widget=inploi-chatbot] .hover\\:bg-white\\/20:hover{background-color:#fff3}[data-widget=inploi-chatbot] .hover\\:text-accent-11:hover{color:var(--i-color-a-11)}[data-widget=inploi-chatbot] .hover\\:text-neutral-12:hover{color:var(--i-color-n-12)}[data-widget=inploi-chatbot] .hover\\:text-white:hover{--tw-text-opacity: 1;color:rgb(255 255 255 / var(--tw-text-opacity, 1))}[data-widget=inploi-chatbot] .hover\\:underline:hover{text-decoration-line:underline}[data-widget=inploi-chatbot] .hover\\:ring-accent-8:hover{--tw-ring-color: var(--i-color-a-8)}[data-widget=inploi-chatbot] .hover\\:ring-divider:hover{--tw-ring-color: var(--i-color-divider)}[data-widget=inploi-chatbot] .focus\\:z-20:focus{z-index:20}[data-widget=inploi-chatbot] .focus\\:bg-neutral-5:focus{background-color:var(--i-color-n-5)}[data-widget=inploi-chatbot] .focus\\:shadow-\\[0_0_0_2px\\]:focus{--tw-shadow: 0 0 0 2px;--tw-shadow-colored: 0 0 0 2px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow)}[data-widget=inploi-chatbot] .focus\\:outline-none:focus{outline:2px solid transparent;outline-offset:2px}[data-widget=inploi-chatbot] .autofill\\:focus\\:shadow-\\[inset_0_0_0_1000px_var\\(--i-color-a-1\\)\\]:focus:-webkit-autofill{--tw-shadow: inset 0 0 0 1000px var(--i-color-a-1);--tw-shadow-colored: inset 0 0 0 1000px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow)}[data-widget=inploi-chatbot] .autofill\\:focus\\:shadow-\\[inset_0_0_0_1000px_var\\(--i-color-a-1\\)\\]:focus:autofill{--tw-shadow: inset 0 0 0 1000px var(--i-color-a-1);--tw-shadow-colored: inset 0 0 0 1000px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow)}[data-widget=inploi-chatbot] .focus-visible\\:bg-neutral-3:focus-visible{background-color:var(--i-color-n-3)}[data-widget=inploi-chatbot] .focus-visible\\:outline-none:focus-visible{outline:2px solid transparent;outline-offset:2px}[data-widget=inploi-chatbot] .focus-visible\\:outline-2:focus-visible{outline-width:2px}[data-widget=inploi-chatbot] .focus-visible\\:outline-accent-7:focus-visible{outline-color:var(--i-color-a-7)}[data-widget=inploi-chatbot] .focus-visible\\:outline-accent-8:focus-visible{outline-color:var(--i-color-a-8)}[data-widget=inploi-chatbot] .focus-visible\\:ring-4:focus-visible{--tw-ring-offset-shadow: var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);--tw-ring-shadow: var(--tw-ring-inset) 0 0 0 calc(4px + var(--tw-ring-offset-width)) var(--tw-ring-color);box-shadow:var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow, 0 0 #0000)}[data-widget=inploi-chatbot] .focus-visible\\:ring-offset-2:focus-visible{--tw-ring-offset-width: 2px}[data-widget=inploi-chatbot] .active\\:scale-\\[\\.97\\]:active{--tw-scale-x: .97;--tw-scale-y: .97;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}[data-widget=inploi-chatbot] .active\\:border-submit-bg-active:active{border-color:var(--i-submit-button-bg-active)}[data-widget=inploi-chatbot] .active\\:bg-accent-10:active{background-color:var(--i-color-a-10)}[data-widget=inploi-chatbot] .active\\:bg-accent-2:active{background-color:var(--i-color-a-2)}[data-widget=inploi-chatbot] .active\\:bg-interactive-bg-active:active{background-color:var(--i-interactive-bg-active)}[data-widget=inploi-chatbot] .active\\:bg-interactive-bg-hover:active{background-color:var(--i-interactive-bg-hover)}[data-widget=inploi-chatbot] .active\\:bg-submit-bg-active:active{background-color:var(--i-submit-button-bg-active)}[data-widget=inploi-chatbot] .active\\:bg-white\\/30:active{background-color:#ffffff4d}[data-widget=inploi-chatbot] .active\\:text-accent-10:active{color:var(--i-color-a-10)}[data-widget=inploi-chatbot] .active\\:text-accent-11:active{color:var(--i-color-a-11)}[data-widget=inploi-chatbot] .active\\:text-neutral-12:active{color:var(--i-color-n-12)}[data-widget=inploi-chatbot] .active\\:text-white:active{--tw-text-opacity: 1;color:rgb(255 255 255 / var(--tw-text-opacity, 1))}[data-widget=inploi-chatbot] .active\\:outline-neutral-8:active{outline-color:var(--i-color-n-8)}[data-widget=inploi-chatbot] .active\\:ring-2:active{--tw-ring-offset-shadow: var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);--tw-ring-shadow: var(--tw-ring-inset) 0 0 0 calc(2px + var(--tw-ring-offset-width)) var(--tw-ring-color);box-shadow:var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow, 0 0 #0000)}[data-widget=inploi-chatbot] .active\\:ring-accent-7:active{--tw-ring-color: var(--i-color-a-7)}[data-widget=inploi-chatbot] .active\\:ring-interactive-bg-hover:active{--tw-ring-color: var(--i-interactive-bg-hover)}[data-widget=inploi-chatbot] .active\\:ring-offset-2:active{--tw-ring-offset-width: 2px}[data-widget=inploi-chatbot] .disabled\\:cursor-not-allowed:disabled{cursor:not-allowed}[data-widget=inploi-chatbot] .disabled\\:opacity-50:disabled{opacity:.5}[data-widget=inploi-chatbot] .peer:checked~.peer-checked\\:bg-accent-2{background-color:var(--i-color-a-2)}[data-widget=inploi-chatbot] .peer:checked~.peer-checked\\:text-accent-9{color:var(--i-color-a-9)}[data-widget=inploi-chatbot] .peer:checked~.peer-checked\\:outline-accent-7{outline-color:var(--i-color-a-7)}[data-widget=inploi-chatbot] .peer:focus-visible~.peer-focus-visible\\:ring-4{--tw-ring-offset-shadow: var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);--tw-ring-shadow: var(--tw-ring-inset) 0 0 0 calc(4px + var(--tw-ring-offset-width)) var(--tw-ring-color);box-shadow:var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow, 0 0 #0000)}[data-widget=inploi-chatbot] .peer:focus-visible~.peer-focus-visible\\:ring-accent-9{--tw-ring-color: var(--i-color-a-9)}[data-widget=inploi-chatbot] .peer:focus-visible~.peer-focus-visible\\:ring-offset-accent-7{--tw-ring-offset-color: var(--i-color-a-7)}[data-widget=inploi-chatbot] .group[aria-pressed=true] .group-aria-\\[pressed\\=true\\]\\:scale-100{--tw-scale-x: 1;--tw-scale-y: 1;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}@media (pointer: coarse){[data-widget=inploi-chatbot] .pointer-coarse\\:touch-hitbox\\:\\:before:before{content:"";position:absolute;display:block;top:50%;left:50%;transform:translate(-50%,-50%);width:100%;height:100%;min-height:44px;min-width:44px;z-index:9999}}[data-widget=inploi-chatbot] .\\[\\&\\:has\\(\\+\\*\\>input\\:focus\\)\\]\\:text-neutral-11:has(+*>input:focus){color:var(--i-color-n-11)}[data-widget=inploi-chatbot] .\\[\\&\\:has\\(\\.view-switch\\:active\\)\\]\\:scale-\\[0\\.98\\]:has(.view-switch:active){--tw-scale-x: .98;--tw-scale-y: .98;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}[data-widget=inploi-chatbot] .\\[\\&\\:has\\(\\>\\.view-switch\\:focus-visible\\)\\]\\:ring-1:has(>.view-switch:focus-visible){--tw-ring-offset-shadow: var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);--tw-ring-shadow: var(--tw-ring-inset) 0 0 0 calc(1px + var(--tw-ring-offset-width)) var(--tw-ring-color);box-shadow:var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow, 0 0 #0000)}@keyframes fade-in{0%{opacity:0}to{opacity:1}}[data-widget=inploi-chatbot] dialog::backdrop{animation:fade-in .5s cubic-bezier(.16,1,.3,1) both}[data-widget=inploi-chatbot] dialog::backdrop{background-color:var(--i-overlay-bg)}
2630
+ `, Wa = "inploi-chatbot", Me = `[data-widget='${Wa}']`, kl = () => ({
2631
+ getChatbotElement: () => document.querySelector(Me),
2632
+ getOrCreateChatbotElement: () => {
2633
+ const t = document.querySelector(Me);
2634
+ if (t)
2635
+ return document.body.appendChild(t), t;
2636
+ const e = document.createElement("div");
2637
+ return document.body.appendChild(e), e.dataset.widget = Wa, e;
2638
+ }
2639
+ }), $l = 25, Ae = at({
2640
+ instant: () => {
2641
+ },
2642
+ smooth: () => {
2643
+ }
2644
+ }), Sl = (t, e) => new Promise((i, a) => {
2645
+ if (e != null && e.aborted)
2646
+ return a(new ut());
2647
+ const o = setTimeout(i, t);
2648
+ e == null || e.addEventListener("abort", () => {
2649
+ clearTimeout(o), a(new ut());
2650
+ }, {
2651
+ once: !0
2652
+ });
2653
+ }), Rt = {
2654
+ onSubmitSuccessFn$: at(() => {
2655
+ }),
2656
+ isBotTyping$: at(!1),
2657
+ scrollToEnd: {
2658
+ instant: () => Ae.value.instant(),
2659
+ smooth: () => Ae.value.smooth()
2660
+ }
2661
+ }, pd = () => {
2662
+ const t = ee(null);
2663
+ _t(() => {
2664
+ Ae.value = {
2665
+ instant: () => {
2666
+ var i;
2667
+ return (i = t.current) == null ? void 0 : i.scrollTo({
2668
+ top: t.current.scrollHeight,
2669
+ behavior: "instant"
2670
+ });
2671
+ },
2672
+ smooth: () => {
2673
+ t.current && t.current.scrollHeight - t.current.scrollTop <= t.current.clientHeight * 2 && t.current.scrollTo({
2674
+ top: t.current.scrollHeight,
2675
+ behavior: "smooth"
2676
+ });
2677
+ }
2678
+ };
2679
+ }, [t]);
2680
+ const e = lt(() => ({
2681
+ addToSubmissions: (a, o) => $.setSubmission(a, o),
2682
+ send: async ({
2683
+ message: a,
2684
+ signal: o,
2685
+ groupId: r
2686
+ }) => {
2687
+ if (await ie(a).with({
2688
+ author: "bot",
2689
+ type: "text"
2690
+ }, async (n) => {
2691
+ if (o != null && o.aborted)
2692
+ throw new ut();
2693
+ Rt.isBotTyping$.value = !0;
2694
+ const s = Math.min(Math.max(20, n.text.length), 100) * $l;
2695
+ try {
2696
+ await Sl(s, o);
2697
+ } finally {
2698
+ Rt.isBotTyping$.value = !1;
2699
+ }
2700
+ }).otherwise(async () => {
2701
+ }), o != null && o.aborted)
2702
+ throw new ut();
2703
+ $.addMessage(a, r);
2704
+ },
2705
+ input: ({
2706
+ input: a,
2707
+ signal: o
2708
+ }) => {
2709
+ if (o != null && o.aborted)
2710
+ throw new ut();
2711
+ return $.setInput(a), new Promise((r) => {
2712
+ const n = (s) => {
2713
+ if (o != null && o.aborted)
2714
+ throw new ut();
2715
+ $.setInput(void 0), a.key && $.setSubmission(a.key, s), r(s);
2716
+ };
2717
+ Rt.onSubmitSuccessFn$.value = n;
2718
+ });
2719
+ }
2720
+ }), []);
2721
+ return {
2722
+ chatRef: t,
2723
+ chatService: e
2724
+ };
2725
+ };
2726
+ var K;
2727
+ // @__NO_SIDE_EFFECTS__
2728
+ function oe(t) {
2729
+ return {
2730
+ lang: (t == null ? void 0 : t.lang) ?? (K == null ? void 0 : K.lang),
2731
+ message: t == null ? void 0 : t.message,
2732
+ abortEarly: (t == null ? void 0 : t.abortEarly) ?? (K == null ? void 0 : K.abortEarly),
2733
+ abortPipeEarly: (t == null ? void 0 : t.abortPipeEarly) ?? (K == null ? void 0 : K.abortPipeEarly)
2734
+ };
2735
+ }
2736
+ var pe;
2737
+ // @__NO_SIDE_EFFECTS__
2738
+ function Cl(t) {
2739
+ return pe == null ? void 0 : pe.get(t);
2740
+ }
2741
+ var he;
2742
+ // @__NO_SIDE_EFFECTS__
2743
+ function El(t) {
2744
+ return he == null ? void 0 : he.get(t);
2745
+ }
2746
+ var fe;
2747
+ // @__NO_SIDE_EFFECTS__
2748
+ function Tl(t, e) {
2749
+ var i;
2750
+ return (i = fe == null ? void 0 : fe.get(t)) == null ? void 0 : i.get(e);
2751
+ }
2752
+ // @__NO_SIDE_EFFECTS__
2753
+ function ct(t) {
2754
+ var i, a;
2755
+ const e = typeof t;
2756
+ 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;
2757
+ }
2758
+ function j(t, e, i, a, o) {
2759
+ const r = o && "input" in o ? o.input : i.value, n = (o == null ? void 0 : o.expected) ?? t.expects ?? null, s = (o == null ? void 0 : o.received) ?? /* @__PURE__ */ ct(r), l = {
2760
+ kind: t.kind,
2761
+ type: t.type,
2762
+ input: r,
2763
+ expected: n,
2764
+ received: s,
2765
+ message: `Invalid ${e}: ${n ? `Expected ${n} but r` : "R"}eceived ${s}`,
2766
+ requirement: t.requirement,
2767
+ path: o == null ? void 0 : o.path,
2768
+ issues: o == null ? void 0 : o.issues,
2769
+ lang: a.lang,
2770
+ abortEarly: a.abortEarly,
2771
+ abortPipeEarly: a.abortPipeEarly
2772
+ }, d = t.kind === "schema", u = (o == null ? void 0 : o.message) ?? t.message ?? /* @__PURE__ */ Tl(t.reference, l.lang) ?? (d ? /* @__PURE__ */ El(l.lang) : null) ?? a.message ?? /* @__PURE__ */ Cl(l.lang);
2773
+ u !== void 0 && (l.message = typeof u == "function" ? (
2774
+ // @ts-expect-error
2775
+ u(l)
2776
+ ) : u), d && (i.typed = !1), i.issues ? i.issues.push(l) : i.issues = [l];
2777
+ }
2778
+ // @__NO_SIDE_EFFECTS__
2779
+ function A(t) {
2780
+ return {
2781
+ version: 1,
2782
+ vendor: "valibot",
2783
+ validate(e) {
2784
+ return t["~run"]({ value: e }, /* @__PURE__ */ oe());
2785
+ }
2786
+ };
2787
+ }
2788
+ // @__NO_SIDE_EFFECTS__
2789
+ function Pl(t, e) {
2790
+ return Object.hasOwn(t, e) && e !== "__proto__" && e !== "prototype" && e !== "constructor";
2791
+ }
2792
+ // @__NO_SIDE_EFFECTS__
2793
+ function Ga(t, e) {
2794
+ const i = [...new Set(t)];
2795
+ return i.length > 1 ? `(${i.join(` ${e} `)})` : i[0] ?? "never";
2796
+ }
2797
+ // @__NO_SIDE_EFFECTS__
2798
+ function hd(t) {
2799
+ if (t.path) {
2800
+ let e = "";
2801
+ for (const i of t.path)
2802
+ if (typeof i.key == "string" || typeof i.key == "number")
2803
+ e ? e += `.${i.key}` : e += i.key;
2804
+ else
2805
+ return null;
2806
+ return e;
2807
+ }
2808
+ return null;
2809
+ }
2810
+ var Ol = class extends Error {
2811
+ /**
2812
+ * Creates a Valibot error with useful information.
2813
+ *
2814
+ * @param issues The error issues.
2815
+ */
2816
+ constructor(t) {
2817
+ super(t[0].message), this.name = "ValiError", this.issues = t;
2818
+ }
2819
+ }, jl = /^[\w+-]+(?:\.[\w+-]+)*@[\da-z]+(?:[.-][\da-z]+)*\.[a-z]{2,}$/iu;
2820
+ // @__NO_SIDE_EFFECTS__
2821
+ function Il(t, e) {
2822
+ return {
2823
+ kind: "validation",
2824
+ type: "check",
2825
+ reference: Il,
2826
+ async: !1,
2827
+ expects: null,
2828
+ requirement: t,
2829
+ message: e,
2830
+ "~run"(i, a) {
2831
+ return i.typed && !this.requirement(i.value) && j(this, "input", i, a), i;
2832
+ }
2833
+ };
2834
+ }
2835
+ // @__NO_SIDE_EFFECTS__
2836
+ function Dl(t) {
2837
+ return {
2838
+ kind: "validation",
2839
+ type: "email",
2840
+ reference: Dl,
2841
+ expects: null,
2842
+ async: !1,
2843
+ requirement: jl,
2844
+ message: t,
2845
+ "~run"(e, i) {
2846
+ return e.typed && !this.requirement.test(e.value) && j(this, "email", e, i), e;
2847
+ }
2848
+ };
2849
+ }
2850
+ // @__NO_SIDE_EFFECTS__
2851
+ function zl(t, e) {
2852
+ return {
2853
+ kind: "validation",
2854
+ type: "max_length",
2855
+ reference: zl,
2856
+ async: !1,
2857
+ expects: `<=${t}`,
2858
+ requirement: t,
2859
+ message: e,
2860
+ "~run"(i, a) {
2861
+ return i.typed && i.value.length > this.requirement && j(this, "length", i, a, {
2862
+ received: `${i.value.length}`
2863
+ }), i;
2864
+ }
2865
+ };
2866
+ }
2867
+ // @__NO_SIDE_EFFECTS__
2868
+ function Nl(t, e) {
2869
+ return {
2870
+ kind: "validation",
2871
+ type: "max_value",
2872
+ reference: Nl,
2873
+ async: !1,
2874
+ expects: `<=${t instanceof Date ? t.toJSON() : /* @__PURE__ */ ct(t)}`,
2875
+ requirement: t,
2876
+ message: e,
2877
+ "~run"(i, a) {
2878
+ return i.typed && !(i.value <= this.requirement) && j(this, "value", i, a, {
2879
+ received: i.value instanceof Date ? i.value.toJSON() : /* @__PURE__ */ ct(i.value)
2880
+ }), i;
2881
+ }
2882
+ };
2883
+ }
2884
+ // @__NO_SIDE_EFFECTS__
2885
+ function Ml(t, e) {
2886
+ return {
2887
+ kind: "validation",
2888
+ type: "min_length",
2889
+ reference: Ml,
2890
+ async: !1,
2891
+ expects: `>=${t}`,
2892
+ requirement: t,
2893
+ message: e,
2894
+ "~run"(i, a) {
2895
+ return i.typed && i.value.length < this.requirement && j(this, "length", i, a, {
2896
+ received: `${i.value.length}`
2897
+ }), i;
2898
+ }
2899
+ };
2900
+ }
2901
+ // @__NO_SIDE_EFFECTS__
2902
+ function Al(t, e) {
2903
+ return {
2904
+ kind: "validation",
2905
+ type: "min_value",
2906
+ reference: Al,
2907
+ async: !1,
2908
+ expects: `>=${t instanceof Date ? t.toJSON() : /* @__PURE__ */ ct(t)}`,
2909
+ requirement: t,
2910
+ message: e,
2911
+ "~run"(i, a) {
2912
+ return i.typed && !(i.value >= this.requirement) && j(this, "value", i, a, {
2913
+ received: i.value instanceof Date ? i.value.toJSON() : /* @__PURE__ */ ct(i.value)
2914
+ }), i;
2915
+ }
2916
+ };
2917
+ }
2918
+ // @__NO_SIDE_EFFECTS__
2919
+ function Fl(t, e) {
2920
+ return {
2921
+ kind: "validation",
2922
+ type: "regex",
2923
+ reference: Fl,
2924
+ async: !1,
2925
+ expects: `${t}`,
2926
+ requirement: t,
2927
+ message: e,
2928
+ "~run"(i, a) {
2929
+ return i.typed && !this.requirement.test(i.value) && j(this, "format", i, a), i;
2930
+ }
2931
+ };
2932
+ }
2933
+ // @__NO_SIDE_EFFECTS__
2934
+ function Ya(t) {
2935
+ return {
2936
+ kind: "transformation",
2937
+ type: "transform",
2938
+ reference: Ya,
2939
+ async: !1,
2940
+ operation: t,
2941
+ "~run"(e) {
2942
+ return e.value = this.operation(e.value), e;
2943
+ }
2944
+ };
2945
+ }
2946
+ // @__NO_SIDE_EFFECTS__
2947
+ function Hl(t) {
2948
+ return {
2949
+ kind: "validation",
2950
+ type: "url",
2951
+ reference: Hl,
2952
+ async: !1,
2953
+ expects: null,
2954
+ requirement(e) {
2955
+ try {
2956
+ return new URL(e), !0;
2957
+ } catch {
2958
+ return !1;
2959
+ }
2960
+ },
2961
+ message: t,
2962
+ "~run"(e, i) {
2963
+ return e.typed && !this.requirement(e.value) && j(this, "URL", e, i), e;
2964
+ }
2965
+ };
2966
+ }
2967
+ // @__NO_SIDE_EFFECTS__
2968
+ function Bl(t, e, i) {
2969
+ return typeof t.fallback == "function" ? (
2970
+ // @ts-expect-error
2971
+ t.fallback(e, i)
2972
+ ) : (
2973
+ // @ts-expect-error
2974
+ t.fallback
2975
+ );
2976
+ }
2977
+ // @__NO_SIDE_EFFECTS__
2978
+ function ii(t, e, i) {
2979
+ return typeof t.default == "function" ? (
2980
+ // @ts-expect-error
2981
+ t.default(e, i)
2982
+ ) : (
2983
+ // @ts-expect-error
2984
+ t.default
2985
+ );
2986
+ }
2987
+ // @__NO_SIDE_EFFECTS__
2988
+ function qa() {
2989
+ return {
2990
+ kind: "schema",
2991
+ type: "any",
2992
+ reference: qa,
2993
+ expects: "any",
2994
+ async: !1,
2995
+ get "~standard"() {
2996
+ return /* @__PURE__ */ A(this);
2997
+ },
2998
+ "~run"(t) {
2999
+ return t.typed = !0, t;
3000
+ }
3001
+ };
3002
+ }
3003
+ // @__NO_SIDE_EFFECTS__
3004
+ function Ja(t, e) {
3005
+ return {
3006
+ kind: "schema",
3007
+ type: "array",
3008
+ reference: Ja,
3009
+ expects: "Array",
3010
+ async: !1,
3011
+ item: t,
3012
+ message: e,
3013
+ get "~standard"() {
3014
+ return /* @__PURE__ */ A(this);
3015
+ },
3016
+ "~run"(i, a) {
3017
+ var r;
3018
+ const o = i.value;
3019
+ if (Array.isArray(o)) {
3020
+ i.typed = !0, i.value = [];
3021
+ for (let n = 0; n < o.length; n++) {
3022
+ const s = o[n], l = this.item["~run"]({ value: s }, a);
3023
+ if (l.issues) {
3024
+ const d = {
3025
+ type: "array",
3026
+ origin: "value",
3027
+ input: o,
3028
+ key: n,
3029
+ value: s
3030
+ };
3031
+ for (const u of l.issues)
3032
+ u.path ? u.path.unshift(d) : u.path = [d], (r = i.issues) == null || r.push(u);
3033
+ if (i.issues || (i.issues = l.issues), a.abortEarly) {
3034
+ i.typed = !1;
3035
+ break;
3036
+ }
3037
+ }
3038
+ l.typed || (i.typed = !1), i.value.push(l.value);
3039
+ }
3040
+ } else
3041
+ j(this, "type", i, a);
3042
+ return i;
3043
+ }
3044
+ };
3045
+ }
3046
+ // @__NO_SIDE_EFFECTS__
3047
+ function ai(t) {
3048
+ return {
3049
+ kind: "schema",
3050
+ type: "boolean",
3051
+ reference: ai,
3052
+ expects: "boolean",
3053
+ async: !1,
3054
+ message: t,
3055
+ get "~standard"() {
3056
+ return /* @__PURE__ */ A(this);
3057
+ },
3058
+ "~run"(e, i) {
3059
+ return typeof e.value == "boolean" ? e.typed = !0 : j(this, "type", e, i), e;
3060
+ }
3061
+ };
3062
+ }
3063
+ // @__NO_SIDE_EFFECTS__
3064
+ function Fe(t, e) {
3065
+ return {
3066
+ kind: "schema",
3067
+ type: "literal",
3068
+ reference: Fe,
3069
+ expects: /* @__PURE__ */ ct(t),
3070
+ async: !1,
3071
+ literal: t,
3072
+ message: e,
3073
+ get "~standard"() {
3074
+ return /* @__PURE__ */ A(this);
3075
+ },
3076
+ "~run"(i, a) {
3077
+ return i.value === this.literal ? i.typed = !0 : j(this, "type", i, a), i;
3078
+ }
3079
+ };
3080
+ }
3081
+ // @__NO_SIDE_EFFECTS__
3082
+ function Xa(t, e) {
3083
+ return {
3084
+ kind: "schema",
3085
+ type: "nullable",
3086
+ reference: Xa,
3087
+ expects: `(${t.expects} | null)`,
3088
+ async: !1,
3089
+ wrapped: t,
3090
+ default: e,
3091
+ get "~standard"() {
3092
+ return /* @__PURE__ */ A(this);
3093
+ },
3094
+ "~run"(i, a) {
3095
+ return i.value === null && (this.default !== void 0 && (i.value = /* @__PURE__ */ ii(this, i, a)), i.value === null) ? (i.typed = !0, i) : this.wrapped["~run"](i, a);
3096
+ }
3097
+ };
3098
+ }
3099
+ // @__NO_SIDE_EFFECTS__
3100
+ function Jt(t) {
3101
+ return {
3102
+ kind: "schema",
3103
+ type: "number",
3104
+ reference: Jt,
3105
+ expects: "number",
3106
+ async: !1,
3107
+ message: t,
3108
+ get "~standard"() {
3109
+ return /* @__PURE__ */ A(this);
3110
+ },
3111
+ "~run"(e, i) {
3112
+ return typeof e.value == "number" && !isNaN(e.value) ? e.typed = !0 : j(this, "type", e, i), e;
3113
+ }
3114
+ };
3115
+ }
3116
+ // @__NO_SIDE_EFFECTS__
3117
+ function et(t, e) {
3118
+ return {
3119
+ kind: "schema",
3120
+ type: "object",
3121
+ reference: et,
3122
+ expects: "Object",
3123
+ async: !1,
3124
+ entries: t,
3125
+ message: e,
3126
+ get "~standard"() {
3127
+ return /* @__PURE__ */ A(this);
3128
+ },
3129
+ "~run"(i, a) {
3130
+ var r;
3131
+ const o = i.value;
3132
+ if (o && typeof o == "object") {
3133
+ i.typed = !0, i.value = {};
3134
+ for (const n in this.entries) {
3135
+ const s = this.entries[n];
3136
+ if (n in o || (s.type === "exact_optional" || s.type === "optional" || s.type === "nullish") && // @ts-expect-error
3137
+ s.default !== void 0) {
3138
+ const l = n in o ? (
3139
+ // @ts-expect-error
3140
+ o[n]
3141
+ ) : /* @__PURE__ */ ii(s), d = s["~run"]({ value: l }, a);
3142
+ if (d.issues) {
3143
+ const u = {
3144
+ type: "object",
3145
+ origin: "value",
3146
+ input: o,
3147
+ key: n,
3148
+ value: l
3149
+ };
3150
+ for (const c of d.issues)
3151
+ c.path ? c.path.unshift(u) : c.path = [u], (r = i.issues) == null || r.push(c);
3152
+ if (i.issues || (i.issues = d.issues), a.abortEarly) {
3153
+ i.typed = !1;
3154
+ break;
3155
+ }
3156
+ }
3157
+ d.typed || (i.typed = !1), i.value[n] = d.value;
3158
+ } else if (s.fallback !== void 0)
3159
+ i.value[n] = /* @__PURE__ */ Bl(s);
3160
+ else if (s.type !== "exact_optional" && s.type !== "optional" && s.type !== "nullish" && (j(this, "key", i, a, {
3161
+ input: void 0,
3162
+ expected: `"${n}"`,
3163
+ path: [
3164
+ {
3165
+ type: "object",
3166
+ origin: "key",
3167
+ input: o,
3168
+ key: n,
3169
+ // @ts-expect-error
3170
+ value: o[n]
3171
+ }
3172
+ ]
3173
+ }), a.abortEarly))
3174
+ break;
3175
+ }
3176
+ } else
3177
+ j(this, "type", i, a);
3178
+ return i;
3179
+ }
3180
+ };
3181
+ }
3182
+ // @__NO_SIDE_EFFECTS__
3183
+ function Q(t, e) {
3184
+ return {
3185
+ kind: "schema",
3186
+ type: "optional",
3187
+ reference: Q,
3188
+ expects: `(${t.expects} | undefined)`,
3189
+ async: !1,
3190
+ wrapped: t,
3191
+ default: e,
3192
+ get "~standard"() {
3193
+ return /* @__PURE__ */ A(this);
3194
+ },
3195
+ "~run"(i, a) {
3196
+ return i.value === void 0 && (this.default !== void 0 && (i.value = /* @__PURE__ */ ii(this, i, a)), i.value === void 0) ? (i.typed = !0, i) : this.wrapped["~run"](i, a);
3197
+ }
3198
+ };
3199
+ }
3200
+ // @__NO_SIDE_EFFECTS__
3201
+ function Ll(t, e) {
3202
+ return {
3203
+ kind: "schema",
3204
+ type: "picklist",
3205
+ reference: Ll,
3206
+ expects: /* @__PURE__ */ Ga(t.map(ct), "|"),
3207
+ async: !1,
3208
+ options: t,
3209
+ message: e,
3210
+ get "~standard"() {
3211
+ return /* @__PURE__ */ A(this);
3212
+ },
3213
+ "~run"(i, a) {
3214
+ return this.options.includes(i.value) ? i.typed = !0 : j(this, "type", i, a), i;
3215
+ }
3216
+ };
3217
+ }
3218
+ // @__NO_SIDE_EFFECTS__
3219
+ function Za(t, e, i) {
3220
+ return {
3221
+ kind: "schema",
3222
+ type: "record",
3223
+ reference: Za,
3224
+ expects: "Object",
3225
+ async: !1,
3226
+ key: t,
3227
+ value: e,
3228
+ message: i,
3229
+ get "~standard"() {
3230
+ return /* @__PURE__ */ A(this);
3231
+ },
3232
+ "~run"(a, o) {
3233
+ var n, s;
3234
+ const r = a.value;
3235
+ if (r && typeof r == "object") {
3236
+ a.typed = !0, a.value = {};
3237
+ for (const l in r)
3238
+ if (/* @__PURE__ */ Pl(r, l)) {
3239
+ const d = r[l], u = this.key["~run"]({ value: l }, o);
3240
+ if (u.issues) {
3241
+ const w = {
3242
+ type: "object",
3243
+ origin: "key",
3244
+ input: r,
3245
+ key: l,
3246
+ value: d
3247
+ };
3248
+ for (const v of u.issues)
3249
+ v.path = [w], (n = a.issues) == null || n.push(v);
3250
+ if (a.issues || (a.issues = u.issues), o.abortEarly) {
3251
+ a.typed = !1;
3252
+ break;
3253
+ }
3254
+ }
3255
+ const c = this.value["~run"](
3256
+ { value: d },
3257
+ o
3258
+ );
3259
+ if (c.issues) {
3260
+ const w = {
3261
+ type: "object",
3262
+ origin: "value",
3263
+ input: r,
3264
+ key: l,
3265
+ value: d
3266
+ };
3267
+ for (const v of c.issues)
3268
+ v.path ? v.path.unshift(w) : v.path = [w], (s = a.issues) == null || s.push(v);
3269
+ if (a.issues || (a.issues = c.issues), o.abortEarly) {
3270
+ a.typed = !1;
3271
+ break;
3272
+ }
3273
+ }
3274
+ (!u.typed || !c.typed) && (a.typed = !1), u.typed && (a.value[u.value] = c.value);
3275
+ }
3276
+ } else
3277
+ j(this, "type", a, o);
3278
+ return a;
3279
+ }
3280
+ };
3281
+ }
3282
+ // @__NO_SIDE_EFFECTS__
3283
+ function tt(t) {
3284
+ return {
3285
+ kind: "schema",
3286
+ type: "string",
3287
+ reference: tt,
3288
+ expects: "string",
3289
+ async: !1,
3290
+ message: t,
3291
+ get "~standard"() {
3292
+ return /* @__PURE__ */ A(this);
3293
+ },
3294
+ "~run"(e, i) {
3295
+ return typeof e.value == "string" ? e.typed = !0 : j(this, "type", e, i), e;
3296
+ }
3297
+ };
3298
+ }
3299
+ // @__NO_SIDE_EFFECTS__
3300
+ function Wi(t) {
3301
+ let e;
3302
+ if (t)
3303
+ for (const i of t)
3304
+ e ? e.push(...i.issues) : e = i.issues;
3305
+ return e;
3306
+ }
3307
+ // @__NO_SIDE_EFFECTS__
3308
+ function oi(t, e) {
3309
+ return {
3310
+ kind: "schema",
3311
+ type: "union",
3312
+ reference: oi,
3313
+ expects: /* @__PURE__ */ Ga(
3314
+ t.map((i) => i.expects),
3315
+ "|"
3316
+ ),
3317
+ async: !1,
3318
+ options: t,
3319
+ message: e,
3320
+ get "~standard"() {
3321
+ return /* @__PURE__ */ A(this);
3322
+ },
3323
+ "~run"(i, a) {
3324
+ let o, r, n;
3325
+ for (const s of this.options) {
3326
+ const l = s["~run"]({ value: i.value }, a);
3327
+ if (l.typed)
3328
+ if (l.issues)
3329
+ r ? r.push(l) : r = [l];
3330
+ else {
3331
+ o = l;
3332
+ break;
3333
+ }
3334
+ else
3335
+ n ? n.push(l) : n = [l];
3336
+ }
3337
+ if (o)
3338
+ return o;
3339
+ if (r) {
3340
+ if (r.length === 1)
3341
+ return r[0];
3342
+ j(this, "type", i, a, {
3343
+ issues: /* @__PURE__ */ Wi(r)
3344
+ }), i.typed = !0;
3345
+ } else {
3346
+ if ((n == null ? void 0 : n.length) === 1)
3347
+ return n[0];
3348
+ j(this, "type", i, a, {
3349
+ issues: /* @__PURE__ */ Wi(n)
3350
+ });
3351
+ }
3352
+ return i;
3353
+ }
3354
+ };
3355
+ }
3356
+ function fd(t, e, i) {
3357
+ const a = t["~run"]({ value: e }, /* @__PURE__ */ oe(i));
3358
+ if (a.issues)
3359
+ throw new Ol(a.issues);
3360
+ return a.value;
3361
+ }
3362
+ // @__NO_SIDE_EFFECTS__
3363
+ function wd(t, e) {
3364
+ const i = {};
3365
+ for (const a in t.entries)
3366
+ i[a] = !e || e.includes(a) ? /* @__PURE__ */ Q(t.entries[a]) : t.entries[a];
3367
+ return {
3368
+ ...t,
3369
+ entries: i,
3370
+ get "~standard"() {
3371
+ return /* @__PURE__ */ A(this);
3372
+ }
3373
+ };
3374
+ }
3375
+ // @__NO_SIDE_EFFECTS__
3376
+ function Rl(...t) {
3377
+ return {
3378
+ ...t[0],
3379
+ pipe: t,
3380
+ get "~standard"() {
3381
+ return /* @__PURE__ */ A(this);
3382
+ },
3383
+ "~run"(e, i) {
3384
+ for (const a of t)
3385
+ if (a.kind !== "metadata") {
3386
+ if (e.issues && (a.kind === "schema" || a.kind === "transformation")) {
3387
+ e.typed = !1;
3388
+ break;
3389
+ }
3390
+ (!e.issues || !i.abortEarly && !i.abortPipeEarly) && (e = a["~run"](e, i));
3391
+ }
3392
+ return e;
3393
+ }
3394
+ };
3395
+ }
3396
+ // @__NO_SIDE_EFFECTS__
3397
+ function vd(t, e, i) {
3398
+ const a = t["~run"]({ value: e }, /* @__PURE__ */ oe(i));
3399
+ return {
3400
+ typed: a.typed,
3401
+ success: !a.issues,
3402
+ output: a.value,
3403
+ issues: a.issues
3404
+ };
3405
+ }
3406
+ // @__NO_SIDE_EFFECTS__
3407
+ async function gd(t, e, i) {
3408
+ const a = await t["~run"](
3409
+ { value: e },
3410
+ /* @__PURE__ */ oe(i)
3411
+ );
3412
+ return {
3413
+ typed: a.typed,
3414
+ success: !a.issues,
3415
+ output: a.value,
3416
+ issues: a.issues
3417
+ };
3418
+ }
3419
+ const Qa = /* @__PURE__ */ Rl(/* @__PURE__ */ oi([/* @__PURE__ */ tt(), /* @__PURE__ */ Jt()]), /* @__PURE__ */ Ya(String)), to = /* @__PURE__ */ et({
3420
+ id: Qa,
3421
+ version: /* @__PURE__ */ Jt(),
3422
+ build: /* @__PURE__ */ Jt(),
3423
+ nodes: /* @__PURE__ */ Ja(/* @__PURE__ */ qa()),
3424
+ context_schema: /* @__PURE__ */ Q(/* @__PURE__ */ Xa(/* @__PURE__ */ Za(/* @__PURE__ */ tt(), /* @__PURE__ */ et({
3425
+ required: /* @__PURE__ */ ai(),
3426
+ type: /* @__PURE__ */ oi([/* @__PURE__ */ Fe("string"), /* @__PURE__ */ Fe("number")])
3427
+ }))))
3428
+ }), Ul = /* @__PURE__ */ et({
3429
+ flow: to
3430
+ }), Vl = /* @__PURE__ */ et({
3431
+ company: /* @__PURE__ */ et({
3432
+ name: /* @__PURE__ */ tt()
3433
+ }),
3434
+ flow: to,
3435
+ job: /* @__PURE__ */ et({
3436
+ id: Qa,
3437
+ title: /* @__PURE__ */ tt()
3438
+ }),
3439
+ user: /* @__PURE__ */ Q(/* @__PURE__ */ et({
3440
+ city: /* @__PURE__ */ Q(/* @__PURE__ */ tt()),
3441
+ country: /* @__PURE__ */ Q(/* @__PURE__ */ tt()),
3442
+ isEU: /* @__PURE__ */ Q(/* @__PURE__ */ ai()),
3443
+ continent: /* @__PURE__ */ Q(/* @__PURE__ */ tt())
3444
+ }))
3445
+ }), Kl = Yi({
3446
+ pathname: "/flow/job/:id",
3447
+ method: "GET",
3448
+ schema: {
3449
+ searchParams: eo(),
3450
+ response: Vl
3451
+ }
3452
+ }), Wl = Yi({
3453
+ pathname: "/flow/id/:id",
3454
+ method: "GET",
3455
+ schema: {
3456
+ response: Ul
3457
+ }
3458
+ });
3459
+ var Gl = ["1", "2", "3", "4", "5", "6", "7", "8", "9", "10", "11", "12"], Yl = {
3460
+ light: {
3461
+ 1: [98.8, 0.015],
3462
+ 2: [97.8, 0.018],
3463
+ 3: [95.8, 0.025],
3464
+ 4: [92, 0.04],
3465
+ 5: [89, 0.05],
3466
+ 6: [85, 0.07],
3467
+ 7: [80.5, 0.08],
3468
+ 8: [74, 0.11],
3469
+ 9: [60, 0.22],
3470
+ 10: [56, 0.23],
3471
+ 11: [50, 0.19],
3472
+ 12: [25, 0.18]
3473
+ },
3474
+ dark: {
3475
+ 1: [19, 0.015],
3476
+ 2: [21, 0.018],
3477
+ 3: [25.5, 0.055],
3478
+ 4: [29.3, 0.084],
3479
+ 5: [33.5, 0.098],
3480
+ 6: [39.05, 0.107],
3481
+ 7: [45, 0.11],
3482
+ 8: [55, 0.13],
3483
+ 9: [60, 0.22],
3484
+ 10: [67, 0.18],
3485
+ 11: [79.3, 0.12],
3486
+ 12: [95, 0.04]
3487
+ }
3488
+ }, ql = (t, e = 1, i) => (a) => {
3489
+ const [o, r] = Yl[i][a];
3490
+ return "oklch(" + o + "% " + r * e + " " + t + ")";
3491
+ }, we = (t) => {
3492
+ const e = ql(t.hue, t.chroma, t.mode);
3493
+ return Object.fromEntries(
3494
+ Gl.map((i) => [t.prefix + i, t.transform(e(i))])
3495
+ );
3496
+ }, ve = (t) => t, Jl = (t) => {
3497
+ const e = Object.keys(t).flatMap((i) => {
3498
+ const a = t[i];
3499
+ return typeof a == "object" && a !== null ? Object.keys(a).map((o) => {
3500
+ const r = a[o];
3501
+ return [`${String(i)}.${o}`, r];
3502
+ }) : [[i, a]];
3503
+ });
3504
+ return Object.fromEntries(e);
3505
+ }, Nt = (t) => !!t && typeof t == "object" && !Array.isArray(t), He = (t, ...e) => {
3506
+ if (!e.length)
3507
+ return t;
3508
+ const i = e.shift();
3509
+ if (Nt(t) && Nt(i))
3510
+ for (const a in i) {
3511
+ const o = i[a];
3512
+ if (Nt(o)) {
3513
+ t[a] || Object.assign(t, { [a]: {} });
3514
+ const r = t[a];
3515
+ Nt(r) && He(r, o);
3516
+ } else
3517
+ Object.assign(t, { [a]: i[a] });
3518
+ }
3519
+ return He(t, ...e);
3520
+ }, Xl = (t) => {
3521
+ function e(i, a) {
3522
+ const o = [t.prefix, a.toString().replace(/\./g, "-")].join("");
3523
+ return i === "declaration" ? `--${o}` : `var(--${o})`;
3524
+ }
3525
+ return e;
3526
+ }, Zl = () => ({
3527
+ core: (t) => ({
3528
+ semantic: (e) => ({
3529
+ component: (i) => ({
3530
+ from: (a) => {
3531
+ const { theme: o, getToken: r } = a, n = (w) => r("reference", w.toString()), s = t({ theme: o }), l = e({ theme: o, core: n, raw: { core: s } }), d = i({
3532
+ theme: o,
3533
+ core: n,
3534
+ semantic: n,
3535
+ raw: { core: s, semantic: l }
3536
+ }), u = Jl(He(s, l, d)), c = ([w, v], f) => {
3537
+ const g = [f, w].filter(Boolean).join(".");
3538
+ return typeof v == "object" ? Object.entries(v).flatMap((z) => c(z, g)) : [[a.getToken("declaration", g), v]];
3539
+ };
3540
+ return {
3541
+ values: u,
3542
+ declarations: Object.fromEntries(Object.entries(u).flatMap((w) => c(w))),
3543
+ ref: (w) => r("reference", w.toString())
3544
+ };
3545
+ }
3546
+ })
3547
+ })
3548
+ })
3549
+ });
3550
+ const [ge, be, Gi] = ["oklch(0% 0 0)", "oklch(100% 0 0)", "transparent"], Ql = Zl().core(({
3551
+ theme: t
3552
+ }) => ({
3553
+ color: {
3554
+ black: ge,
3555
+ white: be,
3556
+ lowest: t.mode === "light" ? be : ge,
3557
+ highest: t.mode === "light" ? ge : be,
3558
+ ...we({
3559
+ prefix: "a-",
3560
+ hue: t.hue,
3561
+ chroma: t.chroma,
3562
+ mode: t.mode,
3563
+ transform: ve
3564
+ }),
3565
+ ...we({
3566
+ prefix: "n-",
3567
+ hue: t.hue,
3568
+ chroma: 0.05,
3569
+ mode: t.mode,
3570
+ transform: ve
3571
+ }),
3572
+ ...we({
3573
+ prefix: "e-",
3574
+ hue: 20,
3575
+ chroma: t.chroma,
3576
+ mode: t.mode,
3577
+ transform: ve
3578
+ })
3579
+ },
3580
+ typography: {}
3581
+ })).semantic(({
3582
+ core: t,
3583
+ raw: e,
3584
+ theme: i
3585
+ }) => {
3586
+ const a = (o, r) => e.core.color[o].replace(")", ` / ${r})`);
3587
+ return {
3588
+ "font-family": {
3589
+ body: "inherit",
3590
+ headings: "inherit"
3591
+ },
3592
+ "font-style": {
3593
+ body: "normal",
3594
+ headings: "normal"
3595
+ },
3596
+ "font-weight-body": "normal",
3597
+ "font-weight-headings": "normal",
3598
+ "radius-app": "1.5rem",
3599
+ "radius-interactive": "1.5rem",
3600
+ color: {
3601
+ divider: a("n-8", i.mode === "dark" ? 0.4 : 0.2)
3602
+ },
3603
+ "copy-body": t("color.n-12"),
3604
+ "copy-headings": t("color.n-12"),
3605
+ interactive: {
3606
+ copy: t("color.n-11"),
3607
+ "copy-hover": t("color.n-12"),
3608
+ "copy-active": t("color.n-12"),
3609
+ bg: Gi,
3610
+ "bg-hover": a("n-10", 0.2),
3611
+ "bg-active": a("n-10", 0.3)
3612
+ }
3613
+ };
3614
+ }).component(({
3615
+ raw: t,
3616
+ theme: e,
3617
+ semantic: i,
3618
+ core: a
3619
+ }) => {
3620
+ const o = (r, n) => t.core.color[r].replace(")", ` / ${n})`);
3621
+ return {
3622
+ app: {
3623
+ bg: a(e.mode === "dark" ? "color.n-1" : "color.n-2")
3624
+ },
3625
+ overlay: {
3626
+ bg: o("black", 0.4)
3627
+ },
3628
+ bubble: {
3629
+ "weak-bg": a(e.mode === "dark" ? "color.n-3" : "color.lowest"),
3630
+ "weak-outline": i("color.divider"),
3631
+ "strong-shadow": o("a-9", 0.05)
3632
+ },
3633
+ "status-bar": {
3634
+ bg: o("n-2", 0.8),
3635
+ "bg-button": Gi,
3636
+ "bg-button-hover": o("n-10", 0.4),
3637
+ "bg-button-active": o("n-10", 0.5)
3638
+ },
3639
+ "submit-button": {
3640
+ "bg-active": a(e.mode === "dark" ? "color.a-8" : "color.a-11")
3641
+ }
3642
+ };
3643
+ }), td = Xl({
3644
+ prefix: "i-"
3645
+ }), ed = (t) => {
3646
+ const e = Ql.from({
3647
+ theme: t,
3648
+ getToken: td
3649
+ }), i = Object.entries(e.declarations).map(([a, o]) => `${a}: ${o};`);
3650
+ return `${Me} {
3651
+ ${i.concat(i).join(`
3652
+ `)}
3653
+ }`;
3654
+ }, id = ({
3655
+ context: t,
3656
+ schema: e,
3657
+ logger: i
3658
+ }) => {
3659
+ if (e)
3660
+ for (const a in e) {
3661
+ const o = e[a];
3662
+ if (!o)
3663
+ continue;
3664
+ const r = Ns(t, a, null);
3665
+ if (o.required && r === null) {
3666
+ const n = `Configuration error in context: ${a} is required`;
3667
+ throw i.error(n), new Error(n);
3668
+ }
3669
+ switch (o.type) {
3670
+ case "number":
3671
+ if (typeof r != "number")
3672
+ throw new Error(`Configuration error in context: ${a} is not a number`);
3673
+ break;
3674
+ case "string":
3675
+ if (typeof r != "string")
3676
+ throw new Error(`Configuration error in context: ${a} is not a string`);
3677
+ break;
3678
+ default:
3679
+ o.type;
3680
+ }
3681
+ }
3682
+ }, bd = ({
3683
+ _internal_domManager: t = kl(),
3684
+ theme: e,
3685
+ terms: i,
3686
+ feedback: a
3687
+ }) => io(({
3688
+ apiClient: o,
3689
+ rpcClient: r,
3690
+ logger: n,
3691
+ analytics: s,
3692
+ publishableKey: l,
3693
+ env: d
3694
+ }) => {
3695
+ let u = !1, c = 0;
3696
+ const w = Vc({
3697
+ locale: void 0,
3698
+ overrides: i ?? {}
3699
+ }), v = l && d ? ao({
3700
+ environment: d,
3701
+ publishableKey: l,
3702
+ logger: n
3703
+ }) : void 0, f = (b) => b === c, g = () => {
3704
+ if (typeof window > "u")
3705
+ return;
3706
+ c++, rt.flushStateData().catch(() => {
3707
+ }), $.cancelCurrentFlow(), $.inputHeight$.value = 53, Rt.isBotTyping$.value = !1;
3708
+ const b = t.getChatbotElement();
3709
+ b && (st(null, b), b.remove()), u = !1, n.info("Chatbot plugin destroyed");
3710
+ }, z = () => {
3711
+ if (typeof window > "u")
3712
+ return;
3713
+ const b = c, _ = [F("style", {
3714
+ id: "inploi-chatbot-styles"
3715
+ }, xl), F("style", {
3716
+ id: "inploi-chatbot-theme"
3717
+ }, ed(e))], y = t.getOrCreateChatbotElement();
3718
+ if (st(F(V, {}, [_, F(ml, {
3719
+ apiClient: o,
3720
+ logger: n,
3721
+ analytics: s,
3722
+ talentBankClient: v,
3723
+ params: {
3724
+ theme: e,
3725
+ terms: i,
3726
+ feedback: a
3727
+ }
3728
+ })]), y), a) {
3729
+ const E = (P) => {
3730
+ var L, I;
3731
+ if (!f(b))
3732
+ return;
3733
+ const B = (L = t.getChatbotElement()) == null ? void 0 : L.querySelector("dialog");
3734
+ B && ad({
3735
+ instance: P({
3736
+ rpcClient: r,
3737
+ apiClient: o,
3738
+ logger: n,
3739
+ analytics: s
3740
+ }),
3741
+ theme: e,
3742
+ terms: ((I = a.params) == null ? void 0 : I.terms) ?? {},
3743
+ host: B
3744
+ });
3745
+ };
3746
+ a.plugin instanceof Promise ? a.plugin.then(({
3747
+ feedbackPlugin: P
3748
+ }) => {
3749
+ E(P());
3750
+ }).catch((P) => {
3751
+ n.error("Error preparing feedback plugin", P);
3752
+ }) : E(a.plugin);
3753
+ }
3754
+ u = !0;
3755
+ }, x = async (b, _) => {
3756
+ if (!f(_))
3757
+ return;
3758
+ id({
3759
+ context: b.context || {},
3760
+ schema: b.flow.context_schema,
3761
+ logger: n
3762
+ });
3763
+ const y = await $.prepareFlow(b);
3764
+ f(_) && $.commitFlow(y);
3765
+ };
3766
+ return {
3767
+ /** Optionally eagerly renders the interface ahead of needing the chatbot. */
3768
+ prepare: async () => {
3769
+ if (!(typeof window > "u"))
3770
+ try {
3771
+ if (u)
3772
+ return;
3773
+ z(), n.info("Chatbot plugin prepared");
3774
+ } catch (b) {
3775
+ n.error("Error preparing chatbot plugin", b);
3776
+ }
3777
+ },
3778
+ /** Fetches a flow by job ID.
3779
+ * @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.
3780
+ */
3781
+ fetchFlowByJobId: async (b, _) => r.request(Kl, {
3782
+ params: {
3783
+ id: b
3784
+ },
3785
+ searchParams: {
3786
+ id_type: (_ == null ? void 0 : _.idType) === "inploi" ? "internal" : "external"
3787
+ }
3788
+ }).then((y) => ({
3789
+ flow: y.flow,
3790
+ title: y.job.title,
3791
+ flowKeys: [y.job.id, ...(_ == null ? void 0 : _.flowKeys) ?? []],
3792
+ job: {
3793
+ id: y.job.id,
3794
+ id_type: "external"
3795
+ },
3796
+ ..._,
3797
+ context: {
3798
+ user: y.user,
3799
+ ..._ == null ? void 0 : _.context
3800
+ }
3801
+ })),
3802
+ fetchFlowById: async (b, _) => r.request(Wl, {
3803
+ params: {
3804
+ id: b
3805
+ }
3806
+ }).then((y) => {
3807
+ var E;
3808
+ return {
3809
+ flow: y.flow,
3810
+ title: "Chatbot",
3811
+ flowKeys: (_ == null ? void 0 : _.flowKeys) ?? [],
3812
+ ..._,
3813
+ analytics: {
3814
+ customProperties: {
3815
+ flow_id: y.flow.id,
3816
+ flow_version: y.flow.version,
3817
+ ...(E = _ == null ? void 0 : _.analytics) == null ? void 0 : E.customProperties
3818
+ }
3819
+ }
3820
+ };
3821
+ }),
3822
+ open: async (b) => {
3823
+ if (!(typeof window > "u"))
3824
+ try {
3825
+ $.cancelCurrentFlow(), $.viewState$.value = "maximised", u || z();
3826
+ const _ = c;
3827
+ b instanceof Promise ? ($.current$.value = {
3828
+ state: "loading"
3829
+ }, b.then((y) => x(y, _)).catch((y) => {
3830
+ if (!f(_))
3831
+ return;
3832
+ const E = y instanceof Error ? y.message : w("unknown_error");
3833
+ $.current$.value = {
3834
+ state: "error",
3835
+ error: E
3836
+ };
3837
+ })) : await x(b, _);
3838
+ } catch (_) {
3839
+ n.error("Error starting flow", _);
3840
+ }
3841
+ },
3842
+ close: async () => {
3843
+ typeof window > "u" || ($.cancelCurrentFlow(), n.info("Closed flow from an external source"));
3844
+ },
3845
+ destroy: g
3846
+ };
3847
+ });
3848
+ function ad({
3849
+ instance: t,
3850
+ terms: e,
3851
+ theme: i,
3852
+ host: a
3853
+ }) {
3854
+ t.render({
3855
+ key: "chatbot-header",
3856
+ size: "sm",
3857
+ theme: {
3858
+ accent: {
3859
+ chroma: i.chroma ?? 1,
3860
+ hue: i.hue
3861
+ },
3862
+ positive: {
3863
+ hue: 180,
3864
+ chroma: 1
3865
+ },
3866
+ negative: {
3867
+ hue: 33,
3868
+ chroma: 1
3869
+ },
3870
+ mode: i.mode,
3871
+ corners: "rounded",
3872
+ highlights: "stroke"
3873
+ },
3874
+ terms: e,
3875
+ host: a
3876
+ });
3877
+ }
3878
+ export {
3879
+ ut as A,
3880
+ ld as B,
3881
+ rd as C,
3882
+ gd as D,
3883
+ hd as E,
3884
+ lt as F,
3885
+ Rl as G,
3886
+ Ml as H,
3887
+ zl as I,
3888
+ Ya as J,
3889
+ Za as K,
3890
+ ai as L,
3891
+ ie as M,
3892
+ Il as N,
3893
+ Nl as O,
3894
+ Al as P,
3895
+ Jt as Q,
3896
+ Fl as R,
3897
+ Dl as S,
3898
+ Hl as T,
3899
+ Rt as U,
3900
+ oo as V,
3901
+ hl as W,
3902
+ pd as X,
3903
+ ze as Y,
3904
+ bd as Z,
3905
+ ee as _,
3906
+ sd as a,
3907
+ za as b,
3908
+ cd as c,
3909
+ Ge as d,
3910
+ Ye as e,
3911
+ V as f,
3912
+ Ns as g,
3913
+ ga as h,
3914
+ dd as i,
3915
+ vd as j,
3916
+ nd as k,
3917
+ et as l,
3918
+ Ja as m,
3919
+ Q as n,
3920
+ p as o,
3921
+ _a as p,
3922
+ tt as q,
3923
+ wd as r,
3924
+ $ as s,
3925
+ Xs as t,
3926
+ Ze as u,
3927
+ ud as v,
3928
+ fd as w,
3929
+ Ll as x,
3930
+ _t as y,
3931
+ dt as z
3932
+ };