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