@rio-cloud/cdk-v2-constructs 7.13.12-alpha.0 → 7.13.12-alpha.1
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/.jsii +7 -7
- package/lib/contributions/team-transport-two/datadog-synthetics/datadog-synthetics-test-custom-resource/handler.cjs +282 -225
- package/lib/datadogv2/secret-locator-custom-resource/on-create.cjs +295 -238
- package/lib/datadogv2/service-catalog-custom-resource/on-create.cjs +282 -225
- package/lib/fargate/codedeploy-custom-resources/create-deployment-is-complete.cjs +281 -224
- package/lib/fargate/codedeploy-custom-resources/create-deployment-on-create.cjs +281 -224
- package/lib/fargate/codedeploy-custom-resources/run-monitoring-test-suite-runner.cjs +281 -224
- package/node_modules/@aws-sdk/client-cloudformation/package.json +13 -13
- package/node_modules/@aws-sdk/client-codedeploy/package.json +13 -13
- package/node_modules/@aws-sdk/client-ecs/package.json +13 -13
- package/node_modules/@aws-sdk/client-organizations/package.json +13 -13
- package/node_modules/@aws-sdk/client-secrets-manager/package.json +14 -14
- package/node_modules/@aws-sdk/client-ssm/package.json +13 -13
- package/node_modules/@aws-sdk/core/package.json +4 -4
- package/node_modules/@aws-sdk/credential-provider-env/package.json +2 -2
- package/node_modules/@aws-sdk/credential-provider-http/package.json +6 -6
- package/node_modules/@aws-sdk/credential-provider-ini/package.json +9 -9
- package/node_modules/@aws-sdk/credential-provider-login/package.json +3 -3
- package/node_modules/@aws-sdk/credential-provider-node/package.json +7 -7
- package/node_modules/@aws-sdk/credential-provider-process/package.json +2 -2
- package/node_modules/@aws-sdk/credential-provider-sso/package.json +4 -4
- package/node_modules/@aws-sdk/credential-provider-web-identity/package.json +3 -3
- package/node_modules/@aws-sdk/middleware-user-agent/package.json +3 -3
- package/node_modules/@aws-sdk/nested-clients/package.json +12 -12
- package/node_modules/@aws-sdk/token-providers/package.json +3 -3
- package/node_modules/@aws-sdk/util-user-agent-node/dist-cjs/index.js +36 -19
- package/node_modules/@aws-sdk/util-user-agent-node/dist-es/getSanitizedTypeScriptVersion.js +9 -0
- package/node_modules/@aws-sdk/util-user-agent-node/dist-es/getTypeScriptPackageJsonPaths.js +17 -0
- package/node_modules/@aws-sdk/util-user-agent-node/dist-es/getTypeScriptUserAgentPair.js +17 -12
- package/node_modules/@aws-sdk/util-user-agent-node/dist-types/getSanitizedTypeScriptVersion.d.ts +8 -0
- package/node_modules/@aws-sdk/util-user-agent-node/dist-types/getTypeScriptPackageJsonPaths.d.ts +10 -0
- package/node_modules/@aws-sdk/util-user-agent-node/dist-types/ts3.4/getSanitizedTypeScriptVersion.d.ts +3 -0
- package/node_modules/@aws-sdk/util-user-agent-node/dist-types/ts3.4/getTypeScriptPackageJsonPaths.d.ts +3 -0
- package/node_modules/@aws-sdk/util-user-agent-node/package.json +2 -2
- package/node_modules/@aws-sdk/xml-builder/dist-cjs/xml-parser.js +1 -0
- package/node_modules/@aws-sdk/xml-builder/dist-es/xml-parser.js +1 -0
- package/node_modules/@aws-sdk/xml-builder/package.json +2 -2
- package/node_modules/@smithy/core/dist-cjs/submodules/cbor/index.js +2 -8
- package/node_modules/@smithy/core/dist-es/submodules/cbor/CborCodec.js +2 -8
- package/node_modules/@smithy/core/package.json +2 -2
- package/node_modules/@smithy/fetch-http-handler/dist-cjs/index.js +18 -4
- package/node_modules/@smithy/fetch-http-handler/dist-es/fetch-http-handler.js +18 -4
- package/node_modules/@smithy/fetch-http-handler/package.json +1 -1
- package/node_modules/@smithy/middleware-endpoint/package.json +2 -2
- package/node_modules/@smithy/middleware-retry/package.json +2 -2
- package/node_modules/@smithy/node-http-handler/dist-cjs/index.js +21 -8
- package/node_modules/@smithy/node-http-handler/dist-es/build-abort-error.js +16 -0
- package/node_modules/@smithy/node-http-handler/dist-es/node-http-handler.js +3 -4
- package/node_modules/@smithy/node-http-handler/dist-es/node-http2-handler.js +3 -4
- package/node_modules/@smithy/node-http-handler/dist-types/build-abort-error.d.ts +9 -0
- package/node_modules/@smithy/node-http-handler/dist-types/ts3.4/build-abort-error.d.ts +9 -0
- package/node_modules/@smithy/node-http-handler/package.json +1 -1
- package/node_modules/@smithy/smithy-client/package.json +4 -4
- package/node_modules/@smithy/util-defaults-mode-browser/package.json +2 -2
- package/node_modules/@smithy/util-defaults-mode-node/package.json +2 -2
- package/node_modules/@smithy/util-stream/package.json +3 -3
- package/node_modules/fast-xml-builder/LICENSE +21 -0
- package/node_modules/fast-xml-builder/README.md +23 -0
- package/node_modules/fast-xml-builder/lib/builder.cjs +1 -0
- package/node_modules/fast-xml-builder/lib/builder.min.js +2 -0
- package/node_modules/fast-xml-builder/lib/builder.min.js.map +1 -0
- package/node_modules/fast-xml-builder/lib/fxb.d.cts +167 -0
- package/node_modules/fast-xml-builder/package.json +78 -0
- package/node_modules/fast-xml-builder/src/fxb.d.ts +156 -0
- package/node_modules/fast-xml-builder/src/fxb.js +285 -0
- package/node_modules/fast-xml-builder/src/ignoreAttributes.js +18 -0
- package/node_modules/{fast-xml-parser/src/xmlbuilder → fast-xml-builder/src}/orderedJs2Xml.js +14 -3
- package/node_modules/fast-xml-builder/src/prettifyJs2Xml.js +0 -0
- package/node_modules/fast-xml-parser/CHANGELOG.md +23 -0
- package/node_modules/fast-xml-parser/lib/fxbuilder.min.js +1 -1
- package/node_modules/fast-xml-parser/lib/fxbuilder.min.js.map +1 -1
- package/node_modules/fast-xml-parser/lib/fxp.cjs +1 -1
- package/node_modules/fast-xml-parser/lib/fxp.d.cts +15 -1
- package/node_modules/fast-xml-parser/lib/fxp.min.js +1 -1
- package/node_modules/fast-xml-parser/lib/fxp.min.js.map +1 -1
- package/node_modules/fast-xml-parser/lib/fxparser.min.js +1 -1
- package/node_modules/fast-xml-parser/lib/fxparser.min.js.map +1 -1
- package/node_modules/fast-xml-parser/lib/fxvalidator.min.js +1 -1
- package/node_modules/fast-xml-parser/lib/fxvalidator.min.js.map +1 -1
- package/node_modules/fast-xml-parser/package.json +3 -2
- package/node_modules/fast-xml-parser/src/fxp.d.ts +16 -0
- package/node_modules/fast-xml-parser/src/fxp.js +1 -1
- package/node_modules/fast-xml-parser/src/util.js +1 -26
- package/node_modules/fast-xml-parser/src/v6/EntitiesParser.js +87 -87
- package/node_modules/fast-xml-parser/src/v6/OptionsBuilder.js +10 -10
- package/node_modules/fast-xml-parser/src/v6/OutputBuilders/BaseOutputBuilder.js +23 -23
- package/node_modules/fast-xml-parser/src/v6/OutputBuilders/JsArrBuilder.js +29 -29
- package/node_modules/fast-xml-parser/src/v6/OutputBuilders/JsObjBuilder.js +39 -39
- package/node_modules/fast-xml-parser/src/v6/OutputBuilders/ParserOptionsBuilder.js +17 -17
- package/node_modules/fast-xml-parser/src/v6/XMLParser.js +22 -22
- package/node_modules/fast-xml-parser/src/v6/valueParsers/EntitiesParser.js +85 -85
- package/node_modules/fast-xml-parser/src/validator.js +34 -34
- package/node_modules/fast-xml-parser/src/xmlbuilder/json2xml.js +5 -284
- package/node_modules/fast-xml-parser/src/xmlparser/DocTypeReader.js +1 -1
- package/node_modules/fast-xml-parser/src/xmlparser/OptionsBuilder.js +2 -0
- package/node_modules/fast-xml-parser/src/xmlparser/OrderedObjParser.js +27 -5
- package/node_modules/fast-xml-parser/src/xmlparser/XMLParser.js +21 -21
- package/node_modules/fast-xml-parser/src/xmlparser/node2json.js +38 -34
- package/node_modules/fast-xml-parser/src/xmlparser/xmlNode.js +10 -10
- package/package.json +8 -11
- package/version.json +1 -1
- package/node_modules/@aws-sdk/util-user-agent-node/dist-es/getTypeScriptPackageJsonPath.js +0 -14
- package/node_modules/@aws-sdk/util-user-agent-node/dist-types/getTypeScriptPackageJsonPath.d.ts +0 -9
- package/node_modules/@aws-sdk/util-user-agent-node/dist-types/ts3.4/getTypeScriptPackageJsonPath.d.ts +0 -1
- /package/node_modules/{fast-xml-parser/src/xmlbuilder/prettifyJs2Xml.js → fast-xml-builder/CHANGELOG.md} +0 -0
|
@@ -1677,6 +1677,20 @@ var require_dist_cjs14 = __commonJS({
|
|
|
1677
1677
|
var https = require("https");
|
|
1678
1678
|
var stream = require("stream");
|
|
1679
1679
|
var http2 = require("http2");
|
|
1680
|
+
function buildAbortError(abortSignal) {
|
|
1681
|
+
const reason = abortSignal && typeof abortSignal === "object" && "reason" in abortSignal ? abortSignal.reason : void 0;
|
|
1682
|
+
if (reason) {
|
|
1683
|
+
if (reason instanceof Error) {
|
|
1684
|
+
return reason;
|
|
1685
|
+
}
|
|
1686
|
+
const abortError2 = new Error(String(reason));
|
|
1687
|
+
abortError2.name = "AbortError";
|
|
1688
|
+
return abortError2;
|
|
1689
|
+
}
|
|
1690
|
+
const abortError = new Error("Request aborted");
|
|
1691
|
+
abortError.name = "AbortError";
|
|
1692
|
+
return abortError;
|
|
1693
|
+
}
|
|
1680
1694
|
var NODEJS_TIMEOUT_ERROR_CODES = ["ECONNRESET", "EPIPE", "ETIMEDOUT"];
|
|
1681
1695
|
var getTransformedHeaders = (headers) => {
|
|
1682
1696
|
const transformedHeaders = {};
|
|
@@ -1937,8 +1951,7 @@ or increase socketAcquisitionWarningTimeout=(millis) in the NodeHttpHandler conf
|
|
|
1937
1951
|
_reject(arg);
|
|
1938
1952
|
};
|
|
1939
1953
|
if (abortSignal?.aborted) {
|
|
1940
|
-
const abortError =
|
|
1941
|
-
abortError.name = "AbortError";
|
|
1954
|
+
const abortError = buildAbortError(abortSignal);
|
|
1942
1955
|
reject(abortError);
|
|
1943
1956
|
return;
|
|
1944
1957
|
}
|
|
@@ -2004,8 +2017,7 @@ or increase socketAcquisitionWarningTimeout=(millis) in the NodeHttpHandler conf
|
|
|
2004
2017
|
if (abortSignal) {
|
|
2005
2018
|
const onAbort = () => {
|
|
2006
2019
|
req.destroy();
|
|
2007
|
-
const abortError =
|
|
2008
|
-
abortError.name = "AbortError";
|
|
2020
|
+
const abortError = buildAbortError(abortSignal);
|
|
2009
2021
|
reject(abortError);
|
|
2010
2022
|
};
|
|
2011
2023
|
if (typeof abortSignal.addEventListener === "function") {
|
|
@@ -2208,8 +2220,7 @@ or increase socketAcquisitionWarningTimeout=(millis) in the NodeHttpHandler conf
|
|
|
2208
2220
|
};
|
|
2209
2221
|
if (abortSignal?.aborted) {
|
|
2210
2222
|
fulfilled = true;
|
|
2211
|
-
const abortError =
|
|
2212
|
-
abortError.name = "AbortError";
|
|
2223
|
+
const abortError = buildAbortError(abortSignal);
|
|
2213
2224
|
reject(abortError);
|
|
2214
2225
|
return;
|
|
2215
2226
|
}
|
|
@@ -2271,8 +2282,7 @@ or increase socketAcquisitionWarningTimeout=(millis) in the NodeHttpHandler conf
|
|
|
2271
2282
|
if (abortSignal) {
|
|
2272
2283
|
const onAbort = () => {
|
|
2273
2284
|
req.close();
|
|
2274
|
-
const abortError =
|
|
2275
|
-
abortError.name = "AbortError";
|
|
2285
|
+
const abortError = buildAbortError(abortSignal);
|
|
2276
2286
|
rejectWithDestroy(abortError);
|
|
2277
2287
|
};
|
|
2278
2288
|
if (typeof abortSignal.addEventListener === "function") {
|
|
@@ -2428,8 +2438,7 @@ var require_dist_cjs15 = __commonJS({
|
|
|
2428
2438
|
const keepAlive = this.config.keepAlive === true;
|
|
2429
2439
|
const credentials = this.config.credentials;
|
|
2430
2440
|
if (abortSignal?.aborted) {
|
|
2431
|
-
const abortError =
|
|
2432
|
-
abortError.name = "AbortError";
|
|
2441
|
+
const abortError = buildAbortError(abortSignal);
|
|
2433
2442
|
return Promise.reject(abortError);
|
|
2434
2443
|
}
|
|
2435
2444
|
let path = request.path;
|
|
@@ -2505,8 +2514,7 @@ var require_dist_cjs15 = __commonJS({
|
|
|
2505
2514
|
if (abortSignal) {
|
|
2506
2515
|
raceOfPromises.push(new Promise((resolve, reject) => {
|
|
2507
2516
|
const onAbort = () => {
|
|
2508
|
-
const abortError =
|
|
2509
|
-
abortError.name = "AbortError";
|
|
2517
|
+
const abortError = buildAbortError(abortSignal);
|
|
2510
2518
|
reject(abortError);
|
|
2511
2519
|
};
|
|
2512
2520
|
if (typeof abortSignal.addEventListener === "function") {
|
|
@@ -2531,6 +2539,20 @@ var require_dist_cjs15 = __commonJS({
|
|
|
2531
2539
|
return this.config ?? {};
|
|
2532
2540
|
}
|
|
2533
2541
|
};
|
|
2542
|
+
function buildAbortError(abortSignal) {
|
|
2543
|
+
const reason = abortSignal && typeof abortSignal === "object" && "reason" in abortSignal ? abortSignal.reason : void 0;
|
|
2544
|
+
if (reason) {
|
|
2545
|
+
if (reason instanceof Error) {
|
|
2546
|
+
return reason;
|
|
2547
|
+
}
|
|
2548
|
+
const abortError2 = new Error(String(reason));
|
|
2549
|
+
abortError2.name = "AbortError";
|
|
2550
|
+
return abortError2;
|
|
2551
|
+
}
|
|
2552
|
+
const abortError = new Error("Request aborted");
|
|
2553
|
+
abortError.name = "AbortError";
|
|
2554
|
+
return abortError;
|
|
2555
|
+
}
|
|
2534
2556
|
var streamCollector5 = async (stream) => {
|
|
2535
2557
|
if (typeof Blob === "function" && stream instanceof Blob || stream.constructor?.name === "Blob") {
|
|
2536
2558
|
if (Blob.prototype.arrayBuffer !== void 0) {
|
|
@@ -9343,24 +9365,18 @@ var init_CborCodec = __esm({
|
|
|
9343
9365
|
if (ns.isListSchema()) {
|
|
9344
9366
|
const newArray = [];
|
|
9345
9367
|
const memberSchema = ns.getValueSchema();
|
|
9346
|
-
const sparse = !!ns.getMergedTraits().sparse;
|
|
9347
9368
|
for (const item of value) {
|
|
9348
9369
|
const itemValue = this.readValue(memberSchema, item);
|
|
9349
|
-
|
|
9350
|
-
newArray.push(itemValue);
|
|
9351
|
-
}
|
|
9370
|
+
newArray.push(itemValue);
|
|
9352
9371
|
}
|
|
9353
9372
|
return newArray;
|
|
9354
9373
|
}
|
|
9355
9374
|
const newObject = {};
|
|
9356
9375
|
if (ns.isMapSchema()) {
|
|
9357
|
-
const sparse = !!ns.getMergedTraits().sparse;
|
|
9358
9376
|
const targetSchema = ns.getValueSchema();
|
|
9359
9377
|
for (const key of Object.keys(value)) {
|
|
9360
9378
|
const itemValue = this.readValue(targetSchema, value[key]);
|
|
9361
|
-
|
|
9362
|
-
newObject[key] = itemValue;
|
|
9363
|
-
}
|
|
9379
|
+
newObject[key] = itemValue;
|
|
9364
9380
|
}
|
|
9365
9381
|
} else if (ns.isStructSchema()) {
|
|
9366
9382
|
const isUnion = ns.isUnionSchema();
|
|
@@ -11449,7 +11465,7 @@ var require_fxp = __commonJS({
|
|
|
11449
11465
|
}, o: (t6, e6) => Object.prototype.hasOwnProperty.call(t6, e6), r: (t6) => {
|
|
11450
11466
|
"undefined" != typeof Symbol && Symbol.toStringTag && Object.defineProperty(t6, Symbol.toStringTag, { value: "Module" }), Object.defineProperty(t6, "__esModule", { value: true });
|
|
11451
11467
|
} }, e5 = {};
|
|
11452
|
-
t5.r(e5), t5.d(e5, { XMLBuilder: () =>
|
|
11468
|
+
t5.r(e5), t5.d(e5, { XMLBuilder: () => gt, XMLParser: () => it, XMLValidator: () => xt });
|
|
11453
11469
|
const n5 = ":A-Za-z_\\u00C0-\\u00D6\\u00D8-\\u00F6\\u00F8-\\u02FF\\u0370-\\u037D\\u037F-\\u1FFF\\u200C-\\u200D\\u2070-\\u218F\\u2C00-\\u2FEF\\u3001-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFFD", i5 = new RegExp("^[" + n5 + "][" + n5 + "\\-.\\d\\u00B7\\u0300-\\u036F\\u203F-\\u2040]*$");
|
|
11454
11470
|
function s5(t6, e6) {
|
|
11455
11471
|
const n6 = [];
|
|
@@ -11471,90 +11487,90 @@ var require_fxp = __commonJS({
|
|
|
11471
11487
|
const n6 = [];
|
|
11472
11488
|
let i6 = false, s6 = false;
|
|
11473
11489
|
"\uFEFF" === t6[0] && (t6 = t6.substr(1));
|
|
11474
|
-
for (let
|
|
11475
|
-
if (
|
|
11490
|
+
for (let r6 = 0; r6 < t6.length; r6++) if ("<" === t6[r6] && "?" === t6[r6 + 1]) {
|
|
11491
|
+
if (r6 += 2, r6 = u5(t6, r6), r6.err) return r6;
|
|
11476
11492
|
} else {
|
|
11477
|
-
if ("<" !== t6[
|
|
11478
|
-
if (l5(t6[
|
|
11479
|
-
return m5("InvalidChar", "char '" + t6[
|
|
11493
|
+
if ("<" !== t6[r6]) {
|
|
11494
|
+
if (l5(t6[r6])) continue;
|
|
11495
|
+
return m5("InvalidChar", "char '" + t6[r6] + "' is not expected.", N(t6, r6));
|
|
11480
11496
|
}
|
|
11481
11497
|
{
|
|
11482
|
-
let
|
|
11483
|
-
if (
|
|
11484
|
-
|
|
11498
|
+
let o6 = r6;
|
|
11499
|
+
if (r6++, "!" === t6[r6]) {
|
|
11500
|
+
r6 = d5(t6, r6);
|
|
11485
11501
|
continue;
|
|
11486
11502
|
}
|
|
11487
11503
|
{
|
|
11488
|
-
let
|
|
11489
|
-
"/" === t6[
|
|
11490
|
-
let
|
|
11491
|
-
for (;
|
|
11492
|
-
if (
|
|
11504
|
+
let a6 = false;
|
|
11505
|
+
"/" === t6[r6] && (a6 = true, r6++);
|
|
11506
|
+
let h6 = "";
|
|
11507
|
+
for (; r6 < t6.length && ">" !== t6[r6] && " " !== t6[r6] && " " !== t6[r6] && "\n" !== t6[r6] && "\r" !== t6[r6]; r6++) h6 += t6[r6];
|
|
11508
|
+
if (h6 = h6.trim(), "/" === h6[h6.length - 1] && (h6 = h6.substring(0, h6.length - 1), r6--), !b5(h6)) {
|
|
11493
11509
|
let e7;
|
|
11494
|
-
return e7 = 0 ===
|
|
11510
|
+
return e7 = 0 === h6.trim().length ? "Invalid space after '<'." : "Tag '" + h6 + "' is an invalid name.", m5("InvalidTag", e7, N(t6, r6));
|
|
11495
11511
|
}
|
|
11496
|
-
const
|
|
11497
|
-
if (false ===
|
|
11498
|
-
let
|
|
11499
|
-
if (
|
|
11500
|
-
const n7 =
|
|
11501
|
-
|
|
11502
|
-
const s7 = g5(
|
|
11503
|
-
if (true !== s7) return m5(s7.err.code, s7.err.msg,
|
|
11512
|
+
const p6 = c5(t6, r6);
|
|
11513
|
+
if (false === p6) return m5("InvalidAttr", "Attributes for '" + h6 + "' have open quote.", N(t6, r6));
|
|
11514
|
+
let f6 = p6.value;
|
|
11515
|
+
if (r6 = p6.index, "/" === f6[f6.length - 1]) {
|
|
11516
|
+
const n7 = r6 - f6.length;
|
|
11517
|
+
f6 = f6.substring(0, f6.length - 1);
|
|
11518
|
+
const s7 = g5(f6, e6);
|
|
11519
|
+
if (true !== s7) return m5(s7.err.code, s7.err.msg, N(t6, n7 + s7.err.line));
|
|
11504
11520
|
i6 = true;
|
|
11505
|
-
} else if (
|
|
11506
|
-
if (!
|
|
11507
|
-
if (
|
|
11508
|
-
if (0 === n6.length) return m5("InvalidTag", "Closing tag '" +
|
|
11521
|
+
} else if (a6) {
|
|
11522
|
+
if (!p6.tagClosed) return m5("InvalidTag", "Closing tag '" + h6 + "' doesn't have proper closing.", N(t6, r6));
|
|
11523
|
+
if (f6.trim().length > 0) return m5("InvalidTag", "Closing tag '" + h6 + "' can't have attributes or invalid starting.", N(t6, o6));
|
|
11524
|
+
if (0 === n6.length) return m5("InvalidTag", "Closing tag '" + h6 + "' has not been opened.", N(t6, o6));
|
|
11509
11525
|
{
|
|
11510
11526
|
const e7 = n6.pop();
|
|
11511
|
-
if (
|
|
11512
|
-
let n7 =
|
|
11513
|
-
return m5("InvalidTag", "Expected closing tag '" + e7.tagName + "' (opened in line " + n7.line + ", col " + n7.col + ") instead of closing tag '" +
|
|
11527
|
+
if (h6 !== e7.tagName) {
|
|
11528
|
+
let n7 = N(t6, e7.tagStartPos);
|
|
11529
|
+
return m5("InvalidTag", "Expected closing tag '" + e7.tagName + "' (opened in line " + n7.line + ", col " + n7.col + ") instead of closing tag '" + h6 + "'.", N(t6, o6));
|
|
11514
11530
|
}
|
|
11515
11531
|
0 == n6.length && (s6 = true);
|
|
11516
11532
|
}
|
|
11517
11533
|
} else {
|
|
11518
|
-
const
|
|
11519
|
-
if (true !==
|
|
11520
|
-
if (true === s6) return m5("InvalidXml", "Multiple possible root nodes found.",
|
|
11521
|
-
-1 !== e6.unpairedTags.indexOf(
|
|
11534
|
+
const a7 = g5(f6, e6);
|
|
11535
|
+
if (true !== a7) return m5(a7.err.code, a7.err.msg, N(t6, r6 - f6.length + a7.err.line));
|
|
11536
|
+
if (true === s6) return m5("InvalidXml", "Multiple possible root nodes found.", N(t6, r6));
|
|
11537
|
+
-1 !== e6.unpairedTags.indexOf(h6) || n6.push({ tagName: h6, tagStartPos: o6 }), i6 = true;
|
|
11522
11538
|
}
|
|
11523
|
-
for (
|
|
11524
|
-
if ("!" === t6[
|
|
11525
|
-
|
|
11539
|
+
for (r6++; r6 < t6.length; r6++) if ("<" === t6[r6]) {
|
|
11540
|
+
if ("!" === t6[r6 + 1]) {
|
|
11541
|
+
r6++, r6 = d5(t6, r6);
|
|
11526
11542
|
continue;
|
|
11527
11543
|
}
|
|
11528
|
-
if ("?" !== t6[
|
|
11529
|
-
if (
|
|
11530
|
-
} else if ("&" === t6[
|
|
11531
|
-
const e7 = x5(t6,
|
|
11532
|
-
if (-1 == e7) return m5("InvalidChar", "char '&' is not expected.",
|
|
11533
|
-
|
|
11534
|
-
} else if (true === s6 && !l5(t6[
|
|
11535
|
-
"<" === t6[
|
|
11544
|
+
if ("?" !== t6[r6 + 1]) break;
|
|
11545
|
+
if (r6 = u5(t6, ++r6), r6.err) return r6;
|
|
11546
|
+
} else if ("&" === t6[r6]) {
|
|
11547
|
+
const e7 = x5(t6, r6);
|
|
11548
|
+
if (-1 == e7) return m5("InvalidChar", "char '&' is not expected.", N(t6, r6));
|
|
11549
|
+
r6 = e7;
|
|
11550
|
+
} else if (true === s6 && !l5(t6[r6])) return m5("InvalidXml", "Extra text at the end", N(t6, r6));
|
|
11551
|
+
"<" === t6[r6] && r6--;
|
|
11536
11552
|
}
|
|
11537
11553
|
}
|
|
11538
11554
|
}
|
|
11539
|
-
return i6 ? 1 == n6.length ? m5("InvalidTag", "Unclosed tag '" + n6[0].tagName + "'.",
|
|
11555
|
+
return i6 ? 1 == n6.length ? m5("InvalidTag", "Unclosed tag '" + n6[0].tagName + "'.", N(t6, n6[0].tagStartPos)) : !(n6.length > 0) || m5("InvalidXml", "Invalid '" + JSON.stringify(n6.map((t7) => t7.tagName), null, 4).replace(/\r?\n/g, "") + "' found.", { line: 1, col: 1 }) : m5("InvalidXml", "Start tag expected.", 1);
|
|
11540
11556
|
}
|
|
11541
11557
|
function l5(t6) {
|
|
11542
11558
|
return " " === t6 || " " === t6 || "\n" === t6 || "\r" === t6;
|
|
11543
11559
|
}
|
|
11544
11560
|
function u5(t6, e6) {
|
|
11545
11561
|
const n6 = e6;
|
|
11546
|
-
for (; e6 < t6.length; e6++) if ("?"
|
|
11547
|
-
else {
|
|
11562
|
+
for (; e6 < t6.length; e6++) if ("?" == t6[e6] || " " == t6[e6]) {
|
|
11548
11563
|
const i6 = t6.substr(n6, e6 - n6);
|
|
11549
|
-
if (e6 > 5 && "xml" === i6) return m5("InvalidXml", "XML declaration allowed only at the start of the document.",
|
|
11564
|
+
if (e6 > 5 && "xml" === i6) return m5("InvalidXml", "XML declaration allowed only at the start of the document.", N(t6, e6));
|
|
11550
11565
|
if ("?" == t6[e6] && ">" == t6[e6 + 1]) {
|
|
11551
11566
|
e6++;
|
|
11552
11567
|
break;
|
|
11553
11568
|
}
|
|
11569
|
+
continue;
|
|
11554
11570
|
}
|
|
11555
11571
|
return e6;
|
|
11556
11572
|
}
|
|
11557
|
-
function
|
|
11573
|
+
function d5(t6, e6) {
|
|
11558
11574
|
if (t6.length > e6 + 5 && "-" === t6[e6 + 1] && "-" === t6[e6 + 2]) {
|
|
11559
11575
|
for (e6 += 3; e6 < t6.length; e6++) if ("-" === t6[e6] && "-" === t6[e6 + 1] && ">" === t6[e6 + 2]) {
|
|
11560
11576
|
e6 += 2;
|
|
@@ -11572,11 +11588,11 @@ var require_fxp = __commonJS({
|
|
|
11572
11588
|
}
|
|
11573
11589
|
return e6;
|
|
11574
11590
|
}
|
|
11575
|
-
const
|
|
11576
|
-
function
|
|
11591
|
+
const h5 = '"', p5 = "'";
|
|
11592
|
+
function c5(t6, e6) {
|
|
11577
11593
|
let n6 = "", i6 = "", s6 = false;
|
|
11578
11594
|
for (; e6 < t6.length; e6++) {
|
|
11579
|
-
if (t6[e6] ===
|
|
11595
|
+
if (t6[e6] === h5 || t6[e6] === p5) "" === i6 ? i6 = t6[e6] : i6 !== t6[e6] || (i6 = "");
|
|
11580
11596
|
else if (">" === t6[e6] && "" === i6) {
|
|
11581
11597
|
s6 = true;
|
|
11582
11598
|
break;
|
|
@@ -11585,16 +11601,16 @@ var require_fxp = __commonJS({
|
|
|
11585
11601
|
}
|
|
11586
11602
|
return "" === i6 && { value: n6, index: e6, tagClosed: s6 };
|
|
11587
11603
|
}
|
|
11588
|
-
const
|
|
11604
|
+
const f5 = new RegExp(`(\\s*)([^\\s=]+)(\\s*=)?(\\s*(['"])(([\\s\\S])*?)\\5)?`, "g");
|
|
11589
11605
|
function g5(t6, e6) {
|
|
11590
|
-
const n6 = s5(t6,
|
|
11606
|
+
const n6 = s5(t6, f5), i6 = {};
|
|
11591
11607
|
for (let t7 = 0; t7 < n6.length; t7++) {
|
|
11592
|
-
if (0 === n6[t7][1].length) return m5("InvalidAttr", "Attribute '" + n6[t7][2] + "' has no space in starting.",
|
|
11593
|
-
if (void 0 !== n6[t7][3] && void 0 === n6[t7][4]) return m5("InvalidAttr", "Attribute '" + n6[t7][2] + "' is without value.",
|
|
11594
|
-
if (void 0 === n6[t7][3] && !e6.allowBooleanAttributes) return m5("InvalidAttr", "boolean attribute '" + n6[t7][2] + "' is not allowed.",
|
|
11608
|
+
if (0 === n6[t7][1].length) return m5("InvalidAttr", "Attribute '" + n6[t7][2] + "' has no space in starting.", y2(n6[t7]));
|
|
11609
|
+
if (void 0 !== n6[t7][3] && void 0 === n6[t7][4]) return m5("InvalidAttr", "Attribute '" + n6[t7][2] + "' is without value.", y2(n6[t7]));
|
|
11610
|
+
if (void 0 === n6[t7][3] && !e6.allowBooleanAttributes) return m5("InvalidAttr", "boolean attribute '" + n6[t7][2] + "' is not allowed.", y2(n6[t7]));
|
|
11595
11611
|
const s6 = n6[t7][2];
|
|
11596
|
-
if (!E2(s6)) return m5("InvalidAttr", "Attribute '" + s6 + "' is an invalid name.",
|
|
11597
|
-
if (
|
|
11612
|
+
if (!E2(s6)) return m5("InvalidAttr", "Attribute '" + s6 + "' is an invalid name.", y2(n6[t7]));
|
|
11613
|
+
if (Object.prototype.hasOwnProperty.call(i6, s6)) return m5("InvalidAttr", "Attribute '" + s6 + "' is repeated.", y2(n6[t7]));
|
|
11598
11614
|
i6[s6] = 1;
|
|
11599
11615
|
}
|
|
11600
11616
|
return true;
|
|
@@ -11622,49 +11638,52 @@ var require_fxp = __commonJS({
|
|
|
11622
11638
|
function E2(t6) {
|
|
11623
11639
|
return r5(t6);
|
|
11624
11640
|
}
|
|
11625
|
-
function b5(t6
|
|
11641
|
+
function b5(t6) {
|
|
11642
|
+
return r5(t6);
|
|
11643
|
+
}
|
|
11644
|
+
function N(t6, e6) {
|
|
11626
11645
|
const n6 = t6.substring(0, e6).split(/\r?\n/);
|
|
11627
11646
|
return { line: n6.length, col: n6[n6.length - 1].length + 1 };
|
|
11628
11647
|
}
|
|
11629
|
-
function
|
|
11648
|
+
function y2(t6) {
|
|
11630
11649
|
return t6.startIndex + t6[1].length;
|
|
11631
11650
|
}
|
|
11632
|
-
const
|
|
11651
|
+
const T = { preserveOrder: false, attributeNamePrefix: "@_", attributesGroupName: false, textNodeName: "#text", ignoreAttributes: true, removeNSPrefix: false, allowBooleanAttributes: false, parseTagValue: true, parseAttributeValue: false, trimValues: true, cdataPropName: false, numberParseOptions: { hex: true, leadingZeros: true, eNotation: true }, tagValueProcessor: function(t6, e6) {
|
|
11633
11652
|
return e6;
|
|
11634
11653
|
}, attributeValueProcessor: function(t6, e6) {
|
|
11635
11654
|
return e6;
|
|
11636
11655
|
}, stopNodes: [], alwaysCreateTextNode: false, isArray: () => false, commentPropName: false, unpairedTags: [], processEntities: true, htmlEntities: false, ignoreDeclaration: false, ignorePiTags: false, transformTagName: false, transformAttributeName: false, updateTag: function(t6, e6, n6) {
|
|
11637
11656
|
return t6;
|
|
11638
|
-
}, captureMetaData: false };
|
|
11639
|
-
function
|
|
11640
|
-
return "boolean" == typeof t6 ? { enabled: t6, maxEntitySize: 1e4, maxExpansionDepth: 10, maxTotalExpansions: 1e3, maxExpandedLength: 1e5, allowedTags: null, tagFilter: null } : "object" == typeof t6 && null !== t6 ? { enabled: false !== t6.enabled, maxEntitySize: t6.maxEntitySize ?? 1e4, maxExpansionDepth: t6.maxExpansionDepth ?? 10, maxTotalExpansions: t6.maxTotalExpansions ?? 1e3, maxExpandedLength: t6.maxExpandedLength ?? 1e5, allowedTags: t6.allowedTags ?? null, tagFilter: t6.tagFilter ?? null } :
|
|
11657
|
+
}, captureMetaData: false, maxNestedTags: 100, strictReservedNames: true };
|
|
11658
|
+
function w5(t6) {
|
|
11659
|
+
return "boolean" == typeof t6 ? { enabled: t6, maxEntitySize: 1e4, maxExpansionDepth: 10, maxTotalExpansions: 1e3, maxExpandedLength: 1e5, allowedTags: null, tagFilter: null } : "object" == typeof t6 && null !== t6 ? { enabled: false !== t6.enabled, maxEntitySize: t6.maxEntitySize ?? 1e4, maxExpansionDepth: t6.maxExpansionDepth ?? 10, maxTotalExpansions: t6.maxTotalExpansions ?? 1e3, maxExpandedLength: t6.maxExpandedLength ?? 1e5, allowedTags: t6.allowedTags ?? null, tagFilter: t6.tagFilter ?? null } : w5(true);
|
|
11641
11660
|
}
|
|
11642
|
-
const
|
|
11643
|
-
const e6 = Object.assign({},
|
|
11644
|
-
return e6.processEntities =
|
|
11661
|
+
const v5 = function(t6) {
|
|
11662
|
+
const e6 = Object.assign({}, T, t6);
|
|
11663
|
+
return e6.processEntities = w5(e6.processEntities), e6;
|
|
11645
11664
|
};
|
|
11646
|
-
let
|
|
11647
|
-
|
|
11665
|
+
let O;
|
|
11666
|
+
O = "function" != typeof Symbol ? "@@xmlMetadata" : Symbol("XML Node Metadata");
|
|
11648
11667
|
class I2 {
|
|
11649
11668
|
constructor(t6) {
|
|
11650
|
-
this.tagname = t6, this.child = [], this[":@"] =
|
|
11669
|
+
this.tagname = t6, this.child = [], this[":@"] = /* @__PURE__ */ Object.create(null);
|
|
11651
11670
|
}
|
|
11652
11671
|
add(t6, e6) {
|
|
11653
11672
|
"__proto__" === t6 && (t6 = "#__proto__"), this.child.push({ [t6]: e6 });
|
|
11654
11673
|
}
|
|
11655
11674
|
addChild(t6, e6) {
|
|
11656
|
-
"__proto__" === t6.tagname && (t6.tagname = "#__proto__"), t6[":@"] && Object.keys(t6[":@"]).length > 0 ? this.child.push({ [t6.tagname]: t6.child, ":@": t6[":@"] }) : this.child.push({ [t6.tagname]: t6.child }), void 0 !== e6 && (this.child[this.child.length - 1][
|
|
11675
|
+
"__proto__" === t6.tagname && (t6.tagname = "#__proto__"), t6[":@"] && Object.keys(t6[":@"]).length > 0 ? this.child.push({ [t6.tagname]: t6.child, ":@": t6[":@"] }) : this.child.push({ [t6.tagname]: t6.child }), void 0 !== e6 && (this.child[this.child.length - 1][O] = { startIndex: e6 });
|
|
11657
11676
|
}
|
|
11658
11677
|
static getMetaDataSymbol() {
|
|
11659
|
-
return
|
|
11678
|
+
return O;
|
|
11660
11679
|
}
|
|
11661
11680
|
}
|
|
11662
|
-
class
|
|
11681
|
+
class P {
|
|
11663
11682
|
constructor(t6) {
|
|
11664
11683
|
this.suppressValidationErr = !t6, this.options = t6;
|
|
11665
11684
|
}
|
|
11666
11685
|
readDocType(t6, e6) {
|
|
11667
|
-
const n6 =
|
|
11686
|
+
const n6 = /* @__PURE__ */ Object.create(null);
|
|
11668
11687
|
if ("O" !== t6[e6 + 3] || "C" !== t6[e6 + 4] || "T" !== t6[e6 + 5] || "Y" !== t6[e6 + 6] || "P" !== t6[e6 + 7] || "E" !== t6[e6 + 8]) throw new Error("Invalid Tag instead of DOCTYPE");
|
|
11669
11688
|
{
|
|
11670
11689
|
e6 += 9;
|
|
@@ -11673,23 +11692,23 @@ var require_fxp = __commonJS({
|
|
|
11673
11692
|
if (r6 ? "-" === t6[e6 - 1] && "-" === t6[e6 - 2] && (r6 = false, i6--) : i6--, 0 === i6) break;
|
|
11674
11693
|
} else "[" === t6[e6] ? s6 = true : o6 += t6[e6];
|
|
11675
11694
|
else {
|
|
11676
|
-
if (s6 &&
|
|
11695
|
+
if (s6 && S(t6, "!ENTITY", e6)) {
|
|
11677
11696
|
let i7, s7;
|
|
11678
11697
|
if (e6 += 7, [i7, s7, e6] = this.readEntityExp(t6, e6 + 1, this.suppressValidationErr), -1 === s7.indexOf("&")) {
|
|
11679
11698
|
const t7 = i7.replace(/[.\-+*:]/g, "\\.");
|
|
11680
11699
|
n6[i7] = { regx: RegExp(`&${t7};`, "g"), val: s7 };
|
|
11681
11700
|
}
|
|
11682
|
-
} else if (s6 &&
|
|
11701
|
+
} else if (s6 && S(t6, "!ELEMENT", e6)) {
|
|
11683
11702
|
e6 += 8;
|
|
11684
11703
|
const { index: n7 } = this.readElementExp(t6, e6 + 1);
|
|
11685
11704
|
e6 = n7;
|
|
11686
|
-
} else if (s6 &&
|
|
11687
|
-
else if (s6 &&
|
|
11705
|
+
} else if (s6 && S(t6, "!ATTLIST", e6)) e6 += 8;
|
|
11706
|
+
else if (s6 && S(t6, "!NOTATION", e6)) {
|
|
11688
11707
|
e6 += 9;
|
|
11689
11708
|
const { index: n7 } = this.readNotationExp(t6, e6 + 1, this.suppressValidationErr);
|
|
11690
11709
|
e6 = n7;
|
|
11691
11710
|
} else {
|
|
11692
|
-
if (!
|
|
11711
|
+
if (!S(t6, "!--", e6)) throw new Error("Invalid DOCTYPE");
|
|
11693
11712
|
r6 = true;
|
|
11694
11713
|
}
|
|
11695
11714
|
i6++, o6 = "";
|
|
@@ -11699,10 +11718,10 @@ var require_fxp = __commonJS({
|
|
|
11699
11718
|
return { entities: n6, i: e6 };
|
|
11700
11719
|
}
|
|
11701
11720
|
readEntityExp(t6, e6) {
|
|
11702
|
-
e6 =
|
|
11721
|
+
e6 = A2(t6, e6);
|
|
11703
11722
|
let n6 = "";
|
|
11704
11723
|
for (; e6 < t6.length && !/\s/.test(t6[e6]) && '"' !== t6[e6] && "'" !== t6[e6]; ) n6 += t6[e6], e6++;
|
|
11705
|
-
if (
|
|
11724
|
+
if (C2(n6), e6 = A2(t6, e6), !this.suppressValidationErr) {
|
|
11706
11725
|
if ("SYSTEM" === t6.substring(e6, e6 + 6).toUpperCase()) throw new Error("External entities are not supported");
|
|
11707
11726
|
if ("%" === t6[e6]) throw new Error("Parameter entities are not supported");
|
|
11708
11727
|
}
|
|
@@ -11711,15 +11730,15 @@ var require_fxp = __commonJS({
|
|
|
11711
11730
|
return [n6, i6, --e6];
|
|
11712
11731
|
}
|
|
11713
11732
|
readNotationExp(t6, e6) {
|
|
11714
|
-
e6 =
|
|
11733
|
+
e6 = A2(t6, e6);
|
|
11715
11734
|
let n6 = "";
|
|
11716
11735
|
for (; e6 < t6.length && !/\s/.test(t6[e6]); ) n6 += t6[e6], e6++;
|
|
11717
|
-
!this.suppressValidationErr &&
|
|
11736
|
+
!this.suppressValidationErr && C2(n6), e6 = A2(t6, e6);
|
|
11718
11737
|
const i6 = t6.substring(e6, e6 + 6).toUpperCase();
|
|
11719
11738
|
if (!this.suppressValidationErr && "SYSTEM" !== i6 && "PUBLIC" !== i6) throw new Error(`Expected SYSTEM or PUBLIC, found "${i6}"`);
|
|
11720
|
-
e6 += i6.length, e6 =
|
|
11739
|
+
e6 += i6.length, e6 = A2(t6, e6);
|
|
11721
11740
|
let s6 = null, r6 = null;
|
|
11722
|
-
if ("PUBLIC" === i6) [e6, s6] = this.readIdentifierVal(t6, e6, "publicIdentifier"), '"' !== t6[e6 =
|
|
11741
|
+
if ("PUBLIC" === i6) [e6, s6] = this.readIdentifierVal(t6, e6, "publicIdentifier"), '"' !== t6[e6 = A2(t6, e6)] && "'" !== t6[e6] || ([e6, r6] = this.readIdentifierVal(t6, e6, "systemIdentifier"));
|
|
11723
11742
|
else if ("SYSTEM" === i6 && ([e6, r6] = this.readIdentifierVal(t6, e6, "systemIdentifier"), !this.suppressValidationErr && !r6)) throw new Error("Missing mandatory system identifier for SYSTEM notation");
|
|
11724
11743
|
return { notationName: n6, publicIdentifier: s6, systemIdentifier: r6, index: --e6 };
|
|
11725
11744
|
}
|
|
@@ -11732,13 +11751,13 @@ var require_fxp = __commonJS({
|
|
|
11732
11751
|
return [++e6, i6];
|
|
11733
11752
|
}
|
|
11734
11753
|
readElementExp(t6, e6) {
|
|
11735
|
-
e6 =
|
|
11754
|
+
e6 = A2(t6, e6);
|
|
11736
11755
|
let n6 = "";
|
|
11737
11756
|
for (; e6 < t6.length && !/\s/.test(t6[e6]); ) n6 += t6[e6], e6++;
|
|
11738
11757
|
if (!this.suppressValidationErr && !r5(n6)) throw new Error(`Invalid element name: "${n6}"`);
|
|
11739
11758
|
let i6 = "";
|
|
11740
|
-
if ("E" === t6[e6 =
|
|
11741
|
-
else if ("A" === t6[e6] &&
|
|
11759
|
+
if ("E" === t6[e6 = A2(t6, e6)] && S(t6, "MPTY", e6)) e6 += 4;
|
|
11760
|
+
else if ("A" === t6[e6] && S(t6, "NY", e6)) e6 += 2;
|
|
11742
11761
|
else if ("(" === t6[e6]) {
|
|
11743
11762
|
for (e6++; e6 < t6.length && ")" !== t6[e6]; ) i6 += t6[e6], e6++;
|
|
11744
11763
|
if (")" !== t6[e6]) throw new Error("Unterminated content model");
|
|
@@ -11746,24 +11765,24 @@ var require_fxp = __commonJS({
|
|
|
11746
11765
|
return { elementName: n6, contentModel: i6.trim(), index: e6 };
|
|
11747
11766
|
}
|
|
11748
11767
|
readAttlistExp(t6, e6) {
|
|
11749
|
-
e6 =
|
|
11768
|
+
e6 = A2(t6, e6);
|
|
11750
11769
|
let n6 = "";
|
|
11751
11770
|
for (; e6 < t6.length && !/\s/.test(t6[e6]); ) n6 += t6[e6], e6++;
|
|
11752
|
-
|
|
11771
|
+
C2(n6), e6 = A2(t6, e6);
|
|
11753
11772
|
let i6 = "";
|
|
11754
11773
|
for (; e6 < t6.length && !/\s/.test(t6[e6]); ) i6 += t6[e6], e6++;
|
|
11755
|
-
if (!
|
|
11756
|
-
e6 =
|
|
11774
|
+
if (!C2(i6)) throw new Error(`Invalid attribute name: "${i6}"`);
|
|
11775
|
+
e6 = A2(t6, e6);
|
|
11757
11776
|
let s6 = "";
|
|
11758
11777
|
if ("NOTATION" === t6.substring(e6, e6 + 8).toUpperCase()) {
|
|
11759
|
-
if (s6 = "NOTATION", "(" !== t6[e6 =
|
|
11778
|
+
if (s6 = "NOTATION", "(" !== t6[e6 = A2(t6, e6 += 8)]) throw new Error(`Expected '(', found "${t6[e6]}"`);
|
|
11760
11779
|
e6++;
|
|
11761
11780
|
let n7 = [];
|
|
11762
11781
|
for (; e6 < t6.length && ")" !== t6[e6]; ) {
|
|
11763
11782
|
let i7 = "";
|
|
11764
11783
|
for (; e6 < t6.length && "|" !== t6[e6] && ")" !== t6[e6]; ) i7 += t6[e6], e6++;
|
|
11765
|
-
if (i7 = i7.trim(), !
|
|
11766
|
-
n7.push(i7), "|" === t6[e6] && (e6++, e6 =
|
|
11784
|
+
if (i7 = i7.trim(), !C2(i7)) throw new Error(`Invalid notation name: "${i7}"`);
|
|
11785
|
+
n7.push(i7), "|" === t6[e6] && (e6++, e6 = A2(t6, e6));
|
|
11767
11786
|
}
|
|
11768
11787
|
if (")" !== t6[e6]) throw new Error("Unterminated list of notations");
|
|
11769
11788
|
e6++, s6 += " (" + n7.join("|") + ")";
|
|
@@ -11772,45 +11791,43 @@ var require_fxp = __commonJS({
|
|
|
11772
11791
|
const n7 = ["CDATA", "ID", "IDREF", "IDREFS", "ENTITY", "ENTITIES", "NMTOKEN", "NMTOKENS"];
|
|
11773
11792
|
if (!this.suppressValidationErr && !n7.includes(s6.toUpperCase())) throw new Error(`Invalid attribute type: "${s6}"`);
|
|
11774
11793
|
}
|
|
11775
|
-
e6 =
|
|
11794
|
+
e6 = A2(t6, e6);
|
|
11776
11795
|
let r6 = "";
|
|
11777
11796
|
return "#REQUIRED" === t6.substring(e6, e6 + 8).toUpperCase() ? (r6 = "#REQUIRED", e6 += 8) : "#IMPLIED" === t6.substring(e6, e6 + 7).toUpperCase() ? (r6 = "#IMPLIED", e6 += 7) : [e6, r6] = this.readIdentifierVal(t6, e6, "ATTLIST"), { elementName: n6, attributeName: i6, attributeType: s6, defaultValue: r6, index: e6 };
|
|
11778
11797
|
}
|
|
11779
11798
|
}
|
|
11780
|
-
const
|
|
11799
|
+
const A2 = (t6, e6) => {
|
|
11781
11800
|
for (; e6 < t6.length && /\s/.test(t6[e6]); ) e6++;
|
|
11782
11801
|
return e6;
|
|
11783
11802
|
};
|
|
11784
|
-
function
|
|
11803
|
+
function S(t6, e6, n6) {
|
|
11785
11804
|
for (let i6 = 0; i6 < e6.length; i6++) if (e6[i6] !== t6[n6 + i6 + 1]) return false;
|
|
11786
11805
|
return true;
|
|
11787
11806
|
}
|
|
11788
|
-
function
|
|
11807
|
+
function C2(t6) {
|
|
11789
11808
|
if (r5(t6)) return t6;
|
|
11790
11809
|
throw new Error(`Invalid entity name ${t6}`);
|
|
11791
11810
|
}
|
|
11792
|
-
const
|
|
11793
|
-
const
|
|
11794
|
-
|
|
11795
|
-
return "function" == typeof t6 ? t6 : Array.isArray(t6) ? (e6) => {
|
|
11796
|
-
for (const n6 of t6) {
|
|
11797
|
-
if ("string" == typeof n6 && e6 === n6) return true;
|
|
11798
|
-
if (n6 instanceof RegExp && n6.test(e6)) return true;
|
|
11799
|
-
}
|
|
11800
|
-
} : () => false;
|
|
11801
|
-
}
|
|
11802
|
-
class F2 {
|
|
11811
|
+
const $ = /^[-+]?0x[a-fA-F0-9]+$/, V = /^([\-\+])?(0*)([0-9]*(\.[0-9]*)?)$/, D2 = { hex: true, leadingZeros: true, decimalPoint: ".", eNotation: true };
|
|
11812
|
+
const j5 = /^([-+])?(0*)(\d*(\.\d*)?[eE][-\+]?\d+)$/;
|
|
11813
|
+
class L {
|
|
11803
11814
|
constructor(t6) {
|
|
11804
|
-
|
|
11815
|
+
var e6;
|
|
11816
|
+
if (this.options = t6, this.currentNode = null, this.tagsNodeStack = [], this.docTypeEntities = {}, this.lastEntities = { apos: { regex: /&(apos|#39|#x27);/g, val: "'" }, gt: { regex: /&(gt|#62|#x3E);/g, val: ">" }, lt: { regex: /&(lt|#60|#x3C);/g, val: "<" }, quot: { regex: /&(quot|#34|#x22);/g, val: '"' } }, this.ampEntity = { regex: /&(amp|#38|#x26);/g, val: "&" }, this.htmlEntities = { space: { regex: /&(nbsp|#160);/g, val: " " }, cent: { regex: /&(cent|#162);/g, val: "\xA2" }, pound: { regex: /&(pound|#163);/g, val: "\xA3" }, yen: { regex: /&(yen|#165);/g, val: "\xA5" }, euro: { regex: /&(euro|#8364);/g, val: "\u20AC" }, copyright: { regex: /&(copy|#169);/g, val: "\xA9" }, reg: { regex: /&(reg|#174);/g, val: "\xAE" }, inr: { regex: /&(inr|#8377);/g, val: "\u20B9" }, num_dec: { regex: /&#([0-9]{1,7});/g, val: (t7, e7) => K(e7, 10, "&#") }, num_hex: { regex: /&#x([0-9a-fA-F]{1,6});/g, val: (t7, e7) => K(e7, 16, "&#x") } }, this.addExternalEntities = F2, this.parseXml = R, this.parseTextData = M, this.resolveNameSpace = k5, this.buildAttributesMap = U, this.isItStopNode = X, this.replaceEntitiesValue = Y, this.readStopNodeData = q5, this.saveTextToParentTag = G2, this.addChild = B2, this.ignoreAttributesFn = "function" == typeof (e6 = this.options.ignoreAttributes) ? e6 : Array.isArray(e6) ? (t7) => {
|
|
11817
|
+
for (const n6 of e6) {
|
|
11818
|
+
if ("string" == typeof n6 && t7 === n6) return true;
|
|
11819
|
+
if (n6 instanceof RegExp && n6.test(t7)) return true;
|
|
11820
|
+
}
|
|
11821
|
+
} : () => false, this.entityExpansionCount = 0, this.currentExpandedLength = 0, this.options.stopNodes && this.options.stopNodes.length > 0) {
|
|
11805
11822
|
this.stopNodesExact = /* @__PURE__ */ new Set(), this.stopNodesWildcard = /* @__PURE__ */ new Set();
|
|
11806
11823
|
for (let t7 = 0; t7 < this.options.stopNodes.length; t7++) {
|
|
11807
|
-
const
|
|
11808
|
-
"string" == typeof
|
|
11824
|
+
const e7 = this.options.stopNodes[t7];
|
|
11825
|
+
"string" == typeof e7 && (e7.startsWith("*.") ? this.stopNodesWildcard.add(e7.substring(2)) : this.stopNodesExact.add(e7));
|
|
11809
11826
|
}
|
|
11810
11827
|
}
|
|
11811
11828
|
}
|
|
11812
11829
|
}
|
|
11813
|
-
function
|
|
11830
|
+
function F2(t6) {
|
|
11814
11831
|
const e6 = Object.keys(t6);
|
|
11815
11832
|
for (let n6 = 0; n6 < e6.length; n6++) {
|
|
11816
11833
|
const i6 = e6[n6], s6 = i6.replace(/[.\-+*:]/g, "\\.");
|
|
@@ -11824,7 +11841,7 @@ var require_fxp = __commonJS({
|
|
|
11824
11841
|
return null == i7 ? t6 : typeof i7 != typeof t6 || i7 !== t6 ? i7 : this.options.trimValues || t6.trim() === t6 ? Z(t6, this.options.parseTagValue, this.options.numberParseOptions) : t6;
|
|
11825
11842
|
}
|
|
11826
11843
|
}
|
|
11827
|
-
function
|
|
11844
|
+
function k5(t6) {
|
|
11828
11845
|
if (this.options.removeNSPrefix) {
|
|
11829
11846
|
const e6 = t6.split(":"), n6 = "/" === t6.charAt(0) ? "/" : "";
|
|
11830
11847
|
if ("xmlns" === e6[0]) return "";
|
|
@@ -11832,10 +11849,10 @@ var require_fxp = __commonJS({
|
|
|
11832
11849
|
}
|
|
11833
11850
|
return t6;
|
|
11834
11851
|
}
|
|
11835
|
-
const
|
|
11852
|
+
const _ = new RegExp(`([^\\s=]+)\\s*(=\\s*(['"])([\\s\\S]*?)\\3)?`, "gm");
|
|
11836
11853
|
function U(t6, e6, n6) {
|
|
11837
11854
|
if (true !== this.options.ignoreAttributes && "string" == typeof t6) {
|
|
11838
|
-
const i6 = s5(t6,
|
|
11855
|
+
const i6 = s5(t6, _), r6 = i6.length, o6 = {};
|
|
11839
11856
|
for (let t7 = 0; t7 < r6; t7++) {
|
|
11840
11857
|
const s6 = this.resolveNameSpace(i6[t7][1]);
|
|
11841
11858
|
if (this.ignoreAttributesFn(s6, e6)) continue;
|
|
@@ -11854,12 +11871,12 @@ var require_fxp = __commonJS({
|
|
|
11854
11871
|
return o6;
|
|
11855
11872
|
}
|
|
11856
11873
|
}
|
|
11857
|
-
const
|
|
11874
|
+
const R = function(t6) {
|
|
11858
11875
|
t6 = t6.replace(/\r\n?/g, "\n");
|
|
11859
11876
|
const e6 = new I2("!xml");
|
|
11860
11877
|
let n6 = e6, i6 = "", s6 = "";
|
|
11861
11878
|
this.entityExpansionCount = 0, this.currentExpandedLength = 0;
|
|
11862
|
-
const r6 = new
|
|
11879
|
+
const r6 = new P(this.options.processEntities);
|
|
11863
11880
|
for (let o6 = 0; o6 < t6.length; o6++) if ("<" === t6[o6]) if ("/" === t6[o6 + 1]) {
|
|
11864
11881
|
const e7 = z2(t6, ">", o6, "Closing Tag is not closed.");
|
|
11865
11882
|
let r7 = t6.substring(o6 + 2, e7).trim();
|
|
@@ -11899,26 +11916,27 @@ var require_fxp = __commonJS({
|
|
|
11899
11916
|
} else {
|
|
11900
11917
|
let r7 = W(t6, o6, this.options.removeNSPrefix), a6 = r7.tagName;
|
|
11901
11918
|
const l6 = r7.rawTagName;
|
|
11902
|
-
let u6 = r7.tagExp,
|
|
11919
|
+
let u6 = r7.tagExp, d6 = r7.attrExpPresent, h6 = r7.closeIndex;
|
|
11903
11920
|
if (this.options.transformTagName) {
|
|
11904
11921
|
const t7 = this.options.transformTagName(a6);
|
|
11905
11922
|
u6 === a6 && (u6 = t7), a6 = t7;
|
|
11906
11923
|
}
|
|
11924
|
+
if (this.options.strictReservedNames && (a6 === this.options.commentPropName || a6 === this.options.cdataPropName)) throw new Error(`Invalid tag name: ${a6}`);
|
|
11907
11925
|
n6 && i6 && "!xml" !== n6.tagname && (i6 = this.saveTextToParentTag(i6, n6, s6, false));
|
|
11908
11926
|
const p6 = n6;
|
|
11909
11927
|
p6 && -1 !== this.options.unpairedTags.indexOf(p6.tagname) && (n6 = this.tagsNodeStack.pop(), s6 = s6.substring(0, s6.lastIndexOf("."))), a6 !== e6.tagname && (s6 += s6 ? "." + a6 : a6);
|
|
11910
|
-
const
|
|
11928
|
+
const c6 = o6;
|
|
11911
11929
|
if (this.isItStopNode(this.stopNodesExact, this.stopNodesWildcard, s6, a6)) {
|
|
11912
11930
|
let e7 = "";
|
|
11913
11931
|
if (u6.length > 0 && u6.lastIndexOf("/") === u6.length - 1) "/" === a6[a6.length - 1] ? (a6 = a6.substr(0, a6.length - 1), s6 = s6.substr(0, s6.length - 1), u6 = a6) : u6 = u6.substr(0, u6.length - 1), o6 = r7.closeIndex;
|
|
11914
11932
|
else if (-1 !== this.options.unpairedTags.indexOf(a6)) o6 = r7.closeIndex;
|
|
11915
11933
|
else {
|
|
11916
|
-
const n7 = this.readStopNodeData(t6, l6,
|
|
11934
|
+
const n7 = this.readStopNodeData(t6, l6, h6 + 1);
|
|
11917
11935
|
if (!n7) throw new Error(`Unexpected end of ${l6}`);
|
|
11918
11936
|
o6 = n7.i, e7 = n7.tagContent;
|
|
11919
11937
|
}
|
|
11920
11938
|
const i7 = new I2(a6);
|
|
11921
|
-
a6 !== u6 &&
|
|
11939
|
+
a6 !== u6 && d6 && (i7[":@"] = this.buildAttributesMap(u6, s6, a6)), e7 && (e7 = this.parseTextData(e7, a6, s6, true, d6, true, true)), s6 = s6.substr(0, s6.lastIndexOf(".")), i7.add(this.options.textNodeName, e7), this.addChild(n6, i7, s6, c6);
|
|
11922
11940
|
} else {
|
|
11923
11941
|
if (u6.length > 0 && u6.lastIndexOf("/") === u6.length - 1) {
|
|
11924
11942
|
if ("/" === a6[a6.length - 1] ? (a6 = a6.substr(0, a6.length - 1), s6 = s6.substr(0, s6.length - 1), u6 = a6) : u6 = u6.substr(0, u6.length - 1), this.options.transformTagName) {
|
|
@@ -11926,18 +11944,26 @@ var require_fxp = __commonJS({
|
|
|
11926
11944
|
u6 === a6 && (u6 = t8), a6 = t8;
|
|
11927
11945
|
}
|
|
11928
11946
|
const t7 = new I2(a6);
|
|
11929
|
-
a6 !== u6 &&
|
|
11947
|
+
a6 !== u6 && d6 && (t7[":@"] = this.buildAttributesMap(u6, s6, a6)), this.addChild(n6, t7, s6, c6), s6 = s6.substr(0, s6.lastIndexOf("."));
|
|
11930
11948
|
} else {
|
|
11931
|
-
|
|
11932
|
-
|
|
11949
|
+
if (-1 !== this.options.unpairedTags.indexOf(a6)) {
|
|
11950
|
+
const t7 = new I2(a6);
|
|
11951
|
+
a6 !== u6 && d6 && (t7[":@"] = this.buildAttributesMap(u6, s6)), this.addChild(n6, t7, s6, c6), s6 = s6.substr(0, s6.lastIndexOf(".")), o6 = r7.closeIndex;
|
|
11952
|
+
continue;
|
|
11953
|
+
}
|
|
11954
|
+
{
|
|
11955
|
+
const t7 = new I2(a6);
|
|
11956
|
+
if (this.tagsNodeStack.length > this.options.maxNestedTags) throw new Error("Maximum nested tags exceeded");
|
|
11957
|
+
this.tagsNodeStack.push(n6), a6 !== u6 && d6 && (t7[":@"] = this.buildAttributesMap(u6, s6, a6)), this.addChild(n6, t7, s6, c6), n6 = t7;
|
|
11958
|
+
}
|
|
11933
11959
|
}
|
|
11934
|
-
i6 = "", o6 =
|
|
11960
|
+
i6 = "", o6 = h6;
|
|
11935
11961
|
}
|
|
11936
11962
|
}
|
|
11937
11963
|
else i6 += t6[o6];
|
|
11938
11964
|
return e6.child;
|
|
11939
11965
|
};
|
|
11940
|
-
function
|
|
11966
|
+
function B2(t6, e6, n6, i6) {
|
|
11941
11967
|
this.options.captureMetaData || (i6 = void 0);
|
|
11942
11968
|
const s6 = this.options.updateTag(e6.tagname, n6, e6[":@"]);
|
|
11943
11969
|
false === s6 || ("string" == typeof s6 ? (e6.tagname = s6, t6.addChild(e6, i6)) : t6.addChild(e6, i6));
|
|
@@ -11998,12 +12024,12 @@ var require_fxp = __commonJS({
|
|
|
11998
12024
|
const o6 = s6.index, a6 = r6.search(/\s/);
|
|
11999
12025
|
let l6 = r6, u6 = true;
|
|
12000
12026
|
-1 !== a6 && (l6 = r6.substring(0, a6), r6 = r6.substring(a6 + 1).trimStart());
|
|
12001
|
-
const
|
|
12027
|
+
const d6 = l6;
|
|
12002
12028
|
if (n6) {
|
|
12003
12029
|
const t7 = l6.indexOf(":");
|
|
12004
12030
|
-1 !== t7 && (l6 = l6.substr(t7 + 1), u6 = l6 !== s6.data.substr(t7 + 1));
|
|
12005
12031
|
}
|
|
12006
|
-
return { tagName: l6, tagExp: r6, closeIndex: o6, attrExpPresent: u6, rawTagName:
|
|
12032
|
+
return { tagName: l6, tagExp: r6, closeIndex: o6, attrExpPresent: u6, rawTagName: d6 };
|
|
12007
12033
|
}
|
|
12008
12034
|
function q5(t6, e6, n6) {
|
|
12009
12035
|
const i6 = n6;
|
|
@@ -12024,19 +12050,19 @@ var require_fxp = __commonJS({
|
|
|
12024
12050
|
if (e6 && "string" == typeof t6) {
|
|
12025
12051
|
const e7 = t6.trim();
|
|
12026
12052
|
return "true" === e7 || "false" !== e7 && function(t7, e8 = {}) {
|
|
12027
|
-
if (e8 = Object.assign({},
|
|
12053
|
+
if (e8 = Object.assign({}, D2, e8), !t7 || "string" != typeof t7) return t7;
|
|
12028
12054
|
let n7 = t7.trim();
|
|
12029
12055
|
if (void 0 !== e8.skipLike && e8.skipLike.test(n7)) return t7;
|
|
12030
12056
|
if ("0" === t7) return 0;
|
|
12031
|
-
if (e8.hex &&
|
|
12057
|
+
if (e8.hex && $.test(n7)) return function(t8) {
|
|
12032
12058
|
if (parseInt) return parseInt(t8, 16);
|
|
12033
12059
|
if (Number.parseInt) return Number.parseInt(t8, 16);
|
|
12034
12060
|
if (window && window.parseInt) return window.parseInt(t8, 16);
|
|
12035
12061
|
throw new Error("parseInt, Number.parseInt, window.parseInt are not supported");
|
|
12036
12062
|
}(n7);
|
|
12037
|
-
if (
|
|
12063
|
+
if (n7.includes("e") || n7.includes("E")) return function(t8, e9, n8) {
|
|
12038
12064
|
if (!n8.eNotation) return t8;
|
|
12039
|
-
const i7 = e9.match(
|
|
12065
|
+
const i7 = e9.match(j5);
|
|
12040
12066
|
if (i7) {
|
|
12041
12067
|
let s6 = i7[1] || "";
|
|
12042
12068
|
const r6 = -1 === i7[3].indexOf("e") ? "E" : "e", o6 = i7[2], a6 = s6 ? t8[o6.length + 1] === r6 : t8[o6.length] === r6;
|
|
@@ -12045,7 +12071,7 @@ var require_fxp = __commonJS({
|
|
|
12045
12071
|
return t8;
|
|
12046
12072
|
}(t7, n7, e8);
|
|
12047
12073
|
{
|
|
12048
|
-
const s6 =
|
|
12074
|
+
const s6 = V.exec(n7);
|
|
12049
12075
|
if (s6) {
|
|
12050
12076
|
const r6 = s6[1] || "", o6 = s6[2];
|
|
12051
12077
|
let a6 = (i6 = s6[3]) && -1 !== i6.indexOf(".") ? ("." === (i6 = i6.replace(/0+$/, "")) ? i6 = "0" : "." === i6[0] ? i6 = "0" + i6 : "." === i6[i6.length - 1] && (i6 = i6.substring(0, i6.length - 1)), i6) : i6;
|
|
@@ -12053,7 +12079,7 @@ var require_fxp = __commonJS({
|
|
|
12053
12079
|
if (!e8.leadingZeros && (o6.length > 1 || 1 === o6.length && !l6)) return t7;
|
|
12054
12080
|
{
|
|
12055
12081
|
const i7 = Number(n7), s7 = String(i7);
|
|
12056
|
-
if (0 === i7
|
|
12082
|
+
if (0 === i7) return i7;
|
|
12057
12083
|
if (-1 !== s7.search(/[eE]/)) return e8.eNotation ? i7 : t7;
|
|
12058
12084
|
if (-1 !== n7.indexOf(".")) return "0" === s7 || s7 === a6 || s7 === `${r6}${a6}` ? i7 : t7;
|
|
12059
12085
|
let l7 = o6 ? a6 : n7;
|
|
@@ -12087,7 +12113,7 @@ var require_fxp = __commonJS({
|
|
|
12087
12113
|
if (o6[a6]) {
|
|
12088
12114
|
let t7 = H2(o6[a6], e6, l6);
|
|
12089
12115
|
const n7 = nt(t7, e6);
|
|
12090
|
-
|
|
12116
|
+
o6[":@"] ? et(t7, o6[":@"], l6, e6) : 1 !== Object.keys(t7).length || void 0 === t7[e6.textNodeName] || e6.alwaysCreateTextNode ? 0 === Object.keys(t7).length && (e6.alwaysCreateTextNode ? t7[e6.textNodeName] = "" : t7 = "") : t7 = t7[e6.textNodeName], void 0 !== o6[Q] && "object" == typeof t7 && null !== t7 && (t7[Q] = o6[Q]), void 0 !== s6[a6] && Object.prototype.hasOwnProperty.call(s6, a6) ? (Array.isArray(s6[a6]) || (s6[a6] = [s6[a6]]), s6[a6].push(t7)) : e6.isArray(a6, l6, n7) ? s6[a6] = [t7] : s6[a6] = t7;
|
|
12091
12117
|
}
|
|
12092
12118
|
}
|
|
12093
12119
|
}
|
|
@@ -12115,7 +12141,7 @@ var require_fxp = __commonJS({
|
|
|
12115
12141
|
}
|
|
12116
12142
|
class it {
|
|
12117
12143
|
constructor(t6) {
|
|
12118
|
-
this.externalEntities = {}, this.options =
|
|
12144
|
+
this.externalEntities = {}, this.options = v5(t6);
|
|
12119
12145
|
}
|
|
12120
12146
|
parse(t6, e6) {
|
|
12121
12147
|
if ("string" != typeof t6 && t6.toString) t6 = t6.toString();
|
|
@@ -12125,7 +12151,7 @@ var require_fxp = __commonJS({
|
|
|
12125
12151
|
const n7 = a5(t6, e6);
|
|
12126
12152
|
if (true !== n7) throw Error(`${n7.err.msg}:${n7.err.line}:${n7.err.col}`);
|
|
12127
12153
|
}
|
|
12128
|
-
const n6 = new
|
|
12154
|
+
const n6 = new L(this.options);
|
|
12129
12155
|
n6.addExternalEntities(this.externalEntities);
|
|
12130
12156
|
const i6 = n6.parseXml(t6);
|
|
12131
12157
|
return this.options.preserveOrder || void 0 === i6 ? i6 : J2(i6, this.options);
|
|
@@ -12146,6 +12172,13 @@ var require_fxp = __commonJS({
|
|
|
12146
12172
|
}
|
|
12147
12173
|
function rt(t6, e6, n6, i6) {
|
|
12148
12174
|
let s6 = "", r6 = false;
|
|
12175
|
+
if (!Array.isArray(t6)) {
|
|
12176
|
+
if (null != t6) {
|
|
12177
|
+
let n7 = t6.toString();
|
|
12178
|
+
return n7 = ut(n7, e6), n7;
|
|
12179
|
+
}
|
|
12180
|
+
return "";
|
|
12181
|
+
}
|
|
12149
12182
|
for (let o6 = 0; o6 < t6.length; o6++) {
|
|
12150
12183
|
const a6 = t6[o6], l6 = ot(a6);
|
|
12151
12184
|
if (void 0 === l6) continue;
|
|
@@ -12169,10 +12202,10 @@ var require_fxp = __commonJS({
|
|
|
12169
12202
|
o7 = 0 !== o7.length ? " " + o7 : "", s6 += n7 + `<${l6}${o7}${t7}?>`, r6 = true;
|
|
12170
12203
|
continue;
|
|
12171
12204
|
}
|
|
12172
|
-
let
|
|
12173
|
-
"" !==
|
|
12174
|
-
const
|
|
12175
|
-
-1 !== e6.unpairedTags.indexOf(l6) ? e6.suppressUnpairedNode ? s6 +=
|
|
12205
|
+
let d6 = i6;
|
|
12206
|
+
"" !== d6 && (d6 += e6.indentBy);
|
|
12207
|
+
const h6 = i6 + `<${l6}${at(a6[":@"], e6)}`, p6 = rt(a6[l6], e6, u6, d6);
|
|
12208
|
+
-1 !== e6.unpairedTags.indexOf(l6) ? e6.suppressUnpairedNode ? s6 += h6 + ">" : s6 += h6 + "/>" : p6 && 0 !== p6.length || !e6.suppressEmptyNode ? p6 && p6.endsWith(">") ? s6 += h6 + `>${p6}${i6}</${l6}>` : (s6 += h6 + ">", p6 && "" !== i6 && (p6.includes("/>") || p6.includes("</")) ? s6 += i6 + e6.indentBy + p6 + i6 : s6 += p6, s6 += `</${l6}>`) : s6 += h6 + "/>", r6 = true;
|
|
12176
12209
|
}
|
|
12177
12210
|
return s6;
|
|
12178
12211
|
}
|
|
@@ -12180,13 +12213,13 @@ var require_fxp = __commonJS({
|
|
|
12180
12213
|
const e6 = Object.keys(t6);
|
|
12181
12214
|
for (let n6 = 0; n6 < e6.length; n6++) {
|
|
12182
12215
|
const i6 = e6[n6];
|
|
12183
|
-
if (
|
|
12216
|
+
if (Object.prototype.hasOwnProperty.call(t6, i6) && ":@" !== i6) return i6;
|
|
12184
12217
|
}
|
|
12185
12218
|
}
|
|
12186
12219
|
function at(t6, e6) {
|
|
12187
12220
|
let n6 = "";
|
|
12188
12221
|
if (t6 && !e6.ignoreAttributes) for (let i6 in t6) {
|
|
12189
|
-
if (!
|
|
12222
|
+
if (!Object.prototype.hasOwnProperty.call(t6, i6)) continue;
|
|
12190
12223
|
let s6 = e6.attributeValueProcessor(i6, t6[i6]);
|
|
12191
12224
|
s6 = ut(s6, e6), true === s6 && e6.suppressBooleanAttributes ? n6 += ` ${i6.substr(e6.attributeNamePrefix.length)}` : n6 += ` ${i6.substr(e6.attributeNamePrefix.length)}="${s6}"`;
|
|
12192
12225
|
}
|
|
@@ -12204,15 +12237,21 @@ var require_fxp = __commonJS({
|
|
|
12204
12237
|
}
|
|
12205
12238
|
return t6;
|
|
12206
12239
|
}
|
|
12207
|
-
const
|
|
12240
|
+
const dt = { attributeNamePrefix: "@_", attributesGroupName: false, textNodeName: "#text", ignoreAttributes: true, cdataPropName: false, format: false, indentBy: " ", suppressEmptyNode: false, suppressUnpairedNode: true, suppressBooleanAttributes: true, tagValueProcessor: function(t6, e6) {
|
|
12208
12241
|
return e6;
|
|
12209
12242
|
}, attributeValueProcessor: function(t6, e6) {
|
|
12210
12243
|
return e6;
|
|
12211
12244
|
}, preserveOrder: false, commentPropName: false, unpairedTags: [], entities: [{ regex: new RegExp("&", "g"), val: "&" }, { regex: new RegExp(">", "g"), val: ">" }, { regex: new RegExp("<", "g"), val: "<" }, { regex: new RegExp("'", "g"), val: "'" }, { regex: new RegExp('"', "g"), val: """ }], processEntities: true, stopNodes: [], oneListGroup: false };
|
|
12212
|
-
function
|
|
12213
|
-
|
|
12245
|
+
function ht(t6) {
|
|
12246
|
+
var e6;
|
|
12247
|
+
this.options = Object.assign({}, dt, t6), true === this.options.ignoreAttributes || this.options.attributesGroupName ? this.isAttribute = function() {
|
|
12214
12248
|
return false;
|
|
12215
|
-
} : (this.ignoreAttributesFn =
|
|
12249
|
+
} : (this.ignoreAttributesFn = "function" == typeof (e6 = this.options.ignoreAttributes) ? e6 : Array.isArray(e6) ? (t7) => {
|
|
12250
|
+
for (const n6 of e6) {
|
|
12251
|
+
if ("string" == typeof n6 && t7 === n6) return true;
|
|
12252
|
+
if (n6 instanceof RegExp && n6.test(t7)) return true;
|
|
12253
|
+
}
|
|
12254
|
+
} : () => false, this.attrPrefixLen = this.options.attributeNamePrefix.length, this.isAttribute = ft), this.processTextOrObjNode = pt, this.options.format ? (this.indentate = ct, this.tagEndChar = ">\n", this.newLine = "\n") : (this.indentate = function() {
|
|
12216
12255
|
return "";
|
|
12217
12256
|
}, this.tagEndChar = ">", this.newLine = "");
|
|
12218
12257
|
}
|
|
@@ -12220,15 +12259,15 @@ var require_fxp = __commonJS({
|
|
|
12220
12259
|
const s6 = this.j2x(t6, n6 + 1, i6.concat(e6));
|
|
12221
12260
|
return void 0 !== t6[this.options.textNodeName] && 1 === Object.keys(t6).length ? this.buildTextValNode(t6[this.options.textNodeName], e6, s6.attrStr, n6) : this.buildObjectNode(s6.val, e6, s6.attrStr, n6);
|
|
12222
12261
|
}
|
|
12223
|
-
function
|
|
12262
|
+
function ct(t6) {
|
|
12224
12263
|
return this.options.indentBy.repeat(t6);
|
|
12225
12264
|
}
|
|
12226
|
-
function
|
|
12265
|
+
function ft(t6) {
|
|
12227
12266
|
return !(!t6.startsWith(this.options.attributeNamePrefix) || t6 === this.options.textNodeName) && t6.substr(this.attrPrefixLen);
|
|
12228
12267
|
}
|
|
12229
|
-
|
|
12268
|
+
ht.prototype.build = function(t6) {
|
|
12230
12269
|
return this.options.preserveOrder ? st(t6, this.options) : (Array.isArray(t6) && this.options.arrayNodeName && this.options.arrayNodeName.length > 1 && (t6 = { [this.options.arrayNodeName]: t6 }), this.j2x(t6, 0, []).val);
|
|
12231
|
-
},
|
|
12270
|
+
}, ht.prototype.j2x = function(t6, e6, n6) {
|
|
12232
12271
|
let i6 = "", s6 = "";
|
|
12233
12272
|
const r6 = n6.join(".");
|
|
12234
12273
|
for (let o6 in t6) if (Object.prototype.hasOwnProperty.call(t6, o6)) if (void 0 === t6[o6]) this.isAttribute(o6) && (s6 += "");
|
|
@@ -12263,18 +12302,18 @@ var require_fxp = __commonJS({
|
|
|
12263
12302
|
for (let s7 = 0; s7 < n7; s7++) i6 += this.buildAttrPairStr(e7[s7], "" + t6[o6][e7[s7]]);
|
|
12264
12303
|
} else s6 += this.processTextOrObjNode(t6[o6], o6, e6, n6);
|
|
12265
12304
|
return { attrStr: i6, val: s6 };
|
|
12266
|
-
},
|
|
12305
|
+
}, ht.prototype.buildAttrPairStr = function(t6, e6) {
|
|
12267
12306
|
return e6 = this.options.attributeValueProcessor(t6, "" + e6), e6 = this.replaceEntitiesValue(e6), this.options.suppressBooleanAttributes && "true" === e6 ? " " + t6 : " " + t6 + '="' + e6 + '"';
|
|
12268
|
-
},
|
|
12307
|
+
}, ht.prototype.buildObjectNode = function(t6, e6, n6, i6) {
|
|
12269
12308
|
if ("" === t6) return "?" === e6[0] ? this.indentate(i6) + "<" + e6 + n6 + "?" + this.tagEndChar : this.indentate(i6) + "<" + e6 + n6 + this.closeTag(e6) + this.tagEndChar;
|
|
12270
12309
|
{
|
|
12271
12310
|
let s6 = "</" + e6 + this.tagEndChar, r6 = "";
|
|
12272
12311
|
return "?" === e6[0] && (r6 = "?", s6 = ""), !n6 && "" !== n6 || -1 !== t6.indexOf("<") ? false !== this.options.commentPropName && e6 === this.options.commentPropName && 0 === r6.length ? this.indentate(i6) + `<!--${t6}-->` + this.newLine : this.indentate(i6) + "<" + e6 + n6 + r6 + this.tagEndChar + t6 + this.indentate(i6) + s6 : this.indentate(i6) + "<" + e6 + n6 + r6 + ">" + t6 + s6;
|
|
12273
12312
|
}
|
|
12274
|
-
},
|
|
12313
|
+
}, ht.prototype.closeTag = function(t6) {
|
|
12275
12314
|
let e6 = "";
|
|
12276
12315
|
return -1 !== this.options.unpairedTags.indexOf(t6) ? this.options.suppressUnpairedNode || (e6 = "/") : e6 = this.options.suppressEmptyNode ? "/" : `></${t6}`, e6;
|
|
12277
|
-
},
|
|
12316
|
+
}, ht.prototype.buildTextValNode = function(t6, e6, n6, i6) {
|
|
12278
12317
|
if (false !== this.options.cdataPropName && e6 === this.options.cdataPropName) return this.indentate(i6) + `<![CDATA[${t6}]]>` + this.newLine;
|
|
12279
12318
|
if (false !== this.options.commentPropName && e6 === this.options.commentPropName) return this.indentate(i6) + `<!--${t6}-->` + this.newLine;
|
|
12280
12319
|
if ("?" === e6[0]) return this.indentate(i6) + "<" + e6 + n6 + "?" + this.tagEndChar;
|
|
@@ -12282,14 +12321,14 @@ var require_fxp = __commonJS({
|
|
|
12282
12321
|
let s6 = this.options.tagValueProcessor(e6, t6);
|
|
12283
12322
|
return s6 = this.replaceEntitiesValue(s6), "" === s6 ? this.indentate(i6) + "<" + e6 + n6 + this.closeTag(e6) + this.tagEndChar : this.indentate(i6) + "<" + e6 + n6 + ">" + s6 + "</" + e6 + this.tagEndChar;
|
|
12284
12323
|
}
|
|
12285
|
-
},
|
|
12324
|
+
}, ht.prototype.replaceEntitiesValue = function(t6) {
|
|
12286
12325
|
if (t6 && t6.length > 0 && this.options.processEntities) for (let e6 = 0; e6 < this.options.entities.length; e6++) {
|
|
12287
12326
|
const n6 = this.options.entities[e6];
|
|
12288
12327
|
t6 = t6.replace(n6.regex, n6.val);
|
|
12289
12328
|
}
|
|
12290
12329
|
return t6;
|
|
12291
12330
|
};
|
|
12292
|
-
const gt = { validate: a5 };
|
|
12331
|
+
const gt = ht, xt = { validate: a5 };
|
|
12293
12332
|
module2.exports = e5;
|
|
12294
12333
|
})();
|
|
12295
12334
|
}
|
|
@@ -12309,7 +12348,8 @@ var require_xml_parser = __commonJS({
|
|
|
12309
12348
|
ignoreDeclaration: true,
|
|
12310
12349
|
parseTagValue: false,
|
|
12311
12350
|
trimValues: false,
|
|
12312
|
-
tagValueProcessor: (_, val) => val.trim() === "" && val.includes("\n") ? "" : void 0
|
|
12351
|
+
tagValueProcessor: (_, val) => val.trim() === "" && val.includes("\n") ? "" : void 0,
|
|
12352
|
+
maxNestedTags: 1024
|
|
12313
12353
|
});
|
|
12314
12354
|
parser.addEntity("#xD", "\r");
|
|
12315
12355
|
parser.addEntity("#10", "\n");
|
|
@@ -15278,7 +15318,7 @@ var require_package = __commonJS({
|
|
|
15278
15318
|
module2.exports = {
|
|
15279
15319
|
name: "@aws-sdk/client-codedeploy",
|
|
15280
15320
|
description: "AWS SDK for JavaScript Codedeploy Client for Node.js, Browser and React Native",
|
|
15281
|
-
version: "3.
|
|
15321
|
+
version: "3.1001.0",
|
|
15282
15322
|
scripts: {
|
|
15283
15323
|
build: "concurrently 'yarn:build:types' 'yarn:build:es' && yarn build:cjs",
|
|
15284
15324
|
"build:cjs": "node ../../scripts/compilation/inline client-codedeploy",
|
|
@@ -15300,38 +15340,38 @@ var require_package = __commonJS({
|
|
|
15300
15340
|
dependencies: {
|
|
15301
15341
|
"@aws-crypto/sha256-browser": "5.2.0",
|
|
15302
15342
|
"@aws-crypto/sha256-js": "5.2.0",
|
|
15303
|
-
"@aws-sdk/core": "^3.973.
|
|
15304
|
-
"@aws-sdk/credential-provider-node": "^3.972.
|
|
15343
|
+
"@aws-sdk/core": "^3.973.16",
|
|
15344
|
+
"@aws-sdk/credential-provider-node": "^3.972.15",
|
|
15305
15345
|
"@aws-sdk/middleware-host-header": "^3.972.6",
|
|
15306
15346
|
"@aws-sdk/middleware-logger": "^3.972.6",
|
|
15307
15347
|
"@aws-sdk/middleware-recursion-detection": "^3.972.6",
|
|
15308
|
-
"@aws-sdk/middleware-user-agent": "^3.972.
|
|
15348
|
+
"@aws-sdk/middleware-user-agent": "^3.972.16",
|
|
15309
15349
|
"@aws-sdk/region-config-resolver": "^3.972.6",
|
|
15310
15350
|
"@aws-sdk/types": "^3.973.4",
|
|
15311
15351
|
"@aws-sdk/util-endpoints": "^3.996.3",
|
|
15312
15352
|
"@aws-sdk/util-user-agent-browser": "^3.972.6",
|
|
15313
|
-
"@aws-sdk/util-user-agent-node": "^3.973.
|
|
15353
|
+
"@aws-sdk/util-user-agent-node": "^3.973.1",
|
|
15314
15354
|
"@smithy/config-resolver": "^4.4.9",
|
|
15315
|
-
"@smithy/core": "^3.23.
|
|
15316
|
-
"@smithy/fetch-http-handler": "^5.3.
|
|
15355
|
+
"@smithy/core": "^3.23.7",
|
|
15356
|
+
"@smithy/fetch-http-handler": "^5.3.12",
|
|
15317
15357
|
"@smithy/hash-node": "^4.2.10",
|
|
15318
15358
|
"@smithy/invalid-dependency": "^4.2.10",
|
|
15319
15359
|
"@smithy/middleware-content-length": "^4.2.10",
|
|
15320
|
-
"@smithy/middleware-endpoint": "^4.4.
|
|
15321
|
-
"@smithy/middleware-retry": "^4.4.
|
|
15360
|
+
"@smithy/middleware-endpoint": "^4.4.21",
|
|
15361
|
+
"@smithy/middleware-retry": "^4.4.38",
|
|
15322
15362
|
"@smithy/middleware-serde": "^4.2.11",
|
|
15323
15363
|
"@smithy/middleware-stack": "^4.2.10",
|
|
15324
15364
|
"@smithy/node-config-provider": "^4.3.10",
|
|
15325
|
-
"@smithy/node-http-handler": "^4.4.
|
|
15365
|
+
"@smithy/node-http-handler": "^4.4.13",
|
|
15326
15366
|
"@smithy/protocol-http": "^5.3.10",
|
|
15327
|
-
"@smithy/smithy-client": "^4.12.
|
|
15367
|
+
"@smithy/smithy-client": "^4.12.1",
|
|
15328
15368
|
"@smithy/types": "^4.13.0",
|
|
15329
15369
|
"@smithy/url-parser": "^4.2.10",
|
|
15330
15370
|
"@smithy/util-base64": "^4.3.1",
|
|
15331
15371
|
"@smithy/util-body-length-browser": "^4.2.1",
|
|
15332
15372
|
"@smithy/util-body-length-node": "^4.2.2",
|
|
15333
|
-
"@smithy/util-defaults-mode-browser": "^4.3.
|
|
15334
|
-
"@smithy/util-defaults-mode-node": "^4.2.
|
|
15373
|
+
"@smithy/util-defaults-mode-browser": "^4.3.37",
|
|
15374
|
+
"@smithy/util-defaults-mode-node": "^4.2.40",
|
|
15335
15375
|
"@smithy/util-endpoints": "^3.3.1",
|
|
15336
15376
|
"@smithy/util-middleware": "^4.2.10",
|
|
15337
15377
|
"@smithy/util-retry": "^4.2.10",
|
|
@@ -16056,7 +16096,7 @@ var init_package = __esm({
|
|
|
16056
16096
|
"node_modules/@aws-sdk/nested-clients/package.json"() {
|
|
16057
16097
|
package_default = {
|
|
16058
16098
|
name: "@aws-sdk/nested-clients",
|
|
16059
|
-
version: "3.996.
|
|
16099
|
+
version: "3.996.4",
|
|
16060
16100
|
description: "Nested clients for AWS SDK packages.",
|
|
16061
16101
|
main: "./dist-cjs/index.js",
|
|
16062
16102
|
module: "./dist-es/index.js",
|
|
@@ -16085,37 +16125,37 @@ var init_package = __esm({
|
|
|
16085
16125
|
dependencies: {
|
|
16086
16126
|
"@aws-crypto/sha256-browser": "5.2.0",
|
|
16087
16127
|
"@aws-crypto/sha256-js": "5.2.0",
|
|
16088
|
-
"@aws-sdk/core": "^3.973.
|
|
16128
|
+
"@aws-sdk/core": "^3.973.16",
|
|
16089
16129
|
"@aws-sdk/middleware-host-header": "^3.972.6",
|
|
16090
16130
|
"@aws-sdk/middleware-logger": "^3.972.6",
|
|
16091
16131
|
"@aws-sdk/middleware-recursion-detection": "^3.972.6",
|
|
16092
|
-
"@aws-sdk/middleware-user-agent": "^3.972.
|
|
16132
|
+
"@aws-sdk/middleware-user-agent": "^3.972.16",
|
|
16093
16133
|
"@aws-sdk/region-config-resolver": "^3.972.6",
|
|
16094
16134
|
"@aws-sdk/types": "^3.973.4",
|
|
16095
16135
|
"@aws-sdk/util-endpoints": "^3.996.3",
|
|
16096
16136
|
"@aws-sdk/util-user-agent-browser": "^3.972.6",
|
|
16097
|
-
"@aws-sdk/util-user-agent-node": "^3.973.
|
|
16137
|
+
"@aws-sdk/util-user-agent-node": "^3.973.1",
|
|
16098
16138
|
"@smithy/config-resolver": "^4.4.9",
|
|
16099
|
-
"@smithy/core": "^3.23.
|
|
16100
|
-
"@smithy/fetch-http-handler": "^5.3.
|
|
16139
|
+
"@smithy/core": "^3.23.7",
|
|
16140
|
+
"@smithy/fetch-http-handler": "^5.3.12",
|
|
16101
16141
|
"@smithy/hash-node": "^4.2.10",
|
|
16102
16142
|
"@smithy/invalid-dependency": "^4.2.10",
|
|
16103
16143
|
"@smithy/middleware-content-length": "^4.2.10",
|
|
16104
|
-
"@smithy/middleware-endpoint": "^4.4.
|
|
16105
|
-
"@smithy/middleware-retry": "^4.4.
|
|
16144
|
+
"@smithy/middleware-endpoint": "^4.4.21",
|
|
16145
|
+
"@smithy/middleware-retry": "^4.4.38",
|
|
16106
16146
|
"@smithy/middleware-serde": "^4.2.11",
|
|
16107
16147
|
"@smithy/middleware-stack": "^4.2.10",
|
|
16108
16148
|
"@smithy/node-config-provider": "^4.3.10",
|
|
16109
|
-
"@smithy/node-http-handler": "^4.4.
|
|
16149
|
+
"@smithy/node-http-handler": "^4.4.13",
|
|
16110
16150
|
"@smithy/protocol-http": "^5.3.10",
|
|
16111
|
-
"@smithy/smithy-client": "^4.12.
|
|
16151
|
+
"@smithy/smithy-client": "^4.12.1",
|
|
16112
16152
|
"@smithy/types": "^4.13.0",
|
|
16113
16153
|
"@smithy/url-parser": "^4.2.10",
|
|
16114
16154
|
"@smithy/util-base64": "^4.3.1",
|
|
16115
16155
|
"@smithy/util-body-length-browser": "^4.2.1",
|
|
16116
16156
|
"@smithy/util-body-length-node": "^4.2.2",
|
|
16117
|
-
"@smithy/util-defaults-mode-browser": "^4.3.
|
|
16118
|
-
"@smithy/util-defaults-mode-node": "^4.2.
|
|
16157
|
+
"@smithy/util-defaults-mode-browser": "^4.3.37",
|
|
16158
|
+
"@smithy/util-defaults-mode-node": "^4.2.40",
|
|
16119
16159
|
"@smithy/util-endpoints": "^3.3.1",
|
|
16120
16160
|
"@smithy/util-middleware": "^4.2.10",
|
|
16121
16161
|
"@smithy/util-retry": "^4.2.10",
|
|
@@ -16220,17 +16260,30 @@ var require_dist_cjs41 = __commonJS({
|
|
|
16220
16260
|
}
|
|
16221
16261
|
return ["md/nodejs", node_process.versions.node];
|
|
16222
16262
|
};
|
|
16223
|
-
var
|
|
16224
|
-
|
|
16263
|
+
var SEMVER_REGEX = /^(0|[1-9]\d*)\.(0|[1-9]\d*)\.(0|[1-9]\d*)(?:-((?:0|[1-9]\d*|\d*[a-zA-Z-][0-9a-zA-Z-]*)(?:\.(?:0|[1-9]\d*|\d*[a-zA-Z-][0-9a-zA-Z-]*))*))?(?:\+[0-9a-zA-Z-]+(?:\.[0-9a-zA-Z-]+)*)?$/;
|
|
16264
|
+
var getSanitizedTypeScriptVersion = (version = "") => {
|
|
16265
|
+
const match = version.match(SEMVER_REGEX);
|
|
16266
|
+
if (!match) {
|
|
16267
|
+
return void 0;
|
|
16268
|
+
}
|
|
16269
|
+
const [major, minor, patch, prerelease] = [match[1], match[2], match[3], match[4]];
|
|
16270
|
+
return prerelease ? `${major}.${minor}.${patch}-${prerelease}` : `${major}.${minor}.${patch}`;
|
|
16271
|
+
};
|
|
16272
|
+
var typescriptPackageJsonPath = node_path.join("node_modules", "typescript", "package.json");
|
|
16273
|
+
var getTypeScriptPackageJsonPaths = (dirname) => {
|
|
16274
|
+
const cwdPath = node_path.join(process.cwd(), typescriptPackageJsonPath);
|
|
16275
|
+
if (!dirname) {
|
|
16276
|
+
return [cwdPath];
|
|
16277
|
+
}
|
|
16225
16278
|
const normalizedPath = node_path.normalize(dirname);
|
|
16226
16279
|
const parts = normalizedPath.split(node_path.sep);
|
|
16227
16280
|
const nodeModulesIndex = parts.indexOf("node_modules");
|
|
16228
|
-
|
|
16229
|
-
|
|
16230
|
-
|
|
16231
|
-
|
|
16281
|
+
const parentDir = nodeModulesIndex !== -1 ? parts.slice(0, nodeModulesIndex).join(node_path.sep) : dirname;
|
|
16282
|
+
const parentDirPath = node_path.join(parentDir, typescriptPackageJsonPath);
|
|
16283
|
+
if (cwdPath === parentDirPath) {
|
|
16284
|
+
return [cwdPath];
|
|
16232
16285
|
}
|
|
16233
|
-
return
|
|
16286
|
+
return [parentDirPath, cwdPath];
|
|
16234
16287
|
};
|
|
16235
16288
|
var tscVersion;
|
|
16236
16289
|
var getTypeScriptUserAgentPair = async () => {
|
|
@@ -16239,18 +16292,22 @@ var require_dist_cjs41 = __commonJS({
|
|
|
16239
16292
|
} else if (typeof tscVersion === "string") {
|
|
16240
16293
|
return ["md/tsc", tscVersion];
|
|
16241
16294
|
}
|
|
16242
|
-
|
|
16243
|
-
|
|
16244
|
-
|
|
16245
|
-
|
|
16246
|
-
|
|
16247
|
-
|
|
16295
|
+
const dirname = typeof __dirname !== "undefined" ? __dirname : void 0;
|
|
16296
|
+
for (const typescriptPackageJsonPath2 of getTypeScriptPackageJsonPaths(dirname)) {
|
|
16297
|
+
try {
|
|
16298
|
+
const packageJson = await promises.readFile(typescriptPackageJsonPath2, "utf-8");
|
|
16299
|
+
const { version } = JSON.parse(packageJson);
|
|
16300
|
+
const sanitizedVersion = getSanitizedTypeScriptVersion(version);
|
|
16301
|
+
if (typeof sanitizedVersion !== "string") {
|
|
16302
|
+
continue;
|
|
16303
|
+
}
|
|
16304
|
+
tscVersion = sanitizedVersion;
|
|
16305
|
+
return ["md/tsc", tscVersion];
|
|
16306
|
+
} catch {
|
|
16248
16307
|
}
|
|
16249
|
-
tscVersion = version;
|
|
16250
|
-
return ["md/tsc", tscVersion];
|
|
16251
|
-
} catch {
|
|
16252
|
-
tscVersion = null;
|
|
16253
16308
|
}
|
|
16309
|
+
tscVersion = null;
|
|
16310
|
+
return void 0;
|
|
16254
16311
|
};
|
|
16255
16312
|
var crtAvailability = {
|
|
16256
16313
|
isCrtAvailable: false
|