@pipedream/connect-react 2.4.1 → 2.5.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/connect-react.es.js +902 -900
- package/dist/connect-react.umd.d.ts +9 -7
- package/dist/connect-react.umd.js +11 -11
- package/package.json +2 -2
package/dist/connect-react.es.js
CHANGED
|
@@ -1199,76 +1199,76 @@ function ju(e, t) {
|
|
|
1199
1199
|
if (!e) return [];
|
|
1200
1200
|
t = t || {};
|
|
1201
1201
|
var n = 1, i = 1;
|
|
1202
|
-
function r(
|
|
1203
|
-
var
|
|
1204
|
-
|
|
1205
|
-
var
|
|
1206
|
-
i = ~
|
|
1202
|
+
function r(b) {
|
|
1203
|
+
var y = b.match(Du);
|
|
1204
|
+
y && (n += y.length);
|
|
1205
|
+
var x = b.lastIndexOf(Zu);
|
|
1206
|
+
i = ~x ? b.length - x : i + b.length;
|
|
1207
1207
|
}
|
|
1208
1208
|
function o() {
|
|
1209
|
-
var
|
|
1210
|
-
return function(
|
|
1211
|
-
return
|
|
1209
|
+
var b = { line: n, column: i };
|
|
1210
|
+
return function(y) {
|
|
1211
|
+
return y.position = new a(b), s(), y;
|
|
1212
1212
|
};
|
|
1213
1213
|
}
|
|
1214
|
-
function a(
|
|
1215
|
-
this.start =
|
|
1214
|
+
function a(b) {
|
|
1215
|
+
this.start = b, this.end = { line: n, column: i }, this.source = t.source;
|
|
1216
1216
|
}
|
|
1217
1217
|
a.prototype.content = e;
|
|
1218
|
-
function l(
|
|
1219
|
-
var
|
|
1220
|
-
t.source + ":" + n + ":" + i + ": " +
|
|
1218
|
+
function l(b) {
|
|
1219
|
+
var y = new Error(
|
|
1220
|
+
t.source + ":" + n + ":" + i + ": " + b
|
|
1221
1221
|
);
|
|
1222
|
-
if (
|
|
1222
|
+
if (y.reason = b, y.filename = t.source, y.line = n, y.column = i, y.source = e, !t.silent) throw y;
|
|
1223
1223
|
}
|
|
1224
|
-
function u(
|
|
1225
|
-
var
|
|
1226
|
-
if (
|
|
1227
|
-
var
|
|
1228
|
-
return r(
|
|
1224
|
+
function u(b) {
|
|
1225
|
+
var y = b.exec(e);
|
|
1226
|
+
if (y) {
|
|
1227
|
+
var x = y[0];
|
|
1228
|
+
return r(x), e = e.slice(x.length), y;
|
|
1229
1229
|
}
|
|
1230
1230
|
}
|
|
1231
1231
|
function s() {
|
|
1232
1232
|
u(Lu);
|
|
1233
1233
|
}
|
|
1234
|
-
function c(
|
|
1235
|
-
var
|
|
1236
|
-
for (
|
|
1237
|
-
|
|
1238
|
-
return
|
|
1234
|
+
function c(b) {
|
|
1235
|
+
var y;
|
|
1236
|
+
for (b = b || []; y = d(); )
|
|
1237
|
+
y !== !1 && b.push(y);
|
|
1238
|
+
return b;
|
|
1239
1239
|
}
|
|
1240
1240
|
function d() {
|
|
1241
|
-
var
|
|
1241
|
+
var b = o();
|
|
1242
1242
|
if (!(Ri != e.charAt(0) || Vi != e.charAt(1))) {
|
|
1243
|
-
for (var
|
|
1244
|
-
++
|
|
1245
|
-
if (
|
|
1243
|
+
for (var y = 2; Tt != e.charAt(y) && (Vi != e.charAt(y) || Ri != e.charAt(y + 1)); )
|
|
1244
|
+
++y;
|
|
1245
|
+
if (y += 2, Tt === e.charAt(y - 1))
|
|
1246
1246
|
return l("End of comment missing");
|
|
1247
|
-
var
|
|
1248
|
-
return i += 2, r(
|
|
1247
|
+
var x = e.slice(2, y - 2);
|
|
1248
|
+
return i += 2, r(x), e = e.slice(y), i += 2, b({
|
|
1249
1249
|
type: Ju,
|
|
1250
|
-
comment:
|
|
1250
|
+
comment: x
|
|
1251
1251
|
});
|
|
1252
1252
|
}
|
|
1253
1253
|
}
|
|
1254
1254
|
function f() {
|
|
1255
|
-
var
|
|
1256
|
-
if (
|
|
1255
|
+
var b = o(), y = u(Mu);
|
|
1256
|
+
if (y) {
|
|
1257
1257
|
if (d(), !u(zu)) return l("property missing ':'");
|
|
1258
|
-
var
|
|
1258
|
+
var x = u(Hu), I = b({
|
|
1259
1259
|
type: Yu,
|
|
1260
|
-
property: Oi(
|
|
1261
|
-
value:
|
|
1260
|
+
property: Oi(y[0].replace(Fi, Tt)),
|
|
1261
|
+
value: x ? Oi(x[0].replace(Fi, Tt)) : Tt
|
|
1262
1262
|
});
|
|
1263
1263
|
return u(Xu), I;
|
|
1264
1264
|
}
|
|
1265
1265
|
}
|
|
1266
1266
|
function p() {
|
|
1267
|
-
var
|
|
1268
|
-
c(
|
|
1269
|
-
for (var
|
|
1270
|
-
|
|
1271
|
-
return
|
|
1267
|
+
var b = [];
|
|
1268
|
+
c(b);
|
|
1269
|
+
for (var y; y = f(); )
|
|
1270
|
+
y !== !1 && (b.push(y), c(b));
|
|
1271
|
+
return b;
|
|
1272
1272
|
}
|
|
1273
1273
|
return s(), p();
|
|
1274
1274
|
}
|
|
@@ -4059,28 +4059,28 @@ function js(e) {
|
|
|
4059
4059
|
return l;
|
|
4060
4060
|
function l(A) {
|
|
4061
4061
|
if (i < n.length) {
|
|
4062
|
-
const
|
|
4063
|
-
return t.containerState =
|
|
4062
|
+
const S = n[i];
|
|
4063
|
+
return t.containerState = S[1], e.attempt(S[0].continuation, u, s)(A);
|
|
4064
4064
|
}
|
|
4065
4065
|
return s(A);
|
|
4066
4066
|
}
|
|
4067
4067
|
function u(A) {
|
|
4068
4068
|
if (i++, t.containerState._closeFlow) {
|
|
4069
4069
|
t.containerState._closeFlow = void 0, r && P();
|
|
4070
|
-
const
|
|
4071
|
-
let
|
|
4072
|
-
for (;
|
|
4073
|
-
if (t.events[
|
|
4074
|
-
|
|
4070
|
+
const S = t.events.length;
|
|
4071
|
+
let k = S, v;
|
|
4072
|
+
for (; k--; )
|
|
4073
|
+
if (t.events[k][0] === "exit" && t.events[k][1].type === "chunkFlow") {
|
|
4074
|
+
v = t.events[k][1].end;
|
|
4075
4075
|
break;
|
|
4076
4076
|
}
|
|
4077
4077
|
I(i);
|
|
4078
|
-
let D =
|
|
4078
|
+
let D = S;
|
|
4079
4079
|
for (; D < t.events.length; )
|
|
4080
4080
|
t.events[D][1].end = {
|
|
4081
|
-
...
|
|
4081
|
+
...v
|
|
4082
4082
|
}, D++;
|
|
4083
|
-
return st(t.events,
|
|
4083
|
+
return st(t.events, k + 1, 0, t.events.slice(S)), t.events.length = D, s(A);
|
|
4084
4084
|
}
|
|
4085
4085
|
return l(A);
|
|
4086
4086
|
}
|
|
@@ -4089,7 +4089,7 @@ function js(e) {
|
|
|
4089
4089
|
if (!r)
|
|
4090
4090
|
return f(A);
|
|
4091
4091
|
if (r.currentConstruct && r.currentConstruct.concrete)
|
|
4092
|
-
return
|
|
4092
|
+
return b(A);
|
|
4093
4093
|
t.interrupt = !!(r.currentConstruct && !r._gfmTableDynamicInterruptHack);
|
|
4094
4094
|
}
|
|
4095
4095
|
return t.containerState = {}, e.check(Hi, c, d)(A);
|
|
@@ -4098,15 +4098,15 @@ function js(e) {
|
|
|
4098
4098
|
return r && P(), I(i), f(A);
|
|
4099
4099
|
}
|
|
4100
4100
|
function d(A) {
|
|
4101
|
-
return t.parser.lazy[t.now().line] = i !== n.length, a = t.now().offset,
|
|
4101
|
+
return t.parser.lazy[t.now().line] = i !== n.length, a = t.now().offset, b(A);
|
|
4102
4102
|
}
|
|
4103
4103
|
function f(A) {
|
|
4104
|
-
return t.containerState = {}, e.attempt(Hi, p,
|
|
4104
|
+
return t.containerState = {}, e.attempt(Hi, p, b)(A);
|
|
4105
4105
|
}
|
|
4106
4106
|
function p(A) {
|
|
4107
4107
|
return i++, n.push([t.currentConstruct, t.containerState]), f(A);
|
|
4108
4108
|
}
|
|
4109
|
-
function
|
|
4109
|
+
function b(A) {
|
|
4110
4110
|
if (A === null) {
|
|
4111
4111
|
r && P(), I(0), e.consume(A);
|
|
4112
4112
|
return;
|
|
@@ -4115,25 +4115,25 @@ function js(e) {
|
|
|
4115
4115
|
_tokenizer: r,
|
|
4116
4116
|
contentType: "flow",
|
|
4117
4117
|
previous: o
|
|
4118
|
-
}),
|
|
4118
|
+
}), y(A);
|
|
4119
4119
|
}
|
|
4120
|
-
function
|
|
4120
|
+
function y(A) {
|
|
4121
4121
|
if (A === null) {
|
|
4122
|
-
|
|
4122
|
+
x(e.exit("chunkFlow"), !0), I(0), e.consume(A);
|
|
4123
4123
|
return;
|
|
4124
4124
|
}
|
|
4125
|
-
return re(A) ? (e.consume(A),
|
|
4125
|
+
return re(A) ? (e.consume(A), x(e.exit("chunkFlow")), i = 0, t.interrupt = void 0, l) : (e.consume(A), y);
|
|
4126
4126
|
}
|
|
4127
|
-
function
|
|
4128
|
-
const
|
|
4129
|
-
if (
|
|
4130
|
-
let
|
|
4131
|
-
for (;
|
|
4127
|
+
function x(A, S) {
|
|
4128
|
+
const k = t.sliceStream(A);
|
|
4129
|
+
if (S && k.push(null), A.previous = o, o && (o.next = A), o = A, r.defineSkip(A.start), r.write(k), t.parser.lazy[A.start.line]) {
|
|
4130
|
+
let v = r.events.length;
|
|
4131
|
+
for (; v--; )
|
|
4132
4132
|
if (
|
|
4133
4133
|
// The token starts before the line ending…
|
|
4134
|
-
r.events[
|
|
4135
|
-
(!r.events[
|
|
4136
|
-
r.events[
|
|
4134
|
+
r.events[v][1].start.offset < a && // …and either is not ended yet…
|
|
4135
|
+
(!r.events[v][1].end || // …or ends after it.
|
|
4136
|
+
r.events[v][1].end.offset > a)
|
|
4137
4137
|
)
|
|
4138
4138
|
return;
|
|
4139
4139
|
const D = t.events.length;
|
|
@@ -4146,18 +4146,18 @@ function js(e) {
|
|
|
4146
4146
|
}
|
|
4147
4147
|
F = !0;
|
|
4148
4148
|
}
|
|
4149
|
-
for (I(i),
|
|
4150
|
-
t.events[
|
|
4149
|
+
for (I(i), v = D; v < t.events.length; )
|
|
4150
|
+
t.events[v][1].end = {
|
|
4151
4151
|
...w
|
|
4152
|
-
},
|
|
4153
|
-
st(t.events, B + 1, 0, t.events.slice(D)), t.events.length =
|
|
4152
|
+
}, v++;
|
|
4153
|
+
st(t.events, B + 1, 0, t.events.slice(D)), t.events.length = v;
|
|
4154
4154
|
}
|
|
4155
4155
|
}
|
|
4156
4156
|
function I(A) {
|
|
4157
|
-
let
|
|
4158
|
-
for (;
|
|
4159
|
-
const
|
|
4160
|
-
t.containerState =
|
|
4157
|
+
let S = n.length;
|
|
4158
|
+
for (; S-- > A; ) {
|
|
4159
|
+
const k = n[S];
|
|
4160
|
+
t.containerState = k[1], k[0].exit.call(t, e);
|
|
4161
4161
|
}
|
|
4162
4162
|
n.length = A;
|
|
4163
4163
|
}
|
|
@@ -4293,8 +4293,8 @@ function $s(e, t, n) {
|
|
|
4293
4293
|
}
|
|
4294
4294
|
function f(p) {
|
|
4295
4295
|
if ((p === 45 || Qe(p)) && i++ < 63) {
|
|
4296
|
-
const
|
|
4297
|
-
return e.consume(p),
|
|
4296
|
+
const b = p === 45 ? f : d;
|
|
4297
|
+
return e.consume(p), b;
|
|
4298
4298
|
}
|
|
4299
4299
|
return n(p);
|
|
4300
4300
|
}
|
|
@@ -4398,71 +4398,71 @@ const Zi = {
|
|
|
4398
4398
|
function oc(e, t, n) {
|
|
4399
4399
|
const i = this, r = {
|
|
4400
4400
|
partial: !0,
|
|
4401
|
-
tokenize:
|
|
4401
|
+
tokenize: k
|
|
4402
4402
|
};
|
|
4403
4403
|
let o = 0, a = 0, l;
|
|
4404
4404
|
return u;
|
|
4405
|
-
function u(
|
|
4406
|
-
return s(
|
|
4405
|
+
function u(v) {
|
|
4406
|
+
return s(v);
|
|
4407
4407
|
}
|
|
4408
|
-
function s(
|
|
4408
|
+
function s(v) {
|
|
4409
4409
|
const D = i.events[i.events.length - 1];
|
|
4410
|
-
return o = D && D[1].type === "linePrefix" ? D[2].sliceSerialize(D[1], !0).length : 0, l =
|
|
4410
|
+
return o = D && D[1].type === "linePrefix" ? D[2].sliceSerialize(D[1], !0).length : 0, l = v, e.enter("codeFenced"), e.enter("codeFencedFence"), e.enter("codeFencedFenceSequence"), c(v);
|
|
4411
4411
|
}
|
|
4412
|
-
function c(
|
|
4413
|
-
return
|
|
4412
|
+
function c(v) {
|
|
4413
|
+
return v === l ? (a++, e.consume(v), c) : a < 3 ? n(v) : (e.exit("codeFencedFenceSequence"), he(v) ? ve(e, d, "whitespace")(v) : d(v));
|
|
4414
4414
|
}
|
|
4415
|
-
function d(
|
|
4416
|
-
return
|
|
4415
|
+
function d(v) {
|
|
4416
|
+
return v === null || re(v) ? (e.exit("codeFencedFence"), i.interrupt ? t(v) : e.check(Zi, y, S)(v)) : (e.enter("codeFencedFenceInfo"), e.enter("chunkString", {
|
|
4417
4417
|
contentType: "string"
|
|
4418
|
-
}), f(
|
|
4418
|
+
}), f(v));
|
|
4419
4419
|
}
|
|
4420
|
-
function f(
|
|
4421
|
-
return
|
|
4420
|
+
function f(v) {
|
|
4421
|
+
return v === null || re(v) ? (e.exit("chunkString"), e.exit("codeFencedFenceInfo"), d(v)) : he(v) ? (e.exit("chunkString"), e.exit("codeFencedFenceInfo"), ve(e, p, "whitespace")(v)) : v === 96 && v === l ? n(v) : (e.consume(v), f);
|
|
4422
4422
|
}
|
|
4423
|
-
function p(
|
|
4424
|
-
return
|
|
4423
|
+
function p(v) {
|
|
4424
|
+
return v === null || re(v) ? d(v) : (e.enter("codeFencedFenceMeta"), e.enter("chunkString", {
|
|
4425
4425
|
contentType: "string"
|
|
4426
|
-
}),
|
|
4426
|
+
}), b(v));
|
|
4427
4427
|
}
|
|
4428
|
-
function
|
|
4429
|
-
return
|
|
4428
|
+
function b(v) {
|
|
4429
|
+
return v === null || re(v) ? (e.exit("chunkString"), e.exit("codeFencedFenceMeta"), d(v)) : v === 96 && v === l ? n(v) : (e.consume(v), b);
|
|
4430
4430
|
}
|
|
4431
|
-
function
|
|
4432
|
-
return e.attempt(r,
|
|
4431
|
+
function y(v) {
|
|
4432
|
+
return e.attempt(r, S, x)(v);
|
|
4433
4433
|
}
|
|
4434
|
-
function
|
|
4435
|
-
return e.enter("lineEnding"), e.consume(
|
|
4434
|
+
function x(v) {
|
|
4435
|
+
return e.enter("lineEnding"), e.consume(v), e.exit("lineEnding"), I;
|
|
4436
4436
|
}
|
|
4437
|
-
function I(
|
|
4438
|
-
return o > 0 && he(
|
|
4437
|
+
function I(v) {
|
|
4438
|
+
return o > 0 && he(v) ? ve(e, P, "linePrefix", o + 1)(v) : P(v);
|
|
4439
4439
|
}
|
|
4440
|
-
function P(
|
|
4441
|
-
return
|
|
4440
|
+
function P(v) {
|
|
4441
|
+
return v === null || re(v) ? e.check(Zi, y, S)(v) : (e.enter("codeFlowValue"), A(v));
|
|
4442
4442
|
}
|
|
4443
|
-
function A(
|
|
4444
|
-
return
|
|
4443
|
+
function A(v) {
|
|
4444
|
+
return v === null || re(v) ? (e.exit("codeFlowValue"), P(v)) : (e.consume(v), A);
|
|
4445
4445
|
}
|
|
4446
|
-
function
|
|
4447
|
-
return e.exit("codeFenced"), t(
|
|
4446
|
+
function S(v) {
|
|
4447
|
+
return e.exit("codeFenced"), t(v);
|
|
4448
4448
|
}
|
|
4449
|
-
function
|
|
4449
|
+
function k(v, D, B) {
|
|
4450
4450
|
let F = 0;
|
|
4451
4451
|
return w;
|
|
4452
4452
|
function w(X) {
|
|
4453
|
-
return
|
|
4453
|
+
return v.enter("lineEnding"), v.consume(X), v.exit("lineEnding"), R;
|
|
4454
4454
|
}
|
|
4455
4455
|
function R(X) {
|
|
4456
|
-
return
|
|
4456
|
+
return v.enter("codeFencedFence"), he(X) ? ve(v, T, "linePrefix", i.parser.constructs.disable.null.includes("codeIndented") ? void 0 : 4)(X) : T(X);
|
|
4457
4457
|
}
|
|
4458
4458
|
function T(X) {
|
|
4459
|
-
return X === l ? (
|
|
4459
|
+
return X === l ? (v.enter("codeFencedFenceSequence"), z(X)) : B(X);
|
|
4460
4460
|
}
|
|
4461
4461
|
function z(X) {
|
|
4462
|
-
return X === l ? (F++,
|
|
4462
|
+
return X === l ? (F++, v.consume(X), z) : F >= a ? (v.exit("codeFencedFenceSequence"), he(X) ? ve(v, _, "whitespace")(X) : _(X)) : B(X);
|
|
4463
4463
|
}
|
|
4464
4464
|
function _(X) {
|
|
4465
|
-
return X === null || re(X) ? (
|
|
4465
|
+
return X === null || re(X) ? (v.exit("codeFencedFence"), D(X)) : B(X);
|
|
4466
4466
|
}
|
|
4467
4467
|
}
|
|
4468
4468
|
}
|
|
@@ -4758,8 +4758,8 @@ function hc(e, t) {
|
|
|
4758
4758
|
let a = n._tokenizer;
|
|
4759
4759
|
a || (a = i.parser[n.contentType](n.start), n._contentTypeTextTrailing && (a._contentTypeTextTrailing = !0));
|
|
4760
4760
|
const l = a.events, u = [], s = {};
|
|
4761
|
-
let c, d, f = -1, p = n,
|
|
4762
|
-
const
|
|
4761
|
+
let c, d, f = -1, p = n, b = 0, y = 0;
|
|
4762
|
+
const x = [y];
|
|
4763
4763
|
for (; p; ) {
|
|
4764
4764
|
for (; e.get(++r)[1] !== p; )
|
|
4765
4765
|
;
|
|
@@ -4767,13 +4767,13 @@ function hc(e, t) {
|
|
|
4767
4767
|
}
|
|
4768
4768
|
for (p = n; ++f < l.length; )
|
|
4769
4769
|
// Find a void token that includes a break.
|
|
4770
|
-
l[f][0] === "exit" && l[f - 1][0] === "enter" && l[f][1].type === l[f - 1][1].type && l[f][1].start.line !== l[f][1].end.line && (
|
|
4771
|
-
for (a.events = [], p ? (p._tokenizer = void 0, p.previous = void 0) :
|
|
4772
|
-
const I = l.slice(
|
|
4770
|
+
l[f][0] === "exit" && l[f - 1][0] === "enter" && l[f][1].type === l[f - 1][1].type && l[f][1].start.line !== l[f][1].end.line && (y = f + 1, x.push(y), p._tokenizer = void 0, p.previous = void 0, p = p.next);
|
|
4771
|
+
for (a.events = [], p ? (p._tokenizer = void 0, p.previous = void 0) : x.pop(), f = x.length; f--; ) {
|
|
4772
|
+
const I = l.slice(x[f], x[f + 1]), P = o.pop();
|
|
4773
4773
|
u.push([P, P + I.length - 1]), e.splice(P, 2, I);
|
|
4774
4774
|
}
|
|
4775
4775
|
for (u.reverse(), f = -1; ++f < u.length; )
|
|
4776
|
-
s[
|
|
4776
|
+
s[b + u[f][0]] = b + u[f][1], b += u[f][1] - u[f][0] - 1;
|
|
4777
4777
|
return s;
|
|
4778
4778
|
}
|
|
4779
4779
|
const mc = {
|
|
@@ -4827,7 +4827,7 @@ function fa(e, t, n, i, r, o, a, l, u) {
|
|
|
4827
4827
|
function d(I) {
|
|
4828
4828
|
return I === 60 ? (e.enter(i), e.enter(r), e.enter(o), e.consume(I), e.exit(o), f) : I === null || I === 32 || I === 41 || kr(I) ? n(I) : (e.enter(i), e.enter(a), e.enter(l), e.enter("chunkString", {
|
|
4829
4829
|
contentType: "string"
|
|
4830
|
-
}),
|
|
4830
|
+
}), y(I));
|
|
4831
4831
|
}
|
|
4832
4832
|
function f(I) {
|
|
4833
4833
|
return I === 62 ? (e.enter(o), e.consume(I), e.exit(o), e.exit(r), e.exit(i), t) : (e.enter(l), e.enter("chunkString", {
|
|
@@ -4835,16 +4835,16 @@ function fa(e, t, n, i, r, o, a, l, u) {
|
|
|
4835
4835
|
}), p(I));
|
|
4836
4836
|
}
|
|
4837
4837
|
function p(I) {
|
|
4838
|
-
return I === 62 ? (e.exit("chunkString"), e.exit(l), f(I)) : I === null || I === 60 || re(I) ? n(I) : (e.consume(I), I === 92 ?
|
|
4838
|
+
return I === 62 ? (e.exit("chunkString"), e.exit(l), f(I)) : I === null || I === 60 || re(I) ? n(I) : (e.consume(I), I === 92 ? b : p);
|
|
4839
4839
|
}
|
|
4840
|
-
function
|
|
4840
|
+
function b(I) {
|
|
4841
4841
|
return I === 60 || I === 62 || I === 92 ? (e.consume(I), p) : p(I);
|
|
4842
4842
|
}
|
|
4843
|
-
function
|
|
4844
|
-
return !c && (I === null || I === 41 || Ye(I)) ? (e.exit("chunkString"), e.exit(l), e.exit(a), e.exit(i), t(I)) : c < s && I === 40 ? (e.consume(I), c++,
|
|
4843
|
+
function y(I) {
|
|
4844
|
+
return !c && (I === null || I === 41 || Ye(I)) ? (e.exit("chunkString"), e.exit(l), e.exit(a), e.exit(i), t(I)) : c < s && I === 40 ? (e.consume(I), c++, y) : I === 41 ? (e.consume(I), c--, y) : I === null || I === 32 || I === 40 || kr(I) ? n(I) : (e.consume(I), I === 92 ? x : y);
|
|
4845
4845
|
}
|
|
4846
|
-
function
|
|
4847
|
-
return I === 40 || I === 41 || I === 92 ? (e.consume(I),
|
|
4846
|
+
function x(I) {
|
|
4847
|
+
return I === 40 || I === 41 || I === 92 ? (e.consume(I), y) : y(I);
|
|
4848
4848
|
}
|
|
4849
4849
|
}
|
|
4850
4850
|
function ga(e, t, n, i, r, o) {
|
|
@@ -5114,27 +5114,27 @@ function Oc(e, t, n) {
|
|
|
5114
5114
|
return e.enter("htmlFlow"), e.enter("htmlFlowData"), e.consume(m), d;
|
|
5115
5115
|
}
|
|
5116
5116
|
function d(m) {
|
|
5117
|
-
return m === 33 ? (e.consume(m), f) : m === 47 ? (e.consume(m), o = !0,
|
|
5117
|
+
return m === 33 ? (e.consume(m), f) : m === 47 ? (e.consume(m), o = !0, y) : m === 63 ? (e.consume(m), r = 3, i.interrupt ? t : g) : lt(m) ? (e.consume(m), a = String.fromCharCode(m), x) : n(m);
|
|
5118
5118
|
}
|
|
5119
5119
|
function f(m) {
|
|
5120
|
-
return m === 45 ? (e.consume(m), r = 2, p) : m === 91 ? (e.consume(m), r = 5, l = 0,
|
|
5120
|
+
return m === 45 ? (e.consume(m), r = 2, p) : m === 91 ? (e.consume(m), r = 5, l = 0, b) : lt(m) ? (e.consume(m), r = 4, i.interrupt ? t : g) : n(m);
|
|
5121
5121
|
}
|
|
5122
5122
|
function p(m) {
|
|
5123
5123
|
return m === 45 ? (e.consume(m), i.interrupt ? t : g) : n(m);
|
|
5124
5124
|
}
|
|
5125
|
-
function
|
|
5125
|
+
function b(m) {
|
|
5126
5126
|
const de = "CDATA[";
|
|
5127
|
-
return m === de.charCodeAt(l++) ? (e.consume(m), l === de.length ? i.interrupt ? t : T :
|
|
5127
|
+
return m === de.charCodeAt(l++) ? (e.consume(m), l === de.length ? i.interrupt ? t : T : b) : n(m);
|
|
5128
5128
|
}
|
|
5129
|
-
function
|
|
5130
|
-
return lt(m) ? (e.consume(m), a = String.fromCharCode(m),
|
|
5129
|
+
function y(m) {
|
|
5130
|
+
return lt(m) ? (e.consume(m), a = String.fromCharCode(m), x) : n(m);
|
|
5131
5131
|
}
|
|
5132
|
-
function
|
|
5132
|
+
function x(m) {
|
|
5133
5133
|
if (m === null || m === 47 || m === 62 || Ye(m)) {
|
|
5134
5134
|
const de = m === 47, K = a.toLowerCase();
|
|
5135
5135
|
return !de && !o && Yi.includes(K) ? (r = 1, i.interrupt ? t(m) : T(m)) : Gc.includes(a.toLowerCase()) ? (r = 6, de ? (e.consume(m), I) : i.interrupt ? t(m) : T(m)) : (r = 7, i.interrupt && !i.parser.lazy[i.now().line] ? n(m) : o ? P(m) : A(m));
|
|
5136
5136
|
}
|
|
5137
|
-
return m === 45 || Qe(m) ? (e.consume(m), a += String.fromCharCode(m),
|
|
5137
|
+
return m === 45 || Qe(m) ? (e.consume(m), a += String.fromCharCode(m), x) : n(m);
|
|
5138
5138
|
}
|
|
5139
5139
|
function I(m) {
|
|
5140
5140
|
return m === 62 ? (e.consume(m), i.interrupt ? t : T) : n(m);
|
|
@@ -5143,22 +5143,22 @@ function Oc(e, t, n) {
|
|
|
5143
5143
|
return he(m) ? (e.consume(m), P) : w(m);
|
|
5144
5144
|
}
|
|
5145
5145
|
function A(m) {
|
|
5146
|
-
return m === 47 ? (e.consume(m), w) : m === 58 || m === 95 || lt(m) ? (e.consume(m),
|
|
5147
|
-
}
|
|
5148
|
-
function E(m) {
|
|
5149
|
-
return m === 45 || m === 46 || m === 58 || m === 95 || Qe(m) ? (e.consume(m), E) : S(m);
|
|
5146
|
+
return m === 47 ? (e.consume(m), w) : m === 58 || m === 95 || lt(m) ? (e.consume(m), S) : he(m) ? (e.consume(m), A) : w(m);
|
|
5150
5147
|
}
|
|
5151
5148
|
function S(m) {
|
|
5152
|
-
return m ===
|
|
5149
|
+
return m === 45 || m === 46 || m === 58 || m === 95 || Qe(m) ? (e.consume(m), S) : k(m);
|
|
5153
5150
|
}
|
|
5154
|
-
function
|
|
5155
|
-
return m ===
|
|
5151
|
+
function k(m) {
|
|
5152
|
+
return m === 61 ? (e.consume(m), v) : he(m) ? (e.consume(m), k) : A(m);
|
|
5153
|
+
}
|
|
5154
|
+
function v(m) {
|
|
5155
|
+
return m === null || m === 60 || m === 61 || m === 62 || m === 96 ? n(m) : m === 34 || m === 39 ? (e.consume(m), u = m, D) : he(m) ? (e.consume(m), v) : B(m);
|
|
5156
5156
|
}
|
|
5157
5157
|
function D(m) {
|
|
5158
5158
|
return m === u ? (e.consume(m), u = null, F) : m === null || re(m) ? n(m) : (e.consume(m), D);
|
|
5159
5159
|
}
|
|
5160
5160
|
function B(m) {
|
|
5161
|
-
return m === null || m === 34 || m === 39 || m === 47 || m === 60 || m === 61 || m === 62 || m === 96 || Ye(m) ?
|
|
5161
|
+
return m === null || m === 34 || m === 39 || m === 47 || m === 60 || m === 61 || m === 62 || m === 96 || Ye(m) ? k(m) : (e.consume(m), B);
|
|
5162
5162
|
}
|
|
5163
5163
|
function F(m) {
|
|
5164
5164
|
return m === 47 || m === 62 || he(m) ? A(m) : n(m);
|
|
@@ -5235,10 +5235,10 @@ function Mc(e, t, n) {
|
|
|
5235
5235
|
return e.enter("htmlText"), e.enter("htmlTextData"), e.consume(g), u;
|
|
5236
5236
|
}
|
|
5237
5237
|
function u(g) {
|
|
5238
|
-
return g === 33 ? (e.consume(g), s) : g === 47 ? (e.consume(g),
|
|
5238
|
+
return g === 33 ? (e.consume(g), s) : g === 47 ? (e.consume(g), k) : g === 63 ? (e.consume(g), A) : lt(g) ? (e.consume(g), B) : n(g);
|
|
5239
5239
|
}
|
|
5240
5240
|
function s(g) {
|
|
5241
|
-
return g === 45 ? (e.consume(g), c) : g === 91 ? (e.consume(g), o = 0,
|
|
5241
|
+
return g === 45 ? (e.consume(g), c) : g === 91 ? (e.consume(g), o = 0, b) : lt(g) ? (e.consume(g), P) : n(g);
|
|
5242
5242
|
}
|
|
5243
5243
|
function c(g) {
|
|
5244
5244
|
return g === 45 ? (e.consume(g), p) : n(g);
|
|
@@ -5252,33 +5252,33 @@ function Mc(e, t, n) {
|
|
|
5252
5252
|
function p(g) {
|
|
5253
5253
|
return g === 62 ? J(g) : g === 45 ? f(g) : d(g);
|
|
5254
5254
|
}
|
|
5255
|
-
function
|
|
5255
|
+
function b(g) {
|
|
5256
5256
|
const ae = "CDATA[";
|
|
5257
|
-
return g === ae.charCodeAt(o++) ? (e.consume(g), o === ae.length ?
|
|
5257
|
+
return g === ae.charCodeAt(o++) ? (e.consume(g), o === ae.length ? y : b) : n(g);
|
|
5258
5258
|
}
|
|
5259
|
-
function
|
|
5260
|
-
return g === null ? n(g) : g === 93 ? (e.consume(g),
|
|
5259
|
+
function y(g) {
|
|
5260
|
+
return g === null ? n(g) : g === 93 ? (e.consume(g), x) : re(g) ? (a = y, ie(g)) : (e.consume(g), y);
|
|
5261
5261
|
}
|
|
5262
|
-
function
|
|
5263
|
-
return g === 93 ? (e.consume(g), I) :
|
|
5262
|
+
function x(g) {
|
|
5263
|
+
return g === 93 ? (e.consume(g), I) : y(g);
|
|
5264
5264
|
}
|
|
5265
5265
|
function I(g) {
|
|
5266
|
-
return g === 62 ? J(g) : g === 93 ? (e.consume(g), I) :
|
|
5266
|
+
return g === 62 ? J(g) : g === 93 ? (e.consume(g), I) : y(g);
|
|
5267
5267
|
}
|
|
5268
5268
|
function P(g) {
|
|
5269
5269
|
return g === null || g === 62 ? J(g) : re(g) ? (a = P, ie(g)) : (e.consume(g), P);
|
|
5270
5270
|
}
|
|
5271
5271
|
function A(g) {
|
|
5272
|
-
return g === null ? n(g) : g === 63 ? (e.consume(g),
|
|
5272
|
+
return g === null ? n(g) : g === 63 ? (e.consume(g), S) : re(g) ? (a = A, ie(g)) : (e.consume(g), A);
|
|
5273
5273
|
}
|
|
5274
|
-
function
|
|
5274
|
+
function S(g) {
|
|
5275
5275
|
return g === 62 ? J(g) : A(g);
|
|
5276
5276
|
}
|
|
5277
|
-
function
|
|
5278
|
-
return lt(g) ? (e.consume(g),
|
|
5277
|
+
function k(g) {
|
|
5278
|
+
return lt(g) ? (e.consume(g), v) : n(g);
|
|
5279
5279
|
}
|
|
5280
|
-
function
|
|
5281
|
-
return g === 45 || Qe(g) ? (e.consume(g),
|
|
5280
|
+
function v(g) {
|
|
5281
|
+
return g === 45 || Qe(g) ? (e.consume(g), v) : D(g);
|
|
5282
5282
|
}
|
|
5283
5283
|
function D(g) {
|
|
5284
5284
|
return re(g) ? (a = D, ie(g)) : he(g) ? (e.consume(g), D) : J(g);
|
|
@@ -5543,11 +5543,11 @@ function rd(e, t, n) {
|
|
|
5543
5543
|
let o = r && r[1].type === "linePrefix" ? r[2].sliceSerialize(r[1], !0).length : 0, a = 0;
|
|
5544
5544
|
return l;
|
|
5545
5545
|
function l(p) {
|
|
5546
|
-
const
|
|
5547
|
-
if (
|
|
5548
|
-
if (i.containerState.type || (i.containerState.type =
|
|
5546
|
+
const b = i.containerState.type || (p === 42 || p === 43 || p === 45 ? "listUnordered" : "listOrdered");
|
|
5547
|
+
if (b === "listUnordered" ? !i.containerState.marker || p === i.containerState.marker : Br(p)) {
|
|
5548
|
+
if (i.containerState.type || (i.containerState.type = b, e.enter(b, {
|
|
5549
5549
|
_container: !0
|
|
5550
|
-
})),
|
|
5550
|
+
})), b === "listUnordered")
|
|
5551
5551
|
return e.enter("listItemPrefix"), p === 42 || p === 45 ? e.check(An, n, s)(p) : s(p);
|
|
5552
5552
|
if (!i.interrupt || p === 49)
|
|
5553
5553
|
return e.enter("listItemPrefix"), e.enter("listItemValue"), u(p);
|
|
@@ -5851,20 +5851,20 @@ function Ed(e, t, n) {
|
|
|
5851
5851
|
const r = {}, o = [];
|
|
5852
5852
|
let a = [], l = [];
|
|
5853
5853
|
const u = {
|
|
5854
|
-
attempt: D(
|
|
5855
|
-
check: D(
|
|
5854
|
+
attempt: D(k),
|
|
5855
|
+
check: D(v),
|
|
5856
5856
|
consume: P,
|
|
5857
5857
|
enter: A,
|
|
5858
|
-
exit:
|
|
5859
|
-
interrupt: D(
|
|
5858
|
+
exit: S,
|
|
5859
|
+
interrupt: D(v, {
|
|
5860
5860
|
interrupt: !0
|
|
5861
5861
|
})
|
|
5862
5862
|
}, s = {
|
|
5863
5863
|
code: null,
|
|
5864
5864
|
containerState: {},
|
|
5865
|
-
defineSkip:
|
|
5865
|
+
defineSkip: y,
|
|
5866
5866
|
events: [],
|
|
5867
|
-
now:
|
|
5867
|
+
now: b,
|
|
5868
5868
|
parser: e,
|
|
5869
5869
|
previous: null,
|
|
5870
5870
|
sliceSerialize: f,
|
|
@@ -5874,7 +5874,7 @@ function Ed(e, t, n) {
|
|
|
5874
5874
|
let c = t.tokenize.call(s, u);
|
|
5875
5875
|
return t.resolveAll && o.push(t), s;
|
|
5876
5876
|
function d(R) {
|
|
5877
|
-
return a = et(a, R),
|
|
5877
|
+
return a = et(a, R), x(), a[a.length - 1] !== null ? [] : (B(t, 0), s.events = qr(o, s.events, s), s.events);
|
|
5878
5878
|
}
|
|
5879
5879
|
function f(R, T) {
|
|
5880
5880
|
return Bd(p(R), T);
|
|
@@ -5882,7 +5882,7 @@ function Ed(e, t, n) {
|
|
|
5882
5882
|
function p(R) {
|
|
5883
5883
|
return kd(a, R);
|
|
5884
5884
|
}
|
|
5885
|
-
function
|
|
5885
|
+
function b() {
|
|
5886
5886
|
const {
|
|
5887
5887
|
_bufferIndex: R,
|
|
5888
5888
|
_index: T,
|
|
@@ -5898,10 +5898,10 @@ function Ed(e, t, n) {
|
|
|
5898
5898
|
offset: X
|
|
5899
5899
|
};
|
|
5900
5900
|
}
|
|
5901
|
-
function
|
|
5901
|
+
function y(R) {
|
|
5902
5902
|
r[R.line] = R.column, w();
|
|
5903
5903
|
}
|
|
5904
|
-
function
|
|
5904
|
+
function x() {
|
|
5905
5905
|
let R;
|
|
5906
5906
|
for (; i._index < a.length; ) {
|
|
5907
5907
|
const T = a[i._index];
|
|
@@ -5923,16 +5923,16 @@ function Ed(e, t, n) {
|
|
|
5923
5923
|
}
|
|
5924
5924
|
function A(R, T) {
|
|
5925
5925
|
const z = T || {};
|
|
5926
|
-
return z.type = R, z.start =
|
|
5926
|
+
return z.type = R, z.start = b(), s.events.push(["enter", z, s]), l.push(z), z;
|
|
5927
5927
|
}
|
|
5928
|
-
function
|
|
5928
|
+
function S(R) {
|
|
5929
5929
|
const T = l.pop();
|
|
5930
|
-
return T.end =
|
|
5930
|
+
return T.end = b(), s.events.push(["exit", T, s]), T;
|
|
5931
5931
|
}
|
|
5932
|
-
function
|
|
5932
|
+
function k(R, T) {
|
|
5933
5933
|
B(R, T.from);
|
|
5934
5934
|
}
|
|
5935
|
-
function
|
|
5935
|
+
function v(R, T) {
|
|
5936
5936
|
T.restore();
|
|
5937
5937
|
}
|
|
5938
5938
|
function D(R, T) {
|
|
@@ -5990,7 +5990,7 @@ function Ed(e, t, n) {
|
|
|
5990
5990
|
R.resolveAll && !o.includes(R) && o.push(R), R.resolve && st(s.events, T, s.events.length - T, R.resolve(s.events.slice(T), s)), R.resolveTo && (s.events = R.resolveTo(s.events, s));
|
|
5991
5991
|
}
|
|
5992
5992
|
function F() {
|
|
5993
|
-
const R =
|
|
5993
|
+
const R = b(), T = s.previous, z = s.currentConstruct, _ = s.events.length, X = Array.from(l);
|
|
5994
5994
|
return {
|
|
5995
5995
|
from: _,
|
|
5996
5996
|
restore: J
|
|
@@ -6190,7 +6190,7 @@ function Ld(e) {
|
|
|
6190
6190
|
},
|
|
6191
6191
|
exit: {
|
|
6192
6192
|
atxHeading: u(),
|
|
6193
|
-
atxHeadingSequence:
|
|
6193
|
+
atxHeadingSequence: k,
|
|
6194
6194
|
autolink: u(),
|
|
6195
6195
|
autolinkEmail: Oe,
|
|
6196
6196
|
autolinkProtocol: fe,
|
|
@@ -6200,17 +6200,17 @@ function Ld(e) {
|
|
|
6200
6200
|
characterReferenceMarkerNumeric: K,
|
|
6201
6201
|
characterReferenceValue: ee,
|
|
6202
6202
|
characterReference: Be,
|
|
6203
|
-
codeFenced: u(
|
|
6204
|
-
codeFencedFence:
|
|
6203
|
+
codeFenced: u(x),
|
|
6204
|
+
codeFencedFence: y,
|
|
6205
6205
|
codeFencedFenceInfo: p,
|
|
6206
|
-
codeFencedFenceMeta:
|
|
6206
|
+
codeFencedFenceMeta: b,
|
|
6207
6207
|
codeFlowValue: w,
|
|
6208
6208
|
codeIndented: u(I),
|
|
6209
6209
|
codeText: u(X),
|
|
6210
6210
|
codeTextData: w,
|
|
6211
6211
|
data: w,
|
|
6212
6212
|
definition: u(),
|
|
6213
|
-
definitionDestinationString:
|
|
6213
|
+
definitionDestinationString: S,
|
|
6214
6214
|
definitionLabelString: P,
|
|
6215
6215
|
definitionTitleString: A,
|
|
6216
6216
|
emphasis: u(),
|
|
@@ -6235,7 +6235,7 @@ function Ld(e) {
|
|
|
6235
6235
|
resource: j,
|
|
6236
6236
|
setextHeading: u(B),
|
|
6237
6237
|
setextHeadingLineSequence: D,
|
|
6238
|
-
setextHeadingText:
|
|
6238
|
+
setextHeadingText: v,
|
|
6239
6239
|
strong: u(),
|
|
6240
6240
|
thematicBreak: u()
|
|
6241
6241
|
}
|
|
@@ -6243,7 +6243,7 @@ function Ld(e) {
|
|
|
6243
6243
|
Ia(t, (e || {}).mdastExtensions || []);
|
|
6244
6244
|
const n = {};
|
|
6245
6245
|
return i;
|
|
6246
|
-
function i(
|
|
6246
|
+
function i(E) {
|
|
6247
6247
|
let M = {
|
|
6248
6248
|
type: "root",
|
|
6249
6249
|
children: []
|
|
@@ -6259,31 +6259,31 @@ function Ld(e) {
|
|
|
6259
6259
|
data: n
|
|
6260
6260
|
}, Z = [];
|
|
6261
6261
|
let U = -1;
|
|
6262
|
-
for (; ++U <
|
|
6263
|
-
if (
|
|
6264
|
-
if (
|
|
6262
|
+
for (; ++U < E.length; )
|
|
6263
|
+
if (E[U][1].type === "listOrdered" || E[U][1].type === "listUnordered")
|
|
6264
|
+
if (E[U][0] === "enter")
|
|
6265
6265
|
Z.push(U);
|
|
6266
6266
|
else {
|
|
6267
6267
|
const me = Z.pop();
|
|
6268
|
-
U = r(
|
|
6268
|
+
U = r(E, me, U);
|
|
6269
6269
|
}
|
|
6270
|
-
for (U = -1; ++U <
|
|
6271
|
-
const me = t[
|
|
6272
|
-
ya.call(me,
|
|
6273
|
-
sliceSerialize:
|
|
6274
|
-
}, H),
|
|
6270
|
+
for (U = -1; ++U < E.length; ) {
|
|
6271
|
+
const me = t[E[U][0]];
|
|
6272
|
+
ya.call(me, E[U][1].type) && me[E[U][1].type].call(Object.assign({
|
|
6273
|
+
sliceSerialize: E[U][2].sliceSerialize
|
|
6274
|
+
}, H), E[U][1]);
|
|
6275
6275
|
}
|
|
6276
6276
|
if (H.tokenStack.length > 0) {
|
|
6277
6277
|
const me = H.tokenStack[H.tokenStack.length - 1];
|
|
6278
6278
|
(me[1] || Ui).call(H, void 0, me[0]);
|
|
6279
6279
|
}
|
|
6280
6280
|
for (M.position = {
|
|
6281
|
-
start: Ct(
|
|
6281
|
+
start: Ct(E.length > 0 ? E[0][1].start : {
|
|
6282
6282
|
line: 1,
|
|
6283
6283
|
column: 1,
|
|
6284
6284
|
offset: 0
|
|
6285
6285
|
}),
|
|
6286
|
-
end: Ct(
|
|
6286
|
+
end: Ct(E.length > 0 ? E[E.length - 2][1].end : {
|
|
6287
6287
|
line: 1,
|
|
6288
6288
|
column: 1,
|
|
6289
6289
|
offset: 0
|
|
@@ -6292,10 +6292,10 @@ function Ld(e) {
|
|
|
6292
6292
|
M = t.transforms[U](M) || M;
|
|
6293
6293
|
return M;
|
|
6294
6294
|
}
|
|
6295
|
-
function r(
|
|
6295
|
+
function r(E, M, H) {
|
|
6296
6296
|
let Z = M - 1, U = -1, me = !1, it, tt, bt, ot;
|
|
6297
6297
|
for (; ++Z <= H; ) {
|
|
6298
|
-
const Xe =
|
|
6298
|
+
const Xe = E[Z];
|
|
6299
6299
|
switch (Xe[1].type) {
|
|
6300
6300
|
case "listUnordered":
|
|
6301
6301
|
case "listOrdered":
|
|
@@ -6320,13 +6320,13 @@ function Ld(e) {
|
|
|
6320
6320
|
if (it) {
|
|
6321
6321
|
let pt = Z;
|
|
6322
6322
|
for (tt = void 0; pt--; ) {
|
|
6323
|
-
const nt =
|
|
6323
|
+
const nt = E[pt];
|
|
6324
6324
|
if (nt[1].type === "lineEnding" || nt[1].type === "lineEndingBlank") {
|
|
6325
6325
|
if (nt[0] === "exit") continue;
|
|
6326
|
-
tt && (
|
|
6326
|
+
tt && (E[tt][1].type = "lineEndingBlank", me = !0), nt[1].type = "lineEnding", tt = pt;
|
|
6327
6327
|
} else if (!(nt[1].type === "linePrefix" || nt[1].type === "blockQuotePrefix" || nt[1].type === "blockQuotePrefixWhitespace" || nt[1].type === "blockQuoteMarker" || nt[1].type === "listItemIndent")) break;
|
|
6328
6328
|
}
|
|
6329
|
-
bt && (!tt || bt < tt) && (it._spread = !0), it.end = Object.assign({}, tt ?
|
|
6329
|
+
bt && (!tt || bt < tt) && (it._spread = !0), it.end = Object.assign({}, tt ? E[tt][1].start : Xe[1].end), E.splice(tt || Z, 0, ["exit", it, Xe[2]]), Z++, H++;
|
|
6330
6330
|
}
|
|
6331
6331
|
if (Xe[1].type === "listItemPrefix") {
|
|
6332
6332
|
const pt = {
|
|
@@ -6336,16 +6336,16 @@ function Ld(e) {
|
|
|
6336
6336
|
// @ts-expect-error: we’ll add `end` in a second.
|
|
6337
6337
|
end: void 0
|
|
6338
6338
|
};
|
|
6339
|
-
it = pt,
|
|
6339
|
+
it = pt, E.splice(Z, 0, ["enter", pt, Xe[2]]), Z++, H++, bt = void 0, ot = !0;
|
|
6340
6340
|
}
|
|
6341
6341
|
}
|
|
6342
6342
|
}
|
|
6343
|
-
return
|
|
6343
|
+
return E[M][1]._spread = me, H;
|
|
6344
6344
|
}
|
|
6345
|
-
function o(
|
|
6345
|
+
function o(E, M) {
|
|
6346
6346
|
return H;
|
|
6347
6347
|
function H(Z) {
|
|
6348
|
-
l.call(this,
|
|
6348
|
+
l.call(this, E(Z), Z), M && M.call(this, Z);
|
|
6349
6349
|
}
|
|
6350
6350
|
}
|
|
6351
6351
|
function a() {
|
|
@@ -6354,28 +6354,28 @@ function Ld(e) {
|
|
|
6354
6354
|
children: []
|
|
6355
6355
|
});
|
|
6356
6356
|
}
|
|
6357
|
-
function l(
|
|
6358
|
-
this.stack[this.stack.length - 1].children.push(
|
|
6357
|
+
function l(E, M, H) {
|
|
6358
|
+
this.stack[this.stack.length - 1].children.push(E), this.stack.push(E), this.tokenStack.push([M, H || void 0]), E.position = {
|
|
6359
6359
|
start: Ct(M.start),
|
|
6360
6360
|
// @ts-expect-error: `end` will be patched later.
|
|
6361
6361
|
end: void 0
|
|
6362
6362
|
};
|
|
6363
6363
|
}
|
|
6364
|
-
function u(
|
|
6364
|
+
function u(E) {
|
|
6365
6365
|
return M;
|
|
6366
6366
|
function M(H) {
|
|
6367
|
-
|
|
6367
|
+
E && E.call(this, H), s.call(this, H);
|
|
6368
6368
|
}
|
|
6369
6369
|
}
|
|
6370
|
-
function s(
|
|
6370
|
+
function s(E, M) {
|
|
6371
6371
|
const H = this.stack.pop(), Z = this.tokenStack.pop();
|
|
6372
6372
|
if (Z)
|
|
6373
|
-
Z[0].type !==
|
|
6374
|
-
else throw new Error("Cannot close `" +
|
|
6375
|
-
start:
|
|
6376
|
-
end:
|
|
6373
|
+
Z[0].type !== E.type && (M ? M.call(this, E, Z[0]) : (Z[1] || Ui).call(this, E, Z[0]));
|
|
6374
|
+
else throw new Error("Cannot close `" + E.type + "` (" + tn({
|
|
6375
|
+
start: E.start,
|
|
6376
|
+
end: E.end
|
|
6377
6377
|
}) + "): it’s not open");
|
|
6378
|
-
H.position.end = Ct(
|
|
6378
|
+
H.position.end = Ct(E.end);
|
|
6379
6379
|
}
|
|
6380
6380
|
function c() {
|
|
6381
6381
|
return Rs(this.stack.pop());
|
|
@@ -6383,134 +6383,134 @@ function Ld(e) {
|
|
|
6383
6383
|
function d() {
|
|
6384
6384
|
this.data.expectingFirstListItemValue = !0;
|
|
6385
6385
|
}
|
|
6386
|
-
function f(
|
|
6386
|
+
function f(E) {
|
|
6387
6387
|
if (this.data.expectingFirstListItemValue) {
|
|
6388
6388
|
const M = this.stack[this.stack.length - 2];
|
|
6389
|
-
M.start = Number.parseInt(this.sliceSerialize(
|
|
6389
|
+
M.start = Number.parseInt(this.sliceSerialize(E), 10), this.data.expectingFirstListItemValue = void 0;
|
|
6390
6390
|
}
|
|
6391
6391
|
}
|
|
6392
6392
|
function p() {
|
|
6393
|
-
const
|
|
6394
|
-
M.lang =
|
|
6395
|
-
}
|
|
6396
|
-
function y() {
|
|
6397
|
-
const k = this.resume(), M = this.stack[this.stack.length - 1];
|
|
6398
|
-
M.meta = k;
|
|
6393
|
+
const E = this.resume(), M = this.stack[this.stack.length - 1];
|
|
6394
|
+
M.lang = E;
|
|
6399
6395
|
}
|
|
6400
6396
|
function b() {
|
|
6397
|
+
const E = this.resume(), M = this.stack[this.stack.length - 1];
|
|
6398
|
+
M.meta = E;
|
|
6399
|
+
}
|
|
6400
|
+
function y() {
|
|
6401
6401
|
this.data.flowCodeInside || (this.buffer(), this.data.flowCodeInside = !0);
|
|
6402
6402
|
}
|
|
6403
|
-
function
|
|
6404
|
-
const
|
|
6405
|
-
M.value =
|
|
6403
|
+
function x() {
|
|
6404
|
+
const E = this.resume(), M = this.stack[this.stack.length - 1];
|
|
6405
|
+
M.value = E.replace(/^(\r?\n|\r)|(\r?\n|\r)$/g, ""), this.data.flowCodeInside = void 0;
|
|
6406
6406
|
}
|
|
6407
6407
|
function I() {
|
|
6408
|
-
const
|
|
6409
|
-
M.value =
|
|
6408
|
+
const E = this.resume(), M = this.stack[this.stack.length - 1];
|
|
6409
|
+
M.value = E.replace(/(\r?\n|\r)$/g, "");
|
|
6410
6410
|
}
|
|
6411
|
-
function P(
|
|
6411
|
+
function P(E) {
|
|
6412
6412
|
const M = this.resume(), H = this.stack[this.stack.length - 1];
|
|
6413
|
-
H.label = M, H.identifier = zt(this.sliceSerialize(
|
|
6413
|
+
H.label = M, H.identifier = zt(this.sliceSerialize(E)).toLowerCase();
|
|
6414
6414
|
}
|
|
6415
6415
|
function A() {
|
|
6416
|
-
const
|
|
6417
|
-
M.title =
|
|
6416
|
+
const E = this.resume(), M = this.stack[this.stack.length - 1];
|
|
6417
|
+
M.title = E;
|
|
6418
6418
|
}
|
|
6419
|
-
function
|
|
6420
|
-
const
|
|
6421
|
-
M.url =
|
|
6419
|
+
function S() {
|
|
6420
|
+
const E = this.resume(), M = this.stack[this.stack.length - 1];
|
|
6421
|
+
M.url = E;
|
|
6422
6422
|
}
|
|
6423
|
-
function
|
|
6423
|
+
function k(E) {
|
|
6424
6424
|
const M = this.stack[this.stack.length - 1];
|
|
6425
6425
|
if (!M.depth) {
|
|
6426
|
-
const H = this.sliceSerialize(
|
|
6426
|
+
const H = this.sliceSerialize(E).length;
|
|
6427
6427
|
M.depth = H;
|
|
6428
6428
|
}
|
|
6429
6429
|
}
|
|
6430
|
-
function
|
|
6430
|
+
function v() {
|
|
6431
6431
|
this.data.setextHeadingSlurpLineEnding = !0;
|
|
6432
6432
|
}
|
|
6433
|
-
function D(
|
|
6433
|
+
function D(E) {
|
|
6434
6434
|
const M = this.stack[this.stack.length - 1];
|
|
6435
|
-
M.depth = this.sliceSerialize(
|
|
6435
|
+
M.depth = this.sliceSerialize(E).codePointAt(0) === 61 ? 1 : 2;
|
|
6436
6436
|
}
|
|
6437
6437
|
function B() {
|
|
6438
6438
|
this.data.setextHeadingSlurpLineEnding = void 0;
|
|
6439
6439
|
}
|
|
6440
|
-
function F(
|
|
6440
|
+
function F(E) {
|
|
6441
6441
|
const H = this.stack[this.stack.length - 1].children;
|
|
6442
6442
|
let Z = H[H.length - 1];
|
|
6443
6443
|
(!Z || Z.type !== "text") && (Z = Ee(), Z.position = {
|
|
6444
|
-
start: Ct(
|
|
6444
|
+
start: Ct(E.start),
|
|
6445
6445
|
// @ts-expect-error: we’ll add `end` later.
|
|
6446
6446
|
end: void 0
|
|
6447
6447
|
}, H.push(Z)), this.stack.push(Z);
|
|
6448
6448
|
}
|
|
6449
|
-
function w(
|
|
6449
|
+
function w(E) {
|
|
6450
6450
|
const M = this.stack.pop();
|
|
6451
|
-
M.value += this.sliceSerialize(
|
|
6451
|
+
M.value += this.sliceSerialize(E), M.position.end = Ct(E.end);
|
|
6452
6452
|
}
|
|
6453
|
-
function R(
|
|
6453
|
+
function R(E) {
|
|
6454
6454
|
const M = this.stack[this.stack.length - 1];
|
|
6455
6455
|
if (this.data.atHardBreak) {
|
|
6456
6456
|
const H = M.children[M.children.length - 1];
|
|
6457
|
-
H.position.end = Ct(
|
|
6457
|
+
H.position.end = Ct(E.end), this.data.atHardBreak = void 0;
|
|
6458
6458
|
return;
|
|
6459
6459
|
}
|
|
6460
|
-
!this.data.setextHeadingSlurpLineEnding && t.canContainEols.includes(M.type) && (F.call(this,
|
|
6460
|
+
!this.data.setextHeadingSlurpLineEnding && t.canContainEols.includes(M.type) && (F.call(this, E), w.call(this, E));
|
|
6461
6461
|
}
|
|
6462
6462
|
function T() {
|
|
6463
6463
|
this.data.atHardBreak = !0;
|
|
6464
6464
|
}
|
|
6465
6465
|
function z() {
|
|
6466
|
-
const
|
|
6467
|
-
M.value =
|
|
6466
|
+
const E = this.resume(), M = this.stack[this.stack.length - 1];
|
|
6467
|
+
M.value = E;
|
|
6468
6468
|
}
|
|
6469
6469
|
function _() {
|
|
6470
|
-
const
|
|
6471
|
-
M.value =
|
|
6470
|
+
const E = this.resume(), M = this.stack[this.stack.length - 1];
|
|
6471
|
+
M.value = E;
|
|
6472
6472
|
}
|
|
6473
6473
|
function X() {
|
|
6474
|
-
const
|
|
6475
|
-
M.value =
|
|
6474
|
+
const E = this.resume(), M = this.stack[this.stack.length - 1];
|
|
6475
|
+
M.value = E;
|
|
6476
6476
|
}
|
|
6477
6477
|
function J() {
|
|
6478
|
-
const
|
|
6478
|
+
const E = this.stack[this.stack.length - 1];
|
|
6479
6479
|
if (this.data.inReference) {
|
|
6480
6480
|
const M = this.data.referenceType || "shortcut";
|
|
6481
|
-
|
|
6481
|
+
E.type += "Reference", E.referenceType = M, delete E.url, delete E.title;
|
|
6482
6482
|
} else
|
|
6483
|
-
delete
|
|
6483
|
+
delete E.identifier, delete E.label;
|
|
6484
6484
|
this.data.referenceType = void 0;
|
|
6485
6485
|
}
|
|
6486
6486
|
function ie() {
|
|
6487
|
-
const
|
|
6487
|
+
const E = this.stack[this.stack.length - 1];
|
|
6488
6488
|
if (this.data.inReference) {
|
|
6489
6489
|
const M = this.data.referenceType || "shortcut";
|
|
6490
|
-
|
|
6490
|
+
E.type += "Reference", E.referenceType = M, delete E.url, delete E.title;
|
|
6491
6491
|
} else
|
|
6492
|
-
delete
|
|
6492
|
+
delete E.identifier, delete E.label;
|
|
6493
6493
|
this.data.referenceType = void 0;
|
|
6494
6494
|
}
|
|
6495
|
-
function oe(
|
|
6496
|
-
const M = this.sliceSerialize(
|
|
6495
|
+
function oe(E) {
|
|
6496
|
+
const M = this.sliceSerialize(E), H = this.stack[this.stack.length - 2];
|
|
6497
6497
|
H.label = Od(M), H.identifier = zt(M).toLowerCase();
|
|
6498
6498
|
}
|
|
6499
6499
|
function G() {
|
|
6500
|
-
const
|
|
6500
|
+
const E = this.stack[this.stack.length - 1], M = this.resume(), H = this.stack[this.stack.length - 1];
|
|
6501
6501
|
if (this.data.inReference = !0, H.type === "link") {
|
|
6502
|
-
const Z =
|
|
6502
|
+
const Z = E.children;
|
|
6503
6503
|
H.children = Z;
|
|
6504
6504
|
} else
|
|
6505
6505
|
H.alt = M;
|
|
6506
6506
|
}
|
|
6507
6507
|
function g() {
|
|
6508
|
-
const
|
|
6509
|
-
M.url =
|
|
6508
|
+
const E = this.resume(), M = this.stack[this.stack.length - 1];
|
|
6509
|
+
M.url = E;
|
|
6510
6510
|
}
|
|
6511
6511
|
function ae() {
|
|
6512
|
-
const
|
|
6513
|
-
M.title =
|
|
6512
|
+
const E = this.resume(), M = this.stack[this.stack.length - 1];
|
|
6513
|
+
M.title = E;
|
|
6514
6514
|
}
|
|
6515
6515
|
function j() {
|
|
6516
6516
|
this.data.inReference = void 0;
|
|
@@ -6518,33 +6518,33 @@ function Ld(e) {
|
|
|
6518
6518
|
function m() {
|
|
6519
6519
|
this.data.referenceType = "collapsed";
|
|
6520
6520
|
}
|
|
6521
|
-
function de(
|
|
6521
|
+
function de(E) {
|
|
6522
6522
|
const M = this.resume(), H = this.stack[this.stack.length - 1];
|
|
6523
|
-
H.label = M, H.identifier = zt(this.sliceSerialize(
|
|
6523
|
+
H.label = M, H.identifier = zt(this.sliceSerialize(E)).toLowerCase(), this.data.referenceType = "full";
|
|
6524
6524
|
}
|
|
6525
|
-
function K(
|
|
6526
|
-
this.data.characterReferenceType =
|
|
6525
|
+
function K(E) {
|
|
6526
|
+
this.data.characterReferenceType = E.type;
|
|
6527
6527
|
}
|
|
6528
|
-
function ee(
|
|
6529
|
-
const M = this.sliceSerialize(
|
|
6528
|
+
function ee(E) {
|
|
6529
|
+
const M = this.sliceSerialize(E), H = this.data.characterReferenceType;
|
|
6530
6530
|
let Z;
|
|
6531
6531
|
H ? (Z = ua(M, H === "characterReferenceMarkerNumeric" ? 10 : 16), this.data.characterReferenceType = void 0) : Z = la(M);
|
|
6532
6532
|
const U = this.stack[this.stack.length - 1];
|
|
6533
6533
|
U.value += Z;
|
|
6534
6534
|
}
|
|
6535
|
-
function Be(
|
|
6535
|
+
function Be(E) {
|
|
6536
6536
|
const M = this.stack.pop();
|
|
6537
|
-
M.position.end = Ct(
|
|
6537
|
+
M.position.end = Ct(E.end);
|
|
6538
6538
|
}
|
|
6539
|
-
function fe(
|
|
6540
|
-
w.call(this,
|
|
6539
|
+
function fe(E) {
|
|
6540
|
+
w.call(this, E);
|
|
6541
6541
|
const M = this.stack[this.stack.length - 1];
|
|
6542
|
-
M.url = this.sliceSerialize(
|
|
6542
|
+
M.url = this.sliceSerialize(E);
|
|
6543
6543
|
}
|
|
6544
|
-
function Oe(
|
|
6545
|
-
w.call(this,
|
|
6544
|
+
function Oe(E) {
|
|
6545
|
+
w.call(this, E);
|
|
6546
6546
|
const M = this.stack[this.stack.length - 1];
|
|
6547
|
-
M.url = "mailto:" + this.sliceSerialize(
|
|
6547
|
+
M.url = "mailto:" + this.sliceSerialize(E);
|
|
6548
6548
|
}
|
|
6549
6549
|
function se() {
|
|
6550
6550
|
return {
|
|
@@ -6616,19 +6616,19 @@ function Ld(e) {
|
|
|
6616
6616
|
children: []
|
|
6617
6617
|
};
|
|
6618
6618
|
}
|
|
6619
|
-
function L(
|
|
6619
|
+
function L(E) {
|
|
6620
6620
|
return {
|
|
6621
6621
|
type: "list",
|
|
6622
|
-
ordered:
|
|
6622
|
+
ordered: E.type === "listOrdered",
|
|
6623
6623
|
start: null,
|
|
6624
|
-
spread:
|
|
6624
|
+
spread: E._spread,
|
|
6625
6625
|
children: []
|
|
6626
6626
|
};
|
|
6627
6627
|
}
|
|
6628
|
-
function W(
|
|
6628
|
+
function W(E) {
|
|
6629
6629
|
return {
|
|
6630
6630
|
type: "listItem",
|
|
6631
|
-
spread:
|
|
6631
|
+
spread: E._spread,
|
|
6632
6632
|
checked: null,
|
|
6633
6633
|
children: []
|
|
6634
6634
|
};
|
|
@@ -6979,8 +6979,8 @@ function lp(e, t, n) {
|
|
|
6979
6979
|
for (; ++u < l; ) {
|
|
6980
6980
|
const d = t.children[u], f = {}, p = a ? a[u] : void 0;
|
|
6981
6981
|
p && (f.align = p);
|
|
6982
|
-
let
|
|
6983
|
-
d && (
|
|
6982
|
+
let b = { type: "element", tagName: o, properties: f, children: [] };
|
|
6983
|
+
d && (b.children = e.all(d), e.patch(d, b), b = e.applyData(d, b)), s.push(b);
|
|
6984
6984
|
}
|
|
6985
6985
|
const c = {
|
|
6986
6986
|
type: "element",
|
|
@@ -7258,11 +7258,11 @@ function Ip(e) {
|
|
|
7258
7258
|
continue;
|
|
7259
7259
|
const c = e.all(s), d = String(s.identifier).toUpperCase(), f = Zt(d.toLowerCase());
|
|
7260
7260
|
let p = 0;
|
|
7261
|
-
const
|
|
7262
|
-
for (;
|
|
7263
|
-
|
|
7261
|
+
const b = [], y = e.footnoteCounts.get(d);
|
|
7262
|
+
for (; y !== void 0 && ++p <= y; ) {
|
|
7263
|
+
b.length > 0 && b.push({ type: "text", value: " " });
|
|
7264
7264
|
let P = typeof n == "string" ? n : n(u, p);
|
|
7265
|
-
typeof P == "string" && (P = { type: "text", value: P }),
|
|
7265
|
+
typeof P == "string" && (P = { type: "text", value: P }), b.push({
|
|
7266
7266
|
type: "element",
|
|
7267
7267
|
tagName: "a",
|
|
7268
7268
|
properties: {
|
|
@@ -7274,12 +7274,12 @@ function Ip(e) {
|
|
|
7274
7274
|
children: Array.isArray(P) ? P : [P]
|
|
7275
7275
|
});
|
|
7276
7276
|
}
|
|
7277
|
-
const
|
|
7278
|
-
if (
|
|
7279
|
-
const P =
|
|
7280
|
-
P && P.type === "text" ? P.value += " " :
|
|
7277
|
+
const x = c[c.length - 1];
|
|
7278
|
+
if (x && x.type === "element" && x.tagName === "p") {
|
|
7279
|
+
const P = x.children[x.children.length - 1];
|
|
7280
|
+
P && P.type === "text" ? P.value += " " : x.children.push({ type: "text", value: " " }), x.children.push(...b);
|
|
7281
7281
|
} else
|
|
7282
|
-
c.push(...
|
|
7282
|
+
c.push(...b);
|
|
7283
7283
|
const I = {
|
|
7284
7284
|
type: "element",
|
|
7285
7285
|
tagName: "li",
|
|
@@ -7429,7 +7429,7 @@ function kp(e, t, n, i) {
|
|
|
7429
7429
|
}
|
|
7430
7430
|
return f;
|
|
7431
7431
|
function f() {
|
|
7432
|
-
let p = Ea,
|
|
7432
|
+
let p = Ea, b, y, x;
|
|
7433
7433
|
if ((!t || o(u, s, c[c.length - 1] || void 0)) && (p = Bp(n(u, c)), p[0] === no))
|
|
7434
7434
|
return p;
|
|
7435
7435
|
if ("children" in u && u.children) {
|
|
@@ -7438,11 +7438,11 @@ function kp(e, t, n, i) {
|
|
|
7438
7438
|
u
|
|
7439
7439
|
);
|
|
7440
7440
|
if (I.children && p[0] !== Ep)
|
|
7441
|
-
for (
|
|
7442
|
-
const P = I.children[
|
|
7443
|
-
if (
|
|
7444
|
-
return
|
|
7445
|
-
|
|
7441
|
+
for (y = (i ? I.children.length : -1) + a, x = c.concat(I); y > -1 && y < I.children.length; ) {
|
|
7442
|
+
const P = I.children[y];
|
|
7443
|
+
if (b = l(P, y, x)(), b[0] === no)
|
|
7444
|
+
return b;
|
|
7445
|
+
y = typeof b[1] == "number" ? b[1] : y + a;
|
|
7446
7446
|
}
|
|
7447
7447
|
}
|
|
7448
7448
|
return p;
|
|
@@ -7487,7 +7487,7 @@ function Gp(e, t) {
|
|
|
7487
7487
|
return p(l, c, d);
|
|
7488
7488
|
if (l.options.passThrough && l.options.passThrough.includes(f)) {
|
|
7489
7489
|
if ("children" in c) {
|
|
7490
|
-
const { children:
|
|
7490
|
+
const { children: y, ...x } = c, I = Pn(x);
|
|
7491
7491
|
return I.children = l.all(c), I;
|
|
7492
7492
|
}
|
|
7493
7493
|
return Pn(c);
|
|
@@ -7500,13 +7500,13 @@ function Gp(e, t) {
|
|
|
7500
7500
|
const f = c.children;
|
|
7501
7501
|
let p = -1;
|
|
7502
7502
|
for (; ++p < f.length; ) {
|
|
7503
|
-
const
|
|
7504
|
-
if (
|
|
7505
|
-
if (p && f[p - 1].type === "break" && (!Array.isArray(
|
|
7506
|
-
const
|
|
7507
|
-
|
|
7503
|
+
const b = l.one(f[p], c);
|
|
7504
|
+
if (b) {
|
|
7505
|
+
if (p && f[p - 1].type === "break" && (!Array.isArray(b) && b.type === "text" && (b.value = ro(b.value)), !Array.isArray(b) && b.type === "element")) {
|
|
7506
|
+
const y = b.children[0];
|
|
7507
|
+
y && y.type === "text" && (y.value = ro(y.value));
|
|
7508
7508
|
}
|
|
7509
|
-
Array.isArray(
|
|
7509
|
+
Array.isArray(b) ? d.push(...b) : d.push(b);
|
|
7510
7510
|
}
|
|
7511
7511
|
}
|
|
7512
7512
|
}
|
|
@@ -8453,8 +8453,8 @@ class ni extends qp {
|
|
|
8453
8453
|
/** @type {CompileTree extends undefined ? Node : CompileTree} */
|
|
8454
8454
|
/** @type {unknown} */
|
|
8455
8455
|
d
|
|
8456
|
-
),
|
|
8457
|
-
ef(
|
|
8456
|
+
), b = i.stringify(p, f);
|
|
8457
|
+
ef(b) ? f.value = b : f.result = b, s(
|
|
8458
8458
|
c,
|
|
8459
8459
|
/** @type {VFileWithOutput<CompileResult>} */
|
|
8460
8460
|
f
|
|
@@ -8723,9 +8723,9 @@ class ni extends qp {
|
|
|
8723
8723
|
if (f === -1)
|
|
8724
8724
|
i.push([s, ...c]);
|
|
8725
8725
|
else if (c.length > 0) {
|
|
8726
|
-
let [p, ...
|
|
8727
|
-
const
|
|
8728
|
-
Tr(
|
|
8726
|
+
let [p, ...b] = c;
|
|
8727
|
+
const y = i[f][1];
|
|
8728
|
+
Tr(y) && Tr(p) && (p = ar(!0, y, p)), i[f] = [s, p, ...b];
|
|
8729
8729
|
}
|
|
8730
8730
|
}
|
|
8731
8731
|
}
|
|
@@ -8844,8 +8844,8 @@ function uf(e, t) {
|
|
|
8844
8844
|
let p;
|
|
8845
8845
|
for (p in rr)
|
|
8846
8846
|
if (Object.hasOwn(rr, p) && Object.hasOwn(c.properties, p)) {
|
|
8847
|
-
const
|
|
8848
|
-
(
|
|
8847
|
+
const b = c.properties[p], y = rr[p];
|
|
8848
|
+
(y === null || y.includes(c.tagName)) && (c.properties[p] = u(String(b || ""), p, c));
|
|
8849
8849
|
}
|
|
8850
8850
|
}
|
|
8851
8851
|
if (c.type === "element") {
|
|
@@ -8910,75 +8910,75 @@ function Rr({ prop: e }) {
|
|
|
8910
8910
|
var Gn = { exports: {} };
|
|
8911
8911
|
Gn.exports;
|
|
8912
8912
|
(function(e, t) {
|
|
8913
|
-
var n = 200, i = "__lodash_hash_undefined__", r = 1, o = 2, a = 9007199254740991, l = "[object Arguments]", u = "[object Array]", s = "[object AsyncFunction]", c = "[object Boolean]", d = "[object Date]", f = "[object Error]", p = "[object Function]",
|
|
8914
|
-
K[z] = K[_] = K[X] = K[J] = K[ie] = K[oe] = K[G] = K[g] = K[ae] = !0, K[l] = K[u] = K[R] = K[c] = K[T] = K[d] = K[f] = K[p] = K[
|
|
8913
|
+
var n = 200, i = "__lodash_hash_undefined__", r = 1, o = 2, a = 9007199254740991, l = "[object Arguments]", u = "[object Array]", s = "[object AsyncFunction]", c = "[object Boolean]", d = "[object Date]", f = "[object Error]", p = "[object Function]", b = "[object GeneratorFunction]", y = "[object Map]", x = "[object Number]", I = "[object Null]", P = "[object Object]", A = "[object Promise]", S = "[object Proxy]", k = "[object RegExp]", v = "[object Set]", D = "[object String]", B = "[object Symbol]", F = "[object Undefined]", w = "[object WeakMap]", R = "[object ArrayBuffer]", T = "[object DataView]", z = "[object Float32Array]", _ = "[object Float64Array]", X = "[object Int8Array]", J = "[object Int16Array]", ie = "[object Int32Array]", oe = "[object Uint8Array]", G = "[object Uint8ClampedArray]", g = "[object Uint16Array]", ae = "[object Uint32Array]", j = /[\\^$.*+?()[\]{}|]/g, m = /^\[object .+?Constructor\]$/, de = /^(?:0|[1-9]\d*)$/, K = {};
|
|
8914
|
+
K[z] = K[_] = K[X] = K[J] = K[ie] = K[oe] = K[G] = K[g] = K[ae] = !0, K[l] = K[u] = K[R] = K[c] = K[T] = K[d] = K[f] = K[p] = K[y] = K[x] = K[P] = K[k] = K[v] = K[D] = K[w] = !1;
|
|
8915
8915
|
var ee = typeof xt == "object" && xt && xt.Object === Object && xt, Be = typeof self == "object" && self && self.Object === Object && self, fe = ee || Be || Function("return this")(), Oe = t && !t.nodeType && t, se = Oe && !0 && e && !e.nodeType && e, xe = se && se.exports === Oe, Ae = xe && ee.process, Ne = function() {
|
|
8916
8916
|
try {
|
|
8917
8917
|
return Ae && Ae.binding && Ae.binding("util");
|
|
8918
8918
|
} catch {
|
|
8919
8919
|
}
|
|
8920
8920
|
}(), Pe = Ne && Ne.isTypedArray;
|
|
8921
|
-
function Me(h,
|
|
8921
|
+
function Me(h, C) {
|
|
8922
8922
|
for (var V = -1, Y = h == null ? 0 : h.length, Ce = 0, le = []; ++V < Y; ) {
|
|
8923
8923
|
var Ge = h[V];
|
|
8924
|
-
|
|
8924
|
+
C(Ge, V, h) && (le[Ce++] = Ge);
|
|
8925
8925
|
}
|
|
8926
8926
|
return le;
|
|
8927
8927
|
}
|
|
8928
|
-
function Se(h,
|
|
8929
|
-
for (var V = -1, Y =
|
|
8930
|
-
h[Ce + V] =
|
|
8928
|
+
function Se(h, C) {
|
|
8929
|
+
for (var V = -1, Y = C.length, Ce = h.length; ++V < Y; )
|
|
8930
|
+
h[Ce + V] = C[V];
|
|
8931
8931
|
return h;
|
|
8932
8932
|
}
|
|
8933
|
-
function _e(h,
|
|
8933
|
+
function _e(h, C) {
|
|
8934
8934
|
for (var V = -1, Y = h == null ? 0 : h.length; ++V < Y; )
|
|
8935
|
-
if (
|
|
8935
|
+
if (C(h[V], V, h))
|
|
8936
8936
|
return !0;
|
|
8937
8937
|
return !1;
|
|
8938
8938
|
}
|
|
8939
|
-
function St(h,
|
|
8939
|
+
function St(h, C) {
|
|
8940
8940
|
for (var V = -1, Y = Array(h); ++V < h; )
|
|
8941
|
-
Y[V] =
|
|
8941
|
+
Y[V] = C(V);
|
|
8942
8942
|
return Y;
|
|
8943
8943
|
}
|
|
8944
8944
|
function Ot(h) {
|
|
8945
|
-
return function(
|
|
8946
|
-
return h(
|
|
8945
|
+
return function(C) {
|
|
8946
|
+
return h(C);
|
|
8947
8947
|
};
|
|
8948
8948
|
}
|
|
8949
|
-
function L(h,
|
|
8950
|
-
return h.has(
|
|
8949
|
+
function L(h, C) {
|
|
8950
|
+
return h.has(C);
|
|
8951
8951
|
}
|
|
8952
|
-
function W(h,
|
|
8953
|
-
return h == null ? void 0 : h[
|
|
8952
|
+
function W(h, C) {
|
|
8953
|
+
return h == null ? void 0 : h[C];
|
|
8954
8954
|
}
|
|
8955
8955
|
function ne(h) {
|
|
8956
|
-
var
|
|
8956
|
+
var C = -1, V = Array(h.size);
|
|
8957
8957
|
return h.forEach(function(Y, Ce) {
|
|
8958
|
-
V[++
|
|
8958
|
+
V[++C] = [Ce, Y];
|
|
8959
8959
|
}), V;
|
|
8960
8960
|
}
|
|
8961
|
-
function q(h,
|
|
8961
|
+
function q(h, C) {
|
|
8962
8962
|
return function(V) {
|
|
8963
|
-
return h(
|
|
8963
|
+
return h(C(V));
|
|
8964
8964
|
};
|
|
8965
8965
|
}
|
|
8966
8966
|
function Ee(h) {
|
|
8967
|
-
var
|
|
8967
|
+
var C = -1, V = Array(h.size);
|
|
8968
8968
|
return h.forEach(function(Y) {
|
|
8969
|
-
V[++
|
|
8969
|
+
V[++C] = Y;
|
|
8970
8970
|
}), V;
|
|
8971
8971
|
}
|
|
8972
|
-
var we = Array.prototype,
|
|
8972
|
+
var we = Array.prototype, E = Function.prototype, M = Object.prototype, H = fe["__core-js_shared__"], Z = E.toString, U = M.hasOwnProperty, me = function() {
|
|
8973
8973
|
var h = /[^.]+$/.exec(H && H.keys && H.keys.IE_PROTO || "");
|
|
8974
8974
|
return h ? "Symbol(src)_1." + h : "";
|
|
8975
8975
|
}(), it = M.toString, tt = RegExp(
|
|
8976
8976
|
"^" + Z.call(U).replace(j, "\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g, "$1.*?") + "$"
|
|
8977
8977
|
), bt = xe ? fe.Buffer : void 0, ot = fe.Symbol, Xe = fe.Uint8Array, pt = M.propertyIsEnumerable, nt = we.splice, Et = ot ? ot.toStringTag : void 0, mi = Object.getOwnPropertySymbols, yl = bt ? bt.isBuffer : void 0, Il = q(Object.keys, Object), qn = Nt(fe, "DataView"), Yt = Nt(fe, "Map"), Qn = Nt(fe, "Promise"), $n = Nt(fe, "Set"), Kn = Nt(fe, "WeakMap"), jt = Nt(Object, "create"), vl = Pt(qn), Cl = Pt(Yt), xl = Pt(Qn), Al = Pt($n), wl = Pt(Kn), bi = ot ? ot.prototype : void 0, er = bi ? bi.valueOf : void 0;
|
|
8978
8978
|
function kt(h) {
|
|
8979
|
-
var
|
|
8980
|
-
for (this.clear(); ++
|
|
8981
|
-
var Y = h[
|
|
8979
|
+
var C = -1, V = h == null ? 0 : h.length;
|
|
8980
|
+
for (this.clear(); ++C < V; ) {
|
|
8981
|
+
var Y = h[C];
|
|
8982
8982
|
this.set(Y[0], Y[1]);
|
|
8983
8983
|
}
|
|
8984
8984
|
}
|
|
@@ -8986,30 +8986,30 @@ Gn.exports;
|
|
|
8986
8986
|
this.__data__ = jt ? jt(null) : {}, this.size = 0;
|
|
8987
8987
|
}
|
|
8988
8988
|
function El(h) {
|
|
8989
|
-
var
|
|
8990
|
-
return this.size -=
|
|
8989
|
+
var C = this.has(h) && delete this.__data__[h];
|
|
8990
|
+
return this.size -= C ? 1 : 0, C;
|
|
8991
8991
|
}
|
|
8992
8992
|
function kl(h) {
|
|
8993
|
-
var
|
|
8993
|
+
var C = this.__data__;
|
|
8994
8994
|
if (jt) {
|
|
8995
|
-
var V =
|
|
8995
|
+
var V = C[h];
|
|
8996
8996
|
return V === i ? void 0 : V;
|
|
8997
8997
|
}
|
|
8998
|
-
return U.call(
|
|
8998
|
+
return U.call(C, h) ? C[h] : void 0;
|
|
8999
8999
|
}
|
|
9000
9000
|
function Bl(h) {
|
|
9001
|
-
var
|
|
9002
|
-
return jt ?
|
|
9001
|
+
var C = this.__data__;
|
|
9002
|
+
return jt ? C[h] !== void 0 : U.call(C, h);
|
|
9003
9003
|
}
|
|
9004
|
-
function Pl(h,
|
|
9004
|
+
function Pl(h, C) {
|
|
9005
9005
|
var V = this.__data__;
|
|
9006
|
-
return this.size += this.has(h) ? 0 : 1, V[h] = jt &&
|
|
9006
|
+
return this.size += this.has(h) ? 0 : 1, V[h] = jt && C === void 0 ? i : C, this;
|
|
9007
9007
|
}
|
|
9008
9008
|
kt.prototype.clear = Sl, kt.prototype.delete = El, kt.prototype.get = kl, kt.prototype.has = Bl, kt.prototype.set = Pl;
|
|
9009
9009
|
function ft(h) {
|
|
9010
|
-
var
|
|
9011
|
-
for (this.clear(); ++
|
|
9012
|
-
var Y = h[
|
|
9010
|
+
var C = -1, V = h == null ? 0 : h.length;
|
|
9011
|
+
for (this.clear(); ++C < V; ) {
|
|
9012
|
+
var Y = h[C];
|
|
9013
9013
|
this.set(Y[0], Y[1]);
|
|
9014
9014
|
}
|
|
9015
9015
|
}
|
|
@@ -9017,28 +9017,28 @@ Gn.exports;
|
|
|
9017
9017
|
this.__data__ = [], this.size = 0;
|
|
9018
9018
|
}
|
|
9019
9019
|
function Tl(h) {
|
|
9020
|
-
var
|
|
9020
|
+
var C = this.__data__, V = dn(C, h);
|
|
9021
9021
|
if (V < 0)
|
|
9022
9022
|
return !1;
|
|
9023
|
-
var Y =
|
|
9024
|
-
return V == Y ?
|
|
9023
|
+
var Y = C.length - 1;
|
|
9024
|
+
return V == Y ? C.pop() : nt.call(C, V, 1), --this.size, !0;
|
|
9025
9025
|
}
|
|
9026
9026
|
function Fl(h) {
|
|
9027
|
-
var
|
|
9028
|
-
return V < 0 ? void 0 :
|
|
9027
|
+
var C = this.__data__, V = dn(C, h);
|
|
9028
|
+
return V < 0 ? void 0 : C[V][1];
|
|
9029
9029
|
}
|
|
9030
9030
|
function Rl(h) {
|
|
9031
9031
|
return dn(this.__data__, h) > -1;
|
|
9032
9032
|
}
|
|
9033
|
-
function Vl(h,
|
|
9033
|
+
function Vl(h, C) {
|
|
9034
9034
|
var V = this.__data__, Y = dn(V, h);
|
|
9035
|
-
return Y < 0 ? (++this.size, V.push([h,
|
|
9035
|
+
return Y < 0 ? (++this.size, V.push([h, C])) : V[Y][1] = C, this;
|
|
9036
9036
|
}
|
|
9037
9037
|
ft.prototype.clear = Gl, ft.prototype.delete = Tl, ft.prototype.get = Fl, ft.prototype.has = Rl, ft.prototype.set = Vl;
|
|
9038
9038
|
function Bt(h) {
|
|
9039
|
-
var
|
|
9040
|
-
for (this.clear(); ++
|
|
9041
|
-
var Y = h[
|
|
9039
|
+
var C = -1, V = h == null ? 0 : h.length;
|
|
9040
|
+
for (this.clear(); ++C < V; ) {
|
|
9041
|
+
var Y = h[C];
|
|
9042
9042
|
this.set(Y[0], Y[1]);
|
|
9043
9043
|
}
|
|
9044
9044
|
}
|
|
@@ -9050,8 +9050,8 @@ Gn.exports;
|
|
|
9050
9050
|
};
|
|
9051
9051
|
}
|
|
9052
9052
|
function Nl(h) {
|
|
9053
|
-
var
|
|
9054
|
-
return this.size -=
|
|
9053
|
+
var C = pn(this, h).delete(h);
|
|
9054
|
+
return this.size -= C ? 1 : 0, C;
|
|
9055
9055
|
}
|
|
9056
9056
|
function Dl(h) {
|
|
9057
9057
|
return pn(this, h).get(h);
|
|
@@ -9059,15 +9059,15 @@ Gn.exports;
|
|
|
9059
9059
|
function Ll(h) {
|
|
9060
9060
|
return pn(this, h).has(h);
|
|
9061
9061
|
}
|
|
9062
|
-
function Ml(h,
|
|
9062
|
+
function Ml(h, C) {
|
|
9063
9063
|
var V = pn(this, h), Y = V.size;
|
|
9064
|
-
return V.set(h,
|
|
9064
|
+
return V.set(h, C), this.size += V.size == Y ? 0 : 1, this;
|
|
9065
9065
|
}
|
|
9066
9066
|
Bt.prototype.clear = Ol, Bt.prototype.delete = Nl, Bt.prototype.get = Dl, Bt.prototype.has = Ll, Bt.prototype.set = Ml;
|
|
9067
9067
|
function cn(h) {
|
|
9068
|
-
var
|
|
9069
|
-
for (this.__data__ = new Bt(); ++
|
|
9070
|
-
this.add(h[
|
|
9068
|
+
var C = -1, V = h == null ? 0 : h.length;
|
|
9069
|
+
for (this.__data__ = new Bt(); ++C < V; )
|
|
9070
|
+
this.add(h[C]);
|
|
9071
9071
|
}
|
|
9072
9072
|
function zl(h) {
|
|
9073
9073
|
return this.__data__.set(h, i), this;
|
|
@@ -9077,15 +9077,15 @@ Gn.exports;
|
|
|
9077
9077
|
}
|
|
9078
9078
|
cn.prototype.add = cn.prototype.push = zl, cn.prototype.has = Hl;
|
|
9079
9079
|
function yt(h) {
|
|
9080
|
-
var
|
|
9081
|
-
this.size =
|
|
9080
|
+
var C = this.__data__ = new ft(h);
|
|
9081
|
+
this.size = C.size;
|
|
9082
9082
|
}
|
|
9083
9083
|
function Xl() {
|
|
9084
9084
|
this.__data__ = new ft(), this.size = 0;
|
|
9085
9085
|
}
|
|
9086
9086
|
function Wl(h) {
|
|
9087
|
-
var
|
|
9088
|
-
return this.size =
|
|
9087
|
+
var C = this.__data__, V = C.delete(h);
|
|
9088
|
+
return this.size = C.size, V;
|
|
9089
9089
|
}
|
|
9090
9090
|
function Zl(h) {
|
|
9091
9091
|
return this.__data__.get(h);
|
|
@@ -9093,18 +9093,18 @@ Gn.exports;
|
|
|
9093
9093
|
function Jl(h) {
|
|
9094
9094
|
return this.__data__.has(h);
|
|
9095
9095
|
}
|
|
9096
|
-
function Yl(h,
|
|
9096
|
+
function Yl(h, C) {
|
|
9097
9097
|
var V = this.__data__;
|
|
9098
9098
|
if (V instanceof ft) {
|
|
9099
9099
|
var Y = V.__data__;
|
|
9100
9100
|
if (!Yt || Y.length < n - 1)
|
|
9101
|
-
return Y.push([h,
|
|
9101
|
+
return Y.push([h, C]), this.size = ++V.size, this;
|
|
9102
9102
|
V = this.__data__ = new Bt(Y);
|
|
9103
9103
|
}
|
|
9104
|
-
return V.set(h,
|
|
9104
|
+
return V.set(h, C), this.size = V.size, this;
|
|
9105
9105
|
}
|
|
9106
9106
|
yt.prototype.clear = Xl, yt.prototype.delete = Wl, yt.prototype.get = Zl, yt.prototype.has = Jl, yt.prototype.set = Yl;
|
|
9107
|
-
function jl(h,
|
|
9107
|
+
function jl(h, C) {
|
|
9108
9108
|
var V = fn(h), Y = !V && uu(h), Ce = !V && !Y && tr(h), le = !V && !Y && !Ce && Ei(h), Ge = V || Y || Ce || le, De = Ge ? St(h.length, String) : [], ze = De.length;
|
|
9109
9109
|
for (var ke in h)
|
|
9110
9110
|
U.call(h, ke) && !(Ge && // Safari 9 has enumerable `arguments.length` in strict mode.
|
|
@@ -9114,14 +9114,14 @@ Gn.exports;
|
|
|
9114
9114
|
ru(ke, ze))) && De.push(ke);
|
|
9115
9115
|
return De;
|
|
9116
9116
|
}
|
|
9117
|
-
function dn(h,
|
|
9117
|
+
function dn(h, C) {
|
|
9118
9118
|
for (var V = h.length; V--; )
|
|
9119
|
-
if (xi(h[V][0],
|
|
9119
|
+
if (xi(h[V][0], C))
|
|
9120
9120
|
return V;
|
|
9121
9121
|
return -1;
|
|
9122
9122
|
}
|
|
9123
|
-
function _l(h,
|
|
9124
|
-
var Y =
|
|
9123
|
+
function _l(h, C, V) {
|
|
9124
|
+
var Y = C(h);
|
|
9125
9125
|
return fn(h) ? Y : Se(Y, V(h));
|
|
9126
9126
|
}
|
|
9127
9127
|
function _t(h) {
|
|
@@ -9130,34 +9130,34 @@ Gn.exports;
|
|
|
9130
9130
|
function yi(h) {
|
|
9131
9131
|
return Ut(h) && _t(h) == l;
|
|
9132
9132
|
}
|
|
9133
|
-
function Ii(h,
|
|
9134
|
-
return h ===
|
|
9133
|
+
function Ii(h, C, V, Y, Ce) {
|
|
9134
|
+
return h === C ? !0 : h == null || C == null || !Ut(h) && !Ut(C) ? h !== h && C !== C : Ul(h, C, V, Y, Ii, Ce);
|
|
9135
9135
|
}
|
|
9136
|
-
function Ul(h,
|
|
9137
|
-
var Ge = fn(h), De = fn(
|
|
9136
|
+
function Ul(h, C, V, Y, Ce, le) {
|
|
9137
|
+
var Ge = fn(h), De = fn(C), ze = Ge ? u : It(h), ke = De ? u : It(C);
|
|
9138
9138
|
ze = ze == l ? P : ze, ke = ke == l ? P : ke;
|
|
9139
9139
|
var Ue = ze == P, rt = ke == P, We = ze == ke;
|
|
9140
9140
|
if (We && tr(h)) {
|
|
9141
|
-
if (!tr(
|
|
9141
|
+
if (!tr(C))
|
|
9142
9142
|
return !1;
|
|
9143
9143
|
Ge = !0, Ue = !1;
|
|
9144
9144
|
}
|
|
9145
9145
|
if (We && !Ue)
|
|
9146
|
-
return le || (le = new yt()), Ge || Ei(h) ? vi(h,
|
|
9146
|
+
return le || (le = new yt()), Ge || Ei(h) ? vi(h, C, V, Y, Ce, le) : Kl(h, C, ze, V, Y, Ce, le);
|
|
9147
9147
|
if (!(V & r)) {
|
|
9148
|
-
var $e = Ue && U.call(h, "__wrapped__"), Ke = rt && U.call(
|
|
9148
|
+
var $e = Ue && U.call(h, "__wrapped__"), Ke = rt && U.call(C, "__wrapped__");
|
|
9149
9149
|
if ($e || Ke) {
|
|
9150
|
-
var vt = $e ? h.value() : h, gt = Ke ?
|
|
9150
|
+
var vt = $e ? h.value() : h, gt = Ke ? C.value() : C;
|
|
9151
9151
|
return le || (le = new yt()), Ce(vt, gt, V, Y, le);
|
|
9152
9152
|
}
|
|
9153
9153
|
}
|
|
9154
|
-
return We ? (le || (le = new yt()), eu(h,
|
|
9154
|
+
return We ? (le || (le = new yt()), eu(h, C, V, Y, Ce, le)) : !1;
|
|
9155
9155
|
}
|
|
9156
9156
|
function ql(h) {
|
|
9157
9157
|
if (!Si(h) || ou(h))
|
|
9158
9158
|
return !1;
|
|
9159
|
-
var
|
|
9160
|
-
return
|
|
9159
|
+
var C = Ai(h) ? tt : m;
|
|
9160
|
+
return C.test(Pt(h));
|
|
9161
9161
|
}
|
|
9162
9162
|
function Ql(h) {
|
|
9163
9163
|
return Ut(h) && wi(h.length) && !!K[_t(h)];
|
|
@@ -9165,23 +9165,23 @@ Gn.exports;
|
|
|
9165
9165
|
function $l(h) {
|
|
9166
9166
|
if (!au(h))
|
|
9167
9167
|
return Il(h);
|
|
9168
|
-
var
|
|
9168
|
+
var C = [];
|
|
9169
9169
|
for (var V in Object(h))
|
|
9170
|
-
U.call(h, V) && V != "constructor" &&
|
|
9171
|
-
return
|
|
9170
|
+
U.call(h, V) && V != "constructor" && C.push(V);
|
|
9171
|
+
return C;
|
|
9172
9172
|
}
|
|
9173
|
-
function vi(h,
|
|
9174
|
-
var Ge = V & r, De = h.length, ze =
|
|
9173
|
+
function vi(h, C, V, Y, Ce, le) {
|
|
9174
|
+
var Ge = V & r, De = h.length, ze = C.length;
|
|
9175
9175
|
if (De != ze && !(Ge && ze > De))
|
|
9176
9176
|
return !1;
|
|
9177
9177
|
var ke = le.get(h);
|
|
9178
|
-
if (ke && le.get(
|
|
9179
|
-
return ke ==
|
|
9178
|
+
if (ke && le.get(C))
|
|
9179
|
+
return ke == C;
|
|
9180
9180
|
var Ue = -1, rt = !0, We = V & o ? new cn() : void 0;
|
|
9181
|
-
for (le.set(h,
|
|
9182
|
-
var $e = h[Ue], Ke =
|
|
9181
|
+
for (le.set(h, C), le.set(C, h); ++Ue < De; ) {
|
|
9182
|
+
var $e = h[Ue], Ke = C[Ue];
|
|
9183
9183
|
if (Y)
|
|
9184
|
-
var vt = Ge ? Y(Ke, $e, Ue,
|
|
9184
|
+
var vt = Ge ? Y(Ke, $e, Ue, C, h, le) : Y($e, Ke, Ue, h, C, le);
|
|
9185
9185
|
if (vt !== void 0) {
|
|
9186
9186
|
if (vt)
|
|
9187
9187
|
continue;
|
|
@@ -9189,7 +9189,7 @@ Gn.exports;
|
|
|
9189
9189
|
break;
|
|
9190
9190
|
}
|
|
9191
9191
|
if (We) {
|
|
9192
|
-
if (!_e(
|
|
9192
|
+
if (!_e(C, function(gt, Gt) {
|
|
9193
9193
|
if (!L(We, Gt) && ($e === gt || Ce($e, gt, V, Y, le)))
|
|
9194
9194
|
return We.push(Gt);
|
|
9195
9195
|
})) {
|
|
@@ -9201,62 +9201,62 @@ Gn.exports;
|
|
|
9201
9201
|
break;
|
|
9202
9202
|
}
|
|
9203
9203
|
}
|
|
9204
|
-
return le.delete(h), le.delete(
|
|
9204
|
+
return le.delete(h), le.delete(C), rt;
|
|
9205
9205
|
}
|
|
9206
|
-
function Kl(h,
|
|
9206
|
+
function Kl(h, C, V, Y, Ce, le, Ge) {
|
|
9207
9207
|
switch (V) {
|
|
9208
9208
|
case T:
|
|
9209
|
-
if (h.byteLength !=
|
|
9209
|
+
if (h.byteLength != C.byteLength || h.byteOffset != C.byteOffset)
|
|
9210
9210
|
return !1;
|
|
9211
|
-
h = h.buffer,
|
|
9211
|
+
h = h.buffer, C = C.buffer;
|
|
9212
9212
|
case R:
|
|
9213
|
-
return !(h.byteLength !=
|
|
9213
|
+
return !(h.byteLength != C.byteLength || !le(new Xe(h), new Xe(C)));
|
|
9214
9214
|
case c:
|
|
9215
9215
|
case d:
|
|
9216
|
-
case
|
|
9217
|
-
return xi(+h, +
|
|
9216
|
+
case x:
|
|
9217
|
+
return xi(+h, +C);
|
|
9218
9218
|
case f:
|
|
9219
|
-
return h.name ==
|
|
9220
|
-
case
|
|
9219
|
+
return h.name == C.name && h.message == C.message;
|
|
9220
|
+
case k:
|
|
9221
9221
|
case D:
|
|
9222
|
-
return h ==
|
|
9223
|
-
case
|
|
9222
|
+
return h == C + "";
|
|
9223
|
+
case y:
|
|
9224
9224
|
var De = ne;
|
|
9225
|
-
case
|
|
9225
|
+
case v:
|
|
9226
9226
|
var ze = Y & r;
|
|
9227
|
-
if (De || (De = Ee), h.size !=
|
|
9227
|
+
if (De || (De = Ee), h.size != C.size && !ze)
|
|
9228
9228
|
return !1;
|
|
9229
9229
|
var ke = Ge.get(h);
|
|
9230
9230
|
if (ke)
|
|
9231
|
-
return ke ==
|
|
9232
|
-
Y |= o, Ge.set(h,
|
|
9233
|
-
var Ue = vi(De(h), De(
|
|
9231
|
+
return ke == C;
|
|
9232
|
+
Y |= o, Ge.set(h, C);
|
|
9233
|
+
var Ue = vi(De(h), De(C), Y, Ce, le, Ge);
|
|
9234
9234
|
return Ge.delete(h), Ue;
|
|
9235
9235
|
case B:
|
|
9236
9236
|
if (er)
|
|
9237
|
-
return er.call(h) == er.call(
|
|
9237
|
+
return er.call(h) == er.call(C);
|
|
9238
9238
|
}
|
|
9239
9239
|
return !1;
|
|
9240
9240
|
}
|
|
9241
|
-
function eu(h,
|
|
9242
|
-
var Ge = V & r, De = Ci(h), ze = De.length, ke = Ci(
|
|
9241
|
+
function eu(h, C, V, Y, Ce, le) {
|
|
9242
|
+
var Ge = V & r, De = Ci(h), ze = De.length, ke = Ci(C), Ue = ke.length;
|
|
9243
9243
|
if (ze != Ue && !Ge)
|
|
9244
9244
|
return !1;
|
|
9245
9245
|
for (var rt = ze; rt--; ) {
|
|
9246
9246
|
var We = De[rt];
|
|
9247
|
-
if (!(Ge ? We in
|
|
9247
|
+
if (!(Ge ? We in C : U.call(C, We)))
|
|
9248
9248
|
return !1;
|
|
9249
9249
|
}
|
|
9250
9250
|
var $e = le.get(h);
|
|
9251
|
-
if ($e && le.get(
|
|
9252
|
-
return $e ==
|
|
9251
|
+
if ($e && le.get(C))
|
|
9252
|
+
return $e == C;
|
|
9253
9253
|
var Ke = !0;
|
|
9254
|
-
le.set(h,
|
|
9254
|
+
le.set(h, C), le.set(C, h);
|
|
9255
9255
|
for (var vt = Ge; ++rt < ze; ) {
|
|
9256
9256
|
We = De[rt];
|
|
9257
|
-
var gt = h[We], Gt =
|
|
9257
|
+
var gt = h[We], Gt = C[We];
|
|
9258
9258
|
if (Y)
|
|
9259
|
-
var ki = Ge ? Y(Gt, gt, We,
|
|
9259
|
+
var ki = Ge ? Y(Gt, gt, We, C, h, le) : Y(gt, Gt, We, h, C, le);
|
|
9260
9260
|
if (!(ki === void 0 ? gt === Gt || Ce(gt, Gt, V, Y, le) : ki)) {
|
|
9261
9261
|
Ke = !1;
|
|
9262
9262
|
break;
|
|
@@ -9264,66 +9264,66 @@ Gn.exports;
|
|
|
9264
9264
|
vt || (vt = We == "constructor");
|
|
9265
9265
|
}
|
|
9266
9266
|
if (Ke && !vt) {
|
|
9267
|
-
var gn = h.constructor, hn =
|
|
9268
|
-
gn != hn && "constructor" in h && "constructor" in
|
|
9267
|
+
var gn = h.constructor, hn = C.constructor;
|
|
9268
|
+
gn != hn && "constructor" in h && "constructor" in C && !(typeof gn == "function" && gn instanceof gn && typeof hn == "function" && hn instanceof hn) && (Ke = !1);
|
|
9269
9269
|
}
|
|
9270
|
-
return le.delete(h), le.delete(
|
|
9270
|
+
return le.delete(h), le.delete(C), Ke;
|
|
9271
9271
|
}
|
|
9272
9272
|
function Ci(h) {
|
|
9273
9273
|
return _l(h, du, nu);
|
|
9274
9274
|
}
|
|
9275
|
-
function pn(h,
|
|
9275
|
+
function pn(h, C) {
|
|
9276
9276
|
var V = h.__data__;
|
|
9277
|
-
return iu(
|
|
9277
|
+
return iu(C) ? V[typeof C == "string" ? "string" : "hash"] : V.map;
|
|
9278
9278
|
}
|
|
9279
|
-
function Nt(h,
|
|
9280
|
-
var V = W(h,
|
|
9279
|
+
function Nt(h, C) {
|
|
9280
|
+
var V = W(h, C);
|
|
9281
9281
|
return ql(V) ? V : void 0;
|
|
9282
9282
|
}
|
|
9283
9283
|
function tu(h) {
|
|
9284
|
-
var
|
|
9284
|
+
var C = U.call(h, Et), V = h[Et];
|
|
9285
9285
|
try {
|
|
9286
9286
|
h[Et] = void 0;
|
|
9287
9287
|
var Y = !0;
|
|
9288
9288
|
} catch {
|
|
9289
9289
|
}
|
|
9290
9290
|
var Ce = it.call(h);
|
|
9291
|
-
return Y && (
|
|
9291
|
+
return Y && (C ? h[Et] = V : delete h[Et]), Ce;
|
|
9292
9292
|
}
|
|
9293
9293
|
var nu = mi ? function(h) {
|
|
9294
|
-
return h == null ? [] : (h = Object(h), Me(mi(h), function(
|
|
9295
|
-
return pt.call(h,
|
|
9294
|
+
return h == null ? [] : (h = Object(h), Me(mi(h), function(C) {
|
|
9295
|
+
return pt.call(h, C);
|
|
9296
9296
|
}));
|
|
9297
9297
|
} : pu, It = _t;
|
|
9298
|
-
(qn && It(new qn(new ArrayBuffer(1))) != T || Yt && It(new Yt()) !=
|
|
9299
|
-
var
|
|
9298
|
+
(qn && It(new qn(new ArrayBuffer(1))) != T || Yt && It(new Yt()) != y || Qn && It(Qn.resolve()) != A || $n && It(new $n()) != v || Kn && It(new Kn()) != w) && (It = function(h) {
|
|
9299
|
+
var C = _t(h), V = C == P ? h.constructor : void 0, Y = V ? Pt(V) : "";
|
|
9300
9300
|
if (Y)
|
|
9301
9301
|
switch (Y) {
|
|
9302
9302
|
case vl:
|
|
9303
9303
|
return T;
|
|
9304
9304
|
case Cl:
|
|
9305
|
-
return
|
|
9305
|
+
return y;
|
|
9306
9306
|
case xl:
|
|
9307
9307
|
return A;
|
|
9308
9308
|
case Al:
|
|
9309
|
-
return
|
|
9309
|
+
return v;
|
|
9310
9310
|
case wl:
|
|
9311
9311
|
return w;
|
|
9312
9312
|
}
|
|
9313
|
-
return
|
|
9313
|
+
return C;
|
|
9314
9314
|
});
|
|
9315
|
-
function ru(h,
|
|
9316
|
-
return
|
|
9315
|
+
function ru(h, C) {
|
|
9316
|
+
return C = C ?? a, !!C && (typeof h == "number" || de.test(h)) && h > -1 && h % 1 == 0 && h < C;
|
|
9317
9317
|
}
|
|
9318
9318
|
function iu(h) {
|
|
9319
|
-
var
|
|
9320
|
-
return
|
|
9319
|
+
var C = typeof h;
|
|
9320
|
+
return C == "string" || C == "number" || C == "symbol" || C == "boolean" ? h !== "__proto__" : h === null;
|
|
9321
9321
|
}
|
|
9322
9322
|
function ou(h) {
|
|
9323
9323
|
return !!me && me in h;
|
|
9324
9324
|
}
|
|
9325
9325
|
function au(h) {
|
|
9326
|
-
var
|
|
9326
|
+
var C = h && h.constructor, V = typeof C == "function" && C.prototype || M;
|
|
9327
9327
|
return h === V;
|
|
9328
9328
|
}
|
|
9329
9329
|
function lu(h) {
|
|
@@ -9342,8 +9342,8 @@ Gn.exports;
|
|
|
9342
9342
|
}
|
|
9343
9343
|
return "";
|
|
9344
9344
|
}
|
|
9345
|
-
function xi(h,
|
|
9346
|
-
return h ===
|
|
9345
|
+
function xi(h, C) {
|
|
9346
|
+
return h === C || h !== h && C !== C;
|
|
9347
9347
|
}
|
|
9348
9348
|
var uu = yi(/* @__PURE__ */ function() {
|
|
9349
9349
|
return arguments;
|
|
@@ -9354,21 +9354,21 @@ Gn.exports;
|
|
|
9354
9354
|
return h != null && wi(h.length) && !Ai(h);
|
|
9355
9355
|
}
|
|
9356
9356
|
var tr = yl || fu;
|
|
9357
|
-
function cu(h,
|
|
9358
|
-
return Ii(h,
|
|
9357
|
+
function cu(h, C) {
|
|
9358
|
+
return Ii(h, C);
|
|
9359
9359
|
}
|
|
9360
9360
|
function Ai(h) {
|
|
9361
9361
|
if (!Si(h))
|
|
9362
9362
|
return !1;
|
|
9363
|
-
var
|
|
9364
|
-
return
|
|
9363
|
+
var C = _t(h);
|
|
9364
|
+
return C == p || C == b || C == s || C == S;
|
|
9365
9365
|
}
|
|
9366
9366
|
function wi(h) {
|
|
9367
9367
|
return typeof h == "number" && h > -1 && h % 1 == 0 && h <= a;
|
|
9368
9368
|
}
|
|
9369
9369
|
function Si(h) {
|
|
9370
|
-
var
|
|
9371
|
-
return h != null && (
|
|
9370
|
+
var C = typeof h;
|
|
9371
|
+
return h != null && (C == "object" || C == "function");
|
|
9372
9372
|
}
|
|
9373
9373
|
function Ut(h) {
|
|
9374
9374
|
return h != null && typeof h == "object";
|
|
@@ -9612,18 +9612,18 @@ const Sn = [
|
|
|
9612
9612
|
}, [
|
|
9613
9613
|
p
|
|
9614
9614
|
]);
|
|
9615
|
-
const
|
|
9616
|
-
|
|
9617
|
-
|
|
9615
|
+
const b = r.key, [
|
|
9616
|
+
y,
|
|
9617
|
+
x
|
|
9618
9618
|
] = ce(0), [
|
|
9619
9619
|
I,
|
|
9620
9620
|
P
|
|
9621
9621
|
] = ce({}), [
|
|
9622
9622
|
A,
|
|
9623
|
-
|
|
9623
|
+
S
|
|
9624
9624
|
] = ce(!1), [
|
|
9625
|
-
|
|
9626
|
-
|
|
9625
|
+
k,
|
|
9626
|
+
v
|
|
9627
9627
|
] = ce({}), [
|
|
9628
9628
|
D,
|
|
9629
9629
|
B
|
|
@@ -9653,12 +9653,12 @@ const Sn = [
|
|
|
9653
9653
|
g
|
|
9654
9654
|
] = ce(), ae = {
|
|
9655
9655
|
externalUserId: f,
|
|
9656
|
-
id:
|
|
9656
|
+
id: b,
|
|
9657
9657
|
configuredProps: T,
|
|
9658
9658
|
dynamicPropsId: J == null ? void 0 : J.id
|
|
9659
9659
|
}, j = {
|
|
9660
9660
|
externalUserId: f,
|
|
9661
|
-
id:
|
|
9661
|
+
id: b,
|
|
9662
9662
|
dynamicPropsId: J == null ? void 0 : J.id,
|
|
9663
9663
|
// Only include props that have reloadProps: true (these are the ones that should trigger refetch)
|
|
9664
9664
|
reloadTriggerProps: Object.fromEntries(
|
|
@@ -9685,7 +9685,7 @@ const Sn = [
|
|
|
9685
9685
|
observations: q,
|
|
9686
9686
|
errors: Ee
|
|
9687
9687
|
} = W, we = ne;
|
|
9688
|
-
return q && q.filter((
|
|
9688
|
+
return q && q.filter((E) => E.k === "error").length > 0 ? St(q) : St(Ee), g(void 0), ne && we && ((L = t.onUpdateDynamicProps) == null || L.call(t, ne), ie(we)), [];
|
|
9689
9689
|
} finally {
|
|
9690
9690
|
g(void 0);
|
|
9691
9691
|
}
|
|
@@ -9759,7 +9759,7 @@ const Sn = [
|
|
|
9759
9759
|
break;
|
|
9760
9760
|
}
|
|
9761
9761
|
}
|
|
9762
|
-
|
|
9762
|
+
x(W);
|
|
9763
9763
|
}, Oe = (L) => {
|
|
9764
9764
|
X(L), fe(L), se(L);
|
|
9765
9765
|
}, se = (L) => {
|
|
@@ -9768,7 +9768,7 @@ const Sn = [
|
|
|
9768
9768
|
const q = ee[ne], Ee = L[q.name], we = Be(q, Ee);
|
|
9769
9769
|
we.length && (W[q.name] = we);
|
|
9770
9770
|
}
|
|
9771
|
-
|
|
9771
|
+
v(W);
|
|
9772
9772
|
}, xe = (L, W) => L.type !== "integer" || typeof W == "number" || If(W) ? W : void 0;
|
|
9773
9773
|
be(() => {
|
|
9774
9774
|
fe(T);
|
|
@@ -9787,7 +9787,7 @@ const Sn = [
|
|
|
9787
9787
|
}, [
|
|
9788
9788
|
T,
|
|
9789
9789
|
G,
|
|
9790
|
-
|
|
9790
|
+
y
|
|
9791
9791
|
]), be(() => {
|
|
9792
9792
|
St(s);
|
|
9793
9793
|
}, [
|
|
@@ -9799,7 +9799,7 @@ const Sn = [
|
|
|
9799
9799
|
if (q.hidden || Sn.includes(q.type))
|
|
9800
9800
|
continue;
|
|
9801
9801
|
if (q.optional && !R(q)) {
|
|
9802
|
-
const we = T[q.name],
|
|
9802
|
+
const we = T[q.name], E = oe.current || J, H = (((W = E == null ? void 0 : E.configurableProps) == null ? void 0 : W.some((Z) => Z.name === q.name)) ?? !1) && !((ne = t.component.configurableProps) != null && ne.some((Z) => Z.name === q.name));
|
|
9803
9803
|
if (we !== void 0) {
|
|
9804
9804
|
L[q.name] = we;
|
|
9805
9805
|
continue;
|
|
@@ -9837,9 +9837,9 @@ const Sn = [
|
|
|
9837
9837
|
};
|
|
9838
9838
|
W === void 0 ? delete q[ne.name] : q[ne.name] = W, X(q), ne.reloadProps && g(L);
|
|
9839
9839
|
const Ee = Be(ne, W), we = {
|
|
9840
|
-
...
|
|
9840
|
+
...k
|
|
9841
9841
|
};
|
|
9842
|
-
Ee.length ? we[ne.name] = Ee : delete we[ne.name],
|
|
9842
|
+
Ee.length ? we[ne.name] = Ee : delete we[ne.name], v(we);
|
|
9843
9843
|
}, Me = (L, W) => {
|
|
9844
9844
|
const ne = {
|
|
9845
9845
|
...F
|
|
@@ -9909,7 +9909,7 @@ const Sn = [
|
|
|
9909
9909
|
if (Array.isArray(H) && H.length > 0)
|
|
9910
9910
|
for (let U = 0; U < H.length; U++)
|
|
9911
9911
|
H[U].k === "error" && Ee(H[U], Z);
|
|
9912
|
-
},
|
|
9912
|
+
}, E = (H, Z) => {
|
|
9913
9913
|
Z.push({
|
|
9914
9914
|
name: H.error,
|
|
9915
9915
|
message: JSON.stringify(H.details)
|
|
@@ -9924,7 +9924,7 @@ const Sn = [
|
|
|
9924
9924
|
var U;
|
|
9925
9925
|
try {
|
|
9926
9926
|
const me = (U = JSON.parse(H.message)) == null ? void 0 : U.data;
|
|
9927
|
-
me && "os" in me ? we(me.os, Z) : me && "observations" in me ? we(me.observations, Z) : me && "error" in me && "details" in me &&
|
|
9927
|
+
me && "os" in me ? we(me.os, Z) : me && "observations" in me ? we(me.observations, Z) : me && "error" in me && "details" in me && E(me, Z);
|
|
9928
9928
|
} catch {
|
|
9929
9929
|
}
|
|
9930
9930
|
};
|
|
@@ -9937,7 +9937,7 @@ const Sn = [
|
|
|
9937
9937
|
B(W);
|
|
9938
9938
|
}, Ot = {
|
|
9939
9939
|
id: i,
|
|
9940
|
-
isValid: !Object.keys(
|
|
9940
|
+
isValid: !Object.keys(k).length,
|
|
9941
9941
|
// XXX want to expose more from errors
|
|
9942
9942
|
props: t,
|
|
9943
9943
|
externalUserId: f,
|
|
@@ -9948,15 +9948,15 @@ const Sn = [
|
|
|
9948
9948
|
configuredProps: T,
|
|
9949
9949
|
dynamicProps: J,
|
|
9950
9950
|
dynamicPropsQueryIsFetching: m,
|
|
9951
|
-
errors:
|
|
9951
|
+
errors: k,
|
|
9952
9952
|
fields: I,
|
|
9953
9953
|
optionalPropIsEnabled: R,
|
|
9954
9954
|
optionalPropSetEnabled: Me,
|
|
9955
9955
|
propsNeedConfiguring: de,
|
|
9956
|
-
queryDisabledIdx:
|
|
9956
|
+
queryDisabledIdx: y,
|
|
9957
9957
|
registerField: _e,
|
|
9958
9958
|
setConfiguredProp: Pe,
|
|
9959
|
-
setSubmitting:
|
|
9959
|
+
setSubmitting: S,
|
|
9960
9960
|
submitting: A,
|
|
9961
9961
|
sdkErrors: D,
|
|
9962
9962
|
enableDebugging: c,
|
|
@@ -10078,17 +10078,17 @@ function ct(e, t) {
|
|
|
10078
10078
|
}
|
|
10079
10079
|
var Ef = ["defaultInputValue", "defaultMenuIsOpen", "defaultValue", "inputValue", "menuIsOpen", "onChange", "onInputChange", "onMenuClose", "onMenuOpen", "value"];
|
|
10080
10080
|
function Da(e) {
|
|
10081
|
-
var t = e.defaultInputValue, n = t === void 0 ? "" : t, i = e.defaultMenuIsOpen, r = i === void 0 ? !1 : i, o = e.defaultValue, a = o === void 0 ? null : o, l = e.inputValue, u = e.menuIsOpen, s = e.onChange, c = e.onInputChange, d = e.onMenuClose, f = e.onMenuOpen, p = e.value,
|
|
10081
|
+
var t = e.defaultInputValue, n = t === void 0 ? "" : t, i = e.defaultMenuIsOpen, r = i === void 0 ? !1 : i, o = e.defaultValue, a = o === void 0 ? null : o, l = e.inputValue, u = e.menuIsOpen, s = e.onChange, c = e.onInputChange, d = e.onMenuClose, f = e.onMenuOpen, p = e.value, b = ct(e, Ef), y = ce(l !== void 0 ? l : n), x = ht(y, 2), I = x[0], P = x[1], A = ce(u !== void 0 ? u : r), S = ht(A, 2), k = S[0], v = S[1], D = ce(p !== void 0 ? p : a), B = ht(D, 2), F = B[0], w = B[1], R = Re(function(oe, G) {
|
|
10082
10082
|
typeof s == "function" && s(oe, G), w(oe);
|
|
10083
10083
|
}, [s]), T = Re(function(oe, G) {
|
|
10084
10084
|
var g;
|
|
10085
10085
|
typeof c == "function" && (g = c(oe, G)), P(g !== void 0 ? g : oe);
|
|
10086
10086
|
}, [c]), z = Re(function() {
|
|
10087
|
-
typeof f == "function" && f(),
|
|
10087
|
+
typeof f == "function" && f(), v(!0);
|
|
10088
10088
|
}, [f]), _ = Re(function() {
|
|
10089
|
-
typeof d == "function" && d(),
|
|
10090
|
-
}, [d]), X = l !== void 0 ? l : I, J = u !== void 0 ? u :
|
|
10091
|
-
return Q(Q({},
|
|
10089
|
+
typeof d == "function" && d(), v(!1);
|
|
10090
|
+
}, [d]), X = l !== void 0 ? l : I, J = u !== void 0 ? u : k, ie = p !== void 0 ? p : F;
|
|
10091
|
+
return Q(Q({}, b), {}, {
|
|
10092
10092
|
inputValue: X,
|
|
10093
10093
|
menuIsOpen: J,
|
|
10094
10094
|
onChange: R,
|
|
@@ -10338,10 +10338,10 @@ function Ao(e, t, n, i) {
|
|
|
10338
10338
|
let u = (r.left + l.x) / a.x, s = (r.top + l.y) / a.y, c = r.width / a.x, d = r.height / a.y;
|
|
10339
10339
|
if (o) {
|
|
10340
10340
|
const f = mt(o), p = i;
|
|
10341
|
-
let
|
|
10342
|
-
for (;
|
|
10343
|
-
const
|
|
10344
|
-
u *=
|
|
10341
|
+
let b = f, y = Nr(b);
|
|
10342
|
+
for (; y && i && p !== b; ) {
|
|
10343
|
+
const x = xo(y), I = y.getBoundingClientRect(), P = oi(y), A = I.left + (y.clientLeft + parseFloat(P.paddingLeft)) * x.x, S = I.top + (y.clientTop + parseFloat(P.paddingTop)) * x.y;
|
|
10344
|
+
u *= x.x, s *= x.y, c *= x.x, d *= x.y, u += A, s += S, b = mt(y), y = Nr(b);
|
|
10345
10345
|
}
|
|
10346
10346
|
}
|
|
10347
10347
|
return Mf({
|
|
@@ -10371,30 +10371,30 @@ function qf(e, t) {
|
|
|
10371
10371
|
} = s;
|
|
10372
10372
|
if (l || t(), !f || !p)
|
|
10373
10373
|
return;
|
|
10374
|
-
const
|
|
10375
|
-
rootMargin: -
|
|
10374
|
+
const b = In(d), y = In(r.clientWidth - (c + f)), x = In(r.clientHeight - (d + p)), I = In(c), A = {
|
|
10375
|
+
rootMargin: -b + "px " + -y + "px " + -x + "px " + -I + "px",
|
|
10376
10376
|
threshold: Lf(0, Df(1, u)) || 1
|
|
10377
10377
|
};
|
|
10378
|
-
let
|
|
10379
|
-
function
|
|
10380
|
-
const D =
|
|
10378
|
+
let S = !0;
|
|
10379
|
+
function k(v) {
|
|
10380
|
+
const D = v[0].intersectionRatio;
|
|
10381
10381
|
if (D !== u) {
|
|
10382
|
-
if (!
|
|
10382
|
+
if (!S)
|
|
10383
10383
|
return a();
|
|
10384
10384
|
D ? a(!1, D) : i = setTimeout(() => {
|
|
10385
10385
|
a(!1, 1e-7);
|
|
10386
10386
|
}, 1e3);
|
|
10387
10387
|
}
|
|
10388
|
-
D === 1 && !Za(s, e.getBoundingClientRect()) && a(),
|
|
10388
|
+
D === 1 && !Za(s, e.getBoundingClientRect()) && a(), S = !1;
|
|
10389
10389
|
}
|
|
10390
10390
|
try {
|
|
10391
|
-
n = new IntersectionObserver(
|
|
10391
|
+
n = new IntersectionObserver(k, {
|
|
10392
10392
|
...A,
|
|
10393
10393
|
// Handle <iframe>s
|
|
10394
10394
|
root: r.ownerDocument
|
|
10395
10395
|
});
|
|
10396
10396
|
} catch {
|
|
10397
|
-
n = new IntersectionObserver(
|
|
10397
|
+
n = new IntersectionObserver(k, A);
|
|
10398
10398
|
}
|
|
10399
10399
|
n.observe(e);
|
|
10400
10400
|
}
|
|
@@ -10423,17 +10423,17 @@ function Qf(e, t, n, i) {
|
|
|
10423
10423
|
(A = p) == null || A.observe(t);
|
|
10424
10424
|
})), n();
|
|
10425
10425
|
}), s && !u && p.observe(s), p.observe(t));
|
|
10426
|
-
let
|
|
10427
|
-
u &&
|
|
10428
|
-
function
|
|
10426
|
+
let b, y = u ? Ao(e) : null;
|
|
10427
|
+
u && x();
|
|
10428
|
+
function x() {
|
|
10429
10429
|
const I = Ao(e);
|
|
10430
|
-
|
|
10430
|
+
y && !Za(y, I) && n(), y = I, b = requestAnimationFrame(x);
|
|
10431
10431
|
}
|
|
10432
10432
|
return n(), () => {
|
|
10433
10433
|
var I;
|
|
10434
10434
|
c.forEach((P) => {
|
|
10435
10435
|
r && P.removeEventListener("scroll", n), o && P.removeEventListener("resize", n);
|
|
10436
|
-
}), d == null || d(), (I = p) == null || I.disconnect(), p = null, u && cancelAnimationFrame(
|
|
10436
|
+
}), d == null || d(), (I = p) == null || I.disconnect(), p = null, u && cancelAnimationFrame(b);
|
|
10437
10437
|
};
|
|
10438
10438
|
}
|
|
10439
10439
|
var Dr = gu, $f = ["className", "clearValue", "cx", "getStyles", "getClassNames", "getValue", "hasValue", "isMulti", "isRtl", "options", "selectOption", "selectProps", "setValue", "theme"], On = function() {
|
|
@@ -10566,31 +10566,31 @@ function fg(e) {
|
|
|
10566
10566
|
maxHeight: t
|
|
10567
10567
|
};
|
|
10568
10568
|
if (!n || !n.offsetParent) return s;
|
|
10569
|
-
var c = u.getBoundingClientRect(), d = c.height, f = n.getBoundingClientRect(), p = f.bottom,
|
|
10569
|
+
var c = u.getBoundingClientRect(), d = c.height, f = n.getBoundingClientRect(), p = f.bottom, b = f.height, y = f.top, x = n.offsetParent.getBoundingClientRect(), I = x.top, P = a ? window.innerHeight : tg(u), A = Ya(u), S = parseInt(getComputedStyle(n).marginBottom, 10), k = parseInt(getComputedStyle(n).marginTop, 10), v = I - k, D = P - y, B = v + A, F = d - A - y, w = p - P + A + S, R = A + y - k, T = 160;
|
|
10570
10570
|
switch (r) {
|
|
10571
10571
|
case "auto":
|
|
10572
10572
|
case "bottom":
|
|
10573
|
-
if (D >=
|
|
10573
|
+
if (D >= b)
|
|
10574
10574
|
return {
|
|
10575
10575
|
placement: "bottom",
|
|
10576
10576
|
maxHeight: t
|
|
10577
10577
|
};
|
|
10578
|
-
if (F >=
|
|
10578
|
+
if (F >= b && !a)
|
|
10579
10579
|
return o && vn(u, w, T), {
|
|
10580
10580
|
placement: "bottom",
|
|
10581
10581
|
maxHeight: t
|
|
10582
10582
|
};
|
|
10583
10583
|
if (!a && F >= i || a && D >= i) {
|
|
10584
10584
|
o && vn(u, w, T);
|
|
10585
|
-
var z = a ? D -
|
|
10585
|
+
var z = a ? D - S : F - S;
|
|
10586
10586
|
return {
|
|
10587
10587
|
placement: "bottom",
|
|
10588
10588
|
maxHeight: z
|
|
10589
10589
|
};
|
|
10590
10590
|
}
|
|
10591
10591
|
if (r === "auto" || a) {
|
|
10592
|
-
var _ = t, X = a ?
|
|
10593
|
-
return X >= i && (_ = Math.min(X -
|
|
10592
|
+
var _ = t, X = a ? v : B;
|
|
10593
|
+
return X >= i && (_ = Math.min(X - S - l, t)), {
|
|
10594
10594
|
placement: "top",
|
|
10595
10595
|
maxHeight: _
|
|
10596
10596
|
};
|
|
@@ -10602,19 +10602,19 @@ function fg(e) {
|
|
|
10602
10602
|
};
|
|
10603
10603
|
break;
|
|
10604
10604
|
case "top":
|
|
10605
|
-
if (
|
|
10605
|
+
if (v >= b)
|
|
10606
10606
|
return {
|
|
10607
10607
|
placement: "top",
|
|
10608
10608
|
maxHeight: t
|
|
10609
10609
|
};
|
|
10610
|
-
if (B >=
|
|
10610
|
+
if (B >= b && !a)
|
|
10611
10611
|
return o && vn(u, R, T), {
|
|
10612
10612
|
placement: "top",
|
|
10613
10613
|
maxHeight: t
|
|
10614
10614
|
};
|
|
10615
|
-
if (!a && B >= i || a &&
|
|
10615
|
+
if (!a && B >= i || a && v >= i) {
|
|
10616
10616
|
var J = t;
|
|
10617
|
-
return (!a && B >= i || a &&
|
|
10617
|
+
return (!a && B >= i || a && v >= i) && (J = a ? v - k : B - k), o && vn(u, R, T), {
|
|
10618
10618
|
placement: "top",
|
|
10619
10619
|
maxHeight: J
|
|
10620
10620
|
};
|
|
@@ -10649,26 +10649,26 @@ var _a = function(t) {
|
|
|
10649
10649
|
marginTop: l.menuGutter
|
|
10650
10650
|
});
|
|
10651
10651
|
}, Ua = /* @__PURE__ */ ln(null), mg = function(t) {
|
|
10652
|
-
var n = t.children, i = t.minMenuHeight, r = t.maxMenuHeight, o = t.menuPlacement, a = t.menuPosition, l = t.menuShouldScrollIntoView, u = t.theme, s = Xt(Ua) || {}, c = s.setPortalPlacement, d = Te(null), f = ce(r), p = ht(f, 2),
|
|
10652
|
+
var n = t.children, i = t.minMenuHeight, r = t.maxMenuHeight, o = t.menuPlacement, a = t.menuPosition, l = t.menuShouldScrollIntoView, u = t.theme, s = Xt(Ua) || {}, c = s.setPortalPlacement, d = Te(null), f = ce(r), p = ht(f, 2), b = p[0], y = p[1], x = ce(null), I = ht(x, 2), P = I[0], A = I[1], S = u.spacing.controlHeight;
|
|
10653
10653
|
return Dr(function() {
|
|
10654
|
-
var
|
|
10655
|
-
if (
|
|
10656
|
-
var
|
|
10654
|
+
var k = d.current;
|
|
10655
|
+
if (k) {
|
|
10656
|
+
var v = a === "fixed", D = l && !v, B = fg({
|
|
10657
10657
|
maxHeight: r,
|
|
10658
|
-
menuEl:
|
|
10658
|
+
menuEl: k,
|
|
10659
10659
|
minHeight: i,
|
|
10660
10660
|
placement: o,
|
|
10661
10661
|
shouldScroll: D,
|
|
10662
|
-
isFixedPosition:
|
|
10663
|
-
controlHeight:
|
|
10662
|
+
isFixedPosition: v,
|
|
10663
|
+
controlHeight: S
|
|
10664
10664
|
});
|
|
10665
|
-
|
|
10665
|
+
y(B.maxHeight), A(B.placement), c == null || c(B.placement);
|
|
10666
10666
|
}
|
|
10667
|
-
}, [r, o, a, l, i, c,
|
|
10667
|
+
}, [r, o, a, l, i, c, S]), n({
|
|
10668
10668
|
ref: d,
|
|
10669
10669
|
placerProps: Q(Q({}, t), {}, {
|
|
10670
10670
|
placement: P || _a(o),
|
|
10671
|
-
maxHeight:
|
|
10671
|
+
maxHeight: b
|
|
10672
10672
|
})
|
|
10673
10673
|
});
|
|
10674
10674
|
}, bg = function(t) {
|
|
@@ -10734,11 +10734,11 @@ var _a = function(t) {
|
|
|
10734
10734
|
zIndex: 1
|
|
10735
10735
|
};
|
|
10736
10736
|
}, Eg = function(t) {
|
|
10737
|
-
var n = t.appendTo, i = t.children, r = t.controlElement, o = t.innerProps, a = t.menuPlacement, l = t.menuPosition, u = Te(null), s = Te(null), c = ce(_a(a)), d = ht(c, 2), f = d[0], p = d[1],
|
|
10737
|
+
var n = t.appendTo, i = t.children, r = t.controlElement, o = t.innerProps, a = t.menuPlacement, l = t.menuPosition, u = Te(null), s = Te(null), c = ce(_a(a)), d = ht(c, 2), f = d[0], p = d[1], b = pe(function() {
|
|
10738
10738
|
return {
|
|
10739
10739
|
setPortalPlacement: p
|
|
10740
10740
|
};
|
|
10741
|
-
}, []),
|
|
10741
|
+
}, []), y = ce(null), x = ht(y, 2), I = x[0], P = x[1], A = Re(function() {
|
|
10742
10742
|
if (r) {
|
|
10743
10743
|
var D = ig(r), B = l === "fixed" ? 0 : window.pageYOffset, F = D[f] + B;
|
|
10744
10744
|
(F !== (I == null ? void 0 : I.offset) || D.left !== (I == null ? void 0 : I.rect.left) || D.width !== (I == null ? void 0 : I.rect.width)) && P({
|
|
@@ -10750,20 +10750,20 @@ var _a = function(t) {
|
|
|
10750
10750
|
Dr(function() {
|
|
10751
10751
|
A();
|
|
10752
10752
|
}, [A]);
|
|
10753
|
-
var
|
|
10753
|
+
var S = Re(function() {
|
|
10754
10754
|
typeof s.current == "function" && (s.current(), s.current = null), r && u.current && (s.current = Qf(r, u.current, A, {
|
|
10755
10755
|
elementResize: "ResizeObserver" in window
|
|
10756
10756
|
}));
|
|
10757
10757
|
}, [r, A]);
|
|
10758
10758
|
Dr(function() {
|
|
10759
|
-
|
|
10760
|
-
}, [
|
|
10761
|
-
var
|
|
10762
|
-
u.current = D,
|
|
10763
|
-
}, [
|
|
10759
|
+
S();
|
|
10760
|
+
}, [S]);
|
|
10761
|
+
var k = Re(function(D) {
|
|
10762
|
+
u.current = D, S();
|
|
10763
|
+
}, [S]);
|
|
10764
10764
|
if (!n && l !== "fixed" || !I) return null;
|
|
10765
|
-
var
|
|
10766
|
-
ref:
|
|
10765
|
+
var v = $("div", te({
|
|
10766
|
+
ref: k
|
|
10767
10767
|
}, Fe(Q(Q({}, t), {}, {
|
|
10768
10768
|
offset: I.offset,
|
|
10769
10769
|
position: l,
|
|
@@ -10772,8 +10772,8 @@ var _a = function(t) {
|
|
|
10772
10772
|
"menu-portal": !0
|
|
10773
10773
|
}), o), i);
|
|
10774
10774
|
return $(Ua.Provider, {
|
|
10775
|
-
value:
|
|
10776
|
-
}, n ? /* @__PURE__ */ Iu(
|
|
10775
|
+
value: b
|
|
10776
|
+
}, n ? /* @__PURE__ */ Iu(v, n) : v);
|
|
10777
10777
|
}, kg = function(t) {
|
|
10778
10778
|
var n = t.isDisabled, i = t.isRtl;
|
|
10779
10779
|
return {
|
|
@@ -11324,8 +11324,8 @@ var Ph = process.env.NODE_ENV === "production" ? {
|
|
|
11324
11324
|
}
|
|
11325
11325
|
},
|
|
11326
11326
|
onFocus: function(t) {
|
|
11327
|
-
var n = t.context, i = t.focused, r = t.options, o = t.label, a = o === void 0 ? "" : o, l = t.selectValue, u = t.isDisabled, s = t.isSelected, c = t.isAppleDevice, d = function(
|
|
11328
|
-
return
|
|
11327
|
+
var n = t.context, i = t.focused, r = t.options, o = t.label, a = o === void 0 ? "" : o, l = t.selectValue, u = t.isDisabled, s = t.isSelected, c = t.isAppleDevice, d = function(y, x) {
|
|
11328
|
+
return y && y.length ? "".concat(y.indexOf(x) + 1, " of ").concat(y.length) : "";
|
|
11329
11329
|
};
|
|
11330
11330
|
if (n === "value" && l)
|
|
11331
11331
|
return "value ".concat(a, " focused, ").concat(d(l, i), ".");
|
|
@@ -11340,7 +11340,7 @@ var Ph = process.env.NODE_ENV === "production" ? {
|
|
|
11340
11340
|
return "".concat(i).concat(n ? " for search term " + n : "", ".");
|
|
11341
11341
|
}
|
|
11342
11342
|
}, Fh = function(t) {
|
|
11343
|
-
var n = t.ariaSelection, i = t.focusedOption, r = t.focusedValue, o = t.focusableOptions, a = t.isFocused, l = t.selectValue, u = t.selectProps, s = t.id, c = t.isAppleDevice, d = u.ariaLiveMessages, f = u.getOptionLabel, p = u.inputValue,
|
|
11343
|
+
var n = t.ariaSelection, i = t.focusedOption, r = t.focusedValue, o = t.focusableOptions, a = t.isFocused, l = t.selectValue, u = t.selectProps, s = t.id, c = t.isAppleDevice, d = u.ariaLiveMessages, f = u.getOptionLabel, p = u.inputValue, b = u.isMulti, y = u.isOptionDisabled, x = u.isSearchable, I = u.menuIsOpen, P = u.options, A = u.screenReaderStatus, S = u.tabSelectsValue, k = u.isLoading, v = u["aria-label"], D = u["aria-live"], B = pe(function() {
|
|
11344
11344
|
return Q(Q({}, Th), d || {});
|
|
11345
11345
|
}, [d]), F = pe(function() {
|
|
11346
11346
|
var X = "";
|
|
@@ -11350,20 +11350,20 @@ var Ph = process.env.NODE_ENV === "production" ? {
|
|
|
11350
11350
|
}, j = oe || J || ae(g), m = j ? f(j) : "", de = ie || G || void 0, K = de ? de.map(f) : [], ee = Q({
|
|
11351
11351
|
// multiSelected items are usually items that have already been selected
|
|
11352
11352
|
// or set by the user as a default value so we assume they are not disabled
|
|
11353
|
-
isDisabled: j &&
|
|
11353
|
+
isDisabled: j && y(j, l),
|
|
11354
11354
|
label: m,
|
|
11355
11355
|
labels: K
|
|
11356
11356
|
}, n);
|
|
11357
11357
|
X = B.onChange(ee);
|
|
11358
11358
|
}
|
|
11359
11359
|
return X;
|
|
11360
|
-
}, [n, B,
|
|
11360
|
+
}, [n, B, y, l, f]), w = pe(function() {
|
|
11361
11361
|
var X = "", J = i || r, ie = !!(i && l && l.includes(i));
|
|
11362
11362
|
if (J && B.onFocus) {
|
|
11363
11363
|
var oe = {
|
|
11364
11364
|
focused: J,
|
|
11365
11365
|
label: f(J),
|
|
11366
|
-
isDisabled:
|
|
11366
|
+
isDisabled: y(J, l),
|
|
11367
11367
|
isSelected: ie,
|
|
11368
11368
|
options: o,
|
|
11369
11369
|
context: J === i ? "menu" : "value",
|
|
@@ -11373,9 +11373,9 @@ var Ph = process.env.NODE_ENV === "production" ? {
|
|
|
11373
11373
|
X = B.onFocus(oe);
|
|
11374
11374
|
}
|
|
11375
11375
|
return X;
|
|
11376
|
-
}, [i, r, f,
|
|
11376
|
+
}, [i, r, f, y, B, o, l, c]), R = pe(function() {
|
|
11377
11377
|
var X = "";
|
|
11378
|
-
if (I && P.length && !
|
|
11378
|
+
if (I && P.length && !k && B.onFilter) {
|
|
11379
11379
|
var J = A({
|
|
11380
11380
|
count: o.length
|
|
11381
11381
|
});
|
|
@@ -11385,22 +11385,22 @@ var Ph = process.env.NODE_ENV === "production" ? {
|
|
|
11385
11385
|
});
|
|
11386
11386
|
}
|
|
11387
11387
|
return X;
|
|
11388
|
-
}, [o, p, I, B, P, A,
|
|
11388
|
+
}, [o, p, I, B, P, A, k]), T = (n == null ? void 0 : n.action) === "initial-input-focus", z = pe(function() {
|
|
11389
11389
|
var X = "";
|
|
11390
11390
|
if (B.guidance) {
|
|
11391
11391
|
var J = r ? "value" : I ? "menu" : "input";
|
|
11392
11392
|
X = B.guidance({
|
|
11393
|
-
"aria-label":
|
|
11393
|
+
"aria-label": v,
|
|
11394
11394
|
context: J,
|
|
11395
|
-
isDisabled: i &&
|
|
11396
|
-
isMulti:
|
|
11397
|
-
isSearchable:
|
|
11398
|
-
tabSelectsValue:
|
|
11395
|
+
isDisabled: i && y(i, l),
|
|
11396
|
+
isMulti: b,
|
|
11397
|
+
isSearchable: x,
|
|
11398
|
+
tabSelectsValue: S,
|
|
11399
11399
|
isInitialFocus: T
|
|
11400
11400
|
});
|
|
11401
11401
|
}
|
|
11402
11402
|
return X;
|
|
11403
|
-
}, [
|
|
11403
|
+
}, [v, i, r, b, y, x, I, B, l, S, T]), _ = $(Cr, null, $("span", {
|
|
11404
11404
|
id: "aria-selection"
|
|
11405
11405
|
}, F), $("span", {
|
|
11406
11406
|
id: "aria-focused"
|
|
@@ -11728,37 +11728,37 @@ var zh = function(t) {
|
|
|
11728
11728
|
t.cancelable && t.preventDefault(), t.stopPropagation();
|
|
11729
11729
|
};
|
|
11730
11730
|
function Hh(e) {
|
|
11731
|
-
var t = e.isEnabled, n = e.onBottomArrive, i = e.onBottomLeave, r = e.onTopArrive, o = e.onTopLeave, a = Te(!1), l = Te(!1), u = Te(0), s = Te(null), c = Re(function(
|
|
11731
|
+
var t = e.isEnabled, n = e.onBottomArrive, i = e.onBottomLeave, r = e.onTopArrive, o = e.onTopLeave, a = Te(!1), l = Te(!1), u = Te(0), s = Te(null), c = Re(function(x, I) {
|
|
11732
11732
|
if (s.current !== null) {
|
|
11733
|
-
var P = s.current, A = P.scrollTop,
|
|
11734
|
-
B > I && a.current && (i && i(
|
|
11735
|
-
}
|
|
11736
|
-
}, [n, i, r, o]), d = Re(function(
|
|
11737
|
-
c(
|
|
11738
|
-
}, [c]), f = Re(function(
|
|
11739
|
-
u.current =
|
|
11740
|
-
}, []), p = Re(function(
|
|
11741
|
-
var I = u.current -
|
|
11742
|
-
c(
|
|
11743
|
-
}, [c]),
|
|
11744
|
-
if (
|
|
11733
|
+
var P = s.current, A = P.scrollTop, S = P.scrollHeight, k = P.clientHeight, v = s.current, D = I > 0, B = S - k - A, F = !1;
|
|
11734
|
+
B > I && a.current && (i && i(x), a.current = !1), D && l.current && (o && o(x), l.current = !1), D && I > B ? (n && !a.current && n(x), v.scrollTop = S, F = !0, a.current = !0) : !D && -I > A && (r && !l.current && r(x), v.scrollTop = 0, F = !0, l.current = !0), F && zh(x);
|
|
11735
|
+
}
|
|
11736
|
+
}, [n, i, r, o]), d = Re(function(x) {
|
|
11737
|
+
c(x, x.deltaY);
|
|
11738
|
+
}, [c]), f = Re(function(x) {
|
|
11739
|
+
u.current = x.changedTouches[0].clientY;
|
|
11740
|
+
}, []), p = Re(function(x) {
|
|
11741
|
+
var I = u.current - x.changedTouches[0].clientY;
|
|
11742
|
+
c(x, I);
|
|
11743
|
+
}, [c]), b = Re(function(x) {
|
|
11744
|
+
if (x) {
|
|
11745
11745
|
var I = lg ? {
|
|
11746
11746
|
passive: !1
|
|
11747
11747
|
} : !1;
|
|
11748
|
-
|
|
11748
|
+
x.addEventListener("wheel", d, I), x.addEventListener("touchstart", f, I), x.addEventListener("touchmove", p, I);
|
|
11749
11749
|
}
|
|
11750
|
-
}, [p, f, d]),
|
|
11751
|
-
|
|
11750
|
+
}, [p, f, d]), y = Re(function(x) {
|
|
11751
|
+
x && (x.removeEventListener("wheel", d, !1), x.removeEventListener("touchstart", f, !1), x.removeEventListener("touchmove", p, !1));
|
|
11752
11752
|
}, [p, f, d]);
|
|
11753
11753
|
return be(function() {
|
|
11754
11754
|
if (t) {
|
|
11755
|
-
var
|
|
11756
|
-
return
|
|
11757
|
-
|
|
11755
|
+
var x = s.current;
|
|
11756
|
+
return b(x), function() {
|
|
11757
|
+
y(x);
|
|
11758
11758
|
};
|
|
11759
11759
|
}
|
|
11760
|
-
}, [t,
|
|
11761
|
-
s.current =
|
|
11760
|
+
}, [t, b, y]), function(x) {
|
|
11761
|
+
s.current = x;
|
|
11762
11762
|
};
|
|
11763
11763
|
}
|
|
11764
11764
|
var Go = ["boxSizing", "height", "overflow", "paddingRight", "position"], To = {
|
|
@@ -11789,14 +11789,14 @@ function Xh(e) {
|
|
|
11789
11789
|
var t = e.isEnabled, n = e.accountForScrollbars, i = n === void 0 ? !0 : n, r = Te({}), o = Te(null), a = Re(function(u) {
|
|
11790
11790
|
if (No) {
|
|
11791
11791
|
var s = document.body, c = s && s.style;
|
|
11792
|
-
if (i && Go.forEach(function(
|
|
11793
|
-
var
|
|
11794
|
-
r.current[
|
|
11792
|
+
if (i && Go.forEach(function(b) {
|
|
11793
|
+
var y = c && c[b];
|
|
11794
|
+
r.current[b] = y;
|
|
11795
11795
|
}), i && $t < 1) {
|
|
11796
11796
|
var d = parseInt(r.current.paddingRight, 10) || 0, f = document.body ? document.body.clientWidth : 0, p = window.innerWidth - f + d || 0;
|
|
11797
|
-
Object.keys(To).forEach(function(
|
|
11798
|
-
var
|
|
11799
|
-
c && (c[
|
|
11797
|
+
Object.keys(To).forEach(function(b) {
|
|
11798
|
+
var y = To[b];
|
|
11799
|
+
c && (c[b] = y);
|
|
11800
11800
|
}), c && (c.paddingRight = "".concat(p, "px"));
|
|
11801
11801
|
}
|
|
11802
11802
|
s && Oo() && (s.addEventListener("touchmove", Fo, Lt), u && (u.addEventListener("touchstart", Vo, Lt), u.addEventListener("touchmove", Ro, Lt))), $t += 1;
|
|
@@ -12150,10 +12150,10 @@ var fl = function(t) {
|
|
|
12150
12150
|
var c = r.props, d = c.onChange, f = c.name;
|
|
12151
12151
|
s.name = f, r.ariaOnChange(u, s), d(u, s);
|
|
12152
12152
|
}, r.setValue = function(u, s, c) {
|
|
12153
|
-
var d = r.props, f = d.closeMenuOnSelect, p = d.isMulti,
|
|
12153
|
+
var d = r.props, f = d.closeMenuOnSelect, p = d.isMulti, b = d.inputValue;
|
|
12154
12154
|
r.onInputChange("", {
|
|
12155
12155
|
action: "set-value",
|
|
12156
|
-
prevInputValue:
|
|
12156
|
+
prevInputValue: b
|
|
12157
12157
|
}), f && (r.setState({
|
|
12158
12158
|
inputIsHiddenAfterUpdate: !p
|
|
12159
12159
|
}), r.onMenuClose()), r.setState({
|
|
@@ -12163,13 +12163,13 @@ var fl = function(t) {
|
|
|
12163
12163
|
option: c
|
|
12164
12164
|
});
|
|
12165
12165
|
}, r.selectOption = function(u) {
|
|
12166
|
-
var s = r.props, c = s.blurInputOnSelect, d = s.isMulti, f = s.name, p = r.state.selectValue,
|
|
12167
|
-
if (
|
|
12168
|
-
var
|
|
12166
|
+
var s = r.props, c = s.blurInputOnSelect, d = s.isMulti, f = s.name, p = r.state.selectValue, b = d && r.isOptionSelected(u, p), y = r.isOptionDisabled(u, p);
|
|
12167
|
+
if (b) {
|
|
12168
|
+
var x = r.getOptionValue(u);
|
|
12169
12169
|
r.setValue(p.filter(function(I) {
|
|
12170
|
-
return r.getOptionValue(I) !==
|
|
12170
|
+
return r.getOptionValue(I) !== x;
|
|
12171
12171
|
}), "deselect-option", u);
|
|
12172
|
-
} else if (!
|
|
12172
|
+
} else if (!y)
|
|
12173
12173
|
d ? r.setValue([].concat(Ht(p), [u]), "select-option", u) : r.setValue(u, "select-option");
|
|
12174
12174
|
else {
|
|
12175
12175
|
r.ariaOnChange(u, {
|
|
@@ -12181,8 +12181,8 @@ var fl = function(t) {
|
|
|
12181
12181
|
}
|
|
12182
12182
|
c && r.blurInput();
|
|
12183
12183
|
}, r.removeValue = function(u) {
|
|
12184
|
-
var s = r.props.isMulti, c = r.state.selectValue, d = r.getOptionValue(u), f = c.filter(function(
|
|
12185
|
-
return r.getOptionValue(
|
|
12184
|
+
var s = r.props.isMulti, c = r.state.selectValue, d = r.getOptionValue(u), f = c.filter(function(b) {
|
|
12185
|
+
return r.getOptionValue(b) !== d;
|
|
12186
12186
|
}), p = en(s, f, f[0] || null);
|
|
12187
12187
|
r.onChange(p, {
|
|
12188
12188
|
action: "remove-value",
|
|
@@ -12322,8 +12322,8 @@ var fl = function(t) {
|
|
|
12322
12322
|
}, r.onValueInputFocus = function(u) {
|
|
12323
12323
|
u.preventDefault(), u.stopPropagation(), r.focus();
|
|
12324
12324
|
}, r.onKeyDown = function(u) {
|
|
12325
|
-
var s = r.props, c = s.isMulti, d = s.backspaceRemovesValue, f = s.escapeClearsValue, p = s.inputValue,
|
|
12326
|
-
if (!
|
|
12325
|
+
var s = r.props, c = s.isMulti, d = s.backspaceRemovesValue, f = s.escapeClearsValue, p = s.inputValue, b = s.isClearable, y = s.isDisabled, x = s.menuIsOpen, I = s.onKeyDown, P = s.tabSelectsValue, A = s.openMenuOnFocus, S = r.state, k = S.focusedOption, v = S.focusedValue, D = S.selectValue;
|
|
12326
|
+
if (!y && !(typeof I == "function" && (I(u), u.defaultPrevented))) {
|
|
12327
12327
|
switch (r.blockOptionHover = !0, u.key) {
|
|
12328
12328
|
case "ArrowLeft":
|
|
12329
12329
|
if (!c || p) return;
|
|
@@ -12336,67 +12336,67 @@ var fl = function(t) {
|
|
|
12336
12336
|
case "Delete":
|
|
12337
12337
|
case "Backspace":
|
|
12338
12338
|
if (p) return;
|
|
12339
|
-
if (
|
|
12340
|
-
r.removeValue(
|
|
12339
|
+
if (v)
|
|
12340
|
+
r.removeValue(v);
|
|
12341
12341
|
else {
|
|
12342
12342
|
if (!d) return;
|
|
12343
|
-
c ? r.popValue() :
|
|
12343
|
+
c ? r.popValue() : b && r.clearValue();
|
|
12344
12344
|
}
|
|
12345
12345
|
break;
|
|
12346
12346
|
case "Tab":
|
|
12347
|
-
if (r.isComposing || u.shiftKey || !
|
|
12347
|
+
if (r.isComposing || u.shiftKey || !x || !P || !k || // don't capture the event if the menu opens on focus and the focused
|
|
12348
12348
|
// option is already selected; it breaks the flow of navigation
|
|
12349
|
-
A && r.isOptionSelected(
|
|
12349
|
+
A && r.isOptionSelected(k, D))
|
|
12350
12350
|
return;
|
|
12351
|
-
r.selectOption(
|
|
12351
|
+
r.selectOption(k);
|
|
12352
12352
|
break;
|
|
12353
12353
|
case "Enter":
|
|
12354
12354
|
if (u.keyCode === 229)
|
|
12355
12355
|
break;
|
|
12356
|
-
if (
|
|
12357
|
-
if (!
|
|
12358
|
-
r.selectOption(
|
|
12356
|
+
if (x) {
|
|
12357
|
+
if (!k || r.isComposing) return;
|
|
12358
|
+
r.selectOption(k);
|
|
12359
12359
|
break;
|
|
12360
12360
|
}
|
|
12361
12361
|
return;
|
|
12362
12362
|
case "Escape":
|
|
12363
|
-
|
|
12363
|
+
x ? (r.setState({
|
|
12364
12364
|
inputIsHiddenAfterUpdate: !1
|
|
12365
12365
|
}), r.onInputChange("", {
|
|
12366
12366
|
action: "menu-close",
|
|
12367
12367
|
prevInputValue: p
|
|
12368
|
-
}), r.onMenuClose()) :
|
|
12368
|
+
}), r.onMenuClose()) : b && f && r.clearValue();
|
|
12369
12369
|
break;
|
|
12370
12370
|
case " ":
|
|
12371
12371
|
if (p)
|
|
12372
12372
|
return;
|
|
12373
|
-
if (!
|
|
12373
|
+
if (!x) {
|
|
12374
12374
|
r.openMenu("first");
|
|
12375
12375
|
break;
|
|
12376
12376
|
}
|
|
12377
|
-
if (!
|
|
12378
|
-
r.selectOption(
|
|
12377
|
+
if (!k) return;
|
|
12378
|
+
r.selectOption(k);
|
|
12379
12379
|
break;
|
|
12380
12380
|
case "ArrowUp":
|
|
12381
|
-
|
|
12381
|
+
x ? r.focusOption("up") : r.openMenu("last");
|
|
12382
12382
|
break;
|
|
12383
12383
|
case "ArrowDown":
|
|
12384
|
-
|
|
12384
|
+
x ? r.focusOption("down") : r.openMenu("first");
|
|
12385
12385
|
break;
|
|
12386
12386
|
case "PageUp":
|
|
12387
|
-
if (!
|
|
12387
|
+
if (!x) return;
|
|
12388
12388
|
r.focusOption("pageup");
|
|
12389
12389
|
break;
|
|
12390
12390
|
case "PageDown":
|
|
12391
|
-
if (!
|
|
12391
|
+
if (!x) return;
|
|
12392
12392
|
r.focusOption("pagedown");
|
|
12393
12393
|
break;
|
|
12394
12394
|
case "Home":
|
|
12395
|
-
if (!
|
|
12395
|
+
if (!x) return;
|
|
12396
12396
|
r.focusOption("first");
|
|
12397
12397
|
break;
|
|
12398
12398
|
case "End":
|
|
12399
|
-
if (!
|
|
12399
|
+
if (!x) return;
|
|
12400
12400
|
r.focusOption("last");
|
|
12401
12401
|
break;
|
|
12402
12402
|
default:
|
|
@@ -12539,17 +12539,17 @@ var fl = function(t) {
|
|
|
12539
12539
|
}, {
|
|
12540
12540
|
key: "getCommonProps",
|
|
12541
12541
|
value: function() {
|
|
12542
|
-
var r = this.clearValue, o = this.cx, a = this.getStyles, l = this.getClassNames, u = this.getValue, s = this.selectOption, c = this.setValue, d = this.props, f = d.isMulti, p = d.isRtl,
|
|
12542
|
+
var r = this.clearValue, o = this.cx, a = this.getStyles, l = this.getClassNames, u = this.getValue, s = this.selectOption, c = this.setValue, d = this.props, f = d.isMulti, p = d.isRtl, b = d.options, y = this.hasValue();
|
|
12543
12543
|
return {
|
|
12544
12544
|
clearValue: r,
|
|
12545
12545
|
cx: o,
|
|
12546
12546
|
getStyles: a,
|
|
12547
12547
|
getClassNames: l,
|
|
12548
12548
|
getValue: u,
|
|
12549
|
-
hasValue:
|
|
12549
|
+
hasValue: y,
|
|
12550
12550
|
isMulti: f,
|
|
12551
12551
|
isRtl: p,
|
|
12552
|
-
options:
|
|
12552
|
+
options: b,
|
|
12553
12553
|
selectOption: s,
|
|
12554
12554
|
selectProps: d,
|
|
12555
12555
|
setValue: c,
|
|
@@ -12646,7 +12646,7 @@ var fl = function(t) {
|
|
|
12646
12646
|
// Renderers
|
|
12647
12647
|
// ==============================
|
|
12648
12648
|
function() {
|
|
12649
|
-
var r = this.props, o = r.isDisabled, a = r.isSearchable, l = r.inputId, u = r.inputValue, s = r.tabIndex, c = r.form, d = r.menuIsOpen, f = r.required, p = this.getComponents(),
|
|
12649
|
+
var r = this.props, o = r.isDisabled, a = r.isSearchable, l = r.inputId, u = r.inputValue, s = r.tabIndex, c = r.form, d = r.menuIsOpen, f = r.required, p = this.getComponents(), b = p.Input, y = this.state, x = y.inputIsHidden, I = y.ariaSelection, P = this.commonProps, A = l || this.getElementId("input"), S = Q(Q(Q({
|
|
12650
12650
|
"aria-autocomplete": "list",
|
|
12651
12651
|
"aria-expanded": d,
|
|
12652
12652
|
"aria-haspopup": !0,
|
|
@@ -12666,14 +12666,14 @@ var fl = function(t) {
|
|
|
12666
12666
|
} : {
|
|
12667
12667
|
"aria-describedby": this.getElementId("placeholder")
|
|
12668
12668
|
});
|
|
12669
|
-
return a ? /* @__PURE__ */ ge.createElement(
|
|
12669
|
+
return a ? /* @__PURE__ */ ge.createElement(b, te({}, P, {
|
|
12670
12670
|
autoCapitalize: "none",
|
|
12671
12671
|
autoComplete: "off",
|
|
12672
12672
|
autoCorrect: "off",
|
|
12673
12673
|
id: A,
|
|
12674
12674
|
innerRef: this.getInputRef,
|
|
12675
12675
|
isDisabled: o,
|
|
12676
|
-
isHidden:
|
|
12676
|
+
isHidden: x,
|
|
12677
12677
|
onBlur: this.onInputBlur,
|
|
12678
12678
|
onChange: this.handleInputChange,
|
|
12679
12679
|
onFocus: this.onInputFocus,
|
|
@@ -12682,7 +12682,7 @@ var fl = function(t) {
|
|
|
12682
12682
|
form: c,
|
|
12683
12683
|
type: "text",
|
|
12684
12684
|
value: u
|
|
12685
|
-
},
|
|
12685
|
+
}, S)) : /* @__PURE__ */ ge.createElement(Mh, te({
|
|
12686
12686
|
id: A,
|
|
12687
12687
|
innerRef: this.getInputRef,
|
|
12688
12688
|
onBlur: this.onInputBlur,
|
|
@@ -12693,25 +12693,25 @@ var fl = function(t) {
|
|
|
12693
12693
|
inputMode: "none",
|
|
12694
12694
|
form: c,
|
|
12695
12695
|
value: ""
|
|
12696
|
-
},
|
|
12696
|
+
}, S));
|
|
12697
12697
|
}
|
|
12698
12698
|
)
|
|
12699
12699
|
}, {
|
|
12700
12700
|
key: "renderPlaceholderOrValue",
|
|
12701
12701
|
value: function() {
|
|
12702
|
-
var r = this, o = this.getComponents(), a = o.MultiValue, l = o.MultiValueContainer, u = o.MultiValueLabel, s = o.MultiValueRemove, c = o.SingleValue, d = o.Placeholder, f = this.commonProps, p = this.props,
|
|
12703
|
-
if (!this.hasValue() || !
|
|
12702
|
+
var r = this, o = this.getComponents(), a = o.MultiValue, l = o.MultiValueContainer, u = o.MultiValueLabel, s = o.MultiValueRemove, c = o.SingleValue, d = o.Placeholder, f = this.commonProps, p = this.props, b = p.controlShouldRenderValue, y = p.isDisabled, x = p.isMulti, I = p.inputValue, P = p.placeholder, A = this.state, S = A.selectValue, k = A.focusedValue, v = A.isFocused;
|
|
12703
|
+
if (!this.hasValue() || !b)
|
|
12704
12704
|
return I ? null : /* @__PURE__ */ ge.createElement(d, te({}, f, {
|
|
12705
12705
|
key: "placeholder",
|
|
12706
|
-
isDisabled:
|
|
12707
|
-
isFocused:
|
|
12706
|
+
isDisabled: y,
|
|
12707
|
+
isFocused: v,
|
|
12708
12708
|
innerProps: {
|
|
12709
12709
|
id: this.getElementId("placeholder")
|
|
12710
12710
|
}
|
|
12711
12711
|
}), P);
|
|
12712
|
-
if (
|
|
12713
|
-
return
|
|
12714
|
-
var w = B ===
|
|
12712
|
+
if (x)
|
|
12713
|
+
return S.map(function(B, F) {
|
|
12714
|
+
var w = B === k, R = "".concat(r.getOptionLabel(B), "-").concat(r.getOptionValue(B));
|
|
12715
12715
|
return /* @__PURE__ */ ge.createElement(a, te({}, f, {
|
|
12716
12716
|
components: {
|
|
12717
12717
|
Container: l,
|
|
@@ -12719,7 +12719,7 @@ var fl = function(t) {
|
|
|
12719
12719
|
Remove: s
|
|
12720
12720
|
},
|
|
12721
12721
|
isFocused: w,
|
|
12722
|
-
isDisabled:
|
|
12722
|
+
isDisabled: y,
|
|
12723
12723
|
key: R,
|
|
12724
12724
|
index: F,
|
|
12725
12725
|
removeProps: {
|
|
@@ -12738,10 +12738,10 @@ var fl = function(t) {
|
|
|
12738
12738
|
});
|
|
12739
12739
|
if (I)
|
|
12740
12740
|
return null;
|
|
12741
|
-
var D =
|
|
12741
|
+
var D = S[0];
|
|
12742
12742
|
return /* @__PURE__ */ ge.createElement(c, te({}, f, {
|
|
12743
12743
|
data: D,
|
|
12744
|
-
isDisabled:
|
|
12744
|
+
isDisabled: y
|
|
12745
12745
|
}), this.formatOptionLabel(D, "value"));
|
|
12746
12746
|
}
|
|
12747
12747
|
}, {
|
|
@@ -12804,10 +12804,10 @@ var fl = function(t) {
|
|
|
12804
12804
|
}, {
|
|
12805
12805
|
key: "renderMenu",
|
|
12806
12806
|
value: function() {
|
|
12807
|
-
var r = this, o = this.getComponents(), a = o.Group, l = o.GroupHeading, u = o.Menu, s = o.MenuList, c = o.MenuPortal, d = o.LoadingMessage, f = o.NoOptionsMessage, p = o.Option,
|
|
12807
|
+
var r = this, o = this.getComponents(), a = o.Group, l = o.GroupHeading, u = o.Menu, s = o.MenuList, c = o.MenuPortal, d = o.LoadingMessage, f = o.NoOptionsMessage, p = o.Option, b = this.commonProps, y = this.state.focusedOption, x = this.props, I = x.captureMenuScroll, P = x.inputValue, A = x.isLoading, S = x.loadingMessage, k = x.minMenuHeight, v = x.maxMenuHeight, D = x.menuIsOpen, B = x.menuPlacement, F = x.menuPosition, w = x.menuPortalTarget, R = x.menuShouldBlockScroll, T = x.menuShouldScrollIntoView, z = x.noOptionsMessage, _ = x.onMenuScrollToTop, X = x.onMenuScrollToBottom;
|
|
12808
12808
|
if (!D) return null;
|
|
12809
12809
|
var J = function(m, de) {
|
|
12810
|
-
var K = m.type, ee = m.data, Be = m.isDisabled, fe = m.isSelected, Oe = m.label, se = m.value, xe =
|
|
12810
|
+
var K = m.type, ee = m.data, Be = m.isDisabled, fe = m.isSelected, Oe = m.label, se = m.value, xe = y === ee, Ae = Be ? void 0 : function() {
|
|
12811
12811
|
return r.onOptionHover(ee);
|
|
12812
12812
|
}, Ne = Be ? void 0 : function() {
|
|
12813
12813
|
return r.selectOption(ee);
|
|
@@ -12821,7 +12821,7 @@ var fl = function(t) {
|
|
|
12821
12821
|
"aria-selected": r.state.isAppleDevice ? void 0 : fe
|
|
12822
12822
|
// is not supported on Apple devices
|
|
12823
12823
|
};
|
|
12824
|
-
return /* @__PURE__ */ ge.createElement(p, te({},
|
|
12824
|
+
return /* @__PURE__ */ ge.createElement(p, te({}, b, {
|
|
12825
12825
|
innerProps: Me,
|
|
12826
12826
|
data: ee,
|
|
12827
12827
|
isDisabled: Be,
|
|
@@ -12838,7 +12838,7 @@ var fl = function(t) {
|
|
|
12838
12838
|
ie = this.getCategorizedOptions().map(function(j) {
|
|
12839
12839
|
if (j.type === "group") {
|
|
12840
12840
|
var m = j.data, de = j.options, K = j.index, ee = "".concat(r.getElementId("group"), "-").concat(K), Be = "".concat(ee, "-heading");
|
|
12841
|
-
return /* @__PURE__ */ ge.createElement(a, te({},
|
|
12841
|
+
return /* @__PURE__ */ ge.createElement(a, te({}, b, {
|
|
12842
12842
|
key: ee,
|
|
12843
12843
|
data: m,
|
|
12844
12844
|
options: de,
|
|
@@ -12855,27 +12855,27 @@ var fl = function(t) {
|
|
|
12855
12855
|
return J(j, "".concat(j.index));
|
|
12856
12856
|
});
|
|
12857
12857
|
else if (A) {
|
|
12858
|
-
var oe =
|
|
12858
|
+
var oe = S({
|
|
12859
12859
|
inputValue: P
|
|
12860
12860
|
});
|
|
12861
12861
|
if (oe === null) return null;
|
|
12862
|
-
ie = /* @__PURE__ */ ge.createElement(d,
|
|
12862
|
+
ie = /* @__PURE__ */ ge.createElement(d, b, oe);
|
|
12863
12863
|
} else {
|
|
12864
12864
|
var G = z({
|
|
12865
12865
|
inputValue: P
|
|
12866
12866
|
});
|
|
12867
12867
|
if (G === null) return null;
|
|
12868
|
-
ie = /* @__PURE__ */ ge.createElement(f,
|
|
12868
|
+
ie = /* @__PURE__ */ ge.createElement(f, b, G);
|
|
12869
12869
|
}
|
|
12870
12870
|
var g = {
|
|
12871
|
-
minMenuHeight:
|
|
12872
|
-
maxMenuHeight:
|
|
12871
|
+
minMenuHeight: k,
|
|
12872
|
+
maxMenuHeight: v,
|
|
12873
12873
|
menuPlacement: B,
|
|
12874
12874
|
menuPosition: F,
|
|
12875
12875
|
menuShouldScrollIntoView: T
|
|
12876
|
-
}, ae = /* @__PURE__ */ ge.createElement(mg, te({},
|
|
12876
|
+
}, ae = /* @__PURE__ */ ge.createElement(mg, te({}, b, g), function(j) {
|
|
12877
12877
|
var m = j.ref, de = j.placerProps, K = de.placement, ee = de.maxHeight;
|
|
12878
|
-
return /* @__PURE__ */ ge.createElement(u, te({},
|
|
12878
|
+
return /* @__PURE__ */ ge.createElement(u, te({}, b, g, {
|
|
12879
12879
|
innerRef: m,
|
|
12880
12880
|
innerProps: {
|
|
12881
12881
|
onMouseDown: r.onMenuMouseDown,
|
|
@@ -12889,22 +12889,22 @@ var fl = function(t) {
|
|
|
12889
12889
|
onBottomArrive: X,
|
|
12890
12890
|
lockEnabled: R
|
|
12891
12891
|
}, function(Be) {
|
|
12892
|
-
return /* @__PURE__ */ ge.createElement(s, te({},
|
|
12892
|
+
return /* @__PURE__ */ ge.createElement(s, te({}, b, {
|
|
12893
12893
|
innerRef: function(Oe) {
|
|
12894
12894
|
r.getMenuListRef(Oe), Be(Oe);
|
|
12895
12895
|
},
|
|
12896
12896
|
innerProps: {
|
|
12897
12897
|
role: "listbox",
|
|
12898
|
-
"aria-multiselectable":
|
|
12898
|
+
"aria-multiselectable": b.isMulti,
|
|
12899
12899
|
id: r.getElementId("listbox")
|
|
12900
12900
|
},
|
|
12901
12901
|
isLoading: A,
|
|
12902
12902
|
maxHeight: ee,
|
|
12903
|
-
focusedOption:
|
|
12903
|
+
focusedOption: y
|
|
12904
12904
|
}), ie);
|
|
12905
12905
|
}));
|
|
12906
12906
|
});
|
|
12907
|
-
return w || F === "fixed" ? /* @__PURE__ */ ge.createElement(c, te({},
|
|
12907
|
+
return w || F === "fixed" ? /* @__PURE__ */ ge.createElement(c, te({}, b, {
|
|
12908
12908
|
appendTo: w,
|
|
12909
12909
|
controlElement: this.controlRef,
|
|
12910
12910
|
menuPlacement: B,
|
|
@@ -12923,8 +12923,8 @@ var fl = function(t) {
|
|
|
12923
12923
|
if (!(!s || l))
|
|
12924
12924
|
if (u)
|
|
12925
12925
|
if (a) {
|
|
12926
|
-
var f = d.map(function(
|
|
12927
|
-
return r.getOptionValue(
|
|
12926
|
+
var f = d.map(function(y) {
|
|
12927
|
+
return r.getOptionValue(y);
|
|
12928
12928
|
}).join(a);
|
|
12929
12929
|
return /* @__PURE__ */ ge.createElement("input", {
|
|
12930
12930
|
name: s,
|
|
@@ -12932,12 +12932,12 @@ var fl = function(t) {
|
|
|
12932
12932
|
value: f
|
|
12933
12933
|
});
|
|
12934
12934
|
} else {
|
|
12935
|
-
var p = d.length > 0 ? d.map(function(
|
|
12935
|
+
var p = d.length > 0 ? d.map(function(y, x) {
|
|
12936
12936
|
return /* @__PURE__ */ ge.createElement("input", {
|
|
12937
|
-
key: "i-".concat(
|
|
12937
|
+
key: "i-".concat(x),
|
|
12938
12938
|
name: s,
|
|
12939
12939
|
type: "hidden",
|
|
12940
|
-
value: r.getOptionValue(
|
|
12940
|
+
value: r.getOptionValue(y)
|
|
12941
12941
|
});
|
|
12942
12942
|
}) : /* @__PURE__ */ ge.createElement("input", {
|
|
12943
12943
|
name: s,
|
|
@@ -12947,11 +12947,11 @@ var fl = function(t) {
|
|
|
12947
12947
|
return /* @__PURE__ */ ge.createElement("div", null, p);
|
|
12948
12948
|
}
|
|
12949
12949
|
else {
|
|
12950
|
-
var
|
|
12950
|
+
var b = d[0] ? this.getOptionValue(d[0]) : "";
|
|
12951
12951
|
return /* @__PURE__ */ ge.createElement("input", {
|
|
12952
12952
|
name: s,
|
|
12953
12953
|
type: "hidden",
|
|
12954
|
-
value:
|
|
12954
|
+
value: b
|
|
12955
12955
|
});
|
|
12956
12956
|
}
|
|
12957
12957
|
}
|
|
@@ -12973,42 +12973,42 @@ var fl = function(t) {
|
|
|
12973
12973
|
}, {
|
|
12974
12974
|
key: "render",
|
|
12975
12975
|
value: function() {
|
|
12976
|
-
var r = this.getComponents(), o = r.Control, a = r.IndicatorsContainer, l = r.SelectContainer, u = r.ValueContainer, s = this.props, c = s.className, d = s.id, f = s.isDisabled, p = s.menuIsOpen,
|
|
12977
|
-
return /* @__PURE__ */ ge.createElement(l, te({},
|
|
12976
|
+
var r = this.getComponents(), o = r.Control, a = r.IndicatorsContainer, l = r.SelectContainer, u = r.ValueContainer, s = this.props, c = s.className, d = s.id, f = s.isDisabled, p = s.menuIsOpen, b = this.state.isFocused, y = this.commonProps = this.getCommonProps();
|
|
12977
|
+
return /* @__PURE__ */ ge.createElement(l, te({}, y, {
|
|
12978
12978
|
className: c,
|
|
12979
12979
|
innerProps: {
|
|
12980
12980
|
id: d,
|
|
12981
12981
|
onKeyDown: this.onKeyDown
|
|
12982
12982
|
},
|
|
12983
12983
|
isDisabled: f,
|
|
12984
|
-
isFocused:
|
|
12985
|
-
}), this.renderLiveRegion(), /* @__PURE__ */ ge.createElement(o, te({},
|
|
12984
|
+
isFocused: b
|
|
12985
|
+
}), this.renderLiveRegion(), /* @__PURE__ */ ge.createElement(o, te({}, y, {
|
|
12986
12986
|
innerRef: this.getControlRef,
|
|
12987
12987
|
innerProps: {
|
|
12988
12988
|
onMouseDown: this.onControlMouseDown,
|
|
12989
12989
|
onTouchEnd: this.onControlTouchEnd
|
|
12990
12990
|
},
|
|
12991
12991
|
isDisabled: f,
|
|
12992
|
-
isFocused:
|
|
12992
|
+
isFocused: b,
|
|
12993
12993
|
menuIsOpen: p
|
|
12994
|
-
}), /* @__PURE__ */ ge.createElement(u, te({},
|
|
12994
|
+
}), /* @__PURE__ */ ge.createElement(u, te({}, y, {
|
|
12995
12995
|
isDisabled: f
|
|
12996
|
-
}), this.renderPlaceholderOrValue(), this.renderInput()), /* @__PURE__ */ ge.createElement(a, te({},
|
|
12996
|
+
}), this.renderPlaceholderOrValue(), this.renderInput()), /* @__PURE__ */ ge.createElement(a, te({}, y, {
|
|
12997
12997
|
isDisabled: f
|
|
12998
12998
|
}), this.renderClearIndicator(), this.renderLoadingIndicator(), this.renderIndicatorSeparator(), this.renderDropdownIndicator())), this.renderMenu(), this.renderFormField());
|
|
12999
12999
|
}
|
|
13000
13000
|
}], [{
|
|
13001
13001
|
key: "getDerivedStateFromProps",
|
|
13002
13002
|
value: function(r, o) {
|
|
13003
|
-
var a = o.prevProps, l = o.clearFocusValueOnUpdate, u = o.inputIsHiddenAfterUpdate, s = o.ariaSelection, c = o.isFocused, d = o.prevWasFocused, f = o.instancePrefix, p = r.options,
|
|
13004
|
-
if (a && (
|
|
13005
|
-
var
|
|
13003
|
+
var a = o.prevProps, l = o.clearFocusValueOnUpdate, u = o.inputIsHiddenAfterUpdate, s = o.ariaSelection, c = o.isFocused, d = o.prevWasFocused, f = o.instancePrefix, p = r.options, b = r.value, y = r.menuIsOpen, x = r.inputValue, I = r.isMulti, P = Nn(b), A = {};
|
|
13004
|
+
if (a && (b !== a.value || p !== a.options || y !== a.menuIsOpen || x !== a.inputValue)) {
|
|
13005
|
+
var S = y ? dm(r, P) : [], k = y ? Lo(En(r, P), "".concat(f, "-option")) : [], v = l ? pm(o, P) : null, D = fm(o, S), B = yr(k, D);
|
|
13006
13006
|
A = {
|
|
13007
13007
|
selectValue: P,
|
|
13008
13008
|
focusedOption: D,
|
|
13009
13009
|
focusedOptionId: B,
|
|
13010
|
-
focusableOptionsWithIds:
|
|
13011
|
-
focusedValue:
|
|
13010
|
+
focusableOptionsWithIds: k,
|
|
13011
|
+
focusedValue: v,
|
|
13012
13012
|
clearFocusValueOnUpdate: !1
|
|
13013
13013
|
};
|
|
13014
13014
|
}
|
|
@@ -13324,13 +13324,13 @@ function Le() {
|
|
|
13324
13324
|
var f;
|
|
13325
13325
|
const c = `${(e == null ? void 0 : e.classNamePrefix) ?? "pd-"}${u.toLowerCase()}`, d = (f = e.classNames) == null ? void 0 : f[u];
|
|
13326
13326
|
if (typeof d == "function") {
|
|
13327
|
-
const p = d,
|
|
13327
|
+
const p = d, b = {
|
|
13328
13328
|
...s ?? {},
|
|
13329
13329
|
theme: i
|
|
13330
13330
|
};
|
|
13331
13331
|
return [
|
|
13332
13332
|
c,
|
|
13333
|
-
p(
|
|
13333
|
+
p(b)
|
|
13334
13334
|
].filter(Boolean).join(" ");
|
|
13335
13335
|
}
|
|
13336
13336
|
return [
|
|
@@ -13348,11 +13348,11 @@ function Le() {
|
|
|
13348
13348
|
var f;
|
|
13349
13349
|
const d = (f = e.styles) == null ? void 0 : f[u];
|
|
13350
13350
|
if (typeof d == "function") {
|
|
13351
|
-
const p = d,
|
|
13351
|
+
const p = d, b = {
|
|
13352
13352
|
...c ?? {},
|
|
13353
13353
|
theme: i
|
|
13354
13354
|
};
|
|
13355
|
-
return p(s,
|
|
13355
|
+
return p(s, b);
|
|
13356
13356
|
}
|
|
13357
13357
|
return d ? {
|
|
13358
13358
|
...s,
|
|
@@ -13499,10 +13499,10 @@ function Bm({ app: e }) {
|
|
|
13499
13499
|
}), [
|
|
13500
13500
|
f,
|
|
13501
13501
|
d.boxShadow
|
|
13502
|
-
]),
|
|
13502
|
+
]), b = {
|
|
13503
13503
|
color: d.colors.neutral60,
|
|
13504
13504
|
gridArea: "control"
|
|
13505
|
-
},
|
|
13505
|
+
}, y = {
|
|
13506
13506
|
backgroundColor: d.colors.primary,
|
|
13507
13507
|
borderRadius: d.borderRadius,
|
|
13508
13508
|
border: "solid 1px",
|
|
@@ -13510,7 +13510,7 @@ function Bm({ app: e }) {
|
|
|
13510
13510
|
color: d.colors.primary25,
|
|
13511
13511
|
padding: "0.25rem 0.5rem",
|
|
13512
13512
|
gridArea: "control"
|
|
13513
|
-
},
|
|
13513
|
+
}, x = {
|
|
13514
13514
|
components: {
|
|
13515
13515
|
Option: km
|
|
13516
13516
|
},
|
|
@@ -13524,11 +13524,11 @@ function Bm({ app: e }) {
|
|
|
13524
13524
|
};
|
|
13525
13525
|
}
|
|
13526
13526
|
}
|
|
13527
|
-
}, I = c.getProps("controlAppSelect",
|
|
13527
|
+
}, I = c.getProps("controlAppSelect", x), P = i == null ? void 0 : i[e.nameSlug], {
|
|
13528
13528
|
isLoading: A,
|
|
13529
13529
|
// TODO error
|
|
13530
|
-
accounts:
|
|
13531
|
-
refetch:
|
|
13530
|
+
accounts: S,
|
|
13531
|
+
refetch: k
|
|
13532
13532
|
} = Em(
|
|
13533
13533
|
{
|
|
13534
13534
|
external_user_id: n,
|
|
@@ -13541,12 +13541,12 @@ function Bm({ app: e }) {
|
|
|
13541
13541
|
suspense: !!e
|
|
13542
13542
|
}
|
|
13543
13543
|
}
|
|
13544
|
-
),
|
|
13544
|
+
), v = async () => {
|
|
13545
13545
|
t.connectAccount({
|
|
13546
13546
|
app: a.app,
|
|
13547
13547
|
oauthAppId: P,
|
|
13548
13548
|
onSuccess: async (w) => {
|
|
13549
|
-
await
|
|
13549
|
+
await k(), u({
|
|
13550
13550
|
authProvisionId: w.id
|
|
13551
13551
|
});
|
|
13552
13552
|
},
|
|
@@ -13557,25 +13557,25 @@ function Bm({ app: e }) {
|
|
|
13557
13557
|
id: "_new",
|
|
13558
13558
|
name: `Connect new ${e.name} account...`
|
|
13559
13559
|
}, B = pe(() => [
|
|
13560
|
-
...
|
|
13560
|
+
...S,
|
|
13561
13561
|
D
|
|
13562
13562
|
], [
|
|
13563
|
-
|
|
13563
|
+
S
|
|
13564
13564
|
]), F = pe(() => {
|
|
13565
13565
|
if (l != null && l.authProvisionId) {
|
|
13566
|
-
for (const w of
|
|
13566
|
+
for (const w of S)
|
|
13567
13567
|
if (l.authProvisionId === w.id)
|
|
13568
13568
|
return w;
|
|
13569
13569
|
}
|
|
13570
13570
|
return D;
|
|
13571
13571
|
}, [
|
|
13572
|
-
|
|
13572
|
+
S,
|
|
13573
13573
|
l
|
|
13574
13574
|
]);
|
|
13575
|
-
return /* @__PURE__ */ O("div", { ...s("controlApp",
|
|
13575
|
+
return /* @__PURE__ */ O("div", { ...s("controlApp", b, {
|
|
13576
13576
|
app: e,
|
|
13577
13577
|
...r
|
|
13578
|
-
}), children: A ? `Loading ${e.name} accounts...` :
|
|
13578
|
+
}), children: A ? `Loading ${e.name} accounts...` : S.length ? /* @__PURE__ */ O(
|
|
13579
13579
|
Yn,
|
|
13580
13580
|
{
|
|
13581
13581
|
instanceId: o,
|
|
@@ -13600,15 +13600,15 @@ function Bm({ app: e }) {
|
|
|
13600
13600
|
})
|
|
13601
13601
|
},
|
|
13602
13602
|
onChange: (w) => {
|
|
13603
|
-
w ? w.id === "_new" ?
|
|
13603
|
+
w ? w.id === "_new" ? v() : u({
|
|
13604
13604
|
authProvisionId: w.id
|
|
13605
13605
|
}) : u(void 0);
|
|
13606
13606
|
}
|
|
13607
13607
|
}
|
|
13608
|
-
) : /* @__PURE__ */ ye("button", { type: "button", ...s("connectButton",
|
|
13608
|
+
) : /* @__PURE__ */ ye("button", { type: "button", ...s("connectButton", y, {
|
|
13609
13609
|
app: e,
|
|
13610
13610
|
...r
|
|
13611
|
-
}), onClick: () =>
|
|
13611
|
+
}), onClick: () => v(), children: [
|
|
13612
13612
|
"Connect ",
|
|
13613
13613
|
e.name
|
|
13614
13614
|
] }) });
|
|
@@ -13704,23 +13704,23 @@ function Pm() {
|
|
|
13704
13704
|
return;
|
|
13705
13705
|
}
|
|
13706
13706
|
t(F);
|
|
13707
|
-
},
|
|
13707
|
+
}, b = (B, F) => {
|
|
13708
13708
|
const w = [
|
|
13709
13709
|
...l
|
|
13710
13710
|
];
|
|
13711
13711
|
w[B] = F, u(w), p(w);
|
|
13712
|
-
},
|
|
13712
|
+
}, y = () => {
|
|
13713
13713
|
const B = [
|
|
13714
13714
|
...l,
|
|
13715
13715
|
""
|
|
13716
13716
|
];
|
|
13717
13717
|
u(B);
|
|
13718
|
-
},
|
|
13718
|
+
}, x = (B) => {
|
|
13719
13719
|
const F = l.filter((w, R) => R !== B);
|
|
13720
13720
|
u(F.length > 0 ? F : [
|
|
13721
13721
|
""
|
|
13722
13722
|
]), p(F);
|
|
13723
|
-
}, I = gi(), P = hi(), A = pi(o),
|
|
13723
|
+
}, I = gi(), P = hi(), A = pi(o), S = Un(o), k = fi(o), v = ((D = l[l.length - 1]) == null ? void 0 : D.trim()) || l.length > 1;
|
|
13724
13724
|
return /* @__PURE__ */ ye("div", { ...r("controlArray", I, e), children: [
|
|
13725
13725
|
l.map((B, F) => /* @__PURE__ */ ye("div", { style: P, children: [
|
|
13726
13726
|
/* @__PURE__ */ O(
|
|
@@ -13728,7 +13728,7 @@ function Pm() {
|
|
|
13728
13728
|
{
|
|
13729
13729
|
type: "text",
|
|
13730
13730
|
value: B,
|
|
13731
|
-
onChange: (w) =>
|
|
13731
|
+
onChange: (w) => b(F, w.target.value),
|
|
13732
13732
|
placeholder: "",
|
|
13733
13733
|
style: A,
|
|
13734
13734
|
required: !n.optional && F === 0
|
|
@@ -13738,20 +13738,20 @@ function Pm() {
|
|
|
13738
13738
|
"button",
|
|
13739
13739
|
{
|
|
13740
13740
|
type: "button",
|
|
13741
|
-
onClick: () =>
|
|
13742
|
-
style:
|
|
13741
|
+
onClick: () => x(F),
|
|
13742
|
+
style: k,
|
|
13743
13743
|
"aria-label": "Remove value",
|
|
13744
13744
|
children: "×"
|
|
13745
13745
|
}
|
|
13746
13746
|
)
|
|
13747
13747
|
] }, F)),
|
|
13748
|
-
|
|
13748
|
+
v && /* @__PURE__ */ ye(
|
|
13749
13749
|
"button",
|
|
13750
13750
|
{
|
|
13751
13751
|
type: "button",
|
|
13752
|
-
onClick:
|
|
13752
|
+
onClick: y,
|
|
13753
13753
|
style: {
|
|
13754
|
-
...
|
|
13754
|
+
...S,
|
|
13755
13755
|
alignSelf: "flex-start",
|
|
13756
13756
|
paddingRight: `${o.spacing.baseUnit * 2}px`
|
|
13757
13757
|
},
|
|
@@ -13921,7 +13921,7 @@ function Vm() {
|
|
|
13921
13921
|
}, [
|
|
13922
13922
|
i
|
|
13923
13923
|
]);
|
|
13924
|
-
const
|
|
13924
|
+
const b = (G) => {
|
|
13925
13925
|
const g = zo(G.headers), ae = zo(G.params), j = {
|
|
13926
13926
|
contentType: G.bodyContentType,
|
|
13927
13927
|
type: "raw",
|
|
@@ -13936,18 +13936,18 @@ function Vm() {
|
|
|
13936
13936
|
// Always an array, even if empty
|
|
13937
13937
|
body: j
|
|
13938
13938
|
};
|
|
13939
|
-
},
|
|
13939
|
+
}, y = (G) => {
|
|
13940
13940
|
const g = {
|
|
13941
13941
|
...f,
|
|
13942
13942
|
url: G
|
|
13943
13943
|
};
|
|
13944
|
-
p(g), t(
|
|
13945
|
-
},
|
|
13944
|
+
p(g), t(b(g));
|
|
13945
|
+
}, x = (G) => {
|
|
13946
13946
|
const g = {
|
|
13947
13947
|
...f,
|
|
13948
13948
|
method: G
|
|
13949
13949
|
};
|
|
13950
|
-
p(g), t(
|
|
13950
|
+
p(g), t(b(g));
|
|
13951
13951
|
}, I = (G, g, ae) => {
|
|
13952
13952
|
const j = [
|
|
13953
13953
|
...f.headers
|
|
@@ -13960,7 +13960,7 @@ function Vm() {
|
|
|
13960
13960
|
...f,
|
|
13961
13961
|
headers: j
|
|
13962
13962
|
};
|
|
13963
|
-
p(m), t(
|
|
13963
|
+
p(m), t(b(m));
|
|
13964
13964
|
}, P = () => {
|
|
13965
13965
|
const G = [
|
|
13966
13966
|
...f.headers,
|
|
@@ -13983,20 +13983,20 @@ function Vm() {
|
|
|
13983
13983
|
...f,
|
|
13984
13984
|
headers: ae
|
|
13985
13985
|
};
|
|
13986
|
-
p(j), t(
|
|
13987
|
-
},
|
|
13986
|
+
p(j), t(b(j));
|
|
13987
|
+
}, S = (G) => {
|
|
13988
13988
|
const g = {
|
|
13989
13989
|
...f,
|
|
13990
13990
|
bodyContentType: G
|
|
13991
13991
|
};
|
|
13992
|
-
p(g), t(
|
|
13993
|
-
},
|
|
13992
|
+
p(g), t(b(g));
|
|
13993
|
+
}, k = (G) => {
|
|
13994
13994
|
const g = {
|
|
13995
13995
|
...f,
|
|
13996
13996
|
body: G
|
|
13997
13997
|
};
|
|
13998
|
-
p(g), t(
|
|
13999
|
-
},
|
|
13998
|
+
p(g), t(b(g));
|
|
13999
|
+
}, v = gi(), D = hi(), B = pi(o), F = Un(o), w = fi(o), R = {
|
|
14000
14000
|
display: "flex",
|
|
14001
14001
|
flexDirection: "column",
|
|
14002
14002
|
gap: `${o.spacing.baseUnit}px`
|
|
@@ -14029,7 +14029,7 @@ function Vm() {
|
|
|
14029
14029
|
display: "flex",
|
|
14030
14030
|
alignItems: "stretch"
|
|
14031
14031
|
}, oe = `http-request-${n.name}`;
|
|
14032
|
-
return /* @__PURE__ */ ye("div", { ...r("controlHttpRequest",
|
|
14032
|
+
return /* @__PURE__ */ ye("div", { ...r("controlHttpRequest", v, e), children: [
|
|
14033
14033
|
/* @__PURE__ */ ye("div", { style: R, children: [
|
|
14034
14034
|
/* @__PURE__ */ O("span", { style: T, children: "URL" }),
|
|
14035
14035
|
/* @__PURE__ */ ye("div", { style: ie, children: [
|
|
@@ -14037,7 +14037,7 @@ function Vm() {
|
|
|
14037
14037
|
"select",
|
|
14038
14038
|
{
|
|
14039
14039
|
value: f.method,
|
|
14040
|
-
onChange: (G) =>
|
|
14040
|
+
onChange: (G) => x(G.target.value),
|
|
14041
14041
|
style: _,
|
|
14042
14042
|
"aria-label": "HTTP method",
|
|
14043
14043
|
children: Fm.map((G) => /* @__PURE__ */ O("option", { value: G, children: G }, G))
|
|
@@ -14048,7 +14048,7 @@ function Vm() {
|
|
|
14048
14048
|
{
|
|
14049
14049
|
type: "text",
|
|
14050
14050
|
value: f.url,
|
|
14051
|
-
onChange: (G) =>
|
|
14051
|
+
onChange: (G) => y(G.target.value),
|
|
14052
14052
|
placeholder: "https://api.example.com/endpoint",
|
|
14053
14053
|
style: X,
|
|
14054
14054
|
required: !n.optional,
|
|
@@ -14117,7 +14117,7 @@ function Vm() {
|
|
|
14117
14117
|
{
|
|
14118
14118
|
id: `${oe}-body-type`,
|
|
14119
14119
|
value: f.bodyContentType,
|
|
14120
|
-
onChange: (G) =>
|
|
14120
|
+
onChange: (G) => S(G.target.value),
|
|
14121
14121
|
style: z,
|
|
14122
14122
|
children: Rm.map((G) => /* @__PURE__ */ O("option", { value: G.value, children: G.label }, G.value))
|
|
14123
14123
|
}
|
|
@@ -14126,7 +14126,7 @@ function Vm() {
|
|
|
14126
14126
|
"textarea",
|
|
14127
14127
|
{
|
|
14128
14128
|
value: f.body,
|
|
14129
|
-
onChange: (G) =>
|
|
14129
|
+
onChange: (G) => k(G.target.value),
|
|
14130
14130
|
placeholder: f.bodyContentType === "application/json" ? '{"key": "value"}' : "Request body",
|
|
14131
14131
|
style: J,
|
|
14132
14132
|
rows: 4,
|
|
@@ -14147,8 +14147,8 @@ function Om() {
|
|
|
14147
14147
|
} = Le(), a = (A) => {
|
|
14148
14148
|
if (A === null || typeof A != "object" || A instanceof Date || A instanceof Function || A instanceof RegExp)
|
|
14149
14149
|
return !1;
|
|
14150
|
-
const
|
|
14151
|
-
return
|
|
14150
|
+
const S = Object.getPrototypeOf(A);
|
|
14151
|
+
return S === Object.prototype || S === null;
|
|
14152
14152
|
}, l = () => {
|
|
14153
14153
|
if (!i || typeof i != "object" || Array.isArray(i))
|
|
14154
14154
|
return [
|
|
@@ -14165,15 +14165,15 @@ function Om() {
|
|
|
14165
14165
|
}
|
|
14166
14166
|
];
|
|
14167
14167
|
const A = Object.entries(i).map(([
|
|
14168
|
-
|
|
14169
|
-
|
|
14168
|
+
S,
|
|
14169
|
+
k
|
|
14170
14170
|
]) => ({
|
|
14171
|
-
key:
|
|
14172
|
-
value: typeof
|
|
14171
|
+
key: S,
|
|
14172
|
+
value: typeof k == "string" ? k : (() => {
|
|
14173
14173
|
try {
|
|
14174
|
-
return JSON.stringify(
|
|
14174
|
+
return JSON.stringify(k);
|
|
14175
14175
|
} catch {
|
|
14176
|
-
return String(
|
|
14176
|
+
return String(k);
|
|
14177
14177
|
}
|
|
14178
14178
|
})()
|
|
14179
14179
|
}));
|
|
@@ -14207,15 +14207,15 @@ function Om() {
|
|
|
14207
14207
|
return;
|
|
14208
14208
|
}
|
|
14209
14209
|
const A = Object.entries(i).map(([
|
|
14210
|
-
|
|
14211
|
-
|
|
14210
|
+
S,
|
|
14211
|
+
k
|
|
14212
14212
|
]) => ({
|
|
14213
|
-
key:
|
|
14214
|
-
value: typeof
|
|
14213
|
+
key: S,
|
|
14214
|
+
value: typeof k == "string" ? k : (() => {
|
|
14215
14215
|
try {
|
|
14216
|
-
return JSON.stringify(
|
|
14216
|
+
return JSON.stringify(k);
|
|
14217
14217
|
} catch {
|
|
14218
|
-
return String(
|
|
14218
|
+
return String(k);
|
|
14219
14219
|
}
|
|
14220
14220
|
})()
|
|
14221
14221
|
}));
|
|
@@ -14229,28 +14229,28 @@ function Om() {
|
|
|
14229
14229
|
i
|
|
14230
14230
|
]);
|
|
14231
14231
|
const c = (A) => {
|
|
14232
|
-
const
|
|
14233
|
-
if (
|
|
14232
|
+
const S = A.filter((v) => v.key.trim() !== "");
|
|
14233
|
+
if (S.length === 0) {
|
|
14234
14234
|
t(void 0);
|
|
14235
14235
|
return;
|
|
14236
14236
|
}
|
|
14237
|
-
const
|
|
14238
|
-
|
|
14239
|
-
if (
|
|
14237
|
+
const k = {};
|
|
14238
|
+
S.forEach((v) => {
|
|
14239
|
+
if (v.key.trim())
|
|
14240
14240
|
try {
|
|
14241
|
-
|
|
14241
|
+
k[v.key] = JSON.parse(v.value);
|
|
14242
14242
|
} catch {
|
|
14243
|
-
|
|
14243
|
+
k[v.key] = v.value;
|
|
14244
14244
|
}
|
|
14245
|
-
}), t(
|
|
14246
|
-
}, d = (A,
|
|
14247
|
-
const
|
|
14245
|
+
}), t(k);
|
|
14246
|
+
}, d = (A, S, k) => {
|
|
14247
|
+
const v = [
|
|
14248
14248
|
...u
|
|
14249
14249
|
];
|
|
14250
|
-
|
|
14251
|
-
...
|
|
14252
|
-
[
|
|
14253
|
-
}, s(
|
|
14250
|
+
v[A] = {
|
|
14251
|
+
...v[A],
|
|
14252
|
+
[S]: k
|
|
14253
|
+
}, s(v), c(v);
|
|
14254
14254
|
}, f = () => {
|
|
14255
14255
|
const A = [
|
|
14256
14256
|
...u,
|
|
@@ -14261,25 +14261,25 @@ function Om() {
|
|
|
14261
14261
|
];
|
|
14262
14262
|
s(A);
|
|
14263
14263
|
}, p = (A) => {
|
|
14264
|
-
const
|
|
14265
|
-
s(
|
|
14264
|
+
const S = u.filter((k, v) => v !== A);
|
|
14265
|
+
s(S.length > 0 ? S : [
|
|
14266
14266
|
{
|
|
14267
14267
|
key: "",
|
|
14268
14268
|
value: ""
|
|
14269
14269
|
}
|
|
14270
|
-
]), c(
|
|
14271
|
-
},
|
|
14272
|
-
return /* @__PURE__ */ ye("div", { ...r("controlObject",
|
|
14273
|
-
u.map((A,
|
|
14270
|
+
]), c(S);
|
|
14271
|
+
}, b = gi(), y = hi(), x = pi(o), I = Un(o), P = fi(o);
|
|
14272
|
+
return /* @__PURE__ */ ye("div", { ...r("controlObject", b, e), children: [
|
|
14273
|
+
u.map((A, S) => /* @__PURE__ */ ye("div", { style: y, children: [
|
|
14274
14274
|
/* @__PURE__ */ O(
|
|
14275
14275
|
"input",
|
|
14276
14276
|
{
|
|
14277
14277
|
type: "text",
|
|
14278
14278
|
value: A.key,
|
|
14279
|
-
onChange: (
|
|
14279
|
+
onChange: (k) => d(S, "key", k.target.value),
|
|
14280
14280
|
placeholder: "Key",
|
|
14281
|
-
style:
|
|
14282
|
-
required: !n.optional &&
|
|
14281
|
+
style: x,
|
|
14282
|
+
required: !n.optional && S === 0
|
|
14283
14283
|
}
|
|
14284
14284
|
),
|
|
14285
14285
|
/* @__PURE__ */ O(
|
|
@@ -14287,22 +14287,22 @@ function Om() {
|
|
|
14287
14287
|
{
|
|
14288
14288
|
type: "text",
|
|
14289
14289
|
value: A.value,
|
|
14290
|
-
onChange: (
|
|
14290
|
+
onChange: (k) => d(S, "value", k.target.value),
|
|
14291
14291
|
placeholder: "Value",
|
|
14292
|
-
style:
|
|
14292
|
+
style: x
|
|
14293
14293
|
}
|
|
14294
14294
|
),
|
|
14295
14295
|
u.length > 1 && /* @__PURE__ */ O(
|
|
14296
14296
|
"button",
|
|
14297
14297
|
{
|
|
14298
14298
|
type: "button",
|
|
14299
|
-
onClick: () => p(
|
|
14299
|
+
onClick: () => p(S),
|
|
14300
14300
|
style: P,
|
|
14301
14301
|
"aria-label": "Remove pair",
|
|
14302
14302
|
children: "×"
|
|
14303
14303
|
}
|
|
14304
14304
|
)
|
|
14305
|
-
] },
|
|
14305
|
+
] }, S)),
|
|
14306
14306
|
/* @__PURE__ */ ye(
|
|
14307
14307
|
"button",
|
|
14308
14308
|
{
|
|
@@ -14344,32 +14344,32 @@ var Nm = ["allowCreateWhileLoading", "createOptionPosition", "formatCreateLabel"
|
|
|
14344
14344
|
}
|
|
14345
14345
|
};
|
|
14346
14346
|
function Dm(e) {
|
|
14347
|
-
var t = e.allowCreateWhileLoading, n = t === void 0 ? !1 : t, i = e.createOptionPosition, r = i === void 0 ? "last" : i, o = e.formatCreateLabel, a = o === void 0 ? Ir.formatCreateLabel : o, l = e.isValidNewOption, u = l === void 0 ? Ir.isValidNewOption : l, s = e.getNewOptionData, c = s === void 0 ? Ir.getNewOptionData : s, d = e.onCreateOption, f = e.options, p = f === void 0 ? [] : f,
|
|
14348
|
-
return u(
|
|
14347
|
+
var t = e.allowCreateWhileLoading, n = t === void 0 ? !1 : t, i = e.createOptionPosition, r = i === void 0 ? "last" : i, o = e.formatCreateLabel, a = o === void 0 ? Ir.formatCreateLabel : o, l = e.isValidNewOption, u = l === void 0 ? Ir.isValidNewOption : l, s = e.getNewOptionData, c = s === void 0 ? Ir.getNewOptionData : s, d = e.onCreateOption, f = e.options, p = f === void 0 ? [] : f, b = e.onChange, y = ct(e, Nm), x = y.getOptionValue, I = x === void 0 ? al : x, P = y.getOptionLabel, A = P === void 0 ? ol : P, S = y.inputValue, k = y.isLoading, v = y.isMulti, D = y.value, B = y.name, F = pe(function() {
|
|
14348
|
+
return u(S, Nn(D), p, {
|
|
14349
14349
|
getOptionValue: I,
|
|
14350
14350
|
getOptionLabel: A
|
|
14351
|
-
}) ? c(
|
|
14352
|
-
}, [a, c, A, I,
|
|
14353
|
-
return (n || !
|
|
14354
|
-
}, [n, r,
|
|
14351
|
+
}) ? c(S, a(S)) : void 0;
|
|
14352
|
+
}, [a, c, A, I, S, u, p, D]), w = pe(function() {
|
|
14353
|
+
return (n || !k) && F ? r === "first" ? [F].concat(Ht(p)) : [].concat(Ht(p), [F]) : p;
|
|
14354
|
+
}, [n, r, k, F, p]), R = Re(function(T, z) {
|
|
14355
14355
|
if (z.action !== "select-option")
|
|
14356
|
-
return
|
|
14356
|
+
return b(T, z);
|
|
14357
14357
|
var _ = Array.isArray(T) ? T : [T];
|
|
14358
14358
|
if (_[_.length - 1] === F) {
|
|
14359
|
-
if (d) d(
|
|
14359
|
+
if (d) d(S);
|
|
14360
14360
|
else {
|
|
14361
|
-
var X = c(
|
|
14361
|
+
var X = c(S, S), J = {
|
|
14362
14362
|
action: "create-option",
|
|
14363
14363
|
name: B,
|
|
14364
14364
|
option: X
|
|
14365
14365
|
};
|
|
14366
|
-
|
|
14366
|
+
b(en(v, [].concat(Ht(Nn(D)), [X]), X), J);
|
|
14367
14367
|
}
|
|
14368
14368
|
return;
|
|
14369
14369
|
}
|
|
14370
|
-
|
|
14371
|
-
}, [c,
|
|
14372
|
-
return Q(Q({},
|
|
14370
|
+
b(T, z);
|
|
14371
|
+
}, [c, S, v, B, F, d, b, D]);
|
|
14372
|
+
return Q(Q({}, y), {}, {
|
|
14373
14373
|
options: w,
|
|
14374
14374
|
onChange: R
|
|
14375
14375
|
});
|
|
@@ -14398,7 +14398,7 @@ function zr({
|
|
|
14398
14398
|
theme: f
|
|
14399
14399
|
} = Le(), p = pe(() => jn(f.colors), [
|
|
14400
14400
|
f.colors
|
|
14401
|
-
]),
|
|
14401
|
+
]), b = pe(() => _n({
|
|
14402
14402
|
colors: {
|
|
14403
14403
|
surface: p.surface,
|
|
14404
14404
|
border: p.border,
|
|
@@ -14413,15 +14413,15 @@ function zr({
|
|
|
14413
14413
|
p,
|
|
14414
14414
|
f.boxShadow
|
|
14415
14415
|
]), [
|
|
14416
|
-
|
|
14417
|
-
|
|
14416
|
+
y,
|
|
14417
|
+
x
|
|
14418
14418
|
] = ce(t), [
|
|
14419
14419
|
I,
|
|
14420
14420
|
P
|
|
14421
14421
|
] = ce(s);
|
|
14422
14422
|
be(() => {
|
|
14423
14423
|
const z = t.map(He);
|
|
14424
|
-
|
|
14424
|
+
x(z);
|
|
14425
14425
|
}, [
|
|
14426
14426
|
t
|
|
14427
14427
|
]), be(() => {
|
|
@@ -14440,10 +14440,10 @@ function zr({
|
|
|
14440
14440
|
return I.map((z) => He(z));
|
|
14441
14441
|
if (Array.isArray(I)) {
|
|
14442
14442
|
if (!fr(I[0]))
|
|
14443
|
-
return I.map((z) =>
|
|
14443
|
+
return I.map((z) => y.find((_) => _.value === z) || He(z));
|
|
14444
14444
|
} else if (!fr(I))
|
|
14445
|
-
if ((
|
|
14446
|
-
for (const _ of
|
|
14445
|
+
if ((y == null ? void 0 : y[0]) && fr(y[0])) {
|
|
14446
|
+
for (const _ of y)
|
|
14447
14447
|
if (_.value === I)
|
|
14448
14448
|
return _;
|
|
14449
14449
|
} else
|
|
@@ -14451,20 +14451,20 @@ function zr({
|
|
|
14451
14451
|
return null;
|
|
14452
14452
|
}, [
|
|
14453
14453
|
I,
|
|
14454
|
-
|
|
14455
|
-
]),
|
|
14456
|
-
styles:
|
|
14457
|
-
}),
|
|
14454
|
+
y
|
|
14455
|
+
]), S = d.getProps("controlSelect", {
|
|
14456
|
+
styles: b
|
|
14457
|
+
}), k = Te(r);
|
|
14458
14458
|
be(() => {
|
|
14459
|
-
|
|
14459
|
+
k.current = r;
|
|
14460
14460
|
}, [
|
|
14461
14461
|
r
|
|
14462
14462
|
]);
|
|
14463
|
-
const
|
|
14464
|
-
|
|
14463
|
+
const v = Te(i);
|
|
14464
|
+
v.current = i;
|
|
14465
14465
|
const D = pe(() => {
|
|
14466
14466
|
const z = {
|
|
14467
|
-
...
|
|
14467
|
+
...S.components ?? {},
|
|
14468
14468
|
...o ?? {}
|
|
14469
14469
|
}, _ = z.MenuList ?? Jt.MenuList, X = ({
|
|
14470
14470
|
// eslint-disable-next-line react/prop-types
|
|
@@ -14472,9 +14472,9 @@ function zr({
|
|
|
14472
14472
|
...ie
|
|
14473
14473
|
}) => /* @__PURE__ */ ye(_, { ...ie, children: [
|
|
14474
14474
|
J,
|
|
14475
|
-
|
|
14475
|
+
v.current && /* @__PURE__ */ O("div", { className: "pt-4", children: /* @__PURE__ */ O(gl, { onChange: () => {
|
|
14476
14476
|
var oe;
|
|
14477
|
-
return (oe =
|
|
14477
|
+
return (oe = k.current) == null ? void 0 : oe.call(k);
|
|
14478
14478
|
} }) })
|
|
14479
14479
|
] });
|
|
14480
14480
|
return X.displayName = "CustomMenuList", {
|
|
@@ -14483,15 +14483,15 @@ function zr({
|
|
|
14483
14483
|
};
|
|
14484
14484
|
}, [
|
|
14485
14485
|
o,
|
|
14486
|
-
|
|
14486
|
+
S.components
|
|
14487
14487
|
]), B = (z) => {
|
|
14488
14488
|
const _ = He(z);
|
|
14489
14489
|
let X = _;
|
|
14490
|
-
const J =
|
|
14490
|
+
const J = y.map(He), ie = [
|
|
14491
14491
|
_,
|
|
14492
14492
|
...J
|
|
14493
14493
|
];
|
|
14494
|
-
|
|
14494
|
+
x(ie), u.type.endsWith("[]") && (Array.isArray(I) ? X = [
|
|
14495
14495
|
...I.map(He),
|
|
14496
14496
|
_
|
|
14497
14497
|
] : X = [
|
|
@@ -14513,7 +14513,7 @@ function zr({
|
|
|
14513
14513
|
c(void 0);
|
|
14514
14514
|
}, w = {
|
|
14515
14515
|
onCreateOption: u.remoteOptions ? B : void 0
|
|
14516
|
-
}, R = e ? Mm : Yn, T =
|
|
14516
|
+
}, R = e ? Mm : Yn, T = y.map(He);
|
|
14517
14517
|
return /* @__PURE__ */ O(
|
|
14518
14518
|
R,
|
|
14519
14519
|
{
|
|
@@ -14527,15 +14527,15 @@ function zr({
|
|
|
14527
14527
|
getOptionLabel: (z) => He(z).label,
|
|
14528
14528
|
getOptionValue: (z) => String(He(z).value),
|
|
14529
14529
|
onChange: F,
|
|
14530
|
-
classNamePrefix:
|
|
14531
|
-
classNames:
|
|
14532
|
-
theme:
|
|
14530
|
+
classNamePrefix: S.classNamePrefix || "react-select",
|
|
14531
|
+
classNames: S.classNames,
|
|
14532
|
+
theme: S.theme,
|
|
14533
14533
|
...n,
|
|
14534
14534
|
...w,
|
|
14535
14535
|
menuPortalTarget: typeof document < "u" ? document.body : null,
|
|
14536
14536
|
menuPosition: "fixed",
|
|
14537
14537
|
styles: {
|
|
14538
|
-
...
|
|
14538
|
+
...S.styles,
|
|
14539
14539
|
...(n == null ? void 0 : n.styles) ?? {},
|
|
14540
14540
|
container: (z) => ({
|
|
14541
14541
|
...z,
|
|
@@ -14620,19 +14620,19 @@ function Xm({ queryEnabled: e }) {
|
|
|
14620
14620
|
f
|
|
14621
14621
|
] = ce(""), [
|
|
14622
14622
|
p,
|
|
14623
|
-
|
|
14623
|
+
b
|
|
14624
14624
|
] = ce(0), [
|
|
14625
|
-
|
|
14626
|
-
|
|
14625
|
+
y,
|
|
14626
|
+
x
|
|
14627
14627
|
] = ce(void 0), [
|
|
14628
14628
|
I,
|
|
14629
14629
|
P
|
|
14630
14630
|
] = ce(void 0), [
|
|
14631
14631
|
A,
|
|
14632
|
-
|
|
14632
|
+
S
|
|
14633
14633
|
] = ce(!0), [
|
|
14634
|
-
|
|
14635
|
-
|
|
14634
|
+
k,
|
|
14635
|
+
v
|
|
14636
14636
|
] = ce([]), [
|
|
14637
14637
|
// eslint-disable-next-line @typescript-eslint/no-unused-vars
|
|
14638
14638
|
D,
|
|
@@ -14658,7 +14658,7 @@ function Xm({ queryEnabled: e }) {
|
|
|
14658
14658
|
const se = {
|
|
14659
14659
|
externalUserId: n,
|
|
14660
14660
|
page: p,
|
|
14661
|
-
prevContext:
|
|
14661
|
+
prevContext: y,
|
|
14662
14662
|
id: i.key,
|
|
14663
14663
|
propName: s.name,
|
|
14664
14664
|
configuredProps: F,
|
|
@@ -14668,7 +14668,7 @@ function Xm({ queryEnabled: e }) {
|
|
|
14668
14668
|
}, [
|
|
14669
14669
|
n,
|
|
14670
14670
|
p,
|
|
14671
|
-
|
|
14671
|
+
y,
|
|
14672
14672
|
i.key,
|
|
14673
14673
|
s.name,
|
|
14674
14674
|
s.useQuery,
|
|
@@ -14681,7 +14681,7 @@ function Xm({ queryEnabled: e }) {
|
|
|
14681
14681
|
z,
|
|
14682
14682
|
_
|
|
14683
14683
|
] = ce(), X = () => {
|
|
14684
|
-
|
|
14684
|
+
b((se) => se + 1), x(I);
|
|
14685
14685
|
}, J = JSON.stringify(T), ie = JSON.stringify(w), oe = Te(), G = Te(), g = pe(() => {
|
|
14686
14686
|
const {
|
|
14687
14687
|
page: se,
|
|
@@ -14764,7 +14764,7 @@ function Xm({ queryEnabled: e }) {
|
|
|
14764
14764
|
Pe.has(Se) || (Pe.add(Se), xe = !0);
|
|
14765
14765
|
}
|
|
14766
14766
|
return Pe;
|
|
14767
|
-
}),
|
|
14767
|
+
}), v((Ae) => {
|
|
14768
14768
|
const Ne = se ? [] : Ae, Pe = [], Me = /* @__PURE__ */ new Set();
|
|
14769
14769
|
if (!se)
|
|
14770
14770
|
for (const Se of Ne) {
|
|
@@ -14779,7 +14779,7 @@ function Xm({ queryEnabled: e }) {
|
|
|
14779
14779
|
...Ne,
|
|
14780
14780
|
...Pe
|
|
14781
14781
|
] : Ae;
|
|
14782
|
-
}), xe ||
|
|
14782
|
+
}), xe || S(!1);
|
|
14783
14783
|
}, [
|
|
14784
14784
|
m,
|
|
14785
14785
|
p,
|
|
@@ -14790,7 +14790,7 @@ function Xm({ queryEnabled: e }) {
|
|
|
14790
14790
|
oe.current = g;
|
|
14791
14791
|
return;
|
|
14792
14792
|
}
|
|
14793
|
-
oe.current !== g && (
|
|
14793
|
+
oe.current !== g && (b(0), x(void 0), P(void 0), S(!0), v([]), B(/* @__PURE__ */ new Set())), oe.current = g;
|
|
14794
14794
|
}, [
|
|
14795
14795
|
g
|
|
14796
14796
|
]), be(() => {
|
|
@@ -14813,7 +14813,7 @@ function Xm({ queryEnabled: e }) {
|
|
|
14813
14813
|
isCreatable: !0,
|
|
14814
14814
|
showLoadMoreButton: Be,
|
|
14815
14815
|
onLoadMore: X,
|
|
14816
|
-
options:
|
|
14816
|
+
options: k.map(He),
|
|
14817
14817
|
selectProps: {
|
|
14818
14818
|
isLoading: de,
|
|
14819
14819
|
placeholder: fe,
|
|
@@ -14935,8 +14935,8 @@ function Ym({
|
|
|
14935
14935
|
enabled: !!s,
|
|
14936
14936
|
suspense: !!s
|
|
14937
14937
|
}
|
|
14938
|
-
}), d = `pd${i}${e.name}`, f = Re((
|
|
14939
|
-
a(t,
|
|
14938
|
+
}), d = `pd${i}${e.name}`, f = Re((b) => {
|
|
14939
|
+
a(t, b);
|
|
14940
14940
|
}, [
|
|
14941
14941
|
t,
|
|
14942
14942
|
e.name,
|
|
@@ -15032,11 +15032,11 @@ function qm() {
|
|
|
15032
15032
|
hideOptionalProps: f,
|
|
15033
15033
|
onSubmit: p
|
|
15034
15034
|
} = a, [
|
|
15035
|
-
|
|
15036
|
-
|
|
15035
|
+
b,
|
|
15036
|
+
y
|
|
15037
15037
|
] = ce([]);
|
|
15038
15038
|
be(() => {
|
|
15039
|
-
s ?
|
|
15039
|
+
s ? y([]) : u && u.length && y(u.map((w) => ({
|
|
15040
15040
|
type: "alert",
|
|
15041
15041
|
alertType: "error",
|
|
15042
15042
|
content: `# ${w.name}
|
|
@@ -15048,18 +15048,18 @@ ${w.message}`,
|
|
|
15048
15048
|
s
|
|
15049
15049
|
]);
|
|
15050
15050
|
const {
|
|
15051
|
-
getComponents:
|
|
15051
|
+
getComponents: x,
|
|
15052
15052
|
getProps: I,
|
|
15053
15053
|
theme: P
|
|
15054
|
-
} = Le(), { OptionalFieldButton: A } =
|
|
15054
|
+
} = Le(), { OptionalFieldButton: A } = x(), S = {
|
|
15055
15055
|
display: "flex",
|
|
15056
15056
|
flexDirection: "column",
|
|
15057
15057
|
gap: "1.5rem"
|
|
15058
|
-
},
|
|
15058
|
+
}, k = {
|
|
15059
15059
|
display: "flex",
|
|
15060
15060
|
flexWrap: "wrap",
|
|
15061
15061
|
gap: "0.375rem"
|
|
15062
|
-
},
|
|
15062
|
+
}, v = {
|
|
15063
15063
|
fontWeight: 600,
|
|
15064
15064
|
textTransform: "capitalize",
|
|
15065
15065
|
color: P.colors.neutral60,
|
|
@@ -15098,15 +15098,15 @@ ${w.message}`,
|
|
|
15098
15098
|
}, children: [
|
|
15099
15099
|
"Error: ",
|
|
15100
15100
|
w && typeof w == "object" && "message" in w && typeof w.message == "string" ? w.message : "Unknown"
|
|
15101
|
-
] }), children: /* @__PURE__ */ O(hu, { fallback: /* @__PURE__ */ O("p", { children: "Loading form..." }), children: /* @__PURE__ */ ye("form", { ...I("componentForm",
|
|
15101
|
+
] }), children: /* @__PURE__ */ O(hu, { fallback: /* @__PURE__ */ O("p", { children: "Loading form..." }), children: /* @__PURE__ */ ye("form", { ...I("componentForm", S, a), onSubmit: D, children: [
|
|
15102
15102
|
B.map(([
|
|
15103
15103
|
w,
|
|
15104
15104
|
R
|
|
15105
15105
|
]) => ut(w, "alert") ? /* @__PURE__ */ O(Rr, { prop: w }, w.name) : /* @__PURE__ */ O(Ym, { prop: w, idx: R }, w.name)),
|
|
15106
15106
|
n && /* @__PURE__ */ O("p", { children: "Loading dynamic props..." }),
|
|
15107
15107
|
!f && F.length ? /* @__PURE__ */ ye("div", { children: [
|
|
15108
|
-
/* @__PURE__ */ O("div", { ...I("heading",
|
|
15109
|
-
/* @__PURE__ */ O("div", { ...I("optionalFields",
|
|
15108
|
+
/* @__PURE__ */ O("div", { ...I("heading", v, a), children: "Optional Props" }),
|
|
15109
|
+
/* @__PURE__ */ O("div", { ...I("optionalFields", k, a), children: F.map(([
|
|
15110
15110
|
w,
|
|
15111
15111
|
R
|
|
15112
15112
|
]) => /* @__PURE__ */ O(
|
|
@@ -15119,7 +15119,7 @@ ${w.message}`,
|
|
|
15119
15119
|
w.name
|
|
15120
15120
|
)) })
|
|
15121
15121
|
] }) : null,
|
|
15122
|
-
d && (
|
|
15122
|
+
d && (b == null ? void 0 : b.map((w, R) => /* @__PURE__ */ O(Rr, { prop: w }, R))),
|
|
15123
15123
|
p && /* @__PURE__ */ O(_m, { form: e })
|
|
15124
15124
|
] }) }) });
|
|
15125
15125
|
}
|
|
@@ -15211,33 +15211,33 @@ function bl() {
|
|
|
15211
15211
|
] = ce(!1), [
|
|
15212
15212
|
a,
|
|
15213
15213
|
l
|
|
15214
|
-
] = ce(), u = Te(null), s = Te(), c = Km(), d = Re((p,
|
|
15214
|
+
] = ce(), u = Te(null), s = Te(), c = Km(), d = Re((p, b) => {
|
|
15215
15215
|
var P;
|
|
15216
|
-
const
|
|
15216
|
+
const y = Xo(p), x = (((P = s.current) == null ? void 0 : P.version) ?? 0) + 1;
|
|
15217
15217
|
s.current = {
|
|
15218
|
-
version:
|
|
15219
|
-
}, u.current =
|
|
15220
|
-
const I =
|
|
15221
|
-
t(I), i(
|
|
15218
|
+
version: x
|
|
15219
|
+
}, u.current = y;
|
|
15220
|
+
const I = y.data ? y.data.slice() : [];
|
|
15221
|
+
t(I), i(y.hasNextPage()), o(!1), l(void 0);
|
|
15222
15222
|
}, []), f = Re(async () => {
|
|
15223
|
-
var
|
|
15224
|
-
const p = s.current,
|
|
15225
|
-
if (!p || !
|
|
15223
|
+
var x, I, P;
|
|
15224
|
+
const p = s.current, b = u.current;
|
|
15225
|
+
if (!p || !b || !n || r)
|
|
15226
15226
|
return;
|
|
15227
|
-
const
|
|
15227
|
+
const y = p.version;
|
|
15228
15228
|
o(!0);
|
|
15229
15229
|
try {
|
|
15230
|
-
const A = await
|
|
15231
|
-
if (!c.current ||
|
|
15230
|
+
const A = await b.getNextPage();
|
|
15231
|
+
if (!c.current || y !== (((x = s.current) == null ? void 0 : x.version) ?? 0))
|
|
15232
15232
|
return;
|
|
15233
|
-
const
|
|
15234
|
-
u.current =
|
|
15233
|
+
const S = Xo(A);
|
|
15234
|
+
u.current = S, t((k) => !S.data || S.data.length === 0 ? k : k.concat(S.data)), i(S.hasNextPage()), l(void 0);
|
|
15235
15235
|
} catch (A) {
|
|
15236
|
-
if (!c.current ||
|
|
15236
|
+
if (!c.current || y !== (((I = s.current) == null ? void 0 : I.version) ?? 0))
|
|
15237
15237
|
return;
|
|
15238
15238
|
l(A instanceof Error ? A : new Error(String(A)));
|
|
15239
15239
|
} finally {
|
|
15240
|
-
c.current &&
|
|
15240
|
+
c.current && y === (((P = s.current) == null ? void 0 : P.version) ?? 0) && o(!1);
|
|
15241
15241
|
}
|
|
15242
15242
|
}, [
|
|
15243
15243
|
n,
|
|
@@ -15319,41 +15319,41 @@ function db({
|
|
|
15319
15319
|
q: o
|
|
15320
15320
|
}), {
|
|
15321
15321
|
Option: p,
|
|
15322
|
-
SingleValue:
|
|
15323
|
-
MenuList:
|
|
15322
|
+
SingleValue: b,
|
|
15323
|
+
MenuList: y
|
|
15324
15324
|
} = Jt, {
|
|
15325
|
-
select:
|
|
15325
|
+
select: x,
|
|
15326
15326
|
theme: I
|
|
15327
15327
|
} = Le(), P = Te(s);
|
|
15328
15328
|
P.current = s;
|
|
15329
15329
|
const A = pe(() => (f == null ? void 0 : f.find((w) => w.nameSlug === (e == null ? void 0 : e.nameSlug))) || (e != null && e.nameSlug ? e : null), [
|
|
15330
15330
|
f,
|
|
15331
15331
|
e == null ? void 0 : e.nameSlug
|
|
15332
|
-
]),
|
|
15332
|
+
]), S = Re(() => {
|
|
15333
15333
|
c && !s && d();
|
|
15334
15334
|
}, [
|
|
15335
15335
|
c,
|
|
15336
15336
|
s,
|
|
15337
15337
|
d
|
|
15338
|
-
]),
|
|
15338
|
+
]), k = pe(() => jn(I.colors), [
|
|
15339
15339
|
I.colors
|
|
15340
15340
|
]), D = {
|
|
15341
15341
|
styles: pe(() => _n({
|
|
15342
15342
|
colors: {
|
|
15343
|
-
surface:
|
|
15344
|
-
border:
|
|
15345
|
-
text:
|
|
15346
|
-
textStrong:
|
|
15347
|
-
hoverBg:
|
|
15348
|
-
selectedBg:
|
|
15349
|
-
selectedHoverBg:
|
|
15343
|
+
surface: k.surface,
|
|
15344
|
+
border: k.border,
|
|
15345
|
+
text: k.text,
|
|
15346
|
+
textStrong: k.textStrong,
|
|
15347
|
+
hoverBg: k.hoverBg,
|
|
15348
|
+
selectedBg: k.selectedBg,
|
|
15349
|
+
selectedHoverBg: k.selectedHoverBg
|
|
15350
15350
|
},
|
|
15351
15351
|
boxShadow: I.boxShadow
|
|
15352
15352
|
}), [
|
|
15353
|
-
|
|
15353
|
+
k,
|
|
15354
15354
|
I.boxShadow
|
|
15355
15355
|
])
|
|
15356
|
-
}, B =
|
|
15356
|
+
}, B = x.getProps("selectApp", D), F = pe(() => ({
|
|
15357
15357
|
Option: (w) => /* @__PURE__ */ O(p, { ...w, children: /* @__PURE__ */ ye("div", { style: {
|
|
15358
15358
|
display: "flex",
|
|
15359
15359
|
gap: 10
|
|
@@ -15365,7 +15365,7 @@ function db({
|
|
|
15365
15365
|
style: {
|
|
15366
15366
|
height: 24,
|
|
15367
15367
|
width: 24,
|
|
15368
|
-
backgroundColor:
|
|
15368
|
+
backgroundColor: k.appIconBg,
|
|
15369
15369
|
borderRadius: 6,
|
|
15370
15370
|
padding: 2
|
|
15371
15371
|
},
|
|
@@ -15376,7 +15376,7 @@ function db({
|
|
|
15376
15376
|
whiteSpace: "nowrap"
|
|
15377
15377
|
}, children: w.data.name })
|
|
15378
15378
|
] }) }),
|
|
15379
|
-
SingleValue: (w) => /* @__PURE__ */ O(
|
|
15379
|
+
SingleValue: (w) => /* @__PURE__ */ O(b, { ...w, children: /* @__PURE__ */ ye("div", { style: {
|
|
15380
15380
|
display: "flex",
|
|
15381
15381
|
gap: 10,
|
|
15382
15382
|
alignItems: "center"
|
|
@@ -15388,7 +15388,7 @@ function db({
|
|
|
15388
15388
|
style: {
|
|
15389
15389
|
height: 24,
|
|
15390
15390
|
width: 24,
|
|
15391
|
-
backgroundColor:
|
|
15391
|
+
backgroundColor: k.appIconBg,
|
|
15392
15392
|
borderRadius: 6,
|
|
15393
15393
|
padding: 2
|
|
15394
15394
|
},
|
|
@@ -15399,7 +15399,7 @@ function db({
|
|
|
15399
15399
|
whiteSpace: "nowrap"
|
|
15400
15400
|
}, children: w.data.name })
|
|
15401
15401
|
] }) }),
|
|
15402
|
-
MenuList: (w) => /* @__PURE__ */ ye(
|
|
15402
|
+
MenuList: (w) => /* @__PURE__ */ ye(y, { ...w, children: [
|
|
15403
15403
|
w.children,
|
|
15404
15404
|
P.current && /* @__PURE__ */ O("div", { style: {
|
|
15405
15405
|
padding: "8px 12px",
|
|
@@ -15411,9 +15411,9 @@ function db({
|
|
|
15411
15411
|
IndicatorSeparator: () => null
|
|
15412
15412
|
}), [
|
|
15413
15413
|
p,
|
|
15414
|
-
y,
|
|
15415
15414
|
b,
|
|
15416
|
-
|
|
15415
|
+
y,
|
|
15416
|
+
k.appIconBg
|
|
15417
15417
|
]);
|
|
15418
15418
|
return /* @__PURE__ */ O(
|
|
15419
15419
|
Yn,
|
|
@@ -15434,7 +15434,7 @@ function db({
|
|
|
15434
15434
|
onInputChange: (w, { action: R }) => {
|
|
15435
15435
|
R === "input-change" && r(w);
|
|
15436
15436
|
},
|
|
15437
|
-
onMenuScrollToBottom:
|
|
15437
|
+
onMenuScrollToBottom: S,
|
|
15438
15438
|
isLoading: u,
|
|
15439
15439
|
menuPortalTarget: typeof document < "u" ? document.body : null,
|
|
15440
15440
|
menuPosition: "fixed",
|
|
@@ -15486,53 +15486,55 @@ function pb({
|
|
|
15486
15486
|
app: e,
|
|
15487
15487
|
componentType: t,
|
|
15488
15488
|
value: n,
|
|
15489
|
-
onChange: i
|
|
15489
|
+
onChange: i,
|
|
15490
|
+
componentsOptions: r
|
|
15490
15491
|
}) {
|
|
15491
|
-
const
|
|
15492
|
-
isLoading:
|
|
15493
|
-
isLoadingMore:
|
|
15494
|
-
hasMore:
|
|
15495
|
-
loadMore:
|
|
15496
|
-
components:
|
|
15492
|
+
const o = Hr(), {
|
|
15493
|
+
isLoading: a,
|
|
15494
|
+
isLoadingMore: l,
|
|
15495
|
+
hasMore: u,
|
|
15496
|
+
loadMore: s,
|
|
15497
|
+
components: c
|
|
15497
15498
|
} = tb({
|
|
15499
|
+
...r ?? {},
|
|
15498
15500
|
app: e == null ? void 0 : e.nameSlug,
|
|
15499
15501
|
componentType: t
|
|
15500
|
-
}), { MenuList:
|
|
15501
|
-
select:
|
|
15502
|
-
theme:
|
|
15503
|
-
} = Le(),
|
|
15504
|
-
|
|
15502
|
+
}), { MenuList: d } = Jt, {
|
|
15503
|
+
select: f,
|
|
15504
|
+
theme: p
|
|
15505
|
+
} = Le(), b = pe(() => jn(p.colors), [
|
|
15506
|
+
p.colors
|
|
15505
15507
|
]), y = pe(() => _n({
|
|
15506
15508
|
colors: {
|
|
15507
|
-
surface:
|
|
15508
|
-
border:
|
|
15509
|
-
text:
|
|
15510
|
-
textStrong:
|
|
15511
|
-
hoverBg:
|
|
15512
|
-
selectedBg:
|
|
15513
|
-
selectedHoverBg:
|
|
15509
|
+
surface: b.surface,
|
|
15510
|
+
border: b.border,
|
|
15511
|
+
text: b.text,
|
|
15512
|
+
textStrong: b.textStrong,
|
|
15513
|
+
hoverBg: b.hoverBg,
|
|
15514
|
+
selectedBg: b.selectedBg,
|
|
15515
|
+
selectedHoverBg: b.selectedHoverBg
|
|
15514
15516
|
},
|
|
15515
|
-
boxShadow:
|
|
15517
|
+
boxShadow: p.boxShadow
|
|
15516
15518
|
}), [
|
|
15517
|
-
|
|
15518
|
-
|
|
15519
|
-
]),
|
|
15520
|
-
|
|
15521
|
-
const
|
|
15522
|
-
|
|
15519
|
+
b,
|
|
15520
|
+
p.boxShadow
|
|
15521
|
+
]), x = Te(l);
|
|
15522
|
+
x.current = l;
|
|
15523
|
+
const I = pe(() => (c == null ? void 0 : c.find((v) => v.key === (n == null ? void 0 : n.key))) || null, [
|
|
15524
|
+
c,
|
|
15523
15525
|
n == null ? void 0 : n.key
|
|
15524
|
-
]),
|
|
15525
|
-
|
|
15526
|
+
]), P = Re(() => {
|
|
15527
|
+
u && !l && s();
|
|
15526
15528
|
}, [
|
|
15529
|
+
u,
|
|
15527
15530
|
l,
|
|
15528
|
-
|
|
15529
|
-
|
|
15530
|
-
]), P = {
|
|
15531
|
+
s
|
|
15532
|
+
]), A = {
|
|
15531
15533
|
styles: y
|
|
15532
|
-
},
|
|
15533
|
-
MenuList: (
|
|
15534
|
-
|
|
15535
|
-
|
|
15534
|
+
}, S = f.getProps("selectComponent", A), k = pe(() => ({
|
|
15535
|
+
MenuList: (v) => /* @__PURE__ */ ye(d, { ...v, children: [
|
|
15536
|
+
v.children,
|
|
15537
|
+
x.current && /* @__PURE__ */ ye("div", { style: {
|
|
15536
15538
|
padding: "8px 12px",
|
|
15537
15539
|
textAlign: "center",
|
|
15538
15540
|
color: "#666",
|
|
@@ -15546,32 +15548,32 @@ function pb({
|
|
|
15546
15548
|
IndicatorSeparator: () => null
|
|
15547
15549
|
}), [
|
|
15548
15550
|
t,
|
|
15549
|
-
|
|
15551
|
+
d
|
|
15550
15552
|
]);
|
|
15551
15553
|
return /* @__PURE__ */ O(
|
|
15552
15554
|
Yn,
|
|
15553
15555
|
{
|
|
15554
|
-
instanceId:
|
|
15556
|
+
instanceId: o,
|
|
15555
15557
|
className: "react-select-container text-sm",
|
|
15556
|
-
...
|
|
15558
|
+
...S,
|
|
15557
15559
|
classNamePrefix: "react-select",
|
|
15558
|
-
options:
|
|
15559
|
-
getOptionLabel: (
|
|
15560
|
-
getOptionValue: (
|
|
15561
|
-
value:
|
|
15562
|
-
onChange: (
|
|
15563
|
-
onMenuScrollToBottom:
|
|
15564
|
-
isLoading:
|
|
15560
|
+
options: c,
|
|
15561
|
+
getOptionLabel: (v) => v.name || v.key,
|
|
15562
|
+
getOptionValue: (v) => v.key,
|
|
15563
|
+
value: I,
|
|
15564
|
+
onChange: (v) => i == null ? void 0 : i(v || void 0),
|
|
15565
|
+
onMenuScrollToBottom: P,
|
|
15566
|
+
isLoading: a,
|
|
15565
15567
|
components: {
|
|
15566
|
-
...
|
|
15567
|
-
...
|
|
15568
|
+
...S.components,
|
|
15569
|
+
...k
|
|
15568
15570
|
},
|
|
15569
15571
|
menuPortalTarget: typeof document < "u" ? document.body : null,
|
|
15570
15572
|
menuPosition: "fixed",
|
|
15571
15573
|
styles: {
|
|
15572
|
-
...
|
|
15573
|
-
menuPortal: (
|
|
15574
|
-
...
|
|
15574
|
+
...S.styles ?? {},
|
|
15575
|
+
menuPortal: (v) => ({
|
|
15576
|
+
...v,
|
|
15575
15577
|
zIndex: 99999
|
|
15576
15578
|
})
|
|
15577
15579
|
}
|