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