Release 5.8.2 (#1361)

This commit is contained in:
Rob Madole
2019-05-07 12:32:46 -05:00
committed by GitHub
parent 7703dcff3b
commit 484b16bffc
231 changed files with 1661 additions and 1306 deletions

235
js/fontawesome.min.js vendored
View File

@@ -1,5 +1,5 @@
/*!
* Font Awesome Pro 5.8.1 by @fontawesome - https://fontawesome.com
* Font Awesome Pro 5.8.2 by @fontawesome - https://fontawesome.com
* License - https://fontawesome.com/license (Commercial License)
*/
!function() {
@@ -77,7 +77,7 @@
"undefined" != typeof window && (n = window), "undefined" != typeof document && (e = document),
"undefined" != typeof MutationObserver && (a = MutationObserver), "undefined" != typeof performance && (o = performance);
} catch (t) {}
var s = (n.navigator || {}).userAgent, c = void 0 === s ? "" : s, h = n, p = e, l = a, f = o, u = !!h.document, g = !!p.documentElement && !!p.head && "function" == typeof p.addEventListener && "function" == typeof p.createElement, k = ~c.indexOf("MSIE") || ~c.indexOf("Trident/"), v = "___FONT_AWESOME___", A = 16, b = "fa", y = "svg-inline--fa", U = "data-fa-i2svg", w = "data-fa-pseudo-element", x = "data-fa-pseudo-element-pending", C = "data-prefix", M = "data-icon", N = "fontawesome-i2svg", S = "async", z = [ "HTML", "HEAD", "STYLE", "SCRIPT" ], O = function() {
var s = (n.navigator || {}).userAgent, c = void 0 === s ? "" : s, g = n, v = e, l = a, f = o, u = !!g.document, h = !!v.documentElement && !!v.head && "function" == typeof v.addEventListener && "function" == typeof v.createElement, k = ~c.indexOf("MSIE") || ~c.indexOf("Trident/"), p = "___FONT_AWESOME___", A = 16, b = "fa", y = "svg-inline--fa", U = "data-fa-i2svg", w = "data-fa-pseudo-element", x = "data-fa-pseudo-element-pending", C = "data-prefix", M = "data-icon", N = "fontawesome-i2svg", S = "async", z = [ "HTML", "HEAD", "STYLE", "SCRIPT" ], O = function() {
try {
return !1;
} catch (t) {
@@ -103,11 +103,11 @@
return "".concat(t, "x");
})).concat(I.map(function(t) {
return "w-".concat(t);
})), D = h.FontAwesomeConfig || {};
if (p && "function" == typeof p.querySelector) {
})), D = g.FontAwesomeConfig || {};
if (v && "function" == typeof v.querySelector) {
[ [ "data-family-prefix", "familyPrefix" ], [ "data-replacement-class", "replacementClass" ], [ "data-auto-replace-svg", "autoReplaceSvg" ], [ "data-auto-add-css", "autoAddCss" ], [ "data-auto-a11y", "autoA11y" ], [ "data-search-pseudo-elements", "searchPseudoElements" ], [ "data-observe-mutations", "observeMutations" ], [ "data-mutate-approach", "mutateApproach" ], [ "data-keep-original-source", "keepOriginalSource" ], [ "data-measure-performance", "measurePerformance" ], [ "data-show-missing-icons", "showMissingIcons" ] ].forEach(function(t) {
var n, e = m(t, 2), a = e[0], r = e[1], i = "" === (n = function(t) {
var n = p.querySelector("script[" + t + "]");
var n = v.querySelector("script[" + t + "]");
if (n) return n.getAttribute(t);
}(a)) || "false" !== n && ("true" === n || n);
null != i && (D[r] = i);
@@ -128,16 +128,16 @@
}, D);
F.autoReplaceSvg || (F.observeMutations = !1);
var V = W({}, F);
h.FontAwesomeConfig = V;
var X = h || {};
X[v] || (X[v] = {}), X[v].styles || (X[v].styles = {}), X[v].hooks || (X[v].hooks = {}),
X[v].shims || (X[v].shims = []);
var B = X[v], Y = [], q = !1;
g.FontAwesomeConfig = V;
var X = g || {};
X[p] || (X[p] = {}), X[p].styles || (X[p].styles = {}), X[p].hooks || (X[p].hooks = {}),
X[p].shims || (X[p].shims = []);
var B = X[p], Y = [], q = !1;
function K(t) {
g && (q ? setTimeout(t, 0) : Y.push(t));
h && (q ? setTimeout(t, 0) : Y.push(t));
}
g && ((q = (p.documentElement.doScroll ? /^loaded|^c/ : /^loaded|^i|^c/).test(p.readyState)) || p.addEventListener("DOMContentLoaded", function t() {
p.removeEventListener("DOMContentLoaded", t), q = 1, Y.map(function(t) {
h && ((q = (v.documentElement.doScroll ? /^loaded|^c/ : /^loaded|^i|^c/).test(v.readyState)) || v.addEventListener("DOMContentLoaded", function t() {
v.removeEventListener("DOMContentLoaded", t), q = 1, Y.map(function(t) {
return t();
});
}));
@@ -269,14 +269,14 @@
flipY: !1
};
function yt(t) {
if (t && g) {
var n = p.createElement("style");
if (t && h) {
var n = v.createElement("style");
n.setAttribute("type", "text/css"), n.innerHTML = t;
for (var e = p.head.childNodes, a = null, r = e.length - 1; -1 < r; r--) {
for (var e = v.head.childNodes, a = null, r = e.length - 1; -1 < r; r--) {
var i = e[r], o = (i.tagName || "").toUpperCase();
-1 < [ "STYLE", "LINK" ].indexOf(o) && (a = i);
}
return p.head.insertBefore(n, a), t;
return v.head.insertBefore(n, a), t;
}
}
var wt = "0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ";
@@ -337,7 +337,7 @@
"data-prefix": r,
"data-icon": i,
class: g,
role: "img",
role: l.attributes.role || "img",
xmlns: "http://www.w3.org/2000/svg",
viewBox: "0 0 ".concat(d, " ").concat(h)
})
@@ -497,7 +497,7 @@
var Pt = function() {}, Lt = V.measurePerformance && f && f.mark && f.measure ? f : {
mark: Pt,
measure: Pt
}, Tt = 'FA "5.8.1"', _t = function(t) {
}, Tt = 'FA "5.8.2"', _t = function(t) {
Lt.mark("".concat(Tt, " ").concat(t, " ends")), Lt.measure("".concat(Tt, " ").concat(t), "".concat(Tt, " ").concat(t, " begins"), "".concat(Tt, " ").concat(t, " ends"));
}, It = {
begin: function(t) {
@@ -514,22 +514,28 @@
for (o = void 0 === e ? (r = 1, t[l[0]]) : (r = 0, e); r < f; r++) o = u(o, t[i = l[r]], i, t);
return o;
};
var Ht = B.styles, Dt = B.shims, Ft = {}, Xt = {}, Bt = {}, Yt = function() {
function Ht(t) {
for (var n = "", e = 0; e < t.length; e++) {
n += ("000" + t.charCodeAt(e).toString(16)).slice(-4);
}
return n;
}
var Dt = B.styles, Ft = B.shims, Xt = {}, Bt = {}, Yt = {}, qt = function() {
var t = function(a) {
return Rt(Ht, function(t, n, e) {
return Rt(Dt, function(t, n, e) {
return t[e] = Rt(n, a, {}), t;
}, {});
};
Ft = t(function(t, n, e) {
Xt = t(function(t, n, e) {
return n[3] && (t[n[3]] = e), t;
}), Xt = t(function(n, t, e) {
}), Bt = t(function(n, t, e) {
var a = t[2];
return n[e] = e, a.forEach(function(t) {
n[t] = e;
}), n;
});
var i = "far" in Ht;
Bt = Rt(Dt, function(t, n) {
var i = "far" in Dt;
Yt = Rt(Ft, function(t, n) {
var e = n[0], a = n[1], r = n[2];
return "far" !== a || i || (a = "fas"), t[e] = {
prefix: a,
@@ -537,51 +543,51 @@
}, t;
}, {});
};
function qt(t, n) {
return Ft[t][n];
function Wt(t, n) {
return (Xt[t] || {})[n];
}
Yt();
var Wt = B.styles, Ut = function() {
qt();
var Ut = B.styles, Vt = function() {
return {
prefix: null,
iconName: null,
rest: []
};
};
function Vt(t) {
function Kt(t) {
return t.reduce(function(t, n) {
var e = Ct(V.familyPrefix, n);
if (Wt[n]) t.prefix = n; else if (V.autoFetchSvg && -1 < [ "fas", "far", "fal", "fab", "fa" ].indexOf(n)) t.prefix = n; else if (e) {
var a = "fa" === t.prefix ? Bt[e] || {
if (Ut[n]) t.prefix = n; else if (V.autoFetchSvg && -1 < [ "fas", "far", "fal", "fab", "fa" ].indexOf(n)) t.prefix = n; else if (e) {
var a = "fa" === t.prefix ? Yt[e] || {
prefix: null,
iconName: null
} : {};
t.iconName = a.iconName || e, t.prefix = a.prefix || t.prefix;
} else n !== V.replacementClass && 0 !== n.indexOf("fa-w-") && t.rest.push(n);
return t;
}, Ut());
}, Vt());
}
function Kt(t, n, e) {
function Gt(t, n, e) {
if (t && t[n] && t[n][e]) return {
prefix: n,
iconName: e,
icon: t[n][e]
};
}
function Gt(t) {
function Jt(t) {
var e, n = t.tag, a = t.attributes, r = void 0 === a ? {} : a, i = t.children, o = void 0 === i ? [] : i;
return "string" == typeof t ? Mt(t) : "<".concat(n, " ").concat((e = r, Object.keys(e || {}).reduce(function(t, n) {
return t + "".concat(n, '="').concat(Mt(e[n]), '" ');
}, "").trim()), ">").concat(o.map(Gt).join(""), "</").concat(n, ">");
}, "").trim()), ">").concat(o.map(Jt).join(""), "</").concat(n, ">");
}
var Jt = function() {};
function Qt(t) {
var Qt = function() {};
function Zt(t) {
return "string" == typeof (t.getAttribute ? t.getAttribute(U) : null);
}
var Zt = {
var $t = {
replace: function(t) {
var n = t[0], e = t[1].map(function(t) {
return Gt(t);
return Jt(t);
}).join("\n");
if (n.parentNode && n.outerHTML) n.outerHTML = e + (V.keepOriginalSource && "svg" !== n.tagName.toLowerCase() ? "\x3c!-- ".concat(n.outerHTML, " --\x3e") : ""); else if (n.parentNode) {
var a = document.createElement("span");
@@ -590,7 +596,7 @@
},
nest: function(t) {
var n = t[0], e = t[1];
if (~At(n).indexOf(V.replacementClass)) return Zt.replace(t);
if (~At(n).indexOf(V.replacementClass)) return $t.replace(t);
var a = new RegExp("".concat(V.familyPrefix, "-.*"));
delete e[0].attributes.style;
var r = e[0].attributes.class.split(" ").reduce(function(t, n) {
@@ -602,42 +608,42 @@
});
e[0].attributes.class = r.toSvg.join(" ");
var i = e.map(function(t) {
return Gt(t);
return Jt(t);
}).join("\n");
n.setAttribute("class", r.toNode.join(" ")), n.setAttribute(U, ""), n.innerHTML = i;
}
};
function $t(t) {
function tn(t) {
t();
}
function tn(e, t) {
var a = "function" == typeof t ? t : Jt;
function nn(e, t) {
var a = "function" == typeof t ? t : Qt;
if (0 === e.length) a(); else {
var n = $t;
V.mutateApproach === S && (n = h.requestAnimationFrame || $t), n(function() {
var t = !0 === V.autoReplaceSvg ? Zt.replace : Zt[V.autoReplaceSvg] || Zt.replace, n = It.begin("mutate");
var n = tn;
V.mutateApproach === S && (n = g.requestAnimationFrame || tn), n(function() {
var t = !0 === V.autoReplaceSvg ? $t.replace : $t[V.autoReplaceSvg] || $t.replace, n = It.begin("mutate");
e.map(t), n(), a();
});
}
}
var nn = !1;
function en() {
nn = !1;
var en = !1;
function an() {
en = !1;
}
var an = null;
function rn(t) {
var rn = null;
function on(t) {
if (l && V.observeMutations) {
var r = t.treeCallback, i = t.nodeCallback, o = t.pseudoElementsCallback, n = t.observeMutationsRoot, e = void 0 === n ? p : n;
an = new l(function(t) {
nn || kt(t).forEach(function(t) {
if ("childList" === t.type && 0 < t.addedNodes.length && !Qt(t.addedNodes[0]) && (V.searchPseudoElements && o(t.target),
var r = t.treeCallback, i = t.nodeCallback, o = t.pseudoElementsCallback, n = t.observeMutationsRoot, e = void 0 === n ? v : n;
rn = new l(function(t) {
en || kt(t).forEach(function(t) {
if ("childList" === t.type && 0 < t.addedNodes.length && !Zt(t.addedNodes[0]) && (V.searchPseudoElements && o(t.target),
r(t.target)), "attributes" === t.type && t.target.parentNode && V.searchPseudoElements && o(t.target.parentNode),
"attributes" === t.type && Qt(t.target) && ~R.indexOf(t.attributeName)) if ("class" === t.attributeName) {
var n = Vt(At(t.target)), e = n.prefix, a = n.iconName;
"attributes" === t.type && Zt(t.target) && ~R.indexOf(t.attributeName)) if ("class" === t.attributeName) {
var n = Kt(At(t.target)), e = n.prefix, a = n.iconName;
e && t.target.setAttribute("data-prefix", e), a && t.target.setAttribute("data-icon", a);
} else i(t.target);
});
}), g && an.observe(e, {
}), h && rn.observe(e, {
childList: !0,
attributes: !0,
characterData: !0,
@@ -645,16 +651,10 @@
});
}
}
function on(t) {
for (var n = "", e = 0; e < t.length; e++) {
n += ("000" + t.charCodeAt(e).toString(16)).slice(-4);
}
return n;
}
function sn(t) {
var n, e, a = t.getAttribute("data-prefix"), r = t.getAttribute("data-icon"), i = void 0 !== t.innerText ? t.innerText.trim() : "", o = Vt(At(t));
var n, e, a = t.getAttribute("data-prefix"), r = t.getAttribute("data-icon"), i = void 0 !== t.innerText ? t.innerText.trim() : "", o = Kt(At(t));
return a && r && (o.prefix = a, o.iconName = r), o.prefix && 1 < i.length ? o.iconName = (n = o.prefix,
e = t.innerText, Xt[n][e]) : o.prefix && 1 === i.length && (o.iconName = qt(o.prefix, on(t.innerText))),
e = t.innerText, (Bt[n] || {})[e]) : o.prefix && 1 === i.length && (o.iconName = Wt(o.prefix, Ht(t.innerText))),
o;
}
var cn = function(t) {
@@ -710,9 +710,9 @@
}, {})), e), d = cn(t.getAttribute("data-fa-transform")), h = null !== (a = t.getAttribute("data-fa-symbol")) && ("" === a || a), p = (i = kt((r = t).attributes).reduce(function(t, n) {
return "class" !== t.name && "style" !== t.name && (t[n.name] = n.value), t;
}, {}), o = r.getAttribute("title"), V.autoA11y && (o ? i["aria-labelledby"] = "".concat(V.replacementClass, "-title-").concat(xt()) : (i["aria-hidden"] = "true",
i.focusable = "false")), i), g = (s = t.getAttribute("data-fa-mask")) ? Vt(s.split(" ").map(function(t) {
i.focusable = "false")), i), g = (s = t.getAttribute("data-fa-mask")) ? Kt(s.split(" ").map(function(t) {
return t.trim();
})) : Ut();
})) : Vt();
return {
iconName: l,
title: t.getAttribute("title"),
@@ -858,8 +858,8 @@
}
function wn(t) {
var e = 1 < arguments.length && void 0 !== arguments[1] ? arguments[1] : null;
if (g) {
var n = p.documentElement.classList, a = function(t) {
if (h) {
var n = v.documentElement.classList, a = function(t) {
return n.add("".concat(N, "-").concat(t));
}, r = function(t) {
return n.remove("".concat(N, "-").concat(t));
@@ -867,7 +867,10 @@
return ".".concat(t, ":not([").concat(U, "])");
})).join(", ");
if (0 !== o.length) {
var s = kt(t.querySelectorAll(o));
var s = [];
try {
s = kt(t.querySelectorAll(o));
} catch (t) {}
if (0 < s.length) {
a("pending"), r("complete");
var c = It.begin("onTree"), l = s.reduce(function(t, n) {
@@ -881,7 +884,7 @@
}, []);
return new gt(function(n, t) {
gt.all(l).then(function(t) {
tn(t, function() {
nn(t, function() {
a("active"), a("complete"), r("pending"), "function" == typeof e && e(), c(), n();
});
}).catch(function() {
@@ -895,22 +898,22 @@
function xn(t) {
var n = 1 < arguments.length && void 0 !== arguments[1] ? arguments[1] : null;
yn(t).then(function(t) {
t && tn([ t ], n);
t && nn([ t ], n);
});
}
function kn(u, m) {
var d = "".concat(x).concat(m.replace(":", "-"));
function kn(d, h) {
var p = "".concat(x).concat(h.replace(":", "-"));
return new gt(function(a, t) {
if (null !== u.getAttribute(d)) return a();
var n = kt(u.children).filter(function(t) {
return t.getAttribute(w) === m;
})[0], e = h.getComputedStyle(u, m), r = e.getPropertyValue("font-family").match(L), i = e.getPropertyValue("font-weight");
if (n && !r) return u.removeChild(n), a();
if (null !== d.getAttribute(p)) return a();
var n = kt(d.children).filter(function(t) {
return t.getAttribute(w) === h;
})[0], e = g.getComputedStyle(d, h), r = e.getPropertyValue("font-family").match(L), i = e.getPropertyValue("font-weight");
if (n && !r) return d.removeChild(n), a();
if (r) {
var o = e.getPropertyValue("content"), s = ~[ "Light", "Regular", "Solid", "Brands" ].indexOf(r[1]) ? j[r[1].toLowerCase()] : T[i], c = qt(s, on(3 === o.length ? o.substr(1, 1) : o));
if (n && n.getAttribute(C) === s && n.getAttribute(M) === c) a(); else {
u.setAttribute(d, c), n && u.removeChild(n);
var l = {
var o = e.getPropertyValue("content"), s = ~[ "Light", "Regular", "Solid", "Brands" ].indexOf(r[1]) ? j[r[1].toLowerCase()] : T[i], c = Ht(3 === o.length ? o.substr(1, 1) : o), l = Wt(s, c), f = l;
if (!l || n && n.getAttribute(C) === s && n.getAttribute(M) === f) a(); else {
d.setAttribute(p, f), n && d.removeChild(n);
var u = {
iconName: null,
title: null,
prefix: null,
@@ -922,21 +925,21 @@
styles: {},
attributes: {}
}
}, f = l.extra;
f.attributes[w] = m, vn(c, s).then(function(t) {
var n = Et(W({}, l, {
}, m = u.extra;
m.attributes[w] = h, vn(l, s).then(function(t) {
var n = Et(W({}, u, {
icons: {
main: t,
mask: Ut()
mask: Vt()
},
prefix: s,
iconName: c,
extra: f,
iconName: f,
extra: m,
watchable: !0
})), e = p.createElement("svg");
":before" === m ? u.insertBefore(e, u.firstChild) : u.appendChild(e), e.outerHTML = n.map(function(t) {
return Gt(t);
}).join("\n"), u.removeAttribute(d), a();
})), e = v.createElement("svg");
":before" === h ? d.insertBefore(e, d.firstChild) : d.appendChild(e), e.outerHTML = n.map(function(t) {
return Jt(t);
}).join("\n"), d.removeAttribute(p), a();
}).catch(t);
}
} else a();
@@ -949,12 +952,12 @@
return !(t.parentNode === document.head || ~z.indexOf(t.tagName.toUpperCase()) || t.getAttribute(w) || t.parentNode && "svg" === t.parentNode.tagName);
}
function Mn(r) {
if (g) return new gt(function(t, n) {
if (h) return new gt(function(t, n) {
var e = kt(r.querySelectorAll("*")).filter(Cn).map(An), a = It.begin("searchPseudoElements");
nn = !0, gt.all(e).then(function() {
a(), en(), t();
en = !0, gt.all(e).then(function() {
a(), an(), t();
}).catch(function() {
a(), en(), n();
a(), an(), n();
});
});
}
@@ -990,13 +993,13 @@
}), Object.defineProperty(n, "html", {
get: function() {
return n.abstract.map(function(t) {
return Gt(t);
return Jt(t);
});
}
}), Object.defineProperty(n, "node", {
get: function() {
if (g) {
var t = p.createElement("div");
if (h) {
var t = v.createElement("div");
return t.innerHTML = n.html, t.children;
}
}
@@ -1004,7 +1007,7 @@
}
function jn(t) {
var n = t.prefix, e = void 0 === n ? "fa" : n, a = t.iconName;
if (a) return Kt(Ln.definitions, e, a) || Kt(B.styles, e, a);
if (a) return Gt(Ln.definitions, e, a) || Gt(B.styles, e, a);
}
var Pn, Ln = new (function() {
function t() {
@@ -1026,7 +1029,7 @@
}, {});
"function" != typeof B.hooks.addPack || r ? B.styles[n] = W({}, B.styles[n] || {}, i) : B.hooks.addPack(n, i),
"fas" === n && t("fa", a);
}(t, r[t]), Yt();
}(t, r[t]), qt();
});
}
}, {
@@ -1049,9 +1052,9 @@
}())(), Tn = !1, _n = {
i2svg: function() {
var t = 0 < arguments.length && void 0 !== arguments[0] ? arguments[0] : {};
if (g) {
if (h) {
On();
var n = t.node, e = void 0 === n ? p : n, a = t.callback, r = void 0 === a ? function() {} : a;
var n = t.node, e = void 0 === n ? v : n, a = t.callback, r = void 0 === a ? function() {} : a;
return V.searchPseudoElements && Mn(e), wn(e, r);
}
return gt.reject("Operation requires a DOM of some kind.");
@@ -1065,7 +1068,7 @@
!1 === V.autoReplaceSvg && (V.autoReplaceSvg = !0), V.observeMutations = !0, K(function() {
Hn({
autoReplaceSvgRoot: n
}), rn({
}), on({
treeCallback: wn,
nodeCallback: xn,
pseudoElementsCallback: Mn,
@@ -1111,7 +1114,7 @@
}));
}), Rn = {
noAuto: function() {
V.autoReplaceSvg = !1, V.observeMutations = !1, an && an.disconnect();
V.autoReplaceSvg = !1, V.observeMutations = !1, rn && rn.disconnect();
},
config: V,
dom: _n,
@@ -1196,10 +1199,10 @@
} ];
});
},
toHtml: Gt
toHtml: Jt
}, Hn = function() {
var t = (0 < arguments.length && void 0 !== arguments[0] ? arguments[0] : {}).autoReplaceSvgRoot, n = void 0 === t ? p : t;
(0 < Object.keys(B.styles).length || V.autoFetchSvg) && g && V.autoReplaceSvg && Rn.dom.i2svg({
var t = (0 < arguments.length && void 0 !== arguments[0] ? arguments[0] : {}).autoReplaceSvgRoot, n = void 0 === t ? v : t;
(0 < Object.keys(B.styles).length || V.autoFetchSvg) && h && V.autoReplaceSvg && Rn.dom.i2svg({
node: n
});
};
@@ -1210,19 +1213,19 @@
if (!O) throw t;
}
}(function() {
u && (h.FontAwesome || (h.FontAwesome = Rn), K(function() {
Hn(), rn({
u && (g.FontAwesome || (g.FontAwesome = Rn), K(function() {
Hn(), on({
treeCallback: wn,
nodeCallback: xn,
pseudoElementsCallback: Mn
});
})), B.hooks = W({}, B.hooks, {
addPack: function(t, n) {
B.styles[t] = W({}, B.styles[t] || {}, n), Yt(), Hn();
B.styles[t] = W({}, B.styles[t] || {}, n), qt(), Hn();
},
addShims: function(t) {
var n;
(n = B.shims).push.apply(n, d(t)), Yt(), Hn();
(n = B.shims).push.apply(n, d(t)), qt(), Hn();
}
});
});