@sprig-technologies/sprig-bundled 2.47.0 → 2.48.1

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.
Files changed (32) hide show
  1. package/dist/conversational-styles-Cz5QI3hV.js +4 -0
  2. package/dist/conversational-styles-DKmvloou.cjs +1 -0
  3. package/dist/{conversational-ui-CEmVz2Vg.cjs → conversational-ui-7CP-cLZe.cjs} +2 -2
  4. package/dist/{conversational-ui-CXl_8HB_.js → conversational-ui-BA_Spq-D.js} +74 -75
  5. package/dist/conversational-v2-styles-C-VtU8rP.js +4 -0
  6. package/dist/conversational-v2-styles-DLvybr0T.cjs +1 -0
  7. package/dist/getAttributedUrl-DFRoHvvS.js +197 -0
  8. package/dist/getAttributedUrl-JjAfDdLt.cjs +12 -0
  9. package/dist/index-0iqjhKVX.js +4 -0
  10. package/dist/index-1BOPr1FN.cjs +1 -0
  11. package/dist/{index-BBiYWZkL.cjs → index-BzHQzSxf.cjs} +2 -2
  12. package/dist/index-CMTWNs3h.js +4 -0
  13. package/dist/index-Cvesqg_C.cjs +1 -0
  14. package/dist/index-D1-6eKzp.js +768 -0
  15. package/dist/index-ElJgds4s.cjs +1 -0
  16. package/dist/{index-BNI3IK7K.js → index-stTkpjhx.js} +4 -4
  17. package/dist/index.cjs +1 -1
  18. package/dist/index.d.ts +1 -0
  19. package/dist/index.js +1 -1
  20. package/dist/view-CGsEDlvu.js +1834 -0
  21. package/dist/view-K9v6s8h_.cjs +1 -0
  22. package/package.json +1 -1
  23. package/dist/conversational-styles-BO6t2-y4.js +0 -4
  24. package/dist/conversational-styles-CWaKMg_f.cjs +0 -1
  25. package/dist/conversational-v2-styles-D5xNLWoE.cjs +0 -1
  26. package/dist/conversational-v2-styles-GH9tfuXI.js +0 -4
  27. package/dist/getAttributedUrl-D-vLs0_x.js +0 -194
  28. package/dist/getAttributedUrl-DNR4xoBk.cjs +0 -12
  29. package/dist/index-B-aCET7A.js +0 -737
  30. package/dist/index-DD639GNJ.cjs +0 -1
  31. package/dist/view-B4aVfDPi.cjs +0 -1
  32. package/dist/view-eRBVyC0l.js +0 -1831
