@dicebear/micah 5.0.0-alpha.2 → 5.0.0-alpha.20

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.
Files changed (99) hide show
  1. package/LICENSE +1 -1
  2. package/lib/colors/base.d.ts +2 -0
  3. package/lib/colors/base.js +15 -0
  4. package/lib/colors/earring.d.ts +2 -0
  5. package/lib/colors/earring.js +15 -0
  6. package/lib/colors/eyeShadow.d.ts +2 -0
  7. package/lib/colors/eyeShadow.js +15 -0
  8. package/lib/colors/eyebrows.d.ts +2 -0
  9. package/lib/colors/eyebrows.js +15 -0
  10. package/lib/colors/eyes.d.ts +2 -0
  11. package/lib/colors/eyes.js +15 -0
  12. package/lib/colors/facialHair.d.ts +2 -0
  13. package/lib/colors/facialHair.js +15 -0
  14. package/lib/colors/glasses.d.ts +2 -0
  15. package/lib/colors/glasses.js +15 -0
  16. package/lib/colors/hair.d.ts +2 -0
  17. package/lib/colors/hair.js +15 -0
  18. package/lib/colors/index.d.ts +10 -0
  19. package/lib/colors/index.js +10 -0
  20. package/lib/colors/mouth.d.ts +2 -0
  21. package/lib/colors/mouth.js +3 -0
  22. package/lib/colors/shirt.d.ts +2 -0
  23. package/lib/colors/shirt.js +15 -0
  24. package/lib/components/base.d.ts +2 -0
  25. package/lib/components/base.js +6 -0
  26. package/lib/components/earrings.d.ts +2 -0
  27. package/lib/components/earrings.js +4 -0
  28. package/lib/components/ears.d.ts +2 -0
  29. package/lib/components/ears.js +10 -0
  30. package/lib/components/eyebrows.d.ts +2 -0
  31. package/lib/components/eyebrows.js +6 -0
  32. package/lib/components/eyes.d.ts +2 -0
  33. package/lib/components/eyes.js +18 -0
  34. package/lib/components/facialHair.d.ts +2 -0
  35. package/lib/components/facialHair.js +4 -0
  36. package/lib/components/glasses.d.ts +2 -0
  37. package/lib/components/glasses.js +4 -0
  38. package/lib/components/hair.d.ts +2 -0
  39. package/lib/components/hair.js +10 -0
  40. package/lib/components/index.d.ts +11 -0
  41. package/lib/components/index.js +11 -0
  42. package/lib/components/mouth.d.ts +2 -0
  43. package/lib/components/mouth.js +10 -0
  44. package/lib/components/nose.d.ts +2 -0
  45. package/lib/components/nose.js +5 -0
  46. package/lib/components/shirt.d.ts +2 -0
  47. package/lib/components/shirt.js +5 -0
  48. package/{dist → lib}/core.d.ts +3 -3
  49. package/lib/core.js +32 -0
  50. package/{dist → lib}/hooks/onPostCreate.d.ts +10 -12
  51. package/lib/hooks/onPostCreate.js +6 -0
  52. package/lib/hooks/onPreCreate.d.ts +8 -0
  53. package/lib/hooks/onPreCreate.js +26 -0
  54. package/lib/index.d.ts +13 -0
  55. package/lib/index.js +13 -0
  56. package/lib/schema.d.ts +2 -0
  57. package/lib/schema.js +449 -0
  58. package/lib/types.d.ts +43 -0
  59. package/lib/types.js +1 -0
  60. package/{dist → lib}/utils/getColors.d.ts +8 -9
  61. package/lib/utils/getColors.js +55 -0
  62. package/{dist → lib}/utils/getComponents.d.ts +8 -9
  63. package/lib/utils/getComponents.js +77 -0
  64. package/{dist → lib}/utils/pickColor.d.ts +9 -9
  65. package/lib/utils/pickColor.js +13 -0
  66. package/{dist → lib}/utils/pickComponent.d.ts +9 -9
  67. package/lib/utils/pickComponent.js +14 -0
  68. package/package.json +19 -23
  69. package/dist/colors/base.d.ts +0 -2
  70. package/dist/colors/earring.d.ts +0 -2
  71. package/dist/colors/eyeShadow.d.ts +0 -2
  72. package/dist/colors/eyebrow.d.ts +0 -2
  73. package/dist/colors/eyes.d.ts +0 -2
  74. package/dist/colors/facialHair.d.ts +0 -2
  75. package/dist/colors/glasses.d.ts +0 -2
  76. package/dist/colors/hair.d.ts +0 -2
  77. package/dist/colors/index.d.ts +0 -10
  78. package/dist/colors/mouth.d.ts +0 -2
  79. package/dist/colors/shirt.d.ts +0 -2
  80. package/dist/components/base.d.ts +0 -2
  81. package/dist/components/earrings.d.ts +0 -2
  82. package/dist/components/ears.d.ts +0 -2
  83. package/dist/components/eyebrows.d.ts +0 -2
  84. package/dist/components/eyes.d.ts +0 -2
  85. package/dist/components/facialHair.d.ts +0 -2
  86. package/dist/components/glasses.d.ts +0 -2
  87. package/dist/components/hair.d.ts +0 -2
  88. package/dist/components/index.d.ts +0 -11
  89. package/dist/components/mouth.d.ts +0 -2
  90. package/dist/components/nose.d.ts +0 -2
  91. package/dist/components/shirt.d.ts +0 -2
  92. package/dist/hooks/onPreCreate.d.ts +0 -9
  93. package/dist/index.d.ts +0 -13
  94. package/dist/index.es.js +0 -1247
  95. package/dist/index.js +0 -1254
  96. package/dist/index.umd.js +0 -12
  97. package/dist/meta/components.d.ts +0 -4
  98. package/dist/options.d.ts +0 -32
  99. package/dist/static-types.d.ts +0 -16
