manifest-editor 1.0.2 → 1.0.4

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.cjs CHANGED
@@ -5,18 +5,15 @@ var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
5
5
  var __getOwnPropNames = Object.getOwnPropertyNames;
6
6
  var __getProtoOf = Object.getPrototypeOf;
7
7
  var __hasOwnProp = Object.prototype.hasOwnProperty;
8
- var __commonJS = (cb, mod) => function __require() {
9
- return mod || (0, cb[__getOwnPropNames(cb)[0]])((mod = { exports: {} }).exports, mod), mod.exports;
10
- };
11
8
  var __export = (target, all) => {
12
9
  for (var name in all)
13
10
  __defProp(target, name, { get: all[name], enumerable: true });
14
11
  };
15
- var __copyProps = (to, from2, except, desc) => {
16
- if (from2 && typeof from2 === "object" || typeof from2 === "function") {
17
- for (let key of __getOwnPropNames(from2))
12
+ var __copyProps = (to, from, except, desc) => {
13
+ if (from && typeof from === "object" || typeof from === "function") {
14
+ for (let key of __getOwnPropNames(from))
18
15
  if (!__hasOwnProp.call(to, key) && key !== except)
19
- __defProp(to, key, { get: () => from2[key], enumerable: !(desc = __getOwnPropDesc(from2, key)) || desc.enumerable });
16
+ __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
20
17
  }
21
18
  return to;
22
19
  };
@@ -30,44 +27,6 @@ var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__ge
30
27
  ));
31
28
  var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
32
29
 
33
- // ../../node_modules/.pnpm/shallowequal@1.1.0/node_modules/shallowequal/index.js
34
- var require_shallowequal = __commonJS({
35
- "../../node_modules/.pnpm/shallowequal@1.1.0/node_modules/shallowequal/index.js"(exports, module2) {
36
- "use strict";
37
- module2.exports = function shallowEqual(objA, objB, compare, compareContext) {
38
- var ret = compare ? compare.call(compareContext, objA, objB) : void 0;
39
- if (ret !== void 0) {
40
- return !!ret;
41
- }
42
- if (objA === objB) {
43
- return true;
44
- }
45
- if (typeof objA !== "object" || !objA || typeof objB !== "object" || !objB) {
46
- return false;
47
- }
48
- var keysA = Object.keys(objA);
49
- var keysB = Object.keys(objB);
50
- if (keysA.length !== keysB.length) {
51
- return false;
52
- }
53
- var bHasOwnProperty = Object.prototype.hasOwnProperty.bind(objB);
54
- for (var idx = 0; idx < keysA.length; idx++) {
55
- var key = keysA[idx];
56
- if (!bHasOwnProperty(key)) {
57
- return false;
58
- }
59
- var valueA = objA[key];
60
- var valueB = objB[key];
61
- ret = compare ? compare.call(compareContext, valueA, valueB, key) : void 0;
62
- if (ret === false || ret === void 0 && valueA !== valueB) {
63
- return false;
64
- }
65
- }
66
- return true;
67
- };
68
- }
69
- });
70
-
71
30
  // src/index.ts
72
31
  var src_exports = {};
