fontawesome.js 133 KB

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