package/dist/index.es.js DELETED
@@ -1,1247 +0,0 @@
1
- var title = "Options";
2
- var $schema = "http://json-schema.org/draft-07/schema#";
3
- var properties = {
4
- base: {
5
- type: "array",
6
- items: {
7
- type: "string",
8
- "enum": [
9
- "standard"
10
- ]
11
- },
12
- "default": [
13
- "standard"
14
- ]
15
- },
16
- baseColor: {
17
- type: "array",
18
- items: {
19
- anyOf: [
20
- {
21
- type: "string",
22
- pattern: "^#([a-fA-F0-9]{3}|[a-fA-F0-9]{4}|[a-fA-F0-9]{6}|[a-fA-F0-9]{8})$"
23
- },
24
- {
25
- type: "string",
26
- "enum": [
27
- "apricot",
28
- "coast",
29
- "topaz",
30
- "lavender",
31
- "sky",
32
- "salmon",
33
- "canary",
34
- "calm",
35
- "azure",
36
- "seashell",
37
- "mellow",
38
- "black",
39
- "white"
40
- ]
41
- }
42
- ]
43
- },
44
- "default": [
45
- "apricot",
46
- "coast",
47
- "topaz"
48
- ]
49
- },
50
- earringColor: {
51
- type: "array",
52
- items: {
53
- anyOf: [
54
- {
55
- type: "string",
56
- pattern: "^#([a-fA-F0-9]{3}|[a-fA-F0-9]{4}|[a-fA-F0-9]{6}|[a-fA-F0-9]{8})$"
57
- },
58
- {
59
- type: "string",
60
- "enum": [
61
- "apricot",
62
- "azure",
63
- "black",
64
- "calm",
65
- "canary",
66
- "coast",
67
- "lavender",
68
- "mellow",
69
- "salmon",
70
- "seashell",
71
- "sky",
72
- "topaz",
73
- "white"
74
- ]
75
- }
76
- ]
77
- },
78
- "default": [
79
- "apricot",
80
- "azure",
81
- "black",
82
- "calm",
83
- "canary",
84
- "coast",
85
- "lavender",
86
- "mellow",
87
- "salmon",
88
- "seashell",
89
- "sky",
90
- "topaz",
91
- "white"
92
- ]
93
- },
94
- earrings: {
95
- type: "array",
96
- items: {
97
- type: "string",
98
- "enum": [
99
- "hoop",
100
- "stud"
101
- ]
102
- },
103
- "default": [
104
- "hoop",
105
- "stud"
106
- ]
107
- },
108
- earringsProbability: {
109
- type: "integer",
110
- minimum: 0,
111
- maximum: 100,
112
- "default": 30
113
- },
114
- ears: {
115
- type: "array",
116
- items: {
117
- type: "string",
118
- "enum": [
119
- "attached",
120
- "detached"
121
- ]
122
- },
123
- "default": [
124
- "attached",
125
- "detached"
126
- ]
127
- },
128
- eyeShadowColor: {
129
- type: "array",
130
- items: {
131
- anyOf: [
132
- {
133
- type: "string",
134
- pattern: "^#([a-fA-F0-9]{3}|[a-fA-F0-9]{4}|[a-fA-F0-9]{6}|[a-fA-F0-9]{8})$"
135
- },
136
- {
137
- type: "string",
138
- "enum": [
139
- "apricot",
140
- "azure",
141
- "black",
142
- "calm",
143
- "canary",
144
- "coast",
145
- "lavender",
146
- "mellow",
147
- "salmon",
148
- "seashell",
149
- "sky",
150
- "topaz",
151
- "white"
152
- ]
153
- }
154
- ]
155
- },
156
- "default": [
157
- "azure",
158
- "calm",
159
- "mellow",
160
- "seashell",
161
- "white"
162
- ]
163
- },
164
- eyebrowColor: {
165
- type: "array",
166
- items: {
167
- anyOf: [
168
- {
169
- type: "string",
170
- pattern: "^#([a-fA-F0-9]{3}|[a-fA-F0-9]{4}|[a-fA-F0-9]{6}|[a-fA-F0-9]{8})$"
171
- },
172
- {
173
- type: "string",
174
- "enum": [
175
- "apricot",
176
- "azure",
177
- "black",
178
- "calm",
179
- "canary",
180
- "coast",
181
- "lavender",
182
- "mellow",
183
- "salmon",
184
- "seashell",
185
- "sky",
186
- "topaz",
187
- "white"
188
- ]
189
- }
190
- ]
191
- },
192
- "default": [
193
- "black"
194
- ]
195
- },
196
- eyebrows: {
197
- type: "array",
198
- items: {
199
- type: "string",
200
- "enum": [
201
- "up",
202
- "down",
203
- "eyelashesUp",
204
- "eyelashesDown"
205
- ]
206
- },
207
- "default": [
208
- "up",
209
- "down",
210
- "eyelashesUp",
211
- "eyelashesDown"
212
- ]
213
- },
214
- eyes: {
215
- type: "array",
216
- items: {
217
- type: "string",
218
- "enum": [
219
- "eyes",
220
- "round",
221
- "eyesShadow",
222
- "smiling"
223
- ]
224
- },
225
- "default": [
226
- "eyes",
227
- "round",
228
- "eyesShadow",
229
- "smiling"
230
- ]
231
- },
232
- eyesColor: {
233
- type: "array",
234
- items: {
235
- anyOf: [
236
- {
237
- type: "string",
238
- pattern: "^#([a-fA-F0-9]{3}|[a-fA-F0-9]{4}|[a-fA-F0-9]{6}|[a-fA-F0-9]{8})$"
239
- },
240
- {
241
- type: "string",
242
- "enum": [
243
- "apricot",
244
- "azure",
245
- "black",
246
- "calm",
247
- "canary",
248
- "coast",
249
- "lavender",
250
- "mellow",
251
- "salmon",
252
- "seashell",
253
- "sky",
254
- "topaz",
255
- "white"
256
- ]
257
- }
258
- ]
259
- },
260
- "default": [
261
- "black"
262
- ]
263
- },
264
- facialHair: {
265
- type: "array",
266
- items: {
267
- type: "string",
268
- "enum": [
269
- "beard",
270
- "scruff"
271
- ]
272
- },
273
- "default": [
274
- "beard",
275
- "scruff"
276
- ]
277
- },
278
- facialHairColor: {
279
- type: "array",
280
- items: {
281
- anyOf: [
282
- {
283
- type: "string",
284
- pattern: "^#([a-fA-F0-9]{3}|[a-fA-F0-9]{4}|[a-fA-F0-9]{6}|[a-fA-F0-9]{8})$"
285
- },
286
- {
287
- type: "string",
288
- "enum": [
289
- "apricot",
290
- "azure",
291
- "black",
292
- "calm",
293
- "canary",
294
- "coast",
295
- "lavender",
296
- "mellow",
297
- "salmon",
298
- "seashell",
299
- "sky",
300
- "topaz",
301
- "white"
302
- ]
303
- }
304
- ]
305
- },
306
- "default": [
307
- "topaz"
308
- ]
309
- },
310
- facialHairProbability: {
311
- type: "integer",
312
- minimum: 0,
313
- maximum: 100,
314
- "default": 10
315
- },
316
- glasses: {
317
- type: "array",
318
- items: {
319
- type: "string",
320
- "enum": [
321
- "round",
322
- "square"
323
- ]
324
- },
325
- "default": [
326
- "round",
327
- "square"
328
- ]
329
- },
330
- glassesColor: {
331
- type: "array",
332
- items: {
333
- anyOf: [
334
- {
335
- type: "string",
336
- pattern: "^#([a-fA-F0-9]{3}|[a-fA-F0-9]{4}|[a-fA-F0-9]{6}|[a-fA-F0-9]{8})$"
337
- },
338
- {
339
- type: "string",
340
- "enum": [
341
- "apricot",
342
- "azure",
343
- "black",
344
- "calm",
345
- "canary",
346
- "coast",
347
- "lavender",
348
- "mellow",
349
- "salmon",
350
- "seashell",
351
- "sky",
352
- "topaz",
353
- "white"
354
- ]
355
- }
356
- ]
357
- },
358
- "default": [
359
- "apricot",
360
- "azure",
361
- "black",
362
- "calm",
363
- "canary",
364
- "coast",
365
- "lavender",
366
- "mellow",
367
- "salmon",
368
- "seashell",
369
- "sky",
370
- "topaz",
371
- "white"
372
- ]
373
- },
374
- glassesProbability: {
375
- type: "integer",
376
- minimum: 0,
377
- maximum: 100,
378
- "default": 30
379
- },
380
- hair: {
381
- type: "array",
382
- items: {
383
- type: "string",
384
- "enum": [
385
- "fonze",
386
- "mrT",
387
- "dougFunny",
388
- "mrClean",
389
- "dannyPhantom",
390
- "full",
391
- "turban",
392
- "pixie"
393
- ]
394
- },
395
- "default": [
396
- "fonze",
397
- "mrT",
398
- "dougFunny",
399
- "mrClean",
400
- "dannyPhantom",
401
- "full",
402
- "turban",
403
- "pixie"
404
- ]
405
- },
406
- hairColor: {
407
- type: "array",
408
- items: {
409
- anyOf: [
410
- {
411
- type: "string",
412
- pattern: "^#([a-fA-F0-9]{3}|[a-fA-F0-9]{4}|[a-fA-F0-9]{6}|[a-fA-F0-9]{8})$"
413
- },
414
- {
415
- type: "string",
416
- "enum": [
417
- "apricot",
418
- "azure",
419
- "black",
420
- "calm",
421
- "canary",
422
- "coast",
423
- "lavender",
424
- "mellow",
425
- "salmon",
426
- "seashell",
427
- "sky",
428
- "topaz",
429
- "white"
430
- ]
431
- }
432
- ]
433
- },
434
- "default": [
435
- "apricot",
436
- "azure",
437
- "black",
438
- "calm",
439
- "canary",
440
- "coast",
441
- "lavender",
442
- "mellow",
443
- "salmon",
444
- "seashell",
445
- "sky",
446
- "topaz",
447
- "white"
448
- ]
449
- },
450
- hairProbability: {
451
- type: "integer",
452
- minimum: 0,
453
- maximum: 100,
454
- "default": 100
455
- },
456
- mouth: {
457
- type: "array",
458
- items: {
459
- type: "string",
460
- "enum": [
461
- "surprised",
462
- "laughing",
463
- "nervous",
464
- "smile",
465
- "sad",
466
- "pucker",
467
- "frown",
468
- "smirk"
469
- ]
470
- },
471
- "default": [
472
- "surprised",
473
- "laughing",
474
- "nervous",
475
- "smile",
476
- "sad",
477
- "pucker",
478
- "frown",
479
- "smirk"
480
- ]
481
- },
482
- mouthColor: {
483
- type: "array",
484
- items: {
485
- anyOf: [
486
- {
487
- type: "string",
488
- pattern: "^#([a-fA-F0-9]{3}|[a-fA-F0-9]{4}|[a-fA-F0-9]{6}|[a-fA-F0-9]{8})$"
489
- },
490
- {
491
- type: "string",
492
- "enum": [
493
- "black"
494
- ]
495
- }
496
- ]
497
- },
498
- "default": [
499
- "black"
500
- ]
501
- },
502
- nose: {
503
- type: "array",
504
- items: {
505
- type: "string",
506
- "enum": [
507
- "curve",
508
- "pointed",
509
- "tound"
510
- ]
511
- },
512
- "default": [
513
- "curve",
514
- "pointed",
515
- "tound"
516
- ]
517
- },
518
- shirt: {
519
- type: "array",
520
- items: {
521
- type: "string",
522
- "enum": [
523
- "open",
524
- "crew",
525
- "collared"
526
- ]
527
- },
528
- "default": [
529
- "open",
530
- "crew",
531
- "collared"
532
- ]
533
- },
534
- shirtColor: {
535
- type: "array",
536
- items: {
537
- anyOf: [
538
- {
539
- type: "string",
540
- pattern: "^#([a-fA-F0-9]{3}|[a-fA-F0-9]{4}|[a-fA-F0-9]{6}|[a-fA-F0-9]{8})$"
541
- },
542
- {
543
- type: "string",
544
- "enum": [
545
- "apricot",
546
- "azure",
547
- "black",
548
- "calm",
549
- "canary",
550
- "coast",
551
- "lavender",
552
- "mellow",
553
- "salmon",
554
- "seashell",
555
- "sky",
556
- "topaz",
557
- "white"
558
- ]
559
- }
560
- ]
561
- },
562
- "default": [
563
- "apricot",
564
- "azure",
565
- "black",
566
- "calm",
567
- "canary",
568
- "coast",
569
- "lavender",
570
- "mellow",
571
- "salmon",
572
- "seashell",
573
- "sky",
574
- "topaz",
575
- "white"
576
- ]
577
- }
578
- };
579
- var additionalProperties = false;
580
- var schema$1 = {
581
- title: title,
582
- $schema: $schema,
583
- properties: properties,
584
- additionalProperties: additionalProperties
585
- };
586
-
587
- const base$1 = {
588
- standard: (components, colors) => {
589
- var _components$facialHai, _components$facialHai2;
590
-
591
- return "\n<path d=\"M154 319.5c-14.4-20-25.67-58.67-27-78L58.5 212 30 319.5h124Z\" fill=\"".concat(colors.base.value, "\" stroke=\"#000\" stroke-width=\"4\"/>\n<mask id=\"baseStandard-a\" style=\"mask-type:alpha\" maskUnits=\"userSpaceOnUse\" x=\"30\" y=\"212\" width=\"124\" height=\"118\">\n<path d=\"M154 329.5c-14.4-20-25.67-68.67-27-88L58.5 212 30 329.5h124Z\" fill=\"").concat(colors.base.value, "\"/>\n</mask>\n<g mask=\"url(#baseStandard-a)\">\n<ellipse cx=\"124\" cy=\"210\" rx=\"59\" ry=\"54\" fill=\"#000\" style=\"mix-blend-mode:multiply\"/>\n</g>\n<path d=\"M181.94 151.37v.01l.1.4.14.65A75.72 75.72 0 0 1 34.93 187.7l-.2-.74L18 117.13l-.06-.29A75.72 75.72 0 0 1 165.2 81.55l.05.21.02.08.05.2.05.2v.01l16.4 68.44.08.34.08.34Z\" fill=\"").concat(colors.base.value, "\" stroke=\"#000\" stroke-width=\"4\"/>\n<g transform=\"translate(34 102.3)\">\n").concat((_components$facialHai = (_components$facialHai2 = components.facialHair) === null || _components$facialHai2 === void 0 ? void 0 : _components$facialHai2.value(components, colors)) !== null && _components$facialHai !== void 0 ? _components$facialHai : '', "\n</g>\n");
592
- }
593
- };
594
-
595
- const mouth$1 = {
596
- surprised: (components, colors) => "\n<path d=\"M36.05 54.9c10.83-1.97 17.18-13.95 14.97-26.15-2.2-12.2-12.35-21.19-23.18-19.23C17 11.48 10.65 23.46 12.86 35.66c2.2 12.2 12.35 21.2 23.19 19.23Z\" fill=\"".concat(colors.mouth.value, "\" stroke=\"").concat(colors.mouth.value, "\" stroke-width=\"3.59\"/>\n<mask id=\"mouthSurprised-a\" style=\"mask-type:alpha\" maskUnits=\"userSpaceOnUse\" x=\"14\" y=\"11\" width=\"36\" height=\"43\">\n<ellipse cx=\"31.94\" cy=\"32.21\" rx=\"17.6\" ry=\"21.26\" transform=\"rotate(-10.26 31.94 32.2)\" fill=\"#171921\"/>\n</mask>\n<g mask=\"url(#mouthSurprised-a)\">\n<ellipse cx=\"35.2\" cy=\"50.22\" rx=\"20.2\" ry=\"18.3\" transform=\"rotate(-10.26 35.2 50.22)\" fill=\"#FC909F\"/>\n</g>\n"),
597
- laughing: (components, colors) => "\n<path d=\"M62.8 25.18a34 34 0 0 0 1.12-11.85 2.98 2.98 0 0 0-4.08-2.51c-4.22 1.66-18.21 6.96-28.08 8.32-10.82 1.49-27.2-.32-31.95-.9a2.98 2.98 0 0 0-3.32 3.43 34 34 0 0 0 66.32 3.5Z\" fill=\"".concat(colors.mouth.value, "\" stroke=\"").concat(colors.mouth.value, "\" stroke-width=\"4\"/>\n<mask id=\"mouthLaughing-a\" style=\"mask-type:alpha\" maskUnits=\"userSpaceOnUse\" x=\"-2\" y=\"12\" width=\"65\" height=\"37\">\n<path d=\"M61.8 12.2a32 32 0 0 1-63.52 7.85l63.51-7.86Z\" fill=\"#171921\"/>\n</mask>\n<g mask=\"url(#mouthLaughing-a)\">\n<circle cx=\"34.52\" cy=\"52.31\" r=\"21.5\" transform=\"rotate(-7.05 34.52 52.31)\" fill=\"#FC909F\"/>\n</g>\n"),
598
- nervous: (components, colors) => "\n<rect x=\"-6.75\" y=\"17.47\" width=\"70\" height=\"24\" rx=\"4\" transform=\"rotate(-4 -6.75 17.47)\" fill=\"".concat(colors.mouth.value, "\"/>\n<path d=\"m56.82 13.03-57.32 4 1.84 7a6 6 0 0 0 6.23 4.47 6 6 0 0 0-5.54 5.28l-.85 7.2 57.32-4.01-1.84-7a6 6 0 0 0-6.23-4.47 6 6 0 0 0 5.54-5.28l.85-7.2Z\" fill=\"#fff\"/>\n<path d=\"M66.42 31.7 65.4 17.13a6.06 6.06 0 0 0-7.32-5.48c-6.94 1.49-20.22 4.13-29.82 4.8-9.6.68-23.1-.1-30.2-.6a6.06 6.06 0 0 0-6.48 6.45l1.02 14.57a6.06 6.06 0 0 0 7.32 5.48c6.94-1.49 20.22-4.13 29.82-4.8 9.6-.68 23.1.1 30.2.6a6.06 6.06 0 0 0 6.48-6.45Z\" stroke=\"").concat(colors.mouth.value, "\" stroke-width=\"4\"/>\n"),
599
- smile: (components, colors) => "\n<path d=\"M-.5 17.5c2.5 17 31 25 57 5.5\" stroke=\"".concat(colors.mouth.value, "\" stroke-width=\"4\"/>\n"),
600
- sad: (components, colors) => "\n<path d=\"M13 46c1.72-7.96 8.07-24.77 19.77-28.35 11.7-3.58 17.7 8.46 19.23 14.92\" stroke=\"".concat(colors.mouth.value, "\" stroke-width=\"4\"/>\n"),
601
- pucker: (components, colors) => "\n<path d=\"M26 16.7c4.17-2.34 21-5.3 21 1.5 0 8.5-11.5 8-11.5 8s13.04-3.16 10.5 6c-2.5 9-9.5 5.5-11.5 4.5\" stroke=\"".concat(colors.mouth.value, "\" stroke-width=\"4\"/>\n"),
602
- frown: (components, colors) => "\n<path d=\"M-5 41c3.21-7.96 15.1-24.77 37-28.35 21.9-3.58 33.13 8.46 36 14.92\" stroke=\"".concat(colors.mouth.value, "\" stroke-width=\"4\"/>\n"),
603
- smirk: (components, colors) => "\n<path d=\"M10 24.16c4.94 6.45 12.43 13.6 23.98 11.96 11.55-1.62 16.68-9.6 15.17-16.04\" stroke=\"".concat(colors.mouth.value, "\" stroke-width=\"4\"/>\n")
604
- };
605
-
606
- const eyebrows = {
607
- up: (components, colors) => "\n<path d=\"M99 10.21c5.67-2.66 19-5.1 27 6.5M23.58 35.52c2.07-5.9 9.68-17.12 23.56-14.7\" stroke=\"".concat(colors.eyebrow.value, "\" stroke-width=\"4\" stroke-linecap=\"round\"/>\n"),
608
- down: (components, colors) => "\n<path d=\"M27 26.5c6.17 2.5 21.1 3 31.5-15M94 4c5.17 5.33 18.1 12.8 28.5 0\" stroke=\"".concat(colors.eyebrow.value, "\" stroke-width=\"4\" stroke-linecap=\"round\"/>\n"),
609
- eyelashesUp: (components, colors) => "\n<path d=\"M99 10.21c5.67-2.66 19-5.1 27 6.5M23.58 35.52c2.07-5.9 9.68-17.12 23.56-14.7M26.07 29.46l-6.14-5.43M122.96 11.16l6.15-5.43M32.52 23.81l-4.04-7.13M115.51 7.51l4.05-7.13M40.6 20.2l-2.2-7.9M106.44 6.9l2.2-7.9\" stroke=\"".concat(colors.eyebrow.value, "\" stroke-width=\"4\" stroke-linecap=\"round\"/>\n"),
610
- eyelashesDown: (components, colors) => "\n<path d=\"M27 26.5c6.17 2.5 21.1 3 31.5-15M94 4c5.17 5.33 18.1 12.8 28.5 0M37.15 26.46 31 21.03M116.22 9.44l1.78-8M45.6 22.81l-4.05-7.13M108.14 9.02l.94-8.15M52.67 17.2l-2.2-7.9M100 8.03l-.78-8.16\" stroke=\"".concat(colors.eyebrow.value, "\" stroke-width=\"4\" stroke-linecap=\"round\"/>\n")
611
- };
612
-
613
- const hair$1 = {
614
- fonze: (components, colors) => "\n<path d=\"M210.18 49.4c-1.27 6.05-4.6 11.32-9.43 15.9 9.4 34.06 9.6 53.87 4.38 57.65l-14.8-49.99C158.4 91.7 98.65 94.9 83.69 94.9c-1.55.17-3.02.4-4.43.67-14.65 9-2.6 52.12 11.75 70.43l-11 2c-5.14-24.97-17.41-22.92-26.61-21.38l-.32.05c2.2 13.63 6.72 27.74 10.45 39.32.95 2.99 1.86 5.8 2.66 8.4-.79.1-1.48.3-2.12.47-5.5 1.53-7.41 2.06-33.38-61.97-6.47-15.95-6.03-30.16-.97-42.62-4.78-4.8-14.37-7.14-19.71-7.78 10.44-6.12 20.58-4.87 25.54-3.1.5-.75 1.02-1.49 1.56-2.22-.97-4.41-7.96-9.46-12.11-11.82 8.55-4.3 18.6-2.03 22.98-.2C67.63 47.13 97.03 35.05 122 29 170.81 17.17 189.5.5 189.5.5c20.68 8.5 25.62 25.22 20.68 48.9Z\" fill=\"".concat(colors.hair.value, "\" stroke=\"#000\" stroke-width=\"4\"/>\n"),
615
- mrT: (components, colors) => "\n<g fill=\"".concat(colors.hair.value, "\">\n<path opacity=\".1\" d=\"M187.99 77.18c-8-6.4-21.84-7-27.5-6.5l-8-26.5c13.6 3.2 32 24 35.5 33Z\"/>\n<path d=\"M85.8 11.76S91.52 7.8 115.74 1.7c24.21-6.1 33.04-3.72 33.04-3.72l11.8 72.84s-8.05-.18-28.04 4.19c-20 4.38-29.56 9.67-29.56 9.67l-17.2-72.9Z\"/>\n<path d=\"M48.99 86.68c-6.8-41.6 23.33-68.17 37-75.5l16.98 73.5c-19.2-39.6-45.33-15.17-54 2Z\"/>\n<path opacity=\".1\" d=\"M67.49 130.68c-7.2-27.2 22-41.84 35.5-46-7-16.34-23-31-42.5-13-18 30.5-11 54-5.5 72l12.5-13Z\"/>\n</g>\n"),
616
- dougFunny: (components, colors) => "\n<path d=\"M140 56c14.67-.67 40.4-8.8 26-36M114 54c14.67-.67 40.4-8.8 26-36M78 65c14.67-.67 40.4-8.8 26-36\" stroke=\"".concat(colors.hair.value, "\" stroke-width=\"4\"/>\n"),
617
- mrClean: (components, colors) => "\n<ellipse cx=\"147.85\" cy=\"58.18\" rx=\"6.86\" ry=\"18.44\" transform=\"rotate(117 147.85 58.18)\" fill=\"#FCFDFF\"/>\n",
618
- dannyPhantom: (components, colors) => "\n<path d=\"M123.79 17.49H123.94a96.78 96.78 0 0 1 62.07 24.36c14.06 12.4 22.45 26.87 25.19 36.73-4.06 2.32-11.01 4.31-19.88 5.95-9.68 1.78-21.3 3.08-33.15 4.01-23.7 1.86-48.2 2.2-59.63 1.96l-6.07-.13 4.8 3.71c2.5 1.93 5.83 3.28 9.34 4.22 3.55.95 7.42 1.54 11.14 1.87 3.82.34 7.55.42 10.64.34-10.59 8.16-24.06 14.44-37.35 19.09a225.88 225.88 0 0 1-39.83 9.92l-2.15.32.5 2.11c3.34 14.43 9.5 39.65 13.62 56.57 1.83 7.5 3.26 13.38 3.87 15.94 1.09 4.56 4.5 11.05 8.4 17.03 3.6 5.52 7.78 10.89 11.32 14.2l-7.84 31.81H49.37c8.34-12.71 10.1-27.4 8.4-42.98-1.84-16.87-7.76-35-14-53.17l-1.85-5.36c-5.69-16.46-11.36-32.88-14.43-48.6-3.4-17.44-3.56-33.75 2.83-48.09 10.34-23.21 28.66-36.7 47-44.12 18.37-7.45 36.61-8.76 46.46-7.71Z\" fill=\"".concat(colors.hair.value, "\" stroke=\"#000\" stroke-width=\"4\"/>\n"),
619
- full: (components, colors) => "\n<path d=\"m-13.4 312.86-.62-1.64c-.56-1.55-1.35-3.84-2.23-6.74a163.21 163.21 0 0 1-5.28-23.98c-2.81-19.77-2.8-45.8 8.4-71.12 1.8-4.09 4.07-8.3 6.52-12.85 9.47-17.6 21.77-40.46 21.77-82.45 0-30.59 14.84-56.35 36.7-74.51 21.88-18.18 50.7-28.66 78.38-28.66 15.13 0 27.3 1.73 37.07 7.64 9.72 5.87 17.37 16.05 23.05 33.58a3.47 3.47 0 0 0 4.36 2.27c11.31-3.67 28.47.04 42.95 9.5 14.42 9.4 25.62 24.15 25.62 41.91 0 15.43-2.64 25.85-5.22 36-3.12 12.3-6.13 24.16-4 43.5.7 6.45 2.15 11.03 4.16 14.82 1.98 3.73 4.48 6.62 7.12 9.66l.05.07c6.28 7.25 9.13 13.22 10.06 18.47.92 5.23-.05 9.98-1.84 14.9-.9 2.48-2 4.97-3.15 7.59l-.1.22c-1.12 2.53-2.3 5.19-3.35 7.98-2.18 5.77-3.89 12.2-3.72 19.83.15 6.48 1.3 10.91 3.01 14.27 1.7 3.32 3.89 5.44 5.8 7.3l.05.05c1.74 1.68 3.2 3.1 4.27 5.1.96 1.78 1.67 4.13 1.79 7.66a172.14 172.14 0 0 1-87.4 23.9 110.86 110.86 0 0 1-7.28-.28c-6.15-9.4-11.75-24.88-16.1-40.8-4.21-15.46-7.18-31.08-8.3-41.4 37.08-10.72 60.32-48.98 54.73-88.46l-.01-.12a5.97 5.97 0 0 0-.08-.47 76.68 76.68 0 0 0-.43-2.25 486.97 486.97 0 0 0-6.53-28.2 276.64 276.64 0 0 0-7.45-24.2c-2.76-7.5-5.83-14.15-9.1-18.24l-.3-.37-.44-.2c-1.93-.83-3.94-1.77-6.03-2.74-9.93-4.62-21.84-10.17-37.26-10.78-18.78-.74-42.56 5.78-74.7 29.09l-2.02 1.46 1.95 1.57c15.92 12.83 19.37 29.86 18.63 44.3a89.2 89.2 0 0 1-5.24 25.1c-1.16-1.69-1.9-3.82-2.45-6.33a85.19 85.19 0 0 1-.96-5.45l-.05-.3c-.3-2-.63-4.08-1.1-6.09-.96-4.01-2.57-8.02-6.14-10.86-3.58-2.84-8.8-4.25-16.4-3.83l-2.22.13.46 2.18 11.36 53.31.02.08.03.09a79.8 79.8 0 0 0 19.91 32.81 65.49 65.49 0 0 1 1.54 2.68c1.01 1.82 2.37 4.38 3.76 7.33 2.82 5.94 5.66 13.24 6.2 19.2.57 6.05-.96 13.86-2.7 20.31a129.63 129.63 0 0 1-2.84 9.14c-5.03-2.4-9.53-2.23-13.38.01-4.16 2.43-7.21 7.06-9.48 12.22-4.15 9.42-6.14 21.64-7.06 29.22A601.65 601.65 0 0 1 6.2 320.1 353.85 353.85 0 0 1-9 314.64a190.8 190.8 0 0 1-4.4-1.77Z\" fill=\"".concat(colors.hair.value, "\" stroke=\"#000\" stroke-width=\"3.82\"/>\n"),
620
- turban: (components, colors) => "\n<g stroke=\"#000\" stroke-width=\"4\">\n<path d=\"M222.73 100.8c0-66.1-36.46-110.8-80.87-110.8C84.96-10 27 11.34 27 112.25c0 24.97 10.66 43.58 25.56 57.29a42.88 42.88 0 0 1-3.5-4.92c-2.88-26.98 29.17-47.7 60.54-67.96 16.65-10.75 33.11-21.39 44.05-32.76 9.6 5.43 37.79 28.2 43.16 37.42 2.88 4.94 7.51 21.87 10.67 41.63 10.34-12.42 15.25-24.84 15.25-42.16Z\" fill=\"".concat(colors.hair.value, "\"/>\n<path d=\"M154.26 63.25c13.18-11.95 32.89-39.21 31.62-56.92\"/>\n</g>\n"),
621
- pixie: (components, colors) => "\n<g stroke=\"#000\">\n<path d=\"m105.84 88.82 1.88.3v.08l-.04.16-.12.52c-.12.45-.3 1.09-.6 1.9a41.7 41.7 0 0 1-3.4 6.92c-3.17 5.32-8.7 12.66-18.31 21.6 29.97.74 55-8.92 72.82-19.04a156.35 156.35 0 0 0 21.71-14.87 118.43 118.43 0 0 0 7.5-6.7l.1-.1.01-.01 2.29-2.38.93 3.16-1.84.54 1.84-.54v.05l.05.13.15.52a817.06 817.06 0 0 1 2.69 9.28c1.75 6.14 4.14 14.58 6.66 23.77 5.03 18.35 10.6 39.81 12.7 51.97 3.49 20.32-1.91 35.74-5.1 44.87-.63 1.77-1.17 3.3-1.54 4.6.06.04.12.1.22.16.6.42 1.65.91 3.18 1.4 3.02.96 7.32 1.74 11.92 2.19 4.6.44 9.38.53 13.34.14 1.98-.2 3.7-.5 5.08-.92a6.85 6.85 0 0 0 2.58-1.27c.02-.08.03-.29-.02-.68-.1-.78-.4-1.87-.93-3.32-.8-2.15-1.97-4.8-3.35-7.88l-1.46-3.3c-3.93-8.94-8.65-20.56-9.68-32.4-1.15-13.16 1.45-24.42 3.79-34.54l.11-.48c2.39-10.34 4.38-19.32 2.34-28.42-3.1-13.8-7.32-25.3-13.8-33.57-6.42-8.17-15.13-13.27-27.5-14.21l-1.28-.1-.4-1.22c-5.7-17.57-13.38-29.05-23.18-36.17-9.8-7.12-21.96-10.05-36.94-10.05-27.7 0-57.5 10.52-79.88 28.72-22.35 18.18-37.14 43.9-35.2 74.33 2.13 33.6-.3 59.06-5.8 77.72-5 17-12.59 28.46-21.68 35.14 1.19.61 2.78 1.39 4.77 2.27 5.02 2.24 12.59 5.2 22.67 8.03 19.34 5.43 47.95 10.38 85.71 8.89-8.32-7.15-16.72-15.83-23.37-25-7.63-10.53-13.14-21.94-13.3-32.58-.19-12.62.67-45.67.93-52.5.62-15.9 10.82-28.15 20.54-36.3a96.6 96.6 0 0 1 18.96-12.34l.2-.1.13-.06.1-.05h.02v-.01l.8 1.74Zm0 0 1.88.3.56-3.5-3.23 1.46.79 1.74Zm100.23 126.57.03.04-.03-.04Z\" fill=\"".concat(colors.hair.value, "\" stroke-width=\"3.82\"/>\n<path d=\"M191 58c.5 4.5-.3 13.5-1.5 19.5\" stroke-width=\"4\"/>\n</g>\n")
622
- };
623
-
624
- const eyes$1 = {
625
- eyes: (components, colors) => {
626
- var _components$glasses$v, _components$glasses;
627
-
628
- return "\n<g fill=\"".concat(colors.eyes.value, "\">\n<ellipse cx=\"16.53\" cy=\"29.4\" rx=\"9\" ry=\"13.5\" transform=\"rotate(-6.78 16.53 29.4)\"/>\n<ellipse cx=\"80.53\" cy=\"19.4\" rx=\"9\" ry=\"13.5\" transform=\"rotate(-6.28 80.53 19.4)\"/>\n</g>\n<g transform=\"translate(-40 -8)\">\n").concat((_components$glasses$v = (_components$glasses = components.glasses) === null || _components$glasses === void 0 ? void 0 : _components$glasses.value(components, colors)) !== null && _components$glasses$v !== void 0 ? _components$glasses$v : '', "\n</g>\n");
629
- },
630
- round: (components, colors) => {
631
- var _components$glasses$v2, _components$glasses2;
632
-
633
- return "\n<g fill=\"".concat(colors.eyes.value, "\">\n<ellipse cx=\"16.12\" cy=\"28.93\" rx=\"9\" ry=\"10\" transform=\"rotate(-6.78 16.12 28.93)\"/>\n<ellipse cx=\"80.15\" cy=\"18.92\" rx=\"9\" ry=\"10\" transform=\"rotate(-6.28 80.15 18.92)\"/>\n</g>\n<g transform=\"translate(-40 -8)\">\n").concat((_components$glasses$v2 = (_components$glasses2 = components.glasses) === null || _components$glasses2 === void 0 ? void 0 : _components$glasses2.value(components, colors)) !== null && _components$glasses$v2 !== void 0 ? _components$glasses$v2 : '', "\n</g>\n");
634
- },
635
- eyesShadow: (components, colors) => {
636
- var _components$glasses$v3, _components$glasses3;
637
-
638
- return "\n<circle cx=\"15.24\" cy=\"20.24\" r=\"12\" transform=\"rotate(-6.28 15.24 20.24)\" fill=\"".concat(colors.eyeShadow.value, "\"/>\n<ellipse cx=\"16.53\" cy=\"29.4\" rx=\"9\" ry=\"13.5\" transform=\"rotate(-6.78 16.53 29.4)\" fill=\"").concat(colors.eyes.value, "\"/>\n<circle cx=\"79.02\" cy=\"11.61\" r=\"12\" transform=\"rotate(-6.28 79.02 11.61)\" fill=\"").concat(colors.eyeShadow.value, "\"/>\n<ellipse cx=\"80.53\" cy=\"19.4\" rx=\"9\" ry=\"13.5\" transform=\"rotate(-6.28 80.53 19.4)\" fill=\"").concat(colors.eyes.value, "\"/>\n<g transform=\"translate(-40 -8)\">\n").concat((_components$glasses$v3 = (_components$glasses3 = components.glasses) === null || _components$glasses3 === void 0 ? void 0 : _components$glasses3.value(components, colors)) !== null && _components$glasses$v3 !== void 0 ? _components$glasses$v3 : '', "\n</g>\n");
639
- },
640
- smiling: (components, colors) => {
641
- var _components$glasses$v4, _components$glasses4;
642
-
643
- return "\n<path d=\"M5.29 34.07c.11.82 1.14 1 1.72.41 2.46-2.52 6.25-4.36 10.65-4.89 2.6-.3 5.1-.12 7.32.48.75.2 1.5-.44 1.23-1.17A10.84 10.84 0 0 0 5.3 34.07ZM69.38 24.07c.12.82 1.15 1 1.73.41 2.44-2.48 6.19-4.3 10.54-4.83 2.56-.3 5.03-.12 7.23.47.75.2 1.5-.44 1.23-1.17a10.74 10.74 0 0 0-20.73 5.12Z\" fill=\"".concat(colors.eyes.value, "\"/>\n<g transform=\"translate(-40 -8)\">\n").concat((_components$glasses$v4 = (_components$glasses4 = components.glasses) === null || _components$glasses4 === void 0 ? void 0 : _components$glasses4.value(components, colors)) !== null && _components$glasses$v4 !== void 0 ? _components$glasses$v4 : '', "\n</g>\n");
644
- }
645
- };
646
-
647
- const nose = {
648
- curve: (components, colors) => "\n<path d=\"M16.5 7c-.33 3.83 0 12.2 4 15 5 3.5-.5 12-10.5 10\" stroke=\"#000\" stroke-width=\"4\"/>\n",
649
- pointed: (components, colors) => "\n<path d=\"M16.5 3c0 14 7 25 7 25S20 34 10 32\" stroke=\"#000\" stroke-width=\"4\"/>\n",
650
- tound: (components, colors) => "\n<path d=\"M12.3 12.34c5.45-1.24 14.38.62 12.42 10.54-1.74 8.82-11.1 9.3-13.72 6.82\" stroke=\"#000\" stroke-width=\"4\"/>\n"
651
- };
652
-
653
- const ears = {
654
- attached: (components, colors) => {
655
- var _components$earrings$, _components$earrings;
656
-
657
- return "\n<path d=\"M30.5 6.18A23.78 23.78 0 0 0 23.08 5c-10.5 0-19 6.5-18 18.5 1.04 12.5 8.5 17 19 17A19.6 19.6 0 0 0 31 39.23\" stroke=\"#000\" stroke-width=\"8\"/>\n<path d=\"M31.5 39.04a19.38 19.38 0 0 1-7.42 1.46c-10.5 0-17.96-4.5-19-17-1-12 7.5-18.5 18-18.5 3.14 0 6.19.6 8.92 1.73l-.5 32.3Z\" fill=\"".concat(colors.base.value, "\"/>\n<path d=\"M27.5 13.5c-4-1.83-12.8-2.8-16 8\" stroke=\"#000\" stroke-width=\"4\"/>\n<path d=\"M17 14c2.17 1.83 6.3 7.5 5.5 15.5\" stroke=\"#000\" stroke-width=\"4\"/>\n<g transform=\"translate(3 35)\">\n").concat((_components$earrings$ = (_components$earrings = components.earrings) === null || _components$earrings === void 0 ? void 0 : _components$earrings.value(components, colors)) !== null && _components$earrings$ !== void 0 ? _components$earrings$ : '', "\n</g>\n");
658
- },
659
- detached: (components, colors) => {
660
- var _components$earrings$2, _components$earrings2;
661
-
662
- return "\n<path d=\"M37 8.25V7.13l-.95-.59A24.91 24.91 0 0 0 23.08 3C17.44 3 12.16 4.75 8.4 8.3c-3.8 3.58-5.86 8.83-5.31 15.37.52 6.37 2.66 11.06 6.2 14.17-.29 1-.37 2.08-.24 3.21a8.98 8.98 0 0 0 4.6 7.08C16.09 49.5 19.2 50 22.52 50c5.48 0 10.29-2.95 13.95-6.89l.53-.57V8.25Z\" stroke=\"#000\" stroke-width=\"4\"/>\n<path d=\"M42.97 23.98c.07-.65.1-1.3.1-1.98 0-10.22-9.5-17-20-17C12.6 5 4.09 11.5 5.09 23.5c.56 6.68 2.95 11.07 6.65 13.72a5.7 5.7 0 0 0-.68 3.6C11.68 46.1 16.19 48 22.52 48c11.1 0 19.9-14.05 20.45-24.02Z\" fill=\"".concat(colors.base.value, "\"/>\n<path d=\"M27.5 13.5c-4-1.83-12.8-2.8-16 8\" stroke=\"#000\" stroke-width=\"4\"/>\n<path d=\"M17 14c2.17 1.83 6.3 7.5 5.5 15.5\" stroke=\"#000\" stroke-width=\"4\"/>\n<g transform=\"translate(3 42)\">\n").concat((_components$earrings$2 = (_components$earrings2 = components.earrings) === null || _components$earrings2 === void 0 ? void 0 : _components$earrings2.value(components, colors)) !== null && _components$earrings$2 !== void 0 ? _components$earrings$2 : '', "\n</g>\n");
663
- }
664
- };
665
-
666
- const shirt$1 = {
667
- open: (components, colors) => "\n<path d=\"M260.37 90.86H-12.54l.1-.2C-7.89 81.38.5 64.31 11.4 49.03c6.2-8.67 13.13-16.65 20.54-22.27 7.41-5.61 15.12-8.73 22.95-8.04 15.06 1.31 28.46 9.56 41.93 17.83l3.83 2.35c14.48 8.82 29.35 17.02 45.72 13.43 5.53-1.2 9.26-3.8 11.6-7.16 2.32-3.3 3.15-7.15 3.3-10.66.14-3.52-.4-6.85-.96-9.26a39.89 39.89 0 0 0-.75-2.78c3.63-3.64 7.47-5.77 11.43-6.73 4.3-1.03 8.89-.73 13.72.7 9.73 2.87 20.14 10.25 30.3 19.73 18.61 17.37 35.69 41.14 45.36 54.68Z\" fill=\"".concat(colors.shirt.value, "\" stroke=\"#000\" stroke-width=\"4.27\"/>\n"),
668
- crew: (components, colors) => "\n<g stroke=\"#000\" stroke-width=\"4\">\n<path d=\"M260.7 91H-12.64C3.67 61.66 26.86 42.98 64.44 34.4c16.02-3.65 34.67-5.47 56.56-5.47 9.46 0 16.81 1.44 23.8 3.35 2.58.7 5.18 1.5 7.84 2.3 4.4 1.34 8.97 2.72 13.91 3.86l.14.03.15.01c46.12 3.8 73.78 24.3 93.85 52.5Z\" fill=\"".concat(colors.shirt.value, "\"/>\n<path d=\"m52.93 36.58 9.15-19.6a1 1 0 0 1 1.25-.51c37.93 13.42 72.43 12.48 104.4 3.57a1 1 0 0 1 1.09.38l13.93 19.05a.98.98 0 0 1-.42 1.5c-33.6 13.2-96.67 10.95-128.91-3.07a.98.98 0 0 1-.49-1.32Z\" fill=\"").concat(colors.shirt.value, "\"/>\n<path opacity=\".75\" d=\"m52.93 36.58 9.15-19.6a1 1 0 0 1 1.25-.51c37.93 13.42 72.43 12.48 104.4 3.57a1 1 0 0 1 1.09.38l13.93 19.05a.98.98 0 0 1-.42 1.5c-33.6 13.2-96.67 10.95-128.91-3.07a.98.98 0 0 1-.49-1.32Z\" fill=\"#fff\"/>\n</g>\n"),
669
- collared: (components, colors) => "\n<g stroke=\"#000\" stroke-width=\"4\">\n<path d=\"M126.77 67.58 128 66l-1.23 1.58 1.72 1.34 1.19-1.83v-.02l.05-.06.04-.05a28.57 28.57 0 0 1 .8-1.18 112.35 112.35 0 0 1 11.5-14.05c3.67-3.78 7.83-7.4 12.13-9.93 4.31-2.53 8.58-3.84 12.53-3.3C209.17 44.2 240.4 63 260.67 91h-273.3c16.3-29.34 39.49-48.02 77.07-56.59 1.6-.36 3.78-.25 6.5.38 2.7.63 5.77 1.73 9.09 3.19 6.62 2.9 14.02 7.16 20.97 11.56a355.78 355.78 0 0 1 25.24 17.63l.4.3.1.08.02.02h.01Z\" fill=\"".concat(colors.shirt.value, "\"/>\n<path d=\"m52.61 37.08 5.17-19.23c.2-.78 1.22-1 1.76-.4C74.4 33.7 93.16 33.08 99.4 32.33c.84-.1 1.5.82 1.1 1.58L87.34 58.86c-.2.38-.62.6-1.04.5-3.95-.82-23.62-5.63-33.57-21.5a1 1 0 0 1-.12-.78ZM183.2 36.98 171.61 17.5c-.4-.66-1.37-.65-1.79 0-5.73 8.83-15.63 12.9-19.09 14.1-.62.22-.9.96-.57 1.53l13.5 22.81c.2.34.59.53.97.42 2.13-.61 9.46-3.67 18.54-18.34a1 1 0 0 0 .01-1.04Z\" fill=\"").concat(colors.shirt.value, "\"/>\n<path d=\"m52.61 37.08 5.17-19.23c.2-.78 1.22-1 1.76-.4C74.4 33.7 93.16 33.08 99.4 32.33c.84-.1 1.5.82 1.1 1.58L87.34 58.86c-.2.38-.62.6-1.04.5-3.95-.82-23.62-5.63-33.57-21.5a1 1 0 0 1-.12-.78ZM183.2 36.98 171.61 17.5c-.4-.66-1.37-.65-1.79 0-5.73 8.83-15.63 12.9-19.09 14.1-.62.22-.9.96-.57 1.53l13.5 22.81c.2.34.59.53.97.42 2.13-.61 9.46-3.67 18.54-18.34a1 1 0 0 0 .01-1.04Z\" fill=\"#fff\" fill-opacity=\".75\"/>\n<path d=\"m109.5 54.5-9-21.5-7 15 16 6.5ZM141 53.5l9-21.5 7 15-16 6.5ZM70.5 14l-12 3 10 6.5 2-9.5ZM160 14l11 3-7 6.5-4-9.5Z\" fill=\"#000\" stroke-linejoin=\"round\"/>\n</g>\n")
670
- };
671
-
672
- const earrings = {
673
- hoop: (components, colors) => "\n<path d=\"M24 0A24 24 0 1 1 0 24c0-6.4 3.5-11.5 6.57-16.5L7.5 6\" stroke=\"".concat(colors.earring.value, "\" stroke-width=\"4\"/>\n"),
674
- stud: (components, colors) => "\n<circle cx=\"25\" cy=\"2\" r=\"4\" fill=\"".concat(colors.earring.value, "\"/>\n<circle cx=\"26\" cy=\"1\" r=\"1\" fill=\"#fff\"/>\n")
675
- };
676
-
677
- const glasses$1 = {
678
- round: (components, colors) => "\n<g stroke=\"".concat(colors.glasses.value, "\" stroke-width=\"4\">\n<circle cx=\"122.5\" cy=\"28\" r=\"26\"/>\n<circle cx=\"55.5\" cy=\"37\" r=\"26\"/>\n<path d=\"M97.5 35a8 8 0 0 0-16 0M30 39 0 44.5\"/>\n</g>\n"),
679
- square: (components, colors) => "\n<g stroke=\"".concat(colors.glasses.value, "\" stroke-width=\"4\">\n<path d=\"M34.5 42.5 0 49.12\" stroke-linecap=\"round\"/>\n<path d=\"M35.47 18.53 74.2 13.1a6 6 0 0 1 6.77 5.1l5.57 39.62a6 6 0 0 1-5.1 6.78l-34.48 4.84a6 6 0 0 1-6.65-4.48l-9.81-39.01a6 6 0 0 1 4.98-7.4ZM145.92 3.22 107.2 8.66a6 6 0 0 0-5.1 6.78l5.56 39.6a6 6 0 0 0 6.78 5.11l34.47-4.84a6 6 0 0 0 5.16-6.14l-1.32-40.2a6 6 0 0 0-6.83-5.75ZM83.5 37.12l22-3.5\"/>\n</g>\n")
680
- };
681
-
682
- const facialHair$1 = {
683
- beard: (components, colors) => "\n<path d=\"M146.13 49.15A73.74 73.74 0 0 1 27.69 123.4C10.5 107.5 6.5 56 2.7 31.65c14 31.5 49.62 33.94 83.5 28 28.5-5 51.3-6 51.3-45 1.88 2.62 6.97 27.59 8.63 34.5Z\" fill=\"".concat(colors.facialHair.value, "\"/>\n"),
684
- scruff: (components, colors) => "\n<g fill=\"".concat(colors.facialHair.value, "\" stroke=\"").concat(colors.facialHair.value, "\">\n<path d=\"M31 109a1 1 0 1 1-2 0 1 1 0 0 1 2 0ZM83 116a1 1 0 1 1-2 0 1 1 0 0 1 2 0ZM79 123a1 1 0 1 1-2 0 1 1 0 0 1 2 0ZM99 121a1 1 0 1 1-2 0 1 1 0 0 1 2 0ZM100 111a1 1 0 1 1-2 0 1 1 0 0 1 2 0ZM120 116a1 1 0 1 1-2 0 1 1 0 0 1 2 0ZM130 102a1 1 0 1 1-2 0 1 1 0 0 1 2 0ZM21 88a1 1 0 1 1-2 0 1 1 0 0 1 2 0ZM54 104a1 1 0 1 1-2 0 1 1 0 0 1 2 0ZM51 124a1 1 0 1 1-2 0 1 1 0 0 1 2 0ZM69 128a1 1 0 1 1-2 0 1 1 0 0 1 2 0ZM103 102a1 1 0 1 1-2 0 1 1 0 0 1 2 0ZM117 106a1 1 0 1 1-2 0 1 1 0 0 1 2 0ZM109 123a1 1 0 1 1-2 0 1 1 0 0 1 2 0ZM123 92a1 1 0 1 1-2 0 1 1 0 0 1 2 0ZM30 94a1 1 0 1 1-2 0 1 1 0 0 1 2 0ZM54 94a1 1 0 1 1-2 0 1 1 0 0 1 2 0ZM54 76a1 1 0 1 1-2 0 1 1 0 0 1 2 0ZM58 130a1 1 0 1 1-2 0 1 1 0 0 1 2 0ZM85 130a1 1 0 1 1-2 0 1 1 0 0 1 2 0ZM96 130a1 1 0 1 1-2 0 1 1 0 0 1 2 0ZM113 94a1 1 0 1 1-2 0 1 1 0 0 1 2 0ZM113 76a1 1 0 1 1-2 0 1 1 0 0 1 2 0ZM133 89a1 1 0 1 1-2 0 1 1 0 0 1 2 0ZM33 81a1 1 0 1 1-2 0 1 1 0 0 1 2 0ZM43 116a1 1 0 1 1-2 0 1 1 0 0 1 2 0ZM39 123a1 1 0 1 1-2 0 1 1 0 0 1 2 0ZM79 103a1 1 0 1 1-2 0 1 1 0 0 1 2 0ZM91 105a1 1 0 1 1-2 0 1 1 0 0 1 2 0ZM77 135a1 1 0 1 1-2 0 1 1 0 0 1 2 0ZM100 84a1 1 0 1 1-2 0 1 1 0 0 1 2 0ZM100 66a1 1 0 1 1-2 0 1 1 0 0 1 2 0ZM124 81a1 1 0 1 1-2 0 1 1 0 0 1 2 0ZM131 71a1 1 0 1 1-2 0 1 1 0 0 1 2 0ZM42 90a1 1 0 1 1-2 0 1 1 0 0 1 2 0ZM42 101a1 1 0 1 1-2 0 1 1 0 0 1 2 0ZM63 86a1 1 0 1 1-2 0 1 1 0 0 1 2 0ZM63 68a1 1 0 1 1-2 0 1 1 0 0 1 2 0ZM75 82a1 1 0 1 1-2 0 1 1 0 0 1 2 0ZM87 76a1 1 0 1 1-2 0 1 1 0 0 1 2 0ZM100 76a1 1 0 1 1-2 0 1 1 0 0 1 2 0Z\"/>\n<path d=\"M113 76a1 1 0 1 1-2 0 1 1 0 0 1 2 0ZM139 76a1 1 0 1 1-2 0 1 1 0 0 1 2 0ZM61 116a1 1 0 1 1-2 0 1 1 0 0 1 2 0ZM72 110a1 1 0 1 1-2 0 1 1 0 0 1 2 0ZM68 102a1 1 0 1 1-2 0 1 1 0 0 1 2 0ZM92 93a1 1 0 1 1-2 0 1 1 0 0 1 2 0ZM43 75a1 1 0 1 1-2 0 1 1 0 0 1 2 0ZM80 91a1 1 0 1 1-2 0 1 1 0 0 1 2 0ZM80 73a1 1 0 1 1-2 0 1 1 0 0 1 2 0ZM115 87a1 1 0 1 1-2 0 1 1 0 0 1 2 0ZM115 69a1 1 0 1 1-2 0 1 1 0 0 1 2 0ZM122 71a1 1 0 1 1-2 0 1 1 0 0 1 2 0ZM137 62a1 1 0 1 1-2 0 1 1 0 0 1 2 0ZM31 109a1 1 0 1 1-2 0 1 1 0 0 1 2 0ZM83 116a1 1 0 1 1-2 0 1 1 0 0 1 2 0ZM79 123a1 1 0 1 1-2 0 1 1 0 0 1 2 0ZM99 121a1 1 0 1 1-2 0 1 1 0 0 1 2 0ZM100 111a1 1 0 1 1-2 0 1 1 0 0 1 2 0ZM120 116a1 1 0 1 1-2 0 1 1 0 0 1 2 0ZM130 102a1 1 0 1 1-2 0 1 1 0 0 1 2 0ZM21 88a1 1 0 1 1-2 0 1 1 0 0 1 2 0ZM54 104a1 1 0 1 1-2 0 1 1 0 0 1 2 0ZM51 124a1 1 0 1 1-2 0 1 1 0 0 1 2 0ZM69 128a1 1 0 1 1-2 0 1 1 0 0 1 2 0ZM103 102a1 1 0 1 1-2 0 1 1 0 0 1 2 0ZM117 106a1 1 0 1 1-2 0 1 1 0 0 1 2 0ZM109 123a1 1 0 1 1-2 0 1 1 0 0 1 2 0ZM123 92a1 1 0 1 1-2 0 1 1 0 0 1 2 0ZM30 94a1 1 0 1 1-2 0 1 1 0 0 1 2 0ZM54 94a1 1 0 1 1-2 0 1 1 0 0 1 2 0ZM54 76a1 1 0 1 1-2 0 1 1 0 0 1 2 0ZM58 130a1 1 0 1 1-2 0 1 1 0 0 1 2 0ZM85 130a1 1 0 1 1-2 0 1 1 0 0 1 2 0ZM96 130a1 1 0 1 1-2 0 1 1 0 0 1 2 0ZM113 94a1 1 0 1 1-2 0 1 1 0 0 1 2 0Z\"/>\n<path d=\"M113 76a1 1 0 1 1-2 0 1 1 0 0 1 2 0ZM133 89a1 1 0 1 1-2 0 1 1 0 0 1 2 0ZM33 81a1 1 0 1 1-2 0 1 1 0 0 1 2 0ZM43 116a1 1 0 1 1-2 0 1 1 0 0 1 2 0ZM39 123a1 1 0 1 1-2 0 1 1 0 0 1 2 0ZM79 103a1 1 0 1 1-2 0 1 1 0 0 1 2 0ZM91 105a1 1 0 1 1-2 0 1 1 0 0 1 2 0ZM77 135a1 1 0 1 1-2 0 1 1 0 0 1 2 0ZM100 84a1 1 0 1 1-2 0 1 1 0 0 1 2 0ZM100 66a1 1 0 1 1-2 0 1 1 0 0 1 2 0ZM124 81a1 1 0 1 1-2 0 1 1 0 0 1 2 0ZM131 71a1 1 0 1 1-2 0 1 1 0 0 1 2 0ZM42 90a1 1 0 1 1-2 0 1 1 0 0 1 2 0ZM42 101a1 1 0 1 1-2 0 1 1 0 0 1 2 0ZM63 86a1 1 0 1 1-2 0 1 1 0 0 1 2 0ZM63 68a1 1 0 1 1-2 0 1 1 0 0 1 2 0ZM75 82a1 1 0 1 1-2 0 1 1 0 0 1 2 0ZM87 76a1 1 0 1 1-2 0 1 1 0 0 1 2 0ZM100 76a1 1 0 1 1-2 0 1 1 0 0 1 2 0Z\"/>\n<path d=\"M113 76a1 1 0 1 1-2 0 1 1 0 0 1 2 0ZM139 76a1 1 0 1 1-2 0 1 1 0 0 1 2 0ZM61 116a1 1 0 1 1-2 0 1 1 0 0 1 2 0ZM72 110a1 1 0 1 1-2 0 1 1 0 0 1 2 0ZM68 102a1 1 0 1 1-2 0 1 1 0 0 1 2 0ZM92 93a1 1 0 1 1-2 0 1 1 0 0 1 2 0ZM43 75a1 1 0 1 1-2 0 1 1 0 0 1 2 0ZM80 91a1 1 0 1 1-2 0 1 1 0 0 1 2 0ZM80 73a1 1 0 1 1-2 0 1 1 0 0 1 2 0ZM115 87a1 1 0 1 1-2 0 1 1 0 0 1 2 0ZM115 69a1 1 0 1 1-2 0 1 1 0 0 1 2 0ZM122 71a1 1 0 1 1-2 0 1 1 0 0 1 2 0ZM137 62a1 1 0 1 1-2 0 1 1 0 0 1 2 0Z\"/>\n</g>\n")
685
- };
686
-
687
- var components = /*#__PURE__*/Object.freeze({
688
- __proto__: null,
689
- base: base$1,
690
- mouth: mouth$1,
691
- eyebrows: eyebrows,
692
- hair: hair$1,
693
- eyes: eyes$1,
694
- nose: nose,
695
- ears: ears,
696
- shirt: shirt$1,
697
- earrings: earrings,
698
- glasses: glasses$1,
699
- facialHair: facialHair$1
700
- });
701
-
702
- function pickComponent(_ref) {
703
- let {
704
- prng,
705
- group,
706
- values = []
707
- } = _ref;
708
- const componentCollection = components;
709
- const key = prng.pick(values);
710
-
711
- if (componentCollection[group][key]) {
712
- return {
713
- name: key,
714
- value: componentCollection[group][key]
715
- };
716
- } else {
717
- return undefined;
718
- }
719
- }
720
-
721
- function getComponents(_ref) {
722
- let {
723
- prng,
724
- options
725
- } = _ref;
726
- const baseComponent = pickComponent({
727
- prng,
728
- group: 'base',
729
- values: options.base
730
- });
731
- const mouthComponent = pickComponent({
732
- prng,
733
- group: 'mouth',
734
- values: options.mouth
735
- });
736
- const eyebrowsComponent = pickComponent({
737
- prng,
738
- group: 'eyebrows',
739
- values: options.eyebrows
740
- });
741
- const hairComponent = pickComponent({
742
- prng,
743
- group: 'hair',
744
- values: options.hair
745
- });
746
- const eyesComponent = pickComponent({
747
- prng,
748
- group: 'eyes',
749
- values: options.eyes
750
- });
751
- const noseComponent = pickComponent({
752
- prng,
753
- group: 'nose',
754
- values: options.nose
755
- });
756
- const earsComponent = pickComponent({
757
- prng,
758
- group: 'ears',
759
- values: options.ears
760
- });
761
- const shirtComponent = pickComponent({
762
- prng,
763
- group: 'shirt',
764
- values: options.shirt
765
- });
766
- const earringsComponent = pickComponent({
767
- prng,
768
- group: 'earrings',
769
- values: options.earrings
770
- });
771
- const glassesComponent = pickComponent({
772
- prng,
773
- group: 'glasses',
774
- values: options.glasses
775
- });
776
- const facialHairComponent = pickComponent({
777
- prng,
778
- group: 'facialHair',
779
- values: options.facialHair
780
- });
781
- return {
782
- base: baseComponent,
783
- mouth: mouthComponent,
784
- eyebrows: eyebrowsComponent,
785
- hair: prng.bool(options.hairProbability) ? hairComponent : undefined,
786
- eyes: eyesComponent,
787
- nose: noseComponent,
788
- ears: earsComponent,
789
- shirt: shirtComponent,
790
- earrings: prng.bool(options.earringsProbability) ? earringsComponent : undefined,
791
- glasses: prng.bool(options.glassesProbability) ? glassesComponent : undefined,
792
- facialHair: prng.bool(options.facialHairProbability) ? facialHairComponent : undefined
793
- };
794
- }
795
-
796
- const base = {
797
- apricot: 'rgba(249, 201, 182, 1)',
798
- coast: 'rgba(172, 102, 81, 1)',
799
- topaz: 'rgba(119, 49, 29, 1)',
800
- lavender: 'rgba(146, 135, 255, 1)',
801
- sky: 'rgba(107, 217, 233, 1)',
802
- salmon: 'rgba(252, 144, 159, 1)',
803
- canary: 'rgba(244, 209, 80, 1)',
804
- calm: 'rgba(224, 221, 255, 1)',
805
- azure: 'rgba(210, 239, 243, 1)',
806
- seashell: 'rgba(255, 237, 239, 1)',
807
- mellow: 'rgba(255, 235, 164, 1)',
808
- black: 'rgba(0, 0, 0, 1)',
809
- white: 'rgba(255, 255, 255, 1)'
810
- };
811
-
812
- const earring = {
813
- apricot: 'rgba(249, 201, 182, 1)',
814
- azure: 'rgba(210, 239, 243, 1)',
815
- black: 'rgba(0, 0, 0, 1)',
816
- calm: 'rgba(224, 221, 255, 1)',
817
- canary: 'rgba(244, 209, 80, 1)',
818
- coast: 'rgba(172, 102, 81, 1)',
819
- lavender: 'rgba(146, 135, 255, 1)',
820
- mellow: 'rgba(255, 235, 164, 1)',
821
- salmon: 'rgba(252, 144, 159, 1)',
822
- seashell: 'rgba(255, 237, 239, 1)',
823
- sky: 'rgba(107, 217, 233, 1)',
824
- topaz: 'rgba(119, 49, 29, 1)',
825
- white: 'rgba(255, 255, 255, 1)'
826
- };
827
-
828
- const eyeShadow = {
829
- apricot: 'rgba(249, 201, 182, 1)',
830
- azure: 'rgba(210, 239, 243, 1)',
831
- black: 'rgba(0, 0, 0, 1)',
832
- calm: 'rgba(224, 221, 255, 1)',
833
- canary: 'rgba(244, 209, 80, 1)',
834
- coast: 'rgba(172, 102, 81, 1)',
835
- lavender: 'rgba(146, 135, 255, 1)',
836
- mellow: 'rgba(255, 235, 164, 1)',
837
- salmon: 'rgba(252, 144, 159, 1)',
838
- seashell: 'rgba(255, 237, 239, 1)',
839
- sky: 'rgba(107, 217, 233, 1)',
840
- topaz: 'rgba(119, 49, 29, 1)',
841
- white: 'rgba(255, 255, 255, 1)'
842
- };
843
-
844
- const eyebrow = {
845
- apricot: 'rgba(249, 201, 182, 1)',
846
- azure: 'rgba(210, 239, 243, 1)',
847
- black: 'rgba(0, 0, 0, 1)',
848
- calm: 'rgba(224, 221, 255, 1)',
849
- canary: 'rgba(244, 209, 80, 1)',
850
- coast: 'rgba(172, 102, 81, 1)',
851
- lavender: 'rgba(146, 135, 255, 1)',
852
- mellow: 'rgba(255, 235, 164, 1)',
853
- salmon: 'rgba(252, 144, 159, 1)',
854
- seashell: 'rgba(255, 237, 239, 1)',
855
- sky: 'rgba(107, 217, 233, 1)',
856
- topaz: 'rgba(119, 49, 29, 1)',
857
- white: 'rgba(255, 255, 255, 1)'
858
- };
859
-
860
- const facialHair = {
861
- apricot: 'rgba(249, 201, 182, 1)',
862
- azure: 'rgba(210, 239, 243, 1)',
863
- black: 'rgba(0, 0, 0, 1)',
864
- calm: 'rgba(224, 221, 255, 1)',
865
- canary: 'rgba(244, 209, 80, 1)',
866
- coast: 'rgba(172, 102, 81, 1)',
867
- lavender: 'rgba(146, 135, 255, 1)',
868
- mellow: 'rgba(255, 235, 164, 1)',
869
- salmon: 'rgba(252, 144, 159, 1)',
870
- seashell: 'rgba(255, 237, 239, 1)',
871
- sky: 'rgba(107, 217, 233, 1)',
872
- topaz: 'rgba(119, 49, 29, 1)',
873
- white: 'rgba(255, 255, 255, 1)'
874
- };
875
-
876
- const glasses = {
877
- apricot: 'rgba(249, 201, 182, 1)',
878
- azure: 'rgba(210, 239, 243, 1)',
879
- black: 'rgba(0, 0, 0, 1)',
880
- calm: 'rgba(224, 221, 255, 1)',
881
- canary: 'rgba(244, 209, 80, 1)',
882
- coast: 'rgba(172, 102, 81, 1)',
883
- lavender: 'rgba(146, 135, 255, 1)',
884
- mellow: 'rgba(255, 235, 164, 1)',
885
- salmon: 'rgba(252, 144, 159, 1)',
886
- seashell: 'rgba(255, 237, 239, 1)',
887
- sky: 'rgba(107, 217, 233, 1)',
888
- topaz: 'rgba(119, 49, 29, 1)',
889
- white: 'rgba(255, 255, 255, 1)'
890
- };
891
-
892
- const hair = {
893
- apricot: 'rgba(249, 201, 182, 1)',
894
- azure: 'rgba(210, 239, 243, 1)',
895
- black: 'rgba(0, 0, 0, 1)',
896
- calm: 'rgba(224, 221, 255, 1)',
897
- canary: 'rgba(244, 209, 80, 1)',
898
- coast: 'rgba(172, 102, 81, 1)',
899
- lavender: 'rgba(146, 135, 255, 1)',
900
- mellow: 'rgba(255, 235, 164, 1)',
901
- salmon: 'rgba(252, 144, 159, 1)',
902
- seashell: 'rgba(255, 237, 239, 1)',
903
- sky: 'rgba(107, 217, 233, 1)',
904
- topaz: 'rgba(119, 49, 29, 1)',
905
- white: 'rgba(255, 255, 255, 1)'
906
- };
907
-
908
- const mouth = {
909
- black: 'rgba(0, 0, 0, 1)'
910
- };
911
-
912
- const shirt = {
913
- apricot: 'rgba(249, 201, 182, 1)',
914
- azure: 'rgba(210, 239, 243, 1)',
915
- black: 'rgba(0, 0, 0, 1)',
916
- calm: 'rgba(224, 221, 255, 1)',
917
- canary: 'rgba(244, 209, 80, 1)',
918
- coast: 'rgba(172, 102, 81, 1)',
919
- lavender: 'rgba(146, 135, 255, 1)',
920
- mellow: 'rgba(255, 235, 164, 1)',
921
- salmon: 'rgba(252, 144, 159, 1)',
922
- seashell: 'rgba(255, 237, 239, 1)',
923
- sky: 'rgba(107, 217, 233, 1)',
924
- topaz: 'rgba(119, 49, 29, 1)',
925
- white: 'rgba(255, 255, 255, 1)'
926
- };
927
-
928
- const eyes = {
929
- apricot: 'rgba(249, 201, 182, 1)',
930
- azure: 'rgba(210, 239, 243, 1)',
931
- black: 'rgba(0, 0, 0, 1)',
932
- calm: 'rgba(224, 221, 255, 1)',
933
- canary: 'rgba(244, 209, 80, 1)',
934
- coast: 'rgba(172, 102, 81, 1)',
935
- lavender: 'rgba(146, 135, 255, 1)',
936
- mellow: 'rgba(255, 235, 164, 1)',
937
- salmon: 'rgba(252, 144, 159, 1)',
938
- seashell: 'rgba(255, 237, 239, 1)',
939
- sky: 'rgba(107, 217, 233, 1)',
940
- topaz: 'rgba(119, 49, 29, 1)',
941
- white: 'rgba(255, 255, 255, 1)'
942
- };
943
-
944
- var colors = /*#__PURE__*/Object.freeze({
945
- __proto__: null,
946
- base: base,
947
- earring: earring,
948
- eyeShadow: eyeShadow,
949
- eyebrow: eyebrow,
950
- facialHair: facialHair,
951
- glasses: glasses,
952
- hair: hair,
953
- mouth: mouth,
954
- shirt: shirt,
955
- eyes: eyes
956
- });
957
-
958
- function pickColor(_ref) {
959
- var _colorCollection$grou;
960
-
961
- let {
962
- prng,
963
- group,
964
- values = []
965
- } = _ref;
966
- const colorCollection = colors;
967
-
968
- if (values.length === 0) {
969
- values.push('transparent');
970
- }
971
-
972
- const key = prng.pick(values);
973
- return {
974
- name: key,
975
- value: (_colorCollection$grou = colorCollection[group][key]) !== null && _colorCollection$grou !== void 0 ? _colorCollection$grou : key
976
- };
977
- }
978
-
979
- function getColors(_ref) {
980
- let {
981
- prng,
982
- options
983
- } = _ref;
984
- return {
985
- base: pickColor({
986
- prng,
987
- group: 'base',
988
- values: options.baseColor
989
- }),
990
- earring: pickColor({
991
- prng,
992
- group: 'earring',
993
- values: options.earringColor
994
- }),
995
- eyeShadow: pickColor({
996
- prng,
997
- group: 'eyeShadow',
998
- values: options.eyeShadowColor
999
- }),
1000
- eyebrow: pickColor({
1001
- prng,
1002
- group: 'eyebrow',
1003
- values: options.eyebrowColor
1004
- }),
1005
- facialHair: pickColor({
1006
- prng,
1007
- group: 'facialHair',
1008
- values: options.facialHairColor
1009
- }),
1010
- glasses: pickColor({
1011
- prng,
1012
- group: 'glasses',
1013
- values: options.glassesColor
1014
- }),
1015
- hair: pickColor({
1016
- prng,
1017
- group: 'hair',
1018
- values: options.hairColor
1019
- }),
1020
- mouth: pickColor({
1021
- prng,
1022
- group: 'mouth',
1023
- values: options.mouthColor
1024
- }),
1025
- shirt: pickColor({
1026
- prng,
1027
- group: 'shirt',
1028
- values: options.shirtColor
1029
- }),
1030
- eyes: pickColor({
1031
- prng,
1032
- group: 'eyes',
1033
- values: options.eyesColor
1034
- })
1035
- };
1036
- }
1037
-
1038
- function onPreCreate(_ref) {
1039
- let {
1040
- prng,
1041
- options,
1042
- preview
1043
- } = _ref;
1044
- // Prevent baseColor from being used a second time if possible.
1045
- options.baseColor = options.baseColor && options.baseColor.length > 0 ? [prng.pick(options.baseColor)] : [];
1046
-
1047
- for (const colorName of ['eyebrows', 'hair', 'eyes', 'nose', 'ears', 'shirt', 'earrings', 'glasses', 'facialHair']) {
1048
- var _options$;
1049
-
1050
- // @ts-ignore
1051
- const colorOption = (_options$ = options["".concat(colorName, "Color")]) !== null && _options$ !== void 0 ? _options$ : [];
1052
- const index = colorOption.indexOf(options.baseColor[0]);
1053
-
1054
- if (colorOption.length > 1 && index > -1) {
1055
- colorOption.splice(index, 1);
1056
- }
1057
- }
1058
- }
1059
-
1060
- function onPostCreate(_ref) {
1061
- let {
1062
- prng,
1063
- options,
1064
- components,
1065
- colors,
1066
- preview
1067
- } = _ref;
1068
-
1069
- // Ensure that the mouth remains visible. #132
1070
- if (components.facialHair && colors.facialHair.value === colors.mouth.value) {
1071
- colors.mouth.value = 'rgba(255, 255, 255, .2)';
1072
- }
1073
- }
1074
-
1075
- const dimensions = {
1076
- base: {
1077
- width: 200,
1078
- height: 320
1079
- },
1080
- mouth: {
1081
- width: 64,
1082
- height: 64
1083
- },
1084
- eyebrows: {
1085
- width: 149,
1086
- height: 48
1087
- },
1088
- hair: {
1089
- width: 240,
1090
- height: 200
1091
- },
1092
- eyes: {
1093
- width: 96,
1094
- height: 48
1095
- },
1096
- nose: {
1097
- width: 32,
1098
- height: 40
1099
- },
1100
- ears: {
1101
- width: 48,
1102
- height: 48
1103
- },
1104
- shirt: {
1105
- width: 258,
1106
- height: 90.8974609375
1107
- },
1108
- earrings: {
1109
- width: 48,
1110
- height: 48
1111
- },
1112
- glasses: {
1113
- width: 150.5,
1114
- height: 65
1115
- },
1116
- facialHair: {
1117
- width: 163.72164916992188,
1118
- height: 153.0578155517578
1119
- }
1120
- };
1121
-
1122
- const style = {
1123
- meta: {
1124
- title: 'Avatar Illustration System',
1125
- creator: 'Micah Lanier',
1126
- source: 'https://www.figma.com/community/file/829741575478342595',
1127
- license: {
1128
- name: 'CC BY 4.0',
1129
- url: 'https://creativecommons.org/licenses/by/4.0/'
1130
- }
1131
- },
1132
- schema: schema$1,
1133
- create: _ref => {
1134
- var _components$base$valu, _components$base, _components$mouth$val, _components$mouth, _components$eyebrows$, _components$eyebrows, _components$hair$valu, _components$hair, _components$eyes$valu, _components$eyes, _components$nose$valu, _components$nose, _components$ears$valu, _components$ears, _components$shirt$val, _components$shirt;
1135
-
1136
- let {
1137
- prng,
1138
- options
1139
- } = _ref;
1140
- onPreCreate({
1141
- prng,
1142
- options,
1143
- preview: false
1144
- });
1145
- const components = getComponents({
1146
- prng,
1147
- options
1148
- });
1149
- const colors = getColors({
1150
- prng,
1151
- options
1152
- });
1153
- onPostCreate({
1154
- prng,
1155
- options,
1156
- components,
1157
- colors,
1158
- preview: false
1159
- });
1160
- return {
1161
- attributes: {
1162
- viewBox: '0 0 360 360',
1163
- fill: 'none',
1164
- 'shape-rendering': 'auto'
1165
- },
1166
- body: "\n<g transform=\"translate(80 23)\">\n".concat((_components$base$valu = (_components$base = components.base) === null || _components$base === void 0 ? void 0 : _components$base.value(components, colors)) !== null && _components$base$valu !== void 0 ? _components$base$valu : '', "\n</g>\n<g transform=\"translate(170 183)\">\n").concat((_components$mouth$val = (_components$mouth = components.mouth) === null || _components$mouth === void 0 ? void 0 : _components$mouth.value(components, colors)) !== null && _components$mouth$val !== void 0 ? _components$mouth$val : '', "\n</g>\n<g transform=\"translate(110 102)\">\n").concat((_components$eyebrows$ = (_components$eyebrows = components.eyebrows) === null || _components$eyebrows === void 0 ? void 0 : _components$eyebrows.value(components, colors)) !== null && _components$eyebrows$ !== void 0 ? _components$eyebrows$ : '', "\n</g>\n<g transform=\"translate(49 11)\">\n").concat((_components$hair$valu = (_components$hair = components.hair) === null || _components$hair === void 0 ? void 0 : _components$hair.value(components, colors)) !== null && _components$hair$valu !== void 0 ? _components$hair$valu : '', "\n</g>\n<g transform=\"translate(142 119)\">\n").concat((_components$eyes$valu = (_components$eyes = components.eyes) === null || _components$eyes === void 0 ? void 0 : _components$eyes.value(components, colors)) !== null && _components$eyes$valu !== void 0 ? _components$eyes$valu : '', "\n</g>\n<g transform=\"rotate(-8 1149.44 -1186.92)\">\n").concat((_components$nose$valu = (_components$nose = components.nose) === null || _components$nose === void 0 ? void 0 : _components$nose.value(components, colors)) !== null && _components$nose$valu !== void 0 ? _components$nose$valu : '', "\n</g>\n<g transform=\"translate(84 154)\">\n").concat((_components$ears$valu = (_components$ears = components.ears) === null || _components$ears === void 0 ? void 0 : _components$ears.value(components, colors)) !== null && _components$ears$valu !== void 0 ? _components$ears$valu : '', "\n</g>\n<g transform=\"translate(53 272)\">\n").concat((_components$shirt$val = (_components$shirt = components.shirt) === null || _components$shirt === void 0 ? void 0 : _components$shirt.value(components, colors)) !== null && _components$shirt$val !== void 0 ? _components$shirt$val : '', "\n</g>\n")
1167
- };
1168
- },
1169
- preview: _ref2 => {
1170
- let {
1171
- prng,
1172
- options,
1173
- property
1174
- } = _ref2;
1175
- const componentGroup = property.toString();
1176
- const colorGroup = property.toString().replace(/Color$/, '');
1177
- onPreCreate({
1178
- prng,
1179
- options,
1180
- preview: true
1181
- });
1182
- const components = getComponents({
1183
- prng,
1184
- options
1185
- });
1186
- const colors = getColors({
1187
- prng,
1188
- options
1189
- });
1190
- onPostCreate({
1191
- prng,
1192
- options,
1193
- components,
1194
- colors,
1195
- preview: true
1196
- });
1197
-
1198
- if (componentGroup in components) {
1199
- var _components$component, _components$component2;
1200
-
1201
- const {
1202
- width,
1203
- height
1204
- } = dimensions[componentGroup];
1205
- return {
1206
- attributes: {
1207
- viewBox: "0 0 ".concat(width, " ").concat(height),
1208
- fill: 'none',
1209
- 'shape-rendering': 'auto'
1210
- },
1211
- body: (_components$component = (_components$component2 = components[componentGroup]) === null || _components$component2 === void 0 ? void 0 : _components$component2.value(components, colors)) !== null && _components$component !== void 0 ? _components$component : ''
1212
- };
1213
- }
1214
-
1215
- if (colorGroup in colors) {
1216
- return {
1217
- attributes: {
1218
- viewBox: "0 0 1 1",
1219
- fill: 'none',
1220
- 'shape-rendering': 'auto'
1221
- },
1222
- body: "<rect width=\"1\" height=\"1\" fill=\"".concat(colors[colorGroup].value, "\" />")
1223
- };
1224
- }
1225
-
1226
- return undefined;
1227
- }
1228
- };
1229
-
1230
- /*!
1231
- * Micah (@dicebear/micah)
1232
- *
1233
- * Code licensed under MIT License.
1234
- * Copyright (c) 2021 Florian Körner
1235
- *
1236
- * Design "Avatar Illustration System" by Micah Lanier licensed under CC BY 4.0.
1237
- * Source: https://www.figma.com/community/file/829741575478342595
1238
- * License: https://creativecommons.org/licenses/by/4.0/
1239
- */
1240
- let {
1241
- create,
1242
- preview,
1243
- meta,
1244
- schema
1245
- } = style;
1246
-
1247
- export { create, meta, preview, schema };