@universityofmaryland/web-model-library 1.0.0
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/README.md +138 -0
- package/dist/_types.d.ts +77 -0
- package/dist/_types.d.ts.map +1 -0
- package/dist/_virtual/___vite-browser-external.js +8 -0
- package/dist/_virtual/___vite-browser-external.js.map +1 -0
- package/dist/_virtual/___vite-browser-external.mjs +7 -0
- package/dist/_virtual/___vite-browser-external.mjs.map +1 -0
- package/dist/_virtual/__vite-browser-external.js +4 -0
- package/dist/_virtual/__vite-browser-external.js.map +1 -0
- package/dist/_virtual/__vite-browser-external.mjs +5 -0
- package/dist/_virtual/__vite-browser-external.mjs.map +1 -0
- package/dist/_virtual/_commonjsHelpers.js +37 -0
- package/dist/_virtual/_commonjsHelpers.js.map +1 -0
- package/dist/_virtual/_commonjsHelpers.mjs +37 -0
- package/dist/_virtual/_commonjsHelpers.mjs.map +1 -0
- package/dist/_virtual/index.js +7 -0
- package/dist/_virtual/index.js.map +1 -0
- package/dist/_virtual/index.mjs +8 -0
- package/dist/_virtual/index.mjs.map +1 -0
- package/dist/_virtual/picocolors.browser.js +5 -0
- package/dist/_virtual/picocolors.browser.js.map +1 -0
- package/dist/_virtual/picocolors.browser.mjs +5 -0
- package/dist/_virtual/picocolors.browser.mjs.map +1 -0
- package/dist/_virtual/postcss.js +7 -0
- package/dist/_virtual/postcss.js.map +1 -0
- package/dist/_virtual/postcss.mjs +8 -0
- package/dist/_virtual/postcss.mjs.map +1 -0
- package/dist/_virtual/symbols.js +5 -0
- package/dist/_virtual/symbols.js.map +1 -0
- package/dist/_virtual/symbols.mjs +5 -0
- package/dist/_virtual/symbols.mjs.map +1 -0
- package/dist/attributes/checks.d.ts +133 -0
- package/dist/attributes/checks.d.ts.map +1 -0
- package/dist/attributes/checks.js +757 -0
- package/dist/attributes/checks.js.map +1 -0
- package/dist/attributes/checks.mjs +740 -0
- package/dist/attributes/checks.mjs.map +1 -0
- package/dist/attributes/handler.d.ts +52 -0
- package/dist/attributes/handler.d.ts.map +1 -0
- package/dist/attributes/handler.js +205 -0
- package/dist/attributes/handler.js.map +1 -0
- package/dist/attributes/handler.mjs +206 -0
- package/dist/attributes/handler.mjs.map +1 -0
- package/dist/attributes/index.d.ts +7 -0
- package/dist/attributes/index.d.ts.map +1 -0
- package/dist/attributes/names.d.ts +132 -0
- package/dist/attributes/names.d.ts.map +1 -0
- package/dist/attributes/names.js +145 -0
- package/dist/attributes/names.js.map +1 -0
- package/dist/attributes/names.mjs +146 -0
- package/dist/attributes/names.mjs.map +1 -0
- package/dist/attributes/values.d.ts +70 -0
- package/dist/attributes/values.d.ts.map +1 -0
- package/dist/attributes/values.js +80 -0
- package/dist/attributes/values.js.map +1 -0
- package/dist/attributes/values.mjs +81 -0
- package/dist/attributes/values.mjs.map +1 -0
- package/dist/attributes.d.ts +2 -0
- package/dist/attributes.js +23 -0
- package/dist/attributes.js.map +1 -0
- package/dist/attributes.mjs +23 -0
- package/dist/attributes.mjs.map +1 -0
- package/dist/index.d.ts +10 -0
- package/dist/index.d.ts.map +1 -0
- package/dist/index.js +13 -0
- package/dist/index.js.map +1 -0
- package/dist/index.mjs +13 -0
- package/dist/index.mjs.map +1 -0
- package/dist/model/index.d.ts +43 -0
- package/dist/model/index.d.ts.map +1 -0
- package/dist/model.d.ts +2 -0
- package/dist/model.js +259 -0
- package/dist/model.js.map +1 -0
- package/dist/model.mjs +259 -0
- package/dist/model.mjs.map +1 -0
- package/dist/node_modules/nanoid/non-secure/index.js +31 -0
- package/dist/node_modules/nanoid/non-secure/index.js.map +1 -0
- package/dist/node_modules/nanoid/non-secure/index.mjs +31 -0
- package/dist/node_modules/nanoid/non-secure/index.mjs.map +1 -0
- package/dist/node_modules/picocolors/picocolors.browser.js +17 -0
- package/dist/node_modules/picocolors/picocolors.browser.js.map +1 -0
- package/dist/node_modules/picocolors/picocolors.browser.mjs +17 -0
- package/dist/node_modules/picocolors/picocolors.browser.mjs.map +1 -0
- package/dist/node_modules/postcss/lib/at-rule.js +30 -0
- package/dist/node_modules/postcss/lib/at-rule.js.map +1 -0
- package/dist/node_modules/postcss/lib/at-rule.mjs +30 -0
- package/dist/node_modules/postcss/lib/at-rule.mjs.map +1 -0
- package/dist/node_modules/postcss/lib/comment.js +21 -0
- package/dist/node_modules/postcss/lib/comment.js.map +1 -0
- package/dist/node_modules/postcss/lib/comment.mjs +21 -0
- package/dist/node_modules/postcss/lib/comment.mjs.map +1 -0
- package/dist/node_modules/postcss/lib/container.js +383 -0
- package/dist/node_modules/postcss/lib/container.js.map +1 -0
- package/dist/node_modules/postcss/lib/container.mjs +383 -0
- package/dist/node_modules/postcss/lib/container.mjs.map +1 -0
- package/dist/node_modules/postcss/lib/css-syntax-error.js +92 -0
- package/dist/node_modules/postcss/lib/css-syntax-error.js.map +1 -0
- package/dist/node_modules/postcss/lib/css-syntax-error.mjs +92 -0
- package/dist/node_modules/postcss/lib/css-syntax-error.mjs.map +1 -0
- package/dist/node_modules/postcss/lib/declaration.js +27 -0
- package/dist/node_modules/postcss/lib/declaration.js.map +1 -0
- package/dist/node_modules/postcss/lib/declaration.mjs +27 -0
- package/dist/node_modules/postcss/lib/declaration.mjs.map +1 -0
- package/dist/node_modules/postcss/lib/document.js +34 -0
- package/dist/node_modules/postcss/lib/document.js.map +1 -0
- package/dist/node_modules/postcss/lib/document.mjs +34 -0
- package/dist/node_modules/postcss/lib/document.mjs.map +1 -0
- package/dist/node_modules/postcss/lib/fromJSON.js +67 -0
- package/dist/node_modules/postcss/lib/fromJSON.js.map +1 -0
- package/dist/node_modules/postcss/lib/fromJSON.mjs +67 -0
- package/dist/node_modules/postcss/lib/fromJSON.mjs.map +1 -0
- package/dist/node_modules/postcss/lib/input.js +216 -0
- package/dist/node_modules/postcss/lib/input.js.map +1 -0
- package/dist/node_modules/postcss/lib/input.mjs +216 -0
- package/dist/node_modules/postcss/lib/input.mjs.map +1 -0
- package/dist/node_modules/postcss/lib/lazy-result.js +467 -0
- package/dist/node_modules/postcss/lib/lazy-result.js.map +1 -0
- package/dist/node_modules/postcss/lib/lazy-result.mjs +467 -0
- package/dist/node_modules/postcss/lib/lazy-result.mjs.map +1 -0
- package/dist/node_modules/postcss/lib/list.js +60 -0
- package/dist/node_modules/postcss/lib/list.js.map +1 -0
- package/dist/node_modules/postcss/lib/list.mjs +60 -0
- package/dist/node_modules/postcss/lib/list.mjs.map +1 -0
- package/dist/node_modules/postcss/lib/map-generator.js +314 -0
- package/dist/node_modules/postcss/lib/map-generator.js.map +1 -0
- package/dist/node_modules/postcss/lib/map-generator.mjs +314 -0
- package/dist/node_modules/postcss/lib/map-generator.mjs.map +1 -0
- package/dist/node_modules/postcss/lib/no-work-result.js +113 -0
- package/dist/node_modules/postcss/lib/no-work-result.js.map +1 -0
- package/dist/node_modules/postcss/lib/no-work-result.mjs +113 -0
- package/dist/node_modules/postcss/lib/no-work-result.mjs.map +1 -0
- package/dist/node_modules/postcss/lib/node.js +335 -0
- package/dist/node_modules/postcss/lib/node.js.map +1 -0
- package/dist/node_modules/postcss/lib/node.mjs +335 -0
- package/dist/node_modules/postcss/lib/node.mjs.map +1 -0
- package/dist/node_modules/postcss/lib/parse.js +30 -0
- package/dist/node_modules/postcss/lib/parse.js.map +1 -0
- package/dist/node_modules/postcss/lib/parse.mjs +30 -0
- package/dist/node_modules/postcss/lib/parse.mjs.map +1 -0
- package/dist/node_modules/postcss/lib/parser.js +543 -0
- package/dist/node_modules/postcss/lib/parser.js.map +1 -0
- package/dist/node_modules/postcss/lib/parser.mjs +543 -0
- package/dist/node_modules/postcss/lib/parser.mjs.map +1 -0
- package/dist/node_modules/postcss/lib/postcss.js +28 -0
- package/dist/node_modules/postcss/lib/postcss.js.map +1 -0
- package/dist/node_modules/postcss/lib/postcss.mjs +29 -0
- package/dist/node_modules/postcss/lib/postcss.mjs.map +1 -0
- package/dist/node_modules/postcss/lib/postcss2.js +110 -0
- package/dist/node_modules/postcss/lib/postcss2.js.map +1 -0
- package/dist/node_modules/postcss/lib/postcss2.mjs +110 -0
- package/dist/node_modules/postcss/lib/postcss2.mjs.map +1 -0
- package/dist/node_modules/postcss/lib/previous-map.js +123 -0
- package/dist/node_modules/postcss/lib/previous-map.js.map +1 -0
- package/dist/node_modules/postcss/lib/previous-map.mjs +123 -0
- package/dist/node_modules/postcss/lib/previous-map.mjs.map +1 -0
- package/dist/node_modules/postcss/lib/processor.js +61 -0
- package/dist/node_modules/postcss/lib/processor.js.map +1 -0
- package/dist/node_modules/postcss/lib/processor.mjs +61 -0
- package/dist/node_modules/postcss/lib/processor.mjs.map +1 -0
- package/dist/node_modules/postcss/lib/result.js +44 -0
- package/dist/node_modules/postcss/lib/result.js.map +1 -0
- package/dist/node_modules/postcss/lib/result.mjs +44 -0
- package/dist/node_modules/postcss/lib/result.mjs.map +1 -0
- package/dist/node_modules/postcss/lib/root.js +58 -0
- package/dist/node_modules/postcss/lib/root.js.map +1 -0
- package/dist/node_modules/postcss/lib/root.mjs +58 -0
- package/dist/node_modules/postcss/lib/root.mjs.map +1 -0
- package/dist/node_modules/postcss/lib/rule.js +33 -0
- package/dist/node_modules/postcss/lib/rule.js.map +1 -0
- package/dist/node_modules/postcss/lib/rule.mjs +33 -0
- package/dist/node_modules/postcss/lib/rule.mjs.map +1 -0
- package/dist/node_modules/postcss/lib/stringifier.js +308 -0
- package/dist/node_modules/postcss/lib/stringifier.js.map +1 -0
- package/dist/node_modules/postcss/lib/stringifier.mjs +308 -0
- package/dist/node_modules/postcss/lib/stringifier.mjs.map +1 -0
- package/dist/node_modules/postcss/lib/stringify.js +19 -0
- package/dist/node_modules/postcss/lib/stringify.js.map +1 -0
- package/dist/node_modules/postcss/lib/stringify.mjs +19 -0
- package/dist/node_modules/postcss/lib/stringify.mjs.map +1 -0
- package/dist/node_modules/postcss/lib/symbols.js +13 -0
- package/dist/node_modules/postcss/lib/symbols.js.map +1 -0
- package/dist/node_modules/postcss/lib/symbols.mjs +13 -0
- package/dist/node_modules/postcss/lib/symbols.mjs.map +1 -0
- package/dist/node_modules/postcss/lib/tokenize.js +219 -0
- package/dist/node_modules/postcss/lib/tokenize.js.map +1 -0
- package/dist/node_modules/postcss/lib/tokenize.mjs +219 -0
- package/dist/node_modules/postcss/lib/tokenize.mjs.map +1 -0
- package/dist/node_modules/postcss/lib/warning.js +40 -0
- package/dist/node_modules/postcss/lib/warning.js.map +1 -0
- package/dist/node_modules/postcss/lib/warning.mjs +40 -0
- package/dist/node_modules/postcss/lib/warning.mjs.map +1 -0
- package/dist/packages/model/node_modules/postcss-discard-duplicates/src/index.js +130 -0
- package/dist/packages/model/node_modules/postcss-discard-duplicates/src/index.js.map +1 -0
- package/dist/packages/model/node_modules/postcss-discard-duplicates/src/index.mjs +130 -0
- package/dist/packages/model/node_modules/postcss-discard-duplicates/src/index.mjs.map +1 -0
- package/dist/slots/create.d.ts +15 -0
- package/dist/slots/create.d.ts.map +1 -0
- package/dist/slots/create.js +50 -0
- package/dist/slots/create.js.map +1 -0
- package/dist/slots/create.mjs +50 -0
- package/dist/slots/create.mjs.map +1 -0
- package/dist/slots/element.d.ts +3 -0
- package/dist/slots/element.d.ts.map +1 -0
- package/dist/slots/element.js +42 -0
- package/dist/slots/element.js.map +1 -0
- package/dist/slots/element.mjs +42 -0
- package/dist/slots/element.mjs.map +1 -0
- package/dist/slots/extract.d.ts +6 -0
- package/dist/slots/extract.d.ts.map +1 -0
- package/dist/slots/index.d.ts +140 -0
- package/dist/slots/index.d.ts.map +1 -0
- package/dist/slots/mapping.d.ts +82 -0
- package/dist/slots/mapping.d.ts.map +1 -0
- package/dist/slots/mapping.js +97 -0
- package/dist/slots/mapping.js.map +1 -0
- package/dist/slots/mapping.mjs +97 -0
- package/dist/slots/mapping.mjs.map +1 -0
- package/dist/slots/query.d.ts +9 -0
- package/dist/slots/query.d.ts.map +1 -0
- package/dist/slots/validate.d.ts +22 -0
- package/dist/slots/validate.d.ts.map +1 -0
- package/dist/slots.d.ts +6 -0
- package/dist/slots.js +73 -0
- package/dist/slots.js.map +1 -0
- package/dist/slots.mjs +74 -0
- package/dist/slots.mjs.map +1 -0
- package/dist/utilities/index.d.ts +4 -0
- package/dist/utilities/index.d.ts.map +1 -0
- package/dist/utilities/lifecycle.d.ts +12 -0
- package/dist/utilities/lifecycle.d.ts.map +1 -0
- package/dist/utilities/lifecycle.js +21 -0
- package/dist/utilities/lifecycle.js.map +1 -0
- package/dist/utilities/lifecycle.mjs +21 -0
- package/dist/utilities/lifecycle.mjs.map +1 -0
- package/dist/utilities/register.d.ts +17 -0
- package/dist/utilities/register.d.ts.map +1 -0
- package/dist/utilities/register.js +32 -0
- package/dist/utilities/register.js.map +1 -0
- package/dist/utilities/register.mjs +32 -0
- package/dist/utilities/register.mjs.map +1 -0
- package/dist/utilities/styles.d.ts +5 -0
- package/dist/utilities/styles.d.ts.map +1 -0
- package/dist/utilities/styles.js +79 -0
- package/dist/utilities/styles.js.map +1 -0
- package/dist/utilities/styles.mjs +80 -0
- package/dist/utilities/styles.mjs.map +1 -0
- package/dist/utilities.d.ts +2 -0
- package/dist/utilities.js +11 -0
- package/dist/utilities.js.map +1 -0
- package/dist/utilities.mjs +11 -0
- package/dist/utilities.mjs.map +1 -0
- package/package.json +69 -0
|
@@ -0,0 +1,60 @@
|
|
|
1
|
+
var list_1;
|
|
2
|
+
var hasRequiredList;
|
|
3
|
+
function requireList() {
|
|
4
|
+
if (hasRequiredList) return list_1;
|
|
5
|
+
hasRequiredList = 1;
|
|
6
|
+
let list = {
|
|
7
|
+
comma(string) {
|
|
8
|
+
return list.split(string, [","], true);
|
|
9
|
+
},
|
|
10
|
+
space(string) {
|
|
11
|
+
let spaces = [" ", "\n", " "];
|
|
12
|
+
return list.split(string, spaces);
|
|
13
|
+
},
|
|
14
|
+
split(string, separators, last) {
|
|
15
|
+
let array = [];
|
|
16
|
+
let current = "";
|
|
17
|
+
let split = false;
|
|
18
|
+
let func = 0;
|
|
19
|
+
let inQuote = false;
|
|
20
|
+
let prevQuote = "";
|
|
21
|
+
let escape = false;
|
|
22
|
+
for (let letter of string) {
|
|
23
|
+
if (escape) {
|
|
24
|
+
escape = false;
|
|
25
|
+
} else if (letter === "\\") {
|
|
26
|
+
escape = true;
|
|
27
|
+
} else if (inQuote) {
|
|
28
|
+
if (letter === prevQuote) {
|
|
29
|
+
inQuote = false;
|
|
30
|
+
}
|
|
31
|
+
} else if (letter === '"' || letter === "'") {
|
|
32
|
+
inQuote = true;
|
|
33
|
+
prevQuote = letter;
|
|
34
|
+
} else if (letter === "(") {
|
|
35
|
+
func += 1;
|
|
36
|
+
} else if (letter === ")") {
|
|
37
|
+
if (func > 0) func -= 1;
|
|
38
|
+
} else if (func === 0) {
|
|
39
|
+
if (separators.includes(letter)) split = true;
|
|
40
|
+
}
|
|
41
|
+
if (split) {
|
|
42
|
+
if (current !== "") array.push(current.trim());
|
|
43
|
+
current = "";
|
|
44
|
+
split = false;
|
|
45
|
+
} else {
|
|
46
|
+
current += letter;
|
|
47
|
+
}
|
|
48
|
+
}
|
|
49
|
+
if (last || current !== "") array.push(current.trim());
|
|
50
|
+
return array;
|
|
51
|
+
}
|
|
52
|
+
};
|
|
53
|
+
list_1 = list;
|
|
54
|
+
list.default = list;
|
|
55
|
+
return list_1;
|
|
56
|
+
}
|
|
57
|
+
export {
|
|
58
|
+
requireList as __require
|
|
59
|
+
};
|
|
60
|
+
//# sourceMappingURL=list.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"list.mjs","sources":["../../../../../../node_modules/postcss/lib/list.js"],"sourcesContent":["'use strict'\n\nlet list = {\n comma(string) {\n return list.split(string, [','], true)\n },\n\n space(string) {\n let spaces = [' ', '\\n', '\\t']\n return list.split(string, spaces)\n },\n\n split(string, separators, last) {\n let array = []\n let current = ''\n let split = false\n\n let func = 0\n let inQuote = false\n let prevQuote = ''\n let escape = false\n\n for (let letter of string) {\n if (escape) {\n escape = false\n } else if (letter === '\\\\') {\n escape = true\n } else if (inQuote) {\n if (letter === prevQuote) {\n inQuote = false\n }\n } else if (letter === '\"' || letter === \"'\") {\n inQuote = true\n prevQuote = letter\n } else if (letter === '(') {\n func += 1\n } else if (letter === ')') {\n if (func > 0) func -= 1\n } else if (func === 0) {\n if (separators.includes(letter)) split = true\n }\n\n if (split) {\n if (current !== '') array.push(current.trim())\n current = ''\n split = false\n } else {\n current += letter\n }\n }\n\n if (last || current !== '') array.push(current.trim())\n return array\n }\n}\n\nmodule.exports = list\nlist.default = list\n"],"names":[],"mappings":";;;;;AAEA,MAAI,OAAO;AAAA,IACT,MAAM,QAAQ;AACZ,aAAO,KAAK,MAAM,QAAQ,CAAC,GAAG,GAAG,IAAI;AAAA,IACzC;AAAA,IAEE,MAAM,QAAQ;AACZ,UAAI,SAAS,CAAC,KAAK,MAAM,GAAI;AAC7B,aAAO,KAAK,MAAM,QAAQ,MAAM;AAAA,IACpC;AAAA,IAEE,MAAM,QAAQ,YAAY,MAAM;AAC9B,UAAI,QAAQ,CAAA;AACZ,UAAI,UAAU;AACd,UAAI,QAAQ;AAEZ,UAAI,OAAO;AACX,UAAI,UAAU;AACd,UAAI,YAAY;AAChB,UAAI,SAAS;AAEb,eAAS,UAAU,QAAQ;AACzB,YAAI,QAAQ;AACV,mBAAS;AAAA,QACjB,WAAiB,WAAW,MAAM;AAC1B,mBAAS;AAAA,QACjB,WAAiB,SAAS;AAClB,cAAI,WAAW,WAAW;AACxB,sBAAU;AAAA,UACpB;AAAA,QACA,WAAiB,WAAW,OAAO,WAAW,KAAK;AAC3C,oBAAU;AACV,sBAAY;AAAA,QACpB,WAAiB,WAAW,KAAK;AACzB,kBAAQ;AAAA,QAChB,WAAiB,WAAW,KAAK;AACzB,cAAI,OAAO,EAAG,SAAQ;AAAA,QAC9B,WAAiB,SAAS,GAAG;AACrB,cAAI,WAAW,SAAS,MAAM,EAAG,SAAQ;AAAA,QACjD;AAEM,YAAI,OAAO;AACT,cAAI,YAAY,GAAI,OAAM,KAAK,QAAQ,KAAI,CAAE;AAC7C,oBAAU;AACV,kBAAQ;AAAA,QAChB,OAAa;AACL,qBAAW;AAAA,QACnB;AAAA,MACA;AAEI,UAAI,QAAQ,YAAY,GAAI,OAAM,KAAK,QAAQ,KAAI,CAAE;AACrD,aAAO;AAAA,IACX;AAAA,EACA;AAEA,WAAiB;AACjB,OAAK,UAAU;;;","x_google_ignoreList":[0]}
|
|
@@ -0,0 +1,314 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
3
|
+
const ___viteBrowserExternal_commonjsProxy = require("../../../_virtual/___vite-browser-external.js");
|
|
4
|
+
const input = require("./input.js");
|
|
5
|
+
var mapGenerator;
|
|
6
|
+
var hasRequiredMapGenerator;
|
|
7
|
+
function requireMapGenerator() {
|
|
8
|
+
if (hasRequiredMapGenerator) return mapGenerator;
|
|
9
|
+
hasRequiredMapGenerator = 1;
|
|
10
|
+
let { SourceMapConsumer, SourceMapGenerator } = ___viteBrowserExternal_commonjsProxy;
|
|
11
|
+
let { dirname, relative, resolve, sep } = ___viteBrowserExternal_commonjsProxy;
|
|
12
|
+
let { pathToFileURL } = ___viteBrowserExternal_commonjsProxy;
|
|
13
|
+
let Input = input.__require();
|
|
14
|
+
let sourceMapAvailable = Boolean(SourceMapConsumer && SourceMapGenerator);
|
|
15
|
+
let pathAvailable = Boolean(dirname && resolve && relative && sep);
|
|
16
|
+
class MapGenerator {
|
|
17
|
+
constructor(stringify, root, opts, cssString) {
|
|
18
|
+
this.stringify = stringify;
|
|
19
|
+
this.mapOpts = opts.map || {};
|
|
20
|
+
this.root = root;
|
|
21
|
+
this.opts = opts;
|
|
22
|
+
this.css = cssString;
|
|
23
|
+
this.usesFileUrls = !this.mapOpts.from && this.mapOpts.absolute;
|
|
24
|
+
this.memoizedFileURLs = /* @__PURE__ */ new Map();
|
|
25
|
+
this.memoizedPaths = /* @__PURE__ */ new Map();
|
|
26
|
+
this.memoizedURLs = /* @__PURE__ */ new Map();
|
|
27
|
+
}
|
|
28
|
+
addAnnotation() {
|
|
29
|
+
let content;
|
|
30
|
+
if (this.isInline()) {
|
|
31
|
+
content = "data:application/json;base64," + this.toBase64(this.map.toString());
|
|
32
|
+
} else if (typeof this.mapOpts.annotation === "string") {
|
|
33
|
+
content = this.mapOpts.annotation;
|
|
34
|
+
} else if (typeof this.mapOpts.annotation === "function") {
|
|
35
|
+
content = this.mapOpts.annotation(this.opts.to, this.root);
|
|
36
|
+
} else {
|
|
37
|
+
content = this.outputFile() + ".map";
|
|
38
|
+
}
|
|
39
|
+
let eol = "\n";
|
|
40
|
+
if (this.css.includes("\r\n")) eol = "\r\n";
|
|
41
|
+
this.css += eol + "/*# sourceMappingURL=" + content + " */";
|
|
42
|
+
}
|
|
43
|
+
applyPrevMaps() {
|
|
44
|
+
for (let prev of this.previous()) {
|
|
45
|
+
let from = this.toUrl(this.path(prev.file));
|
|
46
|
+
let root = prev.root || dirname(prev.file);
|
|
47
|
+
let map;
|
|
48
|
+
if (this.mapOpts.sourcesContent === false) {
|
|
49
|
+
map = new SourceMapConsumer(prev.text);
|
|
50
|
+
if (map.sourcesContent) {
|
|
51
|
+
map.sourcesContent = map.sourcesContent.map(() => null);
|
|
52
|
+
}
|
|
53
|
+
} else {
|
|
54
|
+
map = prev.consumer();
|
|
55
|
+
}
|
|
56
|
+
this.map.applySourceMap(map, from, this.toUrl(this.path(root)));
|
|
57
|
+
}
|
|
58
|
+
}
|
|
59
|
+
clearAnnotation() {
|
|
60
|
+
if (this.mapOpts.annotation === false) return;
|
|
61
|
+
if (this.root) {
|
|
62
|
+
let node;
|
|
63
|
+
for (let i = this.root.nodes.length - 1; i >= 0; i--) {
|
|
64
|
+
node = this.root.nodes[i];
|
|
65
|
+
if (node.type !== "comment") continue;
|
|
66
|
+
if (node.text.indexOf("# sourceMappingURL=") === 0) {
|
|
67
|
+
this.root.removeChild(i);
|
|
68
|
+
}
|
|
69
|
+
}
|
|
70
|
+
} else if (this.css) {
|
|
71
|
+
this.css = this.css.replace(/(\n)?\/\*#[\S\s]*?\*\/$/gm, "");
|
|
72
|
+
}
|
|
73
|
+
}
|
|
74
|
+
generate() {
|
|
75
|
+
this.clearAnnotation();
|
|
76
|
+
if (pathAvailable && sourceMapAvailable && this.isMap()) {
|
|
77
|
+
return this.generateMap();
|
|
78
|
+
} else {
|
|
79
|
+
let result = "";
|
|
80
|
+
this.stringify(this.root, (i) => {
|
|
81
|
+
result += i;
|
|
82
|
+
});
|
|
83
|
+
return [result];
|
|
84
|
+
}
|
|
85
|
+
}
|
|
86
|
+
generateMap() {
|
|
87
|
+
if (this.root) {
|
|
88
|
+
this.generateString();
|
|
89
|
+
} else if (this.previous().length === 1) {
|
|
90
|
+
let prev = this.previous()[0].consumer();
|
|
91
|
+
prev.file = this.outputFile();
|
|
92
|
+
this.map = SourceMapGenerator.fromSourceMap(prev);
|
|
93
|
+
} else {
|
|
94
|
+
this.map = new SourceMapGenerator({ file: this.outputFile() });
|
|
95
|
+
this.map.addMapping({
|
|
96
|
+
generated: { column: 0, line: 1 },
|
|
97
|
+
original: { column: 0, line: 1 },
|
|
98
|
+
source: this.opts.from ? this.toUrl(this.path(this.opts.from)) : "<no source>"
|
|
99
|
+
});
|
|
100
|
+
}
|
|
101
|
+
if (this.isSourcesContent()) this.setSourcesContent();
|
|
102
|
+
if (this.root && this.previous().length > 0) this.applyPrevMaps();
|
|
103
|
+
if (this.isAnnotation()) this.addAnnotation();
|
|
104
|
+
if (this.isInline()) {
|
|
105
|
+
return [this.css];
|
|
106
|
+
} else {
|
|
107
|
+
return [this.css, this.map];
|
|
108
|
+
}
|
|
109
|
+
}
|
|
110
|
+
generateString() {
|
|
111
|
+
this.css = "";
|
|
112
|
+
this.map = new SourceMapGenerator({ file: this.outputFile() });
|
|
113
|
+
let line = 1;
|
|
114
|
+
let column = 1;
|
|
115
|
+
let noSource = "<no source>";
|
|
116
|
+
let mapping = {
|
|
117
|
+
generated: { column: 0, line: 0 },
|
|
118
|
+
original: { column: 0, line: 0 },
|
|
119
|
+
source: ""
|
|
120
|
+
};
|
|
121
|
+
let lines, last;
|
|
122
|
+
this.stringify(this.root, (str, node, type) => {
|
|
123
|
+
this.css += str;
|
|
124
|
+
if (node && type !== "end") {
|
|
125
|
+
mapping.generated.line = line;
|
|
126
|
+
mapping.generated.column = column - 1;
|
|
127
|
+
if (node.source && node.source.start) {
|
|
128
|
+
mapping.source = this.sourcePath(node);
|
|
129
|
+
mapping.original.line = node.source.start.line;
|
|
130
|
+
mapping.original.column = node.source.start.column - 1;
|
|
131
|
+
this.map.addMapping(mapping);
|
|
132
|
+
} else {
|
|
133
|
+
mapping.source = noSource;
|
|
134
|
+
mapping.original.line = 1;
|
|
135
|
+
mapping.original.column = 0;
|
|
136
|
+
this.map.addMapping(mapping);
|
|
137
|
+
}
|
|
138
|
+
}
|
|
139
|
+
lines = str.match(/\n/g);
|
|
140
|
+
if (lines) {
|
|
141
|
+
line += lines.length;
|
|
142
|
+
last = str.lastIndexOf("\n");
|
|
143
|
+
column = str.length - last;
|
|
144
|
+
} else {
|
|
145
|
+
column += str.length;
|
|
146
|
+
}
|
|
147
|
+
if (node && type !== "start") {
|
|
148
|
+
let p = node.parent || { raws: {} };
|
|
149
|
+
let childless = node.type === "decl" || node.type === "atrule" && !node.nodes;
|
|
150
|
+
if (!childless || node !== p.last || p.raws.semicolon) {
|
|
151
|
+
if (node.source && node.source.end) {
|
|
152
|
+
mapping.source = this.sourcePath(node);
|
|
153
|
+
mapping.original.line = node.source.end.line;
|
|
154
|
+
mapping.original.column = node.source.end.column - 1;
|
|
155
|
+
mapping.generated.line = line;
|
|
156
|
+
mapping.generated.column = column - 2;
|
|
157
|
+
this.map.addMapping(mapping);
|
|
158
|
+
} else {
|
|
159
|
+
mapping.source = noSource;
|
|
160
|
+
mapping.original.line = 1;
|
|
161
|
+
mapping.original.column = 0;
|
|
162
|
+
mapping.generated.line = line;
|
|
163
|
+
mapping.generated.column = column - 1;
|
|
164
|
+
this.map.addMapping(mapping);
|
|
165
|
+
}
|
|
166
|
+
}
|
|
167
|
+
}
|
|
168
|
+
});
|
|
169
|
+
}
|
|
170
|
+
isAnnotation() {
|
|
171
|
+
if (this.isInline()) {
|
|
172
|
+
return true;
|
|
173
|
+
}
|
|
174
|
+
if (typeof this.mapOpts.annotation !== "undefined") {
|
|
175
|
+
return this.mapOpts.annotation;
|
|
176
|
+
}
|
|
177
|
+
if (this.previous().length) {
|
|
178
|
+
return this.previous().some((i) => i.annotation);
|
|
179
|
+
}
|
|
180
|
+
return true;
|
|
181
|
+
}
|
|
182
|
+
isInline() {
|
|
183
|
+
if (typeof this.mapOpts.inline !== "undefined") {
|
|
184
|
+
return this.mapOpts.inline;
|
|
185
|
+
}
|
|
186
|
+
let annotation = this.mapOpts.annotation;
|
|
187
|
+
if (typeof annotation !== "undefined" && annotation !== true) {
|
|
188
|
+
return false;
|
|
189
|
+
}
|
|
190
|
+
if (this.previous().length) {
|
|
191
|
+
return this.previous().some((i) => i.inline);
|
|
192
|
+
}
|
|
193
|
+
return true;
|
|
194
|
+
}
|
|
195
|
+
isMap() {
|
|
196
|
+
if (typeof this.opts.map !== "undefined") {
|
|
197
|
+
return !!this.opts.map;
|
|
198
|
+
}
|
|
199
|
+
return this.previous().length > 0;
|
|
200
|
+
}
|
|
201
|
+
isSourcesContent() {
|
|
202
|
+
if (typeof this.mapOpts.sourcesContent !== "undefined") {
|
|
203
|
+
return this.mapOpts.sourcesContent;
|
|
204
|
+
}
|
|
205
|
+
if (this.previous().length) {
|
|
206
|
+
return this.previous().some((i) => i.withContent());
|
|
207
|
+
}
|
|
208
|
+
return true;
|
|
209
|
+
}
|
|
210
|
+
outputFile() {
|
|
211
|
+
if (this.opts.to) {
|
|
212
|
+
return this.path(this.opts.to);
|
|
213
|
+
} else if (this.opts.from) {
|
|
214
|
+
return this.path(this.opts.from);
|
|
215
|
+
} else {
|
|
216
|
+
return "to.css";
|
|
217
|
+
}
|
|
218
|
+
}
|
|
219
|
+
path(file) {
|
|
220
|
+
if (this.mapOpts.absolute) return file;
|
|
221
|
+
if (file.charCodeAt(0) === 60) return file;
|
|
222
|
+
if (/^\w+:\/\//.test(file)) return file;
|
|
223
|
+
let cached = this.memoizedPaths.get(file);
|
|
224
|
+
if (cached) return cached;
|
|
225
|
+
let from = this.opts.to ? dirname(this.opts.to) : ".";
|
|
226
|
+
if (typeof this.mapOpts.annotation === "string") {
|
|
227
|
+
from = dirname(resolve(from, this.mapOpts.annotation));
|
|
228
|
+
}
|
|
229
|
+
let path = relative(from, file);
|
|
230
|
+
this.memoizedPaths.set(file, path);
|
|
231
|
+
return path;
|
|
232
|
+
}
|
|
233
|
+
previous() {
|
|
234
|
+
if (!this.previousMaps) {
|
|
235
|
+
this.previousMaps = [];
|
|
236
|
+
if (this.root) {
|
|
237
|
+
this.root.walk((node) => {
|
|
238
|
+
if (node.source && node.source.input.map) {
|
|
239
|
+
let map = node.source.input.map;
|
|
240
|
+
if (!this.previousMaps.includes(map)) {
|
|
241
|
+
this.previousMaps.push(map);
|
|
242
|
+
}
|
|
243
|
+
}
|
|
244
|
+
});
|
|
245
|
+
} else {
|
|
246
|
+
let input2 = new Input(this.css, this.opts);
|
|
247
|
+
if (input2.map) this.previousMaps.push(input2.map);
|
|
248
|
+
}
|
|
249
|
+
}
|
|
250
|
+
return this.previousMaps;
|
|
251
|
+
}
|
|
252
|
+
setSourcesContent() {
|
|
253
|
+
let already = {};
|
|
254
|
+
if (this.root) {
|
|
255
|
+
this.root.walk((node) => {
|
|
256
|
+
if (node.source) {
|
|
257
|
+
let from = node.source.input.from;
|
|
258
|
+
if (from && !already[from]) {
|
|
259
|
+
already[from] = true;
|
|
260
|
+
let fromUrl = this.usesFileUrls ? this.toFileUrl(from) : this.toUrl(this.path(from));
|
|
261
|
+
this.map.setSourceContent(fromUrl, node.source.input.css);
|
|
262
|
+
}
|
|
263
|
+
}
|
|
264
|
+
});
|
|
265
|
+
} else if (this.css) {
|
|
266
|
+
let from = this.opts.from ? this.toUrl(this.path(this.opts.from)) : "<no source>";
|
|
267
|
+
this.map.setSourceContent(from, this.css);
|
|
268
|
+
}
|
|
269
|
+
}
|
|
270
|
+
sourcePath(node) {
|
|
271
|
+
if (this.mapOpts.from) {
|
|
272
|
+
return this.toUrl(this.mapOpts.from);
|
|
273
|
+
} else if (this.usesFileUrls) {
|
|
274
|
+
return this.toFileUrl(node.source.input.from);
|
|
275
|
+
} else {
|
|
276
|
+
return this.toUrl(this.path(node.source.input.from));
|
|
277
|
+
}
|
|
278
|
+
}
|
|
279
|
+
toBase64(str) {
|
|
280
|
+
if (Buffer) {
|
|
281
|
+
return Buffer.from(str).toString("base64");
|
|
282
|
+
} else {
|
|
283
|
+
return window.btoa(unescape(encodeURIComponent(str)));
|
|
284
|
+
}
|
|
285
|
+
}
|
|
286
|
+
toFileUrl(path) {
|
|
287
|
+
let cached = this.memoizedFileURLs.get(path);
|
|
288
|
+
if (cached) return cached;
|
|
289
|
+
if (pathToFileURL) {
|
|
290
|
+
let fileURL = pathToFileURL(path).toString();
|
|
291
|
+
this.memoizedFileURLs.set(path, fileURL);
|
|
292
|
+
return fileURL;
|
|
293
|
+
} else {
|
|
294
|
+
throw new Error(
|
|
295
|
+
"`map.absolute` option is not available in this PostCSS build"
|
|
296
|
+
);
|
|
297
|
+
}
|
|
298
|
+
}
|
|
299
|
+
toUrl(path) {
|
|
300
|
+
let cached = this.memoizedURLs.get(path);
|
|
301
|
+
if (cached) return cached;
|
|
302
|
+
if (sep === "\\") {
|
|
303
|
+
path = path.replace(/\\/g, "/");
|
|
304
|
+
}
|
|
305
|
+
let url = encodeURI(path).replace(/[#?]/g, encodeURIComponent);
|
|
306
|
+
this.memoizedURLs.set(path, url);
|
|
307
|
+
return url;
|
|
308
|
+
}
|
|
309
|
+
}
|
|
310
|
+
mapGenerator = MapGenerator;
|
|
311
|
+
return mapGenerator;
|
|
312
|
+
}
|
|
313
|
+
exports.__require = requireMapGenerator;
|
|
314
|
+
//# sourceMappingURL=map-generator.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"map-generator.js","sources":["../../../../../../node_modules/postcss/lib/map-generator.js"],"sourcesContent":["'use strict'\n\nlet { SourceMapConsumer, SourceMapGenerator } = require('source-map-js')\nlet { dirname, relative, resolve, sep } = require('path')\nlet { pathToFileURL } = require('url')\n\nlet Input = require('./input')\n\nlet sourceMapAvailable = Boolean(SourceMapConsumer && SourceMapGenerator)\nlet pathAvailable = Boolean(dirname && resolve && relative && sep)\n\nclass MapGenerator {\n constructor(stringify, root, opts, cssString) {\n this.stringify = stringify\n this.mapOpts = opts.map || {}\n this.root = root\n this.opts = opts\n this.css = cssString\n this.usesFileUrls = !this.mapOpts.from && this.mapOpts.absolute\n\n this.memoizedFileURLs = new Map()\n this.memoizedPaths = new Map()\n this.memoizedURLs = new Map()\n }\n\n addAnnotation() {\n let content\n\n if (this.isInline()) {\n content =\n 'data:application/json;base64,' + this.toBase64(this.map.toString())\n } else if (typeof this.mapOpts.annotation === 'string') {\n content = this.mapOpts.annotation\n } else if (typeof this.mapOpts.annotation === 'function') {\n content = this.mapOpts.annotation(this.opts.to, this.root)\n } else {\n content = this.outputFile() + '.map'\n }\n let eol = '\\n'\n if (this.css.includes('\\r\\n')) eol = '\\r\\n'\n\n this.css += eol + '/*# sourceMappingURL=' + content + ' */'\n }\n\n applyPrevMaps() {\n for (let prev of this.previous()) {\n let from = this.toUrl(this.path(prev.file))\n let root = prev.root || dirname(prev.file)\n let map\n\n if (this.mapOpts.sourcesContent === false) {\n map = new SourceMapConsumer(prev.text)\n if (map.sourcesContent) {\n map.sourcesContent = map.sourcesContent.map(() => null)\n }\n } else {\n map = prev.consumer()\n }\n\n this.map.applySourceMap(map, from, this.toUrl(this.path(root)))\n }\n }\n\n clearAnnotation() {\n if (this.mapOpts.annotation === false) return\n\n if (this.root) {\n let node\n for (let i = this.root.nodes.length - 1; i >= 0; i--) {\n node = this.root.nodes[i]\n if (node.type !== 'comment') continue\n if (node.text.indexOf('# sourceMappingURL=') === 0) {\n this.root.removeChild(i)\n }\n }\n } else if (this.css) {\n this.css = this.css.replace(/(\\n)?\\/\\*#[\\S\\s]*?\\*\\/$/gm, '')\n }\n }\n\n generate() {\n this.clearAnnotation()\n if (pathAvailable && sourceMapAvailable && this.isMap()) {\n return this.generateMap()\n } else {\n let result = ''\n this.stringify(this.root, i => {\n result += i\n })\n return [result]\n }\n }\n\n generateMap() {\n if (this.root) {\n this.generateString()\n } else if (this.previous().length === 1) {\n let prev = this.previous()[0].consumer()\n prev.file = this.outputFile()\n this.map = SourceMapGenerator.fromSourceMap(prev)\n } else {\n this.map = new SourceMapGenerator({ file: this.outputFile() })\n this.map.addMapping({\n generated: { column: 0, line: 1 },\n original: { column: 0, line: 1 },\n source: this.opts.from\n ? this.toUrl(this.path(this.opts.from))\n : '<no source>'\n })\n }\n\n if (this.isSourcesContent()) this.setSourcesContent()\n if (this.root && this.previous().length > 0) this.applyPrevMaps()\n if (this.isAnnotation()) this.addAnnotation()\n\n if (this.isInline()) {\n return [this.css]\n } else {\n return [this.css, this.map]\n }\n }\n\n generateString() {\n this.css = ''\n this.map = new SourceMapGenerator({ file: this.outputFile() })\n\n let line = 1\n let column = 1\n\n let noSource = '<no source>'\n let mapping = {\n generated: { column: 0, line: 0 },\n original: { column: 0, line: 0 },\n source: ''\n }\n\n let lines, last\n this.stringify(this.root, (str, node, type) => {\n this.css += str\n\n if (node && type !== 'end') {\n mapping.generated.line = line\n mapping.generated.column = column - 1\n if (node.source && node.source.start) {\n mapping.source = this.sourcePath(node)\n mapping.original.line = node.source.start.line\n mapping.original.column = node.source.start.column - 1\n this.map.addMapping(mapping)\n } else {\n mapping.source = noSource\n mapping.original.line = 1\n mapping.original.column = 0\n this.map.addMapping(mapping)\n }\n }\n\n lines = str.match(/\\n/g)\n if (lines) {\n line += lines.length\n last = str.lastIndexOf('\\n')\n column = str.length - last\n } else {\n column += str.length\n }\n\n if (node && type !== 'start') {\n let p = node.parent || { raws: {} }\n let childless =\n node.type === 'decl' || (node.type === 'atrule' && !node.nodes)\n if (!childless || node !== p.last || p.raws.semicolon) {\n if (node.source && node.source.end) {\n mapping.source = this.sourcePath(node)\n mapping.original.line = node.source.end.line\n mapping.original.column = node.source.end.column - 1\n mapping.generated.line = line\n mapping.generated.column = column - 2\n this.map.addMapping(mapping)\n } else {\n mapping.source = noSource\n mapping.original.line = 1\n mapping.original.column = 0\n mapping.generated.line = line\n mapping.generated.column = column - 1\n this.map.addMapping(mapping)\n }\n }\n }\n })\n }\n\n isAnnotation() {\n if (this.isInline()) {\n return true\n }\n if (typeof this.mapOpts.annotation !== 'undefined') {\n return this.mapOpts.annotation\n }\n if (this.previous().length) {\n return this.previous().some(i => i.annotation)\n }\n return true\n }\n\n isInline() {\n if (typeof this.mapOpts.inline !== 'undefined') {\n return this.mapOpts.inline\n }\n\n let annotation = this.mapOpts.annotation\n if (typeof annotation !== 'undefined' && annotation !== true) {\n return false\n }\n\n if (this.previous().length) {\n return this.previous().some(i => i.inline)\n }\n return true\n }\n\n isMap() {\n if (typeof this.opts.map !== 'undefined') {\n return !!this.opts.map\n }\n return this.previous().length > 0\n }\n\n isSourcesContent() {\n if (typeof this.mapOpts.sourcesContent !== 'undefined') {\n return this.mapOpts.sourcesContent\n }\n if (this.previous().length) {\n return this.previous().some(i => i.withContent())\n }\n return true\n }\n\n outputFile() {\n if (this.opts.to) {\n return this.path(this.opts.to)\n } else if (this.opts.from) {\n return this.path(this.opts.from)\n } else {\n return 'to.css'\n }\n }\n\n path(file) {\n if (this.mapOpts.absolute) return file\n if (file.charCodeAt(0) === 60 /* `<` */) return file\n if (/^\\w+:\\/\\//.test(file)) return file\n let cached = this.memoizedPaths.get(file)\n if (cached) return cached\n\n let from = this.opts.to ? dirname(this.opts.to) : '.'\n\n if (typeof this.mapOpts.annotation === 'string') {\n from = dirname(resolve(from, this.mapOpts.annotation))\n }\n\n let path = relative(from, file)\n this.memoizedPaths.set(file, path)\n\n return path\n }\n\n previous() {\n if (!this.previousMaps) {\n this.previousMaps = []\n if (this.root) {\n this.root.walk(node => {\n if (node.source && node.source.input.map) {\n let map = node.source.input.map\n if (!this.previousMaps.includes(map)) {\n this.previousMaps.push(map)\n }\n }\n })\n } else {\n let input = new Input(this.css, this.opts)\n if (input.map) this.previousMaps.push(input.map)\n }\n }\n\n return this.previousMaps\n }\n\n setSourcesContent() {\n let already = {}\n if (this.root) {\n this.root.walk(node => {\n if (node.source) {\n let from = node.source.input.from\n if (from && !already[from]) {\n already[from] = true\n let fromUrl = this.usesFileUrls\n ? this.toFileUrl(from)\n : this.toUrl(this.path(from))\n this.map.setSourceContent(fromUrl, node.source.input.css)\n }\n }\n })\n } else if (this.css) {\n let from = this.opts.from\n ? this.toUrl(this.path(this.opts.from))\n : '<no source>'\n this.map.setSourceContent(from, this.css)\n }\n }\n\n sourcePath(node) {\n if (this.mapOpts.from) {\n return this.toUrl(this.mapOpts.from)\n } else if (this.usesFileUrls) {\n return this.toFileUrl(node.source.input.from)\n } else {\n return this.toUrl(this.path(node.source.input.from))\n }\n }\n\n toBase64(str) {\n if (Buffer) {\n return Buffer.from(str).toString('base64')\n } else {\n return window.btoa(unescape(encodeURIComponent(str)))\n }\n }\n\n toFileUrl(path) {\n let cached = this.memoizedFileURLs.get(path)\n if (cached) return cached\n\n if (pathToFileURL) {\n let fileURL = pathToFileURL(path).toString()\n this.memoizedFileURLs.set(path, fileURL)\n\n return fileURL\n } else {\n throw new Error(\n '`map.absolute` option is not available in this PostCSS build'\n )\n }\n }\n\n toUrl(path) {\n let cached = this.memoizedURLs.get(path)\n if (cached) return cached\n\n if (sep === '\\\\') {\n path = path.replace(/\\\\/g, '/')\n }\n\n let url = encodeURI(path).replace(/[#?]/g, encodeURIComponent)\n this.memoizedURLs.set(path, url)\n\n return url\n }\n}\n\nmodule.exports = MapGenerator\n"],"names":["require$$0","require$$1","require$$2","require$$3","input"],"mappings":";;;;;;;;;AAEA,MAAI,EAAE,mBAAmB,uBAAuBA;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