|
|
var t=typeof globalThis!=="undefined"?globalThis:typeof self!=="undefined"?self:global;(function(){function ownKeys(t,a){var e=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);a&&(r=r.filter((function(a){return Object.getOwnPropertyDescriptor(t,a).enumerable}))),e.push.apply(e,r)}return e}function _objectSpread2(t){for(var a=1;a<arguments.length;a++){var e=null!=arguments[a]?arguments[a]:{};a%2?ownKeys(Object(e),!0).forEach((function(a){_defineProperty(t,a,e[a])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(e)):ownKeys(Object(e)).forEach((function(a){Object.defineProperty(t,a,Object.getOwnPropertyDescriptor(e,a))}))}return t}function _typeof(t){return _typeof="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},_typeof(t)}function _wrapRegExp(){_wrapRegExp=function(t,a){return new BabelRegExp(t,void 0,a)};var a=RegExp.prototype,e=new WeakMap;function BabelRegExp(t,a,r){var n=new RegExp(t,a);return e.set(n,r||e.get(t)),_setPrototypeOf(n,BabelRegExp.prototype)}function buildGroups(t,a){var r=e.get(a);return Object.keys(r).reduce((function(a,e){return a[e]=t[r[e]],a}),Object.create(null))}return _inherits(BabelRegExp,RegExp),BabelRegExp.prototype.exec=function(e){var r=a.exec.call(this||t,e);return r&&(r.groups=buildGroups(r,this||t)),r},BabelRegExp.prototype[Symbol.replace]=function(r,n){if("string"==typeof n){var i=e.get(this||t);return a[Symbol.replace].call(this||t,r,n.replace(/\$<([^>]+)>/g,(function(t,a){return"$"+i[a]})))}if("function"==typeof n){var o=this||t;return a[Symbol.replace].call(this||t,r,(function(){var a=arguments;return"object"!=typeof a[a.length-1]&&(a=[].slice.call(a)).push(buildGroups(a,o)),n.apply(this||t,a)}))}return a[Symbol.replace].call(this||t,r,n)},_wrapRegExp.apply(this||t,arguments)}function _classCallCheck(t,a){if(!(t instanceof a))throw new TypeError("Cannot call a class as a function")}function _defineProperties(t,a){for(var e=0;e<a.length;e++){var r=a[e];r.enumerable=r.enumerable||false;r.configurable=true;"value"in r&&(r.writable=true);Object.defineProperty(t,r.key,r)}}function _createClass(t,a,e){a&&_defineProperties(t.prototype,a);e&&_defineProperties(t,e);Object.defineProperty(t,"prototype",{writable:false});return t}function _defineProperty(t,a,e){a in t?Object.defineProperty(t,a,{value:e,enumerable:true,configurable:true,writable:true}):t[a]=e;return t}function _inherits(t,a){if(typeof a!=="function"&&a!==null)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(a&&a.prototype,{constructor:{value:t,writable:true,configurable:true}});Object.defineProperty(t,"prototype",{writable:false});a&&_setPrototypeOf(t,a)}function _setPrototypeOf(t,a){_setPrototypeOf=Object.setPrototypeOf||function _setPrototypeOf(t,a){t.__proto__=a;return t};return _setPrototypeOf(t,a)}function _slicedToArray(t,a){return _arrayWithHoles(t)||_iterableToArrayLimit(t,a)||_unsupportedIterableToArray(t,a)||_nonIterableRest()}function _toConsumableArray(t){return _arrayWithoutHoles(t)||_iterableToArray(t)||_unsupportedIterableToArray(t)||_nonIterableSpread()}function _arrayWithoutHoles(t){if(Array.isArray(t))return _arrayLikeToArray(t)}function _arrayWithHoles(t){if(Array.isArray(t))return t}function _iterableToArray(t){if(typeof Symbol!=="undefined"&&t[Symbol.iterator]!=null||t["@@iterator"]!=null)return Array.from(t)}function _iterableToArrayLimit(t,a){var e=t==null?null:typeof Symbol!=="undefined"&&t[Symbol.iterator]||t["@@iterator"];if(e!=null){var r=[];var n=true;var i=false;var o,s;try{for(e=e.call(t);!(n=(o=e.next()).done);n=true){r.push(o.value);if(a&&r.length===a)break}}catch(t){i=true;s=t}finally{try{n||e.return==null||e.return()}finally{if(i)throw s}}return r}}function _unsupportedIterableToArray(t,a){if(t){if(typeof t==="string")return _arrayLikeToArray(t,a);var e=Object.prototype.toString.call(t).slice(8,-1);e==="Object"&&t.c /** * # Reduce * * A fast object `.reduce()` implementation. * * @param {Object} subject The object to reduce over. * @param {Function} fn The reducer function. * @param {mixed} initialValue The initial value for the reducer, defaults to subject[0]. * @param {Object} thisContext The context for the reducer. * @return {mixed} The final result. */var pt=function fastReduceObject(t,a,e,r){var n,i,o,s=Object.keys(t),c=s.length,f=r!==void 0?vt(a,r):a;if(e===void 0){n=1;o=t[s[0]]}else{n=0;o=e}for(;n<c;n++){i=s[n];o=f(o,t[i],i,t)}return o};function ucs2decode(t){var a=[];var e=0;var r=t.length;while(e<r){var n=t.charCodeAt(e++);if(n>=55296&&n<=56319&&e<r){var i=t.charCodeAt(e++);if((i&64512)==56320)a.push(((n&1023)<<10)+(i&1023)+65536);else{a.push(n);e--}}else a.push(n)}return a}function toHex(t){var a=ucs2decode(t);return a.length===1?a[0].toString(16):null}function codePointAt(t,a){var e=t.length;var r=t.charCodeAt(a);var n;if(r>=55296&&r<=56319&&e>a+1){n=t.charCodeAt(a+1);if(n>=56320&&n<=57343)return 1024*(r-55296)+n-56320+65536}return r}function normalizeIcons(t){return Object.keys(t).reduce((function(a,e){var r=t[e];var n=!!r.icon;n?a[r.iconName]=r.icon:a[e]=r;return a}),{})}function defineIcons(t,a){var e=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};var r=e.skipHooks,n=r!==void 0&&r;var i=normalizeIcons(a);typeof lt.hooks.addPack!=="function"||n?lt.styles[t]=_objectSpread2(_objectSpread2({},lt.styles[t]||{}),i):lt.hooks.addPack(t,normalizeIcons(a));t==="fas"&&defineIcons("fa",a)}_wrapRegExp(/path d="((?:(?!")[\s\S])+)".*path d="((?:(?!")[\s\S])+)"/,{d1:1,d2:2}),_wrapRegExp(/path class="((?:(?!")[\s\S])+)".*d="((?:(?!")[\s\S])+)".*path class="((?:(?!")[\s\S])+)".*d="((?:(?!")[\s\S])+)"/,{cls1:1,d1:2,cls2:3,d2:4}),_wrapRegExp(/path class="((?:(?!")[\s\S])+)".*d="((?:(?!")[\s\S])+)"/,{cls1:1,d1:2});var bt,gt,yt;var ht=lt.styles,kt=lt.shims;var xt=(bt={},_defineProperty(bt,z,Object.values(F[z])),_defineProperty(bt,R,Object.values(F[R])),bt);var wt=null;var St={};var At={};var Pt={};var _t={};var jt={};var Ot=(gt={},_defineProperty(gt,z,Object.keys(L[z])),_defineProperty(gt,R,Object.keys(L[R])),gt);function isReserved(t){return~$.indexOf(t)}function getIconName(t,a){var e=a.split("-");var r=e[0];var n=e.slice(1).join("-");return r!==t||n===""||isReserved(n)?null:n}var Ct=function build(){var t=function lookup(t){return pt(ht,(function(a,e,r){a[r]=pt(e,t,{});return a}),{})};St=t((function(t,a,e){a[3]&&(t[a[3]]=e);if(a[2]){var r=a[2].filter((function(t){return typeof t==="number"}));r.forEach((function(a){t[a.toString(16)]=e}))}return t}));At=t((function(t,a,e){t[e]=e;if(a[2]){var r=a[2].filter((function(t){return typeof t==="string"}));r.forEach((function(a){t[a]=e}))}return t}));jt=t((function(t,a,e){var r=a[2];t[e]=e;r.forEach((function(a){t[a]=e}));return t}));var a="far"in ht||at.autoFetchSvg;var e=pt(kt,(function(t,e){var r=e[0];var n=e[1];var i=e[2];n!=="far"||a||(n="fas");typeof r==="string"&&(t.names[r]={prefix:n,iconName:i});typeof r==="number"&&(t.unicodes[r.toString(16)]={prefix:n,iconName:i});return t}),{names:{},unicodes:{}});Pt=e.names;_t=e.unicodes;wt=getCanonicalPrefix(at.styleDefault,{family:at.familyDefault})};onChange((function(t){wt=getCanonicalPrefix(t.styleDefault,{family:at.familyDefault})}));Ct();function byUnicode(t,a){return(St[t]||{})[a]}function byLigature(t,a){return(At[t]||{})[a]}function byAlias(t,a){return(jt[t]||{})[a]}function byOldName(t){return Pt[t]||{prefix:null,iconName:null}}function byOldUnicode(t){var a=_t[t];var e=byUnicode("fas",t);return a||(e?{prefix:"fas",iconName:e}:null)||{prefix:null,iconName:null}}function getDefaultUsablePrefix(){return wt}var Nt=function emptyCanonicalIcon(){return{prefix:null,iconName:null,rest:[]}};function getCanonicalPrefix(t){var a=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};var e=a.family,r=e===void 0?z:e;var n=L[r][t];var i=D[r][t]||D[r][n];var o=t in lt.styles?t:null;return i||o||null}var It=(yt={},_defineProperty(yt,z,Object.keys(F[z])),_defineProperty(yt,R,Object.keys(F[R])),yt);function getCanonicalIcon(t){var a;var e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};var r=e.skipLookups,n=r!==void 0&&r;var i=(a={},_defineProperty(a,z,"".concat(at.cssPrefix,"-").concat(z)),_defineProperty(a,R,"".concat(at.cssPrefix,"-").concat(R)),a);var o=null;var s=z;(t.includes(i[z])||t.some((function(t){return It[z].includes(t)})))&&(s=z);(t.includes(i[R])||t.so
|