manim-web 0.3.18 → 0.3.20
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/README.md +26 -40
- package/dist/AllPackages-B0GtkYjD.js +7912 -0
- package/dist/AllPackages-BIAELuhU.js +7912 -0
- package/dist/BaseConfiguration-CDf44lxS.js +4402 -0
- package/dist/BaseConfiguration-Chcqjv9L.js +4402 -0
- package/dist/Entities-B_gwJfrn.js +458 -0
- package/dist/Entities-CmJkmuw_.js +458 -0
- package/dist/GifExporter-C9lP34Iu.js +338 -0
- package/dist/GifExporter-DBak5Vk7.js +338 -0
- package/dist/InputJax-C5sGfjJ8.js +43 -0
- package/dist/InputJax-Jb4hSThK.js +43 -0
- package/dist/MathItem-BmK41eqe.js +77 -0
- package/dist/MathItem-C_mZyaeT.js +77 -0
- package/dist/Options-Ch1vGsgd.js +188 -0
- package/dist/Options-V6ag48Dv.js +188 -0
- package/dist/PrioritizedList-DkoCmqPk.js +36 -0
- package/dist/PrioritizedList-eKTii0tW.js +36 -0
- package/dist/Styles-De4BjKiV.js +411 -0
- package/dist/Styles-DgoiBrzf.js +411 -0
- package/dist/TeXAtom-DT2wCvcU.js +2025 -0
- package/dist/TeXAtom-JogI0lus.js +2025 -0
- package/dist/VideoExporter-Bdtz_pWv.js +102 -0
- package/dist/VideoExporter-Vjfsnv1h.js +102 -0
- package/dist/animation/creation/Create.d.ts +1 -1
- package/dist/animation/movement/Rotate.d.ts +2 -0
- package/dist/animation/movement/Rotate.d.ts.map +1 -1
- package/dist/animation/movement/Scale.d.ts +2 -0
- package/dist/animation/movement/Scale.d.ts.map +1 -1
- package/dist/animation/transform/ApplyTransforms.d.ts +1 -2
- package/dist/animation/transform/ApplyTransforms.d.ts.map +1 -1
- package/dist/animation/transform/MovementTransforms.d.ts +8 -0
- package/dist/animation/transform/MovementTransforms.d.ts.map +1 -1
- package/dist/animation/transform/Transform.d.ts +3 -0
- package/dist/animation/transform/Transform.d.ts.map +1 -1
- package/dist/animation/utility/index.d.ts +2 -0
- package/dist/animation/utility/index.d.ts.map +1 -1
- package/dist/chunk-3e0lkp8x.js +23 -0
- package/dist/constants/fontRender.d.ts +19 -0
- package/dist/constants/fontRender.d.ts.map +1 -0
- package/dist/constants/index.d.ts.map +1 -1
- package/dist/core/Camera.d.ts +19 -6
- package/dist/core/Camera.d.ts.map +1 -1
- package/dist/core/CameraFrame.d.ts +0 -2
- package/dist/core/CameraFrame.d.ts.map +1 -1
- package/dist/core/Group.d.ts +2 -2
- package/dist/core/Group.d.ts.map +1 -1
- package/dist/core/Mobject.d.ts +26 -6
- package/dist/core/Mobject.d.ts.map +1 -1
- package/dist/core/MobjectState.d.ts +23 -2
- package/dist/core/MobjectState.d.ts.map +1 -1
- package/dist/core/MobjectTraversal.d.ts +25 -0
- package/dist/core/MobjectTraversal.d.ts.map +1 -0
- package/dist/core/Scene.d.ts +7 -1
- package/dist/core/Scene.d.ts.map +1 -1
- package/dist/core/ThreeDScene.d.ts +19 -0
- package/dist/core/ThreeDScene.d.ts.map +1 -1
- package/dist/core/VGroup.d.ts +1 -1
- package/dist/core/VGroup.d.ts.map +1 -1
- package/dist/core/VMobject.d.ts +20 -1
- package/dist/core/VMobject.d.ts.map +1 -1
- package/dist/core/VMobjectGeometry.d.ts +2 -1
- package/dist/core/VMobjectGeometry.d.ts.map +1 -1
- package/dist/html-53__O8r2.js +1587 -0
- package/dist/html-DfHFh5II.js +1587 -0
- package/dist/index.d.ts +1 -1
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +4 -579
- package/dist/integrations/react.js +144 -735
- package/dist/integrations/vue.js +109 -735
- package/dist/interaction/Draggable.d.ts.map +1 -1
- package/dist/interaction/OrbitControls.d.ts +2 -0
- package/dist/interaction/OrbitControls.d.ts.map +1 -1
- package/dist/lengths-3epoqRj7.js +65 -0
- package/dist/lengths-B-bX9Tfk.js +65 -0
- package/dist/liteAdaptor-BxFvlO-q.js +828 -0
- package/dist/liteAdaptor-CsOIKw2g.js +828 -0
- package/dist/manim-web.browser.js +72994 -83815
- package/dist/mathjax-Bkrmftxh.js +102 -0
- package/dist/mathjax-DBrTNl9C.js +102 -0
- package/dist/mo-AzagC5AD.js +3271 -0
- package/dist/mo-I_6dyJsk.js +3271 -0
- package/dist/mobjects/geometry/AngleShapes.d.ts +16 -0
- package/dist/mobjects/geometry/AngleShapes.d.ts.map +1 -1
- package/dist/mobjects/geometry/DashedLine.d.ts +2 -2
- package/dist/mobjects/geometry/DashedLine.d.ts.map +1 -1
- package/dist/mobjects/graphing/Axes.d.ts +2 -2
- package/dist/mobjects/graphing/Axes.d.ts.map +1 -1
- package/dist/mobjects/graphing/ComplexPlane.d.ts +4 -1
- package/dist/mobjects/graphing/ComplexPlane.d.ts.map +1 -1
- package/dist/mobjects/matrix/Matrix.d.ts +2 -2
- package/dist/mobjects/matrix/Matrix.d.ts.map +1 -1
- package/dist/mobjects/point/PGroup.d.ts +1 -1
- package/dist/mobjects/point/PGroup.d.ts.map +1 -1
- package/dist/mobjects/point/PMobject.d.ts +1 -1
- package/dist/mobjects/point/PMobject.d.ts.map +1 -1
- package/dist/mobjects/svg/Brace.d.ts +3 -3
- package/dist/mobjects/svg/Brace.d.ts.map +1 -1
- package/dist/mobjects/table/Table.d.ts +4 -4
- package/dist/mobjects/table/Table.d.ts.map +1 -1
- package/dist/mobjects/text/MathJaxRenderer.d.ts +4 -2
- package/dist/mobjects/text/MathJaxRenderer.d.ts.map +1 -1
- package/dist/mobjects/text/MathTex.d.ts +68 -202
- package/dist/mobjects/text/MathTex.d.ts.map +1 -1
- package/dist/mobjects/text/MathTexImage.d.ts +258 -0
- package/dist/mobjects/text/MathTexImage.d.ts.map +1 -0
- package/dist/mobjects/text/MathTexParts.d.ts +10 -10
- package/dist/mobjects/text/MathTexParts.d.ts.map +1 -1
- package/dist/mobjects/text/Tex.d.ts +2 -7
- package/dist/mobjects/text/Tex.d.ts.map +1 -1
- package/dist/mobjects/text/Text.d.ts +2 -2
- package/dist/mobjects/text/Text.d.ts.map +1 -1
- package/dist/mobjects/text/Variable.d.ts +5 -5
- package/dist/mobjects/text/Variable.d.ts.map +1 -1
- package/dist/mobjects/text/index.d.ts +2 -2
- package/dist/mobjects/text/index.d.ts.map +1 -1
- package/dist/mobjects/text/katexStyles.d.ts.map +1 -1
- package/dist/mobjects/text/svgPathParser.d.ts.map +1 -1
- package/dist/mobjects/three-d/ThreeDAxes.d.ts +113 -9
- package/dist/mobjects/three-d/ThreeDAxes.d.ts.map +1 -1
- package/dist/player/Player.d.ts +8 -2
- package/dist/player/Player.d.ts.map +1 -1
- package/dist/player/PlayerController.d.ts +2 -0
- package/dist/player/PlayerController.d.ts.map +1 -1
- package/dist/player/PlayerUI.d.ts +5 -0
- package/dist/player/PlayerUI.d.ts.map +1 -1
- package/dist/src-Db7QTr4S.js +60248 -0
- package/dist/svg-CoGQ_sAt.js +23880 -0
- package/dist/svg-DiIG93Lr.js +23880 -0
- package/dist/tex-ChPKMfdv.js +401 -0
- package/dist/tex-hYZcjadW.js +401 -0
- package/dist/utils/math.d.ts +45 -0
- package/dist/utils/math.d.ts.map +1 -1
- package/package.json +6 -4
- package/dist/featureFlags-H97tY2Rw.js +0 -59814
- package/dist/mobjects/text/MathTexSVG.d.ts +0 -102
- package/dist/mobjects/text/MathTexSVG.d.ts.map +0 -1
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
import { t as e } from "./chunk-3e0lkp8x.js";
|
|
2
|
+
import { t } from "./Options-Ch1vGsgd.js";
|
|
3
|
+
import { s as n } from "./mo-I_6dyJsk.js";
|
|
4
|
+
//#region node_modules/mathjax-full/js/core/InputJax.js
|
|
5
|
+
var r = /* @__PURE__ */ e(((e) => {
|
|
6
|
+
Object.defineProperty(e, "__esModule", { value: !0 }), e.AbstractInputJax = void 0;
|
|
7
|
+
var r = t(), i = n();
|
|
8
|
+
e.AbstractInputJax = function() {
|
|
9
|
+
function e(e) {
|
|
10
|
+
e === void 0 && (e = {}), this.adaptor = null, this.mmlFactory = null;
|
|
11
|
+
var t = this.constructor;
|
|
12
|
+
this.options = (0, r.userOptions)((0, r.defaultOptions)({}, t.OPTIONS), e), this.preFilters = new i.FunctionList(), this.postFilters = new i.FunctionList();
|
|
13
|
+
}
|
|
14
|
+
return Object.defineProperty(e.prototype, "name", {
|
|
15
|
+
get: function() {
|
|
16
|
+
return this.constructor.NAME;
|
|
17
|
+
},
|
|
18
|
+
enumerable: !1,
|
|
19
|
+
configurable: !0
|
|
20
|
+
}), e.prototype.setAdaptor = function(e) {
|
|
21
|
+
this.adaptor = e;
|
|
22
|
+
}, e.prototype.setMmlFactory = function(e) {
|
|
23
|
+
this.mmlFactory = e;
|
|
24
|
+
}, e.prototype.initialize = function() {}, e.prototype.reset = function() {}, Object.defineProperty(e.prototype, "processStrings", {
|
|
25
|
+
get: function() {
|
|
26
|
+
return !0;
|
|
27
|
+
},
|
|
28
|
+
enumerable: !1,
|
|
29
|
+
configurable: !0
|
|
30
|
+
}), e.prototype.findMath = function(e, t) {
|
|
31
|
+
return [];
|
|
32
|
+
}, e.prototype.executeFilters = function(e, t, n, r) {
|
|
33
|
+
var i = {
|
|
34
|
+
math: t,
|
|
35
|
+
document: n,
|
|
36
|
+
data: r
|
|
37
|
+
};
|
|
38
|
+
return e.execute(i), i.data;
|
|
39
|
+
}, e.NAME = "generic", e.OPTIONS = {}, e;
|
|
40
|
+
}();
|
|
41
|
+
}));
|
|
42
|
+
//#endregion
|
|
43
|
+
export { r as t };
|
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
import { t as e } from "./chunk-3e0lkp8x.js";
|
|
2
|
+
import { t } from "./Options-V6ag48Dv.js";
|
|
3
|
+
import { s as n } from "./mo-AzagC5AD.js";
|
|
4
|
+
//#region node_modules/mathjax-full/js/core/InputJax.js
|
|
5
|
+
var r = /* @__PURE__ */ e(((e) => {
|
|
6
|
+
Object.defineProperty(e, "__esModule", { value: !0 }), e.AbstractInputJax = void 0;
|
|
7
|
+
var r = t(), i = n();
|
|
8
|
+
e.AbstractInputJax = function() {
|
|
9
|
+
function e(e) {
|
|
10
|
+
e === void 0 && (e = {}), this.adaptor = null, this.mmlFactory = null;
|
|
11
|
+
var t = this.constructor;
|
|
12
|
+
this.options = (0, r.userOptions)((0, r.defaultOptions)({}, t.OPTIONS), e), this.preFilters = new i.FunctionList(), this.postFilters = new i.FunctionList();
|
|
13
|
+
}
|
|
14
|
+
return Object.defineProperty(e.prototype, "name", {
|
|
15
|
+
get: function() {
|
|
16
|
+
return this.constructor.NAME;
|
|
17
|
+
},
|
|
18
|
+
enumerable: !1,
|
|
19
|
+
configurable: !0
|
|
20
|
+
}), e.prototype.setAdaptor = function(e) {
|
|
21
|
+
this.adaptor = e;
|
|
22
|
+
}, e.prototype.setMmlFactory = function(e) {
|
|
23
|
+
this.mmlFactory = e;
|
|
24
|
+
}, e.prototype.initialize = function() {}, e.prototype.reset = function() {}, Object.defineProperty(e.prototype, "processStrings", {
|
|
25
|
+
get: function() {
|
|
26
|
+
return !0;
|
|
27
|
+
},
|
|
28
|
+
enumerable: !1,
|
|
29
|
+
configurable: !0
|
|
30
|
+
}), e.prototype.findMath = function(e, t) {
|
|
31
|
+
return [];
|
|
32
|
+
}, e.prototype.executeFilters = function(e, t, n, r) {
|
|
33
|
+
var i = {
|
|
34
|
+
math: t,
|
|
35
|
+
document: n,
|
|
36
|
+
data: r
|
|
37
|
+
};
|
|
38
|
+
return e.execute(i), i.data;
|
|
39
|
+
}, e.NAME = "generic", e.OPTIONS = {}, e;
|
|
40
|
+
}();
|
|
41
|
+
}));
|
|
42
|
+
//#endregion
|
|
43
|
+
export { r as t };
|
|
@@ -0,0 +1,77 @@
|
|
|
1
|
+
import { t as e } from "./chunk-3e0lkp8x.js";
|
|
2
|
+
//#region node_modules/mathjax-full/js/core/MathItem.js
|
|
3
|
+
var t = /* @__PURE__ */ e(((e) => {
|
|
4
|
+
Object.defineProperty(e, "__esModule", { value: !0 }), e.newState = e.STATE = e.AbstractMathItem = e.protoItem = void 0;
|
|
5
|
+
function t(e, t, n, r, i, a, o) {
|
|
6
|
+
return o === void 0 && (o = null), {
|
|
7
|
+
open: e,
|
|
8
|
+
math: t,
|
|
9
|
+
close: n,
|
|
10
|
+
n: r,
|
|
11
|
+
start: { n: i },
|
|
12
|
+
end: { n: a },
|
|
13
|
+
display: o
|
|
14
|
+
};
|
|
15
|
+
}
|
|
16
|
+
e.protoItem = t, e.AbstractMathItem = function() {
|
|
17
|
+
function t(t, n, r, i, a) {
|
|
18
|
+
r === void 0 && (r = !0), i === void 0 && (i = {
|
|
19
|
+
i: 0,
|
|
20
|
+
n: 0,
|
|
21
|
+
delim: ""
|
|
22
|
+
}), a === void 0 && (a = {
|
|
23
|
+
i: 0,
|
|
24
|
+
n: 0,
|
|
25
|
+
delim: ""
|
|
26
|
+
}), this.root = null, this.typesetRoot = null, this.metrics = {}, this.inputData = {}, this.outputData = {}, this._state = e.STATE.UNPROCESSED, this.math = t, this.inputJax = n, this.display = r, this.start = i, this.end = a, this.root = null, this.typesetRoot = null, this.metrics = {}, this.inputData = {}, this.outputData = {};
|
|
27
|
+
}
|
|
28
|
+
return Object.defineProperty(t.prototype, "isEscaped", {
|
|
29
|
+
get: function() {
|
|
30
|
+
return this.display === null;
|
|
31
|
+
},
|
|
32
|
+
enumerable: !1,
|
|
33
|
+
configurable: !0
|
|
34
|
+
}), t.prototype.render = function(e) {
|
|
35
|
+
e.renderActions.renderMath(this, e);
|
|
36
|
+
}, t.prototype.rerender = function(t, n) {
|
|
37
|
+
n === void 0 && (n = e.STATE.RERENDER), this.state() >= n && this.state(n - 1), t.renderActions.renderMath(this, t, n);
|
|
38
|
+
}, t.prototype.convert = function(t, n) {
|
|
39
|
+
n === void 0 && (n = e.STATE.LAST), t.renderActions.renderConvert(this, t, n);
|
|
40
|
+
}, t.prototype.compile = function(t) {
|
|
41
|
+
this.state() < e.STATE.COMPILED && (this.root = this.inputJax.compile(this, t), this.state(e.STATE.COMPILED));
|
|
42
|
+
}, t.prototype.typeset = function(t) {
|
|
43
|
+
this.state() < e.STATE.TYPESET && (this.typesetRoot = t.outputJax[this.isEscaped ? "escaped" : "typeset"](this, t), this.state(e.STATE.TYPESET));
|
|
44
|
+
}, t.prototype.updateDocument = function(e) {}, t.prototype.removeFromDocument = function(e) {
|
|
45
|
+
e === void 0 && (e = !1);
|
|
46
|
+
}, t.prototype.setMetrics = function(e, t, n, r, i) {
|
|
47
|
+
this.metrics = {
|
|
48
|
+
em: e,
|
|
49
|
+
ex: t,
|
|
50
|
+
containerWidth: n,
|
|
51
|
+
lineWidth: r,
|
|
52
|
+
scale: i
|
|
53
|
+
};
|
|
54
|
+
}, t.prototype.state = function(t, n) {
|
|
55
|
+
return t === void 0 && (t = null), n === void 0 && (n = !1), t != null && (t < e.STATE.INSERTED && this._state >= e.STATE.INSERTED && this.removeFromDocument(n), t < e.STATE.TYPESET && this._state >= e.STATE.TYPESET && (this.outputData = {}), t < e.STATE.COMPILED && this._state >= e.STATE.COMPILED && (this.inputData = {}), this._state = t), this._state;
|
|
56
|
+
}, t.prototype.reset = function(t) {
|
|
57
|
+
t === void 0 && (t = !1), this.state(e.STATE.UNPROCESSED, t);
|
|
58
|
+
}, t;
|
|
59
|
+
}(), e.STATE = {
|
|
60
|
+
UNPROCESSED: 0,
|
|
61
|
+
FINDMATH: 10,
|
|
62
|
+
COMPILED: 20,
|
|
63
|
+
CONVERT: 100,
|
|
64
|
+
METRICS: 110,
|
|
65
|
+
RERENDER: 125,
|
|
66
|
+
TYPESET: 150,
|
|
67
|
+
INSERTED: 200,
|
|
68
|
+
LAST: 1e4
|
|
69
|
+
};
|
|
70
|
+
function n(t, n) {
|
|
71
|
+
if (t in e.STATE) throw Error("State " + t + " already exists");
|
|
72
|
+
e.STATE[t] = n;
|
|
73
|
+
}
|
|
74
|
+
e.newState = n;
|
|
75
|
+
}));
|
|
76
|
+
//#endregion
|
|
77
|
+
export { t };
|
|
@@ -0,0 +1,77 @@
|
|
|
1
|
+
import { t as e } from "./chunk-3e0lkp8x.js";
|
|
2
|
+
//#region node_modules/mathjax-full/js/core/MathItem.js
|
|
3
|
+
var t = /* @__PURE__ */ e(((e) => {
|
|
4
|
+
Object.defineProperty(e, "__esModule", { value: !0 }), e.newState = e.STATE = e.AbstractMathItem = e.protoItem = void 0;
|
|
5
|
+
function t(e, t, n, r, i, a, o) {
|
|
6
|
+
return o === void 0 && (o = null), {
|
|
7
|
+
open: e,
|
|
8
|
+
math: t,
|
|
9
|
+
close: n,
|
|
10
|
+
n: r,
|
|
11
|
+
start: { n: i },
|
|
12
|
+
end: { n: a },
|
|
13
|
+
display: o
|
|
14
|
+
};
|
|
15
|
+
}
|
|
16
|
+
e.protoItem = t, e.AbstractMathItem = function() {
|
|
17
|
+
function t(t, n, r, i, a) {
|
|
18
|
+
r === void 0 && (r = !0), i === void 0 && (i = {
|
|
19
|
+
i: 0,
|
|
20
|
+
n: 0,
|
|
21
|
+
delim: ""
|
|
22
|
+
}), a === void 0 && (a = {
|
|
23
|
+
i: 0,
|
|
24
|
+
n: 0,
|
|
25
|
+
delim: ""
|
|
26
|
+
}), this.root = null, this.typesetRoot = null, this.metrics = {}, this.inputData = {}, this.outputData = {}, this._state = e.STATE.UNPROCESSED, this.math = t, this.inputJax = n, this.display = r, this.start = i, this.end = a, this.root = null, this.typesetRoot = null, this.metrics = {}, this.inputData = {}, this.outputData = {};
|
|
27
|
+
}
|
|
28
|
+
return Object.defineProperty(t.prototype, "isEscaped", {
|
|
29
|
+
get: function() {
|
|
30
|
+
return this.display === null;
|
|
31
|
+
},
|
|
32
|
+
enumerable: !1,
|
|
33
|
+
configurable: !0
|
|
34
|
+
}), t.prototype.render = function(e) {
|
|
35
|
+
e.renderActions.renderMath(this, e);
|
|
36
|
+
}, t.prototype.rerender = function(t, n) {
|
|
37
|
+
n === void 0 && (n = e.STATE.RERENDER), this.state() >= n && this.state(n - 1), t.renderActions.renderMath(this, t, n);
|
|
38
|
+
}, t.prototype.convert = function(t, n) {
|
|
39
|
+
n === void 0 && (n = e.STATE.LAST), t.renderActions.renderConvert(this, t, n);
|
|
40
|
+
}, t.prototype.compile = function(t) {
|
|
41
|
+
this.state() < e.STATE.COMPILED && (this.root = this.inputJax.compile(this, t), this.state(e.STATE.COMPILED));
|
|
42
|
+
}, t.prototype.typeset = function(t) {
|
|
43
|
+
this.state() < e.STATE.TYPESET && (this.typesetRoot = t.outputJax[this.isEscaped ? "escaped" : "typeset"](this, t), this.state(e.STATE.TYPESET));
|
|
44
|
+
}, t.prototype.updateDocument = function(e) {}, t.prototype.removeFromDocument = function(e) {
|
|
45
|
+
e === void 0 && (e = !1);
|
|
46
|
+
}, t.prototype.setMetrics = function(e, t, n, r, i) {
|
|
47
|
+
this.metrics = {
|
|
48
|
+
em: e,
|
|
49
|
+
ex: t,
|
|
50
|
+
containerWidth: n,
|
|
51
|
+
lineWidth: r,
|
|
52
|
+
scale: i
|
|
53
|
+
};
|
|
54
|
+
}, t.prototype.state = function(t, n) {
|
|
55
|
+
return t === void 0 && (t = null), n === void 0 && (n = !1), t != null && (t < e.STATE.INSERTED && this._state >= e.STATE.INSERTED && this.removeFromDocument(n), t < e.STATE.TYPESET && this._state >= e.STATE.TYPESET && (this.outputData = {}), t < e.STATE.COMPILED && this._state >= e.STATE.COMPILED && (this.inputData = {}), this._state = t), this._state;
|
|
56
|
+
}, t.prototype.reset = function(t) {
|
|
57
|
+
t === void 0 && (t = !1), this.state(e.STATE.UNPROCESSED, t);
|
|
58
|
+
}, t;
|
|
59
|
+
}(), e.STATE = {
|
|
60
|
+
UNPROCESSED: 0,
|
|
61
|
+
FINDMATH: 10,
|
|
62
|
+
COMPILED: 20,
|
|
63
|
+
CONVERT: 100,
|
|
64
|
+
METRICS: 110,
|
|
65
|
+
RERENDER: 125,
|
|
66
|
+
TYPESET: 150,
|
|
67
|
+
INSERTED: 200,
|
|
68
|
+
LAST: 1e4
|
|
69
|
+
};
|
|
70
|
+
function n(t, n) {
|
|
71
|
+
if (t in e.STATE) throw Error("State " + t + " already exists");
|
|
72
|
+
e.STATE[t] = n;
|
|
73
|
+
}
|
|
74
|
+
e.newState = n;
|
|
75
|
+
}));
|
|
76
|
+
//#endregion
|
|
77
|
+
export { t };
|
|
@@ -0,0 +1,188 @@
|
|
|
1
|
+
import { t as e } from "./chunk-3e0lkp8x.js";
|
|
2
|
+
//#region node_modules/mathjax-full/js/util/Options.js
|
|
3
|
+
var t = /* @__PURE__ */ e(((e) => {
|
|
4
|
+
var t = e && e.__values || function(e) {
|
|
5
|
+
var t = typeof Symbol == "function" && Symbol.iterator, n = t && e[t], r = 0;
|
|
6
|
+
if (n) return n.call(e);
|
|
7
|
+
if (e && typeof e.length == "number") return { next: function() {
|
|
8
|
+
return e && r >= e.length && (e = void 0), {
|
|
9
|
+
value: e && e[r++],
|
|
10
|
+
done: !e
|
|
11
|
+
};
|
|
12
|
+
} };
|
|
13
|
+
throw TypeError(t ? "Object is not iterable." : "Symbol.iterator is not defined.");
|
|
14
|
+
}, n = e && e.__read || function(e, t) {
|
|
15
|
+
var n = typeof Symbol == "function" && e[Symbol.iterator];
|
|
16
|
+
if (!n) return e;
|
|
17
|
+
var r = n.call(e), i, a = [], o;
|
|
18
|
+
try {
|
|
19
|
+
for (; (t === void 0 || t-- > 0) && !(i = r.next()).done;) a.push(i.value);
|
|
20
|
+
} catch (e) {
|
|
21
|
+
o = { error: e };
|
|
22
|
+
} finally {
|
|
23
|
+
try {
|
|
24
|
+
i && !i.done && (n = r.return) && n.call(r);
|
|
25
|
+
} finally {
|
|
26
|
+
if (o) throw o.error;
|
|
27
|
+
}
|
|
28
|
+
}
|
|
29
|
+
return a;
|
|
30
|
+
}, r = e && e.__spreadArray || function(e, t, n) {
|
|
31
|
+
if (n || arguments.length === 2) for (var r = 0, i = t.length, a; r < i; r++) (a || !(r in t)) && (a ||= Array.prototype.slice.call(t, 0, r), a[r] = t[r]);
|
|
32
|
+
return e.concat(a || Array.prototype.slice.call(t));
|
|
33
|
+
};
|
|
34
|
+
Object.defineProperty(e, "__esModule", { value: !0 }), e.lookup = e.separateOptions = e.selectOptionsFromKeys = e.selectOptions = e.userOptions = e.defaultOptions = e.insert = e.copy = e.keys = e.makeArray = e.expandable = e.Expandable = e.OPTIONS = e.REMOVE = e.APPEND = e.isObject = void 0;
|
|
35
|
+
var i = {}.constructor;
|
|
36
|
+
function a(e) {
|
|
37
|
+
return typeof e == "object" && !!e && (e.constructor === i || e.constructor === o);
|
|
38
|
+
}
|
|
39
|
+
e.isObject = a, e.APPEND = "[+]", e.REMOVE = "[-]", e.OPTIONS = {
|
|
40
|
+
invalidOption: "warn",
|
|
41
|
+
optionError: function(t, n) {
|
|
42
|
+
if (e.OPTIONS.invalidOption === "fatal") throw Error(t);
|
|
43
|
+
console.warn("MathJax: " + t);
|
|
44
|
+
}
|
|
45
|
+
};
|
|
46
|
+
var o = function() {
|
|
47
|
+
function e() {}
|
|
48
|
+
return e;
|
|
49
|
+
}();
|
|
50
|
+
e.Expandable = o;
|
|
51
|
+
function s(e) {
|
|
52
|
+
return Object.assign(Object.create(o.prototype), e);
|
|
53
|
+
}
|
|
54
|
+
e.expandable = s;
|
|
55
|
+
function c(e) {
|
|
56
|
+
return Array.isArray(e) ? e : [e];
|
|
57
|
+
}
|
|
58
|
+
e.makeArray = c;
|
|
59
|
+
function l(e) {
|
|
60
|
+
return e ? Object.keys(e).concat(Object.getOwnPropertySymbols(e)) : [];
|
|
61
|
+
}
|
|
62
|
+
e.keys = l;
|
|
63
|
+
function u(e) {
|
|
64
|
+
var n, r, i = {};
|
|
65
|
+
try {
|
|
66
|
+
for (var c = t(l(e)), f = c.next(); !f.done; f = c.next()) {
|
|
67
|
+
var p = f.value, m = Object.getOwnPropertyDescriptor(e, p), h = m.value;
|
|
68
|
+
Array.isArray(h) ? m.value = d([], h, !1) : a(h) && (m.value = u(h)), m.enumerable && (i[p] = m);
|
|
69
|
+
}
|
|
70
|
+
} catch (e) {
|
|
71
|
+
n = { error: e };
|
|
72
|
+
} finally {
|
|
73
|
+
try {
|
|
74
|
+
f && !f.done && (r = c.return) && r.call(c);
|
|
75
|
+
} finally {
|
|
76
|
+
if (n) throw n.error;
|
|
77
|
+
}
|
|
78
|
+
}
|
|
79
|
+
return Object.defineProperties(e.constructor === o ? s({}) : {}, i);
|
|
80
|
+
}
|
|
81
|
+
e.copy = u;
|
|
82
|
+
function d(i, s, c) {
|
|
83
|
+
var f, p;
|
|
84
|
+
c === void 0 && (c = !0);
|
|
85
|
+
var m = function(t) {
|
|
86
|
+
if (c && i[t] === void 0 && i.constructor !== o) return typeof t == "symbol" && (t = t.toString()), e.OPTIONS.optionError(`Invalid option "${t}" (no default value).`, t), "continue";
|
|
87
|
+
var f = s[t], p = i[t];
|
|
88
|
+
if (a(f) && p !== null && (typeof p == "object" || typeof p == "function")) {
|
|
89
|
+
var m = l(f);
|
|
90
|
+
Array.isArray(p) && (m.length === 1 && (m[0] === e.APPEND || m[0] === e.REMOVE) && Array.isArray(f[m[0]]) || m.length === 2 && m.sort().join(",") === e.APPEND + "," + e.REMOVE && Array.isArray(f[e.APPEND]) && Array.isArray(f[e.REMOVE])) ? (f[e.REMOVE] && (p = i[t] = p.filter(function(t) {
|
|
91
|
+
return f[e.REMOVE].indexOf(t) < 0;
|
|
92
|
+
})), f[e.APPEND] && (i[t] = r(r([], n(p), !1), n(f[e.APPEND]), !1))) : d(p, f, c);
|
|
93
|
+
} else Array.isArray(f) ? (i[t] = [], d(i[t], f, !1)) : a(f) ? i[t] = u(f) : i[t] = f;
|
|
94
|
+
};
|
|
95
|
+
try {
|
|
96
|
+
for (var h = t(l(s)), g = h.next(); !g.done; g = h.next()) {
|
|
97
|
+
var _ = g.value;
|
|
98
|
+
m(_);
|
|
99
|
+
}
|
|
100
|
+
} catch (e) {
|
|
101
|
+
f = { error: e };
|
|
102
|
+
} finally {
|
|
103
|
+
try {
|
|
104
|
+
g && !g.done && (p = h.return) && p.call(h);
|
|
105
|
+
} finally {
|
|
106
|
+
if (f) throw f.error;
|
|
107
|
+
}
|
|
108
|
+
}
|
|
109
|
+
return i;
|
|
110
|
+
}
|
|
111
|
+
e.insert = d;
|
|
112
|
+
function f(e) {
|
|
113
|
+
return [...arguments].slice(1).forEach(function(t) {
|
|
114
|
+
return d(e, t, !1);
|
|
115
|
+
}), e;
|
|
116
|
+
}
|
|
117
|
+
e.defaultOptions = f;
|
|
118
|
+
function p(e) {
|
|
119
|
+
return [...arguments].slice(1).forEach(function(t) {
|
|
120
|
+
return d(e, t, !0);
|
|
121
|
+
}), e;
|
|
122
|
+
}
|
|
123
|
+
e.userOptions = p;
|
|
124
|
+
function m(e) {
|
|
125
|
+
for (var n, r, i = [], a = 1; a < arguments.length; a++) i[a - 1] = arguments[a];
|
|
126
|
+
var o = {};
|
|
127
|
+
try {
|
|
128
|
+
for (var s = t(i), c = s.next(); !c.done; c = s.next()) {
|
|
129
|
+
var l = c.value;
|
|
130
|
+
e.hasOwnProperty(l) && (o[l] = e[l]);
|
|
131
|
+
}
|
|
132
|
+
} catch (e) {
|
|
133
|
+
n = { error: e };
|
|
134
|
+
} finally {
|
|
135
|
+
try {
|
|
136
|
+
c && !c.done && (r = s.return) && r.call(s);
|
|
137
|
+
} finally {
|
|
138
|
+
if (n) throw n.error;
|
|
139
|
+
}
|
|
140
|
+
}
|
|
141
|
+
return o;
|
|
142
|
+
}
|
|
143
|
+
e.selectOptions = m;
|
|
144
|
+
function h(e, t) {
|
|
145
|
+
return m.apply(void 0, r([e], n(Object.keys(t)), !1));
|
|
146
|
+
}
|
|
147
|
+
e.selectOptionsFromKeys = h;
|
|
148
|
+
function g(e) {
|
|
149
|
+
for (var n, r, i, a, o = [], s = 1; s < arguments.length; s++) o[s - 1] = arguments[s];
|
|
150
|
+
var c = [];
|
|
151
|
+
try {
|
|
152
|
+
for (var l = t(o), u = l.next(); !u.done; u = l.next()) {
|
|
153
|
+
var d = u.value, f = {}, p = {};
|
|
154
|
+
try {
|
|
155
|
+
for (var m = (i = void 0, t(Object.keys(e || {}))), h = m.next(); !h.done; h = m.next()) {
|
|
156
|
+
var g = h.value;
|
|
157
|
+
(d[g] === void 0 ? p : f)[g] = e[g];
|
|
158
|
+
}
|
|
159
|
+
} catch (e) {
|
|
160
|
+
i = { error: e };
|
|
161
|
+
} finally {
|
|
162
|
+
try {
|
|
163
|
+
h && !h.done && (a = m.return) && a.call(m);
|
|
164
|
+
} finally {
|
|
165
|
+
if (i) throw i.error;
|
|
166
|
+
}
|
|
167
|
+
}
|
|
168
|
+
c.push(f), e = p;
|
|
169
|
+
}
|
|
170
|
+
} catch (e) {
|
|
171
|
+
n = { error: e };
|
|
172
|
+
} finally {
|
|
173
|
+
try {
|
|
174
|
+
u && !u.done && (r = l.return) && r.call(l);
|
|
175
|
+
} finally {
|
|
176
|
+
if (n) throw n.error;
|
|
177
|
+
}
|
|
178
|
+
}
|
|
179
|
+
return c.unshift(e), c;
|
|
180
|
+
}
|
|
181
|
+
e.separateOptions = g;
|
|
182
|
+
function _(e, t, n) {
|
|
183
|
+
return n === void 0 && (n = null), t.hasOwnProperty(e) ? t[e] : n;
|
|
184
|
+
}
|
|
185
|
+
e.lookup = _;
|
|
186
|
+
}));
|
|
187
|
+
//#endregion
|
|
188
|
+
export { t };
|
|
@@ -0,0 +1,188 @@
|
|
|
1
|
+
import { t as e } from "./chunk-3e0lkp8x.js";
|
|
2
|
+
//#region node_modules/mathjax-full/js/util/Options.js
|
|
3
|
+
var t = /* @__PURE__ */ e(((e) => {
|
|
4
|
+
var t = e && e.__values || function(e) {
|
|
5
|
+
var t = typeof Symbol == "function" && Symbol.iterator, n = t && e[t], r = 0;
|
|
6
|
+
if (n) return n.call(e);
|
|
7
|
+
if (e && typeof e.length == "number") return { next: function() {
|
|
8
|
+
return e && r >= e.length && (e = void 0), {
|
|
9
|
+
value: e && e[r++],
|
|
10
|
+
done: !e
|
|
11
|
+
};
|
|
12
|
+
} };
|
|
13
|
+
throw TypeError(t ? "Object is not iterable." : "Symbol.iterator is not defined.");
|
|
14
|
+
}, n = e && e.__read || function(e, t) {
|
|
15
|
+
var n = typeof Symbol == "function" && e[Symbol.iterator];
|
|
16
|
+
if (!n) return e;
|
|
17
|
+
var r = n.call(e), i, a = [], o;
|
|
18
|
+
try {
|
|
19
|
+
for (; (t === void 0 || t-- > 0) && !(i = r.next()).done;) a.push(i.value);
|
|
20
|
+
} catch (e) {
|
|
21
|
+
o = { error: e };
|
|
22
|
+
} finally {
|
|
23
|
+
try {
|
|
24
|
+
i && !i.done && (n = r.return) && n.call(r);
|
|
25
|
+
} finally {
|
|
26
|
+
if (o) throw o.error;
|
|
27
|
+
}
|
|
28
|
+
}
|
|
29
|
+
return a;
|
|
30
|
+
}, r = e && e.__spreadArray || function(e, t, n) {
|
|
31
|
+
if (n || arguments.length === 2) for (var r = 0, i = t.length, a; r < i; r++) (a || !(r in t)) && (a ||= Array.prototype.slice.call(t, 0, r), a[r] = t[r]);
|
|
32
|
+
return e.concat(a || Array.prototype.slice.call(t));
|
|
33
|
+
};
|
|
34
|
+
Object.defineProperty(e, "__esModule", { value: !0 }), e.lookup = e.separateOptions = e.selectOptionsFromKeys = e.selectOptions = e.userOptions = e.defaultOptions = e.insert = e.copy = e.keys = e.makeArray = e.expandable = e.Expandable = e.OPTIONS = e.REMOVE = e.APPEND = e.isObject = void 0;
|
|
35
|
+
var i = {}.constructor;
|
|
36
|
+
function a(e) {
|
|
37
|
+
return typeof e == "object" && !!e && (e.constructor === i || e.constructor === o);
|
|
38
|
+
}
|
|
39
|
+
e.isObject = a, e.APPEND = "[+]", e.REMOVE = "[-]", e.OPTIONS = {
|
|
40
|
+
invalidOption: "warn",
|
|
41
|
+
optionError: function(t, n) {
|
|
42
|
+
if (e.OPTIONS.invalidOption === "fatal") throw Error(t);
|
|
43
|
+
console.warn("MathJax: " + t);
|
|
44
|
+
}
|
|
45
|
+
};
|
|
46
|
+
var o = function() {
|
|
47
|
+
function e() {}
|
|
48
|
+
return e;
|
|
49
|
+
}();
|
|
50
|
+
e.Expandable = o;
|
|
51
|
+
function s(e) {
|
|
52
|
+
return Object.assign(Object.create(o.prototype), e);
|
|
53
|
+
}
|
|
54
|
+
e.expandable = s;
|
|
55
|
+
function c(e) {
|
|
56
|
+
return Array.isArray(e) ? e : [e];
|
|
57
|
+
}
|
|
58
|
+
e.makeArray = c;
|
|
59
|
+
function l(e) {
|
|
60
|
+
return e ? Object.keys(e).concat(Object.getOwnPropertySymbols(e)) : [];
|
|
61
|
+
}
|
|
62
|
+
e.keys = l;
|
|
63
|
+
function u(e) {
|
|
64
|
+
var n, r, i = {};
|
|
65
|
+
try {
|
|
66
|
+
for (var c = t(l(e)), f = c.next(); !f.done; f = c.next()) {
|
|
67
|
+
var p = f.value, m = Object.getOwnPropertyDescriptor(e, p), h = m.value;
|
|
68
|
+
Array.isArray(h) ? m.value = d([], h, !1) : a(h) && (m.value = u(h)), m.enumerable && (i[p] = m);
|
|
69
|
+
}
|
|
70
|
+
} catch (e) {
|
|
71
|
+
n = { error: e };
|
|
72
|
+
} finally {
|
|
73
|
+
try {
|
|
74
|
+
f && !f.done && (r = c.return) && r.call(c);
|
|
75
|
+
} finally {
|
|
76
|
+
if (n) throw n.error;
|
|
77
|
+
}
|
|
78
|
+
}
|
|
79
|
+
return Object.defineProperties(e.constructor === o ? s({}) : {}, i);
|
|
80
|
+
}
|
|
81
|
+
e.copy = u;
|
|
82
|
+
function d(i, s, c) {
|
|
83
|
+
var f, p;
|
|
84
|
+
c === void 0 && (c = !0);
|
|
85
|
+
var m = function(t) {
|
|
86
|
+
if (c && i[t] === void 0 && i.constructor !== o) return typeof t == "symbol" && (t = t.toString()), e.OPTIONS.optionError(`Invalid option "${t}" (no default value).`, t), "continue";
|
|
87
|
+
var f = s[t], p = i[t];
|
|
88
|
+
if (a(f) && p !== null && (typeof p == "object" || typeof p == "function")) {
|
|
89
|
+
var m = l(f);
|
|
90
|
+
Array.isArray(p) && (m.length === 1 && (m[0] === e.APPEND || m[0] === e.REMOVE) && Array.isArray(f[m[0]]) || m.length === 2 && m.sort().join(",") === e.APPEND + "," + e.REMOVE && Array.isArray(f[e.APPEND]) && Array.isArray(f[e.REMOVE])) ? (f[e.REMOVE] && (p = i[t] = p.filter(function(t) {
|
|
91
|
+
return f[e.REMOVE].indexOf(t) < 0;
|
|
92
|
+
})), f[e.APPEND] && (i[t] = r(r([], n(p), !1), n(f[e.APPEND]), !1))) : d(p, f, c);
|
|
93
|
+
} else Array.isArray(f) ? (i[t] = [], d(i[t], f, !1)) : a(f) ? i[t] = u(f) : i[t] = f;
|
|
94
|
+
};
|
|
95
|
+
try {
|
|
96
|
+
for (var h = t(l(s)), g = h.next(); !g.done; g = h.next()) {
|
|
97
|
+
var _ = g.value;
|
|
98
|
+
m(_);
|
|
99
|
+
}
|
|
100
|
+
} catch (e) {
|
|
101
|
+
f = { error: e };
|
|
102
|
+
} finally {
|
|
103
|
+
try {
|
|
104
|
+
g && !g.done && (p = h.return) && p.call(h);
|
|
105
|
+
} finally {
|
|
106
|
+
if (f) throw f.error;
|
|
107
|
+
}
|
|
108
|
+
}
|
|
109
|
+
return i;
|
|
110
|
+
}
|
|
111
|
+
e.insert = d;
|
|
112
|
+
function f(e) {
|
|
113
|
+
return [...arguments].slice(1).forEach(function(t) {
|
|
114
|
+
return d(e, t, !1);
|
|
115
|
+
}), e;
|
|
116
|
+
}
|
|
117
|
+
e.defaultOptions = f;
|
|
118
|
+
function p(e) {
|
|
119
|
+
return [...arguments].slice(1).forEach(function(t) {
|
|
120
|
+
return d(e, t, !0);
|
|
121
|
+
}), e;
|
|
122
|
+
}
|
|
123
|
+
e.userOptions = p;
|
|
124
|
+
function m(e) {
|
|
125
|
+
for (var n, r, i = [], a = 1; a < arguments.length; a++) i[a - 1] = arguments[a];
|
|
126
|
+
var o = {};
|
|
127
|
+
try {
|
|
128
|
+
for (var s = t(i), c = s.next(); !c.done; c = s.next()) {
|
|
129
|
+
var l = c.value;
|
|
130
|
+
e.hasOwnProperty(l) && (o[l] = e[l]);
|
|
131
|
+
}
|
|
132
|
+
} catch (e) {
|
|
133
|
+
n = { error: e };
|
|
134
|
+
} finally {
|
|
135
|
+
try {
|
|
136
|
+
c && !c.done && (r = s.return) && r.call(s);
|
|
137
|
+
} finally {
|
|
138
|
+
if (n) throw n.error;
|
|
139
|
+
}
|
|
140
|
+
}
|
|
141
|
+
return o;
|
|
142
|
+
}
|
|
143
|
+
e.selectOptions = m;
|
|
144
|
+
function h(e, t) {
|
|
145
|
+
return m.apply(void 0, r([e], n(Object.keys(t)), !1));
|
|
146
|
+
}
|
|
147
|
+
e.selectOptionsFromKeys = h;
|
|
148
|
+
function g(e) {
|
|
149
|
+
for (var n, r, i, a, o = [], s = 1; s < arguments.length; s++) o[s - 1] = arguments[s];
|
|
150
|
+
var c = [];
|
|
151
|
+
try {
|
|
152
|
+
for (var l = t(o), u = l.next(); !u.done; u = l.next()) {
|
|
153
|
+
var d = u.value, f = {}, p = {};
|
|
154
|
+
try {
|
|
155
|
+
for (var m = (i = void 0, t(Object.keys(e || {}))), h = m.next(); !h.done; h = m.next()) {
|
|
156
|
+
var g = h.value;
|
|
157
|
+
(d[g] === void 0 ? p : f)[g] = e[g];
|
|
158
|
+
}
|
|
159
|
+
} catch (e) {
|
|
160
|
+
i = { error: e };
|
|
161
|
+
} finally {
|
|
162
|
+
try {
|
|
163
|
+
h && !h.done && (a = m.return) && a.call(m);
|
|
164
|
+
} finally {
|
|
165
|
+
if (i) throw i.error;
|
|
166
|
+
}
|
|
167
|
+
}
|
|
168
|
+
c.push(f), e = p;
|
|
169
|
+
}
|
|
170
|
+
} catch (e) {
|
|
171
|
+
n = { error: e };
|
|
172
|
+
} finally {
|
|
173
|
+
try {
|
|
174
|
+
u && !u.done && (r = l.return) && r.call(l);
|
|
175
|
+
} finally {
|
|
176
|
+
if (n) throw n.error;
|
|
177
|
+
}
|
|
178
|
+
}
|
|
179
|
+
return c.unshift(e), c;
|
|
180
|
+
}
|
|
181
|
+
e.separateOptions = g;
|
|
182
|
+
function _(e, t, n) {
|
|
183
|
+
return n === void 0 && (n = null), t.hasOwnProperty(e) ? t[e] : n;
|
|
184
|
+
}
|
|
185
|
+
e.lookup = _;
|
|
186
|
+
}));
|
|
187
|
+
//#endregion
|
|
188
|
+
export { t };
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
import { t as e } from "./chunk-3e0lkp8x.js";
|
|
2
|
+
//#region node_modules/mathjax-full/js/util/PrioritizedList.js
|
|
3
|
+
var t = /* @__PURE__ */ e(((e) => {
|
|
4
|
+
Object.defineProperty(e, "__esModule", { value: !0 }), e.PrioritizedList = void 0, e.PrioritizedList = function() {
|
|
5
|
+
function e() {
|
|
6
|
+
this.items = [], this.items = [];
|
|
7
|
+
}
|
|
8
|
+
return e.prototype[Symbol.iterator] = function() {
|
|
9
|
+
var e = 0, t = this.items;
|
|
10
|
+
return { next: function() {
|
|
11
|
+
return {
|
|
12
|
+
value: t[e++],
|
|
13
|
+
done: e > t.length
|
|
14
|
+
};
|
|
15
|
+
} };
|
|
16
|
+
}, e.prototype.add = function(t, n) {
|
|
17
|
+
n === void 0 && (n = e.DEFAULTPRIORITY);
|
|
18
|
+
var r = this.items.length;
|
|
19
|
+
do
|
|
20
|
+
r--;
|
|
21
|
+
while (r >= 0 && n < this.items[r].priority);
|
|
22
|
+
return this.items.splice(r + 1, 0, {
|
|
23
|
+
item: t,
|
|
24
|
+
priority: n
|
|
25
|
+
}), t;
|
|
26
|
+
}, e.prototype.remove = function(e) {
|
|
27
|
+
var t = this.items.length;
|
|
28
|
+
do
|
|
29
|
+
t--;
|
|
30
|
+
while (t >= 0 && this.items[t].item !== e);
|
|
31
|
+
t >= 0 && this.items.splice(t, 1);
|
|
32
|
+
}, e.DEFAULTPRIORITY = 5, e;
|
|
33
|
+
}();
|
|
34
|
+
}));
|
|
35
|
+
//#endregion
|
|
36
|
+
export { t };
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
import { t as e } from "./chunk-3e0lkp8x.js";
|
|
2
|
+
//#region node_modules/mathjax-full/js/util/PrioritizedList.js
|
|
3
|
+
var t = /* @__PURE__ */ e(((e) => {
|
|
4
|
+
Object.defineProperty(e, "__esModule", { value: !0 }), e.PrioritizedList = void 0, e.PrioritizedList = function() {
|
|
5
|
+
function e() {
|
|
6
|
+
this.items = [], this.items = [];
|
|
7
|
+
}
|
|
8
|
+
return e.prototype[Symbol.iterator] = function() {
|
|
9
|
+
var e = 0, t = this.items;
|
|
10
|
+
return { next: function() {
|
|
11
|
+
return {
|
|
12
|
+
value: t[e++],
|
|
13
|
+
done: e > t.length
|
|
14
|
+
};
|
|
15
|
+
} };
|
|
16
|
+
}, e.prototype.add = function(t, n) {
|
|
17
|
+
n === void 0 && (n = e.DEFAULTPRIORITY);
|
|
18
|
+
var r = this.items.length;
|
|
19
|
+
do
|
|
20
|
+
r--;
|
|
21
|
+
while (r >= 0 && n < this.items[r].priority);
|
|
22
|
+
return this.items.splice(r + 1, 0, {
|
|
23
|
+
item: t,
|
|
24
|
+
priority: n
|
|
25
|
+
}), t;
|
|
26
|
+
}, e.prototype.remove = function(e) {
|
|
27
|
+
var t = this.items.length;
|
|
28
|
+
do
|
|
29
|
+
t--;
|
|
30
|
+
while (t >= 0 && this.items[t].item !== e);
|
|
31
|
+
t >= 0 && this.items.splice(t, 1);
|
|
32
|
+
}, e.DEFAULTPRIORITY = 5, e;
|
|
33
|
+
}();
|
|
34
|
+
}));
|
|
35
|
+
//#endregion
|
|
36
|
+
export { t };
|