@cloudsnorkel/cdk-github-runners 0.5.2 → 0.5.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.jsii +61 -27
- package/API.md +31 -4
- package/lib/lambdas/delete-runner/index.js +38 -50
- package/lib/lambdas/setup/index.html +12 -12
- package/lib/lambdas/status/index.js +38 -50
- package/lib/lambdas/token-retriever/index.js +38 -50
- package/lib/lambdas/update-lambda/index.js +1267 -1124
- package/lib/providers/codebuild.js +1 -1
- package/lib/providers/common.js +3 -3
- package/lib/providers/fargate.d.ts +12 -2
- package/lib/providers/fargate.js +4 -2
- package/lib/providers/image-builders/codebuild.js +1 -1
- package/lib/providers/image-builders/container.js +2 -2
- package/lib/providers/image-builders/static.js +1 -1
- package/lib/providers/lambda.js +1 -1
- package/lib/runner.js +1 -1
- package/lib/secrets.js +1 -1
- package/package.json +8 -8
|
@@ -15315,7 +15315,7 @@ var require_package = __commonJS({
|
|
|
15315
15315
|
module2.exports = {
|
|
15316
15316
|
name: "@aws-sdk/client-lambda",
|
|
15317
15317
|
description: "AWS SDK for JavaScript Lambda Client for Node.js, Browser and React Native",
|
|
15318
|
-
version: "3.
|
|
15318
|
+
version: "3.188.0",
|
|
15319
15319
|
scripts: {
|
|
15320
15320
|
build: "concurrently 'yarn:build:cjs' 'yarn:build:es' 'yarn:build:types'",
|
|
15321
15321
|
"build:cjs": "tsc -p tsconfig.cjs.json",
|
|
@@ -15333,42 +15333,42 @@ var require_package = __commonJS({
|
|
|
15333
15333
|
dependencies: {
|
|
15334
15334
|
"@aws-crypto/sha256-browser": "2.0.0",
|
|
15335
15335
|
"@aws-crypto/sha256-js": "2.0.0",
|
|
15336
|
-
"@aws-sdk/client-sts": "3.
|
|
15337
|
-
"@aws-sdk/config-resolver": "3.
|
|
15338
|
-
"@aws-sdk/credential-provider-node": "3.
|
|
15339
|
-
"@aws-sdk/fetch-http-handler": "3.
|
|
15340
|
-
"@aws-sdk/hash-node": "3.
|
|
15341
|
-
"@aws-sdk/invalid-dependency": "3.
|
|
15342
|
-
"@aws-sdk/middleware-content-length": "3.
|
|
15343
|
-
"@aws-sdk/middleware-host-header": "3.
|
|
15344
|
-
"@aws-sdk/middleware-logger": "3.
|
|
15345
|
-
"@aws-sdk/middleware-recursion-detection": "3.
|
|
15346
|
-
"@aws-sdk/middleware-retry": "3.
|
|
15347
|
-
"@aws-sdk/middleware-serde": "3.
|
|
15348
|
-
"@aws-sdk/middleware-signing": "3.
|
|
15349
|
-
"@aws-sdk/middleware-stack": "3.
|
|
15350
|
-
"@aws-sdk/middleware-user-agent": "3.
|
|
15351
|
-
"@aws-sdk/node-config-provider": "3.
|
|
15352
|
-
"@aws-sdk/node-http-handler": "3.
|
|
15353
|
-
"@aws-sdk/protocol-http": "3.
|
|
15354
|
-
"@aws-sdk/smithy-client": "3.
|
|
15355
|
-
"@aws-sdk/types": "3.
|
|
15356
|
-
"@aws-sdk/url-parser": "3.
|
|
15357
|
-
"@aws-sdk/util-base64-browser": "3.
|
|
15358
|
-
"@aws-sdk/util-base64-node": "3.
|
|
15359
|
-
"@aws-sdk/util-body-length-browser": "3.
|
|
15360
|
-
"@aws-sdk/util-body-length-node": "3.
|
|
15361
|
-
"@aws-sdk/util-defaults-mode-browser": "3.
|
|
15362
|
-
"@aws-sdk/util-defaults-mode-node": "3.
|
|
15363
|
-
"@aws-sdk/util-user-agent-browser": "3.
|
|
15364
|
-
"@aws-sdk/util-user-agent-node": "3.
|
|
15365
|
-
"@aws-sdk/util-utf8-browser": "3.
|
|
15366
|
-
"@aws-sdk/util-utf8-node": "3.
|
|
15367
|
-
"@aws-sdk/util-waiter": "3.
|
|
15336
|
+
"@aws-sdk/client-sts": "3.188.0",
|
|
15337
|
+
"@aws-sdk/config-resolver": "3.188.0",
|
|
15338
|
+
"@aws-sdk/credential-provider-node": "3.188.0",
|
|
15339
|
+
"@aws-sdk/fetch-http-handler": "3.188.0",
|
|
15340
|
+
"@aws-sdk/hash-node": "3.188.0",
|
|
15341
|
+
"@aws-sdk/invalid-dependency": "3.188.0",
|
|
15342
|
+
"@aws-sdk/middleware-content-length": "3.188.0",
|
|
15343
|
+
"@aws-sdk/middleware-host-header": "3.188.0",
|
|
15344
|
+
"@aws-sdk/middleware-logger": "3.188.0",
|
|
15345
|
+
"@aws-sdk/middleware-recursion-detection": "3.188.0",
|
|
15346
|
+
"@aws-sdk/middleware-retry": "3.188.0",
|
|
15347
|
+
"@aws-sdk/middleware-serde": "3.188.0",
|
|
15348
|
+
"@aws-sdk/middleware-signing": "3.188.0",
|
|
15349
|
+
"@aws-sdk/middleware-stack": "3.188.0",
|
|
15350
|
+
"@aws-sdk/middleware-user-agent": "3.188.0",
|
|
15351
|
+
"@aws-sdk/node-config-provider": "3.188.0",
|
|
15352
|
+
"@aws-sdk/node-http-handler": "3.188.0",
|
|
15353
|
+
"@aws-sdk/protocol-http": "3.188.0",
|
|
15354
|
+
"@aws-sdk/smithy-client": "3.188.0",
|
|
15355
|
+
"@aws-sdk/types": "3.188.0",
|
|
15356
|
+
"@aws-sdk/url-parser": "3.188.0",
|
|
15357
|
+
"@aws-sdk/util-base64-browser": "3.188.0",
|
|
15358
|
+
"@aws-sdk/util-base64-node": "3.188.0",
|
|
15359
|
+
"@aws-sdk/util-body-length-browser": "3.188.0",
|
|
15360
|
+
"@aws-sdk/util-body-length-node": "3.188.0",
|
|
15361
|
+
"@aws-sdk/util-defaults-mode-browser": "3.188.0",
|
|
15362
|
+
"@aws-sdk/util-defaults-mode-node": "3.188.0",
|
|
15363
|
+
"@aws-sdk/util-user-agent-browser": "3.188.0",
|
|
15364
|
+
"@aws-sdk/util-user-agent-node": "3.188.0",
|
|
15365
|
+
"@aws-sdk/util-utf8-browser": "3.188.0",
|
|
15366
|
+
"@aws-sdk/util-utf8-node": "3.188.0",
|
|
15367
|
+
"@aws-sdk/util-waiter": "3.188.0",
|
|
15368
15368
|
tslib: "^2.3.1"
|
|
15369
15369
|
},
|
|
15370
15370
|
devDependencies: {
|
|
15371
|
-
"@aws-sdk/service-client-documentation-generator": "3.
|
|
15371
|
+
"@aws-sdk/service-client-documentation-generator": "3.188.0",
|
|
15372
15372
|
"@tsconfig/recommended": "1.0.1",
|
|
15373
15373
|
"@types/node": "^12.7.5",
|
|
15374
15374
|
concurrently: "7.0.0",
|
|
@@ -15631,282 +15631,6 @@ var require_models_02 = __commonJS({
|
|
|
15631
15631
|
}
|
|
15632
15632
|
});
|
|
15633
15633
|
|
|
15634
|
-
// node_modules/entities/lib/maps/entities.json
|
|
15635
|
-
var require_entities = __commonJS({
|
|
15636
|
-
"node_modules/entities/lib/maps/entities.json"(exports, module2) {
|
|
15637
|
-
module2.exports = { Aacute: "\xC1", aacute: "\xE1", Abreve: "\u0102", abreve: "\u0103", ac: "\u223E", acd: "\u223F", acE: "\u223E\u0333", Acirc: "\xC2", acirc: "\xE2", acute: "\xB4", Acy: "\u0410", acy: "\u0430", AElig: "\xC6", aelig: "\xE6", af: "\u2061", Afr: "\u{1D504}", afr: "\u{1D51E}", Agrave: "\xC0", agrave: "\xE0", alefsym: "\u2135", aleph: "\u2135", Alpha: "\u0391", alpha: "\u03B1", Amacr: "\u0100", amacr: "\u0101", amalg: "\u2A3F", amp: "&", AMP: "&", andand: "\u2A55", And: "\u2A53", and: "\u2227", andd: "\u2A5C", andslope: "\u2A58", andv: "\u2A5A", ang: "\u2220", ange: "\u29A4", angle: "\u2220", angmsdaa: "\u29A8", angmsdab: "\u29A9", angmsdac: "\u29AA", angmsdad: "\u29AB", angmsdae: "\u29AC", angmsdaf: "\u29AD", angmsdag: "\u29AE", angmsdah: "\u29AF", angmsd: "\u2221", angrt: "\u221F", angrtvb: "\u22BE", angrtvbd: "\u299D", angsph: "\u2222", angst: "\xC5", angzarr: "\u237C", Aogon: "\u0104", aogon: "\u0105", Aopf: "\u{1D538}", aopf: "\u{1D552}", apacir: "\u2A6F", ap: "\u2248", apE: "\u2A70", ape: "\u224A", apid: "\u224B", apos: "'", ApplyFunction: "\u2061", approx: "\u2248", approxeq: "\u224A", Aring: "\xC5", aring: "\xE5", Ascr: "\u{1D49C}", ascr: "\u{1D4B6}", Assign: "\u2254", ast: "*", asymp: "\u2248", asympeq: "\u224D", Atilde: "\xC3", atilde: "\xE3", Auml: "\xC4", auml: "\xE4", awconint: "\u2233", awint: "\u2A11", backcong: "\u224C", backepsilon: "\u03F6", backprime: "\u2035", backsim: "\u223D", backsimeq: "\u22CD", Backslash: "\u2216", Barv: "\u2AE7", barvee: "\u22BD", barwed: "\u2305", Barwed: "\u2306", barwedge: "\u2305", bbrk: "\u23B5", bbrktbrk: "\u23B6", bcong: "\u224C", Bcy: "\u0411", bcy: "\u0431", bdquo: "\u201E", becaus: "\u2235", because: "\u2235", Because: "\u2235", bemptyv: "\u29B0", bepsi: "\u03F6", bernou: "\u212C", Bernoullis: "\u212C", Beta: "\u0392", beta: "\u03B2", beth: "\u2136", between: "\u226C", Bfr: "\u{1D505}", bfr: "\u{1D51F}", bigcap: "\u22C2", bigcirc: "\u25EF", bigcup: "\u22C3", bigodot: "\u2A00", bigoplus: "\u2A01", bigotimes: "\u2A02", bigsqcup: "\u2A06", bigstar: "\u2605", bigtriangledown: "\u25BD", bigtriangleup: "\u25B3", biguplus: "\u2A04", bigvee: "\u22C1", bigwedge: "\u22C0", bkarow: "\u290D", blacklozenge: "\u29EB", blacksquare: "\u25AA", blacktriangle: "\u25B4", blacktriangledown: "\u25BE", blacktriangleleft: "\u25C2", blacktriangleright: "\u25B8", blank: "\u2423", blk12: "\u2592", blk14: "\u2591", blk34: "\u2593", block: "\u2588", bne: "=\u20E5", bnequiv: "\u2261\u20E5", bNot: "\u2AED", bnot: "\u2310", Bopf: "\u{1D539}", bopf: "\u{1D553}", bot: "\u22A5", bottom: "\u22A5", bowtie: "\u22C8", boxbox: "\u29C9", boxdl: "\u2510", boxdL: "\u2555", boxDl: "\u2556", boxDL: "\u2557", boxdr: "\u250C", boxdR: "\u2552", boxDr: "\u2553", boxDR: "\u2554", boxh: "\u2500", boxH: "\u2550", boxhd: "\u252C", boxHd: "\u2564", boxhD: "\u2565", boxHD: "\u2566", boxhu: "\u2534", boxHu: "\u2567", boxhU: "\u2568", boxHU: "\u2569", boxminus: "\u229F", boxplus: "\u229E", boxtimes: "\u22A0", boxul: "\u2518", boxuL: "\u255B", boxUl: "\u255C", boxUL: "\u255D", boxur: "\u2514", boxuR: "\u2558", boxUr: "\u2559", boxUR: "\u255A", boxv: "\u2502", boxV: "\u2551", boxvh: "\u253C", boxvH: "\u256A", boxVh: "\u256B", boxVH: "\u256C", boxvl: "\u2524", boxvL: "\u2561", boxVl: "\u2562", boxVL: "\u2563", boxvr: "\u251C", boxvR: "\u255E", boxVr: "\u255F", boxVR: "\u2560", bprime: "\u2035", breve: "\u02D8", Breve: "\u02D8", brvbar: "\xA6", bscr: "\u{1D4B7}", Bscr: "\u212C", bsemi: "\u204F", bsim: "\u223D", bsime: "\u22CD", bsolb: "\u29C5", bsol: "\\", bsolhsub: "\u27C8", bull: "\u2022", bullet: "\u2022", bump: "\u224E", bumpE: "\u2AAE", bumpe: "\u224F", Bumpeq: "\u224E", bumpeq: "\u224F", Cacute: "\u0106", cacute: "\u0107", capand: "\u2A44", capbrcup: "\u2A49", capcap: "\u2A4B", cap: "\u2229", Cap: "\u22D2", capcup: "\u2A47", capdot: "\u2A40", CapitalDifferentialD: "\u2145", caps: "\u2229\uFE00", caret: "\u2041", caron: "\u02C7", Cayleys: "\u212D", ccaps: "\u2A4D", Ccaron: "\u010C", ccaron: "\u010D", Ccedil: "\xC7", ccedil: "\xE7", Ccirc: "\u0108", ccirc: "\u0109", Cconint: "\u2230", ccups: "\u2A4C", ccupssm: "\u2A50", Cdot: "\u010A", cdot: "\u010B", cedil: "\xB8", Cedilla: "\xB8", cemptyv: "\u29B2", cent: "\xA2", centerdot: "\xB7", CenterDot: "\xB7", cfr: "\u{1D520}", Cfr: "\u212D", CHcy: "\u0427", chcy: "\u0447", check: "\u2713", checkmark: "\u2713", Chi: "\u03A7", chi: "\u03C7", circ: "\u02C6", circeq: "\u2257", circlearrowleft: "\u21BA", circlearrowright: "\u21BB", circledast: "\u229B", circledcirc: "\u229A", circleddash: "\u229D", CircleDot: "\u2299", circledR: "\xAE", circledS: "\u24C8", CircleMinus: "\u2296", CirclePlus: "\u2295", CircleTimes: "\u2297", cir: "\u25CB", cirE: "\u29C3", cire: "\u2257", cirfnint: "\u2A10", cirmid: "\u2AEF", cirscir: "\u29C2", ClockwiseContourIntegral: "\u2232", CloseCurlyDoubleQuote: "\u201D", CloseCurlyQuote: "\u2019", clubs: "\u2663", clubsuit: "\u2663", colon: ":", Colon: "\u2237", Colone: "\u2A74", colone: "\u2254", coloneq: "\u2254", comma: ",", commat: "@", comp: "\u2201", compfn: "\u2218", complement: "\u2201", complexes: "\u2102", cong: "\u2245", congdot: "\u2A6D", Congruent: "\u2261", conint: "\u222E", Conint: "\u222F", ContourIntegral: "\u222E", copf: "\u{1D554}", Copf: "\u2102", coprod: "\u2210", Coproduct: "\u2210", copy: "\xA9", COPY: "\xA9", copysr: "\u2117", CounterClockwiseContourIntegral: "\u2233", crarr: "\u21B5", cross: "\u2717", Cross: "\u2A2F", Cscr: "\u{1D49E}", cscr: "\u{1D4B8}", csub: "\u2ACF", csube: "\u2AD1", csup: "\u2AD0", csupe: "\u2AD2", ctdot: "\u22EF", cudarrl: "\u2938", cudarrr: "\u2935", cuepr: "\u22DE", cuesc: "\u22DF", cularr: "\u21B6", cularrp: "\u293D", cupbrcap: "\u2A48", cupcap: "\u2A46", CupCap: "\u224D", cup: "\u222A", Cup: "\u22D3", cupcup: "\u2A4A", cupdot: "\u228D", cupor: "\u2A45", cups: "\u222A\uFE00", curarr: "\u21B7", curarrm: "\u293C", curlyeqprec: "\u22DE", curlyeqsucc: "\u22DF", curlyvee: "\u22CE", curlywedge: "\u22CF", curren: "\xA4", curvearrowleft: "\u21B6", curvearrowright: "\u21B7", cuvee: "\u22CE", cuwed: "\u22CF", cwconint: "\u2232", cwint: "\u2231", cylcty: "\u232D", dagger: "\u2020", Dagger: "\u2021", daleth: "\u2138", darr: "\u2193", Darr: "\u21A1", dArr: "\u21D3", dash: "\u2010", Dashv: "\u2AE4", dashv: "\u22A3", dbkarow: "\u290F", dblac: "\u02DD", Dcaron: "\u010E", dcaron: "\u010F", Dcy: "\u0414", dcy: "\u0434", ddagger: "\u2021", ddarr: "\u21CA", DD: "\u2145", dd: "\u2146", DDotrahd: "\u2911", ddotseq: "\u2A77", deg: "\xB0", Del: "\u2207", Delta: "\u0394", delta: "\u03B4", demptyv: "\u29B1", dfisht: "\u297F", Dfr: "\u{1D507}", dfr: "\u{1D521}", dHar: "\u2965", dharl: "\u21C3", dharr: "\u21C2", DiacriticalAcute: "\xB4", DiacriticalDot: "\u02D9", DiacriticalDoubleAcute: "\u02DD", DiacriticalGrave: "`", DiacriticalTilde: "\u02DC", diam: "\u22C4", diamond: "\u22C4", Diamond: "\u22C4", diamondsuit: "\u2666", diams: "\u2666", die: "\xA8", DifferentialD: "\u2146", digamma: "\u03DD", disin: "\u22F2", div: "\xF7", divide: "\xF7", divideontimes: "\u22C7", divonx: "\u22C7", DJcy: "\u0402", djcy: "\u0452", dlcorn: "\u231E", dlcrop: "\u230D", dollar: "$", Dopf: "\u{1D53B}", dopf: "\u{1D555}", Dot: "\xA8", dot: "\u02D9", DotDot: "\u20DC", doteq: "\u2250", doteqdot: "\u2251", DotEqual: "\u2250", dotminus: "\u2238", dotplus: "\u2214", dotsquare: "\u22A1", doublebarwedge: "\u2306", DoubleContourIntegral: "\u222F", DoubleDot: "\xA8", DoubleDownArrow: "\u21D3", DoubleLeftArrow: "\u21D0", DoubleLeftRightArrow: "\u21D4", DoubleLeftTee: "\u2AE4", DoubleLongLeftArrow: "\u27F8", DoubleLongLeftRightArrow: "\u27FA", DoubleLongRightArrow: "\u27F9", DoubleRightArrow: "\u21D2", DoubleRightTee: "\u22A8", DoubleUpArrow: "\u21D1", DoubleUpDownArrow: "\u21D5", DoubleVerticalBar: "\u2225", DownArrowBar: "\u2913", downarrow: "\u2193", DownArrow: "\u2193", Downarrow: "\u21D3", DownArrowUpArrow: "\u21F5", DownBreve: "\u0311", downdownarrows: "\u21CA", downharpoonleft: "\u21C3", downharpoonright: "\u21C2", DownLeftRightVector: "\u2950", DownLeftTeeVector: "\u295E", DownLeftVectorBar: "\u2956", DownLeftVector: "\u21BD", DownRightTeeVector: "\u295F", DownRightVectorBar: "\u2957", DownRightVector: "\u21C1", DownTeeArrow: "\u21A7", DownTee: "\u22A4", drbkarow: "\u2910", drcorn: "\u231F", drcrop: "\u230C", Dscr: "\u{1D49F}", dscr: "\u{1D4B9}", DScy: "\u0405", dscy: "\u0455", dsol: "\u29F6", Dstrok: "\u0110", dstrok: "\u0111", dtdot: "\u22F1", dtri: "\u25BF", dtrif: "\u25BE", duarr: "\u21F5", duhar: "\u296F", dwangle: "\u29A6", DZcy: "\u040F", dzcy: "\u045F", dzigrarr: "\u27FF", Eacute: "\xC9", eacute: "\xE9", easter: "\u2A6E", Ecaron: "\u011A", ecaron: "\u011B", Ecirc: "\xCA", ecirc: "\xEA", ecir: "\u2256", ecolon: "\u2255", Ecy: "\u042D", ecy: "\u044D", eDDot: "\u2A77", Edot: "\u0116", edot: "\u0117", eDot: "\u2251", ee: "\u2147", efDot: "\u2252", Efr: "\u{1D508}", efr: "\u{1D522}", eg: "\u2A9A", Egrave: "\xC8", egrave: "\xE8", egs: "\u2A96", egsdot: "\u2A98", el: "\u2A99", Element: "\u2208", elinters: "\u23E7", ell: "\u2113", els: "\u2A95", elsdot: "\u2A97", Emacr: "\u0112", emacr: "\u0113", empty: "\u2205", emptyset: "\u2205", EmptySmallSquare: "\u25FB", emptyv: "\u2205", EmptyVerySmallSquare: "\u25AB", emsp13: "\u2004", emsp14: "\u2005", emsp: "\u2003", ENG: "\u014A", eng: "\u014B", ensp: "\u2002", Eogon: "\u0118", eogon: "\u0119", Eopf: "\u{1D53C}", eopf: "\u{1D556}", epar: "\u22D5", eparsl: "\u29E3", eplus: "\u2A71", epsi: "\u03B5", Epsilon: "\u0395", epsilon: "\u03B5", epsiv: "\u03F5", eqcirc: "\u2256", eqcolon: "\u2255", eqsim: "\u2242", eqslantgtr: "\u2A96", eqslantless: "\u2A95", Equal: "\u2A75", equals: "=", EqualTilde: "\u2242", equest: "\u225F", Equilibrium: "\u21CC", equiv: "\u2261", equivDD: "\u2A78", eqvparsl: "\u29E5", erarr: "\u2971", erDot: "\u2253", escr: "\u212F", Escr: "\u2130", esdot: "\u2250", Esim: "\u2A73", esim: "\u2242", Eta: "\u0397", eta: "\u03B7", ETH: "\xD0", eth: "\xF0", Euml: "\xCB", euml: "\xEB", euro: "\u20AC", excl: "!", exist: "\u2203", Exists: "\u2203", expectation: "\u2130", exponentiale: "\u2147", ExponentialE: "\u2147", fallingdotseq: "\u2252", Fcy: "\u0424", fcy: "\u0444", female: "\u2640", ffilig: "\uFB03", fflig: "\uFB00", ffllig: "\uFB04", Ffr: "\u{1D509}", ffr: "\u{1D523}", filig: "\uFB01", FilledSmallSquare: "\u25FC", FilledVerySmallSquare: "\u25AA", fjlig: "fj", flat: "\u266D", fllig: "\uFB02", fltns: "\u25B1", fnof: "\u0192", Fopf: "\u{1D53D}", fopf: "\u{1D557}", forall: "\u2200", ForAll: "\u2200", fork: "\u22D4", forkv: "\u2AD9", Fouriertrf: "\u2131", fpartint: "\u2A0D", frac12: "\xBD", frac13: "\u2153", frac14: "\xBC", frac15: "\u2155", frac16: "\u2159", frac18: "\u215B", frac23: "\u2154", frac25: "\u2156", frac34: "\xBE", frac35: "\u2157", frac38: "\u215C", frac45: "\u2158", frac56: "\u215A", frac58: "\u215D", frac78: "\u215E", frasl: "\u2044", frown: "\u2322", fscr: "\u{1D4BB}", Fscr: "\u2131", gacute: "\u01F5", Gamma: "\u0393", gamma: "\u03B3", Gammad: "\u03DC", gammad: "\u03DD", gap: "\u2A86", Gbreve: "\u011E", gbreve: "\u011F", Gcedil: "\u0122", Gcirc: "\u011C", gcirc: "\u011D", Gcy: "\u0413", gcy: "\u0433", Gdot: "\u0120", gdot: "\u0121", ge: "\u2265", gE: "\u2267", gEl: "\u2A8C", gel: "\u22DB", geq: "\u2265", geqq: "\u2267", geqslant: "\u2A7E", gescc: "\u2AA9", ges: "\u2A7E", gesdot: "\u2A80", gesdoto: "\u2A82", gesdotol: "\u2A84", gesl: "\u22DB\uFE00", gesles: "\u2A94", Gfr: "\u{1D50A}", gfr: "\u{1D524}", gg: "\u226B", Gg: "\u22D9", ggg: "\u22D9", gimel: "\u2137", GJcy: "\u0403", gjcy: "\u0453", gla: "\u2AA5", gl: "\u2277", glE: "\u2A92", glj: "\u2AA4", gnap: "\u2A8A", gnapprox: "\u2A8A", gne: "\u2A88", gnE: "\u2269", gneq: "\u2A88", gneqq: "\u2269", gnsim: "\u22E7", Gopf: "\u{1D53E}", gopf: "\u{1D558}", grave: "`", GreaterEqual: "\u2265", GreaterEqualLess: "\u22DB", GreaterFullEqual: "\u2267", GreaterGreater: "\u2AA2", GreaterLess: "\u2277", GreaterSlantEqual: "\u2A7E", GreaterTilde: "\u2273", Gscr: "\u{1D4A2}", gscr: "\u210A", gsim: "\u2273", gsime: "\u2A8E", gsiml: "\u2A90", gtcc: "\u2AA7", gtcir: "\u2A7A", gt: ">", GT: ">", Gt: "\u226B", gtdot: "\u22D7", gtlPar: "\u2995", gtquest: "\u2A7C", gtrapprox: "\u2A86", gtrarr: "\u2978", gtrdot: "\u22D7", gtreqless: "\u22DB", gtreqqless: "\u2A8C", gtrless: "\u2277", gtrsim: "\u2273", gvertneqq: "\u2269\uFE00", gvnE: "\u2269\uFE00", Hacek: "\u02C7", hairsp: "\u200A", half: "\xBD", hamilt: "\u210B", HARDcy: "\u042A", hardcy: "\u044A", harrcir: "\u2948", harr: "\u2194", hArr: "\u21D4", harrw: "\u21AD", Hat: "^", hbar: "\u210F", Hcirc: "\u0124", hcirc: "\u0125", hearts: "\u2665", heartsuit: "\u2665", hellip: "\u2026", hercon: "\u22B9", hfr: "\u{1D525}", Hfr: "\u210C", HilbertSpace: "\u210B", hksearow: "\u2925", hkswarow: "\u2926", hoarr: "\u21FF", homtht: "\u223B", hookleftarrow: "\u21A9", hookrightarrow: "\u21AA", hopf: "\u{1D559}", Hopf: "\u210D", horbar: "\u2015", HorizontalLine: "\u2500", hscr: "\u{1D4BD}", Hscr: "\u210B", hslash: "\u210F", Hstrok: "\u0126", hstrok: "\u0127", HumpDownHump: "\u224E", HumpEqual: "\u224F", hybull: "\u2043", hyphen: "\u2010", Iacute: "\xCD", iacute: "\xED", ic: "\u2063", Icirc: "\xCE", icirc: "\xEE", Icy: "\u0418", icy: "\u0438", Idot: "\u0130", IEcy: "\u0415", iecy: "\u0435", iexcl: "\xA1", iff: "\u21D4", ifr: "\u{1D526}", Ifr: "\u2111", Igrave: "\xCC", igrave: "\xEC", ii: "\u2148", iiiint: "\u2A0C", iiint: "\u222D", iinfin: "\u29DC", iiota: "\u2129", IJlig: "\u0132", ijlig: "\u0133", Imacr: "\u012A", imacr: "\u012B", image: "\u2111", ImaginaryI: "\u2148", imagline: "\u2110", imagpart: "\u2111", imath: "\u0131", Im: "\u2111", imof: "\u22B7", imped: "\u01B5", Implies: "\u21D2", incare: "\u2105", in: "\u2208", infin: "\u221E", infintie: "\u29DD", inodot: "\u0131", intcal: "\u22BA", int: "\u222B", Int: "\u222C", integers: "\u2124", Integral: "\u222B", intercal: "\u22BA", Intersection: "\u22C2", intlarhk: "\u2A17", intprod: "\u2A3C", InvisibleComma: "\u2063", InvisibleTimes: "\u2062", IOcy: "\u0401", iocy: "\u0451", Iogon: "\u012E", iogon: "\u012F", Iopf: "\u{1D540}", iopf: "\u{1D55A}", Iota: "\u0399", iota: "\u03B9", iprod: "\u2A3C", iquest: "\xBF", iscr: "\u{1D4BE}", Iscr: "\u2110", isin: "\u2208", isindot: "\u22F5", isinE: "\u22F9", isins: "\u22F4", isinsv: "\u22F3", isinv: "\u2208", it: "\u2062", Itilde: "\u0128", itilde: "\u0129", Iukcy: "\u0406", iukcy: "\u0456", Iuml: "\xCF", iuml: "\xEF", Jcirc: "\u0134", jcirc: "\u0135", Jcy: "\u0419", jcy: "\u0439", Jfr: "\u{1D50D}", jfr: "\u{1D527}", jmath: "\u0237", Jopf: "\u{1D541}", jopf: "\u{1D55B}", Jscr: "\u{1D4A5}", jscr: "\u{1D4BF}", Jsercy: "\u0408", jsercy: "\u0458", Jukcy: "\u0404", jukcy: "\u0454", Kappa: "\u039A", kappa: "\u03BA", kappav: "\u03F0", Kcedil: "\u0136", kcedil: "\u0137", Kcy: "\u041A", kcy: "\u043A", Kfr: "\u{1D50E}", kfr: "\u{1D528}", kgreen: "\u0138", KHcy: "\u0425", khcy: "\u0445", KJcy: "\u040C", kjcy: "\u045C", Kopf: "\u{1D542}", kopf: "\u{1D55C}", Kscr: "\u{1D4A6}", kscr: "\u{1D4C0}", lAarr: "\u21DA", Lacute: "\u0139", lacute: "\u013A", laemptyv: "\u29B4", lagran: "\u2112", Lambda: "\u039B", lambda: "\u03BB", lang: "\u27E8", Lang: "\u27EA", langd: "\u2991", langle: "\u27E8", lap: "\u2A85", Laplacetrf: "\u2112", laquo: "\xAB", larrb: "\u21E4", larrbfs: "\u291F", larr: "\u2190", Larr: "\u219E", lArr: "\u21D0", larrfs: "\u291D", larrhk: "\u21A9", larrlp: "\u21AB", larrpl: "\u2939", larrsim: "\u2973", larrtl: "\u21A2", latail: "\u2919", lAtail: "\u291B", lat: "\u2AAB", late: "\u2AAD", lates: "\u2AAD\uFE00", lbarr: "\u290C", lBarr: "\u290E", lbbrk: "\u2772", lbrace: "{", lbrack: "[", lbrke: "\u298B", lbrksld: "\u298F", lbrkslu: "\u298D", Lcaron: "\u013D", lcaron: "\u013E", Lcedil: "\u013B", lcedil: "\u013C", lceil: "\u2308", lcub: "{", Lcy: "\u041B", lcy: "\u043B", ldca: "\u2936", ldquo: "\u201C", ldquor: "\u201E", ldrdhar: "\u2967", ldrushar: "\u294B", ldsh: "\u21B2", le: "\u2264", lE: "\u2266", LeftAngleBracket: "\u27E8", LeftArrowBar: "\u21E4", leftarrow: "\u2190", LeftArrow: "\u2190", Leftarrow: "\u21D0", LeftArrowRightArrow: "\u21C6", leftarrowtail: "\u21A2", LeftCeiling: "\u2308", LeftDoubleBracket: "\u27E6", LeftDownTeeVector: "\u2961", LeftDownVectorBar: "\u2959", LeftDownVector: "\u21C3", LeftFloor: "\u230A", leftharpoondown: "\u21BD", leftharpoonup: "\u21BC", leftleftarrows: "\u21C7", leftrightarrow: "\u2194", LeftRightArrow: "\u2194", Leftrightarrow: "\u21D4", leftrightarrows: "\u21C6", leftrightharpoons: "\u21CB", leftrightsquigarrow: "\u21AD", LeftRightVector: "\u294E", LeftTeeArrow: "\u21A4", LeftTee: "\u22A3", LeftTeeVector: "\u295A", leftthreetimes: "\u22CB", LeftTriangleBar: "\u29CF", LeftTriangle: "\u22B2", LeftTriangleEqual: "\u22B4", LeftUpDownVector: "\u2951", LeftUpTeeVector: "\u2960", LeftUpVectorBar: "\u2958", LeftUpVector: "\u21BF", LeftVectorBar: "\u2952", LeftVector: "\u21BC", lEg: "\u2A8B", leg: "\u22DA", leq: "\u2264", leqq: "\u2266", leqslant: "\u2A7D", lescc: "\u2AA8", les: "\u2A7D", lesdot: "\u2A7F", lesdoto: "\u2A81", lesdotor: "\u2A83", lesg: "\u22DA\uFE00", lesges: "\u2A93", lessapprox: "\u2A85", lessdot: "\u22D6", lesseqgtr: "\u22DA", lesseqqgtr: "\u2A8B", LessEqualGreater: "\u22DA", LessFullEqual: "\u2266", LessGreater: "\u2276", lessgtr: "\u2276", LessLess: "\u2AA1", lesssim: "\u2272", LessSlantEqual: "\u2A7D", LessTilde: "\u2272", lfisht: "\u297C", lfloor: "\u230A", Lfr: "\u{1D50F}", lfr: "\u{1D529}", lg: "\u2276", lgE: "\u2A91", lHar: "\u2962", lhard: "\u21BD", lharu: "\u21BC", lharul: "\u296A", lhblk: "\u2584", LJcy: "\u0409", ljcy: "\u0459", llarr: "\u21C7", ll: "\u226A", Ll: "\u22D8", llcorner: "\u231E", Lleftarrow: "\u21DA", llhard: "\u296B", lltri: "\u25FA", Lmidot: "\u013F", lmidot: "\u0140", lmoustache: "\u23B0", lmoust: "\u23B0", lnap: "\u2A89", lnapprox: "\u2A89", lne: "\u2A87", lnE: "\u2268", lneq: "\u2A87", lneqq: "\u2268", lnsim: "\u22E6", loang: "\u27EC", loarr: "\u21FD", lobrk: "\u27E6", longleftarrow: "\u27F5", LongLeftArrow: "\u27F5", Longleftarrow: "\u27F8", longleftrightarrow: "\u27F7", LongLeftRightArrow: "\u27F7", Longleftrightarrow: "\u27FA", longmapsto: "\u27FC", longrightarrow: "\u27F6", LongRightArrow: "\u27F6", Longrightarrow: "\u27F9", looparrowleft: "\u21AB", looparrowright: "\u21AC", lopar: "\u2985", Lopf: "\u{1D543}", lopf: "\u{1D55D}", loplus: "\u2A2D", lotimes: "\u2A34", lowast: "\u2217", lowbar: "_", LowerLeftArrow: "\u2199", LowerRightArrow: "\u2198", loz: "\u25CA", lozenge: "\u25CA", lozf: "\u29EB", lpar: "(", lparlt: "\u2993", lrarr: "\u21C6", lrcorner: "\u231F", lrhar: "\u21CB", lrhard: "\u296D", lrm: "\u200E", lrtri: "\u22BF", lsaquo: "\u2039", lscr: "\u{1D4C1}", Lscr: "\u2112", lsh: "\u21B0", Lsh: "\u21B0", lsim: "\u2272", lsime: "\u2A8D", lsimg: "\u2A8F", lsqb: "[", lsquo: "\u2018", lsquor: "\u201A", Lstrok: "\u0141", lstrok: "\u0142", ltcc: "\u2AA6", ltcir: "\u2A79", lt: "<", LT: "<", Lt: "\u226A", ltdot: "\u22D6", lthree: "\u22CB", ltimes: "\u22C9", ltlarr: "\u2976", ltquest: "\u2A7B", ltri: "\u25C3", ltrie: "\u22B4", ltrif: "\u25C2", ltrPar: "\u2996", lurdshar: "\u294A", luruhar: "\u2966", lvertneqq: "\u2268\uFE00", lvnE: "\u2268\uFE00", macr: "\xAF", male: "\u2642", malt: "\u2720", maltese: "\u2720", Map: "\u2905", map: "\u21A6", mapsto: "\u21A6", mapstodown: "\u21A7", mapstoleft: "\u21A4", mapstoup: "\u21A5", marker: "\u25AE", mcomma: "\u2A29", Mcy: "\u041C", mcy: "\u043C", mdash: "\u2014", mDDot: "\u223A", measuredangle: "\u2221", MediumSpace: "\u205F", Mellintrf: "\u2133", Mfr: "\u{1D510}", mfr: "\u{1D52A}", mho: "\u2127", micro: "\xB5", midast: "*", midcir: "\u2AF0", mid: "\u2223", middot: "\xB7", minusb: "\u229F", minus: "\u2212", minusd: "\u2238", minusdu: "\u2A2A", MinusPlus: "\u2213", mlcp: "\u2ADB", mldr: "\u2026", mnplus: "\u2213", models: "\u22A7", Mopf: "\u{1D544}", mopf: "\u{1D55E}", mp: "\u2213", mscr: "\u{1D4C2}", Mscr: "\u2133", mstpos: "\u223E", Mu: "\u039C", mu: "\u03BC", multimap: "\u22B8", mumap: "\u22B8", nabla: "\u2207", Nacute: "\u0143", nacute: "\u0144", nang: "\u2220\u20D2", nap: "\u2249", napE: "\u2A70\u0338", napid: "\u224B\u0338", napos: "\u0149", napprox: "\u2249", natural: "\u266E", naturals: "\u2115", natur: "\u266E", nbsp: "\xA0", nbump: "\u224E\u0338", nbumpe: "\u224F\u0338", ncap: "\u2A43", Ncaron: "\u0147", ncaron: "\u0148", Ncedil: "\u0145", ncedil: "\u0146", ncong: "\u2247", ncongdot: "\u2A6D\u0338", ncup: "\u2A42", Ncy: "\u041D", ncy: "\u043D", ndash: "\u2013", nearhk: "\u2924", nearr: "\u2197", neArr: "\u21D7", nearrow: "\u2197", ne: "\u2260", nedot: "\u2250\u0338", NegativeMediumSpace: "\u200B", NegativeThickSpace: "\u200B", NegativeThinSpace: "\u200B", NegativeVeryThinSpace: "\u200B", nequiv: "\u2262", nesear: "\u2928", nesim: "\u2242\u0338", NestedGreaterGreater: "\u226B", NestedLessLess: "\u226A", NewLine: "\n", nexist: "\u2204", nexists: "\u2204", Nfr: "\u{1D511}", nfr: "\u{1D52B}", ngE: "\u2267\u0338", nge: "\u2271", ngeq: "\u2271", ngeqq: "\u2267\u0338", ngeqslant: "\u2A7E\u0338", nges: "\u2A7E\u0338", nGg: "\u22D9\u0338", ngsim: "\u2275", nGt: "\u226B\u20D2", ngt: "\u226F", ngtr: "\u226F", nGtv: "\u226B\u0338", nharr: "\u21AE", nhArr: "\u21CE", nhpar: "\u2AF2", ni: "\u220B", nis: "\u22FC", nisd: "\u22FA", niv: "\u220B", NJcy: "\u040A", njcy: "\u045A", nlarr: "\u219A", nlArr: "\u21CD", nldr: "\u2025", nlE: "\u2266\u0338", nle: "\u2270", nleftarrow: "\u219A", nLeftarrow: "\u21CD", nleftrightarrow: "\u21AE", nLeftrightarrow: "\u21CE", nleq: "\u2270", nleqq: "\u2266\u0338", nleqslant: "\u2A7D\u0338", nles: "\u2A7D\u0338", nless: "\u226E", nLl: "\u22D8\u0338", nlsim: "\u2274", nLt: "\u226A\u20D2", nlt: "\u226E", nltri: "\u22EA", nltrie: "\u22EC", nLtv: "\u226A\u0338", nmid: "\u2224", NoBreak: "\u2060", NonBreakingSpace: "\xA0", nopf: "\u{1D55F}", Nopf: "\u2115", Not: "\u2AEC", not: "\xAC", NotCongruent: "\u2262", NotCupCap: "\u226D", NotDoubleVerticalBar: "\u2226", NotElement: "\u2209", NotEqual: "\u2260", NotEqualTilde: "\u2242\u0338", NotExists: "\u2204", NotGreater: "\u226F", NotGreaterEqual: "\u2271", NotGreaterFullEqual: "\u2267\u0338", NotGreaterGreater: "\u226B\u0338", NotGreaterLess: "\u2279", NotGreaterSlantEqual: "\u2A7E\u0338", NotGreaterTilde: "\u2275", NotHumpDownHump: "\u224E\u0338", NotHumpEqual: "\u224F\u0338", notin: "\u2209", notindot: "\u22F5\u0338", notinE: "\u22F9\u0338", notinva: "\u2209", notinvb: "\u22F7", notinvc: "\u22F6", NotLeftTriangleBar: "\u29CF\u0338", NotLeftTriangle: "\u22EA", NotLeftTriangleEqual: "\u22EC", NotLess: "\u226E", NotLessEqual: "\u2270", NotLessGreater: "\u2278", NotLessLess: "\u226A\u0338", NotLessSlantEqual: "\u2A7D\u0338", NotLessTilde: "\u2274", NotNestedGreaterGreater: "\u2AA2\u0338", NotNestedLessLess: "\u2AA1\u0338", notni: "\u220C", notniva: "\u220C", notnivb: "\u22FE", notnivc: "\u22FD", NotPrecedes: "\u2280", NotPrecedesEqual: "\u2AAF\u0338", NotPrecedesSlantEqual: "\u22E0", NotReverseElement: "\u220C", NotRightTriangleBar: "\u29D0\u0338", NotRightTriangle: "\u22EB", NotRightTriangleEqual: "\u22ED", NotSquareSubset: "\u228F\u0338", NotSquareSubsetEqual: "\u22E2", NotSquareSuperset: "\u2290\u0338", NotSquareSupersetEqual: "\u22E3", NotSubset: "\u2282\u20D2", NotSubsetEqual: "\u2288", NotSucceeds: "\u2281", NotSucceedsEqual: "\u2AB0\u0338", NotSucceedsSlantEqual: "\u22E1", NotSucceedsTilde: "\u227F\u0338", NotSuperset: "\u2283\u20D2", NotSupersetEqual: "\u2289", NotTilde: "\u2241", NotTildeEqual: "\u2244", NotTildeFullEqual: "\u2247", NotTildeTilde: "\u2249", NotVerticalBar: "\u2224", nparallel: "\u2226", npar: "\u2226", nparsl: "\u2AFD\u20E5", npart: "\u2202\u0338", npolint: "\u2A14", npr: "\u2280", nprcue: "\u22E0", nprec: "\u2280", npreceq: "\u2AAF\u0338", npre: "\u2AAF\u0338", nrarrc: "\u2933\u0338", nrarr: "\u219B", nrArr: "\u21CF", nrarrw: "\u219D\u0338", nrightarrow: "\u219B", nRightarrow: "\u21CF", nrtri: "\u22EB", nrtrie: "\u22ED", nsc: "\u2281", nsccue: "\u22E1", nsce: "\u2AB0\u0338", Nscr: "\u{1D4A9}", nscr: "\u{1D4C3}", nshortmid: "\u2224", nshortparallel: "\u2226", nsim: "\u2241", nsime: "\u2244", nsimeq: "\u2244", nsmid: "\u2224", nspar: "\u2226", nsqsube: "\u22E2", nsqsupe: "\u22E3", nsub: "\u2284", nsubE: "\u2AC5\u0338", nsube: "\u2288", nsubset: "\u2282\u20D2", nsubseteq: "\u2288", nsubseteqq: "\u2AC5\u0338", nsucc: "\u2281", nsucceq: "\u2AB0\u0338", nsup: "\u2285", nsupE: "\u2AC6\u0338", nsupe: "\u2289", nsupset: "\u2283\u20D2", nsupseteq: "\u2289", nsupseteqq: "\u2AC6\u0338", ntgl: "\u2279", Ntilde: "\xD1", ntilde: "\xF1", ntlg: "\u2278", ntriangleleft: "\u22EA", ntrianglelefteq: "\u22EC", ntriangleright: "\u22EB", ntrianglerighteq: "\u22ED", Nu: "\u039D", nu: "\u03BD", num: "#", numero: "\u2116", numsp: "\u2007", nvap: "\u224D\u20D2", nvdash: "\u22AC", nvDash: "\u22AD", nVdash: "\u22AE", nVDash: "\u22AF", nvge: "\u2265\u20D2", nvgt: ">\u20D2", nvHarr: "\u2904", nvinfin: "\u29DE", nvlArr: "\u2902", nvle: "\u2264\u20D2", nvlt: "<\u20D2", nvltrie: "\u22B4\u20D2", nvrArr: "\u2903", nvrtrie: "\u22B5\u20D2", nvsim: "\u223C\u20D2", nwarhk: "\u2923", nwarr: "\u2196", nwArr: "\u21D6", nwarrow: "\u2196", nwnear: "\u2927", Oacute: "\xD3", oacute: "\xF3", oast: "\u229B", Ocirc: "\xD4", ocirc: "\xF4", ocir: "\u229A", Ocy: "\u041E", ocy: "\u043E", odash: "\u229D", Odblac: "\u0150", odblac: "\u0151", odiv: "\u2A38", odot: "\u2299", odsold: "\u29BC", OElig: "\u0152", oelig: "\u0153", ofcir: "\u29BF", Ofr: "\u{1D512}", ofr: "\u{1D52C}", ogon: "\u02DB", Ograve: "\xD2", ograve: "\xF2", ogt: "\u29C1", ohbar: "\u29B5", ohm: "\u03A9", oint: "\u222E", olarr: "\u21BA", olcir: "\u29BE", olcross: "\u29BB", oline: "\u203E", olt: "\u29C0", Omacr: "\u014C", omacr: "\u014D", Omega: "\u03A9", omega: "\u03C9", Omicron: "\u039F", omicron: "\u03BF", omid: "\u29B6", ominus: "\u2296", Oopf: "\u{1D546}", oopf: "\u{1D560}", opar: "\u29B7", OpenCurlyDoubleQuote: "\u201C", OpenCurlyQuote: "\u2018", operp: "\u29B9", oplus: "\u2295", orarr: "\u21BB", Or: "\u2A54", or: "\u2228", ord: "\u2A5D", order: "\u2134", orderof: "\u2134", ordf: "\xAA", ordm: "\xBA", origof: "\u22B6", oror: "\u2A56", orslope: "\u2A57", orv: "\u2A5B", oS: "\u24C8", Oscr: "\u{1D4AA}", oscr: "\u2134", Oslash: "\xD8", oslash: "\xF8", osol: "\u2298", Otilde: "\xD5", otilde: "\xF5", otimesas: "\u2A36", Otimes: "\u2A37", otimes: "\u2297", Ouml: "\xD6", ouml: "\xF6", ovbar: "\u233D", OverBar: "\u203E", OverBrace: "\u23DE", OverBracket: "\u23B4", OverParenthesis: "\u23DC", para: "\xB6", parallel: "\u2225", par: "\u2225", parsim: "\u2AF3", parsl: "\u2AFD", part: "\u2202", PartialD: "\u2202", Pcy: "\u041F", pcy: "\u043F", percnt: "%", period: ".", permil: "\u2030", perp: "\u22A5", pertenk: "\u2031", Pfr: "\u{1D513}", pfr: "\u{1D52D}", Phi: "\u03A6", phi: "\u03C6", phiv: "\u03D5", phmmat: "\u2133", phone: "\u260E", Pi: "\u03A0", pi: "\u03C0", pitchfork: "\u22D4", piv: "\u03D6", planck: "\u210F", planckh: "\u210E", plankv: "\u210F", plusacir: "\u2A23", plusb: "\u229E", pluscir: "\u2A22", plus: "+", plusdo: "\u2214", plusdu: "\u2A25", pluse: "\u2A72", PlusMinus: "\xB1", plusmn: "\xB1", plussim: "\u2A26", plustwo: "\u2A27", pm: "\xB1", Poincareplane: "\u210C", pointint: "\u2A15", popf: "\u{1D561}", Popf: "\u2119", pound: "\xA3", prap: "\u2AB7", Pr: "\u2ABB", pr: "\u227A", prcue: "\u227C", precapprox: "\u2AB7", prec: "\u227A", preccurlyeq: "\u227C", Precedes: "\u227A", PrecedesEqual: "\u2AAF", PrecedesSlantEqual: "\u227C", PrecedesTilde: "\u227E", preceq: "\u2AAF", precnapprox: "\u2AB9", precneqq: "\u2AB5", precnsim: "\u22E8", pre: "\u2AAF", prE: "\u2AB3", precsim: "\u227E", prime: "\u2032", Prime: "\u2033", primes: "\u2119", prnap: "\u2AB9", prnE: "\u2AB5", prnsim: "\u22E8", prod: "\u220F", Product: "\u220F", profalar: "\u232E", profline: "\u2312", profsurf: "\u2313", prop: "\u221D", Proportional: "\u221D", Proportion: "\u2237", propto: "\u221D", prsim: "\u227E", prurel: "\u22B0", Pscr: "\u{1D4AB}", pscr: "\u{1D4C5}", Psi: "\u03A8", psi: "\u03C8", puncsp: "\u2008", Qfr: "\u{1D514}", qfr: "\u{1D52E}", qint: "\u2A0C", qopf: "\u{1D562}", Qopf: "\u211A", qprime: "\u2057", Qscr: "\u{1D4AC}", qscr: "\u{1D4C6}", quaternions: "\u210D", quatint: "\u2A16", quest: "?", questeq: "\u225F", quot: '"', QUOT: '"', rAarr: "\u21DB", race: "\u223D\u0331", Racute: "\u0154", racute: "\u0155", radic: "\u221A", raemptyv: "\u29B3", rang: "\u27E9", Rang: "\u27EB", rangd: "\u2992", range: "\u29A5", rangle: "\u27E9", raquo: "\xBB", rarrap: "\u2975", rarrb: "\u21E5", rarrbfs: "\u2920", rarrc: "\u2933", rarr: "\u2192", Rarr: "\u21A0", rArr: "\u21D2", rarrfs: "\u291E", rarrhk: "\u21AA", rarrlp: "\u21AC", rarrpl: "\u2945", rarrsim: "\u2974", Rarrtl: "\u2916", rarrtl: "\u21A3", rarrw: "\u219D", ratail: "\u291A", rAtail: "\u291C", ratio: "\u2236", rationals: "\u211A", rbarr: "\u290D", rBarr: "\u290F", RBarr: "\u2910", rbbrk: "\u2773", rbrace: "}", rbrack: "]", rbrke: "\u298C", rbrksld: "\u298E", rbrkslu: "\u2990", Rcaron: "\u0158", rcaron: "\u0159", Rcedil: "\u0156", rcedil: "\u0157", rceil: "\u2309", rcub: "}", Rcy: "\u0420", rcy: "\u0440", rdca: "\u2937", rdldhar: "\u2969", rdquo: "\u201D", rdquor: "\u201D", rdsh: "\u21B3", real: "\u211C", realine: "\u211B", realpart: "\u211C", reals: "\u211D", Re: "\u211C", rect: "\u25AD", reg: "\xAE", REG: "\xAE", ReverseElement: "\u220B", ReverseEquilibrium: "\u21CB", ReverseUpEquilibrium: "\u296F", rfisht: "\u297D", rfloor: "\u230B", rfr: "\u{1D52F}", Rfr: "\u211C", rHar: "\u2964", rhard: "\u21C1", rharu: "\u21C0", rharul: "\u296C", Rho: "\u03A1", rho: "\u03C1", rhov: "\u03F1", RightAngleBracket: "\u27E9", RightArrowBar: "\u21E5", rightarrow: "\u2192", RightArrow: "\u2192", Rightarrow: "\u21D2", RightArrowLeftArrow: "\u21C4", rightarrowtail: "\u21A3", RightCeiling: "\u2309", RightDoubleBracket: "\u27E7", RightDownTeeVector: "\u295D", RightDownVectorBar: "\u2955", RightDownVector: "\u21C2", RightFloor: "\u230B", rightharpoondown: "\u21C1", rightharpoonup: "\u21C0", rightleftarrows: "\u21C4", rightleftharpoons: "\u21CC", rightrightarrows: "\u21C9", rightsquigarrow: "\u219D", RightTeeArrow: "\u21A6", RightTee: "\u22A2", RightTeeVector: "\u295B", rightthreetimes: "\u22CC", RightTriangleBar: "\u29D0", RightTriangle: "\u22B3", RightTriangleEqual: "\u22B5", RightUpDownVector: "\u294F", RightUpTeeVector: "\u295C", RightUpVectorBar: "\u2954", RightUpVector: "\u21BE", RightVectorBar: "\u2953", RightVector: "\u21C0", ring: "\u02DA", risingdotseq: "\u2253", rlarr: "\u21C4", rlhar: "\u21CC", rlm: "\u200F", rmoustache: "\u23B1", rmoust: "\u23B1", rnmid: "\u2AEE", roang: "\u27ED", roarr: "\u21FE", robrk: "\u27E7", ropar: "\u2986", ropf: "\u{1D563}", Ropf: "\u211D", roplus: "\u2A2E", rotimes: "\u2A35", RoundImplies: "\u2970", rpar: ")", rpargt: "\u2994", rppolint: "\u2A12", rrarr: "\u21C9", Rrightarrow: "\u21DB", rsaquo: "\u203A", rscr: "\u{1D4C7}", Rscr: "\u211B", rsh: "\u21B1", Rsh: "\u21B1", rsqb: "]", rsquo: "\u2019", rsquor: "\u2019", rthree: "\u22CC", rtimes: "\u22CA", rtri: "\u25B9", rtrie: "\u22B5", rtrif: "\u25B8", rtriltri: "\u29CE", RuleDelayed: "\u29F4", ruluhar: "\u2968", rx: "\u211E", Sacute: "\u015A", sacute: "\u015B", sbquo: "\u201A", scap: "\u2AB8", Scaron: "\u0160", scaron: "\u0161", Sc: "\u2ABC", sc: "\u227B", sccue: "\u227D", sce: "\u2AB0", scE: "\u2AB4", Scedil: "\u015E", scedil: "\u015F", Scirc: "\u015C", scirc: "\u015D", scnap: "\u2ABA", scnE: "\u2AB6", scnsim: "\u22E9", scpolint: "\u2A13", scsim: "\u227F", Scy: "\u0421", scy: "\u0441", sdotb: "\u22A1", sdot: "\u22C5", sdote: "\u2A66", searhk: "\u2925", searr: "\u2198", seArr: "\u21D8", searrow: "\u2198", sect: "\xA7", semi: ";", seswar: "\u2929", setminus: "\u2216", setmn: "\u2216", sext: "\u2736", Sfr: "\u{1D516}", sfr: "\u{1D530}", sfrown: "\u2322", sharp: "\u266F", SHCHcy: "\u0429", shchcy: "\u0449", SHcy: "\u0428", shcy: "\u0448", ShortDownArrow: "\u2193", ShortLeftArrow: "\u2190", shortmid: "\u2223", shortparallel: "\u2225", ShortRightArrow: "\u2192", ShortUpArrow: "\u2191", shy: "\xAD", Sigma: "\u03A3", sigma: "\u03C3", sigmaf: "\u03C2", sigmav: "\u03C2", sim: "\u223C", simdot: "\u2A6A", sime: "\u2243", simeq: "\u2243", simg: "\u2A9E", simgE: "\u2AA0", siml: "\u2A9D", simlE: "\u2A9F", simne: "\u2246", simplus: "\u2A24", simrarr: "\u2972", slarr: "\u2190", SmallCircle: "\u2218", smallsetminus: "\u2216", smashp: "\u2A33", smeparsl: "\u29E4", smid: "\u2223", smile: "\u2323", smt: "\u2AAA", smte: "\u2AAC", smtes: "\u2AAC\uFE00", SOFTcy: "\u042C", softcy: "\u044C", solbar: "\u233F", solb: "\u29C4", sol: "/", Sopf: "\u{1D54A}", sopf: "\u{1D564}", spades: "\u2660", spadesuit: "\u2660", spar: "\u2225", sqcap: "\u2293", sqcaps: "\u2293\uFE00", sqcup: "\u2294", sqcups: "\u2294\uFE00", Sqrt: "\u221A", sqsub: "\u228F", sqsube: "\u2291", sqsubset: "\u228F", sqsubseteq: "\u2291", sqsup: "\u2290", sqsupe: "\u2292", sqsupset: "\u2290", sqsupseteq: "\u2292", square: "\u25A1", Square: "\u25A1", SquareIntersection: "\u2293", SquareSubset: "\u228F", SquareSubsetEqual: "\u2291", SquareSuperset: "\u2290", SquareSupersetEqual: "\u2292", SquareUnion: "\u2294", squarf: "\u25AA", squ: "\u25A1", squf: "\u25AA", srarr: "\u2192", Sscr: "\u{1D4AE}", sscr: "\u{1D4C8}", ssetmn: "\u2216", ssmile: "\u2323", sstarf: "\u22C6", Star: "\u22C6", star: "\u2606", starf: "\u2605", straightepsilon: "\u03F5", straightphi: "\u03D5", strns: "\xAF", sub: "\u2282", Sub: "\u22D0", subdot: "\u2ABD", subE: "\u2AC5", sube: "\u2286", subedot: "\u2AC3", submult: "\u2AC1", subnE: "\u2ACB", subne: "\u228A", subplus: "\u2ABF", subrarr: "\u2979", subset: "\u2282", Subset: "\u22D0", subseteq: "\u2286", subseteqq: "\u2AC5", SubsetEqual: "\u2286", subsetneq: "\u228A", subsetneqq: "\u2ACB", subsim: "\u2AC7", subsub: "\u2AD5", subsup: "\u2AD3", succapprox: "\u2AB8", succ: "\u227B", succcurlyeq: "\u227D", Succeeds: "\u227B", SucceedsEqual: "\u2AB0", SucceedsSlantEqual: "\u227D", SucceedsTilde: "\u227F", succeq: "\u2AB0", succnapprox: "\u2ABA", succneqq: "\u2AB6", succnsim: "\u22E9", succsim: "\u227F", SuchThat: "\u220B", sum: "\u2211", Sum: "\u2211", sung: "\u266A", sup1: "\xB9", sup2: "\xB2", sup3: "\xB3", sup: "\u2283", Sup: "\u22D1", supdot: "\u2ABE", supdsub: "\u2AD8", supE: "\u2AC6", supe: "\u2287", supedot: "\u2AC4", Superset: "\u2283", SupersetEqual: "\u2287", suphsol: "\u27C9", suphsub: "\u2AD7", suplarr: "\u297B", supmult: "\u2AC2", supnE: "\u2ACC", supne: "\u228B", supplus: "\u2AC0", supset: "\u2283", Supset: "\u22D1", supseteq: "\u2287", supseteqq: "\u2AC6", supsetneq: "\u228B", supsetneqq: "\u2ACC", supsim: "\u2AC8", supsub: "\u2AD4", supsup: "\u2AD6", swarhk: "\u2926", swarr: "\u2199", swArr: "\u21D9", swarrow: "\u2199", swnwar: "\u292A", szlig: "\xDF", Tab: " ", target: "\u2316", Tau: "\u03A4", tau: "\u03C4", tbrk: "\u23B4", Tcaron: "\u0164", tcaron: "\u0165", Tcedil: "\u0162", tcedil: "\u0163", Tcy: "\u0422", tcy: "\u0442", tdot: "\u20DB", telrec: "\u2315", Tfr: "\u{1D517}", tfr: "\u{1D531}", there4: "\u2234", therefore: "\u2234", Therefore: "\u2234", Theta: "\u0398", theta: "\u03B8", thetasym: "\u03D1", thetav: "\u03D1", thickapprox: "\u2248", thicksim: "\u223C", ThickSpace: "\u205F\u200A", ThinSpace: "\u2009", thinsp: "\u2009", thkap: "\u2248", thksim: "\u223C", THORN: "\xDE", thorn: "\xFE", tilde: "\u02DC", Tilde: "\u223C", TildeEqual: "\u2243", TildeFullEqual: "\u2245", TildeTilde: "\u2248", timesbar: "\u2A31", timesb: "\u22A0", times: "\xD7", timesd: "\u2A30", tint: "\u222D", toea: "\u2928", topbot: "\u2336", topcir: "\u2AF1", top: "\u22A4", Topf: "\u{1D54B}", topf: "\u{1D565}", topfork: "\u2ADA", tosa: "\u2929", tprime: "\u2034", trade: "\u2122", TRADE: "\u2122", triangle: "\u25B5", triangledown: "\u25BF", triangleleft: "\u25C3", trianglelefteq: "\u22B4", triangleq: "\u225C", triangleright: "\u25B9", trianglerighteq: "\u22B5", tridot: "\u25EC", trie: "\u225C", triminus: "\u2A3A", TripleDot: "\u20DB", triplus: "\u2A39", trisb: "\u29CD", tritime: "\u2A3B", trpezium: "\u23E2", Tscr: "\u{1D4AF}", tscr: "\u{1D4C9}", TScy: "\u0426", tscy: "\u0446", TSHcy: "\u040B", tshcy: "\u045B", Tstrok: "\u0166", tstrok: "\u0167", twixt: "\u226C", twoheadleftarrow: "\u219E", twoheadrightarrow: "\u21A0", Uacute: "\xDA", uacute: "\xFA", uarr: "\u2191", Uarr: "\u219F", uArr: "\u21D1", Uarrocir: "\u2949", Ubrcy: "\u040E", ubrcy: "\u045E", Ubreve: "\u016C", ubreve: "\u016D", Ucirc: "\xDB", ucirc: "\xFB", Ucy: "\u0423", ucy: "\u0443", udarr: "\u21C5", Udblac: "\u0170", udblac: "\u0171", udhar: "\u296E", ufisht: "\u297E", Ufr: "\u{1D518}", ufr: "\u{1D532}", Ugrave: "\xD9", ugrave: "\xF9", uHar: "\u2963", uharl: "\u21BF", uharr: "\u21BE", uhblk: "\u2580", ulcorn: "\u231C", ulcorner: "\u231C", ulcrop: "\u230F", ultri: "\u25F8", Umacr: "\u016A", umacr: "\u016B", uml: "\xA8", UnderBar: "_", UnderBrace: "\u23DF", UnderBracket: "\u23B5", UnderParenthesis: "\u23DD", Union: "\u22C3", UnionPlus: "\u228E", Uogon: "\u0172", uogon: "\u0173", Uopf: "\u{1D54C}", uopf: "\u{1D566}", UpArrowBar: "\u2912", uparrow: "\u2191", UpArrow: "\u2191", Uparrow: "\u21D1", UpArrowDownArrow: "\u21C5", updownarrow: "\u2195", UpDownArrow: "\u2195", Updownarrow: "\u21D5", UpEquilibrium: "\u296E", upharpoonleft: "\u21BF", upharpoonright: "\u21BE", uplus: "\u228E", UpperLeftArrow: "\u2196", UpperRightArrow: "\u2197", upsi: "\u03C5", Upsi: "\u03D2", upsih: "\u03D2", Upsilon: "\u03A5", upsilon: "\u03C5", UpTeeArrow: "\u21A5", UpTee: "\u22A5", upuparrows: "\u21C8", urcorn: "\u231D", urcorner: "\u231D", urcrop: "\u230E", Uring: "\u016E", uring: "\u016F", urtri: "\u25F9", Uscr: "\u{1D4B0}", uscr: "\u{1D4CA}", utdot: "\u22F0", Utilde: "\u0168", utilde: "\u0169", utri: "\u25B5", utrif: "\u25B4", uuarr: "\u21C8", Uuml: "\xDC", uuml: "\xFC", uwangle: "\u29A7", vangrt: "\u299C", varepsilon: "\u03F5", varkappa: "\u03F0", varnothing: "\u2205", varphi: "\u03D5", varpi: "\u03D6", varpropto: "\u221D", varr: "\u2195", vArr: "\u21D5", varrho: "\u03F1", varsigma: "\u03C2", varsubsetneq: "\u228A\uFE00", varsubsetneqq: "\u2ACB\uFE00", varsupsetneq: "\u228B\uFE00", varsupsetneqq: "\u2ACC\uFE00", vartheta: "\u03D1", vartriangleleft: "\u22B2", vartriangleright: "\u22B3", vBar: "\u2AE8", Vbar: "\u2AEB", vBarv: "\u2AE9", Vcy: "\u0412", vcy: "\u0432", vdash: "\u22A2", vDash: "\u22A8", Vdash: "\u22A9", VDash: "\u22AB", Vdashl: "\u2AE6", veebar: "\u22BB", vee: "\u2228", Vee: "\u22C1", veeeq: "\u225A", vellip: "\u22EE", verbar: "|", Verbar: "\u2016", vert: "|", Vert: "\u2016", VerticalBar: "\u2223", VerticalLine: "|", VerticalSeparator: "\u2758", VerticalTilde: "\u2240", VeryThinSpace: "\u200A", Vfr: "\u{1D519}", vfr: "\u{1D533}", vltri: "\u22B2", vnsub: "\u2282\u20D2", vnsup: "\u2283\u20D2", Vopf: "\u{1D54D}", vopf: "\u{1D567}", vprop: "\u221D", vrtri: "\u22B3", Vscr: "\u{1D4B1}", vscr: "\u{1D4CB}", vsubnE: "\u2ACB\uFE00", vsubne: "\u228A\uFE00", vsupnE: "\u2ACC\uFE00", vsupne: "\u228B\uFE00", Vvdash: "\u22AA", vzigzag: "\u299A", Wcirc: "\u0174", wcirc: "\u0175", wedbar: "\u2A5F", wedge: "\u2227", Wedge: "\u22C0", wedgeq: "\u2259", weierp: "\u2118", Wfr: "\u{1D51A}", wfr: "\u{1D534}", Wopf: "\u{1D54E}", wopf: "\u{1D568}", wp: "\u2118", wr: "\u2240", wreath: "\u2240", Wscr: "\u{1D4B2}", wscr: "\u{1D4CC}", xcap: "\u22C2", xcirc: "\u25EF", xcup: "\u22C3", xdtri: "\u25BD", Xfr: "\u{1D51B}", xfr: "\u{1D535}", xharr: "\u27F7", xhArr: "\u27FA", Xi: "\u039E", xi: "\u03BE", xlarr: "\u27F5", xlArr: "\u27F8", xmap: "\u27FC", xnis: "\u22FB", xodot: "\u2A00", Xopf: "\u{1D54F}", xopf: "\u{1D569}", xoplus: "\u2A01", xotime: "\u2A02", xrarr: "\u27F6", xrArr: "\u27F9", Xscr: "\u{1D4B3}", xscr: "\u{1D4CD}", xsqcup: "\u2A06", xuplus: "\u2A04", xutri: "\u25B3", xvee: "\u22C1", xwedge: "\u22C0", Yacute: "\xDD", yacute: "\xFD", YAcy: "\u042F", yacy: "\u044F", Ycirc: "\u0176", ycirc: "\u0177", Ycy: "\u042B", ycy: "\u044B", yen: "\xA5", Yfr: "\u{1D51C}", yfr: "\u{1D536}", YIcy: "\u0407", yicy: "\u0457", Yopf: "\u{1D550}", yopf: "\u{1D56A}", Yscr: "\u{1D4B4}", yscr: "\u{1D4CE}", YUcy: "\u042E", yucy: "\u044E", yuml: "\xFF", Yuml: "\u0178", Zacute: "\u0179", zacute: "\u017A", Zcaron: "\u017D", zcaron: "\u017E", Zcy: "\u0417", zcy: "\u0437", Zdot: "\u017B", zdot: "\u017C", zeetrf: "\u2128", ZeroWidthSpace: "\u200B", Zeta: "\u0396", zeta: "\u03B6", zfr: "\u{1D537}", Zfr: "\u2128", ZHcy: "\u0416", zhcy: "\u0436", zigrarr: "\u21DD", zopf: "\u{1D56B}", Zopf: "\u2124", Zscr: "\u{1D4B5}", zscr: "\u{1D4CF}", zwj: "\u200D", zwnj: "\u200C" };
|
|
15638
|
-
}
|
|
15639
|
-
});
|
|
15640
|
-
|
|
15641
|
-
// node_modules/entities/lib/maps/legacy.json
|
|
15642
|
-
var require_legacy = __commonJS({
|
|
15643
|
-
"node_modules/entities/lib/maps/legacy.json"(exports, module2) {
|
|
15644
|
-
module2.exports = { Aacute: "\xC1", aacute: "\xE1", Acirc: "\xC2", acirc: "\xE2", acute: "\xB4", AElig: "\xC6", aelig: "\xE6", Agrave: "\xC0", agrave: "\xE0", amp: "&", AMP: "&", Aring: "\xC5", aring: "\xE5", Atilde: "\xC3", atilde: "\xE3", Auml: "\xC4", auml: "\xE4", brvbar: "\xA6", Ccedil: "\xC7", ccedil: "\xE7", cedil: "\xB8", cent: "\xA2", copy: "\xA9", COPY: "\xA9", curren: "\xA4", deg: "\xB0", divide: "\xF7", Eacute: "\xC9", eacute: "\xE9", Ecirc: "\xCA", ecirc: "\xEA", Egrave: "\xC8", egrave: "\xE8", ETH: "\xD0", eth: "\xF0", Euml: "\xCB", euml: "\xEB", frac12: "\xBD", frac14: "\xBC", frac34: "\xBE", gt: ">", GT: ">", Iacute: "\xCD", iacute: "\xED", Icirc: "\xCE", icirc: "\xEE", iexcl: "\xA1", Igrave: "\xCC", igrave: "\xEC", iquest: "\xBF", Iuml: "\xCF", iuml: "\xEF", laquo: "\xAB", lt: "<", LT: "<", macr: "\xAF", micro: "\xB5", middot: "\xB7", nbsp: "\xA0", not: "\xAC", Ntilde: "\xD1", ntilde: "\xF1", Oacute: "\xD3", oacute: "\xF3", Ocirc: "\xD4", ocirc: "\xF4", Ograve: "\xD2", ograve: "\xF2", ordf: "\xAA", ordm: "\xBA", Oslash: "\xD8", oslash: "\xF8", Otilde: "\xD5", otilde: "\xF5", Ouml: "\xD6", ouml: "\xF6", para: "\xB6", plusmn: "\xB1", pound: "\xA3", quot: '"', QUOT: '"', raquo: "\xBB", reg: "\xAE", REG: "\xAE", sect: "\xA7", shy: "\xAD", sup1: "\xB9", sup2: "\xB2", sup3: "\xB3", szlig: "\xDF", THORN: "\xDE", thorn: "\xFE", times: "\xD7", Uacute: "\xDA", uacute: "\xFA", Ucirc: "\xDB", ucirc: "\xFB", Ugrave: "\xD9", ugrave: "\xF9", uml: "\xA8", Uuml: "\xDC", uuml: "\xFC", Yacute: "\xDD", yacute: "\xFD", yen: "\xA5", yuml: "\xFF" };
|
|
15645
|
-
}
|
|
15646
|
-
});
|
|
15647
|
-
|
|
15648
|
-
// node_modules/entities/lib/maps/xml.json
|
|
15649
|
-
var require_xml = __commonJS({
|
|
15650
|
-
"node_modules/entities/lib/maps/xml.json"(exports, module2) {
|
|
15651
|
-
module2.exports = { amp: "&", apos: "'", gt: ">", lt: "<", quot: '"' };
|
|
15652
|
-
}
|
|
15653
|
-
});
|
|
15654
|
-
|
|
15655
|
-
// node_modules/entities/lib/maps/decode.json
|
|
15656
|
-
var require_decode = __commonJS({
|
|
15657
|
-
"node_modules/entities/lib/maps/decode.json"(exports, module2) {
|
|
15658
|
-
module2.exports = { "0": 65533, "128": 8364, "130": 8218, "131": 402, "132": 8222, "133": 8230, "134": 8224, "135": 8225, "136": 710, "137": 8240, "138": 352, "139": 8249, "140": 338, "142": 381, "145": 8216, "146": 8217, "147": 8220, "148": 8221, "149": 8226, "150": 8211, "151": 8212, "152": 732, "153": 8482, "154": 353, "155": 8250, "156": 339, "158": 382, "159": 376 };
|
|
15659
|
-
}
|
|
15660
|
-
});
|
|
15661
|
-
|
|
15662
|
-
// node_modules/entities/lib/decode_codepoint.js
|
|
15663
|
-
var require_decode_codepoint = __commonJS({
|
|
15664
|
-
"node_modules/entities/lib/decode_codepoint.js"(exports) {
|
|
15665
|
-
"use strict";
|
|
15666
|
-
var __importDefault = exports && exports.__importDefault || function(mod) {
|
|
15667
|
-
return mod && mod.__esModule ? mod : { "default": mod };
|
|
15668
|
-
};
|
|
15669
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
15670
|
-
var decode_json_1 = __importDefault(require_decode());
|
|
15671
|
-
var fromCodePoint = String.fromCodePoint || function(codePoint) {
|
|
15672
|
-
var output = "";
|
|
15673
|
-
if (codePoint > 65535) {
|
|
15674
|
-
codePoint -= 65536;
|
|
15675
|
-
output += String.fromCharCode(codePoint >>> 10 & 1023 | 55296);
|
|
15676
|
-
codePoint = 56320 | codePoint & 1023;
|
|
15677
|
-
}
|
|
15678
|
-
output += String.fromCharCode(codePoint);
|
|
15679
|
-
return output;
|
|
15680
|
-
};
|
|
15681
|
-
function decodeCodePoint(codePoint) {
|
|
15682
|
-
if (codePoint >= 55296 && codePoint <= 57343 || codePoint > 1114111) {
|
|
15683
|
-
return "\uFFFD";
|
|
15684
|
-
}
|
|
15685
|
-
if (codePoint in decode_json_1.default) {
|
|
15686
|
-
codePoint = decode_json_1.default[codePoint];
|
|
15687
|
-
}
|
|
15688
|
-
return fromCodePoint(codePoint);
|
|
15689
|
-
}
|
|
15690
|
-
exports.default = decodeCodePoint;
|
|
15691
|
-
}
|
|
15692
|
-
});
|
|
15693
|
-
|
|
15694
|
-
// node_modules/entities/lib/decode.js
|
|
15695
|
-
var require_decode2 = __commonJS({
|
|
15696
|
-
"node_modules/entities/lib/decode.js"(exports) {
|
|
15697
|
-
"use strict";
|
|
15698
|
-
var __importDefault = exports && exports.__importDefault || function(mod) {
|
|
15699
|
-
return mod && mod.__esModule ? mod : { "default": mod };
|
|
15700
|
-
};
|
|
15701
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
15702
|
-
exports.decodeHTML = exports.decodeHTMLStrict = exports.decodeXML = void 0;
|
|
15703
|
-
var entities_json_1 = __importDefault(require_entities());
|
|
15704
|
-
var legacy_json_1 = __importDefault(require_legacy());
|
|
15705
|
-
var xml_json_1 = __importDefault(require_xml());
|
|
15706
|
-
var decode_codepoint_1 = __importDefault(require_decode_codepoint());
|
|
15707
|
-
var strictEntityRe = /&(?:[a-zA-Z0-9]+|#[xX][\da-fA-F]+|#\d+);/g;
|
|
15708
|
-
exports.decodeXML = getStrictDecoder(xml_json_1.default);
|
|
15709
|
-
exports.decodeHTMLStrict = getStrictDecoder(entities_json_1.default);
|
|
15710
|
-
function getStrictDecoder(map) {
|
|
15711
|
-
var replace = getReplacer(map);
|
|
15712
|
-
return function(str) {
|
|
15713
|
-
return String(str).replace(strictEntityRe, replace);
|
|
15714
|
-
};
|
|
15715
|
-
}
|
|
15716
|
-
var sorter = function(a, b) {
|
|
15717
|
-
return a < b ? 1 : -1;
|
|
15718
|
-
};
|
|
15719
|
-
exports.decodeHTML = function() {
|
|
15720
|
-
var legacy = Object.keys(legacy_json_1.default).sort(sorter);
|
|
15721
|
-
var keys = Object.keys(entities_json_1.default).sort(sorter);
|
|
15722
|
-
for (var i = 0, j = 0; i < keys.length; i++) {
|
|
15723
|
-
if (legacy[j] === keys[i]) {
|
|
15724
|
-
keys[i] += ";?";
|
|
15725
|
-
j++;
|
|
15726
|
-
} else {
|
|
15727
|
-
keys[i] += ";";
|
|
15728
|
-
}
|
|
15729
|
-
}
|
|
15730
|
-
var re = new RegExp("&(?:" + keys.join("|") + "|#[xX][\\da-fA-F]+;?|#\\d+;?)", "g");
|
|
15731
|
-
var replace = getReplacer(entities_json_1.default);
|
|
15732
|
-
function replacer(str) {
|
|
15733
|
-
if (str.substr(-1) !== ";")
|
|
15734
|
-
str += ";";
|
|
15735
|
-
return replace(str);
|
|
15736
|
-
}
|
|
15737
|
-
return function(str) {
|
|
15738
|
-
return String(str).replace(re, replacer);
|
|
15739
|
-
};
|
|
15740
|
-
}();
|
|
15741
|
-
function getReplacer(map) {
|
|
15742
|
-
return function replace(str) {
|
|
15743
|
-
if (str.charAt(1) === "#") {
|
|
15744
|
-
var secondChar = str.charAt(2);
|
|
15745
|
-
if (secondChar === "X" || secondChar === "x") {
|
|
15746
|
-
return decode_codepoint_1.default(parseInt(str.substr(3), 16));
|
|
15747
|
-
}
|
|
15748
|
-
return decode_codepoint_1.default(parseInt(str.substr(2), 10));
|
|
15749
|
-
}
|
|
15750
|
-
return map[str.slice(1, -1)] || str;
|
|
15751
|
-
};
|
|
15752
|
-
}
|
|
15753
|
-
}
|
|
15754
|
-
});
|
|
15755
|
-
|
|
15756
|
-
// node_modules/entities/lib/encode.js
|
|
15757
|
-
var require_encode = __commonJS({
|
|
15758
|
-
"node_modules/entities/lib/encode.js"(exports) {
|
|
15759
|
-
"use strict";
|
|
15760
|
-
var __importDefault = exports && exports.__importDefault || function(mod) {
|
|
15761
|
-
return mod && mod.__esModule ? mod : { "default": mod };
|
|
15762
|
-
};
|
|
15763
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
15764
|
-
exports.escapeUTF8 = exports.escape = exports.encodeNonAsciiHTML = exports.encodeHTML = exports.encodeXML = void 0;
|
|
15765
|
-
var xml_json_1 = __importDefault(require_xml());
|
|
15766
|
-
var inverseXML = getInverseObj(xml_json_1.default);
|
|
15767
|
-
var xmlReplacer = getInverseReplacer(inverseXML);
|
|
15768
|
-
exports.encodeXML = getASCIIEncoder(inverseXML);
|
|
15769
|
-
var entities_json_1 = __importDefault(require_entities());
|
|
15770
|
-
var inverseHTML = getInverseObj(entities_json_1.default);
|
|
15771
|
-
var htmlReplacer = getInverseReplacer(inverseHTML);
|
|
15772
|
-
exports.encodeHTML = getInverse(inverseHTML, htmlReplacer);
|
|
15773
|
-
exports.encodeNonAsciiHTML = getASCIIEncoder(inverseHTML);
|
|
15774
|
-
function getInverseObj(obj) {
|
|
15775
|
-
return Object.keys(obj).sort().reduce(function(inverse, name) {
|
|
15776
|
-
inverse[obj[name]] = "&" + name + ";";
|
|
15777
|
-
return inverse;
|
|
15778
|
-
}, {});
|
|
15779
|
-
}
|
|
15780
|
-
function getInverseReplacer(inverse) {
|
|
15781
|
-
var single = [];
|
|
15782
|
-
var multiple = [];
|
|
15783
|
-
for (var _i = 0, _a = Object.keys(inverse); _i < _a.length; _i++) {
|
|
15784
|
-
var k = _a[_i];
|
|
15785
|
-
if (k.length === 1) {
|
|
15786
|
-
single.push("\\" + k);
|
|
15787
|
-
} else {
|
|
15788
|
-
multiple.push(k);
|
|
15789
|
-
}
|
|
15790
|
-
}
|
|
15791
|
-
single.sort();
|
|
15792
|
-
for (var start = 0; start < single.length - 1; start++) {
|
|
15793
|
-
var end = start;
|
|
15794
|
-
while (end < single.length - 1 && single[end].charCodeAt(1) + 1 === single[end + 1].charCodeAt(1)) {
|
|
15795
|
-
end += 1;
|
|
15796
|
-
}
|
|
15797
|
-
var count = 1 + end - start;
|
|
15798
|
-
if (count < 3)
|
|
15799
|
-
continue;
|
|
15800
|
-
single.splice(start, count, single[start] + "-" + single[end]);
|
|
15801
|
-
}
|
|
15802
|
-
multiple.unshift("[" + single.join("") + "]");
|
|
15803
|
-
return new RegExp(multiple.join("|"), "g");
|
|
15804
|
-
}
|
|
15805
|
-
var reNonASCII = /(?:[\x80-\uD7FF\uE000-\uFFFF]|[\uD800-\uDBFF][\uDC00-\uDFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF])/g;
|
|
15806
|
-
var getCodePoint = String.prototype.codePointAt != null ? function(str) {
|
|
15807
|
-
return str.codePointAt(0);
|
|
15808
|
-
} : function(c) {
|
|
15809
|
-
return (c.charCodeAt(0) - 55296) * 1024 + c.charCodeAt(1) - 56320 + 65536;
|
|
15810
|
-
};
|
|
15811
|
-
function singleCharReplacer(c) {
|
|
15812
|
-
return "&#x" + (c.length > 1 ? getCodePoint(c) : c.charCodeAt(0)).toString(16).toUpperCase() + ";";
|
|
15813
|
-
}
|
|
15814
|
-
function getInverse(inverse, re) {
|
|
15815
|
-
return function(data) {
|
|
15816
|
-
return data.replace(re, function(name) {
|
|
15817
|
-
return inverse[name];
|
|
15818
|
-
}).replace(reNonASCII, singleCharReplacer);
|
|
15819
|
-
};
|
|
15820
|
-
}
|
|
15821
|
-
var reEscapeChars = new RegExp(xmlReplacer.source + "|" + reNonASCII.source, "g");
|
|
15822
|
-
function escape(data) {
|
|
15823
|
-
return data.replace(reEscapeChars, singleCharReplacer);
|
|
15824
|
-
}
|
|
15825
|
-
exports.escape = escape;
|
|
15826
|
-
function escapeUTF8(data) {
|
|
15827
|
-
return data.replace(xmlReplacer, singleCharReplacer);
|
|
15828
|
-
}
|
|
15829
|
-
exports.escapeUTF8 = escapeUTF8;
|
|
15830
|
-
function getASCIIEncoder(obj) {
|
|
15831
|
-
return function(data) {
|
|
15832
|
-
return data.replace(reEscapeChars, function(c) {
|
|
15833
|
-
return obj[c] || singleCharReplacer(c);
|
|
15834
|
-
});
|
|
15835
|
-
};
|
|
15836
|
-
}
|
|
15837
|
-
}
|
|
15838
|
-
});
|
|
15839
|
-
|
|
15840
|
-
// node_modules/entities/lib/index.js
|
|
15841
|
-
var require_lib = __commonJS({
|
|
15842
|
-
"node_modules/entities/lib/index.js"(exports) {
|
|
15843
|
-
"use strict";
|
|
15844
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
15845
|
-
exports.decodeXMLStrict = exports.decodeHTML5Strict = exports.decodeHTML4Strict = exports.decodeHTML5 = exports.decodeHTML4 = exports.decodeHTMLStrict = exports.decodeHTML = exports.decodeXML = exports.encodeHTML5 = exports.encodeHTML4 = exports.escapeUTF8 = exports.escape = exports.encodeNonAsciiHTML = exports.encodeHTML = exports.encodeXML = exports.encode = exports.decodeStrict = exports.decode = void 0;
|
|
15846
|
-
var decode_1 = require_decode2();
|
|
15847
|
-
var encode_1 = require_encode();
|
|
15848
|
-
function decode(data, level) {
|
|
15849
|
-
return (!level || level <= 0 ? decode_1.decodeXML : decode_1.decodeHTML)(data);
|
|
15850
|
-
}
|
|
15851
|
-
exports.decode = decode;
|
|
15852
|
-
function decodeStrict(data, level) {
|
|
15853
|
-
return (!level || level <= 0 ? decode_1.decodeXML : decode_1.decodeHTMLStrict)(data);
|
|
15854
|
-
}
|
|
15855
|
-
exports.decodeStrict = decodeStrict;
|
|
15856
|
-
function encode(data, level) {
|
|
15857
|
-
return (!level || level <= 0 ? encode_1.encodeXML : encode_1.encodeHTML)(data);
|
|
15858
|
-
}
|
|
15859
|
-
exports.encode = encode;
|
|
15860
|
-
var encode_2 = require_encode();
|
|
15861
|
-
Object.defineProperty(exports, "encodeXML", { enumerable: true, get: function() {
|
|
15862
|
-
return encode_2.encodeXML;
|
|
15863
|
-
} });
|
|
15864
|
-
Object.defineProperty(exports, "encodeHTML", { enumerable: true, get: function() {
|
|
15865
|
-
return encode_2.encodeHTML;
|
|
15866
|
-
} });
|
|
15867
|
-
Object.defineProperty(exports, "encodeNonAsciiHTML", { enumerable: true, get: function() {
|
|
15868
|
-
return encode_2.encodeNonAsciiHTML;
|
|
15869
|
-
} });
|
|
15870
|
-
Object.defineProperty(exports, "escape", { enumerable: true, get: function() {
|
|
15871
|
-
return encode_2.escape;
|
|
15872
|
-
} });
|
|
15873
|
-
Object.defineProperty(exports, "escapeUTF8", { enumerable: true, get: function() {
|
|
15874
|
-
return encode_2.escapeUTF8;
|
|
15875
|
-
} });
|
|
15876
|
-
Object.defineProperty(exports, "encodeHTML4", { enumerable: true, get: function() {
|
|
15877
|
-
return encode_2.encodeHTML;
|
|
15878
|
-
} });
|
|
15879
|
-
Object.defineProperty(exports, "encodeHTML5", { enumerable: true, get: function() {
|
|
15880
|
-
return encode_2.encodeHTML;
|
|
15881
|
-
} });
|
|
15882
|
-
var decode_2 = require_decode2();
|
|
15883
|
-
Object.defineProperty(exports, "decodeXML", { enumerable: true, get: function() {
|
|
15884
|
-
return decode_2.decodeXML;
|
|
15885
|
-
} });
|
|
15886
|
-
Object.defineProperty(exports, "decodeHTML", { enumerable: true, get: function() {
|
|
15887
|
-
return decode_2.decodeHTML;
|
|
15888
|
-
} });
|
|
15889
|
-
Object.defineProperty(exports, "decodeHTMLStrict", { enumerable: true, get: function() {
|
|
15890
|
-
return decode_2.decodeHTMLStrict;
|
|
15891
|
-
} });
|
|
15892
|
-
Object.defineProperty(exports, "decodeHTML4", { enumerable: true, get: function() {
|
|
15893
|
-
return decode_2.decodeHTML;
|
|
15894
|
-
} });
|
|
15895
|
-
Object.defineProperty(exports, "decodeHTML5", { enumerable: true, get: function() {
|
|
15896
|
-
return decode_2.decodeHTML;
|
|
15897
|
-
} });
|
|
15898
|
-
Object.defineProperty(exports, "decodeHTML4Strict", { enumerable: true, get: function() {
|
|
15899
|
-
return decode_2.decodeHTMLStrict;
|
|
15900
|
-
} });
|
|
15901
|
-
Object.defineProperty(exports, "decodeHTML5Strict", { enumerable: true, get: function() {
|
|
15902
|
-
return decode_2.decodeHTMLStrict;
|
|
15903
|
-
} });
|
|
15904
|
-
Object.defineProperty(exports, "decodeXMLStrict", { enumerable: true, get: function() {
|
|
15905
|
-
return decode_2.decodeXML;
|
|
15906
|
-
} });
|
|
15907
|
-
}
|
|
15908
|
-
});
|
|
15909
|
-
|
|
15910
15634
|
// node_modules/fast-xml-parser/src/util.js
|
|
15911
15635
|
var require_util = __commonJS({
|
|
15912
15636
|
"node_modules/fast-xml-parser/src/util.js"(exports) {
|
|
@@ -15920,6 +15644,7 @@ var require_util = __commonJS({
|
|
|
15920
15644
|
let match = regex.exec(string);
|
|
15921
15645
|
while (match) {
|
|
15922
15646
|
const allmatches = [];
|
|
15647
|
+
allmatches.startIndex = regex.lastIndex - match[0].length;
|
|
15923
15648
|
const len = match.length;
|
|
15924
15649
|
for (let index = 0; index < len; index++) {
|
|
15925
15650
|
allmatches.push(match[index]);
|
|
@@ -15959,399 +15684,23 @@ var require_util = __commonJS({
|
|
|
15959
15684
|
return "";
|
|
15960
15685
|
}
|
|
15961
15686
|
};
|
|
15962
|
-
exports.buildOptions = function(options, defaultOptions, props) {
|
|
15963
|
-
var newOptions = {};
|
|
15964
|
-
if (!options) {
|
|
15965
|
-
return defaultOptions;
|
|
15966
|
-
}
|
|
15967
|
-
for (let i = 0; i < props.length; i++) {
|
|
15968
|
-
if (options[props[i]] !== void 0) {
|
|
15969
|
-
newOptions[props[i]] = options[props[i]];
|
|
15970
|
-
} else {
|
|
15971
|
-
newOptions[props[i]] = defaultOptions[props[i]];
|
|
15972
|
-
}
|
|
15973
|
-
}
|
|
15974
|
-
return newOptions;
|
|
15975
|
-
};
|
|
15976
|
-
exports.isTagNameInArrayMode = function(tagName, arrayMode, parentTagName) {
|
|
15977
|
-
if (arrayMode === false) {
|
|
15978
|
-
return false;
|
|
15979
|
-
} else if (arrayMode instanceof RegExp) {
|
|
15980
|
-
return arrayMode.test(tagName);
|
|
15981
|
-
} else if (typeof arrayMode === "function") {
|
|
15982
|
-
return !!arrayMode(tagName, parentTagName);
|
|
15983
|
-
}
|
|
15984
|
-
return arrayMode === "strict";
|
|
15985
|
-
};
|
|
15986
15687
|
exports.isName = isName;
|
|
15987
15688
|
exports.getAllMatches = getAllMatches;
|
|
15988
15689
|
exports.nameRegexp = nameRegexp;
|
|
15989
15690
|
}
|
|
15990
15691
|
});
|
|
15991
15692
|
|
|
15992
|
-
// node_modules/fast-xml-parser/src/node2json.js
|
|
15993
|
-
var require_node2json = __commonJS({
|
|
15994
|
-
"node_modules/fast-xml-parser/src/node2json.js"(exports) {
|
|
15995
|
-
"use strict";
|
|
15996
|
-
var util = require_util();
|
|
15997
|
-
var convertToJson = function(node, options, parentTagName) {
|
|
15998
|
-
const jObj = {};
|
|
15999
|
-
if ((!node.child || util.isEmptyObject(node.child)) && (!node.attrsMap || util.isEmptyObject(node.attrsMap))) {
|
|
16000
|
-
return util.isExist(node.val) ? node.val : "";
|
|
16001
|
-
}
|
|
16002
|
-
if (util.isExist(node.val) && !(typeof node.val === "string" && (node.val === "" || node.val === options.cdataPositionChar))) {
|
|
16003
|
-
const asArray = util.isTagNameInArrayMode(node.tagname, options.arrayMode, parentTagName);
|
|
16004
|
-
jObj[options.textNodeName] = asArray ? [node.val] : node.val;
|
|
16005
|
-
}
|
|
16006
|
-
util.merge(jObj, node.attrsMap, options.arrayMode);
|
|
16007
|
-
const keys = Object.keys(node.child);
|
|
16008
|
-
for (let index = 0; index < keys.length; index++) {
|
|
16009
|
-
const tagName = keys[index];
|
|
16010
|
-
if (node.child[tagName] && node.child[tagName].length > 1) {
|
|
16011
|
-
jObj[tagName] = [];
|
|
16012
|
-
for (let tag in node.child[tagName]) {
|
|
16013
|
-
if (node.child[tagName].hasOwnProperty(tag)) {
|
|
16014
|
-
jObj[tagName].push(convertToJson(node.child[tagName][tag], options, tagName));
|
|
16015
|
-
}
|
|
16016
|
-
}
|
|
16017
|
-
} else {
|
|
16018
|
-
const result = convertToJson(node.child[tagName][0], options, tagName);
|
|
16019
|
-
const asArray = options.arrayMode === true && typeof result === "object" || util.isTagNameInArrayMode(tagName, options.arrayMode, parentTagName);
|
|
16020
|
-
jObj[tagName] = asArray ? [result] : result;
|
|
16021
|
-
}
|
|
16022
|
-
}
|
|
16023
|
-
return jObj;
|
|
16024
|
-
};
|
|
16025
|
-
exports.convertToJson = convertToJson;
|
|
16026
|
-
}
|
|
16027
|
-
});
|
|
16028
|
-
|
|
16029
|
-
// node_modules/fast-xml-parser/src/xmlNode.js
|
|
16030
|
-
var require_xmlNode = __commonJS({
|
|
16031
|
-
"node_modules/fast-xml-parser/src/xmlNode.js"(exports, module2) {
|
|
16032
|
-
"use strict";
|
|
16033
|
-
module2.exports = function(tagname, parent, val) {
|
|
16034
|
-
this.tagname = tagname;
|
|
16035
|
-
this.parent = parent;
|
|
16036
|
-
this.child = {};
|
|
16037
|
-
this.attrsMap = {};
|
|
16038
|
-
this.val = val;
|
|
16039
|
-
this.addChild = function(child) {
|
|
16040
|
-
if (Array.isArray(this.child[child.tagname])) {
|
|
16041
|
-
this.child[child.tagname].push(child);
|
|
16042
|
-
} else {
|
|
16043
|
-
this.child[child.tagname] = [child];
|
|
16044
|
-
}
|
|
16045
|
-
};
|
|
16046
|
-
};
|
|
16047
|
-
}
|
|
16048
|
-
});
|
|
16049
|
-
|
|
16050
|
-
// node_modules/fast-xml-parser/src/xmlstr2xmlnode.js
|
|
16051
|
-
var require_xmlstr2xmlnode = __commonJS({
|
|
16052
|
-
"node_modules/fast-xml-parser/src/xmlstr2xmlnode.js"(exports) {
|
|
16053
|
-
"use strict";
|
|
16054
|
-
var util = require_util();
|
|
16055
|
-
var buildOptions = require_util().buildOptions;
|
|
16056
|
-
var xmlNode = require_xmlNode();
|
|
16057
|
-
var regx = "<((!\\[CDATA\\[([\\s\\S]*?)(]]>))|((NAME:)?(NAME))([^>]*)>|((\\/)(NAME)\\s*>))([^<]*)".replace(/NAME/g, util.nameRegexp);
|
|
16058
|
-
if (!Number.parseInt && window.parseInt) {
|
|
16059
|
-
Number.parseInt = window.parseInt;
|
|
16060
|
-
}
|
|
16061
|
-
if (!Number.parseFloat && window.parseFloat) {
|
|
16062
|
-
Number.parseFloat = window.parseFloat;
|
|
16063
|
-
}
|
|
16064
|
-
var defaultOptions = {
|
|
16065
|
-
attributeNamePrefix: "@_",
|
|
16066
|
-
attrNodeName: false,
|
|
16067
|
-
textNodeName: "#text",
|
|
16068
|
-
ignoreAttributes: true,
|
|
16069
|
-
ignoreNameSpace: false,
|
|
16070
|
-
allowBooleanAttributes: false,
|
|
16071
|
-
parseNodeValue: true,
|
|
16072
|
-
parseAttributeValue: false,
|
|
16073
|
-
arrayMode: false,
|
|
16074
|
-
trimValues: true,
|
|
16075
|
-
cdataTagName: false,
|
|
16076
|
-
cdataPositionChar: "\\c",
|
|
16077
|
-
tagValueProcessor: function(a, tagName) {
|
|
16078
|
-
return a;
|
|
16079
|
-
},
|
|
16080
|
-
attrValueProcessor: function(a, attrName) {
|
|
16081
|
-
return a;
|
|
16082
|
-
},
|
|
16083
|
-
stopNodes: []
|
|
16084
|
-
};
|
|
16085
|
-
exports.defaultOptions = defaultOptions;
|
|
16086
|
-
var props = [
|
|
16087
|
-
"attributeNamePrefix",
|
|
16088
|
-
"attrNodeName",
|
|
16089
|
-
"textNodeName",
|
|
16090
|
-
"ignoreAttributes",
|
|
16091
|
-
"ignoreNameSpace",
|
|
16092
|
-
"allowBooleanAttributes",
|
|
16093
|
-
"parseNodeValue",
|
|
16094
|
-
"parseAttributeValue",
|
|
16095
|
-
"arrayMode",
|
|
16096
|
-
"trimValues",
|
|
16097
|
-
"cdataTagName",
|
|
16098
|
-
"cdataPositionChar",
|
|
16099
|
-
"tagValueProcessor",
|
|
16100
|
-
"attrValueProcessor",
|
|
16101
|
-
"parseTrueNumberOnly",
|
|
16102
|
-
"stopNodes"
|
|
16103
|
-
];
|
|
16104
|
-
exports.props = props;
|
|
16105
|
-
function processTagValue(tagName, val, options) {
|
|
16106
|
-
if (val) {
|
|
16107
|
-
if (options.trimValues) {
|
|
16108
|
-
val = val.trim();
|
|
16109
|
-
}
|
|
16110
|
-
val = options.tagValueProcessor(val, tagName);
|
|
16111
|
-
val = parseValue(val, options.parseNodeValue, options.parseTrueNumberOnly);
|
|
16112
|
-
}
|
|
16113
|
-
return val;
|
|
16114
|
-
}
|
|
16115
|
-
function resolveNameSpace(tagname, options) {
|
|
16116
|
-
if (options.ignoreNameSpace) {
|
|
16117
|
-
const tags = tagname.split(":");
|
|
16118
|
-
const prefix = tagname.charAt(0) === "/" ? "/" : "";
|
|
16119
|
-
if (tags[0] === "xmlns") {
|
|
16120
|
-
return "";
|
|
16121
|
-
}
|
|
16122
|
-
if (tags.length === 2) {
|
|
16123
|
-
tagname = prefix + tags[1];
|
|
16124
|
-
}
|
|
16125
|
-
}
|
|
16126
|
-
return tagname;
|
|
16127
|
-
}
|
|
16128
|
-
function parseValue(val, shouldParse, parseTrueNumberOnly) {
|
|
16129
|
-
if (shouldParse && typeof val === "string") {
|
|
16130
|
-
let parsed;
|
|
16131
|
-
if (val.trim() === "" || isNaN(val)) {
|
|
16132
|
-
parsed = val === "true" ? true : val === "false" ? false : val;
|
|
16133
|
-
} else {
|
|
16134
|
-
if (val.indexOf("0x") !== -1) {
|
|
16135
|
-
parsed = Number.parseInt(val, 16);
|
|
16136
|
-
} else if (val.indexOf(".") !== -1) {
|
|
16137
|
-
parsed = Number.parseFloat(val);
|
|
16138
|
-
val = val.replace(/\.?0+$/, "");
|
|
16139
|
-
} else {
|
|
16140
|
-
parsed = Number.parseInt(val, 10);
|
|
16141
|
-
}
|
|
16142
|
-
if (parseTrueNumberOnly) {
|
|
16143
|
-
parsed = String(parsed) === val ? parsed : val;
|
|
16144
|
-
}
|
|
16145
|
-
}
|
|
16146
|
-
return parsed;
|
|
16147
|
-
} else {
|
|
16148
|
-
if (util.isExist(val)) {
|
|
16149
|
-
return val;
|
|
16150
|
-
} else {
|
|
16151
|
-
return "";
|
|
16152
|
-
}
|
|
16153
|
-
}
|
|
16154
|
-
}
|
|
16155
|
-
var attrsRegx = new RegExp(`([^\\s=]+)\\s*(=\\s*(['"])(.*?)\\3)?`, "g");
|
|
16156
|
-
function buildAttributesMap(attrStr, options) {
|
|
16157
|
-
if (!options.ignoreAttributes && typeof attrStr === "string") {
|
|
16158
|
-
attrStr = attrStr.replace(/\r?\n/g, " ");
|
|
16159
|
-
const matches = util.getAllMatches(attrStr, attrsRegx);
|
|
16160
|
-
const len = matches.length;
|
|
16161
|
-
const attrs = {};
|
|
16162
|
-
for (let i = 0; i < len; i++) {
|
|
16163
|
-
const attrName = resolveNameSpace(matches[i][1], options);
|
|
16164
|
-
if (attrName.length) {
|
|
16165
|
-
if (matches[i][4] !== void 0) {
|
|
16166
|
-
if (options.trimValues) {
|
|
16167
|
-
matches[i][4] = matches[i][4].trim();
|
|
16168
|
-
}
|
|
16169
|
-
matches[i][4] = options.attrValueProcessor(matches[i][4], attrName);
|
|
16170
|
-
attrs[options.attributeNamePrefix + attrName] = parseValue(
|
|
16171
|
-
matches[i][4],
|
|
16172
|
-
options.parseAttributeValue,
|
|
16173
|
-
options.parseTrueNumberOnly
|
|
16174
|
-
);
|
|
16175
|
-
} else if (options.allowBooleanAttributes) {
|
|
16176
|
-
attrs[options.attributeNamePrefix + attrName] = true;
|
|
16177
|
-
}
|
|
16178
|
-
}
|
|
16179
|
-
}
|
|
16180
|
-
if (!Object.keys(attrs).length) {
|
|
16181
|
-
return;
|
|
16182
|
-
}
|
|
16183
|
-
if (options.attrNodeName) {
|
|
16184
|
-
const attrCollection = {};
|
|
16185
|
-
attrCollection[options.attrNodeName] = attrs;
|
|
16186
|
-
return attrCollection;
|
|
16187
|
-
}
|
|
16188
|
-
return attrs;
|
|
16189
|
-
}
|
|
16190
|
-
}
|
|
16191
|
-
var getTraversalObj = function(xmlData, options) {
|
|
16192
|
-
xmlData = xmlData.replace(/\r\n?/g, "\n");
|
|
16193
|
-
options = buildOptions(options, defaultOptions, props);
|
|
16194
|
-
const xmlObj = new xmlNode("!xml");
|
|
16195
|
-
let currentNode = xmlObj;
|
|
16196
|
-
let textData = "";
|
|
16197
|
-
for (let i = 0; i < xmlData.length; i++) {
|
|
16198
|
-
const ch = xmlData[i];
|
|
16199
|
-
if (ch === "<") {
|
|
16200
|
-
if (xmlData[i + 1] === "/") {
|
|
16201
|
-
const closeIndex = findClosingIndex(xmlData, ">", i, "Closing Tag is not closed.");
|
|
16202
|
-
let tagName = xmlData.substring(i + 2, closeIndex).trim();
|
|
16203
|
-
if (options.ignoreNameSpace) {
|
|
16204
|
-
const colonIndex = tagName.indexOf(":");
|
|
16205
|
-
if (colonIndex !== -1) {
|
|
16206
|
-
tagName = tagName.substr(colonIndex + 1);
|
|
16207
|
-
}
|
|
16208
|
-
}
|
|
16209
|
-
if (currentNode) {
|
|
16210
|
-
if (currentNode.val) {
|
|
16211
|
-
currentNode.val = util.getValue(currentNode.val) + "" + processTagValue(tagName, textData, options);
|
|
16212
|
-
} else {
|
|
16213
|
-
currentNode.val = processTagValue(tagName, textData, options);
|
|
16214
|
-
}
|
|
16215
|
-
}
|
|
16216
|
-
if (options.stopNodes.length && options.stopNodes.includes(currentNode.tagname)) {
|
|
16217
|
-
currentNode.child = [];
|
|
16218
|
-
if (currentNode.attrsMap == void 0) {
|
|
16219
|
-
currentNode.attrsMap = {};
|
|
16220
|
-
}
|
|
16221
|
-
currentNode.val = xmlData.substr(currentNode.startIndex + 1, i - currentNode.startIndex - 1);
|
|
16222
|
-
}
|
|
16223
|
-
currentNode = currentNode.parent;
|
|
16224
|
-
textData = "";
|
|
16225
|
-
i = closeIndex;
|
|
16226
|
-
} else if (xmlData[i + 1] === "?") {
|
|
16227
|
-
i = findClosingIndex(xmlData, "?>", i, "Pi Tag is not closed.");
|
|
16228
|
-
} else if (xmlData.substr(i + 1, 3) === "!--") {
|
|
16229
|
-
i = findClosingIndex(xmlData, "-->", i, "Comment is not closed.");
|
|
16230
|
-
} else if (xmlData.substr(i + 1, 2) === "!D") {
|
|
16231
|
-
const closeIndex = findClosingIndex(xmlData, ">", i, "DOCTYPE is not closed.");
|
|
16232
|
-
const tagExp = xmlData.substring(i, closeIndex);
|
|
16233
|
-
if (tagExp.indexOf("[") >= 0) {
|
|
16234
|
-
i = xmlData.indexOf("]>", i) + 1;
|
|
16235
|
-
} else {
|
|
16236
|
-
i = closeIndex;
|
|
16237
|
-
}
|
|
16238
|
-
} else if (xmlData.substr(i + 1, 2) === "![") {
|
|
16239
|
-
const closeIndex = findClosingIndex(xmlData, "]]>", i, "CDATA is not closed.") - 2;
|
|
16240
|
-
const tagExp = xmlData.substring(i + 9, closeIndex);
|
|
16241
|
-
if (textData) {
|
|
16242
|
-
currentNode.val = util.getValue(currentNode.val) + "" + processTagValue(currentNode.tagname, textData, options);
|
|
16243
|
-
textData = "";
|
|
16244
|
-
}
|
|
16245
|
-
if (options.cdataTagName) {
|
|
16246
|
-
const childNode = new xmlNode(options.cdataTagName, currentNode, tagExp);
|
|
16247
|
-
currentNode.addChild(childNode);
|
|
16248
|
-
currentNode.val = util.getValue(currentNode.val) + options.cdataPositionChar;
|
|
16249
|
-
if (tagExp) {
|
|
16250
|
-
childNode.val = tagExp;
|
|
16251
|
-
}
|
|
16252
|
-
} else {
|
|
16253
|
-
currentNode.val = (currentNode.val || "") + (tagExp || "");
|
|
16254
|
-
}
|
|
16255
|
-
i = closeIndex + 2;
|
|
16256
|
-
} else {
|
|
16257
|
-
const result = closingIndexForOpeningTag(xmlData, i + 1);
|
|
16258
|
-
let tagExp = result.data;
|
|
16259
|
-
const closeIndex = result.index;
|
|
16260
|
-
const separatorIndex = tagExp.indexOf(" ");
|
|
16261
|
-
let tagName = tagExp;
|
|
16262
|
-
let shouldBuildAttributesMap = true;
|
|
16263
|
-
if (separatorIndex !== -1) {
|
|
16264
|
-
tagName = tagExp.substr(0, separatorIndex).replace(/\s\s*$/, "");
|
|
16265
|
-
tagExp = tagExp.substr(separatorIndex + 1);
|
|
16266
|
-
}
|
|
16267
|
-
if (options.ignoreNameSpace) {
|
|
16268
|
-
const colonIndex = tagName.indexOf(":");
|
|
16269
|
-
if (colonIndex !== -1) {
|
|
16270
|
-
tagName = tagName.substr(colonIndex + 1);
|
|
16271
|
-
shouldBuildAttributesMap = tagName !== result.data.substr(colonIndex + 1);
|
|
16272
|
-
}
|
|
16273
|
-
}
|
|
16274
|
-
if (currentNode && textData) {
|
|
16275
|
-
if (currentNode.tagname !== "!xml") {
|
|
16276
|
-
currentNode.val = util.getValue(currentNode.val) + "" + processTagValue(currentNode.tagname, textData, options);
|
|
16277
|
-
}
|
|
16278
|
-
}
|
|
16279
|
-
if (tagExp.length > 0 && tagExp.lastIndexOf("/") === tagExp.length - 1) {
|
|
16280
|
-
if (tagName[tagName.length - 1] === "/") {
|
|
16281
|
-
tagName = tagName.substr(0, tagName.length - 1);
|
|
16282
|
-
tagExp = tagName;
|
|
16283
|
-
} else {
|
|
16284
|
-
tagExp = tagExp.substr(0, tagExp.length - 1);
|
|
16285
|
-
}
|
|
16286
|
-
const childNode = new xmlNode(tagName, currentNode, "");
|
|
16287
|
-
if (tagName !== tagExp) {
|
|
16288
|
-
childNode.attrsMap = buildAttributesMap(tagExp, options);
|
|
16289
|
-
}
|
|
16290
|
-
currentNode.addChild(childNode);
|
|
16291
|
-
} else {
|
|
16292
|
-
const childNode = new xmlNode(tagName, currentNode);
|
|
16293
|
-
if (options.stopNodes.length && options.stopNodes.includes(childNode.tagname)) {
|
|
16294
|
-
childNode.startIndex = closeIndex;
|
|
16295
|
-
}
|
|
16296
|
-
if (tagName !== tagExp && shouldBuildAttributesMap) {
|
|
16297
|
-
childNode.attrsMap = buildAttributesMap(tagExp, options);
|
|
16298
|
-
}
|
|
16299
|
-
currentNode.addChild(childNode);
|
|
16300
|
-
currentNode = childNode;
|
|
16301
|
-
}
|
|
16302
|
-
textData = "";
|
|
16303
|
-
i = closeIndex;
|
|
16304
|
-
}
|
|
16305
|
-
} else {
|
|
16306
|
-
textData += xmlData[i];
|
|
16307
|
-
}
|
|
16308
|
-
}
|
|
16309
|
-
return xmlObj;
|
|
16310
|
-
};
|
|
16311
|
-
function closingIndexForOpeningTag(data, i) {
|
|
16312
|
-
let attrBoundary;
|
|
16313
|
-
let tagExp = "";
|
|
16314
|
-
for (let index = i; index < data.length; index++) {
|
|
16315
|
-
let ch = data[index];
|
|
16316
|
-
if (attrBoundary) {
|
|
16317
|
-
if (ch === attrBoundary)
|
|
16318
|
-
attrBoundary = "";
|
|
16319
|
-
} else if (ch === '"' || ch === "'") {
|
|
16320
|
-
attrBoundary = ch;
|
|
16321
|
-
} else if (ch === ">") {
|
|
16322
|
-
return {
|
|
16323
|
-
data: tagExp,
|
|
16324
|
-
index
|
|
16325
|
-
};
|
|
16326
|
-
} else if (ch === " ") {
|
|
16327
|
-
ch = " ";
|
|
16328
|
-
}
|
|
16329
|
-
tagExp += ch;
|
|
16330
|
-
}
|
|
16331
|
-
}
|
|
16332
|
-
function findClosingIndex(xmlData, str, i, errMsg) {
|
|
16333
|
-
const closingIndex = xmlData.indexOf(str, i);
|
|
16334
|
-
if (closingIndex === -1) {
|
|
16335
|
-
throw new Error(errMsg);
|
|
16336
|
-
} else {
|
|
16337
|
-
return closingIndex + str.length - 1;
|
|
16338
|
-
}
|
|
16339
|
-
}
|
|
16340
|
-
exports.getTraversalObj = getTraversalObj;
|
|
16341
|
-
}
|
|
16342
|
-
});
|
|
16343
|
-
|
|
16344
15693
|
// node_modules/fast-xml-parser/src/validator.js
|
|
16345
15694
|
var require_validator = __commonJS({
|
|
16346
15695
|
"node_modules/fast-xml-parser/src/validator.js"(exports) {
|
|
16347
15696
|
"use strict";
|
|
16348
15697
|
var util = require_util();
|
|
16349
15698
|
var defaultOptions = {
|
|
16350
|
-
allowBooleanAttributes: false
|
|
15699
|
+
allowBooleanAttributes: false,
|
|
15700
|
+
unpairedTags: []
|
|
16351
15701
|
};
|
|
16352
|
-
var props = ["allowBooleanAttributes"];
|
|
16353
15702
|
exports.validate = function(xmlData, options) {
|
|
16354
|
-
options =
|
|
15703
|
+
options = Object.assign({}, defaultOptions, options);
|
|
16355
15704
|
const tags = [];
|
|
16356
15705
|
let tagFound = false;
|
|
16357
15706
|
let reachedRoot = false;
|
|
@@ -16365,6 +15714,7 @@ var require_validator = __commonJS({
|
|
|
16365
15714
|
if (i.err)
|
|
16366
15715
|
return i;
|
|
16367
15716
|
} else if (xmlData[i] === "<") {
|
|
15717
|
+
let tagStartPos = i;
|
|
16368
15718
|
i++;
|
|
16369
15719
|
if (xmlData[i] === "!") {
|
|
16370
15720
|
i = readCommentAndCDATA(xmlData, i);
|
|
@@ -16387,7 +15737,7 @@ var require_validator = __commonJS({
|
|
|
16387
15737
|
if (!validateTagName(tagName)) {
|
|
16388
15738
|
let msg;
|
|
16389
15739
|
if (tagName.trim().length === 0) {
|
|
16390
|
-
msg = "
|
|
15740
|
+
msg = "Invalid space after '<'.";
|
|
16391
15741
|
} else {
|
|
16392
15742
|
msg = "Tag '" + tagName + "' is an invalid name.";
|
|
16393
15743
|
}
|
|
@@ -16400,22 +15750,28 @@ var require_validator = __commonJS({
|
|
|
16400
15750
|
let attrStr = result.value;
|
|
16401
15751
|
i = result.index;
|
|
16402
15752
|
if (attrStr[attrStr.length - 1] === "/") {
|
|
15753
|
+
const attrStrStart = i - attrStr.length;
|
|
16403
15754
|
attrStr = attrStr.substring(0, attrStr.length - 1);
|
|
16404
15755
|
const isValid = validateAttributeString(attrStr, options);
|
|
16405
15756
|
if (isValid === true) {
|
|
16406
15757
|
tagFound = true;
|
|
16407
15758
|
} else {
|
|
16408
|
-
return getErrorObject(isValid.err.code, isValid.err.msg, getLineNumberForPosition(xmlData,
|
|
15759
|
+
return getErrorObject(isValid.err.code, isValid.err.msg, getLineNumberForPosition(xmlData, attrStrStart + isValid.err.line));
|
|
16409
15760
|
}
|
|
16410
15761
|
} else if (closingTag) {
|
|
16411
15762
|
if (!result.tagClosed) {
|
|
16412
15763
|
return getErrorObject("InvalidTag", "Closing tag '" + tagName + "' doesn't have proper closing.", getLineNumberForPosition(xmlData, i));
|
|
16413
15764
|
} else if (attrStr.trim().length > 0) {
|
|
16414
|
-
return getErrorObject("InvalidTag", "Closing tag '" + tagName + "' can't have attributes or invalid starting.", getLineNumberForPosition(xmlData,
|
|
15765
|
+
return getErrorObject("InvalidTag", "Closing tag '" + tagName + "' can't have attributes or invalid starting.", getLineNumberForPosition(xmlData, tagStartPos));
|
|
16415
15766
|
} else {
|
|
16416
15767
|
const otg = tags.pop();
|
|
16417
|
-
if (tagName !== otg) {
|
|
16418
|
-
|
|
15768
|
+
if (tagName !== otg.tagName) {
|
|
15769
|
+
let openPos = getLineNumberForPosition(xmlData, otg.tagStartPos);
|
|
15770
|
+
return getErrorObject(
|
|
15771
|
+
"InvalidTag",
|
|
15772
|
+
"Expected closing tag '" + otg.tagName + "' (opened in line " + openPos.line + ", col " + openPos.col + ") instead of closing tag '" + tagName + "'.",
|
|
15773
|
+
getLineNumberForPosition(xmlData, tagStartPos)
|
|
15774
|
+
);
|
|
16419
15775
|
}
|
|
16420
15776
|
if (tags.length == 0) {
|
|
16421
15777
|
reachedRoot = true;
|
|
@@ -16428,8 +15784,9 @@ var require_validator = __commonJS({
|
|
|
16428
15784
|
}
|
|
16429
15785
|
if (reachedRoot === true) {
|
|
16430
15786
|
return getErrorObject("InvalidXml", "Multiple possible root nodes found.", getLineNumberForPosition(xmlData, i));
|
|
15787
|
+
} else if (options.unpairedTags.indexOf(tagName) !== -1) {
|
|
16431
15788
|
} else {
|
|
16432
|
-
tags.push(tagName);
|
|
15789
|
+
tags.push({ tagName, tagStartPos });
|
|
16433
15790
|
}
|
|
16434
15791
|
tagFound = true;
|
|
16435
15792
|
}
|
|
@@ -16451,6 +15808,10 @@ var require_validator = __commonJS({
|
|
|
16451
15808
|
if (afterAmp == -1)
|
|
16452
15809
|
return getErrorObject("InvalidChar", "char '&' is not expected.", getLineNumberForPosition(xmlData, i));
|
|
16453
15810
|
i = afterAmp;
|
|
15811
|
+
} else {
|
|
15812
|
+
if (reachedRoot === true && !isWhiteSpace(xmlData[i])) {
|
|
15813
|
+
return getErrorObject("InvalidXml", "Extra text at the end", getLineNumberForPosition(xmlData, i));
|
|
15814
|
+
}
|
|
16454
15815
|
}
|
|
16455
15816
|
}
|
|
16456
15817
|
if (xmlData[i] === "<") {
|
|
@@ -16458,7 +15819,7 @@ var require_validator = __commonJS({
|
|
|
16458
15819
|
}
|
|
16459
15820
|
}
|
|
16460
15821
|
} else {
|
|
16461
|
-
if (xmlData[i]
|
|
15822
|
+
if (isWhiteSpace(xmlData[i])) {
|
|
16462
15823
|
continue;
|
|
16463
15824
|
}
|
|
16464
15825
|
return getErrorObject("InvalidChar", "char '" + xmlData[i] + "' is not expected.", getLineNumberForPosition(xmlData, i));
|
|
@@ -16466,16 +15827,21 @@ var require_validator = __commonJS({
|
|
|
16466
15827
|
}
|
|
16467
15828
|
if (!tagFound) {
|
|
16468
15829
|
return getErrorObject("InvalidXml", "Start tag expected.", 1);
|
|
15830
|
+
} else if (tags.length == 1) {
|
|
15831
|
+
return getErrorObject("InvalidTag", "Unclosed tag '" + tags[0].tagName + "'.", getLineNumberForPosition(xmlData, tags[0].tagStartPos));
|
|
16469
15832
|
} else if (tags.length > 0) {
|
|
16470
|
-
return getErrorObject("InvalidXml", "Invalid '" + JSON.stringify(tags, null, 4).replace(/\r?\n/g, "") + "' found.", 1);
|
|
15833
|
+
return getErrorObject("InvalidXml", "Invalid '" + JSON.stringify(tags.map((t) => t.tagName), null, 4).replace(/\r?\n/g, "") + "' found.", { line: 1, col: 1 });
|
|
16471
15834
|
}
|
|
16472
15835
|
return true;
|
|
16473
15836
|
};
|
|
15837
|
+
function isWhiteSpace(char) {
|
|
15838
|
+
return char === " " || char === " " || char === "\n" || char === "\r";
|
|
15839
|
+
}
|
|
16474
15840
|
function readPI(xmlData, i) {
|
|
16475
|
-
|
|
15841
|
+
const start = i;
|
|
16476
15842
|
for (; i < xmlData.length; i++) {
|
|
16477
15843
|
if (xmlData[i] == "?" || xmlData[i] == " ") {
|
|
16478
|
-
|
|
15844
|
+
const tagname = xmlData.substr(start, i - start);
|
|
16479
15845
|
if (i > 5 && tagname === "xml") {
|
|
16480
15846
|
return getErrorObject("InvalidXml", "XML declaration allowed only at the start of the document.", getLineNumberForPosition(xmlData, i));
|
|
16481
15847
|
} else if (xmlData[i] == "?" && xmlData[i + 1] == ">") {
|
|
@@ -16529,7 +15895,6 @@ var require_validator = __commonJS({
|
|
|
16529
15895
|
if (startChar === "") {
|
|
16530
15896
|
startChar = xmlData[i];
|
|
16531
15897
|
} else if (startChar !== xmlData[i]) {
|
|
16532
|
-
continue;
|
|
16533
15898
|
} else {
|
|
16534
15899
|
startChar = "";
|
|
16535
15900
|
}
|
|
@@ -16539,312 +15904,1080 @@ var require_validator = __commonJS({
|
|
|
16539
15904
|
break;
|
|
16540
15905
|
}
|
|
16541
15906
|
}
|
|
16542
|
-
attrStr += xmlData[i];
|
|
16543
|
-
}
|
|
16544
|
-
if (startChar !== "") {
|
|
16545
|
-
return false;
|
|
15907
|
+
attrStr += xmlData[i];
|
|
15908
|
+
}
|
|
15909
|
+
if (startChar !== "") {
|
|
15910
|
+
return false;
|
|
15911
|
+
}
|
|
15912
|
+
return {
|
|
15913
|
+
value: attrStr,
|
|
15914
|
+
index: i,
|
|
15915
|
+
tagClosed
|
|
15916
|
+
};
|
|
15917
|
+
}
|
|
15918
|
+
var validAttrStrRegxp = new RegExp(`(\\s*)([^\\s=]+)(\\s*=)?(\\s*(['"])(([\\s\\S])*?)\\5)?`, "g");
|
|
15919
|
+
function validateAttributeString(attrStr, options) {
|
|
15920
|
+
const matches = util.getAllMatches(attrStr, validAttrStrRegxp);
|
|
15921
|
+
const attrNames = {};
|
|
15922
|
+
for (let i = 0; i < matches.length; i++) {
|
|
15923
|
+
if (matches[i][1].length === 0) {
|
|
15924
|
+
return getErrorObject("InvalidAttr", "Attribute '" + matches[i][2] + "' has no space in starting.", getPositionFromMatch(matches[i]));
|
|
15925
|
+
} else if (matches[i][3] !== void 0 && matches[i][4] === void 0) {
|
|
15926
|
+
return getErrorObject("InvalidAttr", "Attribute '" + matches[i][2] + "' is without value.", getPositionFromMatch(matches[i]));
|
|
15927
|
+
} else if (matches[i][3] === void 0 && !options.allowBooleanAttributes) {
|
|
15928
|
+
return getErrorObject("InvalidAttr", "boolean attribute '" + matches[i][2] + "' is not allowed.", getPositionFromMatch(matches[i]));
|
|
15929
|
+
}
|
|
15930
|
+
const attrName = matches[i][2];
|
|
15931
|
+
if (!validateAttrName(attrName)) {
|
|
15932
|
+
return getErrorObject("InvalidAttr", "Attribute '" + attrName + "' is an invalid name.", getPositionFromMatch(matches[i]));
|
|
15933
|
+
}
|
|
15934
|
+
if (!attrNames.hasOwnProperty(attrName)) {
|
|
15935
|
+
attrNames[attrName] = 1;
|
|
15936
|
+
} else {
|
|
15937
|
+
return getErrorObject("InvalidAttr", "Attribute '" + attrName + "' is repeated.", getPositionFromMatch(matches[i]));
|
|
15938
|
+
}
|
|
15939
|
+
}
|
|
15940
|
+
return true;
|
|
15941
|
+
}
|
|
15942
|
+
function validateNumberAmpersand(xmlData, i) {
|
|
15943
|
+
let re = /\d/;
|
|
15944
|
+
if (xmlData[i] === "x") {
|
|
15945
|
+
i++;
|
|
15946
|
+
re = /[\da-fA-F]/;
|
|
15947
|
+
}
|
|
15948
|
+
for (; i < xmlData.length; i++) {
|
|
15949
|
+
if (xmlData[i] === ";")
|
|
15950
|
+
return i;
|
|
15951
|
+
if (!xmlData[i].match(re))
|
|
15952
|
+
break;
|
|
15953
|
+
}
|
|
15954
|
+
return -1;
|
|
15955
|
+
}
|
|
15956
|
+
function validateAmpersand(xmlData, i) {
|
|
15957
|
+
i++;
|
|
15958
|
+
if (xmlData[i] === ";")
|
|
15959
|
+
return -1;
|
|
15960
|
+
if (xmlData[i] === "#") {
|
|
15961
|
+
i++;
|
|
15962
|
+
return validateNumberAmpersand(xmlData, i);
|
|
15963
|
+
}
|
|
15964
|
+
let count = 0;
|
|
15965
|
+
for (; i < xmlData.length; i++, count++) {
|
|
15966
|
+
if (xmlData[i].match(/\w/) && count < 20)
|
|
15967
|
+
continue;
|
|
15968
|
+
if (xmlData[i] === ";")
|
|
15969
|
+
break;
|
|
15970
|
+
return -1;
|
|
15971
|
+
}
|
|
15972
|
+
return i;
|
|
15973
|
+
}
|
|
15974
|
+
function getErrorObject(code, message, lineNumber) {
|
|
15975
|
+
return {
|
|
15976
|
+
err: {
|
|
15977
|
+
code,
|
|
15978
|
+
msg: message,
|
|
15979
|
+
line: lineNumber.line || lineNumber,
|
|
15980
|
+
col: lineNumber.col
|
|
15981
|
+
}
|
|
15982
|
+
};
|
|
15983
|
+
}
|
|
15984
|
+
function validateAttrName(attrName) {
|
|
15985
|
+
return util.isName(attrName);
|
|
15986
|
+
}
|
|
15987
|
+
function validateTagName(tagname) {
|
|
15988
|
+
return util.isName(tagname);
|
|
15989
|
+
}
|
|
15990
|
+
function getLineNumberForPosition(xmlData, index) {
|
|
15991
|
+
const lines = xmlData.substring(0, index).split(/\r?\n/);
|
|
15992
|
+
return {
|
|
15993
|
+
line: lines.length,
|
|
15994
|
+
col: lines[lines.length - 1].length + 1
|
|
15995
|
+
};
|
|
15996
|
+
}
|
|
15997
|
+
function getPositionFromMatch(match) {
|
|
15998
|
+
return match.startIndex + match[1].length;
|
|
15999
|
+
}
|
|
16000
|
+
}
|
|
16001
|
+
});
|
|
16002
|
+
|
|
16003
|
+
// node_modules/fast-xml-parser/src/xmlparser/OptionsBuilder.js
|
|
16004
|
+
var require_OptionsBuilder = __commonJS({
|
|
16005
|
+
"node_modules/fast-xml-parser/src/xmlparser/OptionsBuilder.js"(exports) {
|
|
16006
|
+
var defaultOptions = {
|
|
16007
|
+
preserveOrder: false,
|
|
16008
|
+
attributeNamePrefix: "@_",
|
|
16009
|
+
attributesGroupName: false,
|
|
16010
|
+
textNodeName: "#text",
|
|
16011
|
+
ignoreAttributes: true,
|
|
16012
|
+
removeNSPrefix: false,
|
|
16013
|
+
allowBooleanAttributes: false,
|
|
16014
|
+
parseTagValue: true,
|
|
16015
|
+
parseAttributeValue: false,
|
|
16016
|
+
trimValues: true,
|
|
16017
|
+
cdataPropName: false,
|
|
16018
|
+
numberParseOptions: {
|
|
16019
|
+
hex: true,
|
|
16020
|
+
leadingZeros: true
|
|
16021
|
+
},
|
|
16022
|
+
tagValueProcessor: function(tagName, val) {
|
|
16023
|
+
return val;
|
|
16024
|
+
},
|
|
16025
|
+
attributeValueProcessor: function(attrName, val) {
|
|
16026
|
+
return val;
|
|
16027
|
+
},
|
|
16028
|
+
stopNodes: [],
|
|
16029
|
+
alwaysCreateTextNode: false,
|
|
16030
|
+
isArray: () => false,
|
|
16031
|
+
commentPropName: false,
|
|
16032
|
+
unpairedTags: [],
|
|
16033
|
+
processEntities: true,
|
|
16034
|
+
htmlEntities: false,
|
|
16035
|
+
ignoreDeclaration: false,
|
|
16036
|
+
ignorePiTags: false,
|
|
16037
|
+
transformTagName: false
|
|
16038
|
+
};
|
|
16039
|
+
var buildOptions = function(options) {
|
|
16040
|
+
return Object.assign({}, defaultOptions, options);
|
|
16041
|
+
};
|
|
16042
|
+
exports.buildOptions = buildOptions;
|
|
16043
|
+
exports.defaultOptions = defaultOptions;
|
|
16044
|
+
}
|
|
16045
|
+
});
|
|
16046
|
+
|
|
16047
|
+
// node_modules/fast-xml-parser/src/xmlparser/xmlNode.js
|
|
16048
|
+
var require_xmlNode = __commonJS({
|
|
16049
|
+
"node_modules/fast-xml-parser/src/xmlparser/xmlNode.js"(exports, module2) {
|
|
16050
|
+
"use strict";
|
|
16051
|
+
var XmlNode = class {
|
|
16052
|
+
constructor(tagname) {
|
|
16053
|
+
this.tagname = tagname;
|
|
16054
|
+
this.child = [];
|
|
16055
|
+
this[":@"] = {};
|
|
16056
|
+
}
|
|
16057
|
+
add(key, val) {
|
|
16058
|
+
this.child.push({ [key]: val });
|
|
16059
|
+
}
|
|
16060
|
+
addChild(node) {
|
|
16061
|
+
if (node[":@"] && Object.keys(node[":@"]).length > 0) {
|
|
16062
|
+
this.child.push({ [node.tagname]: node.child, [":@"]: node[":@"] });
|
|
16063
|
+
} else {
|
|
16064
|
+
this.child.push({ [node.tagname]: node.child });
|
|
16065
|
+
}
|
|
16066
|
+
}
|
|
16067
|
+
};
|
|
16068
|
+
module2.exports = XmlNode;
|
|
16069
|
+
}
|
|
16070
|
+
});
|
|
16071
|
+
|
|
16072
|
+
// node_modules/fast-xml-parser/src/xmlparser/DocTypeReader.js
|
|
16073
|
+
var require_DocTypeReader = __commonJS({
|
|
16074
|
+
"node_modules/fast-xml-parser/src/xmlparser/DocTypeReader.js"(exports, module2) {
|
|
16075
|
+
function readDocType(xmlData, i) {
|
|
16076
|
+
const entities = {};
|
|
16077
|
+
if (xmlData[i + 3] === "O" && xmlData[i + 4] === "C" && xmlData[i + 5] === "T" && xmlData[i + 6] === "Y" && xmlData[i + 7] === "P" && xmlData[i + 8] === "E") {
|
|
16078
|
+
i = i + 9;
|
|
16079
|
+
let angleBracketsCount = 1;
|
|
16080
|
+
let hasBody = false, entity = false, comment = false;
|
|
16081
|
+
let exp = "";
|
|
16082
|
+
for (; i < xmlData.length; i++) {
|
|
16083
|
+
if (xmlData[i] === "<") {
|
|
16084
|
+
if (hasBody && xmlData[i + 1] === "!" && xmlData[i + 2] === "E" && xmlData[i + 3] === "N" && xmlData[i + 4] === "T" && xmlData[i + 5] === "I" && xmlData[i + 6] === "T" && xmlData[i + 7] === "Y") {
|
|
16085
|
+
i += 7;
|
|
16086
|
+
entity = true;
|
|
16087
|
+
} else if (hasBody && xmlData[i + 1] === "!" && xmlData[i + 2] === "E" && xmlData[i + 3] === "L" && xmlData[i + 4] === "E" && xmlData[i + 5] === "M" && xmlData[i + 6] === "E" && xmlData[i + 7] === "N" && xmlData[i + 8] === "T") {
|
|
16088
|
+
i += 8;
|
|
16089
|
+
} else if (hasBody && xmlData[i + 1] === "!" && xmlData[i + 2] === "A" && xmlData[i + 3] === "T" && xmlData[i + 4] === "T" && xmlData[i + 5] === "L" && xmlData[i + 6] === "I" && xmlData[i + 7] === "S" && xmlData[i + 8] === "T") {
|
|
16090
|
+
i += 8;
|
|
16091
|
+
} else if (hasBody && xmlData[i + 1] === "!" && xmlData[i + 2] === "N" && xmlData[i + 3] === "O" && xmlData[i + 4] === "T" && xmlData[i + 5] === "A" && xmlData[i + 6] === "T" && xmlData[i + 7] === "I" && xmlData[i + 8] === "O" && xmlData[i + 9] === "N") {
|
|
16092
|
+
i += 9;
|
|
16093
|
+
} else if (xmlData[i + 1] === "!" && xmlData[i + 2] === "-" && xmlData[i + 3] === "-") {
|
|
16094
|
+
comment = true;
|
|
16095
|
+
} else {
|
|
16096
|
+
throw new Error("Invalid DOCTYPE");
|
|
16097
|
+
}
|
|
16098
|
+
angleBracketsCount++;
|
|
16099
|
+
exp = "";
|
|
16100
|
+
} else if (xmlData[i] === ">") {
|
|
16101
|
+
if (comment) {
|
|
16102
|
+
if (xmlData[i - 1] === "-" && xmlData[i - 2] === "-") {
|
|
16103
|
+
comment = false;
|
|
16104
|
+
} else {
|
|
16105
|
+
throw new Error(`Invalid XML comment in DOCTYPE`);
|
|
16106
|
+
}
|
|
16107
|
+
} else if (entity) {
|
|
16108
|
+
parseEntityExp(exp, entities);
|
|
16109
|
+
entity = false;
|
|
16110
|
+
}
|
|
16111
|
+
angleBracketsCount--;
|
|
16112
|
+
if (angleBracketsCount === 0) {
|
|
16113
|
+
break;
|
|
16114
|
+
}
|
|
16115
|
+
} else if (xmlData[i] === "[") {
|
|
16116
|
+
hasBody = true;
|
|
16117
|
+
} else {
|
|
16118
|
+
exp += xmlData[i];
|
|
16119
|
+
}
|
|
16120
|
+
}
|
|
16121
|
+
if (angleBracketsCount !== 0) {
|
|
16122
|
+
throw new Error(`Unclosed DOCTYPE`);
|
|
16123
|
+
}
|
|
16124
|
+
} else {
|
|
16125
|
+
throw new Error(`Invalid Tag instead of DOCTYPE`);
|
|
16126
|
+
}
|
|
16127
|
+
return { entities, i };
|
|
16128
|
+
}
|
|
16129
|
+
var entityRegex = RegExp(`^\\s([a-zA-z0-0]+)[ ](['"])([^&]+)\\2`);
|
|
16130
|
+
function parseEntityExp(exp, entities) {
|
|
16131
|
+
const match = entityRegex.exec(exp);
|
|
16132
|
+
if (match) {
|
|
16133
|
+
entities[match[1]] = {
|
|
16134
|
+
regx: RegExp(`&${match[1]};`, "g"),
|
|
16135
|
+
val: match[3]
|
|
16136
|
+
};
|
|
16137
|
+
}
|
|
16138
|
+
}
|
|
16139
|
+
module2.exports = readDocType;
|
|
16140
|
+
}
|
|
16141
|
+
});
|
|
16142
|
+
|
|
16143
|
+
// node_modules/strnum/strnum.js
|
|
16144
|
+
var require_strnum = __commonJS({
|
|
16145
|
+
"node_modules/strnum/strnum.js"(exports, module2) {
|
|
16146
|
+
var hexRegex = /^[-+]?0x[a-fA-F0-9]+$/;
|
|
16147
|
+
var numRegex = /^([\-\+])?(0*)(\.[0-9]+([eE]\-?[0-9]+)?|[0-9]+(\.[0-9]+([eE]\-?[0-9]+)?)?)$/;
|
|
16148
|
+
if (!Number.parseInt && window.parseInt) {
|
|
16149
|
+
Number.parseInt = window.parseInt;
|
|
16150
|
+
}
|
|
16151
|
+
if (!Number.parseFloat && window.parseFloat) {
|
|
16152
|
+
Number.parseFloat = window.parseFloat;
|
|
16153
|
+
}
|
|
16154
|
+
var consider = {
|
|
16155
|
+
hex: true,
|
|
16156
|
+
leadingZeros: true,
|
|
16157
|
+
decimalPoint: ".",
|
|
16158
|
+
eNotation: true
|
|
16159
|
+
};
|
|
16160
|
+
function toNumber(str, options = {}) {
|
|
16161
|
+
options = Object.assign({}, consider, options);
|
|
16162
|
+
if (!str || typeof str !== "string")
|
|
16163
|
+
return str;
|
|
16164
|
+
let trimmedStr = str.trim();
|
|
16165
|
+
if (options.skipLike !== void 0 && options.skipLike.test(trimmedStr))
|
|
16166
|
+
return str;
|
|
16167
|
+
else if (options.hex && hexRegex.test(trimmedStr)) {
|
|
16168
|
+
return Number.parseInt(trimmedStr, 16);
|
|
16169
|
+
} else {
|
|
16170
|
+
const match = numRegex.exec(trimmedStr);
|
|
16171
|
+
if (match) {
|
|
16172
|
+
const sign = match[1];
|
|
16173
|
+
const leadingZeros = match[2];
|
|
16174
|
+
let numTrimmedByZeros = trimZeros(match[3]);
|
|
16175
|
+
const eNotation = match[4] || match[6];
|
|
16176
|
+
if (!options.leadingZeros && leadingZeros.length > 0 && sign && trimmedStr[2] !== ".")
|
|
16177
|
+
return str;
|
|
16178
|
+
else if (!options.leadingZeros && leadingZeros.length > 0 && !sign && trimmedStr[1] !== ".")
|
|
16179
|
+
return str;
|
|
16180
|
+
else {
|
|
16181
|
+
const num = Number(trimmedStr);
|
|
16182
|
+
const numStr = "" + num;
|
|
16183
|
+
if (numStr.search(/[eE]/) !== -1) {
|
|
16184
|
+
if (options.eNotation)
|
|
16185
|
+
return num;
|
|
16186
|
+
else
|
|
16187
|
+
return str;
|
|
16188
|
+
} else if (eNotation) {
|
|
16189
|
+
if (options.eNotation)
|
|
16190
|
+
return num;
|
|
16191
|
+
else
|
|
16192
|
+
return str;
|
|
16193
|
+
} else if (trimmedStr.indexOf(".") !== -1) {
|
|
16194
|
+
if (numStr === "0" && numTrimmedByZeros === "")
|
|
16195
|
+
return num;
|
|
16196
|
+
else if (numStr === numTrimmedByZeros)
|
|
16197
|
+
return num;
|
|
16198
|
+
else if (sign && numStr === "-" + numTrimmedByZeros)
|
|
16199
|
+
return num;
|
|
16200
|
+
else
|
|
16201
|
+
return str;
|
|
16202
|
+
}
|
|
16203
|
+
if (leadingZeros) {
|
|
16204
|
+
if (numTrimmedByZeros === numStr)
|
|
16205
|
+
return num;
|
|
16206
|
+
else if (sign + numTrimmedByZeros === numStr)
|
|
16207
|
+
return num;
|
|
16208
|
+
else
|
|
16209
|
+
return str;
|
|
16210
|
+
}
|
|
16211
|
+
if (trimmedStr === numStr)
|
|
16212
|
+
return num;
|
|
16213
|
+
else if (trimmedStr === sign + numStr)
|
|
16214
|
+
return num;
|
|
16215
|
+
return str;
|
|
16216
|
+
}
|
|
16217
|
+
} else {
|
|
16218
|
+
return str;
|
|
16219
|
+
}
|
|
16220
|
+
}
|
|
16221
|
+
}
|
|
16222
|
+
function trimZeros(numStr) {
|
|
16223
|
+
if (numStr && numStr.indexOf(".") !== -1) {
|
|
16224
|
+
numStr = numStr.replace(/0+$/, "");
|
|
16225
|
+
if (numStr === ".")
|
|
16226
|
+
numStr = "0";
|
|
16227
|
+
else if (numStr[0] === ".")
|
|
16228
|
+
numStr = "0" + numStr;
|
|
16229
|
+
else if (numStr[numStr.length - 1] === ".")
|
|
16230
|
+
numStr = numStr.substr(0, numStr.length - 1);
|
|
16231
|
+
return numStr;
|
|
16232
|
+
}
|
|
16233
|
+
return numStr;
|
|
16234
|
+
}
|
|
16235
|
+
module2.exports = toNumber;
|
|
16236
|
+
}
|
|
16237
|
+
});
|
|
16238
|
+
|
|
16239
|
+
// node_modules/fast-xml-parser/src/xmlparser/OrderedObjParser.js
|
|
16240
|
+
var require_OrderedObjParser = __commonJS({
|
|
16241
|
+
"node_modules/fast-xml-parser/src/xmlparser/OrderedObjParser.js"(exports, module2) {
|
|
16242
|
+
"use strict";
|
|
16243
|
+
var util = require_util();
|
|
16244
|
+
var xmlNode = require_xmlNode();
|
|
16245
|
+
var readDocType = require_DocTypeReader();
|
|
16246
|
+
var toNumber = require_strnum();
|
|
16247
|
+
var regx = "<((!\\[CDATA\\[([\\s\\S]*?)(]]>))|((NAME:)?(NAME))([^>]*)>|((\\/)(NAME)\\s*>))([^<]*)".replace(/NAME/g, util.nameRegexp);
|
|
16248
|
+
var OrderedObjParser = class {
|
|
16249
|
+
constructor(options) {
|
|
16250
|
+
this.options = options;
|
|
16251
|
+
this.currentNode = null;
|
|
16252
|
+
this.tagsNodeStack = [];
|
|
16253
|
+
this.docTypeEntities = {};
|
|
16254
|
+
this.lastEntities = {
|
|
16255
|
+
"apos": { regex: /&(apos|#39|#x27);/g, val: "'" },
|
|
16256
|
+
"gt": { regex: /&(gt|#62|#x3E);/g, val: ">" },
|
|
16257
|
+
"lt": { regex: /&(lt|#60|#x3C);/g, val: "<" },
|
|
16258
|
+
"quot": { regex: /&(quot|#34|#x22);/g, val: '"' }
|
|
16259
|
+
};
|
|
16260
|
+
this.ampEntity = { regex: /&(amp|#38|#x26);/g, val: "&" };
|
|
16261
|
+
this.htmlEntities = {
|
|
16262
|
+
"space": { regex: /&(nbsp|#160);/g, val: " " },
|
|
16263
|
+
"cent": { regex: /&(cent|#162);/g, val: "\xA2" },
|
|
16264
|
+
"pound": { regex: /&(pound|#163);/g, val: "\xA3" },
|
|
16265
|
+
"yen": { regex: /&(yen|#165);/g, val: "\xA5" },
|
|
16266
|
+
"euro": { regex: /&(euro|#8364);/g, val: "\u20AC" },
|
|
16267
|
+
"copyright": { regex: /&(copy|#169);/g, val: "\xA9" },
|
|
16268
|
+
"reg": { regex: /&(reg|#174);/g, val: "\xAE" },
|
|
16269
|
+
"inr": { regex: /&(inr|#8377);/g, val: "\u20B9" }
|
|
16270
|
+
};
|
|
16271
|
+
this.addExternalEntities = addExternalEntities;
|
|
16272
|
+
this.parseXml = parseXml;
|
|
16273
|
+
this.parseTextData = parseTextData;
|
|
16274
|
+
this.resolveNameSpace = resolveNameSpace;
|
|
16275
|
+
this.buildAttributesMap = buildAttributesMap;
|
|
16276
|
+
this.isItStopNode = isItStopNode;
|
|
16277
|
+
this.replaceEntitiesValue = replaceEntitiesValue;
|
|
16278
|
+
this.readStopNodeData = readStopNodeData;
|
|
16279
|
+
this.saveTextToParentTag = saveTextToParentTag;
|
|
16280
|
+
}
|
|
16281
|
+
};
|
|
16282
|
+
function addExternalEntities(externalEntities) {
|
|
16283
|
+
const entKeys = Object.keys(externalEntities);
|
|
16284
|
+
for (let i = 0; i < entKeys.length; i++) {
|
|
16285
|
+
const ent = entKeys[i];
|
|
16286
|
+
this.lastEntities[ent] = {
|
|
16287
|
+
regex: new RegExp("&" + ent + ";", "g"),
|
|
16288
|
+
val: externalEntities[ent]
|
|
16289
|
+
};
|
|
16290
|
+
}
|
|
16291
|
+
}
|
|
16292
|
+
function parseTextData(val, tagName, jPath, dontTrim, hasAttributes, isLeafNode, escapeEntities) {
|
|
16293
|
+
if (val !== void 0) {
|
|
16294
|
+
if (this.options.trimValues && !dontTrim) {
|
|
16295
|
+
val = val.trim();
|
|
16296
|
+
}
|
|
16297
|
+
if (val.length > 0) {
|
|
16298
|
+
if (!escapeEntities)
|
|
16299
|
+
val = this.replaceEntitiesValue(val);
|
|
16300
|
+
const newval = this.options.tagValueProcessor(tagName, val, jPath, hasAttributes, isLeafNode);
|
|
16301
|
+
if (newval === null || newval === void 0) {
|
|
16302
|
+
return val;
|
|
16303
|
+
} else if (typeof newval !== typeof val || newval !== val) {
|
|
16304
|
+
return newval;
|
|
16305
|
+
} else if (this.options.trimValues) {
|
|
16306
|
+
return parseValue(val, this.options.parseTagValue, this.options.numberParseOptions);
|
|
16307
|
+
} else {
|
|
16308
|
+
const trimmedVal = val.trim();
|
|
16309
|
+
if (trimmedVal === val) {
|
|
16310
|
+
return parseValue(val, this.options.parseTagValue, this.options.numberParseOptions);
|
|
16311
|
+
} else {
|
|
16312
|
+
return val;
|
|
16313
|
+
}
|
|
16314
|
+
}
|
|
16315
|
+
}
|
|
16316
|
+
}
|
|
16317
|
+
}
|
|
16318
|
+
function resolveNameSpace(tagname) {
|
|
16319
|
+
if (this.options.removeNSPrefix) {
|
|
16320
|
+
const tags = tagname.split(":");
|
|
16321
|
+
const prefix = tagname.charAt(0) === "/" ? "/" : "";
|
|
16322
|
+
if (tags[0] === "xmlns") {
|
|
16323
|
+
return "";
|
|
16324
|
+
}
|
|
16325
|
+
if (tags.length === 2) {
|
|
16326
|
+
tagname = prefix + tags[1];
|
|
16327
|
+
}
|
|
16328
|
+
}
|
|
16329
|
+
return tagname;
|
|
16330
|
+
}
|
|
16331
|
+
var attrsRegx = new RegExp(`([^\\s=]+)\\s*(=\\s*(['"])([\\s\\S]*?)\\3)?`, "gm");
|
|
16332
|
+
function buildAttributesMap(attrStr, jPath) {
|
|
16333
|
+
if (!this.options.ignoreAttributes && typeof attrStr === "string") {
|
|
16334
|
+
const matches = util.getAllMatches(attrStr, attrsRegx);
|
|
16335
|
+
const len = matches.length;
|
|
16336
|
+
const attrs = {};
|
|
16337
|
+
for (let i = 0; i < len; i++) {
|
|
16338
|
+
const attrName = this.resolveNameSpace(matches[i][1]);
|
|
16339
|
+
let oldVal = matches[i][4];
|
|
16340
|
+
const aName = this.options.attributeNamePrefix + attrName;
|
|
16341
|
+
if (attrName.length) {
|
|
16342
|
+
if (oldVal !== void 0) {
|
|
16343
|
+
if (this.options.trimValues) {
|
|
16344
|
+
oldVal = oldVal.trim();
|
|
16345
|
+
}
|
|
16346
|
+
oldVal = this.replaceEntitiesValue(oldVal);
|
|
16347
|
+
const newVal = this.options.attributeValueProcessor(attrName, oldVal, jPath);
|
|
16348
|
+
if (newVal === null || newVal === void 0) {
|
|
16349
|
+
attrs[aName] = oldVal;
|
|
16350
|
+
} else if (typeof newVal !== typeof oldVal || newVal !== oldVal) {
|
|
16351
|
+
attrs[aName] = newVal;
|
|
16352
|
+
} else {
|
|
16353
|
+
attrs[aName] = parseValue(
|
|
16354
|
+
oldVal,
|
|
16355
|
+
this.options.parseAttributeValue,
|
|
16356
|
+
this.options.numberParseOptions
|
|
16357
|
+
);
|
|
16358
|
+
}
|
|
16359
|
+
} else if (this.options.allowBooleanAttributes) {
|
|
16360
|
+
attrs[aName] = true;
|
|
16361
|
+
}
|
|
16362
|
+
}
|
|
16363
|
+
}
|
|
16364
|
+
if (!Object.keys(attrs).length) {
|
|
16365
|
+
return;
|
|
16366
|
+
}
|
|
16367
|
+
if (this.options.attributesGroupName) {
|
|
16368
|
+
const attrCollection = {};
|
|
16369
|
+
attrCollection[this.options.attributesGroupName] = attrs;
|
|
16370
|
+
return attrCollection;
|
|
16371
|
+
}
|
|
16372
|
+
return attrs;
|
|
16373
|
+
}
|
|
16374
|
+
}
|
|
16375
|
+
var parseXml = function(xmlData) {
|
|
16376
|
+
xmlData = xmlData.replace(/\r\n?/g, "\n");
|
|
16377
|
+
const xmlObj = new xmlNode("!xml");
|
|
16378
|
+
let currentNode = xmlObj;
|
|
16379
|
+
let textData = "";
|
|
16380
|
+
let jPath = "";
|
|
16381
|
+
for (let i = 0; i < xmlData.length; i++) {
|
|
16382
|
+
const ch = xmlData[i];
|
|
16383
|
+
if (ch === "<") {
|
|
16384
|
+
if (xmlData[i + 1] === "/") {
|
|
16385
|
+
const closeIndex = findClosingIndex(xmlData, ">", i, "Closing Tag is not closed.");
|
|
16386
|
+
let tagName = xmlData.substring(i + 2, closeIndex).trim();
|
|
16387
|
+
if (this.options.removeNSPrefix) {
|
|
16388
|
+
const colonIndex = tagName.indexOf(":");
|
|
16389
|
+
if (colonIndex !== -1) {
|
|
16390
|
+
tagName = tagName.substr(colonIndex + 1);
|
|
16391
|
+
}
|
|
16392
|
+
}
|
|
16393
|
+
if (this.options.transformTagName) {
|
|
16394
|
+
tagName = this.options.transformTagName(tagName);
|
|
16395
|
+
}
|
|
16396
|
+
if (currentNode) {
|
|
16397
|
+
textData = this.saveTextToParentTag(textData, currentNode, jPath);
|
|
16398
|
+
}
|
|
16399
|
+
jPath = jPath.substr(0, jPath.lastIndexOf("."));
|
|
16400
|
+
currentNode = this.tagsNodeStack.pop();
|
|
16401
|
+
textData = "";
|
|
16402
|
+
i = closeIndex;
|
|
16403
|
+
} else if (xmlData[i + 1] === "?") {
|
|
16404
|
+
let tagData = readTagExp(xmlData, i, false, "?>");
|
|
16405
|
+
if (!tagData)
|
|
16406
|
+
throw new Error("Pi Tag is not closed.");
|
|
16407
|
+
textData = this.saveTextToParentTag(textData, currentNode, jPath);
|
|
16408
|
+
if (this.options.ignoreDeclaration && tagData.tagName === "?xml" || this.options.ignorePiTags) {
|
|
16409
|
+
} else {
|
|
16410
|
+
const childNode = new xmlNode(tagData.tagName);
|
|
16411
|
+
childNode.add(this.options.textNodeName, "");
|
|
16412
|
+
if (tagData.tagName !== tagData.tagExp && tagData.attrExpPresent) {
|
|
16413
|
+
childNode[":@"] = this.buildAttributesMap(tagData.tagExp, jPath);
|
|
16414
|
+
}
|
|
16415
|
+
currentNode.addChild(childNode);
|
|
16416
|
+
}
|
|
16417
|
+
i = tagData.closeIndex + 1;
|
|
16418
|
+
} else if (xmlData.substr(i + 1, 3) === "!--") {
|
|
16419
|
+
const endIndex = findClosingIndex(xmlData, "-->", i + 4, "Comment is not closed.");
|
|
16420
|
+
if (this.options.commentPropName) {
|
|
16421
|
+
const comment = xmlData.substring(i + 4, endIndex - 2);
|
|
16422
|
+
textData = this.saveTextToParentTag(textData, currentNode, jPath);
|
|
16423
|
+
currentNode.add(this.options.commentPropName, [{ [this.options.textNodeName]: comment }]);
|
|
16424
|
+
}
|
|
16425
|
+
i = endIndex;
|
|
16426
|
+
} else if (xmlData.substr(i + 1, 2) === "!D") {
|
|
16427
|
+
const result = readDocType(xmlData, i);
|
|
16428
|
+
this.docTypeEntities = result.entities;
|
|
16429
|
+
i = result.i;
|
|
16430
|
+
} else if (xmlData.substr(i + 1, 2) === "![") {
|
|
16431
|
+
const closeIndex = findClosingIndex(xmlData, "]]>", i, "CDATA is not closed.") - 2;
|
|
16432
|
+
const tagExp = xmlData.substring(i + 9, closeIndex);
|
|
16433
|
+
textData = this.saveTextToParentTag(textData, currentNode, jPath);
|
|
16434
|
+
if (this.options.cdataPropName) {
|
|
16435
|
+
currentNode.add(this.options.cdataPropName, [{ [this.options.textNodeName]: tagExp }]);
|
|
16436
|
+
} else {
|
|
16437
|
+
let val = this.parseTextData(tagExp, currentNode.tagname, jPath, true, false, true);
|
|
16438
|
+
if (val == void 0)
|
|
16439
|
+
val = "";
|
|
16440
|
+
currentNode.add(this.options.textNodeName, val);
|
|
16441
|
+
}
|
|
16442
|
+
i = closeIndex + 2;
|
|
16443
|
+
} else {
|
|
16444
|
+
let result = readTagExp(xmlData, i, this.options.removeNSPrefix);
|
|
16445
|
+
let tagName = result.tagName;
|
|
16446
|
+
let tagExp = result.tagExp;
|
|
16447
|
+
let attrExpPresent = result.attrExpPresent;
|
|
16448
|
+
let closeIndex = result.closeIndex;
|
|
16449
|
+
if (this.options.transformTagName) {
|
|
16450
|
+
tagName = this.options.transformTagName(tagName);
|
|
16451
|
+
}
|
|
16452
|
+
if (currentNode && textData) {
|
|
16453
|
+
if (currentNode.tagname !== "!xml") {
|
|
16454
|
+
textData = this.saveTextToParentTag(textData, currentNode, jPath, false);
|
|
16455
|
+
}
|
|
16456
|
+
}
|
|
16457
|
+
if (tagName !== xmlObj.tagname) {
|
|
16458
|
+
jPath += jPath ? "." + tagName : tagName;
|
|
16459
|
+
}
|
|
16460
|
+
const lastTag = currentNode;
|
|
16461
|
+
if (lastTag && this.options.unpairedTags.indexOf(lastTag.tagname) !== -1) {
|
|
16462
|
+
currentNode = this.tagsNodeStack.pop();
|
|
16463
|
+
}
|
|
16464
|
+
if (this.isItStopNode(this.options.stopNodes, jPath, tagName)) {
|
|
16465
|
+
let tagContent = "";
|
|
16466
|
+
if (tagExp.length > 0 && tagExp.lastIndexOf("/") === tagExp.length - 1) {
|
|
16467
|
+
i = result.closeIndex;
|
|
16468
|
+
} else if (this.options.unpairedTags.indexOf(tagName) !== -1) {
|
|
16469
|
+
i = result.closeIndex;
|
|
16470
|
+
} else {
|
|
16471
|
+
const result2 = this.readStopNodeData(xmlData, tagName, closeIndex + 1);
|
|
16472
|
+
if (!result2)
|
|
16473
|
+
throw new Error(`Unexpected end of ${tagName}`);
|
|
16474
|
+
i = result2.i;
|
|
16475
|
+
tagContent = result2.tagContent;
|
|
16476
|
+
}
|
|
16477
|
+
const childNode = new xmlNode(tagName);
|
|
16478
|
+
if (tagName !== tagExp && attrExpPresent) {
|
|
16479
|
+
childNode[":@"] = this.buildAttributesMap(tagExp, jPath);
|
|
16480
|
+
}
|
|
16481
|
+
if (tagContent) {
|
|
16482
|
+
tagContent = this.parseTextData(tagContent, tagName, jPath, true, attrExpPresent, true, true);
|
|
16483
|
+
}
|
|
16484
|
+
jPath = jPath.substr(0, jPath.lastIndexOf("."));
|
|
16485
|
+
childNode.add(this.options.textNodeName, tagContent);
|
|
16486
|
+
currentNode.addChild(childNode);
|
|
16487
|
+
} else {
|
|
16488
|
+
if (tagExp.length > 0 && tagExp.lastIndexOf("/") === tagExp.length - 1) {
|
|
16489
|
+
if (tagName[tagName.length - 1] === "/") {
|
|
16490
|
+
tagName = tagName.substr(0, tagName.length - 1);
|
|
16491
|
+
tagExp = tagName;
|
|
16492
|
+
} else {
|
|
16493
|
+
tagExp = tagExp.substr(0, tagExp.length - 1);
|
|
16494
|
+
}
|
|
16495
|
+
if (this.options.transformTagName) {
|
|
16496
|
+
tagName = this.options.transformTagName(tagName);
|
|
16497
|
+
}
|
|
16498
|
+
const childNode = new xmlNode(tagName);
|
|
16499
|
+
if (tagName !== tagExp && attrExpPresent) {
|
|
16500
|
+
childNode[":@"] = this.buildAttributesMap(tagExp, jPath);
|
|
16501
|
+
}
|
|
16502
|
+
jPath = jPath.substr(0, jPath.lastIndexOf("."));
|
|
16503
|
+
currentNode.addChild(childNode);
|
|
16504
|
+
} else {
|
|
16505
|
+
const childNode = new xmlNode(tagName);
|
|
16506
|
+
this.tagsNodeStack.push(currentNode);
|
|
16507
|
+
if (tagName !== tagExp && attrExpPresent) {
|
|
16508
|
+
childNode[":@"] = this.buildAttributesMap(tagExp, jPath);
|
|
16509
|
+
}
|
|
16510
|
+
currentNode.addChild(childNode);
|
|
16511
|
+
currentNode = childNode;
|
|
16512
|
+
}
|
|
16513
|
+
textData = "";
|
|
16514
|
+
i = closeIndex;
|
|
16515
|
+
}
|
|
16516
|
+
}
|
|
16517
|
+
} else {
|
|
16518
|
+
textData += xmlData[i];
|
|
16519
|
+
}
|
|
16546
16520
|
}
|
|
16547
|
-
return
|
|
16548
|
-
|
|
16549
|
-
|
|
16550
|
-
|
|
16551
|
-
|
|
16552
|
-
|
|
16553
|
-
|
|
16554
|
-
function validateAttributeString(attrStr, options) {
|
|
16555
|
-
const matches = util.getAllMatches(attrStr, validAttrStrRegxp);
|
|
16556
|
-
const attrNames = {};
|
|
16557
|
-
for (let i = 0; i < matches.length; i++) {
|
|
16558
|
-
if (matches[i][1].length === 0) {
|
|
16559
|
-
return getErrorObject("InvalidAttr", "Attribute '" + matches[i][2] + "' has no space in starting.", getPositionFromMatch(attrStr, matches[i][0]));
|
|
16560
|
-
} else if (matches[i][3] === void 0 && !options.allowBooleanAttributes) {
|
|
16561
|
-
return getErrorObject("InvalidAttr", "boolean attribute '" + matches[i][2] + "' is not allowed.", getPositionFromMatch(attrStr, matches[i][0]));
|
|
16521
|
+
return xmlObj.child;
|
|
16522
|
+
};
|
|
16523
|
+
var replaceEntitiesValue = function(val) {
|
|
16524
|
+
if (this.options.processEntities) {
|
|
16525
|
+
for (let entityName in this.docTypeEntities) {
|
|
16526
|
+
const entity = this.docTypeEntities[entityName];
|
|
16527
|
+
val = val.replace(entity.regx, entity.val);
|
|
16562
16528
|
}
|
|
16563
|
-
|
|
16564
|
-
|
|
16565
|
-
|
|
16529
|
+
for (let entityName in this.lastEntities) {
|
|
16530
|
+
const entity = this.lastEntities[entityName];
|
|
16531
|
+
val = val.replace(entity.regex, entity.val);
|
|
16566
16532
|
}
|
|
16567
|
-
if (
|
|
16568
|
-
|
|
16569
|
-
|
|
16570
|
-
|
|
16533
|
+
if (this.options.htmlEntities) {
|
|
16534
|
+
for (let entityName in this.htmlEntities) {
|
|
16535
|
+
const entity = this.htmlEntities[entityName];
|
|
16536
|
+
val = val.replace(entity.regex, entity.val);
|
|
16537
|
+
}
|
|
16571
16538
|
}
|
|
16539
|
+
val = val.replace(this.ampEntity.regex, this.ampEntity.val);
|
|
16572
16540
|
}
|
|
16573
|
-
return
|
|
16541
|
+
return val;
|
|
16542
|
+
};
|
|
16543
|
+
function saveTextToParentTag(textData, currentNode, jPath, isLeafNode) {
|
|
16544
|
+
if (textData) {
|
|
16545
|
+
if (isLeafNode === void 0)
|
|
16546
|
+
isLeafNode = Object.keys(currentNode.child).length === 0;
|
|
16547
|
+
textData = this.parseTextData(
|
|
16548
|
+
textData,
|
|
16549
|
+
currentNode.tagname,
|
|
16550
|
+
jPath,
|
|
16551
|
+
false,
|
|
16552
|
+
currentNode[":@"] ? Object.keys(currentNode[":@"]).length !== 0 : false,
|
|
16553
|
+
isLeafNode
|
|
16554
|
+
);
|
|
16555
|
+
if (textData !== void 0 && textData !== "")
|
|
16556
|
+
currentNode.add(this.options.textNodeName, textData);
|
|
16557
|
+
textData = "";
|
|
16558
|
+
}
|
|
16559
|
+
return textData;
|
|
16574
16560
|
}
|
|
16575
|
-
function
|
|
16576
|
-
|
|
16577
|
-
|
|
16578
|
-
|
|
16579
|
-
|
|
16580
|
-
|
|
16581
|
-
for (; i < xmlData.length; i++) {
|
|
16582
|
-
if (xmlData[i] === ";")
|
|
16583
|
-
return i;
|
|
16584
|
-
if (!xmlData[i].match(re))
|
|
16585
|
-
break;
|
|
16561
|
+
function isItStopNode(stopNodes, jPath, currentTagName) {
|
|
16562
|
+
const allNodesExp = "*." + currentTagName;
|
|
16563
|
+
for (const stopNodePath in stopNodes) {
|
|
16564
|
+
const stopNodeExp = stopNodes[stopNodePath];
|
|
16565
|
+
if (allNodesExp === stopNodeExp || jPath === stopNodeExp)
|
|
16566
|
+
return true;
|
|
16586
16567
|
}
|
|
16587
|
-
return
|
|
16568
|
+
return false;
|
|
16588
16569
|
}
|
|
16589
|
-
function
|
|
16590
|
-
|
|
16591
|
-
|
|
16592
|
-
|
|
16593
|
-
|
|
16594
|
-
|
|
16595
|
-
|
|
16570
|
+
function tagExpWithClosingIndex(xmlData, i, closingChar = ">") {
|
|
16571
|
+
let attrBoundary;
|
|
16572
|
+
let tagExp = "";
|
|
16573
|
+
for (let index = i; index < xmlData.length; index++) {
|
|
16574
|
+
let ch = xmlData[index];
|
|
16575
|
+
if (attrBoundary) {
|
|
16576
|
+
if (ch === attrBoundary)
|
|
16577
|
+
attrBoundary = "";
|
|
16578
|
+
} else if (ch === '"' || ch === "'") {
|
|
16579
|
+
attrBoundary = ch;
|
|
16580
|
+
} else if (ch === closingChar[0]) {
|
|
16581
|
+
if (closingChar[1]) {
|
|
16582
|
+
if (xmlData[index + 1] === closingChar[1]) {
|
|
16583
|
+
return {
|
|
16584
|
+
data: tagExp,
|
|
16585
|
+
index
|
|
16586
|
+
};
|
|
16587
|
+
}
|
|
16588
|
+
} else {
|
|
16589
|
+
return {
|
|
16590
|
+
data: tagExp,
|
|
16591
|
+
index
|
|
16592
|
+
};
|
|
16593
|
+
}
|
|
16594
|
+
} else if (ch === " ") {
|
|
16595
|
+
ch = " ";
|
|
16596
|
+
}
|
|
16597
|
+
tagExp += ch;
|
|
16596
16598
|
}
|
|
16597
|
-
|
|
16598
|
-
|
|
16599
|
-
|
|
16600
|
-
|
|
16601
|
-
|
|
16602
|
-
|
|
16603
|
-
return -1;
|
|
16599
|
+
}
|
|
16600
|
+
function findClosingIndex(xmlData, str, i, errMsg) {
|
|
16601
|
+
const closingIndex = xmlData.indexOf(str, i);
|
|
16602
|
+
if (closingIndex === -1) {
|
|
16603
|
+
throw new Error(errMsg);
|
|
16604
|
+
} else {
|
|
16605
|
+
return closingIndex + str.length - 1;
|
|
16604
16606
|
}
|
|
16605
|
-
return i;
|
|
16606
16607
|
}
|
|
16607
|
-
function
|
|
16608
|
-
|
|
16609
|
-
|
|
16610
|
-
|
|
16611
|
-
|
|
16612
|
-
|
|
16608
|
+
function readTagExp(xmlData, i, removeNSPrefix, closingChar = ">") {
|
|
16609
|
+
const result = tagExpWithClosingIndex(xmlData, i + 1, closingChar);
|
|
16610
|
+
if (!result)
|
|
16611
|
+
return;
|
|
16612
|
+
let tagExp = result.data;
|
|
16613
|
+
const closeIndex = result.index;
|
|
16614
|
+
const separatorIndex = tagExp.search(/\s/);
|
|
16615
|
+
let tagName = tagExp;
|
|
16616
|
+
let attrExpPresent = true;
|
|
16617
|
+
if (separatorIndex !== -1) {
|
|
16618
|
+
tagName = tagExp.substr(0, separatorIndex).replace(/\s\s*$/, "");
|
|
16619
|
+
tagExp = tagExp.substr(separatorIndex + 1);
|
|
16620
|
+
}
|
|
16621
|
+
if (removeNSPrefix) {
|
|
16622
|
+
const colonIndex = tagName.indexOf(":");
|
|
16623
|
+
if (colonIndex !== -1) {
|
|
16624
|
+
tagName = tagName.substr(colonIndex + 1);
|
|
16625
|
+
attrExpPresent = tagName !== result.data.substr(colonIndex + 1);
|
|
16613
16626
|
}
|
|
16627
|
+
}
|
|
16628
|
+
return {
|
|
16629
|
+
tagName,
|
|
16630
|
+
tagExp,
|
|
16631
|
+
closeIndex,
|
|
16632
|
+
attrExpPresent
|
|
16614
16633
|
};
|
|
16615
16634
|
}
|
|
16616
|
-
function
|
|
16617
|
-
|
|
16618
|
-
|
|
16619
|
-
|
|
16620
|
-
|
|
16621
|
-
|
|
16622
|
-
|
|
16623
|
-
|
|
16624
|
-
|
|
16635
|
+
function readStopNodeData(xmlData, tagName, i) {
|
|
16636
|
+
const startIndex = i;
|
|
16637
|
+
let openTagCount = 1;
|
|
16638
|
+
for (; i < xmlData.length; i++) {
|
|
16639
|
+
if (xmlData[i] === "<") {
|
|
16640
|
+
if (xmlData[i + 1] === "/") {
|
|
16641
|
+
const closeIndex = findClosingIndex(xmlData, ">", i, `${tagName} is not closed`);
|
|
16642
|
+
let closeTagName = xmlData.substring(i + 2, closeIndex).trim();
|
|
16643
|
+
if (closeTagName === tagName) {
|
|
16644
|
+
openTagCount--;
|
|
16645
|
+
if (openTagCount === 0) {
|
|
16646
|
+
return {
|
|
16647
|
+
tagContent: xmlData.substring(startIndex, i),
|
|
16648
|
+
i: closeIndex
|
|
16649
|
+
};
|
|
16650
|
+
}
|
|
16651
|
+
}
|
|
16652
|
+
i = closeIndex;
|
|
16653
|
+
} else if (xmlData[i + 1] === "?") {
|
|
16654
|
+
const closeIndex = findClosingIndex(xmlData, "?>", i + 1, "StopNode is not closed.");
|
|
16655
|
+
i = closeIndex;
|
|
16656
|
+
} else if (xmlData.substr(i + 1, 3) === "!--") {
|
|
16657
|
+
const closeIndex = findClosingIndex(xmlData, "-->", i + 3, "StopNode is not closed.");
|
|
16658
|
+
i = closeIndex;
|
|
16659
|
+
} else if (xmlData.substr(i + 1, 2) === "![") {
|
|
16660
|
+
const closeIndex = findClosingIndex(xmlData, "]]>", i, "StopNode is not closed.") - 2;
|
|
16661
|
+
i = closeIndex;
|
|
16662
|
+
} else {
|
|
16663
|
+
const tagData = readTagExp(xmlData, i, ">");
|
|
16664
|
+
if (tagData) {
|
|
16665
|
+
const openTagName = tagData && tagData.tagName;
|
|
16666
|
+
if (openTagName === tagName && tagData.tagExp[tagData.tagExp.length - 1] !== "/") {
|
|
16667
|
+
openTagCount++;
|
|
16668
|
+
}
|
|
16669
|
+
i = tagData.closeIndex;
|
|
16670
|
+
}
|
|
16671
|
+
}
|
|
16672
|
+
}
|
|
16673
|
+
}
|
|
16625
16674
|
}
|
|
16626
|
-
function
|
|
16627
|
-
|
|
16675
|
+
function parseValue(val, shouldParse, options) {
|
|
16676
|
+
if (shouldParse && typeof val === "string") {
|
|
16677
|
+
const newval = val.trim();
|
|
16678
|
+
if (newval === "true")
|
|
16679
|
+
return true;
|
|
16680
|
+
else if (newval === "false")
|
|
16681
|
+
return false;
|
|
16682
|
+
else
|
|
16683
|
+
return toNumber(val, options);
|
|
16684
|
+
} else {
|
|
16685
|
+
if (util.isExist(val)) {
|
|
16686
|
+
return val;
|
|
16687
|
+
} else {
|
|
16688
|
+
return "";
|
|
16689
|
+
}
|
|
16690
|
+
}
|
|
16628
16691
|
}
|
|
16692
|
+
module2.exports = OrderedObjParser;
|
|
16629
16693
|
}
|
|
16630
16694
|
});
|
|
16631
16695
|
|
|
16632
|
-
// node_modules/fast-xml-parser/src/
|
|
16633
|
-
var
|
|
16634
|
-
"node_modules/fast-xml-parser/src/
|
|
16635
|
-
"use strict";
|
|
16636
|
-
|
|
16637
|
-
return
|
|
16638
|
-
}
|
|
16639
|
-
|
|
16640
|
-
|
|
16641
|
-
|
|
16642
|
-
|
|
16643
|
-
|
|
16644
|
-
|
|
16645
|
-
|
|
16646
|
-
|
|
16647
|
-
|
|
16648
|
-
|
|
16649
|
-
|
|
16650
|
-
|
|
16651
|
-
|
|
16652
|
-
|
|
16653
|
-
|
|
16654
|
-
|
|
16655
|
-
|
|
16656
|
-
|
|
16657
|
-
|
|
16658
|
-
|
|
16659
|
-
|
|
16660
|
-
|
|
16661
|
-
|
|
16662
|
-
|
|
16663
|
-
|
|
16664
|
-
|
|
16665
|
-
|
|
16666
|
-
|
|
16667
|
-
|
|
16668
|
-
|
|
16669
|
-
|
|
16670
|
-
|
|
16671
|
-
|
|
16672
|
-
|
|
16673
|
-
let str = "";
|
|
16674
|
-
if (Array.isArray(e_schema)) {
|
|
16675
|
-
str += chars.arrStart;
|
|
16676
|
-
const itemSchema = e_schema[0];
|
|
16677
|
-
const arr_len = node.length;
|
|
16678
|
-
if (typeof itemSchema === "string") {
|
|
16679
|
-
for (let arr_i = 0; arr_i < arr_len; arr_i++) {
|
|
16680
|
-
const r = getValue(node[arr_i].val, itemSchema);
|
|
16681
|
-
str = processValue(str, r);
|
|
16682
|
-
}
|
|
16683
|
-
} else {
|
|
16684
|
-
for (let arr_i = 0; arr_i < arr_len; arr_i++) {
|
|
16685
|
-
const r = _e(node[arr_i], itemSchema, options);
|
|
16686
|
-
str = processValue(str, r);
|
|
16687
|
-
}
|
|
16696
|
+
// node_modules/fast-xml-parser/src/xmlparser/node2json.js
|
|
16697
|
+
var require_node2json = __commonJS({
|
|
16698
|
+
"node_modules/fast-xml-parser/src/xmlparser/node2json.js"(exports) {
|
|
16699
|
+
"use strict";
|
|
16700
|
+
function prettify(node, options) {
|
|
16701
|
+
return compress(node, options);
|
|
16702
|
+
}
|
|
16703
|
+
function compress(arr, options, jPath) {
|
|
16704
|
+
let text;
|
|
16705
|
+
const compressedObj = {};
|
|
16706
|
+
for (let i = 0; i < arr.length; i++) {
|
|
16707
|
+
const tagObj = arr[i];
|
|
16708
|
+
const property = propName(tagObj);
|
|
16709
|
+
let newJpath = "";
|
|
16710
|
+
if (jPath === void 0)
|
|
16711
|
+
newJpath = property;
|
|
16712
|
+
else
|
|
16713
|
+
newJpath = jPath + "." + property;
|
|
16714
|
+
if (property === options.textNodeName) {
|
|
16715
|
+
if (text === void 0)
|
|
16716
|
+
text = tagObj[property];
|
|
16717
|
+
else
|
|
16718
|
+
text += "" + tagObj[property];
|
|
16719
|
+
} else if (property === void 0) {
|
|
16720
|
+
continue;
|
|
16721
|
+
} else if (tagObj[property]) {
|
|
16722
|
+
let val = compress(tagObj[property], options, newJpath);
|
|
16723
|
+
const isLeaf = isLeafTag(val, options);
|
|
16724
|
+
if (tagObj[":@"]) {
|
|
16725
|
+
assignAttributes(val, tagObj[":@"], newJpath, options);
|
|
16726
|
+
} else if (Object.keys(val).length === 1 && val[options.textNodeName] !== void 0 && !options.alwaysCreateTextNode) {
|
|
16727
|
+
val = val[options.textNodeName];
|
|
16728
|
+
} else if (Object.keys(val).length === 0) {
|
|
16729
|
+
if (options.alwaysCreateTextNode)
|
|
16730
|
+
val[options.textNodeName] = "";
|
|
16731
|
+
else
|
|
16732
|
+
val = "";
|
|
16733
|
+
}
|
|
16734
|
+
if (compressedObj[property] !== void 0 && compressedObj.hasOwnProperty(property)) {
|
|
16735
|
+
if (!Array.isArray(compressedObj[property])) {
|
|
16736
|
+
compressedObj[property] = [compressedObj[property]];
|
|
16688
16737
|
}
|
|
16689
|
-
|
|
16738
|
+
compressedObj[property].push(val);
|
|
16690
16739
|
} else {
|
|
16691
|
-
|
|
16692
|
-
|
|
16693
|
-
|
|
16694
|
-
|
|
16695
|
-
}
|
|
16696
|
-
for (let i in keys) {
|
|
16697
|
-
const key = keys[i];
|
|
16698
|
-
let r;
|
|
16699
|
-
if (!options.ignoreAttributes && node.attrsMap && node.attrsMap[key]) {
|
|
16700
|
-
r = _e(node.attrsMap[key], e_schema[key], options);
|
|
16701
|
-
} else if (key === options.textNodeName) {
|
|
16702
|
-
r = _e(node.val, e_schema[key], options);
|
|
16703
|
-
} else {
|
|
16704
|
-
r = _e(node.child[key], e_schema[key], options);
|
|
16705
|
-
}
|
|
16706
|
-
str = processValue(str, r);
|
|
16740
|
+
if (options.isArray(property, newJpath, isLeaf)) {
|
|
16741
|
+
compressedObj[property] = [val];
|
|
16742
|
+
} else {
|
|
16743
|
+
compressedObj[property] = val;
|
|
16707
16744
|
}
|
|
16708
16745
|
}
|
|
16709
|
-
return str;
|
|
16710
|
-
} else {
|
|
16711
|
-
return hasValidData;
|
|
16712
16746
|
}
|
|
16713
16747
|
}
|
|
16714
|
-
|
|
16715
|
-
|
|
16716
|
-
|
|
16717
|
-
|
|
16718
|
-
|
|
16719
|
-
|
|
16720
|
-
|
|
16721
|
-
|
|
16722
|
-
|
|
16723
|
-
|
|
16724
|
-
|
|
16748
|
+
if (typeof text === "string") {
|
|
16749
|
+
if (text.length > 0)
|
|
16750
|
+
compressedObj[options.textNodeName] = text;
|
|
16751
|
+
} else if (text !== void 0)
|
|
16752
|
+
compressedObj[options.textNodeName] = text;
|
|
16753
|
+
return compressedObj;
|
|
16754
|
+
}
|
|
16755
|
+
function propName(obj) {
|
|
16756
|
+
const keys = Object.keys(obj);
|
|
16757
|
+
for (let i = 0; i < keys.length; i++) {
|
|
16758
|
+
const key = keys[i];
|
|
16759
|
+
if (key !== ":@")
|
|
16760
|
+
return key;
|
|
16725
16761
|
}
|
|
16726
|
-
}
|
|
16727
|
-
|
|
16728
|
-
if (
|
|
16729
|
-
|
|
16762
|
+
}
|
|
16763
|
+
function assignAttributes(obj, attrMap, jpath, options) {
|
|
16764
|
+
if (attrMap) {
|
|
16765
|
+
const keys = Object.keys(attrMap);
|
|
16766
|
+
const len = keys.length;
|
|
16767
|
+
for (let i = 0; i < len; i++) {
|
|
16768
|
+
const atrrName = keys[i];
|
|
16769
|
+
if (options.isArray(atrrName, jpath + "." + atrrName, true, true)) {
|
|
16770
|
+
obj[atrrName] = [attrMap[atrrName]];
|
|
16771
|
+
} else {
|
|
16772
|
+
obj[atrrName] = attrMap[atrrName];
|
|
16773
|
+
}
|
|
16774
|
+
}
|
|
16730
16775
|
}
|
|
16731
|
-
|
|
16732
|
-
|
|
16733
|
-
|
|
16734
|
-
|
|
16735
|
-
};
|
|
16736
|
-
function hasData(jObj) {
|
|
16737
|
-
if (jObj === void 0) {
|
|
16738
|
-
return chars.missingChar;
|
|
16739
|
-
} else if (jObj === null) {
|
|
16740
|
-
return chars.nilChar;
|
|
16741
|
-
} else if (jObj.child && Object.keys(jObj.child).length === 0 && (!jObj.attrsMap || Object.keys(jObj.attrsMap).length === 0)) {
|
|
16742
|
-
return chars.emptyChar;
|
|
16743
|
-
} else {
|
|
16776
|
+
}
|
|
16777
|
+
function isLeafTag(obj, options) {
|
|
16778
|
+
const propCount = Object.keys(obj).length;
|
|
16779
|
+
if (propCount === 0 || propCount === 1 && obj[options.textNodeName])
|
|
16744
16780
|
return true;
|
|
16745
|
-
|
|
16781
|
+
return false;
|
|
16746
16782
|
}
|
|
16747
|
-
|
|
16748
|
-
|
|
16749
|
-
|
|
16750
|
-
|
|
16751
|
-
|
|
16783
|
+
exports.prettify = prettify;
|
|
16784
|
+
}
|
|
16785
|
+
});
|
|
16786
|
+
|
|
16787
|
+
// node_modules/fast-xml-parser/src/xmlparser/XMLParser.js
|
|
16788
|
+
var require_XMLParser = __commonJS({
|
|
16789
|
+
"node_modules/fast-xml-parser/src/xmlparser/XMLParser.js"(exports, module2) {
|
|
16790
|
+
var { buildOptions } = require_OptionsBuilder();
|
|
16791
|
+
var OrderedObjParser = require_OrderedObjParser();
|
|
16792
|
+
var { prettify } = require_node2json();
|
|
16793
|
+
var validator = require_validator();
|
|
16794
|
+
var XMLParser = class {
|
|
16795
|
+
constructor(options) {
|
|
16796
|
+
this.externalEntities = {};
|
|
16797
|
+
this.options = buildOptions(options);
|
|
16798
|
+
}
|
|
16799
|
+
parse(xmlData, validationOption) {
|
|
16800
|
+
if (typeof xmlData === "string") {
|
|
16801
|
+
} else if (xmlData.toString) {
|
|
16802
|
+
xmlData = xmlData.toString();
|
|
16803
|
+
} else {
|
|
16804
|
+
throw new Error("XML data is accepted in String or Bytes[] form.");
|
|
16805
|
+
}
|
|
16806
|
+
if (validationOption) {
|
|
16807
|
+
if (validationOption === true)
|
|
16808
|
+
validationOption = {};
|
|
16809
|
+
const result = validator.validate(xmlData, validationOption);
|
|
16810
|
+
if (result !== true) {
|
|
16811
|
+
throw Error(`${result.err.msg}:${result.err.line}:${result.err.col}`);
|
|
16812
|
+
}
|
|
16813
|
+
}
|
|
16814
|
+
const orderedObjParser = new OrderedObjParser(this.options);
|
|
16815
|
+
orderedObjParser.addExternalEntities(this.externalEntities);
|
|
16816
|
+
const orderedResult = orderedObjParser.parseXml(xmlData);
|
|
16817
|
+
if (this.options.preserveOrder || orderedResult === void 0)
|
|
16818
|
+
return orderedResult;
|
|
16819
|
+
else
|
|
16820
|
+
return prettify(orderedResult, this.options);
|
|
16821
|
+
}
|
|
16822
|
+
addEntity(key, value) {
|
|
16823
|
+
if (value.indexOf("&") !== -1) {
|
|
16824
|
+
throw new Error("Entity value can't have '&'");
|
|
16825
|
+
} else if (key.indexOf("&") !== -1 || key.indexOf(";") !== -1) {
|
|
16826
|
+
throw new Error("An entity must be set without '&' and ';'. Eg. use '#xD' for '
'");
|
|
16827
|
+
} else if (value === "&") {
|
|
16828
|
+
throw new Error("An entity with value '&' is not permitted");
|
|
16829
|
+
} else {
|
|
16830
|
+
this.externalEntities[key] = value;
|
|
16831
|
+
}
|
|
16832
|
+
}
|
|
16752
16833
|
};
|
|
16753
|
-
exports
|
|
16834
|
+
module2.exports = XMLParser;
|
|
16754
16835
|
}
|
|
16755
16836
|
});
|
|
16756
16837
|
|
|
16757
|
-
// node_modules/fast-xml-parser/src/
|
|
16758
|
-
var
|
|
16759
|
-
"node_modules/fast-xml-parser/src/
|
|
16760
|
-
|
|
16761
|
-
|
|
16762
|
-
|
|
16763
|
-
|
|
16764
|
-
|
|
16765
|
-
|
|
16766
|
-
|
|
16767
|
-
|
|
16768
|
-
|
|
16769
|
-
|
|
16770
|
-
let
|
|
16771
|
-
|
|
16772
|
-
|
|
16773
|
-
|
|
16774
|
-
if (
|
|
16775
|
-
|
|
16776
|
-
|
|
16777
|
-
|
|
16838
|
+
// node_modules/fast-xml-parser/src/xmlbuilder/orderedJs2Xml.js
|
|
16839
|
+
var require_orderedJs2Xml = __commonJS({
|
|
16840
|
+
"node_modules/fast-xml-parser/src/xmlbuilder/orderedJs2Xml.js"(exports, module2) {
|
|
16841
|
+
var EOL = "\n";
|
|
16842
|
+
function toXml(jArray, options) {
|
|
16843
|
+
return arrToStr(jArray, options, "", 0);
|
|
16844
|
+
}
|
|
16845
|
+
function arrToStr(arr, options, jPath, level) {
|
|
16846
|
+
let xmlStr = "";
|
|
16847
|
+
let indentation = "";
|
|
16848
|
+
if (options.format && options.indentBy.length > 0) {
|
|
16849
|
+
indentation = EOL + "" + options.indentBy.repeat(level);
|
|
16850
|
+
}
|
|
16851
|
+
for (let i = 0; i < arr.length; i++) {
|
|
16852
|
+
const tagObj = arr[i];
|
|
16853
|
+
const tagName = propName(tagObj);
|
|
16854
|
+
let newJPath = "";
|
|
16855
|
+
if (jPath.length === 0)
|
|
16856
|
+
newJPath = tagName;
|
|
16857
|
+
else
|
|
16858
|
+
newJPath = `${jPath}.${tagName}`;
|
|
16859
|
+
if (tagName === options.textNodeName) {
|
|
16860
|
+
let tagText = tagObj[tagName];
|
|
16861
|
+
if (!isStopNode(newJPath, options)) {
|
|
16862
|
+
tagText = options.tagValueProcessor(tagName, tagText);
|
|
16863
|
+
tagText = replaceEntitiesValue(tagText, options);
|
|
16778
16864
|
}
|
|
16779
|
-
|
|
16865
|
+
xmlStr += indentation + tagText;
|
|
16866
|
+
continue;
|
|
16867
|
+
} else if (tagName === options.cdataPropName) {
|
|
16868
|
+
xmlStr += indentation + `<![CDATA[${tagObj[tagName][0][options.textNodeName]}]]>`;
|
|
16869
|
+
continue;
|
|
16870
|
+
} else if (tagName === options.commentPropName) {
|
|
16871
|
+
xmlStr += indentation + `<!--${tagObj[tagName][0][options.textNodeName]}-->`;
|
|
16872
|
+
continue;
|
|
16873
|
+
} else if (tagName[0] === "?") {
|
|
16874
|
+
const attStr2 = attr_to_str(tagObj[":@"], options);
|
|
16875
|
+
const tempInd = tagName === "?xml" ? "" : indentation;
|
|
16876
|
+
let piTextNodeName = tagObj[tagName][0][options.textNodeName];
|
|
16877
|
+
piTextNodeName = piTextNodeName.length !== 0 ? " " + piTextNodeName : "";
|
|
16878
|
+
xmlStr += tempInd + `<${tagName}${piTextNodeName}${attStr2}?>`;
|
|
16879
|
+
continue;
|
|
16880
|
+
}
|
|
16881
|
+
const attStr = attr_to_str(tagObj[":@"], options);
|
|
16882
|
+
let tagStart = indentation + `<${tagName}${attStr}`;
|
|
16883
|
+
let tagValue = arrToStr(tagObj[tagName], options, newJPath, level + 1);
|
|
16884
|
+
if (options.unpairedTags.indexOf(tagName) !== -1) {
|
|
16885
|
+
if (options.suppressUnpairedNode)
|
|
16886
|
+
xmlStr += tagStart + ">";
|
|
16887
|
+
else
|
|
16888
|
+
xmlStr += tagStart + "/>";
|
|
16889
|
+
} else if ((!tagValue || tagValue.length === 0) && options.suppressEmptyNode) {
|
|
16890
|
+
xmlStr += tagStart + "/>";
|
|
16780
16891
|
} else {
|
|
16781
|
-
|
|
16892
|
+
xmlStr += tagStart + `>${tagValue}${indentation}</${tagName}>`;
|
|
16782
16893
|
}
|
|
16783
16894
|
}
|
|
16784
|
-
|
|
16785
|
-
|
|
16786
|
-
|
|
16787
|
-
|
|
16788
|
-
|
|
16789
|
-
|
|
16790
|
-
|
|
16895
|
+
return xmlStr;
|
|
16896
|
+
}
|
|
16897
|
+
function propName(obj) {
|
|
16898
|
+
const keys = Object.keys(obj);
|
|
16899
|
+
for (let i = 0; i < keys.length; i++) {
|
|
16900
|
+
const key = keys[i];
|
|
16901
|
+
if (key !== ":@")
|
|
16902
|
+
return key;
|
|
16903
|
+
}
|
|
16904
|
+
}
|
|
16905
|
+
function attr_to_str(attrMap, options) {
|
|
16906
|
+
let attrStr = "";
|
|
16907
|
+
if (attrMap && !options.ignoreAttributes) {
|
|
16908
|
+
for (let attr in attrMap) {
|
|
16909
|
+
let attrVal = options.attributeValueProcessor(attr, attrMap[attr]);
|
|
16910
|
+
attrVal = replaceEntitiesValue(attrVal, options);
|
|
16911
|
+
if (attrVal === true && options.suppressBooleanAttributes) {
|
|
16912
|
+
attrStr += ` ${attr.substr(options.attributeNamePrefix.length)}`;
|
|
16913
|
+
} else {
|
|
16914
|
+
attrStr += ` ${attr.substr(options.attributeNamePrefix.length)}="${attrVal}"`;
|
|
16791
16915
|
}
|
|
16792
16916
|
}
|
|
16793
16917
|
}
|
|
16794
|
-
|
|
16795
|
-
|
|
16918
|
+
return attrStr;
|
|
16919
|
+
}
|
|
16920
|
+
function isStopNode(jPath, options) {
|
|
16921
|
+
jPath = jPath.substr(0, jPath.length - options.textNodeName.length - 1);
|
|
16922
|
+
let tagName = jPath.substr(jPath.lastIndexOf(".") + 1);
|
|
16923
|
+
for (let index in options.stopNodes) {
|
|
16924
|
+
if (options.stopNodes[index] === jPath || options.stopNodes[index] === "*." + tagName)
|
|
16925
|
+
return true;
|
|
16796
16926
|
}
|
|
16797
|
-
return
|
|
16798
|
-
}
|
|
16799
|
-
function
|
|
16800
|
-
if (
|
|
16801
|
-
|
|
16802
|
-
|
|
16803
|
-
|
|
16927
|
+
return false;
|
|
16928
|
+
}
|
|
16929
|
+
function replaceEntitiesValue(textValue, options) {
|
|
16930
|
+
if (textValue && textValue.length > 0 && options.processEntities) {
|
|
16931
|
+
for (let i = 0; i < options.entities.length; i++) {
|
|
16932
|
+
const entity = options.entities[i];
|
|
16933
|
+
textValue = textValue.replace(entity.regex, entity.val);
|
|
16934
|
+
}
|
|
16804
16935
|
}
|
|
16936
|
+
return textValue;
|
|
16805
16937
|
}
|
|
16806
|
-
exports
|
|
16938
|
+
module2.exports = toXml;
|
|
16807
16939
|
}
|
|
16808
16940
|
});
|
|
16809
16941
|
|
|
16810
|
-
// node_modules/fast-xml-parser/src/json2xml.js
|
|
16942
|
+
// node_modules/fast-xml-parser/src/xmlbuilder/json2xml.js
|
|
16811
16943
|
var require_json2xml = __commonJS({
|
|
16812
|
-
"node_modules/fast-xml-parser/src/json2xml.js"(exports, module2) {
|
|
16944
|
+
"node_modules/fast-xml-parser/src/xmlbuilder/json2xml.js"(exports, module2) {
|
|
16813
16945
|
"use strict";
|
|
16814
|
-
var
|
|
16946
|
+
var buildFromOrderedJs = require_orderedJs2Xml();
|
|
16815
16947
|
var defaultOptions = {
|
|
16816
16948
|
attributeNamePrefix: "@_",
|
|
16817
|
-
|
|
16949
|
+
attributesGroupName: false,
|
|
16818
16950
|
textNodeName: "#text",
|
|
16819
16951
|
ignoreAttributes: true,
|
|
16820
|
-
|
|
16821
|
-
cdataPositionChar: "\\c",
|
|
16952
|
+
cdataPropName: false,
|
|
16822
16953
|
format: false,
|
|
16823
16954
|
indentBy: " ",
|
|
16824
|
-
|
|
16825
|
-
|
|
16955
|
+
suppressEmptyNode: false,
|
|
16956
|
+
suppressUnpairedNode: true,
|
|
16957
|
+
suppressBooleanAttributes: true,
|
|
16958
|
+
tagValueProcessor: function(key, a) {
|
|
16826
16959
|
return a;
|
|
16827
16960
|
},
|
|
16828
|
-
|
|
16961
|
+
attributeValueProcessor: function(attrName, a) {
|
|
16829
16962
|
return a;
|
|
16830
|
-
}
|
|
16963
|
+
},
|
|
16964
|
+
preserveOrder: false,
|
|
16965
|
+
commentPropName: false,
|
|
16966
|
+
unpairedTags: [],
|
|
16967
|
+
entities: [
|
|
16968
|
+
{ regex: new RegExp("&", "g"), val: "&" },
|
|
16969
|
+
{ regex: new RegExp(">", "g"), val: ">" },
|
|
16970
|
+
{ regex: new RegExp("<", "g"), val: "<" },
|
|
16971
|
+
{ regex: new RegExp("'", "g"), val: "'" },
|
|
16972
|
+
{ regex: new RegExp('"', "g"), val: """ }
|
|
16973
|
+
],
|
|
16974
|
+
processEntities: true,
|
|
16975
|
+
stopNodes: [],
|
|
16976
|
+
transformTagName: false
|
|
16831
16977
|
};
|
|
16832
|
-
|
|
16833
|
-
|
|
16834
|
-
|
|
16835
|
-
"textNodeName",
|
|
16836
|
-
"ignoreAttributes",
|
|
16837
|
-
"cdataTagName",
|
|
16838
|
-
"cdataPositionChar",
|
|
16839
|
-
"format",
|
|
16840
|
-
"indentBy",
|
|
16841
|
-
"supressEmptyNode",
|
|
16842
|
-
"tagValueProcessor",
|
|
16843
|
-
"attrValueProcessor"
|
|
16844
|
-
];
|
|
16845
|
-
function Parser(options) {
|
|
16846
|
-
this.options = buildOptions(options, defaultOptions, props);
|
|
16847
|
-
if (this.options.ignoreAttributes || this.options.attrNodeName) {
|
|
16978
|
+
function Builder(options) {
|
|
16979
|
+
this.options = Object.assign({}, defaultOptions, options);
|
|
16980
|
+
if (this.options.ignoreAttributes || this.options.attributesGroupName) {
|
|
16848
16981
|
this.isAttribute = function() {
|
|
16849
16982
|
return false;
|
|
16850
16983
|
};
|
|
@@ -16852,15 +16985,7 @@ var require_json2xml = __commonJS({
|
|
|
16852
16985
|
this.attrPrefixLen = this.options.attributeNamePrefix.length;
|
|
16853
16986
|
this.isAttribute = isAttribute;
|
|
16854
16987
|
}
|
|
16855
|
-
|
|
16856
|
-
this.isCDATA = isCDATA;
|
|
16857
|
-
} else {
|
|
16858
|
-
this.isCDATA = function() {
|
|
16859
|
-
return false;
|
|
16860
|
-
};
|
|
16861
|
-
}
|
|
16862
|
-
this.replaceCDATAstr = replaceCDATAstr;
|
|
16863
|
-
this.replaceCDATAarr = replaceCDATAarr;
|
|
16988
|
+
this.processTextOrObjNode = processTextOrObjNode;
|
|
16864
16989
|
if (this.options.format) {
|
|
16865
16990
|
this.indentate = indentate;
|
|
16866
16991
|
this.tagEndChar = ">\n";
|
|
@@ -16872,7 +16997,7 @@ var require_json2xml = __commonJS({
|
|
|
16872
16997
|
this.tagEndChar = ">";
|
|
16873
16998
|
this.newLine = "";
|
|
16874
16999
|
}
|
|
16875
|
-
if (this.options.
|
|
17000
|
+
if (this.options.suppressEmptyNode) {
|
|
16876
17001
|
this.buildTextNode = buildEmptyTextNode;
|
|
16877
17002
|
this.buildObjNode = buildEmptyObjNode;
|
|
16878
17003
|
} else {
|
|
@@ -16881,121 +17006,158 @@ var require_json2xml = __commonJS({
|
|
|
16881
17006
|
}
|
|
16882
17007
|
this.buildTextValNode = buildTextValNode;
|
|
16883
17008
|
this.buildObjectNode = buildObjectNode;
|
|
17009
|
+
this.replaceEntitiesValue = replaceEntitiesValue;
|
|
17010
|
+
this.buildAttrPairStr = buildAttrPairStr;
|
|
16884
17011
|
}
|
|
16885
|
-
|
|
16886
|
-
|
|
17012
|
+
Builder.prototype.build = function(jObj) {
|
|
17013
|
+
if (this.options.preserveOrder) {
|
|
17014
|
+
return buildFromOrderedJs(jObj, this.options);
|
|
17015
|
+
} else {
|
|
17016
|
+
if (Array.isArray(jObj) && this.options.arrayNodeName && this.options.arrayNodeName.length > 1) {
|
|
17017
|
+
jObj = {
|
|
17018
|
+
[this.options.arrayNodeName]: jObj
|
|
17019
|
+
};
|
|
17020
|
+
}
|
|
17021
|
+
return this.j2x(jObj, 0).val;
|
|
17022
|
+
}
|
|
16887
17023
|
};
|
|
16888
|
-
|
|
17024
|
+
Builder.prototype.j2x = function(jObj, level) {
|
|
16889
17025
|
let attrStr = "";
|
|
16890
17026
|
let val = "";
|
|
16891
|
-
|
|
16892
|
-
const len = keys.length;
|
|
16893
|
-
for (let i = 0; i < len; i++) {
|
|
16894
|
-
const key = keys[i];
|
|
17027
|
+
for (let key in jObj) {
|
|
16895
17028
|
if (typeof jObj[key] === "undefined") {
|
|
16896
17029
|
} else if (jObj[key] === null) {
|
|
16897
|
-
|
|
17030
|
+
if (key[0] === "?")
|
|
17031
|
+
val += this.indentate(level) + "<" + key + "?" + this.tagEndChar;
|
|
17032
|
+
else
|
|
17033
|
+
val += this.indentate(level) + "<" + key + "/" + this.tagEndChar;
|
|
16898
17034
|
} else if (jObj[key] instanceof Date) {
|
|
16899
17035
|
val += this.buildTextNode(jObj[key], key, "", level);
|
|
16900
17036
|
} else if (typeof jObj[key] !== "object") {
|
|
16901
17037
|
const attr = this.isAttribute(key);
|
|
16902
17038
|
if (attr) {
|
|
16903
|
-
attrStr +=
|
|
16904
|
-
} else if (this.isCDATA(key)) {
|
|
16905
|
-
if (jObj[this.options.textNodeName]) {
|
|
16906
|
-
val += this.replaceCDATAstr(jObj[this.options.textNodeName], jObj[key]);
|
|
16907
|
-
} else {
|
|
16908
|
-
val += this.replaceCDATAstr("", jObj[key]);
|
|
16909
|
-
}
|
|
17039
|
+
attrStr += this.buildAttrPairStr(attr, "" + jObj[key]);
|
|
16910
17040
|
} else {
|
|
16911
17041
|
if (key === this.options.textNodeName) {
|
|
16912
|
-
|
|
16913
|
-
|
|
16914
|
-
val += this.options.tagValueProcessor("" + jObj[key]);
|
|
16915
|
-
}
|
|
17042
|
+
let newval = this.options.tagValueProcessor(key, "" + jObj[key]);
|
|
17043
|
+
val += this.replaceEntitiesValue(newval);
|
|
16916
17044
|
} else {
|
|
16917
17045
|
val += this.buildTextNode(jObj[key], key, "", level);
|
|
16918
17046
|
}
|
|
16919
17047
|
}
|
|
16920
17048
|
} else if (Array.isArray(jObj[key])) {
|
|
16921
|
-
|
|
16922
|
-
|
|
16923
|
-
|
|
16924
|
-
|
|
16925
|
-
} else {
|
|
16926
|
-
|
|
16927
|
-
|
|
16928
|
-
|
|
16929
|
-
const arrLen = jObj[key].length;
|
|
16930
|
-
for (let j = 0; j < arrLen; j++) {
|
|
16931
|
-
const item = jObj[key][j];
|
|
16932
|
-
if (typeof item === "undefined") {
|
|
16933
|
-
} else if (item === null) {
|
|
17049
|
+
const arrLen = jObj[key].length;
|
|
17050
|
+
for (let j = 0; j < arrLen; j++) {
|
|
17051
|
+
const item = jObj[key][j];
|
|
17052
|
+
if (typeof item === "undefined") {
|
|
17053
|
+
} else if (item === null) {
|
|
17054
|
+
if (key[0] === "?")
|
|
17055
|
+
val += this.indentate(level) + "<" + key + "?" + this.tagEndChar;
|
|
17056
|
+
else
|
|
16934
17057
|
val += this.indentate(level) + "<" + key + "/" + this.tagEndChar;
|
|
16935
|
-
|
|
16936
|
-
|
|
16937
|
-
|
|
16938
|
-
|
|
16939
|
-
val += this.buildTextNode(item, key, "", level);
|
|
16940
|
-
}
|
|
17058
|
+
} else if (typeof item === "object") {
|
|
17059
|
+
val += this.processTextOrObjNode(item, key, level);
|
|
17060
|
+
} else {
|
|
17061
|
+
val += this.buildTextNode(item, key, "", level);
|
|
16941
17062
|
}
|
|
16942
17063
|
}
|
|
16943
17064
|
} else {
|
|
16944
|
-
if (this.options.
|
|
17065
|
+
if (this.options.attributesGroupName && key === this.options.attributesGroupName) {
|
|
16945
17066
|
const Ks = Object.keys(jObj[key]);
|
|
16946
17067
|
const L = Ks.length;
|
|
16947
17068
|
for (let j = 0; j < L; j++) {
|
|
16948
|
-
attrStr +=
|
|
17069
|
+
attrStr += this.buildAttrPairStr(Ks[j], "" + jObj[key][Ks[j]]);
|
|
16949
17070
|
}
|
|
16950
17071
|
} else {
|
|
16951
|
-
|
|
16952
|
-
val += this.buildObjNode(result.val, key, result.attrStr, level);
|
|
17072
|
+
val += this.processTextOrObjNode(jObj[key], key, level);
|
|
16953
17073
|
}
|
|
16954
17074
|
}
|
|
16955
17075
|
}
|
|
16956
17076
|
return { attrStr, val };
|
|
16957
17077
|
};
|
|
16958
|
-
function
|
|
16959
|
-
|
|
16960
|
-
|
|
16961
|
-
|
|
16962
|
-
|
|
16963
|
-
|
|
16964
|
-
|
|
17078
|
+
function buildAttrPairStr(attrName, val) {
|
|
17079
|
+
val = this.options.attributeValueProcessor(attrName, "" + val);
|
|
17080
|
+
val = this.replaceEntitiesValue(val);
|
|
17081
|
+
if (this.options.suppressBooleanAttributes && val === "true") {
|
|
17082
|
+
return " " + attrName;
|
|
17083
|
+
} else
|
|
17084
|
+
return " " + attrName + '="' + val + '"';
|
|
16965
17085
|
}
|
|
16966
|
-
function
|
|
16967
|
-
|
|
16968
|
-
if (this.options.
|
|
16969
|
-
return
|
|
17086
|
+
function processTextOrObjNode(object, key, level) {
|
|
17087
|
+
const result = this.j2x(object, level + 1);
|
|
17088
|
+
if (object[this.options.textNodeName] !== void 0 && Object.keys(object).length === 1) {
|
|
17089
|
+
return this.buildTextNode(object[this.options.textNodeName], key, result.attrStr, level);
|
|
16970
17090
|
} else {
|
|
16971
|
-
|
|
16972
|
-
str = str.replace(this.options.cdataPositionChar, "<![CDATA[" + cdata[v] + "]]>");
|
|
16973
|
-
}
|
|
16974
|
-
return str + this.newLine;
|
|
17091
|
+
return this.buildObjNode(result.val, key, result.attrStr, level);
|
|
16975
17092
|
}
|
|
16976
17093
|
}
|
|
16977
17094
|
function buildObjectNode(val, key, attrStr, level) {
|
|
16978
|
-
|
|
16979
|
-
|
|
17095
|
+
let tagEndExp = "</" + key + this.tagEndChar;
|
|
17096
|
+
let piClosingChar = "";
|
|
17097
|
+
if (key[0] === "?") {
|
|
17098
|
+
piClosingChar = "?";
|
|
17099
|
+
tagEndExp = "";
|
|
17100
|
+
}
|
|
17101
|
+
if (attrStr && val.indexOf("<") === -1) {
|
|
17102
|
+
return this.indentate(level) + "<" + key + attrStr + piClosingChar + ">" + val + tagEndExp;
|
|
17103
|
+
} else if (this.options.commentPropName !== false && key === this.options.commentPropName && piClosingChar.length === 0) {
|
|
17104
|
+
return this.indentate(level) + `<!--${val}-->` + this.newLine;
|
|
16980
17105
|
} else {
|
|
16981
|
-
return this.indentate(level) + "<" + key + attrStr + this.tagEndChar + val + this.indentate(level) +
|
|
17106
|
+
return this.indentate(level) + "<" + key + attrStr + piClosingChar + this.tagEndChar + val + this.indentate(level) + tagEndExp;
|
|
16982
17107
|
}
|
|
16983
17108
|
}
|
|
16984
17109
|
function buildEmptyObjNode(val, key, attrStr, level) {
|
|
16985
17110
|
if (val !== "") {
|
|
16986
17111
|
return this.buildObjectNode(val, key, attrStr, level);
|
|
16987
17112
|
} else {
|
|
16988
|
-
|
|
17113
|
+
if (key[0] === "?")
|
|
17114
|
+
return this.indentate(level) + "<" + key + attrStr + "?" + this.tagEndChar;
|
|
17115
|
+
else
|
|
17116
|
+
return this.indentate(level) + "<" + key + attrStr + "/" + this.tagEndChar;
|
|
16989
17117
|
}
|
|
16990
17118
|
}
|
|
16991
17119
|
function buildTextValNode(val, key, attrStr, level) {
|
|
16992
|
-
|
|
17120
|
+
if (this.options.cdataPropName !== false && key === this.options.cdataPropName) {
|
|
17121
|
+
return this.indentate(level) + `<![CDATA[${val}]]>` + this.newLine;
|
|
17122
|
+
} else if (this.options.commentPropName !== false && key === this.options.commentPropName) {
|
|
17123
|
+
return this.indentate(level) + `<!--${val}-->` + this.newLine;
|
|
17124
|
+
} else {
|
|
17125
|
+
let textValue = this.options.tagValueProcessor(key, val);
|
|
17126
|
+
textValue = this.replaceEntitiesValue(textValue);
|
|
17127
|
+
if (textValue === "" && this.options.unpairedTags.indexOf(key) !== -1) {
|
|
17128
|
+
if (this.options.suppressUnpairedNode) {
|
|
17129
|
+
return this.indentate(level) + "<" + key + this.tagEndChar;
|
|
17130
|
+
} else {
|
|
17131
|
+
return this.indentate(level) + "<" + key + "/" + this.tagEndChar;
|
|
17132
|
+
}
|
|
17133
|
+
} else {
|
|
17134
|
+
return this.indentate(level) + "<" + key + attrStr + ">" + textValue + "</" + key + this.tagEndChar;
|
|
17135
|
+
}
|
|
17136
|
+
}
|
|
17137
|
+
}
|
|
17138
|
+
function replaceEntitiesValue(textValue) {
|
|
17139
|
+
if (textValue && textValue.length > 0 && this.options.processEntities) {
|
|
17140
|
+
for (let i = 0; i < this.options.entities.length; i++) {
|
|
17141
|
+
const entity = this.options.entities[i];
|
|
17142
|
+
textValue = textValue.replace(entity.regex, entity.val);
|
|
17143
|
+
}
|
|
17144
|
+
}
|
|
17145
|
+
return textValue;
|
|
16993
17146
|
}
|
|
16994
17147
|
function buildEmptyTextNode(val, key, attrStr, level) {
|
|
16995
|
-
if (val
|
|
17148
|
+
if (val === "" && this.options.unpairedTags.indexOf(key) !== -1) {
|
|
17149
|
+
if (this.options.suppressUnpairedNode) {
|
|
17150
|
+
return this.indentate(level) + "<" + key + this.tagEndChar;
|
|
17151
|
+
} else {
|
|
17152
|
+
return this.indentate(level) + "<" + key + "/" + this.tagEndChar;
|
|
17153
|
+
}
|
|
17154
|
+
} else if (val !== "") {
|
|
16996
17155
|
return this.buildTextValNode(val, key, attrStr, level);
|
|
16997
17156
|
} else {
|
|
16998
|
-
|
|
17157
|
+
if (key[0] === "?")
|
|
17158
|
+
return this.indentate(level) + "<" + key + attrStr + "?" + this.tagEndChar;
|
|
17159
|
+
else
|
|
17160
|
+
return this.indentate(level) + "<" + key + attrStr + "/" + this.tagEndChar;
|
|
16999
17161
|
}
|
|
17000
17162
|
}
|
|
17001
17163
|
function indentate(level) {
|
|
@@ -17008,43 +17170,21 @@ var require_json2xml = __commonJS({
|
|
|
17008
17170
|
return false;
|
|
17009
17171
|
}
|
|
17010
17172
|
}
|
|
17011
|
-
|
|
17012
|
-
return name === this.options.cdataTagName;
|
|
17013
|
-
}
|
|
17014
|
-
module2.exports = Parser;
|
|
17173
|
+
module2.exports = Builder;
|
|
17015
17174
|
}
|
|
17016
17175
|
});
|
|
17017
17176
|
|
|
17018
|
-
// node_modules/fast-xml-parser/src/
|
|
17019
|
-
var
|
|
17020
|
-
"node_modules/fast-xml-parser/src/
|
|
17177
|
+
// node_modules/fast-xml-parser/src/fxp.js
|
|
17178
|
+
var require_fxp = __commonJS({
|
|
17179
|
+
"node_modules/fast-xml-parser/src/fxp.js"(exports, module2) {
|
|
17021
17180
|
"use strict";
|
|
17022
|
-
var nodeToJson = require_node2json();
|
|
17023
|
-
var xmlToNodeobj = require_xmlstr2xmlnode();
|
|
17024
|
-
var x2xmlnode = require_xmlstr2xmlnode();
|
|
17025
|
-
var buildOptions = require_util().buildOptions;
|
|
17026
17181
|
var validator = require_validator();
|
|
17027
|
-
|
|
17028
|
-
|
|
17029
|
-
|
|
17030
|
-
|
|
17031
|
-
|
|
17032
|
-
|
|
17033
|
-
throw Error(result.err.msg);
|
|
17034
|
-
}
|
|
17035
|
-
}
|
|
17036
|
-
options = buildOptions(options, x2xmlnode.defaultOptions, x2xmlnode.props);
|
|
17037
|
-
const traversableObj = xmlToNodeobj.getTraversalObj(xmlData, options);
|
|
17038
|
-
return nodeToJson.convertToJson(traversableObj, options);
|
|
17039
|
-
};
|
|
17040
|
-
exports.convertTonimn = require_nimndata().convert2nimn;
|
|
17041
|
-
exports.getTraversalObj = xmlToNodeobj.getTraversalObj;
|
|
17042
|
-
exports.convertToJson = nodeToJson.convertToJson;
|
|
17043
|
-
exports.convertToJsonString = require_node2json_str().convertToJsonString;
|
|
17044
|
-
exports.validate = validator.validate;
|
|
17045
|
-
exports.j2xParser = require_json2xml();
|
|
17046
|
-
exports.parseToNimn = function(xmlData, schema, options) {
|
|
17047
|
-
return exports.convertTonimn(exports.getTraversalObj(xmlData, options), schema, options);
|
|
17182
|
+
var XMLParser = require_XMLParser();
|
|
17183
|
+
var XMLBuilder = require_json2xml();
|
|
17184
|
+
module2.exports = {
|
|
17185
|
+
XMLParser,
|
|
17186
|
+
XMLValidator: validator,
|
|
17187
|
+
XMLBuilder
|
|
17048
17188
|
};
|
|
17049
17189
|
}
|
|
17050
17190
|
});
|
|
@@ -17057,8 +17197,7 @@ var require_Aws_query = __commonJS({
|
|
|
17057
17197
|
exports.deserializeAws_queryGetSessionTokenCommand = exports.deserializeAws_queryGetFederationTokenCommand = exports.deserializeAws_queryGetCallerIdentityCommand = exports.deserializeAws_queryGetAccessKeyInfoCommand = exports.deserializeAws_queryDecodeAuthorizationMessageCommand = exports.deserializeAws_queryAssumeRoleWithWebIdentityCommand = exports.deserializeAws_queryAssumeRoleWithSAMLCommand = exports.deserializeAws_queryAssumeRoleCommand = exports.serializeAws_queryGetSessionTokenCommand = exports.serializeAws_queryGetFederationTokenCommand = exports.serializeAws_queryGetCallerIdentityCommand = exports.serializeAws_queryGetAccessKeyInfoCommand = exports.serializeAws_queryDecodeAuthorizationMessageCommand = exports.serializeAws_queryAssumeRoleWithWebIdentityCommand = exports.serializeAws_queryAssumeRoleWithSAMLCommand = exports.serializeAws_queryAssumeRoleCommand = void 0;
|
|
17058
17198
|
var protocol_http_1 = require_dist_cjs4();
|
|
17059
17199
|
var smithy_client_1 = require_dist_cjs3();
|
|
17060
|
-
var
|
|
17061
|
-
var fast_xml_parser_1 = require_parser();
|
|
17200
|
+
var fast_xml_parser_1 = require_fxp();
|
|
17062
17201
|
var models_0_1 = require_models_02();
|
|
17063
17202
|
var STSServiceException_1 = require_STSServiceException();
|
|
17064
17203
|
var serializeAws_queryAssumeRoleCommand = async (input, context) => {
|
|
@@ -18077,13 +18216,18 @@ var require_Aws_query = __commonJS({
|
|
|
18077
18216
|
};
|
|
18078
18217
|
var parseBody = (streamBody, context) => collectBodyString(streamBody, context).then((encoded) => {
|
|
18079
18218
|
if (encoded.length) {
|
|
18080
|
-
const
|
|
18219
|
+
const parser = new fast_xml_parser_1.XMLParser({
|
|
18081
18220
|
attributeNamePrefix: "",
|
|
18221
|
+
htmlEntities: true,
|
|
18082
18222
|
ignoreAttributes: false,
|
|
18083
|
-
|
|
18223
|
+
ignoreDeclaration: true,
|
|
18224
|
+
parseTagValue: false,
|
|
18084
18225
|
trimValues: false,
|
|
18085
|
-
tagValueProcessor: (val) => val.trim() === "" && val.includes("\n") ? "" :
|
|
18226
|
+
tagValueProcessor: (_, val) => val.trim() === "" && val.includes("\n") ? "" : void 0
|
|
18086
18227
|
});
|
|
18228
|
+
parser.addEntity("#xD", "\r");
|
|
18229
|
+
parser.addEntity("#10", "\n");
|
|
18230
|
+
const parsedObj = parser.parse(encoded);
|
|
18087
18231
|
const textNodeName = "#text";
|
|
18088
18232
|
const key = Object.keys(parsedObj)[0];
|
|
18089
18233
|
const parsedObjToReturn = parsedObj[key];
|
|
@@ -18484,7 +18628,7 @@ var require_package2 = __commonJS({
|
|
|
18484
18628
|
module2.exports = {
|
|
18485
18629
|
name: "@aws-sdk/client-sts",
|
|
18486
18630
|
description: "AWS SDK for JavaScript Sts Client for Node.js, Browser and React Native",
|
|
18487
|
-
version: "3.
|
|
18631
|
+
version: "3.188.0",
|
|
18488
18632
|
scripts: {
|
|
18489
18633
|
build: "concurrently 'yarn:build:cjs' 'yarn:build:es' 'yarn:build:types'",
|
|
18490
18634
|
"build:cjs": "tsc -p tsconfig.cjs.json",
|
|
@@ -18504,43 +18648,42 @@ var require_package2 = __commonJS({
|
|
|
18504
18648
|
dependencies: {
|
|
18505
18649
|
"@aws-crypto/sha256-browser": "2.0.0",
|
|
18506
18650
|
"@aws-crypto/sha256-js": "2.0.0",
|
|
18507
|
-
"@aws-sdk/config-resolver": "3.
|
|
18508
|
-
"@aws-sdk/credential-provider-node": "3.
|
|
18509
|
-
"@aws-sdk/fetch-http-handler": "3.
|
|
18510
|
-
"@aws-sdk/hash-node": "3.
|
|
18511
|
-
"@aws-sdk/invalid-dependency": "3.
|
|
18512
|
-
"@aws-sdk/middleware-content-length": "3.
|
|
18513
|
-
"@aws-sdk/middleware-host-header": "3.
|
|
18514
|
-
"@aws-sdk/middleware-logger": "3.
|
|
18515
|
-
"@aws-sdk/middleware-recursion-detection": "3.
|
|
18516
|
-
"@aws-sdk/middleware-retry": "3.
|
|
18517
|
-
"@aws-sdk/middleware-sdk-sts": "3.
|
|
18518
|
-
"@aws-sdk/middleware-serde": "3.
|
|
18519
|
-
"@aws-sdk/middleware-signing": "3.
|
|
18520
|
-
"@aws-sdk/middleware-stack": "3.
|
|
18521
|
-
"@aws-sdk/middleware-user-agent": "3.
|
|
18522
|
-
"@aws-sdk/node-config-provider": "3.
|
|
18523
|
-
"@aws-sdk/node-http-handler": "3.
|
|
18524
|
-
"@aws-sdk/protocol-http": "3.
|
|
18525
|
-
"@aws-sdk/smithy-client": "3.
|
|
18526
|
-
"@aws-sdk/types": "3.
|
|
18527
|
-
"@aws-sdk/url-parser": "3.
|
|
18528
|
-
"@aws-sdk/util-base64-browser": "3.
|
|
18529
|
-
"@aws-sdk/util-base64-node": "3.
|
|
18530
|
-
"@aws-sdk/util-body-length-browser": "3.
|
|
18531
|
-
"@aws-sdk/util-body-length-node": "3.
|
|
18532
|
-
"@aws-sdk/util-defaults-mode-browser": "3.
|
|
18533
|
-
"@aws-sdk/util-defaults-mode-node": "3.
|
|
18534
|
-
"@aws-sdk/util-user-agent-browser": "3.
|
|
18535
|
-
"@aws-sdk/util-user-agent-node": "3.
|
|
18536
|
-
"@aws-sdk/util-utf8-browser": "3.
|
|
18537
|
-
"@aws-sdk/util-utf8-node": "3.
|
|
18538
|
-
|
|
18539
|
-
"fast-xml-parser": "3.19.0",
|
|
18651
|
+
"@aws-sdk/config-resolver": "3.188.0",
|
|
18652
|
+
"@aws-sdk/credential-provider-node": "3.188.0",
|
|
18653
|
+
"@aws-sdk/fetch-http-handler": "3.188.0",
|
|
18654
|
+
"@aws-sdk/hash-node": "3.188.0",
|
|
18655
|
+
"@aws-sdk/invalid-dependency": "3.188.0",
|
|
18656
|
+
"@aws-sdk/middleware-content-length": "3.188.0",
|
|
18657
|
+
"@aws-sdk/middleware-host-header": "3.188.0",
|
|
18658
|
+
"@aws-sdk/middleware-logger": "3.188.0",
|
|
18659
|
+
"@aws-sdk/middleware-recursion-detection": "3.188.0",
|
|
18660
|
+
"@aws-sdk/middleware-retry": "3.188.0",
|
|
18661
|
+
"@aws-sdk/middleware-sdk-sts": "3.188.0",
|
|
18662
|
+
"@aws-sdk/middleware-serde": "3.188.0",
|
|
18663
|
+
"@aws-sdk/middleware-signing": "3.188.0",
|
|
18664
|
+
"@aws-sdk/middleware-stack": "3.188.0",
|
|
18665
|
+
"@aws-sdk/middleware-user-agent": "3.188.0",
|
|
18666
|
+
"@aws-sdk/node-config-provider": "3.188.0",
|
|
18667
|
+
"@aws-sdk/node-http-handler": "3.188.0",
|
|
18668
|
+
"@aws-sdk/protocol-http": "3.188.0",
|
|
18669
|
+
"@aws-sdk/smithy-client": "3.188.0",
|
|
18670
|
+
"@aws-sdk/types": "3.188.0",
|
|
18671
|
+
"@aws-sdk/url-parser": "3.188.0",
|
|
18672
|
+
"@aws-sdk/util-base64-browser": "3.188.0",
|
|
18673
|
+
"@aws-sdk/util-base64-node": "3.188.0",
|
|
18674
|
+
"@aws-sdk/util-body-length-browser": "3.188.0",
|
|
18675
|
+
"@aws-sdk/util-body-length-node": "3.188.0",
|
|
18676
|
+
"@aws-sdk/util-defaults-mode-browser": "3.188.0",
|
|
18677
|
+
"@aws-sdk/util-defaults-mode-node": "3.188.0",
|
|
18678
|
+
"@aws-sdk/util-user-agent-browser": "3.188.0",
|
|
18679
|
+
"@aws-sdk/util-user-agent-node": "3.188.0",
|
|
18680
|
+
"@aws-sdk/util-utf8-browser": "3.188.0",
|
|
18681
|
+
"@aws-sdk/util-utf8-node": "3.188.0",
|
|
18682
|
+
"fast-xml-parser": "4.0.11",
|
|
18540
18683
|
tslib: "^2.3.1"
|
|
18541
18684
|
},
|
|
18542
18685
|
devDependencies: {
|
|
18543
|
-
"@aws-sdk/service-client-documentation-generator": "3.
|
|
18686
|
+
"@aws-sdk/service-client-documentation-generator": "3.188.0",
|
|
18544
18687
|
"@tsconfig/recommended": "1.0.1",
|
|
18545
18688
|
"@types/node": "^12.7.5",
|
|
18546
18689
|
concurrently: "7.0.0",
|
|
@@ -20374,7 +20517,7 @@ var require_package3 = __commonJS({
|
|
|
20374
20517
|
module2.exports = {
|
|
20375
20518
|
name: "@aws-sdk/client-sso",
|
|
20376
20519
|
description: "AWS SDK for JavaScript Sso Client for Node.js, Browser and React Native",
|
|
20377
|
-
version: "3.
|
|
20520
|
+
version: "3.188.0",
|
|
20378
20521
|
scripts: {
|
|
20379
20522
|
build: "concurrently 'yarn:build:cjs' 'yarn:build:es' 'yarn:build:types'",
|
|
20380
20523
|
"build:cjs": "tsc -p tsconfig.cjs.json",
|
|
@@ -20392,38 +20535,38 @@ var require_package3 = __commonJS({
|
|
|
20392
20535
|
dependencies: {
|
|
20393
20536
|
"@aws-crypto/sha256-browser": "2.0.0",
|
|
20394
20537
|
"@aws-crypto/sha256-js": "2.0.0",
|
|
20395
|
-
"@aws-sdk/config-resolver": "3.
|
|
20396
|
-
"@aws-sdk/fetch-http-handler": "3.
|
|
20397
|
-
"@aws-sdk/hash-node": "3.
|
|
20398
|
-
"@aws-sdk/invalid-dependency": "3.
|
|
20399
|
-
"@aws-sdk/middleware-content-length": "3.
|
|
20400
|
-
"@aws-sdk/middleware-host-header": "3.
|
|
20401
|
-
"@aws-sdk/middleware-logger": "3.
|
|
20402
|
-
"@aws-sdk/middleware-recursion-detection": "3.
|
|
20403
|
-
"@aws-sdk/middleware-retry": "3.
|
|
20404
|
-
"@aws-sdk/middleware-serde": "3.
|
|
20405
|
-
"@aws-sdk/middleware-stack": "3.
|
|
20406
|
-
"@aws-sdk/middleware-user-agent": "3.
|
|
20407
|
-
"@aws-sdk/node-config-provider": "3.
|
|
20408
|
-
"@aws-sdk/node-http-handler": "3.
|
|
20409
|
-
"@aws-sdk/protocol-http": "3.
|
|
20410
|
-
"@aws-sdk/smithy-client": "3.
|
|
20411
|
-
"@aws-sdk/types": "3.
|
|
20412
|
-
"@aws-sdk/url-parser": "3.
|
|
20413
|
-
"@aws-sdk/util-base64-browser": "3.
|
|
20414
|
-
"@aws-sdk/util-base64-node": "3.
|
|
20415
|
-
"@aws-sdk/util-body-length-browser": "3.
|
|
20416
|
-
"@aws-sdk/util-body-length-node": "3.
|
|
20417
|
-
"@aws-sdk/util-defaults-mode-browser": "3.
|
|
20418
|
-
"@aws-sdk/util-defaults-mode-node": "3.
|
|
20419
|
-
"@aws-sdk/util-user-agent-browser": "3.
|
|
20420
|
-
"@aws-sdk/util-user-agent-node": "3.
|
|
20421
|
-
"@aws-sdk/util-utf8-browser": "3.
|
|
20422
|
-
"@aws-sdk/util-utf8-node": "3.
|
|
20538
|
+
"@aws-sdk/config-resolver": "3.188.0",
|
|
20539
|
+
"@aws-sdk/fetch-http-handler": "3.188.0",
|
|
20540
|
+
"@aws-sdk/hash-node": "3.188.0",
|
|
20541
|
+
"@aws-sdk/invalid-dependency": "3.188.0",
|
|
20542
|
+
"@aws-sdk/middleware-content-length": "3.188.0",
|
|
20543
|
+
"@aws-sdk/middleware-host-header": "3.188.0",
|
|
20544
|
+
"@aws-sdk/middleware-logger": "3.188.0",
|
|
20545
|
+
"@aws-sdk/middleware-recursion-detection": "3.188.0",
|
|
20546
|
+
"@aws-sdk/middleware-retry": "3.188.0",
|
|
20547
|
+
"@aws-sdk/middleware-serde": "3.188.0",
|
|
20548
|
+
"@aws-sdk/middleware-stack": "3.188.0",
|
|
20549
|
+
"@aws-sdk/middleware-user-agent": "3.188.0",
|
|
20550
|
+
"@aws-sdk/node-config-provider": "3.188.0",
|
|
20551
|
+
"@aws-sdk/node-http-handler": "3.188.0",
|
|
20552
|
+
"@aws-sdk/protocol-http": "3.188.0",
|
|
20553
|
+
"@aws-sdk/smithy-client": "3.188.0",
|
|
20554
|
+
"@aws-sdk/types": "3.188.0",
|
|
20555
|
+
"@aws-sdk/url-parser": "3.188.0",
|
|
20556
|
+
"@aws-sdk/util-base64-browser": "3.188.0",
|
|
20557
|
+
"@aws-sdk/util-base64-node": "3.188.0",
|
|
20558
|
+
"@aws-sdk/util-body-length-browser": "3.188.0",
|
|
20559
|
+
"@aws-sdk/util-body-length-node": "3.188.0",
|
|
20560
|
+
"@aws-sdk/util-defaults-mode-browser": "3.188.0",
|
|
20561
|
+
"@aws-sdk/util-defaults-mode-node": "3.188.0",
|
|
20562
|
+
"@aws-sdk/util-user-agent-browser": "3.188.0",
|
|
20563
|
+
"@aws-sdk/util-user-agent-node": "3.188.0",
|
|
20564
|
+
"@aws-sdk/util-utf8-browser": "3.188.0",
|
|
20565
|
+
"@aws-sdk/util-utf8-node": "3.188.0",
|
|
20423
20566
|
tslib: "^2.3.1"
|
|
20424
20567
|
},
|
|
20425
20568
|
devDependencies: {
|
|
20426
|
-
"@aws-sdk/service-client-documentation-generator": "3.
|
|
20569
|
+
"@aws-sdk/service-client-documentation-generator": "3.188.0",
|
|
20427
20570
|
"@tsconfig/recommended": "1.0.1",
|
|
20428
20571
|
"@types/node": "^12.7.5",
|
|
20429
20572
|
concurrently: "7.0.0",
|