@kevisual/cli 0.1.29 → 0.1.31
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/assistant-opencode.js +55 -30
- package/dist/assistant-server.js +1264 -767
- package/dist/assistant.js +52 -27
- package/dist/envision.js +22 -29
- package/package.json +5 -5
package/dist/assistant-server.js
CHANGED
|
@@ -873,7 +873,7 @@ var require_dist_cjs8 = __commonJS((exports) => {
|
|
|
873
873
|
});
|
|
874
874
|
});
|
|
875
875
|
|
|
876
|
-
// ../node_modules/.pnpm/@smithy+util-stream@4.5.
|
|
876
|
+
// ../node_modules/.pnpm/@smithy+util-stream@4.5.20/node_modules/@smithy/util-stream/dist-cjs/checksum/ChecksumStream.js
|
|
877
877
|
var require_ChecksumStream = __commonJS((exports) => {
|
|
878
878
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
879
879
|
exports.ChecksumStream = undefined;
|
|
@@ -937,7 +937,7 @@ var require_ChecksumStream = __commonJS((exports) => {
|
|
|
937
937
|
exports.ChecksumStream = ChecksumStream;
|
|
938
938
|
});
|
|
939
939
|
|
|
940
|
-
// ../node_modules/.pnpm/@smithy+util-stream@4.5.
|
|
940
|
+
// ../node_modules/.pnpm/@smithy+util-stream@4.5.20/node_modules/@smithy/util-stream/dist-cjs/stream-type-check.js
|
|
941
941
|
var require_stream_type_check = __commonJS((exports) => {
|
|
942
942
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
943
943
|
exports.isBlob = exports.isReadableStream = undefined;
|
|
@@ -949,7 +949,7 @@ var require_stream_type_check = __commonJS((exports) => {
|
|
|
949
949
|
exports.isBlob = isBlob;
|
|
950
950
|
});
|
|
951
951
|
|
|
952
|
-
// ../node_modules/.pnpm/@smithy+util-stream@4.5.
|
|
952
|
+
// ../node_modules/.pnpm/@smithy+util-stream@4.5.20/node_modules/@smithy/util-stream/dist-cjs/checksum/ChecksumStream.browser.js
|
|
953
953
|
var require_ChecksumStream_browser = __commonJS((exports) => {
|
|
954
954
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
955
955
|
exports.ChecksumStream = undefined;
|
|
@@ -960,7 +960,7 @@ var require_ChecksumStream_browser = __commonJS((exports) => {
|
|
|
960
960
|
exports.ChecksumStream = ChecksumStream;
|
|
961
961
|
});
|
|
962
962
|
|
|
963
|
-
// ../node_modules/.pnpm/@smithy+util-stream@4.5.
|
|
963
|
+
// ../node_modules/.pnpm/@smithy+util-stream@4.5.20/node_modules/@smithy/util-stream/dist-cjs/checksum/createChecksumStream.browser.js
|
|
964
964
|
var require_createChecksumStream_browser = __commonJS((exports) => {
|
|
965
965
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
966
966
|
exports.createChecksumStream = undefined;
|
|
@@ -1000,7 +1000,7 @@ var require_createChecksumStream_browser = __commonJS((exports) => {
|
|
|
1000
1000
|
exports.createChecksumStream = createChecksumStream;
|
|
1001
1001
|
});
|
|
1002
1002
|
|
|
1003
|
-
// ../node_modules/.pnpm/@smithy+util-stream@4.5.
|
|
1003
|
+
// ../node_modules/.pnpm/@smithy+util-stream@4.5.20/node_modules/@smithy/util-stream/dist-cjs/checksum/createChecksumStream.js
|
|
1004
1004
|
var require_createChecksumStream = __commonJS((exports) => {
|
|
1005
1005
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
1006
1006
|
exports.createChecksumStream = createChecksumStream;
|
|
@@ -1015,7 +1015,7 @@ var require_createChecksumStream = __commonJS((exports) => {
|
|
|
1015
1015
|
}
|
|
1016
1016
|
});
|
|
1017
1017
|
|
|
1018
|
-
// ../node_modules/.pnpm/@smithy+util-stream@4.5.
|
|
1018
|
+
// ../node_modules/.pnpm/@smithy+util-stream@4.5.20/node_modules/@smithy/util-stream/dist-cjs/ByteArrayCollector.js
|
|
1019
1019
|
var require_ByteArrayCollector = __commonJS((exports) => {
|
|
1020
1020
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
1021
1021
|
exports.ByteArrayCollector = undefined;
|
|
@@ -1055,7 +1055,7 @@ var require_ByteArrayCollector = __commonJS((exports) => {
|
|
|
1055
1055
|
exports.ByteArrayCollector = ByteArrayCollector;
|
|
1056
1056
|
});
|
|
1057
1057
|
|
|
1058
|
-
// ../node_modules/.pnpm/@smithy+util-stream@4.5.
|
|
1058
|
+
// ../node_modules/.pnpm/@smithy+util-stream@4.5.20/node_modules/@smithy/util-stream/dist-cjs/createBufferedReadableStream.js
|
|
1059
1059
|
var require_createBufferedReadableStream = __commonJS((exports) => {
|
|
1060
1060
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
1061
1061
|
exports.createBufferedReadable = undefined;
|
|
@@ -1158,7 +1158,7 @@ var require_createBufferedReadableStream = __commonJS((exports) => {
|
|
|
1158
1158
|
}
|
|
1159
1159
|
});
|
|
1160
1160
|
|
|
1161
|
-
// ../node_modules/.pnpm/@smithy+util-stream@4.5.
|
|
1161
|
+
// ../node_modules/.pnpm/@smithy+util-stream@4.5.20/node_modules/@smithy/util-stream/dist-cjs/createBufferedReadable.js
|
|
1162
1162
|
var require_createBufferedReadable = __commonJS((exports) => {
|
|
1163
1163
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
1164
1164
|
exports.createBufferedReadable = createBufferedReadable;
|
|
@@ -1220,7 +1220,7 @@ var require_createBufferedReadable = __commonJS((exports) => {
|
|
|
1220
1220
|
}
|
|
1221
1221
|
});
|
|
1222
1222
|
|
|
1223
|
-
// ../node_modules/.pnpm/@smithy+util-stream@4.5.
|
|
1223
|
+
// ../node_modules/.pnpm/@smithy+util-stream@4.5.20/node_modules/@smithy/util-stream/dist-cjs/getAwsChunkedEncodingStream.browser.js
|
|
1224
1224
|
var require_getAwsChunkedEncodingStream_browser = __commonJS((exports) => {
|
|
1225
1225
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
1226
1226
|
exports.getAwsChunkedEncodingStream = undefined;
|
|
@@ -1254,7 +1254,7 @@ ${value}\r
|
|
|
1254
1254
|
exports.getAwsChunkedEncodingStream = getAwsChunkedEncodingStream;
|
|
1255
1255
|
});
|
|
1256
1256
|
|
|
1257
|
-
// ../node_modules/.pnpm/@smithy+util-stream@4.5.
|
|
1257
|
+
// ../node_modules/.pnpm/@smithy+util-stream@4.5.20/node_modules/@smithy/util-stream/dist-cjs/getAwsChunkedEncodingStream.js
|
|
1258
1258
|
var require_getAwsChunkedEncodingStream = __commonJS((exports) => {
|
|
1259
1259
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
1260
1260
|
exports.getAwsChunkedEncodingStream = getAwsChunkedEncodingStream;
|
|
@@ -1300,7 +1300,7 @@ var require_getAwsChunkedEncodingStream = __commonJS((exports) => {
|
|
|
1300
1300
|
}
|
|
1301
1301
|
});
|
|
1302
1302
|
|
|
1303
|
-
// ../node_modules/.pnpm/@smithy+util-stream@4.5.
|
|
1303
|
+
// ../node_modules/.pnpm/@smithy+util-stream@4.5.20/node_modules/@smithy/util-stream/dist-cjs/headStream.browser.js
|
|
1304
1304
|
var require_headStream_browser = __commonJS((exports) => {
|
|
1305
1305
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
1306
1306
|
exports.headStream = headStream;
|
|
@@ -1336,7 +1336,7 @@ var require_headStream_browser = __commonJS((exports) => {
|
|
|
1336
1336
|
}
|
|
1337
1337
|
});
|
|
1338
1338
|
|
|
1339
|
-
// ../node_modules/.pnpm/@smithy+util-stream@4.5.
|
|
1339
|
+
// ../node_modules/.pnpm/@smithy+util-stream@4.5.20/node_modules/@smithy/util-stream/dist-cjs/headStream.js
|
|
1340
1340
|
var require_headStream = __commonJS((exports) => {
|
|
1341
1341
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
1342
1342
|
exports.headStream = undefined;
|
|
@@ -1416,14 +1416,13 @@ var require_dist_cjs10 = __commonJS((exports) => {
|
|
|
1416
1416
|
exports.buildQueryString = buildQueryString;
|
|
1417
1417
|
});
|
|
1418
1418
|
|
|
1419
|
-
// ../node_modules/.pnpm/@smithy+node-http-handler@4.
|
|
1419
|
+
// ../node_modules/.pnpm/@smithy+node-http-handler@4.5.0/node_modules/@smithy/node-http-handler/dist-cjs/index.js
|
|
1420
1420
|
var require_dist_cjs11 = __commonJS((exports) => {
|
|
1421
1421
|
var protocolHttp = require_dist_cjs2();
|
|
1422
1422
|
var querystringBuilder = require_dist_cjs10();
|
|
1423
|
-
var
|
|
1424
|
-
var
|
|
1425
|
-
var
|
|
1426
|
-
var http22 = __require("http2");
|
|
1423
|
+
var node_https = __require("node:https");
|
|
1424
|
+
var node_stream = __require("node:stream");
|
|
1425
|
+
var http22 = __require("node:http2");
|
|
1427
1426
|
function buildAbortError(abortSignal) {
|
|
1428
1427
|
const reason = abortSignal && typeof abortSignal === "object" && "reason" in abortSignal ? abortSignal.reason : undefined;
|
|
1429
1428
|
if (reason) {
|
|
@@ -1579,7 +1578,7 @@ var require_dist_cjs11 = __commonJS((exports) => {
|
|
|
1579
1578
|
}
|
|
1580
1579
|
}
|
|
1581
1580
|
function writeBody(httpRequest, body) {
|
|
1582
|
-
if (body instanceof
|
|
1581
|
+
if (body instanceof node_stream.Readable) {
|
|
1583
1582
|
body.pipe(httpRequest);
|
|
1584
1583
|
return;
|
|
1585
1584
|
}
|
|
@@ -1605,6 +1604,8 @@ var require_dist_cjs11 = __commonJS((exports) => {
|
|
|
1605
1604
|
httpRequest.end();
|
|
1606
1605
|
}
|
|
1607
1606
|
var DEFAULT_REQUEST_TIMEOUT = 0;
|
|
1607
|
+
var hAgent = undefined;
|
|
1608
|
+
var hRequest = undefined;
|
|
1608
1609
|
|
|
1609
1610
|
class NodeHttpHandler {
|
|
1610
1611
|
config;
|
|
@@ -1652,33 +1653,6 @@ or increase socketAcquisitionWarningTimeout=(millis) in the NodeHttpHandler conf
|
|
|
1652
1653
|
}
|
|
1653
1654
|
});
|
|
1654
1655
|
}
|
|
1655
|
-
resolveDefaultConfig(options) {
|
|
1656
|
-
const { requestTimeout, connectionTimeout, socketTimeout, socketAcquisitionWarningTimeout, httpAgent, httpsAgent, throwOnRequestTimeout, logger: logger2 } = options || {};
|
|
1657
|
-
const keepAlive = true;
|
|
1658
|
-
const maxSockets = 50;
|
|
1659
|
-
return {
|
|
1660
|
-
connectionTimeout,
|
|
1661
|
-
requestTimeout,
|
|
1662
|
-
socketTimeout,
|
|
1663
|
-
socketAcquisitionWarningTimeout,
|
|
1664
|
-
throwOnRequestTimeout,
|
|
1665
|
-
httpAgent: (() => {
|
|
1666
|
-
if (httpAgent instanceof http4.Agent || typeof httpAgent?.destroy === "function") {
|
|
1667
|
-
this.externalAgent = true;
|
|
1668
|
-
return httpAgent;
|
|
1669
|
-
}
|
|
1670
|
-
return new http4.Agent({ keepAlive, maxSockets, ...httpAgent });
|
|
1671
|
-
})(),
|
|
1672
|
-
httpsAgent: (() => {
|
|
1673
|
-
if (httpsAgent instanceof https3.Agent || typeof httpsAgent?.destroy === "function") {
|
|
1674
|
-
this.externalAgent = true;
|
|
1675
|
-
return httpsAgent;
|
|
1676
|
-
}
|
|
1677
|
-
return new https3.Agent({ keepAlive, maxSockets, ...httpsAgent });
|
|
1678
|
-
})(),
|
|
1679
|
-
logger: logger2
|
|
1680
|
-
};
|
|
1681
|
-
}
|
|
1682
1656
|
destroy() {
|
|
1683
1657
|
this.config?.httpAgent?.destroy();
|
|
1684
1658
|
this.config?.httpsAgent?.destroy();
|
|
@@ -1687,8 +1661,12 @@ or increase socketAcquisitionWarningTimeout=(millis) in the NodeHttpHandler conf
|
|
|
1687
1661
|
if (!this.config) {
|
|
1688
1662
|
this.config = await this.configProvider;
|
|
1689
1663
|
}
|
|
1664
|
+
const config2 = this.config;
|
|
1665
|
+
const isSSL = request.protocol === "https:";
|
|
1666
|
+
if (!isSSL && !this.config.httpAgent) {
|
|
1667
|
+
this.config.httpAgent = await this.config.httpAgentProvider();
|
|
1668
|
+
}
|
|
1690
1669
|
return new Promise((_resolve, _reject) => {
|
|
1691
|
-
const config2 = this.config;
|
|
1692
1670
|
let writeRequestBodyPromise = undefined;
|
|
1693
1671
|
const timeouts = [];
|
|
1694
1672
|
const resolve = async (arg) => {
|
|
@@ -1706,12 +1684,11 @@ or increase socketAcquisitionWarningTimeout=(millis) in the NodeHttpHandler conf
|
|
|
1706
1684
|
reject(abortError);
|
|
1707
1685
|
return;
|
|
1708
1686
|
}
|
|
1709
|
-
const isSSL = request.protocol === "https:";
|
|
1710
1687
|
const headers = request.headers ?? {};
|
|
1711
1688
|
const expectContinue = (headers.Expect ?? headers.expect) === "100-continue";
|
|
1712
1689
|
let agent = isSSL ? config2.httpsAgent : config2.httpAgent;
|
|
1713
1690
|
if (expectContinue && !this.externalAgent) {
|
|
1714
|
-
agent = new (isSSL ?
|
|
1691
|
+
agent = new (isSSL ? node_https.Agent : hAgent)({
|
|
1715
1692
|
keepAlive: false,
|
|
1716
1693
|
maxSockets: Infinity
|
|
1717
1694
|
});
|
|
@@ -1748,7 +1725,7 @@ or increase socketAcquisitionWarningTimeout=(millis) in the NodeHttpHandler conf
|
|
|
1748
1725
|
agent,
|
|
1749
1726
|
auth
|
|
1750
1727
|
};
|
|
1751
|
-
const requestFunc = isSSL ?
|
|
1728
|
+
const requestFunc = isSSL ? node_https.request : hRequest;
|
|
1752
1729
|
const req = requestFunc(nodeHttpsOptions, (res) => {
|
|
1753
1730
|
const httpResponse = new protocolHttp.HttpResponse({
|
|
1754
1731
|
statusCode: res.statusCode || -1,
|
|
@@ -1808,6 +1785,36 @@ or increase socketAcquisitionWarningTimeout=(millis) in the NodeHttpHandler conf
|
|
|
1808
1785
|
httpHandlerConfigs() {
|
|
1809
1786
|
return this.config ?? {};
|
|
1810
1787
|
}
|
|
1788
|
+
resolveDefaultConfig(options) {
|
|
1789
|
+
const { requestTimeout, connectionTimeout, socketTimeout, socketAcquisitionWarningTimeout, httpAgent, httpsAgent, throwOnRequestTimeout, logger: logger2 } = options || {};
|
|
1790
|
+
const keepAlive = true;
|
|
1791
|
+
const maxSockets = 50;
|
|
1792
|
+
return {
|
|
1793
|
+
connectionTimeout,
|
|
1794
|
+
requestTimeout,
|
|
1795
|
+
socketTimeout,
|
|
1796
|
+
socketAcquisitionWarningTimeout,
|
|
1797
|
+
throwOnRequestTimeout,
|
|
1798
|
+
httpAgentProvider: async () => {
|
|
1799
|
+
const { Agent, request } = await import("node:http");
|
|
1800
|
+
hRequest = request;
|
|
1801
|
+
hAgent = Agent;
|
|
1802
|
+
if (httpAgent instanceof hAgent || typeof httpAgent?.destroy === "function") {
|
|
1803
|
+
this.externalAgent = true;
|
|
1804
|
+
return httpAgent;
|
|
1805
|
+
}
|
|
1806
|
+
return new hAgent({ keepAlive, maxSockets, ...httpAgent });
|
|
1807
|
+
},
|
|
1808
|
+
httpsAgent: (() => {
|
|
1809
|
+
if (httpsAgent instanceof node_https.Agent || typeof httpsAgent?.destroy === "function") {
|
|
1810
|
+
this.externalAgent = true;
|
|
1811
|
+
return httpsAgent;
|
|
1812
|
+
}
|
|
1813
|
+
return new node_https.Agent({ keepAlive, maxSockets, ...httpsAgent });
|
|
1814
|
+
})(),
|
|
1815
|
+
logger: logger2
|
|
1816
|
+
};
|
|
1817
|
+
}
|
|
1811
1818
|
}
|
|
1812
1819
|
|
|
1813
1820
|
class NodeHttp2ConnectionPool {
|
|
@@ -2085,21 +2092,21 @@ or increase socketAcquisitionWarningTimeout=(millis) in the NodeHttpHandler conf
|
|
|
2085
2092
|
}
|
|
2086
2093
|
}
|
|
2087
2094
|
|
|
2088
|
-
class Collector extends
|
|
2095
|
+
class Collector extends node_stream.Writable {
|
|
2089
2096
|
bufferedBytes = [];
|
|
2090
2097
|
_write(chunk, encoding, callback) {
|
|
2091
2098
|
this.bufferedBytes.push(chunk);
|
|
2092
2099
|
callback();
|
|
2093
2100
|
}
|
|
2094
2101
|
}
|
|
2095
|
-
var streamCollector = (
|
|
2096
|
-
if (isReadableStreamInstance(
|
|
2097
|
-
return collectReadableStream(
|
|
2102
|
+
var streamCollector = (stream) => {
|
|
2103
|
+
if (isReadableStreamInstance(stream)) {
|
|
2104
|
+
return collectReadableStream(stream);
|
|
2098
2105
|
}
|
|
2099
2106
|
return new Promise((resolve, reject) => {
|
|
2100
2107
|
const collector = new Collector;
|
|
2101
|
-
|
|
2102
|
-
|
|
2108
|
+
stream.pipe(collector);
|
|
2109
|
+
stream.on("error", (err) => {
|
|
2103
2110
|
collector.end();
|
|
2104
2111
|
reject(err);
|
|
2105
2112
|
});
|
|
@@ -2110,10 +2117,10 @@ or increase socketAcquisitionWarningTimeout=(millis) in the NodeHttpHandler conf
|
|
|
2110
2117
|
});
|
|
2111
2118
|
});
|
|
2112
2119
|
};
|
|
2113
|
-
var isReadableStreamInstance = (
|
|
2114
|
-
async function collectReadableStream(
|
|
2120
|
+
var isReadableStreamInstance = (stream) => typeof ReadableStream === "function" && stream instanceof ReadableStream;
|
|
2121
|
+
async function collectReadableStream(stream) {
|
|
2115
2122
|
const chunks = [];
|
|
2116
|
-
const reader =
|
|
2123
|
+
const reader = stream.getReader();
|
|
2117
2124
|
let isDone = false;
|
|
2118
2125
|
let length = 0;
|
|
2119
2126
|
while (!isDone) {
|
|
@@ -2402,7 +2409,7 @@ var require_dist_cjs13 = __commonJS((exports) => {
|
|
|
2402
2409
|
exports.toHex = toHex;
|
|
2403
2410
|
});
|
|
2404
2411
|
|
|
2405
|
-
// ../node_modules/.pnpm/@smithy+util-stream@4.5.
|
|
2412
|
+
// ../node_modules/.pnpm/@smithy+util-stream@4.5.20/node_modules/@smithy/util-stream/dist-cjs/sdk-stream-mixin.browser.js
|
|
2406
2413
|
var require_sdk_stream_mixin_browser = __commonJS((exports) => {
|
|
2407
2414
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
2408
2415
|
exports.sdkStreamMixin = undefined;
|
|
@@ -2467,7 +2474,7 @@ var require_sdk_stream_mixin_browser = __commonJS((exports) => {
|
|
|
2467
2474
|
var isBlobInstance = (stream) => typeof Blob === "function" && stream instanceof Blob;
|
|
2468
2475
|
});
|
|
2469
2476
|
|
|
2470
|
-
// ../node_modules/.pnpm/@smithy+util-stream@4.5.
|
|
2477
|
+
// ../node_modules/.pnpm/@smithy+util-stream@4.5.20/node_modules/@smithy/util-stream/dist-cjs/sdk-stream-mixin.js
|
|
2471
2478
|
var require_sdk_stream_mixin = __commonJS((exports) => {
|
|
2472
2479
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
2473
2480
|
exports.sdkStreamMixin = undefined;
|
|
@@ -2522,7 +2529,7 @@ var require_sdk_stream_mixin = __commonJS((exports) => {
|
|
|
2522
2529
|
exports.sdkStreamMixin = sdkStreamMixin;
|
|
2523
2530
|
});
|
|
2524
2531
|
|
|
2525
|
-
// ../node_modules/.pnpm/@smithy+util-stream@4.5.
|
|
2532
|
+
// ../node_modules/.pnpm/@smithy+util-stream@4.5.20/node_modules/@smithy/util-stream/dist-cjs/splitStream.browser.js
|
|
2526
2533
|
var require_splitStream_browser = __commonJS((exports) => {
|
|
2527
2534
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
2528
2535
|
exports.splitStream = splitStream;
|
|
@@ -2535,7 +2542,7 @@ var require_splitStream_browser = __commonJS((exports) => {
|
|
|
2535
2542
|
}
|
|
2536
2543
|
});
|
|
2537
2544
|
|
|
2538
|
-
// ../node_modules/.pnpm/@smithy+util-stream@4.5.
|
|
2545
|
+
// ../node_modules/.pnpm/@smithy+util-stream@4.5.20/node_modules/@smithy/util-stream/dist-cjs/splitStream.js
|
|
2539
2546
|
var require_splitStream = __commonJS((exports) => {
|
|
2540
2547
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
2541
2548
|
exports.splitStream = splitStream;
|
|
@@ -2554,7 +2561,7 @@ var require_splitStream = __commonJS((exports) => {
|
|
|
2554
2561
|
}
|
|
2555
2562
|
});
|
|
2556
2563
|
|
|
2557
|
-
// ../node_modules/.pnpm/@smithy+util-stream@4.5.
|
|
2564
|
+
// ../node_modules/.pnpm/@smithy+util-stream@4.5.20/node_modules/@smithy/util-stream/dist-cjs/index.js
|
|
2558
2565
|
var require_dist_cjs14 = __commonJS((exports) => {
|
|
2559
2566
|
var utilBase64 = require_dist_cjs8();
|
|
2560
2567
|
var utilUtf8 = require_dist_cjs7();
|
|
@@ -2698,7 +2705,7 @@ var require_dist_cjs16 = __commonJS((exports) => {
|
|
|
2698
2705
|
exports.parseUrl = parseUrl;
|
|
2699
2706
|
});
|
|
2700
2707
|
|
|
2701
|
-
// ../node_modules/.pnpm/@smithy+core@3.23.
|
|
2708
|
+
// ../node_modules/.pnpm/@smithy+core@3.23.12/node_modules/@smithy/core/dist-cjs/submodules/endpoints/index.js
|
|
2702
2709
|
var require_endpoints = __commonJS((exports) => {
|
|
2703
2710
|
var urlParser = require_dist_cjs16();
|
|
2704
2711
|
var toEndpointV1 = (endpoint) => {
|
|
@@ -2720,7 +2727,7 @@ var require_endpoints = __commonJS((exports) => {
|
|
|
2720
2727
|
exports.toEndpointV1 = toEndpointV1;
|
|
2721
2728
|
});
|
|
2722
2729
|
|
|
2723
|
-
// ../node_modules/.pnpm/@smithy+core@3.23.
|
|
2730
|
+
// ../node_modules/.pnpm/@smithy+core@3.23.12/node_modules/@smithy/core/dist-cjs/submodules/schema/index.js
|
|
2724
2731
|
var require_schema = __commonJS((exports) => {
|
|
2725
2732
|
var protocolHttp = require_dist_cjs2();
|
|
2726
2733
|
var utilMiddleware = require_dist_cjs4();
|
|
@@ -4015,7 +4022,7 @@ var require_dist_cjs17 = __commonJS((exports) => {
|
|
|
4015
4022
|
exports.v4 = v4;
|
|
4016
4023
|
});
|
|
4017
4024
|
|
|
4018
|
-
// ../node_modules/.pnpm/@smithy+core@3.23.
|
|
4025
|
+
// ../node_modules/.pnpm/@smithy+core@3.23.12/node_modules/@smithy/core/dist-cjs/submodules/serde/index.js
|
|
4019
4026
|
var require_serde = __commonJS((exports) => {
|
|
4020
4027
|
var uuid3 = require_dist_cjs17();
|
|
4021
4028
|
var copyDocumentWithTransform = (source, schemaRef, transform2 = (_) => _) => source;
|
|
@@ -4687,7 +4694,7 @@ var require_serde = __commonJS((exports) => {
|
|
|
4687
4694
|
exports.strictParseShort = strictParseShort;
|
|
4688
4695
|
});
|
|
4689
4696
|
|
|
4690
|
-
// ../node_modules/.pnpm/@smithy+core@3.23.
|
|
4697
|
+
// ../node_modules/.pnpm/@smithy+core@3.23.12/node_modules/@smithy/core/dist-cjs/submodules/event-streams/index.js
|
|
4691
4698
|
var require_event_streams = __commonJS((exports) => {
|
|
4692
4699
|
var utilUtf8 = require_dist_cjs7();
|
|
4693
4700
|
|
|
@@ -4928,7 +4935,7 @@ var require_event_streams = __commonJS((exports) => {
|
|
|
4928
4935
|
exports.EventStreamSerde = EventStreamSerde;
|
|
4929
4936
|
});
|
|
4930
4937
|
|
|
4931
|
-
// ../node_modules/.pnpm/@smithy+core@3.23.
|
|
4938
|
+
// ../node_modules/.pnpm/@smithy+core@3.23.12/node_modules/@smithy/core/dist-cjs/submodules/protocols/index.js
|
|
4932
4939
|
var require_protocols = __commonJS((exports) => {
|
|
4933
4940
|
var utilStream = require_dist_cjs14();
|
|
4934
4941
|
var schema = require_schema();
|
|
@@ -5767,7 +5774,7 @@ var require_protocols = __commonJS((exports) => {
|
|
|
5767
5774
|
exports.resolvedPath = resolvedPath;
|
|
5768
5775
|
});
|
|
5769
5776
|
|
|
5770
|
-
// ../node_modules/.pnpm/@smithy+core@3.23.
|
|
5777
|
+
// ../node_modules/.pnpm/@smithy+core@3.23.12/node_modules/@smithy/core/dist-cjs/index.js
|
|
5771
5778
|
var require_dist_cjs18 = __commonJS((exports) => {
|
|
5772
5779
|
var types = require_dist_cjs();
|
|
5773
5780
|
var utilMiddleware = require_dist_cjs4();
|
|
@@ -6205,7 +6212,7 @@ var require_dist_cjs19 = __commonJS((exports) => {
|
|
|
6205
6212
|
exports.memoize = memoize;
|
|
6206
6213
|
});
|
|
6207
6214
|
|
|
6208
|
-
// ../node_modules/.pnpm/@aws-sdk+core@3.973.
|
|
6215
|
+
// ../node_modules/.pnpm/@aws-sdk+core@3.973.21/node_modules/@aws-sdk/core/dist-cjs/submodules/client/index.js
|
|
6209
6216
|
var require_client = __commonJS((exports) => {
|
|
6210
6217
|
var state = {
|
|
6211
6218
|
warningEmitted: false
|
|
@@ -6806,7 +6813,7 @@ var require_dist_cjs21 = __commonJS((exports) => {
|
|
|
6806
6813
|
exports.calculateBodyLength = calculateBodyLength;
|
|
6807
6814
|
});
|
|
6808
6815
|
|
|
6809
|
-
// ../node_modules/.pnpm/@smithy+core@3.23.
|
|
6816
|
+
// ../node_modules/.pnpm/@smithy+core@3.23.12/node_modules/@smithy/core/dist-cjs/submodules/cbor/index.js
|
|
6810
6817
|
var require_cbor = __commonJS((exports) => {
|
|
6811
6818
|
var serde = require_serde();
|
|
6812
6819
|
var utilUtf8 = require_dist_cjs7();
|
|
@@ -8099,7 +8106,7 @@ var require_dist_cjs22 = __commonJS((exports) => {
|
|
|
8099
8106
|
exports.constructStack = constructStack;
|
|
8100
8107
|
});
|
|
8101
8108
|
|
|
8102
|
-
// ../node_modules/.pnpm/@smithy+smithy-client@4.12.
|
|
8109
|
+
// ../node_modules/.pnpm/@smithy+smithy-client@4.12.6/node_modules/@smithy/smithy-client/dist-cjs/index.js
|
|
8103
8110
|
var require_dist_cjs23 = __commonJS((exports) => {
|
|
8104
8111
|
var middlewareStack = require_dist_cjs22();
|
|
8105
8112
|
var protocols = require_protocols();
|
|
@@ -8697,37 +8704,37 @@ var require_dist_cjs23 = __commonJS((exports) => {
|
|
|
8697
8704
|
});
|
|
8698
8705
|
});
|
|
8699
8706
|
|
|
8700
|
-
// ../node_modules/.pnpm/fast-xml-parser@5.
|
|
8707
|
+
// ../node_modules/.pnpm/fast-xml-parser@5.5.6/node_modules/fast-xml-parser/lib/fxp.cjs
|
|
8701
8708
|
var require_fxp = __commonJS((exports, module) => {
|
|
8702
8709
|
(() => {
|
|
8703
|
-
var t = { d: (e2,
|
|
8704
|
-
for (var
|
|
8705
|
-
t.o(
|
|
8710
|
+
var t = { d: (e2, i2) => {
|
|
8711
|
+
for (var n2 in i2)
|
|
8712
|
+
t.o(i2, n2) && !t.o(e2, n2) && Object.defineProperty(e2, n2, { enumerable: true, get: i2[n2] });
|
|
8706
8713
|
}, o: (t2, e2) => Object.prototype.hasOwnProperty.call(t2, e2), r: (t2) => {
|
|
8707
8714
|
typeof Symbol != "undefined" && Symbol.toStringTag && Object.defineProperty(t2, Symbol.toStringTag, { value: "Module" }), Object.defineProperty(t2, "__esModule", { value: true });
|
|
8708
8715
|
} }, e = {};
|
|
8709
|
-
t.r(e), t.d(e, { XMLBuilder: () =>
|
|
8710
|
-
const
|
|
8716
|
+
t.r(e), t.d(e, { XMLBuilder: () => Ot, XMLParser: () => ft, XMLValidator: () => $t });
|
|
8717
|
+
const i = ":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", n = new RegExp("^[" + i + "][" + i + "\\-.\\d\\u00B7\\u0300-\\u036F\\u203F-\\u2040]*$");
|
|
8711
8718
|
function s(t2, e2) {
|
|
8712
|
-
const
|
|
8713
|
-
let
|
|
8714
|
-
for (;
|
|
8719
|
+
const i2 = [];
|
|
8720
|
+
let n2 = e2.exec(t2);
|
|
8721
|
+
for (;n2; ) {
|
|
8715
8722
|
const s2 = [];
|
|
8716
|
-
s2.startIndex = e2.lastIndex -
|
|
8717
|
-
const r2 =
|
|
8723
|
+
s2.startIndex = e2.lastIndex - n2[0].length;
|
|
8724
|
+
const r2 = n2.length;
|
|
8718
8725
|
for (let t3 = 0;t3 < r2; t3++)
|
|
8719
|
-
s2.push(
|
|
8720
|
-
|
|
8726
|
+
s2.push(n2[t3]);
|
|
8727
|
+
i2.push(s2), n2 = e2.exec(t2);
|
|
8721
8728
|
}
|
|
8722
|
-
return
|
|
8729
|
+
return i2;
|
|
8723
8730
|
}
|
|
8724
8731
|
const r = function(t2) {
|
|
8725
|
-
return !(
|
|
8726
|
-
}, o = { allowBooleanAttributes: false, unpairedTags: [] };
|
|
8727
|
-
function
|
|
8728
|
-
e2 = Object.assign({},
|
|
8729
|
-
const
|
|
8730
|
-
let
|
|
8732
|
+
return !(n.exec(t2) == null);
|
|
8733
|
+
}, o = ["hasOwnProperty", "toString", "valueOf", "__defineGetter__", "__defineSetter__", "__lookupGetter__", "__lookupSetter__"], a = ["__proto__", "constructor", "prototype"], h = { allowBooleanAttributes: false, unpairedTags: [] };
|
|
8734
|
+
function l(t2, e2) {
|
|
8735
|
+
e2 = Object.assign({}, h, e2);
|
|
8736
|
+
const i2 = [];
|
|
8737
|
+
let n2 = false, s2 = false;
|
|
8731
8738
|
t2[0] === "\uFEFF" && (t2 = t2.substr(1));
|
|
8732
8739
|
for (let r2 = 0;r2 < t2.length; r2++)
|
|
8733
8740
|
if (t2[r2] === "<" && t2[r2 + 1] === "?") {
|
|
@@ -8735,14 +8742,14 @@ var require_fxp = __commonJS((exports, module) => {
|
|
|
8735
8742
|
return r2;
|
|
8736
8743
|
} else {
|
|
8737
8744
|
if (t2[r2] !== "<") {
|
|
8738
|
-
if (
|
|
8745
|
+
if (p(t2[r2]))
|
|
8739
8746
|
continue;
|
|
8740
|
-
return
|
|
8747
|
+
return b("InvalidChar", "char '" + t2[r2] + "' is not expected.", w(t2, r2));
|
|
8741
8748
|
}
|
|
8742
8749
|
{
|
|
8743
8750
|
let o2 = r2;
|
|
8744
8751
|
if (r2++, t2[r2] === "!") {
|
|
8745
|
-
r2 =
|
|
8752
|
+
r2 = c(t2, r2);
|
|
8746
8753
|
continue;
|
|
8747
8754
|
}
|
|
8748
8755
|
{
|
|
@@ -8752,48 +8759,48 @@ var require_fxp = __commonJS((exports, module) => {
|
|
|
8752
8759
|
for (;r2 < t2.length && t2[r2] !== ">" && t2[r2] !== " " && t2[r2] !== "\t" && t2[r2] !== `
|
|
8753
8760
|
` && t2[r2] !== "\r"; r2++)
|
|
8754
8761
|
h2 += t2[r2];
|
|
8755
|
-
if (h2 = h2.trim(), h2[h2.length - 1] === "/" && (h2 = h2.substring(0, h2.length - 1), r2--), !
|
|
8762
|
+
if (h2 = h2.trim(), h2[h2.length - 1] === "/" && (h2 = h2.substring(0, h2.length - 1), r2--), !y(h2)) {
|
|
8756
8763
|
let e3;
|
|
8757
|
-
return e3 = h2.trim().length === 0 ? "Invalid space after '<'." : "Tag '" + h2 + "' is an invalid name.",
|
|
8764
|
+
return e3 = h2.trim().length === 0 ? "Invalid space after '<'." : "Tag '" + h2 + "' is an invalid name.", b("InvalidTag", e3, w(t2, r2));
|
|
8758
8765
|
}
|
|
8759
|
-
const
|
|
8760
|
-
if (
|
|
8761
|
-
return
|
|
8762
|
-
let
|
|
8763
|
-
if (r2 =
|
|
8764
|
-
const
|
|
8765
|
-
|
|
8766
|
-
const s3 =
|
|
8766
|
+
const l2 = g(t2, r2);
|
|
8767
|
+
if (l2 === false)
|
|
8768
|
+
return b("InvalidAttr", "Attributes for '" + h2 + "' have open quote.", w(t2, r2));
|
|
8769
|
+
let d2 = l2.value;
|
|
8770
|
+
if (r2 = l2.index, d2[d2.length - 1] === "/") {
|
|
8771
|
+
const i3 = r2 - d2.length;
|
|
8772
|
+
d2 = d2.substring(0, d2.length - 1);
|
|
8773
|
+
const s3 = x(d2, e2);
|
|
8767
8774
|
if (s3 !== true)
|
|
8768
|
-
return
|
|
8769
|
-
|
|
8775
|
+
return b(s3.err.code, s3.err.msg, w(t2, i3 + s3.err.line));
|
|
8776
|
+
n2 = true;
|
|
8770
8777
|
} else if (a2) {
|
|
8771
|
-
if (!
|
|
8772
|
-
return
|
|
8773
|
-
if (
|
|
8774
|
-
return
|
|
8775
|
-
if (
|
|
8776
|
-
return
|
|
8778
|
+
if (!l2.tagClosed)
|
|
8779
|
+
return b("InvalidTag", "Closing tag '" + h2 + "' doesn't have proper closing.", w(t2, r2));
|
|
8780
|
+
if (d2.trim().length > 0)
|
|
8781
|
+
return b("InvalidTag", "Closing tag '" + h2 + "' can't have attributes or invalid starting.", w(t2, o2));
|
|
8782
|
+
if (i2.length === 0)
|
|
8783
|
+
return b("InvalidTag", "Closing tag '" + h2 + "' has not been opened.", w(t2, o2));
|
|
8777
8784
|
{
|
|
8778
|
-
const e3 =
|
|
8785
|
+
const e3 = i2.pop();
|
|
8779
8786
|
if (h2 !== e3.tagName) {
|
|
8780
|
-
let
|
|
8781
|
-
return
|
|
8787
|
+
let i3 = w(t2, e3.tagStartPos);
|
|
8788
|
+
return b("InvalidTag", "Expected closing tag '" + e3.tagName + "' (opened in line " + i3.line + ", col " + i3.col + ") instead of closing tag '" + h2 + "'.", w(t2, o2));
|
|
8782
8789
|
}
|
|
8783
|
-
|
|
8790
|
+
i2.length == 0 && (s2 = true);
|
|
8784
8791
|
}
|
|
8785
8792
|
} else {
|
|
8786
|
-
const a3 =
|
|
8793
|
+
const a3 = x(d2, e2);
|
|
8787
8794
|
if (a3 !== true)
|
|
8788
|
-
return
|
|
8795
|
+
return b(a3.err.code, a3.err.msg, w(t2, r2 - d2.length + a3.err.line));
|
|
8789
8796
|
if (s2 === true)
|
|
8790
|
-
return
|
|
8791
|
-
e2.unpairedTags.indexOf(h2) !== -1 ||
|
|
8797
|
+
return b("InvalidXml", "Multiple possible root nodes found.", w(t2, r2));
|
|
8798
|
+
e2.unpairedTags.indexOf(h2) !== -1 || i2.push({ tagName: h2, tagStartPos: o2 }), n2 = true;
|
|
8792
8799
|
}
|
|
8793
8800
|
for (r2++;r2 < t2.length; r2++)
|
|
8794
8801
|
if (t2[r2] === "<") {
|
|
8795
8802
|
if (t2[r2 + 1] === "!") {
|
|
8796
|
-
r2++, r2 =
|
|
8803
|
+
r2++, r2 = c(t2, r2);
|
|
8797
8804
|
continue;
|
|
8798
8805
|
}
|
|
8799
8806
|
if (t2[r2 + 1] !== "?")
|
|
@@ -8801,29 +8808,29 @@ var require_fxp = __commonJS((exports, module) => {
|
|
|
8801
8808
|
if (r2 = u(t2, ++r2), r2.err)
|
|
8802
8809
|
return r2;
|
|
8803
8810
|
} else if (t2[r2] === "&") {
|
|
8804
|
-
const e3 =
|
|
8811
|
+
const e3 = N(t2, r2);
|
|
8805
8812
|
if (e3 == -1)
|
|
8806
|
-
return
|
|
8813
|
+
return b("InvalidChar", "char '&' is not expected.", w(t2, r2));
|
|
8807
8814
|
r2 = e3;
|
|
8808
|
-
} else if (s2 === true && !
|
|
8809
|
-
return
|
|
8815
|
+
} else if (s2 === true && !p(t2[r2]))
|
|
8816
|
+
return b("InvalidXml", "Extra text at the end", w(t2, r2));
|
|
8810
8817
|
t2[r2] === "<" && r2--;
|
|
8811
8818
|
}
|
|
8812
8819
|
}
|
|
8813
8820
|
}
|
|
8814
|
-
return
|
|
8821
|
+
return n2 ? i2.length == 1 ? b("InvalidTag", "Unclosed tag '" + i2[0].tagName + "'.", w(t2, i2[0].tagStartPos)) : !(i2.length > 0) || b("InvalidXml", "Invalid '" + JSON.stringify(i2.map((t3) => t3.tagName), null, 4).replace(/\r?\n/g, "") + "' found.", { line: 1, col: 1 }) : b("InvalidXml", "Start tag expected.", 1);
|
|
8815
8822
|
}
|
|
8816
|
-
function
|
|
8823
|
+
function p(t2) {
|
|
8817
8824
|
return t2 === " " || t2 === "\t" || t2 === `
|
|
8818
8825
|
` || t2 === "\r";
|
|
8819
8826
|
}
|
|
8820
8827
|
function u(t2, e2) {
|
|
8821
|
-
const
|
|
8828
|
+
const i2 = e2;
|
|
8822
8829
|
for (;e2 < t2.length; e2++)
|
|
8823
8830
|
if (t2[e2] == "?" || t2[e2] == " ") {
|
|
8824
|
-
const
|
|
8825
|
-
if (e2 > 5 &&
|
|
8826
|
-
return
|
|
8831
|
+
const n2 = t2.substr(i2, e2 - i2);
|
|
8832
|
+
if (e2 > 5 && n2 === "xml")
|
|
8833
|
+
return b("InvalidXml", "XML declaration allowed only at the start of the document.", w(t2, e2));
|
|
8827
8834
|
if (t2[e2] == "?" && t2[e2 + 1] == ">") {
|
|
8828
8835
|
e2++;
|
|
8829
8836
|
break;
|
|
@@ -8832,7 +8839,7 @@ var require_fxp = __commonJS((exports, module) => {
|
|
|
8832
8839
|
}
|
|
8833
8840
|
return e2;
|
|
8834
8841
|
}
|
|
8835
|
-
function
|
|
8842
|
+
function c(t2, e2) {
|
|
8836
8843
|
if (t2.length > e2 + 5 && t2[e2 + 1] === "-" && t2[e2 + 2] === "-") {
|
|
8837
8844
|
for (e2 += 3;e2 < t2.length; e2++)
|
|
8838
8845
|
if (t2[e2] === "-" && t2[e2 + 1] === "-" && t2[e2 + 2] === ">") {
|
|
@@ -8840,11 +8847,11 @@ var require_fxp = __commonJS((exports, module) => {
|
|
|
8840
8847
|
break;
|
|
8841
8848
|
}
|
|
8842
8849
|
} else if (t2.length > e2 + 8 && t2[e2 + 1] === "D" && t2[e2 + 2] === "O" && t2[e2 + 3] === "C" && t2[e2 + 4] === "T" && t2[e2 + 5] === "Y" && t2[e2 + 6] === "P" && t2[e2 + 7] === "E") {
|
|
8843
|
-
let
|
|
8850
|
+
let i2 = 1;
|
|
8844
8851
|
for (e2 += 8;e2 < t2.length; e2++)
|
|
8845
8852
|
if (t2[e2] === "<")
|
|
8846
|
-
|
|
8847
|
-
else if (t2[e2] === ">" && (
|
|
8853
|
+
i2++;
|
|
8854
|
+
else if (t2[e2] === ">" && (i2--, i2 === 0))
|
|
8848
8855
|
break;
|
|
8849
8856
|
} else if (t2.length > e2 + 9 && t2[e2 + 1] === "[" && t2[e2 + 2] === "C" && t2[e2 + 3] === "D" && t2[e2 + 4] === "A" && t2[e2 + 5] === "T" && t2[e2 + 6] === "A" && t2[e2 + 7] === "[") {
|
|
8850
8857
|
for (e2 += 8;e2 < t2.length; e2++)
|
|
@@ -8855,96 +8862,107 @@ var require_fxp = __commonJS((exports, module) => {
|
|
|
8855
8862
|
}
|
|
8856
8863
|
return e2;
|
|
8857
8864
|
}
|
|
8858
|
-
const
|
|
8859
|
-
function
|
|
8860
|
-
let
|
|
8865
|
+
const d = '"', f = "'";
|
|
8866
|
+
function g(t2, e2) {
|
|
8867
|
+
let i2 = "", n2 = "", s2 = false;
|
|
8861
8868
|
for (;e2 < t2.length; e2++) {
|
|
8862
|
-
if (t2[e2] ===
|
|
8863
|
-
|
|
8864
|
-
else if (t2[e2] === ">" &&
|
|
8869
|
+
if (t2[e2] === d || t2[e2] === f)
|
|
8870
|
+
n2 === "" ? n2 = t2[e2] : n2 !== t2[e2] || (n2 = "");
|
|
8871
|
+
else if (t2[e2] === ">" && n2 === "") {
|
|
8865
8872
|
s2 = true;
|
|
8866
8873
|
break;
|
|
8867
8874
|
}
|
|
8868
|
-
|
|
8875
|
+
i2 += t2[e2];
|
|
8869
8876
|
}
|
|
8870
|
-
return
|
|
8877
|
+
return n2 === "" && { value: i2, index: e2, tagClosed: s2 };
|
|
8871
8878
|
}
|
|
8872
|
-
const
|
|
8873
|
-
function
|
|
8874
|
-
const
|
|
8875
|
-
for (let t3 = 0;t3 <
|
|
8876
|
-
if (
|
|
8877
|
-
return
|
|
8878
|
-
if (
|
|
8879
|
-
return
|
|
8880
|
-
if (
|
|
8881
|
-
return
|
|
8882
|
-
const s2 =
|
|
8879
|
+
const m = new RegExp(`(\\s*)([^\\s=]+)(\\s*=)?(\\s*(['"])(([\\s\\S])*?)\\5)?`, "g");
|
|
8880
|
+
function x(t2, e2) {
|
|
8881
|
+
const i2 = s(t2, m), n2 = {};
|
|
8882
|
+
for (let t3 = 0;t3 < i2.length; t3++) {
|
|
8883
|
+
if (i2[t3][1].length === 0)
|
|
8884
|
+
return b("InvalidAttr", "Attribute '" + i2[t3][2] + "' has no space in starting.", v(i2[t3]));
|
|
8885
|
+
if (i2[t3][3] !== undefined && i2[t3][4] === undefined)
|
|
8886
|
+
return b("InvalidAttr", "Attribute '" + i2[t3][2] + "' is without value.", v(i2[t3]));
|
|
8887
|
+
if (i2[t3][3] === undefined && !e2.allowBooleanAttributes)
|
|
8888
|
+
return b("InvalidAttr", "boolean attribute '" + i2[t3][2] + "' is not allowed.", v(i2[t3]));
|
|
8889
|
+
const s2 = i2[t3][2];
|
|
8883
8890
|
if (!E(s2))
|
|
8884
|
-
return
|
|
8885
|
-
if (Object.prototype.hasOwnProperty.call(
|
|
8886
|
-
return
|
|
8887
|
-
|
|
8891
|
+
return b("InvalidAttr", "Attribute '" + s2 + "' is an invalid name.", v(i2[t3]));
|
|
8892
|
+
if (Object.prototype.hasOwnProperty.call(n2, s2))
|
|
8893
|
+
return b("InvalidAttr", "Attribute '" + s2 + "' is repeated.", v(i2[t3]));
|
|
8894
|
+
n2[s2] = 1;
|
|
8888
8895
|
}
|
|
8889
8896
|
return true;
|
|
8890
8897
|
}
|
|
8891
|
-
function
|
|
8898
|
+
function N(t2, e2) {
|
|
8892
8899
|
if (t2[++e2] === ";")
|
|
8893
8900
|
return -1;
|
|
8894
8901
|
if (t2[e2] === "#")
|
|
8895
8902
|
return function(t3, e3) {
|
|
8896
|
-
let
|
|
8897
|
-
for (t3[e3] === "x" && (e3++,
|
|
8903
|
+
let i3 = /\d/;
|
|
8904
|
+
for (t3[e3] === "x" && (e3++, i3 = /[\da-fA-F]/);e3 < t3.length; e3++) {
|
|
8898
8905
|
if (t3[e3] === ";")
|
|
8899
8906
|
return e3;
|
|
8900
|
-
if (!t3[e3].match(
|
|
8907
|
+
if (!t3[e3].match(i3))
|
|
8901
8908
|
break;
|
|
8902
8909
|
}
|
|
8903
8910
|
return -1;
|
|
8904
8911
|
}(t2, ++e2);
|
|
8905
|
-
let
|
|
8906
|
-
for (;e2 < t2.length; e2++,
|
|
8907
|
-
if (!(t2[e2].match(/\w/) &&
|
|
8912
|
+
let i2 = 0;
|
|
8913
|
+
for (;e2 < t2.length; e2++, i2++)
|
|
8914
|
+
if (!(t2[e2].match(/\w/) && i2 < 20)) {
|
|
8908
8915
|
if (t2[e2] === ";")
|
|
8909
8916
|
break;
|
|
8910
8917
|
return -1;
|
|
8911
8918
|
}
|
|
8912
8919
|
return e2;
|
|
8913
8920
|
}
|
|
8914
|
-
function
|
|
8915
|
-
return { err: { code: t2, msg: e2, line:
|
|
8921
|
+
function b(t2, e2, i2) {
|
|
8922
|
+
return { err: { code: t2, msg: e2, line: i2.line || i2, col: i2.col } };
|
|
8916
8923
|
}
|
|
8917
8924
|
function E(t2) {
|
|
8918
8925
|
return r(t2);
|
|
8919
8926
|
}
|
|
8920
|
-
function
|
|
8927
|
+
function y(t2) {
|
|
8921
8928
|
return r(t2);
|
|
8922
8929
|
}
|
|
8923
|
-
function
|
|
8924
|
-
const
|
|
8925
|
-
return { line:
|
|
8930
|
+
function w(t2, e2) {
|
|
8931
|
+
const i2 = t2.substring(0, e2).split(/\r?\n/);
|
|
8932
|
+
return { line: i2.length, col: i2[i2.length - 1].length + 1 };
|
|
8926
8933
|
}
|
|
8927
|
-
function
|
|
8934
|
+
function v(t2) {
|
|
8928
8935
|
return t2.startIndex + t2[1].length;
|
|
8929
8936
|
}
|
|
8930
|
-
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(t2, e2) {
|
|
8937
|
+
const T = (t2) => o.includes(t2) ? "__" + t2 : t2, P = { 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(t2, e2) {
|
|
8931
8938
|
return e2;
|
|
8932
8939
|
}, attributeValueProcessor: function(t2, e2) {
|
|
8933
8940
|
return e2;
|
|
8934
|
-
}, stopNodes: [], alwaysCreateTextNode: false, isArray: () => false, commentPropName: false, unpairedTags: [], processEntities: true, htmlEntities: false, ignoreDeclaration: false, ignorePiTags: false, transformTagName: false, transformAttributeName: false, updateTag: function(t2, e2,
|
|
8941
|
+
}, stopNodes: [], alwaysCreateTextNode: false, isArray: () => false, commentPropName: false, unpairedTags: [], processEntities: true, htmlEntities: false, ignoreDeclaration: false, ignorePiTags: false, transformTagName: false, transformAttributeName: false, updateTag: function(t2, e2, i2) {
|
|
8935
8942
|
return t2;
|
|
8936
|
-
}, captureMetaData: false, maxNestedTags: 100, strictReservedNames: true };
|
|
8937
|
-
function
|
|
8938
|
-
|
|
8943
|
+
}, captureMetaData: false, maxNestedTags: 100, strictReservedNames: true, jPath: true, onDangerousProperty: T };
|
|
8944
|
+
function S(t2, e2) {
|
|
8945
|
+
if (typeof t2 != "string")
|
|
8946
|
+
return;
|
|
8947
|
+
const i2 = t2.toLowerCase();
|
|
8948
|
+
if (o.some((t3) => i2 === t3.toLowerCase()))
|
|
8949
|
+
throw new Error(`[SECURITY] Invalid ${e2}: "${t2}" is a reserved JavaScript keyword that could cause prototype pollution`);
|
|
8950
|
+
if (a.some((t3) => i2 === t3.toLowerCase()))
|
|
8951
|
+
throw new Error(`[SECURITY] Invalid ${e2}: "${t2}" is a reserved JavaScript keyword that could cause prototype pollution`);
|
|
8952
|
+
}
|
|
8953
|
+
function A(t2) {
|
|
8954
|
+
return typeof t2 == "boolean" ? { enabled: t2, maxEntitySize: 1e4, maxExpansionDepth: 10, maxTotalExpansions: 1000, maxExpandedLength: 1e5, maxEntityCount: 100, allowedTags: null, tagFilter: null } : typeof t2 == "object" && t2 !== null ? { enabled: t2.enabled !== false, maxEntitySize: t2.maxEntitySize ?? 1e4, maxExpansionDepth: t2.maxExpansionDepth ?? 10, maxTotalExpansions: t2.maxTotalExpansions ?? 1000, maxExpandedLength: t2.maxExpandedLength ?? 1e5, maxEntityCount: t2.maxEntityCount ?? 100, allowedTags: t2.allowedTags ?? null, tagFilter: t2.tagFilter ?? null } : A(true);
|
|
8939
8955
|
}
|
|
8940
|
-
const
|
|
8941
|
-
const e2 = Object.assign({},
|
|
8942
|
-
|
|
8956
|
+
const C = function(t2) {
|
|
8957
|
+
const e2 = Object.assign({}, P, t2), i2 = [{ value: e2.attributeNamePrefix, name: "attributeNamePrefix" }, { value: e2.attributesGroupName, name: "attributesGroupName" }, { value: e2.textNodeName, name: "textNodeName" }, { value: e2.cdataPropName, name: "cdataPropName" }, { value: e2.commentPropName, name: "commentPropName" }];
|
|
8958
|
+
for (const { value: t3, name: e3 } of i2)
|
|
8959
|
+
t3 && S(t3, e3);
|
|
8960
|
+
return e2.onDangerousProperty === null && (e2.onDangerousProperty = T), e2.processEntities = A(e2.processEntities), e2.stopNodes && Array.isArray(e2.stopNodes) && (e2.stopNodes = e2.stopNodes.map((t3) => typeof t3 == "string" && t3.startsWith("*.") ? ".." + t3.substring(2) : t3)), e2;
|
|
8943
8961
|
};
|
|
8944
8962
|
let O;
|
|
8945
8963
|
O = typeof Symbol != "function" ? "@@xmlMetadata" : Symbol("XML Node Metadata");
|
|
8946
8964
|
|
|
8947
|
-
class
|
|
8965
|
+
class $ {
|
|
8948
8966
|
constructor(t2) {
|
|
8949
8967
|
this.tagname = t2, this.child = [], this[":@"] = Object.create(null);
|
|
8950
8968
|
}
|
|
@@ -8959,236 +8977,478 @@ var require_fxp = __commonJS((exports, module) => {
|
|
|
8959
8977
|
}
|
|
8960
8978
|
}
|
|
8961
8979
|
|
|
8962
|
-
class
|
|
8980
|
+
class I {
|
|
8963
8981
|
constructor(t2) {
|
|
8964
8982
|
this.suppressValidationErr = !t2, this.options = t2;
|
|
8965
8983
|
}
|
|
8966
8984
|
readDocType(t2, e2) {
|
|
8967
|
-
const
|
|
8985
|
+
const i2 = Object.create(null);
|
|
8986
|
+
let n2 = 0;
|
|
8968
8987
|
if (t2[e2 + 3] !== "O" || t2[e2 + 4] !== "C" || t2[e2 + 5] !== "T" || t2[e2 + 6] !== "Y" || t2[e2 + 7] !== "P" || t2[e2 + 8] !== "E")
|
|
8969
8988
|
throw new Error("Invalid Tag instead of DOCTYPE");
|
|
8970
8989
|
{
|
|
8971
8990
|
e2 += 9;
|
|
8972
|
-
let
|
|
8991
|
+
let s2 = 1, r2 = false, o2 = false, a2 = "";
|
|
8973
8992
|
for (;e2 < t2.length; e2++)
|
|
8974
|
-
if (t2[e2] !== "<" ||
|
|
8993
|
+
if (t2[e2] !== "<" || o2)
|
|
8975
8994
|
if (t2[e2] === ">") {
|
|
8976
|
-
if (
|
|
8995
|
+
if (o2 ? t2[e2 - 1] === "-" && t2[e2 - 2] === "-" && (o2 = false, s2--) : s2--, s2 === 0)
|
|
8977
8996
|
break;
|
|
8978
8997
|
} else
|
|
8979
|
-
t2[e2] === "[" ?
|
|
8998
|
+
t2[e2] === "[" ? r2 = true : a2 += t2[e2];
|
|
8980
8999
|
else {
|
|
8981
|
-
if (
|
|
8982
|
-
let
|
|
8983
|
-
if (e2 += 7, [
|
|
8984
|
-
|
|
8985
|
-
|
|
9000
|
+
if (r2 && _(t2, "!ENTITY", e2)) {
|
|
9001
|
+
let s3, r3;
|
|
9002
|
+
if (e2 += 7, [s3, r3, e2] = this.readEntityExp(t2, e2 + 1, this.suppressValidationErr), r3.indexOf("&") === -1) {
|
|
9003
|
+
if (this.options.enabled !== false && this.options.maxEntityCount && n2 >= this.options.maxEntityCount)
|
|
9004
|
+
throw new Error(`Entity count (${n2 + 1}) exceeds maximum allowed (${this.options.maxEntityCount})`);
|
|
9005
|
+
const t3 = s3.replace(/[.*+?^${}()|[\]\\]/g, "\\$&");
|
|
9006
|
+
i2[s3] = { regx: RegExp(`&${t3};`, "g"), val: r3 }, n2++;
|
|
8986
9007
|
}
|
|
8987
|
-
} else if (
|
|
9008
|
+
} else if (r2 && _(t2, "!ELEMENT", e2)) {
|
|
8988
9009
|
e2 += 8;
|
|
8989
|
-
const { index:
|
|
8990
|
-
e2 =
|
|
8991
|
-
} else if (
|
|
9010
|
+
const { index: i3 } = this.readElementExp(t2, e2 + 1);
|
|
9011
|
+
e2 = i3;
|
|
9012
|
+
} else if (r2 && _(t2, "!ATTLIST", e2))
|
|
8992
9013
|
e2 += 8;
|
|
8993
|
-
else if (
|
|
9014
|
+
else if (r2 && _(t2, "!NOTATION", e2)) {
|
|
8994
9015
|
e2 += 9;
|
|
8995
|
-
const { index:
|
|
8996
|
-
e2 =
|
|
9016
|
+
const { index: i3 } = this.readNotationExp(t2, e2 + 1, this.suppressValidationErr);
|
|
9017
|
+
e2 = i3;
|
|
8997
9018
|
} else {
|
|
8998
|
-
if (!
|
|
9019
|
+
if (!_(t2, "!--", e2))
|
|
8999
9020
|
throw new Error("Invalid DOCTYPE");
|
|
9000
|
-
|
|
9021
|
+
o2 = true;
|
|
9001
9022
|
}
|
|
9002
|
-
|
|
9023
|
+
s2++, a2 = "";
|
|
9003
9024
|
}
|
|
9004
|
-
if (
|
|
9025
|
+
if (s2 !== 0)
|
|
9005
9026
|
throw new Error("Unclosed DOCTYPE");
|
|
9006
9027
|
}
|
|
9007
|
-
return { entities:
|
|
9028
|
+
return { entities: i2, i: e2 };
|
|
9008
9029
|
}
|
|
9009
9030
|
readEntityExp(t2, e2) {
|
|
9010
|
-
e2 =
|
|
9011
|
-
let
|
|
9031
|
+
e2 = j(t2, e2);
|
|
9032
|
+
let i2 = "";
|
|
9012
9033
|
for (;e2 < t2.length && !/\s/.test(t2[e2]) && t2[e2] !== '"' && t2[e2] !== "'"; )
|
|
9013
|
-
|
|
9014
|
-
if (
|
|
9034
|
+
i2 += t2[e2], e2++;
|
|
9035
|
+
if (D(i2), e2 = j(t2, e2), !this.suppressValidationErr) {
|
|
9015
9036
|
if (t2.substring(e2, e2 + 6).toUpperCase() === "SYSTEM")
|
|
9016
9037
|
throw new Error("External entities are not supported");
|
|
9017
9038
|
if (t2[e2] === "%")
|
|
9018
9039
|
throw new Error("Parameter entities are not supported");
|
|
9019
9040
|
}
|
|
9020
|
-
let
|
|
9021
|
-
if ([e2,
|
|
9022
|
-
throw new Error(`Entity "${
|
|
9023
|
-
return [
|
|
9041
|
+
let n2 = "";
|
|
9042
|
+
if ([e2, n2] = this.readIdentifierVal(t2, e2, "entity"), this.options.enabled !== false && this.options.maxEntitySize && n2.length > this.options.maxEntitySize)
|
|
9043
|
+
throw new Error(`Entity "${i2}" size (${n2.length}) exceeds maximum allowed size (${this.options.maxEntitySize})`);
|
|
9044
|
+
return [i2, n2, --e2];
|
|
9024
9045
|
}
|
|
9025
9046
|
readNotationExp(t2, e2) {
|
|
9026
|
-
e2 =
|
|
9027
|
-
let
|
|
9047
|
+
e2 = j(t2, e2);
|
|
9048
|
+
let i2 = "";
|
|
9028
9049
|
for (;e2 < t2.length && !/\s/.test(t2[e2]); )
|
|
9029
|
-
|
|
9030
|
-
!this.suppressValidationErr &&
|
|
9031
|
-
const
|
|
9032
|
-
if (!this.suppressValidationErr &&
|
|
9033
|
-
throw new Error(`Expected SYSTEM or PUBLIC, found "${
|
|
9034
|
-
e2 +=
|
|
9050
|
+
i2 += t2[e2], e2++;
|
|
9051
|
+
!this.suppressValidationErr && D(i2), e2 = j(t2, e2);
|
|
9052
|
+
const n2 = t2.substring(e2, e2 + 6).toUpperCase();
|
|
9053
|
+
if (!this.suppressValidationErr && n2 !== "SYSTEM" && n2 !== "PUBLIC")
|
|
9054
|
+
throw new Error(`Expected SYSTEM or PUBLIC, found "${n2}"`);
|
|
9055
|
+
e2 += n2.length, e2 = j(t2, e2);
|
|
9035
9056
|
let s2 = null, r2 = null;
|
|
9036
|
-
if (
|
|
9037
|
-
[e2, s2] = this.readIdentifierVal(t2, e2, "publicIdentifier"), t2[e2 =
|
|
9038
|
-
else if (
|
|
9057
|
+
if (n2 === "PUBLIC")
|
|
9058
|
+
[e2, s2] = this.readIdentifierVal(t2, e2, "publicIdentifier"), t2[e2 = j(t2, e2)] !== '"' && t2[e2] !== "'" || ([e2, r2] = this.readIdentifierVal(t2, e2, "systemIdentifier"));
|
|
9059
|
+
else if (n2 === "SYSTEM" && ([e2, r2] = this.readIdentifierVal(t2, e2, "systemIdentifier"), !this.suppressValidationErr && !r2))
|
|
9039
9060
|
throw new Error("Missing mandatory system identifier for SYSTEM notation");
|
|
9040
|
-
return { notationName:
|
|
9061
|
+
return { notationName: i2, publicIdentifier: s2, systemIdentifier: r2, index: --e2 };
|
|
9041
9062
|
}
|
|
9042
|
-
readIdentifierVal(t2, e2,
|
|
9043
|
-
let
|
|
9063
|
+
readIdentifierVal(t2, e2, i2) {
|
|
9064
|
+
let n2 = "";
|
|
9044
9065
|
const s2 = t2[e2];
|
|
9045
9066
|
if (s2 !== '"' && s2 !== "'")
|
|
9046
9067
|
throw new Error(`Expected quoted string, found "${s2}"`);
|
|
9047
9068
|
for (e2++;e2 < t2.length && t2[e2] !== s2; )
|
|
9048
|
-
|
|
9069
|
+
n2 += t2[e2], e2++;
|
|
9049
9070
|
if (t2[e2] !== s2)
|
|
9050
|
-
throw new Error(`Unterminated ${
|
|
9051
|
-
return [++e2,
|
|
9071
|
+
throw new Error(`Unterminated ${i2} value`);
|
|
9072
|
+
return [++e2, n2];
|
|
9052
9073
|
}
|
|
9053
9074
|
readElementExp(t2, e2) {
|
|
9054
|
-
e2 =
|
|
9055
|
-
let n2 = "";
|
|
9056
|
-
for (;e2 < t2.length && !/\s/.test(t2[e2]); )
|
|
9057
|
-
n2 += t2[e2], e2++;
|
|
9058
|
-
if (!this.suppressValidationErr && !r(n2))
|
|
9059
|
-
throw new Error(`Invalid element name: "${n2}"`);
|
|
9075
|
+
e2 = j(t2, e2);
|
|
9060
9076
|
let i2 = "";
|
|
9061
|
-
|
|
9077
|
+
for (;e2 < t2.length && !/\s/.test(t2[e2]); )
|
|
9078
|
+
i2 += t2[e2], e2++;
|
|
9079
|
+
if (!this.suppressValidationErr && !r(i2))
|
|
9080
|
+
throw new Error(`Invalid element name: "${i2}"`);
|
|
9081
|
+
let n2 = "";
|
|
9082
|
+
if (t2[e2 = j(t2, e2)] === "E" && _(t2, "MPTY", e2))
|
|
9062
9083
|
e2 += 4;
|
|
9063
|
-
else if (t2[e2] === "A" &&
|
|
9084
|
+
else if (t2[e2] === "A" && _(t2, "NY", e2))
|
|
9064
9085
|
e2 += 2;
|
|
9065
9086
|
else if (t2[e2] === "(") {
|
|
9066
9087
|
for (e2++;e2 < t2.length && t2[e2] !== ")"; )
|
|
9067
|
-
|
|
9088
|
+
n2 += t2[e2], e2++;
|
|
9068
9089
|
if (t2[e2] !== ")")
|
|
9069
9090
|
throw new Error("Unterminated content model");
|
|
9070
9091
|
} else if (!this.suppressValidationErr)
|
|
9071
9092
|
throw new Error(`Invalid Element Expression, found "${t2[e2]}"`);
|
|
9072
|
-
return { elementName:
|
|
9093
|
+
return { elementName: i2, contentModel: n2.trim(), index: e2 };
|
|
9073
9094
|
}
|
|
9074
9095
|
readAttlistExp(t2, e2) {
|
|
9075
|
-
e2 =
|
|
9076
|
-
let n2 = "";
|
|
9077
|
-
for (;e2 < t2.length && !/\s/.test(t2[e2]); )
|
|
9078
|
-
n2 += t2[e2], e2++;
|
|
9079
|
-
C(n2), e2 = A(t2, e2);
|
|
9096
|
+
e2 = j(t2, e2);
|
|
9080
9097
|
let i2 = "";
|
|
9081
9098
|
for (;e2 < t2.length && !/\s/.test(t2[e2]); )
|
|
9082
9099
|
i2 += t2[e2], e2++;
|
|
9083
|
-
|
|
9084
|
-
|
|
9085
|
-
e2
|
|
9100
|
+
D(i2), e2 = j(t2, e2);
|
|
9101
|
+
let n2 = "";
|
|
9102
|
+
for (;e2 < t2.length && !/\s/.test(t2[e2]); )
|
|
9103
|
+
n2 += t2[e2], e2++;
|
|
9104
|
+
if (!D(n2))
|
|
9105
|
+
throw new Error(`Invalid attribute name: "${n2}"`);
|
|
9106
|
+
e2 = j(t2, e2);
|
|
9086
9107
|
let s2 = "";
|
|
9087
9108
|
if (t2.substring(e2, e2 + 8).toUpperCase() === "NOTATION") {
|
|
9088
|
-
if (s2 = "NOTATION", t2[e2 =
|
|
9109
|
+
if (s2 = "NOTATION", t2[e2 = j(t2, e2 += 8)] !== "(")
|
|
9089
9110
|
throw new Error(`Expected '(', found "${t2[e2]}"`);
|
|
9090
9111
|
e2++;
|
|
9091
|
-
let
|
|
9112
|
+
let i3 = [];
|
|
9092
9113
|
for (;e2 < t2.length && t2[e2] !== ")"; ) {
|
|
9093
|
-
let
|
|
9114
|
+
let n3 = "";
|
|
9094
9115
|
for (;e2 < t2.length && t2[e2] !== "|" && t2[e2] !== ")"; )
|
|
9095
|
-
|
|
9096
|
-
if (
|
|
9097
|
-
throw new Error(`Invalid notation name: "${
|
|
9098
|
-
|
|
9116
|
+
n3 += t2[e2], e2++;
|
|
9117
|
+
if (n3 = n3.trim(), !D(n3))
|
|
9118
|
+
throw new Error(`Invalid notation name: "${n3}"`);
|
|
9119
|
+
i3.push(n3), t2[e2] === "|" && (e2++, e2 = j(t2, e2));
|
|
9099
9120
|
}
|
|
9100
9121
|
if (t2[e2] !== ")")
|
|
9101
9122
|
throw new Error("Unterminated list of notations");
|
|
9102
|
-
e2++, s2 += " (" +
|
|
9123
|
+
e2++, s2 += " (" + i3.join("|") + ")";
|
|
9103
9124
|
} else {
|
|
9104
9125
|
for (;e2 < t2.length && !/\s/.test(t2[e2]); )
|
|
9105
9126
|
s2 += t2[e2], e2++;
|
|
9106
|
-
const
|
|
9107
|
-
if (!this.suppressValidationErr && !
|
|
9127
|
+
const i3 = ["CDATA", "ID", "IDREF", "IDREFS", "ENTITY", "ENTITIES", "NMTOKEN", "NMTOKENS"];
|
|
9128
|
+
if (!this.suppressValidationErr && !i3.includes(s2.toUpperCase()))
|
|
9108
9129
|
throw new Error(`Invalid attribute type: "${s2}"`);
|
|
9109
9130
|
}
|
|
9110
|
-
e2 =
|
|
9131
|
+
e2 = j(t2, e2);
|
|
9111
9132
|
let r2 = "";
|
|
9112
|
-
return t2.substring(e2, e2 + 8).toUpperCase() === "#REQUIRED" ? (r2 = "#REQUIRED", e2 += 8) : t2.substring(e2, e2 + 7).toUpperCase() === "#IMPLIED" ? (r2 = "#IMPLIED", e2 += 7) : [e2, r2] = this.readIdentifierVal(t2, e2, "ATTLIST"), { elementName:
|
|
9133
|
+
return t2.substring(e2, e2 + 8).toUpperCase() === "#REQUIRED" ? (r2 = "#REQUIRED", e2 += 8) : t2.substring(e2, e2 + 7).toUpperCase() === "#IMPLIED" ? (r2 = "#IMPLIED", e2 += 7) : [e2, r2] = this.readIdentifierVal(t2, e2, "ATTLIST"), { elementName: i2, attributeName: n2, attributeType: s2, defaultValue: r2, index: e2 };
|
|
9113
9134
|
}
|
|
9114
9135
|
}
|
|
9115
|
-
const
|
|
9136
|
+
const j = (t2, e2) => {
|
|
9116
9137
|
for (;e2 < t2.length && /\s/.test(t2[e2]); )
|
|
9117
9138
|
e2++;
|
|
9118
9139
|
return e2;
|
|
9119
9140
|
};
|
|
9120
|
-
function
|
|
9121
|
-
for (let
|
|
9122
|
-
if (e2[
|
|
9141
|
+
function _(t2, e2, i2) {
|
|
9142
|
+
for (let n2 = 0;n2 < e2.length; n2++)
|
|
9143
|
+
if (e2[n2] !== t2[i2 + n2 + 1])
|
|
9123
9144
|
return false;
|
|
9124
9145
|
return true;
|
|
9125
9146
|
}
|
|
9126
|
-
function
|
|
9147
|
+
function D(t2) {
|
|
9127
9148
|
if (r(t2))
|
|
9128
9149
|
return t2;
|
|
9129
9150
|
throw new Error(`Invalid entity name ${t2}`);
|
|
9130
9151
|
}
|
|
9131
|
-
const
|
|
9132
|
-
const
|
|
9152
|
+
const V = /^[-+]?0x[a-fA-F0-9]+$/, k = /^([\-\+])?(0*)([0-9]*(\.[0-9]*)?)$/, F = { hex: true, leadingZeros: true, decimalPoint: ".", eNotation: true };
|
|
9153
|
+
const L = /^([-+])?(0*)(\d*(\.\d*)?[eE][-\+]?\d+)$/;
|
|
9154
|
+
|
|
9155
|
+
class M {
|
|
9156
|
+
constructor(t2 = {}) {
|
|
9157
|
+
this.separator = t2.separator || ".", this.path = [], this.siblingStacks = [];
|
|
9158
|
+
}
|
|
9159
|
+
push(t2, e2 = null, i2 = null) {
|
|
9160
|
+
this.path.length > 0 && (this.path[this.path.length - 1].values = undefined);
|
|
9161
|
+
const n2 = this.path.length;
|
|
9162
|
+
this.siblingStacks[n2] || (this.siblingStacks[n2] = new Map);
|
|
9163
|
+
const s2 = this.siblingStacks[n2], r2 = i2 ? `${i2}:${t2}` : t2, o2 = s2.get(r2) || 0;
|
|
9164
|
+
let a2 = 0;
|
|
9165
|
+
for (const t3 of s2.values())
|
|
9166
|
+
a2 += t3;
|
|
9167
|
+
s2.set(r2, o2 + 1);
|
|
9168
|
+
const h2 = { tag: t2, position: a2, counter: o2 };
|
|
9169
|
+
i2 != null && (h2.namespace = i2), e2 != null && (h2.values = e2), this.path.push(h2);
|
|
9170
|
+
}
|
|
9171
|
+
pop() {
|
|
9172
|
+
if (this.path.length === 0)
|
|
9173
|
+
return;
|
|
9174
|
+
const t2 = this.path.pop();
|
|
9175
|
+
return this.siblingStacks.length > this.path.length + 1 && (this.siblingStacks.length = this.path.length + 1), t2;
|
|
9176
|
+
}
|
|
9177
|
+
updateCurrent(t2) {
|
|
9178
|
+
if (this.path.length > 0) {
|
|
9179
|
+
const e2 = this.path[this.path.length - 1];
|
|
9180
|
+
t2 != null && (e2.values = t2);
|
|
9181
|
+
}
|
|
9182
|
+
}
|
|
9183
|
+
getCurrentTag() {
|
|
9184
|
+
return this.path.length > 0 ? this.path[this.path.length - 1].tag : undefined;
|
|
9185
|
+
}
|
|
9186
|
+
getCurrentNamespace() {
|
|
9187
|
+
return this.path.length > 0 ? this.path[this.path.length - 1].namespace : undefined;
|
|
9188
|
+
}
|
|
9189
|
+
getAttrValue(t2) {
|
|
9190
|
+
if (this.path.length === 0)
|
|
9191
|
+
return;
|
|
9192
|
+
const e2 = this.path[this.path.length - 1];
|
|
9193
|
+
return e2.values?.[t2];
|
|
9194
|
+
}
|
|
9195
|
+
hasAttr(t2) {
|
|
9196
|
+
if (this.path.length === 0)
|
|
9197
|
+
return false;
|
|
9198
|
+
const e2 = this.path[this.path.length - 1];
|
|
9199
|
+
return e2.values !== undefined && t2 in e2.values;
|
|
9200
|
+
}
|
|
9201
|
+
getPosition() {
|
|
9202
|
+
return this.path.length === 0 ? -1 : this.path[this.path.length - 1].position ?? 0;
|
|
9203
|
+
}
|
|
9204
|
+
getCounter() {
|
|
9205
|
+
return this.path.length === 0 ? -1 : this.path[this.path.length - 1].counter ?? 0;
|
|
9206
|
+
}
|
|
9207
|
+
getIndex() {
|
|
9208
|
+
return this.getPosition();
|
|
9209
|
+
}
|
|
9210
|
+
getDepth() {
|
|
9211
|
+
return this.path.length;
|
|
9212
|
+
}
|
|
9213
|
+
toString(t2, e2 = true) {
|
|
9214
|
+
const i2 = t2 || this.separator;
|
|
9215
|
+
return this.path.map((t3) => e2 && t3.namespace ? `${t3.namespace}:${t3.tag}` : t3.tag).join(i2);
|
|
9216
|
+
}
|
|
9217
|
+
toArray() {
|
|
9218
|
+
return this.path.map((t2) => t2.tag);
|
|
9219
|
+
}
|
|
9220
|
+
reset() {
|
|
9221
|
+
this.path = [], this.siblingStacks = [];
|
|
9222
|
+
}
|
|
9223
|
+
matches(t2) {
|
|
9224
|
+
const e2 = t2.segments;
|
|
9225
|
+
return e2.length !== 0 && (t2.hasDeepWildcard() ? this._matchWithDeepWildcard(e2) : this._matchSimple(e2));
|
|
9226
|
+
}
|
|
9227
|
+
_matchSimple(t2) {
|
|
9228
|
+
if (this.path.length !== t2.length)
|
|
9229
|
+
return false;
|
|
9230
|
+
for (let e2 = 0;e2 < t2.length; e2++) {
|
|
9231
|
+
const i2 = t2[e2], n2 = this.path[e2], s2 = e2 === this.path.length - 1;
|
|
9232
|
+
if (!this._matchSegment(i2, n2, s2))
|
|
9233
|
+
return false;
|
|
9234
|
+
}
|
|
9235
|
+
return true;
|
|
9236
|
+
}
|
|
9237
|
+
_matchWithDeepWildcard(t2) {
|
|
9238
|
+
let e2 = this.path.length - 1, i2 = t2.length - 1;
|
|
9239
|
+
for (;i2 >= 0 && e2 >= 0; ) {
|
|
9240
|
+
const n2 = t2[i2];
|
|
9241
|
+
if (n2.type === "deep-wildcard") {
|
|
9242
|
+
if (i2--, i2 < 0)
|
|
9243
|
+
return true;
|
|
9244
|
+
const n3 = t2[i2];
|
|
9245
|
+
let s2 = false;
|
|
9246
|
+
for (let t3 = e2;t3 >= 0; t3--) {
|
|
9247
|
+
const r2 = t3 === this.path.length - 1;
|
|
9248
|
+
if (this._matchSegment(n3, this.path[t3], r2)) {
|
|
9249
|
+
e2 = t3 - 1, i2--, s2 = true;
|
|
9250
|
+
break;
|
|
9251
|
+
}
|
|
9252
|
+
}
|
|
9253
|
+
if (!s2)
|
|
9254
|
+
return false;
|
|
9255
|
+
} else {
|
|
9256
|
+
const t3 = e2 === this.path.length - 1;
|
|
9257
|
+
if (!this._matchSegment(n2, this.path[e2], t3))
|
|
9258
|
+
return false;
|
|
9259
|
+
e2--, i2--;
|
|
9260
|
+
}
|
|
9261
|
+
}
|
|
9262
|
+
return i2 < 0;
|
|
9263
|
+
}
|
|
9264
|
+
_matchSegment(t2, e2, i2) {
|
|
9265
|
+
if (t2.tag !== "*" && t2.tag !== e2.tag)
|
|
9266
|
+
return false;
|
|
9267
|
+
if (t2.namespace !== undefined && t2.namespace !== "*" && t2.namespace !== e2.namespace)
|
|
9268
|
+
return false;
|
|
9269
|
+
if (t2.attrName !== undefined) {
|
|
9270
|
+
if (!i2)
|
|
9271
|
+
return false;
|
|
9272
|
+
if (!e2.values || !(t2.attrName in e2.values))
|
|
9273
|
+
return false;
|
|
9274
|
+
if (t2.attrValue !== undefined) {
|
|
9275
|
+
const i3 = e2.values[t2.attrName];
|
|
9276
|
+
if (String(i3) !== String(t2.attrValue))
|
|
9277
|
+
return false;
|
|
9278
|
+
}
|
|
9279
|
+
}
|
|
9280
|
+
if (t2.position !== undefined) {
|
|
9281
|
+
if (!i2)
|
|
9282
|
+
return false;
|
|
9283
|
+
const n2 = e2.counter ?? 0;
|
|
9284
|
+
if (t2.position === "first" && n2 !== 0)
|
|
9285
|
+
return false;
|
|
9286
|
+
if (t2.position === "odd" && n2 % 2 != 1)
|
|
9287
|
+
return false;
|
|
9288
|
+
if (t2.position === "even" && n2 % 2 != 0)
|
|
9289
|
+
return false;
|
|
9290
|
+
if (t2.position === "nth" && n2 !== t2.positionValue)
|
|
9291
|
+
return false;
|
|
9292
|
+
}
|
|
9293
|
+
return true;
|
|
9294
|
+
}
|
|
9295
|
+
snapshot() {
|
|
9296
|
+
return { path: this.path.map((t2) => ({ ...t2 })), siblingStacks: this.siblingStacks.map((t2) => new Map(t2)) };
|
|
9297
|
+
}
|
|
9298
|
+
restore(t2) {
|
|
9299
|
+
this.path = t2.path.map((t3) => ({ ...t3 })), this.siblingStacks = t2.siblingStacks.map((t3) => new Map(t3));
|
|
9300
|
+
}
|
|
9301
|
+
}
|
|
9133
9302
|
|
|
9134
|
-
class
|
|
9303
|
+
class G {
|
|
9304
|
+
constructor(t2, e2 = {}) {
|
|
9305
|
+
this.pattern = t2, this.separator = e2.separator || ".", this.segments = this._parse(t2), this._hasDeepWildcard = this.segments.some((t3) => t3.type === "deep-wildcard"), this._hasAttributeCondition = this.segments.some((t3) => t3.attrName !== undefined), this._hasPositionSelector = this.segments.some((t3) => t3.position !== undefined);
|
|
9306
|
+
}
|
|
9307
|
+
_parse(t2) {
|
|
9308
|
+
const e2 = [];
|
|
9309
|
+
let i2 = 0, n2 = "";
|
|
9310
|
+
for (;i2 < t2.length; )
|
|
9311
|
+
t2[i2] === this.separator ? i2 + 1 < t2.length && t2[i2 + 1] === this.separator ? (n2.trim() && (e2.push(this._parseSegment(n2.trim())), n2 = ""), e2.push({ type: "deep-wildcard" }), i2 += 2) : (n2.trim() && e2.push(this._parseSegment(n2.trim())), n2 = "", i2++) : (n2 += t2[i2], i2++);
|
|
9312
|
+
return n2.trim() && e2.push(this._parseSegment(n2.trim())), e2;
|
|
9313
|
+
}
|
|
9314
|
+
_parseSegment(t2) {
|
|
9315
|
+
const e2 = { type: "tag" };
|
|
9316
|
+
let i2 = null, n2 = t2;
|
|
9317
|
+
const s2 = t2.match(/^([^\[]+)(\[[^\]]*\])(.*)$/);
|
|
9318
|
+
if (s2 && (n2 = s2[1] + s2[3], s2[2])) {
|
|
9319
|
+
const t3 = s2[2].slice(1, -1);
|
|
9320
|
+
t3 && (i2 = t3);
|
|
9321
|
+
}
|
|
9322
|
+
let r2, o2, a2 = n2;
|
|
9323
|
+
if (n2.includes("::")) {
|
|
9324
|
+
const e3 = n2.indexOf("::");
|
|
9325
|
+
if (r2 = n2.substring(0, e3).trim(), a2 = n2.substring(e3 + 2).trim(), !r2)
|
|
9326
|
+
throw new Error(`Invalid namespace in pattern: ${t2}`);
|
|
9327
|
+
}
|
|
9328
|
+
let h2 = null;
|
|
9329
|
+
if (a2.includes(":")) {
|
|
9330
|
+
const t3 = a2.lastIndexOf(":"), e3 = a2.substring(0, t3).trim(), i3 = a2.substring(t3 + 1).trim();
|
|
9331
|
+
["first", "last", "odd", "even"].includes(i3) || /^nth\(\d+\)$/.test(i3) ? (o2 = e3, h2 = i3) : o2 = a2;
|
|
9332
|
+
} else
|
|
9333
|
+
o2 = a2;
|
|
9334
|
+
if (!o2)
|
|
9335
|
+
throw new Error(`Invalid segment pattern: ${t2}`);
|
|
9336
|
+
if (e2.tag = o2, r2 && (e2.namespace = r2), i2)
|
|
9337
|
+
if (i2.includes("=")) {
|
|
9338
|
+
const t3 = i2.indexOf("=");
|
|
9339
|
+
e2.attrName = i2.substring(0, t3).trim(), e2.attrValue = i2.substring(t3 + 1).trim();
|
|
9340
|
+
} else
|
|
9341
|
+
e2.attrName = i2.trim();
|
|
9342
|
+
if (h2) {
|
|
9343
|
+
const t3 = h2.match(/^nth\((\d+)\)$/);
|
|
9344
|
+
t3 ? (e2.position = "nth", e2.positionValue = parseInt(t3[1], 10)) : e2.position = h2;
|
|
9345
|
+
}
|
|
9346
|
+
return e2;
|
|
9347
|
+
}
|
|
9348
|
+
get length() {
|
|
9349
|
+
return this.segments.length;
|
|
9350
|
+
}
|
|
9351
|
+
hasDeepWildcard() {
|
|
9352
|
+
return this._hasDeepWildcard;
|
|
9353
|
+
}
|
|
9354
|
+
hasAttributeCondition() {
|
|
9355
|
+
return this._hasAttributeCondition;
|
|
9356
|
+
}
|
|
9357
|
+
hasPositionSelector() {
|
|
9358
|
+
return this._hasPositionSelector;
|
|
9359
|
+
}
|
|
9360
|
+
toString() {
|
|
9361
|
+
return this.pattern;
|
|
9362
|
+
}
|
|
9363
|
+
}
|
|
9364
|
+
function R(t2, e2) {
|
|
9365
|
+
if (!t2)
|
|
9366
|
+
return {};
|
|
9367
|
+
const i2 = e2.attributesGroupName ? t2[e2.attributesGroupName] : t2;
|
|
9368
|
+
if (!i2)
|
|
9369
|
+
return {};
|
|
9370
|
+
const n2 = {};
|
|
9371
|
+
for (const t3 in i2)
|
|
9372
|
+
t3.startsWith(e2.attributeNamePrefix) ? n2[t3.substring(e2.attributeNamePrefix.length)] = i2[t3] : n2[t3] = i2[t3];
|
|
9373
|
+
return n2;
|
|
9374
|
+
}
|
|
9375
|
+
function U(t2) {
|
|
9376
|
+
if (!t2 || typeof t2 != "string")
|
|
9377
|
+
return;
|
|
9378
|
+
const e2 = t2.indexOf(":");
|
|
9379
|
+
if (e2 !== -1 && e2 > 0) {
|
|
9380
|
+
const i2 = t2.substring(0, e2);
|
|
9381
|
+
if (i2 !== "xmlns")
|
|
9382
|
+
return i2;
|
|
9383
|
+
}
|
|
9384
|
+
}
|
|
9385
|
+
|
|
9386
|
+
class B {
|
|
9135
9387
|
constructor(t2) {
|
|
9136
9388
|
var e2;
|
|
9137
|
-
if (this.options = t2, 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: "¢" }, pound: { regex: /&(pound|#163);/g, val: "£" }, yen: { regex: /&(yen|#165);/g, val: "¥" }, euro: { regex: /&(euro|#8364);/g, val: "€" }, copyright: { regex: /&(copy|#169);/g, val: "©" }, reg: { regex: /&(reg|#174);/g, val: "®" }, inr: { regex: /&(inr|#8377);/g, val: "₹" }, num_dec: { regex: /&#([0-9]{1,7});/g, val: (t3, e3) =>
|
|
9138
|
-
for (const
|
|
9139
|
-
if (typeof
|
|
9389
|
+
if (this.options = t2, 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: "¢" }, pound: { regex: /&(pound|#163);/g, val: "£" }, yen: { regex: /&(yen|#165);/g, val: "¥" }, euro: { regex: /&(euro|#8364);/g, val: "€" }, copyright: { regex: /&(copy|#169);/g, val: "©" }, reg: { regex: /&(reg|#174);/g, val: "®" }, inr: { regex: /&(inr|#8377);/g, val: "₹" }, num_dec: { regex: /&#([0-9]{1,7});/g, val: (t3, e3) => st(e3, 10, "&#") }, num_hex: { regex: /&#x([0-9a-fA-F]{1,6});/g, val: (t3, e3) => st(e3, 16, "&#x") } }, this.addExternalEntities = W, this.parseXml = Z, this.parseTextData = Y, this.resolveNameSpace = X, this.buildAttributesMap = q, this.isItStopNode = H, this.replaceEntitiesValue = K, this.readStopNodeData = it, this.saveTextToParentTag = Q, this.addChild = J, this.ignoreAttributesFn = typeof (e2 = this.options.ignoreAttributes) == "function" ? e2 : Array.isArray(e2) ? (t3) => {
|
|
9390
|
+
for (const i2 of e2) {
|
|
9391
|
+
if (typeof i2 == "string" && t3 === i2)
|
|
9140
9392
|
return true;
|
|
9141
|
-
if (
|
|
9393
|
+
if (i2 instanceof RegExp && i2.test(t3))
|
|
9142
9394
|
return true;
|
|
9143
9395
|
}
|
|
9144
|
-
} : () => false, this.entityExpansionCount = 0, this.currentExpandedLength = 0, this.options.stopNodes && this.options.stopNodes.length > 0) {
|
|
9145
|
-
this.
|
|
9396
|
+
} : () => false, this.entityExpansionCount = 0, this.currentExpandedLength = 0, this.matcher = new M, this.isCurrentNodeStopNode = false, this.options.stopNodes && this.options.stopNodes.length > 0) {
|
|
9397
|
+
this.stopNodeExpressions = [];
|
|
9146
9398
|
for (let t3 = 0;t3 < this.options.stopNodes.length; t3++) {
|
|
9147
9399
|
const e3 = this.options.stopNodes[t3];
|
|
9148
|
-
typeof e3 == "string"
|
|
9400
|
+
typeof e3 == "string" ? this.stopNodeExpressions.push(new G(e3)) : e3 instanceof G && this.stopNodeExpressions.push(e3);
|
|
9149
9401
|
}
|
|
9150
9402
|
}
|
|
9151
9403
|
}
|
|
9152
9404
|
}
|
|
9153
|
-
function
|
|
9405
|
+
function W(t2) {
|
|
9154
9406
|
const e2 = Object.keys(t2);
|
|
9155
|
-
for (let
|
|
9156
|
-
const
|
|
9157
|
-
this.lastEntities[
|
|
9407
|
+
for (let i2 = 0;i2 < e2.length; i2++) {
|
|
9408
|
+
const n2 = e2[i2], s2 = n2.replace(/[.\-+*:]/g, "\\.");
|
|
9409
|
+
this.lastEntities[n2] = { regex: new RegExp("&" + s2 + ";", "g"), val: t2[n2] };
|
|
9158
9410
|
}
|
|
9159
9411
|
}
|
|
9160
|
-
function
|
|
9161
|
-
if (t2 !== undefined && (this.options.trimValues && !
|
|
9162
|
-
o2 || (t2 = this.replaceEntitiesValue(t2, e2,
|
|
9163
|
-
const
|
|
9164
|
-
return
|
|
9412
|
+
function Y(t2, e2, i2, n2, s2, r2, o2) {
|
|
9413
|
+
if (t2 !== undefined && (this.options.trimValues && !n2 && (t2 = t2.trim()), t2.length > 0)) {
|
|
9414
|
+
o2 || (t2 = this.replaceEntitiesValue(t2, e2, i2));
|
|
9415
|
+
const n3 = this.options.jPath ? i2.toString() : i2, a2 = this.options.tagValueProcessor(e2, t2, n3, s2, r2);
|
|
9416
|
+
return a2 == null ? t2 : typeof a2 != typeof t2 || a2 !== t2 ? a2 : this.options.trimValues || t2.trim() === t2 ? nt(t2, this.options.parseTagValue, this.options.numberParseOptions) : t2;
|
|
9165
9417
|
}
|
|
9166
9418
|
}
|
|
9167
|
-
function
|
|
9419
|
+
function X(t2) {
|
|
9168
9420
|
if (this.options.removeNSPrefix) {
|
|
9169
|
-
const e2 = t2.split(":"),
|
|
9421
|
+
const e2 = t2.split(":"), i2 = t2.charAt(0) === "/" ? "/" : "";
|
|
9170
9422
|
if (e2[0] === "xmlns")
|
|
9171
9423
|
return "";
|
|
9172
|
-
e2.length === 2 && (t2 =
|
|
9424
|
+
e2.length === 2 && (t2 = i2 + e2[1]);
|
|
9173
9425
|
}
|
|
9174
9426
|
return t2;
|
|
9175
9427
|
}
|
|
9176
|
-
const
|
|
9177
|
-
function
|
|
9428
|
+
const z2 = new RegExp(`([^\\s=]+)\\s*(=\\s*(['"])([\\s\\S]*?)\\3)?`, "gm");
|
|
9429
|
+
function q(t2, e2, i2) {
|
|
9178
9430
|
if (this.options.ignoreAttributes !== true && typeof t2 == "string") {
|
|
9179
|
-
const
|
|
9431
|
+
const n2 = s(t2, z2), r2 = n2.length, o2 = {}, a2 = {};
|
|
9432
|
+
for (let t3 = 0;t3 < r2; t3++) {
|
|
9433
|
+
const s2 = this.resolveNameSpace(n2[t3][1]), r3 = n2[t3][4];
|
|
9434
|
+
if (s2.length && r3 !== undefined) {
|
|
9435
|
+
let t4 = r3;
|
|
9436
|
+
this.options.trimValues && (t4 = t4.trim()), t4 = this.replaceEntitiesValue(t4, i2, e2), a2[s2] = t4;
|
|
9437
|
+
}
|
|
9438
|
+
}
|
|
9439
|
+
Object.keys(a2).length > 0 && typeof e2 == "object" && e2.updateCurrent && e2.updateCurrent(a2);
|
|
9180
9440
|
for (let t3 = 0;t3 < r2; t3++) {
|
|
9181
|
-
const s2 = this.resolveNameSpace(
|
|
9182
|
-
if (this.ignoreAttributesFn(s2,
|
|
9441
|
+
const s2 = this.resolveNameSpace(n2[t3][1]), r3 = this.options.jPath ? e2.toString() : e2;
|
|
9442
|
+
if (this.ignoreAttributesFn(s2, r3))
|
|
9183
9443
|
continue;
|
|
9184
|
-
let
|
|
9444
|
+
let a3 = n2[t3][4], h2 = this.options.attributeNamePrefix + s2;
|
|
9185
9445
|
if (s2.length)
|
|
9186
|
-
if (this.options.transformAttributeName && (
|
|
9187
|
-
this.options.trimValues && (
|
|
9188
|
-
const t4 = this.options.attributeValueProcessor(s2,
|
|
9189
|
-
o2[
|
|
9446
|
+
if (this.options.transformAttributeName && (h2 = this.options.transformAttributeName(h2)), h2 = ot(h2, this.options), a3 !== undefined) {
|
|
9447
|
+
this.options.trimValues && (a3 = a3.trim()), a3 = this.replaceEntitiesValue(a3, i2, e2);
|
|
9448
|
+
const t4 = this.options.jPath ? e2.toString() : e2, n3 = this.options.attributeValueProcessor(s2, a3, t4);
|
|
9449
|
+
o2[h2] = n3 == null ? a3 : typeof n3 != typeof a3 || n3 !== a3 ? n3 : nt(a3, this.options.parseAttributeValue, this.options.numberParseOptions);
|
|
9190
9450
|
} else
|
|
9191
|
-
this.options.allowBooleanAttributes && (o2[
|
|
9451
|
+
this.options.allowBooleanAttributes && (o2[h2] = true);
|
|
9192
9452
|
}
|
|
9193
9453
|
if (!Object.keys(o2).length)
|
|
9194
9454
|
return;
|
|
@@ -9199,227 +9459,239 @@ var require_fxp = __commonJS((exports, module) => {
|
|
|
9199
9459
|
return o2;
|
|
9200
9460
|
}
|
|
9201
9461
|
}
|
|
9202
|
-
const
|
|
9462
|
+
const Z = function(t2) {
|
|
9203
9463
|
t2 = t2.replace(/\r\n?/g, `
|
|
9204
9464
|
`);
|
|
9205
|
-
const e2 = new
|
|
9206
|
-
let
|
|
9207
|
-
this.entityExpansionCount = 0, this.currentExpandedLength = 0;
|
|
9208
|
-
const
|
|
9209
|
-
for (let
|
|
9210
|
-
if (t2[
|
|
9211
|
-
if (t2[
|
|
9212
|
-
const e3 =
|
|
9213
|
-
let
|
|
9465
|
+
const e2 = new $("!xml");
|
|
9466
|
+
let i2 = e2, n2 = "";
|
|
9467
|
+
this.matcher.reset(), this.entityExpansionCount = 0, this.currentExpandedLength = 0;
|
|
9468
|
+
const s2 = new I(this.options.processEntities);
|
|
9469
|
+
for (let r2 = 0;r2 < t2.length; r2++)
|
|
9470
|
+
if (t2[r2] === "<")
|
|
9471
|
+
if (t2[r2 + 1] === "/") {
|
|
9472
|
+
const e3 = tt(t2, ">", r2, "Closing Tag is not closed.");
|
|
9473
|
+
let s3 = t2.substring(r2 + 2, e3).trim();
|
|
9214
9474
|
if (this.options.removeNSPrefix) {
|
|
9215
|
-
const t3 =
|
|
9216
|
-
t3 !== -1 && (
|
|
9475
|
+
const t3 = s3.indexOf(":");
|
|
9476
|
+
t3 !== -1 && (s3 = s3.substr(t3 + 1));
|
|
9217
9477
|
}
|
|
9218
|
-
this.options.transformTagName
|
|
9219
|
-
const
|
|
9220
|
-
if (
|
|
9221
|
-
throw new Error(`Unpaired tag can not be used as closing tag: </${
|
|
9222
|
-
|
|
9223
|
-
|
|
9224
|
-
|
|
9225
|
-
let e3 = W(t2, o2, false, "?>");
|
|
9478
|
+
s3 = rt(this.options.transformTagName, s3, "", this.options).tagName, i2 && (n2 = this.saveTextToParentTag(n2, i2, this.matcher));
|
|
9479
|
+
const o2 = this.matcher.getCurrentTag();
|
|
9480
|
+
if (s3 && this.options.unpairedTags.indexOf(s3) !== -1)
|
|
9481
|
+
throw new Error(`Unpaired tag can not be used as closing tag: </${s3}>`);
|
|
9482
|
+
o2 && this.options.unpairedTags.indexOf(o2) !== -1 && (this.matcher.pop(), this.tagsNodeStack.pop()), this.matcher.pop(), this.isCurrentNodeStopNode = false, i2 = this.tagsNodeStack.pop(), n2 = "", r2 = e3;
|
|
9483
|
+
} else if (t2[r2 + 1] === "?") {
|
|
9484
|
+
let e3 = et(t2, r2, false, "?>");
|
|
9226
9485
|
if (!e3)
|
|
9227
9486
|
throw new Error("Pi Tag is not closed.");
|
|
9228
|
-
if (
|
|
9487
|
+
if (n2 = this.saveTextToParentTag(n2, i2, this.matcher), this.options.ignoreDeclaration && e3.tagName === "?xml" || this.options.ignorePiTags)
|
|
9229
9488
|
;
|
|
9230
9489
|
else {
|
|
9231
|
-
const t3 = new
|
|
9232
|
-
t3.add(this.options.textNodeName, ""), e3.tagName !== e3.tagExp && e3.attrExpPresent && (t3[":@"] = this.buildAttributesMap(e3.tagExp,
|
|
9490
|
+
const t3 = new $(e3.tagName);
|
|
9491
|
+
t3.add(this.options.textNodeName, ""), e3.tagName !== e3.tagExp && e3.attrExpPresent && (t3[":@"] = this.buildAttributesMap(e3.tagExp, this.matcher, e3.tagName)), this.addChild(i2, t3, this.matcher, r2);
|
|
9233
9492
|
}
|
|
9234
|
-
|
|
9235
|
-
} else if (t2.substr(
|
|
9236
|
-
const e3 =
|
|
9493
|
+
r2 = e3.closeIndex + 1;
|
|
9494
|
+
} else if (t2.substr(r2 + 1, 3) === "!--") {
|
|
9495
|
+
const e3 = tt(t2, "-->", r2 + 4, "Comment is not closed.");
|
|
9237
9496
|
if (this.options.commentPropName) {
|
|
9238
|
-
const
|
|
9239
|
-
|
|
9497
|
+
const s3 = t2.substring(r2 + 4, e3 - 2);
|
|
9498
|
+
n2 = this.saveTextToParentTag(n2, i2, this.matcher), i2.add(this.options.commentPropName, [{ [this.options.textNodeName]: s3 }]);
|
|
9240
9499
|
}
|
|
9241
|
-
|
|
9242
|
-
} else if (t2.substr(
|
|
9243
|
-
const e3 =
|
|
9244
|
-
this.docTypeEntities = e3.entities,
|
|
9245
|
-
} else if (t2.substr(
|
|
9246
|
-
const e3 =
|
|
9247
|
-
|
|
9248
|
-
let
|
|
9249
|
-
|
|
9500
|
+
r2 = e3;
|
|
9501
|
+
} else if (t2.substr(r2 + 1, 2) === "!D") {
|
|
9502
|
+
const e3 = s2.readDocType(t2, r2);
|
|
9503
|
+
this.docTypeEntities = e3.entities, r2 = e3.i;
|
|
9504
|
+
} else if (t2.substr(r2 + 1, 2) === "![") {
|
|
9505
|
+
const e3 = tt(t2, "]]>", r2, "CDATA is not closed.") - 2, s3 = t2.substring(r2 + 9, e3);
|
|
9506
|
+
n2 = this.saveTextToParentTag(n2, i2, this.matcher);
|
|
9507
|
+
let o2 = this.parseTextData(s3, i2.tagname, this.matcher, true, false, true, true);
|
|
9508
|
+
o2 == null && (o2 = ""), this.options.cdataPropName ? i2.add(this.options.cdataPropName, [{ [this.options.textNodeName]: s3 }]) : i2.add(this.options.textNodeName, o2), r2 = e3 + 2;
|
|
9250
9509
|
} else {
|
|
9251
|
-
let
|
|
9252
|
-
|
|
9253
|
-
|
|
9254
|
-
|
|
9255
|
-
const t3 = this.options.transformTagName(a2);
|
|
9256
|
-
u2 === a2 && (u2 = t3), a2 = t3;
|
|
9510
|
+
let s3 = et(t2, r2, this.options.removeNSPrefix);
|
|
9511
|
+
if (!s3) {
|
|
9512
|
+
const e3 = t2.substring(Math.max(0, r2 - 50), Math.min(t2.length, r2 + 50));
|
|
9513
|
+
throw new Error(`readTagExp returned undefined at position ${r2}. Context: "${e3}"`);
|
|
9257
9514
|
}
|
|
9258
|
-
|
|
9259
|
-
|
|
9260
|
-
|
|
9261
|
-
|
|
9262
|
-
|
|
9263
|
-
|
|
9264
|
-
|
|
9515
|
+
let o2 = s3.tagName;
|
|
9516
|
+
const a2 = s3.rawTagName;
|
|
9517
|
+
let { tagExp: h2, attrExpPresent: l2, closeIndex: p2 } = s3;
|
|
9518
|
+
if ({ tagName: o2, tagExp: h2 } = rt(this.options.transformTagName, o2, h2, this.options), this.options.strictReservedNames && (o2 === this.options.commentPropName || o2 === this.options.cdataPropName))
|
|
9519
|
+
throw new Error(`Invalid tag name: ${o2}`);
|
|
9520
|
+
i2 && n2 && i2.tagname !== "!xml" && (n2 = this.saveTextToParentTag(n2, i2, this.matcher, false));
|
|
9521
|
+
const u2 = i2;
|
|
9522
|
+
u2 && this.options.unpairedTags.indexOf(u2.tagname) !== -1 && (i2 = this.tagsNodeStack.pop(), this.matcher.pop());
|
|
9523
|
+
let c2 = false;
|
|
9524
|
+
h2.length > 0 && h2.lastIndexOf("/") === h2.length - 1 && (c2 = true, o2[o2.length - 1] === "/" ? (o2 = o2.substr(0, o2.length - 1), h2 = o2) : h2 = h2.substr(0, h2.length - 1), l2 = o2 !== h2);
|
|
9525
|
+
let d2, f2 = null, g2 = {};
|
|
9526
|
+
d2 = U(a2), o2 !== e2.tagname && this.matcher.push(o2, {}, d2), o2 !== h2 && l2 && (f2 = this.buildAttributesMap(h2, this.matcher, o2), f2 && (g2 = R(f2, this.options))), o2 !== e2.tagname && (this.isCurrentNodeStopNode = this.isItStopNode(this.stopNodeExpressions, this.matcher));
|
|
9527
|
+
const m2 = r2;
|
|
9528
|
+
if (this.isCurrentNodeStopNode) {
|
|
9265
9529
|
let e3 = "";
|
|
9266
|
-
if (
|
|
9267
|
-
|
|
9268
|
-
else if (this.options.unpairedTags.indexOf(
|
|
9269
|
-
|
|
9530
|
+
if (c2)
|
|
9531
|
+
r2 = s3.closeIndex;
|
|
9532
|
+
else if (this.options.unpairedTags.indexOf(o2) !== -1)
|
|
9533
|
+
r2 = s3.closeIndex;
|
|
9270
9534
|
else {
|
|
9271
|
-
const
|
|
9272
|
-
if (!
|
|
9273
|
-
throw new Error(`Unexpected end of ${
|
|
9274
|
-
|
|
9535
|
+
const i3 = this.readStopNodeData(t2, a2, p2 + 1);
|
|
9536
|
+
if (!i3)
|
|
9537
|
+
throw new Error(`Unexpected end of ${a2}`);
|
|
9538
|
+
r2 = i3.i, e3 = i3.tagContent;
|
|
9275
9539
|
}
|
|
9276
|
-
const
|
|
9277
|
-
|
|
9540
|
+
const n3 = new $(o2);
|
|
9541
|
+
f2 && (n3[":@"] = f2), n3.add(this.options.textNodeName, e3), this.matcher.pop(), this.isCurrentNodeStopNode = false, this.addChild(i2, n3, this.matcher, m2);
|
|
9278
9542
|
} else {
|
|
9279
|
-
if (
|
|
9280
|
-
|
|
9281
|
-
|
|
9282
|
-
|
|
9283
|
-
}
|
|
9284
|
-
const t3 = new I(a2);
|
|
9285
|
-
a2 !== u2 && d2 && (t3[":@"] = this.buildAttributesMap(u2, s2, a2)), this.addChild(n2, t3, s2, c2), s2 = s2.substr(0, s2.lastIndexOf("."));
|
|
9543
|
+
if (c2) {
|
|
9544
|
+
({ tagName: o2, tagExp: h2 } = rt(this.options.transformTagName, o2, h2, this.options));
|
|
9545
|
+
const t3 = new $(o2);
|
|
9546
|
+
f2 && (t3[":@"] = f2), this.addChild(i2, t3, this.matcher, m2), this.matcher.pop(), this.isCurrentNodeStopNode = false;
|
|
9286
9547
|
} else {
|
|
9287
|
-
if (this.options.unpairedTags.indexOf(
|
|
9288
|
-
const t3 = new
|
|
9289
|
-
|
|
9548
|
+
if (this.options.unpairedTags.indexOf(o2) !== -1) {
|
|
9549
|
+
const t3 = new $(o2);
|
|
9550
|
+
f2 && (t3[":@"] = f2), this.addChild(i2, t3, this.matcher, m2), this.matcher.pop(), this.isCurrentNodeStopNode = false, r2 = s3.closeIndex;
|
|
9290
9551
|
continue;
|
|
9291
9552
|
}
|
|
9292
9553
|
{
|
|
9293
|
-
const t3 = new
|
|
9554
|
+
const t3 = new $(o2);
|
|
9294
9555
|
if (this.tagsNodeStack.length > this.options.maxNestedTags)
|
|
9295
9556
|
throw new Error("Maximum nested tags exceeded");
|
|
9296
|
-
this.tagsNodeStack.push(
|
|
9557
|
+
this.tagsNodeStack.push(i2), f2 && (t3[":@"] = f2), this.addChild(i2, t3, this.matcher, m2), i2 = t3;
|
|
9297
9558
|
}
|
|
9298
9559
|
}
|
|
9299
|
-
|
|
9560
|
+
n2 = "", r2 = p2;
|
|
9300
9561
|
}
|
|
9301
9562
|
}
|
|
9302
9563
|
else
|
|
9303
|
-
|
|
9564
|
+
n2 += t2[r2];
|
|
9304
9565
|
return e2.child;
|
|
9305
9566
|
};
|
|
9306
|
-
function
|
|
9307
|
-
this.options.captureMetaData || (
|
|
9308
|
-
const s2 = this.options.updateTag(e2.tagname,
|
|
9309
|
-
|
|
9567
|
+
function J(t2, e2, i2, n2) {
|
|
9568
|
+
this.options.captureMetaData || (n2 = undefined);
|
|
9569
|
+
const s2 = this.options.jPath ? i2.toString() : i2, r2 = this.options.updateTag(e2.tagname, s2, e2[":@"]);
|
|
9570
|
+
r2 === false || (typeof r2 == "string" ? (e2.tagname = r2, t2.addChild(e2, n2)) : t2.addChild(e2, n2));
|
|
9310
9571
|
}
|
|
9311
|
-
|
|
9312
|
-
|
|
9313
|
-
|
|
9314
|
-
const i2 = this.options.processEntities;
|
|
9315
|
-
if (!i2.enabled)
|
|
9316
|
-
return t2;
|
|
9317
|
-
if (i2.allowedTags && !i2.allowedTags.includes(e2))
|
|
9572
|
+
function K(t2, e2, i2) {
|
|
9573
|
+
const n2 = this.options.processEntities;
|
|
9574
|
+
if (!n2 || !n2.enabled)
|
|
9318
9575
|
return t2;
|
|
9319
|
-
if (
|
|
9320
|
-
|
|
9321
|
-
|
|
9322
|
-
|
|
9576
|
+
if (n2.allowedTags) {
|
|
9577
|
+
const s2 = this.options.jPath ? i2.toString() : i2;
|
|
9578
|
+
if (!(Array.isArray(n2.allowedTags) ? n2.allowedTags.includes(e2) : n2.allowedTags(e2, s2)))
|
|
9579
|
+
return t2;
|
|
9580
|
+
}
|
|
9581
|
+
if (n2.tagFilter) {
|
|
9582
|
+
const s2 = this.options.jPath ? i2.toString() : i2;
|
|
9583
|
+
if (!n2.tagFilter(e2, s2))
|
|
9584
|
+
return t2;
|
|
9585
|
+
}
|
|
9586
|
+
for (const e3 of Object.keys(this.docTypeEntities)) {
|
|
9587
|
+
const i3 = this.docTypeEntities[e3], s2 = t2.match(i3.regx);
|
|
9323
9588
|
if (s2) {
|
|
9324
|
-
if (this.entityExpansionCount += s2.length,
|
|
9325
|
-
throw new Error(`Entity expansion limit exceeded: ${this.entityExpansionCount} > ${
|
|
9589
|
+
if (this.entityExpansionCount += s2.length, n2.maxTotalExpansions && this.entityExpansionCount > n2.maxTotalExpansions)
|
|
9590
|
+
throw new Error(`Entity expansion limit exceeded: ${this.entityExpansionCount} > ${n2.maxTotalExpansions}`);
|
|
9326
9591
|
const e4 = t2.length;
|
|
9327
|
-
if (t2 = t2.replace(
|
|
9328
|
-
throw new Error(`Total expanded content size exceeded: ${this.currentExpandedLength} > ${
|
|
9592
|
+
if (t2 = t2.replace(i3.regx, i3.val), n2.maxExpandedLength && (this.currentExpandedLength += t2.length - e4, this.currentExpandedLength > n2.maxExpandedLength))
|
|
9593
|
+
throw new Error(`Total expanded content size exceeded: ${this.currentExpandedLength} > ${n2.maxExpandedLength}`);
|
|
9329
9594
|
}
|
|
9330
9595
|
}
|
|
9331
|
-
|
|
9332
|
-
|
|
9333
|
-
|
|
9334
|
-
|
|
9335
|
-
t2 = t2.replace(
|
|
9596
|
+
for (const e3 of Object.keys(this.lastEntities)) {
|
|
9597
|
+
const i3 = this.lastEntities[e3], s2 = t2.match(i3.regex);
|
|
9598
|
+
if (s2 && (this.entityExpansionCount += s2.length, n2.maxTotalExpansions && this.entityExpansionCount > n2.maxTotalExpansions))
|
|
9599
|
+
throw new Error(`Entity expansion limit exceeded: ${this.entityExpansionCount} > ${n2.maxTotalExpansions}`);
|
|
9600
|
+
t2 = t2.replace(i3.regex, i3.val);
|
|
9336
9601
|
}
|
|
9337
9602
|
if (t2.indexOf("&") === -1)
|
|
9338
9603
|
return t2;
|
|
9339
9604
|
if (this.options.htmlEntities)
|
|
9340
|
-
for (
|
|
9341
|
-
const
|
|
9342
|
-
|
|
9605
|
+
for (const e3 of Object.keys(this.htmlEntities)) {
|
|
9606
|
+
const i3 = this.htmlEntities[e3], s2 = t2.match(i3.regex);
|
|
9607
|
+
if (s2 && (this.entityExpansionCount += s2.length, n2.maxTotalExpansions && this.entityExpansionCount > n2.maxTotalExpansions))
|
|
9608
|
+
throw new Error(`Entity expansion limit exceeded: ${this.entityExpansionCount} > ${n2.maxTotalExpansions}`);
|
|
9609
|
+
t2 = t2.replace(i3.regex, i3.val);
|
|
9343
9610
|
}
|
|
9344
9611
|
return t2.replace(this.ampEntity.regex, this.ampEntity.val);
|
|
9345
|
-
};
|
|
9346
|
-
function G(t2, e2, n2, i2) {
|
|
9347
|
-
return t2 && (i2 === undefined && (i2 = e2.child.length === 0), (t2 = this.parseTextData(t2, e2.tagname, n2, false, !!e2[":@"] && Object.keys(e2[":@"]).length !== 0, i2)) !== undefined && t2 !== "" && e2.add(this.options.textNodeName, t2), t2 = ""), t2;
|
|
9348
9612
|
}
|
|
9349
|
-
function
|
|
9350
|
-
return
|
|
9613
|
+
function Q(t2, e2, i2, n2) {
|
|
9614
|
+
return t2 && (n2 === undefined && (n2 = e2.child.length === 0), (t2 = this.parseTextData(t2, e2.tagname, i2, false, !!e2[":@"] && Object.keys(e2[":@"]).length !== 0, n2)) !== undefined && t2 !== "" && e2.add(this.options.textNodeName, t2), t2 = ""), t2;
|
|
9351
9615
|
}
|
|
9352
|
-
function
|
|
9353
|
-
|
|
9616
|
+
function H(t2, e2) {
|
|
9617
|
+
if (!t2 || t2.length === 0)
|
|
9618
|
+
return false;
|
|
9619
|
+
for (let i2 = 0;i2 < t2.length; i2++)
|
|
9620
|
+
if (e2.matches(t2[i2]))
|
|
9621
|
+
return true;
|
|
9622
|
+
return false;
|
|
9623
|
+
}
|
|
9624
|
+
function tt(t2, e2, i2, n2) {
|
|
9625
|
+
const s2 = t2.indexOf(e2, i2);
|
|
9354
9626
|
if (s2 === -1)
|
|
9355
|
-
throw new Error(
|
|
9627
|
+
throw new Error(n2);
|
|
9356
9628
|
return s2 + e2.length - 1;
|
|
9357
9629
|
}
|
|
9358
|
-
function
|
|
9359
|
-
const s2 = function(t3, e3,
|
|
9360
|
-
let
|
|
9630
|
+
function et(t2, e2, i2, n2 = ">") {
|
|
9631
|
+
const s2 = function(t3, e3, i3 = ">") {
|
|
9632
|
+
let n3, s3 = "";
|
|
9361
9633
|
for (let r3 = e3;r3 < t3.length; r3++) {
|
|
9362
9634
|
let e4 = t3[r3];
|
|
9363
|
-
if (
|
|
9364
|
-
e4 ===
|
|
9635
|
+
if (n3)
|
|
9636
|
+
e4 === n3 && (n3 = "");
|
|
9365
9637
|
else if (e4 === '"' || e4 === "'")
|
|
9366
|
-
|
|
9367
|
-
else if (e4 ===
|
|
9368
|
-
if (!
|
|
9638
|
+
n3 = e4;
|
|
9639
|
+
else if (e4 === i3[0]) {
|
|
9640
|
+
if (!i3[1])
|
|
9369
9641
|
return { data: s3, index: r3 };
|
|
9370
|
-
if (t3[r3 + 1] ===
|
|
9642
|
+
if (t3[r3 + 1] === i3[1])
|
|
9371
9643
|
return { data: s3, index: r3 };
|
|
9372
9644
|
} else
|
|
9373
9645
|
e4 === "\t" && (e4 = " ");
|
|
9374
9646
|
s3 += e4;
|
|
9375
9647
|
}
|
|
9376
|
-
}(t2, e2 + 1,
|
|
9648
|
+
}(t2, e2 + 1, n2);
|
|
9377
9649
|
if (!s2)
|
|
9378
9650
|
return;
|
|
9379
9651
|
let r2 = s2.data;
|
|
9380
9652
|
const o2 = s2.index, a2 = r2.search(/\s/);
|
|
9381
|
-
let
|
|
9382
|
-
a2 !== -1 && (
|
|
9383
|
-
const
|
|
9384
|
-
if (
|
|
9385
|
-
const t3 =
|
|
9386
|
-
t3 !== -1 && (
|
|
9653
|
+
let h2 = r2, l2 = true;
|
|
9654
|
+
a2 !== -1 && (h2 = r2.substring(0, a2), r2 = r2.substring(a2 + 1).trimStart());
|
|
9655
|
+
const p2 = h2;
|
|
9656
|
+
if (i2) {
|
|
9657
|
+
const t3 = h2.indexOf(":");
|
|
9658
|
+
t3 !== -1 && (h2 = h2.substr(t3 + 1), l2 = h2 !== s2.data.substr(t3 + 1));
|
|
9387
9659
|
}
|
|
9388
|
-
return { tagName:
|
|
9660
|
+
return { tagName: h2, tagExp: r2, closeIndex: o2, attrExpPresent: l2, rawTagName: p2 };
|
|
9389
9661
|
}
|
|
9390
|
-
function
|
|
9391
|
-
const
|
|
9662
|
+
function it(t2, e2, i2) {
|
|
9663
|
+
const n2 = i2;
|
|
9392
9664
|
let s2 = 1;
|
|
9393
|
-
for (;
|
|
9394
|
-
if (t2[
|
|
9395
|
-
if (t2[
|
|
9396
|
-
const r2 =
|
|
9397
|
-
if (t2.substring(
|
|
9398
|
-
return { tagContent: t2.substring(
|
|
9399
|
-
|
|
9400
|
-
} else if (t2[
|
|
9401
|
-
|
|
9402
|
-
else if (t2.substr(
|
|
9403
|
-
|
|
9404
|
-
else if (t2.substr(
|
|
9405
|
-
|
|
9665
|
+
for (;i2 < t2.length; i2++)
|
|
9666
|
+
if (t2[i2] === "<")
|
|
9667
|
+
if (t2[i2 + 1] === "/") {
|
|
9668
|
+
const r2 = tt(t2, ">", i2, `${e2} is not closed`);
|
|
9669
|
+
if (t2.substring(i2 + 2, r2).trim() === e2 && (s2--, s2 === 0))
|
|
9670
|
+
return { tagContent: t2.substring(n2, i2), i: r2 };
|
|
9671
|
+
i2 = r2;
|
|
9672
|
+
} else if (t2[i2 + 1] === "?")
|
|
9673
|
+
i2 = tt(t2, "?>", i2 + 1, "StopNode is not closed.");
|
|
9674
|
+
else if (t2.substr(i2 + 1, 3) === "!--")
|
|
9675
|
+
i2 = tt(t2, "-->", i2 + 3, "StopNode is not closed.");
|
|
9676
|
+
else if (t2.substr(i2 + 1, 2) === "![")
|
|
9677
|
+
i2 = tt(t2, "]]>", i2, "StopNode is not closed.") - 2;
|
|
9406
9678
|
else {
|
|
9407
|
-
const
|
|
9408
|
-
|
|
9679
|
+
const n3 = et(t2, i2, ">");
|
|
9680
|
+
n3 && ((n3 && n3.tagName) === e2 && n3.tagExp[n3.tagExp.length - 1] !== "/" && s2++, i2 = n3.closeIndex);
|
|
9409
9681
|
}
|
|
9410
9682
|
}
|
|
9411
|
-
function
|
|
9683
|
+
function nt(t2, e2, i2) {
|
|
9412
9684
|
if (e2 && typeof t2 == "string") {
|
|
9413
9685
|
const e3 = t2.trim();
|
|
9414
9686
|
return e3 === "true" || e3 !== "false" && function(t3, e4 = {}) {
|
|
9415
|
-
if (e4 = Object.assign({},
|
|
9687
|
+
if (e4 = Object.assign({}, F, e4), !t3 || typeof t3 != "string")
|
|
9416
9688
|
return t3;
|
|
9417
|
-
let
|
|
9418
|
-
if (e4.skipLike !== undefined && e4.skipLike.test(
|
|
9689
|
+
let i3 = t3.trim();
|
|
9690
|
+
if (e4.skipLike !== undefined && e4.skipLike.test(i3))
|
|
9419
9691
|
return t3;
|
|
9420
9692
|
if (t3 === "0")
|
|
9421
9693
|
return 0;
|
|
9422
|
-
if (e4.hex &&
|
|
9694
|
+
if (e4.hex && V.test(i3))
|
|
9423
9695
|
return function(t4) {
|
|
9424
9696
|
if (parseInt)
|
|
9425
9697
|
return parseInt(t4, 16);
|
|
@@ -9428,99 +9700,130 @@ var require_fxp = __commonJS((exports, module) => {
|
|
|
9428
9700
|
if (window && window.parseInt)
|
|
9429
9701
|
return window.parseInt(t4, 16);
|
|
9430
9702
|
throw new Error("parseInt, Number.parseInt, window.parseInt are not supported");
|
|
9431
|
-
}(
|
|
9432
|
-
if (
|
|
9433
|
-
return function(t4, e5,
|
|
9434
|
-
if (!
|
|
9703
|
+
}(i3);
|
|
9704
|
+
if (i3.includes("e") || i3.includes("E"))
|
|
9705
|
+
return function(t4, e5, i4) {
|
|
9706
|
+
if (!i4.eNotation)
|
|
9435
9707
|
return t4;
|
|
9436
|
-
const
|
|
9437
|
-
if (
|
|
9438
|
-
let s2 =
|
|
9439
|
-
const r2 =
|
|
9440
|
-
return o2.length > 1 && a2 ? t4 : o2.length !== 1 || !
|
|
9708
|
+
const n3 = e5.match(L);
|
|
9709
|
+
if (n3) {
|
|
9710
|
+
let s2 = n3[1] || "";
|
|
9711
|
+
const r2 = n3[3].indexOf("e") === -1 ? "E" : "e", o2 = n3[2], a2 = s2 ? t4[o2.length + 1] === r2 : t4[o2.length] === r2;
|
|
9712
|
+
return o2.length > 1 && a2 ? t4 : o2.length !== 1 || !n3[3].startsWith(`.${r2}`) && n3[3][0] !== r2 ? i4.leadingZeros && !a2 ? (e5 = (n3[1] || "") + n3[3], Number(e5)) : t4 : Number(e5);
|
|
9441
9713
|
}
|
|
9442
9714
|
return t4;
|
|
9443
|
-
}(t3,
|
|
9715
|
+
}(t3, i3, e4);
|
|
9444
9716
|
{
|
|
9445
|
-
const s2 =
|
|
9717
|
+
const s2 = k.exec(i3);
|
|
9446
9718
|
if (s2) {
|
|
9447
9719
|
const r2 = s2[1] || "", o2 = s2[2];
|
|
9448
|
-
let a2 = (
|
|
9449
|
-
const
|
|
9450
|
-
if (!e4.leadingZeros && (o2.length > 1 || o2.length === 1 && !
|
|
9720
|
+
let a2 = (n2 = s2[3]) && n2.indexOf(".") !== -1 ? ((n2 = n2.replace(/0+$/, "")) === "." ? n2 = "0" : n2[0] === "." ? n2 = "0" + n2 : n2[n2.length - 1] === "." && (n2 = n2.substring(0, n2.length - 1)), n2) : n2;
|
|
9721
|
+
const h2 = r2 ? t3[o2.length + 1] === "." : t3[o2.length] === ".";
|
|
9722
|
+
if (!e4.leadingZeros && (o2.length > 1 || o2.length === 1 && !h2))
|
|
9451
9723
|
return t3;
|
|
9452
9724
|
{
|
|
9453
|
-
const
|
|
9454
|
-
if (
|
|
9455
|
-
return
|
|
9725
|
+
const n3 = Number(i3), s3 = String(n3);
|
|
9726
|
+
if (n3 === 0)
|
|
9727
|
+
return n3;
|
|
9456
9728
|
if (s3.search(/[eE]/) !== -1)
|
|
9457
|
-
return e4.eNotation ?
|
|
9458
|
-
if (
|
|
9459
|
-
return s3 === "0" || s3 === a2 || s3 === `${r2}${a2}` ?
|
|
9460
|
-
let
|
|
9461
|
-
return o2 ?
|
|
9729
|
+
return e4.eNotation ? n3 : t3;
|
|
9730
|
+
if (i3.indexOf(".") !== -1)
|
|
9731
|
+
return s3 === "0" || s3 === a2 || s3 === `${r2}${a2}` ? n3 : t3;
|
|
9732
|
+
let h3 = o2 ? a2 : i3;
|
|
9733
|
+
return o2 ? h3 === s3 || r2 + h3 === s3 ? n3 : t3 : h3 === s3 || h3 === r2 + s3 ? n3 : t3;
|
|
9462
9734
|
}
|
|
9463
9735
|
}
|
|
9464
9736
|
return t3;
|
|
9465
9737
|
}
|
|
9466
|
-
var
|
|
9467
|
-
}(t2,
|
|
9738
|
+
var n2;
|
|
9739
|
+
}(t2, i2);
|
|
9468
9740
|
}
|
|
9469
9741
|
return t2 !== undefined ? t2 : "";
|
|
9470
9742
|
}
|
|
9471
|
-
function
|
|
9472
|
-
const
|
|
9473
|
-
return
|
|
9743
|
+
function st(t2, e2, i2) {
|
|
9744
|
+
const n2 = Number.parseInt(t2, e2);
|
|
9745
|
+
return n2 >= 0 && n2 <= 1114111 ? String.fromCodePoint(n2) : i2 + t2 + ";";
|
|
9746
|
+
}
|
|
9747
|
+
function rt(t2, e2, i2, n2) {
|
|
9748
|
+
if (t2) {
|
|
9749
|
+
const n3 = t2(e2);
|
|
9750
|
+
i2 === e2 && (i2 = n3), e2 = n3;
|
|
9751
|
+
}
|
|
9752
|
+
return { tagName: e2 = ot(e2, n2), tagExp: i2 };
|
|
9753
|
+
}
|
|
9754
|
+
function ot(t2, e2) {
|
|
9755
|
+
if (a.includes(t2))
|
|
9756
|
+
throw new Error(`[SECURITY] Invalid name: "${t2}" is a reserved JavaScript keyword that could cause prototype pollution`);
|
|
9757
|
+
return o.includes(t2) ? e2.onDangerousProperty(t2) : t2;
|
|
9758
|
+
}
|
|
9759
|
+
const at = $.getMetaDataSymbol();
|
|
9760
|
+
function ht(t2, e2) {
|
|
9761
|
+
if (!t2 || typeof t2 != "object")
|
|
9762
|
+
return {};
|
|
9763
|
+
if (!e2)
|
|
9764
|
+
return t2;
|
|
9765
|
+
const i2 = {};
|
|
9766
|
+
for (const n2 in t2)
|
|
9767
|
+
n2.startsWith(e2) ? i2[n2.substring(e2.length)] = t2[n2] : i2[n2] = t2[n2];
|
|
9768
|
+
return i2;
|
|
9474
9769
|
}
|
|
9475
|
-
|
|
9476
|
-
|
|
9477
|
-
return H(t2, e2);
|
|
9770
|
+
function lt(t2, e2, i2) {
|
|
9771
|
+
return pt(t2, e2, i2);
|
|
9478
9772
|
}
|
|
9479
|
-
function
|
|
9480
|
-
let
|
|
9773
|
+
function pt(t2, e2, i2) {
|
|
9774
|
+
let n2;
|
|
9481
9775
|
const s2 = {};
|
|
9482
9776
|
for (let r2 = 0;r2 < t2.length; r2++) {
|
|
9483
|
-
const o2 = t2[r2], a2 =
|
|
9484
|
-
|
|
9485
|
-
|
|
9486
|
-
i2
|
|
9777
|
+
const o2 = t2[r2], a2 = ut(o2);
|
|
9778
|
+
if (a2 !== undefined && a2 !== e2.textNodeName) {
|
|
9779
|
+
const t3 = ht(o2[":@"] || {}, e2.attributeNamePrefix);
|
|
9780
|
+
i2.push(a2, t3);
|
|
9781
|
+
}
|
|
9782
|
+
if (a2 === e2.textNodeName)
|
|
9783
|
+
n2 === undefined ? n2 = o2[a2] : n2 += "" + o2[a2];
|
|
9487
9784
|
else {
|
|
9488
9785
|
if (a2 === undefined)
|
|
9489
9786
|
continue;
|
|
9490
9787
|
if (o2[a2]) {
|
|
9491
|
-
let t3 =
|
|
9492
|
-
const n3 =
|
|
9493
|
-
o2[":@"] ?
|
|
9788
|
+
let t3 = pt(o2[a2], e2, i2);
|
|
9789
|
+
const n3 = dt(t3, e2);
|
|
9790
|
+
if (o2[":@"] ? ct(t3, o2[":@"], i2, e2) : Object.keys(t3).length !== 1 || t3[e2.textNodeName] === undefined || e2.alwaysCreateTextNode ? Object.keys(t3).length === 0 && (e2.alwaysCreateTextNode ? t3[e2.textNodeName] = "" : t3 = "") : t3 = t3[e2.textNodeName], o2[at] !== undefined && typeof t3 == "object" && t3 !== null && (t3[at] = o2[at]), s2[a2] !== undefined && Object.prototype.hasOwnProperty.call(s2, a2))
|
|
9791
|
+
Array.isArray(s2[a2]) || (s2[a2] = [s2[a2]]), s2[a2].push(t3);
|
|
9792
|
+
else {
|
|
9793
|
+
const r3 = e2.jPath ? i2.toString() : i2;
|
|
9794
|
+
e2.isArray(a2, r3, n3) ? s2[a2] = [t3] : s2[a2] = t3;
|
|
9795
|
+
}
|
|
9796
|
+
a2 !== undefined && a2 !== e2.textNodeName && i2.pop();
|
|
9494
9797
|
}
|
|
9495
9798
|
}
|
|
9496
9799
|
}
|
|
9497
|
-
return typeof
|
|
9800
|
+
return typeof n2 == "string" ? n2.length > 0 && (s2[e2.textNodeName] = n2) : n2 !== undefined && (s2[e2.textNodeName] = n2), s2;
|
|
9498
9801
|
}
|
|
9499
|
-
function
|
|
9802
|
+
function ut(t2) {
|
|
9500
9803
|
const e2 = Object.keys(t2);
|
|
9501
9804
|
for (let t3 = 0;t3 < e2.length; t3++) {
|
|
9502
|
-
const
|
|
9503
|
-
if (
|
|
9504
|
-
return
|
|
9805
|
+
const i2 = e2[t3];
|
|
9806
|
+
if (i2 !== ":@")
|
|
9807
|
+
return i2;
|
|
9505
9808
|
}
|
|
9506
9809
|
}
|
|
9507
|
-
function
|
|
9810
|
+
function ct(t2, e2, i2, n2) {
|
|
9508
9811
|
if (e2) {
|
|
9509
9812
|
const s2 = Object.keys(e2), r2 = s2.length;
|
|
9510
9813
|
for (let o2 = 0;o2 < r2; o2++) {
|
|
9511
|
-
const r3 = s2[o2];
|
|
9512
|
-
|
|
9814
|
+
const r3 = s2[o2], a2 = r3.startsWith(n2.attributeNamePrefix) ? r3.substring(n2.attributeNamePrefix.length) : r3, h2 = n2.jPath ? i2.toString() + "." + a2 : i2;
|
|
9815
|
+
n2.isArray(r3, h2, true, true) ? t2[r3] = [e2[r3]] : t2[r3] = e2[r3];
|
|
9513
9816
|
}
|
|
9514
9817
|
}
|
|
9515
9818
|
}
|
|
9516
|
-
function
|
|
9517
|
-
const { textNodeName:
|
|
9518
|
-
return
|
|
9819
|
+
function dt(t2, e2) {
|
|
9820
|
+
const { textNodeName: i2 } = e2, n2 = Object.keys(t2).length;
|
|
9821
|
+
return n2 === 0 || !(n2 !== 1 || !t2[i2] && typeof t2[i2] != "boolean" && t2[i2] !== 0);
|
|
9519
9822
|
}
|
|
9520
9823
|
|
|
9521
|
-
class
|
|
9824
|
+
class ft {
|
|
9522
9825
|
constructor(t2) {
|
|
9523
|
-
this.externalEntities = {}, this.options =
|
|
9826
|
+
this.externalEntities = {}, this.options = C(t2);
|
|
9524
9827
|
}
|
|
9525
9828
|
parse(t2, e2) {
|
|
9526
9829
|
if (typeof t2 != "string" && t2.toString)
|
|
@@ -9529,14 +9832,14 @@ var require_fxp = __commonJS((exports, module) => {
|
|
|
9529
9832
|
throw new Error("XML data is accepted in String or Bytes[] form.");
|
|
9530
9833
|
if (e2) {
|
|
9531
9834
|
e2 === true && (e2 = {});
|
|
9532
|
-
const
|
|
9533
|
-
if (
|
|
9534
|
-
throw Error(`${
|
|
9835
|
+
const i3 = l(t2, e2);
|
|
9836
|
+
if (i3 !== true)
|
|
9837
|
+
throw Error(`${i3.err.msg}:${i3.err.line}:${i3.err.col}`);
|
|
9535
9838
|
}
|
|
9536
|
-
const
|
|
9537
|
-
|
|
9538
|
-
const
|
|
9539
|
-
return this.options.preserveOrder ||
|
|
9839
|
+
const i2 = new B(this.options);
|
|
9840
|
+
i2.addExternalEntities(this.externalEntities);
|
|
9841
|
+
const n2 = i2.parseXml(t2);
|
|
9842
|
+
return this.options.preserveOrder || n2 === undefined ? n2 : lt(n2, this.options, i2.matcher);
|
|
9540
9843
|
}
|
|
9541
9844
|
addEntity(t2, e2) {
|
|
9542
9845
|
if (e2.indexOf("&") !== -1)
|
|
@@ -9548,209 +9851,378 @@ var require_fxp = __commonJS((exports, module) => {
|
|
|
9548
9851
|
this.externalEntities[t2] = e2;
|
|
9549
9852
|
}
|
|
9550
9853
|
static getMetaDataSymbol() {
|
|
9551
|
-
return
|
|
9854
|
+
return $.getMetaDataSymbol();
|
|
9552
9855
|
}
|
|
9553
9856
|
}
|
|
9554
|
-
function
|
|
9555
|
-
let
|
|
9556
|
-
|
|
9557
|
-
`)
|
|
9857
|
+
function gt3(t2, e2) {
|
|
9858
|
+
let i2 = "";
|
|
9859
|
+
e2.format && e2.indentBy.length > 0 && (i2 = `
|
|
9860
|
+
`);
|
|
9861
|
+
const n2 = [];
|
|
9862
|
+
if (e2.stopNodes && Array.isArray(e2.stopNodes))
|
|
9863
|
+
for (let t3 = 0;t3 < e2.stopNodes.length; t3++) {
|
|
9864
|
+
const i3 = e2.stopNodes[t3];
|
|
9865
|
+
typeof i3 == "string" ? n2.push(new G(i3)) : i3 instanceof G && n2.push(i3);
|
|
9866
|
+
}
|
|
9867
|
+
return mt(t2, e2, i2, new M, n2);
|
|
9558
9868
|
}
|
|
9559
|
-
function
|
|
9560
|
-
let
|
|
9869
|
+
function mt(t2, e2, i2, n2, s2) {
|
|
9870
|
+
let r2 = "", o2 = false;
|
|
9871
|
+
if (e2.maxNestedTags && n2.getDepth() > e2.maxNestedTags)
|
|
9872
|
+
throw new Error("Maximum nested tags exceeded");
|
|
9561
9873
|
if (!Array.isArray(t2)) {
|
|
9562
9874
|
if (t2 != null) {
|
|
9563
|
-
let
|
|
9564
|
-
return
|
|
9875
|
+
let i3 = t2.toString();
|
|
9876
|
+
return i3 = vt(i3, e2), i3;
|
|
9565
9877
|
}
|
|
9566
9878
|
return "";
|
|
9567
9879
|
}
|
|
9568
|
-
for (let
|
|
9569
|
-
const
|
|
9880
|
+
for (let a2 = 0;a2 < t2.length; a2++) {
|
|
9881
|
+
const h2 = t2[a2], l2 = Et(h2);
|
|
9570
9882
|
if (l2 === undefined)
|
|
9571
9883
|
continue;
|
|
9572
|
-
|
|
9573
|
-
|
|
9574
|
-
|
|
9575
|
-
|
|
9884
|
+
const p2 = xt(h2[":@"], e2);
|
|
9885
|
+
n2.push(l2, p2);
|
|
9886
|
+
const u2 = wt(n2, s2);
|
|
9887
|
+
if (l2 === e2.textNodeName) {
|
|
9888
|
+
let t3 = h2[l2];
|
|
9889
|
+
u2 || (t3 = e2.tagValueProcessor(l2, t3), t3 = vt(t3, e2)), o2 && (r2 += i2), r2 += t3, o2 = false, n2.pop();
|
|
9576
9890
|
continue;
|
|
9577
9891
|
}
|
|
9578
9892
|
if (l2 === e2.cdataPropName) {
|
|
9579
|
-
|
|
9893
|
+
o2 && (r2 += i2), r2 += `<![CDATA[${h2[l2][0][e2.textNodeName]}]]>`, o2 = false, n2.pop();
|
|
9580
9894
|
continue;
|
|
9581
9895
|
}
|
|
9582
9896
|
if (l2 === e2.commentPropName) {
|
|
9583
|
-
|
|
9897
|
+
r2 += i2 + `<!--${h2[l2][0][e2.textNodeName]}-->`, o2 = true, n2.pop();
|
|
9584
9898
|
continue;
|
|
9585
9899
|
}
|
|
9586
9900
|
if (l2[0] === "?") {
|
|
9587
|
-
const t3 =
|
|
9588
|
-
let
|
|
9589
|
-
|
|
9901
|
+
const t3 = yt(h2[":@"], e2, u2), s3 = l2 === "?xml" ? "" : i2;
|
|
9902
|
+
let a3 = h2[l2][0][e2.textNodeName];
|
|
9903
|
+
a3 = a3.length !== 0 ? " " + a3 : "", r2 += s3 + `<${l2}${a3}${t3}?>`, o2 = true, n2.pop();
|
|
9590
9904
|
continue;
|
|
9591
9905
|
}
|
|
9592
|
-
let
|
|
9593
|
-
|
|
9594
|
-
const
|
|
9595
|
-
|
|
9906
|
+
let c2 = i2;
|
|
9907
|
+
c2 !== "" && (c2 += e2.indentBy);
|
|
9908
|
+
const d2 = i2 + `<${l2}${yt(h2[":@"], e2, u2)}`;
|
|
9909
|
+
let f2;
|
|
9910
|
+
f2 = u2 ? Nt(h2[l2], e2) : mt(h2[l2], e2, c2, n2, s2), e2.unpairedTags.indexOf(l2) !== -1 ? e2.suppressUnpairedNode ? r2 += d2 + ">" : r2 += d2 + "/>" : f2 && f2.length !== 0 || !e2.suppressEmptyNode ? f2 && f2.endsWith(">") ? r2 += d2 + `>${f2}${i2}</${l2}>` : (r2 += d2 + ">", f2 && i2 !== "" && (f2.includes("/>") || f2.includes("</")) ? r2 += i2 + e2.indentBy + f2 + i2 : r2 += f2, r2 += `</${l2}>`) : r2 += d2 + "/>", o2 = true, n2.pop();
|
|
9911
|
+
}
|
|
9912
|
+
return r2;
|
|
9913
|
+
}
|
|
9914
|
+
function xt(t2, e2) {
|
|
9915
|
+
if (!t2 || e2.ignoreAttributes)
|
|
9916
|
+
return null;
|
|
9917
|
+
const i2 = {};
|
|
9918
|
+
let n2 = false;
|
|
9919
|
+
for (let s2 in t2)
|
|
9920
|
+
Object.prototype.hasOwnProperty.call(t2, s2) && (i2[s2.startsWith(e2.attributeNamePrefix) ? s2.substr(e2.attributeNamePrefix.length) : s2] = t2[s2], n2 = true);
|
|
9921
|
+
return n2 ? i2 : null;
|
|
9922
|
+
}
|
|
9923
|
+
function Nt(t2, e2) {
|
|
9924
|
+
if (!Array.isArray(t2))
|
|
9925
|
+
return t2 != null ? t2.toString() : "";
|
|
9926
|
+
let i2 = "";
|
|
9927
|
+
for (let n2 = 0;n2 < t2.length; n2++) {
|
|
9928
|
+
const s2 = t2[n2], r2 = Et(s2);
|
|
9929
|
+
if (r2 === e2.textNodeName)
|
|
9930
|
+
i2 += s2[r2];
|
|
9931
|
+
else if (r2 === e2.cdataPropName)
|
|
9932
|
+
i2 += s2[r2][0][e2.textNodeName];
|
|
9933
|
+
else if (r2 === e2.commentPropName)
|
|
9934
|
+
i2 += s2[r2][0][e2.textNodeName];
|
|
9935
|
+
else {
|
|
9936
|
+
if (r2 && r2[0] === "?")
|
|
9937
|
+
continue;
|
|
9938
|
+
if (r2) {
|
|
9939
|
+
const t3 = bt(s2[":@"], e2), n3 = Nt(s2[r2], e2);
|
|
9940
|
+
n3 && n3.length !== 0 ? i2 += `<${r2}${t3}>${n3}</${r2}>` : i2 += `<${r2}${t3}/>`;
|
|
9941
|
+
}
|
|
9942
|
+
}
|
|
9596
9943
|
}
|
|
9597
|
-
return
|
|
9944
|
+
return i2;
|
|
9598
9945
|
}
|
|
9599
|
-
function
|
|
9946
|
+
function bt(t2, e2) {
|
|
9947
|
+
let i2 = "";
|
|
9948
|
+
if (t2 && !e2.ignoreAttributes)
|
|
9949
|
+
for (let n2 in t2) {
|
|
9950
|
+
if (!Object.prototype.hasOwnProperty.call(t2, n2))
|
|
9951
|
+
continue;
|
|
9952
|
+
let s2 = t2[n2];
|
|
9953
|
+
s2 === true && e2.suppressBooleanAttributes ? i2 += ` ${n2.substr(e2.attributeNamePrefix.length)}` : i2 += ` ${n2.substr(e2.attributeNamePrefix.length)}="${s2}"`;
|
|
9954
|
+
}
|
|
9955
|
+
return i2;
|
|
9956
|
+
}
|
|
9957
|
+
function Et(t2) {
|
|
9600
9958
|
const e2 = Object.keys(t2);
|
|
9601
|
-
for (let
|
|
9602
|
-
const
|
|
9603
|
-
if (Object.prototype.hasOwnProperty.call(t2,
|
|
9604
|
-
return
|
|
9959
|
+
for (let i2 = 0;i2 < e2.length; i2++) {
|
|
9960
|
+
const n2 = e2[i2];
|
|
9961
|
+
if (Object.prototype.hasOwnProperty.call(t2, n2) && n2 !== ":@")
|
|
9962
|
+
return n2;
|
|
9605
9963
|
}
|
|
9606
9964
|
}
|
|
9607
|
-
function
|
|
9965
|
+
function yt(t2, e2, i2) {
|
|
9608
9966
|
let n2 = "";
|
|
9609
9967
|
if (t2 && !e2.ignoreAttributes)
|
|
9610
|
-
for (let
|
|
9611
|
-
if (!Object.prototype.hasOwnProperty.call(t2,
|
|
9968
|
+
for (let s2 in t2) {
|
|
9969
|
+
if (!Object.prototype.hasOwnProperty.call(t2, s2))
|
|
9612
9970
|
continue;
|
|
9613
|
-
let
|
|
9614
|
-
s2 =
|
|
9971
|
+
let r2;
|
|
9972
|
+
i2 ? r2 = t2[s2] : (r2 = e2.attributeValueProcessor(s2, t2[s2]), r2 = vt(r2, e2)), r2 === true && e2.suppressBooleanAttributes ? n2 += ` ${s2.substr(e2.attributeNamePrefix.length)}` : n2 += ` ${s2.substr(e2.attributeNamePrefix.length)}="${r2}"`;
|
|
9615
9973
|
}
|
|
9616
9974
|
return n2;
|
|
9617
9975
|
}
|
|
9618
|
-
function
|
|
9619
|
-
|
|
9620
|
-
|
|
9621
|
-
|
|
9976
|
+
function wt(t2, e2) {
|
|
9977
|
+
if (!e2 || e2.length === 0)
|
|
9978
|
+
return false;
|
|
9979
|
+
for (let i2 = 0;i2 < e2.length; i2++)
|
|
9980
|
+
if (t2.matches(e2[i2]))
|
|
9622
9981
|
return true;
|
|
9623
9982
|
return false;
|
|
9624
9983
|
}
|
|
9625
|
-
function
|
|
9984
|
+
function vt(t2, e2) {
|
|
9626
9985
|
if (t2 && t2.length > 0 && e2.processEntities)
|
|
9627
|
-
for (let
|
|
9628
|
-
const
|
|
9629
|
-
t2 = t2.replace(
|
|
9986
|
+
for (let i2 = 0;i2 < e2.entities.length; i2++) {
|
|
9987
|
+
const n2 = e2.entities[i2];
|
|
9988
|
+
t2 = t2.replace(n2.regex, n2.val);
|
|
9630
9989
|
}
|
|
9631
9990
|
return t2;
|
|
9632
9991
|
}
|
|
9633
|
-
const
|
|
9992
|
+
const Tt = { attributeNamePrefix: "@_", attributesGroupName: false, textNodeName: "#text", ignoreAttributes: true, cdataPropName: false, format: false, indentBy: " ", suppressEmptyNode: false, suppressUnpairedNode: true, suppressBooleanAttributes: true, tagValueProcessor: function(t2, e2) {
|
|
9634
9993
|
return e2;
|
|
9635
9994
|
}, attributeValueProcessor: function(t2, e2) {
|
|
9636
9995
|
return e2;
|
|
9637
|
-
}, 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 };
|
|
9638
|
-
function
|
|
9996
|
+
}, 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, maxNestedTags: 100, jPath: true };
|
|
9997
|
+
function Pt(t2) {
|
|
9998
|
+
if (this.options = Object.assign({}, Tt, t2), this.options.stopNodes && Array.isArray(this.options.stopNodes) && (this.options.stopNodes = this.options.stopNodes.map((t3) => typeof t3 == "string" && t3.startsWith("*.") ? ".." + t3.substring(2) : t3)), this.stopNodeExpressions = [], this.options.stopNodes && Array.isArray(this.options.stopNodes))
|
|
9999
|
+
for (let t3 = 0;t3 < this.options.stopNodes.length; t3++) {
|
|
10000
|
+
const e3 = this.options.stopNodes[t3];
|
|
10001
|
+
typeof e3 == "string" ? this.stopNodeExpressions.push(new G(e3)) : e3 instanceof G && this.stopNodeExpressions.push(e3);
|
|
10002
|
+
}
|
|
9639
10003
|
var e2;
|
|
9640
|
-
this.options
|
|
10004
|
+
this.options.ignoreAttributes === true || this.options.attributesGroupName ? this.isAttribute = function() {
|
|
9641
10005
|
return false;
|
|
9642
10006
|
} : (this.ignoreAttributesFn = typeof (e2 = this.options.ignoreAttributes) == "function" ? e2 : Array.isArray(e2) ? (t3) => {
|
|
9643
|
-
for (const
|
|
9644
|
-
if (typeof
|
|
10007
|
+
for (const i2 of e2) {
|
|
10008
|
+
if (typeof i2 == "string" && t3 === i2)
|
|
9645
10009
|
return true;
|
|
9646
|
-
if (
|
|
10010
|
+
if (i2 instanceof RegExp && i2.test(t3))
|
|
9647
10011
|
return true;
|
|
9648
10012
|
}
|
|
9649
|
-
} : () => false, this.attrPrefixLen = this.options.attributeNamePrefix.length, this.isAttribute =
|
|
10013
|
+
} : () => false, this.attrPrefixLen = this.options.attributeNamePrefix.length, this.isAttribute = Ct), this.processTextOrObjNode = St, this.options.format ? (this.indentate = At, this.tagEndChar = `>
|
|
9650
10014
|
`, this.newLine = `
|
|
9651
10015
|
`) : (this.indentate = function() {
|
|
9652
10016
|
return "";
|
|
9653
10017
|
}, this.tagEndChar = ">", this.newLine = "");
|
|
9654
10018
|
}
|
|
9655
|
-
function
|
|
9656
|
-
const s2 = this.
|
|
9657
|
-
|
|
10019
|
+
function St(t2, e2, i2, n2) {
|
|
10020
|
+
const s2 = this.extractAttributes(t2);
|
|
10021
|
+
if (n2.push(e2, s2), this.checkStopNode(n2)) {
|
|
10022
|
+
const s3 = this.buildRawContent(t2), r3 = this.buildAttributesForStopNode(t2);
|
|
10023
|
+
return n2.pop(), this.buildObjectNode(s3, e2, r3, i2);
|
|
10024
|
+
}
|
|
10025
|
+
const r2 = this.j2x(t2, i2 + 1, n2);
|
|
10026
|
+
return n2.pop(), t2[this.options.textNodeName] !== undefined && Object.keys(t2).length === 1 ? this.buildTextValNode(t2[this.options.textNodeName], e2, r2.attrStr, i2, n2) : this.buildObjectNode(r2.val, e2, r2.attrStr, i2);
|
|
9658
10027
|
}
|
|
9659
|
-
function
|
|
10028
|
+
function At(t2) {
|
|
9660
10029
|
return this.options.indentBy.repeat(t2);
|
|
9661
10030
|
}
|
|
9662
|
-
function
|
|
10031
|
+
function Ct(t2) {
|
|
9663
10032
|
return !(!t2.startsWith(this.options.attributeNamePrefix) || t2 === this.options.textNodeName) && t2.substr(this.attrPrefixLen);
|
|
9664
10033
|
}
|
|
9665
|
-
|
|
9666
|
-
|
|
9667
|
-
|
|
9668
|
-
|
|
9669
|
-
|
|
9670
|
-
|
|
9671
|
-
|
|
9672
|
-
|
|
9673
|
-
|
|
9674
|
-
|
|
9675
|
-
|
|
9676
|
-
|
|
9677
|
-
|
|
9678
|
-
|
|
9679
|
-
|
|
9680
|
-
|
|
9681
|
-
|
|
9682
|
-
|
|
9683
|
-
|
|
9684
|
-
|
|
10034
|
+
Pt.prototype.build = function(t2) {
|
|
10035
|
+
if (this.options.preserveOrder)
|
|
10036
|
+
return gt3(t2, this.options);
|
|
10037
|
+
{
|
|
10038
|
+
Array.isArray(t2) && this.options.arrayNodeName && this.options.arrayNodeName.length > 1 && (t2 = { [this.options.arrayNodeName]: t2 });
|
|
10039
|
+
const e2 = new M;
|
|
10040
|
+
return this.j2x(t2, 0, e2).val;
|
|
10041
|
+
}
|
|
10042
|
+
}, Pt.prototype.j2x = function(t2, e2, i2) {
|
|
10043
|
+
let n2 = "", s2 = "";
|
|
10044
|
+
if (this.options.maxNestedTags && i2.getDepth() >= this.options.maxNestedTags)
|
|
10045
|
+
throw new Error("Maximum nested tags exceeded");
|
|
10046
|
+
const r2 = this.options.jPath ? i2.toString() : i2, o2 = this.checkStopNode(i2);
|
|
10047
|
+
for (let a2 in t2)
|
|
10048
|
+
if (Object.prototype.hasOwnProperty.call(t2, a2))
|
|
10049
|
+
if (t2[a2] === undefined)
|
|
10050
|
+
this.isAttribute(a2) && (s2 += "");
|
|
10051
|
+
else if (t2[a2] === null)
|
|
10052
|
+
this.isAttribute(a2) || a2 === this.options.cdataPropName ? s2 += "" : a2[0] === "?" ? s2 += this.indentate(e2) + "<" + a2 + "?" + this.tagEndChar : s2 += this.indentate(e2) + "<" + a2 + "/" + this.tagEndChar;
|
|
10053
|
+
else if (t2[a2] instanceof Date)
|
|
10054
|
+
s2 += this.buildTextValNode(t2[a2], a2, "", e2, i2);
|
|
10055
|
+
else if (typeof t2[a2] != "object") {
|
|
10056
|
+
const h2 = this.isAttribute(a2);
|
|
10057
|
+
if (h2 && !this.ignoreAttributesFn(h2, r2))
|
|
10058
|
+
n2 += this.buildAttrPairStr(h2, "" + t2[a2], o2);
|
|
10059
|
+
else if (!h2)
|
|
10060
|
+
if (a2 === this.options.textNodeName) {
|
|
10061
|
+
let e3 = this.options.tagValueProcessor(a2, "" + t2[a2]);
|
|
9685
10062
|
s2 += this.replaceEntitiesValue(e3);
|
|
9686
|
-
} else
|
|
9687
|
-
|
|
9688
|
-
|
|
9689
|
-
|
|
9690
|
-
|
|
9691
|
-
|
|
9692
|
-
|
|
9693
|
-
|
|
10063
|
+
} else {
|
|
10064
|
+
i2.push(a2);
|
|
10065
|
+
const n3 = this.checkStopNode(i2);
|
|
10066
|
+
if (i2.pop(), n3) {
|
|
10067
|
+
const i3 = "" + t2[a2];
|
|
10068
|
+
s2 += i3 === "" ? this.indentate(e2) + "<" + a2 + this.closeTag(a2) + this.tagEndChar : this.indentate(e2) + "<" + a2 + ">" + i3 + "</" + a2 + this.tagEndChar;
|
|
10069
|
+
} else
|
|
10070
|
+
s2 += this.buildTextValNode(t2[a2], a2, "", e2, i2);
|
|
10071
|
+
}
|
|
10072
|
+
} else if (Array.isArray(t2[a2])) {
|
|
10073
|
+
const n3 = t2[a2].length;
|
|
10074
|
+
let r3 = "", o3 = "";
|
|
10075
|
+
for (let h2 = 0;h2 < n3; h2++) {
|
|
10076
|
+
const n4 = t2[a2][h2];
|
|
10077
|
+
if (n4 === undefined)
|
|
9694
10078
|
;
|
|
9695
|
-
else if (
|
|
9696
|
-
|
|
9697
|
-
else if (typeof
|
|
10079
|
+
else if (n4 === null)
|
|
10080
|
+
a2[0] === "?" ? s2 += this.indentate(e2) + "<" + a2 + "?" + this.tagEndChar : s2 += this.indentate(e2) + "<" + a2 + "/" + this.tagEndChar;
|
|
10081
|
+
else if (typeof n4 == "object")
|
|
9698
10082
|
if (this.options.oneListGroup) {
|
|
9699
|
-
|
|
9700
|
-
|
|
10083
|
+
i2.push(a2);
|
|
10084
|
+
const t3 = this.j2x(n4, e2 + 1, i2);
|
|
10085
|
+
i2.pop(), r3 += t3.val, this.options.attributesGroupName && n4.hasOwnProperty(this.options.attributesGroupName) && (o3 += t3.attrStr);
|
|
9701
10086
|
} else
|
|
9702
|
-
r3 += this.processTextOrObjNode(
|
|
10087
|
+
r3 += this.processTextOrObjNode(n4, a2, e2, i2);
|
|
9703
10088
|
else if (this.options.oneListGroup) {
|
|
9704
|
-
let t3 = this.options.tagValueProcessor(
|
|
10089
|
+
let t3 = this.options.tagValueProcessor(a2, n4);
|
|
9705
10090
|
t3 = this.replaceEntitiesValue(t3), r3 += t3;
|
|
9706
|
-
} else
|
|
9707
|
-
|
|
10091
|
+
} else {
|
|
10092
|
+
i2.push(a2);
|
|
10093
|
+
const t3 = this.checkStopNode(i2);
|
|
10094
|
+
if (i2.pop(), t3) {
|
|
10095
|
+
const t4 = "" + n4;
|
|
10096
|
+
r3 += t4 === "" ? this.indentate(e2) + "<" + a2 + this.closeTag(a2) + this.tagEndChar : this.indentate(e2) + "<" + a2 + ">" + t4 + "</" + a2 + this.tagEndChar;
|
|
10097
|
+
} else
|
|
10098
|
+
r3 += this.buildTextValNode(n4, a2, "", e2, i2);
|
|
10099
|
+
}
|
|
9708
10100
|
}
|
|
9709
|
-
this.options.oneListGroup && (r3 = this.buildObjectNode(r3,
|
|
9710
|
-
} else if (this.options.attributesGroupName &&
|
|
9711
|
-
const e3 = Object.keys(t2[
|
|
9712
|
-
for (let s3 = 0;s3 <
|
|
9713
|
-
|
|
10101
|
+
this.options.oneListGroup && (r3 = this.buildObjectNode(r3, a2, o3, e2)), s2 += r3;
|
|
10102
|
+
} else if (this.options.attributesGroupName && a2 === this.options.attributesGroupName) {
|
|
10103
|
+
const e3 = Object.keys(t2[a2]), i3 = e3.length;
|
|
10104
|
+
for (let s3 = 0;s3 < i3; s3++)
|
|
10105
|
+
n2 += this.buildAttrPairStr(e3[s3], "" + t2[a2][e3[s3]], o2);
|
|
9714
10106
|
} else
|
|
9715
|
-
s2 += this.processTextOrObjNode(t2[
|
|
9716
|
-
return { attrStr:
|
|
9717
|
-
},
|
|
9718
|
-
return e2 = this.options.attributeValueProcessor(t2, "" + e2), e2 = this.replaceEntitiesValue(e2), this.options.suppressBooleanAttributes && e2 === "true" ? " " + t2 : " " + t2 + '="' + e2 + '"';
|
|
9719
|
-
},
|
|
10107
|
+
s2 += this.processTextOrObjNode(t2[a2], a2, e2, i2);
|
|
10108
|
+
return { attrStr: n2, val: s2 };
|
|
10109
|
+
}, Pt.prototype.buildAttrPairStr = function(t2, e2, i2) {
|
|
10110
|
+
return i2 || (e2 = this.options.attributeValueProcessor(t2, "" + e2), e2 = this.replaceEntitiesValue(e2)), this.options.suppressBooleanAttributes && e2 === "true" ? " " + t2 : " " + t2 + '="' + e2 + '"';
|
|
10111
|
+
}, Pt.prototype.extractAttributes = function(t2) {
|
|
10112
|
+
if (!t2 || typeof t2 != "object")
|
|
10113
|
+
return null;
|
|
10114
|
+
const e2 = {};
|
|
10115
|
+
let i2 = false;
|
|
10116
|
+
if (this.options.attributesGroupName && t2[this.options.attributesGroupName]) {
|
|
10117
|
+
const n2 = t2[this.options.attributesGroupName];
|
|
10118
|
+
for (let t3 in n2)
|
|
10119
|
+
Object.prototype.hasOwnProperty.call(n2, t3) && (e2[t3.startsWith(this.options.attributeNamePrefix) ? t3.substring(this.options.attributeNamePrefix.length) : t3] = n2[t3], i2 = true);
|
|
10120
|
+
} else
|
|
10121
|
+
for (let n2 in t2) {
|
|
10122
|
+
if (!Object.prototype.hasOwnProperty.call(t2, n2))
|
|
10123
|
+
continue;
|
|
10124
|
+
const s2 = this.isAttribute(n2);
|
|
10125
|
+
s2 && (e2[s2] = t2[n2], i2 = true);
|
|
10126
|
+
}
|
|
10127
|
+
return i2 ? e2 : null;
|
|
10128
|
+
}, Pt.prototype.buildRawContent = function(t2) {
|
|
10129
|
+
if (typeof t2 == "string")
|
|
10130
|
+
return t2;
|
|
10131
|
+
if (typeof t2 != "object" || t2 === null)
|
|
10132
|
+
return String(t2);
|
|
10133
|
+
if (t2[this.options.textNodeName] !== undefined)
|
|
10134
|
+
return t2[this.options.textNodeName];
|
|
10135
|
+
let e2 = "";
|
|
10136
|
+
for (let i2 in t2) {
|
|
10137
|
+
if (!Object.prototype.hasOwnProperty.call(t2, i2))
|
|
10138
|
+
continue;
|
|
10139
|
+
if (this.isAttribute(i2))
|
|
10140
|
+
continue;
|
|
10141
|
+
if (this.options.attributesGroupName && i2 === this.options.attributesGroupName)
|
|
10142
|
+
continue;
|
|
10143
|
+
const n2 = t2[i2];
|
|
10144
|
+
if (i2 === this.options.textNodeName)
|
|
10145
|
+
e2 += n2;
|
|
10146
|
+
else if (Array.isArray(n2)) {
|
|
10147
|
+
for (let t3 of n2)
|
|
10148
|
+
if (typeof t3 == "string" || typeof t3 == "number")
|
|
10149
|
+
e2 += `<${i2}>${t3}</${i2}>`;
|
|
10150
|
+
else if (typeof t3 == "object" && t3 !== null) {
|
|
10151
|
+
const n3 = this.buildRawContent(t3), s2 = this.buildAttributesForStopNode(t3);
|
|
10152
|
+
e2 += n3 === "" ? `<${i2}${s2}/>` : `<${i2}${s2}>${n3}</${i2}>`;
|
|
10153
|
+
}
|
|
10154
|
+
} else if (typeof n2 == "object" && n2 !== null) {
|
|
10155
|
+
const t3 = this.buildRawContent(n2), s2 = this.buildAttributesForStopNode(n2);
|
|
10156
|
+
e2 += t3 === "" ? `<${i2}${s2}/>` : `<${i2}${s2}>${t3}</${i2}>`;
|
|
10157
|
+
} else
|
|
10158
|
+
e2 += `<${i2}>${n2}</${i2}>`;
|
|
10159
|
+
}
|
|
10160
|
+
return e2;
|
|
10161
|
+
}, Pt.prototype.buildAttributesForStopNode = function(t2) {
|
|
10162
|
+
if (!t2 || typeof t2 != "object")
|
|
10163
|
+
return "";
|
|
10164
|
+
let e2 = "";
|
|
10165
|
+
if (this.options.attributesGroupName && t2[this.options.attributesGroupName]) {
|
|
10166
|
+
const i2 = t2[this.options.attributesGroupName];
|
|
10167
|
+
for (let t3 in i2) {
|
|
10168
|
+
if (!Object.prototype.hasOwnProperty.call(i2, t3))
|
|
10169
|
+
continue;
|
|
10170
|
+
const n2 = t3.startsWith(this.options.attributeNamePrefix) ? t3.substring(this.options.attributeNamePrefix.length) : t3, s2 = i2[t3];
|
|
10171
|
+
s2 === true && this.options.suppressBooleanAttributes ? e2 += " " + n2 : e2 += " " + n2 + '="' + s2 + '"';
|
|
10172
|
+
}
|
|
10173
|
+
} else
|
|
10174
|
+
for (let i2 in t2) {
|
|
10175
|
+
if (!Object.prototype.hasOwnProperty.call(t2, i2))
|
|
10176
|
+
continue;
|
|
10177
|
+
const n2 = this.isAttribute(i2);
|
|
10178
|
+
if (n2) {
|
|
10179
|
+
const s2 = t2[i2];
|
|
10180
|
+
s2 === true && this.options.suppressBooleanAttributes ? e2 += " " + n2 : e2 += " " + n2 + '="' + s2 + '"';
|
|
10181
|
+
}
|
|
10182
|
+
}
|
|
10183
|
+
return e2;
|
|
10184
|
+
}, Pt.prototype.buildObjectNode = function(t2, e2, i2, n2) {
|
|
9720
10185
|
if (t2 === "")
|
|
9721
|
-
return e2[0] === "?" ? this.indentate(
|
|
10186
|
+
return e2[0] === "?" ? this.indentate(n2) + "<" + e2 + i2 + "?" + this.tagEndChar : this.indentate(n2) + "<" + e2 + i2 + this.closeTag(e2) + this.tagEndChar;
|
|
9722
10187
|
{
|
|
9723
10188
|
let s2 = "</" + e2 + this.tagEndChar, r2 = "";
|
|
9724
|
-
return e2[0] === "?" && (r2 = "?", s2 = ""), !
|
|
10189
|
+
return e2[0] === "?" && (r2 = "?", s2 = ""), !i2 && i2 !== "" || t2.indexOf("<") !== -1 ? this.options.commentPropName !== false && e2 === this.options.commentPropName && r2.length === 0 ? this.indentate(n2) + `<!--${t2}-->` + this.newLine : this.indentate(n2) + "<" + e2 + i2 + r2 + this.tagEndChar + t2 + this.indentate(n2) + s2 : this.indentate(n2) + "<" + e2 + i2 + r2 + ">" + t2 + s2;
|
|
9725
10190
|
}
|
|
9726
|
-
},
|
|
10191
|
+
}, Pt.prototype.closeTag = function(t2) {
|
|
9727
10192
|
let e2 = "";
|
|
9728
10193
|
return this.options.unpairedTags.indexOf(t2) !== -1 ? this.options.suppressUnpairedNode || (e2 = "/") : e2 = this.options.suppressEmptyNode ? "/" : `></${t2}`, e2;
|
|
9729
|
-
},
|
|
10194
|
+
}, Pt.prototype.checkStopNode = function(t2) {
|
|
10195
|
+
if (!this.stopNodeExpressions || this.stopNodeExpressions.length === 0)
|
|
10196
|
+
return false;
|
|
10197
|
+
for (let e2 = 0;e2 < this.stopNodeExpressions.length; e2++)
|
|
10198
|
+
if (t2.matches(this.stopNodeExpressions[e2]))
|
|
10199
|
+
return true;
|
|
10200
|
+
return false;
|
|
10201
|
+
}, Pt.prototype.buildTextValNode = function(t2, e2, i2, n2, s2) {
|
|
9730
10202
|
if (this.options.cdataPropName !== false && e2 === this.options.cdataPropName)
|
|
9731
|
-
return this.indentate(
|
|
10203
|
+
return this.indentate(n2) + `<![CDATA[${t2}]]>` + this.newLine;
|
|
9732
10204
|
if (this.options.commentPropName !== false && e2 === this.options.commentPropName)
|
|
9733
|
-
return this.indentate(
|
|
10205
|
+
return this.indentate(n2) + `<!--${t2}-->` + this.newLine;
|
|
9734
10206
|
if (e2[0] === "?")
|
|
9735
|
-
return this.indentate(
|
|
10207
|
+
return this.indentate(n2) + "<" + e2 + i2 + "?" + this.tagEndChar;
|
|
9736
10208
|
{
|
|
9737
|
-
let
|
|
9738
|
-
return
|
|
10209
|
+
let s3 = this.options.tagValueProcessor(e2, t2);
|
|
10210
|
+
return s3 = this.replaceEntitiesValue(s3), s3 === "" ? this.indentate(n2) + "<" + e2 + i2 + this.closeTag(e2) + this.tagEndChar : this.indentate(n2) + "<" + e2 + i2 + ">" + s3 + "</" + e2 + this.tagEndChar;
|
|
9739
10211
|
}
|
|
9740
|
-
},
|
|
10212
|
+
}, Pt.prototype.replaceEntitiesValue = function(t2) {
|
|
9741
10213
|
if (t2 && t2.length > 0 && this.options.processEntities)
|
|
9742
10214
|
for (let e2 = 0;e2 < this.options.entities.length; e2++) {
|
|
9743
|
-
const
|
|
9744
|
-
t2 = t2.replace(
|
|
10215
|
+
const i2 = this.options.entities[e2];
|
|
10216
|
+
t2 = t2.replace(i2.regex, i2.val);
|
|
9745
10217
|
}
|
|
9746
10218
|
return t2;
|
|
9747
10219
|
};
|
|
9748
|
-
const
|
|
10220
|
+
const Ot = Pt, $t = { validate: l };
|
|
9749
10221
|
module.exports = e;
|
|
9750
10222
|
})();
|
|
9751
10223
|
});
|
|
9752
10224
|
|
|
9753
|
-
// ../node_modules/.pnpm/@aws-sdk+xml-builder@3.972.
|
|
10225
|
+
// ../node_modules/.pnpm/@aws-sdk+xml-builder@3.972.12/node_modules/@aws-sdk/xml-builder/dist-cjs/xml-parser.js
|
|
9754
10226
|
var require_xml_parser = __commonJS((exports) => {
|
|
9755
10227
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
9756
10228
|
exports.parseXML = parseXML;
|
|
@@ -9774,7 +10246,7 @@ var require_xml_parser = __commonJS((exports) => {
|
|
|
9774
10246
|
}
|
|
9775
10247
|
});
|
|
9776
10248
|
|
|
9777
|
-
// ../node_modules/.pnpm/@aws-sdk+xml-builder@3.972.
|
|
10249
|
+
// ../node_modules/.pnpm/@aws-sdk+xml-builder@3.972.12/node_modules/@aws-sdk/xml-builder/dist-cjs/index.js
|
|
9778
10250
|
var require_dist_cjs24 = __commonJS((exports) => {
|
|
9779
10251
|
var xmlParser = require_xml_parser();
|
|
9780
10252
|
function escapeAttribute(value) {
|
|
@@ -9885,7 +10357,7 @@ var require_dist_cjs24 = __commonJS((exports) => {
|
|
|
9885
10357
|
exports.XmlText = XmlText;
|
|
9886
10358
|
});
|
|
9887
10359
|
|
|
9888
|
-
// ../node_modules/.pnpm/@aws-sdk+core@3.973.
|
|
10360
|
+
// ../node_modules/.pnpm/@aws-sdk+core@3.973.21/node_modules/@aws-sdk/core/dist-cjs/index.js
|
|
9889
10361
|
var require_dist_cjs25 = __commonJS((exports) => {
|
|
9890
10362
|
var protocolHttp = require_dist_cjs2();
|
|
9891
10363
|
var core = require_dist_cjs18();
|
|
@@ -12987,7 +13459,7 @@ var require_main5 = __commonJS((exports) => {
|
|
|
12987
13459
|
} });
|
|
12988
13460
|
});
|
|
12989
13461
|
|
|
12990
|
-
// ../node_modules/.pnpm/@aws-sdk+middleware-flexible-checksums@3.974.
|
|
13462
|
+
// ../node_modules/.pnpm/@aws-sdk+middleware-flexible-checksums@3.974.1/node_modules/@aws-sdk/middleware-flexible-checksums/dist-cjs/getCrc32ChecksumAlgorithmFunction.js
|
|
12991
13463
|
var require_getCrc32ChecksumAlgorithmFunction = __commonJS((exports) => {
|
|
12992
13464
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
12993
13465
|
exports.getCrc32ChecksumAlgorithmFunction = undefined;
|
|
@@ -13017,7 +13489,7 @@ var require_getCrc32ChecksumAlgorithmFunction = __commonJS((exports) => {
|
|
|
13017
13489
|
exports.getCrc32ChecksumAlgorithmFunction = getCrc32ChecksumAlgorithmFunction;
|
|
13018
13490
|
});
|
|
13019
13491
|
|
|
13020
|
-
// ../node_modules/.pnpm/@aws-sdk+middleware-flexible-checksums@3.974.
|
|
13492
|
+
// ../node_modules/.pnpm/@aws-sdk+middleware-flexible-checksums@3.974.1/node_modules/@aws-sdk/middleware-flexible-checksums/dist-cjs/index.js
|
|
13021
13493
|
var require_dist_cjs30 = __commonJS((exports) => {
|
|
13022
13494
|
var core = require_dist_cjs25();
|
|
13023
13495
|
var protocolHttp = require_dist_cjs2();
|
|
@@ -13753,7 +14225,7 @@ var require_dist_cjs35 = __commonJS((exports) => {
|
|
|
13753
14225
|
exports.numberSelector = numberSelector;
|
|
13754
14226
|
});
|
|
13755
14227
|
|
|
13756
|
-
// ../node_modules/.pnpm/@aws-sdk+middleware-sdk-s3@3.972.
|
|
14228
|
+
// ../node_modules/.pnpm/@aws-sdk+middleware-sdk-s3@3.972.21/node_modules/@aws-sdk/middleware-sdk-s3/dist-cjs/index.js
|
|
13757
14229
|
var require_dist_cjs36 = __commonJS((exports) => {
|
|
13758
14230
|
var protocolHttp = require_dist_cjs2();
|
|
13759
14231
|
var smithyClient = require_dist_cjs23();
|
|
@@ -15463,7 +15935,7 @@ var require_dist_cjs40 = __commonJS((exports) => {
|
|
|
15463
15935
|
exports.TIMEOUT_RETRY_COST = TIMEOUT_RETRY_COST;
|
|
15464
15936
|
});
|
|
15465
15937
|
|
|
15466
|
-
// ../node_modules/.pnpm/@aws-sdk+middleware-user-agent@3.972.
|
|
15938
|
+
// ../node_modules/.pnpm/@aws-sdk+middleware-user-agent@3.972.22/node_modules/@aws-sdk/middleware-user-agent/dist-cjs/index.js
|
|
15467
15939
|
var require_dist_cjs41 = __commonJS((exports) => {
|
|
15468
15940
|
var core = require_dist_cjs18();
|
|
15469
15941
|
var utilEndpoints = require_dist_cjs38();
|
|
@@ -16148,7 +16620,7 @@ var require_dist_cjs46 = __commonJS((exports) => {
|
|
|
16148
16620
|
exports.loadConfig = loadConfig;
|
|
16149
16621
|
});
|
|
16150
16622
|
|
|
16151
|
-
// ../node_modules/.pnpm/@smithy+middleware-endpoint@4.4.
|
|
16623
|
+
// ../node_modules/.pnpm/@smithy+middleware-endpoint@4.4.26/node_modules/@smithy/middleware-endpoint/dist-cjs/adaptors/getEndpointUrlConfig.js
|
|
16152
16624
|
var require_getEndpointUrlConfig = __commonJS((exports) => {
|
|
16153
16625
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
16154
16626
|
exports.getEndpointUrlConfig = undefined;
|
|
@@ -16186,7 +16658,7 @@ var require_getEndpointUrlConfig = __commonJS((exports) => {
|
|
|
16186
16658
|
exports.getEndpointUrlConfig = getEndpointUrlConfig;
|
|
16187
16659
|
});
|
|
16188
16660
|
|
|
16189
|
-
// ../node_modules/.pnpm/@smithy+middleware-endpoint@4.4.
|
|
16661
|
+
// ../node_modules/.pnpm/@smithy+middleware-endpoint@4.4.26/node_modules/@smithy/middleware-endpoint/dist-cjs/adaptors/getEndpointFromConfig.js
|
|
16190
16662
|
var require_getEndpointFromConfig = __commonJS((exports) => {
|
|
16191
16663
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
16192
16664
|
exports.getEndpointFromConfig = undefined;
|
|
@@ -16196,7 +16668,7 @@ var require_getEndpointFromConfig = __commonJS((exports) => {
|
|
|
16196
16668
|
exports.getEndpointFromConfig = getEndpointFromConfig;
|
|
16197
16669
|
});
|
|
16198
16670
|
|
|
16199
|
-
// ../node_modules/.pnpm/@smithy+middleware-serde@4.2.
|
|
16671
|
+
// ../node_modules/.pnpm/@smithy+middleware-serde@4.2.15/node_modules/@smithy/middleware-serde/dist-cjs/index.js
|
|
16200
16672
|
var require_dist_cjs47 = __commonJS((exports) => {
|
|
16201
16673
|
var protocolHttp = require_dist_cjs2();
|
|
16202
16674
|
var endpoints = require_endpoints();
|
|
@@ -16292,7 +16764,7 @@ var require_dist_cjs47 = __commonJS((exports) => {
|
|
|
16292
16764
|
exports.serializerMiddlewareOption = serializerMiddlewareOption;
|
|
16293
16765
|
});
|
|
16294
16766
|
|
|
16295
|
-
// ../node_modules/.pnpm/@smithy+middleware-endpoint@4.4.
|
|
16767
|
+
// ../node_modules/.pnpm/@smithy+middleware-endpoint@4.4.26/node_modules/@smithy/middleware-endpoint/dist-cjs/index.js
|
|
16296
16768
|
var require_dist_cjs48 = __commonJS((exports) => {
|
|
16297
16769
|
var getEndpointFromConfig = require_getEndpointFromConfig();
|
|
16298
16770
|
var urlParser = require_dist_cjs16();
|
|
@@ -16543,7 +17015,7 @@ var require_dist_cjs48 = __commonJS((exports) => {
|
|
|
16543
17015
|
exports.toEndpointV1 = toEndpointV1;
|
|
16544
17016
|
});
|
|
16545
17017
|
|
|
16546
|
-
// ../node_modules/.pnpm/@smithy+middleware-retry@4.4.
|
|
17018
|
+
// ../node_modules/.pnpm/@smithy+middleware-retry@4.4.43/node_modules/@smithy/middleware-retry/dist-cjs/isStreamingPayload/isStreamingPayload.js
|
|
16547
17019
|
var require_isStreamingPayload = __commonJS((exports) => {
|
|
16548
17020
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
16549
17021
|
exports.isStreamingPayload = undefined;
|
|
@@ -16552,7 +17024,7 @@ var require_isStreamingPayload = __commonJS((exports) => {
|
|
|
16552
17024
|
exports.isStreamingPayload = isStreamingPayload;
|
|
16553
17025
|
});
|
|
16554
17026
|
|
|
16555
|
-
// ../node_modules/.pnpm/@smithy+middleware-retry@4.4.
|
|
17027
|
+
// ../node_modules/.pnpm/@smithy+middleware-retry@4.4.43/node_modules/@smithy/middleware-retry/dist-cjs/index.js
|
|
16556
17028
|
var require_dist_cjs49 = __commonJS((exports) => {
|
|
16557
17029
|
var utilRetry = require_dist_cjs40();
|
|
16558
17030
|
var protocolHttp = require_dist_cjs2();
|
|
@@ -16890,7 +17362,7 @@ var require_dist_cjs49 = __commonJS((exports) => {
|
|
|
16890
17362
|
exports.retryMiddlewareOptions = retryMiddlewareOptions;
|
|
16891
17363
|
});
|
|
16892
17364
|
|
|
16893
|
-
// ../node_modules/.pnpm/@aws-sdk+signature-v4-multi-region@3.996.
|
|
17365
|
+
// ../node_modules/.pnpm/@aws-sdk+signature-v4-multi-region@3.996.9/node_modules/@aws-sdk/signature-v4-multi-region/dist-cjs/index.js
|
|
16894
17366
|
var require_dist_cjs50 = __commonJS((exports) => {
|
|
16895
17367
|
var middlewareSdkS3 = require_dist_cjs36();
|
|
16896
17368
|
var signatureV4 = require_dist_cjs20();
|
|
@@ -16986,7 +17458,7 @@ var require_dist_cjs50 = __commonJS((exports) => {
|
|
|
16986
17458
|
exports.signatureV4CrtContainer = signatureV4CrtContainer;
|
|
16987
17459
|
});
|
|
16988
17460
|
|
|
16989
|
-
// ../node_modules/.pnpm/@aws-sdk+client-s3@3.
|
|
17461
|
+
// ../node_modules/.pnpm/@aws-sdk+client-s3@3.1012.0/node_modules/@aws-sdk/client-s3/dist-cjs/endpoint/ruleset.js
|
|
16990
17462
|
var require_ruleset = __commonJS((exports) => {
|
|
16991
17463
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
16992
17464
|
exports.ruleSet = undefined;
|
|
@@ -17185,7 +17657,7 @@ var require_ruleset = __commonJS((exports) => {
|
|
|
17185
17657
|
exports.ruleSet = _data;
|
|
17186
17658
|
});
|
|
17187
17659
|
|
|
17188
|
-
// ../node_modules/.pnpm/@aws-sdk+client-s3@3.
|
|
17660
|
+
// ../node_modules/.pnpm/@aws-sdk+client-s3@3.1012.0/node_modules/@aws-sdk/client-s3/dist-cjs/endpoint/endpointResolver.js
|
|
17189
17661
|
var require_endpointResolver = __commonJS((exports) => {
|
|
17190
17662
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17191
17663
|
exports.defaultEndpointResolver = undefined;
|
|
@@ -17221,7 +17693,7 @@ var require_endpointResolver = __commonJS((exports) => {
|
|
|
17221
17693
|
util_endpoints_2.customEndpointFunctions.aws = util_endpoints_1.awsEndpointFunctions;
|
|
17222
17694
|
});
|
|
17223
17695
|
|
|
17224
|
-
// ../node_modules/.pnpm/@aws-sdk+client-s3@3.
|
|
17696
|
+
// ../node_modules/.pnpm/@aws-sdk+client-s3@3.1012.0/node_modules/@aws-sdk/client-s3/dist-cjs/auth/httpAuthSchemeProvider.js
|
|
17225
17697
|
var require_httpAuthSchemeProvider = __commonJS((exports) => {
|
|
17226
17698
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17227
17699
|
exports.resolveHttpAuthSchemeConfig = exports.defaultS3HttpAuthSchemeProvider = exports.defaultS3HttpAuthSchemeParametersProvider = undefined;
|
|
@@ -17347,7 +17819,7 @@ var require_httpAuthSchemeProvider = __commonJS((exports) => {
|
|
|
17347
17819
|
exports.resolveHttpAuthSchemeConfig = resolveHttpAuthSchemeConfig;
|
|
17348
17820
|
});
|
|
17349
17821
|
|
|
17350
|
-
// ../node_modules/.pnpm/@aws-sdk+client-s3@3.
|
|
17822
|
+
// ../node_modules/.pnpm/@aws-sdk+client-s3@3.1012.0/node_modules/@aws-sdk/client-s3/dist-cjs/models/S3ServiceException.js
|
|
17351
17823
|
var require_S3ServiceException = __commonJS((exports) => {
|
|
17352
17824
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17353
17825
|
exports.S3ServiceException = exports.__ServiceException = undefined;
|
|
@@ -17365,7 +17837,7 @@ var require_S3ServiceException = __commonJS((exports) => {
|
|
|
17365
17837
|
exports.S3ServiceException = S3ServiceException;
|
|
17366
17838
|
});
|
|
17367
17839
|
|
|
17368
|
-
// ../node_modules/.pnpm/@aws-sdk+client-s3@3.
|
|
17840
|
+
// ../node_modules/.pnpm/@aws-sdk+client-s3@3.1012.0/node_modules/@aws-sdk/client-s3/dist-cjs/models/errors.js
|
|
17369
17841
|
var require_errors = __commonJS((exports) => {
|
|
17370
17842
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17371
17843
|
exports.ObjectAlreadyInActiveTierError = exports.IdempotencyParameterMismatch = exports.TooManyParts = exports.InvalidWriteOffset = exports.InvalidRequest = exports.EncryptionTypeMismatch = exports.NotFound = exports.NoSuchKey = exports.InvalidObjectState = exports.NoSuchBucket = exports.BucketAlreadyOwnedByYou = exports.BucketAlreadyExists = exports.ObjectNotInActiveTierError = exports.AccessDenied = exports.NoSuchUpload = undefined;
|
|
@@ -17586,7 +18058,7 @@ var require_errors = __commonJS((exports) => {
|
|
|
17586
18058
|
exports.ObjectAlreadyInActiveTierError = ObjectAlreadyInActiveTierError;
|
|
17587
18059
|
});
|
|
17588
18060
|
|
|
17589
|
-
// ../node_modules/.pnpm/@aws-sdk+client-s3@3.
|
|
18061
|
+
// ../node_modules/.pnpm/@aws-sdk+client-s3@3.1012.0/node_modules/@aws-sdk/client-s3/dist-cjs/schemas/schemas_0.js
|
|
17590
18062
|
var require_schemas_0 = __commonJS((exports) => {
|
|
17591
18063
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17592
18064
|
exports.CreateBucketMetadataTableConfigurationRequest$ = exports.CreateBucketMetadataConfigurationRequest$ = exports.CreateBucketConfiguration$ = exports.CORSRule$ = exports.CORSConfiguration$ = exports.CopyPartResult$ = exports.CopyObjectResult$ = exports.CopyObjectRequest$ = exports.CopyObjectOutput$ = exports.ContinuationEvent$ = exports.Condition$ = exports.CompleteMultipartUploadRequest$ = exports.CompleteMultipartUploadOutput$ = exports.CompletedPart$ = exports.CompletedMultipartUpload$ = exports.CommonPrefix$ = exports.Checksum$ = exports.BucketLoggingStatus$ = exports.BucketLifecycleConfiguration$ = exports.BucketInfo$ = exports.Bucket$ = exports.BlockedEncryptionTypes$ = exports.AnalyticsS3BucketDestination$ = exports.AnalyticsExportDestination$ = exports.AnalyticsConfiguration$ = exports.AnalyticsAndOperator$ = exports.AccessControlTranslation$ = exports.AccessControlPolicy$ = exports.AccelerateConfiguration$ = exports.AbortMultipartUploadRequest$ = exports.AbortMultipartUploadOutput$ = exports.AbortIncompleteMultipartUpload$ = exports.AbacStatus$ = exports.errorTypeRegistries = exports.TooManyParts$ = exports.ObjectNotInActiveTierError$ = exports.ObjectAlreadyInActiveTierError$ = exports.NotFound$ = exports.NoSuchUpload$ = exports.NoSuchKey$ = exports.NoSuchBucket$ = exports.InvalidWriteOffset$ = exports.InvalidRequest$ = exports.InvalidObjectState$ = exports.IdempotencyParameterMismatch$ = exports.EncryptionTypeMismatch$ = exports.BucketAlreadyOwnedByYou$ = exports.BucketAlreadyExists$ = exports.AccessDenied$ = exports.S3ServiceException$ = undefined;
|
|
@@ -22782,12 +23254,12 @@ var require_schemas_0 = __commonJS((exports) => {
|
|
|
22782
23254
|
];
|
|
22783
23255
|
});
|
|
22784
23256
|
|
|
22785
|
-
// ../node_modules/.pnpm/@aws-sdk+client-s3@3.
|
|
23257
|
+
// ../node_modules/.pnpm/@aws-sdk+client-s3@3.1012.0/node_modules/@aws-sdk/client-s3/package.json
|
|
22786
23258
|
var require_package3 = __commonJS((exports, module) => {
|
|
22787
23259
|
module.exports = {
|
|
22788
23260
|
name: "@aws-sdk/client-s3",
|
|
22789
23261
|
description: "AWS SDK for JavaScript S3 Client for Node.js, Browser and React Native",
|
|
22790
|
-
version: "3.
|
|
23262
|
+
version: "3.1012.0",
|
|
22791
23263
|
scripts: {
|
|
22792
23264
|
build: "concurrently 'yarn:build:types' 'yarn:build:es' && yarn build:cjs",
|
|
22793
23265
|
"build:cjs": "node ../../scripts/compilation/inline client-s3",
|
|
@@ -22816,26 +23288,26 @@ var require_package3 = __commonJS((exports, module) => {
|
|
|
22816
23288
|
"@aws-crypto/sha1-browser": "5.2.0",
|
|
22817
23289
|
"@aws-crypto/sha256-browser": "5.2.0",
|
|
22818
23290
|
"@aws-crypto/sha256-js": "5.2.0",
|
|
22819
|
-
"@aws-sdk/core": "^3.973.
|
|
22820
|
-
"@aws-sdk/credential-provider-node": "^3.972.
|
|
23291
|
+
"@aws-sdk/core": "^3.973.21",
|
|
23292
|
+
"@aws-sdk/credential-provider-node": "^3.972.22",
|
|
22821
23293
|
"@aws-sdk/middleware-bucket-endpoint": "^3.972.8",
|
|
22822
23294
|
"@aws-sdk/middleware-expect-continue": "^3.972.8",
|
|
22823
|
-
"@aws-sdk/middleware-flexible-checksums": "^3.974.
|
|
23295
|
+
"@aws-sdk/middleware-flexible-checksums": "^3.974.1",
|
|
22824
23296
|
"@aws-sdk/middleware-host-header": "^3.972.8",
|
|
22825
23297
|
"@aws-sdk/middleware-location-constraint": "^3.972.8",
|
|
22826
23298
|
"@aws-sdk/middleware-logger": "^3.972.8",
|
|
22827
23299
|
"@aws-sdk/middleware-recursion-detection": "^3.972.8",
|
|
22828
|
-
"@aws-sdk/middleware-sdk-s3": "^3.972.
|
|
23300
|
+
"@aws-sdk/middleware-sdk-s3": "^3.972.21",
|
|
22829
23301
|
"@aws-sdk/middleware-ssec": "^3.972.8",
|
|
22830
|
-
"@aws-sdk/middleware-user-agent": "^3.972.
|
|
23302
|
+
"@aws-sdk/middleware-user-agent": "^3.972.22",
|
|
22831
23303
|
"@aws-sdk/region-config-resolver": "^3.972.8",
|
|
22832
|
-
"@aws-sdk/signature-v4-multi-region": "^3.996.
|
|
23304
|
+
"@aws-sdk/signature-v4-multi-region": "^3.996.9",
|
|
22833
23305
|
"@aws-sdk/types": "^3.973.6",
|
|
22834
23306
|
"@aws-sdk/util-endpoints": "^3.996.5",
|
|
22835
23307
|
"@aws-sdk/util-user-agent-browser": "^3.972.8",
|
|
22836
|
-
"@aws-sdk/util-user-agent-node": "^3.973.
|
|
23308
|
+
"@aws-sdk/util-user-agent-node": "^3.973.8",
|
|
22837
23309
|
"@smithy/config-resolver": "^4.4.11",
|
|
22838
|
-
"@smithy/core": "^3.23.
|
|
23310
|
+
"@smithy/core": "^3.23.12",
|
|
22839
23311
|
"@smithy/eventstream-serde-browser": "^4.2.12",
|
|
22840
23312
|
"@smithy/eventstream-serde-config-resolver": "^4.3.12",
|
|
22841
23313
|
"@smithy/eventstream-serde-node": "^4.2.12",
|
|
@@ -22846,32 +23318,32 @@ var require_package3 = __commonJS((exports, module) => {
|
|
|
22846
23318
|
"@smithy/invalid-dependency": "^4.2.12",
|
|
22847
23319
|
"@smithy/md5-js": "^4.2.12",
|
|
22848
23320
|
"@smithy/middleware-content-length": "^4.2.12",
|
|
22849
|
-
"@smithy/middleware-endpoint": "^4.4.
|
|
22850
|
-
"@smithy/middleware-retry": "^4.4.
|
|
22851
|
-
"@smithy/middleware-serde": "^4.2.
|
|
23321
|
+
"@smithy/middleware-endpoint": "^4.4.26",
|
|
23322
|
+
"@smithy/middleware-retry": "^4.4.43",
|
|
23323
|
+
"@smithy/middleware-serde": "^4.2.15",
|
|
22852
23324
|
"@smithy/middleware-stack": "^4.2.12",
|
|
22853
23325
|
"@smithy/node-config-provider": "^4.3.12",
|
|
22854
|
-
"@smithy/node-http-handler": "^4.
|
|
23326
|
+
"@smithy/node-http-handler": "^4.5.0",
|
|
22855
23327
|
"@smithy/protocol-http": "^5.3.12",
|
|
22856
|
-
"@smithy/smithy-client": "^4.12.
|
|
23328
|
+
"@smithy/smithy-client": "^4.12.6",
|
|
22857
23329
|
"@smithy/types": "^4.13.1",
|
|
22858
23330
|
"@smithy/url-parser": "^4.2.12",
|
|
22859
23331
|
"@smithy/util-base64": "^4.3.2",
|
|
22860
23332
|
"@smithy/util-body-length-browser": "^4.2.2",
|
|
22861
23333
|
"@smithy/util-body-length-node": "^4.2.3",
|
|
22862
|
-
"@smithy/util-defaults-mode-browser": "^4.3.
|
|
22863
|
-
"@smithy/util-defaults-mode-node": "^4.2.
|
|
23334
|
+
"@smithy/util-defaults-mode-browser": "^4.3.42",
|
|
23335
|
+
"@smithy/util-defaults-mode-node": "^4.2.45",
|
|
22864
23336
|
"@smithy/util-endpoints": "^3.3.3",
|
|
22865
23337
|
"@smithy/util-middleware": "^4.2.12",
|
|
22866
23338
|
"@smithy/util-retry": "^4.2.12",
|
|
22867
|
-
"@smithy/util-stream": "^4.5.
|
|
23339
|
+
"@smithy/util-stream": "^4.5.20",
|
|
22868
23340
|
"@smithy/util-utf8": "^4.2.2",
|
|
22869
23341
|
"@smithy/util-waiter": "^4.2.13",
|
|
22870
23342
|
tslib: "^2.6.2"
|
|
22871
23343
|
},
|
|
22872
23344
|
devDependencies: {
|
|
22873
|
-
"@aws-sdk/signature-v4-crt": "3.
|
|
22874
|
-
"@smithy/snapshot-testing": "^2.0.
|
|
23345
|
+
"@aws-sdk/signature-v4-crt": "3.1012.0",
|
|
23346
|
+
"@smithy/snapshot-testing": "^2.0.3",
|
|
22875
23347
|
"@tsconfig/node20": "20.1.8",
|
|
22876
23348
|
"@types/node": "^20.14.8",
|
|
22877
23349
|
concurrently: "7.0.0",
|
|
@@ -22913,7 +23385,7 @@ var require_package3 = __commonJS((exports, module) => {
|
|
|
22913
23385
|
};
|
|
22914
23386
|
});
|
|
22915
23387
|
|
|
22916
|
-
// ../node_modules/.pnpm/@aws-sdk+credential-provider-env@3.972.
|
|
23388
|
+
// ../node_modules/.pnpm/@aws-sdk+credential-provider-env@3.972.19/node_modules/@aws-sdk/credential-provider-env/dist-cjs/index.js
|
|
22917
23389
|
var require_dist_cjs51 = __commonJS((exports) => {
|
|
22918
23390
|
var client = require_client();
|
|
22919
23391
|
var propertyProvider = require_dist_cjs19();
|
|
@@ -23298,7 +23770,7 @@ For more information, please visit: ` + STATIC_STABILITY_DOC_URL);
|
|
|
23298
23770
|
exports.providerConfigFromInit = providerConfigFromInit;
|
|
23299
23771
|
});
|
|
23300
23772
|
|
|
23301
|
-
// ../node_modules/.pnpm/@aws-sdk+credential-provider-http@3.972.
|
|
23773
|
+
// ../node_modules/.pnpm/@aws-sdk+credential-provider-http@3.972.21/node_modules/@aws-sdk/credential-provider-http/dist-cjs/fromHttp/checkUrl.js
|
|
23302
23774
|
var require_checkUrl = __commonJS((exports) => {
|
|
23303
23775
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
23304
23776
|
exports.checkUrl = undefined;
|
|
@@ -23338,7 +23810,7 @@ var require_checkUrl = __commonJS((exports) => {
|
|
|
23338
23810
|
exports.checkUrl = checkUrl;
|
|
23339
23811
|
});
|
|
23340
23812
|
|
|
23341
|
-
// ../node_modules/.pnpm/@aws-sdk+credential-provider-http@3.972.
|
|
23813
|
+
// ../node_modules/.pnpm/@aws-sdk+credential-provider-http@3.972.21/node_modules/@aws-sdk/credential-provider-http/dist-cjs/fromHttp/requestHelpers.js
|
|
23342
23814
|
var require_requestHelpers = __commonJS((exports) => {
|
|
23343
23815
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
23344
23816
|
exports.createGetRequest = createGetRequest;
|
|
@@ -23389,7 +23861,7 @@ var require_requestHelpers = __commonJS((exports) => {
|
|
|
23389
23861
|
}
|
|
23390
23862
|
});
|
|
23391
23863
|
|
|
23392
|
-
// ../node_modules/.pnpm/@aws-sdk+credential-provider-http@3.972.
|
|
23864
|
+
// ../node_modules/.pnpm/@aws-sdk+credential-provider-http@3.972.21/node_modules/@aws-sdk/credential-provider-http/dist-cjs/fromHttp/retry-wrapper.js
|
|
23393
23865
|
var require_retry_wrapper = __commonJS((exports) => {
|
|
23394
23866
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
23395
23867
|
exports.retryWrapper = undefined;
|
|
@@ -23408,7 +23880,7 @@ var require_retry_wrapper = __commonJS((exports) => {
|
|
|
23408
23880
|
exports.retryWrapper = retryWrapper;
|
|
23409
23881
|
});
|
|
23410
23882
|
|
|
23411
|
-
// ../node_modules/.pnpm/@aws-sdk+credential-provider-http@3.972.
|
|
23883
|
+
// ../node_modules/.pnpm/@aws-sdk+credential-provider-http@3.972.21/node_modules/@aws-sdk/credential-provider-http/dist-cjs/fromHttp/fromHttp.js
|
|
23412
23884
|
var require_fromHttp = __commonJS((exports) => {
|
|
23413
23885
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
23414
23886
|
exports.fromHttp = undefined;
|
|
@@ -23473,7 +23945,7 @@ Set AWS_CONTAINER_CREDENTIALS_FULL_URI or AWS_CONTAINER_CREDENTIALS_RELATIVE_URI
|
|
|
23473
23945
|
exports.fromHttp = fromHttp;
|
|
23474
23946
|
});
|
|
23475
23947
|
|
|
23476
|
-
// ../node_modules/.pnpm/@aws-sdk+credential-provider-http@3.972.
|
|
23948
|
+
// ../node_modules/.pnpm/@aws-sdk+credential-provider-http@3.972.21/node_modules/@aws-sdk/credential-provider-http/dist-cjs/index.js
|
|
23477
23949
|
var require_dist_cjs53 = __commonJS((exports) => {
|
|
23478
23950
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
23479
23951
|
exports.fromHttp = undefined;
|
|
@@ -23483,7 +23955,7 @@ var require_dist_cjs53 = __commonJS((exports) => {
|
|
|
23483
23955
|
} });
|
|
23484
23956
|
});
|
|
23485
23957
|
|
|
23486
|
-
// ../node_modules/.pnpm/@aws-sdk+core@3.973.
|
|
23958
|
+
// ../node_modules/.pnpm/@aws-sdk+core@3.973.21/node_modules/@aws-sdk/core/dist-cjs/submodules/httpAuthSchemes/index.js
|
|
23487
23959
|
var require_httpAuthSchemes = __commonJS((exports) => {
|
|
23488
23960
|
var protocolHttp = require_dist_cjs2();
|
|
23489
23961
|
var core = require_dist_cjs18();
|
|
@@ -23773,7 +24245,7 @@ var require_httpAuthSchemes = __commonJS((exports) => {
|
|
|
23773
24245
|
exports.validateSigningProperties = validateSigningProperties;
|
|
23774
24246
|
});
|
|
23775
24247
|
|
|
23776
|
-
// ../node_modules/.pnpm/@aws-sdk+nested-clients@3.996.
|
|
24248
|
+
// ../node_modules/.pnpm/@aws-sdk+nested-clients@3.996.11/node_modules/@aws-sdk/nested-clients/dist-cjs/submodules/sso-oidc/auth/httpAuthSchemeProvider.js
|
|
23777
24249
|
var require_httpAuthSchemeProvider2 = __commonJS((exports) => {
|
|
23778
24250
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
23779
24251
|
exports.resolveHttpAuthSchemeConfig = exports.defaultSSOOIDCHttpAuthSchemeProvider = exports.defaultSSOOIDCHttpAuthSchemeParametersProvider = undefined;
|
|
@@ -23831,11 +24303,11 @@ var require_httpAuthSchemeProvider2 = __commonJS((exports) => {
|
|
|
23831
24303
|
exports.resolveHttpAuthSchemeConfig = resolveHttpAuthSchemeConfig;
|
|
23832
24304
|
});
|
|
23833
24305
|
|
|
23834
|
-
// ../node_modules/.pnpm/@aws-sdk+nested-clients@3.996.
|
|
24306
|
+
// ../node_modules/.pnpm/@aws-sdk+nested-clients@3.996.11/node_modules/@aws-sdk/nested-clients/package.json
|
|
23835
24307
|
var require_package4 = __commonJS((exports, module) => {
|
|
23836
24308
|
module.exports = {
|
|
23837
24309
|
name: "@aws-sdk/nested-clients",
|
|
23838
|
-
version: "3.996.
|
|
24310
|
+
version: "3.996.11",
|
|
23839
24311
|
description: "Nested clients for AWS SDK packages.",
|
|
23840
24312
|
main: "./dist-cjs/index.js",
|
|
23841
24313
|
module: "./dist-es/index.js",
|
|
@@ -23864,37 +24336,37 @@ var require_package4 = __commonJS((exports, module) => {
|
|
|
23864
24336
|
dependencies: {
|
|
23865
24337
|
"@aws-crypto/sha256-browser": "5.2.0",
|
|
23866
24338
|
"@aws-crypto/sha256-js": "5.2.0",
|
|
23867
|
-
"@aws-sdk/core": "^3.973.
|
|
24339
|
+
"@aws-sdk/core": "^3.973.21",
|
|
23868
24340
|
"@aws-sdk/middleware-host-header": "^3.972.8",
|
|
23869
24341
|
"@aws-sdk/middleware-logger": "^3.972.8",
|
|
23870
24342
|
"@aws-sdk/middleware-recursion-detection": "^3.972.8",
|
|
23871
|
-
"@aws-sdk/middleware-user-agent": "^3.972.
|
|
24343
|
+
"@aws-sdk/middleware-user-agent": "^3.972.22",
|
|
23872
24344
|
"@aws-sdk/region-config-resolver": "^3.972.8",
|
|
23873
24345
|
"@aws-sdk/types": "^3.973.6",
|
|
23874
24346
|
"@aws-sdk/util-endpoints": "^3.996.5",
|
|
23875
24347
|
"@aws-sdk/util-user-agent-browser": "^3.972.8",
|
|
23876
|
-
"@aws-sdk/util-user-agent-node": "^3.973.
|
|
24348
|
+
"@aws-sdk/util-user-agent-node": "^3.973.8",
|
|
23877
24349
|
"@smithy/config-resolver": "^4.4.11",
|
|
23878
|
-
"@smithy/core": "^3.23.
|
|
24350
|
+
"@smithy/core": "^3.23.12",
|
|
23879
24351
|
"@smithy/fetch-http-handler": "^5.3.15",
|
|
23880
24352
|
"@smithy/hash-node": "^4.2.12",
|
|
23881
24353
|
"@smithy/invalid-dependency": "^4.2.12",
|
|
23882
24354
|
"@smithy/middleware-content-length": "^4.2.12",
|
|
23883
|
-
"@smithy/middleware-endpoint": "^4.4.
|
|
23884
|
-
"@smithy/middleware-retry": "^4.4.
|
|
23885
|
-
"@smithy/middleware-serde": "^4.2.
|
|
24355
|
+
"@smithy/middleware-endpoint": "^4.4.26",
|
|
24356
|
+
"@smithy/middleware-retry": "^4.4.43",
|
|
24357
|
+
"@smithy/middleware-serde": "^4.2.15",
|
|
23886
24358
|
"@smithy/middleware-stack": "^4.2.12",
|
|
23887
24359
|
"@smithy/node-config-provider": "^4.3.12",
|
|
23888
|
-
"@smithy/node-http-handler": "^4.
|
|
24360
|
+
"@smithy/node-http-handler": "^4.5.0",
|
|
23889
24361
|
"@smithy/protocol-http": "^5.3.12",
|
|
23890
|
-
"@smithy/smithy-client": "^4.12.
|
|
24362
|
+
"@smithy/smithy-client": "^4.12.6",
|
|
23891
24363
|
"@smithy/types": "^4.13.1",
|
|
23892
24364
|
"@smithy/url-parser": "^4.2.12",
|
|
23893
24365
|
"@smithy/util-base64": "^4.3.2",
|
|
23894
24366
|
"@smithy/util-body-length-browser": "^4.2.2",
|
|
23895
24367
|
"@smithy/util-body-length-node": "^4.2.3",
|
|
23896
|
-
"@smithy/util-defaults-mode-browser": "^4.3.
|
|
23897
|
-
"@smithy/util-defaults-mode-node": "^4.2.
|
|
24368
|
+
"@smithy/util-defaults-mode-browser": "^4.3.42",
|
|
24369
|
+
"@smithy/util-defaults-mode-node": "^4.2.45",
|
|
23898
24370
|
"@smithy/util-endpoints": "^3.3.3",
|
|
23899
24371
|
"@smithy/util-middleware": "^4.2.12",
|
|
23900
24372
|
"@smithy/util-retry": "^4.2.12",
|
|
@@ -23982,9 +24454,9 @@ var require_package4 = __commonJS((exports, module) => {
|
|
|
23982
24454
|
};
|
|
23983
24455
|
});
|
|
23984
24456
|
|
|
23985
|
-
// ../node_modules/.pnpm/@aws-sdk+util-user-agent-node@3.973.
|
|
24457
|
+
// ../node_modules/.pnpm/@aws-sdk+util-user-agent-node@3.973.8/node_modules/@aws-sdk/util-user-agent-node/dist-cjs/index.js
|
|
23986
24458
|
var require_dist_cjs54 = __commonJS((exports) => {
|
|
23987
|
-
var __dirname = "/workspace/projects/cli/node_modules/.pnpm/@aws-sdk+util-user-agent-node@3.973.
|
|
24459
|
+
var __dirname = "/workspace/projects/cli/node_modules/.pnpm/@aws-sdk+util-user-agent-node@3.973.8/node_modules/@aws-sdk/util-user-agent-node/dist-cjs";
|
|
23988
24460
|
var node_os = __require("node:os");
|
|
23989
24461
|
var node_process = __require("node:process");
|
|
23990
24462
|
var utilConfigProvider = require_dist_cjs35();
|
|
@@ -24221,7 +24693,7 @@ var require_dist_cjs56 = __commonJS((exports) => {
|
|
|
24221
24693
|
exports.calculateBodyLength = calculateBodyLength;
|
|
24222
24694
|
});
|
|
24223
24695
|
|
|
24224
|
-
// ../node_modules/.pnpm/@smithy+util-defaults-mode-node@4.2.
|
|
24696
|
+
// ../node_modules/.pnpm/@smithy+util-defaults-mode-node@4.2.45/node_modules/@smithy/util-defaults-mode-node/dist-cjs/index.js
|
|
24225
24697
|
var require_dist_cjs57 = __commonJS((exports) => {
|
|
24226
24698
|
var configResolver = require_dist_cjs42();
|
|
24227
24699
|
var nodeConfigProvider = require_dist_cjs46();
|
|
@@ -24290,7 +24762,7 @@ var require_dist_cjs57 = __commonJS((exports) => {
|
|
|
24290
24762
|
exports.resolveDefaultsModeConfig = resolveDefaultsModeConfig;
|
|
24291
24763
|
});
|
|
24292
24764
|
|
|
24293
|
-
// ../node_modules/.pnpm/@aws-sdk+core@3.973.
|
|
24765
|
+
// ../node_modules/.pnpm/@aws-sdk+core@3.973.21/node_modules/@aws-sdk/core/dist-cjs/submodules/protocols/index.js
|
|
24294
24766
|
var require_protocols2 = __commonJS((exports) => {
|
|
24295
24767
|
var cbor = require_cbor();
|
|
24296
24768
|
var schema = require_schema();
|
|
@@ -26078,7 +26550,7 @@ var require_protocols2 = __commonJS((exports) => {
|
|
|
26078
26550
|
exports.parseXmlErrorBody = parseXmlErrorBody;
|
|
26079
26551
|
});
|
|
26080
26552
|
|
|
26081
|
-
// ../node_modules/.pnpm/@aws-sdk+nested-clients@3.996.
|
|
26553
|
+
// ../node_modules/.pnpm/@aws-sdk+nested-clients@3.996.11/node_modules/@aws-sdk/nested-clients/dist-cjs/submodules/sso-oidc/endpoint/ruleset.js
|
|
26082
26554
|
var require_ruleset2 = __commonJS((exports) => {
|
|
26083
26555
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
26084
26556
|
exports.ruleSet = undefined;
|
|
@@ -26209,7 +26681,7 @@ var require_ruleset2 = __commonJS((exports) => {
|
|
|
26209
26681
|
exports.ruleSet = _data;
|
|
26210
26682
|
});
|
|
26211
26683
|
|
|
26212
|
-
// ../node_modules/.pnpm/@aws-sdk+nested-clients@3.996.
|
|
26684
|
+
// ../node_modules/.pnpm/@aws-sdk+nested-clients@3.996.11/node_modules/@aws-sdk/nested-clients/dist-cjs/submodules/sso-oidc/endpoint/endpointResolver.js
|
|
26213
26685
|
var require_endpointResolver2 = __commonJS((exports) => {
|
|
26214
26686
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
26215
26687
|
exports.defaultEndpointResolver = undefined;
|
|
@@ -26230,7 +26702,7 @@ var require_endpointResolver2 = __commonJS((exports) => {
|
|
|
26230
26702
|
util_endpoints_2.customEndpointFunctions.aws = util_endpoints_1.awsEndpointFunctions;
|
|
26231
26703
|
});
|
|
26232
26704
|
|
|
26233
|
-
// ../node_modules/.pnpm/@aws-sdk+nested-clients@3.996.
|
|
26705
|
+
// ../node_modules/.pnpm/@aws-sdk+nested-clients@3.996.11/node_modules/@aws-sdk/nested-clients/dist-cjs/submodules/sso-oidc/models/SSOOIDCServiceException.js
|
|
26234
26706
|
var require_SSOOIDCServiceException = __commonJS((exports) => {
|
|
26235
26707
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
26236
26708
|
exports.SSOOIDCServiceException = exports.__ServiceException = undefined;
|
|
@@ -26248,7 +26720,7 @@ var require_SSOOIDCServiceException = __commonJS((exports) => {
|
|
|
26248
26720
|
exports.SSOOIDCServiceException = SSOOIDCServiceException;
|
|
26249
26721
|
});
|
|
26250
26722
|
|
|
26251
|
-
// ../node_modules/.pnpm/@aws-sdk+nested-clients@3.996.
|
|
26723
|
+
// ../node_modules/.pnpm/@aws-sdk+nested-clients@3.996.11/node_modules/@aws-sdk/nested-clients/dist-cjs/submodules/sso-oidc/models/errors.js
|
|
26252
26724
|
var require_errors2 = __commonJS((exports) => {
|
|
26253
26725
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
26254
26726
|
exports.UnsupportedGrantTypeException = exports.UnauthorizedClientException = exports.SlowDownException = exports.InvalidScopeException = exports.InvalidRequestException = exports.InvalidGrantException = exports.InvalidClientException = exports.InternalServerException = exports.ExpiredTokenException = exports.AuthorizationPendingException = exports.AccessDeniedException = undefined;
|
|
@@ -26457,7 +26929,7 @@ var require_errors2 = __commonJS((exports) => {
|
|
|
26457
26929
|
exports.UnsupportedGrantTypeException = UnsupportedGrantTypeException;
|
|
26458
26930
|
});
|
|
26459
26931
|
|
|
26460
|
-
// ../node_modules/.pnpm/@aws-sdk+nested-clients@3.996.
|
|
26932
|
+
// ../node_modules/.pnpm/@aws-sdk+nested-clients@3.996.11/node_modules/@aws-sdk/nested-clients/dist-cjs/submodules/sso-oidc/schemas/schemas_0.js
|
|
26461
26933
|
var require_schemas_02 = __commonJS((exports) => {
|
|
26462
26934
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
26463
26935
|
exports.CreateToken$ = exports.CreateTokenResponse$ = exports.CreateTokenRequest$ = exports.errorTypeRegistries = exports.UnsupportedGrantTypeException$ = exports.UnauthorizedClientException$ = exports.SlowDownException$ = exports.InvalidScopeException$ = exports.InvalidRequestException$ = exports.InvalidGrantException$ = exports.InvalidClientException$ = exports.InternalServerException$ = exports.ExpiredTokenException$ = exports.AuthorizationPendingException$ = exports.AccessDeniedException$ = exports.SSOOIDCServiceException$ = undefined;
|
|
@@ -26600,7 +27072,7 @@ var require_schemas_02 = __commonJS((exports) => {
|
|
|
26600
27072
|
];
|
|
26601
27073
|
});
|
|
26602
27074
|
|
|
26603
|
-
// ../node_modules/.pnpm/@aws-sdk+nested-clients@3.996.
|
|
27075
|
+
// ../node_modules/.pnpm/@aws-sdk+nested-clients@3.996.11/node_modules/@aws-sdk/nested-clients/dist-cjs/submodules/sso-oidc/runtimeConfig.shared.js
|
|
26604
27076
|
var require_runtimeConfig_shared = __commonJS((exports) => {
|
|
26605
27077
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
26606
27078
|
exports.getRuntimeConfig = undefined;
|
|
@@ -26652,7 +27124,7 @@ var require_runtimeConfig_shared = __commonJS((exports) => {
|
|
|
26652
27124
|
exports.getRuntimeConfig = getRuntimeConfig;
|
|
26653
27125
|
});
|
|
26654
27126
|
|
|
26655
|
-
// ../node_modules/.pnpm/@aws-sdk+nested-clients@3.996.
|
|
27127
|
+
// ../node_modules/.pnpm/@aws-sdk+nested-clients@3.996.11/node_modules/@aws-sdk/nested-clients/dist-cjs/submodules/sso-oidc/runtimeConfig.js
|
|
26656
27128
|
var require_runtimeConfig = __commonJS((exports) => {
|
|
26657
27129
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
26658
27130
|
exports.getRuntimeConfig = undefined;
|
|
@@ -26764,7 +27236,7 @@ var require_dist_cjs58 = __commonJS((exports) => {
|
|
|
26764
27236
|
});
|
|
26765
27237
|
});
|
|
26766
27238
|
|
|
26767
|
-
// ../node_modules/.pnpm/@aws-sdk+nested-clients@3.996.
|
|
27239
|
+
// ../node_modules/.pnpm/@aws-sdk+nested-clients@3.996.11/node_modules/@aws-sdk/nested-clients/dist-cjs/submodules/sso-oidc/index.js
|
|
26768
27240
|
var require_sso_oidc = __commonJS((exports) => {
|
|
26769
27241
|
var middlewareHostHeader = require_dist_cjs31();
|
|
26770
27242
|
var middlewareLogger = require_dist_cjs32();
|
|
@@ -26921,7 +27393,7 @@ var require_sso_oidc = __commonJS((exports) => {
|
|
|
26921
27393
|
});
|
|
26922
27394
|
});
|
|
26923
27395
|
|
|
26924
|
-
// ../node_modules/.pnpm/@aws-sdk+token-providers@3.
|
|
27396
|
+
// ../node_modules/.pnpm/@aws-sdk+token-providers@3.1012.0/node_modules/@aws-sdk/token-providers/dist-cjs/index.js
|
|
26925
27397
|
var require_dist_cjs59 = __commonJS((exports) => {
|
|
26926
27398
|
var client = require_client();
|
|
26927
27399
|
var httpAuthSchemes = require_httpAuthSchemes();
|
|
@@ -27064,7 +27536,7 @@ var require_dist_cjs59 = __commonJS((exports) => {
|
|
|
27064
27536
|
exports.nodeProvider = nodeProvider;
|
|
27065
27537
|
});
|
|
27066
27538
|
|
|
27067
|
-
// ../node_modules/.pnpm/@aws-sdk+nested-clients@3.996.
|
|
27539
|
+
// ../node_modules/.pnpm/@aws-sdk+nested-clients@3.996.11/node_modules/@aws-sdk/nested-clients/dist-cjs/submodules/sso/auth/httpAuthSchemeProvider.js
|
|
27068
27540
|
var require_httpAuthSchemeProvider3 = __commonJS((exports) => {
|
|
27069
27541
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
27070
27542
|
exports.resolveHttpAuthSchemeConfig = exports.defaultSSOHttpAuthSchemeProvider = exports.defaultSSOHttpAuthSchemeParametersProvider = undefined;
|
|
@@ -27122,7 +27594,7 @@ var require_httpAuthSchemeProvider3 = __commonJS((exports) => {
|
|
|
27122
27594
|
exports.resolveHttpAuthSchemeConfig = resolveHttpAuthSchemeConfig;
|
|
27123
27595
|
});
|
|
27124
27596
|
|
|
27125
|
-
// ../node_modules/.pnpm/@aws-sdk+nested-clients@3.996.
|
|
27597
|
+
// ../node_modules/.pnpm/@aws-sdk+nested-clients@3.996.11/node_modules/@aws-sdk/nested-clients/dist-cjs/submodules/sso/endpoint/ruleset.js
|
|
27126
27598
|
var require_ruleset3 = __commonJS((exports) => {
|
|
27127
27599
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
27128
27600
|
exports.ruleSet = undefined;
|
|
@@ -27253,7 +27725,7 @@ var require_ruleset3 = __commonJS((exports) => {
|
|
|
27253
27725
|
exports.ruleSet = _data;
|
|
27254
27726
|
});
|
|
27255
27727
|
|
|
27256
|
-
// ../node_modules/.pnpm/@aws-sdk+nested-clients@3.996.
|
|
27728
|
+
// ../node_modules/.pnpm/@aws-sdk+nested-clients@3.996.11/node_modules/@aws-sdk/nested-clients/dist-cjs/submodules/sso/endpoint/endpointResolver.js
|
|
27257
27729
|
var require_endpointResolver3 = __commonJS((exports) => {
|
|
27258
27730
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
27259
27731
|
exports.defaultEndpointResolver = undefined;
|
|
@@ -27274,7 +27746,7 @@ var require_endpointResolver3 = __commonJS((exports) => {
|
|
|
27274
27746
|
util_endpoints_2.customEndpointFunctions.aws = util_endpoints_1.awsEndpointFunctions;
|
|
27275
27747
|
});
|
|
27276
27748
|
|
|
27277
|
-
// ../node_modules/.pnpm/@aws-sdk+nested-clients@3.996.
|
|
27749
|
+
// ../node_modules/.pnpm/@aws-sdk+nested-clients@3.996.11/node_modules/@aws-sdk/nested-clients/dist-cjs/submodules/sso/models/SSOServiceException.js
|
|
27278
27750
|
var require_SSOServiceException = __commonJS((exports) => {
|
|
27279
27751
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
27280
27752
|
exports.SSOServiceException = exports.__ServiceException = undefined;
|
|
@@ -27292,7 +27764,7 @@ var require_SSOServiceException = __commonJS((exports) => {
|
|
|
27292
27764
|
exports.SSOServiceException = SSOServiceException;
|
|
27293
27765
|
});
|
|
27294
27766
|
|
|
27295
|
-
// ../node_modules/.pnpm/@aws-sdk+nested-clients@3.996.
|
|
27767
|
+
// ../node_modules/.pnpm/@aws-sdk+nested-clients@3.996.11/node_modules/@aws-sdk/nested-clients/dist-cjs/submodules/sso/models/errors.js
|
|
27296
27768
|
var require_errors3 = __commonJS((exports) => {
|
|
27297
27769
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
27298
27770
|
exports.UnauthorizedException = exports.TooManyRequestsException = exports.ResourceNotFoundException = exports.InvalidRequestException = undefined;
|
|
@@ -27355,7 +27827,7 @@ var require_errors3 = __commonJS((exports) => {
|
|
|
27355
27827
|
exports.UnauthorizedException = UnauthorizedException;
|
|
27356
27828
|
});
|
|
27357
27829
|
|
|
27358
|
-
// ../node_modules/.pnpm/@aws-sdk+nested-clients@3.996.
|
|
27830
|
+
// ../node_modules/.pnpm/@aws-sdk+nested-clients@3.996.11/node_modules/@aws-sdk/nested-clients/dist-cjs/submodules/sso/schemas/schemas_0.js
|
|
27359
27831
|
var require_schemas_03 = __commonJS((exports) => {
|
|
27360
27832
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
27361
27833
|
exports.GetRoleCredentials$ = exports.RoleCredentials$ = exports.GetRoleCredentialsResponse$ = exports.GetRoleCredentialsRequest$ = exports.errorTypeRegistries = exports.UnauthorizedException$ = exports.TooManyRequestsException$ = exports.ResourceNotFoundException$ = exports.InvalidRequestException$ = exports.SSOServiceException$ = undefined;
|
|
@@ -27448,7 +27920,7 @@ var require_schemas_03 = __commonJS((exports) => {
|
|
|
27448
27920
|
];
|
|
27449
27921
|
});
|
|
27450
27922
|
|
|
27451
|
-
// ../node_modules/.pnpm/@aws-sdk+nested-clients@3.996.
|
|
27923
|
+
// ../node_modules/.pnpm/@aws-sdk+nested-clients@3.996.11/node_modules/@aws-sdk/nested-clients/dist-cjs/submodules/sso/runtimeConfig.shared.js
|
|
27452
27924
|
var require_runtimeConfig_shared2 = __commonJS((exports) => {
|
|
27453
27925
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
27454
27926
|
exports.getRuntimeConfig = undefined;
|
|
@@ -27500,7 +27972,7 @@ var require_runtimeConfig_shared2 = __commonJS((exports) => {
|
|
|
27500
27972
|
exports.getRuntimeConfig = getRuntimeConfig;
|
|
27501
27973
|
});
|
|
27502
27974
|
|
|
27503
|
-
// ../node_modules/.pnpm/@aws-sdk+nested-clients@3.996.
|
|
27975
|
+
// ../node_modules/.pnpm/@aws-sdk+nested-clients@3.996.11/node_modules/@aws-sdk/nested-clients/dist-cjs/submodules/sso/runtimeConfig.js
|
|
27504
27976
|
var require_runtimeConfig2 = __commonJS((exports) => {
|
|
27505
27977
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
27506
27978
|
exports.getRuntimeConfig = undefined;
|
|
@@ -27553,7 +28025,7 @@ var require_runtimeConfig2 = __commonJS((exports) => {
|
|
|
27553
28025
|
exports.getRuntimeConfig = getRuntimeConfig;
|
|
27554
28026
|
});
|
|
27555
28027
|
|
|
27556
|
-
// ../node_modules/.pnpm/@aws-sdk+nested-clients@3.996.
|
|
28028
|
+
// ../node_modules/.pnpm/@aws-sdk+nested-clients@3.996.11/node_modules/@aws-sdk/nested-clients/dist-cjs/submodules/sso/index.js
|
|
27557
28029
|
var require_sso = __commonJS((exports) => {
|
|
27558
28030
|
var middlewareHostHeader = require_dist_cjs31();
|
|
27559
28031
|
var middlewareLogger = require_dist_cjs32();
|
|
@@ -27699,14 +28171,14 @@ var require_sso = __commonJS((exports) => {
|
|
|
27699
28171
|
});
|
|
27700
28172
|
});
|
|
27701
28173
|
|
|
27702
|
-
// ../node_modules/.pnpm/@aws-sdk+credential-provider-sso@3.972.
|
|
28174
|
+
// ../node_modules/.pnpm/@aws-sdk+credential-provider-sso@3.972.21/node_modules/@aws-sdk/credential-provider-sso/dist-cjs/loadSso-BKDNrsal.js
|
|
27703
28175
|
var require_loadSso_BKDNrsal = __commonJS((exports) => {
|
|
27704
28176
|
var sso = require_sso();
|
|
27705
28177
|
exports.GetRoleCredentialsCommand = sso.GetRoleCredentialsCommand;
|
|
27706
28178
|
exports.SSOClient = sso.SSOClient;
|
|
27707
28179
|
});
|
|
27708
28180
|
|
|
27709
|
-
// ../node_modules/.pnpm/@aws-sdk+credential-provider-sso@3.972.
|
|
28181
|
+
// ../node_modules/.pnpm/@aws-sdk+credential-provider-sso@3.972.21/node_modules/@aws-sdk/credential-provider-sso/dist-cjs/index.js
|
|
27710
28182
|
var require_dist_cjs60 = __commonJS((exports) => {
|
|
27711
28183
|
var propertyProvider = require_dist_cjs19();
|
|
27712
28184
|
var sharedIniFileLoader = require_dist_cjs45();
|
|
@@ -27883,7 +28355,7 @@ Reference: https://docs.aws.amazon.com/cli/latest/userguide/cli-configure-sso.ht
|
|
|
27883
28355
|
exports.validateSsoProfile = validateSsoProfile;
|
|
27884
28356
|
});
|
|
27885
28357
|
|
|
27886
|
-
// ../node_modules/.pnpm/@aws-sdk+nested-clients@3.996.
|
|
28358
|
+
// ../node_modules/.pnpm/@aws-sdk+nested-clients@3.996.11/node_modules/@aws-sdk/nested-clients/dist-cjs/submodules/signin/auth/httpAuthSchemeProvider.js
|
|
27887
28359
|
var require_httpAuthSchemeProvider4 = __commonJS((exports) => {
|
|
27888
28360
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
27889
28361
|
exports.resolveHttpAuthSchemeConfig = exports.defaultSigninHttpAuthSchemeProvider = exports.defaultSigninHttpAuthSchemeParametersProvider = undefined;
|
|
@@ -27941,7 +28413,7 @@ var require_httpAuthSchemeProvider4 = __commonJS((exports) => {
|
|
|
27941
28413
|
exports.resolveHttpAuthSchemeConfig = resolveHttpAuthSchemeConfig;
|
|
27942
28414
|
});
|
|
27943
28415
|
|
|
27944
|
-
// ../node_modules/.pnpm/@aws-sdk+nested-clients@3.996.
|
|
28416
|
+
// ../node_modules/.pnpm/@aws-sdk+nested-clients@3.996.11/node_modules/@aws-sdk/nested-clients/dist-cjs/submodules/signin/endpoint/ruleset.js
|
|
27945
28417
|
var require_ruleset4 = __commonJS((exports) => {
|
|
27946
28418
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
27947
28419
|
exports.ruleSet = undefined;
|
|
@@ -28099,7 +28571,7 @@ var require_ruleset4 = __commonJS((exports) => {
|
|
|
28099
28571
|
exports.ruleSet = _data;
|
|
28100
28572
|
});
|
|
28101
28573
|
|
|
28102
|
-
// ../node_modules/.pnpm/@aws-sdk+nested-clients@3.996.
|
|
28574
|
+
// ../node_modules/.pnpm/@aws-sdk+nested-clients@3.996.11/node_modules/@aws-sdk/nested-clients/dist-cjs/submodules/signin/endpoint/endpointResolver.js
|
|
28103
28575
|
var require_endpointResolver4 = __commonJS((exports) => {
|
|
28104
28576
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
28105
28577
|
exports.defaultEndpointResolver = undefined;
|
|
@@ -28120,7 +28592,7 @@ var require_endpointResolver4 = __commonJS((exports) => {
|
|
|
28120
28592
|
util_endpoints_2.customEndpointFunctions.aws = util_endpoints_1.awsEndpointFunctions;
|
|
28121
28593
|
});
|
|
28122
28594
|
|
|
28123
|
-
// ../node_modules/.pnpm/@aws-sdk+nested-clients@3.996.
|
|
28595
|
+
// ../node_modules/.pnpm/@aws-sdk+nested-clients@3.996.11/node_modules/@aws-sdk/nested-clients/dist-cjs/submodules/signin/models/SigninServiceException.js
|
|
28124
28596
|
var require_SigninServiceException = __commonJS((exports) => {
|
|
28125
28597
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
28126
28598
|
exports.SigninServiceException = exports.__ServiceException = undefined;
|
|
@@ -28138,7 +28610,7 @@ var require_SigninServiceException = __commonJS((exports) => {
|
|
|
28138
28610
|
exports.SigninServiceException = SigninServiceException;
|
|
28139
28611
|
});
|
|
28140
28612
|
|
|
28141
|
-
// ../node_modules/.pnpm/@aws-sdk+nested-clients@3.996.
|
|
28613
|
+
// ../node_modules/.pnpm/@aws-sdk+nested-clients@3.996.11/node_modules/@aws-sdk/nested-clients/dist-cjs/submodules/signin/models/errors.js
|
|
28142
28614
|
var require_errors4 = __commonJS((exports) => {
|
|
28143
28615
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
28144
28616
|
exports.ValidationException = exports.TooManyRequestsError = exports.InternalServerException = exports.AccessDeniedException = undefined;
|
|
@@ -28209,7 +28681,7 @@ var require_errors4 = __commonJS((exports) => {
|
|
|
28209
28681
|
exports.ValidationException = ValidationException;
|
|
28210
28682
|
});
|
|
28211
28683
|
|
|
28212
|
-
// ../node_modules/.pnpm/@aws-sdk+nested-clients@3.996.
|
|
28684
|
+
// ../node_modules/.pnpm/@aws-sdk+nested-clients@3.996.11/node_modules/@aws-sdk/nested-clients/dist-cjs/submodules/signin/schemas/schemas_0.js
|
|
28213
28685
|
var require_schemas_04 = __commonJS((exports) => {
|
|
28214
28686
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
28215
28687
|
exports.CreateOAuth2Token$ = exports.CreateOAuth2TokenResponseBody$ = exports.CreateOAuth2TokenResponse$ = exports.CreateOAuth2TokenRequestBody$ = exports.CreateOAuth2TokenRequest$ = exports.AccessToken$ = exports.errorTypeRegistries = exports.ValidationException$ = exports.TooManyRequestsError$ = exports.InternalServerException$ = exports.AccessDeniedException$ = exports.SigninServiceException$ = undefined;
|
|
@@ -28337,7 +28809,7 @@ var require_schemas_04 = __commonJS((exports) => {
|
|
|
28337
28809
|
];
|
|
28338
28810
|
});
|
|
28339
28811
|
|
|
28340
|
-
// ../node_modules/.pnpm/@aws-sdk+nested-clients@3.996.
|
|
28812
|
+
// ../node_modules/.pnpm/@aws-sdk+nested-clients@3.996.11/node_modules/@aws-sdk/nested-clients/dist-cjs/submodules/signin/runtimeConfig.shared.js
|
|
28341
28813
|
var require_runtimeConfig_shared3 = __commonJS((exports) => {
|
|
28342
28814
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
28343
28815
|
exports.getRuntimeConfig = undefined;
|
|
@@ -28389,7 +28861,7 @@ var require_runtimeConfig_shared3 = __commonJS((exports) => {
|
|
|
28389
28861
|
exports.getRuntimeConfig = getRuntimeConfig;
|
|
28390
28862
|
});
|
|
28391
28863
|
|
|
28392
|
-
// ../node_modules/.pnpm/@aws-sdk+nested-clients@3.996.
|
|
28864
|
+
// ../node_modules/.pnpm/@aws-sdk+nested-clients@3.996.11/node_modules/@aws-sdk/nested-clients/dist-cjs/submodules/signin/runtimeConfig.js
|
|
28393
28865
|
var require_runtimeConfig3 = __commonJS((exports) => {
|
|
28394
28866
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
28395
28867
|
exports.getRuntimeConfig = undefined;
|
|
@@ -28442,7 +28914,7 @@ var require_runtimeConfig3 = __commonJS((exports) => {
|
|
|
28442
28914
|
exports.getRuntimeConfig = getRuntimeConfig;
|
|
28443
28915
|
});
|
|
28444
28916
|
|
|
28445
|
-
// ../node_modules/.pnpm/@aws-sdk+nested-clients@3.996.
|
|
28917
|
+
// ../node_modules/.pnpm/@aws-sdk+nested-clients@3.996.11/node_modules/@aws-sdk/nested-clients/dist-cjs/submodules/signin/index.js
|
|
28446
28918
|
var require_signin = __commonJS((exports) => {
|
|
28447
28919
|
var middlewareHostHeader = require_dist_cjs31();
|
|
28448
28920
|
var middlewareLogger = require_dist_cjs32();
|
|
@@ -28597,7 +29069,7 @@ var require_signin = __commonJS((exports) => {
|
|
|
28597
29069
|
});
|
|
28598
29070
|
});
|
|
28599
29071
|
|
|
28600
|
-
// ../node_modules/.pnpm/@aws-sdk+credential-provider-login@3.972.
|
|
29072
|
+
// ../node_modules/.pnpm/@aws-sdk+credential-provider-login@3.972.21/node_modules/@aws-sdk/credential-provider-login/dist-cjs/index.js
|
|
28601
29073
|
var require_dist_cjs61 = __commonJS((exports) => {
|
|
28602
29074
|
var client = require_client();
|
|
28603
29075
|
var propertyProvider = require_dist_cjs19();
|
|
@@ -28873,7 +29345,7 @@ var require_dist_cjs61 = __commonJS((exports) => {
|
|
|
28873
29345
|
exports.fromLoginCredentials = fromLoginCredentials;
|
|
28874
29346
|
});
|
|
28875
29347
|
|
|
28876
|
-
// ../node_modules/.pnpm/@aws-sdk+nested-clients@3.996.
|
|
29348
|
+
// ../node_modules/.pnpm/@aws-sdk+nested-clients@3.996.11/node_modules/@aws-sdk/nested-clients/dist-cjs/submodules/sts/auth/httpAuthSchemeProvider.js
|
|
28877
29349
|
var require_httpAuthSchemeProvider5 = __commonJS((exports) => {
|
|
28878
29350
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
28879
29351
|
exports.resolveHttpAuthSchemeConfig = exports.resolveStsAuthConfig = exports.defaultSTSHttpAuthSchemeProvider = exports.defaultSTSHttpAuthSchemeParametersProvider = undefined;
|
|
@@ -28937,7 +29409,7 @@ var require_httpAuthSchemeProvider5 = __commonJS((exports) => {
|
|
|
28937
29409
|
exports.resolveHttpAuthSchemeConfig = resolveHttpAuthSchemeConfig;
|
|
28938
29410
|
});
|
|
28939
29411
|
|
|
28940
|
-
// ../node_modules/.pnpm/@aws-sdk+nested-clients@3.996.
|
|
29412
|
+
// ../node_modules/.pnpm/@aws-sdk+nested-clients@3.996.11/node_modules/@aws-sdk/nested-clients/dist-cjs/submodules/sts/endpoint/EndpointParameters.js
|
|
28941
29413
|
var require_EndpointParameters = __commonJS((exports) => {
|
|
28942
29414
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
28943
29415
|
exports.commonParams = exports.resolveClientEndpointParameters = undefined;
|
|
@@ -28959,7 +29431,7 @@ var require_EndpointParameters = __commonJS((exports) => {
|
|
|
28959
29431
|
};
|
|
28960
29432
|
});
|
|
28961
29433
|
|
|
28962
|
-
// ../node_modules/.pnpm/@aws-sdk+nested-clients@3.996.
|
|
29434
|
+
// ../node_modules/.pnpm/@aws-sdk+nested-clients@3.996.11/node_modules/@aws-sdk/nested-clients/dist-cjs/submodules/sts/endpoint/ruleset.js
|
|
28963
29435
|
var require_ruleset5 = __commonJS((exports) => {
|
|
28964
29436
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
28965
29437
|
exports.ruleSet = undefined;
|
|
@@ -29141,7 +29613,7 @@ var require_ruleset5 = __commonJS((exports) => {
|
|
|
29141
29613
|
exports.ruleSet = _data;
|
|
29142
29614
|
});
|
|
29143
29615
|
|
|
29144
|
-
// ../node_modules/.pnpm/@aws-sdk+nested-clients@3.996.
|
|
29616
|
+
// ../node_modules/.pnpm/@aws-sdk+nested-clients@3.996.11/node_modules/@aws-sdk/nested-clients/dist-cjs/submodules/sts/endpoint/endpointResolver.js
|
|
29145
29617
|
var require_endpointResolver5 = __commonJS((exports) => {
|
|
29146
29618
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
29147
29619
|
exports.defaultEndpointResolver = undefined;
|
|
@@ -29162,7 +29634,7 @@ var require_endpointResolver5 = __commonJS((exports) => {
|
|
|
29162
29634
|
util_endpoints_2.customEndpointFunctions.aws = util_endpoints_1.awsEndpointFunctions;
|
|
29163
29635
|
});
|
|
29164
29636
|
|
|
29165
|
-
// ../node_modules/.pnpm/@aws-sdk+nested-clients@3.996.
|
|
29637
|
+
// ../node_modules/.pnpm/@aws-sdk+nested-clients@3.996.11/node_modules/@aws-sdk/nested-clients/dist-cjs/submodules/sts/models/STSServiceException.js
|
|
29166
29638
|
var require_STSServiceException = __commonJS((exports) => {
|
|
29167
29639
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
29168
29640
|
exports.STSServiceException = exports.__ServiceException = undefined;
|
|
@@ -29180,7 +29652,7 @@ var require_STSServiceException = __commonJS((exports) => {
|
|
|
29180
29652
|
exports.STSServiceException = STSServiceException;
|
|
29181
29653
|
});
|
|
29182
29654
|
|
|
29183
|
-
// ../node_modules/.pnpm/@aws-sdk+nested-clients@3.996.
|
|
29655
|
+
// ../node_modules/.pnpm/@aws-sdk+nested-clients@3.996.11/node_modules/@aws-sdk/nested-clients/dist-cjs/submodules/sts/models/errors.js
|
|
29184
29656
|
var require_errors5 = __commonJS((exports) => {
|
|
29185
29657
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
29186
29658
|
exports.IDPCommunicationErrorException = exports.InvalidIdentityTokenException = exports.IDPRejectedClaimException = exports.RegionDisabledException = exports.PackedPolicyTooLargeException = exports.MalformedPolicyDocumentException = exports.ExpiredTokenException = undefined;
|
|
@@ -29285,7 +29757,7 @@ var require_errors5 = __commonJS((exports) => {
|
|
|
29285
29757
|
exports.IDPCommunicationErrorException = IDPCommunicationErrorException;
|
|
29286
29758
|
});
|
|
29287
29759
|
|
|
29288
|
-
// ../node_modules/.pnpm/@aws-sdk+nested-clients@3.996.
|
|
29760
|
+
// ../node_modules/.pnpm/@aws-sdk+nested-clients@3.996.11/node_modules/@aws-sdk/nested-clients/dist-cjs/submodules/sts/schemas/schemas_0.js
|
|
29289
29761
|
var require_schemas_05 = __commonJS((exports) => {
|
|
29290
29762
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
29291
29763
|
exports.AssumeRoleWithWebIdentity$ = exports.AssumeRole$ = exports.Tag$ = exports.ProvidedContext$ = exports.PolicyDescriptorType$ = exports.Credentials$ = exports.AssumeRoleWithWebIdentityResponse$ = exports.AssumeRoleWithWebIdentityRequest$ = exports.AssumeRoleResponse$ = exports.AssumeRoleRequest$ = exports.AssumedRoleUser$ = exports.errorTypeRegistries = exports.RegionDisabledException$ = exports.PackedPolicyTooLargeException$ = exports.MalformedPolicyDocumentException$ = exports.InvalidIdentityTokenException$ = exports.IDPRejectedClaimException$ = exports.IDPCommunicationErrorException$ = exports.ExpiredTokenException$ = exports.STSServiceException$ = undefined;
|
|
@@ -29483,7 +29955,7 @@ var require_schemas_05 = __commonJS((exports) => {
|
|
|
29483
29955
|
];
|
|
29484
29956
|
});
|
|
29485
29957
|
|
|
29486
|
-
// ../node_modules/.pnpm/@aws-sdk+nested-clients@3.996.
|
|
29958
|
+
// ../node_modules/.pnpm/@aws-sdk+nested-clients@3.996.11/node_modules/@aws-sdk/nested-clients/dist-cjs/submodules/sts/runtimeConfig.shared.js
|
|
29487
29959
|
var require_runtimeConfig_shared4 = __commonJS((exports) => {
|
|
29488
29960
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
29489
29961
|
exports.getRuntimeConfig = undefined;
|
|
@@ -29536,7 +30008,7 @@ var require_runtimeConfig_shared4 = __commonJS((exports) => {
|
|
|
29536
30008
|
exports.getRuntimeConfig = getRuntimeConfig;
|
|
29537
30009
|
});
|
|
29538
30010
|
|
|
29539
|
-
// ../node_modules/.pnpm/@aws-sdk+nested-clients@3.996.
|
|
30011
|
+
// ../node_modules/.pnpm/@aws-sdk+nested-clients@3.996.11/node_modules/@aws-sdk/nested-clients/dist-cjs/submodules/sts/runtimeConfig.js
|
|
29540
30012
|
var require_runtimeConfig4 = __commonJS((exports) => {
|
|
29541
30013
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
29542
30014
|
exports.getRuntimeConfig = undefined;
|
|
@@ -29602,7 +30074,7 @@ var require_runtimeConfig4 = __commonJS((exports) => {
|
|
|
29602
30074
|
exports.getRuntimeConfig = getRuntimeConfig;
|
|
29603
30075
|
});
|
|
29604
30076
|
|
|
29605
|
-
// ../node_modules/.pnpm/@aws-sdk+nested-clients@3.996.
|
|
30077
|
+
// ../node_modules/.pnpm/@aws-sdk+nested-clients@3.996.11/node_modules/@aws-sdk/nested-clients/dist-cjs/submodules/sts/auth/httpAuthExtensionConfiguration.js
|
|
29606
30078
|
var require_httpAuthExtensionConfiguration = __commonJS((exports) => {
|
|
29607
30079
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
29608
30080
|
exports.resolveHttpAuthRuntimeConfig = exports.getHttpAuthExtensionConfiguration = undefined;
|
|
@@ -29647,7 +30119,7 @@ var require_httpAuthExtensionConfiguration = __commonJS((exports) => {
|
|
|
29647
30119
|
exports.resolveHttpAuthRuntimeConfig = resolveHttpAuthRuntimeConfig;
|
|
29648
30120
|
});
|
|
29649
30121
|
|
|
29650
|
-
// ../node_modules/.pnpm/@aws-sdk+nested-clients@3.996.
|
|
30122
|
+
// ../node_modules/.pnpm/@aws-sdk+nested-clients@3.996.11/node_modules/@aws-sdk/nested-clients/dist-cjs/submodules/sts/runtimeExtensions.js
|
|
29651
30123
|
var require_runtimeExtensions = __commonJS((exports) => {
|
|
29652
30124
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
29653
30125
|
exports.resolveRuntimeExtensions = undefined;
|
|
@@ -29663,7 +30135,7 @@ var require_runtimeExtensions = __commonJS((exports) => {
|
|
|
29663
30135
|
exports.resolveRuntimeExtensions = resolveRuntimeExtensions;
|
|
29664
30136
|
});
|
|
29665
30137
|
|
|
29666
|
-
// ../node_modules/.pnpm/@aws-sdk+nested-clients@3.996.
|
|
30138
|
+
// ../node_modules/.pnpm/@aws-sdk+nested-clients@3.996.11/node_modules/@aws-sdk/nested-clients/dist-cjs/submodules/sts/STSClient.js
|
|
29667
30139
|
var require_STSClient = __commonJS((exports) => {
|
|
29668
30140
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
29669
30141
|
exports.STSClient = exports.__Client = undefined;
|
|
@@ -29723,7 +30195,7 @@ var require_STSClient = __commonJS((exports) => {
|
|
|
29723
30195
|
exports.STSClient = STSClient;
|
|
29724
30196
|
});
|
|
29725
30197
|
|
|
29726
|
-
// ../node_modules/.pnpm/@aws-sdk+nested-clients@3.996.
|
|
30198
|
+
// ../node_modules/.pnpm/@aws-sdk+nested-clients@3.996.11/node_modules/@aws-sdk/nested-clients/dist-cjs/submodules/sts/index.js
|
|
29727
30199
|
var require_sts = __commonJS((exports) => {
|
|
29728
30200
|
var STSClient = require_STSClient();
|
|
29729
30201
|
var smithyClient = require_dist_cjs23();
|
|
@@ -29904,7 +30376,7 @@ var require_sts = __commonJS((exports) => {
|
|
|
29904
30376
|
});
|
|
29905
30377
|
});
|
|
29906
30378
|
|
|
29907
|
-
// ../node_modules/.pnpm/@aws-sdk+credential-provider-process@3.972.
|
|
30379
|
+
// ../node_modules/.pnpm/@aws-sdk+credential-provider-process@3.972.19/node_modules/@aws-sdk/credential-provider-process/dist-cjs/index.js
|
|
29908
30380
|
var require_dist_cjs62 = __commonJS((exports) => {
|
|
29909
30381
|
var sharedIniFileLoader = require_dist_cjs45();
|
|
29910
30382
|
var propertyProvider = require_dist_cjs19();
|
|
@@ -29977,7 +30449,7 @@ var require_dist_cjs62 = __commonJS((exports) => {
|
|
|
29977
30449
|
exports.fromProcess = fromProcess;
|
|
29978
30450
|
});
|
|
29979
30451
|
|
|
29980
|
-
// ../node_modules/.pnpm/@aws-sdk+credential-provider-web-identity@3.972.
|
|
30452
|
+
// ../node_modules/.pnpm/@aws-sdk+credential-provider-web-identity@3.972.21/node_modules/@aws-sdk/credential-provider-web-identity/dist-cjs/fromWebToken.js
|
|
29981
30453
|
var require_fromWebToken = __commonJS((exports) => {
|
|
29982
30454
|
var __createBinding = exports && exports.__createBinding || (Object.create ? function(o, m, k, k2) {
|
|
29983
30455
|
if (k2 === undefined)
|
|
@@ -30053,7 +30525,7 @@ var require_fromWebToken = __commonJS((exports) => {
|
|
|
30053
30525
|
exports.fromWebToken = fromWebToken;
|
|
30054
30526
|
});
|
|
30055
30527
|
|
|
30056
|
-
// ../node_modules/.pnpm/@aws-sdk+credential-provider-web-identity@3.972.
|
|
30528
|
+
// ../node_modules/.pnpm/@aws-sdk+credential-provider-web-identity@3.972.21/node_modules/@aws-sdk/credential-provider-web-identity/dist-cjs/fromTokenFile.js
|
|
30057
30529
|
var require_fromTokenFile = __commonJS((exports) => {
|
|
30058
30530
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
30059
30531
|
exports.fromTokenFile = undefined;
|
|
@@ -30089,7 +30561,7 @@ var require_fromTokenFile = __commonJS((exports) => {
|
|
|
30089
30561
|
exports.fromTokenFile = fromTokenFile;
|
|
30090
30562
|
});
|
|
30091
30563
|
|
|
30092
|
-
// ../node_modules/.pnpm/@aws-sdk+credential-provider-web-identity@3.972.
|
|
30564
|
+
// ../node_modules/.pnpm/@aws-sdk+credential-provider-web-identity@3.972.21/node_modules/@aws-sdk/credential-provider-web-identity/dist-cjs/index.js
|
|
30093
30565
|
var require_dist_cjs63 = __commonJS((exports) => {
|
|
30094
30566
|
var fromTokenFile = require_fromTokenFile();
|
|
30095
30567
|
var fromWebToken = require_fromWebToken();
|
|
@@ -30111,7 +30583,7 @@ var require_dist_cjs63 = __commonJS((exports) => {
|
|
|
30111
30583
|
});
|
|
30112
30584
|
});
|
|
30113
30585
|
|
|
30114
|
-
// ../node_modules/.pnpm/@aws-sdk+credential-provider-ini@3.972.
|
|
30586
|
+
// ../node_modules/.pnpm/@aws-sdk+credential-provider-ini@3.972.21/node_modules/@aws-sdk/credential-provider-ini/dist-cjs/index.js
|
|
30115
30587
|
var require_dist_cjs64 = __commonJS((exports) => {
|
|
30116
30588
|
var sharedIniFileLoader = require_dist_cjs45();
|
|
30117
30589
|
var propertyProvider = require_dist_cjs19();
|
|
@@ -30299,7 +30771,7 @@ var require_dist_cjs64 = __commonJS((exports) => {
|
|
|
30299
30771
|
exports.fromIni = fromIni;
|
|
30300
30772
|
});
|
|
30301
30773
|
|
|
30302
|
-
// ../node_modules/.pnpm/@aws-sdk+credential-provider-node@3.972.
|
|
30774
|
+
// ../node_modules/.pnpm/@aws-sdk+credential-provider-node@3.972.22/node_modules/@aws-sdk/credential-provider-node/dist-cjs/index.js
|
|
30303
30775
|
var require_dist_cjs65 = __commonJS((exports) => {
|
|
30304
30776
|
var credentialProviderEnv = require_dist_cjs51();
|
|
30305
30777
|
var propertyProvider = require_dist_cjs19();
|
|
@@ -31401,7 +31873,7 @@ var require_dist_cjs70 = __commonJS((exports) => {
|
|
|
31401
31873
|
exports.readableStreamHasher = readableStreamHasher;
|
|
31402
31874
|
});
|
|
31403
31875
|
|
|
31404
|
-
// ../node_modules/.pnpm/@aws-sdk+client-s3@3.
|
|
31876
|
+
// ../node_modules/.pnpm/@aws-sdk+client-s3@3.1012.0/node_modules/@aws-sdk/client-s3/dist-cjs/runtimeConfig.shared.js
|
|
31405
31877
|
var require_runtimeConfig_shared5 = __commonJS((exports) => {
|
|
31406
31878
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
31407
31879
|
exports.getRuntimeConfig = undefined;
|
|
@@ -31460,7 +31932,7 @@ var require_runtimeConfig_shared5 = __commonJS((exports) => {
|
|
|
31460
31932
|
exports.getRuntimeConfig = getRuntimeConfig;
|
|
31461
31933
|
});
|
|
31462
31934
|
|
|
31463
|
-
// ../node_modules/.pnpm/@aws-sdk+client-s3@3.
|
|
31935
|
+
// ../node_modules/.pnpm/@aws-sdk+client-s3@3.1012.0/node_modules/@aws-sdk/client-s3/dist-cjs/runtimeConfig.js
|
|
31464
31936
|
var require_runtimeConfig5 = __commonJS((exports) => {
|
|
31465
31937
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
31466
31938
|
exports.getRuntimeConfig = undefined;
|
|
@@ -31797,7 +32269,7 @@ var require_dist_cjs73 = __commonJS((exports) => {
|
|
|
31797
32269
|
exports.waiterServiceDefaults = waiterServiceDefaults;
|
|
31798
32270
|
});
|
|
31799
32271
|
|
|
31800
|
-
// ../node_modules/.pnpm/@aws-sdk+client-s3@3.
|
|
32272
|
+
// ../node_modules/.pnpm/@aws-sdk+client-s3@3.1012.0/node_modules/@aws-sdk/client-s3/dist-cjs/index.js
|
|
31801
32273
|
var require_dist_cjs74 = __commonJS((exports) => {
|
|
31802
32274
|
var middlewareExpectContinue = require_dist_cjs3();
|
|
31803
32275
|
var middlewareFlexibleChecksums = require_dist_cjs30();
|
|
@@ -62838,7 +63310,7 @@ var useKey = (envKey, initKey = "context") => {
|
|
|
62838
63310
|
return null;
|
|
62839
63311
|
};
|
|
62840
63312
|
|
|
62841
|
-
// ../node_modules/.pnpm/@kevisual+router@0.1.
|
|
63313
|
+
// ../node_modules/.pnpm/@kevisual+router@0.1.6/node_modules/@kevisual/router/dist/router.js
|
|
62842
63314
|
import { createRequire as createRequire2 } from "node:module";
|
|
62843
63315
|
import { webcrypto as crypto2 } from "node:crypto";
|
|
62844
63316
|
import http from "node:http";
|
|
@@ -80356,7 +80828,7 @@ class QueryRouter {
|
|
|
80356
80828
|
console.error("=====debug====:", e);
|
|
80357
80829
|
console.error("=====debug====:[path:key]:", `${route.path}-${route.key}`);
|
|
80358
80830
|
}
|
|
80359
|
-
if (e instanceof CustomError) {
|
|
80831
|
+
if (e instanceof CustomError || e?.code) {
|
|
80360
80832
|
ctx.code = e.code;
|
|
80361
80833
|
ctx.message = e.message;
|
|
80362
80834
|
} else {
|
|
@@ -80619,6 +81091,39 @@ class QueryRouterServer extends QueryRouter {
|
|
|
80619
81091
|
const { path, key, id } = api2;
|
|
80620
81092
|
return this.run({ path, key, id, payload }, ctx);
|
|
80621
81093
|
}
|
|
81094
|
+
async createAuth(fun) {
|
|
81095
|
+
this.route({
|
|
81096
|
+
path: "auth",
|
|
81097
|
+
key: "auth",
|
|
81098
|
+
id: "auth",
|
|
81099
|
+
description: "token验证"
|
|
81100
|
+
}).define(async (ctx) => {
|
|
81101
|
+
if (fun) {
|
|
81102
|
+
await fun(ctx, "auth");
|
|
81103
|
+
}
|
|
81104
|
+
}).addTo(this, { overwrite: false });
|
|
81105
|
+
this.route({
|
|
81106
|
+
path: "auth-admin",
|
|
81107
|
+
key: "auth-admin",
|
|
81108
|
+
id: "auth-admin",
|
|
81109
|
+
description: "admin token验证",
|
|
81110
|
+
middleware: ["auth"]
|
|
81111
|
+
}).define(async (ctx) => {
|
|
81112
|
+
if (fun) {
|
|
81113
|
+
await fun(ctx, "auth-admin");
|
|
81114
|
+
}
|
|
81115
|
+
}).addTo(this, { overwrite: false });
|
|
81116
|
+
this.route({
|
|
81117
|
+
path: "auth-can",
|
|
81118
|
+
key: "auth-can",
|
|
81119
|
+
id: "auth-can",
|
|
81120
|
+
description: "权限验证"
|
|
81121
|
+
}).define(async (ctx) => {
|
|
81122
|
+
if (fun) {
|
|
81123
|
+
await fun(ctx, "auth-can");
|
|
81124
|
+
}
|
|
81125
|
+
}).addTo(this, { overwrite: false });
|
|
81126
|
+
}
|
|
80622
81127
|
}
|
|
80623
81128
|
var isNode2 = typeof process !== "undefined" && process.versions != null && process.versions.node != null;
|
|
80624
81129
|
var isBrowser22 = typeof window !== "undefined" && typeof document !== "undefined" && typeof document.createElement === "function";
|
|
@@ -81543,7 +82048,7 @@ class App extends QueryRouterServer {
|
|
|
81543
82048
|
}
|
|
81544
82049
|
}
|
|
81545
82050
|
|
|
81546
|
-
// ../node_modules/.pnpm/@kevisual+router@0.1.
|
|
82051
|
+
// ../node_modules/.pnpm/@kevisual+router@0.1.6/node_modules/@kevisual/router/dist/router-simple.js
|
|
81547
82052
|
import url3 from "node:url";
|
|
81548
82053
|
var __create3 = Object.create;
|
|
81549
82054
|
var __getProtoOf3 = Object.getPrototypeOf;
|
|
@@ -83721,7 +84226,7 @@ class AssistantConfig {
|
|
|
83721
84226
|
const routes = ["@kevisual/cnb/routes"];
|
|
83722
84227
|
if (isCNB) {
|
|
83723
84228
|
routes.push("@kevisual/project-search/routes");
|
|
83724
|
-
id = "cnb
|
|
84229
|
+
id = "dev-cnb";
|
|
83725
84230
|
}
|
|
83726
84231
|
return {
|
|
83727
84232
|
app: {
|
|
@@ -92550,7 +93055,7 @@ class RemoteApp {
|
|
|
92550
93055
|
}
|
|
92551
93056
|
}
|
|
92552
93057
|
|
|
92553
|
-
// ../node_modules/.pnpm/@kevisual+query@0.0.
|
|
93058
|
+
// ../node_modules/.pnpm/@kevisual+query@0.0.55/node_modules/@kevisual/query/dist/query-browser.js
|
|
92554
93059
|
var isTextForContentType = (contentType) => {
|
|
92555
93060
|
if (!contentType)
|
|
92556
93061
|
return false;
|
|
@@ -92753,10 +93258,6 @@ class Query {
|
|
|
92753
93258
|
});
|
|
92754
93259
|
}
|
|
92755
93260
|
}
|
|
92756
|
-
const headers2 = req.headers || {};
|
|
92757
|
-
if (options?.token && !headers2["Authorization"]) {
|
|
92758
|
-
headers2["Authorization"] = `Bearer ${options.token}`;
|
|
92759
|
-
}
|
|
92760
93261
|
} catch (e) {
|
|
92761
93262
|
console.error("request beforeFn error", e, req);
|
|
92762
93263
|
return wrapperError({
|
|
@@ -92817,20 +93318,20 @@ class Query {
|
|
|
92817
93318
|
this.afterResponse = fn;
|
|
92818
93319
|
}
|
|
92819
93320
|
async fetchText(urlOrOptions, options) {
|
|
92820
|
-
let _options = {
|
|
93321
|
+
let _options = { ...options };
|
|
92821
93322
|
if (typeof urlOrOptions === "string" && !_options.url) {
|
|
92822
93323
|
_options.url = urlOrOptions;
|
|
92823
93324
|
}
|
|
92824
93325
|
if (typeof urlOrOptions === "object") {
|
|
92825
93326
|
_options = { ...urlOrOptions, ..._options };
|
|
92826
93327
|
}
|
|
92827
|
-
const headers = { ...this.headers, ..._options.headers };
|
|
92828
|
-
if (options?.token && !headers["Authorization"] && _options.method !== "GET") {
|
|
92829
|
-
headers["Authorization"] = `Bearer ${options.token}`;
|
|
92830
|
-
}
|
|
92831
93328
|
const res = await adapter({
|
|
93329
|
+
method: "GET",
|
|
92832
93330
|
..._options,
|
|
92833
|
-
headers
|
|
93331
|
+
headers: {
|
|
93332
|
+
...this.headers,
|
|
93333
|
+
..._options?.headers || {}
|
|
93334
|
+
}
|
|
92834
93335
|
});
|
|
92835
93336
|
if (res && !res.code) {
|
|
92836
93337
|
return {
|
|
@@ -92842,7 +93343,7 @@ class Query {
|
|
|
92842
93343
|
}
|
|
92843
93344
|
}
|
|
92844
93345
|
|
|
92845
|
-
// ../node_modules/.pnpm/@kevisual+router@0.1.
|
|
93346
|
+
// ../node_modules/.pnpm/@kevisual+router@0.1.6/node_modules/@kevisual/router/dist/router-browser.js
|
|
92846
93347
|
var __create5 = Object.create;
|
|
92847
93348
|
var __getProtoOf5 = Object.getPrototypeOf;
|
|
92848
93349
|
var __defProp5 = Object.defineProperty;
|
|
@@ -139907,7 +140408,7 @@ var checkLocalUser = async (opts) => {
|
|
|
139907
140408
|
}
|
|
139908
140409
|
}
|
|
139909
140410
|
};
|
|
139910
|
-
// ../node_modules/.pnpm/@kevisual+query@0.0.
|
|
140411
|
+
// ../node_modules/.pnpm/@kevisual+query@0.0.55/node_modules/@kevisual/query/dist/query.js
|
|
139911
140412
|
var isTextForContentType2 = (contentType) => {
|
|
139912
140413
|
if (!contentType)
|
|
139913
140414
|
return false;
|
|
@@ -140110,10 +140611,6 @@ class Query2 {
|
|
|
140110
140611
|
});
|
|
140111
140612
|
}
|
|
140112
140613
|
}
|
|
140113
|
-
const headers2 = req.headers || {};
|
|
140114
|
-
if (options?.token && !headers2["Authorization"]) {
|
|
140115
|
-
headers2["Authorization"] = `Bearer ${options.token}`;
|
|
140116
|
-
}
|
|
140117
140614
|
} catch (e) {
|
|
140118
140615
|
console.error("request beforeFn error", e, req);
|
|
140119
140616
|
return wrapperError2({
|
|
@@ -140174,20 +140671,20 @@ class Query2 {
|
|
|
140174
140671
|
this.afterResponse = fn;
|
|
140175
140672
|
}
|
|
140176
140673
|
async fetchText(urlOrOptions, options) {
|
|
140177
|
-
let _options = {
|
|
140674
|
+
let _options = { ...options };
|
|
140178
140675
|
if (typeof urlOrOptions === "string" && !_options.url) {
|
|
140179
140676
|
_options.url = urlOrOptions;
|
|
140180
140677
|
}
|
|
140181
140678
|
if (typeof urlOrOptions === "object") {
|
|
140182
140679
|
_options = { ...urlOrOptions, ..._options };
|
|
140183
140680
|
}
|
|
140184
|
-
const headers = { ...this.headers, ..._options.headers };
|
|
140185
|
-
if (options?.token && !headers["Authorization"] && _options.method !== "GET") {
|
|
140186
|
-
headers["Authorization"] = `Bearer ${options.token}`;
|
|
140187
|
-
}
|
|
140188
140681
|
const res = await adapter2({
|
|
140682
|
+
method: "GET",
|
|
140189
140683
|
..._options,
|
|
140190
|
-
headers
|
|
140684
|
+
headers: {
|
|
140685
|
+
...this.headers,
|
|
140686
|
+
..._options?.headers || {}
|
|
140687
|
+
}
|
|
140191
140688
|
});
|
|
140192
140689
|
if (res && !res.code) {
|
|
140193
140690
|
return {
|
|
@@ -147295,7 +147792,7 @@ var createOSInfo = (more = false) => {
|
|
|
147295
147792
|
return labels;
|
|
147296
147793
|
};
|
|
147297
147794
|
|
|
147298
|
-
// src/routes/cnb-board/cnb-
|
|
147795
|
+
// src/routes/cnb-board/dev-cnb-env.ts
|
|
147299
147796
|
var notCNBCheck = (ctx) => {
|
|
147300
147797
|
const isCNB = useKey("CNB");
|
|
147301
147798
|
if (!isCNB) {
|
|
@@ -149128,7 +149625,7 @@ var import_busboy = __toESM(require_lib2(), 1);
|
|
|
149128
149625
|
import path20 from "path";
|
|
149129
149626
|
import fs23 from "fs";
|
|
149130
149627
|
|
|
149131
|
-
// ../node_modules/.pnpm/@kevisual+router@0.1.
|
|
149628
|
+
// ../node_modules/.pnpm/@kevisual+router@0.1.6/node_modules/@kevisual/router/src/server/cookie.ts
|
|
149132
149629
|
var NullObject2 = /* @__PURE__ */ (() => {
|
|
149133
149630
|
const C2 = function() {};
|
|
149134
149631
|
C2.prototype = Object.create(null);
|