sanity-plugin-shopify-assets 1.0.2 → 1.2.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/LICENSE +1 -1
- package/README.md +21 -21
- package/dist/index.d.ts +1 -1
- package/dist/index.esm.js +140 -2054
- package/dist/index.esm.js.map +1 -1
- package/dist/index.js +171 -2085
- package/dist/index.js.map +1 -1
- package/package.json +9 -9
- package/src/components/AssetDiff.tsx +2 -1
- package/src/components/AssetPreview.tsx +11 -18
- package/src/components/DialogHeader.tsx +1 -2
- package/src/components/File.styled.tsx +10 -16
- package/src/components/File.tsx +7 -9
- package/src/components/ShopifyAssetInput.styled.tsx +1 -1
- package/src/components/ShopifyAssetInput.tsx +2 -2
- package/src/components/ShopifyAssetPicker.tsx +5 -5
- package/src/components/VideoPlayer.tsx +2 -2
- package/src/index.ts +5 -3
- package/src/sanity-ui.d.ts +6 -0
- package/src/schema/shopifyAssetMetadataSchema.ts +34 -0
- package/src/schema/shopifyAssetPreviewSchema.ts +24 -0
- package/src/schema/shopifyAssetSchema.ts +8 -38
- package/src/types.ts +1 -1
package/dist/index.esm.js
CHANGED
|
@@ -1,1979 +1,49 @@
|
|
|
1
1
|
var _templateObject, _templateObject2, _templateObject3, _templateObject4, _templateObject5, _templateObject6;
|
|
2
2
|
function _taggedTemplateLiteral(strings, raw) { if (!raw) { raw = strings.slice(0); } return Object.freeze(Object.defineProperties(strings, { raw: { value: Object.freeze(raw) } })); }
|
|
3
|
-
import { jsxs, jsx, Fragment } from 'react/jsx-runtime';
|
|
4
|
-
import { Card, Box, useTheme, Text, Flex, Button, Stack, Dialog, Inline, TextInput, Spinner, Grid } from '@sanity/ui';
|
|
5
3
|
import { useProjectId, useDataset, PatchEvent, set, unset, DiffFromTo, defineType, defineField, definePlugin } from 'sanity';
|
|
6
|
-
import
|
|
7
|
-
import
|
|
4
|
+
import { jsxs, jsx, Fragment } from 'react/jsx-runtime';
|
|
5
|
+
import { LaunchIcon, ErrorOutlineIcon } from '@sanity/icons';
|
|
6
|
+
import { Card, Box, Text, Flex, Button, Stack, Dialog, Inline, TextInput, Spinner, Grid } from '@sanity/ui';
|
|
7
|
+
import React, { useEffect, useCallback, useRef, useState, useMemo } from 'react';
|
|
8
8
|
import prettyBytes from 'pretty-bytes';
|
|
9
9
|
import prettyMilliseconds from 'pretty-ms';
|
|
10
|
-
import {
|
|
10
|
+
import { styled } from 'styled-components';
|
|
11
|
+
import videojs from 'video.js';
|
|
11
12
|
import { concat, defer, BehaviorSubject } from 'rxjs';
|
|
12
|
-
import InfiniteScroll from 'react-infinite-scroll-component';
|
|
13
13
|
import PhotoAlbum from 'react-photo-album';
|
|
14
|
+
import InfiniteScroll from 'react-infinite-scroll-component';
|
|
14
15
|
import { withLatestFrom, debounceTime, distinctUntilChanged, switchMap, map } from 'rxjs/operators';
|
|
15
16
|
import axios from 'axios';
|
|
16
|
-
var reactIsExports$1 = {};
|
|
17
|
-
var reactIs$2 = {
|
|
18
|
-
get exports() {
|
|
19
|
-
return reactIsExports$1;
|
|
20
|
-
},
|
|
21
|
-
set exports(v) {
|
|
22
|
-
reactIsExports$1 = v;
|
|
23
|
-
}
|
|
24
|
-
};
|
|
25
|
-
var reactIs_production_min$1 = {};
|
|
26
|
-
|
|
27
|
-
/**
|
|
28
|
-
* @license React
|
|
29
|
-
* react-is.production.min.js
|
|
30
|
-
*
|
|
31
|
-
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
32
|
-
*
|
|
33
|
-
* This source code is licensed under the MIT license found in the
|
|
34
|
-
* LICENSE file in the root directory of this source tree.
|
|
35
|
-
*/
|
|
36
|
-
|
|
37
|
-
var hasRequiredReactIs_production_min$1;
|
|
38
|
-
function requireReactIs_production_min$1() {
|
|
39
|
-
if (hasRequiredReactIs_production_min$1) return reactIs_production_min$1;
|
|
40
|
-
hasRequiredReactIs_production_min$1 = 1;
|
|
41
|
-
var b = Symbol.for("react.element"),
|
|
42
|
-
c = Symbol.for("react.portal"),
|
|
43
|
-
d = Symbol.for("react.fragment"),
|
|
44
|
-
e = Symbol.for("react.strict_mode"),
|
|
45
|
-
f = Symbol.for("react.profiler"),
|
|
46
|
-
g = Symbol.for("react.provider"),
|
|
47
|
-
h = Symbol.for("react.context"),
|
|
48
|
-
k = Symbol.for("react.server_context"),
|
|
49
|
-
l = Symbol.for("react.forward_ref"),
|
|
50
|
-
m = Symbol.for("react.suspense"),
|
|
51
|
-
n = Symbol.for("react.suspense_list"),
|
|
52
|
-
p = Symbol.for("react.memo"),
|
|
53
|
-
q = Symbol.for("react.lazy"),
|
|
54
|
-
t = Symbol.for("react.offscreen"),
|
|
55
|
-
u;
|
|
56
|
-
u = Symbol.for("react.module.reference");
|
|
57
|
-
function v(a) {
|
|
58
|
-
if ("object" === typeof a && null !== a) {
|
|
59
|
-
var r = a.$$typeof;
|
|
60
|
-
switch (r) {
|
|
61
|
-
case b:
|
|
62
|
-
switch (a = a.type, a) {
|
|
63
|
-
case d:
|
|
64
|
-
case f:
|
|
65
|
-
case e:
|
|
66
|
-
case m:
|
|
67
|
-
case n:
|
|
68
|
-
return a;
|
|
69
|
-
default:
|
|
70
|
-
switch (a = a && a.$$typeof, a) {
|
|
71
|
-
case k:
|
|
72
|
-
case h:
|
|
73
|
-
case l:
|
|
74
|
-
case q:
|
|
75
|
-
case p:
|
|
76
|
-
case g:
|
|
77
|
-
return a;
|
|
78
|
-
default:
|
|
79
|
-
return r;
|
|
80
|
-
}
|
|
81
|
-
}
|
|
82
|
-
case c:
|
|
83
|
-
return r;
|
|
84
|
-
}
|
|
85
|
-
}
|
|
86
|
-
}
|
|
87
|
-
reactIs_production_min$1.ContextConsumer = h;
|
|
88
|
-
reactIs_production_min$1.ContextProvider = g;
|
|
89
|
-
reactIs_production_min$1.Element = b;
|
|
90
|
-
reactIs_production_min$1.ForwardRef = l;
|
|
91
|
-
reactIs_production_min$1.Fragment = d;
|
|
92
|
-
reactIs_production_min$1.Lazy = q;
|
|
93
|
-
reactIs_production_min$1.Memo = p;
|
|
94
|
-
reactIs_production_min$1.Portal = c;
|
|
95
|
-
reactIs_production_min$1.Profiler = f;
|
|
96
|
-
reactIs_production_min$1.StrictMode = e;
|
|
97
|
-
reactIs_production_min$1.Suspense = m;
|
|
98
|
-
reactIs_production_min$1.SuspenseList = n;
|
|
99
|
-
reactIs_production_min$1.isAsyncMode = function () {
|
|
100
|
-
return !1;
|
|
101
|
-
};
|
|
102
|
-
reactIs_production_min$1.isConcurrentMode = function () {
|
|
103
|
-
return !1;
|
|
104
|
-
};
|
|
105
|
-
reactIs_production_min$1.isContextConsumer = function (a) {
|
|
106
|
-
return v(a) === h;
|
|
107
|
-
};
|
|
108
|
-
reactIs_production_min$1.isContextProvider = function (a) {
|
|
109
|
-
return v(a) === g;
|
|
110
|
-
};
|
|
111
|
-
reactIs_production_min$1.isElement = function (a) {
|
|
112
|
-
return "object" === typeof a && null !== a && a.$$typeof === b;
|
|
113
|
-
};
|
|
114
|
-
reactIs_production_min$1.isForwardRef = function (a) {
|
|
115
|
-
return v(a) === l;
|
|
116
|
-
};
|
|
117
|
-
reactIs_production_min$1.isFragment = function (a) {
|
|
118
|
-
return v(a) === d;
|
|
119
|
-
};
|
|
120
|
-
reactIs_production_min$1.isLazy = function (a) {
|
|
121
|
-
return v(a) === q;
|
|
122
|
-
};
|
|
123
|
-
reactIs_production_min$1.isMemo = function (a) {
|
|
124
|
-
return v(a) === p;
|
|
125
|
-
};
|
|
126
|
-
reactIs_production_min$1.isPortal = function (a) {
|
|
127
|
-
return v(a) === c;
|
|
128
|
-
};
|
|
129
|
-
reactIs_production_min$1.isProfiler = function (a) {
|
|
130
|
-
return v(a) === f;
|
|
131
|
-
};
|
|
132
|
-
reactIs_production_min$1.isStrictMode = function (a) {
|
|
133
|
-
return v(a) === e;
|
|
134
|
-
};
|
|
135
|
-
reactIs_production_min$1.isSuspense = function (a) {
|
|
136
|
-
return v(a) === m;
|
|
137
|
-
};
|
|
138
|
-
reactIs_production_min$1.isSuspenseList = function (a) {
|
|
139
|
-
return v(a) === n;
|
|
140
|
-
};
|
|
141
|
-
reactIs_production_min$1.isValidElementType = function (a) {
|
|
142
|
-
return "string" === typeof a || "function" === typeof a || a === d || a === f || a === e || a === m || a === n || a === t || "object" === typeof a && null !== a && (a.$$typeof === q || a.$$typeof === p || a.$$typeof === g || a.$$typeof === h || a.$$typeof === l || a.$$typeof === u || void 0 !== a.getModuleId) ? !0 : !1;
|
|
143
|
-
};
|
|
144
|
-
reactIs_production_min$1.typeOf = v;
|
|
145
|
-
return reactIs_production_min$1;
|
|
146
|
-
}
|
|
147
|
-
var reactIs_development$1 = {};
|
|
148
|
-
|
|
149
|
-
/**
|
|
150
|
-
* @license React
|
|
151
|
-
* react-is.development.js
|
|
152
|
-
*
|
|
153
|
-
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
154
|
-
*
|
|
155
|
-
* This source code is licensed under the MIT license found in the
|
|
156
|
-
* LICENSE file in the root directory of this source tree.
|
|
157
|
-
*/
|
|
158
|
-
|
|
159
|
-
var hasRequiredReactIs_development$1;
|
|
160
|
-
function requireReactIs_development$1() {
|
|
161
|
-
if (hasRequiredReactIs_development$1) return reactIs_development$1;
|
|
162
|
-
hasRequiredReactIs_development$1 = 1;
|
|
163
|
-
if (process.env.NODE_ENV !== "production") {
|
|
164
|
-
(function () {
|
|
165
|
-
// ATTENTION
|
|
166
|
-
// When adding new symbols to this file,
|
|
167
|
-
// Please consider also adding to 'react-devtools-shared/src/backend/ReactSymbols'
|
|
168
|
-
// The Symbol used to tag the ReactElement-like types.
|
|
169
|
-
var REACT_ELEMENT_TYPE = Symbol.for('react.element');
|
|
170
|
-
var REACT_PORTAL_TYPE = Symbol.for('react.portal');
|
|
171
|
-
var REACT_FRAGMENT_TYPE = Symbol.for('react.fragment');
|
|
172
|
-
var REACT_STRICT_MODE_TYPE = Symbol.for('react.strict_mode');
|
|
173
|
-
var REACT_PROFILER_TYPE = Symbol.for('react.profiler');
|
|
174
|
-
var REACT_PROVIDER_TYPE = Symbol.for('react.provider');
|
|
175
|
-
var REACT_CONTEXT_TYPE = Symbol.for('react.context');
|
|
176
|
-
var REACT_SERVER_CONTEXT_TYPE = Symbol.for('react.server_context');
|
|
177
|
-
var REACT_FORWARD_REF_TYPE = Symbol.for('react.forward_ref');
|
|
178
|
-
var REACT_SUSPENSE_TYPE = Symbol.for('react.suspense');
|
|
179
|
-
var REACT_SUSPENSE_LIST_TYPE = Symbol.for('react.suspense_list');
|
|
180
|
-
var REACT_MEMO_TYPE = Symbol.for('react.memo');
|
|
181
|
-
var REACT_LAZY_TYPE = Symbol.for('react.lazy');
|
|
182
|
-
var REACT_OFFSCREEN_TYPE = Symbol.for('react.offscreen');
|
|
183
|
-
|
|
184
|
-
// -----------------------------------------------------------------------------
|
|
185
|
-
|
|
186
|
-
var enableScopeAPI = false; // Experimental Create Event Handle API.
|
|
187
|
-
var enableCacheElement = false;
|
|
188
|
-
var enableTransitionTracing = false; // No known bugs, but needs performance testing
|
|
189
|
-
|
|
190
|
-
var enableLegacyHidden = false; // Enables unstable_avoidThisFallback feature in Fiber
|
|
191
|
-
// stuff. Intended to enable React core members to more easily debug scheduling
|
|
192
|
-
// issues in DEV builds.
|
|
193
|
-
|
|
194
|
-
var enableDebugTracing = false; // Track which Fiber(s) schedule render work.
|
|
195
|
-
|
|
196
|
-
var REACT_MODULE_REFERENCE;
|
|
197
|
-
{
|
|
198
|
-
REACT_MODULE_REFERENCE = Symbol.for('react.module.reference');
|
|
199
|
-
}
|
|
200
|
-
function isValidElementType(type) {
|
|
201
|
-
if (typeof type === 'string' || typeof type === 'function') {
|
|
202
|
-
return true;
|
|
203
|
-
} // Note: typeof might be other than 'symbol' or 'number' (e.g. if it's a polyfill).
|
|
204
|
-
|
|
205
|
-
if (type === REACT_FRAGMENT_TYPE || type === REACT_PROFILER_TYPE || enableDebugTracing || type === REACT_STRICT_MODE_TYPE || type === REACT_SUSPENSE_TYPE || type === REACT_SUSPENSE_LIST_TYPE || enableLegacyHidden || type === REACT_OFFSCREEN_TYPE || enableScopeAPI || enableCacheElement || enableTransitionTracing) {
|
|
206
|
-
return true;
|
|
207
|
-
}
|
|
208
|
-
if (typeof type === 'object' && type !== null) {
|
|
209
|
-
if (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 ||
|
|
210
|
-
// This needs to include all possible module reference object
|
|
211
|
-
// types supported by any Flight configuration anywhere since
|
|
212
|
-
// we don't know which Flight build this will end up being used
|
|
213
|
-
// with.
|
|
214
|
-
type.$$typeof === REACT_MODULE_REFERENCE || type.getModuleId !== undefined) {
|
|
215
|
-
return true;
|
|
216
|
-
}
|
|
217
|
-
}
|
|
218
|
-
return false;
|
|
219
|
-
}
|
|
220
|
-
function typeOf(object) {
|
|
221
|
-
if (typeof object === 'object' && object !== null) {
|
|
222
|
-
var $$typeof = object.$$typeof;
|
|
223
|
-
switch ($$typeof) {
|
|
224
|
-
case REACT_ELEMENT_TYPE:
|
|
225
|
-
var type = object.type;
|
|
226
|
-
switch (type) {
|
|
227
|
-
case REACT_FRAGMENT_TYPE:
|
|
228
|
-
case REACT_PROFILER_TYPE:
|
|
229
|
-
case REACT_STRICT_MODE_TYPE:
|
|
230
|
-
case REACT_SUSPENSE_TYPE:
|
|
231
|
-
case REACT_SUSPENSE_LIST_TYPE:
|
|
232
|
-
return type;
|
|
233
|
-
default:
|
|
234
|
-
var $$typeofType = type && type.$$typeof;
|
|
235
|
-
switch ($$typeofType) {
|
|
236
|
-
case REACT_SERVER_CONTEXT_TYPE:
|
|
237
|
-
case REACT_CONTEXT_TYPE:
|
|
238
|
-
case REACT_FORWARD_REF_TYPE:
|
|
239
|
-
case REACT_LAZY_TYPE:
|
|
240
|
-
case REACT_MEMO_TYPE:
|
|
241
|
-
case REACT_PROVIDER_TYPE:
|
|
242
|
-
return $$typeofType;
|
|
243
|
-
default:
|
|
244
|
-
return $$typeof;
|
|
245
|
-
}
|
|
246
|
-
}
|
|
247
|
-
case REACT_PORTAL_TYPE:
|
|
248
|
-
return $$typeof;
|
|
249
|
-
}
|
|
250
|
-
}
|
|
251
|
-
return undefined;
|
|
252
|
-
}
|
|
253
|
-
var ContextConsumer = REACT_CONTEXT_TYPE;
|
|
254
|
-
var ContextProvider = REACT_PROVIDER_TYPE;
|
|
255
|
-
var Element = REACT_ELEMENT_TYPE;
|
|
256
|
-
var ForwardRef = REACT_FORWARD_REF_TYPE;
|
|
257
|
-
var Fragment = REACT_FRAGMENT_TYPE;
|
|
258
|
-
var Lazy = REACT_LAZY_TYPE;
|
|
259
|
-
var Memo = REACT_MEMO_TYPE;
|
|
260
|
-
var Portal = REACT_PORTAL_TYPE;
|
|
261
|
-
var Profiler = REACT_PROFILER_TYPE;
|
|
262
|
-
var StrictMode = REACT_STRICT_MODE_TYPE;
|
|
263
|
-
var Suspense = REACT_SUSPENSE_TYPE;
|
|
264
|
-
var SuspenseList = REACT_SUSPENSE_LIST_TYPE;
|
|
265
|
-
var hasWarnedAboutDeprecatedIsAsyncMode = false;
|
|
266
|
-
var hasWarnedAboutDeprecatedIsConcurrentMode = false; // AsyncMode should be deprecated
|
|
267
|
-
|
|
268
|
-
function isAsyncMode(object) {
|
|
269
|
-
{
|
|
270
|
-
if (!hasWarnedAboutDeprecatedIsAsyncMode) {
|
|
271
|
-
hasWarnedAboutDeprecatedIsAsyncMode = true; // Using console['warn'] to evade Babel and ESLint
|
|
272
|
-
|
|
273
|
-
console['warn']('The ReactIs.isAsyncMode() alias has been deprecated, ' + 'and will be removed in React 18+.');
|
|
274
|
-
}
|
|
275
|
-
}
|
|
276
|
-
return false;
|
|
277
|
-
}
|
|
278
|
-
function isConcurrentMode(object) {
|
|
279
|
-
{
|
|
280
|
-
if (!hasWarnedAboutDeprecatedIsConcurrentMode) {
|
|
281
|
-
hasWarnedAboutDeprecatedIsConcurrentMode = true; // Using console['warn'] to evade Babel and ESLint
|
|
282
|
-
|
|
283
|
-
console['warn']('The ReactIs.isConcurrentMode() alias has been deprecated, ' + 'and will be removed in React 18+.');
|
|
284
|
-
}
|
|
285
|
-
}
|
|
286
|
-
return false;
|
|
287
|
-
}
|
|
288
|
-
function isContextConsumer(object) {
|
|
289
|
-
return typeOf(object) === REACT_CONTEXT_TYPE;
|
|
290
|
-
}
|
|
291
|
-
function isContextProvider(object) {
|
|
292
|
-
return typeOf(object) === REACT_PROVIDER_TYPE;
|
|
293
|
-
}
|
|
294
|
-
function isElement(object) {
|
|
295
|
-
return typeof object === 'object' && object !== null && object.$$typeof === REACT_ELEMENT_TYPE;
|
|
296
|
-
}
|
|
297
|
-
function isForwardRef(object) {
|
|
298
|
-
return typeOf(object) === REACT_FORWARD_REF_TYPE;
|
|
299
|
-
}
|
|
300
|
-
function isFragment(object) {
|
|
301
|
-
return typeOf(object) === REACT_FRAGMENT_TYPE;
|
|
302
|
-
}
|
|
303
|
-
function isLazy(object) {
|
|
304
|
-
return typeOf(object) === REACT_LAZY_TYPE;
|
|
305
|
-
}
|
|
306
|
-
function isMemo(object) {
|
|
307
|
-
return typeOf(object) === REACT_MEMO_TYPE;
|
|
308
|
-
}
|
|
309
|
-
function isPortal(object) {
|
|
310
|
-
return typeOf(object) === REACT_PORTAL_TYPE;
|
|
311
|
-
}
|
|
312
|
-
function isProfiler(object) {
|
|
313
|
-
return typeOf(object) === REACT_PROFILER_TYPE;
|
|
314
|
-
}
|
|
315
|
-
function isStrictMode(object) {
|
|
316
|
-
return typeOf(object) === REACT_STRICT_MODE_TYPE;
|
|
317
|
-
}
|
|
318
|
-
function isSuspense(object) {
|
|
319
|
-
return typeOf(object) === REACT_SUSPENSE_TYPE;
|
|
320
|
-
}
|
|
321
|
-
function isSuspenseList(object) {
|
|
322
|
-
return typeOf(object) === REACT_SUSPENSE_LIST_TYPE;
|
|
323
|
-
}
|
|
324
|
-
reactIs_development$1.ContextConsumer = ContextConsumer;
|
|
325
|
-
reactIs_development$1.ContextProvider = ContextProvider;
|
|
326
|
-
reactIs_development$1.Element = Element;
|
|
327
|
-
reactIs_development$1.ForwardRef = ForwardRef;
|
|
328
|
-
reactIs_development$1.Fragment = Fragment;
|
|
329
|
-
reactIs_development$1.Lazy = Lazy;
|
|
330
|
-
reactIs_development$1.Memo = Memo;
|
|
331
|
-
reactIs_development$1.Portal = Portal;
|
|
332
|
-
reactIs_development$1.Profiler = Profiler;
|
|
333
|
-
reactIs_development$1.StrictMode = StrictMode;
|
|
334
|
-
reactIs_development$1.Suspense = Suspense;
|
|
335
|
-
reactIs_development$1.SuspenseList = SuspenseList;
|
|
336
|
-
reactIs_development$1.isAsyncMode = isAsyncMode;
|
|
337
|
-
reactIs_development$1.isConcurrentMode = isConcurrentMode;
|
|
338
|
-
reactIs_development$1.isContextConsumer = isContextConsumer;
|
|
339
|
-
reactIs_development$1.isContextProvider = isContextProvider;
|
|
340
|
-
reactIs_development$1.isElement = isElement;
|
|
341
|
-
reactIs_development$1.isForwardRef = isForwardRef;
|
|
342
|
-
reactIs_development$1.isFragment = isFragment;
|
|
343
|
-
reactIs_development$1.isLazy = isLazy;
|
|
344
|
-
reactIs_development$1.isMemo = isMemo;
|
|
345
|
-
reactIs_development$1.isPortal = isPortal;
|
|
346
|
-
reactIs_development$1.isProfiler = isProfiler;
|
|
347
|
-
reactIs_development$1.isStrictMode = isStrictMode;
|
|
348
|
-
reactIs_development$1.isSuspense = isSuspense;
|
|
349
|
-
reactIs_development$1.isSuspenseList = isSuspenseList;
|
|
350
|
-
reactIs_development$1.isValidElementType = isValidElementType;
|
|
351
|
-
reactIs_development$1.typeOf = typeOf;
|
|
352
|
-
})();
|
|
353
|
-
}
|
|
354
|
-
return reactIs_development$1;
|
|
355
|
-
}
|
|
356
|
-
(function (module) {
|
|
357
|
-
if (process.env.NODE_ENV === 'production') {
|
|
358
|
-
module.exports = requireReactIs_production_min$1();
|
|
359
|
-
} else {
|
|
360
|
-
module.exports = requireReactIs_development$1();
|
|
361
|
-
}
|
|
362
|
-
})(reactIs$2);
|
|
363
|
-
function stylis_min(W) {
|
|
364
|
-
function M(d, c, e, h, a) {
|
|
365
|
-
for (var m = 0, b = 0, v = 0, n = 0, q, g, x = 0, K = 0, k, u = k = q = 0, l = 0, r = 0, I = 0, t = 0, B = e.length, J = B - 1, y, f = '', p = '', F = '', G = '', C; l < B;) {
|
|
366
|
-
g = e.charCodeAt(l);
|
|
367
|
-
l === J && 0 !== b + n + v + m && (0 !== b && (g = 47 === b ? 10 : 47), n = v = m = 0, B++, J++);
|
|
368
|
-
if (0 === b + n + v + m) {
|
|
369
|
-
if (l === J && (0 < r && (f = f.replace(N, '')), 0 < f.trim().length)) {
|
|
370
|
-
switch (g) {
|
|
371
|
-
case 32:
|
|
372
|
-
case 9:
|
|
373
|
-
case 59:
|
|
374
|
-
case 13:
|
|
375
|
-
case 10:
|
|
376
|
-
break;
|
|
377
|
-
default:
|
|
378
|
-
f += e.charAt(l);
|
|
379
|
-
}
|
|
380
|
-
g = 59;
|
|
381
|
-
}
|
|
382
|
-
switch (g) {
|
|
383
|
-
case 123:
|
|
384
|
-
f = f.trim();
|
|
385
|
-
q = f.charCodeAt(0);
|
|
386
|
-
k = 1;
|
|
387
|
-
for (t = ++l; l < B;) {
|
|
388
|
-
switch (g = e.charCodeAt(l)) {
|
|
389
|
-
case 123:
|
|
390
|
-
k++;
|
|
391
|
-
break;
|
|
392
|
-
case 125:
|
|
393
|
-
k--;
|
|
394
|
-
break;
|
|
395
|
-
case 47:
|
|
396
|
-
switch (g = e.charCodeAt(l + 1)) {
|
|
397
|
-
case 42:
|
|
398
|
-
case 47:
|
|
399
|
-
a: {
|
|
400
|
-
for (u = l + 1; u < J; ++u) {
|
|
401
|
-
switch (e.charCodeAt(u)) {
|
|
402
|
-
case 47:
|
|
403
|
-
if (42 === g && 42 === e.charCodeAt(u - 1) && l + 2 !== u) {
|
|
404
|
-
l = u + 1;
|
|
405
|
-
break a;
|
|
406
|
-
}
|
|
407
|
-
break;
|
|
408
|
-
case 10:
|
|
409
|
-
if (47 === g) {
|
|
410
|
-
l = u + 1;
|
|
411
|
-
break a;
|
|
412
|
-
}
|
|
413
|
-
}
|
|
414
|
-
}
|
|
415
|
-
l = u;
|
|
416
|
-
}
|
|
417
|
-
}
|
|
418
|
-
break;
|
|
419
|
-
case 91:
|
|
420
|
-
g++;
|
|
421
|
-
case 40:
|
|
422
|
-
g++;
|
|
423
|
-
case 34:
|
|
424
|
-
case 39:
|
|
425
|
-
for (; l++ < J && e.charCodeAt(l) !== g;) {}
|
|
426
|
-
}
|
|
427
|
-
if (0 === k) break;
|
|
428
|
-
l++;
|
|
429
|
-
}
|
|
430
|
-
k = e.substring(t, l);
|
|
431
|
-
0 === q && (q = (f = f.replace(ca, '').trim()).charCodeAt(0));
|
|
432
|
-
switch (q) {
|
|
433
|
-
case 64:
|
|
434
|
-
0 < r && (f = f.replace(N, ''));
|
|
435
|
-
g = f.charCodeAt(1);
|
|
436
|
-
switch (g) {
|
|
437
|
-
case 100:
|
|
438
|
-
case 109:
|
|
439
|
-
case 115:
|
|
440
|
-
case 45:
|
|
441
|
-
r = c;
|
|
442
|
-
break;
|
|
443
|
-
default:
|
|
444
|
-
r = O;
|
|
445
|
-
}
|
|
446
|
-
k = M(c, r, k, g, a + 1);
|
|
447
|
-
t = k.length;
|
|
448
|
-
0 < A && (r = X(O, f, I), C = H(3, k, r, c, D, z, t, g, a, h), f = r.join(''), void 0 !== C && 0 === (t = (k = C.trim()).length) && (g = 0, k = ''));
|
|
449
|
-
if (0 < t) switch (g) {
|
|
450
|
-
case 115:
|
|
451
|
-
f = f.replace(da, ea);
|
|
452
|
-
case 100:
|
|
453
|
-
case 109:
|
|
454
|
-
case 45:
|
|
455
|
-
k = f + '{' + k + '}';
|
|
456
|
-
break;
|
|
457
|
-
case 107:
|
|
458
|
-
f = f.replace(fa, '$1 $2');
|
|
459
|
-
k = f + '{' + k + '}';
|
|
460
|
-
k = 1 === w || 2 === w && L('@' + k, 3) ? '@-webkit-' + k + '@' + k : '@' + k;
|
|
461
|
-
break;
|
|
462
|
-
default:
|
|
463
|
-
k = f + k, 112 === h && (k = (p += k, ''));
|
|
464
|
-
} else k = '';
|
|
465
|
-
break;
|
|
466
|
-
default:
|
|
467
|
-
k = M(c, X(c, f, I), k, h, a + 1);
|
|
468
|
-
}
|
|
469
|
-
F += k;
|
|
470
|
-
k = I = r = u = q = 0;
|
|
471
|
-
f = '';
|
|
472
|
-
g = e.charCodeAt(++l);
|
|
473
|
-
break;
|
|
474
|
-
case 125:
|
|
475
|
-
case 59:
|
|
476
|
-
f = (0 < r ? f.replace(N, '') : f).trim();
|
|
477
|
-
if (1 < (t = f.length)) switch (0 === u && (q = f.charCodeAt(0), 45 === q || 96 < q && 123 > q) && (t = (f = f.replace(' ', ':')).length), 0 < A && void 0 !== (C = H(1, f, c, d, D, z, p.length, h, a, h)) && 0 === (t = (f = C.trim()).length) && (f = '\x00\x00'), q = f.charCodeAt(0), g = f.charCodeAt(1), q) {
|
|
478
|
-
case 0:
|
|
479
|
-
break;
|
|
480
|
-
case 64:
|
|
481
|
-
if (105 === g || 99 === g) {
|
|
482
|
-
G += f + e.charAt(l);
|
|
483
|
-
break;
|
|
484
|
-
}
|
|
485
|
-
default:
|
|
486
|
-
58 !== f.charCodeAt(t - 1) && (p += P(f, q, g, f.charCodeAt(2)));
|
|
487
|
-
}
|
|
488
|
-
I = r = u = q = 0;
|
|
489
|
-
f = '';
|
|
490
|
-
g = e.charCodeAt(++l);
|
|
491
|
-
}
|
|
492
|
-
}
|
|
493
|
-
switch (g) {
|
|
494
|
-
case 13:
|
|
495
|
-
case 10:
|
|
496
|
-
47 === b ? b = 0 : 0 === 1 + q && 107 !== h && 0 < f.length && (r = 1, f += '\x00');
|
|
497
|
-
0 < A * Y && H(0, f, c, d, D, z, p.length, h, a, h);
|
|
498
|
-
z = 1;
|
|
499
|
-
D++;
|
|
500
|
-
break;
|
|
501
|
-
case 59:
|
|
502
|
-
case 125:
|
|
503
|
-
if (0 === b + n + v + m) {
|
|
504
|
-
z++;
|
|
505
|
-
break;
|
|
506
|
-
}
|
|
507
|
-
default:
|
|
508
|
-
z++;
|
|
509
|
-
y = e.charAt(l);
|
|
510
|
-
switch (g) {
|
|
511
|
-
case 9:
|
|
512
|
-
case 32:
|
|
513
|
-
if (0 === n + m + b) switch (x) {
|
|
514
|
-
case 44:
|
|
515
|
-
case 58:
|
|
516
|
-
case 9:
|
|
517
|
-
case 32:
|
|
518
|
-
y = '';
|
|
519
|
-
break;
|
|
520
|
-
default:
|
|
521
|
-
32 !== g && (y = ' ');
|
|
522
|
-
}
|
|
523
|
-
break;
|
|
524
|
-
case 0:
|
|
525
|
-
y = '\\0';
|
|
526
|
-
break;
|
|
527
|
-
case 12:
|
|
528
|
-
y = '\\f';
|
|
529
|
-
break;
|
|
530
|
-
case 11:
|
|
531
|
-
y = '\\v';
|
|
532
|
-
break;
|
|
533
|
-
case 38:
|
|
534
|
-
0 === n + b + m && (r = I = 1, y = '\f' + y);
|
|
535
|
-
break;
|
|
536
|
-
case 108:
|
|
537
|
-
if (0 === n + b + m + E && 0 < u) switch (l - u) {
|
|
538
|
-
case 2:
|
|
539
|
-
112 === x && 58 === e.charCodeAt(l - 3) && (E = x);
|
|
540
|
-
case 8:
|
|
541
|
-
111 === K && (E = K);
|
|
542
|
-
}
|
|
543
|
-
break;
|
|
544
|
-
case 58:
|
|
545
|
-
0 === n + b + m && (u = l);
|
|
546
|
-
break;
|
|
547
|
-
case 44:
|
|
548
|
-
0 === b + v + n + m && (r = 1, y += '\r');
|
|
549
|
-
break;
|
|
550
|
-
case 34:
|
|
551
|
-
case 39:
|
|
552
|
-
0 === b && (n = n === g ? 0 : 0 === n ? g : n);
|
|
553
|
-
break;
|
|
554
|
-
case 91:
|
|
555
|
-
0 === n + b + v && m++;
|
|
556
|
-
break;
|
|
557
|
-
case 93:
|
|
558
|
-
0 === n + b + v && m--;
|
|
559
|
-
break;
|
|
560
|
-
case 41:
|
|
561
|
-
0 === n + b + m && v--;
|
|
562
|
-
break;
|
|
563
|
-
case 40:
|
|
564
|
-
if (0 === n + b + m) {
|
|
565
|
-
if (0 === q) switch (2 * x + 3 * K) {
|
|
566
|
-
case 533:
|
|
567
|
-
break;
|
|
568
|
-
default:
|
|
569
|
-
q = 1;
|
|
570
|
-
}
|
|
571
|
-
v++;
|
|
572
|
-
}
|
|
573
|
-
break;
|
|
574
|
-
case 64:
|
|
575
|
-
0 === b + v + n + m + u + k && (k = 1);
|
|
576
|
-
break;
|
|
577
|
-
case 42:
|
|
578
|
-
case 47:
|
|
579
|
-
if (!(0 < n + m + v)) switch (b) {
|
|
580
|
-
case 0:
|
|
581
|
-
switch (2 * g + 3 * e.charCodeAt(l + 1)) {
|
|
582
|
-
case 235:
|
|
583
|
-
b = 47;
|
|
584
|
-
break;
|
|
585
|
-
case 220:
|
|
586
|
-
t = l, b = 42;
|
|
587
|
-
}
|
|
588
|
-
break;
|
|
589
|
-
case 42:
|
|
590
|
-
47 === g && 42 === x && t + 2 !== l && (33 === e.charCodeAt(t + 2) && (p += e.substring(t, l + 1)), y = '', b = 0);
|
|
591
|
-
}
|
|
592
|
-
}
|
|
593
|
-
0 === b && (f += y);
|
|
594
|
-
}
|
|
595
|
-
K = x;
|
|
596
|
-
x = g;
|
|
597
|
-
l++;
|
|
598
|
-
}
|
|
599
|
-
t = p.length;
|
|
600
|
-
if (0 < t) {
|
|
601
|
-
r = c;
|
|
602
|
-
if (0 < A && (C = H(2, p, r, d, D, z, t, h, a, h), void 0 !== C && 0 === (p = C).length)) return G + p + F;
|
|
603
|
-
p = r.join(',') + '{' + p + '}';
|
|
604
|
-
if (0 !== w * E) {
|
|
605
|
-
2 !== w || L(p, 2) || (E = 0);
|
|
606
|
-
switch (E) {
|
|
607
|
-
case 111:
|
|
608
|
-
p = p.replace(ha, ':-moz-$1') + p;
|
|
609
|
-
break;
|
|
610
|
-
case 112:
|
|
611
|
-
p = p.replace(Q, '::-webkit-input-$1') + p.replace(Q, '::-moz-$1') + p.replace(Q, ':-ms-input-$1') + p;
|
|
612
|
-
}
|
|
613
|
-
E = 0;
|
|
614
|
-
}
|
|
615
|
-
}
|
|
616
|
-
return G + p + F;
|
|
617
|
-
}
|
|
618
|
-
function X(d, c, e) {
|
|
619
|
-
var h = c.trim().split(ia);
|
|
620
|
-
c = h;
|
|
621
|
-
var a = h.length,
|
|
622
|
-
m = d.length;
|
|
623
|
-
switch (m) {
|
|
624
|
-
case 0:
|
|
625
|
-
case 1:
|
|
626
|
-
var b = 0;
|
|
627
|
-
for (d = 0 === m ? '' : d[0] + ' '; b < a; ++b) {
|
|
628
|
-
c[b] = Z(d, c[b], e).trim();
|
|
629
|
-
}
|
|
630
|
-
break;
|
|
631
|
-
default:
|
|
632
|
-
var v = b = 0;
|
|
633
|
-
for (c = []; b < a; ++b) {
|
|
634
|
-
for (var n = 0; n < m; ++n) {
|
|
635
|
-
c[v++] = Z(d[n] + ' ', h[b], e).trim();
|
|
636
|
-
}
|
|
637
|
-
}
|
|
638
|
-
}
|
|
639
|
-
return c;
|
|
640
|
-
}
|
|
641
|
-
function Z(d, c, e) {
|
|
642
|
-
var h = c.charCodeAt(0);
|
|
643
|
-
33 > h && (h = (c = c.trim()).charCodeAt(0));
|
|
644
|
-
switch (h) {
|
|
645
|
-
case 38:
|
|
646
|
-
return c.replace(F, '$1' + d.trim());
|
|
647
|
-
case 58:
|
|
648
|
-
return d.trim() + c.replace(F, '$1' + d.trim());
|
|
649
|
-
default:
|
|
650
|
-
if (0 < 1 * e && 0 < c.indexOf('\f')) return c.replace(F, (58 === d.charCodeAt(0) ? '' : '$1') + d.trim());
|
|
651
|
-
}
|
|
652
|
-
return d + c;
|
|
653
|
-
}
|
|
654
|
-
function P(d, c, e, h) {
|
|
655
|
-
var a = d + ';',
|
|
656
|
-
m = 2 * c + 3 * e + 4 * h;
|
|
657
|
-
if (944 === m) {
|
|
658
|
-
d = a.indexOf(':', 9) + 1;
|
|
659
|
-
var b = a.substring(d, a.length - 1).trim();
|
|
660
|
-
b = a.substring(0, d).trim() + b + ';';
|
|
661
|
-
return 1 === w || 2 === w && L(b, 1) ? '-webkit-' + b + b : b;
|
|
662
|
-
}
|
|
663
|
-
if (0 === w || 2 === w && !L(a, 1)) return a;
|
|
664
|
-
switch (m) {
|
|
665
|
-
case 1015:
|
|
666
|
-
return 97 === a.charCodeAt(10) ? '-webkit-' + a + a : a;
|
|
667
|
-
case 951:
|
|
668
|
-
return 116 === a.charCodeAt(3) ? '-webkit-' + a + a : a;
|
|
669
|
-
case 963:
|
|
670
|
-
return 110 === a.charCodeAt(5) ? '-webkit-' + a + a : a;
|
|
671
|
-
case 1009:
|
|
672
|
-
if (100 !== a.charCodeAt(4)) break;
|
|
673
|
-
case 969:
|
|
674
|
-
case 942:
|
|
675
|
-
return '-webkit-' + a + a;
|
|
676
|
-
case 978:
|
|
677
|
-
return '-webkit-' + a + '-moz-' + a + a;
|
|
678
|
-
case 1019:
|
|
679
|
-
case 983:
|
|
680
|
-
return '-webkit-' + a + '-moz-' + a + '-ms-' + a + a;
|
|
681
|
-
case 883:
|
|
682
|
-
if (45 === a.charCodeAt(8)) return '-webkit-' + a + a;
|
|
683
|
-
if (0 < a.indexOf('image-set(', 11)) return a.replace(ja, '$1-webkit-$2') + a;
|
|
684
|
-
break;
|
|
685
|
-
case 932:
|
|
686
|
-
if (45 === a.charCodeAt(4)) switch (a.charCodeAt(5)) {
|
|
687
|
-
case 103:
|
|
688
|
-
return '-webkit-box-' + a.replace('-grow', '') + '-webkit-' + a + '-ms-' + a.replace('grow', 'positive') + a;
|
|
689
|
-
case 115:
|
|
690
|
-
return '-webkit-' + a + '-ms-' + a.replace('shrink', 'negative') + a;
|
|
691
|
-
case 98:
|
|
692
|
-
return '-webkit-' + a + '-ms-' + a.replace('basis', 'preferred-size') + a;
|
|
693
|
-
}
|
|
694
|
-
return '-webkit-' + a + '-ms-' + a + a;
|
|
695
|
-
case 964:
|
|
696
|
-
return '-webkit-' + a + '-ms-flex-' + a + a;
|
|
697
|
-
case 1023:
|
|
698
|
-
if (99 !== a.charCodeAt(8)) break;
|
|
699
|
-
b = a.substring(a.indexOf(':', 15)).replace('flex-', '').replace('space-between', 'justify');
|
|
700
|
-
return '-webkit-box-pack' + b + '-webkit-' + a + '-ms-flex-pack' + b + a;
|
|
701
|
-
case 1005:
|
|
702
|
-
return ka.test(a) ? a.replace(aa, ':-webkit-') + a.replace(aa, ':-moz-') + a : a;
|
|
703
|
-
case 1e3:
|
|
704
|
-
b = a.substring(13).trim();
|
|
705
|
-
c = b.indexOf('-') + 1;
|
|
706
|
-
switch (b.charCodeAt(0) + b.charCodeAt(c)) {
|
|
707
|
-
case 226:
|
|
708
|
-
b = a.replace(G, 'tb');
|
|
709
|
-
break;
|
|
710
|
-
case 232:
|
|
711
|
-
b = a.replace(G, 'tb-rl');
|
|
712
|
-
break;
|
|
713
|
-
case 220:
|
|
714
|
-
b = a.replace(G, 'lr');
|
|
715
|
-
break;
|
|
716
|
-
default:
|
|
717
|
-
return a;
|
|
718
|
-
}
|
|
719
|
-
return '-webkit-' + a + '-ms-' + b + a;
|
|
720
|
-
case 1017:
|
|
721
|
-
if (-1 === a.indexOf('sticky', 9)) break;
|
|
722
|
-
case 975:
|
|
723
|
-
c = (a = d).length - 10;
|
|
724
|
-
b = (33 === a.charCodeAt(c) ? a.substring(0, c) : a).substring(d.indexOf(':', 7) + 1).trim();
|
|
725
|
-
switch (m = b.charCodeAt(0) + (b.charCodeAt(7) | 0)) {
|
|
726
|
-
case 203:
|
|
727
|
-
if (111 > b.charCodeAt(8)) break;
|
|
728
|
-
case 115:
|
|
729
|
-
a = a.replace(b, '-webkit-' + b) + ';' + a;
|
|
730
|
-
break;
|
|
731
|
-
case 207:
|
|
732
|
-
case 102:
|
|
733
|
-
a = a.replace(b, '-webkit-' + (102 < m ? 'inline-' : '') + 'box') + ';' + a.replace(b, '-webkit-' + b) + ';' + a.replace(b, '-ms-' + b + 'box') + ';' + a;
|
|
734
|
-
}
|
|
735
|
-
return a + ';';
|
|
736
|
-
case 938:
|
|
737
|
-
if (45 === a.charCodeAt(5)) switch (a.charCodeAt(6)) {
|
|
738
|
-
case 105:
|
|
739
|
-
return b = a.replace('-items', ''), '-webkit-' + a + '-webkit-box-' + b + '-ms-flex-' + b + a;
|
|
740
|
-
case 115:
|
|
741
|
-
return '-webkit-' + a + '-ms-flex-item-' + a.replace(ba, '') + a;
|
|
742
|
-
default:
|
|
743
|
-
return '-webkit-' + a + '-ms-flex-line-pack' + a.replace('align-content', '').replace(ba, '') + a;
|
|
744
|
-
}
|
|
745
|
-
break;
|
|
746
|
-
case 973:
|
|
747
|
-
case 989:
|
|
748
|
-
if (45 !== a.charCodeAt(3) || 122 === a.charCodeAt(4)) break;
|
|
749
|
-
case 931:
|
|
750
|
-
case 953:
|
|
751
|
-
if (!0 === la.test(d)) return 115 === (b = d.substring(d.indexOf(':') + 1)).charCodeAt(0) ? P(d.replace('stretch', 'fill-available'), c, e, h).replace(':fill-available', ':stretch') : a.replace(b, '-webkit-' + b) + a.replace(b, '-moz-' + b.replace('fill-', '')) + a;
|
|
752
|
-
break;
|
|
753
|
-
case 962:
|
|
754
|
-
if (a = '-webkit-' + a + (102 === a.charCodeAt(5) ? '-ms-' + a : '') + a, 211 === e + h && 105 === a.charCodeAt(13) && 0 < a.indexOf('transform', 10)) return a.substring(0, a.indexOf(';', 27) + 1).replace(ma, '$1-webkit-$2') + a;
|
|
755
|
-
}
|
|
756
|
-
return a;
|
|
757
|
-
}
|
|
758
|
-
function L(d, c) {
|
|
759
|
-
var e = d.indexOf(1 === c ? ':' : '{'),
|
|
760
|
-
h = d.substring(0, 3 !== c ? e : 10);
|
|
761
|
-
e = d.substring(e + 1, d.length - 1);
|
|
762
|
-
return R(2 !== c ? h : h.replace(na, '$1'), e, c);
|
|
763
|
-
}
|
|
764
|
-
function ea(d, c) {
|
|
765
|
-
var e = P(c, c.charCodeAt(0), c.charCodeAt(1), c.charCodeAt(2));
|
|
766
|
-
return e !== c + ';' ? e.replace(oa, ' or ($1)').substring(4) : '(' + c + ')';
|
|
767
|
-
}
|
|
768
|
-
function H(d, c, e, h, a, m, b, v, n, q) {
|
|
769
|
-
for (var g = 0, x = c, w; g < A; ++g) {
|
|
770
|
-
switch (w = S[g].call(B, d, x, e, h, a, m, b, v, n, q)) {
|
|
771
|
-
case void 0:
|
|
772
|
-
case !1:
|
|
773
|
-
case !0:
|
|
774
|
-
case null:
|
|
775
|
-
break;
|
|
776
|
-
default:
|
|
777
|
-
x = w;
|
|
778
|
-
}
|
|
779
|
-
}
|
|
780
|
-
if (x !== c) return x;
|
|
781
|
-
}
|
|
782
|
-
function T(d) {
|
|
783
|
-
switch (d) {
|
|
784
|
-
case void 0:
|
|
785
|
-
case null:
|
|
786
|
-
A = S.length = 0;
|
|
787
|
-
break;
|
|
788
|
-
default:
|
|
789
|
-
if ('function' === typeof d) S[A++] = d;else if ('object' === typeof d) for (var c = 0, e = d.length; c < e; ++c) {
|
|
790
|
-
T(d[c]);
|
|
791
|
-
} else Y = !!d | 0;
|
|
792
|
-
}
|
|
793
|
-
return T;
|
|
794
|
-
}
|
|
795
|
-
function U(d) {
|
|
796
|
-
d = d.prefix;
|
|
797
|
-
void 0 !== d && (R = null, d ? 'function' !== typeof d ? w = 1 : (w = 2, R = d) : w = 0);
|
|
798
|
-
return U;
|
|
799
|
-
}
|
|
800
|
-
function B(d, c) {
|
|
801
|
-
var e = d;
|
|
802
|
-
33 > e.charCodeAt(0) && (e = e.trim());
|
|
803
|
-
V = e;
|
|
804
|
-
e = [V];
|
|
805
|
-
if (0 < A) {
|
|
806
|
-
var h = H(-1, c, e, e, D, z, 0, 0, 0, 0);
|
|
807
|
-
void 0 !== h && 'string' === typeof h && (c = h);
|
|
808
|
-
}
|
|
809
|
-
var a = M(O, e, c, 0, 0);
|
|
810
|
-
0 < A && (h = H(-2, a, e, e, D, z, a.length, 0, 0, 0), void 0 !== h && (a = h));
|
|
811
|
-
V = '';
|
|
812
|
-
E = 0;
|
|
813
|
-
z = D = 1;
|
|
814
|
-
return a;
|
|
815
|
-
}
|
|
816
|
-
var ca = /^\0+/g,
|
|
817
|
-
N = /[\0\r\f]/g,
|
|
818
|
-
aa = /: */g,
|
|
819
|
-
ka = /zoo|gra/,
|
|
820
|
-
ma = /([,: ])(transform)/g,
|
|
821
|
-
ia = /,\r+?/g,
|
|
822
|
-
F = /([\t\r\n ])*\f?&/g,
|
|
823
|
-
fa = /@(k\w+)\s*(\S*)\s*/,
|
|
824
|
-
Q = /::(place)/g,
|
|
825
|
-
ha = /:(read-only)/g,
|
|
826
|
-
G = /[svh]\w+-[tblr]{2}/,
|
|
827
|
-
da = /\(\s*(.*)\s*\)/g,
|
|
828
|
-
oa = /([\s\S]*?);/g,
|
|
829
|
-
ba = /-self|flex-/g,
|
|
830
|
-
na = /[^]*?(:[rp][el]a[\w-]+)[^]*/,
|
|
831
|
-
la = /stretch|:\s*\w+\-(?:conte|avail)/,
|
|
832
|
-
ja = /([^-])(image-set\()/,
|
|
833
|
-
z = 1,
|
|
834
|
-
D = 1,
|
|
835
|
-
E = 0,
|
|
836
|
-
w = 1,
|
|
837
|
-
O = [],
|
|
838
|
-
S = [],
|
|
839
|
-
A = 0,
|
|
840
|
-
R = null,
|
|
841
|
-
Y = 0,
|
|
842
|
-
V = '';
|
|
843
|
-
B.use = T;
|
|
844
|
-
B.set = U;
|
|
845
|
-
void 0 !== W && U(W);
|
|
846
|
-
return B;
|
|
847
|
-
}
|
|
848
|
-
var unitlessKeys = {
|
|
849
|
-
animationIterationCount: 1,
|
|
850
|
-
borderImageOutset: 1,
|
|
851
|
-
borderImageSlice: 1,
|
|
852
|
-
borderImageWidth: 1,
|
|
853
|
-
boxFlex: 1,
|
|
854
|
-
boxFlexGroup: 1,
|
|
855
|
-
boxOrdinalGroup: 1,
|
|
856
|
-
columnCount: 1,
|
|
857
|
-
columns: 1,
|
|
858
|
-
flex: 1,
|
|
859
|
-
flexGrow: 1,
|
|
860
|
-
flexPositive: 1,
|
|
861
|
-
flexShrink: 1,
|
|
862
|
-
flexNegative: 1,
|
|
863
|
-
flexOrder: 1,
|
|
864
|
-
gridRow: 1,
|
|
865
|
-
gridRowEnd: 1,
|
|
866
|
-
gridRowSpan: 1,
|
|
867
|
-
gridRowStart: 1,
|
|
868
|
-
gridColumn: 1,
|
|
869
|
-
gridColumnEnd: 1,
|
|
870
|
-
gridColumnSpan: 1,
|
|
871
|
-
gridColumnStart: 1,
|
|
872
|
-
msGridRow: 1,
|
|
873
|
-
msGridRowSpan: 1,
|
|
874
|
-
msGridColumn: 1,
|
|
875
|
-
msGridColumnSpan: 1,
|
|
876
|
-
fontWeight: 1,
|
|
877
|
-
lineHeight: 1,
|
|
878
|
-
opacity: 1,
|
|
879
|
-
order: 1,
|
|
880
|
-
orphans: 1,
|
|
881
|
-
tabSize: 1,
|
|
882
|
-
widows: 1,
|
|
883
|
-
zIndex: 1,
|
|
884
|
-
zoom: 1,
|
|
885
|
-
WebkitLineClamp: 1,
|
|
886
|
-
// SVG-related properties
|
|
887
|
-
fillOpacity: 1,
|
|
888
|
-
floodOpacity: 1,
|
|
889
|
-
stopOpacity: 1,
|
|
890
|
-
strokeDasharray: 1,
|
|
891
|
-
strokeDashoffset: 1,
|
|
892
|
-
strokeMiterlimit: 1,
|
|
893
|
-
strokeOpacity: 1,
|
|
894
|
-
strokeWidth: 1
|
|
895
|
-
};
|
|
896
|
-
function memoize(fn) {
|
|
897
|
-
var cache = Object.create(null);
|
|
898
|
-
return function (arg) {
|
|
899
|
-
if (cache[arg] === undefined) cache[arg] = fn(arg);
|
|
900
|
-
return cache[arg];
|
|
901
|
-
};
|
|
902
|
-
}
|
|
903
|
-
var reactPropsRegex = /^((children|dangerouslySetInnerHTML|key|ref|autoFocus|defaultValue|defaultChecked|innerHTML|suppressContentEditableWarning|suppressHydrationWarning|valueLink|abbr|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|decoding|default|defer|dir|disabled|disablePictureInPicture|download|draggable|encType|enterKeyHint|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|loading|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|translate|type|useMap|value|width|wmode|wrap|about|datatype|inlist|prefix|property|resource|typeof|vocab|autoCapitalize|autoCorrect|autoSave|color|incremental|fallback|inert|itemProp|itemScope|itemType|itemID|itemRef|on|option|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)-.*))$/; // https://esbench.com/bench/5bfee68a4cd7e6009ef61d23
|
|
904
|
-
|
|
905
|
-
var isPropValid = /* #__PURE__ */memoize(function (prop) {
|
|
906
|
-
return reactPropsRegex.test(prop) || prop.charCodeAt(0) === 111
|
|
907
|
-
/* o */ && prop.charCodeAt(1) === 110
|
|
908
|
-
/* n */ && prop.charCodeAt(2) < 91;
|
|
909
|
-
}
|
|
910
|
-
/* Z+1 */);
|
|
911
|
-
|
|
912
|
-
var reactIsExports = {};
|
|
913
|
-
var reactIs$1 = {
|
|
914
|
-
get exports() {
|
|
915
|
-
return reactIsExports;
|
|
916
|
-
},
|
|
917
|
-
set exports(v) {
|
|
918
|
-
reactIsExports = v;
|
|
919
|
-
}
|
|
920
|
-
};
|
|
921
|
-
var reactIs_production_min = {};
|
|
922
|
-
|
|
923
|
-
/** @license React v16.13.1
|
|
924
|
-
* react-is.production.min.js
|
|
925
|
-
*
|
|
926
|
-
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
927
|
-
*
|
|
928
|
-
* This source code is licensed under the MIT license found in the
|
|
929
|
-
* LICENSE file in the root directory of this source tree.
|
|
930
|
-
*/
|
|
931
|
-
|
|
932
|
-
var hasRequiredReactIs_production_min;
|
|
933
|
-
function requireReactIs_production_min() {
|
|
934
|
-
if (hasRequiredReactIs_production_min) return reactIs_production_min;
|
|
935
|
-
hasRequiredReactIs_production_min = 1;
|
|
936
|
-
var b = "function" === typeof Symbol && Symbol.for,
|
|
937
|
-
c = b ? Symbol.for("react.element") : 60103,
|
|
938
|
-
d = b ? Symbol.for("react.portal") : 60106,
|
|
939
|
-
e = b ? Symbol.for("react.fragment") : 60107,
|
|
940
|
-
f = b ? Symbol.for("react.strict_mode") : 60108,
|
|
941
|
-
g = b ? Symbol.for("react.profiler") : 60114,
|
|
942
|
-
h = b ? Symbol.for("react.provider") : 60109,
|
|
943
|
-
k = b ? Symbol.for("react.context") : 60110,
|
|
944
|
-
l = b ? Symbol.for("react.async_mode") : 60111,
|
|
945
|
-
m = b ? Symbol.for("react.concurrent_mode") : 60111,
|
|
946
|
-
n = b ? Symbol.for("react.forward_ref") : 60112,
|
|
947
|
-
p = b ? Symbol.for("react.suspense") : 60113,
|
|
948
|
-
q = b ? Symbol.for("react.suspense_list") : 60120,
|
|
949
|
-
r = b ? Symbol.for("react.memo") : 60115,
|
|
950
|
-
t = b ? Symbol.for("react.lazy") : 60116,
|
|
951
|
-
v = b ? Symbol.for("react.block") : 60121,
|
|
952
|
-
w = b ? Symbol.for("react.fundamental") : 60117,
|
|
953
|
-
x = b ? Symbol.for("react.responder") : 60118,
|
|
954
|
-
y = b ? Symbol.for("react.scope") : 60119;
|
|
955
|
-
function z(a) {
|
|
956
|
-
if ("object" === typeof a && null !== a) {
|
|
957
|
-
var u = a.$$typeof;
|
|
958
|
-
switch (u) {
|
|
959
|
-
case c:
|
|
960
|
-
switch (a = a.type, a) {
|
|
961
|
-
case l:
|
|
962
|
-
case m:
|
|
963
|
-
case e:
|
|
964
|
-
case g:
|
|
965
|
-
case f:
|
|
966
|
-
case p:
|
|
967
|
-
return a;
|
|
968
|
-
default:
|
|
969
|
-
switch (a = a && a.$$typeof, a) {
|
|
970
|
-
case k:
|
|
971
|
-
case n:
|
|
972
|
-
case t:
|
|
973
|
-
case r:
|
|
974
|
-
case h:
|
|
975
|
-
return a;
|
|
976
|
-
default:
|
|
977
|
-
return u;
|
|
978
|
-
}
|
|
979
|
-
}
|
|
980
|
-
case d:
|
|
981
|
-
return u;
|
|
982
|
-
}
|
|
983
|
-
}
|
|
984
|
-
}
|
|
985
|
-
function A(a) {
|
|
986
|
-
return z(a) === m;
|
|
987
|
-
}
|
|
988
|
-
reactIs_production_min.AsyncMode = l;
|
|
989
|
-
reactIs_production_min.ConcurrentMode = m;
|
|
990
|
-
reactIs_production_min.ContextConsumer = k;
|
|
991
|
-
reactIs_production_min.ContextProvider = h;
|
|
992
|
-
reactIs_production_min.Element = c;
|
|
993
|
-
reactIs_production_min.ForwardRef = n;
|
|
994
|
-
reactIs_production_min.Fragment = e;
|
|
995
|
-
reactIs_production_min.Lazy = t;
|
|
996
|
-
reactIs_production_min.Memo = r;
|
|
997
|
-
reactIs_production_min.Portal = d;
|
|
998
|
-
reactIs_production_min.Profiler = g;
|
|
999
|
-
reactIs_production_min.StrictMode = f;
|
|
1000
|
-
reactIs_production_min.Suspense = p;
|
|
1001
|
-
reactIs_production_min.isAsyncMode = function (a) {
|
|
1002
|
-
return A(a) || z(a) === l;
|
|
1003
|
-
};
|
|
1004
|
-
reactIs_production_min.isConcurrentMode = A;
|
|
1005
|
-
reactIs_production_min.isContextConsumer = function (a) {
|
|
1006
|
-
return z(a) === k;
|
|
1007
|
-
};
|
|
1008
|
-
reactIs_production_min.isContextProvider = function (a) {
|
|
1009
|
-
return z(a) === h;
|
|
1010
|
-
};
|
|
1011
|
-
reactIs_production_min.isElement = function (a) {
|
|
1012
|
-
return "object" === typeof a && null !== a && a.$$typeof === c;
|
|
1013
|
-
};
|
|
1014
|
-
reactIs_production_min.isForwardRef = function (a) {
|
|
1015
|
-
return z(a) === n;
|
|
1016
|
-
};
|
|
1017
|
-
reactIs_production_min.isFragment = function (a) {
|
|
1018
|
-
return z(a) === e;
|
|
1019
|
-
};
|
|
1020
|
-
reactIs_production_min.isLazy = function (a) {
|
|
1021
|
-
return z(a) === t;
|
|
1022
|
-
};
|
|
1023
|
-
reactIs_production_min.isMemo = function (a) {
|
|
1024
|
-
return z(a) === r;
|
|
1025
|
-
};
|
|
1026
|
-
reactIs_production_min.isPortal = function (a) {
|
|
1027
|
-
return z(a) === d;
|
|
1028
|
-
};
|
|
1029
|
-
reactIs_production_min.isProfiler = function (a) {
|
|
1030
|
-
return z(a) === g;
|
|
1031
|
-
};
|
|
1032
|
-
reactIs_production_min.isStrictMode = function (a) {
|
|
1033
|
-
return z(a) === f;
|
|
1034
|
-
};
|
|
1035
|
-
reactIs_production_min.isSuspense = function (a) {
|
|
1036
|
-
return z(a) === p;
|
|
1037
|
-
};
|
|
1038
|
-
reactIs_production_min.isValidElementType = function (a) {
|
|
1039
|
-
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 === r || a.$$typeof === h || a.$$typeof === k || a.$$typeof === n || a.$$typeof === w || a.$$typeof === x || a.$$typeof === y || a.$$typeof === v);
|
|
1040
|
-
};
|
|
1041
|
-
reactIs_production_min.typeOf = z;
|
|
1042
|
-
return reactIs_production_min;
|
|
1043
|
-
}
|
|
1044
|
-
var reactIs_development = {};
|
|
1045
|
-
|
|
1046
|
-
/** @license React v16.13.1
|
|
1047
|
-
* react-is.development.js
|
|
1048
|
-
*
|
|
1049
|
-
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
1050
|
-
*
|
|
1051
|
-
* This source code is licensed under the MIT license found in the
|
|
1052
|
-
* LICENSE file in the root directory of this source tree.
|
|
1053
|
-
*/
|
|
1054
|
-
|
|
1055
|
-
var hasRequiredReactIs_development;
|
|
1056
|
-
function requireReactIs_development() {
|
|
1057
|
-
if (hasRequiredReactIs_development) return reactIs_development;
|
|
1058
|
-
hasRequiredReactIs_development = 1;
|
|
1059
|
-
if (process.env.NODE_ENV !== "production") {
|
|
1060
|
-
(function () {
|
|
1061
|
-
// The Symbol used to tag the ReactElement-like types. If there is no native Symbol
|
|
1062
|
-
// nor polyfill, then a plain number is used for performance.
|
|
1063
|
-
var hasSymbol = typeof Symbol === 'function' && Symbol.for;
|
|
1064
|
-
var REACT_ELEMENT_TYPE = hasSymbol ? Symbol.for('react.element') : 0xeac7;
|
|
1065
|
-
var REACT_PORTAL_TYPE = hasSymbol ? Symbol.for('react.portal') : 0xeaca;
|
|
1066
|
-
var REACT_FRAGMENT_TYPE = hasSymbol ? Symbol.for('react.fragment') : 0xeacb;
|
|
1067
|
-
var REACT_STRICT_MODE_TYPE = hasSymbol ? Symbol.for('react.strict_mode') : 0xeacc;
|
|
1068
|
-
var REACT_PROFILER_TYPE = hasSymbol ? Symbol.for('react.profiler') : 0xead2;
|
|
1069
|
-
var REACT_PROVIDER_TYPE = hasSymbol ? Symbol.for('react.provider') : 0xeacd;
|
|
1070
|
-
var REACT_CONTEXT_TYPE = hasSymbol ? Symbol.for('react.context') : 0xeace; // TODO: We don't use AsyncMode or ConcurrentMode anymore. They were temporary
|
|
1071
|
-
// (unstable) APIs that have been removed. Can we remove the symbols?
|
|
1072
|
-
|
|
1073
|
-
var REACT_ASYNC_MODE_TYPE = hasSymbol ? Symbol.for('react.async_mode') : 0xeacf;
|
|
1074
|
-
var REACT_CONCURRENT_MODE_TYPE = hasSymbol ? Symbol.for('react.concurrent_mode') : 0xeacf;
|
|
1075
|
-
var REACT_FORWARD_REF_TYPE = hasSymbol ? Symbol.for('react.forward_ref') : 0xead0;
|
|
1076
|
-
var REACT_SUSPENSE_TYPE = hasSymbol ? Symbol.for('react.suspense') : 0xead1;
|
|
1077
|
-
var REACT_SUSPENSE_LIST_TYPE = hasSymbol ? Symbol.for('react.suspense_list') : 0xead8;
|
|
1078
|
-
var REACT_MEMO_TYPE = hasSymbol ? Symbol.for('react.memo') : 0xead3;
|
|
1079
|
-
var REACT_LAZY_TYPE = hasSymbol ? Symbol.for('react.lazy') : 0xead4;
|
|
1080
|
-
var REACT_BLOCK_TYPE = hasSymbol ? Symbol.for('react.block') : 0xead9;
|
|
1081
|
-
var REACT_FUNDAMENTAL_TYPE = hasSymbol ? Symbol.for('react.fundamental') : 0xead5;
|
|
1082
|
-
var REACT_RESPONDER_TYPE = hasSymbol ? Symbol.for('react.responder') : 0xead6;
|
|
1083
|
-
var REACT_SCOPE_TYPE = hasSymbol ? Symbol.for('react.scope') : 0xead7;
|
|
1084
|
-
function isValidElementType(type) {
|
|
1085
|
-
return typeof type === 'string' || typeof type === 'function' ||
|
|
1086
|
-
// Note: its typeof might be other than 'symbol' or 'number' if it's a polyfill.
|
|
1087
|
-
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);
|
|
1088
|
-
}
|
|
1089
|
-
function typeOf(object) {
|
|
1090
|
-
if (typeof object === 'object' && object !== null) {
|
|
1091
|
-
var $$typeof = object.$$typeof;
|
|
1092
|
-
switch ($$typeof) {
|
|
1093
|
-
case REACT_ELEMENT_TYPE:
|
|
1094
|
-
var type = object.type;
|
|
1095
|
-
switch (type) {
|
|
1096
|
-
case REACT_ASYNC_MODE_TYPE:
|
|
1097
|
-
case REACT_CONCURRENT_MODE_TYPE:
|
|
1098
|
-
case REACT_FRAGMENT_TYPE:
|
|
1099
|
-
case REACT_PROFILER_TYPE:
|
|
1100
|
-
case REACT_STRICT_MODE_TYPE:
|
|
1101
|
-
case REACT_SUSPENSE_TYPE:
|
|
1102
|
-
return type;
|
|
1103
|
-
default:
|
|
1104
|
-
var $$typeofType = type && type.$$typeof;
|
|
1105
|
-
switch ($$typeofType) {
|
|
1106
|
-
case REACT_CONTEXT_TYPE:
|
|
1107
|
-
case REACT_FORWARD_REF_TYPE:
|
|
1108
|
-
case REACT_LAZY_TYPE:
|
|
1109
|
-
case REACT_MEMO_TYPE:
|
|
1110
|
-
case REACT_PROVIDER_TYPE:
|
|
1111
|
-
return $$typeofType;
|
|
1112
|
-
default:
|
|
1113
|
-
return $$typeof;
|
|
1114
|
-
}
|
|
1115
|
-
}
|
|
1116
|
-
case REACT_PORTAL_TYPE:
|
|
1117
|
-
return $$typeof;
|
|
1118
|
-
}
|
|
1119
|
-
}
|
|
1120
|
-
return undefined;
|
|
1121
|
-
} // AsyncMode is deprecated along with isAsyncMode
|
|
1122
|
-
|
|
1123
|
-
var AsyncMode = REACT_ASYNC_MODE_TYPE;
|
|
1124
|
-
var ConcurrentMode = REACT_CONCURRENT_MODE_TYPE;
|
|
1125
|
-
var ContextConsumer = REACT_CONTEXT_TYPE;
|
|
1126
|
-
var ContextProvider = REACT_PROVIDER_TYPE;
|
|
1127
|
-
var Element = REACT_ELEMENT_TYPE;
|
|
1128
|
-
var ForwardRef = REACT_FORWARD_REF_TYPE;
|
|
1129
|
-
var Fragment = REACT_FRAGMENT_TYPE;
|
|
1130
|
-
var Lazy = REACT_LAZY_TYPE;
|
|
1131
|
-
var Memo = REACT_MEMO_TYPE;
|
|
1132
|
-
var Portal = REACT_PORTAL_TYPE;
|
|
1133
|
-
var Profiler = REACT_PROFILER_TYPE;
|
|
1134
|
-
var StrictMode = REACT_STRICT_MODE_TYPE;
|
|
1135
|
-
var Suspense = REACT_SUSPENSE_TYPE;
|
|
1136
|
-
var hasWarnedAboutDeprecatedIsAsyncMode = false; // AsyncMode should be deprecated
|
|
1137
|
-
|
|
1138
|
-
function isAsyncMode(object) {
|
|
1139
|
-
{
|
|
1140
|
-
if (!hasWarnedAboutDeprecatedIsAsyncMode) {
|
|
1141
|
-
hasWarnedAboutDeprecatedIsAsyncMode = true; // Using console['warn'] to evade Babel and ESLint
|
|
1142
|
-
|
|
1143
|
-
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.');
|
|
1144
|
-
}
|
|
1145
|
-
}
|
|
1146
|
-
return isConcurrentMode(object) || typeOf(object) === REACT_ASYNC_MODE_TYPE;
|
|
1147
|
-
}
|
|
1148
|
-
function isConcurrentMode(object) {
|
|
1149
|
-
return typeOf(object) === REACT_CONCURRENT_MODE_TYPE;
|
|
1150
|
-
}
|
|
1151
|
-
function isContextConsumer(object) {
|
|
1152
|
-
return typeOf(object) === REACT_CONTEXT_TYPE;
|
|
1153
|
-
}
|
|
1154
|
-
function isContextProvider(object) {
|
|
1155
|
-
return typeOf(object) === REACT_PROVIDER_TYPE;
|
|
1156
|
-
}
|
|
1157
|
-
function isElement(object) {
|
|
1158
|
-
return typeof object === 'object' && object !== null && object.$$typeof === REACT_ELEMENT_TYPE;
|
|
1159
|
-
}
|
|
1160
|
-
function isForwardRef(object) {
|
|
1161
|
-
return typeOf(object) === REACT_FORWARD_REF_TYPE;
|
|
1162
|
-
}
|
|
1163
|
-
function isFragment(object) {
|
|
1164
|
-
return typeOf(object) === REACT_FRAGMENT_TYPE;
|
|
1165
|
-
}
|
|
1166
|
-
function isLazy(object) {
|
|
1167
|
-
return typeOf(object) === REACT_LAZY_TYPE;
|
|
1168
|
-
}
|
|
1169
|
-
function isMemo(object) {
|
|
1170
|
-
return typeOf(object) === REACT_MEMO_TYPE;
|
|
1171
|
-
}
|
|
1172
|
-
function isPortal(object) {
|
|
1173
|
-
return typeOf(object) === REACT_PORTAL_TYPE;
|
|
1174
|
-
}
|
|
1175
|
-
function isProfiler(object) {
|
|
1176
|
-
return typeOf(object) === REACT_PROFILER_TYPE;
|
|
1177
|
-
}
|
|
1178
|
-
function isStrictMode(object) {
|
|
1179
|
-
return typeOf(object) === REACT_STRICT_MODE_TYPE;
|
|
1180
|
-
}
|
|
1181
|
-
function isSuspense(object) {
|
|
1182
|
-
return typeOf(object) === REACT_SUSPENSE_TYPE;
|
|
1183
|
-
}
|
|
1184
|
-
reactIs_development.AsyncMode = AsyncMode;
|
|
1185
|
-
reactIs_development.ConcurrentMode = ConcurrentMode;
|
|
1186
|
-
reactIs_development.ContextConsumer = ContextConsumer;
|
|
1187
|
-
reactIs_development.ContextProvider = ContextProvider;
|
|
1188
|
-
reactIs_development.Element = Element;
|
|
1189
|
-
reactIs_development.ForwardRef = ForwardRef;
|
|
1190
|
-
reactIs_development.Fragment = Fragment;
|
|
1191
|
-
reactIs_development.Lazy = Lazy;
|
|
1192
|
-
reactIs_development.Memo = Memo;
|
|
1193
|
-
reactIs_development.Portal = Portal;
|
|
1194
|
-
reactIs_development.Profiler = Profiler;
|
|
1195
|
-
reactIs_development.StrictMode = StrictMode;
|
|
1196
|
-
reactIs_development.Suspense = Suspense;
|
|
1197
|
-
reactIs_development.isAsyncMode = isAsyncMode;
|
|
1198
|
-
reactIs_development.isConcurrentMode = isConcurrentMode;
|
|
1199
|
-
reactIs_development.isContextConsumer = isContextConsumer;
|
|
1200
|
-
reactIs_development.isContextProvider = isContextProvider;
|
|
1201
|
-
reactIs_development.isElement = isElement;
|
|
1202
|
-
reactIs_development.isForwardRef = isForwardRef;
|
|
1203
|
-
reactIs_development.isFragment = isFragment;
|
|
1204
|
-
reactIs_development.isLazy = isLazy;
|
|
1205
|
-
reactIs_development.isMemo = isMemo;
|
|
1206
|
-
reactIs_development.isPortal = isPortal;
|
|
1207
|
-
reactIs_development.isProfiler = isProfiler;
|
|
1208
|
-
reactIs_development.isStrictMode = isStrictMode;
|
|
1209
|
-
reactIs_development.isSuspense = isSuspense;
|
|
1210
|
-
reactIs_development.isValidElementType = isValidElementType;
|
|
1211
|
-
reactIs_development.typeOf = typeOf;
|
|
1212
|
-
})();
|
|
1213
|
-
}
|
|
1214
|
-
return reactIs_development;
|
|
1215
|
-
}
|
|
1216
|
-
(function (module) {
|
|
1217
|
-
if (process.env.NODE_ENV === 'production') {
|
|
1218
|
-
module.exports = requireReactIs_production_min();
|
|
1219
|
-
} else {
|
|
1220
|
-
module.exports = requireReactIs_development();
|
|
1221
|
-
}
|
|
1222
|
-
})(reactIs$1);
|
|
1223
|
-
var reactIs = reactIsExports;
|
|
1224
|
-
|
|
1225
|
-
/**
|
|
1226
|
-
* Copyright 2015, Yahoo! Inc.
|
|
1227
|
-
* Copyrights licensed under the New BSD License. See the accompanying LICENSE file for terms.
|
|
1228
|
-
*/
|
|
1229
|
-
var REACT_STATICS = {
|
|
1230
|
-
childContextTypes: true,
|
|
1231
|
-
contextType: true,
|
|
1232
|
-
contextTypes: true,
|
|
1233
|
-
defaultProps: true,
|
|
1234
|
-
displayName: true,
|
|
1235
|
-
getDefaultProps: true,
|
|
1236
|
-
getDerivedStateFromError: true,
|
|
1237
|
-
getDerivedStateFromProps: true,
|
|
1238
|
-
mixins: true,
|
|
1239
|
-
propTypes: true,
|
|
1240
|
-
type: true
|
|
1241
|
-
};
|
|
1242
|
-
var KNOWN_STATICS = {
|
|
1243
|
-
name: true,
|
|
1244
|
-
length: true,
|
|
1245
|
-
prototype: true,
|
|
1246
|
-
caller: true,
|
|
1247
|
-
callee: true,
|
|
1248
|
-
arguments: true,
|
|
1249
|
-
arity: true
|
|
1250
|
-
};
|
|
1251
|
-
var FORWARD_REF_STATICS = {
|
|
1252
|
-
'$$typeof': true,
|
|
1253
|
-
render: true,
|
|
1254
|
-
defaultProps: true,
|
|
1255
|
-
displayName: true,
|
|
1256
|
-
propTypes: true
|
|
1257
|
-
};
|
|
1258
|
-
var MEMO_STATICS = {
|
|
1259
|
-
'$$typeof': true,
|
|
1260
|
-
compare: true,
|
|
1261
|
-
defaultProps: true,
|
|
1262
|
-
displayName: true,
|
|
1263
|
-
propTypes: true,
|
|
1264
|
-
type: true
|
|
1265
|
-
};
|
|
1266
|
-
var TYPE_STATICS = {};
|
|
1267
|
-
TYPE_STATICS[reactIs.ForwardRef] = FORWARD_REF_STATICS;
|
|
1268
|
-
TYPE_STATICS[reactIs.Memo] = MEMO_STATICS;
|
|
1269
|
-
function getStatics(component) {
|
|
1270
|
-
// React v16.11 and below
|
|
1271
|
-
if (reactIs.isMemo(component)) {
|
|
1272
|
-
return MEMO_STATICS;
|
|
1273
|
-
} // React v16.12 and above
|
|
1274
|
-
|
|
1275
|
-
return TYPE_STATICS[component['$$typeof']] || REACT_STATICS;
|
|
1276
|
-
}
|
|
1277
|
-
var defineProperty = Object.defineProperty;
|
|
1278
|
-
var getOwnPropertyNames = Object.getOwnPropertyNames;
|
|
1279
|
-
var getOwnPropertySymbols = Object.getOwnPropertySymbols;
|
|
1280
|
-
var getOwnPropertyDescriptor = Object.getOwnPropertyDescriptor;
|
|
1281
|
-
var getPrototypeOf = Object.getPrototypeOf;
|
|
1282
|
-
var objectPrototype = Object.prototype;
|
|
1283
|
-
function hoistNonReactStatics(targetComponent, sourceComponent, blacklist) {
|
|
1284
|
-
if (typeof sourceComponent !== 'string') {
|
|
1285
|
-
// don't hoist over string (html) components
|
|
1286
|
-
if (objectPrototype) {
|
|
1287
|
-
var inheritedComponent = getPrototypeOf(sourceComponent);
|
|
1288
|
-
if (inheritedComponent && inheritedComponent !== objectPrototype) {
|
|
1289
|
-
hoistNonReactStatics(targetComponent, inheritedComponent, blacklist);
|
|
1290
|
-
}
|
|
1291
|
-
}
|
|
1292
|
-
var keys = getOwnPropertyNames(sourceComponent);
|
|
1293
|
-
if (getOwnPropertySymbols) {
|
|
1294
|
-
keys = keys.concat(getOwnPropertySymbols(sourceComponent));
|
|
1295
|
-
}
|
|
1296
|
-
var targetStatics = getStatics(targetComponent);
|
|
1297
|
-
var sourceStatics = getStatics(sourceComponent);
|
|
1298
|
-
for (var i = 0; i < keys.length; ++i) {
|
|
1299
|
-
var key = keys[i];
|
|
1300
|
-
if (!KNOWN_STATICS[key] && !(blacklist && blacklist[key]) && !(sourceStatics && sourceStatics[key]) && !(targetStatics && targetStatics[key])) {
|
|
1301
|
-
var descriptor = getOwnPropertyDescriptor(sourceComponent, key);
|
|
1302
|
-
try {
|
|
1303
|
-
// Avoid failures from read-only properties
|
|
1304
|
-
defineProperty(targetComponent, key, descriptor);
|
|
1305
|
-
} catch (e) {}
|
|
1306
|
-
}
|
|
1307
|
-
}
|
|
1308
|
-
}
|
|
1309
|
-
return targetComponent;
|
|
1310
|
-
}
|
|
1311
|
-
var hoistNonReactStatics_cjs = hoistNonReactStatics;
|
|
1312
|
-
function y() {
|
|
1313
|
-
return (y = Object.assign || function (e) {
|
|
1314
|
-
for (var t = 1; t < arguments.length; t++) {
|
|
1315
|
-
var n = arguments[t];
|
|
1316
|
-
for (var r in n) Object.prototype.hasOwnProperty.call(n, r) && (e[r] = n[r]);
|
|
1317
|
-
}
|
|
1318
|
-
return e;
|
|
1319
|
-
}).apply(this, arguments);
|
|
1320
|
-
}
|
|
1321
|
-
var v = function (e, t) {
|
|
1322
|
-
for (var n = [e[0]], r = 0, o = t.length; r < o; r += 1) n.push(t[r], e[r + 1]);
|
|
1323
|
-
return n;
|
|
1324
|
-
},
|
|
1325
|
-
g = function (t) {
|
|
1326
|
-
return null !== t && "object" == typeof t && "[object Object]" === (t.toString ? t.toString() : Object.prototype.toString.call(t)) && !reactIsExports$1.typeOf(t);
|
|
1327
|
-
},
|
|
1328
|
-
S = Object.freeze([]),
|
|
1329
|
-
w = Object.freeze({});
|
|
1330
|
-
function E(e) {
|
|
1331
|
-
return "function" == typeof e;
|
|
1332
|
-
}
|
|
1333
|
-
function b(e) {
|
|
1334
|
-
return "production" !== process.env.NODE_ENV && "string" == typeof e && e || e.displayName || e.name || "Component";
|
|
1335
|
-
}
|
|
1336
|
-
function _(e) {
|
|
1337
|
-
return e && "string" == typeof e.styledComponentId;
|
|
1338
|
-
}
|
|
1339
|
-
var N = "undefined" != typeof process && (process.env.REACT_APP_SC_ATTR || process.env.SC_ATTR) || "data-styled",
|
|
1340
|
-
C = "undefined" != typeof window && "HTMLElement" in window,
|
|
1341
|
-
I = Boolean("boolean" == typeof SC_DISABLE_SPEEDY ? SC_DISABLE_SPEEDY : "undefined" != typeof process && void 0 !== process.env.REACT_APP_SC_DISABLE_SPEEDY && "" !== process.env.REACT_APP_SC_DISABLE_SPEEDY ? "false" !== process.env.REACT_APP_SC_DISABLE_SPEEDY && process.env.REACT_APP_SC_DISABLE_SPEEDY : "undefined" != typeof process && void 0 !== process.env.SC_DISABLE_SPEEDY && "" !== process.env.SC_DISABLE_SPEEDY ? "false" !== process.env.SC_DISABLE_SPEEDY && process.env.SC_DISABLE_SPEEDY : "production" !== process.env.NODE_ENV),
|
|
1342
|
-
O = "production" !== process.env.NODE_ENV ? {
|
|
1343
|
-
1: "Cannot create styled-component for component: %s.\n\n",
|
|
1344
|
-
2: "Can't collect styles once you've consumed a `ServerStyleSheet`'s styles! `ServerStyleSheet` is a one off instance for each server-side render cycle.\n\n- Are you trying to reuse it across renders?\n- Are you accidentally calling collectStyles twice?\n\n",
|
|
1345
|
-
3: "Streaming SSR is only supported in a Node.js environment; Please do not try to call this method in the browser.\n\n",
|
|
1346
|
-
4: "The `StyleSheetManager` expects a valid target or sheet prop!\n\n- Does this error occur on the client and is your target falsy?\n- Does this error occur on the server and is the sheet falsy?\n\n",
|
|
1347
|
-
5: "The clone method cannot be used on the client!\n\n- Are you running in a client-like environment on the server?\n- Are you trying to run SSR on the client?\n\n",
|
|
1348
|
-
6: "Trying to insert a new style tag, but the given Node is unmounted!\n\n- Are you using a custom target that isn't mounted?\n- Does your document not have a valid head element?\n- Have you accidentally removed a style tag manually?\n\n",
|
|
1349
|
-
7: 'ThemeProvider: Please return an object from your "theme" prop function, e.g.\n\n```js\ntheme={() => ({})}\n```\n\n',
|
|
1350
|
-
8: 'ThemeProvider: Please make your "theme" prop an object.\n\n',
|
|
1351
|
-
9: "Missing document `<head>`\n\n",
|
|
1352
|
-
10: "Cannot find a StyleSheet instance. Usually this happens if there are multiple copies of styled-components loaded at once. Check out this issue for how to troubleshoot and fix the common cases where this situation can happen: https://github.com/styled-components/styled-components/issues/1941#issuecomment-417862021\n\n",
|
|
1353
|
-
11: "_This error was replaced with a dev-time warning, it will be deleted for v4 final._ [createGlobalStyle] received children which will not be rendered. Please use the component without passing children elements.\n\n",
|
|
1354
|
-
12: "It seems you are interpolating a keyframe declaration (%s) into an untagged string. This was supported in styled-components v3, but is not longer supported in v4 as keyframes are now injected on-demand. Please wrap your string in the css\\`\\` helper which ensures the styles are injected correctly. See https://www.styled-components.com/docs/api#css\n\n",
|
|
1355
|
-
13: "%s is not a styled component and cannot be referred to via component selector. See https://www.styled-components.com/docs/advanced#referring-to-other-components for more details.\n\n",
|
|
1356
|
-
14: 'ThemeProvider: "theme" prop is required.\n\n',
|
|
1357
|
-
15: "A stylis plugin has been supplied that is not named. We need a name for each plugin to be able to prevent styling collisions between different stylis configurations within the same app. Before you pass your plugin to `<StyleSheetManager stylisPlugins={[]}>`, please make sure each plugin is uniquely-named, e.g.\n\n```js\nObject.defineProperty(importedPlugin, 'name', { value: 'some-unique-name' });\n```\n\n",
|
|
1358
|
-
16: "Reached the limit of how many styled components may be created at group %s.\nYou may only create up to 1,073,741,824 components. If you're creating components dynamically,\nas for instance in your render method then you may be running into this limitation.\n\n",
|
|
1359
|
-
17: "CSSStyleSheet could not be found on HTMLStyleElement.\nHas styled-components' style tag been unmounted or altered by another script?\n"
|
|
1360
|
-
} : {};
|
|
1361
|
-
function R() {
|
|
1362
|
-
for (var e = arguments.length <= 0 ? void 0 : arguments[0], t = [], n = 1, r = arguments.length; n < r; n += 1) t.push(n < 0 || arguments.length <= n ? void 0 : arguments[n]);
|
|
1363
|
-
return t.forEach(function (t) {
|
|
1364
|
-
e = e.replace(/%[a-z]/, t);
|
|
1365
|
-
}), e;
|
|
1366
|
-
}
|
|
1367
|
-
function D(e) {
|
|
1368
|
-
for (var t = arguments.length, n = new Array(t > 1 ? t - 1 : 0), r = 1; r < t; r++) n[r - 1] = arguments[r];
|
|
1369
|
-
throw "production" === process.env.NODE_ENV ? new Error("An error occurred. See https://git.io/JUIaE#" + e + " for more information." + (n.length > 0 ? " Args: " + n.join(", ") : "")) : new Error(R.apply(void 0, [O[e]].concat(n)).trim());
|
|
1370
|
-
}
|
|
1371
|
-
var j = function () {
|
|
1372
|
-
function e(e) {
|
|
1373
|
-
this.groupSizes = new Uint32Array(512), this.length = 512, this.tag = e;
|
|
1374
|
-
}
|
|
1375
|
-
var t = e.prototype;
|
|
1376
|
-
return t.indexOfGroup = function (e) {
|
|
1377
|
-
for (var t = 0, n = 0; n < e; n++) t += this.groupSizes[n];
|
|
1378
|
-
return t;
|
|
1379
|
-
}, t.insertRules = function (e, t) {
|
|
1380
|
-
if (e >= this.groupSizes.length) {
|
|
1381
|
-
for (var n = this.groupSizes, r = n.length, o = r; e >= o;) (o <<= 1) < 0 && D(16, "" + e);
|
|
1382
|
-
this.groupSizes = new Uint32Array(o), this.groupSizes.set(n), this.length = o;
|
|
1383
|
-
for (var s = r; s < o; s++) this.groupSizes[s] = 0;
|
|
1384
|
-
}
|
|
1385
|
-
for (var i = this.indexOfGroup(e + 1), a = 0, c = t.length; a < c; a++) this.tag.insertRule(i, t[a]) && (this.groupSizes[e]++, i++);
|
|
1386
|
-
}, t.clearGroup = function (e) {
|
|
1387
|
-
if (e < this.length) {
|
|
1388
|
-
var t = this.groupSizes[e],
|
|
1389
|
-
n = this.indexOfGroup(e),
|
|
1390
|
-
r = n + t;
|
|
1391
|
-
this.groupSizes[e] = 0;
|
|
1392
|
-
for (var o = n; o < r; o++) this.tag.deleteRule(n);
|
|
1393
|
-
}
|
|
1394
|
-
}, t.getGroup = function (e) {
|
|
1395
|
-
var t = "";
|
|
1396
|
-
if (e >= this.length || 0 === this.groupSizes[e]) return t;
|
|
1397
|
-
for (var n = this.groupSizes[e], r = this.indexOfGroup(e), o = r + n, s = r; s < o; s++) t += this.tag.getRule(s) + "/*!sc*/\n";
|
|
1398
|
-
return t;
|
|
1399
|
-
}, e;
|
|
1400
|
-
}(),
|
|
1401
|
-
T = new Map(),
|
|
1402
|
-
x = new Map(),
|
|
1403
|
-
k = 1,
|
|
1404
|
-
V = function (e) {
|
|
1405
|
-
if (T.has(e)) return T.get(e);
|
|
1406
|
-
for (; x.has(k);) k++;
|
|
1407
|
-
var t = k++;
|
|
1408
|
-
return "production" !== process.env.NODE_ENV && ((0 | t) < 0 || t > 1 << 30) && D(16, "" + t), T.set(e, t), x.set(t, e), t;
|
|
1409
|
-
},
|
|
1410
|
-
z = function (e) {
|
|
1411
|
-
return x.get(e);
|
|
1412
|
-
},
|
|
1413
|
-
B = function (e, t) {
|
|
1414
|
-
t >= k && (k = t + 1), T.set(e, t), x.set(t, e);
|
|
1415
|
-
},
|
|
1416
|
-
M = "style[" + N + '][data-styled-version="5.3.6"]',
|
|
1417
|
-
G = new RegExp("^" + N + '\\.g(\\d+)\\[id="([\\w\\d-]+)"\\].*?"([^"]*)'),
|
|
1418
|
-
L = function (e, t, n) {
|
|
1419
|
-
for (var r, o = n.split(","), s = 0, i = o.length; s < i; s++) (r = o[s]) && e.registerName(t, r);
|
|
1420
|
-
},
|
|
1421
|
-
F = function (e, t) {
|
|
1422
|
-
for (var n = (t.textContent || "").split("/*!sc*/\n"), r = [], o = 0, s = n.length; o < s; o++) {
|
|
1423
|
-
var i = n[o].trim();
|
|
1424
|
-
if (i) {
|
|
1425
|
-
var a = i.match(G);
|
|
1426
|
-
if (a) {
|
|
1427
|
-
var c = 0 | parseInt(a[1], 10),
|
|
1428
|
-
u = a[2];
|
|
1429
|
-
0 !== c && (B(u, c), L(e, u, a[3]), e.getTag().insertRules(c, r)), r.length = 0;
|
|
1430
|
-
} else r.push(i);
|
|
1431
|
-
}
|
|
1432
|
-
}
|
|
1433
|
-
},
|
|
1434
|
-
Y = function () {
|
|
1435
|
-
return "undefined" != typeof __webpack_nonce__ ? __webpack_nonce__ : null;
|
|
1436
|
-
},
|
|
1437
|
-
q = function (e) {
|
|
1438
|
-
var t = document.head,
|
|
1439
|
-
n = e || t,
|
|
1440
|
-
r = document.createElement("style"),
|
|
1441
|
-
o = function (e) {
|
|
1442
|
-
for (var t = e.childNodes, n = t.length; n >= 0; n--) {
|
|
1443
|
-
var r = t[n];
|
|
1444
|
-
if (r && 1 === r.nodeType && r.hasAttribute(N)) return r;
|
|
1445
|
-
}
|
|
1446
|
-
}(n),
|
|
1447
|
-
s = void 0 !== o ? o.nextSibling : null;
|
|
1448
|
-
r.setAttribute(N, "active"), r.setAttribute("data-styled-version", "5.3.6");
|
|
1449
|
-
var i = Y();
|
|
1450
|
-
return i && r.setAttribute("nonce", i), n.insertBefore(r, s), r;
|
|
1451
|
-
},
|
|
1452
|
-
H = function () {
|
|
1453
|
-
function e(e) {
|
|
1454
|
-
var t = this.element = q(e);
|
|
1455
|
-
t.appendChild(document.createTextNode("")), this.sheet = function (e) {
|
|
1456
|
-
if (e.sheet) return e.sheet;
|
|
1457
|
-
for (var t = document.styleSheets, n = 0, r = t.length; n < r; n++) {
|
|
1458
|
-
var o = t[n];
|
|
1459
|
-
if (o.ownerNode === e) return o;
|
|
1460
|
-
}
|
|
1461
|
-
D(17);
|
|
1462
|
-
}(t), this.length = 0;
|
|
1463
|
-
}
|
|
1464
|
-
var t = e.prototype;
|
|
1465
|
-
return t.insertRule = function (e, t) {
|
|
1466
|
-
try {
|
|
1467
|
-
return this.sheet.insertRule(t, e), this.length++, !0;
|
|
1468
|
-
} catch (e) {
|
|
1469
|
-
return !1;
|
|
1470
|
-
}
|
|
1471
|
-
}, t.deleteRule = function (e) {
|
|
1472
|
-
this.sheet.deleteRule(e), this.length--;
|
|
1473
|
-
}, t.getRule = function (e) {
|
|
1474
|
-
var t = this.sheet.cssRules[e];
|
|
1475
|
-
return void 0 !== t && "string" == typeof t.cssText ? t.cssText : "";
|
|
1476
|
-
}, e;
|
|
1477
|
-
}(),
|
|
1478
|
-
$ = function () {
|
|
1479
|
-
function e(e) {
|
|
1480
|
-
var t = this.element = q(e);
|
|
1481
|
-
this.nodes = t.childNodes, this.length = 0;
|
|
1482
|
-
}
|
|
1483
|
-
var t = e.prototype;
|
|
1484
|
-
return t.insertRule = function (e, t) {
|
|
1485
|
-
if (e <= this.length && e >= 0) {
|
|
1486
|
-
var n = document.createTextNode(t),
|
|
1487
|
-
r = this.nodes[e];
|
|
1488
|
-
return this.element.insertBefore(n, r || null), this.length++, !0;
|
|
1489
|
-
}
|
|
1490
|
-
return !1;
|
|
1491
|
-
}, t.deleteRule = function (e) {
|
|
1492
|
-
this.element.removeChild(this.nodes[e]), this.length--;
|
|
1493
|
-
}, t.getRule = function (e) {
|
|
1494
|
-
return e < this.length ? this.nodes[e].textContent : "";
|
|
1495
|
-
}, e;
|
|
1496
|
-
}(),
|
|
1497
|
-
W = function () {
|
|
1498
|
-
function e(e) {
|
|
1499
|
-
this.rules = [], this.length = 0;
|
|
1500
|
-
}
|
|
1501
|
-
var t = e.prototype;
|
|
1502
|
-
return t.insertRule = function (e, t) {
|
|
1503
|
-
return e <= this.length && (this.rules.splice(e, 0, t), this.length++, !0);
|
|
1504
|
-
}, t.deleteRule = function (e) {
|
|
1505
|
-
this.rules.splice(e, 1), this.length--;
|
|
1506
|
-
}, t.getRule = function (e) {
|
|
1507
|
-
return e < this.length ? this.rules[e] : "";
|
|
1508
|
-
}, e;
|
|
1509
|
-
}(),
|
|
1510
|
-
U = C,
|
|
1511
|
-
J = {
|
|
1512
|
-
isServer: !C,
|
|
1513
|
-
useCSSOMInjection: !I
|
|
1514
|
-
},
|
|
1515
|
-
X = function () {
|
|
1516
|
-
function e(e, t, n) {
|
|
1517
|
-
void 0 === e && (e = w), void 0 === t && (t = {}), this.options = y({}, J, {}, e), this.gs = t, this.names = new Map(n), this.server = !!e.isServer, !this.server && C && U && (U = !1, function (e) {
|
|
1518
|
-
for (var t = document.querySelectorAll(M), n = 0, r = t.length; n < r; n++) {
|
|
1519
|
-
var o = t[n];
|
|
1520
|
-
o && "active" !== o.getAttribute(N) && (F(e, o), o.parentNode && o.parentNode.removeChild(o));
|
|
1521
|
-
}
|
|
1522
|
-
}(this));
|
|
1523
|
-
}
|
|
1524
|
-
e.registerId = function (e) {
|
|
1525
|
-
return V(e);
|
|
1526
|
-
};
|
|
1527
|
-
var t = e.prototype;
|
|
1528
|
-
return t.reconstructWithOptions = function (t, n) {
|
|
1529
|
-
return void 0 === n && (n = !0), new e(y({}, this.options, {}, t), this.gs, n && this.names || void 0);
|
|
1530
|
-
}, t.allocateGSInstance = function (e) {
|
|
1531
|
-
return this.gs[e] = (this.gs[e] || 0) + 1;
|
|
1532
|
-
}, t.getTag = function () {
|
|
1533
|
-
return this.tag || (this.tag = (n = (t = this.options).isServer, r = t.useCSSOMInjection, o = t.target, e = n ? new W(o) : r ? new H(o) : new $(o), new j(e)));
|
|
1534
|
-
var e, t, n, r, o;
|
|
1535
|
-
}, t.hasNameForId = function (e, t) {
|
|
1536
|
-
return this.names.has(e) && this.names.get(e).has(t);
|
|
1537
|
-
}, t.registerName = function (e, t) {
|
|
1538
|
-
if (V(e), this.names.has(e)) this.names.get(e).add(t);else {
|
|
1539
|
-
var n = new Set();
|
|
1540
|
-
n.add(t), this.names.set(e, n);
|
|
1541
|
-
}
|
|
1542
|
-
}, t.insertRules = function (e, t, n) {
|
|
1543
|
-
this.registerName(e, t), this.getTag().insertRules(V(e), n);
|
|
1544
|
-
}, t.clearNames = function (e) {
|
|
1545
|
-
this.names.has(e) && this.names.get(e).clear();
|
|
1546
|
-
}, t.clearRules = function (e) {
|
|
1547
|
-
this.getTag().clearGroup(V(e)), this.clearNames(e);
|
|
1548
|
-
}, t.clearTag = function () {
|
|
1549
|
-
this.tag = void 0;
|
|
1550
|
-
}, t.toString = function () {
|
|
1551
|
-
return function (e) {
|
|
1552
|
-
for (var t = e.getTag(), n = t.length, r = "", o = 0; o < n; o++) {
|
|
1553
|
-
var s = z(o);
|
|
1554
|
-
if (void 0 !== s) {
|
|
1555
|
-
var i = e.names.get(s),
|
|
1556
|
-
a = t.getGroup(o);
|
|
1557
|
-
if (i && a && i.size) {
|
|
1558
|
-
var c = N + ".g" + o + '[id="' + s + '"]',
|
|
1559
|
-
u = "";
|
|
1560
|
-
void 0 !== i && i.forEach(function (e) {
|
|
1561
|
-
e.length > 0 && (u += e + ",");
|
|
1562
|
-
}), r += "" + a + c + '{content:"' + u + '"}/*!sc*/\n';
|
|
1563
|
-
}
|
|
1564
|
-
}
|
|
1565
|
-
}
|
|
1566
|
-
return r;
|
|
1567
|
-
}(this);
|
|
1568
|
-
}, e;
|
|
1569
|
-
}(),
|
|
1570
|
-
Z = /(a)(d)/gi,
|
|
1571
|
-
K = function (e) {
|
|
1572
|
-
return String.fromCharCode(e + (e > 25 ? 39 : 97));
|
|
1573
|
-
};
|
|
1574
|
-
function Q(e) {
|
|
1575
|
-
var t,
|
|
1576
|
-
n = "";
|
|
1577
|
-
for (t = Math.abs(e); t > 52; t = t / 52 | 0) n = K(t % 52) + n;
|
|
1578
|
-
return (K(t % 52) + n).replace(Z, "$1-$2");
|
|
1579
|
-
}
|
|
1580
|
-
var ee = function (e, t) {
|
|
1581
|
-
for (var n = t.length; n;) e = 33 * e ^ t.charCodeAt(--n);
|
|
1582
|
-
return e;
|
|
1583
|
-
},
|
|
1584
|
-
te = function (e) {
|
|
1585
|
-
return ee(5381, e);
|
|
1586
|
-
};
|
|
1587
|
-
function ne(e) {
|
|
1588
|
-
for (var t = 0; t < e.length; t += 1) {
|
|
1589
|
-
var n = e[t];
|
|
1590
|
-
if (E(n) && !_(n)) return !1;
|
|
1591
|
-
}
|
|
1592
|
-
return !0;
|
|
1593
|
-
}
|
|
1594
|
-
var re = te("5.3.6"),
|
|
1595
|
-
oe = function () {
|
|
1596
|
-
function e(e, t, n) {
|
|
1597
|
-
this.rules = e, this.staticRulesId = "", this.isStatic = "production" === process.env.NODE_ENV && (void 0 === n || n.isStatic) && ne(e), this.componentId = t, this.baseHash = ee(re, t), this.baseStyle = n, X.registerId(t);
|
|
1598
|
-
}
|
|
1599
|
-
return e.prototype.generateAndInjectStyles = function (e, t, n) {
|
|
1600
|
-
var r = this.componentId,
|
|
1601
|
-
o = [];
|
|
1602
|
-
if (this.baseStyle && o.push(this.baseStyle.generateAndInjectStyles(e, t, n)), this.isStatic && !n.hash) {
|
|
1603
|
-
if (this.staticRulesId && t.hasNameForId(r, this.staticRulesId)) o.push(this.staticRulesId);else {
|
|
1604
|
-
var s = _e(this.rules, e, t, n).join(""),
|
|
1605
|
-
i = Q(ee(this.baseHash, s) >>> 0);
|
|
1606
|
-
if (!t.hasNameForId(r, i)) {
|
|
1607
|
-
var a = n(s, "." + i, void 0, r);
|
|
1608
|
-
t.insertRules(r, i, a);
|
|
1609
|
-
}
|
|
1610
|
-
o.push(i), this.staticRulesId = i;
|
|
1611
|
-
}
|
|
1612
|
-
} else {
|
|
1613
|
-
for (var c = this.rules.length, u = ee(this.baseHash, n.hash), l = "", d = 0; d < c; d++) {
|
|
1614
|
-
var h = this.rules[d];
|
|
1615
|
-
if ("string" == typeof h) l += h, "production" !== process.env.NODE_ENV && (u = ee(u, h + d));else if (h) {
|
|
1616
|
-
var p = _e(h, e, t, n),
|
|
1617
|
-
f = Array.isArray(p) ? p.join("") : p;
|
|
1618
|
-
u = ee(u, f + d), l += f;
|
|
1619
|
-
}
|
|
1620
|
-
}
|
|
1621
|
-
if (l) {
|
|
1622
|
-
var m = Q(u >>> 0);
|
|
1623
|
-
if (!t.hasNameForId(r, m)) {
|
|
1624
|
-
var y = n(l, "." + m, void 0, r);
|
|
1625
|
-
t.insertRules(r, m, y);
|
|
1626
|
-
}
|
|
1627
|
-
o.push(m);
|
|
1628
|
-
}
|
|
1629
|
-
}
|
|
1630
|
-
return o.join(" ");
|
|
1631
|
-
}, e;
|
|
1632
|
-
}(),
|
|
1633
|
-
se = /^\s*\/\/.*$/gm,
|
|
1634
|
-
ie = [":", "[", ".", "#"];
|
|
1635
|
-
function ae(e) {
|
|
1636
|
-
var t,
|
|
1637
|
-
n,
|
|
1638
|
-
r,
|
|
1639
|
-
o,
|
|
1640
|
-
s = void 0 === e ? w : e,
|
|
1641
|
-
i = s.options,
|
|
1642
|
-
a = void 0 === i ? w : i,
|
|
1643
|
-
c = s.plugins,
|
|
1644
|
-
u = void 0 === c ? S : c,
|
|
1645
|
-
l = new stylis_min(a),
|
|
1646
|
-
d = [],
|
|
1647
|
-
p = function (e) {
|
|
1648
|
-
function t(t) {
|
|
1649
|
-
if (t) try {
|
|
1650
|
-
e(t + "}");
|
|
1651
|
-
} catch (e) {}
|
|
1652
|
-
}
|
|
1653
|
-
return function (n, r, o, s, i, a, c, u, l, d) {
|
|
1654
|
-
switch (n) {
|
|
1655
|
-
case 1:
|
|
1656
|
-
if (0 === l && 64 === r.charCodeAt(0)) return e(r + ";"), "";
|
|
1657
|
-
break;
|
|
1658
|
-
case 2:
|
|
1659
|
-
if (0 === u) return r + "/*|*/";
|
|
1660
|
-
break;
|
|
1661
|
-
case 3:
|
|
1662
|
-
switch (u) {
|
|
1663
|
-
case 102:
|
|
1664
|
-
case 112:
|
|
1665
|
-
return e(o[0] + r), "";
|
|
1666
|
-
default:
|
|
1667
|
-
return r + (0 === d ? "/*|*/" : "");
|
|
1668
|
-
}
|
|
1669
|
-
case -2:
|
|
1670
|
-
r.split("/*|*/}").forEach(t);
|
|
1671
|
-
}
|
|
1672
|
-
};
|
|
1673
|
-
}(function (e) {
|
|
1674
|
-
d.push(e);
|
|
1675
|
-
}),
|
|
1676
|
-
f = function (e, r, s) {
|
|
1677
|
-
return 0 === r && -1 !== ie.indexOf(s[n.length]) || s.match(o) ? e : "." + t;
|
|
1678
|
-
};
|
|
1679
|
-
function m(e, s, i, a) {
|
|
1680
|
-
void 0 === a && (a = "&");
|
|
1681
|
-
var c = e.replace(se, ""),
|
|
1682
|
-
u = s && i ? i + " " + s + " { " + c + " }" : c;
|
|
1683
|
-
return t = a, n = s, r = new RegExp("\\" + n + "\\b", "g"), o = new RegExp("(\\" + n + "\\b){2,}"), l(i || !s ? "" : s, u);
|
|
1684
|
-
}
|
|
1685
|
-
return l.use([].concat(u, [function (e, t, o) {
|
|
1686
|
-
2 === e && o.length && o[0].lastIndexOf(n) > 0 && (o[0] = o[0].replace(r, f));
|
|
1687
|
-
}, p, function (e) {
|
|
1688
|
-
if (-2 === e) {
|
|
1689
|
-
var t = d;
|
|
1690
|
-
return d = [], t;
|
|
1691
|
-
}
|
|
1692
|
-
}])), m.hash = u.length ? u.reduce(function (e, t) {
|
|
1693
|
-
return t.name || D(15), ee(e, t.name);
|
|
1694
|
-
}, 5381).toString() : "", m;
|
|
1695
|
-
}
|
|
1696
|
-
var ce = r.createContext(),
|
|
1697
|
-
le = r.createContext(),
|
|
1698
|
-
de = new X(),
|
|
1699
|
-
he = ae();
|
|
1700
|
-
function pe() {
|
|
1701
|
-
return useContext(ce) || de;
|
|
1702
|
-
}
|
|
1703
|
-
function fe() {
|
|
1704
|
-
return useContext(le) || he;
|
|
1705
|
-
}
|
|
1706
|
-
var ye = function () {
|
|
1707
|
-
function e(e, t) {
|
|
1708
|
-
var n = this;
|
|
1709
|
-
this.inject = function (e, t) {
|
|
1710
|
-
void 0 === t && (t = he);
|
|
1711
|
-
var r = n.name + t.hash;
|
|
1712
|
-
e.hasNameForId(n.id, r) || e.insertRules(n.id, r, t(n.rules, r, "@keyframes"));
|
|
1713
|
-
}, this.toString = function () {
|
|
1714
|
-
return D(12, String(n.name));
|
|
1715
|
-
}, this.name = e, this.id = "sc-keyframes-" + e, this.rules = t;
|
|
1716
|
-
}
|
|
1717
|
-
return e.prototype.getName = function (e) {
|
|
1718
|
-
return void 0 === e && (e = he), this.name + e.hash;
|
|
1719
|
-
}, e;
|
|
1720
|
-
}(),
|
|
1721
|
-
ve = /([A-Z])/,
|
|
1722
|
-
ge = /([A-Z])/g,
|
|
1723
|
-
Se = /^ms-/,
|
|
1724
|
-
we = function (e) {
|
|
1725
|
-
return "-" + e.toLowerCase();
|
|
1726
|
-
};
|
|
1727
|
-
function Ee(e) {
|
|
1728
|
-
return ve.test(e) ? e.replace(ge, we).replace(Se, "-ms-") : e;
|
|
1729
|
-
}
|
|
1730
|
-
var be = function (e) {
|
|
1731
|
-
return null == e || !1 === e || "" === e;
|
|
1732
|
-
};
|
|
1733
|
-
function _e(e, n, r, o) {
|
|
1734
|
-
if (Array.isArray(e)) {
|
|
1735
|
-
for (var s, i = [], a = 0, c = e.length; a < c; a += 1) "" !== (s = _e(e[a], n, r, o)) && (Array.isArray(s) ? i.push.apply(i, s) : i.push(s));
|
|
1736
|
-
return i;
|
|
1737
|
-
}
|
|
1738
|
-
if (be(e)) return "";
|
|
1739
|
-
if (_(e)) return "." + e.styledComponentId;
|
|
1740
|
-
if (E(e)) {
|
|
1741
|
-
if ("function" != typeof (l = e) || l.prototype && l.prototype.isReactComponent || !n) return e;
|
|
1742
|
-
var u = e(n);
|
|
1743
|
-
return "production" !== process.env.NODE_ENV && reactIsExports$1.isElement(u) && console.warn(b(e) + " is not a styled component and cannot be referred to via component selector. See https://www.styled-components.com/docs/advanced#referring-to-other-components for more details."), _e(u, n, r, o);
|
|
1744
|
-
}
|
|
1745
|
-
var l;
|
|
1746
|
-
return e instanceof ye ? r ? (e.inject(r, o), e.getName(o)) : e : g(e) ? function e(t, n) {
|
|
1747
|
-
var r,
|
|
1748
|
-
o,
|
|
1749
|
-
s = [];
|
|
1750
|
-
for (var i in t) t.hasOwnProperty(i) && !be(t[i]) && (Array.isArray(t[i]) && t[i].isCss || E(t[i]) ? s.push(Ee(i) + ":", t[i], ";") : g(t[i]) ? s.push.apply(s, e(t[i], i)) : s.push(Ee(i) + ": " + (r = i, null == (o = t[i]) || "boolean" == typeof o || "" === o ? "" : "number" != typeof o || 0 === o || r in unitlessKeys ? String(o).trim() : o + "px") + ";"));
|
|
1751
|
-
return n ? [n + " {"].concat(s, ["}"]) : s;
|
|
1752
|
-
}(e) : e.toString();
|
|
1753
|
-
}
|
|
1754
|
-
var Ne = function (e) {
|
|
1755
|
-
return Array.isArray(e) && (e.isCss = !0), e;
|
|
1756
|
-
};
|
|
1757
|
-
function Ae(e) {
|
|
1758
|
-
for (var t = arguments.length, n = new Array(t > 1 ? t - 1 : 0), r = 1; r < t; r++) n[r - 1] = arguments[r];
|
|
1759
|
-
return E(e) || g(e) ? Ne(_e(v(S, [e].concat(n)))) : 0 === n.length && 1 === e.length && "string" == typeof e[0] ? e : Ne(_e(v(e, n)));
|
|
1760
|
-
}
|
|
1761
|
-
var Ce = /invalid hook call/i,
|
|
1762
|
-
Ie = new Set(),
|
|
1763
|
-
Pe = function (e, t) {
|
|
1764
|
-
if ("production" !== process.env.NODE_ENV) {
|
|
1765
|
-
var n = "The component " + e + (t ? ' with the id of "' + t + '"' : "") + " has been created dynamically.\nYou may see this warning because you've called styled inside another component.\nTo resolve this only create new StyledComponents outside of any render method and function component.",
|
|
1766
|
-
r = console.error;
|
|
1767
|
-
try {
|
|
1768
|
-
var o = !0;
|
|
1769
|
-
console.error = function (e) {
|
|
1770
|
-
if (Ce.test(e)) o = !1, Ie.delete(n);else {
|
|
1771
|
-
for (var t = arguments.length, s = new Array(t > 1 ? t - 1 : 0), i = 1; i < t; i++) s[i - 1] = arguments[i];
|
|
1772
|
-
r.apply(void 0, [e].concat(s));
|
|
1773
|
-
}
|
|
1774
|
-
}, useRef(), o && !Ie.has(n) && (console.warn(n), Ie.add(n));
|
|
1775
|
-
} catch (e) {
|
|
1776
|
-
Ce.test(e.message) && Ie.delete(n);
|
|
1777
|
-
} finally {
|
|
1778
|
-
console.error = r;
|
|
1779
|
-
}
|
|
1780
|
-
}
|
|
1781
|
-
},
|
|
1782
|
-
Oe = function (e, t, n) {
|
|
1783
|
-
return void 0 === n && (n = w), e.theme !== n.theme && e.theme || t || n.theme;
|
|
1784
|
-
},
|
|
1785
|
-
Re = /[!"#$%&'()*+,./:;<=>?@[\\\]^`{|}~-]+/g,
|
|
1786
|
-
De = /(^-|-$)/g;
|
|
1787
|
-
function je(e) {
|
|
1788
|
-
return e.replace(Re, "-").replace(De, "");
|
|
1789
|
-
}
|
|
1790
|
-
var Te = function (e) {
|
|
1791
|
-
return Q(te(e) >>> 0);
|
|
1792
|
-
};
|
|
1793
|
-
function xe(e) {
|
|
1794
|
-
return "string" == typeof e && ("production" === process.env.NODE_ENV || e.charAt(0) === e.charAt(0).toLowerCase());
|
|
1795
|
-
}
|
|
1796
|
-
var ke = function (e) {
|
|
1797
|
-
return "function" == typeof e || "object" == typeof e && null !== e && !Array.isArray(e);
|
|
1798
|
-
},
|
|
1799
|
-
Ve = function (e) {
|
|
1800
|
-
return "__proto__" !== e && "constructor" !== e && "prototype" !== e;
|
|
1801
|
-
};
|
|
1802
|
-
function ze(e, t, n) {
|
|
1803
|
-
var r = e[n];
|
|
1804
|
-
ke(t) && ke(r) ? Be(r, t) : e[n] = t;
|
|
1805
|
-
}
|
|
1806
|
-
function Be(e) {
|
|
1807
|
-
for (var t = arguments.length, n = new Array(t > 1 ? t - 1 : 0), r = 1; r < t; r++) n[r - 1] = arguments[r];
|
|
1808
|
-
for (var o = 0, s = n; o < s.length; o++) {
|
|
1809
|
-
var i = s[o];
|
|
1810
|
-
if (ke(i)) for (var a in i) Ve(a) && ze(e, i[a], a);
|
|
1811
|
-
}
|
|
1812
|
-
return e;
|
|
1813
|
-
}
|
|
1814
|
-
var Me = r.createContext();
|
|
1815
|
-
var Fe = {};
|
|
1816
|
-
function Ye(e, t, n) {
|
|
1817
|
-
var o = _(e),
|
|
1818
|
-
i = !xe(e),
|
|
1819
|
-
a = t.attrs,
|
|
1820
|
-
c = void 0 === a ? S : a,
|
|
1821
|
-
d = t.componentId,
|
|
1822
|
-
h = void 0 === d ? function (e, t) {
|
|
1823
|
-
var n = "string" != typeof e ? "sc" : je(e);
|
|
1824
|
-
Fe[n] = (Fe[n] || 0) + 1;
|
|
1825
|
-
var r = n + "-" + Te("5.3.6" + n + Fe[n]);
|
|
1826
|
-
return t ? t + "-" + r : r;
|
|
1827
|
-
}(t.displayName, t.parentComponentId) : d,
|
|
1828
|
-
p = t.displayName,
|
|
1829
|
-
v = void 0 === p ? function (e) {
|
|
1830
|
-
return xe(e) ? "styled." + e : "Styled(" + b(e) + ")";
|
|
1831
|
-
}(e) : p,
|
|
1832
|
-
g = t.displayName && t.componentId ? je(t.displayName) + "-" + t.componentId : t.componentId || h,
|
|
1833
|
-
N = o && e.attrs ? Array.prototype.concat(e.attrs, c).filter(Boolean) : c,
|
|
1834
|
-
A = t.shouldForwardProp;
|
|
1835
|
-
o && e.shouldForwardProp && (A = t.shouldForwardProp ? function (n, r, o) {
|
|
1836
|
-
return e.shouldForwardProp(n, r, o) && t.shouldForwardProp(n, r, o);
|
|
1837
|
-
} : e.shouldForwardProp);
|
|
1838
|
-
var C,
|
|
1839
|
-
I = new oe(n, g, o ? e.componentStyle : void 0),
|
|
1840
|
-
P = I.isStatic && 0 === c.length,
|
|
1841
|
-
O = function (e, t) {
|
|
1842
|
-
return function (e, t, n, r) {
|
|
1843
|
-
var o = e.attrs,
|
|
1844
|
-
i = e.componentStyle,
|
|
1845
|
-
a = e.defaultProps,
|
|
1846
|
-
c = e.foldedComponentIds,
|
|
1847
|
-
d = e.shouldForwardProp,
|
|
1848
|
-
h = e.styledComponentId,
|
|
1849
|
-
p = e.target;
|
|
1850
|
-
"production" !== process.env.NODE_ENV && useDebugValue(h);
|
|
1851
|
-
var m = function (e, t, n) {
|
|
1852
|
-
void 0 === e && (e = w);
|
|
1853
|
-
var r = y({}, t, {
|
|
1854
|
-
theme: e
|
|
1855
|
-
}),
|
|
1856
|
-
o = {};
|
|
1857
|
-
return n.forEach(function (e) {
|
|
1858
|
-
var t,
|
|
1859
|
-
n,
|
|
1860
|
-
s,
|
|
1861
|
-
i = e;
|
|
1862
|
-
for (t in E(i) && (i = i(r)), i) r[t] = o[t] = "className" === t ? (n = o[t], s = i[t], n && s ? n + " " + s : n || s) : i[t];
|
|
1863
|
-
}), [r, o];
|
|
1864
|
-
}(Oe(t, useContext(Me), a) || w, t, o),
|
|
1865
|
-
v = m[0],
|
|
1866
|
-
g = m[1],
|
|
1867
|
-
S = function (e, t, n, r) {
|
|
1868
|
-
var o = pe(),
|
|
1869
|
-
s = fe(),
|
|
1870
|
-
i = t ? e.generateAndInjectStyles(w, o, s) : e.generateAndInjectStyles(n, o, s);
|
|
1871
|
-
return "production" !== process.env.NODE_ENV && useDebugValue(i), "production" !== process.env.NODE_ENV && !t && r && r(i), i;
|
|
1872
|
-
}(i, r, v, "production" !== process.env.NODE_ENV ? e.warnTooManyClasses : void 0),
|
|
1873
|
-
b = n,
|
|
1874
|
-
_ = g.$as || t.$as || g.as || t.as || p,
|
|
1875
|
-
N = xe(_),
|
|
1876
|
-
A = g !== t ? y({}, t, {}, g) : t,
|
|
1877
|
-
C = {};
|
|
1878
|
-
for (var I in A) "$" !== I[0] && "as" !== I && ("forwardedAs" === I ? C.as = A[I] : (d ? d(I, isPropValid, _) : !N || isPropValid(I)) && (C[I] = A[I]));
|
|
1879
|
-
return t.style && g.style !== t.style && (C.style = y({}, t.style, {}, g.style)), C.className = Array.prototype.concat(c, h, S !== h ? S : null, t.className, g.className).filter(Boolean).join(" "), C.ref = b, createElement(_, C);
|
|
1880
|
-
}(C, e, t, P);
|
|
1881
|
-
};
|
|
1882
|
-
return O.displayName = v, (C = r.forwardRef(O)).attrs = N, C.componentStyle = I, C.displayName = v, C.shouldForwardProp = A, C.foldedComponentIds = o ? Array.prototype.concat(e.foldedComponentIds, e.styledComponentId) : S, C.styledComponentId = g, C.target = o ? e.target : e, C.withComponent = function (e) {
|
|
1883
|
-
var r = t.componentId,
|
|
1884
|
-
o = function (e, t) {
|
|
1885
|
-
if (null == e) return {};
|
|
1886
|
-
var n,
|
|
1887
|
-
r,
|
|
1888
|
-
o = {},
|
|
1889
|
-
s = Object.keys(e);
|
|
1890
|
-
for (r = 0; r < s.length; r++) n = s[r], t.indexOf(n) >= 0 || (o[n] = e[n]);
|
|
1891
|
-
return o;
|
|
1892
|
-
}(t, ["componentId"]),
|
|
1893
|
-
s = r && r + "-" + (xe(e) ? e : je(b(e)));
|
|
1894
|
-
return Ye(e, y({}, o, {
|
|
1895
|
-
attrs: N,
|
|
1896
|
-
componentId: s
|
|
1897
|
-
}), n);
|
|
1898
|
-
}, Object.defineProperty(C, "defaultProps", {
|
|
1899
|
-
get: function () {
|
|
1900
|
-
return this._foldedDefaultProps;
|
|
1901
|
-
},
|
|
1902
|
-
set: function (t) {
|
|
1903
|
-
this._foldedDefaultProps = o ? Be({}, e.defaultProps, t) : t;
|
|
1904
|
-
}
|
|
1905
|
-
}), "production" !== process.env.NODE_ENV && (Pe(v, g), C.warnTooManyClasses = function (e, t) {
|
|
1906
|
-
var n = {},
|
|
1907
|
-
r = !1;
|
|
1908
|
-
return function (o) {
|
|
1909
|
-
if (!r && (n[o] = !0, Object.keys(n).length >= 200)) {
|
|
1910
|
-
var s = t ? ' with the id of "' + t + '"' : "";
|
|
1911
|
-
console.warn("Over 200 classes were generated for component " + e + s + ".\nConsider using the attrs method, together with a style object for frequently changed styles.\nExample:\n const Component = styled.div.attrs(props => ({\n style: {\n background: props.background,\n },\n }))`width: 100%;`\n\n <Component />"), r = !0, n = {};
|
|
1912
|
-
}
|
|
1913
|
-
};
|
|
1914
|
-
}(v, g)), C.toString = function () {
|
|
1915
|
-
return "." + C.styledComponentId;
|
|
1916
|
-
}, i && hoistNonReactStatics_cjs(C, e, {
|
|
1917
|
-
attrs: !0,
|
|
1918
|
-
componentStyle: !0,
|
|
1919
|
-
displayName: !0,
|
|
1920
|
-
foldedComponentIds: !0,
|
|
1921
|
-
shouldForwardProp: !0,
|
|
1922
|
-
styledComponentId: !0,
|
|
1923
|
-
target: !0,
|
|
1924
|
-
withComponent: !0
|
|
1925
|
-
}), C;
|
|
1926
|
-
}
|
|
1927
|
-
var qe = function (e) {
|
|
1928
|
-
return function e(t, r, o) {
|
|
1929
|
-
if (void 0 === o && (o = w), !reactIsExports$1.isValidElementType(r)) return D(1, String(r));
|
|
1930
|
-
var s = function () {
|
|
1931
|
-
return t(r, o, Ae.apply(void 0, arguments));
|
|
1932
|
-
};
|
|
1933
|
-
return s.withConfig = function (n) {
|
|
1934
|
-
return e(t, r, y({}, o, {}, n));
|
|
1935
|
-
}, s.attrs = function (n) {
|
|
1936
|
-
return e(t, r, y({}, o, {
|
|
1937
|
-
attrs: Array.prototype.concat(o.attrs, n).filter(Boolean)
|
|
1938
|
-
}));
|
|
1939
|
-
}, s;
|
|
1940
|
-
}(Ye, e);
|
|
1941
|
-
};
|
|
1942
|
-
["a", "abbr", "address", "area", "article", "aside", "audio", "b", "base", "bdi", "bdo", "big", "blockquote", "body", "br", "button", "canvas", "caption", "cite", "code", "col", "colgroup", "data", "datalist", "dd", "del", "details", "dfn", "dialog", "div", "dl", "dt", "em", "embed", "fieldset", "figcaption", "figure", "footer", "form", "h1", "h2", "h3", "h4", "h5", "h6", "head", "header", "hgroup", "hr", "html", "i", "iframe", "img", "input", "ins", "kbd", "keygen", "label", "legend", "li", "link", "main", "map", "mark", "marquee", "menu", "menuitem", "meta", "meter", "nav", "noscript", "object", "ol", "optgroup", "option", "output", "p", "param", "picture", "pre", "progress", "q", "rp", "rt", "ruby", "s", "samp", "script", "section", "select", "small", "source", "span", "strong", "style", "sub", "summary", "sup", "table", "tbody", "td", "textarea", "tfoot", "th", "thead", "time", "title", "tr", "track", "u", "ul", "var", "video", "wbr", "circle", "clipPath", "defs", "ellipse", "foreignObject", "g", "image", "line", "linearGradient", "marker", "mask", "path", "pattern", "polygon", "polyline", "radialGradient", "rect", "stop", "svg", "text", "textPath", "tspan"].forEach(function (e) {
|
|
1943
|
-
qe[e] = qe(e);
|
|
1944
|
-
});
|
|
1945
|
-
"production" !== process.env.NODE_ENV && "undefined" != typeof navigator && "ReactNative" === navigator.product && console.warn("It looks like you've imported 'styled-components' on React Native.\nPerhaps you're looking to import 'styled-components/native'?\nRead more about this at https://www.styled-components.com/docs/basics#react-native"), "production" !== process.env.NODE_ENV && "test" !== process.env.NODE_ENV && "undefined" != typeof window && (window["__styled-components-init__"] = window["__styled-components-init__"] || 0, 1 === window["__styled-components-init__"] && console.warn("It looks like there are several instances of 'styled-components' initialized in this application. This may cause dynamic styles to not render properly, errors during the rehydration process, a missing theme prop, and makes your application bigger without good reason.\n\nSee https://s-c.sh/2BAXzed for more info."), window["__styled-components-init__"] += 1);
|
|
1946
|
-
var styled = qe;
|
|
1947
17
|
const Root = styled.div(_templateObject || (_templateObject = _taggedTemplateLiteral(["\n overflow: hidden;\n background-origin: content-box;\n background-repeat: no-repeat;\n background-clip: border-box;\n background-size: cover;\n background-color: ", ";\n position: relative;\n outline: none !important;\n border: ", ";\n box-sizing: content-box;\n user-drag: none;\n\n &:hover {\n opacity: 0.85;\n }\n\n &:focus,\n &:active {\n border: 1px solid var(--input-border-color-focus);\n box-shadow: inset 0 0 0 3px var(--input-border-color-focus);\n }\n"])), _ref => {
|
|
1948
18
|
let {
|
|
1949
|
-
|
|
19
|
+
theme
|
|
1950
20
|
} = _ref;
|
|
1951
|
-
return
|
|
21
|
+
return theme.sanity.color.card.enabled.bg2;
|
|
1952
22
|
}, _ref2 => {
|
|
1953
23
|
let {
|
|
1954
|
-
|
|
24
|
+
theme
|
|
1955
25
|
} = _ref2;
|
|
1956
|
-
return "1px solid ".concat(
|
|
26
|
+
return "1px solid ".concat(theme.sanity.color.card.enabled.border);
|
|
1957
27
|
});
|
|
1958
28
|
const InfoLine = styled(Card)(_templateObject2 || (_templateObject2 = _taggedTemplateLiteral(["\n ", ";\n user-drag: none;\n position: absolute;\n background-color: var(--infoline-bg);\n top: 0;\n left: 0;\n max-width: 65%;\n overflow-wrap: break-word;\n\n [data-ui='Text'] {\n color: var(--infoline-fg);\n }\n"])), _ref3 => {
|
|
1959
29
|
let {
|
|
1960
|
-
|
|
30
|
+
theme
|
|
1961
31
|
} = _ref3;
|
|
1962
|
-
return "\n --infoline-fg: ".concat(
|
|
32
|
+
return "\n --infoline-fg: ".concat(theme.sanity.color.card.enabled.fg, ";\n --infoline-bg: ").concat(theme.sanity.color.card.enabled.bg, ";\n ");
|
|
1963
33
|
});
|
|
1964
34
|
const DurationLine = styled(Card)(_templateObject3 || (_templateObject3 = _taggedTemplateLiteral(["\n ", ";\n user-drag: none;\n position: absolute;\n background-color: var(--durationline-bg);\n top: 0;\n right: 0;\n\n [data-ui='Text'] {\n color: var(--durationline-fg);\n }\n"])), _ref4 => {
|
|
1965
35
|
let {
|
|
1966
|
-
|
|
36
|
+
theme
|
|
1967
37
|
} = _ref4;
|
|
1968
|
-
return "\n --durationline-fg: ".concat(
|
|
38
|
+
return "\n --durationline-fg: ".concat(theme.sanity.color.card.enabled.bg, ";\n --durationline-bg: ").concat(theme.sanity.color.card.enabled.fg, ";\n ");
|
|
1969
39
|
});
|
|
1970
40
|
const VideoPlayer = _ref5 => {
|
|
1971
41
|
let {
|
|
1972
42
|
src,
|
|
1973
43
|
kind
|
|
1974
44
|
} = _ref5;
|
|
1975
|
-
const videoNode =
|
|
1976
|
-
const player =
|
|
45
|
+
const videoNode = React.useRef(null);
|
|
46
|
+
const player = React.useRef();
|
|
1977
47
|
useEffect(() => {
|
|
1978
48
|
var _a;
|
|
1979
49
|
player.current = videojs((_a = videoNode.current) != null ? _a : "", {
|
|
@@ -2013,21 +83,21 @@ const VideoPlayer = _ref5 => {
|
|
|
2013
83
|
};
|
|
2014
84
|
const StyledBox = styled(Box)(_templateObject4 || (_templateObject4 = _taggedTemplateLiteral(["\n background-color: ", ";\n border: ", ";\n display: flex;\n justify-content: center;\n margin-bottom: ", ";\n position: relative;\n"])), _ref6 => {
|
|
2015
85
|
let {
|
|
2016
|
-
|
|
86
|
+
theme
|
|
2017
87
|
} = _ref6;
|
|
2018
88
|
var _a, _b, _c;
|
|
2019
|
-
return (_c = (_b = (_a =
|
|
89
|
+
return (_c = (_b = (_a = theme.sanity.color) == null ? void 0 : _a.card) == null ? void 0 : _b.enabled) == null ? void 0 : _c.bg2;
|
|
2020
90
|
}, _ref7 => {
|
|
2021
91
|
let {
|
|
2022
|
-
|
|
92
|
+
theme
|
|
2023
93
|
} = _ref7;
|
|
2024
|
-
var _a, _b, _c;
|
|
2025
|
-
return "1px solid ".concat((_c = (_b = (_a =
|
|
94
|
+
var _a, _b, _c, _d;
|
|
95
|
+
return "1px solid ".concat((_d = (_c = (_b = (_a = theme.sanity) == null ? void 0 : _a.color) == null ? void 0 : _b.card) == null ? void 0 : _c.enabled) == null ? void 0 : _d.border);
|
|
2026
96
|
}, _ref8 => {
|
|
2027
97
|
let {
|
|
2028
|
-
|
|
98
|
+
theme
|
|
2029
99
|
} = _ref8;
|
|
2030
|
-
return
|
|
100
|
+
return theme.sanity.space[4];
|
|
2031
101
|
});
|
|
2032
102
|
const RenderAsset = _ref9 => {
|
|
2033
103
|
let {
|
|
@@ -2062,7 +132,6 @@ const AssetPreview = _ref10 => {
|
|
|
2062
132
|
value
|
|
2063
133
|
} = _ref10;
|
|
2064
134
|
const url = value && value.url;
|
|
2065
|
-
const theme = useTheme().sanity;
|
|
2066
135
|
if (!value || !url) {
|
|
2067
136
|
return null;
|
|
2068
137
|
}
|
|
@@ -2075,7 +144,6 @@ const AssetPreview = _ref10 => {
|
|
|
2075
144
|
duration
|
|
2076
145
|
} = meta;
|
|
2077
146
|
return /* @__PURE__ */jsxs(StyledBox, {
|
|
2078
|
-
studioTheme: theme,
|
|
2079
147
|
marginBottom: 2,
|
|
2080
148
|
children: [/* @__PURE__ */jsx(RenderAsset, {
|
|
2081
149
|
value,
|
|
@@ -2084,7 +152,6 @@ const AssetPreview = _ref10 => {
|
|
|
2084
152
|
padding: 2,
|
|
2085
153
|
radius: 2,
|
|
2086
154
|
margin: 2,
|
|
2087
|
-
studioTheme: theme,
|
|
2088
155
|
children: /* @__PURE__ */jsxs(Text, {
|
|
2089
156
|
size: 1,
|
|
2090
157
|
title: "Select ".concat(filename),
|
|
@@ -2094,7 +161,6 @@ const AssetPreview = _ref10 => {
|
|
|
2094
161
|
padding: 2,
|
|
2095
162
|
radius: 2,
|
|
2096
163
|
margin: 2,
|
|
2097
|
-
studioTheme: theme,
|
|
2098
164
|
children: /* @__PURE__ */jsx(Text, {
|
|
2099
165
|
size: 1,
|
|
2100
166
|
title: "Video duration: ".concat(filename),
|
|
@@ -2106,6 +172,65 @@ const AssetPreview = _ref10 => {
|
|
|
2106
172
|
})]
|
|
2107
173
|
});
|
|
2108
174
|
};
|
|
175
|
+
const fetchSearch = props => {
|
|
176
|
+
const {
|
|
177
|
+
projectId,
|
|
178
|
+
dataset,
|
|
179
|
+
shop,
|
|
180
|
+
query,
|
|
181
|
+
cursor,
|
|
182
|
+
resultsPerPage
|
|
183
|
+
} = props;
|
|
184
|
+
return defer(() => {
|
|
185
|
+
return axios.get("https://".concat(projectId, ".api.sanity.io/v1/shopify/assets/").concat(dataset, "?shop=").concat(shop, "&query=").concat(encodeURIComponent(query)).concat(cursor && "&cursor=".concat(cursor), "&limit=").concat(resultsPerPage), {
|
|
186
|
+
withCredentials: true,
|
|
187
|
+
method: "GET"
|
|
188
|
+
});
|
|
189
|
+
}).pipe(map(result => result.data));
|
|
190
|
+
};
|
|
191
|
+
const fetchList = props => {
|
|
192
|
+
const {
|
|
193
|
+
projectId,
|
|
194
|
+
dataset,
|
|
195
|
+
shop,
|
|
196
|
+
cursor,
|
|
197
|
+
resultsPerPage
|
|
198
|
+
} = props;
|
|
199
|
+
return defer(() => axios.get("https://".concat(projectId, ".api.sanity.io/v1/shopify/assets/").concat(dataset, "?shop=").concat(shop).concat(cursor && "&cursor=".concat(cursor), "&limit=").concat(resultsPerPage), {
|
|
200
|
+
withCredentials: true,
|
|
201
|
+
method: "GET"
|
|
202
|
+
})).pipe(map(result => result.data));
|
|
203
|
+
};
|
|
204
|
+
const search = props => {
|
|
205
|
+
const {
|
|
206
|
+
projectId,
|
|
207
|
+
dataset,
|
|
208
|
+
shop,
|
|
209
|
+
query,
|
|
210
|
+
cursor,
|
|
211
|
+
resultsPerPage
|
|
212
|
+
} = props;
|
|
213
|
+
return concat(query.pipe(withLatestFrom(cursor), debounceTime(500), distinctUntilChanged(), switchMap(_ref11 => {
|
|
214
|
+
let [q, c] = _ref11;
|
|
215
|
+
if (q) {
|
|
216
|
+
return fetchSearch({
|
|
217
|
+
projectId,
|
|
218
|
+
dataset,
|
|
219
|
+
shop,
|
|
220
|
+
query: q,
|
|
221
|
+
cursor: c,
|
|
222
|
+
resultsPerPage
|
|
223
|
+
}).pipe(distinctUntilChanged());
|
|
224
|
+
}
|
|
225
|
+
return fetchList({
|
|
226
|
+
projectId,
|
|
227
|
+
dataset,
|
|
228
|
+
shop,
|
|
229
|
+
cursor: c,
|
|
230
|
+
resultsPerPage
|
|
231
|
+
});
|
|
232
|
+
})));
|
|
233
|
+
};
|
|
2109
234
|
const DialogHeader = props => {
|
|
2110
235
|
const {
|
|
2111
236
|
title,
|
|
@@ -2163,10 +288,8 @@ function File(props) {
|
|
|
2163
288
|
filename
|
|
2164
289
|
});
|
|
2165
290
|
}, [onClick, data, filename]);
|
|
2166
|
-
const theme = useTheme().sanity;
|
|
2167
291
|
return /* @__PURE__ */jsxs(Root, {
|
|
2168
292
|
ref: rootElm,
|
|
2169
|
-
studioTheme: theme,
|
|
2170
293
|
title: "".concat(filename),
|
|
2171
294
|
tabIndex: 0,
|
|
2172
295
|
style: {
|
|
@@ -2179,7 +302,6 @@ function File(props) {
|
|
|
2179
302
|
padding: 2,
|
|
2180
303
|
radius: 2,
|
|
2181
304
|
margin: 2,
|
|
2182
|
-
studioTheme: theme,
|
|
2183
305
|
children: /* @__PURE__ */jsxs(Text, {
|
|
2184
306
|
size: 1,
|
|
2185
307
|
title: "Select ".concat(filename),
|
|
@@ -2189,7 +311,6 @@ function File(props) {
|
|
|
2189
311
|
padding: 2,
|
|
2190
312
|
radius: 2,
|
|
2191
313
|
margin: 2,
|
|
2192
|
-
studioTheme: theme,
|
|
2193
314
|
children: /* @__PURE__ */jsx(Text, {
|
|
2194
315
|
size: 1,
|
|
2195
316
|
title: "Video duration: ".concat(filename),
|
|
@@ -2203,65 +324,6 @@ function File(props) {
|
|
|
2203
324
|
}
|
|
2204
325
|
const Search = styled(Stack)(_templateObject5 || (_templateObject5 = _taggedTemplateLiteral(["\n position: sticky;\n top: 0;\n z-index: 1;\n"])));
|
|
2205
326
|
styled.div(_templateObject6 || (_templateObject6 = _taggedTemplateLiteral(["\n overflow-y: auto;\n max-height: 80vh;\n"])));
|
|
2206
|
-
const fetchSearch = props => {
|
|
2207
|
-
const {
|
|
2208
|
-
projectId,
|
|
2209
|
-
dataset,
|
|
2210
|
-
shop,
|
|
2211
|
-
query,
|
|
2212
|
-
cursor,
|
|
2213
|
-
resultsPerPage
|
|
2214
|
-
} = props;
|
|
2215
|
-
return defer(() => {
|
|
2216
|
-
return axios.get("https://".concat(projectId, ".api.sanity.io/v1/shopify/assets/").concat(dataset, "?shop=").concat(shop, "&query=").concat(encodeURIComponent(query)).concat(cursor && "&cursor=".concat(cursor), "&limit=").concat(resultsPerPage), {
|
|
2217
|
-
withCredentials: true,
|
|
2218
|
-
method: "GET"
|
|
2219
|
-
});
|
|
2220
|
-
}).pipe(map(result => result.data));
|
|
2221
|
-
};
|
|
2222
|
-
const fetchList = props => {
|
|
2223
|
-
const {
|
|
2224
|
-
projectId,
|
|
2225
|
-
dataset,
|
|
2226
|
-
shop,
|
|
2227
|
-
cursor,
|
|
2228
|
-
resultsPerPage
|
|
2229
|
-
} = props;
|
|
2230
|
-
return defer(() => axios.get("https://".concat(projectId, ".api.sanity.io/v1/shopify/assets/").concat(dataset, "?shop=").concat(shop).concat(cursor && "&cursor=".concat(cursor), "&limit=").concat(resultsPerPage), {
|
|
2231
|
-
withCredentials: true,
|
|
2232
|
-
method: "GET"
|
|
2233
|
-
})).pipe(map(result => result.data));
|
|
2234
|
-
};
|
|
2235
|
-
const search = props => {
|
|
2236
|
-
const {
|
|
2237
|
-
projectId,
|
|
2238
|
-
dataset,
|
|
2239
|
-
shop,
|
|
2240
|
-
query,
|
|
2241
|
-
cursor,
|
|
2242
|
-
resultsPerPage
|
|
2243
|
-
} = props;
|
|
2244
|
-
return concat(query.pipe(withLatestFrom(cursor), debounceTime(500), distinctUntilChanged(), switchMap(_ref11 => {
|
|
2245
|
-
let [q, c] = _ref11;
|
|
2246
|
-
if (q) {
|
|
2247
|
-
return fetchSearch({
|
|
2248
|
-
projectId,
|
|
2249
|
-
dataset,
|
|
2250
|
-
shop,
|
|
2251
|
-
query: q,
|
|
2252
|
-
cursor: c,
|
|
2253
|
-
resultsPerPage
|
|
2254
|
-
}).pipe(distinctUntilChanged());
|
|
2255
|
-
}
|
|
2256
|
-
return fetchList({
|
|
2257
|
-
projectId,
|
|
2258
|
-
dataset,
|
|
2259
|
-
shop,
|
|
2260
|
-
cursor: c,
|
|
2261
|
-
resultsPerPage
|
|
2262
|
-
});
|
|
2263
|
-
})));
|
|
2264
|
-
};
|
|
2265
327
|
const RESULTS_PER_PAGE = 42;
|
|
2266
328
|
const PHOTO_SPACING = 2;
|
|
2267
329
|
const PHOTO_PADDING = 1;
|
|
@@ -2612,48 +674,28 @@ const shopifyAssetSchema = config => {
|
|
|
2612
674
|
},
|
|
2613
675
|
fields: [defineField({
|
|
2614
676
|
type: "string",
|
|
2615
|
-
name: "filename"
|
|
677
|
+
name: "filename",
|
|
678
|
+
title: "Filename"
|
|
2616
679
|
}), defineField({
|
|
2617
680
|
type: "string",
|
|
2618
|
-
name: "id"
|
|
681
|
+
name: "id",
|
|
682
|
+
title: "ID"
|
|
2619
683
|
}), defineField({
|
|
2620
|
-
type: "
|
|
684
|
+
type: "shopify.assetMetadata",
|
|
2621
685
|
name: "meta",
|
|
2622
|
-
|
|
2623
|
-
type: "string",
|
|
2624
|
-
name: "alt"
|
|
2625
|
-
}), defineField({
|
|
2626
|
-
type: "number",
|
|
2627
|
-
name: "duration"
|
|
2628
|
-
}), defineField({
|
|
2629
|
-
type: "number",
|
|
2630
|
-
name: "fileSize"
|
|
2631
|
-
}), defineField({
|
|
2632
|
-
type: "number",
|
|
2633
|
-
name: "height"
|
|
2634
|
-
}), defineField({
|
|
2635
|
-
type: "number",
|
|
2636
|
-
name: "width"
|
|
2637
|
-
})]
|
|
686
|
+
title: "Metadata"
|
|
2638
687
|
}), defineField({
|
|
2639
|
-
type: "
|
|
688
|
+
type: "shopify.assetPreview",
|
|
2640
689
|
name: "preview",
|
|
2641
|
-
|
|
2642
|
-
type: "number",
|
|
2643
|
-
name: "height"
|
|
2644
|
-
}), defineField({
|
|
2645
|
-
type: "number",
|
|
2646
|
-
name: "width"
|
|
2647
|
-
}), defineField({
|
|
2648
|
-
type: "url",
|
|
2649
|
-
name: "url"
|
|
2650
|
-
})]
|
|
690
|
+
title: "Preview"
|
|
2651
691
|
}), defineField({
|
|
2652
692
|
type: "string",
|
|
2653
|
-
name: "type"
|
|
693
|
+
name: "type",
|
|
694
|
+
title: "Type"
|
|
2654
695
|
}), defineField({
|
|
2655
696
|
type: "url",
|
|
2656
|
-
name: "url"
|
|
697
|
+
name: "url",
|
|
698
|
+
title: "URL"
|
|
2657
699
|
})],
|
|
2658
700
|
...{
|
|
2659
701
|
components: {
|
|
@@ -2692,11 +734,55 @@ const shopifyAssetSchema = config => {
|
|
|
2692
734
|
}
|
|
2693
735
|
});
|
|
2694
736
|
};
|
|
737
|
+
const shopifyAssetPreviewSchema = defineType({
|
|
738
|
+
type: "object",
|
|
739
|
+
name: "shopify.assetPreview",
|
|
740
|
+
title: "Asset preview",
|
|
741
|
+
fields: [defineField({
|
|
742
|
+
type: "number",
|
|
743
|
+
name: "height",
|
|
744
|
+
title: "Height"
|
|
745
|
+
}), defineField({
|
|
746
|
+
type: "number",
|
|
747
|
+
name: "width",
|
|
748
|
+
title: "Width"
|
|
749
|
+
}), defineField({
|
|
750
|
+
type: "url",
|
|
751
|
+
name: "url",
|
|
752
|
+
title: "URL"
|
|
753
|
+
})]
|
|
754
|
+
});
|
|
755
|
+
const shopifyAssetMetadataSchema = defineType({
|
|
756
|
+
type: "object",
|
|
757
|
+
name: "shopify.assetMetadata",
|
|
758
|
+
title: "Asset metadata",
|
|
759
|
+
fields: [defineField({
|
|
760
|
+
type: "string",
|
|
761
|
+
name: "alt",
|
|
762
|
+
title: "Alternative text"
|
|
763
|
+
}), defineField({
|
|
764
|
+
type: "number",
|
|
765
|
+
name: "duration",
|
|
766
|
+
title: "Duration"
|
|
767
|
+
}), defineField({
|
|
768
|
+
type: "number",
|
|
769
|
+
name: "fileSize",
|
|
770
|
+
title: "File size"
|
|
771
|
+
}), defineField({
|
|
772
|
+
type: "number",
|
|
773
|
+
name: "height",
|
|
774
|
+
title: "Height"
|
|
775
|
+
}), defineField({
|
|
776
|
+
type: "number",
|
|
777
|
+
name: "width",
|
|
778
|
+
title: "Width"
|
|
779
|
+
})]
|
|
780
|
+
});
|
|
2695
781
|
const shopifyAssets = definePlugin(config => {
|
|
2696
782
|
return {
|
|
2697
783
|
name: "shopify-asset-schema",
|
|
2698
784
|
schema: {
|
|
2699
|
-
types: [shopifyAssetSchema(config)]
|
|
785
|
+
types: [shopifyAssetPreviewSchema, shopifyAssetMetadataSchema, shopifyAssetSchema(config)]
|
|
2700
786
|
}
|
|
2701
787
|
};
|
|
2702
788
|
});
|