mystmd 1.4.0__py3-none-any.whl → 1.5.1__py3-none-any.whl
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.
- {mystmd-1.4.0.dist-info → mystmd-1.5.1.dist-info}/METADATA +1 -1
- mystmd-1.5.1.dist-info/RECORD +9 -0
- mystmd_py/myst.cjs +424 -346
- mystmd-1.4.0.dist-info/RECORD +0 -9
- {mystmd-1.4.0.dist-info → mystmd-1.5.1.dist-info}/WHEEL +0 -0
- {mystmd-1.4.0.dist-info → mystmd-1.5.1.dist-info}/entry_points.txt +0 -0
- {mystmd-1.4.0.dist-info → mystmd-1.5.1.dist-info}/licenses/LICENSE +0 -0
mystmd_py/myst.cjs
CHANGED
@@ -33649,8 +33649,8 @@ var require_type = __commonJS({
|
|
33649
33649
|
exports2.typeMatcher = void 0;
|
33650
33650
|
var _logger = _interopRequireDefault3(require_logger());
|
33651
33651
|
var _dataType = require_dataType();
|
33652
|
-
function _interopRequireDefault3(
|
33653
|
-
return
|
33652
|
+
function _interopRequireDefault3(e2) {
|
33653
|
+
return e2 && e2.__esModule ? e2 : { default: e2 };
|
33654
33654
|
}
|
33655
33655
|
var types6 = {};
|
33656
33656
|
var dataTypes = {};
|
@@ -33759,14 +33759,8 @@ var require_parser2 = __commonJS({
|
|
33759
33759
|
});
|
33760
33760
|
exports2.TypeParser = exports2.FormatParser = exports2.DataParser = void 0;
|
33761
33761
|
var _type3 = require_type();
|
33762
|
-
function _defineProperty(
|
33763
|
-
|
33764
|
-
if (key2 in obj) {
|
33765
|
-
Object.defineProperty(obj, key2, { value, enumerable: true, configurable: true, writable: true });
|
33766
|
-
} else {
|
33767
|
-
obj[key2] = value;
|
33768
|
-
}
|
33769
|
-
return obj;
|
33762
|
+
function _defineProperty(e2, r2, t2) {
|
33763
|
+
return (r2 = _toPropertyKey(r2)) in e2 ? Object.defineProperty(e2, r2, { value: t2, enumerable: true, configurable: true, writable: true }) : e2[r2] = t2, e2;
|
33770
33764
|
}
|
33771
33765
|
function _toPropertyKey(t2) {
|
33772
33766
|
var i2 = _toPrimitive(t2, "string");
|
@@ -34176,14 +34170,8 @@ var require_csl = __commonJS({
|
|
34176
34170
|
}
|
34177
34171
|
return e2;
|
34178
34172
|
}
|
34179
|
-
function _defineProperty(
|
34180
|
-
|
34181
|
-
if (key2 in obj) {
|
34182
|
-
Object.defineProperty(obj, key2, { value, enumerable: true, configurable: true, writable: true });
|
34183
|
-
} else {
|
34184
|
-
obj[key2] = value;
|
34185
|
-
}
|
34186
|
-
return obj;
|
34173
|
+
function _defineProperty(e2, r2, t2) {
|
34174
|
+
return (r2 = _toPropertyKey(r2)) in e2 ? Object.defineProperty(e2, r2, { value: t2, enumerable: true, configurable: true, writable: true }) : e2[r2] = t2, e2;
|
34187
34175
|
}
|
34188
34176
|
function _toPropertyKey(t2) {
|
34189
34177
|
var i2 = _toPrimitive(t2, "string");
|
@@ -34472,6 +34460,145 @@ var require_csl = __commonJS({
|
|
34472
34460
|
}
|
34473
34461
|
});
|
34474
34462
|
|
34463
|
+
// ../../node_modules/@citation-js/core/lib/plugins/input/data.js
|
34464
|
+
var require_data = __commonJS({
|
34465
|
+
"../../node_modules/@citation-js/core/lib/plugins/input/data.js"(exports2) {
|
34466
|
+
"use strict";
|
34467
|
+
Object.defineProperty(exports2, "__esModule", {
|
34468
|
+
value: true
|
34469
|
+
});
|
34470
|
+
exports2.addDataParser = addDataParser;
|
34471
|
+
exports2.data = data;
|
34472
|
+
exports2.dataAsync = dataAsync;
|
34473
|
+
exports2.hasDataParser = hasDataParser;
|
34474
|
+
exports2.listDataParser = listDataParser;
|
34475
|
+
exports2.removeDataParser = removeDataParser;
|
34476
|
+
var _type3 = require_type();
|
34477
|
+
var parsers = {};
|
34478
|
+
var asyncParsers = {};
|
34479
|
+
var nativeParsers = {
|
34480
|
+
"@csl/object": (input3) => [input3],
|
34481
|
+
"@csl/list+object": (input3) => input3,
|
34482
|
+
"@else/list+object": (input3) => input3.map((item) => {
|
34483
|
+
const type2 = (0, _type3.type)(item);
|
34484
|
+
return data(item, type2);
|
34485
|
+
}).flat(),
|
34486
|
+
"@invalid": () => {
|
34487
|
+
throw new Error("This format is not supported or recognized");
|
34488
|
+
}
|
34489
|
+
};
|
34490
|
+
var nativeAsyncParsers = {
|
34491
|
+
"@else/list+object": (input3) => Promise.all(input3.map((item) => {
|
34492
|
+
const type2 = (0, _type3.type)(item);
|
34493
|
+
return dataAsync(item, type2);
|
34494
|
+
})).then((input4) => input4.flat())
|
34495
|
+
};
|
34496
|
+
function data(input3, type2) {
|
34497
|
+
if (typeof parsers[type2] === "function") {
|
34498
|
+
return parsers[type2](input3);
|
34499
|
+
} else if (typeof nativeParsers[type2] === "function") {
|
34500
|
+
return nativeParsers[type2](input3);
|
34501
|
+
} else {
|
34502
|
+
throw new TypeError(`No synchronous parser found for ${type2}`);
|
34503
|
+
}
|
34504
|
+
}
|
34505
|
+
async function dataAsync(input3, type2) {
|
34506
|
+
if (typeof asyncParsers[type2] === "function") {
|
34507
|
+
return asyncParsers[type2](input3);
|
34508
|
+
} else if (typeof nativeAsyncParsers[type2] === "function") {
|
34509
|
+
return nativeAsyncParsers[type2](input3);
|
34510
|
+
} else if (hasDataParser(type2, false)) {
|
34511
|
+
return data(input3, type2);
|
34512
|
+
} else {
|
34513
|
+
throw new TypeError(`No parser found for ${type2}`);
|
34514
|
+
}
|
34515
|
+
}
|
34516
|
+
function addDataParser(format, {
|
34517
|
+
parser: parser3,
|
34518
|
+
async
|
34519
|
+
}) {
|
34520
|
+
if (async) {
|
34521
|
+
asyncParsers[format] = parser3;
|
34522
|
+
} else {
|
34523
|
+
parsers[format] = parser3;
|
34524
|
+
}
|
34525
|
+
}
|
34526
|
+
function hasDataParser(type2, async) {
|
34527
|
+
return async ? asyncParsers[type2] || nativeAsyncParsers[type2] : parsers[type2] || nativeParsers[type2];
|
34528
|
+
}
|
34529
|
+
function removeDataParser(type2, async) {
|
34530
|
+
delete (async ? asyncParsers : parsers)[type2];
|
34531
|
+
}
|
34532
|
+
function listDataParser(async) {
|
34533
|
+
return Object.keys(async ? asyncParsers : parsers);
|
34534
|
+
}
|
34535
|
+
}
|
34536
|
+
});
|
34537
|
+
|
34538
|
+
// ../../node_modules/@citation-js/core/lib/plugins/input/register.js
|
34539
|
+
var require_register = __commonJS({
|
34540
|
+
"../../node_modules/@citation-js/core/lib/plugins/input/register.js"(exports2) {
|
34541
|
+
"use strict";
|
34542
|
+
Object.defineProperty(exports2, "__esModule", {
|
34543
|
+
value: true
|
34544
|
+
});
|
34545
|
+
exports2.add = add2;
|
34546
|
+
exports2.get = get2;
|
34547
|
+
exports2.has = has3;
|
34548
|
+
exports2.list = list6;
|
34549
|
+
exports2.remove = remove3;
|
34550
|
+
var _parser = require_parser2();
|
34551
|
+
var _type3 = require_type();
|
34552
|
+
var _data = require_data();
|
34553
|
+
var formats = {};
|
34554
|
+
function add2(format, parsers) {
|
34555
|
+
const formatParser = new _parser.FormatParser(format, parsers);
|
34556
|
+
formatParser.validate();
|
34557
|
+
const index4 = formats[format] || (formats[format] = {});
|
34558
|
+
if (formatParser.typeParser) {
|
34559
|
+
(0, _type3.addTypeParser)(format, formatParser.typeParser);
|
34560
|
+
index4.type = true;
|
34561
|
+
}
|
34562
|
+
if (formatParser.dataParser) {
|
34563
|
+
(0, _data.addDataParser)(format, formatParser.dataParser);
|
34564
|
+
index4.data = true;
|
34565
|
+
}
|
34566
|
+
if (formatParser.asyncDataParser) {
|
34567
|
+
(0, _data.addDataParser)(format, formatParser.asyncDataParser);
|
34568
|
+
index4.asyncData = true;
|
34569
|
+
}
|
34570
|
+
if (parsers.outputs) {
|
34571
|
+
index4.outputs = parsers.outputs;
|
34572
|
+
}
|
34573
|
+
}
|
34574
|
+
function get2(format) {
|
34575
|
+
return formats[format];
|
34576
|
+
}
|
34577
|
+
function remove3(format) {
|
34578
|
+
const index4 = formats[format];
|
34579
|
+
if (!index4) {
|
34580
|
+
return;
|
34581
|
+
}
|
34582
|
+
if (index4.type) {
|
34583
|
+
(0, _type3.removeTypeParser)(format);
|
34584
|
+
}
|
34585
|
+
if (index4.data) {
|
34586
|
+
(0, _data.removeDataParser)(format);
|
34587
|
+
}
|
34588
|
+
if (index4.asyncData) {
|
34589
|
+
(0, _data.removeDataParser)(format, true);
|
34590
|
+
}
|
34591
|
+
delete formats[format];
|
34592
|
+
}
|
34593
|
+
function has3(format) {
|
34594
|
+
return format in formats;
|
34595
|
+
}
|
34596
|
+
function list6() {
|
34597
|
+
return Object.keys(formats);
|
34598
|
+
}
|
34599
|
+
}
|
34600
|
+
});
|
34601
|
+
|
34475
34602
|
// ../../node_modules/@citation-js/core/lib/util/csl.js
|
34476
34603
|
var require_csl2 = __commonJS({
|
34477
34604
|
"../../node_modules/@citation-js/core/lib/util/csl.js"(exports2) {
|
@@ -34502,14 +34629,8 @@ var require_csl2 = __commonJS({
|
|
34502
34629
|
}
|
34503
34630
|
return e2;
|
34504
34631
|
}
|
34505
|
-
function _defineProperty(
|
34506
|
-
|
34507
|
-
if (key2 in obj) {
|
34508
|
-
Object.defineProperty(obj, key2, { value, enumerable: true, configurable: true, writable: true });
|
34509
|
-
} else {
|
34510
|
-
obj[key2] = value;
|
34511
|
-
}
|
34512
|
-
return obj;
|
34632
|
+
function _defineProperty(e2, r2, t2) {
|
34633
|
+
return (r2 = _toPropertyKey(r2)) in e2 ? Object.defineProperty(e2, r2, { value: t2, enumerable: true, configurable: true, writable: true }) : e2[r2] = t2, e2;
|
34513
34634
|
}
|
34514
34635
|
function _toPropertyKey(t2) {
|
34515
34636
|
var i2 = _toPrimitive(t2, "string");
|
@@ -39205,7 +39326,7 @@ var require_package = __commonJS({
|
|
39205
39326
|
"../../node_modules/@citation-js/core/package.json"(exports2, module2) {
|
39206
39327
|
module2.exports = {
|
39207
39328
|
name: "@citation-js/core",
|
39208
|
-
version: "0.7.
|
39329
|
+
version: "0.7.18",
|
39209
39330
|
description: "Convert different bibliographic metadata sources",
|
39210
39331
|
keywords: [
|
39211
39332
|
"citation-js",
|
@@ -39245,7 +39366,7 @@ var require_package = __commonJS({
|
|
39245
39366
|
"fetch-ponyfill": "^7.1.0",
|
39246
39367
|
"sync-fetch": "^0.4.1"
|
39247
39368
|
},
|
39248
|
-
gitHead: "
|
39369
|
+
gitHead: "c4ac806070502051e36cf3ab8ad29f3d97e85978"
|
39249
39370
|
};
|
39250
39371
|
}
|
39251
39372
|
});
|
@@ -39265,8 +39386,8 @@ var require_fetchFile = __commonJS({
|
|
39265
39386
|
var _fetchPonyfill = _interopRequireDefault3(require_fetch_node());
|
39266
39387
|
var _logger = _interopRequireDefault3(require_logger());
|
39267
39388
|
var _package = _interopRequireDefault3(require_package());
|
39268
|
-
function _interopRequireDefault3(
|
39269
|
-
return
|
39389
|
+
function _interopRequireDefault3(e2) {
|
39390
|
+
return e2 && e2.__esModule ? e2 : { default: e2 };
|
39270
39391
|
}
|
39271
39392
|
var isBrowser = typeof location !== "undefined" && typeof navigator !== "undefined";
|
39272
39393
|
var {
|
@@ -39487,7 +39608,7 @@ var require_stack = __commonJS({
|
|
39487
39608
|
});
|
39488
39609
|
|
39489
39610
|
// ../../node_modules/@citation-js/core/lib/util/register.js
|
39490
|
-
var
|
39611
|
+
var require_register2 = __commonJS({
|
39491
39612
|
"../../node_modules/@citation-js/core/lib/util/register.js"(exports2) {
|
39492
39613
|
"use strict";
|
39493
39614
|
Object.defineProperty(exports2, "__esModule", {
|
@@ -39769,11 +39890,11 @@ var require_util = __commonJS({
|
|
39769
39890
|
var _fetchFile = require_fetchFile();
|
39770
39891
|
var _fetchId = _interopRequireDefault3(require_fetchId());
|
39771
39892
|
var _stack = _interopRequireDefault3(require_stack());
|
39772
|
-
var _register = _interopRequireDefault3(
|
39893
|
+
var _register = _interopRequireDefault3(require_register2());
|
39773
39894
|
var _grammar = require_grammar();
|
39774
39895
|
var _translator = require_translator();
|
39775
|
-
function _interopRequireDefault3(
|
39776
|
-
return
|
39896
|
+
function _interopRequireDefault3(e2) {
|
39897
|
+
return e2 && e2.__esModule ? e2 : { default: e2 };
|
39777
39898
|
}
|
39778
39899
|
}
|
39779
39900
|
});
|
@@ -39788,12 +39909,12 @@ var require_chain = __commonJS({
|
|
39788
39909
|
exports2.chainLinkAsync = exports2.chainLink = exports2.chainAsync = exports2.chain = void 0;
|
39789
39910
|
var _index4 = require_util();
|
39790
39911
|
var _logger = _interopRequireDefault3(require_logger());
|
39791
|
-
var _register =
|
39912
|
+
var _register = require_register();
|
39792
39913
|
var _type3 = require_type();
|
39793
39914
|
var _data = require_data();
|
39794
39915
|
var _graph = require_graph();
|
39795
|
-
function _interopRequireDefault3(
|
39796
|
-
return
|
39916
|
+
function _interopRequireDefault3(e2) {
|
39917
|
+
return e2 && e2.__esModule ? e2 : { default: e2 };
|
39797
39918
|
}
|
39798
39919
|
function prepareParseGraph(graph) {
|
39799
39920
|
return graph.reduce((array, next) => {
|
@@ -39897,139 +40018,6 @@ var require_chain = __commonJS({
|
|
39897
40018
|
}
|
39898
40019
|
});
|
39899
40020
|
|
39900
|
-
// ../../node_modules/@citation-js/core/lib/plugins/input/data.js
|
39901
|
-
var require_data = __commonJS({
|
39902
|
-
"../../node_modules/@citation-js/core/lib/plugins/input/data.js"(exports2) {
|
39903
|
-
"use strict";
|
39904
|
-
Object.defineProperty(exports2, "__esModule", {
|
39905
|
-
value: true
|
39906
|
-
});
|
39907
|
-
exports2.addDataParser = addDataParser;
|
39908
|
-
exports2.data = data;
|
39909
|
-
exports2.dataAsync = dataAsync;
|
39910
|
-
exports2.hasDataParser = hasDataParser;
|
39911
|
-
exports2.listDataParser = listDataParser;
|
39912
|
-
exports2.removeDataParser = removeDataParser;
|
39913
|
-
var _chain = require_chain();
|
39914
|
-
var parsers = {};
|
39915
|
-
var asyncParsers = {};
|
39916
|
-
var nativeParsers = {
|
39917
|
-
"@csl/object": (input3) => [input3],
|
39918
|
-
"@csl/list+object": (input3) => input3,
|
39919
|
-
"@else/list+object": (input3) => input3.map(_chain.chain).flat(),
|
39920
|
-
"@invalid": () => {
|
39921
|
-
throw new Error("This format is not supported or recognized");
|
39922
|
-
}
|
39923
|
-
};
|
39924
|
-
var nativeAsyncParsers = {
|
39925
|
-
"@else/list+object": async (input3) => (await Promise.all(input3.map(_chain.chainAsync))).flat()
|
39926
|
-
};
|
39927
|
-
function data(input3, type2) {
|
39928
|
-
if (typeof parsers[type2] === "function") {
|
39929
|
-
return parsers[type2](input3);
|
39930
|
-
} else if (typeof nativeParsers[type2] === "function") {
|
39931
|
-
return nativeParsers[type2](input3);
|
39932
|
-
} else {
|
39933
|
-
throw new TypeError(`No synchronous parser found for ${type2}`);
|
39934
|
-
}
|
39935
|
-
}
|
39936
|
-
async function dataAsync(input3, type2) {
|
39937
|
-
if (typeof asyncParsers[type2] === "function") {
|
39938
|
-
return asyncParsers[type2](input3);
|
39939
|
-
} else if (typeof nativeAsyncParsers[type2] === "function") {
|
39940
|
-
return nativeAsyncParsers[type2](input3);
|
39941
|
-
} else if (hasDataParser(type2, false)) {
|
39942
|
-
return data(input3, type2);
|
39943
|
-
} else {
|
39944
|
-
throw new TypeError(`No parser found for ${type2}`);
|
39945
|
-
}
|
39946
|
-
}
|
39947
|
-
function addDataParser(format, {
|
39948
|
-
parser: parser3,
|
39949
|
-
async
|
39950
|
-
}) {
|
39951
|
-
if (async) {
|
39952
|
-
asyncParsers[format] = parser3;
|
39953
|
-
} else {
|
39954
|
-
parsers[format] = parser3;
|
39955
|
-
}
|
39956
|
-
}
|
39957
|
-
function hasDataParser(type2, async) {
|
39958
|
-
return async ? asyncParsers[type2] || nativeAsyncParsers[type2] : parsers[type2] || nativeParsers[type2];
|
39959
|
-
}
|
39960
|
-
function removeDataParser(type2, async) {
|
39961
|
-
delete (async ? asyncParsers : parsers)[type2];
|
39962
|
-
}
|
39963
|
-
function listDataParser(async) {
|
39964
|
-
return Object.keys(async ? asyncParsers : parsers);
|
39965
|
-
}
|
39966
|
-
}
|
39967
|
-
});
|
39968
|
-
|
39969
|
-
// ../../node_modules/@citation-js/core/lib/plugins/input/register.js
|
39970
|
-
var require_register2 = __commonJS({
|
39971
|
-
"../../node_modules/@citation-js/core/lib/plugins/input/register.js"(exports2) {
|
39972
|
-
"use strict";
|
39973
|
-
Object.defineProperty(exports2, "__esModule", {
|
39974
|
-
value: true
|
39975
|
-
});
|
39976
|
-
exports2.add = add2;
|
39977
|
-
exports2.get = get2;
|
39978
|
-
exports2.has = has3;
|
39979
|
-
exports2.list = list6;
|
39980
|
-
exports2.remove = remove3;
|
39981
|
-
var _parser = require_parser2();
|
39982
|
-
var _type3 = require_type();
|
39983
|
-
var _data = require_data();
|
39984
|
-
var formats = {};
|
39985
|
-
function add2(format, parsers) {
|
39986
|
-
const formatParser = new _parser.FormatParser(format, parsers);
|
39987
|
-
formatParser.validate();
|
39988
|
-
const index4 = formats[format] || (formats[format] = {});
|
39989
|
-
if (formatParser.typeParser) {
|
39990
|
-
(0, _type3.addTypeParser)(format, formatParser.typeParser);
|
39991
|
-
index4.type = true;
|
39992
|
-
}
|
39993
|
-
if (formatParser.dataParser) {
|
39994
|
-
(0, _data.addDataParser)(format, formatParser.dataParser);
|
39995
|
-
index4.data = true;
|
39996
|
-
}
|
39997
|
-
if (formatParser.asyncDataParser) {
|
39998
|
-
(0, _data.addDataParser)(format, formatParser.asyncDataParser);
|
39999
|
-
index4.asyncData = true;
|
40000
|
-
}
|
40001
|
-
if (parsers.outputs) {
|
40002
|
-
index4.outputs = parsers.outputs;
|
40003
|
-
}
|
40004
|
-
}
|
40005
|
-
function get2(format) {
|
40006
|
-
return formats[format];
|
40007
|
-
}
|
40008
|
-
function remove3(format) {
|
40009
|
-
const index4 = formats[format];
|
40010
|
-
if (!index4) {
|
40011
|
-
return;
|
40012
|
-
}
|
40013
|
-
if (index4.type) {
|
40014
|
-
(0, _type3.removeTypeParser)(format);
|
40015
|
-
}
|
40016
|
-
if (index4.data) {
|
40017
|
-
(0, _data.removeDataParser)(format);
|
40018
|
-
}
|
40019
|
-
if (index4.asyncData) {
|
40020
|
-
(0, _data.removeDataParser)(format, true);
|
40021
|
-
}
|
40022
|
-
delete formats[format];
|
40023
|
-
}
|
40024
|
-
function has3(format) {
|
40025
|
-
return format in formats;
|
40026
|
-
}
|
40027
|
-
function list6() {
|
40028
|
-
return Object.keys(formats);
|
40029
|
-
}
|
40030
|
-
}
|
40031
|
-
});
|
40032
|
-
|
40033
40021
|
// ../../node_modules/@citation-js/core/lib/plugins/input/index.js
|
40034
40022
|
var require_input2 = __commonJS({
|
40035
40023
|
"../../node_modules/@citation-js/core/lib/plugins/input/index.js"(exports2) {
|
@@ -40045,7 +40033,7 @@ var require_input2 = __commonJS({
|
|
40045
40033
|
var graph = _interopRequireWildcard(require_graph());
|
40046
40034
|
var parser3 = _interopRequireWildcard(require_parser2());
|
40047
40035
|
var csl = _interopRequireWildcard(require_csl());
|
40048
|
-
var _register =
|
40036
|
+
var _register = require_register();
|
40049
40037
|
Object.keys(_register).forEach(function(key2) {
|
40050
40038
|
if (key2 === "default" || key2 === "__esModule")
|
40051
40039
|
return;
|
@@ -40147,8 +40135,8 @@ var require_set = __commonJS({
|
|
40147
40135
|
exports2.setAsync = setAsync;
|
40148
40136
|
var _index4 = require_input2();
|
40149
40137
|
var _fetchId = _interopRequireDefault3(require_fetchId());
|
40150
|
-
function _interopRequireDefault3(
|
40151
|
-
return
|
40138
|
+
function _interopRequireDefault3(e2) {
|
40139
|
+
return e2 && e2.__esModule ? e2 : { default: e2 };
|
40152
40140
|
}
|
40153
40141
|
function add2(data, options = {}, log = false) {
|
40154
40142
|
if (options === true || log === true) {
|
@@ -40302,9 +40290,9 @@ var require_output2 = __commonJS({
|
|
40302
40290
|
exports2.list = list6;
|
40303
40291
|
exports2.register = void 0;
|
40304
40292
|
exports2.remove = remove3;
|
40305
|
-
var _register = _interopRequireDefault3(
|
40306
|
-
function _interopRequireDefault3(
|
40307
|
-
return
|
40293
|
+
var _register = _interopRequireDefault3(require_register2());
|
40294
|
+
function _interopRequireDefault3(e2) {
|
40295
|
+
return e2 && e2.__esModule ? e2 : { default: e2 };
|
40308
40296
|
}
|
40309
40297
|
function validate5(name3, formatter) {
|
40310
40298
|
if (typeof name3 !== "string") {
|
@@ -40468,8 +40456,8 @@ var require_static = __commonJS({
|
|
40468
40456
|
}
|
40469
40457
|
});
|
40470
40458
|
});
|
40471
|
-
function _interopRequireDefault3(
|
40472
|
-
return
|
40459
|
+
function _interopRequireDefault3(e2) {
|
40460
|
+
return e2 && e2.__esModule ? e2 : { default: e2 };
|
40473
40461
|
}
|
40474
40462
|
}
|
40475
40463
|
});
|
@@ -40547,9 +40535,9 @@ var require_dict = __commonJS({
|
|
40547
40535
|
exports2.register = void 0;
|
40548
40536
|
exports2.remove = remove3;
|
40549
40537
|
exports2.textDict = void 0;
|
40550
|
-
var _register = _interopRequireDefault3(
|
40551
|
-
function _interopRequireDefault3(
|
40552
|
-
return
|
40538
|
+
var _register = _interopRequireDefault3(require_register2());
|
40539
|
+
function _interopRequireDefault3(e2) {
|
40540
|
+
return e2 && e2.__esModule ? e2 : { default: e2 };
|
40553
40541
|
}
|
40554
40542
|
function validate5(name3, dict) {
|
40555
40543
|
if (typeof name3 !== "string") {
|
@@ -40765,8 +40753,8 @@ var require_json = __commonJS({
|
|
40765
40753
|
});
|
40766
40754
|
exports2.default = exports2.parse = parseJSON;
|
40767
40755
|
var _logger = _interopRequireDefault3(require_logger());
|
40768
|
-
function _interopRequireDefault3(
|
40769
|
-
return
|
40756
|
+
function _interopRequireDefault3(e2) {
|
40757
|
+
return e2 && e2.__esModule ? e2 : { default: e2 };
|
40770
40758
|
}
|
40771
40759
|
var substituters = [[/((?:\[|:|,)\s*)'((?:\\'|[^'])*?[^\\])?'(?=\s*(?:\]|}|,))/g, '$1"$2"'], [/((?:(?:"|]|}|\/[gmiuys]|\.|(?:\d|\.|-)*\d)\s*,|{)\s*)(?:"([^":\n]+?)"|'([^":\n]+?)'|([^":\n]+?))(\s*):/g, '$1"$2$3$4"$5:']];
|
40772
40760
|
function parseJSON(str2) {
|
@@ -40926,8 +40914,8 @@ var require_json2 = __commonJS({
|
|
40926
40914
|
var plugins3 = _interopRequireWildcard(require_plugins());
|
40927
40915
|
var util4 = _interopRequireWildcard(require_util());
|
40928
40916
|
var _logger = _interopRequireDefault3(require_logger());
|
40929
|
-
function _interopRequireDefault3(
|
40930
|
-
return
|
40917
|
+
function _interopRequireDefault3(e2) {
|
40918
|
+
return e2 && e2.__esModule ? e2 : { default: e2 };
|
40931
40919
|
}
|
40932
40920
|
function _getRequireWildcardCache(e2) {
|
40933
40921
|
if ("function" != typeof WeakMap)
|
@@ -41030,8 +41018,8 @@ var require_output3 = __commonJS({
|
|
41030
41018
|
exports2.default = void 0;
|
41031
41019
|
var _json = _interopRequireDefault3(require_json2());
|
41032
41020
|
var _label = _interopRequireDefault3(require_label());
|
41033
|
-
function _interopRequireDefault3(
|
41034
|
-
return
|
41021
|
+
function _interopRequireDefault3(e2) {
|
41022
|
+
return e2 && e2.__esModule ? e2 : { default: e2 };
|
41035
41023
|
}
|
41036
41024
|
var _default2 = exports2.default = Object.assign({}, _json.default, _label.default);
|
41037
41025
|
}
|
@@ -41044,8 +41032,8 @@ var require_plugin_common = __commonJS({
|
|
41044
41032
|
var plugins3 = _interopRequireWildcard(require_plugins());
|
41045
41033
|
var _input = require_input3();
|
41046
41034
|
var _output = _interopRequireDefault3(require_output3());
|
41047
|
-
function _interopRequireDefault3(
|
41048
|
-
return
|
41035
|
+
function _interopRequireDefault3(e2) {
|
41036
|
+
return e2 && e2.__esModule ? e2 : { default: e2 };
|
41049
41037
|
}
|
41050
41038
|
function _getRequireWildcardCache(e2) {
|
41051
41039
|
if ("function" != typeof WeakMap)
|
@@ -41130,8 +41118,8 @@ var require_lib6 = __commonJS({
|
|
41130
41118
|
}
|
41131
41119
|
return n.default = e2, t2 && t2.set(e2, n), n;
|
41132
41120
|
}
|
41133
|
-
function _interopRequireDefault3(
|
41134
|
-
return
|
41121
|
+
function _interopRequireDefault3(e2) {
|
41122
|
+
return e2 && e2.__esModule ? e2 : { default: e2 };
|
41135
41123
|
}
|
41136
41124
|
var version4 = exports2.version = _package.default.version;
|
41137
41125
|
}
|
@@ -52838,8 +52826,8 @@ var require_constants = __commonJS({
|
|
52838
52826
|
var _required2 = _interopRequireDefault3(require_required());
|
52839
52827
|
var _fieldTypes2 = _interopRequireDefault3(require_fieldTypes());
|
52840
52828
|
var _unicode = _interopRequireDefault3(require_unicode2());
|
52841
|
-
function _interopRequireDefault3(
|
52842
|
-
return
|
52829
|
+
function _interopRequireDefault3(e2) {
|
52830
|
+
return e2 && e2.__esModule ? e2 : { default: e2 };
|
52843
52831
|
}
|
52844
52832
|
var required = exports2.required = _required2.default;
|
52845
52833
|
var fieldTypes = exports2.fieldTypes = _fieldTypes2.default;
|
@@ -53039,8 +53027,8 @@ var require_config3 = __commonJS({
|
|
53039
53027
|
}
|
53040
53028
|
return n.default = e2, t2 && t2.set(e2, n), n;
|
53041
53029
|
}
|
53042
|
-
function _interopRequireDefault3(
|
53043
|
-
return
|
53030
|
+
function _interopRequireDefault3(e2) {
|
53031
|
+
return e2 && e2.__esModule ? e2 : { default: e2 };
|
53044
53032
|
}
|
53045
53033
|
var _default2 = exports2.default = {
|
53046
53034
|
constants: constants2,
|
@@ -53079,8 +53067,8 @@ var require_file = __commonJS({
|
|
53079
53067
|
var _moo = _interopRequireDefault3(require_moo());
|
53080
53068
|
var _config2 = _interopRequireDefault3(require_config3());
|
53081
53069
|
var _constants = require_constants();
|
53082
|
-
function _interopRequireDefault3(
|
53083
|
-
return
|
53070
|
+
function _interopRequireDefault3(e2) {
|
53071
|
+
return e2 && e2.__esModule ? e2 : { default: e2 };
|
53084
53072
|
}
|
53085
53073
|
function ownKeys(e2, r2) {
|
53086
53074
|
var t2 = Object.keys(e2);
|
@@ -53103,14 +53091,8 @@ var require_file = __commonJS({
|
|
53103
53091
|
}
|
53104
53092
|
return e2;
|
53105
53093
|
}
|
53106
|
-
function _defineProperty(
|
53107
|
-
|
53108
|
-
if (key2 in obj) {
|
53109
|
-
Object.defineProperty(obj, key2, { value, enumerable: true, configurable: true, writable: true });
|
53110
|
-
} else {
|
53111
|
-
obj[key2] = value;
|
53112
|
-
}
|
53113
|
-
return obj;
|
53094
|
+
function _defineProperty(e2, r2, t2) {
|
53095
|
+
return (r2 = _toPropertyKey(r2)) in e2 ? Object.defineProperty(e2, r2, { value: t2, enumerable: true, configurable: true, writable: true }) : e2[r2] = t2, e2;
|
53114
53096
|
}
|
53115
53097
|
function _toPropertyKey(t2) {
|
53116
53098
|
var i2 = _toPrimitive(t2, "string");
|
@@ -53434,8 +53416,8 @@ var require_shared3 = __commonJS({
|
|
53434
53416
|
exports2.parseMonth = parseMonth;
|
53435
53417
|
var _core3 = require_lib6();
|
53436
53418
|
var _config2 = _interopRequireDefault3(require_config3());
|
53437
|
-
function _interopRequireDefault3(
|
53438
|
-
return
|
53419
|
+
function _interopRequireDefault3(e2) {
|
53420
|
+
return e2 && e2.__esModule ? e2 : { default: e2 };
|
53439
53421
|
}
|
53440
53422
|
var stopWords = /* @__PURE__ */ new Set(["the", "a", "an"]);
|
53441
53423
|
var unsafeChars = /(?:<\/?.*?>|[\u0020-\u002F\u003A-\u0040\u005B-\u005E\u0060\u007B-\u007F])+/g;
|
@@ -54073,8 +54055,8 @@ var require_biblatex = __commonJS({
|
|
54073
54055
|
var _date = require_lib13();
|
54074
54056
|
var _biblatexTypes = _interopRequireDefault3(require_biblatexTypes());
|
54075
54057
|
var _shared = require_shared3();
|
54076
|
-
function _interopRequireDefault3(
|
54077
|
-
return
|
54058
|
+
function _interopRequireDefault3(e2) {
|
54059
|
+
return e2 && e2.__esModule ? e2 : { default: e2 };
|
54078
54060
|
}
|
54079
54061
|
var nonSpec = [{
|
54080
54062
|
source: "note",
|
@@ -54526,7 +54508,7 @@ var require_biblatex = __commonJS({
|
|
54526
54508
|
when: {
|
54527
54509
|
source: true,
|
54528
54510
|
target: {
|
54529
|
-
type: ["article", "article-journal", "article-magazine", "article-newspaper", "bill", "book", "broadcast", "chapter", "classic", "collection", "dataset", "document", "entry", "entry-dictionary", "entry-encyclopedia", "event", "figure", "graphic", "hearing", "interview", "legal_case", "legislation", "manuscript", "map", "motion_picture", "musical_score", "pamphlet", "
|
54511
|
+
type: ["article", "article-journal", "article-magazine", "article-newspaper", "bill", "book", "broadcast", "chapter", "classic", "collection", "dataset", "document", "entry", "entry-dictionary", "entry-encyclopedia", "event", "figure", "graphic", "hearing", "interview", "legal_case", "legislation", "manuscript", "map", "motion_picture", "musical_score", "pamphlet", "patent", "performance", "periodical", "personal_communication", "post", "post-weblog", "regulation", "review", "review-book", "software", "song", "speech", "standard", "treaty"]
|
54530
54512
|
}
|
54531
54513
|
}
|
54532
54514
|
}, {
|
@@ -54538,7 +54520,7 @@ var require_biblatex = __commonJS({
|
|
54538
54520
|
publisher: false
|
54539
54521
|
},
|
54540
54522
|
target: {
|
54541
|
-
type: "webpage"
|
54523
|
+
type: ["paper-conference", "webpage"]
|
54542
54524
|
}
|
54543
54525
|
}
|
54544
54526
|
}, {
|
@@ -54656,8 +54638,8 @@ var require_bibtex = __commonJS({
|
|
54656
54638
|
var _date = require_lib13();
|
54657
54639
|
var _bibtexTypes = _interopRequireDefault3(require_bibtexTypes());
|
54658
54640
|
var _shared = require_shared3();
|
54659
|
-
function _interopRequireDefault3(
|
54660
|
-
return
|
54641
|
+
function _interopRequireDefault3(e2) {
|
54642
|
+
return e2 && e2.__esModule ? e2 : { default: e2 };
|
54661
54643
|
}
|
54662
54644
|
var _default2 = exports2.default = new _core3.util.Translator([{
|
54663
54645
|
source: "note",
|
@@ -54943,14 +54925,8 @@ var require_crossref = __commonJS({
|
|
54943
54925
|
}
|
54944
54926
|
return e2;
|
54945
54927
|
}
|
54946
|
-
function _defineProperty(
|
54947
|
-
|
54948
|
-
if (key2 in obj) {
|
54949
|
-
Object.defineProperty(obj, key2, { value, enumerable: true, configurable: true, writable: true });
|
54950
|
-
} else {
|
54951
|
-
obj[key2] = value;
|
54952
|
-
}
|
54953
|
-
return obj;
|
54928
|
+
function _defineProperty(e2, r2, t2) {
|
54929
|
+
return (r2 = _toPropertyKey(r2)) in e2 ? Object.defineProperty(e2, r2, { value: t2, enumerable: true, configurable: true, writable: true }) : e2[r2] = t2, e2;
|
54954
54930
|
}
|
54955
54931
|
function _toPropertyKey(t2) {
|
54956
54932
|
var i2 = _toPrimitive(t2, "string");
|
@@ -55051,40 +55027,31 @@ var require_mapping = __commonJS({
|
|
55051
55027
|
var _biblatex = _interopRequireDefault3(require_biblatex());
|
55052
55028
|
var _bibtex = _interopRequireDefault3(require_bibtex());
|
55053
55029
|
var _crossref = require_crossref();
|
55054
|
-
function _interopRequireDefault3(
|
55055
|
-
return
|
55030
|
+
function _interopRequireDefault3(e2) {
|
55031
|
+
return e2 && e2.__esModule ? e2 : { default: e2 };
|
55056
55032
|
}
|
55057
|
-
function _objectWithoutProperties(
|
55058
|
-
if (
|
55033
|
+
function _objectWithoutProperties(e2, t2) {
|
55034
|
+
if (null == e2)
|
55059
55035
|
return {};
|
55060
|
-
var
|
55061
|
-
var key2, i2;
|
55036
|
+
var o, r2, i2 = _objectWithoutPropertiesLoose(e2, t2);
|
55062
55037
|
if (Object.getOwnPropertySymbols) {
|
55063
|
-
var
|
55064
|
-
for (
|
55065
|
-
|
55066
|
-
if (excluded.indexOf(key2) >= 0)
|
55067
|
-
continue;
|
55068
|
-
if (!Object.prototype.propertyIsEnumerable.call(source2, key2))
|
55069
|
-
continue;
|
55070
|
-
target[key2] = source2[key2];
|
55071
|
-
}
|
55038
|
+
var s5 = Object.getOwnPropertySymbols(e2);
|
55039
|
+
for (r2 = 0; r2 < s5.length; r2++)
|
55040
|
+
o = s5[r2], t2.includes(o) || {}.propertyIsEnumerable.call(e2, o) && (i2[o] = e2[o]);
|
55072
55041
|
}
|
55073
|
-
return
|
55042
|
+
return i2;
|
55074
55043
|
}
|
55075
|
-
function _objectWithoutPropertiesLoose(
|
55076
|
-
if (
|
55044
|
+
function _objectWithoutPropertiesLoose(r2, e2) {
|
55045
|
+
if (null == r2)
|
55077
55046
|
return {};
|
55078
|
-
var
|
55079
|
-
var
|
55080
|
-
|
55081
|
-
|
55082
|
-
|
55083
|
-
|
55084
|
-
|
55085
|
-
|
55086
|
-
}
|
55087
|
-
return target;
|
55047
|
+
var t2 = {};
|
55048
|
+
for (var n in r2)
|
55049
|
+
if ({}.hasOwnProperty.call(r2, n)) {
|
55050
|
+
if (e2.includes(n))
|
55051
|
+
continue;
|
55052
|
+
t2[n] = r2[n];
|
55053
|
+
}
|
55054
|
+
return t2;
|
55088
55055
|
}
|
55089
55056
|
function ownKeys(e2, r2) {
|
55090
55057
|
var t2 = Object.keys(e2);
|
@@ -55107,14 +55074,8 @@ var require_mapping = __commonJS({
|
|
55107
55074
|
}
|
55108
55075
|
return e2;
|
55109
55076
|
}
|
55110
|
-
function _defineProperty(
|
55111
|
-
|
55112
|
-
if (key2 in obj) {
|
55113
|
-
Object.defineProperty(obj, key2, { value, enumerable: true, configurable: true, writable: true });
|
55114
|
-
} else {
|
55115
|
-
obj[key2] = value;
|
55116
|
-
}
|
55117
|
-
return obj;
|
55077
|
+
function _defineProperty(e2, r2, t2) {
|
55078
|
+
return (r2 = _toPropertyKey(r2)) in e2 ? Object.defineProperty(e2, r2, { value: t2, enumerable: true, configurable: true, writable: true }) : e2[r2] = t2, e2;
|
55118
55079
|
}
|
55119
55080
|
function _toPropertyKey(t2) {
|
55120
55081
|
var i2 = _toPrimitive(t2, "string");
|
@@ -55316,8 +55277,8 @@ var require_value = __commonJS({
|
|
55316
55277
|
}
|
55317
55278
|
return n.default = e2, t2 && t2.set(e2, n), n;
|
55318
55279
|
}
|
55319
|
-
function _interopRequireDefault3(
|
55320
|
-
return
|
55280
|
+
function _interopRequireDefault3(e2) {
|
55281
|
+
return e2 && e2.__esModule ? e2 : { default: e2 };
|
55321
55282
|
}
|
55322
55283
|
function ownKeys(e2, r2) {
|
55323
55284
|
var t2 = Object.keys(e2);
|
@@ -55340,14 +55301,8 @@ var require_value = __commonJS({
|
|
55340
55301
|
}
|
55341
55302
|
return e2;
|
55342
55303
|
}
|
55343
|
-
function _defineProperty(
|
55344
|
-
|
55345
|
-
if (key2 in obj) {
|
55346
|
-
Object.defineProperty(obj, key2, { value, enumerable: true, configurable: true, writable: true });
|
55347
|
-
} else {
|
55348
|
-
obj[key2] = value;
|
55349
|
-
}
|
55350
|
-
return obj;
|
55304
|
+
function _defineProperty(e2, r2, t2) {
|
55305
|
+
return (r2 = _toPropertyKey(r2)) in e2 ? Object.defineProperty(e2, r2, { value: t2, enumerable: true, configurable: true, writable: true }) : e2[r2] = t2, e2;
|
55351
55306
|
}
|
55352
55307
|
function _toPropertyKey(t2) {
|
55353
55308
|
var i2 = _toPrimitive(t2, "string");
|
@@ -55899,8 +55854,8 @@ var require_entries = __commonJS({
|
|
55899
55854
|
var _index4 = require_mapping();
|
55900
55855
|
var _value = require_value();
|
55901
55856
|
var _constants = require_constants();
|
55902
|
-
function _interopRequireDefault3(
|
55903
|
-
return
|
55857
|
+
function _interopRequireDefault3(e2) {
|
55858
|
+
return e2 && e2.__esModule ? e2 : { default: e2 };
|
55904
55859
|
}
|
55905
55860
|
function ownKeys(e2, r2) {
|
55906
55861
|
var t2 = Object.keys(e2);
|
@@ -55923,14 +55878,8 @@ var require_entries = __commonJS({
|
|
55923
55878
|
}
|
55924
55879
|
return e2;
|
55925
55880
|
}
|
55926
|
-
function _defineProperty(
|
55927
|
-
|
55928
|
-
if (key2 in obj) {
|
55929
|
-
Object.defineProperty(obj, key2, { value, enumerable: true, configurable: true, writable: true });
|
55930
|
-
} else {
|
55931
|
-
obj[key2] = value;
|
55932
|
-
}
|
55933
|
-
return obj;
|
55881
|
+
function _defineProperty(e2, r2, t2) {
|
55882
|
+
return (r2 = _toPropertyKey(r2)) in e2 ? Object.defineProperty(e2, r2, { value: t2, enumerable: true, configurable: true, writable: true }) : e2[r2] = t2, e2;
|
55934
55883
|
}
|
55935
55884
|
function _toPropertyKey(t2) {
|
55936
55885
|
var i2 = _toPrimitive(t2, "string");
|
@@ -56082,8 +56031,8 @@ var require_value2 = __commonJS({
|
|
56082
56031
|
exports2.formatAnnotation = formatAnnotation;
|
56083
56032
|
var _config2 = _interopRequireDefault3(require_config3());
|
56084
56033
|
var _constants = require_constants();
|
56085
|
-
function _interopRequireDefault3(
|
56086
|
-
return
|
56034
|
+
function _interopRequireDefault3(e2) {
|
56035
|
+
return e2 && e2.__esModule ? e2 : { default: e2 };
|
56087
56036
|
}
|
56088
56037
|
var unicode = {};
|
56089
56038
|
for (const command in _constants.commands) {
|
@@ -56099,7 +56048,7 @@ var require_value2 = __commonJS({
|
|
56099
56048
|
for (const command in _constants.mathCommands) {
|
56100
56049
|
mathUnicode[_constants.mathCommands[command]] = command;
|
56101
56050
|
}
|
56102
|
-
var UNSAFE_UNICODE = /[^a-zA-Z0-9\s!"
|
56051
|
+
var UNSAFE_UNICODE = /[^a-zA-Z0-9\s!"'()*+,\-./:;=?@[\]\u0300-\u0308\u030a-\u030c\u0332\u0323\u0327\u0328\u0361\u0326]/g;
|
56103
56052
|
var DIACRITIC_PATTERN = /.[\u0300-\u0308\u030a-\u030c\u0332\u0323\u0327\u0328\u0361\u0326]+/g;
|
56104
56053
|
var LONE_DIACRITIC_PATTERN = /[\u0300-\u0308\u030a-\u030c\u0332\u0323\u0327\u0328\u0361\u0326]/g;
|
56105
56054
|
var listDelimiters = {
|
@@ -56120,6 +56069,8 @@ var require_value2 = __commonJS({
|
|
56120
56069
|
return unicode[char] in _constants.ligatures ? unicode[char] : `\\${unicode[char]}{}`;
|
56121
56070
|
} else if (char in mathUnicode) {
|
56122
56071
|
return `$\\${mathUnicode[char]}$`;
|
56072
|
+
} else if (/^[&%$#_{}]$/.test(char)) {
|
56073
|
+
return `\\${char}`;
|
56123
56074
|
} else {
|
56124
56075
|
return "";
|
56125
56076
|
}
|
@@ -56299,8 +56250,8 @@ var require_bibtex2 = __commonJS({
|
|
56299
56250
|
});
|
56300
56251
|
exports2.format = format;
|
56301
56252
|
var _config2 = _interopRequireDefault3(require_config3());
|
56302
|
-
function _interopRequireDefault3(
|
56303
|
-
return
|
56253
|
+
function _interopRequireDefault3(e2) {
|
56254
|
+
return e2 && e2.__esModule ? e2 : { default: e2 };
|
56304
56255
|
}
|
56305
56256
|
function formatField(field, value, dict) {
|
56306
56257
|
return dict.listItem.join(`${field} = {${value}},`);
|
@@ -56448,8 +56399,8 @@ var require_locales2 = __commonJS({
|
|
56448
56399
|
exports2.locales = exports2.default = void 0;
|
56449
56400
|
var _core3 = require_lib6();
|
56450
56401
|
var _locales2 = _interopRequireDefault3(require_locales());
|
56451
|
-
function _interopRequireDefault3(
|
56452
|
-
return
|
56402
|
+
function _interopRequireDefault3(e2) {
|
56403
|
+
return e2 && e2.__esModule ? e2 : { default: e2 };
|
56453
56404
|
}
|
56454
56405
|
var locales = exports2.locales = new _core3.util.Register(_locales2.default);
|
56455
56406
|
var fetchLocale = (lang) => {
|
@@ -56490,8 +56441,8 @@ var require_styles2 = __commonJS({
|
|
56490
56441
|
exports2.templates = exports2.default = void 0;
|
56491
56442
|
var _core3 = require_lib6();
|
56492
56443
|
var _styles2 = _interopRequireDefault3(require_styles());
|
56493
|
-
function _interopRequireDefault3(
|
56494
|
-
return
|
56444
|
+
function _interopRequireDefault3(e2) {
|
56445
|
+
return e2 && e2.__esModule ? e2 : { default: e2 };
|
56495
56446
|
}
|
56496
56447
|
var templates = exports2.templates = new _core3.util.Register(_styles2.default);
|
56497
56448
|
var fetchStyle = (style3) => {
|
@@ -75484,8 +75435,8 @@ var require_engines = __commonJS({
|
|
75484
75435
|
var _citeproc = _interopRequireDefault3(require_citeproc_commonjs());
|
75485
75436
|
var _styles2 = require_styles2();
|
75486
75437
|
var _locales2 = require_locales2();
|
75487
|
-
function _interopRequireDefault3(
|
75488
|
-
return
|
75438
|
+
function _interopRequireDefault3(e2) {
|
75439
|
+
return e2 && e2.__esModule ? e2 : { default: e2 };
|
75489
75440
|
}
|
75490
75441
|
var proxied = Symbol.for("proxied");
|
75491
75442
|
var getWrapperProxy = function(original) {
|
@@ -75586,8 +75537,8 @@ var require_bibliography = __commonJS({
|
|
75586
75537
|
var _core3 = require_lib6();
|
75587
75538
|
var _engines2 = _interopRequireDefault3(require_engines());
|
75588
75539
|
var _attr = require_attr();
|
75589
|
-
function _interopRequireDefault3(
|
75590
|
-
return
|
75540
|
+
function _interopRequireDefault3(e2) {
|
75541
|
+
return e2 && e2.__esModule ? e2 : { default: e2 };
|
75591
75542
|
}
|
75592
75543
|
var getAffix = (source2, affix) => typeof affix === "function" ? affix(source2) : affix || "";
|
75593
75544
|
function bibliography2(data, options = {}) {
|
@@ -75640,8 +75591,8 @@ var require_citation = __commonJS({
|
|
75640
75591
|
exports2.default = citation;
|
75641
75592
|
var _core3 = require_lib6();
|
75642
75593
|
var _engines2 = _interopRequireDefault3(require_engines());
|
75643
|
-
function _interopRequireDefault3(
|
75644
|
-
return
|
75594
|
+
function _interopRequireDefault3(e2) {
|
75595
|
+
return e2 && e2.__esModule ? e2 : { default: e2 };
|
75645
75596
|
}
|
75646
75597
|
function prepareCiteItem(citeItem) {
|
75647
75598
|
return typeof citeItem === "object" ? citeItem : {
|
@@ -99543,7 +99494,7 @@ var require_parse4 = __commonJS({
|
|
99543
99494
|
POSIX_REGEX_SOURCE,
|
99544
99495
|
REGEX_NON_SPECIAL_CHARS,
|
99545
99496
|
REGEX_SPECIAL_CHARS_BACKREF,
|
99546
|
-
REPLACEMENTS
|
99497
|
+
REPLACEMENTS
|
99547
99498
|
} = constants2;
|
99548
99499
|
var expandRange = (args, options) => {
|
99549
99500
|
if (typeof options.expandRange === "function") {
|
@@ -99565,7 +99516,7 @@ var require_parse4 = __commonJS({
|
|
99565
99516
|
if (typeof input3 !== "string") {
|
99566
99517
|
throw new TypeError("Expected a string");
|
99567
99518
|
}
|
99568
|
-
input3 =
|
99519
|
+
input3 = REPLACEMENTS[input3] || input3;
|
99569
99520
|
const opts = { ...options };
|
99570
99521
|
const max = typeof opts.maxLength === "number" ? Math.min(MAX_LENGTH, opts.maxLength) : MAX_LENGTH;
|
99571
99522
|
let len = input3.length;
|
@@ -100247,7 +100198,7 @@ var require_parse4 = __commonJS({
|
|
100247
100198
|
if (len > max) {
|
100248
100199
|
throw new SyntaxError(`Input length: ${len}, exceeds maximum allowed length: ${max}`);
|
100249
100200
|
}
|
100250
|
-
input3 =
|
100201
|
+
input3 = REPLACEMENTS[input3] || input3;
|
100251
100202
|
const win322 = utils2.isWindows(options);
|
100252
100203
|
const {
|
100253
100204
|
DOT_LITERAL,
|
@@ -193440,7 +193391,7 @@ var {
|
|
193440
193391
|
} = import_index.default;
|
193441
193392
|
|
193442
193393
|
// src/version.ts
|
193443
|
-
var version = "1.
|
193394
|
+
var version = "1.5.1";
|
193444
193395
|
var version_default = version;
|
193445
193396
|
|
193446
193397
|
// ../myst-cli/dist/build/build.js
|
@@ -195391,7 +195342,7 @@ function validateFileEntry(entry, opts) {
|
|
195391
195342
|
function validateURLEntry(entry, opts) {
|
195392
195343
|
const intermediate = validateObjectKeys(entry, {
|
195393
195344
|
required: ["url"],
|
195394
|
-
optional: [...COMMON_ENTRY_KEYS, "children"]
|
195345
|
+
optional: [...COMMON_ENTRY_KEYS, "children", "open_in_same_tab"]
|
195395
195346
|
}, opts);
|
195396
195347
|
if (!intermediate) {
|
195397
195348
|
return void 0;
|
@@ -195402,6 +195353,9 @@ function validateURLEntry(entry, opts) {
|
|
195402
195353
|
}
|
195403
195354
|
const commonEntry = validateCommonEntry(intermediate, opts);
|
195404
195355
|
let output2 = { url, ...commonEntry };
|
195356
|
+
if (defined(entry.open_in_same_tab)) {
|
195357
|
+
output2.open_in_same_tab = validateBoolean(entry.open_in_same_tab, incrementOptions("open_in_same_tab", opts));
|
195358
|
+
}
|
195405
195359
|
if (defined(entry.children)) {
|
195406
195360
|
const children = validateList(intermediate.children, incrementOptions("children", opts), (item, ind) => validateEntry(item, incrementOptions(`children.${ind}`, opts)));
|
195407
195361
|
output2 = { children, ...output2 };
|
@@ -196110,6 +196064,12 @@ var licenses = {
|
|
196110
196064
|
osi: true,
|
196111
196065
|
free: true
|
196112
196066
|
},
|
196067
|
+
"Artistic-dist": {
|
196068
|
+
name: "Artistic License 1.0 (dist)"
|
196069
|
+
},
|
196070
|
+
"Aspell-RU": {
|
196071
|
+
name: "Aspell Russian License"
|
196072
|
+
},
|
196113
196073
|
"ASWF-Digital-Assets-1.0": {
|
196114
196074
|
name: "ASWF Digital Assets License version 1.0"
|
196115
196075
|
},
|
@@ -196185,6 +196145,9 @@ var licenses = {
|
|
196185
196145
|
name: "BSD-2-Clause Plus Patent License",
|
196186
196146
|
osi: true
|
196187
196147
|
},
|
196148
|
+
"BSD-2-Clause-pkgconf-disclaimer": {
|
196149
|
+
name: "BSD 2-Clause pkgconf disclaimer variant"
|
196150
|
+
},
|
196188
196151
|
"BSD-2-Clause-Views": {
|
196189
196152
|
name: "BSD 2-Clause with views sentence"
|
196190
196153
|
},
|
@@ -196662,6 +196625,9 @@ var licenses = {
|
|
196662
196625
|
Crossword: {
|
196663
196626
|
name: "Crossword License"
|
196664
196627
|
},
|
196628
|
+
CryptoSwift: {
|
196629
|
+
name: "CryptoSwift License"
|
196630
|
+
},
|
196665
196631
|
CrystalStacker: {
|
196666
196632
|
name: "CrystalStacker License"
|
196667
196633
|
},
|
@@ -196696,6 +196662,9 @@ var licenses = {
|
|
196696
196662
|
DOC: {
|
196697
196663
|
name: "DOC License"
|
196698
196664
|
},
|
196665
|
+
"DocBook-DTD": {
|
196666
|
+
name: "DocBook DTD License"
|
196667
|
+
},
|
196699
196668
|
"DocBook-Schema": {
|
196700
196669
|
name: "DocBook Schema License"
|
196701
196670
|
},
|
@@ -196827,9 +196796,18 @@ var licenses = {
|
|
196827
196796
|
FSFULLR: {
|
196828
196797
|
name: "FSF Unlimited License (with License Retention)"
|
196829
196798
|
},
|
196799
|
+
FSFULLRSD: {
|
196800
|
+
name: "FSF Unlimited License (with License Retention and Short Disclaimer)"
|
196801
|
+
},
|
196830
196802
|
FSFULLRWD: {
|
196831
196803
|
name: "FSF Unlimited License (With License Retention and Warranty Disclaimer)"
|
196832
196804
|
},
|
196805
|
+
"FSL-1.1-ALv2": {
|
196806
|
+
name: "Functional Source License, Version 1.1, ALv2 Future License"
|
196807
|
+
},
|
196808
|
+
"FSL-1.1-MIT": {
|
196809
|
+
name: "Functional Source License, Version 1.1, MIT Future License"
|
196810
|
+
},
|
196833
196811
|
FTL: {
|
196834
196812
|
name: "Freetype Project License",
|
196835
196813
|
free: true
|
@@ -196840,6 +196818,9 @@ var licenses = {
|
|
196840
196818
|
fwlw: {
|
196841
196819
|
name: "fwlw License"
|
196842
196820
|
},
|
196821
|
+
"Game-Programming-Gems": {
|
196822
|
+
name: "Game Programming Gems License"
|
196823
|
+
},
|
196843
196824
|
"GCR-docs": {
|
196844
196825
|
name: "Gnome GCR Documentation License"
|
196845
196826
|
},
|
@@ -196969,6 +196950,9 @@ var licenses = {
|
|
196969
196950
|
HaskellReport: {
|
196970
196951
|
name: "Haskell Language Report License"
|
196971
196952
|
},
|
196953
|
+
HDF5: {
|
196954
|
+
name: "HDF5 License"
|
196955
|
+
},
|
196972
196956
|
hdparm: {
|
196973
196957
|
name: "hdparm License"
|
196974
196958
|
},
|
@@ -197134,6 +197118,9 @@ var licenses = {
|
|
197134
197118
|
"JasPer-2.0": {
|
197135
197119
|
name: "JasPer License"
|
197136
197120
|
},
|
197121
|
+
jove: {
|
197122
|
+
name: "Jove License"
|
197123
|
+
},
|
197137
197124
|
"JPL-image": {
|
197138
197125
|
name: "JPL Image Use Policy"
|
197139
197126
|
},
|
@@ -197201,6 +197188,9 @@ var licenses = {
|
|
197201
197188
|
Libpng: {
|
197202
197189
|
name: "libpng License"
|
197203
197190
|
},
|
197191
|
+
"libpng-1.6.35": {
|
197192
|
+
name: "PNG Reference Library License v1 (for libpng 0.5 through 1.6.35)"
|
197193
|
+
},
|
197204
197194
|
"libpng-2.0": {
|
197205
197195
|
name: "PNG Reference Library version 2"
|
197206
197196
|
},
|
@@ -197300,6 +197290,9 @@ var licenses = {
|
|
197300
197290
|
MakeIndex: {
|
197301
197291
|
name: "MakeIndex License"
|
197302
197292
|
},
|
197293
|
+
man2html: {
|
197294
|
+
name: "man2html License"
|
197295
|
+
},
|
197303
197296
|
"Martin-Birgmeier": {
|
197304
197297
|
name: "Martin Birgmeier License"
|
197305
197298
|
},
|
@@ -197470,6 +197463,9 @@ var licenses = {
|
|
197470
197463
|
name: "Nethack General Public License",
|
197471
197464
|
osi: true
|
197472
197465
|
},
|
197466
|
+
ngrep: {
|
197467
|
+
name: "ngrep License"
|
197468
|
+
},
|
197473
197469
|
"NICTA-1.0": {
|
197474
197470
|
name: "NICTA Public Software License, Version 1.0"
|
197475
197471
|
},
|
@@ -197518,6 +197514,9 @@ var licenses = {
|
|
197518
197514
|
NRL: {
|
197519
197515
|
name: "NRL License"
|
197520
197516
|
},
|
197517
|
+
"NTIA-PD": {
|
197518
|
+
name: "NTIA Public Domain Notice"
|
197519
|
+
},
|
197521
197520
|
NTP: {
|
197522
197521
|
name: "NTP License",
|
197523
197522
|
osi: true
|
@@ -197896,6 +197895,9 @@ var licenses = {
|
|
197896
197895
|
snprintf: {
|
197897
197896
|
name: "snprintf License"
|
197898
197897
|
},
|
197898
|
+
SOFA: {
|
197899
|
+
name: "SOFA Software License"
|
197900
|
+
},
|
197899
197901
|
softSurfer: {
|
197900
197902
|
name: "softSurfer License"
|
197901
197903
|
},
|
@@ -197934,6 +197936,9 @@ var licenses = {
|
|
197934
197936
|
"SugarCRM-1.1.3": {
|
197935
197937
|
name: "SugarCRM Public License v1.1.3"
|
197936
197938
|
},
|
197939
|
+
"SUL-1.0": {
|
197940
|
+
name: "Sustainable Use License v1.0"
|
197941
|
+
},
|
197937
197942
|
"Sun-PPP": {
|
197938
197943
|
name: "Sun PPP License"
|
197939
197944
|
},
|
@@ -198041,6 +198046,12 @@ var licenses = {
|
|
198041
198046
|
osi: true,
|
198042
198047
|
free: true
|
198043
198048
|
},
|
198049
|
+
"Unlicense-libtelnet": {
|
198050
|
+
name: "Unlicense - libtelnet variant"
|
198051
|
+
},
|
198052
|
+
"Unlicense-libwhirlpool": {
|
198053
|
+
name: "Unlicense - libwhirlpool variant"
|
198054
|
+
},
|
198044
198055
|
"UPL-1.0": {
|
198045
198056
|
name: "Universal Permissive License v1.0",
|
198046
198057
|
osi: true,
|
@@ -222079,6 +222090,10 @@ var defaultHtmlToMdastOptions = {
|
|
222079
222090
|
attrs.title = node3.properties.title;
|
222080
222091
|
if (node3.properties.alt)
|
222081
222092
|
attrs.alt = node3.properties.alt;
|
222093
|
+
if (node3.properties.width)
|
222094
|
+
attrs.width = node3.properties.width;
|
222095
|
+
if (node3.properties.height)
|
222096
|
+
attrs.height = node3.properties.height;
|
222082
222097
|
return h4(node3, "image", attrs);
|
222083
222098
|
},
|
222084
222099
|
video(h4, node3) {
|
@@ -222125,6 +222140,10 @@ var defaultHtmlToMdastOptions = {
|
|
222125
222140
|
},
|
222126
222141
|
summary(h4, node3) {
|
222127
222142
|
return h4(node3, "summary", all5(h4, node3));
|
222143
|
+
},
|
222144
|
+
u(h4, node3) {
|
222145
|
+
const attrs = addClassAndIdentifier(node3);
|
222146
|
+
return h4(node3, "underline", attrs, all5(h4, node3));
|
222128
222147
|
}
|
222129
222148
|
}
|
222130
222149
|
};
|
@@ -236965,8 +236984,12 @@ var mathPlugin = (opts) => (tree, file) => {
|
|
236965
236984
|
};
|
236966
236985
|
|
236967
236986
|
// ../myst-transforms/dist/mathSimplifications.js
|
236968
|
-
var
|
236987
|
+
var TEXT_REPLACEMENTS = {
|
236969
236988
|
"\\pm": "\xB1",
|
236989
|
+
"\\circ": "\u2218",
|
236990
|
+
"\\degree": "\xB0"
|
236991
|
+
};
|
236992
|
+
var SYM_REPLACEMENTS = {
|
236970
236993
|
"\\star": "\u22C6",
|
236971
236994
|
"\\times": "\xD7",
|
236972
236995
|
"\\alpha": "\u03B1",
|
@@ -237015,33 +237038,38 @@ var REPLACEMENTS = {
|
|
237015
237038
|
"\\neq": "\u2260",
|
237016
237039
|
"\\cdot": "\u2022",
|
237017
237040
|
"\\geq": "\u2265",
|
237018
|
-
"\\leq": "\u2264"
|
237019
|
-
"\\circ": "\u2218"
|
237041
|
+
"\\leq": "\u2264"
|
237020
237042
|
};
|
237021
|
-
function getReplacement(symbol) {
|
237043
|
+
function getReplacement(symbol, options) {
|
237022
237044
|
if (!symbol)
|
237023
237045
|
return void 0;
|
237024
|
-
if (symbol.match(/^([a-zA-
|
237046
|
+
if ((options === null || options === void 0 ? void 0 : options.replaceText) !== false && symbol.match(/^([a-zA-Z]+)$/))
|
237047
|
+
return symbol;
|
237048
|
+
if ((options === null || options === void 0 ? void 0 : options.replaceNumber) !== false && symbol.match(/^([0-9+-]+)$/))
|
237025
237049
|
return symbol;
|
237026
|
-
|
237050
|
+
if ((options === null || options === void 0 ? void 0 : options.replaceText) !== false && TEXT_REPLACEMENTS[symbol])
|
237051
|
+
return TEXT_REPLACEMENTS[symbol];
|
237052
|
+
if ((options === null || options === void 0 ? void 0 : options.replaceSymbol) !== false && SYM_REPLACEMENTS[symbol])
|
237053
|
+
return SYM_REPLACEMENTS[symbol];
|
237054
|
+
return void 0;
|
237027
237055
|
}
|
237028
|
-
function replaceSymbol(node3) {
|
237056
|
+
function replaceSymbol(node3, options) {
|
237029
237057
|
const match3 = node3.value.match(/^(\\[a-zA-Z]+)$/);
|
237030
237058
|
if (!match3)
|
237031
237059
|
return false;
|
237032
|
-
const text7 = getReplacement(match3[1]);
|
237060
|
+
const text7 = getReplacement(match3[1], options);
|
237033
237061
|
if (!text7)
|
237034
237062
|
return false;
|
237035
237063
|
node3.type = "text";
|
237036
237064
|
node3.value = text7;
|
237037
237065
|
return true;
|
237038
237066
|
}
|
237039
|
-
function replaceDirectSubSuperScripts(node3) {
|
237067
|
+
function replaceDirectSubSuperScripts(node3, options) {
|
237040
237068
|
const match3 = node3.value.match(/^(\^|_)(?:(?:\{(\\?[a-zA-Z0-9+-]+)\})|(\\?[a-zA-Z0-9+-]+))$/);
|
237041
237069
|
if (!match3)
|
237042
237070
|
return false;
|
237043
237071
|
const script = match3[1] === "^" ? "superscript" : "subscript";
|
237044
|
-
const value = getReplacement(match3[2] || match3[3]);
|
237072
|
+
const value = getReplacement(match3[2] || match3[3], options);
|
237045
237073
|
if (!value)
|
237046
237074
|
return false;
|
237047
237075
|
if (value === "\u2218" && script === "superscript") {
|
@@ -237049,12 +237077,14 @@ function replaceDirectSubSuperScripts(node3) {
|
|
237049
237077
|
node3.value = "\xB0";
|
237050
237078
|
return true;
|
237051
237079
|
}
|
237080
|
+
if ((options === null || options === void 0 ? void 0 : options.replaceSymbol) === false)
|
237081
|
+
return false;
|
237052
237082
|
node3.type = script;
|
237053
237083
|
node3.children = [{ type: "text", value }];
|
237054
237084
|
delete node3.value;
|
237055
237085
|
return true;
|
237056
237086
|
}
|
237057
|
-
function replaceNumberedSubSuperScripts(node3) {
|
237087
|
+
function replaceNumberedSubSuperScripts(node3, options) {
|
237058
237088
|
const match3 = node3.value.match(/^([+-]?[\d.]+)(\^|_)(?:(?:\{([+-]?[\d.]+)\})|([+-]?[\d.]+))$/);
|
237059
237089
|
if (!match3)
|
237060
237090
|
return false;
|
@@ -237069,7 +237099,7 @@ function replaceNumberedSubSuperScripts(node3) {
|
|
237069
237099
|
delete node3.value;
|
237070
237100
|
return true;
|
237071
237101
|
}
|
237072
|
-
function replaceNumber(node3) {
|
237102
|
+
function replaceNumber(node3, options) {
|
237073
237103
|
const match3 = node3.value.match(/^([+-]?[0-9.]+)$/);
|
237074
237104
|
if (!match3)
|
237075
237105
|
return false;
|
@@ -237080,21 +237110,25 @@ function replaceNumber(node3) {
|
|
237080
237110
|
node3.value = text7;
|
237081
237111
|
return true;
|
237082
237112
|
}
|
237083
|
-
function inlineMathSimplificationTransform(mdast2) {
|
237113
|
+
function inlineMathSimplificationTransform(mdast2, options) {
|
237084
237114
|
const math7 = selectAll("inlineMath", mdast2);
|
237085
237115
|
math7.forEach((node3) => {
|
237086
|
-
if (replaceSymbol(node3))
|
237116
|
+
if (replaceSymbol(node3, options)) {
|
237087
237117
|
return;
|
237088
|
-
|
237118
|
+
}
|
237119
|
+
if ((options === null || options === void 0 ? void 0 : options.replaceScripts) !== false && replaceDirectSubSuperScripts(node3, options)) {
|
237089
237120
|
return;
|
237090
|
-
|
237121
|
+
}
|
237122
|
+
if ((options === null || options === void 0 ? void 0 : options.replaceNumber) !== false && replaceNumberedSubSuperScripts(node3, options)) {
|
237091
237123
|
return;
|
237092
|
-
|
237124
|
+
}
|
237125
|
+
if ((options === null || options === void 0 ? void 0 : options.replaceNumber) !== false && replaceNumber(node3, options)) {
|
237093
237126
|
return;
|
237127
|
+
}
|
237094
237128
|
});
|
237095
237129
|
}
|
237096
|
-
var inlineMathSimplificationPlugin = () => (tree) => {
|
237097
|
-
inlineMathSimplificationTransform(tree);
|
237130
|
+
var inlineMathSimplificationPlugin = (opts) => (tree) => {
|
237131
|
+
inlineMathSimplificationTransform(tree, opts);
|
237098
237132
|
};
|
237099
237133
|
|
237100
237134
|
// ../myst-transforms/dist/blocks.js
|
@@ -239030,7 +239064,7 @@ var ReferenceState = class {
|
|
239030
239064
|
this.numbering = fillNumbering((_a6 = opts === null || opts === void 0 ? void 0 : opts.frontmatter) === null || _a6 === void 0 ? void 0 : _a6.numbering, DEFAULT_NUMBERING);
|
239031
239065
|
this.offset = (_d2 = (_c = (_b = this.numbering) === null || _b === void 0 ? void 0 : _b.title) === null || _c === void 0 ? void 0 : _c.offset) !== null && _d2 !== void 0 ? _d2 : 0;
|
239032
239066
|
this.targetCounts = initializeTargetCounts(this.numbering, opts === null || opts === void 0 ? void 0 : opts.previousCounts, this.offset);
|
239033
|
-
if ((((_e = this.numbering.title) === null || _e === void 0 ? void 0 : _e.enabled) || ((_f = this.numbering.all) === null || _f === void 0 ? void 0 : _f.enabled)) && !((_g = opts === null || opts === void 0 ? void 0 : opts.frontmatter) === null || _g === void 0 ? void 0 : _g.content_includes_title) && ((_h = this.numbering[`heading_${this.offset + 1}`]) === null || _h === void 0 ? void 0 : _h.enabled) !== false) {
|
239067
|
+
if (!(opts === null || opts === void 0 ? void 0 : opts.hidden) && (((_e = this.numbering.title) === null || _e === void 0 ? void 0 : _e.enabled) || ((_f = this.numbering.all) === null || _f === void 0 ? void 0 : _f.enabled)) && !((_g = opts === null || opts === void 0 ? void 0 : opts.frontmatter) === null || _g === void 0 ? void 0 : _g.content_includes_title) && ((_h = this.numbering[`heading_${this.offset + 1}`]) === null || _h === void 0 ? void 0 : _h.enabled) !== false) {
|
239034
239068
|
this.targetCounts.heading = incrementHeadingCounts2(this.offset + 1, this.targetCounts.heading);
|
239035
239069
|
this.enumerator = formatHeadingEnumerator2(this.targetCounts.heading, (_k = (_j = this.numbering.title) === null || _j === void 0 ? void 0 : _j.enumerator) !== null && _k !== void 0 ? _k : (_l = this.numbering.enumerator) === null || _l === void 0 ? void 0 : _l.enumerator);
|
239036
239070
|
}
|
@@ -239042,11 +239076,11 @@ var ReferenceState = class {
|
|
239042
239076
|
this.dataUrl = opts === null || opts === void 0 ? void 0 : opts.dataUrl;
|
239043
239077
|
this.title = (_p = opts === null || opts === void 0 ? void 0 : opts.frontmatter) === null || _p === void 0 ? void 0 : _p.title;
|
239044
239078
|
}
|
239045
|
-
addTarget(node3) {
|
239079
|
+
addTarget(node3, hidden2) {
|
239046
239080
|
if (!isTargetIdentifierNode(node3))
|
239047
239081
|
return;
|
239048
239082
|
const kind = kindFromNode2(node3);
|
239049
|
-
const numberNode = shouldEnumerateNode(node3, kind, this.numbering, this.offset);
|
239083
|
+
const numberNode = !hidden2 && shouldEnumerateNode(node3, kind, this.numbering, this.offset);
|
239050
239084
|
if (numberNode) {
|
239051
239085
|
this.incrementCount(node3, kind);
|
239052
239086
|
}
|
@@ -239245,7 +239279,7 @@ var enumerateTargetsTransform = (tree, opts) => {
|
|
239245
239279
|
if (!isTargetIdentifierNode(node3))
|
239246
239280
|
return;
|
239247
239281
|
if (node3.identifier || node3.enumerated || ["container", "mathGroup", "math", "heading", "proof"].includes(node3.type)) {
|
239248
|
-
opts.state.addTarget(node3);
|
239282
|
+
opts.state.addTarget(node3, opts === null || opts === void 0 ? void 0 : opts.hidden);
|
239249
239283
|
}
|
239250
239284
|
});
|
239251
239285
|
selectAll("container", tree).filter((container4) => !container4.subcontainer).forEach((parent2) => {
|
@@ -239258,7 +239292,7 @@ var enumerateTargetsTransform = (tree, opts) => {
|
|
239258
239292
|
sub2.label = label;
|
239259
239293
|
sub2.identifier = identifier;
|
239260
239294
|
sub2.implicit = true;
|
239261
|
-
opts.state.addTarget(sub2);
|
239295
|
+
opts.state.addTarget(sub2, opts === null || opts === void 0 ? void 0 : opts.hidden);
|
239262
239296
|
});
|
239263
239297
|
});
|
239264
239298
|
return tree;
|
@@ -280351,8 +280385,8 @@ var _core = require_lib6();
|
|
280351
280385
|
var _index = require_input6();
|
280352
280386
|
var _config = _interopRequireDefault(require_config3());
|
280353
280387
|
var _index2 = _interopRequireDefault(require_output5());
|
280354
|
-
function _interopRequireDefault(
|
280355
|
-
return
|
280388
|
+
function _interopRequireDefault(e2) {
|
280389
|
+
return e2 && e2.__esModule ? e2 : { default: e2 };
|
280356
280390
|
}
|
280357
280391
|
_core.plugins.add(_index.ref, {
|
280358
280392
|
input: _index.formats,
|
@@ -280367,8 +280401,8 @@ var _styles = require_styles2();
|
|
280367
280401
|
var _engines = _interopRequireDefault2(require_engines());
|
280368
280402
|
var _bibliography = _interopRequireDefault2(require_bibliography());
|
280369
280403
|
var _citation = _interopRequireDefault2(require_citation());
|
280370
|
-
function _interopRequireDefault2(
|
280371
|
-
return
|
280404
|
+
function _interopRequireDefault2(e2) {
|
280405
|
+
return e2 && e2.__esModule ? e2 : { default: e2 };
|
280372
280406
|
}
|
280373
280407
|
_core2.plugins.add("@csl", {
|
280374
280408
|
output: {
|
@@ -285957,17 +285991,25 @@ var glossaryDirective = {
|
|
285957
285991
|
var mathDirective = {
|
285958
285992
|
name: "math",
|
285959
285993
|
options: {
|
285960
|
-
...commonDirectiveOptions("math")
|
285994
|
+
...commonDirectiveOptions("math"),
|
285995
|
+
typst: {
|
285996
|
+
type: String,
|
285997
|
+
doc: "Typst-specific math content. If not provided, LaTeX content will be converted to Typst."
|
285998
|
+
}
|
285961
285999
|
},
|
285962
286000
|
body: {
|
285963
286001
|
type: String,
|
285964
286002
|
required: true
|
285965
286003
|
},
|
285966
286004
|
run(data) {
|
286005
|
+
var _a6;
|
285967
286006
|
const math7 = addCommonDirectiveOptions(data, { type: "math", value: data.body });
|
285968
286007
|
if (data.node.tight) {
|
285969
286008
|
math7.tight = data.node.tight;
|
285970
286009
|
}
|
286010
|
+
if ((_a6 = data.options) === null || _a6 === void 0 ? void 0 : _a6.typst) {
|
286011
|
+
math7.typst = data.options.typst;
|
286012
|
+
}
|
285971
286013
|
return [math7];
|
285972
286014
|
}
|
285973
286015
|
};
|
@@ -286467,14 +286509,24 @@ var deleteRole = {
|
|
286467
286509
|
// ../myst-roles/dist/math.js
|
286468
286510
|
var mathRole = {
|
286469
286511
|
name: "math",
|
286470
|
-
options: {
|
286512
|
+
options: {
|
286513
|
+
...commonRoleOptions("math"),
|
286514
|
+
typst: {
|
286515
|
+
type: String,
|
286516
|
+
doc: "Typst-specific math content. If not provided, LaTeX content will be converted to Typst."
|
286517
|
+
}
|
286518
|
+
},
|
286471
286519
|
body: {
|
286472
286520
|
type: String,
|
286473
286521
|
required: true
|
286474
286522
|
},
|
286475
286523
|
run(data) {
|
286524
|
+
var _a6;
|
286476
286525
|
const node3 = { type: "inlineMath", value: data.body };
|
286477
286526
|
addCommonRoleOptions(data, node3);
|
286527
|
+
if ((_a6 = data.options) === null || _a6 === void 0 ? void 0 : _a6.typst) {
|
286528
|
+
node3.typst = data.options.typst;
|
286529
|
+
}
|
286478
286530
|
return [node3];
|
286479
286531
|
}
|
286480
286532
|
};
|
@@ -289100,6 +289152,7 @@ function applyRoles(tree, specs, vfile2) {
|
|
289100
289152
|
const { valid: validOptions, options } = parseOptions(name3, node3, vfile2, optionsSpec);
|
289101
289153
|
let validationError2 = validOptions;
|
289102
289154
|
data.options = options;
|
289155
|
+
node3.options = options;
|
289103
289156
|
const bodyNode = (_a6 = node3.children) === null || _a6 === void 0 ? void 0 : _a6.find((n) => n.type === "mystRoleBody");
|
289104
289157
|
if (body3) {
|
289105
289158
|
if (body3.required && !bodyNode) {
|
@@ -289928,7 +289981,7 @@ var import_mime_types = __toESM(require_mime_types(), 1);
|
|
289928
289981
|
var import_node_path16 = __toESM(require("path"), 1);
|
289929
289982
|
|
289930
289983
|
// ../myst-cli/dist/version.js
|
289931
|
-
var version2 = "1.
|
289984
|
+
var version2 = "1.5.1";
|
289932
289985
|
var version_default2 = version2;
|
289933
289986
|
|
289934
289987
|
// ../myst-cli/dist/utils/headers.js
|
@@ -290239,6 +290292,10 @@ function binaryName() {
|
|
290239
290292
|
var _a6;
|
290240
290293
|
return (_a6 = process.env.MYSTMD_BINARY_NAME) !== null && _a6 !== void 0 ? _a6 : "myst";
|
290241
290294
|
}
|
290295
|
+
function npmPackageName() {
|
290296
|
+
var _a6;
|
290297
|
+
return (_a6 = process.env.MYSTMD_NPM_PACKAGE_NAME) !== null && _a6 !== void 0 ? _a6 : "mystmd";
|
290298
|
+
}
|
290242
290299
|
function homeURL() {
|
290243
290300
|
var _a6;
|
290244
290301
|
return (_a6 = process.env.MYSTMD_HOME_URL) !== null && _a6 !== void 0 ? _a6 : "https://mystmd.org";
|
@@ -290941,6 +290998,9 @@ async function transformImageFormats(session, mdast2, file, writeFolder, opts) {
|
|
290941
290998
|
}
|
290942
290999
|
unconvertableImages.forEach((image6) => {
|
290943
291000
|
const badExt = import_node_path16.default.extname(image6.url) || "<no extension>";
|
291001
|
+
if (badExt === ".*") {
|
291002
|
+
return;
|
291003
|
+
}
|
290944
291004
|
addWarningForFile(session, file, `Unsupported image extension "${badExt}" may not correctly render.`, "error", { position: image6.position, ruleId: RuleId.imageFormatConverts });
|
290945
291005
|
});
|
290946
291006
|
return Promise.all(conversionPromises);
|
@@ -298460,8 +298520,11 @@ function pagesFromEntries(session, path44, entries2, pages = [], level = 1, page
|
|
298460
298520
|
pages.push({ file: resolvedFile, level: entryLevel, slug, ...leftover });
|
298461
298521
|
}
|
298462
298522
|
} else if (isURL(entry)) {
|
298463
|
-
|
298464
|
-
|
298523
|
+
pages.push({
|
298524
|
+
url: entry.url,
|
298525
|
+
title: entry.title || entry.url,
|
298526
|
+
level: entryLevel,
|
298527
|
+
open_in_same_tab: entry.open_in_same_tab
|
298465
298528
|
});
|
298466
298529
|
} else {
|
298467
298530
|
entryLevel = level < -1 ? -1 : level;
|
@@ -301810,6 +301873,8 @@ async function manifestPagesFromProject(session, projectPath) {
|
|
301810
301873
|
const cache = castSession(session);
|
301811
301874
|
const pages = await Promise.all(proj.pages.map(async (page) => {
|
301812
301875
|
var _a6, _b, _c, _d2, _e, _f, _g, _h, _j, _k;
|
301876
|
+
if ("hidden" in page && page.hidden)
|
301877
|
+
return null;
|
301813
301878
|
if ("file" in page) {
|
301814
301879
|
const fileInfo3 = selectors_exports.selectFileInfo(state, page.file);
|
301815
301880
|
const title = fileInfo3.title || fileTitle(page.file);
|
@@ -301839,9 +301904,19 @@ async function manifestPagesFromProject(session, projectPath) {
|
|
301839
301904
|
};
|
301840
301905
|
return projectPage;
|
301841
301906
|
}
|
301907
|
+
if ("url" in page) {
|
301908
|
+
const { title, url, open_in_same_tab, level } = page;
|
301909
|
+
const externalURL = {
|
301910
|
+
title,
|
301911
|
+
url,
|
301912
|
+
open_in_same_tab,
|
301913
|
+
level
|
301914
|
+
};
|
301915
|
+
return externalURL;
|
301916
|
+
}
|
301842
301917
|
return { ...page };
|
301843
301918
|
}));
|
301844
|
-
return pages;
|
301919
|
+
return pages === null || pages === void 0 ? void 0 : pages.filter((p5) => p5 !== null);
|
301845
301920
|
}
|
301846
301921
|
function manifestTitleFromProject(session, projectPath) {
|
301847
301922
|
const state = session.store.getState();
|
@@ -302355,7 +302430,7 @@ async function transformMystXRefs(session, vfile2, mdast2, frontmatter) {
|
|
302355
302430
|
})
|
302356
302431
|
]);
|
302357
302432
|
const denominator = number2 === nodes.length ? "" : `/${nodes.length}`;
|
302358
|
-
session.log.info(toc(`\u{1FA84}
|
302433
|
+
session.log.info(toc(`\u{1FA84} Updated link text for ${plural(`%s${denominator} external MyST reference(s)`, number2)} in %s`));
|
302359
302434
|
}
|
302360
302435
|
|
302361
302436
|
// ../myst-cli/dist/process/loadReferences.js
|
@@ -303282,9 +303357,9 @@ function mutateEmbedNode(node3, targetNode, opts) {
|
|
303282
303357
|
});
|
303283
303358
|
}
|
303284
303359
|
if (targetNode && node3["remove-input"]) {
|
303285
|
-
targetNode = filter2(targetNode, (n) => {
|
303360
|
+
targetNode = filter2(targetNode, (n, index4, parent2) => {
|
303286
303361
|
var _a6;
|
303287
|
-
return n.type
|
303362
|
+
return !(n.type === "code" && ((_a6 = n.data) === null || _a6 === void 0 ? void 0 : _a6.type) !== "output" && (parent2 === null || parent2 === void 0 ? void 0 : parent2.type) === "block" && (parent2 === null || parent2 === void 0 ? void 0 : parent2.kind) === NotebookCell.code);
|
303288
303363
|
});
|
303289
303364
|
}
|
303290
303365
|
selectAll("[identifier],[label],[html_id]", targetNode).forEach((idNode) => {
|
@@ -304719,7 +304794,7 @@ async function transformMdast(session, opts) {
|
|
304719
304794
|
const pipe = unified().use(reconstructHtmlPlugin).use(htmlPlugin, { htmlHandlers }).use(basicTransformationsPlugin, {
|
304720
304795
|
parser: (content3) => parseMyst(session, content3, file),
|
304721
304796
|
firstDepth: (titleDepth !== null && titleDepth !== void 0 ? titleDepth : 1) + (frontmatter.content_includes_title ? 0 : 1)
|
304722
|
-
}).use(inlineMathSimplificationPlugin).use(mathPlugin, { macros: frontmatter.math });
|
304797
|
+
}).use(inlineMathSimplificationPlugin, { replaceSymbol: false }).use(mathPlugin, { macros: frontmatter.math });
|
304723
304798
|
(_c = session.plugins) === null || _c === void 0 ? void 0 : _c.transforms.forEach((t2) => {
|
304724
304799
|
if (t2.stage !== "document")
|
304725
304800
|
return;
|
@@ -305182,7 +305257,7 @@ function referenceFileFromPartFile(session, partFile) {
|
|
305182
305257
|
function selectPageReferenceStates(session, pages, opts) {
|
305183
305258
|
const cache = castSession(session);
|
305184
305259
|
let previousCounts;
|
305185
|
-
const pageReferenceStates = pages.map(({ file }) => {
|
305260
|
+
const pageReferenceStates = pages.map(({ file, hidden: hidden2 }) => {
|
305186
305261
|
var _a6, _b;
|
305187
305262
|
const { frontmatter, identifiers, mdast: mdast2, kind } = (_b = (_a6 = cache.$getMdast(file)) === null || _a6 === void 0 ? void 0 : _a6.post) !== null && _b !== void 0 ? _b : {};
|
305188
305263
|
const vfile2 = new VFile();
|
@@ -305192,13 +305267,14 @@ function selectPageReferenceStates(session, pages, opts) {
|
|
305192
305267
|
frontmatter,
|
305193
305268
|
identifiers,
|
305194
305269
|
previousCounts,
|
305195
|
-
vfile: vfile2
|
305270
|
+
vfile: vfile2,
|
305271
|
+
hidden: hidden2
|
305196
305272
|
});
|
305197
305273
|
if (frontmatter && !frontmatter.enumerator) {
|
305198
305274
|
frontmatter.enumerator = state.enumerator;
|
305199
305275
|
}
|
305200
305276
|
if (mdast2)
|
305201
|
-
enumerateTargetsTransform(mdast2, { state });
|
305277
|
+
enumerateTargetsTransform(mdast2, { state, hidden: hidden2 });
|
305202
305278
|
previousCounts = state.targetCounts;
|
305203
305279
|
logMessagesFromVFile(session, vfile2);
|
305204
305280
|
if (state) {
|
@@ -308535,7 +308611,8 @@ function resolveRecursiveCommands(plugins3) {
|
|
308535
308611
|
}
|
308536
308612
|
var math5 = (node3, state) => {
|
308537
308613
|
var _a6, _b;
|
308538
|
-
const
|
308614
|
+
const mathValue = node3.typst || node3.value;
|
308615
|
+
const { value, macros: macros18 } = node3.typst ? { value: mathValue, macros: void 0 } : texToTypst(node3.value);
|
308539
308616
|
macros18 === null || macros18 === void 0 ? void 0 : macros18.forEach((macro2) => {
|
308540
308617
|
state.useMacro(macro2);
|
308541
308618
|
});
|
@@ -308555,7 +308632,8 @@ var math5 = (node3, state) => {
|
|
308555
308632
|
state.ensureNewLine(true);
|
308556
308633
|
};
|
308557
308634
|
var inlineMath3 = (node3, state) => {
|
308558
|
-
const
|
308635
|
+
const mathValue = node3.typst || node3.value;
|
308636
|
+
const { value, macros: macros18 } = node3.typst ? { value: mathValue, macros: void 0 } : texToTypst(node3.value);
|
308559
308637
|
macros18 === null || macros18 === void 0 ? void 0 : macros18.forEach((macro2) => {
|
308560
308638
|
state.useMacro(macro2);
|
308561
308639
|
});
|
@@ -321501,10 +321579,10 @@ async function checkAtGitRoot() {
|
|
321501
321579
|
|
321502
321580
|
// ../myst-cli/dist/init/gh-actions/index.js
|
321503
321581
|
function createGithubPagesAction({ defaultBranch = "main", username = "username", isGithubIO }) {
|
321504
|
-
return `# This file was created automatically with
|
321582
|
+
return `# This file was created automatically with \`${binaryName()} init --gh-pages\` \u{1FA84} \u{1F49A}
|
321505
321583
|
# Ensure your GitHub Pages settings for this repository are set to deploy with **GitHub Actions**.
|
321506
321584
|
|
321507
|
-
name:
|
321585
|
+
name: ${readableName()} GitHub Pages Deploy
|
321508
321586
|
on:
|
321509
321587
|
push:
|
321510
321588
|
# Runs on pushes targeting the default branch
|
@@ -321538,10 +321616,10 @@ jobs:
|
|
321538
321616
|
- uses: actions/setup-node@v4
|
321539
321617
|
with:
|
321540
321618
|
node-version: 18.x
|
321541
|
-
- name: Install
|
321542
|
-
run: npm install -g
|
321619
|
+
- name: Install ${readableName()}
|
321620
|
+
run: npm install -g ${npmPackageName()}
|
321543
321621
|
- name: Build HTML Assets
|
321544
|
-
run:
|
321622
|
+
run: ${binaryName()} build --html
|
321545
321623
|
- name: Upload artifact
|
321546
321624
|
uses: actions/upload-pages-artifact@v3
|
321547
321625
|
with:
|
@@ -321552,7 +321630,7 @@ jobs:
|
|
321552
321630
|
`;
|
321553
321631
|
}
|
321554
321632
|
function createGithubCurvenoteAction({ defaultBranch = "main" }) {
|
321555
|
-
return `# This file was created automatically with
|
321633
|
+
return `# This file was created automatically with \`${binaryName()} init --gh-curvenote\` \u{1FA84} \u{1F49A}
|
321556
321634
|
|
321557
321635
|
name: Curvenote Deploy
|
321558
321636
|
on:
|