@cuemath/leap 3.0.22-aa1 → 3.0.22-aa2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/_virtual/_commonjsHelpers.js +4 -24
- package/dist/_virtual/_commonjsHelpers.js.map +1 -1
- package/dist/features/cue-canvas/sidebar/homework/homework.js +18 -47
- package/dist/features/cue-canvas/sidebar/homework/homework.js.map +1 -1
- package/package.json +1 -1
- package/dist/_virtual/___vite-browser-external.js +0 -7
- package/dist/_virtual/___vite-browser-external.js.map +0 -1
- package/dist/_virtual/__vite-browser-external.js +0 -5
- package/dist/_virtual/__vite-browser-external.js.map +0 -1
- package/dist/_virtual/index2.js +0 -5
- package/dist/_virtual/index2.js.map +0 -1
- package/dist/_virtual/picocolors.browser.js +0 -5
- package/dist/_virtual/picocolors.browser.js.map +0 -1
- package/dist/_virtual/symbols.js +0 -5
- package/dist/_virtual/symbols.js.map +0 -1
- package/dist/node_modules/@emotion/unitless/dist/emotion-unitless.esm.js +0 -53
- package/dist/node_modules/@emotion/unitless/dist/emotion-unitless.esm.js.map +0 -1
- package/dist/node_modules/camelize/index.js +0 -44
- package/dist/node_modules/camelize/index.js.map +0 -1
- package/dist/node_modules/css-color-keywords/colors.json.js +0 -298
- package/dist/node_modules/css-color-keywords/colors.json.js.map +0 -1
- package/dist/node_modules/css-color-keywords/index.js +0 -6
- package/dist/node_modules/css-color-keywords/index.js.map +0 -1
- package/dist/node_modules/css-to-react-native/index.js +0 -397
- package/dist/node_modules/css-to-react-native/index.js.map +0 -1
- package/dist/node_modules/nanoid/non-secure/index.js +0 -16
- package/dist/node_modules/nanoid/non-secure/index.js.map +0 -1
- package/dist/node_modules/picocolors/picocolors.browser.js +0 -11
- package/dist/node_modules/picocolors/picocolors.browser.js.map +0 -1
- package/dist/node_modules/postcss/lib/at-rule.js +0 -20
- package/dist/node_modules/postcss/lib/at-rule.js.map +0 -1
- package/dist/node_modules/postcss/lib/comment.js +0 -13
- package/dist/node_modules/postcss/lib/comment.js.map +0 -1
- package/dist/node_modules/postcss/lib/container.js +0 -226
- package/dist/node_modules/postcss/lib/container.js.map +0 -1
- package/dist/node_modules/postcss/lib/css-syntax-error.js +0 -45
- package/dist/node_modules/postcss/lib/css-syntax-error.js.map +0 -1
- package/dist/node_modules/postcss/lib/declaration.js +0 -16
- package/dist/node_modules/postcss/lib/declaration.js.map +0 -1
- package/dist/node_modules/postcss/lib/document.js +0 -22
- package/dist/node_modules/postcss/lib/document.js.map +0 -1
- package/dist/node_modules/postcss/lib/fromJSON.js +0 -43
- package/dist/node_modules/postcss/lib/fromJSON.js.map +0 -1
- package/dist/node_modules/postcss/lib/input.js +0 -134
- package/dist/node_modules/postcss/lib/input.js.map +0 -1
- package/dist/node_modules/postcss/lib/lazy-result.js +0 -347
- package/dist/node_modules/postcss/lib/lazy-result.js.map +0 -1
- package/dist/node_modules/postcss/lib/list.js +0 -22
- package/dist/node_modules/postcss/lib/list.js.map +0 -1
- package/dist/node_modules/postcss/lib/map-generator.js +0 -167
- package/dist/node_modules/postcss/lib/map-generator.js.map +0 -1
- package/dist/node_modules/postcss/lib/no-work-result.js +0 -90
- package/dist/node_modules/postcss/lib/no-work-result.js.map +0 -1
- package/dist/node_modules/postcss/lib/node.js +0 -216
- package/dist/node_modules/postcss/lib/node.js.map +0 -1
- package/dist/node_modules/postcss/lib/parse.js +0 -23
- package/dist/node_modules/postcss/lib/parse.js.map +0 -1
- package/dist/node_modules/postcss/lib/parser.js +0 -318
- package/dist/node_modules/postcss/lib/parser.js.map +0 -1
- package/dist/node_modules/postcss/lib/postcss.js +0 -30
- package/dist/node_modules/postcss/lib/postcss.js.map +0 -1
- package/dist/node_modules/postcss/lib/postcss2.js +0 -76
- package/dist/node_modules/postcss/lib/postcss2.js.map +0 -1
- package/dist/node_modules/postcss/lib/previous-map.js +0 -89
- package/dist/node_modules/postcss/lib/previous-map.js.map +0 -1
- package/dist/node_modules/postcss/lib/processor.js +0 -42
- package/dist/node_modules/postcss/lib/processor.js.map +0 -1
- package/dist/node_modules/postcss/lib/result.js +0 -27
- package/dist/node_modules/postcss/lib/result.js.map +0 -1
- package/dist/node_modules/postcss/lib/root.js +0 -38
- package/dist/node_modules/postcss/lib/root.js.map +0 -1
- package/dist/node_modules/postcss/lib/rule.js +0 -22
- package/dist/node_modules/postcss/lib/rule.js.map +0 -1
- package/dist/node_modules/postcss/lib/stringifier.js +0 -193
- package/dist/node_modules/postcss/lib/stringifier.js.map +0 -1
- package/dist/node_modules/postcss/lib/stringify.js +0 -11
- package/dist/node_modules/postcss/lib/stringify.js.map +0 -1
- package/dist/node_modules/postcss/lib/symbols.js +0 -7
- package/dist/node_modules/postcss/lib/symbols.js.map +0 -1
- package/dist/node_modules/postcss/lib/tokenize.js +0 -110
- package/dist/node_modules/postcss/lib/tokenize.js.map +0 -1
- package/dist/node_modules/postcss/lib/warn-once.js +0 -8
- package/dist/node_modules/postcss/lib/warn-once.js.map +0 -1
- package/dist/node_modules/postcss/lib/warning.js +0 -22
- package/dist/node_modules/postcss/lib/warning.js.map +0 -1
- package/dist/node_modules/postcss-value-parser/lib/index.js +0 -22
- package/dist/node_modules/postcss-value-parser/lib/index.js.map +0 -1
- package/dist/node_modules/postcss-value-parser/lib/parse.js +0 -115
- package/dist/node_modules/postcss-value-parser/lib/parse.js.map +0 -1
- package/dist/node_modules/postcss-value-parser/lib/stringify.js +0 -18
- package/dist/node_modules/postcss-value-parser/lib/stringify.js.map +0 -1
- package/dist/node_modules/postcss-value-parser/lib/unit.js +0 -37
- package/dist/node_modules/postcss-value-parser/lib/unit.js.map +0 -1
- package/dist/node_modules/postcss-value-parser/lib/walk.js +0 -9
- package/dist/node_modules/postcss-value-parser/lib/walk.js.map +0 -1
- package/dist/node_modules/styled-components/native/dist/styled-components.native.esm.js +0 -473
- package/dist/node_modules/styled-components/native/dist/styled-components.native.esm.js.map +0 -1
- package/dist/node_modules/stylis/src/Enum.js +0 -13
- package/dist/node_modules/stylis/src/Enum.js.map +0 -1
- package/dist/node_modules/stylis/src/Middleware.js +0 -48
- package/dist/node_modules/stylis/src/Middleware.js.map +0 -1
- package/dist/node_modules/stylis/src/Parser.js +0 -115
- package/dist/node_modules/stylis/src/Parser.js.map +0 -1
- package/dist/node_modules/stylis/src/Prefixer.js +0 -151
- package/dist/node_modules/stylis/src/Prefixer.js.map +0 -1
- package/dist/node_modules/stylis/src/Serializer.js +0 -28
- package/dist/node_modules/stylis/src/Serializer.js.map +0 -1
- package/dist/node_modules/stylis/src/Tokenizer.js +0 -138
- package/dist/node_modules/stylis/src/Tokenizer.js.map +0 -1
- package/dist/node_modules/stylis/src/Utility.js +0 -57
- package/dist/node_modules/stylis/src/Utility.js.map +0 -1
- package/dist/node_modules/tslib/tslib.es6.js +0 -19
- package/dist/node_modules/tslib/tslib.es6.js.map +0 -1
@@ -1 +0,0 @@
|
|
1
|
-
{"version":3,"file":"Middleware.js","sources":["../../../../node_modules/stylis/src/Middleware.js"],"sourcesContent":["import {MS, MOZ, WEBKIT, RULESET, KEYFRAMES, DECLARATION} from './Enum.js'\nimport {match, charat, substr, strlen, sizeof, replace, combine, filter, assign} from './Utility.js'\nimport {copy, lift, tokenize} from './Tokenizer.js'\nimport {serialize} from './Serializer.js'\nimport {prefix} from './Prefixer.js'\n\n/**\n * @param {function[]} collection\n * @return {function}\n */\nexport function middleware (collection) {\n\tvar length = sizeof(collection)\n\n\treturn function (element, index, children, callback) {\n\t\tvar output = ''\n\n\t\tfor (var i = 0; i < length; i++)\n\t\t\toutput += collection[i](element, index, children, callback) || ''\n\n\t\treturn output\n\t}\n}\n\n/**\n * @param {function} callback\n * @return {function}\n */\nexport function rulesheet (callback) {\n\treturn function (element) {\n\t\tif (!element.root)\n\t\t\tif (element = element.return)\n\t\t\t\tcallback(element)\n\t}\n}\n\n/**\n * @param {object} element\n * @param {number} index\n * @param {object[]} children\n * @param {function} callback\n */\nexport function prefixer (element, index, children, callback) {\n\tif (element.length > -1)\n\t\tif (!element.return)\n\t\t\tswitch (element.type) {\n\t\t\t\tcase DECLARATION: element.return = prefix(element.value, element.length, children)\n\t\t\t\t\treturn\n\t\t\t\tcase KEYFRAMES:\n\t\t\t\t\treturn serialize([copy(element, {value: replace(element.value, '@', '@' + WEBKIT)})], callback)\n\t\t\t\tcase RULESET:\n\t\t\t\t\tif (element.length)\n\t\t\t\t\t\treturn combine(children = element.props, function (value) {\n\t\t\t\t\t\t\tswitch (match(value, callback = /(::plac\\w+|:read-\\w+)/)) {\n\t\t\t\t\t\t\t\t// :read-(only|write)\n\t\t\t\t\t\t\t\tcase ':read-only': case ':read-write':\n\t\t\t\t\t\t\t\t\tlift(copy(element, {props: [replace(value, /:(read-\\w+)/, ':' + MOZ + '$1')]}))\n\t\t\t\t\t\t\t\t\tlift(copy(element, {props: [value]}))\n\t\t\t\t\t\t\t\t\tassign(element, {props: filter(children, callback)})\n\t\t\t\t\t\t\t\t\tbreak\n\t\t\t\t\t\t\t\t// :placeholder\n\t\t\t\t\t\t\t\tcase '::placeholder':\n\t\t\t\t\t\t\t\t\tlift(copy(element, {props: [replace(value, /:(plac\\w+)/, ':' + WEBKIT + 'input-$1')]}))\n\t\t\t\t\t\t\t\t\tlift(copy(element, {props: [replace(value, /:(plac\\w+)/, ':' + MOZ + '$1')]}))\n\t\t\t\t\t\t\t\t\tlift(copy(element, {props: [replace(value, /:(plac\\w+)/, MS + 'input-$1')]}))\n\t\t\t\t\t\t\t\t\tlift(copy(element, {props: [value]}))\n\t\t\t\t\t\t\t\t\tassign(element, {props: filter(children, callback)})\n\t\t\t\t\t\t\t\t\tbreak\n\t\t\t\t\t\t\t}\n\n\t\t\t\t\t\t\treturn ''\n\t\t\t\t\t\t})\n\t\t\t}\n}\n\n/**\n * @param {object} element\n * @param {number} index\n * @param {object[]} children\n */\nexport function namespace (element) {\n\tswitch (element.type) {\n\t\tcase RULESET:\n\t\t\telement.props = element.props.map(function (value) {\n\t\t\t\treturn combine(tokenize(value), function (value, index, children) {\n\t\t\t\t\tswitch (charat(value, 0)) {\n\t\t\t\t\t\t// \\f\n\t\t\t\t\t\tcase 12:\n\t\t\t\t\t\t\treturn substr(value, 1, strlen(value))\n\t\t\t\t\t\t// \\0 ( + > ~\n\t\t\t\t\t\tcase 0: case 40: case 43: case 62: case 126:\n\t\t\t\t\t\t\treturn value\n\t\t\t\t\t\t// :\n\t\t\t\t\t\tcase 58:\n\t\t\t\t\t\t\tif (children[++index] === 'global')\n\t\t\t\t\t\t\t\tchildren[index] = '', children[++index] = '\\f' + substr(children[index], index = 1, -1)\n\t\t\t\t\t\t// \\s\n\t\t\t\t\t\tcase 32:\n\t\t\t\t\t\t\treturn index === 1 ? '' : value\n\t\t\t\t\t\tdefault:\n\t\t\t\t\t\t\tswitch (index) {\n\t\t\t\t\t\t\t\tcase 0: element = value\n\t\t\t\t\t\t\t\t\treturn sizeof(children) > 1 ? '' : value\n\t\t\t\t\t\t\t\tcase index = sizeof(children) - 1: case 2:\n\t\t\t\t\t\t\t\t\treturn index === 2 ? value + element + element : value + element\n\t\t\t\t\t\t\t\tdefault:\n\t\t\t\t\t\t\t\t\treturn value\n\t\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t})\n\t\t\t})\n\t}\n}\n"],"names":["middleware","collection","length","sizeof","element","index","children","callback","output","i","rulesheet","prefixer","DECLARATION","prefix","KEYFRAMES","serialize","copy","replace","WEBKIT","RULESET","combine","value","match","lift","MOZ","assign","filter","MS"],"mappings":";;;;;AAUO,SAASA,EAAYC,GAAY;AACvC,MAAIC,IAASC,EAAOF,CAAU;AAE9B,SAAO,SAAUG,GAASC,GAAOC,GAAUC,GAAU;AAGpD,aAFIC,IAAS,IAEJC,IAAI,GAAGA,IAAIP,GAAQO;AAC3B,MAAAD,KAAUP,EAAWQ,CAAC,EAAEL,GAASC,GAAOC,GAAUC,CAAQ,KAAK;AAEhE,WAAOC;AAAA,EACP;AACF;AAMO,SAASE,EAAWH,GAAU;AACpC,SAAO,SAAUH,GAAS;AACzB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,GAC5EJ,EAAKP,EAAKZ,GAAS,EAAC,OAAO,CAACiB,CAAK,EAAC,CAAC,CAAC,GACpCI,EAAOrB,GAAS,EAAC,OAAOsB,EAAOpB,GAAUC,CAAQ,EAAC,CAAC;AACnD;AAAA,YACD;AAED,mBAAO;AAAA,UACd,CAAO;AAAA,IACH;AACJ;","x_google_ignoreList":[0]}
|
@@ -1,115 +0,0 @@
|
|
1
|
-
import { COMMENT as G, DECLARATION as H, RULESET as J } from "./Enum.js";
|
2
|
-
import { strlen as T, append as M, charat as I, replace as O, substr as C, indexof as K, abs as B, sizeof as P, trim as Q, from as F } from "./Utility.js";
|
3
|
-
import { dealloc as V, alloc as W, next as x, peek as N, delimit as y, identifier as X, commenter as Y, token as S, escaping as Z, whitespace as _, node as D, char as $, prev as j, caret as z } from "./Tokenizer.js";
|
4
|
-
function fa(e) {
|
5
|
-
return V(R("", null, null, null, [""], e = W(e), 0, [0], e));
|
6
|
-
}
|
7
|
-
function R(e, m, n, c, s, g, L, t, k) {
|
8
|
-
for (var h = 0, d = 0, f = L, l = 0, p = 0, b = 0, i = 1, A = 1, o = 1, r = 0, w = "", u = s, E = g, v = c, a = w; A; )
|
9
|
-
switch (b = r, r = x()) {
|
10
|
-
case 40:
|
11
|
-
if (b != 108 && I(a, f - 1) == 58) {
|
12
|
-
K(a += O(y(r), "&", "&\f"), "&\f", B(h ? t[h - 1] : 0)) != -1 && (o = -1);
|
13
|
-
break;
|
14
|
-
}
|
15
|
-
case 34:
|
16
|
-
case 39:
|
17
|
-
case 91:
|
18
|
-
a += y(r);
|
19
|
-
break;
|
20
|
-
case 9:
|
21
|
-
case 10:
|
22
|
-
case 13:
|
23
|
-
case 32:
|
24
|
-
a += _(b);
|
25
|
-
break;
|
26
|
-
case 92:
|
27
|
-
a += Z(z() - 1, 7);
|
28
|
-
continue;
|
29
|
-
case 47:
|
30
|
-
switch (N()) {
|
31
|
-
case 42:
|
32
|
-
case 47:
|
33
|
-
M(aa(Y(x(), z()), m, n, k), k), (S(b || 1) == 5 || S(N() || 1) == 5) && T(a) && C(a, -1, void 0) !== " " && (a += " ");
|
34
|
-
break;
|
35
|
-
default:
|
36
|
-
a += "/";
|
37
|
-
}
|
38
|
-
break;
|
39
|
-
case 123 * i:
|
40
|
-
t[h++] = T(a) * o;
|
41
|
-
case 125 * i:
|
42
|
-
case 59:
|
43
|
-
case 0:
|
44
|
-
switch (r) {
|
45
|
-
case 0:
|
46
|
-
case 125:
|
47
|
-
A = 0;
|
48
|
-
case 59 + d:
|
49
|
-
o == -1 && (a = O(a, /\f/g, "")), p > 0 && (T(a) - f || i === 0 && b === 47) && M(p > 32 ? q(a + ";", c, n, f - 1, k) : q(O(a, " ", "") + ";", c, n, f - 2, k), k);
|
50
|
-
break;
|
51
|
-
case 59:
|
52
|
-
a += ";";
|
53
|
-
default:
|
54
|
-
if (M(v = U(a, m, n, h, d, s, t, w, u = [], E = [], f, g), g), r === 123)
|
55
|
-
if (d === 0)
|
56
|
-
R(a, m, v, v, u, g, f, t, E);
|
57
|
-
else
|
58
|
-
switch (l === 99 && I(a, 3) === 110 ? 100 : l) {
|
59
|
-
case 100:
|
60
|
-
case 108:
|
61
|
-
case 109:
|
62
|
-
case 115:
|
63
|
-
R(e, v, v, c && M(U(e, v, v, 0, 0, s, t, w, s, u = [], f, E), E), s, E, f, t, c ? u : E);
|
64
|
-
break;
|
65
|
-
default:
|
66
|
-
R(a, v, v, v, [""], E, 0, t, E);
|
67
|
-
}
|
68
|
-
}
|
69
|
-
h = d = p = 0, i = o = 1, w = a = "", f = L;
|
70
|
-
break;
|
71
|
-
case 58:
|
72
|
-
f = 1 + T(a), p = b;
|
73
|
-
default:
|
74
|
-
if (i < 1) {
|
75
|
-
if (r == 123)
|
76
|
-
--i;
|
77
|
-
else if (r == 125 && i++ == 0 && j() == 125)
|
78
|
-
continue;
|
79
|
-
}
|
80
|
-
switch (a += F(r), r * i) {
|
81
|
-
case 38:
|
82
|
-
o = d > 0 ? 1 : (a += "\f", -1);
|
83
|
-
break;
|
84
|
-
case 44:
|
85
|
-
t[h++] = (T(a) - 1) * o, o = 1;
|
86
|
-
break;
|
87
|
-
case 64:
|
88
|
-
N() === 45 && (a += y(x())), l = N(), d = f = T(w = a += X(z())), r++;
|
89
|
-
break;
|
90
|
-
case 45:
|
91
|
-
b === 45 && T(a) == 2 && (i = 0);
|
92
|
-
}
|
93
|
-
}
|
94
|
-
return g;
|
95
|
-
}
|
96
|
-
function U(e, m, n, c, s, g, L, t, k, h, d, f) {
|
97
|
-
for (var l = s - 1, p = s === 0 ? g : [""], b = P(p), i = 0, A = 0, o = 0; i < c; ++i)
|
98
|
-
for (var r = 0, w = C(e, l + 1, l = B(A = L[i])), u = e; r < b; ++r)
|
99
|
-
(u = Q(A > 0 ? p[r] + " " + w : O(w, /&\f/g, p[r]))) && (k[o++] = u);
|
100
|
-
return D(e, m, n, s === 0 ? J : t, k, h, d, f);
|
101
|
-
}
|
102
|
-
function aa(e, m, n, c) {
|
103
|
-
return D(e, m, n, G, F($()), C(e, 2, -2), 0, c);
|
104
|
-
}
|
105
|
-
function q(e, m, n, c, s) {
|
106
|
-
return D(e, m, n, H, C(e, 0, c), C(e, c + 1, -1), c, s);
|
107
|
-
}
|
108
|
-
export {
|
109
|
-
aa as comment,
|
110
|
-
fa as compile,
|
111
|
-
q as declaration,
|
112
|
-
R as parse,
|
113
|
-
U as ruleset
|
114
|
-
};
|
115
|
-
//# sourceMappingURL=Parser.js.map
|
@@ -1 +0,0 @@
|
|
1
|
-
{"version":3,"file":"Parser.js","sources":["../../../../node_modules/stylis/src/Parser.js"],"sourcesContent":["import {COMMENT, RULESET, DECLARATION} from './Enum.js'\nimport {abs, charat, trim, from, sizeof, strlen, substr, append, replace, indexof} from './Utility.js'\nimport {node, char, prev, next, peek, token, caret, alloc, dealloc, delimit, whitespace, escaping, identifier, commenter} from './Tokenizer.js'\n\n/**\n * @param {string} value\n * @return {object[]}\n */\nexport function compile (value) {\n\treturn dealloc(parse('', null, null, null, [''], value = alloc(value), 0, [0], value))\n}\n\n/**\n * @param {string} value\n * @param {object} root\n * @param {object?} parent\n * @param {string[]} rule\n * @param {string[]} rules\n * @param {string[]} rulesets\n * @param {number[]} pseudo\n * @param {number[]} points\n * @param {string[]} declarations\n * @return {object}\n */\nexport function parse (value, root, parent, rule, rules, rulesets, pseudo, points, declarations) {\n\tvar index = 0\n\tvar offset = 0\n\tvar length = pseudo\n\tvar atrule = 0\n\tvar property = 0\n\tvar previous = 0\n\tvar variable = 1\n\tvar scanning = 1\n\tvar ampersand = 1\n\tvar character = 0\n\tvar type = ''\n\tvar props = rules\n\tvar children = rulesets\n\tvar reference = rule\n\tvar characters = type\n\n\twhile (scanning)\n\t\tswitch (previous = character, character = next()) {\n\t\t\t// (\n\t\t\tcase 40:\n\t\t\t\tif (previous != 108 && charat(characters, length - 1) == 58) {\n\t\t\t\t\tif (indexof(characters += replace(delimit(character), '&', '&\\f'), '&\\f', abs(index ? points[index - 1] : 0)) != -1)\n\t\t\t\t\t\tampersand = -1\n\t\t\t\t\tbreak\n\t\t\t\t}\n\t\t\t// \" ' [\n\t\t\tcase 34: case 39: case 91:\n\t\t\t\tcharacters += delimit(character)\n\t\t\t\tbreak\n\t\t\t// \\t \\n \\r \\s\n\t\t\tcase 9: case 10: case 13: case 32:\n\t\t\t\tcharacters += whitespace(previous)\n\t\t\t\tbreak\n\t\t\t// \\\n\t\t\tcase 92:\n\t\t\t\tcharacters += escaping(caret() - 1, 7)\n\t\t\t\tcontinue\n\t\t\t// /\n\t\t\tcase 47:\n\t\t\t\tswitch (peek()) {\n\t\t\t\t\tcase 42: case 47:\n\t\t\t\t\t\tappend(comment(commenter(next(), caret()), root, parent, declarations), declarations)\n\t\t\t\t\t\tif ((token(previous || 1) == 5 || token(peek() || 1) == 5) && strlen(characters) && substr(characters, -1, void 0) !== ' ') characters += ' '\n\t\t\t\t\t\tbreak\n\t\t\t\t\tdefault:\n\t\t\t\t\t\tcharacters += '/'\n\t\t\t\t}\n\t\t\t\tbreak\n\t\t\t// {\n\t\t\tcase 123 * variable:\n\t\t\t\tpoints[index++] = strlen(characters) * ampersand\n\t\t\t// } ; \\0\n\t\t\tcase 125 * variable: case 59: case 0:\n\t\t\t\tswitch (character) {\n\t\t\t\t\t// \\0 }\n\t\t\t\t\tcase 0: case 125: scanning = 0\n\t\t\t\t\t// ;\n\t\t\t\t\tcase 59 + offset: if (ampersand == -1) characters = replace(characters, /\\f/g, '')\n\t\t\t\t\t\tif (property > 0 && (strlen(characters) - length || (variable === 0 && previous === 47)))\n\t\t\t\t\t\t\tappend(property > 32 ? declaration(characters + ';', rule, parent, length - 1, declarations) : declaration(replace(characters, ' ', '') + ';', rule, parent, length - 2, declarations), declarations)\n\t\t\t\t\t\tbreak\n\t\t\t\t\t// @ ;\n\t\t\t\t\tcase 59: characters += ';'\n\t\t\t\t\t// { rule/at-rule\n\t\t\t\t\tdefault:\n\t\t\t\t\t\tappend(reference = ruleset(characters, root, parent, index, offset, rules, points, type, props = [], children = [], length, rulesets), rulesets)\n\n\t\t\t\t\t\tif (character === 123)\n\t\t\t\t\t\t\tif (offset === 0)\n\t\t\t\t\t\t\t\tparse(characters, root, reference, reference, props, rulesets, length, points, children)\n\t\t\t\t\t\t\telse\n\t\t\t\t\t\t\t\tswitch (atrule === 99 && charat(characters, 3) === 110 ? 100 : atrule) {\n\t\t\t\t\t\t\t\t\t// d l m s\n\t\t\t\t\t\t\t\t\tcase 100: case 108: case 109: case 115:\n\t\t\t\t\t\t\t\t\t\tparse(value, reference, reference, rule && append(ruleset(value, reference, reference, 0, 0, rules, points, type, rules, props = [], length, children), children), rules, children, length, points, rule ? props : children)\n\t\t\t\t\t\t\t\t\t\tbreak\n\t\t\t\t\t\t\t\t\tdefault:\n\t\t\t\t\t\t\t\t\t\tparse(characters, reference, reference, reference, [''], children, 0, points, children)\n\t\t\t\t\t\t\t\t}\n\t\t\t\t}\n\n\t\t\t\tindex = offset = property = 0, variable = ampersand = 1, type = characters = '', length = pseudo\n\t\t\t\tbreak\n\t\t\t// :\n\t\t\tcase 58:\n\t\t\t\tlength = 1 + strlen(characters), property = previous\n\t\t\tdefault:\n\t\t\t\tif (variable < 1)\n\t\t\t\t\tif (character == 123)\n\t\t\t\t\t\t--variable\n\t\t\t\t\telse if (character == 125 && variable++ == 0 && prev() == 125)\n\t\t\t\t\t\tcontinue\n\n\t\t\t\tswitch (characters += from(character), character * variable) {\n\t\t\t\t\t// &\n\t\t\t\t\tcase 38:\n\t\t\t\t\t\tampersand = offset > 0 ? 1 : (characters += '\\f', -1)\n\t\t\t\t\t\tbreak\n\t\t\t\t\t// ,\n\t\t\t\t\tcase 44:\n\t\t\t\t\t\tpoints[index++] = (strlen(characters) - 1) * ampersand, ampersand = 1\n\t\t\t\t\t\tbreak\n\t\t\t\t\t// @\n\t\t\t\t\tcase 64:\n\t\t\t\t\t\t// -\n\t\t\t\t\t\tif (peek() === 45)\n\t\t\t\t\t\t\tcharacters += delimit(next())\n\n\t\t\t\t\t\tatrule = peek(), offset = length = strlen(type = characters += identifier(caret())), character++\n\t\t\t\t\t\tbreak\n\t\t\t\t\t// -\n\t\t\t\t\tcase 45:\n\t\t\t\t\t\tif (previous === 45 && strlen(characters) == 2)\n\t\t\t\t\t\t\tvariable = 0\n\t\t\t\t}\n\t\t}\n\n\treturn rulesets\n}\n\n/**\n * @param {string} value\n * @param {object} root\n * @param {object?} parent\n * @param {number} index\n * @param {number} offset\n * @param {string[]} rules\n * @param {number[]} points\n * @param {string} type\n * @param {string[]} props\n * @param {string[]} children\n * @param {number} length\n * @param {object[]} siblings\n * @return {object}\n */\nexport function ruleset (value, root, parent, index, offset, rules, points, type, props, children, length, siblings) {\n\tvar post = offset - 1\n\tvar rule = offset === 0 ? rules : ['']\n\tvar size = sizeof(rule)\n\n\tfor (var i = 0, j = 0, k = 0; i < index; ++i)\n\t\tfor (var x = 0, y = substr(value, post + 1, post = abs(j = points[i])), z = value; x < size; ++x)\n\t\t\tif (z = trim(j > 0 ? rule[x] + ' ' + y : replace(y, /&\\f/g, rule[x])))\n\t\t\t\tprops[k++] = z\n\n\treturn node(value, root, parent, offset === 0 ? RULESET : type, props, children, length, siblings)\n}\n\n/**\n * @param {number} value\n * @param {object} root\n * @param {object?} parent\n * @param {object[]} siblings\n * @return {object}\n */\nexport function comment (value, root, parent, siblings) {\n\treturn node(value, root, parent, COMMENT, from(char()), substr(value, 2, -2), 0, siblings)\n}\n\n/**\n * @param {string} value\n * @param {object} root\n * @param {object?} parent\n * @param {number} length\n * @param {object[]} siblings\n * @return {object}\n */\nexport function declaration (value, root, parent, length, siblings) {\n\treturn node(value, root, parent, DECLARATION, substr(value, 0, length), substr(value, length + 1, -1), length, siblings)\n}\n"],"names":["compile","value","dealloc","parse","alloc","root","parent","rule","rules","rulesets","pseudo","points","declarations","index","offset","length","atrule","property","previous","variable","scanning","ampersand","character","type","props","children","reference","characters","next","charat","indexof","replace","delimit","abs","whitespace","escaping","caret","peek","append","comment","commenter","token","strlen","substr","declaration","ruleset","prev","from","identifier","siblings","post","size","sizeof","j","k","x","y","z","trim","node","RULESET","COMMENT","char","DECLARATION"],"mappings":";;;AAQO,SAASA,GAASC,GAAO;AAC/B,SAAOC,EAAQC,EAAM,IAAI,MAAM,MAAM,MAAM,CAAC,EAAE,GAAGF,IAAQG,EAAMH,CAAK,GAAG,GAAG,CAAC,CAAC,GAAGA,CAAK,CAAC;AACtF;AAcO,SAASE,EAAOF,GAAOI,GAAMC,GAAQC,GAAMC,GAAOC,GAAUC,GAAQC,GAAQC,GAAc;AAiBhG,WAhBIC,IAAQ,GACRC,IAAS,GACTC,IAASL,GACTM,IAAS,GACTC,IAAW,GACXC,IAAW,GACXC,IAAW,GACXC,IAAW,GACXC,IAAY,GACZC,IAAY,GACZC,IAAO,IACPC,IAAQhB,GACRiB,IAAWhB,GACXiB,IAAYnB,GACZoB,IAAaJ,GAEVH;AACN,YAAQF,IAAWI,GAAWA,IAAYM,EAAM,GAAA;AAAA,MAE/C,KAAK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B,EAAQyB,GAAG,QAAQjD,EAAKgD,CAAC,CAAC,CAAC,OACnE/B,EAAM8B,GAAG,IAAIG;AAEhB,SAAOE,EAAK1D,GAAOI,GAAMC,GAAQQ,MAAW,IAAI8C,IAAUrC,GAAMC,GAAOC,GAAUV,GAAQkC,CAAQ;AAClG;AASO,SAASV,GAAStC,GAAOI,GAAMC,GAAQ2C,GAAU;AACvD,SAAOU,EAAK1D,GAAOI,GAAMC,GAAQuD,GAASd,EAAKe,EAAI,CAAE,GAAGnB,EAAO1C,GAAO,GAAG,EAAE,GAAG,GAAGgD,CAAQ;AAC1F;AAUO,SAASL,EAAa3C,GAAOI,GAAMC,GAAQS,GAAQkC,GAAU;AACnE,SAAOU,EAAK1D,GAAOI,GAAMC,GAAQyD,GAAapB,EAAO1C,GAAO,GAAGc,CAAM,GAAG4B,EAAO1C,GAAOc,IAAS,GAAG,EAAE,GAAGA,GAAQkC,CAAQ;AACxH;","x_google_ignoreList":[0]}
|
@@ -1,151 +0,0 @@
|
|
1
|
-
import { MS as e, WEBKIT as c, MOZ as $ } from "./Enum.js";
|
2
|
-
import { hash as d, replace as r, charat as i, strlen as g, indexof as p, match as o, substr as z } from "./Utility.js";
|
3
|
-
function M(s, t, n) {
|
4
|
-
switch (d(s, t)) {
|
5
|
-
case 5103:
|
6
|
-
return c + "print-" + s + s;
|
7
|
-
case 5737:
|
8
|
-
case 4201:
|
9
|
-
case 3177:
|
10
|
-
case 3433:
|
11
|
-
case 1641:
|
12
|
-
case 4457:
|
13
|
-
case 2921:
|
14
|
-
case 5572:
|
15
|
-
case 6356:
|
16
|
-
case 5844:
|
17
|
-
case 3191:
|
18
|
-
case 6645:
|
19
|
-
case 3005:
|
20
|
-
case 4215:
|
21
|
-
case 6389:
|
22
|
-
case 5109:
|
23
|
-
case 5365:
|
24
|
-
case 5621:
|
25
|
-
case 3829:
|
26
|
-
case 6391:
|
27
|
-
case 5879:
|
28
|
-
case 5623:
|
29
|
-
case 6135:
|
30
|
-
case 4599:
|
31
|
-
return c + s + s;
|
32
|
-
case 4855:
|
33
|
-
return c + s.replace("add", "source-over").replace("substract", "source-out").replace("intersect", "source-in").replace("exclude", "xor") + s;
|
34
|
-
case 4789:
|
35
|
-
return $ + s + s;
|
36
|
-
case 5349:
|
37
|
-
case 4246:
|
38
|
-
case 4810:
|
39
|
-
case 6968:
|
40
|
-
case 2756:
|
41
|
-
return c + s + $ + s + e + s + s;
|
42
|
-
case 5936:
|
43
|
-
switch (i(s, t + 11)) {
|
44
|
-
case 114:
|
45
|
-
return c + s + e + r(s, /[svh]\w+-[tblr]{2}/, "tb") + s;
|
46
|
-
case 108:
|
47
|
-
return c + s + e + r(s, /[svh]\w+-[tblr]{2}/, "tb-rl") + s;
|
48
|
-
case 45:
|
49
|
-
return c + s + e + r(s, /[svh]\w+-[tblr]{2}/, "lr") + s;
|
50
|
-
}
|
51
|
-
case 6828:
|
52
|
-
case 4268:
|
53
|
-
case 2903:
|
54
|
-
return c + s + e + s + s;
|
55
|
-
case 6165:
|
56
|
-
return c + s + e + "flex-" + s + s;
|
57
|
-
case 5187:
|
58
|
-
return c + s + r(s, /(\w+).+(:[^]+)/, c + "box-$1$2" + e + "flex-$1$2") + s;
|
59
|
-
case 5443:
|
60
|
-
return c + s + e + "flex-item-" + r(s, /flex-|-self/g, "") + (o(s, /flex-|baseline/) ? "" : e + "grid-row-" + r(s, /flex-|-self/g, "")) + s;
|
61
|
-
case 4675:
|
62
|
-
return c + s + e + "flex-line-pack" + r(s, /align-content|flex-|-self/g, "") + s;
|
63
|
-
case 5548:
|
64
|
-
return c + s + e + r(s, "shrink", "negative") + s;
|
65
|
-
case 5292:
|
66
|
-
return c + s + e + r(s, "basis", "preferred-size") + s;
|
67
|
-
case 6060:
|
68
|
-
return c + "box-" + r(s, "-grow", "") + c + s + e + r(s, "grow", "positive") + s;
|
69
|
-
case 4554:
|
70
|
-
return c + r(s, /([^-])(transform)/g, "$1" + c + "$2") + s;
|
71
|
-
case 6187:
|
72
|
-
return r(r(r(s, /(zoom-|grab)/, c + "$1"), /(image-set)/, c + "$1"), s, "") + s;
|
73
|
-
case 5495:
|
74
|
-
case 3959:
|
75
|
-
return r(s, /(image-set\([^]*)/, c + "$1$`$1");
|
76
|
-
case 4968:
|
77
|
-
return r(r(s, /(.+:)(flex-)?(.*)/, c + "box-pack:$3" + e + "flex-pack:$3"), /space-between/, "justify") + c + s + s;
|
78
|
-
case 4200:
|
79
|
-
if (!o(s, /flex-|baseline/)) return e + "grid-column-align" + z(s, t) + s;
|
80
|
-
break;
|
81
|
-
case 2592:
|
82
|
-
case 3360:
|
83
|
-
return e + r(s, "template-", "") + s;
|
84
|
-
case 4384:
|
85
|
-
case 3616:
|
86
|
-
return n && n.some(function(a, f) {
|
87
|
-
return t = f, o(a.props, /grid-\w+-end/);
|
88
|
-
}) ? ~p(s + (n = n[t].value), "span", 0) ? s : e + r(s, "-start", "") + s + e + "grid-row-span:" + (~p(n, "span", 0) ? o(n, /\d+/) : +o(n, /\d+/) - +o(s, /\d+/)) + ";" : e + r(s, "-start", "") + s;
|
89
|
-
case 4896:
|
90
|
-
case 4128:
|
91
|
-
return n && n.some(function(a) {
|
92
|
-
return o(a.props, /grid-\w+-start/);
|
93
|
-
}) ? s : e + r(r(s, "-end", "-span"), "span ", "") + s;
|
94
|
-
case 4095:
|
95
|
-
case 3583:
|
96
|
-
case 4068:
|
97
|
-
case 2532:
|
98
|
-
return r(s, /(.+)-inline(.+)/, c + "$1$2") + s;
|
99
|
-
case 8116:
|
100
|
-
case 7059:
|
101
|
-
case 5753:
|
102
|
-
case 5535:
|
103
|
-
case 5445:
|
104
|
-
case 5701:
|
105
|
-
case 4933:
|
106
|
-
case 4677:
|
107
|
-
case 5533:
|
108
|
-
case 5789:
|
109
|
-
case 5021:
|
110
|
-
case 4765:
|
111
|
-
if (g(s) - 1 - t > 6)
|
112
|
-
switch (i(s, t + 1)) {
|
113
|
-
case 109:
|
114
|
-
if (i(s, t + 4) !== 45)
|
115
|
-
break;
|
116
|
-
case 102:
|
117
|
-
return r(s, /(.+:)(.+)-([^]+)/, "$1" + c + "$2-$3$1" + $ + (i(s, t + 3) == 108 ? "$3" : "$2-$3")) + s;
|
118
|
-
case 115:
|
119
|
-
return ~p(s, "stretch", 0) ? M(r(s, "stretch", "fill-available"), t, n) + s : s;
|
120
|
-
}
|
121
|
-
break;
|
122
|
-
case 5152:
|
123
|
-
case 5920:
|
124
|
-
return r(s, /(.+?):(\d+)(\s*\/\s*(span)?\s*(\d+))?(.*)/, function(a, f, b, m, k, x, w) {
|
125
|
-
return e + f + ":" + b + w + (m ? e + f + "-span:" + (k ? x : +x - +b) + w : "") + s;
|
126
|
-
});
|
127
|
-
case 4949:
|
128
|
-
if (i(s, t + 6) === 121)
|
129
|
-
return r(s, ":", ":" + c) + s;
|
130
|
-
break;
|
131
|
-
case 6444:
|
132
|
-
switch (i(s, i(s, 14) === 45 ? 18 : 11)) {
|
133
|
-
case 120:
|
134
|
-
return r(s, /(.+:)([^;\s!]+)(;|(\s+)?!.+)?/, "$1" + c + (i(s, 14) === 45 ? "inline-" : "") + "box$3$1" + c + "$2$3$1" + e + "$2box$3") + s;
|
135
|
-
case 100:
|
136
|
-
return r(s, ":", ":" + e) + s;
|
137
|
-
}
|
138
|
-
break;
|
139
|
-
case 5719:
|
140
|
-
case 2647:
|
141
|
-
case 2135:
|
142
|
-
case 3927:
|
143
|
-
case 2391:
|
144
|
-
return r(s, "scroll-", "scroll-snap-") + s;
|
145
|
-
}
|
146
|
-
return s;
|
147
|
-
}
|
148
|
-
export {
|
149
|
-
M as prefix
|
150
|
-
};
|
151
|
-
//# sourceMappingURL=Prefixer.js.map
|
@@ -1 +0,0 @@
|
|
1
|
-
{"version":3,"file":"Prefixer.js","sources":["../../../../node_modules/stylis/src/Prefixer.js"],"sourcesContent":["import {MS, MOZ, WEBKIT} from './Enum.js'\nimport {hash, charat, strlen, indexof, replace, substr, match} from './Utility.js'\n\n/**\n * @param {string} value\n * @param {number} length\n * @param {object[]} children\n * @return {string}\n */\nexport function prefix (value, length, children) {\n\tswitch (hash(value, length)) {\n\t\t// color-adjust\n\t\tcase 5103:\n\t\t\treturn WEBKIT + 'print-' + value + value\n\t\t// animation, animation-(delay|direction|duration|fill-mode|iteration-count|name|play-state|timing-function)\n\t\tcase 5737: case 4201: case 3177: case 3433: case 1641: case 4457: case 2921:\n\t\t// text-decoration, filter, clip-path, backface-visibility, column, box-decoration-break\n\t\tcase 5572: case 6356: case 5844: case 3191: case 6645: case 3005:\n\t\t// background-clip, columns, column-(count|fill|gap|rule|rule-color|rule-style|rule-width|span|width)\n\t\tcase 4215: case 6389: case 5109: case 5365: case 5621: case 3829:\n\t\t// mask, mask-image, mask-(mode|clip|size), mask-(repeat|origin), mask-position\n\t\tcase 6391: case 5879: case 5623: case 6135: case 4599:\n\t\t\treturn WEBKIT + value + value\n\t\t// mask-composite\n\t\tcase 4855:\n\t\t\treturn WEBKIT + value.replace('add', 'source-over').replace('substract', 'source-out').replace('intersect', 'source-in').replace('exclude', 'xor') + value\n\t\t// tab-size\n\t\tcase 4789:\n\t\t\treturn MOZ + value + value\n\t\t// appearance, user-select, transform, hyphens, text-size-adjust\n\t\tcase 5349: case 4246: case 4810: case 6968: case 2756:\n\t\t\treturn WEBKIT + value + MOZ + value + MS + value + value\n\t\t// writing-mode\n\t\tcase 5936:\n\t\t\tswitch (charat(value, length + 11)) {\n\t\t\t\t// vertical-l(r)\n\t\t\t\tcase 114:\n\t\t\t\t\treturn WEBKIT + value + MS + replace(value, /[svh]\\w+-[tblr]{2}/, 'tb') + value\n\t\t\t\t// vertical-r(l)\n\t\t\t\tcase 108:\n\t\t\t\t\treturn WEBKIT + value + MS + replace(value, /[svh]\\w+-[tblr]{2}/, 'tb-rl') + value\n\t\t\t\t// horizontal(-)tb\n\t\t\t\tcase 45:\n\t\t\t\t\treturn WEBKIT + value + MS + replace(value, /[svh]\\w+-[tblr]{2}/, 'lr') + value\n\t\t\t\t// default: fallthrough to below\n\t\t\t}\n\t\t// flex, flex-direction, scroll-snap-type, writing-mode\n\t\tcase 6828: case 4268: case 2903:\n\t\t\treturn WEBKIT + value + MS + value + value\n\t\t// order\n\t\tcase 6165:\n\t\t\treturn WEBKIT + value + MS + 'flex-' + value + value\n\t\t// align-items\n\t\tcase 5187:\n\t\t\treturn WEBKIT + value + replace(value, /(\\w+).+(:[^]+)/, WEBKIT + 'box-$1$2' + MS + 'flex-$1$2') + value\n\t\t// align-self\n\t\tcase 5443:\n\t\t\treturn WEBKIT + value + MS + 'flex-item-' + replace(value, /flex-|-self/g, '') + (!match(value, /flex-|baseline/) ? MS + 'grid-row-' + replace(value, /flex-|-self/g, '') : '') + value\n\t\t// align-content\n\t\tcase 4675:\n\t\t\treturn WEBKIT + value + MS + 'flex-line-pack' + replace(value, /align-content|flex-|-self/g, '') + value\n\t\t// flex-shrink\n\t\tcase 5548:\n\t\t\treturn WEBKIT + value + MS + replace(value, 'shrink', 'negative') + value\n\t\t// flex-basis\n\t\tcase 5292:\n\t\t\treturn WEBKIT + value + MS + replace(value, 'basis', 'preferred-size') + value\n\t\t// flex-grow\n\t\tcase 6060:\n\t\t\treturn WEBKIT + 'box-' + replace(value, '-grow', '') + WEBKIT + value + MS + replace(value, 'grow', 'positive') + value\n\t\t// transition\n\t\tcase 4554:\n\t\t\treturn WEBKIT + replace(value, /([^-])(transform)/g, '$1' + WEBKIT + '$2') + value\n\t\t// cursor\n\t\tcase 6187:\n\t\t\treturn replace(replace(replace(value, /(zoom-|grab)/, WEBKIT + '$1'), /(image-set)/, WEBKIT + '$1'), value, '') + value\n\t\t// background, background-image\n\t\tcase 5495: case 3959:\n\t\t\treturn replace(value, /(image-set\\([^]*)/, WEBKIT + '$1' + '$`$1')\n\t\t// justify-content\n\t\tcase 4968:\n\t\t\treturn replace(replace(value, /(.+:)(flex-)?(.*)/, WEBKIT + 'box-pack:$3' + MS + 'flex-pack:$3'), /space-between/, 'justify') + WEBKIT + value + value\n\t\t// justify-self\n\t\tcase 4200:\n\t\t\tif (!match(value, /flex-|baseline/)) return MS + 'grid-column-align' + substr(value, length) + value\n\t\t\tbreak\n\t\t// grid-template-(columns|rows)\n\t\tcase 2592: case 3360:\n\t\t\treturn MS + replace(value, 'template-', '') + value\n\t\t// grid-(row|column)-start\n\t\tcase 4384: case 3616:\n\t\t\tif (children && children.some(function (element, index) { return length = index, match(element.props, /grid-\\w+-end/) })) {\n\t\t\t\treturn ~indexof(value + (children = children[length].value), 'span', 0) ? value : (MS + replace(value, '-start', '') + value + MS + 'grid-row-span:' + (~indexof(children, 'span', 0) ? match(children, /\\d+/) : +match(children, /\\d+/) - +match(value, /\\d+/)) + ';')\n\t\t\t}\n\t\t\treturn MS + replace(value, '-start', '') + value\n\t\t// grid-(row|column)-end\n\t\tcase 4896: case 4128:\n\t\t\treturn (children && children.some(function (element) { return match(element.props, /grid-\\w+-start/) })) ? value : MS + replace(replace(value, '-end', '-span'), 'span ', '') + value\n\t\t// (margin|padding)-inline-(start|end)\n\t\tcase 4095: case 3583: case 4068: case 2532:\n\t\t\treturn replace(value, /(.+)-inline(.+)/, WEBKIT + '$1$2') + value\n\t\t// (min|max)?(width|height|inline-size|block-size)\n\t\tcase 8116: case 7059: case 5753: case 5535:\n\t\tcase 5445: case 5701: case 4933: case 4677:\n\t\tcase 5533: case 5789: case 5021: case 4765:\n\t\t\t// stretch, max-content, min-content, fill-available\n\t\t\tif (strlen(value) - 1 - length > 6)\n\t\t\t\tswitch (charat(value, length + 1)) {\n\t\t\t\t\t// (m)ax-content, (m)in-content\n\t\t\t\t\tcase 109:\n\t\t\t\t\t\t// -\n\t\t\t\t\t\tif (charat(value, length + 4) !== 45)\n\t\t\t\t\t\t\tbreak\n\t\t\t\t\t// (f)ill-available, (f)it-content\n\t\t\t\t\tcase 102:\n\t\t\t\t\t\treturn replace(value, /(.+:)(.+)-([^]+)/, '$1' + WEBKIT + '$2-$3' + '$1' + MOZ + (charat(value, length + 3) == 108 ? '$3' : '$2-$3')) + value\n\t\t\t\t\t// (s)tretch\n\t\t\t\t\tcase 115:\n\t\t\t\t\t\treturn ~indexof(value, 'stretch', 0) ? prefix(replace(value, 'stretch', 'fill-available'), length, children) + value : value\n\t\t\t\t}\n\t\t\tbreak\n\t\t// grid-(column|row)\n\t\tcase 5152: case 5920:\n\t\t\treturn replace(value, /(.+?):(\\d+)(\\s*\\/\\s*(span)?\\s*(\\d+))?(.*)/, function (_, a, b, c, d, e, f) { return (MS + a + ':' + b + f) + (c ? (MS + a + '-span:' + (d ? e : +e - +b)) + f : '') + value })\n\t\t// position: sticky\n\t\tcase 4949:\n\t\t\t// stick(y)?\n\t\t\tif (charat(value, length + 6) === 121)\n\t\t\t\treturn replace(value, ':', ':' + WEBKIT) + value\n\t\t\tbreak\n\t\t// display: (flex|inline-flex|grid|inline-grid)\n\t\tcase 6444:\n\t\t\tswitch (charat(value, charat(value, 14) === 45 ? 18 : 11)) {\n\t\t\t\t// (inline-)?fle(x)\n\t\t\t\tcase 120:\n\t\t\t\t\treturn replace(value, /(.+:)([^;\\s!]+)(;|(\\s+)?!.+)?/, '$1' + WEBKIT + (charat(value, 14) === 45 ? 'inline-' : '') + 'box$3' + '$1' + WEBKIT + '$2$3' + '$1' + MS + '$2box$3') + value\n\t\t\t\t// (inline-)?gri(d)\n\t\t\t\tcase 100:\n\t\t\t\t\treturn replace(value, ':', ':' + MS) + value\n\t\t\t}\n\t\t\tbreak\n\t\t// scroll-margin, scroll-margin-(top|right|bottom|left)\n\t\tcase 5719: case 2647: case 2135: case 3927: case 2391:\n\t\t\treturn replace(value, 'scroll-', 'scroll-snap-') + value\n\t}\n\n\treturn value\n}\n"],"names":["prefix","value","length","children","hash","WEBKIT","MOZ","MS","charat","replace","match","substr","element","index","indexof","strlen","_","a","c","d","e","f"],"mappings":";;AASO,SAASA,EAAQC,GAAOC,GAAQC,GAAU;AAChD,UAAQC,EAAKH,GAAOC,CAAM,GAAC;AAAA,IAE1B,KAAK;AACJ,aAAOG,IAAS,WAAWJ,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,IAAM,KAAK;AAAA,IAAM,KAAK;AAAA,IAAM,KAAK;AAAA,IAAM,KAAK;AAChD,aAAOQ,EAAQR,GAAO,WAAW,cAAc,IAAIA;AAAA,EACpD;AAED,SAAOA;AACR;","x_google_ignoreList":[0]}
|
@@ -1,28 +0,0 @@
|
|
1
|
-
import { RULESET as i, KEYFRAMES as f, COMMENT as n, DECLARATION as p, IMPORT as E, LAYER as v } from "./Enum.js";
|
2
|
-
import { strlen as t } from "./Utility.js";
|
3
|
-
function a(r, s) {
|
4
|
-
for (var o = "", u = 0; u < r.length; u++)
|
5
|
-
o += s(r[u], u, r, s) || "";
|
6
|
-
return o;
|
7
|
-
}
|
8
|
-
function A(r, s, o, u) {
|
9
|
-
switch (r.type) {
|
10
|
-
case v:
|
11
|
-
if (r.children.length) break;
|
12
|
-
case E:
|
13
|
-
case p:
|
14
|
-
return r.return = r.return || r.value;
|
15
|
-
case n:
|
16
|
-
return "";
|
17
|
-
case f:
|
18
|
-
return r.return = r.value + "{" + a(r.children, u) + "}";
|
19
|
-
case i:
|
20
|
-
if (!t(r.value = r.props.join(","))) return "";
|
21
|
-
}
|
22
|
-
return t(o = a(r.children, u)) ? r.return = r.value + "{" + o + "}" : "";
|
23
|
-
}
|
24
|
-
export {
|
25
|
-
a as serialize,
|
26
|
-
A as stringify
|
27
|
-
};
|
28
|
-
//# sourceMappingURL=Serializer.js.map
|
@@ -1 +0,0 @@
|
|
1
|
-
{"version":3,"file":"Serializer.js","sources":["../../../../node_modules/stylis/src/Serializer.js"],"sourcesContent":["import {IMPORT, LAYER, COMMENT, RULESET, DECLARATION, KEYFRAMES} from './Enum.js'\nimport {strlen} from './Utility.js'\n\n/**\n * @param {object[]} children\n * @param {function} callback\n * @return {string}\n */\nexport function serialize (children, callback) {\n\tvar output = ''\n\n\tfor (var i = 0; i < children.length; i++)\n\t\toutput += callback(children[i], i, children, callback) || ''\n\n\treturn output\n}\n\n/**\n * @param {object} element\n * @param {number} index\n * @param {object[]} children\n * @param {function} callback\n * @return {string}\n */\nexport function stringify (element, index, children, callback) {\n\tswitch (element.type) {\n\t\tcase LAYER: if (element.children.length) break\n\t\tcase IMPORT: case DECLARATION: return element.return = element.return || element.value\n\t\tcase COMMENT: return ''\n\t\tcase KEYFRAMES: return element.return = element.value + '{' + serialize(element.children, callback) + '}'\n\t\tcase RULESET: if (!strlen(element.value = element.props.join(','))) return ''\n\t}\n\n\treturn strlen(children = serialize(element.children, callback)) ? element.return = element.value + '{' + children + '}' : ''\n}\n"],"names":["serialize","children","callback","output","i","stringify","element","index","LAYER","IMPORT","DECLARATION","COMMENT","KEYFRAMES","RULESET","strlen"],"mappings":";;AAQO,SAASA,EAAWC,GAAUC,GAAU;AAG9C,WAFIC,IAAS,IAEJC,IAAI,GAAGA,IAAIH,EAAS,QAAQG;AACpC,IAAAD,KAAUD,EAASD,EAASG,CAAC,GAAGA,GAAGH,GAAUC,CAAQ,KAAK;AAE3D,SAAOC;AACR;AASO,SAASE,EAAWC,GAASC,GAAON,GAAUC,GAAU;AAC9D,UAAQI,EAAQ,MAAI;AAAA,IACnB,KAAKE;AAAO,UAAIF,EAAQ,SAAS,OAAQ;AAAA,IACzC,KAAKG;AAAA,IAAQ,KAAKC;AAAa,aAAOJ,EAAQ,SAASA,EAAQ,UAAUA,EAAQ;AAAA,IACjF,KAAKK;AAAS,aAAO;AAAA,IACrB,KAAKC;AAAW,aAAON,EAAQ,SAASA,EAAQ,QAAQ,MAAMN,EAAUM,EAAQ,UAAUJ,CAAQ,IAAI;AAAA,IACtG,KAAKW;AAAS,UAAI,CAACC,EAAOR,EAAQ,QAAQA,EAAQ,MAAM,KAAK,GAAG,CAAC,EAAG,QAAO;AAAA,EAC3E;AAED,SAAOQ,EAAOb,IAAWD,EAAUM,EAAQ,UAAUJ,CAAQ,CAAC,IAAII,EAAQ,SAASA,EAAQ,QAAQ,MAAML,IAAW,MAAM;AAC3H;","x_google_ignoreList":[0]}
|
@@ -1,138 +0,0 @@
|
|
1
|
-
import { assign as p, append as x, charat as h, strlen as j, trim as q, from as z, substr as A } from "./Utility.js";
|
2
|
-
var u = 1, a = 1, b = 0, r = 0, n = 0, t = "";
|
3
|
-
function B(e, c, m, g, k, w, d, v) {
|
4
|
-
return { value: e, root: c, parent: m, type: g, props: k, children: w, line: u, column: a, length: d, return: "", siblings: v };
|
5
|
-
}
|
6
|
-
function C(e, c) {
|
7
|
-
return p(B("", null, null, "", null, null, 0, e.siblings), e, { length: -e.length }, c);
|
8
|
-
}
|
9
|
-
function F(e) {
|
10
|
-
for (; e.root; )
|
11
|
-
e = C(e.root, { children: [e] });
|
12
|
-
x(e, e.siblings);
|
13
|
-
}
|
14
|
-
function G() {
|
15
|
-
return n;
|
16
|
-
}
|
17
|
-
function H() {
|
18
|
-
return n = r > 0 ? h(t, --r) : 0, a--, n === 10 && (a = 1, u--), n;
|
19
|
-
}
|
20
|
-
function i() {
|
21
|
-
return n = r < b ? h(t, r++) : 0, a++, n === 10 && (a = 1, u++), n;
|
22
|
-
}
|
23
|
-
function s() {
|
24
|
-
return h(t, r);
|
25
|
-
}
|
26
|
-
function D() {
|
27
|
-
return r;
|
28
|
-
}
|
29
|
-
function l(e, c) {
|
30
|
-
return A(t, e, c);
|
31
|
-
}
|
32
|
-
function f(e) {
|
33
|
-
switch (e) {
|
34
|
-
case 0:
|
35
|
-
case 9:
|
36
|
-
case 10:
|
37
|
-
case 13:
|
38
|
-
case 32:
|
39
|
-
return 5;
|
40
|
-
case 33:
|
41
|
-
case 43:
|
42
|
-
case 44:
|
43
|
-
case 47:
|
44
|
-
case 62:
|
45
|
-
case 64:
|
46
|
-
case 126:
|
47
|
-
case 59:
|
48
|
-
case 123:
|
49
|
-
case 125:
|
50
|
-
return 4;
|
51
|
-
case 58:
|
52
|
-
return 3;
|
53
|
-
case 34:
|
54
|
-
case 39:
|
55
|
-
case 40:
|
56
|
-
case 91:
|
57
|
-
return 2;
|
58
|
-
case 41:
|
59
|
-
case 93:
|
60
|
-
return 1;
|
61
|
-
}
|
62
|
-
return 0;
|
63
|
-
}
|
64
|
-
function I(e) {
|
65
|
-
return u = a = 1, b = j(t = e), r = 0, [];
|
66
|
-
}
|
67
|
-
function J(e) {
|
68
|
-
return t = "", e;
|
69
|
-
}
|
70
|
-
function K(e) {
|
71
|
-
return q(l(r - 1, o(e === 91 ? e + 2 : e === 40 ? e + 1 : e)));
|
72
|
-
}
|
73
|
-
function L(e) {
|
74
|
-
for (; (n = s()) && n < 33; )
|
75
|
-
i();
|
76
|
-
return f(e) > 2 || f(n) > 3 ? "" : " ";
|
77
|
-
}
|
78
|
-
function M(e, c) {
|
79
|
-
for (; --c && i() && !(n < 48 || n > 102 || n > 57 && n < 65 || n > 70 && n < 97); )
|
80
|
-
;
|
81
|
-
return l(e, D() + (c < 6 && s() == 32 && i() == 32));
|
82
|
-
}
|
83
|
-
function o(e) {
|
84
|
-
for (; i(); )
|
85
|
-
switch (n) {
|
86
|
-
case e:
|
87
|
-
return r;
|
88
|
-
case 34:
|
89
|
-
case 39:
|
90
|
-
e !== 34 && e !== 39 && o(n);
|
91
|
-
break;
|
92
|
-
case 40:
|
93
|
-
e === 41 && o(e);
|
94
|
-
break;
|
95
|
-
case 92:
|
96
|
-
i();
|
97
|
-
break;
|
98
|
-
}
|
99
|
-
return r;
|
100
|
-
}
|
101
|
-
function N(e, c) {
|
102
|
-
for (; i() && e + n !== 57; )
|
103
|
-
if (e + n === 84 && s() === 47)
|
104
|
-
break;
|
105
|
-
return "/*" + l(c, r - 1) + "*" + z(e === 47 ? e : i());
|
106
|
-
}
|
107
|
-
function O(e) {
|
108
|
-
for (; !f(s()); )
|
109
|
-
i();
|
110
|
-
return l(e, r);
|
111
|
-
}
|
112
|
-
export {
|
113
|
-
I as alloc,
|
114
|
-
D as caret,
|
115
|
-
G as char,
|
116
|
-
n as character,
|
117
|
-
t as characters,
|
118
|
-
a as column,
|
119
|
-
N as commenter,
|
120
|
-
C as copy,
|
121
|
-
J as dealloc,
|
122
|
-
K as delimit,
|
123
|
-
o as delimiter,
|
124
|
-
M as escaping,
|
125
|
-
O as identifier,
|
126
|
-
b as length,
|
127
|
-
F as lift,
|
128
|
-
u as line,
|
129
|
-
i as next,
|
130
|
-
B as node,
|
131
|
-
s as peek,
|
132
|
-
r as position,
|
133
|
-
H as prev,
|
134
|
-
l as slice,
|
135
|
-
f as token,
|
136
|
-
L as whitespace
|
137
|
-
};
|
138
|
-
//# sourceMappingURL=Tokenizer.js.map
|
@@ -1 +0,0 @@
|
|
1
|
-
{"version":3,"file":"Tokenizer.js","sources":["../../../../node_modules/stylis/src/Tokenizer.js"],"sourcesContent":["import {from, trim, charat, strlen, substr, append, assign} from './Utility.js'\n\nexport var line = 1\nexport var column = 1\nexport var length = 0\nexport var position = 0\nexport var character = 0\nexport var characters = ''\n\n/**\n * @param {string} value\n * @param {object | null} root\n * @param {object | null} parent\n * @param {string} type\n * @param {string[] | string} props\n * @param {object[] | string} children\n * @param {object[]} siblings\n * @param {number} length\n */\nexport function node (value, root, parent, type, props, children, length, siblings) {\n\treturn {value: value, root: root, parent: parent, type: type, props: props, children: children, line: line, column: column, length: length, return: '', siblings: siblings}\n}\n\n/**\n * @param {object} root\n * @param {object} props\n * @return {object}\n */\nexport function copy (root, props) {\n\treturn assign(node('', null, null, '', null, null, 0, root.siblings), root, {length: -root.length}, props)\n}\n\n/**\n * @param {object} root\n */\nexport function lift (root) {\n\twhile (root.root)\n\t\troot = copy(root.root, {children: [root]})\n\n\tappend(root, root.siblings)\n}\n\n/**\n * @return {number}\n */\nexport function char () {\n\treturn character\n}\n\n/**\n * @return {number}\n */\nexport function prev () {\n\tcharacter = position > 0 ? charat(characters, --position) : 0\n\n\tif (column--, character === 10)\n\t\tcolumn = 1, line--\n\n\treturn character\n}\n\n/**\n * @return {number}\n */\nexport function next () {\n\tcharacter = position < length ? charat(characters, position++) : 0\n\n\tif (column++, character === 10)\n\t\tcolumn = 1, line++\n\n\treturn character\n}\n\n/**\n * @return {number}\n */\nexport function peek () {\n\treturn charat(characters, position)\n}\n\n/**\n * @return {number}\n */\nexport function caret () {\n\treturn position\n}\n\n/**\n * @param {number} begin\n * @param {number} end\n * @return {string}\n */\nexport function slice (begin, end) {\n\treturn substr(characters, begin, end)\n}\n\n/**\n * @param {number} type\n * @return {number}\n */\nexport function token (type) {\n\tswitch (type) {\n\t\t// \\0 \\t \\n \\r \\s whitespace token\n\t\tcase 0: case 9: case 10: case 13: case 32:\n\t\t\treturn 5\n\t\t// ! + , / > @ ~ isolate token\n\t\tcase 33: case 43: case 44: case 47: case 62: case 64: case 126:\n\t\t// ; { } breakpoint token\n\t\tcase 59: case 123: case 125:\n\t\t\treturn 4\n\t\t// : accompanied token\n\t\tcase 58:\n\t\t\treturn 3\n\t\t// \" ' ( [ opening delimit token\n\t\tcase 34: case 39: case 40: case 91:\n\t\t\treturn 2\n\t\t// ) ] closing delimit token\n\t\tcase 41: case 93:\n\t\t\treturn 1\n\t}\n\n\treturn 0\n}\n\n/**\n * @param {string} value\n * @return {any[]}\n */\nexport function alloc (value) {\n\treturn line = column = 1, length = strlen(characters = value), position = 0, []\n}\n\n/**\n * @param {any} value\n * @return {any}\n */\nexport function dealloc (value) {\n\treturn characters = '', value\n}\n\n/**\n * @param {number} type\n * @return {string}\n */\nexport function delimit (type) {\n\treturn trim(slice(position - 1, delimiter(type === 91 ? type + 2 : type === 40 ? type + 1 : type)))\n}\n\n/**\n * @param {string} value\n * @return {string[]}\n */\nexport function tokenize (value) {\n\treturn dealloc(tokenizer(alloc(value)))\n}\n\n/**\n * @param {number} type\n * @return {string}\n */\nexport function whitespace (type) {\n\twhile (character = peek())\n\t\tif (character < 33)\n\t\t\tnext()\n\t\telse\n\t\t\tbreak\n\n\treturn token(type) > 2 || token(character) > 3 ? '' : ' '\n}\n\n/**\n * @param {string[]} children\n * @return {string[]}\n */\nexport function tokenizer (children) {\n\twhile (next())\n\t\tswitch (token(character)) {\n\t\t\tcase 0: append(identifier(position - 1), children)\n\t\t\t\tbreak\n\t\t\tcase 2: append(delimit(character), children)\n\t\t\t\tbreak\n\t\t\tdefault: append(from(character), children)\n\t\t}\n\n\treturn children\n}\n\n/**\n * @param {number} index\n * @param {number} count\n * @return {string}\n */\nexport function escaping (index, count) {\n\twhile (--count && next())\n\t\t// not 0-9 A-F a-f\n\t\tif (character < 48 || character > 102 || (character > 57 && character < 65) || (character > 70 && character < 97))\n\t\t\tbreak\n\n\treturn slice(index, caret() + (count < 6 && peek() == 32 && next() == 32))\n}\n\n/**\n * @param {number} type\n * @return {number}\n */\nexport function delimiter (type) {\n\twhile (next())\n\t\tswitch (character) {\n\t\t\t// ] ) \" '\n\t\t\tcase type:\n\t\t\t\treturn position\n\t\t\t// \" '\n\t\t\tcase 34: case 39:\n\t\t\t\tif (type !== 34 && type !== 39)\n\t\t\t\t\tdelimiter(character)\n\t\t\t\tbreak\n\t\t\t// (\n\t\t\tcase 40:\n\t\t\t\tif (type === 41)\n\t\t\t\t\tdelimiter(type)\n\t\t\t\tbreak\n\t\t\t// \\\n\t\t\tcase 92:\n\t\t\t\tnext()\n\t\t\t\tbreak\n\t\t}\n\n\treturn position\n}\n\n/**\n * @param {number} type\n * @param {number} index\n * @return {number}\n */\nexport function commenter (type, index) {\n\twhile (next())\n\t\t// //\n\t\tif (type + character === 47 + 10)\n\t\t\tbreak\n\t\t// /*\n\t\telse if (type + character === 42 + 42 && peek() === 47)\n\t\t\tbreak\n\n\treturn '/*' + slice(index, position - 1) + '*' + from(type === 47 ? type : next())\n}\n\n/**\n * @param {number} index\n * @return {string}\n */\nexport function identifier (index) {\n\twhile (!token(peek()))\n\t\tnext()\n\n\treturn slice(index, position)\n}\n"],"names":["line","column","length","position","character","characters","node","value","root","parent","type","props","children","siblings","copy","assign","lift","append","char","prev","charat","next","peek","caret","slice","begin","end","substr","token","alloc","strlen","dealloc","delimit","trim","delimiter","whitespace","escaping","index","count","commenter","from","identifier"],"mappings":";AAEU,IAACA,IAAO,GACPC,IAAS,GACTC,IAAS,GACTC,IAAW,G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OW,EAAM;AACZ,YAAQjB,GAAS;AAAA,MAEhB,KAAKM;AACJ,eAAOP;AAAA,MAER,KAAK;AAAA,MAAI,KAAK;AACb,QAAIO,MAAS,MAAMA,MAAS,MAC3BwB,EAAU9B,CAAS;AACpB;AAAA,MAED,KAAK;AACJ,QAAIM,MAAS,MACZwB,EAAUxB,CAAI;AACf;AAAA,MAED,KAAK;AACJ,QAAAW,EAAM;AACN;AAAA,IACD;AAEF,SAAOlB;AACR;AAOO,SAASoC,EAAW7B,GAAM2B,GAAO;AACvC,SAAOhB,EAAM,KAERX,IAAON,MAAc;AAGpB,QAAIM,IAAON,MAAc,MAAWkB,EAAM,MAAK;AACnD;AAEF,SAAO,OAAOE,EAAMa,GAAOlC,IAAW,CAAC,IAAI,MAAMqC,EAAK9B,MAAS,KAAKA,IAAOW,EAAI,CAAE;AAClF;AAMO,SAASoB,EAAYJ,GAAO;AAClC,SAAO,CAACT,EAAMN,GAAM;AACnB,IAAAD,EAAM;AAEP,SAAOG,EAAMa,GAAOlC,CAAQ;AAC7B;","x_google_ignoreList":[0]}
|
@@ -1,57 +0,0 @@
|
|
1
|
-
var c = Math.abs, o = String.fromCharCode, f = Object.assign;
|
2
|
-
function u(n, r) {
|
3
|
-
return e(n, 0) ^ 45 ? (((r << 2 ^ e(n, 0)) << 2 ^ e(n, 1)) << 2 ^ e(n, 2)) << 2 ^ e(n, 3) : 0;
|
4
|
-
}
|
5
|
-
function s(n) {
|
6
|
-
return n.trim();
|
7
|
-
}
|
8
|
-
function i(n, r) {
|
9
|
-
return (n = r.exec(n)) ? n[0] : n;
|
10
|
-
}
|
11
|
-
function a(n, r, t) {
|
12
|
-
return n.replace(r, t);
|
13
|
-
}
|
14
|
-
function h(n, r, t) {
|
15
|
-
return n.indexOf(r, t);
|
16
|
-
}
|
17
|
-
function e(n, r) {
|
18
|
-
return n.charCodeAt(r) | 0;
|
19
|
-
}
|
20
|
-
function m(n, r, t) {
|
21
|
-
return n.slice(r, t);
|
22
|
-
}
|
23
|
-
function p(n) {
|
24
|
-
return n.length;
|
25
|
-
}
|
26
|
-
function b(n) {
|
27
|
-
return n.length;
|
28
|
-
}
|
29
|
-
function d(n, r) {
|
30
|
-
return r.push(n), n;
|
31
|
-
}
|
32
|
-
function g(n, r) {
|
33
|
-
return n.map(r).join("");
|
34
|
-
}
|
35
|
-
function x(n, r) {
|
36
|
-
return n.filter(function(t) {
|
37
|
-
return !i(t, r);
|
38
|
-
});
|
39
|
-
}
|
40
|
-
export {
|
41
|
-
c as abs,
|
42
|
-
d as append,
|
43
|
-
f as assign,
|
44
|
-
e as charat,
|
45
|
-
g as combine,
|
46
|
-
x as filter,
|
47
|
-
o as from,
|
48
|
-
u as hash,
|
49
|
-
h as indexof,
|
50
|
-
i as match,
|
51
|
-
a as replace,
|
52
|
-
b as sizeof,
|
53
|
-
p as strlen,
|
54
|
-
m as substr,
|
55
|
-
s as trim
|
56
|
-
};
|
57
|
-
//# sourceMappingURL=Utility.js.map
|
@@ -1 +0,0 @@
|
|
1
|
-
{"version":3,"file":"Utility.js","sources":["../../../../node_modules/stylis/src/Utility.js"],"sourcesContent":["/**\n * @param {number}\n * @return {number}\n */\nexport var abs = Math.abs\n\n/**\n * @param {number}\n * @return {string}\n */\nexport var from = String.fromCharCode\n\n/**\n * @param {object}\n * @return {object}\n */\nexport var assign = Object.assign\n\n/**\n * @param {string} value\n * @param {number} length\n * @return {number}\n */\nexport function hash (value, length) {\n\treturn charat(value, 0) ^ 45 ? (((((((length << 2) ^ charat(value, 0)) << 2) ^ charat(value, 1)) << 2) ^ charat(value, 2)) << 2) ^ charat(value, 3) : 0\n}\n\n/**\n * @param {string} value\n * @return {string}\n */\nexport function trim (value) {\n\treturn value.trim()\n}\n\n/**\n * @param {string} value\n * @param {RegExp} pattern\n * @return {string?}\n */\nexport function match (value, pattern) {\n\treturn (value = pattern.exec(value)) ? value[0] : value\n}\n\n/**\n * @param {string} value\n * @param {(string|RegExp)} pattern\n * @param {string} replacement\n * @return {string}\n */\nexport function replace (value, pattern, replacement) {\n\treturn value.replace(pattern, replacement)\n}\n\n/**\n * @param {string} value\n * @param {string} search\n * @param {number} position\n * @return {number}\n */\nexport function indexof (value, search, position) {\n\treturn value.indexOf(search, position)\n}\n\n/**\n * @param {string} value\n * @param {number} index\n * @return {number}\n */\nexport function charat (value, index) {\n\treturn value.charCodeAt(index) | 0\n}\n\n/**\n * @param {string} value\n * @param {number} begin\n * @param {number} end\n * @return {string}\n */\nexport function substr (value, begin, end) {\n\treturn value.slice(begin, end)\n}\n\n/**\n * @param {string} value\n * @return {number}\n */\nexport function strlen (value) {\n\treturn value.length\n}\n\n/**\n * @param {any[]} value\n * @return {number}\n */\nexport function sizeof (value) {\n\treturn value.length\n}\n\n/**\n * @param {any} value\n * @param {any[]} array\n * @return {any}\n */\nexport function append (value, array) {\n\treturn array.push(value), value\n}\n\n/**\n * @param {string[]} array\n * @param {function} callback\n * @return {string}\n */\nexport function combine (array, callback) {\n\treturn array.map(callback).join('')\n}\n\n/**\n * @param {string[]} array\n * @param {RegExp} pattern\n * @return {string[]}\n */\nexport function filter (array, pattern) {\n\treturn array.filter(function (value) { return !match(value, pattern) })\n}\n"],"names":["abs","from","assign","hash","value","length","charat","trim","match","pattern","replace","replacement","indexof","search","position","index","substr","begin","end","strlen","sizeof","append","array","combine","callback","filter"],"mappings":"AAIU,IAACA,IAAM,KAAK,KAMXC,IAAO,OAAO,cAMdC,IAAS,OAAO;AAOpB,SAASC,EAAMC,GAAOC,GAAQ;AACpC,SAAOC,EAAOF,GAAO,CAAC,IAAI,QAAYC,KAAU,IAAKC,EAAOF,GAAO,CAAC,MAAM,IAAKE,EAAOF,GAAO,CAAC,MAAM,IAAKE,EAAOF,GAAO,CAAC,MAAM,IAAKE,EAAOF,GAAO,CAAC,IAAI;AACvJ;AAMO,SAASG,EAAMH,GAAO;AAC5B,SAAOA,EAAM,KAAM;AACpB;AAOO,SAASI,EAAOJ,GAAOK,GAAS;AACtC,UAAQL,IAAQK,EAAQ,KAAKL,CAAK,KAAKA,EAAM,CAAC,IAAIA;AACnD;AAQO,SAASM,EAASN,GAAOK,GAASE,GAAa;AACrD,SAAOP,EAAM,QAAQK,GAASE,CAAW;AAC1C;AAQO,SAASC,EAASR,GAAOS,GAAQC,GAAU;AACjD,SAAOV,EAAM,QAAQS,GAAQC,CAAQ;AACtC;AAOO,SAASR,EAAQF,GAAOW,GAAO;AACrC,SAAOX,EAAM,WAAWW,CAAK,IAAI;AAClC;AAQO,SAASC,EAAQZ,GAAOa,GAAOC,GAAK;AAC1C,SAAOd,EAAM,MAAMa,GAAOC,CAAG;AAC9B;AAMO,SAASC,EAAQf,GAAO;AAC9B,SAAOA,EAAM;AACd;AAMO,SAASgB,EAAQhB,GAAO;AAC9B,SAAOA,EAAM;AACd;AAOO,SAASiB,EAAQjB,GAAOkB,GAAO;AACrC,SAAOA,EAAM,KAAKlB,CAAK,GAAGA;AAC3B;AAOO,SAASmB,EAASD,GAAOE,GAAU;AACzC,SAAOF,EAAM,IAAIE,CAAQ,EAAE,KAAK,EAAE;AACnC;AAOO,SAASC,EAAQH,GAAOb,GAAS;AACvC,SAAOa,EAAM,OAAO,SAAUlB,GAAO;AAAE,WAAO,CAACI,EAAMJ,GAAOK,CAAO;AAAA,GAAG;AACvE;","x_google_ignoreList":[0]}
|
@@ -1,19 +0,0 @@
|
|
1
|
-
var o = function() {
|
2
|
-
return o = Object.assign || function(n) {
|
3
|
-
for (var t, r = 1, s = arguments.length; r < s; r++) {
|
4
|
-
t = arguments[r];
|
5
|
-
for (var e in t) Object.prototype.hasOwnProperty.call(t, e) && (n[e] = t[e]);
|
6
|
-
}
|
7
|
-
return n;
|
8
|
-
}, o.apply(this, arguments);
|
9
|
-
};
|
10
|
-
function p(a, n, t) {
|
11
|
-
if (t || arguments.length === 2) for (var r = 0, s = n.length, e; r < s; r++)
|
12
|
-
(e || !(r in n)) && (e || (e = Array.prototype.slice.call(n, 0, r)), e[r] = n[r]);
|
13
|
-
return a.concat(e || Array.prototype.slice.call(n));
|
14
|
-
}
|
15
|
-
export {
|
16
|
-
o as __assign,
|
17
|
-
p as __spreadArray
|
18
|
-
};
|
19
|
-
//# sourceMappingURL=tslib.es6.js.map
|