@inploi/plugin-chatbot 4.4.0 → 5.0.0

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