ui_bibz 4.0.0.beta13 → 4.0.0.beta14

Sign up to get free protection for your applications and to get access to all the features.
Files changed (35) hide show
  1. checksums.yaml +4 -4
  2. data/Gemfile.lock +76 -76
  3. data/app/assets/stylesheets/ui_bibz.sass +1 -0
  4. data/lib/ui_bibz/infos.rb +1 -1
  5. data/vendor/assets/fonts/fontawesome/fa-brands-400.ttf +0 -0
  6. data/vendor/assets/fonts/fontawesome/fa-brands-400.woff2 +0 -0
  7. data/vendor/assets/fonts/fontawesome/fa-regular-400.ttf +0 -0
  8. data/vendor/assets/fonts/fontawesome/fa-regular-400.woff2 +0 -0
  9. data/vendor/assets/fonts/fontawesome/fa-solid-900.ttf +0 -0
  10. data/vendor/assets/fonts/fontawesome/fa-solid-900.woff2 +0 -0
  11. data/vendor/assets/fonts/fontawesome/fa-v4compatibility.ttf +0 -0
  12. data/vendor/assets/fonts/fontawesome/fa-v4compatibility.woff2 +0 -0
  13. data/vendor/assets/javascripts/fontawesome/all.js +3246 -3236
  14. data/vendor/assets/javascripts/fontawesome/all.min.js +2 -2
  15. data/vendor/assets/javascripts/fontawesome/brands.js +217 -208
  16. data/vendor/assets/javascripts/fontawesome/brands.min.js +2 -2
  17. data/vendor/assets/javascripts/fontawesome/conflict-detection.js +327 -347
  18. data/vendor/assets/javascripts/fontawesome/conflict-detection.min.js +2 -2
  19. data/vendor/assets/javascripts/fontawesome/fontawesome.js +1291 -1307
  20. data/vendor/assets/javascripts/fontawesome/fontawesome.min.js +2 -2
  21. data/vendor/assets/javascripts/fontawesome/regular.js +338 -331
  22. data/vendor/assets/javascripts/fontawesome/regular.min.js +2 -2
  23. data/vendor/assets/javascripts/fontawesome/solid.js +1403 -1393
  24. data/vendor/assets/javascripts/fontawesome/solid.min.js +2 -2
  25. data/vendor/assets/javascripts/fontawesome/v4-shims.js +206 -178
  26. data/vendor/assets/javascripts/fontawesome/v4-shims.min.js +2 -2
  27. data/vendor/assets/stylesheets/fontawesome/_core.scss +6 -6
  28. data/vendor/assets/stylesheets/fontawesome/_list.scss +1 -1
  29. data/vendor/assets/stylesheets/fontawesome/_variables.scss +10 -0
  30. data/vendor/assets/stylesheets/fontawesome/brands.scss +1 -1
  31. data/vendor/assets/stylesheets/fontawesome/fontawesome.scss +14 -14
  32. data/vendor/assets/stylesheets/fontawesome/regular.scss +2 -1
  33. data/vendor/assets/stylesheets/fontawesome/solid.scss +2 -1
  34. data/vendor/assets/stylesheets/fontawesome/v4-shims.scss +1 -1
  35. metadata +2 -2
@@ -1,243 +1,17 @@
1
1
  /*!
2
- * Font Awesome Free 6.5.2 by @fontawesome - https://fontawesome.com
2
+ * Font Awesome Free 6.6.0 by @fontawesome - https://fontawesome.com
3
3
  * License - https://fontawesome.com/license/free (Icons: CC BY 4.0, Fonts: SIL OFL 1.1, Code: MIT License)
4
4
  * Copyright 2024 Fonticons, Inc.
5
5
  */
6
6
  (function () {
7
7
  'use strict';
8
8
 
9
- function ownKeys(object, enumerableOnly) {
10
- var keys = Object.keys(object);
9
+ const noop = () => {};
11
10
 
12
- if (Object.getOwnPropertySymbols) {
13
- var symbols = Object.getOwnPropertySymbols(object);
14
- enumerableOnly && (symbols = symbols.filter(function (sym) {
15
- return Object.getOwnPropertyDescriptor(object, sym).enumerable;
16
- })), keys.push.apply(keys, symbols);
17
- }
18
-
19
- return keys;
20
- }
21
-
22
- function _objectSpread2(target) {
23
- for (var i = 1; i < arguments.length; i++) {
24
- var source = null != arguments[i] ? arguments[i] : {};
25
- i % 2 ? ownKeys(Object(source), !0).forEach(function (key) {
26
- _defineProperty(target, key, source[key]);
27
- }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys(Object(source)).forEach(function (key) {
28
- Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key));
29
- });
30
- }
31
-
32
- return target;
33
- }
34
-
35
- function _typeof(obj) {
36
- "@babel/helpers - typeof";
37
-
38
- return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (obj) {
39
- return typeof obj;
40
- } : function (obj) {
41
- return obj && "function" == typeof Symbol && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj;
42
- }, _typeof(obj);
43
- }
44
-
45
- function _wrapRegExp() {
46
- _wrapRegExp = function (re, groups) {
47
- return new BabelRegExp(re, void 0, groups);
48
- };
49
-
50
- var _super = RegExp.prototype,
51
- _groups = new WeakMap();
52
-
53
- function BabelRegExp(re, flags, groups) {
54
- var _this = new RegExp(re, flags);
55
-
56
- return _groups.set(_this, groups || _groups.get(re)), _setPrototypeOf(_this, BabelRegExp.prototype);
57
- }
58
-
59
- function buildGroups(result, re) {
60
- var g = _groups.get(re);
61
-
62
- return Object.keys(g).reduce(function (groups, name) {
63
- return groups[name] = result[g[name]], groups;
64
- }, Object.create(null));
65
- }
66
-
67
- return _inherits(BabelRegExp, RegExp), BabelRegExp.prototype.exec = function (str) {
68
- var result = _super.exec.call(this, str);
69
-
70
- return result && (result.groups = buildGroups(result, this)), result;
71
- }, BabelRegExp.prototype[Symbol.replace] = function (str, substitution) {
72
- if ("string" == typeof substitution) {
73
- var groups = _groups.get(this);
74
-
75
- return _super[Symbol.replace].call(this, str, substitution.replace(/\$<([^>]+)>/g, function (_, name) {
76
- return "$" + groups[name];
77
- }));
78
- }
79
-
80
- if ("function" == typeof substitution) {
81
- var _this = this;
82
-
83
- return _super[Symbol.replace].call(this, str, function () {
84
- var args = arguments;
85
- return "object" != typeof args[args.length - 1] && (args = [].slice.call(args)).push(buildGroups(args, _this)), substitution.apply(this, args);
86
- });
87
- }
88
-
89
- return _super[Symbol.replace].call(this, str, substitution);
90
- }, _wrapRegExp.apply(this, arguments);
91
- }
92
-
93
- function _classCallCheck(instance, Constructor) {
94
- if (!(instance instanceof Constructor)) {
95
- throw new TypeError("Cannot call a class as a function");
96
- }
97
- }
98
-
99
- function _defineProperties(target, props) {
100
- for (var i = 0; i < props.length; i++) {
101
- var descriptor = props[i];
102
- descriptor.enumerable = descriptor.enumerable || false;
103
- descriptor.configurable = true;
104
- if ("value" in descriptor) descriptor.writable = true;
105
- Object.defineProperty(target, descriptor.key, descriptor);
106
- }
107
- }
108
-
109
- function _createClass(Constructor, protoProps, staticProps) {
110
- if (protoProps) _defineProperties(Constructor.prototype, protoProps);
111
- if (staticProps) _defineProperties(Constructor, staticProps);
112
- Object.defineProperty(Constructor, "prototype", {
113
- writable: false
114
- });
115
- return Constructor;
116
- }
117
-
118
- function _defineProperty(obj, key, value) {
119
- if (key in obj) {
120
- Object.defineProperty(obj, key, {
121
- value: value,
122
- enumerable: true,
123
- configurable: true,
124
- writable: true
125
- });
126
- } else {
127
- obj[key] = value;
128
- }
129
-
130
- return obj;
131
- }
132
-
133
- function _inherits(subClass, superClass) {
134
- if (typeof superClass !== "function" && superClass !== null) {
135
- throw new TypeError("Super expression must either be null or a function");
136
- }
137
-
138
- subClass.prototype = Object.create(superClass && superClass.prototype, {
139
- constructor: {
140
- value: subClass,
141
- writable: true,
142
- configurable: true
143
- }
144
- });
145
- Object.defineProperty(subClass, "prototype", {
146
- writable: false
147
- });
148
- if (superClass) _setPrototypeOf(subClass, superClass);
149
- }
150
-
151
- function _setPrototypeOf(o, p) {
152
- _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) {
153
- o.__proto__ = p;
154
- return o;
155
- };
156
-
157
- return _setPrototypeOf(o, p);
158
- }
159
-
160
- function _slicedToArray(arr, i) {
161
- return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || _nonIterableRest();
162
- }
163
-
164
- function _toConsumableArray(arr) {
165
- return _arrayWithoutHoles(arr) || _iterableToArray(arr) || _unsupportedIterableToArray(arr) || _nonIterableSpread();
166
- }
167
-
168
- function _arrayWithoutHoles(arr) {
169
- if (Array.isArray(arr)) return _arrayLikeToArray(arr);
170
- }
171
-
172
- function _arrayWithHoles(arr) {
173
- if (Array.isArray(arr)) return arr;
174
- }
175
-
176
- function _iterableToArray(iter) {
177
- if (typeof Symbol !== "undefined" && iter[Symbol.iterator] != null || iter["@@iterator"] != null) return Array.from(iter);
178
- }
179
-
180
- function _iterableToArrayLimit(arr, i) {
181
- var _i = arr == null ? null : typeof Symbol !== "undefined" && arr[Symbol.iterator] || arr["@@iterator"];
182
-
183
- if (_i == null) return;
184
- var _arr = [];
185
- var _n = true;
186
- var _d = false;
187
-
188
- var _s, _e;
189
-
190
- try {
191
- for (_i = _i.call(arr); !(_n = (_s = _i.next()).done); _n = true) {
192
- _arr.push(_s.value);
193
-
194
- if (i && _arr.length === i) break;
195
- }
196
- } catch (err) {
197
- _d = true;
198
- _e = err;
199
- } finally {
200
- try {
201
- if (!_n && _i["return"] != null) _i["return"]();
202
- } finally {
203
- if (_d) throw _e;
204
- }
205
- }
206
-
207
- return _arr;
208
- }
209
-
210
- function _unsupportedIterableToArray(o, minLen) {
211
- if (!o) return;
212
- if (typeof o === "string") return _arrayLikeToArray(o, minLen);
213
- var n = Object.prototype.toString.call(o).slice(8, -1);
214
- if (n === "Object" && o.constructor) n = o.constructor.name;
215
- if (n === "Map" || n === "Set") return Array.from(o);
216
- if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen);
217
- }
218
-
219
- function _arrayLikeToArray(arr, len) {
220
- if (len == null || len > arr.length) len = arr.length;
221
-
222
- for (var i = 0, arr2 = new Array(len); i < len; i++) arr2[i] = arr[i];
223
-
224
- return arr2;
225
- }
226
-
227
- function _nonIterableSpread() {
228
- throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
229
- }
230
-
231
- function _nonIterableRest() {
232
- throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
233
- }
234
-
235
- var noop = function noop() {};
236
-
237
- var _WINDOW = {};
238
- var _DOCUMENT = {};
239
- var _MUTATION_OBSERVER = null;
240
- var _PERFORMANCE = {
11
+ let _WINDOW = {};
12
+ let _DOCUMENT = {};
13
+ let _MUTATION_OBSERVER = null;
14
+ let _PERFORMANCE = {
241
15
  mark: noop,
242
16
  measure: noop
243
17
  };
@@ -249,156 +23,316 @@
249
23
  if (typeof performance !== 'undefined') _PERFORMANCE = performance;
250
24
  } catch (e) {}
251
25
 
252
- var _ref = _WINDOW.navigator || {},
253
- _ref$userAgent = _ref.userAgent,
254
- userAgent = _ref$userAgent === void 0 ? '' : _ref$userAgent;
255
- var WINDOW = _WINDOW;
256
- var DOCUMENT = _DOCUMENT;
257
- var MUTATION_OBSERVER = _MUTATION_OBSERVER;
258
- var PERFORMANCE = _PERFORMANCE;
259
- var IS_BROWSER = !!WINDOW.document;
260
- var IS_DOM = !!DOCUMENT.documentElement && !!DOCUMENT.head && typeof DOCUMENT.addEventListener === 'function' && typeof DOCUMENT.createElement === 'function';
261
- var IS_IE = ~userAgent.indexOf('MSIE') || ~userAgent.indexOf('Trident/');
262
-
263
- var _familyProxy, _familyProxy2, _familyProxy3, _familyProxy4, _familyProxy5;
264
-
265
- var NAMESPACE_IDENTIFIER = '___FONT_AWESOME___';
266
- var UNITS_IN_GRID = 16;
267
- var DEFAULT_CSS_PREFIX = 'fa';
268
- var DEFAULT_REPLACEMENT_CLASS = 'svg-inline--fa';
269
- var DATA_FA_I2SVG = 'data-fa-i2svg';
270
- var DATA_FA_PSEUDO_ELEMENT = 'data-fa-pseudo-element';
271
- var DATA_FA_PSEUDO_ELEMENT_PENDING = 'data-fa-pseudo-element-pending';
272
- var DATA_PREFIX = 'data-prefix';
273
- var DATA_ICON = 'data-icon';
274
- var HTML_CLASS_I2SVG_BASE_CLASS = 'fontawesome-i2svg';
275
- var MUTATION_APPROACH_ASYNC = 'async';
276
- var TAGNAMES_TO_SKIP_FOR_PSEUDOELEMENTS = ['HTML', 'HEAD', 'STYLE', 'SCRIPT'];
277
- var PRODUCTION = function () {
26
+ const {
27
+ userAgent = ''
28
+ } = _WINDOW.navigator || {};
29
+ const WINDOW = _WINDOW;
30
+ const DOCUMENT = _DOCUMENT;
31
+ const MUTATION_OBSERVER = _MUTATION_OBSERVER;
32
+ const PERFORMANCE = _PERFORMANCE;
33
+ const IS_BROWSER = !!WINDOW.document;
34
+ const IS_DOM = !!DOCUMENT.documentElement && !!DOCUMENT.head && typeof DOCUMENT.addEventListener === 'function' && typeof DOCUMENT.createElement === 'function';
35
+ const IS_IE = ~userAgent.indexOf('MSIE') || ~userAgent.indexOf('Trident/');
36
+
37
+ var a = "classic",
38
+ t = "duotone",
39
+ r = "sharp",
40
+ o = "sharp-duotone",
41
+ c = [a, t, r, o];
42
+
43
+ var et$1 = {
44
+ classic: {
45
+ 900: "fas",
46
+ 400: "far",
47
+ normal: "far",
48
+ 300: "fal",
49
+ 100: "fat"
50
+ },
51
+ sharp: {
52
+ 900: "fass",
53
+ 400: "fasr",
54
+ 300: "fasl",
55
+ 100: "fast"
56
+ },
57
+ "sharp-duotone": {
58
+ 900: "fasds"
59
+ }
60
+ };
61
+ var bt = {
62
+ kit: {
63
+ fak: "kit",
64
+ "fa-kit": "kit"
65
+ },
66
+ "kit-duotone": {
67
+ fakd: "kit-duotone",
68
+ "fa-kit-duotone": "kit-duotone"
69
+ }
70
+ },
71
+ Ct = ["kit"];
72
+ var Dt = /fa(s|r|l|t|d|b|k|kd|ss|sr|sl|st|sds)?[\-\ ]/,
73
+ Kt = /Font ?Awesome ?([56 ]*)(Solid|Regular|Light|Thin|Duotone|Brands|Free|Pro|Sharp Duotone|Sharp|Kit)?.*/i;
74
+ var ao = {
75
+ "Font Awesome 5 Free": {
76
+ 900: "fas",
77
+ 400: "far"
78
+ },
79
+ "Font Awesome 5 Pro": {
80
+ 900: "fas",
81
+ 400: "far",
82
+ normal: "far",
83
+ 300: "fal"
84
+ },
85
+ "Font Awesome 5 Brands": {
86
+ 400: "fab",
87
+ normal: "fab"
88
+ },
89
+ "Font Awesome 5 Duotone": {
90
+ 900: "fad"
91
+ }
92
+ };
93
+ var eo = {
94
+ "Font Awesome 6 Free": {
95
+ 900: "fas",
96
+ 400: "far"
97
+ },
98
+ "Font Awesome 6 Pro": {
99
+ 900: "fas",
100
+ 400: "far",
101
+ normal: "far",
102
+ 300: "fal",
103
+ 100: "fat"
104
+ },
105
+ "Font Awesome 6 Brands": {
106
+ 400: "fab",
107
+ normal: "fab"
108
+ },
109
+ "Font Awesome 6 Duotone": {
110
+ 900: "fad"
111
+ },
112
+ "Font Awesome 6 Sharp": {
113
+ 900: "fass",
114
+ 400: "fasr",
115
+ normal: "fasr",
116
+ 300: "fasl",
117
+ 100: "fast"
118
+ },
119
+ "Font Awesome 6 Sharp Duotone": {
120
+ 900: "fasds"
121
+ }
122
+ },
123
+ lo = {
124
+ classic: {
125
+ "fa-brands": "fab",
126
+ "fa-duotone": "fad",
127
+ "fa-light": "fal",
128
+ "fa-regular": "far",
129
+ "fa-solid": "fas",
130
+ "fa-thin": "fat"
131
+ },
132
+ sharp: {
133
+ "fa-solid": "fass",
134
+ "fa-regular": "fasr",
135
+ "fa-light": "fasl",
136
+ "fa-thin": "fast"
137
+ },
138
+ "sharp-duotone": {
139
+ "fa-solid": "fasds"
140
+ }
141
+ },
142
+ y = {
143
+ classic: ["fas", "far", "fal", "fat"],
144
+ sharp: ["fass", "fasr", "fasl", "fast"],
145
+ "sharp-duotone": ["fasds"]
146
+ },
147
+ no = {
148
+ classic: {
149
+ fab: "fa-brands",
150
+ fad: "fa-duotone",
151
+ fal: "fa-light",
152
+ far: "fa-regular",
153
+ fas: "fa-solid",
154
+ fat: "fa-thin"
155
+ },
156
+ sharp: {
157
+ fass: "fa-solid",
158
+ fasr: "fa-regular",
159
+ fasl: "fa-light",
160
+ fast: "fa-thin"
161
+ },
162
+ "sharp-duotone": {
163
+ fasds: "fa-solid"
164
+ }
165
+ },
166
+ fo = {
167
+ classic: {
168
+ solid: "fas",
169
+ regular: "far",
170
+ light: "fal",
171
+ thin: "fat",
172
+ duotone: "fad",
173
+ brands: "fab"
174
+ },
175
+ sharp: {
176
+ solid: "fass",
177
+ regular: "fasr",
178
+ light: "fasl",
179
+ thin: "fast"
180
+ },
181
+ "sharp-duotone": {
182
+ solid: "fasds"
183
+ }
184
+ },
185
+ ho = {
186
+ classic: {
187
+ fa: "solid",
188
+ fas: "solid",
189
+ "fa-solid": "solid",
190
+ far: "regular",
191
+ "fa-regular": "regular",
192
+ fal: "light",
193
+ "fa-light": "light",
194
+ fat: "thin",
195
+ "fa-thin": "thin",
196
+ fad: "duotone",
197
+ "fa-duotone": "duotone",
198
+ fab: "brands",
199
+ "fa-brands": "brands"
200
+ },
201
+ sharp: {
202
+ fa: "solid",
203
+ fass: "solid",
204
+ "fa-solid": "solid",
205
+ fasr: "regular",
206
+ "fa-regular": "regular",
207
+ fasl: "light",
208
+ "fa-light": "light",
209
+ fast: "thin",
210
+ "fa-thin": "thin"
211
+ },
212
+ "sharp-duotone": {
213
+ fa: "solid",
214
+ fasds: "solid",
215
+ "fa-solid": "solid"
216
+ }
217
+ },
218
+ x$1 = ["solid", "regular", "light", "thin", "duotone", "brands"],
219
+ u$1 = [1, 2, 3, 4, 5, 6, 7, 8, 9, 10],
220
+ m$1 = u$1.concat([11, 12, 13, 14, 15, 16, 17, 18, 19, 20]),
221
+ t$1 = {
222
+ GROUP: "duotone-group",
223
+ SWAP_OPACITY: "swap-opacity",
224
+ PRIMARY: "primary",
225
+ SECONDARY: "secondary"
226
+ },
227
+ yo = [...Object.keys(y), ...x$1, "2xs", "xs", "sm", "lg", "xl", "2xl", "beat", "border", "fade", "beat-fade", "bounce", "flip-both", "flip-horizontal", "flip-vertical", "flip", "fw", "inverse", "layers-counter", "layers-text", "layers", "li", "pull-left", "pull-right", "pulse", "rotate-180", "rotate-270", "rotate-90", "rotate-by", "shake", "spin-pulse", "spin-reverse", "spin", "stack-1x", "stack-2x", "stack", "ul", t$1.GROUP, t$1.SWAP_OPACITY, t$1.PRIMARY, t$1.SECONDARY].concat(u$1.map(o => "".concat(o, "x"))).concat(m$1.map(o => "w-".concat(o)));
228
+ var mo = {
229
+ "Font Awesome Kit": {
230
+ 400: "fak",
231
+ normal: "fak"
232
+ },
233
+ "Font Awesome Kit Duotone": {
234
+ 400: "fakd",
235
+ normal: "fakd"
236
+ }
237
+ },
238
+ Io = {
239
+ kit: {
240
+ "fa-kit": "fak"
241
+ },
242
+ "kit-duotone": {
243
+ "fa-kit-duotone": "fakd"
244
+ }
245
+ },
246
+ Fo = {
247
+ kit: {
248
+ fak: "fa-kit"
249
+ },
250
+ "kit-duotone": {
251
+ fakd: "fa-kit-duotone"
252
+ }
253
+ },
254
+ So = {
255
+ kit: {
256
+ kit: "fak"
257
+ },
258
+ "kit-duotone": {
259
+ "kit-duotone": "fakd"
260
+ }
261
+ };
262
+
263
+ const NAMESPACE_IDENTIFIER = '___FONT_AWESOME___';
264
+ const UNITS_IN_GRID = 16;
265
+ const DEFAULT_CSS_PREFIX = 'fa';
266
+ const DEFAULT_REPLACEMENT_CLASS = 'svg-inline--fa';
267
+ const DATA_FA_I2SVG = 'data-fa-i2svg';
268
+ const DATA_FA_PSEUDO_ELEMENT = 'data-fa-pseudo-element';
269
+ const DATA_FA_PSEUDO_ELEMENT_PENDING = 'data-fa-pseudo-element-pending';
270
+ const DATA_PREFIX = 'data-prefix';
271
+ const DATA_ICON = 'data-icon';
272
+ const HTML_CLASS_I2SVG_BASE_CLASS = 'fontawesome-i2svg';
273
+ const MUTATION_APPROACH_ASYNC = 'async';
274
+ const TAGNAMES_TO_SKIP_FOR_PSEUDOELEMENTS = ['HTML', 'HEAD', 'STYLE', 'SCRIPT'];
275
+ const PRODUCTION = (() => {
278
276
  try {
279
277
  return "production" === 'production';
280
- } catch (e) {
278
+ } catch (e$$1) {
281
279
  return false;
282
280
  }
283
- }();
284
- var FAMILY_CLASSIC = 'classic';
285
- var FAMILY_SHARP = 'sharp';
286
- var FAMILIES = [FAMILY_CLASSIC, FAMILY_SHARP];
281
+ })();
282
+ const FAMILIES = [a, r, o];
287
283
 
