@jsonresume/jsonresume-theme-professional 1.0.16 → 1.0.19

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.mjs ADDED
@@ -0,0 +1,1784 @@
1
+ import { jsxs, jsx, Fragment } from "react/jsx-runtime";
2
+ import { renderToString } from "react-dom/server";
3
+ import o, { useState, useMemo, useEffect, useContext, useDebugValue, createElement, useRef } from "react";
4
+ import { marked } from "marked";
5
+ import { FaMapPin, FaEnvelope, FaPhoneAlt, FaLink, FaLinkedin, FaGithub, FaTwitter } from "react-icons/fa";
6
+ var __assign = function() {
7
+ __assign = Object.assign || function __assign2(t) {
8
+ for (var s, i = 1, n = arguments.length; i < n; i++) {
9
+ s = arguments[i];
10
+ for (var p2 in s) if (Object.prototype.hasOwnProperty.call(s, p2)) t[p2] = s[p2];
11
+ }
12
+ return t;
13
+ };
14
+ return __assign.apply(this, arguments);
15
+ };
16
+ function __spreadArray(to, from2, pack) {
17
+ if (pack || arguments.length === 2) for (var i = 0, l = from2.length, ar; i < l; i++) {
18
+ if (ar || !(i in from2)) {
19
+ if (!ar) ar = Array.prototype.slice.call(from2, 0, i);
20
+ ar[i] = from2[i];
21
+ }
22
+ }
23
+ return to.concat(ar || Array.prototype.slice.call(from2));
24
+ }
25
+ typeof SuppressedError === "function" ? SuppressedError : function(error, suppressed, message) {
26
+ var e = new Error(message);
27
+ return e.name = "SuppressedError", e.error = error, e.suppressed = suppressed, e;
28
+ };
29
+ function memoize(fn) {
30
+ var cache = /* @__PURE__ */ Object.create(null);
31
+ return function(arg) {
32
+ if (cache[arg] === void 0) cache[arg] = fn(arg);
33
+ return cache[arg];
34
+ };
35
+ }
36
+ 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|disableRemotePlayback|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)-.*))$/;
37
+ var isPropValid = /* @__PURE__ */ memoize(
38
+ function(prop) {
39
+ return reactPropsRegex.test(prop) || prop.charCodeAt(0) === 111 && prop.charCodeAt(1) === 110 && prop.charCodeAt(2) < 91;
40
+ }
41
+ /* Z+1 */
42
+ );
43
+ function getDefaultExportFromCjs(x2) {
44
+ return x2 && x2.__esModule && Object.prototype.hasOwnProperty.call(x2, "default") ? x2["default"] : x2;
45
+ }
46
+ var shallowequal = function shallowEqual(objA, objB, compare, compareContext) {
47
+ var ret = compare ? compare.call(compareContext, objA, objB) : void 0;
48
+ if (ret !== void 0) {
49
+ return !!ret;
50
+ }
51
+ if (objA === objB) {
52
+ return true;
53
+ }
54
+ if (typeof objA !== "object" || !objA || typeof objB !== "object" || !objB) {
55
+ return false;
56
+ }
57
+ var keysA = Object.keys(objA);
58
+ var keysB = Object.keys(objB);
59
+ if (keysA.length !== keysB.length) {
60
+ return false;
61
+ }
62
+ var bHasOwnProperty = Object.prototype.hasOwnProperty.bind(objB);
63
+ for (var idx = 0; idx < keysA.length; idx++) {
64
+ var key = keysA[idx];
65
+ if (!bHasOwnProperty(key)) {
66
+ return false;
67
+ }
68
+ var valueA = objA[key];
69
+ var valueB = objB[key];
70
+ ret = compare ? compare.call(compareContext, valueA, valueB, key) : void 0;
71
+ if (ret === false || ret === void 0 && valueA !== valueB) {
72
+ return false;
73
+ }
74
+ }
75
+ return true;
76
+ };
77
+ const p = /* @__PURE__ */ getDefaultExportFromCjs(shallowequal);
78
+ var MS = "-ms-";
79
+ var MOZ = "-moz-";
80
+ var WEBKIT = "-webkit-";
81
+ var COMMENT = "comm";
82
+ var RULESET = "rule";
83
+ var DECLARATION = "decl";
84
+ var IMPORT = "@import";
85
+ var KEYFRAMES = "@keyframes";
86
+ var LAYER = "@layer";
87
+ var abs = Math.abs;
88
+ var from = String.fromCharCode;
89
+ var assign = Object.assign;
90
+ function hash(value, length2) {
91
+ return charat(value, 0) ^ 45 ? (((length2 << 2 ^ charat(value, 0)) << 2 ^ charat(value, 1)) << 2 ^ charat(value, 2)) << 2 ^ charat(value, 3) : 0;
92
+ }
93
+ function trim(value) {
94
+ return value.trim();
95
+ }
96
+ function match(value, pattern) {
97
+ return (value = pattern.exec(value)) ? value[0] : value;
98
+ }
99
+ function replace(value, pattern, replacement) {
100
+ return value.replace(pattern, replacement);
101
+ }
102
+ function indexof(value, search, position2) {
103
+ return value.indexOf(search, position2);
104
+ }
105
+ function charat(value, index) {
106
+ return value.charCodeAt(index) | 0;
107
+ }
108
+ function substr(value, begin, end) {
109
+ return value.slice(begin, end);
110
+ }
111
+ function strlen(value) {
112
+ return value.length;
113
+ }
114
+ function sizeof(value) {
115
+ return value.length;
116
+ }
117
+ function append(value, array) {
118
+ return array.push(value), value;
119
+ }
120
+ function combine(array, callback) {
121
+ return array.map(callback).join("");
122
+ }
123
+ function filter(array, pattern) {
124
+ return array.filter(function(value) {
125
+ return !match(value, pattern);
126
+ });
127
+ }
128
+ var line = 1;
129
+ var column = 1;
130
+ var length = 0;
131
+ var position = 0;
132
+ var character = 0;
133
+ var characters = "";
134
+ function node(value, root, parent, type, props, children, length2, siblings) {
135
+ return { value, root, parent, type, props, children, line, column, length: length2, return: "", siblings };
136
+ }
137
+ function copy(root, props) {
138
+ return assign(node("", null, null, "", null, null, 0, root.siblings), root, { length: -root.length }, props);
139
+ }
140
+ function lift(root) {
141
+ while (root.root)
142
+ root = copy(root.root, { children: [root] });
143
+ append(root, root.siblings);
144
+ }
145
+ function char() {
146
+ return character;
147
+ }
148
+ function prev() {
149
+ character = position > 0 ? charat(characters, --position) : 0;
150
+ if (column--, character === 10)
151
+ column = 1, line--;
152
+ return character;
153
+ }
154
+ function next() {
155
+ character = position < length ? charat(characters, position++) : 0;
156
+ if (column++, character === 10)
157
+ column = 1, line++;
158
+ return character;
159
+ }
160
+ function peek() {
161
+ return charat(characters, position);
162
+ }
163
+ function caret() {
164
+ return position;
165
+ }
166
+ function slice(begin, end) {
167
+ return substr(characters, begin, end);
168
+ }
169
+ function token(type) {
170
+ switch (type) {
171
+ // \0 \t \n \r \s whitespace token
172
+ case 0:
173
+ case 9:
174
+ case 10:
175
+ case 13:
176
+ case 32:
177
+ return 5;
178
+ // ! + , / > @ ~ isolate token
179
+ case 33:
180
+ case 43:
181
+ case 44:
182
+ case 47:
183
+ case 62:
184
+ case 64:
185
+ case 126:
186
+ // ; { } breakpoint token
187
+ case 59:
188
+ case 123:
189
+ case 125:
190
+ return 4;
191
+ // : accompanied token
192
+ case 58:
193
+ return 3;
194
+ // " ' ( [ opening delimit token
195
+ case 34:
196
+ case 39:
197
+ case 40:
198
+ case 91:
199
+ return 2;
200
+ // ) ] closing delimit token
201
+ case 41:
202
+ case 93:
203
+ return 1;
204
+ }
205
+ return 0;
206
+ }
207
+ function alloc(value) {
208
+ return line = column = 1, length = strlen(characters = value), position = 0, [];
209
+ }
210
+ function dealloc(value) {
211
+ return characters = "", value;
212
+ }
213
+ function delimit(type) {
214
+ return trim(slice(position - 1, delimiter(type === 91 ? type + 2 : type === 40 ? type + 1 : type)));
215
+ }
216
+ function whitespace(type) {
217
+ while (character = peek())
218
+ if (character < 33)
219
+ next();
220
+ else
221
+ break;
222
+ return token(type) > 2 || token(character) > 3 ? "" : " ";
223
+ }
224
+ function escaping(index, count) {
225
+ while (--count && next())
226
+ if (character < 48 || character > 102 || character > 57 && character < 65 || character > 70 && character < 97)
227
+ break;
228
+ return slice(index, caret() + (count < 6 && peek() == 32 && next() == 32));
229
+ }
230
+ function delimiter(type) {
231
+ while (next())
232
+ switch (character) {
233
+ // ] ) " '
234
+ case type:
235
+ return position;
236
+ // " '
237
+ case 34:
238
+ case 39:
239
+ if (type !== 34 && type !== 39)
240
+ delimiter(character);
241
+ break;
242
+ // (
243
+ case 40:
244
+ if (type === 41)
245
+ delimiter(type);
246
+ break;
247
+ // \
248
+ case 92:
249
+ next();
250
+ break;
251
+ }
252
+ return position;
253
+ }
254
+ function commenter(type, index) {
255
+ while (next())
256
+ if (type + character === 47 + 10)
257
+ break;
258
+ else if (type + character === 42 + 42 && peek() === 47)
259
+ break;
260
+ return "/*" + slice(index, position - 1) + "*" + from(type === 47 ? type : next());
261
+ }
262
+ function identifier(index) {
263
+ while (!token(peek()))
264
+ next();
265
+ return slice(index, position);
266
+ }
267
+ function compile(value) {
268
+ return dealloc(parse("", null, null, null, [""], value = alloc(value), 0, [0], value));
269
+ }
270
+ function parse(value, root, parent, rule, rules, rulesets, pseudo, points, declarations) {
271
+ var index = 0;
272
+ var offset = 0;
273
+ var length2 = pseudo;
274
+ var atrule = 0;
275
+ var property = 0;
276
+ var previous = 0;
277
+ var variable = 1;
278
+ var scanning = 1;
279
+ var ampersand = 1;
280
+ var character2 = 0;
281
+ var type = "";
282
+ var props = rules;
283
+ var children = rulesets;
284
+ var reference = rule;
285
+ var characters2 = type;
286
+ while (scanning)
287
+ switch (previous = character2, character2 = next()) {
288
+ // (
289
+ case 40:
290
+ if (previous != 108 && charat(characters2, length2 - 1) == 58) {
291
+ if (indexof(characters2 += replace(delimit(character2), "&", "&\f"), "&\f", abs(index ? points[index - 1] : 0)) != -1)
292
+ ampersand = -1;
293
+ break;
294
+ }
295
+ // " ' [
296
+ case 34:
297
+ case 39:
298
+ case 91:
299
+ characters2 += delimit(character2);
300
+ break;
301
+ // \t \n \r \s
302
+ case 9:
303
+ case 10:
304
+ case 13:
305
+ case 32:
306
+ characters2 += whitespace(previous);
307
+ break;
308
+ // \
309
+ case 92:
310
+ characters2 += escaping(caret() - 1, 7);
311
+ continue;
312
+ // /
313
+ case 47:
314
+ switch (peek()) {
315
+ case 42:
316
+ case 47:
317
+ append(comment(commenter(next(), caret()), root, parent, declarations), declarations);
318
+ break;
319
+ default:
320
+ characters2 += "/";
321
+ }
322
+ break;
323
+ // {
324
+ case 123 * variable:
325
+ points[index++] = strlen(characters2) * ampersand;
326
+ // } ; \0
327
+ case 125 * variable:
328
+ case 59:
329
+ case 0:
330
+ switch (character2) {
331
+ // \0 }
332
+ case 0:
333
+ case 125:
334
+ scanning = 0;
335
+ // ;
336
+ case 59 + offset:
337
+ if (ampersand == -1) characters2 = replace(characters2, /\f/g, "");
338
+ if (property > 0 && strlen(characters2) - length2)
339
+ append(property > 32 ? declaration(characters2 + ";", rule, parent, length2 - 1, declarations) : declaration(replace(characters2, " ", "") + ";", rule, parent, length2 - 2, declarations), declarations);
340
+ break;
341
+ // @ ;
342
+ case 59:
343
+ characters2 += ";";
344
+ // { rule/at-rule
345
+ default:
346
+ append(reference = ruleset(characters2, root, parent, index, offset, rules, points, type, props = [], children = [], length2, rulesets), rulesets);
347
+ if (character2 === 123)
348
+ if (offset === 0)
349
+ parse(characters2, root, reference, reference, props, rulesets, length2, points, children);
350
+ else
351
+ switch (atrule === 99 && charat(characters2, 3) === 110 ? 100 : atrule) {
352
+ // d l m s
353
+ case 100:
354
+ case 108:
355
+ case 109:
356
+ case 115:
357
+ parse(value, reference, reference, rule && append(ruleset(value, reference, reference, 0, 0, rules, points, type, rules, props = [], length2, children), children), rules, children, length2, points, rule ? props : children);
358
+ break;
359
+ default:
360
+ parse(characters2, reference, reference, reference, [""], children, 0, points, children);
361
+ }
362
+ }
363
+ index = offset = property = 0, variable = ampersand = 1, type = characters2 = "", length2 = pseudo;
364
+ break;
365
+ // :
366
+ case 58:
367
+ length2 = 1 + strlen(characters2), property = previous;
368
+ default:
369
+ if (variable < 1) {
370
+ if (character2 == 123)
371
+ --variable;
372
+ else if (character2 == 125 && variable++ == 0 && prev() == 125)
373
+ continue;
374
+ }
375
+ switch (characters2 += from(character2), character2 * variable) {
376
+ // &
377
+ case 38:
378
+ ampersand = offset > 0 ? 1 : (characters2 += "\f", -1);
379
+ break;
380
+ // ,
381
+ case 44:
382
+ points[index++] = (strlen(characters2) - 1) * ampersand, ampersand = 1;
383
+ break;
384
+ // @
385
+ case 64:
386
+ if (peek() === 45)
387
+ characters2 += delimit(next());
388
+ atrule = peek(), offset = length2 = strlen(type = characters2 += identifier(caret())), character2++;
389
+ break;
390
+ // -
391
+ case 45:
392
+ if (previous === 45 && strlen(characters2) == 2)
393
+ variable = 0;
394
+ }
395
+ }
396
+ return rulesets;
397
+ }
398
+ function ruleset(value, root, parent, index, offset, rules, points, type, props, children, length2, siblings) {
399
+ var post = offset - 1;
400
+ var rule = offset === 0 ? rules : [""];
401
+ var size = sizeof(rule);
402
+ for (var i = 0, j2 = 0, k2 = 0; i < index; ++i)
403
+ for (var x2 = 0, y2 = substr(value, post + 1, post = abs(j2 = points[i])), z2 = value; x2 < size; ++x2)
404
+ if (z2 = trim(j2 > 0 ? rule[x2] + " " + y2 : replace(y2, /&\f/g, rule[x2])))
405
+ props[k2++] = z2;
406
+ return node(value, root, parent, offset === 0 ? RULESET : type, props, children, length2, siblings);
407
+ }
408
+ function comment(value, root, parent, siblings) {
409
+ return node(value, root, parent, COMMENT, from(char()), substr(value, 2, -2), 0, siblings);
410
+ }
411
+ function declaration(value, root, parent, length2, siblings) {
412
+ return node(value, root, parent, DECLARATION, substr(value, 0, length2), substr(value, length2 + 1, -1), length2, siblings);
413
+ }
414
+ function prefix(value, length2, children) {
415
+ switch (hash(value, length2)) {
416
+ // color-adjust
417
+ case 5103:
418
+ return WEBKIT + "print-" + value + value;
419
+ // animation, animation-(delay|direction|duration|fill-mode|iteration-count|name|play-state|timing-function)
420
+ case 5737:
421
+ case 4201:
422
+ case 3177:
423
+ case 3433:
424
+ case 1641:
425
+ case 4457:
426
+ case 2921:
427
+ // text-decoration, filter, clip-path, backface-visibility, column, box-decoration-break
428
+ case 5572:
429
+ case 6356:
430
+ case 5844:
431
+ case 3191:
432
+ case 6645:
433
+ case 3005:
434
+ // mask, mask-image, mask-(mode|clip|size), mask-(repeat|origin), mask-position, mask-composite,
435
+ case 6391:
436
+ case 5879:
437
+ case 5623:
438
+ case 6135:
439
+ case 4599:
440
+ case 4855:
441
+ // background-clip, columns, column-(count|fill|gap|rule|rule-color|rule-style|rule-width|span|width)
442
+ case 4215:
443
+ case 6389:
444
+ case 5109:
445
+ case 5365:
446
+ case 5621:
447
+ case 3829:
448
+ return WEBKIT + value + value;
449
+ // tab-size
450
+ case 4789:
451
+ return MOZ + value + value;
452
+ // appearance, user-select, transform, hyphens, text-size-adjust
453
+ case 5349:
454
+ case 4246:
455
+ case 4810:
456
+ case 6968:
457
+ case 2756:
458
+ return WEBKIT + value + MOZ + value + MS + value + value;
459
+ // writing-mode
460
+ case 5936:
461
+ switch (charat(value, length2 + 11)) {
462
+ // vertical-l(r)
463
+ case 114:
464
+ return WEBKIT + value + MS + replace(value, /[svh]\w+-[tblr]{2}/, "tb") + value;
465
+ // vertical-r(l)
466
+ case 108:
467
+ return WEBKIT + value + MS + replace(value, /[svh]\w+-[tblr]{2}/, "tb-rl") + value;
468
+ // horizontal(-)tb
469
+ case 45:
470
+ return WEBKIT + value + MS + replace(value, /[svh]\w+-[tblr]{2}/, "lr") + value;
471
+ }
472
+ // flex, flex-direction, scroll-snap-type, writing-mode
473
+ case 6828:
474
+ case 4268:
475
+ case 2903:
476
+ return WEBKIT + value + MS + value + value;
477
+ // order
478
+ case 6165:
479
+ return WEBKIT + value + MS + "flex-" + value + value;
480
+ // align-items
481
+ case 5187:
482
+ return WEBKIT + value + replace(value, /(\w+).+(:[^]+)/, WEBKIT + "box-$1$2" + MS + "flex-$1$2") + value;
483
+ // align-self
484
+ case 5443:
485
+ return WEBKIT + value + MS + "flex-item-" + replace(value, /flex-|-self/g, "") + (!match(value, /flex-|baseline/) ? MS + "grid-row-" + replace(value, /flex-|-self/g, "") : "") + value;
486
+ // align-content
487
+ case 4675:
488
+ return WEBKIT + value + MS + "flex-line-pack" + replace(value, /align-content|flex-|-self/g, "") + value;
489
+ // flex-shrink
490
+ case 5548:
491
+ return WEBKIT + value + MS + replace(value, "shrink", "negative") + value;
492
+ // flex-basis
493
+ case 5292:
494
+ return WEBKIT + value + MS + replace(value, "basis", "preferred-size") + value;
495
+ // flex-grow
496
+ case 6060:
497
+ return WEBKIT + "box-" + replace(value, "-grow", "") + WEBKIT + value + MS + replace(value, "grow", "positive") + value;
498
+ // transition
499
+ case 4554:
500
+ return WEBKIT + replace(value, /([^-])(transform)/g, "$1" + WEBKIT + "$2") + value;
501
+ // cursor
502
+ case 6187:
503
+ return replace(replace(replace(value, /(zoom-|grab)/, WEBKIT + "$1"), /(image-set)/, WEBKIT + "$1"), value, "") + value;
504
+ // background, background-image
505
+ case 5495:
506
+ case 3959:
507
+ return replace(value, /(image-set\([^]*)/, WEBKIT + "$1$`$1");
508
+ // justify-content
509
+ case 4968:
510
+ return replace(replace(value, /(.+:)(flex-)?(.*)/, WEBKIT + "box-pack:$3" + MS + "flex-pack:$3"), /s.+-b[^;]+/, "justify") + WEBKIT + value + value;
511
+ // justify-self
512
+ case 4200:
513
+ if (!match(value, /flex-|baseline/)) return MS + "grid-column-align" + substr(value, length2) + value;
514
+ break;
515
+ // grid-template-(columns|rows)
516
+ case 2592:
517
+ case 3360:
518
+ return MS + replace(value, "template-", "") + value;
519
+ // grid-(row|column)-start
520
+ case 4384:
521
+ case 3616:
522
+ if (children && children.some(function(element, index) {
523
+ return length2 = index, match(element.props, /grid-\w+-end/);
524
+ })) {
525
+ 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+/)) + ";";
526
+ }
527
+ return MS + replace(value, "-start", "") + value;
528
+ // grid-(row|column)-end
529
+ case 4896:
530
+ case 4128:
531
+ return children && children.some(function(element) {
532
+ return match(element.props, /grid-\w+-start/);
533
+ }) ? value : MS + replace(replace(value, "-end", "-span"), "span ", "") + value;
534
+ // (margin|padding)-inline-(start|end)
535
+ case 4095:
536
+ case 3583:
537
+ case 4068:
538
+ case 2532:
539
+ return replace(value, /(.+)-inline(.+)/, WEBKIT + "$1$2") + value;
540
+ // (min|max)?(width|height|inline-size|block-size)
541
+ case 8116:
542
+ case 7059:
543
+ case 5753:
544
+ case 5535:
545
+ case 5445:
546
+ case 5701:
547
+ case 4933:
548
+ case 4677:
549
+ case 5533:
550
+ case 5789:
551
+ case 5021:
552
+ case 4765:
553
+ if (strlen(value) - 1 - length2 > 6)
554
+ switch (charat(value, length2 + 1)) {
555
+ // (m)ax-content, (m)in-content
556
+ case 109:
557
+ if (charat(value, length2 + 4) !== 45)
558
+ break;
559
+ // (f)ill-available, (f)it-content
560
+ case 102:
561
+ return replace(value, /(.+:)(.+)-([^]+)/, "$1" + WEBKIT + "$2-$3$1" + MOZ + (charat(value, length2 + 3) == 108 ? "$3" : "$2-$3")) + value;
562
+ // (s)tretch
563
+ case 115:
564
+ return ~indexof(value, "stretch", 0) ? prefix(replace(value, "stretch", "fill-available"), length2, children) + value : value;
565
+ }
566
+ break;
567
+ // grid-(column|row)
568
+ case 5152:
569
+ case 5920:
570
+ return replace(value, /(.+?):(\d+)(\s*\/\s*(span)?\s*(\d+))?(.*)/, function(_2, a, b, c, d, e, f2) {
571
+ return MS + a + ":" + b + f2 + (c ? MS + a + "-span:" + (d ? e : +e - +b) + f2 : "") + value;
572
+ });
573
+ // position: sticky
574
+ case 4949:
575
+ if (charat(value, length2 + 6) === 121)
576
+ return replace(value, ":", ":" + WEBKIT) + value;
577
+ break;
578
+ // display: (flex|inline-flex|grid|inline-grid)
579
+ case 6444:
580
+ switch (charat(value, charat(value, 14) === 45 ? 18 : 11)) {
581
+ // (inline-)?fle(x)
582
+ case 120:
583
+ return replace(value, /(.+:)([^;\s!]+)(;|(\s+)?!.+)?/, "$1" + WEBKIT + (charat(value, 14) === 45 ? "inline-" : "") + "box$3$1" + WEBKIT + "$2$3$1" + MS + "$2box$3") + value;
584
+ // (inline-)?gri(d)
585
+ case 100:
586
+ return replace(value, ":", ":" + MS) + value;
587
+ }
588
+ break;
589
+ // scroll-margin, scroll-margin-(top|right|bottom|left)
590
+ case 5719:
591
+ case 2647:
592
+ case 2135:
593
+ case 3927:
594
+ case 2391:
595
+ return replace(value, "scroll-", "scroll-snap-") + value;
596
+ }
597
+ return value;
598
+ }
599
+ function serialize(children, callback) {
600
+ var output = "";
601
+ for (var i = 0; i < children.length; i++)
602
+ output += callback(children[i], i, children, callback) || "";
603
+ return output;
604
+ }
605
+ function stringify(element, index, children, callback) {
606
+ switch (element.type) {
607
+ case LAYER:
608
+ if (element.children.length) break;
609
+ case IMPORT:
610
+ case DECLARATION:
611
+ return element.return = element.return || element.value;
612
+ case COMMENT:
613
+ return "";
614
+ case KEYFRAMES:
615
+ return element.return = element.value + "{" + serialize(element.children, callback) + "}";
616
+ case RULESET:
617
+ if (!strlen(element.value = element.props.join(","))) return "";
618
+ }
619
+ return strlen(children = serialize(element.children, callback)) ? element.return = element.value + "{" + children + "}" : "";
620
+ }
621
+ function middleware(collection) {
622
+ var length2 = sizeof(collection);
623
+ return function(element, index, children, callback) {
624
+ var output = "";
625
+ for (var i = 0; i < length2; i++)
626
+ output += collection[i](element, index, children, callback) || "";
627
+ return output;
628
+ };
629
+ }
630
+ function rulesheet(callback) {
631
+ return function(element) {
632
+ if (!element.root) {
633
+ if (element = element.return)
634
+ callback(element);
635
+ }
636
+ };
637
+ }
638
+ function prefixer(element, index, children, callback) {
639
+ if (element.length > -1) {
640
+ if (!element.return)
641
+ switch (element.type) {
642
+ case DECLARATION:
643
+ element.return = prefix(element.value, element.length, children);
644
+ return;
645
+ case KEYFRAMES:
646
+ return serialize([copy(element, { value: replace(element.value, "@", "@" + WEBKIT) })], callback);
647
+ case RULESET:
648
+ if (element.length)
649
+ return combine(children = element.props, function(value) {
650
+ switch (match(value, callback = /(::plac\w+|:read-\w+)/)) {
651
+ // :read-(only|write)
652
+ case ":read-only":
653
+ case ":read-write":
654
+ lift(copy(element, { props: [replace(value, /:(read-\w+)/, ":" + MOZ + "$1")] }));
655
+ lift(copy(element, { props: [value] }));
656
+ assign(element, { props: filter(children, callback) });
657
+ break;
658
+ // :placeholder
659
+ case "::placeholder":
660
+ lift(copy(element, { props: [replace(value, /:(plac\w+)/, ":" + WEBKIT + "input-$1")] }));
661
+ lift(copy(element, { props: [replace(value, /:(plac\w+)/, ":" + MOZ + "$1")] }));
662
+ lift(copy(element, { props: [replace(value, /:(plac\w+)/, MS + "input-$1")] }));
663
+ lift(copy(element, { props: [value] }));
664
+ assign(element, { props: filter(children, callback) });
665
+ break;
666
+ }
667
+ return "";
668
+ });
669
+ }
670
+ }
671
+ }
672
+ var unitlessKeys = {
673
+ animationIterationCount: 1,
674
+ aspectRatio: 1,
675
+ borderImageOutset: 1,
676
+ borderImageSlice: 1,
677
+ borderImageWidth: 1,
678
+ boxFlex: 1,
679
+ boxFlexGroup: 1,
680
+ boxOrdinalGroup: 1,
681
+ columnCount: 1,
682
+ columns: 1,
683
+ flex: 1,
684
+ flexGrow: 1,
685
+ flexPositive: 1,
686
+ flexShrink: 1,
687
+ flexNegative: 1,
688
+ flexOrder: 1,
689
+ gridRow: 1,
690
+ gridRowEnd: 1,
691
+ gridRowSpan: 1,
692
+ gridRowStart: 1,
693
+ gridColumn: 1,
694
+ gridColumnEnd: 1,
695
+ gridColumnSpan: 1,
696
+ gridColumnStart: 1,
697
+ msGridRow: 1,
698
+ msGridRowSpan: 1,
699
+ msGridColumn: 1,
700
+ msGridColumnSpan: 1,
701
+ fontWeight: 1,
702
+ lineHeight: 1,
703
+ opacity: 1,
704
+ order: 1,
705
+ orphans: 1,
706
+ tabSize: 1,
707
+ widows: 1,
708
+ zIndex: 1,
709
+ zoom: 1,
710
+ WebkitLineClamp: 1,
711
+ // SVG-related properties
712
+ fillOpacity: 1,
713
+ floodOpacity: 1,
714
+ stopOpacity: 1,
715
+ strokeDasharray: 1,
716
+ strokeDashoffset: 1,
717
+ strokeMiterlimit: 1,
718
+ strokeOpacity: 1,
719
+ strokeWidth: 1
720
+ };
721
+ var f = "undefined" != typeof process && void 0 !== process.env && (process.env.REACT_APP_SC_ATTR || process.env.SC_ATTR) || "data-styled", m = "active", y = "data-styled-version", v = "6.1.19", g = "/*!sc*/\n", S = "undefined" != typeof window && "undefined" != typeof document, 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 : "production" !== process.env.NODE_ENV), E = /invalid hook call/i, N = /* @__PURE__ */ new Set(), P = function(t, n) {
722
+ if ("production" !== process.env.NODE_ENV) {
723
+ var o2 = n ? ' with the id of "'.concat(n, '"') : "", s = "The component ".concat(t).concat(o2, " has been created dynamically.\n") + "You may see this warning because you've called styled inside another component.\nTo resolve this only create new StyledComponents outside of any render method and function component.\nSee https://styled-components.com/docs/basics#define-styled-components-outside-of-the-render-method for more info.\n", i = console.error;
724
+ try {
725
+ var a = true;
726
+ console.error = function(t2) {
727
+ for (var n2 = [], o3 = 1; o3 < arguments.length; o3++) n2[o3 - 1] = arguments[o3];
728
+ E.test(t2) ? (a = false, N.delete(s)) : i.apply(void 0, __spreadArray([t2], n2, false));
729
+ }, useRef(), a && !N.has(s) && (console.warn(s), N.add(s));
730
+ } catch (e) {
731
+ E.test(e.message) && N.delete(s);
732
+ } finally {
733
+ console.error = i;
734
+ }
735
+ }
736
+ }, _ = Object.freeze([]), C = Object.freeze({});
737
+ function I(e, t, n) {
738
+ return void 0 === n && (n = C), e.theme !== n.theme && e.theme || t || n.theme;
739
+ }
740
+ 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"]), O = /[!"#$%&'()*+,./:;<=>?@[\\\]^`{|}~-]+/g, D = /(^-|-$)/g;
741
+ function R(e) {
742
+ return e.replace(O, "-").replace(D, "");
743
+ }
744
+ var T = /(a)(d)/gi, k = 52, j = function(e) {
745
+ return String.fromCharCode(e + (e > 25 ? 39 : 97));
746
+ };
747
+ function x(e) {
748
+ var t, n = "";
749
+ for (t = Math.abs(e); t > k; t = t / k | 0) n = j(t % k) + n;
750
+ return (j(t % k) + n).replace(T, "$1-$2");
751
+ }
752
+ var V, F = 5381, z = function(e, t) {
753
+ for (var n = t.length; n; ) e = 33 * e ^ t.charCodeAt(--n);
754
+ return e;
755
+ }, M = function(e) {
756
+ return z(F, e);
757
+ };
758
+ function $(e) {
759
+ return x(M(e) >>> 0);
760
+ }
761
+ function B(e) {
762
+ return "production" !== process.env.NODE_ENV && "string" == typeof e && e || e.displayName || e.name || "Component";
763
+ }
764
+ function G(e) {
765
+ return "string" == typeof e && ("production" === process.env.NODE_ENV || e.charAt(0) === e.charAt(0).toLowerCase());
766
+ }
767
+ var L = "function" == typeof Symbol && Symbol.for, Y = L ? Symbol.for("react.memo") : 60115, q = L ? Symbol.for("react.forward_ref") : 60112, W = { childContextTypes: true, contextType: true, contextTypes: true, defaultProps: true, displayName: true, getDefaultProps: true, getDerivedStateFromError: true, getDerivedStateFromProps: true, mixins: true, propTypes: true, type: true }, H = { name: true, length: true, prototype: true, caller: true, callee: true, arguments: true, arity: true }, U = { $$typeof: true, compare: true, defaultProps: true, displayName: true, propTypes: true, type: true }, J = ((V = {})[q] = { $$typeof: true, render: true, defaultProps: true, displayName: true, propTypes: true }, V[Y] = U, V);
768
+ function X(e) {
769
+ return ("type" in (t = e) && t.type.$$typeof) === Y ? U : "$$typeof" in e ? J[e.$$typeof] : W;
770
+ var t;
771
+ }
772
+ var Z = Object.defineProperty, K = Object.getOwnPropertyNames, Q = Object.getOwnPropertySymbols, ee = Object.getOwnPropertyDescriptor, te = Object.getPrototypeOf, ne = Object.prototype;
773
+ function oe(e, t, n) {
774
+ if ("string" != typeof t) {
775
+ if (ne) {
776
+ var o2 = te(t);
777
+ o2 && o2 !== ne && oe(e, o2, n);
778
+ }
779
+ var r = K(t);
780
+ Q && (r = r.concat(Q(t)));
781
+ for (var s = X(e), i = X(t), a = 0; a < r.length; ++a) {
782
+ var c = r[a];
783
+ if (!(c in H || n && n[c] || i && c in i || s && c in s)) {
784
+ var l = ee(t, c);
785
+ try {
786
+ Z(e, c, l);
787
+ } catch (e2) {
788
+ }
789
+ }
790
+ }
791
+ }
792
+ return e;
793
+ }
794
+ function re(e) {
795
+ return "function" == typeof e;
796
+ }
797
+ function se(e) {
798
+ return "object" == typeof e && "styledComponentId" in e;
799
+ }
800
+ function ie(e, t) {
801
+ return e && t ? "".concat(e, " ").concat(t) : e || t || "";
802
+ }
803
+ function ae(e, t) {
804
+ if (0 === e.length) return "";
805
+ for (var n = e[0], o2 = 1; o2 < e.length; o2++) n += t ? t + e[o2] : e[o2];
806
+ return n;
807
+ }
808
+ function ce(e) {
809
+ return null !== e && "object" == typeof e && e.constructor.name === Object.name && !("props" in e && e.$$typeof);
810
+ }
811
+ function le(e, t, n) {
812
+ if (void 0 === n && (n = false), !n && !ce(e) && !Array.isArray(e)) return t;
813
+ if (Array.isArray(t)) for (var o2 = 0; o2 < t.length; o2++) e[o2] = le(e[o2], t[o2]);
814
+ else if (ce(t)) for (var o2 in t) e[o2] = le(e[o2], t[o2]);
815
+ return e;
816
+ }
817
+ function ue(e, t) {
818
+ Object.defineProperty(e, "toString", { value: t });
819
+ }
820
+ var pe = "production" !== process.env.NODE_ENV ? { 1: "Cannot create styled-component for component: %s.\n\n", 2: "Can't collect styles once you've consumed a `ServerStyleSheet`'s styles! `ServerStyleSheet` is a one off instance for each server-side render cycle.\n\n- Are you trying to reuse it across renders?\n- Are you accidentally calling collectStyles twice?\n\n", 3: "Streaming SSR is only supported in a Node.js environment; Please do not try to call this method in the browser.\n\n", 4: "The `StyleSheetManager` expects a valid target or sheet prop!\n\n- Does this error occur on the client and is your target falsy?\n- Does this error occur on the server and is the sheet falsy?\n\n", 5: "The clone method cannot be used on the client!\n\n- Are you running in a client-like environment on the server?\n- Are you trying to run SSR on the client?\n\n", 6: "Trying to insert a new style tag, but the given Node is unmounted!\n\n- Are you using a custom target that isn't mounted?\n- Does your document not have a valid head element?\n- Have you accidentally removed a style tag manually?\n\n", 7: 'ThemeProvider: Please return an object from your "theme" prop function, e.g.\n\n```js\ntheme={() => ({})}\n```\n\n', 8: 'ThemeProvider: Please make your "theme" prop an object.\n\n', 9: "Missing document `<head>`\n\n", 10: "Cannot find a StyleSheet instance. Usually this happens if there are multiple copies of styled-components loaded at once. Check out this issue for how to troubleshoot and fix the common cases where this situation can happen: https://github.com/styled-components/styled-components/issues/1941#issuecomment-417862021\n\n", 11: "_This error was replaced with a dev-time warning, it will be deleted for v4 final._ [createGlobalStyle] received children which will not be rendered. Please use the component without passing children elements.\n\n", 12: "It seems you are interpolating a keyframe declaration (%s) into an untagged string. This was supported in styled-components v3, but is not longer supported in v4 as keyframes are now injected on-demand. Please wrap your string in the css\\`\\` helper which ensures the styles are injected correctly. See https://www.styled-components.com/docs/api#css\n\n", 13: "%s is not a styled component and cannot be referred to via component selector. See https://www.styled-components.com/docs/advanced#referring-to-other-components for more details.\n\n", 14: 'ThemeProvider: "theme" prop is required.\n\n', 15: "A stylis plugin has been supplied that is not named. We need a name for each plugin to be able to prevent styling collisions between different stylis configurations within the same app. Before you pass your plugin to `<StyleSheetManager stylisPlugins={[]}>`, please make sure each plugin is uniquely-named, e.g.\n\n```js\nObject.defineProperty(importedPlugin, 'name', { value: 'some-unique-name' });\n```\n\n", 16: "Reached the limit of how many styled components may be created at group %s.\nYou may only create up to 1,073,741,824 components. If you're creating components dynamically,\nas for instance in your render method then you may be running into this limitation.\n\n", 17: "CSSStyleSheet could not be found on HTMLStyleElement.\nHas styled-components' style tag been unmounted or altered by another script?\n", 18: "ThemeProvider: Please make sure your useTheme hook is within a `<ThemeProvider>`" } : {};
821
+ function de() {
822
+ for (var e = [], t = 0; t < arguments.length; t++) e[t] = arguments[t];
823
+ for (var n = e[0], o2 = [], r = 1, s = e.length; r < s; r += 1) o2.push(e[r]);
824
+ return o2.forEach(function(e2) {
825
+ n = n.replace(/%[a-z]/, e2);
826
+ }), n;
827
+ }
828
+ function he(t) {
829
+ for (var n = [], o2 = 1; o2 < arguments.length; o2++) n[o2 - 1] = arguments[o2];
830
+ return "production" === process.env.NODE_ENV ? new Error("An error occurred. See https://github.com/styled-components/styled-components/blob/main/packages/styled-components/src/utils/errors.md#".concat(t, " for more information.").concat(n.length > 0 ? " Args: ".concat(n.join(", ")) : "")) : new Error(de.apply(void 0, __spreadArray([pe[t]], n, false)).trim());
831
+ }
832
+ var fe = (function() {
833
+ function e(e2) {
834
+ this.groupSizes = new Uint32Array(512), this.length = 512, this.tag = e2;
835
+ }
836
+ return e.prototype.indexOfGroup = function(e2) {
837
+ for (var t = 0, n = 0; n < e2; n++) t += this.groupSizes[n];
838
+ return t;
839
+ }, e.prototype.insertRules = function(e2, t) {
840
+ if (e2 >= this.groupSizes.length) {
841
+ for (var n = this.groupSizes, o2 = n.length, r = o2; e2 >= r; ) if ((r <<= 1) < 0) throw he(16, "".concat(e2));
842
+ this.groupSizes = new Uint32Array(r), this.groupSizes.set(n), this.length = r;
843
+ for (var s = o2; s < r; s++) this.groupSizes[s] = 0;
844
+ }
845
+ for (var i = this.indexOfGroup(e2 + 1), a = (s = 0, t.length); s < a; s++) this.tag.insertRule(i, t[s]) && (this.groupSizes[e2]++, i++);
846
+ }, e.prototype.clearGroup = function(e2) {
847
+ if (e2 < this.length) {
848
+ var t = this.groupSizes[e2], n = this.indexOfGroup(e2), o2 = n + t;
849
+ this.groupSizes[e2] = 0;
850
+ for (var r = n; r < o2; r++) this.tag.deleteRule(n);
851
+ }
852
+ }, e.prototype.getGroup = function(e2) {
853
+ var t = "";
854
+ if (e2 >= this.length || 0 === this.groupSizes[e2]) return t;
855
+ for (var n = this.groupSizes[e2], o2 = this.indexOfGroup(e2), r = o2 + n, s = o2; s < r; s++) t += "".concat(this.tag.getRule(s)).concat(g);
856
+ return t;
857
+ }, e;
858
+ })(), me = 1 << 30, ye = /* @__PURE__ */ new Map(), ve = /* @__PURE__ */ new Map(), ge = 1, Se = function(e) {
859
+ if (ye.has(e)) return ye.get(e);
860
+ for (; ve.has(ge); ) ge++;
861
+ var t = ge++;
862
+ if ("production" !== process.env.NODE_ENV && ((0 | t) < 0 || t > me)) throw he(16, "".concat(t));
863
+ return ye.set(e, t), ve.set(t, e), t;
864
+ }, we = function(e, t) {
865
+ ge = t + 1, ye.set(e, t), ve.set(t, e);
866
+ }, be = "style[".concat(f, "][").concat(y, '="').concat(v, '"]'), Ee = new RegExp("^".concat(f, '\\.g(\\d+)\\[id="([\\w\\d-]+)"\\].*?"([^"]*)')), Ne = function(e, t, n) {
867
+ for (var o2, r = n.split(","), s = 0, i = r.length; s < i; s++) (o2 = r[s]) && e.registerName(t, o2);
868
+ }, Pe = function(e, t) {
869
+ for (var n, o2 = (null !== (n = t.textContent) && void 0 !== n ? n : "").split(g), r = [], s = 0, i = o2.length; s < i; s++) {
870
+ var a = o2[s].trim();
871
+ if (a) {
872
+ var c = a.match(Ee);
873
+ if (c) {
874
+ var l = 0 | parseInt(c[1], 10), u = c[2];
875
+ 0 !== l && (we(u, l), Ne(e, u, c[3]), e.getTag().insertRules(l, r)), r.length = 0;
876
+ } else r.push(a);
877
+ }
878
+ }
879
+ }, _e = function(e) {
880
+ for (var t = document.querySelectorAll(be), n = 0, o2 = t.length; n < o2; n++) {
881
+ var r = t[n];
882
+ r && r.getAttribute(f) !== m && (Pe(e, r), r.parentNode && r.parentNode.removeChild(r));
883
+ }
884
+ };
885
+ function Ce() {
886
+ return "undefined" != typeof __webpack_nonce__ ? __webpack_nonce__ : null;
887
+ }
888
+ var Ie = function(e) {
889
+ var t = document.head, n = e || t, o2 = document.createElement("style"), r = (function(e2) {
890
+ var t2 = Array.from(e2.querySelectorAll("style[".concat(f, "]")));
891
+ return t2[t2.length - 1];
892
+ })(n), s = void 0 !== r ? r.nextSibling : null;
893
+ o2.setAttribute(f, m), o2.setAttribute(y, v);
894
+ var i = Ce();
895
+ return i && o2.setAttribute("nonce", i), n.insertBefore(o2, s), o2;
896
+ }, Ae = (function() {
897
+ function e(e2) {
898
+ this.element = Ie(e2), this.element.appendChild(document.createTextNode("")), this.sheet = (function(e3) {
899
+ if (e3.sheet) return e3.sheet;
900
+ for (var t = document.styleSheets, n = 0, o2 = t.length; n < o2; n++) {
901
+ var r = t[n];
902
+ if (r.ownerNode === e3) return r;
903
+ }
904
+ throw he(17);
905
+ })(this.element), this.length = 0;
906
+ }
907
+ return e.prototype.insertRule = function(e2, t) {
908
+ try {
909
+ return this.sheet.insertRule(t, e2), this.length++, true;
910
+ } catch (e3) {
911
+ return false;
912
+ }
913
+ }, e.prototype.deleteRule = function(e2) {
914
+ this.sheet.deleteRule(e2), this.length--;
915
+ }, e.prototype.getRule = function(e2) {
916
+ var t = this.sheet.cssRules[e2];
917
+ return t && t.cssText ? t.cssText : "";
918
+ }, e;
919
+ })(), Oe = (function() {
920
+ function e(e2) {
921
+ this.element = Ie(e2), this.nodes = this.element.childNodes, this.length = 0;
922
+ }
923
+ return e.prototype.insertRule = function(e2, t) {
924
+ if (e2 <= this.length && e2 >= 0) {
925
+ var n = document.createTextNode(t);
926
+ return this.element.insertBefore(n, this.nodes[e2] || null), this.length++, true;
927
+ }
928
+ return false;
929
+ }, e.prototype.deleteRule = function(e2) {
930
+ this.element.removeChild(this.nodes[e2]), this.length--;
931
+ }, e.prototype.getRule = function(e2) {
932
+ return e2 < this.length ? this.nodes[e2].textContent : "";
933
+ }, e;
934
+ })(), De = (function() {
935
+ function e(e2) {
936
+ this.rules = [], this.length = 0;
937
+ }
938
+ return e.prototype.insertRule = function(e2, t) {
939
+ return e2 <= this.length && (this.rules.splice(e2, 0, t), this.length++, true);
940
+ }, e.prototype.deleteRule = function(e2) {
941
+ this.rules.splice(e2, 1), this.length--;
942
+ }, e.prototype.getRule = function(e2) {
943
+ return e2 < this.length ? this.rules[e2] : "";
944
+ }, e;
945
+ })(), Re = S, Te = { isServer: !S, useCSSOMInjection: !w }, ke = (function() {
946
+ function e(e2, n, o2) {
947
+ void 0 === e2 && (e2 = C), void 0 === n && (n = {});
948
+ var r = this;
949
+ this.options = __assign(__assign({}, Te), e2), this.gs = n, this.names = new Map(o2), this.server = !!e2.isServer, !this.server && S && Re && (Re = false, _e(this)), ue(this, function() {
950
+ return (function(e3) {
951
+ for (var t = e3.getTag(), n2 = t.length, o3 = "", r2 = function(n3) {
952
+ var r3 = (function(e4) {
953
+ return ve.get(e4);
954
+ })(n3);
955
+ if (void 0 === r3) return "continue";
956
+ var s2 = e3.names.get(r3), i = t.getGroup(n3);
957
+ if (void 0 === s2 || !s2.size || 0 === i.length) return "continue";
958
+ var a = "".concat(f, ".g").concat(n3, '[id="').concat(r3, '"]'), c = "";
959
+ void 0 !== s2 && s2.forEach(function(e4) {
960
+ e4.length > 0 && (c += "".concat(e4, ","));
961
+ }), o3 += "".concat(i).concat(a, '{content:"').concat(c, '"}').concat(g);
962
+ }, s = 0; s < n2; s++) r2(s);
963
+ return o3;
964
+ })(r);
965
+ });
966
+ }
967
+ return e.registerId = function(e2) {
968
+ return Se(e2);
969
+ }, e.prototype.rehydrate = function() {
970
+ !this.server && S && _e(this);
971
+ }, e.prototype.reconstructWithOptions = function(n, o2) {
972
+ return void 0 === o2 && (o2 = true), new e(__assign(__assign({}, this.options), n), this.gs, o2 && this.names || void 0);
973
+ }, e.prototype.allocateGSInstance = function(e2) {
974
+ return this.gs[e2] = (this.gs[e2] || 0) + 1;
975
+ }, e.prototype.getTag = function() {
976
+ return this.tag || (this.tag = (e2 = (function(e3) {
977
+ var t = e3.useCSSOMInjection, n = e3.target;
978
+ return e3.isServer ? new De(n) : t ? new Ae(n) : new Oe(n);
979
+ })(this.options), new fe(e2)));
980
+ var e2;
981
+ }, e.prototype.hasNameForId = function(e2, t) {
982
+ return this.names.has(e2) && this.names.get(e2).has(t);
983
+ }, e.prototype.registerName = function(e2, t) {
984
+ if (Se(e2), this.names.has(e2)) this.names.get(e2).add(t);
985
+ else {
986
+ var n = /* @__PURE__ */ new Set();
987
+ n.add(t), this.names.set(e2, n);
988
+ }
989
+ }, e.prototype.insertRules = function(e2, t, n) {
990
+ this.registerName(e2, t), this.getTag().insertRules(Se(e2), n);
991
+ }, e.prototype.clearNames = function(e2) {
992
+ this.names.has(e2) && this.names.get(e2).clear();
993
+ }, e.prototype.clearRules = function(e2) {
994
+ this.getTag().clearGroup(Se(e2)), this.clearNames(e2);
995
+ }, e.prototype.clearTag = function() {
996
+ this.tag = void 0;
997
+ }, e;
998
+ })(), je = /&/g, xe = /^\s*\/\/.*$/gm;
999
+ function Ve(e, t) {
1000
+ return e.map(function(e2) {
1001
+ 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) {
1002
+ return "".concat(t, " ").concat(e3);
1003
+ })), Array.isArray(e2.children) && "@keyframes" !== e2.type && (e2.children = Ve(e2.children, t)), e2;
1004
+ });
1005
+ }
1006
+ function Fe(e) {
1007
+ var t, n, o2, r = void 0 === e ? C : e, s = r.options, i = void 0 === s ? C : s, a = r.plugins, c = void 0 === a ? _ : a, l = function(e2, o3, r2) {
1008
+ return r2.startsWith(n) && r2.endsWith(n) && r2.replaceAll(n, "").length > 0 ? ".".concat(t) : e2;
1009
+ }, u = c.slice();
1010
+ u.push(function(e2) {
1011
+ e2.type === RULESET && e2.value.includes("&") && (e2.props[0] = e2.props[0].replace(je, n).replace(o2, l));
1012
+ }), i.prefix && u.push(prefixer), u.push(stringify);
1013
+ var p2 = function(e2, r2, s2, a2) {
1014
+ void 0 === r2 && (r2 = ""), void 0 === s2 && (s2 = ""), void 0 === a2 && (a2 = "&"), t = a2, n = r2, o2 = new RegExp("\\".concat(n, "\\b"), "g");
1015
+ var c2 = e2.replace(xe, ""), l2 = compile(s2 || r2 ? "".concat(s2, " ").concat(r2, " { ").concat(c2, " }") : c2);
1016
+ i.namespace && (l2 = Ve(l2, i.namespace));
1017
+ var p3 = [];
1018
+ return serialize(l2, middleware(u.concat(rulesheet(function(e3) {
1019
+ return p3.push(e3);
1020
+ })))), p3;
1021
+ };
1022
+ return p2.hash = c.length ? c.reduce(function(e2, t2) {
1023
+ return t2.name || he(15), z(e2, t2.name);
1024
+ }, F).toString() : "", p2;
1025
+ }
1026
+ var ze = new ke(), Me = Fe(), $e = o.createContext({ shouldForwardProp: void 0, styleSheet: ze, stylis: Me });
1027
+ $e.Consumer;
1028
+ var Ge = o.createContext(void 0);
1029
+ function Le() {
1030
+ return useContext($e);
1031
+ }
1032
+ function Ye(e) {
1033
+ var t = useState(e.stylisPlugins), n = t[0], r = t[1], c = Le().styleSheet, l = useMemo(function() {
1034
+ var t2 = c;
1035
+ return e.sheet ? t2 = e.sheet : e.target && (t2 = t2.reconstructWithOptions({ target: e.target }, false)), e.disableCSSOMInjection && (t2 = t2.reconstructWithOptions({ useCSSOMInjection: false })), t2;
1036
+ }, [e.disableCSSOMInjection, e.sheet, e.target, c]), u = useMemo(function() {
1037
+ return Fe({ options: { namespace: e.namespace, prefix: e.enableVendorPrefixes }, plugins: n });
1038
+ }, [e.enableVendorPrefixes, e.namespace, n]);
1039
+ useEffect(function() {
1040
+ p(n, e.stylisPlugins) || r(e.stylisPlugins);
1041
+ }, [e.stylisPlugins]);
1042
+ var d = useMemo(function() {
1043
+ return { shouldForwardProp: e.shouldForwardProp, styleSheet: l, stylis: u };
1044
+ }, [e.shouldForwardProp, l, u]);
1045
+ return o.createElement($e.Provider, { value: d }, o.createElement(Ge.Provider, { value: u }, e.children));
1046
+ }
1047
+ var qe = (function() {
1048
+ function e(e2, t) {
1049
+ var n = this;
1050
+ this.inject = function(e3, t2) {
1051
+ void 0 === t2 && (t2 = Me);
1052
+ var o2 = n.name + t2.hash;
1053
+ e3.hasNameForId(n.id, o2) || e3.insertRules(n.id, o2, t2(n.rules, o2, "@keyframes"));
1054
+ }, this.name = e2, this.id = "sc-keyframes-".concat(e2), this.rules = t, ue(this, function() {
1055
+ throw he(12, String(n.name));
1056
+ });
1057
+ }
1058
+ return e.prototype.getName = function(e2) {
1059
+ return void 0 === e2 && (e2 = Me), this.name + e2.hash;
1060
+ }, e;
1061
+ })(), We = function(e) {
1062
+ return e >= "A" && e <= "Z";
1063
+ };
1064
+ function He(e) {
1065
+ for (var t = "", n = 0; n < e.length; n++) {
1066
+ var o2 = e[n];
1067
+ if (1 === n && "-" === o2 && "-" === e[0]) return e;
1068
+ We(o2) ? t += "-" + o2.toLowerCase() : t += o2;
1069
+ }
1070
+ return t.startsWith("ms-") ? "-" + t : t;
1071
+ }
1072
+ var Ue = function(e) {
1073
+ return null == e || false === e || "" === e;
1074
+ }, Je = function(t) {
1075
+ var n, o2, r = [];
1076
+ for (var s in t) {
1077
+ var i = t[s];
1078
+ t.hasOwnProperty(s) && !Ue(i) && (Array.isArray(i) && i.isCss || re(i) ? r.push("".concat(He(s), ":"), i, ";") : ce(i) ? r.push.apply(r, __spreadArray(__spreadArray(["".concat(s, " {")], Je(i), false), ["}"], false)) : r.push("".concat(He(s), ": ").concat((n = s, null == (o2 = i) || "boolean" == typeof o2 || "" === o2 ? "" : "number" != typeof o2 || 0 === o2 || n in unitlessKeys || n.startsWith("--") ? String(o2).trim() : "".concat(o2, "px")), ";")));
1079
+ }
1080
+ return r;
1081
+ };
1082
+ function Xe(e, t, n, o2) {
1083
+ if (Ue(e)) return [];
1084
+ if (se(e)) return [".".concat(e.styledComponentId)];
1085
+ if (re(e)) {
1086
+ if (!re(s = e) || s.prototype && s.prototype.isReactComponent || !t) return [e];
1087
+ var r = e(t);
1088
+ return "production" === process.env.NODE_ENV || "object" != typeof r || Array.isArray(r) || r instanceof qe || ce(r) || null === r || 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.")), Xe(r, t, n, o2);
1089
+ }
1090
+ var s;
1091
+ return e instanceof qe ? n ? (e.inject(n, o2), [e.getName(o2)]) : [e] : ce(e) ? Je(e) : Array.isArray(e) ? Array.prototype.concat.apply(_, e.map(function(e2) {
1092
+ return Xe(e2, t, n, o2);
1093
+ })) : [e.toString()];
1094
+ }
1095
+ function Ze(e) {
1096
+ for (var t = 0; t < e.length; t += 1) {
1097
+ var n = e[t];
1098
+ if (re(n) && !se(n)) return false;
1099
+ }
1100
+ return true;
1101
+ }
1102
+ var Ke = M(v), Qe = (function() {
1103
+ function e(e2, t, n) {
1104
+ this.rules = e2, this.staticRulesId = "", this.isStatic = "production" === process.env.NODE_ENV && (void 0 === n || n.isStatic) && Ze(e2), this.componentId = t, this.baseHash = z(Ke, t), this.baseStyle = n, ke.registerId(t);
1105
+ }
1106
+ return e.prototype.generateAndInjectStyles = function(e2, t, n) {
1107
+ var o2 = this.baseStyle ? this.baseStyle.generateAndInjectStyles(e2, t, n) : "";
1108
+ if (this.isStatic && !n.hash) if (this.staticRulesId && t.hasNameForId(this.componentId, this.staticRulesId)) o2 = ie(o2, this.staticRulesId);
1109
+ else {
1110
+ var r = ae(Xe(this.rules, e2, t, n)), s = x(z(this.baseHash, r) >>> 0);
1111
+ if (!t.hasNameForId(this.componentId, s)) {
1112
+ var i = n(r, ".".concat(s), void 0, this.componentId);
1113
+ t.insertRules(this.componentId, s, i);
1114
+ }
1115
+ o2 = ie(o2, s), this.staticRulesId = s;
1116
+ }
1117
+ else {
1118
+ for (var a = z(this.baseHash, n.hash), c = "", l = 0; l < this.rules.length; l++) {
1119
+ var u = this.rules[l];
1120
+ if ("string" == typeof u) c += u, "production" !== process.env.NODE_ENV && (a = z(a, u));
1121
+ else if (u) {
1122
+ var p2 = ae(Xe(u, e2, t, n));
1123
+ a = z(a, p2 + l), c += p2;
1124
+ }
1125
+ }
1126
+ if (c) {
1127
+ var d = x(a >>> 0);
1128
+ t.hasNameForId(this.componentId, d) || t.insertRules(this.componentId, d, n(c, ".".concat(d), void 0, this.componentId)), o2 = ie(o2, d);
1129
+ }
1130
+ }
1131
+ return o2;
1132
+ }, e;
1133
+ })(), et = o.createContext(void 0);
1134
+ et.Consumer;
1135
+ var rt = {}, st = /* @__PURE__ */ new Set();
1136
+ function it(e, r, s) {
1137
+ var i = se(e), a = e, c = !G(e), p2 = r.attrs, d = void 0 === p2 ? _ : p2, h = r.componentId, f2 = void 0 === h ? (function(e2, t) {
1138
+ var n = "string" != typeof e2 ? "sc" : R(e2);
1139
+ rt[n] = (rt[n] || 0) + 1;
1140
+ var o2 = "".concat(n, "-").concat($(v + n + rt[n]));
1141
+ return t ? "".concat(t, "-").concat(o2) : o2;
1142
+ })(r.displayName, r.parentComponentId) : h, m2 = r.displayName, y2 = void 0 === m2 ? (function(e2) {
1143
+ return G(e2) ? "styled.".concat(e2) : "Styled(".concat(B(e2), ")");
1144
+ })(e) : m2, g2 = r.displayName && r.componentId ? "".concat(R(r.displayName), "-").concat(r.componentId) : r.componentId || f2, S2 = i && a.attrs ? a.attrs.concat(d).filter(Boolean) : d, w2 = r.shouldForwardProp;
1145
+ if (i && a.shouldForwardProp) {
1146
+ var b = a.shouldForwardProp;
1147
+ if (r.shouldForwardProp) {
1148
+ var E2 = r.shouldForwardProp;
1149
+ w2 = function(e2, t) {
1150
+ return b(e2, t) && E2(e2, t);
1151
+ };
1152
+ } else w2 = b;
1153
+ }
1154
+ var N2 = new Qe(s, g2, i ? a.componentStyle : void 0);
1155
+ function O2(e2, r2) {
1156
+ return (function(e3, r3, s2) {
1157
+ var i2 = e3.attrs, a2 = e3.componentStyle, c2 = e3.defaultProps, p3 = e3.foldedComponentIds, d2 = e3.styledComponentId, h2 = e3.target, f3 = o.useContext(et), m3 = Le(), y3 = e3.shouldForwardProp || m3.shouldForwardProp;
1158
+ "production" !== process.env.NODE_ENV && useDebugValue(d2);
1159
+ var v2 = I(r3, f3, c2) || C, g3 = (function(e4, n, o2) {
1160
+ for (var r4, s3 = __assign(__assign({}, n), { className: void 0, theme: o2 }), i3 = 0; i3 < e4.length; i3 += 1) {
1161
+ var a3 = re(r4 = e4[i3]) ? r4(s3) : r4;
1162
+ for (var c3 in a3) s3[c3] = "className" === c3 ? ie(s3[c3], a3[c3]) : "style" === c3 ? __assign(__assign({}, s3[c3]), a3[c3]) : a3[c3];
1163
+ }
1164
+ return n.className && (s3.className = ie(s3.className, n.className)), s3;
1165
+ })(i2, r3, v2), S3 = g3.as || h2, w3 = {};
1166
+ for (var b2 in g3) void 0 === g3[b2] || "$" === b2[0] || "as" === b2 || "theme" === b2 && g3.theme === v2 || ("forwardedAs" === b2 ? w3.as = g3.forwardedAs : y3 && !y3(b2, S3) || (w3[b2] = g3[b2], y3 || "development" !== process.env.NODE_ENV || isPropValid(b2) || st.has(b2) || !A.has(S3) || (st.add(b2), console.warn('styled-components: it looks like an unknown prop "'.concat(b2, '" 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.)')))));
1167
+ var E3 = (function(e4, t) {
1168
+ var n = Le(), o2 = e4.generateAndInjectStyles(t, n.styleSheet, n.stylis);
1169
+ return "production" !== process.env.NODE_ENV && useDebugValue(o2), o2;
1170
+ })(a2, g3);
1171
+ "production" !== process.env.NODE_ENV && e3.warnTooManyClasses && e3.warnTooManyClasses(E3);
1172
+ var N3 = ie(p3, d2);
1173
+ return E3 && (N3 += " " + E3), g3.className && (N3 += " " + g3.className), w3[G(S3) && !A.has(S3) ? "class" : "className"] = N3, s2 && (w3.ref = s2), createElement(S3, w3);
1174
+ })(D2, e2, r2);
1175
+ }
1176
+ O2.displayName = y2;
1177
+ var D2 = o.forwardRef(O2);
1178
+ return D2.attrs = S2, D2.componentStyle = N2, D2.displayName = y2, D2.shouldForwardProp = w2, D2.foldedComponentIds = i ? ie(a.foldedComponentIds, a.styledComponentId) : "", D2.styledComponentId = g2, D2.target = i ? a.target : e, Object.defineProperty(D2, "defaultProps", { get: function() {
1179
+ return this._foldedDefaultProps;
1180
+ }, set: function(e2) {
1181
+ this._foldedDefaultProps = i ? (function(e3) {
1182
+ for (var t = [], n = 1; n < arguments.length; n++) t[n - 1] = arguments[n];
1183
+ for (var o2 = 0, r2 = t; o2 < r2.length; o2++) le(e3, r2[o2], true);
1184
+ return e3;
1185
+ })({}, a.defaultProps, e2) : e2;
1186
+ } }), "production" !== process.env.NODE_ENV && (P(y2, g2), D2.warnTooManyClasses = /* @__PURE__ */ (function(e2, t) {
1187
+ var n = {}, o2 = false;
1188
+ return function(r2) {
1189
+ if (!o2 && (n[r2] = true, Object.keys(n).length >= 200)) {
1190
+ var s2 = t ? ' with the id of "'.concat(t, '"') : "";
1191
+ console.warn("Over ".concat(200, " classes were generated for component ").concat(e2).concat(s2, ".\n") + "Consider using the attrs method, together with a style object for frequently changed styles.\nExample:\n const Component = styled.div.attrs(props => ({\n style: {\n background: props.background,\n },\n }))`width: 100%;`\n\n <Component />"), o2 = true, n = {};
1192
+ }
1193
+ };
1194
+ })(y2, g2)), ue(D2, function() {
1195
+ return ".".concat(D2.styledComponentId);
1196
+ }), c && oe(D2, e, { attrs: true, componentStyle: true, displayName: true, foldedComponentIds: true, shouldForwardProp: true, styledComponentId: true, target: true }), D2;
1197
+ }
1198
+ function at(e, t) {
1199
+ for (var n = [e[0]], o2 = 0, r = t.length; o2 < r; o2 += 1) n.push(t[o2], e[o2 + 1]);
1200
+ return n;
1201
+ }
1202
+ var ct = function(e) {
1203
+ return Object.assign(e, { isCss: true });
1204
+ };
1205
+ function lt(t) {
1206
+ for (var n = [], o2 = 1; o2 < arguments.length; o2++) n[o2 - 1] = arguments[o2];
1207
+ if (re(t) || ce(t)) return ct(Xe(at(_, __spreadArray([t], n, true))));
1208
+ var r = t;
1209
+ return 0 === n.length && 1 === r.length && "string" == typeof r[0] ? Xe(r) : ct(Xe(at(r, n)));
1210
+ }
1211
+ function ut(n, o2, r) {
1212
+ if (void 0 === r && (r = C), !o2) throw he(1, o2);
1213
+ var s = function(t) {
1214
+ for (var s2 = [], i = 1; i < arguments.length; i++) s2[i - 1] = arguments[i];
1215
+ return n(o2, r, lt.apply(void 0, __spreadArray([t], s2, false)));
1216
+ };
1217
+ return s.attrs = function(e) {
1218
+ return ut(n, o2, __assign(__assign({}, r), { attrs: Array.prototype.concat(r.attrs, e).filter(Boolean) }));
1219
+ }, s.withConfig = function(e) {
1220
+ return ut(n, o2, __assign(__assign({}, r), e));
1221
+ }, s;
1222
+ }
1223
+ var pt = function(e) {
1224
+ return ut(it, e);
1225
+ }, dt = pt;
1226
+ A.forEach(function(e) {
1227
+ dt[e] = pt(e);
1228
+ });
1229
+ var vt = /^\s*<\/[a-z]/i, gt = (function() {
1230
+ function e() {
1231
+ var e2 = this;
1232
+ this._emitSheetCSS = function() {
1233
+ var t = e2.instance.toString();
1234
+ if (!t) return "";
1235
+ var n = Ce(), o2 = ae([n && 'nonce="'.concat(n, '"'), "".concat(f, '="true"'), "".concat(y, '="').concat(v, '"')].filter(Boolean), " ");
1236
+ return "<style ".concat(o2, ">").concat(t, "</style>");
1237
+ }, this.getStyleTags = function() {
1238
+ if (e2.sealed) throw he(2);
1239
+ return e2._emitSheetCSS();
1240
+ }, this.getStyleElement = function() {
1241
+ var n;
1242
+ if (e2.sealed) throw he(2);
1243
+ var r = e2.instance.toString();
1244
+ if (!r) return [];
1245
+ var s = ((n = {})[f] = "", n[y] = v, n.dangerouslySetInnerHTML = { __html: r }, n), i = Ce();
1246
+ return i && (s.nonce = i), [o.createElement("style", __assign({}, s, { key: "sc-0-0" }))];
1247
+ }, this.seal = function() {
1248
+ e2.sealed = true;
1249
+ }, this.instance = new ke({ isServer: true }), this.sealed = false;
1250
+ }
1251
+ return e.prototype.collectStyles = function(e2) {
1252
+ if (this.sealed) throw he(2);
1253
+ return o.createElement(Ye, { sheet: this.instance }, e2);
1254
+ }, e.prototype.interleaveWithNodeStream = function(e2) {
1255
+ if (S) throw he(3);
1256
+ if (this.sealed) throw he(2);
1257
+ this.seal();
1258
+ var t = require("stream").Transform, n = e2, o2 = this.instance, r = this._emitSheetCSS, s = new t({ transform: function(e3, t2, n2) {
1259
+ var s2 = e3.toString(), i = r();
1260
+ if (o2.clearTag(), vt.test(s2)) {
1261
+ var a = s2.indexOf(">") + 1, c = s2.slice(0, a), l = s2.slice(a);
1262
+ this.push(c + i + l);
1263
+ } else this.push(i + s2);
1264
+ n2();
1265
+ } });
1266
+ return n.on("error", function(e3) {
1267
+ s.emit("error", e3);
1268
+ }), n.pipe(s);
1269
+ }, e;
1270
+ })();
1271
+ "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");
1272
+ var wt = "__sc-".concat(f, "__");
1273
+ "production" !== process.env.NODE_ENV && "test" !== process.env.NODE_ENV && "undefined" != typeof window && (window[wt] || (window[wt] = 0), 1 === window[wt] && 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[wt] += 1);
1274
+ const Section = dt.div`
1275
+ max-width: 700px;
1276
+ margin: 0 auto 18px;
1277
+
1278
+ h2 {
1279
+ margin: 0;
1280
+ padding: 0;
1281
+ margin-bottom: 3px;
1282
+ font-weight: 600;
1283
+ }
1284
+
1285
+ hr {
1286
+ margin: 0;
1287
+ padding: 0;
1288
+ margin-top: 7px;
1289
+ margin-bottom: 3px;
1290
+ }
1291
+ `;
1292
+ const Container$2 = dt.div`
1293
+ margin: 0 8px;
1294
+ `;
1295
+ const SectionComponent = ({ children, title }) => {
1296
+ return /* @__PURE__ */ jsxs(Section, { children: [
1297
+ title && /* @__PURE__ */ jsxs(Fragment, { children: [
1298
+ /* @__PURE__ */ jsx("h2", { children: title }),
1299
+ /* @__PURE__ */ jsx("hr", {})
1300
+ ] }),
1301
+ /* @__PURE__ */ jsx(Container$2, { children })
1302
+ ] });
1303
+ };
1304
+ const ListContainer = dt.ul`
1305
+ padding-left: 20px;
1306
+ line-height: 16px;
1307
+ li::before {
1308
+ content: '•';
1309
+ display: inline-block;
1310
+ width: 1em;
1311
+ margin-left: -1em;
1312
+ line-height: 10px;
1313
+ }
1314
+ `;
1315
+ const List$1 = ({ items }) => {
1316
+ if (!items) {
1317
+ return null;
1318
+ }
1319
+ return /* @__PURE__ */ jsx(ListContainer, { children: items.map((item, index) => {
1320
+ const htmlContent = marked.parseInline(item, { breaks: true });
1321
+ return /* @__PURE__ */ jsx("li", { dangerouslySetInnerHTML: { __html: htmlContent } }, index);
1322
+ }) });
1323
+ };
1324
+ const Text = dt.div`
1325
+ font-style: italic;
1326
+ font-size: 1.4rem;
1327
+ `;
1328
+ const DateComponent = ({ date }) => {
1329
+ if (!date) {
1330
+ return /* @__PURE__ */ jsx(Text, { children: "Present" });
1331
+ }
1332
+ const fullDate = new Date(date);
1333
+ const options = { year: "numeric", month: "long" };
1334
+ const formattedDate = fullDate.toLocaleDateString("en-US", options);
1335
+ return /* @__PURE__ */ jsx(Text, { children: formattedDate ?? "Present" });
1336
+ };
1337
+ const Range = dt.div`
1338
+ display: flex;
1339
+ font-style: italic;
1340
+ font-size: 13px;
1341
+ `;
1342
+ const DateRange = ({ startDate, endDate }) => {
1343
+ return /* @__PURE__ */ jsxs(Range, { children: [
1344
+ /* @__PURE__ */ jsx(DateComponent, { date: startDate }),
1345
+ " — ",
1346
+ /* @__PURE__ */ jsx(DateComponent, { date: endDate })
1347
+ ] });
1348
+ };
1349
+ const Meta = dt.div`
1350
+ display: flex;
1351
+ justify-content: space-between;
1352
+ margin-bottom: 2px;
1353
+ `;
1354
+ const Title$1 = dt.div`
1355
+ font-weight: 600;
1356
+ font-size: 1.45rem;
1357
+ margin-bottom: 3px;
1358
+ `;
1359
+ const SubTitle = dt.div`
1360
+ font-style: italic;
1361
+ font-size: 1.4rem;
1362
+ margin-bottom: 3px;
1363
+ `;
1364
+ const Container$1 = dt.div`
1365
+ margin-bottom: 10px;
1366
+ `;
1367
+ const Summary$1 = dt.div`
1368
+ margin-bottom: 5px;
1369
+ `;
1370
+ const Experience = ({
1371
+ title,
1372
+ date,
1373
+ startDate,
1374
+ endDate,
1375
+ subTitle,
1376
+ summary,
1377
+ highlights
1378
+ }) => {
1379
+ const htmlSummary = summary ? marked.parse(summary, { breaks: true }) : "";
1380
+ return /* @__PURE__ */ jsxs(Container$1, { children: [
1381
+ /* @__PURE__ */ jsxs(Meta, { children: [
1382
+ /* @__PURE__ */ jsx(Title$1, { children: title }),
1383
+ /* @__PURE__ */ jsx("div", { className: "secondary", children: date ? /* @__PURE__ */ jsx(DateComponent, { date }) : /* @__PURE__ */ jsx(DateRange, { startDate, endDate }) })
1384
+ ] }),
1385
+ subTitle && /* @__PURE__ */ jsx(SubTitle, { children: subTitle }),
1386
+ /* @__PURE__ */ jsxs("div", { className: "secondary", children: [
1387
+ summary && /* @__PURE__ */ jsx(Summary$1, { dangerouslySetInnerHTML: { __html: htmlSummary } }),
1388
+ /* @__PURE__ */ jsx(List$1, { items: highlights })
1389
+ ] })
1390
+ ] });
1391
+ };
1392
+ const Work$1 = ({ projects }) => {
1393
+ if (!projects) {
1394
+ return null;
1395
+ }
1396
+ return /* @__PURE__ */ jsx("div", { children: /* @__PURE__ */ jsx(SectionComponent, { title: "Projects", children: projects.map((w2, key) => {
1397
+ return /* @__PURE__ */ jsx(
1398
+ Experience,
1399
+ {
1400
+ title: w2.name,
1401
+ startDate: w2.startDate,
1402
+ endDate: w2.endDate,
1403
+ summary: w2.description,
1404
+ highlights: w2.highlights
1405
+ },
1406
+ key
1407
+ );
1408
+ }) }) });
1409
+ };
1410
+ const Title = dt.div`
1411
+ font-size: 3rem;
1412
+ text-align: center;
1413
+ margin-top: 20px;
1414
+ margin-bottom: 20px;
1415
+ `;
1416
+ const BasicInfo = dt.div`
1417
+ display: flex;
1418
+ gap: 10px 20px;
1419
+ justify-content: center;
1420
+ flex-wrap: wrap;
1421
+ `;
1422
+ const Info = dt.div`
1423
+ display: flex;
1424
+ align-items: center;
1425
+ font-size: 1.5rem;
1426
+ svg {
1427
+ color: #000;
1428
+ margin-right: 5px;
1429
+ width: 10px;
1430
+ }
1431
+
1432
+ a {
1433
+ color: inherit;
1434
+ text-decoration: none;
1435
+ &:hover {
1436
+ color: #000;
1437
+ }
1438
+ }
1439
+ `;
1440
+ const HeroComponent = ({ basics }) => {
1441
+ const { name, url, location, profiles, phone, email } = basics;
1442
+ const linkedin = profiles.find(
1443
+ ({ network }) => network.toLowerCase() === "linkedin"
1444
+ );
1445
+ const github = profiles.find(
1446
+ ({ network }) => network.toLowerCase() === "github"
1447
+ );
1448
+ const twitter = profiles.find(
1449
+ ({ network }) => network.toLowerCase() === "twitter"
1450
+ );
1451
+ return /* @__PURE__ */ jsxs(SectionComponent, { children: [
1452
+ /* @__PURE__ */ jsx(Title, { children: name }),
1453
+ /* @__PURE__ */ jsx("div", { className: "secondary", children: /* @__PURE__ */ jsxs(BasicInfo, { children: [
1454
+ location && /* @__PURE__ */ jsxs(Info, { children: [
1455
+ /* @__PURE__ */ jsx(FaMapPin, {}),
1456
+ location.city,
1457
+ ", ",
1458
+ location.countryCode
1459
+ ] }),
1460
+ email && /* @__PURE__ */ jsxs(Info, { children: [
1461
+ /* @__PURE__ */ jsx(FaEnvelope, {}),
1462
+ email
1463
+ ] }),
1464
+ phone && /* @__PURE__ */ jsxs(Info, { children: [
1465
+ /* @__PURE__ */ jsx(FaPhoneAlt, {}),
1466
+ phone
1467
+ ] }),
1468
+ url && /* @__PURE__ */ jsxs(Info, { children: [
1469
+ /* @__PURE__ */ jsx(FaLink, {}),
1470
+ /* @__PURE__ */ jsx("a", { target: "_blank", href: url, children: url })
1471
+ ] }),
1472
+ linkedin && /* @__PURE__ */ jsxs(Info, { children: [
1473
+ /* @__PURE__ */ jsx(FaLinkedin, {}),
1474
+ /* @__PURE__ */ jsx("a", { href: `https://linkedin.com/in/${linkedin.username}`, children: linkedin.username })
1475
+ ] }),
1476
+ github && /* @__PURE__ */ jsxs(Info, { children: [
1477
+ /* @__PURE__ */ jsx(FaGithub, {}),
1478
+ /* @__PURE__ */ jsx("a", { href: `https://github.com/${github.username}`, children: github.username })
1479
+ ] }),
1480
+ twitter && /* @__PURE__ */ jsxs(Info, { children: [
1481
+ /* @__PURE__ */ jsx(FaTwitter, {}),
1482
+ /* @__PURE__ */ jsx("a", { href: `https://twitter.com/${twitter.username}`, children: twitter.username })
1483
+ ] })
1484
+ ] }) })
1485
+ ] });
1486
+ };
1487
+ const Summary = dt.div``;
1488
+ const SummaryComponent = ({ basics }) => {
1489
+ const { summary } = basics;
1490
+ const htmlContent = summary ? marked.parse(summary, { breaks: true }) : "";
1491
+ return /* @__PURE__ */ jsx(SectionComponent, { children: /* @__PURE__ */ jsx("div", { className: "secondary", children: /* @__PURE__ */ jsx(Summary, { dangerouslySetInnerHTML: { __html: htmlContent } }) }) });
1492
+ };
1493
+ const Education = ({ education }) => {
1494
+ if (!education) {
1495
+ return null;
1496
+ }
1497
+ return /* @__PURE__ */ jsx("div", { children: /* @__PURE__ */ jsx(SectionComponent, { title: "Education", children: education.map((e, key) => {
1498
+ let subTitle = e.area ? `${e.studyType} in ${e.area}` : e.studyType;
1499
+ if (e.score) {
1500
+ subTitle = `${subTitle} (${e.score})`;
1501
+ }
1502
+ return /* @__PURE__ */ jsx(
1503
+ Experience,
1504
+ {
1505
+ title: e.institution,
1506
+ subTitle,
1507
+ startDate: e.startDate,
1508
+ endDate: e.endDate,
1509
+ highlights: e.courses
1510
+ },
1511
+ key
1512
+ );
1513
+ }) }) });
1514
+ };
1515
+ const Work = ({ work }) => {
1516
+ if (!work) {
1517
+ return null;
1518
+ }
1519
+ return /* @__PURE__ */ jsx("div", { children: /* @__PURE__ */ jsx(SectionComponent, { title: "Experience", children: work.map((w2, key) => {
1520
+ return /* @__PURE__ */ jsx(
1521
+ Experience,
1522
+ {
1523
+ title: w2.position,
1524
+ subTitle: w2.name,
1525
+ startDate: w2.startDate,
1526
+ endDate: w2.endDate,
1527
+ summary: w2.summary,
1528
+ highlights: w2.highlights
1529
+ },
1530
+ key
1531
+ );
1532
+ }) }) });
1533
+ };
1534
+ const Certificates = ({ certificates }) => {
1535
+ if (!certificates) {
1536
+ return null;
1537
+ }
1538
+ return /* @__PURE__ */ jsx("div", { children: /* @__PURE__ */ jsx(SectionComponent, { title: "Certificates", children: certificates.map((c, key) => {
1539
+ return /* @__PURE__ */ jsx(
1540
+ Experience,
1541
+ {
1542
+ title: c.name,
1543
+ subTitle: c.issuer,
1544
+ date: c.date
1545
+ },
1546
+ key
1547
+ );
1548
+ }) }) });
1549
+ };
1550
+ const Publications = ({ publications }) => {
1551
+ if (!publications) {
1552
+ return null;
1553
+ }
1554
+ return /* @__PURE__ */ jsx("div", { children: /* @__PURE__ */ jsx(SectionComponent, { title: "Publications", children: publications.map((p2, key) => {
1555
+ return /* @__PURE__ */ jsx(
1556
+ Experience,
1557
+ {
1558
+ title: p2.name,
1559
+ subTitle: p2.publisher,
1560
+ date: p2.releaseDate,
1561
+ summary: p2.summary
1562
+ },
1563
+ key
1564
+ );
1565
+ }) }) });
1566
+ };
1567
+ const Awards = ({ awards }) => {
1568
+ if (!awards) {
1569
+ return null;
1570
+ }
1571
+ return /* @__PURE__ */ jsx("div", { children: /* @__PURE__ */ jsx(SectionComponent, { title: "Awards", children: awards.map((a, key) => {
1572
+ return /* @__PURE__ */ jsx(
1573
+ Experience,
1574
+ {
1575
+ title: a.title,
1576
+ subTitle: a.awarder,
1577
+ date: a.date,
1578
+ summary: a.summary
1579
+ },
1580
+ key
1581
+ );
1582
+ }) }) });
1583
+ };
1584
+ const Name$1 = dt.div`
1585
+ font-weight: 600;
1586
+ font-size: 1.4rem;
1587
+ `;
1588
+ const List = dt.div`
1589
+ font-size: 1.4rem;
1590
+ margin-left: 5px;
1591
+ `;
1592
+ const Container = dt.div`
1593
+ margin-bottom: 5px;
1594
+ display: flex;
1595
+ align-items: baseline;
1596
+ `;
1597
+ const OneLineList = ({ name, items }) => {
1598
+ return /* @__PURE__ */ jsxs(Container, { children: [
1599
+ /* @__PURE__ */ jsxs(Name$1, { children: [
1600
+ name,
1601
+ ":"
1602
+ ] }),
1603
+ /* @__PURE__ */ jsx(List, { children: /* @__PURE__ */ jsx("div", { class: "secondary", children: items?.join(", ") }) })
1604
+ ] });
1605
+ };
1606
+ const Skills = ({ skills }) => {
1607
+ if (!skills) {
1608
+ return null;
1609
+ }
1610
+ return /* @__PURE__ */ jsx("div", { children: /* @__PURE__ */ jsx(SectionComponent, { title: "Skills", children: skills.map((w2, key) => {
1611
+ return /* @__PURE__ */ jsx(OneLineList, { name: w2.name, items: w2.keywords }, key);
1612
+ }) }) });
1613
+ };
1614
+ const Interests = ({ interests }) => {
1615
+ if (!interests) {
1616
+ return null;
1617
+ }
1618
+ return /* @__PURE__ */ jsx("div", { children: /* @__PURE__ */ jsx(SectionComponent, { title: "Interests", children: interests.map((w2, key) => {
1619
+ return /* @__PURE__ */ jsx(OneLineList, { name: w2.name, items: w2.keywords }, key);
1620
+ }) }) });
1621
+ };
1622
+ const Languages = ({ languages }) => {
1623
+ if (!languages) {
1624
+ return null;
1625
+ }
1626
+ return /* @__PURE__ */ jsx("div", { children: /* @__PURE__ */ jsx(SectionComponent, { title: "Languages", children: languages.map((l, key) => {
1627
+ return /* @__PURE__ */ jsx(OneLineList, { name: l.language, items: [l.fluency] }, key);
1628
+ }) }) });
1629
+ };
1630
+ const Name = dt.div`
1631
+ font-weight: 600;
1632
+ font-size: 1.4rem;
1633
+ margin-bottom: 5px;
1634
+ `;
1635
+ const Reference = dt.p``;
1636
+ const References = ({ references }) => {
1637
+ if (!references) {
1638
+ return null;
1639
+ }
1640
+ return /* @__PURE__ */ jsx("div", { children: /* @__PURE__ */ jsx(SectionComponent, { title: "References", children: references.map((r, key) => {
1641
+ return /* @__PURE__ */ jsxs("div", { style: { marginBottom: "15px" }, children: [
1642
+ /* @__PURE__ */ jsx(Name, { children: r.name }),
1643
+ /* @__PURE__ */ jsx(Reference, { children: r.reference })
1644
+ ] }, key);
1645
+ }) }) });
1646
+ };
1647
+ const Volunteer = ({ volunteer }) => {
1648
+ if (!volunteer) {
1649
+ return null;
1650
+ }
1651
+ return /* @__PURE__ */ jsx("div", { children: /* @__PURE__ */ jsx(SectionComponent, { title: "Volunteer", children: volunteer.map((w2, key) => {
1652
+ return /* @__PURE__ */ jsx(
1653
+ Experience,
1654
+ {
1655
+ title: w2.position,
1656
+ subTitle: w2.organization,
1657
+ startDate: w2.startDate,
1658
+ endDate: w2.endDate,
1659
+ summary: w2.summary,
1660
+ highlights: w2.highlights
1661
+ },
1662
+ key
1663
+ );
1664
+ }) }) });
1665
+ };
1666
+ const Layout = dt.div`
1667
+ max-width: 660px;
1668
+ margin: 0 auto;
1669
+ line-height: calc(1ex / 0.32);
1670
+ margin-bottom: 40px;
1671
+ `;
1672
+ const Resume = ({ resume }) => {
1673
+ return /* @__PURE__ */ jsxs(Layout, { children: [
1674
+ /* @__PURE__ */ jsx(HeroComponent, { basics: resume.basics }),
1675
+ /* @__PURE__ */ jsx(SummaryComponent, { basics: resume.basics }),
1676
+ /* @__PURE__ */ jsx(Work, { work: resume.work }),
1677
+ /* @__PURE__ */ jsx(Work$1, { projects: resume.projects }),
1678
+ /* @__PURE__ */ jsx(Education, { education: resume.education }),
1679
+ /* @__PURE__ */ jsx(Certificates, { certificates: resume.certificates }),
1680
+ /* @__PURE__ */ jsx(Publications, { publications: resume.publications }),
1681
+ /* @__PURE__ */ jsx(Awards, { awards: resume.awards }),
1682
+ /* @__PURE__ */ jsx(Volunteer, { volunteer: resume.volunteer }),
1683
+ /* @__PURE__ */ jsx(Languages, { languages: resume.languages }),
1684
+ /* @__PURE__ */ jsx(Skills, { skills: resume.skills }),
1685
+ /* @__PURE__ */ jsx(Interests, { interests: resume.interests }),
1686
+ /* @__PURE__ */ jsx(References, { references: resume.references })
1687
+ ] });
1688
+ };
1689
+ const render = (resume) => {
1690
+ const sheet = new gt();
1691
+ const html = renderToString(sheet.collectStyles(/* @__PURE__ */ jsx(Resume, { resume })));
1692
+ const styles = sheet.getStyleTags();
1693
+ return `<!DOCTYPE html><head>
1694
+ <title>${resume.basics.name} - Resume</title>
1695
+ <meta charset="utf-8">
1696
+ <meta name="viewport" content="width=device-width, initial-scale=1"/>
1697
+ <style>
1698
+ @font-face {
1699
+ font-family: LatinModern;
1700
+ font-style: normal;
1701
+ font-weight: normal;
1702
+ src: url("/fonts/lmroman10-regular.otf") format("opentype");
1703
+ }
1704
+
1705
+ @font-face {
1706
+ font-family: LatinModern;
1707
+ font-weight: bold;
1708
+ src: url("/fonts/lmroman10-bold.otf") format("opentype");
1709
+ }
1710
+
1711
+ @font-face {
1712
+ font-family: LatinModern;
1713
+ font-style: italic;
1714
+ src: url("/fonts/lmroman10-italic.otf") format("opentype");
1715
+ }
1716
+
1717
+ @font-face {
1718
+ font-family: LatinModernSans;
1719
+ font-style: normal;
1720
+ font-weight: normal;
1721
+ src: url("/fonts/lmsans10-regular.otf") format("opentype");
1722
+ }
1723
+
1724
+ @font-face {
1725
+ font-family: LatinModernSans;
1726
+ font-weight: bold;
1727
+ src: url("/fonts/lmsans10-bold.otf") format("opentype");
1728
+ }
1729
+
1730
+ @font-face {
1731
+ font-family: LatinModernSans;
1732
+ font-style: italic;
1733
+ src: url("/fonts/lmsans10-italic.otf") format("opentype");
1734
+ }
1735
+
1736
+ html {
1737
+ font-family:LatinModern, "Courier New", monospace;
1738
+ background: #fff;
1739
+ font-size: 11px;
1740
+ }
1741
+
1742
+ h2 {
1743
+ font-size: 1.65rem;
1744
+ }
1745
+
1746
+ p {
1747
+ padding: 0;
1748
+ margin: 0;
1749
+ }
1750
+
1751
+ p, li {
1752
+ font-size: 1.4rem;
1753
+ line-height: 1.5rem;
1754
+ }
1755
+
1756
+ .secondary {
1757
+ color: #111;
1758
+ }
1759
+
1760
+ a {
1761
+ text-decoration: none;
1762
+ }
1763
+
1764
+ ul {
1765
+ list-style: none;
1766
+ margin: 0;
1767
+ padding: 0;
1768
+ }
1769
+
1770
+ *,
1771
+ *::before,
1772
+ *::after {
1773
+ box-sizing: border-box;
1774
+ }
1775
+
1776
+
1777
+
1778
+ </style>
1779
+ ${styles}</head><body>${html}</body></html>`;
1780
+ };
1781
+ export {
1782
+ Resume,
1783
+ render
1784
+ };