@pie-element/number-line 13.1.2-next.2 → 13.1.2-next.4
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/browser/author/index.js +16031 -10128
- package/dist/browser/author/index.js.map +1 -1
- package/dist/browser/controller/index.js +2 -2
- package/dist/browser/delivery/index.js +1 -1
- package/dist/browser/{delivery-DWjDT9Sz.js → delivery-bcOQIdko.js} +3457 -3414
- package/dist/browser/delivery-bcOQIdko.js.map +1 -0
- package/dist/browser/{dist-D5T-OaLo.js → dist-BnIaVPcz.js} +1408 -1404
- package/dist/browser/{dist-D5T-OaLo.js.map → dist-BnIaVPcz.js.map} +1 -1
- package/dist/browser/{impureFunctionsAny.generated-Bqfato71.js → impureFunctionsAny.generated-BwG6hrJc.js} +1046 -1046
- package/dist/browser/{impureFunctionsAny.generated-Bqfato71.js.map → impureFunctionsAny.generated-BwG6hrJc.js.map} +1 -1
- package/dist/index.iife.js +30 -30
- package/package.json +1 -1
- package/dist/browser/delivery-DWjDT9Sz.js.map +0 -1
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { $ as e, $a as t, $i as n, $n as r, $o as i, $r as a, $t as o, A as s, Aa as c, Ai as l, An as u, Ao as d, Ar as f, As as p, At as m, B as h, Ba as g, Bi as _, Bn as v, Bo as y, Br as b, Bt as x, C as S, Ca as C, Ci as w, Cn as T, Co as E, Cr as D, Cs as O, Ct as k, D as A, Da as j, Di as M, Dn as N, Do as P, Dr as F, Ds as
|
|
1
|
+
import { $ as e, $a as t, $i as n, $n as r, $o as i, $r as a, $t as o, A as s, Aa as c, Ai as l, An as u, Ao as d, Ar as f, As as p, At as m, B as h, Ba as g, Bi as _, Bn as v, Bo as y, Br as b, Bt as x, C as S, Ca as C, Ci as w, Cn as T, Co as E, Cr as D, Cs as O, Ct as k, D as A, Da as j, Di as M, Dn as N, Do as P, Dr as F, Ds as I, Dt as ee, E as te, Ea as L, Ei as ne, En as re, Eo as ie, Er as R, Es as ae, Et as oe, F as se, Fa as ce, Fi as le, Fn as ue, Fo as de, Fr as fe, Ft as pe, G as me, Ga as he, Gi as ge, Gn as _e, Go as z, Gr as ve, Gt as ye, H as be, Ha as xe, Hi as Se, Hn as Ce, Ho as we, Hr as Te, Ht as Ee, I as De, Ia as Oe, Ii as ke, In as Ae, Io as je, Ir as Me, It as B, J as Ne, Ja as Pe, Ji as Fe, Jn as Ie, Jo as Le, Jr as Re, Jt as ze, K as Be, Ka as Ve, Ki as He, Kn as Ue, Ko as We, Kr as Ge, Kt as Ke, L as qe, La as Je, Li as Ye, Ln as Xe, Lo as Ze, Lr as Qe, Ls as $e, Lt as et, M as tt, Ma as nt, Mi as rt, Mn as it, Mo as at, Mr as ot, Ms as st, Mt as ct, N as lt, Na as ut, Ni as dt, Nn as ft, No as pt, Nr as mt, Ns as ht, Nt as gt, O as _t, Oa as vt, Oi as yt, On as bt, Oo as xt, Or as St, Os as Ct, Ot as wt, P as Tt, Pa as Et, Pi as Dt, Pn as Ot, Po as kt, Pr as At, Ps as jt, Pt as Mt, Q as V, Qa as Nt, Qi as Pt, Qn as Ft, Qo as It, Qr as Lt, Qt as Rt, R as zt, Ra as Bt, Ri as Vt, Rn as Ht, Ro as Ut, Rr as H, Rt as Wt, S as Gt, Sa as Kt, Si as qt, Sn as Jt, So as Yt, Sr as Xt, Ss as Zt, St as Qt, T as $t, Ta as en, Ti as tn, Tn as nn, To as rn, Tr as an, Ts as on, Tt as sn, U as cn, Ua as ln, Ui as un, Un as dn, Uo as fn, Ur as pn, Ut as mn, V as hn, Va as gn, Vi as _n, Vn as vn, Vo as yn, Vr as bn, Vt as xn, W as Sn, Wa as U, Wi as Cn, Wn as wn, Wo as Tn, Wr as En, Wt as Dn, X as On, Xa as kn, Xi as An, Xn as jn, Xo as Mn, Xr as Nn, Xt as Pn, Y as Fn, Ya as In, Yi as Ln, Yn as Rn, Yo as W, Yr as zn, Yt as Bn, Z as Vn, Za as Hn, Zi as Un, Zn as Wn, Zo as Gn, Zr as Kn, Zt as qn, _a as Jn, _i as Yn, _n as Xn, _o as Zn, _r as Qn, _s as $n, _t as er, aa as tr, ai as nr, an as rr, ao as ir, ar, as as G, at as or, ba as sr, bi as cr, bn as lr, bo as ur, br as dr, bs as K, bt as fr, ca as pr, ci as mr, cn as hr, co as gr, cr as _r, cs as vr, ct as yr, da as br, di as xr, dn as Sr, do as Cr, dr as wr, ds as Tr, dt as Er, ea as Dr, ei as Or, en as kr, eo as Ar, er as jr, es as Mr, et as Nr, fa as Pr, fi as Fr, fn as Ir, fo as Lr, fr as Rr, fs as zr, ft as Br, ga as Vr, gi as Hr, gn as Ur, go as Wr, gr as Gr, gs as q, gt as Kr, ha as qr, hi as Jr, hn as Yr, ho as Xr, hr as Zr, hs as Qr, ht as $r, ia as ei, ii as ti, in as ni, io as ri, ir as ii, is as ai, it as oi, j as si, ja as ci, ji as li, jn as ui, jo as di, jr as fi, js as pi, jt as mi, k as hi, ka as gi, ki as _i, kn as vi, ko as yi, kr as bi, ks as xi, kt as Si, la as Ci, li as wi, ln as Ti, lo as Ei, lr as Di, ls as Oi, lt as ki, ma as Ai, mi as ji, mn as Mi, mo as Ni, mr as Pi, ms as Fi, mt as Ii, na as Li, ni as Ri, nn as zi, no as Bi, nr as Vi, ns as Hi, nt as Ui, oa as Wi, oi as Gi, on as Ki, oo as qi, or as Ji, os as Yi, ot as Xi, pa as Zi, pi as Qi, pn as $i, po as ea, pr as ta, ps as J, pt as na, q as ra, qa as ia, qi as aa, qn as oa, qo as sa, qr as ca, qt as la, ra as ua, ri as da, rn as fa, ro as pa, rr as ma, rs as ha, rt as ga, sa as _a, si as va, sn as ya, so as ba, sr as xa, ss as Sa, st as Ca, ta as wa, ti as Ta, tn as Ea, to as Da, tr as Oa, ts as ka, tt as Aa, ua as ja, ui as Ma, un as Na, uo as Pa, ur as Fa, us as Ia, ut as La, va as Ra, vi as za, vn as Ba, vo as Y, vr as Va, vs as Ha, vt as Ua, w as Wa, wa as Ga, wi as Ka, wn as qa, wo as Ja, wr as Ya, ws as Xa, wt as Za, x as Qa, xa as $a, xi as eo, xn as to, xo as no, xr as ro, xs as io, xt as ao, ya as oo, yi as so, yn as co, yo as lo, yr as uo, ys as fo, yt as po, z as mo, za as ho, zi as go, zn as _o, zo as vo, zr as yo, zt as bo } from "./dist-BnIaVPcz.js";
|
|
2
2
|
//#region ../../../node_modules/.bun/mathjs@15.2.0/node_modules/mathjs/lib/esm/expression/keywords.js
|
|
3
3
|
var xo = new Set(["end"]), So = /* #__PURE__ */ z("Node", ["mathWithTransform"], (e) => {
|
|
4
4
|
var { mathWithTransform: t } = e;
|
|
@@ -18,7 +18,7 @@ var xo = new Set(["end"]), So = /* #__PURE__ */ z("Node", ["mathWithTransform"],
|
|
|
18
18
|
compile() {
|
|
19
19
|
var e = this._compile(t, {}), r = {}, i = null;
|
|
20
20
|
function a(t) {
|
|
21
|
-
var a =
|
|
21
|
+
var a = I(t);
|
|
22
22
|
return n(a), e(a, r, i);
|
|
23
23
|
}
|
|
24
24
|
return { evaluate: a };
|
|
@@ -33,7 +33,7 @@ var xo = new Set(["end"]), So = /* #__PURE__ */ z("Node", ["mathWithTransform"],
|
|
|
33
33
|
throw Error("Cannot run map on a Node interface");
|
|
34
34
|
}
|
|
35
35
|
_ifNode(e) {
|
|
36
|
-
if (!
|
|
36
|
+
if (!J(e)) throw TypeError("Callback function must return a Node");
|
|
37
37
|
return e;
|
|
38
38
|
}
|
|
39
39
|
traverse(e) {
|
|
@@ -67,7 +67,7 @@ var xo = new Set(["end"]), So = /* #__PURE__ */ z("Node", ["mathWithTransform"],
|
|
|
67
67
|
});
|
|
68
68
|
}
|
|
69
69
|
equals(e) {
|
|
70
|
-
return e ? this.type === e.type &&
|
|
70
|
+
return e ? this.type === e.type && Le(this, e) : !1;
|
|
71
71
|
}
|
|
72
72
|
toString(e) {
|
|
73
73
|
var t = this._getCustomString(e);
|
|
@@ -116,7 +116,7 @@ var xo = new Set(["end"]), So = /* #__PURE__ */ z("Node", ["mathWithTransform"],
|
|
|
116
116
|
//#endregion
|
|
117
117
|
//#region ../../../node_modules/.bun/mathjs@15.2.0/node_modules/mathjs/lib/esm/expression/transform/utils/errorTransform.js
|
|
118
118
|
function X(e) {
|
|
119
|
-
return e && e.isIndexError ? new
|
|
119
|
+
return e && e.isIndexError ? new vo(e.index + 1, e.min + 1, e.max === void 0 ? void 0 : e.max + 1) : e;
|
|
120
120
|
}
|
|
121
121
|
//#endregion
|
|
122
122
|
//#region ../../../node_modules/.bun/mathjs@15.2.0/node_modules/mathjs/lib/esm/expression/node/utils/access.js
|
|
@@ -129,7 +129,7 @@ function Co(e) {
|
|
|
129
129
|
if (typeof e == "string") return t(e, n);
|
|
130
130
|
if (typeof e == "object") {
|
|
131
131
|
if (!n.isObjectProperty()) throw TypeError("Cannot apply a numeric index as object property");
|
|
132
|
-
return
|
|
132
|
+
return p(e, n.getObjectProperty());
|
|
133
133
|
} else throw TypeError("Cannot apply index: unsupported type of object");
|
|
134
134
|
} catch (e) {
|
|
135
135
|
throw X(e);
|
|
@@ -140,14 +140,14 @@ function Co(e) {
|
|
|
140
140
|
//#region ../../../node_modules/.bun/mathjs@15.2.0/node_modules/mathjs/lib/esm/expression/node/AccessorNode.js
|
|
141
141
|
var wo = "AccessorNode", To = /* #__PURE__ */ z(wo, ["subset", "Node"], (e) => {
|
|
142
142
|
var { subset: t, Node: n } = e, r = Co({ subset: t });
|
|
143
|
-
function
|
|
144
|
-
return !(
|
|
143
|
+
function a(e) {
|
|
144
|
+
return !(Gn(e) || i(e) || G(e) || Oi(e) || Qr(e) || $n(e) || K(e));
|
|
145
145
|
}
|
|
146
|
-
class
|
|
146
|
+
class o extends n {
|
|
147
147
|
constructor(e, t) {
|
|
148
148
|
var n = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : !1;
|
|
149
|
-
if (super(), !
|
|
150
|
-
if (!
|
|
149
|
+
if (super(), !J(e)) throw TypeError("Node expected for parameter \"object\"");
|
|
150
|
+
if (!Tr(t)) throw TypeError("IndexNode expected for parameter \"index\"");
|
|
151
151
|
this.object = e, this.index = t, this.optionalChaining = n;
|
|
152
152
|
}
|
|
153
153
|
get name() {
|
|
@@ -160,7 +160,7 @@ var wo = "AccessorNode", To = /* #__PURE__ */ z(wo, ["subset", "Node"], (e) => {
|
|
|
160
160
|
return !0;
|
|
161
161
|
}
|
|
162
162
|
_compile(e, t) {
|
|
163
|
-
var n = this.object._compile(e, t), i = this.index._compile(e, t), a = this.optionalChaining, o =
|
|
163
|
+
var n = this.object._compile(e, t), i = this.index._compile(e, t), a = this.optionalChaining, o = Gn(this.object) && this.object.optionalChaining;
|
|
164
164
|
if (this.index.isObjectProperty()) {
|
|
165
165
|
var s = this.index.getObjectProperty();
|
|
166
166
|
return function(e, t, r) {
|
|
@@ -169,7 +169,7 @@ var wo = "AccessorNode", To = /* #__PURE__ */ z(wo, ["subset", "Node"], (e) => {
|
|
|
169
169
|
i.optionalShortCircuit = !0;
|
|
170
170
|
return;
|
|
171
171
|
}
|
|
172
|
-
if (!(o && i != null && i.optionalShortCircuit)) return
|
|
172
|
+
if (!(o && i != null && i.optionalShortCircuit)) return p(c, s);
|
|
173
173
|
};
|
|
174
174
|
} else return function(e, t, s) {
|
|
175
175
|
var c = s || {}, l = n(e, t, c);
|
|
@@ -184,24 +184,24 @@ var wo = "AccessorNode", To = /* #__PURE__ */ z(wo, ["subset", "Node"], (e) => {
|
|
|
184
184
|
e(this.object, "object", this), e(this.index, "index", this);
|
|
185
185
|
}
|
|
186
186
|
map(e) {
|
|
187
|
-
return new
|
|
187
|
+
return new o(this._ifNode(e(this.object, "object", this)), this._ifNode(e(this.index, "index", this)), this.optionalChaining);
|
|
188
188
|
}
|
|
189
189
|
clone() {
|
|
190
|
-
return new
|
|
190
|
+
return new o(this.object, this.index, this.optionalChaining);
|
|
191
191
|
}
|
|
192
192
|
_toString(e) {
|
|
193
193
|
var t = this.object.toString(e);
|
|
194
|
-
|
|
194
|
+
a(this.object) && (t = "(" + t + ")");
|
|
195
195
|
var n = this.optionalChaining ? this.index.dotNotation ? "?" : "?." : "";
|
|
196
196
|
return t + n + this.index.toString(e);
|
|
197
197
|
}
|
|
198
198
|
_toHTML(e) {
|
|
199
199
|
var t = this.object.toHTML(e);
|
|
200
|
-
return
|
|
200
|
+
return a(this.object) && (t = "<span class=\"math-parenthesis math-round-parenthesis\">(</span>" + t + "<span class=\"math-parenthesis math-round-parenthesis\">)</span>"), t + this.index.toHTML(e);
|
|
201
201
|
}
|
|
202
202
|
_toTex(e) {
|
|
203
203
|
var t = this.object.toTex(e);
|
|
204
|
-
return
|
|
204
|
+
return a(this.object) && (t = "\\left(' + object + '\\right)"), t + this.index.toTex(e);
|
|
205
205
|
}
|
|
206
206
|
toJSON() {
|
|
207
207
|
return {
|
|
@@ -212,10 +212,10 @@ var wo = "AccessorNode", To = /* #__PURE__ */ z(wo, ["subset", "Node"], (e) => {
|
|
|
212
212
|
};
|
|
213
213
|
}
|
|
214
214
|
static fromJSON(e) {
|
|
215
|
-
return new
|
|
215
|
+
return new o(e.object, e.index, e.optionalChaining);
|
|
216
216
|
}
|
|
217
217
|
}
|
|
218
|
-
return
|
|
218
|
+
return Y(o, "name", wo), o;
|
|
219
219
|
}, {
|
|
220
220
|
isClass: !0,
|
|
221
221
|
isNode: !0
|
|
@@ -223,7 +223,7 @@ var wo = "AccessorNode", To = /* #__PURE__ */ z(wo, ["subset", "Node"], (e) => {
|
|
|
223
223
|
var { Node: t } = e;
|
|
224
224
|
class n extends t {
|
|
225
225
|
constructor(e) {
|
|
226
|
-
if (super(), this.items = e || [], !Array.isArray(this.items) || !this.items.every(
|
|
226
|
+
if (super(), this.items = e || [], !Array.isArray(this.items) || !this.items.every(J)) throw TypeError("Array containing Nodes expected");
|
|
227
227
|
}
|
|
228
228
|
get type() {
|
|
229
229
|
return Eo;
|
|
@@ -232,18 +232,18 @@ var wo = "AccessorNode", To = /* #__PURE__ */ z(wo, ["subset", "Node"], (e) => {
|
|
|
232
232
|
return !0;
|
|
233
233
|
}
|
|
234
234
|
_compile(e, t) {
|
|
235
|
-
var n =
|
|
235
|
+
var n = Ut(this.items, function(n) {
|
|
236
236
|
return n._compile(e, t);
|
|
237
237
|
});
|
|
238
238
|
if (e.config.matrix !== "Array") {
|
|
239
239
|
var r = e.matrix;
|
|
240
240
|
return function(e, t, i) {
|
|
241
|
-
return r(
|
|
241
|
+
return r(Ut(n, function(n) {
|
|
242
242
|
return n(e, t, i);
|
|
243
243
|
}));
|
|
244
244
|
};
|
|
245
245
|
} else return function(e, t, r) {
|
|
246
|
-
return
|
|
246
|
+
return Ut(n, function(n) {
|
|
247
247
|
return n(e, t, r);
|
|
248
248
|
});
|
|
249
249
|
};
|
|
@@ -282,15 +282,15 @@ var wo = "AccessorNode", To = /* #__PURE__ */ z(wo, ["subset", "Node"], (e) => {
|
|
|
282
282
|
}
|
|
283
283
|
_toTex(e) {
|
|
284
284
|
function t(n, r) {
|
|
285
|
-
var
|
|
285
|
+
var a = n.some(i) && !n.every(i), o = r || a, s = o ? "&" : "\\\\", c = n.map(function(n) {
|
|
286
286
|
return n.items ? t(n.items, !r) : n.toTex(e);
|
|
287
|
-
}).join(
|
|
288
|
-
return
|
|
287
|
+
}).join(s);
|
|
288
|
+
return a || !o || o && !r ? "\\begin{bmatrix}" + c + "\\end{bmatrix}" : c;
|
|
289
289
|
}
|
|
290
290
|
return t(this.items, !1);
|
|
291
291
|
}
|
|
292
292
|
}
|
|
293
|
-
return
|
|
293
|
+
return Y(n, "name", Eo), n;
|
|
294
294
|
}, {
|
|
295
295
|
isClass: !0,
|
|
296
296
|
isNode: !0
|
|
@@ -308,7 +308,7 @@ function Oo(e) {
|
|
|
308
308
|
if (typeof e == "string") return t(e, r, i);
|
|
309
309
|
if (typeof e == "object") {
|
|
310
310
|
if (!r.isObjectProperty()) throw TypeError("Cannot apply a numeric index as object property");
|
|
311
|
-
return
|
|
311
|
+
return st(e, r.getObjectProperty(), i), e;
|
|
312
312
|
} else throw TypeError("Cannot apply index: unsupported type of object");
|
|
313
313
|
} catch (e) {
|
|
314
314
|
throw X(e);
|
|
@@ -524,7 +524,7 @@ var ko = [
|
|
|
524
524
|
];
|
|
525
525
|
function Ao(e, t) {
|
|
526
526
|
if (!t || t !== "auto") return e;
|
|
527
|
-
for (var n = e;
|
|
527
|
+
for (var n = e; $n(n);) n = n.content;
|
|
528
528
|
return n;
|
|
529
529
|
}
|
|
530
530
|
function Z(e, t, n, r) {
|
|
@@ -536,7 +536,7 @@ function Z(e, t, n, r) {
|
|
|
536
536
|
}
|
|
537
537
|
if (a === "OperatorNode:multiply" && i.implicit && n !== "show") {
|
|
538
538
|
var c = Ao(i.args[0], t);
|
|
539
|
-
!(
|
|
539
|
+
!(G(c) && r && r.getIdentifier() === "OperatorNode:divide" && Zt(Ao(r.args[0], t))) && !(c.getIdentifier() === "OperatorNode:divide" && Zt(Ao(c.args[0], t)) && G(Ao(c.args[1]))) && (o += 1);
|
|
540
540
|
}
|
|
541
541
|
return o;
|
|
542
542
|
}
|
|
@@ -546,7 +546,7 @@ function jo(e, t) {
|
|
|
546
546
|
var r = n.getIdentifier(), i = Z(n, t);
|
|
547
547
|
if (i === null) return null;
|
|
548
548
|
var a = ko[i][r];
|
|
549
|
-
if (
|
|
549
|
+
if (W(a, "associativity")) {
|
|
550
550
|
if (a.associativity === "left") return "left";
|
|
551
551
|
if (a.associativity === "right") return "right";
|
|
552
552
|
throw Error("'" + r + "' has the invalid associativity '" + a.associativity + "'.");
|
|
@@ -557,7 +557,7 @@ function Mo(e, t, n) {
|
|
|
557
557
|
var r = n === "keep" ? e : e.getContent(), i = n === "keep" ? t : e.getContent(), a = r.getIdentifier(), o = i.getIdentifier(), s = Z(r, n);
|
|
558
558
|
if (s === null) return null;
|
|
559
559
|
var c = ko[s][a];
|
|
560
|
-
if (
|
|
560
|
+
if (W(c, "associativeWith") && c.associativeWith instanceof Array) {
|
|
561
561
|
for (var l = 0; l < c.associativeWith.length; l++) if (c.associativeWith[l] === o) return !0;
|
|
562
562
|
return !1;
|
|
563
563
|
}
|
|
@@ -586,10 +586,10 @@ var Po = "AssignmentNode", Fo = /* #__PURE__ */ z(Po, [
|
|
|
586
586
|
}
|
|
587
587
|
class s extends r {
|
|
588
588
|
constructor(e, t, n) {
|
|
589
|
-
if (super(), this.object = e, this.index = n ? t : null, this.value = n || t, !
|
|
590
|
-
if (
|
|
591
|
-
if (this.index && !
|
|
592
|
-
if (!
|
|
589
|
+
if (super(), this.object = e, this.index = n ? t : null, this.value = n || t, !K(e) && !Gn(e)) throw TypeError("SymbolNode or AccessorNode expected as \"object\"");
|
|
590
|
+
if (K(e) && e.name === "end") throw Error("Cannot assign to symbol \"end\"");
|
|
591
|
+
if (this.index && !Tr(this.index)) throw TypeError("IndexNode expected as \"index\"");
|
|
592
|
+
if (!J(this.value)) throw TypeError("Node expected as \"value\"");
|
|
593
593
|
}
|
|
594
594
|
get name() {
|
|
595
595
|
return this.index ? this.index.isObjectProperty() ? this.index.getObjectProperty() : "" : this.object.name || "";
|
|
@@ -603,7 +603,7 @@ var Po = "AssignmentNode", Fo = /* #__PURE__ */ z(Po, [
|
|
|
603
603
|
_compile(e, t) {
|
|
604
604
|
var n = this.object._compile(e, t), r = this.index ? this.index._compile(e, t) : null, o = this.value._compile(e, t), s = this.object.name;
|
|
605
605
|
if (!this.index) {
|
|
606
|
-
if (!
|
|
606
|
+
if (!K(this.object)) throw TypeError("SymbolNode expected as object");
|
|
607
607
|
return function(e, t, n) {
|
|
608
608
|
var r = o(e, t, n);
|
|
609
609
|
return e.set(s, r), r;
|
|
@@ -612,9 +612,9 @@ var Po = "AssignmentNode", Fo = /* #__PURE__ */ z(Po, [
|
|
|
612
612
|
var c = this.index.getObjectProperty();
|
|
613
613
|
return function(e, t, r) {
|
|
614
614
|
var i = n(e, t, r), a = o(e, t, r);
|
|
615
|
-
return
|
|
615
|
+
return st(i, c, a), a;
|
|
616
616
|
};
|
|
617
|
-
} else if (
|
|
617
|
+
} else if (K(this.object)) return function(e, t, i) {
|
|
618
618
|
var c = n(e, t, i), l = o(e, t, i), u = r(e, t, c);
|
|
619
619
|
return e.set(s, a(c, u, l)), l;
|
|
620
620
|
};
|
|
@@ -623,8 +623,8 @@ var Po = "AssignmentNode", Fo = /* #__PURE__ */ z(Po, [
|
|
|
623
623
|
if (this.object.index.isObjectProperty()) {
|
|
624
624
|
var u = this.object.index.getObjectProperty();
|
|
625
625
|
return function(e, t, n) {
|
|
626
|
-
var i = l(e, t, n), s =
|
|
627
|
-
return
|
|
626
|
+
var i = l(e, t, n), s = p(i, u), c = r(e, t, s), d = o(e, t, n);
|
|
627
|
+
return st(i, u, a(s, c, d)), d;
|
|
628
628
|
};
|
|
629
629
|
} else {
|
|
630
630
|
var d = this.object.index._compile(e, t);
|
|
@@ -668,7 +668,7 @@ var Po = "AssignmentNode", Fo = /* #__PURE__ */ z(Po, [
|
|
|
668
668
|
return o(this, e && e.parenthesis, e && e.implicit) && (r = `\\left(${r}\\right)`), t + n + "=" + r;
|
|
669
669
|
}
|
|
670
670
|
}
|
|
671
|
-
return
|
|
671
|
+
return Y(s, "name", Po), s;
|
|
672
672
|
}, {
|
|
673
673
|
isClass: !0,
|
|
674
674
|
isNode: !0
|
|
@@ -679,7 +679,7 @@ var Po = "AssignmentNode", Fo = /* #__PURE__ */ z(Po, [
|
|
|
679
679
|
if (super(), !Array.isArray(e)) throw Error("Array expected");
|
|
680
680
|
this.blocks = e.map(function(e) {
|
|
681
681
|
var t = e && e.node, n = e && e.visible !== void 0 ? e.visible : !0;
|
|
682
|
-
if (!
|
|
682
|
+
if (!J(t)) throw TypeError("Property \"node\" must be a Node");
|
|
683
683
|
if (typeof n != "boolean") throw TypeError("Property \"visible\" must be a boolean");
|
|
684
684
|
return {
|
|
685
685
|
node: t,
|
|
@@ -694,7 +694,7 @@ var Po = "AssignmentNode", Fo = /* #__PURE__ */ z(Po, [
|
|
|
694
694
|
return !0;
|
|
695
695
|
}
|
|
696
696
|
_compile(e, n) {
|
|
697
|
-
var r =
|
|
697
|
+
var r = Ut(this.blocks, function(t) {
|
|
698
698
|
return {
|
|
699
699
|
evaluate: t.node._compile(e, n),
|
|
700
700
|
visible: t.visible
|
|
@@ -702,7 +702,7 @@ var Po = "AssignmentNode", Fo = /* #__PURE__ */ z(Po, [
|
|
|
702
702
|
});
|
|
703
703
|
return function(e, n, i) {
|
|
704
704
|
var a = [];
|
|
705
|
-
return
|
|
705
|
+
return je(r, function(t) {
|
|
706
706
|
var r = t.evaluate(e, n, i);
|
|
707
707
|
t.visible && a.push(r);
|
|
708
708
|
}), new t(a);
|
|
@@ -754,7 +754,7 @@ var Po = "AssignmentNode", Fo = /* #__PURE__ */ z(Po, [
|
|
|
754
754
|
}).join("\\;\\;\n");
|
|
755
755
|
}
|
|
756
756
|
}
|
|
757
|
-
return
|
|
757
|
+
return Y(r, "name", Io), r;
|
|
758
758
|
}, {
|
|
759
759
|
isClass: !0,
|
|
760
760
|
isNode: !0
|
|
@@ -763,18 +763,18 @@ var Po = "AssignmentNode", Fo = /* #__PURE__ */ z(Po, [
|
|
|
763
763
|
function n(e) {
|
|
764
764
|
if (typeof e == "number" || typeof e == "boolean" || typeof e == "string") return !!e;
|
|
765
765
|
if (e) {
|
|
766
|
-
if (
|
|
767
|
-
if (
|
|
768
|
-
if (
|
|
766
|
+
if (ka(e)) return !e.isZero();
|
|
767
|
+
if (ai(e)) return !!(e.re || e.im);
|
|
768
|
+
if (io(e)) return !!e.value;
|
|
769
769
|
}
|
|
770
770
|
if (e == null) return !1;
|
|
771
|
-
throw TypeError("Unsupported type of condition \"" +
|
|
771
|
+
throw TypeError("Unsupported type of condition \"" + O(e) + "\"");
|
|
772
772
|
}
|
|
773
773
|
class r extends t {
|
|
774
774
|
constructor(e, t, n) {
|
|
775
|
-
if (super(), !
|
|
776
|
-
if (!
|
|
777
|
-
if (!
|
|
775
|
+
if (super(), !J(e)) throw TypeError("Parameter condition must be a Node");
|
|
776
|
+
if (!J(t)) throw TypeError("Parameter trueExpr must be a Node");
|
|
777
|
+
if (!J(n)) throw TypeError("Parameter falseExpr must be a Node");
|
|
778
778
|
this.condition = e, this.trueExpr = t, this.falseExpr = n;
|
|
779
779
|
}
|
|
780
780
|
get type() {
|
|
@@ -829,11 +829,11 @@ var Po = "AssignmentNode", Fo = /* #__PURE__ */ z(Po, [
|
|
|
829
829
|
return "\\begin{cases} {" + this.trueExpr.toTex(e) + "}, &\\quad{\\text{if }\\;" + this.condition.toTex(e) + "}\\\\{" + this.falseExpr.toTex(e) + "}, &\\quad{\\text{otherwise}}\\end{cases}";
|
|
830
830
|
}
|
|
831
831
|
}
|
|
832
|
-
return
|
|
832
|
+
return Y(r, "name", Ro), r;
|
|
833
833
|
}, {
|
|
834
834
|
isClass: !0,
|
|
835
835
|
isNode: !0
|
|
836
|
-
}), Bo = /* @__PURE__ */
|
|
836
|
+
}), Bo = /* @__PURE__ */ $e((/* @__PURE__ */ jt(((e, t) => {
|
|
837
837
|
var n = Object.assign || function(e) {
|
|
838
838
|
for (var t = 1; t < arguments.length; t++) {
|
|
839
839
|
var n = arguments[t];
|
|
@@ -1127,7 +1127,7 @@ function Go(e) {
|
|
|
1127
1127
|
return (0, Bo.default)(e, { preserveFormatting: !0 });
|
|
1128
1128
|
}
|
|
1129
1129
|
function Ko(e, t) {
|
|
1130
|
-
return t = t === void 0 ? !1 : t, t ?
|
|
1130
|
+
return t = t === void 0 ? !1 : t, t ? W(Wo, e) ? Wo[e] : "\\mathrm{" + Go(e) + "}" : W(Vo, e) ? Vo[e] : Go(e);
|
|
1131
1131
|
}
|
|
1132
1132
|
//#endregion
|
|
1133
1133
|
//#region ../../../node_modules/.bun/mathjs@15.2.0/node_modules/mathjs/lib/esm/expression/node/ConstantNode.js
|
|
@@ -1157,11 +1157,11 @@ var qo = "ConstantNode", Jo = /* #__PURE__ */ z(qo, ["Node", "isBounded"], (e) =
|
|
|
1157
1157
|
return new r(this.value);
|
|
1158
1158
|
}
|
|
1159
1159
|
_toString(e) {
|
|
1160
|
-
return
|
|
1160
|
+
return yn(this.value, e);
|
|
1161
1161
|
}
|
|
1162
1162
|
_toHTML(e) {
|
|
1163
1163
|
var t = this._toString(e);
|
|
1164
|
-
switch (
|
|
1164
|
+
switch (O(this.value)) {
|
|
1165
1165
|
case "number":
|
|
1166
1166
|
case "bigint":
|
|
1167
1167
|
case "BigNumber":
|
|
@@ -1184,7 +1184,7 @@ var qo = "ConstantNode", Jo = /* #__PURE__ */ z(qo, ["Node", "isBounded"], (e) =
|
|
|
1184
1184
|
}
|
|
1185
1185
|
_toTex(e) {
|
|
1186
1186
|
var t = this._toString(e);
|
|
1187
|
-
switch (
|
|
1187
|
+
switch (O(this.value)) {
|
|
1188
1188
|
case "string": return "\\mathtt{" + Go(t) + "}";
|
|
1189
1189
|
case "number":
|
|
1190
1190
|
case "BigNumber":
|
|
@@ -1197,7 +1197,7 @@ var qo = "ConstantNode", Jo = /* #__PURE__ */ z(qo, ["Node", "isBounded"], (e) =
|
|
|
1197
1197
|
}
|
|
1198
1198
|
}
|
|
1199
1199
|
}
|
|
1200
|
-
return
|
|
1200
|
+
return Y(r, "name", qo), r;
|
|
1201
1201
|
}, {
|
|
1202
1202
|
isClass: !0,
|
|
1203
1203
|
isNode: !0
|
|
@@ -1211,7 +1211,7 @@ var qo = "ConstantNode", Jo = /* #__PURE__ */ z(qo, ["Node", "isBounded"], (e) =
|
|
|
1211
1211
|
constructor(e, t, n) {
|
|
1212
1212
|
if (super(), typeof e != "string") throw TypeError("String expected for parameter \"name\"");
|
|
1213
1213
|
if (!Array.isArray(t)) throw TypeError("Array containing strings or objects expected for parameter \"params\"");
|
|
1214
|
-
if (!
|
|
1214
|
+
if (!J(n)) throw TypeError("Node expected for parameter \"expr\"");
|
|
1215
1215
|
if (xo.has(e)) throw Error("Illegal function name, \"" + e + "\" is a reserved keyword");
|
|
1216
1216
|
var r = /* @__PURE__ */ new Set();
|
|
1217
1217
|
for (var i of t) {
|
|
@@ -1233,10 +1233,10 @@ var qo = "ConstantNode", Jo = /* #__PURE__ */ z(qo, ["Node", "isBounded"], (e) =
|
|
|
1233
1233
|
}
|
|
1234
1234
|
_compile(e, n) {
|
|
1235
1235
|
var r = Object.create(n);
|
|
1236
|
-
|
|
1236
|
+
je(this.params, function(e) {
|
|
1237
1237
|
r[e] = !0;
|
|
1238
1238
|
});
|
|
1239
|
-
var i = this.expr, a = i._compile(e, r), o = this.name, s = this.params, c =
|
|
1239
|
+
var i = this.expr, a = i._compile(e, r), o = this.name, s = this.params, c = Ze(this.types, ","), l = o + "(" + Ze(this.params, ", ") + ")";
|
|
1240
1240
|
return function(e, n, r) {
|
|
1241
1241
|
var u = {};
|
|
1242
1242
|
u[c] = function() {
|
|
@@ -1279,16 +1279,16 @@ var qo = "ConstantNode", Jo = /* #__PURE__ */ z(qo, ["Node", "isBounded"], (e) =
|
|
|
1279
1279
|
return new i(e.name, e.params, e.expr);
|
|
1280
1280
|
}
|
|
1281
1281
|
_toHTML(e) {
|
|
1282
|
-
for (var t = e && e.parenthesis ? e.parenthesis : "keep", n = [], i = 0; i < this.params.length; i++) n.push("<span class=\"math-symbol math-parameter\">" +
|
|
1282
|
+
for (var t = e && e.parenthesis ? e.parenthesis : "keep", n = [], i = 0; i < this.params.length; i++) n.push("<span class=\"math-symbol math-parameter\">" + y(this.params[i]) + "</span>");
|
|
1283
1283
|
var a = this.expr.toHTML(e);
|
|
1284
|
-
return r(this, t, e && e.implicit) && (a = "<span class=\"math-parenthesis math-round-parenthesis\">(</span>" + a + "<span class=\"math-parenthesis math-round-parenthesis\">)</span>"), "<span class=\"math-function\">" +
|
|
1284
|
+
return r(this, t, e && e.implicit) && (a = "<span class=\"math-parenthesis math-round-parenthesis\">(</span>" + a + "<span class=\"math-parenthesis math-round-parenthesis\">)</span>"), "<span class=\"math-function\">" + y(this.name) + "</span><span class=\"math-parenthesis math-round-parenthesis\">(</span>" + n.join("<span class=\"math-separator\">,</span>") + "<span class=\"math-parenthesis math-round-parenthesis\">)</span><span class=\"math-operator math-assignment-operator math-variable-assignment-operator math-binary-operator\">=</span>" + a;
|
|
1285
1285
|
}
|
|
1286
1286
|
_toTex(e) {
|
|
1287
1287
|
var t = e && e.parenthesis ? e.parenthesis : "keep", n = this.expr.toTex(e);
|
|
1288
1288
|
return r(this, t, e && e.implicit) && (n = `\\left(${n}\\right)`), "\\mathrm{" + this.name + "}\\left(" + this.params.map(Ko).join(",") + "\\right)=" + n;
|
|
1289
1289
|
}
|
|
1290
1290
|
}
|
|
1291
|
-
return
|
|
1291
|
+
return Y(i, "name", Yo), i;
|
|
1292
1292
|
}, {
|
|
1293
1293
|
isClass: !0,
|
|
1294
1294
|
isNode: !0
|
|
@@ -1296,7 +1296,7 @@ var qo = "ConstantNode", Jo = /* #__PURE__ */ z(qo, ["Node", "isBounded"], (e) =
|
|
|
1296
1296
|
var { Node: t, size: n } = e;
|
|
1297
1297
|
class r extends t {
|
|
1298
1298
|
constructor(e, t) {
|
|
1299
|
-
if (super(), this.dimensions = e, this.dotNotation = t || !1, !Array.isArray(e) || !e.every(
|
|
1299
|
+
if (super(), this.dimensions = e, this.dotNotation = t || !1, !Array.isArray(e) || !e.every(J)) throw TypeError("Array containing Nodes expected for parameter \"dimensions\"");
|
|
1300
1300
|
if (this.dotNotation && !this.isObjectProperty()) throw Error("dotNotation only applicable for object properties");
|
|
1301
1301
|
}
|
|
1302
1302
|
get type() {
|
|
@@ -1306,20 +1306,20 @@ var qo = "ConstantNode", Jo = /* #__PURE__ */ z(qo, ["Node", "isBounded"], (e) =
|
|
|
1306
1306
|
return !0;
|
|
1307
1307
|
}
|
|
1308
1308
|
_compile(e, t) {
|
|
1309
|
-
var r =
|
|
1309
|
+
var r = Ut(this.dimensions, function(r, i) {
|
|
1310
1310
|
if (r.filter((e) => e.isSymbolNode && e.name === "end").length > 0) {
|
|
1311
|
-
var
|
|
1312
|
-
|
|
1313
|
-
var
|
|
1311
|
+
var a = Object.create(t);
|
|
1312
|
+
a.end = !0;
|
|
1313
|
+
var o = r._compile(e, a);
|
|
1314
1314
|
return function(e, t, r) {
|
|
1315
|
-
if (!
|
|
1316
|
-
var
|
|
1317
|
-
return
|
|
1315
|
+
if (!zr(r) && !It(r) && !fo(r)) throw TypeError("Cannot resolve \"end\": context must be a Matrix, Array, or string but is " + O(r));
|
|
1316
|
+
var a = n(r), s = Object.create(t);
|
|
1317
|
+
return s.end = a[i], o(e, s, r);
|
|
1318
1318
|
};
|
|
1319
1319
|
} else return r._compile(e, t);
|
|
1320
|
-
}),
|
|
1320
|
+
}), i = p(e, "index");
|
|
1321
1321
|
return function(e, t, n) {
|
|
1322
|
-
return
|
|
1322
|
+
return i(...Ut(r, function(r) {
|
|
1323
1323
|
return r(e, t, n);
|
|
1324
1324
|
}));
|
|
1325
1325
|
};
|
|
@@ -1335,7 +1335,7 @@ var qo = "ConstantNode", Jo = /* #__PURE__ */ z(qo, ["Node", "isBounded"], (e) =
|
|
|
1335
1335
|
return new r(this.dimensions.slice(0), this.dotNotation);
|
|
1336
1336
|
}
|
|
1337
1337
|
isObjectProperty() {
|
|
1338
|
-
return this.dimensions.length === 1 &&
|
|
1338
|
+
return this.dimensions.length === 1 && G(this.dimensions[0]) && typeof this.dimensions[0].value == "string";
|
|
1339
1339
|
}
|
|
1340
1340
|
getObjectProperty() {
|
|
1341
1341
|
return this.isObjectProperty() ? this.dimensions[0].value : null;
|
|
@@ -1355,7 +1355,7 @@ var qo = "ConstantNode", Jo = /* #__PURE__ */ z(qo, ["Node", "isBounded"], (e) =
|
|
|
1355
1355
|
}
|
|
1356
1356
|
_toHTML(e) {
|
|
1357
1357
|
for (var t = [], n = 0; n < this.dimensions.length; n++) t[n] = this.dimensions[n].toHTML();
|
|
1358
|
-
return this.dotNotation ? "<span class=\"math-operator math-accessor-operator\">.</span><span class=\"math-symbol math-property\">" +
|
|
1358
|
+
return this.dotNotation ? "<span class=\"math-operator math-accessor-operator\">.</span><span class=\"math-symbol math-property\">" + y(this.getObjectProperty()) + "</span>" : "<span class=\"math-parenthesis math-square-parenthesis\">[</span>" + t.join("<span class=\"math-separator\">,</span>") + "<span class=\"math-parenthesis math-square-parenthesis\">]</span>";
|
|
1359
1359
|
}
|
|
1360
1360
|
_toTex(e) {
|
|
1361
1361
|
var t = this.dimensions.map(function(t) {
|
|
@@ -1364,7 +1364,7 @@ var qo = "ConstantNode", Jo = /* #__PURE__ */ z(qo, ["Node", "isBounded"], (e) =
|
|
|
1364
1364
|
return this.dotNotation ? "." + this.getObjectProperty() : "_{" + t.join(",") + "}";
|
|
1365
1365
|
}
|
|
1366
1366
|
}
|
|
1367
|
-
return
|
|
1367
|
+
return Y(r, "name", Zo), r;
|
|
1368
1368
|
}, {
|
|
1369
1369
|
isClass: !0,
|
|
1370
1370
|
isNode: !0
|
|
@@ -1373,7 +1373,7 @@ var qo = "ConstantNode", Jo = /* #__PURE__ */ z(qo, ["Node", "isBounded"], (e) =
|
|
|
1373
1373
|
class n extends t {
|
|
1374
1374
|
constructor(e) {
|
|
1375
1375
|
if (super(), this.properties = e || {}, e && (typeof e != "object" || !Object.keys(e).every(function(t) {
|
|
1376
|
-
return
|
|
1376
|
+
return J(e[t]);
|
|
1377
1377
|
}))) throw TypeError("Object containing Nodes expected");
|
|
1378
1378
|
}
|
|
1379
1379
|
get type() {
|
|
@@ -1384,32 +1384,32 @@ var qo = "ConstantNode", Jo = /* #__PURE__ */ z(qo, ["Node", "isBounded"], (e) =
|
|
|
1384
1384
|
}
|
|
1385
1385
|
_compile(e, t) {
|
|
1386
1386
|
var n = {};
|
|
1387
|
-
for (var r in this.properties) if (
|
|
1388
|
-
var i =
|
|
1389
|
-
n[a] =
|
|
1387
|
+
for (var r in this.properties) if (W(this.properties, r)) {
|
|
1388
|
+
var i = we(r), a = JSON.parse(i);
|
|
1389
|
+
n[a] = p(this.properties, r)._compile(e, t);
|
|
1390
1390
|
}
|
|
1391
1391
|
return function(e, t, r) {
|
|
1392
1392
|
var i = {};
|
|
1393
|
-
for (var a in n)
|
|
1393
|
+
for (var a in n) W(n, a) && (i[a] = n[a](e, t, r));
|
|
1394
1394
|
return i;
|
|
1395
1395
|
};
|
|
1396
1396
|
}
|
|
1397
1397
|
forEach(e) {
|
|
1398
|
-
for (var t in this.properties)
|
|
1398
|
+
for (var t in this.properties) W(this.properties, t) && e(this.properties[t], "properties[" + we(t) + "]", this);
|
|
1399
1399
|
}
|
|
1400
1400
|
map(e) {
|
|
1401
1401
|
var t = {};
|
|
1402
|
-
for (var r in this.properties)
|
|
1402
|
+
for (var r in this.properties) W(this.properties, r) && (t[r] = this._ifNode(e(this.properties[r], "properties[" + we(r) + "]", this)));
|
|
1403
1403
|
return new n(t);
|
|
1404
1404
|
}
|
|
1405
1405
|
clone() {
|
|
1406
1406
|
var e = {};
|
|
1407
|
-
for (var t in this.properties)
|
|
1407
|
+
for (var t in this.properties) W(this.properties, t) && (e[t] = this.properties[t]);
|
|
1408
1408
|
return new n(e);
|
|
1409
1409
|
}
|
|
1410
1410
|
_toString(e) {
|
|
1411
1411
|
var t = [];
|
|
1412
|
-
for (var n in this.properties)
|
|
1412
|
+
for (var n in this.properties) W(this.properties, n) && t.push(we(n) + ": " + this.properties[n].toString(e));
|
|
1413
1413
|
return "{" + t.join(", ") + "}";
|
|
1414
1414
|
}
|
|
1415
1415
|
toJSON() {
|
|
@@ -1423,16 +1423,16 @@ var qo = "ConstantNode", Jo = /* #__PURE__ */ z(qo, ["Node", "isBounded"], (e) =
|
|
|
1423
1423
|
}
|
|
1424
1424
|
_toHTML(e) {
|
|
1425
1425
|
var t = [];
|
|
1426
|
-
for (var n in this.properties)
|
|
1426
|
+
for (var n in this.properties) W(this.properties, n) && t.push("<span class=\"math-symbol math-property\">" + y(n) + "</span><span class=\"math-operator math-assignment-operator math-property-assignment-operator math-binary-operator\">:</span>" + this.properties[n].toHTML(e));
|
|
1427
1427
|
return "<span class=\"math-parenthesis math-curly-parenthesis\">{</span>" + t.join("<span class=\"math-separator\">,</span>") + "<span class=\"math-parenthesis math-curly-parenthesis\">}</span>";
|
|
1428
1428
|
}
|
|
1429
1429
|
_toTex(e) {
|
|
1430
1430
|
var t = [];
|
|
1431
|
-
for (var n in this.properties)
|
|
1431
|
+
for (var n in this.properties) W(this.properties, n) && t.push("\\mathbf{" + n + ":} & " + this.properties[n].toTex(e) + "\\\\");
|
|
1432
1432
|
return "\\left\\{\\begin{array}{ll}" + t.join("\n") + "\\end{array}\\right\\}";
|
|
1433
1433
|
}
|
|
1434
1434
|
}
|
|
1435
|
-
return
|
|
1435
|
+
return Y(n, "name", $o), n;
|
|
1436
1436
|
}, {
|
|
1437
1437
|
isClass: !0,
|
|
1438
1438
|
isNode: !0
|
|
@@ -1440,7 +1440,7 @@ var qo = "ConstantNode", Jo = /* #__PURE__ */ z(qo, ["Node", "isBounded"], (e) =
|
|
|
1440
1440
|
//#endregion
|
|
1441
1441
|
//#region ../../../node_modules/.bun/mathjs@15.2.0/node_modules/mathjs/lib/esm/utils/scope.js
|
|
1442
1442
|
function ts(e, t) {
|
|
1443
|
-
return new
|
|
1443
|
+
return new on(e, new Xa(t), new Set(Object.keys(t)));
|
|
1444
1444
|
}
|
|
1445
1445
|
//#endregion
|
|
1446
1446
|
//#region ../../../node_modules/.bun/mathjs@15.2.0/node_modules/mathjs/lib/esm/expression/node/OperatorNode.js
|
|
@@ -1448,8 +1448,8 @@ var ns = "OperatorNode", rs = /* #__PURE__ */ z(ns, ["Node"], (e) => {
|
|
|
1448
1448
|
var { Node: t } = e;
|
|
1449
1449
|
function n(e, t) {
|
|
1450
1450
|
var r = e;
|
|
1451
|
-
if (t === "auto") for (;
|
|
1452
|
-
return
|
|
1451
|
+
if (t === "auto") for (; $n(r);) r = r.content;
|
|
1452
|
+
return G(r) ? !0 : q(r) ? n(r.args[0], t) : !1;
|
|
1453
1453
|
}
|
|
1454
1454
|
function r(e, t, r, i, a) {
|
|
1455
1455
|
var o = Z(e, t, r), s = jo(e, t);
|
|
@@ -1507,14 +1507,14 @@ var ns = "OperatorNode", rs = /* #__PURE__ */ z(ns, ["Node"], (e) => {
|
|
|
1507
1507
|
}));
|
|
1508
1508
|
break;
|
|
1509
1509
|
}
|
|
1510
|
-
if (i.length >= 2 && e.getIdentifier() === "OperatorNode:multiply" && e.implicit && t !== "all" && r === "hide") for (var x = 1; x < c.length; ++x) n(i[x], t) && !c[x - 1] && (t !== "keep" ||
|
|
1510
|
+
if (i.length >= 2 && e.getIdentifier() === "OperatorNode:multiply" && e.implicit && t !== "all" && r === "hide") for (var x = 1; x < c.length; ++x) n(i[x], t) && !c[x - 1] && (t !== "keep" || !$n(i[x - 1])) && (c[x] = !0);
|
|
1511
1511
|
return c;
|
|
1512
1512
|
}
|
|
1513
1513
|
class i extends t {
|
|
1514
1514
|
constructor(e, t, n, r, i) {
|
|
1515
1515
|
if (super(), typeof e != "string") throw TypeError("string expected for parameter \"op\"");
|
|
1516
1516
|
if (typeof t != "string") throw TypeError("string expected for parameter \"fn\"");
|
|
1517
|
-
if (!Array.isArray(n) || !n.every(
|
|
1517
|
+
if (!Array.isArray(n) || !n.every(J)) throw TypeError("Array containing Nodes expected for parameter \"args\"");
|
|
1518
1518
|
this.implicit = r === !0, this.isPercentage = i === !0, this.op = e, this.fn = t, this.args = n || [];
|
|
1519
1519
|
}
|
|
1520
1520
|
get type() {
|
|
@@ -1524,8 +1524,8 @@ var ns = "OperatorNode", rs = /* #__PURE__ */ z(ns, ["Node"], (e) => {
|
|
|
1524
1524
|
return !0;
|
|
1525
1525
|
}
|
|
1526
1526
|
_compile(e, t) {
|
|
1527
|
-
if (typeof this.fn != "string" || !
|
|
1528
|
-
var n =
|
|
1527
|
+
if (typeof this.fn != "string" || !pi(e, this.fn)) throw e[this.fn] ? Error("No access to function \"" + this.fn + "\"") : Error("Function " + this.fn + " missing in provided namespace \"math\"");
|
|
1528
|
+
var n = p(e, this.fn), r = Ut(this.args, function(n) {
|
|
1529
1529
|
return n._compile(e, t);
|
|
1530
1530
|
});
|
|
1531
1531
|
if (typeof n == "function" && n.rawArgs === !0) {
|
|
@@ -1544,7 +1544,7 @@ var ns = "OperatorNode", rs = /* #__PURE__ */ z(ns, ["Node"], (e) => {
|
|
|
1544
1544
|
return n(o(e, t, r), s(e, t, r));
|
|
1545
1545
|
};
|
|
1546
1546
|
} else return function(e, t, i) {
|
|
1547
|
-
return n.apply(null,
|
|
1547
|
+
return n.apply(null, Ut(r, function(n) {
|
|
1548
1548
|
return n(e, t, i);
|
|
1549
1549
|
}));
|
|
1550
1550
|
};
|
|
@@ -1599,15 +1599,15 @@ var ns = "OperatorNode", rs = /* #__PURE__ */ z(ns, ["Node"], (e) => {
|
|
|
1599
1599
|
var t = e && e.parenthesis ? e.parenthesis : "keep", n = e && e.implicit ? e.implicit : "hide", i = this.args, a = r(this, t, n, i, !1);
|
|
1600
1600
|
if (i.length === 1) {
|
|
1601
1601
|
var o = jo(this, t), s = i[0].toHTML(e);
|
|
1602
|
-
return a[0] && (s = "<span class=\"math-parenthesis math-round-parenthesis\">(</span>" + s + "<span class=\"math-parenthesis math-round-parenthesis\">)</span>"), o === "right" ? "<span class=\"math-operator math-unary-operator math-lefthand-unary-operator\">" +
|
|
1602
|
+
return a[0] && (s = "<span class=\"math-parenthesis math-round-parenthesis\">(</span>" + s + "<span class=\"math-parenthesis math-round-parenthesis\">)</span>"), o === "right" ? "<span class=\"math-operator math-unary-operator math-lefthand-unary-operator\">" + y(this.op) + "</span>" + s : s + "<span class=\"math-operator math-unary-operator math-righthand-unary-operator\">" + y(this.op) + "</span>";
|
|
1603
1603
|
} else if (i.length === 2) {
|
|
1604
1604
|
var c = i[0].toHTML(e), l = i[1].toHTML(e);
|
|
1605
|
-
return a[0] && (c = "<span class=\"math-parenthesis math-round-parenthesis\">(</span>" + c + "<span class=\"math-parenthesis math-round-parenthesis\">)</span>"), a[1] && (l = "<span class=\"math-parenthesis math-round-parenthesis\">(</span>" + l + "<span class=\"math-parenthesis math-round-parenthesis\">)</span>"), this.implicit && this.getIdentifier() === "OperatorNode:multiply" && n === "hide" ? c + "<span class=\"math-operator math-binary-operator math-implicit-binary-operator\"></span>" + l : c + "<span class=\"math-operator math-binary-operator math-explicit-binary-operator\">" +
|
|
1605
|
+
return a[0] && (c = "<span class=\"math-parenthesis math-round-parenthesis\">(</span>" + c + "<span class=\"math-parenthesis math-round-parenthesis\">)</span>"), a[1] && (l = "<span class=\"math-parenthesis math-round-parenthesis\">(</span>" + l + "<span class=\"math-parenthesis math-round-parenthesis\">)</span>"), this.implicit && this.getIdentifier() === "OperatorNode:multiply" && n === "hide" ? c + "<span class=\"math-operator math-binary-operator math-implicit-binary-operator\"></span>" + l : c + "<span class=\"math-operator math-binary-operator math-explicit-binary-operator\">" + y(this.op) + "</span>" + l;
|
|
1606
1606
|
} else {
|
|
1607
1607
|
var u = i.map(function(t, n) {
|
|
1608
1608
|
return t = t.toHTML(e), a[n] && (t = "<span class=\"math-parenthesis math-round-parenthesis\">(</span>" + t + "<span class=\"math-parenthesis math-round-parenthesis\">)</span>"), t;
|
|
1609
1609
|
});
|
|
1610
|
-
return i.length > 2 && (this.getIdentifier() === "OperatorNode:add" || this.getIdentifier() === "OperatorNode:multiply") ? this.implicit && this.getIdentifier() === "OperatorNode:multiply" && n === "hide" ? u.join("<span class=\"math-operator math-binary-operator math-implicit-binary-operator\"></span>") : u.join("<span class=\"math-operator math-binary-operator math-explicit-binary-operator\">" +
|
|
1610
|
+
return i.length > 2 && (this.getIdentifier() === "OperatorNode:add" || this.getIdentifier() === "OperatorNode:multiply") ? this.implicit && this.getIdentifier() === "OperatorNode:multiply" && n === "hide" ? u.join("<span class=\"math-operator math-binary-operator math-implicit-binary-operator\"></span>") : u.join("<span class=\"math-operator math-binary-operator math-explicit-binary-operator\">" + y(this.op) + "</span>") : "<span class=\"math-function\">" + y(this.fn) + "</span><span class=\"math-paranthesis math-round-parenthesis\">(</span>" + u.join("<span class=\"math-separator\">,</span>") + "<span class=\"math-paranthesis math-round-parenthesis\">)</span>";
|
|
1611
1611
|
}
|
|
1612
1612
|
}
|
|
1613
1613
|
_toTex(e) {
|
|
@@ -1645,7 +1645,7 @@ var ns = "OperatorNode", rs = /* #__PURE__ */ z(ns, ["Node"], (e) => {
|
|
|
1645
1645
|
return this.type + ":" + this.fn;
|
|
1646
1646
|
}
|
|
1647
1647
|
}
|
|
1648
|
-
return
|
|
1648
|
+
return Y(i, "name", ns), i;
|
|
1649
1649
|
}, {
|
|
1650
1650
|
isClass: !0,
|
|
1651
1651
|
isNode: !0
|
|
@@ -1653,7 +1653,7 @@ var ns = "OperatorNode", rs = /* #__PURE__ */ z(ns, ["Node"], (e) => {
|
|
|
1653
1653
|
var { Node: t } = e;
|
|
1654
1654
|
class n extends t {
|
|
1655
1655
|
constructor(e) {
|
|
1656
|
-
if (super(), !
|
|
1656
|
+
if (super(), !J(e)) throw TypeError("Node expected for parameter \"content\"");
|
|
1657
1657
|
this.content = e;
|
|
1658
1658
|
}
|
|
1659
1659
|
get type() {
|
|
@@ -1696,7 +1696,7 @@ var ns = "OperatorNode", rs = /* #__PURE__ */ z(ns, ["Node"], (e) => {
|
|
|
1696
1696
|
return !e || e && !e.parenthesis || e && e.parenthesis === "keep" ? `\\left(${this.content.toTex(e)}\\right)` : this.content.toTex(e);
|
|
1697
1697
|
}
|
|
1698
1698
|
}
|
|
1699
|
-
return
|
|
1699
|
+
return Y(n, "name", is), n;
|
|
1700
1700
|
}, {
|
|
1701
1701
|
isClass: !0,
|
|
1702
1702
|
isNode: !0
|
|
@@ -1713,7 +1713,7 @@ var ns = "OperatorNode", rs = /* #__PURE__ */ z(ns, ["Node"], (e) => {
|
|
|
1713
1713
|
}
|
|
1714
1714
|
class r extends t {
|
|
1715
1715
|
constructor(e, t, n) {
|
|
1716
|
-
if (super(), !
|
|
1716
|
+
if (super(), !J(e) || !J(t) || n && !J(n)) throw TypeError("Node expected");
|
|
1717
1717
|
if (arguments.length > 3) throw Error("Too many arguments");
|
|
1718
1718
|
this.start = e, this.end = t, this.step = n || null;
|
|
1719
1719
|
}
|
|
@@ -1725,7 +1725,7 @@ var ns = "OperatorNode", rs = /* #__PURE__ */ z(ns, ["Node"], (e) => {
|
|
|
1725
1725
|
}
|
|
1726
1726
|
needsEnd() {
|
|
1727
1727
|
return this.filter(function(e) {
|
|
1728
|
-
return
|
|
1728
|
+
return K(e) && e.name === "end";
|
|
1729
1729
|
}).length > 0;
|
|
1730
1730
|
}
|
|
1731
1731
|
_compile(e, t) {
|
|
@@ -1787,7 +1787,7 @@ var ns = "OperatorNode", rs = /* #__PURE__ */ z(ns, ["Node"], (e) => {
|
|
|
1787
1787
|
return r.end && (o = `\\left(${o}\\right)`), i += ":" + o, i;
|
|
1788
1788
|
}
|
|
1789
1789
|
}
|
|
1790
|
-
return
|
|
1790
|
+
return Y(r, "name", os), r;
|
|
1791
1791
|
}, {
|
|
1792
1792
|
isClass: !0,
|
|
1793
1793
|
isNode: !0
|
|
@@ -1816,7 +1816,7 @@ var ns = "OperatorNode", rs = /* #__PURE__ */ z(ns, ["Node"], (e) => {
|
|
|
1816
1816
|
_compile(e, t) {
|
|
1817
1817
|
var n = this, r = this.params.map((n) => n._compile(e, t));
|
|
1818
1818
|
return function(t, i, a) {
|
|
1819
|
-
for (var o, s = r[0](t, i, a), c = 0; c < n.conditionals.length; c++) if (o = s, s = r[c + 1](t, i, a), !
|
|
1819
|
+
for (var o, s = r[0](t, i, a), c = 0; c < n.conditionals.length; c++) if (o = s, s = r[c + 1](t, i, a), !p(e, n.conditionals[c])(o, s)) return !1;
|
|
1820
1820
|
return !0;
|
|
1821
1821
|
};
|
|
1822
1822
|
}
|
|
@@ -1850,7 +1850,7 @@ var ns = "OperatorNode", rs = /* #__PURE__ */ z(ns, ["Node"], (e) => {
|
|
|
1850
1850
|
for (var t = e && e.parenthesis ? e.parenthesis : "keep", r = Z(this, t, e && e.implicit), i = this.params.map(function(n, i) {
|
|
1851
1851
|
var a = Z(n, t, e && e.implicit);
|
|
1852
1852
|
return t === "all" || a !== null && a <= r ? "<span class=\"math-parenthesis math-round-parenthesis\">(</span>" + n.toHTML(e) + "<span class=\"math-parenthesis math-round-parenthesis\">)</span>" : n.toHTML(e);
|
|
1853
|
-
}), a = i[0], o = 0; o < this.conditionals.length; o++) a += "<span class=\"math-operator math-binary-operator math-explicit-binary-operator\">" +
|
|
1853
|
+
}), a = i[0], o = 0; o < this.conditionals.length; o++) a += "<span class=\"math-operator math-binary-operator math-explicit-binary-operator\">" + y(n[this.conditionals[o]]) + "</span>" + i[o + 1];
|
|
1854
1854
|
return a;
|
|
1855
1855
|
}
|
|
1856
1856
|
_toTex(e) {
|
|
@@ -1861,7 +1861,7 @@ var ns = "OperatorNode", rs = /* #__PURE__ */ z(ns, ["Node"], (e) => {
|
|
|
1861
1861
|
return i;
|
|
1862
1862
|
}
|
|
1863
1863
|
}
|
|
1864
|
-
return
|
|
1864
|
+
return Y(r, "name", cs), r;
|
|
1865
1865
|
}, {
|
|
1866
1866
|
isClass: !0,
|
|
1867
1867
|
isNode: !0
|
|
@@ -1888,10 +1888,10 @@ var ns = "OperatorNode", rs = /* #__PURE__ */ z(ns, ["Node"], (e) => {
|
|
|
1888
1888
|
_compile(e, t) {
|
|
1889
1889
|
var r = this.name;
|
|
1890
1890
|
if (t[r] === !0) return function(e, t, n) {
|
|
1891
|
-
return
|
|
1891
|
+
return p(t, r);
|
|
1892
1892
|
};
|
|
1893
1893
|
if (r in e) return function(t, n, i) {
|
|
1894
|
-
return t.has(r) ? t.get(r) :
|
|
1894
|
+
return t.has(r) ? t.get(r) : p(e, r);
|
|
1895
1895
|
};
|
|
1896
1896
|
var o = i(r);
|
|
1897
1897
|
return function(e, t, i) {
|
|
@@ -1912,7 +1912,7 @@ var ns = "OperatorNode", rs = /* #__PURE__ */ z(ns, ["Node"], (e) => {
|
|
|
1912
1912
|
return this.name;
|
|
1913
1913
|
}
|
|
1914
1914
|
_toHTML(e) {
|
|
1915
|
-
var t =
|
|
1915
|
+
var t = y(this.name);
|
|
1916
1916
|
return t === "true" || t === "false" ? "<span class=\"math-symbol math-boolean\">" + t + "</span>" : t === "i" ? "<span class=\"math-symbol math-imaginary-symbol\">" + t + "</span>" : t === "Infinity" ? "<span class=\"math-symbol math-infinity-symbol\">" + t + "</span>" : t === "NaN" ? "<span class=\"math-symbol math-nan-symbol\">" + t + "</span>" : t === "null" ? "<span class=\"math-symbol math-null-symbol\">" + t + "</span>" : t === "undefined" ? "<span class=\"math-symbol math-undefined-symbol\">" + t + "</span>" : "<span class=\"math-symbol\">" + t + "</span>";
|
|
1917
1917
|
}
|
|
1918
1918
|
toJSON() {
|
|
@@ -1940,7 +1940,7 @@ var ns = "OperatorNode", rs = /* #__PURE__ */ z(ns, ["Node"], (e) => {
|
|
|
1940
1940
|
"Node",
|
|
1941
1941
|
"SymbolNode"
|
|
1942
1942
|
], (e) => {
|
|
1943
|
-
var t, { math: n, Node: r, SymbolNode: i } = e, a = (e) =>
|
|
1943
|
+
var t, { math: n, Node: r, SymbolNode: i } = e, a = (e) => yn(e, { truncate: 78 });
|
|
1944
1944
|
function o(e, t, n) {
|
|
1945
1945
|
for (var r = "", i = /\$(?:\{([a-z_][a-z_0-9]*)(?:\[([0-9]+)\])?\}|\$)/gi, a = 0, o; (o = i.exec(e)) !== null;) if (r += e.substring(a, o.index), a = o.index, o[0] === "$$") r += "$", a++;
|
|
1946
1946
|
else {
|
|
@@ -1952,24 +1952,24 @@ var ns = "OperatorNode", rs = /* #__PURE__ */ z(ns, ["Node"], (e) => {
|
|
|
1952
1952
|
r += s;
|
|
1953
1953
|
break;
|
|
1954
1954
|
case "object":
|
|
1955
|
-
if (
|
|
1955
|
+
if (J(s)) r += s.toTex(n);
|
|
1956
1956
|
else if (Array.isArray(s)) r += s.map(function(e, t) {
|
|
1957
|
-
if (
|
|
1957
|
+
if (J(e)) return e.toTex(n);
|
|
1958
1958
|
throw TypeError("Template: " + o[1] + "[" + t + "] is not a Node.");
|
|
1959
1959
|
}).join(",");
|
|
1960
1960
|
else throw TypeError("Template: " + o[1] + " has to be a Node, String or array of Nodes");
|
|
1961
1961
|
break;
|
|
1962
1962
|
default: throw TypeError("Template: " + o[1] + " has to be a Node, String or array of Nodes");
|
|
1963
1963
|
}
|
|
1964
|
-
else if (
|
|
1964
|
+
else if (J(s[o[2]] && s[o[2]])) r += s[o[2]].toTex(n);
|
|
1965
1965
|
else throw TypeError("Template: " + o[1] + "[" + o[2] + "] is not a Node.");
|
|
1966
1966
|
}
|
|
1967
1967
|
return r += e.slice(a), r;
|
|
1968
1968
|
}
|
|
1969
1969
|
class s extends r {
|
|
1970
1970
|
constructor(e, t, n) {
|
|
1971
|
-
if (super(), typeof e == "string" && (e = new i(e)), !
|
|
1972
|
-
if (!Array.isArray(t) || !t.every(
|
|
1971
|
+
if (super(), typeof e == "string" && (e = new i(e)), !J(e)) throw TypeError("Node expected as parameter \"fn\"");
|
|
1972
|
+
if (!Array.isArray(t) || !t.every(J)) throw TypeError("Array containing Nodes expected for parameter \"args\"");
|
|
1973
1973
|
var r = typeof n;
|
|
1974
1974
|
if (!(r === "undefined" || r === "boolean")) throw TypeError("optional flag, if specified, must be boolean");
|
|
1975
1975
|
this.fn = e, this.args = t || [], this.optional = !!n;
|
|
@@ -1984,13 +1984,13 @@ var ns = "OperatorNode", rs = /* #__PURE__ */ z(ns, ["Node"], (e) => {
|
|
|
1984
1984
|
return !0;
|
|
1985
1985
|
}
|
|
1986
1986
|
_compile(e, t) {
|
|
1987
|
-
var n = this.args.map((n) => n._compile(e, t)), r = this.optional ||
|
|
1988
|
-
if (
|
|
1987
|
+
var n = this.args.map((n) => n._compile(e, t)), r = this.optional || Gn(this.fn) && this.fn.optionalChaining;
|
|
1988
|
+
if (K(this.fn)) {
|
|
1989
1989
|
var i = this.fn.name;
|
|
1990
1990
|
if (t[i]) {
|
|
1991
1991
|
var o = this.args;
|
|
1992
1992
|
return function(t, s, c) {
|
|
1993
|
-
var l =
|
|
1993
|
+
var l = p(s, i);
|
|
1994
1994
|
if (!(r && l === void 0)) {
|
|
1995
1995
|
if (typeof l != "function") throw TypeError(`Argument '${i}' was not a function; received: ${a(l)}`);
|
|
1996
1996
|
if (l.rawArgs) return l(o, e, ts(t, s));
|
|
@@ -1999,10 +1999,10 @@ var ns = "OperatorNode", rs = /* #__PURE__ */ z(ns, ["Node"], (e) => {
|
|
|
1999
1999
|
}
|
|
2000
2000
|
};
|
|
2001
2001
|
} else {
|
|
2002
|
-
var c = i in e ?
|
|
2002
|
+
var c = i in e ? p(e, i) : void 0, l = typeof c == "function" && c.rawArgs === !0, u = (t) => {
|
|
2003
2003
|
var n;
|
|
2004
2004
|
if (t.has(i)) n = t.get(i);
|
|
2005
|
-
else if (i in e) n =
|
|
2005
|
+
else if (i in e) n = p(e, i);
|
|
2006
2006
|
else if (r) n = void 0;
|
|
2007
2007
|
else return s.onUndefinedFunction(i);
|
|
2008
2008
|
if (typeof n == "function" || r && n === void 0) return n;
|
|
@@ -2040,12 +2040,12 @@ var ns = "OperatorNode", rs = /* #__PURE__ */ z(ns, ["Node"], (e) => {
|
|
|
2040
2040
|
};
|
|
2041
2041
|
}
|
|
2042
2042
|
}
|
|
2043
|
-
} else if (
|
|
2043
|
+
} else if (Gn(this.fn) && Tr(this.fn.index) && this.fn.index.isObjectProperty()) {
|
|
2044
2044
|
var f = this.fn.object._compile(e, t), m = this.fn.index.getObjectProperty(), h = this.args;
|
|
2045
2045
|
return function(t, i, a) {
|
|
2046
2046
|
var o = f(t, i, a);
|
|
2047
2047
|
if (!(r && (o == null || o[m] === void 0))) {
|
|
2048
|
-
var s =
|
|
2048
|
+
var s = xi(o, m);
|
|
2049
2049
|
if (s != null && s.rawArgs) return s(h, e, ts(t, i));
|
|
2050
2050
|
var c = n.map((e) => e(t, i, a));
|
|
2051
2051
|
return s.apply(o, c);
|
|
@@ -2078,13 +2078,13 @@ var ns = "OperatorNode", rs = /* #__PURE__ */ z(ns, ["Node"], (e) => {
|
|
|
2078
2078
|
}
|
|
2079
2079
|
toString(e) {
|
|
2080
2080
|
var t, n = this.fn.toString(e);
|
|
2081
|
-
return e && typeof e.handler == "object" &&
|
|
2081
|
+
return e && typeof e.handler == "object" && W(e.handler, n) && (t = e.handler[n](this, e)), t === void 0 ? super.toString(e) : t;
|
|
2082
2082
|
}
|
|
2083
2083
|
_toString(e) {
|
|
2084
2084
|
var t = this.args.map(function(t) {
|
|
2085
2085
|
return t.toString(e);
|
|
2086
2086
|
});
|
|
2087
|
-
return (
|
|
2087
|
+
return (vr(this.fn) ? "(" + this.fn.toString(e) + ")" : this.fn.toString(e)) + "(" + t.join(", ") + ")";
|
|
2088
2088
|
}
|
|
2089
2089
|
toJSON() {
|
|
2090
2090
|
return {
|
|
@@ -2097,11 +2097,11 @@ var ns = "OperatorNode", rs = /* #__PURE__ */ z(ns, ["Node"], (e) => {
|
|
|
2097
2097
|
var t = this.args.map(function(t) {
|
|
2098
2098
|
return t.toHTML(e);
|
|
2099
2099
|
});
|
|
2100
|
-
return "<span class=\"math-function\">" +
|
|
2100
|
+
return "<span class=\"math-function\">" + y(this.fn) + "</span><span class=\"math-paranthesis math-round-parenthesis\">(</span>" + t.join("<span class=\"math-separator\">,</span>") + "<span class=\"math-paranthesis math-round-parenthesis\">)</span>";
|
|
2101
2101
|
}
|
|
2102
2102
|
toTex(e) {
|
|
2103
2103
|
var t;
|
|
2104
|
-
return e && typeof e.handler == "object" &&
|
|
2104
|
+
return e && typeof e.handler == "object" && W(e.handler, this.name) && (t = e.handler[this.name](this, e)), t === void 0 ? super.toTex(e) : t;
|
|
2105
2105
|
}
|
|
2106
2106
|
_toTex(e) {
|
|
2107
2107
|
var t = this.args.map(function(t) {
|
|
@@ -2131,9 +2131,9 @@ var ns = "OperatorNode", rs = /* #__PURE__ */ z(ns, ["Node"], (e) => {
|
|
|
2131
2131
|
return this.type + ":" + this.name;
|
|
2132
2132
|
}
|
|
2133
2133
|
}
|
|
2134
|
-
return t = s,
|
|
2134
|
+
return t = s, Y(s, "name", ds), Y(s, "onUndefinedFunction", function(e) {
|
|
2135
2135
|
throw Error("Undefined function " + e);
|
|
2136
|
-
}),
|
|
2136
|
+
}), Y(s, "fromJSON", function(e) {
|
|
2137
2137
|
return new t(e.fn, e.args);
|
|
2138
2138
|
}), s;
|
|
2139
2139
|
}, {
|
|
@@ -2161,21 +2161,21 @@ var ns = "OperatorNode", rs = /* #__PURE__ */ z(ns, ["Node"], (e) => {
|
|
|
2161
2161
|
], (e) => {
|
|
2162
2162
|
var { typed: t, numeric: n, config: r, AccessorNode: i, ArrayNode: a, AssignmentNode: o, BlockNode: s, ConditionalNode: c, ConstantNode: l, FunctionAssignmentNode: u, FunctionNode: d, IndexNode: f, ObjectNode: p, OperatorNode: m, ParenthesisNode: h, RangeNode: g, RelationalNode: _, SymbolNode: v } = e, y = t(ps, {
|
|
2163
2163
|
string: function(e) {
|
|
2164
|
-
return
|
|
2164
|
+
return ee(e, {});
|
|
2165
2165
|
},
|
|
2166
2166
|
"Array | Matrix": function(e) {
|
|
2167
2167
|
return b(e, {});
|
|
2168
2168
|
},
|
|
2169
2169
|
"string, Object": function(e, t) {
|
|
2170
|
-
return
|
|
2170
|
+
return ee(e, t.nodes === void 0 ? {} : t.nodes);
|
|
2171
2171
|
},
|
|
2172
2172
|
"Array | Matrix, Object": b
|
|
2173
2173
|
});
|
|
2174
2174
|
function b(e) {
|
|
2175
2175
|
var t = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}, n = t.nodes === void 0 ? {} : t.nodes;
|
|
2176
|
-
return
|
|
2176
|
+
return de(e, function(e) {
|
|
2177
2177
|
if (typeof e != "string") throw TypeError("String expected");
|
|
2178
|
-
return
|
|
2178
|
+
return ee(e, n);
|
|
2179
2179
|
});
|
|
2180
2180
|
}
|
|
2181
2181
|
var x = {
|
|
@@ -2259,90 +2259,90 @@ var ns = "OperatorNode", rs = /* #__PURE__ */ z(ns, ["Node"], (e) => {
|
|
|
2259
2259
|
conditionalLevel: null
|
|
2260
2260
|
};
|
|
2261
2261
|
}
|
|
2262
|
-
function
|
|
2262
|
+
function O(e, t) {
|
|
2263
2263
|
return e.expression.substr(e.index, t);
|
|
2264
2264
|
}
|
|
2265
|
-
function
|
|
2266
|
-
return
|
|
2265
|
+
function k(e) {
|
|
2266
|
+
return O(e, 1);
|
|
2267
2267
|
}
|
|
2268
|
-
function
|
|
2268
|
+
function A(e) {
|
|
2269
2269
|
e.index++;
|
|
2270
2270
|
}
|
|
2271
|
-
function
|
|
2271
|
+
function j(e) {
|
|
2272
2272
|
return e.expression.charAt(e.index - 1);
|
|
2273
2273
|
}
|
|
2274
|
-
function
|
|
2274
|
+
function M(e) {
|
|
2275
2275
|
return e.expression.charAt(e.index + 1);
|
|
2276
2276
|
}
|
|
2277
|
-
function
|
|
2277
|
+
function N(e) {
|
|
2278
2278
|
for (e.tokenType = x.NULL, e.token = "", e.comment = "";;) {
|
|
2279
|
-
if (
|
|
2280
|
-
if (y.isWhitespace(
|
|
2279
|
+
if (k(e) === "#") for (; k(e) !== "\n" && k(e) !== "";) e.comment += k(e), A(e);
|
|
2280
|
+
if (y.isWhitespace(k(e), e.nestingLevel)) A(e);
|
|
2281
2281
|
else break;
|
|
2282
2282
|
}
|
|
2283
|
-
if (
|
|
2283
|
+
if (k(e) === "") {
|
|
2284
2284
|
e.tokenType = x.DELIMITER;
|
|
2285
2285
|
return;
|
|
2286
2286
|
}
|
|
2287
|
-
if (
|
|
2288
|
-
e.tokenType = x.DELIMITER, e.token =
|
|
2287
|
+
if (k(e) === "\n" && !e.nestingLevel) {
|
|
2288
|
+
e.tokenType = x.DELIMITER, e.token = k(e), A(e);
|
|
2289
2289
|
return;
|
|
2290
2290
|
}
|
|
2291
|
-
var t =
|
|
2291
|
+
var t = k(e), n = O(e, 2), r = O(e, 3);
|
|
2292
2292
|
if (r.length === 3 && S[r]) {
|
|
2293
|
-
e.tokenType = x.DELIMITER, e.token = r,
|
|
2293
|
+
e.tokenType = x.DELIMITER, e.token = r, A(e), A(e), A(e);
|
|
2294
2294
|
return;
|
|
2295
2295
|
}
|
|
2296
2296
|
if (n.length === 2 && S[n] && (n !== "?." || !y.isDigit(e.expression.charAt(e.index + 2)))) {
|
|
2297
|
-
e.tokenType = x.DELIMITER, e.token = n,
|
|
2297
|
+
e.tokenType = x.DELIMITER, e.token = n, A(e), A(e);
|
|
2298
2298
|
return;
|
|
2299
2299
|
}
|
|
2300
2300
|
if (S[t]) {
|
|
2301
|
-
e.tokenType = x.DELIMITER, e.token = t,
|
|
2301
|
+
e.tokenType = x.DELIMITER, e.token = t, A(e);
|
|
2302
2302
|
return;
|
|
2303
2303
|
}
|
|
2304
2304
|
if (y.isDigitDot(t)) {
|
|
2305
2305
|
e.tokenType = x.NUMBER;
|
|
2306
|
-
var i =
|
|
2306
|
+
var i = O(e, 2);
|
|
2307
2307
|
if (i === "0b" || i === "0o" || i === "0x") {
|
|
2308
|
-
for (e.token +=
|
|
2309
|
-
if (
|
|
2310
|
-
else if (
|
|
2308
|
+
for (e.token += k(e), A(e), e.token += k(e), A(e); y.isAlpha(k(e), j(e), M(e)) || y.isDigit(k(e));) e.token += k(e), A(e);
|
|
2309
|
+
if (k(e) === ".") for (e.token += ".", A(e); y.isAlpha(k(e), j(e), M(e)) || y.isDigit(k(e));) e.token += k(e), A(e);
|
|
2310
|
+
else if (k(e) === "i") for (e.token += "i", A(e); y.isDigit(k(e));) e.token += k(e), A(e);
|
|
2311
2311
|
return;
|
|
2312
2312
|
}
|
|
2313
|
-
if (
|
|
2314
|
-
if (e.token +=
|
|
2313
|
+
if (k(e) === ".") {
|
|
2314
|
+
if (e.token += k(e), A(e), !y.isDigit(k(e))) {
|
|
2315
2315
|
e.tokenType = x.DELIMITER;
|
|
2316
2316
|
return;
|
|
2317
2317
|
}
|
|
2318
2318
|
} else {
|
|
2319
|
-
for (; y.isDigit(
|
|
2320
|
-
y.isDecimalMark(
|
|
2319
|
+
for (; y.isDigit(k(e));) e.token += k(e), A(e);
|
|
2320
|
+
y.isDecimalMark(k(e), M(e)) && (e.token += k(e), A(e));
|
|
2321
2321
|
}
|
|
2322
|
-
for (; y.isDigit(
|
|
2323
|
-
if (
|
|
2324
|
-
if (y.isDigit(
|
|
2325
|
-
if (e.token +=
|
|
2326
|
-
for (; y.isDigit(
|
|
2327
|
-
if (y.isDecimalMark(
|
|
2328
|
-
} else if (y.isDecimalMark(
|
|
2322
|
+
for (; y.isDigit(k(e));) e.token += k(e), A(e);
|
|
2323
|
+
if (k(e) === "E" || k(e) === "e") {
|
|
2324
|
+
if (y.isDigit(M(e)) || M(e) === "-" || M(e) === "+") {
|
|
2325
|
+
if (e.token += k(e), A(e), (k(e) === "+" || k(e) === "-") && (e.token += k(e), A(e)), !y.isDigit(k(e))) throw B(e, "Digit expected, got \"" + k(e) + "\"");
|
|
2326
|
+
for (; y.isDigit(k(e));) e.token += k(e), A(e);
|
|
2327
|
+
if (y.isDecimalMark(k(e), M(e))) throw B(e, "Digit expected, got \"" + k(e) + "\"");
|
|
2328
|
+
} else if (y.isDecimalMark(M(e), e.expression.charAt(e.index + 2))) throw A(e), B(e, "Digit expected, got \"" + k(e) + "\"");
|
|
2329
2329
|
}
|
|
2330
2330
|
return;
|
|
2331
2331
|
}
|
|
2332
|
-
if (y.isAlpha(
|
|
2333
|
-
for (; y.isAlpha(
|
|
2334
|
-
|
|
2332
|
+
if (y.isAlpha(k(e), j(e), M(e))) {
|
|
2333
|
+
for (; y.isAlpha(k(e), j(e), M(e)) || y.isDigit(k(e));) e.token += k(e), A(e);
|
|
2334
|
+
W(C, e.token) ? e.tokenType = x.DELIMITER : e.tokenType = x.SYMBOL;
|
|
2335
2335
|
return;
|
|
2336
2336
|
}
|
|
2337
|
-
for (e.tokenType = x.UNKNOWN;
|
|
2338
|
-
throw
|
|
2337
|
+
for (e.tokenType = x.UNKNOWN; k(e) !== "";) e.token += k(e), A(e);
|
|
2338
|
+
throw B(e, "Syntax error in part \"" + e.token + "\"");
|
|
2339
2339
|
}
|
|
2340
|
-
function
|
|
2340
|
+
function P(e) {
|
|
2341
2341
|
do
|
|
2342
|
-
|
|
2342
|
+
N(e);
|
|
2343
2343
|
while (e.token === "\n");
|
|
2344
2344
|
}
|
|
2345
|
-
function
|
|
2345
|
+
function F(e) {
|
|
2346
2346
|
e.nestingLevel++;
|
|
2347
2347
|
}
|
|
2348
2348
|
function I(e) {
|
|
@@ -2363,327 +2363,327 @@ var ns = "OperatorNode", rs = /* #__PURE__ */ z(ns, ["Node"], (e) => {
|
|
|
2363
2363
|
}, y.isDigit = function(e) {
|
|
2364
2364
|
return e >= "0" && e <= "9";
|
|
2365
2365
|
};
|
|
2366
|
-
function
|
|
2366
|
+
function ee(e, t) {
|
|
2367
2367
|
var n = D();
|
|
2368
|
-
|
|
2368
|
+
ht(n, {
|
|
2369
2369
|
expression: e,
|
|
2370
2370
|
extraNodes: t
|
|
2371
|
-
}),
|
|
2372
|
-
var r =
|
|
2373
|
-
if (n.token !== "") throw n.tokenType === x.DELIMITER ?
|
|
2371
|
+
}), N(n);
|
|
2372
|
+
var r = te(n);
|
|
2373
|
+
if (n.token !== "") throw n.tokenType === x.DELIMITER ? Ne(n, "Unexpected operator " + n.token) : B(n, "Unexpected part \"" + n.token + "\"");
|
|
2374
2374
|
return r;
|
|
2375
2375
|
}
|
|
2376
|
-
function
|
|
2376
|
+
function te(e) {
|
|
2377
2377
|
var t, n = [], r;
|
|
2378
2378
|
for (e.token !== "" && e.token !== "\n" && e.token !== ";" && (t = L(e), e.comment && (t.comment = e.comment)); e.token === "\n" || e.token === ";";) n.length === 0 && t && (r = e.token !== ";", n.push({
|
|
2379
2379
|
node: t,
|
|
2380
2380
|
visible: r
|
|
2381
|
-
})),
|
|
2381
|
+
})), N(e), e.token !== "\n" && e.token !== ";" && e.token !== "" && (t = L(e), e.comment && (t.comment = e.comment), r = e.token !== ";", n.push({
|
|
2382
2382
|
node: t,
|
|
2383
2383
|
visible: r
|
|
2384
2384
|
}));
|
|
2385
2385
|
return n.length > 0 ? new s(n) : (t || (t = new l(void 0), e.comment && (t.comment = e.comment)), t);
|
|
2386
2386
|
}
|
|
2387
2387
|
function L(e) {
|
|
2388
|
-
var t, n, r, i, a =
|
|
2388
|
+
var t, n, r, i, a = ne(e);
|
|
2389
2389
|
if (e.token === "=") {
|
|
2390
|
-
if (
|
|
2391
|
-
if (
|
|
2392
|
-
if (a.optionalChaining) throw
|
|
2393
|
-
return
|
|
2394
|
-
} else if (
|
|
2395
|
-
|
|
2396
|
-
}), i)) return
|
|
2397
|
-
throw
|
|
2390
|
+
if (K(a)) return t = a.name, P(e), r = L(e), new o(new v(t), r);
|
|
2391
|
+
if (Gn(a)) {
|
|
2392
|
+
if (a.optionalChaining) throw B(e, "Cannot assign to optional chain");
|
|
2393
|
+
return P(e), r = L(e), new o(a.object, a.index, r);
|
|
2394
|
+
} else if (Oi(a) && K(a.fn) && (i = !0, n = [], t = a.name, a.args.forEach(function(e, t) {
|
|
2395
|
+
K(e) ? n[t] = e.name : i = !1;
|
|
2396
|
+
}), i)) return P(e), r = L(e), new u(t, n, r);
|
|
2397
|
+
throw B(e, "Invalid left hand side of assignment operator =");
|
|
2398
2398
|
}
|
|
2399
2399
|
return a;
|
|
2400
2400
|
}
|
|
2401
|
-
function
|
|
2402
|
-
for (var t =
|
|
2401
|
+
function ne(e) {
|
|
2402
|
+
for (var t = re(e); e.token === "?";) {
|
|
2403
2403
|
var n = e.conditionalLevel;
|
|
2404
|
-
e.conditionalLevel = e.nestingLevel,
|
|
2404
|
+
e.conditionalLevel = e.nestingLevel, P(e);
|
|
2405
2405
|
var r = t, i = L(e);
|
|
2406
|
-
if (e.token !== ":") throw
|
|
2407
|
-
e.conditionalLevel = null,
|
|
2406
|
+
if (e.token !== ":") throw B(e, "False part of conditional expression expected");
|
|
2407
|
+
e.conditionalLevel = null, P(e), t = new c(r, i, L(e)), e.conditionalLevel = n;
|
|
2408
2408
|
}
|
|
2409
2409
|
return t;
|
|
2410
2410
|
}
|
|
2411
|
+
function re(e) {
|
|
2412
|
+
for (var t = ie(e); e.token === "or";) P(e), t = new m("or", "or", [t, ie(e)]);
|
|
2413
|
+
return t;
|
|
2414
|
+
}
|
|
2411
2415
|
function ie(e) {
|
|
2412
|
-
for (var t =
|
|
2416
|
+
for (var t = R(e); e.token === "xor";) P(e), t = new m("xor", "xor", [t, R(e)]);
|
|
2417
|
+
return t;
|
|
2418
|
+
}
|
|
2419
|
+
function R(e) {
|
|
2420
|
+
for (var t = ae(e); e.token === "and";) P(e), t = new m("and", "and", [t, ae(e)]);
|
|
2413
2421
|
return t;
|
|
2414
2422
|
}
|
|
2415
2423
|
function ae(e) {
|
|
2416
|
-
for (var t = oe(e); e.token === "
|
|
2424
|
+
for (var t = oe(e); e.token === "|";) P(e), t = new m("|", "bitOr", [t, oe(e)]);
|
|
2417
2425
|
return t;
|
|
2418
2426
|
}
|
|
2419
2427
|
function oe(e) {
|
|
2420
|
-
for (var t = se(e); e.token === "
|
|
2428
|
+
for (var t = se(e); e.token === "^|";) P(e), t = new m("^|", "bitXor", [t, se(e)]);
|
|
2421
2429
|
return t;
|
|
2422
2430
|
}
|
|
2423
2431
|
function se(e) {
|
|
2424
|
-
for (var t = ce(e); e.token === "
|
|
2432
|
+
for (var t = ce(e); e.token === "&";) P(e), t = new m("&", "bitAnd", [t, ce(e)]);
|
|
2425
2433
|
return t;
|
|
2426
2434
|
}
|
|
2427
2435
|
function ce(e) {
|
|
2428
|
-
for (var t = le(e)
|
|
2429
|
-
return t;
|
|
2430
|
-
}
|
|
2431
|
-
function le(e) {
|
|
2432
|
-
for (var t = ue(e); e.token === "&";) F(e), t = new m("&", "bitAnd", [t, ue(e)]);
|
|
2433
|
-
return t;
|
|
2434
|
-
}
|
|
2435
|
-
function ue(e) {
|
|
2436
|
-
for (var t = [de(e)], n = [], r = {
|
|
2436
|
+
for (var t = [le(e)], n = [], r = {
|
|
2437
2437
|
"==": "equal",
|
|
2438
2438
|
"!=": "unequal",
|
|
2439
2439
|
"<": "smaller",
|
|
2440
2440
|
">": "larger",
|
|
2441
2441
|
"<=": "smallerEq",
|
|
2442
2442
|
">=": "largerEq"
|
|
2443
|
-
};
|
|
2443
|
+
}; W(r, e.token);) {
|
|
2444
2444
|
var i = {
|
|
2445
2445
|
name: e.token,
|
|
2446
2446
|
fn: r[e.token]
|
|
2447
2447
|
};
|
|
2448
|
-
n.push(i),
|
|
2448
|
+
n.push(i), P(e), t.push(le(e));
|
|
2449
2449
|
}
|
|
2450
2450
|
return t.length === 1 ? t[0] : t.length === 2 ? new m(n[0].name, n[0].fn, t) : new _(n.map((e) => e.fn), t);
|
|
2451
2451
|
}
|
|
2452
|
-
function
|
|
2453
|
-
for (var t =
|
|
2452
|
+
function le(e) {
|
|
2453
|
+
for (var t = ue(e), n, r, i, a = {
|
|
2454
2454
|
"<<": "leftShift",
|
|
2455
2455
|
">>": "rightArithShift",
|
|
2456
2456
|
">>>": "rightLogShift"
|
|
2457
|
-
};
|
|
2457
|
+
}; W(a, e.token);) n = e.token, r = a[n], P(e), i = [t, ue(e)], t = new m(n, r, i);
|
|
2458
2458
|
return t;
|
|
2459
2459
|
}
|
|
2460
|
-
function
|
|
2461
|
-
for (var t =
|
|
2460
|
+
function ue(e) {
|
|
2461
|
+
for (var t = fe(e), n, r, i, a = {
|
|
2462
2462
|
to: "to",
|
|
2463
2463
|
in: "to"
|
|
2464
|
-
};
|
|
2464
|
+
}; W(a, e.token);) n = e.token, r = a[n], P(e), n === "in" && "])},;".includes(e.token) ? t = new m("*", "multiply", [t, new v("in")], !0) : (i = [t, fe(e)], t = new m(n, r, i));
|
|
2465
2465
|
return t;
|
|
2466
2466
|
}
|
|
2467
|
-
function
|
|
2467
|
+
function fe(e) {
|
|
2468
2468
|
var t, n = [];
|
|
2469
2469
|
if (e.token === ":") {
|
|
2470
|
-
if (e.conditionalLevel === e.nestingLevel) throw
|
|
2470
|
+
if (e.conditionalLevel === e.nestingLevel) throw B(e, "The true-expression of a conditional operator may not be empty");
|
|
2471
2471
|
t = new l(1);
|
|
2472
|
-
} else t =
|
|
2472
|
+
} else t = pe(e);
|
|
2473
2473
|
if (e.token === ":" && e.conditionalLevel !== e.nestingLevel) {
|
|
2474
|
-
for (n.push(t); e.token === ":" && n.length < 3;)
|
|
2474
|
+
for (n.push(t); e.token === ":" && n.length < 3;) P(e), e.token === ")" || e.token === "]" || e.token === "," || e.token === "" ? n.push(new v("end")) : n.push(pe(e));
|
|
2475
2475
|
t = n.length === 3 ? new g(n[0], n[2], n[1]) : new g(n[0], n[1]);
|
|
2476
2476
|
}
|
|
2477
2477
|
return t;
|
|
2478
2478
|
}
|
|
2479
|
-
function
|
|
2480
|
-
for (var t =
|
|
2479
|
+
function pe(e) {
|
|
2480
|
+
for (var t = me(e), n, r, i, a = {
|
|
2481
2481
|
"+": "add",
|
|
2482
2482
|
"-": "subtract"
|
|
2483
|
-
};
|
|
2484
|
-
n = e.token, r = a[n],
|
|
2485
|
-
var o =
|
|
2483
|
+
}; W(a, e.token);) {
|
|
2484
|
+
n = e.token, r = a[n], P(e);
|
|
2485
|
+
var o = me(e);
|
|
2486
2486
|
i = o.isPercentage ? [t, new m("*", "multiply", [t, o])] : [t, o], t = new m(n, r, i);
|
|
2487
2487
|
}
|
|
2488
2488
|
return t;
|
|
2489
2489
|
}
|
|
2490
|
-
function
|
|
2491
|
-
for (var t =
|
|
2490
|
+
function me(e) {
|
|
2491
|
+
for (var t = he(e), n = t, r, i, a = {
|
|
2492
2492
|
"*": "multiply",
|
|
2493
2493
|
".*": "dotMultiply",
|
|
2494
2494
|
"/": "divide",
|
|
2495
2495
|
"./": "dotDivide",
|
|
2496
2496
|
"%": "mod",
|
|
2497
2497
|
mod: "mod"
|
|
2498
|
-
};
|
|
2498
|
+
}; W(a, e.token);) r = e.token, i = a[r], P(e), n = he(e), t = new m(r, i, [t, n]);
|
|
2499
2499
|
return t;
|
|
2500
2500
|
}
|
|
2501
|
-
function
|
|
2502
|
-
for (var t =
|
|
2501
|
+
function he(e) {
|
|
2502
|
+
for (var t = ge(e), n = t; e.tokenType === x.SYMBOL || e.token === "in" && G(t) || e.token === "in" && q(t) && t.fn === "unaryMinus" && G(t.args[0]) || e.tokenType === x.NUMBER && !G(n) && (!q(n) || n.op === "!") || e.token === "(";) n = ge(e), t = new m("*", "multiply", [t, n], !0);
|
|
2503
2503
|
return t;
|
|
2504
2504
|
}
|
|
2505
|
-
function
|
|
2506
|
-
for (var t =
|
|
2505
|
+
function ge(e) {
|
|
2506
|
+
for (var t = _e(e), n = t, r = []; e.token === "/" && Zt(n);) if (r.push(ht({}, e)), P(e), e.tokenType === x.NUMBER) if (r.push(ht({}, e)), P(e), e.tokenType === x.SYMBOL || e.token === "(" || e.token === "in") ht(e, r.pop()), r.pop(), n = _e(e), t = new m("/", "divide", [t, n]);
|
|
2507
2507
|
else {
|
|
2508
|
-
r.pop(),
|
|
2508
|
+
r.pop(), ht(e, r.pop());
|
|
2509
2509
|
break;
|
|
2510
2510
|
}
|
|
2511
2511
|
else {
|
|
2512
|
-
|
|
2512
|
+
ht(e, r.pop());
|
|
2513
2513
|
break;
|
|
2514
2514
|
}
|
|
2515
2515
|
return t;
|
|
2516
2516
|
}
|
|
2517
|
-
function
|
|
2518
|
-
var t =
|
|
2517
|
+
function _e(e) {
|
|
2518
|
+
var t = z(e);
|
|
2519
2519
|
if (e.token === "%") {
|
|
2520
|
-
var n =
|
|
2521
|
-
|
|
2520
|
+
var n = ht({}, e);
|
|
2521
|
+
P(e);
|
|
2522
2522
|
try {
|
|
2523
|
-
|
|
2523
|
+
z(e), ht(e, n);
|
|
2524
2524
|
} catch {
|
|
2525
2525
|
t = new m("/", "divide", [t, new l(100)], !1, !0);
|
|
2526
2526
|
}
|
|
2527
2527
|
}
|
|
2528
2528
|
return t;
|
|
2529
2529
|
}
|
|
2530
|
-
function
|
|
2530
|
+
function z(e) {
|
|
2531
2531
|
var t, n, r, i = {
|
|
2532
2532
|
"-": "unaryMinus",
|
|
2533
2533
|
"+": "unaryPlus",
|
|
2534
2534
|
"~": "bitNot",
|
|
2535
2535
|
not: "not"
|
|
2536
2536
|
};
|
|
2537
|
-
return
|
|
2537
|
+
return W(i, e.token) ? (r = i[e.token], t = e.token, P(e), n = [z(e)], new m(t, r, n)) : ve(e);
|
|
2538
2538
|
}
|
|
2539
|
-
function
|
|
2540
|
-
var t =
|
|
2541
|
-
return (e.token === "^" || e.token === ".^") && (n = e.token, r = n === "^" ? "pow" : "dotPow",
|
|
2539
|
+
function ve(e) {
|
|
2540
|
+
var t = ye(e), n, r, i;
|
|
2541
|
+
return (e.token === "^" || e.token === ".^") && (n = e.token, r = n === "^" ? "pow" : "dotPow", P(e), i = [t, z(e)], t = new m(n, r, i)), t;
|
|
2542
2542
|
}
|
|
2543
|
-
function
|
|
2544
|
-
for (var t =
|
|
2543
|
+
function ye(e) {
|
|
2544
|
+
for (var t = be(e); e.token === "??";) P(e), t = new m("??", "nullish", [t, be(e)]);
|
|
2545
2545
|
return t;
|
|
2546
2546
|
}
|
|
2547
|
-
function
|
|
2548
|
-
for (var t =
|
|
2547
|
+
function be(e) {
|
|
2548
|
+
for (var t = xe(e), n, r, i, a = {
|
|
2549
2549
|
"!": "factorial",
|
|
2550
2550
|
"'": "ctranspose"
|
|
2551
|
-
};
|
|
2551
|
+
}; W(a, e.token);) n = e.token, r = a[n], N(e), i = [t], t = new m(n, r, i), t = Ce(e, t);
|
|
2552
2552
|
return t;
|
|
2553
2553
|
}
|
|
2554
|
-
function
|
|
2554
|
+
function xe(e) {
|
|
2555
2555
|
var t = [];
|
|
2556
|
-
if (e.tokenType === x.SYMBOL &&
|
|
2556
|
+
if (e.tokenType === x.SYMBOL && W(e.extraNodes, e.token)) {
|
|
2557
2557
|
var n = e.extraNodes[e.token];
|
|
2558
|
-
if (
|
|
2559
|
-
if (t = [],
|
|
2560
|
-
if (e.token !== ")") throw
|
|
2561
|
-
I(e),
|
|
2558
|
+
if (N(e), e.token === "(") {
|
|
2559
|
+
if (t = [], F(e), N(e), e.token !== ")") for (t.push(L(e)); e.token === ",";) N(e), t.push(L(e));
|
|
2560
|
+
if (e.token !== ")") throw B(e, "Parenthesis ) expected");
|
|
2561
|
+
I(e), N(e);
|
|
2562
2562
|
}
|
|
2563
2563
|
return new n(t);
|
|
2564
2564
|
}
|
|
2565
|
-
return
|
|
2565
|
+
return Se(e);
|
|
2566
2566
|
}
|
|
2567
|
-
function
|
|
2567
|
+
function Se(e) {
|
|
2568
2568
|
var t, r;
|
|
2569
|
-
return e.tokenType === x.SYMBOL || e.tokenType === x.DELIMITER && e.token in C ? (r = e.token,
|
|
2569
|
+
return e.tokenType === x.SYMBOL || e.tokenType === x.DELIMITER && e.token in C ? (r = e.token, N(e), t = W(w, r) ? new l(w[r]) : T.includes(r) ? new l(n(r, "number")) : new v(r), t = Ce(e, t), t) : we(e);
|
|
2570
2570
|
}
|
|
2571
|
-
function
|
|
2571
|
+
function Ce(e, t, n) {
|
|
2572
2572
|
for (var r;;) {
|
|
2573
2573
|
var a = !1;
|
|
2574
|
-
e.token === "?." && (a = !0,
|
|
2574
|
+
e.token === "?." && (a = !0, N(e));
|
|
2575
2575
|
var o = (e.token === "(" || e.token === "[" || e.token === ".") && (!n || n.includes(e.token));
|
|
2576
2576
|
if (!(a || o)) break;
|
|
2577
|
-
if (r = [], e.token === "(") if (a ||
|
|
2578
|
-
if (
|
|
2579
|
-
if (e.token !== ")") throw
|
|
2580
|
-
I(e),
|
|
2577
|
+
if (r = [], e.token === "(") if (a || K(t) || Gn(t)) {
|
|
2578
|
+
if (F(e), N(e), e.token !== ")") for (r.push(L(e)); e.token === ",";) N(e), r.push(L(e));
|
|
2579
|
+
if (e.token !== ")") throw B(e, "Parenthesis ) expected");
|
|
2580
|
+
I(e), N(e), t = new d(t, r, a);
|
|
2581
2581
|
} else return t;
|
|
2582
2582
|
else if (e.token === "[") {
|
|
2583
|
-
if (
|
|
2584
|
-
if (e.token !== "]") throw
|
|
2585
|
-
I(e),
|
|
2583
|
+
if (F(e), N(e), e.token !== "]") for (r.push(L(e)); e.token === ",";) N(e), r.push(L(e));
|
|
2584
|
+
if (e.token !== "]") throw B(e, "Parenthesis ] expected");
|
|
2585
|
+
I(e), N(e), t = new i(t, new f(r), a);
|
|
2586
2586
|
} else {
|
|
2587
|
-
if (a ||
|
|
2587
|
+
if (a || N(e), !(e.tokenType === x.SYMBOL || e.tokenType === x.DELIMITER && e.token in C)) {
|
|
2588
2588
|
var s = "Property name expected after ";
|
|
2589
|
-
throw s += a ? "optional chain" : "dot",
|
|
2589
|
+
throw s += a ? "optional chain" : "dot", B(e, s);
|
|
2590
2590
|
}
|
|
2591
|
-
r.push(new l(e.token)),
|
|
2591
|
+
r.push(new l(e.token)), N(e), t = new i(t, new f(r, !0), a);
|
|
2592
2592
|
}
|
|
2593
2593
|
}
|
|
2594
2594
|
return t;
|
|
2595
2595
|
}
|
|
2596
|
-
function
|
|
2596
|
+
function we(e) {
|
|
2597
2597
|
var t, n;
|
|
2598
|
-
return e.token === "\"" || e.token === "'" ? (n =
|
|
2598
|
+
return e.token === "\"" || e.token === "'" ? (n = Te(e, e.token), t = new l(n), t = Ce(e, t), t) : Ee(e);
|
|
2599
2599
|
}
|
|
2600
|
-
function
|
|
2601
|
-
for (var n = "";
|
|
2602
|
-
|
|
2603
|
-
var r =
|
|
2600
|
+
function Te(e, t) {
|
|
2601
|
+
for (var n = ""; k(e) !== "" && k(e) !== t;) if (k(e) === "\\") {
|
|
2602
|
+
A(e);
|
|
2603
|
+
var r = k(e), i = E[r];
|
|
2604
2604
|
if (i !== void 0) n += i, e.index += 1;
|
|
2605
2605
|
else if (r === "u") {
|
|
2606
2606
|
var a = e.expression.slice(e.index + 1, e.index + 5);
|
|
2607
2607
|
if (/^[0-9A-Fa-f]{4}$/.test(a)) n += String.fromCharCode(parseInt(a, 16)), e.index += 5;
|
|
2608
|
-
else throw
|
|
2609
|
-
} else throw
|
|
2610
|
-
} else n +=
|
|
2611
|
-
if (
|
|
2612
|
-
return
|
|
2608
|
+
else throw B(e, `Invalid unicode character \\u${a}`);
|
|
2609
|
+
} else throw B(e, `Bad escape character \\${r}`);
|
|
2610
|
+
} else n += k(e), A(e);
|
|
2611
|
+
if (N(e), e.token !== t) throw B(e, `End of string ${t} expected`);
|
|
2612
|
+
return N(e), n;
|
|
2613
2613
|
}
|
|
2614
|
-
function
|
|
2614
|
+
function Ee(e) {
|
|
2615
2615
|
var t, n, r, i;
|
|
2616
2616
|
if (e.token === "[") {
|
|
2617
|
-
if (
|
|
2618
|
-
var o =
|
|
2617
|
+
if (F(e), N(e), e.token !== "]") {
|
|
2618
|
+
var o = De(e);
|
|
2619
2619
|
if (e.token === ";") {
|
|
2620
|
-
for (r = 1, n = [o]; e.token === ";";)
|
|
2621
|
-
if (e.token !== "]") throw
|
|
2622
|
-
I(e),
|
|
2623
|
-
for (var s = 1; s < r; s++) if (n[s].items.length !== i) throw
|
|
2620
|
+
for (r = 1, n = [o]; e.token === ";";) N(e), e.token !== "]" && (n[r] = De(e), r++);
|
|
2621
|
+
if (e.token !== "]") throw B(e, "End of matrix ] expected");
|
|
2622
|
+
I(e), N(e), i = n[0].items.length;
|
|
2623
|
+
for (var s = 1; s < r; s++) if (n[s].items.length !== i) throw Ne(e, "Column dimensions mismatch (" + n[s].items.length + " !== " + i + ")");
|
|
2624
2624
|
t = new a(n);
|
|
2625
2625
|
} else {
|
|
2626
|
-
if (e.token !== "]") throw
|
|
2627
|
-
I(e),
|
|
2626
|
+
if (e.token !== "]") throw B(e, "End of matrix ] expected");
|
|
2627
|
+
I(e), N(e), t = o;
|
|
2628
2628
|
}
|
|
2629
|
-
} else I(e),
|
|
2630
|
-
return
|
|
2629
|
+
} else I(e), N(e), t = new a([]);
|
|
2630
|
+
return Ce(e, t);
|
|
2631
2631
|
}
|
|
2632
|
-
return
|
|
2632
|
+
return Oe(e);
|
|
2633
2633
|
}
|
|
2634
|
-
function
|
|
2635
|
-
for (var t = [L(e)], n = 1; e.token === ",";)
|
|
2634
|
+
function De(e) {
|
|
2635
|
+
for (var t = [L(e)], n = 1; e.token === ",";) N(e), e.token !== "]" && e.token !== ";" && (t[n] = L(e), n++);
|
|
2636
2636
|
return new a(t);
|
|
2637
2637
|
}
|
|
2638
|
-
function
|
|
2638
|
+
function Oe(e) {
|
|
2639
2639
|
if (e.token === "{") {
|
|
2640
|
-
|
|
2640
|
+
F(e);
|
|
2641
2641
|
var t, n = {};
|
|
2642
2642
|
do
|
|
2643
|
-
if (
|
|
2644
|
-
if (e.token === "\"" || e.token === "'") t =
|
|
2645
|
-
else if (e.tokenType === x.SYMBOL || e.tokenType === x.DELIMITER && e.token in C) t = e.token,
|
|
2646
|
-
else throw
|
|
2647
|
-
if (e.token !== ":") throw
|
|
2648
|
-
|
|
2643
|
+
if (N(e), e.token !== "}") {
|
|
2644
|
+
if (e.token === "\"" || e.token === "'") t = Te(e, e.token);
|
|
2645
|
+
else if (e.tokenType === x.SYMBOL || e.tokenType === x.DELIMITER && e.token in C) t = e.token, N(e);
|
|
2646
|
+
else throw B(e, "Symbol or string expected as object key");
|
|
2647
|
+
if (e.token !== ":") throw B(e, "Colon : expected after object key");
|
|
2648
|
+
N(e), n[t] = L(e);
|
|
2649
2649
|
}
|
|
2650
2650
|
while (e.token === ",");
|
|
2651
|
-
if (e.token !== "}") throw
|
|
2652
|
-
I(e),
|
|
2651
|
+
if (e.token !== "}") throw B(e, "Comma , or bracket } expected after object value");
|
|
2652
|
+
I(e), N(e);
|
|
2653
2653
|
var r = new p(n);
|
|
2654
|
-
return r =
|
|
2654
|
+
return r = Ce(e, r), r;
|
|
2655
2655
|
}
|
|
2656
|
-
return
|
|
2656
|
+
return ke(e);
|
|
2657
2657
|
}
|
|
2658
|
-
function
|
|
2658
|
+
function ke(e) {
|
|
2659
2659
|
var t;
|
|
2660
2660
|
if (e.tokenType === x.NUMBER) {
|
|
2661
|
-
t = e.token,
|
|
2662
|
-
var i =
|
|
2661
|
+
t = e.token, N(e);
|
|
2662
|
+
var i = Tn(t, r);
|
|
2663
2663
|
return new l(n(t, i));
|
|
2664
2664
|
}
|
|
2665
|
-
return
|
|
2665
|
+
return Ae(e);
|
|
2666
2666
|
}
|
|
2667
|
-
function
|
|
2667
|
+
function Ae(e) {
|
|
2668
2668
|
var t;
|
|
2669
2669
|
if (e.token === "(") {
|
|
2670
|
-
if (
|
|
2671
|
-
return I(e),
|
|
2670
|
+
if (F(e), N(e), t = L(e), e.token !== ")") throw B(e, "Parenthesis ) expected");
|
|
2671
|
+
return I(e), N(e), t = new h(t), t = Ce(e, t), t;
|
|
2672
2672
|
}
|
|
2673
|
-
return
|
|
2673
|
+
return je(e);
|
|
2674
2674
|
}
|
|
2675
|
-
function
|
|
2676
|
-
throw e.token === "" ?
|
|
2675
|
+
function je(e) {
|
|
2676
|
+
throw e.token === "" ? B(e, "Unexpected end of expression") : B(e, "Value expected");
|
|
2677
2677
|
}
|
|
2678
|
-
function
|
|
2678
|
+
function Me(e) {
|
|
2679
2679
|
return e.index - e.token.length + 1;
|
|
2680
2680
|
}
|
|
2681
|
-
function
|
|
2682
|
-
var n =
|
|
2681
|
+
function B(e, t) {
|
|
2682
|
+
var n = Me(e), r = /* @__PURE__ */ SyntaxError(t + " (char " + n + ")");
|
|
2683
2683
|
return r.char = n, r;
|
|
2684
2684
|
}
|
|
2685
|
-
function
|
|
2686
|
-
var n =
|
|
2685
|
+
function Ne(e, t) {
|
|
2686
|
+
var n = Me(e), r = /* @__PURE__ */ SyntaxError(t + " (char " + n + ")");
|
|
2687
2687
|
return r.char = n, r;
|
|
2688
2688
|
}
|
|
2689
2689
|
return t.addConversion({
|
|
@@ -2698,7 +2698,7 @@ var ns = "OperatorNode", rs = /* #__PURE__ */ z(ns, ["Node"], (e) => {
|
|
|
2698
2698
|
return n(e).compile();
|
|
2699
2699
|
},
|
|
2700
2700
|
"Array | Matrix": function(e) {
|
|
2701
|
-
return
|
|
2701
|
+
return de(e, function(e) {
|
|
2702
2702
|
return n(e).compile();
|
|
2703
2703
|
});
|
|
2704
2704
|
}
|
|
@@ -2707,20 +2707,20 @@ var ns = "OperatorNode", rs = /* #__PURE__ */ z(ns, ["Node"], (e) => {
|
|
|
2707
2707
|
var { typed: t, parse: n } = e;
|
|
2708
2708
|
return t(_s, {
|
|
2709
2709
|
string: function(e) {
|
|
2710
|
-
var t =
|
|
2710
|
+
var t = ae();
|
|
2711
2711
|
return n(e).compile().evaluate(t);
|
|
2712
2712
|
},
|
|
2713
2713
|
"string, Map | Object": function(e, t) {
|
|
2714
2714
|
return n(e).compile().evaluate(t);
|
|
2715
2715
|
},
|
|
2716
2716
|
"Array | Matrix": function(e) {
|
|
2717
|
-
var t =
|
|
2718
|
-
return
|
|
2717
|
+
var t = ae();
|
|
2718
|
+
return de(e, function(e) {
|
|
2719
2719
|
return n(e).compile().evaluate(t);
|
|
2720
2720
|
});
|
|
2721
2721
|
},
|
|
2722
2722
|
"Array | Matrix, Map | Object": function(e, t) {
|
|
2723
|
-
return
|
|
2723
|
+
return de(e, function(e) {
|
|
2724
2724
|
return n(e).compile().evaluate(t);
|
|
2725
2725
|
});
|
|
2726
2726
|
}
|
|
@@ -2730,7 +2730,7 @@ var ns = "OperatorNode", rs = /* #__PURE__ */ z(ns, ["Node"], (e) => {
|
|
|
2730
2730
|
function r() {
|
|
2731
2731
|
if (!(this instanceof r)) throw SyntaxError("Constructor must be called with the new operator");
|
|
2732
2732
|
Object.defineProperty(this, "scope", {
|
|
2733
|
-
value:
|
|
2733
|
+
value: ae(),
|
|
2734
2734
|
writable: !1
|
|
2735
2735
|
});
|
|
2736
2736
|
}
|
|
@@ -2739,7 +2739,7 @@ var ns = "OperatorNode", rs = /* #__PURE__ */ z(ns, ["Node"], (e) => {
|
|
|
2739
2739
|
}, r.prototype.get = function(e) {
|
|
2740
2740
|
if (this.scope.has(e)) return this.scope.get(e);
|
|
2741
2741
|
}, r.prototype.getAll = function() {
|
|
2742
|
-
return
|
|
2742
|
+
return Ct(this.scope);
|
|
2743
2743
|
}, r.prototype.getAllAsMap = function() {
|
|
2744
2744
|
return this.scope;
|
|
2745
2745
|
};
|
|
@@ -2764,7 +2764,7 @@ var ns = "OperatorNode", rs = /* #__PURE__ */ z(ns, ["Node"], (e) => {
|
|
|
2764
2764
|
variables: {},
|
|
2765
2765
|
functions: {}
|
|
2766
2766
|
};
|
|
2767
|
-
for (var [t, n] of this.scope) if (
|
|
2767
|
+
for (var [t, n] of this.scope) if (Sa(n)) {
|
|
2768
2768
|
if (!bs(n)) throw Error(`Cannot serialize external function ${t}`);
|
|
2769
2769
|
e.functions[t] = `${n.syntax} = ${n.expr}`;
|
|
2770
2770
|
} else e.variables[t] = n;
|
|
@@ -2810,13 +2810,13 @@ var xs = "parser", Ss = /* #__PURE__ */ z(xs, ["typed", "Parser"], (e) => {
|
|
|
2810
2810
|
} catch (e) {
|
|
2811
2811
|
c = e;
|
|
2812
2812
|
}
|
|
2813
|
-
c !== void 0 && !
|
|
2813
|
+
c !== void 0 && !Ia(c) && (n += " " + yn(c, { precision: 14 }) + "\n");
|
|
2814
2814
|
}
|
|
2815
2815
|
n += "\n", r && t("config(originalConfig)", { originalConfig: i });
|
|
2816
2816
|
}
|
|
2817
2817
|
return e.mayThrow && e.mayThrow.length && (n += "Throws: " + e.mayThrow.join(", ") + "\n\n"), e.seealso && e.seealso.length && (n += "See also: " + e.seealso.join(", ") + "\n"), n;
|
|
2818
2818
|
}, n.prototype.toJSON = function() {
|
|
2819
|
-
var e =
|
|
2819
|
+
var e = sa(this.doc);
|
|
2820
2820
|
return e.mathjs = "Help", e;
|
|
2821
2821
|
}, n.fromJSON = function(e) {
|
|
2822
2822
|
var t = {};
|
|
@@ -2832,14 +2832,14 @@ var xs = "parser", Ss = /* #__PURE__ */ z(xs, ["typed", "Parser"], (e) => {
|
|
|
2832
2832
|
var { on: t, math: n, typed: r } = e;
|
|
2833
2833
|
function i(e) {
|
|
2834
2834
|
if (!(this instanceof i)) throw SyntaxError("Constructor must be called with the new operator");
|
|
2835
|
-
|
|
2835
|
+
Hi(e) ? this.value = e.value : this.value = e;
|
|
2836
2836
|
}
|
|
2837
2837
|
i.prototype.type = "Chain", i.prototype.isChain = !0, i.prototype.done = function() {
|
|
2838
2838
|
return this.value;
|
|
2839
2839
|
}, i.prototype.valueOf = function() {
|
|
2840
2840
|
return this.value;
|
|
2841
2841
|
}, i.prototype.toString = function() {
|
|
2842
|
-
return
|
|
2842
|
+
return yn(this.value);
|
|
2843
2843
|
}, i.prototype.toJSON = function() {
|
|
2844
2844
|
return {
|
|
2845
2845
|
mathjs: "Chain",
|
|
@@ -2852,7 +2852,7 @@ var xs = "parser", Ss = /* #__PURE__ */ z(xs, ["typed", "Parser"], (e) => {
|
|
|
2852
2852
|
typeof t == "function" && (i.prototype[e] = s(t));
|
|
2853
2853
|
}
|
|
2854
2854
|
function o(e, t) {
|
|
2855
|
-
|
|
2855
|
+
Mn(i.prototype, e, function() {
|
|
2856
2856
|
var e = t();
|
|
2857
2857
|
if (typeof e == "function") return s(e);
|
|
2858
2858
|
});
|
|
@@ -2873,7 +2873,7 @@ var xs = "parser", Ss = /* #__PURE__ */ z(xs, ["typed", "Parser"], (e) => {
|
|
|
2873
2873
|
if (typeof e == "string") a(e, t);
|
|
2874
2874
|
else {
|
|
2875
2875
|
var n = function(t) {
|
|
2876
|
-
|
|
2876
|
+
W(e, t) && c[t] === void 0 && o(t, () => e[t]);
|
|
2877
2877
|
};
|
|
2878
2878
|
for (var r in e) n(r);
|
|
2879
2879
|
}
|
|
@@ -7168,12 +7168,12 @@ var xs = "parser", Ss = /* #__PURE__ */ z(xs, ["typed", "Parser"], (e) => {
|
|
|
7168
7168
|
return t(Rs, { any: function(e) {
|
|
7169
7169
|
var t, i = e;
|
|
7170
7170
|
if (typeof e != "string") {
|
|
7171
|
-
for (t in n) if (
|
|
7171
|
+
for (t in n) if (W(n, t) && e === n[t]) {
|
|
7172
7172
|
i = t;
|
|
7173
7173
|
break;
|
|
7174
7174
|
}
|
|
7175
7175
|
}
|
|
7176
|
-
var a =
|
|
7176
|
+
var a = p(Ls, i);
|
|
7177
7177
|
if (!a) {
|
|
7178
7178
|
var o = typeof i == "function" ? i.name : i;
|
|
7179
7179
|
throw Error("No documentation found on \"" + o + "\"");
|
|
@@ -7205,10 +7205,10 @@ var xs = "parser", Ss = /* #__PURE__ */ z(xs, ["typed", "Parser"], (e) => {
|
|
|
7205
7205
|
//#endregion
|
|
7206
7206
|
//#region ../../../node_modules/.bun/mathjs@15.2.0/node_modules/mathjs/lib/esm/function/algebra/simplify/wildcards.js
|
|
7207
7207
|
function Ws(e) {
|
|
7208
|
-
return
|
|
7208
|
+
return G(e) || q(e) && e.isUnary() && G(e.args[0]);
|
|
7209
7209
|
}
|
|
7210
7210
|
function Gs(e) {
|
|
7211
|
-
return !!(
|
|
7211
|
+
return !!(G(e) || (Oi(e) || q(e)) && e.args.every(Gs) || $n(e) && Gs(e.content));
|
|
7212
7212
|
}
|
|
7213
7213
|
//#endregion
|
|
7214
7214
|
//#region ../../../node_modules/.bun/mathjs@15.2.0/node_modules/mathjs/lib/esm/function/algebra/simplify/util.js
|
|
@@ -7226,7 +7226,7 @@ function qs(e) {
|
|
|
7226
7226
|
for (var t = 1; t < arguments.length; t++) {
|
|
7227
7227
|
var n = arguments[t] == null ? {} : arguments[t];
|
|
7228
7228
|
t % 2 ? Ks(Object(n), !0).forEach(function(t) {
|
|
7229
|
-
|
|
7229
|
+
Y(e, t, n[t]);
|
|
7230
7230
|
}) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) : Ks(Object(n)).forEach(function(t) {
|
|
7231
7231
|
Object.defineProperty(e, t, Object.getOwnPropertyDescriptor(n, t));
|
|
7232
7232
|
});
|
|
@@ -7291,18 +7291,18 @@ var Js = /* #__PURE__ */ z("simplifyUtil", [
|
|
|
7291
7291
|
};
|
|
7292
7292
|
function u(e, t) {
|
|
7293
7293
|
var n = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : s, r = o;
|
|
7294
|
-
if (typeof e == "string" ? r = e :
|
|
7294
|
+
if (typeof e == "string" ? r = e : q(e) ? r = e.fn.toString() : Oi(e) ? r = e.name : $n(e) && (r = "paren"), W(n, r)) {
|
|
7295
7295
|
var i = n[r];
|
|
7296
|
-
if (
|
|
7297
|
-
if (
|
|
7296
|
+
if (W(i, t)) return i[t];
|
|
7297
|
+
if (W(s, r)) return s[r][t];
|
|
7298
7298
|
}
|
|
7299
|
-
if (
|
|
7299
|
+
if (W(n, o)) {
|
|
7300
7300
|
var a = n[o];
|
|
7301
|
-
return
|
|
7301
|
+
return W(a, t) ? a[t] : s[o][t];
|
|
7302
7302
|
}
|
|
7303
|
-
if (
|
|
7303
|
+
if (W(s, r)) {
|
|
7304
7304
|
var c = s[r];
|
|
7305
|
-
if (
|
|
7305
|
+
if (W(c, t)) return c[t];
|
|
7306
7306
|
}
|
|
7307
7307
|
return s[o][t];
|
|
7308
7308
|
}
|
|
@@ -7314,7 +7314,7 @@ var Js = /* #__PURE__ */ z("simplifyUtil", [
|
|
|
7314
7314
|
}
|
|
7315
7315
|
function p(e, t) {
|
|
7316
7316
|
var n = qs({}, e);
|
|
7317
|
-
for (var r in t)
|
|
7317
|
+
for (var r in t) W(e, r) ? n[r] = qs(qs({}, t[r]), e[r]) : n[r] = t[r];
|
|
7318
7318
|
return n;
|
|
7319
7319
|
}
|
|
7320
7320
|
function m(e, t) {
|
|
@@ -7326,7 +7326,7 @@ var Js = /* #__PURE__ */ z("simplifyUtil", [
|
|
|
7326
7326
|
var n, r = [], i = function(e) {
|
|
7327
7327
|
for (var t = 0; t < e.args.length; t++) {
|
|
7328
7328
|
var a = e.args[t];
|
|
7329
|
-
|
|
7329
|
+
q(a) && n === a.op ? i(a) : r.push(a);
|
|
7330
7330
|
}
|
|
7331
7331
|
};
|
|
7332
7332
|
return f(e, t) ? (n = e.op, i(e), r) : e.args;
|
|
@@ -7350,7 +7350,7 @@ var Js = /* #__PURE__ */ z("simplifyUtil", [
|
|
|
7350
7350
|
}
|
|
7351
7351
|
}
|
|
7352
7352
|
function v(e) {
|
|
7353
|
-
return
|
|
7353
|
+
return q(e) ? function(t) {
|
|
7354
7354
|
try {
|
|
7355
7355
|
return new n(e.op, e.fn, t, e.implicit);
|
|
7356
7356
|
} catch (e) {
|
|
@@ -7400,7 +7400,7 @@ var Js = /* #__PURE__ */ z("simplifyUtil", [
|
|
|
7400
7400
|
t.addConversion({
|
|
7401
7401
|
from: "Object",
|
|
7402
7402
|
to: "Map",
|
|
7403
|
-
convert:
|
|
7403
|
+
convert: I
|
|
7404
7404
|
});
|
|
7405
7405
|
var O = t("simplify", {
|
|
7406
7406
|
Node: F,
|
|
@@ -7413,11 +7413,11 @@ var Js = /* #__PURE__ */ z("simplifyUtil", [
|
|
|
7413
7413
|
t.removeConversion({
|
|
7414
7414
|
from: "Object",
|
|
7415
7415
|
to: "Map",
|
|
7416
|
-
convert:
|
|
7416
|
+
convert: I
|
|
7417
7417
|
}), O.defaultContext = T, O.realContext = E, O.positiveContext = D;
|
|
7418
7418
|
function k(e) {
|
|
7419
7419
|
return e.transform(function(e) {
|
|
7420
|
-
return
|
|
7420
|
+
return $n(e) ? k(e.content) : e;
|
|
7421
7421
|
});
|
|
7422
7422
|
}
|
|
7423
7423
|
var A = {
|
|
@@ -7711,7 +7711,7 @@ var Js = /* #__PURE__ */ z("simplifyUtil", [
|
|
|
7711
7711
|
return new h("_p" + N++);
|
|
7712
7712
|
}
|
|
7713
7713
|
function F(e, t) {
|
|
7714
|
-
var n = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] :
|
|
7714
|
+
var n = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : ae(), r = arguments.length > 3 && arguments[3] !== void 0 ? arguments[3] : {}, a = r.consoleDebug;
|
|
7715
7715
|
t = M(t || O.rules, r.context);
|
|
7716
7716
|
var o = i(e, n);
|
|
7717
7717
|
o = k(o);
|
|
@@ -7731,7 +7731,7 @@ var Js = /* #__PURE__ */ z("simplifyUtil", [
|
|
|
7731
7731
|
}
|
|
7732
7732
|
return o;
|
|
7733
7733
|
}
|
|
7734
|
-
function
|
|
7734
|
+
function ee(e, t, n) {
|
|
7735
7735
|
var r = e;
|
|
7736
7736
|
if (e) for (var i = 0; i < e.length; ++i) {
|
|
7737
7737
|
var a = te(e[i], t, n);
|
|
@@ -7745,7 +7745,7 @@ var Js = /* #__PURE__ */ z("simplifyUtil", [
|
|
|
7745
7745
|
}
|
|
7746
7746
|
var a = b(t.imposeContext, n), o = e;
|
|
7747
7747
|
if (o instanceof p || o instanceof u) {
|
|
7748
|
-
var l =
|
|
7748
|
+
var l = ee(o.args, t, n);
|
|
7749
7749
|
l !== o.args && (o = o.clone(), o.args = l);
|
|
7750
7750
|
} else if (o instanceof m) {
|
|
7751
7751
|
if (o.content) {
|
|
@@ -7753,7 +7753,7 @@ var Js = /* #__PURE__ */ z("simplifyUtil", [
|
|
|
7753
7753
|
h !== o.content && (o = new m(h));
|
|
7754
7754
|
}
|
|
7755
7755
|
} else if (o instanceof c) {
|
|
7756
|
-
var g =
|
|
7756
|
+
var g = ee(o.items, t, n);
|
|
7757
7757
|
g !== o.items && (o = new c(g));
|
|
7758
7758
|
} else if (o instanceof s) {
|
|
7759
7759
|
var v = o.object;
|
|
@@ -7761,23 +7761,23 @@ var Js = /* #__PURE__ */ z("simplifyUtil", [
|
|
|
7761
7761
|
var y = o.index;
|
|
7762
7762
|
o.index && (y = te(o.index, t, n)), (v !== o.object || y !== o.index) && (o = new s(v, y));
|
|
7763
7763
|
} else if (o instanceof d) {
|
|
7764
|
-
var x =
|
|
7764
|
+
var x = ee(o.dimensions, t, n);
|
|
7765
7765
|
x !== o.dimensions && (o = new d(x));
|
|
7766
7766
|
} else if (o instanceof f) {
|
|
7767
7767
|
var S = !1, C = {};
|
|
7768
7768
|
for (var w in o.properties) C[w] = te(o.properties[w], t, n), C[w] !== o.properties[w] && (S = !0);
|
|
7769
7769
|
S && (o = new f(C));
|
|
7770
7770
|
}
|
|
7771
|
-
var T = t.r, E =
|
|
7772
|
-
if (!E && t.expanded && (T = t.expanded.r, E =
|
|
7771
|
+
var T = t.r, E = R(t.l, o, a)[0];
|
|
7772
|
+
if (!E && t.expanded && (T = t.expanded.r, E = R(t.expanded.l, o, a)[0]), !E && t.expandedNC1 && (T = t.expandedNC1.r, E = R(t.expandedNC1.l, o, a)[0], E ||= (T = t.expandedNC2.r, R(t.expandedNC2.l, o, a)[0])), E) {
|
|
7773
7773
|
var D = o.implicit;
|
|
7774
7774
|
o = T.clone(), D && "implicit" in T && (o.implicit = !0), o = o.transform(function(e) {
|
|
7775
|
-
return e.isSymbolNode &&
|
|
7775
|
+
return e.isSymbolNode && W(E.placeholders, e.name) ? E.placeholders[e.name].clone() : e;
|
|
7776
7776
|
});
|
|
7777
7777
|
}
|
|
7778
7778
|
return t.repeat && o !== e && (o = te(o, t, n)), o;
|
|
7779
7779
|
}
|
|
7780
|
-
function
|
|
7780
|
+
function L(e, t) {
|
|
7781
7781
|
var n = [], r, i, a = w(e);
|
|
7782
7782
|
if (v(e, t)) for (var o = 0; o < e.args.length; o++) i = e.args.slice(0), i.splice(o, 1), r = i.length === 1 ? i[0] : a(i), n.push(a([e.args[o], r]));
|
|
7783
7783
|
else for (var s = 1; s < e.args.length; s++) {
|
|
@@ -7786,19 +7786,19 @@ var Js = /* #__PURE__ */ z("simplifyUtil", [
|
|
|
7786
7786
|
}
|
|
7787
7787
|
return n;
|
|
7788
7788
|
}
|
|
7789
|
-
function
|
|
7789
|
+
function ne(e, t) {
|
|
7790
7790
|
var n = { placeholders: {} };
|
|
7791
7791
|
if (!e.placeholders && !t.placeholders) return n;
|
|
7792
7792
|
if (!e.placeholders) return t;
|
|
7793
7793
|
if (!t.placeholders) return e;
|
|
7794
|
-
for (var r in e.placeholders) if (
|
|
7795
|
-
for (var i in t.placeholders)
|
|
7794
|
+
for (var r in e.placeholders) if (W(e.placeholders, r) && (n.placeholders[r] = e.placeholders[r], W(t.placeholders, r) && !oe(e.placeholders[r], t.placeholders[r]))) return null;
|
|
7795
|
+
for (var i in t.placeholders) W(t.placeholders, i) && (n.placeholders[i] = t.placeholders[i]);
|
|
7796
7796
|
return n;
|
|
7797
7797
|
}
|
|
7798
7798
|
function re(e, t) {
|
|
7799
7799
|
var n = [];
|
|
7800
7800
|
if (e.length === 0 || t.length === 0) return n;
|
|
7801
|
-
for (var r, i = 0; i < e.length; i++) for (var a = 0; a < t.length; a++) r =
|
|
7801
|
+
for (var r, i = 0; i < e.length; i++) for (var a = 0; a < t.length; a++) r = ne(e[i], t[a]), r && n.push(r);
|
|
7802
7802
|
return n;
|
|
7803
7803
|
}
|
|
7804
7804
|
function ie(e) {
|
|
@@ -7809,7 +7809,7 @@ var Js = /* #__PURE__ */ z("simplifyUtil", [
|
|
|
7809
7809
|
}
|
|
7810
7810
|
return n;
|
|
7811
7811
|
}
|
|
7812
|
-
function
|
|
7812
|
+
function R(e, t, n, i) {
|
|
7813
7813
|
var a = [{ placeholders: {} }];
|
|
7814
7814
|
if (e instanceof p && t instanceof p || e instanceof u && t instanceof u) {
|
|
7815
7815
|
if (e instanceof p) {
|
|
@@ -7817,23 +7817,23 @@ var Js = /* #__PURE__ */ z("simplifyUtil", [
|
|
|
7817
7817
|
} else if (e instanceof u && e.name !== t.name) return [];
|
|
7818
7818
|
if (t.args.length === 1 && e.args.length === 1 || !y(t, n) && t.args.length === e.args.length || i) {
|
|
7819
7819
|
for (var o = [], s = 0; s < e.args.length; s++) {
|
|
7820
|
-
var c =
|
|
7820
|
+
var c = R(e.args[s], t.args[s], n);
|
|
7821
7821
|
if (c.length === 0) break;
|
|
7822
7822
|
o.push(c);
|
|
7823
7823
|
}
|
|
7824
7824
|
if (o.length !== e.args.length) {
|
|
7825
7825
|
if (!v(t, n) || e.args.length === 1) return [];
|
|
7826
7826
|
if (e.args.length > 2) throw Error("permuting >2 commutative non-associative rule arguments not yet implemented");
|
|
7827
|
-
var d =
|
|
7827
|
+
var d = R(e.args[0], t.args[1], n);
|
|
7828
7828
|
if (d.length === 0) return [];
|
|
7829
|
-
var f =
|
|
7829
|
+
var f = R(e.args[1], t.args[0], n);
|
|
7830
7830
|
if (f.length === 0) return [];
|
|
7831
7831
|
o = [d, f];
|
|
7832
7832
|
}
|
|
7833
7833
|
a = ie(o);
|
|
7834
7834
|
} else if (t.args.length >= 2 && e.args.length === 2) {
|
|
7835
|
-
for (var m =
|
|
7836
|
-
var b =
|
|
7835
|
+
for (var m = L(t, n), g = [], _ = 0; _ < m.length; _++) {
|
|
7836
|
+
var b = R(e, m[_], n, !0);
|
|
7837
7837
|
g = g.concat(b);
|
|
7838
7838
|
}
|
|
7839
7839
|
return g;
|
|
@@ -7850,15 +7850,15 @@ var Js = /* #__PURE__ */ z("simplifyUtil", [
|
|
|
7850
7850
|
break;
|
|
7851
7851
|
case "c":
|
|
7852
7852
|
case "cl":
|
|
7853
|
-
if (
|
|
7853
|
+
if (G(t)) a[0].placeholders[e.name] = t;
|
|
7854
7854
|
else return [];
|
|
7855
7855
|
break;
|
|
7856
7856
|
case "v":
|
|
7857
|
-
if (!
|
|
7857
|
+
if (!G(t)) a[0].placeholders[e.name] = t;
|
|
7858
7858
|
else return [];
|
|
7859
7859
|
break;
|
|
7860
7860
|
case "vl":
|
|
7861
|
-
if (
|
|
7861
|
+
if (K(t)) a[0].placeholders[e.name] = t;
|
|
7862
7862
|
else return [];
|
|
7863
7863
|
break;
|
|
7864
7864
|
case "cd":
|
|
@@ -7916,61 +7916,61 @@ var Js = /* #__PURE__ */ z("simplifyUtil", [
|
|
|
7916
7916
|
"OperatorNode",
|
|
7917
7917
|
"SymbolNode"
|
|
7918
7918
|
], (e) => {
|
|
7919
|
-
var { typed: t, config: n, mathWithTransform: r, matrix:
|
|
7920
|
-
FunctionNode:
|
|
7921
|
-
OperatorNode:
|
|
7922
|
-
SymbolNode:
|
|
7923
|
-
}),
|
|
7924
|
-
Node: (e) =>
|
|
7919
|
+
var { typed: t, config: n, mathWithTransform: r, matrix: a, isBounded: o, fraction: s, bignumber: c, AccessorNode: l, ArrayNode: u, ConstantNode: d, FunctionNode: f, IndexNode: p, ObjectNode: m, OperatorNode: h, SymbolNode: g } = e, { isCommutative: _, isAssociative: v, allChildren: y, createMakeNodeFunction: b } = Js({
|
|
7920
|
+
FunctionNode: f,
|
|
7921
|
+
OperatorNode: h,
|
|
7922
|
+
SymbolNode: g
|
|
7923
|
+
}), x = t("simplifyConstant", {
|
|
7924
|
+
Node: (e) => T(N(e, {})),
|
|
7925
7925
|
"Node, Object": function(e, t) {
|
|
7926
|
-
return
|
|
7926
|
+
return T(N(e, t));
|
|
7927
7927
|
}
|
|
7928
7928
|
});
|
|
7929
|
-
function
|
|
7930
|
-
return
|
|
7929
|
+
function S(e) {
|
|
7930
|
+
return Yi(e) ? e.valueOf() : e instanceof Array ? e.map(S) : zr(e) ? a(S(e.valueOf())) : e;
|
|
7931
7931
|
}
|
|
7932
|
-
function
|
|
7932
|
+
function C(e, t, n) {
|
|
7933
7933
|
try {
|
|
7934
7934
|
return r[e].apply(null, t);
|
|
7935
7935
|
} catch {
|
|
7936
|
-
return t = t.map(
|
|
7936
|
+
return t = t.map(S), O(r[e].apply(null, t), n);
|
|
7937
7937
|
}
|
|
7938
7938
|
}
|
|
7939
|
-
var
|
|
7940
|
-
Fraction:
|
|
7939
|
+
var w = t({
|
|
7940
|
+
Fraction: A,
|
|
7941
7941
|
number: function(e) {
|
|
7942
|
-
return e < 0 ?
|
|
7942
|
+
return e < 0 ? k(new d(-e)) : new d(e);
|
|
7943
7943
|
},
|
|
7944
7944
|
BigNumber: function(e) {
|
|
7945
|
-
return e < 0 ?
|
|
7945
|
+
return e < 0 ? k(new d(-e)) : new d(e);
|
|
7946
7946
|
},
|
|
7947
7947
|
bigint: function(e) {
|
|
7948
|
-
return e < 0n ?
|
|
7948
|
+
return e < 0n ? k(new d(-e)) : new d(e);
|
|
7949
7949
|
},
|
|
7950
7950
|
Complex: function(e) {
|
|
7951
7951
|
throw Error("Cannot convert Complex number to Node");
|
|
7952
7952
|
},
|
|
7953
7953
|
string: function(e) {
|
|
7954
|
-
return new
|
|
7954
|
+
return new d(e);
|
|
7955
7955
|
},
|
|
7956
7956
|
Matrix: function(e) {
|
|
7957
|
-
return new
|
|
7957
|
+
return new u(e.valueOf().map((e) => w(e)));
|
|
7958
7958
|
}
|
|
7959
7959
|
});
|
|
7960
|
-
function
|
|
7961
|
-
return
|
|
7960
|
+
function T(e) {
|
|
7961
|
+
return J(e) ? e : w(e);
|
|
7962
7962
|
}
|
|
7963
|
-
function
|
|
7964
|
-
if (t && t.exactFractions !== !1 &&
|
|
7965
|
-
var n =
|
|
7963
|
+
function D(e, t) {
|
|
7964
|
+
if (t && t.exactFractions !== !1 && o(e) && s) {
|
|
7965
|
+
var n = s(e), r = t && typeof t.fractionsLimit == "number" ? t.fractionsLimit : Infinity;
|
|
7966
7966
|
if (n.valueOf() === e && n.n < r && n.d < r) return n;
|
|
7967
7967
|
}
|
|
7968
7968
|
return e;
|
|
7969
7969
|
}
|
|
7970
|
-
var
|
|
7970
|
+
var O = t({
|
|
7971
7971
|
"string, Object": function(e, t) {
|
|
7972
|
-
var r =
|
|
7973
|
-
return r === "BigNumber" ? (
|
|
7972
|
+
var r = Tn(e, n);
|
|
7973
|
+
return r === "BigNumber" ? (c === void 0 && Yt(), c(e)) : r === "bigint" ? BigInt(e) : r === "Fraction" ? (s === void 0 && E(), s(e)) : D(parseFloat(e), t);
|
|
7974
7974
|
},
|
|
7975
7975
|
"Fraction, Object": function(e, t) {
|
|
7976
7976
|
return e;
|
|
@@ -7979,112 +7979,112 @@ var Js = /* #__PURE__ */ z("simplifyUtil", [
|
|
|
7979
7979
|
return e;
|
|
7980
7980
|
},
|
|
7981
7981
|
"number, Object": function(e, t) {
|
|
7982
|
-
return
|
|
7982
|
+
return D(e, t);
|
|
7983
7983
|
},
|
|
7984
7984
|
"bigint, Object": function(e, t) {
|
|
7985
7985
|
return e;
|
|
7986
7986
|
},
|
|
7987
7987
|
"Complex, Object": function(e, t) {
|
|
7988
|
-
return e.im === 0 ?
|
|
7988
|
+
return e.im === 0 ? D(e.re, t) : e;
|
|
7989
7989
|
},
|
|
7990
7990
|
"Matrix, Object": function(e, t) {
|
|
7991
|
-
return
|
|
7991
|
+
return a(D(e.valueOf()));
|
|
7992
7992
|
},
|
|
7993
7993
|
"Array, Object": function(e, t) {
|
|
7994
|
-
return e.map(
|
|
7994
|
+
return e.map(D);
|
|
7995
7995
|
}
|
|
7996
7996
|
});
|
|
7997
|
-
function O(e) {
|
|
7998
|
-
return new m("-", "unaryMinus", [e]);
|
|
7999
|
-
}
|
|
8000
7997
|
function k(e) {
|
|
8001
|
-
|
|
8002
|
-
return e.d === 1n ? i : new m("/", "divide", [i, new u(t(e.d))]);
|
|
7998
|
+
return new h("-", "unaryMinus", [e]);
|
|
8003
7999
|
}
|
|
8004
|
-
function A(e
|
|
8005
|
-
|
|
8006
|
-
|
|
8007
|
-
|
|
8008
|
-
|
|
8009
|
-
|
|
8010
|
-
|
|
8011
|
-
|
|
8012
|
-
|
|
8013
|
-
|
|
8000
|
+
function A(e) {
|
|
8001
|
+
var t = (e) => n.number === "BigNumber" && c ? c(e) : Number(e), r = e.s * e.n, i = r < 0n ? new h("-", "unaryMinus", [new d(-t(r))]) : new d(t(r));
|
|
8002
|
+
return e.d === 1n ? i : new h("/", "divide", [i, new d(t(e.d))]);
|
|
8003
|
+
}
|
|
8004
|
+
function j(e, t, n) {
|
|
8005
|
+
if (!Tr(t)) return new l(T(e), T(t));
|
|
8006
|
+
if (i(e) || zr(e)) {
|
|
8007
|
+
for (var r = Array.from(t.dimensions); r.length > 0;) if (G(r[0]) && typeof r[0].value != "string") {
|
|
8008
|
+
var o = O(r.shift().value, n);
|
|
8009
|
+
i(e) ? e = e.items[o - 1] : (e = e.valueOf()[o - 1], e instanceof Array && (e = a(e)));
|
|
8010
|
+
} else if (r.length > 1 && G(r[1]) && typeof r[1].value != "string") {
|
|
8011
|
+
var s = O(r[1].value, n), c = [], f = i(e) ? e.items : e.valueOf();
|
|
8012
|
+
for (var m of f) if (i(m)) c.push(m.items[s - 1]);
|
|
8013
|
+
else if (zr(e)) c.push(m[s - 1]);
|
|
8014
8014
|
else break;
|
|
8015
|
-
if (
|
|
8015
|
+
if (c.length === f.length) e = i(e) ? new u(c) : a(c), r.splice(1, 1);
|
|
8016
8016
|
else break;
|
|
8017
8017
|
} else break;
|
|
8018
|
-
return r.length === t.dimensions.length ? new
|
|
8018
|
+
return r.length === t.dimensions.length ? new l(T(e), t) : r.length > 0 ? (t = new p(r), new l(T(e), t)) : e;
|
|
8019
8019
|
}
|
|
8020
|
-
if (
|
|
8021
|
-
var
|
|
8022
|
-
return
|
|
8020
|
+
if (Qr(e) && t.dimensions.length === 1 && G(t.dimensions[0])) {
|
|
8021
|
+
var h = t.dimensions[0].value;
|
|
8022
|
+
return h in e.properties ? e.properties[h] : new d();
|
|
8023
8023
|
}
|
|
8024
|
-
return new
|
|
8024
|
+
return new l(T(e), t);
|
|
8025
8025
|
}
|
|
8026
|
-
function
|
|
8026
|
+
function M(e, t, n, r) {
|
|
8027
8027
|
var i = t.shift(), a = t.reduce((t, i) => {
|
|
8028
|
-
if (!
|
|
8028
|
+
if (!J(i)) {
|
|
8029
8029
|
var a = t.pop();
|
|
8030
|
-
if (
|
|
8030
|
+
if (J(a)) return [a, i];
|
|
8031
8031
|
try {
|
|
8032
|
-
return t.push(
|
|
8032
|
+
return t.push(C(e, [a, i], r)), t;
|
|
8033
8033
|
} catch {
|
|
8034
8034
|
t.push(a);
|
|
8035
8035
|
}
|
|
8036
8036
|
}
|
|
8037
|
-
return t.push(
|
|
8037
|
+
return t.push(T(t.pop())), [n([t.length === 1 ? t[0] : n(t), T(i)])];
|
|
8038
8038
|
}, [i]);
|
|
8039
|
-
return a.length === 1 ? a[0] : n([a[0],
|
|
8039
|
+
return a.length === 1 ? a[0] : n([a[0], w(a[1])]);
|
|
8040
8040
|
}
|
|
8041
|
-
function
|
|
8041
|
+
function N(e, t) {
|
|
8042
8042
|
switch (e.type) {
|
|
8043
8043
|
case "SymbolNode": return e;
|
|
8044
8044
|
case "ConstantNode":
|
|
8045
8045
|
switch (typeof e.value) {
|
|
8046
|
-
case "number": return
|
|
8047
|
-
case "bigint": return
|
|
8046
|
+
case "number": return O(e.value, t);
|
|
8047
|
+
case "bigint": return O(e.value, t);
|
|
8048
8048
|
case "string": return e.value;
|
|
8049
|
-
default: if (!isNaN(e.value)) return
|
|
8049
|
+
default: if (!isNaN(e.value)) return O(e.value, t);
|
|
8050
8050
|
}
|
|
8051
8051
|
return e;
|
|
8052
8052
|
case "FunctionNode":
|
|
8053
8053
|
if (r[e.name] && r[e.name].rawArgs) return e;
|
|
8054
8054
|
if (!["add", "multiply"].includes(e.name)) {
|
|
8055
|
-
var n = e.args.map((e) =>
|
|
8056
|
-
if (!n.some(
|
|
8057
|
-
return
|
|
8055
|
+
var n = e.args.map((e) => N(e, t));
|
|
8056
|
+
if (!n.some(J)) try {
|
|
8057
|
+
return C(e.name, n, t);
|
|
8058
8058
|
} catch {}
|
|
8059
|
-
if (e.name === "size" && n.length === 1 &&
|
|
8060
|
-
for (var
|
|
8061
|
-
return
|
|
8059
|
+
if (e.name === "size" && n.length === 1 && i(n[0])) {
|
|
8060
|
+
for (var o = [], s = n[0]; i(s);) o.push(s.items.length), s = s.items[0];
|
|
8061
|
+
return a(o);
|
|
8062
8062
|
}
|
|
8063
|
-
return new
|
|
8063
|
+
return new f(e.name, n.map(T));
|
|
8064
8064
|
}
|
|
8065
8065
|
case "OperatorNode":
|
|
8066
|
-
var
|
|
8067
|
-
if (
|
|
8068
|
-
else if (
|
|
8069
|
-
for (var
|
|
8070
|
-
|
|
8071
|
-
} else
|
|
8072
|
-
else
|
|
8073
|
-
return
|
|
8074
|
-
case "ParenthesisNode": return
|
|
8075
|
-
case "AccessorNode": return
|
|
8066
|
+
var c = e.fn.toString(), l, d, h = b(e);
|
|
8067
|
+
if (q(e) && e.isUnary()) l = [N(e.args[0], t)], d = J(l[0]) ? h(l) : C(c, l, t);
|
|
8068
|
+
else if (v(e, t.context)) if (l = y(e, t.context), l = l.map((e) => N(e, t)), _(c, t.context)) {
|
|
8069
|
+
for (var g = [], S = [], w = 0; w < l.length; w++) J(l[w]) ? S.push(l[w]) : g.push(l[w]);
|
|
8070
|
+
g.length > 1 ? (d = M(c, g, h, t), S.unshift(d), d = M(c, S, h, t)) : d = M(c, l, h, t);
|
|
8071
|
+
} else d = M(c, l, h, t);
|
|
8072
|
+
else l = e.args.map((e) => N(e, t)), d = M(c, l, h, t);
|
|
8073
|
+
return d;
|
|
8074
|
+
case "ParenthesisNode": return N(e.content, t);
|
|
8075
|
+
case "AccessorNode": return j(N(e.object, t), N(e.index, t), t);
|
|
8076
8076
|
case "ArrayNode":
|
|
8077
|
-
var
|
|
8078
|
-
return
|
|
8079
|
-
case "IndexNode": return new
|
|
8077
|
+
var E = e.items.map((e) => N(e, t));
|
|
8078
|
+
return E.some(J) ? new u(E.map(T)) : a(E);
|
|
8079
|
+
case "IndexNode": return new p(e.dimensions.map((e) => x(e, t)));
|
|
8080
8080
|
case "ObjectNode":
|
|
8081
|
-
var
|
|
8082
|
-
for (var
|
|
8083
|
-
return new
|
|
8081
|
+
var D = {};
|
|
8082
|
+
for (var k in e.properties) D[k] = x(e.properties[k], t);
|
|
8083
|
+
return new m(D);
|
|
8084
8084
|
default: throw Error(`Unimplemented node type in simplifyConstant: ${e.type}`);
|
|
8085
8085
|
}
|
|
8086
8086
|
}
|
|
8087
|
-
return
|
|
8087
|
+
return x;
|
|
8088
8088
|
}), Zs = "simplifyCore", Qs = /* #__PURE__ */ z(Zs, [
|
|
8089
8089
|
"typed",
|
|
8090
8090
|
"parse",
|
|
@@ -8105,106 +8105,106 @@ var Js = /* #__PURE__ */ z("simplifyUtil", [
|
|
|
8105
8105
|
"ParenthesisNode",
|
|
8106
8106
|
"SymbolNode"
|
|
8107
8107
|
], (e) => {
|
|
8108
|
-
var { typed: t, parse: n, equal: r, isZero:
|
|
8109
|
-
function
|
|
8110
|
-
return
|
|
8108
|
+
var { typed: t, parse: n, equal: r, isZero: a, add: o, subtract: s, multiply: c, divide: l, pow: u, AccessorNode: d, ArrayNode: f, ConstantNode: p, FunctionNode: m, IndexNode: h, ObjectNode: g, OperatorNode: _, ParenthesisNode: v, SymbolNode: y } = e, b = new p(0), x = new p(1), S = new p(!0), C = new p(!1);
|
|
8109
|
+
function w(e) {
|
|
8110
|
+
return q(e) && [
|
|
8111
8111
|
"and",
|
|
8112
8112
|
"not",
|
|
8113
8113
|
"or"
|
|
8114
8114
|
].includes(e.op);
|
|
8115
8115
|
}
|
|
8116
|
-
var { hasProperty:
|
|
8117
|
-
FunctionNode:
|
|
8118
|
-
OperatorNode:
|
|
8119
|
-
SymbolNode:
|
|
8116
|
+
var { hasProperty: T, isCommutative: E } = Js({
|
|
8117
|
+
FunctionNode: m,
|
|
8118
|
+
OperatorNode: _,
|
|
8119
|
+
SymbolNode: y
|
|
8120
8120
|
});
|
|
8121
|
-
function
|
|
8121
|
+
function D(e) {
|
|
8122
8122
|
var t = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}, n = t ? t.context : void 0;
|
|
8123
|
-
if (
|
|
8124
|
-
if (
|
|
8125
|
-
var
|
|
8123
|
+
if (T(e, "trivial", n)) {
|
|
8124
|
+
if (Oi(e) && e.args.length === 1) return D(e.args[0], t);
|
|
8125
|
+
var o = !1, s = 0;
|
|
8126
8126
|
if (e.forEach((e) => {
|
|
8127
|
-
++
|
|
8128
|
-
}),
|
|
8129
|
-
}
|
|
8130
|
-
var
|
|
8131
|
-
if (
|
|
8132
|
-
var
|
|
8133
|
-
if (
|
|
8134
|
-
if (
|
|
8135
|
-
var
|
|
8136
|
-
|
|
8127
|
+
++s, s === 1 && (o = D(e, t));
|
|
8128
|
+
}), s === 1) return o;
|
|
8129
|
+
}
|
|
8130
|
+
var c = e;
|
|
8131
|
+
if (Oi(c)) {
|
|
8132
|
+
var l = No(c.name);
|
|
8133
|
+
if (l) {
|
|
8134
|
+
if (c.args.length > 2 && T(c, "associative", n)) for (; c.args.length > 2;) {
|
|
8135
|
+
var u = c.args.pop(), p = c.args.pop();
|
|
8136
|
+
c.args.push(new _(l, c.name, [u, p]));
|
|
8137
8137
|
}
|
|
8138
|
-
|
|
8139
|
-
} else return new
|
|
8140
|
-
}
|
|
8141
|
-
if (
|
|
8142
|
-
var
|
|
8143
|
-
if (
|
|
8144
|
-
var
|
|
8145
|
-
if (
|
|
8146
|
-
if (
|
|
8147
|
-
}
|
|
8148
|
-
if (
|
|
8149
|
-
var
|
|
8150
|
-
if (
|
|
8151
|
-
if (
|
|
8152
|
-
if (
|
|
8153
|
-
|
|
8138
|
+
c = new _(l, c.name, c.args);
|
|
8139
|
+
} else return new m(D(c.fn), c.args.map((e) => D(e, t)));
|
|
8140
|
+
}
|
|
8141
|
+
if (q(c) && c.isUnary()) {
|
|
8142
|
+
var v = D(c.args[0], t);
|
|
8143
|
+
if (c.op === "~" && q(v) && v.isUnary() && v.op === "~" || c.op === "not" && q(v) && v.isUnary() && v.op === "not" && w(v.args[0])) return v.args[0];
|
|
8144
|
+
var y = !0;
|
|
8145
|
+
if (c.op === "-" && q(v) && (v.isBinary() && v.fn === "subtract" && (c = new _("-", "subtract", [v.args[1], v.args[0]]), y = !1), v.isUnary() && v.op === "-")) return v.args[0];
|
|
8146
|
+
if (y) return new _(c.op, c.fn, [v]);
|
|
8147
|
+
}
|
|
8148
|
+
if (q(c) && c.isBinary()) {
|
|
8149
|
+
var O = D(c.args[0], t), k = D(c.args[1], t);
|
|
8150
|
+
if (c.op === "+") {
|
|
8151
|
+
if (G(O) && a(O.value)) return k;
|
|
8152
|
+
if (G(k) && a(k.value)) return O;
|
|
8153
|
+
q(k) && k.isUnary() && k.op === "-" && (k = k.args[0], c = new _("-", "subtract", [O, k]));
|
|
8154
8154
|
}
|
|
8155
|
-
if (
|
|
8156
|
-
if (
|
|
8157
|
-
if (
|
|
8158
|
-
if (
|
|
8159
|
-
if (r(
|
|
8155
|
+
if (c.op === "-") return q(k) && k.isUnary() && k.op === "-" ? D(new _("+", "add", [O, k.args[0]]), t) : G(O) && a(O.value) ? D(new _("-", "unaryMinus", [k])) : G(k) && a(k.value) ? O : new _(c.op, c.fn, [O, k]);
|
|
8156
|
+
if (c.op === "*") {
|
|
8157
|
+
if (G(O)) {
|
|
8158
|
+
if (a(O.value)) return b;
|
|
8159
|
+
if (r(O.value, 1)) return k;
|
|
8160
8160
|
}
|
|
8161
|
-
if (
|
|
8162
|
-
if (
|
|
8163
|
-
if (r(
|
|
8164
|
-
if (
|
|
8161
|
+
if (G(k)) {
|
|
8162
|
+
if (a(k.value)) return b;
|
|
8163
|
+
if (r(k.value, 1)) return O;
|
|
8164
|
+
if (E(c, n)) return new _(c.op, c.fn, [k, O], c.implicit);
|
|
8165
8165
|
}
|
|
8166
|
-
return new
|
|
8166
|
+
return new _(c.op, c.fn, [O, k], c.implicit);
|
|
8167
8167
|
}
|
|
8168
|
-
if (
|
|
8169
|
-
if (
|
|
8170
|
-
if (
|
|
8171
|
-
if (r(
|
|
8168
|
+
if (c.op === "/") return G(O) && a(O.value) ? b : G(k) && r(k.value, 1) ? O : new _(c.op, c.fn, [O, k]);
|
|
8169
|
+
if (c.op === "^" && G(k)) {
|
|
8170
|
+
if (a(k.value)) return x;
|
|
8171
|
+
if (r(k.value, 1)) return O;
|
|
8172
8172
|
}
|
|
8173
|
-
if (
|
|
8174
|
-
if (
|
|
8175
|
-
if (
|
|
8176
|
-
if (
|
|
8177
|
-
} else return
|
|
8178
|
-
if (
|
|
8179
|
-
if (
|
|
8180
|
-
} else return
|
|
8173
|
+
if (c.op === "and") {
|
|
8174
|
+
if (G(O)) if (O.value) {
|
|
8175
|
+
if (w(k)) return k;
|
|
8176
|
+
if (G(k)) return k.value ? S : C;
|
|
8177
|
+
} else return C;
|
|
8178
|
+
if (G(k)) if (k.value) {
|
|
8179
|
+
if (w(O)) return O;
|
|
8180
|
+
} else return C;
|
|
8181
8181
|
}
|
|
8182
|
-
if (
|
|
8183
|
-
if (
|
|
8184
|
-
if (
|
|
8185
|
-
if (
|
|
8182
|
+
if (c.op === "or") {
|
|
8183
|
+
if (G(O)) {
|
|
8184
|
+
if (O.value) return S;
|
|
8185
|
+
if (w(k)) return k;
|
|
8186
8186
|
}
|
|
8187
|
-
if (
|
|
8188
|
-
if (
|
|
8189
|
-
if (
|
|
8187
|
+
if (G(k)) {
|
|
8188
|
+
if (k.value) return S;
|
|
8189
|
+
if (w(O)) return O;
|
|
8190
8190
|
}
|
|
8191
8191
|
}
|
|
8192
|
-
return new
|
|
8192
|
+
return new _(c.op, c.fn, [O, k]);
|
|
8193
8193
|
}
|
|
8194
|
-
if (
|
|
8195
|
-
if (
|
|
8196
|
-
if (
|
|
8197
|
-
if (
|
|
8198
|
-
if (
|
|
8199
|
-
var
|
|
8200
|
-
for (var
|
|
8201
|
-
return new
|
|
8194
|
+
if (q(c)) return new _(c.op, c.fn, c.args.map((e) => D(e, t)));
|
|
8195
|
+
if (i(c)) return new f(c.items.map((e) => D(e, t)));
|
|
8196
|
+
if (Gn(c)) return new d(D(c.object, t), D(c.index, t));
|
|
8197
|
+
if (Tr(c)) return new h(c.dimensions.map((e) => D(e, t)));
|
|
8198
|
+
if (Qr(c)) {
|
|
8199
|
+
var A = {};
|
|
8200
|
+
for (var j in c.properties) A[j] = D(c.properties[j], t);
|
|
8201
|
+
return new g(A);
|
|
8202
8202
|
}
|
|
8203
|
-
return
|
|
8203
|
+
return c;
|
|
8204
8204
|
}
|
|
8205
8205
|
return t(Zs, {
|
|
8206
|
-
Node:
|
|
8207
|
-
"Node,Object":
|
|
8206
|
+
Node: D,
|
|
8207
|
+
"Node,Object": D
|
|
8208
8208
|
});
|
|
8209
8209
|
}), $s = /* #__PURE__ */ z("resolve", [
|
|
8210
8210
|
"typed",
|
|
@@ -8218,25 +8218,25 @@ var Js = /* #__PURE__ */ z("simplifyUtil", [
|
|
|
8218
8218
|
function s(e, t) {
|
|
8219
8219
|
var c = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : /* @__PURE__ */ new Set();
|
|
8220
8220
|
if (!t) return e;
|
|
8221
|
-
if (
|
|
8221
|
+
if (K(e)) {
|
|
8222
8222
|
if (c.has(e.name)) {
|
|
8223
8223
|
var l = Array.from(c).join(", ");
|
|
8224
8224
|
throw ReferenceError(`recursive loop of variable definitions among {${l}}`);
|
|
8225
8225
|
}
|
|
8226
8226
|
var u = t.get(e.name);
|
|
8227
|
-
if (
|
|
8227
|
+
if (J(u)) {
|
|
8228
8228
|
var d = new Set(c);
|
|
8229
8229
|
return d.add(e.name), s(u, t, d);
|
|
8230
8230
|
} else if (typeof u == "number") return n(String(u));
|
|
8231
8231
|
else if (u !== void 0) return new r(u);
|
|
8232
8232
|
else return e;
|
|
8233
|
-
} else if (
|
|
8233
|
+
} else if (q(e)) {
|
|
8234
8234
|
var f = e.args.map(function(e) {
|
|
8235
8235
|
return s(e, t, c);
|
|
8236
8236
|
});
|
|
8237
8237
|
return new a(e.op, e.fn, f, e.implicit);
|
|
8238
|
-
} else if (
|
|
8239
|
-
else if (
|
|
8238
|
+
} else if ($n(e)) return new o(s(e.content, t, c));
|
|
8239
|
+
else if (Oi(e)) {
|
|
8240
8240
|
var p = e.args.map(function(e) {
|
|
8241
8241
|
return s(e, t, c);
|
|
8242
8242
|
});
|
|
@@ -8247,11 +8247,11 @@ var Js = /* #__PURE__ */ z("simplifyUtil", [
|
|
|
8247
8247
|
return t("resolve", {
|
|
8248
8248
|
Node: s,
|
|
8249
8249
|
"Node, Map | null | undefined": s,
|
|
8250
|
-
"Node, Object": (e, t) => s(e,
|
|
8250
|
+
"Node, Object": (e, t) => s(e, I(t)),
|
|
8251
8251
|
"Array | Matrix": t.referToSelf((e) => (t) => t.map((t) => e(t))),
|
|
8252
8252
|
"Array | Matrix, null | undefined": t.referToSelf((e) => (t) => t.map((t) => e(t))),
|
|
8253
|
-
"Array, Object": t.referTo("Array,Map", (e) => (t, n) => e(t,
|
|
8254
|
-
"Matrix, Object": t.referTo("Matrix,Map", (e) => (t, n) => e(t,
|
|
8253
|
+
"Array, Object": t.referTo("Array,Map", (e) => (t, n) => e(t, I(n))),
|
|
8254
|
+
"Matrix, Object": t.referTo("Matrix,Map", (e) => (t, n) => e(t, I(n))),
|
|
8255
8255
|
"Array | Matrix, Map": t.referToSelf((e) => (t, n) => t.map((t) => e(t, n)))
|
|
8256
8256
|
});
|
|
8257
8257
|
}), ec = "symbolicEqual", tc = /* #__PURE__ */ z(ec, [
|
|
@@ -8263,7 +8263,7 @@ var Js = /* #__PURE__ */ z("simplifyUtil", [
|
|
|
8263
8263
|
var { parse: t, simplify: n, typed: r, OperatorNode: i } = e;
|
|
8264
8264
|
function a(e, t) {
|
|
8265
8265
|
var r = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : {}, a = n(new i("-", "subtract", [e, t]), {}, r);
|
|
8266
|
-
return
|
|
8266
|
+
return G(a) && !a.value;
|
|
8267
8267
|
}
|
|
8268
8268
|
return r(ec, {
|
|
8269
8269
|
"Node, Node": a,
|
|
@@ -8311,10 +8311,10 @@ var Js = /* #__PURE__ */ z("simplifyUtil", [
|
|
|
8311
8311
|
};
|
|
8312
8312
|
var g = t("_derivTex", {
|
|
8313
8313
|
"Node, SymbolNode": function(e, t) {
|
|
8314
|
-
return
|
|
8314
|
+
return G(e) && O(e.value) === "string" ? g(r(e.value).toString(), t.toString(), 1) : g(e.toTex(), t.toString(), 1);
|
|
8315
8315
|
},
|
|
8316
8316
|
"Node, ConstantNode": function(e, t) {
|
|
8317
|
-
if (
|
|
8317
|
+
if (O(t.value) === "string") return g(e, r(t.value));
|
|
8318
8318
|
throw Error("The second parameter to 'derivative' is a non-string constant");
|
|
8319
8319
|
},
|
|
8320
8320
|
"Node, SymbolNode, ConstantNode": function(e, t, n) {
|
|
@@ -8489,9 +8489,9 @@ var Js = /* #__PURE__ */ z("simplifyUtil", [
|
|
|
8489
8489
|
}
|
|
8490
8490
|
if (e.op === "^" && e.isBinary()) {
|
|
8491
8491
|
var d = e.args[0], f = e.args[1];
|
|
8492
|
-
if (t(d)) return
|
|
8492
|
+
if (t(d)) return G(d) && (o(d.value) || a(d.value, 1)) ? y(0) : new u("*", "multiply", [e, new u("*", "multiply", [new l("log", [d.clone()]), v(f.clone(), t)])]);
|
|
8493
8493
|
if (t(f)) {
|
|
8494
|
-
if (
|
|
8494
|
+
if (G(f)) {
|
|
8495
8495
|
if (o(f.value)) return y(0);
|
|
8496
8496
|
if (a(f.value, 1)) return v(d, t);
|
|
8497
8497
|
}
|
|
@@ -8504,7 +8504,7 @@ var Js = /* #__PURE__ */ z("simplifyUtil", [
|
|
|
8504
8504
|
}
|
|
8505
8505
|
});
|
|
8506
8506
|
function y(e, t) {
|
|
8507
|
-
return new c(s(e, t ||
|
|
8507
|
+
return new c(s(e, t || Tn(String(e), n)));
|
|
8508
8508
|
}
|
|
8509
8509
|
return h;
|
|
8510
8510
|
}), ic = "rationalize", ac = /* #__PURE__ */ z(ic, /* @__PURE__ */ "config.typed.equal.isZero.add.subtract.multiply.divide.pow.parse.simplifyConstant.simplifyCore.simplify.?bignumber.?fraction.mathWithTransform.matrix.AccessorNode.ArrayNode.ConstantNode.FunctionNode.IndexNode.ObjectNode.OperatorNode.SymbolNode.ParenthesisNode".split("."), (e) => {
|
|
@@ -8538,7 +8538,7 @@ var Js = /* #__PURE__ */ z("simplifyUtil", [
|
|
|
8538
8538
|
var t = e.type;
|
|
8539
8539
|
if (t === "FunctionNode") throw Error("There is an unsolved function call");
|
|
8540
8540
|
if (t === "OperatorNode") if (e.op === "^") {
|
|
8541
|
-
if (e.args[1].type !== "ConstantNode" || !
|
|
8541
|
+
if (e.args[1].type !== "ConstantNode" || !fn(parseFloat(e.args[1].value))) throw Error("There is a non-integer exponent");
|
|
8542
8542
|
c(e.args[0]);
|
|
8543
8543
|
} else {
|
|
8544
8544
|
if (!o.includes(e.op)) throw Error("Operator " + e.op + " invalid in polynomial expression");
|
|
@@ -8781,7 +8781,7 @@ var Js = /* #__PURE__ */ z("simplifyUtil", [
|
|
|
8781
8781
|
var r = e.type, i = arguments.length > 1;
|
|
8782
8782
|
if (r === "OperatorNode" && e.isBinary()) {
|
|
8783
8783
|
var a = !1, o;
|
|
8784
|
-
if (e.op === "^" && (e.args[0].type === "ParenthesisNode" || e.args[0].type === "OperatorNode") && e.args[1].type === "ConstantNode" && (o = parseFloat(e.args[1].value), a = o >= 2 &&
|
|
8784
|
+
if (e.op === "^" && (e.args[0].type === "ParenthesisNode" || e.args[0].type === "OperatorNode") && e.args[1].type === "ConstantNode" && (o = parseFloat(e.args[1].value), a = o >= 2 && fn(o)), a) {
|
|
8785
8785
|
if (o > 2) {
|
|
8786
8786
|
var s = e.args[0];
|
|
8787
8787
|
e = new w("*", "multiply", [s, new w("^", "pow", [e.args[0].cloneDeep(), new b(o - 1)])]);
|
|
@@ -8838,7 +8838,7 @@ var Js = /* #__PURE__ */ z("simplifyUtil", [
|
|
|
8838
8838
|
}
|
|
8839
8839
|
if (n.op === "^") {
|
|
8840
8840
|
if (a.noFil !== 1) throw Error("Constant cannot be powered");
|
|
8841
|
-
if (!
|
|
8841
|
+
if (!fn(c) || c <= 0) throw Error("Non-integer exponent is not allowed");
|
|
8842
8842
|
for (var l = r + 1; l < c; l++) t[l] = 0;
|
|
8843
8843
|
c > r && (t[c] = 0), t[c] += a.cte * (a.oper === "+" ? 1 : -1), r = Math.max(c, r);
|
|
8844
8844
|
return;
|
|
@@ -8870,7 +8870,7 @@ function cc(e) {
|
|
|
8870
8870
|
for (var t = 1; t < arguments.length; t++) {
|
|
8871
8871
|
var n = arguments[t] == null ? {} : arguments[t];
|
|
8872
8872
|
t % 2 ? sc(Object(n), !0).forEach(function(t) {
|
|
8873
|
-
|
|
8873
|
+
Y(e, t, n[t]);
|
|
8874
8874
|
}) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) : sc(Object(n)).forEach(function(t) {
|
|
8875
8875
|
Object.defineProperty(e, t, Object.getOwnPropertyDescriptor(n, t));
|
|
8876
8876
|
});
|
|
@@ -8878,26 +8878,26 @@ function cc(e) {
|
|
|
8878
8878
|
return e;
|
|
8879
8879
|
}
|
|
8880
8880
|
var lc = /* #__PURE__ */ z("mapSlices", ["typed", "isInteger"], (e) => {
|
|
8881
|
-
var { typed: t, isInteger: n } = e, r =
|
|
8881
|
+
var { typed: t, isInteger: n } = e, r = kt({
|
|
8882
8882
|
typed: t,
|
|
8883
8883
|
isInteger: n
|
|
8884
8884
|
});
|
|
8885
8885
|
return t("mapSlices", { "...any": function(e) {
|
|
8886
8886
|
var t = e[1];
|
|
8887
|
-
|
|
8887
|
+
Fi(t) ? e[1] = t - 1 : ka(t) && (e[1] = t.minus(1));
|
|
8888
8888
|
try {
|
|
8889
8889
|
return r.apply(null, e);
|
|
8890
8890
|
} catch (e) {
|
|
8891
8891
|
throw X(e);
|
|
8892
8892
|
}
|
|
8893
8893
|
} });
|
|
8894
|
-
}, cc({ isTransformFunction: !0 },
|
|
8894
|
+
}, cc({ isTransformFunction: !0 }, kt.meta)), uc = /* #__PURE__ */ z("column", [
|
|
8895
8895
|
"typed",
|
|
8896
8896
|
"Index",
|
|
8897
8897
|
"matrix",
|
|
8898
8898
|
"range"
|
|
8899
8899
|
], (e) => {
|
|
8900
|
-
var { typed: t, Index: n, matrix: r, range: i } = e, a =
|
|
8900
|
+
var { typed: t, Index: n, matrix: r, range: i } = e, a = xt({
|
|
8901
8901
|
typed: t,
|
|
8902
8902
|
Index: n,
|
|
8903
8903
|
matrix: r,
|
|
@@ -8905,7 +8905,7 @@ var lc = /* #__PURE__ */ z("mapSlices", ["typed", "isInteger"], (e) => {
|
|
|
8905
8905
|
});
|
|
8906
8906
|
return t("column", { "...any": function(e) {
|
|
8907
8907
|
var t = e.length - 1, n = e[t];
|
|
8908
|
-
|
|
8908
|
+
Fi(n) && (e[t] = n - 1);
|
|
8909
8909
|
try {
|
|
8910
8910
|
return a.apply(null, e);
|
|
8911
8911
|
} catch (e) {
|
|
@@ -8917,10 +8917,10 @@ var lc = /* #__PURE__ */ z("mapSlices", ["typed", "isInteger"], (e) => {
|
|
|
8917
8917
|
//#region ../../../node_modules/.bun/mathjs@15.2.0/node_modules/mathjs/lib/esm/expression/transform/utils/compileInlineExpression.js
|
|
8918
8918
|
function dc(e, t, n) {
|
|
8919
8919
|
var r = e.filter(function(e) {
|
|
8920
|
-
return
|
|
8920
|
+
return K(e) && !(e.name in t) && !n.has(e.name);
|
|
8921
8921
|
})[0];
|
|
8922
8922
|
if (!r) throw Error("No undefined variable found in inline expression \"" + e + "\"");
|
|
8923
|
-
var i = r.name, a = /* @__PURE__ */ new Map(), o = new
|
|
8923
|
+
var i = r.name, a = /* @__PURE__ */ new Map(), o = new on(n, a, new Set([i])), s = e.compile();
|
|
8924
8924
|
return function(e) {
|
|
8925
8925
|
return a.set(i, e), s.evaluate(o);
|
|
8926
8926
|
};
|
|
@@ -8953,12 +8953,12 @@ function mc(e) {
|
|
|
8953
8953
|
var hc = /* #__PURE__ */ z("filter", ["typed"], (e) => {
|
|
8954
8954
|
var { typed: t } = e;
|
|
8955
8955
|
function n(e, n, i) {
|
|
8956
|
-
var a =
|
|
8956
|
+
var a = P({ typed: t }), o = fc({ typed: t });
|
|
8957
8957
|
if (e.length === 0) return a();
|
|
8958
8958
|
var s = e[0];
|
|
8959
8959
|
if (e.length === 1) return a(s);
|
|
8960
8960
|
var c = e.length - 1, l = e[c];
|
|
8961
|
-
return s &&= r(s, i), l &&=
|
|
8961
|
+
return s &&= r(s, i), l &&= K(l) || vr(l) ? r(l, i) : dc(l, n, i), a(s, o(l, c));
|
|
8962
8962
|
}
|
|
8963
8963
|
n.rawArgs = !0;
|
|
8964
8964
|
function r(e, t) {
|
|
@@ -8966,13 +8966,13 @@ var hc = /* #__PURE__ */ z("filter", ["typed"], (e) => {
|
|
|
8966
8966
|
}
|
|
8967
8967
|
return n;
|
|
8968
8968
|
}, { isTransformFunction: !0 }), gc = /* #__PURE__ */ z("forEach", ["typed"], (e) => {
|
|
8969
|
-
var { typed: t } = e, n =
|
|
8969
|
+
var { typed: t } = e, n = ie({ typed: t }), r = fc({ typed: t });
|
|
8970
8970
|
function i(e, t, i) {
|
|
8971
8971
|
if (e.length === 0) return n();
|
|
8972
8972
|
var o = e[0];
|
|
8973
8973
|
if (e.length === 1) return n(o);
|
|
8974
8974
|
var s = e.length - 1, c = e[s];
|
|
8975
|
-
return o &&= a(o, i), c &&=
|
|
8975
|
+
return o &&= a(o, i), c &&= K(c) || vr(c) ? a(c, i) : dc(c, t, i), n(o, r(c, s));
|
|
8976
8976
|
}
|
|
8977
8977
|
i.rawArgs = !0;
|
|
8978
8978
|
function a(e, t) {
|
|
@@ -8982,30 +8982,30 @@ var hc = /* #__PURE__ */ z("filter", ["typed"], (e) => {
|
|
|
8982
8982
|
}, { isTransformFunction: !0 }), _c = /* #__PURE__ */ z("index", ["Index", "getMatrixDataType"], (e) => {
|
|
8983
8983
|
var { Index: t, getMatrixDataType: n } = e;
|
|
8984
8984
|
return function() {
|
|
8985
|
-
for (var e = [], r = 0,
|
|
8986
|
-
var
|
|
8987
|
-
if (
|
|
8988
|
-
else if (
|
|
8985
|
+
for (var e = [], r = 0, i = arguments.length; r < i; r++) {
|
|
8986
|
+
var a = arguments[r];
|
|
8987
|
+
if (Ha(a)) a.start--, a.end -= a.step > 0 ? 0 : 2;
|
|
8988
|
+
else if (a && a.isSet === !0) a = a.map(function(e) {
|
|
8989
8989
|
return e - 1;
|
|
8990
8990
|
});
|
|
8991
|
-
else if (
|
|
8991
|
+
else if (It(a) || zr(a)) n(a) !== "boolean" && (a = a.map(function(e) {
|
|
8992
8992
|
return e - 1;
|
|
8993
8993
|
}));
|
|
8994
|
-
else if (
|
|
8995
|
-
else if (
|
|
8996
|
-
else if (typeof
|
|
8997
|
-
e[r] =
|
|
8994
|
+
else if (Fi(a) || Mr(a)) a--;
|
|
8995
|
+
else if (ka(a)) a = a.toNumber() - 1;
|
|
8996
|
+
else if (typeof a != "string") throw TypeError("Dimension must be an Array, Matrix, number, bigint, string, or Range");
|
|
8997
|
+
e[r] = a;
|
|
8998
8998
|
}
|
|
8999
|
-
var
|
|
9000
|
-
return t.apply(
|
|
8999
|
+
var o = new t();
|
|
9000
|
+
return t.apply(o, e), o;
|
|
9001
9001
|
};
|
|
9002
9002
|
}, { isTransformFunction: !0 }), vc = /* #__PURE__ */ z("map", ["typed"], (e) => {
|
|
9003
|
-
var { typed: t } = e, n =
|
|
9003
|
+
var { typed: t } = e, n = rn({ typed: t }), r = fc({ typed: t });
|
|
9004
9004
|
function i(e, t, i) {
|
|
9005
9005
|
if (e.length === 0) return n();
|
|
9006
9006
|
if (e.length === 1) return n(e[0]);
|
|
9007
9007
|
var a = e.length - 1, o = e.slice(0, a), s = e[a];
|
|
9008
|
-
return o = o.map((e) => c(e, i)), s &&=
|
|
9008
|
+
return o = o.map((e) => c(e, i)), s &&= K(s) || vr(s) ? c(s, i) : dc(s, t, i), n(...o, r(s, a));
|
|
9009
9009
|
function c(e, t) {
|
|
9010
9010
|
return e.compile().evaluate(t);
|
|
9011
9011
|
}
|
|
@@ -9015,15 +9015,15 @@ var hc = /* #__PURE__ */ z("filter", ["typed"], (e) => {
|
|
|
9015
9015
|
//#endregion
|
|
9016
9016
|
//#region ../../../node_modules/.bun/mathjs@15.2.0/node_modules/mathjs/lib/esm/expression/transform/utils/dimToZeroBase.js
|
|
9017
9017
|
function yc(e) {
|
|
9018
|
-
return
|
|
9018
|
+
return Fi(e) ? e - 1 : ka(e) ? e.minus(1) : e;
|
|
9019
9019
|
}
|
|
9020
9020
|
function bc(e) {
|
|
9021
|
-
return
|
|
9021
|
+
return Fi(e) || ka(e);
|
|
9022
9022
|
}
|
|
9023
9023
|
//#endregion
|
|
9024
9024
|
//#region ../../../node_modules/.bun/mathjs@15.2.0/node_modules/mathjs/lib/esm/expression/transform/utils/lastDimToZeroBase.js
|
|
9025
9025
|
function xc(e) {
|
|
9026
|
-
if (e.length === 2 &&
|
|
9026
|
+
if (e.length === 2 && ha(e[0])) {
|
|
9027
9027
|
e = e.slice();
|
|
9028
9028
|
var t = e[1];
|
|
9029
9029
|
bc(t) && (e[1] = yc(t));
|
|
@@ -9037,7 +9037,7 @@ var Sc = /* #__PURE__ */ z("max", [
|
|
|
9037
9037
|
"larger",
|
|
9038
9038
|
"isNaN"
|
|
9039
9039
|
], (e) => {
|
|
9040
|
-
var { typed: t, config: n, numeric: r, larger: i, isNaN: a } = e, o =
|
|
9040
|
+
var { typed: t, config: n, numeric: r, larger: i, isNaN: a } = e, o = Ni({
|
|
9041
9041
|
typed: t,
|
|
9042
9042
|
config: n,
|
|
9043
9043
|
numeric: r,
|
|
@@ -9057,7 +9057,7 @@ var Sc = /* #__PURE__ */ z("max", [
|
|
|
9057
9057
|
"add",
|
|
9058
9058
|
"divide"
|
|
9059
9059
|
], (e) => {
|
|
9060
|
-
var { typed: t, add: n, divide: r } = e, i =
|
|
9060
|
+
var { typed: t, add: n, divide: r } = e, i = Pa({
|
|
9061
9061
|
typed: t,
|
|
9062
9062
|
add: n,
|
|
9063
9063
|
divide: r
|
|
@@ -9077,7 +9077,7 @@ var Sc = /* #__PURE__ */ z("max", [
|
|
|
9077
9077
|
"smaller",
|
|
9078
9078
|
"isNaN"
|
|
9079
9079
|
], (e) => {
|
|
9080
|
-
var { typed: t, config: n, numeric: r, smaller: i, isNaN: a } = e, o =
|
|
9080
|
+
var { typed: t, config: n, numeric: r, smaller: i, isNaN: a } = e, o = ea({
|
|
9081
9081
|
typed: t,
|
|
9082
9082
|
config: n,
|
|
9083
9083
|
numeric: r,
|
|
@@ -9106,7 +9106,7 @@ var Sc = /* #__PURE__ */ z("max", [
|
|
|
9106
9106
|
"isZero",
|
|
9107
9107
|
"isPositive"
|
|
9108
9108
|
], (e) => {
|
|
9109
|
-
var { typed: t, config: n, matrix: r, bignumber: i, equal: a, smaller: o, smallerEq: s, larger: c, largerEq: l, add: u, isZero: d, isPositive: f } = e, p =
|
|
9109
|
+
var { typed: t, config: n, matrix: r, bignumber: i, equal: a, smaller: o, smallerEq: s, larger: c, largerEq: l, add: u, isZero: d, isPositive: f } = e, p = no({
|
|
9110
9110
|
typed: t,
|
|
9111
9111
|
config: n,
|
|
9112
9112
|
matrix: r,
|
|
@@ -9129,7 +9129,7 @@ var Sc = /* #__PURE__ */ z("max", [
|
|
|
9129
9129
|
"matrix",
|
|
9130
9130
|
"range"
|
|
9131
9131
|
], (e) => {
|
|
9132
|
-
var { typed: t, Index: n, matrix: r, range: i } = e, a =
|
|
9132
|
+
var { typed: t, Index: n, matrix: r, range: i } = e, a = ur({
|
|
9133
9133
|
typed: t,
|
|
9134
9134
|
Index: n,
|
|
9135
9135
|
matrix: r,
|
|
@@ -9137,7 +9137,7 @@ var Sc = /* #__PURE__ */ z("max", [
|
|
|
9137
9137
|
});
|
|
9138
9138
|
return t("row", { "...any": function(e) {
|
|
9139
9139
|
var t = e.length - 1, n = e[t];
|
|
9140
|
-
|
|
9140
|
+
Fi(n) && (e[t] = n - 1);
|
|
9141
9141
|
try {
|
|
9142
9142
|
return a.apply(null, e);
|
|
9143
9143
|
} catch (e) {
|
|
@@ -9150,7 +9150,7 @@ var Sc = /* #__PURE__ */ z("max", [
|
|
|
9150
9150
|
"zeros",
|
|
9151
9151
|
"add"
|
|
9152
9152
|
], (e) => {
|
|
9153
|
-
var { typed: t, matrix: n, zeros: r, add: i } = e, a =
|
|
9153
|
+
var { typed: t, matrix: n, zeros: r, add: i } = e, a = lo({
|
|
9154
9154
|
typed: t,
|
|
9155
9155
|
matrix: n,
|
|
9156
9156
|
zeros: r,
|
|
@@ -9168,14 +9168,14 @@ var Sc = /* #__PURE__ */ z("max", [
|
|
|
9168
9168
|
"matrix",
|
|
9169
9169
|
"isInteger"
|
|
9170
9170
|
], (e) => {
|
|
9171
|
-
var { typed: t, matrix: n, isInteger: r } = e, i =
|
|
9171
|
+
var { typed: t, matrix: n, isInteger: r } = e, i = yi({
|
|
9172
9172
|
typed: t,
|
|
9173
9173
|
matrix: n,
|
|
9174
9174
|
isInteger: r
|
|
9175
9175
|
});
|
|
9176
9176
|
return t("concat", { "...any": function(e) {
|
|
9177
9177
|
var t = e.length - 1, n = e[t];
|
|
9178
|
-
|
|
9178
|
+
Fi(n) ? e[t] = n - 1 : ka(n) && (e[t] = n.minus(1));
|
|
9179
9179
|
try {
|
|
9180
9180
|
return i.apply(null, e);
|
|
9181
9181
|
} catch (e) {
|
|
@@ -9189,7 +9189,7 @@ var Sc = /* #__PURE__ */ z("max", [
|
|
|
9189
9189
|
"number",
|
|
9190
9190
|
"bignumber"
|
|
9191
9191
|
], (e) => {
|
|
9192
|
-
var { typed: t, matrix: n, subtract: r, number: i, bignumber: a } = e, o =
|
|
9192
|
+
var { typed: t, matrix: n, subtract: r, number: i, bignumber: a } = e, o = Ja({
|
|
9193
9193
|
typed: t,
|
|
9194
9194
|
matrix: n,
|
|
9195
9195
|
subtract: r,
|
|
@@ -9210,7 +9210,7 @@ var Sc = /* #__PURE__ */ z("max", [
|
|
|
9210
9210
|
"sqrt",
|
|
9211
9211
|
"variance"
|
|
9212
9212
|
], (e) => {
|
|
9213
|
-
var { typed: t, map: n, sqrt: r, variance: i } = e, a =
|
|
9213
|
+
var { typed: t, map: n, sqrt: r, variance: i } = e, a = ba({
|
|
9214
9214
|
typed: t,
|
|
9215
9215
|
map: n,
|
|
9216
9216
|
sqrt: r,
|
|
@@ -9230,7 +9230,7 @@ var Sc = /* #__PURE__ */ z("max", [
|
|
|
9230
9230
|
"add",
|
|
9231
9231
|
"numeric"
|
|
9232
9232
|
], (e) => {
|
|
9233
|
-
var { typed: t, config: n, add: r, numeric: i } = e, a =
|
|
9233
|
+
var { typed: t, config: n, add: r, numeric: i } = e, a = Lr({
|
|
9234
9234
|
typed: t,
|
|
9235
9235
|
config: n,
|
|
9236
9236
|
add: r,
|
|
@@ -9259,7 +9259,7 @@ var Sc = /* #__PURE__ */ z("max", [
|
|
|
9259
9259
|
"larger",
|
|
9260
9260
|
"mapSlices"
|
|
9261
9261
|
], (e) => {
|
|
9262
|
-
var { typed: t, bignumber: n, add: r, subtract: i, divide: a, multiply: o, partitionSelect: s, compare: c, isInteger: l, smaller: u, smallerEq: d, larger: f, mapSlices: p } = e, m =
|
|
9262
|
+
var { typed: t, bignumber: n, add: r, subtract: i, divide: a, multiply: o, partitionSelect: s, compare: c, isInteger: l, smaller: u, smallerEq: d, larger: f, mapSlices: p } = e, m = gr({
|
|
9263
9263
|
typed: t,
|
|
9264
9264
|
bignumber: n,
|
|
9265
9265
|
add: r,
|
|
@@ -9292,15 +9292,15 @@ var Sc = /* #__PURE__ */ z("max", [
|
|
|
9292
9292
|
"add",
|
|
9293
9293
|
"unaryPlus"
|
|
9294
9294
|
], (e) => {
|
|
9295
|
-
var { typed: t, add: n, unaryPlus: r } = e, i =
|
|
9295
|
+
var { typed: t, add: n, unaryPlus: r } = e, i = Cr({
|
|
9296
9296
|
typed: t,
|
|
9297
9297
|
add: n,
|
|
9298
9298
|
unaryPlus: r
|
|
9299
9299
|
});
|
|
9300
9300
|
return t(Fc, { "...any": function(e) {
|
|
9301
|
-
if (e.length === 2 &&
|
|
9301
|
+
if (e.length === 2 && ha(e[0])) {
|
|
9302
9302
|
var t = e[1];
|
|
9303
|
-
|
|
9303
|
+
Fi(t) ? e[1] = t - 1 : ka(t) && (e[1] = t.minus(1));
|
|
9304
9304
|
}
|
|
9305
9305
|
try {
|
|
9306
9306
|
return i.apply(null, e);
|
|
@@ -9317,7 +9317,7 @@ var Sc = /* #__PURE__ */ z("max", [
|
|
|
9317
9317
|
"mapSlices",
|
|
9318
9318
|
"isNaN"
|
|
9319
9319
|
], (e) => {
|
|
9320
|
-
var { typed: t, add: n, subtract: r, multiply: i, divide: a, mapSlices: o, isNaN: s } = e, c =
|
|
9320
|
+
var { typed: t, add: n, subtract: r, multiply: i, divide: a, mapSlices: o, isNaN: s } = e, c = Ei({
|
|
9321
9321
|
typed: t,
|
|
9322
9322
|
add: n,
|
|
9323
9323
|
subtract: r,
|
|
@@ -9340,7 +9340,7 @@ var Sc = /* #__PURE__ */ z("max", [
|
|
|
9340
9340
|
"zeros",
|
|
9341
9341
|
"add"
|
|
9342
9342
|
], (e) => {
|
|
9343
|
-
var { typed: t, matrix: n, zeros: r, add: i } = e, a =
|
|
9343
|
+
var { typed: t, matrix: n, zeros: r, add: i } = e, a = Wr({
|
|
9344
9344
|
typed: t,
|
|
9345
9345
|
matrix: n,
|
|
9346
9346
|
zeros: r,
|
|
@@ -9355,7 +9355,7 @@ var Sc = /* #__PURE__ */ z("max", [
|
|
|
9355
9355
|
}
|
|
9356
9356
|
});
|
|
9357
9357
|
function o(e) {
|
|
9358
|
-
return e.replace(
|
|
9358
|
+
return e.replace(Zn, (e) => "$" + e.slice(1).split(".").map(function(e) {
|
|
9359
9359
|
return !isNaN(e) && e.length > 0 ? parseInt(e) - 1 : e;
|
|
9360
9360
|
}).join("."));
|
|
9361
9361
|
}
|
|
@@ -9368,7 +9368,7 @@ var Sc = /* #__PURE__ */ z("max", [
|
|
|
9368
9368
|
"not",
|
|
9369
9369
|
"concat"
|
|
9370
9370
|
], (e) => {
|
|
9371
|
-
var { typed: t, matrix: n, equalScalar: r, zeros: i, not: a, concat: o } = e, s =
|
|
9371
|
+
var { typed: t, matrix: n, equalScalar: r, zeros: i, not: a, concat: o } = e, s = Xr({
|
|
9372
9372
|
typed: t,
|
|
9373
9373
|
matrix: n,
|
|
9374
9374
|
equalScalar: r,
|
|
@@ -9378,7 +9378,7 @@ var Sc = /* #__PURE__ */ z("max", [
|
|
|
9378
9378
|
});
|
|
9379
9379
|
function c(e, t, n) {
|
|
9380
9380
|
var r = e[0].compile().evaluate(n);
|
|
9381
|
-
return !
|
|
9381
|
+
return !ha(r) && !s(r, !0) ? !1 : s(r, e[1].compile().evaluate(n));
|
|
9382
9382
|
}
|
|
9383
9383
|
return c.rawArgs = !0, c;
|
|
9384
9384
|
}, { isTransformFunction: !0 }), Hc = /* #__PURE__ */ z("or", [
|
|
@@ -9388,7 +9388,7 @@ var Sc = /* #__PURE__ */ z("max", [
|
|
|
9388
9388
|
"DenseMatrix",
|
|
9389
9389
|
"concat"
|
|
9390
9390
|
], (e) => {
|
|
9391
|
-
var { typed: t, matrix: n, equalScalar: r, DenseMatrix: i, concat: a } = e, o =
|
|
9391
|
+
var { typed: t, matrix: n, equalScalar: r, DenseMatrix: i, concat: a } = e, o = d({
|
|
9392
9392
|
typed: t,
|
|
9393
9393
|
matrix: n,
|
|
9394
9394
|
equalScalar: r,
|
|
@@ -9397,7 +9397,7 @@ var Sc = /* #__PURE__ */ z("max", [
|
|
|
9397
9397
|
});
|
|
9398
9398
|
function s(e, t, n) {
|
|
9399
9399
|
var r = e[0].compile().evaluate(n);
|
|
9400
|
-
return !
|
|
9400
|
+
return !ha(r) && o(r, !1) ? !0 : o(r, e[1].compile().evaluate(n));
|
|
9401
9401
|
}
|
|
9402
9402
|
return s.rawArgs = !0, s;
|
|
9403
9403
|
}, { isTransformFunction: !0 }), Uc = /* #__PURE__ */ z("nullish", [
|
|
@@ -9407,7 +9407,7 @@ var Sc = /* #__PURE__ */ z("max", [
|
|
|
9407
9407
|
"flatten",
|
|
9408
9408
|
"deepEqual"
|
|
9409
9409
|
], (e) => {
|
|
9410
|
-
var { typed: t, matrix: n, size: r, flatten: i, deepEqual: a } = e, o =
|
|
9410
|
+
var { typed: t, matrix: n, size: r, flatten: i, deepEqual: a } = e, o = di({
|
|
9411
9411
|
typed: t,
|
|
9412
9412
|
matrix: n,
|
|
9413
9413
|
size: r,
|
|
@@ -9416,7 +9416,7 @@ var Sc = /* #__PURE__ */ z("max", [
|
|
|
9416
9416
|
});
|
|
9417
9417
|
function s(e, t, n) {
|
|
9418
9418
|
var r = e[0].compile().evaluate(n);
|
|
9419
|
-
return !
|
|
9419
|
+
return !ha(r) && r != null && r !== void 0 ? r : o(r, e[1].compile().evaluate(n));
|
|
9420
9420
|
}
|
|
9421
9421
|
return s.rawArgs = !0, s;
|
|
9422
9422
|
}, { isTransformFunction: !0 }), Wc = /* #__PURE__ */ z("bitAnd", [
|
|
@@ -9428,7 +9428,7 @@ var Sc = /* #__PURE__ */ z("max", [
|
|
|
9428
9428
|
"not",
|
|
9429
9429
|
"concat"
|
|
9430
9430
|
], (e) => {
|
|
9431
|
-
var { typed: t, matrix: n, equalScalar: r, zeros: i, not: a, concat: o } = e, s =
|
|
9431
|
+
var { typed: t, matrix: n, equalScalar: r, zeros: i, not: a, concat: o } = e, s = pt({
|
|
9432
9432
|
typed: t,
|
|
9433
9433
|
matrix: n,
|
|
9434
9434
|
equalScalar: r,
|
|
@@ -9438,7 +9438,7 @@ var Sc = /* #__PURE__ */ z("max", [
|
|
|
9438
9438
|
});
|
|
9439
9439
|
function c(e, t, n) {
|
|
9440
9440
|
var r = e[0].compile().evaluate(n);
|
|
9441
|
-
if (!
|
|
9441
|
+
if (!ha(r)) {
|
|
9442
9442
|
if (isNaN(r)) return NaN;
|
|
9443
9443
|
if (r === 0 || r === !1) return 0;
|
|
9444
9444
|
}
|
|
@@ -9452,7 +9452,7 @@ var Sc = /* #__PURE__ */ z("max", [
|
|
|
9452
9452
|
"DenseMatrix",
|
|
9453
9453
|
"concat"
|
|
9454
9454
|
], (e) => {
|
|
9455
|
-
var { typed: t, matrix: n, equalScalar: r, DenseMatrix: i, concat: a } = e, o =
|
|
9455
|
+
var { typed: t, matrix: n, equalScalar: r, DenseMatrix: i, concat: a } = e, o = at({
|
|
9456
9456
|
typed: t,
|
|
9457
9457
|
matrix: n,
|
|
9458
9458
|
equalScalar: r,
|
|
@@ -9461,7 +9461,7 @@ var Sc = /* #__PURE__ */ z("max", [
|
|
|
9461
9461
|
});
|
|
9462
9462
|
function s(e, t, n) {
|
|
9463
9463
|
var r = e[0].compile().evaluate(n);
|
|
9464
|
-
if (!
|
|
9464
|
+
if (!ha(r)) {
|
|
9465
9465
|
if (isNaN(r)) return NaN;
|
|
9466
9466
|
if (r === -1) return -1;
|
|
9467
9467
|
if (r === !0) return 1;
|
|
@@ -9471,27 +9471,27 @@ var Sc = /* #__PURE__ */ z("max", [
|
|
|
9471
9471
|
return s.rawArgs = !0, s;
|
|
9472
9472
|
}, { isTransformFunction: !0 }), Kc = {}, qc = {}, Jc = {}, $ = So({ mathWithTransform: qc }), Yc = es({ Node: $ }), Xc = rs({ Node: $ }), Zc = as({ Node: $ }), Qc = ls({ Node: $ }), $c = Do({ Node: $ }), el = Lo({
|
|
9473
9473
|
Node: $,
|
|
9474
|
-
ResultSet:
|
|
9474
|
+
ResultSet: Tt
|
|
9475
9475
|
}), tl = zo({ Node: $ }), nl = ss({ Node: $ }), rl = oc({ classes: Jc }), il = ws({
|
|
9476
9476
|
math: Kc,
|
|
9477
|
-
typed:
|
|
9477
|
+
typed: U
|
|
9478
9478
|
}), al = Xo({
|
|
9479
9479
|
Node: $,
|
|
9480
|
-
typed:
|
|
9480
|
+
typed: U
|
|
9481
9481
|
}), ol = Vs({
|
|
9482
9482
|
Chain: il,
|
|
9483
|
-
typed:
|
|
9483
|
+
typed: U
|
|
9484
9484
|
}), sl = Jo({
|
|
9485
9485
|
Node: $,
|
|
9486
|
-
isBounded:
|
|
9486
|
+
isBounded: Ji
|
|
9487
9487
|
}), cl = Qo({
|
|
9488
9488
|
Node: $,
|
|
9489
|
-
size:
|
|
9489
|
+
size: Zi
|
|
9490
9490
|
}), ll = To({
|
|
9491
9491
|
Node: $,
|
|
9492
9492
|
subset: c
|
|
9493
9493
|
}), ul = Fo({
|
|
9494
|
-
matrix:
|
|
9494
|
+
matrix: H,
|
|
9495
9495
|
Node: $,
|
|
9496
9496
|
subset: c
|
|
9497
9497
|
}), dl = us({
|
|
@@ -9518,18 +9518,18 @@ var Sc = /* #__PURE__ */ z("max", [
|
|
|
9518
9518
|
RangeNode: nl,
|
|
9519
9519
|
RelationalNode: Qc,
|
|
9520
9520
|
SymbolNode: dl,
|
|
9521
|
-
config:
|
|
9522
|
-
numeric:
|
|
9523
|
-
typed:
|
|
9521
|
+
config: We,
|
|
9522
|
+
numeric: Ma,
|
|
9523
|
+
typed: U
|
|
9524
9524
|
}), ml = $s({
|
|
9525
9525
|
ConstantNode: sl,
|
|
9526
9526
|
FunctionNode: fl,
|
|
9527
9527
|
OperatorNode: Xc,
|
|
9528
9528
|
ParenthesisNode: Zc,
|
|
9529
9529
|
parse: pl,
|
|
9530
|
-
typed:
|
|
9530
|
+
typed: U
|
|
9531
9531
|
}), hl = Xs({
|
|
9532
|
-
bignumber:
|
|
9532
|
+
bignumber: Ii,
|
|
9533
9533
|
fraction: _o,
|
|
9534
9534
|
AccessorNode: ll,
|
|
9535
9535
|
ArrayNode: $c,
|
|
@@ -9539,17 +9539,17 @@ var Sc = /* #__PURE__ */ z("max", [
|
|
|
9539
9539
|
ObjectNode: Yc,
|
|
9540
9540
|
OperatorNode: Xc,
|
|
9541
9541
|
SymbolNode: dl,
|
|
9542
|
-
config:
|
|
9543
|
-
isBounded:
|
|
9542
|
+
config: We,
|
|
9543
|
+
isBounded: Ji,
|
|
9544
9544
|
mathWithTransform: qc,
|
|
9545
|
-
matrix:
|
|
9546
|
-
typed:
|
|
9545
|
+
matrix: H,
|
|
9546
|
+
typed: U
|
|
9547
9547
|
}), gl = gs({
|
|
9548
9548
|
parse: pl,
|
|
9549
|
-
typed:
|
|
9549
|
+
typed: U
|
|
9550
9550
|
}), _l = vs({
|
|
9551
9551
|
parse: pl,
|
|
9552
|
-
typed:
|
|
9552
|
+
typed: U
|
|
9553
9553
|
}), vl = Cs({ evaluate: _l }), yl = ys({
|
|
9554
9554
|
evaluate: _l,
|
|
9555
9555
|
parse: pl
|
|
@@ -9563,19 +9563,19 @@ var Sc = /* #__PURE__ */ z("max", [
|
|
|
9563
9563
|
OperatorNode: Xc,
|
|
9564
9564
|
ParenthesisNode: Zc,
|
|
9565
9565
|
SymbolNode: dl,
|
|
9566
|
-
add:
|
|
9567
|
-
divide:
|
|
9568
|
-
equal:
|
|
9569
|
-
isZero:
|
|
9566
|
+
add: V,
|
|
9567
|
+
divide: hr,
|
|
9568
|
+
equal: lr,
|
|
9569
|
+
isZero: Pi,
|
|
9570
9570
|
multiply: a,
|
|
9571
9571
|
parse: pl,
|
|
9572
9572
|
pow: M,
|
|
9573
|
-
subtract:
|
|
9574
|
-
typed:
|
|
9573
|
+
subtract: ci,
|
|
9574
|
+
typed: U
|
|
9575
9575
|
}), xl = zs({
|
|
9576
9576
|
Help: vl,
|
|
9577
9577
|
mathWithTransform: qc,
|
|
9578
|
-
typed:
|
|
9578
|
+
typed: U
|
|
9579
9579
|
}), Sl = Ys({
|
|
9580
9580
|
AccessorNode: ll,
|
|
9581
9581
|
ArrayNode: $c,
|
|
@@ -9586,325 +9586,325 @@ var Sc = /* #__PURE__ */ z("max", [
|
|
|
9586
9586
|
OperatorNode: Xc,
|
|
9587
9587
|
ParenthesisNode: Zc,
|
|
9588
9588
|
SymbolNode: dl,
|
|
9589
|
-
equal:
|
|
9589
|
+
equal: lr,
|
|
9590
9590
|
parse: pl,
|
|
9591
9591
|
replacer: go,
|
|
9592
9592
|
resolve: ml,
|
|
9593
9593
|
simplifyConstant: hl,
|
|
9594
9594
|
simplifyCore: bl,
|
|
9595
|
-
typed:
|
|
9595
|
+
typed: U
|
|
9596
9596
|
});
|
|
9597
|
-
|
|
9598
|
-
e:
|
|
9599
|
-
false:
|
|
9600
|
-
fineStructure:
|
|
9601
|
-
i:
|
|
9597
|
+
ht(Kc, {
|
|
9598
|
+
e: Mi,
|
|
9599
|
+
false: be,
|
|
9600
|
+
fineStructure: it,
|
|
9601
|
+
i: Wn,
|
|
9602
9602
|
Infinity: h,
|
|
9603
|
-
LN10:
|
|
9603
|
+
LN10: _t,
|
|
9604
9604
|
LOG10E: s,
|
|
9605
|
-
NaN:
|
|
9606
|
-
null:
|
|
9607
|
-
phi:
|
|
9608
|
-
SQRT1_2:
|
|
9609
|
-
sackurTetrode:
|
|
9610
|
-
tau:
|
|
9611
|
-
true:
|
|
9612
|
-
E:
|
|
9605
|
+
NaN: hn,
|
|
9606
|
+
null: cn,
|
|
9607
|
+
phi: Hr,
|
|
9608
|
+
SQRT1_2: se,
|
|
9609
|
+
sackurTetrode: Ln,
|
|
9610
|
+
tau: Je,
|
|
9611
|
+
true: Sn,
|
|
9612
|
+
E: Mi,
|
|
9613
9613
|
version: t,
|
|
9614
|
-
efimovFactor:
|
|
9615
|
-
LN2:
|
|
9616
|
-
pi:
|
|
9614
|
+
efimovFactor: Yr,
|
|
9615
|
+
LN2: hi,
|
|
9616
|
+
pi: Yn,
|
|
9617
9617
|
replacer: go,
|
|
9618
9618
|
reviver: rl,
|
|
9619
|
-
SQRT2:
|
|
9620
|
-
typed:
|
|
9621
|
-
PI:
|
|
9622
|
-
weakMixingAngle:
|
|
9623
|
-
abs:
|
|
9624
|
-
acos:
|
|
9625
|
-
acot:
|
|
9626
|
-
acsc:
|
|
9619
|
+
SQRT2: De,
|
|
9620
|
+
typed: U,
|
|
9621
|
+
PI: Yn,
|
|
9622
|
+
weakMixingAngle: Ar,
|
|
9623
|
+
abs: me,
|
|
9624
|
+
acos: Be,
|
|
9625
|
+
acot: Ne,
|
|
9626
|
+
acsc: On,
|
|
9627
9627
|
addScalar: e,
|
|
9628
|
-
arg:
|
|
9629
|
-
asech:
|
|
9630
|
-
asinh:
|
|
9631
|
-
atan:
|
|
9632
|
-
atanh:
|
|
9633
|
-
bigint:
|
|
9634
|
-
bitNot:
|
|
9628
|
+
arg: Aa,
|
|
9629
|
+
asech: ga,
|
|
9630
|
+
asinh: or,
|
|
9631
|
+
atan: Xi,
|
|
9632
|
+
atanh: yr,
|
|
9633
|
+
bigint: na,
|
|
9634
|
+
bitNot: er,
|
|
9635
9635
|
boolean: k,
|
|
9636
|
-
clone:
|
|
9636
|
+
clone: wt,
|
|
9637
9637
|
combinations: m,
|
|
9638
|
-
complex:
|
|
9638
|
+
complex: pe,
|
|
9639
9639
|
conj: bo,
|
|
9640
|
-
cos:
|
|
9641
|
-
cot:
|
|
9642
|
-
csc:
|
|
9640
|
+
cos: xn,
|
|
9641
|
+
cot: mn,
|
|
9642
|
+
csc: Pn,
|
|
9643
9643
|
cube: o,
|
|
9644
|
-
equalScalar:
|
|
9644
|
+
equalScalar: to,
|
|
9645
9645
|
erf: T,
|
|
9646
|
-
exp:
|
|
9646
|
+
exp: qa,
|
|
9647
9647
|
expm1: re,
|
|
9648
|
-
filter:
|
|
9649
|
-
flatten:
|
|
9650
|
-
forEach:
|
|
9651
|
-
format:
|
|
9652
|
-
getMatrixDataType:
|
|
9653
|
-
hex:
|
|
9654
|
-
im:
|
|
9655
|
-
isBounded:
|
|
9656
|
-
isNaN:
|
|
9657
|
-
isNumeric:
|
|
9658
|
-
isPrime:
|
|
9659
|
-
LOG2E:
|
|
9660
|
-
lgamma:
|
|
9661
|
-
log10:
|
|
9662
|
-
log2:
|
|
9663
|
-
map:
|
|
9664
|
-
mode:
|
|
9665
|
-
multiplyScalar:
|
|
9666
|
-
not:
|
|
9667
|
-
number:
|
|
9668
|
-
oct:
|
|
9669
|
-
pickRandom:
|
|
9670
|
-
print:
|
|
9671
|
-
random:
|
|
9672
|
-
re:
|
|
9673
|
-
sec:
|
|
9674
|
-
sign:
|
|
9675
|
-
sin:
|
|
9676
|
-
size:
|
|
9677
|
-
splitUnit:
|
|
9678
|
-
square:
|
|
9679
|
-
string:
|
|
9680
|
-
subtractScalar:
|
|
9681
|
-
tan:
|
|
9648
|
+
filter: ui,
|
|
9649
|
+
flatten: ue,
|
|
9650
|
+
forEach: Xe,
|
|
9651
|
+
format: Ht,
|
|
9652
|
+
getMatrixDataType: wn,
|
|
9653
|
+
hex: Rn,
|
|
9654
|
+
im: jr,
|
|
9655
|
+
isBounded: Ji,
|
|
9656
|
+
isNaN: Di,
|
|
9657
|
+
isNumeric: wr,
|
|
9658
|
+
isPrime: ta,
|
|
9659
|
+
LOG2E: si,
|
|
9660
|
+
lgamma: Xt,
|
|
9661
|
+
log10: Ya,
|
|
9662
|
+
log2: R,
|
|
9663
|
+
map: Me,
|
|
9664
|
+
mode: ca,
|
|
9665
|
+
multiplyScalar: Or,
|
|
9666
|
+
not: da,
|
|
9667
|
+
number: wi,
|
|
9668
|
+
oct: xr,
|
|
9669
|
+
pickRandom: za,
|
|
9670
|
+
print: yt,
|
|
9671
|
+
random: Dt,
|
|
9672
|
+
re: Ye,
|
|
9673
|
+
sec: Un,
|
|
9674
|
+
sign: ja,
|
|
9675
|
+
sin: br,
|
|
9676
|
+
size: Zi,
|
|
9677
|
+
splitUnit: $a,
|
|
9678
|
+
square: Ga,
|
|
9679
|
+
string: gi,
|
|
9680
|
+
subtractScalar: nt,
|
|
9681
|
+
tan: ce,
|
|
9682
9682
|
toBest: g,
|
|
9683
|
-
typeOf:
|
|
9684
|
-
acosh:
|
|
9685
|
-
acsch:
|
|
9686
|
-
asec:
|
|
9687
|
-
bignumber:
|
|
9683
|
+
typeOf: ln,
|
|
9684
|
+
acosh: ra,
|
|
9685
|
+
acsch: Vn,
|
|
9686
|
+
asec: Ui,
|
|
9687
|
+
bignumber: Ii,
|
|
9688
9688
|
chain: ol,
|
|
9689
|
-
combinationsWithRep:
|
|
9690
|
-
cosh:
|
|
9691
|
-
csch:
|
|
9692
|
-
dot:
|
|
9693
|
-
hasNumericValue:
|
|
9694
|
-
isFinite:
|
|
9695
|
-
isNegative:
|
|
9696
|
-
isZero:
|
|
9697
|
-
matrix:
|
|
9689
|
+
combinationsWithRep: mi,
|
|
9690
|
+
cosh: Ee,
|
|
9691
|
+
csch: qn,
|
|
9692
|
+
dot: Na,
|
|
9693
|
+
hasNumericValue: Ie,
|
|
9694
|
+
isFinite: xa,
|
|
9695
|
+
isNegative: Fa,
|
|
9696
|
+
isZero: Pi,
|
|
9697
|
+
matrix: H,
|
|
9698
9698
|
matrixFromFunction: b,
|
|
9699
9699
|
multiply: a,
|
|
9700
|
-
ones:
|
|
9701
|
-
randomInt:
|
|
9702
|
-
resize:
|
|
9703
|
-
sech:
|
|
9704
|
-
sinh:
|
|
9705
|
-
sparse:
|
|
9706
|
-
sqrt:
|
|
9707
|
-
squeeze:
|
|
9708
|
-
tanh:
|
|
9709
|
-
transpose:
|
|
9710
|
-
xgcd:
|
|
9711
|
-
zeros:
|
|
9712
|
-
acoth:
|
|
9713
|
-
asin:
|
|
9714
|
-
bin:
|
|
9715
|
-
coth:
|
|
9716
|
-
ctranspose:
|
|
9717
|
-
diag:
|
|
9718
|
-
equal:
|
|
9700
|
+
ones: Fr,
|
|
9701
|
+
randomInt: le,
|
|
9702
|
+
resize: _n,
|
|
9703
|
+
sech: Pt,
|
|
9704
|
+
sinh: Pr,
|
|
9705
|
+
sparse: oo,
|
|
9706
|
+
sqrt: Kt,
|
|
9707
|
+
squeeze: en,
|
|
9708
|
+
tanh: Oe,
|
|
9709
|
+
transpose: xe,
|
|
9710
|
+
xgcd: Bi,
|
|
9711
|
+
zeros: ri,
|
|
9712
|
+
acoth: Fn,
|
|
9713
|
+
asin: oi,
|
|
9714
|
+
bin: $r,
|
|
9715
|
+
coth: Dn,
|
|
9716
|
+
ctranspose: Rt,
|
|
9717
|
+
diag: rr,
|
|
9718
|
+
equal: lr,
|
|
9719
9719
|
fraction: _o,
|
|
9720
|
-
identity:
|
|
9721
|
-
isInteger:
|
|
9722
|
-
kron:
|
|
9723
|
-
mapSlices:
|
|
9720
|
+
identity: Ft,
|
|
9721
|
+
isInteger: _r,
|
|
9722
|
+
kron: Qn,
|
|
9723
|
+
mapSlices: Qe,
|
|
9724
9724
|
matrixFromColumns: yo,
|
|
9725
|
-
num:
|
|
9725
|
+
num: mr,
|
|
9726
9726
|
reshape: _,
|
|
9727
|
-
round:
|
|
9728
|
-
unaryMinus:
|
|
9729
|
-
bernoulli:
|
|
9730
|
-
cbrt:
|
|
9731
|
-
concat:
|
|
9732
|
-
deepEqual:
|
|
9733
|
-
dotMultiply:
|
|
9734
|
-
floor:
|
|
9735
|
-
gcd:
|
|
9736
|
-
isPositive:
|
|
9737
|
-
larger:
|
|
9738
|
-
lcm:
|
|
9739
|
-
leftShift:
|
|
9740
|
-
mod:
|
|
9741
|
-
nthRoot:
|
|
9742
|
-
nullish:
|
|
9743
|
-
numeric:
|
|
9744
|
-
prod:
|
|
9745
|
-
rightArithShift:
|
|
9746
|
-
smaller:
|
|
9747
|
-
subtract:
|
|
9727
|
+
round: He,
|
|
9728
|
+
unaryMinus: he,
|
|
9729
|
+
bernoulli: Br,
|
|
9730
|
+
cbrt: sn,
|
|
9731
|
+
concat: et,
|
|
9732
|
+
deepEqual: Ea,
|
|
9733
|
+
dotMultiply: Ir,
|
|
9734
|
+
floor: Ae,
|
|
9735
|
+
gcd: dn,
|
|
9736
|
+
isPositive: Rr,
|
|
9737
|
+
larger: Va,
|
|
9738
|
+
lcm: dr,
|
|
9739
|
+
leftShift: ro,
|
|
9740
|
+
mod: Ge,
|
|
9741
|
+
nthRoot: ti,
|
|
9742
|
+
nullish: va,
|
|
9743
|
+
numeric: Ma,
|
|
9744
|
+
prod: _i,
|
|
9745
|
+
rightArithShift: Se,
|
|
9746
|
+
smaller: qr,
|
|
9747
|
+
subtract: ci,
|
|
9748
9748
|
to: ho,
|
|
9749
|
-
unaryPlus:
|
|
9750
|
-
xor:
|
|
9751
|
-
add:
|
|
9752
|
-
atan2:
|
|
9753
|
-
bitAnd:
|
|
9754
|
-
bitOr:
|
|
9749
|
+
unaryPlus: Ve,
|
|
9750
|
+
xor: pa,
|
|
9751
|
+
add: V,
|
|
9752
|
+
atan2: Ca,
|
|
9753
|
+
bitAnd: Kr,
|
|
9754
|
+
bitOr: Ua,
|
|
9755
9755
|
bitXor: po,
|
|
9756
|
-
ceil:
|
|
9757
|
-
compare:
|
|
9758
|
-
compareText:
|
|
9759
|
-
composition:
|
|
9760
|
-
count:
|
|
9761
|
-
cross:
|
|
9762
|
-
diff:
|
|
9763
|
-
divideScalar:
|
|
9764
|
-
equalText:
|
|
9765
|
-
fix:
|
|
9766
|
-
hypot:
|
|
9767
|
-
intersect:
|
|
9768
|
-
invmod:
|
|
9756
|
+
ceil: oe,
|
|
9757
|
+
compare: ct,
|
|
9758
|
+
compareText: Mt,
|
|
9759
|
+
composition: B,
|
|
9760
|
+
count: la,
|
|
9761
|
+
cross: Bn,
|
|
9762
|
+
diff: Ki,
|
|
9763
|
+
divideScalar: Ti,
|
|
9764
|
+
equalText: Jt,
|
|
9765
|
+
fix: Ot,
|
|
9766
|
+
hypot: jn,
|
|
9767
|
+
intersect: Vi,
|
|
9768
|
+
invmod: ar,
|
|
9769
9769
|
largerEq: uo,
|
|
9770
9770
|
log: D,
|
|
9771
|
-
lsolve:
|
|
9772
|
-
matrixFromRows:
|
|
9773
|
-
min:
|
|
9774
|
-
nthRoots:
|
|
9775
|
-
partitionSelect:
|
|
9776
|
-
qr:
|
|
9777
|
-
rightLogShift:
|
|
9778
|
-
slu:
|
|
9771
|
+
lsolve: St,
|
|
9772
|
+
matrixFromRows: bn,
|
|
9773
|
+
min: ve,
|
|
9774
|
+
nthRoots: nr,
|
|
9775
|
+
partitionSelect: ji,
|
|
9776
|
+
qr: li,
|
|
9777
|
+
rightLogShift: un,
|
|
9778
|
+
slu: Ai,
|
|
9779
9779
|
subset: c,
|
|
9780
|
-
sum:
|
|
9781
|
-
trace:
|
|
9782
|
-
usolve:
|
|
9783
|
-
zpk2tf:
|
|
9784
|
-
catalan:
|
|
9785
|
-
compareNatural:
|
|
9786
|
-
cumsum:
|
|
9787
|
-
det:
|
|
9788
|
-
dotDivide:
|
|
9789
|
-
index:
|
|
9790
|
-
inv:
|
|
9791
|
-
log1p:
|
|
9792
|
-
lsolveAll:
|
|
9793
|
-
max:
|
|
9794
|
-
or:
|
|
9795
|
-
pinv:
|
|
9780
|
+
sum: ut,
|
|
9781
|
+
trace: gn,
|
|
9782
|
+
usolve: In,
|
|
9783
|
+
zpk2tf: qi,
|
|
9784
|
+
catalan: Za,
|
|
9785
|
+
compareNatural: gt,
|
|
9786
|
+
cumsum: kr,
|
|
9787
|
+
det: fa,
|
|
9788
|
+
dotDivide: Sr,
|
|
9789
|
+
index: Oa,
|
|
9790
|
+
inv: ma,
|
|
9791
|
+
log1p: an,
|
|
9792
|
+
lsolveAll: bi,
|
|
9793
|
+
max: Te,
|
|
9794
|
+
or: Qi,
|
|
9795
|
+
pinv: so,
|
|
9796
9796
|
pow: M,
|
|
9797
|
-
setCartesian:
|
|
9798
|
-
setDistinct:
|
|
9799
|
-
setIsSubset:
|
|
9800
|
-
setPowerset:
|
|
9801
|
-
smallerEq:
|
|
9802
|
-
sort:
|
|
9797
|
+
setCartesian: Dr,
|
|
9798
|
+
setDistinct: Li,
|
|
9799
|
+
setIsSubset: ei,
|
|
9800
|
+
setPowerset: Wi,
|
|
9801
|
+
smallerEq: Vr,
|
|
9802
|
+
sort: Ra,
|
|
9803
9803
|
sqrtm: C,
|
|
9804
|
-
unequal:
|
|
9805
|
-
usolveAll:
|
|
9806
|
-
and:
|
|
9807
|
-
den:
|
|
9808
|
-
distance:
|
|
9809
|
-
dotPow:
|
|
9810
|
-
expm:
|
|
9804
|
+
unequal: ia,
|
|
9805
|
+
usolveAll: kn,
|
|
9806
|
+
and: Nr,
|
|
9807
|
+
den: zi,
|
|
9808
|
+
distance: ya,
|
|
9809
|
+
dotPow: $i,
|
|
9810
|
+
expm: nn,
|
|
9811
9811
|
fft: u,
|
|
9812
|
-
gamma:
|
|
9812
|
+
gamma: vn,
|
|
9813
9813
|
ifft: r,
|
|
9814
9814
|
lup: f,
|
|
9815
|
-
range:
|
|
9816
|
-
row:
|
|
9817
|
-
setDifference:
|
|
9818
|
-
setMultiplicity:
|
|
9819
|
-
setSymDifference:
|
|
9820
|
-
vacuumImpedance:
|
|
9821
|
-
wienDisplacement:
|
|
9822
|
-
atomicMass:
|
|
9823
|
-
bohrMagneton:
|
|
9824
|
-
boltzmann:
|
|
9825
|
-
column:
|
|
9826
|
-
conductanceQuantum:
|
|
9827
|
-
coulomb:
|
|
9828
|
-
createUnit:
|
|
9829
|
-
deuteronMass:
|
|
9830
|
-
eigs:
|
|
9831
|
-
electronMass:
|
|
9815
|
+
range: ke,
|
|
9816
|
+
row: aa,
|
|
9817
|
+
setDifference: wa,
|
|
9818
|
+
setMultiplicity: tr,
|
|
9819
|
+
setSymDifference: pr,
|
|
9820
|
+
vacuumImpedance: Hn,
|
|
9821
|
+
wienDisplacement: Da,
|
|
9822
|
+
atomicMass: ki,
|
|
9823
|
+
bohrMagneton: fr,
|
|
9824
|
+
boltzmann: Qt,
|
|
9825
|
+
column: Si,
|
|
9826
|
+
conductanceQuantum: Wt,
|
|
9827
|
+
coulomb: ye,
|
|
9828
|
+
createUnit: ze,
|
|
9829
|
+
deuteronMass: ni,
|
|
9830
|
+
eigs: Ur,
|
|
9831
|
+
electronMass: Ba,
|
|
9832
9832
|
factorial: N,
|
|
9833
|
-
fermiCoupling:
|
|
9834
|
-
gasConstant:
|
|
9835
|
-
gravity:
|
|
9836
|
-
klitzing:
|
|
9833
|
+
fermiCoupling: vi,
|
|
9834
|
+
gasConstant: Ce,
|
|
9835
|
+
gravity: Ue,
|
|
9836
|
+
klitzing: Gr,
|
|
9837
9837
|
loschmidt: F,
|
|
9838
|
-
magneticConstant:
|
|
9839
|
-
molarMass:
|
|
9840
|
-
molarPlanckConstant:
|
|
9841
|
-
neutronMass:
|
|
9842
|
-
nuclearMagneton:
|
|
9843
|
-
permutations:
|
|
9844
|
-
planckConstant:
|
|
9838
|
+
magneticConstant: At,
|
|
9839
|
+
molarMass: Re,
|
|
9840
|
+
molarPlanckConstant: Nn,
|
|
9841
|
+
neutronMass: Ta,
|
|
9842
|
+
nuclearMagneton: Gi,
|
|
9843
|
+
permutations: Jr,
|
|
9844
|
+
planckConstant: eo,
|
|
9845
9845
|
planckMass: w,
|
|
9846
|
-
planckTime:
|
|
9846
|
+
planckTime: tn,
|
|
9847
9847
|
protonMass: l,
|
|
9848
|
-
quantumOfCirculation:
|
|
9849
|
-
reducedPlanckConstant:
|
|
9848
|
+
quantumOfCirculation: dt,
|
|
9849
|
+
reducedPlanckConstant: Vt,
|
|
9850
9850
|
secondRadiation: n,
|
|
9851
|
-
setSize:
|
|
9852
|
-
speedOfLight:
|
|
9851
|
+
setSize: _a,
|
|
9852
|
+
speedOfLight: sr,
|
|
9853
9853
|
stefanBoltzmann: j,
|
|
9854
|
-
thomsonCrossSection:
|
|
9855
|
-
avogadro:
|
|
9856
|
-
bohrRadius:
|
|
9857
|
-
coulombConstant:
|
|
9858
|
-
divide:
|
|
9859
|
-
elementaryCharge:
|
|
9860
|
-
faraday:
|
|
9854
|
+
thomsonCrossSection: Bt,
|
|
9855
|
+
avogadro: La,
|
|
9856
|
+
bohrRadius: ao,
|
|
9857
|
+
coulombConstant: Ke,
|
|
9858
|
+
divide: hr,
|
|
9859
|
+
elementaryCharge: co,
|
|
9860
|
+
faraday: bt,
|
|
9861
9861
|
freqz: v,
|
|
9862
|
-
gravitationConstant:
|
|
9863
|
-
inverseConductanceQuantum:
|
|
9864
|
-
lusolve:
|
|
9865
|
-
magneticFluxQuantum:
|
|
9866
|
-
molarMassC12:
|
|
9867
|
-
multinomial:
|
|
9868
|
-
planckCharge:
|
|
9869
|
-
planckTemperature:
|
|
9870
|
-
quantileSeq:
|
|
9871
|
-
rydberg:
|
|
9872
|
-
setIntersect:
|
|
9873
|
-
solveODE:
|
|
9874
|
-
stirlingS2:
|
|
9875
|
-
unit:
|
|
9876
|
-
bellNumbers:
|
|
9877
|
-
electricConstant:
|
|
9878
|
-
firstRadiation:
|
|
9879
|
-
hartreeEnergy:
|
|
9880
|
-
kldivergence:
|
|
9881
|
-
mean:
|
|
9882
|
-
molarVolume:
|
|
9883
|
-
planckLength:
|
|
9884
|
-
setUnion:
|
|
9885
|
-
variance:
|
|
9886
|
-
classicalElectronRadius:
|
|
9862
|
+
gravitationConstant: _e,
|
|
9863
|
+
inverseConductanceQuantum: ii,
|
|
9864
|
+
lusolve: fi,
|
|
9865
|
+
magneticFluxQuantum: fe,
|
|
9866
|
+
molarMassC12: zn,
|
|
9867
|
+
multinomial: Lt,
|
|
9868
|
+
planckCharge: cr,
|
|
9869
|
+
planckTemperature: Ka,
|
|
9870
|
+
quantileSeq: rt,
|
|
9871
|
+
rydberg: Fe,
|
|
9872
|
+
setIntersect: ua,
|
|
9873
|
+
solveODE: Jn,
|
|
9874
|
+
stirlingS2: vt,
|
|
9875
|
+
unit: Pe,
|
|
9876
|
+
bellNumbers: Er,
|
|
9877
|
+
electricConstant: Xn,
|
|
9878
|
+
firstRadiation: ft,
|
|
9879
|
+
hartreeEnergy: oa,
|
|
9880
|
+
kldivergence: Zr,
|
|
9881
|
+
mean: pn,
|
|
9882
|
+
molarVolume: Kn,
|
|
9883
|
+
planckLength: qt,
|
|
9884
|
+
setUnion: Ci,
|
|
9885
|
+
variance: Nt,
|
|
9886
|
+
classicalElectronRadius: ee,
|
|
9887
9887
|
corr: x,
|
|
9888
|
-
median:
|
|
9888
|
+
median: En,
|
|
9889
9889
|
parse: pl,
|
|
9890
|
-
polynomialRoot:
|
|
9890
|
+
polynomialRoot: ne,
|
|
9891
9891
|
resolve: ml,
|
|
9892
9892
|
simplifyConstant: hl,
|
|
9893
|
-
std:
|
|
9894
|
-
zeta:
|
|
9893
|
+
std: L,
|
|
9894
|
+
zeta: ir,
|
|
9895
9895
|
compile: gl,
|
|
9896
9896
|
evaluate: _l,
|
|
9897
|
-
mad:
|
|
9897
|
+
mad: mt,
|
|
9898
9898
|
simplifyCore: bl,
|
|
9899
9899
|
help: xl,
|
|
9900
|
-
norm:
|
|
9901
|
-
rotationMatrix:
|
|
9900
|
+
norm: Ri,
|
|
9901
|
+
rotationMatrix: ge,
|
|
9902
9902
|
simplify: Sl,
|
|
9903
9903
|
symbolicEqual: tc({
|
|
9904
9904
|
OperatorNode: Xc,
|
|
9905
9905
|
parse: pl,
|
|
9906
9906
|
simplify: Sl,
|
|
9907
|
-
typed:
|
|
9907
|
+
typed: U
|
|
9908
9908
|
}),
|
|
9909
9909
|
derivative: rc({
|
|
9910
9910
|
ConstantNode: sl,
|
|
@@ -9912,25 +9912,25 @@ Mt(Kc, {
|
|
|
9912
9912
|
OperatorNode: Xc,
|
|
9913
9913
|
ParenthesisNode: Zc,
|
|
9914
9914
|
SymbolNode: dl,
|
|
9915
|
-
config:
|
|
9916
|
-
equal:
|
|
9917
|
-
isZero:
|
|
9918
|
-
numeric:
|
|
9915
|
+
config: We,
|
|
9916
|
+
equal: lr,
|
|
9917
|
+
isZero: Pi,
|
|
9918
|
+
numeric: Ma,
|
|
9919
9919
|
parse: pl,
|
|
9920
9920
|
simplify: Sl,
|
|
9921
|
-
typed:
|
|
9921
|
+
typed: U
|
|
9922
9922
|
}),
|
|
9923
9923
|
parser: Ss({
|
|
9924
9924
|
Parser: yl,
|
|
9925
|
-
typed:
|
|
9925
|
+
typed: U
|
|
9926
9926
|
}),
|
|
9927
|
-
rotate:
|
|
9927
|
+
rotate: Cn,
|
|
9928
9928
|
leafCount: Us({
|
|
9929
9929
|
parse: pl,
|
|
9930
|
-
typed:
|
|
9930
|
+
typed: U
|
|
9931
9931
|
}),
|
|
9932
9932
|
rationalize: ac({
|
|
9933
|
-
bignumber:
|
|
9933
|
+
bignumber: Ii,
|
|
9934
9934
|
fraction: _o,
|
|
9935
9935
|
AccessorNode: ll,
|
|
9936
9936
|
ArrayNode: $c,
|
|
@@ -9941,199 +9941,199 @@ Mt(Kc, {
|
|
|
9941
9941
|
OperatorNode: Xc,
|
|
9942
9942
|
ParenthesisNode: Zc,
|
|
9943
9943
|
SymbolNode: dl,
|
|
9944
|
-
add:
|
|
9945
|
-
config:
|
|
9946
|
-
divide:
|
|
9947
|
-
equal:
|
|
9948
|
-
isZero:
|
|
9944
|
+
add: V,
|
|
9945
|
+
config: We,
|
|
9946
|
+
divide: hr,
|
|
9947
|
+
equal: lr,
|
|
9948
|
+
isZero: Pi,
|
|
9949
9949
|
mathWithTransform: qc,
|
|
9950
|
-
matrix:
|
|
9950
|
+
matrix: H,
|
|
9951
9951
|
multiply: a,
|
|
9952
9952
|
parse: pl,
|
|
9953
9953
|
pow: M,
|
|
9954
9954
|
simplify: Sl,
|
|
9955
9955
|
simplifyConstant: hl,
|
|
9956
9956
|
simplifyCore: bl,
|
|
9957
|
-
subtract:
|
|
9958
|
-
typed:
|
|
9957
|
+
subtract: ci,
|
|
9958
|
+
typed: U
|
|
9959
9959
|
}),
|
|
9960
|
-
schur:
|
|
9961
|
-
sylvester:
|
|
9962
|
-
lyap:
|
|
9963
|
-
config:
|
|
9964
|
-
}),
|
|
9965
|
-
map: vc({ typed:
|
|
9966
|
-
filter: hc({ typed:
|
|
9967
|
-
forEach: gc({ typed:
|
|
9960
|
+
schur: An,
|
|
9961
|
+
sylvester: Et,
|
|
9962
|
+
lyap: ot,
|
|
9963
|
+
config: We
|
|
9964
|
+
}), ht(qc, Kc, {
|
|
9965
|
+
map: vc({ typed: U }),
|
|
9966
|
+
filter: hc({ typed: U }),
|
|
9967
|
+
forEach: gc({ typed: U }),
|
|
9968
9968
|
mapSlices: lc({
|
|
9969
|
-
isInteger:
|
|
9970
|
-
typed:
|
|
9969
|
+
isInteger: _r,
|
|
9970
|
+
typed: U
|
|
9971
9971
|
}),
|
|
9972
9972
|
or: Hc({
|
|
9973
9973
|
DenseMatrix: S,
|
|
9974
|
-
concat:
|
|
9975
|
-
equalScalar:
|
|
9976
|
-
matrix:
|
|
9977
|
-
typed:
|
|
9974
|
+
concat: et,
|
|
9975
|
+
equalScalar: to,
|
|
9976
|
+
matrix: H,
|
|
9977
|
+
typed: U
|
|
9978
9978
|
}),
|
|
9979
9979
|
and: Vc({
|
|
9980
|
-
add:
|
|
9981
|
-
concat:
|
|
9982
|
-
equalScalar:
|
|
9983
|
-
matrix:
|
|
9984
|
-
not:
|
|
9985
|
-
typed:
|
|
9986
|
-
zeros:
|
|
9980
|
+
add: V,
|
|
9981
|
+
concat: et,
|
|
9982
|
+
equalScalar: to,
|
|
9983
|
+
matrix: H,
|
|
9984
|
+
not: da,
|
|
9985
|
+
typed: U,
|
|
9986
|
+
zeros: ri
|
|
9987
9987
|
}),
|
|
9988
9988
|
cumsum: Ic({
|
|
9989
|
-
add:
|
|
9990
|
-
typed:
|
|
9991
|
-
unaryPlus:
|
|
9989
|
+
add: V,
|
|
9990
|
+
typed: U,
|
|
9991
|
+
unaryPlus: Ve
|
|
9992
9992
|
}),
|
|
9993
9993
|
max: Sc({
|
|
9994
|
-
config:
|
|
9995
|
-
isNaN:
|
|
9996
|
-
larger:
|
|
9997
|
-
numeric:
|
|
9998
|
-
typed:
|
|
9994
|
+
config: We,
|
|
9995
|
+
isNaN: Di,
|
|
9996
|
+
larger: Va,
|
|
9997
|
+
numeric: Ma,
|
|
9998
|
+
typed: U
|
|
9999
9999
|
}),
|
|
10000
10000
|
nullish: Uc({
|
|
10001
|
-
deepEqual:
|
|
10002
|
-
flatten:
|
|
10003
|
-
matrix:
|
|
10004
|
-
size:
|
|
10005
|
-
typed:
|
|
10001
|
+
deepEqual: Ea,
|
|
10002
|
+
flatten: ue,
|
|
10003
|
+
matrix: H,
|
|
10004
|
+
size: Zi,
|
|
10005
|
+
typed: U
|
|
10006
10006
|
}),
|
|
10007
10007
|
print: Bc({
|
|
10008
|
-
add:
|
|
10009
|
-
matrix:
|
|
10010
|
-
typed:
|
|
10011
|
-
zeros:
|
|
10008
|
+
add: V,
|
|
10009
|
+
matrix: H,
|
|
10010
|
+
typed: U,
|
|
10011
|
+
zeros: ri
|
|
10012
10012
|
}),
|
|
10013
10013
|
bitAnd: Wc({
|
|
10014
|
-
add:
|
|
10015
|
-
concat:
|
|
10016
|
-
equalScalar:
|
|
10017
|
-
matrix:
|
|
10018
|
-
not:
|
|
10019
|
-
typed:
|
|
10020
|
-
zeros:
|
|
10014
|
+
add: V,
|
|
10015
|
+
concat: et,
|
|
10016
|
+
equalScalar: to,
|
|
10017
|
+
matrix: H,
|
|
10018
|
+
not: da,
|
|
10019
|
+
typed: U,
|
|
10020
|
+
zeros: ri
|
|
10021
10021
|
}),
|
|
10022
10022
|
concat: Oc({
|
|
10023
|
-
isInteger:
|
|
10024
|
-
matrix:
|
|
10025
|
-
typed:
|
|
10023
|
+
isInteger: _r,
|
|
10024
|
+
matrix: H,
|
|
10025
|
+
typed: U
|
|
10026
10026
|
}),
|
|
10027
10027
|
diff: Ac({
|
|
10028
|
-
bignumber:
|
|
10029
|
-
matrix:
|
|
10030
|
-
number:
|
|
10031
|
-
subtract:
|
|
10032
|
-
typed:
|
|
10028
|
+
bignumber: Ii,
|
|
10029
|
+
matrix: H,
|
|
10030
|
+
number: wi,
|
|
10031
|
+
subtract: ci,
|
|
10032
|
+
typed: U
|
|
10033
10033
|
}),
|
|
10034
10034
|
min: wc({
|
|
10035
|
-
config:
|
|
10036
|
-
isNaN:
|
|
10037
|
-
numeric:
|
|
10038
|
-
smaller:
|
|
10039
|
-
typed:
|
|
10035
|
+
config: We,
|
|
10036
|
+
isNaN: Di,
|
|
10037
|
+
numeric: Ma,
|
|
10038
|
+
smaller: qr,
|
|
10039
|
+
typed: U
|
|
10040
10040
|
}),
|
|
10041
10041
|
subset: Dc({
|
|
10042
|
-
add:
|
|
10043
|
-
matrix:
|
|
10044
|
-
typed:
|
|
10045
|
-
zeros:
|
|
10042
|
+
add: V,
|
|
10043
|
+
matrix: H,
|
|
10044
|
+
typed: U,
|
|
10045
|
+
zeros: ri
|
|
10046
10046
|
}),
|
|
10047
10047
|
bitOr: Gc({
|
|
10048
10048
|
DenseMatrix: S,
|
|
10049
|
-
concat:
|
|
10050
|
-
equalScalar:
|
|
10051
|
-
matrix:
|
|
10052
|
-
typed:
|
|
10049
|
+
concat: et,
|
|
10050
|
+
equalScalar: to,
|
|
10051
|
+
matrix: H,
|
|
10052
|
+
typed: U
|
|
10053
10053
|
}),
|
|
10054
10054
|
sum: Nc({
|
|
10055
|
-
add:
|
|
10056
|
-
config:
|
|
10057
|
-
numeric:
|
|
10058
|
-
typed:
|
|
10055
|
+
add: V,
|
|
10056
|
+
config: We,
|
|
10057
|
+
numeric: Ma,
|
|
10058
|
+
typed: U
|
|
10059
10059
|
}),
|
|
10060
10060
|
index: _c({
|
|
10061
10061
|
Index: A,
|
|
10062
|
-
getMatrixDataType:
|
|
10062
|
+
getMatrixDataType: wn
|
|
10063
10063
|
}),
|
|
10064
10064
|
row: Ec({
|
|
10065
10065
|
Index: A,
|
|
10066
|
-
matrix:
|
|
10067
|
-
range:
|
|
10068
|
-
typed:
|
|
10066
|
+
matrix: H,
|
|
10067
|
+
range: ke,
|
|
10068
|
+
typed: U
|
|
10069
10069
|
}),
|
|
10070
10070
|
column: uc({
|
|
10071
10071
|
Index: A,
|
|
10072
|
-
matrix:
|
|
10073
|
-
range:
|
|
10074
|
-
typed:
|
|
10072
|
+
matrix: H,
|
|
10073
|
+
range: ke,
|
|
10074
|
+
typed: U
|
|
10075
10075
|
}),
|
|
10076
10076
|
mean: Cc({
|
|
10077
|
-
add:
|
|
10078
|
-
divide:
|
|
10079
|
-
typed:
|
|
10077
|
+
add: V,
|
|
10078
|
+
divide: hr,
|
|
10079
|
+
typed: U
|
|
10080
10080
|
}),
|
|
10081
10081
|
range: Tc({
|
|
10082
|
-
bignumber:
|
|
10083
|
-
matrix:
|
|
10084
|
-
add:
|
|
10085
|
-
config:
|
|
10086
|
-
equal:
|
|
10087
|
-
isPositive:
|
|
10088
|
-
isZero:
|
|
10089
|
-
larger:
|
|
10082
|
+
bignumber: Ii,
|
|
10083
|
+
matrix: H,
|
|
10084
|
+
add: V,
|
|
10085
|
+
config: We,
|
|
10086
|
+
equal: lr,
|
|
10087
|
+
isPositive: Rr,
|
|
10088
|
+
isZero: Pi,
|
|
10089
|
+
larger: Va,
|
|
10090
10090
|
largerEq: uo,
|
|
10091
|
-
smaller:
|
|
10092
|
-
smallerEq:
|
|
10093
|
-
typed:
|
|
10091
|
+
smaller: qr,
|
|
10092
|
+
smallerEq: Vr,
|
|
10093
|
+
typed: U
|
|
10094
10094
|
}),
|
|
10095
10095
|
variance: Rc({
|
|
10096
|
-
add:
|
|
10097
|
-
divide:
|
|
10098
|
-
isNaN:
|
|
10099
|
-
mapSlices:
|
|
10096
|
+
add: V,
|
|
10097
|
+
divide: hr,
|
|
10098
|
+
isNaN: Di,
|
|
10099
|
+
mapSlices: Qe,
|
|
10100
10100
|
multiply: a,
|
|
10101
|
-
subtract:
|
|
10102
|
-
typed:
|
|
10101
|
+
subtract: ci,
|
|
10102
|
+
typed: U
|
|
10103
10103
|
}),
|
|
10104
10104
|
quantileSeq: Pc({
|
|
10105
|
-
add:
|
|
10106
|
-
bignumber:
|
|
10107
|
-
compare:
|
|
10108
|
-
divide:
|
|
10109
|
-
isInteger:
|
|
10110
|
-
larger:
|
|
10111
|
-
mapSlices:
|
|
10105
|
+
add: V,
|
|
10106
|
+
bignumber: Ii,
|
|
10107
|
+
compare: ct,
|
|
10108
|
+
divide: hr,
|
|
10109
|
+
isInteger: _r,
|
|
10110
|
+
larger: Va,
|
|
10111
|
+
mapSlices: Qe,
|
|
10112
10112
|
multiply: a,
|
|
10113
|
-
partitionSelect:
|
|
10114
|
-
smaller:
|
|
10115
|
-
smallerEq:
|
|
10116
|
-
subtract:
|
|
10117
|
-
typed:
|
|
10113
|
+
partitionSelect: ji,
|
|
10114
|
+
smaller: qr,
|
|
10115
|
+
smallerEq: Vr,
|
|
10116
|
+
subtract: ci,
|
|
10117
|
+
typed: U
|
|
10118
10118
|
}),
|
|
10119
10119
|
std: jc({
|
|
10120
|
-
map:
|
|
10121
|
-
sqrt:
|
|
10122
|
-
typed:
|
|
10123
|
-
variance:
|
|
10120
|
+
map: Me,
|
|
10121
|
+
sqrt: Kt,
|
|
10122
|
+
typed: U,
|
|
10123
|
+
variance: Nt
|
|
10124
10124
|
})
|
|
10125
|
-
}),
|
|
10126
|
-
BigNumber:
|
|
10127
|
-
Complex:
|
|
10128
|
-
Fraction:
|
|
10129
|
-
Matrix:
|
|
10125
|
+
}), ht(Jc, {
|
|
10126
|
+
BigNumber: Qa,
|
|
10127
|
+
Complex: Gt,
|
|
10128
|
+
Fraction: $t,
|
|
10129
|
+
Matrix: tt,
|
|
10130
10130
|
Node: $,
|
|
10131
10131
|
ObjectNode: Yc,
|
|
10132
10132
|
OperatorNode: Xc,
|
|
10133
10133
|
ParenthesisNode: Zc,
|
|
10134
|
-
Range:
|
|
10134
|
+
Range: lt,
|
|
10135
10135
|
RelationalNode: Qc,
|
|
10136
|
-
ResultSet:
|
|
10136
|
+
ResultSet: Tt,
|
|
10137
10137
|
ArrayNode: $c,
|
|
10138
10138
|
BlockNode: el,
|
|
10139
10139
|
ConditionalNode: tl,
|
|
@@ -10141,13 +10141,13 @@ Mt(Kc, {
|
|
|
10141
10141
|
RangeNode: nl,
|
|
10142
10142
|
Chain: il,
|
|
10143
10143
|
FunctionAssignmentNode: al,
|
|
10144
|
-
SparseMatrix:
|
|
10144
|
+
SparseMatrix: zt,
|
|
10145
10145
|
ConstantNode: sl,
|
|
10146
10146
|
IndexNode: cl,
|
|
10147
|
-
FibonacciHeap:
|
|
10147
|
+
FibonacciHeap: Wa,
|
|
10148
10148
|
ImmutableDenseMatrix: te,
|
|
10149
10149
|
Index: A,
|
|
10150
|
-
Spa:
|
|
10150
|
+
Spa: qe,
|
|
10151
10151
|
AccessorNode: ll,
|
|
10152
10152
|
AssignmentNode: ul,
|
|
10153
10153
|
Unit: mo,
|
|
@@ -10159,4 +10159,4 @@ Mt(Kc, {
|
|
|
10159
10159
|
//#endregion
|
|
10160
10160
|
export { _l as t };
|
|
10161
10161
|
|
|
10162
|
-
//# sourceMappingURL=impureFunctionsAny.generated-
|
|
10162
|
+
//# sourceMappingURL=impureFunctionsAny.generated-BwG6hrJc.js.map
|