@cimulate/copilot-widget 1.10.1 → 1.10.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/messaging.es.js +605 -605
- package/dist/messaging.umd.js +16 -16
- package/package.json +1 -1
package/dist/messaging.es.js
CHANGED
|
@@ -85,8 +85,8 @@ function Lx() {
|
|
|
85
85
|
}, enqueueReplaceState: function() {
|
|
86
86
|
}, enqueueSetState: function() {
|
|
87
87
|
} }, S = Object.assign, x = {};
|
|
88
|
-
function A(D, Z,
|
|
89
|
-
this.props = D, this.context = Z, this.refs = x, this.updater =
|
|
88
|
+
function A(D, Z, N) {
|
|
89
|
+
this.props = D, this.context = Z, this.refs = x, this.updater = N || y;
|
|
90
90
|
}
|
|
91
91
|
A.prototype.isReactComponent = {}, A.prototype.setState = function(D, Z) {
|
|
92
92
|
if (typeof D != "object" && typeof D != "function" && D != null) throw Error("setState(...): takes an object of state variables to update or a function which returns an object of state variables.");
|
|
@@ -94,20 +94,20 @@ function Lx() {
|
|
|
94
94
|
}, A.prototype.forceUpdate = function(D) {
|
|
95
95
|
this.updater.enqueueForceUpdate(this, D, "forceUpdate");
|
|
96
96
|
};
|
|
97
|
-
function
|
|
97
|
+
function C() {
|
|
98
98
|
}
|
|
99
|
-
|
|
100
|
-
function
|
|
101
|
-
this.props = D, this.context = Z, this.refs = x, this.updater =
|
|
99
|
+
C.prototype = A.prototype;
|
|
100
|
+
function k(D, Z, N) {
|
|
101
|
+
this.props = D, this.context = Z, this.refs = x, this.updater = N || y;
|
|
102
102
|
}
|
|
103
|
-
var I =
|
|
104
|
-
I.constructor =
|
|
103
|
+
var I = k.prototype = new C();
|
|
104
|
+
I.constructor = k, S(I, A.prototype), I.isPureReactComponent = !0;
|
|
105
105
|
var z = Array.isArray, Y = Object.prototype.hasOwnProperty, M = { current: null }, G = { key: !0, ref: !0, __self: !0, __source: !0 };
|
|
106
|
-
function pe(D, Z,
|
|
106
|
+
function pe(D, Z, N) {
|
|
107
107
|
var Se, Ie = {}, Ne = null, Fe = null;
|
|
108
108
|
if (Z != null) for (Se in Z.ref !== void 0 && (Fe = Z.ref), Z.key !== void 0 && (Ne = "" + Z.key), Z) Y.call(Z, Se) && !G.hasOwnProperty(Se) && (Ie[Se] = Z[Se]);
|
|
109
109
|
var Ae = arguments.length - 2;
|
|
110
|
-
if (Ae === 1) Ie.children =
|
|
110
|
+
if (Ae === 1) Ie.children = N;
|
|
111
111
|
else if (1 < Ae) {
|
|
112
112
|
for (var ze = Array(Ae), it = 0; it < Ae; it++) ze[it] = arguments[it + 2];
|
|
113
113
|
Ie.children = ze;
|
|
@@ -123,15 +123,15 @@ function Lx() {
|
|
|
123
123
|
}
|
|
124
124
|
function te(D) {
|
|
125
125
|
var Z = { "=": "=0", ":": "=2" };
|
|
126
|
-
return "$" + D.replace(/[=:]/g, function(
|
|
127
|
-
return Z[
|
|
126
|
+
return "$" + D.replace(/[=:]/g, function(N) {
|
|
127
|
+
return Z[N];
|
|
128
128
|
});
|
|
129
129
|
}
|
|
130
130
|
var Q = /\/+/g;
|
|
131
131
|
function ne(D, Z) {
|
|
132
132
|
return typeof D == "object" && D !== null && D.key != null ? te("" + D.key) : Z.toString(36);
|
|
133
133
|
}
|
|
134
|
-
function ie(D, Z,
|
|
134
|
+
function ie(D, Z, N, Se, Ie) {
|
|
135
135
|
var Ne = typeof D;
|
|
136
136
|
(Ne === "undefined" || Ne === "boolean") && (D = null);
|
|
137
137
|
var Fe = !1;
|
|
@@ -148,45 +148,45 @@ function Lx() {
|
|
|
148
148
|
Fe = !0;
|
|
149
149
|
}
|
|
150
150
|
}
|
|
151
|
-
if (Fe) return Fe = D, Ie = Ie(Fe), D = Se === "" ? "." + ne(Fe, 0) : Se, z(Ie) ? (
|
|
151
|
+
if (Fe) return Fe = D, Ie = Ie(Fe), D = Se === "" ? "." + ne(Fe, 0) : Se, z(Ie) ? (N = "", D != null && (N = D.replace(Q, "$&/") + "/"), ie(Ie, Z, N, "", function(it) {
|
|
152
152
|
return it;
|
|
153
|
-
})) : Ie != null && (F(Ie) && (Ie = be(Ie,
|
|
153
|
+
})) : Ie != null && (F(Ie) && (Ie = be(Ie, N + (!Ie.key || Fe && Fe.key === Ie.key ? "" : ("" + Ie.key).replace(Q, "$&/") + "/") + D)), Z.push(Ie)), 1;
|
|
154
154
|
if (Fe = 0, Se = Se === "" ? "." : Se + ":", z(D)) for (var Ae = 0; Ae < D.length; Ae++) {
|
|
155
155
|
Ne = D[Ae];
|
|
156
156
|
var ze = Se + ne(Ne, Ae);
|
|
157
|
-
Fe += ie(Ne, Z,
|
|
157
|
+
Fe += ie(Ne, Z, N, ze, Ie);
|
|
158
158
|
}
|
|
159
|
-
else if (ze = b(D), typeof ze == "function") for (D = ze.call(D), Ae = 0; !(Ne = D.next()).done; ) Ne = Ne.value, ze = Se + ne(Ne, Ae++), Fe += ie(Ne, Z,
|
|
159
|
+
else if (ze = b(D), typeof ze == "function") for (D = ze.call(D), Ae = 0; !(Ne = D.next()).done; ) Ne = Ne.value, ze = Se + ne(Ne, Ae++), Fe += ie(Ne, Z, N, ze, Ie);
|
|
160
160
|
else if (Ne === "object") throw Z = String(D), Error("Objects are not valid as a React child (found: " + (Z === "[object Object]" ? "object with keys {" + Object.keys(D).join(", ") + "}" : Z) + "). If you meant to render a collection of children, use an array instead.");
|
|
161
161
|
return Fe;
|
|
162
162
|
}
|
|
163
|
-
function Te(D, Z,
|
|
163
|
+
function Te(D, Z, N) {
|
|
164
164
|
if (D == null) return D;
|
|
165
165
|
var Se = [], Ie = 0;
|
|
166
166
|
return ie(D, Se, "", "", function(Ne) {
|
|
167
|
-
return Z.call(
|
|
167
|
+
return Z.call(N, Ne, Ie++);
|
|
168
168
|
}), Se;
|
|
169
169
|
}
|
|
170
170
|
function Oe(D) {
|
|
171
171
|
if (D._status === -1) {
|
|
172
172
|
var Z = D._result;
|
|
173
|
-
Z = Z(), Z.then(function(
|
|
174
|
-
(D._status === 0 || D._status === -1) && (D._status = 1, D._result =
|
|
175
|
-
}, function(
|
|
176
|
-
(D._status === 0 || D._status === -1) && (D._status = 2, D._result =
|
|
173
|
+
Z = Z(), Z.then(function(N) {
|
|
174
|
+
(D._status === 0 || D._status === -1) && (D._status = 1, D._result = N);
|
|
175
|
+
}, function(N) {
|
|
176
|
+
(D._status === 0 || D._status === -1) && (D._status = 2, D._result = N);
|
|
177
177
|
}), D._status === -1 && (D._status = 0, D._result = Z);
|
|
178
178
|
}
|
|
179
179
|
if (D._status === 1) return D._result.default;
|
|
180
180
|
throw D._result;
|
|
181
181
|
}
|
|
182
182
|
var fe = { current: null }, W = { transition: null }, se = { ReactCurrentDispatcher: fe, ReactCurrentBatchConfig: W, ReactCurrentOwner: M };
|
|
183
|
-
function
|
|
183
|
+
function v() {
|
|
184
184
|
throw Error("act(...) is not supported in production builds of React.");
|
|
185
185
|
}
|
|
186
|
-
return $e.Children = { map: Te, forEach: function(D, Z,
|
|
186
|
+
return $e.Children = { map: Te, forEach: function(D, Z, N) {
|
|
187
187
|
Te(D, function() {
|
|
188
188
|
Z.apply(this, arguments);
|
|
189
|
-
},
|
|
189
|
+
}, N);
|
|
190
190
|
}, count: function(D) {
|
|
191
191
|
var Z = 0;
|
|
192
192
|
return Te(D, function() {
|
|
@@ -199,7 +199,7 @@ function Lx() {
|
|
|
199
199
|
}, only: function(D) {
|
|
200
200
|
if (!F(D)) throw Error("React.Children.only expected to receive a single React element child.");
|
|
201
201
|
return D;
|
|
202
|
-
} }, $e.Component = A, $e.Fragment = n, $e.Profiler = s, $e.PureComponent =
|
|
202
|
+
} }, $e.Component = A, $e.Fragment = n, $e.Profiler = s, $e.PureComponent = k, $e.StrictMode = r, $e.Suspense = f, $e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED = se, $e.act = v, $e.cloneElement = function(D, Z, N) {
|
|
203
203
|
if (D == null) throw Error("React.cloneElement(...): The argument must be a React element, but you passed " + D + ".");
|
|
204
204
|
var Se = S({}, D.props), Ie = D.key, Ne = D.ref, Fe = D._owner;
|
|
205
205
|
if (Z != null) {
|
|
@@ -207,7 +207,7 @@ function Lx() {
|
|
|
207
207
|
for (ze in Z) Y.call(Z, ze) && !G.hasOwnProperty(ze) && (Se[ze] = Z[ze] === void 0 && Ae !== void 0 ? Ae[ze] : Z[ze]);
|
|
208
208
|
}
|
|
209
209
|
var ze = arguments.length - 2;
|
|
210
|
-
if (ze === 1) Se.children =
|
|
210
|
+
if (ze === 1) Se.children = N;
|
|
211
211
|
else if (1 < ze) {
|
|
212
212
|
Ae = Array(ze);
|
|
213
213
|
for (var it = 0; it < ze; it++) Ae[it] = arguments[it + 2];
|
|
@@ -235,7 +235,7 @@ function Lx() {
|
|
|
235
235
|
} finally {
|
|
236
236
|
W.transition = Z;
|
|
237
237
|
}
|
|
238
|
-
}, $e.unstable_act =
|
|
238
|
+
}, $e.unstable_act = v, $e.useCallback = function(D, Z) {
|
|
239
239
|
return fe.current.useCallback(D, Z);
|
|
240
240
|
}, $e.useContext = function(D) {
|
|
241
241
|
return fe.current.useContext(D);
|
|
@@ -246,22 +246,22 @@ function Lx() {
|
|
|
246
246
|
return fe.current.useEffect(D, Z);
|
|
247
247
|
}, $e.useId = function() {
|
|
248
248
|
return fe.current.useId();
|
|
249
|
-
}, $e.useImperativeHandle = function(D, Z,
|
|
250
|
-
return fe.current.useImperativeHandle(D, Z,
|
|
249
|
+
}, $e.useImperativeHandle = function(D, Z, N) {
|
|
250
|
+
return fe.current.useImperativeHandle(D, Z, N);
|
|
251
251
|
}, $e.useInsertionEffect = function(D, Z) {
|
|
252
252
|
return fe.current.useInsertionEffect(D, Z);
|
|
253
253
|
}, $e.useLayoutEffect = function(D, Z) {
|
|
254
254
|
return fe.current.useLayoutEffect(D, Z);
|
|
255
255
|
}, $e.useMemo = function(D, Z) {
|
|
256
256
|
return fe.current.useMemo(D, Z);
|
|
257
|
-
}, $e.useReducer = function(D, Z,
|
|
258
|
-
return fe.current.useReducer(D, Z,
|
|
257
|
+
}, $e.useReducer = function(D, Z, N) {
|
|
258
|
+
return fe.current.useReducer(D, Z, N);
|
|
259
259
|
}, $e.useRef = function(D) {
|
|
260
260
|
return fe.current.useRef(D);
|
|
261
261
|
}, $e.useState = function(D) {
|
|
262
262
|
return fe.current.useState(D);
|
|
263
|
-
}, $e.useSyncExternalStore = function(D, Z,
|
|
264
|
-
return fe.current.useSyncExternalStore(D, Z,
|
|
263
|
+
}, $e.useSyncExternalStore = function(D, Z, N) {
|
|
264
|
+
return fe.current.useSyncExternalStore(D, Z, N);
|
|
265
265
|
}, $e.useTransition = function() {
|
|
266
266
|
return fe.current.useTransition();
|
|
267
267
|
}, $e.version = "18.3.1", $e;
|
|
@@ -3690,8 +3690,8 @@ function Xl(e, t, n) {
|
|
|
3690
3690
|
indexes: !1
|
|
3691
3691
|
},
|
|
3692
3692
|
!1,
|
|
3693
|
-
function(A,
|
|
3694
|
-
return !j.isUndefined(
|
|
3693
|
+
function(A, C) {
|
|
3694
|
+
return !j.isUndefined(C[A]);
|
|
3695
3695
|
}
|
|
3696
3696
|
);
|
|
3697
3697
|
const r = n.metaTokens, s = n.visitor || E, a = n.dots, u = n.indexes, c = n.Blob || typeof Blob != "undefined" && Blob, f = n.maxDepth === void 0 ? 100 : n.maxDepth, h = c && j.isSpecCompliantForm(t);
|
|
@@ -3707,15 +3707,15 @@ function Xl(e, t, n) {
|
|
|
3707
3707
|
throw new ve("Blob is not supported. Use a Buffer instead.");
|
|
3708
3708
|
return j.isArrayBuffer(x) || j.isTypedArray(x) ? h && typeof Blob == "function" ? new Blob([x]) : Buffer.from(x) : x;
|
|
3709
3709
|
}
|
|
3710
|
-
function E(x, A,
|
|
3711
|
-
let
|
|
3710
|
+
function E(x, A, C) {
|
|
3711
|
+
let k = x;
|
|
3712
3712
|
if (j.isReactNative(t) && j.isReactNativeBlob(x))
|
|
3713
|
-
return t.append(Sd(
|
|
3714
|
-
if (x && !
|
|
3713
|
+
return t.append(Sd(C, A, a), p(x)), !1;
|
|
3714
|
+
if (x && !C && typeof x == "object") {
|
|
3715
3715
|
if (j.endsWith(A, "{}"))
|
|
3716
3716
|
A = r ? A : A.slice(0, -2), x = JSON.stringify(x);
|
|
3717
|
-
else if (j.isArray(x) && UC(x) || (j.isFileList(x) || j.endsWith(A, "[]")) && (
|
|
3718
|
-
return A = qy(A),
|
|
3717
|
+
else if (j.isArray(x) && UC(x) || (j.isFileList(x) || j.endsWith(A, "[]")) && (k = j.toArray(x)))
|
|
3718
|
+
return A = qy(A), k.forEach(function(z, Y) {
|
|
3719
3719
|
!(j.isUndefined(z) || z === null) && t.append(
|
|
3720
3720
|
// eslint-disable-next-line no-nested-ternary
|
|
3721
3721
|
u === !0 ? Sd([A], Y, a) : u === null ? A : A + "[]",
|
|
@@ -3723,24 +3723,24 @@ function Xl(e, t, n) {
|
|
|
3723
3723
|
);
|
|
3724
3724
|
}), !1;
|
|
3725
3725
|
}
|
|
3726
|
-
return ch(x) ? !0 : (t.append(Sd(
|
|
3726
|
+
return ch(x) ? !0 : (t.append(Sd(C, A, a), p(x)), !1);
|
|
3727
3727
|
}
|
|
3728
3728
|
const b = [], y = Object.assign(HC, {
|
|
3729
3729
|
defaultVisitor: E,
|
|
3730
3730
|
convertValue: p,
|
|
3731
3731
|
isVisitable: ch
|
|
3732
3732
|
});
|
|
3733
|
-
function S(x, A,
|
|
3733
|
+
function S(x, A, C = 0) {
|
|
3734
3734
|
if (!j.isUndefined(x)) {
|
|
3735
|
-
if (
|
|
3735
|
+
if (C > f)
|
|
3736
3736
|
throw new ve(
|
|
3737
|
-
"Object is too deeply nested (" +
|
|
3737
|
+
"Object is too deeply nested (" + C + " levels). Max depth: " + f,
|
|
3738
3738
|
ve.ERR_FORM_DATA_DEPTH_EXCEEDED
|
|
3739
3739
|
);
|
|
3740
3740
|
if (b.indexOf(x) !== -1)
|
|
3741
3741
|
throw Error("Circular reference detected in " + A.join("."));
|
|
3742
3742
|
b.push(x), j.forEach(x, function(I, z) {
|
|
3743
|
-
(!(j.isUndefined(I) || I === null) && s.call(t, I, j.isString(z) ? z.trim() : z, A, y)) === !0 && S(I, A ? A.concat(z) : [z],
|
|
3743
|
+
(!(j.isUndefined(I) || I === null) && s.call(t, I, j.isString(z) ? z.trim() : z, A, y)) === !0 && S(I, A ? A.concat(z) : [z], C + 1);
|
|
3744
3744
|
}), b.pop();
|
|
3745
3745
|
}
|
|
3746
3746
|
}
|
|
@@ -4250,7 +4250,7 @@ const lv = (e) => encodeURIComponent(e).replace(
|
|
|
4250
4250
|
}
|
|
4251
4251
|
let A = new XMLHttpRequest();
|
|
4252
4252
|
A.open(s.method.toUpperCase(), s.url, !0), A.timeout = s.timeout;
|
|
4253
|
-
function
|
|
4253
|
+
function C() {
|
|
4254
4254
|
if (!A)
|
|
4255
4255
|
return;
|
|
4256
4256
|
const I = Qt.from(
|
|
@@ -4273,8 +4273,8 @@ const lv = (e) => encodeURIComponent(e).replace(
|
|
|
4273
4273
|
Y
|
|
4274
4274
|
), A = null;
|
|
4275
4275
|
}
|
|
4276
|
-
"onloadend" in A ? A.onloadend =
|
|
4277
|
-
!A || A.readyState !== 4 || A.status === 0 && !(A.responseURL && A.responseURL.startsWith("file:")) || setTimeout(
|
|
4276
|
+
"onloadend" in A ? A.onloadend = C : A.onreadystatechange = function() {
|
|
4277
|
+
!A || A.readyState !== 4 || A.status === 0 && !(A.responseURL && A.responseURL.startsWith("file:")) || setTimeout(C);
|
|
4278
4278
|
}, A.onabort = function() {
|
|
4279
4279
|
A && (r(new ve("Request aborted", ve.ECONNABORTED, e, A)), x(), A = null);
|
|
4280
4280
|
}, A.onerror = function(z) {
|
|
@@ -4296,11 +4296,11 @@ const lv = (e) => encodeURIComponent(e).replace(
|
|
|
4296
4296
|
}), j.isUndefined(s.withCredentials) || (A.withCredentials = !!s.withCredentials), c && c !== "json" && (A.responseType = s.responseType), h && ([b, S] = Il(h, !0), A.addEventListener("progress", b)), f && A.upload && ([E, y] = Il(f), A.upload.addEventListener("progress", E), A.upload.addEventListener("loadend", y)), (s.cancelToken || s.signal) && (p = (I) => {
|
|
4297
4297
|
A && (r(!I || I.type ? new Na(null, e, A) : I), A.abort(), x(), A = null);
|
|
4298
4298
|
}, s.cancelToken && s.cancelToken.subscribe(p), s.signal && (s.signal.aborted ? p() : s.signal.addEventListener("abort", p)));
|
|
4299
|
-
const
|
|
4300
|
-
if (
|
|
4299
|
+
const k = ev(s.url);
|
|
4300
|
+
if (k && !zt.protocols.includes(k)) {
|
|
4301
4301
|
r(
|
|
4302
4302
|
new ve(
|
|
4303
|
-
"Unsupported protocol " +
|
|
4303
|
+
"Unsupported protocol " + k + ":",
|
|
4304
4304
|
ve.ERR_BAD_REQUEST,
|
|
4305
4305
|
e
|
|
4306
4306
|
)
|
|
@@ -4473,54 +4473,54 @@ const tp = "1.16.1", o1 = 64 * 1024, { isFunction: rl } = j, a1 = (e, ...t) => {
|
|
|
4473
4473
|
const { fetch: s, Request: a, Response: u } = e, c = s ? rl(s) : typeof fetch == "function", f = rl(a), h = rl(u);
|
|
4474
4474
|
if (!c)
|
|
4475
4475
|
return !1;
|
|
4476
|
-
const p = c && rl(n), E = c && (typeof r == "function" ? /* @__PURE__ */ ((
|
|
4477
|
-
return new Uint8Array(yield new a(
|
|
4476
|
+
const p = c && rl(n), E = c && (typeof r == "function" ? /* @__PURE__ */ ((C) => (k) => C.encode(k))(new r()) : (C) => Ue(null, null, function* () {
|
|
4477
|
+
return new Uint8Array(yield new a(C).arrayBuffer());
|
|
4478
4478
|
})), b = f && p && a1(() => {
|
|
4479
|
-
let
|
|
4480
|
-
const
|
|
4479
|
+
let C = !1;
|
|
4480
|
+
const k = new a(zt.origin, {
|
|
4481
4481
|
body: new n(),
|
|
4482
4482
|
method: "POST",
|
|
4483
4483
|
get duplex() {
|
|
4484
|
-
return
|
|
4484
|
+
return C = !0, "half";
|
|
4485
4485
|
}
|
|
4486
|
-
}), I =
|
|
4487
|
-
return
|
|
4486
|
+
}), I = k.headers.has("Content-Type");
|
|
4487
|
+
return k.body != null && k.body.cancel(), C && !I;
|
|
4488
4488
|
}), y = h && p && a1(() => j.isReadableStream(new u("").body)), S = {
|
|
4489
|
-
stream: y && ((
|
|
4489
|
+
stream: y && ((C) => C.body)
|
|
4490
4490
|
};
|
|
4491
|
-
c && ["text", "arrayBuffer", "blob", "formData", "stream"].forEach((
|
|
4492
|
-
!S[
|
|
4493
|
-
let z =
|
|
4491
|
+
c && ["text", "arrayBuffer", "blob", "formData", "stream"].forEach((C) => {
|
|
4492
|
+
!S[C] && (S[C] = (k, I) => {
|
|
4493
|
+
let z = k && k[C];
|
|
4494
4494
|
if (z)
|
|
4495
|
-
return z.call(
|
|
4495
|
+
return z.call(k);
|
|
4496
4496
|
throw new ve(
|
|
4497
|
-
`Response type '${
|
|
4497
|
+
`Response type '${C}' is not supported`,
|
|
4498
4498
|
ve.ERR_NOT_SUPPORT,
|
|
4499
4499
|
I
|
|
4500
4500
|
);
|
|
4501
4501
|
});
|
|
4502
4502
|
});
|
|
4503
|
-
const x = (
|
|
4504
|
-
if (
|
|
4503
|
+
const x = (C) => Ue(null, null, function* () {
|
|
4504
|
+
if (C == null)
|
|
4505
4505
|
return 0;
|
|
4506
|
-
if (j.isBlob(
|
|
4507
|
-
return
|
|
4508
|
-
if (j.isSpecCompliantForm(
|
|
4506
|
+
if (j.isBlob(C))
|
|
4507
|
+
return C.size;
|
|
4508
|
+
if (j.isSpecCompliantForm(C))
|
|
4509
4509
|
return (yield new a(zt.origin, {
|
|
4510
4510
|
method: "POST",
|
|
4511
|
-
body:
|
|
4511
|
+
body: C
|
|
4512
4512
|
}).arrayBuffer()).byteLength;
|
|
4513
|
-
if (j.isArrayBufferView(
|
|
4514
|
-
return
|
|
4515
|
-
if (j.isURLSearchParams(
|
|
4516
|
-
return (yield E(
|
|
4517
|
-
}), A = (
|
|
4518
|
-
const I = j.toFiniteNumber(
|
|
4519
|
-
return I == null ? x(
|
|
4513
|
+
if (j.isArrayBufferView(C) || j.isArrayBuffer(C))
|
|
4514
|
+
return C.byteLength;
|
|
4515
|
+
if (j.isURLSearchParams(C) && (C = C + ""), j.isString(C))
|
|
4516
|
+
return (yield E(C)).byteLength;
|
|
4517
|
+
}), A = (C, k) => Ue(null, null, function* () {
|
|
4518
|
+
const I = j.toFiniteNumber(C.getContentLength());
|
|
4519
|
+
return I == null ? x(k) : I;
|
|
4520
4520
|
});
|
|
4521
|
-
return (
|
|
4521
|
+
return (C) => Ue(null, null, function* () {
|
|
4522
4522
|
let {
|
|
4523
|
-
url:
|
|
4523
|
+
url: k,
|
|
4524
4524
|
method: I,
|
|
4525
4525
|
data: z,
|
|
4526
4526
|
signal: Y,
|
|
@@ -4534,25 +4534,25 @@ const tp = "1.16.1", o1 = 64 * 1024, { isFunction: rl } = j, a1 = (e, ...t) => {
|
|
|
4534
4534
|
fetchOptions: ne,
|
|
4535
4535
|
maxContentLength: ie,
|
|
4536
4536
|
maxBodyLength: Te
|
|
4537
|
-
} = Jy(
|
|
4537
|
+
} = Jy(C);
|
|
4538
4538
|
const Oe = j.isNumber(ie) && ie > -1, fe = j.isNumber(Te) && Te > -1;
|
|
4539
4539
|
let W = s || fetch;
|
|
4540
4540
|
F = F ? (F + "").toLowerCase() : "text";
|
|
4541
4541
|
let se = dv(
|
|
4542
4542
|
[Y, M && M.toAbortSignal()],
|
|
4543
4543
|
G
|
|
4544
|
-
),
|
|
4544
|
+
), v = null;
|
|
4545
4545
|
const D = se && se.unsubscribe && (() => {
|
|
4546
4546
|
se.unsubscribe();
|
|
4547
4547
|
});
|
|
4548
4548
|
let Z;
|
|
4549
4549
|
try {
|
|
4550
|
-
if (Oe && typeof
|
|
4550
|
+
if (Oe && typeof k == "string" && k.startsWith("data:") && gv(k) > ie)
|
|
4551
4551
|
throw new ve(
|
|
4552
4552
|
"maxContentLength size of " + ie + " exceeded",
|
|
4553
4553
|
ve.ERR_BAD_RESPONSE,
|
|
4554
|
-
|
|
4555
|
-
|
|
4554
|
+
C,
|
|
4555
|
+
v
|
|
4556
4556
|
);
|
|
4557
4557
|
if (fe && I !== "get" && I !== "head") {
|
|
4558
4558
|
const Ae = yield A(te, z);
|
|
@@ -4560,12 +4560,12 @@ const tp = "1.16.1", o1 = 64 * 1024, { isFunction: rl } = j, a1 = (e, ...t) => {
|
|
|
4560
4560
|
throw new ve(
|
|
4561
4561
|
"Request body larger than maxBodyLength limit",
|
|
4562
4562
|
ve.ERR_BAD_REQUEST,
|
|
4563
|
-
|
|
4564
|
-
|
|
4563
|
+
C,
|
|
4564
|
+
v
|
|
4565
4565
|
);
|
|
4566
4566
|
}
|
|
4567
4567
|
if (be && b && I !== "get" && I !== "head" && (Z = yield A(te, z)) !== 0) {
|
|
4568
|
-
let Ae = new a(
|
|
4568
|
+
let Ae = new a(k, {
|
|
4569
4569
|
method: "POST",
|
|
4570
4570
|
body: z,
|
|
4571
4571
|
duplex: "half"
|
|
@@ -4579,7 +4579,7 @@ const tp = "1.16.1", o1 = 64 * 1024, { isFunction: rl } = j, a1 = (e, ...t) => {
|
|
|
4579
4579
|
}
|
|
4580
4580
|
}
|
|
4581
4581
|
j.isString(Q) || (Q = Q ? "include" : "omit");
|
|
4582
|
-
const
|
|
4582
|
+
const N = f && "credentials" in a.prototype;
|
|
4583
4583
|
if (j.isFormData(z)) {
|
|
4584
4584
|
const Ae = te.getContentType();
|
|
4585
4585
|
Ae && /^multipart\/form-data/i.test(Ae) && !/boundary=/i.test(Ae) && te.delete("content-type");
|
|
@@ -4591,18 +4591,18 @@ const tp = "1.16.1", o1 = 64 * 1024, { isFunction: rl } = j, a1 = (e, ...t) => {
|
|
|
4591
4591
|
headers: $y(te.normalize()),
|
|
4592
4592
|
body: z,
|
|
4593
4593
|
duplex: "half",
|
|
4594
|
-
credentials:
|
|
4594
|
+
credentials: N ? Q : void 0
|
|
4595
4595
|
});
|
|
4596
|
-
|
|
4597
|
-
let Ie = yield f ? W(
|
|
4596
|
+
v = f && new a(k, Se);
|
|
4597
|
+
let Ie = yield f ? W(v, ne) : W(k, Se);
|
|
4598
4598
|
if (Oe) {
|
|
4599
4599
|
const Ae = j.toFiniteNumber(Ie.headers.get("content-length"));
|
|
4600
4600
|
if (Ae != null && Ae > ie)
|
|
4601
4601
|
throw new ve(
|
|
4602
4602
|
"maxContentLength size of " + ie + " exceeded",
|
|
4603
4603
|
ve.ERR_BAD_RESPONSE,
|
|
4604
|
-
|
|
4605
|
-
|
|
4604
|
+
C,
|
|
4605
|
+
v
|
|
4606
4606
|
);
|
|
4607
4607
|
}
|
|
4608
4608
|
const Ne = y && (F === "stream" || F === "response");
|
|
@@ -4621,8 +4621,8 @@ const tp = "1.16.1", o1 = 64 * 1024, { isFunction: rl } = j, a1 = (e, ...t) => {
|
|
|
4621
4621
|
throw new ve(
|
|
4622
4622
|
"maxContentLength size of " + ie + " exceeded",
|
|
4623
4623
|
ve.ERR_BAD_RESPONSE,
|
|
4624
|
-
|
|
4625
|
-
|
|
4624
|
+
C,
|
|
4625
|
+
v
|
|
4626
4626
|
);
|
|
4627
4627
|
it && it(Ln);
|
|
4628
4628
|
};
|
|
@@ -4636,7 +4636,7 @@ const tp = "1.16.1", o1 = 64 * 1024, { isFunction: rl } = j, a1 = (e, ...t) => {
|
|
|
4636
4636
|
F = F || "text";
|
|
4637
4637
|
let Fe = yield S[j.findKey(S, F) || "text"](
|
|
4638
4638
|
Ie,
|
|
4639
|
-
|
|
4639
|
+
C
|
|
4640
4640
|
);
|
|
4641
4641
|
if (Oe && !y && !Ne) {
|
|
4642
4642
|
let Ae;
|
|
@@ -4644,8 +4644,8 @@ const tp = "1.16.1", o1 = 64 * 1024, { isFunction: rl } = j, a1 = (e, ...t) => {
|
|
|
4644
4644
|
throw new ve(
|
|
4645
4645
|
"maxContentLength size of " + ie + " exceeded",
|
|
4646
4646
|
ve.ERR_BAD_RESPONSE,
|
|
4647
|
-
|
|
4648
|
-
|
|
4647
|
+
C,
|
|
4648
|
+
v
|
|
4649
4649
|
);
|
|
4650
4650
|
}
|
|
4651
4651
|
return !Ne && D && D(), yield new Promise((Ae, ze) => {
|
|
@@ -4654,27 +4654,27 @@ const tp = "1.16.1", o1 = 64 * 1024, { isFunction: rl } = j, a1 = (e, ...t) => {
|
|
|
4654
4654
|
headers: Qt.from(Ie.headers),
|
|
4655
4655
|
status: Ie.status,
|
|
4656
4656
|
statusText: Ie.statusText,
|
|
4657
|
-
config:
|
|
4658
|
-
request:
|
|
4657
|
+
config: C,
|
|
4658
|
+
request: v
|
|
4659
4659
|
});
|
|
4660
4660
|
});
|
|
4661
|
-
} catch (
|
|
4661
|
+
} catch (N) {
|
|
4662
4662
|
if (D && D(), se && se.aborted && se.reason instanceof ve) {
|
|
4663
4663
|
const Se = se.reason;
|
|
4664
|
-
throw Se.config =
|
|
4664
|
+
throw Se.config = C, v && (Se.request = v), N !== Se && (Se.cause = N), Se;
|
|
4665
4665
|
}
|
|
4666
|
-
throw
|
|
4666
|
+
throw N && N.name === "TypeError" && /Load failed|fetch/i.test(N.message) ? Object.assign(
|
|
4667
4667
|
new ve(
|
|
4668
4668
|
"Network Error",
|
|
4669
4669
|
ve.ERR_NETWORK,
|
|
4670
|
-
v,
|
|
4671
4670
|
C,
|
|
4672
|
-
|
|
4671
|
+
v,
|
|
4672
|
+
N && N.response
|
|
4673
4673
|
),
|
|
4674
4674
|
{
|
|
4675
|
-
cause:
|
|
4675
|
+
cause: N.cause || N
|
|
4676
4676
|
}
|
|
4677
|
-
) : ve.from(
|
|
4677
|
+
) : ve.from(N, N && N.code, C, v, N && N.response);
|
|
4678
4678
|
}
|
|
4679
4679
|
});
|
|
4680
4680
|
}, yv = /* @__PURE__ */ new Map(), Zy = (e) => {
|
|
@@ -5323,8 +5323,8 @@ const kv = {
|
|
|
5323
5323
|
componentConfig: S,
|
|
5324
5324
|
conversationHistory: x,
|
|
5325
5325
|
resetConversationMessage: A = "",
|
|
5326
|
-
apiKey:
|
|
5327
|
-
apiToken:
|
|
5326
|
+
apiKey: C,
|
|
5327
|
+
apiToken: k,
|
|
5328
5328
|
baseUrl: I,
|
|
5329
5329
|
customerId: z,
|
|
5330
5330
|
tenantId: Y,
|
|
@@ -5333,7 +5333,7 @@ const kv = {
|
|
|
5333
5333
|
__features: pe,
|
|
5334
5334
|
children: be
|
|
5335
5335
|
}) => {
|
|
5336
|
-
const F = e === "messaging", te = X.useMemo(() => F ? { config: null } : new vv(I,
|
|
5336
|
+
const F = e === "messaging", te = X.useMemo(() => F ? { config: null } : new vv(I, C, k, G, z, Y), [F, I, C, k, G, z, Y]), Q = X.useMemo(() => new wv(G), [G]);
|
|
5337
5337
|
X.useEffect(() => {
|
|
5338
5338
|
F || !te || te.config || te.getConfig();
|
|
5339
5339
|
}, [te, F]);
|
|
@@ -5710,14 +5710,14 @@ function Wv(e) {
|
|
|
5710
5710
|
X.useEffect(() => {
|
|
5711
5711
|
const A = Bv(t, n);
|
|
5712
5712
|
a.current = A, c.current = null;
|
|
5713
|
-
const
|
|
5713
|
+
const C = Hv(
|
|
5714
5714
|
A,
|
|
5715
5715
|
() => {
|
|
5716
|
-
const
|
|
5717
|
-
if (!
|
|
5716
|
+
const k = u.current;
|
|
5717
|
+
if (!k) return null;
|
|
5718
5718
|
const I = f1(t, n, f);
|
|
5719
5719
|
return {
|
|
5720
|
-
conversationId:
|
|
5720
|
+
conversationId: k,
|
|
5721
5721
|
continuationToken: I == null ? void 0 : I.accessToken,
|
|
5722
5722
|
lastEventId: I == null ? void 0 : I.lastEventId
|
|
5723
5723
|
};
|
|
@@ -5727,26 +5727,26 @@ function Wv(e) {
|
|
|
5727
5727
|
}
|
|
5728
5728
|
);
|
|
5729
5729
|
return () => {
|
|
5730
|
-
|
|
5730
|
+
C(), jv(A), a.current = null;
|
|
5731
5731
|
};
|
|
5732
5732
|
}, [t, n, f]);
|
|
5733
5733
|
const p = X.useCallback(
|
|
5734
5734
|
(A) => Ue(null, null, function* () {
|
|
5735
|
-
let
|
|
5736
|
-
if (!
|
|
5737
|
-
const
|
|
5738
|
-
|
|
5735
|
+
let C = Lv(t, n, f);
|
|
5736
|
+
if (!C) {
|
|
5737
|
+
const k = yield h();
|
|
5738
|
+
k && !hh(k.storedAt, f) && (C = k);
|
|
5739
5739
|
}
|
|
5740
|
-
if (!
|
|
5741
|
-
const
|
|
5742
|
-
return Xo(t, n,
|
|
5740
|
+
if (!C) {
|
|
5741
|
+
const k = yield A.createConversation(r);
|
|
5742
|
+
return Xo(t, n, k), u.current = k, { conversationId: k, restoredMessages: [], resumed: !1 };
|
|
5743
5743
|
}
|
|
5744
5744
|
try {
|
|
5745
|
-
const
|
|
5746
|
-
conversationId:
|
|
5747
|
-
startTimestamp:
|
|
5745
|
+
const k = Date.now() - f, z = (yield A.listConversations({
|
|
5746
|
+
conversationId: C.conversationId,
|
|
5747
|
+
startTimestamp: k
|
|
5748
5748
|
})).conversations.find(
|
|
5749
|
-
(M) => M.conversationId ===
|
|
5749
|
+
(M) => M.conversationId === C.conversationId && !M.isConversationClosed
|
|
5750
5750
|
);
|
|
5751
5751
|
if (!z) {
|
|
5752
5752
|
il(t, n);
|
|
@@ -5758,7 +5758,7 @@ function Wv(e) {
|
|
|
5758
5758
|
try {
|
|
5759
5759
|
const M = yield A.listConversationEntries(z.conversationId, {
|
|
5760
5760
|
limit: s.limit,
|
|
5761
|
-
startTimestamp:
|
|
5761
|
+
startTimestamp: k,
|
|
5762
5762
|
direction: "FromStart"
|
|
5763
5763
|
});
|
|
5764
5764
|
Y = Yv(M.conversationEntries);
|
|
@@ -5769,7 +5769,7 @@ function Wv(e) {
|
|
|
5769
5769
|
restoredMessages: Y,
|
|
5770
5770
|
resumed: !0
|
|
5771
5771
|
};
|
|
5772
|
-
} catch (
|
|
5772
|
+
} catch (k) {
|
|
5773
5773
|
il(t, n);
|
|
5774
5774
|
const I = yield A.createConversation(r);
|
|
5775
5775
|
return Xo(t, n, I), u.current = I, { conversationId: I, restoredMessages: [], resumed: !1 };
|
|
@@ -5798,9 +5798,9 @@ function Wv(e) {
|
|
|
5798
5798
|
}), [f, h]), x = X.useCallback(
|
|
5799
5799
|
(A) => Ue(null, null, function* () {
|
|
5800
5800
|
try {
|
|
5801
|
-
const { accessToken:
|
|
5802
|
-
Dv(t, n,
|
|
5803
|
-
} catch (
|
|
5801
|
+
const { accessToken: C, lastEventId: k } = yield A.generateContinuationToken();
|
|
5802
|
+
Dv(t, n, C, k);
|
|
5803
|
+
} catch (C) {
|
|
5804
5804
|
}
|
|
5805
5805
|
}),
|
|
5806
5806
|
[t, n]
|
|
@@ -5837,8 +5837,8 @@ const Qv = ({
|
|
|
5837
5837
|
esDeveloperName: n,
|
|
5838
5838
|
routingAttributes: r,
|
|
5839
5839
|
conversationHistory: E
|
|
5840
|
-
}), x = X.useRef(null), A = X.useRef(c),
|
|
5841
|
-
A.current = c,
|
|
5840
|
+
}), x = X.useRef(null), A = X.useRef(c), C = X.useRef(f), k = X.useRef(u), I = X.useRef(!1), z = X.useRef(0);
|
|
5841
|
+
A.current = c, C.current = f, k.current = u, X.useEffect(() => {
|
|
5842
5842
|
const F = new LA({
|
|
5843
5843
|
baseURL: e,
|
|
5844
5844
|
orgId: t,
|
|
@@ -5849,7 +5849,7 @@ const Qv = ({
|
|
|
5849
5849
|
});
|
|
5850
5850
|
return x.current = F, F.on("connected", () => {
|
|
5851
5851
|
var Q;
|
|
5852
|
-
y({ type: "SET_CONNECTION_STATUS", status: "connected" }), (Q =
|
|
5852
|
+
y({ type: "SET_CONNECTION_STATUS", status: "connected" }), (Q = k.current) == null || Q.call(k);
|
|
5853
5853
|
}), F.on("disconnected", () => {
|
|
5854
5854
|
y({ type: "SET_CONNECTION_STATUS", status: "disconnected" });
|
|
5855
5855
|
}), F.on("reconnecting", () => {
|
|
@@ -5881,7 +5881,7 @@ const Qv = ({
|
|
|
5881
5881
|
var ne;
|
|
5882
5882
|
if (y({ type: "SET_ROUTING_RESULT", result: Q }), !Q.isSuccessful) {
|
|
5883
5883
|
const ie = `Routing failed: ${Q.failureType || "unknown"}`;
|
|
5884
|
-
y({ type: "SET_ERROR", error: ie }), (ne =
|
|
5884
|
+
y({ type: "SET_ERROR", error: ie }), (ne = C.current) == null || ne.call(C, ie);
|
|
5885
5885
|
}
|
|
5886
5886
|
}), F.on("participant_changed", (Q) => {
|
|
5887
5887
|
if (Q.participant.name === "Automated Process") return;
|
|
@@ -5908,7 +5908,7 @@ const Qv = ({
|
|
|
5908
5908
|
M.current();
|
|
5909
5909
|
return;
|
|
5910
5910
|
}
|
|
5911
|
-
y({ type: "SET_ERROR", error: Q.message }), Q.recoverable || y({ type: "SET_CONNECTION_STATUS", status: "error" }), (ne =
|
|
5911
|
+
y({ type: "SET_ERROR", error: Q.message }), Q.recoverable || y({ type: "SET_CONNECTION_STATUS", status: "error" }), (ne = C.current) == null || ne.call(C, Q.message);
|
|
5912
5912
|
}), y({ type: "SET_CONNECTION_STATUS", status: "connecting" }), Ue(null, null, function* () {
|
|
5913
5913
|
let Q = S.getStoredConnectOptions(), ne = !1;
|
|
5914
5914
|
Q || (Q = yield S.getPeerConnectOptions(), ne = !!Q);
|
|
@@ -5925,7 +5925,7 @@ const Qv = ({
|
|
|
5925
5925
|
y({ type: "SET_CONVERSATION_ID", id: ie.conversationId }), ie.resumed && ie.restoredMessages.length > 0 && y({ type: "LOAD_HISTORY", messages: ie.restoredMessages });
|
|
5926
5926
|
}).catch((Q) => {
|
|
5927
5927
|
var ne;
|
|
5928
|
-
y({ type: "SET_CONNECTION_STATUS", status: "error" }), y({ type: "SET_ERROR", error: Q.message }), (ne =
|
|
5928
|
+
y({ type: "SET_CONNECTION_STATUS", status: "error" }), y({ type: "SET_ERROR", error: Q.message }), (ne = C.current) == null || ne.call(C, Q.message);
|
|
5929
5929
|
}), () => {
|
|
5930
5930
|
F.disconnect(), F.off(), x.current = null;
|
|
5931
5931
|
};
|
|
@@ -5957,7 +5957,7 @@ const Qv = ({
|
|
|
5957
5957
|
y({ type: "SET_CONVERSATION_ID", id: ne }), y({ type: "SET_CONNECTION_STATUS", status: "connected" }), S.persistConversationId(ne), F && (y({ type: "SET_LOADING", isLoading: !0 }), y({ type: "SET_PROGRESS_MESSAGE", message: "" }), yield te.sendMessage(F));
|
|
5958
5958
|
} catch (ne) {
|
|
5959
5959
|
const ie = ne instanceof Error ? ne.message : String(ne);
|
|
5960
|
-
y({ type: "SET_ERROR", error: ie }), y({ type: "SET_CONNECTION_STATUS", status: "error" }), (Q =
|
|
5960
|
+
y({ type: "SET_ERROR", error: ie }), y({ type: "SET_CONNECTION_STATUS", status: "error" }), (Q = C.current) == null || Q.call(C, ie);
|
|
5961
5961
|
} finally {
|
|
5962
5962
|
I.current = !1;
|
|
5963
5963
|
}
|
|
@@ -5982,7 +5982,7 @@ const Qv = ({
|
|
|
5982
5982
|
M.current(F);
|
|
5983
5983
|
return;
|
|
5984
5984
|
}
|
|
5985
|
-
y({ type: "SET_ERROR", error: ne.message }), (ie =
|
|
5985
|
+
y({ type: "SET_ERROR", error: ne.message }), (ie = C.current) == null || ie.call(C, ne.message);
|
|
5986
5986
|
});
|
|
5987
5987
|
}, []), pe = X.useCallback(() => {
|
|
5988
5988
|
const F = x.current;
|
|
@@ -5992,7 +5992,7 @@ const Qv = ({
|
|
|
5992
5992
|
y({ type: "SET_CONVERSATION_ID", id: te }), y({ type: "SET_CONNECTION_STATUS", status: "connected" }), S.persistConversationId(te);
|
|
5993
5993
|
}).catch((te) => {
|
|
5994
5994
|
var Q;
|
|
5995
|
-
y({ type: "SET_ERROR", error: te.message }), y({ type: "SET_CONNECTION_STATUS", status: "error" }), (Q =
|
|
5995
|
+
y({ type: "SET_ERROR", error: te.message }), y({ type: "SET_CONNECTION_STATUS", status: "error" }), (Q = C.current) == null || Q.call(C, te.message);
|
|
5996
5996
|
}));
|
|
5997
5997
|
}, [r, S]), be = X.useMemo(
|
|
5998
5998
|
() => ({
|
|
@@ -6241,7 +6241,7 @@ const Je = new cw(), aT = X.createContext({
|
|
|
6241
6241
|
type: n || Je.statusProxy.type,
|
|
6242
6242
|
isOpen: Je.statusProxy.isOpen,
|
|
6243
6243
|
isMinimized: Je.statusProxy.isMinimized
|
|
6244
|
-
}), [p, E] = X.useState(Je.dialogProxy.position), [b, y] = X.useState(Je.dialogProxy.isFullHeight), [S, x] = X.useState(Je.dialogProxy.width), [A,
|
|
6244
|
+
}), [p, E] = X.useState(Je.dialogProxy.position), [b, y] = X.useState(Je.dialogProxy.isFullHeight), [S, x] = X.useState(Je.dialogProxy.width), [A, C] = X.useState(Je.modalProxy.isFullscreen), k = rw(f.type);
|
|
6245
6245
|
X.useEffect(() => {
|
|
6246
6246
|
const z = (Y) => {
|
|
6247
6247
|
const { property: M, value: G } = Y.detail || {};
|
|
@@ -6279,7 +6279,7 @@ const Je = new cw(), aT = X.createContext({
|
|
|
6279
6279
|
return;
|
|
6280
6280
|
}
|
|
6281
6281
|
if (M === "isFullscreen") {
|
|
6282
|
-
|
|
6282
|
+
C(G);
|
|
6283
6283
|
return;
|
|
6284
6284
|
}
|
|
6285
6285
|
}
|
|
@@ -6302,7 +6302,7 @@ const Je = new cw(), aT = X.createContext({
|
|
|
6302
6302
|
mode: u,
|
|
6303
6303
|
entryType: s,
|
|
6304
6304
|
status: f,
|
|
6305
|
-
previousComponentType:
|
|
6305
|
+
previousComponentType: k || "dialog",
|
|
6306
6306
|
dialogPosition: p,
|
|
6307
6307
|
isDialogFullHeight: b,
|
|
6308
6308
|
dialogWidth: S,
|
|
@@ -6312,7 +6312,7 @@ const Je = new cw(), aT = X.createContext({
|
|
|
6312
6312
|
u,
|
|
6313
6313
|
s,
|
|
6314
6314
|
f,
|
|
6315
|
-
|
|
6315
|
+
k,
|
|
6316
6316
|
p,
|
|
6317
6317
|
b,
|
|
6318
6318
|
S,
|
|
@@ -6338,8 +6338,8 @@ const Je = new cw(), aT = X.createContext({
|
|
|
6338
6338
|
entryMessage: S,
|
|
6339
6339
|
disclaimerText: x,
|
|
6340
6340
|
disclaimerMarkdown: A,
|
|
6341
|
-
clientContext:
|
|
6342
|
-
searchPlaceholder:
|
|
6341
|
+
clientContext: C,
|
|
6342
|
+
searchPlaceholder: k,
|
|
6343
6343
|
searchButtonLabel: I,
|
|
6344
6344
|
searchConfig: z,
|
|
6345
6345
|
resetConversationMessage: Y,
|
|
@@ -6361,11 +6361,11 @@ const Je = new cw(), aT = X.createContext({
|
|
|
6361
6361
|
theme: c,
|
|
6362
6362
|
globalClassName: h,
|
|
6363
6363
|
openLinksInNewTab: f,
|
|
6364
|
-
searchPlaceholder:
|
|
6364
|
+
searchPlaceholder: k,
|
|
6365
6365
|
searchButtonLabel: I,
|
|
6366
6366
|
searchConfig: z,
|
|
6367
6367
|
componentConfig: b,
|
|
6368
|
-
clientContext:
|
|
6368
|
+
clientContext: C,
|
|
6369
6369
|
disclaimerMarkdown: A,
|
|
6370
6370
|
disclaimerText: x,
|
|
6371
6371
|
resetConversationMessage: Y,
|
|
@@ -6404,11 +6404,11 @@ var h1;
|
|
|
6404
6404
|
function hw() {
|
|
6405
6405
|
return h1 || (h1 = 1, (function(e) {
|
|
6406
6406
|
function t(W, se) {
|
|
6407
|
-
var
|
|
6407
|
+
var v = W.length;
|
|
6408
6408
|
W.push(se);
|
|
6409
|
-
e: for (; 0 <
|
|
6410
|
-
var D =
|
|
6411
|
-
if (0 < s(Z, se)) W[D] = se, W[
|
|
6409
|
+
e: for (; 0 < v; ) {
|
|
6410
|
+
var D = v - 1 >>> 1, Z = W[D];
|
|
6411
|
+
if (0 < s(Z, se)) W[D] = se, W[v] = Z, v = D;
|
|
6412
6412
|
else break e;
|
|
6413
6413
|
}
|
|
6414
6414
|
}
|
|
@@ -6417,21 +6417,21 @@ function hw() {
|
|
|
6417
6417
|
}
|
|
6418
6418
|
function r(W) {
|
|
6419
6419
|
if (W.length === 0) return null;
|
|
6420
|
-
var se = W[0],
|
|
6421
|
-
if (
|
|
6422
|
-
W[0] =
|
|
6423
|
-
e: for (var D = 0, Z = W.length,
|
|
6420
|
+
var se = W[0], v = W.pop();
|
|
6421
|
+
if (v !== se) {
|
|
6422
|
+
W[0] = v;
|
|
6423
|
+
e: for (var D = 0, Z = W.length, N = Z >>> 1; D < N; ) {
|
|
6424
6424
|
var Se = 2 * (D + 1) - 1, Ie = W[Se], Ne = Se + 1, Fe = W[Ne];
|
|
6425
|
-
if (0 > s(Ie,
|
|
6426
|
-
else if (Ne < Z && 0 > s(Fe,
|
|
6425
|
+
if (0 > s(Ie, v)) Ne < Z && 0 > s(Fe, Ie) ? (W[D] = Fe, W[Ne] = v, D = Ne) : (W[D] = Ie, W[Se] = v, D = Se);
|
|
6426
|
+
else if (Ne < Z && 0 > s(Fe, v)) W[D] = Fe, W[Ne] = v, D = Ne;
|
|
6427
6427
|
else break e;
|
|
6428
6428
|
}
|
|
6429
6429
|
}
|
|
6430
6430
|
return se;
|
|
6431
6431
|
}
|
|
6432
6432
|
function s(W, se) {
|
|
6433
|
-
var
|
|
6434
|
-
return
|
|
6433
|
+
var v = W.sortIndex - se.sortIndex;
|
|
6434
|
+
return v !== 0 ? v : W.id - se.id;
|
|
6435
6435
|
}
|
|
6436
6436
|
if (typeof performance == "object" && typeof performance.now == "function") {
|
|
6437
6437
|
var a = performance;
|
|
@@ -6444,7 +6444,7 @@ function hw() {
|
|
|
6444
6444
|
return u.now() - c;
|
|
6445
6445
|
};
|
|
6446
6446
|
}
|
|
6447
|
-
var f = [], h = [], p = 1, E = null, b = 3, y = !1, S = !1, x = !1, A = typeof setTimeout == "function" ? setTimeout : null,
|
|
6447
|
+
var f = [], h = [], p = 1, E = null, b = 3, y = !1, S = !1, x = !1, A = typeof setTimeout == "function" ? setTimeout : null, C = typeof clearTimeout == "function" ? clearTimeout : null, k = typeof setImmediate != "undefined" ? setImmediate : null;
|
|
6448
6448
|
typeof navigator != "undefined" && navigator.scheduling !== void 0 && navigator.scheduling.isInputPending !== void 0 && navigator.scheduling.isInputPending.bind(navigator.scheduling);
|
|
6449
6449
|
function I(W) {
|
|
6450
6450
|
for (var se = n(h); se !== null; ) {
|
|
@@ -6462,8 +6462,8 @@ function hw() {
|
|
|
6462
6462
|
}
|
|
6463
6463
|
}
|
|
6464
6464
|
function Y(W, se) {
|
|
6465
|
-
S = !1, x && (x = !1,
|
|
6466
|
-
var
|
|
6465
|
+
S = !1, x && (x = !1, C(pe), pe = -1), y = !0;
|
|
6466
|
+
var v = b;
|
|
6467
6467
|
try {
|
|
6468
6468
|
for (I(se), E = n(f); E !== null && (!(E.expirationTime > se) || W && !te()); ) {
|
|
6469
6469
|
var D = E.callback;
|
|
@@ -6474,14 +6474,14 @@ function hw() {
|
|
|
6474
6474
|
} else r(f);
|
|
6475
6475
|
E = n(f);
|
|
6476
6476
|
}
|
|
6477
|
-
if (E !== null) var
|
|
6477
|
+
if (E !== null) var N = !0;
|
|
6478
6478
|
else {
|
|
6479
6479
|
var Se = n(h);
|
|
6480
|
-
Se !== null && fe(z, Se.startTime - se),
|
|
6480
|
+
Se !== null && fe(z, Se.startTime - se), N = !1;
|
|
6481
6481
|
}
|
|
6482
|
-
return
|
|
6482
|
+
return N;
|
|
6483
6483
|
} finally {
|
|
6484
|
-
E = null, b =
|
|
6484
|
+
E = null, b = v, y = !1;
|
|
6485
6485
|
}
|
|
6486
6486
|
}
|
|
6487
6487
|
var M = !1, G = null, pe = -1, be = 5, F = -1;
|
|
@@ -6501,8 +6501,8 @@ function hw() {
|
|
|
6501
6501
|
} else M = !1;
|
|
6502
6502
|
}
|
|
6503
6503
|
var ne;
|
|
6504
|
-
if (typeof
|
|
6505
|
-
|
|
6504
|
+
if (typeof k == "function") ne = function() {
|
|
6505
|
+
k(Q);
|
|
6506
6506
|
};
|
|
6507
6507
|
else if (typeof MessageChannel != "undefined") {
|
|
6508
6508
|
var ie = new MessageChannel(), Te = ie.port2;
|
|
@@ -6540,12 +6540,12 @@ function hw() {
|
|
|
6540
6540
|
default:
|
|
6541
6541
|
se = b;
|
|
6542
6542
|
}
|
|
6543
|
-
var
|
|
6543
|
+
var v = b;
|
|
6544
6544
|
b = se;
|
|
6545
6545
|
try {
|
|
6546
6546
|
return W();
|
|
6547
6547
|
} finally {
|
|
6548
|
-
b =
|
|
6548
|
+
b = v;
|
|
6549
6549
|
}
|
|
6550
6550
|
}, e.unstable_pauseExecution = function() {
|
|
6551
6551
|
}, e.unstable_requestPaint = function() {
|
|
@@ -6560,16 +6560,16 @@ function hw() {
|
|
|
6560
6560
|
default:
|
|
6561
6561
|
W = 3;
|
|
6562
6562
|
}
|
|
6563
|
-
var
|
|
6563
|
+
var v = b;
|
|
6564
6564
|
b = W;
|
|
6565
6565
|
try {
|
|
6566
6566
|
return se();
|
|
6567
6567
|
} finally {
|
|
6568
|
-
b =
|
|
6568
|
+
b = v;
|
|
6569
6569
|
}
|
|
6570
|
-
}, e.unstable_scheduleCallback = function(W, se,
|
|
6570
|
+
}, e.unstable_scheduleCallback = function(W, se, v) {
|
|
6571
6571
|
var D = e.unstable_now();
|
|
6572
|
-
switch (typeof
|
|
6572
|
+
switch (typeof v == "object" && v !== null ? (v = v.delay, v = typeof v == "number" && 0 < v ? D + v : D) : v = D, W) {
|
|
6573
6573
|
case 1:
|
|
6574
6574
|
var Z = -1;
|
|
6575
6575
|
break;
|
|
@@ -6585,16 +6585,16 @@ function hw() {
|
|
|
6585
6585
|
default:
|
|
6586
6586
|
Z = 5e3;
|
|
6587
6587
|
}
|
|
6588
|
-
return Z =
|
|
6588
|
+
return Z = v + Z, W = { id: p++, callback: se, priorityLevel: W, startTime: v, expirationTime: Z, sortIndex: -1 }, v > D ? (W.sortIndex = v, t(h, W), n(f) === null && W === n(h) && (x ? (C(pe), pe = -1) : x = !0, fe(z, v - D))) : (W.sortIndex = Z, t(f, W), S || y || (S = !0, Oe(Y))), W;
|
|
6589
6589
|
}, e.unstable_shouldYield = te, e.unstable_wrapCallback = function(W) {
|
|
6590
6590
|
var se = b;
|
|
6591
6591
|
return function() {
|
|
6592
|
-
var
|
|
6592
|
+
var v = b;
|
|
6593
6593
|
b = se;
|
|
6594
6594
|
try {
|
|
6595
6595
|
return W.apply(this, arguments);
|
|
6596
6596
|
} finally {
|
|
6597
|
-
b =
|
|
6597
|
+
b = v;
|
|
6598
6598
|
}
|
|
6599
6599
|
};
|
|
6600
6600
|
};
|
|
@@ -6675,21 +6675,21 @@ function mw() {
|
|
|
6675
6675
|
}), ["rowSpan", "start"].forEach(function(i) {
|
|
6676
6676
|
A[i] = new x(i, 5, !1, i.toLowerCase(), null, !1, !1);
|
|
6677
6677
|
});
|
|
6678
|
-
var
|
|
6679
|
-
function
|
|
6678
|
+
var C = /[\-:]([a-z])/g;
|
|
6679
|
+
function k(i) {
|
|
6680
6680
|
return i[1].toUpperCase();
|
|
6681
6681
|
}
|
|
6682
6682
|
"accent-height alignment-baseline arabic-form baseline-shift cap-height clip-path clip-rule color-interpolation color-interpolation-filters color-profile color-rendering dominant-baseline enable-background fill-opacity fill-rule flood-color flood-opacity font-family font-size font-size-adjust font-stretch font-style font-variant font-weight glyph-name glyph-orientation-horizontal glyph-orientation-vertical horiz-adv-x horiz-origin-x image-rendering letter-spacing lighting-color marker-end marker-mid marker-start overline-position overline-thickness paint-order panose-1 pointer-events rendering-intent shape-rendering stop-color stop-opacity strikethrough-position strikethrough-thickness stroke-dasharray stroke-dashoffset stroke-linecap stroke-linejoin stroke-miterlimit stroke-opacity stroke-width text-anchor text-decoration text-rendering underline-position underline-thickness unicode-bidi unicode-range units-per-em v-alphabetic v-hanging v-ideographic v-mathematical vector-effect vert-adv-y vert-origin-x vert-origin-y word-spacing writing-mode xmlns:xlink x-height".split(" ").forEach(function(i) {
|
|
6683
6683
|
var o = i.replace(
|
|
6684
|
-
|
|
6685
|
-
|
|
6684
|
+
C,
|
|
6685
|
+
k
|
|
6686
6686
|
);
|
|
6687
6687
|
A[o] = new x(o, 1, !1, i, null, !1, !1);
|
|
6688
6688
|
}), "xlink:actuate xlink:arcrole xlink:role xlink:show xlink:title xlink:type".split(" ").forEach(function(i) {
|
|
6689
|
-
var o = i.replace(
|
|
6689
|
+
var o = i.replace(C, k);
|
|
6690
6690
|
A[o] = new x(o, 1, !1, i, "http://www.w3.org/1999/xlink", !1, !1);
|
|
6691
6691
|
}), ["xml:base", "xml:lang", "xml:space"].forEach(function(i) {
|
|
6692
|
-
var o = i.replace(
|
|
6692
|
+
var o = i.replace(C, k);
|
|
6693
6693
|
A[o] = new x(o, 1, !1, i, "http://www.w3.org/XML/1998/namespace", !1, !1);
|
|
6694
6694
|
}), ["tabIndex", "crossOrigin"].forEach(function(i) {
|
|
6695
6695
|
A[i] = new x(i, 1, !1, i.toLowerCase(), null, !1, !1);
|
|
@@ -6704,7 +6704,7 @@ function mw() {
|
|
|
6704
6704
|
function se(i) {
|
|
6705
6705
|
return i === null || typeof i != "object" ? null : (i = W && i[W] || i["@@iterator"], typeof i == "function" ? i : null);
|
|
6706
6706
|
}
|
|
6707
|
-
var
|
|
6707
|
+
var v = Object.assign, D;
|
|
6708
6708
|
function Z(i) {
|
|
6709
6709
|
if (D === void 0) try {
|
|
6710
6710
|
throw Error();
|
|
@@ -6715,10 +6715,10 @@ function mw() {
|
|
|
6715
6715
|
return `
|
|
6716
6716
|
` + D + i;
|
|
6717
6717
|
}
|
|
6718
|
-
var
|
|
6718
|
+
var N = !1;
|
|
6719
6719
|
function Se(i, o) {
|
|
6720
|
-
if (!i ||
|
|
6721
|
-
|
|
6720
|
+
if (!i || N) return "";
|
|
6721
|
+
N = !0;
|
|
6722
6722
|
var l = Error.prepareStackTrace;
|
|
6723
6723
|
Error.prepareStackTrace = void 0;
|
|
6724
6724
|
try {
|
|
@@ -6767,7 +6767,7 @@ function mw() {
|
|
|
6767
6767
|
}
|
|
6768
6768
|
}
|
|
6769
6769
|
} finally {
|
|
6770
|
-
|
|
6770
|
+
N = !1, Error.prepareStackTrace = l;
|
|
6771
6771
|
}
|
|
6772
6772
|
return (i = i ? i.displayName || i.name : "") ? Z(i) : "";
|
|
6773
6773
|
}
|
|
@@ -6934,7 +6934,7 @@ function mw() {
|
|
|
6934
6934
|
}
|
|
6935
6935
|
function Ln(i, o) {
|
|
6936
6936
|
var l = o.checked;
|
|
6937
|
-
return
|
|
6937
|
+
return v({}, o, { defaultChecked: void 0, defaultValue: void 0, value: void 0, checked: l != null ? l : i._wrapperState.initialChecked });
|
|
6938
6938
|
}
|
|
6939
6939
|
function ao(i, o) {
|
|
6940
6940
|
var l = o.defaultValue == null ? "" : o.defaultValue, d = o.checked != null ? o.checked : o.defaultChecked;
|
|
@@ -6983,7 +6983,7 @@ function mw() {
|
|
|
6983
6983
|
}
|
|
6984
6984
|
function lo(i, o) {
|
|
6985
6985
|
if (o.dangerouslySetInnerHTML != null) throw Error(n(91));
|
|
6986
|
-
return
|
|
6986
|
+
return v({}, o, { value: void 0, defaultValue: void 0, children: "" + i._wrapperState.initialValue });
|
|
6987
6987
|
}
|
|
6988
6988
|
function Va(i, o) {
|
|
6989
6989
|
var l = o.value;
|
|
@@ -7104,7 +7104,7 @@ function mw() {
|
|
|
7104
7104
|
l === "float" && (l = "cssFloat"), d ? i.setProperty(l, g) : i[l] = g;
|
|
7105
7105
|
}
|
|
7106
7106
|
}
|
|
7107
|
-
var di =
|
|
7107
|
+
var di = v({ menuitem: !0 }, { area: !0, base: !0, br: !0, col: !0, embed: !0, hr: !0, img: !0, input: !0, keygen: !0, link: !0, meta: !0, param: !0, source: !0, track: !0, wbr: !0 });
|
|
7108
7108
|
function Lt(i, o) {
|
|
7109
7109
|
if (o) {
|
|
7110
7110
|
if (di[i] && (o.children != null || o.dangerouslySetInnerHTML != null)) throw Error(n(137, i));
|
|
@@ -7734,7 +7734,7 @@ function mw() {
|
|
|
7734
7734
|
for (var R in i) i.hasOwnProperty(R) && (l = i[R], this[R] = l ? l(T) : T[R]);
|
|
7735
7735
|
return this.isDefaultPrevented = (T.defaultPrevented != null ? T.defaultPrevented : T.returnValue === !1) ? ou : C0, this.isPropagationStopped = C0, this;
|
|
7736
7736
|
}
|
|
7737
|
-
return
|
|
7737
|
+
return v(o.prototype, { preventDefault: function() {
|
|
7738
7738
|
this.defaultPrevented = !0;
|
|
7739
7739
|
var l = this.nativeEvent;
|
|
7740
7740
|
l && (l.preventDefault ? l.preventDefault() : typeof l.returnValue != "unknown" && (l.returnValue = !1), this.isDefaultPrevented = ou);
|
|
@@ -7746,15 +7746,15 @@ function mw() {
|
|
|
7746
7746
|
}
|
|
7747
7747
|
var ts = { eventPhase: 0, bubbles: 0, cancelable: 0, timeStamp: function(i) {
|
|
7748
7748
|
return i.timeStamp || Date.now();
|
|
7749
|
-
}, defaultPrevented: 0, isTrusted: 0 }, Bc = dn(ts), So =
|
|
7749
|
+
}, defaultPrevented: 0, isTrusted: 0 }, Bc = dn(ts), So = v({}, ts, { view: 0, detail: 0 }), r_ = dn(So), Uc, Hc, _o, au = v({}, So, { screenX: 0, screenY: 0, clientX: 0, clientY: 0, pageX: 0, pageY: 0, ctrlKey: 0, shiftKey: 0, altKey: 0, metaKey: 0, getModifierState: jc, button: 0, buttons: 0, relatedTarget: function(i) {
|
|
7750
7750
|
return i.relatedTarget === void 0 ? i.fromElement === i.srcElement ? i.toElement : i.fromElement : i.relatedTarget;
|
|
7751
7751
|
}, movementX: function(i) {
|
|
7752
7752
|
return "movementX" in i ? i.movementX : (i !== _o && (_o && i.type === "mousemove" ? (Uc = i.screenX - _o.screenX, Hc = i.screenY - _o.screenY) : Hc = Uc = 0, _o = i), Uc);
|
|
7753
7753
|
}, movementY: function(i) {
|
|
7754
7754
|
return "movementY" in i ? i.movementY : Hc;
|
|
7755
|
-
} }), v0 = dn(au), i_ =
|
|
7755
|
+
} }), v0 = dn(au), i_ = v({}, au, { dataTransfer: 0 }), s_ = dn(i_), o_ = v({}, So, { relatedTarget: 0 }), zc = dn(o_), a_ = v({}, ts, { animationName: 0, elapsedTime: 0, pseudoElement: 0 }), u_ = dn(a_), l_ = v({}, ts, { clipboardData: function(i) {
|
|
7756
7756
|
return "clipboardData" in i ? i.clipboardData : window.clipboardData;
|
|
7757
|
-
} }), c_ = dn(l_), f_ =
|
|
7757
|
+
} }), c_ = dn(l_), f_ = v({}, ts, { data: 0 }), w0 = dn(f_), d_ = {
|
|
7758
7758
|
Esc: "Escape",
|
|
7759
7759
|
Spacebar: " ",
|
|
7760
7760
|
Left: "ArrowLeft",
|
|
@@ -7812,7 +7812,7 @@ function mw() {
|
|
|
7812
7812
|
function jc() {
|
|
7813
7813
|
return m_;
|
|
7814
7814
|
}
|
|
7815
|
-
var g_ =
|
|
7815
|
+
var g_ = v({}, So, { key: function(i) {
|
|
7816
7816
|
if (i.key) {
|
|
7817
7817
|
var o = d_[i.key] || i.key;
|
|
7818
7818
|
if (o !== "Unidentified") return o;
|
|
@@ -7824,7 +7824,7 @@ function mw() {
|
|
|
7824
7824
|
return i.type === "keydown" || i.type === "keyup" ? i.keyCode : 0;
|
|
7825
7825
|
}, which: function(i) {
|
|
7826
7826
|
return i.type === "keypress" ? su(i) : i.type === "keydown" || i.type === "keyup" ? i.keyCode : 0;
|
|
7827
|
-
} }), E_ = dn(g_), y_ =
|
|
7827
|
+
} }), E_ = dn(g_), y_ = v({}, au, { pointerId: 0, width: 0, height: 0, pressure: 0, tangentialPressure: 0, tiltX: 0, tiltY: 0, twist: 0, pointerType: 0, isPrimary: 0 }), k0 = dn(y_), T_ = v({}, So, { touches: 0, targetTouches: 0, changedTouches: 0, altKey: 0, metaKey: 0, ctrlKey: 0, shiftKey: 0, getModifierState: jc }), b_ = dn(T_), S_ = v({}, ts, { propertyName: 0, elapsedTime: 0, pseudoElement: 0 }), __ = dn(S_), x_ = v({}, au, {
|
|
7828
7828
|
deltaX: function(i) {
|
|
7829
7829
|
return "deltaX" in i ? i.deltaX : "wheelDeltaX" in i ? -i.wheelDeltaX : 0;
|
|
7830
7830
|
},
|
|
@@ -8439,7 +8439,7 @@ function mw() {
|
|
|
8439
8439
|
if (o = o.childContextTypes, typeof d.getChildContext != "function") return l;
|
|
8440
8440
|
d = d.getChildContext();
|
|
8441
8441
|
for (var g in d) if (!(g in o)) throw Error(n(108, Fe(i) || "Unknown", g));
|
|
8442
|
-
return
|
|
8442
|
+
return v({}, l, d);
|
|
8443
8443
|
}
|
|
8444
8444
|
function Eu(i) {
|
|
8445
8445
|
return i = (i = i.stateNode) && i.__reactInternalMemoizedMergedChildContext || jr, mi = Ft.current, tt(Ft, i), tt(Zt, Zt.current), !0;
|
|
@@ -8918,7 +8918,7 @@ function mw() {
|
|
|
8918
8918
|
Ce.flags = Ce.flags & -65537 | 128;
|
|
8919
8919
|
case 0:
|
|
8920
8920
|
if (Ce = we.payload, ue = typeof Ce == "function" ? Ce.call(_e, de, ue) : Ce, ue == null) break e;
|
|
8921
|
-
de =
|
|
8921
|
+
de = v({}, de, ue);
|
|
8922
8922
|
break e;
|
|
8923
8923
|
case 2:
|
|
8924
8924
|
Vr = !0;
|
|
@@ -9347,14 +9347,14 @@ function mw() {
|
|
|
9347
9347
|
}, useMutableSource: _m, useSyncExternalStore: xm, useId: Um, unstable_isNewReconciler: !1 };
|
|
9348
9348
|
function Bn(i, o) {
|
|
9349
9349
|
if (i && i.defaultProps) {
|
|
9350
|
-
o =
|
|
9350
|
+
o = v({}, o), i = i.defaultProps;
|
|
9351
9351
|
for (var l in i) o[l] === void 0 && (o[l] = i[l]);
|
|
9352
9352
|
return o;
|
|
9353
9353
|
}
|
|
9354
9354
|
return o;
|
|
9355
9355
|
}
|
|
9356
9356
|
function Rf(i, o, l, d) {
|
|
9357
|
-
o = i.memoizedState, l = l(d, o), l = l == null ? o :
|
|
9357
|
+
o = i.memoizedState, l = l(d, o), l = l == null ? o : v({}, o, l), i.memoizedState = l, i.lanes === 0 && (i.updateQueue.baseState = l);
|
|
9358
9358
|
}
|
|
9359
9359
|
var Pu = { isMounted: function(i) {
|
|
9360
9360
|
return (i = i._reactInternals) ? hi(i) === i : !1;
|
|
@@ -9745,7 +9745,7 @@ Error generating stack: ` + T.message + `
|
|
|
9745
9745
|
g = Ln(i, g), d = Ln(i, d), T = [];
|
|
9746
9746
|
break;
|
|
9747
9747
|
case "select":
|
|
9748
|
-
g =
|
|
9748
|
+
g = v({}, g, { value: void 0 }), d = v({}, d, { value: void 0 }), T = [];
|
|
9749
9749
|
break;
|
|
9750
9750
|
case "textarea":
|
|
9751
9751
|
g = lo(i, g), d = lo(i, d), T = [];
|
|
@@ -9924,7 +9924,7 @@ Error generating stack: ` + T.message + `
|
|
|
9924
9924
|
g = d;
|
|
9925
9925
|
break;
|
|
9926
9926
|
case "select":
|
|
9927
|
-
i._wrapperState = { wasMultiple: !!d.multiple }, g =
|
|
9927
|
+
i._wrapperState = { wasMultiple: !!d.multiple }, g = v({}, d, { value: void 0 }), st("invalid", i);
|
|
9928
9928
|
break;
|
|
9929
9929
|
case "textarea":
|
|
9930
9930
|
Va(i, d), g = lo(i, d), st("invalid", i);
|
|
@@ -13261,28 +13261,28 @@ function Ww() {
|
|
|
13261
13261
|
throw new TypeError("First argument must be a string");
|
|
13262
13262
|
if (!x) return [];
|
|
13263
13263
|
A = A || {};
|
|
13264
|
-
var
|
|
13264
|
+
var C = 1, k = 1;
|
|
13265
13265
|
function I(ne) {
|
|
13266
13266
|
var ie = ne.match(t);
|
|
13267
|
-
ie && (
|
|
13267
|
+
ie && (C += ie.length);
|
|
13268
13268
|
var Te = ne.lastIndexOf(f);
|
|
13269
|
-
|
|
13269
|
+
k = ~Te ? ne.length - Te : k + ne.length;
|
|
13270
13270
|
}
|
|
13271
13271
|
function z() {
|
|
13272
|
-
var ne = { line:
|
|
13272
|
+
var ne = { line: C, column: k };
|
|
13273
13273
|
return function(ie) {
|
|
13274
13274
|
return ie.position = new Y(ne), pe(), ie;
|
|
13275
13275
|
};
|
|
13276
13276
|
}
|
|
13277
13277
|
function Y(ne) {
|
|
13278
|
-
this.start = ne, this.end = { line:
|
|
13278
|
+
this.start = ne, this.end = { line: C, column: k }, this.source = A.source;
|
|
13279
13279
|
}
|
|
13280
13280
|
Y.prototype.content = x;
|
|
13281
13281
|
function M(ne) {
|
|
13282
13282
|
var ie = new Error(
|
|
13283
|
-
A.source + ":" +
|
|
13283
|
+
A.source + ":" + C + ":" + k + ": " + ne
|
|
13284
13284
|
);
|
|
13285
|
-
if (ie.reason = ne, ie.filename = A.source, ie.line =
|
|
13285
|
+
if (ie.reason = ne, ie.filename = A.source, ie.line = C, ie.column = k, ie.source = x, !A.silent) throw ie;
|
|
13286
13286
|
}
|
|
13287
13287
|
function G(ne) {
|
|
13288
13288
|
var ie = ne.exec(x);
|
|
@@ -13308,7 +13308,7 @@ function Ww() {
|
|
|
13308
13308
|
if (ie += 2, E === x.charAt(ie - 1))
|
|
13309
13309
|
return M("End of comment missing");
|
|
13310
13310
|
var Te = x.slice(2, ie - 2);
|
|
13311
|
-
return
|
|
13311
|
+
return k += 2, I(Te), x = x.slice(ie), k += 2, ne({
|
|
13312
13312
|
type: b,
|
|
13313
13313
|
comment: Te
|
|
13314
13314
|
});
|
|
@@ -14023,7 +14023,7 @@ function Nk(e) {
|
|
|
14023
14023
|
}
|
|
14024
14024
|
function f(I) {
|
|
14025
14025
|
if (r++, t.containerState._closeFlow) {
|
|
14026
|
-
t.containerState._closeFlow = void 0, s &&
|
|
14026
|
+
t.containerState._closeFlow = void 0, s && k();
|
|
14027
14027
|
const z = t.events.length;
|
|
14028
14028
|
let Y = z, M;
|
|
14029
14029
|
for (; Y--; )
|
|
@@ -14031,7 +14031,7 @@ function Nk(e) {
|
|
|
14031
14031
|
M = t.events[Y][1].end;
|
|
14032
14032
|
break;
|
|
14033
14033
|
}
|
|
14034
|
-
|
|
14034
|
+
C(r);
|
|
14035
14035
|
let G = z;
|
|
14036
14036
|
for (; G < t.events.length; )
|
|
14037
14037
|
t.events[G][1].end = U({}, M), G++;
|
|
@@ -14050,7 +14050,7 @@ function Nk(e) {
|
|
|
14050
14050
|
return t.containerState = {}, e.check(D1, p, E)(I);
|
|
14051
14051
|
}
|
|
14052
14052
|
function p(I) {
|
|
14053
|
-
return s &&
|
|
14053
|
+
return s && k(), C(r), b(I);
|
|
14054
14054
|
}
|
|
14055
14055
|
function E(I) {
|
|
14056
14056
|
return t.parser.lazy[t.now().line] = r !== n.length, u = t.now().offset, S(I);
|
|
@@ -14063,7 +14063,7 @@ function Nk(e) {
|
|
|
14063
14063
|
}
|
|
14064
14064
|
function S(I) {
|
|
14065
14065
|
if (I === null) {
|
|
14066
|
-
s &&
|
|
14066
|
+
s && k(), C(0), e.consume(I);
|
|
14067
14067
|
return;
|
|
14068
14068
|
}
|
|
14069
14069
|
return s = s || t.parser.flow(t.now()), e.enter("chunkFlow", {
|
|
@@ -14074,7 +14074,7 @@ function Nk(e) {
|
|
|
14074
14074
|
}
|
|
14075
14075
|
function x(I) {
|
|
14076
14076
|
if (I === null) {
|
|
14077
|
-
A(e.exit("chunkFlow"), !0),
|
|
14077
|
+
A(e.exit("chunkFlow"), !0), C(0), e.consume(I);
|
|
14078
14078
|
return;
|
|
14079
14079
|
}
|
|
14080
14080
|
return Le(I) ? (e.consume(I), A(e.exit("chunkFlow")), r = 0, t.interrupt = void 0, c) : (e.consume(I), x);
|
|
@@ -14101,12 +14101,12 @@ function Nk(e) {
|
|
|
14101
14101
|
}
|
|
14102
14102
|
be = !0;
|
|
14103
14103
|
}
|
|
14104
|
-
for (
|
|
14104
|
+
for (C(r), M = G; M < t.events.length; )
|
|
14105
14105
|
t.events[M][1].end = U({}, F), M++;
|
|
14106
14106
|
Tn(t.events, pe + 1, 0, t.events.slice(G)), t.events.length = M;
|
|
14107
14107
|
}
|
|
14108
14108
|
}
|
|
14109
|
-
function
|
|
14109
|
+
function C(I) {
|
|
14110
14110
|
let z = n.length;
|
|
14111
14111
|
for (; z-- > I; ) {
|
|
14112
14112
|
const Y = n[z];
|
|
@@ -14114,7 +14114,7 @@ function Nk(e) {
|
|
|
14114
14114
|
}
|
|
14115
14115
|
n.length = I;
|
|
14116
14116
|
}
|
|
14117
|
-
function
|
|
14117
|
+
function k() {
|
|
14118
14118
|
s.write([null]), a = void 0, s = void 0, t.containerState._closeFlow = void 0;
|
|
14119
14119
|
}
|
|
14120
14120
|
}
|
|
@@ -14365,16 +14365,16 @@ function zk(e, t, n) {
|
|
|
14365
14365
|
return e.attempt(s, z, A)(M);
|
|
14366
14366
|
}
|
|
14367
14367
|
function A(M) {
|
|
14368
|
-
return e.enter("lineEnding"), e.consume(M), e.exit("lineEnding"),
|
|
14368
|
+
return e.enter("lineEnding"), e.consume(M), e.exit("lineEnding"), C;
|
|
14369
14369
|
}
|
|
14370
|
-
function
|
|
14371
|
-
return a > 0 && qe(M) ? We(e,
|
|
14370
|
+
function C(M) {
|
|
14371
|
+
return a > 0 && qe(M) ? We(e, k, "linePrefix", a + 1)(M) : k(M);
|
|
14372
14372
|
}
|
|
14373
|
-
function
|
|
14373
|
+
function k(M) {
|
|
14374
14374
|
return M === null || Le(M) ? e.check(F1, x, z)(M) : (e.enter("codeFlowValue"), I(M));
|
|
14375
14375
|
}
|
|
14376
14376
|
function I(M) {
|
|
14377
|
-
return M === null || Le(M) ? (e.exit("codeFlowValue"),
|
|
14377
|
+
return M === null || Le(M) ? (e.exit("codeFlowValue"), k(M)) : (e.consume(M), I);
|
|
14378
14378
|
}
|
|
14379
14379
|
function z(M) {
|
|
14380
14380
|
return e.exit("codeFenced"), t(M);
|
|
@@ -14700,8 +14700,8 @@ function Xk(e, t) {
|
|
|
14700
14700
|
// Find a void token that includes a break.
|
|
14701
14701
|
c[b][0] === "exit" && c[b - 1][0] === "enter" && c[b][1].type === c[b - 1][1].type && c[b][1].start.line !== c[b][1].end.line && (x = b + 1, A.push(x), y._tokenizer = void 0, y.previous = void 0, y = y.next);
|
|
14702
14702
|
for (u.events = [], y ? (y._tokenizer = void 0, y.previous = void 0) : A.pop(), b = A.length; b--; ) {
|
|
14703
|
-
const
|
|
14704
|
-
f.push([
|
|
14703
|
+
const C = c.slice(A[b], A[b + 1]), k = a.pop();
|
|
14704
|
+
f.push([k, k + C.length - 1]), e.splice(k, 2, C);
|
|
14705
14705
|
}
|
|
14706
14706
|
for (f.reverse(), b = -1; ++b < f.length; )
|
|
14707
14707
|
h[S + f[b][0]] = S + f[b][1], S += f[b][1] - f[b][0] - 1;
|
|
@@ -14755,27 +14755,27 @@ function MT(e, t, n, r, s, a, u, c, f) {
|
|
|
14755
14755
|
const h = f || Number.POSITIVE_INFINITY;
|
|
14756
14756
|
let p = 0;
|
|
14757
14757
|
return E;
|
|
14758
|
-
function E(
|
|
14759
|
-
return
|
|
14758
|
+
function E(C) {
|
|
14759
|
+
return C === 60 ? (e.enter(r), e.enter(s), e.enter(a), e.consume(C), e.exit(a), b) : C === null || C === 32 || C === 41 || Ll(C) ? n(C) : (e.enter(r), e.enter(u), e.enter(c), e.enter("chunkString", {
|
|
14760
14760
|
contentType: "string"
|
|
14761
|
-
}), x(
|
|
14761
|
+
}), x(C));
|
|
14762
14762
|
}
|
|
14763
|
-
function b(
|
|
14764
|
-
return
|
|
14763
|
+
function b(C) {
|
|
14764
|
+
return C === 62 ? (e.enter(a), e.consume(C), e.exit(a), e.exit(s), e.exit(r), t) : (e.enter(c), e.enter("chunkString", {
|
|
14765
14765
|
contentType: "string"
|
|
14766
|
-
}), y(
|
|
14766
|
+
}), y(C));
|
|
14767
14767
|
}
|
|
14768
|
-
function y(
|
|
14769
|
-
return
|
|
14768
|
+
function y(C) {
|
|
14769
|
+
return C === 62 ? (e.exit("chunkString"), e.exit(c), b(C)) : C === null || C === 60 || Le(C) ? n(C) : (e.consume(C), C === 92 ? S : y);
|
|
14770
14770
|
}
|
|
14771
|
-
function S(
|
|
14772
|
-
return
|
|
14771
|
+
function S(C) {
|
|
14772
|
+
return C === 60 || C === 62 || C === 92 ? (e.consume(C), y) : y(C);
|
|
14773
14773
|
}
|
|
14774
|
-
function x(
|
|
14775
|
-
return !p && (
|
|
14774
|
+
function x(C) {
|
|
14775
|
+
return !p && (C === null || C === 41 || et(C)) ? (e.exit("chunkString"), e.exit(c), e.exit(u), e.exit(r), t(C)) : p < h && C === 40 ? (e.consume(C), p++, x) : C === 41 ? (e.consume(C), p--, x) : C === null || C === 32 || C === 40 || Ll(C) ? n(C) : (e.consume(C), C === 92 ? A : x);
|
|
14776
14776
|
}
|
|
14777
|
-
function A(
|
|
14778
|
-
return
|
|
14777
|
+
function A(C) {
|
|
14778
|
+
return C === 40 || C === 41 || C === 92 ? (e.consume(C), x) : x(C);
|
|
14779
14779
|
}
|
|
14780
14780
|
}
|
|
14781
14781
|
function FT(e, t, n, r, s, a) {
|
|
@@ -15038,104 +15038,104 @@ function EN(e, t, n) {
|
|
|
15038
15038
|
const r = this;
|
|
15039
15039
|
let s, a, u, c, f;
|
|
15040
15040
|
return h;
|
|
15041
|
-
function h(
|
|
15042
|
-
return p(
|
|
15041
|
+
function h(N) {
|
|
15042
|
+
return p(N);
|
|
15043
15043
|
}
|
|
15044
|
-
function p(
|
|
15045
|
-
return e.enter("htmlFlow"), e.enter("htmlFlowData"), e.consume(
|
|
15044
|
+
function p(N) {
|
|
15045
|
+
return e.enter("htmlFlow"), e.enter("htmlFlowData"), e.consume(N), E;
|
|
15046
15046
|
}
|
|
15047
|
-
function E(
|
|
15048
|
-
return
|
|
15047
|
+
function E(N) {
|
|
15048
|
+
return N === 33 ? (e.consume(N), b) : N === 47 ? (e.consume(N), a = !0, x) : N === 63 ? (e.consume(N), s = 3, r.interrupt ? t : v) : Kt(N) ? (e.consume(N), u = String.fromCharCode(N), A) : n(N);
|
|
15049
15049
|
}
|
|
15050
|
-
function b(
|
|
15051
|
-
return
|
|
15050
|
+
function b(N) {
|
|
15051
|
+
return N === 45 ? (e.consume(N), s = 2, y) : N === 91 ? (e.consume(N), s = 5, c = 0, S) : Kt(N) ? (e.consume(N), s = 4, r.interrupt ? t : v) : n(N);
|
|
15052
15052
|
}
|
|
15053
|
-
function y(
|
|
15054
|
-
return
|
|
15053
|
+
function y(N) {
|
|
15054
|
+
return N === 45 ? (e.consume(N), r.interrupt ? t : v) : n(N);
|
|
15055
15055
|
}
|
|
15056
|
-
function S(
|
|
15056
|
+
function S(N) {
|
|
15057
15057
|
const Se = "CDATA[";
|
|
15058
|
-
return
|
|
15058
|
+
return N === Se.charCodeAt(c++) ? (e.consume(N), c === Se.length ? r.interrupt ? t : Q : S) : n(N);
|
|
15059
15059
|
}
|
|
15060
|
-
function x(
|
|
15061
|
-
return Kt(
|
|
15060
|
+
function x(N) {
|
|
15061
|
+
return Kt(N) ? (e.consume(N), u = String.fromCharCode(N), A) : n(N);
|
|
15062
15062
|
}
|
|
15063
|
-
function A(
|
|
15064
|
-
if (
|
|
15065
|
-
const Se =
|
|
15066
|
-
return !Se && !a && U1.includes(Ie) ? (s = 1, r.interrupt ? t(
|
|
15063
|
+
function A(N) {
|
|
15064
|
+
if (N === null || N === 47 || N === 62 || et(N)) {
|
|
15065
|
+
const Se = N === 47, Ie = u.toLowerCase();
|
|
15066
|
+
return !Se && !a && U1.includes(Ie) ? (s = 1, r.interrupt ? t(N) : Q(N)) : dN.includes(u.toLowerCase()) ? (s = 6, Se ? (e.consume(N), C) : r.interrupt ? t(N) : Q(N)) : (s = 7, r.interrupt && !r.parser.lazy[r.now().line] ? n(N) : a ? k(N) : I(N));
|
|
15067
15067
|
}
|
|
15068
|
-
return
|
|
15068
|
+
return N === 45 || jt(N) ? (e.consume(N), u += String.fromCharCode(N), A) : n(N);
|
|
15069
15069
|
}
|
|
15070
|
-
function
|
|
15071
|
-
return
|
|
15070
|
+
function C(N) {
|
|
15071
|
+
return N === 62 ? (e.consume(N), r.interrupt ? t : Q) : n(N);
|
|
15072
15072
|
}
|
|
15073
|
-
function N
|
|
15074
|
-
return qe(
|
|
15073
|
+
function k(N) {
|
|
15074
|
+
return qe(N) ? (e.consume(N), k) : F(N);
|
|
15075
15075
|
}
|
|
15076
|
-
function I(
|
|
15077
|
-
return
|
|
15076
|
+
function I(N) {
|
|
15077
|
+
return N === 47 ? (e.consume(N), F) : N === 58 || N === 95 || Kt(N) ? (e.consume(N), z) : qe(N) ? (e.consume(N), I) : F(N);
|
|
15078
15078
|
}
|
|
15079
|
-
function z(
|
|
15080
|
-
return
|
|
15079
|
+
function z(N) {
|
|
15080
|
+
return N === 45 || N === 46 || N === 58 || N === 95 || jt(N) ? (e.consume(N), z) : Y(N);
|
|
15081
15081
|
}
|
|
15082
|
-
function Y(
|
|
15083
|
-
return
|
|
15082
|
+
function Y(N) {
|
|
15083
|
+
return N === 61 ? (e.consume(N), M) : qe(N) ? (e.consume(N), Y) : I(N);
|
|
15084
15084
|
}
|
|
15085
|
-
function M(
|
|
15086
|
-
return
|
|
15085
|
+
function M(N) {
|
|
15086
|
+
return N === null || N === 60 || N === 61 || N === 62 || N === 96 ? n(N) : N === 34 || N === 39 ? (e.consume(N), f = N, G) : qe(N) ? (e.consume(N), M) : pe(N);
|
|
15087
15087
|
}
|
|
15088
|
-
function G(
|
|
15089
|
-
return
|
|
15088
|
+
function G(N) {
|
|
15089
|
+
return N === f ? (e.consume(N), f = null, be) : N === null || Le(N) ? n(N) : (e.consume(N), G);
|
|
15090
15090
|
}
|
|
15091
|
-
function pe(
|
|
15092
|
-
return
|
|
15091
|
+
function pe(N) {
|
|
15092
|
+
return N === null || N === 34 || N === 39 || N === 47 || N === 60 || N === 61 || N === 62 || N === 96 || et(N) ? Y(N) : (e.consume(N), pe);
|
|
15093
15093
|
}
|
|
15094
|
-
function be(
|
|
15095
|
-
return
|
|
15094
|
+
function be(N) {
|
|
15095
|
+
return N === 47 || N === 62 || qe(N) ? I(N) : n(N);
|
|
15096
15096
|
}
|
|
15097
|
-
function F(
|
|
15098
|
-
return
|
|
15097
|
+
function F(N) {
|
|
15098
|
+
return N === 62 ? (e.consume(N), te) : n(N);
|
|
15099
15099
|
}
|
|
15100
|
-
function te(
|
|
15101
|
-
return
|
|
15100
|
+
function te(N) {
|
|
15101
|
+
return N === null || Le(N) ? Q(N) : qe(N) ? (e.consume(N), te) : n(N);
|
|
15102
15102
|
}
|
|
15103
|
-
function Q(
|
|
15104
|
-
return
|
|
15103
|
+
function Q(N) {
|
|
15104
|
+
return N === 45 && s === 2 ? (e.consume(N), Oe) : N === 60 && s === 1 ? (e.consume(N), fe) : N === 62 && s === 4 ? (e.consume(N), D) : N === 63 && s === 3 ? (e.consume(N), v) : N === 93 && s === 5 ? (e.consume(N), se) : Le(N) && (s === 6 || s === 7) ? (e.exit("htmlFlowData"), e.check(pN, Z, ne)(N)) : N === null || Le(N) ? (e.exit("htmlFlowData"), ne(N)) : (e.consume(N), Q);
|
|
15105
15105
|
}
|
|
15106
|
-
function ne(
|
|
15107
|
-
return e.check(mN, ie, Z)(
|
|
15106
|
+
function ne(N) {
|
|
15107
|
+
return e.check(mN, ie, Z)(N);
|
|
15108
15108
|
}
|
|
15109
|
-
function ie(
|
|
15110
|
-
return e.enter("lineEnding"), e.consume(
|
|
15109
|
+
function ie(N) {
|
|
15110
|
+
return e.enter("lineEnding"), e.consume(N), e.exit("lineEnding"), Te;
|
|
15111
15111
|
}
|
|
15112
|
-
function Te(
|
|
15113
|
-
return
|
|
15112
|
+
function Te(N) {
|
|
15113
|
+
return N === null || Le(N) ? ne(N) : (e.enter("htmlFlowData"), Q(N));
|
|
15114
15114
|
}
|
|
15115
|
-
function Oe(
|
|
15116
|
-
return
|
|
15115
|
+
function Oe(N) {
|
|
15116
|
+
return N === 45 ? (e.consume(N), v) : Q(N);
|
|
15117
15117
|
}
|
|
15118
|
-
function fe(
|
|
15119
|
-
return
|
|
15118
|
+
function fe(N) {
|
|
15119
|
+
return N === 47 ? (e.consume(N), u = "", W) : Q(N);
|
|
15120
15120
|
}
|
|
15121
|
-
function W(
|
|
15122
|
-
if (
|
|
15121
|
+
function W(N) {
|
|
15122
|
+
if (N === 62) {
|
|
15123
15123
|
const Se = u.toLowerCase();
|
|
15124
|
-
return U1.includes(Se) ? (e.consume(
|
|
15124
|
+
return U1.includes(Se) ? (e.consume(N), D) : Q(N);
|
|
15125
15125
|
}
|
|
15126
|
-
return Kt(
|
|
15126
|
+
return Kt(N) && u.length < 8 ? (e.consume(N), u += String.fromCharCode(N), W) : Q(N);
|
|
15127
15127
|
}
|
|
15128
|
-
function se(
|
|
15129
|
-
return
|
|
15128
|
+
function se(N) {
|
|
15129
|
+
return N === 93 ? (e.consume(N), v) : Q(N);
|
|
15130
15130
|
}
|
|
15131
|
-
function
|
|
15132
|
-
return
|
|
15131
|
+
function v(N) {
|
|
15132
|
+
return N === 62 ? (e.consume(N), D) : N === 45 && s === 2 ? (e.consume(N), v) : Q(N);
|
|
15133
15133
|
}
|
|
15134
|
-
function D(
|
|
15135
|
-
return
|
|
15134
|
+
function D(N) {
|
|
15135
|
+
return N === null || Le(N) ? (e.exit("htmlFlowData"), Z(N)) : (e.consume(N), D);
|
|
15136
15136
|
}
|
|
15137
|
-
function Z(
|
|
15138
|
-
return e.exit("htmlFlow"), t(
|
|
15137
|
+
function Z(N) {
|
|
15138
|
+
return e.exit("htmlFlow"), t(N);
|
|
15139
15139
|
}
|
|
15140
15140
|
}
|
|
15141
15141
|
function yN(e, t, n) {
|
|
@@ -15162,93 +15162,93 @@ function SN(e, t, n) {
|
|
|
15162
15162
|
const r = this;
|
|
15163
15163
|
let s, a, u;
|
|
15164
15164
|
return c;
|
|
15165
|
-
function c(
|
|
15166
|
-
return e.enter("htmlText"), e.enter("htmlTextData"), e.consume(
|
|
15165
|
+
function c(v) {
|
|
15166
|
+
return e.enter("htmlText"), e.enter("htmlTextData"), e.consume(v), f;
|
|
15167
15167
|
}
|
|
15168
|
-
function f(
|
|
15169
|
-
return
|
|
15168
|
+
function f(v) {
|
|
15169
|
+
return v === 33 ? (e.consume(v), h) : v === 47 ? (e.consume(v), Y) : v === 63 ? (e.consume(v), I) : Kt(v) ? (e.consume(v), pe) : n(v);
|
|
15170
15170
|
}
|
|
15171
|
-
function h(
|
|
15172
|
-
return
|
|
15171
|
+
function h(v) {
|
|
15172
|
+
return v === 45 ? (e.consume(v), p) : v === 91 ? (e.consume(v), a = 0, S) : Kt(v) ? (e.consume(v), k) : n(v);
|
|
15173
15173
|
}
|
|
15174
|
-
function p(
|
|
15175
|
-
return
|
|
15174
|
+
function p(v) {
|
|
15175
|
+
return v === 45 ? (e.consume(v), y) : n(v);
|
|
15176
15176
|
}
|
|
15177
|
-
function E(
|
|
15178
|
-
return
|
|
15177
|
+
function E(v) {
|
|
15178
|
+
return v === null ? n(v) : v === 45 ? (e.consume(v), b) : Le(v) ? (u = E, fe(v)) : (e.consume(v), E);
|
|
15179
15179
|
}
|
|
15180
|
-
function b(
|
|
15181
|
-
return
|
|
15180
|
+
function b(v) {
|
|
15181
|
+
return v === 45 ? (e.consume(v), y) : E(v);
|
|
15182
15182
|
}
|
|
15183
|
-
function y(
|
|
15184
|
-
return
|
|
15183
|
+
function y(v) {
|
|
15184
|
+
return v === 62 ? Oe(v) : v === 45 ? b(v) : E(v);
|
|
15185
15185
|
}
|
|
15186
|
-
function S(
|
|
15186
|
+
function S(v) {
|
|
15187
15187
|
const D = "CDATA[";
|
|
15188
|
-
return
|
|
15188
|
+
return v === D.charCodeAt(a++) ? (e.consume(v), a === D.length ? x : S) : n(v);
|
|
15189
15189
|
}
|
|
15190
|
-
function x(
|
|
15191
|
-
return
|
|
15190
|
+
function x(v) {
|
|
15191
|
+
return v === null ? n(v) : v === 93 ? (e.consume(v), A) : Le(v) ? (u = x, fe(v)) : (e.consume(v), x);
|
|
15192
15192
|
}
|
|
15193
|
-
function A(
|
|
15194
|
-
return
|
|
15193
|
+
function A(v) {
|
|
15194
|
+
return v === 93 ? (e.consume(v), C) : x(v);
|
|
15195
15195
|
}
|
|
15196
|
-
function v
|
|
15197
|
-
return
|
|
15196
|
+
function C(v) {
|
|
15197
|
+
return v === 62 ? Oe(v) : v === 93 ? (e.consume(v), C) : x(v);
|
|
15198
15198
|
}
|
|
15199
|
-
function
|
|
15200
|
-
return
|
|
15199
|
+
function k(v) {
|
|
15200
|
+
return v === null || v === 62 ? Oe(v) : Le(v) ? (u = k, fe(v)) : (e.consume(v), k);
|
|
15201
15201
|
}
|
|
15202
|
-
function I(
|
|
15203
|
-
return
|
|
15202
|
+
function I(v) {
|
|
15203
|
+
return v === null ? n(v) : v === 63 ? (e.consume(v), z) : Le(v) ? (u = I, fe(v)) : (e.consume(v), I);
|
|
15204
15204
|
}
|
|
15205
|
-
function z(
|
|
15206
|
-
return
|
|
15205
|
+
function z(v) {
|
|
15206
|
+
return v === 62 ? Oe(v) : I(v);
|
|
15207
15207
|
}
|
|
15208
|
-
function Y(
|
|
15209
|
-
return Kt(
|
|
15208
|
+
function Y(v) {
|
|
15209
|
+
return Kt(v) ? (e.consume(v), M) : n(v);
|
|
15210
15210
|
}
|
|
15211
|
-
function M(
|
|
15212
|
-
return
|
|
15211
|
+
function M(v) {
|
|
15212
|
+
return v === 45 || jt(v) ? (e.consume(v), M) : G(v);
|
|
15213
15213
|
}
|
|
15214
|
-
function G(
|
|
15215
|
-
return Le(
|
|
15214
|
+
function G(v) {
|
|
15215
|
+
return Le(v) ? (u = G, fe(v)) : qe(v) ? (e.consume(v), G) : Oe(v);
|
|
15216
15216
|
}
|
|
15217
|
-
function pe(
|
|
15218
|
-
return
|
|
15217
|
+
function pe(v) {
|
|
15218
|
+
return v === 45 || jt(v) ? (e.consume(v), pe) : v === 47 || v === 62 || et(v) ? be(v) : n(v);
|
|
15219
15219
|
}
|
|
15220
|
-
function be(
|
|
15221
|
-
return
|
|
15220
|
+
function be(v) {
|
|
15221
|
+
return v === 47 ? (e.consume(v), Oe) : v === 58 || v === 95 || Kt(v) ? (e.consume(v), F) : Le(v) ? (u = be, fe(v)) : qe(v) ? (e.consume(v), be) : Oe(v);
|
|
15222
15222
|
}
|
|
15223
|
-
function F(
|
|
15224
|
-
return
|
|
15223
|
+
function F(v) {
|
|
15224
|
+
return v === 45 || v === 46 || v === 58 || v === 95 || jt(v) ? (e.consume(v), F) : te(v);
|
|
15225
15225
|
}
|
|
15226
|
-
function te(
|
|
15227
|
-
return
|
|
15226
|
+
function te(v) {
|
|
15227
|
+
return v === 61 ? (e.consume(v), Q) : Le(v) ? (u = te, fe(v)) : qe(v) ? (e.consume(v), te) : be(v);
|
|
15228
15228
|
}
|
|
15229
|
-
function Q(
|
|
15230
|
-
return
|
|
15229
|
+
function Q(v) {
|
|
15230
|
+
return v === null || v === 60 || v === 61 || v === 62 || v === 96 ? n(v) : v === 34 || v === 39 ? (e.consume(v), s = v, ne) : Le(v) ? (u = Q, fe(v)) : qe(v) ? (e.consume(v), Q) : (e.consume(v), ie);
|
|
15231
15231
|
}
|
|
15232
|
-
function ne(
|
|
15233
|
-
return
|
|
15232
|
+
function ne(v) {
|
|
15233
|
+
return v === s ? (e.consume(v), s = void 0, Te) : v === null ? n(v) : Le(v) ? (u = ne, fe(v)) : (e.consume(v), ne);
|
|
15234
15234
|
}
|
|
15235
|
-
function ie(
|
|
15236
|
-
return
|
|
15235
|
+
function ie(v) {
|
|
15236
|
+
return v === null || v === 34 || v === 39 || v === 60 || v === 61 || v === 96 ? n(v) : v === 47 || v === 62 || et(v) ? be(v) : (e.consume(v), ie);
|
|
15237
15237
|
}
|
|
15238
|
-
function Te(
|
|
15239
|
-
return
|
|
15238
|
+
function Te(v) {
|
|
15239
|
+
return v === 47 || v === 62 || et(v) ? be(v) : n(v);
|
|
15240
15240
|
}
|
|
15241
|
-
function Oe(
|
|
15242
|
-
return
|
|
15241
|
+
function Oe(v) {
|
|
15242
|
+
return v === 62 ? (e.consume(v), e.exit("htmlTextData"), e.exit("htmlText"), t) : n(v);
|
|
15243
15243
|
}
|
|
15244
|
-
function fe(
|
|
15245
|
-
return e.exit("htmlTextData"), e.enter("lineEnding"), e.consume(
|
|
15244
|
+
function fe(v) {
|
|
15245
|
+
return e.exit("htmlTextData"), e.enter("lineEnding"), e.consume(v), e.exit("lineEnding"), W;
|
|
15246
15246
|
}
|
|
15247
|
-
function W(
|
|
15248
|
-
return qe(
|
|
15247
|
+
function W(v) {
|
|
15248
|
+
return qe(v) ? We(e, se, "linePrefix", r.parser.constructs.disable.null.includes("codeIndented") ? void 0 : 4)(v) : se(v);
|
|
15249
15249
|
}
|
|
15250
|
-
function se(
|
|
15251
|
-
return e.enter("htmlTextData"), u(
|
|
15250
|
+
function se(v) {
|
|
15251
|
+
return e.enter("htmlTextData"), u(v);
|
|
15252
15252
|
}
|
|
15253
15253
|
}
|
|
15254
15254
|
const mp = {
|
|
@@ -15762,7 +15762,7 @@ function u3(e, t, n) {
|
|
|
15762
15762
|
const f = {
|
|
15763
15763
|
attempt: G(Y),
|
|
15764
15764
|
check: G(M),
|
|
15765
|
-
consume:
|
|
15765
|
+
consume: k,
|
|
15766
15766
|
enter: I,
|
|
15767
15767
|
exit: z,
|
|
15768
15768
|
interrupt: G(M, {
|
|
@@ -15816,15 +15816,15 @@ function u3(e, t, n) {
|
|
|
15816
15816
|
const Q = u[r._index];
|
|
15817
15817
|
if (typeof Q == "string")
|
|
15818
15818
|
for (te = r._index, r._bufferIndex < 0 && (r._bufferIndex = 0); r._index === te && r._bufferIndex < Q.length; )
|
|
15819
|
-
|
|
15819
|
+
C(Q.charCodeAt(r._bufferIndex));
|
|
15820
15820
|
else
|
|
15821
|
-
|
|
15821
|
+
C(Q);
|
|
15822
15822
|
}
|
|
15823
15823
|
}
|
|
15824
|
-
function
|
|
15824
|
+
function C(te) {
|
|
15825
15825
|
p = p(te);
|
|
15826
15826
|
}
|
|
15827
|
-
function
|
|
15827
|
+
function k(te) {
|
|
15828
15828
|
Le(te) ? (r.line++, r.column = 1, r.offset += te === -3 ? 2 : 1, F()) : te !== -1 && (r.column++, r.offset++), r._bufferIndex < 0 ? r._index++ : (r._bufferIndex++, r._bufferIndex === // Points w/ non-negative `_bufferIndex` reference
|
|
15829
15829
|
// strings.
|
|
15830
15830
|
/** @type {string} */
|
|
@@ -15847,7 +15847,7 @@ function u3(e, t, n) {
|
|
|
15847
15847
|
function G(te, Q) {
|
|
15848
15848
|
return ne;
|
|
15849
15849
|
function ne(ie, Te, Oe) {
|
|
15850
|
-
let fe, W, se,
|
|
15850
|
+
let fe, W, se, v;
|
|
15851
15851
|
return Array.isArray(ie) ? (
|
|
15852
15852
|
/* c8 ignore next 1 */
|
|
15853
15853
|
Z(ie)
|
|
@@ -15871,12 +15871,12 @@ function u3(e, t, n) {
|
|
|
15871
15871
|
}
|
|
15872
15872
|
}
|
|
15873
15873
|
function Z(Ne) {
|
|
15874
|
-
return fe = Ne, W = 0, Ne.length === 0 ? Oe :
|
|
15874
|
+
return fe = Ne, W = 0, Ne.length === 0 ? Oe : N(Ne[W]);
|
|
15875
15875
|
}
|
|
15876
|
-
function
|
|
15876
|
+
function N(Ne) {
|
|
15877
15877
|
return Fe;
|
|
15878
15878
|
function Fe(Ae) {
|
|
15879
|
-
return
|
|
15879
|
+
return v = be(), se = Ne, Ne.partial || (h.currentConstruct = Ne), Ne.name && h.parser.constructs.disable.null.includes(Ne.name) ? Ie() : Ne.tokenize.call(
|
|
15880
15880
|
// If we do have fields, create an object w/ `context` as its
|
|
15881
15881
|
// prototype.
|
|
15882
15882
|
// This allows a “live binding”, which is needed for `interrupt`.
|
|
@@ -15888,10 +15888,10 @@ function u3(e, t, n) {
|
|
|
15888
15888
|
}
|
|
15889
15889
|
}
|
|
15890
15890
|
function Se(Ne) {
|
|
15891
|
-
return te(se,
|
|
15891
|
+
return te(se, v), Te;
|
|
15892
15892
|
}
|
|
15893
15893
|
function Ie(Ne) {
|
|
15894
|
-
return
|
|
15894
|
+
return v.restore(), ++W < fe.length ? N(fe[W]) : Oe;
|
|
15895
15895
|
}
|
|
15896
15896
|
}
|
|
15897
15897
|
}
|
|
@@ -16085,7 +16085,7 @@ function y3(e) {
|
|
|
16085
16085
|
listOrdered: a(Ir, E),
|
|
16086
16086
|
listUnordered: a(Ir),
|
|
16087
16087
|
paragraph: a(lo),
|
|
16088
|
-
reference:
|
|
16088
|
+
reference: N,
|
|
16089
16089
|
referenceString: u,
|
|
16090
16090
|
resourceDestinationString: u,
|
|
16091
16091
|
resourceTitleString: u,
|
|
@@ -16110,13 +16110,13 @@ function y3(e) {
|
|
|
16110
16110
|
codeFencedFenceInfo: y,
|
|
16111
16111
|
codeFencedFenceMeta: S,
|
|
16112
16112
|
codeFlowValue: F,
|
|
16113
|
-
codeIndented: f(
|
|
16113
|
+
codeIndented: f(C),
|
|
16114
16114
|
codeText: f(Te),
|
|
16115
16115
|
codeTextData: F,
|
|
16116
16116
|
data: F,
|
|
16117
16117
|
definition: f(),
|
|
16118
16118
|
definitionDestinationString: z,
|
|
16119
|
-
definitionLabelString:
|
|
16119
|
+
definitionLabelString: k,
|
|
16120
16120
|
definitionTitleString: I,
|
|
16121
16121
|
emphasis: f(),
|
|
16122
16122
|
hardBreakEscape: f(Q),
|
|
@@ -16135,7 +16135,7 @@ function y3(e) {
|
|
|
16135
16135
|
listUnordered: f(),
|
|
16136
16136
|
paragraph: f(),
|
|
16137
16137
|
referenceString: Se,
|
|
16138
|
-
resourceDestinationString:
|
|
16138
|
+
resourceDestinationString: v,
|
|
16139
16139
|
resourceTitleString: D,
|
|
16140
16140
|
resource: Z,
|
|
16141
16141
|
setextHeading: f(pe),
|
|
@@ -16309,11 +16309,11 @@ function y3(e) {
|
|
|
16309
16309
|
const re = this.resume(), ye = this.stack[this.stack.length - 1];
|
|
16310
16310
|
ye.value = re.replace(/^(\r?\n|\r)|(\r?\n|\r)$/g, ""), this.data.flowCodeInside = void 0;
|
|
16311
16311
|
}
|
|
16312
|
-
function
|
|
16312
|
+
function C() {
|
|
16313
16313
|
const re = this.resume(), ye = this.stack[this.stack.length - 1];
|
|
16314
16314
|
ye.value = re.replace(/(\r?\n|\r)$/g, "");
|
|
16315
16315
|
}
|
|
16316
|
-
function
|
|
16316
|
+
function k(re) {
|
|
16317
16317
|
const ye = this.resume(), De = this.stack[this.stack.length - 1];
|
|
16318
16318
|
De.label = ye, De.identifier = Vn(this.sliceSerialize(re)).toLowerCase();
|
|
16319
16319
|
}
|
|
@@ -16409,7 +16409,7 @@ function y3(e) {
|
|
|
16409
16409
|
} else
|
|
16410
16410
|
De.alt = ye;
|
|
16411
16411
|
}
|
|
16412
|
-
function
|
|
16412
|
+
function v() {
|
|
16413
16413
|
const re = this.resume(), ye = this.stack[this.stack.length - 1];
|
|
16414
16414
|
ye.url = re;
|
|
16415
16415
|
}
|
|
@@ -16420,7 +16420,7 @@ function y3(e) {
|
|
|
16420
16420
|
function Z() {
|
|
16421
16421
|
this.data.inReference = void 0;
|
|
16422
16422
|
}
|
|
16423
|
-
function
|
|
16423
|
+
function N() {
|
|
16424
16424
|
this.data.referenceType = "collapsed";
|
|
16425
16425
|
}
|
|
16426
16426
|
function Se(re) {
|
|
@@ -17164,8 +17164,8 @@ function Z3(e) {
|
|
|
17164
17164
|
const S = [], x = e.footnoteCounts.get(E);
|
|
17165
17165
|
for (; x !== void 0 && ++y <= x; ) {
|
|
17166
17166
|
S.length > 0 && S.push({ type: "text", value: " " });
|
|
17167
|
-
let
|
|
17168
|
-
typeof
|
|
17167
|
+
let k = typeof n == "string" ? n : n(f, y);
|
|
17168
|
+
typeof k == "string" && (k = { type: "text", value: k }), S.push({
|
|
17169
17169
|
type: "element",
|
|
17170
17170
|
tagName: "a",
|
|
17171
17171
|
properties: {
|
|
@@ -17174,22 +17174,22 @@ function Z3(e) {
|
|
|
17174
17174
|
ariaLabel: typeof r == "string" ? r : r(f, y),
|
|
17175
17175
|
className: ["data-footnote-backref"]
|
|
17176
17176
|
},
|
|
17177
|
-
children: Array.isArray(
|
|
17177
|
+
children: Array.isArray(k) ? k : [k]
|
|
17178
17178
|
});
|
|
17179
17179
|
}
|
|
17180
17180
|
const A = p[p.length - 1];
|
|
17181
17181
|
if (A && A.type === "element" && A.tagName === "p") {
|
|
17182
|
-
const
|
|
17183
|
-
|
|
17182
|
+
const k = A.children[A.children.length - 1];
|
|
17183
|
+
k && k.type === "text" ? k.value += " " : A.children.push({ type: "text", value: " " }), A.children.push(...S);
|
|
17184
17184
|
} else
|
|
17185
17185
|
p.push(...S);
|
|
17186
|
-
const
|
|
17186
|
+
const C = {
|
|
17187
17187
|
type: "element",
|
|
17188
17188
|
tagName: "li",
|
|
17189
17189
|
properties: { id: t + "fn-" + b },
|
|
17190
17190
|
children: e.wrap(p, !0)
|
|
17191
17191
|
};
|
|
17192
|
-
e.patch(h,
|
|
17192
|
+
e.patch(h, C), c.push(C);
|
|
17193
17193
|
}
|
|
17194
17194
|
if (c.length !== 0)
|
|
17195
17195
|
return {
|
|
@@ -17328,14 +17328,14 @@ function KT(e, t, n, r) {
|
|
|
17328
17328
|
if ((!t || a(f, h, p[p.length - 1] || void 0)) && (y = aO(n(f, p)), y[0] === Th))
|
|
17329
17329
|
return y;
|
|
17330
17330
|
if ("children" in f && f.children) {
|
|
17331
|
-
const
|
|
17331
|
+
const C = (
|
|
17332
17332
|
/** @type {UnistParent} */
|
|
17333
17333
|
f
|
|
17334
17334
|
);
|
|
17335
|
-
if (
|
|
17336
|
-
for (x = (r ?
|
|
17337
|
-
const
|
|
17338
|
-
if (S = c(
|
|
17335
|
+
if (C.children && y[0] !== oO)
|
|
17336
|
+
for (x = (r ? C.children.length : -1) + u, A = p.concat(C); x > -1 && x < C.children.length; ) {
|
|
17337
|
+
const k = C.children[x];
|
|
17338
|
+
if (S = c(k, x, A)(), S[0] === Th)
|
|
17339
17339
|
return S;
|
|
17340
17340
|
x = typeof S[1] == "number" ? S[1] : x + u;
|
|
17341
17341
|
}
|
|
@@ -17382,8 +17382,8 @@ function lO(e, t) {
|
|
|
17382
17382
|
return y(c, p, E);
|
|
17383
17383
|
if (c.options.passThrough && c.options.passThrough.includes(b)) {
|
|
17384
17384
|
if ("children" in p) {
|
|
17385
|
-
const x = p, { children: A } = x,
|
|
17386
|
-
return
|
|
17385
|
+
const x = p, { children: A } = x, C = Gt(x, ["children"]), k = zi(C);
|
|
17386
|
+
return k.children = c.all(p), k;
|
|
17387
17387
|
}
|
|
17388
17388
|
return zi(p);
|
|
17389
17389
|
}
|
|
@@ -17508,11 +17508,11 @@ function mO() {
|
|
|
17508
17508
|
return h[p];
|
|
17509
17509
|
};
|
|
17510
17510
|
return Pd = function f() {
|
|
17511
|
-
var h, p, E, b, y, S, x = arguments[0], A = 1,
|
|
17512
|
-
for (typeof x == "boolean" && (
|
|
17511
|
+
var h, p, E, b, y, S, x = arguments[0], A = 1, C = arguments.length, k = !1;
|
|
17512
|
+
for (typeof x == "boolean" && (k = x, x = arguments[1] || {}, A = 2), (x == null || typeof x != "object" && typeof x != "function") && (x = {}); A < C; ++A)
|
|
17513
17513
|
if (h = arguments[A], h != null)
|
|
17514
17514
|
for (p in h)
|
|
17515
|
-
E = c(x, p), b = c(h, p), x !== b && (
|
|
17515
|
+
E = c(x, p), b = c(h, p), x !== b && (k && b && (a(b) || (y = s(b))) ? (y ? (y = !1, S = E && s(E) ? E : []) : S = E && a(E) ? E : {}, u(x, { name: p, newValue: f(k, S, b) })) : typeof b != "undefined" && u(x, { name: p, newValue: b }));
|
|
17516
17516
|
return x;
|
|
17517
17517
|
}, Pd;
|
|
17518
17518
|
}
|
|
@@ -27359,9 +27359,9 @@ function Hl(e) {
|
|
|
27359
27359
|
f.current = c.current;
|
|
27360
27360
|
}, [s, e().value]);
|
|
27361
27361
|
const h = (y) => {
|
|
27362
|
-
var A,
|
|
27362
|
+
var A, C;
|
|
27363
27363
|
const S = f.current, x = Ls(y) ? y(S) : y;
|
|
27364
|
-
e().debug && console.log(`[bindable > ${e().debug}] setValue`, { next: x, prev: S }), u || a(x), n(x, S) || (
|
|
27364
|
+
e().debug && console.log(`[bindable > ${e().debug}] setValue`, { next: x, prev: S }), u || a(x), n(x, S) || (C = (A = e()).onChange) == null || C.call(A, x, S);
|
|
27365
27365
|
};
|
|
27366
27366
|
function p() {
|
|
27367
27367
|
return u ? e().value : s;
|
|
@@ -27453,9 +27453,9 @@ function Ec(e, t = {}) {
|
|
|
27453
27453
|
return (W = c.current) == null ? void 0 : W[fe].initial;
|
|
27454
27454
|
},
|
|
27455
27455
|
hash(fe) {
|
|
27456
|
-
var se,
|
|
27456
|
+
var se, v;
|
|
27457
27457
|
const W = (se = c.current) == null ? void 0 : se[fe].get();
|
|
27458
|
-
return (
|
|
27458
|
+
return (v = c.current) == null ? void 0 : v[fe].hash(W);
|
|
27459
27459
|
}
|
|
27460
27460
|
}, h = X.useRef(/* @__PURE__ */ new Map()), p = X.useRef(null), E = X.useRef(null), b = X.useRef({ type: "" }), y = () => oe(U({}, b.current), {
|
|
27461
27461
|
current() {
|
|
@@ -27478,43 +27478,43 @@ function Ec(e, t = {}) {
|
|
|
27478
27478
|
event: y(),
|
|
27479
27479
|
prop: a,
|
|
27480
27480
|
send: F,
|
|
27481
|
-
action:
|
|
27482
|
-
guard:
|
|
27481
|
+
action: C,
|
|
27482
|
+
guard: k,
|
|
27483
27483
|
track: K6,
|
|
27484
27484
|
refs: x,
|
|
27485
27485
|
computed: Y,
|
|
27486
27486
|
flush: PE,
|
|
27487
27487
|
scope: n,
|
|
27488
27488
|
choose: z
|
|
27489
|
-
}),
|
|
27489
|
+
}), C = (fe) => {
|
|
27490
27490
|
const W = Ls(fe) ? fe(A()) : fe;
|
|
27491
27491
|
if (!W) return;
|
|
27492
|
-
const se = W.map((
|
|
27493
|
-
var Z,
|
|
27494
|
-
const D = (
|
|
27495
|
-
return D || Ih(`[zag-js] No implementation found for action "${JSON.stringify(
|
|
27492
|
+
const se = W.map((v) => {
|
|
27493
|
+
var Z, N;
|
|
27494
|
+
const D = (N = (Z = e.implementations) == null ? void 0 : Z.actions) == null ? void 0 : N[v];
|
|
27495
|
+
return D || Ih(`[zag-js] No implementation found for action "${JSON.stringify(v)}"`), D;
|
|
27496
27496
|
});
|
|
27497
|
-
for (const
|
|
27498
|
-
|
|
27499
|
-
},
|
|
27497
|
+
for (const v of se)
|
|
27498
|
+
v == null || v(A());
|
|
27499
|
+
}, k = (fe) => {
|
|
27500
27500
|
var W, se;
|
|
27501
27501
|
return Ls(fe) ? fe(A()) : (se = (W = e.implementations) == null ? void 0 : W.guards) == null ? void 0 : se[fe](A());
|
|
27502
27502
|
}, I = (fe) => {
|
|
27503
27503
|
const W = Ls(fe) ? fe(A()) : fe;
|
|
27504
27504
|
if (!W) return;
|
|
27505
27505
|
const se = W.map((D) => {
|
|
27506
|
-
var
|
|
27507
|
-
const Z = (Se = (
|
|
27506
|
+
var N, Se;
|
|
27507
|
+
const Z = (Se = (N = e.implementations) == null ? void 0 : N.effects) == null ? void 0 : Se[D];
|
|
27508
27508
|
return Z || Ih(`[zag-js] No implementation found for effect "${JSON.stringify(D)}"`), Z;
|
|
27509
|
-
}),
|
|
27509
|
+
}), v = [];
|
|
27510
27510
|
for (const D of se) {
|
|
27511
27511
|
const Z = D == null ? void 0 : D(A());
|
|
27512
|
-
Z &&
|
|
27512
|
+
Z && v.push(Z);
|
|
27513
27513
|
}
|
|
27514
|
-
return () =>
|
|
27514
|
+
return () => v.forEach((D) => D == null ? void 0 : D());
|
|
27515
27515
|
}, z = (fe) => _L(fe).find((W) => {
|
|
27516
27516
|
let se = !W.guard;
|
|
27517
|
-
return kl(W.guard) ? se = !!
|
|
27517
|
+
return kl(W.guard) ? se = !!k(W.guard) : Ls(W.guard) && (se = W.guard(A())), se;
|
|
27518
27518
|
}), Y = (fe) => {
|
|
27519
27519
|
VL(e.computed, () => "[zag-js] No computed object found on machine");
|
|
27520
27520
|
const W = e.computed[fe];
|
|
@@ -27529,19 +27529,19 @@ function Ec(e, t = {}) {
|
|
|
27529
27529
|
}, M = Hl(() => ({
|
|
27530
27530
|
defaultValue: e.initialState({ prop: a }),
|
|
27531
27531
|
onChange(fe, W) {
|
|
27532
|
-
var
|
|
27532
|
+
var v, D, Z, N;
|
|
27533
27533
|
if (W) {
|
|
27534
27534
|
const Se = h.current.get(W);
|
|
27535
27535
|
Se == null || Se(), h.current.delete(W);
|
|
27536
27536
|
}
|
|
27537
|
-
W &&
|
|
27537
|
+
W && C((v = e.states[W]) == null ? void 0 : v.exit), C((D = p.current) == null ? void 0 : D.actions);
|
|
27538
27538
|
const se = I((Z = e.states[fe]) == null ? void 0 : Z.effects);
|
|
27539
27539
|
if (se && h.current.set(fe, se), W === Yd) {
|
|
27540
|
-
|
|
27540
|
+
C(e.entry);
|
|
27541
27541
|
const Se = I(e.effects);
|
|
27542
27542
|
Se && h.current.set(Yd, Se);
|
|
27543
27543
|
}
|
|
27544
|
-
|
|
27544
|
+
C((N = e.states[fe]) == null ? void 0 : N.entry);
|
|
27545
27545
|
}
|
|
27546
27546
|
})), G = X.useRef(void 0), pe = X.useRef(Is.NotStarted);
|
|
27547
27547
|
h2(() => {
|
|
@@ -27549,35 +27549,35 @@ function Ec(e, t = {}) {
|
|
|
27549
27549
|
var D;
|
|
27550
27550
|
const se = pe.current === Is.Started;
|
|
27551
27551
|
pe.current = Is.Started, r(se ? "rehydrating..." : "initializing...");
|
|
27552
|
-
const
|
|
27553
|
-
M.invoke(
|
|
27552
|
+
const v = (D = G.current) != null ? D : M.initial;
|
|
27553
|
+
M.invoke(v, se ? M.get() : Yd);
|
|
27554
27554
|
});
|
|
27555
27555
|
const fe = h.current, W = M.ref.current;
|
|
27556
27556
|
return () => {
|
|
27557
27557
|
r("unmounting..."), G.current = W, pe.current = Is.Stopped, fe.forEach((se) => se == null ? void 0 : se()), h.current = /* @__PURE__ */ new Map(), p.current = null, queueMicrotask(() => {
|
|
27558
|
-
|
|
27558
|
+
C(e.exit);
|
|
27559
27559
|
});
|
|
27560
27560
|
};
|
|
27561
27561
|
}, []);
|
|
27562
27562
|
const be = () => "ref" in M ? M.ref.current : M.get(), F = (fe) => {
|
|
27563
27563
|
queueMicrotask(() => {
|
|
27564
|
-
var
|
|
27564
|
+
var N, Se, Ie, Ne, Fe;
|
|
27565
27565
|
if (pe.current !== Is.Started) return;
|
|
27566
27566
|
E.current = b.current, b.current = fe;
|
|
27567
27567
|
let W = be();
|
|
27568
27568
|
const se = (
|
|
27569
27569
|
// @ts-ignore
|
|
27570
|
-
(Ie = (
|
|
27570
|
+
(Ie = (N = e.states[W].on) == null ? void 0 : N[fe.type]) != null ? Ie : (
|
|
27571
27571
|
// @ts-ignore
|
|
27572
27572
|
(Se = e.on) == null ? void 0 : Se[fe.type]
|
|
27573
27573
|
)
|
|
27574
|
-
),
|
|
27575
|
-
if (!
|
|
27576
|
-
p.current =
|
|
27577
|
-
const D = (Ne =
|
|
27578
|
-
r("transition", fe.type,
|
|
27574
|
+
), v = z(se);
|
|
27575
|
+
if (!v) return;
|
|
27576
|
+
p.current = v;
|
|
27577
|
+
const D = (Ne = v.target) != null ? Ne : W;
|
|
27578
|
+
r("transition", fe.type, v.target || W, `(${v.actions})`);
|
|
27579
27579
|
const Z = D !== W;
|
|
27580
|
-
Z ? Oa.flushSync(() => M.set(D)) :
|
|
27580
|
+
Z ? Oa.flushSync(() => M.set(D)) : v.reenter && !Z ? M.invoke(W, W) : C((Fe = v.actions) != null ? Fe : []);
|
|
27581
27581
|
});
|
|
27582
27582
|
};
|
|
27583
27583
|
return (Oe = e.watch) == null || Oe.call(e, A()), {
|
|
@@ -28090,13 +28090,13 @@ const E4 = (e, t, n) => Ue(null, null, function* () {
|
|
|
28090
28090
|
for (let x = 0; x < c.length; x++) {
|
|
28091
28091
|
const {
|
|
28092
28092
|
name: A,
|
|
28093
|
-
fn:
|
|
28093
|
+
fn: C
|
|
28094
28094
|
} = c[x], {
|
|
28095
|
-
x:
|
|
28095
|
+
x: k,
|
|
28096
28096
|
y: I,
|
|
28097
28097
|
data: z,
|
|
28098
28098
|
reset: Y
|
|
28099
|
-
} = yield
|
|
28099
|
+
} = yield C({
|
|
28100
28100
|
x: p,
|
|
28101
28101
|
y: E,
|
|
28102
28102
|
initialPlacement: r,
|
|
@@ -28110,7 +28110,7 @@ const E4 = (e, t, n) => Ue(null, null, function* () {
|
|
|
28110
28110
|
floating: t
|
|
28111
28111
|
}
|
|
28112
28112
|
});
|
|
28113
|
-
p =
|
|
28113
|
+
p = k != null ? k : p, E = I != null ? I : E, y = oe(U({}, y), {
|
|
28114
28114
|
[A]: U(U({}, y[A]), z)
|
|
28115
28115
|
}), Y && S <= 50 && (S++, typeof Y == "object" && (Y.placement && (b = Y.placement), Y.rects && (h = Y.rects === !0 ? yield u.getElementRects({
|
|
28116
28116
|
reference: e,
|
|
@@ -28146,12 +28146,12 @@ function _a(e, t) {
|
|
|
28146
28146
|
elementContext: E = "floating",
|
|
28147
28147
|
altBoundary: b = !1,
|
|
28148
28148
|
padding: y = 0
|
|
28149
|
-
} = wr(t, e), S = T2(y), A = c[b ? E === "floating" ? "reference" : "floating" : E],
|
|
28149
|
+
} = wr(t, e), S = T2(y), A = c[b ? E === "floating" ? "reference" : "floating" : E], C = $l(yield a.getClippingRect({
|
|
28150
28150
|
element: (n = yield a.isElement == null ? void 0 : a.isElement(A)) == null || n ? A : A.contextElement || (yield a.getDocumentElement == null ? void 0 : a.getDocumentElement(c.floating)),
|
|
28151
28151
|
boundary: h,
|
|
28152
28152
|
rootBoundary: p,
|
|
28153
28153
|
strategy: f
|
|
28154
|
-
})),
|
|
28154
|
+
})), k = E === "floating" ? {
|
|
28155
28155
|
x: r,
|
|
28156
28156
|
y: s,
|
|
28157
28157
|
width: u.floating.width,
|
|
@@ -28164,15 +28164,15 @@ function _a(e, t) {
|
|
|
28164
28164
|
y: 1
|
|
28165
28165
|
}, Y = $l(a.convertOffsetParentRelativeRectToViewportRelativeRect ? yield a.convertOffsetParentRelativeRectToViewportRelativeRect({
|
|
28166
28166
|
elements: c,
|
|
28167
|
-
rect:
|
|
28167
|
+
rect: k,
|
|
28168
28168
|
offsetParent: I,
|
|
28169
28169
|
strategy: f
|
|
28170
|
-
}) :
|
|
28170
|
+
}) : k);
|
|
28171
28171
|
return {
|
|
28172
|
-
top: (
|
|
28173
|
-
bottom: (Y.bottom -
|
|
28174
|
-
left: (
|
|
28175
|
-
right: (Y.right -
|
|
28172
|
+
top: (C.top - Y.top + S.top) / z.y,
|
|
28173
|
+
bottom: (Y.bottom - C.bottom + S.bottom) / z.y,
|
|
28174
|
+
left: (C.left - Y.left + S.left) / z.x,
|
|
28175
|
+
right: (Y.right - C.right + S.right) / z.x
|
|
28176
28176
|
};
|
|
28177
28177
|
});
|
|
28178
28178
|
}
|
|
@@ -28198,10 +28198,10 @@ const y4 = (e) => ({
|
|
|
28198
28198
|
const b = T2(E), y = {
|
|
28199
28199
|
x: r,
|
|
28200
28200
|
y: s
|
|
28201
|
-
}, S = zp(a), x = Hp(S), A = yield c.getDimensions(p),
|
|
28201
|
+
}, S = zp(a), x = Hp(S), A = yield c.getDimensions(p), C = S === "y", k = C ? "top" : "left", I = C ? "bottom" : "right", z = C ? "clientHeight" : "clientWidth", Y = u.reference[x] + u.reference[S] - y[S] - u.floating[x], M = y[S] - u.reference[S], G = yield c.getOffsetParent == null ? void 0 : c.getOffsetParent(p);
|
|
28202
28202
|
let pe = G ? G[z] : 0;
|
|
28203
28203
|
(!pe || !(yield c.isElement == null ? void 0 : c.isElement(G))) && (pe = f.floating[z] || u.floating[x]);
|
|
28204
|
-
const be = Y / 2 - M / 2, F = pe / 2 - A[x] / 2 - 1, te = ai(b[
|
|
28204
|
+
const be = Y / 2 - M / 2, F = pe / 2 - A[x] / 2 - 1, te = ai(b[k], F), Q = ai(b[I], F), ne = te, ie = pe - A[x] - Q, Te = pe / 2 - A[x] / 2 + be, Oe = Lh(ne, Te, ie), fe = !h.arrow && so(a) != null && Te !== Oe && u.reference[x] / 2 - (Te < ne ? te : Q) - A[x] / 2 < 0, W = fe ? Te < ne ? Te - ne : Te - ie : 0;
|
|
28205
28205
|
return {
|
|
28206
28206
|
[S]: y[S] + W,
|
|
28207
28207
|
data: U({
|
|
@@ -28235,7 +28235,7 @@ const y4 = (e) => ({
|
|
|
28235
28235
|
fallbackStrategy: S = "bestFit",
|
|
28236
28236
|
fallbackAxisSideDirection: x = "none",
|
|
28237
28237
|
flipAlignment: A = !0
|
|
28238
|
-
} = Te,
|
|
28238
|
+
} = Te, C = Gt(Te, [
|
|
28239
28239
|
"mainAxis",
|
|
28240
28240
|
"crossAxis",
|
|
28241
28241
|
"fallbackPlacements",
|
|
@@ -28245,11 +28245,11 @@ const y4 = (e) => ({
|
|
|
28245
28245
|
]);
|
|
28246
28246
|
if ((r = u.arrow) != null && r.alignmentOffset)
|
|
28247
28247
|
return {};
|
|
28248
|
-
const
|
|
28248
|
+
const k = kr(a), I = ir(f), z = kr(f) === f, Y = yield h.isRTL == null ? void 0 : h.isRTL(p.floating), M = y || (z || !A ? [jl(f)] : f4(f)), G = x !== "none";
|
|
28249
28249
|
!y && G && M.push(...m4(f, A, x, Y));
|
|
28250
|
-
const pe = [f, ...M], be = yield _a(n,
|
|
28250
|
+
const pe = [f, ...M], be = yield _a(n, C), F = [];
|
|
28251
28251
|
let te = ((s = u.flip) == null ? void 0 : s.overflows) || [];
|
|
28252
|
-
if (E && F.push(be[
|
|
28252
|
+
if (E && F.push(be[k]), b) {
|
|
28253
28253
|
const Oe = c4(a, c, Y);
|
|
28254
28254
|
F.push(be[Oe[0]], be[Oe[1]]);
|
|
28255
28255
|
}
|
|
@@ -28261,7 +28261,7 @@ const y4 = (e) => ({
|
|
|
28261
28261
|
const Oe = (((Q = u.flip) == null ? void 0 : Q.index) || 0) + 1, fe = pe[Oe];
|
|
28262
28262
|
if (fe && (!(b === "alignment" ? I !== ir(fe) : !1) || // We leave the current main axis only if every placement on that axis
|
|
28263
28263
|
// overflows the main axis.
|
|
28264
|
-
te.every((
|
|
28264
|
+
te.every((v) => ir(v.placement) === I ? v.overflows[0] > 0 : !0)))
|
|
28265
28265
|
return {
|
|
28266
28266
|
data: {
|
|
28267
28267
|
index: Oe,
|
|
@@ -28271,20 +28271,20 @@ const y4 = (e) => ({
|
|
|
28271
28271
|
placement: fe
|
|
28272
28272
|
}
|
|
28273
28273
|
};
|
|
28274
|
-
let W = (ne = te.filter((se) => se.overflows[0] <= 0).sort((se,
|
|
28274
|
+
let W = (ne = te.filter((se) => se.overflows[0] <= 0).sort((se, v) => se.overflows[1] - v.overflows[1])[0]) == null ? void 0 : ne.placement;
|
|
28275
28275
|
if (!W)
|
|
28276
28276
|
switch (S) {
|
|
28277
28277
|
case "bestFit": {
|
|
28278
28278
|
var ie;
|
|
28279
|
-
const se = (ie = te.filter((
|
|
28279
|
+
const se = (ie = te.filter((v) => {
|
|
28280
28280
|
if (G) {
|
|
28281
|
-
const D = ir(
|
|
28281
|
+
const D = ir(v.placement);
|
|
28282
28282
|
return D === I || // Create a bias to the `y` side axis due to horizontal
|
|
28283
28283
|
// reading directions favoring greater width.
|
|
28284
28284
|
D === "y";
|
|
28285
28285
|
}
|
|
28286
28286
|
return !0;
|
|
28287
|
-
}).map((
|
|
28287
|
+
}).map((v) => [v.placement, v.overflows.filter((D) => D > 0).reduce((D, Z) => D + Z, 0)]).sort((v, D) => v[1] - D[1])[0]) == null ? void 0 : ie[0];
|
|
28288
28288
|
se && (W = se);
|
|
28289
28289
|
break;
|
|
28290
28290
|
}
|
|
@@ -28420,22 +28420,22 @@ const _4 = function(e) {
|
|
|
28420
28420
|
x: r,
|
|
28421
28421
|
y: s,
|
|
28422
28422
|
placement: a
|
|
28423
|
-
} = n,
|
|
28423
|
+
} = n, C = wr(e, n), {
|
|
28424
28424
|
mainAxis: u = !0,
|
|
28425
28425
|
crossAxis: c = !1,
|
|
28426
28426
|
limiter: f = {
|
|
28427
|
-
fn: (
|
|
28427
|
+
fn: (k) => {
|
|
28428
28428
|
let {
|
|
28429
28429
|
x: I,
|
|
28430
28430
|
y: z
|
|
28431
|
-
} =
|
|
28431
|
+
} = k;
|
|
28432
28432
|
return {
|
|
28433
28433
|
x: I,
|
|
28434
28434
|
y: z
|
|
28435
28435
|
};
|
|
28436
28436
|
}
|
|
28437
28437
|
}
|
|
28438
|
-
} =
|
|
28438
|
+
} = C, h = Gt(C, [
|
|
28439
28439
|
"mainAxis",
|
|
28440
28440
|
"crossAxis",
|
|
28441
28441
|
"limiter"
|
|
@@ -28445,11 +28445,11 @@ const _4 = function(e) {
|
|
|
28445
28445
|
}, E = yield _a(n, h), b = ir(kr(a)), y = Up(b);
|
|
28446
28446
|
let S = p[y], x = p[b];
|
|
28447
28447
|
if (u) {
|
|
28448
|
-
const
|
|
28448
|
+
const k = y === "y" ? "top" : "left", I = y === "y" ? "bottom" : "right", z = S + E[k], Y = S - E[I];
|
|
28449
28449
|
S = Lh(z, S, Y);
|
|
28450
28450
|
}
|
|
28451
28451
|
if (c) {
|
|
28452
|
-
const
|
|
28452
|
+
const k = b === "y" ? "top" : "left", I = b === "y" ? "bottom" : "right", z = x + E[k], Y = x - E[I];
|
|
28453
28453
|
x = Lh(z, x, Y);
|
|
28454
28454
|
}
|
|
28455
28455
|
const A = f.fn(oe(U({}, n), {
|
|
@@ -28500,8 +28500,8 @@ const _4 = function(e) {
|
|
|
28500
28500
|
y < z ? y = z : y > Y && (y = Y);
|
|
28501
28501
|
}
|
|
28502
28502
|
if (h) {
|
|
28503
|
-
var
|
|
28504
|
-
const I = b === "y" ? "width" : "height", z = b2.has(kr(s)), Y = a.reference[E] - a.floating[I] + (z && ((
|
|
28503
|
+
var C, k;
|
|
28504
|
+
const I = b === "y" ? "width" : "height", z = b2.has(kr(s)), Y = a.reference[E] - a.floating[I] + (z && ((C = u.offset) == null ? void 0 : C[E]) || 0) + (z ? 0 : A.crossAxis), M = a.reference[E] + a.reference[I] + (z ? 0 : ((k = u.offset) == null ? void 0 : k[E]) || 0) - (z ? A.crossAxis : 0);
|
|
28505
28505
|
S < Y ? S = Y : S > M && (S = M);
|
|
28506
28506
|
}
|
|
28507
28507
|
return {
|
|
@@ -28531,9 +28531,9 @@ const _4 = function(e) {
|
|
|
28531
28531
|
width: x,
|
|
28532
28532
|
height: A
|
|
28533
28533
|
} = u.floating;
|
|
28534
|
-
let
|
|
28535
|
-
b === "top" || b === "bottom" ? (
|
|
28536
|
-
const I = A - E.top - E.bottom, z = x - E.left - E.right, Y = ai(A - E[
|
|
28534
|
+
let C, k;
|
|
28535
|
+
b === "top" || b === "bottom" ? (C = b, k = y === ((yield c.isRTL == null ? void 0 : c.isRTL(f.floating)) ? "start" : "end") ? "left" : "right") : (k = b, C = y === "end" ? "top" : "bottom");
|
|
28536
|
+
const I = A - E.top - E.bottom, z = x - E.left - E.right, Y = ai(A - E[C], I), M = ai(x - E[k], z), G = !n.middlewareData.shift;
|
|
28537
28537
|
let pe = Y, be = M;
|
|
28538
28538
|
if ((r = n.middlewareData.shift) != null && r.enabled.x && (be = z), (s = n.middlewareData.shift) != null && s.enabled.y && (pe = I), G && !y) {
|
|
28539
28539
|
const Q = yn(E.left, 0), ne = yn(E.right, 0), ie = yn(E.top, 0), Te = yn(E.bottom, 0);
|
|
@@ -28717,7 +28717,7 @@ function $i(e, t, n, r) {
|
|
|
28717
28717
|
const b = bn(a), y = r && qn(r) ? bn(r) : r;
|
|
28718
28718
|
let S = b, x = Mh(S);
|
|
28719
28719
|
for (; x && r && y !== S; ) {
|
|
28720
|
-
const A = Us(x),
|
|
28720
|
+
const A = Us(x), C = x.getBoundingClientRect(), k = Yn(x), I = C.left + (x.clientLeft + parseFloat(k.paddingLeft)) * A.x, z = C.top + (x.clientTop + parseFloat(k.paddingTop)) * A.y;
|
|
28721
28721
|
f *= A.x, h *= A.y, p *= A.x, E *= A.y, f += I, h += z, S = bn(x), x = Mh(S);
|
|
28722
28722
|
}
|
|
28723
28723
|
}
|
|
@@ -28977,8 +28977,8 @@ function Q4(e, t) {
|
|
|
28977
28977
|
} = h;
|
|
28978
28978
|
if (c || t(), !b || !y)
|
|
28979
28979
|
return;
|
|
28980
|
-
const S = cl(E), x = cl(s.clientWidth - (p + b)), A = cl(s.clientHeight - (E + y)),
|
|
28981
|
-
rootMargin: -S + "px " + -x + "px " + -A + "px " + -
|
|
28980
|
+
const S = cl(E), x = cl(s.clientWidth - (p + b)), A = cl(s.clientHeight - (E + y)), C = cl(p), I = {
|
|
28981
|
+
rootMargin: -S + "px " + -x + "px " + -A + "px " + -C + "px",
|
|
28982
28982
|
threshold: yn(0, ai(1, f)) || 1
|
|
28983
28983
|
};
|
|
28984
28984
|
let z = !0;
|
|
@@ -29014,16 +29014,16 @@ function X4(e, t, n, r) {
|
|
|
29014
29014
|
layoutShift: c = typeof IntersectionObserver == "function",
|
|
29015
29015
|
animationFrame: f = !1
|
|
29016
29016
|
} = r, h = Vp(e), p = s || a ? [...h ? xa(h) : [], ...xa(t)] : [];
|
|
29017
|
-
p.forEach((
|
|
29018
|
-
s &&
|
|
29017
|
+
p.forEach((C) => {
|
|
29018
|
+
s && C.addEventListener("scroll", n, {
|
|
29019
29019
|
passive: !0
|
|
29020
|
-
}), a &&
|
|
29020
|
+
}), a && C.addEventListener("resize", n);
|
|
29021
29021
|
});
|
|
29022
29022
|
const E = h && c ? Q4(h, n) : null;
|
|
29023
29023
|
let b = -1, y = null;
|
|
29024
|
-
u && (y = new ResizeObserver((
|
|
29025
|
-
let [
|
|
29026
|
-
|
|
29024
|
+
u && (y = new ResizeObserver((C) => {
|
|
29025
|
+
let [k] = C;
|
|
29026
|
+
k && k.target === h && y && (y.unobserve(t), cancelAnimationFrame(b), b = requestAnimationFrame(() => {
|
|
29027
29027
|
var I;
|
|
29028
29028
|
(I = y) == null || I.observe(t);
|
|
29029
29029
|
})), n();
|
|
@@ -29031,14 +29031,14 @@ function X4(e, t, n, r) {
|
|
|
29031
29031
|
let S, x = f ? $i(e) : null;
|
|
29032
29032
|
f && A();
|
|
29033
29033
|
function A() {
|
|
29034
|
-
const
|
|
29035
|
-
x && !k2(x,
|
|
29034
|
+
const C = $i(e);
|
|
29035
|
+
x && !k2(x, C) && n(), x = C, S = requestAnimationFrame(A);
|
|
29036
29036
|
}
|
|
29037
29037
|
return n(), () => {
|
|
29038
|
-
var
|
|
29039
|
-
p.forEach((
|
|
29040
|
-
s &&
|
|
29041
|
-
}), E == null || E(), (
|
|
29038
|
+
var C;
|
|
29039
|
+
p.forEach((k) => {
|
|
29040
|
+
s && k.removeEventListener("scroll", n), a && k.removeEventListener("resize", n);
|
|
29041
|
+
}), E == null || E(), (C = y) == null || C.disconnect(), y = null, f && cancelAnimationFrame(S);
|
|
29042
29042
|
};
|
|
29043
29043
|
}
|
|
29044
29044
|
const J4 = _4, Z4 = x4, eD = T4, tD = C4, nD = b4, rD = y4, iD = A4, sD = (e, t, n) => {
|
|
@@ -29092,12 +29092,12 @@ function lD(e, t) {
|
|
|
29092
29092
|
name: "transformOrigin",
|
|
29093
29093
|
fn(n) {
|
|
29094
29094
|
var be, F, te, Q, ne;
|
|
29095
|
-
const { elements: r, middlewareData: s, placement: a, rects: u, y: c } = n, f = a.split("-")[0], h = uD(f), p = ((be = s.arrow) == null ? void 0 : be.x) || 0, E = ((F = s.arrow) == null ? void 0 : F.y) || 0, b = (t == null ? void 0 : t.clientWidth) || 0, y = (t == null ? void 0 : t.clientHeight) || 0, S = p + b / 2, x = E + y / 2, A = Math.abs(((te = s.shift) == null ? void 0 : te.y) || 0),
|
|
29095
|
+
const { elements: r, middlewareData: s, placement: a, rects: u, y: c } = n, f = a.split("-")[0], h = uD(f), p = ((be = s.arrow) == null ? void 0 : be.x) || 0, E = ((F = s.arrow) == null ? void 0 : F.y) || 0, b = (t == null ? void 0 : t.clientWidth) || 0, y = (t == null ? void 0 : t.clientHeight) || 0, S = p + b / 2, x = E + y / 2, A = Math.abs(((te = s.shift) == null ? void 0 : te.y) || 0), C = u.reference.height / 2, k = y / 2, I = (ne = (Q = e.offset) == null ? void 0 : Q.mainAxis) != null ? ne : e.gutter, z = typeof I == "number" ? I + k : I != null ? I : k, Y = A > z, M = {
|
|
29096
29096
|
top: `${S}px calc(100% + ${z}px)`,
|
|
29097
29097
|
bottom: `${S}px ${-z}px`,
|
|
29098
29098
|
left: `calc(100% + ${z}px) ${x}px`,
|
|
29099
29099
|
right: `${-z}px ${x}px`
|
|
29100
|
-
}[f], G = `${S}px ${u.reference.y +
|
|
29100
|
+
}[f], G = `${S}px ${u.reference.y + C - c}px`, pe = !!e.overlap && h === "y" && Y;
|
|
29101
29101
|
return r.floating.style.setProperty(
|
|
29102
29102
|
Cr.transformOrigin.variable,
|
|
29103
29103
|
pe ? G : M
|
|
@@ -29232,8 +29232,8 @@ function SD(e, t, n = {}) {
|
|
|
29232
29232
|
strategy: f
|
|
29233
29233
|
});
|
|
29234
29234
|
h == null || h(x), p == null || p({ placed: !0 });
|
|
29235
|
-
const A = to(t),
|
|
29236
|
-
t.style.setProperty("--x", `${
|
|
29235
|
+
const A = to(t), C = VE(A, x.x), k = VE(A, x.y);
|
|
29236
|
+
t.style.setProperty("--x", `${C}px`), t.style.setProperty("--y", `${k}px`), s.hideWhenDetached && (((z = x.middlewareData.hide) == null ? void 0 : z.referenceHidden) ? (t.style.setProperty("visibility", "hidden"), t.style.setProperty("pointer-events", "none")) : (t.style.removeProperty("visibility"), t.style.removeProperty("pointer-events")));
|
|
29237
29237
|
const I = t.firstElementChild;
|
|
29238
29238
|
if (I) {
|
|
29239
29239
|
const Y = no(I);
|
|
@@ -29322,8 +29322,8 @@ var ws = /* @__PURE__ */ new WeakMap(), fl = /* @__PURE__ */ new WeakMap(), dl =
|
|
|
29322
29322
|
else
|
|
29323
29323
|
try {
|
|
29324
29324
|
if (vD(S)) return;
|
|
29325
|
-
const A = S.getAttribute(s) === "true",
|
|
29326
|
-
ws.set(S,
|
|
29325
|
+
const A = S.getAttribute(s) === "true", C = (ws.get(S) || 0) + 1, k = (c.get(S) || 0) + 1;
|
|
29326
|
+
ws.set(S, C), c.set(S, k), f.push(S), C === 1 && A && fl.set(S, !0), k === 1 && S.setAttribute(r, ""), A || S.setAttribute(s, "true");
|
|
29327
29327
|
} catch (x) {
|
|
29328
29328
|
console.error("[zag-js > ariaHidden] cannot operate on ", S, x);
|
|
29329
29329
|
}
|
|
@@ -29490,10 +29490,10 @@ function MD(e, t) {
|
|
|
29490
29490
|
}
|
|
29491
29491
|
I.pointerType === "touch" ? (y.forEach((Y) => Y()), y.add(Ot(f, "click", z, { once: !0 })), y.add(E.addEventListener("click", z, { once: !0 })), y.add(p.addEventListener("click", z, { once: !0 }))) : z();
|
|
29492
29492
|
}
|
|
29493
|
-
const A = /* @__PURE__ */ new Set(),
|
|
29493
|
+
const A = /* @__PURE__ */ new Set(), C = setTimeout(() => {
|
|
29494
29494
|
A.add(Ot(f, "pointerdown", x, !0)), A.add(E.addEventListener("pointerdown", x, !0)), A.add(p.addEventListener("pointerdown", x, !0));
|
|
29495
29495
|
}, 0);
|
|
29496
|
-
function
|
|
29496
|
+
function k(I) {
|
|
29497
29497
|
(u ? xt : (Y) => Y())(() => {
|
|
29498
29498
|
var G, pe;
|
|
29499
29499
|
const Y = (pe = (G = I == null ? void 0 : I.composedPath) == null ? void 0 : G.call(I)) != null ? pe : [I == null ? void 0 : I.target], M = S ? Y[0] : $n(I);
|
|
@@ -29515,8 +29515,8 @@ function MD(e, t) {
|
|
|
29515
29515
|
}
|
|
29516
29516
|
});
|
|
29517
29517
|
}
|
|
29518
|
-
return kE() || (A.add(Ot(f, "focusin",
|
|
29519
|
-
clearTimeout(
|
|
29518
|
+
return kE() || (A.add(Ot(f, "focusin", k, !0)), A.add(E.addEventListener("focusin", k, !0)), A.add(p.addEventListener("focusin", k, !0))), () => {
|
|
29519
|
+
clearTimeout(C), y.forEach((I) => I()), A.forEach((I) => I());
|
|
29520
29520
|
};
|
|
29521
29521
|
}
|
|
29522
29522
|
function FD(e, t) {
|
|
@@ -29676,14 +29676,14 @@ function $D(e, t) {
|
|
|
29676
29676
|
const { onDismiss: r, onRequestDismiss: s, pointerBlocking: a, exclude: u, debug: c, type: f = "dialog" } = t, h = { dismiss: r, node: e, type: f, pointerBlocking: a, requestDismiss: s };
|
|
29677
29677
|
Nn.add(h), JE();
|
|
29678
29678
|
function p(x) {
|
|
29679
|
-
var
|
|
29679
|
+
var C, k;
|
|
29680
29680
|
const A = $n(x.detail.originalEvent);
|
|
29681
|
-
Nn.isBelowPointerBlockingLayer(e) || Nn.isInBranch(A) || ((
|
|
29681
|
+
Nn.isBelowPointerBlockingLayer(e) || Nn.isInBranch(A) || ((C = t.onPointerDownOutside) == null || C.call(t, x), (k = t.onInteractOutside) == null || k.call(t, x), !x.defaultPrevented && (c && console.log("onPointerDownOutside:", x.detail.originalEvent), r == null || r()));
|
|
29682
29682
|
}
|
|
29683
29683
|
function E(x) {
|
|
29684
|
-
var
|
|
29684
|
+
var C, k;
|
|
29685
29685
|
const A = $n(x.detail.originalEvent);
|
|
29686
|
-
Nn.isInBranch(A) || ((
|
|
29686
|
+
Nn.isInBranch(A) || ((C = t.onFocusOutside) == null || C.call(t, x), (k = t.onInteractOutside) == null || k.call(t, x), !x.defaultPrevented && (c && console.log("onFocusOutside:", x.detail.originalEvent), r == null || r()));
|
|
29687
29687
|
}
|
|
29688
29688
|
function b(x) {
|
|
29689
29689
|
var A;
|
|
@@ -29692,8 +29692,8 @@ function $D(e, t) {
|
|
|
29692
29692
|
function y(x) {
|
|
29693
29693
|
var I;
|
|
29694
29694
|
if (!e) return !1;
|
|
29695
|
-
const A = typeof u == "function" ? u() : u,
|
|
29696
|
-
return
|
|
29695
|
+
const A = typeof u == "function" ? u() : u, C = Array.isArray(A) ? A : [A], k = (I = t.persistentElements) == null ? void 0 : I.map((z) => z()).filter(Rt);
|
|
29696
|
+
return k && C.push(...k), C.some((z) => $s(z, x)) || Nn.isInNestedLayer(e, x);
|
|
29697
29697
|
}
|
|
29698
29698
|
const S = [
|
|
29699
29699
|
a ? jD(e, t.persistentElements) : void 0,
|
|
@@ -30089,11 +30089,11 @@ function L2(e) {
|
|
|
30089
30089
|
return !u && c > 0 && (S[h] = `${c}px`), Ul(s, S);
|
|
30090
30090
|
}, E = () => {
|
|
30091
30091
|
var Y, M;
|
|
30092
|
-
const { scrollX: S, scrollY: x, visualViewport: A } = n,
|
|
30092
|
+
const { scrollX: S, scrollY: x, visualViewport: A } = n, C = (Y = A == null ? void 0 : A.offsetLeft) != null ? Y : 0, k = (M = A == null ? void 0 : A.offsetTop) != null ? M : 0, I = {
|
|
30093
30093
|
position: "fixed",
|
|
30094
30094
|
overflow: "hidden",
|
|
30095
|
-
top: `${-(x - Math.floor(
|
|
30096
|
-
left: `${-(S - Math.floor(
|
|
30095
|
+
top: `${-(x - Math.floor(k))}px`,
|
|
30096
|
+
left: `${-(S - Math.floor(C))}px`,
|
|
30097
30097
|
right: "0"
|
|
30098
30098
|
};
|
|
30099
30099
|
!u && c > 0 && (I[h] = `${c}px`);
|
|
@@ -30756,7 +30756,7 @@ var ay = (e) => [...new Set(e)], uy = (e, t) => (n) => Math.max(e, Math.min(t, n
|
|
|
30756
30756
|
t.setAttribute("tabindex", n.length > 0 ? "-1" : "0");
|
|
30757
30757
|
};
|
|
30758
30758
|
function _5(e, t) {
|
|
30759
|
-
const { state: n, context: r, computed: s, send: a, scope: u, prop: c } = e, f = n.matches("autoplay"), h = n.matches("dragging"), p = s("canScrollNext"), E = s("canScrollPrev"), b = s("isHorizontal"), y = Array.from(r.get("pageSnapPoints")), S = r.get("page"), x = c("slidesPerPage"), A = c("padding"),
|
|
30759
|
+
const { state: n, context: r, computed: s, send: a, scope: u, prop: c } = e, f = n.matches("autoplay"), h = n.matches("dragging"), p = s("canScrollNext"), E = s("canScrollPrev"), b = s("isHorizontal"), y = Array.from(r.get("pageSnapPoints")), S = r.get("page"), x = c("slidesPerPage"), A = c("padding"), C = c("translations");
|
|
30760
30760
|
return {
|
|
30761
30761
|
isPlaying: f,
|
|
30762
30762
|
isDragging: h,
|
|
@@ -30767,17 +30767,17 @@ function _5(e, t) {
|
|
|
30767
30767
|
getProgress() {
|
|
30768
30768
|
return S / y.length;
|
|
30769
30769
|
},
|
|
30770
|
-
scrollToIndex(
|
|
30771
|
-
a({ type: "INDEX.SET", index:
|
|
30770
|
+
scrollToIndex(k, I) {
|
|
30771
|
+
a({ type: "INDEX.SET", index: k, instant: I });
|
|
30772
30772
|
},
|
|
30773
|
-
scrollTo(
|
|
30774
|
-
a({ type: "PAGE.SET", index:
|
|
30773
|
+
scrollTo(k, I) {
|
|
30774
|
+
a({ type: "PAGE.SET", index: k, instant: I });
|
|
30775
30775
|
},
|
|
30776
|
-
scrollNext(
|
|
30777
|
-
a({ type: "PAGE.NEXT", instant:
|
|
30776
|
+
scrollNext(k) {
|
|
30777
|
+
a({ type: "PAGE.NEXT", instant: k });
|
|
30778
30778
|
},
|
|
30779
|
-
scrollPrev(
|
|
30780
|
-
a({ type: "PAGE.PREV", instant:
|
|
30779
|
+
scrollPrev(k) {
|
|
30780
|
+
a({ type: "PAGE.PREV", instant: k });
|
|
30781
30781
|
},
|
|
30782
30782
|
play() {
|
|
30783
30783
|
a({ type: "AUTOPLAY.START" });
|
|
@@ -30785,8 +30785,8 @@ function _5(e, t) {
|
|
|
30785
30785
|
pause() {
|
|
30786
30786
|
a({ type: "AUTOPLAY.PAUSE" });
|
|
30787
30787
|
},
|
|
30788
|
-
isInView(
|
|
30789
|
-
return Array.from(r.get("slidesInView")).includes(
|
|
30788
|
+
isInView(k) {
|
|
30789
|
+
return Array.from(r.get("slidesInView")).includes(k);
|
|
30790
30790
|
},
|
|
30791
30791
|
refresh() {
|
|
30792
30792
|
a({ type: "SNAP.REFRESH" });
|
|
@@ -30812,20 +30812,20 @@ function _5(e, t) {
|
|
|
30812
30812
|
"data-dragging": Os(h),
|
|
30813
30813
|
dir: c("dir"),
|
|
30814
30814
|
"aria-live": f ? "off" : "polite",
|
|
30815
|
-
onFocus(
|
|
30816
|
-
$s(
|
|
30815
|
+
onFocus(k) {
|
|
30816
|
+
$s(k.currentTarget, $n(k)) && a({ type: "VIEWPORT.FOCUS" });
|
|
30817
30817
|
},
|
|
30818
|
-
onBlur(
|
|
30819
|
-
$s(
|
|
30818
|
+
onBlur(k) {
|
|
30819
|
+
$s(k.currentTarget, k.relatedTarget) || a({ type: "VIEWPORT.BLUR" });
|
|
30820
30820
|
},
|
|
30821
|
-
onMouseDown(
|
|
30822
|
-
if (
|
|
30823
|
-
const I = $n(
|
|
30824
|
-
or(I) && I !==
|
|
30821
|
+
onMouseDown(k) {
|
|
30822
|
+
if (k.defaultPrevented || !c("allowMouseDrag") || !o2(k)) return;
|
|
30823
|
+
const I = $n(k);
|
|
30824
|
+
or(I) && I !== k.currentTarget || (k.preventDefault(), a({ type: "DRAGGING.START" }));
|
|
30825
30825
|
},
|
|
30826
|
-
onWheel: UL((
|
|
30826
|
+
onWheel: UL((k) => {
|
|
30827
30827
|
const I = c("orientation") === "horizontal" ? "deltaX" : "deltaY";
|
|
30828
|
-
|
|
30828
|
+
k[I] < 0 && !s("canScrollPrev") || k[I] > 0 && !s("canScrollNext") || a({ type: "USER.SCROLL" });
|
|
30829
30829
|
}, 150),
|
|
30830
30830
|
onTouchStart() {
|
|
30831
30831
|
a({ type: "USER.SCROLL" });
|
|
@@ -30844,23 +30844,23 @@ function _5(e, t) {
|
|
|
30844
30844
|
}
|
|
30845
30845
|
}));
|
|
30846
30846
|
},
|
|
30847
|
-
getItemProps(
|
|
30848
|
-
const I = r.get("slidesInView").includes(
|
|
30847
|
+
getItemProps(k) {
|
|
30848
|
+
const I = r.get("slidesInView").includes(k.index);
|
|
30849
30849
|
return t.element(oe(U({}, xr.item.attrs), {
|
|
30850
|
-
id: E5(u,
|
|
30850
|
+
id: E5(u, k.index),
|
|
30851
30851
|
dir: c("dir"),
|
|
30852
30852
|
role: "group",
|
|
30853
|
-
"data-index":
|
|
30853
|
+
"data-index": k.index,
|
|
30854
30854
|
"data-inview": Os(I),
|
|
30855
30855
|
"aria-roledescription": "slide",
|
|
30856
30856
|
"data-orientation": c("orientation"),
|
|
30857
|
-
"aria-label":
|
|
30857
|
+
"aria-label": C.item(k.index, c("slideCount")),
|
|
30858
30858
|
"aria-hidden": t2(!I),
|
|
30859
30859
|
style: {
|
|
30860
30860
|
scrollSnapAlign: (() => {
|
|
30861
30861
|
var pe;
|
|
30862
|
-
const z = (pe =
|
|
30863
|
-
return (
|
|
30862
|
+
const z = (pe = k.snapAlign) != null ? pe : "start", Y = c("slidesPerMove"), M = Y === "auto" ? Math.floor(c("slidesPerPage")) : Y;
|
|
30863
|
+
return (k.index + M) % M === 0 ? z : void 0;
|
|
30864
30864
|
})()
|
|
30865
30865
|
}
|
|
30866
30866
|
}));
|
|
@@ -30876,11 +30876,11 @@ function _5(e, t) {
|
|
|
30876
30876
|
type: "button",
|
|
30877
30877
|
disabled: !E,
|
|
30878
30878
|
dir: c("dir"),
|
|
30879
|
-
"aria-label":
|
|
30879
|
+
"aria-label": C.prevTrigger,
|
|
30880
30880
|
"data-orientation": c("orientation"),
|
|
30881
30881
|
"aria-controls": Ol(u),
|
|
30882
|
-
onClick(
|
|
30883
|
-
|
|
30882
|
+
onClick(k) {
|
|
30883
|
+
k.defaultPrevented || a({ type: "PAGE.PREV", src: "trigger" });
|
|
30884
30884
|
}
|
|
30885
30885
|
}));
|
|
30886
30886
|
},
|
|
@@ -30889,12 +30889,12 @@ function _5(e, t) {
|
|
|
30889
30889
|
dir: c("dir"),
|
|
30890
30890
|
id: y5(u),
|
|
30891
30891
|
type: "button",
|
|
30892
|
-
"aria-label":
|
|
30892
|
+
"aria-label": C.nextTrigger,
|
|
30893
30893
|
"data-orientation": c("orientation"),
|
|
30894
30894
|
"aria-controls": Ol(u),
|
|
30895
30895
|
disabled: !p,
|
|
30896
|
-
onClick(
|
|
30897
|
-
|
|
30896
|
+
onClick(k) {
|
|
30897
|
+
k.defaultPrevented || a({ type: "PAGE.NEXT", src: "trigger" });
|
|
30898
30898
|
}
|
|
30899
30899
|
}));
|
|
30900
30900
|
},
|
|
@@ -30903,8 +30903,8 @@ function _5(e, t) {
|
|
|
30903
30903
|
dir: c("dir"),
|
|
30904
30904
|
id: b5(u),
|
|
30905
30905
|
"data-orientation": c("orientation"),
|
|
30906
|
-
onKeyDown(
|
|
30907
|
-
if (
|
|
30906
|
+
onKeyDown(k) {
|
|
30907
|
+
if (k.defaultPrevented) return;
|
|
30908
30908
|
const I = "indicator", z = {
|
|
30909
30909
|
ArrowDown(G) {
|
|
30910
30910
|
b || (a({ type: "PAGE.NEXT", src: I }), G.preventDefault());
|
|
@@ -30924,26 +30924,26 @@ function _5(e, t) {
|
|
|
30924
30924
|
End(G) {
|
|
30925
30925
|
a({ type: "PAGE.SET", index: y.length - 1, src: I }), G.preventDefault();
|
|
30926
30926
|
}
|
|
30927
|
-
}, Y = _6(
|
|
30927
|
+
}, Y = _6(k, {
|
|
30928
30928
|
dir: c("dir"),
|
|
30929
30929
|
orientation: c("orientation")
|
|
30930
30930
|
}), M = z[Y];
|
|
30931
|
-
M == null || M(
|
|
30931
|
+
M == null || M(k);
|
|
30932
30932
|
}
|
|
30933
30933
|
}));
|
|
30934
30934
|
},
|
|
30935
|
-
getIndicatorProps(
|
|
30935
|
+
getIndicatorProps(k) {
|
|
30936
30936
|
return t.button(oe(U({}, xr.indicator.attrs), {
|
|
30937
30937
|
dir: c("dir"),
|
|
30938
|
-
id: K2(u,
|
|
30938
|
+
id: K2(u, k.index),
|
|
30939
30939
|
type: "button",
|
|
30940
30940
|
"data-orientation": c("orientation"),
|
|
30941
|
-
"data-index":
|
|
30942
|
-
"data-readonly": Os(
|
|
30943
|
-
"data-current": Os(
|
|
30944
|
-
"aria-label":
|
|
30941
|
+
"data-index": k.index,
|
|
30942
|
+
"data-readonly": Os(k.readOnly),
|
|
30943
|
+
"data-current": Os(k.index === S),
|
|
30944
|
+
"aria-label": C.indicator(k.index),
|
|
30945
30945
|
onClick(I) {
|
|
30946
|
-
I.defaultPrevented ||
|
|
30946
|
+
I.defaultPrevented || k.readOnly || a({ type: "PAGE.SET", index: k.index, src: "indicator" });
|
|
30947
30947
|
}
|
|
30948
30948
|
}));
|
|
30949
30949
|
},
|
|
@@ -30952,9 +30952,9 @@ function _5(e, t) {
|
|
|
30952
30952
|
type: "button",
|
|
30953
30953
|
"data-orientation": c("orientation"),
|
|
30954
30954
|
"data-pressed": Os(f),
|
|
30955
|
-
"aria-label": f ?
|
|
30956
|
-
onClick(
|
|
30957
|
-
|
|
30955
|
+
"aria-label": f ? C.autoplayStop : C.autoplayStart,
|
|
30956
|
+
onClick(k) {
|
|
30957
|
+
k.defaultPrevented || a({ type: f ? "AUTOPLAY.PAUSE" : "AUTOPLAY.START" });
|
|
30958
30958
|
}
|
|
30959
30959
|
}));
|
|
30960
30960
|
}
|
|
@@ -31444,7 +31444,7 @@ const v5 = 180, w5 = (e) => {
|
|
|
31444
31444
|
X.useLayoutEffect(() => {
|
|
31445
31445
|
y.current && x(y.current.getBoundingClientRect().width);
|
|
31446
31446
|
}, [A, b]);
|
|
31447
|
-
const
|
|
31447
|
+
const C = w5(r), k = n + C, I = S > 0 ? (S + C) / k : 1, z = Math.max(1, Math.floor(I));
|
|
31448
31448
|
if (b === 0) return null;
|
|
31449
31449
|
const Y = b > z, M = Math.ceil(b / z), G = Y ? Math.max(1, I) : z;
|
|
31450
31450
|
return /* @__PURE__ */ P.jsxs(
|
|
@@ -32364,7 +32364,7 @@ function o8(e, t, n) {
|
|
|
32364
32364
|
const E = p[p.length - 1], b = a[u][0], y = a[u][1];
|
|
32365
32365
|
let S = 0;
|
|
32366
32366
|
const A = E.children.indexOf(h);
|
|
32367
|
-
let
|
|
32367
|
+
let C = !1, k = [];
|
|
32368
32368
|
b.lastIndex = 0;
|
|
32369
32369
|
let I = b.exec(h.value);
|
|
32370
32370
|
for (; I; ) {
|
|
@@ -32374,14 +32374,14 @@ function o8(e, t, n) {
|
|
|
32374
32374
|
stack: [...p, h]
|
|
32375
32375
|
};
|
|
32376
32376
|
let M = y(...I, Y);
|
|
32377
|
-
if (typeof M == "string" && (M = M.length > 0 ? { type: "text", value: M } : void 0), M === !1 ? b.lastIndex = z + 1 : (S !== z &&
|
|
32377
|
+
if (typeof M == "string" && (M = M.length > 0 ? { type: "text", value: M } : void 0), M === !1 ? b.lastIndex = z + 1 : (S !== z && k.push({
|
|
32378
32378
|
type: "text",
|
|
32379
32379
|
value: h.value.slice(S, z)
|
|
32380
|
-
}), Array.isArray(M) ?
|
|
32380
|
+
}), Array.isArray(M) ? k.push(...M) : M && k.push(M), S = z + I[0].length, C = !0), !b.global)
|
|
32381
32381
|
break;
|
|
32382
32382
|
I = b.exec(h.value);
|
|
32383
32383
|
}
|
|
32384
|
-
return
|
|
32384
|
+
return C ? (S < h.value.length && k.push({ type: "text", value: h.value.slice(S) }), E.children.splice(A, 1, ...k)) : k = [h], A + k.length;
|
|
32385
32385
|
}
|
|
32386
32386
|
}
|
|
32387
32387
|
function a8(e) {
|
|
@@ -32668,14 +32668,14 @@ function z8(e, t) {
|
|
|
32668
32668
|
let h = 0, p = -1;
|
|
32669
32669
|
for (; ++p < e.length; ) {
|
|
32670
32670
|
const x = [], A = [];
|
|
32671
|
-
let
|
|
32672
|
-
for (e[p].length > h && (h = e[p].length); ++
|
|
32673
|
-
const
|
|
32671
|
+
let C = -1;
|
|
32672
|
+
for (e[p].length > h && (h = e[p].length); ++C < e[p].length; ) {
|
|
32673
|
+
const k = j8(e[p][C]);
|
|
32674
32674
|
if (n.alignDelimiters !== !1) {
|
|
32675
|
-
const I = s(
|
|
32676
|
-
A[
|
|
32675
|
+
const I = s(k);
|
|
32676
|
+
A[C] = I, (f[C] === void 0 || I > f[C]) && (f[C] = I);
|
|
32677
32677
|
}
|
|
32678
|
-
x.push(
|
|
32678
|
+
x.push(k);
|
|
32679
32679
|
}
|
|
32680
32680
|
u[p] = x, c[p] = A;
|
|
32681
32681
|
}
|
|
@@ -32692,34 +32692,34 @@ function z8(e, t) {
|
|
|
32692
32692
|
const b = [], y = [];
|
|
32693
32693
|
for (; ++E < h; ) {
|
|
32694
32694
|
const x = a[E];
|
|
32695
|
-
let A = "",
|
|
32696
|
-
x === 99 ? (A = ":",
|
|
32697
|
-
let
|
|
32695
|
+
let A = "", C = "";
|
|
32696
|
+
x === 99 ? (A = ":", C = ":") : x === 108 ? A = ":" : x === 114 && (C = ":");
|
|
32697
|
+
let k = n.alignDelimiters === !1 ? 1 : Math.max(
|
|
32698
32698
|
1,
|
|
32699
|
-
f[E] - A.length -
|
|
32699
|
+
f[E] - A.length - C.length
|
|
32700
32700
|
);
|
|
32701
|
-
const I = A + "-".repeat(
|
|
32702
|
-
n.alignDelimiters !== !1 && (
|
|
32701
|
+
const I = A + "-".repeat(k) + C;
|
|
32702
|
+
n.alignDelimiters !== !1 && (k = A.length + k + C.length, k > f[E] && (f[E] = k), y[E] = k), b[E] = I;
|
|
32703
32703
|
}
|
|
32704
32704
|
u.splice(1, 0, b), c.splice(1, 0, y), p = -1;
|
|
32705
32705
|
const S = [];
|
|
32706
32706
|
for (; ++p < u.length; ) {
|
|
32707
32707
|
const x = u[p], A = c[p];
|
|
32708
32708
|
E = -1;
|
|
32709
|
-
const
|
|
32709
|
+
const C = [];
|
|
32710
32710
|
for (; ++E < h; ) {
|
|
32711
|
-
const
|
|
32711
|
+
const k = x[E] || "";
|
|
32712
32712
|
let I = "", z = "";
|
|
32713
32713
|
if (n.alignDelimiters !== !1) {
|
|
32714
32714
|
const Y = f[E] - (A[E] || 0), M = a[E];
|
|
32715
32715
|
M === 114 ? I = " ".repeat(Y) : M === 99 ? Y % 2 ? (I = " ".repeat(Y / 2 + 0.5), z = " ".repeat(Y / 2 - 0.5)) : (I = " ".repeat(Y / 2), z = I) : z = " ".repeat(Y);
|
|
32716
32716
|
}
|
|
32717
|
-
n.delimiterStart !== !1 && !E &&
|
|
32717
|
+
n.delimiterStart !== !1 && !E && C.push("|"), n.padding !== !1 && // Don’t add the opening space if we’re not aligning and the cell is
|
|
32718
32718
|
// empty: there will be a closing space.
|
|
32719
|
-
!(n.alignDelimiters === !1 &&
|
|
32719
|
+
!(n.alignDelimiters === !1 && k === "") && (n.delimiterStart !== !1 || E) && C.push(" "), n.alignDelimiters !== !1 && C.push(I), C.push(k), n.alignDelimiters !== !1 && C.push(z), n.padding !== !1 && C.push(" "), (n.delimiterEnd !== !1 || E !== h - 1) && C.push("|");
|
|
32720
32720
|
}
|
|
32721
32721
|
S.push(
|
|
32722
|
-
n.delimiterEnd === !1 ?
|
|
32722
|
+
n.delimiterEnd === !1 ? C.join("").replace(/ +$/, "") : C.join("")
|
|
32723
32723
|
);
|
|
32724
32724
|
}
|
|
32725
32725
|
return S.join(`
|
|
@@ -33393,16 +33393,16 @@ function wM(e) {
|
|
|
33393
33393
|
return h(p(y, x, A), y.align);
|
|
33394
33394
|
}
|
|
33395
33395
|
function c(y, S, x, A) {
|
|
33396
|
-
const
|
|
33397
|
-
return
|
|
33396
|
+
const C = E(y, x, A), k = h([C]);
|
|
33397
|
+
return k.slice(0, k.indexOf(`
|
|
33398
33398
|
`));
|
|
33399
33399
|
}
|
|
33400
33400
|
function f(y, S, x, A) {
|
|
33401
|
-
const
|
|
33401
|
+
const C = x.enter("tableCell"), k = x.enter("phrasing"), I = x.containerPhrasing(y, oe(U({}, A), {
|
|
33402
33402
|
before: a,
|
|
33403
33403
|
after: a
|
|
33404
33404
|
}));
|
|
33405
|
-
return
|
|
33405
|
+
return k(), C(), I;
|
|
33406
33406
|
}
|
|
33407
33407
|
function h(y, S) {
|
|
33408
33408
|
return z8(y, {
|
|
@@ -33417,19 +33417,19 @@ function wM(e) {
|
|
|
33417
33417
|
}
|
|
33418
33418
|
function p(y, S, x) {
|
|
33419
33419
|
const A = y.children;
|
|
33420
|
-
let
|
|
33421
|
-
const
|
|
33422
|
-
for (; ++
|
|
33423
|
-
|
|
33424
|
-
return I(),
|
|
33420
|
+
let C = -1;
|
|
33421
|
+
const k = [], I = S.enter("table");
|
|
33422
|
+
for (; ++C < A.length; )
|
|
33423
|
+
k[C] = E(A[C], S, x);
|
|
33424
|
+
return I(), k;
|
|
33425
33425
|
}
|
|
33426
33426
|
function E(y, S, x) {
|
|
33427
33427
|
const A = y.children;
|
|
33428
|
-
let
|
|
33429
|
-
const
|
|
33430
|
-
for (; ++
|
|
33431
|
-
|
|
33432
|
-
return I(),
|
|
33428
|
+
let C = -1;
|
|
33429
|
+
const k = [], I = S.enter("tableRow");
|
|
33430
|
+
for (; ++C < A.length; )
|
|
33431
|
+
k[C] = f(A[C], y, S, x);
|
|
33432
|
+
return I(), k;
|
|
33433
33433
|
}
|
|
33434
33434
|
function b(y, S, x) {
|
|
33435
33435
|
let A = _S.inlineCode(y, S, x);
|
|
@@ -33935,8 +33935,8 @@ function eF(e) {
|
|
|
33935
33935
|
if (S === 126)
|
|
33936
33936
|
return E > 1 ? f(S) : (u.consume(S), E++, y);
|
|
33937
33937
|
if (E < 2 && !n) return f(S);
|
|
33938
|
-
const A = u.exit("strikethroughSequenceTemporary"),
|
|
33939
|
-
return A._open = !
|
|
33938
|
+
const A = u.exit("strikethroughSequenceTemporary"), C = zs(S);
|
|
33939
|
+
return A._open = !C || C === 2 && !!x, A._close = !x || x === 2 && !!C, c(S);
|
|
33940
33940
|
}
|
|
33941
33941
|
}
|
|
33942
33942
|
}
|
|
@@ -34079,13 +34079,13 @@ function sF(e, t, n) {
|
|
|
34079
34079
|
return qe(F) ? We(e, A, "whitespace")(F) : A(F);
|
|
34080
34080
|
}
|
|
34081
34081
|
function A(F) {
|
|
34082
|
-
return F === 58 ? (a += 1, u = !0, e.enter("tableDelimiterMarker"), e.consume(F), e.exit("tableDelimiterMarker"),
|
|
34082
|
+
return F === 58 ? (a += 1, u = !0, e.enter("tableDelimiterMarker"), e.consume(F), e.exit("tableDelimiterMarker"), C) : F === 45 ? (a += 1, C(F)) : F === null || Le(F) ? z(F) : Y(F);
|
|
34083
34083
|
}
|
|
34084
|
-
function
|
|
34085
|
-
return F === 45 ? (e.enter("tableDelimiterFiller"),
|
|
34084
|
+
function C(F) {
|
|
34085
|
+
return F === 45 ? (e.enter("tableDelimiterFiller"), k(F)) : Y(F);
|
|
34086
34086
|
}
|
|
34087
|
-
function
|
|
34088
|
-
return F === 45 ? (e.consume(F),
|
|
34087
|
+
function k(F) {
|
|
34088
|
+
return F === 45 ? (e.consume(F), k) : F === 58 ? (u = !0, e.exit("tableDelimiterFiller"), e.enter("tableDelimiterMarker"), e.consume(F), e.exit("tableDelimiterMarker"), I) : (e.exit("tableDelimiterFiller"), I(F));
|
|
34089
34089
|
}
|
|
34090
34090
|
function I(F) {
|
|
34091
34091
|
return qe(F) ? We(e, z, "whitespace")(F) : z(F);
|
|
@@ -34427,42 +34427,42 @@ const pF = () => /* @__PURE__ */ P.jsx("span", { className: `${ee}-blinking-curs
|
|
|
34427
34427
|
}) => {
|
|
34428
34428
|
const { sendMessage: s, loading: a } = Ws();
|
|
34429
34429
|
return /* @__PURE__ */ P.jsx(P.Fragment, { children: e.response.map((u, c) => {
|
|
34430
|
-
var f, h, p;
|
|
34430
|
+
var f, h, p, E, b, y, S, x, A, C, k;
|
|
34431
34431
|
switch (u.type) {
|
|
34432
34432
|
case "markdown":
|
|
34433
34433
|
return /* @__PURE__ */ P.jsx(
|
|
34434
34434
|
IS,
|
|
34435
34435
|
{
|
|
34436
|
-
text: u.data.content,
|
|
34436
|
+
text: (h = (f = u.data) == null ? void 0 : f.content) != null ? h : "",
|
|
34437
34437
|
globalClassName: t,
|
|
34438
34438
|
openLinksInNewTab: n,
|
|
34439
34439
|
showIsLoading: !1
|
|
34440
34440
|
},
|
|
34441
|
-
`${u.type}-${(
|
|
34441
|
+
`${u.type}-${(p = u.index) != null ? p : c}`
|
|
34442
34442
|
);
|
|
34443
34443
|
case "product_carousel":
|
|
34444
34444
|
return /* @__PURE__ */ P.jsx(
|
|
34445
34445
|
mF,
|
|
34446
34446
|
{
|
|
34447
|
-
title: u.data.title,
|
|
34448
|
-
products: u.data.products,
|
|
34447
|
+
title: (b = (E = u.data) == null ? void 0 : E.title) != null ? b : "",
|
|
34448
|
+
products: (S = (y = u.data) == null ? void 0 : y.products) != null ? S : [],
|
|
34449
34449
|
globalClassName: t,
|
|
34450
34450
|
openLinksInNewTab: n,
|
|
34451
34451
|
isWidgetStandalone: r
|
|
34452
34452
|
},
|
|
34453
|
-
`${u.type}-${(
|
|
34453
|
+
`${u.type}-${(x = u.index) != null ? x : c}`
|
|
34454
34454
|
);
|
|
34455
34455
|
case "suggestions":
|
|
34456
34456
|
return /* @__PURE__ */ P.jsx("div", { style: { marginTop: "0.5rem" }, children: /* @__PURE__ */ P.jsx(
|
|
34457
34457
|
X5,
|
|
34458
34458
|
{
|
|
34459
34459
|
disabled: a,
|
|
34460
|
-
suggestions: u.data.display_text,
|
|
34460
|
+
suggestions: (C = (A = u.data) == null ? void 0 : A.display_text) != null ? C : [],
|
|
34461
34461
|
globalClassName: t,
|
|
34462
34462
|
isWidgetStandalone: r,
|
|
34463
34463
|
onSuggestionClick: s
|
|
34464
34464
|
}
|
|
34465
|
-
) }, `${u.type}-${(
|
|
34465
|
+
) }, `${u.type}-${(k = u.index) != null ? k : c}`);
|
|
34466
34466
|
default:
|
|
34467
34467
|
return null;
|
|
34468
34468
|
}
|