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