@pie-element/explicit-constructed-response 7.3.2-next.47 → 7.3.2-next.56
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/configure/package.json +1 -1
- package/controller/package.json +1 -1
- package/module/configure.js +1 -1
- package/module/element.js +301 -204
- package/module/manifest.json +1 -1
- package/module/print.js +301 -204
- package/package.json +3 -3
package/configure/package.json
CHANGED
|
@@ -8,7 +8,7 @@
|
|
|
8
8
|
"@material-ui/core": "^3.9.2",
|
|
9
9
|
"@material-ui/icons": "^3.0.1",
|
|
10
10
|
"@pie-framework/pie-configure-events": "^1.3.0",
|
|
11
|
-
"@pie-lib/pie-toolbox": "2.9.
|
|
11
|
+
"@pie-lib/pie-toolbox": "2.9.1",
|
|
12
12
|
"classnames": "^2.2.6",
|
|
13
13
|
"debug": "^3.1.0",
|
|
14
14
|
"lodash": "^4.17.15",
|
package/controller/package.json
CHANGED
package/module/configure.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import {_dll_react, _dll_prop_types, _dll_classnames, _dll_react_dom, _dll_lodash, _dll_debug} from "../../../@pie-lib/pie-toolbox-math-rendering-module@3.3.0/module/index.js";
|
|
2
|
-
import {_dll_pie_lib__pie_toolbox_editable_html, _dll_pie_lib__pie_toolbox_config_ui} from "../../../@pie-lib/pie-toolbox-module@5.
|
|
2
|
+
import {_dll_pie_lib__pie_toolbox_editable_html, _dll_pie_lib__pie_toolbox_config_ui} from "../../../@pie-lib/pie-toolbox-module@5.10.0/module/index.js";
|
|
3
3
|
var commonjsGlobal = typeof globalThis !== 'undefined' ? globalThis : typeof window !== 'undefined' ? window : typeof global !== 'undefined' ? global : typeof self !== 'undefined' ? self : {};
|
|
4
4
|
function getDefaultExportFromCjs(x) {
|
|
5
5
|
return x && x.__esModule && Object.prototype.hasOwnProperty.call(x, 'default') ? x['default'] : x;
|
package/module/element.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import {_dll_react, _dll_prop_types, _dll_debug, _dll_lodash, _dll_react_dom_server, _dll_classnames, _dll_react_dom, _dll_pie_framework__mathquill, _dll_pie_lib__pie_toolbox_math_rendering} from "../../../@pie-lib/pie-toolbox-math-rendering-module@3.3.0/module/index.js";
|
|
2
|
-
import {_dll_pie_lib__pie_toolbox_correct_answer_toggle, _dll_pie_lib__pie_toolbox_render_ui} from "../../../@pie-lib/pie-toolbox-module@5.
|
|
2
|
+
import {_dll_pie_lib__pie_toolbox_correct_answer_toggle, _dll_pie_lib__pie_toolbox_render_ui} from "../../../@pie-lib/pie-toolbox-module@5.10.0/module/index.js";
|
|
3
3
|
function _mergeNamespaces(n, m) {
|
|
4
4
|
m.forEach(function (e) {
|
|
5
5
|
e && typeof e !== 'string' && !Array.isArray(e) && Object.keys(e).forEach(function (k) {
|
|
@@ -7198,7 +7198,7 @@ function quoteString(value) {
|
|
|
7198
7198
|
function has$1(collection, key) {
|
|
7199
7199
|
return isImmutable(collection) ? collection.has(key) : isDataStructure(collection) && hasOwnProperty$2.call(collection, key);
|
|
7200
7200
|
}
|
|
7201
|
-
function get$
|
|
7201
|
+
function get$3(collection, key, notSetValue) {
|
|
7202
7202
|
return isImmutable(collection) ? collection.get(key, notSetValue) : !has$1(collection, key) ? notSetValue : typeof collection.get === 'function' ? collection.get(key) : collection[key];
|
|
7203
7203
|
}
|
|
7204
7204
|
function shallowCopy(from) {
|
|
@@ -7270,7 +7270,7 @@ function updateInDeeply(inImmutable, existing, keyPath, i, notSetValue, updater)
|
|
|
7270
7270
|
throw new TypeError('Cannot update within non-data-structure value in path [' + keyPath.slice(0, i).map(quoteString) + ']: ' + existing);
|
|
7271
7271
|
}
|
|
7272
7272
|
var key = keyPath[i];
|
|
7273
|
-
var nextExisting = wasNotSet ? NOT_SET : get$
|
|
7273
|
+
var nextExisting = wasNotSet ? NOT_SET : get$3(existing, key, NOT_SET);
|
|
7274
7274
|
var nextUpdated = updateInDeeply(nextExisting === NOT_SET ? inImmutable : isImmutable(nextExisting), nextExisting, keyPath, i + 1, notSetValue, updater);
|
|
7275
7275
|
return nextUpdated === nextExisting ? existing : nextUpdated === NOT_SET ? remove(existing, key) : set$h(wasNotSet ? inImmutable ? emptyMap() : {} : existing, key, nextUpdated);
|
|
7276
7276
|
}
|
|
@@ -9223,7 +9223,7 @@ function getIn$1(collection, searchKeyPath, notSetValue) {
|
|
|
9223
9223
|
var keyPath = coerceKeyPath(searchKeyPath);
|
|
9224
9224
|
var i = 0;
|
|
9225
9225
|
while (i !== keyPath.length) {
|
|
9226
|
-
collection = get$
|
|
9226
|
+
collection = get$3(collection, keyPath[i++], NOT_SET);
|
|
9227
9227
|
if (collection === NOT_SET) {
|
|
9228
9228
|
return notSetValue;
|
|
9229
9229
|
}
|
|
@@ -10099,7 +10099,7 @@ var Immutable$1 = {
|
|
|
10099
10099
|
isSet: isSet,
|
|
10100
10100
|
isOrderedSet: isOrderedSet,
|
|
10101
10101
|
isRecord: isRecord,
|
|
10102
|
-
get: get$
|
|
10102
|
+
get: get$3,
|
|
10103
10103
|
getIn: getIn$1,
|
|
10104
10104
|
has: has$1,
|
|
10105
10105
|
hasIn: hasIn$1,
|
|
@@ -10131,7 +10131,7 @@ var immutable_es = Object.freeze({
|
|
|
10131
10131
|
Set: Set$1,
|
|
10132
10132
|
Stack: Stack$2,
|
|
10133
10133
|
fromJS: fromJS,
|
|
10134
|
-
get: get$
|
|
10134
|
+
get: get$3,
|
|
10135
10135
|
getIn: getIn$1,
|
|
10136
10136
|
has: has$1,
|
|
10137
10137
|
hasIn: hasIn$1,
|
|
@@ -19519,6 +19519,45 @@ getDefaultExportFromCjs(nonIterableSpread.exports);
|
|
|
19519
19519
|
(module.exports = _toConsumableArray, module.exports.__esModule = true, module.exports["default"] = module.exports);
|
|
19520
19520
|
})(toConsumableArray$1);
|
|
19521
19521
|
getDefaultExportFromCjs(toConsumableArray$1.exports);
|
|
19522
|
+
var get$2 = {
|
|
19523
|
+
exports: {}
|
|
19524
|
+
};
|
|
19525
|
+
var superPropBase = {
|
|
19526
|
+
exports: {}
|
|
19527
|
+
};
|
|
19528
|
+
(function (module) {
|
|
19529
|
+
var getPrototypeOf = getPrototypeOf$2.exports;
|
|
19530
|
+
function _superPropBase(object, property) {
|
|
19531
|
+
while (!Object.prototype.hasOwnProperty.call(object, property)) {
|
|
19532
|
+
object = getPrototypeOf(object);
|
|
19533
|
+
if (object === null) break;
|
|
19534
|
+
}
|
|
19535
|
+
return object;
|
|
19536
|
+
}
|
|
19537
|
+
(module.exports = _superPropBase, module.exports.__esModule = true, module.exports["default"] = module.exports);
|
|
19538
|
+
})(superPropBase);
|
|
19539
|
+
getDefaultExportFromCjs(superPropBase.exports);
|
|
19540
|
+
(function (module) {
|
|
19541
|
+
var superPropBase$1 = superPropBase.exports;
|
|
19542
|
+
function _get() {
|
|
19543
|
+
if (typeof Reflect !== "undefined" && Reflect.get) {
|
|
19544
|
+
(module.exports = _get = Reflect.get, module.exports.__esModule = true, module.exports["default"] = module.exports);
|
|
19545
|
+
} else {
|
|
19546
|
+
(module.exports = _get = function _get(target, property, receiver) {
|
|
19547
|
+
var base = superPropBase$1(target, property);
|
|
19548
|
+
if (!base) return;
|
|
19549
|
+
var desc = Object.getOwnPropertyDescriptor(base, property);
|
|
19550
|
+
if (desc.get) {
|
|
19551
|
+
return desc.get.call(arguments.length < 3 ? target : receiver);
|
|
19552
|
+
}
|
|
19553
|
+
return desc.value;
|
|
19554
|
+
}, module.exports.__esModule = true, module.exports["default"] = module.exports);
|
|
19555
|
+
}
|
|
19556
|
+
return _get.apply(this, arguments);
|
|
19557
|
+
}
|
|
19558
|
+
(module.exports = _get, module.exports.__esModule = true, module.exports["default"] = module.exports);
|
|
19559
|
+
})(get$2);
|
|
19560
|
+
getDefaultExportFromCjs(get$2.exports);
|
|
19522
19561
|
var mathjax = {};
|
|
19523
19562
|
var version = {};
|
|
19524
19563
|
Object.defineProperty(version, "__esModule", {
|
|
@@ -49118,10 +49157,198 @@ function MenuHandler(handler) {
|
|
|
49118
49157
|
return handler;
|
|
49119
49158
|
}
|
|
49120
49159
|
MenuHandler$1.MenuHandler = MenuHandler;
|
|
49160
|
+
var FindMathML$1 = {};
|
|
49161
|
+
var FindMath = {};
|
|
49162
|
+
Object.defineProperty(FindMath, "__esModule", {
|
|
49163
|
+
value: true
|
|
49164
|
+
});
|
|
49165
|
+
FindMath.AbstractFindMath = void 0;
|
|
49166
|
+
var Options_js_1$d = Options$2;
|
|
49167
|
+
var AbstractFindMath = (function () {
|
|
49168
|
+
function AbstractFindMath(options) {
|
|
49169
|
+
var CLASS = this.constructor;
|
|
49170
|
+
this.options = (0, Options_js_1$d.userOptions)((0, Options_js_1$d.defaultOptions)({}, CLASS.OPTIONS), options);
|
|
49171
|
+
}
|
|
49172
|
+
AbstractFindMath.OPTIONS = {};
|
|
49173
|
+
return AbstractFindMath;
|
|
49174
|
+
})();
|
|
49175
|
+
FindMath.AbstractFindMath = AbstractFindMath;
|
|
49176
|
+
var __extends$1K = commonjsGlobal && commonjsGlobal.__extends || (function () {
|
|
49177
|
+
var extendStatics = function (d, b) {
|
|
49178
|
+
extendStatics = Object.setPrototypeOf || ({
|
|
49179
|
+
__proto__: []
|
|
49180
|
+
}) instanceof Array && (function (d, b) {
|
|
49181
|
+
d.__proto__ = b;
|
|
49182
|
+
}) || (function (d, b) {
|
|
49183
|
+
for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p];
|
|
49184
|
+
});
|
|
49185
|
+
return extendStatics(d, b);
|
|
49186
|
+
};
|
|
49187
|
+
return function (d, b) {
|
|
49188
|
+
if (typeof b !== "function" && b !== null) throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
|
|
49189
|
+
extendStatics(d, b);
|
|
49190
|
+
function __() {
|
|
49191
|
+
this.constructor = d;
|
|
49192
|
+
}
|
|
49193
|
+
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
|
|
49194
|
+
};
|
|
49195
|
+
})();
|
|
49196
|
+
var __values$G = commonjsGlobal && commonjsGlobal.__values || (function (o) {
|
|
49197
|
+
var s = typeof Symbol === "function" && Symbol.iterator, m = s && o[s], i = 0;
|
|
49198
|
+
if (m) return m.call(o);
|
|
49199
|
+
if (o && typeof o.length === "number") return {
|
|
49200
|
+
next: function () {
|
|
49201
|
+
if (o && i >= o.length) o = void 0;
|
|
49202
|
+
return {
|
|
49203
|
+
value: o && o[i++],
|
|
49204
|
+
done: !o
|
|
49205
|
+
};
|
|
49206
|
+
}
|
|
49207
|
+
};
|
|
49208
|
+
throw new TypeError(s ? "Object is not iterable." : "Symbol.iterator is not defined.");
|
|
49209
|
+
});
|
|
49210
|
+
Object.defineProperty(FindMathML$1, "__esModule", {
|
|
49211
|
+
value: true
|
|
49212
|
+
});
|
|
49213
|
+
FindMathML$1.FindMathML = void 0;
|
|
49214
|
+
var FindMath_js_1$1 = FindMath;
|
|
49215
|
+
var NAMESPACE = 'http://www.w3.org/1998/Math/MathML';
|
|
49216
|
+
var FindMathML = (function (_super) {
|
|
49217
|
+
__extends$1K(FindMathML, _super);
|
|
49218
|
+
function FindMathML() {
|
|
49219
|
+
return _super !== null && _super.apply(this, arguments) || this;
|
|
49220
|
+
}
|
|
49221
|
+
FindMathML.prototype.findMath = function (node) {
|
|
49222
|
+
var set = new Set();
|
|
49223
|
+
this.findMathNodes(node, set);
|
|
49224
|
+
this.findMathPrefixed(node, set);
|
|
49225
|
+
var html = this.adaptor.root(this.adaptor.document);
|
|
49226
|
+
if (this.adaptor.kind(html) === 'html' && set.size === 0) {
|
|
49227
|
+
this.findMathNS(node, set);
|
|
49228
|
+
}
|
|
49229
|
+
return this.processMath(set);
|
|
49230
|
+
};
|
|
49231
|
+
FindMathML.prototype.findMathNodes = function (node, set) {
|
|
49232
|
+
var e_1, _a;
|
|
49233
|
+
try {
|
|
49234
|
+
for (var _b = __values$G(this.adaptor.tags(node, 'math')), _c = _b.next(); !_c.done; _c = _b.next()) {
|
|
49235
|
+
var math = _c.value;
|
|
49236
|
+
set.add(math);
|
|
49237
|
+
}
|
|
49238
|
+
} catch (e_1_1) {
|
|
49239
|
+
e_1 = {
|
|
49240
|
+
error: e_1_1
|
|
49241
|
+
};
|
|
49242
|
+
} finally {
|
|
49243
|
+
try {
|
|
49244
|
+
if (_c && !_c.done && (_a = _b.return)) _a.call(_b);
|
|
49245
|
+
} finally {
|
|
49246
|
+
if (e_1) throw e_1.error;
|
|
49247
|
+
}
|
|
49248
|
+
}
|
|
49249
|
+
};
|
|
49250
|
+
FindMathML.prototype.findMathPrefixed = function (node, set) {
|
|
49251
|
+
var e_2, _a, e_3, _b;
|
|
49252
|
+
var html = this.adaptor.root(this.adaptor.document);
|
|
49253
|
+
try {
|
|
49254
|
+
for (var _c = __values$G(this.adaptor.allAttributes(html)), _d = _c.next(); !_d.done; _d = _c.next()) {
|
|
49255
|
+
var attr = _d.value;
|
|
49256
|
+
if (attr.name.substr(0, 6) === 'xmlns:' && attr.value === NAMESPACE) {
|
|
49257
|
+
var prefix = attr.name.substr(6);
|
|
49258
|
+
try {
|
|
49259
|
+
for (var _e = (e_3 = void 0, __values$G(this.adaptor.tags(node, prefix + ':math'))), _f = _e.next(); !_f.done; _f = _e.next()) {
|
|
49260
|
+
var math = _f.value;
|
|
49261
|
+
set.add(math);
|
|
49262
|
+
}
|
|
49263
|
+
} catch (e_3_1) {
|
|
49264
|
+
e_3 = {
|
|
49265
|
+
error: e_3_1
|
|
49266
|
+
};
|
|
49267
|
+
} finally {
|
|
49268
|
+
try {
|
|
49269
|
+
if (_f && !_f.done && (_b = _e.return)) _b.call(_e);
|
|
49270
|
+
} finally {
|
|
49271
|
+
if (e_3) throw e_3.error;
|
|
49272
|
+
}
|
|
49273
|
+
}
|
|
49274
|
+
}
|
|
49275
|
+
}
|
|
49276
|
+
} catch (e_2_1) {
|
|
49277
|
+
e_2 = {
|
|
49278
|
+
error: e_2_1
|
|
49279
|
+
};
|
|
49280
|
+
} finally {
|
|
49281
|
+
try {
|
|
49282
|
+
if (_d && !_d.done && (_a = _c.return)) _a.call(_c);
|
|
49283
|
+
} finally {
|
|
49284
|
+
if (e_2) throw e_2.error;
|
|
49285
|
+
}
|
|
49286
|
+
}
|
|
49287
|
+
};
|
|
49288
|
+
FindMathML.prototype.findMathNS = function (node, set) {
|
|
49289
|
+
var e_4, _a;
|
|
49290
|
+
try {
|
|
49291
|
+
for (var _b = __values$G(this.adaptor.tags(node, 'math', NAMESPACE)), _c = _b.next(); !_c.done; _c = _b.next()) {
|
|
49292
|
+
var math = _c.value;
|
|
49293
|
+
set.add(math);
|
|
49294
|
+
}
|
|
49295
|
+
} catch (e_4_1) {
|
|
49296
|
+
e_4 = {
|
|
49297
|
+
error: e_4_1
|
|
49298
|
+
};
|
|
49299
|
+
} finally {
|
|
49300
|
+
try {
|
|
49301
|
+
if (_c && !_c.done && (_a = _b.return)) _a.call(_b);
|
|
49302
|
+
} finally {
|
|
49303
|
+
if (e_4) throw e_4.error;
|
|
49304
|
+
}
|
|
49305
|
+
}
|
|
49306
|
+
};
|
|
49307
|
+
FindMathML.prototype.processMath = function (set) {
|
|
49308
|
+
var e_5, _a;
|
|
49309
|
+
var math = [];
|
|
49310
|
+
try {
|
|
49311
|
+
for (var _b = __values$G(Array.from(set)), _c = _b.next(); !_c.done; _c = _b.next()) {
|
|
49312
|
+
var mml = _c.value;
|
|
49313
|
+
var display = this.adaptor.getAttribute(mml, 'display') === 'block' || this.adaptor.getAttribute(mml, 'mode') === 'display';
|
|
49314
|
+
var start = {
|
|
49315
|
+
node: mml,
|
|
49316
|
+
n: 0,
|
|
49317
|
+
delim: ''
|
|
49318
|
+
};
|
|
49319
|
+
var end = {
|
|
49320
|
+
node: mml,
|
|
49321
|
+
n: 0,
|
|
49322
|
+
delim: ''
|
|
49323
|
+
};
|
|
49324
|
+
math.push({
|
|
49325
|
+
math: this.adaptor.outerHTML(mml),
|
|
49326
|
+
start: start,
|
|
49327
|
+
end: end,
|
|
49328
|
+
display: display
|
|
49329
|
+
});
|
|
49330
|
+
}
|
|
49331
|
+
} catch (e_5_1) {
|
|
49332
|
+
e_5 = {
|
|
49333
|
+
error: e_5_1
|
|
49334
|
+
};
|
|
49335
|
+
} finally {
|
|
49336
|
+
try {
|
|
49337
|
+
if (_c && !_c.done && (_a = _b.return)) _a.call(_b);
|
|
49338
|
+
} finally {
|
|
49339
|
+
if (e_5) throw e_5.error;
|
|
49340
|
+
}
|
|
49341
|
+
}
|
|
49342
|
+
return math;
|
|
49343
|
+
};
|
|
49344
|
+
FindMathML.OPTIONS = {};
|
|
49345
|
+
return FindMathML;
|
|
49346
|
+
})(FindMath_js_1$1.AbstractFindMath);
|
|
49347
|
+
FindMathML$1.FindMathML = FindMathML;
|
|
49121
49348
|
var mathml = {};
|
|
49122
49349
|
var InputJax = {};
|
|
49123
49350
|
var FunctionList$1 = {};
|
|
49124
|
-
var __extends$
|
|
49351
|
+
var __extends$1J = commonjsGlobal && commonjsGlobal.__extends || (function () {
|
|
49125
49352
|
var extendStatics = function (d, b) {
|
|
49126
49353
|
extendStatics = Object.setPrototypeOf || ({
|
|
49127
49354
|
__proto__: []
|
|
@@ -49141,7 +49368,7 @@ var __extends$1K = commonjsGlobal && commonjsGlobal.__extends || (function () {
|
|
|
49141
49368
|
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
|
|
49142
49369
|
};
|
|
49143
49370
|
})();
|
|
49144
|
-
var __values$
|
|
49371
|
+
var __values$F = commonjsGlobal && commonjsGlobal.__values || (function (o) {
|
|
49145
49372
|
var s = typeof Symbol === "function" && Symbol.iterator, m = s && o[s], i = 0;
|
|
49146
49373
|
if (m) return m.call(o);
|
|
49147
49374
|
if (o && typeof o.length === "number") return {
|
|
@@ -49189,7 +49416,7 @@ Object.defineProperty(FunctionList$1, "__esModule", {
|
|
|
49189
49416
|
FunctionList$1.FunctionList = void 0;
|
|
49190
49417
|
var PrioritizedList_js_1 = PrioritizedList$1;
|
|
49191
49418
|
var FunctionList = (function (_super) {
|
|
49192
|
-
__extends$
|
|
49419
|
+
__extends$1J(FunctionList, _super);
|
|
49193
49420
|
function FunctionList() {
|
|
49194
49421
|
return _super !== null && _super.apply(this, arguments) || this;
|
|
49195
49422
|
}
|
|
@@ -49200,7 +49427,7 @@ var FunctionList = (function (_super) {
|
|
|
49200
49427
|
data[_i] = arguments[_i];
|
|
49201
49428
|
}
|
|
49202
49429
|
try {
|
|
49203
|
-
for (var _b = __values$
|
|
49430
|
+
for (var _b = __values$F(this), _c = _b.next(); !_c.done; _c = _b.next()) {
|
|
49204
49431
|
var item = _c.value;
|
|
49205
49432
|
var result = item.item.apply(item, __spreadArray$s([], __read$P(data), false));
|
|
49206
49433
|
if (result === false) {
|
|
@@ -49254,7 +49481,7 @@ Object.defineProperty(InputJax, "__esModule", {
|
|
|
49254
49481
|
value: true
|
|
49255
49482
|
});
|
|
49256
49483
|
InputJax.AbstractInputJax = void 0;
|
|
49257
|
-
var Options_js_1$
|
|
49484
|
+
var Options_js_1$c = Options$2;
|
|
49258
49485
|
var FunctionList_js_1$2 = FunctionList$1;
|
|
49259
49486
|
var AbstractInputJax = (function () {
|
|
49260
49487
|
function AbstractInputJax(options) {
|
|
@@ -49264,7 +49491,7 @@ var AbstractInputJax = (function () {
|
|
|
49264
49491
|
this.adaptor = null;
|
|
49265
49492
|
this.mmlFactory = null;
|
|
49266
49493
|
var CLASS = this.constructor;
|
|
49267
|
-
this.options = (0, Options_js_1$
|
|
49494
|
+
this.options = (0, Options_js_1$c.userOptions)((0, Options_js_1$c.defaultOptions)({}, CLASS.OPTIONS), options);
|
|
49268
49495
|
this.preFilters = new FunctionList_js_1$2.FunctionList();
|
|
49269
49496
|
this.postFilters = new FunctionList_js_1$2.FunctionList();
|
|
49270
49497
|
}
|
|
@@ -49312,194 +49539,6 @@ var AbstractInputJax = (function () {
|
|
|
49312
49539
|
return AbstractInputJax;
|
|
49313
49540
|
})();
|
|
49314
49541
|
InputJax.AbstractInputJax = AbstractInputJax;
|
|
49315
|
-
var FindMathML$1 = {};
|
|
49316
|
-
var FindMath = {};
|
|
49317
|
-
Object.defineProperty(FindMath, "__esModule", {
|
|
49318
|
-
value: true
|
|
49319
|
-
});
|
|
49320
|
-
FindMath.AbstractFindMath = void 0;
|
|
49321
|
-
var Options_js_1$c = Options$2;
|
|
49322
|
-
var AbstractFindMath = (function () {
|
|
49323
|
-
function AbstractFindMath(options) {
|
|
49324
|
-
var CLASS = this.constructor;
|
|
49325
|
-
this.options = (0, Options_js_1$c.userOptions)((0, Options_js_1$c.defaultOptions)({}, CLASS.OPTIONS), options);
|
|
49326
|
-
}
|
|
49327
|
-
AbstractFindMath.OPTIONS = {};
|
|
49328
|
-
return AbstractFindMath;
|
|
49329
|
-
})();
|
|
49330
|
-
FindMath.AbstractFindMath = AbstractFindMath;
|
|
49331
|
-
var __extends$1J = commonjsGlobal && commonjsGlobal.__extends || (function () {
|
|
49332
|
-
var extendStatics = function (d, b) {
|
|
49333
|
-
extendStatics = Object.setPrototypeOf || ({
|
|
49334
|
-
__proto__: []
|
|
49335
|
-
}) instanceof Array && (function (d, b) {
|
|
49336
|
-
d.__proto__ = b;
|
|
49337
|
-
}) || (function (d, b) {
|
|
49338
|
-
for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p];
|
|
49339
|
-
});
|
|
49340
|
-
return extendStatics(d, b);
|
|
49341
|
-
};
|
|
49342
|
-
return function (d, b) {
|
|
49343
|
-
if (typeof b !== "function" && b !== null) throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
|
|
49344
|
-
extendStatics(d, b);
|
|
49345
|
-
function __() {
|
|
49346
|
-
this.constructor = d;
|
|
49347
|
-
}
|
|
49348
|
-
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
|
|
49349
|
-
};
|
|
49350
|
-
})();
|
|
49351
|
-
var __values$F = commonjsGlobal && commonjsGlobal.__values || (function (o) {
|
|
49352
|
-
var s = typeof Symbol === "function" && Symbol.iterator, m = s && o[s], i = 0;
|
|
49353
|
-
if (m) return m.call(o);
|
|
49354
|
-
if (o && typeof o.length === "number") return {
|
|
49355
|
-
next: function () {
|
|
49356
|
-
if (o && i >= o.length) o = void 0;
|
|
49357
|
-
return {
|
|
49358
|
-
value: o && o[i++],
|
|
49359
|
-
done: !o
|
|
49360
|
-
};
|
|
49361
|
-
}
|
|
49362
|
-
};
|
|
49363
|
-
throw new TypeError(s ? "Object is not iterable." : "Symbol.iterator is not defined.");
|
|
49364
|
-
});
|
|
49365
|
-
Object.defineProperty(FindMathML$1, "__esModule", {
|
|
49366
|
-
value: true
|
|
49367
|
-
});
|
|
49368
|
-
FindMathML$1.FindMathML = void 0;
|
|
49369
|
-
var FindMath_js_1$1 = FindMath;
|
|
49370
|
-
var NAMESPACE = 'http://www.w3.org/1998/Math/MathML';
|
|
49371
|
-
var FindMathML = (function (_super) {
|
|
49372
|
-
__extends$1J(FindMathML, _super);
|
|
49373
|
-
function FindMathML() {
|
|
49374
|
-
return _super !== null && _super.apply(this, arguments) || this;
|
|
49375
|
-
}
|
|
49376
|
-
FindMathML.prototype.findMath = function (node) {
|
|
49377
|
-
var set = new Set();
|
|
49378
|
-
this.findMathNodes(node, set);
|
|
49379
|
-
this.findMathPrefixed(node, set);
|
|
49380
|
-
var html = this.adaptor.root(this.adaptor.document);
|
|
49381
|
-
if (this.adaptor.kind(html) === 'html' && set.size === 0) {
|
|
49382
|
-
this.findMathNS(node, set);
|
|
49383
|
-
}
|
|
49384
|
-
return this.processMath(set);
|
|
49385
|
-
};
|
|
49386
|
-
FindMathML.prototype.findMathNodes = function (node, set) {
|
|
49387
|
-
var e_1, _a;
|
|
49388
|
-
try {
|
|
49389
|
-
for (var _b = __values$F(this.adaptor.tags(node, 'math')), _c = _b.next(); !_c.done; _c = _b.next()) {
|
|
49390
|
-
var math = _c.value;
|
|
49391
|
-
set.add(math);
|
|
49392
|
-
}
|
|
49393
|
-
} catch (e_1_1) {
|
|
49394
|
-
e_1 = {
|
|
49395
|
-
error: e_1_1
|
|
49396
|
-
};
|
|
49397
|
-
} finally {
|
|
49398
|
-
try {
|
|
49399
|
-
if (_c && !_c.done && (_a = _b.return)) _a.call(_b);
|
|
49400
|
-
} finally {
|
|
49401
|
-
if (e_1) throw e_1.error;
|
|
49402
|
-
}
|
|
49403
|
-
}
|
|
49404
|
-
};
|
|
49405
|
-
FindMathML.prototype.findMathPrefixed = function (node, set) {
|
|
49406
|
-
var e_2, _a, e_3, _b;
|
|
49407
|
-
var html = this.adaptor.root(this.adaptor.document);
|
|
49408
|
-
try {
|
|
49409
|
-
for (var _c = __values$F(this.adaptor.allAttributes(html)), _d = _c.next(); !_d.done; _d = _c.next()) {
|
|
49410
|
-
var attr = _d.value;
|
|
49411
|
-
if (attr.name.substr(0, 6) === 'xmlns:' && attr.value === NAMESPACE) {
|
|
49412
|
-
var prefix = attr.name.substr(6);
|
|
49413
|
-
try {
|
|
49414
|
-
for (var _e = (e_3 = void 0, __values$F(this.adaptor.tags(node, prefix + ':math'))), _f = _e.next(); !_f.done; _f = _e.next()) {
|
|
49415
|
-
var math = _f.value;
|
|
49416
|
-
set.add(math);
|
|
49417
|
-
}
|
|
49418
|
-
} catch (e_3_1) {
|
|
49419
|
-
e_3 = {
|
|
49420
|
-
error: e_3_1
|
|
49421
|
-
};
|
|
49422
|
-
} finally {
|
|
49423
|
-
try {
|
|
49424
|
-
if (_f && !_f.done && (_b = _e.return)) _b.call(_e);
|
|
49425
|
-
} finally {
|
|
49426
|
-
if (e_3) throw e_3.error;
|
|
49427
|
-
}
|
|
49428
|
-
}
|
|
49429
|
-
}
|
|
49430
|
-
}
|
|
49431
|
-
} catch (e_2_1) {
|
|
49432
|
-
e_2 = {
|
|
49433
|
-
error: e_2_1
|
|
49434
|
-
};
|
|
49435
|
-
} finally {
|
|
49436
|
-
try {
|
|
49437
|
-
if (_d && !_d.done && (_a = _c.return)) _a.call(_c);
|
|
49438
|
-
} finally {
|
|
49439
|
-
if (e_2) throw e_2.error;
|
|
49440
|
-
}
|
|
49441
|
-
}
|
|
49442
|
-
};
|
|
49443
|
-
FindMathML.prototype.findMathNS = function (node, set) {
|
|
49444
|
-
var e_4, _a;
|
|
49445
|
-
try {
|
|
49446
|
-
for (var _b = __values$F(this.adaptor.tags(node, 'math', NAMESPACE)), _c = _b.next(); !_c.done; _c = _b.next()) {
|
|
49447
|
-
var math = _c.value;
|
|
49448
|
-
set.add(math);
|
|
49449
|
-
}
|
|
49450
|
-
} catch (e_4_1) {
|
|
49451
|
-
e_4 = {
|
|
49452
|
-
error: e_4_1
|
|
49453
|
-
};
|
|
49454
|
-
} finally {
|
|
49455
|
-
try {
|
|
49456
|
-
if (_c && !_c.done && (_a = _b.return)) _a.call(_b);
|
|
49457
|
-
} finally {
|
|
49458
|
-
if (e_4) throw e_4.error;
|
|
49459
|
-
}
|
|
49460
|
-
}
|
|
49461
|
-
};
|
|
49462
|
-
FindMathML.prototype.processMath = function (set) {
|
|
49463
|
-
var e_5, _a;
|
|
49464
|
-
var math = [];
|
|
49465
|
-
try {
|
|
49466
|
-
for (var _b = __values$F(Array.from(set)), _c = _b.next(); !_c.done; _c = _b.next()) {
|
|
49467
|
-
var mml = _c.value;
|
|
49468
|
-
var display = this.adaptor.getAttribute(mml, 'display') === 'block' || this.adaptor.getAttribute(mml, 'mode') === 'display';
|
|
49469
|
-
var start = {
|
|
49470
|
-
node: mml,
|
|
49471
|
-
n: 0,
|
|
49472
|
-
delim: ''
|
|
49473
|
-
};
|
|
49474
|
-
var end = {
|
|
49475
|
-
node: mml,
|
|
49476
|
-
n: 0,
|
|
49477
|
-
delim: ''
|
|
49478
|
-
};
|
|
49479
|
-
math.push({
|
|
49480
|
-
math: this.adaptor.outerHTML(mml),
|
|
49481
|
-
start: start,
|
|
49482
|
-
end: end,
|
|
49483
|
-
display: display
|
|
49484
|
-
});
|
|
49485
|
-
}
|
|
49486
|
-
} catch (e_5_1) {
|
|
49487
|
-
e_5 = {
|
|
49488
|
-
error: e_5_1
|
|
49489
|
-
};
|
|
49490
|
-
} finally {
|
|
49491
|
-
try {
|
|
49492
|
-
if (_c && !_c.done && (_a = _b.return)) _a.call(_b);
|
|
49493
|
-
} finally {
|
|
49494
|
-
if (e_5) throw e_5.error;
|
|
49495
|
-
}
|
|
49496
|
-
}
|
|
49497
|
-
return math;
|
|
49498
|
-
};
|
|
49499
|
-
FindMathML.OPTIONS = {};
|
|
49500
|
-
return FindMathML;
|
|
49501
|
-
})(FindMath_js_1$1.AbstractFindMath);
|
|
49502
|
-
FindMathML$1.FindMathML = FindMathML;
|
|
49503
49542
|
var MathMLCompile$1 = {};
|
|
49504
49543
|
var Entities$1 = {};
|
|
49505
49544
|
var AsyncLoad = {};
|
|
@@ -92091,7 +92130,7 @@ var unWrapMath = function unWrapMath(content) {
|
|
|
92091
92130
|
};
|
|
92092
92131
|
};
|
|
92093
92132
|
normalization.unWrapMath = unWrapMath;
|
|
92094
|
-
const require$$
|
|
92133
|
+
const require$$22$2 = _dll_debug;
|
|
92095
92134
|
(function (exports) {
|
|
92096
92135
|
var _interopRequireDefault = interopRequireDefault.exports;
|
|
92097
92136
|
Object.defineProperty(exports, "__esModule", {
|
|
@@ -92101,10 +92140,17 @@ const require$$15$4 = _dll_debug;
|
|
|
92101
92140
|
var _toConsumableArray2 = _interopRequireDefault(toConsumableArray$1.exports);
|
|
92102
92141
|
var _typeof2 = _interopRequireDefault(_typeof$g.exports);
|
|
92103
92142
|
var _defineProperty2 = _interopRequireDefault(defineProperty$6.exports);
|
|
92143
|
+
var _classCallCheck2 = _interopRequireDefault(classCallCheck$5.exports);
|
|
92144
|
+
var _createClass2 = _interopRequireDefault(createClass$4.exports);
|
|
92145
|
+
var _get2 = _interopRequireDefault(get$2.exports);
|
|
92146
|
+
var _inherits2 = _interopRequireDefault(inherits$3.exports);
|
|
92147
|
+
var _possibleConstructorReturn2 = _interopRequireDefault(possibleConstructorReturn$3.exports);
|
|
92148
|
+
var _getPrototypeOf2 = _interopRequireDefault(getPrototypeOf$2.exports);
|
|
92104
92149
|
var _mathjax = mathjax;
|
|
92105
92150
|
var _assistiveMml = assistiveMml;
|
|
92106
92151
|
var _semanticEnrich = semanticEnrich;
|
|
92107
92152
|
var _MenuHandler = MenuHandler$1;
|
|
92153
|
+
var _FindMathML2 = FindMathML$1;
|
|
92108
92154
|
var _mathml = mathml;
|
|
92109
92155
|
var _tex = tex$2;
|
|
92110
92156
|
var _chtml = chtml$1;
|
|
@@ -92112,12 +92158,13 @@ const require$$15$4 = _dll_debug;
|
|
|
92112
92158
|
var _browserAdaptor = browserAdaptor$1;
|
|
92113
92159
|
var _AllPackages = AllPackages;
|
|
92114
92160
|
var _mstack = mstack;
|
|
92115
|
-
var _debug = _interopRequireDefault(require$$
|
|
92161
|
+
var _debug = _interopRequireDefault(require$$22$2);
|
|
92116
92162
|
var _normalization = normalization;
|
|
92117
92163
|
var _MmlFactory = MmlFactory$1;
|
|
92118
92164
|
var _SerializedMmlVisitor = SerializedMmlVisitor;
|
|
92119
92165
|
var _WrapperFactory = WrapperFactory$2;
|
|
92120
92166
|
var _mspace = mspace$1;
|
|
92167
|
+
var _HTMLDomStrings = HTMLDomStrings$1;
|
|
92121
92168
|
function ownKeys(object, enumerableOnly) {
|
|
92122
92169
|
var keys = Object.keys(object);
|
|
92123
92170
|
if (Object.getOwnPropertySymbols) {
|
|
@@ -92139,6 +92186,30 @@ const require$$15$4 = _dll_debug;
|
|
|
92139
92186
|
}
|
|
92140
92187
|
return target;
|
|
92141
92188
|
}
|
|
92189
|
+
function _createSuper(Derived) {
|
|
92190
|
+
var hasNativeReflectConstruct = _isNativeReflectConstruct();
|
|
92191
|
+
return function _createSuperInternal() {
|
|
92192
|
+
var Super = (0, _getPrototypeOf2["default"])(Derived), result;
|
|
92193
|
+
if (hasNativeReflectConstruct) {
|
|
92194
|
+
var NewTarget = (0, _getPrototypeOf2["default"])(this).constructor;
|
|
92195
|
+
result = Reflect.construct(Super, arguments, NewTarget);
|
|
92196
|
+
} else {
|
|
92197
|
+
result = Super.apply(this, arguments);
|
|
92198
|
+
}
|
|
92199
|
+
return (0, _possibleConstructorReturn2["default"])(this, result);
|
|
92200
|
+
};
|
|
92201
|
+
}
|
|
92202
|
+
function _isNativeReflectConstruct() {
|
|
92203
|
+
if (typeof Reflect === "undefined" || !Reflect.construct) return false;
|
|
92204
|
+
if (Reflect.construct.sham) return false;
|
|
92205
|
+
if (typeof Proxy === "function") return true;
|
|
92206
|
+
try {
|
|
92207
|
+
Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {}));
|
|
92208
|
+
return true;
|
|
92209
|
+
} catch (e) {
|
|
92210
|
+
return false;
|
|
92211
|
+
}
|
|
92212
|
+
}
|
|
92142
92213
|
if (typeof window !== 'undefined') {
|
|
92143
92214
|
(0, _html.RegisterHTMLHandler)((0, _browserAdaptor.browserAdaptor)());
|
|
92144
92215
|
}
|
|
@@ -92193,6 +92264,28 @@ const require$$15$4 = _dll_debug;
|
|
|
92193
92264
|
return node.setAttribute('displaystyle', 'true');
|
|
92194
92265
|
});
|
|
92195
92266
|
};
|
|
92267
|
+
var myFindMathML = (function (_FindMathML) {
|
|
92268
|
+
(0, _inherits2["default"])(myFindMathML, _FindMathML);
|
|
92269
|
+
var _super = _createSuper(myFindMathML);
|
|
92270
|
+
function myFindMathML() {
|
|
92271
|
+
(0, _classCallCheck2["default"])(this, myFindMathML);
|
|
92272
|
+
return _super.apply(this, arguments);
|
|
92273
|
+
}
|
|
92274
|
+
(0, _createClass2["default"])(myFindMathML, [{
|
|
92275
|
+
key: "processMath",
|
|
92276
|
+
value: function processMath(set) {
|
|
92277
|
+
var adaptor = this.adaptor;
|
|
92278
|
+
for (var _i = 0, _Array$from = Array.from(set); _i < _Array$from.length; _i++) {
|
|
92279
|
+
var mml = _Array$from[_i];
|
|
92280
|
+
if (adaptor.kind(adaptor.parent(mml)) === 'mjx-assistive-mml') {
|
|
92281
|
+
set["delete"](mml);
|
|
92282
|
+
}
|
|
92283
|
+
}
|
|
92284
|
+
return (0, _get2["default"])((0, _getPrototypeOf2["default"])(myFindMathML.prototype), "processMath", this).call(this, set);
|
|
92285
|
+
}
|
|
92286
|
+
}]);
|
|
92287
|
+
return myFindMathML;
|
|
92288
|
+
})(_FindMathML2.FindMathML);
|
|
92196
92289
|
var createMathMLInstance = function createMathMLInstance(opts) {
|
|
92197
92290
|
var docProvided = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : document;
|
|
92198
92291
|
opts = opts || defaultOpts();
|
|
@@ -92222,7 +92315,8 @@ const require$$15$4 = _dll_debug;
|
|
|
92222
92315
|
parseError: function parseError(node) {
|
|
92223
92316
|
console.log('error:', node);
|
|
92224
92317
|
this.error(this.adaptor.textContent(node).replace(/\n.*/g, ''));
|
|
92225
|
-
}
|
|
92318
|
+
},
|
|
92319
|
+
FindMathML: new myFindMathML()
|
|
92226
92320
|
};
|
|
92227
92321
|
var fontURL = ("https://unpkg.com/mathjax-full@").concat(_mathjax.mathjax.version, "/ts/output/chtml/fonts/tex-woff-v2");
|
|
92228
92322
|
var htmlConfig = {
|
|
@@ -92247,7 +92341,10 @@ const require$$15$4 = _dll_debug;
|
|
|
92247
92341
|
},
|
|
92248
92342
|
enrichSpeech: 'deep',
|
|
92249
92343
|
InputJax: [new _tex.TeX(texConfig), mml],
|
|
92250
|
-
OutputJax: new _chtml.CHTML(htmlConfig)
|
|
92344
|
+
OutputJax: new _chtml.CHTML(htmlConfig),
|
|
92345
|
+
DomStrings: new _HTMLDomStrings.HTMLDomStrings({
|
|
92346
|
+
skipHtmlTags: ['script', 'noscript', 'style', 'textarea', 'pre', 'code', 'annotation', 'annotation-xml', 'mjx-assistive-mml', 'mjx-container']
|
|
92347
|
+
})
|
|
92251
92348
|
});
|
|
92252
92349
|
mml.setMmlFactory(customMmlFactory);
|
|
92253
92350
|
return html;
|
package/module/manifest.json
CHANGED
package/module/print.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import {_dll_react, _dll_prop_types, _dll_debug, _dll_lodash, _dll_react_dom_server, _dll_classnames, _dll_react_dom, _dll_pie_framework__mathquill, _dll_pie_lib__pie_toolbox_math_rendering} from "../../../@pie-lib/pie-toolbox-math-rendering-module@3.3.0/module/index.js";
|
|
2
|
-
import {_dll_pie_lib__pie_toolbox_correct_answer_toggle, _dll_pie_lib__pie_toolbox_render_ui} from "../../../@pie-lib/pie-toolbox-module@5.
|
|
2
|
+
import {_dll_pie_lib__pie_toolbox_correct_answer_toggle, _dll_pie_lib__pie_toolbox_render_ui} from "../../../@pie-lib/pie-toolbox-module@5.10.0/module/index.js";
|
|
3
3
|
function _mergeNamespaces(n, m) {
|
|
4
4
|
m.forEach(function (e) {
|
|
5
5
|
e && typeof e !== 'string' && !Array.isArray(e) && Object.keys(e).forEach(function (k) {
|
|
@@ -7161,7 +7161,7 @@ function quoteString(value) {
|
|
|
7161
7161
|
function has$1(collection, key) {
|
|
7162
7162
|
return isImmutable(collection) ? collection.has(key) : isDataStructure(collection) && hasOwnProperty$2.call(collection, key);
|
|
7163
7163
|
}
|
|
7164
|
-
function get$
|
|
7164
|
+
function get$3(collection, key, notSetValue) {
|
|
7165
7165
|
return isImmutable(collection) ? collection.get(key, notSetValue) : !has$1(collection, key) ? notSetValue : typeof collection.get === 'function' ? collection.get(key) : collection[key];
|
|
7166
7166
|
}
|
|
7167
7167
|
function shallowCopy(from) {
|
|
@@ -7233,7 +7233,7 @@ function updateInDeeply(inImmutable, existing, keyPath, i, notSetValue, updater)
|
|
|
7233
7233
|
throw new TypeError('Cannot update within non-data-structure value in path [' + keyPath.slice(0, i).map(quoteString) + ']: ' + existing);
|
|
7234
7234
|
}
|
|
7235
7235
|
var key = keyPath[i];
|
|
7236
|
-
var nextExisting = wasNotSet ? NOT_SET : get$
|
|
7236
|
+
var nextExisting = wasNotSet ? NOT_SET : get$3(existing, key, NOT_SET);
|
|
7237
7237
|
var nextUpdated = updateInDeeply(nextExisting === NOT_SET ? inImmutable : isImmutable(nextExisting), nextExisting, keyPath, i + 1, notSetValue, updater);
|
|
7238
7238
|
return nextUpdated === nextExisting ? existing : nextUpdated === NOT_SET ? remove(existing, key) : set$h(wasNotSet ? inImmutable ? emptyMap() : {} : existing, key, nextUpdated);
|
|
7239
7239
|
}
|
|
@@ -9186,7 +9186,7 @@ function getIn$1(collection, searchKeyPath, notSetValue) {
|
|
|
9186
9186
|
var keyPath = coerceKeyPath(searchKeyPath);
|
|
9187
9187
|
var i = 0;
|
|
9188
9188
|
while (i !== keyPath.length) {
|
|
9189
|
-
collection = get$
|
|
9189
|
+
collection = get$3(collection, keyPath[i++], NOT_SET);
|
|
9190
9190
|
if (collection === NOT_SET) {
|
|
9191
9191
|
return notSetValue;
|
|
9192
9192
|
}
|
|
@@ -10062,7 +10062,7 @@ var Immutable$1 = {
|
|
|
10062
10062
|
isSet: isSet,
|
|
10063
10063
|
isOrderedSet: isOrderedSet,
|
|
10064
10064
|
isRecord: isRecord,
|
|
10065
|
-
get: get$
|
|
10065
|
+
get: get$3,
|
|
10066
10066
|
getIn: getIn$1,
|
|
10067
10067
|
has: has$1,
|
|
10068
10068
|
hasIn: hasIn$1,
|
|
@@ -10094,7 +10094,7 @@ var immutable_es = Object.freeze({
|
|
|
10094
10094
|
Set: Set$1,
|
|
10095
10095
|
Stack: Stack$2,
|
|
10096
10096
|
fromJS: fromJS,
|
|
10097
|
-
get: get$
|
|
10097
|
+
get: get$3,
|
|
10098
10098
|
getIn: getIn$1,
|
|
10099
10099
|
has: has$1,
|
|
10100
10100
|
hasIn: hasIn$1,
|
|
@@ -19482,6 +19482,45 @@ getDefaultExportFromCjs(nonIterableSpread.exports);
|
|
|
19482
19482
|
(module.exports = _toConsumableArray, module.exports.__esModule = true, module.exports["default"] = module.exports);
|
|
19483
19483
|
})(toConsumableArray$1);
|
|
19484
19484
|
getDefaultExportFromCjs(toConsumableArray$1.exports);
|
|
19485
|
+
var get$2 = {
|
|
19486
|
+
exports: {}
|
|
19487
|
+
};
|
|
19488
|
+
var superPropBase = {
|
|
19489
|
+
exports: {}
|
|
19490
|
+
};
|
|
19491
|
+
(function (module) {
|
|
19492
|
+
var getPrototypeOf = getPrototypeOf$2.exports;
|
|
19493
|
+
function _superPropBase(object, property) {
|
|
19494
|
+
while (!Object.prototype.hasOwnProperty.call(object, property)) {
|
|
19495
|
+
object = getPrototypeOf(object);
|
|
19496
|
+
if (object === null) break;
|
|
19497
|
+
}
|
|
19498
|
+
return object;
|
|
19499
|
+
}
|
|
19500
|
+
(module.exports = _superPropBase, module.exports.__esModule = true, module.exports["default"] = module.exports);
|
|
19501
|
+
})(superPropBase);
|
|
19502
|
+
getDefaultExportFromCjs(superPropBase.exports);
|
|
19503
|
+
(function (module) {
|
|
19504
|
+
var superPropBase$1 = superPropBase.exports;
|
|
19505
|
+
function _get() {
|
|
19506
|
+
if (typeof Reflect !== "undefined" && Reflect.get) {
|
|
19507
|
+
(module.exports = _get = Reflect.get, module.exports.__esModule = true, module.exports["default"] = module.exports);
|
|
19508
|
+
} else {
|
|
19509
|
+
(module.exports = _get = function _get(target, property, receiver) {
|
|
19510
|
+
var base = superPropBase$1(target, property);
|
|
19511
|
+
if (!base) return;
|
|
19512
|
+
var desc = Object.getOwnPropertyDescriptor(base, property);
|
|
19513
|
+
if (desc.get) {
|
|
19514
|
+
return desc.get.call(arguments.length < 3 ? target : receiver);
|
|
19515
|
+
}
|
|
19516
|
+
return desc.value;
|
|
19517
|
+
}, module.exports.__esModule = true, module.exports["default"] = module.exports);
|
|
19518
|
+
}
|
|
19519
|
+
return _get.apply(this, arguments);
|
|
19520
|
+
}
|
|
19521
|
+
(module.exports = _get, module.exports.__esModule = true, module.exports["default"] = module.exports);
|
|
19522
|
+
})(get$2);
|
|
19523
|
+
getDefaultExportFromCjs(get$2.exports);
|
|
19485
19524
|
var mathjax = {};
|
|
19486
19525
|
var version = {};
|
|
19487
19526
|
Object.defineProperty(version, "__esModule", {
|
|
@@ -49081,10 +49120,198 @@ function MenuHandler(handler) {
|
|
|
49081
49120
|
return handler;
|
|
49082
49121
|
}
|
|
49083
49122
|
MenuHandler$1.MenuHandler = MenuHandler;
|
|
49123
|
+
var FindMathML$1 = {};
|
|
49124
|
+
var FindMath = {};
|
|
49125
|
+
Object.defineProperty(FindMath, "__esModule", {
|
|
49126
|
+
value: true
|
|
49127
|
+
});
|
|
49128
|
+
FindMath.AbstractFindMath = void 0;
|
|
49129
|
+
var Options_js_1$d = Options$2;
|
|
49130
|
+
var AbstractFindMath = (function () {
|
|
49131
|
+
function AbstractFindMath(options) {
|
|
49132
|
+
var CLASS = this.constructor;
|
|
49133
|
+
this.options = (0, Options_js_1$d.userOptions)((0, Options_js_1$d.defaultOptions)({}, CLASS.OPTIONS), options);
|
|
49134
|
+
}
|
|
49135
|
+
AbstractFindMath.OPTIONS = {};
|
|
49136
|
+
return AbstractFindMath;
|
|
49137
|
+
})();
|
|
49138
|
+
FindMath.AbstractFindMath = AbstractFindMath;
|
|
49139
|
+
var __extends$1K = commonjsGlobal && commonjsGlobal.__extends || (function () {
|
|
49140
|
+
var extendStatics = function (d, b) {
|
|
49141
|
+
extendStatics = Object.setPrototypeOf || ({
|
|
49142
|
+
__proto__: []
|
|
49143
|
+
}) instanceof Array && (function (d, b) {
|
|
49144
|
+
d.__proto__ = b;
|
|
49145
|
+
}) || (function (d, b) {
|
|
49146
|
+
for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p];
|
|
49147
|
+
});
|
|
49148
|
+
return extendStatics(d, b);
|
|
49149
|
+
};
|
|
49150
|
+
return function (d, b) {
|
|
49151
|
+
if (typeof b !== "function" && b !== null) throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
|
|
49152
|
+
extendStatics(d, b);
|
|
49153
|
+
function __() {
|
|
49154
|
+
this.constructor = d;
|
|
49155
|
+
}
|
|
49156
|
+
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
|
|
49157
|
+
};
|
|
49158
|
+
})();
|
|
49159
|
+
var __values$G = commonjsGlobal && commonjsGlobal.__values || (function (o) {
|
|
49160
|
+
var s = typeof Symbol === "function" && Symbol.iterator, m = s && o[s], i = 0;
|
|
49161
|
+
if (m) return m.call(o);
|
|
49162
|
+
if (o && typeof o.length === "number") return {
|
|
49163
|
+
next: function () {
|
|
49164
|
+
if (o && i >= o.length) o = void 0;
|
|
49165
|
+
return {
|
|
49166
|
+
value: o && o[i++],
|
|
49167
|
+
done: !o
|
|
49168
|
+
};
|
|
49169
|
+
}
|
|
49170
|
+
};
|
|
49171
|
+
throw new TypeError(s ? "Object is not iterable." : "Symbol.iterator is not defined.");
|
|
49172
|
+
});
|
|
49173
|
+
Object.defineProperty(FindMathML$1, "__esModule", {
|
|
49174
|
+
value: true
|
|
49175
|
+
});
|
|
49176
|
+
FindMathML$1.FindMathML = void 0;
|
|
49177
|
+
var FindMath_js_1$1 = FindMath;
|
|
49178
|
+
var NAMESPACE = 'http://www.w3.org/1998/Math/MathML';
|
|
49179
|
+
var FindMathML = (function (_super) {
|
|
49180
|
+
__extends$1K(FindMathML, _super);
|
|
49181
|
+
function FindMathML() {
|
|
49182
|
+
return _super !== null && _super.apply(this, arguments) || this;
|
|
49183
|
+
}
|
|
49184
|
+
FindMathML.prototype.findMath = function (node) {
|
|
49185
|
+
var set = new Set();
|
|
49186
|
+
this.findMathNodes(node, set);
|
|
49187
|
+
this.findMathPrefixed(node, set);
|
|
49188
|
+
var html = this.adaptor.root(this.adaptor.document);
|
|
49189
|
+
if (this.adaptor.kind(html) === 'html' && set.size === 0) {
|
|
49190
|
+
this.findMathNS(node, set);
|
|
49191
|
+
}
|
|
49192
|
+
return this.processMath(set);
|
|
49193
|
+
};
|
|
49194
|
+
FindMathML.prototype.findMathNodes = function (node, set) {
|
|
49195
|
+
var e_1, _a;
|
|
49196
|
+
try {
|
|
49197
|
+
for (var _b = __values$G(this.adaptor.tags(node, 'math')), _c = _b.next(); !_c.done; _c = _b.next()) {
|
|
49198
|
+
var math = _c.value;
|
|
49199
|
+
set.add(math);
|
|
49200
|
+
}
|
|
49201
|
+
} catch (e_1_1) {
|
|
49202
|
+
e_1 = {
|
|
49203
|
+
error: e_1_1
|
|
49204
|
+
};
|
|
49205
|
+
} finally {
|
|
49206
|
+
try {
|
|
49207
|
+
if (_c && !_c.done && (_a = _b.return)) _a.call(_b);
|
|
49208
|
+
} finally {
|
|
49209
|
+
if (e_1) throw e_1.error;
|
|
49210
|
+
}
|
|
49211
|
+
}
|
|
49212
|
+
};
|
|
49213
|
+
FindMathML.prototype.findMathPrefixed = function (node, set) {
|
|
49214
|
+
var e_2, _a, e_3, _b;
|
|
49215
|
+
var html = this.adaptor.root(this.adaptor.document);
|
|
49216
|
+
try {
|
|
49217
|
+
for (var _c = __values$G(this.adaptor.allAttributes(html)), _d = _c.next(); !_d.done; _d = _c.next()) {
|
|
49218
|
+
var attr = _d.value;
|
|
49219
|
+
if (attr.name.substr(0, 6) === 'xmlns:' && attr.value === NAMESPACE) {
|
|
49220
|
+
var prefix = attr.name.substr(6);
|
|
49221
|
+
try {
|
|
49222
|
+
for (var _e = (e_3 = void 0, __values$G(this.adaptor.tags(node, prefix + ':math'))), _f = _e.next(); !_f.done; _f = _e.next()) {
|
|
49223
|
+
var math = _f.value;
|
|
49224
|
+
set.add(math);
|
|
49225
|
+
}
|
|
49226
|
+
} catch (e_3_1) {
|
|
49227
|
+
e_3 = {
|
|
49228
|
+
error: e_3_1
|
|
49229
|
+
};
|
|
49230
|
+
} finally {
|
|
49231
|
+
try {
|
|
49232
|
+
if (_f && !_f.done && (_b = _e.return)) _b.call(_e);
|
|
49233
|
+
} finally {
|
|
49234
|
+
if (e_3) throw e_3.error;
|
|
49235
|
+
}
|
|
49236
|
+
}
|
|
49237
|
+
}
|
|
49238
|
+
}
|
|
49239
|
+
} catch (e_2_1) {
|
|
49240
|
+
e_2 = {
|
|
49241
|
+
error: e_2_1
|
|
49242
|
+
};
|
|
49243
|
+
} finally {
|
|
49244
|
+
try {
|
|
49245
|
+
if (_d && !_d.done && (_a = _c.return)) _a.call(_c);
|
|
49246
|
+
} finally {
|
|
49247
|
+
if (e_2) throw e_2.error;
|
|
49248
|
+
}
|
|
49249
|
+
}
|
|
49250
|
+
};
|
|
49251
|
+
FindMathML.prototype.findMathNS = function (node, set) {
|
|
49252
|
+
var e_4, _a;
|
|
49253
|
+
try {
|
|
49254
|
+
for (var _b = __values$G(this.adaptor.tags(node, 'math', NAMESPACE)), _c = _b.next(); !_c.done; _c = _b.next()) {
|
|
49255
|
+
var math = _c.value;
|
|
49256
|
+
set.add(math);
|
|
49257
|
+
}
|
|
49258
|
+
} catch (e_4_1) {
|
|
49259
|
+
e_4 = {
|
|
49260
|
+
error: e_4_1
|
|
49261
|
+
};
|
|
49262
|
+
} finally {
|
|
49263
|
+
try {
|
|
49264
|
+
if (_c && !_c.done && (_a = _b.return)) _a.call(_b);
|
|
49265
|
+
} finally {
|
|
49266
|
+
if (e_4) throw e_4.error;
|
|
49267
|
+
}
|
|
49268
|
+
}
|
|
49269
|
+
};
|
|
49270
|
+
FindMathML.prototype.processMath = function (set) {
|
|
49271
|
+
var e_5, _a;
|
|
49272
|
+
var math = [];
|
|
49273
|
+
try {
|
|
49274
|
+
for (var _b = __values$G(Array.from(set)), _c = _b.next(); !_c.done; _c = _b.next()) {
|
|
49275
|
+
var mml = _c.value;
|
|
49276
|
+
var display = this.adaptor.getAttribute(mml, 'display') === 'block' || this.adaptor.getAttribute(mml, 'mode') === 'display';
|
|
49277
|
+
var start = {
|
|
49278
|
+
node: mml,
|
|
49279
|
+
n: 0,
|
|
49280
|
+
delim: ''
|
|
49281
|
+
};
|
|
49282
|
+
var end = {
|
|
49283
|
+
node: mml,
|
|
49284
|
+
n: 0,
|
|
49285
|
+
delim: ''
|
|
49286
|
+
};
|
|
49287
|
+
math.push({
|
|
49288
|
+
math: this.adaptor.outerHTML(mml),
|
|
49289
|
+
start: start,
|
|
49290
|
+
end: end,
|
|
49291
|
+
display: display
|
|
49292
|
+
});
|
|
49293
|
+
}
|
|
49294
|
+
} catch (e_5_1) {
|
|
49295
|
+
e_5 = {
|
|
49296
|
+
error: e_5_1
|
|
49297
|
+
};
|
|
49298
|
+
} finally {
|
|
49299
|
+
try {
|
|
49300
|
+
if (_c && !_c.done && (_a = _b.return)) _a.call(_b);
|
|
49301
|
+
} finally {
|
|
49302
|
+
if (e_5) throw e_5.error;
|
|
49303
|
+
}
|
|
49304
|
+
}
|
|
49305
|
+
return math;
|
|
49306
|
+
};
|
|
49307
|
+
FindMathML.OPTIONS = {};
|
|
49308
|
+
return FindMathML;
|
|
49309
|
+
})(FindMath_js_1$1.AbstractFindMath);
|
|
49310
|
+
FindMathML$1.FindMathML = FindMathML;
|
|
49084
49311
|
var mathml = {};
|
|
49085
49312
|
var InputJax = {};
|
|
49086
49313
|
var FunctionList$1 = {};
|
|
49087
|
-
var __extends$
|
|
49314
|
+
var __extends$1J = commonjsGlobal && commonjsGlobal.__extends || (function () {
|
|
49088
49315
|
var extendStatics = function (d, b) {
|
|
49089
49316
|
extendStatics = Object.setPrototypeOf || ({
|
|
49090
49317
|
__proto__: []
|
|
@@ -49104,7 +49331,7 @@ var __extends$1K = commonjsGlobal && commonjsGlobal.__extends || (function () {
|
|
|
49104
49331
|
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
|
|
49105
49332
|
};
|
|
49106
49333
|
})();
|
|
49107
|
-
var __values$
|
|
49334
|
+
var __values$F = commonjsGlobal && commonjsGlobal.__values || (function (o) {
|
|
49108
49335
|
var s = typeof Symbol === "function" && Symbol.iterator, m = s && o[s], i = 0;
|
|
49109
49336
|
if (m) return m.call(o);
|
|
49110
49337
|
if (o && typeof o.length === "number") return {
|
|
@@ -49152,7 +49379,7 @@ Object.defineProperty(FunctionList$1, "__esModule", {
|
|
|
49152
49379
|
FunctionList$1.FunctionList = void 0;
|
|
49153
49380
|
var PrioritizedList_js_1 = PrioritizedList$1;
|
|
49154
49381
|
var FunctionList = (function (_super) {
|
|
49155
|
-
__extends$
|
|
49382
|
+
__extends$1J(FunctionList, _super);
|
|
49156
49383
|
function FunctionList() {
|
|
49157
49384
|
return _super !== null && _super.apply(this, arguments) || this;
|
|
49158
49385
|
}
|
|
@@ -49163,7 +49390,7 @@ var FunctionList = (function (_super) {
|
|
|
49163
49390
|
data[_i] = arguments[_i];
|
|
49164
49391
|
}
|
|
49165
49392
|
try {
|
|
49166
|
-
for (var _b = __values$
|
|
49393
|
+
for (var _b = __values$F(this), _c = _b.next(); !_c.done; _c = _b.next()) {
|
|
49167
49394
|
var item = _c.value;
|
|
49168
49395
|
var result = item.item.apply(item, __spreadArray$s([], __read$P(data), false));
|
|
49169
49396
|
if (result === false) {
|
|
@@ -49217,7 +49444,7 @@ Object.defineProperty(InputJax, "__esModule", {
|
|
|
49217
49444
|
value: true
|
|
49218
49445
|
});
|
|
49219
49446
|
InputJax.AbstractInputJax = void 0;
|
|
49220
|
-
var Options_js_1$
|
|
49447
|
+
var Options_js_1$c = Options$2;
|
|
49221
49448
|
var FunctionList_js_1$2 = FunctionList$1;
|
|
49222
49449
|
var AbstractInputJax = (function () {
|
|
49223
49450
|
function AbstractInputJax(options) {
|
|
@@ -49227,7 +49454,7 @@ var AbstractInputJax = (function () {
|
|
|
49227
49454
|
this.adaptor = null;
|
|
49228
49455
|
this.mmlFactory = null;
|
|
49229
49456
|
var CLASS = this.constructor;
|
|
49230
|
-
this.options = (0, Options_js_1$
|
|
49457
|
+
this.options = (0, Options_js_1$c.userOptions)((0, Options_js_1$c.defaultOptions)({}, CLASS.OPTIONS), options);
|
|
49231
49458
|
this.preFilters = new FunctionList_js_1$2.FunctionList();
|
|
49232
49459
|
this.postFilters = new FunctionList_js_1$2.FunctionList();
|
|
49233
49460
|
}
|
|
@@ -49275,194 +49502,6 @@ var AbstractInputJax = (function () {
|
|
|
49275
49502
|
return AbstractInputJax;
|
|
49276
49503
|
})();
|
|
49277
49504
|
InputJax.AbstractInputJax = AbstractInputJax;
|
|
49278
|
-
var FindMathML$1 = {};
|
|
49279
|
-
var FindMath = {};
|
|
49280
|
-
Object.defineProperty(FindMath, "__esModule", {
|
|
49281
|
-
value: true
|
|
49282
|
-
});
|
|
49283
|
-
FindMath.AbstractFindMath = void 0;
|
|
49284
|
-
var Options_js_1$c = Options$2;
|
|
49285
|
-
var AbstractFindMath = (function () {
|
|
49286
|
-
function AbstractFindMath(options) {
|
|
49287
|
-
var CLASS = this.constructor;
|
|
49288
|
-
this.options = (0, Options_js_1$c.userOptions)((0, Options_js_1$c.defaultOptions)({}, CLASS.OPTIONS), options);
|
|
49289
|
-
}
|
|
49290
|
-
AbstractFindMath.OPTIONS = {};
|
|
49291
|
-
return AbstractFindMath;
|
|
49292
|
-
})();
|
|
49293
|
-
FindMath.AbstractFindMath = AbstractFindMath;
|
|
49294
|
-
var __extends$1J = commonjsGlobal && commonjsGlobal.__extends || (function () {
|
|
49295
|
-
var extendStatics = function (d, b) {
|
|
49296
|
-
extendStatics = Object.setPrototypeOf || ({
|
|
49297
|
-
__proto__: []
|
|
49298
|
-
}) instanceof Array && (function (d, b) {
|
|
49299
|
-
d.__proto__ = b;
|
|
49300
|
-
}) || (function (d, b) {
|
|
49301
|
-
for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p];
|
|
49302
|
-
});
|
|
49303
|
-
return extendStatics(d, b);
|
|
49304
|
-
};
|
|
49305
|
-
return function (d, b) {
|
|
49306
|
-
if (typeof b !== "function" && b !== null) throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
|
|
49307
|
-
extendStatics(d, b);
|
|
49308
|
-
function __() {
|
|
49309
|
-
this.constructor = d;
|
|
49310
|
-
}
|
|
49311
|
-
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
|
|
49312
|
-
};
|
|
49313
|
-
})();
|
|
49314
|
-
var __values$F = commonjsGlobal && commonjsGlobal.__values || (function (o) {
|
|
49315
|
-
var s = typeof Symbol === "function" && Symbol.iterator, m = s && o[s], i = 0;
|
|
49316
|
-
if (m) return m.call(o);
|
|
49317
|
-
if (o && typeof o.length === "number") return {
|
|
49318
|
-
next: function () {
|
|
49319
|
-
if (o && i >= o.length) o = void 0;
|
|
49320
|
-
return {
|
|
49321
|
-
value: o && o[i++],
|
|
49322
|
-
done: !o
|
|
49323
|
-
};
|
|
49324
|
-
}
|
|
49325
|
-
};
|
|
49326
|
-
throw new TypeError(s ? "Object is not iterable." : "Symbol.iterator is not defined.");
|
|
49327
|
-
});
|
|
49328
|
-
Object.defineProperty(FindMathML$1, "__esModule", {
|
|
49329
|
-
value: true
|
|
49330
|
-
});
|
|
49331
|
-
FindMathML$1.FindMathML = void 0;
|
|
49332
|
-
var FindMath_js_1$1 = FindMath;
|
|
49333
|
-
var NAMESPACE = 'http://www.w3.org/1998/Math/MathML';
|
|
49334
|
-
var FindMathML = (function (_super) {
|
|
49335
|
-
__extends$1J(FindMathML, _super);
|
|
49336
|
-
function FindMathML() {
|
|
49337
|
-
return _super !== null && _super.apply(this, arguments) || this;
|
|
49338
|
-
}
|
|
49339
|
-
FindMathML.prototype.findMath = function (node) {
|
|
49340
|
-
var set = new Set();
|
|
49341
|
-
this.findMathNodes(node, set);
|
|
49342
|
-
this.findMathPrefixed(node, set);
|
|
49343
|
-
var html = this.adaptor.root(this.adaptor.document);
|
|
49344
|
-
if (this.adaptor.kind(html) === 'html' && set.size === 0) {
|
|
49345
|
-
this.findMathNS(node, set);
|
|
49346
|
-
}
|
|
49347
|
-
return this.processMath(set);
|
|
49348
|
-
};
|
|
49349
|
-
FindMathML.prototype.findMathNodes = function (node, set) {
|
|
49350
|
-
var e_1, _a;
|
|
49351
|
-
try {
|
|
49352
|
-
for (var _b = __values$F(this.adaptor.tags(node, 'math')), _c = _b.next(); !_c.done; _c = _b.next()) {
|
|
49353
|
-
var math = _c.value;
|
|
49354
|
-
set.add(math);
|
|
49355
|
-
}
|
|
49356
|
-
} catch (e_1_1) {
|
|
49357
|
-
e_1 = {
|
|
49358
|
-
error: e_1_1
|
|
49359
|
-
};
|
|
49360
|
-
} finally {
|
|
49361
|
-
try {
|
|
49362
|
-
if (_c && !_c.done && (_a = _b.return)) _a.call(_b);
|
|
49363
|
-
} finally {
|
|
49364
|
-
if (e_1) throw e_1.error;
|
|
49365
|
-
}
|
|
49366
|
-
}
|
|
49367
|
-
};
|
|
49368
|
-
FindMathML.prototype.findMathPrefixed = function (node, set) {
|
|
49369
|
-
var e_2, _a, e_3, _b;
|
|
49370
|
-
var html = this.adaptor.root(this.adaptor.document);
|
|
49371
|
-
try {
|
|
49372
|
-
for (var _c = __values$F(this.adaptor.allAttributes(html)), _d = _c.next(); !_d.done; _d = _c.next()) {
|
|
49373
|
-
var attr = _d.value;
|
|
49374
|
-
if (attr.name.substr(0, 6) === 'xmlns:' && attr.value === NAMESPACE) {
|
|
49375
|
-
var prefix = attr.name.substr(6);
|
|
49376
|
-
try {
|
|
49377
|
-
for (var _e = (e_3 = void 0, __values$F(this.adaptor.tags(node, prefix + ':math'))), _f = _e.next(); !_f.done; _f = _e.next()) {
|
|
49378
|
-
var math = _f.value;
|
|
49379
|
-
set.add(math);
|
|
49380
|
-
}
|
|
49381
|
-
} catch (e_3_1) {
|
|
49382
|
-
e_3 = {
|
|
49383
|
-
error: e_3_1
|
|
49384
|
-
};
|
|
49385
|
-
} finally {
|
|
49386
|
-
try {
|
|
49387
|
-
if (_f && !_f.done && (_b = _e.return)) _b.call(_e);
|
|
49388
|
-
} finally {
|
|
49389
|
-
if (e_3) throw e_3.error;
|
|
49390
|
-
}
|
|
49391
|
-
}
|
|
49392
|
-
}
|
|
49393
|
-
}
|
|
49394
|
-
} catch (e_2_1) {
|
|
49395
|
-
e_2 = {
|
|
49396
|
-
error: e_2_1
|
|
49397
|
-
};
|
|
49398
|
-
} finally {
|
|
49399
|
-
try {
|
|
49400
|
-
if (_d && !_d.done && (_a = _c.return)) _a.call(_c);
|
|
49401
|
-
} finally {
|
|
49402
|
-
if (e_2) throw e_2.error;
|
|
49403
|
-
}
|
|
49404
|
-
}
|
|
49405
|
-
};
|
|
49406
|
-
FindMathML.prototype.findMathNS = function (node, set) {
|
|
49407
|
-
var e_4, _a;
|
|
49408
|
-
try {
|
|
49409
|
-
for (var _b = __values$F(this.adaptor.tags(node, 'math', NAMESPACE)), _c = _b.next(); !_c.done; _c = _b.next()) {
|
|
49410
|
-
var math = _c.value;
|
|
49411
|
-
set.add(math);
|
|
49412
|
-
}
|
|
49413
|
-
} catch (e_4_1) {
|
|
49414
|
-
e_4 = {
|
|
49415
|
-
error: e_4_1
|
|
49416
|
-
};
|
|
49417
|
-
} finally {
|
|
49418
|
-
try {
|
|
49419
|
-
if (_c && !_c.done && (_a = _b.return)) _a.call(_b);
|
|
49420
|
-
} finally {
|
|
49421
|
-
if (e_4) throw e_4.error;
|
|
49422
|
-
}
|
|
49423
|
-
}
|
|
49424
|
-
};
|
|
49425
|
-
FindMathML.prototype.processMath = function (set) {
|
|
49426
|
-
var e_5, _a;
|
|
49427
|
-
var math = [];
|
|
49428
|
-
try {
|
|
49429
|
-
for (var _b = __values$F(Array.from(set)), _c = _b.next(); !_c.done; _c = _b.next()) {
|
|
49430
|
-
var mml = _c.value;
|
|
49431
|
-
var display = this.adaptor.getAttribute(mml, 'display') === 'block' || this.adaptor.getAttribute(mml, 'mode') === 'display';
|
|
49432
|
-
var start = {
|
|
49433
|
-
node: mml,
|
|
49434
|
-
n: 0,
|
|
49435
|
-
delim: ''
|
|
49436
|
-
};
|
|
49437
|
-
var end = {
|
|
49438
|
-
node: mml,
|
|
49439
|
-
n: 0,
|
|
49440
|
-
delim: ''
|
|
49441
|
-
};
|
|
49442
|
-
math.push({
|
|
49443
|
-
math: this.adaptor.outerHTML(mml),
|
|
49444
|
-
start: start,
|
|
49445
|
-
end: end,
|
|
49446
|
-
display: display
|
|
49447
|
-
});
|
|
49448
|
-
}
|
|
49449
|
-
} catch (e_5_1) {
|
|
49450
|
-
e_5 = {
|
|
49451
|
-
error: e_5_1
|
|
49452
|
-
};
|
|
49453
|
-
} finally {
|
|
49454
|
-
try {
|
|
49455
|
-
if (_c && !_c.done && (_a = _b.return)) _a.call(_b);
|
|
49456
|
-
} finally {
|
|
49457
|
-
if (e_5) throw e_5.error;
|
|
49458
|
-
}
|
|
49459
|
-
}
|
|
49460
|
-
return math;
|
|
49461
|
-
};
|
|
49462
|
-
FindMathML.OPTIONS = {};
|
|
49463
|
-
return FindMathML;
|
|
49464
|
-
})(FindMath_js_1$1.AbstractFindMath);
|
|
49465
|
-
FindMathML$1.FindMathML = FindMathML;
|
|
49466
49505
|
var MathMLCompile$1 = {};
|
|
49467
49506
|
var Entities$1 = {};
|
|
49468
49507
|
var AsyncLoad = {};
|
|
@@ -92054,7 +92093,7 @@ var unWrapMath = function unWrapMath(content) {
|
|
|
92054
92093
|
};
|
|
92055
92094
|
};
|
|
92056
92095
|
normalization.unWrapMath = unWrapMath;
|
|
92057
|
-
const require$$
|
|
92096
|
+
const require$$22$2 = _dll_debug;
|
|
92058
92097
|
(function (exports) {
|
|
92059
92098
|
var _interopRequireDefault = interopRequireDefault.exports;
|
|
92060
92099
|
Object.defineProperty(exports, "__esModule", {
|
|
@@ -92064,10 +92103,17 @@ const require$$15$4 = _dll_debug;
|
|
|
92064
92103
|
var _toConsumableArray2 = _interopRequireDefault(toConsumableArray$1.exports);
|
|
92065
92104
|
var _typeof2 = _interopRequireDefault(_typeof$g.exports);
|
|
92066
92105
|
var _defineProperty2 = _interopRequireDefault(defineProperty$6.exports);
|
|
92106
|
+
var _classCallCheck2 = _interopRequireDefault(classCallCheck$5.exports);
|
|
92107
|
+
var _createClass2 = _interopRequireDefault(createClass$4.exports);
|
|
92108
|
+
var _get2 = _interopRequireDefault(get$2.exports);
|
|
92109
|
+
var _inherits2 = _interopRequireDefault(inherits$3.exports);
|
|
92110
|
+
var _possibleConstructorReturn2 = _interopRequireDefault(possibleConstructorReturn$3.exports);
|
|
92111
|
+
var _getPrototypeOf2 = _interopRequireDefault(getPrototypeOf$2.exports);
|
|
92067
92112
|
var _mathjax = mathjax;
|
|
92068
92113
|
var _assistiveMml = assistiveMml;
|
|
92069
92114
|
var _semanticEnrich = semanticEnrich;
|
|
92070
92115
|
var _MenuHandler = MenuHandler$1;
|
|
92116
|
+
var _FindMathML2 = FindMathML$1;
|
|
92071
92117
|
var _mathml = mathml;
|
|
92072
92118
|
var _tex = tex$2;
|
|
92073
92119
|
var _chtml = chtml$1;
|
|
@@ -92075,12 +92121,13 @@ const require$$15$4 = _dll_debug;
|
|
|
92075
92121
|
var _browserAdaptor = browserAdaptor$1;
|
|
92076
92122
|
var _AllPackages = AllPackages;
|
|
92077
92123
|
var _mstack = mstack;
|
|
92078
|
-
var _debug = _interopRequireDefault(require$$
|
|
92124
|
+
var _debug = _interopRequireDefault(require$$22$2);
|
|
92079
92125
|
var _normalization = normalization;
|
|
92080
92126
|
var _MmlFactory = MmlFactory$1;
|
|
92081
92127
|
var _SerializedMmlVisitor = SerializedMmlVisitor;
|
|
92082
92128
|
var _WrapperFactory = WrapperFactory$2;
|
|
92083
92129
|
var _mspace = mspace$1;
|
|
92130
|
+
var _HTMLDomStrings = HTMLDomStrings$1;
|
|
92084
92131
|
function ownKeys(object, enumerableOnly) {
|
|
92085
92132
|
var keys = Object.keys(object);
|
|
92086
92133
|
if (Object.getOwnPropertySymbols) {
|
|
@@ -92102,6 +92149,30 @@ const require$$15$4 = _dll_debug;
|
|
|
92102
92149
|
}
|
|
92103
92150
|
return target;
|
|
92104
92151
|
}
|
|
92152
|
+
function _createSuper(Derived) {
|
|
92153
|
+
var hasNativeReflectConstruct = _isNativeReflectConstruct();
|
|
92154
|
+
return function _createSuperInternal() {
|
|
92155
|
+
var Super = (0, _getPrototypeOf2["default"])(Derived), result;
|
|
92156
|
+
if (hasNativeReflectConstruct) {
|
|
92157
|
+
var NewTarget = (0, _getPrototypeOf2["default"])(this).constructor;
|
|
92158
|
+
result = Reflect.construct(Super, arguments, NewTarget);
|
|
92159
|
+
} else {
|
|
92160
|
+
result = Super.apply(this, arguments);
|
|
92161
|
+
}
|
|
92162
|
+
return (0, _possibleConstructorReturn2["default"])(this, result);
|
|
92163
|
+
};
|
|
92164
|
+
}
|
|
92165
|
+
function _isNativeReflectConstruct() {
|
|
92166
|
+
if (typeof Reflect === "undefined" || !Reflect.construct) return false;
|
|
92167
|
+
if (Reflect.construct.sham) return false;
|
|
92168
|
+
if (typeof Proxy === "function") return true;
|
|
92169
|
+
try {
|
|
92170
|
+
Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {}));
|
|
92171
|
+
return true;
|
|
92172
|
+
} catch (e) {
|
|
92173
|
+
return false;
|
|
92174
|
+
}
|
|
92175
|
+
}
|
|
92105
92176
|
if (typeof window !== 'undefined') {
|
|
92106
92177
|
(0, _html.RegisterHTMLHandler)((0, _browserAdaptor.browserAdaptor)());
|
|
92107
92178
|
}
|
|
@@ -92156,6 +92227,28 @@ const require$$15$4 = _dll_debug;
|
|
|
92156
92227
|
return node.setAttribute('displaystyle', 'true');
|
|
92157
92228
|
});
|
|
92158
92229
|
};
|
|
92230
|
+
var myFindMathML = (function (_FindMathML) {
|
|
92231
|
+
(0, _inherits2["default"])(myFindMathML, _FindMathML);
|
|
92232
|
+
var _super = _createSuper(myFindMathML);
|
|
92233
|
+
function myFindMathML() {
|
|
92234
|
+
(0, _classCallCheck2["default"])(this, myFindMathML);
|
|
92235
|
+
return _super.apply(this, arguments);
|
|
92236
|
+
}
|
|
92237
|
+
(0, _createClass2["default"])(myFindMathML, [{
|
|
92238
|
+
key: "processMath",
|
|
92239
|
+
value: function processMath(set) {
|
|
92240
|
+
var adaptor = this.adaptor;
|
|
92241
|
+
for (var _i = 0, _Array$from = Array.from(set); _i < _Array$from.length; _i++) {
|
|
92242
|
+
var mml = _Array$from[_i];
|
|
92243
|
+
if (adaptor.kind(adaptor.parent(mml)) === 'mjx-assistive-mml') {
|
|
92244
|
+
set["delete"](mml);
|
|
92245
|
+
}
|
|
92246
|
+
}
|
|
92247
|
+
return (0, _get2["default"])((0, _getPrototypeOf2["default"])(myFindMathML.prototype), "processMath", this).call(this, set);
|
|
92248
|
+
}
|
|
92249
|
+
}]);
|
|
92250
|
+
return myFindMathML;
|
|
92251
|
+
})(_FindMathML2.FindMathML);
|
|
92159
92252
|
var createMathMLInstance = function createMathMLInstance(opts) {
|
|
92160
92253
|
var docProvided = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : document;
|
|
92161
92254
|
opts = opts || defaultOpts();
|
|
@@ -92185,7 +92278,8 @@ const require$$15$4 = _dll_debug;
|
|
|
92185
92278
|
parseError: function parseError(node) {
|
|
92186
92279
|
console.log('error:', node);
|
|
92187
92280
|
this.error(this.adaptor.textContent(node).replace(/\n.*/g, ''));
|
|
92188
|
-
}
|
|
92281
|
+
},
|
|
92282
|
+
FindMathML: new myFindMathML()
|
|
92189
92283
|
};
|
|
92190
92284
|
var fontURL = ("https://unpkg.com/mathjax-full@").concat(_mathjax.mathjax.version, "/ts/output/chtml/fonts/tex-woff-v2");
|
|
92191
92285
|
var htmlConfig = {
|
|
@@ -92210,7 +92304,10 @@ const require$$15$4 = _dll_debug;
|
|
|
92210
92304
|
},
|
|
92211
92305
|
enrichSpeech: 'deep',
|
|
92212
92306
|
InputJax: [new _tex.TeX(texConfig), mml],
|
|
92213
|
-
OutputJax: new _chtml.CHTML(htmlConfig)
|
|
92307
|
+
OutputJax: new _chtml.CHTML(htmlConfig),
|
|
92308
|
+
DomStrings: new _HTMLDomStrings.HTMLDomStrings({
|
|
92309
|
+
skipHtmlTags: ['script', 'noscript', 'style', 'textarea', 'pre', 'code', 'annotation', 'annotation-xml', 'mjx-assistive-mml', 'mjx-container']
|
|
92310
|
+
})
|
|
92214
92311
|
});
|
|
92215
92312
|
mml.setMmlFactory(customMmlFactory);
|
|
92216
92313
|
return html;
|
package/package.json
CHANGED
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
"access": "public"
|
|
5
5
|
},
|
|
6
6
|
"repository": "pie-framework/pie-elements",
|
|
7
|
-
"version": "7.3.2-next.
|
|
7
|
+
"version": "7.3.2-next.56+84607098f",
|
|
8
8
|
"description": "",
|
|
9
9
|
"scripts": {
|
|
10
10
|
"postpublish": "../../scripts/postpublish"
|
|
@@ -12,7 +12,7 @@
|
|
|
12
12
|
"dependencies": {
|
|
13
13
|
"@material-ui/core": "^3.9.2",
|
|
14
14
|
"@pie-framework/pie-player-events": "^0.1.0",
|
|
15
|
-
"@pie-lib/pie-toolbox": "2.9.
|
|
15
|
+
"@pie-lib/pie-toolbox": "2.9.1",
|
|
16
16
|
"classnames": "^2.2.5",
|
|
17
17
|
"lodash": "^4.17.10",
|
|
18
18
|
"prop-types": "^15.6.1",
|
|
@@ -21,7 +21,7 @@
|
|
|
21
21
|
},
|
|
22
22
|
"author": "",
|
|
23
23
|
"license": "ISC",
|
|
24
|
-
"gitHead": "
|
|
24
|
+
"gitHead": "84607098f90d542235187f26ad36b4e31848593d",
|
|
25
25
|
"main": "lib/index.js",
|
|
26
26
|
"module": "src/index.js",
|
|
27
27
|
"exports": {
|