brsh 2.2.1 → 2.4.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/CHANGELOG.md +14 -0
- package/POSIX-CHECKLIST.md +158 -0
- package/bin/brsh-shell.js +94 -7
- package/dist/shell.es.js +383 -271
- package/dist/shell.es.js.map +1 -1
- package/dist/shell.min.js +6 -5
- package/dist/shell.min.js.map +1 -1
- package/dist/terminal.es.js +342 -230
- package/dist/terminal.es.js.map +1 -1
- package/dist/terminal.min.js +8 -7
- package/dist/terminal.min.js.map +1 -1
- package/index.js +57 -2
- package/lib/ScriptCommand.js +15 -1
- package/lib/local/dot.js +9 -0
- package/lib/local/index.js +3 -1
- package/lib/local/set.js +102 -0
- package/package.json +1 -1
- package/test/local-commands.test.js +64 -0
- package/test/shell.test.js +50 -0
package/dist/terminal.es.js
CHANGED
|
@@ -976,6 +976,7 @@ var g, _, v, y, b, x, S, C, w, T, E = e((() => {
|
|
|
976
976
|
let n = this._parseLines(t.slice(1));
|
|
977
977
|
return this._executeNodes(n).catch((e) => {
|
|
978
978
|
if (e && e.__type === "return") this.sandbox.lastCode = e.code;
|
|
979
|
+
else if (e && e.__type === "errexit") this.sandbox.lastCode = e.code;
|
|
979
980
|
else return Promise.reject(e);
|
|
980
981
|
}).then(() => {
|
|
981
982
|
this.exitCode = this.sandbox.lastCode, this.source && this.context.source(this.sandbox.context);
|
|
@@ -1135,7 +1136,12 @@ var g, _, v, y, b, x, S, C, w, T, E = e((() => {
|
|
|
1135
1136
|
code: n
|
|
1136
1137
|
});
|
|
1137
1138
|
}
|
|
1138
|
-
return this.sandbox.onCommand(e.line, !1)
|
|
1139
|
+
return (this.sandbox.context.getVar("-") || "").includes("x") && (this.stdErr = `+ ${e.line.trim()}`, this.flush()), this.sandbox.onCommand(e.line, !1).then(() => {
|
|
1140
|
+
if ((this.sandbox.context.getVar("-") || "").includes("e") && this.sandbox.lastCode !== 0) return Promise.reject({
|
|
1141
|
+
__type: "errexit",
|
|
1142
|
+
code: this.sandbox.lastCode
|
|
1143
|
+
});
|
|
1144
|
+
});
|
|
1139
1145
|
}
|
|
1140
1146
|
return e.type === "if" ? this._executeIf(e) : e.type === "while" ? this._executeWhile(e) : e.type === "for" ? this._executeFor(e) : e.type === "case" ? this._executeCase(e) : Promise.resolve();
|
|
1141
1147
|
}
|
|
@@ -4035,6 +4041,70 @@ var V, re, H, U, W, ie, G, ae, oe, se, K = e((() => {
|
|
|
4035
4041
|
}
|
|
4036
4042
|
};
|
|
4037
4043
|
})), Ie = /* @__PURE__ */ t(((e, t) => {
|
|
4044
|
+
var n = F(), r = {
|
|
4045
|
+
errexit: "e",
|
|
4046
|
+
xtrace: "x",
|
|
4047
|
+
nounset: "u",
|
|
4048
|
+
noexec: "n",
|
|
4049
|
+
allexport: "a"
|
|
4050
|
+
};
|
|
4051
|
+
t.exports = class extends n {
|
|
4052
|
+
static get name() {
|
|
4053
|
+
return "set";
|
|
4054
|
+
}
|
|
4055
|
+
run() {
|
|
4056
|
+
let e = this.arguments;
|
|
4057
|
+
if (e.length === 0) {
|
|
4058
|
+
let e = this.context.vars;
|
|
4059
|
+
return Object.keys(e).sort().forEach((t) => {
|
|
4060
|
+
this.stdOut = `${t}=${e[t]}`;
|
|
4061
|
+
}), Promise.resolve();
|
|
4062
|
+
}
|
|
4063
|
+
let t = 0;
|
|
4064
|
+
for (; t < e.length;) {
|
|
4065
|
+
let n = e[t];
|
|
4066
|
+
if (n === "--") {
|
|
4067
|
+
let n = e.slice(t + 1), r = 1;
|
|
4068
|
+
for (; this.context.getVar(String(r));) this.context.unsetVar(String(r)), r++;
|
|
4069
|
+
return n.forEach((e, t) => this.context.setVar(String(t + 1), e)), this.context.setVar("#", String(n.length)), Promise.resolve();
|
|
4070
|
+
}
|
|
4071
|
+
if ((n.startsWith("-") || n.startsWith("+")) && n.length > 1 && n[1] !== "-") {
|
|
4072
|
+
let i = n[0] === "-", a = n.slice(1);
|
|
4073
|
+
if (a === "o") {
|
|
4074
|
+
t++;
|
|
4075
|
+
let n = e[t];
|
|
4076
|
+
if (n === void 0) {
|
|
4077
|
+
Object.entries(r).forEach(([e, t]) => {
|
|
4078
|
+
let n = this.context.getVar("-") || "";
|
|
4079
|
+
this.stdOut = `${e.padEnd(15)} ${n.includes(t) ? "on" : "off"}`;
|
|
4080
|
+
}), t++;
|
|
4081
|
+
continue;
|
|
4082
|
+
}
|
|
4083
|
+
let a = r[n];
|
|
4084
|
+
a ? this._setFlag(a, i) : this.stdErr = `set: ${n}: invalid option name`, t++;
|
|
4085
|
+
continue;
|
|
4086
|
+
}
|
|
4087
|
+
for (let e of a) this._setFlag(e, i);
|
|
4088
|
+
t++;
|
|
4089
|
+
continue;
|
|
4090
|
+
}
|
|
4091
|
+
t++;
|
|
4092
|
+
}
|
|
4093
|
+
return Promise.resolve();
|
|
4094
|
+
}
|
|
4095
|
+
_setFlag(e, t) {
|
|
4096
|
+
let n = this.context.getVar("-") || "";
|
|
4097
|
+
t ? n.includes(e) || this.context.setVar("-", n + e) : this.context.setVar("-", n.split("").filter((t) => t !== e).join(""));
|
|
4098
|
+
}
|
|
4099
|
+
};
|
|
4100
|
+
})), Le = /* @__PURE__ */ t(((e, t) => {
|
|
4101
|
+
var n = Ae();
|
|
4102
|
+
t.exports = class extends n {
|
|
4103
|
+
static get name() {
|
|
4104
|
+
return ".";
|
|
4105
|
+
}
|
|
4106
|
+
};
|
|
4107
|
+
})), Re = /* @__PURE__ */ t(((e, t) => {
|
|
4038
4108
|
t.exports = [
|
|
4039
4109
|
be(),
|
|
4040
4110
|
xe(),
|
|
@@ -4051,56 +4121,58 @@ var V, re, H, U, W, ie, G, ae, oe, se, K = e((() => {
|
|
|
4051
4121
|
Me(),
|
|
4052
4122
|
Ne(),
|
|
4053
4123
|
Pe(),
|
|
4054
|
-
Fe()
|
|
4124
|
+
Fe(),
|
|
4125
|
+
Ie(),
|
|
4126
|
+
Le()
|
|
4055
4127
|
];
|
|
4056
|
-
})),
|
|
4128
|
+
})), ze = /* @__PURE__ */ t(((e, t) => {
|
|
4057
4129
|
t.exports = Object;
|
|
4058
|
-
})),
|
|
4130
|
+
})), Be = /* @__PURE__ */ t(((e, t) => {
|
|
4059
4131
|
t.exports = Error;
|
|
4060
|
-
})),
|
|
4132
|
+
})), Ve = /* @__PURE__ */ t(((e, t) => {
|
|
4061
4133
|
t.exports = EvalError;
|
|
4062
|
-
})),
|
|
4134
|
+
})), He = /* @__PURE__ */ t(((e, t) => {
|
|
4063
4135
|
t.exports = RangeError;
|
|
4064
|
-
})),
|
|
4136
|
+
})), Ue = /* @__PURE__ */ t(((e, t) => {
|
|
4065
4137
|
t.exports = ReferenceError;
|
|
4066
|
-
})),
|
|
4138
|
+
})), We = /* @__PURE__ */ t(((e, t) => {
|
|
4067
4139
|
t.exports = SyntaxError;
|
|
4068
4140
|
})), X = /* @__PURE__ */ t(((e, t) => {
|
|
4069
4141
|
t.exports = TypeError;
|
|
4070
|
-
})),
|
|
4142
|
+
})), Ge = /* @__PURE__ */ t(((e, t) => {
|
|
4071
4143
|
t.exports = URIError;
|
|
4072
|
-
})),
|
|
4144
|
+
})), Ke = /* @__PURE__ */ t(((e, t) => {
|
|
4073
4145
|
t.exports = Math.abs;
|
|
4074
|
-
})),
|
|
4146
|
+
})), qe = /* @__PURE__ */ t(((e, t) => {
|
|
4075
4147
|
t.exports = Math.floor;
|
|
4076
|
-
})),
|
|
4148
|
+
})), Je = /* @__PURE__ */ t(((e, t) => {
|
|
4077
4149
|
t.exports = Math.max;
|
|
4078
|
-
})),
|
|
4150
|
+
})), Ye = /* @__PURE__ */ t(((e, t) => {
|
|
4079
4151
|
t.exports = Math.min;
|
|
4080
|
-
})),
|
|
4152
|
+
})), Xe = /* @__PURE__ */ t(((e, t) => {
|
|
4081
4153
|
t.exports = Math.pow;
|
|
4082
|
-
})),
|
|
4154
|
+
})), Ze = /* @__PURE__ */ t(((e, t) => {
|
|
4083
4155
|
t.exports = Math.round;
|
|
4084
|
-
})),
|
|
4156
|
+
})), Qe = /* @__PURE__ */ t(((e, t) => {
|
|
4085
4157
|
t.exports = Number.isNaN || function(e) {
|
|
4086
4158
|
return e !== e;
|
|
4087
4159
|
};
|
|
4088
|
-
})),
|
|
4089
|
-
var n =
|
|
4160
|
+
})), $e = /* @__PURE__ */ t(((e, t) => {
|
|
4161
|
+
var n = Qe();
|
|
4090
4162
|
t.exports = function(e) {
|
|
4091
4163
|
return n(e) || e === 0 ? e : e < 0 ? -1 : 1;
|
|
4092
4164
|
};
|
|
4093
|
-
})),
|
|
4165
|
+
})), et = /* @__PURE__ */ t(((e, t) => {
|
|
4094
4166
|
t.exports = Object.getOwnPropertyDescriptor;
|
|
4095
|
-
})),
|
|
4096
|
-
var n =
|
|
4167
|
+
})), tt = /* @__PURE__ */ t(((e, t) => {
|
|
4168
|
+
var n = et();
|
|
4097
4169
|
if (n) try {
|
|
4098
4170
|
n([], "length");
|
|
4099
4171
|
} catch {
|
|
4100
4172
|
n = null;
|
|
4101
4173
|
}
|
|
4102
4174
|
t.exports = n;
|
|
4103
|
-
})),
|
|
4175
|
+
})), nt = /* @__PURE__ */ t(((e, t) => {
|
|
4104
4176
|
var n = Object.defineProperty || !1;
|
|
4105
4177
|
if (n) try {
|
|
4106
4178
|
n({}, "a", { value: 1 });
|
|
@@ -4108,7 +4180,7 @@ var V, re, H, U, W, ie, G, ae, oe, se, K = e((() => {
|
|
|
4108
4180
|
n = !1;
|
|
4109
4181
|
}
|
|
4110
4182
|
t.exports = n;
|
|
4111
|
-
})),
|
|
4183
|
+
})), rt = /* @__PURE__ */ t(((e, t) => {
|
|
4112
4184
|
t.exports = function() {
|
|
4113
4185
|
if (typeof Symbol != "function" || typeof Object.getOwnPropertySymbols != "function") return !1;
|
|
4114
4186
|
if (typeof Symbol.iterator == "symbol") return !0;
|
|
@@ -4125,16 +4197,16 @@ var V, re, H, U, W, ie, G, ae, oe, se, K = e((() => {
|
|
|
4125
4197
|
}
|
|
4126
4198
|
return !0;
|
|
4127
4199
|
};
|
|
4128
|
-
})),
|
|
4129
|
-
var n = typeof Symbol < "u" && Symbol, r =
|
|
4200
|
+
})), it = /* @__PURE__ */ t(((e, t) => {
|
|
4201
|
+
var n = typeof Symbol < "u" && Symbol, r = rt();
|
|
4130
4202
|
t.exports = function() {
|
|
4131
4203
|
return typeof n != "function" || typeof Symbol != "function" || typeof n("foo") != "symbol" || typeof Symbol("bar") != "symbol" ? !1 : r();
|
|
4132
4204
|
};
|
|
4133
|
-
})), rt = /* @__PURE__ */ t(((e, t) => {
|
|
4134
|
-
t.exports = typeof Reflect < "u" && Reflect.getPrototypeOf || null;
|
|
4135
|
-
})), it = /* @__PURE__ */ t(((e, t) => {
|
|
4136
|
-
t.exports = Le().getPrototypeOf || null;
|
|
4137
4205
|
})), at = /* @__PURE__ */ t(((e, t) => {
|
|
4206
|
+
t.exports = typeof Reflect < "u" && Reflect.getPrototypeOf || null;
|
|
4207
|
+
})), ot = /* @__PURE__ */ t(((e, t) => {
|
|
4208
|
+
t.exports = ze().getPrototypeOf || null;
|
|
4209
|
+
})), st = /* @__PURE__ */ t(((e, t) => {
|
|
4138
4210
|
var n = "Function.prototype.bind called on incompatible ", r = Object.prototype.toString, i = Math.max, a = "[object Function]", o = function(e, t) {
|
|
4139
4211
|
for (var n = [], r = 0; r < e.length; r += 1) n[r] = e[r];
|
|
4140
4212
|
for (var i = 0; i < t.length; i += 1) n[i + e.length] = t[i];
|
|
@@ -4162,26 +4234,26 @@ var V, re, H, U, W, ie, G, ae, oe, se, K = e((() => {
|
|
|
4162
4234
|
}
|
|
4163
4235
|
return u;
|
|
4164
4236
|
};
|
|
4165
|
-
})), ot = /* @__PURE__ */ t(((e, t) => {
|
|
4166
|
-
var n = at();
|
|
4167
|
-
t.exports = Function.prototype.bind || n;
|
|
4168
|
-
})), st = /* @__PURE__ */ t(((e, t) => {
|
|
4169
|
-
t.exports = Function.prototype.call;
|
|
4170
4237
|
})), ct = /* @__PURE__ */ t(((e, t) => {
|
|
4171
|
-
|
|
4238
|
+
var n = st();
|
|
4239
|
+
t.exports = Function.prototype.bind || n;
|
|
4172
4240
|
})), lt = /* @__PURE__ */ t(((e, t) => {
|
|
4173
|
-
t.exports =
|
|
4241
|
+
t.exports = Function.prototype.call;
|
|
4174
4242
|
})), ut = /* @__PURE__ */ t(((e, t) => {
|
|
4175
|
-
|
|
4176
|
-
t.exports = lt() || n.call(i, r);
|
|
4243
|
+
t.exports = Function.prototype.apply;
|
|
4177
4244
|
})), dt = /* @__PURE__ */ t(((e, t) => {
|
|
4178
|
-
|
|
4245
|
+
t.exports = typeof Reflect < "u" && Reflect && Reflect.apply;
|
|
4246
|
+
})), ft = /* @__PURE__ */ t(((e, t) => {
|
|
4247
|
+
var n = ct(), r = ut(), i = lt();
|
|
4248
|
+
t.exports = dt() || n.call(i, r);
|
|
4249
|
+
})), pt = /* @__PURE__ */ t(((e, t) => {
|
|
4250
|
+
var n = ct(), r = X(), i = lt(), a = ft();
|
|
4179
4251
|
t.exports = function(e) {
|
|
4180
4252
|
if (e.length < 1 || typeof e[0] != "function") throw new r("a function is required");
|
|
4181
4253
|
return a(n, i, e);
|
|
4182
4254
|
};
|
|
4183
|
-
})),
|
|
4184
|
-
var n =
|
|
4255
|
+
})), mt = /* @__PURE__ */ t(((e, t) => {
|
|
4256
|
+
var n = pt(), r = tt(), i;
|
|
4185
4257
|
try {
|
|
4186
4258
|
i = [].__proto__ === Array.prototype;
|
|
4187
4259
|
} catch (e) {
|
|
@@ -4191,8 +4263,8 @@ var V, re, H, U, W, ie, G, ae, oe, se, K = e((() => {
|
|
|
4191
4263
|
t.exports = a && typeof a.get == "function" ? n([a.get]) : typeof s == "function" ? function(e) {
|
|
4192
4264
|
return s(e == null ? e : o(e));
|
|
4193
4265
|
} : !1;
|
|
4194
|
-
})),
|
|
4195
|
-
var n =
|
|
4266
|
+
})), ht = /* @__PURE__ */ t(((e, t) => {
|
|
4267
|
+
var n = at(), r = ot(), i = mt();
|
|
4196
4268
|
t.exports = n ? function(e) {
|
|
4197
4269
|
return n(e);
|
|
4198
4270
|
} : r ? function(e) {
|
|
@@ -4201,15 +4273,15 @@ var V, re, H, U, W, ie, G, ae, oe, se, K = e((() => {
|
|
|
4201
4273
|
} : i ? function(e) {
|
|
4202
4274
|
return i(e);
|
|
4203
4275
|
} : null;
|
|
4204
|
-
})),
|
|
4276
|
+
})), gt = /* @__PURE__ */ t(((e, t) => {
|
|
4205
4277
|
var n = Function.prototype.call, r = Object.prototype.hasOwnProperty;
|
|
4206
|
-
t.exports =
|
|
4278
|
+
t.exports = ct().call(n, r);
|
|
4207
4279
|
})), Z = /* @__PURE__ */ t(((e, t) => {
|
|
4208
|
-
var n, r =
|
|
4280
|
+
var n, r = ze(), i = Be(), a = Ve(), o = He(), s = Ue(), c = We(), l = X(), u = Ge(), d = Ke(), f = qe(), p = Je(), m = Ye(), h = Xe(), g = Ze(), _ = $e(), v = Function, y = function(e) {
|
|
4209
4281
|
try {
|
|
4210
4282
|
return v("\"use strict\"; return (" + e + ").constructor;")();
|
|
4211
4283
|
} catch {}
|
|
4212
|
-
}, b =
|
|
4284
|
+
}, b = tt(), x = nt(), S = function() {
|
|
4213
4285
|
throw new l();
|
|
4214
4286
|
}, C = b ? function() {
|
|
4215
4287
|
try {
|
|
@@ -4221,7 +4293,7 @@ var V, re, H, U, W, ie, G, ae, oe, se, K = e((() => {
|
|
|
4221
4293
|
return S;
|
|
4222
4294
|
}
|
|
4223
4295
|
}
|
|
4224
|
-
}() : S, w =
|
|
4296
|
+
}() : S, w = it()(), T = ht(), E = ot(), D = at(), O = ut(), k = lt(), A = {}, j = typeof Uint8Array > "u" || !T ? n : T(Uint8Array), M = {
|
|
4225
4297
|
__proto__: null,
|
|
4226
4298
|
"%AggregateError%": typeof AggregateError > "u" ? n : AggregateError,
|
|
4227
4299
|
"%Array%": Array,
|
|
@@ -4411,7 +4483,7 @@ var V, re, H, U, W, ie, G, ae, oe, se, K = e((() => {
|
|
|
4411
4483
|
"%URIErrorPrototype%": ["URIError", "prototype"],
|
|
4412
4484
|
"%WeakMapPrototype%": ["WeakMap", "prototype"],
|
|
4413
4485
|
"%WeakSetPrototype%": ["WeakSet", "prototype"]
|
|
4414
|
-
}, F =
|
|
4486
|
+
}, F = ct(), I = gt(), L = F.call(k, Array.prototype.concat), ee = F.call(O, Array.prototype.splice), te = F.call(k, String.prototype.replace), R = F.call(k, String.prototype.slice), z = F.call(k, RegExp.prototype.exec), ne = /[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g, B = /\\(\\)?/g, V = function(e) {
|
|
4415
4487
|
var t = R(e, 0, 1), n = R(e, -1);
|
|
4416
4488
|
if (t === "%" && n !== "%") throw new c("invalid intrinsic syntax, expected closing `%`");
|
|
4417
4489
|
if (n === "%" && t !== "%") throw new c("invalid intrinsic syntax, expected opening `%`");
|
|
@@ -4456,8 +4528,8 @@ var V, re, H, U, W, ie, G, ae, oe, se, K = e((() => {
|
|
|
4456
4528
|
}
|
|
4457
4529
|
return o;
|
|
4458
4530
|
};
|
|
4459
|
-
})),
|
|
4460
|
-
var n =
|
|
4531
|
+
})), _t = /* @__PURE__ */ t(((e, t) => {
|
|
4532
|
+
var n = nt(), r = We(), i = X(), a = tt();
|
|
4461
4533
|
t.exports = function(e, t, o) {
|
|
4462
4534
|
if (!e || typeof e != "object" && typeof e != "function") throw new i("`obj` must be an object or a function`");
|
|
4463
4535
|
if (typeof t != "string" && typeof t != "symbol") throw new i("`property` must be a string or a symbol`");
|
|
@@ -4475,8 +4547,8 @@ var V, re, H, U, W, ie, G, ae, oe, se, K = e((() => {
|
|
|
4475
4547
|
else if (u || !s && !c && !l) e[t] = o;
|
|
4476
4548
|
else throw new r("This environment does not support defining a property as non-configurable, non-writable, or non-enumerable.");
|
|
4477
4549
|
};
|
|
4478
|
-
})),
|
|
4479
|
-
var n =
|
|
4550
|
+
})), vt = /* @__PURE__ */ t(((e, t) => {
|
|
4551
|
+
var n = nt(), r = function() {
|
|
4480
4552
|
return !!n;
|
|
4481
4553
|
};
|
|
4482
4554
|
r.hasArrayLengthDefineBug = function() {
|
|
@@ -4487,8 +4559,8 @@ var V, re, H, U, W, ie, G, ae, oe, se, K = e((() => {
|
|
|
4487
4559
|
return !0;
|
|
4488
4560
|
}
|
|
4489
4561
|
}, t.exports = r;
|
|
4490
|
-
})),
|
|
4491
|
-
var n = Z(), r =
|
|
4562
|
+
})), yt = /* @__PURE__ */ t(((e, t) => {
|
|
4563
|
+
var n = Z(), r = _t(), i = vt()(), a = tt(), o = X(), s = n("%Math.floor%");
|
|
4492
4564
|
t.exports = function(e, t) {
|
|
4493
4565
|
if (typeof e != "function") throw new o("`fn` is not a function");
|
|
4494
4566
|
if (typeof t != "number" || t < 0 || t > 4294967295 || s(t) !== t) throw new o("`length` must be a positive 32-bit integer");
|
|
@@ -4499,27 +4571,27 @@ var V, re, H, U, W, ie, G, ae, oe, se, K = e((() => {
|
|
|
4499
4571
|
}
|
|
4500
4572
|
return (c || l || !n) && (i ? r(e, "length", t, !0, !0) : r(e, "length", t)), e;
|
|
4501
4573
|
};
|
|
4502
|
-
})),
|
|
4503
|
-
var n =
|
|
4574
|
+
})), bt = /* @__PURE__ */ t(((e, t) => {
|
|
4575
|
+
var n = ct(), r = ut(), i = ft();
|
|
4504
4576
|
t.exports = function() {
|
|
4505
4577
|
return i(n, r, arguments);
|
|
4506
4578
|
};
|
|
4507
|
-
})),
|
|
4508
|
-
var n =
|
|
4579
|
+
})), xt = /* @__PURE__ */ t(((e, t) => {
|
|
4580
|
+
var n = yt(), r = nt(), i = pt(), a = bt();
|
|
4509
4581
|
t.exports = function(e) {
|
|
4510
4582
|
var t = i(arguments), r = 1 + e.length - (arguments.length - 1);
|
|
4511
4583
|
return n(t, r > 0 ? r : 0, !0);
|
|
4512
4584
|
}, r ? r(t.exports, "apply", { value: a }) : t.exports.apply = a;
|
|
4513
|
-
})),
|
|
4585
|
+
})), St = /* @__PURE__ */ t(((e, t) => {
|
|
4514
4586
|
var n = Object.prototype.toString;
|
|
4515
4587
|
t.exports = function(e) {
|
|
4516
4588
|
var t = n.call(e), r = t === "[object Arguments]";
|
|
4517
4589
|
return r ||= t !== "[object Array]" && typeof e == "object" && !!e && typeof e.length == "number" && e.length >= 0 && n.call(e.callee) === "[object Function]", r;
|
|
4518
4590
|
};
|
|
4519
|
-
})),
|
|
4591
|
+
})), Ct = /* @__PURE__ */ t(((e, t) => {
|
|
4520
4592
|
var n;
|
|
4521
4593
|
if (!Object.keys) {
|
|
4522
|
-
var r = Object.prototype.hasOwnProperty, i = Object.prototype.toString, a =
|
|
4594
|
+
var r = Object.prototype.hasOwnProperty, i = Object.prototype.toString, a = St(), o = Object.prototype.propertyIsEnumerable, s = !o.call({ toString: null }, "toString"), c = o.call(function() {}, "prototype"), l = [
|
|
4523
4595
|
"toString",
|
|
4524
4596
|
"toLocaleString",
|
|
4525
4597
|
"valueOf",
|
|
@@ -4586,10 +4658,10 @@ var V, re, H, U, W, ie, G, ae, oe, se, K = e((() => {
|
|
|
4586
4658
|
};
|
|
4587
4659
|
}
|
|
4588
4660
|
t.exports = n;
|
|
4589
|
-
})),
|
|
4590
|
-
var n = Array.prototype.slice, r =
|
|
4661
|
+
})), wt = /* @__PURE__ */ t(((e, t) => {
|
|
4662
|
+
var n = Array.prototype.slice, r = St(), i = Object.keys, a = i ? function(e) {
|
|
4591
4663
|
return i(e);
|
|
4592
|
-
} :
|
|
4664
|
+
} : Ct(), o = Object.keys;
|
|
4593
4665
|
a.shim = function() {
|
|
4594
4666
|
return Object.keys ? function() {
|
|
4595
4667
|
var e = Object.keys(arguments);
|
|
@@ -4598,10 +4670,10 @@ var V, re, H, U, W, ie, G, ae, oe, se, K = e((() => {
|
|
|
4598
4670
|
return r(e) ? o(n.call(e)) : o(e);
|
|
4599
4671
|
}) : Object.keys = a, Object.keys || a;
|
|
4600
4672
|
}, t.exports = a;
|
|
4601
|
-
})),
|
|
4602
|
-
var n =
|
|
4673
|
+
})), Tt = /* @__PURE__ */ t(((e, t) => {
|
|
4674
|
+
var n = wt(), r = typeof Symbol == "function" && typeof Symbol("foo") == "symbol", i = Object.prototype.toString, a = Array.prototype.concat, o = _t(), s = function(e) {
|
|
4603
4675
|
return typeof e == "function" && i.call(e) === "[object Function]";
|
|
4604
|
-
}, c =
|
|
4676
|
+
}, c = vt()(), l = function(e, t, n, r) {
|
|
4605
4677
|
if (t in e) {
|
|
4606
4678
|
if (r === !0) {
|
|
4607
4679
|
if (e[t] === n) return;
|
|
@@ -4615,28 +4687,28 @@ var V, re, H, U, W, ie, G, ae, oe, se, K = e((() => {
|
|
|
4615
4687
|
};
|
|
4616
4688
|
u.supportsDescriptors = !!c, t.exports = u;
|
|
4617
4689
|
})), Q = /* @__PURE__ */ t(((e, t) => {
|
|
4618
|
-
var n = Z(), r =
|
|
4690
|
+
var n = Z(), r = pt(), i = r([n("%String.prototype.indexOf%")]);
|
|
4619
4691
|
t.exports = function(e, t) {
|
|
4620
4692
|
var a = n(e, !!t);
|
|
4621
4693
|
return typeof a == "function" && i(e, ".prototype.") > -1 ? r([a]) : a;
|
|
4622
4694
|
};
|
|
4623
|
-
})),
|
|
4695
|
+
})), Et = /* @__PURE__ */ t(((e, t) => {
|
|
4624
4696
|
var n = Z()("%Array%"), r = !n.isArray && Q()("Object.prototype.toString");
|
|
4625
4697
|
t.exports = n.isArray || function(e) {
|
|
4626
4698
|
return r(e) === "[object Array]";
|
|
4627
4699
|
};
|
|
4628
|
-
})),
|
|
4629
|
-
t.exports =
|
|
4630
|
-
})),
|
|
4631
|
-
var n = Z(), r = Q(), i = X(), a =
|
|
4700
|
+
})), Dt = /* @__PURE__ */ t(((e, t) => {
|
|
4701
|
+
t.exports = Et();
|
|
4702
|
+
})), Ot = /* @__PURE__ */ t(((e, t) => {
|
|
4703
|
+
var n = Z(), r = Q(), i = X(), a = Dt(), o = n("%Reflect.apply%", !0) || r("Function.prototype.apply");
|
|
4632
4704
|
t.exports = function(e, t) {
|
|
4633
4705
|
var n = arguments.length > 2 ? arguments[2] : [];
|
|
4634
4706
|
if (!a(n)) throw new i("Assertion failed: optional `argumentsList`, if provided, must be a List");
|
|
4635
4707
|
return o(e, t, n);
|
|
4636
4708
|
};
|
|
4637
|
-
})),
|
|
4709
|
+
})), kt = /* @__PURE__ */ t(((e, t) => {
|
|
4638
4710
|
t.exports = {};
|
|
4639
|
-
})),
|
|
4711
|
+
})), At = /* @__PURE__ */ t(((e, t) => {
|
|
4640
4712
|
i();
|
|
4641
4713
|
var n = typeof Map == "function" && Map.prototype, a = Object.getOwnPropertyDescriptor && n ? Object.getOwnPropertyDescriptor(Map.prototype, "size") : null, o = n && a && typeof a.get == "function" ? a.get : null, s = n && Map.prototype.forEach, c = typeof Set == "function" && Set.prototype, l = Object.getOwnPropertyDescriptor && c ? Object.getOwnPropertyDescriptor(Set.prototype, "size") : null, u = c && l && typeof l.get == "function" ? l.get : null, d = c && Set.prototype.forEach, f = typeof WeakMap == "function" && WeakMap.prototype ? WeakMap.prototype.has : null, p = typeof WeakSet == "function" && WeakSet.prototype ? WeakSet.prototype.has : null, m = typeof WeakRef == "function" && WeakRef.prototype ? WeakRef.prototype.deref : null, h = Boolean.prototype.valueOf, g = Object.prototype.toString, _ = Function.prototype.toString, v = String.prototype.match, y = String.prototype.slice, b = String.prototype.replace, x = String.prototype.toUpperCase, S = String.prototype.toLowerCase, C = RegExp.prototype.test, w = Array.prototype.concat, T = Array.prototype.join, E = Array.prototype.slice, D = Math.floor, O = typeof BigInt == "function" ? BigInt.prototype.valueOf : null, k = Object.getOwnPropertySymbols, A = typeof Symbol == "function" && typeof Symbol.iterator == "symbol" ? Symbol.prototype.toString : null, j = typeof Symbol == "function" && typeof Symbol.iterator == "object", M = typeof Symbol == "function" && Symbol.toStringTag ? Symbol.toStringTag : null, N = Object.prototype.propertyIsEnumerable, P = (typeof Reflect == "function" ? Reflect.getPrototypeOf : Object.getPrototypeOf) || ([].__proto__ === Array.prototype ? function(e) {
|
|
4642
4714
|
return e.__proto__;
|
|
@@ -4653,7 +4725,7 @@ var V, re, H, U, W, ie, G, ae, oe, se, K = e((() => {
|
|
|
4653
4725
|
}
|
|
4654
4726
|
return b.call(t, n, "$&_");
|
|
4655
4727
|
}
|
|
4656
|
-
var I =
|
|
4728
|
+
var I = kt(), L = I.custom, ee = ae(L) ? L : null, te = {
|
|
4657
4729
|
__proto__: null,
|
|
4658
4730
|
double: "\"",
|
|
4659
4731
|
single: "'"
|
|
@@ -4938,7 +5010,7 @@ var V, re, H, U, W, ie, G, ae, oe, se, K = e((() => {
|
|
|
4938
5010
|
if (typeof k == "function") for (var l = 0; l < a.length; l++) N.call(e, a[l]) && r.push("[" + t(a[l]) + "]: " + t(e[a[l]], e));
|
|
4939
5011
|
return r;
|
|
4940
5012
|
}
|
|
4941
|
-
})),
|
|
5013
|
+
})), jt = /* @__PURE__ */ t(((e, t) => {
|
|
4942
5014
|
t.exports = function(e) {
|
|
4943
5015
|
return typeof e == "string" || typeof e == "symbol";
|
|
4944
5016
|
};
|
|
@@ -4946,20 +5018,20 @@ var V, re, H, U, W, ie, G, ae, oe, se, K = e((() => {
|
|
|
4946
5018
|
t.exports = function(e) {
|
|
4947
5019
|
return !!e && (typeof e == "function" || typeof e == "object");
|
|
4948
5020
|
};
|
|
4949
|
-
})),
|
|
4950
|
-
var n = X(), r =
|
|
5021
|
+
})), Mt = /* @__PURE__ */ t(((e, t) => {
|
|
5022
|
+
var n = X(), r = At(), i = jt(), a = $();
|
|
4951
5023
|
t.exports = function(e, t) {
|
|
4952
5024
|
if (!a(e)) throw new n("Assertion failed: Type(O) is not Object");
|
|
4953
5025
|
if (!i(t)) throw new n("Assertion failed: P is not a Property Key, got " + r(t));
|
|
4954
5026
|
return e[t];
|
|
4955
5027
|
};
|
|
4956
|
-
})),
|
|
4957
|
-
var n = X(), r =
|
|
5028
|
+
})), Nt = /* @__PURE__ */ t(((e, t) => {
|
|
5029
|
+
var n = X(), r = At(), i = jt();
|
|
4958
5030
|
t.exports = function(e, t) {
|
|
4959
5031
|
if (!i(t)) throw new n("Assertion failed: P is not a Property Key, got " + r(t));
|
|
4960
5032
|
return e[t];
|
|
4961
5033
|
};
|
|
4962
|
-
})),
|
|
5034
|
+
})), Pt = /* @__PURE__ */ t(((e, t) => {
|
|
4963
5035
|
var n = Function.prototype.toString, r = typeof Reflect == "object" && Reflect !== null && Reflect.apply, i, a;
|
|
4964
5036
|
if (typeof r == "function" && typeof Object.defineProperty == "function") try {
|
|
4965
5037
|
i = Object.defineProperty({}, "length", { get: function() {
|
|
@@ -5014,10 +5086,10 @@ var V, re, H, U, W, ie, G, ae, oe, se, K = e((() => {
|
|
|
5014
5086
|
var t = l.call(e);
|
|
5015
5087
|
return t !== d && t !== f && !/^\[object HTML/.test(t) ? !1 : c(e);
|
|
5016
5088
|
};
|
|
5017
|
-
})),
|
|
5018
|
-
t.exports =
|
|
5019
|
-
})),
|
|
5020
|
-
var n = X(), r =
|
|
5089
|
+
})), Ft = /* @__PURE__ */ t(((e, t) => {
|
|
5090
|
+
t.exports = Pt();
|
|
5091
|
+
})), It = /* @__PURE__ */ t(((e, t) => {
|
|
5092
|
+
var n = X(), r = Nt(), i = Ft(), a = jt(), o = At();
|
|
5021
5093
|
t.exports = function(e, t) {
|
|
5022
5094
|
if (!a(t)) throw new n("Assertion failed: P is not a Property Key");
|
|
5023
5095
|
var s = r(e, t);
|
|
@@ -5026,13 +5098,13 @@ var V, re, H, U, W, ie, G, ae, oe, se, K = e((() => {
|
|
|
5026
5098
|
return s;
|
|
5027
5099
|
}
|
|
5028
5100
|
};
|
|
5029
|
-
})),
|
|
5030
|
-
var n =
|
|
5101
|
+
})), Lt = /* @__PURE__ */ t(((e, t) => {
|
|
5102
|
+
var n = rt();
|
|
5031
5103
|
t.exports = function() {
|
|
5032
5104
|
return n() && !!Symbol.toStringTag;
|
|
5033
5105
|
};
|
|
5034
|
-
})),
|
|
5035
|
-
var n = Q(), r =
|
|
5106
|
+
})), Rt = /* @__PURE__ */ t(((e, t) => {
|
|
5107
|
+
var n = Q(), r = Lt()(), i = gt(), a = tt(), o;
|
|
5036
5108
|
if (r) {
|
|
5037
5109
|
var s = n("RegExp.prototype.exec"), c = {}, l = function() {
|
|
5038
5110
|
throw c;
|
|
@@ -5057,12 +5129,12 @@ var V, re, H, U, W, ie, G, ae, oe, se, K = e((() => {
|
|
|
5057
5129
|
};
|
|
5058
5130
|
}
|
|
5059
5131
|
t.exports = o;
|
|
5060
|
-
})),
|
|
5132
|
+
})), zt = /* @__PURE__ */ t(((e, t) => {
|
|
5061
5133
|
t.exports = function(e) {
|
|
5062
5134
|
return !!e;
|
|
5063
5135
|
};
|
|
5064
|
-
})),
|
|
5065
|
-
var n = Z()("%Symbol.match%", !0), r =
|
|
5136
|
+
})), Bt = /* @__PURE__ */ t(((e, t) => {
|
|
5137
|
+
var n = Z()("%Symbol.match%", !0), r = Rt(), i = $(), a = zt();
|
|
5066
5138
|
t.exports = function(e) {
|
|
5067
5139
|
if (!i(e)) return !1;
|
|
5068
5140
|
if (n) {
|
|
@@ -5071,19 +5143,19 @@ var V, re, H, U, W, ie, G, ae, oe, se, K = e((() => {
|
|
|
5071
5143
|
}
|
|
5072
5144
|
return r(e);
|
|
5073
5145
|
};
|
|
5074
|
-
})),
|
|
5146
|
+
})), Vt = /* @__PURE__ */ t(((e, t) => {
|
|
5075
5147
|
var n = Z()("%String%"), r = X();
|
|
5076
5148
|
t.exports = function(e) {
|
|
5077
5149
|
if (typeof e == "symbol") throw new r("Cannot convert a Symbol value to a string");
|
|
5078
5150
|
return n(e);
|
|
5079
5151
|
};
|
|
5080
|
-
})),
|
|
5152
|
+
})), Ht = /* @__PURE__ */ t(((e, t) => {
|
|
5081
5153
|
var n = X();
|
|
5082
5154
|
t.exports = function(e) {
|
|
5083
5155
|
if (e == null) throw new n(arguments.length > 0 && arguments[1] || "Cannot call method on " + e);
|
|
5084
5156
|
return e;
|
|
5085
5157
|
};
|
|
5086
|
-
})),
|
|
5158
|
+
})), Ut = /* @__PURE__ */ t(((e, t) => {
|
|
5087
5159
|
var n = function() {
|
|
5088
5160
|
return typeof function() {}.name == "string";
|
|
5089
5161
|
}, r = Object.getOwnPropertyDescriptor;
|
|
@@ -5101,21 +5173,21 @@ var V, re, H, U, W, ie, G, ae, oe, se, K = e((() => {
|
|
|
5101
5173
|
n.boundFunctionsHaveNames = function() {
|
|
5102
5174
|
return n() && typeof i == "function" && function() {}.bind().name !== "";
|
|
5103
5175
|
}, t.exports = n;
|
|
5104
|
-
})),
|
|
5105
|
-
var n =
|
|
5176
|
+
})), Wt = /* @__PURE__ */ t(((e, t) => {
|
|
5177
|
+
var n = _t(), r = vt()(), i = Ut().functionsHaveConfigurableNames(), a = X();
|
|
5106
5178
|
t.exports = function(e, t) {
|
|
5107
5179
|
if (typeof e != "function") throw new a("`fn` is not a function");
|
|
5108
5180
|
return (!(arguments.length > 2 && arguments[2]) || i) && (r ? n(e, "name", t, !0, !0) : n(e, "name", t)), e;
|
|
5109
5181
|
};
|
|
5110
|
-
})),
|
|
5111
|
-
var n =
|
|
5182
|
+
})), Gt = /* @__PURE__ */ t(((e, t) => {
|
|
5183
|
+
var n = Wt(), r = X(), i = Object;
|
|
5112
5184
|
t.exports = n(function() {
|
|
5113
5185
|
if (this == null || this !== i(this)) throw new r("RegExp.prototype.flags getter called on non-object");
|
|
5114
5186
|
var e = "";
|
|
5115
5187
|
return this.hasIndices && (e += "d"), this.global && (e += "g"), this.ignoreCase && (e += "i"), this.multiline && (e += "m"), this.dotAll && (e += "s"), this.unicode && (e += "u"), this.unicodeSets && (e += "v"), this.sticky && (e += "y"), e;
|
|
5116
5188
|
}, "get flags", !0);
|
|
5117
|
-
})),
|
|
5118
|
-
var n =
|
|
5189
|
+
})), Kt = /* @__PURE__ */ t(((e, t) => {
|
|
5190
|
+
var n = Gt(), r = Tt().supportsDescriptors, i = Object.getOwnPropertyDescriptor;
|
|
5119
5191
|
t.exports = function() {
|
|
5120
5192
|
if (r && /a/gim.flags === "gim") {
|
|
5121
5193
|
var e = i(RegExp.prototype, "flags");
|
|
@@ -5130,8 +5202,8 @@ var V, re, H, U, W, ie, G, ae, oe, se, K = e((() => {
|
|
|
5130
5202
|
}
|
|
5131
5203
|
return n;
|
|
5132
5204
|
};
|
|
5133
|
-
})),
|
|
5134
|
-
var n =
|
|
5205
|
+
})), qt = /* @__PURE__ */ t(((e, t) => {
|
|
5206
|
+
var n = Tt().supportsDescriptors, r = Kt(), i = tt(), a = Object.defineProperty, o = Be(), s = ht(), c = /a/;
|
|
5135
5207
|
t.exports = function() {
|
|
5136
5208
|
if (!n || !s) throw new o("RegExp.prototype.flags requires a true ES5 environment that supports property descriptors");
|
|
5137
5209
|
var e = r(), t = s(c), l = i(t, "flags");
|
|
@@ -5141,29 +5213,29 @@ var V, re, H, U, W, ie, G, ae, oe, se, K = e((() => {
|
|
|
5141
5213
|
get: e
|
|
5142
5214
|
}), e;
|
|
5143
5215
|
};
|
|
5144
|
-
})),
|
|
5145
|
-
var n =
|
|
5216
|
+
})), Jt = /* @__PURE__ */ t(((e, t) => {
|
|
5217
|
+
var n = Tt(), r = xt(), i = Gt(), a = Kt(), o = qt(), s = r(a());
|
|
5146
5218
|
n(s, {
|
|
5147
5219
|
getPolyfill: a,
|
|
5148
5220
|
implementation: i,
|
|
5149
5221
|
shim: o
|
|
5150
5222
|
}), t.exports = s;
|
|
5151
|
-
})),
|
|
5223
|
+
})), Yt = /* @__PURE__ */ t(((e, t) => {
|
|
5152
5224
|
t.exports = function(e) {
|
|
5153
5225
|
return typeof e == "number" && e >= 55296 && e <= 56319;
|
|
5154
5226
|
};
|
|
5155
|
-
})),
|
|
5227
|
+
})), Xt = /* @__PURE__ */ t(((e, t) => {
|
|
5156
5228
|
t.exports = function(e) {
|
|
5157
5229
|
return typeof e == "number" && e >= 56320 && e <= 57343;
|
|
5158
5230
|
};
|
|
5159
|
-
})),
|
|
5160
|
-
var n = Z(), r = X(), i = n("%String.fromCharCode%"), a =
|
|
5231
|
+
})), Zt = /* @__PURE__ */ t(((e, t) => {
|
|
5232
|
+
var n = Z(), r = X(), i = n("%String.fromCharCode%"), a = Yt(), o = Xt();
|
|
5161
5233
|
t.exports = function(e, t) {
|
|
5162
5234
|
if (!a(e) || !o(t)) throw new r("Assertion failed: `lead` must be a leading surrogate char code, and `trail` must be a trailing surrogate char code");
|
|
5163
5235
|
return i(e) + i(t);
|
|
5164
5236
|
};
|
|
5165
|
-
})),
|
|
5166
|
-
var n = X(), r = Q(), i =
|
|
5237
|
+
})), Qt = /* @__PURE__ */ t(((e, t) => {
|
|
5238
|
+
var n = X(), r = Q(), i = Yt(), a = Xt(), o = Zt(), s = r("String.prototype.charAt"), c = r("String.prototype.charCodeAt");
|
|
5167
5239
|
t.exports = function(e, t) {
|
|
5168
5240
|
if (typeof e != "string") throw new n("Assertion failed: `string` must be a String");
|
|
5169
5241
|
var r = e.length;
|
|
@@ -5190,22 +5262,22 @@ var V, re, H, U, W, ie, G, ae, oe, se, K = e((() => {
|
|
|
5190
5262
|
"[[IsUnpairedSurrogate]]": !0
|
|
5191
5263
|
};
|
|
5192
5264
|
};
|
|
5193
|
-
})),
|
|
5194
|
-
var n =
|
|
5265
|
+
})), $t = /* @__PURE__ */ t(((e, t) => {
|
|
5266
|
+
var n = Qe();
|
|
5195
5267
|
t.exports = function(e) {
|
|
5196
5268
|
return (typeof e == "number" || typeof e == "bigint") && !n(e) && e !== Infinity && e !== -Infinity;
|
|
5197
5269
|
};
|
|
5198
|
-
})),
|
|
5199
|
-
var n =
|
|
5270
|
+
})), en = /* @__PURE__ */ t(((e, t) => {
|
|
5271
|
+
var n = Ke(), r = qe(), i = Qe(), a = $t();
|
|
5200
5272
|
t.exports = function(e) {
|
|
5201
5273
|
if (typeof e != "number" || i(e) || !a(e)) return !1;
|
|
5202
5274
|
var t = n(e);
|
|
5203
5275
|
return r(t) === t;
|
|
5204
5276
|
};
|
|
5205
|
-
})),
|
|
5277
|
+
})), tn = /* @__PURE__ */ t(((e, t) => {
|
|
5206
5278
|
t.exports = 2 ** 53 - 1 || 9007199254740991;
|
|
5207
|
-
})),
|
|
5208
|
-
var n =
|
|
5279
|
+
})), nn = /* @__PURE__ */ t(((e, t) => {
|
|
5280
|
+
var n = Qt(), r = X(), i = en(), a = tn();
|
|
5209
5281
|
t.exports = function(e, t, o) {
|
|
5210
5282
|
if (typeof e != "string") throw new r("Assertion failed: `S` must be a String");
|
|
5211
5283
|
if (!i(t) || t < 0 || t > a) throw new r("Assertion failed: `length` must be an integer >= 0 and <= 2**53");
|
|
@@ -5214,7 +5286,7 @@ var V, re, H, U, W, ie, G, ae, oe, se, K = e((() => {
|
|
|
5214
5286
|
var s = e.length;
|
|
5215
5287
|
return t + 1 >= s ? t + 1 : t + n(e, t)["[[CodeUnitCount]]"];
|
|
5216
5288
|
};
|
|
5217
|
-
})),
|
|
5289
|
+
})), rn = /* @__PURE__ */ t(((e, t) => {
|
|
5218
5290
|
var n = X();
|
|
5219
5291
|
t.exports = function(e, t) {
|
|
5220
5292
|
if (typeof t != "boolean") throw new n("Assertion failed: Type(done) is not Boolean");
|
|
@@ -5223,8 +5295,8 @@ var V, re, H, U, W, ie, G, ae, oe, se, K = e((() => {
|
|
|
5223
5295
|
done: t
|
|
5224
5296
|
};
|
|
5225
5297
|
};
|
|
5226
|
-
})),
|
|
5227
|
-
var n = X(), r =
|
|
5298
|
+
})), an = /* @__PURE__ */ t(((e, t) => {
|
|
5299
|
+
var n = X(), r = gt(), i = {
|
|
5228
5300
|
__proto__: null,
|
|
5229
5301
|
"[[Configurable]]": !0,
|
|
5230
5302
|
"[[Enumerable]]": !0,
|
|
@@ -5240,8 +5312,8 @@ var V, re, H, U, W, ie, G, ae, oe, se, K = e((() => {
|
|
|
5240
5312
|
if (a && o) throw new n("Property Descriptors may not be both accessor and data descriptors");
|
|
5241
5313
|
return !0;
|
|
5242
5314
|
};
|
|
5243
|
-
})),
|
|
5244
|
-
var n =
|
|
5315
|
+
})), on = /* @__PURE__ */ t(((e, t) => {
|
|
5316
|
+
var n = vt(), r = nt(), i = n.hasArrayLengthDefineBug(), a = i && Et(), o = Q()("Object.prototype.propertyIsEnumerable");
|
|
5245
5317
|
t.exports = function(e, t, n, s, c, l) {
|
|
5246
5318
|
if (!r) {
|
|
5247
5319
|
if (!e(l) || !l["[[Configurable]]"] || !l["[[Writable]]"] || c in s && o(s, c) !== !!l["[[Enumerable]]"]) return !1;
|
|
@@ -5250,32 +5322,32 @@ var V, re, H, U, W, ie, G, ae, oe, se, K = e((() => {
|
|
|
5250
5322
|
}
|
|
5251
5323
|
return i && c === "length" && "[[Value]]" in l && a(s) && s.length !== l["[[Value]]"] ? (s.length = l["[[Value]]"], s.length === l["[[Value]]"]) : (r(s, c, n(l)), !0);
|
|
5252
5324
|
};
|
|
5253
|
-
})),
|
|
5325
|
+
})), sn = /* @__PURE__ */ t(((e, t) => {
|
|
5254
5326
|
t.exports = function(e) {
|
|
5255
5327
|
if (e === void 0) return e;
|
|
5256
5328
|
var t = {};
|
|
5257
5329
|
return "[[Value]]" in e && (t.value = e["[[Value]]"]), "[[Writable]]" in e && (t.writable = !!e["[[Writable]]"]), "[[Get]]" in e && (t.get = e["[[Get]]"]), "[[Set]]" in e && (t.set = e["[[Set]]"]), "[[Enumerable]]" in e && (t.enumerable = !!e["[[Enumerable]]"]), "[[Configurable]]" in e && (t.configurable = !!e["[[Configurable]]"]), t;
|
|
5258
5330
|
};
|
|
5259
|
-
})),
|
|
5260
|
-
var n = X(), r =
|
|
5331
|
+
})), cn = /* @__PURE__ */ t(((e, t) => {
|
|
5332
|
+
var n = X(), r = an(), i = sn();
|
|
5261
5333
|
t.exports = function(e) {
|
|
5262
5334
|
if (e !== void 0 && !r(e)) throw new n("Assertion failed: `Desc` must be a Property Descriptor");
|
|
5263
5335
|
return i(e);
|
|
5264
5336
|
};
|
|
5265
|
-
})),
|
|
5266
|
-
var n = X(), r =
|
|
5337
|
+
})), ln = /* @__PURE__ */ t(((e, t) => {
|
|
5338
|
+
var n = X(), r = gt(), i = an();
|
|
5267
5339
|
t.exports = function(e) {
|
|
5268
5340
|
if (e === void 0) return !1;
|
|
5269
5341
|
if (!i(e)) throw new n("Assertion failed: `Desc` must be a Property Descriptor");
|
|
5270
5342
|
return !(!r(e, "[[Value]]") && !r(e, "[[Writable]]"));
|
|
5271
5343
|
};
|
|
5272
|
-
})),
|
|
5273
|
-
var n =
|
|
5344
|
+
})), un = /* @__PURE__ */ t(((e, t) => {
|
|
5345
|
+
var n = Qe();
|
|
5274
5346
|
t.exports = function(e, t) {
|
|
5275
5347
|
return e === t ? e === 0 ? 1 / e == 1 / t : !0 : n(e) && n(t);
|
|
5276
5348
|
};
|
|
5277
|
-
})),
|
|
5278
|
-
var n =
|
|
5349
|
+
})), dn = /* @__PURE__ */ t(((e, t) => {
|
|
5350
|
+
var n = gt(), r = X(), i = $(), a = Ft(), o = zt();
|
|
5279
5351
|
t.exports = function(e) {
|
|
5280
5352
|
if (!i(e)) throw new r("ToPropertyDescriptor requires an object");
|
|
5281
5353
|
var t = {};
|
|
@@ -5292,8 +5364,8 @@ var V, re, H, U, W, ie, G, ae, oe, se, K = e((() => {
|
|
|
5292
5364
|
if ((n(t, "[[Get]]") || n(t, "[[Set]]")) && (n(t, "[[Value]]") || n(t, "[[Writable]]"))) throw new r("Invalid property descriptor. Cannot both specify accessors and a value or writable attribute");
|
|
5293
5365
|
return t;
|
|
5294
5366
|
};
|
|
5295
|
-
})),
|
|
5296
|
-
var n = X(), r = $(), i =
|
|
5367
|
+
})), fn = /* @__PURE__ */ t(((e, t) => {
|
|
5368
|
+
var n = X(), r = $(), i = an(), a = on(), o = cn(), s = ln(), c = jt(), l = un(), u = dn();
|
|
5297
5369
|
t.exports = function(e, t, d) {
|
|
5298
5370
|
if (!r(e)) throw new n("Assertion failed: Type(O) is not Object");
|
|
5299
5371
|
if (!c(t)) throw new n("Assertion failed: P is not a Property Key");
|
|
@@ -5301,19 +5373,19 @@ var V, re, H, U, W, ie, G, ae, oe, se, K = e((() => {
|
|
|
5301
5373
|
if (!i(f)) throw new n("Assertion failed: Desc is not a valid Property Descriptor");
|
|
5302
5374
|
return a(s, l, o, e, t, f);
|
|
5303
5375
|
};
|
|
5304
|
-
})),
|
|
5376
|
+
})), pn = /* @__PURE__ */ t(((e, t) => {
|
|
5305
5377
|
t.exports = function(e) {
|
|
5306
5378
|
return e === null || typeof e != "function" && typeof e != "object";
|
|
5307
5379
|
};
|
|
5308
|
-
})),
|
|
5309
|
-
var n = Z(), r = n("%Object.preventExtensions%", !0), i = n("%Object.isExtensible%", !0), a =
|
|
5380
|
+
})), mn = /* @__PURE__ */ t(((e, t) => {
|
|
5381
|
+
var n = Z(), r = n("%Object.preventExtensions%", !0), i = n("%Object.isExtensible%", !0), a = pn();
|
|
5310
5382
|
t.exports = r ? function(e) {
|
|
5311
5383
|
return !a(e) && i(e);
|
|
5312
5384
|
} : function(e) {
|
|
5313
5385
|
return !a(e);
|
|
5314
5386
|
};
|
|
5315
|
-
})),
|
|
5316
|
-
var n = X(), r = $(), i =
|
|
5387
|
+
})), hn = /* @__PURE__ */ t(((e, t) => {
|
|
5388
|
+
var n = X(), r = $(), i = fn(), a = mn(), o = jt();
|
|
5317
5389
|
t.exports = function(e, t, s, c) {
|
|
5318
5390
|
if (!r(e)) throw new n("Assertion failed: `homeObject` is not an Object");
|
|
5319
5391
|
if (!o(t)) throw new n("Assertion failed: `key` is not a Property Key or a Private Name");
|
|
@@ -5327,12 +5399,12 @@ var V, re, H, U, W, ie, G, ae, oe, se, K = e((() => {
|
|
|
5327
5399
|
"[[Configurable]]": !0
|
|
5328
5400
|
});
|
|
5329
5401
|
};
|
|
5330
|
-
})),
|
|
5402
|
+
})), gn = /* @__PURE__ */ t(((e, t) => {
|
|
5331
5403
|
t.exports = function(e, t) {
|
|
5332
5404
|
for (var n = 0; n < e.length; n += 1) t(e[n], n, e);
|
|
5333
5405
|
};
|
|
5334
|
-
})),
|
|
5335
|
-
var n =
|
|
5406
|
+
})), _n = /* @__PURE__ */ t(((e, t) => {
|
|
5407
|
+
var n = At(), r = X(), i = function(e, t, n) {
|
|
5336
5408
|
for (var r = e, i; (i = r.next) != null; r = i) if (i.key === t) return r.next = i.next, n || (i.next = e.next, e.next = i), i;
|
|
5337
5409
|
}, a = function(e, t) {
|
|
5338
5410
|
if (e) {
|
|
@@ -5372,8 +5444,8 @@ var V, re, H, U, W, ie, G, ae, oe, se, K = e((() => {
|
|
|
5372
5444
|
};
|
|
5373
5445
|
return t;
|
|
5374
5446
|
};
|
|
5375
|
-
})),
|
|
5376
|
-
var n = Z(), r = Q(), i =
|
|
5447
|
+
})), vn = /* @__PURE__ */ t(((e, t) => {
|
|
5448
|
+
var n = Z(), r = Q(), i = At(), a = X(), o = n("%Map%", !0), s = r("Map.prototype.get", !0), c = r("Map.prototype.set", !0), l = r("Map.prototype.has", !0), u = r("Map.prototype.delete", !0), d = r("Map.prototype.size", !0);
|
|
5377
5449
|
t.exports = !!o && function() {
|
|
5378
5450
|
var e, t = {
|
|
5379
5451
|
assert: function(e) {
|
|
@@ -5398,8 +5470,8 @@ var V, re, H, U, W, ie, G, ae, oe, se, K = e((() => {
|
|
|
5398
5470
|
};
|
|
5399
5471
|
return t;
|
|
5400
5472
|
};
|
|
5401
|
-
})),
|
|
5402
|
-
var n = Z(), r = Q(), i =
|
|
5473
|
+
})), yn = /* @__PURE__ */ t(((e, t) => {
|
|
5474
|
+
var n = Z(), r = Q(), i = At(), a = vn(), o = X(), s = n("%WeakMap%", !0), c = r("WeakMap.prototype.get", !0), l = r("WeakMap.prototype.set", !0), u = r("WeakMap.prototype.has", !0), d = r("WeakMap.prototype.delete", !0);
|
|
5403
5475
|
t.exports = s ? function() {
|
|
5404
5476
|
var e, t, n = {
|
|
5405
5477
|
assert: function(e) {
|
|
@@ -5423,8 +5495,8 @@ var V, re, H, U, W, ie, G, ae, oe, se, K = e((() => {
|
|
|
5423
5495
|
};
|
|
5424
5496
|
return n;
|
|
5425
5497
|
} : a;
|
|
5426
|
-
})),
|
|
5427
|
-
var n = X(), r =
|
|
5498
|
+
})), bn = /* @__PURE__ */ t(((e, t) => {
|
|
5499
|
+
var n = X(), r = At(), i = _n(), a = vn(), o = yn() || a || i;
|
|
5428
5500
|
t.exports = function() {
|
|
5429
5501
|
var e, t = {
|
|
5430
5502
|
assert: function(e) {
|
|
@@ -5445,8 +5517,8 @@ var V, re, H, U, W, ie, G, ae, oe, se, K = e((() => {
|
|
|
5445
5517
|
};
|
|
5446
5518
|
return t;
|
|
5447
5519
|
};
|
|
5448
|
-
})),
|
|
5449
|
-
var n =
|
|
5520
|
+
})), xn = /* @__PURE__ */ t(((e, t) => {
|
|
5521
|
+
var n = gt(), r = bn()(), i = X(), a = {
|
|
5450
5522
|
assert: function(e, t) {
|
|
5451
5523
|
if (!e || typeof e != "object" && typeof e != "function") throw new i("`O` is not an object");
|
|
5452
5524
|
if (typeof t != "string") throw new i("`slot` must be a string");
|
|
@@ -5472,7 +5544,7 @@ var V, re, H, U, W, ie, G, ae, oe, se, K = e((() => {
|
|
|
5472
5544
|
}
|
|
5473
5545
|
};
|
|
5474
5546
|
Object.freeze && Object.freeze(a), t.exports = a;
|
|
5475
|
-
})),
|
|
5547
|
+
})), Sn = /* @__PURE__ */ t(((e, t) => {
|
|
5476
5548
|
var n = {
|
|
5477
5549
|
__proto__: null,
|
|
5478
5550
|
foo: {}
|
|
@@ -5480,8 +5552,8 @@ var V, re, H, U, W, ie, G, ae, oe, se, K = e((() => {
|
|
|
5480
5552
|
t.exports = function() {
|
|
5481
5553
|
return r;
|
|
5482
5554
|
};
|
|
5483
|
-
})),
|
|
5484
|
-
var n = Z()("%Object.create%", !0), r = X(), i =
|
|
5555
|
+
})), Cn = /* @__PURE__ */ t(((e, t) => {
|
|
5556
|
+
var n = Z()("%Object.create%", !0), r = X(), i = We(), a = $(), o = Dt(), s = gn(), c = xn(), l = Sn()();
|
|
5485
5557
|
t.exports = function(e) {
|
|
5486
5558
|
if (e !== null && !a(e)) throw new r("Assertion failed: `proto` must be null or an object");
|
|
5487
5559
|
var t = arguments.length < 2 ? [] : arguments[1];
|
|
@@ -5498,8 +5570,8 @@ var V, re, H, U, W, ie, G, ae, oe, se, K = e((() => {
|
|
|
5498
5570
|
c.set(u, e, void 0);
|
|
5499
5571
|
}), u;
|
|
5500
5572
|
};
|
|
5501
|
-
})),
|
|
5502
|
-
var n = X(), r = $(), i = Q()("RegExp.prototype.exec"), a =
|
|
5573
|
+
})), wn = /* @__PURE__ */ t(((e, t) => {
|
|
5574
|
+
var n = X(), r = $(), i = Q()("RegExp.prototype.exec"), a = Ot(), o = Mt(), s = Ft();
|
|
5503
5575
|
t.exports = function(e, t) {
|
|
5504
5576
|
if (!r(e)) throw new n("Assertion failed: `R` must be an Object");
|
|
5505
5577
|
if (typeof t != "string") throw new n("Assertion failed: `S` must be a String");
|
|
@@ -5511,8 +5583,8 @@ var V, re, H, U, W, ie, G, ae, oe, se, K = e((() => {
|
|
|
5511
5583
|
}
|
|
5512
5584
|
return i(e, t);
|
|
5513
5585
|
};
|
|
5514
|
-
})),
|
|
5515
|
-
var n = X(), r = $(), i =
|
|
5586
|
+
})), Tn = /* @__PURE__ */ t(((e, t) => {
|
|
5587
|
+
var n = X(), r = $(), i = jt(), a = un(), o = function() {
|
|
5516
5588
|
try {
|
|
5517
5589
|
return delete 0, !0;
|
|
5518
5590
|
} catch {
|
|
@@ -5533,31 +5605,31 @@ var V, re, H, U, W, ie, G, ae, oe, se, K = e((() => {
|
|
|
5533
5605
|
return !1;
|
|
5534
5606
|
}
|
|
5535
5607
|
};
|
|
5536
|
-
})),
|
|
5608
|
+
})), En = /* @__PURE__ */ t(((e, t) => {
|
|
5537
5609
|
t.exports = function(e) {
|
|
5538
5610
|
return e === null || typeof e != "function" && typeof e != "object";
|
|
5539
5611
|
};
|
|
5540
|
-
})),
|
|
5612
|
+
})), Dn = /* @__PURE__ */ t(((e, t) => {
|
|
5541
5613
|
var n = Q(), r = n("Date.prototype.getDay"), i = function(e) {
|
|
5542
5614
|
try {
|
|
5543
5615
|
return r(e), !0;
|
|
5544
5616
|
} catch {
|
|
5545
5617
|
return !1;
|
|
5546
5618
|
}
|
|
5547
|
-
}, a = n("Object.prototype.toString"), o = "[object Date]", s =
|
|
5619
|
+
}, a = n("Object.prototype.toString"), o = "[object Date]", s = Lt()();
|
|
5548
5620
|
t.exports = function(e) {
|
|
5549
5621
|
return typeof e != "object" || !e ? !1 : s ? i(e) : a(e) === o;
|
|
5550
5622
|
};
|
|
5551
|
-
})),
|
|
5552
|
-
var n = Q(), r =
|
|
5623
|
+
})), On = /* @__PURE__ */ t(((e, t) => {
|
|
5624
|
+
var n = Q(), r = Rt(), i = n("RegExp.prototype.exec"), a = X();
|
|
5553
5625
|
t.exports = function(e) {
|
|
5554
5626
|
if (!r(e)) throw new a("`regex` must be a RegExp");
|
|
5555
5627
|
return function(t) {
|
|
5556
5628
|
return i(e, t) !== null;
|
|
5557
5629
|
};
|
|
5558
5630
|
};
|
|
5559
|
-
})),
|
|
5560
|
-
var n = Q(), r = n("Object.prototype.toString"), i =
|
|
5631
|
+
})), kn = /* @__PURE__ */ t(((e, t) => {
|
|
5632
|
+
var n = Q(), r = n("Object.prototype.toString"), i = it()(), a = On();
|
|
5561
5633
|
if (i) {
|
|
5562
5634
|
var o = n("Symbol.prototype.toString"), s = a(/^Symbol\(.*\)$/), c = function(e) {
|
|
5563
5635
|
return typeof e.valueOf() == "symbol" ? s(o(e)) : !1;
|
|
@@ -5574,8 +5646,8 @@ var V, re, H, U, W, ie, G, ae, oe, se, K = e((() => {
|
|
|
5574
5646
|
} else t.exports = function(e) {
|
|
5575
5647
|
return !1;
|
|
5576
5648
|
};
|
|
5577
|
-
})),
|
|
5578
|
-
var n = typeof Symbol == "function" && typeof Symbol.iterator == "symbol", r =
|
|
5649
|
+
})), An = /* @__PURE__ */ t(((e, t) => {
|
|
5650
|
+
var n = typeof Symbol == "function" && typeof Symbol.iterator == "symbol", r = En(), i = Pt(), a = Dn(), o = kn(), s = function(e, t) {
|
|
5579
5651
|
if (e == null) throw TypeError("Cannot call method on " + e);
|
|
5580
5652
|
if (typeof t != "string" || t !== "number" && t !== "string") throw TypeError("hint must be \"string\" or \"number\"");
|
|
5581
5653
|
var n = t === "string" ? ["toString", "valueOf"] : ["valueOf", "toString"], a, o, s;
|
|
@@ -5600,29 +5672,29 @@ var V, re, H, U, W, ie, G, ae, oe, se, K = e((() => {
|
|
|
5600
5672
|
}
|
|
5601
5673
|
return t === "default" && (a(e) || o(e)) && (t = "string"), s(e, t === "default" ? "number" : t);
|
|
5602
5674
|
};
|
|
5603
|
-
})),
|
|
5604
|
-
var n =
|
|
5675
|
+
})), jn = /* @__PURE__ */ t(((e, t) => {
|
|
5676
|
+
var n = An();
|
|
5605
5677
|
t.exports = function(e) {
|
|
5606
5678
|
return arguments.length > 1 ? n(e, arguments[1]) : n(e);
|
|
5607
5679
|
};
|
|
5608
|
-
})),
|
|
5609
|
-
var n =
|
|
5680
|
+
})), Mn = /* @__PURE__ */ t(((e, t) => {
|
|
5681
|
+
var n = Ht(), r = Vt(), i = Q()("String.prototype.replace"), a = /^\s$/.test(""), o = a ? /^[\x09\x0A\x0B\x0C\x0D\x20\xA0\u1680\u180E\u2000\u2001\u2002\u2003\u2004\u2005\u2006\u2007\u2008\u2009\u200A\u202F\u205F\u3000\u2028\u2029\uFEFF]+/ : /^[\x09\x0A\x0B\x0C\x0D\x20\xA0\u1680\u2000\u2001\u2002\u2003\u2004\u2005\u2006\u2007\u2008\u2009\u200A\u202F\u205F\u3000\u2028\u2029\uFEFF]+/, s = a ? /[\x09\x0A\x0B\x0C\x0D\x20\xA0\u1680\u180E\u2000\u2001\u2002\u2003\u2004\u2005\u2006\u2007\u2008\u2009\u200A\u202F\u205F\u3000\u2028\u2029\uFEFF]+$/ : /[\x09\x0A\x0B\x0C\x0D\x20\xA0\u1680\u2000\u2001\u2002\u2003\u2004\u2005\u2006\u2007\u2008\u2009\u200A\u202F\u205F\u3000\u2028\u2029\uFEFF]+$/;
|
|
5610
5682
|
t.exports = function() {
|
|
5611
5683
|
return i(i(r(n(this)), o, ""), s, "");
|
|
5612
5684
|
};
|
|
5613
|
-
})),
|
|
5614
|
-
var n =
|
|
5685
|
+
})), Nn = /* @__PURE__ */ t(((e, t) => {
|
|
5686
|
+
var n = Mn(), r = "", i = "";
|
|
5615
5687
|
t.exports = function() {
|
|
5616
5688
|
return String.prototype.trim && r.trim() === r && i.trim() === i && ("_" + i).trim() === "_" + i && (i + "_").trim() === i + "_" ? String.prototype.trim : n;
|
|
5617
5689
|
};
|
|
5618
|
-
})),
|
|
5619
|
-
var n =
|
|
5690
|
+
})), Pn = /* @__PURE__ */ t(((e, t) => {
|
|
5691
|
+
var n = vt()(), r = _t(), i = Nn();
|
|
5620
5692
|
t.exports = function() {
|
|
5621
5693
|
var e = i();
|
|
5622
5694
|
return String.prototype.trim !== e && (n ? r(String.prototype, "trim", e, !0) : r(String.prototype, "trim", e)), e;
|
|
5623
5695
|
};
|
|
5624
|
-
})),
|
|
5625
|
-
var n =
|
|
5696
|
+
})), Fn = /* @__PURE__ */ t(((e, t) => {
|
|
5697
|
+
var n = xt(), r = Tt(), i = Ht(), a = Mn(), o = Nn(), s = Pn(), c = n(o()), l = function(e) {
|
|
5626
5698
|
return i(e), c(e);
|
|
5627
5699
|
};
|
|
5628
5700
|
r(l, {
|
|
@@ -5630,12 +5702,12 @@ var V, re, H, U, W, ie, G, ae, oe, se, K = e((() => {
|
|
|
5630
5702
|
implementation: a,
|
|
5631
5703
|
shim: s
|
|
5632
5704
|
}), t.exports = l;
|
|
5633
|
-
})),
|
|
5634
|
-
var n = Z(), r = n("%RegExp%"), i = X(), a = n("%parseInt%"), o = Q(), s =
|
|
5705
|
+
})), In = /* @__PURE__ */ t(((e, t) => {
|
|
5706
|
+
var n = Z(), r = n("%RegExp%"), i = X(), a = n("%parseInt%"), o = Q(), s = On(), c = o("String.prototype.slice"), l = s(/^0b[01]+$/i), u = s(/^0o[0-7]+$/i), d = s(/^[-+]0x[0-9a-f]+$/i), f = s(new r("[" + [
|
|
5635
5707
|
"
",
|
|
5636
5708
|
"",
|
|
5637
5709
|
""
|
|
5638
|
-
].join("") + "]", "g")), p =
|
|
5710
|
+
].join("") + "]", "g")), p = Fn();
|
|
5639
5711
|
t.exports = function e(t) {
|
|
5640
5712
|
if (typeof t != "string") throw new i("Assertion failed: `argument` is not a String");
|
|
5641
5713
|
if (l(t)) return +a(c(t, 2), 2);
|
|
@@ -5644,40 +5716,40 @@ var V, re, H, U, W, ie, G, ae, oe, se, K = e((() => {
|
|
|
5644
5716
|
var n = p(t);
|
|
5645
5717
|
return n === t ? +t : e(n);
|
|
5646
5718
|
};
|
|
5647
|
-
})),
|
|
5648
|
-
var n = Z(), r = X(), i = n("%Number%"), a =
|
|
5719
|
+
})), Ln = /* @__PURE__ */ t(((e, t) => {
|
|
5720
|
+
var n = Z(), r = X(), i = n("%Number%"), a = pn(), o = jn(), s = In();
|
|
5649
5721
|
t.exports = function(e) {
|
|
5650
5722
|
var t = a(e) ? e : o(e, i);
|
|
5651
5723
|
if (typeof t == "symbol") throw new r("Cannot convert a Symbol value to a number");
|
|
5652
5724
|
if (typeof t == "bigint") throw new r("Conversion from 'BigInt' to 'number' is not allowed.");
|
|
5653
5725
|
return typeof t == "string" ? s(t) : +t;
|
|
5654
5726
|
};
|
|
5655
|
-
})),
|
|
5656
|
-
var n =
|
|
5727
|
+
})), Rn = /* @__PURE__ */ t(((e, t) => {
|
|
5728
|
+
var n = qe();
|
|
5657
5729
|
t.exports = function(e) {
|
|
5658
5730
|
return typeof e == "bigint" ? e : n(e);
|
|
5659
5731
|
};
|
|
5660
|
-
})),
|
|
5661
|
-
var n =
|
|
5732
|
+
})), zn = /* @__PURE__ */ t(((e, t) => {
|
|
5733
|
+
var n = Rn(), r = X();
|
|
5662
5734
|
t.exports = function(e) {
|
|
5663
5735
|
if (typeof e != "number" && typeof e != "bigint") throw new r("argument must be a Number or a BigInt");
|
|
5664
5736
|
var t = e < 0 ? -n(-e) : n(e);
|
|
5665
5737
|
return t === 0 ? 0 : t;
|
|
5666
5738
|
};
|
|
5667
|
-
})),
|
|
5668
|
-
var n =
|
|
5739
|
+
})), Bn = /* @__PURE__ */ t(((e, t) => {
|
|
5740
|
+
var n = Ln(), r = zn(), i = Qe(), a = $t();
|
|
5669
5741
|
t.exports = function(e) {
|
|
5670
5742
|
var t = n(e);
|
|
5671
5743
|
return i(t) || t === 0 ? 0 : a(t) ? r(t) : t;
|
|
5672
5744
|
};
|
|
5673
|
-
})),
|
|
5674
|
-
var n =
|
|
5745
|
+
})), Vn = /* @__PURE__ */ t(((e, t) => {
|
|
5746
|
+
var n = tn(), r = Bn();
|
|
5675
5747
|
t.exports = function(e) {
|
|
5676
5748
|
var t = r(e);
|
|
5677
5749
|
return t <= 0 ? 0 : t > n ? n : t;
|
|
5678
5750
|
};
|
|
5679
|
-
})),
|
|
5680
|
-
var n = Z()("%Object.defineProperty%", !0), r =
|
|
5751
|
+
})), Hn = /* @__PURE__ */ t(((e, t) => {
|
|
5752
|
+
var n = Z()("%Object.defineProperty%", !0), r = Lt()(), i = gt(), a = X(), o = r ? Symbol.toStringTag : null;
|
|
5681
5753
|
t.exports = function(e, t) {
|
|
5682
5754
|
var r = arguments.length > 2 && !!arguments[2] && arguments[2].force, s = arguments.length > 2 && !!arguments[2] && arguments[2].nonConfigurable;
|
|
5683
5755
|
if (r !== void 0 && typeof r != "boolean" || s !== void 0 && typeof s != "boolean") throw new a("if provided, the `overrideIfSet` and `nonConfigurable` options must be booleans");
|
|
@@ -5688,8 +5760,8 @@ var V, re, H, U, W, ie, G, ae, oe, se, K = e((() => {
|
|
|
5688
5760
|
writable: !1
|
|
5689
5761
|
}) : e[o] = t);
|
|
5690
5762
|
};
|
|
5691
|
-
})),
|
|
5692
|
-
var n = Z(), r =
|
|
5763
|
+
})), Un = /* @__PURE__ */ t(((e, t) => {
|
|
5764
|
+
var n = Z(), r = it()(), i = X(), a = $(), o = n("%IteratorPrototype%", !0), s = nn(), c = rn(), l = hn(), u = Mt(), d = Cn(), f = wn(), p = Tn(), m = Vn(), h = Vt(), g = xn(), _ = Hn(), v = function(e, t, n, r) {
|
|
5693
5765
|
if (typeof t != "string") throw new i("`S` must be a string");
|
|
5694
5766
|
if (typeof n != "boolean") throw new i("`global` must be a boolean");
|
|
5695
5767
|
if (typeof r != "boolean") throw new i("`fullUnicode` must be a boolean");
|
|
@@ -5707,10 +5779,10 @@ var V, re, H, U, W, ie, G, ae, oe, se, K = e((() => {
|
|
|
5707
5779
|
}, !1)), t.exports = function(e, t, n, r) {
|
|
5708
5780
|
return new v(e, t, n, r);
|
|
5709
5781
|
};
|
|
5710
|
-
})),
|
|
5782
|
+
})), Wn = /* @__PURE__ */ t(((e, t) => {
|
|
5711
5783
|
t.exports = Z();
|
|
5712
|
-
})),
|
|
5713
|
-
var n =
|
|
5784
|
+
})), Gn = /* @__PURE__ */ t(((e, t) => {
|
|
5785
|
+
var n = Wn()("%Reflect.construct%", !0), r = fn();
|
|
5714
5786
|
try {
|
|
5715
5787
|
r({}, "", { "[[Get]]": function() {} });
|
|
5716
5788
|
} catch {
|
|
@@ -5733,8 +5805,8 @@ var V, re, H, U, W, ie, G, ae, oe, se, K = e((() => {
|
|
|
5733
5805
|
} else t.exports = function(e) {
|
|
5734
5806
|
return typeof e == "function" && !!e.prototype;
|
|
5735
5807
|
};
|
|
5736
|
-
})),
|
|
5737
|
-
var n = Z()("%Symbol.species%", !0), r = X(), i = $(), a =
|
|
5808
|
+
})), Kn = /* @__PURE__ */ t(((e, t) => {
|
|
5809
|
+
var n = Z()("%Symbol.species%", !0), r = X(), i = $(), a = Gn();
|
|
5738
5810
|
t.exports = function(e, t) {
|
|
5739
5811
|
if (!i(e)) throw new r("Assertion failed: Type(O) is not Object");
|
|
5740
5812
|
var o = e.constructor;
|
|
@@ -5745,7 +5817,7 @@ var V, re, H, U, W, ie, G, ae, oe, se, K = e((() => {
|
|
|
5745
5817
|
if (a(s)) return s;
|
|
5746
5818
|
throw new r("no constructor found");
|
|
5747
5819
|
};
|
|
5748
|
-
})),
|
|
5820
|
+
})), qn = /* @__PURE__ */ t(((e, t) => {
|
|
5749
5821
|
var n = $();
|
|
5750
5822
|
t.exports = function(e) {
|
|
5751
5823
|
if (e === null) return "Null";
|
|
@@ -5755,13 +5827,13 @@ var V, re, H, U, W, ie, G, ae, oe, se, K = e((() => {
|
|
|
5755
5827
|
if (typeof e == "boolean") return "Boolean";
|
|
5756
5828
|
if (typeof e == "string") return "String";
|
|
5757
5829
|
};
|
|
5758
|
-
})),
|
|
5759
|
-
var n =
|
|
5830
|
+
})), Jn = /* @__PURE__ */ t(((e, t) => {
|
|
5831
|
+
var n = qn();
|
|
5760
5832
|
t.exports = function(e) {
|
|
5761
5833
|
return typeof e == "symbol" ? "Symbol" : typeof e == "bigint" ? "BigInt" : n(e);
|
|
5762
5834
|
};
|
|
5763
|
-
})),
|
|
5764
|
-
var n =
|
|
5835
|
+
})), Yn = /* @__PURE__ */ t(((e, t) => {
|
|
5836
|
+
var n = Un(), r = Mt(), i = Tn(), a = Kn(), o = Vn(), s = Vt(), c = Jn(), l = Jt(), u = Wt(), d = Q(), f = Z(), p = X(), m = d("String.prototype.indexOf"), h = f("%RegExp%"), g = "flags" in h.prototype, _ = function(e, t) {
|
|
5765
5837
|
var n, i = "flags" in t ? r(t, "flags") : s(l(t));
|
|
5766
5838
|
return n = g && typeof i == "string" ? new e(t, i) : e === h ? new e(t.source, i) : new e(t, i), {
|
|
5767
5839
|
flags: i,
|
|
@@ -5774,13 +5846,13 @@ var V, re, H, U, W, ie, G, ae, oe, se, K = e((() => {
|
|
|
5774
5846
|
var l = s(e), u = _(a(t, h), t), d = u.flags, f = u.matcher;
|
|
5775
5847
|
return i(f, "lastIndex", o(r(t, "lastIndex")), !0), n(f, l, m(d, "g") > -1, m(d, "u") > -1);
|
|
5776
5848
|
}, "[Symbol.matchAll]", !0);
|
|
5777
|
-
})),
|
|
5778
|
-
var n =
|
|
5849
|
+
})), Xn = /* @__PURE__ */ t(((e, t) => {
|
|
5850
|
+
var n = it()(), r = Yn();
|
|
5779
5851
|
t.exports = function() {
|
|
5780
5852
|
return !n || typeof Symbol.matchAll != "symbol" || typeof RegExp.prototype[Symbol.matchAll] != "function" ? r : RegExp.prototype[Symbol.matchAll];
|
|
5781
5853
|
};
|
|
5782
|
-
})),
|
|
5783
|
-
var n =
|
|
5854
|
+
})), Zn = /* @__PURE__ */ t(((e, t) => {
|
|
5855
|
+
var n = Ot(), r = Mt(), i = It(), a = Bt(), o = Vt(), s = Ht(), c = Q(), l = it()(), u = Jt(), d = Z(), f = X(), p = d("%RegExp%"), m = c("String.prototype.indexOf"), h = Xn(), g = function(e) {
|
|
5784
5856
|
var t = h();
|
|
5785
5857
|
if (l && typeof Symbol.matchAll == "symbol") {
|
|
5786
5858
|
var n = i(e, Symbol.matchAll);
|
|
@@ -5801,8 +5873,8 @@ var V, re, H, U, W, ie, G, ae, oe, se, K = e((() => {
|
|
|
5801
5873
|
var l = o(t), d = new p(e, "g");
|
|
5802
5874
|
return n(g(d), d, [l]);
|
|
5803
5875
|
};
|
|
5804
|
-
})),
|
|
5805
|
-
var n =
|
|
5876
|
+
})), Qn = /* @__PURE__ */ t(((e, t) => {
|
|
5877
|
+
var n = Zn();
|
|
5806
5878
|
t.exports = function() {
|
|
5807
5879
|
if (String.prototype.matchAll) try {
|
|
5808
5880
|
"".matchAll(RegExp.prototype);
|
|
@@ -5811,8 +5883,8 @@ var V, re, H, U, W, ie, G, ae, oe, se, K = e((() => {
|
|
|
5811
5883
|
}
|
|
5812
5884
|
return n;
|
|
5813
5885
|
};
|
|
5814
|
-
})),
|
|
5815
|
-
var n =
|
|
5886
|
+
})), $n = /* @__PURE__ */ t(((e, t) => {
|
|
5887
|
+
var n = Tt(), r = it()(), i = tt(), a = Qn(), o = Xn(), s = Object.defineProperty;
|
|
5816
5888
|
t.exports = function() {
|
|
5817
5889
|
var e = a();
|
|
5818
5890
|
if (n(String.prototype, { matchAll: e }, { matchAll: function() {
|
|
@@ -5839,20 +5911,20 @@ var V, re, H, U, W, ie, G, ae, oe, se, K = e((() => {
|
|
|
5839
5911
|
}
|
|
5840
5912
|
return e;
|
|
5841
5913
|
};
|
|
5842
|
-
})),
|
|
5843
|
-
var n =
|
|
5914
|
+
})), er = /* @__PURE__ */ t(((e, t) => {
|
|
5915
|
+
var n = xt(), r = Tt(), i = Zn(), a = Qn(), o = $n(), s = n(i);
|
|
5844
5916
|
r(s, {
|
|
5845
5917
|
getPolyfill: a,
|
|
5846
5918
|
implementation: i,
|
|
5847
5919
|
shim: o
|
|
5848
5920
|
}), t.exports = s;
|
|
5849
|
-
})),
|
|
5921
|
+
})), tr = /* @__PURE__ */ t(((e, t) => {
|
|
5850
5922
|
i();
|
|
5851
|
-
var o = A(), s = F(), c = I(), l = q(), u = P(), d = ye(), f =
|
|
5923
|
+
var o = A(), s = F(), c = I(), l = q(), u = P(), d = ye(), f = Re(), p = j(), m = a(), h = /\${?([\w\d]+)}?/g, g = p.EventEmitter || p.default || p;
|
|
5852
5924
|
String.prototype.regexIndexOf = function(e, t) {
|
|
5853
5925
|
let n = this.substring(t || 0).search(e);
|
|
5854
5926
|
return n >= 0 ? n + (t || 0) : n;
|
|
5855
|
-
},
|
|
5927
|
+
}, er().shim();
|
|
5856
5928
|
var _ = class e extends g {
|
|
5857
5929
|
constructor(t) {
|
|
5858
5930
|
super();
|
|
@@ -5894,18 +5966,18 @@ var V, re, H, U, W, ie, G, ae, oe, se, K = e((() => {
|
|
|
5894
5966
|
this.onCommand(`source ${e}`);
|
|
5895
5967
|
}
|
|
5896
5968
|
onCommand(t, n = !0) {
|
|
5897
|
-
let r = this._splitInput(t), i = !0,
|
|
5898
|
-
if (!
|
|
5899
|
-
n === "&&" ?
|
|
5969
|
+
let r = this._splitInput(t), i = this._groupPipes(r), a = !0, o = i.reduce((e, { commands: t, op: n }) => e.then(() => {
|
|
5970
|
+
if (!a) {
|
|
5971
|
+
n === "&&" ? a = this._lastCode === 0 : n === "||" ? a = this._lastCode !== 0 : n === ";" && (a = !0);
|
|
5900
5972
|
return;
|
|
5901
5973
|
}
|
|
5902
|
-
return this.
|
|
5903
|
-
n === "&&" ?
|
|
5974
|
+
return this._runPipeChain(t).then(() => {
|
|
5975
|
+
n === "&&" ? a = this._lastCode === 0 : n === "||" ? a = this._lastCode !== 0 : n === ";" && (a = !0);
|
|
5904
5976
|
});
|
|
5905
5977
|
}), Promise.resolve());
|
|
5906
|
-
return n ?
|
|
5978
|
+
return n ? o.then(() => {
|
|
5907
5979
|
this.destroyed || this.emit("status", e.STATUS_READY);
|
|
5908
|
-
}).catch(() => this.emit("status", e.STATUS_READY)) :
|
|
5980
|
+
}).catch(() => this.emit("status", e.STATUS_READY)) : o;
|
|
5909
5981
|
}
|
|
5910
5982
|
tabCompletion(e) {
|
|
5911
5983
|
return this.context.fs.autoComplete(e, this.path);
|
|
@@ -6015,6 +6087,13 @@ var V, re, H, U, W, ie, G, ae, oe, se, K = e((() => {
|
|
|
6015
6087
|
}), n = "", r += 2;
|
|
6016
6088
|
continue;
|
|
6017
6089
|
}
|
|
6090
|
+
if (o === "|") {
|
|
6091
|
+
t.push({
|
|
6092
|
+
command: n.trim(),
|
|
6093
|
+
op: "|"
|
|
6094
|
+
}), n = "", r++;
|
|
6095
|
+
continue;
|
|
6096
|
+
}
|
|
6018
6097
|
if (o === ";") {
|
|
6019
6098
|
t.push({
|
|
6020
6099
|
command: n.trim(),
|
|
@@ -6108,6 +6187,39 @@ var V, re, H, U, W, ie, G, ae, oe, se, K = e((() => {
|
|
|
6108
6187
|
let n = [];
|
|
6109
6188
|
return t.on("stdOut", (e) => n.push(e)), await t.onCommand(e, !1), n.join("\n").trimEnd();
|
|
6110
6189
|
}
|
|
6190
|
+
_groupPipes(e) {
|
|
6191
|
+
let t = [], n = [];
|
|
6192
|
+
for (let { command: r, op: i } of e) n.push(r), i !== "|" && (t.push({
|
|
6193
|
+
commands: n,
|
|
6194
|
+
op: i
|
|
6195
|
+
}), n = []);
|
|
6196
|
+
return n.length && t.push({
|
|
6197
|
+
commands: n,
|
|
6198
|
+
op: null
|
|
6199
|
+
}), t;
|
|
6200
|
+
}
|
|
6201
|
+
async _runPipeChain(e) {
|
|
6202
|
+
if (e.length === 1) return this._runCommand(e[0]);
|
|
6203
|
+
let t;
|
|
6204
|
+
for (let n = 0; n < e.length; n++) if (n === e.length - 1) {
|
|
6205
|
+
t !== void 0 && (this._stdin = t);
|
|
6206
|
+
try {
|
|
6207
|
+
await this._runCommand(e[n]);
|
|
6208
|
+
} finally {
|
|
6209
|
+
delete this._stdin;
|
|
6210
|
+
}
|
|
6211
|
+
} else t = await this._captureForPipe(e[n], t);
|
|
6212
|
+
}
|
|
6213
|
+
async _captureForPipe(e, t) {
|
|
6214
|
+
let n = new r.shell({
|
|
6215
|
+
cwd: this.context.fs.cwd,
|
|
6216
|
+
filesystem: this.context.fs.getRaw(),
|
|
6217
|
+
permissions: this.context.fs.getRawPermissions()
|
|
6218
|
+
});
|
|
6219
|
+
n.context.source(this.context), t !== void 0 && (n.stdin = t);
|
|
6220
|
+
let i = [];
|
|
6221
|
+
return n.on("stdOut", (e) => i.push(e)), n.on("stdErr", (e) => this.emit("stdErr", e)), await n.onCommand(e, !1), this.lastCode = n.lastCode, i.join("\n");
|
|
6222
|
+
}
|
|
6111
6223
|
static _splitCommand(e) {
|
|
6112
6224
|
let t = /\s/g, n = !1, r = !1, i = 0, a = [], o = !1, s = [];
|
|
6113
6225
|
for (let c = 0; c < e.length; c++) {
|
|
@@ -6153,7 +6265,7 @@ var V, re, H, U, W, ie, G, ae, oe, se, K = e((() => {
|
|
|
6153
6265
|
}
|
|
6154
6266
|
};
|
|
6155
6267
|
_.STATUS_READY = "READY", _.STATUS_WORKING = "WORKING", _.STATUS_DESTROYED = "DESTROYED", _.Command = u, _.FS = m, r.shell = _, t.exports = _;
|
|
6156
|
-
})),
|
|
6268
|
+
})), nr = /* @__PURE__ */ t(((e) => {
|
|
6157
6269
|
(function(t, n) {
|
|
6158
6270
|
if (typeof define == "function" && define.amd) define(["exports"], n);
|
|
6159
6271
|
else if (typeof e == "object" && typeof e.nodeName != "string") n(e);
|
|
@@ -6494,8 +6606,8 @@ var V, re, H, U, W, ie, G, ae, oe, se, K = e((() => {
|
|
|
6494
6606
|
}
|
|
6495
6607
|
Object.defineProperty(e, "__esModule", { value: !0 }), e.default = r;
|
|
6496
6608
|
});
|
|
6497
|
-
})),
|
|
6498
|
-
var n =
|
|
6609
|
+
})), rr = /* @__PURE__ */ t((() => {})), ir = /* @__PURE__ */ t(((e, t) => {
|
|
6610
|
+
var n = tr(), r = nr(), i = r?.default ?? r, a = "/.brsh_history";
|
|
6499
6611
|
t.exports = class {
|
|
6500
6612
|
constructor(e) {
|
|
6501
6613
|
let { el: t, font: r = "Roboto Mono", cursor: a = "none", outputAnimation: o = "none", animateSpeed: s = 1, onExit: c = null, mobileInput: l = "click", lineWrap: u = !1 } = e;
|
|
@@ -6722,9 +6834,9 @@ var V, re, H, U, W, ie, G, ae, oe, se, K = e((() => {
|
|
|
6722
6834
|
}
|
|
6723
6835
|
}
|
|
6724
6836
|
}
|
|
6725
|
-
},
|
|
6837
|
+
}, rr();
|
|
6726
6838
|
}));
|
|
6727
6839
|
//#endregion
|
|
6728
|
-
export default
|
|
6840
|
+
export default ir();
|
|
6729
6841
|
|
|
6730
6842
|
//# sourceMappingURL=terminal.es.js.map
|