@tnf-dev/react 1.0.1-6 → 1.0.1-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/cjs/components/icons/archive-box-icon.cjs +1 -50
- package/dist/cjs/components/icons/bell-icon.cjs +1 -50
- package/dist/cjs/components/icons/check-circle-icon.cjs +1 -50
- package/dist/cjs/components/icons/index.cjs +1 -112
- package/dist/cjs/components/inbox/bell.cjs +12 -4714
- package/dist/cjs/components/inbox/button.cjs +12 -4654
- package/dist/cjs/components/inbox/empty.cjs +12 -4635
- package/dist/cjs/components/inbox/inbox.cjs +12 -5291
- package/dist/cjs/components/inbox/index.cjs +12 -5309
- package/dist/cjs/components/inbox/loader.cjs +12 -4629
- package/dist/cjs/components/inbox/notification-header.cjs +12 -4649
- package/dist/cjs/components/inbox/notification-item/actions.cjs +12 -4738
- package/dist/cjs/components/inbox/notification-item/index.cjs +12 -4865
- package/dist/cjs/components/inbox/popover.cjs +12 -4711
- package/dist/cjs/components/index.cjs +12 -5309
- package/dist/cjs/contexts/StyleProvider.cjs +12 -4645
- package/dist/cjs/contexts/TeknifyProvider.cjs +12 -4674
- package/dist/cjs/contexts/index.cjs +12 -4677
- package/dist/cjs/dto/index.cjs +1 -19
- package/dist/cjs/dto/notifications/index.cjs +1 -19
- package/dist/cjs/dto/notifications/notification.interface.cjs +1 -19
- package/dist/cjs/hooks/index.cjs +1 -145
- package/dist/cjs/hooks/useNotifications.cjs +1 -143
- package/dist/cjs/index.cjs +12 -5362
- package/dist/cjs/utils/const.cjs +1 -31
- package/dist/cjs/utils/index.cjs +1 -33
- package/dist/esm/components/icons/archive-box-icon.js +1 -8
- package/dist/esm/components/icons/bell-icon.js +1 -8
- package/dist/esm/components/icons/check-circle-icon.js +1 -8
- package/dist/esm/components/icons/index.js +1 -17
- package/dist/esm/components/inbox/bell.js +29 -15
- package/dist/esm/components/inbox/button.js +29 -11
- package/dist/esm/components/inbox/empty.js +29 -11
- package/dist/esm/components/inbox/inbox.js +29 -28
- package/dist/esm/components/inbox/index.js +29 -50
- package/dist/esm/components/inbox/loader.js +29 -9
- package/dist/esm/components/inbox/notification-header.js +29 -11
- package/dist/esm/components/inbox/notification-item/actions.js +29 -16
- package/dist/esm/components/inbox/notification-item/index.js +29 -17
- package/dist/esm/components/inbox/popover.js +29 -11
- package/dist/esm/components/index.js +29 -51
- package/dist/esm/contexts/StyleProvider.js +29 -9
- package/dist/esm/contexts/TeknifyProvider.js +29 -12
- package/dist/esm/contexts/index.js +29 -13
- package/dist/esm/dto/index.js +0 -4
- package/dist/esm/dto/notifications/index.js +0 -3
- package/dist/esm/dto/notifications/notification.interface.js +0 -2
- package/dist/esm/hooks/index.js +1 -13
- package/dist/esm/hooks/useNotifications.js +1 -12
- package/dist/esm/index.js +29 -62
- package/dist/esm/utils/const.js +1 -8
- package/dist/esm/utils/index.js +1 -9
- package/package.json +2 -3
- package/dist/cjs/components/icons/archive-box-icon.cjs.map +0 -1
- package/dist/cjs/components/icons/bell-icon.cjs.map +0 -1
- package/dist/cjs/components/icons/check-circle-icon.cjs.map +0 -1
- package/dist/cjs/components/icons/index.cjs.map +0 -1
- package/dist/cjs/components/inbox/bell.cjs.map +0 -1
- package/dist/cjs/components/inbox/button.cjs.map +0 -1
- package/dist/cjs/components/inbox/empty.cjs.map +0 -1
- package/dist/cjs/components/inbox/inbox.cjs.map +0 -1
- package/dist/cjs/components/inbox/index.cjs.map +0 -1
- package/dist/cjs/components/inbox/loader.cjs.map +0 -1
- package/dist/cjs/components/inbox/notification-header.cjs.map +0 -1
- package/dist/cjs/components/inbox/notification-item/actions.cjs.map +0 -1
- package/dist/cjs/components/inbox/notification-item/index.cjs.map +0 -1
- package/dist/cjs/components/inbox/popover.cjs.map +0 -1
- package/dist/cjs/components/index.cjs.map +0 -1
- package/dist/cjs/contexts/StyleProvider.cjs.map +0 -1
- package/dist/cjs/contexts/TeknifyProvider.cjs.map +0 -1
- package/dist/cjs/contexts/index.cjs.map +0 -1
- package/dist/cjs/dto/index.cjs.map +0 -1
- package/dist/cjs/dto/notifications/index.cjs.map +0 -1
- package/dist/cjs/dto/notifications/notification.interface.cjs.map +0 -1
- package/dist/cjs/hooks/index.cjs.map +0 -1
- package/dist/cjs/hooks/useNotifications.cjs.map +0 -1
- package/dist/cjs/index.cjs.map +0 -1
- package/dist/cjs/utils/const.cjs.map +0 -1
- package/dist/cjs/utils/index.cjs.map +0 -1
- package/dist/esm/chunk-57PGXW3M.js +0 -2
- package/dist/esm/chunk-57PGXW3M.js.map +0 -1
- package/dist/esm/chunk-5ZHARJ3G.js +0 -4446
- package/dist/esm/chunk-5ZHARJ3G.js.map +0 -1
- package/dist/esm/chunk-6FGP2HJW.js +0 -9
- package/dist/esm/chunk-6FGP2HJW.js.map +0 -1
- package/dist/esm/chunk-ATNNGNAM.js +0 -2
- package/dist/esm/chunk-ATNNGNAM.js.map +0 -1
- package/dist/esm/chunk-B5I3IFK2.js +0 -113
- package/dist/esm/chunk-B5I3IFK2.js.map +0 -1
- package/dist/esm/chunk-DC2MKTMP.js +0 -2
- package/dist/esm/chunk-DC2MKTMP.js.map +0 -1
- package/dist/esm/chunk-EBHNXTGY.js +0 -2
- package/dist/esm/chunk-EBHNXTGY.js.map +0 -1
- package/dist/esm/chunk-ET4RPLX7.js +0 -32
- package/dist/esm/chunk-ET4RPLX7.js.map +0 -1
- package/dist/esm/chunk-H3IWAKC5.js +0 -34
- package/dist/esm/chunk-H3IWAKC5.js.map +0 -1
- package/dist/esm/chunk-H3RCKWE3.js +0 -2
- package/dist/esm/chunk-H3RCKWE3.js.map +0 -1
- package/dist/esm/chunk-HDKTD2IK.js +0 -49
- package/dist/esm/chunk-HDKTD2IK.js.map +0 -1
- package/dist/esm/chunk-IXQPSHNR.js +0 -32
- package/dist/esm/chunk-IXQPSHNR.js.map +0 -1
- package/dist/esm/chunk-MNBHQJKW.js +0 -2
- package/dist/esm/chunk-MNBHQJKW.js.map +0 -1
- package/dist/esm/chunk-NDUFFQA7.js +0 -24
- package/dist/esm/chunk-NDUFFQA7.js.map +0 -1
- package/dist/esm/chunk-NQ3CC7OA.js +0 -84
- package/dist/esm/chunk-NQ3CC7OA.js.map +0 -1
- package/dist/esm/chunk-QILM4R2Q.js +0 -54
- package/dist/esm/chunk-QILM4R2Q.js.map +0 -1
- package/dist/esm/chunk-RCHW4I55.js +0 -2
- package/dist/esm/chunk-RCHW4I55.js.map +0 -1
- package/dist/esm/chunk-RLFVKZHT.js +0 -30
- package/dist/esm/chunk-RLFVKZHT.js.map +0 -1
- package/dist/esm/chunk-S6WUE45S.js +0 -32
- package/dist/esm/chunk-S6WUE45S.js.map +0 -1
- package/dist/esm/chunk-SSLZWOID.js +0 -97
- package/dist/esm/chunk-SSLZWOID.js.map +0 -1
- package/dist/esm/chunk-VWQT7XSQ.js +0 -2
- package/dist/esm/chunk-VWQT7XSQ.js.map +0 -1
- package/dist/esm/chunk-WN4NSHNE.js +0 -32
- package/dist/esm/chunk-WN4NSHNE.js.map +0 -1
- package/dist/esm/chunk-XVCHU66N.js +0 -40
- package/dist/esm/chunk-XVCHU66N.js.map +0 -1
- package/dist/esm/chunk-YKV4YNJ4.js +0 -44
- package/dist/esm/chunk-YKV4YNJ4.js.map +0 -1
- package/dist/esm/chunk-YY3MZBYQ.js +0 -2
- package/dist/esm/chunk-YY3MZBYQ.js.map +0 -1
- package/dist/esm/chunk-Z4Q2SGNX.js +0 -144
- package/dist/esm/chunk-Z4Q2SGNX.js.map +0 -1
- package/dist/esm/chunk-ZBV5DZZB.js +0 -104
- package/dist/esm/chunk-ZBV5DZZB.js.map +0 -1
- package/dist/esm/components/icons/archive-box-icon.js.map +0 -1
- package/dist/esm/components/icons/bell-icon.js.map +0 -1
- package/dist/esm/components/icons/check-circle-icon.js.map +0 -1
- package/dist/esm/components/icons/index.js.map +0 -1
- package/dist/esm/components/inbox/bell.js.map +0 -1
- package/dist/esm/components/inbox/button.js.map +0 -1
- package/dist/esm/components/inbox/empty.js.map +0 -1
- package/dist/esm/components/inbox/inbox.js.map +0 -1
- package/dist/esm/components/inbox/index.js.map +0 -1
- package/dist/esm/components/inbox/loader.js.map +0 -1
- package/dist/esm/components/inbox/notification-header.js.map +0 -1
- package/dist/esm/components/inbox/notification-item/actions.js.map +0 -1
- package/dist/esm/components/inbox/notification-item/index.js.map +0 -1
- package/dist/esm/components/inbox/popover.js.map +0 -1
- package/dist/esm/components/index.js.map +0 -1
- package/dist/esm/contexts/StyleProvider.js.map +0 -1
- package/dist/esm/contexts/TeknifyProvider.js.map +0 -1
- package/dist/esm/contexts/index.js.map +0 -1
- package/dist/esm/dto/index.js.map +0 -1
- package/dist/esm/dto/notifications/index.js.map +0 -1
- package/dist/esm/dto/notifications/notification.interface.js.map +0 -1
- package/dist/esm/hooks/index.js.map +0 -1
- package/dist/esm/hooks/useNotifications.js.map +0 -1
- package/dist/esm/index.js.map +0 -1
- package/dist/esm/utils/const.js.map +0 -1
- package/dist/esm/utils/index.js.map +0 -1
@@ -1,4677 +1,16 @@
|
|
1
1
|
"use client"
|
2
|
-
"use strict";
|
3
|
-
var
|
4
|
-
var
|
5
|
-
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
6
|
-
var
|
7
|
-
var
|
8
|
-
|
9
|
-
var
|
10
|
-
|
11
|
-
|
12
|
-
var
|
13
|
-
for (var name in all)
|
14
|
-
__defProp(target, name, { get: all[name], enumerable: true });
|
15
|
-
};
|
16
|
-
var __copyProps = (to, from, except, desc) => {
|
17
|
-
if (from && typeof from === "object" || typeof from === "function") {
|
18
|
-
for (let key of __getOwnPropNames(from))
|
19
|
-
if (!__hasOwnProp.call(to, key) && key !== except)
|
20
|
-
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
21
|
-
}
|
22
|
-
return to;
|
23
|
-
};
|
24
|
-
var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
|
25
|
-
// If the importer is in node compatibility mode or this is not an ESM
|
26
|
-
// file that has been converted to a CommonJS file using a Babel-
|
27
|
-
// compatible transform (i.e. "__esModule" has not been set), then set
|
28
|
-
// "default" to the CommonJS "module.exports" for node compatibility.
|
29
|
-
isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target,
|
30
|
-
mod
|
31
|
-
));
|
32
|
-
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
33
|
-
|
34
|
-
// ../../node_modules/react-is/cjs/react-is.production.min.js
|
35
|
-
var require_react_is_production_min = __commonJS({
|
36
|
-
"../../node_modules/react-is/cjs/react-is.production.min.js"(exports2) {
|
37
|
-
"use strict";
|
38
|
-
var b = "function" === typeof Symbol && Symbol.for;
|
39
|
-
var c = b ? Symbol.for("react.element") : 60103;
|
40
|
-
var d = b ? Symbol.for("react.portal") : 60106;
|
41
|
-
var e = b ? Symbol.for("react.fragment") : 60107;
|
42
|
-
var f = b ? Symbol.for("react.strict_mode") : 60108;
|
43
|
-
var g = b ? Symbol.for("react.profiler") : 60114;
|
44
|
-
var h = b ? Symbol.for("react.provider") : 60109;
|
45
|
-
var k = b ? Symbol.for("react.context") : 60110;
|
46
|
-
var l = b ? Symbol.for("react.async_mode") : 60111;
|
47
|
-
var m = b ? Symbol.for("react.concurrent_mode") : 60111;
|
48
|
-
var n = b ? Symbol.for("react.forward_ref") : 60112;
|
49
|
-
var p = b ? Symbol.for("react.suspense") : 60113;
|
50
|
-
var q = b ? Symbol.for("react.suspense_list") : 60120;
|
51
|
-
var r2 = b ? Symbol.for("react.memo") : 60115;
|
52
|
-
var t = b ? Symbol.for("react.lazy") : 60116;
|
53
|
-
var v = b ? Symbol.for("react.block") : 60121;
|
54
|
-
var w = b ? Symbol.for("react.fundamental") : 60117;
|
55
|
-
var x = b ? Symbol.for("react.responder") : 60118;
|
56
|
-
var y = b ? Symbol.for("react.scope") : 60119;
|
57
|
-
function z(a) {
|
58
|
-
if ("object" === typeof a && null !== a) {
|
59
|
-
var u = a.$$typeof;
|
60
|
-
switch (u) {
|
61
|
-
case c:
|
62
|
-
switch (a = a.type, a) {
|
63
|
-
case l:
|
64
|
-
case m:
|
65
|
-
case e:
|
66
|
-
case g:
|
67
|
-
case f:
|
68
|
-
case p:
|
69
|
-
return a;
|
70
|
-
default:
|
71
|
-
switch (a = a && a.$$typeof, a) {
|
72
|
-
case k:
|
73
|
-
case n:
|
74
|
-
case t:
|
75
|
-
case r2:
|
76
|
-
case h:
|
77
|
-
return a;
|
78
|
-
default:
|
79
|
-
return u;
|
80
|
-
}
|
81
|
-
}
|
82
|
-
case d:
|
83
|
-
return u;
|
84
|
-
}
|
85
|
-
}
|
86
|
-
}
|
87
|
-
function A(a) {
|
88
|
-
return z(a) === m;
|
89
|
-
}
|
90
|
-
exports2.AsyncMode = l;
|
91
|
-
exports2.ConcurrentMode = m;
|
92
|
-
exports2.ContextConsumer = k;
|
93
|
-
exports2.ContextProvider = h;
|
94
|
-
exports2.Element = c;
|
95
|
-
exports2.ForwardRef = n;
|
96
|
-
exports2.Fragment = e;
|
97
|
-
exports2.Lazy = t;
|
98
|
-
exports2.Memo = r2;
|
99
|
-
exports2.Portal = d;
|
100
|
-
exports2.Profiler = g;
|
101
|
-
exports2.StrictMode = f;
|
102
|
-
exports2.Suspense = p;
|
103
|
-
exports2.isAsyncMode = function(a) {
|
104
|
-
return A(a) || z(a) === l;
|
105
|
-
};
|
106
|
-
exports2.isConcurrentMode = A;
|
107
|
-
exports2.isContextConsumer = function(a) {
|
108
|
-
return z(a) === k;
|
109
|
-
};
|
110
|
-
exports2.isContextProvider = function(a) {
|
111
|
-
return z(a) === h;
|
112
|
-
};
|
113
|
-
exports2.isElement = function(a) {
|
114
|
-
return "object" === typeof a && null !== a && a.$$typeof === c;
|
115
|
-
};
|
116
|
-
exports2.isForwardRef = function(a) {
|
117
|
-
return z(a) === n;
|
118
|
-
};
|
119
|
-
exports2.isFragment = function(a) {
|
120
|
-
return z(a) === e;
|
121
|
-
};
|
122
|
-
exports2.isLazy = function(a) {
|
123
|
-
return z(a) === t;
|
124
|
-
};
|
125
|
-
exports2.isMemo = function(a) {
|
126
|
-
return z(a) === r2;
|
127
|
-
};
|
128
|
-
exports2.isPortal = function(a) {
|
129
|
-
return z(a) === d;
|
130
|
-
};
|
131
|
-
exports2.isProfiler = function(a) {
|
132
|
-
return z(a) === g;
|
133
|
-
};
|
134
|
-
exports2.isStrictMode = function(a) {
|
135
|
-
return z(a) === f;
|
136
|
-
};
|
137
|
-
exports2.isSuspense = function(a) {
|
138
|
-
return z(a) === p;
|
139
|
-
};
|
140
|
-
exports2.isValidElementType = function(a) {
|
141
|
-
return "string" === typeof a || "function" === typeof a || a === e || a === m || a === g || a === f || a === p || a === q || "object" === typeof a && null !== a && (a.$$typeof === t || a.$$typeof === r2 || a.$$typeof === h || a.$$typeof === k || a.$$typeof === n || a.$$typeof === w || a.$$typeof === x || a.$$typeof === y || a.$$typeof === v);
|
142
|
-
};
|
143
|
-
exports2.typeOf = z;
|
144
|
-
}
|
145
|
-
});
|
146
|
-
|
147
|
-
// ../../node_modules/react-is/cjs/react-is.development.js
|
148
|
-
var require_react_is_development = __commonJS({
|
149
|
-
"../../node_modules/react-is/cjs/react-is.development.js"(exports2) {
|
150
|
-
"use strict";
|
151
|
-
if (process.env.NODE_ENV !== "production") {
|
152
|
-
(function() {
|
153
|
-
"use strict";
|
154
|
-
var hasSymbol = typeof Symbol === "function" && Symbol.for;
|
155
|
-
var REACT_ELEMENT_TYPE = hasSymbol ? Symbol.for("react.element") : 60103;
|
156
|
-
var REACT_PORTAL_TYPE = hasSymbol ? Symbol.for("react.portal") : 60106;
|
157
|
-
var REACT_FRAGMENT_TYPE = hasSymbol ? Symbol.for("react.fragment") : 60107;
|
158
|
-
var REACT_STRICT_MODE_TYPE = hasSymbol ? Symbol.for("react.strict_mode") : 60108;
|
159
|
-
var REACT_PROFILER_TYPE = hasSymbol ? Symbol.for("react.profiler") : 60114;
|
160
|
-
var REACT_PROVIDER_TYPE = hasSymbol ? Symbol.for("react.provider") : 60109;
|
161
|
-
var REACT_CONTEXT_TYPE = hasSymbol ? Symbol.for("react.context") : 60110;
|
162
|
-
var REACT_ASYNC_MODE_TYPE = hasSymbol ? Symbol.for("react.async_mode") : 60111;
|
163
|
-
var REACT_CONCURRENT_MODE_TYPE = hasSymbol ? Symbol.for("react.concurrent_mode") : 60111;
|
164
|
-
var REACT_FORWARD_REF_TYPE = hasSymbol ? Symbol.for("react.forward_ref") : 60112;
|
165
|
-
var REACT_SUSPENSE_TYPE = hasSymbol ? Symbol.for("react.suspense") : 60113;
|
166
|
-
var REACT_SUSPENSE_LIST_TYPE = hasSymbol ? Symbol.for("react.suspense_list") : 60120;
|
167
|
-
var REACT_MEMO_TYPE = hasSymbol ? Symbol.for("react.memo") : 60115;
|
168
|
-
var REACT_LAZY_TYPE = hasSymbol ? Symbol.for("react.lazy") : 60116;
|
169
|
-
var REACT_BLOCK_TYPE = hasSymbol ? Symbol.for("react.block") : 60121;
|
170
|
-
var REACT_FUNDAMENTAL_TYPE = hasSymbol ? Symbol.for("react.fundamental") : 60117;
|
171
|
-
var REACT_RESPONDER_TYPE = hasSymbol ? Symbol.for("react.responder") : 60118;
|
172
|
-
var REACT_SCOPE_TYPE = hasSymbol ? Symbol.for("react.scope") : 60119;
|
173
|
-
function isValidElementType(type) {
|
174
|
-
return typeof type === "string" || typeof type === "function" || // Note: its typeof might be other than 'symbol' or 'number' if it's a polyfill.
|
175
|
-
type === REACT_FRAGMENT_TYPE || type === REACT_CONCURRENT_MODE_TYPE || type === REACT_PROFILER_TYPE || type === REACT_STRICT_MODE_TYPE || type === REACT_SUSPENSE_TYPE || type === REACT_SUSPENSE_LIST_TYPE || typeof type === "object" && type !== null && (type.$$typeof === REACT_LAZY_TYPE || type.$$typeof === REACT_MEMO_TYPE || type.$$typeof === REACT_PROVIDER_TYPE || type.$$typeof === REACT_CONTEXT_TYPE || type.$$typeof === REACT_FORWARD_REF_TYPE || type.$$typeof === REACT_FUNDAMENTAL_TYPE || type.$$typeof === REACT_RESPONDER_TYPE || type.$$typeof === REACT_SCOPE_TYPE || type.$$typeof === REACT_BLOCK_TYPE);
|
176
|
-
}
|
177
|
-
function typeOf(object) {
|
178
|
-
if (typeof object === "object" && object !== null) {
|
179
|
-
var $$typeof = object.$$typeof;
|
180
|
-
switch ($$typeof) {
|
181
|
-
case REACT_ELEMENT_TYPE:
|
182
|
-
var type = object.type;
|
183
|
-
switch (type) {
|
184
|
-
case REACT_ASYNC_MODE_TYPE:
|
185
|
-
case REACT_CONCURRENT_MODE_TYPE:
|
186
|
-
case REACT_FRAGMENT_TYPE:
|
187
|
-
case REACT_PROFILER_TYPE:
|
188
|
-
case REACT_STRICT_MODE_TYPE:
|
189
|
-
case REACT_SUSPENSE_TYPE:
|
190
|
-
return type;
|
191
|
-
default:
|
192
|
-
var $$typeofType = type && type.$$typeof;
|
193
|
-
switch ($$typeofType) {
|
194
|
-
case REACT_CONTEXT_TYPE:
|
195
|
-
case REACT_FORWARD_REF_TYPE:
|
196
|
-
case REACT_LAZY_TYPE:
|
197
|
-
case REACT_MEMO_TYPE:
|
198
|
-
case REACT_PROVIDER_TYPE:
|
199
|
-
return $$typeofType;
|
200
|
-
default:
|
201
|
-
return $$typeof;
|
202
|
-
}
|
203
|
-
}
|
204
|
-
case REACT_PORTAL_TYPE:
|
205
|
-
return $$typeof;
|
206
|
-
}
|
207
|
-
}
|
208
|
-
return void 0;
|
209
|
-
}
|
210
|
-
var AsyncMode = REACT_ASYNC_MODE_TYPE;
|
211
|
-
var ConcurrentMode = REACT_CONCURRENT_MODE_TYPE;
|
212
|
-
var ContextConsumer = REACT_CONTEXT_TYPE;
|
213
|
-
var ContextProvider = REACT_PROVIDER_TYPE;
|
214
|
-
var Element = REACT_ELEMENT_TYPE;
|
215
|
-
var ForwardRef = REACT_FORWARD_REF_TYPE;
|
216
|
-
var Fragment = REACT_FRAGMENT_TYPE;
|
217
|
-
var Lazy = REACT_LAZY_TYPE;
|
218
|
-
var Memo = REACT_MEMO_TYPE;
|
219
|
-
var Portal = REACT_PORTAL_TYPE;
|
220
|
-
var Profiler = REACT_PROFILER_TYPE;
|
221
|
-
var StrictMode = REACT_STRICT_MODE_TYPE;
|
222
|
-
var Suspense = REACT_SUSPENSE_TYPE;
|
223
|
-
var hasWarnedAboutDeprecatedIsAsyncMode = false;
|
224
|
-
function isAsyncMode(object) {
|
225
|
-
{
|
226
|
-
if (!hasWarnedAboutDeprecatedIsAsyncMode) {
|
227
|
-
hasWarnedAboutDeprecatedIsAsyncMode = true;
|
228
|
-
console["warn"]("The ReactIs.isAsyncMode() alias has been deprecated, and will be removed in React 17+. Update your code to use ReactIs.isConcurrentMode() instead. It has the exact same API.");
|
229
|
-
}
|
230
|
-
}
|
231
|
-
return isConcurrentMode(object) || typeOf(object) === REACT_ASYNC_MODE_TYPE;
|
232
|
-
}
|
233
|
-
function isConcurrentMode(object) {
|
234
|
-
return typeOf(object) === REACT_CONCURRENT_MODE_TYPE;
|
235
|
-
}
|
236
|
-
function isContextConsumer(object) {
|
237
|
-
return typeOf(object) === REACT_CONTEXT_TYPE;
|
238
|
-
}
|
239
|
-
function isContextProvider(object) {
|
240
|
-
return typeOf(object) === REACT_PROVIDER_TYPE;
|
241
|
-
}
|
242
|
-
function isElement(object) {
|
243
|
-
return typeof object === "object" && object !== null && object.$$typeof === REACT_ELEMENT_TYPE;
|
244
|
-
}
|
245
|
-
function isForwardRef(object) {
|
246
|
-
return typeOf(object) === REACT_FORWARD_REF_TYPE;
|
247
|
-
}
|
248
|
-
function isFragment(object) {
|
249
|
-
return typeOf(object) === REACT_FRAGMENT_TYPE;
|
250
|
-
}
|
251
|
-
function isLazy(object) {
|
252
|
-
return typeOf(object) === REACT_LAZY_TYPE;
|
253
|
-
}
|
254
|
-
function isMemo(object) {
|
255
|
-
return typeOf(object) === REACT_MEMO_TYPE;
|
256
|
-
}
|
257
|
-
function isPortal(object) {
|
258
|
-
return typeOf(object) === REACT_PORTAL_TYPE;
|
259
|
-
}
|
260
|
-
function isProfiler(object) {
|
261
|
-
return typeOf(object) === REACT_PROFILER_TYPE;
|
262
|
-
}
|
263
|
-
function isStrictMode(object) {
|
264
|
-
return typeOf(object) === REACT_STRICT_MODE_TYPE;
|
265
|
-
}
|
266
|
-
function isSuspense(object) {
|
267
|
-
return typeOf(object) === REACT_SUSPENSE_TYPE;
|
268
|
-
}
|
269
|
-
exports2.AsyncMode = AsyncMode;
|
270
|
-
exports2.ConcurrentMode = ConcurrentMode;
|
271
|
-
exports2.ContextConsumer = ContextConsumer;
|
272
|
-
exports2.ContextProvider = ContextProvider;
|
273
|
-
exports2.Element = Element;
|
274
|
-
exports2.ForwardRef = ForwardRef;
|
275
|
-
exports2.Fragment = Fragment;
|
276
|
-
exports2.Lazy = Lazy;
|
277
|
-
exports2.Memo = Memo;
|
278
|
-
exports2.Portal = Portal;
|
279
|
-
exports2.Profiler = Profiler;
|
280
|
-
exports2.StrictMode = StrictMode;
|
281
|
-
exports2.Suspense = Suspense;
|
282
|
-
exports2.isAsyncMode = isAsyncMode;
|
283
|
-
exports2.isConcurrentMode = isConcurrentMode;
|
284
|
-
exports2.isContextConsumer = isContextConsumer;
|
285
|
-
exports2.isContextProvider = isContextProvider;
|
286
|
-
exports2.isElement = isElement;
|
287
|
-
exports2.isForwardRef = isForwardRef;
|
288
|
-
exports2.isFragment = isFragment;
|
289
|
-
exports2.isLazy = isLazy;
|
290
|
-
exports2.isMemo = isMemo;
|
291
|
-
exports2.isPortal = isPortal;
|
292
|
-
exports2.isProfiler = isProfiler;
|
293
|
-
exports2.isStrictMode = isStrictMode;
|
294
|
-
exports2.isSuspense = isSuspense;
|
295
|
-
exports2.isValidElementType = isValidElementType;
|
296
|
-
exports2.typeOf = typeOf;
|
297
|
-
})();
|
298
|
-
}
|
299
|
-
}
|
300
|
-
});
|
301
|
-
|
302
|
-
// ../../node_modules/react-is/index.js
|
303
|
-
var require_react_is = __commonJS({
|
304
|
-
"../../node_modules/react-is/index.js"(exports2, module2) {
|
305
|
-
"use strict";
|
306
|
-
if (process.env.NODE_ENV === "production") {
|
307
|
-
module2.exports = require_react_is_production_min();
|
308
|
-
} else {
|
309
|
-
module2.exports = require_react_is_development();
|
310
|
-
}
|
311
|
-
}
|
312
|
-
});
|
313
|
-
|
314
|
-
// ../../node_modules/hoist-non-react-statics/dist/hoist-non-react-statics.cjs.js
|
315
|
-
var require_hoist_non_react_statics_cjs = __commonJS({
|
316
|
-
"../../node_modules/hoist-non-react-statics/dist/hoist-non-react-statics.cjs.js"(exports2, module2) {
|
317
|
-
"use strict";
|
318
|
-
var reactIs = require_react_is();
|
319
|
-
var REACT_STATICS = {
|
320
|
-
childContextTypes: true,
|
321
|
-
contextType: true,
|
322
|
-
contextTypes: true,
|
323
|
-
defaultProps: true,
|
324
|
-
displayName: true,
|
325
|
-
getDefaultProps: true,
|
326
|
-
getDerivedStateFromError: true,
|
327
|
-
getDerivedStateFromProps: true,
|
328
|
-
mixins: true,
|
329
|
-
propTypes: true,
|
330
|
-
type: true
|
331
|
-
};
|
332
|
-
var KNOWN_STATICS = {
|
333
|
-
name: true,
|
334
|
-
length: true,
|
335
|
-
prototype: true,
|
336
|
-
caller: true,
|
337
|
-
callee: true,
|
338
|
-
arguments: true,
|
339
|
-
arity: true
|
340
|
-
};
|
341
|
-
var FORWARD_REF_STATICS = {
|
342
|
-
"$$typeof": true,
|
343
|
-
render: true,
|
344
|
-
defaultProps: true,
|
345
|
-
displayName: true,
|
346
|
-
propTypes: true
|
347
|
-
};
|
348
|
-
var MEMO_STATICS = {
|
349
|
-
"$$typeof": true,
|
350
|
-
compare: true,
|
351
|
-
defaultProps: true,
|
352
|
-
displayName: true,
|
353
|
-
propTypes: true,
|
354
|
-
type: true
|
355
|
-
};
|
356
|
-
var TYPE_STATICS = {};
|
357
|
-
TYPE_STATICS[reactIs.ForwardRef] = FORWARD_REF_STATICS;
|
358
|
-
TYPE_STATICS[reactIs.Memo] = MEMO_STATICS;
|
359
|
-
function getStatics(component) {
|
360
|
-
if (reactIs.isMemo(component)) {
|
361
|
-
return MEMO_STATICS;
|
362
|
-
}
|
363
|
-
return TYPE_STATICS[component["$$typeof"]] || REACT_STATICS;
|
364
|
-
}
|
365
|
-
var defineProperty = Object.defineProperty;
|
366
|
-
var getOwnPropertyNames = Object.getOwnPropertyNames;
|
367
|
-
var getOwnPropertySymbols = Object.getOwnPropertySymbols;
|
368
|
-
var getOwnPropertyDescriptor = Object.getOwnPropertyDescriptor;
|
369
|
-
var getPrototypeOf = Object.getPrototypeOf;
|
370
|
-
var objectPrototype = Object.prototype;
|
371
|
-
function hoistNonReactStatics2(targetComponent, sourceComponent, blacklist) {
|
372
|
-
if (typeof sourceComponent !== "string") {
|
373
|
-
if (objectPrototype) {
|
374
|
-
var inheritedComponent = getPrototypeOf(sourceComponent);
|
375
|
-
if (inheritedComponent && inheritedComponent !== objectPrototype) {
|
376
|
-
hoistNonReactStatics2(targetComponent, inheritedComponent, blacklist);
|
377
|
-
}
|
378
|
-
}
|
379
|
-
var keys = getOwnPropertyNames(sourceComponent);
|
380
|
-
if (getOwnPropertySymbols) {
|
381
|
-
keys = keys.concat(getOwnPropertySymbols(sourceComponent));
|
382
|
-
}
|
383
|
-
var targetStatics = getStatics(targetComponent);
|
384
|
-
var sourceStatics = getStatics(sourceComponent);
|
385
|
-
for (var i = 0; i < keys.length; ++i) {
|
386
|
-
var key = keys[i];
|
387
|
-
if (!KNOWN_STATICS[key] && !(blacklist && blacklist[key]) && !(sourceStatics && sourceStatics[key]) && !(targetStatics && targetStatics[key])) {
|
388
|
-
var descriptor = getOwnPropertyDescriptor(sourceComponent, key);
|
389
|
-
try {
|
390
|
-
defineProperty(targetComponent, key, descriptor);
|
391
|
-
} catch (e) {
|
392
|
-
}
|
393
|
-
}
|
394
|
-
}
|
395
|
-
}
|
396
|
-
return targetComponent;
|
397
|
-
}
|
398
|
-
module2.exports = hoistNonReactStatics2;
|
399
|
-
}
|
400
|
-
});
|
401
|
-
|
402
|
-
// ../../node_modules/object-assign/index.js
|
403
|
-
var require_object_assign = __commonJS({
|
404
|
-
"../../node_modules/object-assign/index.js"(exports2, module2) {
|
405
|
-
"use strict";
|
406
|
-
var getOwnPropertySymbols = Object.getOwnPropertySymbols;
|
407
|
-
var hasOwnProperty = Object.prototype.hasOwnProperty;
|
408
|
-
var propIsEnumerable = Object.prototype.propertyIsEnumerable;
|
409
|
-
function toObject(val) {
|
410
|
-
if (val === null || val === void 0) {
|
411
|
-
throw new TypeError("Object.assign cannot be called with null or undefined");
|
412
|
-
}
|
413
|
-
return Object(val);
|
414
|
-
}
|
415
|
-
function shouldUseNative() {
|
416
|
-
try {
|
417
|
-
if (!Object.assign) {
|
418
|
-
return false;
|
419
|
-
}
|
420
|
-
var test1 = new String("abc");
|
421
|
-
test1[5] = "de";
|
422
|
-
if (Object.getOwnPropertyNames(test1)[0] === "5") {
|
423
|
-
return false;
|
424
|
-
}
|
425
|
-
var test2 = {};
|
426
|
-
for (var i = 0; i < 10; i++) {
|
427
|
-
test2["_" + String.fromCharCode(i)] = i;
|
428
|
-
}
|
429
|
-
var order2 = Object.getOwnPropertyNames(test2).map(function(n) {
|
430
|
-
return test2[n];
|
431
|
-
});
|
432
|
-
if (order2.join("") !== "0123456789") {
|
433
|
-
return false;
|
434
|
-
}
|
435
|
-
var test3 = {};
|
436
|
-
"abcdefghijklmnopqrst".split("").forEach(function(letter) {
|
437
|
-
test3[letter] = letter;
|
438
|
-
});
|
439
|
-
if (Object.keys(Object.assign({}, test3)).join("") !== "abcdefghijklmnopqrst") {
|
440
|
-
return false;
|
441
|
-
}
|
442
|
-
return true;
|
443
|
-
} catch (err) {
|
444
|
-
return false;
|
445
|
-
}
|
446
|
-
}
|
447
|
-
module2.exports = shouldUseNative() ? Object.assign : function(target, source) {
|
448
|
-
var from;
|
449
|
-
var to = toObject(target);
|
450
|
-
var symbols;
|
451
|
-
for (var s = 1; s < arguments.length; s++) {
|
452
|
-
from = Object(arguments[s]);
|
453
|
-
for (var key in from) {
|
454
|
-
if (hasOwnProperty.call(from, key)) {
|
455
|
-
to[key] = from[key];
|
456
|
-
}
|
457
|
-
}
|
458
|
-
if (getOwnPropertySymbols) {
|
459
|
-
symbols = getOwnPropertySymbols(from);
|
460
|
-
for (var i = 0; i < symbols.length; i++) {
|
461
|
-
if (propIsEnumerable.call(from, symbols[i])) {
|
462
|
-
to[symbols[i]] = from[symbols[i]];
|
463
|
-
}
|
464
|
-
}
|
465
|
-
}
|
466
|
-
}
|
467
|
-
return to;
|
468
|
-
};
|
469
|
-
}
|
470
|
-
});
|
471
|
-
|
472
|
-
// ../../node_modules/prop-types/lib/ReactPropTypesSecret.js
|
473
|
-
var require_ReactPropTypesSecret = __commonJS({
|
474
|
-
"../../node_modules/prop-types/lib/ReactPropTypesSecret.js"(exports2, module2) {
|
475
|
-
"use strict";
|
476
|
-
var ReactPropTypesSecret = "SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED";
|
477
|
-
module2.exports = ReactPropTypesSecret;
|
478
|
-
}
|
479
|
-
});
|
480
|
-
|
481
|
-
// ../../node_modules/prop-types/lib/has.js
|
482
|
-
var require_has = __commonJS({
|
483
|
-
"../../node_modules/prop-types/lib/has.js"(exports2, module2) {
|
484
|
-
"use strict";
|
485
|
-
module2.exports = Function.call.bind(Object.prototype.hasOwnProperty);
|
486
|
-
}
|
487
|
-
});
|
488
|
-
|
489
|
-
// ../../node_modules/prop-types/checkPropTypes.js
|
490
|
-
var require_checkPropTypes = __commonJS({
|
491
|
-
"../../node_modules/prop-types/checkPropTypes.js"(exports2, module2) {
|
492
|
-
"use strict";
|
493
|
-
var printWarning = function() {
|
494
|
-
};
|
495
|
-
if (process.env.NODE_ENV !== "production") {
|
496
|
-
ReactPropTypesSecret = require_ReactPropTypesSecret();
|
497
|
-
loggedTypeFailures = {};
|
498
|
-
has = require_has();
|
499
|
-
printWarning = function(text) {
|
500
|
-
var message = "Warning: " + text;
|
501
|
-
if (typeof console !== "undefined") {
|
502
|
-
console.error(message);
|
503
|
-
}
|
504
|
-
try {
|
505
|
-
throw new Error(message);
|
506
|
-
} catch (x) {
|
507
|
-
}
|
508
|
-
};
|
509
|
-
}
|
510
|
-
var ReactPropTypesSecret;
|
511
|
-
var loggedTypeFailures;
|
512
|
-
var has;
|
513
|
-
function checkPropTypes(typeSpecs, values, location, componentName, getStack) {
|
514
|
-
if (process.env.NODE_ENV !== "production") {
|
515
|
-
for (var typeSpecName in typeSpecs) {
|
516
|
-
if (has(typeSpecs, typeSpecName)) {
|
517
|
-
var error;
|
518
|
-
try {
|
519
|
-
if (typeof typeSpecs[typeSpecName] !== "function") {
|
520
|
-
var err = Error(
|
521
|
-
(componentName || "React class") + ": " + location + " type `" + typeSpecName + "` is invalid; it must be a function, usually from the `prop-types` package, but received `" + typeof typeSpecs[typeSpecName] + "`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`."
|
522
|
-
);
|
523
|
-
err.name = "Invariant Violation";
|
524
|
-
throw err;
|
525
|
-
}
|
526
|
-
error = typeSpecs[typeSpecName](values, typeSpecName, componentName, location, null, ReactPropTypesSecret);
|
527
|
-
} catch (ex) {
|
528
|
-
error = ex;
|
529
|
-
}
|
530
|
-
if (error && !(error instanceof Error)) {
|
531
|
-
printWarning(
|
532
|
-
(componentName || "React class") + ": type specification of " + location + " `" + typeSpecName + "` is invalid; the type checker function must return `null` or an `Error` but returned a " + typeof error + ". You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument)."
|
533
|
-
);
|
534
|
-
}
|
535
|
-
if (error instanceof Error && !(error.message in loggedTypeFailures)) {
|
536
|
-
loggedTypeFailures[error.message] = true;
|
537
|
-
var stack = getStack ? getStack() : "";
|
538
|
-
printWarning(
|
539
|
-
"Failed " + location + " type: " + error.message + (stack != null ? stack : "")
|
540
|
-
);
|
541
|
-
}
|
542
|
-
}
|
543
|
-
}
|
544
|
-
}
|
545
|
-
}
|
546
|
-
checkPropTypes.resetWarningCache = function() {
|
547
|
-
if (process.env.NODE_ENV !== "production") {
|
548
|
-
loggedTypeFailures = {};
|
549
|
-
}
|
550
|
-
};
|
551
|
-
module2.exports = checkPropTypes;
|
552
|
-
}
|
553
|
-
});
|
554
|
-
|
555
|
-
// ../../node_modules/prop-types/factoryWithTypeCheckers.js
|
556
|
-
var require_factoryWithTypeCheckers = __commonJS({
|
557
|
-
"../../node_modules/prop-types/factoryWithTypeCheckers.js"(exports2, module2) {
|
558
|
-
"use strict";
|
559
|
-
var ReactIs = require_react_is();
|
560
|
-
var assign = require_object_assign();
|
561
|
-
var ReactPropTypesSecret = require_ReactPropTypesSecret();
|
562
|
-
var has = require_has();
|
563
|
-
var checkPropTypes = require_checkPropTypes();
|
564
|
-
var printWarning = function() {
|
565
|
-
};
|
566
|
-
if (process.env.NODE_ENV !== "production") {
|
567
|
-
printWarning = function(text) {
|
568
|
-
var message = "Warning: " + text;
|
569
|
-
if (typeof console !== "undefined") {
|
570
|
-
console.error(message);
|
571
|
-
}
|
572
|
-
try {
|
573
|
-
throw new Error(message);
|
574
|
-
} catch (x) {
|
575
|
-
}
|
576
|
-
};
|
577
|
-
}
|
578
|
-
function emptyFunctionThatReturnsNull() {
|
579
|
-
return null;
|
580
|
-
}
|
581
|
-
module2.exports = function(isValidElement, throwOnDirectAccess) {
|
582
|
-
var ITERATOR_SYMBOL = typeof Symbol === "function" && Symbol.iterator;
|
583
|
-
var FAUX_ITERATOR_SYMBOL = "@@iterator";
|
584
|
-
function getIteratorFn(maybeIterable) {
|
585
|
-
var iteratorFn = maybeIterable && (ITERATOR_SYMBOL && maybeIterable[ITERATOR_SYMBOL] || maybeIterable[FAUX_ITERATOR_SYMBOL]);
|
586
|
-
if (typeof iteratorFn === "function") {
|
587
|
-
return iteratorFn;
|
588
|
-
}
|
589
|
-
}
|
590
|
-
var ANONYMOUS = "<<anonymous>>";
|
591
|
-
var ReactPropTypes = {
|
592
|
-
array: createPrimitiveTypeChecker("array"),
|
593
|
-
bigint: createPrimitiveTypeChecker("bigint"),
|
594
|
-
bool: createPrimitiveTypeChecker("boolean"),
|
595
|
-
func: createPrimitiveTypeChecker("function"),
|
596
|
-
number: createPrimitiveTypeChecker("number"),
|
597
|
-
object: createPrimitiveTypeChecker("object"),
|
598
|
-
string: createPrimitiveTypeChecker("string"),
|
599
|
-
symbol: createPrimitiveTypeChecker("symbol"),
|
600
|
-
any: createAnyTypeChecker(),
|
601
|
-
arrayOf: createArrayOfTypeChecker,
|
602
|
-
element: createElementTypeChecker(),
|
603
|
-
elementType: createElementTypeTypeChecker(),
|
604
|
-
instanceOf: createInstanceTypeChecker,
|
605
|
-
node: createNodeChecker(),
|
606
|
-
objectOf: createObjectOfTypeChecker,
|
607
|
-
oneOf: createEnumTypeChecker,
|
608
|
-
oneOfType: createUnionTypeChecker,
|
609
|
-
shape: createShapeTypeChecker,
|
610
|
-
exact: createStrictShapeTypeChecker
|
611
|
-
};
|
612
|
-
function is(x, y) {
|
613
|
-
if (x === y) {
|
614
|
-
return x !== 0 || 1 / x === 1 / y;
|
615
|
-
} else {
|
616
|
-
return x !== x && y !== y;
|
617
|
-
}
|
618
|
-
}
|
619
|
-
function PropTypeError(message, data) {
|
620
|
-
this.message = message;
|
621
|
-
this.data = data && typeof data === "object" ? data : {};
|
622
|
-
this.stack = "";
|
623
|
-
}
|
624
|
-
PropTypeError.prototype = Error.prototype;
|
625
|
-
function createChainableTypeChecker(validate) {
|
626
|
-
if (process.env.NODE_ENV !== "production") {
|
627
|
-
var manualPropTypeCallCache = {};
|
628
|
-
var manualPropTypeWarningCount = 0;
|
629
|
-
}
|
630
|
-
function checkType(isRequired, props, propName, componentName, location, propFullName, secret) {
|
631
|
-
componentName = componentName || ANONYMOUS;
|
632
|
-
propFullName = propFullName || propName;
|
633
|
-
if (secret !== ReactPropTypesSecret) {
|
634
|
-
if (throwOnDirectAccess) {
|
635
|
-
var err = new Error(
|
636
|
-
"Calling PropTypes validators directly is not supported by the `prop-types` package. Use `PropTypes.checkPropTypes()` to call them. Read more at http://fb.me/use-check-prop-types"
|
637
|
-
);
|
638
|
-
err.name = "Invariant Violation";
|
639
|
-
throw err;
|
640
|
-
} else if (process.env.NODE_ENV !== "production" && typeof console !== "undefined") {
|
641
|
-
var cacheKey = componentName + ":" + propName;
|
642
|
-
if (!manualPropTypeCallCache[cacheKey] && // Avoid spamming the console because they are often not actionable except for lib authors
|
643
|
-
manualPropTypeWarningCount < 3) {
|
644
|
-
printWarning(
|
645
|
-
"You are manually calling a React.PropTypes validation function for the `" + propFullName + "` prop on `" + componentName + "`. This is deprecated and will throw in the standalone `prop-types` package. You may be seeing this warning due to a third-party PropTypes library. See https://fb.me/react-warning-dont-call-proptypes for details."
|
646
|
-
);
|
647
|
-
manualPropTypeCallCache[cacheKey] = true;
|
648
|
-
manualPropTypeWarningCount++;
|
649
|
-
}
|
650
|
-
}
|
651
|
-
}
|
652
|
-
if (props[propName] == null) {
|
653
|
-
if (isRequired) {
|
654
|
-
if (props[propName] === null) {
|
655
|
-
return new PropTypeError("The " + location + " `" + propFullName + "` is marked as required " + ("in `" + componentName + "`, but its value is `null`."));
|
656
|
-
}
|
657
|
-
return new PropTypeError("The " + location + " `" + propFullName + "` is marked as required in " + ("`" + componentName + "`, but its value is `undefined`."));
|
658
|
-
}
|
659
|
-
return null;
|
660
|
-
} else {
|
661
|
-
return validate(props, propName, componentName, location, propFullName);
|
662
|
-
}
|
663
|
-
}
|
664
|
-
var chainedCheckType = checkType.bind(null, false);
|
665
|
-
chainedCheckType.isRequired = checkType.bind(null, true);
|
666
|
-
return chainedCheckType;
|
667
|
-
}
|
668
|
-
function createPrimitiveTypeChecker(expectedType) {
|
669
|
-
function validate(props, propName, componentName, location, propFullName, secret) {
|
670
|
-
var propValue = props[propName];
|
671
|
-
var propType = getPropType(propValue);
|
672
|
-
if (propType !== expectedType) {
|
673
|
-
var preciseType = getPreciseType(propValue);
|
674
|
-
return new PropTypeError(
|
675
|
-
"Invalid " + location + " `" + propFullName + "` of type " + ("`" + preciseType + "` supplied to `" + componentName + "`, expected ") + ("`" + expectedType + "`."),
|
676
|
-
{ expectedType }
|
677
|
-
);
|
678
|
-
}
|
679
|
-
return null;
|
680
|
-
}
|
681
|
-
return createChainableTypeChecker(validate);
|
682
|
-
}
|
683
|
-
function createAnyTypeChecker() {
|
684
|
-
return createChainableTypeChecker(emptyFunctionThatReturnsNull);
|
685
|
-
}
|
686
|
-
function createArrayOfTypeChecker(typeChecker) {
|
687
|
-
function validate(props, propName, componentName, location, propFullName) {
|
688
|
-
if (typeof typeChecker !== "function") {
|
689
|
-
return new PropTypeError("Property `" + propFullName + "` of component `" + componentName + "` has invalid PropType notation inside arrayOf.");
|
690
|
-
}
|
691
|
-
var propValue = props[propName];
|
692
|
-
if (!Array.isArray(propValue)) {
|
693
|
-
var propType = getPropType(propValue);
|
694
|
-
return new PropTypeError("Invalid " + location + " `" + propFullName + "` of type " + ("`" + propType + "` supplied to `" + componentName + "`, expected an array."));
|
695
|
-
}
|
696
|
-
for (var i = 0; i < propValue.length; i++) {
|
697
|
-
var error = typeChecker(propValue, i, componentName, location, propFullName + "[" + i + "]", ReactPropTypesSecret);
|
698
|
-
if (error instanceof Error) {
|
699
|
-
return error;
|
700
|
-
}
|
701
|
-
}
|
702
|
-
return null;
|
703
|
-
}
|
704
|
-
return createChainableTypeChecker(validate);
|
705
|
-
}
|
706
|
-
function createElementTypeChecker() {
|
707
|
-
function validate(props, propName, componentName, location, propFullName) {
|
708
|
-
var propValue = props[propName];
|
709
|
-
if (!isValidElement(propValue)) {
|
710
|
-
var propType = getPropType(propValue);
|
711
|
-
return new PropTypeError("Invalid " + location + " `" + propFullName + "` of type " + ("`" + propType + "` supplied to `" + componentName + "`, expected a single ReactElement."));
|
712
|
-
}
|
713
|
-
return null;
|
714
|
-
}
|
715
|
-
return createChainableTypeChecker(validate);
|
716
|
-
}
|
717
|
-
function createElementTypeTypeChecker() {
|
718
|
-
function validate(props, propName, componentName, location, propFullName) {
|
719
|
-
var propValue = props[propName];
|
720
|
-
if (!ReactIs.isValidElementType(propValue)) {
|
721
|
-
var propType = getPropType(propValue);
|
722
|
-
return new PropTypeError("Invalid " + location + " `" + propFullName + "` of type " + ("`" + propType + "` supplied to `" + componentName + "`, expected a single ReactElement type."));
|
723
|
-
}
|
724
|
-
return null;
|
725
|
-
}
|
726
|
-
return createChainableTypeChecker(validate);
|
727
|
-
}
|
728
|
-
function createInstanceTypeChecker(expectedClass) {
|
729
|
-
function validate(props, propName, componentName, location, propFullName) {
|
730
|
-
if (!(props[propName] instanceof expectedClass)) {
|
731
|
-
var expectedClassName = expectedClass.name || ANONYMOUS;
|
732
|
-
var actualClassName = getClassName(props[propName]);
|
733
|
-
return new PropTypeError("Invalid " + location + " `" + propFullName + "` of type " + ("`" + actualClassName + "` supplied to `" + componentName + "`, expected ") + ("instance of `" + expectedClassName + "`."));
|
734
|
-
}
|
735
|
-
return null;
|
736
|
-
}
|
737
|
-
return createChainableTypeChecker(validate);
|
738
|
-
}
|
739
|
-
function createEnumTypeChecker(expectedValues) {
|
740
|
-
if (!Array.isArray(expectedValues)) {
|
741
|
-
if (process.env.NODE_ENV !== "production") {
|
742
|
-
if (arguments.length > 1) {
|
743
|
-
printWarning(
|
744
|
-
"Invalid arguments supplied to oneOf, expected an array, got " + arguments.length + " arguments. A common mistake is to write oneOf(x, y, z) instead of oneOf([x, y, z])."
|
745
|
-
);
|
746
|
-
} else {
|
747
|
-
printWarning("Invalid argument supplied to oneOf, expected an array.");
|
748
|
-
}
|
749
|
-
}
|
750
|
-
return emptyFunctionThatReturnsNull;
|
751
|
-
}
|
752
|
-
function validate(props, propName, componentName, location, propFullName) {
|
753
|
-
var propValue = props[propName];
|
754
|
-
for (var i = 0; i < expectedValues.length; i++) {
|
755
|
-
if (is(propValue, expectedValues[i])) {
|
756
|
-
return null;
|
757
|
-
}
|
758
|
-
}
|
759
|
-
var valuesString = JSON.stringify(expectedValues, function replacer(key, value) {
|
760
|
-
var type = getPreciseType(value);
|
761
|
-
if (type === "symbol") {
|
762
|
-
return String(value);
|
763
|
-
}
|
764
|
-
return value;
|
765
|
-
});
|
766
|
-
return new PropTypeError("Invalid " + location + " `" + propFullName + "` of value `" + String(propValue) + "` " + ("supplied to `" + componentName + "`, expected one of " + valuesString + "."));
|
767
|
-
}
|
768
|
-
return createChainableTypeChecker(validate);
|
769
|
-
}
|
770
|
-
function createObjectOfTypeChecker(typeChecker) {
|
771
|
-
function validate(props, propName, componentName, location, propFullName) {
|
772
|
-
if (typeof typeChecker !== "function") {
|
773
|
-
return new PropTypeError("Property `" + propFullName + "` of component `" + componentName + "` has invalid PropType notation inside objectOf.");
|
774
|
-
}
|
775
|
-
var propValue = props[propName];
|
776
|
-
var propType = getPropType(propValue);
|
777
|
-
if (propType !== "object") {
|
778
|
-
return new PropTypeError("Invalid " + location + " `" + propFullName + "` of type " + ("`" + propType + "` supplied to `" + componentName + "`, expected an object."));
|
779
|
-
}
|
780
|
-
for (var key in propValue) {
|
781
|
-
if (has(propValue, key)) {
|
782
|
-
var error = typeChecker(propValue, key, componentName, location, propFullName + "." + key, ReactPropTypesSecret);
|
783
|
-
if (error instanceof Error) {
|
784
|
-
return error;
|
785
|
-
}
|
786
|
-
}
|
787
|
-
}
|
788
|
-
return null;
|
789
|
-
}
|
790
|
-
return createChainableTypeChecker(validate);
|
791
|
-
}
|
792
|
-
function createUnionTypeChecker(arrayOfTypeCheckers) {
|
793
|
-
if (!Array.isArray(arrayOfTypeCheckers)) {
|
794
|
-
process.env.NODE_ENV !== "production" ? printWarning("Invalid argument supplied to oneOfType, expected an instance of array.") : void 0;
|
795
|
-
return emptyFunctionThatReturnsNull;
|
796
|
-
}
|
797
|
-
for (var i = 0; i < arrayOfTypeCheckers.length; i++) {
|
798
|
-
var checker = arrayOfTypeCheckers[i];
|
799
|
-
if (typeof checker !== "function") {
|
800
|
-
printWarning(
|
801
|
-
"Invalid argument supplied to oneOfType. Expected an array of check functions, but received " + getPostfixForTypeWarning(checker) + " at index " + i + "."
|
802
|
-
);
|
803
|
-
return emptyFunctionThatReturnsNull;
|
804
|
-
}
|
805
|
-
}
|
806
|
-
function validate(props, propName, componentName, location, propFullName) {
|
807
|
-
var expectedTypes = [];
|
808
|
-
for (var i2 = 0; i2 < arrayOfTypeCheckers.length; i2++) {
|
809
|
-
var checker2 = arrayOfTypeCheckers[i2];
|
810
|
-
var checkerResult = checker2(props, propName, componentName, location, propFullName, ReactPropTypesSecret);
|
811
|
-
if (checkerResult == null) {
|
812
|
-
return null;
|
813
|
-
}
|
814
|
-
if (checkerResult.data && has(checkerResult.data, "expectedType")) {
|
815
|
-
expectedTypes.push(checkerResult.data.expectedType);
|
816
|
-
}
|
817
|
-
}
|
818
|
-
var expectedTypesMessage = expectedTypes.length > 0 ? ", expected one of type [" + expectedTypes.join(", ") + "]" : "";
|
819
|
-
return new PropTypeError("Invalid " + location + " `" + propFullName + "` supplied to " + ("`" + componentName + "`" + expectedTypesMessage + "."));
|
820
|
-
}
|
821
|
-
return createChainableTypeChecker(validate);
|
822
|
-
}
|
823
|
-
function createNodeChecker() {
|
824
|
-
function validate(props, propName, componentName, location, propFullName) {
|
825
|
-
if (!isNode(props[propName])) {
|
826
|
-
return new PropTypeError("Invalid " + location + " `" + propFullName + "` supplied to " + ("`" + componentName + "`, expected a ReactNode."));
|
827
|
-
}
|
828
|
-
return null;
|
829
|
-
}
|
830
|
-
return createChainableTypeChecker(validate);
|
831
|
-
}
|
832
|
-
function invalidValidatorError(componentName, location, propFullName, key, type) {
|
833
|
-
return new PropTypeError(
|
834
|
-
(componentName || "React class") + ": " + location + " type `" + propFullName + "." + key + "` is invalid; it must be a function, usually from the `prop-types` package, but received `" + type + "`."
|
835
|
-
);
|
836
|
-
}
|
837
|
-
function createShapeTypeChecker(shapeTypes) {
|
838
|
-
function validate(props, propName, componentName, location, propFullName) {
|
839
|
-
var propValue = props[propName];
|
840
|
-
var propType = getPropType(propValue);
|
841
|
-
if (propType !== "object") {
|
842
|
-
return new PropTypeError("Invalid " + location + " `" + propFullName + "` of type `" + propType + "` " + ("supplied to `" + componentName + "`, expected `object`."));
|
843
|
-
}
|
844
|
-
for (var key in shapeTypes) {
|
845
|
-
var checker = shapeTypes[key];
|
846
|
-
if (typeof checker !== "function") {
|
847
|
-
return invalidValidatorError(componentName, location, propFullName, key, getPreciseType(checker));
|
848
|
-
}
|
849
|
-
var error = checker(propValue, key, componentName, location, propFullName + "." + key, ReactPropTypesSecret);
|
850
|
-
if (error) {
|
851
|
-
return error;
|
852
|
-
}
|
853
|
-
}
|
854
|
-
return null;
|
855
|
-
}
|
856
|
-
return createChainableTypeChecker(validate);
|
857
|
-
}
|
858
|
-
function createStrictShapeTypeChecker(shapeTypes) {
|
859
|
-
function validate(props, propName, componentName, location, propFullName) {
|
860
|
-
var propValue = props[propName];
|
861
|
-
var propType = getPropType(propValue);
|
862
|
-
if (propType !== "object") {
|
863
|
-
return new PropTypeError("Invalid " + location + " `" + propFullName + "` of type `" + propType + "` " + ("supplied to `" + componentName + "`, expected `object`."));
|
864
|
-
}
|
865
|
-
var allKeys = assign({}, props[propName], shapeTypes);
|
866
|
-
for (var key in allKeys) {
|
867
|
-
var checker = shapeTypes[key];
|
868
|
-
if (has(shapeTypes, key) && typeof checker !== "function") {
|
869
|
-
return invalidValidatorError(componentName, location, propFullName, key, getPreciseType(checker));
|
870
|
-
}
|
871
|
-
if (!checker) {
|
872
|
-
return new PropTypeError(
|
873
|
-
"Invalid " + location + " `" + propFullName + "` key `" + key + "` supplied to `" + componentName + "`.\nBad object: " + JSON.stringify(props[propName], null, " ") + "\nValid keys: " + JSON.stringify(Object.keys(shapeTypes), null, " ")
|
874
|
-
);
|
875
|
-
}
|
876
|
-
var error = checker(propValue, key, componentName, location, propFullName + "." + key, ReactPropTypesSecret);
|
877
|
-
if (error) {
|
878
|
-
return error;
|
879
|
-
}
|
880
|
-
}
|
881
|
-
return null;
|
882
|
-
}
|
883
|
-
return createChainableTypeChecker(validate);
|
884
|
-
}
|
885
|
-
function isNode(propValue) {
|
886
|
-
switch (typeof propValue) {
|
887
|
-
case "number":
|
888
|
-
case "string":
|
889
|
-
case "undefined":
|
890
|
-
return true;
|
891
|
-
case "boolean":
|
892
|
-
return !propValue;
|
893
|
-
case "object":
|
894
|
-
if (Array.isArray(propValue)) {
|
895
|
-
return propValue.every(isNode);
|
896
|
-
}
|
897
|
-
if (propValue === null || isValidElement(propValue)) {
|
898
|
-
return true;
|
899
|
-
}
|
900
|
-
var iteratorFn = getIteratorFn(propValue);
|
901
|
-
if (iteratorFn) {
|
902
|
-
var iterator = iteratorFn.call(propValue);
|
903
|
-
var step;
|
904
|
-
if (iteratorFn !== propValue.entries) {
|
905
|
-
while (!(step = iterator.next()).done) {
|
906
|
-
if (!isNode(step.value)) {
|
907
|
-
return false;
|
908
|
-
}
|
909
|
-
}
|
910
|
-
} else {
|
911
|
-
while (!(step = iterator.next()).done) {
|
912
|
-
var entry = step.value;
|
913
|
-
if (entry) {
|
914
|
-
if (!isNode(entry[1])) {
|
915
|
-
return false;
|
916
|
-
}
|
917
|
-
}
|
918
|
-
}
|
919
|
-
}
|
920
|
-
} else {
|
921
|
-
return false;
|
922
|
-
}
|
923
|
-
return true;
|
924
|
-
default:
|
925
|
-
return false;
|
926
|
-
}
|
927
|
-
}
|
928
|
-
function isSymbol(propType, propValue) {
|
929
|
-
if (propType === "symbol") {
|
930
|
-
return true;
|
931
|
-
}
|
932
|
-
if (!propValue) {
|
933
|
-
return false;
|
934
|
-
}
|
935
|
-
if (propValue["@@toStringTag"] === "Symbol") {
|
936
|
-
return true;
|
937
|
-
}
|
938
|
-
if (typeof Symbol === "function" && propValue instanceof Symbol) {
|
939
|
-
return true;
|
940
|
-
}
|
941
|
-
return false;
|
942
|
-
}
|
943
|
-
function getPropType(propValue) {
|
944
|
-
var propType = typeof propValue;
|
945
|
-
if (Array.isArray(propValue)) {
|
946
|
-
return "array";
|
947
|
-
}
|
948
|
-
if (propValue instanceof RegExp) {
|
949
|
-
return "object";
|
950
|
-
}
|
951
|
-
if (isSymbol(propType, propValue)) {
|
952
|
-
return "symbol";
|
953
|
-
}
|
954
|
-
return propType;
|
955
|
-
}
|
956
|
-
function getPreciseType(propValue) {
|
957
|
-
if (typeof propValue === "undefined" || propValue === null) {
|
958
|
-
return "" + propValue;
|
959
|
-
}
|
960
|
-
var propType = getPropType(propValue);
|
961
|
-
if (propType === "object") {
|
962
|
-
if (propValue instanceof Date) {
|
963
|
-
return "date";
|
964
|
-
} else if (propValue instanceof RegExp) {
|
965
|
-
return "regexp";
|
966
|
-
}
|
967
|
-
}
|
968
|
-
return propType;
|
969
|
-
}
|
970
|
-
function getPostfixForTypeWarning(value) {
|
971
|
-
var type = getPreciseType(value);
|
972
|
-
switch (type) {
|
973
|
-
case "array":
|
974
|
-
case "object":
|
975
|
-
return "an " + type;
|
976
|
-
case "boolean":
|
977
|
-
case "date":
|
978
|
-
case "regexp":
|
979
|
-
return "a " + type;
|
980
|
-
default:
|
981
|
-
return type;
|
982
|
-
}
|
983
|
-
}
|
984
|
-
function getClassName(propValue) {
|
985
|
-
if (!propValue.constructor || !propValue.constructor.name) {
|
986
|
-
return ANONYMOUS;
|
987
|
-
}
|
988
|
-
return propValue.constructor.name;
|
989
|
-
}
|
990
|
-
ReactPropTypes.checkPropTypes = checkPropTypes;
|
991
|
-
ReactPropTypes.resetWarningCache = checkPropTypes.resetWarningCache;
|
992
|
-
ReactPropTypes.PropTypes = ReactPropTypes;
|
993
|
-
return ReactPropTypes;
|
994
|
-
};
|
995
|
-
}
|
996
|
-
});
|
997
|
-
|
998
|
-
// ../../node_modules/prop-types/factoryWithThrowingShims.js
|
999
|
-
var require_factoryWithThrowingShims = __commonJS({
|
1000
|
-
"../../node_modules/prop-types/factoryWithThrowingShims.js"(exports2, module2) {
|
1001
|
-
"use strict";
|
1002
|
-
var ReactPropTypesSecret = require_ReactPropTypesSecret();
|
1003
|
-
function emptyFunction() {
|
1004
|
-
}
|
1005
|
-
function emptyFunctionWithReset() {
|
1006
|
-
}
|
1007
|
-
emptyFunctionWithReset.resetWarningCache = emptyFunction;
|
1008
|
-
module2.exports = function() {
|
1009
|
-
function shim(props, propName, componentName, location, propFullName, secret) {
|
1010
|
-
if (secret === ReactPropTypesSecret) {
|
1011
|
-
return;
|
1012
|
-
}
|
1013
|
-
var err = new Error(
|
1014
|
-
"Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types"
|
1015
|
-
);
|
1016
|
-
err.name = "Invariant Violation";
|
1017
|
-
throw err;
|
1018
|
-
}
|
1019
|
-
;
|
1020
|
-
shim.isRequired = shim;
|
1021
|
-
function getShim() {
|
1022
|
-
return shim;
|
1023
|
-
}
|
1024
|
-
;
|
1025
|
-
var ReactPropTypes = {
|
1026
|
-
array: shim,
|
1027
|
-
bigint: shim,
|
1028
|
-
bool: shim,
|
1029
|
-
func: shim,
|
1030
|
-
number: shim,
|
1031
|
-
object: shim,
|
1032
|
-
string: shim,
|
1033
|
-
symbol: shim,
|
1034
|
-
any: shim,
|
1035
|
-
arrayOf: getShim,
|
1036
|
-
element: shim,
|
1037
|
-
elementType: shim,
|
1038
|
-
instanceOf: getShim,
|
1039
|
-
node: shim,
|
1040
|
-
objectOf: getShim,
|
1041
|
-
oneOf: getShim,
|
1042
|
-
oneOfType: getShim,
|
1043
|
-
shape: getShim,
|
1044
|
-
exact: getShim,
|
1045
|
-
checkPropTypes: emptyFunctionWithReset,
|
1046
|
-
resetWarningCache: emptyFunction
|
1047
|
-
};
|
1048
|
-
ReactPropTypes.PropTypes = ReactPropTypes;
|
1049
|
-
return ReactPropTypes;
|
1050
|
-
};
|
1051
|
-
}
|
1052
|
-
});
|
1053
|
-
|
1054
|
-
// ../../node_modules/prop-types/index.js
|
1055
|
-
var require_prop_types = __commonJS({
|
1056
|
-
"../../node_modules/prop-types/index.js"(exports2, module2) {
|
1057
|
-
"use strict";
|
1058
|
-
if (process.env.NODE_ENV !== "production") {
|
1059
|
-
ReactIs = require_react_is();
|
1060
|
-
throwOnDirectAccess = true;
|
1061
|
-
module2.exports = require_factoryWithTypeCheckers()(ReactIs.isElement, throwOnDirectAccess);
|
1062
|
-
} else {
|
1063
|
-
module2.exports = require_factoryWithThrowingShims()();
|
1064
|
-
}
|
1065
|
-
var ReactIs;
|
1066
|
-
var throwOnDirectAccess;
|
1067
|
-
}
|
1068
|
-
});
|
1069
|
-
|
1070
|
-
// ../../node_modules/react-display-name/lib/getDisplayName.js
|
1071
|
-
var require_getDisplayName = __commonJS({
|
1072
|
-
"../../node_modules/react-display-name/lib/getDisplayName.js"(exports2) {
|
1073
|
-
"use strict";
|
1074
|
-
Object.defineProperty(exports2, "__esModule", {
|
1075
|
-
value: true
|
1076
|
-
});
|
1077
|
-
exports2.default = getDisplayName2;
|
1078
|
-
function getDisplayName2(Component) {
|
1079
|
-
return Component.displayName || Component.name || (typeof Component === "string" && Component.length > 0 ? Component : "Unknown");
|
1080
|
-
}
|
1081
|
-
}
|
1082
|
-
});
|
1083
|
-
|
1084
|
-
// src/contexts/TeknifyProvider.tsx
|
1085
|
-
var TeknifyProvider_exports = {};
|
1086
|
-
__export(TeknifyProvider_exports, {
|
1087
|
-
TeknifyContext: () => TeknifyContext,
|
1088
|
-
default: () => TeknifyProvider_default
|
1089
|
-
});
|
1090
|
-
module.exports = __toCommonJS(TeknifyProvider_exports);
|
1091
|
-
var import_js = require("@tnf-dev/js");
|
1092
|
-
var import_react3 = require("react");
|
1093
|
-
|
1094
|
-
// ../../node_modules/clsx/dist/clsx.mjs
|
1095
|
-
function r(e) {
|
1096
|
-
var t, f, n = "";
|
1097
|
-
if ("string" == typeof e || "number" == typeof e) n += e;
|
1098
|
-
else if ("object" == typeof e) if (Array.isArray(e)) {
|
1099
|
-
var o = e.length;
|
1100
|
-
for (t = 0; t < o; t++) e[t] && (f = r(e[t])) && (n && (n += " "), n += f);
|
1101
|
-
} else for (f in e) e[f] && (n && (n += " "), n += f);
|
1102
|
-
return n;
|
1103
|
-
}
|
1104
|
-
function clsx() {
|
1105
|
-
for (var e, t, f = 0, n = "", o = arguments.length; f < o; f++) (e = arguments[f]) && (t = r(e)) && (n && (n += " "), n += t);
|
1106
|
-
return n;
|
1107
|
-
}
|
1108
|
-
var clsx_default = clsx;
|
1109
|
-
|
1110
|
-
// ../../node_modules/@babel/runtime/helpers/esm/extends.js
|
1111
|
-
function _extends() {
|
1112
|
-
return _extends = Object.assign ? Object.assign.bind() : function(n) {
|
1113
|
-
for (var e = 1; e < arguments.length; e++) {
|
1114
|
-
var t = arguments[e];
|
1115
|
-
for (var r2 in t) ({}).hasOwnProperty.call(t, r2) && (n[r2] = t[r2]);
|
1116
|
-
}
|
1117
|
-
return n;
|
1118
|
-
}, _extends.apply(null, arguments);
|
1119
|
-
}
|
1120
|
-
|
1121
|
-
// ../../node_modules/@babel/runtime/helpers/esm/objectWithoutPropertiesLoose.js
|
1122
|
-
function _objectWithoutPropertiesLoose(r2, e) {
|
1123
|
-
if (null == r2) return {};
|
1124
|
-
var t = {};
|
1125
|
-
for (var n in r2) if ({}.hasOwnProperty.call(r2, n)) {
|
1126
|
-
if (-1 !== e.indexOf(n)) continue;
|
1127
|
-
t[n] = r2[n];
|
1128
|
-
}
|
1129
|
-
return t;
|
1130
|
-
}
|
1131
|
-
|
1132
|
-
// ../../node_modules/react-jss/dist/react-jss.esm.js
|
1133
|
-
var import_react2 = __toESM(require("react"));
|
1134
|
-
var import_hoist_non_react_statics2 = __toESM(require_hoist_non_react_statics_cjs());
|
1135
|
-
|
1136
|
-
// ../../node_modules/theming/dist/theming.esm.js
|
1137
|
-
var import_react = __toESM(require("react"));
|
1138
|
-
|
1139
|
-
// ../../node_modules/tiny-warning/dist/tiny-warning.esm.js
|
1140
|
-
var isProduction = process.env.NODE_ENV === "production";
|
1141
|
-
function warning(condition, message) {
|
1142
|
-
if (!isProduction) {
|
1143
|
-
if (condition) {
|
1144
|
-
return;
|
1145
|
-
}
|
1146
|
-
var text = "Warning: " + message;
|
1147
|
-
if (typeof console !== "undefined") {
|
1148
|
-
console.warn(text);
|
1149
|
-
}
|
1150
|
-
try {
|
1151
|
-
throw Error(text);
|
1152
|
-
} catch (x) {
|
1153
|
-
}
|
1154
|
-
}
|
1155
|
-
}
|
1156
|
-
var tiny_warning_esm_default = warning;
|
1157
|
-
|
1158
|
-
// ../../node_modules/theming/dist/theming.esm.js
|
1159
|
-
var import_prop_types = __toESM(require_prop_types());
|
1160
|
-
var import_hoist_non_react_statics = __toESM(require_hoist_non_react_statics_cjs());
|
1161
|
-
var import_react_display_name = __toESM(require_getDisplayName());
|
1162
|
-
function _defineProperty(obj, key, value) {
|
1163
|
-
if (key in obj) {
|
1164
|
-
Object.defineProperty(obj, key, {
|
1165
|
-
value,
|
1166
|
-
enumerable: true,
|
1167
|
-
configurable: true,
|
1168
|
-
writable: true
|
1169
|
-
});
|
1170
|
-
} else {
|
1171
|
-
obj[key] = value;
|
1172
|
-
}
|
1173
|
-
return obj;
|
1174
|
-
}
|
1175
|
-
function _extends2() {
|
1176
|
-
_extends2 = Object.assign || function(target) {
|
1177
|
-
for (var i = 1; i < arguments.length; i++) {
|
1178
|
-
var source = arguments[i];
|
1179
|
-
for (var key in source) {
|
1180
|
-
if (Object.prototype.hasOwnProperty.call(source, key)) {
|
1181
|
-
target[key] = source[key];
|
1182
|
-
}
|
1183
|
-
}
|
1184
|
-
}
|
1185
|
-
return target;
|
1186
|
-
};
|
1187
|
-
return _extends2.apply(this, arguments);
|
1188
|
-
}
|
1189
|
-
function _inheritsLoose(subClass, superClass) {
|
1190
|
-
subClass.prototype = Object.create(superClass.prototype);
|
1191
|
-
subClass.prototype.constructor = subClass;
|
1192
|
-
subClass.__proto__ = superClass;
|
1193
|
-
}
|
1194
|
-
function _assertThisInitialized(self2) {
|
1195
|
-
if (self2 === void 0) {
|
1196
|
-
throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
|
1197
|
-
}
|
1198
|
-
return self2;
|
1199
|
-
}
|
1200
|
-
function isObject(obj) {
|
1201
|
-
return obj !== null && typeof obj === "object" && !Array.isArray(obj);
|
1202
|
-
}
|
1203
|
-
function createThemeProvider(context) {
|
1204
|
-
var ThemeProvider2 = /* @__PURE__ */ function(_React$Component) {
|
1205
|
-
_inheritsLoose(ThemeProvider3, _React$Component);
|
1206
|
-
function ThemeProvider3() {
|
1207
|
-
var _this;
|
1208
|
-
for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {
|
1209
|
-
args[_key] = arguments[_key];
|
1210
|
-
}
|
1211
|
-
_this = _React$Component.call.apply(_React$Component, [this].concat(args)) || this;
|
1212
|
-
_defineProperty(_assertThisInitialized(_assertThisInitialized(_this)), "cachedTheme", void 0);
|
1213
|
-
_defineProperty(_assertThisInitialized(_assertThisInitialized(_this)), "lastOuterTheme", void 0);
|
1214
|
-
_defineProperty(_assertThisInitialized(_assertThisInitialized(_this)), "lastTheme", void 0);
|
1215
|
-
_defineProperty(_assertThisInitialized(_assertThisInitialized(_this)), "renderProvider", function(outerTheme) {
|
1216
|
-
var children = _this.props.children;
|
1217
|
-
return import_react.default.createElement(context.Provider, {
|
1218
|
-
value: _this.getTheme(outerTheme)
|
1219
|
-
}, children);
|
1220
|
-
});
|
1221
|
-
return _this;
|
1222
|
-
}
|
1223
|
-
var _proto = ThemeProvider3.prototype;
|
1224
|
-
_proto.getTheme = function getTheme(outerTheme) {
|
1225
|
-
if (this.props.theme !== this.lastTheme || outerTheme !== this.lastOuterTheme || !this.cachedTheme) {
|
1226
|
-
this.lastOuterTheme = outerTheme;
|
1227
|
-
this.lastTheme = this.props.theme;
|
1228
|
-
if (typeof this.lastTheme === "function") {
|
1229
|
-
var theme = this.props.theme;
|
1230
|
-
this.cachedTheme = theme(outerTheme);
|
1231
|
-
process.env.NODE_ENV !== "production" ? tiny_warning_esm_default(isObject(this.cachedTheme), "[ThemeProvider] Please return an object from your theme function") : void 0;
|
1232
|
-
} else {
|
1233
|
-
var _theme = this.props.theme;
|
1234
|
-
process.env.NODE_ENV !== "production" ? tiny_warning_esm_default(isObject(_theme), "[ThemeProvider] Please make your theme prop a plain object") : void 0;
|
1235
|
-
this.cachedTheme = outerTheme ? _extends2({}, outerTheme, _theme) : _theme;
|
1236
|
-
}
|
1237
|
-
}
|
1238
|
-
return this.cachedTheme;
|
1239
|
-
};
|
1240
|
-
_proto.render = function render() {
|
1241
|
-
var children = this.props.children;
|
1242
|
-
if (!children) {
|
1243
|
-
return null;
|
1244
|
-
}
|
1245
|
-
return import_react.default.createElement(context.Consumer, null, this.renderProvider);
|
1246
|
-
};
|
1247
|
-
return ThemeProvider3;
|
1248
|
-
}(import_react.default.Component);
|
1249
|
-
if (process.env.NODE_ENV !== "production") {
|
1250
|
-
ThemeProvider2.propTypes = {
|
1251
|
-
// eslint-disable-next-line react/require-default-props
|
1252
|
-
children: import_prop_types.default.node,
|
1253
|
-
theme: import_prop_types.default.oneOfType([import_prop_types.default.shape({}), import_prop_types.default.func]).isRequired
|
1254
|
-
};
|
1255
|
-
}
|
1256
|
-
return ThemeProvider2;
|
1257
|
-
}
|
1258
|
-
function createWithTheme(context) {
|
1259
|
-
return function hoc(Component) {
|
1260
|
-
var withTheme2 = import_react.default.forwardRef(function(props, ref) {
|
1261
|
-
return import_react.default.createElement(context.Consumer, null, function(theme) {
|
1262
|
-
process.env.NODE_ENV !== "production" ? tiny_warning_esm_default(isObject(theme), "[theming] Please use withTheme only with the ThemeProvider") : void 0;
|
1263
|
-
return import_react.default.createElement(Component, _extends2({
|
1264
|
-
theme,
|
1265
|
-
ref
|
1266
|
-
}, props));
|
1267
|
-
});
|
1268
|
-
});
|
1269
|
-
if (process.env.NODE_ENV !== "production") {
|
1270
|
-
withTheme2.displayName = "WithTheme(" + (0, import_react_display_name.default)(Component) + ")";
|
1271
|
-
}
|
1272
|
-
(0, import_hoist_non_react_statics.default)(withTheme2, Component);
|
1273
|
-
return withTheme2;
|
1274
|
-
};
|
1275
|
-
}
|
1276
|
-
function createUseTheme(context) {
|
1277
|
-
var useTheme2 = function useTheme3() {
|
1278
|
-
var theme = import_react.default.useContext(context);
|
1279
|
-
process.env.NODE_ENV !== "production" ? tiny_warning_esm_default(isObject(theme), "[theming] Please use useTheme only with the ThemeProvider") : void 0;
|
1280
|
-
return theme;
|
1281
|
-
};
|
1282
|
-
return useTheme2;
|
1283
|
-
}
|
1284
|
-
function createTheming(context) {
|
1285
|
-
return {
|
1286
|
-
context,
|
1287
|
-
withTheme: createWithTheme(context),
|
1288
|
-
useTheme: createUseTheme(context),
|
1289
|
-
ThemeProvider: createThemeProvider(context)
|
1290
|
-
};
|
1291
|
-
}
|
1292
|
-
var ThemeContext = (0, import_react.createContext)();
|
1293
|
-
var _createTheming = createTheming(ThemeContext);
|
1294
|
-
var withTheme = _createTheming.withTheme;
|
1295
|
-
var ThemeProvider = _createTheming.ThemeProvider;
|
1296
|
-
var useTheme = _createTheming.useTheme;
|
1297
|
-
|
1298
|
-
// ../../node_modules/is-in-browser/dist/module.js
|
1299
|
-
var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol" ? function(obj) {
|
1300
|
-
return typeof obj;
|
1301
|
-
} : function(obj) {
|
1302
|
-
return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj;
|
1303
|
-
};
|
1304
|
-
var isBrowser = (typeof window === "undefined" ? "undefined" : _typeof(window)) === "object" && (typeof document === "undefined" ? "undefined" : _typeof(document)) === "object" && document.nodeType === 9;
|
1305
|
-
var module_default = isBrowser;
|
1306
|
-
|
1307
|
-
// ../../node_modules/@babel/runtime/helpers/esm/typeof.js
|
1308
|
-
function _typeof2(o) {
|
1309
|
-
"@babel/helpers - typeof";
|
1310
|
-
return _typeof2 = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function(o2) {
|
1311
|
-
return typeof o2;
|
1312
|
-
} : function(o2) {
|
1313
|
-
return o2 && "function" == typeof Symbol && o2.constructor === Symbol && o2 !== Symbol.prototype ? "symbol" : typeof o2;
|
1314
|
-
}, _typeof2(o);
|
1315
|
-
}
|
1316
|
-
|
1317
|
-
// ../../node_modules/@babel/runtime/helpers/esm/toPrimitive.js
|
1318
|
-
function toPrimitive(t, r2) {
|
1319
|
-
if ("object" != _typeof2(t) || !t) return t;
|
1320
|
-
var e = t[Symbol.toPrimitive];
|
1321
|
-
if (void 0 !== e) {
|
1322
|
-
var i = e.call(t, r2 || "default");
|
1323
|
-
if ("object" != _typeof2(i)) return i;
|
1324
|
-
throw new TypeError("@@toPrimitive must return a primitive value.");
|
1325
|
-
}
|
1326
|
-
return ("string" === r2 ? String : Number)(t);
|
1327
|
-
}
|
1328
|
-
|
1329
|
-
// ../../node_modules/@babel/runtime/helpers/esm/toPropertyKey.js
|
1330
|
-
function toPropertyKey(t) {
|
1331
|
-
var i = toPrimitive(t, "string");
|
1332
|
-
return "symbol" == _typeof2(i) ? i : i + "";
|
1333
|
-
}
|
1334
|
-
|
1335
|
-
// ../../node_modules/@babel/runtime/helpers/esm/createClass.js
|
1336
|
-
function _defineProperties(e, r2) {
|
1337
|
-
for (var t = 0; t < r2.length; t++) {
|
1338
|
-
var o = r2[t];
|
1339
|
-
o.enumerable = o.enumerable || false, o.configurable = true, "value" in o && (o.writable = true), Object.defineProperty(e, toPropertyKey(o.key), o);
|
1340
|
-
}
|
1341
|
-
}
|
1342
|
-
function _createClass(e, r2, t) {
|
1343
|
-
return r2 && _defineProperties(e.prototype, r2), t && _defineProperties(e, t), Object.defineProperty(e, "prototype", {
|
1344
|
-
writable: false
|
1345
|
-
}), e;
|
1346
|
-
}
|
1347
|
-
|
1348
|
-
// ../../node_modules/@babel/runtime/helpers/esm/setPrototypeOf.js
|
1349
|
-
function _setPrototypeOf(t, e) {
|
1350
|
-
return _setPrototypeOf = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function(t2, e2) {
|
1351
|
-
return t2.__proto__ = e2, t2;
|
1352
|
-
}, _setPrototypeOf(t, e);
|
1353
|
-
}
|
1354
|
-
|
1355
|
-
// ../../node_modules/@babel/runtime/helpers/esm/inheritsLoose.js
|
1356
|
-
function _inheritsLoose2(t, o) {
|
1357
|
-
t.prototype = Object.create(o.prototype), t.prototype.constructor = t, _setPrototypeOf(t, o);
|
1358
|
-
}
|
1359
|
-
|
1360
|
-
// ../../node_modules/@babel/runtime/helpers/esm/assertThisInitialized.js
|
1361
|
-
function _assertThisInitialized2(e) {
|
1362
|
-
if (void 0 === e) throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
|
1363
|
-
return e;
|
1364
|
-
}
|
1365
|
-
|
1366
|
-
// ../../node_modules/jss/dist/jss.esm.js
|
1367
|
-
var plainObjectConstrurctor = {}.constructor;
|
1368
|
-
function cloneStyle(style) {
|
1369
|
-
if (style == null || typeof style !== "object") return style;
|
1370
|
-
if (Array.isArray(style)) return style.map(cloneStyle);
|
1371
|
-
if (style.constructor !== plainObjectConstrurctor) return style;
|
1372
|
-
var newStyle = {};
|
1373
|
-
for (var name in style) {
|
1374
|
-
newStyle[name] = cloneStyle(style[name]);
|
1375
|
-
}
|
1376
|
-
return newStyle;
|
1377
|
-
}
|
1378
|
-
function createRule(name, decl, options) {
|
1379
|
-
if (name === void 0) {
|
1380
|
-
name = "unnamed";
|
1381
|
-
}
|
1382
|
-
var jss = options.jss;
|
1383
|
-
var declCopy = cloneStyle(decl);
|
1384
|
-
var rule = jss.plugins.onCreateRule(name, declCopy, options);
|
1385
|
-
if (rule) return rule;
|
1386
|
-
if (name[0] === "@") {
|
1387
|
-
process.env.NODE_ENV !== "production" ? tiny_warning_esm_default(false, "[JSS] Unknown rule " + name) : void 0;
|
1388
|
-
}
|
1389
|
-
return null;
|
1390
|
-
}
|
1391
|
-
var join = function join2(value, by) {
|
1392
|
-
var result2 = "";
|
1393
|
-
for (var i = 0; i < value.length; i++) {
|
1394
|
-
if (value[i] === "!important") break;
|
1395
|
-
if (result2) result2 += by;
|
1396
|
-
result2 += value[i];
|
1397
|
-
}
|
1398
|
-
return result2;
|
1399
|
-
};
|
1400
|
-
var toCssValue = function toCssValue2(value) {
|
1401
|
-
if (!Array.isArray(value)) return value;
|
1402
|
-
var cssValue = "";
|
1403
|
-
if (Array.isArray(value[0])) {
|
1404
|
-
for (var i = 0; i < value.length; i++) {
|
1405
|
-
if (value[i] === "!important") break;
|
1406
|
-
if (cssValue) cssValue += ", ";
|
1407
|
-
cssValue += join(value[i], " ");
|
1408
|
-
}
|
1409
|
-
} else cssValue = join(value, ", ");
|
1410
|
-
if (value[value.length - 1] === "!important") {
|
1411
|
-
cssValue += " !important";
|
1412
|
-
}
|
1413
|
-
return cssValue;
|
1414
|
-
};
|
1415
|
-
function getWhitespaceSymbols(options) {
|
1416
|
-
if (options && options.format === false) {
|
1417
|
-
return {
|
1418
|
-
linebreak: "",
|
1419
|
-
space: ""
|
1420
|
-
};
|
1421
|
-
}
|
1422
|
-
return {
|
1423
|
-
linebreak: "\n",
|
1424
|
-
space: " "
|
1425
|
-
};
|
1426
|
-
}
|
1427
|
-
function indentStr(str, indent) {
|
1428
|
-
var result2 = "";
|
1429
|
-
for (var index4 = 0; index4 < indent; index4++) {
|
1430
|
-
result2 += " ";
|
1431
|
-
}
|
1432
|
-
return result2 + str;
|
1433
|
-
}
|
1434
|
-
function toCss(selector, style, options) {
|
1435
|
-
if (options === void 0) {
|
1436
|
-
options = {};
|
1437
|
-
}
|
1438
|
-
var result2 = "";
|
1439
|
-
if (!style) return result2;
|
1440
|
-
var _options = options, _options$indent = _options.indent, indent = _options$indent === void 0 ? 0 : _options$indent;
|
1441
|
-
var fallbacks = style.fallbacks;
|
1442
|
-
if (options.format === false) {
|
1443
|
-
indent = -Infinity;
|
1444
|
-
}
|
1445
|
-
var _getWhitespaceSymbols = getWhitespaceSymbols(options), linebreak = _getWhitespaceSymbols.linebreak, space = _getWhitespaceSymbols.space;
|
1446
|
-
if (selector) indent++;
|
1447
|
-
if (fallbacks) {
|
1448
|
-
if (Array.isArray(fallbacks)) {
|
1449
|
-
for (var index4 = 0; index4 < fallbacks.length; index4++) {
|
1450
|
-
var fallback = fallbacks[index4];
|
1451
|
-
for (var prop in fallback) {
|
1452
|
-
var value = fallback[prop];
|
1453
|
-
if (value != null) {
|
1454
|
-
if (result2) result2 += linebreak;
|
1455
|
-
result2 += indentStr(prop + ":" + space + toCssValue(value) + ";", indent);
|
1456
|
-
}
|
1457
|
-
}
|
1458
|
-
}
|
1459
|
-
} else {
|
1460
|
-
for (var _prop in fallbacks) {
|
1461
|
-
var _value = fallbacks[_prop];
|
1462
|
-
if (_value != null) {
|
1463
|
-
if (result2) result2 += linebreak;
|
1464
|
-
result2 += indentStr(_prop + ":" + space + toCssValue(_value) + ";", indent);
|
1465
|
-
}
|
1466
|
-
}
|
1467
|
-
}
|
1468
|
-
}
|
1469
|
-
for (var _prop2 in style) {
|
1470
|
-
var _value2 = style[_prop2];
|
1471
|
-
if (_value2 != null && _prop2 !== "fallbacks") {
|
1472
|
-
if (result2) result2 += linebreak;
|
1473
|
-
result2 += indentStr(_prop2 + ":" + space + toCssValue(_value2) + ";", indent);
|
1474
|
-
}
|
1475
|
-
}
|
1476
|
-
if (!result2 && !options.allowEmpty) return result2;
|
1477
|
-
if (!selector) return result2;
|
1478
|
-
indent--;
|
1479
|
-
if (result2) result2 = "" + linebreak + result2 + linebreak;
|
1480
|
-
return indentStr("" + selector + space + "{" + result2, indent) + indentStr("}", indent);
|
1481
|
-
}
|
1482
|
-
var escapeRegex = /([[\].#*$><+~=|^:(),"'`\s])/g;
|
1483
|
-
var nativeEscape = typeof CSS !== "undefined" && CSS.escape;
|
1484
|
-
var escape = function(str) {
|
1485
|
-
return nativeEscape ? nativeEscape(str) : str.replace(escapeRegex, "\\$1");
|
1486
|
-
};
|
1487
|
-
var BaseStyleRule = /* @__PURE__ */ function() {
|
1488
|
-
function BaseStyleRule2(key, style, options) {
|
1489
|
-
this.type = "style";
|
1490
|
-
this.isProcessed = false;
|
1491
|
-
var sheet = options.sheet, Renderer = options.Renderer;
|
1492
|
-
this.key = key;
|
1493
|
-
this.options = options;
|
1494
|
-
this.style = style;
|
1495
|
-
if (sheet) this.renderer = sheet.renderer;
|
1496
|
-
else if (Renderer) this.renderer = new Renderer();
|
1497
|
-
}
|
1498
|
-
var _proto = BaseStyleRule2.prototype;
|
1499
|
-
_proto.prop = function prop(name, value, options) {
|
1500
|
-
if (value === void 0) return this.style[name];
|
1501
|
-
var force = options ? options.force : false;
|
1502
|
-
if (!force && this.style[name] === value) return this;
|
1503
|
-
var newValue = value;
|
1504
|
-
if (!options || options.process !== false) {
|
1505
|
-
newValue = this.options.jss.plugins.onChangeValue(value, name, this);
|
1506
|
-
}
|
1507
|
-
var isEmpty = newValue == null || newValue === false;
|
1508
|
-
var isDefined = name in this.style;
|
1509
|
-
if (isEmpty && !isDefined && !force) return this;
|
1510
|
-
var remove = isEmpty && isDefined;
|
1511
|
-
if (remove) delete this.style[name];
|
1512
|
-
else this.style[name] = newValue;
|
1513
|
-
if (this.renderable && this.renderer) {
|
1514
|
-
if (remove) this.renderer.removeProperty(this.renderable, name);
|
1515
|
-
else this.renderer.setProperty(this.renderable, name, newValue);
|
1516
|
-
return this;
|
1517
|
-
}
|
1518
|
-
var sheet = this.options.sheet;
|
1519
|
-
if (sheet && sheet.attached) {
|
1520
|
-
process.env.NODE_ENV !== "production" ? tiny_warning_esm_default(false, '[JSS] Rule is not linked. Missing sheet option "link: true".') : void 0;
|
1521
|
-
}
|
1522
|
-
return this;
|
1523
|
-
};
|
1524
|
-
return BaseStyleRule2;
|
1525
|
-
}();
|
1526
|
-
var StyleRule = /* @__PURE__ */ function(_BaseStyleRule) {
|
1527
|
-
_inheritsLoose2(StyleRule2, _BaseStyleRule);
|
1528
|
-
function StyleRule2(key, style, options) {
|
1529
|
-
var _this;
|
1530
|
-
_this = _BaseStyleRule.call(this, key, style, options) || this;
|
1531
|
-
var selector = options.selector, scoped = options.scoped, sheet = options.sheet, generateId = options.generateId;
|
1532
|
-
if (selector) {
|
1533
|
-
_this.selectorText = selector;
|
1534
|
-
} else if (scoped !== false) {
|
1535
|
-
_this.id = generateId(_assertThisInitialized2(_assertThisInitialized2(_this)), sheet);
|
1536
|
-
_this.selectorText = "." + escape(_this.id);
|
1537
|
-
}
|
1538
|
-
return _this;
|
1539
|
-
}
|
1540
|
-
var _proto2 = StyleRule2.prototype;
|
1541
|
-
_proto2.applyTo = function applyTo(renderable) {
|
1542
|
-
var renderer = this.renderer;
|
1543
|
-
if (renderer) {
|
1544
|
-
var json = this.toJSON();
|
1545
|
-
for (var prop in json) {
|
1546
|
-
renderer.setProperty(renderable, prop, json[prop]);
|
1547
|
-
}
|
1548
|
-
}
|
1549
|
-
return this;
|
1550
|
-
};
|
1551
|
-
_proto2.toJSON = function toJSON() {
|
1552
|
-
var json = {};
|
1553
|
-
for (var prop in this.style) {
|
1554
|
-
var value = this.style[prop];
|
1555
|
-
if (typeof value !== "object") json[prop] = value;
|
1556
|
-
else if (Array.isArray(value)) json[prop] = toCssValue(value);
|
1557
|
-
}
|
1558
|
-
return json;
|
1559
|
-
};
|
1560
|
-
_proto2.toString = function toString(options) {
|
1561
|
-
var sheet = this.options.sheet;
|
1562
|
-
var link = sheet ? sheet.options.link : false;
|
1563
|
-
var opts = link ? _extends({}, options, {
|
1564
|
-
allowEmpty: true
|
1565
|
-
}) : options;
|
1566
|
-
return toCss(this.selectorText, this.style, opts);
|
1567
|
-
};
|
1568
|
-
_createClass(StyleRule2, [{
|
1569
|
-
key: "selector",
|
1570
|
-
set: function set(selector) {
|
1571
|
-
if (selector === this.selectorText) return;
|
1572
|
-
this.selectorText = selector;
|
1573
|
-
var renderer = this.renderer, renderable = this.renderable;
|
1574
|
-
if (!renderable || !renderer) return;
|
1575
|
-
var hasChanged = renderer.setSelector(renderable, selector);
|
1576
|
-
if (!hasChanged) {
|
1577
|
-
renderer.replaceRule(renderable, this);
|
1578
|
-
}
|
1579
|
-
},
|
1580
|
-
get: function get() {
|
1581
|
-
return this.selectorText;
|
1582
|
-
}
|
1583
|
-
}]);
|
1584
|
-
return StyleRule2;
|
1585
|
-
}(BaseStyleRule);
|
1586
|
-
var pluginStyleRule = {
|
1587
|
-
onCreateRule: function onCreateRule(key, style, options) {
|
1588
|
-
if (key[0] === "@" || options.parent && options.parent.type === "keyframes") {
|
1589
|
-
return null;
|
1590
|
-
}
|
1591
|
-
return new StyleRule(key, style, options);
|
1592
|
-
}
|
1593
|
-
};
|
1594
|
-
var defaultToStringOptions = {
|
1595
|
-
indent: 1,
|
1596
|
-
children: true
|
1597
|
-
};
|
1598
|
-
var atRegExp = /@([\w-]+)/;
|
1599
|
-
var ConditionalRule = /* @__PURE__ */ function() {
|
1600
|
-
function ConditionalRule2(key, styles, options) {
|
1601
|
-
this.type = "conditional";
|
1602
|
-
this.isProcessed = false;
|
1603
|
-
this.key = key;
|
1604
|
-
var atMatch = key.match(atRegExp);
|
1605
|
-
this.at = atMatch ? atMatch[1] : "unknown";
|
1606
|
-
this.query = options.name || "@" + this.at;
|
1607
|
-
this.options = options;
|
1608
|
-
this.rules = new RuleList(_extends({}, options, {
|
1609
|
-
parent: this
|
1610
|
-
}));
|
1611
|
-
for (var name in styles) {
|
1612
|
-
this.rules.add(name, styles[name]);
|
1613
|
-
}
|
1614
|
-
this.rules.process();
|
1615
|
-
}
|
1616
|
-
var _proto = ConditionalRule2.prototype;
|
1617
|
-
_proto.getRule = function getRule(name) {
|
1618
|
-
return this.rules.get(name);
|
1619
|
-
};
|
1620
|
-
_proto.indexOf = function indexOf(rule) {
|
1621
|
-
return this.rules.indexOf(rule);
|
1622
|
-
};
|
1623
|
-
_proto.addRule = function addRule(name, style, options) {
|
1624
|
-
var rule = this.rules.add(name, style, options);
|
1625
|
-
if (!rule) return null;
|
1626
|
-
this.options.jss.plugins.onProcessRule(rule);
|
1627
|
-
return rule;
|
1628
|
-
};
|
1629
|
-
_proto.replaceRule = function replaceRule(name, style, options) {
|
1630
|
-
var newRule = this.rules.replace(name, style, options);
|
1631
|
-
if (newRule) this.options.jss.plugins.onProcessRule(newRule);
|
1632
|
-
return newRule;
|
1633
|
-
};
|
1634
|
-
_proto.toString = function toString(options) {
|
1635
|
-
if (options === void 0) {
|
1636
|
-
options = defaultToStringOptions;
|
1637
|
-
}
|
1638
|
-
var _getWhitespaceSymbols = getWhitespaceSymbols(options), linebreak = _getWhitespaceSymbols.linebreak;
|
1639
|
-
if (options.indent == null) options.indent = defaultToStringOptions.indent;
|
1640
|
-
if (options.children == null) options.children = defaultToStringOptions.children;
|
1641
|
-
if (options.children === false) {
|
1642
|
-
return this.query + " {}";
|
1643
|
-
}
|
1644
|
-
var children = this.rules.toString(options);
|
1645
|
-
return children ? this.query + " {" + linebreak + children + linebreak + "}" : "";
|
1646
|
-
};
|
1647
|
-
return ConditionalRule2;
|
1648
|
-
}();
|
1649
|
-
var keyRegExp = /@container|@media|@supports\s+/;
|
1650
|
-
var pluginConditionalRule = {
|
1651
|
-
onCreateRule: function onCreateRule2(key, styles, options) {
|
1652
|
-
return keyRegExp.test(key) ? new ConditionalRule(key, styles, options) : null;
|
1653
|
-
}
|
1654
|
-
};
|
1655
|
-
var defaultToStringOptions$1 = {
|
1656
|
-
indent: 1,
|
1657
|
-
children: true
|
1658
|
-
};
|
1659
|
-
var nameRegExp = /@keyframes\s+([\w-]+)/;
|
1660
|
-
var KeyframesRule = /* @__PURE__ */ function() {
|
1661
|
-
function KeyframesRule2(key, frames, options) {
|
1662
|
-
this.type = "keyframes";
|
1663
|
-
this.at = "@keyframes";
|
1664
|
-
this.isProcessed = false;
|
1665
|
-
var nameMatch = key.match(nameRegExp);
|
1666
|
-
if (nameMatch && nameMatch[1]) {
|
1667
|
-
this.name = nameMatch[1];
|
1668
|
-
} else {
|
1669
|
-
this.name = "noname";
|
1670
|
-
process.env.NODE_ENV !== "production" ? tiny_warning_esm_default(false, "[JSS] Bad keyframes name " + key) : void 0;
|
1671
|
-
}
|
1672
|
-
this.key = this.type + "-" + this.name;
|
1673
|
-
this.options = options;
|
1674
|
-
var scoped = options.scoped, sheet = options.sheet, generateId = options.generateId;
|
1675
|
-
this.id = scoped === false ? this.name : escape(generateId(this, sheet));
|
1676
|
-
this.rules = new RuleList(_extends({}, options, {
|
1677
|
-
parent: this
|
1678
|
-
}));
|
1679
|
-
for (var name in frames) {
|
1680
|
-
this.rules.add(name, frames[name], _extends({}, options, {
|
1681
|
-
parent: this
|
1682
|
-
}));
|
1683
|
-
}
|
1684
|
-
this.rules.process();
|
1685
|
-
}
|
1686
|
-
var _proto = KeyframesRule2.prototype;
|
1687
|
-
_proto.toString = function toString(options) {
|
1688
|
-
if (options === void 0) {
|
1689
|
-
options = defaultToStringOptions$1;
|
1690
|
-
}
|
1691
|
-
var _getWhitespaceSymbols = getWhitespaceSymbols(options), linebreak = _getWhitespaceSymbols.linebreak;
|
1692
|
-
if (options.indent == null) options.indent = defaultToStringOptions$1.indent;
|
1693
|
-
if (options.children == null) options.children = defaultToStringOptions$1.children;
|
1694
|
-
if (options.children === false) {
|
1695
|
-
return this.at + " " + this.id + " {}";
|
1696
|
-
}
|
1697
|
-
var children = this.rules.toString(options);
|
1698
|
-
if (children) children = "" + linebreak + children + linebreak;
|
1699
|
-
return this.at + " " + this.id + " {" + children + "}";
|
1700
|
-
};
|
1701
|
-
return KeyframesRule2;
|
1702
|
-
}();
|
1703
|
-
var keyRegExp$1 = /@keyframes\s+/;
|
1704
|
-
var refRegExp = /\$([\w-]+)/g;
|
1705
|
-
var findReferencedKeyframe = function findReferencedKeyframe2(val, keyframes) {
|
1706
|
-
if (typeof val === "string") {
|
1707
|
-
return val.replace(refRegExp, function(match, name) {
|
1708
|
-
if (name in keyframes) {
|
1709
|
-
return keyframes[name];
|
1710
|
-
}
|
1711
|
-
process.env.NODE_ENV !== "production" ? tiny_warning_esm_default(false, '[JSS] Referenced keyframes rule "' + name + '" is not defined.') : void 0;
|
1712
|
-
return match;
|
1713
|
-
});
|
1714
|
-
}
|
1715
|
-
return val;
|
1716
|
-
};
|
1717
|
-
var replaceRef = function replaceRef2(style, prop, keyframes) {
|
1718
|
-
var value = style[prop];
|
1719
|
-
var refKeyframe = findReferencedKeyframe(value, keyframes);
|
1720
|
-
if (refKeyframe !== value) {
|
1721
|
-
style[prop] = refKeyframe;
|
1722
|
-
}
|
1723
|
-
};
|
1724
|
-
var pluginKeyframesRule = {
|
1725
|
-
onCreateRule: function onCreateRule3(key, frames, options) {
|
1726
|
-
return typeof key === "string" && keyRegExp$1.test(key) ? new KeyframesRule(key, frames, options) : null;
|
1727
|
-
},
|
1728
|
-
// Animation name ref replacer.
|
1729
|
-
onProcessStyle: function onProcessStyle(style, rule, sheet) {
|
1730
|
-
if (rule.type !== "style" || !sheet) return style;
|
1731
|
-
if ("animation-name" in style) replaceRef(style, "animation-name", sheet.keyframes);
|
1732
|
-
if ("animation" in style) replaceRef(style, "animation", sheet.keyframes);
|
1733
|
-
return style;
|
1734
|
-
},
|
1735
|
-
onChangeValue: function onChangeValue(val, prop, rule) {
|
1736
|
-
var sheet = rule.options.sheet;
|
1737
|
-
if (!sheet) {
|
1738
|
-
return val;
|
1739
|
-
}
|
1740
|
-
switch (prop) {
|
1741
|
-
case "animation":
|
1742
|
-
return findReferencedKeyframe(val, sheet.keyframes);
|
1743
|
-
case "animation-name":
|
1744
|
-
return findReferencedKeyframe(val, sheet.keyframes);
|
1745
|
-
default:
|
1746
|
-
return val;
|
1747
|
-
}
|
1748
|
-
}
|
1749
|
-
};
|
1750
|
-
var KeyframeRule = /* @__PURE__ */ function(_BaseStyleRule) {
|
1751
|
-
_inheritsLoose2(KeyframeRule2, _BaseStyleRule);
|
1752
|
-
function KeyframeRule2() {
|
1753
|
-
return _BaseStyleRule.apply(this, arguments) || this;
|
1754
|
-
}
|
1755
|
-
var _proto = KeyframeRule2.prototype;
|
1756
|
-
_proto.toString = function toString(options) {
|
1757
|
-
var sheet = this.options.sheet;
|
1758
|
-
var link = sheet ? sheet.options.link : false;
|
1759
|
-
var opts = link ? _extends({}, options, {
|
1760
|
-
allowEmpty: true
|
1761
|
-
}) : options;
|
1762
|
-
return toCss(this.key, this.style, opts);
|
1763
|
-
};
|
1764
|
-
return KeyframeRule2;
|
1765
|
-
}(BaseStyleRule);
|
1766
|
-
var pluginKeyframeRule = {
|
1767
|
-
onCreateRule: function onCreateRule4(key, style, options) {
|
1768
|
-
if (options.parent && options.parent.type === "keyframes") {
|
1769
|
-
return new KeyframeRule(key, style, options);
|
1770
|
-
}
|
1771
|
-
return null;
|
1772
|
-
}
|
1773
|
-
};
|
1774
|
-
var FontFaceRule = /* @__PURE__ */ function() {
|
1775
|
-
function FontFaceRule2(key, style, options) {
|
1776
|
-
this.type = "font-face";
|
1777
|
-
this.at = "@font-face";
|
1778
|
-
this.isProcessed = false;
|
1779
|
-
this.key = key;
|
1780
|
-
this.style = style;
|
1781
|
-
this.options = options;
|
1782
|
-
}
|
1783
|
-
var _proto = FontFaceRule2.prototype;
|
1784
|
-
_proto.toString = function toString(options) {
|
1785
|
-
var _getWhitespaceSymbols = getWhitespaceSymbols(options), linebreak = _getWhitespaceSymbols.linebreak;
|
1786
|
-
if (Array.isArray(this.style)) {
|
1787
|
-
var str = "";
|
1788
|
-
for (var index4 = 0; index4 < this.style.length; index4++) {
|
1789
|
-
str += toCss(this.at, this.style[index4]);
|
1790
|
-
if (this.style[index4 + 1]) str += linebreak;
|
1791
|
-
}
|
1792
|
-
return str;
|
1793
|
-
}
|
1794
|
-
return toCss(this.at, this.style, options);
|
1795
|
-
};
|
1796
|
-
return FontFaceRule2;
|
1797
|
-
}();
|
1798
|
-
var keyRegExp$2 = /@font-face/;
|
1799
|
-
var pluginFontFaceRule = {
|
1800
|
-
onCreateRule: function onCreateRule5(key, style, options) {
|
1801
|
-
return keyRegExp$2.test(key) ? new FontFaceRule(key, style, options) : null;
|
1802
|
-
}
|
1803
|
-
};
|
1804
|
-
var ViewportRule = /* @__PURE__ */ function() {
|
1805
|
-
function ViewportRule2(key, style, options) {
|
1806
|
-
this.type = "viewport";
|
1807
|
-
this.at = "@viewport";
|
1808
|
-
this.isProcessed = false;
|
1809
|
-
this.key = key;
|
1810
|
-
this.style = style;
|
1811
|
-
this.options = options;
|
1812
|
-
}
|
1813
|
-
var _proto = ViewportRule2.prototype;
|
1814
|
-
_proto.toString = function toString(options) {
|
1815
|
-
return toCss(this.key, this.style, options);
|
1816
|
-
};
|
1817
|
-
return ViewportRule2;
|
1818
|
-
}();
|
1819
|
-
var pluginViewportRule = {
|
1820
|
-
onCreateRule: function onCreateRule6(key, style, options) {
|
1821
|
-
return key === "@viewport" || key === "@-ms-viewport" ? new ViewportRule(key, style, options) : null;
|
1822
|
-
}
|
1823
|
-
};
|
1824
|
-
var SimpleRule = /* @__PURE__ */ function() {
|
1825
|
-
function SimpleRule2(key, value, options) {
|
1826
|
-
this.type = "simple";
|
1827
|
-
this.isProcessed = false;
|
1828
|
-
this.key = key;
|
1829
|
-
this.value = value;
|
1830
|
-
this.options = options;
|
1831
|
-
}
|
1832
|
-
var _proto = SimpleRule2.prototype;
|
1833
|
-
_proto.toString = function toString(options) {
|
1834
|
-
if (Array.isArray(this.value)) {
|
1835
|
-
var str = "";
|
1836
|
-
for (var index4 = 0; index4 < this.value.length; index4++) {
|
1837
|
-
str += this.key + " " + this.value[index4] + ";";
|
1838
|
-
if (this.value[index4 + 1]) str += "\n";
|
1839
|
-
}
|
1840
|
-
return str;
|
1841
|
-
}
|
1842
|
-
return this.key + " " + this.value + ";";
|
1843
|
-
};
|
1844
|
-
return SimpleRule2;
|
1845
|
-
}();
|
1846
|
-
var keysMap = {
|
1847
|
-
"@charset": true,
|
1848
|
-
"@import": true,
|
1849
|
-
"@namespace": true
|
1850
|
-
};
|
1851
|
-
var pluginSimpleRule = {
|
1852
|
-
onCreateRule: function onCreateRule7(key, value, options) {
|
1853
|
-
return key in keysMap ? new SimpleRule(key, value, options) : null;
|
1854
|
-
}
|
1855
|
-
};
|
1856
|
-
var plugins = [pluginStyleRule, pluginConditionalRule, pluginKeyframesRule, pluginKeyframeRule, pluginFontFaceRule, pluginViewportRule, pluginSimpleRule];
|
1857
|
-
var defaultUpdateOptions = {
|
1858
|
-
process: true
|
1859
|
-
};
|
1860
|
-
var forceUpdateOptions = {
|
1861
|
-
force: true,
|
1862
|
-
process: true
|
1863
|
-
/**
|
1864
|
-
* Contains rules objects and allows adding/removing etc.
|
1865
|
-
* Is used for e.g. by `StyleSheet` or `ConditionalRule`.
|
1866
|
-
*/
|
1867
|
-
};
|
1868
|
-
var RuleList = /* @__PURE__ */ function() {
|
1869
|
-
function RuleList2(options) {
|
1870
|
-
this.map = {};
|
1871
|
-
this.raw = {};
|
1872
|
-
this.index = [];
|
1873
|
-
this.counter = 0;
|
1874
|
-
this.options = options;
|
1875
|
-
this.classes = options.classes;
|
1876
|
-
this.keyframes = options.keyframes;
|
1877
|
-
}
|
1878
|
-
var _proto = RuleList2.prototype;
|
1879
|
-
_proto.add = function add(name, decl, ruleOptions) {
|
1880
|
-
var _this$options = this.options, parent = _this$options.parent, sheet = _this$options.sheet, jss = _this$options.jss, Renderer = _this$options.Renderer, generateId = _this$options.generateId, scoped = _this$options.scoped;
|
1881
|
-
var options = _extends({
|
1882
|
-
classes: this.classes,
|
1883
|
-
parent,
|
1884
|
-
sheet,
|
1885
|
-
jss,
|
1886
|
-
Renderer,
|
1887
|
-
generateId,
|
1888
|
-
scoped,
|
1889
|
-
name,
|
1890
|
-
keyframes: this.keyframes,
|
1891
|
-
selector: void 0
|
1892
|
-
}, ruleOptions);
|
1893
|
-
var key = name;
|
1894
|
-
if (name in this.raw) {
|
1895
|
-
key = name + "-d" + this.counter++;
|
1896
|
-
}
|
1897
|
-
this.raw[key] = decl;
|
1898
|
-
if (key in this.classes) {
|
1899
|
-
options.selector = "." + escape(this.classes[key]);
|
1900
|
-
}
|
1901
|
-
var rule = createRule(key, decl, options);
|
1902
|
-
if (!rule) return null;
|
1903
|
-
this.register(rule);
|
1904
|
-
var index4 = options.index === void 0 ? this.index.length : options.index;
|
1905
|
-
this.index.splice(index4, 0, rule);
|
1906
|
-
return rule;
|
1907
|
-
};
|
1908
|
-
_proto.replace = function replace(name, decl, ruleOptions) {
|
1909
|
-
var oldRule = this.get(name);
|
1910
|
-
var oldIndex = this.index.indexOf(oldRule);
|
1911
|
-
if (oldRule) {
|
1912
|
-
this.remove(oldRule);
|
1913
|
-
}
|
1914
|
-
var options = ruleOptions;
|
1915
|
-
if (oldIndex !== -1) options = _extends({}, ruleOptions, {
|
1916
|
-
index: oldIndex
|
1917
|
-
});
|
1918
|
-
return this.add(name, decl, options);
|
1919
|
-
};
|
1920
|
-
_proto.get = function get(nameOrSelector) {
|
1921
|
-
return this.map[nameOrSelector];
|
1922
|
-
};
|
1923
|
-
_proto.remove = function remove(rule) {
|
1924
|
-
this.unregister(rule);
|
1925
|
-
delete this.raw[rule.key];
|
1926
|
-
this.index.splice(this.index.indexOf(rule), 1);
|
1927
|
-
};
|
1928
|
-
_proto.indexOf = function indexOf(rule) {
|
1929
|
-
return this.index.indexOf(rule);
|
1930
|
-
};
|
1931
|
-
_proto.process = function process2() {
|
1932
|
-
var plugins3 = this.options.jss.plugins;
|
1933
|
-
this.index.slice(0).forEach(plugins3.onProcessRule, plugins3);
|
1934
|
-
};
|
1935
|
-
_proto.register = function register(rule) {
|
1936
|
-
this.map[rule.key] = rule;
|
1937
|
-
if (rule instanceof StyleRule) {
|
1938
|
-
this.map[rule.selector] = rule;
|
1939
|
-
if (rule.id) this.classes[rule.key] = rule.id;
|
1940
|
-
} else if (rule instanceof KeyframesRule && this.keyframes) {
|
1941
|
-
this.keyframes[rule.name] = rule.id;
|
1942
|
-
}
|
1943
|
-
};
|
1944
|
-
_proto.unregister = function unregister(rule) {
|
1945
|
-
delete this.map[rule.key];
|
1946
|
-
if (rule instanceof StyleRule) {
|
1947
|
-
delete this.map[rule.selector];
|
1948
|
-
delete this.classes[rule.key];
|
1949
|
-
} else if (rule instanceof KeyframesRule) {
|
1950
|
-
delete this.keyframes[rule.name];
|
1951
|
-
}
|
1952
|
-
};
|
1953
|
-
_proto.update = function update() {
|
1954
|
-
var name;
|
1955
|
-
var data;
|
1956
|
-
var options;
|
1957
|
-
if (typeof (arguments.length <= 0 ? void 0 : arguments[0]) === "string") {
|
1958
|
-
name = arguments.length <= 0 ? void 0 : arguments[0];
|
1959
|
-
data = arguments.length <= 1 ? void 0 : arguments[1];
|
1960
|
-
options = arguments.length <= 2 ? void 0 : arguments[2];
|
1961
|
-
} else {
|
1962
|
-
data = arguments.length <= 0 ? void 0 : arguments[0];
|
1963
|
-
options = arguments.length <= 1 ? void 0 : arguments[1];
|
1964
|
-
name = null;
|
1965
|
-
}
|
1966
|
-
if (name) {
|
1967
|
-
this.updateOne(this.get(name), data, options);
|
1968
|
-
} else {
|
1969
|
-
for (var index4 = 0; index4 < this.index.length; index4++) {
|
1970
|
-
this.updateOne(this.index[index4], data, options);
|
1971
|
-
}
|
1972
|
-
}
|
1973
|
-
};
|
1974
|
-
_proto.updateOne = function updateOne(rule, data, options) {
|
1975
|
-
if (options === void 0) {
|
1976
|
-
options = defaultUpdateOptions;
|
1977
|
-
}
|
1978
|
-
var _this$options2 = this.options, plugins3 = _this$options2.jss.plugins, sheet = _this$options2.sheet;
|
1979
|
-
if (rule.rules instanceof RuleList2) {
|
1980
|
-
rule.rules.update(data, options);
|
1981
|
-
return;
|
1982
|
-
}
|
1983
|
-
var style = rule.style;
|
1984
|
-
plugins3.onUpdate(data, rule, sheet, options);
|
1985
|
-
if (options.process && style && style !== rule.style) {
|
1986
|
-
plugins3.onProcessStyle(rule.style, rule, sheet);
|
1987
|
-
for (var prop in rule.style) {
|
1988
|
-
var nextValue = rule.style[prop];
|
1989
|
-
var prevValue = style[prop];
|
1990
|
-
if (nextValue !== prevValue) {
|
1991
|
-
rule.prop(prop, nextValue, forceUpdateOptions);
|
1992
|
-
}
|
1993
|
-
}
|
1994
|
-
for (var _prop in style) {
|
1995
|
-
var _nextValue = rule.style[_prop];
|
1996
|
-
var _prevValue = style[_prop];
|
1997
|
-
if (_nextValue == null && _nextValue !== _prevValue) {
|
1998
|
-
rule.prop(_prop, null, forceUpdateOptions);
|
1999
|
-
}
|
2000
|
-
}
|
2001
|
-
}
|
2002
|
-
};
|
2003
|
-
_proto.toString = function toString(options) {
|
2004
|
-
var str = "";
|
2005
|
-
var sheet = this.options.sheet;
|
2006
|
-
var link = sheet ? sheet.options.link : false;
|
2007
|
-
var _getWhitespaceSymbols = getWhitespaceSymbols(options), linebreak = _getWhitespaceSymbols.linebreak;
|
2008
|
-
for (var index4 = 0; index4 < this.index.length; index4++) {
|
2009
|
-
var rule = this.index[index4];
|
2010
|
-
var css3 = rule.toString(options);
|
2011
|
-
if (!css3 && !link) continue;
|
2012
|
-
if (str) str += linebreak;
|
2013
|
-
str += css3;
|
2014
|
-
}
|
2015
|
-
return str;
|
2016
|
-
};
|
2017
|
-
return RuleList2;
|
2018
|
-
}();
|
2019
|
-
var StyleSheet = /* @__PURE__ */ function() {
|
2020
|
-
function StyleSheet2(styles, options) {
|
2021
|
-
this.attached = false;
|
2022
|
-
this.deployed = false;
|
2023
|
-
this.classes = {};
|
2024
|
-
this.keyframes = {};
|
2025
|
-
this.options = _extends({}, options, {
|
2026
|
-
sheet: this,
|
2027
|
-
parent: this,
|
2028
|
-
classes: this.classes,
|
2029
|
-
keyframes: this.keyframes
|
2030
|
-
});
|
2031
|
-
if (options.Renderer) {
|
2032
|
-
this.renderer = new options.Renderer(this);
|
2033
|
-
}
|
2034
|
-
this.rules = new RuleList(this.options);
|
2035
|
-
for (var name in styles) {
|
2036
|
-
this.rules.add(name, styles[name]);
|
2037
|
-
}
|
2038
|
-
this.rules.process();
|
2039
|
-
}
|
2040
|
-
var _proto = StyleSheet2.prototype;
|
2041
|
-
_proto.attach = function attach() {
|
2042
|
-
if (this.attached) return this;
|
2043
|
-
if (this.renderer) this.renderer.attach();
|
2044
|
-
this.attached = true;
|
2045
|
-
if (!this.deployed) this.deploy();
|
2046
|
-
return this;
|
2047
|
-
};
|
2048
|
-
_proto.detach = function detach() {
|
2049
|
-
if (!this.attached) return this;
|
2050
|
-
if (this.renderer) this.renderer.detach();
|
2051
|
-
this.attached = false;
|
2052
|
-
return this;
|
2053
|
-
};
|
2054
|
-
_proto.addRule = function addRule(name, decl, options) {
|
2055
|
-
var queue = this.queue;
|
2056
|
-
if (this.attached && !queue) this.queue = [];
|
2057
|
-
var rule = this.rules.add(name, decl, options);
|
2058
|
-
if (!rule) return null;
|
2059
|
-
this.options.jss.plugins.onProcessRule(rule);
|
2060
|
-
if (this.attached) {
|
2061
|
-
if (!this.deployed) return rule;
|
2062
|
-
if (queue) queue.push(rule);
|
2063
|
-
else {
|
2064
|
-
this.insertRule(rule);
|
2065
|
-
if (this.queue) {
|
2066
|
-
this.queue.forEach(this.insertRule, this);
|
2067
|
-
this.queue = void 0;
|
2068
|
-
}
|
2069
|
-
}
|
2070
|
-
return rule;
|
2071
|
-
}
|
2072
|
-
this.deployed = false;
|
2073
|
-
return rule;
|
2074
|
-
};
|
2075
|
-
_proto.replaceRule = function replaceRule(nameOrSelector, decl, options) {
|
2076
|
-
var oldRule = this.rules.get(nameOrSelector);
|
2077
|
-
if (!oldRule) return this.addRule(nameOrSelector, decl, options);
|
2078
|
-
var newRule = this.rules.replace(nameOrSelector, decl, options);
|
2079
|
-
if (newRule) {
|
2080
|
-
this.options.jss.plugins.onProcessRule(newRule);
|
2081
|
-
}
|
2082
|
-
if (this.attached) {
|
2083
|
-
if (!this.deployed) return newRule;
|
2084
|
-
if (this.renderer) {
|
2085
|
-
if (!newRule) {
|
2086
|
-
this.renderer.deleteRule(oldRule);
|
2087
|
-
} else if (oldRule.renderable) {
|
2088
|
-
this.renderer.replaceRule(oldRule.renderable, newRule);
|
2089
|
-
}
|
2090
|
-
}
|
2091
|
-
return newRule;
|
2092
|
-
}
|
2093
|
-
this.deployed = false;
|
2094
|
-
return newRule;
|
2095
|
-
};
|
2096
|
-
_proto.insertRule = function insertRule2(rule) {
|
2097
|
-
if (this.renderer) {
|
2098
|
-
this.renderer.insertRule(rule);
|
2099
|
-
}
|
2100
|
-
};
|
2101
|
-
_proto.addRules = function addRules(styles, options) {
|
2102
|
-
var added = [];
|
2103
|
-
for (var name in styles) {
|
2104
|
-
var rule = this.addRule(name, styles[name], options);
|
2105
|
-
if (rule) added.push(rule);
|
2106
|
-
}
|
2107
|
-
return added;
|
2108
|
-
};
|
2109
|
-
_proto.getRule = function getRule(nameOrSelector) {
|
2110
|
-
return this.rules.get(nameOrSelector);
|
2111
|
-
};
|
2112
|
-
_proto.deleteRule = function deleteRule(name) {
|
2113
|
-
var rule = typeof name === "object" ? name : this.rules.get(name);
|
2114
|
-
if (!rule || // Style sheet was created without link: true and attached, in this case we
|
2115
|
-
// won't be able to remove the CSS rule from the DOM.
|
2116
|
-
this.attached && !rule.renderable) {
|
2117
|
-
return false;
|
2118
|
-
}
|
2119
|
-
this.rules.remove(rule);
|
2120
|
-
if (this.attached && rule.renderable && this.renderer) {
|
2121
|
-
return this.renderer.deleteRule(rule.renderable);
|
2122
|
-
}
|
2123
|
-
return true;
|
2124
|
-
};
|
2125
|
-
_proto.indexOf = function indexOf(rule) {
|
2126
|
-
return this.rules.indexOf(rule);
|
2127
|
-
};
|
2128
|
-
_proto.deploy = function deploy() {
|
2129
|
-
if (this.renderer) this.renderer.deploy();
|
2130
|
-
this.deployed = true;
|
2131
|
-
return this;
|
2132
|
-
};
|
2133
|
-
_proto.update = function update() {
|
2134
|
-
var _this$rules;
|
2135
|
-
(_this$rules = this.rules).update.apply(_this$rules, arguments);
|
2136
|
-
return this;
|
2137
|
-
};
|
2138
|
-
_proto.updateOne = function updateOne(rule, data, options) {
|
2139
|
-
this.rules.updateOne(rule, data, options);
|
2140
|
-
return this;
|
2141
|
-
};
|
2142
|
-
_proto.toString = function toString(options) {
|
2143
|
-
return this.rules.toString(options);
|
2144
|
-
};
|
2145
|
-
return StyleSheet2;
|
2146
|
-
}();
|
2147
|
-
var PluginsRegistry = /* @__PURE__ */ function() {
|
2148
|
-
function PluginsRegistry2() {
|
2149
|
-
this.plugins = {
|
2150
|
-
internal: [],
|
2151
|
-
external: []
|
2152
|
-
};
|
2153
|
-
this.registry = {};
|
2154
|
-
}
|
2155
|
-
var _proto = PluginsRegistry2.prototype;
|
2156
|
-
_proto.onCreateRule = function onCreateRule8(name, decl, options) {
|
2157
|
-
for (var i = 0; i < this.registry.onCreateRule.length; i++) {
|
2158
|
-
var rule = this.registry.onCreateRule[i](name, decl, options);
|
2159
|
-
if (rule) return rule;
|
2160
|
-
}
|
2161
|
-
return null;
|
2162
|
-
};
|
2163
|
-
_proto.onProcessRule = function onProcessRule3(rule) {
|
2164
|
-
if (rule.isProcessed) return;
|
2165
|
-
var sheet = rule.options.sheet;
|
2166
|
-
for (var i = 0; i < this.registry.onProcessRule.length; i++) {
|
2167
|
-
this.registry.onProcessRule[i](rule, sheet);
|
2168
|
-
}
|
2169
|
-
if (rule.style) this.onProcessStyle(rule.style, rule, sheet);
|
2170
|
-
rule.isProcessed = true;
|
2171
|
-
};
|
2172
|
-
_proto.onProcessStyle = function onProcessStyle2(style, rule, sheet) {
|
2173
|
-
for (var i = 0; i < this.registry.onProcessStyle.length; i++) {
|
2174
|
-
rule.style = this.registry.onProcessStyle[i](rule.style, rule, sheet);
|
2175
|
-
}
|
2176
|
-
};
|
2177
|
-
_proto.onProcessSheet = function onProcessSheet(sheet) {
|
2178
|
-
for (var i = 0; i < this.registry.onProcessSheet.length; i++) {
|
2179
|
-
this.registry.onProcessSheet[i](sheet);
|
2180
|
-
}
|
2181
|
-
};
|
2182
|
-
_proto.onUpdate = function onUpdate(data, rule, sheet, options) {
|
2183
|
-
for (var i = 0; i < this.registry.onUpdate.length; i++) {
|
2184
|
-
this.registry.onUpdate[i](data, rule, sheet, options);
|
2185
|
-
}
|
2186
|
-
};
|
2187
|
-
_proto.onChangeValue = function onChangeValue2(value, prop, rule) {
|
2188
|
-
var processedValue = value;
|
2189
|
-
for (var i = 0; i < this.registry.onChangeValue.length; i++) {
|
2190
|
-
processedValue = this.registry.onChangeValue[i](processedValue, prop, rule);
|
2191
|
-
}
|
2192
|
-
return processedValue;
|
2193
|
-
};
|
2194
|
-
_proto.use = function use(newPlugin, options) {
|
2195
|
-
if (options === void 0) {
|
2196
|
-
options = {
|
2197
|
-
queue: "external"
|
2198
|
-
};
|
2199
|
-
}
|
2200
|
-
var plugins3 = this.plugins[options.queue];
|
2201
|
-
if (plugins3.indexOf(newPlugin) !== -1) {
|
2202
|
-
return;
|
2203
|
-
}
|
2204
|
-
plugins3.push(newPlugin);
|
2205
|
-
this.registry = [].concat(this.plugins.external, this.plugins.internal).reduce(function(registry, plugin) {
|
2206
|
-
for (var name in plugin) {
|
2207
|
-
if (name in registry) {
|
2208
|
-
registry[name].push(plugin[name]);
|
2209
|
-
} else {
|
2210
|
-
process.env.NODE_ENV !== "production" ? tiny_warning_esm_default(false, '[JSS] Unknown hook "' + name + '".') : void 0;
|
2211
|
-
}
|
2212
|
-
}
|
2213
|
-
return registry;
|
2214
|
-
}, {
|
2215
|
-
onCreateRule: [],
|
2216
|
-
onProcessRule: [],
|
2217
|
-
onProcessStyle: [],
|
2218
|
-
onProcessSheet: [],
|
2219
|
-
onChangeValue: [],
|
2220
|
-
onUpdate: []
|
2221
|
-
});
|
2222
|
-
};
|
2223
|
-
return PluginsRegistry2;
|
2224
|
-
}();
|
2225
|
-
var SheetsRegistry = /* @__PURE__ */ function() {
|
2226
|
-
function SheetsRegistry2() {
|
2227
|
-
this.registry = [];
|
2228
|
-
}
|
2229
|
-
var _proto = SheetsRegistry2.prototype;
|
2230
|
-
_proto.add = function add(sheet) {
|
2231
|
-
var registry = this.registry;
|
2232
|
-
var index4 = sheet.options.index;
|
2233
|
-
if (registry.indexOf(sheet) !== -1) return;
|
2234
|
-
if (registry.length === 0 || index4 >= this.index) {
|
2235
|
-
registry.push(sheet);
|
2236
|
-
return;
|
2237
|
-
}
|
2238
|
-
for (var i = 0; i < registry.length; i++) {
|
2239
|
-
if (registry[i].options.index > index4) {
|
2240
|
-
registry.splice(i, 0, sheet);
|
2241
|
-
return;
|
2242
|
-
}
|
2243
|
-
}
|
2244
|
-
};
|
2245
|
-
_proto.reset = function reset() {
|
2246
|
-
this.registry = [];
|
2247
|
-
};
|
2248
|
-
_proto.remove = function remove(sheet) {
|
2249
|
-
var index4 = this.registry.indexOf(sheet);
|
2250
|
-
this.registry.splice(index4, 1);
|
2251
|
-
};
|
2252
|
-
_proto.toString = function toString(_temp) {
|
2253
|
-
var _ref = _temp === void 0 ? {} : _temp, attached = _ref.attached, options = _objectWithoutPropertiesLoose(_ref, ["attached"]);
|
2254
|
-
var _getWhitespaceSymbols = getWhitespaceSymbols(options), linebreak = _getWhitespaceSymbols.linebreak;
|
2255
|
-
var css3 = "";
|
2256
|
-
for (var i = 0; i < this.registry.length; i++) {
|
2257
|
-
var sheet = this.registry[i];
|
2258
|
-
if (attached != null && sheet.attached !== attached) {
|
2259
|
-
continue;
|
2260
|
-
}
|
2261
|
-
if (css3) css3 += linebreak;
|
2262
|
-
css3 += sheet.toString(options);
|
2263
|
-
}
|
2264
|
-
return css3;
|
2265
|
-
};
|
2266
|
-
_createClass(SheetsRegistry2, [{
|
2267
|
-
key: "index",
|
2268
|
-
/**
|
2269
|
-
* Current highest index number.
|
2270
|
-
*/
|
2271
|
-
get: function get() {
|
2272
|
-
return this.registry.length === 0 ? 0 : this.registry[this.registry.length - 1].options.index;
|
2273
|
-
}
|
2274
|
-
}]);
|
2275
|
-
return SheetsRegistry2;
|
2276
|
-
}();
|
2277
|
-
var sheets = new SheetsRegistry();
|
2278
|
-
var globalThis$1 = typeof globalThis !== "undefined" ? globalThis : typeof window !== "undefined" && window.Math === Math ? window : typeof self !== "undefined" && self.Math === Math ? self : Function("return this")();
|
2279
|
-
var ns = "2f1acc6c3a606b082e5eef5e54414ffb";
|
2280
|
-
if (globalThis$1[ns] == null) globalThis$1[ns] = 0;
|
2281
|
-
var moduleId = globalThis$1[ns]++;
|
2282
|
-
var maxRules = 1e10;
|
2283
|
-
var createGenerateId = function createGenerateId2(options) {
|
2284
|
-
if (options === void 0) {
|
2285
|
-
options = {};
|
2286
|
-
}
|
2287
|
-
var ruleCounter = 0;
|
2288
|
-
var generateId = function generateId2(rule, sheet) {
|
2289
|
-
ruleCounter += 1;
|
2290
|
-
if (ruleCounter > maxRules) {
|
2291
|
-
process.env.NODE_ENV !== "production" ? tiny_warning_esm_default(false, "[JSS] You might have a memory leak. Rule counter is at " + ruleCounter + ".") : void 0;
|
2292
|
-
}
|
2293
|
-
var jssId = "";
|
2294
|
-
var prefix2 = "";
|
2295
|
-
if (sheet) {
|
2296
|
-
if (sheet.options.classNamePrefix) {
|
2297
|
-
prefix2 = sheet.options.classNamePrefix;
|
2298
|
-
}
|
2299
|
-
if (sheet.options.jss.id != null) {
|
2300
|
-
jssId = String(sheet.options.jss.id);
|
2301
|
-
}
|
2302
|
-
}
|
2303
|
-
if (options.minify) {
|
2304
|
-
return "" + (prefix2 || "c") + moduleId + jssId + ruleCounter;
|
2305
|
-
}
|
2306
|
-
return prefix2 + rule.key + "-" + moduleId + (jssId ? "-" + jssId : "") + "-" + ruleCounter;
|
2307
|
-
};
|
2308
|
-
return generateId;
|
2309
|
-
};
|
2310
|
-
var memoize = function memoize2(fn) {
|
2311
|
-
var value;
|
2312
|
-
return function() {
|
2313
|
-
if (!value) value = fn();
|
2314
|
-
return value;
|
2315
|
-
};
|
2316
|
-
};
|
2317
|
-
var getPropertyValue = function getPropertyValue2(cssRule, prop) {
|
2318
|
-
try {
|
2319
|
-
if (cssRule.attributeStyleMap) {
|
2320
|
-
return cssRule.attributeStyleMap.get(prop);
|
2321
|
-
}
|
2322
|
-
return cssRule.style.getPropertyValue(prop);
|
2323
|
-
} catch (err) {
|
2324
|
-
return "";
|
2325
|
-
}
|
2326
|
-
};
|
2327
|
-
var setProperty = function setProperty2(cssRule, prop, value) {
|
2328
|
-
try {
|
2329
|
-
var cssValue = value;
|
2330
|
-
if (Array.isArray(value)) {
|
2331
|
-
cssValue = toCssValue(value);
|
2332
|
-
}
|
2333
|
-
if (cssRule.attributeStyleMap) {
|
2334
|
-
cssRule.attributeStyleMap.set(prop, cssValue);
|
2335
|
-
} else {
|
2336
|
-
var indexOfImportantFlag = cssValue ? cssValue.indexOf("!important") : -1;
|
2337
|
-
var cssValueWithoutImportantFlag = indexOfImportantFlag > -1 ? cssValue.substr(0, indexOfImportantFlag - 1) : cssValue;
|
2338
|
-
cssRule.style.setProperty(prop, cssValueWithoutImportantFlag, indexOfImportantFlag > -1 ? "important" : "");
|
2339
|
-
}
|
2340
|
-
} catch (err) {
|
2341
|
-
return false;
|
2342
|
-
}
|
2343
|
-
return true;
|
2344
|
-
};
|
2345
|
-
var removeProperty = function removeProperty2(cssRule, prop) {
|
2346
|
-
try {
|
2347
|
-
if (cssRule.attributeStyleMap) {
|
2348
|
-
cssRule.attributeStyleMap.delete(prop);
|
2349
|
-
} else {
|
2350
|
-
cssRule.style.removeProperty(prop);
|
2351
|
-
}
|
2352
|
-
} catch (err) {
|
2353
|
-
process.env.NODE_ENV !== "production" ? tiny_warning_esm_default(false, '[JSS] DOMException "' + err.message + '" was thrown. Tried to remove property "' + prop + '".') : void 0;
|
2354
|
-
}
|
2355
|
-
};
|
2356
|
-
var setSelector = function setSelector2(cssRule, selectorText) {
|
2357
|
-
cssRule.selectorText = selectorText;
|
2358
|
-
return cssRule.selectorText === selectorText;
|
2359
|
-
};
|
2360
|
-
var getHead = memoize(function() {
|
2361
|
-
return document.querySelector("head");
|
2362
|
-
});
|
2363
|
-
function findHigherSheet(registry, options) {
|
2364
|
-
for (var i = 0; i < registry.length; i++) {
|
2365
|
-
var sheet = registry[i];
|
2366
|
-
if (sheet.attached && sheet.options.index > options.index && sheet.options.insertionPoint === options.insertionPoint) {
|
2367
|
-
return sheet;
|
2368
|
-
}
|
2369
|
-
}
|
2370
|
-
return null;
|
2371
|
-
}
|
2372
|
-
function findHighestSheet(registry, options) {
|
2373
|
-
for (var i = registry.length - 1; i >= 0; i--) {
|
2374
|
-
var sheet = registry[i];
|
2375
|
-
if (sheet.attached && sheet.options.insertionPoint === options.insertionPoint) {
|
2376
|
-
return sheet;
|
2377
|
-
}
|
2378
|
-
}
|
2379
|
-
return null;
|
2380
|
-
}
|
2381
|
-
function findCommentNode(text) {
|
2382
|
-
var head = getHead();
|
2383
|
-
for (var i = 0; i < head.childNodes.length; i++) {
|
2384
|
-
var node = head.childNodes[i];
|
2385
|
-
if (node.nodeType === 8 && node.nodeValue.trim() === text) {
|
2386
|
-
return node;
|
2387
|
-
}
|
2388
|
-
}
|
2389
|
-
return null;
|
2390
|
-
}
|
2391
|
-
function findPrevNode(options) {
|
2392
|
-
var registry = sheets.registry;
|
2393
|
-
if (registry.length > 0) {
|
2394
|
-
var sheet = findHigherSheet(registry, options);
|
2395
|
-
if (sheet && sheet.renderer) {
|
2396
|
-
return {
|
2397
|
-
parent: sheet.renderer.element.parentNode,
|
2398
|
-
node: sheet.renderer.element
|
2399
|
-
};
|
2400
|
-
}
|
2401
|
-
sheet = findHighestSheet(registry, options);
|
2402
|
-
if (sheet && sheet.renderer) {
|
2403
|
-
return {
|
2404
|
-
parent: sheet.renderer.element.parentNode,
|
2405
|
-
node: sheet.renderer.element.nextSibling
|
2406
|
-
};
|
2407
|
-
}
|
2408
|
-
}
|
2409
|
-
var insertionPoint = options.insertionPoint;
|
2410
|
-
if (insertionPoint && typeof insertionPoint === "string") {
|
2411
|
-
var comment = findCommentNode(insertionPoint);
|
2412
|
-
if (comment) {
|
2413
|
-
return {
|
2414
|
-
parent: comment.parentNode,
|
2415
|
-
node: comment.nextSibling
|
2416
|
-
};
|
2417
|
-
}
|
2418
|
-
process.env.NODE_ENV !== "production" ? tiny_warning_esm_default(false, '[JSS] Insertion point "' + insertionPoint + '" not found.') : void 0;
|
2419
|
-
}
|
2420
|
-
return false;
|
2421
|
-
}
|
2422
|
-
function insertStyle(style, options) {
|
2423
|
-
var insertionPoint = options.insertionPoint;
|
2424
|
-
var nextNode = findPrevNode(options);
|
2425
|
-
if (nextNode !== false && nextNode.parent) {
|
2426
|
-
nextNode.parent.insertBefore(style, nextNode.node);
|
2427
|
-
return;
|
2428
|
-
}
|
2429
|
-
if (insertionPoint && typeof insertionPoint.nodeType === "number") {
|
2430
|
-
var insertionPointElement = insertionPoint;
|
2431
|
-
var parentNode = insertionPointElement.parentNode;
|
2432
|
-
if (parentNode) parentNode.insertBefore(style, insertionPointElement.nextSibling);
|
2433
|
-
else process.env.NODE_ENV !== "production" ? tiny_warning_esm_default(false, "[JSS] Insertion point is not in the DOM.") : void 0;
|
2434
|
-
return;
|
2435
|
-
}
|
2436
|
-
getHead().appendChild(style);
|
2437
|
-
}
|
2438
|
-
var getNonce = memoize(function() {
|
2439
|
-
var node = document.querySelector('meta[property="csp-nonce"]');
|
2440
|
-
return node ? node.getAttribute("content") : null;
|
2441
|
-
});
|
2442
|
-
var _insertRule = function insertRule(container, rule, index4) {
|
2443
|
-
try {
|
2444
|
-
if ("insertRule" in container) {
|
2445
|
-
container.insertRule(rule, index4);
|
2446
|
-
} else if ("appendRule" in container) {
|
2447
|
-
container.appendRule(rule);
|
2448
|
-
}
|
2449
|
-
} catch (err) {
|
2450
|
-
process.env.NODE_ENV !== "production" ? tiny_warning_esm_default(false, "[JSS] " + err.message) : void 0;
|
2451
|
-
return false;
|
2452
|
-
}
|
2453
|
-
return container.cssRules[index4];
|
2454
|
-
};
|
2455
|
-
var getValidRuleInsertionIndex = function getValidRuleInsertionIndex2(container, index4) {
|
2456
|
-
var maxIndex = container.cssRules.length;
|
2457
|
-
if (index4 === void 0 || index4 > maxIndex) {
|
2458
|
-
return maxIndex;
|
2459
|
-
}
|
2460
|
-
return index4;
|
2461
|
-
};
|
2462
|
-
var createStyle = function createStyle2() {
|
2463
|
-
var el2 = document.createElement("style");
|
2464
|
-
el2.textContent = "\n";
|
2465
|
-
return el2;
|
2466
|
-
};
|
2467
|
-
var DomRenderer = /* @__PURE__ */ function() {
|
2468
|
-
function DomRenderer2(sheet) {
|
2469
|
-
this.getPropertyValue = getPropertyValue;
|
2470
|
-
this.setProperty = setProperty;
|
2471
|
-
this.removeProperty = removeProperty;
|
2472
|
-
this.setSelector = setSelector;
|
2473
|
-
this.hasInsertedRules = false;
|
2474
|
-
this.cssRules = [];
|
2475
|
-
if (sheet) sheets.add(sheet);
|
2476
|
-
this.sheet = sheet;
|
2477
|
-
var _ref = this.sheet ? this.sheet.options : {}, media = _ref.media, meta = _ref.meta, element = _ref.element;
|
2478
|
-
this.element = element || createStyle();
|
2479
|
-
this.element.setAttribute("data-jss", "");
|
2480
|
-
if (media) this.element.setAttribute("media", media);
|
2481
|
-
if (meta) this.element.setAttribute("data-meta", meta);
|
2482
|
-
var nonce = getNonce();
|
2483
|
-
if (nonce) this.element.setAttribute("nonce", nonce);
|
2484
|
-
}
|
2485
|
-
var _proto = DomRenderer2.prototype;
|
2486
|
-
_proto.attach = function attach() {
|
2487
|
-
if (this.element.parentNode || !this.sheet) return;
|
2488
|
-
insertStyle(this.element, this.sheet.options);
|
2489
|
-
var deployed = Boolean(this.sheet && this.sheet.deployed);
|
2490
|
-
if (this.hasInsertedRules && deployed) {
|
2491
|
-
this.hasInsertedRules = false;
|
2492
|
-
this.deploy();
|
2493
|
-
}
|
2494
|
-
};
|
2495
|
-
_proto.detach = function detach() {
|
2496
|
-
if (!this.sheet) return;
|
2497
|
-
var parentNode = this.element.parentNode;
|
2498
|
-
if (parentNode) parentNode.removeChild(this.element);
|
2499
|
-
if (this.sheet.options.link) {
|
2500
|
-
this.cssRules = [];
|
2501
|
-
this.element.textContent = "\n";
|
2502
|
-
}
|
2503
|
-
};
|
2504
|
-
_proto.deploy = function deploy() {
|
2505
|
-
var sheet = this.sheet;
|
2506
|
-
if (!sheet) return;
|
2507
|
-
if (sheet.options.link) {
|
2508
|
-
this.insertRules(sheet.rules);
|
2509
|
-
return;
|
2510
|
-
}
|
2511
|
-
this.element.textContent = "\n" + sheet.toString() + "\n";
|
2512
|
-
};
|
2513
|
-
_proto.insertRules = function insertRules(rules, nativeParent) {
|
2514
|
-
for (var i = 0; i < rules.index.length; i++) {
|
2515
|
-
this.insertRule(rules.index[i], i, nativeParent);
|
2516
|
-
}
|
2517
|
-
};
|
2518
|
-
_proto.insertRule = function insertRule2(rule, index4, nativeParent) {
|
2519
|
-
if (nativeParent === void 0) {
|
2520
|
-
nativeParent = this.element.sheet;
|
2521
|
-
}
|
2522
|
-
if (rule.rules) {
|
2523
|
-
var parent = rule;
|
2524
|
-
var latestNativeParent = nativeParent;
|
2525
|
-
if (rule.type === "conditional" || rule.type === "keyframes") {
|
2526
|
-
var _insertionIndex = getValidRuleInsertionIndex(nativeParent, index4);
|
2527
|
-
latestNativeParent = _insertRule(nativeParent, parent.toString({
|
2528
|
-
children: false
|
2529
|
-
}), _insertionIndex);
|
2530
|
-
if (latestNativeParent === false) {
|
2531
|
-
return false;
|
2532
|
-
}
|
2533
|
-
this.refCssRule(rule, _insertionIndex, latestNativeParent);
|
2534
|
-
}
|
2535
|
-
this.insertRules(parent.rules, latestNativeParent);
|
2536
|
-
return latestNativeParent;
|
2537
|
-
}
|
2538
|
-
var ruleStr = rule.toString();
|
2539
|
-
if (!ruleStr) return false;
|
2540
|
-
var insertionIndex = getValidRuleInsertionIndex(nativeParent, index4);
|
2541
|
-
var nativeRule = _insertRule(nativeParent, ruleStr, insertionIndex);
|
2542
|
-
if (nativeRule === false) {
|
2543
|
-
return false;
|
2544
|
-
}
|
2545
|
-
this.hasInsertedRules = true;
|
2546
|
-
this.refCssRule(rule, insertionIndex, nativeRule);
|
2547
|
-
return nativeRule;
|
2548
|
-
};
|
2549
|
-
_proto.refCssRule = function refCssRule(rule, index4, cssRule) {
|
2550
|
-
rule.renderable = cssRule;
|
2551
|
-
if (rule.options.parent instanceof StyleSheet) {
|
2552
|
-
this.cssRules.splice(index4, 0, cssRule);
|
2553
|
-
}
|
2554
|
-
};
|
2555
|
-
_proto.deleteRule = function deleteRule(cssRule) {
|
2556
|
-
var sheet = this.element.sheet;
|
2557
|
-
var index4 = this.indexOf(cssRule);
|
2558
|
-
if (index4 === -1) return false;
|
2559
|
-
sheet.deleteRule(index4);
|
2560
|
-
this.cssRules.splice(index4, 1);
|
2561
|
-
return true;
|
2562
|
-
};
|
2563
|
-
_proto.indexOf = function indexOf(cssRule) {
|
2564
|
-
return this.cssRules.indexOf(cssRule);
|
2565
|
-
};
|
2566
|
-
_proto.replaceRule = function replaceRule(cssRule, rule) {
|
2567
|
-
var index4 = this.indexOf(cssRule);
|
2568
|
-
if (index4 === -1) return false;
|
2569
|
-
this.element.sheet.deleteRule(index4);
|
2570
|
-
this.cssRules.splice(index4, 1);
|
2571
|
-
return this.insertRule(rule, index4);
|
2572
|
-
};
|
2573
|
-
_proto.getRules = function getRules() {
|
2574
|
-
return this.element.sheet.cssRules;
|
2575
|
-
};
|
2576
|
-
return DomRenderer2;
|
2577
|
-
}();
|
2578
|
-
var instanceCounter = 0;
|
2579
|
-
var Jss = /* @__PURE__ */ function() {
|
2580
|
-
function Jss2(options) {
|
2581
|
-
this.id = instanceCounter++;
|
2582
|
-
this.version = "10.10.0";
|
2583
|
-
this.plugins = new PluginsRegistry();
|
2584
|
-
this.options = {
|
2585
|
-
id: {
|
2586
|
-
minify: false
|
2587
|
-
},
|
2588
|
-
createGenerateId,
|
2589
|
-
Renderer: module_default ? DomRenderer : null,
|
2590
|
-
plugins: []
|
2591
|
-
};
|
2592
|
-
this.generateId = createGenerateId({
|
2593
|
-
minify: false
|
2594
|
-
});
|
2595
|
-
for (var i = 0; i < plugins.length; i++) {
|
2596
|
-
this.plugins.use(plugins[i], {
|
2597
|
-
queue: "internal"
|
2598
|
-
});
|
2599
|
-
}
|
2600
|
-
this.setup(options);
|
2601
|
-
}
|
2602
|
-
var _proto = Jss2.prototype;
|
2603
|
-
_proto.setup = function setup(options) {
|
2604
|
-
if (options === void 0) {
|
2605
|
-
options = {};
|
2606
|
-
}
|
2607
|
-
if (options.createGenerateId) {
|
2608
|
-
this.options.createGenerateId = options.createGenerateId;
|
2609
|
-
}
|
2610
|
-
if (options.id) {
|
2611
|
-
this.options.id = _extends({}, this.options.id, options.id);
|
2612
|
-
}
|
2613
|
-
if (options.createGenerateId || options.id) {
|
2614
|
-
this.generateId = this.options.createGenerateId(this.options.id);
|
2615
|
-
}
|
2616
|
-
if (options.insertionPoint != null) this.options.insertionPoint = options.insertionPoint;
|
2617
|
-
if ("Renderer" in options) {
|
2618
|
-
this.options.Renderer = options.Renderer;
|
2619
|
-
}
|
2620
|
-
if (options.plugins) this.use.apply(this, options.plugins);
|
2621
|
-
return this;
|
2622
|
-
};
|
2623
|
-
_proto.createStyleSheet = function createStyleSheet3(styles, options) {
|
2624
|
-
if (options === void 0) {
|
2625
|
-
options = {};
|
2626
|
-
}
|
2627
|
-
var _options = options, index4 = _options.index;
|
2628
|
-
if (typeof index4 !== "number") {
|
2629
|
-
index4 = sheets.index === 0 ? 0 : sheets.index + 1;
|
2630
|
-
}
|
2631
|
-
var sheet = new StyleSheet(styles, _extends({}, options, {
|
2632
|
-
jss: this,
|
2633
|
-
generateId: options.generateId || this.generateId,
|
2634
|
-
insertionPoint: this.options.insertionPoint,
|
2635
|
-
Renderer: this.options.Renderer,
|
2636
|
-
index: index4
|
2637
|
-
}));
|
2638
|
-
this.plugins.onProcessSheet(sheet);
|
2639
|
-
return sheet;
|
2640
|
-
};
|
2641
|
-
_proto.removeStyleSheet = function removeStyleSheet(sheet) {
|
2642
|
-
sheet.detach();
|
2643
|
-
sheets.remove(sheet);
|
2644
|
-
return this;
|
2645
|
-
};
|
2646
|
-
_proto.createRule = function createRule$1(name, style, options) {
|
2647
|
-
if (style === void 0) {
|
2648
|
-
style = {};
|
2649
|
-
}
|
2650
|
-
if (options === void 0) {
|
2651
|
-
options = {};
|
2652
|
-
}
|
2653
|
-
if (typeof name === "object") {
|
2654
|
-
return this.createRule(void 0, name, style);
|
2655
|
-
}
|
2656
|
-
var ruleOptions = _extends({}, options, {
|
2657
|
-
name,
|
2658
|
-
jss: this,
|
2659
|
-
Renderer: this.options.Renderer
|
2660
|
-
});
|
2661
|
-
if (!ruleOptions.generateId) ruleOptions.generateId = this.generateId;
|
2662
|
-
if (!ruleOptions.classes) ruleOptions.classes = {};
|
2663
|
-
if (!ruleOptions.keyframes) ruleOptions.keyframes = {};
|
2664
|
-
var rule = createRule(name, style, ruleOptions);
|
2665
|
-
if (rule) this.plugins.onProcessRule(rule);
|
2666
|
-
return rule;
|
2667
|
-
};
|
2668
|
-
_proto.use = function use() {
|
2669
|
-
var _this = this;
|
2670
|
-
for (var _len = arguments.length, plugins3 = new Array(_len), _key = 0; _key < _len; _key++) {
|
2671
|
-
plugins3[_key] = arguments[_key];
|
2672
|
-
}
|
2673
|
-
plugins3.forEach(function(plugin) {
|
2674
|
-
_this.plugins.use(plugin);
|
2675
|
-
});
|
2676
|
-
return this;
|
2677
|
-
};
|
2678
|
-
return Jss2;
|
2679
|
-
}();
|
2680
|
-
var createJss = function createJss2(options) {
|
2681
|
-
return new Jss(options);
|
2682
|
-
};
|
2683
|
-
var SheetsManager = /* @__PURE__ */ function() {
|
2684
|
-
function SheetsManager2() {
|
2685
|
-
this.length = 0;
|
2686
|
-
this.sheets = /* @__PURE__ */ new WeakMap();
|
2687
|
-
}
|
2688
|
-
var _proto = SheetsManager2.prototype;
|
2689
|
-
_proto.get = function get(key) {
|
2690
|
-
var entry = this.sheets.get(key);
|
2691
|
-
return entry && entry.sheet;
|
2692
|
-
};
|
2693
|
-
_proto.add = function add(key, sheet) {
|
2694
|
-
if (this.sheets.has(key)) return;
|
2695
|
-
this.length++;
|
2696
|
-
this.sheets.set(key, {
|
2697
|
-
sheet,
|
2698
|
-
refs: 0
|
2699
|
-
});
|
2700
|
-
};
|
2701
|
-
_proto.manage = function manage(key) {
|
2702
|
-
var entry = this.sheets.get(key);
|
2703
|
-
if (entry) {
|
2704
|
-
if (entry.refs === 0) {
|
2705
|
-
entry.sheet.attach();
|
2706
|
-
}
|
2707
|
-
entry.refs++;
|
2708
|
-
return entry.sheet;
|
2709
|
-
}
|
2710
|
-
tiny_warning_esm_default(false, "[JSS] SheetsManager: can't find sheet to manage");
|
2711
|
-
return void 0;
|
2712
|
-
};
|
2713
|
-
_proto.unmanage = function unmanage(key) {
|
2714
|
-
var entry = this.sheets.get(key);
|
2715
|
-
if (entry) {
|
2716
|
-
if (entry.refs > 0) {
|
2717
|
-
entry.refs--;
|
2718
|
-
if (entry.refs === 0) entry.sheet.detach();
|
2719
|
-
}
|
2720
|
-
} else {
|
2721
|
-
tiny_warning_esm_default(false, "SheetsManager: can't find sheet to unmanage");
|
2722
|
-
}
|
2723
|
-
};
|
2724
|
-
_createClass(SheetsManager2, [{
|
2725
|
-
key: "size",
|
2726
|
-
get: function get() {
|
2727
|
-
return this.length;
|
2728
|
-
}
|
2729
|
-
}]);
|
2730
|
-
return SheetsManager2;
|
2731
|
-
}();
|
2732
|
-
var hasCSSTOMSupport = typeof CSS === "object" && CSS != null && "number" in CSS;
|
2733
|
-
function getDynamicStyles(styles) {
|
2734
|
-
var to = null;
|
2735
|
-
for (var key in styles) {
|
2736
|
-
var value = styles[key];
|
2737
|
-
var type = typeof value;
|
2738
|
-
if (type === "function") {
|
2739
|
-
if (!to) to = {};
|
2740
|
-
to[key] = value;
|
2741
|
-
} else if (type === "object" && value !== null && !Array.isArray(value)) {
|
2742
|
-
var extracted = getDynamicStyles(value);
|
2743
|
-
if (extracted) {
|
2744
|
-
if (!to) to = {};
|
2745
|
-
to[key] = extracted;
|
2746
|
-
}
|
2747
|
-
}
|
2748
|
-
}
|
2749
|
-
return to;
|
2750
|
-
}
|
2751
|
-
var index = createJss();
|
2752
|
-
|
2753
|
-
// ../../node_modules/jss-plugin-rule-value-function/dist/jss-plugin-rule-value-function.esm.js
|
2754
|
-
var now = Date.now();
|
2755
|
-
var fnValuesNs = "fnValues" + now;
|
2756
|
-
var fnRuleNs = "fnStyle" + ++now;
|
2757
|
-
var functionPlugin = function functionPlugin2() {
|
2758
|
-
return {
|
2759
|
-
onCreateRule: function onCreateRule8(name, decl, options) {
|
2760
|
-
if (typeof decl !== "function") return null;
|
2761
|
-
var rule = createRule(name, {}, options);
|
2762
|
-
rule[fnRuleNs] = decl;
|
2763
|
-
return rule;
|
2764
|
-
},
|
2765
|
-
onProcessStyle: function onProcessStyle2(style, rule) {
|
2766
|
-
if (fnValuesNs in rule || fnRuleNs in rule) return style;
|
2767
|
-
var fnValues = {};
|
2768
|
-
for (var prop in style) {
|
2769
|
-
var value = style[prop];
|
2770
|
-
if (typeof value !== "function") continue;
|
2771
|
-
delete style[prop];
|
2772
|
-
fnValues[prop] = value;
|
2773
|
-
}
|
2774
|
-
rule[fnValuesNs] = fnValues;
|
2775
|
-
return style;
|
2776
|
-
},
|
2777
|
-
onUpdate: function onUpdate(data, rule, sheet, options) {
|
2778
|
-
var styleRule = rule;
|
2779
|
-
var fnRule = styleRule[fnRuleNs];
|
2780
|
-
if (fnRule) {
|
2781
|
-
styleRule.style = fnRule(data) || {};
|
2782
|
-
if (process.env.NODE_ENV === "development") {
|
2783
|
-
for (var prop in styleRule.style) {
|
2784
|
-
if (typeof styleRule.style[prop] === "function") {
|
2785
|
-
process.env.NODE_ENV !== "production" ? tiny_warning_esm_default(false, "[JSS] Function values inside function rules are not supported.") : void 0;
|
2786
|
-
break;
|
2787
|
-
}
|
2788
|
-
}
|
2789
|
-
}
|
2790
|
-
}
|
2791
|
-
var fnValues = styleRule[fnValuesNs];
|
2792
|
-
if (fnValues) {
|
2793
|
-
for (var _prop in fnValues) {
|
2794
|
-
styleRule.prop(_prop, fnValues[_prop](data), options);
|
2795
|
-
}
|
2796
|
-
}
|
2797
|
-
}
|
2798
|
-
};
|
2799
|
-
};
|
2800
|
-
var jss_plugin_rule_value_function_esm_default = functionPlugin;
|
2801
|
-
|
2802
|
-
// ../../node_modules/symbol-observable/es/ponyfill.js
|
2803
|
-
function symbolObservablePonyfill(root2) {
|
2804
|
-
var result2;
|
2805
|
-
var Symbol2 = root2.Symbol;
|
2806
|
-
if (typeof Symbol2 === "function") {
|
2807
|
-
if (Symbol2.observable) {
|
2808
|
-
result2 = Symbol2.observable;
|
2809
|
-
} else {
|
2810
|
-
result2 = Symbol2("observable");
|
2811
|
-
Symbol2.observable = result2;
|
2812
|
-
}
|
2813
|
-
} else {
|
2814
|
-
result2 = "@@observable";
|
2815
|
-
}
|
2816
|
-
return result2;
|
2817
|
-
}
|
2818
|
-
|
2819
|
-
// ../../node_modules/symbol-observable/es/index.js
|
2820
|
-
var root;
|
2821
|
-
if (typeof self !== "undefined") {
|
2822
|
-
root = self;
|
2823
|
-
} else if (typeof window !== "undefined") {
|
2824
|
-
root = window;
|
2825
|
-
} else if (typeof global !== "undefined") {
|
2826
|
-
root = global;
|
2827
|
-
} else if (typeof module !== "undefined") {
|
2828
|
-
root = module;
|
2829
|
-
} else {
|
2830
|
-
root = Function("return this")();
|
2831
|
-
}
|
2832
|
-
var result = symbolObservablePonyfill(root);
|
2833
|
-
var es_default = result;
|
2834
|
-
|
2835
|
-
// ../../node_modules/jss-plugin-rule-value-observable/dist/jss-plugin-rule-value-observable.esm.js
|
2836
|
-
var isObservable = function isObservable2(value) {
|
2837
|
-
return value && value[es_default] && value === value[es_default]();
|
2838
|
-
};
|
2839
|
-
var observablePlugin = function observablePlugin2(updateOptions) {
|
2840
|
-
return {
|
2841
|
-
onCreateRule: function onCreateRule8(name, decl, options) {
|
2842
|
-
if (!isObservable(decl)) return null;
|
2843
|
-
var style$ = decl;
|
2844
|
-
var rule = createRule(name, {}, options);
|
2845
|
-
style$.subscribe(function(style) {
|
2846
|
-
for (var prop in style) {
|
2847
|
-
rule.prop(prop, style[prop], updateOptions);
|
2848
|
-
}
|
2849
|
-
});
|
2850
|
-
return rule;
|
2851
|
-
},
|
2852
|
-
onProcessRule: function onProcessRule3(rule) {
|
2853
|
-
if (rule && rule.type !== "style") return;
|
2854
|
-
var styleRule = rule;
|
2855
|
-
var style = styleRule.style;
|
2856
|
-
var _loop = function _loop2(prop2) {
|
2857
|
-
var value = style[prop2];
|
2858
|
-
if (!isObservable(value)) return "continue";
|
2859
|
-
delete style[prop2];
|
2860
|
-
value.subscribe({
|
2861
|
-
next: function next(nextValue) {
|
2862
|
-
styleRule.prop(prop2, nextValue, updateOptions);
|
2863
|
-
}
|
2864
|
-
});
|
2865
|
-
};
|
2866
|
-
for (var prop in style) {
|
2867
|
-
var _ret = _loop(prop);
|
2868
|
-
if (_ret === "continue") continue;
|
2869
|
-
}
|
2870
|
-
}
|
2871
|
-
};
|
2872
|
-
};
|
2873
|
-
var jss_plugin_rule_value_observable_esm_default = observablePlugin;
|
2874
|
-
|
2875
|
-
// ../../node_modules/jss-plugin-template/dist/jss-plugin-template.esm.js
|
2876
|
-
var semiWithNl = /;\n/;
|
2877
|
-
var parse = function parse2(cssText) {
|
2878
|
-
var style = {};
|
2879
|
-
var split = cssText.split(semiWithNl);
|
2880
|
-
for (var i = 0; i < split.length; i++) {
|
2881
|
-
var decl = (split[i] || "").trim();
|
2882
|
-
if (!decl) continue;
|
2883
|
-
var colonIndex = decl.indexOf(":");
|
2884
|
-
if (colonIndex === -1) {
|
2885
|
-
process.env.NODE_ENV !== "production" ? tiny_warning_esm_default(false, '[JSS] Malformed CSS string "' + decl + '"') : void 0;
|
2886
|
-
continue;
|
2887
|
-
}
|
2888
|
-
var prop = decl.substr(0, colonIndex).trim();
|
2889
|
-
var value = decl.substr(colonIndex + 1).trim();
|
2890
|
-
style[prop] = value;
|
2891
|
-
}
|
2892
|
-
return style;
|
2893
|
-
};
|
2894
|
-
var onProcessRule = function onProcessRule2(rule) {
|
2895
|
-
if (typeof rule.style === "string") {
|
2896
|
-
rule.style = parse(rule.style);
|
2897
|
-
}
|
2898
|
-
};
|
2899
|
-
function templatePlugin() {
|
2900
|
-
return {
|
2901
|
-
onProcessRule
|
2902
|
-
};
|
2903
|
-
}
|
2904
|
-
var jss_plugin_template_esm_default = templatePlugin;
|
2905
|
-
|
2906
|
-
// ../../node_modules/jss-plugin-global/dist/jss-plugin-global.esm.js
|
2907
|
-
var at = "@global";
|
2908
|
-
var atPrefix = "@global ";
|
2909
|
-
var GlobalContainerRule = /* @__PURE__ */ function() {
|
2910
|
-
function GlobalContainerRule2(key, styles, options) {
|
2911
|
-
this.type = "global";
|
2912
|
-
this.at = at;
|
2913
|
-
this.isProcessed = false;
|
2914
|
-
this.key = key;
|
2915
|
-
this.options = options;
|
2916
|
-
this.rules = new RuleList(_extends({}, options, {
|
2917
|
-
parent: this
|
2918
|
-
}));
|
2919
|
-
for (var selector in styles) {
|
2920
|
-
this.rules.add(selector, styles[selector]);
|
2921
|
-
}
|
2922
|
-
this.rules.process();
|
2923
|
-
}
|
2924
|
-
var _proto = GlobalContainerRule2.prototype;
|
2925
|
-
_proto.getRule = function getRule(name) {
|
2926
|
-
return this.rules.get(name);
|
2927
|
-
};
|
2928
|
-
_proto.addRule = function addRule(name, style, options) {
|
2929
|
-
var rule = this.rules.add(name, style, options);
|
2930
|
-
if (rule) this.options.jss.plugins.onProcessRule(rule);
|
2931
|
-
return rule;
|
2932
|
-
};
|
2933
|
-
_proto.replaceRule = function replaceRule(name, style, options) {
|
2934
|
-
var newRule = this.rules.replace(name, style, options);
|
2935
|
-
if (newRule) this.options.jss.plugins.onProcessRule(newRule);
|
2936
|
-
return newRule;
|
2937
|
-
};
|
2938
|
-
_proto.indexOf = function indexOf(rule) {
|
2939
|
-
return this.rules.indexOf(rule);
|
2940
|
-
};
|
2941
|
-
_proto.toString = function toString(options) {
|
2942
|
-
return this.rules.toString(options);
|
2943
|
-
};
|
2944
|
-
return GlobalContainerRule2;
|
2945
|
-
}();
|
2946
|
-
var GlobalPrefixedRule = /* @__PURE__ */ function() {
|
2947
|
-
function GlobalPrefixedRule2(key, style, options) {
|
2948
|
-
this.type = "global";
|
2949
|
-
this.at = at;
|
2950
|
-
this.isProcessed = false;
|
2951
|
-
this.key = key;
|
2952
|
-
this.options = options;
|
2953
|
-
var selector = key.substr(atPrefix.length);
|
2954
|
-
this.rule = options.jss.createRule(selector, style, _extends({}, options, {
|
2955
|
-
parent: this
|
2956
|
-
}));
|
2957
|
-
}
|
2958
|
-
var _proto2 = GlobalPrefixedRule2.prototype;
|
2959
|
-
_proto2.toString = function toString(options) {
|
2960
|
-
return this.rule ? this.rule.toString(options) : "";
|
2961
|
-
};
|
2962
|
-
return GlobalPrefixedRule2;
|
2963
|
-
}();
|
2964
|
-
var separatorRegExp = /\s*,\s*/g;
|
2965
|
-
function addScope(selector, scope) {
|
2966
|
-
var parts = selector.split(separatorRegExp);
|
2967
|
-
var scoped = "";
|
2968
|
-
for (var i = 0; i < parts.length; i++) {
|
2969
|
-
scoped += scope + " " + parts[i].trim();
|
2970
|
-
if (parts[i + 1]) scoped += ", ";
|
2971
|
-
}
|
2972
|
-
return scoped;
|
2973
|
-
}
|
2974
|
-
function handleNestedGlobalContainerRule(rule, sheet) {
|
2975
|
-
var options = rule.options, style = rule.style;
|
2976
|
-
var rules = style ? style[at] : null;
|
2977
|
-
if (!rules) return;
|
2978
|
-
for (var name in rules) {
|
2979
|
-
sheet.addRule(name, rules[name], _extends({}, options, {
|
2980
|
-
selector: addScope(name, rule.selector)
|
2981
|
-
}));
|
2982
|
-
}
|
2983
|
-
delete style[at];
|
2984
|
-
}
|
2985
|
-
function handlePrefixedGlobalRule(rule, sheet) {
|
2986
|
-
var options = rule.options, style = rule.style;
|
2987
|
-
for (var prop in style) {
|
2988
|
-
if (prop[0] !== "@" || prop.substr(0, at.length) !== at) continue;
|
2989
|
-
var selector = addScope(prop.substr(at.length), rule.selector);
|
2990
|
-
sheet.addRule(selector, style[prop], _extends({}, options, {
|
2991
|
-
selector
|
2992
|
-
}));
|
2993
|
-
delete style[prop];
|
2994
|
-
}
|
2995
|
-
}
|
2996
|
-
function jssGlobal() {
|
2997
|
-
function onCreateRule8(name, styles, options) {
|
2998
|
-
if (!name) return null;
|
2999
|
-
if (name === at) {
|
3000
|
-
return new GlobalContainerRule(name, styles, options);
|
3001
|
-
}
|
3002
|
-
if (name[0] === "@" && name.substr(0, atPrefix.length) === atPrefix) {
|
3003
|
-
return new GlobalPrefixedRule(name, styles, options);
|
3004
|
-
}
|
3005
|
-
var parent = options.parent;
|
3006
|
-
if (parent) {
|
3007
|
-
if (parent.type === "global" || parent.options.parent && parent.options.parent.type === "global") {
|
3008
|
-
options.scoped = false;
|
3009
|
-
}
|
3010
|
-
}
|
3011
|
-
if (!options.selector && options.scoped === false) {
|
3012
|
-
options.selector = name;
|
3013
|
-
}
|
3014
|
-
return null;
|
3015
|
-
}
|
3016
|
-
function onProcessRule3(rule, sheet) {
|
3017
|
-
if (rule.type !== "style" || !sheet) return;
|
3018
|
-
handleNestedGlobalContainerRule(rule, sheet);
|
3019
|
-
handlePrefixedGlobalRule(rule, sheet);
|
3020
|
-
}
|
3021
|
-
return {
|
3022
|
-
onCreateRule: onCreateRule8,
|
3023
|
-
onProcessRule: onProcessRule3
|
3024
|
-
};
|
3025
|
-
}
|
3026
|
-
var jss_plugin_global_esm_default = jssGlobal;
|
3027
|
-
|
3028
|
-
// ../../node_modules/jss-plugin-extend/dist/jss-plugin-extend.esm.js
|
3029
|
-
var isObject2 = function isObject3(obj) {
|
3030
|
-
return obj && typeof obj === "object" && !Array.isArray(obj);
|
3031
|
-
};
|
3032
|
-
var valueNs = "extendCurrValue" + Date.now();
|
3033
|
-
function mergeExtend(style, rule, sheet, newStyle) {
|
3034
|
-
var extendType = typeof style.extend;
|
3035
|
-
if (extendType === "string") {
|
3036
|
-
if (!sheet) return;
|
3037
|
-
var refRule = sheet.getRule(style.extend);
|
3038
|
-
if (!refRule) return;
|
3039
|
-
if (refRule === rule) {
|
3040
|
-
process.env.NODE_ENV !== "production" ? tiny_warning_esm_default(false, "[JSS] A rule tries to extend itself \n" + rule.toString()) : void 0;
|
3041
|
-
return;
|
3042
|
-
}
|
3043
|
-
var parent = refRule.options.parent;
|
3044
|
-
if (parent) {
|
3045
|
-
var originalStyle = parent.rules.raw[style.extend];
|
3046
|
-
extend(originalStyle, rule, sheet, newStyle);
|
3047
|
-
}
|
3048
|
-
return;
|
3049
|
-
}
|
3050
|
-
if (Array.isArray(style.extend)) {
|
3051
|
-
for (var index4 = 0; index4 < style.extend.length; index4++) {
|
3052
|
-
var singleExtend = style.extend[index4];
|
3053
|
-
var singleStyle = typeof singleExtend === "string" ? _extends({}, style, {
|
3054
|
-
extend: singleExtend
|
3055
|
-
}) : style.extend[index4];
|
3056
|
-
extend(singleStyle, rule, sheet, newStyle);
|
3057
|
-
}
|
3058
|
-
return;
|
3059
|
-
}
|
3060
|
-
for (var prop in style.extend) {
|
3061
|
-
if (prop === "extend") {
|
3062
|
-
extend(style.extend.extend, rule, sheet, newStyle);
|
3063
|
-
continue;
|
3064
|
-
}
|
3065
|
-
if (isObject2(style.extend[prop])) {
|
3066
|
-
if (!(prop in newStyle)) newStyle[prop] = {};
|
3067
|
-
extend(style.extend[prop], rule, sheet, newStyle[prop]);
|
3068
|
-
continue;
|
3069
|
-
}
|
3070
|
-
newStyle[prop] = style.extend[prop];
|
3071
|
-
}
|
3072
|
-
}
|
3073
|
-
function mergeRest(style, rule, sheet, newStyle) {
|
3074
|
-
for (var prop in style) {
|
3075
|
-
if (prop === "extend") continue;
|
3076
|
-
if (isObject2(newStyle[prop]) && isObject2(style[prop])) {
|
3077
|
-
extend(style[prop], rule, sheet, newStyle[prop]);
|
3078
|
-
continue;
|
3079
|
-
}
|
3080
|
-
if (isObject2(style[prop])) {
|
3081
|
-
newStyle[prop] = extend(style[prop], rule, sheet);
|
3082
|
-
continue;
|
3083
|
-
}
|
3084
|
-
newStyle[prop] = style[prop];
|
3085
|
-
}
|
3086
|
-
}
|
3087
|
-
function extend(style, rule, sheet, newStyle) {
|
3088
|
-
if (newStyle === void 0) {
|
3089
|
-
newStyle = {};
|
3090
|
-
}
|
3091
|
-
mergeExtend(style, rule, sheet, newStyle);
|
3092
|
-
mergeRest(style, rule, sheet, newStyle);
|
3093
|
-
return newStyle;
|
3094
|
-
}
|
3095
|
-
function jssExtend() {
|
3096
|
-
function onProcessStyle2(style, rule, sheet) {
|
3097
|
-
if ("extend" in style) return extend(style, rule, sheet);
|
3098
|
-
return style;
|
3099
|
-
}
|
3100
|
-
function onChangeValue2(value, prop, rule) {
|
3101
|
-
if (prop !== "extend") return value;
|
3102
|
-
if (value == null || value === false) {
|
3103
|
-
for (var key in rule[valueNs]) {
|
3104
|
-
rule.prop(key, null);
|
3105
|
-
}
|
3106
|
-
rule[valueNs] = null;
|
3107
|
-
return null;
|
3108
|
-
}
|
3109
|
-
if (typeof value === "object") {
|
3110
|
-
for (var _key in value) {
|
3111
|
-
rule.prop(_key, value[_key]);
|
3112
|
-
}
|
3113
|
-
rule[valueNs] = value;
|
3114
|
-
}
|
3115
|
-
return null;
|
3116
|
-
}
|
3117
|
-
return {
|
3118
|
-
onProcessStyle: onProcessStyle2,
|
3119
|
-
onChangeValue: onChangeValue2
|
3120
|
-
};
|
3121
|
-
}
|
3122
|
-
var jss_plugin_extend_esm_default = jssExtend;
|
3123
|
-
|
3124
|
-
// ../../node_modules/jss-plugin-nested/dist/jss-plugin-nested.esm.js
|
3125
|
-
var separatorRegExp2 = /\s*,\s*/g;
|
3126
|
-
var parentRegExp = /&/g;
|
3127
|
-
var refRegExp2 = /\$([\w-]+)/g;
|
3128
|
-
function jssNested() {
|
3129
|
-
function getReplaceRef(container, sheet) {
|
3130
|
-
return function(match, key) {
|
3131
|
-
var rule = container.getRule(key) || sheet && sheet.getRule(key);
|
3132
|
-
if (rule) {
|
3133
|
-
return rule.selector;
|
3134
|
-
}
|
3135
|
-
process.env.NODE_ENV !== "production" ? tiny_warning_esm_default(false, '[JSS] Could not find the referenced rule "' + key + '" in "' + (container.options.meta || container.toString()) + '".') : void 0;
|
3136
|
-
return key;
|
3137
|
-
};
|
3138
|
-
}
|
3139
|
-
function replaceParentRefs(nestedProp, parentProp) {
|
3140
|
-
var parentSelectors = parentProp.split(separatorRegExp2);
|
3141
|
-
var nestedSelectors = nestedProp.split(separatorRegExp2);
|
3142
|
-
var result2 = "";
|
3143
|
-
for (var i = 0; i < parentSelectors.length; i++) {
|
3144
|
-
var parent = parentSelectors[i];
|
3145
|
-
for (var j = 0; j < nestedSelectors.length; j++) {
|
3146
|
-
var nested = nestedSelectors[j];
|
3147
|
-
if (result2) result2 += ", ";
|
3148
|
-
result2 += nested.indexOf("&") !== -1 ? nested.replace(parentRegExp, parent) : parent + " " + nested;
|
3149
|
-
}
|
3150
|
-
}
|
3151
|
-
return result2;
|
3152
|
-
}
|
3153
|
-
function getOptions(rule, container, prevOptions) {
|
3154
|
-
if (prevOptions) return _extends({}, prevOptions, {
|
3155
|
-
index: prevOptions.index + 1
|
3156
|
-
});
|
3157
|
-
var nestingLevel = rule.options.nestingLevel;
|
3158
|
-
nestingLevel = nestingLevel === void 0 ? 1 : nestingLevel + 1;
|
3159
|
-
var options = _extends({}, rule.options, {
|
3160
|
-
nestingLevel,
|
3161
|
-
index: container.indexOf(rule) + 1
|
3162
|
-
// We don't need the parent name to be set options for chlid.
|
3163
|
-
});
|
3164
|
-
delete options.name;
|
3165
|
-
return options;
|
3166
|
-
}
|
3167
|
-
function onProcessStyle2(style, rule, sheet) {
|
3168
|
-
if (rule.type !== "style") return style;
|
3169
|
-
var styleRule = rule;
|
3170
|
-
var container = styleRule.options.parent;
|
3171
|
-
var options;
|
3172
|
-
var replaceRef3;
|
3173
|
-
for (var prop in style) {
|
3174
|
-
var isNested = prop.indexOf("&") !== -1;
|
3175
|
-
var isNestedConditional = prop[0] === "@";
|
3176
|
-
if (!isNested && !isNestedConditional) continue;
|
3177
|
-
options = getOptions(styleRule, container, options);
|
3178
|
-
if (isNested) {
|
3179
|
-
var selector = replaceParentRefs(prop, styleRule.selector);
|
3180
|
-
if (!replaceRef3) replaceRef3 = getReplaceRef(container, sheet);
|
3181
|
-
selector = selector.replace(refRegExp2, replaceRef3);
|
3182
|
-
var name = styleRule.key + "-" + prop;
|
3183
|
-
if ("replaceRule" in container) {
|
3184
|
-
container.replaceRule(name, style[prop], _extends({}, options, {
|
3185
|
-
selector
|
3186
|
-
}));
|
3187
|
-
} else {
|
3188
|
-
container.addRule(name, style[prop], _extends({}, options, {
|
3189
|
-
selector
|
3190
|
-
}));
|
3191
|
-
}
|
3192
|
-
} else if (isNestedConditional) {
|
3193
|
-
container.addRule(prop, {}, options).addRule(styleRule.key, style[prop], {
|
3194
|
-
selector: styleRule.selector
|
3195
|
-
});
|
3196
|
-
}
|
3197
|
-
delete style[prop];
|
3198
|
-
}
|
3199
|
-
return style;
|
3200
|
-
}
|
3201
|
-
return {
|
3202
|
-
onProcessStyle: onProcessStyle2
|
3203
|
-
};
|
3204
|
-
}
|
3205
|
-
var jss_plugin_nested_esm_default = jssNested;
|
3206
|
-
|
3207
|
-
// ../../node_modules/jss-plugin-compose/dist/jss-plugin-compose.esm.js
|
3208
|
-
function registerClass(rule, className) {
|
3209
|
-
if (!className) return true;
|
3210
|
-
if (Array.isArray(className)) {
|
3211
|
-
for (var index4 = 0; index4 < className.length; index4++) {
|
3212
|
-
var isSetted = registerClass(rule, className[index4]);
|
3213
|
-
if (!isSetted) return false;
|
3214
|
-
}
|
3215
|
-
return true;
|
3216
|
-
}
|
3217
|
-
if (className.indexOf(" ") > -1) {
|
3218
|
-
return registerClass(rule, className.split(" "));
|
3219
|
-
}
|
3220
|
-
var parent = rule.options.parent;
|
3221
|
-
if (className[0] === "$") {
|
3222
|
-
var refRule = parent.getRule(className.substr(1));
|
3223
|
-
if (!refRule) {
|
3224
|
-
process.env.NODE_ENV !== "production" ? tiny_warning_esm_default(false, "[JSS] Referenced rule is not defined. \n" + rule.toString()) : void 0;
|
3225
|
-
return false;
|
3226
|
-
}
|
3227
|
-
if (refRule === rule) {
|
3228
|
-
process.env.NODE_ENV !== "production" ? tiny_warning_esm_default(false, "[JSS] Cyclic composition detected. \n" + rule.toString()) : void 0;
|
3229
|
-
return false;
|
3230
|
-
}
|
3231
|
-
parent.classes[rule.key] += " " + parent.classes[refRule.key];
|
3232
|
-
return true;
|
3233
|
-
}
|
3234
|
-
parent.classes[rule.key] += " " + className;
|
3235
|
-
return true;
|
3236
|
-
}
|
3237
|
-
function jssCompose() {
|
3238
|
-
function onProcessStyle2(style, rule) {
|
3239
|
-
if (!("composes" in style)) return style;
|
3240
|
-
registerClass(rule, style.composes);
|
3241
|
-
delete style.composes;
|
3242
|
-
return style;
|
3243
|
-
}
|
3244
|
-
return {
|
3245
|
-
onProcessStyle: onProcessStyle2
|
3246
|
-
};
|
3247
|
-
}
|
3248
|
-
var jss_plugin_compose_esm_default = jssCompose;
|
3249
|
-
|
3250
|
-
// ../../node_modules/hyphenate-style-name/index.js
|
3251
|
-
var uppercasePattern = /[A-Z]/g;
|
3252
|
-
var msPattern = /^ms-/;
|
3253
|
-
var cache = {};
|
3254
|
-
function toHyphenLower(match) {
|
3255
|
-
return "-" + match.toLowerCase();
|
3256
|
-
}
|
3257
|
-
function hyphenateStyleName(name) {
|
3258
|
-
if (cache.hasOwnProperty(name)) {
|
3259
|
-
return cache[name];
|
3260
|
-
}
|
3261
|
-
var hName = name.replace(uppercasePattern, toHyphenLower);
|
3262
|
-
return cache[name] = msPattern.test(hName) ? "-" + hName : hName;
|
3263
|
-
}
|
3264
|
-
var hyphenate_style_name_default = hyphenateStyleName;
|
3265
|
-
|
3266
|
-
// ../../node_modules/jss-plugin-camel-case/dist/jss-plugin-camel-case.esm.js
|
3267
|
-
function convertCase(style) {
|
3268
|
-
var converted = {};
|
3269
|
-
for (var prop in style) {
|
3270
|
-
var key = prop.indexOf("--") === 0 ? prop : hyphenate_style_name_default(prop);
|
3271
|
-
converted[key] = style[prop];
|
3272
|
-
}
|
3273
|
-
if (style.fallbacks) {
|
3274
|
-
if (Array.isArray(style.fallbacks)) converted.fallbacks = style.fallbacks.map(convertCase);
|
3275
|
-
else converted.fallbacks = convertCase(style.fallbacks);
|
3276
|
-
}
|
3277
|
-
return converted;
|
3278
|
-
}
|
3279
|
-
function camelCase() {
|
3280
|
-
function onProcessStyle2(style) {
|
3281
|
-
if (Array.isArray(style)) {
|
3282
|
-
for (var index4 = 0; index4 < style.length; index4++) {
|
3283
|
-
style[index4] = convertCase(style[index4]);
|
3284
|
-
}
|
3285
|
-
return style;
|
3286
|
-
}
|
3287
|
-
return convertCase(style);
|
3288
|
-
}
|
3289
|
-
function onChangeValue2(value, prop, rule) {
|
3290
|
-
if (prop.indexOf("--") === 0) {
|
3291
|
-
return value;
|
3292
|
-
}
|
3293
|
-
var hyphenatedProp = hyphenate_style_name_default(prop);
|
3294
|
-
if (prop === hyphenatedProp) return value;
|
3295
|
-
rule.prop(hyphenatedProp, value);
|
3296
|
-
return null;
|
3297
|
-
}
|
3298
|
-
return {
|
3299
|
-
onProcessStyle: onProcessStyle2,
|
3300
|
-
onChangeValue: onChangeValue2
|
3301
|
-
};
|
3302
|
-
}
|
3303
|
-
var jss_plugin_camel_case_esm_default = camelCase;
|
3304
|
-
|
3305
|
-
// ../../node_modules/jss-plugin-default-unit/dist/jss-plugin-default-unit.esm.js
|
3306
|
-
var px = hasCSSTOMSupport && CSS ? CSS.px : "px";
|
3307
|
-
var ms = hasCSSTOMSupport && CSS ? CSS.ms : "ms";
|
3308
|
-
var percent = hasCSSTOMSupport && CSS ? CSS.percent : "%";
|
3309
|
-
var defaultUnits = {
|
3310
|
-
// Animation properties
|
3311
|
-
"animation-delay": ms,
|
3312
|
-
"animation-duration": ms,
|
3313
|
-
// Background properties
|
3314
|
-
"background-position": px,
|
3315
|
-
"background-position-x": px,
|
3316
|
-
"background-position-y": px,
|
3317
|
-
"background-size": px,
|
3318
|
-
// Border Properties
|
3319
|
-
border: px,
|
3320
|
-
"border-bottom": px,
|
3321
|
-
"border-bottom-left-radius": px,
|
3322
|
-
"border-bottom-right-radius": px,
|
3323
|
-
"border-bottom-width": px,
|
3324
|
-
"border-left": px,
|
3325
|
-
"border-left-width": px,
|
3326
|
-
"border-radius": px,
|
3327
|
-
"border-right": px,
|
3328
|
-
"border-right-width": px,
|
3329
|
-
"border-top": px,
|
3330
|
-
"border-top-left-radius": px,
|
3331
|
-
"border-top-right-radius": px,
|
3332
|
-
"border-top-width": px,
|
3333
|
-
"border-width": px,
|
3334
|
-
"border-block": px,
|
3335
|
-
"border-block-end": px,
|
3336
|
-
"border-block-end-width": px,
|
3337
|
-
"border-block-start": px,
|
3338
|
-
"border-block-start-width": px,
|
3339
|
-
"border-block-width": px,
|
3340
|
-
"border-inline": px,
|
3341
|
-
"border-inline-end": px,
|
3342
|
-
"border-inline-end-width": px,
|
3343
|
-
"border-inline-start": px,
|
3344
|
-
"border-inline-start-width": px,
|
3345
|
-
"border-inline-width": px,
|
3346
|
-
"border-start-start-radius": px,
|
3347
|
-
"border-start-end-radius": px,
|
3348
|
-
"border-end-start-radius": px,
|
3349
|
-
"border-end-end-radius": px,
|
3350
|
-
// Margin properties
|
3351
|
-
margin: px,
|
3352
|
-
"margin-bottom": px,
|
3353
|
-
"margin-left": px,
|
3354
|
-
"margin-right": px,
|
3355
|
-
"margin-top": px,
|
3356
|
-
"margin-block": px,
|
3357
|
-
"margin-block-end": px,
|
3358
|
-
"margin-block-start": px,
|
3359
|
-
"margin-inline": px,
|
3360
|
-
"margin-inline-end": px,
|
3361
|
-
"margin-inline-start": px,
|
3362
|
-
// Padding properties
|
3363
|
-
padding: px,
|
3364
|
-
"padding-bottom": px,
|
3365
|
-
"padding-left": px,
|
3366
|
-
"padding-right": px,
|
3367
|
-
"padding-top": px,
|
3368
|
-
"padding-block": px,
|
3369
|
-
"padding-block-end": px,
|
3370
|
-
"padding-block-start": px,
|
3371
|
-
"padding-inline": px,
|
3372
|
-
"padding-inline-end": px,
|
3373
|
-
"padding-inline-start": px,
|
3374
|
-
// Mask properties
|
3375
|
-
"mask-position-x": px,
|
3376
|
-
"mask-position-y": px,
|
3377
|
-
"mask-size": px,
|
3378
|
-
// Width and height properties
|
3379
|
-
height: px,
|
3380
|
-
width: px,
|
3381
|
-
"min-height": px,
|
3382
|
-
"max-height": px,
|
3383
|
-
"min-width": px,
|
3384
|
-
"max-width": px,
|
3385
|
-
// Position properties
|
3386
|
-
bottom: px,
|
3387
|
-
left: px,
|
3388
|
-
top: px,
|
3389
|
-
right: px,
|
3390
|
-
inset: px,
|
3391
|
-
"inset-block": px,
|
3392
|
-
"inset-block-end": px,
|
3393
|
-
"inset-block-start": px,
|
3394
|
-
"inset-inline": px,
|
3395
|
-
"inset-inline-end": px,
|
3396
|
-
"inset-inline-start": px,
|
3397
|
-
// Shadow properties
|
3398
|
-
"box-shadow": px,
|
3399
|
-
"text-shadow": px,
|
3400
|
-
// Column properties
|
3401
|
-
"column-gap": px,
|
3402
|
-
"column-rule": px,
|
3403
|
-
"column-rule-width": px,
|
3404
|
-
"column-width": px,
|
3405
|
-
// Font and text properties
|
3406
|
-
"font-size": px,
|
3407
|
-
"font-size-delta": px,
|
3408
|
-
"letter-spacing": px,
|
3409
|
-
"text-decoration-thickness": px,
|
3410
|
-
"text-indent": px,
|
3411
|
-
"text-stroke": px,
|
3412
|
-
"text-stroke-width": px,
|
3413
|
-
"word-spacing": px,
|
3414
|
-
// Motion properties
|
3415
|
-
motion: px,
|
3416
|
-
"motion-offset": px,
|
3417
|
-
// Outline properties
|
3418
|
-
outline: px,
|
3419
|
-
"outline-offset": px,
|
3420
|
-
"outline-width": px,
|
3421
|
-
// Perspective properties
|
3422
|
-
perspective: px,
|
3423
|
-
"perspective-origin-x": percent,
|
3424
|
-
"perspective-origin-y": percent,
|
3425
|
-
// Transform properties
|
3426
|
-
"transform-origin": percent,
|
3427
|
-
"transform-origin-x": percent,
|
3428
|
-
"transform-origin-y": percent,
|
3429
|
-
"transform-origin-z": percent,
|
3430
|
-
// Transition properties
|
3431
|
-
"transition-delay": ms,
|
3432
|
-
"transition-duration": ms,
|
3433
|
-
// Alignment properties
|
3434
|
-
"vertical-align": px,
|
3435
|
-
"flex-basis": px,
|
3436
|
-
// Some random properties
|
3437
|
-
"shape-margin": px,
|
3438
|
-
size: px,
|
3439
|
-
gap: px,
|
3440
|
-
// Grid properties
|
3441
|
-
grid: px,
|
3442
|
-
"grid-gap": px,
|
3443
|
-
"row-gap": px,
|
3444
|
-
"grid-row-gap": px,
|
3445
|
-
"grid-column-gap": px,
|
3446
|
-
"grid-template-rows": px,
|
3447
|
-
"grid-template-columns": px,
|
3448
|
-
"grid-auto-rows": px,
|
3449
|
-
"grid-auto-columns": px,
|
3450
|
-
// Not existing properties.
|
3451
|
-
// Used to avoid issues with jss-plugin-expand integration.
|
3452
|
-
"box-shadow-x": px,
|
3453
|
-
"box-shadow-y": px,
|
3454
|
-
"box-shadow-blur": px,
|
3455
|
-
"box-shadow-spread": px,
|
3456
|
-
"font-line-height": px,
|
3457
|
-
"text-shadow-x": px,
|
3458
|
-
"text-shadow-y": px,
|
3459
|
-
"text-shadow-blur": px
|
3460
|
-
};
|
3461
|
-
function addCamelCasedVersion(obj) {
|
3462
|
-
var regExp2 = /(-[a-z])/g;
|
3463
|
-
var replace = function replace2(str) {
|
3464
|
-
return str[1].toUpperCase();
|
3465
|
-
};
|
3466
|
-
var newObj = {};
|
3467
|
-
for (var key in obj) {
|
3468
|
-
newObj[key] = obj[key];
|
3469
|
-
newObj[key.replace(regExp2, replace)] = obj[key];
|
3470
|
-
}
|
3471
|
-
return newObj;
|
3472
|
-
}
|
3473
|
-
var units = addCamelCasedVersion(defaultUnits);
|
3474
|
-
function iterate(prop, value, options) {
|
3475
|
-
if (value == null) return value;
|
3476
|
-
if (Array.isArray(value)) {
|
3477
|
-
for (var i = 0; i < value.length; i++) {
|
3478
|
-
value[i] = iterate(prop, value[i], options);
|
3479
|
-
}
|
3480
|
-
} else if (typeof value === "object") {
|
3481
|
-
if (prop === "fallbacks") {
|
3482
|
-
for (var innerProp in value) {
|
3483
|
-
value[innerProp] = iterate(innerProp, value[innerProp], options);
|
3484
|
-
}
|
3485
|
-
} else {
|
3486
|
-
for (var _innerProp in value) {
|
3487
|
-
value[_innerProp] = iterate(prop + "-" + _innerProp, value[_innerProp], options);
|
3488
|
-
}
|
3489
|
-
}
|
3490
|
-
} else if (typeof value === "number" && isNaN(value) === false) {
|
3491
|
-
var unit = options[prop] || units[prop];
|
3492
|
-
if (unit && !(value === 0 && unit === px)) {
|
3493
|
-
return typeof unit === "function" ? unit(value).toString() : "" + value + unit;
|
3494
|
-
}
|
3495
|
-
return value.toString();
|
3496
|
-
}
|
3497
|
-
return value;
|
3498
|
-
}
|
3499
|
-
function defaultUnit(options) {
|
3500
|
-
if (options === void 0) {
|
3501
|
-
options = {};
|
3502
|
-
}
|
3503
|
-
var camelCasedOptions = addCamelCasedVersion(options);
|
3504
|
-
function onProcessStyle2(style, rule) {
|
3505
|
-
if (rule.type !== "style") return style;
|
3506
|
-
for (var prop in style) {
|
3507
|
-
style[prop] = iterate(prop, style[prop], camelCasedOptions);
|
3508
|
-
}
|
3509
|
-
return style;
|
3510
|
-
}
|
3511
|
-
function onChangeValue2(value, prop) {
|
3512
|
-
return iterate(prop, value, camelCasedOptions);
|
3513
|
-
}
|
3514
|
-
return {
|
3515
|
-
onProcessStyle: onProcessStyle2,
|
3516
|
-
onChangeValue: onChangeValue2
|
3517
|
-
};
|
3518
|
-
}
|
3519
|
-
var jss_plugin_default_unit_esm_default = defaultUnit;
|
3520
|
-
|
3521
|
-
// ../../node_modules/jss-plugin-expand/dist/jss-plugin-expand.esm.js
|
3522
|
-
var propArray = {
|
3523
|
-
"background-size": true,
|
3524
|
-
"background-position": true,
|
3525
|
-
border: true,
|
3526
|
-
"border-bottom": true,
|
3527
|
-
"border-left": true,
|
3528
|
-
"border-top": true,
|
3529
|
-
"border-right": true,
|
3530
|
-
"border-radius": true,
|
3531
|
-
"border-image": true,
|
3532
|
-
"border-width": true,
|
3533
|
-
"border-style": true,
|
3534
|
-
"border-color": true,
|
3535
|
-
"box-shadow": true,
|
3536
|
-
flex: true,
|
3537
|
-
margin: true,
|
3538
|
-
padding: true,
|
3539
|
-
outline: true,
|
3540
|
-
"transform-origin": true,
|
3541
|
-
transform: true,
|
3542
|
-
transition: true
|
3543
|
-
/**
|
3544
|
-
* A scheme for converting arrays to regular styles inside of objects.
|
3545
|
-
* For e.g.: "{position: [0, 0]}" => "background-position: 0 0;".
|
3546
|
-
*/
|
3547
|
-
};
|
3548
|
-
var propArrayInObj = {
|
3549
|
-
position: true,
|
3550
|
-
// background-position
|
3551
|
-
size: true
|
3552
|
-
// background-size
|
3553
|
-
/**
|
3554
|
-
* A scheme for parsing and building correct styles from passed objects.
|
3555
|
-
*/
|
3556
|
-
};
|
3557
|
-
var propObj = {
|
3558
|
-
padding: {
|
3559
|
-
top: 0,
|
3560
|
-
right: 0,
|
3561
|
-
bottom: 0,
|
3562
|
-
left: 0
|
3563
|
-
},
|
3564
|
-
margin: {
|
3565
|
-
top: 0,
|
3566
|
-
right: 0,
|
3567
|
-
bottom: 0,
|
3568
|
-
left: 0
|
3569
|
-
},
|
3570
|
-
background: {
|
3571
|
-
attachment: null,
|
3572
|
-
color: null,
|
3573
|
-
image: null,
|
3574
|
-
position: null,
|
3575
|
-
repeat: null
|
3576
|
-
},
|
3577
|
-
border: {
|
3578
|
-
width: null,
|
3579
|
-
style: null,
|
3580
|
-
color: null
|
3581
|
-
},
|
3582
|
-
"border-top": {
|
3583
|
-
width: null,
|
3584
|
-
style: null,
|
3585
|
-
color: null
|
3586
|
-
},
|
3587
|
-
"border-right": {
|
3588
|
-
width: null,
|
3589
|
-
style: null,
|
3590
|
-
color: null
|
3591
|
-
},
|
3592
|
-
"border-bottom": {
|
3593
|
-
width: null,
|
3594
|
-
style: null,
|
3595
|
-
color: null
|
3596
|
-
},
|
3597
|
-
"border-left": {
|
3598
|
-
width: null,
|
3599
|
-
style: null,
|
3600
|
-
color: null
|
3601
|
-
},
|
3602
|
-
outline: {
|
3603
|
-
width: null,
|
3604
|
-
style: null,
|
3605
|
-
color: null
|
3606
|
-
},
|
3607
|
-
"list-style": {
|
3608
|
-
type: null,
|
3609
|
-
position: null,
|
3610
|
-
image: null
|
3611
|
-
},
|
3612
|
-
transition: {
|
3613
|
-
property: null,
|
3614
|
-
duration: null,
|
3615
|
-
"timing-function": null,
|
3616
|
-
timingFunction: null,
|
3617
|
-
// Needed for avoiding comilation issues with jss-plugin-camel-case
|
3618
|
-
delay: null
|
3619
|
-
},
|
3620
|
-
animation: {
|
3621
|
-
name: null,
|
3622
|
-
duration: null,
|
3623
|
-
"timing-function": null,
|
3624
|
-
timingFunction: null,
|
3625
|
-
// Needed to avoid compilation issues with jss-plugin-camel-case
|
3626
|
-
delay: null,
|
3627
|
-
"iteration-count": null,
|
3628
|
-
iterationCount: null,
|
3629
|
-
// Needed to avoid compilation issues with jss-plugin-camel-case
|
3630
|
-
direction: null,
|
3631
|
-
"fill-mode": null,
|
3632
|
-
fillMode: null,
|
3633
|
-
// Needed to avoid compilation issues with jss-plugin-camel-case
|
3634
|
-
"play-state": null,
|
3635
|
-
playState: null
|
3636
|
-
// Needed to avoid compilation issues with jss-plugin-camel-case
|
3637
|
-
},
|
3638
|
-
"box-shadow": {
|
3639
|
-
x: 0,
|
3640
|
-
y: 0,
|
3641
|
-
blur: 0,
|
3642
|
-
spread: 0,
|
3643
|
-
color: null,
|
3644
|
-
inset: null
|
3645
|
-
},
|
3646
|
-
"text-shadow": {
|
3647
|
-
x: 0,
|
3648
|
-
y: 0,
|
3649
|
-
blur: null,
|
3650
|
-
color: null
|
3651
|
-
}
|
3652
|
-
/**
|
3653
|
-
* A scheme for converting non-standart properties inside object.
|
3654
|
-
* For e.g.: include 'border-radius' property inside 'border' object.
|
3655
|
-
*/
|
3656
|
-
};
|
3657
|
-
var customPropObj = {
|
3658
|
-
border: {
|
3659
|
-
radius: "border-radius",
|
3660
|
-
image: "border-image",
|
3661
|
-
width: "border-width",
|
3662
|
-
style: "border-style",
|
3663
|
-
color: "border-color"
|
3664
|
-
},
|
3665
|
-
"border-bottom": {
|
3666
|
-
width: "border-bottom-width",
|
3667
|
-
style: "border-bottom-style",
|
3668
|
-
color: "border-bottom-color"
|
3669
|
-
},
|
3670
|
-
"border-top": {
|
3671
|
-
width: "border-top-width",
|
3672
|
-
style: "border-top-style",
|
3673
|
-
color: "border-top-color"
|
3674
|
-
},
|
3675
|
-
"border-left": {
|
3676
|
-
width: "border-left-width",
|
3677
|
-
style: "border-left-style",
|
3678
|
-
color: "border-left-color"
|
3679
|
-
},
|
3680
|
-
"border-right": {
|
3681
|
-
width: "border-right-width",
|
3682
|
-
style: "border-right-style",
|
3683
|
-
color: "border-right-color"
|
3684
|
-
},
|
3685
|
-
background: {
|
3686
|
-
size: "background-size",
|
3687
|
-
image: "background-image"
|
3688
|
-
},
|
3689
|
-
font: {
|
3690
|
-
style: "font-style",
|
3691
|
-
variant: "font-variant",
|
3692
|
-
weight: "font-weight",
|
3693
|
-
stretch: "font-stretch",
|
3694
|
-
size: "font-size",
|
3695
|
-
family: "font-family",
|
3696
|
-
lineHeight: "line-height",
|
3697
|
-
// Needed to avoid compilation issues with jss-plugin-camel-case
|
3698
|
-
"line-height": "line-height"
|
3699
|
-
},
|
3700
|
-
flex: {
|
3701
|
-
grow: "flex-grow",
|
3702
|
-
basis: "flex-basis",
|
3703
|
-
direction: "flex-direction",
|
3704
|
-
wrap: "flex-wrap",
|
3705
|
-
flow: "flex-flow",
|
3706
|
-
shrink: "flex-shrink"
|
3707
|
-
},
|
3708
|
-
align: {
|
3709
|
-
self: "align-self",
|
3710
|
-
items: "align-items",
|
3711
|
-
content: "align-content"
|
3712
|
-
},
|
3713
|
-
grid: {
|
3714
|
-
"template-columns": "grid-template-columns",
|
3715
|
-
templateColumns: "grid-template-columns",
|
3716
|
-
"template-rows": "grid-template-rows",
|
3717
|
-
templateRows: "grid-template-rows",
|
3718
|
-
"template-areas": "grid-template-areas",
|
3719
|
-
templateAreas: "grid-template-areas",
|
3720
|
-
template: "grid-template",
|
3721
|
-
"auto-columns": "grid-auto-columns",
|
3722
|
-
autoColumns: "grid-auto-columns",
|
3723
|
-
"auto-rows": "grid-auto-rows",
|
3724
|
-
autoRows: "grid-auto-rows",
|
3725
|
-
"auto-flow": "grid-auto-flow",
|
3726
|
-
autoFlow: "grid-auto-flow",
|
3727
|
-
row: "grid-row",
|
3728
|
-
column: "grid-column",
|
3729
|
-
"row-start": "grid-row-start",
|
3730
|
-
rowStart: "grid-row-start",
|
3731
|
-
"row-end": "grid-row-end",
|
3732
|
-
rowEnd: "grid-row-end",
|
3733
|
-
"column-start": "grid-column-start",
|
3734
|
-
columnStart: "grid-column-start",
|
3735
|
-
"column-end": "grid-column-end",
|
3736
|
-
columnEnd: "grid-column-end",
|
3737
|
-
area: "grid-area",
|
3738
|
-
gap: "grid-gap",
|
3739
|
-
"row-gap": "grid-row-gap",
|
3740
|
-
rowGap: "grid-row-gap",
|
3741
|
-
"column-gap": "grid-column-gap",
|
3742
|
-
columnGap: "grid-column-gap"
|
3743
|
-
}
|
3744
|
-
};
|
3745
|
-
function mapValuesByProp(value, prop, rule) {
|
3746
|
-
return value.map(function(item) {
|
3747
|
-
return objectToArray(item, prop, rule, false, true);
|
3748
|
-
});
|
3749
|
-
}
|
3750
|
-
function processArray(value, prop, scheme, rule) {
|
3751
|
-
if (scheme[prop] == null) return value;
|
3752
|
-
if (value.length === 0) return [];
|
3753
|
-
if (Array.isArray(value[0])) return processArray(value[0], prop, scheme, rule);
|
3754
|
-
if (typeof value[0] === "object") {
|
3755
|
-
return mapValuesByProp(value, prop, rule);
|
3756
|
-
}
|
3757
|
-
return [value];
|
3758
|
-
}
|
3759
|
-
function objectToArray(value, prop, rule, isFallback, isInArray) {
|
3760
|
-
if (!(propObj[prop] || customPropObj[prop])) return [];
|
3761
|
-
var result2 = [];
|
3762
|
-
if (customPropObj[prop]) {
|
3763
|
-
value = customPropsToStyle(value, rule, customPropObj[prop], isFallback);
|
3764
|
-
}
|
3765
|
-
if (Object.keys(value).length) {
|
3766
|
-
for (var baseProp in propObj[prop]) {
|
3767
|
-
if (value[baseProp]) {
|
3768
|
-
if (Array.isArray(value[baseProp])) {
|
3769
|
-
result2.push(propArrayInObj[baseProp] === null ? value[baseProp] : value[baseProp].join(" "));
|
3770
|
-
} else result2.push(value[baseProp]);
|
3771
|
-
continue;
|
3772
|
-
}
|
3773
|
-
if (propObj[prop][baseProp] != null) {
|
3774
|
-
result2.push(propObj[prop][baseProp]);
|
3775
|
-
}
|
3776
|
-
}
|
3777
|
-
}
|
3778
|
-
if (!result2.length || isInArray) return result2;
|
3779
|
-
return [result2];
|
3780
|
-
}
|
3781
|
-
function customPropsToStyle(value, rule, customProps, isFallback) {
|
3782
|
-
for (var prop in customProps) {
|
3783
|
-
var propName = customProps[prop];
|
3784
|
-
if (typeof value[prop] !== "undefined" && (isFallback || !rule.prop(propName))) {
|
3785
|
-
var _styleDetector;
|
3786
|
-
var appendedValue = styleDetector((_styleDetector = {}, _styleDetector[propName] = value[prop], _styleDetector), rule)[propName];
|
3787
|
-
if (isFallback) rule.style.fallbacks[propName] = appendedValue;
|
3788
|
-
else rule.style[propName] = appendedValue;
|
3789
|
-
}
|
3790
|
-
delete value[prop];
|
3791
|
-
}
|
3792
|
-
return value;
|
3793
|
-
}
|
3794
|
-
function styleDetector(style, rule, isFallback) {
|
3795
|
-
for (var prop in style) {
|
3796
|
-
var value = style[prop];
|
3797
|
-
if (Array.isArray(value)) {
|
3798
|
-
if (!Array.isArray(value[0])) {
|
3799
|
-
if (prop === "fallbacks") {
|
3800
|
-
for (var index4 = 0; index4 < style.fallbacks.length; index4++) {
|
3801
|
-
style.fallbacks[index4] = styleDetector(style.fallbacks[index4], rule, true);
|
3802
|
-
}
|
3803
|
-
continue;
|
3804
|
-
}
|
3805
|
-
style[prop] = processArray(value, prop, propArray, rule);
|
3806
|
-
if (!style[prop].length) delete style[prop];
|
3807
|
-
}
|
3808
|
-
} else if (typeof value === "object") {
|
3809
|
-
if (prop === "fallbacks") {
|
3810
|
-
style.fallbacks = styleDetector(style.fallbacks, rule, true);
|
3811
|
-
continue;
|
3812
|
-
}
|
3813
|
-
style[prop] = objectToArray(value, prop, rule, isFallback);
|
3814
|
-
if (!style[prop].length) delete style[prop];
|
3815
|
-
} else if (style[prop] === "") delete style[prop];
|
3816
|
-
}
|
3817
|
-
return style;
|
3818
|
-
}
|
3819
|
-
function jssExpand() {
|
3820
|
-
function onProcessStyle2(style, rule) {
|
3821
|
-
if (!style || rule.type !== "style") return style;
|
3822
|
-
if (Array.isArray(style)) {
|
3823
|
-
for (var index4 = 0; index4 < style.length; index4++) {
|
3824
|
-
style[index4] = styleDetector(style[index4], rule);
|
3825
|
-
}
|
3826
|
-
return style;
|
3827
|
-
}
|
3828
|
-
return styleDetector(style, rule);
|
3829
|
-
}
|
3830
|
-
return {
|
3831
|
-
onProcessStyle: onProcessStyle2
|
3832
|
-
};
|
3833
|
-
}
|
3834
|
-
var jss_plugin_expand_esm_default = jssExpand;
|
3835
|
-
|
3836
|
-
// ../../node_modules/@babel/runtime/helpers/esm/arrayLikeToArray.js
|
3837
|
-
function _arrayLikeToArray(r2, a) {
|
3838
|
-
(null == a || a > r2.length) && (a = r2.length);
|
3839
|
-
for (var e = 0, n = Array(a); e < a; e++) n[e] = r2[e];
|
3840
|
-
return n;
|
3841
|
-
}
|
3842
|
-
|
3843
|
-
// ../../node_modules/@babel/runtime/helpers/esm/arrayWithoutHoles.js
|
3844
|
-
function _arrayWithoutHoles(r2) {
|
3845
|
-
if (Array.isArray(r2)) return _arrayLikeToArray(r2);
|
3846
|
-
}
|
3847
|
-
|
3848
|
-
// ../../node_modules/@babel/runtime/helpers/esm/iterableToArray.js
|
3849
|
-
function _iterableToArray(r2) {
|
3850
|
-
if ("undefined" != typeof Symbol && null != r2[Symbol.iterator] || null != r2["@@iterator"]) return Array.from(r2);
|
3851
|
-
}
|
3852
|
-
|
3853
|
-
// ../../node_modules/@babel/runtime/helpers/esm/unsupportedIterableToArray.js
|
3854
|
-
function _unsupportedIterableToArray(r2, a) {
|
3855
|
-
if (r2) {
|
3856
|
-
if ("string" == typeof r2) return _arrayLikeToArray(r2, a);
|
3857
|
-
var t = {}.toString.call(r2).slice(8, -1);
|
3858
|
-
return "Object" === t && r2.constructor && (t = r2.constructor.name), "Map" === t || "Set" === t ? Array.from(r2) : "Arguments" === t || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t) ? _arrayLikeToArray(r2, a) : void 0;
|
3859
|
-
}
|
3860
|
-
}
|
3861
|
-
|
3862
|
-
// ../../node_modules/@babel/runtime/helpers/esm/nonIterableSpread.js
|
3863
|
-
function _nonIterableSpread() {
|
3864
|
-
throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
|
3865
|
-
}
|
3866
|
-
|
3867
|
-
// ../../node_modules/@babel/runtime/helpers/esm/toConsumableArray.js
|
3868
|
-
function _toConsumableArray(r2) {
|
3869
|
-
return _arrayWithoutHoles(r2) || _iterableToArray(r2) || _unsupportedIterableToArray(r2) || _nonIterableSpread();
|
3870
|
-
}
|
3871
|
-
|
3872
|
-
// ../../node_modules/css-vendor/dist/css-vendor.esm.js
|
3873
|
-
var js = "";
|
3874
|
-
var css = "";
|
3875
|
-
var vendor = "";
|
3876
|
-
var browser = "";
|
3877
|
-
var isTouch = module_default && "ontouchstart" in document.documentElement;
|
3878
|
-
if (module_default) {
|
3879
|
-
jsCssMap = {
|
3880
|
-
Moz: "-moz-",
|
3881
|
-
ms: "-ms-",
|
3882
|
-
O: "-o-",
|
3883
|
-
Webkit: "-webkit-"
|
3884
|
-
};
|
3885
|
-
_document$createEleme = document.createElement("p"), style = _document$createEleme.style;
|
3886
|
-
testProp = "Transform";
|
3887
|
-
for (key in jsCssMap) {
|
3888
|
-
if (key + testProp in style) {
|
3889
|
-
js = key;
|
3890
|
-
css = jsCssMap[key];
|
3891
|
-
break;
|
3892
|
-
}
|
3893
|
-
}
|
3894
|
-
if (js === "Webkit" && "msHyphens" in style) {
|
3895
|
-
js = "ms";
|
3896
|
-
css = jsCssMap.ms;
|
3897
|
-
browser = "edge";
|
3898
|
-
}
|
3899
|
-
if (js === "Webkit" && "-apple-trailing-word" in style) {
|
3900
|
-
vendor = "apple";
|
3901
|
-
}
|
3902
|
-
}
|
3903
|
-
var jsCssMap;
|
3904
|
-
var _document$createEleme;
|
3905
|
-
var style;
|
3906
|
-
var testProp;
|
3907
|
-
var key;
|
3908
|
-
var prefix = {
|
3909
|
-
js,
|
3910
|
-
css,
|
3911
|
-
vendor,
|
3912
|
-
browser,
|
3913
|
-
isTouch
|
3914
|
-
};
|
3915
|
-
function supportedKeyframes(key) {
|
3916
|
-
if (key[1] === "-") return key;
|
3917
|
-
if (prefix.js === "ms") return key;
|
3918
|
-
return "@" + prefix.css + "keyframes" + key.substr(10);
|
3919
|
-
}
|
3920
|
-
var appearence = {
|
3921
|
-
noPrefill: ["appearance"],
|
3922
|
-
supportedProperty: function supportedProperty(prop) {
|
3923
|
-
if (prop !== "appearance") return false;
|
3924
|
-
if (prefix.js === "ms") return "-webkit-" + prop;
|
3925
|
-
return prefix.css + prop;
|
3926
|
-
}
|
3927
|
-
};
|
3928
|
-
var colorAdjust = {
|
3929
|
-
noPrefill: ["color-adjust"],
|
3930
|
-
supportedProperty: function supportedProperty2(prop) {
|
3931
|
-
if (prop !== "color-adjust") return false;
|
3932
|
-
if (prefix.js === "Webkit") return prefix.css + "print-" + prop;
|
3933
|
-
return prop;
|
3934
|
-
}
|
3935
|
-
};
|
3936
|
-
var regExp = /[-\s]+(.)?/g;
|
3937
|
-
function toUpper(match, c) {
|
3938
|
-
return c ? c.toUpperCase() : "";
|
3939
|
-
}
|
3940
|
-
function camelize(str) {
|
3941
|
-
return str.replace(regExp, toUpper);
|
3942
|
-
}
|
3943
|
-
function pascalize(str) {
|
3944
|
-
return camelize("-" + str);
|
3945
|
-
}
|
3946
|
-
var mask = {
|
3947
|
-
noPrefill: ["mask"],
|
3948
|
-
supportedProperty: function supportedProperty3(prop, style) {
|
3949
|
-
if (!/^mask/.test(prop)) return false;
|
3950
|
-
if (prefix.js === "Webkit") {
|
3951
|
-
var longhand = "mask-image";
|
3952
|
-
if (camelize(longhand) in style) {
|
3953
|
-
return prop;
|
3954
|
-
}
|
3955
|
-
if (prefix.js + pascalize(longhand) in style) {
|
3956
|
-
return prefix.css + prop;
|
3957
|
-
}
|
3958
|
-
}
|
3959
|
-
return prop;
|
3960
|
-
}
|
3961
|
-
};
|
3962
|
-
var textOrientation = {
|
3963
|
-
noPrefill: ["text-orientation"],
|
3964
|
-
supportedProperty: function supportedProperty4(prop) {
|
3965
|
-
if (prop !== "text-orientation") return false;
|
3966
|
-
if (prefix.vendor === "apple" && !prefix.isTouch) {
|
3967
|
-
return prefix.css + prop;
|
3968
|
-
}
|
3969
|
-
return prop;
|
3970
|
-
}
|
3971
|
-
};
|
3972
|
-
var transform = {
|
3973
|
-
noPrefill: ["transform"],
|
3974
|
-
supportedProperty: function supportedProperty5(prop, style, options) {
|
3975
|
-
if (prop !== "transform") return false;
|
3976
|
-
if (options.transform) {
|
3977
|
-
return prop;
|
3978
|
-
}
|
3979
|
-
return prefix.css + prop;
|
3980
|
-
}
|
3981
|
-
};
|
3982
|
-
var transition = {
|
3983
|
-
noPrefill: ["transition"],
|
3984
|
-
supportedProperty: function supportedProperty6(prop, style, options) {
|
3985
|
-
if (prop !== "transition") return false;
|
3986
|
-
if (options.transition) {
|
3987
|
-
return prop;
|
3988
|
-
}
|
3989
|
-
return prefix.css + prop;
|
3990
|
-
}
|
3991
|
-
};
|
3992
|
-
var writingMode = {
|
3993
|
-
noPrefill: ["writing-mode"],
|
3994
|
-
supportedProperty: function supportedProperty7(prop) {
|
3995
|
-
if (prop !== "writing-mode") return false;
|
3996
|
-
if (prefix.js === "Webkit" || prefix.js === "ms" && prefix.browser !== "edge") {
|
3997
|
-
return prefix.css + prop;
|
3998
|
-
}
|
3999
|
-
return prop;
|
4000
|
-
}
|
4001
|
-
};
|
4002
|
-
var userSelect = {
|
4003
|
-
noPrefill: ["user-select"],
|
4004
|
-
supportedProperty: function supportedProperty8(prop) {
|
4005
|
-
if (prop !== "user-select") return false;
|
4006
|
-
if (prefix.js === "Moz" || prefix.js === "ms" || prefix.vendor === "apple") {
|
4007
|
-
return prefix.css + prop;
|
4008
|
-
}
|
4009
|
-
return prop;
|
4010
|
-
}
|
4011
|
-
};
|
4012
|
-
var breakPropsOld = {
|
4013
|
-
supportedProperty: function supportedProperty9(prop, style) {
|
4014
|
-
if (!/^break-/.test(prop)) return false;
|
4015
|
-
if (prefix.js === "Webkit") {
|
4016
|
-
var jsProp = "WebkitColumn" + pascalize(prop);
|
4017
|
-
return jsProp in style ? prefix.css + "column-" + prop : false;
|
4018
|
-
}
|
4019
|
-
if (prefix.js === "Moz") {
|
4020
|
-
var _jsProp = "page" + pascalize(prop);
|
4021
|
-
return _jsProp in style ? "page-" + prop : false;
|
4022
|
-
}
|
4023
|
-
return false;
|
4024
|
-
}
|
4025
|
-
};
|
4026
|
-
var inlineLogicalOld = {
|
4027
|
-
supportedProperty: function supportedProperty10(prop, style) {
|
4028
|
-
if (!/^(border|margin|padding)-inline/.test(prop)) return false;
|
4029
|
-
if (prefix.js === "Moz") return prop;
|
4030
|
-
var newProp = prop.replace("-inline", "");
|
4031
|
-
return prefix.js + pascalize(newProp) in style ? prefix.css + newProp : false;
|
4032
|
-
}
|
4033
|
-
};
|
4034
|
-
var unprefixed = {
|
4035
|
-
supportedProperty: function supportedProperty11(prop, style) {
|
4036
|
-
return camelize(prop) in style ? prop : false;
|
4037
|
-
}
|
4038
|
-
};
|
4039
|
-
var prefixed = {
|
4040
|
-
supportedProperty: function supportedProperty12(prop, style) {
|
4041
|
-
var pascalized = pascalize(prop);
|
4042
|
-
if (prop[0] === "-") return prop;
|
4043
|
-
if (prop[0] === "-" && prop[1] === "-") return prop;
|
4044
|
-
if (prefix.js + pascalized in style) return prefix.css + prop;
|
4045
|
-
if (prefix.js !== "Webkit" && "Webkit" + pascalized in style) return "-webkit-" + prop;
|
4046
|
-
return false;
|
4047
|
-
}
|
4048
|
-
};
|
4049
|
-
var scrollSnap = {
|
4050
|
-
supportedProperty: function supportedProperty13(prop) {
|
4051
|
-
if (prop.substring(0, 11) !== "scroll-snap") return false;
|
4052
|
-
if (prefix.js === "ms") {
|
4053
|
-
return "" + prefix.css + prop;
|
4054
|
-
}
|
4055
|
-
return prop;
|
4056
|
-
}
|
4057
|
-
};
|
4058
|
-
var overscrollBehavior = {
|
4059
|
-
supportedProperty: function supportedProperty14(prop) {
|
4060
|
-
if (prop !== "overscroll-behavior") return false;
|
4061
|
-
if (prefix.js === "ms") {
|
4062
|
-
return prefix.css + "scroll-chaining";
|
4063
|
-
}
|
4064
|
-
return prop;
|
4065
|
-
}
|
4066
|
-
};
|
4067
|
-
var propMap = {
|
4068
|
-
"flex-grow": "flex-positive",
|
4069
|
-
"flex-shrink": "flex-negative",
|
4070
|
-
"flex-basis": "flex-preferred-size",
|
4071
|
-
"justify-content": "flex-pack",
|
4072
|
-
order: "flex-order",
|
4073
|
-
"align-items": "flex-align",
|
4074
|
-
"align-content": "flex-line-pack"
|
4075
|
-
// 'align-self' is handled by 'align-self' plugin.
|
4076
|
-
};
|
4077
|
-
var flex2012 = {
|
4078
|
-
supportedProperty: function supportedProperty15(prop, style) {
|
4079
|
-
var newProp = propMap[prop];
|
4080
|
-
if (!newProp) return false;
|
4081
|
-
return prefix.js + pascalize(newProp) in style ? prefix.css + newProp : false;
|
4082
|
-
}
|
4083
|
-
};
|
4084
|
-
var propMap$1 = {
|
4085
|
-
flex: "box-flex",
|
4086
|
-
"flex-grow": "box-flex",
|
4087
|
-
"flex-direction": ["box-orient", "box-direction"],
|
4088
|
-
order: "box-ordinal-group",
|
4089
|
-
"align-items": "box-align",
|
4090
|
-
"flex-flow": ["box-orient", "box-direction"],
|
4091
|
-
"justify-content": "box-pack"
|
4092
|
-
};
|
4093
|
-
var propKeys = Object.keys(propMap$1);
|
4094
|
-
var prefixCss = function prefixCss2(p) {
|
4095
|
-
return prefix.css + p;
|
4096
|
-
};
|
4097
|
-
var flex2009 = {
|
4098
|
-
supportedProperty: function supportedProperty16(prop, style, _ref) {
|
4099
|
-
var multiple = _ref.multiple;
|
4100
|
-
if (propKeys.indexOf(prop) > -1) {
|
4101
|
-
var newProp = propMap$1[prop];
|
4102
|
-
if (!Array.isArray(newProp)) {
|
4103
|
-
return prefix.js + pascalize(newProp) in style ? prefix.css + newProp : false;
|
4104
|
-
}
|
4105
|
-
if (!multiple) return false;
|
4106
|
-
for (var i = 0; i < newProp.length; i++) {
|
4107
|
-
if (!(prefix.js + pascalize(newProp[0]) in style)) {
|
4108
|
-
return false;
|
4109
|
-
}
|
4110
|
-
}
|
4111
|
-
return newProp.map(prefixCss);
|
4112
|
-
}
|
4113
|
-
return false;
|
4114
|
-
}
|
4115
|
-
};
|
4116
|
-
var plugins2 = [appearence, colorAdjust, mask, textOrientation, transform, transition, writingMode, userSelect, breakPropsOld, inlineLogicalOld, unprefixed, prefixed, scrollSnap, overscrollBehavior, flex2012, flex2009];
|
4117
|
-
var propertyDetectors = plugins2.filter(function(p) {
|
4118
|
-
return p.supportedProperty;
|
4119
|
-
}).map(function(p) {
|
4120
|
-
return p.supportedProperty;
|
4121
|
-
});
|
4122
|
-
var noPrefill = plugins2.filter(function(p) {
|
4123
|
-
return p.noPrefill;
|
4124
|
-
}).reduce(function(a, p) {
|
4125
|
-
a.push.apply(a, _toConsumableArray(p.noPrefill));
|
4126
|
-
return a;
|
4127
|
-
}, []);
|
4128
|
-
var el;
|
4129
|
-
var cache2 = {};
|
4130
|
-
if (module_default) {
|
4131
|
-
el = document.createElement("p");
|
4132
|
-
computed = window.getComputedStyle(document.documentElement, "");
|
4133
|
-
for (key$1 in computed) {
|
4134
|
-
if (!isNaN(key$1)) cache2[computed[key$1]] = computed[key$1];
|
4135
|
-
}
|
4136
|
-
noPrefill.forEach(function(x) {
|
4137
|
-
return delete cache2[x];
|
4138
|
-
});
|
4139
|
-
}
|
4140
|
-
var computed;
|
4141
|
-
var key$1;
|
4142
|
-
function supportedProperty17(prop, options) {
|
4143
|
-
if (options === void 0) {
|
4144
|
-
options = {};
|
4145
|
-
}
|
4146
|
-
if (!el) return prop;
|
4147
|
-
if (process.env.NODE_ENV !== "benchmark" && cache2[prop] != null) {
|
4148
|
-
return cache2[prop];
|
4149
|
-
}
|
4150
|
-
if (prop === "transition" || prop === "transform") {
|
4151
|
-
options[prop] = prop in el.style;
|
4152
|
-
}
|
4153
|
-
for (var i = 0; i < propertyDetectors.length; i++) {
|
4154
|
-
cache2[prop] = propertyDetectors[i](prop, el.style, options);
|
4155
|
-
if (cache2[prop]) break;
|
4156
|
-
}
|
4157
|
-
try {
|
4158
|
-
el.style[prop] = "";
|
4159
|
-
} catch (err) {
|
4160
|
-
return false;
|
4161
|
-
}
|
4162
|
-
return cache2[prop];
|
4163
|
-
}
|
4164
|
-
var cache$1 = {};
|
4165
|
-
var transitionProperties = {
|
4166
|
-
transition: 1,
|
4167
|
-
"transition-property": 1,
|
4168
|
-
"-webkit-transition": 1,
|
4169
|
-
"-webkit-transition-property": 1
|
4170
|
-
};
|
4171
|
-
var transPropsRegExp = /(^\s*[\w-]+)|, (\s*[\w-]+)(?![^()]*\))/g;
|
4172
|
-
var el$1;
|
4173
|
-
function prefixTransitionCallback(match, p1, p2) {
|
4174
|
-
if (p1 === "var") return "var";
|
4175
|
-
if (p1 === "all") return "all";
|
4176
|
-
if (p2 === "all") return ", all";
|
4177
|
-
var prefixedValue = p1 ? supportedProperty17(p1) : ", " + supportedProperty17(p2);
|
4178
|
-
if (!prefixedValue) return p1 || p2;
|
4179
|
-
return prefixedValue;
|
4180
|
-
}
|
4181
|
-
if (module_default) el$1 = document.createElement("p");
|
4182
|
-
function supportedValue(property, value) {
|
4183
|
-
var prefixedValue = value;
|
4184
|
-
if (!el$1 || property === "content") return value;
|
4185
|
-
if (typeof prefixedValue !== "string" || !isNaN(parseInt(prefixedValue, 10))) {
|
4186
|
-
return prefixedValue;
|
4187
|
-
}
|
4188
|
-
var cacheKey = property + prefixedValue;
|
4189
|
-
if (process.env.NODE_ENV !== "benchmark" && cache$1[cacheKey] != null) {
|
4190
|
-
return cache$1[cacheKey];
|
4191
|
-
}
|
4192
|
-
try {
|
4193
|
-
el$1.style[property] = prefixedValue;
|
4194
|
-
} catch (err) {
|
4195
|
-
cache$1[cacheKey] = false;
|
4196
|
-
return false;
|
4197
|
-
}
|
4198
|
-
if (transitionProperties[property]) {
|
4199
|
-
prefixedValue = prefixedValue.replace(transPropsRegExp, prefixTransitionCallback);
|
4200
|
-
} else if (el$1.style[property] === "") {
|
4201
|
-
prefixedValue = prefix.css + prefixedValue;
|
4202
|
-
if (prefixedValue === "-ms-flex") el$1.style[property] = "-ms-flexbox";
|
4203
|
-
el$1.style[property] = prefixedValue;
|
4204
|
-
if (el$1.style[property] === "") {
|
4205
|
-
cache$1[cacheKey] = false;
|
4206
|
-
return false;
|
4207
|
-
}
|
4208
|
-
}
|
4209
|
-
el$1.style[property] = "";
|
4210
|
-
cache$1[cacheKey] = prefixedValue;
|
4211
|
-
return cache$1[cacheKey];
|
4212
|
-
}
|
4213
|
-
|
4214
|
-
// ../../node_modules/jss-plugin-vendor-prefixer/dist/jss-plugin-vendor-prefixer.esm.js
|
4215
|
-
function jssVendorPrefixer() {
|
4216
|
-
function onProcessRule3(rule) {
|
4217
|
-
if (rule.type === "keyframes") {
|
4218
|
-
var atRule = rule;
|
4219
|
-
atRule.at = supportedKeyframes(atRule.at);
|
4220
|
-
}
|
4221
|
-
}
|
4222
|
-
function prefixStyle(style) {
|
4223
|
-
for (var prop in style) {
|
4224
|
-
var value = style[prop];
|
4225
|
-
if (prop === "fallbacks" && Array.isArray(value)) {
|
4226
|
-
style[prop] = value.map(prefixStyle);
|
4227
|
-
continue;
|
4228
|
-
}
|
4229
|
-
var changeProp = false;
|
4230
|
-
var supportedProp = supportedProperty17(prop);
|
4231
|
-
if (supportedProp && supportedProp !== prop) changeProp = true;
|
4232
|
-
var changeValue = false;
|
4233
|
-
var supportedValue$1 = supportedValue(supportedProp, toCssValue(value));
|
4234
|
-
if (supportedValue$1 && supportedValue$1 !== value) changeValue = true;
|
4235
|
-
if (changeProp || changeValue) {
|
4236
|
-
if (changeProp) delete style[prop];
|
4237
|
-
style[supportedProp || prop] = supportedValue$1 || value;
|
4238
|
-
}
|
4239
|
-
}
|
4240
|
-
return style;
|
4241
|
-
}
|
4242
|
-
function onProcessStyle2(style, rule) {
|
4243
|
-
if (rule.type !== "style") return style;
|
4244
|
-
return prefixStyle(style);
|
4245
|
-
}
|
4246
|
-
function onChangeValue2(value, prop) {
|
4247
|
-
return supportedValue(prop, toCssValue(value)) || value;
|
4248
|
-
}
|
4249
|
-
return {
|
4250
|
-
onProcessRule: onProcessRule3,
|
4251
|
-
onProcessStyle: onProcessStyle2,
|
4252
|
-
onChangeValue: onChangeValue2
|
4253
|
-
};
|
4254
|
-
}
|
4255
|
-
var jss_plugin_vendor_prefixer_esm_default = jssVendorPrefixer;
|
4256
|
-
|
4257
|
-
// ../../node_modules/jss-plugin-props-sort/dist/jss-plugin-props-sort.esm.js
|
4258
|
-
function jssPropsSort() {
|
4259
|
-
var sort = function sort2(prop0, prop1) {
|
4260
|
-
if (prop0.length === prop1.length) {
|
4261
|
-
return prop0 > prop1 ? 1 : -1;
|
4262
|
-
}
|
4263
|
-
return prop0.length - prop1.length;
|
4264
|
-
};
|
4265
|
-
return {
|
4266
|
-
onProcessStyle: function onProcessStyle2(style, rule) {
|
4267
|
-
if (rule.type !== "style") return style;
|
4268
|
-
var newStyle = {};
|
4269
|
-
var props = Object.keys(style).sort(sort);
|
4270
|
-
for (var i = 0; i < props.length; i++) {
|
4271
|
-
newStyle[props[i]] = style[props[i]];
|
4272
|
-
}
|
4273
|
-
return newStyle;
|
4274
|
-
}
|
4275
|
-
};
|
4276
|
-
}
|
4277
|
-
var jss_plugin_props_sort_esm_default = jssPropsSort;
|
4278
|
-
|
4279
|
-
// ../../node_modules/jss-preset-default/dist/jss-preset-default.esm.js
|
4280
|
-
var create = function create2(options) {
|
4281
|
-
if (options === void 0) {
|
4282
|
-
options = {};
|
4283
|
-
}
|
4284
|
-
return {
|
4285
|
-
plugins: [jss_plugin_rule_value_function_esm_default(), jss_plugin_rule_value_observable_esm_default(options.observable), jss_plugin_template_esm_default(), jss_plugin_global_esm_default(), jss_plugin_extend_esm_default(), jss_plugin_nested_esm_default(), jss_plugin_compose_esm_default(), jss_plugin_camel_case_esm_default(), jss_plugin_default_unit_esm_default(options.defaultUnit), jss_plugin_expand_esm_default(), jss_plugin_vendor_prefixer_esm_default(), jss_plugin_props_sort_esm_default()]
|
4286
|
-
};
|
4287
|
-
};
|
4288
|
-
var jss_preset_default_esm_default = create;
|
4289
|
-
|
4290
|
-
// ../../node_modules/@emotion/memoize/dist/memoize.esm.js
|
4291
|
-
function memoize3(fn) {
|
4292
|
-
var cache3 = {};
|
4293
|
-
return function(arg) {
|
4294
|
-
if (cache3[arg] === void 0) cache3[arg] = fn(arg);
|
4295
|
-
return cache3[arg];
|
4296
|
-
};
|
4297
|
-
}
|
4298
|
-
var memoize_esm_default = memoize3;
|
4299
|
-
|
4300
|
-
// ../../node_modules/@emotion/is-prop-valid/dist/is-prop-valid.esm.js
|
4301
|
-
var reactPropsRegex = /^((children|dangerouslySetInnerHTML|key|ref|autoFocus|defaultValue|defaultChecked|innerHTML|suppressContentEditableWarning|suppressHydrationWarning|valueLink|accept|acceptCharset|accessKey|action|allow|allowUserMedia|allowPaymentRequest|allowFullScreen|allowTransparency|alt|async|autoComplete|autoPlay|capture|cellPadding|cellSpacing|challenge|charSet|checked|cite|classID|className|cols|colSpan|content|contentEditable|contextMenu|controls|controlsList|coords|crossOrigin|data|dateTime|default|defer|dir|disabled|download|draggable|encType|form|formAction|formEncType|formMethod|formNoValidate|formTarget|frameBorder|headers|height|hidden|high|href|hrefLang|htmlFor|httpEquiv|id|inputMode|integrity|is|keyParams|keyType|kind|label|lang|list|loop|low|marginHeight|marginWidth|max|maxLength|media|mediaGroup|method|min|minLength|multiple|muted|name|nonce|noValidate|open|optimum|pattern|placeholder|playsInline|poster|preload|profile|radioGroup|readOnly|referrerPolicy|rel|required|reversed|role|rows|rowSpan|sandbox|scope|scoped|scrolling|seamless|selected|shape|size|sizes|slot|span|spellCheck|src|srcDoc|srcLang|srcSet|start|step|style|summary|tabIndex|target|title|type|useMap|value|width|wmode|wrap|about|datatype|inlist|prefix|property|resource|typeof|vocab|autoCapitalize|autoCorrect|autoSave|color|itemProp|itemScope|itemType|itemID|itemRef|results|security|unselectable|accentHeight|accumulate|additive|alignmentBaseline|allowReorder|alphabetic|amplitude|arabicForm|ascent|attributeName|attributeType|autoReverse|azimuth|baseFrequency|baselineShift|baseProfile|bbox|begin|bias|by|calcMode|capHeight|clip|clipPathUnits|clipPath|clipRule|colorInterpolation|colorInterpolationFilters|colorProfile|colorRendering|contentScriptType|contentStyleType|cursor|cx|cy|d|decelerate|descent|diffuseConstant|direction|display|divisor|dominantBaseline|dur|dx|dy|edgeMode|elevation|enableBackground|end|exponent|externalResourcesRequired|fill|fillOpacity|fillRule|filter|filterRes|filterUnits|floodColor|floodOpacity|focusable|fontFamily|fontSize|fontSizeAdjust|fontStretch|fontStyle|fontVariant|fontWeight|format|from|fr|fx|fy|g1|g2|glyphName|glyphOrientationHorizontal|glyphOrientationVertical|glyphRef|gradientTransform|gradientUnits|hanging|horizAdvX|horizOriginX|ideographic|imageRendering|in|in2|intercept|k|k1|k2|k3|k4|kernelMatrix|kernelUnitLength|kerning|keyPoints|keySplines|keyTimes|lengthAdjust|letterSpacing|lightingColor|limitingConeAngle|local|markerEnd|markerMid|markerStart|markerHeight|markerUnits|markerWidth|mask|maskContentUnits|maskUnits|mathematical|mode|numOctaves|offset|opacity|operator|order|orient|orientation|origin|overflow|overlinePosition|overlineThickness|panose1|paintOrder|pathLength|patternContentUnits|patternTransform|patternUnits|pointerEvents|points|pointsAtX|pointsAtY|pointsAtZ|preserveAlpha|preserveAspectRatio|primitiveUnits|r|radius|refX|refY|renderingIntent|repeatCount|repeatDur|requiredExtensions|requiredFeatures|restart|result|rotate|rx|ry|scale|seed|shapeRendering|slope|spacing|specularConstant|specularExponent|speed|spreadMethod|startOffset|stdDeviation|stemh|stemv|stitchTiles|stopColor|stopOpacity|strikethroughPosition|strikethroughThickness|string|stroke|strokeDasharray|strokeDashoffset|strokeLinecap|strokeLinejoin|strokeMiterlimit|strokeOpacity|strokeWidth|surfaceScale|systemLanguage|tableValues|targetX|targetY|textAnchor|textDecoration|textRendering|textLength|to|transform|u1|u2|underlinePosition|underlineThickness|unicode|unicodeBidi|unicodeRange|unitsPerEm|vAlphabetic|vHanging|vIdeographic|vMathematical|values|vectorEffect|version|vertAdvY|vertOriginX|vertOriginY|viewBox|viewTarget|visibility|widths|wordSpacing|writingMode|x|xHeight|x1|x2|xChannelSelector|xlinkActuate|xlinkArcrole|xlinkHref|xlinkRole|xlinkShow|xlinkTitle|xlinkType|xmlBase|xmlns|xmlnsXlink|xmlLang|xmlSpace|y|y1|y2|yChannelSelector|z|zoomAndPan|for|class|autofocus)|(([Dd][Aa][Tt][Aa]|[Aa][Rr][Ii][Aa]|x)-.*))$/;
|
4302
|
-
var index2 = memoize_esm_default(
|
4303
|
-
function(prop) {
|
4304
|
-
return reactPropsRegex.test(prop) || prop.charCodeAt(0) === 111 && prop.charCodeAt(1) === 110 && prop.charCodeAt(2) < 91;
|
4305
|
-
}
|
4306
|
-
/* Z+1 */
|
4307
|
-
);
|
4308
|
-
|
4309
|
-
// ../../node_modules/css-jss/dist/css-jss.esm.js
|
4310
|
-
var MAX_RULES_PER_SHEET = 1e4;
|
4311
|
-
var defaultJss = createJss(jss_preset_default_esm_default());
|
4312
|
-
var createCss = function createCss2(jss) {
|
4313
|
-
if (jss === void 0) {
|
4314
|
-
jss = defaultJss;
|
4315
|
-
}
|
4316
|
-
var cache3 = /* @__PURE__ */ new Map();
|
4317
|
-
var ruleIndex = 0;
|
4318
|
-
var sheet;
|
4319
|
-
var getSheet = function getSheet2() {
|
4320
|
-
if (!sheet || sheet.rules.index.length > MAX_RULES_PER_SHEET) {
|
4321
|
-
sheet = jss.createStyleSheet().attach();
|
4322
|
-
}
|
4323
|
-
return sheet;
|
4324
|
-
};
|
4325
|
-
function css3() {
|
4326
|
-
var args = arguments;
|
4327
|
-
var argsStr = JSON.stringify(args);
|
4328
|
-
var cached = cache3.get(argsStr);
|
4329
|
-
if (cached) return cached.className;
|
4330
|
-
var flatArgs = [];
|
4331
|
-
for (var argIndex in args) {
|
4332
|
-
var arg = args[argIndex];
|
4333
|
-
if (!Array.isArray(arg)) {
|
4334
|
-
flatArgs.push(arg);
|
4335
|
-
continue;
|
4336
|
-
}
|
4337
|
-
for (var innerArgIndex = 0; innerArgIndex < arg.length; innerArgIndex++) {
|
4338
|
-
flatArgs.push(arg[innerArgIndex]);
|
4339
|
-
}
|
4340
|
-
}
|
4341
|
-
var mergedStyle = {};
|
4342
|
-
var labels = [];
|
4343
|
-
for (var i = 0; i < flatArgs.length; i++) {
|
4344
|
-
var style = flatArgs[i];
|
4345
|
-
if (!style) continue;
|
4346
|
-
var styleObject = style;
|
4347
|
-
if (typeof style === "string") {
|
4348
|
-
var _cached = cache3.get(style);
|
4349
|
-
if (_cached) {
|
4350
|
-
if (_cached.labels.length) labels.push.apply(labels, _cached.labels);
|
4351
|
-
styleObject = _cached.style;
|
4352
|
-
}
|
4353
|
-
}
|
4354
|
-
if (styleObject.label && labels.indexOf(styleObject.label) === -1) labels.push(styleObject.label);
|
4355
|
-
Object.assign(mergedStyle, styleObject);
|
4356
|
-
}
|
4357
|
-
delete mergedStyle.label;
|
4358
|
-
var label = labels.length === 0 ? "css" : labels.join("-");
|
4359
|
-
var key = label + "-" + ruleIndex++;
|
4360
|
-
getSheet().addRule(key, mergedStyle);
|
4361
|
-
var className = getSheet().classes[key];
|
4362
|
-
var cacheValue = {
|
4363
|
-
style: mergedStyle,
|
4364
|
-
labels,
|
4365
|
-
className
|
4366
|
-
};
|
4367
|
-
cache3.set(argsStr, cacheValue);
|
4368
|
-
cache3.set(className, cacheValue);
|
4369
|
-
return className;
|
4370
|
-
}
|
4371
|
-
css3.getSheet = getSheet;
|
4372
|
-
return css3;
|
4373
|
-
};
|
4374
|
-
var css2 = createCss();
|
4375
|
-
var css_jss_esm_default = css2;
|
4376
|
-
|
4377
|
-
// ../../node_modules/react-jss/dist/react-jss.esm.js
|
4378
|
-
var index3 = Number.MIN_SAFE_INTEGER || -1e9;
|
4379
|
-
var getSheetIndex = function getSheetIndex2() {
|
4380
|
-
return index3++;
|
4381
|
-
};
|
4382
|
-
var JssContext = (0, import_react2.createContext)({
|
4383
|
-
classNamePrefix: "",
|
4384
|
-
disableStylesGeneration: false,
|
4385
|
-
isSSR: !module_default
|
4386
|
-
});
|
4387
|
-
var defaultManagers = /* @__PURE__ */ new Map();
|
4388
|
-
var getManager = function getManager2(context, managerId) {
|
4389
|
-
var managers = context.managers;
|
4390
|
-
if (managers) {
|
4391
|
-
if (!managers[managerId]) {
|
4392
|
-
managers[managerId] = new SheetsManager();
|
4393
|
-
}
|
4394
|
-
return managers[managerId];
|
4395
|
-
}
|
4396
|
-
var manager = defaultManagers.get(managerId);
|
4397
|
-
if (!manager) {
|
4398
|
-
manager = new SheetsManager();
|
4399
|
-
defaultManagers.set(managerId, manager);
|
4400
|
-
}
|
4401
|
-
return manager;
|
4402
|
-
};
|
4403
|
-
var manageSheet = function manageSheet2(options) {
|
4404
|
-
var sheet = options.sheet, context = options.context, index4 = options.index, theme = options.theme;
|
4405
|
-
if (!sheet) {
|
4406
|
-
return;
|
4407
|
-
}
|
4408
|
-
var manager = getManager(context, index4);
|
4409
|
-
manager.manage(theme);
|
4410
|
-
if (context.registry) {
|
4411
|
-
context.registry.add(sheet);
|
4412
|
-
}
|
4413
|
-
};
|
4414
|
-
var unmanageSheet = function unmanageSheet2(options) {
|
4415
|
-
if (!options.sheet) {
|
4416
|
-
return;
|
4417
|
-
}
|
4418
|
-
var manager = getManager(options.context, options.index);
|
4419
|
-
manager.unmanage(options.theme);
|
4420
|
-
};
|
4421
|
-
var defaultJss2 = createJss(jss_preset_default_esm_default());
|
4422
|
-
var sheetsMeta = /* @__PURE__ */ new WeakMap();
|
4423
|
-
var getMeta = function getMeta2(sheet) {
|
4424
|
-
return sheetsMeta.get(sheet);
|
4425
|
-
};
|
4426
|
-
var addMeta = function addMeta2(sheet, meta) {
|
4427
|
-
sheetsMeta.set(sheet, meta);
|
4428
|
-
};
|
4429
|
-
var getStyles = function getStyles2(options) {
|
4430
|
-
var styles = options.styles;
|
4431
|
-
if (typeof styles !== "function") {
|
4432
|
-
return styles;
|
4433
|
-
}
|
4434
|
-
process.env.NODE_ENV !== "production" ? tiny_warning_esm_default(styles.length !== 0, "[JSS] <" + (options.name || "Hook") + ` />'s styles function doesn't rely on the "theme" argument. We recommend declaring styles as an object instead.`) : void 0;
|
4435
|
-
return styles(options.theme);
|
4436
|
-
};
|
4437
|
-
function getSheetOptions(options, link) {
|
4438
|
-
var minify;
|
4439
|
-
if (options.context.id && options.context.id.minify != null) {
|
4440
|
-
minify = options.context.id.minify;
|
4441
|
-
}
|
4442
|
-
var classNamePrefix = options.context.classNamePrefix || "";
|
4443
|
-
if (options.name && !minify) {
|
4444
|
-
classNamePrefix += options.name.replace(/\s/g, "-") + "-";
|
4445
|
-
}
|
4446
|
-
var meta = "";
|
4447
|
-
if (options.name) meta = options.name + ", ";
|
4448
|
-
meta += typeof options.styles === "function" ? "Themed" : "Unthemed";
|
4449
|
-
return _extends({}, options.sheetOptions, {
|
4450
|
-
index: options.index,
|
4451
|
-
meta,
|
4452
|
-
classNamePrefix,
|
4453
|
-
link,
|
4454
|
-
generateId: options.sheetOptions && options.sheetOptions.generateId ? options.sheetOptions.generateId : options.context.generateId
|
4455
|
-
});
|
4456
|
-
}
|
4457
|
-
var createStyleSheet = function createStyleSheet2(options) {
|
4458
|
-
if (options.context.disableStylesGeneration) {
|
4459
|
-
return void 0;
|
4460
|
-
}
|
4461
|
-
var manager = getManager(options.context, options.index);
|
4462
|
-
var existingSheet = manager.get(options.theme);
|
4463
|
-
if (existingSheet) {
|
4464
|
-
return existingSheet;
|
4465
|
-
}
|
4466
|
-
var jss = options.context.jss || defaultJss2;
|
4467
|
-
var styles = getStyles(options);
|
4468
|
-
var dynamicStyles = getDynamicStyles(styles);
|
4469
|
-
var sheet = jss.createStyleSheet(styles, getSheetOptions(options, dynamicStyles !== null));
|
4470
|
-
addMeta(sheet, {
|
4471
|
-
dynamicStyles,
|
4472
|
-
styles
|
4473
|
-
});
|
4474
|
-
manager.add(options.theme, sheet);
|
4475
|
-
return sheet;
|
4476
|
-
};
|
4477
|
-
var removeDynamicRules = function removeDynamicRules2(sheet, rules) {
|
4478
|
-
for (var key in rules) {
|
4479
|
-
sheet.deleteRule(rules[key]);
|
4480
|
-
}
|
4481
|
-
};
|
4482
|
-
var updateDynamicRules = function updateDynamicRules2(data, sheet, rules) {
|
4483
|
-
for (var key in rules) {
|
4484
|
-
sheet.updateOne(rules[key], data);
|
4485
|
-
}
|
4486
|
-
};
|
4487
|
-
var addDynamicRules = function addDynamicRules2(sheet, data) {
|
4488
|
-
var meta = getMeta(sheet);
|
4489
|
-
if (!meta) {
|
4490
|
-
return void 0;
|
4491
|
-
}
|
4492
|
-
var rules = {};
|
4493
|
-
for (var key in meta.dynamicStyles) {
|
4494
|
-
var initialRuleCount = sheet.rules.index.length;
|
4495
|
-
var originalRule = sheet.addRule(key, meta.dynamicStyles[key]);
|
4496
|
-
for (var i = initialRuleCount; i < sheet.rules.index.length; i++) {
|
4497
|
-
var rule = sheet.rules.index[i];
|
4498
|
-
sheet.updateOne(rule, data);
|
4499
|
-
rules[originalRule === rule ? key : rule.key] = rule;
|
4500
|
-
}
|
4501
|
-
}
|
4502
|
-
return rules;
|
4503
|
-
};
|
4504
|
-
var getSheetClasses = function getSheetClasses2(sheet, dynamicRules) {
|
4505
|
-
if (!dynamicRules) {
|
4506
|
-
return sheet.classes;
|
4507
|
-
}
|
4508
|
-
var meta = getMeta(sheet);
|
4509
|
-
if (!meta) {
|
4510
|
-
return sheet.classes;
|
4511
|
-
}
|
4512
|
-
var classes = {};
|
4513
|
-
for (var key in meta.styles) {
|
4514
|
-
classes[key] = sheet.classes[key];
|
4515
|
-
if (key in dynamicRules) {
|
4516
|
-
classes[key] += " " + sheet.classes[dynamicRules[key].key];
|
4517
|
-
}
|
4518
|
-
}
|
4519
|
-
return classes;
|
4520
|
-
};
|
4521
|
-
function getUseInsertionEffect(isSSR) {
|
4522
|
-
return isSSR ? import_react2.useEffect : import_react2.default.useInsertionEffect || // React 18+ (https://github.com/reactwg/react-18/discussions/110)
|
4523
|
-
import_react2.useLayoutEffect;
|
4524
|
-
}
|
4525
|
-
var noTheme = {};
|
4526
|
-
var createUseStyles = function createUseStyles2(styles, options) {
|
4527
|
-
if (options === void 0) {
|
4528
|
-
options = {};
|
4529
|
-
}
|
4530
|
-
var _options = options, _options$index = _options.index, index4 = _options$index === void 0 ? getSheetIndex() : _options$index, theming = _options.theming, name = _options.name, sheetOptions = _objectWithoutPropertiesLoose(_options, ["index", "theming", "name"]);
|
4531
|
-
var ThemeContext$1 = theming && theming.context || ThemeContext;
|
4532
|
-
var useTheme2 = function useTheme3(theme) {
|
4533
|
-
if (typeof styles === "function") {
|
4534
|
-
return theme || (0, import_react2.useContext)(ThemeContext$1) || noTheme;
|
4535
|
-
}
|
4536
|
-
return noTheme;
|
4537
|
-
};
|
4538
|
-
var emptyObject = {};
|
4539
|
-
return function useStyles2(data) {
|
4540
|
-
var isFirstMount = (0, import_react2.useRef)(true);
|
4541
|
-
var context = (0, import_react2.useContext)(JssContext);
|
4542
|
-
var theme = useTheme2(data && data.theme);
|
4543
|
-
var _useMemo = (0, import_react2.useMemo)(function() {
|
4544
|
-
var newSheet = createStyleSheet({
|
4545
|
-
context,
|
4546
|
-
styles,
|
4547
|
-
name,
|
4548
|
-
theme,
|
4549
|
-
index: index4,
|
4550
|
-
sheetOptions
|
4551
|
-
});
|
4552
|
-
if (newSheet && context.isSSR) {
|
4553
|
-
manageSheet({
|
4554
|
-
index: index4,
|
4555
|
-
context,
|
4556
|
-
sheet: newSheet,
|
4557
|
-
theme
|
4558
|
-
});
|
4559
|
-
}
|
4560
|
-
return [newSheet, newSheet ? addDynamicRules(newSheet, data) : null];
|
4561
|
-
}, [context, theme]), sheet = _useMemo[0], dynamicRules = _useMemo[1];
|
4562
|
-
getUseInsertionEffect(context.isSSR)(function() {
|
4563
|
-
if (sheet && dynamicRules && !isFirstMount.current) {
|
4564
|
-
updateDynamicRules(data, sheet, dynamicRules);
|
4565
|
-
}
|
4566
|
-
}, [data]);
|
4567
|
-
getUseInsertionEffect(context.isSSR)(function() {
|
4568
|
-
if (sheet) {
|
4569
|
-
manageSheet({
|
4570
|
-
index: index4,
|
4571
|
-
context,
|
4572
|
-
sheet,
|
4573
|
-
theme
|
4574
|
-
});
|
4575
|
-
}
|
4576
|
-
return function() {
|
4577
|
-
if (sheet) {
|
4578
|
-
unmanageSheet({
|
4579
|
-
index: index4,
|
4580
|
-
context,
|
4581
|
-
sheet,
|
4582
|
-
theme
|
4583
|
-
});
|
4584
|
-
if (dynamicRules) {
|
4585
|
-
removeDynamicRules(sheet, dynamicRules);
|
4586
|
-
}
|
4587
|
-
}
|
4588
|
-
};
|
4589
|
-
}, [sheet]);
|
4590
|
-
var classes = (0, import_react2.useMemo)(function() {
|
4591
|
-
return sheet && dynamicRules ? getSheetClasses(sheet, dynamicRules) : emptyObject;
|
4592
|
-
}, [sheet, dynamicRules]);
|
4593
|
-
(0, import_react2.useDebugValue)(classes);
|
4594
|
-
(0, import_react2.useDebugValue)(theme === noTheme ? "No theme" : theme);
|
4595
|
-
(0, import_react2.useEffect)(function() {
|
4596
|
-
isFirstMount.current = false;
|
4597
|
-
});
|
4598
|
-
return classes;
|
4599
|
-
};
|
4600
|
-
};
|
4601
|
-
var shouldForwardPropSymbol = Symbol("react-jss-styled");
|
4602
|
-
var create3 = function create4(css3) {
|
4603
|
-
if (css3 === void 0) {
|
4604
|
-
css3 = css_jss_esm_default;
|
4605
|
-
}
|
4606
|
-
return function createElement$1(type, props) {
|
4607
|
-
var args = arguments;
|
4608
|
-
if (props && props.css) {
|
4609
|
-
var className = css3(props.css);
|
4610
|
-
var newProps = Object.assign({}, props);
|
4611
|
-
newProps.className = props.className ? props.className + " " + className : className;
|
4612
|
-
delete newProps.css;
|
4613
|
-
args[1] = newProps;
|
4614
|
-
}
|
4615
|
-
return import_react2.createElement.apply(void 0, args);
|
4616
|
-
};
|
4617
|
-
};
|
4618
|
-
var jsx = create3();
|
4619
|
-
|
4620
|
-
// src/contexts/StyleProvider.tsx
|
4621
|
-
var import_jsx_runtime = require("react/jsx-runtime");
|
4622
|
-
var useStyles = createUseStyles({
|
4623
|
-
styleProvider: {
|
4624
|
-
fontFamily: "inherit, sans-serif",
|
4625
|
-
fontSize: 13,
|
4626
|
-
"--background-color": "#f1f1f1",
|
4627
|
-
"--card-background-color": "#fff",
|
4628
|
-
"--primary-color": "#000088",
|
4629
|
-
"--secondary-color": "#00C16E",
|
4630
|
-
"--tertiary-color": "#f6f6f6",
|
4631
|
-
"--primary-color-darker": "#000066",
|
4632
|
-
"--secondary-color-darker": "#009955",
|
4633
|
-
"--border-radius": "12px",
|
4634
|
-
"& *::-webkit-scrollbar": {
|
4635
|
-
width: 8,
|
4636
|
-
height: 8
|
4637
|
-
},
|
4638
|
-
"& *::-webkit-scrollbar-thumb": {
|
4639
|
-
borderRadius: 10,
|
4640
|
-
background: "#0003"
|
4641
|
-
}
|
4642
|
-
}
|
4643
|
-
});
|
4644
|
-
var StyleProvider = ({ children }) => {
|
4645
|
-
const styles = useStyles();
|
4646
|
-
return /* @__PURE__ */ (0, import_jsx_runtime.jsx)("div", { className: clsx_default(styles.styleProvider), children });
|
4647
|
-
};
|
4648
|
-
var StyleProvider_default = StyleProvider;
|
4649
|
-
|
4650
|
-
// src/contexts/TeknifyProvider.tsx
|
4651
|
-
var import_jsx_runtime2 = require("react/jsx-runtime");
|
4652
|
-
var TeknifyContext = (0, import_react3.createContext)({
|
4653
|
-
applicationId: "",
|
4654
|
-
subscriberId: ""
|
4655
|
-
});
|
4656
|
-
var NotekProvider = ({ applicationId, subscriberId, children, ...props }) => {
|
4657
|
-
const values = (0, import_react3.useMemo)(
|
4658
|
-
() => ({
|
4659
|
-
applicationId,
|
4660
|
-
subscriberId,
|
4661
|
-
client: new import_js.TeknifyClient({
|
4662
|
-
applicationId,
|
4663
|
-
subscriberId
|
4664
|
-
})
|
4665
|
-
}),
|
4666
|
-
[applicationId, subscriberId]
|
4667
|
-
);
|
4668
|
-
return /* @__PURE__ */ (0, import_jsx_runtime2.jsx)(TeknifyContext.Provider, { value: values, children: /* @__PURE__ */ (0, import_jsx_runtime2.jsx)(StyleProvider_default, { children }) });
|
4669
|
-
};
|
4670
|
-
var TeknifyProvider_default = NotekProvider;
|
4671
|
-
// Annotate the CommonJS export names for ESM import in node:
|
4672
|
-
0 && (module.exports = {
|
4673
|
-
TeknifyContext
|
4674
|
-
});
|
2
|
+
"use strict";var Bn=Object.create;var Ee=Object.defineProperty;var Xn=Object.getOwnPropertyDescriptor;var Zn=Object.getOwnPropertyNames;var Qn=Object.getPrototypeOf,ei=Object.prototype.hasOwnProperty;var J=(t,r)=>()=>(r||t((r={exports:{}}).exports,r),r.exports),ri=(t,r)=>{for(var n in r)Ee(t,n,{get:r[n],enumerable:!0})},tt=(t,r,n,e)=>{if(r&&typeof r=="object"||typeof r=="function")for(let i of Zn(r))!ei.call(t,i)&&i!==n&&Ee(t,i,{get:()=>r[i],enumerable:!(e=Xn(r,i))||e.enumerable});return t};var se=(t,r,n)=>(n=t!=null?Bn(Qn(t)):{},tt(r||!t||!t.__esModule?Ee(n,"default",{value:t,enumerable:!0}):n,t)),ti=t=>tt(Ee({},"__esModule",{value:!0}),t);var at=J(A=>{"use strict";var $=typeof Symbol=="function"&&Symbol.for,cr=$?Symbol.for("react.element"):60103,dr=$?Symbol.for("react.portal"):60106,Ce=$?Symbol.for("react.fragment"):60107,Ae=$?Symbol.for("react.strict_mode"):60108,_e=$?Symbol.for("react.profiler"):60114,je=$?Symbol.for("react.provider"):60109,Ne=$?Symbol.for("react.context"):60110,hr=$?Symbol.for("react.async_mode"):60111,Ie=$?Symbol.for("react.concurrent_mode"):60111,Me=$?Symbol.for("react.forward_ref"):60112,De=$?Symbol.for("react.suspense"):60113,ii=$?Symbol.for("react.suspense_list"):60120,Ve=$?Symbol.for("react.memo"):60115,$e=$?Symbol.for("react.lazy"):60116,oi=$?Symbol.for("react.block"):60121,ai=$?Symbol.for("react.fundamental"):60117,si=$?Symbol.for("react.responder"):60118,ui=$?Symbol.for("react.scope"):60119;function q(t){if(typeof t=="object"&&t!==null){var r=t.$$typeof;switch(r){case cr:switch(t=t.type,t){case hr:case Ie:case Ce:case _e:case Ae:case De:return t;default:switch(t=t&&t.$$typeof,t){case Ne:case Me:case $e:case Ve:case je:return t;default:return r}}case dr:return r}}}function ot(t){return q(t)===Ie}A.AsyncMode=hr;A.ConcurrentMode=Ie;A.ContextConsumer=Ne;A.ContextProvider=je;A.Element=cr;A.ForwardRef=Me;A.Fragment=Ce;A.Lazy=$e;A.Memo=Ve;A.Portal=dr;A.Profiler=_e;A.StrictMode=Ae;A.Suspense=De;A.isAsyncMode=function(t){return ot(t)||q(t)===hr};A.isConcurrentMode=ot;A.isContextConsumer=function(t){return q(t)===Ne};A.isContextProvider=function(t){return q(t)===je};A.isElement=function(t){return typeof t=="object"&&t!==null&&t.$$typeof===cr};A.isForwardRef=function(t){return q(t)===Me};A.isFragment=function(t){return q(t)===Ce};A.isLazy=function(t){return q(t)===$e};A.isMemo=function(t){return q(t)===Ve};A.isPortal=function(t){return q(t)===dr};A.isProfiler=function(t){return q(t)===_e};A.isStrictMode=function(t){return q(t)===Ae};A.isSuspense=function(t){return q(t)===De};A.isValidElementType=function(t){return typeof t=="string"||typeof t=="function"||t===Ce||t===Ie||t===_e||t===Ae||t===De||t===ii||typeof t=="object"&&t!==null&&(t.$$typeof===$e||t.$$typeof===Ve||t.$$typeof===je||t.$$typeof===Ne||t.$$typeof===Me||t.$$typeof===ai||t.$$typeof===si||t.$$typeof===ui||t.$$typeof===oi)};A.typeOf=q});var st=J(_=>{"use strict";process.env.NODE_ENV!=="production"&&function(){"use strict";var t=typeof Symbol=="function"&&Symbol.for,r=t?Symbol.for("react.element"):60103,n=t?Symbol.for("react.portal"):60106,e=t?Symbol.for("react.fragment"):60107,i=t?Symbol.for("react.strict_mode"):60108,o=t?Symbol.for("react.profiler"):60114,a=t?Symbol.for("react.provider"):60109,s=t?Symbol.for("react.context"):60110,u=t?Symbol.for("react.async_mode"):60111,l=t?Symbol.for("react.concurrent_mode"):60111,d=t?Symbol.for("react.forward_ref"):60112,v=t?Symbol.for("react.suspense"):60113,N=t?Symbol.for("react.suspense_list"):60120,x=t?Symbol.for("react.memo"):60115,E=t?Symbol.for("react.lazy"):60116,R=t?Symbol.for("react.block"):60121,V=t?Symbol.for("react.fundamental"):60117,L=t?Symbol.for("react.responder"):60118,I=t?Symbol.for("react.scope"):60119;function W(p){return typeof p=="string"||typeof p=="function"||p===e||p===l||p===o||p===i||p===v||p===N||typeof p=="object"&&p!==null&&(p.$$typeof===E||p.$$typeof===x||p.$$typeof===a||p.$$typeof===s||p.$$typeof===d||p.$$typeof===V||p.$$typeof===L||p.$$typeof===I||p.$$typeof===R)}function D(p){if(typeof p=="object"&&p!==null){var lr=p.$$typeof;switch(lr){case r:var Oe=p.type;switch(Oe){case u:case l:case e:case o:case i:case v:return Oe;default:var rt=Oe&&Oe.$$typeof;switch(rt){case s:case d:case E:case x:case a:return rt;default:return lr}}case n:return lr}}}var F=u,te=l,H=s,sr=a,Y=r,ne=d,ur=e,fr=E,c=x,h=n,P=o,S=i,y=v,w=!1;function g(p){return w||(w=!0,console.warn("The ReactIs.isAsyncMode() alias has been deprecated, and will be removed in React 17+. Update your code to use ReactIs.isConcurrentMode() instead. It has the exact same API.")),b(p)||D(p)===u}function b(p){return D(p)===l}function T(p){return D(p)===s}function C(p){return D(p)===a}function O(p){return typeof p=="object"&&p!==null&&p.$$typeof===r}function U(p){return D(p)===d}function z(p){return D(p)===e}function B(p){return D(p)===E}function Jn(p){return D(p)===x}function Yn(p){return D(p)===n}function Gn(p){return D(p)===o}function Hn(p){return D(p)===i}function Kn(p){return D(p)===v}_.AsyncMode=F,_.ConcurrentMode=te,_.ContextConsumer=H,_.ContextProvider=sr,_.Element=Y,_.ForwardRef=ne,_.Fragment=ur,_.Lazy=fr,_.Memo=c,_.Portal=h,_.Profiler=P,_.StrictMode=S,_.Suspense=y,_.isAsyncMode=g,_.isConcurrentMode=b,_.isContextConsumer=T,_.isContextProvider=C,_.isElement=O,_.isForwardRef=U,_.isFragment=z,_.isLazy=B,_.isMemo=Jn,_.isPortal=Yn,_.isProfiler=Gn,_.isStrictMode=Hn,_.isSuspense=Kn,_.isValidElementType=W,_.typeOf=D}()});var We=J((ss,vr)=>{"use strict";process.env.NODE_ENV==="production"?vr.exports=at():vr.exports=st()});var yr=J((us,ht)=>{"use strict";var pr=We(),fi={childContextTypes:!0,contextType:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,getDerivedStateFromError:!0,getDerivedStateFromProps:!0,mixins:!0,propTypes:!0,type:!0},li={name:!0,length:!0,prototype:!0,caller:!0,callee:!0,arguments:!0,arity:!0},ci={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},ct={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},mr={};mr[pr.ForwardRef]=ci;mr[pr.Memo]=ct;function ut(t){return pr.isMemo(t)?ct:mr[t.$$typeof]||fi}var di=Object.defineProperty,hi=Object.getOwnPropertyNames,ft=Object.getOwnPropertySymbols,vi=Object.getOwnPropertyDescriptor,pi=Object.getPrototypeOf,lt=Object.prototype;function dt(t,r,n){if(typeof r!="string"){if(lt){var e=pi(r);e&&e!==lt&&dt(t,e,n)}var i=hi(r);ft&&(i=i.concat(ft(r)));for(var o=ut(t),a=ut(r),s=0;s<i.length;++s){var u=i[s];if(!li[u]&&!(n&&n[u])&&!(a&&a[u])&&!(o&&o[u])){var l=vi(r,u);try{di(t,u,l)}catch{}}}}return t}ht.exports=dt});var mt=J((ls,pt)=>{"use strict";var vt=Object.getOwnPropertySymbols,gi=Object.prototype.hasOwnProperty,bi=Object.prototype.propertyIsEnumerable;function Si(t){if(t==null)throw new TypeError("Object.assign cannot be called with null or undefined");return Object(t)}function xi(){try{if(!Object.assign)return!1;var t=new String("abc");if(t[5]="de",Object.getOwnPropertyNames(t)[0]==="5")return!1;for(var r={},n=0;n<10;n++)r["_"+String.fromCharCode(n)]=n;var e=Object.getOwnPropertyNames(r).map(function(o){return r[o]});if(e.join("")!=="0123456789")return!1;var i={};return"abcdefghijklmnopqrst".split("").forEach(function(o){i[o]=o}),Object.keys(Object.assign({},i)).join("")==="abcdefghijklmnopqrst"}catch{return!1}}pt.exports=xi()?Object.assign:function(t,r){for(var n,e=Si(t),i,o=1;o<arguments.length;o++){n=Object(arguments[o]);for(var a in n)gi.call(n,a)&&(e[a]=n[a]);if(vt){i=vt(n);for(var s=0;s<i.length;s++)bi.call(n,i[s])&&(e[i[s]]=n[i[s]])}}return e}});var ze=J((cs,yt)=>{"use strict";var Pi="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED";yt.exports=Pi});var gr=J((ds,gt)=>{"use strict";gt.exports=Function.call.bind(Object.prototype.hasOwnProperty)});var Rt=J((hs,Pt)=>{"use strict";var br=function(){};process.env.NODE_ENV!=="production"&&(bt=ze(),Le={},St=gr(),br=function(t){var r="Warning: "+t;typeof console<"u"&&console.error(r);try{throw new Error(r)}catch{}});var bt,Le,St;function xt(t,r,n,e,i){if(process.env.NODE_ENV!=="production"){for(var o in t)if(St(t,o)){var a;try{if(typeof t[o]!="function"){var s=Error((e||"React class")+": "+n+" type `"+o+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+typeof t[o]+"`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");throw s.name="Invariant Violation",s}a=t[o](r,o,e,n,null,bt)}catch(l){a=l}if(a&&!(a instanceof Error)&&br((e||"React class")+": type specification of "+n+" `"+o+"` is invalid; the type checker function must return `null` or an `Error` but returned a "+typeof a+". You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument)."),a instanceof Error&&!(a.message in Le)){Le[a.message]=!0;var u=i?i():"";br("Failed "+n+" type: "+a.message+(u??""))}}}}xt.resetWarningCache=function(){process.env.NODE_ENV!=="production"&&(Le={})};Pt.exports=xt});var Ot=J((vs,Tt)=>{"use strict";var Ri=We(),wi=mt(),ue=ze(),Sr=gr(),wt=Rt(),fe=function(){};process.env.NODE_ENV!=="production"&&(fe=function(t){var r="Warning: "+t;typeof console<"u"&&console.error(r);try{throw new Error(r)}catch{}});function Ue(){return null}Tt.exports=function(t,r){var n=typeof Symbol=="function"&&Symbol.iterator,e="@@iterator";function i(c){var h=c&&(n&&c[n]||c[e]);if(typeof h=="function")return h}var o="<<anonymous>>",a={array:d("array"),bigint:d("bigint"),bool:d("boolean"),func:d("function"),number:d("number"),object:d("object"),string:d("string"),symbol:d("symbol"),any:v(),arrayOf:N,element:x(),elementType:E(),instanceOf:R,node:W(),objectOf:L,oneOf:V,oneOfType:I,shape:F,exact:te};function s(c,h){return c===h?c!==0||1/c===1/h:c!==c&&h!==h}function u(c,h){this.message=c,this.data=h&&typeof h=="object"?h:{},this.stack=""}u.prototype=Error.prototype;function l(c){if(process.env.NODE_ENV!=="production")var h={},P=0;function S(w,g,b,T,C,O,U){if(T=T||o,O=O||b,U!==ue){if(r){var z=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use `PropTypes.checkPropTypes()` to call them. Read more at http://fb.me/use-check-prop-types");throw z.name="Invariant Violation",z}else if(process.env.NODE_ENV!=="production"&&typeof console<"u"){var B=T+":"+b;!h[B]&&P<3&&(fe("You are manually calling a React.PropTypes validation function for the `"+O+"` prop on `"+T+"`. This is deprecated and will throw in the standalone `prop-types` package. You may be seeing this warning due to a third-party PropTypes library. See https://fb.me/react-warning-dont-call-proptypes for details."),h[B]=!0,P++)}}return g[b]==null?w?g[b]===null?new u("The "+C+" `"+O+"` is marked as required "+("in `"+T+"`, but its value is `null`.")):new u("The "+C+" `"+O+"` is marked as required in "+("`"+T+"`, but its value is `undefined`.")):null:c(g,b,T,C,O)}var y=S.bind(null,!1);return y.isRequired=S.bind(null,!0),y}function d(c){function h(P,S,y,w,g,b){var T=P[S],C=Y(T);if(C!==c){var O=ne(T);return new u("Invalid "+w+" `"+g+"` of type "+("`"+O+"` supplied to `"+y+"`, expected ")+("`"+c+"`."),{expectedType:c})}return null}return l(h)}function v(){return l(Ue)}function N(c){function h(P,S,y,w,g){if(typeof c!="function")return new u("Property `"+g+"` of component `"+y+"` has invalid PropType notation inside arrayOf.");var b=P[S];if(!Array.isArray(b)){var T=Y(b);return new u("Invalid "+w+" `"+g+"` of type "+("`"+T+"` supplied to `"+y+"`, expected an array."))}for(var C=0;C<b.length;C++){var O=c(b,C,y,w,g+"["+C+"]",ue);if(O instanceof Error)return O}return null}return l(h)}function x(){function c(h,P,S,y,w){var g=h[P];if(!t(g)){var b=Y(g);return new u("Invalid "+y+" `"+w+"` of type "+("`"+b+"` supplied to `"+S+"`, expected a single ReactElement."))}return null}return l(c)}function E(){function c(h,P,S,y,w){var g=h[P];if(!Ri.isValidElementType(g)){var b=Y(g);return new u("Invalid "+y+" `"+w+"` of type "+("`"+b+"` supplied to `"+S+"`, expected a single ReactElement type."))}return null}return l(c)}function R(c){function h(P,S,y,w,g){if(!(P[S]instanceof c)){var b=c.name||o,T=fr(P[S]);return new u("Invalid "+w+" `"+g+"` of type "+("`"+T+"` supplied to `"+y+"`, expected ")+("instance of `"+b+"`."))}return null}return l(h)}function V(c){if(!Array.isArray(c))return process.env.NODE_ENV!=="production"&&(arguments.length>1?fe("Invalid arguments supplied to oneOf, expected an array, got "+arguments.length+" arguments. A common mistake is to write oneOf(x, y, z) instead of oneOf([x, y, z])."):fe("Invalid argument supplied to oneOf, expected an array.")),Ue;function h(P,S,y,w,g){for(var b=P[S],T=0;T<c.length;T++)if(s(b,c[T]))return null;var C=JSON.stringify(c,function(U,z){var B=ne(z);return B==="symbol"?String(z):z});return new u("Invalid "+w+" `"+g+"` of value `"+String(b)+"` "+("supplied to `"+y+"`, expected one of "+C+"."))}return l(h)}function L(c){function h(P,S,y,w,g){if(typeof c!="function")return new u("Property `"+g+"` of component `"+y+"` has invalid PropType notation inside objectOf.");var b=P[S],T=Y(b);if(T!=="object")return new u("Invalid "+w+" `"+g+"` of type "+("`"+T+"` supplied to `"+y+"`, expected an object."));for(var C in b)if(Sr(b,C)){var O=c(b,C,y,w,g+"."+C,ue);if(O instanceof Error)return O}return null}return l(h)}function I(c){if(!Array.isArray(c))return process.env.NODE_ENV!=="production"&&fe("Invalid argument supplied to oneOfType, expected an instance of array."),Ue;for(var h=0;h<c.length;h++){var P=c[h];if(typeof P!="function")return fe("Invalid argument supplied to oneOfType. Expected an array of check functions, but received "+ur(P)+" at index "+h+"."),Ue}function S(y,w,g,b,T){for(var C=[],O=0;O<c.length;O++){var U=c[O],z=U(y,w,g,b,T,ue);if(z==null)return null;z.data&&Sr(z.data,"expectedType")&&C.push(z.data.expectedType)}var B=C.length>0?", expected one of type ["+C.join(", ")+"]":"";return new u("Invalid "+b+" `"+T+"` supplied to "+("`"+g+"`"+B+"."))}return l(S)}function W(){function c(h,P,S,y,w){return H(h[P])?null:new u("Invalid "+y+" `"+w+"` supplied to "+("`"+S+"`, expected a ReactNode."))}return l(c)}function D(c,h,P,S,y){return new u((c||"React class")+": "+h+" type `"+P+"."+S+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+y+"`.")}function F(c){function h(P,S,y,w,g){var b=P[S],T=Y(b);if(T!=="object")return new u("Invalid "+w+" `"+g+"` of type `"+T+"` "+("supplied to `"+y+"`, expected `object`."));for(var C in c){var O=c[C];if(typeof O!="function")return D(y,w,g,C,ne(O));var U=O(b,C,y,w,g+"."+C,ue);if(U)return U}return null}return l(h)}function te(c){function h(P,S,y,w,g){var b=P[S],T=Y(b);if(T!=="object")return new u("Invalid "+w+" `"+g+"` of type `"+T+"` "+("supplied to `"+y+"`, expected `object`."));var C=wi({},P[S],c);for(var O in C){var U=c[O];if(Sr(c,O)&&typeof U!="function")return D(y,w,g,O,ne(U));if(!U)return new u("Invalid "+w+" `"+g+"` key `"+O+"` supplied to `"+y+"`.\nBad object: "+JSON.stringify(P[S],null," ")+`
|
3
|
+
Valid keys: `+JSON.stringify(Object.keys(c),null," "));var z=U(b,O,y,w,g+"."+O,ue);if(z)return z}return null}return l(h)}function H(c){switch(typeof c){case"number":case"string":case"undefined":return!0;case"boolean":return!c;case"object":if(Array.isArray(c))return c.every(H);if(c===null||t(c))return!0;var h=i(c);if(h){var P=h.call(c),S;if(h!==c.entries){for(;!(S=P.next()).done;)if(!H(S.value))return!1}else for(;!(S=P.next()).done;){var y=S.value;if(y&&!H(y[1]))return!1}}else return!1;return!0;default:return!1}}function sr(c,h){return c==="symbol"?!0:h?h["@@toStringTag"]==="Symbol"||typeof Symbol=="function"&&h instanceof Symbol:!1}function Y(c){var h=typeof c;return Array.isArray(c)?"array":c instanceof RegExp?"object":sr(h,c)?"symbol":h}function ne(c){if(typeof c>"u"||c===null)return""+c;var h=Y(c);if(h==="object"){if(c instanceof Date)return"date";if(c instanceof RegExp)return"regexp"}return h}function ur(c){var h=ne(c);switch(h){case"array":case"object":return"an "+h;case"boolean":case"date":case"regexp":return"a "+h;default:return h}}function fr(c){return!c.constructor||!c.constructor.name?o:c.constructor.name}return a.checkPropTypes=wt,a.resetWarningCache=wt.resetWarningCache,a.PropTypes=a,a}});var At=J((ps,Ct)=>{"use strict";var Ti=ze();function Et(){}function kt(){}kt.resetWarningCache=Et;Ct.exports=function(){function t(e,i,o,a,s,u){if(u!==Ti){var l=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw l.name="Invariant Violation",l}}t.isRequired=t;function r(){return t}var n={array:t,bigint:t,bool:t,func:t,number:t,object:t,string:t,symbol:t,any:t,arrayOf:r,element:t,elementType:t,instanceOf:r,node:t,objectOf:r,oneOf:r,oneOfType:r,shape:r,exact:r,checkPropTypes:kt,resetWarningCache:Et};return n.PropTypes=n,n}});var Nt=J((ms,xr)=>{"use strict";process.env.NODE_ENV!=="production"?(_t=We(),jt=!0,xr.exports=Ot()(_t.isElement,jt)):xr.exports=At()();var _t,jt});var It=J(Pr=>{"use strict";Object.defineProperty(Pr,"__esModule",{value:!0});Pr.default=Oi;function Oi(t){return t.displayName||t.name||(typeof t=="string"&&t.length>0?t:"Unknown")}});var es={};ri(es,{TeknifyContext:()=>Fn,default:()=>Qa});module.exports=ti(es);var qn=require("@tnf-dev/js"),ar=require("react");function nt(t){var r,n,e="";if(typeof t=="string"||typeof t=="number")e+=t;else if(typeof t=="object")if(Array.isArray(t)){var i=t.length;for(r=0;r<i;r++)t[r]&&(n=nt(t[r]))&&(e&&(e+=" "),e+=n)}else for(n in t)t[n]&&(e&&(e+=" "),e+=n);return e}function ni(){for(var t,r,n=0,e="",i=arguments.length;n<i;n++)(t=arguments[n])&&(r=nt(t))&&(e&&(e+=" "),e+=r);return e}var it=ni;function j(){return j=Object.assign?Object.assign.bind():function(t){for(var r=1;r<arguments.length;r++){var n=arguments[r];for(var e in n)({}).hasOwnProperty.call(n,e)&&(t[e]=n[e])}return t},j.apply(null,arguments)}function ke(t,r){if(t==null)return{};var n={};for(var e in t)if({}.hasOwnProperty.call(t,e)){if(r.indexOf(e)!==-1)continue;n[e]=t[e]}return n}var M=se(require("react")),Ma=se(yr());var G=se(require("react"));var mi=process.env.NODE_ENV==="production";function yi(t,r){if(!mi){if(t)return;var n="Warning: "+r;typeof console<"u"&&console.warn(n);try{throw Error(n)}catch{}}}var k=yi;var pe=se(Nt()),Mt=se(yr()),Dt=se(It());function qe(t,r,n){return r in t?Object.defineProperty(t,r,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[r]=n,t}function Fe(){return Fe=Object.assign||function(t){for(var r=1;r<arguments.length;r++){var n=arguments[r];for(var e in n)Object.prototype.hasOwnProperty.call(n,e)&&(t[e]=n[e])}return t},Fe.apply(this,arguments)}function Ei(t,r){t.prototype=Object.create(r.prototype),t.prototype.constructor=t,t.__proto__=r}function X(t){if(t===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function Je(t){return t!==null&&typeof t=="object"&&!Array.isArray(t)}function ki(t){var r=function(n){Ei(e,n);function e(){for(var o,a=arguments.length,s=new Array(a),u=0;u<a;u++)s[u]=arguments[u];return o=n.call.apply(n,[this].concat(s))||this,qe(X(X(o)),"cachedTheme",void 0),qe(X(X(o)),"lastOuterTheme",void 0),qe(X(X(o)),"lastTheme",void 0),qe(X(X(o)),"renderProvider",function(l){var d=o.props.children;return G.default.createElement(t.Provider,{value:o.getTheme(l)},d)}),o}var i=e.prototype;return i.getTheme=function(a){if(this.props.theme!==this.lastTheme||a!==this.lastOuterTheme||!this.cachedTheme)if(this.lastOuterTheme=a,this.lastTheme=this.props.theme,typeof this.lastTheme=="function"){var s=this.props.theme;this.cachedTheme=s(a),process.env.NODE_ENV!=="production"&&k(Je(this.cachedTheme),"[ThemeProvider] Please return an object from your theme function")}else{var u=this.props.theme;process.env.NODE_ENV!=="production"&&k(Je(u),"[ThemeProvider] Please make your theme prop a plain object"),this.cachedTheme=a?Fe({},a,u):u}return this.cachedTheme},i.render=function(){var a=this.props.children;return a?G.default.createElement(t.Consumer,null,this.renderProvider):null},e}(G.default.Component);return process.env.NODE_ENV!=="production"&&(r.propTypes={children:pe.default.node,theme:pe.default.oneOfType([pe.default.shape({}),pe.default.func]).isRequired}),r}function Ci(t){return function(n){var e=G.default.forwardRef(function(i,o){return G.default.createElement(t.Consumer,null,function(a){return process.env.NODE_ENV!=="production"&&k(Je(a),"[theming] Please use withTheme only with the ThemeProvider"),G.default.createElement(n,Fe({theme:a,ref:o},i))})});return process.env.NODE_ENV!=="production"&&(e.displayName="WithTheme("+(0,Dt.default)(n)+")"),(0,Mt.default)(e,n),e}}function Ai(t){var r=function(){var e=G.default.useContext(t);return process.env.NODE_ENV!=="production"&&k(Je(e),"[theming] Please use useTheme only with the ThemeProvider"),e};return r}function Vt(t){return{context:t,withTheme:Ci(t),useTheme:Ai(t),ThemeProvider:ki(t)}}var Rr=(0,G.createContext)(),wr=Vt(Rr),_i=wr.withTheme,ji=wr.ThemeProvider,Ni=wr.useTheme;var $t=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Ii=(typeof window>"u"?"undefined":$t(window))==="object"&&(typeof document>"u"?"undefined":$t(document))==="object"&&document.nodeType===9,K=Ii;function ie(t){"@babel/helpers - typeof";return ie=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(r){return typeof r}:function(r){return r&&typeof Symbol=="function"&&r.constructor===Symbol&&r!==Symbol.prototype?"symbol":typeof r},ie(t)}function Wt(t,r){if(ie(t)!="object"||!t)return t;var n=t[Symbol.toPrimitive];if(n!==void 0){var e=n.call(t,r||"default");if(ie(e)!="object")return e;throw new TypeError("@@toPrimitive must return a primitive value.")}return(r==="string"?String:Number)(t)}function zt(t){var r=Wt(t,"string");return ie(r)=="symbol"?r:r+""}function Lt(t,r){for(var n=0;n<r.length;n++){var e=r[n];e.enumerable=e.enumerable||!1,e.configurable=!0,"value"in e&&(e.writable=!0),Object.defineProperty(t,zt(e.key),e)}}function Ye(t,r,n){return r&&Lt(t.prototype,r),n&&Lt(t,n),Object.defineProperty(t,"prototype",{writable:!1}),t}function Ge(t,r){return Ge=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,e){return n.__proto__=e,n},Ge(t,r)}function Tr(t,r){t.prototype=Object.create(r.prototype),t.prototype.constructor=t,Ge(t,r)}function Or(t){if(t===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}var Mi={}.constructor;function Cr(t){if(t==null||typeof t!="object")return t;if(Array.isArray(t))return t.map(Cr);if(t.constructor!==Mi)return t;var r={};for(var n in t)r[n]=Cr(t[n]);return r}function le(t,r,n){t===void 0&&(t="unnamed");var e=n.jss,i=Cr(r),o=e.plugins.onCreateRule(t,i,n);return o||(t[0]==="@"&&process.env.NODE_ENV!=="production"&&k(!1,"[JSS] Unknown rule "+t),null)}var Ut=function(r,n){for(var e="",i=0;i<r.length&&r[i]!=="!important";i++)e&&(e+=n),e+=r[i];return e},Z=function(r){if(!Array.isArray(r))return r;var n="";if(Array.isArray(r[0]))for(var e=0;e<r.length&&r[e]!=="!important";e++)n&&(n+=", "),n+=Ut(r[e]," ");else n=Ut(r,", ");return r[r.length-1]==="!important"&&(n+=" !important"),n};function ce(t){return t&&t.format===!1?{linebreak:"",space:""}:{linebreak:`
|
4
|
+
`,space:" "}}function me(t,r){for(var n="",e=0;e<r;e++)n+=" ";return n+t}function ge(t,r,n){n===void 0&&(n={});var e="";if(!r)return e;var i=n,o=i.indent,a=o===void 0?0:o,s=r.fallbacks;n.format===!1&&(a=-1/0);var u=ce(n),l=u.linebreak,d=u.space;if(t&&a++,s)if(Array.isArray(s))for(var v=0;v<s.length;v++){var N=s[v];for(var x in N){var E=N[x];E!=null&&(e&&(e+=l),e+=me(x+":"+d+Z(E)+";",a))}}else for(var R in s){var V=s[R];V!=null&&(e&&(e+=l),e+=me(R+":"+d+Z(V)+";",a))}for(var L in r){var I=r[L];I!=null&&L!=="fallbacks"&&(e&&(e+=l),e+=me(L+":"+d+Z(I)+";",a))}return!e&&!n.allowEmpty||!t?e:(a--,e&&(e=""+l+e+l),me(""+t+d+"{"+e,a)+me("}",a))}var Di=/([[\].#*$><+~=|^:(),"'`\s])/g,qt=typeof CSS<"u"&&CSS.escape,Dr=function(t){return qt?qt(t):t.replace(Di,"\\$1")},Bt=function(){function t(n,e,i){this.type="style",this.isProcessed=!1;var o=i.sheet,a=i.Renderer;this.key=n,this.options=i,this.style=e,o?this.renderer=o.renderer:a&&(this.renderer=new a)}var r=t.prototype;return r.prop=function(e,i,o){if(i===void 0)return this.style[e];var a=o?o.force:!1;if(!a&&this.style[e]===i)return this;var s=i;(!o||o.process!==!1)&&(s=this.options.jss.plugins.onChangeValue(i,e,this));var u=s==null||s===!1,l=e in this.style;if(u&&!l&&!a)return this;var d=u&&l;if(d?delete this.style[e]:this.style[e]=s,this.renderable&&this.renderer)return d?this.renderer.removeProperty(this.renderable,e):this.renderer.setProperty(this.renderable,e,s),this;var v=this.options.sheet;return v&&v.attached&&process.env.NODE_ENV!=="production"&&k(!1,'[JSS] Rule is not linked. Missing sheet option "link: true".'),this},t}(),Ar=function(t){Tr(r,t);function r(e,i,o){var a;a=t.call(this,e,i,o)||this;var s=o.selector,u=o.scoped,l=o.sheet,d=o.generateId;return s?a.selectorText=s:u!==!1&&(a.id=d(Or(Or(a)),l),a.selectorText="."+Dr(a.id)),a}var n=r.prototype;return n.applyTo=function(i){var o=this.renderer;if(o){var a=this.toJSON();for(var s in a)o.setProperty(i,s,a[s])}return this},n.toJSON=function(){var i={};for(var o in this.style){var a=this.style[o];typeof a!="object"?i[o]=a:Array.isArray(a)&&(i[o]=Z(a))}return i},n.toString=function(i){var o=this.options.sheet,a=o?o.options.link:!1,s=a?j({},i,{allowEmpty:!0}):i;return ge(this.selectorText,this.style,s)},Ye(r,[{key:"selector",set:function(i){if(i!==this.selectorText){this.selectorText=i;var o=this.renderer,a=this.renderable;if(!(!a||!o)){var s=o.setSelector(a,i);s||o.replaceRule(a,this)}}},get:function(){return this.selectorText}}]),r}(Bt),Vi={onCreateRule:function(r,n,e){return r[0]==="@"||e.parent&&e.parent.type==="keyframes"?null:new Ar(r,n,e)}},Er={indent:1,children:!0},$i=/@([\w-]+)/,Wi=function(){function t(n,e,i){this.type="conditional",this.isProcessed=!1,this.key=n;var o=n.match($i);this.at=o?o[1]:"unknown",this.query=i.name||"@"+this.at,this.options=i,this.rules=new be(j({},i,{parent:this}));for(var a in e)this.rules.add(a,e[a]);this.rules.process()}var r=t.prototype;return r.getRule=function(e){return this.rules.get(e)},r.indexOf=function(e){return this.rules.indexOf(e)},r.addRule=function(e,i,o){var a=this.rules.add(e,i,o);return a?(this.options.jss.plugins.onProcessRule(a),a):null},r.replaceRule=function(e,i,o){var a=this.rules.replace(e,i,o);return a&&this.options.jss.plugins.onProcessRule(a),a},r.toString=function(e){e===void 0&&(e=Er);var i=ce(e),o=i.linebreak;if(e.indent==null&&(e.indent=Er.indent),e.children==null&&(e.children=Er.children),e.children===!1)return this.query+" {}";var a=this.rules.toString(e);return a?this.query+" {"+o+a+o+"}":""},t}(),zi=/@container|@media|@supports\s+/,Li={onCreateRule:function(r,n,e){return zi.test(r)?new Wi(r,n,e):null}},kr={indent:1,children:!0},Ui=/@keyframes\s+([\w-]+)/,_r=function(){function t(n,e,i){this.type="keyframes",this.at="@keyframes",this.isProcessed=!1;var o=n.match(Ui);o&&o[1]?this.name=o[1]:(this.name="noname",process.env.NODE_ENV!=="production"&&k(!1,"[JSS] Bad keyframes name "+n)),this.key=this.type+"-"+this.name,this.options=i;var a=i.scoped,s=i.sheet,u=i.generateId;this.id=a===!1?this.name:Dr(u(this,s)),this.rules=new be(j({},i,{parent:this}));for(var l in e)this.rules.add(l,e[l],j({},i,{parent:this}));this.rules.process()}var r=t.prototype;return r.toString=function(e){e===void 0&&(e=kr);var i=ce(e),o=i.linebreak;if(e.indent==null&&(e.indent=kr.indent),e.children==null&&(e.children=kr.children),e.children===!1)return this.at+" "+this.id+" {}";var a=this.rules.toString(e);return a&&(a=""+o+a+o),this.at+" "+this.id+" {"+a+"}"},t}(),qi=/@keyframes\s+/,Fi=/\$([\w-]+)/g,jr=function(r,n){return typeof r=="string"?r.replace(Fi,function(e,i){return i in n?n[i]:(process.env.NODE_ENV!=="production"&&k(!1,'[JSS] Referenced keyframes rule "'+i+'" is not defined.'),e)}):r},Ft=function(r,n,e){var i=r[n],o=jr(i,e);o!==i&&(r[n]=o)},Ji={onCreateRule:function(r,n,e){return typeof r=="string"&&qi.test(r)?new _r(r,n,e):null},onProcessStyle:function(r,n,e){return n.type!=="style"||!e||("animation-name"in r&&Ft(r,"animation-name",e.keyframes),"animation"in r&&Ft(r,"animation",e.keyframes)),r},onChangeValue:function(r,n,e){var i=e.options.sheet;if(!i)return r;switch(n){case"animation":return jr(r,i.keyframes);case"animation-name":return jr(r,i.keyframes);default:return r}}},Yi=function(t){Tr(r,t);function r(){return t.apply(this,arguments)||this}var n=r.prototype;return n.toString=function(i){var o=this.options.sheet,a=o?o.options.link:!1,s=a?j({},i,{allowEmpty:!0}):i;return ge(this.key,this.style,s)},r}(Bt),Gi={onCreateRule:function(r,n,e){return e.parent&&e.parent.type==="keyframes"?new Yi(r,n,e):null}},Hi=function(){function t(n,e,i){this.type="font-face",this.at="@font-face",this.isProcessed=!1,this.key=n,this.style=e,this.options=i}var r=t.prototype;return r.toString=function(e){var i=ce(e),o=i.linebreak;if(Array.isArray(this.style)){for(var a="",s=0;s<this.style.length;s++)a+=ge(this.at,this.style[s]),this.style[s+1]&&(a+=o);return a}return ge(this.at,this.style,e)},t}(),Ki=/@font-face/,Bi={onCreateRule:function(r,n,e){return Ki.test(r)?new Hi(r,n,e):null}},Xi=function(){function t(n,e,i){this.type="viewport",this.at="@viewport",this.isProcessed=!1,this.key=n,this.style=e,this.options=i}var r=t.prototype;return r.toString=function(e){return ge(this.key,this.style,e)},t}(),Zi={onCreateRule:function(r,n,e){return r==="@viewport"||r==="@-ms-viewport"?new Xi(r,n,e):null}},Qi=function(){function t(n,e,i){this.type="simple",this.isProcessed=!1,this.key=n,this.value=e,this.options=i}var r=t.prototype;return r.toString=function(e){if(Array.isArray(this.value)){for(var i="",o=0;o<this.value.length;o++)i+=this.key+" "+this.value[o]+";",this.value[o+1]&&(i+=`
|
5
|
+
`);return i}return this.key+" "+this.value+";"},t}(),eo={"@charset":!0,"@import":!0,"@namespace":!0},ro={onCreateRule:function(r,n,e){return r in eo?new Qi(r,n,e):null}},Jt=[Vi,Li,Ji,Gi,Bi,Zi,ro],to={process:!0},Yt={force:!0,process:!0},be=function(){function t(n){this.map={},this.raw={},this.index=[],this.counter=0,this.options=n,this.classes=n.classes,this.keyframes=n.keyframes}var r=t.prototype;return r.add=function(e,i,o){var a=this.options,s=a.parent,u=a.sheet,l=a.jss,d=a.Renderer,v=a.generateId,N=a.scoped,x=j({classes:this.classes,parent:s,sheet:u,jss:l,Renderer:d,generateId:v,scoped:N,name:e,keyframes:this.keyframes,selector:void 0},o),E=e;e in this.raw&&(E=e+"-d"+this.counter++),this.raw[E]=i,E in this.classes&&(x.selector="."+Dr(this.classes[E]));var R=le(E,i,x);if(!R)return null;this.register(R);var V=x.index===void 0?this.index.length:x.index;return this.index.splice(V,0,R),R},r.replace=function(e,i,o){var a=this.get(e),s=this.index.indexOf(a);a&&this.remove(a);var u=o;return s!==-1&&(u=j({},o,{index:s})),this.add(e,i,u)},r.get=function(e){return this.map[e]},r.remove=function(e){this.unregister(e),delete this.raw[e.key],this.index.splice(this.index.indexOf(e),1)},r.indexOf=function(e){return this.index.indexOf(e)},r.process=function(){var e=this.options.jss.plugins;this.index.slice(0).forEach(e.onProcessRule,e)},r.register=function(e){this.map[e.key]=e,e instanceof Ar?(this.map[e.selector]=e,e.id&&(this.classes[e.key]=e.id)):e instanceof _r&&this.keyframes&&(this.keyframes[e.name]=e.id)},r.unregister=function(e){delete this.map[e.key],e instanceof Ar?(delete this.map[e.selector],delete this.classes[e.key]):e instanceof _r&&delete this.keyframes[e.name]},r.update=function(){var e,i,o;if(typeof(arguments.length<=0?void 0:arguments[0])=="string"?(e=arguments.length<=0?void 0:arguments[0],i=arguments.length<=1?void 0:arguments[1],o=arguments.length<=2?void 0:arguments[2]):(i=arguments.length<=0?void 0:arguments[0],o=arguments.length<=1?void 0:arguments[1],e=null),e)this.updateOne(this.get(e),i,o);else for(var a=0;a<this.index.length;a++)this.updateOne(this.index[a],i,o)},r.updateOne=function(e,i,o){o===void 0&&(o=to);var a=this.options,s=a.jss.plugins,u=a.sheet;if(e.rules instanceof t){e.rules.update(i,o);return}var l=e.style;if(s.onUpdate(i,e,u,o),o.process&&l&&l!==e.style){s.onProcessStyle(e.style,e,u);for(var d in e.style){var v=e.style[d],N=l[d];v!==N&&e.prop(d,v,Yt)}for(var x in l){var E=e.style[x],R=l[x];E==null&&E!==R&&e.prop(x,null,Yt)}}},r.toString=function(e){for(var i="",o=this.options.sheet,a=o?o.options.link:!1,s=ce(e),u=s.linebreak,l=0;l<this.index.length;l++){var d=this.index[l],v=d.toString(e);!v&&!a||(i&&(i+=u),i+=v)}return i},t}(),Xt=function(){function t(n,e){this.attached=!1,this.deployed=!1,this.classes={},this.keyframes={},this.options=j({},e,{sheet:this,parent:this,classes:this.classes,keyframes:this.keyframes}),e.Renderer&&(this.renderer=new e.Renderer(this)),this.rules=new be(this.options);for(var i in n)this.rules.add(i,n[i]);this.rules.process()}var r=t.prototype;return r.attach=function(){return this.attached?this:(this.renderer&&this.renderer.attach(),this.attached=!0,this.deployed||this.deploy(),this)},r.detach=function(){return this.attached?(this.renderer&&this.renderer.detach(),this.attached=!1,this):this},r.addRule=function(e,i,o){var a=this.queue;this.attached&&!a&&(this.queue=[]);var s=this.rules.add(e,i,o);return s?(this.options.jss.plugins.onProcessRule(s),this.attached?(this.deployed&&(a?a.push(s):(this.insertRule(s),this.queue&&(this.queue.forEach(this.insertRule,this),this.queue=void 0))),s):(this.deployed=!1,s)):null},r.replaceRule=function(e,i,o){var a=this.rules.get(e);if(!a)return this.addRule(e,i,o);var s=this.rules.replace(e,i,o);return s&&this.options.jss.plugins.onProcessRule(s),this.attached?(this.deployed&&this.renderer&&(s?a.renderable&&this.renderer.replaceRule(a.renderable,s):this.renderer.deleteRule(a)),s):(this.deployed=!1,s)},r.insertRule=function(e){this.renderer&&this.renderer.insertRule(e)},r.addRules=function(e,i){var o=[];for(var a in e){var s=this.addRule(a,e[a],i);s&&o.push(s)}return o},r.getRule=function(e){return this.rules.get(e)},r.deleteRule=function(e){var i=typeof e=="object"?e:this.rules.get(e);return!i||this.attached&&!i.renderable?!1:(this.rules.remove(i),this.attached&&i.renderable&&this.renderer?this.renderer.deleteRule(i.renderable):!0)},r.indexOf=function(e){return this.rules.indexOf(e)},r.deploy=function(){return this.renderer&&this.renderer.deploy(),this.deployed=!0,this},r.update=function(){var e;return(e=this.rules).update.apply(e,arguments),this},r.updateOne=function(e,i,o){return this.rules.updateOne(e,i,o),this},r.toString=function(e){return this.rules.toString(e)},t}(),no=function(){function t(){this.plugins={internal:[],external:[]},this.registry={}}var r=t.prototype;return r.onCreateRule=function(e,i,o){for(var a=0;a<this.registry.onCreateRule.length;a++){var s=this.registry.onCreateRule[a](e,i,o);if(s)return s}return null},r.onProcessRule=function(e){if(!e.isProcessed){for(var i=e.options.sheet,o=0;o<this.registry.onProcessRule.length;o++)this.registry.onProcessRule[o](e,i);e.style&&this.onProcessStyle(e.style,e,i),e.isProcessed=!0}},r.onProcessStyle=function(e,i,o){for(var a=0;a<this.registry.onProcessStyle.length;a++)i.style=this.registry.onProcessStyle[a](i.style,i,o)},r.onProcessSheet=function(e){for(var i=0;i<this.registry.onProcessSheet.length;i++)this.registry.onProcessSheet[i](e)},r.onUpdate=function(e,i,o,a){for(var s=0;s<this.registry.onUpdate.length;s++)this.registry.onUpdate[s](e,i,o,a)},r.onChangeValue=function(e,i,o){for(var a=e,s=0;s<this.registry.onChangeValue.length;s++)a=this.registry.onChangeValue[s](a,i,o);return a},r.use=function(e,i){i===void 0&&(i={queue:"external"});var o=this.plugins[i.queue];o.indexOf(e)===-1&&(o.push(e),this.registry=[].concat(this.plugins.external,this.plugins.internal).reduce(function(a,s){for(var u in s)u in a?a[u].push(s[u]):process.env.NODE_ENV!=="production"&&k(!1,'[JSS] Unknown hook "'+u+'".');return a},{onCreateRule:[],onProcessRule:[],onProcessStyle:[],onProcessSheet:[],onChangeValue:[],onUpdate:[]}))},t}(),io=function(){function t(){this.registry=[]}var r=t.prototype;return r.add=function(e){var i=this.registry,o=e.options.index;if(i.indexOf(e)===-1){if(i.length===0||o>=this.index){i.push(e);return}for(var a=0;a<i.length;a++)if(i[a].options.index>o){i.splice(a,0,e);return}}},r.reset=function(){this.registry=[]},r.remove=function(e){var i=this.registry.indexOf(e);this.registry.splice(i,1)},r.toString=function(e){for(var i=e===void 0?{}:e,o=i.attached,a=ke(i,["attached"]),s=ce(a),u=s.linebreak,l="",d=0;d<this.registry.length;d++){var v=this.registry[d];o!=null&&v.attached!==o||(l&&(l+=u),l+=v.toString(a))}return l},Ye(t,[{key:"index",get:function(){return this.registry.length===0?0:this.registry[this.registry.length-1].options.index}}]),t}(),ye=new io,Nr=typeof globalThis<"u"?globalThis:typeof window<"u"&&window.Math===Math?window:typeof self<"u"&&self.Math===Math?self:Function("return this")(),Ir="2f1acc6c3a606b082e5eef5e54414ffb";Nr[Ir]==null&&(Nr[Ir]=0);var Gt=Nr[Ir]++,oo=1e10,Mr=function(r){r===void 0&&(r={});var n=0,e=function(o,a){n+=1,n>oo&&process.env.NODE_ENV!=="production"&&k(!1,"[JSS] You might have a memory leak. Rule counter is at "+n+".");var s="",u="";return a&&(a.options.classNamePrefix&&(u=a.options.classNamePrefix),a.options.jss.id!=null&&(s=String(a.options.jss.id))),r.minify?""+(u||"c")+Gt+s+n:u+o.key+"-"+Gt+(s?"-"+s:"")+"-"+n};return e},Zt=function(r){var n;return function(){return n||(n=r()),n}},ao=function(r,n){try{return r.attributeStyleMap?r.attributeStyleMap.get(n):r.style.getPropertyValue(n)}catch{return""}},so=function(r,n,e){try{var i=e;if(Array.isArray(e)&&(i=Z(e)),r.attributeStyleMap)r.attributeStyleMap.set(n,i);else{var o=i?i.indexOf("!important"):-1,a=o>-1?i.substr(0,o-1):i;r.style.setProperty(n,a,o>-1?"important":"")}}catch{return!1}return!0},uo=function(r,n){try{r.attributeStyleMap?r.attributeStyleMap.delete(n):r.style.removeProperty(n)}catch(e){process.env.NODE_ENV!=="production"&&k(!1,'[JSS] DOMException "'+e.message+'" was thrown. Tried to remove property "'+n+'".')}},fo=function(r,n){return r.selectorText=n,r.selectorText===n},Qt=Zt(function(){return document.querySelector("head")});function lo(t,r){for(var n=0;n<t.length;n++){var e=t[n];if(e.attached&&e.options.index>r.index&&e.options.insertionPoint===r.insertionPoint)return e}return null}function co(t,r){for(var n=t.length-1;n>=0;n--){var e=t[n];if(e.attached&&e.options.insertionPoint===r.insertionPoint)return e}return null}function ho(t){for(var r=Qt(),n=0;n<r.childNodes.length;n++){var e=r.childNodes[n];if(e.nodeType===8&&e.nodeValue.trim()===t)return e}return null}function vo(t){var r=ye.registry;if(r.length>0){var n=lo(r,t);if(n&&n.renderer)return{parent:n.renderer.element.parentNode,node:n.renderer.element};if(n=co(r,t),n&&n.renderer)return{parent:n.renderer.element.parentNode,node:n.renderer.element.nextSibling}}var e=t.insertionPoint;if(e&&typeof e=="string"){var i=ho(e);if(i)return{parent:i.parentNode,node:i.nextSibling};process.env.NODE_ENV!=="production"&&k(!1,'[JSS] Insertion point "'+e+'" not found.')}return!1}function po(t,r){var n=r.insertionPoint,e=vo(r);if(e!==!1&&e.parent){e.parent.insertBefore(t,e.node);return}if(n&&typeof n.nodeType=="number"){var i=n,o=i.parentNode;o?o.insertBefore(t,i.nextSibling):process.env.NODE_ENV!=="production"&&k(!1,"[JSS] Insertion point is not in the DOM.");return}Qt().appendChild(t)}var mo=Zt(function(){var t=document.querySelector('meta[property="csp-nonce"]');return t?t.getAttribute("content"):null}),Ht=function(r,n,e){try{"insertRule"in r?r.insertRule(n,e):"appendRule"in r&&r.appendRule(n)}catch(i){return process.env.NODE_ENV!=="production"&&k(!1,"[JSS] "+i.message),!1}return r.cssRules[e]},Kt=function(r,n){var e=r.cssRules.length;return n===void 0||n>e?e:n},yo=function(){var r=document.createElement("style");return r.textContent=`
|
6
|
+
`,r},go=function(){function t(n){this.getPropertyValue=ao,this.setProperty=so,this.removeProperty=uo,this.setSelector=fo,this.hasInsertedRules=!1,this.cssRules=[],n&&ye.add(n),this.sheet=n;var e=this.sheet?this.sheet.options:{},i=e.media,o=e.meta,a=e.element;this.element=a||yo(),this.element.setAttribute("data-jss",""),i&&this.element.setAttribute("media",i),o&&this.element.setAttribute("data-meta",o);var s=mo();s&&this.element.setAttribute("nonce",s)}var r=t.prototype;return r.attach=function(){if(!(this.element.parentNode||!this.sheet)){po(this.element,this.sheet.options);var e=!!(this.sheet&&this.sheet.deployed);this.hasInsertedRules&&e&&(this.hasInsertedRules=!1,this.deploy())}},r.detach=function(){if(this.sheet){var e=this.element.parentNode;e&&e.removeChild(this.element),this.sheet.options.link&&(this.cssRules=[],this.element.textContent=`
|
7
|
+
`)}},r.deploy=function(){var e=this.sheet;if(e){if(e.options.link){this.insertRules(e.rules);return}this.element.textContent=`
|
8
|
+
`+e.toString()+`
|
9
|
+
`}},r.insertRules=function(e,i){for(var o=0;o<e.index.length;o++)this.insertRule(e.index[o],o,i)},r.insertRule=function(e,i,o){if(o===void 0&&(o=this.element.sheet),e.rules){var a=e,s=o;if(e.type==="conditional"||e.type==="keyframes"){var u=Kt(o,i);if(s=Ht(o,a.toString({children:!1}),u),s===!1)return!1;this.refCssRule(e,u,s)}return this.insertRules(a.rules,s),s}var l=e.toString();if(!l)return!1;var d=Kt(o,i),v=Ht(o,l,d);return v===!1?!1:(this.hasInsertedRules=!0,this.refCssRule(e,d,v),v)},r.refCssRule=function(e,i,o){e.renderable=o,e.options.parent instanceof Xt&&this.cssRules.splice(i,0,o)},r.deleteRule=function(e){var i=this.element.sheet,o=this.indexOf(e);return o===-1?!1:(i.deleteRule(o),this.cssRules.splice(o,1),!0)},r.indexOf=function(e){return this.cssRules.indexOf(e)},r.replaceRule=function(e,i){var o=this.indexOf(e);return o===-1?!1:(this.element.sheet.deleteRule(o),this.cssRules.splice(o,1),this.insertRule(i,o))},r.getRules=function(){return this.element.sheet.cssRules},t}(),bo=0,So=function(){function t(n){this.id=bo++,this.version="10.10.0",this.plugins=new no,this.options={id:{minify:!1},createGenerateId:Mr,Renderer:K?go:null,plugins:[]},this.generateId=Mr({minify:!1});for(var e=0;e<Jt.length;e++)this.plugins.use(Jt[e],{queue:"internal"});this.setup(n)}var r=t.prototype;return r.setup=function(e){return e===void 0&&(e={}),e.createGenerateId&&(this.options.createGenerateId=e.createGenerateId),e.id&&(this.options.id=j({},this.options.id,e.id)),(e.createGenerateId||e.id)&&(this.generateId=this.options.createGenerateId(this.options.id)),e.insertionPoint!=null&&(this.options.insertionPoint=e.insertionPoint),"Renderer"in e&&(this.options.Renderer=e.Renderer),e.plugins&&this.use.apply(this,e.plugins),this},r.createStyleSheet=function(e,i){i===void 0&&(i={});var o=i,a=o.index;typeof a!="number"&&(a=ye.index===0?0:ye.index+1);var s=new Xt(e,j({},i,{jss:this,generateId:i.generateId||this.generateId,insertionPoint:this.options.insertionPoint,Renderer:this.options.Renderer,index:a}));return this.plugins.onProcessSheet(s),s},r.removeStyleSheet=function(e){return e.detach(),ye.remove(e),this},r.createRule=function(e,i,o){if(i===void 0&&(i={}),o===void 0&&(o={}),typeof e=="object")return this.createRule(void 0,e,i);var a=j({},o,{name:e,jss:this,Renderer:this.options.Renderer});a.generateId||(a.generateId=this.generateId),a.classes||(a.classes={}),a.keyframes||(a.keyframes={});var s=le(e,i,a);return s&&this.plugins.onProcessRule(s),s},r.use=function(){for(var e=this,i=arguments.length,o=new Array(i),a=0;a<i;a++)o[a]=arguments[a];return o.forEach(function(s){e.plugins.use(s)}),this},t}(),Se=function(r){return new So(r)},Vr=function(){function t(){this.length=0,this.sheets=new WeakMap}var r=t.prototype;return r.get=function(e){var i=this.sheets.get(e);return i&&i.sheet},r.add=function(e,i){this.sheets.has(e)||(this.length++,this.sheets.set(e,{sheet:i,refs:0}))},r.manage=function(e){var i=this.sheets.get(e);if(i)return i.refs===0&&i.sheet.attach(),i.refs++,i.sheet;k(!1,"[JSS] SheetsManager: can't find sheet to manage")},r.unmanage=function(e){var i=this.sheets.get(e);i?i.refs>0&&(i.refs--,i.refs===0&&i.sheet.detach()):k(!1,"SheetsManager: can't find sheet to unmanage")},Ye(t,[{key:"size",get:function(){return this.length}}]),t}(),He=typeof CSS=="object"&&CSS!=null&&"number"in CSS;function $r(t){var r=null;for(var n in t){var e=t[n],i=typeof e;if(i==="function")r||(r={}),r[n]=e;else if(i==="object"&&e!==null&&!Array.isArray(e)){var o=$r(e);o&&(r||(r={}),r[n]=o)}}return r}var zs=Se();var en=Date.now(),Wr="fnValues"+en,zr="fnStyle"+ ++en,xo=function(){return{onCreateRule:function(n,e,i){if(typeof e!="function")return null;var o=le(n,{},i);return o[zr]=e,o},onProcessStyle:function(n,e){if(Wr in e||zr in e)return n;var i={};for(var o in n){var a=n[o];typeof a=="function"&&(delete n[o],i[o]=a)}return e[Wr]=i,n},onUpdate:function(n,e,i,o){var a=e,s=a[zr];if(s&&(a.style=s(n)||{},process.env.NODE_ENV==="development")){for(var u in a.style)if(typeof a.style[u]=="function"){process.env.NODE_ENV!=="production"&&k(!1,"[JSS] Function values inside function rules are not supported.");break}}var l=a[Wr];if(l)for(var d in l)a.prop(d,l[d](n),o)}}},rn=xo;function Lr(t){var r,n=t.Symbol;return typeof n=="function"?n.observable?r=n.observable:(r=n("observable"),n.observable=r):r="@@observable",r}var de;typeof self<"u"?de=self:typeof window<"u"?de=window:typeof global<"u"?de=global:typeof module<"u"?de=module:de=Function("return this")();var Po=Lr(de),Ur=Po;var tn=function(r){return r&&r[Ur]&&r===r[Ur]()},Ro=function(r){return{onCreateRule:function(e,i,o){if(!tn(i))return null;var a=i,s=le(e,{},o);return a.subscribe(function(u){for(var l in u)s.prop(l,u[l],r)}),s},onProcessRule:function(e){if(!(e&&e.type!=="style")){var i=e,o=i.style,a=function(d){var v=o[d];if(!tn(v))return"continue";delete o[d],v.subscribe({next:function(x){i.prop(d,x,r)}})};for(var s in o)var u=a(s)}}}},nn=Ro;var wo=/;\n/,To=function(r){for(var n={},e=r.split(wo),i=0;i<e.length;i++){var o=(e[i]||"").trim();if(o){var a=o.indexOf(":");if(a===-1){process.env.NODE_ENV!=="production"&&k(!1,'[JSS] Malformed CSS string "'+o+'"');continue}var s=o.substr(0,a).trim(),u=o.substr(a+1).trim();n[s]=u}}return n},Oo=function(r){typeof r.style=="string"&&(r.style=To(r.style))};function Eo(){return{onProcessRule:Oo}}var on=Eo;var Q="@global",qr="@global ",ko=function(){function t(n,e,i){this.type="global",this.at=Q,this.isProcessed=!1,this.key=n,this.options=i,this.rules=new be(j({},i,{parent:this}));for(var o in e)this.rules.add(o,e[o]);this.rules.process()}var r=t.prototype;return r.getRule=function(e){return this.rules.get(e)},r.addRule=function(e,i,o){var a=this.rules.add(e,i,o);return a&&this.options.jss.plugins.onProcessRule(a),a},r.replaceRule=function(e,i,o){var a=this.rules.replace(e,i,o);return a&&this.options.jss.plugins.onProcessRule(a),a},r.indexOf=function(e){return this.rules.indexOf(e)},r.toString=function(e){return this.rules.toString(e)},t}(),Co=function(){function t(n,e,i){this.type="global",this.at=Q,this.isProcessed=!1,this.key=n,this.options=i;var o=n.substr(qr.length);this.rule=i.jss.createRule(o,e,j({},i,{parent:this}))}var r=t.prototype;return r.toString=function(e){return this.rule?this.rule.toString(e):""},t}(),Ao=/\s*,\s*/g;function an(t,r){for(var n=t.split(Ao),e="",i=0;i<n.length;i++)e+=r+" "+n[i].trim(),n[i+1]&&(e+=", ");return e}function _o(t,r){var n=t.options,e=t.style,i=e?e[Q]:null;if(i){for(var o in i)r.addRule(o,i[o],j({},n,{selector:an(o,t.selector)}));delete e[Q]}}function jo(t,r){var n=t.options,e=t.style;for(var i in e)if(!(i[0]!=="@"||i.substr(0,Q.length)!==Q)){var o=an(i.substr(Q.length),t.selector);r.addRule(o,e[i],j({},n,{selector:o})),delete e[i]}}function No(){function t(n,e,i){if(!n)return null;if(n===Q)return new ko(n,e,i);if(n[0]==="@"&&n.substr(0,qr.length)===qr)return new Co(n,e,i);var o=i.parent;return o&&(o.type==="global"||o.options.parent&&o.options.parent.type==="global")&&(i.scoped=!1),!i.selector&&i.scoped===!1&&(i.selector=n),null}function r(n,e){n.type!=="style"||!e||(_o(n,e),jo(n,e))}return{onCreateRule:t,onProcessRule:r}}var sn=No;var Ke=function(r){return r&&typeof r=="object"&&!Array.isArray(r)},Fr="extendCurrValue"+Date.now();function Io(t,r,n,e){var i=typeof t.extend;if(i==="string"){if(!n)return;var o=n.getRule(t.extend);if(!o)return;if(o===r){process.env.NODE_ENV!=="production"&&k(!1,`[JSS] A rule tries to extend itself
|
10
|
+
`+r.toString());return}var a=o.options.parent;if(a){var s=a.rules.raw[t.extend];oe(s,r,n,e)}return}if(Array.isArray(t.extend)){for(var u=0;u<t.extend.length;u++){var l=t.extend[u],d=typeof l=="string"?j({},t,{extend:l}):t.extend[u];oe(d,r,n,e)}return}for(var v in t.extend){if(v==="extend"){oe(t.extend.extend,r,n,e);continue}if(Ke(t.extend[v])){v in e||(e[v]={}),oe(t.extend[v],r,n,e[v]);continue}e[v]=t.extend[v]}}function Mo(t,r,n,e){for(var i in t)if(i!=="extend"){if(Ke(e[i])&&Ke(t[i])){oe(t[i],r,n,e[i]);continue}if(Ke(t[i])){e[i]=oe(t[i],r,n);continue}e[i]=t[i]}}function oe(t,r,n,e){return e===void 0&&(e={}),Io(t,r,n,e),Mo(t,r,n,e),e}function Do(){function t(n,e,i){return"extend"in n?oe(n,e,i):n}function r(n,e,i){if(e!=="extend")return n;if(n==null||n===!1){for(var o in i[Fr])i.prop(o,null);return i[Fr]=null,null}if(typeof n=="object"){for(var a in n)i.prop(a,n[a]);i[Fr]=n}return null}return{onProcessStyle:t,onChangeValue:r}}var un=Do;var fn=/\s*,\s*/g,Vo=/&/g,$o=/\$([\w-]+)/g;function Wo(){function t(i,o){return function(a,s){var u=i.getRule(s)||o&&o.getRule(s);return u?u.selector:(process.env.NODE_ENV!=="production"&&k(!1,'[JSS] Could not find the referenced rule "'+s+'" in "'+(i.options.meta||i.toString())+'".'),s)}}function r(i,o){for(var a=o.split(fn),s=i.split(fn),u="",l=0;l<a.length;l++)for(var d=a[l],v=0;v<s.length;v++){var N=s[v];u&&(u+=", "),u+=N.indexOf("&")!==-1?N.replace(Vo,d):d+" "+N}return u}function n(i,o,a){if(a)return j({},a,{index:a.index+1});var s=i.options.nestingLevel;s=s===void 0?1:s+1;var u=j({},i.options,{nestingLevel:s,index:o.indexOf(i)+1});return delete u.name,u}function e(i,o,a){if(o.type!=="style")return i;var s=o,u=s.options.parent,l,d;for(var v in i){var N=v.indexOf("&")!==-1,x=v[0]==="@";if(!(!N&&!x)){if(l=n(s,u,l),N){var E=r(v,s.selector);d||(d=t(u,a)),E=E.replace($o,d);var R=s.key+"-"+v;"replaceRule"in u?u.replaceRule(R,i[v],j({},l,{selector:E})):u.addRule(R,i[v],j({},l,{selector:E}))}else x&&u.addRule(v,{},l).addRule(s.key,i[v],{selector:s.selector});delete i[v]}}return i}return{onProcessStyle:e}}var ln=Wo;function Jr(t,r){if(!r)return!0;if(Array.isArray(r)){for(var n=0;n<r.length;n++){var e=Jr(t,r[n]);if(!e)return!1}return!0}if(r.indexOf(" ")>-1)return Jr(t,r.split(" "));var i=t.options.parent;if(r[0]==="$"){var o=i.getRule(r.substr(1));return o?o===t?(process.env.NODE_ENV!=="production"&&k(!1,`[JSS] Cyclic composition detected.
|
11
|
+
`+t.toString()),!1):(i.classes[t.key]+=" "+i.classes[o.key],!0):(process.env.NODE_ENV!=="production"&&k(!1,`[JSS] Referenced rule is not defined.
|
12
|
+
`+t.toString()),!1)}return i.classes[t.key]+=" "+r,!0}function zo(){function t(r,n){return"composes"in r&&(Jr(n,r.composes),delete r.composes),r}return{onProcessStyle:t}}var cn=zo;var Lo=/[A-Z]/g,Uo=/^ms-/,Yr={};function qo(t){return"-"+t.toLowerCase()}function Fo(t){if(Yr.hasOwnProperty(t))return Yr[t];var r=t.replace(Lo,qo);return Yr[t]=Uo.test(r)?"-"+r:r}var Gr=Fo;function Be(t){var r={};for(var n in t){var e=n.indexOf("--")===0?n:Gr(n);r[e]=t[n]}return t.fallbacks&&(Array.isArray(t.fallbacks)?r.fallbacks=t.fallbacks.map(Be):r.fallbacks=Be(t.fallbacks)),r}function Jo(){function t(n){if(Array.isArray(n)){for(var e=0;e<n.length;e++)n[e]=Be(n[e]);return n}return Be(n)}function r(n,e,i){if(e.indexOf("--")===0)return n;var o=Gr(e);return e===o?n:(i.prop(o,n),null)}return{onProcessStyle:t,onChangeValue:r}}var dn=Jo;var f=He&&CSS?CSS.px:"px",Xe=He&&CSS?CSS.ms:"ms",he=He&&CSS?CSS.percent:"%",Yo={"animation-delay":Xe,"animation-duration":Xe,"background-position":f,"background-position-x":f,"background-position-y":f,"background-size":f,border:f,"border-bottom":f,"border-bottom-left-radius":f,"border-bottom-right-radius":f,"border-bottom-width":f,"border-left":f,"border-left-width":f,"border-radius":f,"border-right":f,"border-right-width":f,"border-top":f,"border-top-left-radius":f,"border-top-right-radius":f,"border-top-width":f,"border-width":f,"border-block":f,"border-block-end":f,"border-block-end-width":f,"border-block-start":f,"border-block-start-width":f,"border-block-width":f,"border-inline":f,"border-inline-end":f,"border-inline-end-width":f,"border-inline-start":f,"border-inline-start-width":f,"border-inline-width":f,"border-start-start-radius":f,"border-start-end-radius":f,"border-end-start-radius":f,"border-end-end-radius":f,margin:f,"margin-bottom":f,"margin-left":f,"margin-right":f,"margin-top":f,"margin-block":f,"margin-block-end":f,"margin-block-start":f,"margin-inline":f,"margin-inline-end":f,"margin-inline-start":f,padding:f,"padding-bottom":f,"padding-left":f,"padding-right":f,"padding-top":f,"padding-block":f,"padding-block-end":f,"padding-block-start":f,"padding-inline":f,"padding-inline-end":f,"padding-inline-start":f,"mask-position-x":f,"mask-position-y":f,"mask-size":f,height:f,width:f,"min-height":f,"max-height":f,"min-width":f,"max-width":f,bottom:f,left:f,top:f,right:f,inset:f,"inset-block":f,"inset-block-end":f,"inset-block-start":f,"inset-inline":f,"inset-inline-end":f,"inset-inline-start":f,"box-shadow":f,"text-shadow":f,"column-gap":f,"column-rule":f,"column-rule-width":f,"column-width":f,"font-size":f,"font-size-delta":f,"letter-spacing":f,"text-decoration-thickness":f,"text-indent":f,"text-stroke":f,"text-stroke-width":f,"word-spacing":f,motion:f,"motion-offset":f,outline:f,"outline-offset":f,"outline-width":f,perspective:f,"perspective-origin-x":he,"perspective-origin-y":he,"transform-origin":he,"transform-origin-x":he,"transform-origin-y":he,"transform-origin-z":he,"transition-delay":Xe,"transition-duration":Xe,"vertical-align":f,"flex-basis":f,"shape-margin":f,size:f,gap:f,grid:f,"grid-gap":f,"row-gap":f,"grid-row-gap":f,"grid-column-gap":f,"grid-template-rows":f,"grid-template-columns":f,"grid-auto-rows":f,"grid-auto-columns":f,"box-shadow-x":f,"box-shadow-y":f,"box-shadow-blur":f,"box-shadow-spread":f,"font-line-height":f,"text-shadow-x":f,"text-shadow-y":f,"text-shadow-blur":f};function hn(t){var r=/(-[a-z])/g,n=function(a){return a[1].toUpperCase()},e={};for(var i in t)e[i]=t[i],e[i.replace(r,n)]=t[i];return e}var Go=hn(Yo);function xe(t,r,n){if(r==null)return r;if(Array.isArray(r))for(var e=0;e<r.length;e++)r[e]=xe(t,r[e],n);else if(typeof r=="object")if(t==="fallbacks")for(var i in r)r[i]=xe(i,r[i],n);else for(var o in r)r[o]=xe(t+"-"+o,r[o],n);else if(typeof r=="number"&&isNaN(r)===!1){var a=n[t]||Go[t];return a&&!(r===0&&a===f)?typeof a=="function"?a(r).toString():""+r+a:r.toString()}return r}function Ho(t){t===void 0&&(t={});var r=hn(t);function n(i,o){if(o.type!=="style")return i;for(var a in i)i[a]=xe(a,i[a],r);return i}function e(i,o){return xe(o,i,r)}return{onProcessStyle:n,onChangeValue:e}}var vn=Ho;var Ko={"background-size":!0,"background-position":!0,border:!0,"border-bottom":!0,"border-left":!0,"border-top":!0,"border-right":!0,"border-radius":!0,"border-image":!0,"border-width":!0,"border-style":!0,"border-color":!0,"box-shadow":!0,flex:!0,margin:!0,padding:!0,outline:!0,"transform-origin":!0,transform:!0,transition:!0},Bo={position:!0,size:!0},Ze={padding:{top:0,right:0,bottom:0,left:0},margin:{top:0,right:0,bottom:0,left:0},background:{attachment:null,color:null,image:null,position:null,repeat:null},border:{width:null,style:null,color:null},"border-top":{width:null,style:null,color:null},"border-right":{width:null,style:null,color:null},"border-bottom":{width:null,style:null,color:null},"border-left":{width:null,style:null,color:null},outline:{width:null,style:null,color:null},"list-style":{type:null,position:null,image:null},transition:{property:null,duration:null,"timing-function":null,timingFunction:null,delay:null},animation:{name:null,duration:null,"timing-function":null,timingFunction:null,delay:null,"iteration-count":null,iterationCount:null,direction:null,"fill-mode":null,fillMode:null,"play-state":null,playState:null},"box-shadow":{x:0,y:0,blur:0,spread:0,color:null,inset:null},"text-shadow":{x:0,y:0,blur:null,color:null}},Hr={border:{radius:"border-radius",image:"border-image",width:"border-width",style:"border-style",color:"border-color"},"border-bottom":{width:"border-bottom-width",style:"border-bottom-style",color:"border-bottom-color"},"border-top":{width:"border-top-width",style:"border-top-style",color:"border-top-color"},"border-left":{width:"border-left-width",style:"border-left-style",color:"border-left-color"},"border-right":{width:"border-right-width",style:"border-right-style",color:"border-right-color"},background:{size:"background-size",image:"background-image"},font:{style:"font-style",variant:"font-variant",weight:"font-weight",stretch:"font-stretch",size:"font-size",family:"font-family",lineHeight:"line-height","line-height":"line-height"},flex:{grow:"flex-grow",basis:"flex-basis",direction:"flex-direction",wrap:"flex-wrap",flow:"flex-flow",shrink:"flex-shrink"},align:{self:"align-self",items:"align-items",content:"align-content"},grid:{"template-columns":"grid-template-columns",templateColumns:"grid-template-columns","template-rows":"grid-template-rows",templateRows:"grid-template-rows","template-areas":"grid-template-areas",templateAreas:"grid-template-areas",template:"grid-template","auto-columns":"grid-auto-columns",autoColumns:"grid-auto-columns","auto-rows":"grid-auto-rows",autoRows:"grid-auto-rows","auto-flow":"grid-auto-flow",autoFlow:"grid-auto-flow",row:"grid-row",column:"grid-column","row-start":"grid-row-start",rowStart:"grid-row-start","row-end":"grid-row-end",rowEnd:"grid-row-end","column-start":"grid-column-start",columnStart:"grid-column-start","column-end":"grid-column-end",columnEnd:"grid-column-end",area:"grid-area",gap:"grid-gap","row-gap":"grid-row-gap",rowGap:"grid-row-gap","column-gap":"grid-column-gap",columnGap:"grid-column-gap"}};function Xo(t,r,n){return t.map(function(e){return mn(e,r,n,!1,!0)})}function pn(t,r,n,e){return n[r]==null?t:t.length===0?[]:Array.isArray(t[0])?pn(t[0],r,n,e):typeof t[0]=="object"?Xo(t,r,e):[t]}function mn(t,r,n,e,i){if(!(Ze[r]||Hr[r]))return[];var o=[];if(Hr[r]&&(t=Zo(t,n,Hr[r],e)),Object.keys(t).length)for(var a in Ze[r]){if(t[a]){Array.isArray(t[a])?o.push(Bo[a]===null?t[a]:t[a].join(" ")):o.push(t[a]);continue}Ze[r][a]!=null&&o.push(Ze[r][a])}return!o.length||i?o:[o]}function Zo(t,r,n,e){for(var i in n){var o=n[i];if(typeof t[i]<"u"&&(e||!r.prop(o))){var a,s=Pe((a={},a[o]=t[i],a),r)[o];e?r.style.fallbacks[o]=s:r.style[o]=s}delete t[i]}return t}function Pe(t,r,n){for(var e in t){var i=t[e];if(Array.isArray(i)){if(!Array.isArray(i[0])){if(e==="fallbacks"){for(var o=0;o<t.fallbacks.length;o++)t.fallbacks[o]=Pe(t.fallbacks[o],r,!0);continue}t[e]=pn(i,e,Ko,r),t[e].length||delete t[e]}}else if(typeof i=="object"){if(e==="fallbacks"){t.fallbacks=Pe(t.fallbacks,r,!0);continue}t[e]=mn(i,e,r,n),t[e].length||delete t[e]}else t[e]===""&&delete t[e]}return t}function Qo(){function t(r,n){if(!r||n.type!=="style")return r;if(Array.isArray(r)){for(var e=0;e<r.length;e++)r[e]=Pe(r[e],n);return r}return Pe(r,n)}return{onProcessStyle:t}}var yn=Qo;function Re(t,r){(r==null||r>t.length)&&(r=t.length);for(var n=0,e=Array(r);n<r;n++)e[n]=t[n];return e}function gn(t){if(Array.isArray(t))return Re(t)}function bn(t){if(typeof Symbol<"u"&&t[Symbol.iterator]!=null||t["@@iterator"]!=null)return Array.from(t)}function Sn(t,r){if(t){if(typeof t=="string")return Re(t,r);var n={}.toString.call(t).slice(8,-1);return n==="Object"&&t.constructor&&(n=t.constructor.name),n==="Map"||n==="Set"?Array.from(t):n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?Re(t,r):void 0}}function xn(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
|
13
|
+
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function Pn(t){return gn(t)||bn(t)||Sn(t)||xn()}var we="",Kr="",On="",En="",ea=K&&"ontouchstart"in document.documentElement;if(K){Qe={Moz:"-moz-",ms:"-ms-",O:"-o-",Webkit:"-webkit-"},Rn=document.createElement("p"),er=Rn.style,wn="Transform";for(rr in Qe)if(rr+wn in er){we=rr,Kr=Qe[rr];break}we==="Webkit"&&"msHyphens"in er&&(we="ms",Kr=Qe.ms,En="edge"),we==="Webkit"&&"-apple-trailing-word"in er&&(On="apple")}var Qe,Rn,er,wn,rr,m={js:we,css:Kr,vendor:On,browser:En,isTouch:ea};function kn(t){return t[1]==="-"||m.js==="ms"?t:"@"+m.css+"keyframes"+t.substr(10)}var ra={noPrefill:["appearance"],supportedProperty:function(r){return r!=="appearance"?!1:m.js==="ms"?"-webkit-"+r:m.css+r}},ta={noPrefill:["color-adjust"],supportedProperty:function(r){return r!=="color-adjust"?!1:m.js==="Webkit"?m.css+"print-"+r:r}},na=/[-\s]+(.)?/g;function ia(t,r){return r?r.toUpperCase():""}function Br(t){return t.replace(na,ia)}function re(t){return Br("-"+t)}var oa={noPrefill:["mask"],supportedProperty:function(r,n){if(!/^mask/.test(r))return!1;if(m.js==="Webkit"){var e="mask-image";if(Br(e)in n)return r;if(m.js+re(e)in n)return m.css+r}return r}},aa={noPrefill:["text-orientation"],supportedProperty:function(r){return r!=="text-orientation"?!1:m.vendor==="apple"&&!m.isTouch?m.css+r:r}},sa={noPrefill:["transform"],supportedProperty:function(r,n,e){return r!=="transform"?!1:e.transform?r:m.css+r}},ua={noPrefill:["transition"],supportedProperty:function(r,n,e){return r!=="transition"?!1:e.transition?r:m.css+r}},fa={noPrefill:["writing-mode"],supportedProperty:function(r){return r!=="writing-mode"?!1:m.js==="Webkit"||m.js==="ms"&&m.browser!=="edge"?m.css+r:r}},la={noPrefill:["user-select"],supportedProperty:function(r){return r!=="user-select"?!1:m.js==="Moz"||m.js==="ms"||m.vendor==="apple"?m.css+r:r}},ca={supportedProperty:function(r,n){if(!/^break-/.test(r))return!1;if(m.js==="Webkit"){var e="WebkitColumn"+re(r);return e in n?m.css+"column-"+r:!1}if(m.js==="Moz"){var i="page"+re(r);return i in n?"page-"+r:!1}return!1}},da={supportedProperty:function(r,n){if(!/^(border|margin|padding)-inline/.test(r))return!1;if(m.js==="Moz")return r;var e=r.replace("-inline","");return m.js+re(e)in n?m.css+e:!1}},ha={supportedProperty:function(r,n){return Br(r)in n?r:!1}},va={supportedProperty:function(r,n){var e=re(r);return r[0]==="-"||r[0]==="-"&&r[1]==="-"?r:m.js+e in n?m.css+r:m.js!=="Webkit"&&"Webkit"+e in n?"-webkit-"+r:!1}},pa={supportedProperty:function(r){return r.substring(0,11)!=="scroll-snap"?!1:m.js==="ms"?""+m.css+r:r}},ma={supportedProperty:function(r){return r!=="overscroll-behavior"?!1:m.js==="ms"?m.css+"scroll-chaining":r}},ya={"flex-grow":"flex-positive","flex-shrink":"flex-negative","flex-basis":"flex-preferred-size","justify-content":"flex-pack",order:"flex-order","align-items":"flex-align","align-content":"flex-line-pack"},ga={supportedProperty:function(r,n){var e=ya[r];return e&&m.js+re(e)in n?m.css+e:!1}},Cn={flex:"box-flex","flex-grow":"box-flex","flex-direction":["box-orient","box-direction"],order:"box-ordinal-group","align-items":"box-align","flex-flow":["box-orient","box-direction"],"justify-content":"box-pack"},ba=Object.keys(Cn),Sa=function(r){return m.css+r},xa={supportedProperty:function(r,n,e){var i=e.multiple;if(ba.indexOf(r)>-1){var o=Cn[r];if(!Array.isArray(o))return m.js+re(o)in n?m.css+o:!1;if(!i)return!1;for(var a=0;a<o.length;a++)if(!(m.js+re(o[0])in n))return!1;return o.map(Sa)}return!1}},An=[ra,ta,oa,aa,sa,ua,fa,la,ca,da,ha,va,pa,ma,ga,xa],Tn=An.filter(function(t){return t.supportedProperty}).map(function(t){return t.supportedProperty}),Pa=An.filter(function(t){return t.noPrefill}).reduce(function(t,r){return t.push.apply(t,Pn(r.noPrefill)),t},[]),Te,ae={};if(K){Te=document.createElement("p"),tr=window.getComputedStyle(document.documentElement,"");for(nr in tr)isNaN(nr)||(ae[tr[nr]]=tr[nr]);Pa.forEach(function(t){return delete ae[t]})}var tr,nr;function ir(t,r){if(r===void 0&&(r={}),!Te)return t;if(process.env.NODE_ENV!=="benchmark"&&ae[t]!=null)return ae[t];(t==="transition"||t==="transform")&&(r[t]=t in Te.style);for(var n=0;n<Tn.length&&(ae[t]=Tn[n](t,Te.style,r),!ae[t]);n++);try{Te.style[t]=""}catch{return!1}return ae[t]}var ve={},Ra={transition:1,"transition-property":1,"-webkit-transition":1,"-webkit-transition-property":1},wa=/(^\s*[\w-]+)|, (\s*[\w-]+)(?![^()]*\))/g,ee;function Ta(t,r,n){if(r==="var")return"var";if(r==="all")return"all";if(n==="all")return", all";var e=r?ir(r):", "+ir(n);return e||r||n}K&&(ee=document.createElement("p"));function Xr(t,r){var n=r;if(!ee||t==="content")return r;if(typeof n!="string"||!isNaN(parseInt(n,10)))return n;var e=t+n;if(process.env.NODE_ENV!=="benchmark"&&ve[e]!=null)return ve[e];try{ee.style[t]=n}catch{return ve[e]=!1,!1}if(Ra[t])n=n.replace(wa,Ta);else if(ee.style[t]===""&&(n=m.css+n,n==="-ms-flex"&&(ee.style[t]="-ms-flexbox"),ee.style[t]=n,ee.style[t]===""))return ve[e]=!1,!1;return ee.style[t]="",ve[e]=n,ve[e]}function Oa(){function t(i){if(i.type==="keyframes"){var o=i;o.at=kn(o.at)}}function r(i){for(var o in i){var a=i[o];if(o==="fallbacks"&&Array.isArray(a)){i[o]=a.map(r);continue}var s=!1,u=ir(o);u&&u!==o&&(s=!0);var l=!1,d=Xr(u,Z(a));d&&d!==a&&(l=!0),(s||l)&&(s&&delete i[o],i[u||o]=d||a)}return i}function n(i,o){return o.type!=="style"?i:r(i)}function e(i,o){return Xr(o,Z(i))||i}return{onProcessRule:t,onProcessStyle:n,onChangeValue:e}}var _n=Oa;function Ea(){var t=function(n,e){return n.length===e.length?n>e?1:-1:n.length-e.length};return{onProcessStyle:function(n,e){if(e.type!=="style")return n;for(var i={},o=Object.keys(n).sort(t),a=0;a<o.length;a++)i[o[a]]=n[o[a]];return i}}}var jn=Ea;var ka=function(r){return r===void 0&&(r={}),{plugins:[rn(),nn(r.observable),on(),sn(),un(),ln(),cn(),dn(),vn(r.defaultUnit),yn(),_n(),jn()]}},or=ka;function Ca(t){var r={};return function(n){return r[n]===void 0&&(r[n]=t(n)),r[n]}}var Nn=Ca;var Aa=/^((children|dangerouslySetInnerHTML|key|ref|autoFocus|defaultValue|defaultChecked|innerHTML|suppressContentEditableWarning|suppressHydrationWarning|valueLink|accept|acceptCharset|accessKey|action|allow|allowUserMedia|allowPaymentRequest|allowFullScreen|allowTransparency|alt|async|autoComplete|autoPlay|capture|cellPadding|cellSpacing|challenge|charSet|checked|cite|classID|className|cols|colSpan|content|contentEditable|contextMenu|controls|controlsList|coords|crossOrigin|data|dateTime|default|defer|dir|disabled|download|draggable|encType|form|formAction|formEncType|formMethod|formNoValidate|formTarget|frameBorder|headers|height|hidden|high|href|hrefLang|htmlFor|httpEquiv|id|inputMode|integrity|is|keyParams|keyType|kind|label|lang|list|loop|low|marginHeight|marginWidth|max|maxLength|media|mediaGroup|method|min|minLength|multiple|muted|name|nonce|noValidate|open|optimum|pattern|placeholder|playsInline|poster|preload|profile|radioGroup|readOnly|referrerPolicy|rel|required|reversed|role|rows|rowSpan|sandbox|scope|scoped|scrolling|seamless|selected|shape|size|sizes|slot|span|spellCheck|src|srcDoc|srcLang|srcSet|start|step|style|summary|tabIndex|target|title|type|useMap|value|width|wmode|wrap|about|datatype|inlist|prefix|property|resource|typeof|vocab|autoCapitalize|autoCorrect|autoSave|color|itemProp|itemScope|itemType|itemID|itemRef|results|security|unselectable|accentHeight|accumulate|additive|alignmentBaseline|allowReorder|alphabetic|amplitude|arabicForm|ascent|attributeName|attributeType|autoReverse|azimuth|baseFrequency|baselineShift|baseProfile|bbox|begin|bias|by|calcMode|capHeight|clip|clipPathUnits|clipPath|clipRule|colorInterpolation|colorInterpolationFilters|colorProfile|colorRendering|contentScriptType|contentStyleType|cursor|cx|cy|d|decelerate|descent|diffuseConstant|direction|display|divisor|dominantBaseline|dur|dx|dy|edgeMode|elevation|enableBackground|end|exponent|externalResourcesRequired|fill|fillOpacity|fillRule|filter|filterRes|filterUnits|floodColor|floodOpacity|focusable|fontFamily|fontSize|fontSizeAdjust|fontStretch|fontStyle|fontVariant|fontWeight|format|from|fr|fx|fy|g1|g2|glyphName|glyphOrientationHorizontal|glyphOrientationVertical|glyphRef|gradientTransform|gradientUnits|hanging|horizAdvX|horizOriginX|ideographic|imageRendering|in|in2|intercept|k|k1|k2|k3|k4|kernelMatrix|kernelUnitLength|kerning|keyPoints|keySplines|keyTimes|lengthAdjust|letterSpacing|lightingColor|limitingConeAngle|local|markerEnd|markerMid|markerStart|markerHeight|markerUnits|markerWidth|mask|maskContentUnits|maskUnits|mathematical|mode|numOctaves|offset|opacity|operator|order|orient|orientation|origin|overflow|overlinePosition|overlineThickness|panose1|paintOrder|pathLength|patternContentUnits|patternTransform|patternUnits|pointerEvents|points|pointsAtX|pointsAtY|pointsAtZ|preserveAlpha|preserveAspectRatio|primitiveUnits|r|radius|refX|refY|renderingIntent|repeatCount|repeatDur|requiredExtensions|requiredFeatures|restart|result|rotate|rx|ry|scale|seed|shapeRendering|slope|spacing|specularConstant|specularExponent|speed|spreadMethod|startOffset|stdDeviation|stemh|stemv|stitchTiles|stopColor|stopOpacity|strikethroughPosition|strikethroughThickness|string|stroke|strokeDasharray|strokeDashoffset|strokeLinecap|strokeLinejoin|strokeMiterlimit|strokeOpacity|strokeWidth|surfaceScale|systemLanguage|tableValues|targetX|targetY|textAnchor|textDecoration|textRendering|textLength|to|transform|u1|u2|underlinePosition|underlineThickness|unicode|unicodeBidi|unicodeRange|unitsPerEm|vAlphabetic|vHanging|vIdeographic|vMathematical|values|vectorEffect|version|vertAdvY|vertOriginX|vertOriginY|viewBox|viewTarget|visibility|widths|wordSpacing|writingMode|x|xHeight|x1|x2|xChannelSelector|xlinkActuate|xlinkArcrole|xlinkHref|xlinkRole|xlinkShow|xlinkTitle|xlinkType|xmlBase|xmlns|xmlnsXlink|xmlLang|xmlSpace|y|y1|y2|yChannelSelector|z|zoomAndPan|for|class|autofocus)|(([Dd][Aa][Tt][Aa]|[Aa][Rr][Ii][Aa]|x)-.*))$/,Xu=Nn(function(t){return Aa.test(t)||t.charCodeAt(0)===111&&t.charCodeAt(1)===110&&t.charCodeAt(2)<91});var _a=1e4,ja=Se(or()),Na=function(r){r===void 0&&(r=ja);var n=new Map,e=0,i,o=function(){return(!i||i.rules.index.length>_a)&&(i=r.createStyleSheet().attach()),i};function a(){var s=arguments,u=JSON.stringify(s),l=n.get(u);if(l)return l.className;var d=[];for(var v in s){var N=s[v];if(!Array.isArray(N)){d.push(N);continue}for(var x=0;x<N.length;x++)d.push(N[x])}for(var E={},R=[],V=0;V<d.length;V++){var L=d[V];if(L){var I=L;if(typeof L=="string"){var W=n.get(L);W&&(W.labels.length&&R.push.apply(R,W.labels),I=W.style)}I.label&&R.indexOf(I.label)===-1&&R.push(I.label),Object.assign(E,I)}}delete E.label;var D=R.length===0?"css":R.join("-"),F=D+"-"+e++;o().addRule(F,E);var te=o().classes[F],H={style:E,labels:R,className:te};return n.set(u,H),n.set(te,H),te}return a.getSheet=o,a},Ia=Na(),In=Ia;var Da=Number.MIN_SAFE_INTEGER||-1e9,Va=function(){return Da++},$a=(0,M.createContext)({classNamePrefix:"",disableStylesGeneration:!1,isSSR:!K}),Mn=new Map,Qr=function(r,n){var e=r.managers;if(e)return e[n]||(e[n]=new Vr),e[n];var i=Mn.get(n);return i||(i=new Vr,Mn.set(n,i)),i},Dn=function(r){var n=r.sheet,e=r.context,i=r.index,o=r.theme;if(n){var a=Qr(e,i);a.manage(o),e.registry&&e.registry.add(n)}},Wa=function(r){if(r.sheet){var n=Qr(r.context,r.index);n.unmanage(r.theme)}},za=Se(or()),$n=new WeakMap,Wn=function(r){return $n.get(r)},La=function(r,n){$n.set(r,n)},Ua=function(r){var n=r.styles;return typeof n!="function"?n:(process.env.NODE_ENV!=="production"&&k(n.length!==0,"[JSS] <"+(r.name||"Hook")+` />'s styles function doesn't rely on the "theme" argument. We recommend declaring styles as an object instead.`),n(r.theme))};function qa(t,r){var n;t.context.id&&t.context.id.minify!=null&&(n=t.context.id.minify);var e=t.context.classNamePrefix||"";t.name&&!n&&(e+=t.name.replace(/\s/g,"-")+"-");var i="";return t.name&&(i=t.name+", "),i+=typeof t.styles=="function"?"Themed":"Unthemed",j({},t.sheetOptions,{index:t.index,meta:i,classNamePrefix:e,link:r,generateId:t.sheetOptions&&t.sheetOptions.generateId?t.sheetOptions.generateId:t.context.generateId})}var Fa=function(r){if(!r.context.disableStylesGeneration){var n=Qr(r.context,r.index),e=n.get(r.theme);if(e)return e;var i=r.context.jss||za,o=Ua(r),a=$r(o),s=i.createStyleSheet(o,qa(r,a!==null));return La(s,{dynamicStyles:a,styles:o}),n.add(r.theme,s),s}},Ja=function(r,n){for(var e in n)r.deleteRule(n[e])},Ya=function(r,n,e){for(var i in e)n.updateOne(e[i],r)},Ga=function(r,n){var e=Wn(r);if(e){var i={};for(var o in e.dynamicStyles)for(var a=r.rules.index.length,s=r.addRule(o,e.dynamicStyles[o]),u=a;u<r.rules.index.length;u++){var l=r.rules.index[u];r.updateOne(l,n),i[s===l?o:l.key]=l}return i}},Ha=function(r,n){if(!n)return r.classes;var e=Wn(r);if(!e)return r.classes;var i={};for(var o in e.styles)i[o]=r.classes[o],o in n&&(i[o]+=" "+r.classes[n[o].key]);return i};function Vn(t){return t?M.useEffect:M.default.useInsertionEffect||M.useLayoutEffect}var Zr={},zn=function(r,n){n===void 0&&(n={});var e=n,i=e.index,o=i===void 0?Va():i,a=e.theming,s=e.name,u=ke(e,["index","theming","name"]),l=a&&a.context||Rr,d=function(x){return typeof r=="function"&&(x||(0,M.useContext)(l))||Zr},v={};return function(x){var E=(0,M.useRef)(!0),R=(0,M.useContext)($a),V=d(x&&x.theme),L=(0,M.useMemo)(function(){var F=Fa({context:R,styles:r,name:s,theme:V,index:o,sheetOptions:u});return F&&R.isSSR&&Dn({index:o,context:R,sheet:F,theme:V}),[F,F?Ga(F,x):null]},[R,V]),I=L[0],W=L[1];Vn(R.isSSR)(function(){I&&W&&!E.current&&Ya(x,I,W)},[x]),Vn(R.isSSR)(function(){return I&&Dn({index:o,context:R,sheet:I,theme:V}),function(){I&&(Wa({index:o,context:R,sheet:I,theme:V}),W&&Ja(I,W))}},[I]);var D=(0,M.useMemo)(function(){return I&&W?Ha(I,W):v},[I,W]);return(0,M.useDebugValue)(D),(0,M.useDebugValue)(V===Zr?"No theme":V),(0,M.useEffect)(function(){E.current=!1}),D}};var pf=Symbol("react-jss-styled");var Ka=function(r){return r===void 0&&(r=In),function(e,i){var o=arguments;if(i&&i.css){var a=r(i.css),s=Object.assign({},i);s.className=i.className?i.className+" "+a:a,delete s.css,o[1]=s}return M.createElement.apply(void 0,o)}},mf=Ka();var Un=require("react/jsx-runtime"),Ba=zn({styleProvider:{fontFamily:"inherit, sans-serif",fontSize:13,"--background-color":"#f1f1f1","--card-background-color":"#fff","--primary-color":"#000088","--secondary-color":"#00C16E","--tertiary-color":"#f6f6f6","--primary-color-darker":"#000066","--secondary-color-darker":"#009955","--border-radius":"12px","& *::-webkit-scrollbar":{width:8,height:8},"& *::-webkit-scrollbar-thumb":{borderRadius:10,background:"#0003"}}}),Xa=({children:t})=>{let r=Ba();return(0,Un.jsx)("div",{className:it(r.styleProvider),children:t})},Ln=Xa;var et=require("react/jsx-runtime"),Fn=(0,ar.createContext)({applicationId:"",subscriberId:""}),Za=({applicationId:t,subscriberId:r,children:n,...e})=>{let i=(0,ar.useMemo)(()=>({applicationId:t,subscriberId:r,client:new qn.TeknifyClient({applicationId:t,subscriberId:r})}),[t,r]);return(0,et.jsx)(Fn.Provider,{value:i,children:(0,et.jsx)(Ln,{children:n})})},Qa=Za;0&&(module.exports={TeknifyContext});
|
4675
14
|
/*! Bundled license information:
|
4676
15
|
|
4677
16
|
react-is/cjs/react-is.production.min.js:
|
@@ -4710,4 +49,3 @@ jss/dist/jss.esm.js:
|
|
4710
49
|
* @license MIT
|
4711
50
|
*)
|
4712
51
|
*/
|
4713
|
-
//# sourceMappingURL=TeknifyProvider.cjs.map
|