Debian Codegraph @

js-packages/@fortawesome/fontawesome-svg-core/index.mjs

raw symbols SCIP
1 /*!
2 * Font Awesome Free 7.3.0 by @fontawesome - https://fontawesome.com
3 * License - https://fontawesome.com/license/free (Icons: CC BY 4.0, Fonts: SIL OFL 1.1, Code: MIT License)
4 * Copyright 2026 Fonticons, Inc.
5 */
6 function _arrayLikeToArray(r, a) {
7 (null == a || a > r.length) && (a = r.length);
8 for (var e = 0, n = Array(a); e < a; e++) n[e] = r[e];
9 return n;
10 }
11 function _arrayWithHoles(r) {
12 if (Array.isArray(r)) return r;
13 }
14 function _arrayWithoutHoles(r) {
15 if (Array.isArray(r)) return _arrayLikeToArray(r);
16 }
17 function _classCallCheck(a, n) {
18 if (!(a instanceof n)) throw new TypeError("Cannot call a class as a function");
19 }
20 function _defineProperties(e, r) {
21 for (var t = 0; t < r.length; t++) {
22 var o = r[t];
23 o.enumerable = o.enumerable || !1, o.configurable = !0, "value" in o && (o.writable = !0), Object.defineProperty(e, _toPropertyKey(o.key), o);
24 }
25 }
26 function _createClass(e, r, t) {
27 return r && _defineProperties(e.prototype, r), t && _defineProperties(e, t), Object.defineProperty(e, "prototype", {
28 writable: !1
29 }), e;
30 }
31 function _createForOfIteratorHelper(r, e) {
32 var t = "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"];
33 if (!t) {
34 if (Array.isArray(r) || (t = _unsupportedIterableToArray(r)) || e && r && "number" == typeof r.length) {
35 t && (r = t);
36 var n = 0,
37 F = function () {};
38 return {
39 s: F,
40 n: function () {
41 return n >= r.length ? {
42 done: !0
43 } : {
44 done: !1,
45 value: r[n++]
46 };
47 },
48 e: function (r) {
49 throw r;
50 },
51 f: F
52 };
53 }
54 throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
55 }
56 var o,
57 a = !0,
58 u = !1;
59 return {
60 s: function () {
61 t = t.call(r);
62 },
63 n: function () {
64 var r = t.next();
65 return a = r.done, r;
66 },
67 e: function (r) {
68 u = !0, o = r;
69 },
70 f: function () {
71 try {
72 a || null == t.return || t.return();
73 } finally {
74 if (u) throw o;
75 }
76 }
77 };
78 }
79 function _defineProperty(e, r, t) {
80 return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, {
81 value: t,
82 enumerable: !0,
83 configurable: !0,
84 writable: !0
85 }) : e[r] = t, e;
86 }
87 function _inherits(t, e) {
88 if ("function" != typeof e && null !== e) throw new TypeError("Super expression must either be null or a function");
89 t.prototype = Object.create(e && e.prototype, {
90 constructor: {
91 value: t,
92 writable: !0,
93 configurable: !0
94 }
95 }), Object.defineProperty(t, "prototype", {
96 writable: !1
97 }), e && _setPrototypeOf(t, e);
98 }
99 function _iterableToArray(r) {
100 if ("undefined" != typeof Symbol && null != r[Symbol.iterator] || null != r["@@iterator"]) return Array.from(r);
101 }
102 function _iterableToArrayLimit(r, l) {
103 var t = null == r ? null : "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"];
104 if (null != t) {
105 var e,
106 n,
107 i,
108 u,
109 a = [],
110 f = !0,
111 o = !1;
112 try {
113 if (i = (t = t.call(r)).next, 0 === l) {
114 if (Object(t) !== t) return;
115 f = !1;
116 } else for (; !(f = (e = i.call(t)).done) && (a.push(e.value), a.length !== l); f = !0);
117 } catch (r) {
118 o = !0, n = r;
119 } finally {
120 try {
121 if (!f && null != t.return && (u = t.return(), Object(u) !== u)) return;
122 } finally {
123 if (o) throw n;
124 }
125 }
126 return a;
127 }
128 }
129 function _nonIterableRest() {
130 throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
131 }
132 function _nonIterableSpread() {
133 throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
134 }
135 function ownKeys(e, r) {
136 var t = Object.keys(e);
137 if (Object.getOwnPropertySymbols) {
138 var o = Object.getOwnPropertySymbols(e);
139 r && (o = o.filter(function (r) {
140 return Object.getOwnPropertyDescriptor(e, r).enumerable;
141 })), t.push.apply(t, o);
142 }
143 return t;
144 }
145 function _objectSpread2(e) {
146 for (var r = 1; r < arguments.length; r++) {
147 var t = null != arguments[r] ? arguments[r] : {};
148 r % 2 ? ownKeys(Object(t), !0).forEach(function (r) {
149 _defineProperty(e, r, t[r]);
150 }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) {
151 Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r));
152 });
153 }
154 return e;
155 }
156 function _setPrototypeOf(t, e) {
157 return _setPrototypeOf = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function (t, e) {
158 return t.__proto__ = e, t;
159 }, _setPrototypeOf(t, e);
160 }
161 function _slicedToArray(r, e) {
162 return _arrayWithHoles(r) || _iterableToArrayLimit(r, e) || _unsupportedIterableToArray(r, e) || _nonIterableRest();
163 }
164 function _toConsumableArray(r) {
165 return _arrayWithoutHoles(r) || _iterableToArray(r) || _unsupportedIterableToArray(r) || _nonIterableSpread();
166 }
167 function _toPrimitive(t, r) {
168 if ("object" != typeof t || !t) return t;
169 var e = t[Symbol.toPrimitive];
170 if (void 0 !== e) {
171 var i = e.call(t, r || "default");
172 if ("object" != typeof i) return i;
173 throw new TypeError("@@toPrimitive must return a primitive value.");
174 }
175 return ("string" === r ? String : Number)(t);
176 }
177 function _toPropertyKey(t) {
178 var i = _toPrimitive(t, "string");
179 return "symbol" == typeof i ? i : i + "";
180 }
181 function _typeof(o) {
182 "@babel/helpers - typeof";
183
184 return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) {
185 return typeof o;
186 } : function (o) {
187 return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o;
188 }, _typeof(o);
189 }
190 function _unsupportedIterableToArray(r, a) {
191 if (r) {
192 if ("string" == typeof r) return _arrayLikeToArray(r, a);
193 var t = {}.toString.call(r).slice(8, -1);
194 return "Object" === t && r.constructor && (t = r.constructor.name), "Map" === t || "Set" === t ? Array.from(r) : "Arguments" === t || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t) ? _arrayLikeToArray(r, a) : void 0;
195 }
196 }
197 function _wrapRegExp() {
198 _wrapRegExp = function (e, r) {
199 return new BabelRegExp(e, void 0, r);
200 };
201 var e = RegExp.prototype,
202 r = new WeakMap();
203 function BabelRegExp(e, t, p) {
204 var o = RegExp(e, t);
205 return r.set(o, p || r.get(e)), _setPrototypeOf(o, BabelRegExp.prototype);
206 }
207 function buildGroups(e, t) {
208 var p = r.get(t);
209 return Object.keys(p).reduce(function (r, t) {
210 var o = p[t];
211 if ("number" == typeof o) r[t] = e[o];else {
212 for (var i = 0; void 0 === e[o[i]] && i + 1 < o.length;) i++;
213 r[t] = e[o[i]];
214 }
215 return r;
216 }, Object.create(null));
217 }
218 return _inherits(BabelRegExp, RegExp), BabelRegExp.prototype.exec = function (r) {
219 var t = e.exec.call(this, r);
220 if (t) {
221 t.groups = buildGroups(t, this);
222 var p = t.indices;
223 p && (p.groups = buildGroups(p, this));
224 }
225 return t;
226 }, BabelRegExp.prototype[Symbol.replace] = function (t, p) {
227 if ("string" == typeof p) {
228 var o = r.get(this);
229 return e[Symbol.replace].call(this, t, p.replace(/\$<([^>]+)(>|$)/g, function (e, r, t) {
230 if ("" === t) return e;
231 var p = o[r];
232 return Array.isArray(p) ? "$" + p.join("$") : "number" == typeof p ? "$" + p : "";
233 }));
234 }
235 if ("function" == typeof p) {
236 var i = this;
237 return e[Symbol.replace].call(this, t, function () {
238 var e = arguments;
239 return "object" != typeof e[e.length - 1] && (e = [].slice.call(e)).push(buildGroups(e, i)), p.apply(this, e);
240 });
241 }
242 return e[Symbol.replace].call(this, t, p);
243 }, _wrapRegExp.apply(this, arguments);
244 }
245
246 var noop = function noop() {};
247 var _WINDOW = {};
248 var _DOCUMENT = {};
249 var _MUTATION_OBSERVER = null;
250 var _PERFORMANCE = {
251 mark: noop,
252 measure: noop
253 };
254 try {
255 if (typeof window !== 'undefined') _WINDOW = window;
256 if (typeof document !== 'undefined') _DOCUMENT = document;
257 if (typeof MutationObserver !== 'undefined') _MUTATION_OBSERVER = MutationObserver;
258 if (typeof performance !== 'undefined') _PERFORMANCE = performance;
259 } catch (e) {} // eslint-disable-line no-empty
260
261 var _ref = _WINDOW.navigator || {},
262 _ref$userAgent = _ref.userAgent,
263 userAgent = _ref$userAgent === void 0 ? '' : _ref$userAgent;
264 var WINDOW = _WINDOW;
265 var DOCUMENT = _DOCUMENT;
266 var MUTATION_OBSERVER = _MUTATION_OBSERVER;
267 var PERFORMANCE = _PERFORMANCE;
268 var IS_BROWSER = !!WINDOW.document;
269 var IS_DOM = !!DOCUMENT.documentElement && !!DOCUMENT.head && typeof DOCUMENT.addEventListener === 'function' && typeof DOCUMENT.createElement === 'function';
270 var IS_IE = ~userAgent.indexOf('MSIE') || ~userAgent.indexOf('Trident/');
271
272 var _cl;
273 var Z = /fa(k|kd|s|r|l|t|d|dr|dl|dt|b|slr|slpr|wsb|tl|ns|nds|es|gt|jr|jfr|jdr|usb|ufsb|udsb|cr|ss|sr|sl|st|sds|sdr|sdl|sdt|sldr|slpdr|pr|ms|vs)?[\-\ ]/,
274 $ = /Font ?Awesome ?([567 ]*)(Solid|Regular|Light|Thin|Duotone|Brands|Free|Pro|Sharp Duotone|Sharp|Kit|Notdog Duo|Notdog|Chisel|Etch|Graphite|Thumbprint|Jelly Fill|Jelly Duo|Jelly|Utility|Utility Fill|Utility Duo|Slab Press|Slab|Slab Duo|Slab Press Duo|Pixel|Mosaic|Vellum|Whiteboard)?.*/i;
275 var rl = {
276 classic: {
277 fa: "solid",
278 fas: "solid",
279 "fa-solid": "solid",
280 far: "regular",
281 "fa-regular": "regular",
282 fal: "light",
283 "fa-light": "light",
284 fat: "thin",
285 "fa-thin": "thin",
286 fab: "brands",
287 "fa-brands": "brands"
288 },
289 duotone: {
290 fa: "solid",
291 fad: "solid",
292 "fa-solid": "solid",
293 "fa-duotone": "solid",
294 fadr: "regular",
295 "fa-regular": "regular",
296 fadl: "light",
297 "fa-light": "light",
298 fadt: "thin",
299 "fa-thin": "thin"
300 },
301 sharp: {
302 fa: "solid",
303 fass: "solid",
304 "fa-solid": "solid",
305 fasr: "regular",
306 "fa-regular": "regular",
307 fasl: "light",
308 "fa-light": "light",
309 fast: "thin",
310 "fa-thin": "thin"
311 },
312 "sharp-duotone": {
313 fa: "solid",
314 fasds: "solid",
315 "fa-solid": "solid",
316 fasdr: "regular",
317 "fa-regular": "regular",
318 fasdl: "light",
319 "fa-light": "light",
320 fasdt: "thin",
321 "fa-thin": "thin"
322 },
323 slab: {
324 "fa-regular": "regular",
325 faslr: "regular"
326 },
327 "slab-press": {
328 "fa-regular": "regular",
329 faslpr: "regular"
330 },
331 "slab-duo": {
332 "fa-regular": "regular",
333 fasldr: "regular"
334 },
335 "slab-press-duo": {
336 "fa-regular": "regular",
337 faslpdr: "regular"
338 },
339 thumbprint: {
340 "fa-light": "light",
341 fatl: "light"
342 },
343 vellum: {
344 "fa-solid": "solid",
345 favs: "solid"
346 },
347 pixel: {
348 "fa-regular": "regular",
349 fapr: "regular"
350 },
351 mosaic: {
352 "fa-solid": "solid",
353 fams: "solid"
354 },
355 whiteboard: {
356 "fa-semibold": "semibold",
357 fawsb: "semibold"
358 },
359 notdog: {
360 "fa-solid": "solid",
361 fans: "solid"
362 },
363 "notdog-duo": {
364 "fa-solid": "solid",
365 fands: "solid"
366 },
367 etch: {
368 "fa-solid": "solid",
369 faes: "solid"
370 },
371 graphite: {
372 "fa-thin": "thin",
373 fagt: "thin"
374 },
375 jelly: {
376 "fa-regular": "regular",
377 fajr: "regular"
378 },
379 "jelly-fill": {
380 "fa-regular": "regular",
381 fajfr: "regular"
382 },
383 "jelly-duo": {
384 "fa-regular": "regular",
385 fajdr: "regular"
386 },
387 chisel: {
388 "fa-regular": "regular",
389 facr: "regular"
390 },
391 utility: {
392 "fa-semibold": "semibold",
393 fausb: "semibold"
394 },
395 "utility-duo": {
396 "fa-semibold": "semibold",
397 faudsb: "semibold"
398 },
399 "utility-fill": {
400 "fa-semibold": "semibold",
401 faufsb: "semibold"
402 }
403 },
404 il = {
405 GROUP: "duotone-group",
406 SWAP_OPACITY: "swap-opacity",
407 PRIMARY: "primary",
408 SECONDARY: "secondary"
409 },
410 dl = ["fa-classic", "fa-duotone", "fa-sharp", "fa-sharp-duotone", "fa-thumbprint", "fa-whiteboard", "fa-notdog", "fa-notdog-duo", "fa-chisel", "fa-etch", "fa-graphite", "fa-jelly", "fa-jelly-fill", "fa-jelly-duo", "fa-slab", "fa-slab-press", "fa-slab-press-duo", "fa-slab-duo", "fa-mosaic", "fa-pixel", "fa-vellum", "fa-utility", "fa-utility-duo", "fa-utility-fill"];
411 var u = "classic",
412 l = "duotone",
413 h = "sharp",
414 t = "sharp-duotone",
415 g = "chisel",
416 n = "etch",
417 m = "graphite",
418 p = "jelly",
419 s = "jelly-duo",
420 y = "jelly-fill",
421 w = "mosaic",
422 x = "notdog",
423 e = "notdog-duo",
424 b = "pixel",
425 c = "slab",
426 o = "slab-duo",
427 I = "slab-press",
428 a = "slab-press-duo",
429 r = "thumbprint",
430 v = "utility",
431 i = "utility-duo",
432 F = "utility-fill",
433 d = "vellum",
434 S = "whiteboard",
435 A = "Classic",
436 P = "Duotone",
437 j = "Sharp",
438 B = "Sharp Duotone",
439 N = "Chisel",
440 D = "Etch",
441 k = "Graphite",
442 T = "Jelly",
443 C = "Jelly Duo",
444 W = "Jelly Fill",
445 R = "Mosaic",
446 K = "Notdog",
447 L = "Notdog Duo",
448 U = "Pixel",
449 J = "Slab",
450 _ = "Slab Duo",
451 M = "Slab Press",
452 E = "Slab Press Duo",
453 G = "Thumbprint",
454 V = "Utility",
455 z = "Utility Duo",
456 O = "Utility Fill",
457 Y = "Vellum",
458 q = "Whiteboard",
459 xl = [u, l, h, t, g, n, m, p, s, y, w, x, e, b, c, o, I, a, r, v, i, F, d, S],
460 cl = (_cl = {}, _defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_cl, u, A), l, P), h, j), t, B), g, N), n, D), m, k), p, T), s, C), y, W), _defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_cl, w, R), x, K), e, L), b, U), c, J), o, _), I, M), a, E), r, G), v, V), _defineProperty(_defineProperty(_defineProperty(_defineProperty(_cl, i, z), F, O), d, Y), S, q));
461 var Al = {
462 classic: {
463 900: "fas",
464 400: "far",
465 normal: "far",
466 300: "fal",
467 100: "fat"
468 },
469 duotone: {
470 900: "fad",
471 400: "fadr",
472 300: "fadl",
473 100: "fadt"
474 },
475 sharp: {
476 900: "fass",
477 400: "fasr",
478 300: "fasl",
479 100: "fast"
480 },
481 "sharp-duotone": {
482 900: "fasds",
483 400: "fasdr",
484 300: "fasdl",
485 100: "fasdt"
486 },
487 slab: {
488 400: "faslr"
489 },
490 "slab-press": {
491 400: "faslpr"
492 },
493 "slab-duo": {
494 400: "fasldr"
495 },
496 "slab-press-duo": {
497 400: "faslpdr"
498 },
499 vellum: {
500 900: "favs"
501 },
502 mosaic: {
503 900: "fams"
504 },
505 pixel: {
506 400: "fapr"
507 },
508 whiteboard: {
509 600: "fawsb"
510 },
511 thumbprint: {
512 300: "fatl"
513 },
514 notdog: {
515 900: "fans"
516 },
517 "notdog-duo": {
518 900: "fands"
519 },
520 etch: {
521 900: "faes"
522 },
523 graphite: {
524 100: "fagt"
525 },
526 chisel: {
527 400: "facr"
528 },
529 jelly: {
530 400: "fajr"
531 },
532 "jelly-fill": {
533 400: "fajfr"
534 },
535 "jelly-duo": {
536 400: "fajdr"
537 },
538 utility: {
539 600: "fausb"
540 },
541 "utility-duo": {
542 600: "faudsb"
543 },
544 "utility-fill": {
545 600: "faufsb"
546 }
547 };
548 var zl = {
549 "Font Awesome 7 Free": {
550 900: "fas",
551 400: "far"
552 },
553 "Font Awesome 7 Pro": {
554 900: "fas",
555 400: "far",
556 normal: "far",
557 300: "fal",
558 100: "fat"
559 },
560 "Font Awesome 7 Brands": {
561 400: "fab",
562 normal: "fab"
563 },
564 "Font Awesome 7 Duotone": {
565 900: "fad",
566 400: "fadr",
567 normal: "fadr",
568 300: "fadl",
569 100: "fadt"
570 },
571 "Font Awesome 7 Sharp": {
572 900: "fass",
573 400: "fasr",
574 normal: "fasr",
575 300: "fasl",
576 100: "fast"
577 },
578 "Font Awesome 7 Sharp Duotone": {
579 900: "fasds",
580 400: "fasdr",
581 normal: "fasdr",
582 300: "fasdl",
583 100: "fasdt"
584 },
585 "Font Awesome 7 Jelly": {
586 400: "fajr",
587 normal: "fajr"
588 },
589 "Font Awesome 7 Jelly Fill": {
590 400: "fajfr",
591 normal: "fajfr"
592 },
593 "Font Awesome 7 Jelly Duo": {
594 400: "fajdr",
595 normal: "fajdr"
596 },
597 "Font Awesome 7 Slab": {
598 400: "faslr",
599 normal: "faslr"
600 },
601 "Font Awesome 7 Slab Press": {
602 400: "faslpr",
603 normal: "faslpr"
604 },
605 "Font Awesome 7 Slab Duo": {
606 400: "fasldr",
607 normal: "fasldr"
608 },
609 "Font Awesome 7 Slab Press Duo": {
610 400: "faslpdr",
611 normal: "faslpdr"
612 },
613 "Font Awesome 7 Pixel": {
614 400: "fapr",
615 normal: "fapr"
616 },
617 "Font Awesome 7 Mosaic": {
618 900: "fams",
619 normal: "fams"
620 },
621 "Font Awesome 7 Vellum": {
622 900: "favs",
623 normal: "favs"
624 },
625 "Font Awesome 7 Thumbprint": {
626 300: "fatl",
627 normal: "fatl"
628 },
629 "Font Awesome 7 Notdog": {
630 900: "fans",
631 normal: "fans"
632 },
633 "Font Awesome 7 Notdog Duo": {
634 900: "fands",
635 normal: "fands"
636 },
637 "Font Awesome 7 Etch": {
638 900: "faes",
639 normal: "faes"
640 },
641 "Font Awesome 7 Graphite": {
642 100: "fagt",
643 normal: "fagt"
644 },
645 "Font Awesome 7 Chisel": {
646 400: "facr",
647 normal: "facr"
648 },
649 "Font Awesome 7 Whiteboard": {
650 600: "fawsb",
651 normal: "fawsb"
652 },
653 "Font Awesome 7 Utility": {
654 600: "fausb",
655 normal: "fausb"
656 },
657 "Font Awesome 7 Utility Duo": {
658 600: "faudsb",
659 normal: "faudsb"
660 },
661 "Font Awesome 7 Utility Fill": {
662 600: "faufsb",
663 normal: "faufsb"
664 }
665 };
666 var Ql = new Map([["classic", {
667 defaultShortPrefixId: "fas",
668 defaultStyleId: "solid",
669 styleIds: ["solid", "regular", "light", "thin", "brands"],
670 futureStyleIds: [],
671 defaultFontWeight: 900
672 }], ["duotone", {
673 defaultShortPrefixId: "fad",
674 defaultStyleId: "solid",
675 styleIds: ["solid", "regular", "light", "thin"],
676 futureStyleIds: [],
677 defaultFontWeight: 900
678 }], ["sharp", {
679 defaultShortPrefixId: "fass",
680 defaultStyleId: "solid",
681 styleIds: ["solid", "regular", "light", "thin"],
682 futureStyleIds: [],
683 defaultFontWeight: 900
684 }], ["sharp-duotone", {
685 defaultShortPrefixId: "fasds",
686 defaultStyleId: "solid",
687 styleIds: ["solid", "regular", "light", "thin"],
688 futureStyleIds: [],
689 defaultFontWeight: 900
690 }], ["chisel", {
691 defaultShortPrefixId: "facr",
692 defaultStyleId: "regular",
693 styleIds: ["regular"],
694 futureStyleIds: [],
695 defaultFontWeight: 400
696 }], ["etch", {
697 defaultShortPrefixId: "faes",
698 defaultStyleId: "solid",
699 styleIds: ["solid"],
700 futureStyleIds: [],
701 defaultFontWeight: 900
702 }], ["graphite", {
703 defaultShortPrefixId: "fagt",
704 defaultStyleId: "thin",
705 styleIds: ["thin"],
706 futureStyleIds: [],
707 defaultFontWeight: 100
708 }], ["jelly", {
709 defaultShortPrefixId: "fajr",
710 defaultStyleId: "regular",
711 styleIds: ["regular"],
712 futureStyleIds: [],
713 defaultFontWeight: 400
714 }], ["jelly-duo", {
715 defaultShortPrefixId: "fajdr",
716 defaultStyleId: "regular",
717 styleIds: ["regular"],
718 futureStyleIds: [],
719 defaultFontWeight: 400
720 }], ["jelly-fill", {
721 defaultShortPrefixId: "fajfr",
722 defaultStyleId: "regular",
723 styleIds: ["regular"],
724 futureStyleIds: [],
725 defaultFontWeight: 400
726 }], ["mosaic", {
727 defaultShortPrefixId: "fams",
728 defaultStyleId: "solid",
729 styleIds: ["solid"],
730 futureStyleIds: [],
731 defaultFontWeight: 900
732 }], ["notdog", {
733 defaultShortPrefixId: "fans",
734 defaultStyleId: "solid",
735 styleIds: ["solid"],
736 futureStyleIds: [],
737 defaultFontWeight: 900
738 }], ["notdog-duo", {
739 defaultShortPrefixId: "fands",
740 defaultStyleId: "solid",
741 styleIds: ["solid"],
742 futureStyleIds: [],
743 defaultFontWeight: 900
744 }], ["pixel", {
745 defaultShortPrefixId: "fapr",
746 defaultStyleId: "regular",
747 styleIds: ["regular"],
748 futureStyleIds: [],
749 defaultFontWeight: 400
750 }], ["slab", {
751 defaultShortPrefixId: "faslr",
752 defaultStyleId: "regular",
753 styleIds: ["regular"],
754 futureStyleIds: [],
755 defaultFontWeight: 400
756 }], ["slab-duo", {
757 defaultShortPrefixId: "fasldr",
758 defaultStyleId: "regular",
759 styleIds: ["regular"],
760 futureStyleIds: [],
761 defaultFontWeight: 400
762 }], ["slab-press", {
763 defaultShortPrefixId: "faslpr",
764 defaultStyleId: "regular",
765 styleIds: ["regular"],
766 futureStyleIds: [],
767 defaultFontWeight: 400
768 }], ["slab-press-duo", {
769 defaultShortPrefixId: "faslpdr",
770 defaultStyleId: "regular",
771 styleIds: ["regular"],
772 futureStyleIds: [],
773 defaultFontWeight: 400
774 }], ["thumbprint", {
775 defaultShortPrefixId: "fatl",
776 defaultStyleId: "light",
777 styleIds: ["light"],
778 futureStyleIds: [],
779 defaultFontWeight: 300
780 }], ["utility", {
781 defaultShortPrefixId: "fausb",
782 defaultStyleId: "semibold",
783 styleIds: ["semibold"],
784 futureStyleIds: [],
785 defaultFontWeight: 600
786 }], ["utility-duo", {
787 defaultShortPrefixId: "faudsb",
788 defaultStyleId: "semibold",
789 styleIds: ["semibold"],
790 futureStyleIds: [],
791 defaultFontWeight: 600
792 }], ["utility-fill", {
793 defaultShortPrefixId: "faufsb",
794 defaultStyleId: "semibold",
795 styleIds: ["semibold"],
796 futureStyleIds: [],
797 defaultFontWeight: 600
798 }], ["vellum", {
799 defaultShortPrefixId: "favs",
800 defaultStyleId: "solid",
801 styleIds: ["solid"],
802 futureStyleIds: [],
803 defaultFontWeight: 900
804 }], ["whiteboard", {
805 defaultShortPrefixId: "fawsb",
806 defaultStyleId: "semibold",
807 styleIds: ["semibold"],
808 futureStyleIds: [],
809 defaultFontWeight: 600
810 }]]),
811 $l = {
812 chisel: {
813 regular: "facr"
814 },
815 classic: {
816 brands: "fab",
817 light: "fal",
818 regular: "far",
819 solid: "fas",
820 thin: "fat"
821 },
822 duotone: {
823 light: "fadl",
824 regular: "fadr",
825 solid: "fad",
826 thin: "fadt"
827 },
828 etch: {
829 solid: "faes"
830 },
831 graphite: {
832 thin: "fagt"
833 },
834 jelly: {
835 regular: "fajr"
836 },
837 "jelly-duo": {
838 regular: "fajdr"
839 },
840 "jelly-fill": {
841 regular: "fajfr"
842 },
843 mosaic: {
844 solid: "fams"
845 },
846 notdog: {
847 solid: "fans"
848 },
849 "notdog-duo": {
850 solid: "fands"
851 },
852 pixel: {
853 regular: "fapr"
854 },
855 sharp: {
856 light: "fasl",
857 regular: "fasr",
858 solid: "fass",
859 thin: "fast"
860 },
861 "sharp-duotone": {
862 light: "fasdl",
863 regular: "fasdr",
864 solid: "fasds",
865 thin: "fasdt"
866 },
867 slab: {
868 regular: "faslr"
869 },
870 "slab-duo": {
871 regular: "fasldr"
872 },
873 "slab-press": {
874 regular: "faslpr"
875 },
876 "slab-press-duo": {
877 regular: "faslpdr"
878 },
879 thumbprint: {
880 light: "fatl"
881 },
882 utility: {
883 semibold: "fausb"
884 },
885 "utility-duo": {
886 semibold: "faudsb"
887 },
888 "utility-fill": {
889 semibold: "faufsb"
890 },
891 vellum: {
892 solid: "favs"
893 },
894 whiteboard: {
895 semibold: "fawsb"
896 }
897 };
898 var at = ["fak", "fa-kit", "fakd", "fa-kit-duotone"],
899 rt = {
900 kit: {
901 fak: "kit",
902 "fa-kit": "kit"
903 },
904 "kit-duotone": {
905 fakd: "kit-duotone",
906 "fa-kit-duotone": "kit-duotone"
907 }
908 },
909 it = ["kit"];
910 var H = "kit",
911 f = "kit-duotone",
912 Q = "Kit",
913 X = "Kit Duotone",
914 ht = _defineProperty(_defineProperty({}, H, Q), f, X);
915 var mt = {
916 kit: {
917 "fa-kit": "fak"
918 },
919 "kit-duotone": {
920 "fa-kit-duotone": "fakd"
921 }
922 };
923 var ct = {
924 "Font Awesome Kit": {
925 400: "fak",
926 normal: "fak"
927 },
928 "Font Awesome Kit Duotone": {
929 400: "fakd",
930 normal: "fakd"
931 }
932 },
933 It = {
934 kit: {
935 fak: "fa-kit"
936 },
937 "kit-duotone": {
938 fakd: "fa-kit-duotone"
939 }
940 };
941 var St = {
942 kit: {
943 kit: "fak"
944 },
945 "kit-duotone": {
946 "kit-duotone": "fakd"
947 }
948 };
949
950 var _jl;
951 var l$1 = {
952 GROUP: "duotone-group",
953 SWAP_OPACITY: "swap-opacity",
954 PRIMARY: "primary",
955 SECONDARY: "secondary"
956 },
957 n$1 = ["fa-classic", "fa-duotone", "fa-sharp", "fa-sharp-duotone", "fa-thumbprint", "fa-whiteboard", "fa-notdog", "fa-notdog-duo", "fa-chisel", "fa-etch", "fa-graphite", "fa-jelly", "fa-jelly-fill", "fa-jelly-duo", "fa-slab", "fa-slab-press", "fa-slab-press-duo", "fa-slab-duo", "fa-mosaic", "fa-pixel", "fa-vellum", "fa-utility", "fa-utility-duo", "fa-utility-fill"];
958 var g$1 = "classic",
959 a$1 = "duotone",
960 m$1 = "sharp",
961 t$1 = "sharp-duotone",
962 p$1 = "chisel",
963 y$1 = "etch",
964 b$1 = "graphite",
965 w$1 = "jelly",
966 e$1 = "jelly-duo",
967 x$1 = "jelly-fill",
968 c$1 = "mosaic",
969 I$1 = "notdog",
970 o$1 = "notdog-duo",
971 v$1 = "pixel",
972 F$1 = "slab",
973 r$1 = "slab-duo",
974 S$1 = "slab-press",
975 i$1 = "slab-press-duo",
976 d$1 = "thumbprint",
977 A$1 = "utility",
978 f$1 = "utility-duo",
979 P$1 = "utility-fill",
980 u$1 = "vellum",
981 j$1 = "whiteboard",
982 B$1 = "Classic",
983 N$1 = "Duotone",
984 D$1 = "Sharp",
985 k$1 = "Sharp Duotone",
986 C$1 = "Chisel",
987 T$1 = "Etch",
988 L$1 = "Graphite",
989 W$1 = "Jelly",
990 R$1 = "Jelly Duo",
991 K$1 = "Jelly Fill",
992 U$1 = "Mosaic",
993 J$1 = "Notdog",
994 _$1 = "Notdog Duo",
995 M$1 = "Pixel",
996 E$1 = "Slab",
997 G$1 = "Slab Duo",
998 O$1 = "Slab Press",
999 V$1 = "Slab Press Duo",
1000 z$1 = "Thumbprint",
1001 Y$1 = "Utility",
1002 $$1 = "Utility Duo",
1003 q$1 = "Utility Fill",
1004 H$1 = "Vellum",
1005 Q$1 = "Whiteboard",
1006 jl$1 = (_jl = {}, _defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_jl, g$1, B$1), a$1, N$1), m$1, D$1), t$1, k$1), p$1, C$1), y$1, T$1), b$1, L$1), w$1, W$1), e$1, R$1), x$1, K$1), _defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_jl, c$1, U$1), I$1, J$1), o$1, _$1), v$1, M$1), F$1, E$1), r$1, G$1), S$1, O$1), i$1, V$1), d$1, z$1), A$1, Y$1), _defineProperty(_defineProperty(_defineProperty(_defineProperty(_jl, f$1, $$1), P$1, q$1), u$1, H$1), j$1, Q$1));
1007 var X$1 = "kit",
1008 h$1 = "kit-duotone",
1009 Z$1 = "Kit",
1010 ll$1 = "Kit Duotone",
1011 ws = _defineProperty(_defineProperty({}, X$1, Z$1), h$1, ll$1);
1012 var ra = {
1013 classic: {
1014 "fa-brands": "fab",
1015 "fa-duotone": "fad",
1016 "fa-light": "fal",
1017 "fa-regular": "far",
1018 "fa-solid": "fas",
1019 "fa-thin": "fat"
1020 },
1021 duotone: {
1022 "fa-regular": "fadr",
1023 "fa-light": "fadl",
1024 "fa-thin": "fadt"
1025 },
1026 sharp: {
1027 "fa-solid": "fass",
1028 "fa-regular": "fasr",
1029 "fa-light": "fasl",
1030 "fa-thin": "fast"
1031 },
1032 "sharp-duotone": {
1033 "fa-solid": "fasds",
1034 "fa-regular": "fasdr",
1035 "fa-light": "fasdl",
1036 "fa-thin": "fasdt"
1037 },
1038 slab: {
1039 "fa-regular": "faslr"
1040 },
1041 "slab-press": {
1042 "fa-regular": "faslpr"
1043 },
1044 "slab-duo": {
1045 "fa-regular": "fasldr"
1046 },
1047 "slab-press-duo": {
1048 "fa-regular": "faslpdr"
1049 },
1050 pixel: {
1051 "fa-regular": "fapr"
1052 },
1053 mosaic: {
1054 "fa-solid": "fams"
1055 },
1056 vellum: {
1057 "fa-solid": "favs"
1058 },
1059 whiteboard: {
1060 "fa-semibold": "fawsb"
1061 },
1062 thumbprint: {
1063 "fa-light": "fatl"
1064 },
1065 notdog: {
1066 "fa-solid": "fans"
1067 },
1068 "notdog-duo": {
1069 "fa-solid": "fands"
1070 },
1071 etch: {
1072 "fa-solid": "faes"
1073 },
1074 graphite: {
1075 "fa-thin": "fagt"
1076 },
1077 jelly: {
1078 "fa-regular": "fajr"
1079 },
1080 "jelly-fill": {
1081 "fa-regular": "fajfr"
1082 },
1083 "jelly-duo": {
1084 "fa-regular": "fajdr"
1085 },
1086 chisel: {
1087 "fa-regular": "facr"
1088 },
1089 utility: {
1090 "fa-semibold": "fausb"
1091 },
1092 "utility-duo": {
1093 "fa-semibold": "faudsb"
1094 },
1095 "utility-fill": {
1096 "fa-semibold": "faufsb"
1097 }
1098 },
1099 al$1 = {
1100 classic: ["fas", "far", "fal", "fat", "fad"],
1101 duotone: ["fadr", "fadl", "fadt"],
1102 sharp: ["fass", "fasr", "fasl", "fast"],
1103 "sharp-duotone": ["fasds", "fasdr", "fasdl", "fasdt"],
1104 slab: ["faslr"],
1105 "slab-press": ["faslpr"],
1106 "slab-duo": ["fasldr"],
1107 "slab-press-duo": ["faslpdr"],
1108 pixel: ["fapr"],
1109 mosaic: ["fams"],
1110 vellum: ["favs"],
1111 whiteboard: ["fawsb"],
1112 thumbprint: ["fatl"],
1113 notdog: ["fans"],
1114 "notdog-duo": ["fands"],
1115 etch: ["faes"],
1116 graphite: ["fagt"],
1117 jelly: ["fajr"],
1118 "jelly-fill": ["fajfr"],
1119 "jelly-duo": ["fajdr"],
1120 chisel: ["facr"],
1121 utility: ["fausb"],
1122 "utility-duo": ["faudsb"],
1123 "utility-fill": ["faufsb"]
1124 },
1125 da = {
1126 classic: {
1127 fab: "fa-brands",
1128 fad: "fa-duotone",
1129 fal: "fa-light",
1130 far: "fa-regular",
1131 fas: "fa-solid",
1132 fat: "fa-thin"
1133 },
1134 duotone: {
1135 fadr: "fa-regular",
1136 fadl: "fa-light",
1137 fadt: "fa-thin"
1138 },
1139 sharp: {
1140 fass: "fa-solid",
1141 fasr: "fa-regular",
1142 fasl: "fa-light",
1143 fast: "fa-thin"
1144 },
1145 "sharp-duotone": {
1146 fasds: "fa-solid",
1147 fasdr: "fa-regular",
1148 fasdl: "fa-light",
1149 fasdt: "fa-thin"
1150 },
1151 slab: {
1152 faslr: "fa-regular"
1153 },
1154 "slab-press": {
1155 faslpr: "fa-regular"
1156 },
1157 "slab-duo": {
1158 fasldr: "fa-regular"
1159 },
1160 "slab-press-duo": {
1161 faslpdr: "fa-regular"
1162 },
1163 pixel: {
1164 fapr: "fa-regular"
1165 },
1166 mosaic: {
1167 fams: "fa-solid"
1168 },
1169 vellum: {
1170 favs: "fa-solid"
1171 },
1172 whiteboard: {
1173 fawsb: "fa-semibold"
1174 },
1175 thumbprint: {
1176 fatl: "fa-light"
1177 },
1178 notdog: {
1179 fans: "fa-solid"
1180 },
1181 "notdog-duo": {
1182 fands: "fa-solid"
1183 },
1184 etch: {
1185 faes: "fa-solid"
1186 },
1187 graphite: {
1188 fagt: "fa-thin"
1189 },
1190 jelly: {
1191 fajr: "fa-regular"
1192 },
1193 "jelly-fill": {
1194 fajfr: "fa-regular"
1195 },
1196 "jelly-duo": {
1197 fajdr: "fa-regular"
1198 },
1199 chisel: {
1200 facr: "fa-regular"
1201 },
1202 utility: {
1203 fausb: "fa-semibold"
1204 },
1205 "utility-duo": {
1206 faudsb: "fa-semibold"
1207 },
1208 "utility-fill": {
1209 faufsb: "fa-semibold"
1210 }
1211 },
1212 tl = ["fa-solid", "fa-regular", "fa-light", "fa-thin", "fa-duotone", "fa-brands", "fa-semibold"],
1213 ha = ["fa", "fas", "far", "fal", "fat", "fad", "fadr", "fadl", "fadt", "fab", "fass", "fasr", "fasl", "fast", "fasds", "fasdr", "fasdl", "fasdt", "faslr", "faslpr", "fasldr", "faslpdr", "fapr", "fams", "favs", "fawsb", "fatl", "fans", "fands", "faes", "fagt", "fajr", "fajfr", "fajdr", "facr", "fausb", "faudsb", "faufsb"].concat(n$1, tl),
1214 el$1 = ["solid", "regular", "light", "thin", "duotone", "brands", "semibold"],
1215 sl$1 = [1, 2, 3, 4, 5, 6, 7, 8, 9, 10],
1216 ol$1 = sl$1.concat([11, 12, 13, 14, 15, 16, 17, 18, 19, 20]),
1217 rl$1 = ["aw", "fw", "pull-left", "pull-right"],
1218 ga = [].concat(_toConsumableArray(Object.keys(al$1)), el$1, rl$1, ["2xs", "xs", "sm", "lg", "xl", "2xl", "beat", "beat-fade", "border", "bounce", "buzz", "canvas-square", "canvas-roomy", "fade", "flip-360", "flip-both", "flip-horizontal", "flip-vertical", "flip", "float", "inverse", "jello", "layers", "layers-bottom-left", "layers-bottom-right", "layers-counter", "layers-text", "layers-top-left", "layers-top-right", "li", "pull-end", "pull-start", "pulse", "rotate-180", "rotate-270", "rotate-90", "rotate-by", "shake", "spin-pulse", "spin-reverse", "spin", "spin-snap", "spin-snap-4", "spin-snap-8", "stack-1x", "stack-2x", "stack", "swing", "ul", "wag", "width-auto", "width-fixed", l$1.GROUP, l$1.SWAP_OPACITY, l$1.PRIMARY, l$1.SECONDARY]).concat(sl$1.map(function (s) {
1219 return "".concat(s, "x");
1220 })).concat(ol$1.map(function (s) {
1221 return "w-".concat(s);
1222 }));
1223 var wa = {
1224 "Font Awesome 5 Free": {
1225 900: "fas",
1226 400: "far"
1227 },
1228 "Font Awesome 5 Pro": {
1229 900: "fas",
1230 400: "far",
1231 normal: "far",
1232 300: "fal"
1233 },
1234 "Font Awesome 5 Brands": {
1235 400: "fab",
1236 normal: "fab"
1237 },
1238 "Font Awesome 5 Duotone": {
1239 900: "fad"
1240 }
1241 };
1242
1243 var NAMESPACE_IDENTIFIER = '___FONT_AWESOME___';
1244 var UNITS_IN_GRID = 16;
1245 var DEFAULT_CSS_PREFIX = 'fa';
1246 var DEFAULT_REPLACEMENT_CLASS = 'svg-inline--fa';
1247 var DATA_FA_I2SVG = 'data-fa-i2svg';
1248 var DATA_FA_PSEUDO_ELEMENT = 'data-fa-pseudo-element';
1249 var DATA_FA_PSEUDO_ELEMENT_PENDING = 'data-fa-pseudo-element-pending';
1250 var DATA_PREFIX = 'data-prefix';
1251 var DATA_ICON = 'data-icon';
1252 var HTML_CLASS_I2SVG_BASE_CLASS = 'fontawesome-i2svg';
1253 var MUTATION_APPROACH_ASYNC = 'async';
1254 var TAGNAMES_TO_SKIP_FOR_PSEUDOELEMENTS = ['HTML', 'HEAD', 'STYLE', 'SCRIPT'];
1255 var PSEUDO_ELEMENTS = ['::before', '::after', ':before', ':after'];
1256 var PRODUCTION = function () {
1257 try {
1258 return process.env.NODE_ENV === 'production';
1259 } catch (e$$1) {
1260 return false;
1261 }
1262 }();
1263 function familyProxy(obj) {
1264 // Defaults to the classic family if family is not available
1265 return new Proxy(obj, {
1266 get: function get(target, prop) {
1267 return prop in target ? target[prop] : target[u];
1268 }
1269 });
1270 }
1271 var _PREFIX_TO_STYLE = _objectSpread2({}, rl);
1272
1273 // We changed FACSSClassesToStyleId in the icons repo to be canonical and as such, "classic" family does not have any
1274 // duotone styles. But we do still need duotone in _PREFIX_TO_STYLE below, so we are manually adding
1275 // {'fa-duotone': 'duotone'}
1276 _PREFIX_TO_STYLE[u] = _objectSpread2(_objectSpread2(_objectSpread2(_objectSpread2({}, {
1277 'fa-duotone': 'duotone'
1278 }), rl[u]), rt['kit']), rt['kit-duotone']);
1279 var PREFIX_TO_STYLE = familyProxy(_PREFIX_TO_STYLE);
1280 var _STYLE_TO_PREFIX = _objectSpread2({}, $l);
1281
1282 // We changed FAStyleIdToShortPrefixId in the icons repo to be canonical and as such, "classic" family does not have any
1283 // duotone styles. But we do still need duotone in _STYLE_TO_PREFIX below, so we are manually adding {duotone: 'fad'}
1284 _STYLE_TO_PREFIX[u] = _objectSpread2(_objectSpread2(_objectSpread2(_objectSpread2({}, {
1285 duotone: 'fad'
1286 }), _STYLE_TO_PREFIX[u]), St['kit']), St['kit-duotone']);
1287 var STYLE_TO_PREFIX = familyProxy(_STYLE_TO_PREFIX);
1288 var _PREFIX_TO_LONG_STYLE = _objectSpread2({}, da);
1289 _PREFIX_TO_LONG_STYLE[u] = _objectSpread2(_objectSpread2({}, _PREFIX_TO_LONG_STYLE[u]), It['kit']);
1290 var PREFIX_TO_LONG_STYLE = familyProxy(_PREFIX_TO_LONG_STYLE);
1291 var _LONG_STYLE_TO_PREFIX = _objectSpread2({}, ra);
1292 _LONG_STYLE_TO_PREFIX[u] = _objectSpread2(_objectSpread2({}, _LONG_STYLE_TO_PREFIX[u]), mt['kit']);
1293 var LONG_STYLE_TO_PREFIX = familyProxy(_LONG_STYLE_TO_PREFIX);
1294 var ICON_SELECTION_SYNTAX_PATTERN = Z;
1295 var LAYERS_TEXT_CLASSNAME = 'fa-layers-text';
1296 var FONT_FAMILY_PATTERN = $;
1297 var _FONT_WEIGHT_TO_PREFIX = _objectSpread2({}, Al);
1298 var FONT_WEIGHT_TO_PREFIX = familyProxy(_FONT_WEIGHT_TO_PREFIX);
1299 var ATTRIBUTES_WATCHED_FOR_MUTATION = ['class', 'data-prefix', 'data-icon', 'data-fa-transform', 'data-fa-mask'];
1300 var DUOTONE_CLASSES = il;
1301 var RESERVED_CLASSES = [].concat(_toConsumableArray(it), _toConsumableArray(ga));
1302
1303 var initial = WINDOW.FontAwesomeConfig || {};
1304 function getAttrConfig(attr) {
1305 var element = DOCUMENT.querySelector('script[' + attr + ']');
1306 if (element) {
1307 return element.getAttribute(attr);
1308 }
1309 }
1310 function coerce(val) {
1311 // Getting an empty string will occur if the attribute is set on the HTML tag but without a value
1312 // We'll assume that this is an indication that it should be toggled to true
1313 if (val === '') return true;
1314 if (val === 'false') return false;
1315 if (val === 'true') return true;
1316 return val;
1317 }
1318 if (DOCUMENT && typeof DOCUMENT.querySelector === 'function') {
1319 var attrs = [['data-family-prefix', 'familyPrefix'], ['data-css-prefix', 'cssPrefix'], ['data-family-default', 'familyDefault'], ['data-style-default', 'styleDefault'], ['data-replacement-class', 'replacementClass'], ['data-auto-replace-svg', 'autoReplaceSvg'], ['data-auto-add-css', 'autoAddCss'], ['data-search-pseudo-elements', 'searchPseudoElements'], ['data-search-pseudo-elements-warnings', 'searchPseudoElementsWarnings'], ['data-search-pseudo-elements-full-scan', 'searchPseudoElementsFullScan'], ['data-observe-mutations', 'observeMutations'], ['data-mutate-approach', 'mutateApproach'], ['data-keep-original-source', 'keepOriginalSource'], ['data-measure-performance', 'measurePerformance'], ['data-show-missing-icons', 'showMissingIcons']];
1320 attrs.forEach(function (_ref) {
1321 var _ref2 = _slicedToArray(_ref, 2),
1322 attr = _ref2[0],
1323 key = _ref2[1];
1324 var val = coerce(getAttrConfig(attr));
1325 if (val !== undefined && val !== null) {
1326 initial[key] = val;
1327 }
1328 });
1329 }
1330 var _default = {
1331 styleDefault: 'solid',
1332 familyDefault: u,
1333 cssPrefix: DEFAULT_CSS_PREFIX,
1334 replacementClass: DEFAULT_REPLACEMENT_CLASS,
1335 autoReplaceSvg: true,
1336 autoAddCss: true,
1337 searchPseudoElements: false,
1338 searchPseudoElementsWarnings: true,
1339 searchPseudoElementsFullScan: false,
1340 observeMutations: true,
1341 mutateApproach: 'async',
1342 keepOriginalSource: true,
1343 measurePerformance: false,
1344 showMissingIcons: true
1345 };
1346
1347 // familyPrefix is deprecated but we must still support it if present
1348 if (initial.familyPrefix) {
1349 initial.cssPrefix = initial.familyPrefix;
1350 }
1351 var _config = _objectSpread2(_objectSpread2({}, _default), initial);
1352 if (!_config.autoReplaceSvg) _config.observeMutations = false;
1353 var config = {};
1354 Object.keys(_default).forEach(function (key) {
1355 Object.defineProperty(config, key, {
1356 enumerable: true,
1357 set: function set(val) {
1358 _config[key] = val;
1359 _onChangeCb.forEach(function (cb) {
1360 return cb(config);
1361 });
1362 },
1363 get: function get() {
1364 return _config[key];
1365 }
1366 });
1367 });
1368
1369 // familyPrefix is deprecated as of 6.2.0 and should be removed in 7.0.0
1370 Object.defineProperty(config, 'familyPrefix', {
1371 enumerable: true,
1372 set: function set(val) {
1373 _config.cssPrefix = val;
1374 _onChangeCb.forEach(function (cb) {
1375 return cb(config);
1376 });
1377 },
1378 get: function get() {
1379 return _config.cssPrefix;
1380 }
1381 });
1382 WINDOW.FontAwesomeConfig = config;
1383 var _onChangeCb = [];
1384 function onChange(cb) {
1385 _onChangeCb.push(cb);
1386 return function () {
1387 _onChangeCb.splice(_onChangeCb.indexOf(cb), 1);
1388 };
1389 }
1390
1391 var d$2 = UNITS_IN_GRID;
1392 var meaninglessTransform = {
1393 size: 16,
1394 x: 0,
1395 y: 0,
1396 rotate: 0,
1397 flipX: false,
1398 flipY: false
1399 };
1400 function insertCss(css) {
1401 if (!css || !IS_DOM) {
1402 return;
1403 }
1404 var style = DOCUMENT.createElement('style');
1405 style.setAttribute('type', 'text/css');
1406 style.innerHTML = css;
1407 var headChildren = DOCUMENT.head.childNodes;
1408 var beforeChild = null;
1409 for (var i = headChildren.length - 1; i > -1; i--) {
1410 var child = headChildren[i];
1411 var tagName = (child.tagName || '').toUpperCase();
1412 if (['STYLE', 'LINK'].indexOf(tagName) > -1) {
1413 beforeChild = child;
1414 }
1415 }
1416 DOCUMENT.head.insertBefore(style, beforeChild);
1417 return css;
1418 }
1419 var idPool = '0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ';
1420 function nextUniqueId() {
1421 var size = 12;
1422 var id = '';
1423 while (size-- > 0) {
1424 id += idPool[Math.random() * 62 | 0];
1425 }
1426 return id;
1427 }
1428 function toArray(obj) {
1429 var array = [];
1430 for (var i = (obj || []).length >>> 0; i--;) {
1431 array[i] = obj[i];
1432 }
1433 return array;
1434 }
1435 function classArray(node) {
1436 if (node.classList) {
1437 return toArray(node.classList);
1438 } else {
1439 return (node.getAttribute('class') || '').split(' ').filter(function (i) {
1440 return i;
1441 });
1442 }
1443 }
1444 function htmlEscape(str) {
1445 return "".concat(str).replace(/&/g, '&amp;').replace(/"/g, '&quot;').replace(/'/g, '&#39;').replace(/</g, '&lt;').replace(/>/g, '&gt;');
1446 }
1447 function joinAttributes(attributes) {
1448 return Object.keys(attributes || {}).reduce(function (acc, attributeName) {
1449 return acc + "".concat(attributeName, "=\"").concat(htmlEscape(attributes[attributeName]), "\" ");
1450 }, '').trim();
1451 }
1452 function joinStyles(styles) {
1453 return Object.keys(styles || {}).reduce(function (acc, styleName) {
1454 return acc + "".concat(styleName, ": ").concat(styles[styleName].trim(), ";");
1455 }, '');
1456 }
1457 function transformIsMeaningful(transform) {
1458 return transform.size !== meaninglessTransform.size || transform.x !== meaninglessTransform.x || transform.y !== meaninglessTransform.y || transform.rotate !== meaninglessTransform.rotate || transform.flipX || transform.flipY;
1459 }
1460 function transformForSvg(_ref) {
1461 var transform = _ref.transform,
1462 containerWidth = _ref.containerWidth,
1463 iconWidth = _ref.iconWidth;
1464 var outer = {
1465 transform: "translate(".concat(containerWidth / 2, " 256)")
1466 };
1467 var innerTranslate = "translate(".concat(transform.x * 32, ", ").concat(transform.y * 32, ") ");
1468 var innerScale = "scale(".concat(transform.size / 16 * (transform.flipX ? -1 : 1), ", ").concat(transform.size / 16 * (transform.flipY ? -1 : 1), ") ");
1469 var innerRotate = "rotate(".concat(transform.rotate, " 0 0)");
1470 var inner = {
1471 transform: "".concat(innerTranslate, " ").concat(innerScale, " ").concat(innerRotate)
1472 };
1473 var path = {
1474 transform: "translate(".concat(iconWidth / 2 * -1, " -256)")
1475 };
1476 return {
1477 outer: outer,
1478 inner: inner,
1479 path: path
1480 };
1481 }
1482 function transformForCss(_ref2) {
1483 var transform = _ref2.transform,
1484 _ref2$width = _ref2.width,
1485 width = _ref2$width === void 0 ? UNITS_IN_GRID : _ref2$width,
1486 _ref2$height = _ref2.height,
1487 height = _ref2$height === void 0 ? UNITS_IN_GRID : _ref2$height,
1488 _ref2$startCentered = _ref2.startCentered,
1489 startCentered = _ref2$startCentered === void 0 ? false : _ref2$startCentered;
1490 var val = '';
1491 if (startCentered && IS_IE) {
1492 val += "translate(".concat(transform.x / d$2 - width / 2, "em, ").concat(transform.y / d$2 - height / 2, "em) ");
1493 } else if (startCentered) {
1494 val += "translate(calc(-50% + ".concat(transform.x / d$2, "em), calc(-50% + ").concat(transform.y / d$2, "em)) ");
1495 } else {
1496 val += "translate(".concat(transform.x / d$2, "em, ").concat(transform.y / d$2, "em) ");
1497 }
1498 val += "scale(".concat(transform.size / d$2 * (transform.flipX ? -1 : 1), ", ").concat(transform.size / d$2 * (transform.flipY ? -1 : 1), ") ");
1499 val += "rotate(".concat(transform.rotate, "deg) ");
1500 return val;
1501 }
1502
1503 var baseStyles = ":root, :host {\n --fa-font-solid: normal 900 1em/1 'Font Awesome 7 Free';\n --fa-font-regular: normal 400 1em/1 'Font Awesome 7 Free';\n --fa-font-light: normal 300 1em/1 'Font Awesome 7 Pro';\n --fa-font-thin: normal 100 1em/1 'Font Awesome 7 Pro';\n --fa-font-duotone: normal 900 1em/1 'Font Awesome 7 Duotone';\n --fa-font-duotone-regular: normal 400 1em/1 'Font Awesome 7 Duotone';\n --fa-font-duotone-light: normal 300 1em/1 'Font Awesome 7 Duotone';\n --fa-font-duotone-thin: normal 100 1em/1 'Font Awesome 7 Duotone';\n --fa-font-brands: normal 400 1em/1 'Font Awesome 7 Brands';\n --fa-font-sharp-solid: normal 900 1em/1 'Font Awesome 7 Sharp';\n --fa-font-sharp-regular: normal 400 1em/1 'Font Awesome 7 Sharp';\n --fa-font-sharp-light: normal 300 1em/1 'Font Awesome 7 Sharp';\n --fa-font-sharp-thin: normal 100 1em/1 'Font Awesome 7 Sharp';\n --fa-font-sharp-duotone-solid: normal 900 1em/1 'Font Awesome 7 Sharp Duotone';\n --fa-font-sharp-duotone-regular: normal 400 1em/1 'Font Awesome 7 Sharp Duotone';\n --fa-font-sharp-duotone-light: normal 300 1em/1 'Font Awesome 7 Sharp Duotone';\n --fa-font-sharp-duotone-thin: normal 100 1em/1 'Font Awesome 7 Sharp Duotone';\n --fa-font-slab-regular: normal 400 1em/1 'Font Awesome 7 Slab';\n --fa-font-slab-press-regular: normal 400 1em/1 'Font Awesome 7 Slab Press';\n --fa-font-slab-duo-regular: normal 400 1em/1 'Font Awesome 7 Slab Duo';\n --fa-font-slab-press-duo-regular: normal 400 1em/1 'Font Awesome 7 Slab Press Duo';\n --fa-font-pixel-regular: normal 400 1em/1 'Font Awesome 7 Pixel';\n --fa-font-mosaic-solid: normal 900 1em/1 'Font Awesome 7 Mosaic';\n --fa-font-vellum-solid: normal 900 1em/1 'Font Awesome 7 Vellum';\n --fa-font-whiteboard-semibold: normal 600 1em/1 'Font Awesome 7 Whiteboard';\n --fa-font-thumbprint-light: normal 300 1em/1 'Font Awesome 7 Thumbprint';\n --fa-font-notdog-solid: normal 900 1em/1 'Font Awesome 7 Notdog';\n --fa-font-notdog-duo-solid: normal 900 1em/1 'Font Awesome 7 Notdog Duo';\n --fa-font-etch-solid: normal 900 1em/1 'Font Awesome 7 Etch';\n --fa-font-graphite-thin: normal 100 1em/1 'Font Awesome 7 Graphite';\n --fa-font-jelly-regular: normal 400 1em/1 'Font Awesome 7 Jelly';\n --fa-font-jelly-fill-regular: normal 400 1em/1 'Font Awesome 7 Jelly Fill';\n --fa-font-jelly-duo-regular: normal 400 1em/1 'Font Awesome 7 Jelly Duo';\n --fa-font-chisel-regular: normal 400 1em/1 'Font Awesome 7 Chisel';\n --fa-font-utility-semibold: normal 600 1em/1 'Font Awesome 7 Utility';\n --fa-font-utility-duo-semibold: normal 600 1em/1 'Font Awesome 7 Utility Duo';\n --fa-font-utility-fill-semibold: normal 600 1em/1 'Font Awesome 7 Utility Fill';\n}\n\n.svg-inline--fa {\n box-sizing: content-box;\n display: var(--fa-display, inline-block);\n height: 1em;\n overflow: visible;\n vertical-align: -0.125em;\n width: var(--fa-width, 1.25em);\n}\n.svg-inline--fa.fa-2xs {\n vertical-align: 0.1em;\n}\n.svg-inline--fa.fa-xs {\n vertical-align: 0em;\n}\n.svg-inline--fa.fa-sm {\n vertical-align: -0.0714285714em;\n}\n.svg-inline--fa.fa-lg {\n vertical-align: -0.2em;\n}\n.svg-inline--fa.fa-xl {\n vertical-align: -0.25em;\n}\n.svg-inline--fa.fa-2xl {\n vertical-align: -0.3125em;\n}\n.svg-inline--fa.fa-pull-left,\n.svg-inline--fa .fa-pull-start {\n float: inline-start;\n margin-inline-end: var(--fa-pull-margin, 0.3em);\n}\n.svg-inline--fa.fa-pull-right,\n.svg-inline--fa .fa-pull-end {\n float: inline-end;\n margin-inline-start: var(--fa-pull-margin, 0.3em);\n}\n.svg-inline--fa.fa-li {\n width: var(--fa-li-width, 2em);\n inset-inline-start: calc(-1 * var(--fa-li-width, 2em));\n inset-block-start: 0.25em; /* syncing vertical alignment with Web Font rendering */\n}\n\n.fa-layers-counter, .fa-layers-text {\n display: inline-block;\n position: absolute;\n text-align: center;\n}\n\n.fa-layers {\n display: inline-block;\n height: 1em;\n position: relative;\n text-align: center;\n vertical-align: -0.125em;\n width: var(--fa-width, 1.25em);\n}\n.fa-layers .svg-inline--fa {\n inset: 0;\n margin: auto;\n position: absolute;\n transform-origin: center center;\n}\n\n.fa-layers-text {\n left: 50%;\n top: 50%;\n transform: translate(-50%, -50%);\n transform-origin: center center;\n}\n\n.fa-layers-counter {\n background-color: var(--fa-counter-background-color, #ff253a);\n border-radius: var(--fa-counter-border-radius, 1em);\n box-sizing: border-box;\n color: var(--fa-inverse, #fff);\n line-height: var(--fa-counter-line-height, 1);\n max-width: var(--fa-counter-max-width, 5em);\n min-width: var(--fa-counter-min-width, 1.5em);\n overflow: hidden;\n padding: var(--fa-counter-padding, 0.25em 0.5em);\n right: var(--fa-right, 0);\n text-overflow: ellipsis;\n top: var(--fa-top, 0);\n transform: scale(var(--fa-counter-scale, 0.25));\n transform-origin: top right;\n}\n\n.fa-layers-bottom-right {\n bottom: var(--fa-bottom, 0);\n right: var(--fa-right, 0);\n top: auto;\n transform: scale(var(--fa-layers-scale, 0.25));\n transform-origin: bottom right;\n}\n\n.fa-layers-bottom-left {\n bottom: var(--fa-bottom, 0);\n left: var(--fa-left, 0);\n right: auto;\n top: auto;\n transform: scale(var(--fa-layers-scale, 0.25));\n transform-origin: bottom left;\n}\n\n.fa-layers-top-right {\n top: var(--fa-top, 0);\n right: var(--fa-right, 0);\n transform: scale(var(--fa-layers-scale, 0.25));\n transform-origin: top right;\n}\n\n.fa-layers-top-left {\n left: var(--fa-left, 0);\n right: auto;\n top: var(--fa-top, 0);\n transform: scale(var(--fa-layers-scale, 0.25));\n transform-origin: top left;\n}\n\n.fa-1x {\n font-size: 1em;\n}\n\n.fa-2x {\n font-size: 2em;\n}\n\n.fa-3x {\n font-size: 3em;\n}\n\n.fa-4x {\n font-size: 4em;\n}\n\n.fa-5x {\n font-size: 5em;\n}\n\n.fa-6x {\n font-size: 6em;\n}\n\n.fa-7x {\n font-size: 7em;\n}\n\n.fa-8x {\n font-size: 8em;\n}\n\n.fa-9x {\n font-size: 9em;\n}\n\n.fa-10x {\n font-size: 10em;\n}\n\n.fa-2xs {\n font-size: calc(10 / 16 * 1em); /* converts a 10px size into an em-based value that's relative to the scale's 16px base */\n line-height: calc(1 / 10 * 1em); /* sets the line-height of the icon back to that of it's parent */\n vertical-align: calc((6 / 10 - 0.375) * 1em); /* vertically centers the icon taking into account the surrounding text's descender */\n}\n\n.fa-xs {\n font-size: calc(12 / 16 * 1em); /* converts a 12px size into an em-based value that's relative to the scale's 16px base */\n line-height: calc(1 / 12 * 1em); /* sets the line-height of the icon back to that of it's parent */\n vertical-align: calc((6 / 12 - 0.375) * 1em); /* vertically centers the icon taking into account the surrounding text's descender */\n}\n\n.fa-sm {\n font-size: calc(14 / 16 * 1em); /* converts a 14px size into an em-based value that's relative to the scale's 16px base */\n line-height: calc(1 / 14 * 1em); /* sets the line-height of the icon back to that of it's parent */\n vertical-align: calc((6 / 14 - 0.375) * 1em); /* vertically centers the icon taking into account the surrounding text's descender */\n}\n\n.fa-lg {\n font-size: calc(20 / 16 * 1em); /* converts a 20px size into an em-based value that's relative to the scale's 16px base */\n line-height: calc(1 / 20 * 1em); /* sets the line-height of the icon back to that of it's parent */\n vertical-align: calc((6 / 20 - 0.375) * 1em); /* vertically centers the icon taking into account the surrounding text's descender */\n}\n\n.fa-xl {\n font-size: calc(24 / 16 * 1em); /* converts a 24px size into an em-based value that's relative to the scale's 16px base */\n line-height: calc(1 / 24 * 1em); /* sets the line-height of the icon back to that of it's parent */\n vertical-align: calc((6 / 24 - 0.375) * 1em); /* vertically centers the icon taking into account the surrounding text's descender */\n}\n\n.fa-2xl {\n font-size: calc(32 / 16 * 1em); /* converts a 32px size into an em-based value that's relative to the scale's 16px base */\n line-height: calc(1 / 32 * 1em); /* sets the line-height of the icon back to that of it's parent */\n vertical-align: calc((6 / 32 - 0.375) * 1em); /* vertically centers the icon taking into account the surrounding text's descender */\n}\n\n.fa-width-auto {\n --fa-width: auto;\n}\n\n.fa-fw,\n.fa-width-fixed {\n --fa-width: 1.25em;\n}\n\n.fa-canvas-square {\n padding-block: 0.125em;\n margin-block-end: -0.125em;\n}\n\n.fa-canvas-roomy {\n padding-block: 0.25em;\n padding-inline: 0.125em;\n margin-block-end: -0.25em;\n box-sizing: content-box;\n}\n\n.fa-ul {\n list-style-type: none;\n margin-inline-start: var(--fa-li-margin, 2.5em);\n padding-inline-start: 0;\n}\n.fa-ul > li {\n position: relative;\n}\n\n.fa-li {\n inset-inline-start: calc(-1 * var(--fa-li-width, 2em));\n position: absolute;\n text-align: center;\n width: var(--fa-li-width, 2em);\n line-height: inherit;\n}\n\n/* Heads Up: Bordered Icons will not be supported in the future!\n - This feature will be deprecated in the next major release of Font Awesome (v8)!\n - You may continue to use it in this version *v7), but it will not be supported in Font Awesome v8.\n*/\n/* Notes:\n* --@{v.$css-prefix}-border-width = 1/16 by default (to render as ~1px based on a 16px default font-size)\n* --@{v.$css-prefix}-border-padding =\n ** 3/16 for vertical padding (to give ~2px of vertical whitespace around an icon considering it's vertical alignment)\n ** 4/16 for horizontal padding (to give ~4px of horizontal whitespace around an icon)\n*/\n.fa-border {\n border-color: var(--fa-border-color, #eee);\n border-radius: var(--fa-border-radius, 0.1em);\n border-style: var(--fa-border-style, solid);\n border-width: var(--fa-border-width, 0.0625em);\n box-sizing: var(--fa-border-box-sizing, content-box);\n padding: var(--fa-border-padding, 0.1875em 0.25em);\n}\n\n.fa-pull-left,\n.fa-pull-start {\n float: inline-start;\n margin-inline-end: var(--fa-pull-margin, 0.3em);\n}\n\n.fa-pull-right,\n.fa-pull-end {\n float: inline-end;\n margin-inline-start: var(--fa-pull-margin, 0.3em);\n}\n\n.fa-beat {\n animation-name: fa-beat;\n animation-delay: var(--fa-animation-delay, 0s);\n animation-direction: var(--fa-animation-direction, normal);\n animation-duration: var(--fa-animation-duration, 1s);\n animation-iteration-count: var(--fa-animation-iteration-count, infinite);\n animation-timing-function: var(--fa-animation-timing, ease-in-out);\n}\n\n.fa-bounce {\n animation-name: fa-bounce;\n animation-delay: var(--fa-animation-delay, 0s);\n animation-direction: var(--fa-animation-direction, normal);\n animation-duration: var(--fa-animation-duration, 1s);\n animation-iteration-count: var(--fa-animation-iteration-count, infinite);\n animation-timing-function: var(--fa-animation-timing, cubic-bezier(0.28, 0.84, 0.42, 1));\n}\n\n.fa-fade {\n animation-name: fa-fade;\n animation-delay: var(--fa-animation-delay, 0s);\n animation-direction: var(--fa-animation-direction, normal);\n animation-duration: var(--fa-animation-duration, 1s);\n animation-iteration-count: var(--fa-animation-iteration-count, infinite);\n animation-timing-function: var(--fa-animation-timing, ease-in-out);\n}\n\n.fa-beat-fade {\n animation-name: fa-beat-fade;\n animation-delay: var(--fa-animation-delay, 0s);\n animation-direction: var(--fa-animation-direction, normal);\n animation-duration: var(--fa-animation-duration, 1s);\n animation-iteration-count: var(--fa-animation-iteration-count, infinite);\n animation-timing-function: var(--fa-animation-timing, ease-in-out);\n}\n\n.fa-flip {\n animation-name: fa-flip;\n animation-delay: var(--fa-animation-delay, 0s);\n animation-direction: var(--fa-animation-direction, normal);\n animation-duration: var(--fa-animation-duration, 1.5s);\n animation-iteration-count: var(--fa-animation-iteration-count, infinite);\n animation-timing-function: var(--fa-animation-timing, ease-in-out);\n}\n\n.fa-flip-360 {\n animation-name: fa-flip-360;\n animation-delay: var(--fa-animation-delay, 0s);\n animation-direction: var(--fa-animation-direction, normal);\n animation-duration: var(--fa-animation-duration, 1s);\n animation-iteration-count: var(--fa-animation-iteration-count, infinite);\n animation-timing-function: var(--fa-animation-timing, ease-in-out);\n}\n\n.fa-shake {\n animation-name: fa-shake;\n animation-delay: var(--fa-animation-delay, 0s);\n animation-direction: var(--fa-animation-direction, normal);\n animation-duration: var(--fa-animation-duration, 0.75s);\n animation-iteration-count: var(--fa-animation-iteration-count, infinite);\n animation-timing-function: var(--fa-animation-timing, ease-in-out);\n}\n\n.fa-spin {\n animation-name: fa-spin;\n animation-delay: var(--fa-animation-delay, 0s);\n animation-direction: var(--fa-animation-direction, normal);\n animation-duration: var(--fa-animation-duration, 2s);\n animation-iteration-count: var(--fa-animation-iteration-count, infinite);\n animation-timing-function: var(--fa-animation-timing, linear);\n}\n\n.fa-spin-reverse {\n --fa-animation-direction: reverse;\n}\n\n.fa-pulse,\n.fa-spin-pulse {\n animation-name: fa-spin;\n animation-direction: var(--fa-animation-direction, normal);\n animation-duration: var(--fa-animation-duration, 1s);\n animation-iteration-count: var(--fa-animation-iteration-count, infinite);\n animation-timing-function: var(--fa-animation-timing, steps(8));\n}\n\n.fa-spin-snap {\n animation-name: fa-spin-snap;\n animation-delay: var(--fa-animation-delay, 0s);\n animation-direction: var(--fa-animation-direction, normal);\n animation-duration: var(--fa-animation-duration, 3s);\n animation-iteration-count: var(--fa-animation-iteration-count, infinite);\n animation-timing-function: var(--fa-animation-timing, linear);\n}\n\n.fa-spin-snap-4 {\n animation-name: fa-spin-snap-4;\n animation-delay: var(--fa-animation-delay, 0s);\n animation-direction: var(--fa-animation-direction, normal);\n animation-duration: var(--fa-animation-duration, 2.4s);\n animation-iteration-count: var(--fa-animation-iteration-count, infinite);\n animation-timing-function: var(--fa-animation-timing, linear);\n}\n\n.fa-spin-snap-8 {\n animation-name: fa-spin-snap-8;\n animation-delay: var(--fa-animation-delay, 0s);\n animation-direction: var(--fa-animation-direction, normal);\n animation-duration: var(--fa-animation-duration, 4s);\n animation-iteration-count: var(--fa-animation-iteration-count, infinite);\n animation-timing-function: var(--fa-animation-timing, linear);\n}\n\n.fa-buzz {\n animation-name: fa-buzz;\n animation-delay: var(--fa-animation-delay, 0s);\n animation-direction: var(--fa-animation-direction, normal);\n animation-duration: var(--fa-animation-duration, 0.6s);\n animation-iteration-count: var(--fa-animation-iteration-count, infinite);\n animation-timing-function: var(--fa-animation-timing, linear);\n}\n\n.fa-wag {\n animation-name: fa-wag;\n animation-delay: var(--fa-animation-delay, 0s);\n animation-direction: var(--fa-animation-direction, normal);\n animation-duration: var(--fa-animation-duration, 0.9s);\n animation-iteration-count: var(--fa-animation-iteration-count, infinite);\n animation-timing-function: var(--fa-animation-timing, ease-out);\n transform-origin: bottom center;\n}\n\n.fa-float {\n animation-name: fa-float;\n animation-delay: var(--fa-animation-delay, 0s);\n animation-direction: var(--fa-animation-direction, normal);\n animation-duration: var(--fa-animation-duration, 3s);\n animation-iteration-count: var(--fa-animation-iteration-count, infinite);\n animation-timing-function: var(--fa-animation-timing, ease-in-out);\n will-change: transform;\n}\n\n.fa-swing {\n animation-name: fa-swing;\n animation-delay: var(--fa-animation-delay, 0s);\n animation-direction: var(--fa-animation-direction, normal);\n animation-duration: var(--fa-animation-duration, 1.2s);\n animation-iteration-count: var(--fa-animation-iteration-count, infinite);\n animation-timing-function: var(--fa-animation-timing, ease-out);\n transform-origin: top center;\n}\n\n.fa-jello {\n animation-name: fa-jello;\n animation-delay: var(--fa-animation-delay, 0s);\n animation-direction: var(--fa-animation-direction, normal);\n animation-duration: var(--fa-animation-duration, 0.9s);\n animation-iteration-count: var(--fa-animation-iteration-count, infinite);\n animation-timing-function: var(--fa-animation-timing, ease-out);\n}\n\n@media (prefers-reduced-motion: reduce) {\n .fa-beat,\n .fa-bounce,\n .fa-fade,\n .fa-beat-fade,\n .fa-flip,\n .fa-flip-360,\n .fa-pulse,\n .fa-shake,\n .fa-spin,\n .fa-spin-pulse,\n .fa-buzz,\n .fa-float,\n .fa-jello,\n .fa-spin-snap,\n .fa-spin-snap-4,\n .fa-spin-snap-8,\n .fa-swing,\n .fa-wag {\n animation: none !important;\n transition: none !important;\n }\n}\n@keyframes fa-beat {\n 0% {\n transform: scale(1);\n }\n 25% {\n transform: scale(calc(1.25 * var(--fa-beat-scale, 1.25)));\n }\n 45% {\n transform: scale(calc(1.22 * var(--fa-beat-scale, 1.22)));\n }\n 65% {\n transform: scale(calc(1.25 * var(--fa-beat-scale, 1.25)));\n }\n 90% {\n transform: scale(1);\n }\n}\n@keyframes fa-bounce {\n 0% {\n transform: scale(1, 1) translateY(0);\n animation-timing-function: var(--fa-animation-timing);\n }\n 14% {\n transform: scale(var(--fa-bounce-start-scale-x, 1.06), var(--fa-bounce-start-scale-y, 0.94)) translateY(var(--fa-bounce-anticipation, 3px));\n animation-timing-function: cubic-bezier(0.33, 0, 0.66, 0.33);\n }\n 32% {\n transform: scale(var(--fa-bounce-jump-scale-x, 0.94), var(--fa-bounce-jump-scale-y, 1.12)) translateY(calc(-1 * var(--fa-bounce-height, 0.5em)));\n animation-timing-function: cubic-bezier(0.33, 0.66, 0.66, 1);\n }\n 52% {\n transform: scale(1, 1) translateY(calc(-1 * var(--fa-bounce-height, 0.5em) * 1.1));\n animation-timing-function: cubic-bezier(0.5, 0, 1, 0.5);\n }\n 70% {\n transform: scale(var(--fa-bounce-land-scale-x, 1.06), var(--fa-bounce-land-scale-y, 0.92)) translateY(0);\n animation-timing-function: cubic-bezier(0.33, 0.33, 0.66, 1);\n }\n 85% {\n transform: scale(0.98, 1.04) translateY(calc(-2px * var(--fa-bounce-rebound, 1)));\n animation-timing-function: cubic-bezier(0.33, 0, 0.66, 1);\n }\n 100% {\n transform: scale(1, 1) translateY(0);\n }\n}\n@keyframes fa-fade {\n 0% {\n opacity: 1;\n transform: scale(1);\n animation-timing-function: cubic-bezier(0.2, 0, 0.4, 1);\n }\n 40% {\n opacity: var(--fa-fade-opacity, 0.4);\n transform: scale(0.98);\n animation-timing-function: cubic-bezier(0.4, 0, 0.6, 1);\n }\n 100% {\n opacity: 1;\n transform: scale(1);\n }\n}\n@keyframes fa-beat-fade {\n 0% {\n opacity: var(--fa-beat-fade-opacity, 0.4);\n transform: scale(1);\n animation-timing-function: cubic-bezier(0.2, 0, 0.4, 1);\n }\n 25% {\n opacity: calc(var(--fa-beat-fade-opacity, 0.4) + 0.4);\n transform: scale(var(--fa-beat-fade-scale, 1.28));\n animation-timing-function: cubic-bezier(0.4, 0, 0.6, 1);\n }\n 45% {\n opacity: 1;\n transform: scale(var(--fa-beat-fade-scale, 1.25));\n animation-timing-function: cubic-bezier(0.4, 0, 0.2, 1);\n }\n 65% {\n opacity: calc(var(--fa-beat-fade-opacity, 0.4) + 0.4);\n transform: scale(var(--fa-beat-fade-scale, 1.28));\n animation-timing-function: cubic-bezier(0.4, 0, 0.6, 1);\n }\n 100% {\n opacity: var(--fa-beat-fade-opacity, 0.4);\n transform: scale(1);\n }\n}\n@keyframes fa-flip {\n 0% {\n transform: perspective(2em) scale(1) rotate3d(var(--fa-flip-x, 0), var(--fa-flip-y, 1), var(--fa-flip-z, 0), 0deg);\n animation-timing-function: cubic-bezier(0.2, 0, 0.4, 1);\n }\n 8% {\n transform: perspective(2em) scale(var(--fa-flip-anticipation-scale, 0.95)) rotate3d(var(--fa-flip-x, 0), var(--fa-flip-y, 1), var(--fa-flip-z, 0), 0deg);\n animation-timing-function: cubic-bezier(0.33, 0, 0.66, 0.33);\n }\n 35% {\n transform: perspective(2em) scale(1) rotate3d(var(--fa-flip-x, 0), var(--fa-flip-y, 1), var(--fa-flip-z, 0), calc(var(--fa-flip-angle, -360deg) * 0.6));\n animation-timing-function: linear;\n }\n 65% {\n transform: perspective(2em) scale(1) rotate3d(var(--fa-flip-x, 0), var(--fa-flip-y, 1), var(--fa-flip-z, 0), calc(var(--fa-flip-angle, -360deg) * 0.5));\n animation-timing-function: cubic-bezier(0.33, 0.66, 0.66, 1);\n }\n 92% {\n transform: perspective(2em) scale(1) rotate3d(var(--fa-flip-x, 0), var(--fa-flip-y, 1), var(--fa-flip-z, 0), calc(var(--fa-flip-angle, -360deg) * var(--fa-flip-overshoot, 1.04)));\n animation-timing-function: cubic-bezier(0.33, 0, 0.66, 1);\n }\n 100% {\n transform: perspective(2em) scale(1) rotate3d(var(--fa-flip-x, 0), var(--fa-flip-y, 1), var(--fa-flip-z, 0), var(--fa-flip-angle, -360deg));\n }\n}\n@keyframes fa-flip-360 {\n 0% {\n transform: perspective(2em) scale(1) rotate3d(var(--fa-flip-x, 0), var(--fa-flip-y, 1), var(--fa-flip-z, 0), 0deg);\n animation-timing-function: cubic-bezier(0.2, 0, 0.4, 1);\n }\n 8% {\n transform: perspective(2em) scale(var(--fa-flip-anticipation-scale, 0.95)) rotate3d(var(--fa-flip-x, 0), var(--fa-flip-y, 1), var(--fa-flip-z, 0), 0deg);\n animation-timing-function: cubic-bezier(0.33, 0, 0.66, 0.33);\n }\n 50% {\n transform: perspective(2em) scale(1) rotate3d(var(--fa-flip-x, 0), var(--fa-flip-y, 1), var(--fa-flip-z, 0), calc(var(--fa-flip-angle, -360deg) * 0.6));\n animation-timing-function: cubic-bezier(0.33, 0.66, 0.66, 1);\n }\n 80% {\n transform: perspective(2em) scale(1) rotate3d(var(--fa-flip-x, 0), var(--fa-flip-y, 1), var(--fa-flip-z, 0), calc(var(--fa-flip-angle, -360deg) * var(--fa-flip-overshoot, 1.04)));\n animation-timing-function: cubic-bezier(0.33, 0, 0.66, 1);\n }\n 100% {\n transform: perspective(2em) scale(1) rotate3d(var(--fa-flip-x, 0), var(--fa-flip-y, 1), var(--fa-flip-z, 0), var(--fa-flip-angle, -360deg));\n }\n}\n@keyframes fa-shake {\n 0% {\n transform: rotate(0deg);\n animation-timing-function: cubic-bezier(0.2, 0, 0.8, 1);\n }\n 8% {\n transform: rotate(35deg) translateX(1px);\n animation-timing-function: cubic-bezier(0.3, 0, 0.7, 1);\n }\n 20% {\n transform: rotate(-22deg) translateX(-1px);\n animation-timing-function: cubic-bezier(0.3, 0, 0.7, 1);\n }\n 35% {\n transform: rotate(15deg) translateX(1px);\n animation-timing-function: cubic-bezier(0.3, 0, 0.7, 1);\n }\n 50% {\n transform: rotate(-9deg);\n animation-timing-function: cubic-bezier(0.4, 0, 0.6, 1);\n }\n 65% {\n transform: rotate(5deg);\n animation-timing-function: cubic-bezier(0.4, 0, 0.6, 1);\n }\n 78% {\n transform: rotate(-3deg);\n animation-timing-function: cubic-bezier(0.4, 0, 0.6, 1);\n }\n 90% {\n transform: rotate(1deg);\n animation-timing-function: cubic-bezier(0.4, 0, 0.2, 1);\n }\n 100% {\n transform: rotate(0deg);\n }\n}\n@keyframes fa-spin {\n 0% {\n transform: rotate(0deg);\n }\n 100% {\n transform: rotate(360deg);\n }\n}\n@keyframes fa-spin-snap {\n 0% {\n transform: rotate(0deg);\n animation-timing-function: cubic-bezier(0, 0, 0.2, 1);\n }\n 12% {\n transform: rotate(60deg);\n animation-timing-function: cubic-bezier(0.8, 0, 1, 1);\n }\n 16.67% {\n transform: rotate(60deg);\n animation-timing-function: cubic-bezier(0, 0, 0.2, 1);\n }\n 28.67% {\n transform: rotate(120deg);\n animation-timing-function: cubic-bezier(0.8, 0, 1, 1);\n }\n 33.33% {\n transform: rotate(120deg);\n animation-timing-function: cubic-bezier(0, 0, 0.2, 1);\n }\n 45.33% {\n transform: rotate(180deg);\n animation-timing-function: cubic-bezier(0.8, 0, 1, 1);\n }\n 50% {\n transform: rotate(180deg);\n animation-timing-function: cubic-bezier(0, 0, 0.2, 1);\n }\n 62% {\n transform: rotate(240deg);\n animation-timing-function: cubic-bezier(0.8, 0, 1, 1);\n }\n 66.67% {\n transform: rotate(240deg);\n animation-timing-function: cubic-bezier(0, 0, 0.2, 1);\n }\n 78.67% {\n transform: rotate(300deg);\n animation-timing-function: cubic-bezier(0.8, 0, 1, 1);\n }\n 83.33% {\n transform: rotate(300deg);\n animation-timing-function: cubic-bezier(0, 0, 0.2, 1);\n }\n 95.33% {\n transform: rotate(360deg);\n animation-timing-function: cubic-bezier(0.8, 0, 1, 1);\n }\n 100% {\n transform: rotate(360deg);\n }\n}\n@keyframes fa-spin-snap-4 {\n 0% {\n transform: rotate(0deg);\n animation-timing-function: cubic-bezier(0, 0, 0.2, 1);\n }\n 15% {\n transform: rotate(90deg);\n animation-timing-function: cubic-bezier(0.8, 0, 1, 1);\n }\n 25% {\n transform: rotate(90deg);\n animation-timing-function: cubic-bezier(0, 0, 0.2, 1);\n }\n 40% {\n transform: rotate(180deg);\n animation-timing-function: cubic-bezier(0.8, 0, 1, 1);\n }\n 50% {\n transform: rotate(180deg);\n animation-timing-function: cubic-bezier(0, 0, 0.2, 1);\n }\n 65% {\n transform: rotate(270deg);\n animation-timing-function: cubic-bezier(0.8, 0, 1, 1);\n }\n 75% {\n transform: rotate(270deg);\n animation-timing-function: cubic-bezier(0, 0, 0.2, 1);\n }\n 90% {\n transform: rotate(360deg);\n animation-timing-function: cubic-bezier(0.8, 0, 1, 1);\n }\n 100% {\n transform: rotate(360deg);\n }\n}\n@keyframes fa-spin-snap-8 {\n 0% {\n transform: rotate(0deg);\n animation-timing-function: cubic-bezier(0, 0, 0.2, 1);\n }\n 9% {\n transform: rotate(45deg);\n animation-timing-function: cubic-bezier(0.8, 0, 1, 1);\n }\n 12.5% {\n transform: rotate(45deg);\n animation-timing-function: cubic-bezier(0, 0, 0.2, 1);\n }\n 21.5% {\n transform: rotate(90deg);\n animation-timing-function: cubic-bezier(0.8, 0, 1, 1);\n }\n 25% {\n transform: rotate(90deg);\n animation-timing-function: cubic-bezier(0, 0, 0.2, 1);\n }\n 34% {\n transform: rotate(135deg);\n animation-timing-function: cubic-bezier(0.8, 0, 1, 1);\n }\n 37.5% {\n transform: rotate(135deg);\n animation-timing-function: cubic-bezier(0, 0, 0.2, 1);\n }\n 46.5% {\n transform: rotate(180deg);\n animation-timing-function: cubic-bezier(0.8, 0, 1, 1);\n }\n 50% {\n transform: rotate(180deg);\n animation-timing-function: cubic-bezier(0, 0, 0.2, 1);\n }\n 59% {\n transform: rotate(225deg);\n animation-timing-function: cubic-bezier(0.8, 0, 1, 1);\n }\n 62.5% {\n transform: rotate(225deg);\n animation-timing-function: cubic-bezier(0, 0, 0.2, 1);\n }\n 71.5% {\n transform: rotate(270deg);\n animation-timing-function: cubic-bezier(0.8, 0, 1, 1);\n }\n 75% {\n transform: rotate(270deg);\n animation-timing-function: cubic-bezier(0, 0, 0.2, 1);\n }\n 84% {\n transform: rotate(315deg);\n animation-timing-function: cubic-bezier(0.8, 0, 1, 1);\n }\n 87.5% {\n transform: rotate(315deg);\n animation-timing-function: cubic-bezier(0, 0, 0.2, 1);\n }\n 96.5% {\n transform: rotate(360deg);\n animation-timing-function: cubic-bezier(0.8, 0, 1, 1);\n }\n 100% {\n transform: rotate(360deg);\n }\n}\n@keyframes fa-buzz {\n 0% {\n transform: translateX(0) rotate(0deg);\n animation-timing-function: cubic-bezier(0.1, 0, 0.9, 1);\n }\n 5% {\n transform: translateX(var(--fa-buzz-distance, 4px)) rotate(0.5deg);\n }\n 10% {\n transform: translateX(calc(-1 * var(--fa-buzz-distance, 4px))) rotate(-0.5deg);\n }\n 15% {\n transform: translateX(var(--fa-buzz-distance, 4px)) rotate(0.3deg);\n }\n 20% {\n transform: translateX(calc(-1 * var(--fa-buzz-distance, 4px))) rotate(-0.3deg);\n }\n 25% {\n transform: translateX(calc(var(--fa-buzz-distance, 4px) * 0.7)) rotate(0.2deg);\n }\n 30% {\n transform: translateX(calc(-1 * var(--fa-buzz-distance, 4px) * 0.7)) rotate(-0.2deg);\n }\n 35% {\n transform: translateX(calc(var(--fa-buzz-distance, 4px) * 0.4)) rotate(0.1deg);\n }\n 40% {\n transform: translateX(0) rotate(0deg);\n }\n 100% {\n transform: translateX(0) rotate(0deg);\n }\n}\n@keyframes fa-wag {\n 0% {\n transform: rotate(0deg);\n animation-timing-function: cubic-bezier(0.2, 0, 0.6, 1);\n }\n 12% {\n transform: rotate(var(--fa-wag-angle, 12deg));\n animation-timing-function: cubic-bezier(0.4, 0, 0.2, 1);\n }\n 24% {\n transform: rotate(2deg);\n animation-timing-function: cubic-bezier(0.2, 0, 0.6, 1);\n }\n 36% {\n transform: rotate(calc(var(--fa-wag-angle, 12deg) * 0.85));\n animation-timing-function: cubic-bezier(0.4, 0, 0.2, 1);\n }\n 48% {\n transform: rotate(1deg);\n animation-timing-function: cubic-bezier(0.2, 0, 0.6, 1);\n }\n 58% {\n transform: rotate(calc(var(--fa-wag-angle, 12deg) * 0.6));\n animation-timing-function: cubic-bezier(0.4, 0, 0.2, 1);\n }\n 68% {\n transform: rotate(0deg);\n }\n 100% {\n transform: rotate(0deg);\n }\n}\n@keyframes fa-float {\n 0% {\n transform: translateY(0) translateX(0) rotate(0deg) scale(var(--fa-float-squash-x, 1.02), var(--fa-float-squash-y, 0.98));\n animation-timing-function: cubic-bezier(0.33, 0, 0.66, 0.33);\n }\n 15% {\n transform: translateY(calc(-0.4 * var(--fa-float-height, 6px))) translateX(var(--fa-float-drift, 1px)) rotate(var(--fa-float-tilt, 1deg)) scale(1, 1);\n animation-timing-function: cubic-bezier(0.33, 0.66, 0.66, 1);\n }\n 35% {\n transform: translateY(calc(-1 * var(--fa-float-height, 6px))) translateX(0) rotate(0deg) scale(var(--fa-float-stretch-x, 0.98), var(--fa-float-stretch-y, 1.03));\n animation-timing-function: cubic-bezier(0.5, 0, 0.5, 0);\n }\n 50% {\n transform: translateY(calc(-0.92 * var(--fa-float-height, 6px))) translateX(calc(-0.5 * var(--fa-float-drift, 1px))) rotate(calc(-0.5 * var(--fa-float-tilt, 1deg))) scale(0.995, 1.01);\n animation-timing-function: cubic-bezier(0.33, 0, 0.66, 0.33);\n }\n 70% {\n transform: translateY(calc(-0.3 * var(--fa-float-height, 6px))) translateX(calc(-1 * var(--fa-float-drift, 1px))) rotate(calc(-1 * var(--fa-float-tilt, 1deg))) scale(1, 1);\n animation-timing-function: cubic-bezier(0.33, 0.66, 0.66, 1);\n }\n 90% {\n transform: translateY(calc(0.05 * var(--fa-float-height, 6px))) translateX(0) rotate(0deg) scale(var(--fa-float-squash-x, 1.02), var(--fa-float-squash-y, 0.98));\n animation-timing-function: cubic-bezier(0.33, 0, 0.66, 1);\n }\n 100% {\n transform: translateY(0) translateX(0) rotate(0deg) scale(var(--fa-float-squash-x, 1.02), var(--fa-float-squash-y, 0.98));\n }\n}\n@keyframes fa-swing {\n 0% {\n transform: rotate(0deg);\n animation-timing-function: cubic-bezier(0.2, 0, 0.8, 1);\n }\n 8% {\n transform: rotate(var(--fa-swing-angle, 22deg));\n animation-timing-function: cubic-bezier(0.3, 0, 0.7, 1);\n }\n 18% {\n transform: rotate(calc(-1 * var(--fa-swing-angle, 22deg) * 0.85));\n animation-timing-function: cubic-bezier(0.3, 0, 0.7, 1);\n }\n 28% {\n transform: rotate(calc(var(--fa-swing-angle, 22deg) * 0.65));\n animation-timing-function: cubic-bezier(0.35, 0, 0.65, 1);\n }\n 38% {\n transform: rotate(calc(-1 * var(--fa-swing-angle, 22deg) * 0.45));\n animation-timing-function: cubic-bezier(0.4, 0, 0.6, 1);\n }\n 48% {\n transform: rotate(calc(var(--fa-swing-angle, 22deg) * 0.25));\n animation-timing-function: cubic-bezier(0.4, 0, 0.6, 1);\n }\n 56% {\n transform: rotate(calc(-1 * var(--fa-swing-angle, 22deg) * 0.1));\n animation-timing-function: cubic-bezier(0.4, 0, 0.6, 1);\n }\n 64% {\n transform: rotate(0deg);\n }\n 100% {\n transform: rotate(0deg);\n }\n}\n@keyframes fa-jello {\n 0% {\n transform: scale(1, 1);\n animation-timing-function: cubic-bezier(0.2, 0, 0.8, 1);\n }\n 12% {\n transform: scale(var(--fa-jello-scale-x, 1.15), calc(2 - var(--fa-jello-scale-x, 1.15)));\n animation-timing-function: cubic-bezier(0.3, 0, 0.7, 1);\n }\n 24% {\n transform: scale(calc(2 - var(--fa-jello-scale-y, 1.12)), var(--fa-jello-scale-y, 1.12));\n animation-timing-function: cubic-bezier(0.3, 0, 0.7, 1);\n }\n 36% {\n transform: scale(calc(1 + (var(--fa-jello-scale-x, 1.15) - 1) * 0.5), calc(2 - (1 + (var(--fa-jello-scale-x, 1.15) - 1) * 0.5)));\n animation-timing-function: cubic-bezier(0.4, 0, 0.6, 1);\n }\n 48% {\n transform: scale(calc(2 - (1 + (var(--fa-jello-scale-y, 1.12) - 1) * 0.3)), calc(1 + (var(--fa-jello-scale-y, 1.12) - 1) * 0.3));\n animation-timing-function: cubic-bezier(0.4, 0, 0.6, 1);\n }\n 58% {\n transform: scale(1.02, 0.98);\n animation-timing-function: cubic-bezier(0.4, 0, 0.2, 1);\n }\n 68% {\n transform: scale(1, 1);\n }\n 100% {\n transform: scale(1, 1);\n }\n}\n.fa-rotate-90 {\n transform: rotate(90deg);\n}\n\n.fa-rotate-180 {\n transform: rotate(180deg);\n}\n\n.fa-rotate-270 {\n transform: rotate(270deg);\n}\n\n.fa-flip-horizontal {\n transform: scale(-1, 1);\n}\n\n.fa-flip-vertical {\n transform: scale(1, -1);\n}\n\n.fa-flip-both,\n.fa-flip-horizontal.fa-flip-vertical {\n transform: scale(-1, -1);\n}\n\n.fa-rotate-by {\n transform: rotate(var(--fa-rotate-angle, 0));\n}\n\n.svg-inline--fa .fa-primary {\n fill: var(--fa-primary-color, currentColor);\n opacity: var(--fa-primary-opacity, 1);\n}\n\n.svg-inline--fa .fa-secondary {\n fill: var(--fa-secondary-color, currentColor);\n opacity: var(--fa-secondary-opacity, 0.4);\n}\n\n.svg-inline--fa.fa-swap-opacity .fa-primary {\n opacity: var(--fa-secondary-opacity, 0.4);\n}\n\n.svg-inline--fa.fa-swap-opacity .fa-secondary {\n opacity: var(--fa-primary-opacity, 1);\n}\n\n.svg-inline--fa mask .fa-primary,\n.svg-inline--fa mask .fa-secondary {\n fill: black;\n}\n\n.svg-inline--fa.fa-inverse {\n fill: var(--fa-inverse, #fff);\n}\n\n.fa-stack {\n display: inline-block;\n height: 2em;\n line-height: 2em;\n position: relative;\n vertical-align: middle;\n width: 2.5em;\n}\n\n.fa-inverse {\n color: var(--fa-inverse, #fff);\n}\n\n.svg-inline--fa.fa-stack-1x {\n --fa-width: 1.25em;\n height: 1em;\n width: var(--fa-width);\n}\n.svg-inline--fa.fa-stack-2x {\n --fa-width: 2.5em;\n height: 2em;\n width: var(--fa-width);\n}\n\n.fa-stack-1x,\n.fa-stack-2x {\n inset: 0;\n margin: auto;\n position: absolute;\n z-index: var(--fa-stack-z-index, auto);\n}";
1504
1505 function css() {
1506 var dcp = DEFAULT_CSS_PREFIX;
1507 var drc = DEFAULT_REPLACEMENT_CLASS;
1508 var fp = config.cssPrefix;
1509 var rc = config.replacementClass;
1510 var s = baseStyles;
1511 if (fp !== dcp || rc !== drc) {
1512 var dPatt = new RegExp("\\.".concat(dcp, "\\-"), 'g');
1513 var customPropPatt = new RegExp("\\--".concat(dcp, "\\-"), 'g');
1514 var rPatt = new RegExp("\\.".concat(drc), 'g');
1515 s = s.replace(dPatt, ".".concat(fp, "-")).replace(customPropPatt, "--".concat(fp, "-")).replace(rPatt, ".".concat(rc));
1516 }
1517 return s;
1518 }
1519 var _cssInserted = false;
1520 function ensureCss() {
1521 if (config.autoAddCss && !_cssInserted) {
1522 insertCss(css());
1523 _cssInserted = true;
1524 }
1525 }
1526 var InjectCSS = {
1527 mixout: function mixout() {
1528 return {
1529 dom: {
1530 css: css,
1531 insertCss: ensureCss
1532 }
1533 };
1534 },
1535 hooks: function hooks() {
1536 return {
1537 beforeDOMElementCreation: function beforeDOMElementCreation() {
1538 ensureCss();
1539 },
1540 beforeI2svg: function beforeI2svg() {
1541 ensureCss();
1542 }
1543 };
1544 }
1545 };
1546
1547 var w$2 = WINDOW || {};
1548 if (!w$2[NAMESPACE_IDENTIFIER]) w$2[NAMESPACE_IDENTIFIER] = {};
1549 if (!w$2[NAMESPACE_IDENTIFIER].styles) w$2[NAMESPACE_IDENTIFIER].styles = {};
1550 if (!w$2[NAMESPACE_IDENTIFIER].hooks) w$2[NAMESPACE_IDENTIFIER].hooks = {};
1551 if (!w$2[NAMESPACE_IDENTIFIER].shims) w$2[NAMESPACE_IDENTIFIER].shims = [];
1552 var namespace = w$2[NAMESPACE_IDENTIFIER];
1553
1554 var functions = [];
1555 var _listener = function listener() {
1556 DOCUMENT.removeEventListener('DOMContentLoaded', _listener);
1557 loaded = 1;
1558 functions.map(function (fn) {
1559 return fn();
1560 });
1561 };
1562 var loaded = false;
1563 if (IS_DOM) {
1564 loaded = (DOCUMENT.documentElement.doScroll ? /^loaded|^c/ : /^loaded|^i|^c/).test(DOCUMENT.readyState);
1565 if (!loaded) DOCUMENT.addEventListener('DOMContentLoaded', _listener);
1566 }
1567 function domready (fn) {
1568 if (!IS_DOM) return;
1569 loaded ? setTimeout(fn, 0) : functions.push(fn);
1570 }
1571
1572 function toHtml(abstractNodes) {
1573 var tag = abstractNodes.tag,
1574 _abstractNodes$attrib = abstractNodes.attributes,
1575 attributes = _abstractNodes$attrib === void 0 ? {} : _abstractNodes$attrib,
1576 _abstractNodes$childr = abstractNodes.children,
1577 children = _abstractNodes$childr === void 0 ? [] : _abstractNodes$childr;
1578 if (typeof abstractNodes === 'string') {
1579 return htmlEscape(abstractNodes);
1580 } else {
1581 return "<".concat(tag, " ").concat(joinAttributes(attributes), ">").concat(children.map(toHtml).join(''), "</").concat(tag, ">");
1582 }
1583 }
1584
1585 function iconFromMapping(mapping, prefix, iconName) {
1586 if (mapping && mapping[prefix] && mapping[prefix][iconName]) {
1587 return {
1588 prefix: prefix,
1589 iconName: iconName,
1590 icon: mapping[prefix][iconName]
1591 };
1592 }
1593 }
1594
1595 /**
1596 * Internal helper to bind a function known to have 4 arguments
1597 * to a given context.
1598 */
1599 var bindInternal4 = function bindInternal4(func, thisContext) {
1600 return function (a, b, c, d) {
1601 return func.call(thisContext, a, b, c, d);
1602 };
1603 };
1604
1605 /**
1606 * # Reduce
1607 *
1608 * A fast object `.reduce()` implementation.
1609 *
1610 * @param {Object} subject The object to reduce over.
1611 * @param {Function} fn The reducer function.
1612 * @param {mixed} initialValue The initial value for the reducer, defaults to subject[0].
1613 * @param {Object} thisContext The context for the reducer.
1614 * @return {mixed} The final result.
1615 */
1616 var reduce = function fastReduceObject(subject, fn, initialValue, thisContext) {
1617 var keys = Object.keys(subject),
1618 length = keys.length,
1619 iterator = thisContext !== undefined ? bindInternal4(fn, thisContext) : fn,
1620 i,
1621 key,
1622 result;
1623 if (initialValue === undefined) {
1624 i = 1;
1625 result = subject[keys[0]];
1626 } else {
1627 i = 0;
1628 result = initialValue;
1629 }
1630 for (; i < length; i++) {
1631 key = keys[i];
1632 result = iterator(result, subject[key], key, subject);
1633 }
1634 return result;
1635 };
1636
1637 /**
1638 * Return hexadecimal string for a unicode character
1639 * Returns `null` when more than one character (not bytes!) are passed
1640 * For example: 'K' → '7B'
1641 */
1642 function toHex(unicode) {
1643 if (_toConsumableArray(unicode).length !== 1) return null;
1644 return unicode.codePointAt(0).toString(16);
1645 }
1646
1647 function normalizeIcons(icons) {
1648 return Object.keys(icons).reduce(function (acc, iconName) {
1649 var icon = icons[iconName];
1650 var expanded = !!icon.icon;
1651 if (expanded) {
1652 acc[icon.iconName] = icon.icon;
1653 } else {
1654 acc[iconName] = icon;
1655 }
1656 return acc;
1657 }, {});
1658 }
1659 function defineIcons(prefix, icons) {
1660 var params = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : {};
1661 var _params$skipHooks = params.skipHooks,
1662 skipHooks = _params$skipHooks === void 0 ? false : _params$skipHooks;
1663 var normalized = normalizeIcons(icons);
1664 if (typeof namespace.hooks.addPack === 'function' && !skipHooks) {
1665 namespace.hooks.addPack(prefix, normalizeIcons(icons));
1666 } else {
1667 namespace.styles[prefix] = _objectSpread2(_objectSpread2({}, namespace.styles[prefix] || {}), normalized);
1668 }
1669
1670 /**
1671 * Font Awesome 4 used the prefix of `fa` for all icons. With the introduction
1672 * of new styles we needed to differentiate between them. Prefix `fa` is now an alias
1673 * for `fas` so we'll ease the upgrade process for our users by automatically defining
1674 * this as well.
1675 */
1676 if (prefix === 'fas') {
1677 defineIcons('fa', icons);
1678 }
1679 }
1680
1681 var MONO = 0x1;
1682 var DUO = 0x2;
1683
1684 // New v7 compatible matchers using the style attribute to determine layer membership
1685 var modernMatches = [[DUO, /*#__PURE__*/_wrapRegExp(/path opacity="([^"]*)".*d="([^"]*)".*path.*d="([^"]*)"/, {
1686 d2: 2,
1687 d1: 3
1688 })], [DUO, /*#__PURE__*/_wrapRegExp(/path opacity="([^"]*)".*d="([^"]*)"/, {
1689 d2: 2
1690 })], [MONO, /*#__PURE__*/_wrapRegExp(/path fill="currentColor".*d="([^"]+)"/, {
1691 d1: 1
1692 })]];
1693
1694 // Old <= v6 matchers, these should rarely get used.
1695 //
1696 // Why are there so many? Over the lifecycle of version 5 and 6 we modified the
1697 // syntax for our source SVG files several times. These patterns match the
1698 // historical record and attempt to handle backwards-compatibility in rare edge
1699 // cases (loading version 6 SVG source files using the version 7 SVG parser)
1700 var legacyMatches = [[DUO, /*#__PURE__*/_wrapRegExp(/path class="([^"]*secondary[^"]*)".*d="([^"]+)".*path class="([^"]*primary[^"]*)".*d="([^"]+)"/, {
1701 attr2: 1,
1702 d2: 2,
1703 attr1: 3,
1704 d1: 4
1705 })], [DUO, /*#__PURE__*/_wrapRegExp(/path class="([^"]*primary[^"]*)".*d="([^"]+)".*path class="([^"]*secondary[^"]*)".*d="([^"]+)"/, {
1706 attr1: 1,
1707 d1: 2,
1708 attr2: 3,
1709 d2: 4
1710 })], [DUO, /*#__PURE__*/_wrapRegExp(/path class="([^"]*primary[^"]*)".*d="([^"]+)"/, {
1711 attr1: 1,
1712 d1: 2
1713 })], [DUO, /*#__PURE__*/_wrapRegExp(/path class="([^"]*secondary[^"]*)".*d="([^"]+)"/, {
1714 attr2: 1,
1715 d2: 2
1716 })], [DUO, /*#__PURE__*/_wrapRegExp(/path d="([^"]+)".*class="([^"]*secondary[^"]*)".*path d="([^"]+)".*class="([^"]*primary[^"]*)"/, {
1717 d2: 1,
1718 attr2: 2,
1719 d1: 3,
1720 attr1: 4
1721 })], [DUO, /*#__PURE__*/_wrapRegExp(/path d="([^"]+)".*class="([^"]*primary[^"]*)".*path d="([^"]+)".*class="([^"]*secondary[^"]*)"/, {
1722 d1: 1,
1723 attr1: 2,
1724 d2: 3,
1725 attr2: 4
1726 })], [DUO, /*#__PURE__*/_wrapRegExp(/path d="([^"]+)".*class="([^"]*primary[^"]*)"/, {
1727 d1: 1,
1728 attr1: 2
1729 })], [DUO, /*#__PURE__*/_wrapRegExp(/path d="([^"]+)".*class="([^"]*secondary[^"]*)"/, {
1730 d2: 1,
1731 attr2: 2
1732 })], [DUO, /*#__PURE__*/_wrapRegExp(/path d="([^"]+)".*path d="([^"]+)"/, {
1733 d1: 1,
1734 d2: 2
1735 })], [MONO, /*#__PURE__*/_wrapRegExp(/path d="([^"]+)"/, {
1736 d1: 1
1737 })], [MONO, /*#__PURE__*/_wrapRegExp(/path style="([^"]+)".*d="([^"]+)"/, {
1738 attr1: 1,
1739 d1: 2
1740 })]];
1741
1742 var styles = namespace.styles,
1743 shims = namespace.shims;
1744 var FAMILY_NAMES = Object.keys(PREFIX_TO_LONG_STYLE);
1745 var PREFIXES_FOR_FAMILY = FAMILY_NAMES.reduce(function (acc, familyId) {
1746 acc[familyId] = Object.keys(PREFIX_TO_LONG_STYLE[familyId]);
1747 return acc;
1748 }, {});
1749 var _defaultUsablePrefix = null;
1750 var _byUnicode = {};
1751 var _byLigature = {};
1752 var _byOldName = {};
1753 var _byOldUnicode = {};
1754 var _byAlias = {};
1755 function isReserved(name) {
1756 return ~RESERVED_CLASSES.indexOf(name);
1757 }
1758 function getIconName(cssPrefix, cls) {
1759 var parts = cls.split('-');
1760 var prefix = parts[0];
1761 var iconName = parts.slice(1).join('-');
1762 if (prefix === cssPrefix && iconName !== '' && !isReserved(iconName)) {
1763 return iconName;
1764 } else {
1765 return null;
1766 }
1767 }
1768 var build = function build() {
1769 var lookup = function lookup(reducer) {
1770 return reduce(styles, function (o$$1, style, prefix) {
1771 o$$1[prefix] = reduce(style, reducer, {});
1772 return o$$1;
1773 }, {});
1774 };
1775 _byUnicode = lookup(function (acc, icon, iconName) {
1776 if (icon[3]) {
1777 acc[icon[3]] = iconName;
1778 }
1779 if (icon[2]) {
1780 var aliases = icon[2].filter(function (a$$1) {
1781 return typeof a$$1 === 'number';
1782 });
1783 aliases.forEach(function (alias) {
1784 acc[alias.toString(16)] = iconName;
1785 });
1786 }
1787 return acc;
1788 });
1789 _byLigature = lookup(function (acc, icon, iconName) {
1790 acc[iconName] = iconName;
1791 if (icon[2]) {
1792 var aliases = icon[2].filter(function (a$$1) {
1793 return typeof a$$1 === 'string';
1794 });
1795 aliases.forEach(function (alias) {
1796 acc[alias] = iconName;
1797 });
1798 }
1799 return acc;
1800 });
1801 _byAlias = lookup(function (acc, icon, iconName) {
1802 var aliases = icon[2];
1803 acc[iconName] = iconName;
1804 aliases.forEach(function (alias) {
1805 acc[alias] = iconName;
1806 });
1807 return acc;
1808 });
1809
1810 // If we have a Kit, we can't determine if regular is available since we
1811 // could be auto-fetching it. We'll have to assume that it is available.
1812 var hasRegular = 'far' in styles || config.autoFetchSvg;
1813 var shimLookups = reduce(shims, function (acc, shim) {
1814 var maybeNameMaybeUnicode = shim[0];
1815 var prefix = shim[1];
1816 var iconName = shim[2];
1817 if (prefix === 'far' && !hasRegular) {
1818 prefix = 'fas';
1819 }
1820 if (typeof maybeNameMaybeUnicode === 'string') {
1821 acc.names[maybeNameMaybeUnicode] = {
1822 prefix: prefix,
1823 iconName: iconName
1824 };
1825 }
1826 if (typeof maybeNameMaybeUnicode === 'number') {
1827 acc.unicodes[maybeNameMaybeUnicode.toString(16)] = {
1828 prefix: prefix,
1829 iconName: iconName
1830 };
1831 }
1832 return acc;
1833 }, {
1834 names: {},
1835 unicodes: {}
1836 });
1837 _byOldName = shimLookups.names;
1838 _byOldUnicode = shimLookups.unicodes;
1839 _defaultUsablePrefix = getCanonicalPrefix(config.styleDefault, {
1840 family: config.familyDefault
1841 });
1842 };
1843 onChange(function (c$$1) {
1844 _defaultUsablePrefix = getCanonicalPrefix(c$$1.styleDefault, {
1845 family: config.familyDefault
1846 });
1847 });
1848 build();
1849 function byUnicode(prefix, unicode) {
1850 return (_byUnicode[prefix] || {})[unicode];
1851 }
1852 function byLigature(prefix, ligature) {
1853 return (_byLigature[prefix] || {})[ligature];
1854 }
1855 function byAlias(prefix, alias) {
1856 return (_byAlias[prefix] || {})[alias];
1857 }
1858 function byOldName(name) {
1859 return _byOldName[name] || {
1860 prefix: null,
1861 iconName: null
1862 };
1863 }
1864 function byOldUnicode(unicode) {
1865 var oldUnicode = _byOldUnicode[unicode];
1866 var newUnicode = byUnicode('fas', unicode);
1867 return oldUnicode || (newUnicode ? {
1868 prefix: 'fas',
1869 iconName: newUnicode
1870 } : null) || {
1871 prefix: null,
1872 iconName: null
1873 };
1874 }
1875 function getDefaultUsablePrefix() {
1876 return _defaultUsablePrefix;
1877 }
1878 var emptyCanonicalIcon = function emptyCanonicalIcon() {
1879 return {
1880 prefix: null,
1881 iconName: null,
1882 rest: []
1883 };
1884 };
1885 function getFamilyId(values) {
1886 var family = u;
1887 var famProps = FAMILY_NAMES.reduce(function (acc, familyId) {
1888 acc[familyId] = "".concat(config.cssPrefix, "-").concat(familyId);
1889 return acc;
1890 }, {});
1891 xl.forEach(function (familyId) {
1892 if (values.includes(famProps[familyId]) || values.some(function (v$$1) {
1893 return PREFIXES_FOR_FAMILY[familyId].includes(v$$1);
1894 })) {
1895 family = familyId;
1896 }
1897 });
1898 return family;
1899 }
1900 function getCanonicalPrefix(styleOrPrefix) {
1901 var params = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};
1902 var _params$family = params.family,
1903 family = _params$family === void 0 ? u : _params$family;
1904 var style = PREFIX_TO_STYLE[family][styleOrPrefix];
1905
1906 // handles the exception of passing in only a family of 'duotone' with no style
1907 if (family === l && !styleOrPrefix) {
1908 return 'fad';
1909 }
1910 var prefix = STYLE_TO_PREFIX[family][styleOrPrefix] || STYLE_TO_PREFIX[family][style];
1911 var defined = styleOrPrefix in namespace.styles ? styleOrPrefix : null;
1912 var result = prefix || defined || null;
1913 return result;
1914 }
1915 function moveNonFaClassesToRest(classNames) {
1916 var rest = [];
1917 var iconName = null;
1918 classNames.forEach(function (cls) {
1919 var result = getIconName(config.cssPrefix, cls);
1920 if (result) {
1921 iconName = result;
1922 } else if (cls) {
1923 rest.push(cls);
1924 }
1925 });
1926 return {
1927 iconName: iconName,
1928 rest: rest
1929 };
1930 }
1931 function sortedUniqueValues(arr) {
1932 return arr.sort().filter(function (value, index, arr) {
1933 return arr.indexOf(value) === index;
1934 });
1935 }
1936 var _faCombinedClasses = ha.concat(at);
1937 function getCanonicalIcon(values) {
1938 var params = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};
1939 var _params$skipLookups = params.skipLookups,
1940 skipLookups = _params$skipLookups === void 0 ? false : _params$skipLookups;
1941 var givenPrefix = null;
1942 var faStyleOrFamilyClasses = sortedUniqueValues(values.filter(function (cls) {
1943 return _faCombinedClasses.includes(cls);
1944 }));
1945 var nonStyleOrFamilyClasses = sortedUniqueValues(values.filter(function (cls) {
1946 return !_faCombinedClasses.includes(cls);
1947 }));
1948 var faStyles = faStyleOrFamilyClasses.filter(function (cls) {
1949 givenPrefix = cls;
1950 return !dl.includes(cls);
1951 });
1952 var _faStyles = _slicedToArray(faStyles, 1),
1953 _faStyles$ = _faStyles[0],
1954 styleFromValues = _faStyles$ === void 0 ? null : _faStyles$;
1955 var family = getFamilyId(faStyleOrFamilyClasses);
1956 var canonical = _objectSpread2(_objectSpread2({}, moveNonFaClassesToRest(nonStyleOrFamilyClasses)), {}, {
1957 prefix: getCanonicalPrefix(styleFromValues, {
1958 family: family
1959 })
1960 });
1961 return _objectSpread2(_objectSpread2(_objectSpread2({}, canonical), getDefaultCanonicalPrefix({
1962 values: values,
1963 family: family,
1964 styles: styles,
1965 config: config,
1966 canonical: canonical,
1967 givenPrefix: givenPrefix
1968 })), applyShimAndAlias(skipLookups, givenPrefix, canonical));
1969 }
1970 function applyShimAndAlias(skipLookups, givenPrefix, canonical) {
1971 var prefix = canonical.prefix,
1972 iconName = canonical.iconName;
1973 if (skipLookups || !prefix || !iconName) {
1974 return {
1975 prefix: prefix,
1976 iconName: iconName
1977 };
1978 }
1979 var shim = givenPrefix === 'fa' ? byOldName(iconName) : {};
1980 var aliasIconName = byAlias(prefix, iconName);
1981 iconName = shim.iconName || aliasIconName || iconName;
1982 prefix = shim.prefix || prefix;
1983 if (prefix === 'far' && !styles['far'] && styles['fas'] && !config.autoFetchSvg) {
1984 // Allow a fallback from the regular style to solid if regular is not available
1985 // but only if we aren't auto-fetching SVGs
1986 prefix = 'fas';
1987 }
1988 return {
1989 prefix: prefix,
1990 iconName: iconName
1991 };
1992 }
1993 var newCanonicalFamilies = xl.filter(function (familyId) {
1994 return familyId !== u || familyId !== l;
1995 });
1996 var newCanonicalStyles = Object.keys(da).filter(function (key) {
1997 return key !== u;
1998 }).map(function (key) {
1999 return Object.keys(da[key]);
2000 }).flat();
2001 function getDefaultCanonicalPrefix(prefixOptions) {
2002 var values = prefixOptions.values,
2003 family = prefixOptions.family,
2004 canonical = prefixOptions.canonical,
2005 _prefixOptions$givenP = prefixOptions.givenPrefix,
2006 givenPrefix = _prefixOptions$givenP === void 0 ? '' : _prefixOptions$givenP,
2007 _prefixOptions$styles = prefixOptions.styles,
2008 styles = _prefixOptions$styles === void 0 ? {} : _prefixOptions$styles,
2009 _prefixOptions$config = prefixOptions.config,
2010 config$$1 = _prefixOptions$config === void 0 ? {} : _prefixOptions$config;
2011 var isDuotoneFamily = family === l;
2012 var valuesHasDuotone = values.includes('fa-duotone') || values.includes('fad');
2013 var defaultFamilyIsDuotone = config$$1.familyDefault === 'duotone';
2014 var canonicalPrefixIsDuotone = canonical.prefix === 'fad' || canonical.prefix === 'fa-duotone';
2015 if (!isDuotoneFamily && (valuesHasDuotone || defaultFamilyIsDuotone || canonicalPrefixIsDuotone)) {
2016 canonical.prefix = 'fad';
2017 }
2018 if (values.includes('fa-brands') || values.includes('fab')) {
2019 canonical.prefix = 'fab';
2020 }
2021 if (!canonical.prefix && newCanonicalFamilies.includes(family)) {
2022 var validPrefix = Object.keys(styles).find(function (key) {
2023 return newCanonicalStyles.includes(key);
2024 });
2025 if (validPrefix || config$$1.autoFetchSvg) {
2026 var defaultPrefix = Ql.get(family).defaultShortPrefixId;
2027 canonical.prefix = defaultPrefix;
2028 canonical.iconName = byAlias(canonical.prefix, canonical.iconName) || canonical.iconName;
2029 }
2030 }
2031 if (canonical.prefix === 'fa' || givenPrefix === 'fa') {
2032 // The fa prefix is not canonical. So if it has made it through until this point
2033 // we will shift it to the correct prefix.
2034 canonical.prefix = getDefaultUsablePrefix() || 'fas';
2035 }
2036 return canonical;
2037 }
2038
2039 var Library = /*#__PURE__*/function () {
2040 function Library() {
2041 _classCallCheck(this, Library);
2042 this.definitions = {};
2043 }
2044 return _createClass(Library, [{
2045 key: "add",
2046 value: function add() {
2047 var _this = this;
2048 for (var _len = arguments.length, definitions = new Array(_len), _key = 0; _key < _len; _key++) {
2049 definitions[_key] = arguments[_key];
2050 }
2051 var additions = definitions.reduce(this._pullDefinitions, {});
2052 Object.keys(additions).forEach(function (key) {
2053 _this.definitions[key] = _objectSpread2(_objectSpread2({}, _this.definitions[key] || {}), additions[key]);
2054 defineIcons(key, additions[key]);
2055
2056 // To keep support for older Classic styles, also add longer prefixes
2057 var longPrefix = PREFIX_TO_LONG_STYLE[u][key];
2058 if (longPrefix) defineIcons(longPrefix, additions[key]);
2059 build();
2060 });
2061 }
2062 }, {
2063 key: "reset",
2064 value: function reset() {
2065 this.definitions = {};
2066 }
2067 }, {
2068 key: "_pullDefinitions",
2069 value: function _pullDefinitions(additions, definition) {
2070 var normalized = definition.prefix && definition.iconName && definition.icon ? {
2071 0: definition
2072 } : definition;
2073 Object.keys(normalized).map(function (key) {
2074 var _normalized$key = normalized[key],
2075 prefix = _normalized$key.prefix,
2076 iconName = _normalized$key.iconName,
2077 icon = _normalized$key.icon;
2078 var aliases = icon[2];
2079 if (!additions[prefix]) additions[prefix] = {};
2080 if (aliases.length > 0) {
2081 aliases.forEach(function (alias) {
2082 if (typeof alias === 'string') {
2083 additions[prefix][alias] = icon;
2084 }
2085 });
2086 }
2087 additions[prefix][iconName] = icon;
2088 });
2089 return additions;
2090 }
2091 }]);
2092 }();
2093
2094 var _plugins = [];
2095 var _hooks = {};
2096 var providers = {};
2097 var defaultProviderKeys = Object.keys(providers);
2098 function registerPlugins(nextPlugins, _ref) {
2099 var obj = _ref.mixoutsTo;
2100 _plugins = nextPlugins;
2101 _hooks = {};
2102 Object.keys(providers).forEach(function (k) {
2103 if (defaultProviderKeys.indexOf(k) === -1) {
2104 delete providers[k];
2105 }
2106 });
2107 _plugins.forEach(function (plugin) {
2108 var mixout = plugin.mixout ? plugin.mixout() : {};
2109 Object.keys(mixout).forEach(function (tk) {
2110 if (typeof mixout[tk] === 'function') {
2111 obj[tk] = mixout[tk];
2112 }
2113 if (_typeof(mixout[tk]) === 'object') {
2114 Object.keys(mixout[tk]).forEach(function (sk) {
2115 if (!obj[tk]) {
2116 obj[tk] = {};
2117 }
2118 obj[tk][sk] = mixout[tk][sk];
2119 });
2120 }
2121 });
2122 if (plugin.hooks) {
2123 var hooks = plugin.hooks();
2124 Object.keys(hooks).forEach(function (hook) {
2125 if (!_hooks[hook]) {
2126 _hooks[hook] = [];
2127 }
2128 _hooks[hook].push(hooks[hook]);
2129 });
2130 }
2131 if (plugin.provides) {
2132 plugin.provides(providers);
2133 }
2134 });
2135 return obj;
2136 }
2137 function chainHooks(hook, accumulator) {
2138 for (var _len = arguments.length, args = new Array(_len > 2 ? _len - 2 : 0), _key = 2; _key < _len; _key++) {
2139 args[_key - 2] = arguments[_key];
2140 }
2141 var hookFns = _hooks[hook] || [];
2142 hookFns.forEach(function (hookFn) {
2143 accumulator = hookFn.apply(null, [accumulator].concat(args));
2144 });
2145 return accumulator;
2146 }
2147 function callHooks(hook) {
2148 for (var _len2 = arguments.length, args = new Array(_len2 > 1 ? _len2 - 1 : 0), _key2 = 1; _key2 < _len2; _key2++) {
2149 args[_key2 - 1] = arguments[_key2];
2150 }
2151 var hookFns = _hooks[hook] || [];
2152 hookFns.forEach(function (hookFn) {
2153 hookFn.apply(null, args);
2154 });
2155 return undefined;
2156 }
2157 function callProvided() {
2158 var hook = arguments[0];
2159 var args = Array.prototype.slice.call(arguments, 1);
2160 return providers[hook] ? providers[hook].apply(null, args) : undefined;
2161 }
2162
2163 function findIconDefinition(iconLookup) {
2164 if (iconLookup.prefix === 'fa') {
2165 iconLookup.prefix = 'fas';
2166 }
2167 var iconName = iconLookup.iconName;
2168 var prefix = iconLookup.prefix || getDefaultUsablePrefix();
2169 if (!iconName) return;
2170 iconName = byAlias(prefix, iconName) || iconName;
2171 return iconFromMapping(library.definitions, prefix, iconName) || iconFromMapping(namespace.styles, prefix, iconName);
2172 }
2173 var library = new Library();
2174 var noAuto = function noAuto() {
2175 config.autoReplaceSvg = false;
2176 config.observeMutations = false;
2177 callHooks('noAuto');
2178 };
2179 var dom = {
2180 i2svg: function i2svg() {
2181 var params = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};
2182 if (IS_DOM) {
2183 callHooks('beforeI2svg', params);
2184 callProvided('pseudoElements2svg', params);
2185 return callProvided('i2svg', params);
2186 } else {
2187 return Promise.reject(new Error('Operation requires a DOM of some kind.'));
2188 }
2189 },
2190 watch: function watch() {
2191 var params = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};
2192 var autoReplaceSvgRoot = params.autoReplaceSvgRoot;
2193 if (config.autoReplaceSvg === false) {
2194 config.autoReplaceSvg = true;
2195 }
2196 config.observeMutations = true;
2197 domready(function () {
2198 autoReplace({
2199 autoReplaceSvgRoot: autoReplaceSvgRoot
2200 });
2201 callHooks('watch', params);
2202 });
2203 }
2204 };
2205 var parse = {
2206 icon: function icon(_icon) {
2207 if (_icon === null) {
2208 return null;
2209 }
2210 if (_typeof(_icon) === 'object' && _icon.prefix && _icon.iconName) {
2211 return {
2212 prefix: _icon.prefix,
2213 iconName: byAlias(_icon.prefix, _icon.iconName) || _icon.iconName
2214 };
2215 }
2216 if (Array.isArray(_icon) && _icon.length === 2) {
2217 var iconName = _icon[1].indexOf('fa-') === 0 ? _icon[1].slice(3) : _icon[1];
2218 var prefix = getCanonicalPrefix(_icon[0]);
2219 return {
2220 prefix: prefix,
2221 iconName: byAlias(prefix, iconName) || iconName
2222 };
2223 }
2224 if (typeof _icon === 'string' && (_icon.indexOf("".concat(config.cssPrefix, "-")) > -1 || _icon.match(ICON_SELECTION_SYNTAX_PATTERN))) {
2225 var canonicalIcon = getCanonicalIcon(_icon.split(' '), {
2226 skipLookups: true
2227 });
2228 return {
2229 prefix: canonicalIcon.prefix || getDefaultUsablePrefix(),
2230 iconName: byAlias(canonicalIcon.prefix, canonicalIcon.iconName) || canonicalIcon.iconName
2231 };
2232 }
2233 if (typeof _icon === 'string') {
2234 var _prefix = getDefaultUsablePrefix();
2235 return {
2236 prefix: _prefix,
2237 iconName: byAlias(_prefix, _icon) || _icon
2238 };
2239 }
2240 }
2241 };
2242 var api = {
2243 noAuto: noAuto,
2244 config: config,
2245 dom: dom,
2246 parse: parse,
2247 library: library,
2248 findIconDefinition: findIconDefinition,
2249 toHtml: toHtml
2250 };
2251 var autoReplace = function autoReplace() {
2252 var params = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};
2253 var _params$autoReplaceSv = params.autoReplaceSvgRoot,
2254 autoReplaceSvgRoot = _params$autoReplaceSv === void 0 ? DOCUMENT : _params$autoReplaceSv;
2255 if ((Object.keys(namespace.styles).length > 0 || config.autoFetchSvg) && IS_DOM && config.autoReplaceSvg) api.dom.i2svg({
2256 node: autoReplaceSvgRoot
2257 });
2258 };
2259
2260 function domVariants(val, abstractCreator) {
2261 Object.defineProperty(val, 'abstract', {
2262 get: abstractCreator
2263 });
2264 Object.defineProperty(val, 'html', {
2265 get: function get() {
2266 return val.abstract.map(function (a) {
2267 return toHtml(a);
2268 });
2269 }
2270 });
2271 Object.defineProperty(val, 'node', {
2272 get: function get() {
2273 if (!IS_DOM) return undefined;
2274 var container = DOCUMENT.createElement('div');
2275 container.innerHTML = val.html;
2276 return container.children;
2277 }
2278 });
2279 return val;
2280 }
2281
2282 function asIcon (_ref) {
2283 var children = _ref.children,
2284 main = _ref.main,
2285 mask = _ref.mask,
2286 attributes = _ref.attributes,
2287 styles = _ref.styles,
2288 transform = _ref.transform;
2289 if (transformIsMeaningful(transform) && main.found && !mask.found) {
2290 var width = main.width,
2291 height = main.height;
2292 var offset = {
2293 x: width / height / 2,
2294 y: 0.5
2295 };
2296 attributes['style'] = joinStyles(_objectSpread2(_objectSpread2({}, styles), {}, {
2297 'transform-origin': "".concat(offset.x + transform.x / 16, "em ").concat(offset.y + transform.y / 16, "em")
2298 }));
2299 }
2300 return [{
2301 tag: 'svg',
2302 attributes: attributes,
2303 children: children
2304 }];
2305 }
2306
2307 function asSymbol (_ref) {
2308 var prefix = _ref.prefix,
2309 iconName = _ref.iconName,
2310 children = _ref.children,
2311 attributes = _ref.attributes,
2312 symbol = _ref.symbol;
2313 var id = symbol === true ? "".concat(prefix, "-").concat(config.cssPrefix, "-").concat(iconName) : symbol;
2314 return [{
2315 tag: 'svg',
2316 attributes: {
2317 style: 'display: none;'
2318 },
2319 children: [{
2320 tag: 'symbol',
2321 attributes: _objectSpread2(_objectSpread2({}, attributes), {}, {
2322 id: id
2323 }),
2324 children: children
2325 }]
2326 }];
2327 }
2328
2329 // If any of these attributes are present, don't assume the icon is decorative
2330 function isLabeled(attributes) {
2331 var labels = ['aria-label', 'aria-labelledby', 'title', 'role'];
2332 return labels.some(function (label) {
2333 return label in attributes;
2334 });
2335 }
2336 function makeInlineSvgAbstract(params) {
2337 var _params$icons = params.icons,
2338 main = _params$icons.main,
2339 mask = _params$icons.mask,
2340 prefix = params.prefix,
2341 iconName = params.iconName,
2342 transform = params.transform,
2343 symbol = params.symbol,
2344 maskId = params.maskId,
2345 extra = params.extra,
2346 _params$watchable = params.watchable,
2347 watchable = _params$watchable === void 0 ? false : _params$watchable;
2348 var _ref = mask.found ? mask : main,
2349 width = _ref.width,
2350 height = _ref.height;
2351 var attrClass = [config.replacementClass, iconName ? "".concat(config.cssPrefix, "-").concat(iconName) : ''].filter(function (c) {
2352 return extra.classes.indexOf(c) === -1;
2353 }).filter(function (c) {
2354 return c !== '' || !!c;
2355 }).concat(extra.classes).join(' ');
2356 var content = {
2357 children: [],
2358 attributes: _objectSpread2(_objectSpread2({}, extra.attributes), {}, {
2359 'data-prefix': prefix,
2360 'data-icon': iconName,
2361 'class': attrClass,
2362 'role': extra.attributes.role || 'img',
2363 'viewBox': "0 0 ".concat(width, " ").concat(height)
2364 })
2365 };
2366 if (!isLabeled(extra.attributes) && !extra.attributes['aria-hidden']) {
2367 content.attributes['aria-hidden'] = 'true';
2368 }
2369 if (watchable) {
2370 content.attributes[DATA_FA_I2SVG] = '';
2371 }
2372 var args = _objectSpread2(_objectSpread2({}, content), {}, {
2373 prefix: prefix,
2374 iconName: iconName,
2375 main: main,
2376 mask: mask,
2377 maskId: maskId,
2378 transform: transform,
2379 symbol: symbol,
2380 styles: _objectSpread2({}, extra.styles)
2381 });
2382 var _ref2 = mask.found && main.found ? callProvided('generateAbstractMask', args) || {
2383 children: [],
2384 attributes: {}
2385 } : callProvided('generateAbstractIcon', args) || {
2386 children: [],
2387 attributes: {}
2388 },
2389 children = _ref2.children,
2390 attributes = _ref2.attributes;
2391 args.children = children;
2392 args.attributes = attributes;
2393 if (symbol) {
2394 return asSymbol(args);
2395 } else {
2396 return asIcon(args);
2397 }
2398 }
2399 function makeLayersTextAbstract(params) {
2400 var content = params.content,
2401 width = params.width,
2402 height = params.height,
2403 transform = params.transform,
2404 extra = params.extra,
2405 _params$watchable2 = params.watchable,
2406 watchable = _params$watchable2 === void 0 ? false : _params$watchable2;
2407 var attributes = _objectSpread2(_objectSpread2({}, extra.attributes), {}, {
2408 class: extra.classes.join(' ')
2409 });
2410 if (watchable) {
2411 attributes[DATA_FA_I2SVG] = '';
2412 }
2413 var styles = _objectSpread2({}, extra.styles);
2414 if (transformIsMeaningful(transform)) {
2415 styles['transform'] = transformForCss({
2416 transform: transform,
2417 startCentered: true,
2418 width: width,
2419 height: height
2420 });
2421 styles['-webkit-transform'] = styles['transform'];
2422 }
2423 var styleString = joinStyles(styles);
2424 if (styleString.length > 0) {
2425 attributes['style'] = styleString;
2426 }
2427 var val = [];
2428 val.push({
2429 tag: 'span',
2430 attributes: attributes,
2431 children: [content]
2432 });
2433 return val;
2434 }
2435 function makeLayersCounterAbstract(params) {
2436 var content = params.content,
2437 extra = params.extra;
2438 var attributes = _objectSpread2(_objectSpread2({}, extra.attributes), {}, {
2439 class: extra.classes.join(' ')
2440 });
2441 var styleString = joinStyles(extra.styles);
2442 if (styleString.length > 0) {
2443 attributes['style'] = styleString;
2444 }
2445 var val = [];
2446 val.push({
2447 tag: 'span',
2448 attributes: attributes,
2449 children: [content]
2450 });
2451 return val;
2452 }
2453
2454 var styles$1 = namespace.styles;
2455 function asFoundIcon(icon) {
2456 var width = icon[0];
2457 var height = icon[1];
2458 var _icon$slice = icon.slice(4),
2459 _icon$slice2 = _slicedToArray(_icon$slice, 1),
2460 vectorData = _icon$slice2[0];
2461 var element = null;
2462 if (Array.isArray(vectorData)) {
2463 element = {
2464 tag: 'g',
2465 attributes: {
2466 class: "".concat(config.cssPrefix, "-").concat(DUOTONE_CLASSES.GROUP)
2467 },
2468 children: [{
2469 tag: 'path',
2470 attributes: {
2471 class: "".concat(config.cssPrefix, "-").concat(DUOTONE_CLASSES.SECONDARY),
2472 fill: 'currentColor',
2473 d: vectorData[0]
2474 }
2475 }, {
2476 tag: 'path',
2477 attributes: {
2478 class: "".concat(config.cssPrefix, "-").concat(DUOTONE_CLASSES.PRIMARY),
2479 fill: 'currentColor',
2480 d: vectorData[1]
2481 }
2482 }]
2483 };
2484 } else {
2485 element = {
2486 tag: 'path',
2487 attributes: {
2488 fill: 'currentColor',
2489 d: vectorData
2490 }
2491 };
2492 }
2493 return {
2494 found: true,
2495 width: width,
2496 height: height,
2497 icon: element
2498 };
2499 }
2500 var missingIconResolutionMixin = {
2501 found: false,
2502 width: 512,
2503 height: 512
2504 };
2505 function maybeNotifyMissing(iconName, prefix) {
2506 if (!PRODUCTION && !config.showMissingIcons && iconName) {
2507 console.error("Icon with name \"".concat(iconName, "\" and prefix \"").concat(prefix, "\" is missing."));
2508 }
2509 }
2510 function findIcon(iconName, prefix) {
2511 var givenPrefix = prefix;
2512 if (prefix === 'fa' && config.styleDefault !== null) {
2513 prefix = getDefaultUsablePrefix();
2514 }
2515 return new Promise(function (resolve, reject) {
2516 if (givenPrefix === 'fa') {
2517 var shim = byOldName(iconName) || {};
2518 iconName = shim.iconName || iconName;
2519 prefix = shim.prefix || prefix;
2520 }
2521 if (iconName && prefix && styles$1[prefix] && styles$1[prefix][iconName]) {
2522 var icon = styles$1[prefix][iconName];
2523 return resolve(asFoundIcon(icon));
2524 }
2525 maybeNotifyMissing(iconName, prefix);
2526 resolve(_objectSpread2(_objectSpread2({}, missingIconResolutionMixin), {}, {
2527 icon: config.showMissingIcons && iconName ? callProvided('missingIconAbstract') || {} : {}
2528 }));
2529 });
2530 }
2531
2532 var noop$1 = function noop() {};
2533 var p$2 = config.measurePerformance && PERFORMANCE && PERFORMANCE.mark && PERFORMANCE.measure ? PERFORMANCE : {
2534 mark: noop$1,
2535 measure: noop$1
2536 };
2537 var preamble = "FA \"7.3.0\"";
2538 var begin = function begin(name) {
2539 p$2.mark("".concat(preamble, " ").concat(name, " begins"));
2540 return function () {
2541 return end(name);
2542 };
2543 };
2544 var end = function end(name) {
2545 p$2.mark("".concat(preamble, " ").concat(name, " ends"));
2546 p$2.measure("".concat(preamble, " ").concat(name), "".concat(preamble, " ").concat(name, " begins"), "".concat(preamble, " ").concat(name, " ends"));
2547 };
2548 var perf = {
2549 begin: begin,
2550 end: end
2551 };
2552
2553 var noop$2 = function noop() {};
2554 function isWatched(node) {
2555 var i2svg = node.getAttribute ? node.getAttribute(DATA_FA_I2SVG) : null;
2556 return typeof i2svg === 'string';
2557 }
2558 function hasPrefixAndIcon(node) {
2559 var prefix = node.getAttribute ? node.getAttribute(DATA_PREFIX) : null;
2560 var icon = node.getAttribute ? node.getAttribute(DATA_ICON) : null;
2561 return prefix && icon;
2562 }
2563 function hasBeenReplaced(node) {
2564 return node && node.classList && node.classList.contains && node.classList.contains(config.replacementClass);
2565 }
2566 function getMutator() {
2567 if (config.autoReplaceSvg === true) {
2568 return mutators.replace;
2569 }
2570 var mutator = mutators[config.autoReplaceSvg];
2571 return mutator || mutators.replace;
2572 }
2573 function createElementNS(tag) {
2574 return DOCUMENT.createElementNS('http://www.w3.org/2000/svg', tag);
2575 }
2576 function createElement(tag) {
2577 return DOCUMENT.createElement(tag);
2578 }
2579 function convertSVG(abstractObj) {
2580 var params = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};
2581 var _params$ceFn = params.ceFn,
2582 ceFn = _params$ceFn === void 0 ? abstractObj.tag === 'svg' ? createElementNS : createElement : _params$ceFn;
2583 if (typeof abstractObj === 'string') {
2584 return DOCUMENT.createTextNode(abstractObj);
2585 }
2586 var tag = ceFn(abstractObj.tag);
2587 Object.keys(abstractObj.attributes || []).forEach(function (key) {
2588 tag.setAttribute(key, abstractObj.attributes[key]);
2589 });
2590 var children = abstractObj.children || [];
2591 children.forEach(function (child) {
2592 tag.appendChild(convertSVG(child, {
2593 ceFn: ceFn
2594 }));
2595 });
2596 return tag;
2597 }
2598 function nodeAsComment(node) {
2599 var comment = " ".concat(node.outerHTML, " ");
2600 /* BEGIN.ATTRIBUTION */
2601 comment = "".concat(comment, "Font Awesome fontawesome.com ");
2602 /* END.ATTRIBUTION */
2603 return comment;
2604 }
2605 var mutators = {
2606 replace: function replace(mutation) {
2607 var node = mutation[0];
2608 if (node.parentNode) {
2609 mutation[1].forEach(function (abstract) {
2610 node.parentNode.insertBefore(convertSVG(abstract), node);
2611 });
2612 if (node.getAttribute(DATA_FA_I2SVG) === null && config.keepOriginalSource) {
2613 var comment = DOCUMENT.createComment(nodeAsComment(node));
2614 node.parentNode.replaceChild(comment, node);
2615 } else {
2616 node.remove();
2617 }
2618 }
2619 },
2620 nest: function nest(mutation) {
2621 var node = mutation[0];
2622 var abstract = mutation[1];
2623
2624 // If we already have a replaced node we do not want to continue nesting within it.
2625 // Short-circuit to the standard replacement
2626 if (~classArray(node).indexOf(config.replacementClass)) {
2627 return mutators.replace(mutation);
2628 }
2629 var forSvg = new RegExp("".concat(config.cssPrefix, "-.*"));
2630 delete abstract[0].attributes.id;
2631 if (abstract[0].attributes.class) {
2632 var splitClasses = abstract[0].attributes.class.split(' ').reduce(function (acc, cls) {
2633 if (cls === config.replacementClass || cls.match(forSvg)) {
2634 acc.toSvg.push(cls);
2635 } else {
2636 acc.toNode.push(cls);
2637 }
2638 return acc;
2639 }, {
2640 toNode: [],
2641 toSvg: []
2642 });
2643 abstract[0].attributes.class = splitClasses.toSvg.join(' ');
2644 if (splitClasses.toNode.length === 0) {
2645 node.removeAttribute('class');
2646 } else {
2647 node.setAttribute('class', splitClasses.toNode.join(' '));
2648 }
2649 }
2650 var newInnerHTML = abstract.map(function (a) {
2651 return toHtml(a);
2652 }).join('\n');
2653 node.setAttribute(DATA_FA_I2SVG, '');
2654 node.innerHTML = newInnerHTML;
2655 }
2656 };
2657 function performOperationSync(op) {
2658 op();
2659 }
2660 function perform(mutations, callback) {
2661 var callbackFunction = typeof callback === 'function' ? callback : noop$2;
2662 if (mutations.length === 0) {
2663 callbackFunction();
2664 } else {
2665 var frame = performOperationSync;
2666 if (config.mutateApproach === MUTATION_APPROACH_ASYNC) {
2667 frame = WINDOW.requestAnimationFrame || performOperationSync;
2668 }
2669 frame(function () {
2670 var mutator = getMutator();
2671 var mark = perf.begin('mutate');
2672 mutations.map(mutator);
2673 mark();
2674 callbackFunction();
2675 });
2676 }
2677 }
2678 var disabled = false;
2679 function disableObservation() {
2680 disabled = true;
2681 }
2682 function enableObservation() {
2683 disabled = false;
2684 }
2685 var mo = null;
2686 function observe(options) {
2687 if (!MUTATION_OBSERVER) {
2688 return;
2689 }
2690 if (!config.observeMutations) {
2691 return;
2692 }
2693 var _options$treeCallback = options.treeCallback,
2694 treeCallback = _options$treeCallback === void 0 ? noop$2 : _options$treeCallback,
2695 _options$nodeCallback = options.nodeCallback,
2696 nodeCallback = _options$nodeCallback === void 0 ? noop$2 : _options$nodeCallback,
2697 _options$pseudoElemen = options.pseudoElementsCallback,
2698 pseudoElementsCallback = _options$pseudoElemen === void 0 ? noop$2 : _options$pseudoElemen,
2699 _options$observeMutat = options.observeMutationsRoot,
2700 observeMutationsRoot = _options$observeMutat === void 0 ? DOCUMENT : _options$observeMutat;
2701 mo = new MUTATION_OBSERVER(function (objects) {
2702 if (disabled) return;
2703 var defaultPrefix = getDefaultUsablePrefix();
2704 toArray(objects).forEach(function (mutationRecord) {
2705 if (mutationRecord.type === 'childList' && mutationRecord.addedNodes.length > 0 && !isWatched(mutationRecord.addedNodes[0])) {
2706 if (config.searchPseudoElements) {
2707 pseudoElementsCallback(mutationRecord.target);
2708 }
2709 treeCallback(mutationRecord.target);
2710 }
2711 if (mutationRecord.type === 'attributes' && mutationRecord.target.parentNode && config.searchPseudoElements) {
2712 pseudoElementsCallback([mutationRecord.target], true);
2713 }
2714 if (mutationRecord.type === 'attributes' && isWatched(mutationRecord.target) && ~ATTRIBUTES_WATCHED_FOR_MUTATION.indexOf(mutationRecord.attributeName)) {
2715 if (mutationRecord.attributeName === 'class' && hasPrefixAndIcon(mutationRecord.target)) {
2716 var _getCanonicalIcon = getCanonicalIcon(classArray(mutationRecord.target)),
2717 prefix = _getCanonicalIcon.prefix,
2718 iconName = _getCanonicalIcon.iconName;
2719 mutationRecord.target.setAttribute(DATA_PREFIX, prefix || defaultPrefix);
2720 if (iconName) mutationRecord.target.setAttribute(DATA_ICON, iconName);
2721 } else if (hasBeenReplaced(mutationRecord.target)) {
2722 nodeCallback(mutationRecord.target);
2723 }
2724 }
2725 });
2726 });
2727 if (!IS_DOM) return;
2728 mo.observe(observeMutationsRoot, {
2729 childList: true,
2730 attributes: true,
2731 characterData: true,
2732 subtree: true
2733 });
2734 }
2735 function disconnect() {
2736 if (!mo) return;
2737 mo.disconnect();
2738 }
2739
2740 function styleParser (node) {
2741 var style = node.getAttribute('style');
2742 var val = [];
2743 if (style) {
2744 val = style.split(';').reduce(function (acc, style) {
2745 var styles = style.split(':');
2746 var prop = styles[0];
2747 var value = styles.slice(1);
2748 if (prop && value.length > 0) {
2749 acc[prop] = value.join(':').trim();
2750 }
2751 return acc;
2752 }, {});
2753 }
2754 return val;
2755 }
2756
2757 function classParser (node) {
2758 var existingPrefix = node.getAttribute('data-prefix');
2759 var existingIconName = node.getAttribute('data-icon');
2760 var innerText = node.innerText !== undefined ? node.innerText.trim() : '';
2761 var val = getCanonicalIcon(classArray(node));
2762 if (!val.prefix) {
2763 val.prefix = getDefaultUsablePrefix();
2764 }
2765 if (existingPrefix && existingIconName) {
2766 val.prefix = existingPrefix;
2767 val.iconName = existingIconName;
2768 }
2769 if (val.iconName && val.prefix) {
2770 return val;
2771 }
2772 if (val.prefix && innerText.length > 0) {
2773 val.iconName = byLigature(val.prefix, node.innerText) || byUnicode(val.prefix, toHex(node.innerText));
2774 }
2775 if (!val.iconName && config.autoFetchSvg && node.firstChild && node.firstChild.nodeType === Node.TEXT_NODE) {
2776 val.iconName = node.firstChild.data;
2777 }
2778 return val;
2779 }
2780
2781 function attributesParser (node) {
2782 var extraAttributes = toArray(node.attributes).reduce(function (acc, attr) {
2783 if (acc.name !== 'class' && acc.name !== 'style') {
2784 acc[attr.name] = attr.value;
2785 }
2786 return acc;
2787 }, {});
2788 return extraAttributes;
2789 }
2790
2791 function blankMeta() {
2792 return {
2793 iconName: null,
2794 prefix: null,
2795 transform: meaninglessTransform,
2796 symbol: false,
2797 mask: {
2798 iconName: null,
2799 prefix: null,
2800 rest: []
2801 },
2802 maskId: null,
2803 extra: {
2804 classes: [],
2805 styles: {},
2806 attributes: {}
2807 }
2808 };
2809 }
2810 function parseMeta(node) {
2811 var parser = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {
2812 styleParser: true
2813 };
2814 var _classParser = classParser(node),
2815 iconName = _classParser.iconName,
2816 prefix = _classParser.prefix,
2817 extraClasses = _classParser.rest;
2818 var extraAttributes = attributesParser(node);
2819 var pluginMeta = chainHooks('parseNodeAttributes', {}, node);
2820 var extraStyles = parser.styleParser ? styleParser(node) : [];
2821 return _objectSpread2({
2822 iconName: iconName,
2823 prefix: prefix,
2824 transform: meaninglessTransform,
2825 mask: {
2826 iconName: null,
2827 prefix: null,
2828 rest: []
2829 },
2830 maskId: null,
2831 symbol: false,
2832 extra: {
2833 classes: extraClasses,
2834 styles: extraStyles,
2835 attributes: extraAttributes
2836 }
2837 }, pluginMeta);
2838 }
2839
2840 var styles$2 = namespace.styles;
2841 function generateMutation(node) {
2842 var nodeMeta = config.autoReplaceSvg === 'nest' ? parseMeta(node, {
2843 styleParser: false
2844 }) : parseMeta(node);
2845 if (~nodeMeta.extra.classes.indexOf(LAYERS_TEXT_CLASSNAME)) {
2846 return callProvided('generateLayersText', node, nodeMeta);
2847 } else {
2848 return callProvided('generateSvgReplacementMutation', node, nodeMeta);
2849 }
2850 }
2851 function getKnownPrefixes() {
2852 return [].concat(_toConsumableArray(at), _toConsumableArray(ha));
2853 }
2854 function onTree(root) {
2855 var callback = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : null;
2856 if (!IS_DOM) return Promise.resolve();
2857 var htmlClassList = DOCUMENT.documentElement.classList;
2858 var hclAdd = function hclAdd(suffix) {
2859 return htmlClassList.add("".concat(HTML_CLASS_I2SVG_BASE_CLASS, "-").concat(suffix));
2860 };
2861 var hclRemove = function hclRemove(suffix) {
2862 return htmlClassList.remove("".concat(HTML_CLASS_I2SVG_BASE_CLASS, "-").concat(suffix));
2863 };
2864 var prefixes = config.autoFetchSvg ? getKnownPrefixes() : dl.concat(Object.keys(styles$2));
2865 if (!prefixes.includes('fa')) {
2866 prefixes.push('fa');
2867 }
2868 var prefixesDomQuery = [".".concat(LAYERS_TEXT_CLASSNAME, ":not([").concat(DATA_FA_I2SVG, "])")].concat(prefixes.map(function (p$$1) {
2869 return ".".concat(p$$1, ":not([").concat(DATA_FA_I2SVG, "])");
2870 })).join(', ');
2871 if (prefixesDomQuery.length === 0) {
2872 return Promise.resolve();
2873 }
2874 var candidates = [];
2875 try {
2876 candidates = toArray(root.querySelectorAll(prefixesDomQuery));
2877 } catch (e$$1) {
2878 // noop
2879 }
2880 if (candidates.length > 0) {
2881 hclAdd('pending');
2882 hclRemove('complete');
2883 } else {
2884 return Promise.resolve();
2885 }
2886 var mark = perf.begin('onTree');
2887 var mutations = candidates.reduce(function (acc, node) {
2888 try {
2889 var mutation = generateMutation(node);
2890 if (mutation) {
2891 acc.push(mutation);
2892 }
2893 } catch (e$$1) {
2894 if (!PRODUCTION) {
2895 if (e$$1.name === 'MissingIcon') {
2896 console.error(e$$1);
2897 }
2898 }
2899 }
2900 return acc;
2901 }, []);
2902 return new Promise(function (resolve, reject) {
2903 Promise.all(mutations).then(function (resolvedMutations) {
2904 perform(resolvedMutations, function () {
2905 hclAdd('active');
2906 hclAdd('complete');
2907 hclRemove('pending');
2908 if (typeof callback === 'function') callback();
2909 mark();
2910 resolve();
2911 });
2912 }).catch(function (e$$1) {
2913 mark();
2914 reject(e$$1);
2915 });
2916 });
2917 }
2918 function onNode(node) {
2919 var callback = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : null;
2920 generateMutation(node).then(function (mutation) {
2921 if (mutation) {
2922 perform([mutation], callback);
2923 }
2924 });
2925 }
2926 function resolveIcons(next) {
2927 return function (maybeIconDefinition) {
2928 var params = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};
2929 var iconDefinition = (maybeIconDefinition || {}).icon ? maybeIconDefinition : findIconDefinition(maybeIconDefinition || {});
2930 var mask = params.mask;
2931 if (mask) {
2932 mask = (mask || {}).icon ? mask : findIconDefinition(mask || {});
2933 }
2934 return next(iconDefinition, _objectSpread2(_objectSpread2({}, params), {}, {
2935 mask: mask
2936 }));
2937 };
2938 }
2939 var render = function render(iconDefinition) {
2940 var params = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};
2941 var _params$transform = params.transform,
2942 transform = _params$transform === void 0 ? meaninglessTransform : _params$transform,
2943 _params$symbol = params.symbol,
2944 symbol = _params$symbol === void 0 ? false : _params$symbol,
2945 _params$mask = params.mask,
2946 mask = _params$mask === void 0 ? null : _params$mask,
2947 _params$maskId = params.maskId,
2948 maskId = _params$maskId === void 0 ? null : _params$maskId,
2949 _params$classes = params.classes,
2950 classes = _params$classes === void 0 ? [] : _params$classes,
2951 _params$attributes = params.attributes,
2952 attributes = _params$attributes === void 0 ? {} : _params$attributes,
2953 _params$styles = params.styles,
2954 styles = _params$styles === void 0 ? {} : _params$styles;
2955 if (!iconDefinition) return;
2956 var prefix = iconDefinition.prefix,
2957 iconName = iconDefinition.iconName,
2958 icon = iconDefinition.icon;
2959 return domVariants(_objectSpread2({
2960 type: 'icon'
2961 }, iconDefinition), function () {
2962 callHooks('beforeDOMElementCreation', {
2963 iconDefinition: iconDefinition,
2964 params: params
2965 });
2966 return makeInlineSvgAbstract({
2967 icons: {
2968 main: asFoundIcon(icon),
2969 mask: mask ? asFoundIcon(mask.icon) : {
2970 found: false,
2971 width: null,
2972 height: null,
2973 icon: {}
2974 }
2975 },
2976 prefix: prefix,
2977 iconName: iconName,
2978 transform: _objectSpread2(_objectSpread2({}, meaninglessTransform), transform),
2979 symbol: symbol,
2980 maskId: maskId,
2981 extra: {
2982 attributes: attributes,
2983 styles: styles,
2984 classes: classes
2985 }
2986 });
2987 });
2988 };
2989 var ReplaceElements = {
2990 mixout: function mixout() {
2991 return {
2992 icon: resolveIcons(render)
2993 };
2994 },
2995 hooks: function hooks() {
2996 return {
2997 mutationObserverCallbacks: function mutationObserverCallbacks(accumulator) {
2998 accumulator.treeCallback = onTree;
2999 accumulator.nodeCallback = onNode;
3000 return accumulator;
3001 }
3002 };
3003 },
3004 provides: function provides(providers$$1) {
3005 providers$$1.i2svg = function (params) {
3006 var _params$node = params.node,
3007 node = _params$node === void 0 ? DOCUMENT : _params$node,
3008 _params$callback = params.callback,
3009 callback = _params$callback === void 0 ? function () {} : _params$callback;
3010 return onTree(node, callback);
3011 };
3012 providers$$1.generateSvgReplacementMutation = function (node, nodeMeta) {
3013 var iconName = nodeMeta.iconName,
3014 prefix = nodeMeta.prefix,
3015 transform = nodeMeta.transform,
3016 symbol = nodeMeta.symbol,
3017 mask = nodeMeta.mask,
3018 maskId = nodeMeta.maskId,
3019 extra = nodeMeta.extra;
3020 return new Promise(function (resolve, reject) {
3021 Promise.all([findIcon(iconName, prefix), mask.iconName ? findIcon(mask.iconName, mask.prefix) : Promise.resolve({
3022 found: false,
3023 width: 512,
3024 height: 512,
3025 icon: {}
3026 })]).then(function (_ref) {
3027 var _ref2 = _slicedToArray(_ref, 2),
3028 main = _ref2[0],
3029 mask = _ref2[1];
3030 resolve([node, makeInlineSvgAbstract({
3031 icons: {
3032 main: main,
3033 mask: mask
3034 },
3035 prefix: prefix,
3036 iconName: iconName,
3037 transform: transform,
3038 symbol: symbol,
3039 maskId: maskId,
3040 extra: extra,
3041 watchable: true
3042 })]);
3043 }).catch(reject);
3044 });
3045 };
3046 providers$$1.generateAbstractIcon = function (_ref3) {
3047 var children = _ref3.children,
3048 attributes = _ref3.attributes,
3049 main = _ref3.main,
3050 transform = _ref3.transform,
3051 styles = _ref3.styles;
3052 var styleString = joinStyles(styles);
3053 if (styleString.length > 0) {
3054 attributes['style'] = styleString;
3055 }
3056 var nextChild;
3057 if (transformIsMeaningful(transform)) {
3058 nextChild = callProvided('generateAbstractTransformGrouping', {
3059 main: main,
3060 transform: transform,
3061 containerWidth: main.width,
3062 iconWidth: main.width
3063 });
3064 }
3065 children.push(nextChild || main.icon);
3066 return {
3067 children: children,
3068 attributes: attributes
3069 };
3070 };
3071 }
3072 };
3073
3074 var Layers = {
3075 mixout: function mixout() {
3076 return {
3077 layer: function layer(assembler) {
3078 var params = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};
3079 var _params$classes = params.classes,
3080 classes = _params$classes === void 0 ? [] : _params$classes;
3081 return domVariants({
3082 type: 'layer'
3083 }, function () {
3084 callHooks('beforeDOMElementCreation', {
3085 assembler: assembler,
3086 params: params
3087 });
3088 var children = [];
3089 assembler(function (args) {
3090 Array.isArray(args) ? args.map(function (a) {
3091 children = children.concat(a.abstract);
3092 }) : children = children.concat(args.abstract);
3093 });
3094 return [{
3095 tag: 'span',
3096 attributes: {
3097 class: ["".concat(config.cssPrefix, "-layers")].concat(_toConsumableArray(classes)).join(' ')
3098 },
3099 children: children
3100 }];
3101 });
3102 }
3103 };
3104 }
3105 };
3106
3107 var LayersCounter = {
3108 mixout: function mixout() {
3109 return {
3110 counter: function counter(content) {
3111 var params = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};
3112 var _params$title = params.title,
3113 title = _params$title === void 0 ? null : _params$title,
3114 _params$classes = params.classes,
3115 classes = _params$classes === void 0 ? [] : _params$classes,
3116 _params$attributes = params.attributes,
3117 attributes = _params$attributes === void 0 ? {} : _params$attributes,
3118 _params$styles = params.styles,
3119 styles = _params$styles === void 0 ? {} : _params$styles;
3120 return domVariants({
3121 type: 'counter',
3122 content: content
3123 }, function () {
3124 callHooks('beforeDOMElementCreation', {
3125 content: content,
3126 params: params
3127 });
3128 return makeLayersCounterAbstract({
3129 content: content.toString(),
3130 title: title,
3131 extra: {
3132 attributes: attributes,
3133 styles: styles,
3134 classes: ["".concat(config.cssPrefix, "-layers-counter")].concat(_toConsumableArray(classes))
3135 }
3136 });
3137 });
3138 }
3139 };
3140 }
3141 };
3142
3143 var LayersText = {
3144 mixout: function mixout() {
3145 return {
3146 text: function text(content) {
3147 var params = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};
3148 var _params$transform = params.transform,
3149 transform = _params$transform === void 0 ? meaninglessTransform : _params$transform,
3150 _params$classes = params.classes,
3151 classes = _params$classes === void 0 ? [] : _params$classes,
3152 _params$attributes = params.attributes,
3153 attributes = _params$attributes === void 0 ? {} : _params$attributes,
3154 _params$styles = params.styles,
3155 styles = _params$styles === void 0 ? {} : _params$styles;
3156 return domVariants({
3157 type: 'text',
3158 content: content
3159 }, function () {
3160 callHooks('beforeDOMElementCreation', {
3161 content: content,
3162 params: params
3163 });
3164 return makeLayersTextAbstract({
3165 content: content,
3166 transform: _objectSpread2(_objectSpread2({}, meaninglessTransform), transform),
3167 extra: {
3168 attributes: attributes,
3169 styles: styles,
3170 classes: ["".concat(config.cssPrefix, "-layers-text")].concat(_toConsumableArray(classes))
3171 }
3172 });
3173 });
3174 }
3175 };
3176 },
3177 provides: function provides(providers$$1) {
3178 providers$$1.generateLayersText = function (node, nodeMeta) {
3179 var transform = nodeMeta.transform,
3180 extra = nodeMeta.extra;
3181 var width = null;
3182 var height = null;
3183 if (IS_IE) {
3184 var computedFontSize = parseInt(getComputedStyle(node).fontSize, 10);
3185 var boundingClientRect = node.getBoundingClientRect();
3186 width = boundingClientRect.width / computedFontSize;
3187 height = boundingClientRect.height / computedFontSize;
3188 }
3189 return Promise.resolve([node, makeLayersTextAbstract({
3190 content: node.innerHTML,
3191 width: width,
3192 height: height,
3193 transform: transform,
3194 extra: extra,
3195 watchable: true
3196 })]);
3197 };
3198 }
3199 };
3200
3201 var CLEAN_CONTENT_PATTERN = new RegExp("\"", 'ug');
3202 var SECONDARY_UNICODE_RANGE = [1105920, 1112319];
3203 var _FONT_FAMILY_WEIGHT_TO_PREFIX = _objectSpread2(_objectSpread2(_objectSpread2(_objectSpread2({}, {
3204 FontAwesome: {
3205 normal: 'fas',
3206 400: 'fas'
3207 }
3208 }), zl), wa), ct);
3209 var FONT_FAMILY_WEIGHT_TO_PREFIX = Object.keys(_FONT_FAMILY_WEIGHT_TO_PREFIX).reduce(function (acc, key) {
3210 acc[key.toLowerCase()] = _FONT_FAMILY_WEIGHT_TO_PREFIX[key];
3211 return acc;
3212 }, {});
3213 var FONT_FAMILY_WEIGHT_FALLBACK = Object.keys(FONT_FAMILY_WEIGHT_TO_PREFIX).reduce(function (acc, fontFamily) {
3214 var weights = FONT_FAMILY_WEIGHT_TO_PREFIX[fontFamily];
3215 acc[fontFamily] = weights[900] || _toConsumableArray(Object.entries(weights))[0][1];
3216 return acc;
3217 }, {});
3218
3219 // Return hex value of *first* character in `content`
3220 function hexValueFromContent(content) {
3221 var cleaned = content.replace(CLEAN_CONTENT_PATTERN, '');
3222 return toHex(_toConsumableArray(cleaned)[0] || '');
3223 }
3224
3225 // Check if it's a secondary Duotone layer, by checking if:
3226 // - Unicode value in `content` is repeated
3227 // - Unicode value in `content` is above 0x10000
3228 // - The "ss01" font feature is enabled on the `content`
3229 function isSecondaryLayer(styles) {
3230 var hasStylisticSet = styles.getPropertyValue('font-feature-settings').includes('ss01');
3231 var content = styles.getPropertyValue('content');
3232 var cleaned = content.replace(CLEAN_CONTENT_PATTERN, '');
3233 var codePoint = cleaned.codePointAt(0);
3234 var isPrependTen = codePoint >= SECONDARY_UNICODE_RANGE[0] && codePoint <= SECONDARY_UNICODE_RANGE[1];
3235 var isDoubled = cleaned.length === 2 ? cleaned[0] === cleaned[1] : false;
3236 return isPrependTen || isDoubled || hasStylisticSet;
3237 }
3238 function getPrefix(fontFamily, fontWeight) {
3239 var fontFamilySanitized = fontFamily.replace(/^['"]|['"]$/g, '').toLowerCase();
3240 var fontWeightInteger = parseInt(fontWeight);
3241 var fontWeightSanitized = isNaN(fontWeightInteger) ? 'normal' : fontWeightInteger;
3242 return (FONT_FAMILY_WEIGHT_TO_PREFIX[fontFamilySanitized] || {})[fontWeightSanitized] || FONT_FAMILY_WEIGHT_FALLBACK[fontFamilySanitized];
3243 }
3244 function replaceForPosition(node, position) {
3245 var pendingAttribute = "".concat(DATA_FA_PSEUDO_ELEMENT_PENDING).concat(position.replace(':', '-'));
3246 return new Promise(function (resolve, reject) {
3247 if (node.getAttribute(pendingAttribute) !== null) {
3248 // This node is already being processed
3249 return resolve();
3250 }
3251 var children = toArray(node.children);
3252 var alreadyProcessedPseudoElement = children.filter(function (c$$1) {
3253 return c$$1.getAttribute(DATA_FA_PSEUDO_ELEMENT) === position;
3254 })[0];
3255 var styles = WINDOW.getComputedStyle(node, position);
3256 var fontFamily = styles.getPropertyValue('font-family');
3257 var fontFamilyMatch = fontFamily.match(FONT_FAMILY_PATTERN);
3258 var fontWeight = styles.getPropertyValue('font-weight');
3259 var content = styles.getPropertyValue('content');
3260 if (alreadyProcessedPseudoElement && !fontFamilyMatch) {
3261 // If we've already processed it but the current computed style does not result in a font-family,
3262 // that probably means that a class name that was previously present to make the icon has been
3263 // removed. So we now should delete the icon.
3264 node.removeChild(alreadyProcessedPseudoElement);
3265 return resolve();
3266 } else if (fontFamilyMatch && content !== 'none' && content !== '') {
3267 var _content = styles.getPropertyValue('content');
3268 var prefix = getPrefix(fontFamily, fontWeight);
3269 var hexValue = hexValueFromContent(_content);
3270 var isV4 = fontFamilyMatch[0].startsWith('FontAwesome');
3271 var isSecondary = isSecondaryLayer(styles);
3272 var iconName = byUnicode(prefix, hexValue);
3273 var iconIdentifier = iconName;
3274 if (isV4) {
3275 var iconName4 = byOldUnicode(hexValue);
3276 if (iconName4.iconName && iconName4.prefix) {
3277 iconName = iconName4.iconName;
3278 prefix = iconName4.prefix;
3279 }
3280 }
3281
3282 // Only convert the pseudo element in this ::before/::after position into an icon if we haven't
3283 // already done so with the same prefix and iconName
3284 if (iconName && !isSecondary && (!alreadyProcessedPseudoElement || alreadyProcessedPseudoElement.getAttribute(DATA_PREFIX) !== prefix || alreadyProcessedPseudoElement.getAttribute(DATA_ICON) !== iconIdentifier)) {
3285 node.setAttribute(pendingAttribute, iconIdentifier);
3286 if (alreadyProcessedPseudoElement) {
3287 // Delete the old one, since we're replacing it with a new one
3288 node.removeChild(alreadyProcessedPseudoElement);
3289 }
3290 var meta = blankMeta();
3291 var extra = meta.extra;
3292 extra.attributes[DATA_FA_PSEUDO_ELEMENT] = position;
3293 findIcon(iconName, prefix).then(function (main) {
3294 var abstract = makeInlineSvgAbstract(_objectSpread2(_objectSpread2({}, meta), {}, {
3295 icons: {
3296 main: main,
3297 mask: emptyCanonicalIcon()
3298 },
3299 prefix: prefix,
3300 iconName: iconIdentifier,
3301 extra: extra,
3302 watchable: true
3303 }));
3304 var element = DOCUMENT.createElementNS('http://www.w3.org/2000/svg', 'svg');
3305 if (position === '::before') {
3306 node.insertBefore(element, node.firstChild);
3307 } else {
3308 node.appendChild(element);
3309 }
3310 element.outerHTML = abstract.map(function (a$$1) {
3311 return toHtml(a$$1);
3312 }).join('\n');
3313 node.removeAttribute(pendingAttribute);
3314 resolve();
3315 }).catch(reject);
3316 } else {
3317 resolve();
3318 }
3319 } else {
3320 resolve();
3321 }
3322 });
3323 }
3324 function replace(node) {
3325 return Promise.all([replaceForPosition(node, '::before'), replaceForPosition(node, '::after')]);
3326 }
3327 function processable(node) {
3328 return node.parentNode !== document.head && !~TAGNAMES_TO_SKIP_FOR_PSEUDOELEMENTS.indexOf(node.tagName.toUpperCase()) && !node.getAttribute(DATA_FA_PSEUDO_ELEMENT) && (!node.parentNode || node.parentNode.tagName !== 'svg');
3329 }
3330 var hasPseudoElement = function hasPseudoElement(selector) {
3331 return !!selector && PSEUDO_ELEMENTS.some(function (pseudoSelector) {
3332 return selector.includes(pseudoSelector);
3333 });
3334 };
3335
3336 // Return selectors from all available stylesheets that have
3337 // pseudo-elements defined.
3338 var parseCSSRuleForPseudos = function parseCSSRuleForPseudos(selectorText) {
3339 if (!selectorText) return [];
3340 var selectorSet = new Set();
3341 var selectors = selectorText.split(/,(?![^()]*\))/).map(function (s$$1) {
3342 return s$$1.trim();
3343 });
3344 selectors = selectors.flatMap(function (selector) {
3345 return selector.includes('(') ? selector : selector.split(',').map(function (s$$1) {
3346 return s$$1.trim();
3347 });
3348 });
3349 var _iterator = _createForOfIteratorHelper(selectors),
3350 _step;
3351 try {
3352 for (_iterator.s(); !(_step = _iterator.n()).done;) {
3353 var selector = _step.value;
3354 if (hasPseudoElement(selector)) {
3355 // Remove pseudo-elements from the selector
3356 var selectorWithoutPseudo = PSEUDO_ELEMENTS.reduce(function (acc, pseudoSelector) {
3357 return acc.replace(pseudoSelector, '');
3358 }, selector);
3359 if (selectorWithoutPseudo !== '' && selectorWithoutPseudo !== '*') {
3360 selectorSet.add(selectorWithoutPseudo);
3361 }
3362 }
3363 }
3364 } catch (err) {
3365 _iterator.e(err);
3366 } finally {
3367 _iterator.f();
3368 }
3369 return selectorSet;
3370 };
3371 function searchPseudoElements(root) {
3372 var useAsNodeList = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : false;
3373 if (!IS_DOM) return;
3374 var nodeList;
3375 if (useAsNodeList) {
3376 nodeList = root;
3377 } else if (config.searchPseudoElementsFullScan) {
3378 nodeList = root.querySelectorAll('*');
3379 } else {
3380 // Get elements that have pseudo elements defined in the CSS
3381 var selectorSet = new Set();
3382 var _iterator2 = _createForOfIteratorHelper(document.styleSheets),
3383 _step2;
3384 try {
3385 for (_iterator2.s(); !(_step2 = _iterator2.n()).done;) {
3386 var stylesheet = _step2.value;
3387 try {
3388 var _iterator3 = _createForOfIteratorHelper(stylesheet.cssRules),
3389 _step3;
3390 try {
3391 for (_iterator3.s(); !(_step3 = _iterator3.n()).done;) {
3392 var rule = _step3.value;
3393 var parsedSelectors = parseCSSRuleForPseudos(rule.selectorText);
3394 var _iterator4 = _createForOfIteratorHelper(parsedSelectors),
3395 _step4;
3396 try {
3397 for (_iterator4.s(); !(_step4 = _iterator4.n()).done;) {
3398 var selector = _step4.value;
3399 selectorSet.add(selector);
3400 }
3401 } catch (err) {
3402 _iterator4.e(err);
3403 } finally {
3404 _iterator4.f();
3405 }
3406 }
3407 } catch (err) {
3408 _iterator3.e(err);
3409 } finally {
3410 _iterator3.f();
3411 }
3412 } catch (e$$1) {
3413 if (config.searchPseudoElementsWarnings) {
3414 console.warn("Font Awesome: cannot parse stylesheet: ".concat(stylesheet.href, " (").concat(e$$1.message, ")\nIf it declares any Font Awesome CSS pseudo-elements, they will not be rendered as SVG icons. Add crossorigin=\"anonymous\" to the <link>, enable searchPseudoElementsFullScan for slower but more thorough DOM parsing, or suppress this warning by setting searchPseudoElementsWarnings to false."));
3415 }
3416 }
3417 }
3418 } catch (err) {
3419 _iterator2.e(err);
3420 } finally {
3421 _iterator2.f();
3422 }
3423 if (!selectorSet.size) return;
3424 var cleanSelectors = Array.from(selectorSet).join(', ');
3425 try {
3426 nodeList = root.querySelectorAll(cleanSelectors);
3427 } catch (_unused) {} // eslint-disable-line no-empty
3428 }
3429 return new Promise(function (resolve, reject) {
3430 var operations = toArray(nodeList).filter(processable).map(replace);
3431 var end = perf.begin('searchPseudoElements');
3432 disableObservation();
3433 Promise.all(operations).then(function () {
3434 end();
3435 enableObservation();
3436 resolve();
3437 }).catch(function () {
3438 end();
3439 enableObservation();
3440 reject();
3441 });
3442 });
3443 }
3444 var PseudoElements = {
3445 hooks: function hooks() {
3446 return {
3447 mutationObserverCallbacks: function mutationObserverCallbacks(accumulator) {
3448 accumulator.pseudoElementsCallback = searchPseudoElements;
3449 return accumulator;
3450 }
3451 };
3452 },
3453 provides: function provides(providers) {
3454 providers.pseudoElements2svg = function (params) {
3455 var _params$node = params.node,
3456 node = _params$node === void 0 ? DOCUMENT : _params$node;
3457 if (config.searchPseudoElements) {
3458 searchPseudoElements(node);
3459 }
3460 };
3461 }
3462 };
3463
3464 var _unwatched = false;
3465 var MutationObserver$1 = {
3466 mixout: function mixout() {
3467 return {
3468 dom: {
3469 unwatch: function unwatch() {
3470 disableObservation();
3471 _unwatched = true;
3472 }
3473 }
3474 };
3475 },
3476 hooks: function hooks() {
3477 return {
3478 bootstrap: function bootstrap() {
3479 observe(chainHooks('mutationObserverCallbacks', {}));
3480 },
3481 noAuto: function noAuto() {
3482 disconnect();
3483 },
3484 watch: function watch(params) {
3485 var observeMutationsRoot = params.observeMutationsRoot;
3486 if (_unwatched) {
3487 enableObservation();
3488 } else {
3489 observe(chainHooks('mutationObserverCallbacks', {
3490 observeMutationsRoot: observeMutationsRoot
3491 }));
3492 }
3493 }
3494 };
3495 }
3496 };
3497
3498 var parseTransformString = function parseTransformString(transformString) {
3499 var transform = {
3500 size: 16,
3501 x: 0,
3502 y: 0,
3503 flipX: false,
3504 flipY: false,
3505 rotate: 0
3506 };
3507 return transformString.toLowerCase().split(' ').reduce(function (acc, n) {
3508 var parts = n.toLowerCase().split('-');
3509 var first = parts[0];
3510 var rest = parts.slice(1).join('-');
3511 if (first && rest === 'h') {
3512 acc.flipX = true;
3513 return acc;
3514 }
3515 if (first && rest === 'v') {
3516 acc.flipY = true;
3517 return acc;
3518 }
3519 rest = parseFloat(rest);
3520 if (isNaN(rest)) {
3521 return acc;
3522 }
3523 switch (first) {
3524 case 'grow':
3525 acc.size = acc.size + rest;
3526 break;
3527 case 'shrink':
3528 acc.size = acc.size - rest;
3529 break;
3530 case 'left':
3531 acc.x = acc.x - rest;
3532 break;
3533 case 'right':
3534 acc.x = acc.x + rest;
3535 break;
3536 case 'up':
3537 acc.y = acc.y - rest;
3538 break;
3539 case 'down':
3540 acc.y = acc.y + rest;
3541 break;
3542 case 'rotate':
3543 acc.rotate = acc.rotate + rest;
3544 break;
3545 }
3546 return acc;
3547 }, transform);
3548 };
3549 var PowerTransforms = {
3550 mixout: function mixout() {
3551 return {
3552 parse: {
3553 transform: function transform(transformString) {
3554 return parseTransformString(transformString);
3555 }
3556 }
3557 };
3558 },
3559 hooks: function hooks() {
3560 return {
3561 parseNodeAttributes: function parseNodeAttributes(accumulator, node) {
3562 var transformString = node.getAttribute('data-fa-transform');
3563 if (transformString) {
3564 accumulator.transform = parseTransformString(transformString);
3565 }
3566 return accumulator;
3567 }
3568 };
3569 },
3570 provides: function provides(providers) {
3571 providers.generateAbstractTransformGrouping = function (_ref) {
3572 var main = _ref.main,
3573 transform = _ref.transform,
3574 containerWidth = _ref.containerWidth,
3575 iconWidth = _ref.iconWidth;
3576 var outer = {
3577 transform: "translate(".concat(containerWidth / 2, " 256)")
3578 };
3579 var innerTranslate = "translate(".concat(transform.x * 32, ", ").concat(transform.y * 32, ") ");
3580 var innerScale = "scale(".concat(transform.size / 16 * (transform.flipX ? -1 : 1), ", ").concat(transform.size / 16 * (transform.flipY ? -1 : 1), ") ");
3581 var innerRotate = "rotate(".concat(transform.rotate, " 0 0)");
3582 var inner = {
3583 transform: "".concat(innerTranslate, " ").concat(innerScale, " ").concat(innerRotate)
3584 };
3585 var path = {
3586 transform: "translate(".concat(iconWidth / 2 * -1, " -256)")
3587 };
3588 var operations = {
3589 outer: outer,
3590 inner: inner,
3591 path: path
3592 };
3593 return {
3594 tag: 'g',
3595 attributes: _objectSpread2({}, operations.outer),
3596 children: [{
3597 tag: 'g',
3598 attributes: _objectSpread2({}, operations.inner),
3599 children: [{
3600 tag: main.icon.tag,
3601 children: main.icon.children,
3602 attributes: _objectSpread2(_objectSpread2({}, main.icon.attributes), operations.path)
3603 }]
3604 }]
3605 };
3606 };
3607 }
3608 };
3609
3610 var ALL_SPACE = {
3611 x: 0,
3612 y: 0,
3613 width: '100%',
3614 height: '100%'
3615 };
3616 function fillBlack(abstract) {
3617 var force = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : true;
3618 if (abstract.attributes && (abstract.attributes.fill || force)) {
3619 abstract.attributes.fill = 'black';
3620 }
3621 return abstract;
3622 }
3623 function deGroup(abstract) {
3624 if (abstract.tag === 'g') {
3625 return abstract.children;
3626 } else {
3627 return [abstract];
3628 }
3629 }
3630 var Masks = {
3631 hooks: function hooks() {
3632 return {
3633 parseNodeAttributes: function parseNodeAttributes(accumulator, node) {
3634 var maskData = node.getAttribute('data-fa-mask');
3635 var mask = !maskData ? emptyCanonicalIcon() : getCanonicalIcon(maskData.split(' ').map(function (i) {
3636 return i.trim();
3637 }));
3638 if (!mask.prefix) {
3639 mask.prefix = getDefaultUsablePrefix();
3640 }
3641 accumulator.mask = mask;
3642 accumulator.maskId = node.getAttribute('data-fa-mask-id');
3643 return accumulator;
3644 }
3645 };
3646 },
3647 provides: function provides(providers) {
3648 providers.generateAbstractMask = function (_ref) {
3649 var children = _ref.children,
3650 attributes = _ref.attributes,
3651 main = _ref.main,
3652 mask = _ref.mask,
3653 explicitMaskId = _ref.maskId,
3654 transform = _ref.transform;
3655 var mainWidth = main.width,
3656 mainPath = main.icon;
3657 var maskWidth = mask.width,
3658 maskPath = mask.icon;
3659 var trans = transformForSvg({
3660 transform: transform,
3661 containerWidth: maskWidth,
3662 iconWidth: mainWidth
3663 });
3664 var maskRect = {
3665 tag: 'rect',
3666 attributes: _objectSpread2(_objectSpread2({}, ALL_SPACE), {}, {
3667 fill: 'white'
3668 })
3669 };
3670 var maskInnerGroupChildrenMixin = mainPath.children ? {
3671 children: mainPath.children.map(fillBlack)
3672 } : {};
3673 var maskInnerGroup = {
3674 tag: 'g',
3675 attributes: _objectSpread2({}, trans.inner),
3676 children: [fillBlack(_objectSpread2({
3677 tag: mainPath.tag,
3678 attributes: _objectSpread2(_objectSpread2({}, mainPath.attributes), trans.path)
3679 }, maskInnerGroupChildrenMixin))]
3680 };
3681 var maskOuterGroup = {
3682 tag: 'g',
3683 attributes: _objectSpread2({}, trans.outer),
3684 children: [maskInnerGroup]
3685 };
3686 var maskId = "mask-".concat(explicitMaskId || nextUniqueId());
3687 var clipId = "clip-".concat(explicitMaskId || nextUniqueId());
3688 var maskTag = {
3689 tag: 'mask',
3690 attributes: _objectSpread2(_objectSpread2({}, ALL_SPACE), {}, {
3691 id: maskId,
3692 maskUnits: 'userSpaceOnUse',
3693 maskContentUnits: 'userSpaceOnUse'
3694 }),
3695 children: [maskRect, maskOuterGroup]
3696 };
3697 var defs = {
3698 tag: 'defs',
3699 children: [{
3700 tag: 'clipPath',
3701 attributes: {
3702 id: clipId
3703 },
3704 children: deGroup(maskPath)
3705 }, maskTag]
3706 };
3707 children.push(defs, {
3708 tag: 'rect',
3709 attributes: _objectSpread2({
3710 'fill': 'currentColor',
3711 'clip-path': "url(#".concat(clipId, ")"),
3712 'mask': "url(#".concat(maskId, ")")
3713 }, ALL_SPACE)
3714 });
3715 return {
3716 children: children,
3717 attributes: attributes
3718 };
3719 };
3720 }
3721 };
3722
3723 var MissingIconIndicator = {
3724 provides: function provides(providers) {
3725 var reduceMotion = false;
3726 if (WINDOW.matchMedia) {
3727 reduceMotion = WINDOW.matchMedia('(prefers-reduced-motion: reduce)').matches;
3728 }
3729 providers.missingIconAbstract = function () {
3730 var gChildren = [];
3731 var FILL = {
3732 fill: 'currentColor'
3733 };
3734 var ANIMATION_BASE = {
3735 attributeType: 'XML',
3736 repeatCount: 'indefinite',
3737 dur: '2s'
3738 };
3739
3740 // Ring
3741 gChildren.push({
3742 tag: 'path',
3743 attributes: _objectSpread2(_objectSpread2({}, FILL), {}, {
3744 d: 'M156.5,447.7l-12.6,29.5c-18.7-9.5-35.9-21.2-51.5-34.9l22.7-22.7C127.6,430.5,141.5,440,156.5,447.7z M40.6,272H8.5 c1.4,21.2,5.4,41.7,11.7,61.1L50,321.2C45.1,305.5,41.8,289,40.6,272z M40.6,240c1.4-18.8,5.2-37,11.1-54.1l-29.5-12.6 C14.7,194.3,10,216.7,8.5,240H40.6z M64.3,156.5c7.8-14.9,17.2-28.8,28.1-41.5L69.7,92.3c-13.7,15.6-25.5,32.8-34.9,51.5 L64.3,156.5z M397,419.6c-13.9,12-29.4,22.3-46.1,30.4l11.9,29.8c20.7-9.9,39.8-22.6,56.9-37.6L397,419.6z M115,92.4 c13.9-12,29.4-22.3,46.1-30.4l-11.9-29.8c-20.7,9.9-39.8,22.6-56.8,37.6L115,92.4z M447.7,355.5c-7.8,14.9-17.2,28.8-28.1,41.5 l22.7,22.7c13.7-15.6,25.5-32.9,34.9-51.5L447.7,355.5z M471.4,272c-1.4,18.8-5.2,37-11.1,54.1l29.5,12.6 c7.5-21.1,12.2-43.5,13.6-66.8H471.4z M321.2,462c-15.7,5-32.2,8.2-49.2,9.4v32.1c21.2-1.4,41.7-5.4,61.1-11.7L321.2,462z M240,471.4c-18.8-1.4-37-5.2-54.1-11.1l-12.6,29.5c21.1,7.5,43.5,12.2,66.8,13.6V471.4z M462,190.8c5,15.7,8.2,32.2,9.4,49.2h32.1 c-1.4-21.2-5.4-41.7-11.7-61.1L462,190.8z M92.4,397c-12-13.9-22.3-29.4-30.4-46.1l-29.8,11.9c9.9,20.7,22.6,39.8,37.6,56.9 L92.4,397z M272,40.6c18.8,1.4,36.9,5.2,54.1,11.1l12.6-29.5C317.7,14.7,295.3,10,272,8.5V40.6z M190.8,50 c15.7-5,32.2-8.2,49.2-9.4V8.5c-21.2,1.4-41.7,5.4-61.1,11.7L190.8,50z M442.3,92.3L419.6,115c12,13.9,22.3,29.4,30.5,46.1 l29.8-11.9C470,128.5,457.3,109.4,442.3,92.3z M397,92.4l22.7-22.7c-15.6-13.7-32.8-25.5-51.5-34.9l-12.6,29.5 C370.4,72.1,384.4,81.5,397,92.4z'
3745 })
3746 });
3747 var OPACITY_ANIMATE = _objectSpread2(_objectSpread2({}, ANIMATION_BASE), {}, {
3748 attributeName: 'opacity'
3749 });
3750 var dot = {
3751 tag: 'circle',
3752 attributes: _objectSpread2(_objectSpread2({}, FILL), {}, {
3753 cx: '256',
3754 cy: '364',
3755 r: '28'
3756 }),
3757 children: []
3758 };
3759 if (!reduceMotion) {
3760 dot.children.push({
3761 tag: 'animate',
3762 attributes: _objectSpread2(_objectSpread2({}, ANIMATION_BASE), {}, {
3763 attributeName: 'r',
3764 values: '28;14;28;28;14;28;'
3765 })
3766 }, {
3767 tag: 'animate',
3768 attributes: _objectSpread2(_objectSpread2({}, OPACITY_ANIMATE), {}, {
3769 values: '1;0;1;1;0;1;'
3770 })
3771 });
3772 }
3773 gChildren.push(dot);
3774 gChildren.push({
3775 tag: 'path',
3776 attributes: _objectSpread2(_objectSpread2({}, FILL), {}, {
3777 opacity: '1',
3778 d: 'M263.7,312h-16c-6.6,0-12-5.4-12-12c0-71,77.4-63.9,77.4-107.8c0-20-17.8-40.2-57.4-40.2c-29.1,0-44.3,9.6-59.2,28.7 c-3.9,5-11.1,6-16.2,2.4l-13.1-9.2c-5.6-3.9-6.9-11.8-2.6-17.2c21.2-27.2,46.4-44.7,91.2-44.7c52.3,0,97.4,29.8,97.4,80.2 c0,67.6-77.4,63.5-77.4,107.8C275.7,306.6,270.3,312,263.7,312z'
3779 }),
3780 children: reduceMotion ? [] : [{
3781 tag: 'animate',
3782 attributes: _objectSpread2(_objectSpread2({}, OPACITY_ANIMATE), {}, {
3783 values: '1;0;0;0;0;1;'
3784 })
3785 }]
3786 });
3787 if (!reduceMotion) {
3788 // Exclamation
3789 gChildren.push({
3790 tag: 'path',
3791 attributes: _objectSpread2(_objectSpread2({}, FILL), {}, {
3792 opacity: '0',
3793 d: 'M232.5,134.5l7,168c0.3,6.4,5.6,11.5,12,11.5h9c6.4,0,11.7-5.1,12-11.5l7-168c0.3-6.8-5.2-12.5-12-12.5h-23 C237.7,122,232.2,127.7,232.5,134.5z'
3794 }),
3795 children: [{
3796 tag: 'animate',
3797 attributes: _objectSpread2(_objectSpread2({}, OPACITY_ANIMATE), {}, {
3798 values: '0;0;1;1;0;0;'
3799 })
3800 }]
3801 });
3802 }
3803 return {
3804 tag: 'g',
3805 attributes: {
3806 class: 'missing'
3807 },
3808 children: gChildren
3809 };
3810 };
3811 }
3812 };
3813
3814 var SvgSymbols = {
3815 hooks: function hooks() {
3816 return {
3817 parseNodeAttributes: function parseNodeAttributes(accumulator, node) {
3818 var symbolData = node.getAttribute('data-fa-symbol');
3819 var symbol = symbolData === null ? false : symbolData === '' ? true : symbolData;
3820 accumulator['symbol'] = symbol;
3821 return accumulator;
3822 }
3823 };
3824 }
3825 };
3826
3827 var plugins = [InjectCSS, ReplaceElements, Layers, LayersCounter, LayersText, PseudoElements, MutationObserver$1, PowerTransforms, Masks, MissingIconIndicator, SvgSymbols];
3828
3829 registerPlugins(plugins, {
3830 mixoutsTo: api
3831 });
3832 var noAuto$1 = api.noAuto;
3833 var config$1 = api.config;
3834 var library$1 = api.library;
3835 var dom$1 = api.dom;
3836 var parse$1 = api.parse;
3837 var findIconDefinition$1 = api.findIconDefinition;
3838 var toHtml$1 = api.toHtml;
3839 var icon = api.icon;
3840 var layer = api.layer;
3841 var text = api.text;
3842 var counter = api.counter;
3843
3844 export { noAuto$1 as noAuto, config$1 as config, library$1 as library, dom$1 as dom, parse$1 as parse, findIconDefinition$1 as findIconDefinition, toHtml$1 as toHtml, icon, layer, text, counter, api };