@@ -0,0 +1,1834 @@
1
+ import { i as yt, e as me, A as J, s as Ae, D as mn, c as yn, S as H, a as fe, b as Me, C as vt, d as ht, f as ye, g as vn, h as xe, r as hn, v as gt, j as gn } from "./index-stTkpjhx.js";
2
+ var be, x, cr, z, bt, dr, Je, pr, he = {}, _r = [], bn = /acit|ex(?:s|g|n|p|$)|rph|grid|ows|mnc|ntw|ine[ch]|zoo|^ord|itera/i, Ve = Array.isArray;
3
+ function W(e, t) {
4
+ for (var r in t) e[r] = t[r];
5
+ return e;
6
+ }
7
+ function fr(e) {
8
+ var t = e.parentNode;
9
+ t && t.removeChild(e);
10
+ }
11
+ function U(e, t, r) {
12
+ var o, n, s, i = {};
13
+ for (s in t) s == "key" ? o = t[s] : s == "ref" ? n = t[s] : i[s] = t[s];
14
+ if (arguments.length > 2 && (i.children = arguments.length > 3 ? be.call(arguments, 2) : r), typeof e == "function" && e.defaultProps != null) for (s in e.defaultProps) i[s] === void 0 && (i[s] = e.defaultProps[s]);
15
+ return ve(e, i, o, n, null);
16
+ }
17
+ function ve(e, t, r, o, n) {
18
+ var s = { type: e, props: t, key: r, ref: o, __k: null, __: null, __b: 0, __e: null, __d: void 0, __c: null, constructor: void 0, __v: n ?? ++cr, __i: -1, __u: 0 };
19
+ return n == null && x.vnode != null && x.vnode(s), s;
20
+ }
21
+ function mr() {
22
+ return { current: null };
23
+ }
24
+ function B(e) {
25
+ return e.children;
26
+ }
27
+ function D(e, t) {
28
+ this.props = e, this.context = t;
29
+ }
30
+ function le(e, t) {
31
+ if (t == null) return e.__ ? le(e.__, e.__i + 1) : null;
32
+ for (var r; t < e.__k.length; t++) if ((r = e.__k[t]) != null && r.__e != null) return r.__e;
33
+ return typeof e.type == "function" ? le(e) : null;
34
+ }
35
+ function yr(e) {
36
+ var t, r;
37
+ if ((e = e.__) != null && e.__c != null) {
38
+ for (e.__e = e.__c.base = null, t = 0; t < e.__k.length; t++) if ((r = e.__k[t]) != null && r.__e != null) {
39
+ e.__e = e.__c.base = r.__e;
40
+ break;
41
+ }
42
+ return yr(e);
43
+ }
44
+ }
45
+ function Ye(e) {
46
+ (!e.__d && (e.__d = !0) && z.push(e) && !Ee.__r++ || bt !== x.debounceRendering) && ((bt = x.debounceRendering) || dr)(Ee);
47
+ }
48
+ function Ee() {
49
+ var e, t, r, o, n, s, i, u, a;
50
+ for (z.sort(Je); e = z.shift(); ) e.__d && (t = z.length, o = void 0, s = (n = (r = e).__v).__e, u = [], a = [], (i = r.__P) && ((o = W({}, n)).__v = n.__v + 1, x.vnode && x.vnode(o), ot(i, o, n, r.__n, i.ownerSVGElement !== void 0, 32 & n.__u ? [s] : null, u, s ?? le(n), !!(32 & n.__u), a), o.__.__k[o.__i] = o, gr(u, o, a), o.__e != s && yr(o)), z.length > t && z.sort(Je));
51
+ Ee.__r = 0;
52
+ }
53
+ function vr(e, t, r, o, n, s, i, u, a, c, d) {
54
+ var l, f, p, b, m, v = o && o.__k || _r, g = t.length;
55
+ for (r.__d = a, function(_, C, w) {
56
+ var S, h, y, I, k, N = C.length, E = w.length, L = E, O = 0;
57
+ for (_.__k = [], S = 0; S < N; S++) (h = _.__k[S] = (h = C[S]) == null || typeof h == "boolean" || typeof h == "function" ? null : typeof h == "string" || typeof h == "number" || typeof h == "bigint" || h.constructor == String ? ve(null, h, null, null, h) : Ve(h) ? ve(B, { children: h }, null, null, null) : h.constructor === void 0 && h.__b > 0 ? ve(h.type, h.props, h.key, h.ref ? h.ref : null, h.__v) : h) != null ? (h.__ = _, h.__b = _.__b + 1, k = Cn(h, w, I = S + O, L), h.__i = k, y = null, k !== -1 && (L--, (y = w[k]) && (y.__u |= 131072)), y == null || y.__v === null ? (k == -1 && O--, typeof h.type != "function" && (h.__u |= 65536)) : k !== I && (k === I + 1 ? O++ : k > I ? L > N - I ? O += k - I : O-- : O = k < I && k == I - 1 ? k - I : 0, k !== S + O && (h.__u |= 65536))) : (y = w[S]) && y.key == null && y.__e && (y.__e == _.__d && (_.__d = le(y)), Xe(y, y, !1), w[S] = null, L--);
58
+ if (L) for (S = 0; S < E; S++) (y = w[S]) != null && !(131072 & y.__u) && (y.__e == _.__d && (_.__d = le(y)), Xe(y, y));
59
+ }(r, t, v), a = r.__d, l = 0; l < g; l++) (p = r.__k[l]) != null && typeof p != "boolean" && typeof p != "function" && (f = p.__i === -1 ? he : v[p.__i] || he, p.__i = l, ot(e, p, f, n, s, i, u, a, c, d), b = p.__e, p.ref && f.ref != p.ref && (f.ref && st(f.ref, null, p), d.push(p.ref, p.__c || b, p)), m == null && b != null && (m = b), 65536 & p.__u || f.__k === p.__k ? a = hr(p, a, e) : typeof p.type == "function" && p.__d !== void 0 ? a = p.__d : b && (a = b.nextSibling), p.__d = void 0, p.__u &= -196609);
60
+ r.__d = a, r.__e = m;
61
+ }
62
+ function hr(e, t, r) {
63
+ var o, n;
64
+ if (typeof e.type == "function") {
65
+ for (o = e.__k, n = 0; o && n < o.length; n++) o[n] && (o[n].__ = e, t = hr(o[n], t, r));
66
+ return t;
67
+ }
68
+ return e.__e != t && (r.insertBefore(e.__e, t || null), t = e.__e), t && t.nextSibling;
69
+ }
70
+ function Q(e, t) {
71
+ return t = t || [], e == null || typeof e == "boolean" || (Ve(e) ? e.some(function(r) {
72
+ Q(r, t);
73
+ }) : t.push(e)), t;
74
+ }
75
+ function Cn(e, t, r, o) {
76
+ var n = e.key, s = e.type, i = r - 1, u = r + 1, a = t[r];
77
+ if (a === null || a && n == a.key && s === a.type) return r;
78
+ if (o > (a == null || 131072 & a.__u ? 0 : 1)) for (; i >= 0 || u < t.length; ) {
79
+ if (i >= 0) {
80
+ if ((a = t[i]) && !(131072 & a.__u) && n == a.key && s === a.type) return i;
81
+ i--;
82
+ }
83
+ if (u < t.length) {
84
+ if ((a = t[u]) && !(131072 & a.__u) && n == a.key && s === a.type) return u;
85
+ u++;
86
+ }
87
+ }
88
+ return -1;
89
+ }
90
+ function Ct(e, t, r) {
91
+ t[0] === "-" ? e.setProperty(t, r ?? "") : e[t] = r == null ? "" : typeof r != "number" || bn.test(t) ? r : r + "px";
92
+ }
93
+ function Se(e, t, r, o, n) {
94
+ var s;
95
+ e: if (t === "style") if (typeof r == "string") e.style.cssText = r;
96
+ else {
97
+ if (typeof o == "string" && (e.style.cssText = o = ""), o) for (t in o) r && t in r || Ct(e.style, t, "");
98
+ if (r) for (t in r) o && r[t] === o[t] || Ct(e.style, t, r[t]);
99
+ }
100
+ else if (t[0] === "o" && t[1] === "n") s = t !== (t = t.replace(/(PointerCapture)$|Capture$/, "$1")), t = t.toLowerCase() in e ? t.toLowerCase().slice(2) : t.slice(2), e.l || (e.l = {}), e.l[t + s] = r, r ? o ? r.u = o.u : (r.u = Date.now(), e.addEventListener(t, s ? wt : kt, s)) : e.removeEventListener(t, s ? wt : kt, s);
101
+ else {
102
+ if (n) t = t.replace(/xlink(H|:h)/, "h").replace(/sName$/, "s");
103
+ else if (t !== "width" && t !== "height" && t !== "href" && t !== "list" && t !== "form" && t !== "tabIndex" && t !== "download" && t !== "rowSpan" && t !== "colSpan" && t !== "role" && t in e) try {
104
+ e[t] = r ?? "";
105
+ break e;
106
+ } catch {
107
+ }
108
+ typeof r == "function" || (r == null || r === !1 && t[4] !== "-" ? e.removeAttribute(t) : e.setAttribute(t, r));
109
+ }
110
+ }
111
+ function kt(e) {
112
+ var t = this.l[e.type + !1];
113
+ if (e.t) {
114
+ if (e.t <= t.u) return;
115
+ } else e.t = Date.now();
116
+ return t(x.event ? x.event(e) : e);
117
+ }
118
+ function wt(e) {
119
+ return this.l[e.type + !0](x.event ? x.event(e) : e);
120
+ }
121
+ function ot(e, t, r, o, n, s, i, u, a, c) {
122
+ var d, l, f, p, b, m, v, g, _, C, w, S, h, y, I, k = t.type;
123
+ if (t.constructor !== void 0) return null;
124
+ 128 & r.__u && (a = !!(32 & r.__u), s = [u = t.__e = r.__e]), (d = x.__b) && d(t);
125
+ e: if (typeof k == "function") try {
126
+ if (g = t.props, _ = (d = k.contextType) && o[d.__c], C = d ? _ ? _.props.value : d.__ : o, r.__c ? v = (l = t.__c = r.__c).__ = l.__E : ("prototype" in k && k.prototype.render ? t.__c = l = new k(g, C) : (t.__c = l = new D(g, C), l.constructor = k, l.render = wn), _ && _.sub(l), l.props = g, l.state || (l.state = {}), l.context = C, l.__n = o, f = l.__d = !0, l.__h = [], l._sb = []), l.__s == null && (l.__s = l.state), k.getDerivedStateFromProps != null && (l.__s == l.state && (l.__s = W({}, l.__s)), W(l.__s, k.getDerivedStateFromProps(g, l.__s))), p = l.props, b = l.state, l.__v = t, f) k.getDerivedStateFromProps == null && l.componentWillMount != null && l.componentWillMount(), l.componentDidMount != null && l.__h.push(l.componentDidMount);
127
+ else {
128
+ if (k.getDerivedStateFromProps == null && g !== p && l.componentWillReceiveProps != null && l.componentWillReceiveProps(g, C), !l.__e && (l.shouldComponentUpdate != null && l.shouldComponentUpdate(g, l.__s, C) === !1 || t.__v === r.__v)) {
129
+ for (t.__v !== r.__v && (l.props = g, l.state = l.__s, l.__d = !1), t.__e = r.__e, t.__k = r.__k, t.__k.forEach(function(N) {
130
+ N && (N.__ = t);
131
+ }), w = 0; w < l._sb.length; w++) l.__h.push(l._sb[w]);
132
+ l._sb = [], l.__h.length && i.push(l);
133
+ break e;
134
+ }
135
+ l.componentWillUpdate != null && l.componentWillUpdate(g, l.__s, C), l.componentDidUpdate != null && l.__h.push(function() {
136
+ l.componentDidUpdate(p, b, m);
137
+ });
138
+ }
139
+ if (l.context = C, l.props = g, l.__P = e, l.__e = !1, S = x.__r, h = 0, "prototype" in k && k.prototype.render) {
140
+ for (l.state = l.__s, l.__d = !1, S && S(t), d = l.render(l.props, l.state, l.context), y = 0; y < l._sb.length; y++) l.__h.push(l._sb[y]);
141
+ l._sb = [];
142
+ } else do
143
+ l.__d = !1, S && S(t), d = l.render(l.props, l.state, l.context), l.state = l.__s;
144
+ while (l.__d && ++h < 25);
145
+ l.state = l.__s, l.getChildContext != null && (o = W(W({}, o), l.getChildContext())), f || l.getSnapshotBeforeUpdate == null || (m = l.getSnapshotBeforeUpdate(p, b)), vr(e, Ve(I = d != null && d.type === B && d.key == null ? d.props.children : d) ? I : [I], t, r, o, n, s, i, u, a, c), l.base = t.__e, t.__u &= -161, l.__h.length && i.push(l), v && (l.__E = l.__ = null);
146
+ } catch (N) {
147
+ t.__v = null, a || s != null ? (t.__e = u, t.__u |= a ? 160 : 32, s[s.indexOf(u)] = null) : (t.__e = r.__e, t.__k = r.__k), x.__e(N, t, r);
148
+ }
149
+ else s == null && t.__v === r.__v ? (t.__k = r.__k, t.__e = r.__e) : t.__e = kn(r.__e, t, r, o, n, s, i, a, c);
150
+ (d = x.diffed) && d(t);
151
+ }
152
+ function gr(e, t, r) {
153
+ t.__d = void 0;
154
+ for (var o = 0; o < r.length; o++) st(r[o], r[++o], r[++o]);
155
+ x.__c && x.__c(t, e), e.some(function(n) {
156
+ try {
157
+ e = n.__h, n.__h = [], e.some(function(s) {
158
+ s.call(n);
159
+ });
160
+ } catch (s) {
161
+ x.__e(s, n.__v);
162
+ }
163
+ });
164
+ }
165
+ function kn(e, t, r, o, n, s, i, u, a) {
166
+ var c, d, l, f, p, b, m, v = r.props, g = t.props, _ = t.type;
167
+ if (_ === "svg" && (n = !0), s != null) {
168
+ for (c = 0; c < s.length; c++) if ((p = s[c]) && "setAttribute" in p == !!_ && (_ ? p.localName === _ : p.nodeType === 3)) {
169
+ e = p, s[c] = null;
170
+ break;
171
+ }
172
+ }
173
+ if (e == null) {
174
+ if (_ === null) return document.createTextNode(g);
175
+ e = n ? document.createElementNS("http://www.w3.org/2000/svg", _) : document.createElement(_, g.is && g), s = null, u = !1;
176
+ }
177
+ if (_ === null) v === g || u && e.data === g || (e.data = g);
178
+ else {
179
+ if (s = s && be.call(e.childNodes), v = r.props || he, !u && s != null) for (v = {}, c = 0; c < e.attributes.length; c++) v[(p = e.attributes[c]).name] = p.value;
180
+ for (c in v) p = v[c], c == "children" || (c == "dangerouslySetInnerHTML" ? l = p : c === "key" || c in g || Se(e, c, null, p, n));
181
+ for (c in g) p = g[c], c == "children" ? f = p : c == "dangerouslySetInnerHTML" ? d = p : c == "value" ? b = p : c == "checked" ? m = p : c === "key" || u && typeof p != "function" || v[c] === p || Se(e, c, p, v[c], n);
182
+ if (d) u || l && (d.__html === l.__html || d.__html === e.innerHTML) || (e.innerHTML = d.__html), t.__k = [];
183
+ else if (l && (e.innerHTML = ""), vr(e, Ve(f) ? f : [f], t, r, o, n && _ !== "foreignObject", s, i, s ? s[0] : r.__k && le(r, 0), u, a), s != null) for (c = s.length; c--; ) s[c] != null && fr(s[c]);
184
+ u || (c = "value", b !== void 0 && (b !== e[c] || _ === "progress" && !b || _ === "option" && b !== v[c]) && Se(e, c, b, v[c], !1), c = "checked", m !== void 0 && m !== e[c] && Se(e, c, m, v[c], !1));
185
+ }
186
+ return e;
187
+ }
188
+ function st(e, t, r) {
189
+ try {
190
+ typeof e == "function" ? e(t) : e.current = t;
191
+ } catch (o) {
192
+ x.__e(o, r);
193
+ }
194
+ }
195
+ function Xe(e, t, r) {
196
+ var o, n;
197
+ if (x.unmount && x.unmount(e), (o = e.ref) && (o.current && o.current !== e.__e || st(o, null, t)), (o = e.__c) != null) {
198
+ if (o.componentWillUnmount) try {
199
+ o.componentWillUnmount();
200
+ } catch (s) {
201
+ x.__e(s, t);
202
+ }
203
+ o.base = o.__P = null, e.__c = void 0;
204
+ }
205
+ if (o = e.__k) for (n = 0; n < o.length; n++) o[n] && Xe(o[n], t, r || typeof e.type != "function");
206
+ r || e.__e == null || fr(e.__e), e.__ = e.__e = e.__d = void 0;
207
+ }
208
+ function wn(e, t, r) {
209
+ return this.constructor(e, r);
210
+ }
211
+ function ce(e, t, r) {
212
+ var o, n, s, i;
213
+ x.__ && x.__(e, t), n = (o = typeof r == "function") ? null : r && r.__k || t.__k, s = [], i = [], ot(t, e = (!o && r || t).__k = U(B, null, [e]), n || he, he, t.ownerSVGElement !== void 0, !o && r ? [r] : n ? null : t.firstChild ? be.call(t.childNodes) : null, s, !o && r ? r : n ? n.__e : t.firstChild, o, i), gr(s, e, i);
214
+ }
215
+ function br(e, t) {
216
+ ce(e, t, br);
217
+ }
218
+ function Sn(e, t, r) {
219
+ var o, n, s, i, u = W({}, e.props);
220
+ for (s in e.type && e.type.defaultProps && (i = e.type.defaultProps), t) s == "key" ? o = t[s] : s == "ref" ? n = t[s] : u[s] = t[s] === void 0 && i !== void 0 ? i[s] : t[s];
221
+ return arguments.length > 2 && (u.children = arguments.length > 3 ? be.call(arguments, 2) : r), ve(e.type, u, o || e.key, n || e.ref, null);
222
+ }
223
+ function Cr(e, t) {
224
+ var r = { __c: t = "__cC" + pr++, __: e, Consumer: function(o, n) {
225
+ return o.children(n);
226
+ }, Provider: function(o) {
227
+ var n, s;
228
+ return this.getChildContext || (n = [], (s = {})[t] = this, this.getChildContext = function() {
229
+ return s;
230
+ }, this.shouldComponentUpdate = function(i) {
231
+ this.props.value !== i.value && n.some(function(u) {
232
+ u.__e = !0, Ye(u);
233
+ });
234
+ }, this.sub = function(i) {
235
+ n.push(i);
236
+ var u = i.componentWillUnmount;
237
+ i.componentWillUnmount = function() {
238
+ n.splice(n.indexOf(i), 1), u && u.call(i);
239
+ };
240
+ }), o.children;
241
+ } };
242
+ return r.Provider.__ = r.Consumer.contextType = r;
243
+ }
244
+ be = _r.slice, x = { __e: function(e, t, r, o) {
245
+ for (var n, s, i; t = t.__; ) if ((n = t.__c) && !n.__) try {
246
+ if ((s = n.constructor) && s.getDerivedStateFromError != null && (n.setState(s.getDerivedStateFromError(e)), i = n.__d), n.componentDidCatch != null && (n.componentDidCatch(e, o || {}), i = n.__d), i) return n.__E = n;
247
+ } catch (u) {
248
+ e = u;
249
+ }
250
+ throw e;
251
+ } }, cr = 0, D.prototype.setState = function(e, t) {
252
+ var r;
253
+ r = this.__s != null && this.__s !== this.state ? this.__s : this.__s = W({}, this.state), typeof e == "function" && (e = e(W({}, r), this.props)), e && W(r, e), e != null && this.__v && (t && this._sb.push(t), Ye(this));
254
+ }, D.prototype.forceUpdate = function(e) {
255
+ this.__v && (this.__e = !0, e && this.__h.push(e), Ye(this));
256
+ }, D.prototype.render = B, z = [], dr = typeof Promise == "function" ? Promise.prototype.then.bind(Promise.resolve()) : setTimeout, Je = function(e, t) {
257
+ return e.__v.__b - t.__v.__b;
258
+ }, Ee.__r = 0, pr = 0;
259
+ var xn = 0;
260
+ function R(e, t, r, o, n, s) {
261
+ var i, u, a = {};
262
+ for (u in t) u == "ref" ? i = t[u] : a[u] = t[u];
263
+ var c = { type: e, props: a, key: r, ref: i, __k: null, __: null, __b: 0, __e: null, __d: void 0, __c: null, constructor: void 0, __v: --xn, __i: -1, __u: 0, __source: n, __self: s };
264
+ if (typeof e == "function" && (i = e.defaultProps)) for (u in i) a[u] === void 0 && (a[u] = i[u]);
265
+ return x.vnode && x.vnode(c), c;
266
+ }
267
+ var G, T, He, St, de = 0, kr = [], Re = [], xt = x.__b, Rt = x.__r, It = x.diffed, At = x.__c, Et = x.unmount;
268
+ function te(e, t) {
269
+ x.__h && x.__h(T, e, de || t), de = 0;
270
+ var r = T.__H || (T.__H = { __: [], __h: [] });
271
+ return e >= r.__.length && r.__.push({ __V: Re }), r.__[e];
272
+ }
273
+ function X(e) {
274
+ return de = 1, it(Rr, e);
275
+ }
276
+ function it(e, t, r) {
277
+ var o = te(G++, 2);
278
+ if (o.t = e, !o.__c && (o.__ = [r ? r(t) : Rr(void 0, t), function(u) {
279
+ var a = o.__N ? o.__N[0] : o.__[0], c = o.t(a, u);
280
+ a !== c && (o.__N = [c, o.__[1]], o.__c.setState({}));
281
+ }], o.__c = T, !T.u)) {
282
+ var n = function(u, a, c) {
283
+ if (!o.__c.__H) return !0;
284
+ var d = o.__c.__H.__.filter(function(f) {
285
+ return f.__c;
286
+ });
287
+ if (d.every(function(f) {
288
+ return !f.__N;
289
+ })) return !s || s.call(this, u, a, c);
290
+ var l = !1;
291
+ return d.forEach(function(f) {
292
+ if (f.__N) {
293
+ var p = f.__[0];
294
+ f.__ = f.__N, f.__N = void 0, p !== f.__[0] && (l = !0);
295
+ }
296
+ }), !(!l && o.__c.props === u) && (!s || s.call(this, u, a, c));
297
+ };
298
+ T.u = !0;
299
+ var s = T.shouldComponentUpdate, i = T.componentWillUpdate;
300
+ T.componentWillUpdate = function(u, a, c) {
301
+ if (this.__e) {
302
+ var d = s;
303
+ s = void 0, n(u, a, c), s = d;
304
+ }
305
+ i && i.call(this, u, a, c);
306
+ }, T.shouldComponentUpdate = n;
307
+ }
308
+ return o.__N || o.__;
309
+ }
310
+ function j(e, t) {
311
+ var r = te(G++, 3);
312
+ !x.__s && ut(r.__H, t) && (r.__ = e, r.i = t, T.__H.__h.push(r));
313
+ }
314
+ function Ce(e, t) {
315
+ var r = te(G++, 4);
316
+ !x.__s && ut(r.__H, t) && (r.__ = e, r.i = t, T.__h.push(r));
317
+ }
318
+ function ee(e) {
319
+ return de = 5, re(function() {
320
+ return { current: e };
321
+ }, []);
322
+ }
323
+ function wr(e, t, r) {
324
+ de = 6, Ce(function() {
325
+ return typeof e == "function" ? (e(t()), function() {
326
+ return e(null);
327
+ }) : e ? (e.current = t(), function() {
328
+ return e.current = null;
329
+ }) : void 0;
330
+ }, r == null ? r : r.concat(e));
331
+ }
332
+ function re(e, t) {
333
+ var r = te(G++, 7);
334
+ return ut(r.__H, t) ? (r.__V = e(), r.i = t, r.__h = e, r.__V) : r.__;
335
+ }
336
+ function Ne(e, t) {
337
+ return de = 8, re(function() {
338
+ return e;
339
+ }, t);
340
+ }
341
+ function Sr(e) {
342
+ var t = T.context[e.__c], r = te(G++, 9);
343
+ return r.c = e, t ? (r.__ == null && (r.__ = !0, t.sub(T)), t.props.value) : e.__;
344
+ }
345
+ function at(e, t) {
346
+ x.useDebugValue && x.useDebugValue(t ? t(e) : e);
347
+ }
348
+ function xr() {
349
+ var e = te(G++, 11);
350
+ if (!e.__) {
351
+ for (var t = T.__v; t !== null && !t.__m && t.__ !== null; ) t = t.__;
352
+ var r = t.__m || (t.__m = [0, 0]);
353
+ e.__ = "P" + r[0] + "-" + r[1]++;
354
+ }
355
+ return e.__;
356
+ }
357
+ function Rn() {
358
+ for (var e; e = kr.shift(); ) if (e.__P && e.__H) try {
359
+ e.__H.__h.forEach(Ie), e.__H.__h.forEach(et), e.__H.__h = [];
360
+ } catch (t) {
361
+ e.__H.__h = [], x.__e(t, e.__v);
362
+ }
363
+ }
364
+ x.__b = function(e) {
365
+ T = null, xt && xt(e);
366
+ }, x.__r = function(e) {
367
+ Rt && Rt(e), G = 0;
368
+ var t = (T = e.__c).__H;
369
+ t && (He === T ? (t.__h = [], T.__h = [], t.__.forEach(function(r) {
370
+ r.__N && (r.__ = r.__N), r.__V = Re, r.__N = r.i = void 0;
371
+ })) : (t.__h.forEach(Ie), t.__h.forEach(et), t.__h = [], G = 0)), He = T;
372
+ }, x.diffed = function(e) {
373
+ It && It(e);
374
+ var t = e.__c;
375
+ t && t.__H && (t.__H.__h.length && (kr.push(t) !== 1 && St === x.requestAnimationFrame || ((St = x.requestAnimationFrame) || In)(Rn)), t.__H.__.forEach(function(r) {
376
+ r.i && (r.__H = r.i), r.__V !== Re && (r.__ = r.__V), r.i = void 0, r.__V = Re;
377
+ })), He = T = null;
378
+ }, x.__c = function(e, t) {
379
+ t.some(function(r) {
380
+ try {
381
+ r.__h.forEach(Ie), r.__h = r.__h.filter(function(o) {
382
+ return !o.__ || et(o);
383
+ });
384
+ } catch (o) {
385
+ t.some(function(n) {
386
+ n.__h && (n.__h = []);
387
+ }), t = [], x.__e(o, r.__v);
388
+ }
389
+ }), At && At(e, t);
390
+ }, x.unmount = function(e) {
391
+ Et && Et(e);
392
+ var t, r = e.__c;
393
+ r && r.__H && (r.__H.__.forEach(function(o) {
394
+ try {
395
+ Ie(o);
396
+ } catch (n) {
397
+ t = n;
398
+ }
399
+ }), r.__H = void 0, t && x.__e(t, r.__v));
400
+ };
401
+ var Nt = typeof requestAnimationFrame == "function";
402
+ function In(e) {
403
+ var t, r = function() {
404
+ clearTimeout(o), Nt && cancelAnimationFrame(t), setTimeout(e);
405
+ }, o = setTimeout(r, 100);
406
+ Nt && (t = requestAnimationFrame(r));
407
+ }
408
+ function Ie(e) {
409
+ var t = T, r = e.__c;
410
+ typeof r == "function" && (e.__c = void 0, r()), T = t;
411
+ }
412
+ function et(e) {
413
+ var t = T;
414
+ e.__c = e.__(), T = t;
415
+ }
416
+ function ut(e, t) {
417
+ return !e || e.length !== t.length || t.some(function(r, o) {
418
+ return r !== e[o];
419
+ });
420
+ }
421
+ function Rr(e, t) {
422
+ return typeof t == "function" ? t(e) : t;
423
+ }
424
+ function Ir(e, t) {
425
+ for (var r in t) e[r] = t[r];
426
+ return e;
427
+ }
428
+ function tt(e, t) {
429
+ for (var r in e) if (r !== "__source" && !(r in t)) return !0;
430
+ for (var o in t) if (o !== "__source" && e[o] !== t[o]) return !0;
431
+ return !1;
432
+ }
433
+ function Le(e) {
434
+ this.props = e;
435
+ }
436
+ function Ar(e, t) {
437
+ function r(n) {
438
+ var s = this.props.ref, i = s == n.ref;
439
+ return !i && s && (s.call ? s(null) : s.current = null), t ? !t(this.props, n) || !i : tt(this.props, n);
440
+ }
441
+ function o(n) {
442
+ return this.shouldComponentUpdate = r, U(e, n);
443
+ }
444
+ return o.displayName = "Memo(" + (e.displayName || e.name) + ")", o.prototype.isReactComponent = !0, o.__f = !0, o;
445
+ }
446
+ (Le.prototype = new D()).isPureReactComponent = !0, Le.prototype.shouldComponentUpdate = function(e, t) {
447
+ return tt(this.props, e) || tt(this.state, t);
448
+ };
449
+ var Lt = x.__b;
450
+ x.__b = function(e) {
451
+ e.type && e.type.__f && e.ref && (e.props.ref = e.ref, e.ref = null), Lt && Lt(e);
452
+ };
453
+ var An = typeof Symbol < "u" && Symbol.for && Symbol.for("react.forward_ref") || 3911;
454
+ function lt(e) {
455
+ function t(r) {
456
+ var o = Ir({}, r);
457
+ return delete o.ref, e(o, r.ref || null);
458
+ }
459
+ return t.$$typeof = An, t.render = t, t.prototype.isReactComponent = t.__f = !0, t.displayName = "ForwardRef(" + (e.displayName || e.name) + ")", t;
460
+ }
461
+ var Tt = function(e, t) {
462
+ return e == null ? null : Q(Q(e).map(t));
463
+ }, Er = { map: Tt, forEach: Tt, count: function(e) {
464
+ return e ? Q(e).length : 0;
465
+ }, only: function(e) {
466
+ var t = Q(e);
467
+ if (t.length !== 1) throw "Children.only";
468
+ return t[0];
469
+ }, toArray: Q }, En = x.__e;
470
+ x.__e = function(e, t, r, o) {
471
+ if (e.then) {
472
+ for (var n, s = t; s = s.__; ) if ((n = s.__c) && n.__c) return t.__e == null && (t.__e = r.__e, t.__k = r.__k), n.__c(e, t);
473
+ }
474
+ En(e, t, r, o);
475
+ };
476
+ var Ot = x.unmount;
477
+ function Nr(e, t, r) {
478
+ return e && (e.__c && e.__c.__H && (e.__c.__H.__.forEach(function(o) {
479
+ typeof o.__c == "function" && o.__c();
480
+ }), e.__c.__H = null), (e = Ir({}, e)).__c != null && (e.__c.__P === r && (e.__c.__P = t), e.__c = null), e.__k = e.__k && e.__k.map(function(o) {
481
+ return Nr(o, t, r);
482
+ })), e;
483
+ }
484
+ function Lr(e, t, r) {
485
+ return e && r && (e.__v = null, e.__k = e.__k && e.__k.map(function(o) {
486
+ return Lr(o, t, r);
487
+ }), e.__c && e.__c.__P === t && (e.__e && r.appendChild(e.__e), e.__c.__e = !0, e.__c.__P = r)), e;
488
+ }
489
+ function ue() {
490
+ this.__u = 0, this.t = null, this.__b = null;
491
+ }
492
+ function Tr(e) {
493
+ var t = e.__.__c;
494
+ return t && t.__a && t.__a(e);
495
+ }
496
+ function Pe(e) {
497
+ var t, r, o;
498
+ function n(s) {
499
+ if (t || (t = e()).then(function(i) {
500
+ r = i.default || i;
501
+ }, function(i) {
502
+ o = i;
503
+ }), o) throw o;
504
+ if (!r) throw t;
505
+ return U(r, s);
506
+ }
507
+ return n.displayName = "Lazy", n.__f = !0, n;
508
+ }
509
+ function ie() {
510
+ this.u = null, this.o = null;
511
+ }
512
+ x.unmount = function(e) {
513
+ var t = e.__c;
514
+ t && t.__R && t.__R(), t && 32 & e.__u && (e.type = null), Ot && Ot(e);
515
+ }, (ue.prototype = new D()).__c = function(e, t) {
516
+ var r = t.__c, o = this;
517
+ o.t == null && (o.t = []), o.t.push(r);
518
+ var n = Tr(o.__v), s = !1, i = function() {
519
+ s || (s = !0, r.__R = null, n ? n(u) : u());
520
+ };
521
+ r.__R = i;
522
+ var u = function() {
523
+ if (!--o.__u) {
524
+ if (o.state.__a) {
525
+ var a = o.state.__a;
526
+ o.__v.__k[0] = Lr(a, a.__c.__P, a.__c.__O);
527
+ }
528
+ var c;
529
+ for (o.setState({ __a: o.__b = null }); c = o.t.pop(); ) c.forceUpdate();
530
+ }
531
+ };
532
+ o.__u++ || 32 & t.__u || o.setState({ __a: o.__b = o.__v.__k[0] }), e.then(i, i);
533
+ }, ue.prototype.componentWillUnmount = function() {
534
+ this.t = [];
535
+ }, ue.prototype.render = function(e, t) {
536
+ if (this.__b) {
537
+ if (this.__v.__k) {
538
+ var r = document.createElement("div"), o = this.__v.__k[0].__c;
539
+ this.__v.__k[0] = Nr(this.__b, r, o.__O = o.__P);
540
+ }
541
+ this.__b = null;
542
+ }
543
+ var n = t.__a && U(B, null, e.fallback);
544
+ return n && (n.__u &= -33), [U(B, null, t.__a ? null : e.children), n];
545
+ };
546
+ var Vt = function(e, t, r) {
547
+ if (++r[1] === r[0] && e.o.delete(t), e.props.revealOrder && (e.props.revealOrder[0] !== "t" || !e.o.size)) for (r = e.u; r; ) {
548
+ for (; r.length > 3; ) r.pop()();
549
+ if (r[1] < r[0]) break;
550
+ e.u = r = r[2];
551
+ }
552
+ };
553
+ function Nn(e) {
554
+ return this.getChildContext = function() {
555
+ return e.context;
556
+ }, e.children;
557
+ }
558
+ function Ln(e) {
559
+ var t = this, r = e.i;
560
+ t.componentWillUnmount = function() {
561
+ ce(null, t.l), t.l = null, t.i = null;
562
+ }, t.i && t.i !== r && t.componentWillUnmount(), t.l || (t.i = r, t.l = { nodeType: 1, parentNode: r, childNodes: [], appendChild: function(o) {
563
+ this.childNodes.push(o), t.i.appendChild(o);
564
+ }, insertBefore: function(o, n) {
565
+ this.childNodes.push(o), t.i.appendChild(o);
566
+ }, removeChild: function(o) {
567
+ this.childNodes.splice(this.childNodes.indexOf(o) >>> 1, 1), t.i.removeChild(o);
568
+ } }), ce(U(Nn, { context: t.context }, e.__v), t.l);
569
+ }
570
+ function Or(e, t) {
571
+ var r = U(Ln, { __v: e, i: t });
572
+ return r.containerInfo = t, r;
573
+ }
574
+ (ie.prototype = new D()).__a = function(e) {
575
+ var t = this, r = Tr(t.__v), o = t.o.get(e);
576
+ return o[0]++, function(n) {
577
+ var s = function() {
578
+ t.props.revealOrder ? (o.push(n), Vt(t, e, o)) : n();
579
+ };
580
+ r ? r(s) : s();
581
+ };
582
+ }, ie.prototype.render = function(e) {
583
+ this.u = null, this.o = /* @__PURE__ */ new Map();
584
+ var t = Q(e.children);
585
+ e.revealOrder && e.revealOrder[0] === "b" && t.reverse();
586
+ for (var r = t.length; r--; ) this.o.set(t[r], this.u = [1, 0, this.u]);
587
+ return e.children;
588
+ }, ie.prototype.componentDidUpdate = ie.prototype.componentDidMount = function() {
589
+ var e = this;
590
+ this.o.forEach(function(t, r) {
591
+ Vt(e, r, t);
592
+ });
593
+ };
594
+ var Vr = typeof Symbol < "u" && Symbol.for && Symbol.for("react.element") || 60103, Tn = /^(?: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]/, On = /^on(Ani|Tra|Tou|BeforeInp|Compo)/, Vn = /[A-Z0-9]/g, Pn = typeof document < "u", qn = function(e) {
595
+ return (typeof Symbol < "u" && typeof Symbol() == "symbol" ? /fil|che|rad/ : /fil|che|ra/).test(e);
596
+ };
597
+ function Pr(e, t, r) {
598
+ return t.__k == null && (t.textContent = ""), ce(e, t), typeof r == "function" && r(), e ? e.__c : null;
599
+ }
600
+ function qr(e, t, r) {
601
+ return br(e, t), typeof r == "function" && r(), e ? e.__c : null;
602
+ }
603
+ D.prototype.isReactComponent = {}, ["componentWillMount", "componentWillReceiveProps", "componentWillUpdate"].forEach(function(e) {
604
+ Object.defineProperty(D.prototype, e, { configurable: !0, get: function() {
605
+ return this["UNSAFE_" + e];
606
+ }, set: function(t) {
607
+ Object.defineProperty(this, e, { configurable: !0, writable: !0, value: t });
608
+ } });
609
+ });
610
+ var Pt = x.event;
611
+ function Un() {
612
+ }
613
+ function Mn() {
614
+ return this.cancelBubble;
615
+ }
616
+ function Hn() {
617
+ return this.defaultPrevented;
618
+ }
619
+ x.event = function(e) {
620
+ return Pt && (e = Pt(e)), e.persist = Un, e.isPropagationStopped = Mn, e.isDefaultPrevented = Hn, e.nativeEvent = e;
621
+ };
622
+ var ct, jn = { enumerable: !1, configurable: !0, get: function() {
623
+ return this.class;
624
+ } }, qt = x.vnode;
625
+ x.vnode = function(e) {
626
+ typeof e.type == "string" && function(t) {
627
+ var r = t.props, o = t.type, n = {};
628
+ for (var s in r) {
629
+ var i = r[s];
630
+ if (!(s === "value" && "defaultValue" in r && i == null || Pn && s === "children" && o === "noscript" || s === "class" || s === "className")) {
631
+ var u = s.toLowerCase();
632
+ s === "defaultValue" && "value" in r && r.value == null ? s = "value" : s === "download" && i === !0 ? i = "" : u === "ondoubleclick" ? s = "ondblclick" : u !== "onchange" || o !== "input" && o !== "textarea" || qn(r.type) ? u === "onfocus" ? s = "onfocusin" : u === "onblur" ? s = "onfocusout" : On.test(s) ? s = u : o.indexOf("-") === -1 && Tn.test(s) ? s = s.replace(Vn, "-$&").toLowerCase() : i === null && (i = void 0) : u = s = "oninput", u === "oninput" && n[s = u] && (s = "oninputCapture"), n[s] = i;
633
+ }
634
+ }
635
+ o == "select" && n.multiple && Array.isArray(n.value) && (n.value = Q(r.children).forEach(function(a) {
636
+ a.props.selected = n.value.indexOf(a.props.value) != -1;
637
+ })), o == "select" && n.defaultValue != null && (n.value = Q(r.children).forEach(function(a) {
638
+ a.props.selected = n.multiple ? n.defaultValue.indexOf(a.props.value) != -1 : n.defaultValue == a.props.value;
639
+ })), r.class && !r.className ? (n.class = r.class, Object.defineProperty(n, "className", jn)) : (r.className && !r.class || r.class && r.className) && (n.class = n.className = r.className), t.props = n;
640
+ }(e), e.$$typeof = Vr, qt && qt(e);
641
+ };
642
+ var Ut = x.__r;
643
+ x.__r = function(e) {
644
+ Ut && Ut(e), ct = e.__c;
645
+ };
646
+ var Mt = x.diffed;
647
+ x.diffed = function(e) {
648
+ Mt && Mt(e);
649
+ var t = e.props, r = e.__e;
650
+ r != null && e.type === "textarea" && "value" in t && t.value !== r.value && (r.value = t.value == null ? "" : t.value), ct = null;
651
+ };
652
+ var Ur = { ReactCurrentDispatcher: { current: { readContext: function(e) {
653
+ return ct.__n[e.__c].props.value;
654
+ } } } };
655
+ function Mr(e) {
656
+ return U.bind(null, e);
657
+ }
658
+ function ke(e) {
659
+ return !!e && e.$$typeof === Vr;
660
+ }
661
+ function Hr(e) {
662
+ return ke(e) && e.type === B;
663
+ }
664
+ function jr(e) {
665
+ return ke(e) ? Sn.apply(null, arguments) : e;
666
+ }
667
+ function Te(e) {
668
+ return !!e.__k && (ce(null, e), !0);
669
+ }
670
+ function Fr(e) {
671
+ return e && (e.base || e.nodeType === 1 && e) || null;
672
+ }
673
+ var Dr = function(e, t) {
674
+ return e(t);
675
+ }, Br = function(e, t) {
676
+ return e(t);
677
+ }, $r = B;
678
+ function dt(e) {
679
+ e();
680
+ }
681
+ function Wr(e) {
682
+ return e;
683
+ }
684
+ function Qr() {
685
+ return [!1, dt];
686
+ }
687
+ var Gr = Ce, Zr = ke;
688
+ function Kr(e, t) {
689
+ var r = t(), o = X({ h: { __: r, v: t } }), n = o[0].h, s = o[1];
690
+ return Ce(function() {
691
+ n.__ = r, n.v = t, je(n) && s({ h: n });
692
+ }, [e, r, t]), j(function() {
693
+ return je(n) && s({ h: n }), e(function() {
694
+ je(n) && s({ h: n });
695
+ });
696
+ }, [e]), r;
697
+ }
698
+ function je(e) {
699
+ var t, r, o = e.v, n = e.__;
700
+ try {
701
+ var s = o();
702
+ return !((t = n) === (r = s) && (t !== 0 || 1 / t == 1 / r) || t != t && r != r);
703
+ } catch {
704
+ return !0;
705
+ }
706
+ }
707
+ var Fn = { useState: X, useId: xr, useReducer: it, useEffect: j, useLayoutEffect: Ce, useInsertionEffect: Gr, useTransition: Qr, useDeferredValue: Wr, useSyncExternalStore: Kr, startTransition: dt, useRef: ee, useImperativeHandle: wr, useMemo: re, useCallback: Ne, useContext: Sr, useDebugValue: at, version: "17.0.2", Children: Er, render: Pr, hydrate: qr, unmountComponentAtNode: Te, createPortal: Or, createElement: U, createContext: Cr, createFactory: Mr, cloneElement: jr, createRef: mr, Fragment: B, isValidElement: ke, isElement: Zr, isFragment: Hr, findDOMNode: Fr, Component: D, PureComponent: Le, memo: Ar, forwardRef: lt, flushSync: Br, unstable_batchedUpdates: Dr, StrictMode: $r, Suspense: ue, SuspenseList: ie, lazy: Pe, __SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED: Ur };
708
+ const Dn = Object.freeze(Object.defineProperty({ __proto__: null, Children: Er, Component: D, Fragment: B, PureComponent: Le, StrictMode: $r, Suspense: ue, SuspenseList: ie, __SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED: Ur, cloneElement: jr, createContext: Cr, createElement: U, createFactory: Mr, createPortal: Or, createRef: mr, default: Fn, findDOMNode: Fr, flushSync: Br, forwardRef: lt, hydrate: qr, isElement: Zr, isFragment: Hr, isValidElement: ke, lazy: Pe, memo: Ar, render: Pr, startTransition: dt, unmountComponentAtNode: Te, unstable_batchedUpdates: Dr, useCallback: Ne, useContext: Sr, useDebugValue: at, useDeferredValue: Wr, useEffect: j, useErrorBoundary: function(e) {
709
+ var t = te(G++, 10), r = X();
710
+ return t.__ = e, T.componentDidCatch || (T.componentDidCatch = function(o, n) {
711
+ t.__ && t.__(o, n), r[1](o);
712
+ }), [r[0], function() {
713
+ r[1](void 0);
714
+ }];
715
+ }, useId: xr, useImperativeHandle: wr, useInsertionEffect: Gr, useLayoutEffect: Ce, useMemo: re, useReducer: it, useRef: ee, useState: X, useSyncExternalStore: Kr, useTransition: Qr, version: "17.0.2" }, Symbol.toStringTag, { value: "Module" })), Ht = (e) => {
716
+ let t;
717
+ const r = /* @__PURE__ */ new Set(), o = (i, u) => {
718
+ const a = typeof i == "function" ? i(t) : i;
719
+ if (!Object.is(a, t)) {
720
+ const c = t;
721
+ t = u ?? typeof a != "object" ? a : Object.assign({}, t, a), r.forEach((d) => d(t, c));
722
+ }
723
+ }, n = () => t, s = { setState: o, getState: n, subscribe: (i) => (r.add(i), () => r.delete(i)), destroy: () => r.clear() };
724
+ return t = e(o, n, s), s;
725
+ };
726
+ function Bn(e) {
727
+ return e && e.__esModule && Object.prototype.hasOwnProperty.call(e, "default") ? e.default : e;
728
+ }
729
+ function $n(e) {
730
+ if (Object.prototype.hasOwnProperty.call(e, "__esModule")) return e;
731
+ var t = e.default;
732
+ if (typeof t == "function") {
733
+ var r = function o() {
734
+ return this instanceof o ? Reflect.construct(t, arguments, this.constructor) : t.apply(this, arguments);
735
+ };
736
+ r.prototype = t.prototype;
737
+ } else r = {};
738
+ return Object.defineProperty(r, "__esModule", { value: !0 }), Object.keys(e).forEach(function(o) {
739
+ var n = Object.getOwnPropertyDescriptor(e, o);
740
+ Object.defineProperty(r, o, n.get ? n : { enumerable: !0, get: function() {
741
+ return e[o];
742
+ } });
743
+ }), r;
744
+ }
745
+ var jt = { exports: {} }, Fe = {};
746
+ const zr = $n(Dn);
747
+ var Ft, Dt, Bt, $t, Wt = { exports: {} }, De = {};
748
+ function Wn() {
749
+ return Dt || (Dt = 1, Wt.exports = function() {
750
+ if (Ft) return De;
751
+ Ft = 1;
752
+ var e = zr, t = typeof Object.is == "function" ? Object.is : function(a, c) {
753
+ return a === c && (a !== 0 || 1 / a == 1 / c) || a != a && c != c;
754
+ }, r = e.useState, o = e.useEffect, n = e.useLayoutEffect, s = e.useDebugValue;
755
+ function i(a) {
756
+ var c = a.getSnapshot;
757
+ a = a.value;
758
+ try {
759
+ var d = c();
760
+ return !t(a, d);
761
+ } catch {
762
+ return !0;
763
+ }
764
+ }
765
+ var u = typeof window > "u" || window.document === void 0 || window.document.createElement === void 0 ? function(a, c) {
766
+ return c();
767
+ } : function(a, c) {
768
+ var d = c(), l = r({ inst: { value: d, getSnapshot: c } }), f = l[0].inst, p = l[1];
769
+ return n(function() {
770
+ f.value = d, f.getSnapshot = c, i(f) && p({ inst: f });
771
+ }, [a, d, c]), o(function() {
772
+ return i(f) && p({ inst: f }), a(function() {
773
+ i(f) && p({ inst: f });
774
+ });
775
+ }, [a]), s(d), d;
776
+ };
777
+ return De.useSyncExternalStore = e.useSyncExternalStore !== void 0 ? e.useSyncExternalStore : u, De;
778
+ }()), Wt.exports;
779
+ }
780
+ var Qn = ($t || ($t = 1, jt.exports = function() {
781
+ if (Bt) return Fe;
782
+ Bt = 1;
783
+ var e = zr, t = Wn(), r = typeof Object.is == "function" ? Object.is : function(a, c) {
784
+ return a === c && (a !== 0 || 1 / a == 1 / c) || a != a && c != c;
785
+ }, o = t.useSyncExternalStore, n = e.useRef, s = e.useEffect, i = e.useMemo, u = e.useDebugValue;
786
+ return Fe.useSyncExternalStoreWithSelector = function(a, c, d, l, f) {
787
+ var p = n(null);
788
+ if (p.current === null) {
789
+ var b = { hasValue: !1, value: null };
790
+ p.current = b;
791
+ } else b = p.current;
792
+ p = i(function() {
793
+ function v(S) {
794
+ if (!C) {
795
+ if (C = !0, g = S, S = l(S), f !== void 0 && b.hasValue) {
796
+ var h = b.value;
797
+ if (f(h, S)) return _ = h;
798
+ }
799
+ return _ = S;
800
+ }
801
+ if (h = _, r(g, S)) return h;
802
+ var y = l(S);
803
+ return f !== void 0 && f(h, y) ? h : (g = S, _ = y);
804
+ }
805
+ var g, _, C = !1, w = d === void 0 ? null : d;
806
+ return [function() {
807
+ return v(c());
808
+ }, w === null ? void 0 : function() {
809
+ return v(w());
810
+ }];
811
+ }, [c, d, l, f]);
812
+ var m = o(a, p[0], p[1]);
813
+ return s(function() {
814
+ b.hasValue = !0, b.value = m;
815
+ }, [m]), u(m), m;
816
+ }, Fe;
817
+ }()), jt.exports);
818
+ const Gn = Bn(Qn), { useSyncExternalStoreWithSelector: Zn } = Gn, Qt = (e) => {
819
+ const t = typeof e == "function" ? ((o) => o ? Ht(o) : Ht)(e) : e, r = (o, n) => function(s, i = s.getState, u) {
820
+ const a = Zn(s.subscribe, s.getState, s.getServerState || s.getState, i, u);
821
+ return at(a), a;
822
+ }(t, o, n);
823
+ return Object.assign(r, t), r;
824
+ }, Kn = (e) => e ? Qt(e) : Qt;
825
+ var zn = ((e) => (e.RIGHT = "right", e.LEFT = "left", e))(zn || {});
826
+ const Be = (e) => e != null && typeof e == "object" && typeof Reflect.get(e, "taskStatus") == "string", Gt = (e) => e != null && typeof e == "object" && !Array.isArray(e) && Object.values(e).every((t) => t === null || typeof t == "string"), Zt = (e) => e != null && typeof e == "object" && !Array.isArray(e) && Object.values(e).every((t) => t === null || typeof t == "number"), Kt = (e) => Array.isArray(e) && e.every((t) => Array.isArray(t) && t.every((r) => {
827
+ if (typeof r != "object" || r === null) return !1;
828
+ const o = Reflect.get(r, "selected");
829
+ return o === "left" || o === "right" || o === null;
830
+ })), rt = (e, t) => {
831
+ const { allowUndefined: r = !0, rejectBooleanRecord: o = !1 } = t ?? {};
832
+ if (e === void 0) return r;
833
+ if (e === null || typeof e == "string" || typeof e == "number" || Array.isArray(e)) return !0;
834
+ if (typeof e == "object" && e !== null) {
835
+ if (o) {
836
+ const n = Object.values(e);
837
+ if (n.length > 0 && n.every((s) => typeof s == "boolean")) return !1;
838
+ }
839
+ return !0;
840
+ }
841
+ return !1;
842
+ }, pt = (e, t) => {
843
+ var r;
844
+ if (t === null) return null;
845
+ if (e.type === "texturlprompt") return ((o) => o === void 0 || typeof o == "object" && o !== null && "skipped" in o)(t) ? t : void 0;
846
+ if (t === void 0) return null;
847
+ if (e.type === "consentlegal") return typeof t == "object" && "submitted" in t && t.submitted === !0 ? t : null;
848
+ if (e.type === "multipleselect") {
849
+ const o = (r = e.props) == null ? void 0 : r.options;
850
+ if (Array.isArray(o) && ((n) => typeof n == "object" && n !== null && !Array.isArray(n) && Object.values(n).every((s) => typeof s == "boolean"))(t)) {
851
+ const n = t;
852
+ return o.reduce((s, i) => (n[String(i.id)] && s.push(i.value), s), []);
853
+ }
854
+ }
855
+ if (e.type === "multiplechoice") {
856
+ if (typeof t == "object" && t !== null && !Array.isArray(t)) {
857
+ if (Object.keys(t).length === 0) return null;
858
+ const o = Object.values(t).find((n) => n !== !1 && n !== void 0);
859
+ if (o !== void 0) return o;
860
+ }
861
+ return rt(t, { allowUndefined: !1, rejectBooleanRecord: !0 }) ? t : null;
862
+ }
863
+ return rt(t, { allowUndefined: !1, rejectBooleanRecord: !0 }) ? t : null;
864
+ }, To = ({ storeAllResponses: e, cards: t, cardValues: r, cardIndexByName: o }) => {
865
+ const n = e ? [...e] : [];
866
+ if (o === void 0) return n;
867
+ for (const s of t) {
868
+ const i = o[s.name];
869
+ if (typeof i != "number") continue;
870
+ const u = r[s.name];
871
+ (u == null ? void 0 : u.value) !== void 0 && (n[i] = pt(s, u.value));
872
+ }
873
+ return n;
874
+ }, Jn = /<piped-value\b([^>]*)>.*?<\/piped-value>/gis, zt = ["questionHtml", "captionHtml", "footerHtml", "richTextBody"], _t = (e) => !!e.props && typeof e.props == "object" && "properties" in e.props, $e = (e) => !!e.props && typeof e.props == "object" && "options" in e.props && Array.isArray(e.props.options), Jt = (e) => ["string", "number"].includes(typeof e), Yt = (e) => e.length === 0 ? "" : e.length === 1 ? e[0] : e.join(", "), Yn = (e) => {
875
+ var r, o;
876
+ const t = ((n) => n != null && typeof n == "object" && "value" in n)(e) ? e.value : void 0;
877
+ if (t != null) {
878
+ if (e.type === "multipleselect" && $e(e) && ((n) => !!n && typeof n == "object" && !Array.isArray(n))(t)) {
879
+ const n = e.secondaryValue ?? null, s = e.props.options.filter((i) => t[String(i.id)] === !0).map((i) => {
880
+ var u;
881
+ return i.label + ((u = n == null ? void 0 : n[String(i.id)]) != null && u.userText ? `: ${n[String(i.id)].userText}` : "");
882
+ });
883
+ return s.length ? Yt(s) : "No options selected";
884
+ }
885
+ if (e.type === "multiplechoice" && typeof t == "object" && t !== null) {
886
+ const n = Object.keys(t);
887
+ if (n.length === 0) return "No options selected";
888
+ const s = e.secondaryValue ?? null, i = n[0];
889
+ if (i) {
890
+ const u = e.props.options.find((a) => String(a.id) === i);
891
+ return (u == null ? void 0 : u.label) + ((r = s == null ? void 0 : s[i]) != null && r.userText ? `: ${(o = s == null ? void 0 : s[i]) == null ? void 0 : o.userText}` : "");
892
+ }
893
+ }
894
+ if (e.type === "matrix" && $e(e) && ((n) => {
895
+ if (!_t(n)) return !1;
896
+ const s = n.props.properties;
897
+ return !!s && typeof s == "object" && "matrixColumn" in s;
898
+ })(e)) {
899
+ const n = e.props.options, s = e.props.properties.matrixColumn, i = [];
900
+ for (const [u, a] of Object.entries(t)) {
901
+ const c = n.find((b) => String(b.id) === u), d = (c == null ? void 0 : c.label) ?? u, l = Jt(a) ? String(a) : JSON.stringify(a), f = s.find((b) => b.value === l), p = (f == null ? void 0 : f.label) ?? l;
902
+ i.push(`${d}: ${p}`);
903
+ }
904
+ return i.join("; ");
905
+ }
906
+ if (e.type === "rankorder" && $e(e)) {
907
+ const n = e.props.options.reduce((i, u) => (i[String(u.id)] = u.label, i), {}), s = [];
908
+ for (const [i, u] of Object.entries(t)) {
909
+ const a = n[i];
910
+ a && (s[u - 1] = a);
911
+ }
912
+ return Yt(s);
913
+ }
914
+ if (Jt(t)) {
915
+ const n = String(t).replaceAll(/[\u200B-\u200D\uFEFF]/g, "").trim();
916
+ return n === "" ? void 0 : n;
917
+ }
918
+ try {
919
+ return JSON.stringify(t);
920
+ } catch {
921
+ return String(t);
922
+ }
923
+ }
924
+ }, Oo = (e, t) => e.map((r) => {
925
+ if (!_t(r) || r.props.properties === void 0 || r.props.properties === null) return r;
926
+ const o = r.props.properties;
927
+ if (o === null || typeof o != "object" || !zt.some((i) => i in o)) return r;
928
+ let n = !1;
929
+ const s = {};
930
+ for (const i of zt) {
931
+ const u = o[i];
932
+ if (u !== void 0) {
933
+ const a = Xn(u, t);
934
+ s[i] = a, a !== u && (n = !0);
935
+ }
936
+ }
937
+ return n ? { ...r, props: { ...r.props, properties: { ...o, ...s } } } : r;
938
+ }), Xt = (e, t) => {
939
+ const r = new RegExp(`${t}="([^"]*)"`, "i").exec(e);
940
+ return (r == null ? void 0 : r[1]) ?? null;
941
+ }, Xn = (e, t) => {
942
+ if (e == null) return e;
943
+ let r = !1;
944
+ const o = e.replace(Jn, (n, s) => {
945
+ r = !0;
946
+ const i = Xt(s, "answer-id"), u = Xt(s, "fallback-text") ?? "";
947
+ if (!i) return u;
948
+ const a = i.startsWith("attr-") ? i : Number(i);
949
+ if (Object.hasOwn(t, a)) {
950
+ const c = t[a];
951
+ return String(c);
952
+ }
953
+ return u;
954
+ });
955
+ return r ? o : e;
956
+ }, Jr = (e, t) => {
957
+ const r = {};
958
+ if (t) for (const [o, n] of Object.entries(t)) typeof n == "string" ? r[`attr-${o}`] = n : n != null && (r[`attr-${o}`] = JSON.stringify(n));
959
+ for (const o of e) {
960
+ const n = Yn(o);
961
+ n !== void 0 && (r[o.name] = n);
962
+ }
963
+ return r;
964
+ }, Vo = (e) => {
965
+ var t;
966
+ return _t(e) && ((t = e.props.properties) != null && t.questionHtml) && typeof e.props.properties.questionHtml == "string" ? e.props.properties.questionHtml.replace(/<[^>]*>/g, "").trim() : e.props && "message" in e.props && typeof e.props.message == "string" ? e.props.message.trim() : e.props && "questionHtml" in e.props && typeof e.props.questionHtml == "string" ? e.props.questionHtml.replace(/<[^>]*>/g, "").trim() : "";
967
+ }, eo = (e, t, r) => {
968
+ switch (t) {
969
+ case "videovoice":
970
+ return !!(e != null && e.value);
971
+ case "open":
972
+ return !!r;
973
+ case "multipleselect":
974
+ return !!(r && Object.keys(r).length);
975
+ case "recordedtask":
976
+ return r !== null && typeof r == "object" && "taskStatus" in r && r.taskStatus === "completed";
977
+ case "texturlprompt":
978
+ return !e.value;
979
+ case "consentlegal":
980
+ case "nps":
981
+ case "likert":
982
+ return r !== null;
983
+ case "multiplechoice":
984
+ return r !== void 0;
985
+ case "matrix":
986
+ return !!(r && Object.values(r).every((o) => o !== null));
987
+ default:
988
+ return !0;
989
+ }
990
+ }, Yr = (e, t) => {
991
+ if (t === "matrix" && e && typeof e == "object") {
992
+ const r = Object.keys(e).length, o = Object.values(e).filter((n) => n !== null).length;
993
+ return o > 0 && o < r;
994
+ }
995
+ return !1;
996
+ }, Oe = (e) => e == null ? "" : typeof e == "object" ? JSON.stringify(e) : typeof e == "string" ? e : String(e), ae = { eq: (e, t) => Number(e) === Number(t), neq: (e, t) => !ae.eq(e, t), gt: (e, t) => Number(e) > Number(t), gte: (e, t) => Number(e) >= Number(t), lt: (e, t) => Number(e) < Number(t), lte: (e, t) => Number(e) <= Number(t), list_exact(e, t) {
997
+ if (!Array.isArray(e) || !Array.isArray(t)) return !1;
998
+ const r = (o, n) => String(o).localeCompare(String(n));
999
+ return e.slice().sort(r).join(",") === t.slice().sort(r).join(",");
1000
+ }, list_all: (e, t) => !(!Array.isArray(e) || !Array.isArray(t)) && !t.some((r) => !e.includes(r)), list_alo(e, t) {
1001
+ if (!Array.isArray(t)) return !1;
1002
+ const r = Array.isArray(e) ? e : [e], o = new Set(r);
1003
+ return t.some((n) => o.has(n));
1004
+ }, list_dni(e, t) {
1005
+ if (!Array.isArray(t)) return !1;
1006
+ const r = Array.isArray(e) ? e : [e], o = new Set(r);
1007
+ return t.every((n) => !o.has(n));
1008
+ }, contains(e, t) {
1009
+ const r = Oe(e).toLowerCase(), o = Oe(t).toLowerCase();
1010
+ return r.includes(o);
1011
+ }, notcontains: (e, t) => !ae.contains(e, t) }, ft = (e, t, r) => r > 0 ? t ? e.length - 3 : e.length - 2 : t ? e.length - 2 : e.length - 1, Po = (e, t) => {
1012
+ const r = t.findIndex((s) => s.type === "uploading"), o = t.some((s) => s.type === "thanks"), n = t.findIndex((s) => s.name === e);
1013
+ return n === -1 ? !1 : n === ft(t, o, r);
1014
+ }, ge = { eq: (e, t) => e == t, neq: (e, t) => !ge.eq(e, t), gt: (e, t) => Number(e) > Number(t), gte: (e, t) => Number(e) >= Number(t), lt: (e, t) => Number(e) < Number(t), lte: (e, t) => Number(e) <= Number(t), list_exact(e, t) {
1015
+ if (!Array.isArray(e) || !Array.isArray(t)) return !1;
1016
+ const r = (o, n) => String(o).localeCompare(String(n));
1017
+ return e.slice().sort(r).join(",") === t.slice().sort(r).join(",");
1018
+ }, list_all: (e, t) => !(!Array.isArray(e) || !Array.isArray(t)) && !t.some((r) => !e.includes(r)), list_alo(e, t) {
1019
+ if (!Array.isArray(t)) return !1;
1020
+ const r = Array.isArray(e) ? e : [e], o = new Set(r);
1021
+ return t.some((n) => o.has(n));
1022
+ }, list_dni(e, t) {
1023
+ if (!Array.isArray(t)) return !1;
1024
+ const r = Array.isArray(e) ? e : [e], o = new Set(r);
1025
+ return t.every((n) => !o.has(n));
1026
+ }, contains(e, t) {
1027
+ const r = String(e ?? "").toLowerCase(), o = String(t ?? "").toLowerCase();
1028
+ return r.includes(o);
1029
+ }, notcontains: (e, t) => !ge.contains(e, t) }, to = (e) => e in ge, qe = 1, Xr = 2, ro = (e) => {
1030
+ var o, n, s;
1031
+ switch (e.type) {
1032
+ case "multipleselect":
1033
+ return e && e.props && e.props.options ? e.props.options.length > 13 ? e.props.options.map((i) => [i.value]) : (t = e.props.options.map((i) => i.value), r = !e.props.properties.required, t.reduce((i, u) => i.concat(i.map((a) => [...a, u])), [[]]).filter((i) => r || i.length > 0)) : null;
1034
+ case "multiplechoice": {
1035
+ if (!e || !e.props || !e.props.options) return null;
1036
+ const i = e.props.options.map((u) => u.value);
1037
+ return e.props.properties.required || i.push(void 0), i;
1038
+ }
1039
+ case "matrix": {
1040
+ if (!((o = e == null ? void 0 : e.props) != null && o.options)) return null;
1041
+ const i = e.props.properties.matrixColumn, u = e.props.options, a = u.reduce((d, l) => (d[l.id] = null, d), {}), c = [{ ...a, [u[0].id]: i[0].value }, u.reduce((d, l) => (d[l.id] = i[0].value, d), {})];
1042
+ return e.props.properties.required || c.push(a), c;
1043
+ }
1044
+ case "likert": {
1045
+ const i = Number((s = (n = e.props) == null ? void 0 : n.properties) == null ? void 0 : s.range) || 5;
1046
+ return [...Array.from(new Array(i).keys()).map((a) => a + 1), ...e.props.properties.required ? [] : [null]];
1047
+ }
1048
+ case "nps":
1049
+ return [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, ...e.props.properties.required ? [] : [null]];
1050
+ case "videovoice":
1051
+ case "open":
1052
+ return ["1", ...e.props.properties.required ? [] : [""]];
1053
+ case "recordedtask": {
1054
+ const i = [{ taskStatus: "completed" }, { taskStatus: "given.up" }];
1055
+ return e.props.properties.required || i.push({ taskStatus: "abandoned" }), i;
1056
+ }
1057
+ case "texturlprompt":
1058
+ return [void 0, ...e.props.properties.required ? [] : [{ skipped: !0 }]];
1059
+ case "consentlegal":
1060
+ return [1, ...e.props.properties.required ? [] : [null]];
1061
+ default:
1062
+ return [1];
1063
+ }
1064
+ var t, r;
1065
+ }, no = (e) => typeof e == "object" && e !== null && "taskStatus" in e, oo = (e) => typeof e == "object" && e !== null && !Array.isArray(e) && "comparator" in e && "questionIndex" in e, en = (e, t) => {
1066
+ const r = [];
1067
+ for (const o of e) Array.isArray(o) ? r.push(...en(o, t)) : oo(o) && o.questionIndex === t && r.push(o);
1068
+ return r;
1069
+ }, so = (e, t = []) => t.reduce((r, o) => {
1070
+ const { group: n, target: s } = o;
1071
+ if (!(n != null && n.length)) return [...r];
1072
+ const i = en(n, e).map((u) => {
1073
+ const { comparator: a, value: c } = u;
1074
+ return { comparator: a, target: s, value: c };
1075
+ });
1076
+ return [...r, ...i];
1077
+ }, []), tn = ({ cards: e, index: t, hasEndCard: r, allResponses: o, uploadProgress: n = {}, surveyVisitorAttributes: s = {} }) => {
1078
+ var d;
1079
+ if (t >= e.length || t < 0) return null;
1080
+ let i = t + 1;
1081
+ const u = e[t].props.routingOptions || [];
1082
+ for (const l of u) {
1083
+ if (!rn(l)) continue;
1084
+ const { group: f, target: p } = l;
1085
+ if (an({ group: f, allResponses: o, cards: e, surveyVisitorAttributes: s })) {
1086
+ i = p === -1 && r ? e.length - 1 : p;
1087
+ break;
1088
+ }
1089
+ }
1090
+ const a = e.findIndex((l) => l.type === "uploading"), c = ft(e, r, a);
1091
+ for (; i !== null && i !== -1 && i <= c; ) {
1092
+ const l = e[i], f = ((d = l == null ? void 0 : l.props) == null ? void 0 : d.displayLogic) || [];
1093
+ if (f.length > 0 && !sn({ displayLogic: f, allResponses: o, cards: e, surveyVisitorAttributes: s })) {
1094
+ i++;
1095
+ continue;
1096
+ }
1097
+ if (l != null && l.parentId) {
1098
+ const p = e.findIndex((b) => b.name === l.parentId);
1099
+ if (p > -1) {
1100
+ const b = e[p], m = o[p], v = pe({ comparator: "answered", type: b.type, response: m }), g = b.type === "matrix" && pe({ comparator: "partial", type: b.type, response: m });
1101
+ if (!(v || g)) {
1102
+ i++;
1103
+ continue;
1104
+ }
1105
+ }
1106
+ }
1107
+ break;
1108
+ }
1109
+ return t >= c || i === -1 || i !== null && i > c ? a > 0 && Object.values(n).some((f) => f.isSubmitted && !f.isComplete) ? a : r ? e.length - 1 : null : i === -1 ? null : i;
1110
+ }, rn = (e) => typeof e == "object" && e !== null && "group" in e, nn = (e) => e === qe || e === Xr, er = ({ segment: e, allResponses: t, cards: r, surveyVisitorAttributes: o }) => Array.isArray(e) ? on({ segments: e, allResponses: t, cards: r, surveyVisitorAttributes: o }) : !nn(e) && !!((n) => typeof n == "object" && n !== null && !Array.isArray(n) && "comparator" in n)(e) && (({ rule: n, allResponses: s, cards: i, surveyVisitorAttributes: u }) => {
1111
+ if (n.questionIndex === void 0 || typeof n.questionIndex == "number" && n.questionIndex >= s.length) return !1;
1112
+ const a = (({ rule: c, allResponses: d, cards: l, surveyVisitorAttributes: f }) => {
1113
+ if (c.questionIndex === void 0) return null;
1114
+ if (typeof (p = c.questionIndex) == "string" && p.startsWith("attr-")) {
1115
+ const m = ((v) => v.slice(5))(c.questionIndex);
1116
+ return m in f ? { response: f[m], type: "AttributeCheck" } : null;
1117
+ }
1118
+ var p;
1119
+ const b = c.questionIndex;
1120
+ return { response: d[b], type: l[b].type };
1121
+ })({ rule: n, allResponses: s, cards: i, surveyVisitorAttributes: u });
1122
+ return a !== null && !!pe({ comparator: n.comparator, response: a.response, type: a.type, value: n.value });
1123
+ })({ rule: e, allResponses: t, cards: r, surveyVisitorAttributes: o }), on = ({ segments: e, allResponses: t, cards: r, surveyVisitorAttributes: o }) => {
1124
+ if (!e || e.length === 0) return !1;
1125
+ let n = er({ segment: e[0], allResponses: t, cards: r, surveyVisitorAttributes: o }), s = 1;
1126
+ for (; s < e.length; ) {
1127
+ const i = e[s];
1128
+ if (!nn(i) || (s += 1, s >= e.length)) return !1;
1129
+ const u = er({ segment: e[s], allResponses: t, cards: r, surveyVisitorAttributes: o });
1130
+ s += 1, n = i === qe ? n && u : n || u;
1131
+ }
1132
+ return n;
1133
+ }, sn = ({ displayLogic: e, allResponses: t, cards: r, surveyVisitorAttributes: o }) => e.some((n) => !!rn(n) && an({ group: n.group, allResponses: t, cards: r, surveyVisitorAttributes: o })), an = ({ group: e, allResponses: t, cards: r, surveyVisitorAttributes: o }) => on({ segments: e, allResponses: t, cards: r, surveyVisitorAttributes: o }), pe = ({ comparator: e, response: t, type: r, value: o }) => {
1134
+ if (r === "AttributeCheck") return ((s, i, u) => {
1135
+ const a = Oe(i), c = Oe(u), d = Number(i), l = Number(u), f = !Number.isNaN(d) && a === String(d), p = !Number.isNaN(l) && c === String(l), b = f && p;
1136
+ switch (s) {
1137
+ case "eq":
1138
+ return b ? d === l : a.toLowerCase() === c.toLowerCase();
1139
+ case "neq":
1140
+ return b ? d !== l : a.toLowerCase() !== c.toLowerCase();
1141
+ case "contains":
1142
+ case "notcontains":
1143
+ return ae[s](a, c);
1144
+ case "gt":
1145
+ case "gte":
1146
+ case "lt":
1147
+ case "lte":
1148
+ return b ? ae[s](d, l) : ae[s](a.localeCompare(c), 0);
1149
+ case "list_exact":
1150
+ case "list_all":
1151
+ case "list_alo":
1152
+ case "list_dni": {
1153
+ const m = Array.isArray(i) ? i : [i], v = Array.isArray(u) ? u : [u];
1154
+ return ae[s](m, v);
1155
+ }
1156
+ default:
1157
+ return !1;
1158
+ }
1159
+ })(e, t, o);
1160
+ if (!rt(t)) return !1;
1161
+ const n = t;
1162
+ if (e === "answered") switch (r) {
1163
+ case "texturlprompt":
1164
+ return n === void 0;
1165
+ case "consentlegal":
1166
+ return n && ((s) => s === null || s !== void 0 && typeof s == "object" && "submitted" in s && typeof s.submitted == "boolean")(n) && n.submitted === !0;
1167
+ case "recordedtask":
1168
+ return Be(n) && n.taskStatus === "completed";
1169
+ case "likert":
1170
+ case "nps":
1171
+ return Number.isInteger(n);
1172
+ case "rankorder":
1173
+ return Zt(n) && Object.values(n).every((s) => s !== null);
1174
+ case "matrix":
1175
+ return Gt(n) && Object.values(n).every((s) => s !== null);
1176
+ case "maxdiff":
1177
+ return Kt(n) && n.every((s) => {
1178
+ if (!Array.isArray(s)) return !1;
1179
+ const i = s.some((a) => a.selected === "left"), u = s.some((a) => a.selected === "right");
1180
+ return i && u;
1181
+ });
1182
+ case "multiplechoice":
1183
+ return !!n;
1184
+ case "multipleselect":
1185
+ return n && Array.isArray(n) && (n.length ?? 0) > 0;
1186
+ case "open":
1187
+ case "aidynamicstandalone":
1188
+ return typeof n == "string" && !!n;
1189
+ case "videovoice":
1190
+ return ((s) => s != null && typeof s == "object" && "mediaRecordingUid" in s && typeof s.mediaRecordingUid == "string")(n) && !!n.mediaRecordingUid;
1191
+ default:
1192
+ return !1;
1193
+ }
1194
+ if (e === "given_up") return r !== "recordedtask" || Be(n) && n.taskStatus === "given.up";
1195
+ if (e === "partial") return Yr(n, r);
1196
+ if (e === "skipped") switch (r) {
1197
+ case "texturlprompt":
1198
+ return /* @__PURE__ */ ((s) => s !== null && (s === void 0 || typeof s == "object"))(n) && !!(typeof n == "object" && n !== null && "skipped" in n && n.skipped);
1199
+ case "consentlegal":
1200
+ case "likert":
1201
+ case "nps":
1202
+ case "videovoice":
1203
+ return n === null;
1204
+ case "recordedtask":
1205
+ return Be(n) && n.taskStatus === "abandoned";
1206
+ case "open":
1207
+ case "aidynamicstandalone":
1208
+ return n === null || typeof n == "string" && n.length === 0;
1209
+ case "multiplechoice":
1210
+ return n == null;
1211
+ case "multipleselect":
1212
+ return n === null || Array.isArray(n) && n.length === 0;
1213
+ case "matrix":
1214
+ return n === null || Gt(n) && Object.values(n).every((s) => s === null);
1215
+ case "maxdiff":
1216
+ return n === null || !Kt(n) || n.some((s) => {
1217
+ if (!Array.isArray(s)) return !0;
1218
+ const i = s.some((a) => a.selected === "left"), u = s.some((a) => a.selected === "right");
1219
+ return !(i && u);
1220
+ });
1221
+ case "rankorder":
1222
+ return n === null || Zt(n) && Object.values(n).includes(null);
1223
+ default:
1224
+ return !1;
1225
+ }
1226
+ return o !== void 0 && ge[e](n, o);
1227
+ };
1228
+ var io = ((e) => (e.CONTINUE = "CONTINUE", e.EXTERNAL = "EXTERNAL", e.NO_BUTTON = "NO_BUTTON", e))(io || {}), Y = ((e) => (e.failure = "failure", e.success = "success", e.inFlight = "inFlight", e))(Y || {}), ao = ((e) => (e.Unlimited = "Unlimited", e.Maximum = "Maximum", e.Range = "Range", e))(ao || {});
1229
+ function qo(e) {
1230
+ const t = e.props;
1231
+ if (t === null || typeof t != "object") return !1;
1232
+ const r = Reflect.get(t, "properties");
1233
+ return typeof r == "object" && r !== null && "required" in r;
1234
+ }
1235
+ const Uo = ({ displayCard: e, response: t, createDynamicFollowupQuestion: r }) => {
1236
+ if (e && ((e == null ? void 0 : e.childId) ?? 0) > 0) {
1237
+ const o = pt(e, t == null ? void 0 : t.value), n = pe({ comparator: "answered", type: e.type, response: o }), s = e.type === "matrix" && pe({ comparator: "partial", type: e.type, response: o });
1238
+ if (n || s) {
1239
+ const i = Jr([e].map((u) => ({ ...u, value: (t == null ? void 0 : t.value) ?? null, secondaryValue: (t == null ? void 0 : t.secondaryValue) ?? null })));
1240
+ r({ parentQuestionId: e == null ? void 0 : e.name, parentResponseConfig: i });
1241
+ }
1242
+ }
1243
+ }, uo = (e) => {
1244
+ var t, r, o, n, s, i, u, a, c;
1245
+ switch (e.type) {
1246
+ case "rankorder":
1247
+ case "multipleselect":
1248
+ case "multiplechoice":
1249
+ return (r = (t = e == null ? void 0 : e.props) == null ? void 0 : t.options) == null ? void 0 : r.map((d) => d.label);
1250
+ case "nps":
1251
+ return "1-10";
1252
+ case "likert":
1253
+ return `1-${((n = (o = e == null ? void 0 : e.props) == null ? void 0 : o.properties) == null ? void 0 : n.range) ?? 5}`;
1254
+ case "matrix":
1255
+ return { matrixColumns: (u = (i = (s = e == null ? void 0 : e.props) == null ? void 0 : s.properties) == null ? void 0 : i.matrixColumn) == null ? void 0 : u.map((d) => d.label), matrixRows: (c = (a = e == null ? void 0 : e.props) == null ? void 0 : a.options) == null ? void 0 : c.map((d) => d.label) };
1256
+ default:
1257
+ return;
1258
+ }
1259
+ }, lo = /* @__PURE__ */ new Set(["rankorder", "multipleselect", "multiplechoice", "matrix", "likert", "nps", "open", "aidynamicfollowup", "aidynamicstandalone"]), tr = ({ cards: e, combinedReadableRawResponses: t, targetQuestionId: r, generateQuestionType: o }) => {
1260
+ let n = 1, s = 1;
1261
+ const i = e.reduce((u, a) => {
1262
+ if (a.name > 0 && lo.has(a.type)) {
1263
+ if (r === a.name && (s = n, o === "aidynamicstandalone")) return n++, u;
1264
+ if ((a.type === "aidynamicfollowup" || a.type === "aidynamicstandalone") && a.props.loading !== Y.success) return u;
1265
+ const c = "properties" in a.props && a.props.properties && "captionText" in a.props.properties ? a.props.properties.captionText : void 0, d = ((l) => l.type !== "uploading" && l.type !== "thanks")(a) ? { order: n++, question: a.props.message, questionDescription: c, questionType: a.type, response: t == null ? void 0 : t[a.name], options: uo(a) } : { order: n++, questionType: a.type, response: t == null ? void 0 : t[a.name] };
1266
+ u.push(d);
1267
+ }
1268
+ return u;
1269
+ }, []);
1270
+ return { targetQuestionOrder: s, questionsResponses: i };
1271
+ }, rr = (e) => {
1272
+ var t;
1273
+ return "props" in e && "loading" in e.props && ((t = e == null ? void 0 : e.props) == null ? void 0 : t.loading) !== void 0;
1274
+ }, We = (e, t, r) => {
1275
+ let o = !1;
1276
+ const n = e.map((s) => s && s.parentId === t ? (o = !0, r(s)) : s);
1277
+ return o ? n : e;
1278
+ }, Qe = (e, t, r) => {
1279
+ let o = !1;
1280
+ const n = e.map((s) => s && s.name === t ? (o = !0, r(s)) : s);
1281
+ return o ? n : e;
1282
+ }, nr = (e) => {
1283
+ const { props: t } = e;
1284
+ return t && "message" in t && "properties" in t ? { ...e, props: { ...t, loading: Y.inFlight } } : e;
1285
+ }, or = ({ isPreview: e, apiURL: t, envId: r, userId: o, headers: n }) => e ? { url: `${t}/sdk/1/environments/${r}/dynamic-question-preview`, visitorIdHeader: "0" } : { url: `${t}/sdk/1/environments/${r}/visitors/${o}/dynamic-question`, visitorIdHeader: n["x-ul-visitor-id"] }, co = (e, t) => {
1286
+ const r = t[e];
1287
+ return typeof r != "number" ? null : r;
1288
+ }, un = (e, t) => Array.isArray(e) ? e.map((r) => un(r, t)) : ((r) => typeof r == "object" && r !== null && !Array.isArray(r) && "questionUid" in r)(e) ? { ...e, questionIndex: co(e.questionUid, t) } : e, po = (e) => e === qe || e === Xr, sr = ({ segment: e, allResponses: t, cards: r, currentIndex: o }) => Array.isArray(e) ? ln({ constraintGroup: e, allResponses: t, cards: r, currentIndex: o }) : typeof e != "number" && !!((n) => typeof n == "object" && n !== null && !Array.isArray(n) && "questionIndex" in n)(e) && (({ constraint: n, allResponses: s, cards: i, currentIndex: u }) => {
1289
+ const { questionIndex: a } = n;
1290
+ if (a === null) return !1;
1291
+ if (!Object.hasOwn(s, a)) return !(u > a) || n.comparisonType === "skipped";
1292
+ const c = i[a];
1293
+ return c !== void 0 && !!pe({ comparator: n.comparisonType, response: s[a], type: c.type, value: n.value });
1294
+ })({ constraint: e, allResponses: t, cards: r, currentIndex: o }), ln = ({ constraintGroup: e, allResponses: t, cards: r, currentIndex: o }) => {
1295
+ if (e.length === 0) return !1;
1296
+ let n = sr({ segment: e[0], allResponses: t, cards: r, currentIndex: o }), s = 1;
1297
+ for (; s < e.length; ) {
1298
+ const i = e[s];
1299
+ if (typeof i != "number" || !po(i) || (s += 1, s >= e.length)) return !1;
1300
+ const u = sr({ segment: e[s], allResponses: t, cards: r, currentIndex: o });
1301
+ s += 1, n = i === qe ? n && u : n || u;
1302
+ }
1303
+ return n;
1304
+ }, cn = (e) => e.length > 0 && e.every((t) => t.quotaFilled || !t.quotaMatched), _o = ({ quotas: e, quotaMessages: t }) => {
1305
+ if (e.length !== 0) return e.every((r) => !r.quotaMatched) ? t == null ? void 0 : t.disqualified : cn(e) ? t == null ? void 0 : t.filled : void 0;
1306
+ }, dn = (e) => 200 + 90 * e + 16 * e, Mo = (e, t) => dn(e) > ((r) => Math.min(1200, 0.9 * r))(t), Ho = (e, t) => t > 600 && dn(e) < 600, Ge = /* @__PURE__ */ new Set(["thanks", "uploading"]), Z = Kn()((e, t) => ({ providerPersona: void 0, showProviderPersona: !1, addResponseGroupMeta: void 0, allResponses: [], allResponsesRaw: {}, answers: void 0, apiURL: "", avatars: { agentAvatar: { "1x": "", "2x": "" }, respondentAvatar: { "1x": "", "2x": "" } }, border: "#2f2e2c", cards: [], cardIndexByName: {}, quotaEndcardText: void 0, quotaMessages: void 0, quotas: [], close: async (r = J) => {
1307
+ const o = t(), { fadeout: n, remove: s, trackHistory: i, studyType: u } = o;
1308
+ await n(r), Ze(o) || i({ event: "closed" }), Me.info("SurveyClosing", { surveyId: o.surveyId }), vt.enable(), s({ initiator: ht.Closed, studyType: u });
1309
+ }, configureExitOnOverlayClick: () => {
1310
+ }, customMetadata: {}, destroy: async (r) => {
1311
+ const { eventEmitFn: o, fadeout: n, remove: s, studyType: i, surveyId: u } = t();
1312
+ o("survey.complete", u), await n(r), vt.enable(), s({ initiator: ht.Complete, studyType: i });
1313
+ }, enableCspTrustedTypes: !1, endCard: { headline: "" }, envId: "", eventEmitFn: me.emit.bind(me), fadeout: async (r) => {
1314
+ const { eventEmitFn: o, headers: n, viewDocument: s } = t();
1315
+ return Ae(n) ? Promise.resolve() : (o(H.SurveyFadingOut), new Promise((i) => {
1316
+ const u = s.getElementById(r);
1317
+ u ? (u.addEventListener("transitionend", () => {
1318
+ i();
1319
+ }), u.classList.remove("ul-app--visible")) : i();
1320
+ }));
1321
+ }, forceBrandedLogo: !1, frame: document.createElement("iframe"), handleClickEmbedButton: (r) => {
1322
+ const { cards: o, eventEmitFn: n, index: s } = t();
1323
+ n(r, { qid: o[s].name, props: o[s].props }), e(() => ({ hasViewedEmbed: !0 }));
1324
+ }, handleUploadUpdate: ({ mediaRecordingUid: r, isComplete: o, progressPct: n, isSubmitted: s }) => {
1325
+ var p, b, m;
1326
+ const { cards: i, destroy: u, index: a, uploadProgress: c } = t(), d = o || ((p = c[r]) == null ? void 0 : p.isComplete), l = { ...c, [r]: { progressPct: d ? 100 : n || ((b = c[r]) == null ? void 0 : b.progressPct), isComplete: d, isSubmitted: s || ((m = c[r]) == null ? void 0 : m.isSubmitted) } };
1327
+ if (e({ uploadProgress: l }), i[a].type !== "uploading") return;
1328
+ const f = Object.entries(c).every(([v, g]) => !g.isSubmitted || g.isComplete || r == v && o);
1329
+ if (f && a >= i.length - 1) return u(J);
1330
+ e({ index: f ? a + 1 : a, uploadingCardViewed: !0 });
1331
+ }, hasViewedEmbed: !1, headers: { Authorization: "", "Content-Type": "", "userleap-platform": "web", "x-ul-environment-id": "", "x-ul-installation-method": "web-snippet", "x-ul-sdk-version": "", "x-ul-visitor-id": "" }, index: 0, isConversationalUI: !1, isPreview: !1, layout: "default", marketingUrl: "https://sprig.com", meta: { ch: 0, cw: 0, l: "", mode: null, p: "", sh: 0, sw: 0 }, mode: void 0, next: (r) => {
1332
+ const { allResponses: o, cards: n, eventEmitFn: s, index: i, quotaMessages: u, quotas: a, responseGroupUid: c, submit: d, trackHistory: l, uploadProgress: f, viewedCardCount: p } = t(), b = Array.isArray(r.data) ? r.data : [r.data], m = Date.now(), v = [...n], g = { response: [], responseGroupUid: c, questionIndex: i };
1333
+ let _ = null;
1334
+ const C = o.slice(0);
1335
+ let w = i;
1336
+ b.forEach((I, k) => {
1337
+ const N = Math.floor(I.questionId), E = v.findIndex((q) => q.name === N), L = E >= 0 ? v[E] : v[i + k], O = { value: I.value, questionId: N, answeredAt: m, ...I.secondaryValue !== void 0 && { secondaryValue: I.secondaryValue }, ...I.questionText !== void 0 && { questionText: I.questionText } }, M = O.value;
1338
+ ((q) => q && !Ge.has(q.type))(L) && (L.value = M, L.secondaryValue = O.secondaryValue || null), g.response.push(O);
1339
+ const P = E >= 0 ? E : i + k;
1340
+ C[P] = pt(L, M), P > w && (w = P);
1341
+ }), _ = tn({ cards: v, index: w, hasEndCard: !!r.endCard, uploadProgress: f, allResponses: C, surveyVisitorAttributes: t().surveyVisitorAttributes });
1342
+ const S = (({ quotas: I, allResponses: k, cards: N, currentIndex: E }) => I.map((L) => L.quotaMatched ? { ...L, quotaMatched: ln({ constraintGroup: L.constraintGroup, allResponses: k, cards: N, currentIndex: E }) } : L))({ quotas: a, allResponses: C, cards: v, currentIndex: _ ?? w + 1 });
1343
+ if (cn(S)) {
1344
+ const I = v.findIndex((k) => k.type === "thanks");
1345
+ _ = I >= 0 ? I : null;
1346
+ }
1347
+ e({ allResponses: C, quotaEndcardText: _o({ quotas: S, quotaMessages: u }), quotas: S }), (_ === null || Ge.has(v[_].type)) && (g.completedAt = m);
1348
+ const h = d(g);
1349
+ if (_ === null) return void r.completeSurvey();
1350
+ _ && !Ge.has(v[_].type) && h.finally(() => {
1351
+ l({ event: "seen", index: _ });
1352
+ });
1353
+ const y = v[_];
1354
+ v[_] && s && s("survey.question", { qid: y.name, props: y.props }), e({ cards: v, hasViewedEmbed: !1, index: _, viewedCardCount: p + 1 });
1355
+ }, pendingRemoveIframeReason: null, previewKey: null, recorder: () => {
1356
+ }, recorderEventEmitter: me, resolveTrackedPromise: () => {
1357
+ const { removeIframeIfReady: r } = t();
1358
+ e((o) => ({ unresolvedRequestCount: o.unresolvedRequestCount - 1 })), r();
1359
+ }, responseGroupUid: "", remove: ({ initiator: r, studyType: o }) => {
1360
+ const { eventEmitFn: n, removeIframeIfReady: s, surveyId: i } = t();
1361
+ e({ pendingRemoveIframeReason: r, studyType: o }), n(H.SurveyCloseRequested, { name: H.SurveyCloseRequested, initiator: r, studyType: o, "survey.id": i }), s();
1362
+ }, removeIframeIfReady: () => {
1363
+ const { eventEmitFn: r, pendingRemoveIframeReason: o, unresolvedRequestCount: n, studyType: s, surveyId: i } = t();
1364
+ o && n === 0 && (r(H.SurveyWillClose, { name: H.SurveyWillClose, initiator: o, studyType: s, "survey.id": i }), e({ pendingRemoveIframeReason: null, studyType: s }));
1365
+ }, seen: async () => {
1366
+ const { trackHistory: r } = t();
1367
+ return r({ event: "seen", isNew: !0 });
1368
+ }, createDynamicStandaloneQuestion: async ({ questionId: r }) => {
1369
+ var f, p, b;
1370
+ let o = !1;
1371
+ if (e((m) => {
1372
+ const v = m.cards.find((g) => (g == null ? void 0 : g.name) === r);
1373
+ return !(v != null && v.name) || rr(v) ? m : (o = !0, { cards: Qe(m.cards, r, nr) });
1374
+ }), !o) return;
1375
+ const n = t(), { targetQuestionOrder: s, questionsResponses: i } = tr({ cards: n.cards, combinedReadableRawResponses: n.allResponsesRaw, targetQuestionId: r, generateQuestionType: "aidynamicstandalone" }), u = { surveyId: n.surveyId, responseGroupUid: n.responseGroupUid, standaloneQuestionOrder: s, questionsResponses: i, standaloneQuestionId: r, customMetadata: n.customMetadata, meta: n.meta, previewKey: n.previewKey, isPreview: n.isPreview };
1376
+ let a = !1;
1377
+ const c = () => {
1378
+ if (a) return;
1379
+ a = !0;
1380
+ const m = t(), v = m.cards.find(({ name: g }) => g === r);
1381
+ if (e((g) => ({ cards: Qe(g.cards, r, (_) => {
1382
+ const { props: C } = _;
1383
+ return C && "message" in C && "properties" in C ? { ..._, value: "", props: { ...C, loading: Y.failure, properties: { ...C.properties, required: !1 } } } : _;
1384
+ }) })), ye(m.studyType) && (v != null && v.groupId)) {
1385
+ const g = m.cards.reduce((w, S) => ((S == null ? void 0 : S.groupId) === v.groupId && w.push(S), w), []), _ = g.findIndex((w) => w.name === v.name), C = _ + 1;
1386
+ if (C < g.length) {
1387
+ const w = g[C].name;
1388
+ m.setFocusedQuestionId(w);
1389
+ } else {
1390
+ const w = g[_ - 1].name;
1391
+ m.setFocusedQuestionId(w);
1392
+ }
1393
+ } else m.next({ data: { value: "", questionId: v.name, type: v.type }, completeSurvey: () => m.destroy(J), endCard: m.endCard });
1394
+ }, d = new AbortController(), l = setTimeout(() => {
1395
+ d.abort(), c();
1396
+ const m = new Error("Timeout reached—question skipped");
1397
+ n.trackPromise(se(n, "aidynamicstandalone", m));
1398
+ }, 3e3);
1399
+ try {
1400
+ const { url: m, visitorIdHeader: v } = or(n), g = await n.trackPromise(fe(m, { body: JSON.stringify(u), headers: { ...n.headers, "x-ul-visitor-id": v }, method: "POST", signal: d.signal }));
1401
+ if (!g.ok || !((b = (p = (f = g == null ? void 0 : g.json) == null ? void 0 : f.props) == null ? void 0 : p.message) != null && b.length)) return c(), void await n.trackPromise(se(n, "dynamicQuestion", g.error));
1402
+ if (a) return;
1403
+ a = !0, e((_) => ({ cards: Qe(_.cards, r, (C) => {
1404
+ const w = C.props;
1405
+ return w && "message" in w && "properties" in w ? { ...C, props: { ...w, loading: Y.success, message: g.json.props.message } } : C;
1406
+ }) }));
1407
+ } finally {
1408
+ clearTimeout(l);
1409
+ }
1410
+ }, createDynamicFollowupQuestion: async ({ parentQuestionId: r, parentResponseConfig: o }) => {
1411
+ var m, v, g;
1412
+ let n = !1;
1413
+ e((_) => {
1414
+ const C = _.cards.find((w) => (w == null ? void 0 : w.parentId) === r);
1415
+ return !(C != null && C.name) || rr(C) ? _ : (n = !0, { cards: We(_.cards, r, nr) });
1416
+ });
1417
+ const s = t(), i = { ...s.allResponsesRaw, ...o || {} }, { targetQuestionOrder: u, questionsResponses: a } = tr({ cards: s.cards, combinedReadableRawResponses: i, targetQuestionId: r, generateQuestionType: "aidynamicfollowup" }), c = s.cards.find((_) => _.parentId === r && _.type === "aidynamicfollowup");
1418
+ if (!n || !c) return;
1419
+ const d = { surveyId: s.surveyId, responseGroupUid: s.responseGroupUid, parentQuestionOrder: u, questionsResponses: a, childQuestionId: c.name, customMetadata: s.customMetadata, meta: s.meta, previewKey: s.previewKey, isPreview: s.isPreview };
1420
+ let l = !1;
1421
+ const f = () => {
1422
+ if (l) return;
1423
+ l = !0;
1424
+ const _ = t(), C = _.cards.find((w) => w.parentId === r);
1425
+ if (e((w) => ({ cards: We(w.cards, r, (S) => {
1426
+ const { props: h } = S;
1427
+ return h && "message" in h && "properties" in h ? { ...S, value: "", props: { ...h, loading: Y.failure, properties: { ...h.properties, required: !1 } } } : S;
1428
+ }) })), ye(_.studyType) && (C != null && C.groupId)) {
1429
+ const w = _.cards.reduce((y, I) => ((I == null ? void 0 : I.groupId) === C.groupId && y.push(I), y), []), S = w.findIndex((y) => y.name === C.name), h = S + 1;
1430
+ if (h < w.length) {
1431
+ const y = w[h].name;
1432
+ _.setFocusedQuestionId(y);
1433
+ } else {
1434
+ const y = w[S - 1].name;
1435
+ _.setFocusedQuestionId(y);
1436
+ }
1437
+ } else _.next({ data: { value: "", questionId: C.name, type: C.type }, completeSurvey: () => _.destroy(J), endCard: _.endCard });
1438
+ }, p = new AbortController(), b = setTimeout(() => {
1439
+ p.abort(), f();
1440
+ const _ = new Error("Timeout reached—question skipped");
1441
+ s.trackPromise(se(s, "dynamicFollowUpQuestion", _));
1442
+ }, 3e3);
1443
+ try {
1444
+ const { url: _, visitorIdHeader: C } = or(s), w = await s.trackPromise(fe(_, { body: JSON.stringify(d), headers: { ...s.headers, "x-ul-visitor-id": C }, method: "POST", signal: p.signal }));
1445
+ if (!w.ok || !((g = (v = (m = w == null ? void 0 : w.json) == null ? void 0 : m.props) == null ? void 0 : v.message) != null && g.length)) return f(), void await s.trackPromise(se(s, "dynamicQuestion", w.error));
1446
+ if (l) return;
1447
+ l = !0, e((S) => ({ cards: We(S.cards, r, (h) => {
1448
+ const y = h.props;
1449
+ return y && "message" in y && "properties" in y ? { ...h, props: { ...y, loading: Y.success, message: w.json.props.message } } : h;
1450
+ }) }));
1451
+ } finally {
1452
+ clearTimeout(b);
1453
+ }
1454
+ }, setAllResponsesRaw: (r) => e({ allResponsesRaw: r }), slugName: null, showStripes: !1, showSurveyBrand: !1, showSurveyLogo: !1, startingQuestionIdx: null, styleNonce: "", submit: async ({ completedAt: r, questionIndex: o, response: n, responseGroupUid: s }) => {
1455
+ const i = t();
1456
+ if (!s || Ze(i)) return;
1457
+ const u = { responseGroupUid: s, meta: i.meta, customMetadata: i.customMetadata, responses: n, completedAt: r, previewKey: i.previewKey };
1458
+ if (typeof i.addResponseGroupMeta == "function") try {
1459
+ const c = await i.addResponseGroupMeta();
1460
+ typeof c == "object" && c !== null ? u.meta = { ...u.meta, ...c } : Me.error("addResponseGroupMeta must return an object");
1461
+ } catch (c) {
1462
+ Me.error("addResponseGroupMeta promise failed", c);
1463
+ }
1464
+ const a = await i.trackPromise(fe(`${i.apiURL}/sdk/1/environments/${i.envId}/visitors/${i.userId}/responses/submit`, { body: JSON.stringify(u), headers: i.headers, method: "POST" }));
1465
+ a.ok ? n.forEach((c, d) => {
1466
+ i.eventEmitFn(H.QuestionAnswered, { ...c, questionIndex: o ? o + d : void 0, "survey.id": i.surveyId });
1467
+ }) : a.reportError && (console.warn("[Sprig] (ERR-427) Failed to submit response", a.error), await i.trackPromise(se(i, "submitResponse", a.error)));
1468
+ }, surveyId: 0, surveyVisitorAttributes: {}, tabTitle: "", trackHistory: async ({ event: r, index: o, isNew: n = !1 }) => {
1469
+ const s = t();
1470
+ if (Ze(s)) return;
1471
+ const { cards: i, index: u } = s;
1472
+ let a = o ?? u, c = i[a];
1473
+ for (; c; ) {
1474
+ const d = { sid: s.surveyId, qid: Math.floor(c.name), action: r, vid: s.userId, eid: s.envId, isNew: n, responseGroupUid: s.responseGroupUid, previewKey: s.previewKey }, l = await s.trackPromise(fe(`${s.apiURL}/sdk/1/visitors/${s.userId}/surveys/${s.surveyId}/history`, { method: "POST", headers: s.headers, body: JSON.stringify(d) }));
1475
+ !l.ok && l.reportError && (console.warn("[Sprig] (ERR-428) Failed to track survey event", l.error), await s.trackPromise(se(s, "trackHistory", l.error)));
1476
+ const f = i[a + 1];
1477
+ if (!c.groupId || !(f != null && f.groupId) || f.groupId !== c.groupId) break;
1478
+ a++, c = f, n = !1;
1479
+ }
1480
+ }, trackPromise: async (r) => {
1481
+ const { resolveTrackedPromise: o } = t();
1482
+ return e((n) => ({ unresolvedRequestCount: n.unresolvedRequestCount + 1 })), r.then((n) => (o(), n)).catch((n) => {
1483
+ throw o(), n;
1484
+ });
1485
+ }, unresolvedRequestCount: 0, update: () => {
1486
+ var S, h, y;
1487
+ const { cards: r, index: o, headers: n, eventEmitFn: s, frame: i, useMobileStyling: u, surveyId: a, studyType: c, viewDocument: d, isConversationalUI: l } = t(), f = n["userleap-platform"] === "web", p = Ae(n), b = r[o], m = ye(c) ? !!d.querySelector(".ul-card--matrix-expandable") : b.type === "matrix" && !(b.props.properties.displayMatrixAsAccordion || u), v = !u && m;
1488
+ !p && !u && ((S = i == null ? void 0 : i.setWidth) == null || S.call(i, mn));
1489
+ const [g, _] = yn(d, f && !u, p), C = l && g < 532 ? 532 : g, w = ((I, k, N) => {
1490
+ if (!N) return k;
1491
+ const E = I.querySelector(".ul-card-scroll-wrapper:has(.ul-card--matrix-expandable)");
1492
+ if (!yt(E) || E.offsetWidth <= 600) return k;
1493
+ const L = I.querySelector(".ul-card--matrix_grid"), O = yt(L) ? L.scrollWidth : 0;
1494
+ return Math.max(k, E.offsetWidth + (k - O));
1495
+ })(d, _, v);
1496
+ if (p) return s(H.SurveyHeight, { name: H.SurveyHeight, contentFrameHeight: C, "survey.id": a }), void s(H.SurveyWidth, { name: H.SurveyWidth, contentFrameWidth: w, "survey.id": a });
1497
+ (h = i.setHeight) == null || h.call(i, C), v && ((y = i.setWidth) == null || y.call(i, w));
1498
+ }, uploadingCardViewed: !1, uploadProgress: {}, useDesktopPrototype: void 0, useMobileStyling: !1, userId: "", viewDocument: window.document, viewedCardCount: 0, focusedQuestionId: null, setFocusedQuestionId: (r) => e({ focusedQuestionId: r }) })), Ze = (e) => {
1499
+ var t;
1500
+ return !e.userId || ((t = e == null ? void 0 : e.meta) == null ? void 0 : t.mode) === "test" || e.isPreview;
1501
+ }, se = async (e, t, r) => {
1502
+ const { mode: o, userId: n, envId: s, apiURL: i, headers: u, viewDocument: a } = e, c = a.documentElement, d = { mode: o, screenWidth: window.screen.width, screenHeight: window.screen.height, clientWidth: c.clientWidth, clientHeight: c.clientHeight, location: window.location.href, language: window.navigator.language }, l = { action: t, err: { message: `${r == null ? void 0 : r.name} - ${r == null ? void 0 : r.message}`, stack: r == null ? void 0 : r.stack }, meta: d, vid: n, envId: s };
1503
+ (await fe(`${i}/sdk/1/errors`, { method: "POST", headers: Object.assign({ "x-ul-error": window.btoa(`userleap-${Date.now()}-error`) }, u), body: JSON.stringify(l) })).ok || console.warn("[Sprig] (ERR-444) Failed to report error to API", r);
1504
+ }, fo = () => {
1505
+ const { cards: e, close: t, endCard: r, headers: o, index: n } = Z((u) => ({ cards: u.cards, close: u.close, endCard: u.endCard, headers: u.headers, index: u.index, useMobileStyling: u.useMobileStyling })), s = e.length, i = re(() => () => t(J), [t]);
1506
+ return ["email", "link"].includes(o["userleap-platform"]) || r && n + 1 === s ? null : R("div", { "aria-label": "Close button", className: "close-btn", onClick: i, onKeyPress: (u) => {
1507
+ u.key === "Enter" && i();
1508
+ }, role: "button", tabIndex: 0, children: R("svg", { fill: "none", height: "16px", viewBox: "0 0 13 13", width: "16px", xmlns: "http://www.w3.org/2000/svg", children: R("path", { d: "M2.54964 1.78369L1.78369 2.54964L5.73405 6.5L1.78369 10.4504L2.54964 11.2163L6.5 7.26595L10.4504 11.2163L11.2163 10.4504L7.26595 6.5L11.2163 2.54964L10.4504 1.78369L6.5 5.73405L2.54964 1.78369Z", fill: "currentColor" }) }) });
1509
+ }, mo = (e) => U("svg", { fill: "none", height: 24, viewBox: "0 0 24 24", width: 24, xmlns: "http://www.w3.org/2000/svg", ...e }, U("path", { d: "M17 10L12 15L7 10", stroke: "#0B2330", strokeLinecap: "round", strokeLinejoin: "round", strokeWidth: 1.5 })), yo = (e) => U("svg", { fill: "none", height: 10, viewBox: "0 0 10 10", width: 10, xmlns: "http://www.w3.org/2000/svg", ...e }, U("path", { d: "M9.15377 1.30774L4.07685 8.23082L1.30762 5.00005", stroke: "white", strokeLinecap: "round", strokeWidth: 2 })), vo = ({ visible: e }) => R("div", { className: "sprig-check-background", style: { opacity: e ? 1 : 0 }, children: R(yo, { className: "sprig-check" }) }), ir = "250ms", jo = lt(({ animate: e, children: t, header: r, isOpen: o, onClick: n, showHeaderCheck: s }, i) => {
1510
+ const u = Z((m) => m.update), a = ee(null), [c, d] = X(0), [l, f] = X("none"), [p, b] = X(!0);
1511
+ return j(() => {
1512
+ var v;
1513
+ const m = (v = a.current) == null ? void 0 : v.getBoundingClientRect();
1514
+ d(o && m ? m.height : 0);
1515
+ }, [o]), j(() => {
1516
+ u();
1517
+ }, [c, u]), j(() => {
1518
+ !c && o || !p || b(!1), f(e && !p ? `height ${ir} ease` : "none");
1519
+ }, [e, p, c, o]), R("div", { className: "sprig-accordion", ref: i, children: [R("button", { className: "sprig-accordion-header-container", onClick: n, type: "button", children: [R("div", { className: "sprig-header-label-container", children: [R("span", { className: "sprig-header-label", children: r }), R(vo, { visible: s })] }), R(mo, { className: "sprig-caret", style: { transitionDuration: e ? ir : "0", transform: o ? "rotate(-180deg)" : "none" } })] }), R("div", { className: "sprig-accordion-body", style: { transition: l, height: c }, children: R("div", { ref: a, children: t }) })] });
1520
+ }), pn = ({ style: e, stroke: t = "black" }) => R("svg", { fill: "none", height: "10", style: e, viewBox: "0 0 12 10", width: "12", xmlns: "http://www.w3.org/2000/svg", children: [R("path", { d: "M1.47839 5.2085L10.9384 5.2085", stroke: t, strokeLinecap: "round", strokeLinejoin: "round", strokeWidth: "1.35" }), R("path", { d: "M7.0686 1.15845L10.9386 5.20845L7.0686 9.25845", stroke: t, strokeLinecap: "round", strokeLinejoin: "round", strokeWidth: "1.35" })] }), Ke = (...e) => e.filter(Boolean).join(" "), ho = (e, t, r) => {
1521
+ const o = t ? "--mobile" : "--desktop";
1522
+ return `${e + o} ${e + (r ? `${o}_${r}` : "")} ${e}`;
1523
+ }, go = (e, t) => `${e} ${e}__${t}`, _n = ({ logoOnly: e = !1, style: t = {} }) => R("svg", { alt: (e ? "Powered by " : "") + "Sprig", className: "sprig-logo", fill: "none", height: "15", style: { display: "block", ...t }, viewBox: e ? "79 0 31 15" : "0 0 112 15", width: e ? "35" : "112", xmlns: "http://www.w3.org/2000/svg", children: [!e && R("path", { d: "M0.648926 12.0181V2.8584H4.21631C6.0127 2.8584 7.25684 4.06445 7.25684 5.86084V5.87354C7.25684 7.66357 6.0127 8.88867 4.21631 8.88867H2.0708V12.0181H0.648926ZM3.86084 4.05811H2.0708V7.69531H3.86084C5.09229 7.69531 5.80957 7.02881 5.80957 5.87988V5.86719C5.80957 4.72461 5.09229 4.05811 3.86084 4.05811ZM11.6621 12.1514C9.63721 12.1514 8.39941 10.7993 8.39941 8.57764V8.56494C8.39941 6.34961 9.64355 4.99121 11.6621 4.99121C13.6743 4.99121 14.9185 6.34326 14.9185 8.56494V8.57764C14.9185 10.7993 13.6807 12.1514 11.6621 12.1514ZM11.6621 11.0024C12.8428 11.0024 13.5156 10.1011 13.5156 8.57764V8.56494C13.5156 7.03516 12.8428 6.14014 11.6621 6.14014C10.4751 6.14014 9.80859 7.03516 9.80859 8.56494V8.57764C9.80859 10.1074 10.4751 11.0024 11.6621 11.0024ZM17.6226 12.0181L15.7183 5.12451H17.1021L18.3398 10.4438H18.4414L19.8633 5.12451H21.1709L22.5928 10.4438H22.7007L23.9321 5.12451H25.2969L23.3989 12.0181H21.9834L20.5552 6.87646H20.4473L19.0254 12.0181H17.6226ZM29.334 12.1514C27.3154 12.1514 26.0967 10.7739 26.0967 8.59033V8.58398C26.0967 6.43213 27.3408 4.99121 29.2642 4.99121C31.1875 4.99121 32.3682 6.38135 32.3682 8.45068V8.93311H27.4805C27.5059 10.2534 28.2295 11.0215 29.3657 11.0215C30.248 11.0215 30.7749 10.5835 30.9399 10.228L30.9653 10.1772L32.292 10.1709L32.2793 10.228C32.0508 11.1357 31.0986 12.1514 29.334 12.1514ZM29.2705 6.12109C28.3311 6.12109 27.6201 6.76221 27.4995 7.94922H31.0034C30.8955 6.71777 30.2036 6.12109 29.2705 6.12109ZM34.0059 12.0181V5.12451H35.3833V6.16553H35.4849C35.7324 5.43555 36.3735 5.00391 37.2939 5.00391C37.5161 5.00391 37.7573 5.03564 37.897 5.06738V6.33691C37.6494 6.28613 37.4146 6.25439 37.1543 6.25439C36.1006 6.25439 35.3833 6.90186 35.3833 7.89844V12.0181H34.0059ZM41.9277 12.1514C39.9092 12.1514 38.6904 10.7739 38.6904 8.59033V8.58398C38.6904 6.43213 39.9346 4.99121 41.8579 4.99121C43.7812 4.99121 44.9619 6.38135 44.9619 8.45068V8.93311H40.0742C40.0996 10.2534 40.8232 11.0215 41.9595 11.0215C42.8418 11.0215 43.3687 10.5835 43.5337 10.228L43.5591 10.1772L44.8857 10.1709L44.873 10.228C44.6445 11.1357 43.6924 12.1514 41.9277 12.1514ZM41.8643 6.12109C40.9248 6.12109 40.2139 6.76221 40.0933 7.94922H43.5972C43.4893 6.71777 42.7974 6.12109 41.8643 6.12109ZM49.1133 12.1323C47.3804 12.1323 46.2568 10.7422 46.2568 8.57764V8.56494C46.2568 6.38135 47.3613 5.00391 49.1133 5.00391C50.0591 5.00391 50.8652 5.47363 51.2334 6.21631H51.3413V2.42041H52.7124V12.0181H51.3413V10.9326H51.2334C50.8335 11.688 50.0781 12.1323 49.1133 12.1323ZM49.5068 10.958C50.6558 10.958 51.3604 10.0503 51.3604 8.57764V8.56494C51.3604 7.09229 50.6494 6.18457 49.5068 6.18457C48.3516 6.18457 47.6597 7.08594 47.6597 8.56494V8.57764C47.6597 10.0566 48.3516 10.958 49.5068 10.958ZM61.98 12.1323C61.0151 12.1323 60.2598 11.688 59.8599 10.9326H59.7583V12.0181H58.3809V2.42041H59.7583V6.21631H59.8599C60.228 5.47363 61.0342 5.00391 61.98 5.00391C63.7319 5.00391 64.8364 6.38135 64.8364 8.56494V8.57764C64.8364 10.7422 63.7192 12.1323 61.98 12.1323ZM61.5928 10.958C62.7417 10.958 63.4336 10.0566 63.4336 8.57764V8.56494C63.4336 7.08594 62.7417 6.18457 61.5928 6.18457C60.4438 6.18457 59.7329 7.09229 59.7329 8.56494V8.57764C59.7329 10.0503 60.4438 10.958 61.5928 10.958ZM66.8867 14.4429C66.7153 14.4429 66.5122 14.4302 66.3345 14.4111V13.3257C66.4678 13.3447 66.6392 13.3511 66.7979 13.3511C67.439 13.3511 67.8262 13.0781 68.0293 12.3799L68.1309 12.0244L65.6299 5.12451H67.1152L68.8418 10.6343H68.9624L70.6826 5.12451H72.1299L69.5654 12.2847C68.9814 13.9287 68.2832 14.4429 66.8867 14.4429Z", fill: "currentColor" }), R("path", { d: "M81.1088 6.63629C79.6878 6.32154 78.9672 5.76865 78.9672 4.99369C78.9672 4.19299 79.736 3.5886 80.7556 3.5886C81.8066 3.5886 82.5995 4.25285 82.5995 5.13336V5.20352H84.0518V5.13336C84.0518 3.52424 82.6405 2.30774 80.7693 2.30774C79.8676 2.30774 79.0414 2.58451 78.4433 3.08655C78.1463 3.33144 77.9077 3.63818 77.7448 3.98479C77.5818 4.33141 77.4984 4.70934 77.5005 5.09153C77.4946 5.44197 77.5675 5.78934 77.714 6.10857C77.8605 6.42779 78.0769 6.71092 78.3475 6.93752C78.8512 7.37584 79.5659 7.70024 80.4709 7.90299C81.9949 8.23898 82.7676 8.81054 82.7676 9.60094C82.7676 10.4576 81.9258 11.1032 80.813 11.1032C79.6571 11.1032 78.7854 10.3856 78.7854 9.43424V9.36408H77.3318V9.43424C77.3318 11.1167 78.8219 12.3847 80.7973 12.3847C81.7421 12.3847 82.6093 12.0983 83.2393 11.5769C83.5519 11.3237 83.8034 11.0048 83.9753 10.6433C84.1472 10.2818 84.2352 9.88702 84.2329 9.48766C84.2329 8.05875 83.1833 7.09907 81.1088 6.63629Z", fill: "currentColor" }), R("path", { d: "M89.2394 4.68276C88.6963 4.67605 88.1596 4.79915 87.6751 5.04156C87.1905 5.28397 86.7725 5.63851 86.4566 6.07497V4.85204H85.0747V14.8479H86.4566V11.0356C86.7725 11.472 87.1906 11.8265 87.6751 12.0688C88.1596 12.3111 88.6963 12.434 89.2394 12.4272C91.3836 12.4272 93 10.7627 93 8.55495C93 6.34723 91.3836 4.68276 89.2394 4.68276ZM91.5608 8.84202C91.5057 9.41605 91.2512 9.95356 90.8406 10.3633C90.4299 10.773 89.8883 11.0296 89.3078 11.0896C88.5363 11.1669 87.8177 10.9461 87.2841 10.4692C86.7505 9.99222 86.4566 9.3106 86.4566 8.55495C86.4566 7.10159 87.5538 6.00546 89.0087 6.00546C89.7619 6.00546 90.4421 6.29124 90.9171 6.81002C91.407 7.34232 91.6357 8.06385 91.5608 8.84202Z", fill: "currentColor" }), R("path", { d: "M109.95 4.85407V6.06349C109.298 5.18298 108.292 4.68286 107.153 4.68286C105.017 4.68286 103.406 6.31709 103.406 8.48426C103.406 10.6514 105.017 12.285 107.153 12.285C108.296 12.285 109.303 11.79 109.95 10.9185V11.1046C109.95 12.6101 108.993 13.5826 107.513 13.5826C106.513 13.5826 105.68 13.1494 105.284 12.424L105.264 12.3867H103.838L103.871 12.48C104.112 13.1892 104.583 13.8001 105.211 14.2179C105.841 14.6324 106.637 14.8512 107.513 14.8512C108.637 14.8512 109.594 14.4972 110.28 13.8285C110.967 13.1597 111.332 12.2194 111.332 11.1213V4.85407H109.95ZM109.175 10.3502C108.588 10.905 107.752 11.138 106.879 10.9887C106.361 10.8984 105.886 10.6475 105.523 10.2725C105.16 9.89751 104.927 9.41787 104.859 8.90328C104.736 8.03757 104.999 7.21756 105.581 6.655C106.069 6.19093 106.723 5.93643 107.401 5.94699C107.565 5.94713 107.729 5.96026 107.891 5.98625C108.946 6.15489 109.781 7.01609 109.921 8.0852C110.039 8.96507 109.766 9.78958 109.175 10.3502Z", fill: "currentColor" }), R("path", { d: "M101.89 2.12378C101.63 2.06766 101.358 2.11486 101.133 2.25518C100.908 2.39551 100.747 2.61769 100.687 2.87371C100.626 3.12973 100.67 3.39902 100.809 3.62339C100.947 3.84775 101.17 4.00917 101.428 4.07275C101.503 4.08936 101.58 4.09778 101.657 4.09786C101.906 4.09824 102.146 4.0083 102.331 3.84518C102.517 3.68206 102.636 3.45714 102.664 3.21327C102.693 2.9694 102.63 2.72361 102.487 2.5227C102.344 2.32179 102.132 2.17981 101.89 2.12378Z", fill: "currentColor" }), R("path", { d: "M100.967 10.934H99.7755C98.9285 10.934 98.4196 10.3644 98.4196 9.40982C98.4196 8.4791 98.8757 7.36945 99.8054 6.01778L99.8178 5.99976V5.61807L95.8571 5.06453C95.8585 4.90331 95.8162 4.74466 95.7346 4.60501C95.653 4.46536 95.5352 4.34979 95.3932 4.27027C95.0381 4.07718 94.6498 4.07717 94.3279 4.26383C94.1667 4.35799 94.035 4.4945 93.9476 4.65816C93.8602 4.82182 93.8205 5.00623 93.8328 5.19087C93.8452 5.37552 93.9092 5.55315 94.0176 5.70402C94.1261 5.85489 94.2748 5.97309 94.4472 6.04546L93.2151 12.258H94.5833L95.7196 6.35891L97.8593 6.7155C97.284 7.73439 96.9921 8.68442 96.9921 9.53919C96.9921 11.1168 97.9577 12.1498 99.5187 12.2496V12.258H102.346V4.87723H100.967V10.934Z", fill: "currentColor" })] }), bo = ({ forceBrandedLogo: e, marketingUrlLink: t }) => R("div", { className: e ? "yellow-footer-logo" : "", children: R("a", { href: t, rel: "noreferrer", target: "_blank", children: R("div", { style: { display: "flex" }, children: [R(_n, { logoOnly: !1 }), e && R(pn, { style: { display: "block", margin: "auto 0 auto 4px", transform: "rotateY(0deg) rotate(-45deg)" } })] }) }) }), Co = ({ marketingUrlLink: e }) => R("a", { dir: "ltr", href: e, rel: "noreferrer", target: "_blank", children: R("div", { className: "thank-you-card-link", children: [R("div", { className: "sprig-box-logo", children: R(_n, { logoOnly: !0, style: { margin: "auto" } }) }), R("div", { children: R("p", { children: ["Capture insights about your own product", R(pn, { style: { display: "inline-flex", marginInlineStart: "4px", verticalAlign: "middle" } })] }) })] }) }), Fo = (e) => (e == null ? void 0 : e.buttonText) || "Next", Do = (e) => (e == null ? void 0 : e.skipButtonText) || "Skip", ko = ({ marketingUrl: e, slugName: t, surveyId: r, forceBrandedLogo: o }) => `${e}?utm_source=survey_branding&utm_medium=website&utm_campaign=${t}&utm_content=${r}${o ? "&utm_term=poweredby_pill" : ""}`, wo = () => {
1524
+ var g;
1525
+ const { border: e, cards: t, forceBrandedLogo: r, headers: o, index: n, marketingUrl: s, showSurveyBrand: i, slugName: u, surveyId: a, viewedCardCount: c } = Z((_) => ({ border: _.border, cards: _.cards, forceBrandedLogo: _.forceBrandedLogo, headers: _.headers, index: _.index, marketingUrl: _.marketingUrl, showSurveyBrand: _.showSurveyBrand, slugName: _.slugName, surveyId: _.surveyId, viewedCardCount: _.viewedCardCount })), d = ee(null), l = t.filter((_) => _.type !== "uploading" && _.type !== "thanks"), f = ((_, C) => {
1526
+ const w = /* @__PURE__ */ new Set(["thanks", "uploading"]);
1527
+ if (C >= _.length || C < 0 || w.has(_[C].type)) return 0;
1528
+ const S = _.filter((y) => !w.has(y.type));
1529
+ if (C === S.length - 1) return 1;
1530
+ const h = { [S.length - 1]: 1, [-1]: 0 };
1531
+ for (let y = S.length - 2; y >= C; y--) {
1532
+ const I = S[y], k = (I.props.routingOptions ?? []).filter((M) => typeof M == "object" && M !== null && "group" in M), N = so(y, k);
1533
+ if (N.length === 0) {
1534
+ h[y] = h[y + 1] + 1;
1535
+ continue;
1536
+ }
1537
+ let E = 0;
1538
+ const L = ro(I);
1539
+ if (L === null) return S.length - 1 - C;
1540
+ let O = L;
1541
+ for (const M of N) {
1542
+ if (O.length === 0) break;
1543
+ const { comparator: P, target: q, value: ne } = M, K = O.filter((V) => {
1544
+ const oe = eo({ value: V }, I.type, V), A = Yr(V, I.type);
1545
+ return !(oe && P === "answered" || A && P === "partial" || !oe && !A && P === "skipped" || P === "given_up" && no(V) && V.taskStatus === "given.up" || oe && I.type === "open" && (P === "contains" || P === "notcontains") || oe && to(P) && ge[P](V, ne));
1546
+ });
1547
+ if (K.length < O.length) {
1548
+ const V = Number.parseInt(String(q), 10);
1549
+ if (V !== -1 && V <= y || V >= S.length) return S.length - 1 - C;
1550
+ E = Math.max(h[V] + 1, E);
1551
+ }
1552
+ O = K;
1553
+ }
1554
+ O.length > 0 && (E = Math.max(h[y + 1] + 1, E)), h[y] = E;
1555
+ }
1556
+ return h[C];
1557
+ })(t, n), p = c + 1, b = p / (p + f), m = ko({ marketingUrl: s, slugName: u, surveyId: a, forceBrandedLogo: r });
1558
+ j(() => {
1559
+ d.current && (d.current.style.width = 100 * b + "%");
1560
+ }, [b]);
1561
+ const v = ((g = t[n]) == null ? void 0 : g.type) === "thanks";
1562
+ return R("footer", { className: "ul-footer " + (o["userleap-platform"] === "link" ? "ul-footer__link" : ""), children: v && r ? R(Co, { marketingUrlLink: m }) : R(B, { children: [l.length > 1 && R("div", { className: "ul-progress-bar-container ul-progress-bar-container__footer", children: R("div", { className: "ul-progress-bar-current", ref: d, style: { border: `1px solid ${e || "#2f2e2c"}` } }) }), i ? R(bo, { forceBrandedLogo: r, marketingUrlLink: m }) : null] }) });
1563
+ }, So = () => {
1564
+ const { border: e, cards: t, index: r, focusedQuestionId: o, isConversationalUI: n, showSurveyLogo: s } = Z((a) => ({ border: a.border, cards: a.cards, index: a.index, focusedQuestionId: a.focusedQuestionId, isConversationalUI: a.isConversationalUI, showSurveyLogo: a.showSurveyLogo })), { totalQuestions: i, fraction: u } = re(() => {
1565
+ var l;
1566
+ const a = t.filter((f) => f.type !== "uploading" && f.type !== "thanks"), c = a.length;
1567
+ if (c <= 1) return { totalQuestions: c, fraction: 0 };
1568
+ if (((l = t[r]) == null ? void 0 : l.type) === "thanks") return { totalQuestions: c, fraction: 1 };
1569
+ let d = 0;
1570
+ return d = n ? r + 1 : a.findIndex((f) => f.name === o), { totalQuestions: c, fraction: d / (c + 1) };
1571
+ }, [t, r, o, n]);
1572
+ return i <= 1 ? null : R("div", { className: "ul-progress-bar-container ul-progress-bar-container__header" + (s ? "" : " ul-progress-bar-container--no-branding"), children: R("div", { className: "ul-progress-bar-current", style: { width: 100 * u + "%", border: `1px solid ${e ?? "#2f2e2c"}` } }) });
1573
+ }, xo = Pe(async () => ({ default: (await import("./index-D1-6eKzp.js")).PageCard })), Ro = Pe(() => import("./conversational-ui-BA_Spq-D.js")), Io = () => {
1574
+ const { answers: e, border: t, cards: r, close: o, configureExitOnOverlayClick: n, destroy: s, endCard: i, eventEmitFn: u, fontFamily: a, headers: c, isConversationalUI: d, experimentFlags: l, index: f, next: p, previewKey: b, productConfig: m, seen: v, showStripes: g, studyType: _, surveyId: C, surveyVisitorAttributes: w, update: S, useMobileStyling: h, viewDocument: y } = Z((A) => ({ answers: A.answers, border: A.border, cards: A.cards, close: A.close, configureExitOnOverlayClick: A.configureExitOnOverlayClick, destroy: A.destroy, endCard: A.endCard, eventEmitFn: A.eventEmitFn, fontFamily: A.fontFamily, headers: A.headers, index: A.index, isConversationalUI: A.isConversationalUI, experimentFlags: A.experimentFlags, previewKey: A.previewKey, productConfig: A.productConfig, next: A.next, seen: A.seen, showStripes: A.showStripes, studyType: A.studyType, surveyId: A.surveyId, surveyVisitorAttributes: A.surveyVisitorAttributes, update: A.update, useMobileStyling: A.useMobileStyling, viewDocument: A.viewDocument })), I = ee(null), k = ee(!1), N = ee(!1), E = c["userleap-platform"], L = l == null ? void 0 : l["sdk-new-convo-ui"], { props: O, type: M, name: P } = r[f];
1575
+ j(() => {
1576
+ if (window.Sprig) return window.Sprig.trackHistory = (A) => Z.getState().trackHistory(A), () => {
1577
+ window.Sprig.trackHistory = void 0;
1578
+ };
1579
+ }, []), j(() => {
1580
+ I.current && (I.current.classList.contains("ul-app--visible") || I.current.classList.add("ul-app--visible"), !k.current && u && (k.current = !0, u(H.SurveyAppeared, { name: H.SurveyAppeared, "survey.id": C })));
1581
+ }, [u, C]), j(() => {
1582
+ const A = () => {
1583
+ y.visibilityState === "visible" && (v(), y.removeEventListener("visibilitychange", A));
1584
+ };
1585
+ return y.addEventListener("visibilitychange", A), A(), () => {
1586
+ y.removeEventListener("visibilitychange", A);
1587
+ };
1588
+ }, [v, y]);
1589
+ const q = Ne(async () => {
1590
+ if (!y) return;
1591
+ const A = y.getElementById("conversational-ui-styles");
1592
+ if (!d && A) return A.remove(), void (N.current = !1);
1593
+ if (d && !A) {
1594
+ const $ = await (F = !!L, F ? import("./conversational-v2-styles-C-VtU8rP.js") : import("./conversational-styles-Cz5QI3hV.js"));
1595
+ xe({ document: y, elementId: "conversational-ui-styles", styleString: $.default }), requestAnimationFrame(() => {
1596
+ S();
1597
+ }), N.current = !0;
1598
+ }
1599
+ var F;
1600
+ }, [y, d, S]);
1601
+ j(() => {
1602
+ n(() => o());
1603
+ }, [o, n]), j(() => {
1604
+ q();
1605
+ }, [q, y]);
1606
+ const ne = re(() => vn(r, f), [r, f]), K = Jr(r, w), V = Ne((A) => {
1607
+ p({ data: A, completeSurvey: () => s(J), endCard: i }), hn(y);
1608
+ }, [p, s, i, y]);
1609
+ if (e) {
1610
+ for (const A of e) if (A.questionId === P) {
1611
+ let F;
1612
+ if (M === "multiplechoice") {
1613
+ const $ = O.options.find(({ value: Ue }) => Ue === A.value);
1614
+ if (!$) break;
1615
+ F = { [$.id]: $.value };
1616
+ } else F = A.value;
1617
+ V({ value: F, type: M, questionId: A.questionId });
1618
+ break;
1619
+ }
1620
+ }
1621
+ const oe = !h && ((m == null ? void 0 : m.framePosition) === "center" || (m == null ? void 0 : m.desktopDisplay) === "center-modal" || ((m == null ? void 0 : m.placement) || "").includes("center"));
1622
+ return R("div", { className: Ke("ul-app", Ae(c) ? "ul-app--visible" : "ul-app--overlay"), dir: "auto", id: J, onClick: (A) => {
1623
+ var mt;
1624
+ const F = window.sprigAPI, $ = A.target;
1625
+ if (!F || !$) return;
1626
+ const Ue = [$, $.parentElement];
1627
+ for (const we of Ue) if (((mt = we == null ? void 0 : we.tagName) == null ? void 0 : mt.toLowerCase()) === "a") {
1628
+ A.preventDefault();
1629
+ try {
1630
+ const _e = new URL(we.href);
1631
+ _e.protocol !== "http:" && _e.protocol !== "https:" || (F == null || F.openUrl(_e.toString()));
1632
+ } catch (_e) {
1633
+ console.error(_e);
1634
+ }
1635
+ return;
1636
+ }
1637
+ }, ref: I, style: { "--theme": t, ...a ? { fontFamily: a.replace(";", "") } : {}, ...oe ? { position: "relative" } : {} }, children: R("div", { className: "ul-app__container", children: R("div", { className: Ke(ho("ul-card__container", h, _)), style: { ..._ !== "feedbackButton" || (m == null ? void 0 : m.desktopDisplay) === "center-modal" ? { borderColor: t } : {}, ...(m == null ? void 0 : m.desktopDisplay) === "slider" ? { margin: "0px" } : {} }, children: [R("div", { className: "sprig-container", children: [g && R("div", { className: "ul-header__container", dir: "ltr", children: R("div", { className: "ul-header", children: "For development purposes only" }) }), b && R("div", { className: "ul-header__container", dir: "ltr", children: R("div", { className: "ul-header", children: "Preview Mode: Response will not be recorded." }) }), ye(_) && R(So, {}), R("div", { className: Ke(go("ul-card-main-content", E)), children: R(ue, d ? { fallback: null, children: R(Ro, { cards: r, next: V, previousResponses: K }) } : { fallback: null, children: R(xo, { cards: ne, next: V, previousResponses: K }) }) }), !ye(_) && R(wo, {})] }), !d && R(fo, {})] }) }) });
1638
+ }, fn = () => MediaRecorder.isTypeSupported("video/webm") ? "video/webm" : "video/mp4", ar = (e) => {
1639
+ const t = { audioBitsPerSecond: 128e3, videoBitsPerSecond: 25e5, mimeType: fn() };
1640
+ return new MediaRecorder(e, t);
1641
+ }, ur = (e, t, r) => {
1642
+ r[t] = [], e.ondataavailable = function(o) {
1643
+ r[t].push(o.data);
1644
+ }, e.currentMediaRecordingUid = t, e.start();
1645
+ };
1646
+ function lr(e, t, r, o, n, s) {
1647
+ if (e && e.state !== "inactive") {
1648
+ const { "begin.callback": i } = o, u = e.currentMediaRecordingUid;
1649
+ if (!u) return;
1650
+ i && i(u), e.onstop = () => async function(a, c, d, l, f, p, b) {
1651
+ const m = Z.getState().viewDocument, { "upload.callback": v, "progress.callback": g } = l, _ = { mediaType: d, updatedAt: (/* @__PURE__ */ new Date()).toISOString(), mediaRecordingUid: f, ...l["passthrough.data"] }, C = await (async (y, I) => {
1652
+ var N;
1653
+ const k = await fetch(I, { method: "POST", cache: "no-cache", headers: { "Content-Type": "application/json" }, body: JSON.stringify(y) });
1654
+ if (k.ok) {
1655
+ const E = await k.json();
1656
+ return (N = E == null ? void 0 : E.upload) == null ? void 0 : N.url;
1657
+ }
1658
+ return null;
1659
+ })(_, a);
1660
+ if (!C) return void (v && v(null, { message: "failed to get upload url" }));
1661
+ const w = new Blob(b, { type: fn() });
1662
+ if (!m.defaultView) return;
1663
+ const S = new m.defaultView.File([w], `recording video ${Date.now()}`), h = p.createUpload({ endpoint: C, file: S, chunkSize: 5120 });
1664
+ h.on("error", (y) => {
1665
+ v && v(null, y);
1666
+ }), h.on("progress", (y) => {
1667
+ g && g(f, y);
1668
+ }), h.on("success", () => {
1669
+ v && v(f, !0);
1670
+ });
1671
+ }(t, 0, r, o, u, n, s), e.stop();
1672
+ }
1673
+ }
1674
+ const Ao = { state: { chunks: {} }, stopRecording(e) {
1675
+ const { uploadApiEndpoint: t, avRecorder: r, screenRecorder: o, UpChunk: n } = this.state, s = this.state.avStream && this.state.avStream.getVideoTracks().length > 0 ? "video" : "audio";
1676
+ this.state.chunks && t && n && (r != null && r.currentMediaRecordingUid && lr(r, t, s, e, n, this.state.chunks[r == null ? void 0 : r.currentMediaRecordingUid]), o != null && o.currentMediaRecordingUid && lr(o, t, "screen", e, n, this.state.chunks[o == null ? void 0 : o.currentMediaRecordingUid]));
1677
+ }, handleCancelledStream(e) {
1678
+ const t = e.getVideoTracks(), r = e.getAudioTracks();
1679
+ let o = t.length && t[0];
1680
+ o = o || r.length && r[0], o && o.addEventListener("ended", () => {
1681
+ [this.state.avRecorder, this.state.screenRecorder].map((n) => {
1682
+ n && (n.state === "recording" && n.stop(), n.stream.getTracks().map((s) => {
1683
+ s.readyState === "live" && s.stop();
1684
+ }));
1685
+ }), Object.assign(this.state, { avStream: null, captureStream: null, avRecorder: null, screenRecorder: null });
1686
+ });
1687
+ }, taskDurationMillisecond() {
1688
+ return this.state.startTime ? (/* @__PURE__ */ new Date()).getTime() - this.state.startTime.getTime() : 0;
1689
+ }, setUpChunk(e) {
1690
+ this.state.UpChunk = e;
1691
+ }, configure(e, t) {
1692
+ Object.assign(this.state, t), this.state.uploadApiEndpoint = `${t.apiURL}/2/environments/integrations/upload`, this.state.chunks = {}, e.on("permission.status", this.permissionStatusCallback.bind(this)), e.on("av.permission", async (r) => {
1693
+ this.avPermissionCallback(r);
1694
+ }), e.on("begin.recording", this.beginRecordingCallback.bind(this)), e.on("start.task", this.startTaskCallback.bind(this)), e.on("screen.permission", async (r) => {
1695
+ this.screenPermissionCallback(r);
1696
+ }), e.on("finish.task", async (r) => {
1697
+ this.finishTaskCallback(r);
1698
+ });
1699
+ }, async avPermissionCallback(e) {
1700
+ var o, n, s;
1701
+ const { "stream.ready": t, "permission.descriptors": r } = e;
1702
+ try {
1703
+ (o = this.state.avStream) != null && o.active && (this.state.avStream.getTracks().map((i) => i.readyState === "live" && i.stop()), ((n = this.state.captureStream) == null ? void 0 : n.getAudioTracks().length) === 1 && this.state.captureStream.removeTrack(this.state.captureStream.getAudioTracks()[0])), this.state.avStream = await navigator.mediaDevices.getUserMedia({ video: r.includes("camera"), audio: !0 }), ((s = this.state.captureStream) == null ? void 0 : s.getAudioTracks().length) === 0 && this.state.captureStream.addTrack(this.state.avStream.getAudioTracks()[0]), this.handleCancelledStream(this.state.avStream);
1704
+ } catch (i) {
1705
+ return console.warn("Error: failed to get permissions: " + i), void (t && t(null, null));
1706
+ }
1707
+ t && t(this.state.avStream, this.state.captureStream);
1708
+ }, async screenPermissionCallback(e) {
1709
+ const { "screen.permission.requested": t, "stream.ready.callback": r } = e;
1710
+ t == null || t(!0);
1711
+ try {
1712
+ this.state.captureStream = await navigator.mediaDevices.getDisplayMedia({ video: !0, cursor: "always", displaySurface: "browser", preferCurrentTab: !0 });
1713
+ } catch (o) {
1714
+ return t == null || t(!1), console.warn("Error: failed to get permissions: " + o), void (r && r(null, null));
1715
+ }
1716
+ t == null || t(!1), this.state.avStream && this.state.avStream.getAudioTracks().length > 0 && this.state.captureStream.addTrack(this.state.avStream.getAudioTracks()[0]), this.handleCancelledStream(this.state.captureStream), r && r(this.state.avStream || null, this.state.captureStream);
1717
+ }, beginRecordingCallback(e) {
1718
+ const { "recording.media.types": t, "start.recording.callback": r = () => {
1719
+ } } = e;
1720
+ if (!t) return;
1721
+ const o = [];
1722
+ if (t.includes("video") && this.state.avStream) {
1723
+ this.state.avRecorder = ar(this.state.avStream);
1724
+ const n = gt();
1725
+ ur(this.state.avRecorder, n, this.state.chunks), o.push(n);
1726
+ }
1727
+ if (t.includes("screen") && this.state.captureStream) {
1728
+ this.state.screenRecorder = ar(this.state.captureStream);
1729
+ const n = gt();
1730
+ ur(this.state.screenRecorder, n, this.state.chunks), o.push(n);
1731
+ }
1732
+ o && r && r(o);
1733
+ }, async finishTaskCallback(e) {
1734
+ const { "current.index": t, "task.response": r, "task.complete.callback": o } = e;
1735
+ await this.stopRecording(e), o && o(this.taskDurationMillisecond()), this.state.cards && this.state.hasEndCard !== void 0 && this.lookAheadAndStopStream(t, r, this.state.cards, this.state.hasEndCard);
1736
+ }, startTaskCallback() {
1737
+ this.state.startTime = /* @__PURE__ */ new Date();
1738
+ }, permissionStatusCallback(e) {
1739
+ var o;
1740
+ const { "permission.status.callback": t } = e, r = this.state.avStream;
1741
+ t && t(r, !!r && (r == null ? void 0 : r.getVideoTracks().length) > 0, !!((o = this.state.captureStream) != null && o.active), this.state.captureStream);
1742
+ }, lookAheadAndStopStream(e, t, r, o) {
1743
+ const { avRecorder: n, screenRecorder: s } = this.state, { allResponses: i, surveyVisitorAttributes: u } = Z.getState(), a = tn({ cards: r, index: e, hasEndCard: o, allResponses: i, surveyVisitorAttributes: u });
1744
+ a !== null && r[a].type === "recordedtask" || [n, s].map((c) => {
1745
+ c && (c.state === "recording" && c.stop(), c.stream.getTracks().map((d) => {
1746
+ d.readyState === "live" && d.stop();
1747
+ }));
1748
+ });
1749
+ } }, nt = Object.create(Ao);
1750
+ Object.freeze(nt);
1751
+ const Eo = ({ mode: e = null, viewWindow: t, viewDocument: r, trackPageViewUrl: o }) => {
1752
+ const n = r.documentElement;
1753
+ let s;
1754
+ try {
1755
+ s = t.parent.location.href;
1756
+ } catch {
1757
+ s = t.location.href;
1758
+ }
1759
+ return { mode: e, sw: t.screen.width, sh: t.screen.height, cw: n.clientWidth, ch: n.clientHeight, p: o ?? s, l: t.navigator.language };
1760
+ };
1761
+ let ze = !1;
1762
+ const No = { configure: function(e, t = !0) {
1763
+ var y, I;
1764
+ const { answers: r, apiURL: o, endCard: n, eventEmitFn: s, fontFamilyURL: i, frame: u, previewKey: a, viewDocument: c, viewWindow: d } = e, l = Ae(e.headers) ? e.frame : c.body, f = e.UpChunk || window.UpChunk, p = me, b = ((k, N) => {
1765
+ const E = [...k], L = /* @__PURE__ */ new Set(["videovoice", "recordedtask"]);
1766
+ return k.some((O) => L.has(O.type)) && E.push({ name: -2, props: { routingOptions: [], displayLogic: [] }, type: "uploading" }), N && E.push({ name: -1, props: { routingOptions: [], displayLogic: [] }, type: "thanks" }), E;
1767
+ })(e.cards, !!n), m = Object.fromEntries(b.map((k, N) => [k.name, N])), v = (({ quotas: k, cardIndexByName: N }) => k === void 0 ? [] : k.map((E) => ({ ...E, constraintGroup: E.constraintGroup.map((L) => un(L, N)), quotaMatched: !0 })))({ quotas: e.quotas, cardIndexByName: m });
1768
+ nt.configure(p, { cards: b, hasEndCard: !!n, apiURL: o, UpChunk: f });
1769
+ const g = e.layout === "conversational", _ = (({ cards: k, hasEndCard: N, allResponses: E = [], surveyVisitorAttributes: L = {}, startingQuestionIdx: O = 0 }) => {
1770
+ var ne, K;
1771
+ const M = k.findIndex((V) => V.type === "uploading"), P = ft(k, N, M);
1772
+ let q = Math.min(Math.max(0, O ?? 0), P);
1773
+ for (; q <= P && ((K = (ne = k[q]) == null ? void 0 : ne.props) != null && K.displayLogic) && k[q].props.displayLogic.length > 0; ) {
1774
+ const V = k[q].props.displayLogic || [];
1775
+ if (sn({ displayLogic: V, allResponses: E, cards: k, surveyVisitorAttributes: L })) break;
1776
+ q++;
1777
+ }
1778
+ return Math.min(q, P);
1779
+ })({ cards: b, hasEndCard: !!n, allResponses: [], surveyVisitorAttributes: e.surveyVisitorAttributes ?? {}, startingQuestionIdx: e.startingQuestionIdx }), C = e.useBranding ?? !0 ? e.border : gn;
1780
+ Z.setState({ experimentFlags: e.experimentFlags ?? {}, addResponseGroupMeta: e.addResponseGroupMeta, apiURL: o, answers: r, avatars: e.avatars, border: C, index: _, isConversationalUI: g, cards: b, cardIndexByName: m, configureExitOnOverlayClick: e.configureExitOnOverlayClick, customMetadata: e.customMetadata, enableCspTrustedTypes: e.enableCspTrustedTypes, endCard: e.endCard, envId: e.envId, eventEmitFn: s, fontFamily: e.fontFamily, forceBrandedLogo: e.forceBrandedLogo, frame: u, headers: e.headers, hasViewedEmbed: !1, isPreview: e.previewMode, layout: e.layout, marketingUrl: "https://sprig.com", meta: Eo({ mode: e.mode, viewWindow: d, viewDocument: c, trackPageViewUrl: e.trackPageViewUrl }), mode: e.mode, previewKey: a, productConfig: e.productConfig, quotaEndcardText: void 0, quotaMessages: e.quotaMessages, providerPersona: e.providerPersona ?? void 0, quotas: v, recorder: nt, recorderEventEmitter: p, responseGroupUid: e.responseGroupUid, showProviderPersona: e.showProviderPersona ?? !1, showStripes: e.showStripes, showSurveyBrand: e.showSurveyBrand, showSurveyLogo: e.showSurveyLogo ?? !1, slugName: e.slugName, startingQuestionIdx: e.startingQuestionIdx, styleNonce: e.styleNonce, studyType: e.studyType, surveyId: e.surveyId, surveyVisitorAttributes: e.surveyVisitorAttributes, tabTitle: e.tabTitle, uploadingCardViewed: !1, uploadProgress: {}, useMobileStyling: e.useMobileStyling, useDesktopPrototype: e.useDesktopPrototype, userId: e.userId, viewDocument: e.viewDocument, visitorAttributes: e.visitorAttributes, viewedCardCount: _ });
1781
+ const { head: w } = c;
1782
+ var S;
1783
+ if (xe({ document: c, elementId: "sprig-style", styleString: "" }), (S = !!((y = e.experimentFlags) != null && y["sdk-new-survey-ui"]), S ? import("./index-CMTWNs3h.js") : import("./index-0iqjhKVX.js")).then((k) => {
1784
+ xe({ document: c, elementId: "sprig-style", styleString: k.default });
1785
+ }), e.customStyles && xe({ document: c, elementId: "ul-custom-style", styleString: e.customStyles, nonce: e.styleNonce }), e.fontFamily && i && parent) {
1786
+ const k = c.createElement("link");
1787
+ k.rel = "stylesheet", k.href = i, w.appendChild(k);
1788
+ }
1789
+ const h = s || ((I = u.eventEmitter) == null ? void 0 : I.emit);
1790
+ h == null || h("verify.view.version", { "view.version": "2.48.1" }), l && t && (ze && Te(l), ce(R(Io, {}), l), ze = !0, me.once(H.SurveyClosed, () => {
1791
+ Te(l), ze = !1;
1792
+ }));
1793
+ } }, Bo = Object.freeze(Object.defineProperty({ __proto__: null, default: No }, Symbol.toStringTag, { value: "Module" }));
1794
+ export {
1795
+ jo as A,
1796
+ Fn as B,
1797
+ yo as C,
1798
+ Y as D,
1799
+ Ce as E,
1800
+ re as F,
1801
+ mo as G,
1802
+ Bo as H,
1803
+ ao as M,
1804
+ io as P,
1805
+ bo as S,
1806
+ Ne as T,
1807
+ ee as _,
1808
+ R as a,
1809
+ ho as b,
1810
+ Ke as c,
1811
+ B as d,
1812
+ Fo as e,
1813
+ Ho as f,
1814
+ Do as g,
1815
+ X as h,
1816
+ Kn as i,
1817
+ Cr as j,
1818
+ zn as k,
1819
+ sn as l,
1820
+ pn as m,
1821
+ Co as n,
1822
+ ko as o,
1823
+ j as p,
1824
+ Sr as q,
1825
+ Jr as r,
1826
+ Mo as s,
1827
+ Oo as t,
1828
+ Z as u,
1829
+ To as v,
1830
+ qo as w,
1831
+ Uo as x,
1832
+ Vo as y,
1833
+ Po as z
1834
+ };