summaryrefslogtreecommitdiff
path: root/svg-with-js/js/fontawesome.min.js
diff options
context:
space:
mode:
Diffstat (limited to 'svg-with-js/js/fontawesome.min.js')
-rw-r--r--svg-with-js/js/fontawesome.min.js260
1 files changed, 131 insertions, 129 deletions
diff --git a/svg-with-js/js/fontawesome.min.js b/svg-with-js/js/fontawesome.min.js
index 1093032a..cb365fe7 100644
--- a/svg-with-js/js/fontawesome.min.js
+++ b/svg-with-js/js/fontawesome.min.js
@@ -1,6 +1,6 @@
/*!
- * Font Awesome Free 5.0.6 by @fontawesome - http://fontawesome.com
- * License - http://fontawesome.com/license (Icons: CC BY 4.0, Fonts: SIL OFL 1.1, Code: MIT License)
+ * Font Awesome Free 5.0.7 by @fontawesome - https://fontawesome.com
+ * License - https://fontawesome.com/license (Icons: CC BY 4.0, Fonts: SIL OFL 1.1, Code: MIT License)
*/
!function() {
"use strict";
@@ -321,7 +321,7 @@
var it = function() {}, at = S.measurePerformance && c && c.mark && c.measure ? c : {
mark: it,
measure: it
- }, ot = 'FA "5.0.6"', st = function(t) {
+ }, ot = 'FA "5.0.7"', st = function(t) {
at.mark(ot + " " + t + " ends"), at.measure(ot + " " + t, ot + " " + t + " begins", ot + " " + t + " ends");
}, ft = {
begin: function(t) {
@@ -437,14 +437,15 @@
});
}
var Nt = !1;
- var Mt = function(t) {
+ var Mt = null;
+ var At = function(t) {
var e = t.getAttribute("style"), n = [];
return e && (n = e.split(";").reduce(function(t, e) {
var n = e.split(":"), r = n[0], i = n.slice(1);
return r && i.length > 0 && (t[r] = i.join(":").trim()), t;
}, {})), n;
};
- var At = function(t) {
+ var Ot = function(t) {
var e, n, r, i, a = t.getAttribute("data-prefix"), o = t.getAttribute("data-icon"), s = void 0 !== t.innerText ? t.innerText.trim() : "", f = bt(U(t));
return a && o && (f.prefix = a, f.iconName = o), f.prefix && s.length > 1 ? f.iconName = (r = f.prefix,
i = t.innerText, dt[r][i]) : f.prefix && 1 === s.length && (f.iconName = (e = f.prefix,
@@ -452,7 +453,7 @@
for (var e = "", n = 0; n < t.length; n++) e += ("000" + t.charCodeAt(n).toString(16)).slice(-4);
return e;
}(t.innerText), mt[e][n])), f;
- }, Ot = function(t) {
+ }, Lt = function(t) {
var e = {
size: 16,
x: 0,
@@ -496,101 +497,101 @@
}
return t;
}, e) : e;
- }, Lt = function(t) {
- return Ot(t.getAttribute("data-fa-transform"));
}, Et = function(t) {
+ return Lt(t.getAttribute("data-fa-transform"));
+ }, jt = function(t) {
var e = t.getAttribute("data-fa-symbol");
return null !== e && ("" === e || e);
- }, jt = function(t) {
+ }, St = function(t) {
var e = Y(t.attributes).reduce(function(t, e) {
return "class" !== t.name && "style" !== t.name && (t[e.name] = e.value), t;
}, {}), n = t.getAttribute("title");
return S.autoA11y && (n ? e["aria-labelledby"] = S.replacementClass + "-title-" + W() : e["aria-hidden"] = "true"),
e;
- }, St = function(t) {
+ }, Pt = function(t) {
var e = t.getAttribute("data-fa-mask");
return e ? bt(e.split(" ").map(function(t) {
return t.trim();
})) : vt();
};
- function Pt(t) {
+ function Tt(t) {
this.name = "MissingIcon", this.message = t || "Icon unavailable", this.stack = new Error().stack;
}
- Pt.prototype = Object.create(Error.prototype), Pt.prototype.constructor = Pt;
- var Tt = {
+ (Tt.prototype = Object.create(Error.prototype)).constructor = Tt;
+ var It = {
fill: "currentColor"
- }, It = {
+ }, Bt = {
attributeType: "XML",
repeatCount: "indefinite",
dur: "2s"
- }, Bt = {
+ }, Dt = {
tag: "path",
- attributes: A({}, Tt, {
+ attributes: A({}, It, {
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"
})
- }, Dt = A({}, It, {
+ }, Xt = A({}, Bt, {
attributeName: "opacity"
- }), Xt = {
+ }), Rt = {
tag: "g",
- children: [ Bt, {
+ children: [ Dt, {
tag: "circle",
- attributes: A({}, Tt, {
+ attributes: A({}, It, {
cx: "256",
cy: "364",
r: "28"
}),
children: [ {
tag: "animate",
- attributes: A({}, It, {
+ attributes: A({}, Bt, {
attributeName: "r",
values: "28;14;28;28;14;28;"
})
}, {
tag: "animate",
- attributes: A({}, Dt, {
+ attributes: A({}, Xt, {
values: "1;0;1;1;0;1;"
})
} ]
}, {
tag: "path",
- attributes: A({}, Tt, {
+ attributes: A({}, It, {
opacity: "1",
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"
}),
children: [ {
tag: "animate",
- attributes: A({}, Dt, {
+ attributes: A({}, Xt, {
values: "1;0;0;0;0;1;"
})
} ]
}, {
tag: "path",
- attributes: A({}, Tt, {
+ attributes: A({}, It, {
opacity: "0",
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"
}),
children: [ {
tag: "animate",
- attributes: A({}, Dt, {
+ attributes: A({}, Xt, {
values: "0;0;1;1;0;0;"
})
} ]
} ]
- }, Rt = I.styles, Ht = "fa-layers-text", Ft = /Font Awesome 5 (Solid|Regular|Light|Brands)/, _t = {
+ }, Ht = I.styles, Ft = "fa-layers-text", _t = /Font Awesome 5 (Solid|Regular|Light|Brands)/, Wt = {
Solid: "fas",
Regular: "far",
Light: "fal",
Brands: "fab"
};
- function Wt(t, e) {
+ function Yt(t, e) {
var n = {
found: !1,
width: 512,
height: 512,
- icon: Xt
+ icon: Rt
};
- if (t && e && Rt[e] && Rt[e][t]) {
- var r = Rt[e][t];
+ if (t && e && Ht[e] && Ht[e][t]) {
+ var r = Ht[e][t];
n = {
found: !0,
width: r[0],
@@ -603,13 +604,13 @@
}
}
};
- } else if (t && e && !S.showMissingIcons) throw new Pt("Icon is missing for prefix " + e + " with icon name " + t);
+ } else if (t && e && !S.showMissingIcons) throw new Tt("Icon is missing for prefix " + e + " with icon name " + t);
return n;
}
- function Yt(t) {
- var e, n, r, i, a, o, s, f, l, c, u, m, g, h, p, v, b, y, w, x = (n = At(e = t),
- r = n.iconName, i = n.prefix, a = n.rest, o = Mt(e), s = Lt(e), f = Et(e), l = jt(e),
- c = St(e), {
+ function Ut(t) {
+ var e, n, r, i, a, o, s, f, l, c, u, m, g, h, p, v, b, y, w, x = (n = Ot(e = t),
+ r = n.iconName, i = n.prefix, a = n.rest, o = At(e), s = Et(e), f = jt(e), l = St(e),
+ c = Pt(e), {
iconName: r,
title: e.getAttribute("title"),
prefix: i,
@@ -622,7 +623,7 @@
attributes: l
}
});
- return ~x.extra.classes.indexOf(Ht) ? function(t, e) {
+ return ~x.extra.classes.indexOf(Ft) ? function(t, e) {
var n = e.title, r = e.transform, i = e.extra, a = null, o = null;
if (d) {
var s = parseInt(getComputedStyle(t).fontSize, 10), f = t.getBoundingClientRect();
@@ -640,8 +641,8 @@
}(t, x) : (u = t, g = (m = x).iconName, h = m.title, p = m.prefix, v = m.transform,
b = m.symbol, y = m.mask, w = m.extra, [ u, nt({
icons: {
- main: Wt(g, p),
- mask: Wt(y.iconName, y.prefix)
+ main: Yt(g, p),
+ mask: Yt(y.iconName, y.prefix)
},
prefix: p,
iconName: g,
@@ -653,22 +654,22 @@
watchable: !0
}) ]);
}
- function Ut(t) {
+ function Vt(t) {
"function" == typeof t.remove ? t.remove() : t && t.parentNode && t.parentNode.removeChild(t);
}
- function Vt(t) {
+ function qt(t) {
if (m) {
var e = ft.begin("searchPseudoElements");
Nt = !0, function() {
Y(t.querySelectorAll("*")).forEach(function(t) {
[ ":before", ":after" ].forEach(function(e) {
- var n = s.getComputedStyle(t, e), r = n.getPropertyValue("font-family").match(Ft), i = Y(t.children).filter(function(t) {
+ var n = s.getComputedStyle(t, e), r = n.getPropertyValue("font-family").match(_t), i = Y(t.children).filter(function(t) {
return t.getAttribute(b) === e;
})[0];
- if (i && (i.nextSibling && i.nextSibling.textContent.indexOf(b) > -1 && Ut(i.nextSibling),
- Ut(i), i = null), r && !i) {
+ if (i && (i.nextSibling && i.nextSibling.textContent.indexOf(b) > -1 && Vt(i.nextSibling),
+ Vt(i), i = null), r && !i) {
var a = n.getPropertyValue("content"), o = f.createElement("i");
- o.setAttribute("class", "" + _t[r[1]]), o.setAttribute(b, e), o.innerText = 3 === a.length ? a.substr(1, 1) : a,
+ o.setAttribute("class", "" + Wt[r[1]]), o.setAttribute(b, e), o.innerText = 3 === a.length ? a.substr(1, 1) : a,
":before" === e ? t.insertBefore(o, t.firstChild) : t.appendChild(o);
}
});
@@ -676,14 +677,14 @@
}(), Nt = !1, e();
}
}
- function qt(t) {
+ function Kt(t) {
var e = arguments.length > 1 && void 0 !== arguments[1] ? arguments[1] : null;
if (m) {
var n = f.documentElement.classList, r = function(t) {
return n.add(y + "-" + t);
}, i = function(t) {
return n.remove(y + "-" + t);
- }, a = Object.keys(Rt), o = [ "." + Ht + ":not([" + v + "])" ].concat(a.map(function(t) {
+ }, a = Object.keys(Ht), o = [ "." + Ft + ":not([" + v + "])" ].concat(a.map(function(t) {
return "." + t + ":not([" + v + "])";
})).join(", ");
if (0 !== o.length) {
@@ -692,10 +693,10 @@
r("pending"), i("complete");
var l = ft.begin("onTree"), c = s.reduce(function(t, e) {
try {
- var n = Yt(e);
+ var n = Ut(e);
n && t.push(n);
} catch (t) {
- w || t instanceof Pt && console.error(t);
+ w || t instanceof Tt && console.error(t);
}
return t;
}, []);
@@ -706,11 +707,11 @@
}
}
}
- function Kt(t) {
- var e = arguments.length > 1 && void 0 !== arguments[1] ? arguments[1] : null, n = Yt(t);
+ function Gt(t) {
+ var e = arguments.length > 1 && void 0 !== arguments[1] ? arguments[1] : null, n = Ut(t);
n && zt([ n ], e);
}
- var Gt = function() {
+ var Jt = function() {
var t = p, e = S.familyPrefix, n = S.replacementClass, r = 'svg:not(:root).svg-inline--fa {\n overflow: visible; }\n\n.svg-inline--fa {\n display: inline-block;\n font-size: inherit;\n height: 1em;\n overflow: visible;\n vertical-align: -.125em; }\n .svg-inline--fa.fa-lg {\n vertical-align: -.225em; }\n .svg-inline--fa.fa-w-1 {\n width: 0.0625em; }\n .svg-inline--fa.fa-w-2 {\n width: 0.125em; }\n .svg-inline--fa.fa-w-3 {\n width: 0.1875em; }\n .svg-inline--fa.fa-w-4 {\n width: 0.25em; }\n .svg-inline--fa.fa-w-5 {\n width: 0.3125em; }\n .svg-inline--fa.fa-w-6 {\n width: 0.375em; }\n .svg-inline--fa.fa-w-7 {\n width: 0.4375em; }\n .svg-inline--fa.fa-w-8 {\n width: 0.5em; }\n .svg-inline--fa.fa-w-9 {\n width: 0.5625em; }\n .svg-inline--fa.fa-w-10 {\n width: 0.625em; }\n .svg-inline--fa.fa-w-11 {\n width: 0.6875em; }\n .svg-inline--fa.fa-w-12 {\n width: 0.75em; }\n .svg-inline--fa.fa-w-13 {\n width: 0.8125em; }\n .svg-inline--fa.fa-w-14 {\n width: 0.875em; }\n .svg-inline--fa.fa-w-15 {\n width: 0.9375em; }\n .svg-inline--fa.fa-w-16 {\n width: 1em; }\n .svg-inline--fa.fa-w-17 {\n width: 1.0625em; }\n .svg-inline--fa.fa-w-18 {\n width: 1.125em; }\n .svg-inline--fa.fa-w-19 {\n width: 1.1875em; }\n .svg-inline--fa.fa-w-20 {\n width: 1.25em; }\n .svg-inline--fa.fa-pull-left {\n margin-right: .3em;\n width: auto; }\n .svg-inline--fa.fa-pull-right {\n margin-left: .3em;\n width: auto; }\n .svg-inline--fa.fa-border {\n height: 1.5em; }\n .svg-inline--fa.fa-li {\n width: 2em; }\n .svg-inline--fa.fa-fw {\n width: 1.25em; }\n\n.fa-layers svg.svg-inline--fa {\n bottom: 0;\n left: 0;\n margin: auto;\n position: absolute;\n right: 0;\n top: 0; }\n\n.fa-layers {\n display: inline-block;\n height: 1em;\n position: relative;\n text-align: center;\n vertical-align: -.125em;\n width: 1em; }\n .fa-layers svg.svg-inline--fa {\n -webkit-transform-origin: center center;\n transform-origin: center center; }\n\n.fa-layers-text, .fa-layers-counter {\n display: inline-block;\n position: absolute;\n text-align: center; }\n\n.fa-layers-text {\n left: 50%;\n top: 50%;\n -webkit-transform: translate(-50%, -50%);\n transform: translate(-50%, -50%);\n -webkit-transform-origin: center center;\n transform-origin: center center; }\n\n.fa-layers-counter {\n background-color: #ff253a;\n border-radius: 1em;\n color: #fff;\n height: 1.5em;\n line-height: 1;\n max-width: 5em;\n min-width: 1.5em;\n overflow: hidden;\n padding: .25em;\n right: 0;\n text-overflow: ellipsis;\n top: 0;\n -webkit-transform: scale(0.25);\n transform: scale(0.25);\n -webkit-transform-origin: top right;\n transform-origin: top right; }\n\n.fa-layers-bottom-right {\n bottom: 0;\n right: 0;\n top: auto;\n -webkit-transform: scale(0.25);\n transform: scale(0.25);\n -webkit-transform-origin: bottom right;\n transform-origin: bottom right; }\n\n.fa-layers-bottom-left {\n bottom: 0;\n left: 0;\n right: auto;\n top: auto;\n -webkit-transform: scale(0.25);\n transform: scale(0.25);\n -webkit-transform-origin: bottom left;\n transform-origin: bottom left; }\n\n.fa-layers-top-right {\n right: 0;\n top: 0;\n -webkit-transform: scale(0.25);\n transform: scale(0.25);\n -webkit-transform-origin: top right;\n transform-origin: top right; }\n\n.fa-layers-top-left {\n left: 0;\n right: auto;\n top: 0;\n -webkit-transform: scale(0.25);\n transform: scale(0.25);\n -webkit-transform-origin: top left;\n transform-origin: top left; }\n\n.fa-lg {\n font-size: 1.33333em;\n line-height: 0.75em;\n vertical-align: -.0667em; }\n\n.fa-xs {\n font-size: .75em; }\n\n.fa-sm {\n font-size: .875em; }\n\n.fa-1x {\n font-size: 1em; }\n\n.fa-2x {\n font-size: 2em; }\n\n.fa-3x {\n font-size: 3em; }\n\n.fa-4x {\n font-size: 4em; }\n\n.fa-5x {\n font-size: 5em; }\n\n.fa-6x {\n font-size: 6em; }\n\n.fa-7x {\n font-size: 7em; }\n\n.fa-8x {\n font-size: 8em; }\n\n.fa-9x {\n font-size: 9em; }\n\n.fa-10x {\n font-size: 10em; }\n\n.fa-fw {\n text-align: center;\n width: 1.25em; }\n\n.fa-ul {\n list-style-type: none;\n margin-left: 2.5em;\n padding-left: 0; }\n .fa-ul > li {\n position: relative; }\n\n.fa-li {\n left: -2em;\n position: absolute;\n text-align: center;\n width: 2em;\n line-height: inherit; }\n\n.fa-border {\n border: solid 0.08em #eee;\n border-radius: .1em;\n padding: .2em .25em .15em; }\n\n.fa-pull-left {\n float: left; }\n\n.fa-pull-right {\n float: right; }\n\n.fa.fa-pull-left,\n.fas.fa-pull-left,\n.far.fa-pull-left,\n.fal.fa-pull-left,\n.fab.fa-pull-left {\n margin-right: .3em; }\n\n.fa.fa-pull-right,\n.fas.fa-pull-right,\n.far.fa-pull-right,\n.fal.fa-pull-right,\n.fab.fa-pull-right {\n margin-left: .3em; }\n\n.fa-spin {\n -webkit-animation: fa-spin 2s infinite linear;\n animation: fa-spin 2s infinite linear; }\n\n.fa-pulse {\n -webkit-animation: fa-spin 1s infinite steps(8);\n animation: fa-spin 1s infinite steps(8); }\n\n@-webkit-keyframes fa-spin {\n 0% {\n -webkit-transform: rotate(0deg);\n transform: rotate(0deg); }\n 100% {\n -webkit-transform: rotate(360deg);\n transform: rotate(360deg); } }\n\n@keyframes fa-spin {\n 0% {\n -webkit-transform: rotate(0deg);\n transform: rotate(0deg); }\n 100% {\n -webkit-transform: rotate(360deg);\n transform: rotate(360deg); } }\n\n.fa-rotate-90 {\n -ms-filter: "progid:DXImageTransform.Microsoft.BasicImage(rotation=1)";\n -webkit-transform: rotate(90deg);\n transform: rotate(90deg); }\n\n.fa-rotate-180 {\n -ms-filter: "progid:DXImageTransform.Microsoft.BasicImage(rotation=2)";\n -webkit-transform: rotate(180deg);\n transform: rotate(180deg); }\n\n.fa-rotate-270 {\n -ms-filter: "progid:DXImageTransform.Microsoft.BasicImage(rotation=3)";\n -webkit-transform: rotate(270deg);\n transform: rotate(270deg); }\n\n.fa-flip-horizontal {\n -ms-filter: "progid:DXImageTransform.Microsoft.BasicImage(rotation=0, mirror=1)";\n -webkit-transform: scale(-1, 1);\n transform: scale(-1, 1); }\n\n.fa-flip-vertical {\n -ms-filter: "progid:DXImageTransform.Microsoft.BasicImage(rotation=2, mirror=1)";\n -webkit-transform: scale(1, -1);\n transform: scale(1, -1); }\n\n.fa-flip-horizontal.fa-flip-vertical {\n -ms-filter: "progid:DXImageTransform.Microsoft.BasicImage(rotation=2, mirror=1)";\n -webkit-transform: scale(-1, -1);\n transform: scale(-1, -1); }\n\n:root .fa-rotate-90,\n:root .fa-rotate-180,\n:root .fa-rotate-270,\n:root .fa-flip-horizontal,\n:root .fa-flip-vertical {\n -webkit-filter: none;\n filter: none; }\n\n.fa-stack {\n display: inline-block;\n height: 2em;\n position: relative;\n width: 2em; }\n\n.fa-stack-1x,\n.fa-stack-2x {\n bottom: 0;\n left: 0;\n margin: auto;\n position: absolute;\n right: 0;\n top: 0; }\n\n.svg-inline--fa.fa-stack-1x {\n height: 1em;\n width: 1em; }\n\n.svg-inline--fa.fa-stack-2x {\n height: 2em;\n width: 2em; }\n\n.fa-inverse {\n color: #fff; }\n\n.sr-only {\n border: 0;\n clip: rect(0, 0, 0, 0);\n height: 1px;\n margin: -1px;\n overflow: hidden;\n padding: 0;\n position: absolute;\n width: 1px; }\n\n.sr-only-focusable:active, .sr-only-focusable:focus {\n clip: auto;\n height: auto;\n margin: 0;\n overflow: visible;\n position: static;\n width: auto; }\n';
if ("fa" !== e || n !== t) {
var i = new RegExp("\\.fa\\-", "g"), a = new RegExp("\\." + t, "g");
@@ -718,47 +719,7 @@
}
return r;
};
- function Jt(t) {
- return {
- found: !0,
- width: t[0],
- height: t[1],
- icon: {
- tag: "path",
- attributes: {
- fill: "currentColor",
- d: t.slice(4)[0]
- }
- }
- };
- }
- var Qt = !1;
- function Zt() {
- S.autoAddCss && (Qt || F(Gt()), Qt = !0);
- }
- function $t(t, e) {
- return Object.defineProperty(t, "abstract", {
- get: e
- }), Object.defineProperty(t, "html", {
- get: function() {
- return t.abstract.map(function(t) {
- return wt(t);
- });
- }
- }), Object.defineProperty(t, "node", {
- get: function() {
- if (m) {
- var e = f.createElement("div");
- return e.innerHTML = t.html, e.children;
- }
- }
- }), t;
- }
- function te(t) {
- var e = t.prefix, n = void 0 === e ? "fa" : e, r = t.iconName;
- if (r) return yt(ne.definitions, n, r) || yt(I.styles, n, r);
- }
- var ee, ne = new (function() {
+ var Qt = function() {
function t() {
N(this, t), this.definitions = {};
}
@@ -795,18 +756,59 @@
}), t;
}
} ]), t;
- }())(), re = (ee = function(t) {
+ }();
+ function Zt(t) {
+ return {
+ found: !0,
+ width: t[0],
+ height: t[1],
+ icon: {
+ tag: "path",
+ attributes: {
+ fill: "currentColor",
+ d: t.slice(4)[0]
+ }
+ }
+ };
+ }
+ var $t = !1;
+ function te() {
+ S.autoAddCss && ($t || F(Jt()), $t = !0);
+ }
+ function ee(t, e) {
+ return Object.defineProperty(t, "abstract", {
+ get: e
+ }), Object.defineProperty(t, "html", {
+ get: function() {
+ return t.abstract.map(function(t) {
+ return wt(t);
+ });
+ }
+ }), Object.defineProperty(t, "node", {
+ get: function() {
+ if (m) {
+ var e = f.createElement("div");
+ return e.innerHTML = t.html, e.children;
+ }
+ }
+ }), t;
+ }
+ function ne(t) {
+ var e = t.prefix, n = void 0 === e ? "fa" : e, r = t.iconName;
+ if (r) return yt(ie.definitions, n, r) || yt(I.styles, n, r);
+ }
+ var re, ie = new Qt(), ae = (re = function(t) {
var e = arguments.length > 1 && void 0 !== arguments[1] ? arguments[1] : {}, n = e.transform, r = void 0 === n ? H : n, i = e.symbol, a = void 0 !== i && i, o = e.mask, s = void 0 === o ? null : o, f = e.title, l = void 0 === f ? null : f, c = e.classes, u = void 0 === c ? [] : c, m = e.attributes, d = void 0 === m ? {} : m, g = e.styles, h = void 0 === g ? {} : g;
if (t) {
var p = t.prefix, v = t.iconName, b = t.icon;
- return $t(A({
+ return ee(A({
type: "icon"
}, t), function() {
- return Zt(), S.autoA11y && (l ? d["aria-labelledby"] = S.replacementClass + "-title-" + W() : d["aria-hidden"] = "true"),
+ return te(), S.autoA11y && (l ? d["aria-labelledby"] = S.replacementClass + "-title-" + W() : d["aria-hidden"] = "true"),
nt({
icons: {
- main: Jt(b),
- mask: s ? Jt(s.icon) : {
+ main: Zt(b),
+ mask: s ? Zt(s.icon) : {
found: !1,
width: null,
height: null,
@@ -827,47 +829,47 @@
});
}
}, function(t) {
- var e = arguments.length > 1 && void 0 !== arguments[1] ? arguments[1] : {}, n = (t || {}).icon ? t : te(t || {}), r = e.mask;
- return r && (r = (r || {}).icon ? r : te(r || {})), ee(n, A({}, e, {
+ var e = arguments.length > 1 && void 0 !== arguments[1] ? arguments[1] : {}, n = (t || {}).icon ? t : ne(t || {}), r = e.mask;
+ return r && (r = (r || {}).icon ? r : ne(r || {})), re(n, A({}, e, {
mask: r
}));
- }), ie = {
+ }), oe = {
noAuto: function() {
var t;
P({
autoReplaceSvg: t = !1,
observeMutations: t
- });
+ }), Mt && Mt.disconnect();
},
dom: {
i2svg: function() {
var t = arguments.length > 0 && void 0 !== arguments[0] ? arguments[0] : {};
if (m) {
- Zt();
+ te();
var e = t.node, n = void 0 === e ? f : e, r = t.callback, i = void 0 === r ? function() {} : r;
- S.searchPseudoElements && Vt(n), qt(n, i);
+ S.searchPseudoElements && qt(n), Kt(n, i);
}
},
- css: Gt,
+ css: Jt,
insertCss: function() {
- F(Gt());
+ F(Jt());
}
},
- library: ne,
+ library: ie,
parse: {
transform: function(t) {
- return Ot(t);
+ return Lt(t);
}
},
- findIconDefinition: te,
- icon: re,
+ findIconDefinition: ne,
+ icon: ae,
text: function(t) {
var e = arguments.length > 1 && void 0 !== arguments[1] ? arguments[1] : {}, n = e.transform, r = void 0 === n ? H : n, i = e.title, a = void 0 === i ? null : i, o = e.classes, s = void 0 === o ? [] : o, f = e.attributes, l = void 0 === f ? {} : f, c = e.styles, u = void 0 === c ? {} : c;
- return $t({
+ return ee({
type: "text",
content: t
}, function() {
- return Zt(), rt({
+ return te(), rt({
content: t,
transform: A({}, H, r),
title: a,
@@ -880,15 +882,15 @@
});
},
layer: function(t) {
- return $t({
+ return ee({
type: "layer"
}, function() {
- Zt();
+ te();
var e = [];
return t(function(t) {
- e = Array.isArray(t) ? t.map(function(t) {
+ Array.isArray(t) ? t.map(function(t) {
e = e.concat(t.abstract);
- }) : e.concat(t.abstract);
+ }) : e = e.concat(t.abstract);
}), [ {
tag: "span",
attributes: {
@@ -898,12 +900,12 @@
} ];
});
}
- }, ae = function() {
- m && S.autoReplaceSvg && ie.dom.i2svg({
+ }, se = function() {
+ m && S.autoReplaceSvg && oe.dom.i2svg({
node: f
});
};
- Object.defineProperty(ie, "config", {
+ Object.defineProperty(oe, "config", {
get: function() {
return S;
},
@@ -917,10 +919,11 @@
if (!w) throw t;
}
}(function() {
- u && (s.FontAwesome || (s.FontAwesome = ie), X(function() {
- Object.keys(I.styles).length > 0 && ae(), S.observeMutations && "function" == typeof MutationObserver && function(t) {
+ u && (s.FontAwesome || (s.FontAwesome = oe), X(function() {
+ Object.keys(I.styles).length > 0 && se(), S.observeMutations && "function" == typeof MutationObserver && function(t) {
if (l) {
- var e = t.treeCallback, n = t.nodeCallback, r = t.pseudoElementsCallback, i = new l(function(t) {
+ var e = t.treeCallback, n = t.nodeCallback, r = t.pseudoElementsCallback;
+ Mt = new l(function(t) {
Nt || Y(t).forEach(function(t) {
if ("childList" === t.type && t.addedNodes.length > 0 && !kt(t.addedNodes[0]) && (S.searchPseudoElements && r(t.target),
e(t.target)), "attributes" === t.type && t.target.parentNode && S.searchPseudoElements && r(t.target.parentNode),
@@ -929,8 +932,7 @@
a && t.target.setAttribute("data-prefix", a), o && t.target.setAttribute("data-icon", o);
} else n(t.target);
});
- });
- m && i.observe(f.getElementsByTagName("body")[0], {
+ }), m && Mt.observe(f.getElementsByTagName("body")[0], {
childList: !0,
attributes: !0,
characterData: !0,
@@ -938,17 +940,17 @@
});
}
}({
- treeCallback: qt,
- nodeCallback: Kt,
- pseudoElementsCallback: Vt
+ treeCallback: Kt,
+ nodeCallback: Gt,
+ pseudoElementsCallback: qt
});
})), I.hooks = A({}, I.hooks, {
addPack: function(t, e) {
- I.styles[t] = A({}, I.styles[t] || {}, e), ht(), ae();
+ I.styles[t] = A({}, I.styles[t] || {}, e), ht(), se();
},
addShims: function(t) {
var e;
- (e = I.shims).push.apply(e, O(t)), ht(), ae();
+ (e = I.shims).push.apply(e, O(t)), ht(), se();
}
});
});