@rocket.chat/css-in-js 0.6.3-dev.46 → 0.6.3-dev.460
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/LICENSE +1 -1
- package/README.md +54 -94
- package/dist/index.d.ts +5 -0
- package/dist/index.js +1 -968
- package/dist/index.js.map +1 -1
- package/dist/index.module.js +2 -0
- package/dist/index.module.js.map +1 -0
- package/dist/index.umd.js +2 -0
- package/dist/index.umd.js.map +1 -0
- package/dist/names.d.ts +3 -0
- package/dist/sheet.d.ts +8 -0
- package/dist/tags.d.ts +30 -0
- package/dist/transpile.d.ts +11 -0
- package/package.json +41 -32
- package/CHANGELOG.md +0 -86
- package/dist/index.mjs +0 -960
- package/dist/index.mjs.map +0 -1
package/dist/index.js
CHANGED
|
@@ -1,969 +1,2 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
|
-
|
|
5
|
-
function _typeof(obj) {
|
|
6
|
-
"@babel/helpers - typeof";
|
|
7
|
-
|
|
8
|
-
if (typeof Symbol === "function" && typeof Symbol.iterator === "symbol") {
|
|
9
|
-
_typeof = function (obj) {
|
|
10
|
-
return typeof obj;
|
|
11
|
-
};
|
|
12
|
-
} else {
|
|
13
|
-
_typeof = function (obj) {
|
|
14
|
-
return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj;
|
|
15
|
-
};
|
|
16
|
-
}
|
|
17
|
-
|
|
18
|
-
return _typeof(obj);
|
|
19
|
-
}
|
|
20
|
-
|
|
21
|
-
function _slicedToArray(arr, i) {
|
|
22
|
-
return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || _nonIterableRest();
|
|
23
|
-
}
|
|
24
|
-
|
|
25
|
-
function _toConsumableArray(arr) {
|
|
26
|
-
return _arrayWithoutHoles(arr) || _iterableToArray(arr) || _unsupportedIterableToArray(arr) || _nonIterableSpread();
|
|
27
|
-
}
|
|
28
|
-
|
|
29
|
-
function _arrayWithoutHoles(arr) {
|
|
30
|
-
if (Array.isArray(arr)) return _arrayLikeToArray(arr);
|
|
31
|
-
}
|
|
32
|
-
|
|
33
|
-
function _arrayWithHoles(arr) {
|
|
34
|
-
if (Array.isArray(arr)) return arr;
|
|
35
|
-
}
|
|
36
|
-
|
|
37
|
-
function _iterableToArray(iter) {
|
|
38
|
-
if (typeof Symbol !== "undefined" && Symbol.iterator in Object(iter)) return Array.from(iter);
|
|
39
|
-
}
|
|
40
|
-
|
|
41
|
-
function _iterableToArrayLimit(arr, i) {
|
|
42
|
-
if (typeof Symbol === "undefined" || !(Symbol.iterator in Object(arr))) return;
|
|
43
|
-
var _arr = [];
|
|
44
|
-
var _n = true;
|
|
45
|
-
var _d = false;
|
|
46
|
-
var _e = undefined;
|
|
47
|
-
|
|
48
|
-
try {
|
|
49
|
-
for (var _i = arr[Symbol.iterator](), _s; !(_n = (_s = _i.next()).done); _n = true) {
|
|
50
|
-
_arr.push(_s.value);
|
|
51
|
-
|
|
52
|
-
if (i && _arr.length === i) break;
|
|
53
|
-
}
|
|
54
|
-
} catch (err) {
|
|
55
|
-
_d = true;
|
|
56
|
-
_e = err;
|
|
57
|
-
} finally {
|
|
58
|
-
try {
|
|
59
|
-
if (!_n && _i["return"] != null) _i["return"]();
|
|
60
|
-
} finally {
|
|
61
|
-
if (_d) throw _e;
|
|
62
|
-
}
|
|
63
|
-
}
|
|
64
|
-
|
|
65
|
-
return _arr;
|
|
66
|
-
}
|
|
67
|
-
|
|
68
|
-
function _unsupportedIterableToArray(o, minLen) {
|
|
69
|
-
if (!o) return;
|
|
70
|
-
if (typeof o === "string") return _arrayLikeToArray(o, minLen);
|
|
71
|
-
var n = Object.prototype.toString.call(o).slice(8, -1);
|
|
72
|
-
if (n === "Object" && o.constructor) n = o.constructor.name;
|
|
73
|
-
if (n === "Map" || n === "Set") return Array.from(n);
|
|
74
|
-
if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen);
|
|
75
|
-
}
|
|
76
|
-
|
|
77
|
-
function _arrayLikeToArray(arr, len) {
|
|
78
|
-
if (len == null || len > arr.length) len = arr.length;
|
|
79
|
-
|
|
80
|
-
for (var i = 0, arr2 = new Array(len); i < len; i++) arr2[i] = arr[i];
|
|
81
|
-
|
|
82
|
-
return arr2;
|
|
83
|
-
}
|
|
84
|
-
|
|
85
|
-
function _nonIterableSpread() {
|
|
86
|
-
throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
|
|
87
|
-
}
|
|
88
|
-
|
|
89
|
-
function _nonIterableRest() {
|
|
90
|
-
throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
|
|
91
|
-
}
|
|
92
|
-
|
|
93
|
-
/* eslint-disable */
|
|
94
|
-
// Inspired by https://github.com/garycourt/murmurhash-js
|
|
95
|
-
// Ported from https://github.com/aappleby/smhasher/blob/61a0530f28277f2e850bfc39600ce61d02b518de/src/MurmurHash2.cpp#L37-L86
|
|
96
|
-
function murmur2(str) {
|
|
97
|
-
// 'm' and 'r' are mixing constants generated offline.
|
|
98
|
-
// They're not really 'magic', they just happen to work well.
|
|
99
|
-
// const m = 0x5bd1e995;
|
|
100
|
-
// const r = 24;
|
|
101
|
-
// Initialize the hash
|
|
102
|
-
var h = 0; // Mix 4 bytes at a time into the hash
|
|
103
|
-
|
|
104
|
-
var k,
|
|
105
|
-
i = 0,
|
|
106
|
-
len = str.length;
|
|
107
|
-
|
|
108
|
-
for (; len >= 4; ++i, len -= 4) {
|
|
109
|
-
k = str.charCodeAt(i) & 0xff | (str.charCodeAt(++i) & 0xff) << 8 | (str.charCodeAt(++i) & 0xff) << 16 | (str.charCodeAt(++i) & 0xff) << 24;
|
|
110
|
-
k =
|
|
111
|
-
/* Math.imul(k, m): */
|
|
112
|
-
(k & 0xffff) * 0x5bd1e995 + ((k >>> 16) * 0xe995 << 16);
|
|
113
|
-
k ^=
|
|
114
|
-
/* k >>> r: */
|
|
115
|
-
k >>> 24;
|
|
116
|
-
h =
|
|
117
|
-
/* Math.imul(k, m): */
|
|
118
|
-
(k & 0xffff) * 0x5bd1e995 + ((k >>> 16) * 0xe995 << 16) ^
|
|
119
|
-
/* Math.imul(h, m): */
|
|
120
|
-
(h & 0xffff) * 0x5bd1e995 + ((h >>> 16) * 0xe995 << 16);
|
|
121
|
-
} // Handle the last few bytes of the input array
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
switch (len) {
|
|
125
|
-
case 3:
|
|
126
|
-
h ^= (str.charCodeAt(i + 2) & 0xff) << 16;
|
|
127
|
-
|
|
128
|
-
case 2:
|
|
129
|
-
h ^= (str.charCodeAt(i + 1) & 0xff) << 8;
|
|
130
|
-
|
|
131
|
-
case 1:
|
|
132
|
-
h ^= str.charCodeAt(i) & 0xff;
|
|
133
|
-
h =
|
|
134
|
-
/* Math.imul(h, m): */
|
|
135
|
-
(h & 0xffff) * 0x5bd1e995 + ((h >>> 16) * 0xe995 << 16);
|
|
136
|
-
} // Do a few final mixes of the hash to ensure the last few
|
|
137
|
-
// bytes are well-incorporated.
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
h ^= h >>> 13;
|
|
141
|
-
h =
|
|
142
|
-
/* Math.imul(h, m): */
|
|
143
|
-
(h & 0xffff) * 0x5bd1e995 + ((h >>> 16) * 0xe995 << 16);
|
|
144
|
-
return ((h ^ h >>> 15) >>> 0).toString(36);
|
|
145
|
-
}
|
|
146
|
-
|
|
147
|
-
/**
|
|
148
|
-
* Creates a pair of selector and escaped selector for a CSS Modules content.
|
|
149
|
-
*
|
|
150
|
-
* @returns a pair of selectors in the format `rcx-@<content hash>`; the second element is escaped
|
|
151
|
-
* for use in CSS content
|
|
152
|
-
*/
|
|
153
|
-
|
|
154
|
-
var createSelector = function createSelector(content) {
|
|
155
|
-
var contentHash = murmur2(content);
|
|
156
|
-
return ["rcx-@".concat(contentHash), "rcx-\\@".concat(contentHash)];
|
|
157
|
-
};
|
|
158
|
-
|
|
159
|
-
var createReplacementsMapping = function createReplacementsMapping() {
|
|
160
|
-
var rules = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : [];
|
|
161
|
-
return function (value) {
|
|
162
|
-
if (value === 0) {
|
|
163
|
-
return '0';
|
|
164
|
-
}
|
|
165
|
-
|
|
166
|
-
if (!value) {
|
|
167
|
-
return '';
|
|
168
|
-
}
|
|
169
|
-
|
|
170
|
-
if (typeof value === 'function') {
|
|
171
|
-
return value(rules);
|
|
172
|
-
}
|
|
173
|
-
|
|
174
|
-
return String(value);
|
|
175
|
-
};
|
|
176
|
-
};
|
|
177
|
-
/**
|
|
178
|
-
* Template string tag to declare CSS content chunks.
|
|
179
|
-
*
|
|
180
|
-
* @return a callback to render the CSS content
|
|
181
|
-
*/
|
|
182
|
-
|
|
183
|
-
|
|
184
|
-
var css = function css(slices) {
|
|
185
|
-
for (var _len = arguments.length, values = new Array(_len > 1 ? _len - 1 : 0), _key = 1; _key < _len; _key++) {
|
|
186
|
-
values[_key - 1] = arguments[_key];
|
|
187
|
-
}
|
|
188
|
-
|
|
189
|
-
return function () {
|
|
190
|
-
var rules = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : [];
|
|
191
|
-
var replacements = values.map(createReplacementsMapping(rules));
|
|
192
|
-
return String.raw.apply(String, [slices].concat(_toConsumableArray(replacements)));
|
|
193
|
-
};
|
|
194
|
-
};
|
|
195
|
-
/**
|
|
196
|
-
* Template string tag to declare CSS `@keyframe` at-rules.
|
|
197
|
-
*
|
|
198
|
-
* @return a callback to render the CSS at-rule content
|
|
199
|
-
*/
|
|
200
|
-
|
|
201
|
-
var keyframes = function keyframes(slices) {
|
|
202
|
-
for (var _len2 = arguments.length, values = new Array(_len2 > 1 ? _len2 - 1 : 0), _key2 = 1; _key2 < _len2; _key2++) {
|
|
203
|
-
values[_key2 - 1] = arguments[_key2];
|
|
204
|
-
}
|
|
205
|
-
|
|
206
|
-
return function () {
|
|
207
|
-
var rules = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : [];
|
|
208
|
-
var replacements = values.map(createReplacementsMapping(rules));
|
|
209
|
-
var content = String.raw.apply(String, [slices].concat(_toConsumableArray(replacements)));
|
|
210
|
-
|
|
211
|
-
var _createSelector = createSelector(content),
|
|
212
|
-
_createSelector2 = _slicedToArray(_createSelector, 2),
|
|
213
|
-
encodedAnimationName = _createSelector2[1];
|
|
214
|
-
|
|
215
|
-
rules.push("@keyframes ".concat(encodedAnimationName, "{").concat(content, "}"));
|
|
216
|
-
return encodedAnimationName;
|
|
217
|
-
};
|
|
218
|
-
};
|
|
219
|
-
|
|
220
|
-
var styleTagId = 'rcx-styles';
|
|
221
|
-
var styleTag;
|
|
222
|
-
|
|
223
|
-
var getStyleTag = function getStyleTag() {
|
|
224
|
-
if (!styleTag) {
|
|
225
|
-
styleTag = document.getElementById(styleTagId) || document.createElement('style');
|
|
226
|
-
styleTag.id = styleTagId;
|
|
227
|
-
styleTag.appendChild(document.createTextNode(''));
|
|
228
|
-
|
|
229
|
-
if (document.head) {
|
|
230
|
-
document.head.appendChild(styleTag);
|
|
231
|
-
}
|
|
232
|
-
}
|
|
233
|
-
/* ::
|
|
234
|
-
if (!(styleTag instanceof HTMLStyleElement)) {
|
|
235
|
-
throw new Error();
|
|
236
|
-
}
|
|
237
|
-
*/
|
|
238
|
-
|
|
239
|
-
|
|
240
|
-
return styleTag;
|
|
241
|
-
};
|
|
242
|
-
|
|
243
|
-
var styleSheet;
|
|
244
|
-
|
|
245
|
-
var getStyleSheet = function getStyleSheet() {
|
|
246
|
-
if (!styleSheet) {
|
|
247
|
-
var _styleTag = getStyleTag();
|
|
248
|
-
|
|
249
|
-
styleSheet = _styleTag.sheet || Array.from(document.styleSheets).find(function (_ref) {
|
|
250
|
-
var ownerNode = _ref.ownerNode;
|
|
251
|
-
return ownerNode === _styleTag;
|
|
252
|
-
});
|
|
253
|
-
}
|
|
254
|
-
/* ::
|
|
255
|
-
if (!(styleSheet instanceof CSSStyleSheet)) {
|
|
256
|
-
throw new Error();
|
|
257
|
-
}
|
|
258
|
-
*/
|
|
259
|
-
|
|
260
|
-
|
|
261
|
-
return styleSheet;
|
|
262
|
-
};
|
|
263
|
-
|
|
264
|
-
var attachRulesIntoTag = function attachRulesIntoTag(rules) {
|
|
265
|
-
var styleTag = getStyleTag();
|
|
266
|
-
var textNode = document.createTextNode(rules);
|
|
267
|
-
styleTag.appendChild(textNode);
|
|
268
|
-
return function () {
|
|
269
|
-
return textNode.remove();
|
|
270
|
-
};
|
|
271
|
-
};
|
|
272
|
-
|
|
273
|
-
var attachRulesIntoSheet = function attachRulesIntoSheet(rules) {
|
|
274
|
-
var styleSheet = getStyleSheet();
|
|
275
|
-
var index = styleSheet.insertRule("@media all{".concat(rules, "}"), styleSheet.cssRules.length);
|
|
276
|
-
var insertedRule = styleSheet.cssRules[index];
|
|
277
|
-
|
|
278
|
-
var findPredicate = function findPredicate(cssRule) {
|
|
279
|
-
return cssRule === insertedRule;
|
|
280
|
-
};
|
|
281
|
-
|
|
282
|
-
return function () {
|
|
283
|
-
var index = Array.prototype.findIndex.call(styleSheet.cssRules, findPredicate);
|
|
284
|
-
styleSheet.deleteRule(index);
|
|
285
|
-
};
|
|
286
|
-
};
|
|
287
|
-
/**
|
|
288
|
-
* Imediately attaches CSS rules into the style sheet.
|
|
289
|
-
*
|
|
290
|
-
* @return a callback to detach the rules
|
|
291
|
-
*/
|
|
292
|
-
|
|
293
|
-
|
|
294
|
-
var attachRules = function attachRules(rules) {
|
|
295
|
-
if (process.env.NODE_ENV === 'production' && !!CSSStyleSheet.prototype.insertRule) {
|
|
296
|
-
return attachRulesIntoSheet(rules);
|
|
297
|
-
}
|
|
298
|
-
|
|
299
|
-
return attachRulesIntoTag(rules);
|
|
300
|
-
};
|
|
301
|
-
var references = {};
|
|
302
|
-
/**
|
|
303
|
-
* References CSS rules into the style sheet.
|
|
304
|
-
*
|
|
305
|
-
* Each time this function is called with the same rules a internal reference counter for it
|
|
306
|
-
* is incremented; when the unreference callback returned by this function is called, the reference
|
|
307
|
-
* counter is decremented. If the counter reaches zero references, the rules are detached from
|
|
308
|
-
* style sheet.
|
|
309
|
-
*
|
|
310
|
-
* @return a callback to unreference the rules
|
|
311
|
-
*/
|
|
312
|
-
|
|
313
|
-
var referenceRules = function referenceRules(rules) {
|
|
314
|
-
if (!rules) {
|
|
315
|
-
return function () {};
|
|
316
|
-
}
|
|
317
|
-
|
|
318
|
-
var reference = references[rules] || {
|
|
319
|
-
count: 0
|
|
320
|
-
};
|
|
321
|
-
references[rules] = reference;
|
|
322
|
-
|
|
323
|
-
if (reference.count === 0) {
|
|
324
|
-
reference.detachRules = attachRules(rules);
|
|
325
|
-
}
|
|
326
|
-
|
|
327
|
-
++reference.count;
|
|
328
|
-
return function () {
|
|
329
|
-
--reference.count;
|
|
330
|
-
|
|
331
|
-
if (reference.count === 0) {
|
|
332
|
-
(0, reference.detachRules)();
|
|
333
|
-
}
|
|
334
|
-
};
|
|
335
|
-
};
|
|
336
|
-
|
|
337
|
-
function stylis_min(W) {
|
|
338
|
-
function M(d, c, e, h, a) {
|
|
339
|
-
for (var m = 0, b = 0, v = 0, n = 0, q, g, x = 0, K = 0, k, u = k = q = 0, l = 0, r = 0, I = 0, t = 0, B = e.length, J = B - 1, y, f = '', p = '', F = '', G = '', C; l < B;) {
|
|
340
|
-
g = e.charCodeAt(l);
|
|
341
|
-
l === J && 0 !== b + n + v + m && (0 !== b && (g = 47 === b ? 10 : 47), n = v = m = 0, B++, J++);
|
|
342
|
-
|
|
343
|
-
if (0 === b + n + v + m) {
|
|
344
|
-
if (l === J && (0 < r && (f = f.replace(N, '')), 0 < f.trim().length)) {
|
|
345
|
-
switch (g) {
|
|
346
|
-
case 32:
|
|
347
|
-
case 9:
|
|
348
|
-
case 59:
|
|
349
|
-
case 13:
|
|
350
|
-
case 10:
|
|
351
|
-
break;
|
|
352
|
-
|
|
353
|
-
default:
|
|
354
|
-
f += e.charAt(l);
|
|
355
|
-
}
|
|
356
|
-
|
|
357
|
-
g = 59;
|
|
358
|
-
}
|
|
359
|
-
|
|
360
|
-
switch (g) {
|
|
361
|
-
case 123:
|
|
362
|
-
f = f.trim();
|
|
363
|
-
q = f.charCodeAt(0);
|
|
364
|
-
k = 1;
|
|
365
|
-
|
|
366
|
-
for (t = ++l; l < B;) {
|
|
367
|
-
switch (g = e.charCodeAt(l)) {
|
|
368
|
-
case 123:
|
|
369
|
-
k++;
|
|
370
|
-
break;
|
|
371
|
-
|
|
372
|
-
case 125:
|
|
373
|
-
k--;
|
|
374
|
-
break;
|
|
375
|
-
|
|
376
|
-
case 47:
|
|
377
|
-
switch (g = e.charCodeAt(l + 1)) {
|
|
378
|
-
case 42:
|
|
379
|
-
case 47:
|
|
380
|
-
a: {
|
|
381
|
-
for (u = l + 1; u < J; ++u) {
|
|
382
|
-
switch (e.charCodeAt(u)) {
|
|
383
|
-
case 47:
|
|
384
|
-
if (42 === g && 42 === e.charCodeAt(u - 1) && l + 2 !== u) {
|
|
385
|
-
l = u + 1;
|
|
386
|
-
break a;
|
|
387
|
-
}
|
|
388
|
-
|
|
389
|
-
break;
|
|
390
|
-
|
|
391
|
-
case 10:
|
|
392
|
-
if (47 === g) {
|
|
393
|
-
l = u + 1;
|
|
394
|
-
break a;
|
|
395
|
-
}
|
|
396
|
-
|
|
397
|
-
}
|
|
398
|
-
}
|
|
399
|
-
|
|
400
|
-
l = u;
|
|
401
|
-
}
|
|
402
|
-
|
|
403
|
-
}
|
|
404
|
-
|
|
405
|
-
break;
|
|
406
|
-
|
|
407
|
-
case 91:
|
|
408
|
-
g++;
|
|
409
|
-
|
|
410
|
-
case 40:
|
|
411
|
-
g++;
|
|
412
|
-
|
|
413
|
-
case 34:
|
|
414
|
-
case 39:
|
|
415
|
-
for (; l++ < J && e.charCodeAt(l) !== g;) {}
|
|
416
|
-
|
|
417
|
-
}
|
|
418
|
-
|
|
419
|
-
if (0 === k) break;
|
|
420
|
-
l++;
|
|
421
|
-
}
|
|
422
|
-
|
|
423
|
-
k = e.substring(t, l);
|
|
424
|
-
0 === q && (q = (f = f.replace(ca, '').trim()).charCodeAt(0));
|
|
425
|
-
|
|
426
|
-
switch (q) {
|
|
427
|
-
case 64:
|
|
428
|
-
0 < r && (f = f.replace(N, ''));
|
|
429
|
-
g = f.charCodeAt(1);
|
|
430
|
-
|
|
431
|
-
switch (g) {
|
|
432
|
-
case 100:
|
|
433
|
-
case 109:
|
|
434
|
-
case 115:
|
|
435
|
-
case 45:
|
|
436
|
-
r = c;
|
|
437
|
-
break;
|
|
438
|
-
|
|
439
|
-
default:
|
|
440
|
-
r = O;
|
|
441
|
-
}
|
|
442
|
-
|
|
443
|
-
k = M(c, r, k, g, a + 1);
|
|
444
|
-
t = k.length;
|
|
445
|
-
0 < A && (r = X(O, f, I), C = H(3, k, r, c, D, z, t, g, a, h), f = r.join(''), void 0 !== C && 0 === (t = (k = C.trim()).length) && (g = 0, k = ''));
|
|
446
|
-
if (0 < t) switch (g) {
|
|
447
|
-
case 115:
|
|
448
|
-
f = f.replace(da, ea);
|
|
449
|
-
|
|
450
|
-
case 100:
|
|
451
|
-
case 109:
|
|
452
|
-
case 45:
|
|
453
|
-
k = f + '{' + k + '}';
|
|
454
|
-
break;
|
|
455
|
-
|
|
456
|
-
case 107:
|
|
457
|
-
f = f.replace(fa, '$1 $2');
|
|
458
|
-
k = f + '{' + k + '}';
|
|
459
|
-
k = 1 === w || 2 === w && L('@' + k, 3) ? '@-webkit-' + k + '@' + k : '@' + k;
|
|
460
|
-
break;
|
|
461
|
-
|
|
462
|
-
default:
|
|
463
|
-
k = f + k, 112 === h && (k = (p += k, ''));
|
|
464
|
-
} else k = '';
|
|
465
|
-
break;
|
|
466
|
-
|
|
467
|
-
default:
|
|
468
|
-
k = M(c, X(c, f, I), k, h, a + 1);
|
|
469
|
-
}
|
|
470
|
-
|
|
471
|
-
F += k;
|
|
472
|
-
k = I = r = u = q = 0;
|
|
473
|
-
f = '';
|
|
474
|
-
g = e.charCodeAt(++l);
|
|
475
|
-
break;
|
|
476
|
-
|
|
477
|
-
case 125:
|
|
478
|
-
case 59:
|
|
479
|
-
f = (0 < r ? f.replace(N, '') : f).trim();
|
|
480
|
-
if (1 < (t = f.length)) switch (0 === u && (q = f.charCodeAt(0), 45 === q || 96 < q && 123 > q) && (t = (f = f.replace(' ', ':')).length), 0 < A && void 0 !== (C = H(1, f, c, d, D, z, p.length, h, a, h)) && 0 === (t = (f = C.trim()).length) && (f = '\x00\x00'), q = f.charCodeAt(0), g = f.charCodeAt(1), q) {
|
|
481
|
-
case 0:
|
|
482
|
-
break;
|
|
483
|
-
|
|
484
|
-
case 64:
|
|
485
|
-
if (105 === g || 99 === g) {
|
|
486
|
-
G += f + e.charAt(l);
|
|
487
|
-
break;
|
|
488
|
-
}
|
|
489
|
-
|
|
490
|
-
default:
|
|
491
|
-
58 !== f.charCodeAt(t - 1) && (p += P(f, q, g, f.charCodeAt(2)));
|
|
492
|
-
}
|
|
493
|
-
I = r = u = q = 0;
|
|
494
|
-
f = '';
|
|
495
|
-
g = e.charCodeAt(++l);
|
|
496
|
-
}
|
|
497
|
-
}
|
|
498
|
-
|
|
499
|
-
switch (g) {
|
|
500
|
-
case 13:
|
|
501
|
-
case 10:
|
|
502
|
-
47 === b ? b = 0 : 0 === 1 + q && 107 !== h && 0 < f.length && (r = 1, f += '\x00');
|
|
503
|
-
0 < A * Y && H(0, f, c, d, D, z, p.length, h, a, h);
|
|
504
|
-
z = 1;
|
|
505
|
-
D++;
|
|
506
|
-
break;
|
|
507
|
-
|
|
508
|
-
case 59:
|
|
509
|
-
case 125:
|
|
510
|
-
if (0 === b + n + v + m) {
|
|
511
|
-
z++;
|
|
512
|
-
break;
|
|
513
|
-
}
|
|
514
|
-
|
|
515
|
-
default:
|
|
516
|
-
z++;
|
|
517
|
-
y = e.charAt(l);
|
|
518
|
-
|
|
519
|
-
switch (g) {
|
|
520
|
-
case 9:
|
|
521
|
-
case 32:
|
|
522
|
-
if (0 === n + m + b) switch (x) {
|
|
523
|
-
case 44:
|
|
524
|
-
case 58:
|
|
525
|
-
case 9:
|
|
526
|
-
case 32:
|
|
527
|
-
y = '';
|
|
528
|
-
break;
|
|
529
|
-
|
|
530
|
-
default:
|
|
531
|
-
32 !== g && (y = ' ');
|
|
532
|
-
}
|
|
533
|
-
break;
|
|
534
|
-
|
|
535
|
-
case 0:
|
|
536
|
-
y = '\\0';
|
|
537
|
-
break;
|
|
538
|
-
|
|
539
|
-
case 12:
|
|
540
|
-
y = '\\f';
|
|
541
|
-
break;
|
|
542
|
-
|
|
543
|
-
case 11:
|
|
544
|
-
y = '\\v';
|
|
545
|
-
break;
|
|
546
|
-
|
|
547
|
-
case 38:
|
|
548
|
-
0 === n + b + m && (r = I = 1, y = '\f' + y);
|
|
549
|
-
break;
|
|
550
|
-
|
|
551
|
-
case 108:
|
|
552
|
-
if (0 === n + b + m + E && 0 < u) switch (l - u) {
|
|
553
|
-
case 2:
|
|
554
|
-
112 === x && 58 === e.charCodeAt(l - 3) && (E = x);
|
|
555
|
-
|
|
556
|
-
case 8:
|
|
557
|
-
111 === K && (E = K);
|
|
558
|
-
}
|
|
559
|
-
break;
|
|
560
|
-
|
|
561
|
-
case 58:
|
|
562
|
-
0 === n + b + m && (u = l);
|
|
563
|
-
break;
|
|
564
|
-
|
|
565
|
-
case 44:
|
|
566
|
-
0 === b + v + n + m && (r = 1, y += '\r');
|
|
567
|
-
break;
|
|
568
|
-
|
|
569
|
-
case 34:
|
|
570
|
-
case 39:
|
|
571
|
-
0 === b && (n = n === g ? 0 : 0 === n ? g : n);
|
|
572
|
-
break;
|
|
573
|
-
|
|
574
|
-
case 91:
|
|
575
|
-
0 === n + b + v && m++;
|
|
576
|
-
break;
|
|
577
|
-
|
|
578
|
-
case 93:
|
|
579
|
-
0 === n + b + v && m--;
|
|
580
|
-
break;
|
|
581
|
-
|
|
582
|
-
case 41:
|
|
583
|
-
0 === n + b + m && v--;
|
|
584
|
-
break;
|
|
585
|
-
|
|
586
|
-
case 40:
|
|
587
|
-
if (0 === n + b + m) {
|
|
588
|
-
if (0 === q) switch (2 * x + 3 * K) {
|
|
589
|
-
case 533:
|
|
590
|
-
break;
|
|
591
|
-
|
|
592
|
-
default:
|
|
593
|
-
q = 1;
|
|
594
|
-
}
|
|
595
|
-
v++;
|
|
596
|
-
}
|
|
597
|
-
|
|
598
|
-
break;
|
|
599
|
-
|
|
600
|
-
case 64:
|
|
601
|
-
0 === b + v + n + m + u + k && (k = 1);
|
|
602
|
-
break;
|
|
603
|
-
|
|
604
|
-
case 42:
|
|
605
|
-
case 47:
|
|
606
|
-
if (!(0 < n + m + v)) switch (b) {
|
|
607
|
-
case 0:
|
|
608
|
-
switch (2 * g + 3 * e.charCodeAt(l + 1)) {
|
|
609
|
-
case 235:
|
|
610
|
-
b = 47;
|
|
611
|
-
break;
|
|
612
|
-
|
|
613
|
-
case 220:
|
|
614
|
-
t = l, b = 42;
|
|
615
|
-
}
|
|
616
|
-
|
|
617
|
-
break;
|
|
618
|
-
|
|
619
|
-
case 42:
|
|
620
|
-
47 === g && 42 === x && t + 2 !== l && (33 === e.charCodeAt(t + 2) && (p += e.substring(t, l + 1)), y = '', b = 0);
|
|
621
|
-
}
|
|
622
|
-
}
|
|
623
|
-
|
|
624
|
-
0 === b && (f += y);
|
|
625
|
-
}
|
|
626
|
-
|
|
627
|
-
K = x;
|
|
628
|
-
x = g;
|
|
629
|
-
l++;
|
|
630
|
-
}
|
|
631
|
-
|
|
632
|
-
t = p.length;
|
|
633
|
-
|
|
634
|
-
if (0 < t) {
|
|
635
|
-
r = c;
|
|
636
|
-
if (0 < A && (C = H(2, p, r, d, D, z, t, h, a, h), void 0 !== C && 0 === (p = C).length)) return G + p + F;
|
|
637
|
-
p = r.join(',') + '{' + p + '}';
|
|
638
|
-
|
|
639
|
-
if (0 !== w * E) {
|
|
640
|
-
2 !== w || L(p, 2) || (E = 0);
|
|
641
|
-
|
|
642
|
-
switch (E) {
|
|
643
|
-
case 111:
|
|
644
|
-
p = p.replace(ha, ':-moz-$1') + p;
|
|
645
|
-
break;
|
|
646
|
-
|
|
647
|
-
case 112:
|
|
648
|
-
p = p.replace(Q, '::-webkit-input-$1') + p.replace(Q, '::-moz-$1') + p.replace(Q, ':-ms-input-$1') + p;
|
|
649
|
-
}
|
|
650
|
-
|
|
651
|
-
E = 0;
|
|
652
|
-
}
|
|
653
|
-
}
|
|
654
|
-
|
|
655
|
-
return G + p + F;
|
|
656
|
-
}
|
|
657
|
-
|
|
658
|
-
function X(d, c, e) {
|
|
659
|
-
var h = c.trim().split(ia);
|
|
660
|
-
c = h;
|
|
661
|
-
var a = h.length,
|
|
662
|
-
m = d.length;
|
|
663
|
-
|
|
664
|
-
switch (m) {
|
|
665
|
-
case 0:
|
|
666
|
-
case 1:
|
|
667
|
-
var b = 0;
|
|
668
|
-
|
|
669
|
-
for (d = 0 === m ? '' : d[0] + ' '; b < a; ++b) {
|
|
670
|
-
c[b] = Z(d, c[b], e).trim();
|
|
671
|
-
}
|
|
672
|
-
|
|
673
|
-
break;
|
|
674
|
-
|
|
675
|
-
default:
|
|
676
|
-
var v = b = 0;
|
|
677
|
-
|
|
678
|
-
for (c = []; b < a; ++b) {
|
|
679
|
-
for (var n = 0; n < m; ++n) {
|
|
680
|
-
c[v++] = Z(d[n] + ' ', h[b], e).trim();
|
|
681
|
-
}
|
|
682
|
-
}
|
|
683
|
-
|
|
684
|
-
}
|
|
685
|
-
|
|
686
|
-
return c;
|
|
687
|
-
}
|
|
688
|
-
|
|
689
|
-
function Z(d, c, e) {
|
|
690
|
-
var h = c.charCodeAt(0);
|
|
691
|
-
33 > h && (h = (c = c.trim()).charCodeAt(0));
|
|
692
|
-
|
|
693
|
-
switch (h) {
|
|
694
|
-
case 38:
|
|
695
|
-
return c.replace(F, '$1' + d.trim());
|
|
696
|
-
|
|
697
|
-
case 58:
|
|
698
|
-
return d.trim() + c.replace(F, '$1' + d.trim());
|
|
699
|
-
|
|
700
|
-
default:
|
|
701
|
-
if (0 < 1 * e && 0 < c.indexOf('\f')) return c.replace(F, (58 === d.charCodeAt(0) ? '' : '$1') + d.trim());
|
|
702
|
-
}
|
|
703
|
-
|
|
704
|
-
return d + c;
|
|
705
|
-
}
|
|
706
|
-
|
|
707
|
-
function P(d, c, e, h) {
|
|
708
|
-
var a = d + ';',
|
|
709
|
-
m = 2 * c + 3 * e + 4 * h;
|
|
710
|
-
|
|
711
|
-
if (944 === m) {
|
|
712
|
-
d = a.indexOf(':', 9) + 1;
|
|
713
|
-
var b = a.substring(d, a.length - 1).trim();
|
|
714
|
-
b = a.substring(0, d).trim() + b + ';';
|
|
715
|
-
return 1 === w || 2 === w && L(b, 1) ? '-webkit-' + b + b : b;
|
|
716
|
-
}
|
|
717
|
-
|
|
718
|
-
if (0 === w || 2 === w && !L(a, 1)) return a;
|
|
719
|
-
|
|
720
|
-
switch (m) {
|
|
721
|
-
case 1015:
|
|
722
|
-
return 97 === a.charCodeAt(10) ? '-webkit-' + a + a : a;
|
|
723
|
-
|
|
724
|
-
case 951:
|
|
725
|
-
return 116 === a.charCodeAt(3) ? '-webkit-' + a + a : a;
|
|
726
|
-
|
|
727
|
-
case 963:
|
|
728
|
-
return 110 === a.charCodeAt(5) ? '-webkit-' + a + a : a;
|
|
729
|
-
|
|
730
|
-
case 1009:
|
|
731
|
-
if (100 !== a.charCodeAt(4)) break;
|
|
732
|
-
|
|
733
|
-
case 969:
|
|
734
|
-
case 942:
|
|
735
|
-
return '-webkit-' + a + a;
|
|
736
|
-
|
|
737
|
-
case 978:
|
|
738
|
-
return '-webkit-' + a + '-moz-' + a + a;
|
|
739
|
-
|
|
740
|
-
case 1019:
|
|
741
|
-
case 983:
|
|
742
|
-
return '-webkit-' + a + '-moz-' + a + '-ms-' + a + a;
|
|
743
|
-
|
|
744
|
-
case 883:
|
|
745
|
-
if (45 === a.charCodeAt(8)) return '-webkit-' + a + a;
|
|
746
|
-
if (0 < a.indexOf('image-set(', 11)) return a.replace(ja, '$1-webkit-$2') + a;
|
|
747
|
-
break;
|
|
748
|
-
|
|
749
|
-
case 932:
|
|
750
|
-
if (45 === a.charCodeAt(4)) switch (a.charCodeAt(5)) {
|
|
751
|
-
case 103:
|
|
752
|
-
return '-webkit-box-' + a.replace('-grow', '') + '-webkit-' + a + '-ms-' + a.replace('grow', 'positive') + a;
|
|
753
|
-
|
|
754
|
-
case 115:
|
|
755
|
-
return '-webkit-' + a + '-ms-' + a.replace('shrink', 'negative') + a;
|
|
756
|
-
|
|
757
|
-
case 98:
|
|
758
|
-
return '-webkit-' + a + '-ms-' + a.replace('basis', 'preferred-size') + a;
|
|
759
|
-
}
|
|
760
|
-
return '-webkit-' + a + '-ms-' + a + a;
|
|
761
|
-
|
|
762
|
-
case 964:
|
|
763
|
-
return '-webkit-' + a + '-ms-flex-' + a + a;
|
|
764
|
-
|
|
765
|
-
case 1023:
|
|
766
|
-
if (99 !== a.charCodeAt(8)) break;
|
|
767
|
-
b = a.substring(a.indexOf(':', 15)).replace('flex-', '').replace('space-between', 'justify');
|
|
768
|
-
return '-webkit-box-pack' + b + '-webkit-' + a + '-ms-flex-pack' + b + a;
|
|
769
|
-
|
|
770
|
-
case 1005:
|
|
771
|
-
return ka.test(a) ? a.replace(aa, ':-webkit-') + a.replace(aa, ':-moz-') + a : a;
|
|
772
|
-
|
|
773
|
-
case 1e3:
|
|
774
|
-
b = a.substring(13).trim();
|
|
775
|
-
c = b.indexOf('-') + 1;
|
|
776
|
-
|
|
777
|
-
switch (b.charCodeAt(0) + b.charCodeAt(c)) {
|
|
778
|
-
case 226:
|
|
779
|
-
b = a.replace(G, 'tb');
|
|
780
|
-
break;
|
|
781
|
-
|
|
782
|
-
case 232:
|
|
783
|
-
b = a.replace(G, 'tb-rl');
|
|
784
|
-
break;
|
|
785
|
-
|
|
786
|
-
case 220:
|
|
787
|
-
b = a.replace(G, 'lr');
|
|
788
|
-
break;
|
|
789
|
-
|
|
790
|
-
default:
|
|
791
|
-
return a;
|
|
792
|
-
}
|
|
793
|
-
|
|
794
|
-
return '-webkit-' + a + '-ms-' + b + a;
|
|
795
|
-
|
|
796
|
-
case 1017:
|
|
797
|
-
if (-1 === a.indexOf('sticky', 9)) break;
|
|
798
|
-
|
|
799
|
-
case 975:
|
|
800
|
-
c = (a = d).length - 10;
|
|
801
|
-
b = (33 === a.charCodeAt(c) ? a.substring(0, c) : a).substring(d.indexOf(':', 7) + 1).trim();
|
|
802
|
-
|
|
803
|
-
switch (m = b.charCodeAt(0) + (b.charCodeAt(7) | 0)) {
|
|
804
|
-
case 203:
|
|
805
|
-
if (111 > b.charCodeAt(8)) break;
|
|
806
|
-
|
|
807
|
-
case 115:
|
|
808
|
-
a = a.replace(b, '-webkit-' + b) + ';' + a;
|
|
809
|
-
break;
|
|
810
|
-
|
|
811
|
-
case 207:
|
|
812
|
-
case 102:
|
|
813
|
-
a = a.replace(b, '-webkit-' + (102 < m ? 'inline-' : '') + 'box') + ';' + a.replace(b, '-webkit-' + b) + ';' + a.replace(b, '-ms-' + b + 'box') + ';' + a;
|
|
814
|
-
}
|
|
815
|
-
|
|
816
|
-
return a + ';';
|
|
817
|
-
|
|
818
|
-
case 938:
|
|
819
|
-
if (45 === a.charCodeAt(5)) switch (a.charCodeAt(6)) {
|
|
820
|
-
case 105:
|
|
821
|
-
return b = a.replace('-items', ''), '-webkit-' + a + '-webkit-box-' + b + '-ms-flex-' + b + a;
|
|
822
|
-
|
|
823
|
-
case 115:
|
|
824
|
-
return '-webkit-' + a + '-ms-flex-item-' + a.replace(ba, '') + a;
|
|
825
|
-
|
|
826
|
-
default:
|
|
827
|
-
return '-webkit-' + a + '-ms-flex-line-pack' + a.replace('align-content', '').replace(ba, '') + a;
|
|
828
|
-
}
|
|
829
|
-
break;
|
|
830
|
-
|
|
831
|
-
case 973:
|
|
832
|
-
case 989:
|
|
833
|
-
if (45 !== a.charCodeAt(3) || 122 === a.charCodeAt(4)) break;
|
|
834
|
-
|
|
835
|
-
case 931:
|
|
836
|
-
case 953:
|
|
837
|
-
if (!0 === la.test(d)) return 115 === (b = d.substring(d.indexOf(':') + 1)).charCodeAt(0) ? P(d.replace('stretch', 'fill-available'), c, e, h).replace(':fill-available', ':stretch') : a.replace(b, '-webkit-' + b) + a.replace(b, '-moz-' + b.replace('fill-', '')) + a;
|
|
838
|
-
break;
|
|
839
|
-
|
|
840
|
-
case 962:
|
|
841
|
-
if (a = '-webkit-' + a + (102 === a.charCodeAt(5) ? '-ms-' + a : '') + a, 211 === e + h && 105 === a.charCodeAt(13) && 0 < a.indexOf('transform', 10)) return a.substring(0, a.indexOf(';', 27) + 1).replace(ma, '$1-webkit-$2') + a;
|
|
842
|
-
}
|
|
843
|
-
|
|
844
|
-
return a;
|
|
845
|
-
}
|
|
846
|
-
|
|
847
|
-
function L(d, c) {
|
|
848
|
-
var e = d.indexOf(1 === c ? ':' : '{'),
|
|
849
|
-
h = d.substring(0, 3 !== c ? e : 10);
|
|
850
|
-
e = d.substring(e + 1, d.length - 1);
|
|
851
|
-
return R(2 !== c ? h : h.replace(na, '$1'), e, c);
|
|
852
|
-
}
|
|
853
|
-
|
|
854
|
-
function ea(d, c) {
|
|
855
|
-
var e = P(c, c.charCodeAt(0), c.charCodeAt(1), c.charCodeAt(2));
|
|
856
|
-
return e !== c + ';' ? e.replace(oa, ' or ($1)').substring(4) : '(' + c + ')';
|
|
857
|
-
}
|
|
858
|
-
|
|
859
|
-
function H(d, c, e, h, a, m, b, v, n, q) {
|
|
860
|
-
for (var g = 0, x = c, w; g < A; ++g) {
|
|
861
|
-
switch (w = S[g].call(B, d, x, e, h, a, m, b, v, n, q)) {
|
|
862
|
-
case void 0:
|
|
863
|
-
case !1:
|
|
864
|
-
case !0:
|
|
865
|
-
case null:
|
|
866
|
-
break;
|
|
867
|
-
|
|
868
|
-
default:
|
|
869
|
-
x = w;
|
|
870
|
-
}
|
|
871
|
-
}
|
|
872
|
-
|
|
873
|
-
if (x !== c) return x;
|
|
874
|
-
}
|
|
875
|
-
|
|
876
|
-
function T(d) {
|
|
877
|
-
switch (d) {
|
|
878
|
-
case void 0:
|
|
879
|
-
case null:
|
|
880
|
-
A = S.length = 0;
|
|
881
|
-
break;
|
|
882
|
-
|
|
883
|
-
default:
|
|
884
|
-
if ('function' === typeof d) S[A++] = d;else if ('object' === _typeof(d)) for (var c = 0, e = d.length; c < e; ++c) {
|
|
885
|
-
T(d[c]);
|
|
886
|
-
} else Y = !!d | 0;
|
|
887
|
-
}
|
|
888
|
-
|
|
889
|
-
return T;
|
|
890
|
-
}
|
|
891
|
-
|
|
892
|
-
function U(d) {
|
|
893
|
-
d = d.prefix;
|
|
894
|
-
void 0 !== d && (R = null, d ? 'function' !== typeof d ? w = 1 : (w = 2, R = d) : w = 0);
|
|
895
|
-
return U;
|
|
896
|
-
}
|
|
897
|
-
|
|
898
|
-
function B(d, c) {
|
|
899
|
-
var e = d;
|
|
900
|
-
33 > e.charCodeAt(0) && (e = e.trim());
|
|
901
|
-
V = e;
|
|
902
|
-
e = [V];
|
|
903
|
-
|
|
904
|
-
if (0 < A) {
|
|
905
|
-
var h = H(-1, c, e, e, D, z, 0, 0, 0, 0);
|
|
906
|
-
void 0 !== h && 'string' === typeof h && (c = h);
|
|
907
|
-
}
|
|
908
|
-
|
|
909
|
-
var a = M(O, e, c, 0, 0);
|
|
910
|
-
0 < A && (h = H(-2, a, e, e, D, z, a.length, 0, 0, 0), void 0 !== h && (a = h));
|
|
911
|
-
V = '';
|
|
912
|
-
E = 0;
|
|
913
|
-
z = D = 1;
|
|
914
|
-
return a;
|
|
915
|
-
}
|
|
916
|
-
|
|
917
|
-
var ca = /^\0+/g,
|
|
918
|
-
N = /[\0\r\f]/g,
|
|
919
|
-
aa = /: */g,
|
|
920
|
-
ka = /zoo|gra/,
|
|
921
|
-
ma = /([,: ])(transform)/g,
|
|
922
|
-
ia = /,\r+?/g,
|
|
923
|
-
F = /([\t\r\n ])*\f?&/g,
|
|
924
|
-
fa = /@(k\w+)\s*(\S*)\s*/,
|
|
925
|
-
Q = /::(place)/g,
|
|
926
|
-
ha = /:(read-only)/g,
|
|
927
|
-
G = /[svh]\w+-[tblr]{2}/,
|
|
928
|
-
da = /\(\s*(.*)\s*\)/g,
|
|
929
|
-
oa = /([\s\S]*?);/g,
|
|
930
|
-
ba = /-self|flex-/g,
|
|
931
|
-
na = /[^]*?(:[rp][el]a[\w-]+)[^]*/,
|
|
932
|
-
la = /stretch|:\s*\w+\-(?:conte|avail)/,
|
|
933
|
-
ja = /([^-])(image-set\()/,
|
|
934
|
-
z = 1,
|
|
935
|
-
D = 1,
|
|
936
|
-
E = 0,
|
|
937
|
-
w = 1,
|
|
938
|
-
O = [],
|
|
939
|
-
S = [],
|
|
940
|
-
A = 0,
|
|
941
|
-
R = null,
|
|
942
|
-
Y = 0,
|
|
943
|
-
V = '';
|
|
944
|
-
B.use = T;
|
|
945
|
-
B.set = U;
|
|
946
|
-
void 0 !== W && U(W);
|
|
947
|
-
return B;
|
|
948
|
-
}
|
|
949
|
-
|
|
950
|
-
var stylisInstance;
|
|
951
|
-
/**
|
|
952
|
-
* Transpiles CSS Modules content to CSS rules.
|
|
953
|
-
*/
|
|
954
|
-
|
|
955
|
-
var transpile = function transpile(selector, content) {
|
|
956
|
-
if (!stylisInstance) {
|
|
957
|
-
stylisInstance = new stylis_min();
|
|
958
|
-
}
|
|
959
|
-
|
|
960
|
-
return stylisInstance(selector, content);
|
|
961
|
-
};
|
|
962
|
-
|
|
963
|
-
exports.attachRules = attachRules;
|
|
964
|
-
exports.createSelector = createSelector;
|
|
965
|
-
exports.css = css;
|
|
966
|
-
exports.keyframes = keyframes;
|
|
967
|
-
exports.referenceRules = referenceRules;
|
|
968
|
-
exports.transpile = transpile;
|
|
1
|
+
Object.defineProperty(exports,"__esModule",{value:!0});var e=require("@emotion/hash"),r=require("@rocket.chat/memo"),n=require("@rocket.chat/css-supports"),t=require("@rocket.chat/stylis-logical-props-middleware");function c(e){return e&&"object"==typeof e&&"default"in e?e:{default:e}}var a,u,s=c(e),o=function(e){return e?"rcx-css-"+s.default(e):"none"},i=function(e){return e.replace(/@|#|:/g,(function(e){return"\\"+e}))},f=void 0,l=function(){return f?[f,function(){return""}]:[f=[],function(){var e=(f||[]).join("");return f=void 0,e}]},p=r.memoize((function(e){return Object.freeze((function(){return e}))})),d=function(e,r){return"function"==typeof e||"function"==typeof e?d(e.apply(void 0,r),r):!1===e||null==e?"":Array.isArray(e)?e.map((function(e){return d(e,r)})).join(""):String(e)},h=function(e,r,n){var t=e[0],c=e.slice(1);return r.reduce((function(e,r,t){return e+d(r,n)+c[t]}),t).trim()},m=function(){if(!a){var e=document.getElementById("rcx-styles");if(e)return a=e}return a||((a=document.createElement("style")).id="rcx-styles",a.appendChild(document.createTextNode("")),document.head&&document.head.appendChild(a)),a},v=function(){if(!u){var e=m(),r=e.sheet||Array.from(document.styleSheets).find((function(r){return r.ownerNode===e}));if(!r)throw Error("could not get style sheet");u=r}return u},b=function(e){var r={};return function(n){var t=s.default(n);if(!r[t]){var c=e(n),a=0;r[t]={ref:function(){++a},unref:function(){var e;e=function(){0==--a&&(c(),delete r[t])},"undefined"!=typeof window&&"function"==typeof window.queueMicrotask?window.queueMicrotask(e):Promise.resolve().then(e)}}}return r[t].ref(),r[t].unref}},w="undefined"==typeof window&&function(){return function(){}}||"production"===process.env.NODE_ENV&&!!CSSStyleSheet.prototype.insertRule&&b((function(e){var r=v(),n=r.insertRule("@media all{"+e+"}",r.cssRules.length),t=r.cssRules[n];return function(){var e=Array.prototype.findIndex.call(r.cssRules,(function(e){return e===t}));r.deleteRule(e)}}))||b((function(e){var r=m(),n=document.createTextNode(e);return r.appendChild(n),function(){return n.remove()}})),k="-ms-",g="-moz-",y="-webkit-",$=Math.abs,x=String.fromCharCode,j=Object.assign;function C(e){return e.trim()}function S(e,r,n){return e.replace(r,n)}function N(e,r){return e.indexOf(r)}function z(e,r){return 0|e.charCodeAt(r)}function A(e,r,n){return e.slice(r,n)}function R(e){return e.length}function q(e){return e.length}function O(e,r){return r.push(e),e}var E=1,M=1,P=0,_=0,I=0,T="";function B(e,r,n,t,c,a,u){return{value:e,root:r,parent:n,type:t,props:c,children:a,line:E,column:M,length:u,return:""}}function D(e,r){return j(B("",null,null,"",null,null,0),e,{length:-e.length},r)}function L(){return I=_>0?z(T,--_):0,M--,10===I&&(M=1,E--),I}function V(){return I=_<P?z(T,_++):0,M++,10===I&&(M=1,E++),I}function F(){return z(T,_)}function G(){return _}function H(e,r){return A(T,e,r)}function J(e){switch(e){case 0:case 9:case 10:case 13:case 32:return 5;case 33:case 43:case 44:case 47:case 62:case 64:case 126:case 59:case 123:case 125:return 4;case 58:return 3;case 34:case 39:case 40:case 91:return 2;case 41:case 93:return 1}return 0}function K(e){return C(H(_-1,W(91===e?e+2:40===e?e+1:e)))}function Q(e){for(;(I=F())&&I<33;)V();return J(e)>2||J(I)>3?"":" "}function U(e,r){for(;--r&&V()&&!(I<48||I>102||I>57&&I<65||I>70&&I<97););return H(e,G()+(r<6&&32==F()&&32==V()))}function W(e){for(;V();)switch(I){case e:return _;case 34:case 39:34!==e&&39!==e&&W(I);break;case 40:41===e&&W(e);break;case 92:V()}return _}function X(e,r){for(;V()&&e+I!==57&&(e+I!==84||47!==F()););return"/*"+H(r,_-1)+"*"+x(47===e?e:V())}function Y(e){for(;!J(F());)V();return H(e,_)}function Z(e){return function(e){return T="",e}(ee("",null,null,null,[""],e=function(e){return E=M=1,P=R(T=e),_=0,[]}(e),0,[0],e))}function ee(e,r,n,t,c,a,u,s,o){for(var i=0,f=0,l=u,p=0,d=0,h=0,m=1,v=1,b=1,w=0,k="",g=c,y=a,$=t,j=k;v;)switch(h=w,w=V()){case 40:if(108!=h&&58==j.charCodeAt(l-1)){-1!=N(j+=S(K(w),"&","&\f"),"&\f")&&(b=-1);break}case 34:case 39:case 91:j+=K(w);break;case 9:case 10:case 13:case 32:j+=Q(h);break;case 92:j+=U(G()-1,7);continue;case 47:switch(F()){case 42:case 47:O(ne(X(V(),G()),r,n),o);break;default:j+="/"}break;case 123*m:s[i++]=R(j)*b;case 125*m:case 59:case 0:switch(w){case 0:case 125:v=0;case 59+f:d>0&&R(j)-l&&O(d>32?te(j+";",t,n,l-1):te(S(j," ","")+";",t,n,l-2),o);break;case 59:j+=";";default:if(O($=re(j,r,n,i,f,c,s,k,g=[],y=[],l),a),123===w)if(0===f)ee(j,r,$,$,g,a,l,s,y);else switch(p){case 100:case 109:case 115:ee(e,$,$,t&&O(re(e,$,$,0,0,c,s,k,c,g=[],l),y),c,y,l,s,t?g:y);break;default:ee(j,$,$,$,[""],y,0,s,y)}}i=f=d=0,m=b=1,k=j="",l=u;break;case 58:l=1+R(j),d=h;default:if(m<1)if(123==w)--m;else if(125==w&&0==m++&&125==L())continue;switch(j+=x(w),w*m){case 38:b=f>0?1:(j+="\f",-1);break;case 44:s[i++]=(R(j)-1)*b,b=1;break;case 64:45===F()&&(j+=K(V())),p=F(),f=l=R(k=j+=Y(G())),w++;break;case 45:45===h&&2==R(j)&&(m=0)}}return a}function re(e,r,n,t,c,a,u,s,o,i,f){for(var l=c-1,p=0===c?a:[""],d=q(p),h=0,m=0,v=0;h<t;++h)for(var b=0,w=A(e,l+1,l=$(m=u[h])),k=e;b<d;++b)(k=C(m>0?p[b]+" "+w:S(w,/&\f/g,p[b])))&&(o[v++]=k);return B(e,r,n,0===c?"rule":s,o,i,f)}function ne(e,r,n){return B(e,r,n,"comm",x(I),A(e,2,-2),0)}function te(e,r,n,t){return B(e,r,n,"decl",A(e,0,t),A(e,t+1,-1),t)}function ce(e,r){switch(function(e,r){return(((r<<2^z(e,0))<<2^z(e,1))<<2^z(e,2))<<2^z(e,3)}(e,r)){case 5103:return y+"print-"+e+e;case 5737:case 4201:case 3177:case 3433:case 1641:case 4457:case 2921:case 5572:case 6356:case 5844:case 3191:case 6645:case 3005:case 6391:case 5879:case 5623:case 6135:case 4599:case 4855:case 4215:case 6389:case 5109:case 5365:case 5621:case 3829:return y+e+e;case 5349:case 4246:case 4810:case 6968:case 2756:return y+e+g+e+k+e+e;case 6828:case 4268:return y+e+k+e+e;case 6165:return y+e+k+"flex-"+e+e;case 5187:return y+e+S(e,/(\w+).+(:[^]+)/,"-webkit-box-$1$2-ms-flex-$1$2")+e;case 5443:return y+e+k+"flex-item-"+S(e,/flex-|-self/,"")+e;case 4675:return y+e+k+"flex-line-pack"+S(e,/align-content|flex-|-self/,"")+e;case 5548:return y+e+k+S(e,"shrink","negative")+e;case 5292:return y+e+k+S(e,"basis","preferred-size")+e;case 6060:return y+"box-"+S(e,"-grow","")+y+e+k+S(e,"grow","positive")+e;case 4554:return y+S(e,/([^-])(transform)/g,"$1-webkit-$2")+e;case 6187:return S(S(S(e,/(zoom-|grab)/,y+"$1"),/(image-set)/,y+"$1"),e,"")+e;case 5495:case 3959:return S(e,/(image-set\([^]*)/,y+"$1$`$1");case 4968:return S(S(e,/(.+:)(flex-)?(.*)/,"-webkit-box-pack:$3-ms-flex-pack:$3"),/s.+-b[^;]+/,"justify")+y+e+e;case 4095:case 3583:case 4068:case 2532:return S(e,/(.+)-inline(.+)/,y+"$1$2")+e;case 8116:case 7059:case 5753:case 5535:case 5445:case 5701:case 4933:case 4677:case 5533:case 5789:case 5021:case 4765:if(R(e)-1-r>6)switch(z(e,r+1)){case 109:if(45!==z(e,r+4))break;case 102:return S(e,/(.+:)(.+)-([^]+)/,"$1-webkit-$2-$3$1"+g+(108==z(e,r+3)?"$3":"$2-$3"))+e;case 115:return~N(e,"stretch")?ce(S(e,"stretch","fill-available"),r)+e:e}break;case 4949:if(115!==z(e,r+1))break;case 6444:switch(z(e,R(e)-3-(~N(e,"!important")&&10))){case 107:return S(e,":",":"+y)+e;case 101:return S(e,/(.+:)([^;!]+)(;|!.+)?/,"$1"+y+(45===z(e,14)?"inline-":"")+"box$3$1"+y+"$2$3$1"+k+"$2box$3")+e}break;case 5936:switch(z(e,r+11)){case 114:return y+e+k+S(e,/[svh]\w+-[tblr]{2}/,"tb")+e;case 108:return y+e+k+S(e,/[svh]\w+-[tblr]{2}/,"tb-rl")+e;case 45:return y+e+k+S(e,/[svh]\w+-[tblr]{2}/,"lr")+e}return y+e+k+e+e}return e}function ae(e,r){for(var n="",t=q(e),c=0;c<t;c++)n+=r(e[c],c,e,r)||"";return n}function ue(e,r,n,t){switch(e.type){case"@import":case"decl":return e.return=e.return||e.value;case"comm":return"";case"@keyframes":return e.return=e.value+"{"+ae(e.children,t)+"}";case"rule":e.value=e.props.join(",")}return R(n=ae(e.children,t))?e.return=e.value+"{"+n+"}":""}function se(e,r,n,t){if(e.length>-1&&!e.return)switch(e.type){case"decl":e.return=ce(e.value,e.length);break;case"@keyframes":return ae([D(e,{value:S(e.value,"@","@"+y)})],t);case"rule":if(e.length)return function(e,r){return e.map(r).join("")}(e.props,(function(r){switch(function(e,r){return(e=r.exec(e))?e[0]:e}(r,/(::plac\w+|:read-\w+)/)){case":read-only":case":read-write":return ae([D(e,{props:[S(r,/:(read-\w+)/,":-moz-$1")]})],t);case"::placeholder":return ae([D(e,{props:[S(r,/:(plac\w+)/,":-webkit-input-$1")]}),D(e,{props:[S(r,/:(plac\w+)/,":-moz-$1")]}),D(e,{props:[S(r,/:(plac\w+)/,k+"input-$1")]})],t)}return""}))}}var oe,ie=(void 0===oe&&(oe={}),function(e){var r=q(e);return function(n,t,c,a){for(var u="",s=0;s<r;s++)u+=e[s](n,t,c,a)||"";return u}}([t.createLogicalPropertiesMiddleware(oe),se,ue]));Object.defineProperty(exports,"cssSupports",{enumerable:!0,get:function(){return n.cssSupports}}),exports.attachRules=w,exports.createAnimationName=o,exports.createClassName=function(e){return"rcx-css-"+s.default(e)},exports.css=function(e){for(var r=[],n=1;n<arguments.length;n++)r[n-1]=arguments[n];if(!e||0===e.length||e.some((function(e){return"string"!=typeof e})))return p("");if(!r.some((function(e){return"function"==typeof e}))){var t=h(e,r,[]);return p(t)}return function(){for(var n=[],t=0;t<arguments.length;t++)n[t]=arguments[t];var c=l(),a=c[1],u=h(e,r,n);return u+a()}},exports.escapeName=i,exports.keyframes=function(e){for(var r=[],n=1;n<arguments.length;n++)r[n-1]=arguments[n];if(!e||0===e.length||e.some((function(e){return"string"!=typeof e})))return p("none");var t=function(){for(var n=[],t=0;t<arguments.length;t++)n[t]=arguments[t];var c=l(),a=c[0],u=c[1],s=h(e,r,n),f=o(s),p=i(f);return a.push("@keyframes "+p+"{"+s+"}"),u(),p};return t},exports.transpile=function(e,r,n){return void 0===n&&(n=ie),ae(Z(e+"{"+r+"}"),n)};
|
|
969
2
|
//# sourceMappingURL=index.js.map
|