@inploi/plugin-chatbot 7.0.0 → 7.0.2

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