73
32
  __export(src_exports, {
@@ -77,6 +36,8 @@ module.exports = __toCommonJS(src_exports);
77
36
 
78
37
  // src/ManifestEditor.tsx
79
38
  var import_shell = require("@manifest-editor/shell");
39
+ var manifestEditorPreset = __toESM(require("@manifest-editor/manifest-preset"), 1);
40
+ var import_react_iiif_vault = require("react-iiif-vault");
80
41
 
81
42
  // ../../node_modules/.pnpm/tiny-invariant@1.3.3/node_modules/tiny-invariant/dist/esm/tiny-invariant.js
82
43
  var isProduction = false;
@@ -93,1410 +54,16 @@ function invariant(condition, message) {
93
54
  throw new Error(value);
94
55
  }
95
56
 
96
- // src/ManifestEditor.tsx
97
- var import_react_iiif_vault = require("react-iiif-vault");
98
- var _manifestEditor = __toESM(require("@manifest-editor/manifest-preset"), 1);
99
-
100
- // ../../node_modules/.pnpm/tslib@2.5.0/node_modules/tslib/tslib.es6.js
101
- var __assign = function() {
102
- __assign = Object.assign || function __assign2(t) {
103
- for (var s2, i2 = 1, n = arguments.length; i2 < n; i2++) {
104
- s2 = arguments[i2];
105
- for (var p2 in s2)
106
- if (Object.prototype.hasOwnProperty.call(s2, p2))
107
- t[p2] = s2[p2];
108
- }
109
- return t;
110
- };
111
- return __assign.apply(this, arguments);
112
- };
113
- function __spreadArray(to, from2, pack) {
114
- if (pack || arguments.length === 2)
115
- for (var i2 = 0, l2 = from2.length, ar; i2 < l2; i2++) {
116
- if (ar || !(i2 in from2)) {
117
- if (!ar)
118
- ar = Array.prototype.slice.call(from2, 0, i2);
119
- ar[i2] = from2[i2];
120
- }
121
- }
122
- return to.concat(ar || Array.prototype.slice.call(from2));
123
- }
124
-
125
- // ../../node_modules/.pnpm/@emotion+memoize@0.8.1/node_modules/@emotion/memoize/dist/emotion-memoize.esm.js
126
- function memoize(fn) {
127
- var cache = /* @__PURE__ */ Object.create(null);
128
- return function(arg) {
129
- if (cache[arg] === void 0)
130
- cache[arg] = fn(arg);
131
- return cache[arg];
132
- };
133
- }
134
-
135
- // ../../node_modules/.pnpm/@emotion+is-prop-valid@1.2.1/node_modules/@emotion/is-prop-valid/dist/emotion-is-prop-valid.esm.js
136
- 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)-.*))$/;
137
- var isPropValid = /* @__PURE__ */ memoize(
138
- function(prop) {
139
- return reactPropsRegex.test(prop) || prop.charCodeAt(0) === 111 && prop.charCodeAt(1) === 110 && prop.charCodeAt(2) < 91;
140
- }
141
- /* Z+1 */
142
- );
143
-
144
- // ../../node_modules/.pnpm/styled-components@6.1.8_react-dom@18.3.1_react@18.3.1/node_modules/styled-components/dist/styled-components.browser.esm.js
145
- var import_react = __toESM(require("react"));
146
- var import_shallowequal = __toESM(require_shallowequal());
147
-
148
- // ../../node_modules/.pnpm/stylis@4.3.1/node_modules/stylis/src/Enum.js
149
- var MS = "-ms-";
150
- var MOZ = "-moz-";
151
- var WEBKIT = "-webkit-";
152
- var COMMENT = "comm";
153
- var RULESET = "rule";
154
- var DECLARATION = "decl";
155
- var IMPORT = "@import";
156
- var KEYFRAMES = "@keyframes";
157
- var LAYER = "@layer";
158
-
159
- // ../../node_modules/.pnpm/stylis@4.3.1/node_modules/stylis/src/Utility.js
160
- var abs = Math.abs;
161
- var from = String.fromCharCode;
162
- var assign = Object.assign;
163
- function hash(value, length2) {
164
- return charat(value, 0) ^ 45 ? (((length2 << 2 ^ charat(value, 0)) << 2 ^ charat(value, 1)) << 2 ^ charat(value, 2)) << 2 ^ charat(value, 3) : 0;
165
- }
166
- function trim(value) {
167
- return value.trim();
168
- }
169
- function match(value, pattern) {
170
- return (value = pattern.exec(value)) ? value[0] : value;
171
- }
172
- function replace(value, pattern, replacement) {
173
- return value.replace(pattern, replacement);
174
- }
175
- function indexof(value, search, position2) {
176
- return value.indexOf(search, position2);
177
- }
178
- function charat(value, index) {
179
- return value.charCodeAt(index) | 0;
180
- }
181
- function substr(value, begin, end) {
182
- return value.slice(begin, end);
183
- }
184
- function strlen(value) {
185
- return value.length;
186
- }
187
- function sizeof(value) {
188
- return value.length;
189
- }
190
- function append(value, array) {
191
- return array.push(value), value;
192
- }
193
- function combine(array, callback) {
194
- return array.map(callback).join("");
195
- }
196
- function filter(array, pattern) {
197
- return array.filter(function(value) {
198
- return !match(value, pattern);
199
- });
200
- }
201
-
202
- // ../../node_modules/.pnpm/stylis@4.3.1/node_modules/stylis/src/Tokenizer.js
203
- var line = 1;
204
- var column = 1;
205
- var length = 0;
206
- var position = 0;
207
- var character = 0;
208
- var characters = "";
209
- function node(value, root, parent, type, props2, children, length2, siblings) {
210
- return { value, root, parent, type, props: props2, children, line, column, length: length2, return: "", siblings };
211
- }
212
- function copy(root, props2) {
213
- return assign(node("", null, null, "", null, null, 0, root.siblings), root, { length: -root.length }, props2);
214
- }
215
- function lift(root) {
216
- while (root.root)
217
- root = copy(root.root, { children: [root] });
218
- append(root, root.siblings);
219
- }
220
- function char() {
221
- return character;
222
- }
223
- function prev() {
224
- character = position > 0 ? charat(characters, --position) : 0;
225
- if (column--, character === 10)
226
- column = 1, line--;
227
- return character;
228
- }
229
- function next() {
230
- character = position < length ? charat(characters, position++) : 0;
231
- if (column++, character === 10)
232
- column = 1, line++;
233
- return character;
234
- }
235
- function peek() {
236
- return charat(characters, position);
237
- }
238
- function caret() {
239
- return position;
240
- }
241
- function slice(begin, end) {
242
- return substr(characters, begin, end);
243
- }
244
- function token(type) {
245
- switch (type) {
246
- case 0:
247
- case 9:
248
- case 10:
249
- case 13:
250
- case 32:
251
- return 5;
252
- case 33:
253
- case 43:
254
- case 44:
255
- case 47:
256
- case 62:
257
- case 64:
258
- case 126:
259
- case 59:
260
- case 123:
261
- case 125:
262
- return 4;
263
- case 58:
264
- return 3;
265
- case 34:
266
- case 39:
267
- case 40:
268
- case 91:
269
- return 2;
270
- case 41:
271
- case 93:
272
- return 1;
273
- }
274
- return 0;
275
- }
276
- function alloc(value) {
277
- return line = column = 1, length = strlen(characters = value), position = 0, [];
278
- }
279
- function dealloc(value) {
280
- return characters = "", value;
281
- }
282
- function delimit(type) {
283
- return trim(slice(position - 1, delimiter(type === 91 ? type + 2 : type === 40 ? type + 1 : type)));
284
- }
285
- function whitespace(type) {
286
- while (character = peek())
287
- if (character < 33)
288
- next();
289
- else
290
- break;
291
- return token(type) > 2 || token(character) > 3 ? "" : " ";
292
- }
293
- function escaping(index, count) {
294
- while (--count && next())
295
- if (character < 48 || character > 102 || character > 57 && character < 65 || character > 70 && character < 97)
296
- break;
297
- return slice(index, caret() + (count < 6 && peek() == 32 && next() == 32));
298
- }
299
- function delimiter(type) {
300
- while (next())
301
- switch (character) {
302
- case type:
303
- return position;
304
- case 34:
305
- case 39:
306
- if (type !== 34 && type !== 39)
307
- delimiter(character);
308
- break;
309
- case 40:
310
- if (type === 41)
311
- delimiter(type);
312
- break;
313
- case 92:
314
- next();
315
- break;
316
- }
317
- return position;
318
- }
319
- function commenter(type, index) {
320
- while (next())
321
- if (type + character === 47 + 10)
322
- break;
323
- else if (type + character === 42 + 42 && peek() === 47)
324
- break;
325
- return "/*" + slice(index, position - 1) + "*" + from(type === 47 ? type : next());
326
- }
327
- function identifier(index) {
328
- while (!token(peek()))
329
- next();
330
- return slice(index, position);
331
- }
332
-
333
- // ../../node_modules/.pnpm/stylis@4.3.1/node_modules/stylis/src/Parser.js
334
- function compile(value) {
335
- return dealloc(parse("", null, null, null, [""], value = alloc(value), 0, [0], value));
336
- }
337
- function parse(value, root, parent, rule, rules, rulesets, pseudo, points, declarations) {
338
- var index = 0;
339
- var offset = 0;
340
- var length2 = pseudo;
341
- var atrule = 0;
342
- var property = 0;
343
- var previous = 0;
344
- var variable = 1;
345
- var scanning = 1;
346
- var ampersand = 1;
347
- var character2 = 0;
348
- var type = "";
349
- var props2 = rules;
350
- var children = rulesets;
351
- var reference = rule;
352
- var characters2 = type;
353
- while (scanning)
354
- switch (previous = character2, character2 = next()) {
355
- case 40:
356
- if (previous != 108 && charat(characters2, length2 - 1) == 58) {
357
- if (indexof(characters2 += replace(delimit(character2), "&", "&\f"), "&\f", abs(index ? points[index - 1] : 0)) != -1)
358
- ampersand = -1;
359
- break;
360
- }
361
- case 34:
362
- case 39:
363
- case 91:
364
- characters2 += delimit(character2);
365
- break;
366
- case 9:
367
- case 10:
368
- case 13:
369
- case 32:
370
- characters2 += whitespace(previous);
371
- break;
372
- case 92:
373
- characters2 += escaping(caret() - 1, 7);
374
- continue;
375
- case 47:
376
- switch (peek()) {
377
- case 42:
378
- case 47:
379
- append(comment(commenter(next(), caret()), root, parent, declarations), declarations);
380
- break;
381
- default:
382
- characters2 += "/";
383
- }
384
- break;
385
- case 123 * variable:
386
- points[index++] = strlen(characters2) * ampersand;
387
- case 125 * variable:
388
- case 59:
389
- case 0:
390
- switch (character2) {
391
- case 0:
392
- case 125:
393
- scanning = 0;
394
- case 59 + offset:
395
- if (ampersand == -1)
396
- characters2 = replace(characters2, /\f/g, "");
397
- if (property > 0 && strlen(characters2) - length2)
398
- append(property > 32 ? declaration(characters2 + ";", rule, parent, length2 - 1, declarations) : declaration(replace(characters2, " ", "") + ";", rule, parent, length2 - 2, declarations), declarations);
399
- break;
400
- case 59:
401
- characters2 += ";";
402
- default:
403
- append(reference = ruleset(characters2, root, parent, index, offset, rules, points, type, props2 = [], children = [], length2, rulesets), rulesets);
404
- if (character2 === 123)
405
- if (offset === 0)
406
- parse(characters2, root, reference, reference, props2, rulesets, length2, points, children);
407
- else
408
- switch (atrule === 99 && charat(characters2, 3) === 110 ? 100 : atrule) {
409
- case 100:
410
- case 108:
411
- case 109:
412
- case 115:
413
- parse(value, reference, reference, rule && append(ruleset(value, reference, reference, 0, 0, rules, points, type, rules, props2 = [], length2, children), children), rules, children, length2, points, rule ? props2 : children);
414
- break;
415
- default:
416
- parse(characters2, reference, reference, reference, [""], children, 0, points, children);
417
- }
418
- }
419
- index = offset = property = 0, variable = ampersand = 1, type = characters2 = "", length2 = pseudo;
420
- break;
421
- case 58:
422
- length2 = 1 + strlen(characters2), property = previous;
423
- default:
424
- if (variable < 1) {
425
- if (character2 == 123)
426
- --variable;
427
- else if (character2 == 125 && variable++ == 0 && prev() == 125)
428
- continue;
429
- }
430
- switch (characters2 += from(character2), character2 * variable) {
431
- case 38:
432
- ampersand = offset > 0 ? 1 : (characters2 += "\f", -1);
433
- break;
434
- case 44:
435
- points[index++] = (strlen(characters2) - 1) * ampersand, ampersand = 1;
436
- break;
437
- case 64:
438
- if (peek() === 45)
439
- characters2 += delimit(next());
440
- atrule = peek(), offset = length2 = strlen(type = characters2 += identifier(caret())), character2++;
441
- break;
442
- case 45:
443
- if (previous === 45 && strlen(characters2) == 2)
444
- variable = 0;
445
- }
446
- }
447
- return rulesets;
448
- }
449
- function ruleset(value, root, parent, index, offset, rules, points, type, props2, children, length2, siblings) {
450
- var post = offset - 1;
451
- var rule = offset === 0 ? rules : [""];
452
- var size = sizeof(rule);
453
- for (var i2 = 0, j2 = 0, k2 = 0; i2 < index; ++i2)
454
- for (var x2 = 0, y2 = substr(value, post + 1, post = abs(j2 = points[i2])), z2 = value; x2 < size; ++x2)
455
- if (z2 = trim(j2 > 0 ? rule[x2] + " " + y2 : replace(y2, /&\f/g, rule[x2])))
456
- props2[k2++] = z2;
457
- return node(value, root, parent, offset === 0 ? RULESET : type, props2, children, length2, siblings);
458
- }
459
- function comment(value, root, parent, siblings) {
460
- return node(value, root, parent, COMMENT, from(char()), substr(value, 2, -2), 0, siblings);
461
- }
462
- function declaration(value, root, parent, length2, siblings) {
463
- return node(value, root, parent, DECLARATION, substr(value, 0, length2), substr(value, length2 + 1, -1), length2, siblings);
464
- }
465
-
466
- // ../../node_modules/.pnpm/stylis@4.3.1/node_modules/stylis/src/Prefixer.js
467
- function prefix2(value, length2, children) {
468
- switch (hash(value, length2)) {
469
- case 5103:
470
- return WEBKIT + "print-" + value + value;
471
- case 5737:
472
- case 4201:
473
- case 3177:
474
- case 3433:
475
- case 1641:
476
- case 4457:
477
- case 2921:
478
- case 5572:
479
- case 6356:
480
- case 5844:
481
- case 3191:
482
- case 6645:
483
- case 3005:
484
- case 6391:
485
- case 5879:
486
- case 5623:
487
- case 6135:
488
- case 4599:
489
- case 4855:
490
- case 4215:
491
- case 6389:
492
- case 5109:
493
- case 5365:
494
- case 5621:
495
- case 3829:
496
- return WEBKIT + value + value;
497
- case 4789:
498
- return MOZ + value + value;
499
- case 5349:
500
- case 4246:
501
- case 4810:
502
- case 6968:
503
- case 2756:
504
- return WEBKIT + value + MOZ + value + MS + value + value;
505
- case 5936:
506
- switch (charat(value, length2 + 11)) {
507
- case 114:
508
- return WEBKIT + value + MS + replace(value, /[svh]\w+-[tblr]{2}/, "tb") + value;
509
- case 108:
510
- return WEBKIT + value + MS + replace(value, /[svh]\w+-[tblr]{2}/, "tb-rl") + value;
511
- case 45:
512
- return WEBKIT + value + MS + replace(value, /[svh]\w+-[tblr]{2}/, "lr") + value;
513
- }
514
- case 6828:
515
- case 4268:
516
- case 2903:
517
- return WEBKIT + value + MS + value + value;
518
- case 6165:
519
- return WEBKIT + value + MS + "flex-" + value + value;
520
- case 5187:
521
- return WEBKIT + value + replace(value, /(\w+).+(:[^]+)/, WEBKIT + "box-$1$2" + MS + "flex-$1$2") + value;
522
- case 5443:
523
- return WEBKIT + value + MS + "flex-item-" + replace(value, /flex-|-self/g, "") + (!match(value, /flex-|baseline/) ? MS + "grid-row-" + replace(value, /flex-|-self/g, "") : "") + value;
524
- case 4675:
525
- return WEBKIT + value + MS + "flex-line-pack" + replace(value, /align-content|flex-|-self/g, "") + value;
526
- case 5548:
527
- return WEBKIT + value + MS + replace(value, "shrink", "negative") + value;
528
- case 5292:
529
- return WEBKIT + value + MS + replace(value, "basis", "preferred-size") + value;
530
- case 6060:
531
- return WEBKIT + "box-" + replace(value, "-grow", "") + WEBKIT + value + MS + replace(value, "grow", "positive") + value;
532
- case 4554:
533
- return WEBKIT + replace(value, /([^-])(transform)/g, "$1" + WEBKIT + "$2") + value;
534
- case 6187:
535
- return replace(replace(replace(value, /(zoom-|grab)/, WEBKIT + "$1"), /(image-set)/, WEBKIT + "$1"), value, "") + value;
536
- case 5495:
537
- case 3959:
538
- return replace(value, /(image-set\([^]*)/, WEBKIT + "$1$`$1");
539
- case 4968:
540
- return replace(replace(value, /(.+:)(flex-)?(.*)/, WEBKIT + "box-pack:$3" + MS + "flex-pack:$3"), /s.+-b[^;]+/, "justify") + WEBKIT + value + value;
541
- case 4200:
542
- if (!match(value, /flex-|baseline/))
543
- return MS + "grid-column-align" + substr(value, length2) + value;
544
- break;
545
- case 2592:
546
- case 3360:
547
- return MS + replace(value, "template-", "") + value;
548
- case 4384:
549
- case 3616:
550
- if (children && children.some(function(element, index) {
551
- return length2 = index, match(element.props, /grid-\w+-end/);
552
- })) {
553
- return ~indexof(value + (children = children[length2].value), "span", 0) ? value : MS + replace(value, "-start", "") + value + MS + "grid-row-span:" + (~indexof(children, "span", 0) ? match(children, /\d+/) : +match(children, /\d+/) - +match(value, /\d+/)) + ";";
554
- }
555
- return MS + replace(value, "-start", "") + value;
556
- case 4896:
557
- case 4128:
558
- return children && children.some(function(element) {
559
- return match(element.props, /grid-\w+-start/);
560
- }) ? value : MS + replace(replace(value, "-end", "-span"), "span ", "") + value;
561
- case 4095:
562
- case 3583:
563
- case 4068:
564
- case 2532:
565
- return replace(value, /(.+)-inline(.+)/, WEBKIT + "$1$2") + value;
566
- case 8116:
567
- case 7059:
568
- case 5753:
569
- case 5535:
570
- case 5445:
571
- case 5701:
572
- case 4933:
573
- case 4677:
574
- case 5533:
575
- case 5789:
576
- case 5021:
577
- case 4765:
578
- if (strlen(value) - 1 - length2 > 6)
579
- switch (charat(value, length2 + 1)) {
580
- case 109:
581
- if (charat(value, length2 + 4) !== 45)
582
- break;
583
- case 102:
584
- return replace(value, /(.+:)(.+)-([^]+)/, "$1" + WEBKIT + "$2-$3$1" + MOZ + (charat(value, length2 + 3) == 108 ? "$3" : "$2-$3")) + value;
585
- case 115:
586
- return ~indexof(value, "stretch", 0) ? prefix2(replace(value, "stretch", "fill-available"), length2, children) + value : value;
587
- }
588
- break;
589
- case 5152:
590
- case 5920:
591
- return replace(value, /(.+?):(\d+)(\s*\/\s*(span)?\s*(\d+))?(.*)/, function(_2, a2, b2, c2, d, e, f2) {
592
- return MS + a2 + ":" + b2 + f2 + (c2 ? MS + a2 + "-span:" + (d ? e : +e - +b2) + f2 : "") + value;
593
- });
594
- case 4949:
595
- if (charat(value, length2 + 6) === 121)
596
- return replace(value, ":", ":" + WEBKIT) + value;
597
- break;
598
- case 6444:
599
- switch (charat(value, charat(value, 14) === 45 ? 18 : 11)) {
600
- case 120:
601
- return replace(value, /(.+:)([^;\s!]+)(;|(\s+)?!.+)?/, "$1" + WEBKIT + (charat(value, 14) === 45 ? "inline-" : "") + "box$3$1" + WEBKIT + "$2$3$1" + MS + "$2box$3") + value;
602
- case 100:
603
- return replace(value, ":", ":" + MS) + value;
604
- }
605
- break;
606
- case 5719:
607
- case 2647:
608
- case 2135:
609
- case 3927:
610
- case 2391:
611
- return replace(value, "scroll-", "scroll-snap-") + value;
612
- }
613
- return value;
614
- }
615
-
616
- // ../../node_modules/.pnpm/stylis@4.3.1/node_modules/stylis/src/Serializer.js
617
- function serialize(children, callback) {
618
- var output = "";
619
- for (var i2 = 0; i2 < children.length; i2++)
620
- output += callback(children[i2], i2, children, callback) || "";
621
- return output;
622
- }
623
- function stringify(element, index, children, callback) {
624
- switch (element.type) {
625
- case LAYER:
626
- if (element.children.length)
627
- break;
628
- case IMPORT:
629
- case DECLARATION:
630
- return element.return = element.return || element.value;
631
- case COMMENT:
632
- return "";
633
- case KEYFRAMES:
634
- return element.return = element.value + "{" + serialize(element.children, callback) + "}";
635
- case RULESET:
636
- if (!strlen(element.value = element.props.join(",")))
637
- return "";
638
- }
639
- return strlen(children = serialize(element.children, callback)) ? element.return = element.value + "{" + children + "}" : "";
640
- }
641
-
642
- // ../../node_modules/.pnpm/stylis@4.3.1/node_modules/stylis/src/Middleware.js
643
- function middleware(collection) {
644
- var length2 = sizeof(collection);
645
- return function(element, index, children, callback) {
646
- var output = "";
647
- for (var i2 = 0; i2 < length2; i2++)
648
- output += collection[i2](element, index, children, callback) || "";
649
- return output;
650
- };
651
- }
652
- function rulesheet(callback) {
653
- return function(element) {
654
- if (!element.root) {
655
- if (element = element.return)
656
- callback(element);
657
- }
658
- };
659
- }
660
- function prefixer(element, index, children, callback) {
661
- if (element.length > -1) {
662
- if (!element.return)
663
- switch (element.type) {
664
- case DECLARATION:
665
- element.return = prefix2(element.value, element.length, children);
666
- return;
667
- case KEYFRAMES:
668
- return serialize([copy(element, { value: replace(element.value, "@", "@" + WEBKIT) })], callback);
669
- case RULESET:
670
- if (element.length)
671
- return combine(children = element.props, function(value) {
672
- switch (match(value, callback = /(::plac\w+|:read-\w+)/)) {
673
- case ":read-only":
674
- case ":read-write":
675
- lift(copy(element, { props: [replace(value, /:(read-\w+)/, ":" + MOZ + "$1")] }));
676
- lift(copy(element, { props: [value] }));
677
- assign(element, { props: filter(children, callback) });
678
- break;
679
- case "::placeholder":
680
- lift(copy(element, { props: [replace(value, /:(plac\w+)/, ":" + WEBKIT + "input-$1")] }));
681
- lift(copy(element, { props: [replace(value, /:(plac\w+)/, ":" + MOZ + "$1")] }));
682
- lift(copy(element, { props: [replace(value, /:(plac\w+)/, MS + "input-$1")] }));
683
- lift(copy(element, { props: [value] }));
684
- assign(element, { props: filter(children, callback) });
685
- break;
686
- }
687
- return "";
688
- });
689
- }
690
- }
691
- }
692
-
693
- // ../../node_modules/.pnpm/@emotion+unitless@0.8.0/node_modules/@emotion/unitless/dist/emotion-unitless.esm.js
694
- var unitlessKeys = {
695
- animationIterationCount: 1,
696
- borderImageOutset: 1,
697
- borderImageSlice: 1,
698
- borderImageWidth: 1,
699
- boxFlex: 1,
700
- boxFlexGroup: 1,
701
- boxOrdinalGroup: 1,
702
- columnCount: 1,
703
- columns: 1,
704
- flex: 1,
705
- flexGrow: 1,
706
- flexPositive: 1,
707
- flexShrink: 1,
708
- flexNegative: 1,
709
- flexOrder: 1,
710
- gridRow: 1,
711
- gridRowEnd: 1,
712
- gridRowSpan: 1,
713
- gridRowStart: 1,
714
- gridColumn: 1,
715
- gridColumnEnd: 1,
716
- gridColumnSpan: 1,
717
- gridColumnStart: 1,
718
- msGridRow: 1,
719
- msGridRowSpan: 1,
720
- msGridColumn: 1,
721
- msGridColumnSpan: 1,
722
- fontWeight: 1,
723
- lineHeight: 1,
724
- opacity: 1,
725
- order: 1,
726
- orphans: 1,
727
- tabSize: 1,
728
- widows: 1,
729
- zIndex: 1,
730
- zoom: 1,
731
- WebkitLineClamp: 1,
732
- // SVG-related properties
733
- fillOpacity: 1,
734
- floodOpacity: 1,
735
- stopOpacity: 1,
736
- strokeDasharray: 1,
737
- strokeDashoffset: 1,
738
- strokeMiterlimit: 1,
739
- strokeOpacity: 1,
740
- strokeWidth: 1
741
- };
742
- var emotion_unitless_esm_default = unitlessKeys;
743
-
744
- // ../../node_modules/.pnpm/styled-components@6.1.8_react-dom@18.3.1_react@18.3.1/node_modules/styled-components/dist/styled-components.browser.esm.js
745
- var f = "undefined" != typeof process && void 0 !== process.env && (process.env.REACT_APP_SC_ATTR || process.env.SC_ATTR) || "data-styled";
746
- var m = "active";
747
- var y = "data-styled-version";
748
- var v = "6.1.8";
749
- var g = "/*!sc*/\n";
750
- var S = "undefined" != typeof window && "HTMLElement" in window;
751
- var w = Boolean("boolean" == typeof SC_DISABLE_SPEEDY ? SC_DISABLE_SPEEDY : "undefined" != typeof process && void 0 !== process.env && void 0 !== process.env.REACT_APP_SC_DISABLE_SPEEDY && "" !== process.env.REACT_APP_SC_DISABLE_SPEEDY ? "false" !== process.env.REACT_APP_SC_DISABLE_SPEEDY && process.env.REACT_APP_SC_DISABLE_SPEEDY : "undefined" != typeof process && void 0 !== process.env && void 0 !== process.env.SC_DISABLE_SPEEDY && "" !== process.env.SC_DISABLE_SPEEDY ? "false" !== process.env.SC_DISABLE_SPEEDY && process.env.SC_DISABLE_SPEEDY : true);
752
- var b = {};
753
- var E = /invalid hook call/i;
754
- var N = /* @__PURE__ */ new Set();
755
- var P = function(t, n) {
756
- if (true) {
757
- var o2 = n ? ' with the id of "'.concat(n, '"') : "", s2 = "The component ".concat(t).concat(o2, " has been created dynamically.\n") + "You may see this warning because you've called styled inside another component.\nTo resolve this only create new StyledComponents outside of any render method and function component.", i2 = console.error;
758
- try {
759
- var a2 = true;
760
- console.error = function(t2) {
761
- for (var n2 = [], o3 = 1; o3 < arguments.length; o3++)
762
- n2[o3 - 1] = arguments[o3];
763
- E.test(t2) ? (a2 = false, N.delete(s2)) : i2.apply(void 0, __spreadArray([t2], n2, false));
764
- }, (0, import_react.useRef)(), a2 && !N.has(s2) && (console.warn(s2), N.add(s2));
765
- } catch (e) {
766
- E.test(e.message) && N.delete(s2);
767
- } finally {
768
- console.error = i2;
769
- }
770
- }
771
- };
772
- var _ = Object.freeze([]);
773
- var C = Object.freeze({});
774
- function I(e, t, n) {
775
- return void 0 === n && (n = C), e.theme !== n.theme && e.theme || t || n.theme;
776
- }
777
- var A = /* @__PURE__ */ new Set(["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", "header", "hgroup", "hr", "html", "i", "iframe", "img", "input", "ins", "kbd", "keygen", "label", "legend", "li", "link", "main", "map", "mark", "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", "tr", "track", "u", "ul", "use", "var", "video", "wbr", "circle", "clipPath", "defs", "ellipse", "foreignObject", "g", "image", "line", "linearGradient", "marker", "mask", "path", "pattern", "polygon", "polyline", "radialGradient", "rect", "stop", "svg", "text", "tspan"]);
778
- var O = /[!"#$%&'()*+,./:;<=>?@[\\\]^`{|}~-]+/g;
779
- var D = /(^-|-$)/g;
780
- function R(e) {
781
- return e.replace(O, "-").replace(D, "");
782
- }
783
- var T = /(a)(d)/gi;
784
- var k = 52;
785
- var j = function(e) {
786
- return String.fromCharCode(e + (e > 25 ? 39 : 97));
787
- };
788
- function x(e) {
789
- var t, n = "";
790
- for (t = Math.abs(e); t > k; t = t / k | 0)
791
- n = j(t % k) + n;
792
- return (j(t % k) + n).replace(T, "$1-$2");
793
- }
794
- var V;
795
- var F = 5381;
796
- var M = function(e, t) {
797
- for (var n = t.length; n; )
798
- e = 33 * e ^ t.charCodeAt(--n);
799
- return e;
800
- };
801
- var $ = function(e) {
802
- return M(F, e);
803
- };
804
- function z(e) {
805
- return x($(e) >>> 0);
806
- }
807
- function B(e) {
808
- return "string" == typeof e && e || e.displayName || e.name || "Component";
809
- }
810
- function L(e) {
811
- return "string" == typeof e && e.charAt(0) === e.charAt(0).toLowerCase();
812
- }
813
- var G = "function" == typeof Symbol && Symbol.for;
814
- var Y = G ? Symbol.for("react.memo") : 60115;
815
- var W = G ? Symbol.for("react.forward_ref") : 60112;
816
- var q = { childContextTypes: true, contextType: true, contextTypes: true, defaultProps: true, displayName: true, getDefaultProps: true, getDerivedStateFromError: true, getDerivedStateFromProps: true, mixins: true, propTypes: true, type: true };
817
- var H = { name: true, length: true, prototype: true, caller: true, callee: true, arguments: true, arity: true };
818
- var U = { $$typeof: true, compare: true, defaultProps: true, displayName: true, propTypes: true, type: true };
819
- var J = ((V = {})[W] = { $$typeof: true, render: true, defaultProps: true, displayName: true, propTypes: true }, V[Y] = U, V);
820
- function X(e) {
821
- return ("type" in (t = e) && t.type.$$typeof) === Y ? U : "$$typeof" in e ? J[e.$$typeof] : q;
822
- var t;
823
- }
824
- var Z = Object.defineProperty;
825
- var K = Object.getOwnPropertyNames;
826
- var Q = Object.getOwnPropertySymbols;
827
- var ee = Object.getOwnPropertyDescriptor;
828
- var te = Object.getPrototypeOf;
829
- var ne = Object.prototype;
830
- function oe(e, t, n) {
831
- if ("string" != typeof t) {
832
- if (ne) {
833
- var o2 = te(t);
834
- o2 && o2 !== ne && oe(e, o2, n);
835
- }
836
- var r2 = K(t);
837
- Q && (r2 = r2.concat(Q(t)));
838
- for (var s2 = X(e), i2 = X(t), a2 = 0; a2 < r2.length; ++a2) {
839
- var c2 = r2[a2];
840
- if (!(c2 in H || n && n[c2] || i2 && c2 in i2 || s2 && c2 in s2)) {
841
- var l2 = ee(t, c2);
842
- try {
843
- Z(e, c2, l2);
844
- } catch (e2) {
845
- }
846
- }
847
- }
848
- }
849
- return e;
850
- }
851
- function re(e) {
852
- return "function" == typeof e;
853
- }
854
- function se(e) {
855
- return "object" == typeof e && "styledComponentId" in e;
856
- }
857
- function ie(e, t) {
858
- return e && t ? "".concat(e, " ").concat(t) : e || t || "";
859
- }
860
- function ae(e, t) {
861
- if (0 === e.length)
862
- return "";
863
- for (var n = e[0], o2 = 1; o2 < e.length; o2++)
864
- n += t ? t + e[o2] : e[o2];
865
- return n;
866
- }
867
- function ce(e) {
868
- return null !== e && "object" == typeof e && e.constructor.name === Object.name && !("props" in e && e.$$typeof);
869
- }
870
- function le(e, t, n) {
871
- if (void 0 === n && (n = false), !n && !ce(e) && !Array.isArray(e))
872
- return t;
873
- if (Array.isArray(t))
874
- for (var o2 = 0; o2 < t.length; o2++)
875
- e[o2] = le(e[o2], t[o2]);
876
- else if (ce(t))
877
- for (var o2 in t)
878
- e[o2] = le(e[o2], t[o2]);
879
- return e;
880
- }
881
- function ue(e, t) {
882
- Object.defineProperty(e, "toString", { value: t });
883
- }
884
- var pe = true ? { 1: "Cannot create styled-component for component: %s.\n\n", 2: "Can't collect styles once you've consumed a `ServerStyleSheet`'s styles! `ServerStyleSheet` is a one off instance for each server-side render cycle.\n\n- Are you trying to reuse it across renders?\n- Are you accidentally calling collectStyles twice?\n\n", 3: "Streaming SSR is only supported in a Node.js environment; Please do not try to call this method in the browser.\n\n", 4: "The `StyleSheetManager` expects a valid target or sheet prop!\n\n- Does this error occur on the client and is your target falsy?\n- Does this error occur on the server and is the sheet falsy?\n\n", 5: "The clone method cannot be used on the client!\n\n- Are you running in a client-like environment on the server?\n- Are you trying to run SSR on the client?\n\n", 6: "Trying to insert a new style tag, but the given Node is unmounted!\n\n- Are you using a custom target that isn't mounted?\n- Does your document not have a valid head element?\n- Have you accidentally removed a style tag manually?\n\n", 7: 'ThemeProvider: Please return an object from your "theme" prop function, e.g.\n\n```js\ntheme={() => ({})}\n```\n\n', 8: 'ThemeProvider: Please make your "theme" prop an object.\n\n', 9: "Missing document `<head>`\n\n", 10: "Cannot find a StyleSheet instance. Usually this happens if there are multiple copies of styled-components loaded at once. Check out this issue for how to troubleshoot and fix the common cases where this situation can happen: https://github.com/styled-components/styled-components/issues/1941#issuecomment-417862021\n\n", 11: "_This error was replaced with a dev-time warning, it will be deleted for v4 final._ [createGlobalStyle] received children which will not be rendered. Please use the component without passing children elements.\n\n", 12: "It seems you are interpolating a keyframe declaration (%s) into an untagged string. This was supported in styled-components v3, but is not longer supported in v4 as keyframes are now injected on-demand. Please wrap your string in the css\\`\\` helper which ensures the styles are injected correctly. See https://www.styled-components.com/docs/api#css\n\n", 13: "%s is not a styled component and cannot be referred to via component selector. See https://www.styled-components.com/docs/advanced#referring-to-other-components for more details.\n\n", 14: 'ThemeProvider: "theme" prop is required.\n\n', 15: "A stylis plugin has been supplied that is not named. We need a name for each plugin to be able to prevent styling collisions between different stylis configurations within the same app. Before you pass your plugin to `<StyleSheetManager stylisPlugins={[]}>`, please make sure each plugin is uniquely-named, e.g.\n\n```js\nObject.defineProperty(importedPlugin, 'name', { value: 'some-unique-name' });\n```\n\n", 16: "Reached the limit of how many styled components may be created at group %s.\nYou may only create up to 1,073,741,824 components. If you're creating components dynamically,\nas for instance in your render method then you may be running into this limitation.\n\n", 17: "CSSStyleSheet could not be found on HTMLStyleElement.\nHas styled-components' style tag been unmounted or altered by another script?\n", 18: "ThemeProvider: Please make sure your useTheme hook is within a `<ThemeProvider>`" } : {};
885
- function de() {
886
- for (var e = [], t = 0; t < arguments.length; t++)
887
- e[t] = arguments[t];
888
- for (var n = e[0], o2 = [], r2 = 1, s2 = e.length; r2 < s2; r2 += 1)
889
- o2.push(e[r2]);
890
- return o2.forEach(function(e2) {
891
- n = n.replace(/%[a-z]/, e2);
892
- }), n;
893
- }
894
- function he(t) {
895
- for (var n = [], o2 = 1; o2 < arguments.length; o2++)
896
- n[o2 - 1] = arguments[o2];
897
- return false ? new Error("An error occurred. See https://github.com/styled-components/styled-components/blob/main/packages/styled-components/src/utils/errors.md#".concat(t, " for more information.").concat(n.length > 0 ? " Args: ".concat(n.join(", ")) : "")) : new Error(de.apply(void 0, __spreadArray([pe[t]], n, false)).trim());
898
- }
899
- var fe = function() {
900
- function e(e2) {
901
- this.groupSizes = new Uint32Array(512), this.length = 512, this.tag = e2;
902
- }
903
- return e.prototype.indexOfGroup = function(e2) {
904
- for (var t = 0, n = 0; n < e2; n++)
905
- t += this.groupSizes[n];
906
- return t;
907
- }, e.prototype.insertRules = function(e2, t) {
908
- if (e2 >= this.groupSizes.length) {
909
- for (var n = this.groupSizes, o2 = n.length, r2 = o2; e2 >= r2; )
910
- if ((r2 <<= 1) < 0)
911
- throw he(16, "".concat(e2));
912
- this.groupSizes = new Uint32Array(r2), this.groupSizes.set(n), this.length = r2;
913
- for (var s2 = o2; s2 < r2; s2++)
914
- this.groupSizes[s2] = 0;
915
- }
916
- for (var i2 = this.indexOfGroup(e2 + 1), a2 = (s2 = 0, t.length); s2 < a2; s2++)
917
- this.tag.insertRule(i2, t[s2]) && (this.groupSizes[e2]++, i2++);
918
- }, e.prototype.clearGroup = function(e2) {
919
- if (e2 < this.length) {
920
- var t = this.groupSizes[e2], n = this.indexOfGroup(e2), o2 = n + t;
921
- this.groupSizes[e2] = 0;
922
- for (var r2 = n; r2 < o2; r2++)
923
- this.tag.deleteRule(n);
924
- }
925
- }, e.prototype.getGroup = function(e2) {
926
- var t = "";
927
- if (e2 >= this.length || 0 === this.groupSizes[e2])
928
- return t;
929
- for (var n = this.groupSizes[e2], o2 = this.indexOfGroup(e2), r2 = o2 + n, s2 = o2; s2 < r2; s2++)
930
- t += "".concat(this.tag.getRule(s2)).concat(g);
931
- return t;
932
- }, e;
933
- }();
934
- var me = /* @__PURE__ */ new Map();
935
- var ye = /* @__PURE__ */ new Map();
936
- var ve = 1;
937
- var ge = function(e) {
938
- if (me.has(e))
939
- return me.get(e);
940
- for (; ye.has(ve); )
941
- ve++;
942
- var t = ve++;
943
- if ((0 | t) < 0 || t > 1073741824)
944
- throw he(16, "".concat(t));
945
- return me.set(e, t), ye.set(t, e), t;
946
- };
947
- var Se = function(e, t) {
948
- ve = t + 1, me.set(e, t), ye.set(t, e);
949
- };
950
- var we = "style[".concat(f, "][").concat(y, '="').concat(v, '"]');
951
- var be = new RegExp("^".concat(f, '\\.g(\\d+)\\[id="([\\w\\d-]+)"\\].*?"([^"]*)'));
952
- var Ee = function(e, t, n) {
953
- for (var o2, r2 = n.split(","), s2 = 0, i2 = r2.length; s2 < i2; s2++)
954
- (o2 = r2[s2]) && e.registerName(t, o2);
955
- };
956
- var Ne = function(e, t) {
957
- for (var n, o2 = (null !== (n = t.textContent) && void 0 !== n ? n : "").split(g), r2 = [], s2 = 0, i2 = o2.length; s2 < i2; s2++) {
958
- var a2 = o2[s2].trim();
959
- if (a2) {
960
- var c2 = a2.match(be);
961
- if (c2) {
962
- var l2 = 0 | parseInt(c2[1], 10), u2 = c2[2];
963
- 0 !== l2 && (Se(u2, l2), Ee(e, u2, c2[3]), e.getTag().insertRules(l2, r2)), r2.length = 0;
964
- } else
965
- r2.push(a2);
966
- }
967
- }
968
- };
969
- function Pe() {
970
- return "undefined" != typeof __webpack_nonce__ ? __webpack_nonce__ : null;
971
- }
972
- var _e = function(e) {
973
- var t = document.head, n = e || t, o2 = document.createElement("style"), r2 = function(e2) {
974
- var t2 = Array.from(e2.querySelectorAll("style[".concat(f, "]")));
975
- return t2[t2.length - 1];
976
- }(n), s2 = void 0 !== r2 ? r2.nextSibling : null;
977
- o2.setAttribute(f, m), o2.setAttribute(y, v);
978
- var i2 = Pe();
979
- return i2 && o2.setAttribute("nonce", i2), n.insertBefore(o2, s2), o2;
980
- };
981
- var Ce = function() {
982
- function e(e2) {
983
- this.element = _e(e2), this.element.appendChild(document.createTextNode("")), this.sheet = function(e3) {
984
- if (e3.sheet)
985
- return e3.sheet;
986
- for (var t = document.styleSheets, n = 0, o2 = t.length; n < o2; n++) {
987
- var r2 = t[n];
988
- if (r2.ownerNode === e3)
989
- return r2;
990
- }
991
- throw he(17);
992
- }(this.element), this.length = 0;
993
- }
994
- return e.prototype.insertRule = function(e2, t) {
995
- try {
996
- return this.sheet.insertRule(t, e2), this.length++, true;
997
- } catch (e3) {
998
- return false;
999
- }
1000
- }, e.prototype.deleteRule = function(e2) {
1001
- this.sheet.deleteRule(e2), this.length--;
1002
- }, e.prototype.getRule = function(e2) {
1003
- var t = this.sheet.cssRules[e2];
1004
- return t && t.cssText ? t.cssText : "";
1005
- }, e;
1006
- }();
1007
- var Ie = function() {
1008
- function e(e2) {
1009
- this.element = _e(e2), this.nodes = this.element.childNodes, this.length = 0;
1010
- }
1011
- return e.prototype.insertRule = function(e2, t) {
1012
- if (e2 <= this.length && e2 >= 0) {
1013
- var n = document.createTextNode(t);
1014
- return this.element.insertBefore(n, this.nodes[e2] || null), this.length++, true;
1015
- }
1016
- return false;
1017
- }, e.prototype.deleteRule = function(e2) {
1018
- this.element.removeChild(this.nodes[e2]), this.length--;
1019
- }, e.prototype.getRule = function(e2) {
1020
- return e2 < this.length ? this.nodes[e2].textContent : "";
1021
- }, e;
1022
- }();
1023
- var Ae = function() {
1024
- function e(e2) {
1025
- this.rules = [], this.length = 0;
1026
- }
1027
- return e.prototype.insertRule = function(e2, t) {
1028
- return e2 <= this.length && (this.rules.splice(e2, 0, t), this.length++, true);
1029
- }, e.prototype.deleteRule = function(e2) {
1030
- this.rules.splice(e2, 1), this.length--;
1031
- }, e.prototype.getRule = function(e2) {
1032
- return e2 < this.length ? this.rules[e2] : "";
1033
- }, e;
1034
- }();
1035
- var Oe = S;
1036
- var De = { isServer: !S, useCSSOMInjection: !w };
1037
- var Re = function() {
1038
- function e(e2, n, o2) {
1039
- void 0 === e2 && (e2 = C), void 0 === n && (n = {});
1040
- var r2 = this;
1041
- this.options = __assign(__assign({}, De), e2), this.gs = n, this.names = new Map(o2), this.server = !!e2.isServer, !this.server && S && Oe && (Oe = false, function(e3) {
1042
- for (var t = document.querySelectorAll(we), n2 = 0, o3 = t.length; n2 < o3; n2++) {
1043
- var r3 = t[n2];
1044
- r3 && r3.getAttribute(f) !== m && (Ne(e3, r3), r3.parentNode && r3.parentNode.removeChild(r3));
1045
- }
1046
- }(this)), ue(this, function() {
1047
- return function(e3) {
1048
- for (var t = e3.getTag(), n2 = t.length, o3 = "", r3 = function(n3) {
1049
- var r4 = function(e4) {
1050
- return ye.get(e4);
1051
- }(n3);
1052
- if (void 0 === r4)
1053
- return "continue";
1054
- var s3 = e3.names.get(r4), i2 = t.getGroup(n3);
1055
- if (void 0 === s3 || 0 === i2.length)
1056
- return "continue";
1057
- var a2 = "".concat(f, ".g").concat(n3, '[id="').concat(r4, '"]'), c2 = "";
1058
- void 0 !== s3 && s3.forEach(function(e4) {
1059
- e4.length > 0 && (c2 += "".concat(e4, ","));
1060
- }), o3 += "".concat(i2).concat(a2, '{content:"').concat(c2, '"}').concat(g);
1061
- }, s2 = 0; s2 < n2; s2++)
1062
- r3(s2);
1063
- return o3;
1064
- }(r2);
1065
- });
1066
- }
1067
- return e.registerId = function(e2) {
1068
- return ge(e2);
1069
- }, e.prototype.reconstructWithOptions = function(n, o2) {
1070
- return void 0 === o2 && (o2 = true), new e(__assign(__assign({}, this.options), n), this.gs, o2 && this.names || void 0);
1071
- }, e.prototype.allocateGSInstance = function(e2) {
1072
- return this.gs[e2] = (this.gs[e2] || 0) + 1;
1073
- }, e.prototype.getTag = function() {
1074
- return this.tag || (this.tag = (e2 = function(e3) {
1075
- var t = e3.useCSSOMInjection, n = e3.target;
1076
- return e3.isServer ? new Ae(n) : t ? new Ce(n) : new Ie(n);
1077
- }(this.options), new fe(e2)));
1078
- var e2;
1079
- }, e.prototype.hasNameForId = function(e2, t) {
1080
- return this.names.has(e2) && this.names.get(e2).has(t);
1081
- }, e.prototype.registerName = function(e2, t) {
1082
- if (ge(e2), this.names.has(e2))
1083
- this.names.get(e2).add(t);
1084
- else {
1085
- var n = /* @__PURE__ */ new Set();
1086
- n.add(t), this.names.set(e2, n);
1087
- }
1088
- }, e.prototype.insertRules = function(e2, t, n) {
1089
- this.registerName(e2, t), this.getTag().insertRules(ge(e2), n);
1090
- }, e.prototype.clearNames = function(e2) {
1091
- this.names.has(e2) && this.names.get(e2).clear();
1092
- }, e.prototype.clearRules = function(e2) {
1093
- this.getTag().clearGroup(ge(e2)), this.clearNames(e2);
1094
- }, e.prototype.clearTag = function() {
1095
- this.tag = void 0;
1096
- }, e;
1097
- }();
1098
- var Te = /&/g;
1099
- var ke = /^\s*\/\/.*$/gm;
1100
- function je(e, t) {
1101
- return e.map(function(e2) {
1102
- return "rule" === e2.type && (e2.value = "".concat(t, " ").concat(e2.value), e2.value = e2.value.replaceAll(",", ",".concat(t, " ")), e2.props = e2.props.map(function(e3) {
1103
- return "".concat(t, " ").concat(e3);
1104
- })), Array.isArray(e2.children) && "@keyframes" !== e2.type && (e2.children = je(e2.children, t)), e2;
1105
- });
1106
- }
1107
- function xe(e) {
1108
- var t, n, o2, r2 = void 0 === e ? C : e, s2 = r2.options, i2 = void 0 === s2 ? C : s2, a2 = r2.plugins, c2 = void 0 === a2 ? _ : a2, l2 = function(e2, o3, r3) {
1109
- return r3.startsWith(n) && r3.endsWith(n) && r3.replaceAll(n, "").length > 0 ? ".".concat(t) : e2;
1110
- }, u2 = c2.slice();
1111
- u2.push(function(e2) {
1112
- e2.type === RULESET && e2.value.includes("&") && (e2.props[0] = e2.props[0].replace(Te, n).replace(o2, l2));
1113
- }), i2.prefix && u2.push(prefixer), u2.push(stringify);
1114
- var p2 = function(e2, r3, s3, a3) {
1115
- void 0 === r3 && (r3 = ""), void 0 === s3 && (s3 = ""), void 0 === a3 && (a3 = "&"), t = a3, n = r3, o2 = new RegExp("\\".concat(n, "\\b"), "g");
1116
- var c3 = e2.replace(ke, ""), l3 = compile(s3 || r3 ? "".concat(s3, " ").concat(r3, " { ").concat(c3, " }") : c3);
1117
- i2.namespace && (l3 = je(l3, i2.namespace));
1118
- var p3 = [];
1119
- return serialize(l3, middleware(u2.concat(rulesheet(function(e3) {
1120
- return p3.push(e3);
1121
- })))), p3;
1122
- };
1123
- return p2.hash = c2.length ? c2.reduce(function(e2, t2) {
1124
- return t2.name || he(15), M(e2, t2.name);
1125
- }, F).toString() : "", p2;
1126
- }
1127
- var Ve = new Re();
1128
- var Fe = xe();
1129
- var Me = import_react.default.createContext({ shouldForwardProp: void 0, styleSheet: Ve, stylis: Fe });
1130
- var $e = Me.Consumer;
1131
- var ze = import_react.default.createContext(void 0);
1132
- function Be() {
1133
- return (0, import_react.useContext)(Me);
1134
- }
1135
- function Le(e) {
1136
- var t = (0, import_react.useState)(e.stylisPlugins), n = t[0], r2 = t[1], c2 = Be().styleSheet, l2 = (0, import_react.useMemo)(function() {
1137
- var t2 = c2;
1138
- return e.sheet ? t2 = e.sheet : e.target && (t2 = t2.reconstructWithOptions({ target: e.target }, false)), e.disableCSSOMInjection && (t2 = t2.reconstructWithOptions({ useCSSOMInjection: false })), t2;
1139
- }, [e.disableCSSOMInjection, e.sheet, e.target, c2]), u2 = (0, import_react.useMemo)(function() {
1140
- return xe({ options: { namespace: e.namespace, prefix: e.enableVendorPrefixes }, plugins: n });
1141
- }, [e.enableVendorPrefixes, e.namespace, n]);
1142
- (0, import_react.useEffect)(function() {
1143
- (0, import_shallowequal.default)(n, e.stylisPlugins) || r2(e.stylisPlugins);
1144
- }, [e.stylisPlugins]);
1145
- var d = (0, import_react.useMemo)(function() {
1146
- return { shouldForwardProp: e.shouldForwardProp, styleSheet: l2, stylis: u2 };
1147
- }, [e.shouldForwardProp, l2, u2]);
1148
- return import_react.default.createElement(Me.Provider, { value: d }, import_react.default.createElement(ze.Provider, { value: u2 }, e.children));
1149
- }
1150
- var Ge = function() {
1151
- function e(e2, t) {
1152
- var n = this;
1153
- this.inject = function(e3, t2) {
1154
- void 0 === t2 && (t2 = Fe);
1155
- var o2 = n.name + t2.hash;
1156
- e3.hasNameForId(n.id, o2) || e3.insertRules(n.id, o2, t2(n.rules, o2, "@keyframes"));
1157
- }, this.name = e2, this.id = "sc-keyframes-".concat(e2), this.rules = t, ue(this, function() {
1158
- throw he(12, String(n.name));
1159
- });
1160
- }
1161
- return e.prototype.getName = function(e2) {
1162
- return void 0 === e2 && (e2 = Fe), this.name + e2.hash;
1163
- }, e;
1164
- }();
1165
- var Ye = function(e) {
1166
- return e >= "A" && e <= "Z";
1167
- };
1168
- function We(e) {
1169
- for (var t = "", n = 0; n < e.length; n++) {
1170
- var o2 = e[n];
1171
- if (1 === n && "-" === o2 && "-" === e[0])
1172
- return e;
1173
- Ye(o2) ? t += "-" + o2.toLowerCase() : t += o2;
1174
- }
1175
- return t.startsWith("ms-") ? "-" + t : t;
1176
- }
1177
- var qe = function(e) {
1178
- return null == e || false === e || "" === e;
1179
- };
1180
- var He = function(t) {
1181
- var n, o2, r2 = [];
1182
- for (var s2 in t) {
1183
- var i2 = t[s2];
1184
- t.hasOwnProperty(s2) && !qe(i2) && (Array.isArray(i2) && i2.isCss || re(i2) ? r2.push("".concat(We(s2), ":"), i2, ";") : ce(i2) ? r2.push.apply(r2, __spreadArray(__spreadArray(["".concat(s2, " {")], He(i2), false), ["}"], false)) : r2.push("".concat(We(s2), ": ").concat((n = s2, null == (o2 = i2) || "boolean" == typeof o2 || "" === o2 ? "" : "number" != typeof o2 || 0 === o2 || n in emotion_unitless_esm_default || n.startsWith("--") ? String(o2).trim() : "".concat(o2, "px")), ";")));
1185
- }
1186
- return r2;
1187
- };
1188
- function Ue(e, t, n, o2) {
1189
- if (qe(e))
1190
- return [];
1191
- if (se(e))
1192
- return [".".concat(e.styledComponentId)];
1193
- if (re(e)) {
1194
- if (!re(s2 = e) || s2.prototype && s2.prototype.isReactComponent || !t)
1195
- return [e];
1196
- var r2 = e(t);
1197
- return "object" != typeof r2 || Array.isArray(r2) || r2 instanceof Ge || ce(r2) || null === r2 || console.error("".concat(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.")), Ue(r2, t, n, o2);
1198
- }
1199
- var s2;
1200
- return e instanceof Ge ? n ? (e.inject(n, o2), [e.getName(o2)]) : [e] : ce(e) ? He(e) : Array.isArray(e) ? Array.prototype.concat.apply(_, e.map(function(e2) {
1201
- return Ue(e2, t, n, o2);
1202
- })) : [e.toString()];
1203
- }
1204
- function Je(e) {
1205
- for (var t = 0; t < e.length; t += 1) {
1206
- var n = e[t];
1207
- if (re(n) && !se(n))
1208
- return false;
1209
- }
1210
- return true;
1211
- }
1212
- var Xe = $(v);
1213
- var Ze = function() {
1214
- function e(e2, t, n) {
1215
- this.rules = e2, this.staticRulesId = "", this.isStatic = false, this.componentId = t, this.baseHash = M(Xe, t), this.baseStyle = n, Re.registerId(t);
1216
- }
1217
- return e.prototype.generateAndInjectStyles = function(e2, t, n) {
1218
- var o2 = this.baseStyle ? this.baseStyle.generateAndInjectStyles(e2, t, n) : "";
1219
- if (this.isStatic && !n.hash)
1220
- if (this.staticRulesId && t.hasNameForId(this.componentId, this.staticRulesId))
1221
- o2 = ie(o2, this.staticRulesId);
1222
- else {
1223
- var r2 = ae(Ue(this.rules, e2, t, n)), s2 = x(M(this.baseHash, r2) >>> 0);
1224
- if (!t.hasNameForId(this.componentId, s2)) {
1225
- var i2 = n(r2, ".".concat(s2), void 0, this.componentId);
1226
- t.insertRules(this.componentId, s2, i2);
1227
- }
1228
- o2 = ie(o2, s2), this.staticRulesId = s2;
1229
- }
1230
- else {
1231
- for (var a2 = M(this.baseHash, n.hash), c2 = "", l2 = 0; l2 < this.rules.length; l2++) {
1232
- var u2 = this.rules[l2];
1233
- if ("string" == typeof u2)
1234
- c2 += u2, a2 = M(a2, u2);
1235
- else if (u2) {
1236
- var p2 = ae(Ue(u2, e2, t, n));
1237
- a2 = M(a2, p2 + l2), c2 += p2;
1238
- }
1239
- }
1240
- if (c2) {
1241
- var d = x(a2 >>> 0);
1242
- t.hasNameForId(this.componentId, d) || t.insertRules(this.componentId, d, n(c2, ".".concat(d), void 0, this.componentId)), o2 = ie(o2, d);
1243
- }
1244
- }
1245
- return o2;
1246
- }, e;
1247
- }();
1248
- var Ke = import_react.default.createContext(void 0);
1249
- var Qe = Ke.Consumer;
1250
- var nt = {};
1251
- var ot = /* @__PURE__ */ new Set();
1252
- function rt(e, r2, s2) {
1253
- var i2 = se(e), a2 = e, c2 = !L(e), p2 = r2.attrs, d = void 0 === p2 ? _ : p2, h = r2.componentId, f2 = void 0 === h ? function(e2, t) {
1254
- var n = "string" != typeof e2 ? "sc" : R(e2);
1255
- nt[n] = (nt[n] || 0) + 1;
1256
- var o2 = "".concat(n, "-").concat(z(v + n + nt[n]));
1257
- return t ? "".concat(t, "-").concat(o2) : o2;
1258
- }(r2.displayName, r2.parentComponentId) : h, m2 = r2.displayName, y2 = void 0 === m2 ? function(e2) {
1259
- return L(e2) ? "styled.".concat(e2) : "Styled(".concat(B(e2), ")");
1260
- }(e) : m2, g2 = r2.displayName && r2.componentId ? "".concat(R(r2.displayName), "-").concat(r2.componentId) : r2.componentId || f2, S2 = i2 && a2.attrs ? a2.attrs.concat(d).filter(Boolean) : d, w2 = r2.shouldForwardProp;
1261
- if (i2 && a2.shouldForwardProp) {
1262
- var b2 = a2.shouldForwardProp;
1263
- if (r2.shouldForwardProp) {
1264
- var E2 = r2.shouldForwardProp;
1265
- w2 = function(e2, t) {
1266
- return b2(e2, t) && E2(e2, t);
1267
- };
1268
- } else
1269
- w2 = b2;
1270
- }
1271
- var N2 = new Ze(s2, g2, i2 ? a2.componentStyle : void 0);
1272
- function O2(e2, r3) {
1273
- return function(e3, r4, s3) {
1274
- var i3 = e3.attrs, a3 = e3.componentStyle, c3 = e3.defaultProps, p3 = e3.foldedComponentIds, d2 = e3.styledComponentId, h2 = e3.target, f3 = import_react.default.useContext(Ke), m3 = Be(), y3 = e3.shouldForwardProp || m3.shouldForwardProp;
1275
- (0, import_react.useDebugValue)(d2);
1276
- var v2 = I(r4, f3, c3) || C, g3 = function(e4, n, o2) {
1277
- for (var r5, s4 = __assign(__assign({}, n), { className: void 0, theme: o2 }), i4 = 0; i4 < e4.length; i4 += 1) {
1278
- var a4 = re(r5 = e4[i4]) ? r5(s4) : r5;
1279
- for (var c4 in a4)
1280
- s4[c4] = "className" === c4 ? ie(s4[c4], a4[c4]) : "style" === c4 ? __assign(__assign({}, s4[c4]), a4[c4]) : a4[c4];
1281
- }
1282
- return n.className && (s4.className = ie(s4.className, n.className)), s4;
1283
- }(i3, r4, v2), S3 = g3.as || h2, w3 = {};
1284
- for (var b3 in g3)
1285
- void 0 === g3[b3] || "$" === b3[0] || "as" === b3 || "theme" === b3 && g3.theme === v2 || ("forwardedAs" === b3 ? w3.as = g3.forwardedAs : y3 && !y3(b3, S3) || (w3[b3] = g3[b3], y3 || false || isPropValid(b3) || ot.has(b3) || !A.has(S3) || (ot.add(b3), console.warn('styled-components: it looks like an unknown prop "'.concat(b3, '" is being sent through to the DOM, which will likely trigger a React console error. If you would like automatic filtering of unknown props, you can opt-into that behavior via `<StyleSheetManager shouldForwardProp={...}>` (connect an API like `@emotion/is-prop-valid`) or consider using transient props (`$` prefix for automatic filtering.)')))));
1286
- var E3 = function(e4, t) {
1287
- var n = Be(), o2 = e4.generateAndInjectStyles(t, n.styleSheet, n.stylis);
1288
- return (0, import_react.useDebugValue)(o2), o2;
1289
- }(a3, g3);
1290
- e3.warnTooManyClasses && e3.warnTooManyClasses(E3);
1291
- var N3 = ie(p3, d2);
1292
- return E3 && (N3 += " " + E3), g3.className && (N3 += " " + g3.className), w3[L(S3) && !A.has(S3) ? "class" : "className"] = N3, w3.ref = s3, (0, import_react.createElement)(S3, w3);
1293
- }(D2, e2, r3);
1294
- }
1295
- O2.displayName = y2;
1296
- var D2 = import_react.default.forwardRef(O2);
1297
- return D2.attrs = S2, D2.componentStyle = N2, D2.displayName = y2, D2.shouldForwardProp = w2, D2.foldedComponentIds = i2 ? ie(a2.foldedComponentIds, a2.styledComponentId) : "", D2.styledComponentId = g2, D2.target = i2 ? a2.target : e, Object.defineProperty(D2, "defaultProps", { get: function() {
1298
- return this._foldedDefaultProps;
1299
- }, set: function(e2) {
1300
- this._foldedDefaultProps = i2 ? function(e3) {
1301
- for (var t = [], n = 1; n < arguments.length; n++)
1302
- t[n - 1] = arguments[n];
1303
- for (var o2 = 0, r3 = t; o2 < r3.length; o2++)
1304
- le(e3, r3[o2], true);
1305
- return e3;
1306
- }({}, a2.defaultProps, e2) : e2;
1307
- } }), P(y2, g2), D2.warnTooManyClasses = /* @__PURE__ */ function(e2, t) {
1308
- var n = {}, o2 = false;
1309
- return function(r3) {
1310
- if (!o2 && (n[r3] = true, Object.keys(n).length >= 200)) {
1311
- var s3 = t ? ' with the id of "'.concat(t, '"') : "";
1312
- console.warn("Over ".concat(200, " classes were generated for component ").concat(e2).concat(s3, ".\n") + "Consider using the attrs method, together with a style object for frequently changed styles.\nExample:\n const Component = styled.div.attrs(props => ({\n style: {\n background: props.background,\n },\n }))`width: 100%;`\n\n <Component />"), o2 = true, n = {};
1313
- }
1314
- };
1315
- }(y2, g2), ue(D2, function() {
1316
- return ".".concat(D2.styledComponentId);
1317
- }), c2 && oe(D2, e, { attrs: true, componentStyle: true, displayName: true, foldedComponentIds: true, shouldForwardProp: true, styledComponentId: true, target: true }), D2;
1318
- }
1319
- function st(e, t) {
1320
- for (var n = [e[0]], o2 = 0, r2 = t.length; o2 < r2; o2 += 1)
1321
- n.push(t[o2], e[o2 + 1]);
1322
- return n;
1323
- }
1324
- var it = function(e) {
1325
- return Object.assign(e, { isCss: true });
1326
- };
1327
- function at(t) {
1328
- for (var n = [], o2 = 1; o2 < arguments.length; o2++)
1329
- n[o2 - 1] = arguments[o2];
1330
- if (re(t) || ce(t))
1331
- return it(Ue(st(_, __spreadArray([t], n, true))));
1332
- var r2 = t;
1333
- return 0 === n.length && 1 === r2.length && "string" == typeof r2[0] ? Ue(r2) : it(Ue(st(r2, n)));
1334
- }
1335
- function ct(n, o2, r2) {
1336
- if (void 0 === r2 && (r2 = C), !o2)
1337
- throw he(1, o2);
1338
- var s2 = function(t) {
1339
- for (var s3 = [], i2 = 1; i2 < arguments.length; i2++)
1340
- s3[i2 - 1] = arguments[i2];
1341
- return n(o2, r2, at.apply(void 0, __spreadArray([t], s3, false)));
1342
- };
1343
- return s2.attrs = function(e) {
1344
- return ct(n, o2, __assign(__assign({}, r2), { attrs: Array.prototype.concat(r2.attrs, e).filter(Boolean) }));
1345
- }, s2.withConfig = function(e) {
1346
- return ct(n, o2, __assign(__assign({}, r2), e));
1347
- }, s2;
1348
- }
1349
- var lt = function(e) {
1350
- return ct(rt, e);
1351
- };
1352
- var ut = lt;
1353
- A.forEach(function(e) {
1354
- ut[e] = lt(e);
1355
- });
1356
- var pt = function() {
1357
- function e(e2, t) {
1358
- this.rules = e2, this.componentId = t, this.isStatic = Je(e2), Re.registerId(this.componentId + 1);
1359
- }
1360
- return e.prototype.createStyles = function(e2, t, n, o2) {
1361
- var r2 = o2(ae(Ue(this.rules, t, n, o2)), ""), s2 = this.componentId + e2;
1362
- n.insertRules(s2, s2, r2);
1363
- }, e.prototype.removeStyles = function(e2, t) {
1364
- t.clearRules(this.componentId + e2);
1365
- }, e.prototype.renderStyles = function(e2, t, n, o2) {
1366
- e2 > 2 && Re.registerId(this.componentId + e2), this.removeStyles(e2, n), this.createStyles(e2, t, n, o2);
1367
- }, e;
1368
- }();
1369
- function dt(n) {
1370
- for (var r2 = [], s2 = 1; s2 < arguments.length; s2++)
1371
- r2[s2 - 1] = arguments[s2];
1372
- var i2 = at.apply(void 0, __spreadArray([n], r2, false)), a2 = "sc-global-".concat(z(JSON.stringify(i2))), c2 = new pt(i2, a2);
1373
- P(a2);
1374
- var l2 = function(e) {
1375
- var t = Be(), n2 = import_react.default.useContext(Ke), r3 = import_react.default.useRef(t.styleSheet.allocateGSInstance(a2)).current;
1376
- return import_react.default.Children.count(e.children) && console.warn("The global style component ".concat(a2, " was given child JSX. createGlobalStyle does not render children.")), i2.some(function(e2) {
1377
- return "string" == typeof e2 && -1 !== e2.indexOf("@import");
1378
- }) && console.warn("Please do not use @import CSS syntax in createGlobalStyle at this time, as the CSSOM APIs we use in production do not handle it well. Instead, we recommend using a library such as react-helmet to inject a typical <link> meta tag to the stylesheet, or simply embedding it manually in your index.html <head> section for a simpler app."), t.styleSheet.server && u2(r3, e, t.styleSheet, n2, t.stylis), import_react.default.useLayoutEffect(function() {
1379
- if (!t.styleSheet.server)
1380
- return u2(r3, e, t.styleSheet, n2, t.stylis), function() {
1381
- return c2.removeStyles(r3, t.styleSheet);
1382
- };
1383
- }, [r3, e, t.styleSheet, n2, t.stylis]), null;
1384
- };
1385
- function u2(e, n2, o2, r3, s3) {
1386
- if (c2.isStatic)
1387
- c2.renderStyles(e, b, o2, s3);
1388
- else {
1389
- var i3 = __assign(__assign({}, n2), { theme: I(n2, r3, l2.defaultProps) });
1390
- c2.renderStyles(e, i3, o2, s3);
1391
- }
1392
- }
1393
- return import_react.default.memo(l2);
1394
- }
1395
- var mt = function() {
1396
- function e() {
1397
- var e2 = this;
1398
- this._emitSheetCSS = function() {
1399
- var t = e2.instance.toString(), n = Pe(), o2 = ae([n && 'nonce="'.concat(n, '"'), "".concat(f, '="true"'), "".concat(y, '="').concat(v, '"')].filter(Boolean), " ");
1400
- return "<style ".concat(o2, ">").concat(t, "</style>");
1401
- }, this.getStyleTags = function() {
1402
- if (e2.sealed)
1403
- throw he(2);
1404
- return e2._emitSheetCSS();
1405
- }, this.getStyleElement = function() {
1406
- var n;
1407
- if (e2.sealed)
1408
- throw he(2);
1409
- var r2 = ((n = {})[f] = "", n[y] = v, n.dangerouslySetInnerHTML = { __html: e2.instance.toString() }, n), s2 = Pe();
1410
- return s2 && (r2.nonce = s2), [import_react.default.createElement("style", __assign({}, r2, { key: "sc-0-0" }))];
1411
- }, this.seal = function() {
1412
- e2.sealed = true;
1413
- }, this.instance = new Re({ isServer: true }), this.sealed = false;
1414
- }
1415
- return e.prototype.collectStyles = function(e2) {
1416
- if (this.sealed)
1417
- throw he(2);
1418
- return import_react.default.createElement(Le, { sheet: this.instance }, e2);
1419
- }, e.prototype.interleaveWithNodeStream = function(e2) {
1420
- throw he(3);
1421
- }, e;
1422
- }();
1423
- "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");
1424
- var vt = "__sc-".concat(f, "__");
1425
- "undefined" != typeof window && (window[vt] || (window[vt] = 0), 1 === window[vt] && 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[vt] += 1);
1426
-
1427
- // ../ui/atoms/GlobalStyle.ts
1428
- var GlobalStyle = dt`
1429
- html,
1430
- body {
1431
- --atlas-background: #E5E7F0;
1432
- }
1433
-
1434
- * {
1435
- box-sizing: border-box;
1436
- }
1437
-
1438
- /* Disable double-click to zoom on links, input fields
1439
- and buttons to improve responsiveness */
1440
- a, input, button {
1441
- touch-action: manipulation;
1442
- }
1443
-
1444
- ul {
1445
- padding: 0;
1446
- margin: 0;
1447
- }
1448
-
1449
- *[data-textual-content] {
1450
- padding: 2em;
1451
- font-size: 1.4em;
1452
- }
1453
-
1454
- .me-logo {
1455
- .me-logo-1,
1456
- .me-logo-2,
1457
- .me-logo-3 {
1458
- transition: fill 3s ease-in-out;
1459
- }
1460
- }
1461
-
1462
- .me-logo:hover {
1463
- .me-logo-1 {
1464
- fill: #2359B2;
1465
- }
1466
-
1467
- .me-logo-2 {
1468
- fill: #F0CF35;
1469
- }
1470
-
1471
- .me-logo-3 {
1472
- fill: #c2a622;
1473
- }
1474
- }
1475
-
1476
- `;
1477
-
1478
57
  // src/ManifestEditor.tsx
1479
58
  var import_jsx_runtime = require("react/jsx-runtime");
1480
- var { default: metadata, ...props } = _manifestEditor;
1481
- var manifestEditor = {
1482
- metadata,
1483
- layout: {
1484
- leftPanels: [],
1485
- rightPanels: [],
1486
- centerPanels: [],
1487
- ...props
1488
- }
1489
- };
1490
- function ManifestEditor(props2) {
1491
- const vault = (0, import_react_iiif_vault.useExistingVault)(props2.vault);
1492
- invariant(props2.resource);
1493
- invariant(props2.data, "Data is required");
1494
- invariant(props2.resource.type === "Manifest", "Only Manifests are supported at the moment");
1495
- if (!vault.requestStatus(props2.resource.id)) {
1496
- vault.loadManifestSync(props2.resource.id, props2.data);
1497
- }
1498
- return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_shell.AppProvider, { appId: "manifest-editor", definition: manifestEditor, instanceId: "test-1", children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_react_iiif_vault.VaultProvider, { vault, children: /* @__PURE__ */ (0, import_jsx_runtime.jsxs)(import_shell.ShellProvider, { resource: props2.resource, children: [
1499
- /* @__PURE__ */ (0, import_jsx_runtime.jsx)(GlobalStyle, {}),
1500
- /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_shell.Layout, {})
1501
- ] }) }) });
59
+ var manifestEditor = (0, import_shell.mapApp)(manifestEditorPreset);
60
+ function ManifestEditor(props) {
61
+ const vault = (0, import_react_iiif_vault.useExistingVault)(props.vault);
62
+ invariant(props.resource);
63
+ invariant(props.data, "Data is required");
64
+ invariant(props.resource.type === "Manifest", "Only Manifests are supported at the moment");
65
+ if (!vault.requestStatus(props.resource.id)) {
66
+ vault.loadManifestSync(props.resource.id, props.data);
67
+ }
68
+ return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_shell.AppProvider, { appId: "manifest-editor", definition: manifestEditor, instanceId: "test-1", children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_react_iiif_vault.VaultProvider, { vault, children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_shell.ShellProvider, { resource: props.resource, children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_shell.Layout, {}) }) }) });
1502
69
  }