@dicebear/personas 4.9.0 → 4.10.2
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.es.js +80 -192
- package/dist/index.js +81 -193
- package/dist/index.umd.js +2 -2
- package/package.json +4 -4
package/dist/index.es.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { utils } from '@dicebear/avatars';
|
|
2
2
|
|
|
3
|
-
|
|
3
|
+
const schema$1 = {
|
|
4
4
|
"title": "Options",
|
|
5
5
|
"$schema": "http://json-schema.org/draft-07/schema#",
|
|
6
6
|
"properties": {
|
|
@@ -104,160 +104,68 @@ var schema$1 = {
|
|
|
104
104
|
"additionalProperties": false
|
|
105
105
|
};
|
|
106
106
|
|
|
107
|
-
|
|
108
|
-
'open':
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
'
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
'wink': function wink(components, colors) {
|
|
115
|
-
return "\n<g fill=\"#1B0640\">\n<path d=\"M4 4.5a1.5 1.5 0 1 0 3 0 1.5 1.5 0 0 0-3 0ZM21.244 3.907a.75.75 0 0 0-.837-.651l-4 .5a.75.75 0 0 0 .186 1.488l4-.5a.75.75 0 0 0 .651-.837Z\"/>\n</g>\n";
|
|
116
|
-
},
|
|
117
|
-
'glasses': function glasses(components, colors) {
|
|
118
|
-
return "\n<g fill=\"#1B0640\">\n<path d=\"M6 6a1.5 1.5 0 1 0 0-3 1.5 1.5 0 0 0 0 3ZM18 6a1.5 1.5 0 1 0 0-3 1.5 1.5 0 0 0 0 3Z\"/>\n</g>\n<g opacity=\".303\" fill=\"#fff\">\n<path d=\"M9 2H3v6h6V2ZM21 2h-6v6h6V2Z\"/>\n</g>\n<path fill-rule=\"evenodd\" clip-rule=\"evenodd\" d=\"M11 1.053h2c.655 0 1.214-.2 1.845-.427C15.659.334 16.59 0 18 0c1.667 0 3.333.35 5 1.053l1 .526v1.579l-1 .526v3.158C23 8.586 21.657 10 20 10h-4c-1.657 0-3-1.414-3-3.158V3.158h-2v3.684C11 8.586 9.657 10 8 10H4c-1.657 0-3-1.414-3-3.158V3.684l-1-.526V1.579l1-.526C2.667.35 4.333 0 6 0c1.409 0 2.341.334 3.155.626.63.226 1.19.427 1.845.427Zm-2.757 1.47C7.399 2.228 6.818 2.106 6 2.106c-.995 0-1.993.15-3 .45v4.287c0 .581.448 1.053 1 1.053h4c.552 0 1-.472 1-1.053V2.791c-.209-.07-.447-.155-.757-.267ZM15 2.792c.209-.07.447-.155.758-.267.843-.297 1.424-.419 2.242-.419.995 0 1.993.15 3 .45v4.287c0 .581-.448 1.053-1 1.053h-4c-.552 0-1-.472-1-1.053V2.791Z\" fill=\"#1B0640\"/>\n";
|
|
119
|
-
},
|
|
120
|
-
'happy': function happy(components, colors) {
|
|
121
|
-
return "\n<g fill=\"#1B0640\">\n<path d=\"M3.763 6.212a.75.75 0 0 0 .949-.475c.233-.699.617-.987 1.288-.987s1.056.288 1.289.987a.75.75 0 1 0 1.423-.474C8.278 3.962 7.329 3.25 6 3.25c-1.329 0-2.278.712-2.711 2.013a.75.75 0 0 0 .474.949ZM15.763 6.212a.75.75 0 0 0 .949-.475c.233-.699.617-.987 1.288-.987s1.055.288 1.288.987a.75.75 0 1 0 1.424-.474C20.277 3.962 19.329 3.25 18 3.25c-1.329 0-2.278.712-2.711 2.013a.75.75 0 0 0 .474.949Z\"/>\n</g>\n";
|
|
122
|
-
},
|
|
123
|
-
'sunglasses': function sunglasses(components, colors) {
|
|
124
|
-
return "\n<g fill=\"#1B0640\">\n<path d=\"M6 6a1.5 1.5 0 1 0 0-3 1.5 1.5 0 0 0 0 3ZM18 6a1.5 1.5 0 1 0 0-3 1.5 1.5 0 0 0 0 3Z\"/>\n<g opacity=\".801\">\n<path d=\"M9 2H3v6h6V2ZM21 2h-6v6h6V2Z\"/>\n</g>\n<path fill-rule=\"evenodd\" clip-rule=\"evenodd\" d=\"M13 1.053c.655 0 1.214-.2 1.845-.427C15.659.334 16.59 0 18 0c1.667 0 3.333.35 5 1.053l1 .526v1.579l-1 .526v3.158C23 8.586 21.657 10 20 10h-4c-1.657 0-3-1.414-3-3.158V3.158h-2v3.684C11 8.586 9.657 10 8 10H4c-1.657 0-3-1.414-3-3.158V3.684l-1-.526V1.579l1-.526C2.667.35 4.333 0 6 0c1.409 0 2.341.334 3.155.626.63.226 1.19.427 1.845.427h2Zm-4.757 1.47C7.399 2.228 6.818 2.106 6 2.106c-.995 0-1.993.15-3 .45v4.287c0 .581.448 1.053 1 1.053h4c.552 0 1-.472 1-1.053V2.791c-.209-.07-.447-.155-.757-.267ZM15 2.792c.209-.07.447-.155.758-.267.843-.297 1.424-.419 2.242-.419.995 0 1.993.15 3 .45v4.287c0 .581-.448 1.053-1 1.053h-4c-.552 0-1-.472-1-1.053V2.791Z\"/>\n</g>\n";
|
|
125
|
-
}
|
|
107
|
+
const eyes = {
|
|
108
|
+
'open': (components, colors) => "\n<path fill-rule=\"evenodd\" clip-rule=\"evenodd\" d=\"M4 4.5a1.5 1.5 0 1 0 3 0 1.5 1.5 0 0 0-3 0Zm13 0a1.5 1.5 0 1 0 3 0 1.5 1.5 0 0 0-3 0Z\" fill=\"#1B0640\"/>\n",
|
|
109
|
+
'sleep': (components, colors) => "\n<g fill=\"#1B0640\">\n<path d=\"M3.632 4.004a1 1 0 0 0 .372 1.364C4.734 5.785 5.486 6 6.25 6s1.517-.215 2.246-.632a1 1 0 0 0-.992-1.736C7.066 3.882 6.652 4 6.25 4s-.816-.118-1.254-.368a1 1 0 0 0-1.364.372ZM15.632 4.004a1 1 0 0 0 .372 1.364c.73.417 1.482.632 2.246.632s1.517-.215 2.246-.632a1 1 0 0 0-.992-1.736c-.438.25-.852.368-1.254.368s-.817-.118-1.254-.368a1 1 0 0 0-1.364.372Z\"/>\n</g>\n",
|
|
110
|
+
'wink': (components, colors) => "\n<g fill=\"#1B0640\">\n<path d=\"M4 4.5a1.5 1.5 0 1 0 3 0 1.5 1.5 0 0 0-3 0ZM21.244 3.907a.75.75 0 0 0-.837-.651l-4 .5a.75.75 0 0 0 .186 1.488l4-.5a.75.75 0 0 0 .651-.837Z\"/>\n</g>\n",
|
|
111
|
+
'glasses': (components, colors) => "\n<g fill=\"#1B0640\">\n<path d=\"M6 6a1.5 1.5 0 1 0 0-3 1.5 1.5 0 0 0 0 3ZM18 6a1.5 1.5 0 1 0 0-3 1.5 1.5 0 0 0 0 3Z\"/>\n</g>\n<g opacity=\".303\" fill=\"#fff\">\n<path d=\"M9 2H3v6h6V2ZM21 2h-6v6h6V2Z\"/>\n</g>\n<path fill-rule=\"evenodd\" clip-rule=\"evenodd\" d=\"M11 1.053h2c.655 0 1.214-.2 1.845-.427C15.659.334 16.59 0 18 0c1.667 0 3.333.35 5 1.053l1 .526v1.579l-1 .526v3.158C23 8.586 21.657 10 20 10h-4c-1.657 0-3-1.414-3-3.158V3.158h-2v3.684C11 8.586 9.657 10 8 10H4c-1.657 0-3-1.414-3-3.158V3.684l-1-.526V1.579l1-.526C2.667.35 4.333 0 6 0c1.409 0 2.341.334 3.155.626.63.226 1.19.427 1.845.427Zm-2.757 1.47C7.399 2.228 6.818 2.106 6 2.106c-.995 0-1.993.15-3 .45v4.287c0 .581.448 1.053 1 1.053h4c.552 0 1-.472 1-1.053V2.791c-.209-.07-.447-.155-.757-.267ZM15 2.792c.209-.07.447-.155.758-.267.843-.297 1.424-.419 2.242-.419.995 0 1.993.15 3 .45v4.287c0 .581-.448 1.053-1 1.053h-4c-.552 0-1-.472-1-1.053V2.791Z\" fill=\"#1B0640\"/>\n",
|
|
112
|
+
'happy': (components, colors) => "\n<g fill=\"#1B0640\">\n<path d=\"M3.763 6.212a.75.75 0 0 0 .949-.475c.233-.699.617-.987 1.288-.987s1.056.288 1.289.987a.75.75 0 1 0 1.423-.474C8.278 3.962 7.329 3.25 6 3.25c-1.329 0-2.278.712-2.711 2.013a.75.75 0 0 0 .474.949ZM15.763 6.212a.75.75 0 0 0 .949-.475c.233-.699.617-.987 1.288-.987s1.055.288 1.288.987a.75.75 0 1 0 1.424-.474C20.277 3.962 19.329 3.25 18 3.25c-1.329 0-2.278.712-2.711 2.013a.75.75 0 0 0 .474.949Z\"/>\n</g>\n",
|
|
113
|
+
'sunglasses': (components, colors) => "\n<g fill=\"#1B0640\">\n<path d=\"M6 6a1.5 1.5 0 1 0 0-3 1.5 1.5 0 0 0 0 3ZM18 6a1.5 1.5 0 1 0 0-3 1.5 1.5 0 0 0 0 3Z\"/>\n<g opacity=\".801\">\n<path d=\"M9 2H3v6h6V2ZM21 2h-6v6h6V2Z\"/>\n</g>\n<path fill-rule=\"evenodd\" clip-rule=\"evenodd\" d=\"M13 1.053c.655 0 1.214-.2 1.845-.427C15.659.334 16.59 0 18 0c1.667 0 3.333.35 5 1.053l1 .526v1.579l-1 .526v3.158C23 8.586 21.657 10 20 10h-4c-1.657 0-3-1.414-3-3.158V3.158h-2v3.684C11 8.586 9.657 10 8 10H4c-1.657 0-3-1.414-3-3.158V3.684l-1-.526V1.579l1-.526C2.667.35 4.333 0 6 0c1.409 0 2.341.334 3.155.626.63.226 1.19.427 1.845.427h2Zm-4.757 1.47C7.399 2.228 6.818 2.106 6 2.106c-.995 0-1.993.15-3 .45v4.287c0 .581.448 1.053 1 1.053h4c.552 0 1-.472 1-1.053V2.791c-.209-.07-.447-.155-.757-.267ZM15 2.792c.209-.07.447-.155.758-.267.843-.297 1.424-.419 2.242-.419.995 0 1.993.15 3 .45v4.287c0 .581-.448 1.053-1 1.053h-4c-.552 0-1-.472-1-1.053V2.791Z\"/>\n</g>\n"
|
|
126
114
|
};
|
|
127
115
|
|
|
128
|
-
|
|
129
|
-
'long':
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
'
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
'
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
'
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
'
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
'
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
'
|
|
148
|
-
|
|
149
|
-
},
|
|
150
|
-
'curlyBun': function curlyBun(components, colors) {
|
|
151
|
-
return "\n<path d=\"M30 2.5a2 2 0 0 0-1.792 1.11 2 2 0 0 0-3.425 1.057 2 2 0 0 0-2.961 2.02 2 2 0 0 0-2.235 2.801 2 2 0 0 0-1.309 3.337 2 2 0 0 0-.272 3.571v.005a2 2 0 0 0-.55 2.376C19.745 14.167 24.503 11 30 11c5.497 0 10.254 3.168 12.544 7.777a2.007 2.007 0 0 0-.55-2.376v-.005a2 2 0 0 0-.272-3.572 2 2 0 0 0-1.31-3.336 2 2 0 0 0-2.234-2.802 2 2 0 0 0-2.961-2.019 2 2 0 0 0-3.425-1.056A2 2 0 0 0 30 2.5Z\" fill=\"".concat(colors.hair.value, "\"/>\n<path d=\"M43.934 23.632C41.828 18.564 36.83 15 31 15h-2c-5.83 0-10.828 3.564-12.934 8.632C16.753 16.542 22.73 11 30 11s13.247 5.542 13.934 12.632Z\" fill=\"#F55D81\"/>\n");
|
|
152
|
-
},
|
|
153
|
-
'buzzcut': function buzzcut(components, colors) {
|
|
154
|
-
return "\n<path d=\"M44 25v3c-1.333-1.667-2.667-4.667-4-9-2.657 1.333-5.99 2-10 2s-7.343-.667-10-2c-1.333 3.667-2.667 6.333-4 8v-2c0-7.732 6.268-14 14-14s14 6.268 14 14Z\" fill=\"#362C47\" style=\"mix-blend-mode:multiply\" opacity=\".204\"/>\n";
|
|
155
|
-
},
|
|
156
|
-
'bobBangs': function bobBangs(components, colors) {
|
|
157
|
-
return "\n<path fill-rule=\"evenodd\" clip-rule=\"evenodd\" d=\"M44 26c-2.177-2.419-3.652-5.54-4.425-9.363-2.252 3.614-5.277 6.235-9.075 7.863-4.667 2-9.5 2.333-14.5 1v.527a4.474 4.474 0 0 0-2 .73V25.5C14 16.387 21.163 9 30 9s16 7.387 16 16.5v1.258a4.474 4.474 0 0 0-2-.73V26Zm-9 21.313v-3.232a14.035 14.035 0 0 0 8.42-9.082l.08.001c.925 0 1.785-.28 2.5-.758V45c-3.113 1.211-6.78 1.982-11 2.313ZM14 45c3.113 1.211 6.78 1.982 11 2.313v-3.232a14.035 14.035 0 0 1-8.42-9.082L16.5 35c-.925 0-1.785-.28-2.5-.758V45Z\" fill=\"".concat(colors.hair.value, "\"/>\n<mask id=\"hairBobBangs-a\" style=\"mask-type:alpha\" maskUnits=\"userSpaceOnUse\" x=\"14\" y=\"9\" width=\"32\" height=\"39\">\n<path fill-rule=\"evenodd\" clip-rule=\"evenodd\" d=\"M44 26c-2.177-2.419-3.652-5.54-4.425-9.363-2.252 3.614-5.277 6.235-9.075 7.863-4.667 2-9.5 2.333-14.5 1v.527a4.474 4.474 0 0 0-2 .73V25.5C14 16.387 21.163 9 30 9s16 7.387 16 16.5v1.258a4.474 4.474 0 0 0-2-.73V26Zm-9 21.313v-3.232a14.035 14.035 0 0 0 8.42-9.082l.08.001c.925 0 1.785-.28 2.5-.758V45c-3.113 1.211-6.78 1.982-11 2.313ZM14 45c3.113 1.211 6.78 1.982 11 2.313v-3.232a14.035 14.035 0 0 1-8.42-9.082L16.5 35c-.925 0-1.785-.28-2.5-.758V45Z\" fill=\"#362C47\"/>\n</mask>\n<g mask=\"url(#hairBobBangs-a)\">\n<path fill=\"#fff\" d=\"M13 9h34v18H13z\" style=\"mix-blend-mode:overlay\" opacity=\".259\"/>\n</g>\n");
|
|
158
|
-
},
|
|
159
|
-
'bald': function bald(components, colors) {
|
|
160
|
-
return "\n<g style=\"mix-blend-mode:overlay\" opacity=\".198\" fill=\"#fff\">\n<path d=\"M26.75 15a.75.75 0 1 0 0-1.5.75.75 0 0 0 0 1.5ZM19.38 21.774a.75.75 0 0 0 1.006-.336c.573-1.15 1.24-2.17 2.002-3.063a10.357 10.357 0 0 1 2.623-2.205.75.75 0 0 0-.765-1.29 11.86 11.86 0 0 0-3 2.522 16.553 16.553 0 0 0-2.202 3.366.75.75 0 0 0 .336 1.006Z\"/>\n</g>\n";
|
|
161
|
-
},
|
|
162
|
-
'balding': function balding(components, colors) {
|
|
163
|
-
return "\n<path fill-rule=\"evenodd\" clip-rule=\"evenodd\" d=\"M16.969 25.546 19.668 17H18a3 3 0 0 0-2.983 3.314l.65 6.186c.596 0 1.123-.386 1.302-.954ZM41.335 17h-1.667l2.699 8.546c.179.568.705.954 1.3.954l.652-6.186A3 3 0 0 0 41.335 17Z\" fill=\"".concat(colors.hair.value, "\"/>\n<g style=\"mix-blend-mode:overlay\" opacity=\".198\" fill=\"#fff\">\n<path d=\"M26.75 15a.75.75 0 1 0 0-1.5.75.75 0 0 0 0 1.5ZM19.38 21.774a.75.75 0 0 0 1.006-.336c.573-1.15 1.24-2.17 2.002-3.063a10.357 10.357 0 0 1 2.623-2.205.75.75 0 0 0-.765-1.29 11.86 11.86 0 0 0-3 2.522 16.553 16.553 0 0 0-2.202 3.366.75.75 0 0 0 .336 1.006Z\"/>\n</g>\n");
|
|
164
|
-
},
|
|
165
|
-
'cap': function cap(components, colors) {
|
|
166
|
-
return "\n<path opacity=\".203\" d=\"M30 17.002c3.881 0 7.548-.376 11 4.218l-1.9 6.492c-.611 1.228-1.636 1.559-2.463.796-2.09-1.929-4.302-2.893-6.637-2.893s-4.547.964-6.637 2.893c-.827.763-1.851.432-2.462-.796L19 21.22c3.452-4.594 7.119-4.218 11-4.218Z\" fill=\"#000\"/>\n<path d=\"M27.292 11.207a3 3 0 0 1 5.416 0c6.1.957 10.809 5.235 11.292 12.71a27.697 27.697 0 0 0-3.96-1.302l-.94.602a2 2 0 0 1-2.463.462C34.547 22.559 32.335 22 30 22s-4.547.56-6.637 1.679a2 2 0 0 1-2.462-.462l-.94-.602A27.697 27.697 0 0 0 16 23.918c.483-7.476 5.192-11.754 11.292-12.711Z\" fill=\"#F29C65\"/>\n<path d=\"M19.96 22.615A27.697 27.697 0 0 0 16 23.918C16.553 15.367 22.632 11 30 11s13.447 4.368 14 12.918a27.697 27.697 0 0 0-3.96-1.303L41 22c-3.452-2.667-7.119-4-11-4-3.881 0-7.548 1.333-11 4l.96.615Z\" fill=\"#000\" style=\"mix-blend-mode:overlay\" opacity=\".279\"/>\n<path d=\"m39.448 22.994-.349.223a2 2 0 0 1-2.462.462C34.547 22.559 32.335 22 30 22s-4.547.56-6.637 1.679a2 2 0 0 1-2.462-.462l-.349-.223c.866.068 2.183-.479 2.811-.815 2.09-1.12 4.302-1.679 6.637-1.679s4.547.56 6.637 1.679c.628.336 1.945.883 2.811.815Z\" fill=\"#fff\" style=\"mix-blend-mode:lighten\" opacity=\".203\"/>\n";
|
|
167
|
-
},
|
|
168
|
-
'bunUndercut': function bunUndercut(components, colors) {
|
|
169
|
-
return "\n<circle cx=\"30\" cy=\"12\" r=\"4\" fill=\"#5A45FF\"/>\n<path fill-rule=\"evenodd\" clip-rule=\"evenodd\" d=\"M33.724 12.837 33.67 20.5c3.724-.75 5.834-1.25 6.33-1.5 1.333 4.333 2.667 7.333 4 9v-3c0-5.208-2.843-9.751-7.062-12.163-.007-.013-1.078-.013-3.214 0ZM20 19c.496.25 2.607.75 6.33 1.5l.001-7.663h-3.269C18.843 15.25 16 19.792 16 25v3c1.333-1.667 2.667-4.667 4-9Z\" fill=\"".concat(colors.hair.value, "\" opacity=\".303\"/>\n<path fill-rule=\"evenodd\" clip-rule=\"evenodd\" d=\"M30 6c-2.094 0-3.812 2.011-3.986 4.572a11.55 11.55 0 0 0-2.152 1.575 3 3 0 0 0-.964 1.933l-.208 2.199a3.872 3.872 0 0 0 3.016 4.145c1.73.384 3.162.576 4.294.576 1.12 0 2.509-.184 4.168-.552a4 4 0 0 0 3.13-4.085l-.099-2.171a3 3 0 0 0-1.04-2.14 12.097 12.097 0 0 0-2.176-1.512C33.798 7.994 32.085 6 30 6Zm0 3.5c-1.262 0-2.484.301-3.669.903a4.001 4.001 0 0 1 7.324-.03C32.462 9.79 31.244 9.5 30 9.5Z\" fill=\"").concat(colors.hair.value, "\"/>\n<path d=\"M26.015 10.56C26.193 8.005 27.91 6 30 6c2.066 0 3.766 1.957 3.978 4.469a10.993 10.993 0 0 0-.354-.165 4 4 0 0 0-7.286.085 9.185 9.185 0 0 0-.323.171Z\" fill=\"#000\" style=\"mix-blend-mode:overlay\" opacity=\".218\"/>\n");
|
|
170
|
-
},
|
|
171
|
-
'fade': function fade(components, colors) {
|
|
172
|
-
return "\n<mask id=\"hairFade-b\" style=\"mask-type:alpha\" maskUnits=\"userSpaceOnUse\" x=\"16\" y=\"12\" width=\"28\" height=\"15\">\n<path fill-rule=\"evenodd\" clip-rule=\"evenodd\" d=\"M16 27v-2c0-5.387 3.042-10.063 7.502-12.404l.007.148c.079 1.68.154 3.293-.4 4.525-.709 1.573-1.786 2.448-2.727 3.212-.217.177-.427.347-.623.519-.7.611-2.436 2.486-3.759 6Zm28 0v-2c0-5.387-3.042-10.063-7.502-12.404l-.007.148c-.079 1.68-.154 3.293.4 4.525.709 1.573 1.785 2.448 2.727 3.212.217.177.427.347.623.519.7.611 2.437 2.486 3.759 6Z\" fill=\"url(#hairFade-a)\"/>\n</mask>\n<g mask=\"url(#hairFade-b)\">\n<path fill-rule=\"evenodd\" clip-rule=\"evenodd\" d=\"m16 27-.205-14.404h7.707L23.564 27H16Zm20.719 0H44l-.066-14.404h-7.436L36.718 27Z\" fill=\"".concat(colors.hair.value, "\"/>\n</g>\n<path d=\"M22.297 17.946a7.025 7.025 0 0 1 6.312-6.988L38 10a6.838 6.838 0 0 1-6.487 9h-8.162a1.054 1.054 0 0 1-1.054-1.054Z\" fill=\"").concat(colors.hair.value, "\"/>\n<defs>\n<linearGradient id=\"hairFade-a\" x1=\"16\" y1=\"12.596\" x2=\"16\" y2=\"27\" gradientUnits=\"userSpaceOnUse\">\n<stop/>\n<stop offset=\"1\" stop-opacity=\".01\"/>\n</linearGradient>\n</defs>\n");
|
|
173
|
-
},
|
|
174
|
-
'beanie': function beanie(components, colors) {
|
|
175
|
-
return "\n<path d=\"M16.996 19.804C19.059 14.644 24.104 11 30 11s10.94 3.645 13.004 8.804l.236.192a1 1 0 0 1 .337.54l.627 2.64a.5.5 0 0 1-.774.523C38.989 20.566 34.512 19 30 19c-4.513 0-8.985 1.567-13.416 4.702a.5.5 0 0 1-.776-.522l.616-2.64a1 1 0 0 1 .338-.546l.234-.19Z\" fill=\"#E15C66\"/>\n<path d=\"M30 15c6.45 0 12.012 4.045 13.245 5.008a.933.933 0 0 1 .331.525l.619 2.602c.109.458-.43.824-.823.566C41.055 22.175 35.563 19 30 19c-5.566 0-11.05 3.179-13.359 4.703-.392.259-.93-.105-.824-.562l.608-2.605a.934.934 0 0 1 .331-.53C17.994 19.04 23.554 15 30 15Z\" fill=\"#000\" style=\"mix-blend-mode:overlay\" opacity=\".255\"/>\n";
|
|
176
|
-
},
|
|
177
|
-
'straightBun': function straightBun(components, colors) {
|
|
178
|
-
return "\n<path d=\"M20.2 15.002c-.131-.647-.2-1.317-.2-2.002 0-5.523 4.477-10 10-10s10 4.477 10 10c0 .685-.069 1.355-.2 2.002A13.955 13.955 0 0 0 30 11a13.955 13.955 0 0 0-9.8 4.002Z\" fill=\"".concat(colors.hair.value, "\"/>\n<path d=\"M43.934 23.632C41.828 18.564 36.83 15 31 15h-2c-5.83 0-10.828 3.564-12.934 8.632C16.753 16.542 22.73 11 30 11s13.247 5.542 13.934 12.632Z\" fill=\"#F55D81\"/>\n");
|
|
179
|
-
},
|
|
180
|
-
'extraLong': function extraLong(components, colors) {
|
|
181
|
-
return "\n<path fill-rule=\"evenodd\" clip-rule=\"evenodd\" d=\"M44 26c-1.807-2.008-3.13-4.5-3.97-7.474-1.87 2.283-4.547 3.607-8.03 3.974-5.832.614-10.817-.327-14.953-2.822A13.958 13.958 0 0 0 16 25v1.027a4.474 4.474 0 0 0-2 .73V25.5C14 16.387 21.163 9 30 9s16 7.387 16 16.5v1.258a4.474 4.474 0 0 0-2-.73V26Zm2 8.242v22.283H35V44.08a14.035 14.035 0 0 0 8.42-9.082l.08.001c.925 0 1.785-.28 2.5-.758ZM14 56.568h11.13s-.079-4.667-.13-7.023v-5.464a14.035 14.035 0 0 1-8.42-9.082L16.5 35c-.925 0-1.785-.28-2.5-.758v22.326Z\" fill=\"".concat(colors.hair.value, "\"/>\n<mask id=\"hairExtraLong-a\" style=\"mask-type:alpha\" maskUnits=\"userSpaceOnUse\" x=\"14\" y=\"9\" width=\"32\" height=\"48\">\n<path fill-rule=\"evenodd\" clip-rule=\"evenodd\" d=\"M44 26c-1.807-2.008-3.13-4.5-3.97-7.474-1.87 2.283-4.547 3.607-8.03 3.974-5.832.614-10.817-.327-14.953-2.822A13.958 13.958 0 0 0 16 25v1.027a4.474 4.474 0 0 0-2 .73V25.5C14 16.387 21.163 9 30 9s16 7.387 16 16.5v1.258a4.474 4.474 0 0 0-2-.73V26Zm2 8.242v22.283H35V44.08a14.035 14.035 0 0 0 8.42-9.082l.08.001c.925 0 1.785-.28 2.5-.758ZM14 56.568h11.13s-.079-4.667-.13-7.023v-5.464a14.035 14.035 0 0 1-8.42-9.082L16.5 35c-.925 0-1.785-.28-2.5-.758v22.326Z\" fill=\"#362C47\"/>\n</mask>\n<g mask=\"url(#hairExtraLong-a)\">\n<path fill=\"#fff\" d=\"M14 9h32v18H14z\" style=\"mix-blend-mode:overlay\" opacity=\".258\"/>\n</g>\n");
|
|
182
|
-
},
|
|
183
|
-
'shortComboverChops': function shortComboverChops(components, colors) {
|
|
184
|
-
return "\n<path d=\"m15.79 25.558-.712-6.59A9 9 0 0 1 24.025 9H41a9.236 9.236 0 0 1-.74 3.63 7.926 7.926 0 0 1 4.6 8.351L44 27l-.002-.001v4.222a14.006 14.006 0 0 1-.476 3.42l-2.523.539a1 1 0 0 1-1.188-1.182l1.899-9.113c-1.574-2.094-2.678-5.243-3.314-9.446a9.239 9.239 0 0 1-5.692 2.774c-1.823.191-3.391.287-4.704.287-3 0-5.667-.5-8-1.5 0 2.59-.666 5.098-1.997 7.523l1.974 9.475a1 1 0 0 1-1.188 1.182l-2.522-.538a14.006 14.006 0 0 1-.477-3.421v-5.663Z\" fill=\"".concat(colors.hair.value, "\"/>\n<path fill-rule=\"evenodd\" clip-rule=\"evenodd\" d=\"m19.977 33.998-1.974-9.475C19.334 22.098 20 19.59 20 17c2.333 1 5 1.5 8 1.5 1.313 0 2.88-.096 4.704-.287a9.239 9.239 0 0 0 5.692-2.774A9.236 9.236 0 0 0 41 9H24.025a9 9 0 0 0-8.948 9.967l.713 6.59v5.664c.018 1.182.183 2.327.477 3.42l2.523.539a1 1 0 0 0 1.187-1.182Zm24.021-2.777v-4.222L44 27l.86-6.019c.006-.046.013-.091.018-.138a7.91 7.91 0 0 0-2.413-6.735 9.288 9.288 0 0 1-3.451 4.506c.649 2.652 1.547 4.742 2.696 6.27l-1.899 9.114A1 1 0 0 0 41 35.18l2.523-.538c.293-1.094.458-2.24.476-3.421Z\" fill=\"#fff\" style=\"mix-blend-mode:overlay\" opacity=\".259\"/>\n");
|
|
185
|
-
},
|
|
186
|
-
'mohawk': function mohawk(components, colors) {
|
|
187
|
-
return "\n<path d=\"M30.034 8c2.746 0 4.217 1.437 4.842 2.052.563.54.968 1.314 1.112 2.14l.663 4.17c.353 1.942-.698 3.665-2.526 4.086C32.5 20.816 31.12 21 30 21c-1.132 0-2.553-.192-4.244-.576-1.832-.423-2.834-2.2-2.375-4.145l.786-4.2a3.972 3.972 0 0 1 1.035-1.932C25.826 9.505 27.288 8 30.034 8Z\" fill=\"".concat(colors.hair.value, "\"/>\n<path d=\"M34.876 10.052c.563.54.968 1.314 1.112 2.14l.663 4.17c.353 1.942-.698 3.665-2.526 4.086C32.5 20.816 31.12 21 30 21c-1.132 0-2.553-.192-4.244-.576-1.832-.423-2.834-2.2-2.375-4.145l.786-4.2a3.972 3.972 0 0 1 1.035-1.932c.26-.268.666-.686 1.25-1.082-.316.488-1.452.987-1.452 2.435V15c-.322 1.645.73 3.154 2.017 3.512 1.188.325 2.186.488 2.981.488.787 0 1.757-.156 2.898-.467 1.285-.356 2.352-1.89 2.104-3.533v-3c0-1.5-1.105-2.544-1.5-3a1.464 1.464 0 0 0-.136-.14c.726.421 1.215.9 1.512 1.192Z\" fill=\"#fff\" style=\"mix-blend-mode:overlay\" opacity=\".257\"/>\n");
|
|
188
|
-
}
|
|
116
|
+
const hair$1 = {
|
|
117
|
+
'long': (components, colors) => "\n<path fill-rule=\"evenodd\" clip-rule=\"evenodd\" d=\"M44 26c-1.807-2.008-3.13-4.5-3.97-7.474-1.87 2.283-4.547 3.607-8.03 3.974-5.832.614-10.817-.327-14.953-2.822A13.958 13.958 0 0 0 16 25v1.027a4.474 4.474 0 0 0-2 .73V25.5C14 16.387 21.163 9 30 9s16 7.387 16 16.5v1.258a4.474 4.474 0 0 0-2-.73V26Zm2 8.242v6.604c0 7.312-4.612 13.513-11 15.679V44.08a14.035 14.035 0 0 0 8.42-9.082l.08.001c.925 0 1.785-.28 2.5-.758Zm-32 6.604c0 7.362 4.675 13.598 11.13 15.722-.035-2.326-.079-4.667-.13-7.023v-5.464a14.035 14.035 0 0 1-8.42-9.082L16.5 35c-.925 0-1.785-.28-2.5-.758v6.604Z\" fill=\"".concat(colors.hair.value, "\"/>\n<mask id=\"hairLong-a\" style=\"mask-type:alpha\" maskUnits=\"userSpaceOnUse\" x=\"14\" y=\"9\" width=\"32\" height=\"48\">\n<path fill-rule=\"evenodd\" clip-rule=\"evenodd\" d=\"M44 26c-1.807-2.008-3.13-4.5-3.97-7.474-1.87 2.283-4.547 3.607-8.03 3.974-5.832.614-10.817-.327-14.953-2.822A13.958 13.958 0 0 0 16 25v1.027a4.474 4.474 0 0 0-2 .73V25.5C14 16.387 21.163 9 30 9s16 7.387 16 16.5v1.258a4.474 4.474 0 0 0-2-.73V26Zm2 8.242v6.604c0 7.312-4.612 13.513-11 15.679V44.08a14.035 14.035 0 0 0 8.42-9.082l.08.001c.925 0 1.785-.28 2.5-.758Zm-32 6.604c0 7.362 4.675 13.598 11.13 15.722-.035-2.326-.079-4.667-.13-7.023v-5.464a14.035 14.035 0 0 1-8.42-9.082L16.5 35c-.925 0-1.785-.28-2.5-.758v6.604Z\" fill=\"#362C47\"/>\n</mask>\n<g mask=\"url(#hairLong-a)\">\n<path fill=\"#fff\" d=\"M14 9h32v18H14z\" style=\"mix-blend-mode:overlay\" opacity=\".258\"/>\n</g>\n"),
|
|
118
|
+
'sideShave': (components, colors) => "\n<path d=\"M35 11.92c5.263 2.012 9 7.11 9 13.08v1s-1.33-3.104-3.165-4.926c-1.834-1.823-3.335-.694-4.526-2.522C35.117 16.724 35 11.92 35 11.92Z\" fill=\"".concat(colors.hair.value, "\" opacity=\".298\"/>\n<g fill=\"#362C47\">\n<path d=\"M30.653 23.089c-1.596 1.262-4.393 1.877-7.245 2.504C18.776 26.61 14 27.66 14 31.568V25.5C14 16.387 21.163 9 30 9c4.84 0 5.683 2.647 5.457 6.23-.188 2.99-.617 4.546-4.804 7.859ZM25 47c.072 5.257-4.181 9.551-9.439 9.531L7.5 56.5s4-8.227 5-11.113c.022-.063.043-.13.065-.197a5.623 5.623 0 0 1-2.929.81H8.5s4.091-3.742 5.348-9.687c.101-1.234.152-2.07.152-2.07a4.478 4.478 0 0 0 2.58.756A14.035 14.035 0 0 0 25 44.081V47Z\"/>\n</g>\n"),
|
|
119
|
+
'shortCombover': (components, colors) => "\n<path d=\"M40.26 12.63a7.926 7.926 0 0 1 4.6 8.351L44 27c-2.827-1.696-4.695-5.55-5.604-11.561a9.239 9.239 0 0 1-5.692 2.774c-1.823.191-3.391.287-4.704.287-3 0-5.667-.5-8-1.5 0 3.667-1.333 7.167-4 10.5l-.922-8.533A9 9 0 0 1 24.025 9H41a9.236 9.236 0 0 1-.74 3.63Z\" fill=\"".concat(colors.hair.value, "\"/>\n<g style=\"mix-blend-mode:overlay\" opacity=\".259\" fill=\"#fff\">\n<path d=\"M40.26 12.63A9.236 9.236 0 0 0 41 9H24.025a9 9 0 0 0-8.948 9.967L16 27.5c2.667-3.333 4-6.833 4-10.5 2.333 1 5 1.5 8 1.5 1.313 0 2.88-.096 4.704-.287a9.239 9.239 0 0 0 5.692-2.774 9.281 9.281 0 0 0 1.864-2.808ZM44.878 20.843a7.91 7.91 0 0 0-2.413-6.735 9.288 9.288 0 0 1-3.451 4.506C40.045 22.83 41.707 25.624 44 27l.86-6.019c.006-.046.013-.091.018-.138Z\"/>\n</g>\n"),
|
|
120
|
+
'curlyHighTop': (components, colors) => "\n<path d=\"M31.792 7a2 2 0 0 1 3.816 0h.558a2 2 0 0 1 3.83.668c.075.03.15.063.224.095a2 2 0 0 1 3.13 2.298l.152.178a2 2 0 0 1 1.775 3.41 8.9 8.9 0 0 1 .114.474 2 2 0 0 1 .018 3.748l-.047.324a2 2 0 0 1-.022 3.62 1.994 1.994 0 0 1 .159.852 1.8 1.8 0 0 1-1.22 2.924L44 27.5c-.44-.659-.842-1.48-1.209-2.465a1.796 1.796 0 0 1-.437-.796 1.997 1.997 0 0 1-.563-2.679l-.022-.098a2 2 0 0 1-.956-2.937 1.994 1.994 0 0 1-2.44-.323 2 2 0 0 1-3.724.057 39.11 39.11 0 0 1-.312.032 2 2 0 0 1-3.573.203l-.23.003a2 2 0 0 1-3.521-.099l-.41-.031a2 2 0 0 1-3.676-.165c-.363.369-.868.598-1.427.598-.663 0-1.25-.322-1.614-.818l-.022.155a2 2 0 0 1-.701 3.35 2 2 0 0 1-1.397 3.095A24.9 24.9 0 0 1 16 27.5l-.188-1.923a1.8 1.8 0 0 1-.338-3.465l-.012-.126a2 2 0 0 1-.38-3.889l-.013-.144a2 2 0 0 1 .067-3.92c.013-.06.027-.118.042-.178a2 2 0 0 1 1.46-3.627 2 2 0 0 1 3.066-2.326 2 2 0 0 1 3.835-.894l.05-.002A2 2 0 0 1 27.41 7h.183a2 2 0 0 1 3.816 0h.384Z\" fill=\"".concat(colors.hair.value, "\"/>\n<mask id=\"hairCurlyHighTop-a\" style=\"mask-type:alpha\" maskUnits=\"userSpaceOnUse\" x=\"13\" y=\"5\" width=\"34\" height=\"23\">\n<path d=\"M31.792 7a2 2 0 0 1 3.816 0h.558a2 2 0 0 1 3.83.668c.075.03.15.063.224.095a2 2 0 0 1 3.13 2.298l.152.178a2 2 0 0 1 1.775 3.41 8.9 8.9 0 0 1 .114.474 2 2 0 0 1 .018 3.748l-.047.324a2 2 0 0 1-.022 3.62 1.994 1.994 0 0 1 .159.852 1.8 1.8 0 0 1-1.22 2.924L44 27.5c-.44-.659-.842-1.48-1.209-2.465a1.796 1.796 0 0 1-.437-.796 1.997 1.997 0 0 1-.563-2.679l-.022-.098a2 2 0 0 1-.956-2.937 1.994 1.994 0 0 1-2.44-.323 2 2 0 0 1-3.724.057 39.11 39.11 0 0 1-.312.032 2 2 0 0 1-3.573.203l-.23.003a2 2 0 0 1-3.521-.099l-.41-.031a2 2 0 0 1-3.676-.165c-.363.369-.868.598-1.427.598-.663 0-1.25-.322-1.614-.818l-.022.155a2 2 0 0 1-.701 3.35 2 2 0 0 1-1.397 3.095A24.9 24.9 0 0 1 16 27.5l-.188-1.923a1.8 1.8 0 0 1-.338-3.465l-.012-.126a2 2 0 0 1-.38-3.889l-.013-.144a2 2 0 0 1 .067-3.92c.013-.06.027-.118.042-.178a2 2 0 0 1 1.46-3.627 2 2 0 0 1 3.066-2.326 2 2 0 0 1 3.835-.894l.05-.002A2 2 0 0 1 27.41 7h.183a2 2 0 0 1 3.816 0h.384Z\" fill=\"#fff\"/>\n</mask>\n<g mask=\"url(#hairCurlyHighTop-a)\">\n<path fill=\"#fff\" d=\"M13 5h34v23H13z\" style=\"mix-blend-mode:overlay\" opacity=\".259\"/>\n</g>\n"),
|
|
121
|
+
'bobCut': (components, colors) => "\n<path fill-rule=\"evenodd\" clip-rule=\"evenodd\" d=\"M44 26c-1.412-1.57-2.53-3.434-3.35-5.595-3.192 1.086-6.742 1.629-10.65 1.629-4.848 0-9.145-.836-12.89-2.506A13.955 13.955 0 0 0 16 25v1.027a4.474 4.474 0 0 0-2 .73v-1.375C14 16.334 21.163 9 30 9s16 7.334 16 16.382v1.376a4.474 4.474 0 0 0-2-.73V26Zm-9 20.06v-1.98A14.035 14.035 0 0 0 43.42 35h.08c.925 0 1.785-.28 2.5-.758v6.376c0 .477-.02.949-.059 1.415-3.647 2.044-7.294 3.386-10.941 4.027Zm-20.941-4.027c3.647 2.044 7.294 3.386 10.941 4.027v-1.98A14.035 14.035 0 0 1 16.58 35h-.08c-.925 0-1.785-.28-2.5-.758v6.376c0 .477.02.949.059 1.415Z\" fill=\"".concat(colors.hair.value, "\"/>\n<mask id=\"hairBobCut-a\" style=\"mask-type:alpha\" maskUnits=\"userSpaceOnUse\" x=\"14\" y=\"9\" width=\"32\" height=\"38\">\n<path fill-rule=\"evenodd\" clip-rule=\"evenodd\" d=\"M44 26c-1.412-1.57-2.53-3.434-3.35-5.595-3.192 1.086-6.742 1.629-10.65 1.629-4.848 0-9.145-.836-12.89-2.506A13.955 13.955 0 0 0 16 25v1.027a4.474 4.474 0 0 0-2 .73v-1.375C14 16.334 21.163 9 30 9s16 7.334 16 16.382v1.376a4.474 4.474 0 0 0-2-.73V26Zm-9 20.06v-1.98A14.035 14.035 0 0 0 43.42 35h.08c.925 0 1.785-.28 2.5-.758v6.376c0 .477-.02.949-.059 1.415-3.647 2.044-7.294 3.386-10.941 4.027Zm-20.941-4.027c3.647 2.044 7.294 3.386 10.941 4.027v-1.98A14.035 14.035 0 0 1 16.58 35h-.08c-.925 0-1.785-.28-2.5-.758v6.376c0 .477.02.949.059 1.415Z\" fill=\"#362C47\"/>\n</mask>\n<g mask=\"url(#hairBobCut-a)\">\n<path fill=\"#fff\" d=\"M13 9h34v18H13z\" style=\"mix-blend-mode:overlay\" opacity=\".259\"/>\n</g>\n"),
|
|
122
|
+
'curly': (components, colors) => "\n<path d=\"m44 26-.021-.023a2 2 0 0 1-2.104-2.855 2 2 0 0 1-2.729-2.095 2 2 0 0 1-3.303.553l-.012.005v.042a2 2 0 0 1-3.753.965 2 2 0 0 1-3.921.333 2 2 0 0 1-3.865-.598l-.131-.022a1.999 1.999 0 0 1-3.676-.982 20.23 20.23 0 0 1-.83-.325 2 2 0 0 1-2.725 2.123 2 2 0 0 1-.93 2.68v.226A4.5 4.5 0 0 0 16.58 35 14.035 14.035 0 0 0 25 44.081v3.062a3.484 3.484 0 0 1-.651-.68 20.64 20.64 0 0 1-1.431-.46 3.46 3.46 0 0 1-2.719-.138 3.46 3.46 0 0 1-1.816-2.166 20.899 20.899 0 0 1-.987-.707 3.462 3.462 0 0 1-2.742-.912 3.464 3.464 0 0 1-1.087-2.877 20.74 20.74 0 0 1-.495-.661 3.465 3.465 0 0 1-2.604-1.712 3.467 3.467 0 0 1-.062-3.358 20.8 20.8 0 0 1-.136-.39 3.47 3.47 0 0 1-1.077-5.965v-.009a3.47 3.47 0 0 1 .471-6.196 3.47 3.47 0 0 1 2.272-5.788 3.47 3.47 0 0 1 3.876-4.862A3.47 3.47 0 0 1 20.95 6.76a3.47 3.47 0 0 1 5.941-1.833 3.47 3.47 0 0 1 6.218 0A3.47 3.47 0 0 1 39.05 6.76a3.47 3.47 0 0 1 5.138 3.502 3.47 3.47 0 0 1 3.876 4.862 3.47 3.47 0 0 1 2.272 5.788 3.47 3.47 0 0 1 .471 6.196v.01a3.47 3.47 0 0 1-1.077 5.965c-.044.13-.09.26-.136.389a3.467 3.467 0 0 1-.062 3.358 3.465 3.465 0 0 1-2.604 1.712c-.16.224-.326.444-.495.661a3.464 3.464 0 0 1-1.087 2.877 3.462 3.462 0 0 1-2.742.912c-.322.245-.651.48-.987.707a3.46 3.46 0 0 1-1.816 2.166 3.46 3.46 0 0 1-2.719.138c-.469.17-.946.324-1.43.46a3.484 3.484 0 0 1-.652.68v-3.062a14.035 14.035 0 0 0 8.42-9.082l.08.001a4.5 4.5 0 0 0 .5-8.973V26Z\" fill=\"".concat(colors.hair.value, "\"/>\n<mask id=\"hairCurly-a\" style=\"mask-type:alpha\" maskUnits=\"userSpaceOnUse\" x=\"7\" y=\"3\" width=\"46\" height=\"45\">\n<path d=\"m44 26-.021-.023a2 2 0 0 1-2.104-2.855 2 2 0 0 1-2.729-2.095 2 2 0 0 1-3.303.553l-.012.005v.042a2 2 0 0 1-3.753.965 2 2 0 0 1-3.921.333 2 2 0 0 1-3.865-.598l-.131-.022a1.999 1.999 0 0 1-3.676-.982 20.23 20.23 0 0 1-.83-.325 2 2 0 0 1-2.725 2.123 2 2 0 0 1-.93 2.68v.226A4.5 4.5 0 0 0 16.58 35 14.035 14.035 0 0 0 25 44.081v3.062a3.484 3.484 0 0 1-.651-.68 20.64 20.64 0 0 1-1.431-.46 3.46 3.46 0 0 1-2.719-.138 3.46 3.46 0 0 1-1.816-2.166 20.899 20.899 0 0 1-.987-.707 3.462 3.462 0 0 1-2.742-.912 3.464 3.464 0 0 1-1.087-2.877 20.74 20.74 0 0 1-.495-.661 3.465 3.465 0 0 1-2.604-1.712 3.467 3.467 0 0 1-.062-3.358 20.8 20.8 0 0 1-.136-.39 3.47 3.47 0 0 1-1.077-5.965v-.009a3.47 3.47 0 0 1 .471-6.196 3.47 3.47 0 0 1 2.272-5.788 3.47 3.47 0 0 1 3.876-4.862A3.47 3.47 0 0 1 20.95 6.76a3.47 3.47 0 0 1 5.941-1.833 3.47 3.47 0 0 1 6.218 0A3.47 3.47 0 0 1 39.05 6.76a3.47 3.47 0 0 1 5.138 3.502 3.47 3.47 0 0 1 3.876 4.862 3.47 3.47 0 0 1 2.272 5.788 3.47 3.47 0 0 1 .471 6.196v.01a3.47 3.47 0 0 1-1.077 5.965c-.044.13-.09.26-.136.389a3.467 3.467 0 0 1-.062 3.358 3.465 3.465 0 0 1-2.604 1.712c-.16.224-.326.444-.495.661a3.464 3.464 0 0 1-1.087 2.877 3.462 3.462 0 0 1-2.742.912c-.322.245-.651.48-.987.707a3.46 3.46 0 0 1-1.816 2.166 3.46 3.46 0 0 1-2.719.138c-.469.17-.946.324-1.43.46a3.484 3.484 0 0 1-.652.68v-3.062a14.035 14.035 0 0 0 8.42-9.082l.08.001a4.5 4.5 0 0 0 .5-8.973V26Z\" fill=\"#fff\"/>\n</mask>\n<g mask=\"url(#hairCurly-a)\">\n<path fill=\"#fff\" d=\"M7 3h46v44H7z\" style=\"mix-blend-mode:overlay\" opacity=\".259\"/>\n</g>\n"),
|
|
123
|
+
'pigtails': (components, colors) => "\n<path d=\"M39.001 11.836C39.057 9.156 41.291 7 44.04 7c2.783 0 5.04 2.211 5.04 4.94 0 .079-.003.158-.007.237.018 3.201.708 7.08 1.928 9.823-2.256-.606-4.334-1.62-6.22-2.903A16.67 16.67 0 0 1 46 25.382v1.376a4.474 4.474 0 0 0-2-.73V26c-1.807-2.008-3.13-4.5-3.97-7.474-1.87 2.283-4.547 3.607-8.03 3.974-5.832.614-10.817-.327-14.953-2.822A13.958 13.958 0 0 0 16 25v1.027a4.474 4.474 0 0 0-2 .73v-1.375c0-2.227.434-4.35 1.22-6.285C13.334 20.38 11.256 21.394 9 22c1.22-2.743 1.91-6.622 1.928-9.823a5.045 5.045 0 0 1-.006-.238C10.922 9.211 13.178 7 15.96 7c2.748 0 4.982 2.156 5.038 4.836A15.667 15.667 0 0 1 30 9c3.338 0 6.437 1.046 9.001 2.836Z\" fill=\"".concat(colors.hair.value, "\"/>\n<path d=\"M39.013 11.582C43.213 14.545 46 19.767 46 25.714v1.044a4.474 4.474 0 0 0-2-.73V26c-1.807-2.008-3.13-4.5-3.97-7.474-1.87 2.283-4.547 3.607-8.03 3.974-5.832.614-10.817-.327-14.953-2.822A13.958 13.958 0 0 0 16 25v1.027a4.474 4.474 0 0 0-2 .73v-1.043c0-5.947 2.788-11.17 6.987-14.132.006.084.01.169.012.254A15.667 15.667 0 0 1 30 9c3.338 0 6.437 1.046 9.001 2.836.002-.085.006-.17.012-.254Z\" fill=\"#fff\" style=\"mix-blend-mode:overlay\" opacity=\".259\"/>\n<path fill-rule=\"evenodd\" clip-rule=\"evenodd\" d=\"M21 9a5 5 0 0 0-4.385 7.404c1.806-2.818 4.44-5.031 7.546-6.279A4.98 4.98 0 0 0 21 9Zm23 5a5 5 0 0 0-8.16-3.875c3.106 1.248 5.739 3.46 7.545 6.279A4.978 4.978 0 0 0 44 14Z\" fill=\"#F55D81\"/>\n"),
|
|
124
|
+
'curlyBun': (components, colors) => "\n<path d=\"M30 2.5a2 2 0 0 0-1.792 1.11 2 2 0 0 0-3.425 1.057 2 2 0 0 0-2.961 2.02 2 2 0 0 0-2.235 2.801 2 2 0 0 0-1.309 3.337 2 2 0 0 0-.272 3.571v.005a2 2 0 0 0-.55 2.376C19.745 14.167 24.503 11 30 11c5.497 0 10.254 3.168 12.544 7.777a2.007 2.007 0 0 0-.55-2.376v-.005a2 2 0 0 0-.272-3.572 2 2 0 0 0-1.31-3.336 2 2 0 0 0-2.234-2.802 2 2 0 0 0-2.961-2.019 2 2 0 0 0-3.425-1.056A2 2 0 0 0 30 2.5Z\" fill=\"".concat(colors.hair.value, "\"/>\n<path d=\"M43.934 23.632C41.828 18.564 36.83 15 31 15h-2c-5.83 0-10.828 3.564-12.934 8.632C16.753 16.542 22.73 11 30 11s13.247 5.542 13.934 12.632Z\" fill=\"#F55D81\"/>\n"),
|
|
125
|
+
'buzzcut': (components, colors) => "\n<path d=\"M44 25v3c-1.333-1.667-2.667-4.667-4-9-2.657 1.333-5.99 2-10 2s-7.343-.667-10-2c-1.333 3.667-2.667 6.333-4 8v-2c0-7.732 6.268-14 14-14s14 6.268 14 14Z\" fill=\"#362C47\" style=\"mix-blend-mode:multiply\" opacity=\".204\"/>\n",
|
|
126
|
+
'bobBangs': (components, colors) => "\n<path fill-rule=\"evenodd\" clip-rule=\"evenodd\" d=\"M44 26c-2.177-2.419-3.652-5.54-4.425-9.363-2.252 3.614-5.277 6.235-9.075 7.863-4.667 2-9.5 2.333-14.5 1v.527a4.474 4.474 0 0 0-2 .73V25.5C14 16.387 21.163 9 30 9s16 7.387 16 16.5v1.258a4.474 4.474 0 0 0-2-.73V26Zm-9 21.313v-3.232a14.035 14.035 0 0 0 8.42-9.082l.08.001c.925 0 1.785-.28 2.5-.758V45c-3.113 1.211-6.78 1.982-11 2.313ZM14 45c3.113 1.211 6.78 1.982 11 2.313v-3.232a14.035 14.035 0 0 1-8.42-9.082L16.5 35c-.925 0-1.785-.28-2.5-.758V45Z\" fill=\"".concat(colors.hair.value, "\"/>\n<mask id=\"hairBobBangs-a\" style=\"mask-type:alpha\" maskUnits=\"userSpaceOnUse\" x=\"14\" y=\"9\" width=\"32\" height=\"39\">\n<path fill-rule=\"evenodd\" clip-rule=\"evenodd\" d=\"M44 26c-2.177-2.419-3.652-5.54-4.425-9.363-2.252 3.614-5.277 6.235-9.075 7.863-4.667 2-9.5 2.333-14.5 1v.527a4.474 4.474 0 0 0-2 .73V25.5C14 16.387 21.163 9 30 9s16 7.387 16 16.5v1.258a4.474 4.474 0 0 0-2-.73V26Zm-9 21.313v-3.232a14.035 14.035 0 0 0 8.42-9.082l.08.001c.925 0 1.785-.28 2.5-.758V45c-3.113 1.211-6.78 1.982-11 2.313ZM14 45c3.113 1.211 6.78 1.982 11 2.313v-3.232a14.035 14.035 0 0 1-8.42-9.082L16.5 35c-.925 0-1.785-.28-2.5-.758V45Z\" fill=\"#362C47\"/>\n</mask>\n<g mask=\"url(#hairBobBangs-a)\">\n<path fill=\"#fff\" d=\"M13 9h34v18H13z\" style=\"mix-blend-mode:overlay\" opacity=\".259\"/>\n</g>\n"),
|
|
127
|
+
'bald': (components, colors) => "\n<g style=\"mix-blend-mode:overlay\" opacity=\".198\" fill=\"#fff\">\n<path d=\"M26.75 15a.75.75 0 1 0 0-1.5.75.75 0 0 0 0 1.5ZM19.38 21.774a.75.75 0 0 0 1.006-.336c.573-1.15 1.24-2.17 2.002-3.063a10.357 10.357 0 0 1 2.623-2.205.75.75 0 0 0-.765-1.29 11.86 11.86 0 0 0-3 2.522 16.553 16.553 0 0 0-2.202 3.366.75.75 0 0 0 .336 1.006Z\"/>\n</g>\n",
|
|
128
|
+
'balding': (components, colors) => "\n<path fill-rule=\"evenodd\" clip-rule=\"evenodd\" d=\"M16.969 25.546 19.668 17H18a3 3 0 0 0-2.983 3.314l.65 6.186c.596 0 1.123-.386 1.302-.954ZM41.335 17h-1.667l2.699 8.546c.179.568.705.954 1.3.954l.652-6.186A3 3 0 0 0 41.335 17Z\" fill=\"".concat(colors.hair.value, "\"/>\n<g style=\"mix-blend-mode:overlay\" opacity=\".198\" fill=\"#fff\">\n<path d=\"M26.75 15a.75.75 0 1 0 0-1.5.75.75 0 0 0 0 1.5ZM19.38 21.774a.75.75 0 0 0 1.006-.336c.573-1.15 1.24-2.17 2.002-3.063a10.357 10.357 0 0 1 2.623-2.205.75.75 0 0 0-.765-1.29 11.86 11.86 0 0 0-3 2.522 16.553 16.553 0 0 0-2.202 3.366.75.75 0 0 0 .336 1.006Z\"/>\n</g>\n"),
|
|
129
|
+
'cap': (components, colors) => "\n<path opacity=\".203\" d=\"M30 17.002c3.881 0 7.548-.376 11 4.218l-1.9 6.492c-.611 1.228-1.636 1.559-2.463.796-2.09-1.929-4.302-2.893-6.637-2.893s-4.547.964-6.637 2.893c-.827.763-1.851.432-2.462-.796L19 21.22c3.452-4.594 7.119-4.218 11-4.218Z\" fill=\"#000\"/>\n<path d=\"M27.292 11.207a3 3 0 0 1 5.416 0c6.1.957 10.809 5.235 11.292 12.71a27.697 27.697 0 0 0-3.96-1.302l-.94.602a2 2 0 0 1-2.463.462C34.547 22.559 32.335 22 30 22s-4.547.56-6.637 1.679a2 2 0 0 1-2.462-.462l-.94-.602A27.697 27.697 0 0 0 16 23.918c.483-7.476 5.192-11.754 11.292-12.711Z\" fill=\"#F29C65\"/>\n<path d=\"M19.96 22.615A27.697 27.697 0 0 0 16 23.918C16.553 15.367 22.632 11 30 11s13.447 4.368 14 12.918a27.697 27.697 0 0 0-3.96-1.303L41 22c-3.452-2.667-7.119-4-11-4-3.881 0-7.548 1.333-11 4l.96.615Z\" fill=\"#000\" style=\"mix-blend-mode:overlay\" opacity=\".279\"/>\n<path d=\"m39.448 22.994-.349.223a2 2 0 0 1-2.462.462C34.547 22.559 32.335 22 30 22s-4.547.56-6.637 1.679a2 2 0 0 1-2.462-.462l-.349-.223c.866.068 2.183-.479 2.811-.815 2.09-1.12 4.302-1.679 6.637-1.679s4.547.56 6.637 1.679c.628.336 1.945.883 2.811.815Z\" fill=\"#fff\" style=\"mix-blend-mode:lighten\" opacity=\".203\"/>\n",
|
|
130
|
+
'bunUndercut': (components, colors) => "\n<circle cx=\"30\" cy=\"12\" r=\"4\" fill=\"#5A45FF\"/>\n<path fill-rule=\"evenodd\" clip-rule=\"evenodd\" d=\"M33.724 12.837 33.67 20.5c3.724-.75 5.834-1.25 6.33-1.5 1.333 4.333 2.667 7.333 4 9v-3c0-5.208-2.843-9.751-7.062-12.163-.007-.013-1.078-.013-3.214 0ZM20 19c.496.25 2.607.75 6.33 1.5l.001-7.663h-3.269C18.843 15.25 16 19.792 16 25v3c1.333-1.667 2.667-4.667 4-9Z\" fill=\"".concat(colors.hair.value, "\" opacity=\".303\"/>\n<path fill-rule=\"evenodd\" clip-rule=\"evenodd\" d=\"M30 6c-2.094 0-3.812 2.011-3.986 4.572a11.55 11.55 0 0 0-2.152 1.575 3 3 0 0 0-.964 1.933l-.208 2.199a3.872 3.872 0 0 0 3.016 4.145c1.73.384 3.162.576 4.294.576 1.12 0 2.509-.184 4.168-.552a4 4 0 0 0 3.13-4.085l-.099-2.171a3 3 0 0 0-1.04-2.14 12.097 12.097 0 0 0-2.176-1.512C33.798 7.994 32.085 6 30 6Zm0 3.5c-1.262 0-2.484.301-3.669.903a4.001 4.001 0 0 1 7.324-.03C32.462 9.79 31.244 9.5 30 9.5Z\" fill=\"").concat(colors.hair.value, "\"/>\n<path d=\"M26.015 10.56C26.193 8.005 27.91 6 30 6c2.066 0 3.766 1.957 3.978 4.469a10.993 10.993 0 0 0-.354-.165 4 4 0 0 0-7.286.085 9.185 9.185 0 0 0-.323.171Z\" fill=\"#000\" style=\"mix-blend-mode:overlay\" opacity=\".218\"/>\n"),
|
|
131
|
+
'fade': (components, colors) => "\n<mask id=\"hairFade-b\" style=\"mask-type:alpha\" maskUnits=\"userSpaceOnUse\" x=\"16\" y=\"12\" width=\"28\" height=\"15\">\n<path fill-rule=\"evenodd\" clip-rule=\"evenodd\" d=\"M16 27v-2c0-5.387 3.042-10.063 7.502-12.404l.007.148c.079 1.68.154 3.293-.4 4.525-.709 1.573-1.786 2.448-2.727 3.212-.217.177-.427.347-.623.519-.7.611-2.436 2.486-3.759 6Zm28 0v-2c0-5.387-3.042-10.063-7.502-12.404l-.007.148c-.079 1.68-.154 3.293.4 4.525.709 1.573 1.785 2.448 2.727 3.212.217.177.427.347.623.519.7.611 2.437 2.486 3.759 6Z\" fill=\"url(#hairFade-a)\"/>\n</mask>\n<g mask=\"url(#hairFade-b)\">\n<path fill-rule=\"evenodd\" clip-rule=\"evenodd\" d=\"m16 27-.205-14.404h7.707L23.564 27H16Zm20.719 0H44l-.066-14.404h-7.436L36.718 27Z\" fill=\"".concat(colors.hair.value, "\"/>\n</g>\n<path d=\"M22.297 17.946a7.025 7.025 0 0 1 6.312-6.988L38 10a6.838 6.838 0 0 1-6.487 9h-8.162a1.054 1.054 0 0 1-1.054-1.054Z\" fill=\"").concat(colors.hair.value, "\"/>\n<defs>\n<linearGradient id=\"hairFade-a\" x1=\"16\" y1=\"12.596\" x2=\"16\" y2=\"27\" gradientUnits=\"userSpaceOnUse\">\n<stop/>\n<stop offset=\"1\" stop-opacity=\".01\"/>\n</linearGradient>\n</defs>\n"),
|
|
132
|
+
'beanie': (components, colors) => "\n<path d=\"M16.996 19.804C19.059 14.644 24.104 11 30 11s10.94 3.645 13.004 8.804l.236.192a1 1 0 0 1 .337.54l.627 2.64a.5.5 0 0 1-.774.523C38.989 20.566 34.512 19 30 19c-4.513 0-8.985 1.567-13.416 4.702a.5.5 0 0 1-.776-.522l.616-2.64a1 1 0 0 1 .338-.546l.234-.19Z\" fill=\"#E15C66\"/>\n<path d=\"M30 15c6.45 0 12.012 4.045 13.245 5.008a.933.933 0 0 1 .331.525l.619 2.602c.109.458-.43.824-.823.566C41.055 22.175 35.563 19 30 19c-5.566 0-11.05 3.179-13.359 4.703-.392.259-.93-.105-.824-.562l.608-2.605a.934.934 0 0 1 .331-.53C17.994 19.04 23.554 15 30 15Z\" fill=\"#000\" style=\"mix-blend-mode:overlay\" opacity=\".255\"/>\n",
|
|
133
|
+
'straightBun': (components, colors) => "\n<path d=\"M20.2 15.002c-.131-.647-.2-1.317-.2-2.002 0-5.523 4.477-10 10-10s10 4.477 10 10c0 .685-.069 1.355-.2 2.002A13.955 13.955 0 0 0 30 11a13.955 13.955 0 0 0-9.8 4.002Z\" fill=\"".concat(colors.hair.value, "\"/>\n<path d=\"M43.934 23.632C41.828 18.564 36.83 15 31 15h-2c-5.83 0-10.828 3.564-12.934 8.632C16.753 16.542 22.73 11 30 11s13.247 5.542 13.934 12.632Z\" fill=\"#F55D81\"/>\n"),
|
|
134
|
+
'extraLong': (components, colors) => "\n<path fill-rule=\"evenodd\" clip-rule=\"evenodd\" d=\"M44 26c-1.807-2.008-3.13-4.5-3.97-7.474-1.87 2.283-4.547 3.607-8.03 3.974-5.832.614-10.817-.327-14.953-2.822A13.958 13.958 0 0 0 16 25v1.027a4.474 4.474 0 0 0-2 .73V25.5C14 16.387 21.163 9 30 9s16 7.387 16 16.5v1.258a4.474 4.474 0 0 0-2-.73V26Zm2 8.242v22.283H35V44.08a14.035 14.035 0 0 0 8.42-9.082l.08.001c.925 0 1.785-.28 2.5-.758ZM14 56.568h11.13s-.079-4.667-.13-7.023v-5.464a14.035 14.035 0 0 1-8.42-9.082L16.5 35c-.925 0-1.785-.28-2.5-.758v22.326Z\" fill=\"".concat(colors.hair.value, "\"/>\n<mask id=\"hairExtraLong-a\" style=\"mask-type:alpha\" maskUnits=\"userSpaceOnUse\" x=\"14\" y=\"9\" width=\"32\" height=\"48\">\n<path fill-rule=\"evenodd\" clip-rule=\"evenodd\" d=\"M44 26c-1.807-2.008-3.13-4.5-3.97-7.474-1.87 2.283-4.547 3.607-8.03 3.974-5.832.614-10.817-.327-14.953-2.822A13.958 13.958 0 0 0 16 25v1.027a4.474 4.474 0 0 0-2 .73V25.5C14 16.387 21.163 9 30 9s16 7.387 16 16.5v1.258a4.474 4.474 0 0 0-2-.73V26Zm2 8.242v22.283H35V44.08a14.035 14.035 0 0 0 8.42-9.082l.08.001c.925 0 1.785-.28 2.5-.758ZM14 56.568h11.13s-.079-4.667-.13-7.023v-5.464a14.035 14.035 0 0 1-8.42-9.082L16.5 35c-.925 0-1.785-.28-2.5-.758v22.326Z\" fill=\"#362C47\"/>\n</mask>\n<g mask=\"url(#hairExtraLong-a)\">\n<path fill=\"#fff\" d=\"M14 9h32v18H14z\" style=\"mix-blend-mode:overlay\" opacity=\".258\"/>\n</g>\n"),
|
|
135
|
+
'shortComboverChops': (components, colors) => "\n<path d=\"m15.79 25.558-.712-6.59A9 9 0 0 1 24.025 9H41a9.236 9.236 0 0 1-.74 3.63 7.926 7.926 0 0 1 4.6 8.351L44 27l-.002-.001v4.222a14.006 14.006 0 0 1-.476 3.42l-2.523.539a1 1 0 0 1-1.188-1.182l1.899-9.113c-1.574-2.094-2.678-5.243-3.314-9.446a9.239 9.239 0 0 1-5.692 2.774c-1.823.191-3.391.287-4.704.287-3 0-5.667-.5-8-1.5 0 2.59-.666 5.098-1.997 7.523l1.974 9.475a1 1 0 0 1-1.188 1.182l-2.522-.538a14.006 14.006 0 0 1-.477-3.421v-5.663Z\" fill=\"".concat(colors.hair.value, "\"/>\n<path fill-rule=\"evenodd\" clip-rule=\"evenodd\" d=\"m19.977 33.998-1.974-9.475C19.334 22.098 20 19.59 20 17c2.333 1 5 1.5 8 1.5 1.313 0 2.88-.096 4.704-.287a9.239 9.239 0 0 0 5.692-2.774A9.236 9.236 0 0 0 41 9H24.025a9 9 0 0 0-8.948 9.967l.713 6.59v5.664c.018 1.182.183 2.327.477 3.42l2.523.539a1 1 0 0 0 1.187-1.182Zm24.021-2.777v-4.222L44 27l.86-6.019c.006-.046.013-.091.018-.138a7.91 7.91 0 0 0-2.413-6.735 9.288 9.288 0 0 1-3.451 4.506c.649 2.652 1.547 4.742 2.696 6.27l-1.899 9.114A1 1 0 0 0 41 35.18l2.523-.538c.293-1.094.458-2.24.476-3.421Z\" fill=\"#fff\" style=\"mix-blend-mode:overlay\" opacity=\".259\"/>\n"),
|
|
136
|
+
'mohawk': (components, colors) => "\n<path d=\"M30.034 8c2.746 0 4.217 1.437 4.842 2.052.563.54.968 1.314 1.112 2.14l.663 4.17c.353 1.942-.698 3.665-2.526 4.086C32.5 20.816 31.12 21 30 21c-1.132 0-2.553-.192-4.244-.576-1.832-.423-2.834-2.2-2.375-4.145l.786-4.2a3.972 3.972 0 0 1 1.035-1.932C25.826 9.505 27.288 8 30.034 8Z\" fill=\"".concat(colors.hair.value, "\"/>\n<path d=\"M34.876 10.052c.563.54.968 1.314 1.112 2.14l.663 4.17c.353 1.942-.698 3.665-2.526 4.086C32.5 20.816 31.12 21 30 21c-1.132 0-2.553-.192-4.244-.576-1.832-.423-2.834-2.2-2.375-4.145l.786-4.2a3.972 3.972 0 0 1 1.035-1.932c.26-.268.666-.686 1.25-1.082-.316.488-1.452.987-1.452 2.435V15c-.322 1.645.73 3.154 2.017 3.512 1.188.325 2.186.488 2.981.488.787 0 1.757-.156 2.898-.467 1.285-.356 2.352-1.89 2.104-3.533v-3c0-1.5-1.105-2.544-1.5-3a1.464 1.464 0 0 0-.136-.14c.726.421 1.215.9 1.512 1.192Z\" fill=\"#fff\" style=\"mix-blend-mode:overlay\" opacity=\".257\"/>\n")
|
|
189
137
|
};
|
|
190
138
|
|
|
191
|
-
|
|
192
|
-
'squared':
|
|
193
|
-
|
|
194
|
-
|
|
195
|
-
'
|
|
196
|
-
return "\n<path d=\"M16 7v.47a5 5 0 1 0 10 0V7c7.063 1.523 12.93 6.735 16 13H0C3.07 13.735 8.937 8.523 16 7Z\" fill=\"".concat(colors.clothing.value, "\"/>\n");
|
|
197
|
-
},
|
|
198
|
-
'small': function small(components, colors) {
|
|
199
|
-
return "\n<path d=\"M32 20H10v-8a11 11 0 0 1 6-9.8V4a5 5 0 0 0 10 0V2.2a11 11 0 0 1 6 9.8v8Z\" fill=\"".concat(colors.clothing.value, "\"/>\n<mask id=\"bodySmall-a\" style=\"mask-type:alpha\" maskUnits=\"userSpaceOnUse\" x=\"10\" y=\"2\" width=\"22\" height=\"18\">\n<path d=\"M32 20H10v-8a11 11 0 0 1 6-9.8V4a5 5 0 0 0 10 0V2.2a11 11 0 0 1 6 9.8v8Z\" fill=\"#fff\"/>\n</mask>\n<g mask=\"url(#bodySmall-a)\">\n<path opacity=\".136\" d=\"M20.617 8.25 22 8l1.207.5L10 15l10.617-6.75Z\" fill=\"#000\"/>\n<path d=\"M21 1h11v47H10V15l13.345-6.578L21 1Z\" fill=\"#fff\" style=\"mix-blend-mode:overlay\" opacity=\".261\"/>\n</g>\n");
|
|
200
|
-
},
|
|
201
|
-
'checkered': function checkered(components, colors) {
|
|
202
|
-
return "\n<path d=\"M16 5v3a5 5 0 0 0 10 0V5l6.647 2.045A9 9 0 0 1 39 15.647V20H3v-4.353a9 9 0 0 1 6.353-8.602L16 5Z\" fill=\"".concat(colors.clothing.value, "\"/>\n<mask id=\"bodyCheckered-a\" style=\"mask-type:alpha\" maskUnits=\"userSpaceOnUse\" x=\"3\" y=\"5\" width=\"36\" height=\"15\">\n<path d=\"M16 5v3a5 5 0 0 0 10 0V5l6.647 2.045A9 9 0 0 1 39 15.647V20H3v-4.353a9 9 0 0 1 6.353-8.602L16 5Z\" fill=\"#fff\"/>\n</mask>\n<g mask=\"url(#bodyCheckered-a)\">\n<path fill-rule=\"evenodd\" clip-rule=\"evenodd\" d=\"M7 20h4V6.538l-1.647.507A8.99 8.99 0 0 0 7 8.163V20ZM32.647 7.045 31 6.538V20h4V8.163a8.99 8.99 0 0 0-2.353-1.118ZM23 20h4v-8.392a7.017 7.017 0 0 1-4 3.102V20Zm-4 0h-4v-8.392a7.017 7.017 0 0 0 4 3.102V20Z\" fill=\"#000\" style=\"mix-blend-mode:overlay\" opacity=\".404\"/>\n</g>\n<g style=\"mix-blend-mode:lighten\" opacity=\".18\" fill=\"#fff\">\n<path d=\"M3.397 13a9.014 9.014 0 0 1 2.535-4h8.139a6.982 6.982 0 0 0 2.03 4H3.397ZM39 17v3H3v-3h36ZM36.068 9a9.014 9.014 0 0 1 2.535 4H25.899a6.982 6.982 0 0 0 2.03-4h8.14Z\"/>\n</g>\n<mask id=\"bodyCheckered-b\" style=\"mask-type:alpha\" maskUnits=\"userSpaceOnUse\" x=\"3\" y=\"9\" width=\"36\" height=\"11\">\n<g style=\"mix-blend-mode:lighten\" fill=\"#fff\">\n<path d=\"M3.397 13a9.014 9.014 0 0 1 2.535-4h8.139a6.982 6.982 0 0 0 2.03 4H3.397ZM39 17v3H3v-3h36ZM36.068 9a9.014 9.014 0 0 1 2.535 4H25.899a6.982 6.982 0 0 0 2.03-4h8.14Z\"/>\n</g>\n</mask>\n");
|
|
203
|
-
}
|
|
139
|
+
const body = {
|
|
140
|
+
'squared': (components, colors) => "\n<path d=\"M16 5v3a5 5 0 0 0 10 0V5l6.647 2.045A9 9 0 0 1 39 15.647V20H3v-4.353a9 9 0 0 1 6.353-8.602L16 5Z\" fill=\"".concat(colors.clothing.value, "\"/>\n"),
|
|
141
|
+
'rounded': (components, colors) => "\n<path d=\"M16 7v.47a5 5 0 1 0 10 0V7c7.063 1.523 12.93 6.735 16 13H0C3.07 13.735 8.937 8.523 16 7Z\" fill=\"".concat(colors.clothing.value, "\"/>\n"),
|
|
142
|
+
'small': (components, colors) => "\n<path d=\"M32 20H10v-8a11 11 0 0 1 6-9.8V4a5 5 0 0 0 10 0V2.2a11 11 0 0 1 6 9.8v8Z\" fill=\"".concat(colors.clothing.value, "\"/>\n<mask id=\"bodySmall-a\" style=\"mask-type:alpha\" maskUnits=\"userSpaceOnUse\" x=\"10\" y=\"2\" width=\"22\" height=\"18\">\n<path d=\"M32 20H10v-8a11 11 0 0 1 6-9.8V4a5 5 0 0 0 10 0V2.2a11 11 0 0 1 6 9.8v8Z\" fill=\"#fff\"/>\n</mask>\n<g mask=\"url(#bodySmall-a)\">\n<path opacity=\".136\" d=\"M20.617 8.25 22 8l1.207.5L10 15l10.617-6.75Z\" fill=\"#000\"/>\n<path d=\"M21 1h11v47H10V15l13.345-6.578L21 1Z\" fill=\"#fff\" style=\"mix-blend-mode:overlay\" opacity=\".261\"/>\n</g>\n"),
|
|
143
|
+
'checkered': (components, colors) => "\n<path d=\"M16 5v3a5 5 0 0 0 10 0V5l6.647 2.045A9 9 0 0 1 39 15.647V20H3v-4.353a9 9 0 0 1 6.353-8.602L16 5Z\" fill=\"".concat(colors.clothing.value, "\"/>\n<mask id=\"bodyCheckered-a\" style=\"mask-type:alpha\" maskUnits=\"userSpaceOnUse\" x=\"3\" y=\"5\" width=\"36\" height=\"15\">\n<path d=\"M16 5v3a5 5 0 0 0 10 0V5l6.647 2.045A9 9 0 0 1 39 15.647V20H3v-4.353a9 9 0 0 1 6.353-8.602L16 5Z\" fill=\"#fff\"/>\n</mask>\n<g mask=\"url(#bodyCheckered-a)\">\n<path fill-rule=\"evenodd\" clip-rule=\"evenodd\" d=\"M7 20h4V6.538l-1.647.507A8.99 8.99 0 0 0 7 8.163V20ZM32.647 7.045 31 6.538V20h4V8.163a8.99 8.99 0 0 0-2.353-1.118ZM23 20h4v-8.392a7.017 7.017 0 0 1-4 3.102V20Zm-4 0h-4v-8.392a7.017 7.017 0 0 0 4 3.102V20Z\" fill=\"#000\" style=\"mix-blend-mode:overlay\" opacity=\".404\"/>\n</g>\n<g style=\"mix-blend-mode:lighten\" opacity=\".18\" fill=\"#fff\">\n<path d=\"M3.397 13a9.014 9.014 0 0 1 2.535-4h8.139a6.982 6.982 0 0 0 2.03 4H3.397ZM39 17v3H3v-3h36ZM36.068 9a9.014 9.014 0 0 1 2.535 4H25.899a6.982 6.982 0 0 0 2.03-4h8.14Z\"/>\n</g>\n<mask id=\"bodyCheckered-b\" style=\"mask-type:alpha\" maskUnits=\"userSpaceOnUse\" x=\"3\" y=\"9\" width=\"36\" height=\"11\">\n<g style=\"mix-blend-mode:lighten\" fill=\"#fff\">\n<path d=\"M3.397 13a9.014 9.014 0 0 1 2.535-4h8.139a6.982 6.982 0 0 0 2.03 4H3.397ZM39 17v3H3v-3h36ZM36.068 9a9.014 9.014 0 0 1 2.535 4H25.899a6.982 6.982 0 0 0 2.03-4h8.14Z\"/>\n</g>\n</mask>\n")
|
|
204
144
|
};
|
|
205
145
|
|
|
206
|
-
|
|
207
|
-
'smile':
|
|
208
|
-
|
|
209
|
-
|
|
210
|
-
'
|
|
211
|
-
|
|
212
|
-
|
|
213
|
-
'
|
|
214
|
-
return "\n<ellipse cx=\"9\" cy=\"5\" rx=\"2\" ry=\"2.5\" fill=\"#1B0640\"/>\n";
|
|
215
|
-
},
|
|
216
|
-
'pacifier': function pacifier(components, colors) {
|
|
217
|
-
return "\n<path fill-rule=\"evenodd\" clip-rule=\"evenodd\" d=\"M9 2a6.611 6.611 0 0 1-2.27-.412A2.035 2.035 0 0 0 4 3.5a3.5 3.5 0 0 0 2.004 3.165 3 3 0 0 0 5.992 0A3.5 3.5 0 0 0 14 3.5a2.035 2.035 0 0 0-2.73-1.912A6.61 6.61 0 0 1 9 2ZM7.585 7h2.83a1.5 1.5 0 0 1-2.83 0Z\" fill=\"#456DFF\"/>\n<path fill-rule=\"evenodd\" clip-rule=\"evenodd\" d=\"M12 6.5c0 .055-.002.11-.005.165A3.5 3.5 0 0 0 14 3.5a2.035 2.035 0 0 0-2.73-1.912A6.61 6.61 0 0 1 9 2a6.611 6.611 0 0 1-2.27-.412A2.035 2.035 0 0 0 4 3.5a3.5 3.5 0 0 0 2.004 3.165A3 3 0 1 1 12 6.5ZM7.585 7h2.83a1.5 1.5 0 1 0-2.83 0Z\" fill=\"#fff\" fill-opacity=\".26\" style=\"mix-blend-mode:lighten\"/>\n<circle cx=\"9\" cy=\"4.5\" r=\"1.5\" fill=\"#fff\"/>\n";
|
|
218
|
-
},
|
|
219
|
-
'bigSmile': function bigSmile(components, colors) {
|
|
220
|
-
return "\n<path d=\"M6 3h6v1a3 3 0 0 1-6 0V3Z\" fill=\"#fff\"/>\n";
|
|
221
|
-
},
|
|
222
|
-
'smirk': function smirk(components, colors) {
|
|
223
|
-
return "\n<path d=\"M7.318 5.728a.75.75 0 0 1 .364-1.456c2.433.609 4.165.32 5.288-.802a.75.75 0 1 1 1.06 1.06c-1.544 1.545-3.812 1.923-6.712 1.198Z\" fill=\"#1B0640\"/>\n";
|
|
224
|
-
},
|
|
225
|
-
'lips': function lips(components, colors) {
|
|
226
|
-
return "\n<path d=\"M5 5h8s-1 2.5-4 2.5S5 5 5 5Z\" fill=\"#DC5C7A\"/>\n<path d=\"M5.388 4.225C6.106 2.788 8.108 2.663 9 4c.891-1.337 2.894-1.212 3.613.225L13 5H5l.388-.775Z\" fill=\"#F57B98\"/>\n";
|
|
227
|
-
}
|
|
146
|
+
const mouth = {
|
|
147
|
+
'smile': (components, colors) => "\n<path d=\"M5.004 5.868a1 1 0 1 1 .992-1.736C7.016 4.715 8.014 5 9 5c.986 0 1.983-.285 3.004-.868a1 1 0 1 1 .992 1.736C11.684 6.618 10.348 7 9 7c-1.348 0-2.684-.382-3.996-1.132Z\" fill=\"#1B0640\"/>\n",
|
|
148
|
+
'frown': (components, colors) => "\n<path d=\"M5.004 4.132a1 1 0 1 0 .992 1.736C7.016 5.285 8.014 5 9 5c.986 0 1.983.285 3.004.868a1 1 0 1 0 .992-1.736C11.684 3.382 10.348 3 9 3c-1.348 0-2.684.382-3.996 1.132Z\" fill=\"#1B0640\"/>\n",
|
|
149
|
+
'surprise': (components, colors) => "\n<ellipse cx=\"9\" cy=\"5\" rx=\"2\" ry=\"2.5\" fill=\"#1B0640\"/>\n",
|
|
150
|
+
'pacifier': (components, colors) => "\n<path fill-rule=\"evenodd\" clip-rule=\"evenodd\" d=\"M9 2a6.611 6.611 0 0 1-2.27-.412A2.035 2.035 0 0 0 4 3.5a3.5 3.5 0 0 0 2.004 3.165 3 3 0 0 0 5.992 0A3.5 3.5 0 0 0 14 3.5a2.035 2.035 0 0 0-2.73-1.912A6.61 6.61 0 0 1 9 2ZM7.585 7h2.83a1.5 1.5 0 0 1-2.83 0Z\" fill=\"#456DFF\"/>\n<path fill-rule=\"evenodd\" clip-rule=\"evenodd\" d=\"M12 6.5c0 .055-.002.11-.005.165A3.5 3.5 0 0 0 14 3.5a2.035 2.035 0 0 0-2.73-1.912A6.61 6.61 0 0 1 9 2a6.611 6.611 0 0 1-2.27-.412A2.035 2.035 0 0 0 4 3.5a3.5 3.5 0 0 0 2.004 3.165A3 3 0 1 1 12 6.5ZM7.585 7h2.83a1.5 1.5 0 1 0-2.83 0Z\" fill=\"#fff\" fill-opacity=\".26\" style=\"mix-blend-mode:lighten\"/>\n<circle cx=\"9\" cy=\"4.5\" r=\"1.5\" fill=\"#fff\"/>\n",
|
|
151
|
+
'bigSmile': (components, colors) => "\n<path d=\"M6 3h6v1a3 3 0 0 1-6 0V3Z\" fill=\"#fff\"/>\n",
|
|
152
|
+
'smirk': (components, colors) => "\n<path d=\"M7.318 5.728a.75.75 0 0 1 .364-1.456c2.433.609 4.165.32 5.288-.802a.75.75 0 1 1 1.06 1.06c-1.544 1.545-3.812 1.923-6.712 1.198Z\" fill=\"#1B0640\"/>\n",
|
|
153
|
+
'lips': (components, colors) => "\n<path d=\"M5 5h8s-1 2.5-4 2.5S5 5 5 5Z\" fill=\"#DC5C7A\"/>\n<path d=\"M5.388 4.225C6.106 2.788 8.108 2.663 9 4c.891-1.337 2.894-1.212 3.613.225L13 5H5l.388-.775Z\" fill=\"#F57B98\"/>\n"
|
|
228
154
|
};
|
|
229
155
|
|
|
230
|
-
|
|
231
|
-
'mediumRound':
|
|
232
|
-
|
|
233
|
-
|
|
234
|
-
'smallRound': function smallRound(components, colors) {
|
|
235
|
-
return "\n<path d=\"M5.289 6.237a.75.75 0 1 1 1.423-.474c.233.699.617.987 1.288.987s1.056-.288 1.289-.987a.75.75 0 1 1 1.422.474C10.278 7.538 9.33 8.25 8 8.25s-2.278-.712-2.711-2.013Z\" fill=\"#000\" style=\"mix-blend-mode:overlay\" opacity=\".36\"/>\n";
|
|
236
|
-
},
|
|
237
|
-
'wrinkles': function wrinkles(components, colors) {
|
|
238
|
-
return "\n<path opacity=\".119\" fill-rule=\"evenodd\" clip-rule=\"evenodd\" d=\"M11.721 5.294c.21.736.273 1.39.195 1.955.349.543.643 1.041.883 1.493.447.843.86 1.817 1.238 2.92a.5.5 0 1 0 .946-.324 21.232 21.232 0 0 0-1.3-3.065c-.473-.89-1.137-1.934-1.996-3.135a.499.499 0 0 0-.099-.104c.06.075.105.162.133.26Zm-7.442 0a.748.748 0 0 1 .115-.237.502.502 0 0 0-.071.08C3.464 6.34 2.799 7.384 2.328 8.274a21.224 21.224 0 0 0-1.301 3.065.5.5 0 0 0 .946.324 20.24 20.24 0 0 1 1.238-2.92c.238-.448.53-.942.875-1.48-.08-.568-.019-1.227.193-1.968Z\" fill=\"#000\"/>\n<path d=\"M5.206 4.779a.75.75 0 0 0-.927.515c-.212.741-.274 1.4-.193 1.968C4.314 8.866 5.68 9.75 8 9.75c2.328 0 3.693-.888 3.916-2.501.078-.565.015-1.22-.195-1.955a.749.749 0 0 0-.927-.515.75.75 0 0 0-.515.927C10.802 7.536 10.19 8.25 8 8.25s-2.802-.713-2.279-2.544a.75.75 0 0 0-.515-.927Z\" fill=\"#000\" style=\"mix-blend-mode:overlay\" opacity=\".36\"/>\n";
|
|
239
|
-
}
|
|
156
|
+
const nose = {
|
|
157
|
+
'mediumRound': (components, colors) => "\n<path d=\"M4.25 5a.75.75 0 0 1 1.5 0c0 .836.914 1.75 2.25 1.75 1.336 0 2.25-.914 2.25-1.75a.75.75 0 0 1 1.5 0c0 1.664-1.586 3.25-3.75 3.25-2.164 0-3.75-1.586-3.75-3.25Z\" fill=\"#000\" style=\"mix-blend-mode:overlay\" opacity=\".36\"/>\n",
|
|
158
|
+
'smallRound': (components, colors) => "\n<path d=\"M5.289 6.237a.75.75 0 1 1 1.423-.474c.233.699.617.987 1.288.987s1.056-.288 1.289-.987a.75.75 0 1 1 1.422.474C10.278 7.538 9.33 8.25 8 8.25s-2.278-.712-2.711-2.013Z\" fill=\"#000\" style=\"mix-blend-mode:overlay\" opacity=\".36\"/>\n",
|
|
159
|
+
'wrinkles': (components, colors) => "\n<path opacity=\".119\" fill-rule=\"evenodd\" clip-rule=\"evenodd\" d=\"M11.721 5.294c.21.736.273 1.39.195 1.955.349.543.643 1.041.883 1.493.447.843.86 1.817 1.238 2.92a.5.5 0 1 0 .946-.324 21.232 21.232 0 0 0-1.3-3.065c-.473-.89-1.137-1.934-1.996-3.135a.499.499 0 0 0-.099-.104c.06.075.105.162.133.26Zm-7.442 0a.748.748 0 0 1 .115-.237.502.502 0 0 0-.071.08C3.464 6.34 2.799 7.384 2.328 8.274a21.224 21.224 0 0 0-1.301 3.065.5.5 0 0 0 .946.324 20.24 20.24 0 0 1 1.238-2.92c.238-.448.53-.942.875-1.48-.08-.568-.019-1.227.193-1.968Z\" fill=\"#000\"/>\n<path d=\"M5.206 4.779a.75.75 0 0 0-.927.515c-.212.741-.274 1.4-.193 1.968C4.314 8.866 5.68 9.75 8 9.75c2.328 0 3.693-.888 3.916-2.501.078-.565.015-1.22-.195-1.955a.749.749 0 0 0-.927-.515.75.75 0 0 0-.515.927C10.802 7.536 10.19 8.25 8 8.25s-2.802-.713-2.279-2.544a.75.75 0 0 0-.515-.927Z\" fill=\"#000\" style=\"mix-blend-mode:overlay\" opacity=\".36\"/>\n"
|
|
240
160
|
};
|
|
241
161
|
|
|
242
|
-
|
|
243
|
-
'beardMustache':
|
|
244
|
-
|
|
245
|
-
|
|
246
|
-
'
|
|
247
|
-
|
|
248
|
-
|
|
249
|
-
'walrus': function walrus(components, colors) {
|
|
250
|
-
return "\n<path d=\"M10 14a5 5 0 0 1 5-5h6a5 5 0 0 1 5 5H10Z\" fill=\"".concat(colors.hair.value, "\"/>\n");
|
|
251
|
-
},
|
|
252
|
-
'goatee': function goatee(components, colors) {
|
|
253
|
-
return "\n<path fill-rule=\"evenodd\" clip-rule=\"evenodd\" d=\"M13.613 10.673C12.015 11.096 11 12.59 11 14.242v4.663c0 .997.494 1.934 1.377 2.398 1.39.73 3.634 1.697 5.78 1.697 2.14 0 4.26-.963 5.56-1.694.832-.467 1.283-1.369 1.283-2.322v-4.742c0-1.653-1.015-3.146-2.613-3.569C21.073 10.326 19.455 10 18 10c-1.455 0-3.073.326-4.387.673Zm.293 1.41c-.802.222-1.316.967-1.316 1.798v2.67c0 1.065.561 2.057 1.54 2.477 1.084.465 2.585.972 3.974.972 1.385 0 2.847-.504 3.899-.968.956-.422 1.497-1.4 1.497-2.445v-2.69c0-.84-.524-1.59-1.333-1.808-1.073-.29-2.646-.628-4.167-.628-1.512 0-3.048.334-4.094.623Z\" fill=\"".concat(colors.hair.value, "\"/>\n");
|
|
254
|
-
},
|
|
255
|
-
'shadow': function shadow(components, colors) {
|
|
256
|
-
return "\n<path opacity=\".2\" d=\"M32 3v4c0 7.732-6.268 14-14 14S4 14.732 4 7V3c0-.1.001-.2.003-.298C6.048 5.642 8.535 9.669 12 11c2-1.002 4-1.504 6-1.504s4 .502 6 1.504c3.465-1.33 5.952-5.359 7.997-8.298C31.999 2.8 32 2.9 32 3Z\" fill=\"".concat(colors.hair.value, "\"/>\n");
|
|
257
|
-
},
|
|
258
|
-
'soulPatch': function soulPatch(components, colors) {
|
|
259
|
-
return "\n<path d=\"M16 17.5h4l-.684 2.051a1.387 1.387 0 0 1-2.632 0L16 17.5Z\" fill=\"".concat(colors.hair.value, "\"/>\n");
|
|
260
|
-
}
|
|
162
|
+
const facialHair = {
|
|
163
|
+
'beardMustache': (components, colors) => "\n<path d=\"m12.473 9.458 2.423-.827A2.504 2.504 0 0 1 18 10.001a2.504 2.504 0 0 1 3.104-1.37l2.423.827c3.466-1.33 6.425-3.817 8.47-6.756C31.999 2.8 32 2.9 32 3v6c0 7.732-6.268 14-14 14S4 16.732 4 9V3c0-.1.001-.2.003-.298 2.045 2.94 5.004 5.425 8.47 6.756Z\" fill=\"".concat(colors.hair.value, "\"/>\n<mask id=\"facialHairBeardMustache-a\" style=\"mask-type:alpha\" maskUnits=\"userSpaceOnUse\" x=\"4\" y=\"2\" width=\"28\" height=\"21\">\n<path d=\"m12.473 9.458 2.423-.827A2.504 2.504 0 0 1 18 10.001a2.504 2.504 0 0 1 3.104-1.37l2.423.827c3.466-1.33 6.425-3.817 8.47-6.756C31.999 2.8 32 2.9 32 3v6c0 7.732-6.268 14-14 14S4 16.732 4 9V3c0-.1.001-.2.003-.298 2.045 2.94 5.004 5.425 8.47 6.756Z\" fill=\"#fff\"/>\n</mask>\n<g mask=\"url(#facialHairBeardMustache-a)\">\n<path d=\"M32 9V3c0-.1-.001-.2-.003-.298-2.045 2.94-5.004 5.425-8.47 6.756l2.812.96a1 1 0 0 1-.075 1.915l-5.081 1.3A2.715 2.715 0 0 1 18 12.046a2.718 2.718 0 0 1-3.183 1.587l-5.081-1.3a1 1 0 0 1-.075-1.916l2.812-.96c-3.466-1.33-6.425-3.816-8.47-6.755C4.001 2.8 4 2.9 4 3v6c0 7.732 6.268 14 14 14s14-6.268 14-14Z\" fill=\"#fff\" style=\"mix-blend-mode:overlay\" opacity=\".26\"/>\n<path d=\"M22 13.424v.076a3 3 0 0 1-3 3h-2a3 3 0 0 1-3-3.076l.817.209A2.715 2.715 0 0 0 18 12.046a2.718 2.718 0 0 0 3.183 1.587l.816-.209Z\" fill=\"#FFFEFD\"/>\n</g>\n"),
|
|
164
|
+
'pyramid': (components, colors) => "\n<path d=\"M18.017 12.05a2.718 2.718 0 0 1-3.183 1.587l-5.082-1.3a1 1 0 0 1-.075-1.916l5.235-1.786a2.504 2.504 0 0 1 3.104 1.37 2.504 2.504 0 0 1 3.105-1.37l5.235 1.786a1 1 0 0 1-.075 1.915l-5.082 1.3a2.718 2.718 0 0 1-3.183-1.587Z\" fill=\"".concat(colors.hair.value, "\"/>\n"),
|
|
165
|
+
'walrus': (components, colors) => "\n<path d=\"M10 14a5 5 0 0 1 5-5h6a5 5 0 0 1 5 5H10Z\" fill=\"".concat(colors.hair.value, "\"/>\n"),
|
|
166
|
+
'goatee': (components, colors) => "\n<path fill-rule=\"evenodd\" clip-rule=\"evenodd\" d=\"M13.613 10.673C12.015 11.096 11 12.59 11 14.242v4.663c0 .997.494 1.934 1.377 2.398 1.39.73 3.634 1.697 5.78 1.697 2.14 0 4.26-.963 5.56-1.694.832-.467 1.283-1.369 1.283-2.322v-4.742c0-1.653-1.015-3.146-2.613-3.569C21.073 10.326 19.455 10 18 10c-1.455 0-3.073.326-4.387.673Zm.293 1.41c-.802.222-1.316.967-1.316 1.798v2.67c0 1.065.561 2.057 1.54 2.477 1.084.465 2.585.972 3.974.972 1.385 0 2.847-.504 3.899-.968.956-.422 1.497-1.4 1.497-2.445v-2.69c0-.84-.524-1.59-1.333-1.808-1.073-.29-2.646-.628-4.167-.628-1.512 0-3.048.334-4.094.623Z\" fill=\"".concat(colors.hair.value, "\"/>\n"),
|
|
167
|
+
'shadow': (components, colors) => "\n<path opacity=\".2\" d=\"M32 3v4c0 7.732-6.268 14-14 14S4 14.732 4 7V3c0-.1.001-.2.003-.298C6.048 5.642 8.535 9.669 12 11c2-1.002 4-1.504 6-1.504s4 .502 6 1.504c3.465-1.33 5.952-5.359 7.997-8.298C31.999 2.8 32 2.9 32 3Z\" fill=\"".concat(colors.hair.value, "\"/>\n"),
|
|
168
|
+
'soulPatch': (components, colors) => "\n<path d=\"M16 17.5h4l-.684 2.051a1.387 1.387 0 0 1-2.632 0L16 17.5Z\" fill=\"".concat(colors.hair.value, "\"/>\n")
|
|
261
169
|
};
|
|
262
170
|
|
|
263
171
|
var components = /*#__PURE__*/Object.freeze({
|
|
@@ -271,9 +179,9 @@ var components = /*#__PURE__*/Object.freeze({
|
|
|
271
179
|
});
|
|
272
180
|
|
|
273
181
|
function pickComponent(prng, group) {
|
|
274
|
-
|
|
275
|
-
|
|
276
|
-
|
|
182
|
+
let values = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : [];
|
|
183
|
+
const componentCollection = components;
|
|
184
|
+
const key = prng.pick(values);
|
|
277
185
|
|
|
278
186
|
if (componentCollection[group][key]) {
|
|
279
187
|
return {
|
|
@@ -285,7 +193,7 @@ function pickComponent(prng, group) {
|
|
|
285
193
|
}
|
|
286
194
|
}
|
|
287
195
|
|
|
288
|
-
|
|
196
|
+
const hair = {
|
|
289
197
|
'black': 'rgba(54, 44, 71, 1)',
|
|
290
198
|
'brunette': 'rgba(108, 69, 69, 1)',
|
|
291
199
|
'red': 'rgba(225, 92, 102, 1)',
|
|
@@ -295,7 +203,7 @@ var hair = {
|
|
|
295
203
|
'grey': 'rgba(222, 225, 245, 1)'
|
|
296
204
|
};
|
|
297
205
|
|
|
298
|
-
|
|
206
|
+
const clothing = {
|
|
299
207
|
'blue': 'rgba(69, 109, 255, 1)',
|
|
300
208
|
'turquoise': 'rgba(84, 215, 199, 1)',
|
|
301
209
|
'purple': 'rgba(117, 85, 202, 1)',
|
|
@@ -305,7 +213,7 @@ var clothing = {
|
|
|
305
213
|
'pink': 'rgba(245, 93, 129, 1)'
|
|
306
214
|
};
|
|
307
215
|
|
|
308
|
-
|
|
216
|
+
const skin = {
|
|
309
217
|
'tone1': 'rgba(238, 180, 164, 1)',
|
|
310
218
|
'tone2': 'rgba(231, 163, 145, 1)',
|
|
311
219
|
'tone3': 'rgba(229, 160, 126, 1)',
|
|
@@ -326,34 +234,20 @@ var colors = /*#__PURE__*/Object.freeze({
|
|
|
326
234
|
function pickColor(prng, group, values) {
|
|
327
235
|
var _colorCollection$grou;
|
|
328
236
|
|
|
329
|
-
|
|
237
|
+
const colorCollection = colors;
|
|
330
238
|
|
|
331
239
|
if (values.length === 0) {
|
|
332
240
|
values.push('transparent');
|
|
333
241
|
}
|
|
334
242
|
|
|
335
|
-
|
|
243
|
+
const key = prng.pick(values);
|
|
336
244
|
return {
|
|
337
245
|
name: key,
|
|
338
246
|
value: (_colorCollection$grou = colorCollection[group][key]) !== null && _colorCollection$grou !== void 0 ? _colorCollection$grou : key
|
|
339
247
|
};
|
|
340
248
|
}
|
|
341
249
|
|
|
342
|
-
|
|
343
|
-
|
|
344
|
-
_ref.prng;
|
|
345
|
-
_ref.options;
|
|
346
|
-
}
|
|
347
|
-
|
|
348
|
-
function onPostCreate(_ref) {// Write your modifications here
|
|
349
|
-
|
|
350
|
-
_ref.prng;
|
|
351
|
-
_ref.options;
|
|
352
|
-
_ref.components;
|
|
353
|
-
_ref.colors;
|
|
354
|
-
}
|
|
355
|
-
|
|
356
|
-
var style = {
|
|
250
|
+
const style = {
|
|
357
251
|
meta: {
|
|
358
252
|
title: 'Personas by Draftbit',
|
|
359
253
|
creator: 'Draftbit - draftbit.com',
|
|
@@ -364,22 +258,20 @@ var style = {
|
|
|
364
258
|
}
|
|
365
259
|
},
|
|
366
260
|
schema: schema$1,
|
|
367
|
-
create:
|
|
261
|
+
create: _ref => {
|
|
368
262
|
var _options$hairColor, _options$clothingColo, _options$skinColor, _components$eyes$valu, _components$eyes, _components$hair$valu, _components$hair, _components$body$valu, _components$body, _components$mouth$val, _components$mouth, _components$nose$valu, _components$nose, _components$facialHai, _components$facialHai2;
|
|
369
263
|
|
|
370
|
-
|
|
371
|
-
|
|
372
|
-
|
|
373
|
-
|
|
374
|
-
|
|
375
|
-
|
|
376
|
-
|
|
377
|
-
|
|
378
|
-
|
|
379
|
-
|
|
380
|
-
|
|
381
|
-
var facialHairComponent = pickComponent(prng, 'facialHair', options.facialHair);
|
|
382
|
-
var components = {
|
|
264
|
+
let {
|
|
265
|
+
prng,
|
|
266
|
+
options
|
|
267
|
+
} = _ref;
|
|
268
|
+
const eyesComponent = pickComponent(prng, 'eyes', options.eyes);
|
|
269
|
+
const hairComponent = pickComponent(prng, 'hair', options.hair);
|
|
270
|
+
const bodyComponent = pickComponent(prng, 'body', options.body);
|
|
271
|
+
const mouthComponent = pickComponent(prng, 'mouth', options.mouth);
|
|
272
|
+
const noseComponent = pickComponent(prng, 'nose', options.nose);
|
|
273
|
+
const facialHairComponent = pickComponent(prng, 'facialHair', options.facialHair);
|
|
274
|
+
const components = {
|
|
383
275
|
'eyes': eyesComponent,
|
|
384
276
|
'hair': hairComponent,
|
|
385
277
|
'body': bodyComponent,
|
|
@@ -387,17 +279,11 @@ var style = {
|
|
|
387
279
|
'nose': noseComponent,
|
|
388
280
|
'facialHair': facialHairComponent
|
|
389
281
|
};
|
|
390
|
-
|
|
282
|
+
const colors = {
|
|
391
283
|
'hair': pickColor(prng, 'hair', (_options$hairColor = options.hairColor) !== null && _options$hairColor !== void 0 ? _options$hairColor : []),
|
|
392
284
|
'clothing': pickColor(prng, 'clothing', (_options$clothingColo = options.clothingColor) !== null && _options$clothingColo !== void 0 ? _options$clothingColo : []),
|
|
393
285
|
'skin': pickColor(prng, 'skin', (_options$skinColor = options.skinColor) !== null && _options$skinColor !== void 0 ? _options$skinColor : [])
|
|
394
286
|
};
|
|
395
|
-
onPostCreate({
|
|
396
|
-
prng: prng,
|
|
397
|
-
options: options,
|
|
398
|
-
components: components,
|
|
399
|
-
colors: colors
|
|
400
|
-
});
|
|
401
287
|
return {
|
|
402
288
|
attributes: {
|
|
403
289
|
viewBox: '0 0 64 64',
|
|
@@ -418,9 +304,11 @@ var style = {
|
|
|
418
304
|
* Source: https://personas.draftbit.com/
|
|
419
305
|
* License: https://creativecommons.org/licenses/by/4.0/
|
|
420
306
|
*/
|
|
421
|
-
|
|
422
|
-
|
|
423
|
-
|
|
307
|
+
let {
|
|
308
|
+
create,
|
|
309
|
+
meta,
|
|
310
|
+
schema
|
|
311
|
+
} = style;
|
|
424
312
|
/** @deprecated will be removed in Version 5.0 */
|
|
425
313
|
|
|
426
314
|
var index = utils.style.createLegacyWrapper(style);
|