@procore/saved-views 1.1.0-alpha.6 → 1.1.0-alpha.8
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/legacy/index.d.mts +1 -1
- package/dist/legacy/index.d.ts +1 -1
- package/dist/legacy/index.js +336 -348
- package/dist/legacy/index.mjs +332 -345
- package/dist/modern/index.d.mts +1 -1
- package/dist/modern/index.d.ts +1 -1
- package/dist/modern/index.js +335 -348
- package/dist/modern/index.mjs +331 -345
- package/package.json +3 -3
package/dist/modern/index.mjs
CHANGED
|
@@ -7,8 +7,7 @@ var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
|
7
7
|
var __require = /* @__PURE__ */ ((x2) => typeof require !== "undefined" ? require : typeof Proxy !== "undefined" ? new Proxy(x2, {
|
|
8
8
|
get: (a2, b2) => (typeof require !== "undefined" ? require : a2)[b2]
|
|
9
9
|
}) : x2)(function(x2) {
|
|
10
|
-
if (typeof require !== "undefined")
|
|
11
|
-
return require.apply(this, arguments);
|
|
10
|
+
if (typeof require !== "undefined") return require.apply(this, arguments);
|
|
12
11
|
throw Error('Dynamic require of "' + x2 + '" is not supported');
|
|
13
12
|
});
|
|
14
13
|
var __commonJS = (cb, mod) => function __require2() {
|
|
@@ -31,9 +30,9 @@ var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__ge
|
|
|
31
30
|
mod
|
|
32
31
|
));
|
|
33
32
|
|
|
34
|
-
//
|
|
33
|
+
// node_modules/lodash/lodash.js
|
|
35
34
|
var require_lodash = __commonJS({
|
|
36
|
-
"
|
|
35
|
+
"node_modules/lodash/lodash.js"(exports, module) {
|
|
37
36
|
"use strict";
|
|
38
37
|
(function() {
|
|
39
38
|
var undefined2;
|
|
@@ -366,7 +365,7 @@ var require_lodash = __commonJS({
|
|
|
366
365
|
var freeModule = freeExports && typeof module == "object" && module && !module.nodeType && module;
|
|
367
366
|
var moduleExports = freeModule && freeModule.exports === freeExports;
|
|
368
367
|
var freeProcess = moduleExports && freeGlobal.process;
|
|
369
|
-
var nodeUtil = function() {
|
|
368
|
+
var nodeUtil = (function() {
|
|
370
369
|
try {
|
|
371
370
|
var types = freeModule && freeModule.require && freeModule.require("util").types;
|
|
372
371
|
if (types) {
|
|
@@ -375,7 +374,7 @@ var require_lodash = __commonJS({
|
|
|
375
374
|
return freeProcess && freeProcess.binding && freeProcess.binding("util");
|
|
376
375
|
} catch (e) {
|
|
377
376
|
}
|
|
378
|
-
}();
|
|
377
|
+
})();
|
|
379
378
|
var nodeIsArrayBuffer = nodeUtil && nodeUtil.isArrayBuffer, nodeIsDate = nodeUtil && nodeUtil.isDate, nodeIsMap = nodeUtil && nodeUtil.isMap, nodeIsRegExp = nodeUtil && nodeUtil.isRegExp, nodeIsSet = nodeUtil && nodeUtil.isSet, nodeIsTypedArray = nodeUtil && nodeUtil.isTypedArray;
|
|
380
379
|
function apply(func, thisArg, args) {
|
|
381
380
|
switch (args.length) {
|
|
@@ -721,7 +720,7 @@ var require_lodash = __commonJS({
|
|
|
721
720
|
function unicodeWords(string3) {
|
|
722
721
|
return string3.match(reUnicodeWord) || [];
|
|
723
722
|
}
|
|
724
|
-
var runInContext = function runInContext2(context) {
|
|
723
|
+
var runInContext = (function runInContext2(context) {
|
|
725
724
|
context = context == null ? root : _3.defaults(root.Object(), context, _3.pick(root, contextProps));
|
|
726
725
|
var Array2 = context.Array, Date = context.Date, Error2 = context.Error, Function2 = context.Function, Math2 = context.Math, Object2 = context.Object, RegExp2 = context.RegExp, String2 = context.String, TypeError2 = context.TypeError;
|
|
727
726
|
var arrayProto = Array2.prototype, funcProto = Function2.prototype, objectProto = Object2.prototype;
|
|
@@ -729,10 +728,10 @@ var require_lodash = __commonJS({
|
|
|
729
728
|
var funcToString = funcProto.toString;
|
|
730
729
|
var hasOwnProperty = objectProto.hasOwnProperty;
|
|
731
730
|
var idCounter = 0;
|
|
732
|
-
var maskSrcKey = function() {
|
|
731
|
+
var maskSrcKey = (function() {
|
|
733
732
|
var uid = /[^.]+$/.exec(coreJsData && coreJsData.keys && coreJsData.keys.IE_PROTO || "");
|
|
734
733
|
return uid ? "Symbol(src)_1." + uid : "";
|
|
735
|
-
}();
|
|
734
|
+
})();
|
|
736
735
|
var nativeObjectToString = objectProto.toString;
|
|
737
736
|
var objectCtorString = funcToString.call(Object2);
|
|
738
737
|
var oldDash = root._;
|
|
@@ -740,14 +739,14 @@ var require_lodash = __commonJS({
|
|
|
740
739
|
"^" + funcToString.call(hasOwnProperty).replace(reRegExpChar, "\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g, "$1.*?") + "$"
|
|
741
740
|
);
|
|
742
741
|
var Buffer2 = moduleExports ? context.Buffer : undefined2, Symbol2 = context.Symbol, Uint8Array2 = context.Uint8Array, allocUnsafe = Buffer2 ? Buffer2.allocUnsafe : undefined2, getPrototype = overArg(Object2.getPrototypeOf, Object2), objectCreate = Object2.create, propertyIsEnumerable = objectProto.propertyIsEnumerable, splice = arrayProto.splice, spreadableSymbol = Symbol2 ? Symbol2.isConcatSpreadable : undefined2, symIterator = Symbol2 ? Symbol2.iterator : undefined2, symToStringTag = Symbol2 ? Symbol2.toStringTag : undefined2;
|
|
743
|
-
var defineProperty = function() {
|
|
742
|
+
var defineProperty = (function() {
|
|
744
743
|
try {
|
|
745
744
|
var func = getNative(Object2, "defineProperty");
|
|
746
745
|
func({}, "", {});
|
|
747
746
|
return func;
|
|
748
747
|
} catch (e) {
|
|
749
748
|
}
|
|
750
|
-
}();
|
|
749
|
+
})();
|
|
751
750
|
var ctxClearTimeout = context.clearTimeout !== root.clearTimeout && context.clearTimeout, ctxNow = Date && Date.now !== root.Date.now && Date.now, ctxSetTimeout = context.setTimeout !== root.setTimeout && context.setTimeout;
|
|
752
751
|
var nativeCeil = Math2.ceil, nativeFloor = Math2.floor, nativeGetSymbols = Object2.getOwnPropertySymbols, nativeIsBuffer = Buffer2 ? Buffer2.isBuffer : undefined2, nativeIsFinite = context.isFinite, nativeJoin = arrayProto.join, nativeKeys = overArg(Object2.keys, Object2), nativeMax = Math2.max, nativeMin = Math2.min, nativeNow = Date.now, nativeParseInt = context.parseInt, nativeRandom = Math2.random, nativeReverse = arrayProto.reverse;
|
|
753
752
|
var DataView = getNative(context, "DataView"), Map2 = getNative(context, "Map"), Promise2 = getNative(context, "Promise"), Set2 = getNative(context, "Set"), WeakMap2 = getNative(context, "WeakMap"), nativeCreate = getNative(Object2, "create");
|
|
@@ -766,7 +765,7 @@ var require_lodash = __commonJS({
|
|
|
766
765
|
}
|
|
767
766
|
return new LodashWrapper(value);
|
|
768
767
|
}
|
|
769
|
-
var baseCreate = function() {
|
|
768
|
+
var baseCreate = /* @__PURE__ */ (function() {
|
|
770
769
|
function object3() {
|
|
771
770
|
}
|
|
772
771
|
return function(proto) {
|
|
@@ -781,7 +780,7 @@ var require_lodash = __commonJS({
|
|
|
781
780
|
object3.prototype = undefined2;
|
|
782
781
|
return result2;
|
|
783
782
|
};
|
|
784
|
-
}();
|
|
783
|
+
})();
|
|
785
784
|
function baseLodash() {
|
|
786
785
|
}
|
|
787
786
|
function LodashWrapper(value, chainAll) {
|
|
@@ -4093,9 +4092,9 @@ var require_lodash = __commonJS({
|
|
|
4093
4092
|
var gte = createRelationalOperation(function(value, other) {
|
|
4094
4093
|
return value >= other;
|
|
4095
4094
|
});
|
|
4096
|
-
var isArguments = baseIsArguments(function() {
|
|
4095
|
+
var isArguments = baseIsArguments(/* @__PURE__ */ (function() {
|
|
4097
4096
|
return arguments;
|
|
4098
|
-
}()) ? baseIsArguments : function(value) {
|
|
4097
|
+
})()) ? baseIsArguments : function(value) {
|
|
4099
4098
|
return isObjectLike(value) && hasOwnProperty.call(value, "callee") && !propertyIsEnumerable.call(value, "callee");
|
|
4100
4099
|
};
|
|
4101
4100
|
var isArray = Array2.isArray;
|
|
@@ -5347,7 +5346,7 @@ var require_lodash = __commonJS({
|
|
|
5347
5346
|
lodash.each = forEach;
|
|
5348
5347
|
lodash.eachRight = forEachRight;
|
|
5349
5348
|
lodash.first = head;
|
|
5350
|
-
mixin(lodash, function() {
|
|
5349
|
+
mixin(lodash, (function() {
|
|
5351
5350
|
var source = {};
|
|
5352
5351
|
baseForOwn(lodash, function(func, methodName) {
|
|
5353
5352
|
if (!hasOwnProperty.call(lodash.prototype, methodName)) {
|
|
@@ -5355,7 +5354,7 @@ var require_lodash = __commonJS({
|
|
|
5355
5354
|
}
|
|
5356
5355
|
});
|
|
5357
5356
|
return source;
|
|
5358
|
-
}(), { "chain": false });
|
|
5357
|
+
})(), { "chain": false });
|
|
5359
5358
|
lodash.VERSION = VERSION;
|
|
5360
5359
|
arrayEach(["bind", "bindKey", "curry", "curryRight", "partial", "partialRight"], function(methodName) {
|
|
5361
5360
|
lodash[methodName].placeholder = lodash;
|
|
@@ -5515,7 +5514,7 @@ var require_lodash = __commonJS({
|
|
|
5515
5514
|
lodash.prototype[symIterator] = wrapperToIterator;
|
|
5516
5515
|
}
|
|
5517
5516
|
return lodash;
|
|
5518
|
-
};
|
|
5517
|
+
});
|
|
5519
5518
|
var _3 = runInContext();
|
|
5520
5519
|
if (typeof define == "function" && typeof define.amd == "object" && define.amd) {
|
|
5521
5520
|
root._ = _3;
|
|
@@ -5588,7 +5587,7 @@ var de_DE_default = {
|
|
|
5588
5587
|
required: "Kann nicht leer sein.",
|
|
5589
5588
|
duplicateName: "Es existiert bereits eine gespeicherte Ansicht mit diesem Namen. Bitte benennen Sie sie um und versuchen Sie es erneut.",
|
|
5590
5589
|
unknown: "Es ist ein Fehler aufgetreten. Bitte versuchen Sie es erneut.",
|
|
5591
|
-
title: "
|
|
5590
|
+
title: "Es tut uns leid, wir konnten diese gespeicherte Ansicht nicht {{mode}}",
|
|
5592
5591
|
description: {
|
|
5593
5592
|
create: "Bitte beheben Sie die folgenden Fehler und versuchen Sie erneut, die Datei zu erstellen",
|
|
5594
5593
|
update: "Bitte beheben Sie die folgenden Fehler und versuchen Sie erneut, die Aktualisierung durchzuf\xFChren"
|
|
@@ -5612,7 +5611,7 @@ var de_DE_default = {
|
|
|
5612
5611
|
success: "Der Link wurde erfolgreich erstellt und in die Zwischenablage kopiert."
|
|
5613
5612
|
},
|
|
5614
5613
|
errors: {
|
|
5615
|
-
fetch: "
|
|
5614
|
+
fetch: "Es tut uns leid, die gespeicherten Ansichten konnten nicht abgerufen werden. Versuchen Sie es noch einmal.",
|
|
5616
5615
|
create: "Die gespeicherte Ansicht konnte leider nicht erstellt werden. Versuchen Sie es noch einmal.",
|
|
5617
5616
|
update: "Die gespeicherte Ansicht konnte leider nicht aktualisiert werden. Versuchen Sie es noch einmal.",
|
|
5618
5617
|
delete: "Die gespeicherte Ansicht konnte leider nicht gel\xF6scht werden. Versuchen Sie es noch einmal.",
|
|
@@ -7099,9 +7098,7 @@ var __assign = function() {
|
|
|
7099
7098
|
__assign = Object.assign || function __assign2(t) {
|
|
7100
7099
|
for (var s, i = 1, n = arguments.length; i < n; i++) {
|
|
7101
7100
|
s = arguments[i];
|
|
7102
|
-
for (var p2 in s)
|
|
7103
|
-
if (Object.prototype.hasOwnProperty.call(s, p2))
|
|
7104
|
-
t[p2] = s[p2];
|
|
7101
|
+
for (var p2 in s) if (Object.prototype.hasOwnProperty.call(s, p2)) t[p2] = s[p2];
|
|
7105
7102
|
}
|
|
7106
7103
|
return t;
|
|
7107
7104
|
};
|
|
@@ -7109,9 +7106,8 @@ var __assign = function() {
|
|
|
7109
7106
|
};
|
|
7110
7107
|
function __rest(s, e) {
|
|
7111
7108
|
var t = {};
|
|
7112
|
-
for (var p2 in s)
|
|
7113
|
-
|
|
7114
|
-
t[p2] = s[p2];
|
|
7109
|
+
for (var p2 in s) if (Object.prototype.hasOwnProperty.call(s, p2) && e.indexOf(p2) < 0)
|
|
7110
|
+
t[p2] = s[p2];
|
|
7115
7111
|
if (s != null && typeof Object.getOwnPropertySymbols === "function")
|
|
7116
7112
|
for (var i = 0, p2 = Object.getOwnPropertySymbols(s); i < p2.length; i++) {
|
|
7117
7113
|
if (e.indexOf(p2[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p2[i]))
|
|
@@ -7120,14 +7116,12 @@ function __rest(s, e) {
|
|
|
7120
7116
|
return t;
|
|
7121
7117
|
}
|
|
7122
7118
|
function __spreadArray(to, from2, pack) {
|
|
7123
|
-
if (pack || arguments.length === 2)
|
|
7124
|
-
|
|
7125
|
-
if (ar
|
|
7126
|
-
|
|
7127
|
-
ar = Array.prototype.slice.call(from2, 0, i);
|
|
7128
|
-
ar[i] = from2[i];
|
|
7129
|
-
}
|
|
7119
|
+
if (pack || arguments.length === 2) for (var i = 0, l2 = from2.length, ar; i < l2; i++) {
|
|
7120
|
+
if (ar || !(i in from2)) {
|
|
7121
|
+
if (!ar) ar = Array.prototype.slice.call(from2, 0, i);
|
|
7122
|
+
ar[i] = from2[i];
|
|
7130
7123
|
}
|
|
7124
|
+
}
|
|
7131
7125
|
return to.concat(ar || Array.prototype.slice.call(from2));
|
|
7132
7126
|
}
|
|
7133
7127
|
|
|
@@ -7322,8 +7316,7 @@ import React13 from "react";
|
|
|
7322
7316
|
function memoize(fn) {
|
|
7323
7317
|
var cache = /* @__PURE__ */ Object.create(null);
|
|
7324
7318
|
return function(arg) {
|
|
7325
|
-
if (cache[arg] === void 0)
|
|
7326
|
-
cache[arg] = fn(arg);
|
|
7319
|
+
if (cache[arg] === void 0) cache[arg] = fn(arg);
|
|
7327
7320
|
return cache[arg];
|
|
7328
7321
|
};
|
|
7329
7322
|
}
|
|
@@ -7491,12 +7484,14 @@ function slice(begin, end) {
|
|
|
7491
7484
|
}
|
|
7492
7485
|
function token(type) {
|
|
7493
7486
|
switch (type) {
|
|
7487
|
+
// \0 \t \n \r \s whitespace token
|
|
7494
7488
|
case 0:
|
|
7495
7489
|
case 9:
|
|
7496
7490
|
case 10:
|
|
7497
7491
|
case 13:
|
|
7498
7492
|
case 32:
|
|
7499
7493
|
return 5;
|
|
7494
|
+
// ! + , / > @ ~ isolate token
|
|
7500
7495
|
case 33:
|
|
7501
7496
|
case 43:
|
|
7502
7497
|
case 44:
|
|
@@ -7504,17 +7499,21 @@ function token(type) {
|
|
|
7504
7499
|
case 62:
|
|
7505
7500
|
case 64:
|
|
7506
7501
|
case 126:
|
|
7502
|
+
// ; { } breakpoint token
|
|
7507
7503
|
case 59:
|
|
7508
7504
|
case 123:
|
|
7509
7505
|
case 125:
|
|
7510
7506
|
return 4;
|
|
7507
|
+
// : accompanied token
|
|
7511
7508
|
case 58:
|
|
7512
7509
|
return 3;
|
|
7510
|
+
// " ' ( [ opening delimit token
|
|
7513
7511
|
case 34:
|
|
7514
7512
|
case 39:
|
|
7515
7513
|
case 40:
|
|
7516
7514
|
case 91:
|
|
7517
7515
|
return 2;
|
|
7516
|
+
// ) ] closing delimit token
|
|
7518
7517
|
case 41:
|
|
7519
7518
|
case 93:
|
|
7520
7519
|
return 1;
|
|
@@ -7547,17 +7546,21 @@ function escaping(index, count) {
|
|
|
7547
7546
|
function delimiter(type) {
|
|
7548
7547
|
while (next())
|
|
7549
7548
|
switch (character) {
|
|
7549
|
+
// ] ) " '
|
|
7550
7550
|
case type:
|
|
7551
7551
|
return position;
|
|
7552
|
+
// " '
|
|
7552
7553
|
case 34:
|
|
7553
7554
|
case 39:
|
|
7554
7555
|
if (type !== 34 && type !== 39)
|
|
7555
7556
|
delimiter(character);
|
|
7556
7557
|
break;
|
|
7558
|
+
// (
|
|
7557
7559
|
case 40:
|
|
7558
7560
|
if (type === 41)
|
|
7559
7561
|
delimiter(type);
|
|
7560
7562
|
break;
|
|
7563
|
+
// \
|
|
7561
7564
|
case 92:
|
|
7562
7565
|
next();
|
|
7563
7566
|
break;
|
|
@@ -7600,55 +7603,64 @@ function parse(value, root, parent, rule, rules, rulesets, pseudo, points, decla
|
|
|
7600
7603
|
var characters2 = type;
|
|
7601
7604
|
while (scanning)
|
|
7602
7605
|
switch (previous = character2, character2 = next()) {
|
|
7606
|
+
// (
|
|
7603
7607
|
case 40:
|
|
7604
7608
|
if (previous != 108 && charat(characters2, length2 - 1) == 58) {
|
|
7605
7609
|
if (indexof(characters2 += replace(delimit(character2), "&", "&\f"), "&\f", abs(index ? points[index - 1] : 0)) != -1)
|
|
7606
7610
|
ampersand = -1;
|
|
7607
7611
|
break;
|
|
7608
7612
|
}
|
|
7613
|
+
// " ' [
|
|
7609
7614
|
case 34:
|
|
7610
7615
|
case 39:
|
|
7611
7616
|
case 91:
|
|
7612
7617
|
characters2 += delimit(character2);
|
|
7613
7618
|
break;
|
|
7619
|
+
// \t \n \r \s
|
|
7614
7620
|
case 9:
|
|
7615
7621
|
case 10:
|
|
7616
7622
|
case 13:
|
|
7617
7623
|
case 32:
|
|
7618
7624
|
characters2 += whitespace(previous);
|
|
7619
7625
|
break;
|
|
7626
|
+
// \
|
|
7620
7627
|
case 92:
|
|
7621
7628
|
characters2 += escaping(caret() - 1, 7);
|
|
7622
7629
|
continue;
|
|
7630
|
+
// /
|
|
7623
7631
|
case 47:
|
|
7624
7632
|
switch (peek()) {
|
|
7625
7633
|
case 42:
|
|
7626
7634
|
case 47:
|
|
7627
7635
|
append(comment(commenter(next(), caret()), root, parent, declarations), declarations);
|
|
7628
|
-
if ((token(previous || 1) == 5 || token(peek() || 1) == 5) && strlen(characters2) && substr(characters2, -1, void 0) !== " ")
|
|
7629
|
-
characters2 += " ";
|
|
7636
|
+
if ((token(previous || 1) == 5 || token(peek() || 1) == 5) && strlen(characters2) && substr(characters2, -1, void 0) !== " ") characters2 += " ";
|
|
7630
7637
|
break;
|
|
7631
7638
|
default:
|
|
7632
7639
|
characters2 += "/";
|
|
7633
7640
|
}
|
|
7634
7641
|
break;
|
|
7642
|
+
// {
|
|
7635
7643
|
case 123 * variable:
|
|
7636
7644
|
points[index++] = strlen(characters2) * ampersand;
|
|
7645
|
+
// } ; \0
|
|
7637
7646
|
case 125 * variable:
|
|
7638
7647
|
case 59:
|
|
7639
7648
|
case 0:
|
|
7640
7649
|
switch (character2) {
|
|
7650
|
+
// \0 }
|
|
7641
7651
|
case 0:
|
|
7642
7652
|
case 125:
|
|
7643
7653
|
scanning = 0;
|
|
7654
|
+
// ;
|
|
7644
7655
|
case 59 + offset:
|
|
7645
|
-
if (ampersand == -1)
|
|
7646
|
-
characters2 = replace(characters2, /\f/g, "");
|
|
7656
|
+
if (ampersand == -1) characters2 = replace(characters2, /\f/g, "");
|
|
7647
7657
|
if (property > 0 && (strlen(characters2) - length2 || variable === 0 && previous === 47))
|
|
7648
7658
|
append(property > 32 ? declaration(characters2 + ";", rule, parent, length2 - 1, declarations) : declaration(replace(characters2, " ", "") + ";", rule, parent, length2 - 2, declarations), declarations);
|
|
7649
7659
|
break;
|
|
7660
|
+
// @ ;
|
|
7650
7661
|
case 59:
|
|
7651
7662
|
characters2 += ";";
|
|
7663
|
+
// { rule/at-rule
|
|
7652
7664
|
default:
|
|
7653
7665
|
append(reference = ruleset(characters2, root, parent, index, offset, rules, points, type, props = [], children = [], length2, rulesets), rulesets);
|
|
7654
7666
|
if (character2 === 123)
|
|
@@ -7656,26 +7668,26 @@ function parse(value, root, parent, rule, rules, rulesets, pseudo, points, decla
|
|
|
7656
7668
|
parse(characters2, root, reference, reference, props, rulesets, length2, points, children);
|
|
7657
7669
|
else {
|
|
7658
7670
|
switch (atrule) {
|
|
7671
|
+
// c(ontainer)
|
|
7659
7672
|
case 99:
|
|
7660
|
-
if (charat(characters2, 3) === 110)
|
|
7661
|
-
|
|
7673
|
+
if (charat(characters2, 3) === 110) break;
|
|
7674
|
+
// l(ayer)
|
|
7662
7675
|
case 108:
|
|
7663
|
-
if (charat(characters2, 2) === 97)
|
|
7664
|
-
break;
|
|
7676
|
+
if (charat(characters2, 2) === 97) break;
|
|
7665
7677
|
default:
|
|
7666
7678
|
offset = 0;
|
|
7679
|
+
// d(ocument) m(edia) s(upports)
|
|
7667
7680
|
case 100:
|
|
7668
7681
|
case 109:
|
|
7669
7682
|
case 115:
|
|
7670
7683
|
}
|
|
7671
|
-
if (offset)
|
|
7672
|
-
|
|
7673
|
-
else
|
|
7674
|
-
parse(characters2, reference, reference, reference, [""], children, 0, points, children);
|
|
7684
|
+
if (offset) parse(value, reference, reference, rule && append(ruleset(value, reference, reference, 0, 0, rules, points, type, rules, props = [], length2, children), children), rules, children, length2, points, rule ? props : children);
|
|
7685
|
+
else parse(characters2, reference, reference, reference, [""], children, 0, points, children);
|
|
7675
7686
|
}
|
|
7676
7687
|
}
|
|
7677
7688
|
index = offset = property = 0, variable = ampersand = 1, type = characters2 = "", length2 = pseudo;
|
|
7678
7689
|
break;
|
|
7690
|
+
// :
|
|
7679
7691
|
case 58:
|
|
7680
7692
|
length2 = 1 + strlen(characters2), property = previous;
|
|
7681
7693
|
default:
|
|
@@ -7686,17 +7698,21 @@ function parse(value, root, parent, rule, rules, rulesets, pseudo, points, decla
|
|
|
7686
7698
|
continue;
|
|
7687
7699
|
}
|
|
7688
7700
|
switch (characters2 += from(character2), character2 * variable) {
|
|
7701
|
+
// &
|
|
7689
7702
|
case 38:
|
|
7690
7703
|
ampersand = offset > 0 ? 1 : (characters2 += "\f", -1);
|
|
7691
7704
|
break;
|
|
7705
|
+
// ,
|
|
7692
7706
|
case 44:
|
|
7693
7707
|
points[index++] = (strlen(characters2) - 1) * ampersand, ampersand = 1;
|
|
7694
7708
|
break;
|
|
7709
|
+
// @
|
|
7695
7710
|
case 64:
|
|
7696
7711
|
if (peek() === 45)
|
|
7697
7712
|
characters2 += delimit(next());
|
|
7698
7713
|
atrule = peek(), offset = length2 = strlen(type = characters2 += identifier(caret())), character2++;
|
|
7699
7714
|
break;
|
|
7715
|
+
// -
|
|
7700
7716
|
case 45:
|
|
7701
7717
|
if (previous === 45 && strlen(characters2) == 2)
|
|
7702
7718
|
variable = 0;
|
|
@@ -7724,8 +7740,10 @@ function declaration(value, root, parent, length2, siblings) {
|
|
|
7724
7740
|
// ../../node_modules/stylis/src/Prefixer.js
|
|
7725
7741
|
function prefix(value, length2, children) {
|
|
7726
7742
|
switch (hash(value, length2)) {
|
|
7743
|
+
// color-adjust
|
|
7727
7744
|
case 5103:
|
|
7728
7745
|
return WEBKIT + "print-" + value + value;
|
|
7746
|
+
// animation, animation-(delay|direction|duration|fill-mode|iteration-count|name|play-state|timing-function)
|
|
7729
7747
|
case 5737:
|
|
7730
7748
|
case 4201:
|
|
7731
7749
|
case 3177:
|
|
@@ -7733,77 +7751,101 @@ function prefix(value, length2, children) {
|
|
|
7733
7751
|
case 1641:
|
|
7734
7752
|
case 4457:
|
|
7735
7753
|
case 2921:
|
|
7754
|
+
// text-decoration, filter, clip-path, backface-visibility, column, box-decoration-break
|
|
7736
7755
|
case 5572:
|
|
7737
7756
|
case 6356:
|
|
7738
7757
|
case 5844:
|
|
7739
7758
|
case 3191:
|
|
7740
7759
|
case 6645:
|
|
7741
7760
|
case 3005:
|
|
7761
|
+
// background-clip, columns, column-(count|fill|gap|rule|rule-color|rule-style|rule-width|span|width)
|
|
7742
7762
|
case 4215:
|
|
7743
7763
|
case 6389:
|
|
7744
7764
|
case 5109:
|
|
7745
7765
|
case 5365:
|
|
7746
7766
|
case 5621:
|
|
7747
7767
|
case 3829:
|
|
7768
|
+
// mask, mask-image, mask-(mode|clip|size), mask-(repeat|origin), mask-position
|
|
7748
7769
|
case 6391:
|
|
7749
7770
|
case 5879:
|
|
7750
7771
|
case 5623:
|
|
7751
7772
|
case 6135:
|
|
7752
7773
|
case 4599:
|
|
7753
7774
|
return WEBKIT + value + value;
|
|
7775
|
+
// mask-composite
|
|
7754
7776
|
case 4855:
|
|
7755
7777
|
return WEBKIT + value.replace("add", "source-over").replace("substract", "source-out").replace("intersect", "source-in").replace("exclude", "xor") + value;
|
|
7778
|
+
// tab-size
|
|
7756
7779
|
case 4789:
|
|
7757
7780
|
return MOZ + value + value;
|
|
7781
|
+
// appearance, user-select, transform, hyphens, text-size-adjust
|
|
7758
7782
|
case 5349:
|
|
7759
7783
|
case 4246:
|
|
7760
7784
|
case 4810:
|
|
7761
7785
|
case 6968:
|
|
7762
7786
|
case 2756:
|
|
7763
7787
|
return WEBKIT + value + MOZ + value + MS + value + value;
|
|
7788
|
+
// writing-mode
|
|
7764
7789
|
case 5936:
|
|
7765
7790
|
switch (charat(value, length2 + 11)) {
|
|
7791
|
+
// vertical-l(r)
|
|
7766
7792
|
case 114:
|
|
7767
7793
|
return WEBKIT + value + MS + replace(value, /[svh]\w+-[tblr]{2}/, "tb") + value;
|
|
7794
|
+
// vertical-r(l)
|
|
7768
7795
|
case 108:
|
|
7769
7796
|
return WEBKIT + value + MS + replace(value, /[svh]\w+-[tblr]{2}/, "tb-rl") + value;
|
|
7797
|
+
// horizontal(-)tb
|
|
7770
7798
|
case 45:
|
|
7771
7799
|
return WEBKIT + value + MS + replace(value, /[svh]\w+-[tblr]{2}/, "lr") + value;
|
|
7772
7800
|
}
|
|
7801
|
+
// flex, flex-direction, scroll-snap-type, writing-mode
|
|
7773
7802
|
case 6828:
|
|
7774
7803
|
case 4268:
|
|
7775
7804
|
case 2903:
|
|
7776
7805
|
return WEBKIT + value + MS + value + value;
|
|
7806
|
+
// order
|
|
7777
7807
|
case 6165:
|
|
7778
7808
|
return WEBKIT + value + MS + "flex-" + value + value;
|
|
7809
|
+
// align-items
|
|
7779
7810
|
case 5187:
|
|
7780
7811
|
return WEBKIT + value + replace(value, /(\w+).+(:[^]+)/, WEBKIT + "box-$1$2" + MS + "flex-$1$2") + value;
|
|
7812
|
+
// align-self
|
|
7781
7813
|
case 5443:
|
|
7782
7814
|
return WEBKIT + value + MS + "flex-item-" + replace(value, /flex-|-self/g, "") + (!match(value, /flex-|baseline/) ? MS + "grid-row-" + replace(value, /flex-|-self/g, "") : "") + value;
|
|
7815
|
+
// align-content
|
|
7783
7816
|
case 4675:
|
|
7784
7817
|
return WEBKIT + value + MS + "flex-line-pack" + replace(value, /align-content|flex-|-self/g, "") + value;
|
|
7818
|
+
// flex-shrink
|
|
7785
7819
|
case 5548:
|
|
7786
7820
|
return WEBKIT + value + MS + replace(value, "shrink", "negative") + value;
|
|
7821
|
+
// flex-basis
|
|
7787
7822
|
case 5292:
|
|
7788
7823
|
return WEBKIT + value + MS + replace(value, "basis", "preferred-size") + value;
|
|
7824
|
+
// flex-grow
|
|
7789
7825
|
case 6060:
|
|
7790
7826
|
return WEBKIT + "box-" + replace(value, "-grow", "") + WEBKIT + value + MS + replace(value, "grow", "positive") + value;
|
|
7827
|
+
// transition
|
|
7791
7828
|
case 4554:
|
|
7792
7829
|
return WEBKIT + replace(value, /([^-])(transform)/g, "$1" + WEBKIT + "$2") + value;
|
|
7830
|
+
// cursor
|
|
7793
7831
|
case 6187:
|
|
7794
7832
|
return replace(replace(replace(value, /(zoom-|grab)/, WEBKIT + "$1"), /(image-set)/, WEBKIT + "$1"), value, "") + value;
|
|
7833
|
+
// background, background-image
|
|
7795
7834
|
case 5495:
|
|
7796
7835
|
case 3959:
|
|
7797
7836
|
return replace(value, /(image-set\([^]*)/, WEBKIT + "$1$`$1");
|
|
7837
|
+
// justify-content
|
|
7798
7838
|
case 4968:
|
|
7799
7839
|
return replace(replace(value, /(.+:)(flex-)?(.*)/, WEBKIT + "box-pack:$3" + MS + "flex-pack:$3"), /space-between/, "justify") + WEBKIT + value + value;
|
|
7840
|
+
// justify-self
|
|
7800
7841
|
case 4200:
|
|
7801
|
-
if (!match(value, /flex-|baseline/))
|
|
7802
|
-
return MS + "grid-column-align" + substr(value, length2) + value;
|
|
7842
|
+
if (!match(value, /flex-|baseline/)) return MS + "grid-column-align" + substr(value, length2) + value;
|
|
7803
7843
|
break;
|
|
7844
|
+
// grid-template-(columns|rows)
|
|
7804
7845
|
case 2592:
|
|
7805
7846
|
case 3360:
|
|
7806
7847
|
return MS + replace(value, "template-", "") + value;
|
|
7848
|
+
// grid-(row|column)-start
|
|
7807
7849
|
case 4384:
|
|
7808
7850
|
case 3616:
|
|
7809
7851
|
if (children && children.some(function(element, index) {
|
|
@@ -7812,16 +7854,19 @@ function prefix(value, length2, children) {
|
|
|
7812
7854
|
return ~indexof(value + (children = children[length2].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+/)) + ";";
|
|
7813
7855
|
}
|
|
7814
7856
|
return MS + replace(value, "-start", "") + value;
|
|
7857
|
+
// grid-(row|column)-end
|
|
7815
7858
|
case 4896:
|
|
7816
7859
|
case 4128:
|
|
7817
7860
|
return children && children.some(function(element) {
|
|
7818
7861
|
return match(element.props, /grid-\w+-start/);
|
|
7819
7862
|
}) ? value : MS + replace(replace(value, "-end", "-span"), "span ", "") + value;
|
|
7863
|
+
// (margin|padding)-inline-(start|end)
|
|
7820
7864
|
case 4095:
|
|
7821
7865
|
case 3583:
|
|
7822
7866
|
case 4068:
|
|
7823
7867
|
case 2532:
|
|
7824
7868
|
return replace(value, /(.+)-inline(.+)/, WEBKIT + "$1$2") + value;
|
|
7869
|
+
// (min|max)?(width|height|inline-size|block-size)
|
|
7825
7870
|
case 8116:
|
|
7826
7871
|
case 7059:
|
|
7827
7872
|
case 5753:
|
|
@@ -7836,32 +7881,41 @@ function prefix(value, length2, children) {
|
|
|
7836
7881
|
case 4765:
|
|
7837
7882
|
if (strlen(value) - 1 - length2 > 6)
|
|
7838
7883
|
switch (charat(value, length2 + 1)) {
|
|
7884
|
+
// (m)ax-content, (m)in-content
|
|
7839
7885
|
case 109:
|
|
7840
7886
|
if (charat(value, length2 + 4) !== 45)
|
|
7841
7887
|
break;
|
|
7888
|
+
// (f)ill-available, (f)it-content
|
|
7842
7889
|
case 102:
|
|
7843
7890
|
return replace(value, /(.+:)(.+)-([^]+)/, "$1" + WEBKIT + "$2-$3$1" + MOZ + (charat(value, length2 + 3) == 108 ? "$3" : "$2-$3")) + value;
|
|
7891
|
+
// (s)tretch
|
|
7844
7892
|
case 115:
|
|
7845
7893
|
return ~indexof(value, "stretch", 0) ? prefix(replace(value, "stretch", "fill-available"), length2, children) + value : value;
|
|
7846
7894
|
}
|
|
7847
7895
|
break;
|
|
7896
|
+
// grid-(column|row)
|
|
7848
7897
|
case 5152:
|
|
7849
7898
|
case 5920:
|
|
7850
7899
|
return replace(value, /(.+?):(\d+)(\s*\/\s*(span)?\s*(\d+))?(.*)/, function(_3, a2, b2, c2, d2, e, f2) {
|
|
7851
7900
|
return MS + a2 + ":" + b2 + f2 + (c2 ? MS + a2 + "-span:" + (d2 ? e : +e - +b2) + f2 : "") + value;
|
|
7852
7901
|
});
|
|
7902
|
+
// position: sticky
|
|
7853
7903
|
case 4949:
|
|
7854
7904
|
if (charat(value, length2 + 6) === 121)
|
|
7855
7905
|
return replace(value, ":", ":" + WEBKIT) + value;
|
|
7856
7906
|
break;
|
|
7907
|
+
// display: (flex|inline-flex|grid|inline-grid)
|
|
7857
7908
|
case 6444:
|
|
7858
7909
|
switch (charat(value, charat(value, 14) === 45 ? 18 : 11)) {
|
|
7910
|
+
// (inline-)?fle(x)
|
|
7859
7911
|
case 120:
|
|
7860
7912
|
return replace(value, /(.+:)([^;\s!]+)(;|(\s+)?!.+)?/, "$1" + WEBKIT + (charat(value, 14) === 45 ? "inline-" : "") + "box$3$1" + WEBKIT + "$2$3$1" + MS + "$2box$3") + value;
|
|
7913
|
+
// (inline-)?gri(d)
|
|
7861
7914
|
case 100:
|
|
7862
7915
|
return replace(value, ":", ":" + MS) + value;
|
|
7863
7916
|
}
|
|
7864
7917
|
break;
|
|
7918
|
+
// scroll-margin, scroll-margin-(top|right|bottom|left)
|
|
7865
7919
|
case 5719:
|
|
7866
7920
|
case 2647:
|
|
7867
7921
|
case 2135:
|
|
@@ -7882,8 +7936,7 @@ function serialize(children, callback) {
|
|
|
7882
7936
|
function stringify(element, index, children, callback) {
|
|
7883
7937
|
switch (element.type) {
|
|
7884
7938
|
case LAYER:
|
|
7885
|
-
if (element.children.length)
|
|
7886
|
-
break;
|
|
7939
|
+
if (element.children.length) break;
|
|
7887
7940
|
case IMPORT:
|
|
7888
7941
|
case NAMESPACE:
|
|
7889
7942
|
case DECLARATION:
|
|
@@ -7893,8 +7946,7 @@ function stringify(element, index, children, callback) {
|
|
|
7893
7946
|
case KEYFRAMES:
|
|
7894
7947
|
return element.return = element.value + "{" + serialize(element.children, callback) + "}";
|
|
7895
7948
|
case RULESET:
|
|
7896
|
-
if (!strlen(element.value = element.props.join(",")))
|
|
7897
|
-
return "";
|
|
7949
|
+
if (!strlen(element.value = element.props.join(","))) return "";
|
|
7898
7950
|
}
|
|
7899
7951
|
return strlen(children = serialize(element.children, callback)) ? element.return = element.value + "{" + children + "}" : "";
|
|
7900
7952
|
}
|
|
@@ -7930,12 +7982,14 @@ function prefixer(element, index, children, callback) {
|
|
|
7930
7982
|
if (element.length)
|
|
7931
7983
|
return combine(children = element.props, function(value) {
|
|
7932
7984
|
switch (match(value, callback = /(::plac\w+|:read-\w+)/)) {
|
|
7985
|
+
// :read-(only|write)
|
|
7933
7986
|
case ":read-only":
|
|
7934
7987
|
case ":read-write":
|
|
7935
7988
|
lift(copy(element, { props: [replace(value, /:(read-\w+)/, ":" + MOZ + "$1")] }));
|
|
7936
7989
|
lift(copy(element, { props: [value] }));
|
|
7937
7990
|
assign(element, { props: filter(children, callback) });
|
|
7938
7991
|
break;
|
|
7992
|
+
// :placeholder
|
|
7939
7993
|
case "::placeholder":
|
|
7940
7994
|
lift(copy(element, { props: [replace(value, /:(plac\w+)/, ":" + WEBKIT + "input-$1")] }));
|
|
7941
7995
|
lift(copy(element, { props: [replace(value, /:(plac\w+)/, ":" + MOZ + "$1")] }));
|
|
@@ -7961,17 +8015,14 @@ var h = void 0 === r.createContext;
|
|
|
7961
8015
|
var f = Boolean("boolean" == typeof SC_DISABLE_SPEEDY ? SC_DISABLE_SPEEDY : "undefined" != typeof process && void 0 !== process.env && void 0 !== process.env.REACT_APP_SC_DISABLE_SPEEDY && "" !== process.env.REACT_APP_SC_DISABLE_SPEEDY ? "false" !== process.env.REACT_APP_SC_DISABLE_SPEEDY && process.env.REACT_APP_SC_DISABLE_SPEEDY : "undefined" != typeof process && void 0 !== process.env && void 0 !== process.env.SC_DISABLE_SPEEDY && "" !== process.env.SC_DISABLE_SPEEDY ? "false" !== process.env.SC_DISABLE_SPEEDY && process.env.SC_DISABLE_SPEEDY : "production" !== process.env.NODE_ENV);
|
|
7962
8016
|
var y = "production" !== process.env.NODE_ENV ? { 1: "Cannot create styled-component for component: %s.\n\n", 2: "Can't collect styles once you've consumed a `ServerStyleSheet`'s styles! `ServerStyleSheet` is a one off instance for each server-side render cycle.\n\n- Are you trying to reuse it across renders?\n- Are you accidentally calling collectStyles twice?\n\n", 3: "Streaming SSR is only supported in a Node.js environment; Please do not try to call this method in the browser.\n\n", 4: "The `StyleSheetManager` expects a valid target or sheet prop!\n\n- Does this error occur on the client and is your target falsy?\n- Does this error occur on the server and is the sheet falsy?\n\n", 5: "The clone method cannot be used on the client!\n\n- Are you running in a client-like environment on the server?\n- Are you trying to run SSR on the client?\n\n", 6: "Trying to insert a new style tag, but the given Node is unmounted!\n\n- Are you using a custom target that isn't mounted?\n- Does your document not have a valid head element?\n- Have you accidentally removed a style tag manually?\n\n", 7: 'ThemeProvider: Please return an object from your "theme" prop function, e.g.\n\n```js\ntheme={() => ({})}\n```\n\n', 8: 'ThemeProvider: Please make your "theme" prop an object.\n\n', 9: "Missing document `<head>`\n\n", 10: "Cannot find a StyleSheet instance. Usually this happens if there are multiple copies of styled-components loaded at once. Check out this issue for how to troubleshoot and fix the common cases where this situation can happen: https://github.com/styled-components/styled-components/issues/1941#issuecomment-417862021\n\n", 11: "_This error was replaced with a dev-time warning, it will be deleted for v4 final._ [createGlobalStyle] received children which will not be rendered. Please use the component without passing children elements.\n\n", 12: "It seems you are interpolating a keyframe declaration (%s) into an untagged string. This was supported in styled-components v3, but is not longer supported in v4 as keyframes are now injected on-demand. Please wrap your string in the css\\`\\` helper which ensures the styles are injected correctly. See https://www.styled-components.com/docs/api#css\n\n", 13: "%s is not a styled component and cannot be referred to via component selector. See https://www.styled-components.com/docs/advanced#referring-to-other-components for more details.\n\n", 14: 'ThemeProvider: "theme" prop is required.\n\n', 15: "A stylis plugin has been supplied that is not named. We need a name for each plugin to be able to prevent styling collisions between different stylis configurations within the same app. Before you pass your plugin to `<StyleSheetManager stylisPlugins={[]}>`, please make sure each plugin is uniquely-named, e.g.\n\n```js\nObject.defineProperty(importedPlugin, 'name', { value: 'some-unique-name' });\n```\n\n", 16: "Reached the limit of how many styled components may be created at group %s.\nYou may only create up to 1,073,741,824 components. If you're creating components dynamically,\nas for instance in your render method then you may be running into this limitation.\n\n", 17: "CSSStyleSheet could not be found on HTMLStyleElement.\nHas styled-components' style tag been unmounted or altered by another script?\n", 18: "ThemeProvider: Please make sure your useTheme hook is within a `<ThemeProvider>`" } : {};
|
|
7963
8017
|
function v() {
|
|
7964
|
-
for (var e = [], t = 0; t < arguments.length; t++)
|
|
7965
|
-
|
|
7966
|
-
for (var n = e[0], r2 = [], o2 = 1, s = e.length; o2 < s; o2 += 1)
|
|
7967
|
-
r2.push(e[o2]);
|
|
8018
|
+
for (var e = [], t = 0; t < arguments.length; t++) e[t] = arguments[t];
|
|
8019
|
+
for (var n = e[0], r2 = [], o2 = 1, s = e.length; o2 < s; o2 += 1) r2.push(e[o2]);
|
|
7968
8020
|
return r2.forEach(function(e2) {
|
|
7969
8021
|
n = n.replace(/%[a-z]/, e2);
|
|
7970
8022
|
}), n;
|
|
7971
8023
|
}
|
|
7972
8024
|
function g(t) {
|
|
7973
|
-
for (var n = [], r2 = 1; r2 < arguments.length; r2++)
|
|
7974
|
-
n[r2 - 1] = arguments[r2];
|
|
8025
|
+
for (var n = [], r2 = 1; r2 < arguments.length; r2++) n[r2 - 1] = arguments[r2];
|
|
7975
8026
|
return "production" === process.env.NODE_ENV ? new Error("An error occurred. See https://github.com/styled-components/styled-components/blob/main/packages/styled-components/src/utils/errors.md#".concat(t, " for more information.").concat(n.length > 0 ? " Args: ".concat(n.join(", ")) : "")) : new Error(v.apply(void 0, __spreadArray([y[t]], n, false)).trim());
|
|
7976
8027
|
}
|
|
7977
8028
|
var S = 1 << 30;
|
|
@@ -7979,13 +8030,10 @@ var w = /* @__PURE__ */ new Map();
|
|
|
7979
8030
|
var b = /* @__PURE__ */ new Map();
|
|
7980
8031
|
var N = 1;
|
|
7981
8032
|
var C = function(e) {
|
|
7982
|
-
if (w.has(e))
|
|
7983
|
-
|
|
7984
|
-
for (; b.has(N); )
|
|
7985
|
-
N++;
|
|
8033
|
+
if (w.has(e)) return w.get(e);
|
|
8034
|
+
for (; b.has(N); ) N++;
|
|
7986
8035
|
var t = N++;
|
|
7987
|
-
if ("production" !== process.env.NODE_ENV && ((0 | t) < 0 || t > S))
|
|
7988
|
-
throw g(16, "".concat(t));
|
|
8036
|
+
if ("production" !== process.env.NODE_ENV && ((0 | t) < 0 || t > S)) throw g(16, "".concat(t));
|
|
7989
8037
|
return w.set(e, t), b.set(t, e), t;
|
|
7990
8038
|
};
|
|
7991
8039
|
var E = function(e, t) {
|
|
@@ -7995,14 +8043,12 @@ var _ = /invalid hook call/i;
|
|
|
7995
8043
|
var A = /* @__PURE__ */ new Set();
|
|
7996
8044
|
var I = function(t, n) {
|
|
7997
8045
|
if ("production" !== process.env.NODE_ENV) {
|
|
7998
|
-
if (h)
|
|
7999
|
-
return;
|
|
8046
|
+
if (h) return;
|
|
8000
8047
|
var o2 = n ? ' with the id of "'.concat(n, '"') : "", s = "The component ".concat(t).concat(o2, " has been created dynamically.\n") + "You may see this warning because you've called styled inside another component.\nTo resolve this only create new StyledComponents outside of any render method and function component.\nSee https://styled-components.com/docs/basics#define-styled-components-outside-of-the-render-method for more info.\n", i = console.error;
|
|
8001
8048
|
try {
|
|
8002
8049
|
var a2 = true;
|
|
8003
8050
|
console.error = function(t2) {
|
|
8004
|
-
for (var n2 = [], r2 = 1; r2 < arguments.length; r2++)
|
|
8005
|
-
n2[r2 - 1] = arguments[r2];
|
|
8051
|
+
for (var n2 = [], r2 = 1; r2 < arguments.length; r2++) n2[r2 - 1] = arguments[r2];
|
|
8006
8052
|
_.test(t2) ? (a2 = false, A.delete(s)) : i.apply(void 0, __spreadArray([t2], n2, false));
|
|
8007
8053
|
}, "function" == typeof r.useState && r.useState(null), a2 && !A.has(s) && (console.warn(s), A.add(s));
|
|
8008
8054
|
} catch (e) {
|
|
@@ -8029,14 +8075,12 @@ var M = function(e) {
|
|
|
8029
8075
|
};
|
|
8030
8076
|
function V(e) {
|
|
8031
8077
|
var t, n = "";
|
|
8032
|
-
for (t = Math.abs(e); t > 52; t = t / 52 | 0)
|
|
8033
|
-
n = M(t % 52) + n;
|
|
8078
|
+
for (t = Math.abs(e); t > 52; t = t / 52 | 0) n = M(t % 52) + n;
|
|
8034
8079
|
return (M(t % 52) + n).replace(k, "$1-$2");
|
|
8035
8080
|
}
|
|
8036
8081
|
var F;
|
|
8037
8082
|
var G = function(e, t) {
|
|
8038
|
-
for (var n = t.length; n; )
|
|
8039
|
-
e = 33 * e ^ t.charCodeAt(--n);
|
|
8083
|
+
for (var n = t.length; n; ) e = 33 * e ^ t.charCodeAt(--n);
|
|
8040
8084
|
return e;
|
|
8041
8085
|
};
|
|
8042
8086
|
var z = function(e) {
|
|
@@ -8052,8 +8096,8 @@ function $(e) {
|
|
|
8052
8096
|
return "string" == typeof e && ("production" === process.env.NODE_ENV || e.charAt(0) === e.charAt(0).toLowerCase());
|
|
8053
8097
|
}
|
|
8054
8098
|
var Y = "function" == typeof Symbol && Symbol.for;
|
|
8055
|
-
var W = Y ? Symbol.for("react.memo") : 60115;
|
|
8056
|
-
var q = Y ? Symbol.for("react.forward_ref") : 60112;
|
|
8099
|
+
var W = Y ? /* @__PURE__ */ Symbol.for("react.memo") : 60115;
|
|
8100
|
+
var q = Y ? /* @__PURE__ */ Symbol.for("react.forward_ref") : 60112;
|
|
8057
8101
|
var H = { childContextTypes: true, contextType: true, contextTypes: true, defaultProps: true, displayName: true, getDefaultProps: true, getDerivedStateFromError: true, getDerivedStateFromProps: true, mixins: true, propTypes: true, type: true };
|
|
8058
8102
|
var U = { name: true, length: true, prototype: true, caller: true, callee: true, arguments: true, arity: true };
|
|
8059
8103
|
var J = { $$typeof: true, compare: true, defaultProps: true, displayName: true, propTypes: true, type: true };
|
|
@@ -8105,83 +8149,62 @@ function ue(e) {
|
|
|
8105
8149
|
return null !== e && "object" == typeof e && e.constructor.name === Object.name && !("props" in e && e.$$typeof);
|
|
8106
8150
|
}
|
|
8107
8151
|
function le(e, t, n) {
|
|
8108
|
-
if (void 0 === n && (n = false), !n && !ue(e) && !Array.isArray(e))
|
|
8109
|
-
|
|
8110
|
-
if (
|
|
8111
|
-
for (var r2 = 0; r2 < t.length; r2++)
|
|
8112
|
-
e[r2] = le(e[r2], t[r2]);
|
|
8113
|
-
else if (ue(t))
|
|
8114
|
-
for (var r2 in t)
|
|
8115
|
-
e[r2] = le(e[r2], t[r2]);
|
|
8152
|
+
if (void 0 === n && (n = false), !n && !ue(e) && !Array.isArray(e)) return t;
|
|
8153
|
+
if (Array.isArray(t)) for (var r2 = 0; r2 < t.length; r2++) e[r2] = le(e[r2], t[r2]);
|
|
8154
|
+
else if (ue(t)) for (var r2 in t) e[r2] = le(e[r2], t[r2]);
|
|
8116
8155
|
return e;
|
|
8117
8156
|
}
|
|
8118
8157
|
function pe(e, t) {
|
|
8119
8158
|
Object.defineProperty(e, "toString", { value: t });
|
|
8120
8159
|
}
|
|
8121
|
-
var de = function() {
|
|
8160
|
+
var de = (function() {
|
|
8122
8161
|
function e(e2) {
|
|
8123
8162
|
this.groupSizes = new Uint32Array(512), this.length = 512, this.tag = e2, this._cGroup = 0, this._cIndex = 0;
|
|
8124
8163
|
}
|
|
8125
8164
|
return e.prototype.indexOfGroup = function(e2) {
|
|
8126
|
-
if (e2 === this._cGroup)
|
|
8127
|
-
return this._cIndex;
|
|
8165
|
+
if (e2 === this._cGroup) return this._cIndex;
|
|
8128
8166
|
var t = this._cIndex;
|
|
8129
|
-
if (e2 > this._cGroup)
|
|
8130
|
-
|
|
8131
|
-
t += this.groupSizes[n];
|
|
8132
|
-
else
|
|
8133
|
-
for (n = this._cGroup - 1; n >= e2; n--)
|
|
8134
|
-
t -= this.groupSizes[n];
|
|
8167
|
+
if (e2 > this._cGroup) for (var n = this._cGroup; n < e2; n++) t += this.groupSizes[n];
|
|
8168
|
+
else for (n = this._cGroup - 1; n >= e2; n--) t -= this.groupSizes[n];
|
|
8135
8169
|
return this._cGroup = e2, this._cIndex = t, t;
|
|
8136
8170
|
}, e.prototype.insertRules = function(e2, t) {
|
|
8137
8171
|
if (e2 >= this.groupSizes.length) {
|
|
8138
|
-
for (var n = this.groupSizes, r2 = n.length, o2 = r2; e2 >= o2; )
|
|
8139
|
-
if ((o2 <<= 1) < 0)
|
|
8140
|
-
throw g(16, "".concat(e2));
|
|
8172
|
+
for (var n = this.groupSizes, r2 = n.length, o2 = r2; e2 >= o2; ) if ((o2 <<= 1) < 0) throw g(16, "".concat(e2));
|
|
8141
8173
|
this.groupSizes = new Uint32Array(o2), this.groupSizes.set(n), this.length = o2;
|
|
8142
|
-
for (var s = r2; s < o2; s++)
|
|
8143
|
-
this.groupSizes[s] = 0;
|
|
8174
|
+
for (var s = r2; s < o2; s++) this.groupSizes[s] = 0;
|
|
8144
8175
|
}
|
|
8145
|
-
for (var i = this.indexOfGroup(e2 + 1), a2 = 0, c2 = (s = 0, t.length); s < c2; s++)
|
|
8146
|
-
this.tag.insertRule(i, t[s]) && (this.groupSizes[e2]++, i++, a2++);
|
|
8176
|
+
for (var i = this.indexOfGroup(e2 + 1), a2 = 0, c2 = (s = 0, t.length); s < c2; s++) this.tag.insertRule(i, t[s]) && (this.groupSizes[e2]++, i++, a2++);
|
|
8147
8177
|
a2 > 0 && this._cGroup > e2 && (this._cIndex += a2);
|
|
8148
8178
|
}, e.prototype.clearGroup = function(e2) {
|
|
8149
8179
|
if (e2 < this.length) {
|
|
8150
8180
|
var t = this.groupSizes[e2], n = this.indexOfGroup(e2), r2 = n + t;
|
|
8151
8181
|
this.groupSizes[e2] = 0;
|
|
8152
|
-
for (var o2 = n; o2 < r2; o2++)
|
|
8153
|
-
this.tag.deleteRule(n);
|
|
8182
|
+
for (var o2 = n; o2 < r2; o2++) this.tag.deleteRule(n);
|
|
8154
8183
|
t > 0 && this._cGroup > e2 && (this._cIndex -= t);
|
|
8155
8184
|
}
|
|
8156
8185
|
}, e.prototype.getGroup = function(e2) {
|
|
8157
8186
|
var t = "";
|
|
8158
|
-
if (e2 >= this.length || 0 === this.groupSizes[e2])
|
|
8159
|
-
|
|
8160
|
-
for (var n = this.groupSizes[e2], r2 = this.indexOfGroup(e2), o2 = r2 + n, s = r2; s < o2; s++)
|
|
8161
|
-
t += this.tag.getRule(s) + p;
|
|
8187
|
+
if (e2 >= this.length || 0 === this.groupSizes[e2]) return t;
|
|
8188
|
+
for (var n = this.groupSizes[e2], r2 = this.indexOfGroup(e2), o2 = r2 + n, s = r2; s < o2; s++) t += this.tag.getRule(s) + p;
|
|
8162
8189
|
return t;
|
|
8163
8190
|
}, e;
|
|
8164
|
-
}();
|
|
8191
|
+
})();
|
|
8165
8192
|
var he = "style[".concat(a, "][").concat(u, '="').concat(l, '"]');
|
|
8166
8193
|
var fe = new RegExp("^".concat(a, '\\.g(\\d+)\\[id="([\\w\\d-]+)"\\].*?"([^"]*)'));
|
|
8167
8194
|
var me = function(e) {
|
|
8168
8195
|
return "undefined" != typeof ShadowRoot && e instanceof ShadowRoot || "host" in e && 11 === e.nodeType;
|
|
8169
8196
|
};
|
|
8170
8197
|
var ye = function(e) {
|
|
8171
|
-
if (!e)
|
|
8172
|
-
|
|
8173
|
-
if (me(e))
|
|
8174
|
-
return e;
|
|
8198
|
+
if (!e) return document;
|
|
8199
|
+
if (me(e)) return e;
|
|
8175
8200
|
if ("getRootNode" in e) {
|
|
8176
8201
|
var t = e.getRootNode();
|
|
8177
|
-
if (me(t))
|
|
8178
|
-
return t;
|
|
8202
|
+
if (me(t)) return t;
|
|
8179
8203
|
}
|
|
8180
8204
|
return document;
|
|
8181
8205
|
};
|
|
8182
8206
|
var ve = function(e, t, n) {
|
|
8183
|
-
for (var r2, o2 = n.split(","), s = 0, i = o2.length; s < i; s++)
|
|
8184
|
-
(r2 = o2[s]) && e.registerName(t, r2);
|
|
8207
|
+
for (var r2, o2 = n.split(","), s = 0, i = o2.length; s < i; s++) (r2 = o2[s]) && e.registerName(t, r2);
|
|
8185
8208
|
};
|
|
8186
8209
|
var ge = function(e, t) {
|
|
8187
8210
|
for (var n, r2 = (null !== (n = t.textContent) && void 0 !== n ? n : "").split(p), o2 = [], s = 0, i = r2.length; s < i; s++) {
|
|
@@ -8191,8 +8214,7 @@ var ge = function(e, t) {
|
|
|
8191
8214
|
if (c2) {
|
|
8192
8215
|
var u2 = 0 | parseInt(c2[1], 10), l2 = c2[2];
|
|
8193
8216
|
0 !== u2 && (E(l2, u2), ve(e, l2, c2[3]), e.getTag().insertRules(u2, o2)), o2.length = 0;
|
|
8194
|
-
} else
|
|
8195
|
-
o2.push(a2);
|
|
8217
|
+
} else o2.push(a2);
|
|
8196
8218
|
}
|
|
8197
8219
|
}
|
|
8198
8220
|
};
|
|
@@ -8206,27 +8228,25 @@ function we() {
|
|
|
8206
8228
|
return "undefined" != typeof __webpack_nonce__ ? __webpack_nonce__ : null;
|
|
8207
8229
|
}
|
|
8208
8230
|
var be = function(e) {
|
|
8209
|
-
var t = document.head, n = e || t, r2 = document.createElement("style"), o2 = function(e2) {
|
|
8231
|
+
var t = document.head, n = e || t, r2 = document.createElement("style"), o2 = (function(e2) {
|
|
8210
8232
|
var t2 = Array.from(e2.querySelectorAll("style[".concat(a, "]")));
|
|
8211
8233
|
return t2[t2.length - 1];
|
|
8212
|
-
}(n), s = void 0 !== o2 ? o2.nextSibling : null;
|
|
8234
|
+
})(n), s = void 0 !== o2 ? o2.nextSibling : null;
|
|
8213
8235
|
r2.setAttribute(a, c), r2.setAttribute(u, l);
|
|
8214
8236
|
var i = we();
|
|
8215
8237
|
return i && r2.setAttribute("nonce", i), n.insertBefore(r2, s), r2;
|
|
8216
8238
|
};
|
|
8217
|
-
var Ne = function() {
|
|
8239
|
+
var Ne = (function() {
|
|
8218
8240
|
function e(e2) {
|
|
8219
|
-
this.element = be(e2), this.element.appendChild(document.createTextNode("")), this.sheet = function(e3) {
|
|
8241
|
+
this.element = be(e2), this.element.appendChild(document.createTextNode("")), this.sheet = (function(e3) {
|
|
8220
8242
|
var t;
|
|
8221
|
-
if (e3.sheet)
|
|
8222
|
-
return e3.sheet;
|
|
8243
|
+
if (e3.sheet) return e3.sheet;
|
|
8223
8244
|
for (var n = null !== (t = e3.getRootNode().styleSheets) && void 0 !== t ? t : document.styleSheets, r2 = 0, o2 = n.length; r2 < o2; r2++) {
|
|
8224
8245
|
var s = n[r2];
|
|
8225
|
-
if (s.ownerNode === e3)
|
|
8226
|
-
return s;
|
|
8246
|
+
if (s.ownerNode === e3) return s;
|
|
8227
8247
|
}
|
|
8228
8248
|
throw g(17);
|
|
8229
|
-
}(this.element), this.length = 0;
|
|
8249
|
+
})(this.element), this.length = 0;
|
|
8230
8250
|
}
|
|
8231
8251
|
return e.prototype.insertRule = function(e2, t) {
|
|
8232
8252
|
try {
|
|
@@ -8240,8 +8260,8 @@ var Ne = function() {
|
|
|
8240
8260
|
var t = this.sheet.cssRules[e2];
|
|
8241
8261
|
return t && t.cssText ? t.cssText : "";
|
|
8242
8262
|
}, e;
|
|
8243
|
-
}();
|
|
8244
|
-
var Ce = function() {
|
|
8263
|
+
})();
|
|
8264
|
+
var Ce = (function() {
|
|
8245
8265
|
function e(e2) {
|
|
8246
8266
|
this.element = be(e2), this.nodes = this.element.childNodes, this.length = 0;
|
|
8247
8267
|
}
|
|
@@ -8256,8 +8276,8 @@ var Ce = function() {
|
|
|
8256
8276
|
}, e.prototype.getRule = function(e2) {
|
|
8257
8277
|
return e2 < this.length ? this.nodes[e2].textContent : "";
|
|
8258
8278
|
}, e;
|
|
8259
|
-
}();
|
|
8260
|
-
var Ee = function() {
|
|
8279
|
+
})();
|
|
8280
|
+
var Ee = (function() {
|
|
8261
8281
|
function e(e2) {
|
|
8262
8282
|
this.rules = [], this.length = 0;
|
|
8263
8283
|
}
|
|
@@ -8268,35 +8288,31 @@ var Ee = function() {
|
|
|
8268
8288
|
}, e.prototype.getRule = function(e2) {
|
|
8269
8289
|
return e2 < this.length ? this.rules[e2] : "";
|
|
8270
8290
|
}, e;
|
|
8271
|
-
}();
|
|
8291
|
+
})();
|
|
8272
8292
|
var _e = d;
|
|
8273
8293
|
var Ae = { isServer: !d, useCSSOMInjection: !f };
|
|
8274
|
-
var Ie = function() {
|
|
8294
|
+
var Ie = (function() {
|
|
8275
8295
|
function e(e2, n, r2) {
|
|
8276
8296
|
void 0 === e2 && (e2 = O), void 0 === n && (n = {});
|
|
8277
8297
|
var o2 = this;
|
|
8278
8298
|
this.options = __assign(__assign({}, Ae), e2), this.gs = n, this.names = new Map(r2), this.server = !!e2.isServer, !this.server && d && _e && (_e = false, Se(this)), pe(this, function() {
|
|
8279
|
-
return function(e3) {
|
|
8299
|
+
return (function(e3) {
|
|
8280
8300
|
for (var t = e3.getTag(), n2 = t.length, r3 = "", o3 = function(n3) {
|
|
8281
|
-
var o4 = function(e4) {
|
|
8301
|
+
var o4 = (function(e4) {
|
|
8282
8302
|
return b.get(e4);
|
|
8283
|
-
}(n3);
|
|
8284
|
-
if (void 0 === o4)
|
|
8285
|
-
return "continue";
|
|
8303
|
+
})(n3);
|
|
8304
|
+
if (void 0 === o4) return "continue";
|
|
8286
8305
|
var s2 = e3.names.get(o4);
|
|
8287
|
-
if (void 0 === s2 || !s2.size)
|
|
8288
|
-
return "continue";
|
|
8306
|
+
if (void 0 === s2 || !s2.size) return "continue";
|
|
8289
8307
|
var i = t.getGroup(n3);
|
|
8290
|
-
if (0 === i.length)
|
|
8291
|
-
return "continue";
|
|
8308
|
+
if (0 === i.length) return "continue";
|
|
8292
8309
|
var c2 = a + ".g" + n3 + '[id="' + o4 + '"]', u2 = "";
|
|
8293
8310
|
s2.forEach(function(e4) {
|
|
8294
8311
|
e4.length > 0 && (u2 += e4 + ",");
|
|
8295
8312
|
}), r3 += i + c2 + '{content:"' + u2 + '"}' + p;
|
|
8296
|
-
}, s = 0; s < n2; s++)
|
|
8297
|
-
o3(s);
|
|
8313
|
+
}, s = 0; s < n2; s++) o3(s);
|
|
8298
8314
|
return r3;
|
|
8299
|
-
}(o2);
|
|
8315
|
+
})(o2);
|
|
8300
8316
|
});
|
|
8301
8317
|
}
|
|
8302
8318
|
return e.registerId = function(e2) {
|
|
@@ -8310,10 +8326,10 @@ var Ie = function() {
|
|
|
8310
8326
|
}, e.prototype.allocateGSInstance = function(e2) {
|
|
8311
8327
|
return this.gs[e2] = (this.gs[e2] || 0) + 1;
|
|
8312
8328
|
}, e.prototype.getTag = function() {
|
|
8313
|
-
return this.tag || (this.tag = (e2 = function(e3) {
|
|
8329
|
+
return this.tag || (this.tag = (e2 = (function(e3) {
|
|
8314
8330
|
var t = e3.useCSSOMInjection, n = e3.target;
|
|
8315
8331
|
return e3.isServer ? new Ee(n) : t ? new Ne(n) : new Ce(n);
|
|
8316
|
-
}(this.options), new de(e2)));
|
|
8332
|
+
})(this.options), new de(e2)));
|
|
8317
8333
|
var e2;
|
|
8318
8334
|
}, e.prototype.hasNameForId = function(e2, t) {
|
|
8319
8335
|
var n, r2;
|
|
@@ -8331,7 +8347,7 @@ var Ie = function() {
|
|
|
8331
8347
|
}, e.prototype.clearTag = function() {
|
|
8332
8348
|
this.tag = void 0;
|
|
8333
8349
|
}, e;
|
|
8334
|
-
}();
|
|
8350
|
+
})();
|
|
8335
8351
|
function Pe(e, t) {
|
|
8336
8352
|
return null == t || "boolean" == typeof t || "" === t ? "" : "number" != typeof t || 0 === t || e in unitlessKeys || e.startsWith("--") ? String(t).trim() : "".concat(t, "px");
|
|
8337
8353
|
}
|
|
@@ -8341,13 +8357,12 @@ var Oe = function(e) {
|
|
|
8341
8357
|
function De(e) {
|
|
8342
8358
|
for (var t = "", n = 0; n < e.length; n++) {
|
|
8343
8359
|
var r2 = e[n];
|
|
8344
|
-
if (1 === n && "-" === r2 && "-" === e[0])
|
|
8345
|
-
return e;
|
|
8360
|
+
if (1 === n && "-" === r2 && "-" === e[0]) return e;
|
|
8346
8361
|
Oe(r2) ? t += "-" + r2.toLowerCase() : t += r2;
|
|
8347
8362
|
}
|
|
8348
8363
|
return t.startsWith("ms-") ? "-" + t : t;
|
|
8349
8364
|
}
|
|
8350
|
-
var Te = Symbol.for("sc-keyframes");
|
|
8365
|
+
var Te = /* @__PURE__ */ Symbol.for("sc-keyframes");
|
|
8351
8366
|
function Re(e) {
|
|
8352
8367
|
return "object" == typeof e && null !== e && Te in e;
|
|
8353
8368
|
}
|
|
@@ -8363,63 +8378,51 @@ var je = function(t) {
|
|
|
8363
8378
|
return n;
|
|
8364
8379
|
};
|
|
8365
8380
|
function ke(e, t, n, r2, o2) {
|
|
8366
|
-
if (void 0 === o2 && (o2 = []), "string" == typeof e)
|
|
8367
|
-
|
|
8368
|
-
if (
|
|
8369
|
-
return o2;
|
|
8370
|
-
if (ie(e))
|
|
8371
|
-
return o2.push(".".concat(e.styledComponentId)), o2;
|
|
8381
|
+
if (void 0 === o2 && (o2 = []), "string" == typeof e) return e && o2.push(e), o2;
|
|
8382
|
+
if (xe(e)) return o2;
|
|
8383
|
+
if (ie(e)) return o2.push(".".concat(e.styledComponentId)), o2;
|
|
8372
8384
|
if (se(e)) {
|
|
8373
|
-
if (!se(i = e) || i.prototype && i.prototype.isReactComponent || !t)
|
|
8374
|
-
return o2.push(e), o2;
|
|
8385
|
+
if (!se(i = e) || i.prototype && i.prototype.isReactComponent || !t) return o2.push(e), o2;
|
|
8375
8386
|
var s = e(t);
|
|
8376
8387
|
return "production" === process.env.NODE_ENV || "object" != typeof s || Array.isArray(s) || Re(s) || ue(s) || null === s || console.error("".concat(L(e), " is not a styled component and cannot be referred to via component selector. See https://www.styled-components.com/docs/advanced#referring-to-other-components for more details.")), ke(s, t, n, r2, o2);
|
|
8377
8388
|
}
|
|
8378
8389
|
var i;
|
|
8379
|
-
if (Re(e))
|
|
8380
|
-
return n ? (e.inject(n, r2), o2.push(e.getName(r2))) : o2.push(e), o2;
|
|
8390
|
+
if (Re(e)) return n ? (e.inject(n, r2), o2.push(e.getName(r2))) : o2.push(e), o2;
|
|
8381
8391
|
if (ue(e)) {
|
|
8382
|
-
for (var a2 = je(e), c2 = 0; c2 < a2.length; c2++)
|
|
8383
|
-
o2.push(a2[c2]);
|
|
8392
|
+
for (var a2 = je(e), c2 = 0; c2 < a2.length; c2++) o2.push(a2[c2]);
|
|
8384
8393
|
return o2;
|
|
8385
8394
|
}
|
|
8386
|
-
if (!Array.isArray(e))
|
|
8387
|
-
|
|
8388
|
-
for (c2 = 0; c2 < e.length; c2++)
|
|
8389
|
-
ke(e[c2], t, n, r2, o2);
|
|
8395
|
+
if (!Array.isArray(e)) return o2.push(e.toString()), o2;
|
|
8396
|
+
for (c2 = 0; c2 < e.length; c2++) ke(e[c2], t, n, r2, o2);
|
|
8390
8397
|
return o2;
|
|
8391
8398
|
}
|
|
8392
8399
|
function Me(e) {
|
|
8393
8400
|
for (var t = 0; t < e.length; t += 1) {
|
|
8394
8401
|
var n = e[t];
|
|
8395
|
-
if (se(n) && !ie(n))
|
|
8396
|
-
return false;
|
|
8402
|
+
if (se(n) && !ie(n)) return false;
|
|
8397
8403
|
}
|
|
8398
8404
|
return true;
|
|
8399
8405
|
}
|
|
8400
8406
|
var Ve = z(l);
|
|
8401
|
-
var Fe = function() {
|
|
8407
|
+
var Fe = (function() {
|
|
8402
8408
|
function e(e2, t, n) {
|
|
8403
8409
|
this.rules = e2, this.staticRulesId = "", this.isStatic = "production" === process.env.NODE_ENV && (void 0 === n || n.isStatic) && Me(e2), this.componentId = t, this.baseHash = G(Ve, t), this.baseStyle = n, Ie.registerId(t);
|
|
8404
8410
|
}
|
|
8405
8411
|
return e.prototype.generateAndInjectStyles = function(e2, t, n) {
|
|
8406
8412
|
var r2 = this.baseStyle ? this.baseStyle.generateAndInjectStyles(e2, t, n).className : "";
|
|
8407
|
-
if (this.isStatic && !n.hash)
|
|
8408
|
-
|
|
8409
|
-
|
|
8410
|
-
|
|
8411
|
-
var
|
|
8412
|
-
|
|
8413
|
-
var i = n(o2, ".".concat(s), void 0, this.componentId);
|
|
8414
|
-
t.insertRules(this.componentId, s, i);
|
|
8415
|
-
}
|
|
8416
|
-
r2 = ae(r2, s), this.staticRulesId = s;
|
|
8413
|
+
if (this.isStatic && !n.hash) if (this.staticRulesId && t.hasNameForId(this.componentId, this.staticRulesId)) r2 = ae(r2, this.staticRulesId);
|
|
8414
|
+
else {
|
|
8415
|
+
var o2 = ce(ke(this.rules, e2, t, n)), s = V(G(this.baseHash, o2) >>> 0);
|
|
8416
|
+
if (!t.hasNameForId(this.componentId, s)) {
|
|
8417
|
+
var i = n(o2, ".".concat(s), void 0, this.componentId);
|
|
8418
|
+
t.insertRules(this.componentId, s, i);
|
|
8417
8419
|
}
|
|
8420
|
+
r2 = ae(r2, s), this.staticRulesId = s;
|
|
8421
|
+
}
|
|
8418
8422
|
else {
|
|
8419
8423
|
for (var a2 = G(this.baseHash, n.hash), c2 = "", u2 = 0; u2 < this.rules.length; u2++) {
|
|
8420
8424
|
var l2 = this.rules[u2];
|
|
8421
|
-
if ("string" == typeof l2)
|
|
8422
|
-
c2 += l2, "production" !== process.env.NODE_ENV && (a2 = G(a2, l2));
|
|
8425
|
+
if ("string" == typeof l2) c2 += l2, "production" !== process.env.NODE_ENV && (a2 = G(a2, l2));
|
|
8423
8426
|
else if (l2) {
|
|
8424
8427
|
var p2 = ce(ke(l2, e2, t, n));
|
|
8425
8428
|
a2 = G(G(a2, String(u2)), p2), c2 += p2;
|
|
@@ -8436,29 +8439,22 @@ var Fe = function() {
|
|
|
8436
8439
|
}
|
|
8437
8440
|
return { className: r2, css: "undefined" == typeof window ? t.getTag().getGroup(C(this.componentId)) : "" };
|
|
8438
8441
|
}, e;
|
|
8439
|
-
}();
|
|
8442
|
+
})();
|
|
8440
8443
|
var Ge = /&/g;
|
|
8441
8444
|
var ze = 47;
|
|
8442
8445
|
var Be = 42;
|
|
8443
8446
|
function Le(e) {
|
|
8444
|
-
if (-1 === e.indexOf("}"))
|
|
8445
|
-
return false;
|
|
8447
|
+
if (-1 === e.indexOf("}")) return false;
|
|
8446
8448
|
for (var t = e.length, n = 0, r2 = 0, o2 = false, s = 0; s < t; s++) {
|
|
8447
8449
|
var i = e.charCodeAt(s);
|
|
8448
|
-
if (0 !== r2 || o2 || i !== ze || e.charCodeAt(s + 1) !== Be)
|
|
8449
|
-
|
|
8450
|
-
|
|
8451
|
-
|
|
8452
|
-
if (
|
|
8453
|
-
|
|
8454
|
-
|
|
8455
|
-
|
|
8456
|
-
return true;
|
|
8457
|
-
}
|
|
8458
|
-
} else
|
|
8459
|
-
0 === r2 ? r2 = i : r2 === i && (r2 = 0);
|
|
8460
|
-
else
|
|
8461
|
-
o2 = true, s++;
|
|
8450
|
+
if (0 !== r2 || o2 || i !== ze || e.charCodeAt(s + 1) !== Be) if (o2) i === Be && e.charCodeAt(s + 1) === ze && (o2 = false, s++);
|
|
8451
|
+
else if (34 !== i && 39 !== i || 0 !== s && 92 === e.charCodeAt(s - 1)) {
|
|
8452
|
+
if (0 === r2) {
|
|
8453
|
+
if (123 === i) n++;
|
|
8454
|
+
else if (125 === i && --n < 0) return true;
|
|
8455
|
+
}
|
|
8456
|
+
} else 0 === r2 ? r2 = i : r2 === i && (r2 = 0);
|
|
8457
|
+
else o2 = true, s++;
|
|
8462
8458
|
}
|
|
8463
8459
|
return 0 !== n || 0 !== r2;
|
|
8464
8460
|
}
|
|
@@ -8480,72 +8476,52 @@ function Ye(e) {
|
|
|
8480
8476
|
return d2.push(e2);
|
|
8481
8477
|
}))), f2 = function(e2, o3, s2, c3) {
|
|
8482
8478
|
void 0 === o3 && (o3 = ""), void 0 === s2 && (s2 = ""), void 0 === c3 && (c3 = "&"), t = c3, n = o3, r2 = void 0;
|
|
8483
|
-
var u3 = function(e3) {
|
|
8484
|
-
if (!Le(e3))
|
|
8485
|
-
return e3;
|
|
8479
|
+
var u3 = (function(e3) {
|
|
8480
|
+
if (!Le(e3)) return e3;
|
|
8486
8481
|
for (var t2 = e3.length, n2 = "", r3 = 0, o4 = 0, s3 = 0, i = false, a3 = 0; a3 < t2; a3++) {
|
|
8487
8482
|
var c4 = e3.charCodeAt(a3);
|
|
8488
|
-
if (0 !== s3 || i || c4 !== ze || e3.charCodeAt(a3 + 1) !== Be)
|
|
8489
|
-
|
|
8490
|
-
|
|
8491
|
-
else if (
|
|
8492
|
-
if (
|
|
8493
|
-
|
|
8494
|
-
|
|
8495
|
-
|
|
8496
|
-
|
|
8497
|
-
|
|
8498
|
-
|
|
8499
|
-
|
|
8500
|
-
|
|
8501
|
-
|
|
8502
|
-
|
|
8503
|
-
|
|
8504
|
-
|
|
8505
|
-
}
|
|
8506
|
-
0 === o4 && (n2 += e3.substring(r3, a3 + 1), r3 = a3 + 1);
|
|
8507
|
-
} else
|
|
8508
|
-
59 === c4 && 0 === o4 && (n2 += e3.substring(r3, a3 + 1), r3 = a3 + 1);
|
|
8509
|
-
} else
|
|
8510
|
-
0 === s3 ? s3 = c4 : s3 === c4 && (s3 = 0);
|
|
8511
|
-
else
|
|
8512
|
-
i = true, a3++;
|
|
8483
|
+
if (0 !== s3 || i || c4 !== ze || e3.charCodeAt(a3 + 1) !== Be) if (i) c4 === Be && e3.charCodeAt(a3 + 1) === ze && (i = false, a3++);
|
|
8484
|
+
else if (34 !== c4 && 39 !== c4 || 0 !== a3 && 92 === e3.charCodeAt(a3 - 1)) {
|
|
8485
|
+
if (0 === s3) if (123 === c4) o4++;
|
|
8486
|
+
else if (125 === c4) {
|
|
8487
|
+
if (--o4 < 0) {
|
|
8488
|
+
for (var u4 = a3 + 1; u4 < t2; ) {
|
|
8489
|
+
var l4 = e3.charCodeAt(u4);
|
|
8490
|
+
if (59 === l4 || 10 === l4) break;
|
|
8491
|
+
u4++;
|
|
8492
|
+
}
|
|
8493
|
+
u4 < t2 && 59 === e3.charCodeAt(u4) && u4++, o4 = 0, a3 = u4 - 1, r3 = u4;
|
|
8494
|
+
continue;
|
|
8495
|
+
}
|
|
8496
|
+
0 === o4 && (n2 += e3.substring(r3, a3 + 1), r3 = a3 + 1);
|
|
8497
|
+
} else 59 === c4 && 0 === o4 && (n2 += e3.substring(r3, a3 + 1), r3 = a3 + 1);
|
|
8498
|
+
} else 0 === s3 ? s3 = c4 : s3 === c4 && (s3 = 0);
|
|
8499
|
+
else i = true, a3++;
|
|
8513
8500
|
}
|
|
8514
8501
|
if (r3 < t2) {
|
|
8515
8502
|
var p3 = e3.substring(r3);
|
|
8516
8503
|
Le(p3) || (n2 += p3);
|
|
8517
8504
|
}
|
|
8518
8505
|
return n2;
|
|
8519
|
-
}(function(e3) {
|
|
8520
|
-
if (-1 === e3.indexOf("//"))
|
|
8521
|
-
return e3;
|
|
8506
|
+
})((function(e3) {
|
|
8507
|
+
if (-1 === e3.indexOf("//")) return e3;
|
|
8522
8508
|
for (var t2 = e3.length, n2 = [], r3 = 0, o4 = 0, s3 = 0, i = 0; o4 < t2; ) {
|
|
8523
8509
|
var a3 = e3.charCodeAt(o4);
|
|
8524
|
-
if (34 !== a3 && 39 !== a3 || 0 !== o4 && 92 === e3.charCodeAt(o4 - 1))
|
|
8525
|
-
|
|
8526
|
-
|
|
8527
|
-
|
|
8528
|
-
|
|
8529
|
-
|
|
8530
|
-
|
|
8531
|
-
|
|
8532
|
-
|
|
8533
|
-
|
|
8534
|
-
|
|
8535
|
-
|
|
8536
|
-
else if (a3 === ze && o4 + 1 < t2 && e3.charCodeAt(o4 + 1) === ze) {
|
|
8537
|
-
for (o4 > r3 && n2.push(e3.substring(r3, o4)); o4 < t2 && 10 !== e3.charCodeAt(o4); )
|
|
8538
|
-
o4++;
|
|
8539
|
-
r3 = o4;
|
|
8540
|
-
} else
|
|
8541
|
-
o4++;
|
|
8542
|
-
else
|
|
8543
|
-
o4++;
|
|
8544
|
-
else
|
|
8545
|
-
0 === s3 ? s3 = a3 : s3 === a3 && (s3 = 0), o4++;
|
|
8510
|
+
if (34 !== a3 && 39 !== a3 || 0 !== o4 && 92 === e3.charCodeAt(o4 - 1)) if (0 === s3) if (a3 === ze && o4 + 1 < t2 && e3.charCodeAt(o4 + 1) === Be) {
|
|
8511
|
+
for (o4 += 2; o4 + 1 < t2 && (e3.charCodeAt(o4) !== Be || e3.charCodeAt(o4 + 1) !== ze); ) o4++;
|
|
8512
|
+
o4 += 2;
|
|
8513
|
+
} else if (40 === a3 && o4 >= 3 && 108 == (32 | e3.charCodeAt(o4 - 1)) && 114 == (32 | e3.charCodeAt(o4 - 2)) && 117 == (32 | e3.charCodeAt(o4 - 3))) i = 1, o4++;
|
|
8514
|
+
else if (i > 0) 41 === a3 ? i-- : 40 === a3 && i++, o4++;
|
|
8515
|
+
else if (a3 === Be && o4 + 1 < t2 && e3.charCodeAt(o4 + 1) === ze) o4 > r3 && n2.push(e3.substring(r3, o4)), r3 = o4 += 2;
|
|
8516
|
+
else if (a3 === ze && o4 + 1 < t2 && e3.charCodeAt(o4 + 1) === ze) {
|
|
8517
|
+
for (o4 > r3 && n2.push(e3.substring(r3, o4)); o4 < t2 && 10 !== e3.charCodeAt(o4); ) o4++;
|
|
8518
|
+
r3 = o4;
|
|
8519
|
+
} else o4++;
|
|
8520
|
+
else o4++;
|
|
8521
|
+
else 0 === s3 ? s3 = a3 : s3 === a3 && (s3 = 0), o4++;
|
|
8546
8522
|
}
|
|
8547
8523
|
return 0 === r3 ? e3 : (r3 < t2 && n2.push(e3.substring(r3)), n2.join(""));
|
|
8548
|
-
}(e2)), l3 = compile(s2 || o3 ? "".concat(s2, " ").concat(o3, " { ").concat(u3, " }") : u3);
|
|
8524
|
+
})(e2)), l3 = compile(s2 || o3 ? "".concat(s2, " ").concat(o3, " { ").concat(u3, " }") : u3);
|
|
8549
8525
|
return a2.namespace && (l3 = $e(l3, a2.namespace)), d2 = [], serialize(l3, h2), d2;
|
|
8550
8526
|
};
|
|
8551
8527
|
return f2.hash = u2.length ? u2.reduce(function(e2, t2) {
|
|
@@ -8570,8 +8546,7 @@ function Ze() {
|
|
|
8570
8546
|
return h ? He : r.useContext(Ue);
|
|
8571
8547
|
}
|
|
8572
8548
|
function Ke(e) {
|
|
8573
|
-
if (h || !r.useMemo)
|
|
8574
|
-
return e.children;
|
|
8549
|
+
if (h || !r.useMemo) return e.children;
|
|
8575
8550
|
var t = Ze().styleSheet, n = r.useMemo(function() {
|
|
8576
8551
|
var n2 = t;
|
|
8577
8552
|
return e.sheet ? n2 = e.sheet : e.target && (n2 = n2.reconstructWithOptions({ target: e.target }, false)), e.disableCSSOMInjection && (n2 = n2.reconstructWithOptions({ useCSSOMInjection: false })), n2;
|
|
@@ -8591,14 +8566,14 @@ var et = Qe.Consumer;
|
|
|
8591
8566
|
var rt = {};
|
|
8592
8567
|
var ot = /* @__PURE__ */ new Set();
|
|
8593
8568
|
function st(s, i, a2) {
|
|
8594
|
-
var c2 = ie(s), u2 = s, p2 = !$(s), d2 = i.attrs, f2 = void 0 === d2 ? P : d2, m = i.componentId, y2 = void 0 === m ? function(e, t) {
|
|
8569
|
+
var c2 = ie(s), u2 = s, p2 = !$(s), d2 = i.attrs, f2 = void 0 === d2 ? P : d2, m = i.componentId, y2 = void 0 === m ? (function(e, t) {
|
|
8595
8570
|
var n = "string" != typeof e ? "sc" : j(e);
|
|
8596
8571
|
rt[n] = (rt[n] || 0) + 1;
|
|
8597
8572
|
var r2 = "".concat(n, "-").concat(B(l + n + rt[n]));
|
|
8598
8573
|
return t ? "".concat(t, "-").concat(r2) : r2;
|
|
8599
|
-
}(i.displayName, i.parentComponentId) : m, v2 = i.displayName, g2 = void 0 === v2 ? function(e) {
|
|
8574
|
+
})(i.displayName, i.parentComponentId) : m, v2 = i.displayName, g2 = void 0 === v2 ? (function(e) {
|
|
8600
8575
|
return $(e) ? "styled.".concat(e) : "Styled(".concat(L(e), ")");
|
|
8601
|
-
}(s) : v2, S2 = i.displayName && i.componentId ? "".concat(j(i.displayName), "-").concat(i.componentId) : i.componentId || y2, w2 = c2 && u2.attrs ? u2.attrs.concat(f2).filter(Boolean) : f2, b2 = i.shouldForwardProp;
|
|
8576
|
+
})(s) : v2, S2 = i.displayName && i.componentId ? "".concat(j(i.displayName), "-").concat(i.componentId) : i.componentId || y2, w2 = c2 && u2.attrs ? u2.attrs.concat(f2).filter(Boolean) : f2, b2 = i.shouldForwardProp;
|
|
8602
8577
|
if (c2 && u2.shouldForwardProp) {
|
|
8603
8578
|
var N2 = u2.shouldForwardProp;
|
|
8604
8579
|
if (i.shouldForwardProp) {
|
|
@@ -8606,28 +8581,25 @@ function st(s, i, a2) {
|
|
|
8606
8581
|
b2 = function(e, t) {
|
|
8607
8582
|
return N2(e, t) && E2(e, t);
|
|
8608
8583
|
};
|
|
8609
|
-
} else
|
|
8610
|
-
b2 = N2;
|
|
8584
|
+
} else b2 = N2;
|
|
8611
8585
|
}
|
|
8612
8586
|
var _3 = new Fe(a2, S2, c2 ? u2.componentStyle : void 0);
|
|
8613
8587
|
function A2(s2, i2) {
|
|
8614
|
-
return function(s3, i3, a3) {
|
|
8588
|
+
return (function(s3, i3, a3) {
|
|
8615
8589
|
var c3 = s3.attrs, u3 = s3.componentStyle, l2 = s3.defaultProps, p3 = s3.foldedComponentIds, d3 = s3.styledComponentId, f3 = s3.target, m2 = h ? void 0 : r.useContext(Qe), y3 = Ze(), v3 = s3.shouldForwardProp || y3.shouldForwardProp;
|
|
8616
8590
|
"production" !== process.env.NODE_ENV && r.useDebugValue && r.useDebugValue(d3);
|
|
8617
|
-
var g3 = D(i3, m2, l2) || (h ? void 0 : O), S3 = function(e, n, r2) {
|
|
8591
|
+
var g3 = D(i3, m2, l2) || (h ? void 0 : O), S3 = (function(e, n, r2) {
|
|
8618
8592
|
for (var o2, s4 = __assign(__assign({}, n), { className: void 0, theme: r2 }), i4 = 0; i4 < e.length; i4 += 1) {
|
|
8619
8593
|
var a4 = se(o2 = e[i4]) ? o2(s4) : o2;
|
|
8620
|
-
for (var c4 in a4)
|
|
8621
|
-
"className" === c4 ? s4.className = ae(s4.className, a4[c4]) : "style" === c4 ? s4.style = __assign(__assign({}, s4.style), a4[c4]) : c4 in n && void 0 === n[c4] || (s4[c4] = a4[c4]);
|
|
8594
|
+
for (var c4 in a4) "className" === c4 ? s4.className = ae(s4.className, a4[c4]) : "style" === c4 ? s4.style = __assign(__assign({}, s4.style), a4[c4]) : c4 in n && void 0 === n[c4] || (s4[c4] = a4[c4]);
|
|
8622
8595
|
}
|
|
8623
8596
|
return "className" in n && "string" == typeof n.className && (s4.className = ae(s4.className, n.className)), s4;
|
|
8624
|
-
}(c3, i3, g3), w3 = S3.as || f3, b3 = {};
|
|
8625
|
-
for (var N3 in S3)
|
|
8626
|
-
|
|
8627
|
-
var E3 = function(e, t) {
|
|
8597
|
+
})(c3, i3, g3), w3 = S3.as || f3, b3 = {};
|
|
8598
|
+
for (var N3 in S3) void 0 === S3[N3] || "$" === N3[0] || "as" === N3 || "theme" === N3 && S3.theme === g3 || ("forwardedAs" === N3 ? b3.as = S3.forwardedAs : v3 && !v3(N3, w3) || (b3[N3] = S3[N3], v3 || "development" !== process.env.NODE_ENV || isPropValid(N3) || ot.has(N3) || !T.has(w3) || (ot.add(N3), console.warn('styled-components: it looks like an unknown prop "'.concat(N3, '" is being sent through to the DOM, which will likely trigger a React console error. If you would like automatic filtering of unknown props, you can opt-into that behavior via `<StyleSheetManager shouldForwardProp={...}>` (connect an API like `@emotion/is-prop-valid`) or consider using transient props (`$` prefix for automatic filtering.)')))));
|
|
8599
|
+
var E3 = (function(e, t) {
|
|
8628
8600
|
var n = Ze(), o2 = e.generateAndInjectStyles(t, n.styleSheet, n.stylis);
|
|
8629
8601
|
return "production" !== process.env.NODE_ENV && r.useDebugValue && r.useDebugValue(o2.className), o2;
|
|
8630
|
-
}(u3, S3), _4 = E3.className;
|
|
8602
|
+
})(u3, S3), _4 = E3.className;
|
|
8631
8603
|
"production" !== process.env.NODE_ENV && s3.warnTooManyClasses && s3.warnTooManyClasses(_4);
|
|
8632
8604
|
var A3 = ae(p3, d3);
|
|
8633
8605
|
_4 && (A3 += " " + _4), S3.className && (A3 += " " + S3.className), b3[$(w3) && !T.has(w3) ? "class" : "className"] = A3, a3 && (b3.ref = a3);
|
|
@@ -8642,27 +8614,23 @@ function st(s, i, a2) {
|
|
|
8642
8614
|
}), P4.push(r.createElement("style", { key: "sc-".concat(R3.componentId), precedence: "styled-components", href: "sc-".concat(R3.componentId, "-").concat(t), children: e }));
|
|
8643
8615
|
}
|
|
8644
8616
|
R3 = R3.baseStyle;
|
|
8645
|
-
}; R3; )
|
|
8646
|
-
|
|
8647
|
-
if (P4.length)
|
|
8648
|
-
return P4.reverse(), r.createElement.apply(r, __spreadArray(__spreadArray([r.Fragment, null], P4, false), [I2], false));
|
|
8617
|
+
}; R3; ) x2();
|
|
8618
|
+
if (P4.length) return P4.reverse(), r.createElement.apply(r, __spreadArray(__spreadArray([r.Fragment, null], P4, false), [I2], false));
|
|
8649
8619
|
}
|
|
8650
8620
|
return I2;
|
|
8651
|
-
}(R2, s2, i2);
|
|
8621
|
+
})(R2, s2, i2);
|
|
8652
8622
|
}
|
|
8653
8623
|
A2.displayName = g2;
|
|
8654
8624
|
var R2 = r.forwardRef(A2);
|
|
8655
8625
|
return R2.attrs = w2, R2.componentStyle = _3, R2.displayName = g2, R2.shouldForwardProp = b2, R2.foldedComponentIds = c2 ? ae(u2.foldedComponentIds, u2.styledComponentId) : "", R2.styledComponentId = S2, R2.target = c2 ? u2.target : s, Object.defineProperty(R2, "defaultProps", { get: function() {
|
|
8656
8626
|
return this._foldedDefaultProps;
|
|
8657
8627
|
}, set: function(e) {
|
|
8658
|
-
this._foldedDefaultProps = c2 ? function(e2) {
|
|
8659
|
-
for (var t = [], n = 1; n < arguments.length; n++)
|
|
8660
|
-
|
|
8661
|
-
for (var r2 = 0, o2 = t; r2 < o2.length; r2++)
|
|
8662
|
-
le(e2, o2[r2], true);
|
|
8628
|
+
this._foldedDefaultProps = c2 ? (function(e2) {
|
|
8629
|
+
for (var t = [], n = 1; n < arguments.length; n++) t[n - 1] = arguments[n];
|
|
8630
|
+
for (var r2 = 0, o2 = t; r2 < o2.length; r2++) le(e2, o2[r2], true);
|
|
8663
8631
|
return e2;
|
|
8664
|
-
}({}, u2.defaultProps, e) : e;
|
|
8665
|
-
} }), "production" !== process.env.NODE_ENV && (I(g2, S2), R2.warnTooManyClasses = function(e, t) {
|
|
8632
|
+
})({}, u2.defaultProps, e) : e;
|
|
8633
|
+
} }), "production" !== process.env.NODE_ENV && (I(g2, S2), R2.warnTooManyClasses = /* @__PURE__ */ (function(e, t) {
|
|
8666
8634
|
var n = {}, r2 = false;
|
|
8667
8635
|
return function(o2) {
|
|
8668
8636
|
if (!r2 && (n[o2] = true, Object.keys(n).length >= 200)) {
|
|
@@ -8670,32 +8638,27 @@ function st(s, i, a2) {
|
|
|
8670
8638
|
console.warn("Over ".concat(200, " classes were generated for component ").concat(e).concat(s2, ".\n") + "Consider using the attrs method, together with a style object for frequently changed styles.\nExample:\n const Component = styled.div.attrs(props => ({\n style: {\n background: props.background,\n },\n }))`width: 100%;`\n\n <Component />"), r2 = true, n = {};
|
|
8671
8639
|
}
|
|
8672
8640
|
};
|
|
8673
|
-
}(g2, S2)), pe(R2, function() {
|
|
8641
|
+
})(g2, S2)), pe(R2, function() {
|
|
8674
8642
|
return ".".concat(R2.styledComponentId);
|
|
8675
8643
|
}), p2 && oe(R2, s, { attrs: true, componentStyle: true, displayName: true, foldedComponentIds: true, shouldForwardProp: true, styledComponentId: true, target: true }), R2;
|
|
8676
8644
|
}
|
|
8677
8645
|
function it(e, t) {
|
|
8678
|
-
for (var n = [e[0]], r2 = 0, o2 = t.length; r2 < o2; r2 += 1)
|
|
8679
|
-
n.push(t[r2], e[r2 + 1]);
|
|
8646
|
+
for (var n = [e[0]], r2 = 0, o2 = t.length; r2 < o2; r2 += 1) n.push(t[r2], e[r2 + 1]);
|
|
8680
8647
|
return n;
|
|
8681
8648
|
}
|
|
8682
8649
|
var at = function(e) {
|
|
8683
8650
|
return Object.assign(e, { isCss: true });
|
|
8684
8651
|
};
|
|
8685
8652
|
function ct(t) {
|
|
8686
|
-
for (var n = [], r2 = 1; r2 < arguments.length; r2++)
|
|
8687
|
-
|
|
8688
|
-
if (se(t) || ue(t))
|
|
8689
|
-
return at(ke(it(P, __spreadArray([t], n, true))));
|
|
8653
|
+
for (var n = [], r2 = 1; r2 < arguments.length; r2++) n[r2 - 1] = arguments[r2];
|
|
8654
|
+
if (se(t) || ue(t)) return at(ke(it(P, __spreadArray([t], n, true))));
|
|
8690
8655
|
var o2 = t;
|
|
8691
8656
|
return 0 === n.length && 1 === o2.length && "string" == typeof o2[0] ? ke(o2) : at(ke(it(o2, n)));
|
|
8692
8657
|
}
|
|
8693
8658
|
function ut(n, r2, o2) {
|
|
8694
|
-
if (void 0 === o2 && (o2 = O), !r2)
|
|
8695
|
-
throw g(1, r2);
|
|
8659
|
+
if (void 0 === o2 && (o2 = O), !r2) throw g(1, r2);
|
|
8696
8660
|
var s = function(t) {
|
|
8697
|
-
for (var s2 = [], i = 1; i < arguments.length; i++)
|
|
8698
|
-
s2[i - 1] = arguments[i];
|
|
8661
|
+
for (var s2 = [], i = 1; i < arguments.length; i++) s2[i - 1] = arguments[i];
|
|
8699
8662
|
return n(r2, o2, ct.apply(void 0, __spreadArray([t], s2, false)));
|
|
8700
8663
|
};
|
|
8701
8664
|
return s.attrs = function(e) {
|
|
@@ -8712,7 +8675,7 @@ T.forEach(function(e) {
|
|
|
8712
8675
|
pt[e] = lt(e);
|
|
8713
8676
|
});
|
|
8714
8677
|
var dt;
|
|
8715
|
-
var ht = function() {
|
|
8678
|
+
var ht = (function() {
|
|
8716
8679
|
function e(e2, t) {
|
|
8717
8680
|
this.rules = e2, this.componentId = t, this.isStatic = Me(e2), Ie.registerId(this.componentId + 1);
|
|
8718
8681
|
}
|
|
@@ -8726,8 +8689,8 @@ var ht = function() {
|
|
|
8726
8689
|
var o2 = this.componentId + e2;
|
|
8727
8690
|
this.isStatic ? n.hasNameForId(o2, o2) || this.createStyles(e2, t, n, r2) : (this.removeStyles(e2, n), this.createStyles(e2, t, n, r2));
|
|
8728
8691
|
}, e;
|
|
8729
|
-
}();
|
|
8730
|
-
var mt = function() {
|
|
8692
|
+
})();
|
|
8693
|
+
var mt = (function() {
|
|
8731
8694
|
function e(e2, t) {
|
|
8732
8695
|
var n = this;
|
|
8733
8696
|
this[dt] = true, this.inject = function(e3, t2) {
|
|
@@ -8741,29 +8704,25 @@ var mt = function() {
|
|
|
8741
8704
|
return e.prototype.getName = function(e2) {
|
|
8742
8705
|
return void 0 === e2 && (e2 = qe), this.name + e2.hash;
|
|
8743
8706
|
}, e;
|
|
8744
|
-
}();
|
|
8707
|
+
})();
|
|
8745
8708
|
dt = Te;
|
|
8746
8709
|
var gt = /^\s*<\/[a-z]/i;
|
|
8747
|
-
var St = function() {
|
|
8710
|
+
var St = (function() {
|
|
8748
8711
|
function e() {
|
|
8749
8712
|
var e2 = this;
|
|
8750
8713
|
this._emitSheetCSS = function() {
|
|
8751
8714
|
var t = e2.instance.toString();
|
|
8752
|
-
if (!t)
|
|
8753
|
-
return "";
|
|
8715
|
+
if (!t) return "";
|
|
8754
8716
|
var n = we(), r2 = ce([n && 'nonce="'.concat(n, '"'), "".concat(a, '="true"'), "".concat(u, '="').concat(l, '"')].filter(Boolean), " ");
|
|
8755
8717
|
return "<style ".concat(r2, ">").concat(t, "</style>");
|
|
8756
8718
|
}, this.getStyleTags = function() {
|
|
8757
|
-
if (e2.sealed)
|
|
8758
|
-
throw g(2);
|
|
8719
|
+
if (e2.sealed) throw g(2);
|
|
8759
8720
|
return e2._emitSheetCSS();
|
|
8760
8721
|
}, this.getStyleElement = function() {
|
|
8761
8722
|
var n;
|
|
8762
|
-
if (e2.sealed)
|
|
8763
|
-
throw g(2);
|
|
8723
|
+
if (e2.sealed) throw g(2);
|
|
8764
8724
|
var o2 = e2.instance.toString();
|
|
8765
|
-
if (!o2)
|
|
8766
|
-
return [];
|
|
8725
|
+
if (!o2) return [];
|
|
8767
8726
|
var s = ((n = {})[a] = "", n[u] = l, n.dangerouslySetInnerHTML = { __html: o2 }, n), i = we();
|
|
8768
8727
|
return i && (s.nonce = i), [r.createElement("style", __assign({}, s, { key: "sc-0-0" }))];
|
|
8769
8728
|
}, this.seal = function() {
|
|
@@ -8771,20 +8730,17 @@ var St = function() {
|
|
|
8771
8730
|
}, this.instance = new Ie({ isServer: true }), this.sealed = false;
|
|
8772
8731
|
}
|
|
8773
8732
|
return e.prototype.collectStyles = function(e2) {
|
|
8774
|
-
if (this.sealed)
|
|
8775
|
-
throw g(2);
|
|
8733
|
+
if (this.sealed) throw g(2);
|
|
8776
8734
|
return r.createElement(Ke, { sheet: this.instance }, e2);
|
|
8777
8735
|
}, e.prototype.interleaveWithNodeStream = function(e2) {
|
|
8778
|
-
if (this.sealed)
|
|
8779
|
-
throw g(2);
|
|
8736
|
+
if (this.sealed) throw g(2);
|
|
8780
8737
|
this.seal();
|
|
8781
8738
|
var t = __require("stream").Transform, n = this.instance, r2 = this._emitSheetCSS, o2 = new t({ transform: function(e3, t2, o3) {
|
|
8782
8739
|
var s2 = e3.toString(), i = r2();
|
|
8783
8740
|
if (n.clearTag(), gt.test(s2)) {
|
|
8784
8741
|
var a2 = s2.indexOf(">") + 1, c2 = s2.slice(0, a2), u2 = s2.slice(a2);
|
|
8785
8742
|
this.push(c2 + i + u2);
|
|
8786
|
-
} else
|
|
8787
|
-
this.push(i + s2);
|
|
8743
|
+
} else this.push(i + s2);
|
|
8788
8744
|
o3();
|
|
8789
8745
|
} });
|
|
8790
8746
|
if ("on" in e2 && "function" == typeof e2.on && "pipe" in e2) {
|
|
@@ -8793,11 +8749,10 @@ var St = function() {
|
|
|
8793
8749
|
o2.emit("error", e3);
|
|
8794
8750
|
}), s.pipe(o2);
|
|
8795
8751
|
}
|
|
8796
|
-
if ("pipe" in e2 && "function" == typeof e2.pipe)
|
|
8797
|
-
return e2.pipe(o2);
|
|
8752
|
+
if ("pipe" in e2 && "function" == typeof e2.pipe) return e2.pipe(o2);
|
|
8798
8753
|
throw new Error("Unsupported stream type");
|
|
8799
8754
|
}, e;
|
|
8800
|
-
}();
|
|
8755
|
+
})();
|
|
8801
8756
|
"production" !== process.env.NODE_ENV && "undefined" != typeof navigator && "ReactNative" === navigator.product && console.warn("It looks like you've imported 'styled-components' on React Native.\nPerhaps you're looking to import 'styled-components/native'?\nRead more about this at https://www.styled-components.com/docs/basics#react-native");
|
|
8802
8757
|
var bt = "__sc-".concat(a, "__");
|
|
8803
8758
|
"production" !== process.env.NODE_ENV && "test" !== process.env.NODE_ENV && "undefined" != typeof window && (window[bt] || (window[bt] = 0), 1 === window[bt] && console.warn("It looks like there are several instances of 'styled-components' initialized in this application. This may cause dynamic styles to not render properly, errors during the rehydration process, a missing theme prop, and makes your application bigger without good reason.\n\nSee https://styled-components.com/docs/faqs#why-am-i-getting-a-warning-about-several-instances-of-module-on-the-page for more info."), window[bt] += 1);
|
|
@@ -9106,8 +9061,7 @@ var useApiRequest = (props, method, mutationKey) => {
|
|
|
9106
9061
|
}
|
|
9107
9062
|
}
|
|
9108
9063
|
queryClient2.setQueryData(queryKey, (oldData) => {
|
|
9109
|
-
if (!oldData)
|
|
9110
|
-
return [savedView];
|
|
9064
|
+
if (!oldData) return [savedView];
|
|
9111
9065
|
return oldData.map(
|
|
9112
9066
|
(item) => item.share_token === savedView.share_token ? savedView : item
|
|
9113
9067
|
);
|
|
@@ -9226,12 +9180,9 @@ function setSmartGridConfig(api, config) {
|
|
|
9226
9180
|
|
|
9227
9181
|
// src/components/saved-views/SavedViewsUtils.ts
|
|
9228
9182
|
var customAndConfigSync = (viewTableConfig, defaultTableConfig) => {
|
|
9229
|
-
if (!viewTableConfig && !defaultTableConfig)
|
|
9230
|
-
|
|
9231
|
-
if (!
|
|
9232
|
-
return defaultTableConfig;
|
|
9233
|
-
if (!defaultTableConfig?.columnState)
|
|
9234
|
-
return viewTableConfig;
|
|
9183
|
+
if (!viewTableConfig && !defaultTableConfig) return void 0;
|
|
9184
|
+
if (!viewTableConfig?.columnState) return defaultTableConfig;
|
|
9185
|
+
if (!defaultTableConfig?.columnState) return viewTableConfig;
|
|
9235
9186
|
const viewColumns = viewTableConfig.columnState;
|
|
9236
9187
|
const defaultViewColumns = defaultTableConfig.columnState;
|
|
9237
9188
|
if (!Array.isArray(viewColumns) || !Array.isArray(defaultViewColumns))
|
|
@@ -9285,8 +9236,7 @@ var updateTableConfig = (view, tableApi, provider) => {
|
|
|
9285
9236
|
|
|
9286
9237
|
// src/components/panels/PanelContentUtils.ts
|
|
9287
9238
|
var getOrderedVisibleColumns = (columns, idKey) => {
|
|
9288
|
-
if (!columns)
|
|
9289
|
-
return [];
|
|
9239
|
+
if (!columns) return [];
|
|
9290
9240
|
const isConfigSchema = idKey === "field";
|
|
9291
9241
|
const isHidden = (col) => {
|
|
9292
9242
|
if (isConfigSchema) {
|
|
@@ -9345,8 +9295,7 @@ var cleanObject = (table_config, provider) => {
|
|
|
9345
9295
|
};
|
|
9346
9296
|
} else {
|
|
9347
9297
|
const dataTableConfig = table_config;
|
|
9348
|
-
if (!dataTableConfig?.serverFilters)
|
|
9349
|
-
return table_config;
|
|
9298
|
+
if (!dataTableConfig?.serverFilters) return table_config;
|
|
9350
9299
|
const orderedColumns = getOrderedVisibleColumns(
|
|
9351
9300
|
dataTableConfig.columnState,
|
|
9352
9301
|
"field"
|
|
@@ -9363,8 +9312,7 @@ var cleanObject = (table_config, provider) => {
|
|
|
9363
9312
|
}
|
|
9364
9313
|
};
|
|
9365
9314
|
var normalizeForComparison = (config) => {
|
|
9366
|
-
if (!config?.columnState)
|
|
9367
|
-
return config;
|
|
9315
|
+
if (!config?.columnState) return config;
|
|
9368
9316
|
return {
|
|
9369
9317
|
...config,
|
|
9370
9318
|
columnState: config.columnState.map((col) => {
|
|
@@ -9376,8 +9324,7 @@ var normalizeForComparison = (config) => {
|
|
|
9376
9324
|
};
|
|
9377
9325
|
};
|
|
9378
9326
|
var isEqual = (viewTableConfig, tableConfig, defaultViewConfig, provider) => {
|
|
9379
|
-
if (!viewTableConfig || !tableConfig)
|
|
9380
|
-
return false;
|
|
9327
|
+
if (!viewTableConfig || !tableConfig) return false;
|
|
9381
9328
|
const syncedViewTableConfig = customAndConfigSync(
|
|
9382
9329
|
viewTableConfig,
|
|
9383
9330
|
defaultViewConfig
|
|
@@ -9468,7 +9415,7 @@ var useScrollToRef = (dependency) => {
|
|
|
9468
9415
|
const ref = useRef(null);
|
|
9469
9416
|
useEffect(() => {
|
|
9470
9417
|
if (ref.current) {
|
|
9471
|
-
ref.current.scrollIntoView({ behavior: "smooth" });
|
|
9418
|
+
ref.current.scrollIntoView({ behavior: "smooth", block: "nearest" });
|
|
9472
9419
|
}
|
|
9473
9420
|
}, [dependency]);
|
|
9474
9421
|
return ref;
|
|
@@ -9724,16 +9671,14 @@ var getViewLevelOptions = (permissions, i18n, isProjectLevelTool = true) => {
|
|
|
9724
9671
|
if (isProjectLevelTool && permissions?.can_create_project_saved_views) {
|
|
9725
9672
|
options.push("project");
|
|
9726
9673
|
}
|
|
9727
|
-
if (permissions?.can_create_company_saved_views)
|
|
9728
|
-
options.push("company");
|
|
9674
|
+
if (permissions?.can_create_company_saved_views) options.push("company");
|
|
9729
9675
|
return options.map((option) => ({
|
|
9730
9676
|
label: i18n.t(`savedViews.modal.fields.viewLevels.${option}`),
|
|
9731
9677
|
id: option
|
|
9732
9678
|
}));
|
|
9733
9679
|
};
|
|
9734
9680
|
function extractMessage(error, I18n) {
|
|
9735
|
-
if (!error)
|
|
9736
|
-
return void 0;
|
|
9681
|
+
if (!error) return void 0;
|
|
9737
9682
|
const { message } = error;
|
|
9738
9683
|
if (message === null || message === void 0) {
|
|
9739
9684
|
return { form: I18n.t("savedViews.modal.errors.unknown") };
|
|
@@ -10150,11 +10095,9 @@ var ViewStorage = {
|
|
|
10150
10095
|
load(key, defaultView) {
|
|
10151
10096
|
try {
|
|
10152
10097
|
const stored = localStorage.getItem(key);
|
|
10153
|
-
if (!stored)
|
|
10154
|
-
return defaultView;
|
|
10098
|
+
if (!stored) return defaultView;
|
|
10155
10099
|
const parsed = JSON.parse(stored);
|
|
10156
|
-
if (!parsed)
|
|
10157
|
-
return defaultView;
|
|
10100
|
+
if (!parsed) return defaultView;
|
|
10158
10101
|
const isTableConfigOnly = !parsed.id && !parsed.share_token;
|
|
10159
10102
|
return isTableConfigOnly ? { ...defaultView, table_config: parsed } : parsed;
|
|
10160
10103
|
} catch {
|
|
@@ -10167,6 +10110,15 @@ var ViewStorage = {
|
|
|
10167
10110
|
};
|
|
10168
10111
|
|
|
10169
10112
|
// src/utils/hooks/useViewSelection.ts
|
|
10113
|
+
var isSmartGridConfig = (config) => {
|
|
10114
|
+
return config != null && "rowGroupState" in config;
|
|
10115
|
+
};
|
|
10116
|
+
var areRowGroupStatesEqual = (a2, b2) => {
|
|
10117
|
+
if (!a2 && !b2) return true;
|
|
10118
|
+
if (!a2 || !b2) return false;
|
|
10119
|
+
if (a2.length !== b2.length) return false;
|
|
10120
|
+
return a2.every((val, idx) => val === b2[idx]);
|
|
10121
|
+
};
|
|
10170
10122
|
var getUpdatedSearchParams = (currentParams, view) => {
|
|
10171
10123
|
const updatedParams = new URLSearchParams(currentParams);
|
|
10172
10124
|
if (view.id === "default") {
|
|
@@ -10202,7 +10154,7 @@ var restoreUrlParameter = (currentParam, previousParam, setSearchParams) => {
|
|
|
10202
10154
|
);
|
|
10203
10155
|
}
|
|
10204
10156
|
};
|
|
10205
|
-
var useViewSelection = (config, savedViews, presetViews, openSharedViewModal) => {
|
|
10157
|
+
var useViewSelection = (config, savedViews, presetViews, openSharedViewModal, tableConfig) => {
|
|
10206
10158
|
const I18n = useI18nContext11();
|
|
10207
10159
|
const projectIdSegment = config.projectId ?? "company";
|
|
10208
10160
|
const storageKey = `savedView_${config.domain}_${config.tableName}_${config.companyId}_${projectIdSegment}_${config.userId}`;
|
|
@@ -10293,6 +10245,42 @@ var useViewSelection = (config, savedViews, presetViews, openSharedViewModal) =>
|
|
|
10293
10245
|
handleSavedViewFromUrl(savedViewId);
|
|
10294
10246
|
}
|
|
10295
10247
|
}, [searchParams, handleSavedViewFromUrl, allViews.length]);
|
|
10248
|
+
const previousRowGroupStateRef = useRef2(
|
|
10249
|
+
isSmartGridConfig(tableConfig) ? tableConfig.rowGroupState : void 0
|
|
10250
|
+
);
|
|
10251
|
+
const selectedViewRef = useRef2(selectedSavedView);
|
|
10252
|
+
selectedViewRef.current = selectedSavedView;
|
|
10253
|
+
const defaultViewRef = useRef2(config.defaultView);
|
|
10254
|
+
defaultViewRef.current = config.defaultView;
|
|
10255
|
+
useEffect3(() => {
|
|
10256
|
+
if (!isSmartGridConfig(tableConfig) || !presetViews?.length) return;
|
|
10257
|
+
const currentView = selectedViewRef.current;
|
|
10258
|
+
const isPresetSelected = !currentView || currentView.view_level === "default";
|
|
10259
|
+
if (!isPresetSelected) return;
|
|
10260
|
+
const currentRowGroupState = tableConfig.rowGroupState;
|
|
10261
|
+
if (!currentRowGroupState) return;
|
|
10262
|
+
if (areRowGroupStatesEqual(
|
|
10263
|
+
previousRowGroupStateRef.current,
|
|
10264
|
+
currentRowGroupState
|
|
10265
|
+
)) {
|
|
10266
|
+
return;
|
|
10267
|
+
}
|
|
10268
|
+
previousRowGroupStateRef.current = currentRowGroupState;
|
|
10269
|
+
const matchingPreset = presetViews.find((preset) => {
|
|
10270
|
+
const presetConfig = isSmartGridConfig(preset.table_config) ? preset.table_config : void 0;
|
|
10271
|
+
return areRowGroupStatesEqual(
|
|
10272
|
+
presetConfig?.rowGroupState,
|
|
10273
|
+
currentRowGroupState
|
|
10274
|
+
);
|
|
10275
|
+
});
|
|
10276
|
+
if (matchingPreset && matchingPreset.id !== selectedViewRef.current?.id) {
|
|
10277
|
+
setSelectedSavedView(matchingPreset);
|
|
10278
|
+
persistViewToStorageAndUrl(matchingPreset);
|
|
10279
|
+
} else if (!matchingPreset && currentView?.id !== defaultViewRef.current.id) {
|
|
10280
|
+
setSelectedSavedView(defaultViewRef.current);
|
|
10281
|
+
persistViewToStorageAndUrl(defaultViewRef.current);
|
|
10282
|
+
}
|
|
10283
|
+
}, [tableConfig, presetViews, persistViewToStorageAndUrl]);
|
|
10296
10284
|
return {
|
|
10297
10285
|
selectedView: selectedSavedView,
|
|
10298
10286
|
selectView,
|
|
@@ -10352,7 +10340,8 @@ var SavedViewsContent = (props) => {
|
|
|
10352
10340
|
},
|
|
10353
10341
|
savedViews,
|
|
10354
10342
|
props.presetViews,
|
|
10355
|
-
openSharedViewModal
|
|
10343
|
+
openSharedViewModal,
|
|
10344
|
+
props.tableConfig
|
|
10356
10345
|
);
|
|
10357
10346
|
const { data: fetchedView, isError: fetchError } = useFetchSavedViewById(
|
|
10358
10347
|
modalData?.viewId ?? null,
|
|
@@ -10528,8 +10517,7 @@ var DEFAULT_COLUMN_STATE = {
|
|
|
10528
10517
|
var getColumnStateFromDefs = (columnDefs) => {
|
|
10529
10518
|
return columnDefs.map((colDef) => {
|
|
10530
10519
|
const field = colDef.field ?? colDef.colId;
|
|
10531
|
-
if (!field)
|
|
10532
|
-
return null;
|
|
10520
|
+
if (!field) return null;
|
|
10533
10521
|
return {
|
|
10534
10522
|
colId: field,
|
|
10535
10523
|
hide: colDef.hide ?? false,
|
|
@@ -10591,8 +10579,7 @@ var useSmartGridConfig = (gridApi) => {
|
|
|
10591
10579
|
() => getSmartGridConfig(gridApi)
|
|
10592
10580
|
);
|
|
10593
10581
|
useEffect5(() => {
|
|
10594
|
-
if (!gridApi)
|
|
10595
|
-
return;
|
|
10582
|
+
if (!gridApi) return;
|
|
10596
10583
|
const updateConfig = () => {
|
|
10597
10584
|
setConfig(getSmartGridConfig(gridApi));
|
|
10598
10585
|
};
|
|
@@ -10616,8 +10603,7 @@ var SmartGridSavedViews = (props) => {
|
|
|
10616
10603
|
const defaultView = presetViews.find((view) => view.id === "default") ?? presetViews[0];
|
|
10617
10604
|
const onSelect = useCallback4(
|
|
10618
10605
|
({ item }) => {
|
|
10619
|
-
if (!gridApi)
|
|
10620
|
-
return item;
|
|
10606
|
+
if (!gridApi) return item;
|
|
10621
10607
|
const isPresetView = item.view_level === "default";
|
|
10622
10608
|
if (isPresetView) {
|
|
10623
10609
|
updateTableConfig(item, gridApi, "smart-grid");
|