288
284
  function familyProxy(obj) {
289
285
  // Defaults to the classic family if family is not available
290
286
  return new Proxy(obj, {
291
- get: function get(target, prop) {
292
- return prop in target ? target[prop] : target[FAMILY_CLASSIC];
287
+ get(target, prop) {
288
+ return prop in target ? target[prop] : target[a];
293
289
  }
290
+
294
291
  });
295
292
  }
296
- var PREFIX_TO_STYLE = familyProxy((_familyProxy = {}, _defineProperty(_familyProxy, FAMILY_CLASSIC, {
297
- 'fa': 'solid',
298
- 'fas': 'solid',
299
- 'fa-solid': 'solid',
300
- 'far': 'regular',
301
- 'fa-regular': 'regular',
302
- 'fal': 'light',
303
- 'fa-light': 'light',
304
- 'fat': 'thin',
305
- 'fa-thin': 'thin',
306
- 'fad': 'duotone',
307
- 'fa-duotone': 'duotone',
308
- 'fab': 'brands',
309
- 'fa-brands': 'brands',
310
- 'fak': 'kit',
311
- 'fakd': 'kit',
312
- 'fa-kit': 'kit',
313
- 'fa-kit-duotone': 'kit'
314
- }), _defineProperty(_familyProxy, FAMILY_SHARP, {
315
- 'fa': 'solid',
316
- 'fass': 'solid',
317
- 'fa-solid': 'solid',
318
- 'fasr': 'regular',
319
- 'fa-regular': 'regular',
320
- 'fasl': 'light',
321
- 'fa-light': 'light',
322
- 'fast': 'thin',
323
- 'fa-thin': 'thin'
324
- }), _familyProxy));
325
- var STYLE_TO_PREFIX = familyProxy((_familyProxy2 = {}, _defineProperty(_familyProxy2, FAMILY_CLASSIC, {
326
- solid: 'fas',
327
- regular: 'far',
328
- light: 'fal',
329
- thin: 'fat',
330
- duotone: 'fad',
331
- brands: 'fab',
332
- kit: 'fak'
333
- }), _defineProperty(_familyProxy2, FAMILY_SHARP, {
334
- solid: 'fass',
335
- regular: 'fasr',
336
- light: 'fasl',
337
- thin: 'fast'
338
- }), _familyProxy2));
339
- var PREFIX_TO_LONG_STYLE = familyProxy((_familyProxy3 = {}, _defineProperty(_familyProxy3, FAMILY_CLASSIC, {
340
- fab: 'fa-brands',
341
- fad: 'fa-duotone',
342
- fak: 'fa-kit',
343
- fal: 'fa-light',
344
- far: 'fa-regular',
345
- fas: 'fa-solid',
346
- fat: 'fa-thin'
347
- }), _defineProperty(_familyProxy3, FAMILY_SHARP, {
348
- fass: 'fa-solid',
349
- fasr: 'fa-regular',
350
- fasl: 'fa-light',
351
- fast: 'fa-thin'
352
- }), _familyProxy3));
353
- var LONG_STYLE_TO_PREFIX = familyProxy((_familyProxy4 = {}, _defineProperty(_familyProxy4, FAMILY_CLASSIC, {
354
- 'fa-brands': 'fab',
355
- 'fa-duotone': 'fad',
356
- 'fa-kit': 'fak',
357
- 'fa-light': 'fal',
358
- 'fa-regular': 'far',
359
- 'fa-solid': 'fas',
360
- 'fa-thin': 'fat'
361
- }), _defineProperty(_familyProxy4, FAMILY_SHARP, {
362
- 'fa-solid': 'fass',
363
- 'fa-regular': 'fasr',
364
- 'fa-light': 'fasl',
365
- 'fa-thin': 'fast'
366
- }), _familyProxy4));
367
- var ICON_SELECTION_SYNTAX_PATTERN = /fa(s|r|l|t|d|b|k|ss|sr|sl|st)?[\-\ ]/; // eslint-disable-line no-useless-escape
368
-
369
- var LAYERS_TEXT_CLASSNAME = 'fa-layers-text';
370
- var FONT_FAMILY_PATTERN = /Font ?Awesome ?([56 ]*)(Solid|Regular|Light|Thin|Duotone|Brands|Free|Pro|Sharp|Kit)?.*/i;
371
- var FONT_WEIGHT_TO_PREFIX = familyProxy((_familyProxy5 = {}, _defineProperty(_familyProxy5, FAMILY_CLASSIC, {
372
- 900: 'fas',
373
- 400: 'far',
374
- normal: 'far',
375
- 300: 'fal',
376
- 100: 'fat'
377
- }), _defineProperty(_familyProxy5, FAMILY_SHARP, {
378
- 900: 'fass',
379
- 400: 'fasr',
380
- 300: 'fasl',
381
- 100: 'fast'
382
- }), _familyProxy5));
383
- var oneToTen = [1, 2, 3, 4, 5, 6, 7, 8, 9, 10];
384
- var oneToTwenty = oneToTen.concat([11, 12, 13, 14, 15, 16, 17, 18, 19, 20]);
385
- var ATTRIBUTES_WATCHED_FOR_MUTATION = ['class', 'data-prefix', 'data-icon', 'data-fa-transform', 'data-fa-mask'];
386
- var DUOTONE_CLASSES = {
387
- GROUP: 'duotone-group',
388
- SWAP_OPACITY: 'swap-opacity',
389
- PRIMARY: 'primary',
390
- SECONDARY: 'secondary'
293
+
294
+ const _PREFIX_TO_STYLE = { ...ho
295
+ };
296
+ _PREFIX_TO_STYLE[a] = { ...ho[a],
297
+ ...bt['kit'],
298
+ ...bt['kit-duotone']
299
+ };
300
+ const PREFIX_TO_STYLE = familyProxy(_PREFIX_TO_STYLE);
301
+ const _STYLE_TO_PREFIX = { ...fo
302
+ };
303
+ _STYLE_TO_PREFIX[a] = { ..._STYLE_TO_PREFIX[a],
304
+ ...So['kit'],
305
+ ...So['kit-duotone']
306
+ };
307
+ const STYLE_TO_PREFIX = familyProxy(_STYLE_TO_PREFIX);
308
+ const _PREFIX_TO_LONG_STYLE = { ...no
309
+ };
310
+ _PREFIX_TO_LONG_STYLE[a] = { ..._PREFIX_TO_LONG_STYLE[a],
311
+ ...Fo['kit']
312
+ };
313
+ const PREFIX_TO_LONG_STYLE = familyProxy(_PREFIX_TO_LONG_STYLE);
314
+ const _LONG_STYLE_TO_PREFIX = { ...lo
315
+ };
316
+ _LONG_STYLE_TO_PREFIX[a] = { ..._LONG_STYLE_TO_PREFIX[a],
317
+ ...Io['kit']
391
318
  };
392
- var prefixes = new Set();
393
- Object.keys(STYLE_TO_PREFIX[FAMILY_CLASSIC]).map(prefixes.add.bind(prefixes));
394
- Object.keys(STYLE_TO_PREFIX[FAMILY_SHARP]).map(prefixes.add.bind(prefixes));
395
- var RESERVED_CLASSES = [].concat(FAMILIES, _toConsumableArray(prefixes), ['2xs', 'xs', 'sm', 'lg', 'xl', '2xl', 'beat', 'border', 'fade', 'beat-fade', 'bounce', 'flip-both', 'flip-horizontal', 'flip-vertical', 'flip', 'fw', 'inverse', 'layers-counter', 'layers-text', 'layers', 'li', 'pull-left', 'pull-right', 'pulse', 'rotate-180', 'rotate-270', 'rotate-90', 'rotate-by', 'shake', 'spin-pulse', 'spin-reverse', 'spin', 'stack-1x', 'stack-2x', 'stack', 'ul', DUOTONE_CLASSES.GROUP, DUOTONE_CLASSES.SWAP_OPACITY, DUOTONE_CLASSES.PRIMARY, DUOTONE_CLASSES.SECONDARY]).concat(oneToTen.map(function (n) {
396
- return "".concat(n, "x");
397
- })).concat(oneToTwenty.map(function (n) {
398
- return "w-".concat(n);
399
- }));
319
+ const LONG_STYLE_TO_PREFIX = familyProxy(_LONG_STYLE_TO_PREFIX);
320
+ const ICON_SELECTION_SYNTAX_PATTERN = Dt; // eslint-disable-line no-useless-escape
400
321
 
401
- var initial = WINDOW.FontAwesomeConfig || {};
322
+ const LAYERS_TEXT_CLASSNAME = 'fa-layers-text';
323
+ const FONT_FAMILY_PATTERN = Kt;
324
+ const _FONT_WEIGHT_TO_PREFIX = { ...et$1
325
+ };
326
+ const FONT_WEIGHT_TO_PREFIX = familyProxy(_FONT_WEIGHT_TO_PREFIX);
327
+ const ATTRIBUTES_WATCHED_FOR_MUTATION = ['class', 'data-prefix', 'data-icon', 'data-fa-transform', 'data-fa-mask'];
328
+ const DUOTONE_CLASSES = t$1;
329
+ const prefixes = new Set();
330
+ Object.keys(STYLE_TO_PREFIX[a]).map(prefixes.add.bind(prefixes));
331
+ Object.keys(STYLE_TO_PREFIX[r]).map(prefixes.add.bind(prefixes));
332
+ Object.keys(STYLE_TO_PREFIX[o]).map(prefixes.add.bind(prefixes));
333
+ const RESERVED_CLASSES = [...Ct, ...yo];
334
+
335
+ const initial = WINDOW.FontAwesomeConfig || {};
402
336
 
403
337
  function getAttrConfig(attr) {
404
338
  var element = DOCUMENT.querySelector('script[' + attr + ']');
@@ -418,13 +352,10 @@
418
352
  }
419
353
 
420
354
  if (DOCUMENT && typeof DOCUMENT.querySelector === 'function') {
421
- 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-auto-a11y', 'autoA11y'], ['data-search-pseudo-elements', 'searchPseudoElements'], ['data-observe-mutations', 'observeMutations'], ['data-mutate-approach', 'mutateApproach'], ['data-keep-original-source', 'keepOriginalSource'], ['data-measure-performance', 'measurePerformance'], ['data-show-missing-icons', 'showMissingIcons']];
422
- attrs.forEach(function (_ref) {
423
- var _ref2 = _slicedToArray(_ref, 2),
424
- attr = _ref2[0],
425
- key = _ref2[1];
426
-
427
- var val = coerce(getAttrConfig(attr));
355
+ const 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-auto-a11y', 'autoA11y'], ['data-search-pseudo-elements', 'searchPseudoElements'], ['data-observe-mutations', 'observeMutations'], ['data-mutate-approach', 'mutateApproach'], ['data-keep-original-source', 'keepOriginalSource'], ['data-measure-performance', 'measurePerformance'], ['data-show-missing-icons', 'showMissingIcons']];
356
+ attrs.forEach(_ref => {
357
+ let [attr, key] = _ref;
358
+ const val = coerce(getAttrConfig(attr));
428
359
 
429
360
  if (val !== undefined && val !== null) {
430
361
  initial[key] = val;
@@ -432,7 +363,7 @@
432
363
  });
433
364
  }
434
365
 
435
- var _default = {
366
+ const _default = {
436
367
  styleDefault: 'solid',
437
368
  familyDefault: 'classic',
438
369
  cssPrefix: DEFAULT_CSS_PREFIX,
@@ -452,21 +383,20 @@
452
383
  initial.cssPrefix = initial.familyPrefix;
453
384
  }
454
385
 
455
- var _config = _objectSpread2(_objectSpread2({}, _default), initial);
456
-
386
+ const _config = { ..._default,
387
+ ...initial
388
+ };
457
389
  if (!_config.autoReplaceSvg) _config.observeMutations = false;
458
- var config = {};
459
- Object.keys(_default).forEach(function (key) {
390
+ const config = {};
391
+ Object.keys(_default).forEach(key => {
460
392
  Object.defineProperty(config, key, {
461
393
  enumerable: true,
462
- set: function set(val) {
394
+ set: function (val) {
463
395
  _config[key] = val;
464
396
 
465
- _onChangeCb.forEach(function (cb) {
466
- return cb(config);
467
- });
397
+ _onChangeCb.forEach(cb => cb(config));
468
398
  },
469
- get: function get() {
399
+ get: function () {
470
400
  return _config[key];
471
401
  }
472
402
  });
@@ -474,29 +404,27 @@
474
404
 
475
405
  Object.defineProperty(config, 'familyPrefix', {
476
406
  enumerable: true,
477
- set: function set(val) {
407
+ set: function (val) {
478
408
  _config.cssPrefix = val;
479
409
 
480
- _onChangeCb.forEach(function (cb) {
481
- return cb(config);
482
- });
410
+ _onChangeCb.forEach(cb => cb(config));
483
411
  },
484
- get: function get() {
412
+ get: function () {
485
413
  return _config.cssPrefix;
486
414
  }
487
415
  });
488
416
  WINDOW.FontAwesomeConfig = config;
489
- var _onChangeCb = [];
417
+ const _onChangeCb = [];
490
418
  function onChange(cb) {
491
419
  _onChangeCb.push(cb);
492
420
 
493
- return function () {
421
+ return () => {
494
422
  _onChangeCb.splice(_onChangeCb.indexOf(cb), 1);
495
423
  };
496
424
  }
497
425
 
498
- var d = UNITS_IN_GRID;
499
- var meaninglessTransform = {
426
+ const d$2 = UNITS_IN_GRID;
427
+ const meaninglessTransform = {
500
428
  size: 16,
501
429
  x: 0,
502
430
  y: 0,
@@ -510,7 +438,7 @@
510
438
  args[_key - 1] = arguments[_key];
511
439
  }
512
440
 
513
- fn.apply(void 0, args);
441
+ fn(...args);
514
442
  } catch (e) {
515
443
  if (!PRODUCTION) {
516
444
  throw e;
@@ -522,15 +450,15 @@
522
450
  return;
523
451
  }
524
452
 
525
- var style = DOCUMENT.createElement('style');
453
+ const style = DOCUMENT.createElement('style');
526
454
  style.setAttribute('type', 'text/css');
527
455
  style.innerHTML = css;
528
- var headChildren = DOCUMENT.head.childNodes;
529
- var beforeChild = null;
456
+ const headChildren = DOCUMENT.head.childNodes;
457
+ let beforeChild = null;
530
458
 
531
- for (var i = headChildren.length - 1; i > -1; i--) {
532
- var child = headChildren[i];
533
- var tagName = (child.tagName || '').toUpperCase();
459
+ for (let i = headChildren.length - 1; i > -1; i--) {
460
+ const child = headChildren[i];
461
+ const tagName = (child.tagName || '').toUpperCase();
534
462
 
535
463
  if (['STYLE', 'LINK'].indexOf(tagName) > -1) {
536
464
  beforeChild = child;
@@ -540,10 +468,10 @@
540
468
  DOCUMENT.head.insertBefore(style, beforeChild);
541
469
  return css;
542
470
  }
543
- var idPool = '0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ';
471
+ const idPool = '0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ';
544
472
  function nextUniqueId() {
545
- var size = 12;
546
- var id = '';
473
+ let size = 12;
474
+ let id = '';
547
475
 
548
476
  while (size-- > 0) {
549
477
  id += idPool[Math.random() * 62 | 0];
@@ -552,9 +480,9 @@
552
480
  return id;
553
481
  }
554
482
  function toArray(obj) {
555
- var array = [];
483
+ const array = [];
556
484
 
557
- for (var i = (obj || []).length >>> 0; i--;) {
485
+ for (let i = (obj || []).length >>> 0; i--;) {
558
486
  array[i] = obj[i];
559
487
  }
560
488
 
@@ -564,21 +492,19 @@
564
492
  if (node.classList) {
565
493
  return toArray(node.classList);
566
494
  } else {
567
- return (node.getAttribute('class') || '').split(' ').filter(function (i) {
568
- return i;
569
- });
495
+ return (node.getAttribute('class') || '').split(' ').filter(i => i);
570
496
  }
571
497
  }
572
498
  function htmlEscape(str) {
573
499
  return "".concat(str).replace(/&/g, '&amp;').replace(/"/g, '&quot;').replace(/'/g, '&#39;').replace(/</g, '&lt;').replace(/>/g, '&gt;');
574
500
  }
575
501
  function joinAttributes(attributes) {
576
- return Object.keys(attributes || {}).reduce(function (acc, attributeName) {
502
+ return Object.keys(attributes || {}).reduce((acc, attributeName) => {
577
503
  return acc + "".concat(attributeName, "=\"").concat(htmlEscape(attributes[attributeName]), "\" ");
578
504
  }, '').trim();
579
505
  }
580
506
  function joinStyles(styles) {
581
- return Object.keys(styles || {}).reduce(function (acc, styleName) {
507
+ return Object.keys(styles || {}).reduce((acc, styleName) => {
582
508
  return acc + "".concat(styleName, ": ").concat(styles[styleName].trim(), ";");
583
509
  }, '');
584
510
  }
@@ -586,70 +512,71 @@
586
512
  return transform.size !== meaninglessTransform.size || transform.x !== meaninglessTransform.x || transform.y !== meaninglessTransform.y || transform.rotate !== meaninglessTransform.rotate || transform.flipX || transform.flipY;
587
513
  }
588
514
  function transformForSvg(_ref) {
589
- var transform = _ref.transform,
590
- containerWidth = _ref.containerWidth,
591
- iconWidth = _ref.iconWidth;
592
- var outer = {
515
+ let {
516
+ transform,
517
+ containerWidth,
518
+ iconWidth
519
+ } = _ref;
520
+ const outer = {
593
521
  transform: "translate(".concat(containerWidth / 2, " 256)")
594
522
  };
595
- var innerTranslate = "translate(".concat(transform.x * 32, ", ").concat(transform.y * 32, ") ");
596
- var innerScale = "scale(".concat(transform.size / 16 * (transform.flipX ? -1 : 1), ", ").concat(transform.size / 16 * (transform.flipY ? -1 : 1), ") ");
597
- var innerRotate = "rotate(".concat(transform.rotate, " 0 0)");
598
- var inner = {
523
+ const innerTranslate = "translate(".concat(transform.x * 32, ", ").concat(transform.y * 32, ") ");
524
+ const innerScale = "scale(".concat(transform.size / 16 * (transform.flipX ? -1 : 1), ", ").concat(transform.size / 16 * (transform.flipY ? -1 : 1), ") ");
525
+ const innerRotate = "rotate(".concat(transform.rotate, " 0 0)");
526
+ const inner = {
599
527
  transform: "".concat(innerTranslate, " ").concat(innerScale, " ").concat(innerRotate)
600
528
  };
601
- var path = {
529
+ const path = {
602
530
  transform: "translate(".concat(iconWidth / 2 * -1, " -256)")
603
531
  };
604
532
  return {
605
- outer: outer,
606
- inner: inner,
607
- path: path
533
+ outer,
534
+ inner,
535
+ path
608
536
  };
609
537
  }
610
538
  function transformForCss(_ref2) {
611
- var transform = _ref2.transform,
612
- _ref2$width = _ref2.width,
613
- width = _ref2$width === void 0 ? UNITS_IN_GRID : _ref2$width,
614
- _ref2$height = _ref2.height,
615
- height = _ref2$height === void 0 ? UNITS_IN_GRID : _ref2$height,
616
- _ref2$startCentered = _ref2.startCentered,
617
- startCentered = _ref2$startCentered === void 0 ? false : _ref2$startCentered;
618
- var val = '';
539
+ let {
540
+ transform,
541
+ width = UNITS_IN_GRID,
542
+ height = UNITS_IN_GRID,
543
+ startCentered = false
544
+ } = _ref2;
545
+ let val = '';
619
546
 
620
547
  if (startCentered && IS_IE) {
621
- val += "translate(".concat(transform.x / d - width / 2, "em, ").concat(transform.y / d - height / 2, "em) ");
548
+ val += "translate(".concat(transform.x / d$2 - width / 2, "em, ").concat(transform.y / d$2 - height / 2, "em) ");
622
549
  } else if (startCentered) {
623
- val += "translate(calc(-50% + ".concat(transform.x / d, "em), calc(-50% + ").concat(transform.y / d, "em)) ");
550
+ val += "translate(calc(-50% + ".concat(transform.x / d$2, "em), calc(-50% + ").concat(transform.y / d$2, "em)) ");
624
551
  } else {
625
- val += "translate(".concat(transform.x / d, "em, ").concat(transform.y / d, "em) ");
552
+ val += "translate(".concat(transform.x / d$2, "em, ").concat(transform.y / d$2, "em) ");
626
553
  }
627
554
 
628
- val += "scale(".concat(transform.size / d * (transform.flipX ? -1 : 1), ", ").concat(transform.size / d * (transform.flipY ? -1 : 1), ") ");
555
+ val += "scale(".concat(transform.size / d$2 * (transform.flipX ? -1 : 1), ", ").concat(transform.size / d$2 * (transform.flipY ? -1 : 1), ") ");
629
556
  val += "rotate(".concat(transform.rotate, "deg) ");
630
557
  return val;
631
558
  }
632
559
 
633
- var baseStyles = ":host,:root{--fa-font-solid:normal 900 1em/1 \"Font Awesome 6 Solid\";--fa-font-regular:normal 400 1em/1 \"Font Awesome 6 Regular\";--fa-font-light:normal 300 1em/1 \"Font Awesome 6 Light\";--fa-font-thin:normal 100 1em/1 \"Font Awesome 6 Thin\";--fa-font-duotone:normal 900 1em/1 \"Font Awesome 6 Duotone\";--fa-font-sharp-solid:normal 900 1em/1 \"Font Awesome 6 Sharp\";--fa-font-sharp-regular:normal 400 1em/1 \"Font Awesome 6 Sharp\";--fa-font-sharp-light:normal 300 1em/1 \"Font Awesome 6 Sharp\";--fa-font-sharp-thin:normal 100 1em/1 \"Font Awesome 6 Sharp\";--fa-font-brands:normal 400 1em/1 \"Font Awesome 6 Brands\"}svg:not(:host).svg-inline--fa,svg:not(:root).svg-inline--fa{overflow:visible;box-sizing:content-box}.svg-inline--fa{display:var(--fa-display,inline-block);height:1em;overflow:visible;vertical-align:-.125em}.svg-inline--fa.fa-2xs{vertical-align:.1em}.svg-inline--fa.fa-xs{vertical-align:0}.svg-inline--fa.fa-sm{vertical-align:-.0714285705em}.svg-inline--fa.fa-lg{vertical-align:-.2em}.svg-inline--fa.fa-xl{vertical-align:-.25em}.svg-inline--fa.fa-2xl{vertical-align:-.3125em}.svg-inline--fa.fa-pull-left{margin-right:var(--fa-pull-margin,.3em);width:auto}.svg-inline--fa.fa-pull-right{margin-left:var(--fa-pull-margin,.3em);width:auto}.svg-inline--fa.fa-li{width:var(--fa-li-width,2em);top:.25em}.svg-inline--fa.fa-fw{width:var(--fa-fw-width,1.25em)}.fa-layers svg.svg-inline--fa{bottom:0;left:0;margin:auto;position:absolute;right:0;top:0}.fa-layers-counter,.fa-layers-text{display:inline-block;position:absolute;text-align:center}.fa-layers{display:inline-block;height:1em;position:relative;text-align:center;vertical-align:-.125em;width:1em}.fa-layers svg.svg-inline--fa{-webkit-transform-origin:center center;transform-origin:center center}.fa-layers-text{left:50%;top:50%;-webkit-transform:translate(-50%,-50%);transform:translate(-50%,-50%);-webkit-transform-origin:center center;transform-origin:center center}.fa-layers-counter{background-color:var(--fa-counter-background-color,#ff253a);border-radius:var(--fa-counter-border-radius,1em);box-sizing:border-box;color:var(--fa-inverse,#fff);line-height:var(--fa-counter-line-height,1);max-width:var(--fa-counter-max-width,5em);min-width:var(--fa-counter-min-width,1.5em);overflow:hidden;padding:var(--fa-counter-padding,.25em .5em);right:var(--fa-right,0);text-overflow:ellipsis;top:var(--fa-top,0);-webkit-transform:scale(var(--fa-counter-scale,.25));transform:scale(var(--fa-counter-scale,.25));-webkit-transform-origin:top right;transform-origin:top right}.fa-layers-bottom-right{bottom:var(--fa-bottom,0);right:var(--fa-right,0);top:auto;-webkit-transform:scale(var(--fa-layers-scale,.25));transform:scale(var(--fa-layers-scale,.25));-webkit-transform-origin:bottom right;transform-origin:bottom right}.fa-layers-bottom-left{bottom:var(--fa-bottom,0);left:var(--fa-left,0);right:auto;top:auto;-webkit-transform:scale(var(--fa-layers-scale,.25));transform:scale(var(--fa-layers-scale,.25));-webkit-transform-origin:bottom left;transform-origin:bottom left}.fa-layers-top-right{top:var(--fa-top,0);right:var(--fa-right,0);-webkit-transform:scale(var(--fa-layers-scale,.25));transform:scale(var(--fa-layers-scale,.25));-webkit-transform-origin:top right;transform-origin:top right}.fa-layers-top-left{left:var(--fa-left,0);right:auto;top:var(--fa-top,0);-webkit-transform:scale(var(--fa-layers-scale,.25));transform:scale(var(--fa-layers-scale,.25));-webkit-transform-origin:top left;transform-origin:top left}.fa-1x{font-size:1em}.fa-2x{font-size:2em}.fa-3x{font-size:3em}.fa-4x{font-size:4em}.fa-5x{font-size:5em}.fa-6x{font-size:6em}.fa-7x{font-size:7em}.fa-8x{font-size:8em}.fa-9x{font-size:9em}.fa-10x{font-size:10em}.fa-2xs{font-size:.625em;line-height:.1em;vertical-align:.225em}.fa-xs{font-size:.75em;line-height:.0833333337em;vertical-align:.125em}.fa-sm{font-size:.875em;line-height:.0714285718em;vertical-align:.0535714295em}.fa-lg{font-size:1.25em;line-height:.05em;vertical-align:-.075em}.fa-xl{font-size:1.5em;line-height:.0416666682em;vertical-align:-.125em}.fa-2xl{font-size:2em;line-height:.03125em;vertical-align:-.1875em}.fa-fw{text-align:center;width:1.25em}.fa-ul{list-style-type:none;margin-left:var(--fa-li-margin,2.5em);padding-left:0}.fa-ul>li{position:relative}.fa-li{left:calc(var(--fa-li-width,2em) * -1);position:absolute;text-align:center;width:var(--fa-li-width,2em);line-height:inherit}.fa-border{border-color:var(--fa-border-color,#eee);border-radius:var(--fa-border-radius,.1em);border-style:var(--fa-border-style,solid);border-width:var(--fa-border-width,.08em);padding:var(--fa-border-padding,.2em .25em .15em)}.fa-pull-left{float:left;margin-right:var(--fa-pull-margin,.3em)}.fa-pull-right{float:right;margin-left:var(--fa-pull-margin,.3em)}.fa-beat{-webkit-animation-name:fa-beat;animation-name:fa-beat;-webkit-animation-delay:var(--fa-animation-delay,0s);animation-delay:var(--fa-animation-delay,0s);-webkit-animation-direction:var(--fa-animation-direction,normal);animation-direction:var(--fa-animation-direction,normal);-webkit-animation-duration:var(--fa-animation-duration,1s);animation-duration:var(--fa-animation-duration,1s);-webkit-animation-iteration-count:var(--fa-animation-iteration-count,infinite);animation-iteration-count:var(--fa-animation-iteration-count,infinite);-webkit-animation-timing-function:var(--fa-animation-timing,ease-in-out);animation-timing-function:var(--fa-animation-timing,ease-in-out)}.fa-bounce{-webkit-animation-name:fa-bounce;animation-name:fa-bounce;-webkit-animation-delay:var(--fa-animation-delay,0s);animation-delay:var(--fa-animation-delay,0s);-webkit-animation-direction:var(--fa-animation-direction,normal);animation-direction:var(--fa-animation-direction,normal);-webkit-animation-duration:var(--fa-animation-duration,1s);animation-duration:var(--fa-animation-duration,1s);-webkit-animation-iteration-count:var(--fa-animation-iteration-count,infinite);animation-iteration-count:var(--fa-animation-iteration-count,infinite);-webkit-animation-timing-function:var(--fa-animation-timing,cubic-bezier(.28,.84,.42,1));animation-timing-function:var(--fa-animation-timing,cubic-bezier(.28,.84,.42,1))}.fa-fade{-webkit-animation-name:fa-fade;animation-name:fa-fade;-webkit-animation-delay:var(--fa-animation-delay,0s);animation-delay:var(--fa-animation-delay,0s);-webkit-animation-direction:var(--fa-animation-direction,normal);animation-direction:var(--fa-animation-direction,normal);-webkit-animation-duration:var(--fa-animation-duration,1s);animation-duration:var(--fa-animation-duration,1s);-webkit-animation-iteration-count:var(--fa-animation-iteration-count,infinite);animation-iteration-count:var(--fa-animation-iteration-count,infinite);-webkit-animation-timing-function:var(--fa-animation-timing,cubic-bezier(.4,0,.6,1));animation-timing-function:var(--fa-animation-timing,cubic-bezier(.4,0,.6,1))}.fa-beat-fade{-webkit-animation-name:fa-beat-fade;animation-name:fa-beat-fade;-webkit-animation-delay:var(--fa-animation-delay,0s);animation-delay:var(--fa-animation-delay,0s);-webkit-animation-direction:var(--fa-animation-direction,normal);animation-direction:var(--fa-animation-direction,normal);-webkit-animation-duration:var(--fa-animation-duration,1s);animation-duration:var(--fa-animation-duration,1s);-webkit-animation-iteration-count:var(--fa-animation-iteration-count,infinite);animation-iteration-count:var(--fa-animation-iteration-count,infinite);-webkit-animation-timing-function:var(--fa-animation-timing,cubic-bezier(.4,0,.6,1));animation-timing-function:var(--fa-animation-timing,cubic-bezier(.4,0,.6,1))}.fa-flip{-webkit-animation-name:fa-flip;animation-name:fa-flip;-webkit-animation-delay:var(--fa-animation-delay,0s);animation-delay:var(--fa-animation-delay,0s);-webkit-animation-direction:var(--fa-animation-direction,normal);animation-direction:var(--fa-animation-direction,normal);-webkit-animation-duration:var(--fa-animation-duration,1s);animation-duration:var(--fa-animation-duration,1s);-webkit-animation-iteration-count:var(--fa-animation-iteration-count,infinite);animation-iteration-count:var(--fa-animation-iteration-count,infinite);-webkit-animation-timing-function:var(--fa-animation-timing,ease-in-out);animation-timing-function:var(--fa-animation-timing,ease-in-out)}.fa-shake{-webkit-animation-name:fa-shake;animation-name:fa-shake;-webkit-animation-delay:var(--fa-animation-delay,0s);animation-delay:var(--fa-animation-delay,0s);-webkit-animation-direction:var(--fa-animation-direction,normal);animation-direction:var(--fa-animation-direction,normal);-webkit-animation-duration:var(--fa-animation-duration,1s);animation-duration:var(--fa-animation-duration,1s);-webkit-animation-iteration-count:var(--fa-animation-iteration-count,infinite);animation-iteration-count:var(--fa-animation-iteration-count,infinite);-webkit-animation-timing-function:var(--fa-animation-timing,linear);animation-timing-function:var(--fa-animation-timing,linear)}.fa-spin{-webkit-animation-name:fa-spin;animation-name:fa-spin;-webkit-animation-delay:var(--fa-animation-delay,0s);animation-delay:var(--fa-animation-delay,0s);-webkit-animation-direction:var(--fa-animation-direction,normal);animation-direction:var(--fa-animation-direction,normal);-webkit-animation-duration:var(--fa-animation-duration,2s);animation-duration:var(--fa-animation-duration,2s);-webkit-animation-iteration-count:var(--fa-animation-iteration-count,infinite);animation-iteration-count:var(--fa-animation-iteration-count,infinite);-webkit-animation-timing-function:var(--fa-animation-timing,linear);animation-timing-function:var(--fa-animation-timing,linear)}.fa-spin-reverse{--fa-animation-direction:reverse}.fa-pulse,.fa-spin-pulse{-webkit-animation-name:fa-spin;animation-name:fa-spin;-webkit-animation-direction:var(--fa-animation-direction,normal);animation-direction:var(--fa-animation-direction,normal);-webkit-animation-duration:var(--fa-animation-duration,1s);animation-duration:var(--fa-animation-duration,1s);-webkit-animation-iteration-count:var(--fa-animation-iteration-count,infinite);animation-iteration-count:var(--fa-animation-iteration-count,infinite);-webkit-animation-timing-function:var(--fa-animation-timing,steps(8));animation-timing-function:var(--fa-animation-timing,steps(8))}@media (prefers-reduced-motion:reduce){.fa-beat,.fa-beat-fade,.fa-bounce,.fa-fade,.fa-flip,.fa-pulse,.fa-shake,.fa-spin,.fa-spin-pulse{-webkit-animation-delay:-1ms;animation-delay:-1ms;-webkit-animation-duration:1ms;animation-duration:1ms;-webkit-animation-iteration-count:1;animation-iteration-count:1;-webkit-transition-delay:0s;transition-delay:0s;-webkit-transition-duration:0s;transition-duration:0s}}@-webkit-keyframes fa-beat{0%,90%{-webkit-transform:scale(1);transform:scale(1)}45%{-webkit-transform:scale(var(--fa-beat-scale,1.25));transform:scale(var(--fa-beat-scale,1.25))}}@keyframes fa-beat{0%,90%{-webkit-transform:scale(1);transform:scale(1)}45%{-webkit-transform:scale(var(--fa-beat-scale,1.25));transform:scale(var(--fa-beat-scale,1.25))}}@-webkit-keyframes fa-bounce{0%{-webkit-transform:scale(1,1) translateY(0);transform:scale(1,1) translateY(0)}10%{-webkit-transform:scale(var(--fa-bounce-start-scale-x,1.1),var(--fa-bounce-start-scale-y,.9)) translateY(0);transform:scale(var(--fa-bounce-start-scale-x,1.1),var(--fa-bounce-start-scale-y,.9)) translateY(0)}30%{-webkit-transform:scale(var(--fa-bounce-jump-scale-x,.9),var(--fa-bounce-jump-scale-y,1.1)) translateY(var(--fa-bounce-height,-.5em));transform:scale(var(--fa-bounce-jump-scale-x,.9),var(--fa-bounce-jump-scale-y,1.1)) translateY(var(--fa-bounce-height,-.5em))}50%{-webkit-transform:scale(var(--fa-bounce-land-scale-x,1.05),var(--fa-bounce-land-scale-y,.95)) translateY(0);transform:scale(var(--fa-bounce-land-scale-x,1.05),var(--fa-bounce-land-scale-y,.95)) translateY(0)}57%{-webkit-transform:scale(1,1) translateY(var(--fa-bounce-rebound,-.125em));transform:scale(1,1) translateY(var(--fa-bounce-rebound,-.125em))}64%{-webkit-transform:scale(1,1) translateY(0);transform:scale(1,1) translateY(0)}100%{-webkit-transform:scale(1,1) translateY(0);transform:scale(1,1) translateY(0)}}@keyframes fa-bounce{0%{-webkit-transform:scale(1,1) translateY(0);transform:scale(1,1) translateY(0)}10%{-webkit-transform:scale(var(--fa-bounce-start-scale-x,1.1),var(--fa-bounce-start-scale-y,.9)) translateY(0);transform:scale(var(--fa-bounce-start-scale-x,1.1),var(--fa-bounce-start-scale-y,.9)) translateY(0)}30%{-webkit-transform:scale(var(--fa-bounce-jump-scale-x,.9),var(--fa-bounce-jump-scale-y,1.1)) translateY(var(--fa-bounce-height,-.5em));transform:scale(var(--fa-bounce-jump-scale-x,.9),var(--fa-bounce-jump-scale-y,1.1)) translateY(var(--fa-bounce-height,-.5em))}50%{-webkit-transform:scale(var(--fa-bounce-land-scale-x,1.05),var(--fa-bounce-land-scale-y,.95)) translateY(0);transform:scale(var(--fa-bounce-land-scale-x,1.05),var(--fa-bounce-land-scale-y,.95)) translateY(0)}57%{-webkit-transform:scale(1,1) translateY(var(--fa-bounce-rebound,-.125em));transform:scale(1,1) translateY(var(--fa-bounce-rebound,-.125em))}64%{-webkit-transform:scale(1,1) translateY(0);transform:scale(1,1) translateY(0)}100%{-webkit-transform:scale(1,1) translateY(0);transform:scale(1,1) translateY(0)}}@-webkit-keyframes fa-fade{50%{opacity:var(--fa-fade-opacity,.4)}}@keyframes fa-fade{50%{opacity:var(--fa-fade-opacity,.4)}}@-webkit-keyframes fa-beat-fade{0%,100%{opacity:var(--fa-beat-fade-opacity,.4);-webkit-transform:scale(1);transform:scale(1)}50%{opacity:1;-webkit-transform:scale(var(--fa-beat-fade-scale,1.125));transform:scale(var(--fa-beat-fade-scale,1.125))}}@keyframes fa-beat-fade{0%,100%{opacity:var(--fa-beat-fade-opacity,.4);-webkit-transform:scale(1);transform:scale(1)}50%{opacity:1;-webkit-transform:scale(var(--fa-beat-fade-scale,1.125));transform:scale(var(--fa-beat-fade-scale,1.125))}}@-webkit-keyframes fa-flip{50%{-webkit-transform:rotate3d(var(--fa-flip-x,0),var(--fa-flip-y,1),var(--fa-flip-z,0),var(--fa-flip-angle,-180deg));transform:rotate3d(var(--fa-flip-x,0),var(--fa-flip-y,1),var(--fa-flip-z,0),var(--fa-flip-angle,-180deg))}}@keyframes fa-flip{50%{-webkit-transform:rotate3d(var(--fa-flip-x,0),var(--fa-flip-y,1),var(--fa-flip-z,0),var(--fa-flip-angle,-180deg));transform:rotate3d(var(--fa-flip-x,0),var(--fa-flip-y,1),var(--fa-flip-z,0),var(--fa-flip-angle,-180deg))}}@-webkit-keyframes fa-shake{0%{-webkit-transform:rotate(-15deg);transform:rotate(-15deg)}4%{-webkit-transform:rotate(15deg);transform:rotate(15deg)}24%,8%{-webkit-transform:rotate(-18deg);transform:rotate(-18deg)}12%,28%{-webkit-transform:rotate(18deg);transform:rotate(18deg)}16%{-webkit-transform:rotate(-22deg);transform:rotate(-22deg)}20%{-webkit-transform:rotate(22deg);transform:rotate(22deg)}32%{-webkit-transform:rotate(-12deg);transform:rotate(-12deg)}36%{-webkit-transform:rotate(12deg);transform:rotate(12deg)}100%,40%{-webkit-transform:rotate(0);transform:rotate(0)}}@keyframes fa-shake{0%{-webkit-transform:rotate(-15deg);transform:rotate(-15deg)}4%{-webkit-transform:rotate(15deg);transform:rotate(15deg)}24%,8%{-webkit-transform:rotate(-18deg);transform:rotate(-18deg)}12%,28%{-webkit-transform:rotate(18deg);transform:rotate(18deg)}16%{-webkit-transform:rotate(-22deg);transform:rotate(-22deg)}20%{-webkit-transform:rotate(22deg);transform:rotate(22deg)}32%{-webkit-transform:rotate(-12deg);transform:rotate(-12deg)}36%{-webkit-transform:rotate(12deg);transform:rotate(12deg)}100%,40%{-webkit-transform:rotate(0);transform:rotate(0)}}@-webkit-keyframes fa-spin{0%{-webkit-transform:rotate(0);transform:rotate(0)}100%{-webkit-transform:rotate(360deg);transform:rotate(360deg)}}@keyframes fa-spin{0%{-webkit-transform:rotate(0);transform:rotate(0)}100%{-webkit-transform:rotate(360deg);transform:rotate(360deg)}}.fa-rotate-90{-webkit-transform:rotate(90deg);transform:rotate(90deg)}.fa-rotate-180{-webkit-transform:rotate(180deg);transform:rotate(180deg)}.fa-rotate-270{-webkit-transform:rotate(270deg);transform:rotate(270deg)}.fa-flip-horizontal{-webkit-transform:scale(-1,1);transform:scale(-1,1)}.fa-flip-vertical{-webkit-transform:scale(1,-1);transform:scale(1,-1)}.fa-flip-both,.fa-flip-horizontal.fa-flip-vertical{-webkit-transform:scale(-1,-1);transform:scale(-1,-1)}.fa-rotate-by{-webkit-transform:rotate(var(--fa-rotate-angle,0));transform:rotate(var(--fa-rotate-angle,0))}.fa-stack{display:inline-block;vertical-align:middle;height:2em;position:relative;width:2.5em}.fa-stack-1x,.fa-stack-2x{bottom:0;left:0;margin:auto;position:absolute;right:0;top:0;z-index:var(--fa-stack-z-index,auto)}.svg-inline--fa.fa-stack-1x{height:1em;width:1.25em}.svg-inline--fa.fa-stack-2x{height:2em;width:2.5em}.fa-inverse{color:var(--fa-inverse,#fff)}.fa-sr-only,.sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border-width:0}.fa-sr-only-focusable:not(:focus),.sr-only-focusable:not(:focus){position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border-width:0}.svg-inline--fa .fa-primary{fill:var(--fa-primary-color,currentColor);opacity:var(--fa-primary-opacity,1)}.svg-inline--fa .fa-secondary{fill:var(--fa-secondary-color,currentColor);opacity:var(--fa-secondary-opacity,.4)}.svg-inline--fa.fa-swap-opacity .fa-primary{opacity:var(--fa-secondary-opacity,.4)}.svg-inline--fa.fa-swap-opacity .fa-secondary{opacity:var(--fa-primary-opacity,1)}.svg-inline--fa mask .fa-primary,.svg-inline--fa mask .fa-secondary{fill:#000}.fa-duotone.fa-inverse,.fad.fa-inverse{color:var(--fa-inverse,#fff)}";
560
+ var baseStyles = ":host,:root{--fa-font-solid:normal 900 1em/1 \"Font Awesome 6 Free\";--fa-font-regular:normal 400 1em/1 \"Font Awesome 6 Free\";--fa-font-light:normal 300 1em/1 \"Font Awesome 6 Pro\";--fa-font-thin:normal 100 1em/1 \"Font Awesome 6 Pro\";--fa-font-duotone:normal 900 1em/1 \"Font Awesome 6 Duotone\";--fa-font-brands:normal 400 1em/1 \"Font Awesome 6 Brands\";--fa-font-sharp-solid:normal 900 1em/1 \"Font Awesome 6 Sharp\";--fa-font-sharp-regular:normal 400 1em/1 \"Font Awesome 6 Sharp\";--fa-font-sharp-light:normal 300 1em/1 \"Font Awesome 6 Sharp\";--fa-font-sharp-thin:normal 100 1em/1 \"Font Awesome 6 Sharp\";--fa-font-sharp-duotone-solid:normal 900 1em/1 \"Font Awesome 6 Sharp Duotone\"}svg:not(:host).svg-inline--fa,svg:not(:root).svg-inline--fa{overflow:visible;box-sizing:content-box}.svg-inline--fa{display:var(--fa-display,inline-block);height:1em;overflow:visible;vertical-align:-.125em}.svg-inline--fa.fa-2xs{vertical-align:.1em}.svg-inline--fa.fa-xs{vertical-align:0}.svg-inline--fa.fa-sm{vertical-align:-.0714285705em}.svg-inline--fa.fa-lg{vertical-align:-.2em}.svg-inline--fa.fa-xl{vertical-align:-.25em}.svg-inline--fa.fa-2xl{vertical-align:-.3125em}.svg-inline--fa.fa-pull-left{margin-right:var(--fa-pull-margin,.3em);width:auto}.svg-inline--fa.fa-pull-right{margin-left:var(--fa-pull-margin,.3em);width:auto}.svg-inline--fa.fa-li{width:var(--fa-li-width,2em);top:.25em}.svg-inline--fa.fa-fw{width:var(--fa-fw-width,1.25em)}.fa-layers svg.svg-inline--fa{bottom:0;left:0;margin:auto;position:absolute;right:0;top:0}.fa-layers-counter,.fa-layers-text{display:inline-block;position:absolute;text-align:center}.fa-layers{display:inline-block;height:1em;position:relative;text-align:center;vertical-align:-.125em;width:1em}.fa-layers svg.svg-inline--fa{transform-origin:center center}.fa-layers-text{left:50%;top:50%;transform:translate(-50%,-50%);transform-origin:center center}.fa-layers-counter{background-color:var(--fa-counter-background-color,#ff253a);border-radius:var(--fa-counter-border-radius,1em);box-sizing:border-box;color:var(--fa-inverse,#fff);line-height:var(--fa-counter-line-height,1);max-width:var(--fa-counter-max-width,5em);min-width:var(--fa-counter-min-width,1.5em);overflow:hidden;padding:var(--fa-counter-padding,.25em .5em);right:var(--fa-right,0);text-overflow:ellipsis;top:var(--fa-top,0);transform:scale(var(--fa-counter-scale,.25));transform-origin:top right}.fa-layers-bottom-right{bottom:var(--fa-bottom,0);right:var(--fa-right,0);top:auto;transform:scale(var(--fa-layers-scale,.25));transform-origin:bottom right}.fa-layers-bottom-left{bottom:var(--fa-bottom,0);left:var(--fa-left,0);right:auto;top:auto;transform:scale(var(--fa-layers-scale,.25));transform-origin:bottom left}.fa-layers-top-right{top:var(--fa-top,0);right:var(--fa-right,0);transform:scale(var(--fa-layers-scale,.25));transform-origin:top right}.fa-layers-top-left{left:var(--fa-left,0);right:auto;top:var(--fa-top,0);transform:scale(var(--fa-layers-scale,.25));transform-origin:top left}.fa-1x{font-size:1em}.fa-2x{font-size:2em}.fa-3x{font-size:3em}.fa-4x{font-size:4em}.fa-5x{font-size:5em}.fa-6x{font-size:6em}.fa-7x{font-size:7em}.fa-8x{font-size:8em}.fa-9x{font-size:9em}.fa-10x{font-size:10em}.fa-2xs{font-size:.625em;line-height:.1em;vertical-align:.225em}.fa-xs{font-size:.75em;line-height:.0833333337em;vertical-align:.125em}.fa-sm{font-size:.875em;line-height:.0714285718em;vertical-align:.0535714295em}.fa-lg{font-size:1.25em;line-height:.05em;vertical-align:-.075em}.fa-xl{font-size:1.5em;line-height:.0416666682em;vertical-align:-.125em}.fa-2xl{font-size:2em;line-height:.03125em;vertical-align:-.1875em}.fa-fw{text-align:center;width:1.25em}.fa-ul{list-style-type:none;margin-left:var(--fa-li-margin,2.5em);padding-left:0}.fa-ul>li{position:relative}.fa-li{left:calc(-1 * var(--fa-li-width,2em));position:absolute;text-align:center;width:var(--fa-li-width,2em);line-height:inherit}.fa-border{border-color:var(--fa-border-color,#eee);border-radius:var(--fa-border-radius,.1em);border-style:var(--fa-border-style,solid);border-width:var(--fa-border-width,.08em);padding:var(--fa-border-padding,.2em .25em .15em)}.fa-pull-left{float:left;margin-right:var(--fa-pull-margin,.3em)}.fa-pull-right{float:right;margin-left:var(--fa-pull-margin,.3em)}.fa-beat{animation-name:fa-beat;animation-delay:var(--fa-animation-delay,0s);animation-direction:var(--fa-animation-direction,normal);animation-duration:var(--fa-animation-duration,1s);animation-iteration-count:var(--fa-animation-iteration-count,infinite);animation-timing-function:var(--fa-animation-timing,ease-in-out)}.fa-bounce{animation-name:fa-bounce;animation-delay:var(--fa-animation-delay,0s);animation-direction:var(--fa-animation-direction,normal);animation-duration:var(--fa-animation-duration,1s);animation-iteration-count:var(--fa-animation-iteration-count,infinite);animation-timing-function:var(--fa-animation-timing,cubic-bezier(.28,.84,.42,1))}.fa-fade{animation-name:fa-fade;animation-delay:var(--fa-animation-delay,0s);animation-direction:var(--fa-animation-direction,normal);animation-duration:var(--fa-animation-duration,1s);animation-iteration-count:var(--fa-animation-iteration-count,infinite);animation-timing-function:var(--fa-animation-timing,cubic-bezier(.4,0,.6,1))}.fa-beat-fade{animation-name:fa-beat-fade;animation-delay:var(--fa-animation-delay,0s);animation-direction:var(--fa-animation-direction,normal);animation-duration:var(--fa-animation-duration,1s);animation-iteration-count:var(--fa-animation-iteration-count,infinite);animation-timing-function:var(--fa-animation-timing,cubic-bezier(.4,0,.6,1))}.fa-flip{animation-name:fa-flip;animation-delay:var(--fa-animation-delay,0s);animation-direction:var(--fa-animation-direction,normal);animation-duration:var(--fa-animation-duration,1s);animation-iteration-count:var(--fa-animation-iteration-count,infinite);animation-timing-function:var(--fa-animation-timing,ease-in-out)}.fa-shake{animation-name:fa-shake;animation-delay:var(--fa-animation-delay,0s);animation-direction:var(--fa-animation-direction,normal);animation-duration:var(--fa-animation-duration,1s);animation-iteration-count:var(--fa-animation-iteration-count,infinite);animation-timing-function:var(--fa-animation-timing,linear)}.fa-spin{animation-name:fa-spin;animation-delay:var(--fa-animation-delay,0s);animation-direction:var(--fa-animation-direction,normal);animation-duration:var(--fa-animation-duration,2s);animation-iteration-count:var(--fa-animation-iteration-count,infinite);animation-timing-function:var(--fa-animation-timing,linear)}.fa-spin-reverse{--fa-animation-direction:reverse}.fa-pulse,.fa-spin-pulse{animation-name:fa-spin;animation-direction:var(--fa-animation-direction,normal);animation-duration:var(--fa-animation-duration,1s);animation-iteration-count:var(--fa-animation-iteration-count,infinite);animation-timing-function:var(--fa-animation-timing,steps(8))}@media (prefers-reduced-motion:reduce){.fa-beat,.fa-beat-fade,.fa-bounce,.fa-fade,.fa-flip,.fa-pulse,.fa-shake,.fa-spin,.fa-spin-pulse{animation-delay:-1ms;animation-duration:1ms;animation-iteration-count:1;transition-delay:0s;transition-duration:0s}}@keyframes fa-beat{0%,90%{transform:scale(1)}45%{transform:scale(var(--fa-beat-scale,1.25))}}@keyframes fa-bounce{0%{transform:scale(1,1) translateY(0)}10%{transform:scale(var(--fa-bounce-start-scale-x,1.1),var(--fa-bounce-start-scale-y,.9)) translateY(0)}30%{transform:scale(var(--fa-bounce-jump-scale-x,.9),var(--fa-bounce-jump-scale-y,1.1)) translateY(var(--fa-bounce-height,-.5em))}50%{transform:scale(var(--fa-bounce-land-scale-x,1.05),var(--fa-bounce-land-scale-y,.95)) translateY(0)}57%{transform:scale(1,1) translateY(var(--fa-bounce-rebound,-.125em))}64%{transform:scale(1,1) translateY(0)}100%{transform:scale(1,1) translateY(0)}}@keyframes fa-fade{50%{opacity:var(--fa-fade-opacity,.4)}}@keyframes fa-beat-fade{0%,100%{opacity:var(--fa-beat-fade-opacity,.4);transform:scale(1)}50%{opacity:1;transform:scale(var(--fa-beat-fade-scale,1.125))}}@keyframes fa-flip{50%{transform:rotate3d(var(--fa-flip-x,0),var(--fa-flip-y,1),var(--fa-flip-z,0),var(--fa-flip-angle,-180deg))}}@keyframes fa-shake{0%{transform:rotate(-15deg)}4%{transform:rotate(15deg)}24%,8%{transform:rotate(-18deg)}12%,28%{transform:rotate(18deg)}16%{transform:rotate(-22deg)}20%{transform:rotate(22deg)}32%{transform:rotate(-12deg)}36%{transform:rotate(12deg)}100%,40%{transform:rotate(0)}}@keyframes fa-spin{0%{transform:rotate(0)}100%{transform:rotate(360deg)}}.fa-rotate-90{transform:rotate(90deg)}.fa-rotate-180{transform:rotate(180deg)}.fa-rotate-270{transform:rotate(270deg)}.fa-flip-horizontal{transform:scale(-1,1)}.fa-flip-vertical{transform:scale(1,-1)}.fa-flip-both,.fa-flip-horizontal.fa-flip-vertical{transform:scale(-1,-1)}.fa-rotate-by{transform:rotate(var(--fa-rotate-angle,0))}.fa-stack{display:inline-block;vertical-align:middle;height:2em;position:relative;width:2.5em}.fa-stack-1x,.fa-stack-2x{bottom:0;left:0;margin:auto;position:absolute;right:0;top:0;z-index:var(--fa-stack-z-index,auto)}.svg-inline--fa.fa-stack-1x{height:1em;width:1.25em}.svg-inline--fa.fa-stack-2x{height:2em;width:2.5em}.fa-inverse{color:var(--fa-inverse,#fff)}.fa-sr-only,.sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border-width:0}.fa-sr-only-focusable:not(:focus),.sr-only-focusable:not(:focus){position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border-width:0}.svg-inline--fa .fa-primary{fill:var(--fa-primary-color,currentColor);opacity:var(--fa-primary-opacity,1)}.svg-inline--fa .fa-secondary{fill:var(--fa-secondary-color,currentColor);opacity:var(--fa-secondary-opacity,.4)}.svg-inline--fa.fa-swap-opacity .fa-primary{opacity:var(--fa-secondary-opacity,.4)}.svg-inline--fa.fa-swap-opacity .fa-secondary{opacity:var(--fa-primary-opacity,1)}.svg-inline--fa mask .fa-primary,.svg-inline--fa mask .fa-secondary{fill:#000}.fa-duotone.fa-inverse,.fad.fa-inverse{color:var(--fa-inverse,#fff)}";
634
561
 
635
562
  function css() {
636
- var dcp = DEFAULT_CSS_PREFIX;
637
- var drc = DEFAULT_REPLACEMENT_CLASS;
638
- var fp = config.cssPrefix;
639
- var rc = config.replacementClass;
640
- var s = baseStyles;
563
+ const dcp = DEFAULT_CSS_PREFIX;
564
+ const drc = DEFAULT_REPLACEMENT_CLASS;
565
+ const fp = config.cssPrefix;
566
+ const rc = config.replacementClass;
567
+ let s = baseStyles;
641
568
 
642
569
  if (fp !== dcp || rc !== drc) {
643
- var dPatt = new RegExp("\\.".concat(dcp, "\\-"), 'g');
644
- var customPropPatt = new RegExp("\\--".concat(dcp, "\\-"), 'g');
645
- var rPatt = new RegExp("\\.".concat(drc), 'g');
570
+ const dPatt = new RegExp("\\.".concat(dcp, "\\-"), 'g');
571
+ const customPropPatt = new RegExp("\\--".concat(dcp, "\\-"), 'g');
572
+ const rPatt = new RegExp("\\.".concat(drc), 'g');
646
573
  s = s.replace(dPatt, ".".concat(fp, "-")).replace(customPropPatt, "--".concat(fp, "-")).replace(rPatt, ".".concat(rc));
647
574
  }
648
575
 
649
576
  return s;
650
577
  }
651
578
 
652
- var _cssInserted = false;
579
+ let _cssInserted = false;
653
580
 
654
581
  function ensureCss() {
655
582
  if (config.autoAddCss && !_cssInserted) {
@@ -659,44 +586,46 @@
659
586
  }
660
587
 
661
588
  var InjectCSS = {
662
- mixout: function mixout() {
589
+ mixout() {
663
590
  return {
664
591
  dom: {
665
- css: css,
592
+ css,
666
593
  insertCss: ensureCss
667
594
  }
668
595
  };
669
596
  },
670
- hooks: function hooks() {
597
+
598
+ hooks() {
671
599
  return {
672
- beforeDOMElementCreation: function beforeDOMElementCreation() {
600
+ beforeDOMElementCreation() {
673
601
  ensureCss();
674
602
  },
675
- beforeI2svg: function beforeI2svg() {
603
+
604
+ beforeI2svg() {
676
605
  ensureCss();
677
606
  }
607
+
678
608
  };
679
609
  }
610
+
680
611
  };
681
612
 
682
- var w = WINDOW || {};
683
- if (!w[NAMESPACE_IDENTIFIER]) w[NAMESPACE_IDENTIFIER] = {};
684
- if (!w[NAMESPACE_IDENTIFIER].styles) w[NAMESPACE_IDENTIFIER].styles = {};
685
- if (!w[NAMESPACE_IDENTIFIER].hooks) w[NAMESPACE_IDENTIFIER].hooks = {};
686
- if (!w[NAMESPACE_IDENTIFIER].shims) w[NAMESPACE_IDENTIFIER].shims = [];
687
- var namespace = w[NAMESPACE_IDENTIFIER];
613
+ const w$1 = WINDOW || {};
614
+ if (!w$1[NAMESPACE_IDENTIFIER]) w$1[NAMESPACE_IDENTIFIER] = {};
615
+ if (!w$1[NAMESPACE_IDENTIFIER].styles) w$1[NAMESPACE_IDENTIFIER].styles = {};
616
+ if (!w$1[NAMESPACE_IDENTIFIER].hooks) w$1[NAMESPACE_IDENTIFIER].hooks = {};
617
+ if (!w$1[NAMESPACE_IDENTIFIER].shims) w$1[NAMESPACE_IDENTIFIER].shims = [];
618
+ var namespace = w$1[NAMESPACE_IDENTIFIER];
688
619
 
689
- var functions = [];
620
+ const functions = [];
690
621
 
691
- var listener = function listener() {
622
+ const listener = function () {
692
623
  DOCUMENT.removeEventListener('DOMContentLoaded', listener);
693
624
  loaded = 1;
694
- functions.map(function (fn) {
695
- return fn();
696
- });
625
+ functions.map(fn => fn());
697
626
  };
698
627
 
699
- var loaded = false;
628
+ let loaded = false;
700
629
 
701
630
  if (IS_DOM) {
702
631
  loaded = (DOCUMENT.documentElement.doScroll ? /^loaded|^c/ : /^loaded|^i|^c/).test(DOCUMENT.readyState);
@@ -709,11 +638,11 @@
709
638
  }
710
639
 
711
640
  function toHtml(abstractNodes) {
712
- var tag = abstractNodes.tag,
713
- _abstractNodes$attrib = abstractNodes.attributes,
714
- attributes = _abstractNodes$attrib === void 0 ? {} : _abstractNodes$attrib,
715
- _abstractNodes$childr = abstractNodes.children,
716
- children = _abstractNodes$childr === void 0 ? [] : _abstractNodes$childr;
641
+ const {
642
+ tag,
643
+ attributes = {},
644
+ children = []
645
+ } = abstractNodes;
717
646
 
718
647
  if (typeof abstractNodes === 'string') {
719
648
  return htmlEscape(abstractNodes);
@@ -725,8 +654,8 @@
725
654
  function iconFromMapping(mapping, prefix, iconName) {
726
655
  if (mapping && mapping[prefix] && mapping[prefix][iconName]) {
727
656
  return {
728
- prefix: prefix,
729
- iconName: iconName,
657
+ prefix,
658
+ iconName,
730
659
  icon: mapping[prefix][iconName]
731
660
  };
732
661
  }
@@ -805,15 +734,15 @@
805
734
  * WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
806
735
  */
807
736
  function ucs2decode(string) {
808
- var output = [];
809
- var counter = 0;
810
- var length = string.length;
737
+ const output = [];
738
+ let counter = 0;
739
+ const length = string.length;
811
740
 
812
741
  while (counter < length) {
813
- var value = string.charCodeAt(counter++);
742
+ const value = string.charCodeAt(counter++);
814
743
 
815
744
  if (value >= 0xD800 && value <= 0xDBFF && counter < length) {
816
- var extra = string.charCodeAt(counter++);
745
+ const extra = string.charCodeAt(counter++);
817
746
 
818
747
  if ((extra & 0xFC00) == 0xDC00) {
819
748
  // eslint-disable-line eqeqeq
@@ -831,13 +760,13 @@
831
760
  }
832
761
 
833
762
  function toHex(unicode) {
834
- var decoded = ucs2decode(unicode);
763
+ const decoded = ucs2decode(unicode);
835
764
  return decoded.length === 1 ? decoded[0].toString(16) : null;
836
765
  }
837
766
  function codePointAt(string, index) {
838
- var size = string.length;
839
- var first = string.charCodeAt(index);
840
- var second;
767
+ const size = string.length;
768
+ let first = string.charCodeAt(index);
769
+ let second;
841
770
 
842
771
  if (first >= 0xD800 && first <= 0xDBFF && size > index + 1) {
843
772
  second = string.charCodeAt(index + 1);
@@ -851,9 +780,9 @@
851
780
  }
852
781
 
853
782
  function normalizeIcons(icons) {
854
- return Object.keys(icons).reduce(function (acc, iconName) {
855
- var icon = icons[iconName];
856
- var expanded = !!icon.icon;
783
+ return Object.keys(icons).reduce((acc, iconName) => {
784
+ const icon = icons[iconName];
785
+ const expanded = !!icon.icon;
857
786
 
858
787
  if (expanded) {
859
788
  acc[icon.iconName] = icon.icon;
@@ -866,15 +795,18 @@
866
795
  }
867
796
 
868
797
  function defineIcons(prefix, icons) {
869
- var params = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : {};
870
- var _params$skipHooks = params.skipHooks,
871
- skipHooks = _params$skipHooks === void 0 ? false : _params$skipHooks;
872
- var normalized = normalizeIcons(icons);
798
+ let params = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : {};
799
+ const {
800
+ skipHooks = false
801
+ } = params;
802
+ const normalized = normalizeIcons(icons);
873
803
 
874
804
  if (typeof namespace.hooks.addPack === 'function' && !skipHooks) {
875
805
  namespace.hooks.addPack(prefix, normalizeIcons(icons));
876
806
  } else {
877
- namespace.styles[prefix] = _objectSpread2(_objectSpread2({}, namespace.styles[prefix] || {}), normalized);
807
+ namespace.styles[prefix] = { ...(namespace.styles[prefix] || {}),
808
+ ...normalized
809
+ };
878
810
  }
879
811
  /**
880
812
  * Font Awesome 4 used the prefix of `fa` for all icons. With the introduction
@@ -889,39 +821,35 @@
889
821
  }
890
822
  }
891
823
 
892
- var duotonePathRe = [/*#__PURE__*/_wrapRegExp(/path d="((?:(?!")[\s\S])+)".*path d="((?:(?!")[\s\S])+)"/, {
893
- d1: 1,
894
- d2: 2
895
- }), /*#__PURE__*/_wrapRegExp(/path class="((?:(?!")[\s\S])+)".*d="((?:(?!")[\s\S])+)".*path class="((?:(?!")[\s\S])+)".*d="((?:(?!")[\s\S])+)"/, {
896
- cls1: 1,
897
- d1: 2,
898
- cls2: 3,
899
- d2: 4
900
- }), /*#__PURE__*/_wrapRegExp(/path class="((?:(?!")[\s\S])+)".*d="((?:(?!")[\s\S])+)"/, {
901
- cls1: 1,
902
- d1: 2
903
- })];
904
-
905
- var _LONG_STYLE, _PREFIXES, _PREFIXES_FOR_FAMILY;
906
- var styles = namespace.styles,
907
- shims = namespace.shims;
908
- var LONG_STYLE = (_LONG_STYLE = {}, _defineProperty(_LONG_STYLE, FAMILY_CLASSIC, Object.values(PREFIX_TO_LONG_STYLE[FAMILY_CLASSIC])), _defineProperty(_LONG_STYLE, FAMILY_SHARP, Object.values(PREFIX_TO_LONG_STYLE[FAMILY_SHARP])), _LONG_STYLE);
909
- var _defaultUsablePrefix = null;
910
- var _byUnicode = {};
911
- var _byLigature = {};
912
- var _byOldName = {};
913
- var _byOldUnicode = {};
914
- var _byAlias = {};
915
- var PREFIXES = (_PREFIXES = {}, _defineProperty(_PREFIXES, FAMILY_CLASSIC, Object.keys(PREFIX_TO_STYLE[FAMILY_CLASSIC])), _defineProperty(_PREFIXES, FAMILY_SHARP, Object.keys(PREFIX_TO_STYLE[FAMILY_SHARP])), _PREFIXES);
824
+ const {
825
+ styles,
826
+ shims
827
+ } = namespace;
828
+ const LONG_STYLE = {
829
+ [a]: Object.values(PREFIX_TO_LONG_STYLE[a]),
830
+ [r]: Object.values(PREFIX_TO_LONG_STYLE[r]),
831
+ [o]: Object.values(PREFIX_TO_LONG_STYLE[o])
832
+ };
833
+ let _defaultUsablePrefix = null;
834
+ let _byUnicode = {};
835
+ let _byLigature = {};
836
+ let _byOldName = {};
837
+ let _byOldUnicode = {};
838
+ let _byAlias = {};
839
+ const PREFIXES = {
840
+ [a]: Object.keys(PREFIX_TO_STYLE[a]),
841
+ [r]: Object.keys(PREFIX_TO_STYLE[r]),
842
+ [o]: Object.keys(PREFIX_TO_STYLE[o])
843
+ };
916
844
 
917
845
  function isReserved(name) {
918
846
  return ~RESERVED_CLASSES.indexOf(name);
919
847
  }
920
848
 
921
849
  function getIconName(cssPrefix, cls) {
922
- var parts = cls.split('-');
923
- var prefix = parts[0];
924
- var iconName = parts.slice(1).join('-');
850
+ const parts = cls.split('-');
851
+ const prefix = parts[0];
852
+ const iconName = parts.slice(1).join('-');
925
853
 
926
854
  if (prefix === cssPrefix && iconName !== '' && !isReserved(iconName)) {
927
855
  return iconName;
@@ -929,59 +857,59 @@
929
857
  return null;
930
858
  }
931
859
  }
932
- var build = function build() {
933
- var lookup = function lookup(reducer) {
934
- return reduce(styles, function (o, style, prefix) {
935
- o[prefix] = reduce(style, reducer, {});
936
- return o;
860
+ const build = () => {
861
+ const lookup = reducer => {
862
+ return reduce(styles, (o$$1, style, prefix) => {
863
+ o$$1[prefix] = reduce(style, reducer, {});
864
+ return o$$1;
937
865
  }, {});
938
866
  };
939
867
 
940
- _byUnicode = lookup(function (acc, icon, iconName) {
868
+ _byUnicode = lookup((acc, icon, iconName) => {
941
869
  if (icon[3]) {
942
870
  acc[icon[3]] = iconName;
943
871
  }
944
872
 
945
873
  if (icon[2]) {
946
- var aliases = icon[2].filter(function (a) {
947
- return typeof a === 'number';
874
+ const aliases = icon[2].filter(a$$1 => {
875
+ return typeof a$$1 === 'number';
948
876
  });
949
- aliases.forEach(function (alias) {
877
+ aliases.forEach(alias => {
950
878
  acc[alias.toString(16)] = iconName;
951
879
  });
952
880
  }
953
881
 
954
882
  return acc;
955
883
  });
956
- _byLigature = lookup(function (acc, icon, iconName) {
884
+ _byLigature = lookup((acc, icon, iconName) => {
957
885
  acc[iconName] = iconName;
958
886
 
959
887
  if (icon[2]) {
960
- var aliases = icon[2].filter(function (a) {
961
- return typeof a === 'string';
888
+ const aliases = icon[2].filter(a$$1 => {
889
+ return typeof a$$1 === 'string';
962
890
  });
963
- aliases.forEach(function (alias) {
891
+ aliases.forEach(alias => {
964
892
  acc[alias] = iconName;
965
893
  });
966
894
  }
967
895
 
968
896
  return acc;
969
897
  });
970
- _byAlias = lookup(function (acc, icon, iconName) {
971
- var aliases = icon[2];
898
+ _byAlias = lookup((acc, icon, iconName) => {
899
+ const aliases = icon[2];
972
900
  acc[iconName] = iconName;
973
- aliases.forEach(function (alias) {
901
+ aliases.forEach(alias => {
974
902
  acc[alias] = iconName;
975
903
  });
976
904
  return acc;
977
905
  }); // If we have a Kit, we can't determine if regular is available since we
978
906
  // could be auto-fetching it. We'll have to assume that it is available.
979
907
 
980
- var hasRegular = 'far' in styles || config.autoFetchSvg;
981
- var shimLookups = reduce(shims, function (acc, shim) {
982
- var maybeNameMaybeUnicode = shim[0];
983
- var prefix = shim[1];
984
- var iconName = shim[2];
908
+ const hasRegular = 'far' in styles || config.autoFetchSvg;
909
+ const shimLookups = reduce(shims, (acc, shim) => {
910
+ const maybeNameMaybeUnicode = shim[0];
911
+ let prefix = shim[1];
912
+ const iconName = shim[2];
985
913
 
986
914
  if (prefix === 'far' && !hasRegular) {
987
915
  prefix = 'fas';
@@ -989,15 +917,15 @@
989
917
 
990
918
  if (typeof maybeNameMaybeUnicode === 'string') {
991
919
  acc.names[maybeNameMaybeUnicode] = {
992
- prefix: prefix,
993
- iconName: iconName
920
+ prefix,
921
+ iconName
994
922
  };
995
923
  }
996
924
 
997
925
  if (typeof maybeNameMaybeUnicode === 'number') {
998
926
  acc.unicodes[maybeNameMaybeUnicode.toString(16)] = {
999
- prefix: prefix,
1000
- iconName: iconName
927
+ prefix,
928
+ iconName
1001
929
  };
1002
930
  }
1003
931
 
@@ -1012,8 +940,8 @@
1012
940
  family: config.familyDefault
1013
941
  });
1014
942
  };
1015
- onChange(function (c) {
1016
- _defaultUsablePrefix = getCanonicalPrefix(c.styleDefault, {
943
+ onChange(c$$1 => {
944
+ _defaultUsablePrefix = getCanonicalPrefix(c$$1.styleDefault, {
1017
945
  family: config.familyDefault
1018
946
  });
1019
947
  });
@@ -1034,8 +962,8 @@
1034
962
  };
1035
963
  }
1036
964
  function byOldUnicode(unicode) {
1037
- var oldUnicode = _byOldUnicode[unicode];
1038
- var newUnicode = byUnicode('fas', unicode);
965
+ const oldUnicode = _byOldUnicode[unicode];
966
+ const newUnicode = byUnicode('fas', unicode);
1039
967
  return oldUnicode || (newUnicode ? {
1040
968
  prefix: 'fas',
1041
969
  iconName: newUnicode
@@ -1047,7 +975,7 @@
1047
975
  function getDefaultUsablePrefix() {
1048
976
  return _defaultUsablePrefix;
1049
977
  }
1050
- var emptyCanonicalIcon = function emptyCanonicalIcon() {
978
+ const emptyCanonicalIcon = () => {
1051
979
  return {
1052
980
  prefix: null,
1053
981
  iconName: null,
@@ -1055,39 +983,41 @@
1055
983
  };
1056
984
  };
1057
985
  function getCanonicalPrefix(styleOrPrefix) {
1058
- var params = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};
1059
- var _params$family = params.family,
1060
- family = _params$family === void 0 ? FAMILY_CLASSIC : _params$family;
1061
- var style = PREFIX_TO_STYLE[family][styleOrPrefix];
1062
- var prefix = STYLE_TO_PREFIX[family][styleOrPrefix] || STYLE_TO_PREFIX[family][style];
1063
- var defined = styleOrPrefix in namespace.styles ? styleOrPrefix : null;
1064
- return prefix || defined || null;
1065
- }
1066
- var PREFIXES_FOR_FAMILY = (_PREFIXES_FOR_FAMILY = {}, _defineProperty(_PREFIXES_FOR_FAMILY, FAMILY_CLASSIC, Object.keys(PREFIX_TO_LONG_STYLE[FAMILY_CLASSIC])), _defineProperty(_PREFIXES_FOR_FAMILY, FAMILY_SHARP, Object.keys(PREFIX_TO_LONG_STYLE[FAMILY_SHARP])), _PREFIXES_FOR_FAMILY);
986
+ let params = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};
987
+ const {
988
+ family = a
989
+ } = params;
990
+ const style = PREFIX_TO_STYLE[family][styleOrPrefix];
991
+ const prefix = STYLE_TO_PREFIX[family][styleOrPrefix] || STYLE_TO_PREFIX[family][style];
992
+ const defined = styleOrPrefix in namespace.styles ? styleOrPrefix : null;
993
+ const result = prefix || defined || null;
994
+ return result;
995
+ }
996
+ const PREFIXES_FOR_FAMILY = {
997
+ [a]: Object.keys(PREFIX_TO_LONG_STYLE[a]),
998
+ [r]: Object.keys(PREFIX_TO_LONG_STYLE[r]),
999
+ [o]: Object.keys(PREFIX_TO_LONG_STYLE[o])
1000
+ };
1067
1001
  function getCanonicalIcon(values) {
1068
- var _famProps;
1069
-
1070
- var params = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};
1071
- var _params$skipLookups = params.skipLookups,
1072
- skipLookups = _params$skipLookups === void 0 ? false : _params$skipLookups;
1073
- var famProps = (_famProps = {}, _defineProperty(_famProps, FAMILY_CLASSIC, "".concat(config.cssPrefix, "-").concat(FAMILY_CLASSIC)), _defineProperty(_famProps, FAMILY_SHARP, "".concat(config.cssPrefix, "-").concat(FAMILY_SHARP)), _famProps);
1074
- var givenPrefix = null;
1075
- var family = FAMILY_CLASSIC;
1076
-
1077
- if (values.includes(famProps[FAMILY_CLASSIC]) || values.some(function (v) {
1078
- return PREFIXES_FOR_FAMILY[FAMILY_CLASSIC].includes(v);
1079
- })) {
1080
- family = FAMILY_CLASSIC;
1081
- }
1082
-
1083
- if (values.includes(famProps[FAMILY_SHARP]) || values.some(function (v) {
1084
- return PREFIXES_FOR_FAMILY[FAMILY_SHARP].includes(v);
1085
- })) {
1086
- family = FAMILY_SHARP;
1087
- }
1088
-
1089
- var canonical = values.reduce(function (acc, cls) {
1090
- var iconName = getIconName(config.cssPrefix, cls);
1002
+ let params = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};
1003
+ const {
1004
+ skipLookups = false
1005
+ } = params;
1006
+ const famProps = {
1007
+ [a]: "".concat(config.cssPrefix, "-").concat(a),
1008
+ [r]: "".concat(config.cssPrefix, "-").concat(r),
1009
+ [o]: "".concat(config.cssPrefix, "-").concat(o)
1010
+ };
1011
+ let givenPrefix = null;
1012
+ let family = a;
1013
+ const nonDuotoneFamilyIds = c.filter(familyId => familyId !== t);
1014
+ nonDuotoneFamilyIds.forEach(familyId => {
1015
+ if (values.includes(famProps[familyId]) || values.some(v$$1 => PREFIXES_FOR_FAMILY[familyId].includes(v$$1))) {
1016
+ family = familyId;
1017
+ }
1018
+ });
1019
+ const canonical = values.reduce((acc, cls) => {
1020
+ const iconName = getIconName(config.cssPrefix, cls);
1091
1021
 
1092
1022
  if (styles[cls]) {
1093
1023
  cls = LONG_STYLE[family].includes(cls) ? LONG_STYLE_TO_PREFIX[family][cls] : cls;
@@ -1096,17 +1026,17 @@
1096
1026
  } else if (PREFIXES[family].indexOf(cls) > -1) {
1097
1027
  givenPrefix = cls;
1098
1028
  acc.prefix = getCanonicalPrefix(cls, {
1099
- family: family
1029
+ family
1100
1030
  });
1101
1031
  } else if (iconName) {
1102
1032
  acc.iconName = iconName;
1103
- } else if (cls !== config.replacementClass && cls !== famProps[FAMILY_CLASSIC] && cls !== famProps[FAMILY_SHARP]) {
1033
+ } else if (cls !== config.replacementClass && !nonDuotoneFamilyIds.some(familyName => cls === famProps[familyName])) {
1104
1034
  acc.rest.push(cls);
1105
1035
  }
1106
1036
 
1107
1037
  if (!skipLookups && acc.prefix && acc.iconName) {
1108
- var shim = givenPrefix === 'fa' ? byOldName(acc.iconName) : {};
1109
- var aliasIconName = byAlias(acc.prefix, acc.iconName);
1038
+ const shim = givenPrefix === 'fa' ? byOldName(acc.iconName) : {};
1039
+ const aliasIconName = byAlias(acc.prefix, acc.iconName);
1110
1040
 
1111
1041
  if (shim.prefix) {
1112
1042
  givenPrefix = null;
@@ -1133,11 +1063,16 @@
1133
1063
  canonical.prefix = 'fad';
1134
1064
  }
1135
1065
 
1136
- if (!canonical.prefix && family === FAMILY_SHARP && (styles['fass'] || config.autoFetchSvg)) {
1066
+ if (!canonical.prefix && family === r && (styles['fass'] || config.autoFetchSvg)) {
1137
1067
  canonical.prefix = 'fass';
1138
1068
  canonical.iconName = byAlias(canonical.prefix, canonical.iconName) || canonical.iconName;
1139
1069
  }
1140
1070
 
1071
+ if (!canonical.prefix && family === o && (styles['fasds'] || config.autoFetchSvg)) {
1072
+ canonical.prefix = 'fasds';
1073
+ canonical.iconName = byAlias(canonical.prefix, canonical.iconName) || canonical.iconName;
1074
+ }
1075
+
1141
1076
  if (canonical.prefix === 'fa' || givenPrefix === 'fa') {
1142
1077
  // The fa prefix is not canonical. So if it has made it through until this point
1143
1078
  // we will shift it to the correct prefix.
@@ -1147,91 +1082,86 @@
1147
1082
  return canonical;
1148
1083
  }
1149
1084
 
1150
- var Library = /*#__PURE__*/function () {
1151
- function Library() {
1152
- _classCallCheck(this, Library);
1153
-
1085
+ class Library {
1086
+ constructor() {
1154
1087
  this.definitions = {};
1155
1088
  }
1156
1089
 
1157
- _createClass(Library, [{
1158
- key: "add",
1159
- value: function add() {
1160
- var _this = this;
1090
+ add() {
1091
+ for (var _len = arguments.length, definitions = new Array(_len), _key = 0; _key < _len; _key++) {
1092
+ definitions[_key] = arguments[_key];
1093
+ }
1161
1094
 
1162
- for (var _len = arguments.length, definitions = new Array(_len), _key = 0; _key < _len; _key++) {
1163
- definitions[_key] = arguments[_key];
1164
- }
1095
+ const additions = definitions.reduce(this._pullDefinitions, {});
1096
+ Object.keys(additions).forEach(key => {
1097
+ this.definitions[key] = { ...(this.definitions[key] || {}),
1098
+ ...additions[key]
1099
+ };
1100
+ defineIcons(key, additions[key]); // TODO can we stop doing this? We can't get the icons by 'fa-solid' any longer so this probably needs to change
1101
+
1102
+ const longPrefix = PREFIX_TO_LONG_STYLE[a][key];
1103
+ if (longPrefix) defineIcons(longPrefix, additions[key]);
1104
+ build();
1105
+ });
1106
+ }
1165
1107
 
1166
- var additions = definitions.reduce(this._pullDefinitions, {});
1167
- Object.keys(additions).forEach(function (key) {
1168
- _this.definitions[key] = _objectSpread2(_objectSpread2({}, _this.definitions[key] || {}), additions[key]);
1169
- defineIcons(key, additions[key]); // TODO can we stop doing this? We can't get the icons by 'fa-solid' any longer so this probably needs to change
1108
+ reset() {
1109
+ this.definitions = {};
1110
+ }
1170
1111
 
1171
- var longPrefix = PREFIX_TO_LONG_STYLE[FAMILY_CLASSIC][key];
1172
- if (longPrefix) defineIcons(longPrefix, additions[key]);
1173
- build();
1174
- });
1175
- }
1176
- }, {
1177
- key: "reset",
1178
- value: function reset() {
1179
- this.definitions = {};
1180
- }
1181
- }, {
1182
- key: "_pullDefinitions",
1183
- value: function _pullDefinitions(additions, definition) {
1184
- var normalized = definition.prefix && definition.iconName && definition.icon ? {
1185
- 0: definition
1186
- } : definition;
1187
- Object.keys(normalized).map(function (key) {
1188
- var _normalized$key = normalized[key],
1189
- prefix = _normalized$key.prefix,
1190
- iconName = _normalized$key.iconName,
1191
- icon = _normalized$key.icon;
1192
- var aliases = icon[2];
1193
- if (!additions[prefix]) additions[prefix] = {};
1194
-
1195
- if (aliases.length > 0) {
1196
- aliases.forEach(function (alias) {
1197
- if (typeof alias === 'string') {
1198
- additions[prefix][alias] = icon;
1199
- }
1200
- });
1201
- }
1112
+ _pullDefinitions(additions, definition) {
1113
+ const normalized = definition.prefix && definition.iconName && definition.icon ? {
1114
+ 0: definition
1115
+ } : definition;
1116
+ Object.keys(normalized).map(key => {
1117
+ const {
1118
+ prefix,
1119
+ iconName,
1120
+ icon
1121
+ } = normalized[key];
1122
+ const aliases = icon[2];
1123
+ if (!additions[prefix]) additions[prefix] = {};
1124
+
1125
+ if (aliases.length > 0) {
1126
+ aliases.forEach(alias => {
1127
+ if (typeof alias === 'string') {
1128
+ additions[prefix][alias] = icon;
1129
+ }
1130
+ });
1131
+ }
1202
1132
 
1203
- additions[prefix][iconName] = icon;
1204
- });
1205
- return additions;
1206
- }
1207
- }]);
1133
+ additions[prefix][iconName] = icon;
1134
+ });
1135
+ return additions;
1136
+ }
1208
1137
 
1209
- return Library;
1210
- }();
1138
+ }
1211
1139
 
1212
- var _plugins = [];
1213
- var _hooks = {};
1214
- var providers = {};
1215
- var defaultProviderKeys = Object.keys(providers);
1140
+ let _plugins = [];
1141
+ let _hooks = {};
1142
+ const providers = {};
1143
+ const defaultProviderKeys = Object.keys(providers);
1216
1144
  function registerPlugins(nextPlugins, _ref) {
1217
- var obj = _ref.mixoutsTo;
1145
+ let {
1146
+ mixoutsTo: obj
1147
+ } = _ref;
1218
1148
  _plugins = nextPlugins;
1219
1149
  _hooks = {};
1220
- Object.keys(providers).forEach(function (k) {
1150
+ Object.keys(providers).forEach(k => {
1221
1151
  if (defaultProviderKeys.indexOf(k) === -1) {
1222
1152
  delete providers[k];
1223
1153
  }
1224
1154
  });
1225
1155
 
1226
- _plugins.forEach(function (plugin) {
1227
- var mixout = plugin.mixout ? plugin.mixout() : {};
1228
- Object.keys(mixout).forEach(function (tk) {
1156
+ _plugins.forEach(plugin => {
1157
+ const mixout = plugin.mixout ? plugin.mixout() : {};
1158
+ Object.keys(mixout).forEach(tk => {
1229
1159
  if (typeof mixout[tk] === 'function') {
1230
1160
  obj[tk] = mixout[tk];
1231
1161
  }
1232
1162
 
1233
- if (_typeof(mixout[tk]) === 'object') {
1234
- Object.keys(mixout[tk]).forEach(function (sk) {
1163
+ if (typeof mixout[tk] === 'object') {
1164
+ Object.keys(mixout[tk]).forEach(sk => {
1235
1165
  if (!obj[tk]) {
1236
1166
  obj[tk] = {};
1237
1167
  }
@@ -1242,8 +1172,8 @@
1242
1172
  });
1243
1173
 
1244
1174
  if (plugin.hooks) {
1245
- var hooks = plugin.hooks();
1246
- Object.keys(hooks).forEach(function (hook) {
1175
+ const hooks = plugin.hooks();
1176
+ Object.keys(hooks).forEach(hook => {
1247
1177
  if (!_hooks[hook]) {
1248
1178
  _hooks[hook] = [];
1249
1179
  }
@@ -1264,9 +1194,9 @@
1264
1194
  args[_key - 2] = arguments[_key];
1265
1195
  }
1266
1196
 
1267
- var hookFns = _hooks[hook] || [];
1268
- hookFns.forEach(function (hookFn) {
1269
- accumulator = hookFn.apply(null, [accumulator].concat(args)); // eslint-disable-line no-useless-call
1197
+ const hookFns = _hooks[hook] || [];
1198
+ hookFns.forEach(hookFn => {
1199
+ accumulator = hookFn.apply(null, [accumulator, ...args]); // eslint-disable-line no-useless-call
1270
1200
  });
1271
1201
  return accumulator;
1272
1202
  }
@@ -1275,15 +1205,15 @@
1275
1205
  args[_key2 - 1] = arguments[_key2];
1276
1206
  }
1277
1207
 
1278
- var hookFns = _hooks[hook] || [];
1279
- hookFns.forEach(function (hookFn) {
1208
+ const hookFns = _hooks[hook] || [];
1209
+ hookFns.forEach(hookFn => {
1280
1210
  hookFn.apply(null, args);
1281
1211
  });
1282
1212
  return undefined;
1283
1213
  }
1284
1214
  function callProvided() {
1285
- var hook = arguments[0];
1286
- var args = Array.prototype.slice.call(arguments, 1);
1215
+ const hook = arguments[0];
1216
+ const args = Array.prototype.slice.call(arguments, 1);
1287
1217
  return providers[hook] ? providers[hook].apply(null, args) : undefined;
1288
1218
  }
1289
1219
 
@@ -1292,71 +1222,75 @@
1292
1222
  iconLookup.prefix = 'fas';
1293
1223
  }
1294
1224
 
1295
- var iconName = iconLookup.iconName;
1296
- var prefix = iconLookup.prefix || getDefaultUsablePrefix();
1225
+ let {
1226
+ iconName
1227
+ } = iconLookup;
1228
+ const prefix = iconLookup.prefix || getDefaultUsablePrefix();
1297
1229
  if (!iconName) return;
1298
1230
  iconName = byAlias(prefix, iconName) || iconName;
1299
1231
  return iconFromMapping(library.definitions, prefix, iconName) || iconFromMapping(namespace.styles, prefix, iconName);
1300
1232
  }
1301
- var library = new Library();
1302
- var noAuto = function noAuto() {
1233
+ const library = new Library();
1234
+ const noAuto = () => {
1303
1235
  config.autoReplaceSvg = false;
1304
1236
  config.observeMutations = false;
1305
1237
  callHooks('noAuto');
1306
1238
  };
1307
- var dom = {
1308
- i2svg: function i2svg() {
1309
- var params = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};
1239
+ const dom = {
1240
+ i2svg: function () {
1241
+ let params = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};
1310
1242
 
1311
1243
  if (IS_DOM) {
1312
1244
  callHooks('beforeI2svg', params);
1313
1245
  callProvided('pseudoElements2svg', params);
1314
1246
  return callProvided('i2svg', params);
1315
1247
  } else {
1316
- return Promise.reject('Operation requires a DOM of some kind.');
1248
+ return Promise.reject(new Error('Operation requires a DOM of some kind.'));
1317
1249
  }
1318
1250
  },
1319
- watch: function watch() {
1320
- var params = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};
1321
- var autoReplaceSvgRoot = params.autoReplaceSvgRoot;
1251
+ watch: function () {
1252
+ let params = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};
1253
+ const {
1254
+ autoReplaceSvgRoot
1255
+ } = params;
1322
1256
 
1323
1257
  if (config.autoReplaceSvg === false) {
1324
1258
  config.autoReplaceSvg = true;
1325
1259
  }
1326
1260
 
1327
1261
  config.observeMutations = true;
1328
- domready(function () {
1262
+ domready(() => {
1329
1263
  autoReplace({
1330
- autoReplaceSvgRoot: autoReplaceSvgRoot
1264
+ autoReplaceSvgRoot
1331
1265
  });
1332
1266
  callHooks('watch', params);
1333
1267
  });
1334
1268
  }
1335
1269
  };
1336
- var parse = {
1337
- icon: function icon(_icon) {
1338
- if (_icon === null) {
1270
+ const parse = {
1271
+ icon: icon => {
1272
+ if (icon === null) {
1339
1273
  return null;
1340
1274
  }
1341
1275
 
1342
- if (_typeof(_icon) === 'object' && _icon.prefix && _icon.iconName) {
1276
+ if (typeof icon === 'object' && icon.prefix && icon.iconName) {
1343
1277
  return {
1344
- prefix: _icon.prefix,
1345
- iconName: byAlias(_icon.prefix, _icon.iconName) || _icon.iconName
1278
+ prefix: icon.prefix,
1279
+ iconName: byAlias(icon.prefix, icon.iconName) || icon.iconName
1346
1280
  };
1347
1281
  }
1348
1282
 
1349
- if (Array.isArray(_icon) && _icon.length === 2) {
1350
- var iconName = _icon[1].indexOf('fa-') === 0 ? _icon[1].slice(3) : _icon[1];
1351
- var prefix = getCanonicalPrefix(_icon[0]);
1283
+ if (Array.isArray(icon) && icon.length === 2) {
1284
+ const iconName = icon[1].indexOf('fa-') === 0 ? icon[1].slice(3) : icon[1];
1285
+ const prefix = getCanonicalPrefix(icon[0]);
1352
1286
  return {
1353
- prefix: prefix,
1287
+ prefix,
1354
1288
  iconName: byAlias(prefix, iconName) || iconName
1355
1289
  };
1356
1290
  }
1357
1291
 
1358
- if (typeof _icon === 'string' && (_icon.indexOf("".concat(config.cssPrefix, "-")) > -1 || _icon.match(ICON_SELECTION_SYNTAX_PATTERN))) {
1359
- var canonicalIcon = getCanonicalIcon(_icon.split(' '), {
1292
+ if (typeof icon === 'string' && (icon.indexOf("".concat(config.cssPrefix, "-")) > -1 || icon.match(ICON_SELECTION_SYNTAX_PATTERN))) {
1293
+ const canonicalIcon = getCanonicalIcon(icon.split(' '), {
1360
1294
  skipLookups: true
1361
1295
  });
1362
1296
  return {
@@ -1365,30 +1299,30 @@
1365
1299
  };
1366
1300
  }
1367
1301
 
1368
- if (typeof _icon === 'string') {
1369
- var _prefix = getDefaultUsablePrefix();
1370
-
1302
+ if (typeof icon === 'string') {
1303
+ const prefix = getDefaultUsablePrefix();
1371
1304
  return {
1372
- prefix: _prefix,
1373
- iconName: byAlias(_prefix, _icon) || _icon
1305
+ prefix,
1306
+ iconName: byAlias(prefix, icon) || icon
1374
1307
  };
1375
1308
  }
1376
1309
  }
1377
1310
  };
1378
- var api = {
1379
- noAuto: noAuto,
1380
- config: config,
1381
- dom: dom,
1382
- parse: parse,
1383
- library: library,
1384
- findIconDefinition: findIconDefinition,
1385
- toHtml: toHtml
1311
+ const api = {
1312
+ noAuto,
1313
+ config,
1314
+ dom,
1315
+ parse,
1316
+ library,
1317
+ findIconDefinition,
1318
+ toHtml
1386
1319
  };
1387
1320
 
1388
- var autoReplace = function autoReplace() {
1389
- var params = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};
1390
- var _params$autoReplaceSv = params.autoReplaceSvgRoot,
1391
- autoReplaceSvgRoot = _params$autoReplaceSv === void 0 ? DOCUMENT : _params$autoReplaceSv;
1321
+ const autoReplace = function () {
1322
+ let params = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};
1323
+ const {
1324
+ autoReplaceSvgRoot = DOCUMENT
1325
+ } = params;
1392
1326
  if ((Object.keys(namespace.styles).length > 0 || config.autoFetchSvg) && IS_DOM && config.autoReplaceSvg) api.dom.i2svg({
1393
1327
  node: autoReplaceSvgRoot
1394
1328
  });
@@ -1400,38 +1334,36 @@
1400
1334
  WINDOW.FontAwesome = api;
1401
1335
  }
1402
1336
 
1403
- domready(function () {
1337
+ domready(() => {
1404
1338
  autoReplace();
1405
1339
  callHooks('bootstrap');
1406
1340
  });
1407
1341
  }
1408
1342
 
1409
- namespace.hooks = _objectSpread2(_objectSpread2({}, namespace.hooks), {}, {
1410
- addPack: function addPack(prefix, icons) {
1411
- namespace.styles[prefix] = _objectSpread2(_objectSpread2({}, namespace.styles[prefix] || {}), icons);
1343
+ namespace.hooks = { ...namespace.hooks,
1344
+ addPack: (prefix, icons) => {
1345
+ namespace.styles[prefix] = { ...(namespace.styles[prefix] || {}),
1346
+ ...icons
1347
+ };
1412
1348
  build();
1413
1349
  autoReplace();
1414
1350
  },
1415
- addPacks: function addPacks(packs) {
1416
- packs.forEach(function (_ref) {
1417
- var _ref2 = _slicedToArray(_ref, 2),
1418
- prefix = _ref2[0],
1419
- icons = _ref2[1];
1420
-
1421
- namespace.styles[prefix] = _objectSpread2(_objectSpread2({}, namespace.styles[prefix] || {}), icons);
1351
+ addPacks: packs => {
1352
+ packs.forEach(_ref => {
1353
+ let [prefix, icons] = _ref;
1354
+ namespace.styles[prefix] = { ...(namespace.styles[prefix] || {}),
1355
+ ...icons
1356
+ };
1422
1357
  });
1423
1358
  build();
1424
1359
  autoReplace();
1425
1360
  },
1426
- addShims: function addShims(shims) {
1427
- var _namespace$shims;
1428
-
1429
- (_namespace$shims = namespace.shims).push.apply(_namespace$shims, _toConsumableArray(shims));
1430
-
1361
+ addShims: shims => {
1362
+ namespace.shims.push(...shims);
1431
1363
  build();
1432
1364
  autoReplace();
1433
1365
  }
1434
- });
1366
+ };
1435
1367
  }
1436
1368
 
1437
1369
  function domVariants(val, abstractCreator) {
@@ -1439,16 +1371,14 @@
1439
1371
  get: abstractCreator
1440
1372
  });
1441
1373
  Object.defineProperty(val, 'html', {
1442
- get: function get() {
1443
- return val.abstract.map(function (a) {
1444
- return toHtml(a);
1445
- });
1374
+ get: function () {
1375
+ return val.abstract.map(a => toHtml(a));
1446
1376
  }
1447
1377
  });
1448
1378
  Object.defineProperty(val, 'node', {
1449
- get: function get() {
1379
+ get: function () {
1450
1380
  if (!IS_DOM) return;
1451
- var container = DOCUMENT.createElement('div');
1381
+ const container = DOCUMENT.createElement('div');
1452
1382
  container.innerHTML = val.html;
1453
1383
  return container.children;
1454
1384
  }
@@ -1457,39 +1387,45 @@
1457
1387
  }
1458
1388
 
1459
1389
  function asIcon (_ref) {
1460
- var children = _ref.children,
1461
- main = _ref.main,
1462
- mask = _ref.mask,
1463
- attributes = _ref.attributes,
1464
- styles = _ref.styles,
1465
- transform = _ref.transform;
1390
+ let {
1391
+ children,
1392
+ main,
1393
+ mask,
1394
+ attributes,
1395
+ styles,
1396
+ transform
1397
+ } = _ref;
1466
1398
 
1467
1399
  if (transformIsMeaningful(transform) && main.found && !mask.found) {
1468
- var width = main.width,
1469
- height = main.height;
1470
- var offset = {
1400
+ const {
1401
+ width,
1402
+ height
1403
+ } = main;
1404
+ const offset = {
1471
1405
  x: width / height / 2,
1472
1406
  y: 0.5
1473
1407
  };
1474
- attributes['style'] = joinStyles(_objectSpread2(_objectSpread2({}, styles), {}, {
1408
+ attributes['style'] = joinStyles({ ...styles,
1475
1409
  'transform-origin': "".concat(offset.x + transform.x / 16, "em ").concat(offset.y + transform.y / 16, "em")
1476
- }));
1410
+ });
1477
1411
  }
1478
1412
 
1479
1413
  return [{
1480
1414
  tag: 'svg',
1481
- attributes: attributes,
1482
- children: children
1415
+ attributes,
1416
+ children
1483
1417
  }];
1484
1418
  }
1485
1419
 
1486
1420
  function asSymbol (_ref) {
1487
- var prefix = _ref.prefix,
1488
- iconName = _ref.iconName,
1489
- children = _ref.children,
1490
- attributes = _ref.attributes,
1491
- symbol = _ref.symbol;
1492
- var id = symbol === true ? "".concat(prefix, "-").concat(config.cssPrefix, "-").concat(iconName) : symbol;
1421
+ let {
1422
+ prefix,
1423
+ iconName,
1424
+ children,
1425
+ attributes,
1426
+ symbol
1427
+ } = _ref;
1428
+ const id = symbol === true ? "".concat(prefix, "-").concat(config.cssPrefix, "-").concat(iconName) : symbol;
1493
1429
  return [{
1494
1430
  tag: 'svg',
1495
1431
  attributes: {
@@ -1497,51 +1433,48 @@
1497
1433
  },
1498
1434
  children: [{
1499
1435
  tag: 'symbol',
1500
- attributes: _objectSpread2(_objectSpread2({}, attributes), {}, {
1501
- id: id
1502
- }),
1503
- children: children
1436
+ attributes: { ...attributes,
1437
+ id
1438
+ },
1439
+ children
1504
1440
  }]
1505
1441
  }];
1506
1442
  }
1507
1443
 
1508
1444
  function makeInlineSvgAbstract(params) {
1509
- var _params$icons = params.icons,
1510
- main = _params$icons.main,
1511
- mask = _params$icons.mask,
1512
- prefix = params.prefix,
1513
- iconName = params.iconName,
1514
- transform = params.transform,
1515
- symbol = params.symbol,
1516
- title = params.title,
1517
- maskId = params.maskId,
1518
- titleId = params.titleId,
1519
- extra = params.extra,
1520
- _params$watchable = params.watchable,
1521
- watchable = _params$watchable === void 0 ? false : _params$watchable;
1522
-
1523
- var _ref = mask.found ? mask : main,
1524
- width = _ref.width,
1525
- height = _ref.height;
1526
-
1527
- var isUploadedIcon = prefix === 'fak';
1528
- var attrClass = [config.replacementClass, iconName ? "".concat(config.cssPrefix, "-").concat(iconName) : ''].filter(function (c) {
1529
- return extra.classes.indexOf(c) === -1;
1530
- }).filter(function (c) {
1531
- return c !== '' || !!c;
1532
- }).concat(extra.classes).join(' ');
1533
- var content = {
1445
+ const {
1446
+ icons: {
1447
+ main,
1448
+ mask
1449
+ },
1450
+ prefix,
1451
+ iconName,
1452
+ transform,
1453
+ symbol,
1454
+ title,
1455
+ maskId,
1456
+ titleId,
1457
+ extra,
1458
+ watchable = false
1459
+ } = params;
1460
+ const {
1461
+ width,
1462
+ height
1463
+ } = mask.found ? mask : main;
1464
+ const isUploadedIcon = prefix === 'fak';
1465
+ const attrClass = [config.replacementClass, iconName ? "".concat(config.cssPrefix, "-").concat(iconName) : ''].filter(c => extra.classes.indexOf(c) === -1).filter(c => c !== '' || !!c).concat(extra.classes).join(' ');
1466
+ let content = {
1534
1467
  children: [],
1535
- attributes: _objectSpread2(_objectSpread2({}, extra.attributes), {}, {
1468
+ attributes: { ...extra.attributes,
1536
1469
  'data-prefix': prefix,
1537
1470
  'data-icon': iconName,
1538
1471
  'class': attrClass,
1539
1472
  'role': extra.attributes.role || 'img',
1540
1473
  'xmlns': 'http://www.w3.org/2000/svg',
1541
1474
  'viewBox': "0 0 ".concat(width, " ").concat(height)
1542
- })
1475
+ }
1543
1476
  };
1544
- var uploadedIconWidthStyle = isUploadedIcon && !~extra.classes.indexOf('fa-fw') ? {
1477
+ const uploadedIconWidthStyle = isUploadedIcon && !~extra.classes.indexOf('fa-fw') ? {
1545
1478
  width: "".concat(width / height * 16 * 0.0625, "em")
1546
1479
  } : {};
1547
1480
 
@@ -1560,27 +1493,28 @@
1560
1493
  delete content.attributes.title;
1561
1494
  }
1562
1495
 
1563
- var args = _objectSpread2(_objectSpread2({}, content), {}, {
1564
- prefix: prefix,
1565
- iconName: iconName,
1566
- main: main,
1567
- mask: mask,
1568
- maskId: maskId,
1569
- transform: transform,
1570
- symbol: symbol,
1571
- styles: _objectSpread2(_objectSpread2({}, uploadedIconWidthStyle), extra.styles)
1572
- });
1573
-
1574
- var _ref2 = mask.found && main.found ? callProvided('generateAbstractMask', args) || {
1496
+ const args = { ...content,
1497
+ prefix,
1498
+ iconName,
1499
+ main,
1500
+ mask,
1501
+ maskId,
1502
+ transform,
1503
+ symbol,
1504
+ styles: { ...uploadedIconWidthStyle,
1505
+ ...extra.styles
1506
+ }
1507
+ };
1508
+ const {
1509
+ children,
1510
+ attributes
1511
+ } = mask.found && main.found ? callProvided('generateAbstractMask', args) || {
1575
1512
  children: [],
1576
1513
  attributes: {}
1577
1514
  } : callProvided('generateAbstractIcon', args) || {
1578
1515
  children: [],
1579
1516
  attributes: {}
1580
- },
1581
- children = _ref2.children,
1582
- attributes = _ref2.attributes;
1583
-
1517
+ };
1584
1518
  args.children = children;
1585
1519
  args.attributes = attributes;
1586
1520
 
@@ -1591,47 +1525,49 @@
1591
1525
  }
1592
1526
  }
1593
1527
  function makeLayersTextAbstract(params) {
1594
- var content = params.content,
1595
- width = params.width,
1596
- height = params.height,
1597
- transform = params.transform,
1598
- title = params.title,
1599
- extra = params.extra,
1600
- _params$watchable2 = params.watchable,
1601
- watchable = _params$watchable2 === void 0 ? false : _params$watchable2;
1602
-
1603
- var attributes = _objectSpread2(_objectSpread2(_objectSpread2({}, extra.attributes), title ? {
1604
- 'title': title
1605
- } : {}), {}, {
1528
+ const {
1529
+ content,
1530
+ width,
1531
+ height,
1532
+ transform,
1533
+ title,
1534
+ extra,
1535
+ watchable = false
1536
+ } = params;
1537
+ const attributes = { ...extra.attributes,
1538
+ ...(title ? {
1539
+ 'title': title
1540
+ } : {}),
1606
1541
  'class': extra.classes.join(' ')
1607
- });
1542
+ };
1608
1543
 
1609
1544
  if (watchable) {
1610
1545
  attributes[DATA_FA_I2SVG] = '';
1611
1546
  }
1612
1547
 
1613
- var styles = _objectSpread2({}, extra.styles);
1548
+ const styles = { ...extra.styles
1549
+ };
1614
1550
 
1615
1551
  if (transformIsMeaningful(transform)) {
1616
1552
  styles['transform'] = transformForCss({
1617
- transform: transform,
1553
+ transform,
1618
1554
  startCentered: true,
1619
- width: width,
1620
- height: height
1555
+ width,
1556
+ height
1621
1557
  });
1622
1558
  styles['-webkit-transform'] = styles['transform'];
1623
1559
  }
1624
1560
 
1625
- var styleString = joinStyles(styles);
1561
+ const styleString = joinStyles(styles);
1626
1562
 
1627
1563
  if (styleString.length > 0) {
1628
1564
  attributes['style'] = styleString;
1629
1565
  }
1630
1566
 
1631
- var val = [];
1567
+ const val = [];
1632
1568
  val.push({
1633
1569
  tag: 'span',
1634
- attributes: attributes,
1570
+ attributes,
1635
1571
  children: [content]
1636
1572
  });
1637
1573
 
@@ -1648,26 +1584,27 @@
1648
1584
  return val;
1649
1585
  }
1650
1586
  function makeLayersCounterAbstract(params) {
1651
- var content = params.content,
1652
- title = params.title,
1653
- extra = params.extra;
1654
-
1655
- var attributes = _objectSpread2(_objectSpread2(_objectSpread2({}, extra.attributes), title ? {
1656
- 'title': title
1657
- } : {}), {}, {
1587
+ const {
1588
+ content,
1589
+ title,
1590
+ extra
1591
+ } = params;
1592
+ const attributes = { ...extra.attributes,
1593
+ ...(title ? {
1594
+ 'title': title
1595
+ } : {}),
1658
1596
  'class': extra.classes.join(' ')
1659
- });
1660
-
1661
- var styleString = joinStyles(extra.styles);
1597
+ };
1598
+ const styleString = joinStyles(extra.styles);
1662
1599
 
1663
1600
  if (styleString.length > 0) {
1664
1601
  attributes['style'] = styleString;
1665
1602
  }
1666
1603
 
1667
- var val = [];
1604
+ const val = [];
1668
1605
  val.push({
1669
1606
  tag: 'span',
1670
- attributes: attributes,
1607
+ attributes,
1671
1608
  children: [content]
1672
1609
  });
1673
1610
 
@@ -1684,16 +1621,14 @@
1684
1621
  return val;
1685
1622
  }
1686
1623
 
1687
- var styles$1 = namespace.styles;
1624
+ const {
1625
+ styles: styles$1
1626
+ } = namespace;
1688
1627
  function asFoundIcon(icon) {
1689
- var width = icon[0];
1690
- var height = icon[1];
1691
-
1692
- var _icon$slice = icon.slice(4),
1693
- _icon$slice2 = _slicedToArray(_icon$slice, 1),
1694
- vectorData = _icon$slice2[0];
1695
-
1696
- var element = null;
1628
+ const width = icon[0];
1629
+ const height = icon[1];
1630
+ const [vectorData] = icon.slice(4);
1631
+ let element = null;
1697
1632
 
1698
1633
  if (Array.isArray(vectorData)) {
1699
1634
  element = {
@@ -1729,12 +1664,12 @@
1729
1664
 
1730
1665
  return {
1731
1666
  found: true,
1732
- width: width,
1733
- height: height,
1667
+ width,
1668
+ height,
1734
1669
  icon: element
1735
1670
  };
1736
1671
  }
1737
- var missingIconResolutionMixin = {
1672
+ const missingIconResolutionMixin = {
1738
1673
  found: false,
1739
1674
  width: 512,
1740
1675
  height: 512
@@ -1747,73 +1682,64 @@
1747
1682
  }
1748
1683
 
1749
1684
  function findIcon(iconName, prefix) {
1750
- var givenPrefix = prefix;
1685
+ let givenPrefix = prefix;
1751
1686
 
1752
1687
  if (prefix === 'fa' && config.styleDefault !== null) {
1753
1688
  prefix = getDefaultUsablePrefix();
1754
1689
  }
1755
1690
 
1756
- return new Promise(function (resolve, reject) {
1757
- var val = {
1758
- found: false,
1759
- width: 512,
1760
- height: 512,
1761
- icon: callProvided('missingIconAbstract') || {}
1762
- };
1763
-
1691
+ return new Promise((resolve, reject) => {
1764
1692
  if (givenPrefix === 'fa') {
1765
- var shim = byOldName(iconName) || {};
1693
+ const shim = byOldName(iconName) || {};
1766
1694
  iconName = shim.iconName || iconName;
1767
1695
  prefix = shim.prefix || prefix;
1768
1696
  }
1769
1697
 
1770
1698
  if (iconName && prefix && styles$1[prefix] && styles$1[prefix][iconName]) {
1771
- var icon = styles$1[prefix][iconName];
1699
+ const icon = styles$1[prefix][iconName];
1772
1700
  return resolve(asFoundIcon(icon));
1773
1701
  }
1774
1702
 
1775
1703
  maybeNotifyMissing(iconName, prefix);
1776
- resolve(_objectSpread2(_objectSpread2({}, missingIconResolutionMixin), {}, {
1704
+ resolve({ ...missingIconResolutionMixin,
1777
1705
  icon: config.showMissingIcons && iconName ? callProvided('missingIconAbstract') || {} : {}
1778
- }));
1706
+ });
1779
1707
  });
1780
1708
  }
1781
1709
 
1782
- var noop$1 = function noop() {};
1710
+ const noop$1 = () => {};
1783
1711
 
1784
- var p = config.measurePerformance && PERFORMANCE && PERFORMANCE.mark && PERFORMANCE.measure ? PERFORMANCE : {
1712
+ const p$2 = config.measurePerformance && PERFORMANCE && PERFORMANCE.mark && PERFORMANCE.measure ? PERFORMANCE : {
1785
1713
  mark: noop$1,
1786
1714
  measure: noop$1
1787
1715
  };
1788
- var preamble = "FA \"6.5.2\"";
1716
+ const preamble = "FA \"6.6.0\"";
1789
1717
 
1790
- var begin = function begin(name) {
1791
- p.mark("".concat(preamble, " ").concat(name, " begins"));
1792
- return function () {
1793
- return end(name);
1794
- };
1718
+ const begin = name => {
1719
+ p$2.mark("".concat(preamble, " ").concat(name, " begins"));
1720
+ return () => end(name);
1795
1721
  };
1796
1722
 
1797
- var end = function end(name) {
1798
- p.mark("".concat(preamble, " ").concat(name, " ends"));
1799
- p.measure("".concat(preamble, " ").concat(name), "".concat(preamble, " ").concat(name, " begins"), "".concat(preamble, " ").concat(name, " ends"));
1723
+ const end = name => {
1724
+ p$2.mark("".concat(preamble, " ").concat(name, " ends"));
1725
+ p$2.measure("".concat(preamble, " ").concat(name), "".concat(preamble, " ").concat(name, " begins"), "".concat(preamble, " ").concat(name, " ends"));
1800
1726
  };
1801
1727
 
1802
1728
  var perf = {
1803
- begin: begin,
1804
- end: end
1729
+ begin,
1730
+ end
1805
1731
  };
1806
1732
 
1807
- var noop$2 = function noop() {};
1733
+ const noop$2 = () => {};
1808
1734
 
1809
1735
  function isWatched(node) {
1810
- var i2svg = node.getAttribute ? node.getAttribute(DATA_FA_I2SVG) : null;
1736
+ const i2svg = node.getAttribute ? node.getAttribute(DATA_FA_I2SVG) : null;
1811
1737
  return typeof i2svg === 'string';
1812
1738
  }
1813
1739
 
1814
1740
  function hasPrefixAndIcon(node) {
1815
- var prefix = node.getAttribute ? node.getAttribute(DATA_PREFIX) : null;
1816
- var icon = node.getAttribute ? node.getAttribute(DATA_ICON) : null;
1741
+ const prefix = node.getAttribute ? node.getAttribute(DATA_PREFIX) : null;
1742
+ const icon = node.getAttribute ? node.getAttribute(DATA_ICON) : null;
1817
1743
  return prefix && icon;
1818
1744
  }
1819
1745
 
@@ -1826,7 +1752,7 @@
1826
1752
  return mutators.replace;
1827
1753
  }
1828
1754
 
1829
- var mutator = mutators[config.autoReplaceSvg];
1755
+ const mutator = mutators[config.autoReplaceSvg];
1830
1756
  return mutator || mutators.replace;
1831
1757
  }
1832
1758
 
@@ -1839,29 +1765,30 @@
1839
1765
  }
1840
1766
 
1841
1767
  function convertSVG(abstractObj) {
1842
- var params = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};
1843
- var _params$ceFn = params.ceFn,
1844
- ceFn = _params$ceFn === void 0 ? abstractObj.tag === 'svg' ? createElementNS : createElement : _params$ceFn;
1768
+ let params = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};
1769
+ const {
1770
+ ceFn = abstractObj.tag === 'svg' ? createElementNS : createElement
1771
+ } = params;
1845
1772
 
1846
1773
  if (typeof abstractObj === 'string') {
1847
1774
  return DOCUMENT.createTextNode(abstractObj);
1848
1775
  }
1849
1776
 
1850
- var tag = ceFn(abstractObj.tag);
1777
+ const tag = ceFn(abstractObj.tag);
1851
1778
  Object.keys(abstractObj.attributes || []).forEach(function (key) {
1852
1779
  tag.setAttribute(key, abstractObj.attributes[key]);
1853
1780
  });
1854
- var children = abstractObj.children || [];
1781
+ const children = abstractObj.children || [];
1855
1782
  children.forEach(function (child) {
1856
1783
  tag.appendChild(convertSVG(child, {
1857
- ceFn: ceFn
1784
+ ceFn
1858
1785
  }));
1859
1786
  });
1860
1787
  return tag;
1861
1788
  }
1862
1789
 
1863
1790
  function nodeAsComment(node) {
1864
- var comment = " ".concat(node.outerHTML, " ");
1791
+ let comment = " ".concat(node.outerHTML, " ");
1865
1792
  /* BEGIN.ATTRIBUTION */
1866
1793
 
1867
1794
  comment = "".concat(comment, "Font Awesome fontawesome.com ");
@@ -1870,37 +1797,37 @@
1870
1797
  return comment;
1871
1798
  }
1872
1799
 
1873
- var mutators = {
1874
- replace: function replace(mutation) {
1875
- var node = mutation[0];
1800
+ const mutators = {
1801
+ replace: function (mutation) {
1802
+ const node = mutation[0];
1876
1803
 
1877
1804
  if (node.parentNode) {
1878
- mutation[1].forEach(function (_abstract) {
1879
- node.parentNode.insertBefore(convertSVG(_abstract), node);
1805
+ mutation[1].forEach(abstract => {
1806
+ node.parentNode.insertBefore(convertSVG(abstract), node);
1880
1807
  });
1881
1808
 
1882
1809
  if (node.getAttribute(DATA_FA_I2SVG) === null && config.keepOriginalSource) {
1883
- var comment = DOCUMENT.createComment(nodeAsComment(node));
1810
+ let comment = DOCUMENT.createComment(nodeAsComment(node));
1884
1811
  node.parentNode.replaceChild(comment, node);
1885
1812
  } else {
1886
1813
  node.remove();
1887
1814
  }
1888
1815
  }
1889
1816
  },
1890
- nest: function nest(mutation) {
1891
- var node = mutation[0];
1892
- var _abstract2 = mutation[1]; // If we already have a replaced node we do not want to continue nesting within it.
1817
+ nest: function (mutation) {
1818
+ const node = mutation[0];
1819
+ const abstract = mutation[1]; // If we already have a replaced node we do not want to continue nesting within it.
1893
1820
  // Short-circuit to the standard replacement
1894
1821
 
1895
1822
  if (~classArray(node).indexOf(config.replacementClass)) {
1896
1823
  return mutators.replace(mutation);
1897
1824
  }
1898
1825
 
1899
- var forSvg = new RegExp("".concat(config.cssPrefix, "-.*"));
1900
- delete _abstract2[0].attributes.id;
1826
+ const forSvg = new RegExp("".concat(config.cssPrefix, "-.*"));
1827
+ delete abstract[0].attributes.id;
1901
1828
 
1902
- if (_abstract2[0].attributes.class) {
1903
- var splitClasses = _abstract2[0].attributes.class.split(' ').reduce(function (acc, cls) {
1829
+ if (abstract[0].attributes.class) {
1830
+ const splitClasses = abstract[0].attributes.class.split(' ').reduce((acc, cls) => {
1904
1831
  if (cls === config.replacementClass || cls.match(forSvg)) {
1905
1832
  acc.toSvg.push(cls);
1906
1833
  } else {
@@ -1912,8 +1839,7 @@
1912
1839
  toNode: [],
1913
1840
  toSvg: []
1914
1841
  });
1915
-
1916
- _abstract2[0].attributes.class = splitClasses.toSvg.join(' ');
1842
+ abstract[0].attributes.class = splitClasses.toSvg.join(' ');
1917
1843
 
1918
1844
  if (splitClasses.toNode.length === 0) {
1919
1845
  node.removeAttribute('class');
@@ -1922,10 +1848,7 @@
1922
1848
  }
1923
1849
  }
1924
1850
 
1925
- var newInnerHTML = _abstract2.map(function (a) {
1926
- return toHtml(a);
1927
- }).join('\n');
1928
-
1851
+ const newInnerHTML = abstract.map(a => toHtml(a)).join('\n');
1929
1852
  node.setAttribute(DATA_FA_I2SVG, '');
1930
1853
  node.innerHTML = newInnerHTML;
1931
1854
  }
@@ -1936,34 +1859,34 @@
1936
1859
  }
1937
1860
 
1938
1861
  function perform(mutations, callback) {
1939
- var callbackFunction = typeof callback === 'function' ? callback : noop$2;
1862
+ const callbackFunction = typeof callback === 'function' ? callback : noop$2;
1940
1863
 
1941
1864
  if (mutations.length === 0) {
1942
1865
  callbackFunction();
1943
1866
  } else {
1944
- var frame = performOperationSync;
1867
+ let frame = performOperationSync;
1945
1868
 
1946
1869
  if (config.mutateApproach === MUTATION_APPROACH_ASYNC) {
1947
1870
  frame = WINDOW.requestAnimationFrame || performOperationSync;
1948
1871
  }
1949
1872
 
1950
- frame(function () {
1951
- var mutator = getMutator();
1952
- var mark = perf.begin('mutate');
1873
+ frame(() => {
1874
+ const mutator = getMutator();
1875
+ const mark = perf.begin('mutate');
1953
1876
  mutations.map(mutator);
1954
1877
  mark();
1955
1878
  callbackFunction();
1956
1879
  });
1957
1880
  }
1958
1881
  }
1959
- var disabled = false;
1882
+ let disabled = false;
1960
1883
  function disableObservation() {
1961
1884
  disabled = true;
1962
1885
  }
1963
1886
  function enableObservation() {
1964
1887
  disabled = false;
1965
1888
  }
1966
- var mo = null;
1889
+ let mo$1 = null;
1967
1890
  function observe(options) {
1968
1891
  if (!MUTATION_OBSERVER) {
1969
1892
  return;
@@ -1973,18 +1896,16 @@
1973
1896
  return;
1974
1897
  }
1975
1898
 
1976
- var _options$treeCallback = options.treeCallback,
1977
- treeCallback = _options$treeCallback === void 0 ? noop$2 : _options$treeCallback,
1978
- _options$nodeCallback = options.nodeCallback,
1979
- nodeCallback = _options$nodeCallback === void 0 ? noop$2 : _options$nodeCallback,
1980
- _options$pseudoElemen = options.pseudoElementsCallback,
1981
- pseudoElementsCallback = _options$pseudoElemen === void 0 ? noop$2 : _options$pseudoElemen,
1982
- _options$observeMutat = options.observeMutationsRoot,
1983
- observeMutationsRoot = _options$observeMutat === void 0 ? DOCUMENT : _options$observeMutat;
1984
- mo = new MUTATION_OBSERVER(function (objects) {
1899
+ const {
1900
+ treeCallback = noop$2,
1901
+ nodeCallback = noop$2,
1902
+ pseudoElementsCallback = noop$2,
1903
+ observeMutationsRoot = DOCUMENT
1904
+ } = options;
1905
+ mo$1 = new MUTATION_OBSERVER(objects => {
1985
1906
  if (disabled) return;
1986
- var defaultPrefix = getDefaultUsablePrefix();
1987
- toArray(objects).forEach(function (mutationRecord) {
1907
+ const defaultPrefix = getDefaultUsablePrefix();
1908
+ toArray(objects).forEach(mutationRecord => {
1988
1909
  if (mutationRecord.type === 'childList' && mutationRecord.addedNodes.length > 0 && !isWatched(mutationRecord.addedNodes[0])) {
1989
1910
  if (config.searchPseudoElements) {
1990
1911
  pseudoElementsCallback(mutationRecord.target);
@@ -1999,10 +1920,10 @@
1999
1920
 
2000
1921
  if (mutationRecord.type === 'attributes' && isWatched(mutationRecord.target) && ~ATTRIBUTES_WATCHED_FOR_MUTATION.indexOf(mutationRecord.attributeName)) {
2001
1922
  if (mutationRecord.attributeName === 'class' && hasPrefixAndIcon(mutationRecord.target)) {
2002
- var _getCanonicalIcon = getCanonicalIcon(classArray(mutationRecord.target)),
2003
- prefix = _getCanonicalIcon.prefix,
2004
- iconName = _getCanonicalIcon.iconName;
2005
-
1923
+ const {
1924
+ prefix,
1925
+ iconName
1926
+ } = getCanonicalIcon(classArray(mutationRecord.target));
2006
1927
  mutationRecord.target.setAttribute(DATA_PREFIX, prefix || defaultPrefix);
2007
1928
  if (iconName) mutationRecord.target.setAttribute(DATA_ICON, iconName);
2008
1929
  } else if (hasBeenReplaced(mutationRecord.target)) {
@@ -2012,7 +1933,7 @@
2012
1933
  });
2013
1934
  });
2014
1935
  if (!IS_DOM) return;
2015
- mo.observe(observeMutationsRoot, {
1936
+ mo$1.observe(observeMutationsRoot, {
2016
1937
  childList: true,
2017
1938
  attributes: true,
2018
1939
  characterData: true,
@@ -2020,19 +1941,19 @@
2020
1941
  });
2021
1942
  }
2022
1943
  function disconnect() {
2023
- if (!mo) return;
2024
- mo.disconnect();
1944
+ if (!mo$1) return;
1945
+ mo$1.disconnect();
2025
1946
  }
2026
1947
 
2027
1948
  function styleParser (node) {
2028
- var style = node.getAttribute('style');
2029
- var val = [];
1949
+ const style = node.getAttribute('style');
1950
+ let val = [];
2030
1951
 
2031
1952
  if (style) {
2032
- val = style.split(';').reduce(function (acc, style) {
2033
- var styles = style.split(':');
2034
- var prop = styles[0];
2035
- var value = styles.slice(1);
1953
+ val = style.split(';').reduce((acc, style) => {
1954
+ const styles = style.split(':');
1955
+ const prop = styles[0];
1956
+ const value = styles.slice(1);
2036
1957
 
2037
1958
  if (prop && value.length > 0) {
2038
1959
  acc[prop] = value.join(':').trim();
@@ -2046,10 +1967,10 @@
2046
1967
  }
2047
1968
 
2048
1969
  function classParser (node) {
2049
- var existingPrefix = node.getAttribute('data-prefix');
2050
- var existingIconName = node.getAttribute('data-icon');
2051
- var innerText = node.innerText !== undefined ? node.innerText.trim() : '';
2052
- var val = getCanonicalIcon(classArray(node));
1970
+ const existingPrefix = node.getAttribute('data-prefix');
1971
+ const existingIconName = node.getAttribute('data-icon');
1972
+ const innerText = node.innerText !== undefined ? node.innerText.trim() : '';
1973
+ let val = getCanonicalIcon(classArray(node));
2053
1974
 
2054
1975
  if (!val.prefix) {
2055
1976
  val.prefix = getDefaultUsablePrefix();
@@ -2076,15 +1997,15 @@
2076
1997
  }
2077
1998
 
2078
1999
  function attributesParser (node) {
2079
- var extraAttributes = toArray(node.attributes).reduce(function (acc, attr) {
2000
+ const extraAttributes = toArray(node.attributes).reduce((acc, attr) => {
2080
2001
  if (acc.name !== 'class' && acc.name !== 'style') {
2081
2002
  acc[attr.name] = attr.value;
2082
2003
  }
2083
2004
 
2084
2005
  return acc;
2085
2006
  }, {});
2086
- var title = node.getAttribute('title');
2087
- var titleId = node.getAttribute('data-fa-title-id');
2007
+ const title = node.getAttribute('title');
2008
+ const titleId = node.getAttribute('data-fa-title-id');
2088
2009
 
2089
2010
  if (config.autoA11y) {
2090
2011
  if (title) {
@@ -2120,23 +2041,22 @@
2120
2041
  };
2121
2042
  }
2122
2043
  function parseMeta(node) {
2123
- var parser = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {
2044
+ let parser = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {
2124
2045
  styleParser: true
2125
2046
  };
2126
-
2127
- var _classParser = classParser(node),
2128
- iconName = _classParser.iconName,
2129
- prefix = _classParser.prefix,
2130
- extraClasses = _classParser.rest;
2131
-
2132
- var extraAttributes = attributesParser(node);
2133
- var pluginMeta = chainHooks('parseNodeAttributes', {}, node);
2134
- var extraStyles = parser.styleParser ? styleParser(node) : [];
2135
- return _objectSpread2({
2136
- iconName: iconName,
2047
+ const {
2048
+ iconName,
2049
+ prefix,
2050
+ rest: extraClasses
2051
+ } = classParser(node);
2052
+ const extraAttributes = attributesParser(node);
2053
+ const pluginMeta = chainHooks('parseNodeAttributes', {}, node);
2054
+ let extraStyles = parser.styleParser ? styleParser(node) : [];
2055
+ return {
2056
+ iconName,
2137
2057
  title: node.getAttribute('title'),
2138
2058
  titleId: node.getAttribute('data-fa-title-id'),
2139
- prefix: prefix,
2059
+ prefix,
2140
2060
  transform: meaninglessTransform,
2141
2061
  mask: {
2142
2062
  iconName: null,
@@ -2149,14 +2069,17 @@
2149
2069
  classes: extraClasses,
2150
2070
  styles: extraStyles,
2151
2071
  attributes: extraAttributes
2152
- }
2153
- }, pluginMeta);
2072
+ },
2073
+ ...pluginMeta
2074
+ };
2154
2075
  }
2155
2076
 
2156
- var styles$2 = namespace.styles;
2077
+ const {
2078
+ styles: styles$2
2079
+ } = namespace;
2157
2080
 
2158
2081
  function generateMutation(node) {
2159
- var nodeMeta = config.autoReplaceSvg === 'nest' ? parseMeta(node, {
2082
+ const nodeMeta = config.autoReplaceSvg === 'nest' ? parseMeta(node, {
2160
2083
  styleParser: false
2161
2084
  }) : parseMeta(node);
2162
2085
 
@@ -2167,48 +2090,41 @@
2167
2090
  }
2168
2091
  }
2169
2092
 
2170
- var knownPrefixes = new Set();
2171
- FAMILIES.map(function (family) {
2093
+ let knownPrefixes = new Set();
2094
+ FAMILIES.map(family => {
2172
2095
  knownPrefixes.add("fa-".concat(family));
2173
2096
  });
2174
- Object.keys(PREFIX_TO_STYLE[FAMILY_CLASSIC]).map(knownPrefixes.add.bind(knownPrefixes));
2175
- Object.keys(PREFIX_TO_STYLE[FAMILY_SHARP]).map(knownPrefixes.add.bind(knownPrefixes));
2176
- knownPrefixes = _toConsumableArray(knownPrefixes);
2097
+ Object.keys(PREFIX_TO_STYLE[a]).map(knownPrefixes.add.bind(knownPrefixes));
2098
+ Object.keys(PREFIX_TO_STYLE[r]).map(knownPrefixes.add.bind(knownPrefixes));
2099
+ Object.keys(PREFIX_TO_STYLE[o]).map(knownPrefixes.add.bind(knownPrefixes));
2100
+ knownPrefixes = [...knownPrefixes];
2177
2101
 
2178
2102
  function onTree(root) {
2179
- var callback = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : null;
2103
+ let callback = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : null;
2180
2104
  if (!IS_DOM) return Promise.resolve();
2181
- var htmlClassList = DOCUMENT.documentElement.classList;
2105
+ const htmlClassList = DOCUMENT.documentElement.classList;
2182
2106
 
2183
- var hclAdd = function hclAdd(suffix) {
2184
- return htmlClassList.add("".concat(HTML_CLASS_I2SVG_BASE_CLASS, "-").concat(suffix));
2185
- };
2107
+ const hclAdd = suffix => htmlClassList.add("".concat(HTML_CLASS_I2SVG_BASE_CLASS, "-").concat(suffix));
2186
2108
 
2187
- var hclRemove = function hclRemove(suffix) {
2188
- return htmlClassList.remove("".concat(HTML_CLASS_I2SVG_BASE_CLASS, "-").concat(suffix));
2189
- };
2109
+ const hclRemove = suffix => htmlClassList.remove("".concat(HTML_CLASS_I2SVG_BASE_CLASS, "-").concat(suffix));
2190
2110
 
2191
- var prefixes = config.autoFetchSvg ? knownPrefixes : FAMILIES.map(function (f) {
2192
- return "fa-".concat(f);
2193
- }).concat(Object.keys(styles$2));
2111
+ const prefixes = config.autoFetchSvg ? knownPrefixes : FAMILIES.map(f$$1 => "fa-".concat(f$$1)).concat(Object.keys(styles$2));
2194
2112
 
2195
2113
  if (!prefixes.includes('fa')) {
2196
2114
  prefixes.push('fa');
2197
2115
  }
2198
2116
 
2199
- var prefixesDomQuery = [".".concat(LAYERS_TEXT_CLASSNAME, ":not([").concat(DATA_FA_I2SVG, "])")].concat(prefixes.map(function (p) {
2200
- return ".".concat(p, ":not([").concat(DATA_FA_I2SVG, "])");
2201
- })).join(', ');
2117
+ const prefixesDomQuery = [".".concat(LAYERS_TEXT_CLASSNAME, ":not([").concat(DATA_FA_I2SVG, "])")].concat(prefixes.map(p$$1 => ".".concat(p$$1, ":not([").concat(DATA_FA_I2SVG, "])"))).join(', ');
2202
2118
 
2203
2119
  if (prefixesDomQuery.length === 0) {
2204
2120
  return Promise.resolve();
2205
2121
  }
2206
2122
 
2207
- var candidates = [];
2123
+ let candidates = [];
2208
2124
 
2209
2125
  try {
2210
2126
  candidates = toArray(root.querySelectorAll(prefixesDomQuery));
2211
- } catch (e) {// noop
2127
+ } catch (e$$1) {// noop
2212
2128
  }
2213
2129
 
2214
2130
  if (candidates.length > 0) {
@@ -2218,27 +2134,27 @@
2218
2134
  return Promise.resolve();
2219
2135
  }
2220
2136
 
2221
- var mark = perf.begin('onTree');
2222
- var mutations = candidates.reduce(function (acc, node) {
2137
+ const mark = perf.begin('onTree');
2138
+ const mutations = candidates.reduce((acc, node) => {
2223
2139
  try {
2224
- var mutation = generateMutation(node);
2140
+ const mutation = generateMutation(node);
2225
2141
 
2226
2142
  if (mutation) {
2227
2143
  acc.push(mutation);
2228
2144
  }
2229
- } catch (e) {
2145
+ } catch (e$$1) {
2230
2146
  if (!PRODUCTION) {
2231
- if (e.name === 'MissingIcon') {
2232
- console.error(e);
2147
+ if (e$$1.name === 'MissingIcon') {
2148
+ console.error(e$$1);
2233
2149
  }
2234
2150
  }
2235
2151
  }
2236
2152
 
2237
2153
  return acc;
2238
2154
  }, []);
2239
- return new Promise(function (resolve, reject) {
2240
- Promise.all(mutations).then(function (resolvedMutations) {
2241
- perform(resolvedMutations, function () {
2155
+ return new Promise((resolve, reject) => {
2156
+ Promise.all(mutations).then(resolvedMutations => {
2157
+ perform(resolvedMutations, () => {
2242
2158
  hclAdd('active');
2243
2159
  hclAdd('complete');
2244
2160
  hclRemove('pending');
@@ -2246,16 +2162,16 @@
2246
2162
  mark();
2247
2163
  resolve();
2248
2164
  });
2249
- }).catch(function (e) {
2165
+ }).catch(e$$1 => {
2250
2166
  mark();
2251
- reject(e);
2167
+ reject(e$$1);
2252
2168
  });
2253
2169
  });
2254
2170
  }
2255
2171
 
2256
2172
  function onNode(node) {
2257
- var callback = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : null;
2258
- generateMutation(node).then(function (mutation) {
2173
+ let callback = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : null;
2174
+ generateMutation(node).then(mutation => {
2259
2175
  if (mutation) {
2260
2176
  perform([mutation], callback);
2261
2177
  }
@@ -2264,50 +2180,48 @@
2264
2180
 
2265
2181
  function resolveIcons(next) {
2266
2182
  return function (maybeIconDefinition) {
2267
- var params = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};
2268
- var iconDefinition = (maybeIconDefinition || {}).icon ? maybeIconDefinition : findIconDefinition(maybeIconDefinition || {});
2269
- var mask = params.mask;
2183
+ let params = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};
2184
+ const iconDefinition = (maybeIconDefinition || {}).icon ? maybeIconDefinition : findIconDefinition(maybeIconDefinition || {});
2185
+ let {
2186
+ mask
2187
+ } = params;
2270
2188
 
2271
2189
  if (mask) {
2272
2190
  mask = (mask || {}).icon ? mask : findIconDefinition(mask || {});
2273
2191
  }
2274
2192
 
2275
- return next(iconDefinition, _objectSpread2(_objectSpread2({}, params), {}, {
2276
- mask: mask
2277
- }));
2193
+ return next(iconDefinition, { ...params,
2194
+ mask
2195
+ });
2278
2196
  };
2279
2197
  }
2280
2198
 
2281
- var render = function render(iconDefinition) {
2282
- var params = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};
2283
- var _params$transform = params.transform,
2284
- transform = _params$transform === void 0 ? meaninglessTransform : _params$transform,
2285
- _params$symbol = params.symbol,
2286
- symbol = _params$symbol === void 0 ? false : _params$symbol,
2287
- _params$mask = params.mask,
2288
- mask = _params$mask === void 0 ? null : _params$mask,
2289
- _params$maskId = params.maskId,
2290
- maskId = _params$maskId === void 0 ? null : _params$maskId,
2291
- _params$title = params.title,
2292
- title = _params$title === void 0 ? null : _params$title,
2293
- _params$titleId = params.titleId,
2294
- titleId = _params$titleId === void 0 ? null : _params$titleId,
2295
- _params$classes = params.classes,
2296
- classes = _params$classes === void 0 ? [] : _params$classes,
2297
- _params$attributes = params.attributes,
2298
- attributes = _params$attributes === void 0 ? {} : _params$attributes,
2299
- _params$styles = params.styles,
2300
- styles = _params$styles === void 0 ? {} : _params$styles;
2199
+ const render = function (iconDefinition) {
2200
+ let params = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};
2201
+ const {
2202
+ transform = meaninglessTransform,
2203
+ symbol = false,
2204
+ mask = null,
2205
+ maskId = null,
2206
+ title = null,
2207
+ titleId = null,
2208
+ classes = [],
2209
+ attributes = {},
2210
+ styles = {}
2211
+ } = params;
2301
2212
  if (!iconDefinition) return;
2302
- var prefix = iconDefinition.prefix,
2303
- iconName = iconDefinition.iconName,
2304
- icon = iconDefinition.icon;
2305
- return domVariants(_objectSpread2({
2306
- type: 'icon'
2307
- }, iconDefinition), function () {
2213
+ const {
2214
+ prefix,
2215
+ iconName,
2216
+ icon
2217
+ } = iconDefinition;
2218
+ return domVariants({
2219
+ type: 'icon',
2220
+ ...iconDefinition
2221
+ }, () => {
2308
2222
  callHooks('beforeDOMElementCreation', {
2309
- iconDefinition: iconDefinition,
2310
- params: params
2223
+ iconDefinition,
2224
+ params
2311
2225
  });
2312
2226
 
2313
2227
  if (config.autoA11y) {
@@ -2329,103 +2243,109 @@
2329
2243
  icon: {}
2330
2244
  }
2331
2245
  },
2332
- prefix: prefix,
2333
- iconName: iconName,
2334
- transform: _objectSpread2(_objectSpread2({}, meaninglessTransform), transform),
2335
- symbol: symbol,
2336
- title: title,
2337
- maskId: maskId,
2338
- titleId: titleId,
2246
+ prefix,
2247
+ iconName,
2248
+ transform: { ...meaninglessTransform,
2249
+ ...transform
2250
+ },
2251
+ symbol,
2252
+ title,
2253
+ maskId,
2254
+ titleId,
2339
2255
  extra: {
2340
- attributes: attributes,
2341
- styles: styles,
2342
- classes: classes
2256
+ attributes,
2257
+ styles,
2258
+ classes
2343
2259
  }
2344
2260
  });
2345
2261
  });
2346
2262
  };
2347
2263
  var ReplaceElements = {
2348
- mixout: function mixout() {
2264
+ mixout() {
2349
2265
  return {
2350
2266
  icon: resolveIcons(render)
2351
2267
  };
2352
2268
  },
2353
- hooks: function hooks() {
2269
+
2270
+ hooks() {
2354
2271
  return {
2355
- mutationObserverCallbacks: function mutationObserverCallbacks(accumulator) {
2272
+ mutationObserverCallbacks(accumulator) {
2356
2273
  accumulator.treeCallback = onTree;
2357
2274
  accumulator.nodeCallback = onNode;
2358
2275
  return accumulator;
2359
2276
  }
2277
+
2360
2278
  };
2361
2279
  },
2362
- provides: function provides(providers$$1) {
2280
+
2281
+ provides(providers$$1) {
2363
2282
  providers$$1.i2svg = function (params) {
2364
- var _params$node = params.node,
2365
- node = _params$node === void 0 ? DOCUMENT : _params$node,
2366
- _params$callback = params.callback,
2367
- callback = _params$callback === void 0 ? function () {} : _params$callback;
2283
+ const {
2284
+ node = DOCUMENT,
2285
+ callback = () => {}
2286
+ } = params;
2368
2287
  return onTree(node, callback);
2369
2288
  };
2370
2289
 
2371
2290
  providers$$1.generateSvgReplacementMutation = function (node, nodeMeta) {
2372
- var iconName = nodeMeta.iconName,
2373
- title = nodeMeta.title,
2374
- titleId = nodeMeta.titleId,
2375
- prefix = nodeMeta.prefix,
2376
- transform = nodeMeta.transform,
2377
- symbol = nodeMeta.symbol,
2378
- mask = nodeMeta.mask,
2379
- maskId = nodeMeta.maskId,
2380
- extra = nodeMeta.extra;
2381
- return new Promise(function (resolve, reject) {
2291
+ const {
2292
+ iconName,
2293
+ title,
2294
+ titleId,
2295
+ prefix,
2296
+ transform,
2297
+ symbol,
2298
+ mask,
2299
+ maskId,
2300
+ extra
2301
+ } = nodeMeta;
2302
+ return new Promise((resolve, reject) => {
2382
2303
  Promise.all([findIcon(iconName, prefix), mask.iconName ? findIcon(mask.iconName, mask.prefix) : Promise.resolve({
2383
2304
  found: false,
2384
2305
  width: 512,
2385
2306
  height: 512,
2386
2307
  icon: {}
2387
- })]).then(function (_ref) {
2388
- var _ref2 = _slicedToArray(_ref, 2),
2389
- main = _ref2[0],
2390
- mask = _ref2[1];
2391
-
2308
+ })]).then(_ref => {
2309
+ let [main, mask] = _ref;
2392
2310
  resolve([node, makeInlineSvgAbstract({
2393
2311
  icons: {
2394
- main: main,
2395
- mask: mask
2312
+ main,
2313
+ mask
2396
2314
  },
2397
- prefix: prefix,
2398
- iconName: iconName,
2399
- transform: transform,
2400
- symbol: symbol,
2401
- maskId: maskId,
2402
- title: title,
2403
- titleId: titleId,
2404
- extra: extra,
2315
+ prefix,
2316
+ iconName,
2317
+ transform,
2318
+ symbol,
2319
+ maskId,
2320
+ title,
2321
+ titleId,
2322
+ extra,
2405
2323
  watchable: true
2406
2324
  })]);
2407
2325
  }).catch(reject);
2408
2326
  });
2409
2327
  };
2410
2328
 
2411
- providers$$1.generateAbstractIcon = function (_ref3) {
2412
- var children = _ref3.children,
2413
- attributes = _ref3.attributes,
2414
- main = _ref3.main,
2415
- transform = _ref3.transform,
2416
- styles = _ref3.styles;
2417
- var styleString = joinStyles(styles);
2329
+ providers$$1.generateAbstractIcon = function (_ref2) {
2330
+ let {
2331
+ children,
2332
+ attributes,
2333
+ main,
2334
+ transform,
2335
+ styles
2336
+ } = _ref2;
2337
+ const styleString = joinStyles(styles);
2418
2338
 
2419
2339
  if (styleString.length > 0) {
2420
2340
  attributes['style'] = styleString;
2421
2341
  }
2422
2342
 
2423
- var nextChild;
2343
+ let nextChild;
2424
2344
 
2425
2345
  if (transformIsMeaningful(transform)) {
2426
2346
  nextChild = callProvided('generateAbstractTransformGrouping', {
2427
- main: main,
2428
- transform: transform,
2347
+ main,
2348
+ transform,
2429
2349
  containerWidth: main.width,
2430
2350
  iconWidth: main.width
2431
2351
  });
@@ -2433,130 +2353,137 @@
2433
2353
 
2434
2354
  children.push(nextChild || main.icon);
2435
2355
  return {
2436
- children: children,
2437
- attributes: attributes
2356
+ children,
2357
+ attributes
2438
2358
  };
2439
2359
  };
2440
2360
  }
2361
+
2441
2362
  };
2442
2363
 
2443
2364
  var Layers = {
2444
- mixout: function mixout() {
2365
+ mixout() {
2445
2366
  return {
2446
- layer: function layer(assembler) {
2447
- var params = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};
2448
- var _params$classes = params.classes,
2449
- classes = _params$classes === void 0 ? [] : _params$classes;
2367
+ layer(assembler) {
2368
+ let params = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};
2369
+ const {
2370
+ classes = []
2371
+ } = params;
2450
2372
  return domVariants({
2451
2373
  type: 'layer'
2452
- }, function () {
2374
+ }, () => {
2453
2375
  callHooks('beforeDOMElementCreation', {
2454
- assembler: assembler,
2455
- params: params
2376
+ assembler,
2377
+ params
2456
2378
  });
2457
- var children = [];
2458
- assembler(function (args) {
2459
- Array.isArray(args) ? args.map(function (a) {
2379
+ let children = [];
2380
+ assembler(args => {
2381
+ Array.isArray(args) ? args.map(a => {
2460
2382
  children = children.concat(a.abstract);
2461
2383
  }) : children = children.concat(args.abstract);
2462
2384
  });
2463
2385
  return [{
2464
2386
  tag: 'span',
2465
2387
  attributes: {
2466
- class: ["".concat(config.cssPrefix, "-layers")].concat(_toConsumableArray(classes)).join(' ')
2388
+ class: ["".concat(config.cssPrefix, "-layers"), ...classes].join(' ')
2467
2389
  },
2468
- children: children
2390
+ children
2469
2391
  }];
2470
2392
  });
2471
2393
  }
2394
+
2472
2395
  };
2473
2396
  }
2397
+
2474
2398
  };
2475
2399
 
2476
2400
  var LayersCounter = {
2477
- mixout: function mixout() {
2401
+ mixout() {
2478
2402
  return {
2479
- counter: function counter(content) {
2480
- var params = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};
2481
- var _params$title = params.title,
2482
- title = _params$title === void 0 ? null : _params$title,
2483
- _params$classes = params.classes,
2484
- classes = _params$classes === void 0 ? [] : _params$classes,
2485
- _params$attributes = params.attributes,
2486
- attributes = _params$attributes === void 0 ? {} : _params$attributes,
2487
- _params$styles = params.styles,
2488
- styles = _params$styles === void 0 ? {} : _params$styles;
2403
+ counter(content) {
2404
+ let params = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};
2405
+ const {
2406
+ title = null,
2407
+ classes = [],
2408
+ attributes = {},
2409
+ styles = {}
2410
+ } = params;
2489
2411
  return domVariants({
2490
2412
  type: 'counter',
2491
- content: content
2492
- }, function () {
2413
+ content
2414
+ }, () => {
2493
2415
  callHooks('beforeDOMElementCreation', {
2494
- content: content,
2495
- params: params
2416
+ content,
2417
+ params
2496
2418
  });
2497
2419
  return makeLayersCounterAbstract({
2498
2420
  content: content.toString(),
2499
- title: title,
2421
+ title,
2500
2422
  extra: {
2501
- attributes: attributes,
2502
- styles: styles,
2503
- classes: ["".concat(config.cssPrefix, "-layers-counter")].concat(_toConsumableArray(classes))
2423
+ attributes,
2424
+ styles,
2425
+ classes: ["".concat(config.cssPrefix, "-layers-counter"), ...classes]
2504
2426
  }
2505
2427
  });
2506
2428
  });
2507
2429
  }
2430
+
2508
2431
  };
2509
2432
  }
2433
+
2510
2434
  };
2511
2435
 
2512
2436
  var LayersText = {
2513
- mixout: function mixout() {
2437
+ mixout() {
2514
2438
  return {
2515
- text: function text(content) {
2516
- var params = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};
2517
- var _params$transform = params.transform,
2518
- transform = _params$transform === void 0 ? meaninglessTransform : _params$transform,
2519
- _params$title = params.title,
2520
- title = _params$title === void 0 ? null : _params$title,
2521
- _params$classes = params.classes,
2522
- classes = _params$classes === void 0 ? [] : _params$classes,
2523
- _params$attributes = params.attributes,
2524
- attributes = _params$attributes === void 0 ? {} : _params$attributes,
2525
- _params$styles = params.styles,
2526
- styles = _params$styles === void 0 ? {} : _params$styles;
2439
+ text(content) {
2440
+ let params = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};
2441
+ const {
2442
+ transform = meaninglessTransform,
2443
+ title = null,
2444
+ classes = [],
2445
+ attributes = {},
2446
+ styles = {}
2447
+ } = params;
2527
2448
  return domVariants({
2528
2449
  type: 'text',
2529
- content: content
2530
- }, function () {
2450
+ content
2451
+ }, () => {
2531
2452
  callHooks('beforeDOMElementCreation', {
2532
- content: content,
2533
- params: params
2453
+ content,
2454
+ params
2534
2455
  });
2535
2456
  return makeLayersTextAbstract({
2536
- content: content,
2537
- transform: _objectSpread2(_objectSpread2({}, meaninglessTransform), transform),
2538
- title: title,
2457
+ content,
2458
+ transform: { ...meaninglessTransform,
2459
+ ...transform
2460
+ },
2461
+ title,
2539
2462
  extra: {
2540
- attributes: attributes,
2541
- styles: styles,
2542
- classes: ["".concat(config.cssPrefix, "-layers-text")].concat(_toConsumableArray(classes))
2463
+ attributes,
2464
+ styles,
2465
+ classes: ["".concat(config.cssPrefix, "-layers-text"), ...classes]
2543
2466
  }
2544
2467
  });
2545
2468
  });
2546
2469
  }
2470
+
2547
2471
  };
2548
2472
  },
2549
- provides: function provides(providers$$1) {
2473
+
2474
+ provides(providers$$1) {
2550
2475
  providers$$1.generateLayersText = function (node, nodeMeta) {
2551
- var title = nodeMeta.title,
2552
- transform = nodeMeta.transform,
2553
- extra = nodeMeta.extra;
2554
- var width = null;
2555
- var height = null;
2476
+ const {
2477
+ title,
2478
+ transform,
2479
+ extra
2480
+ } = nodeMeta;
2481
+ let width = null;
2482
+ let height = null;
2556
2483
 
2557
2484
  if (IS_IE) {
2558
- var computedFontSize = parseInt(getComputedStyle(node).fontSize, 10);
2559
- var boundingClientRect = node.getBoundingClientRect();
2485
+ const computedFontSize = parseInt(getComputedStyle(node).fontSize, 10);
2486
+ const boundingClientRect = node.getBoundingClientRect();
2560
2487
  width = boundingClientRect.width / computedFontSize;
2561
2488
  height = boundingClientRect.height / computedFontSize;
2562
2489
  }
@@ -2567,69 +2494,91 @@
2567
2494
 
2568
2495
  return Promise.resolve([node, makeLayersTextAbstract({
2569
2496
  content: node.innerHTML,
2570
- width: width,
2571
- height: height,
2572
- transform: transform,
2573
- title: title,
2574
- extra: extra,
2497
+ width,
2498
+ height,
2499
+ transform,
2500
+ title,
2501
+ extra,
2575
2502
  watchable: true
2576
2503
  })]);
2577
2504
  };
2578
2505
  }
2506
+
2579
2507
  };
2580
2508
 
2581
- var CLEAN_CONTENT_PATTERN = new RegExp("\"", 'ug');
2582
- var SECONDARY_UNICODE_RANGE = [1105920, 1112319];
2509
+ const CLEAN_CONTENT_PATTERN = new RegExp('\u{22}', 'ug');
2510
+ const SECONDARY_UNICODE_RANGE = [1105920, 1112319];
2511
+ const _FONT_FAMILY_WEIGHT_TO_PREFIX = { ...{
2512
+ FontAwesome: {
2513
+ normal: 'fas',
2514
+ 400: 'fas'
2515
+ }
2516
+ },
2517
+ ...eo,
2518
+ ...ao,
2519
+ ...mo
2520
+ };
2521
+ const FONT_FAMILY_WEIGHT_TO_PREFIX = Object.keys(_FONT_FAMILY_WEIGHT_TO_PREFIX).reduce((acc, key) => {
2522
+ acc[key.toLowerCase()] = _FONT_FAMILY_WEIGHT_TO_PREFIX[key];
2523
+ return acc;
2524
+ }, {});
2525
+ const FONT_FAMILY_WEIGHT_FALLBACK = Object.keys(FONT_FAMILY_WEIGHT_TO_PREFIX).reduce((acc, fontFamily) => {
2526
+ const weights = FONT_FAMILY_WEIGHT_TO_PREFIX[fontFamily];
2527
+ acc[fontFamily] = weights[900] || [...Object.entries(weights)][0][1];
2528
+ return acc;
2529
+ }, {});
2583
2530
  function hexValueFromContent(content) {
2584
- var cleaned = content.replace(CLEAN_CONTENT_PATTERN, '');
2585
- var codePoint = codePointAt(cleaned, 0);
2586
- var isPrependTen = codePoint >= SECONDARY_UNICODE_RANGE[0] && codePoint <= SECONDARY_UNICODE_RANGE[1];
2587
- var isDoubled = cleaned.length === 2 ? cleaned[0] === cleaned[1] : false;
2531
+ const cleaned = content.replace(CLEAN_CONTENT_PATTERN, '');
2532
+ const codePoint = codePointAt(cleaned, 0);
2533
+ const isPrependTen = codePoint >= SECONDARY_UNICODE_RANGE[0] && codePoint <= SECONDARY_UNICODE_RANGE[1];
2534
+ const isDoubled = cleaned.length === 2 ? cleaned[0] === cleaned[1] : false;
2588
2535
  return {
2589
2536
  value: isDoubled ? toHex(cleaned[0]) : toHex(cleaned),
2590
2537
  isSecondary: isPrependTen || isDoubled
2591
2538
  };
2592
2539
  }
2540
+ function getPrefix(fontFamily, fontWeight) {
2541
+ const fontFamilySanitized = fontFamily.replace(/^['"]|['"]$/g, '').toLowerCase();
2542
+ const fontWeightInteger = parseInt(fontWeight);
2543
+ const fontWeightSanitized = isNaN(fontWeightInteger) ? 'normal' : fontWeightInteger;
2544
+ return (FONT_FAMILY_WEIGHT_TO_PREFIX[fontFamilySanitized] || {})[fontWeightSanitized] || FONT_FAMILY_WEIGHT_FALLBACK[fontFamilySanitized];
2545
+ }
2593
2546
 
2594
2547
  function replaceForPosition(node, position) {
2595
- var pendingAttribute = "".concat(DATA_FA_PSEUDO_ELEMENT_PENDING).concat(position.replace(':', '-'));
2596
- return new Promise(function (resolve, reject) {
2548
+ const pendingAttribute = "".concat(DATA_FA_PSEUDO_ELEMENT_PENDING).concat(position.replace(':', '-'));
2549
+ return new Promise((resolve, reject) => {
2597
2550
  if (node.getAttribute(pendingAttribute) !== null) {
2598
2551
  // This node is already being processed
2599
2552
  return resolve();
2600
2553
  }
2601
2554
 
2602
- var children = toArray(node.children);
2603
- var alreadyProcessedPseudoElement = children.filter(function (c) {
2604
- return c.getAttribute(DATA_FA_PSEUDO_ELEMENT) === position;
2605
- })[0];
2606
- var styles = WINDOW.getComputedStyle(node, position);
2607
- var fontFamily = styles.getPropertyValue('font-family').match(FONT_FAMILY_PATTERN);
2608
- var fontWeight = styles.getPropertyValue('font-weight');
2609
- var content = styles.getPropertyValue('content');
2555
+ const children = toArray(node.children);
2556
+ const alreadyProcessedPseudoElement = children.filter(c => c.getAttribute(DATA_FA_PSEUDO_ELEMENT) === position)[0];
2557
+ const styles = WINDOW.getComputedStyle(node, position);
2558
+ const fontFamily = styles.getPropertyValue('font-family');
2559
+ const fontFamilyMatch = fontFamily.match(FONT_FAMILY_PATTERN);
2560
+ const fontWeight = styles.getPropertyValue('font-weight');
2561
+ const content = styles.getPropertyValue('content');
2610
2562
 
2611
- if (alreadyProcessedPseudoElement && !fontFamily) {
2563
+ if (alreadyProcessedPseudoElement && !fontFamilyMatch) {
2612
2564
  // If we've already processed it but the current computed style does not result in a font-family,
2613
2565
  // that probably means that a class name that was previously present to make the icon has been
2614
2566
  // removed. So we now should delete the icon.
2615
2567
  node.removeChild(alreadyProcessedPseudoElement);
2616
2568
  return resolve();
2617
- } else if (fontFamily && content !== 'none' && content !== '') {
2618
- var _content = styles.getPropertyValue('content');
2619
-
2620
- var family = ~['Sharp'].indexOf(fontFamily[2]) ? FAMILY_SHARP : FAMILY_CLASSIC;
2621
- var prefix = ~['Solid', 'Regular', 'Light', 'Thin', 'Duotone', 'Brands', 'Kit'].indexOf(fontFamily[2]) ? STYLE_TO_PREFIX[family][fontFamily[2].toLowerCase()] : FONT_WEIGHT_TO_PREFIX[family][fontWeight];
2622
-
2623
- var _hexValueFromContent = hexValueFromContent(_content),
2624
- hexValue = _hexValueFromContent.value,
2625
- isSecondary = _hexValueFromContent.isSecondary;
2626
-
2627
- var isV4 = fontFamily[0].startsWith('FontAwesome');
2628
- var iconName = byUnicode(prefix, hexValue);
2629
- var iconIdentifier = iconName;
2569
+ } else if (fontFamilyMatch && content !== 'none' && content !== '') {
2570
+ const content = styles.getPropertyValue('content');
2571
+ let prefix = getPrefix(fontFamily, fontWeight);
2572
+ const {
2573
+ value: hexValue,
2574
+ isSecondary
2575
+ } = hexValueFromContent(content);
2576
+ const isV4 = fontFamilyMatch[0].startsWith('FontAwesome');
2577
+ let iconName = byUnicode(prefix, hexValue);
2578
+ let iconIdentifier = iconName;
2630
2579
 
2631
2580
  if (isV4) {
2632
- var iconName4 = byOldUnicode(hexValue);
2581
+ const iconName4 = byOldUnicode(hexValue);
2633
2582
 
2634
2583
  if (iconName4.iconName && iconName4.prefix) {
2635
2584
  iconName = iconName4.iconName;
@@ -2647,22 +2596,23 @@
2647
2596
  node.removeChild(alreadyProcessedPseudoElement);
2648
2597
  }
2649
2598
 
2650
- var meta = blankMeta();
2651
- var extra = meta.extra;
2599
+ const meta = blankMeta();
2600
+ const {
2601
+ extra
2602
+ } = meta;
2652
2603
  extra.attributes[DATA_FA_PSEUDO_ELEMENT] = position;
2653
- findIcon(iconName, prefix).then(function (main) {
2654
- var _abstract = makeInlineSvgAbstract(_objectSpread2(_objectSpread2({}, meta), {}, {
2604
+ findIcon(iconName, prefix).then(main => {
2605
+ const abstract = makeInlineSvgAbstract({ ...meta,
2655
2606
  icons: {
2656
- main: main,
2607
+ main,
2657
2608
  mask: emptyCanonicalIcon()
2658
2609
  },
2659
- prefix: prefix,
2610
+ prefix,
2660
2611
  iconName: iconIdentifier,
2661
- extra: extra,
2612
+ extra,
2662
2613
  watchable: true
2663
- }));
2664
-
2665
- var element = DOCUMENT.createElementNS('http://www.w3.org/2000/svg', 'svg');
2614
+ });
2615
+ const element = DOCUMENT.createElementNS('http://www.w3.org/2000/svg', 'svg');
2666
2616
 
2667
2617
  if (position === '::before') {
2668
2618
  node.insertBefore(element, node.firstChild);
@@ -2670,9 +2620,7 @@
2670
2620
  node.appendChild(element);
2671
2621
  }
2672
2622
 
2673
- element.outerHTML = _abstract.map(function (a) {
2674
- return toHtml(a);
2675
- }).join('\n');
2623
+ element.outerHTML = abstract.map(a => toHtml(a)).join('\n');
2676
2624
  node.removeAttribute(pendingAttribute);
2677
2625
  resolve();
2678
2626
  }).catch(reject);
@@ -2695,15 +2643,15 @@
2695
2643
 
2696
2644
  function searchPseudoElements(root) {
2697
2645
  if (!IS_DOM) return;
2698
- return new Promise(function (resolve, reject) {
2699
- var operations = toArray(root.querySelectorAll('*')).filter(processable).map(replace);
2700
- var end = perf.begin('searchPseudoElements');
2646
+ return new Promise((resolve, reject) => {
2647
+ const operations = toArray(root.querySelectorAll('*')).filter(processable).map(replace);
2648
+ const end = perf.begin('searchPseudoElements');
2701
2649
  disableObservation();
2702
- Promise.all(operations).then(function () {
2650
+ Promise.all(operations).then(() => {
2703
2651
  end();
2704
2652
  enableObservation();
2705
2653
  resolve();
2706
- }).catch(function () {
2654
+ }).catch(() => {
2707
2655
  end();
2708
2656
  enableObservation();
2709
2657
  reject();
@@ -2712,63 +2660,75 @@
2712
2660
  }
2713
2661
 
2714
2662
  var PseudoElements = {
2715
- hooks: function hooks() {
2663
+ hooks() {
2716
2664
  return {
2717
- mutationObserverCallbacks: function mutationObserverCallbacks(accumulator) {
2665
+ mutationObserverCallbacks(accumulator) {
2718
2666
  accumulator.pseudoElementsCallback = searchPseudoElements;
2719
2667
  return accumulator;
2720
2668
  }
2669
+
2721
2670
  };
2722
2671
  },
2723
- provides: function provides(providers$$1) {
2724
- providers$$1.pseudoElements2svg = function (params) {
2725
- var _params$node = params.node,
2726
- node = _params$node === void 0 ? DOCUMENT : _params$node;
2672
+
2673
+ provides(providers) {
2674
+ providers.pseudoElements2svg = function (params) {
2675
+ const {
2676
+ node = DOCUMENT
2677
+ } = params;
2727
2678
 
2728
2679
  if (config.searchPseudoElements) {
2729
2680
  searchPseudoElements(node);
2730
2681
  }
2731
2682
  };
2732
2683
  }
2684
+
2733
2685
  };
2734
2686
 
2735
- var _unwatched = false;
2687
+ let _unwatched = false;
2736
2688
  var MutationObserver$1 = {
2737
- mixout: function mixout() {
2689
+ mixout() {
2738
2690
  return {
2739
2691
  dom: {
2740
- unwatch: function unwatch() {
2692
+ unwatch() {
2741
2693
  disableObservation();
2742
2694
  _unwatched = true;
2743
2695
  }
2696
+
2744
2697
  }
2745
2698
  };
2746
2699
  },
2747
- hooks: function hooks() {
2700
+
2701
+ hooks() {
2748
2702
  return {
2749
- bootstrap: function bootstrap() {
2703
+ bootstrap() {
2750
2704
  observe(chainHooks('mutationObserverCallbacks', {}));
2751
2705
  },
2752
- noAuto: function noAuto() {
2706
+
2707
+ noAuto() {
2753
2708
  disconnect();
2754
2709
  },
2755
- watch: function watch(params) {
2756
- var observeMutationsRoot = params.observeMutationsRoot;
2710
+
2711
+ watch(params) {
2712
+ const {
2713
+ observeMutationsRoot
2714
+ } = params;
2757
2715
 
2758
2716
  if (_unwatched) {
2759
2717
  enableObservation();
2760
2718
  } else {
2761
2719
  observe(chainHooks('mutationObserverCallbacks', {
2762
- observeMutationsRoot: observeMutationsRoot
2720
+ observeMutationsRoot
2763
2721
  }));
2764
2722
  }
2765
2723
  }
2724
+
2766
2725
  };
2767
2726
  }
2727
+
2768
2728
  };
2769
2729
 
2770
- var parseTransformString = function parseTransformString(transformString) {
2771
- var transform = {
2730
+ const parseTransformString = transformString => {
2731
+ let transform = {
2772
2732
  size: 16,
2773
2733
  x: 0,
2774
2734
  y: 0,
@@ -2776,10 +2736,10 @@
2776
2736
  flipY: false,
2777
2737
  rotate: 0
2778
2738
  };
2779
- return transformString.toLowerCase().split(' ').reduce(function (acc, n) {
2780
- var parts = n.toLowerCase().split('-');
2781
- var first = parts[0];
2782
- var rest = parts.slice(1).join('-');
2739
+ return transformString.toLowerCase().split(' ').reduce((acc, n) => {
2740
+ const parts = n.toLowerCase().split('-');
2741
+ const first = parts[0];
2742
+ let rest = parts.slice(1).join('-');
2783
2743
 
2784
2744
  if (first && rest === 'h') {
2785
2745
  acc.flipX = true;
@@ -2831,19 +2791,20 @@
2831
2791
  }, transform);
2832
2792
  };
2833
2793
  var PowerTransforms = {
2834
- mixout: function mixout() {
2794
+ mixout() {
2835
2795
  return {
2836
2796
  parse: {
2837
- transform: function transform(transformString) {
2797
+ transform: transformString => {
2838
2798
  return parseTransformString(transformString);
2839
2799
  }
2840
2800
  }
2841
2801
  };
2842
2802
  },
2843
- hooks: function hooks() {
2803
+
2804
+ hooks() {
2844
2805
  return {
2845
- parseNodeAttributes: function parseNodeAttributes(accumulator, node) {
2846
- var transformString = node.getAttribute('data-fa-transform');
2806
+ parseNodeAttributes(accumulator, node) {
2807
+ const transformString = node.getAttribute('data-fa-transform');
2847
2808
 
2848
2809
  if (transformString) {
2849
2810
  accumulator.transform = parseTransformString(transformString);
@@ -2851,81 +2812,88 @@
2851
2812
 
2852
2813
  return accumulator;
2853
2814
  }
2815
+
2854
2816
  };
2855
2817
  },
2856
- provides: function provides(providers) {
2818
+
2819
+ provides(providers) {
2857
2820
  providers.generateAbstractTransformGrouping = function (_ref) {
2858
- var main = _ref.main,
2859
- transform = _ref.transform,
2860
- containerWidth = _ref.containerWidth,
2861
- iconWidth = _ref.iconWidth;
2862
- var outer = {
2821
+ let {
2822
+ main,
2823
+ transform,
2824
+ containerWidth,
2825
+ iconWidth
2826
+ } = _ref;
2827
+ const outer = {
2863
2828
  transform: "translate(".concat(containerWidth / 2, " 256)")
2864
2829
  };
2865
- var innerTranslate = "translate(".concat(transform.x * 32, ", ").concat(transform.y * 32, ") ");
2866
- var innerScale = "scale(".concat(transform.size / 16 * (transform.flipX ? -1 : 1), ", ").concat(transform.size / 16 * (transform.flipY ? -1 : 1), ") ");
2867
- var innerRotate = "rotate(".concat(transform.rotate, " 0 0)");
2868
- var inner = {
2830
+ const innerTranslate = "translate(".concat(transform.x * 32, ", ").concat(transform.y * 32, ") ");
2831
+ const innerScale = "scale(".concat(transform.size / 16 * (transform.flipX ? -1 : 1), ", ").concat(transform.size / 16 * (transform.flipY ? -1 : 1), ") ");
2832
+ const innerRotate = "rotate(".concat(transform.rotate, " 0 0)");
2833
+ const inner = {
2869
2834
  transform: "".concat(innerTranslate, " ").concat(innerScale, " ").concat(innerRotate)
2870
2835
  };
2871
- var path = {
2836
+ const path = {
2872
2837
  transform: "translate(".concat(iconWidth / 2 * -1, " -256)")
2873
2838
  };
2874
- var operations = {
2875
- outer: outer,
2876
- inner: inner,
2877
- path: path
2839
+ const operations = {
2840
+ outer,
2841
+ inner,
2842
+ path
2878
2843
  };
2879
2844
  return {
2880
2845
  tag: 'g',
2881
- attributes: _objectSpread2({}, operations.outer),
2846
+ attributes: { ...operations.outer
2847
+ },
2882
2848
  children: [{
2883
2849
  tag: 'g',
2884
- attributes: _objectSpread2({}, operations.inner),
2850
+ attributes: { ...operations.inner
2851
+ },
2885
2852
  children: [{
2886
2853
  tag: main.icon.tag,
2887
2854
  children: main.icon.children,
2888
- attributes: _objectSpread2(_objectSpread2({}, main.icon.attributes), operations.path)
2855
+ attributes: { ...main.icon.attributes,
2856
+ ...operations.path
2857
+ }
2889
2858
  }]
2890
2859
  }]
2891
2860
  };
2892
2861
  };
2893
2862
  }
2863
+
2894
2864
  };
2895
2865
 
2896
- var ALL_SPACE = {
2866
+ const ALL_SPACE = {
2897
2867
  x: 0,
2898
2868
  y: 0,
2899
2869
  width: '100%',
2900
2870
  height: '100%'
2901
2871
  };
2902
2872
 
2903
- function fillBlack(_abstract) {
2904
- var force = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : true;
2873
+ function fillBlack(abstract) {
2874
+ let force = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : true;
2905
2875
 
2906
- if (_abstract.attributes && (_abstract.attributes.fill || force)) {
2907
- _abstract.attributes.fill = 'black';
2876
+ if (abstract.attributes && (abstract.attributes.fill || force)) {
2877
+ abstract.attributes.fill = 'black';
2908
2878
  }
2909
2879
 
2910
- return _abstract;
2880
+ return abstract;
2911
2881
  }
2912
2882
 
2913
- function deGroup(_abstract2) {
2914
- if (_abstract2.tag === 'g') {
2915
- return _abstract2.children;
2883
+ function deGroup(abstract) {
2884
+ if (abstract.tag === 'g') {
2885
+ return abstract.children;
2916
2886
  } else {
2917
- return [_abstract2];
2887
+ return [abstract];
2918
2888
  }
2919
2889
  }
2920
2890
 
2921
2891
  var Masks = {
2922
- hooks: function hooks() {
2892
+ hooks() {
2923
2893
  return {
2924
- parseNodeAttributes: function parseNodeAttributes(accumulator, node) {
2925
- var maskData = node.getAttribute('data-fa-mask');
2926
- var mask = !maskData ? emptyCanonicalIcon() : getCanonicalIcon(maskData.split(' ').map(function (i) {
2927
- return i.trim();
2928
- }));
2894
+ parseNodeAttributes(accumulator, node) {
2895
+ const maskData = node.getAttribute('data-fa-mask');
2896
+ const mask = !maskData ? emptyCanonicalIcon() : getCanonicalIcon(maskData.split(' ').map(i => i.trim()));
2929
2897
 
2930
2898
  if (!mask.prefix) {
2931
2899
  mask.prefix = getDefaultUsablePrefix();
@@ -2935,59 +2903,72 @@
2935
2903
  accumulator.maskId = node.getAttribute('data-fa-mask-id');
2936
2904
  return accumulator;
2937
2905
  }
2906
+
2938
2907
  };
2939
2908
  },
2940
- provides: function provides(providers) {
2909
+
2910
+ provides(providers) {
2941
2911
  providers.generateAbstractMask = function (_ref) {
2942
- var children = _ref.children,
2943
- attributes = _ref.attributes,
2944
- main = _ref.main,
2945
- mask = _ref.mask,
2946
- explicitMaskId = _ref.maskId,
2947
- transform = _ref.transform;
2948
- var mainWidth = main.width,
2949
- mainPath = main.icon;
2950
- var maskWidth = mask.width,
2951
- maskPath = mask.icon;
2952
- var trans = transformForSvg({
2953
- transform: transform,
2912
+ let {
2913
+ children,
2914
+ attributes,
2915
+ main,
2916
+ mask,
2917
+ maskId: explicitMaskId,
2918
+ transform
2919
+ } = _ref;
2920
+ const {
2921
+ width: mainWidth,
2922
+ icon: mainPath
2923
+ } = main;
2924
+ const {
2925
+ width: maskWidth,
2926
+ icon: maskPath
2927
+ } = mask;
2928
+ const trans = transformForSvg({
2929
+ transform,
2954
2930
  containerWidth: maskWidth,
2955
2931
  iconWidth: mainWidth
2956
2932
  });
2957
- var maskRect = {
2933
+ const maskRect = {
2958
2934
  tag: 'rect',
2959
- attributes: _objectSpread2(_objectSpread2({}, ALL_SPACE), {}, {
2935
+ attributes: { ...ALL_SPACE,
2960
2936
  fill: 'white'
2961
- })
2937
+ }
2962
2938
  };
2963
- var maskInnerGroupChildrenMixin = mainPath.children ? {
2939
+ const maskInnerGroupChildrenMixin = mainPath.children ? {
2964
2940
  children: mainPath.children.map(fillBlack)
2965
2941
  } : {};
2966
- var maskInnerGroup = {
2942
+ const maskInnerGroup = {
2967
2943
  tag: 'g',
2968
- attributes: _objectSpread2({}, trans.inner),
2969
- children: [fillBlack(_objectSpread2({
2944
+ attributes: { ...trans.inner
2945
+ },
2946
+ children: [fillBlack({
2970
2947
  tag: mainPath.tag,
2971
- attributes: _objectSpread2(_objectSpread2({}, mainPath.attributes), trans.path)
2972
- }, maskInnerGroupChildrenMixin))]
2948
+ attributes: { ...mainPath.attributes,
2949
+ ...trans.path
2950
+ },
2951
+ ...maskInnerGroupChildrenMixin
2952
+ })]
2973
2953
  };
2974
- var maskOuterGroup = {
2954
+ const maskOuterGroup = {
2975
2955
  tag: 'g',
2976
- attributes: _objectSpread2({}, trans.outer),
2956
+ attributes: { ...trans.outer
2957
+ },
2977
2958
  children: [maskInnerGroup]
2978
2959
  };
2979
- var maskId = "mask-".concat(explicitMaskId || nextUniqueId());
2980
- var clipId = "clip-".concat(explicitMaskId || nextUniqueId());
2981
- var maskTag = {
2960
+ const maskId = "mask-".concat(explicitMaskId || nextUniqueId());
2961
+ const clipId = "clip-".concat(explicitMaskId || nextUniqueId());
2962
+ const maskTag = {
2982
2963
  tag: 'mask',
2983
- attributes: _objectSpread2(_objectSpread2({}, ALL_SPACE), {}, {
2964
+ attributes: { ...ALL_SPACE,
2984
2965
  id: maskId,
2985
2966
  maskUnits: 'userSpaceOnUse',
2986
2967
  maskContentUnits: 'userSpaceOnUse'
2987
- }),
2968
+ },
2988
2969
  children: [maskRect, maskOuterGroup]
2989
2970
  };
2990
- var defs = {
2971
+ const defs = {
2991
2972
  tag: 'defs',
2992
2973
  children: [{
2993
2974
  tag: 'clipPath',
@@ -2999,34 +2980,36 @@
2999
2980
  };
3000
2981
  children.push(defs, {
3001
2982
  tag: 'rect',
3002
- attributes: _objectSpread2({
2983
+ attributes: {
3003
2984
  fill: 'currentColor',
3004
2985
  'clip-path': "url(#".concat(clipId, ")"),
3005
- mask: "url(#".concat(maskId, ")")
3006
- }, ALL_SPACE)
2986
+ mask: "url(#".concat(maskId, ")"),
2987
+ ...ALL_SPACE
2988
+ }
3007
2989
  });
3008
2990
  return {
3009
- children: children,
3010
- attributes: attributes
2991
+ children,
2992
+ attributes
3011
2993
  };
3012
2994
  };
3013
2995
  }
2996
+
3014
2997
  };
3015
2998
 
3016
2999
  var MissingIconIndicator = {
3017
- provides: function provides(providers) {
3018
- var reduceMotion = false;
3000
+ provides(providers) {
3001
+ let reduceMotion = false;
3019
3002
 
3020
3003
  if (WINDOW.matchMedia) {
3021
3004
  reduceMotion = WINDOW.matchMedia('(prefers-reduced-motion: reduce)').matches;
3022
3005
  }
3023
3006
 
3024
3007
  providers.missingIconAbstract = function () {
3025
- var gChildren = [];
3026
- var FILL = {
3008
+ const gChildren = [];
3009
+ const FILL = {
3027
3010
  fill: 'currentColor'
3028
3011
  };
3029
- var ANIMATION_BASE = {
3012
+ const ANIMATION_BASE = {
3030
3013
  attributeType: 'XML',
3031
3014
  repeatCount: 'indefinite',
3032
3015
  dur: '2s'
@@ -3034,52 +3017,50 @@
3034
3017
 
3035
3018
  gChildren.push({
3036
3019
  tag: 'path',
3037
- attributes: _objectSpread2(_objectSpread2({}, FILL), {}, {
3020
+ attributes: { ...FILL,
3038
3021
  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'
3039
- })
3022
+ }
3040
3023
  });
3041
-
3042
- var OPACITY_ANIMATE = _objectSpread2(_objectSpread2({}, ANIMATION_BASE), {}, {
3024
+ const OPACITY_ANIMATE = { ...ANIMATION_BASE,
3043
3025
  attributeName: 'opacity'
3044
- });
3045
-
3046
- var dot = {
3026
+ };
3027
+ const dot = {
3047
3028
  tag: 'circle',
3048
- attributes: _objectSpread2(_objectSpread2({}, FILL), {}, {
3029
+ attributes: { ...FILL,
3049
3030
  cx: '256',
3050
3031
  cy: '364',
3051
3032
  r: '28'
3052
- }),
3033
+ },
3053
3034
  children: []
3054
3035
  };
3055
3036
 
3056
3037
  if (!reduceMotion) {
3057
3038
  dot.children.push({
3058
3039
  tag: 'animate',
3059
- attributes: _objectSpread2(_objectSpread2({}, ANIMATION_BASE), {}, {
3040
+ attributes: { ...ANIMATION_BASE,
3060
3041
  attributeName: 'r',
3061
3042
  values: '28;14;28;28;14;28;'
3062
- })
3043
+ }
3063
3044
  }, {
3064
3045
  tag: 'animate',
3065
- attributes: _objectSpread2(_objectSpread2({}, OPACITY_ANIMATE), {}, {
3046
+ attributes: { ...OPACITY_ANIMATE,
3066
3047
  values: '1;0;1;1;0;1;'
3067
- })
3048
+ }
3068
3049
  });
3069
3050
  }
3070
3051
 
3071
3052
  gChildren.push(dot);
3072
3053
  gChildren.push({
3073
3054
  tag: 'path',
3074
- attributes: _objectSpread2(_objectSpread2({}, FILL), {}, {
3055
+ attributes: { ...FILL,
3075
3056
  opacity: '1',
3076
3057
  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'
3077
- }),
3058
+ },
3078
3059
  children: reduceMotion ? [] : [{
3079
3060
  tag: 'animate',
3080
- attributes: _objectSpread2(_objectSpread2({}, OPACITY_ANIMATE), {}, {
3061
+ attributes: { ...OPACITY_ANIMATE,
3081
3062
  values: '1;0;0;0;0;1;'
3082
- })
3063
+ }
3083
3064
  }]
3084
3065
  });
3085
3066
 
@@ -3087,15 +3068,15 @@
3087
3068
  // Exclamation
3088
3069
  gChildren.push({
3089
3070
  tag: 'path',
3090
- attributes: _objectSpread2(_objectSpread2({}, FILL), {}, {
3071
+ attributes: { ...FILL,
3091
3072
  opacity: '0',
3092
3073
  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'
3093
- }),
3074
+ },
3094
3075
  children: [{
3095
3076
  tag: 'animate',
3096
- attributes: _objectSpread2(_objectSpread2({}, OPACITY_ANIMATE), {}, {
3077
+ attributes: { ...OPACITY_ANIMATE,
3097
3078
  values: '0;0;1;1;0;0;'
3098
- })
3079
+ }
3099
3080
  }]
3100
3081
  });
3101
3082
  }
@@ -3109,19 +3090,22 @@
3109
3090
  };
3110
3091
  };
3111
3092
  }
3093
+
3112
3094
  };
3113
3095
 
3114
3096
  var SvgSymbols = {
3115
- hooks: function hooks() {
3097
+ hooks() {
3116
3098
  return {
3117
- parseNodeAttributes: function parseNodeAttributes(accumulator, node) {
3118
- var symbolData = node.getAttribute('data-fa-symbol');
3119
- var symbol = symbolData === null ? false : symbolData === '' ? true : symbolData;
3099
+ parseNodeAttributes(accumulator, node) {
3100
+ const symbolData = node.getAttribute('data-fa-symbol');
3101
+ const symbol = symbolData === null ? false : symbolData === '' ? true : symbolData;
3120
3102
  accumulator['symbol'] = symbol;
3121
3103
  return accumulator;
3122
3104
  }
3105
+
3123
3106
  };
3124
3107
  }
3108
+
3125
3109
  };
3126
3110
 
3127
3111
  var plugins = [InjectCSS, ReplaceElements, Layers, LayersCounter, LayersText, PseudoElements, MutationObserver$1, PowerTransforms, Masks, MissingIconIndicator, SvgSymbols];