@iconify/iconify
Advanced tools
Comparing version 2.0.3 to 2.0.4
@@ -190,8 +190,8 @@ | ||
*/ | ||
renderSVG: (name: string, customisations: IconifyIconCustomisations) => SVGElement | null; | ||
renderHTML: (name: string, customisations: IconifyIconCustomisations) => string | null; | ||
renderSVG: (name: string, customisations?: IconifyIconCustomisations) => SVGElement | null; | ||
renderHTML: (name: string, customisations?: IconifyIconCustomisations) => string | null; | ||
/** | ||
* Get icon data | ||
*/ | ||
renderIcon: (name: string, customisations: IconifyIconCustomisations) => IconifyIconBuildResult | null; | ||
renderIcon: (name: string, customisations?: IconifyIconCustomisations) => IconifyIconBuildResult | null; | ||
/** | ||
@@ -198,0 +198,0 @@ * Scan DOM |
@@ -13,2 +13,2 @@ /** | ||
*/ | ||
var Iconify=function(){"use strict";function e(e,n,t){return e(t={path:n,exports:{},require:function(e,n){return function(){throw new Error("Dynamic requires are not currently supported by @rollup/plugin-commonjs")}(null==n&&t.path)}},t.exports),t.exports}var n=e((function(e,n){Object.defineProperty(n,"__esModule",{value:!0}),n.fullIcon=n.iconDefaults=n.minifyProps=n.matchName=void 0,n.matchName=/^[a-z0-9]+(-[a-z0-9]+)*$/,n.minifyProps=["width","height","top","left"],n.iconDefaults=Object.freeze({left:0,top:0,width:16,height:16,rotate:0,vFlip:!1,hFlip:!1}),n.fullIcon=function(e){return Object.assign({},n.iconDefaults,e)}})),t=e((function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.mergeIconData=void 0,t.mergeIconData=function(e,t){var r=Object.assign({},e);for(var o in n.iconDefaults){var i=o;if(void 0!==t[i]){var a=t[i];if(void 0===r[i]){r[i]=a;continue}switch(i){case"rotate":r[i]=(r[i]+a)%4;break;case"hFlip":case"vFlip":r[i]=a!==r[i];break;default:r[i]=a}}}return r}})),r=e((function(e,r){Object.defineProperty(r,"__esModule",{value:!0}),r.parseIconSet=void 0;var o=Object.keys(n.iconDefaults);function i(e,n,r,o){void 0===o&&(o=0);var a=e.parent;if(void 0!==n[a])return t.mergeIconData(n[a],e);if(void 0!==r[a]){if(o>2)return null;var c=i(r[a],n,r,o+1);if(c)return t.mergeIconData(c,e)}return null}r.parseIconSet=function(e,t,r){void 0===r&&(r="none");var a=[];if("object"!=typeof e)return"none"!==r&&a;if(e.not_found instanceof Array&&e.not_found.forEach((function(e){t(e,null),"all"===r&&a.push(e)})),"object"!=typeof e.icons)return"none"!==r&&a;var c=Object.create(null);o.forEach((function(n){void 0!==e[n]&&"object"!=typeof e[n]&&(c[n]=e[n])}));var u=e.icons;if(Object.keys(u).forEach((function(e){var r=u[e];"string"==typeof r.body&&(t(e,Object.freeze(Object.assign({},n.iconDefaults,c,r))),a.push(e))})),"object"==typeof e.aliases){var f=e.aliases;Object.keys(f).forEach((function(e){var r=i(f[e],u,f,1);r&&(t(e,Object.freeze(Object.assign({},n.iconDefaults,c,r))),a.push(e))}))}return"none"===r?a.length>0:a}})),o=e((function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.validateIcon=t.stringToIcon=void 0;t.stringToIcon=function(e,n,r,o){void 0===o&&(o="");var i=e.split(":");if("@"===e.slice(0,1)){if(i.length<2||i.length>3)return null;o=i.shift().slice(1)}if(i.length>3||!i.length)return null;if(i.length>1){var a=i.pop(),c=i.pop(),u={provider:i.length>0?i[0]:o,prefix:c,name:a};return n&&!t.validateIcon(u)?null:u}var f=i[0],l=f.split("-");if(l.length>1){var s={provider:o,prefix:l.shift(),name:l.join("-")};return n&&!t.validateIcon(s)?null:s}if(r&&""===o){var d={provider:o,prefix:"",name:f};return n&&!t.validateIcon(d,r)?null:d}return null};t.validateIcon=function(e,t){return!!e&&!(""!==e.provider&&!e.provider.match(n.matchName)||!(t&&""===e.prefix||e.prefix.match(n.matchName))||!e.name.match(n.matchName))}})),i=e((function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.listIcons=t.getIcon=t.iconExists=t.addIcon=t.addIconSet=t.getStorage=t.newStorage=void 0;var o=Object.create(null);function i(e,n){return{provider:e,prefix:n,icons:Object.create(null),missing:Object.create(null)}}function a(e,n){void 0===o[e]&&(o[e]=Object.create(null));var t=o[e];return void 0===t[n]&&(t[n]=i(e,n)),t[n]}t.newStorage=i,t.getStorage=a,t.addIconSet=function(e,n,t){void 0===t&&(t="none");var o=Date.now();return r.parseIconSet(n,(function(n,t){null===t?e.missing[n]=o:e.icons[n]=t}),t)},t.addIcon=function(e,t,r){try{if("string"==typeof r.body)return e.icons[t]=Object.freeze(n.fullIcon(r)),!0}catch(e){}return!1},t.iconExists=function(e,n){return void 0!==e.icons[n]},t.getIcon=function(e,n){var t=e.icons[n];return void 0===t?null:t},t.listIcons=function(e,n){var t=[];return("string"==typeof e?[e]:Object.keys(o)).forEach((function(e){("string"==typeof e&&"string"==typeof n?[n]:void 0===o[e]?[]:Object.keys(o[e])).forEach((function(n){var r=a(e,n),o=Object.keys(r.icons).map((function(t){return(""!==e?"@"+e+":":"")+n+":"+t}));t=t.concat(o)}))})),t}})),a=e((function(e,n){Object.defineProperty(n,"__esModule",{value:!0}),n.storageFunctions=n.addCollection=n.addIcon=n.getIconData=n.allowSimpleNames=void 0;var t=!1;function a(e){var n="string"==typeof e?o.stringToIcon(e,!0,t):e;return n?i.getIcon(i.getStorage(n.provider,n.prefix),n.name):null}function c(e,n){var r=o.stringToIcon(e,!0,t);if(!r)return!1;var a=i.getStorage(r.provider,r.prefix);return i.addIcon(a,r.name,n)}function u(e,n){if("object"!=typeof e)return!1;if("string"!=typeof n&&(n="string"==typeof e.provider?e.provider:""),t&&""===n&&("string"!=typeof e.prefix||""===e.prefix)){var a=!1;return r.parseIconSet(e,(function(e,n){null!==n&&c(e,n)&&(a=!0)})),a}if("string"!=typeof e.prefix||!o.validateIcon({provider:n,prefix:e.prefix,name:"a"}))return!1;var u=i.getStorage(n,e.prefix);return!!i.addIconSet(u,e)}n.allowSimpleNames=function(e){return"boolean"==typeof e&&(t=e),t},n.getIconData=a,n.addIcon=c,n.addCollection=u,n.storageFunctions={iconExists:function(e){return null!==a(e)},getIcon:function(e){var n=a(e);return n?Object.assign({},n):null},listIcons:i.listIcons,addIcon:c,addCollection:u}})),c=e((function(e,n){Object.defineProperty(n,"__esModule",{value:!0}),n.replaceIDs=void 0;var t=/\sid="(\S+)"/g,r="([^A-Za-z0-9_-])";var o="IconifyId-"+Date.now().toString(16)+"-"+(16777216*Math.random()|0).toString(16)+"-",i=0;n.replaceIDs=function(e,n){void 0===n&&(n=o);for(var a,c=[];a=t.exec(e);)c.push(a[1]);return c.length?(c.forEach((function(t){var o="function"==typeof n?n():n+i++;e=e.replace(new RegExp(r+"("+(t.replace(/[.*+?^${}()|[\]\\]/g,"\\$&")+")")+r,"g"),"$1"+o+"$3")})),e):e}})),u=e((function(e,n){Object.defineProperty(n,"__esModule",{value:!0}),n.calculateSize=void 0;var t=/(-?[0-9.]*[0-9]+[0-9.]*)/g,r=/^-?[0-9.]*[0-9]+[0-9.]*$/g;n.calculateSize=function(e,n,o){if(1===n)return e;if(o=void 0===o?100:o,"number"==typeof e)return Math.ceil(e*n*o)/o;if("string"!=typeof e)return e;var i=e.split(t);if(null===i||!i.length)return e;for(var a=[],c=i.shift(),u=r.test(c);;){if(u){var f=parseFloat(c);isNaN(f)?a.push(c):a.push(Math.ceil(f*n*o)/o)}else a.push(c);if(void 0===(c=i.shift()))return a.join("");u=!u}}})),f=e((function(e,n){Object.defineProperty(n,"__esModule",{value:!0}),n.mergeCustomisations=n.defaults=void 0,n.defaults=Object.freeze({inline:!1,width:null,height:null,hAlign:"center",vAlign:"middle",slice:!1,hFlip:!1,vFlip:!1,rotate:0}),n.mergeCustomisations=function(e,n){var t={};for(var r in e){var o=r;if(t[o]=e[o],void 0!==n[o]){var i=n[o];switch(o){case"inline":case"slice":"boolean"==typeof i&&(t[o]=i);break;case"hFlip":case"vFlip":!0===i&&(t[o]=!t[o]);break;case"hAlign":case"vAlign":"string"==typeof i&&""!==i&&(t[o]=i);break;case"width":case"height":("string"==typeof i&&""!==i||"number"==typeof i&&i||null===i)&&(t[o]=i);break;case"rotate":"number"==typeof i&&(t[o]+=i)}}}return t}})),l=e((function(e,n){function t(e){var n="";switch(e.hAlign){case"left":n+="xMin";break;case"right":n+="xMax";break;default:n+="xMid"}switch(e.vAlign){case"top":n+="YMin";break;case"bottom":n+="YMax";break;default:n+="YMid"}return n+=e.slice?" slice":" meet"}Object.defineProperty(n,"__esModule",{value:!0}),n.iconToSVG=void 0,n.iconToSVG=function(e,n){var r,o,i={left:e.left,top:e.top,width:e.width,height:e.height},a=e.body;[e,n].forEach((function(e){var n,t=[],r=e.hFlip,o=e.vFlip,c=e.rotate;switch(r?o?c+=2:(t.push("translate("+(i.width+i.left)+" "+(0-i.top)+")"),t.push("scale(-1 1)"),i.top=i.left=0):o&&(t.push("translate("+(0-i.left)+" "+(i.height+i.top)+")"),t.push("scale(1 -1)"),i.top=i.left=0),c<0&&(c-=4*Math.floor(c/4)),c%=4){case 1:n=i.height/2+i.top,t.unshift("rotate(90 "+n+" "+n+")");break;case 2:t.unshift("rotate(180 "+(i.width/2+i.left)+" "+(i.height/2+i.top)+")");break;case 3:n=i.width/2+i.left,t.unshift("rotate(-90 "+n+" "+n+")")}c%2==1&&(0===i.left&&0===i.top||(n=i.left,i.left=i.top,i.top=n),i.width!==i.height&&(n=i.width,i.width=i.height,i.height=n)),t.length&&(a='<g transform="'+t.join(" ")+'">'+a+"</g>")})),null===n.width&&null===n.height?(o="1em",r=u.calculateSize(o,i.width/i.height)):null!==n.width&&null!==n.height?(r=n.width,o=n.height):null!==n.height?(o=n.height,r=u.calculateSize(o,i.width/i.height)):(r=n.width,o=u.calculateSize(r,i.height/i.width)),"auto"===r&&(r=i.width),"auto"===o&&(o=i.height);var c={attributes:{width:r="string"==typeof r?r:r+"",height:o="string"==typeof o?o:o+"",preserveAspectRatio:t(n),viewBox:i.left+" "+i.top+" "+i.width+" "+i.height},body:a};return n.inline&&(c.inline=!0),c}})),s=e((function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.builderFunctions=void 0,t.builderFunctions={replaceIDs:c.replaceIDs,calculateSize:u.calculateSize,buildIcon:function(e,t){return l.iconToSVG(n.fullIcon(e),f.mergeCustomisations(f.defaults,t))}}})),d=e((function(e,n){Object.defineProperty(n,"__esModule",{value:!0}),n.coreModules=void 0,n.coreModules={}})),v=e((function(e,n){Object.defineProperty(n,"__esModule",{value:!0}),n.storeCache=n.loadCache=n.mock=n.emptyList=n.count=n.config=void 0;var t="iconify2",r="iconify",o="iconify-count",a="iconify-version",c=36e5;n.config={local:!0,session:!0};var u=!1;n.count={local:0,session:0},n.emptyList={local:[],session:[]};var f="undefined"==typeof window?{}:window;function l(e){var t=e+"Storage";try{if(f&&f[t]&&"number"==typeof f[t].length)return f[t]}catch(e){}return n.config[e]=!1,null}function s(e,t,r){try{return e.setItem(o,r+""),n.count[t]=r,!0}catch(e){return!1}}function d(e){var n=e.getItem(o);if(n){var t=parseInt(n);return t||0}return 0}n.mock=function(e){u=!1,f=e};n.loadCache=function(){if(!u){u=!0;var e=Math.floor(Date.now()/c)-168;for(var o in n.config)f(o)}function f(o){var c=l(o);if(c){var u=function(n){var t=r+n,o=c.getItem(t);if("string"!=typeof o)return!1;var a=!0;try{var u=JSON.parse(o);if("object"!=typeof u||"number"!=typeof u.cached||u.cached<e||"string"!=typeof u.provider||"object"!=typeof u.data||"string"!=typeof u.data.prefix)a=!1;else{var f=u.provider,l=u.data.prefix,s=i.getStorage(f,l);a=i.addIconSet(s,u.data)}}catch(e){a=!1}return a||c.removeItem(t),a};try{var f=c.getItem(a);if(f!==t)return f&&function(e){try{for(var n=d(e),t=0;t<n;t++)e.removeItem(r+t)}catch(e){}}(c),void function(e,n){try{e.setItem(a,t)}catch(e){}s(e,n,0)}(c,o);for(var v=d(c),p=v-1;p>=0;p--)u(p)||(p===v-1?v--:n.emptyList[o].push(p));s(c,o,v)}catch(e){}}}};n.storeCache=function(e,t){function o(o){if(!n.config[o])return!1;var i=l(o);if(!i)return!1;var a=n.emptyList[o].shift();if(void 0===a&&!s(i,o,(a=n.count[o])+1))return!1;try{var u={cached:Math.floor(Date.now()/c),provider:e,data:t};i.setItem(r+a,JSON.stringify(u))}catch(e){return!1}return!0}u||n.loadCache(),o("local")||o("session")}})),p=e((function(e,n){Object.defineProperty(n,"__esModule",{value:!0}),n.toggleBrowserCache=void 0,n.toggleBrowserCache=function(e,n){switch(e){case"local":case"session":v.config[e]=n;break;case"all":for(var t in v.config)v.config[t]=n}}})),h=e((function(e,n){Object.defineProperty(n,"__esModule",{value:!0}),n.defaultConfig=void 0,n.defaultConfig={resources:[],index:0,timeout:2e3,rotate:750,random:!1,dataAfterTimeout:!1}})),g=e((function(e,n){Object.defineProperty(n,"__esModule",{value:!0}),n.sendQuery=void 0,n.sendQuery=function(e,n,t,r,o){var i,a=e.resources.length,c=e.random?Math.floor(Math.random()*a):e.index;if(e.random){var u=e.resources.slice(0);for(i=[];u.length>1;){var f=Math.floor(Math.random()*u.length);i.push(u[f]),u=u.slice(0,f).concat(u.slice(f+1))}i=i.concat(u)}else i=e.resources.slice(c).concat(e.resources.slice(0,c));var l=Date.now(),s="pending",d=0,v=void 0,p=null,h=[],g=[];function m(){p&&(clearTimeout(p),p=null)}function b(){"pending"===s&&(s="aborted"),m(),h.forEach((function(e){e.abort&&e.abort(),"pending"===e.status&&(e.status="aborted")})),h=[]}function y(e,n){n&&(g=[]),"function"==typeof e&&g.push(e)}function I(){return{startTime:l,payload:n,status:s,queriesSent:d,queriesPending:h.length,subscribe:y,abort:b}}function j(){s="failed",g.forEach((function(e){e(void 0,v)}))}function x(){h=h.filter((function(e){return"pending"===e.status&&(e.status="aborted"),e.abort&&e.abort(),!1}))}function O(){if("pending"===s){m();var r=i.shift();if(void 0!==r){var a={getQueryStatus:I,status:"pending",resource:r,done:function(n,t){!function(n,t,r){var a=void 0===t;switch(h=h.filter((function(e){return e!==n})),s){case"pending":break;case"failed":if(a||!e.dataAfterTimeout)return;break;default:return}if(a)return void 0!==r&&(v=r),void(h.length||(i.length?O():j()));if(m(),x(),o&&!e.random){var c=e.resources.indexOf(n.resource);-1!==c&&c!==e.index&&o(c)}s="completed",g.forEach((function(e){e(t)}))}(a,n,t)}};h.push(a),d++;var c="function"==typeof e.rotate?e.rotate(d,l):e.rotate;p=setTimeout(O,c),t(r,n,a)}else{if(h.length){var u="function"==typeof e.timeout?e.timeout(l):e.timeout;if(u)return void(p=setTimeout((function(){m(),"pending"===s&&(x(),j())}),u))}j()}}}return"function"==typeof r&&g.push(r),setTimeout(O),I}})),m=e((function(e,n){Object.defineProperty(n,"__esModule",{value:!0}),n.initRedundancy=void 0,n.initRedundancy=function(e){var n=function(e){if(!("object"==typeof e&&"object"==typeof e.resources&&e.resources instanceof Array&&e.resources.length))throw new Error("Invalid Reduncancy configuration");var n,t=Object.create(null);for(n in h.defaultConfig)void 0!==e[n]?t[n]=e[n]:t[n]=h.defaultConfig[n];return t}(e),t=[];function r(){t=t.filter((function(e){return"pending"===e().status}))}return{query:function(e,o,i){var a=g.sendQuery(n,e,o,(function(e,n){r(),i&&i(e,n)}),(function(e){n.index=e}));return t.push(a),a},find:function(e){var n=t.find((function(n){return e(n)}));return void 0!==n?n:null},setIndex:function(e){n.index=e},getIndex:function(){return n.index},cleanup:r}}})),b=e((function(e,n){Object.defineProperty(n,"__esModule",{value:!0}),n.sortIcons=void 0,n.sortIcons=function(e){var n={loaded:[],missing:[],pending:[]},t=Object.create(null);e.sort((function(e,n){return e.provider!==n.provider?e.provider.localeCompare(n.provider):e.prefix!==n.prefix?e.prefix.localeCompare(n.prefix):e.name.localeCompare(n.name)}));var r={provider:"",prefix:"",name:""};return e.forEach((function(e){if(r.name!==e.name||r.prefix!==e.prefix||r.provider!==e.provider){r=e;var o=e.provider,a=e.prefix,c=e.name;void 0===t[o]&&(t[o]=Object.create(null));var u=t[o];void 0===u[a]&&(u[a]=i.getStorage(o,a));var f=u[a],l={provider:o,prefix:a,name:c};(void 0!==f.icons[c]?n.loaded:""===a||void 0!==f.missing[c]?n.missing:n.pending).push(l)}})),n}})),y=e((function(e,n){Object.defineProperty(n,"__esModule",{value:!0}),n.storeCallback=n.updateCallbacks=n.callbacks=void 0,n.callbacks=Object.create(null);var t=Object.create(null);function r(e,t){e.forEach((function(e){var r=e.provider;if(void 0!==n.callbacks[r]){var o=n.callbacks[r],i=e.prefix,a=o[i];a&&(o[i]=a.filter((function(e){return e.id!==t})))}}))}n.updateCallbacks=function(e,o){void 0===t[e]&&(t[e]=Object.create(null));var a=t[e];a[o]||(a[o]=!0,setTimeout((function(){if(a[o]=!1,void 0!==n.callbacks[e]&&void 0!==n.callbacks[e][o]){var t=n.callbacks[e][o].slice(0);if(t.length){var c=i.getStorage(e,o),u=!1;t.forEach((function(n){var t=n.icons,i=t.pending.length;t.pending=t.pending.filter((function(n){if(n.prefix!==o)return!0;var r=n.name;if(void 0!==c.icons[r])t.loaded.push({provider:e,prefix:o,name:r});else{if(void 0===c.missing[r])return u=!0,!0;t.missing.push({provider:e,prefix:o,name:r})}return!1})),t.pending.length!==i&&(u||r([{provider:e,prefix:o}],n.id),n.callback(t.loaded.slice(0),t.missing.slice(0),t.pending.slice(0),n.abort))}))}}})))};var o=0;n.storeCallback=function(e,t,i){var a=o++,c=r.bind(null,i,a);if(!t.pending.length)return c;var u={id:a,icons:t,callback:e,abort:c};return i.forEach((function(e){var t=e.provider,r=e.prefix;void 0===n.callbacks[t]&&(n.callbacks[t]=Object.create(null));var o=n.callbacks[t];void 0===o[r]&&(o[r]=[]),o[r].push(u)})),c}})),I=e((function(e,n){Object.defineProperty(n,"__esModule",{value:!0}),n.getAPIModule=n.setAPIModule=void 0;var t=Object.create(null);n.setAPIModule=function(e,n){t[e]=n},n.getAPIModule=function(e){return void 0===t[e]?t[""]:t[e]}})),j=e((function(e,n){function t(e){var n;if("string"==typeof e.resources)n=[e.resources];else if(!((n=e.resources)instanceof Array&&n.length))return null;return{resources:n,path:void 0===e.path?"/":e.path,maxURL:e.maxURL?e.maxURL:500,rotate:e.rotate?e.rotate:750,timeout:e.timeout?e.timeout:5e3,random:!0===e.random,index:e.index?e.index:0,dataAfterTimeout:!1!==e.dataAfterTimeout}}Object.defineProperty(n,"__esModule",{value:!0}),n.getAPIConfig=n.setAPIConfig=void 0;for(var r=Object.create(null),o=["https://api.simplesvg.com","https://api.unisvg.com"],i=[];o.length>0;)1===o.length||Math.random()>.5?i.push(o.shift()):i.push(o.pop());r[""]=t({resources:["https://api.iconify.design"].concat(i)}),n.setAPIConfig=function(e,n){var o=t(n);return null!==o&&(r[e]=o,!0)};n.getAPIConfig=function(e){return r[e]}})),x=e((function(e,n){Object.defineProperty(n,"__esModule",{value:!0}),n.getProviders=n.listToIcons=void 0,n.listToIcons=function(e,n,t){void 0===n&&(n=!0),void 0===t&&(t=!1);var r=[];return e.forEach((function(e){var i="string"==typeof e?o.stringToIcon(e,!1,t):e;n&&!o.validateIcon(i,t)||r.push({provider:i.provider,prefix:i.prefix,name:i.name})})),r},n.getProviders=function(e){var n=Object.create(null);return e.forEach((function(e){n[e.provider]=!0})),Object.keys(n)}})),O=e((function(e,n){function t(){}Object.defineProperty(n,"__esModule",{value:!0}),n.API=n.getRedundancyCache=void 0;var r=Object.create(null),o=Object.create(null),c=Object.create(null),u=Object.create(null),f=Object.create(null);function l(e){if(void 0===f[e]){var n=j.getAPIConfig(e);if(!n)return;var t={config:n,redundancy:m.initRedundancy(n)};f[e]=t}return f[e]}n.getRedundancyCache=l;var s=Object.create(null);function v(e,n,t){function a(){var t=(""===e?"":"@"+e+":")+n,r=Math.floor(Date.now()/6e4);s[t]<r&&(s[t]=r,console.error('Unable to retrieve icons for "'+t+'" because API is not configured properly.'))}void 0===o[e]&&(o[e]=Object.create(null));var f=o[e];void 0===u[e]&&(u[e]=Object.create(null));var v=u[e];void 0===r[e]&&(r[e]=Object.create(null));var p,h=r[e];void 0===f[n]?f[n]=t:f[n]=f[n].concat(t).sort(),v[n]||(v[n]=!0,setTimeout((function(){v[n]=!1;var t=f[n];delete f[n];var r=I.getAPIModule(e);if(r){if(void 0===p){var o=l(e);if(void 0===o)return void a();p=o}r.prepare(e,n,t).forEach((function(t){p.redundancy.query(t,r.send,(function(r,o){var a=i.getStorage(e,n);if("object"!=typeof r){if(404!==o)return;var u=Date.now();t.icons.forEach((function(e){a.missing[e]=u}))}else try{var f=i.addIconSet(a,r,"all");if("boolean"==typeof f)return;var l=h[n];f.forEach((function(e){delete l[e]})),d.coreModules.cache&&d.coreModules.cache(e,r)}catch(e){console.error(e)}!function(e,n){void 0===c[e]&&(c[e]=Object.create(null));var t=c[e];t[n]||(t[n]=!0,setTimeout((function(){t[n]=!1,y.updateCallbacks(e,n)})))}(e,n)}))}))}else a()})))}n.API={isPending:function(e){return void 0!==r[e.provider]&&void 0!==r[e.provider][e.prefix]&&void 0!==r[e.provider][e.prefix][e.name]},loadIcons:function(e,n){var o=x.listToIcons(e,!0,a.allowSimpleNames()),i=b.sortIcons(o);if(!i.pending.length){var c=!0;return n&&setTimeout((function(){c&&n(i.loaded,i.missing,i.pending,t)})),function(){c=!1}}var u,f,l=Object.create(null),s=[];i.pending.forEach((function(e){var n=e.provider,t=e.prefix;if(t!==f||n!==u){u=n,f=t,s.push({provider:n,prefix:t}),void 0===r[n]&&(r[n]=Object.create(null));var o=r[n];void 0===o[t]&&(o[t]=Object.create(null)),void 0===l[n]&&(l[n]=Object.create(null));var i=l[n];void 0===i[t]&&(i[t]=[])}}));var d=Date.now();return i.pending.forEach((function(e){var n=e.provider,t=e.prefix,o=e.name,i=r[n][t];void 0===i[o]&&(i[o]=d,l[n][t].push(o))})),s.forEach((function(e){var n=e.provider,t=e.prefix;l[n][t].length&&v(n,t,l[n][t])})),n?y.storeCallback(n,i,s):t}}})),P=e((function(e,n){Object.defineProperty(n,"__esModule",{value:!0}),n.APIInternalFunctions=n.APIFunctions=void 0,n.APIFunctions={loadIcons:O.API.loadIcons,addAPIProvider:j.setAPIConfig},n.APIInternalFunctions={getAPI:O.getRedundancyCache,getAPIConfig:j.getAPIConfig,setAPIModule:I.setAPIModule}})),w=e((function(e,n){Object.defineProperty(n,"__esModule",{value:!0}),n.getAPIModule=void 0;var t=null,r="{prefix}.js?icons={icons}&callback={callback}",o=Object.create(null),i=Object.create(null);function a(){if(null===t){var e=self,n="Iconify",o=".cb";if(void 0===e[n])o="",void 0===e[n="IconifyJSONP"]&&(e[n]=Object.create(null)),t=e[n];else{var i=e[n];void 0===i.cb&&(i.cb=Object.create(null)),t=i.cb}r=r.replace("{callback}",n+o+".{cb}")}return t}n.getAPIModule=function(e){return{prepare:function(n,t,c){var u=[],f=o[n+":"+t];void 0===f&&(f=function(n,t){var c,u=e(n);if(!u)return 0;if(u.maxURL){var f=0;u.resources.forEach((function(e){var n=e;f=Math.max(f,n.length)})),a(),c=u.maxURL-f-u.path.length-r.replace("{provider}",n).replace("{prefix}",t).replace("{icons}","").length-3}else c=0;var l=n+":"+t;return i[l]=u.path,o[l]=c,c}(n,t));var l={provider:n,prefix:t,icons:[]},s=0;return c.forEach((function(e,r){(s+=e.length+1)>=f&&r>0&&(u.push(l),l={provider:n,prefix:t,icons:[]},s=e.length),l.icons.push(e)})),u.push(l),u},send:function(e,n,t){for(var o=n.provider,c=n.prefix,u=n.icons.join(","),f=o+":"+c,l=c.split("-").shift().slice(0,3),s=a(),d=function(e){var n,t=0;for(n=e.length-1;n>=0;n--)t+=e.charCodeAt(n);return t%999}(o+":"+e+":"+c+":"+u);void 0!==s[l+d];)d++;var v=l+d,p=i[f]+r.replace("{provider}",o).replace("{prefix}",c).replace("{icons}",u).replace("{cb}",v);s[v]=function(e){delete s[v],t.done(e)};var h=e+p,g=document.createElement("script");g.type="text/javascript",g.async=!0,g.src=h,document.head.appendChild(g)}}}})),M=e((function(e,n){Object.defineProperty(n,"__esModule",{value:!0}),n.getAPIModule=n.setFetch=void 0;var t="{prefix}.json?icons={icons}",r=Object.create(null),o=Object.create(null),i=null;try{i=fetch}catch(e){}n.setFetch=function(e){i=e};n.getAPIModule=function(e){return{prepare:function(n,i,a){var c=[],u=r[i];void 0===u&&(u=function(n,i){var a,c=e(n);if(!c)return 0;if(c.maxURL){var u=0;c.resources.forEach((function(e){var n=e;u=Math.max(u,n.length)})),a=c.maxURL-u-c.path.length-t.replace("{provider}",n).replace("{prefix}",i).replace("{icons}","").length}else a=0;var f=n+":"+i;return o[f]=c.path,r[f]=a,a}(n,i));var f={provider:n,prefix:i,icons:[]},l=0;return a.forEach((function(e,t){(l+=e.length+1)>=u&&t>0&&(c.push(f),f={provider:n,prefix:i,icons:[]},l=e.length),f.icons.push(e)})),c.push(f),c},send:function(e,n,r){var a=n.provider,c=n.prefix,u=n.icons.join(","),f=o[a+":"+c]+t.replace("{provider}",a).replace("{prefix}",c).replace("{icons}",u);i?i(e+f).then((function(e){if(200===e.status)return e.json();r.done(void 0,e.status)})).then((function(e){"object"==typeof e&&null!==e&&r.done(e)})).catch((function(e){r.done(void 0,e.errno)})):r.done(void 0,424)}}}})),A="iconifyFinder"+Date.now(),S="iconifyData"+Date.now();function _(e,n,t,r){var o;try{o=document.createElement("span")}catch(e){return r?"":null}var i=l.iconToSVG(t,f.mergeCustomisations(f.defaults,n)),a=e.element,u=e.finder,s=e.name,d=a?a.getAttribute("class"):"",v=u?u.classFilter(d?d.split(/\s+/):[]):[],p='<svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" aria-hidden="true" role="img" class="'+("iconify iconify--"+s.prefix+(""===s.provider?"":" iconify--"+s.provider)+(v.length?" "+v.join(" "):""))+'">'+c.replaceIDs(i.body)+"</svg>";o.innerHTML=p;var h=o.childNodes[0],g=h.style,m=i.attributes;if(Object.keys(m).forEach((function(e){h.setAttribute(e,m[e])})),i.inline&&(g.verticalAlign="-0.125em"),a){for(var b=a.attributes,y=0;y<b.length;y++){var I=b.item(y);if(I){var j=I.name;if("class"!==j&&"style"!==j&&void 0===m[j])try{h.setAttribute(j,I.value)}catch(e){}}}for(var x=a.style,O=0;O<x.length;O++){var P=x[O];g[P]=x[P]}}if(u){var w={name:s,status:"loaded",customisations:n};h[S]=w,h[A]=u}var M=r?o.innerHTML:h;return a&&a.parentNode?a.parentNode.replaceChild(h,a):o.removeChild(h),M}var E=[];function k(e){for(var n=0;n<E.length;n++){var t=E[n];if(("function"==typeof t.node?t.node():t.node)===e)return t}}function C(e,n){void 0===n&&(n=!1);var t=k(e);return t?(t.temporary&&(t.temporary=n),t):(t={node:e,temporary:n},E.push(t),t)}function F(){return E}var T=null,D={childList:!0,subtree:!0,attributes:!0};function N(e){if(e.observer){var n=e.observer;n.pendingScan||(n.pendingScan=setTimeout((function(){delete n.pendingScan,T&&T(e)})))}}function L(e,n){if(e.observer){var t=e.observer;if(!t.pendingScan)for(var r=0;r<n.length;r++){var o=n[r];if(o.addedNodes&&o.addedNodes.length>0||"attributes"===o.type&&void 0!==o.target[A])return void(t.paused||N(e))}}}function z(e,n){e.observer.instance.observe(n,D)}function R(e){var n=e.observer;if(!n||!n.instance){var t="function"==typeof e.node?e.node():e.node;t&&(n||(n={paused:0},e.observer=n),n.instance=new MutationObserver(L.bind(null,e)),z(e,t),n.paused||N(e))}}function q(){F().forEach(R)}function U(e){if(e.observer){var n=e.observer;n.pendingScan&&(clearTimeout(n.pendingScan),delete n.pendingScan),n.instance&&(n.instance.disconnect(),delete n.instance)}}function V(e){var n=null!==T;T!==e&&(T=e,n&&F().forEach(U)),n?q():function(e){var n=document;"complete"===n.readyState||"loading"!==n.readyState&&!n.documentElement.doScroll?e():(n.addEventListener("DOMContentLoaded",e),window.addEventListener("load",e))}(q)}function G(e){(e?[e]:F()).forEach((function(e){if(e.observer){var n=e.observer;if(n.paused++,!(n.paused>1)&&n.instance)n.instance.disconnect()}else e.observer={paused:1}}))}function $(e){(e?[e]:F()).forEach((function(e){if(e.observer){var n=e.observer;if(n.paused&&(n.paused--,!n.paused)){var t="function"==typeof e.node?e.node():e.node;if(!t)return;n.instance?z(e,t):R(e)}}else R(e)}))}function B(e,n){void 0===n&&(n=!1);var t=C(e,n);return R(t),t}function Q(e){var n=k(e);n&&(U(n),function(e){E=E.filter((function(n){var t="function"==typeof n.node?n.node():n.node;return e!==t}))}(e))}var H=[];function J(e){return"string"==typeof e&&(e=o.stringToIcon(e)),null!==e&&o.validateIcon(e)?e:null}function Y(e){var n=[];H.forEach((function(t){var r=t.find(e);Array.prototype.forEach.call(r,(function(e){var r=e;if(void 0===r[A]||r[A]===t){var o=J(t.name(r));if(null!==o){r[A]=t;var i={element:r,finder:t,name:o};n.push(i)}}}))}));var t=e.querySelectorAll("svg.iconify");return Array.prototype.forEach.call(t,(function(e){var t=e,r=t[A],o=t[S];if(r&&o){var i=J(r.name(t));if(null!==i){var a,c=!1;if(i.prefix!==o.name.prefix||i.name!==o.name.name?c=!0:(a=r.customisations(t),function(e,n){var t=Object.keys(e),r=Object.keys(n);if(t.length!==r.length)return!1;for(var o=0;o<t.length;o++){var i=t[o];if(n[i]!==e[i])return!1}return!0}(o.customisations,a)||(c=!0)),c){var u={element:t,finder:r,name:i,customisations:a};n.push(u)}}}})),n}var Z=!1;function K(){Z||(Z=!0,setTimeout((function(){Z&&(Z=!1,W())})))}function W(e,n){void 0===n&&(n=!1),Z=!1;var t=Object.create(null);if((e?[e]:F()).forEach((function(e){var r="function"==typeof e.node?e.node():e.node;if(r&&r.querySelectorAll){var o=!1,a=!1;Y(r).forEach((function(n){var r,c,u=n.element,f=n.name,l=f.provider,s=f.prefix,v=f.name,p=u[S];if(void 0!==p&&(r=p.name,c=f,null!==r&&null!==c&&r.name===c.name&&r.prefix===c.prefix))switch(p.status){case"missing":return;case"loading":if(d.coreModules.api&&d.coreModules.api.isPending({provider:l,prefix:s,name:v}))return void(o=!0)}var h=i.getStorage(l,s);if(void 0===h.icons[v]){if(h.missing[v])return p={name:f,status:"missing",customisations:{}},void(u[S]=p);if(d.coreModules.api&&!d.coreModules.api.isPending({provider:l,prefix:s,name:v})){void 0===t[l]&&(t[l]=Object.create(null));var g=t[l];void 0===g[s]&&(g[s]=Object.create(null)),g[s][v]=!0}p={name:f,status:"loading",customisations:{}},u[S]=p,o=!0}else{!a&&e.observer&&(G(e),a=!0);var m=void 0!==n.customisations?n.customisations:n.finder.customisations(u);_(n,m,i.getIcon(h,v))}})),e.temporary&&!o?Q(r):n&&o?B(r,!0):a&&e.observer&&$(e)}})),d.coreModules.api){var r=d.coreModules.api;Object.keys(t).forEach((function(e){var n=t[e];Object.keys(n).forEach((function(t){r.loadIcons(Object.keys(n[t]).map((function(n){return{provider:e,prefix:t,name:n}})),K)}))}))}}var X=e((function(e,n){Object.defineProperty(n,"__esModule",{value:!0}),n.rotateFromString=void 0,n.rotateFromString=function(e){var n=e.replace(/^-?[0-9.]*/,"");function t(e){for(;e<0;)e+=4;return e%4}if(""===n){var r=parseInt(e);return isNaN(r)?0:t(r)}if(n!==e){var o=0;switch(n){case"%":o=25;break;case"deg":o=90}if(o){var i=parseFloat(e.slice(0,e.length-n.length));return isNaN(i)?0:(i/=o)%1==0?t(i):0}}return 0}})),ee=e((function(e,n){Object.defineProperty(n,"__esModule",{value:!0}),n.alignmentFromString=n.flipFromString=void 0;var t=/[\s,]+/;n.flipFromString=function(e,n){n.split(t).forEach((function(n){switch(n.trim()){case"horizontal":e.hFlip=!0;break;case"vertical":e.vFlip=!0}}))},n.alignmentFromString=function(e,n){n.split(t).forEach((function(n){var t=n.trim();switch(t){case"left":case"center":case"right":e.hAlign=t;break;case"top":case"middle":case"bottom":e.vAlign=t;break;case"slice":case"crop":e.slice=!0;break;case"meet":e.slice=!1}}))}}));function ne(e,n){return e.hasAttribute(n)}function te(e,n){return e.getAttribute(n)}var re=["inline","hFlip","vFlip"],oe=["width","height"],ie="iconify-inline",ae={find:function(e){return e.querySelectorAll("i.iconify, span.iconify, i.iconify-inline, span.iconify-inline")},name:function(e){return ne(e,"data-icon")?te(e,"data-icon"):null},customisations:function(e,n){void 0===n&&(n={inline:!1});var t=n,r=e.getAttribute("class");if(-1!==(r?r.split(/\s+/):[]).indexOf(ie)&&(t.inline=!0),ne(e,"data-rotate")){var o=X.rotateFromString(te(e,"data-rotate"));o&&(t.rotate=o)}return ne(e,"data-flip")&&ee.flipFromString(t,te(e,"data-flip")),ne(e,"data-align")&&ee.alignmentFromString(t,te(e,"data-align")),re.forEach((function(n){if(ne(e,"data-"+n)){var r=function(e,n){var t=e.getAttribute(n);return t===n||"true"===t||""!==t&&"false"!==t&&null}(e,"data-"+n);"boolean"==typeof r&&(t[n]=r)}})),oe.forEach((function(n){if(ne(e,"data-"+n)){var r=te(e,"data-"+n);""!==r&&(t[n]=r)}})),t},classFilter:function(e){var n=[];return e.forEach((function(e){"iconify"!==e&&""!==e&&"iconify--"!==e.slice(0,9)&&n.push(e)})),n}};function ce(e,n,t){var r=a.getIconData(e);return r?_({name:o.stringToIcon(e)},f.mergeCustomisations(f.defaults,n),r,t):null}var ue={getVersion:function(){return"2.0.3"},renderSVG:function(e,n){return ce(e,n,!1)},renderHTML:function(e,n){return ce(e,n,!0)},renderIcon:function(e,n){var t=a.getIconData(e);if(!t)return null;var r=f.mergeCustomisations(f.defaults,n);return l.iconToSVG(t,r)},scan:function(e){e?function(e){var n=k(e);n?W(n):W({node:e,temporary:!0},!0)}(e):W()},observe:function(e){B(e)},stopObserving:function(e){Q(e)},pauseObserver:function(e){if(e){var n=k(e);n&&G(n)}else G()},resumeObserver:function(e){if(e){var n=k(e);n&&$(n)}else $()}};if("undefined"!=typeof document&&"undefined"!=typeof window){!function(){if(document.documentElement)return C(document.documentElement);E.push({node:function(){return document.documentElement}})}(),function(e){-1===H.indexOf(e)&&H.push(e)}(ae);var fe=window;if(void 0!==fe.IconifyPreload){var le=fe.IconifyPreload,se="Invalid IconifyPreload syntax.";"object"==typeof le&&null!==le&&(le instanceof Array?le:[le]).forEach((function(e){try{("object"!=typeof e||null===e||e instanceof Array||"object"!=typeof e.icons||"string"!=typeof e.prefix||!a.storageFunctions.addCollection(e))&&console.error(se)}catch(e){console.error(se)}}))}setTimeout((function(){V(W),W()}))}var de={enableCache:function(e,n){return p.toggleBrowserCache(e,!1!==n)},disableCache:function(e){return p.toggleBrowserCache(e,!0)}},ve={_api:P.APIInternalFunctions};[a.storageFunctions,s.builderFunctions,ue,de,P.APIFunctions].forEach((function(e){for(var n in e)ve[n]=e[n]})),d.coreModules.api=O.API;var pe=M.getAPIModule;try{"undefined"!=typeof document&&"undefined"!=typeof window&&(pe="function"==typeof fetch&&"function"==typeof Promise?M.getAPIModule:w.getAPIModule)}catch(se){}if(I.setAPIModule("",pe(j.getAPIConfig)),ve._api.setFetch=function(e){M.setFetch(e),pe!==M.getAPIModule&&(pe=M.getAPIModule,I.setAPIModule("",pe(j.getAPIConfig)))},"undefined"!=typeof document&&"undefined"!=typeof window){d.coreModules.cache=v.storeCache,v.loadCache();var he=window;if(void 0!==he.IconifyProviders){var ge=he.IconifyProviders;if("object"==typeof ge&&null!==ge)for(var me in ge){var be="IconifyProviders["+me+"] is invalid.";try{var ye=ge[me];if("object"!=typeof ye||!ye||void 0===ye.resources)continue;j.setAPIConfig(me,ye)||console.error(be)}catch(e){console.error(be)}}}}return ve}();try{void 0===self.Iconify&&(self.Iconify=Iconify)}catch(e){}if("object"==typeof exports)try{exports.__esModule=!0,exports.default=Iconify}catch(e){} | ||
var Iconify=function(){"use strict";function e(e,n,t){return e(t={path:n,exports:{},require:function(e,n){return function(){throw new Error("Dynamic requires are not currently supported by @rollup/plugin-commonjs")}(null==n&&t.path)}},t.exports),t.exports}var n=e((function(e,n){Object.defineProperty(n,"__esModule",{value:!0}),n.fullIcon=n.iconDefaults=n.minifyProps=n.matchName=void 0,n.matchName=/^[a-z0-9]+(-[a-z0-9]+)*$/,n.minifyProps=["width","height","top","left"],n.iconDefaults=Object.freeze({left:0,top:0,width:16,height:16,rotate:0,vFlip:!1,hFlip:!1}),n.fullIcon=function(e){return Object.assign({},n.iconDefaults,e)}})),t=e((function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.mergeIconData=void 0,t.mergeIconData=function(e,t){var r=Object.assign({},e);for(var o in n.iconDefaults){var i=o;if(void 0!==t[i]){var a=t[i];if(void 0===r[i]){r[i]=a;continue}switch(i){case"rotate":r[i]=(r[i]+a)%4;break;case"hFlip":case"vFlip":r[i]=a!==r[i];break;default:r[i]=a}}}return r}})),r=e((function(e,r){Object.defineProperty(r,"__esModule",{value:!0}),r.parseIconSet=void 0;var o=Object.keys(n.iconDefaults);function i(e,n,r,o){void 0===o&&(o=0);var a=e.parent;if(void 0!==n[a])return t.mergeIconData(n[a],e);if(void 0!==r[a]){if(o>2)return null;var c=i(r[a],n,r,o+1);if(c)return t.mergeIconData(c,e)}return null}r.parseIconSet=function(e,t,r){void 0===r&&(r="none");var a=[];if("object"!=typeof e)return"none"!==r&&a;if(e.not_found instanceof Array&&e.not_found.forEach((function(e){t(e,null),"all"===r&&a.push(e)})),"object"!=typeof e.icons)return"none"!==r&&a;var c=Object.create(null);o.forEach((function(n){void 0!==e[n]&&"object"!=typeof e[n]&&(c[n]=e[n])}));var u=e.icons;if(Object.keys(u).forEach((function(e){var r=u[e];"string"==typeof r.body&&(t(e,Object.freeze(Object.assign({},n.iconDefaults,c,r))),a.push(e))})),"object"==typeof e.aliases){var f=e.aliases;Object.keys(f).forEach((function(e){var r=i(f[e],u,f,1);r&&(t(e,Object.freeze(Object.assign({},n.iconDefaults,c,r))),a.push(e))}))}return"none"===r?a.length>0:a}})),o=e((function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.validateIcon=t.stringToIcon=void 0;t.stringToIcon=function(e,n,r,o){void 0===o&&(o="");var i=e.split(":");if("@"===e.slice(0,1)){if(i.length<2||i.length>3)return null;o=i.shift().slice(1)}if(i.length>3||!i.length)return null;if(i.length>1){var a=i.pop(),c=i.pop(),u={provider:i.length>0?i[0]:o,prefix:c,name:a};return n&&!t.validateIcon(u)?null:u}var f=i[0],l=f.split("-");if(l.length>1){var s={provider:o,prefix:l.shift(),name:l.join("-")};return n&&!t.validateIcon(s)?null:s}if(r&&""===o){var d={provider:o,prefix:"",name:f};return n&&!t.validateIcon(d,r)?null:d}return null};t.validateIcon=function(e,t){return!!e&&!(""!==e.provider&&!e.provider.match(n.matchName)||!(t&&""===e.prefix||e.prefix.match(n.matchName))||!e.name.match(n.matchName))}})),i=e((function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.listIcons=t.getIcon=t.iconExists=t.addIcon=t.addIconSet=t.getStorage=t.newStorage=void 0;var o=Object.create(null);function i(e,n){return{provider:e,prefix:n,icons:Object.create(null),missing:Object.create(null)}}function a(e,n){void 0===o[e]&&(o[e]=Object.create(null));var t=o[e];return void 0===t[n]&&(t[n]=i(e,n)),t[n]}t.newStorage=i,t.getStorage=a,t.addIconSet=function(e,n,t){void 0===t&&(t="none");var o=Date.now();return r.parseIconSet(n,(function(n,t){null===t?e.missing[n]=o:e.icons[n]=t}),t)},t.addIcon=function(e,t,r){try{if("string"==typeof r.body)return e.icons[t]=Object.freeze(n.fullIcon(r)),!0}catch(e){}return!1},t.iconExists=function(e,n){return void 0!==e.icons[n]},t.getIcon=function(e,n){var t=e.icons[n];return void 0===t?null:t},t.listIcons=function(e,n){var t=[];return("string"==typeof e?[e]:Object.keys(o)).forEach((function(e){("string"==typeof e&&"string"==typeof n?[n]:void 0===o[e]?[]:Object.keys(o[e])).forEach((function(n){var r=a(e,n),o=Object.keys(r.icons).map((function(t){return(""!==e?"@"+e+":":"")+n+":"+t}));t=t.concat(o)}))})),t}})),a=e((function(e,n){Object.defineProperty(n,"__esModule",{value:!0}),n.storageFunctions=n.addCollection=n.addIcon=n.getIconData=n.allowSimpleNames=void 0;var t=!1;function a(e){var n="string"==typeof e?o.stringToIcon(e,!0,t):e;return n?i.getIcon(i.getStorage(n.provider,n.prefix),n.name):null}function c(e,n){var r=o.stringToIcon(e,!0,t);if(!r)return!1;var a=i.getStorage(r.provider,r.prefix);return i.addIcon(a,r.name,n)}function u(e,n){if("object"!=typeof e)return!1;if("string"!=typeof n&&(n="string"==typeof e.provider?e.provider:""),t&&""===n&&("string"!=typeof e.prefix||""===e.prefix)){var a=!1;return r.parseIconSet(e,(function(e,n){null!==n&&c(e,n)&&(a=!0)})),a}if("string"!=typeof e.prefix||!o.validateIcon({provider:n,prefix:e.prefix,name:"a"}))return!1;var u=i.getStorage(n,e.prefix);return!!i.addIconSet(u,e)}n.allowSimpleNames=function(e){return"boolean"==typeof e&&(t=e),t},n.getIconData=a,n.addIcon=c,n.addCollection=u,n.storageFunctions={iconExists:function(e){return null!==a(e)},getIcon:function(e){var n=a(e);return n?Object.assign({},n):null},listIcons:i.listIcons,addIcon:c,addCollection:u}})),c=e((function(e,n){Object.defineProperty(n,"__esModule",{value:!0}),n.replaceIDs=void 0;var t=/\sid="(\S+)"/g,r="([^A-Za-z0-9_-])";var o="IconifyId-"+Date.now().toString(16)+"-"+(16777216*Math.random()|0).toString(16)+"-",i=0;n.replaceIDs=function(e,n){void 0===n&&(n=o);for(var a,c=[];a=t.exec(e);)c.push(a[1]);return c.length?(c.forEach((function(t){var o="function"==typeof n?n():n+i++;e=e.replace(new RegExp(r+"("+(t.replace(/[.*+?^${}()|[\]\\]/g,"\\$&")+")")+r,"g"),"$1"+o+"$3")})),e):e}})),u=e((function(e,n){Object.defineProperty(n,"__esModule",{value:!0}),n.calculateSize=void 0;var t=/(-?[0-9.]*[0-9]+[0-9.]*)/g,r=/^-?[0-9.]*[0-9]+[0-9.]*$/g;n.calculateSize=function(e,n,o){if(1===n)return e;if(o=void 0===o?100:o,"number"==typeof e)return Math.ceil(e*n*o)/o;if("string"!=typeof e)return e;var i=e.split(t);if(null===i||!i.length)return e;for(var a=[],c=i.shift(),u=r.test(c);;){if(u){var f=parseFloat(c);isNaN(f)?a.push(c):a.push(Math.ceil(f*n*o)/o)}else a.push(c);if(void 0===(c=i.shift()))return a.join("");u=!u}}})),f=e((function(e,n){Object.defineProperty(n,"__esModule",{value:!0}),n.mergeCustomisations=n.defaults=void 0,n.defaults=Object.freeze({inline:!1,width:null,height:null,hAlign:"center",vAlign:"middle",slice:!1,hFlip:!1,vFlip:!1,rotate:0}),n.mergeCustomisations=function(e,n){var t={};for(var r in e){var o=r;if(t[o]=e[o],void 0!==n[o]){var i=n[o];switch(o){case"inline":case"slice":"boolean"==typeof i&&(t[o]=i);break;case"hFlip":case"vFlip":!0===i&&(t[o]=!t[o]);break;case"hAlign":case"vAlign":"string"==typeof i&&""!==i&&(t[o]=i);break;case"width":case"height":("string"==typeof i&&""!==i||"number"==typeof i&&i||null===i)&&(t[o]=i);break;case"rotate":"number"==typeof i&&(t[o]+=i)}}}return t}})),l=e((function(e,n){function t(e){var n="";switch(e.hAlign){case"left":n+="xMin";break;case"right":n+="xMax";break;default:n+="xMid"}switch(e.vAlign){case"top":n+="YMin";break;case"bottom":n+="YMax";break;default:n+="YMid"}return n+=e.slice?" slice":" meet"}Object.defineProperty(n,"__esModule",{value:!0}),n.iconToSVG=void 0,n.iconToSVG=function(e,n){var r,o,i={left:e.left,top:e.top,width:e.width,height:e.height},a=e.body;[e,n].forEach((function(e){var n,t=[],r=e.hFlip,o=e.vFlip,c=e.rotate;switch(r?o?c+=2:(t.push("translate("+(i.width+i.left)+" "+(0-i.top)+")"),t.push("scale(-1 1)"),i.top=i.left=0):o&&(t.push("translate("+(0-i.left)+" "+(i.height+i.top)+")"),t.push("scale(1 -1)"),i.top=i.left=0),c<0&&(c-=4*Math.floor(c/4)),c%=4){case 1:n=i.height/2+i.top,t.unshift("rotate(90 "+n+" "+n+")");break;case 2:t.unshift("rotate(180 "+(i.width/2+i.left)+" "+(i.height/2+i.top)+")");break;case 3:n=i.width/2+i.left,t.unshift("rotate(-90 "+n+" "+n+")")}c%2==1&&(0===i.left&&0===i.top||(n=i.left,i.left=i.top,i.top=n),i.width!==i.height&&(n=i.width,i.width=i.height,i.height=n)),t.length&&(a='<g transform="'+t.join(" ")+'">'+a+"</g>")})),null===n.width&&null===n.height?(o="1em",r=u.calculateSize(o,i.width/i.height)):null!==n.width&&null!==n.height?(r=n.width,o=n.height):null!==n.height?(o=n.height,r=u.calculateSize(o,i.width/i.height)):(r=n.width,o=u.calculateSize(r,i.height/i.width)),"auto"===r&&(r=i.width),"auto"===o&&(o=i.height);var c={attributes:{width:r="string"==typeof r?r:r+"",height:o="string"==typeof o?o:o+"",preserveAspectRatio:t(n),viewBox:i.left+" "+i.top+" "+i.width+" "+i.height},body:a};return n.inline&&(c.inline=!0),c}})),s=e((function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.builderFunctions=void 0,t.builderFunctions={replaceIDs:c.replaceIDs,calculateSize:u.calculateSize,buildIcon:function(e,t){return l.iconToSVG(n.fullIcon(e),f.mergeCustomisations(f.defaults,t))}}})),d=e((function(e,n){Object.defineProperty(n,"__esModule",{value:!0}),n.coreModules=void 0,n.coreModules={}})),v=e((function(e,n){Object.defineProperty(n,"__esModule",{value:!0}),n.storeCache=n.loadCache=n.mock=n.emptyList=n.count=n.config=void 0;var t="iconify2",r="iconify",o="iconify-count",a="iconify-version",c=36e5;n.config={local:!0,session:!0};var u=!1;n.count={local:0,session:0},n.emptyList={local:[],session:[]};var f="undefined"==typeof window?{}:window;function l(e){var t=e+"Storage";try{if(f&&f[t]&&"number"==typeof f[t].length)return f[t]}catch(e){}return n.config[e]=!1,null}function s(e,t,r){try{return e.setItem(o,r+""),n.count[t]=r,!0}catch(e){return!1}}function d(e){var n=e.getItem(o);if(n){var t=parseInt(n);return t||0}return 0}n.mock=function(e){u=!1,f=e};n.loadCache=function(){if(!u){u=!0;var e=Math.floor(Date.now()/c)-168;for(var o in n.config)f(o)}function f(o){var c=l(o);if(c){var u=function(n){var t=r+n,o=c.getItem(t);if("string"!=typeof o)return!1;var a=!0;try{var u=JSON.parse(o);if("object"!=typeof u||"number"!=typeof u.cached||u.cached<e||"string"!=typeof u.provider||"object"!=typeof u.data||"string"!=typeof u.data.prefix)a=!1;else{var f=u.provider,l=u.data.prefix,s=i.getStorage(f,l);a=i.addIconSet(s,u.data)}}catch(e){a=!1}return a||c.removeItem(t),a};try{var f=c.getItem(a);if(f!==t)return f&&function(e){try{for(var n=d(e),t=0;t<n;t++)e.removeItem(r+t)}catch(e){}}(c),void function(e,n){try{e.setItem(a,t)}catch(e){}s(e,n,0)}(c,o);for(var v=d(c),p=v-1;p>=0;p--)u(p)||(p===v-1?v--:n.emptyList[o].push(p));s(c,o,v)}catch(e){}}}};n.storeCache=function(e,t){function o(o){if(!n.config[o])return!1;var i=l(o);if(!i)return!1;var a=n.emptyList[o].shift();if(void 0===a&&!s(i,o,(a=n.count[o])+1))return!1;try{var u={cached:Math.floor(Date.now()/c),provider:e,data:t};i.setItem(r+a,JSON.stringify(u))}catch(e){return!1}return!0}u||n.loadCache(),o("local")||o("session")}})),p=e((function(e,n){Object.defineProperty(n,"__esModule",{value:!0}),n.toggleBrowserCache=void 0,n.toggleBrowserCache=function(e,n){switch(e){case"local":case"session":v.config[e]=n;break;case"all":for(var t in v.config)v.config[t]=n}}})),h=e((function(e,n){Object.defineProperty(n,"__esModule",{value:!0}),n.defaultConfig=void 0,n.defaultConfig={resources:[],index:0,timeout:2e3,rotate:750,random:!1,dataAfterTimeout:!1}})),g=e((function(e,n){Object.defineProperty(n,"__esModule",{value:!0}),n.sendQuery=void 0,n.sendQuery=function(e,n,t,r,o){var i,a=e.resources.length,c=e.random?Math.floor(Math.random()*a):e.index;if(e.random){var u=e.resources.slice(0);for(i=[];u.length>1;){var f=Math.floor(Math.random()*u.length);i.push(u[f]),u=u.slice(0,f).concat(u.slice(f+1))}i=i.concat(u)}else i=e.resources.slice(c).concat(e.resources.slice(0,c));var l=Date.now(),s="pending",d=0,v=void 0,p=null,h=[],g=[];function m(){p&&(clearTimeout(p),p=null)}function b(){"pending"===s&&(s="aborted"),m(),h.forEach((function(e){e.abort&&e.abort(),"pending"===e.status&&(e.status="aborted")})),h=[]}function y(e,n){n&&(g=[]),"function"==typeof e&&g.push(e)}function I(){return{startTime:l,payload:n,status:s,queriesSent:d,queriesPending:h.length,subscribe:y,abort:b}}function j(){s="failed",g.forEach((function(e){e(void 0,v)}))}function x(){h=h.filter((function(e){return"pending"===e.status&&(e.status="aborted"),e.abort&&e.abort(),!1}))}function O(){if("pending"===s){m();var r=i.shift();if(void 0!==r){var a={getQueryStatus:I,status:"pending",resource:r,done:function(n,t){!function(n,t,r){var a=void 0===t;switch(h=h.filter((function(e){return e!==n})),s){case"pending":break;case"failed":if(a||!e.dataAfterTimeout)return;break;default:return}if(a)return void 0!==r&&(v=r),void(h.length||(i.length?O():j()));if(m(),x(),o&&!e.random){var c=e.resources.indexOf(n.resource);-1!==c&&c!==e.index&&o(c)}s="completed",g.forEach((function(e){e(t)}))}(a,n,t)}};h.push(a),d++;var c="function"==typeof e.rotate?e.rotate(d,l):e.rotate;p=setTimeout(O,c),t(r,n,a)}else{if(h.length){var u="function"==typeof e.timeout?e.timeout(l):e.timeout;if(u)return void(p=setTimeout((function(){m(),"pending"===s&&(x(),j())}),u))}j()}}}return"function"==typeof r&&g.push(r),setTimeout(O),I}})),m=e((function(e,n){Object.defineProperty(n,"__esModule",{value:!0}),n.initRedundancy=void 0,n.initRedundancy=function(e){var n=function(e){if(!("object"==typeof e&&"object"==typeof e.resources&&e.resources instanceof Array&&e.resources.length))throw new Error("Invalid Reduncancy configuration");var n,t=Object.create(null);for(n in h.defaultConfig)void 0!==e[n]?t[n]=e[n]:t[n]=h.defaultConfig[n];return t}(e),t=[];function r(){t=t.filter((function(e){return"pending"===e().status}))}return{query:function(e,o,i){var a=g.sendQuery(n,e,o,(function(e,n){r(),i&&i(e,n)}),(function(e){n.index=e}));return t.push(a),a},find:function(e){var n=t.find((function(n){return e(n)}));return void 0!==n?n:null},setIndex:function(e){n.index=e},getIndex:function(){return n.index},cleanup:r}}})),b=e((function(e,n){Object.defineProperty(n,"__esModule",{value:!0}),n.sortIcons=void 0,n.sortIcons=function(e){var n={loaded:[],missing:[],pending:[]},t=Object.create(null);e.sort((function(e,n){return e.provider!==n.provider?e.provider.localeCompare(n.provider):e.prefix!==n.prefix?e.prefix.localeCompare(n.prefix):e.name.localeCompare(n.name)}));var r={provider:"",prefix:"",name:""};return e.forEach((function(e){if(r.name!==e.name||r.prefix!==e.prefix||r.provider!==e.provider){r=e;var o=e.provider,a=e.prefix,c=e.name;void 0===t[o]&&(t[o]=Object.create(null));var u=t[o];void 0===u[a]&&(u[a]=i.getStorage(o,a));var f=u[a],l={provider:o,prefix:a,name:c};(void 0!==f.icons[c]?n.loaded:""===a||void 0!==f.missing[c]?n.missing:n.pending).push(l)}})),n}})),y=e((function(e,n){Object.defineProperty(n,"__esModule",{value:!0}),n.storeCallback=n.updateCallbacks=n.callbacks=void 0,n.callbacks=Object.create(null);var t=Object.create(null);function r(e,t){e.forEach((function(e){var r=e.provider;if(void 0!==n.callbacks[r]){var o=n.callbacks[r],i=e.prefix,a=o[i];a&&(o[i]=a.filter((function(e){return e.id!==t})))}}))}n.updateCallbacks=function(e,o){void 0===t[e]&&(t[e]=Object.create(null));var a=t[e];a[o]||(a[o]=!0,setTimeout((function(){if(a[o]=!1,void 0!==n.callbacks[e]&&void 0!==n.callbacks[e][o]){var t=n.callbacks[e][o].slice(0);if(t.length){var c=i.getStorage(e,o),u=!1;t.forEach((function(n){var t=n.icons,i=t.pending.length;t.pending=t.pending.filter((function(n){if(n.prefix!==o)return!0;var r=n.name;if(void 0!==c.icons[r])t.loaded.push({provider:e,prefix:o,name:r});else{if(void 0===c.missing[r])return u=!0,!0;t.missing.push({provider:e,prefix:o,name:r})}return!1})),t.pending.length!==i&&(u||r([{provider:e,prefix:o}],n.id),n.callback(t.loaded.slice(0),t.missing.slice(0),t.pending.slice(0),n.abort))}))}}})))};var o=0;n.storeCallback=function(e,t,i){var a=o++,c=r.bind(null,i,a);if(!t.pending.length)return c;var u={id:a,icons:t,callback:e,abort:c};return i.forEach((function(e){var t=e.provider,r=e.prefix;void 0===n.callbacks[t]&&(n.callbacks[t]=Object.create(null));var o=n.callbacks[t];void 0===o[r]&&(o[r]=[]),o[r].push(u)})),c}})),I=e((function(e,n){Object.defineProperty(n,"__esModule",{value:!0}),n.getAPIModule=n.setAPIModule=void 0;var t=Object.create(null);n.setAPIModule=function(e,n){t[e]=n},n.getAPIModule=function(e){return void 0===t[e]?t[""]:t[e]}})),j=e((function(e,n){function t(e){var n;if("string"==typeof e.resources)n=[e.resources];else if(!((n=e.resources)instanceof Array&&n.length))return null;return{resources:n,path:void 0===e.path?"/":e.path,maxURL:e.maxURL?e.maxURL:500,rotate:e.rotate?e.rotate:750,timeout:e.timeout?e.timeout:5e3,random:!0===e.random,index:e.index?e.index:0,dataAfterTimeout:!1!==e.dataAfterTimeout}}Object.defineProperty(n,"__esModule",{value:!0}),n.getAPIConfig=n.setAPIConfig=void 0;for(var r=Object.create(null),o=["https://api.simplesvg.com","https://api.unisvg.com"],i=[];o.length>0;)1===o.length||Math.random()>.5?i.push(o.shift()):i.push(o.pop());r[""]=t({resources:["https://api.iconify.design"].concat(i)}),n.setAPIConfig=function(e,n){var o=t(n);return null!==o&&(r[e]=o,!0)};n.getAPIConfig=function(e){return r[e]}})),x=e((function(e,n){Object.defineProperty(n,"__esModule",{value:!0}),n.getProviders=n.listToIcons=void 0,n.listToIcons=function(e,n,t){void 0===n&&(n=!0),void 0===t&&(t=!1);var r=[];return e.forEach((function(e){var i="string"==typeof e?o.stringToIcon(e,!1,t):e;n&&!o.validateIcon(i,t)||r.push({provider:i.provider,prefix:i.prefix,name:i.name})})),r},n.getProviders=function(e){var n=Object.create(null);return e.forEach((function(e){n[e.provider]=!0})),Object.keys(n)}})),O=e((function(e,n){function t(){}Object.defineProperty(n,"__esModule",{value:!0}),n.API=n.getRedundancyCache=void 0;var r=Object.create(null),o=Object.create(null),c=Object.create(null),u=Object.create(null),f=Object.create(null);function l(e){if(void 0===f[e]){var n=j.getAPIConfig(e);if(!n)return;var t={config:n,redundancy:m.initRedundancy(n)};f[e]=t}return f[e]}n.getRedundancyCache=l;var s=Object.create(null);function v(e,n,t){function a(){var t=(""===e?"":"@"+e+":")+n,r=Math.floor(Date.now()/6e4);s[t]<r&&(s[t]=r,console.error('Unable to retrieve icons for "'+t+'" because API is not configured properly.'))}void 0===o[e]&&(o[e]=Object.create(null));var f=o[e];void 0===u[e]&&(u[e]=Object.create(null));var v=u[e];void 0===r[e]&&(r[e]=Object.create(null));var p,h=r[e];void 0===f[n]?f[n]=t:f[n]=f[n].concat(t).sort(),v[n]||(v[n]=!0,setTimeout((function(){v[n]=!1;var t=f[n];delete f[n];var r=I.getAPIModule(e);if(r){if(void 0===p){var o=l(e);if(void 0===o)return void a();p=o}r.prepare(e,n,t).forEach((function(t){p.redundancy.query(t,r.send,(function(r,o){var a=i.getStorage(e,n);if("object"!=typeof r){if(404!==o)return;var u=Date.now();t.icons.forEach((function(e){a.missing[e]=u}))}else try{var f=i.addIconSet(a,r,"all");if("boolean"==typeof f)return;var l=h[n];f.forEach((function(e){delete l[e]})),d.coreModules.cache&&d.coreModules.cache(e,r)}catch(e){console.error(e)}!function(e,n){void 0===c[e]&&(c[e]=Object.create(null));var t=c[e];t[n]||(t[n]=!0,setTimeout((function(){t[n]=!1,y.updateCallbacks(e,n)})))}(e,n)}))}))}else a()})))}n.API={isPending:function(e){return void 0!==r[e.provider]&&void 0!==r[e.provider][e.prefix]&&void 0!==r[e.provider][e.prefix][e.name]},loadIcons:function(e,n){var o=x.listToIcons(e,!0,a.allowSimpleNames()),i=b.sortIcons(o);if(!i.pending.length){var c=!0;return n&&setTimeout((function(){c&&n(i.loaded,i.missing,i.pending,t)})),function(){c=!1}}var u,f,l=Object.create(null),s=[];i.pending.forEach((function(e){var n=e.provider,t=e.prefix;if(t!==f||n!==u){u=n,f=t,s.push({provider:n,prefix:t}),void 0===r[n]&&(r[n]=Object.create(null));var o=r[n];void 0===o[t]&&(o[t]=Object.create(null)),void 0===l[n]&&(l[n]=Object.create(null));var i=l[n];void 0===i[t]&&(i[t]=[])}}));var d=Date.now();return i.pending.forEach((function(e){var n=e.provider,t=e.prefix,o=e.name,i=r[n][t];void 0===i[o]&&(i[o]=d,l[n][t].push(o))})),s.forEach((function(e){var n=e.provider,t=e.prefix;l[n][t].length&&v(n,t,l[n][t])})),n?y.storeCallback(n,i,s):t}}})),P=e((function(e,n){Object.defineProperty(n,"__esModule",{value:!0}),n.APIInternalFunctions=n.APIFunctions=void 0,n.APIFunctions={loadIcons:O.API.loadIcons,addAPIProvider:j.setAPIConfig},n.APIInternalFunctions={getAPI:O.getRedundancyCache,getAPIConfig:j.getAPIConfig,setAPIModule:I.setAPIModule}})),w=e((function(e,n){Object.defineProperty(n,"__esModule",{value:!0}),n.getAPIModule=void 0;var t=null,r="{prefix}.js?icons={icons}&callback={callback}",o=Object.create(null),i=Object.create(null);function a(){if(null===t){var e=self,n="Iconify",o=".cb";if(void 0===e[n])o="",void 0===e[n="IconifyJSONP"]&&(e[n]=Object.create(null)),t=e[n];else{var i=e[n];void 0===i.cb&&(i.cb=Object.create(null)),t=i.cb}r=r.replace("{callback}",n+o+".{cb}")}return t}n.getAPIModule=function(e){return{prepare:function(n,t,c){var u=[],f=o[n+":"+t];void 0===f&&(f=function(n,t){var c,u=e(n);if(!u)return 0;if(u.maxURL){var f=0;u.resources.forEach((function(e){var n=e;f=Math.max(f,n.length)})),a(),c=u.maxURL-f-u.path.length-r.replace("{provider}",n).replace("{prefix}",t).replace("{icons}","").length-3}else c=0;var l=n+":"+t;return i[l]=u.path,o[l]=c,c}(n,t));var l={provider:n,prefix:t,icons:[]},s=0;return c.forEach((function(e,r){(s+=e.length+1)>=f&&r>0&&(u.push(l),l={provider:n,prefix:t,icons:[]},s=e.length),l.icons.push(e)})),u.push(l),u},send:function(e,n,t){for(var o=n.provider,c=n.prefix,u=n.icons.join(","),f=o+":"+c,l=c.split("-").shift().slice(0,3),s=a(),d=function(e){var n,t=0;for(n=e.length-1;n>=0;n--)t+=e.charCodeAt(n);return t%999}(o+":"+e+":"+c+":"+u);void 0!==s[l+d];)d++;var v=l+d,p=i[f]+r.replace("{provider}",o).replace("{prefix}",c).replace("{icons}",u).replace("{cb}",v);s[v]=function(e){delete s[v],t.done(e)};var h=e+p,g=document.createElement("script");g.type="text/javascript",g.async=!0,g.src=h,document.head.appendChild(g)}}}})),M=e((function(e,n){Object.defineProperty(n,"__esModule",{value:!0}),n.getAPIModule=n.setFetch=void 0;var t="{prefix}.json?icons={icons}",r=Object.create(null),o=Object.create(null),i=null;try{i=fetch}catch(e){}n.setFetch=function(e){i=e};n.getAPIModule=function(e){return{prepare:function(n,i,a){var c=[],u=r[i];void 0===u&&(u=function(n,i){var a,c=e(n);if(!c)return 0;if(c.maxURL){var u=0;c.resources.forEach((function(e){var n=e;u=Math.max(u,n.length)})),a=c.maxURL-u-c.path.length-t.replace("{provider}",n).replace("{prefix}",i).replace("{icons}","").length}else a=0;var f=n+":"+i;return o[f]=c.path,r[f]=a,a}(n,i));var f={provider:n,prefix:i,icons:[]},l=0;return a.forEach((function(e,t){(l+=e.length+1)>=u&&t>0&&(c.push(f),f={provider:n,prefix:i,icons:[]},l=e.length),f.icons.push(e)})),c.push(f),c},send:function(e,n,r){var a=n.provider,c=n.prefix,u=n.icons.join(","),f=o[a+":"+c]+t.replace("{provider}",a).replace("{prefix}",c).replace("{icons}",u);i?i(e+f).then((function(e){if(200===e.status)return e.json();r.done(void 0,e.status)})).then((function(e){"object"==typeof e&&null!==e&&r.done(e)})).catch((function(e){r.done(void 0,e.errno)})):r.done(void 0,424)}}}})),A="iconifyFinder"+Date.now(),S="iconifyData"+Date.now();function _(e,n,t,r){var o;try{o=document.createElement("span")}catch(e){return r?"":null}var i=l.iconToSVG(t,f.mergeCustomisations(f.defaults,n)),a=e.element,u=e.finder,s=e.name,d=a?a.getAttribute("class"):"",v=u?u.classFilter(d?d.split(/\s+/):[]):[],p='<svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" aria-hidden="true" role="img" class="'+("iconify iconify--"+s.prefix+(""===s.provider?"":" iconify--"+s.provider)+(v.length?" "+v.join(" "):""))+'">'+c.replaceIDs(i.body)+"</svg>";o.innerHTML=p;var h=o.childNodes[0],g=h.style,m=i.attributes;if(Object.keys(m).forEach((function(e){h.setAttribute(e,m[e])})),i.inline&&(g.verticalAlign="-0.125em"),a){for(var b=a.attributes,y=0;y<b.length;y++){var I=b.item(y);if(I){var j=I.name;if("class"!==j&&"style"!==j&&void 0===m[j])try{h.setAttribute(j,I.value)}catch(e){}}}for(var x=a.style,O=0;O<x.length;O++){var P=x[O];g[P]=x[P]}}if(u){var w={name:s,status:"loaded",customisations:n};h[S]=w,h[A]=u}var M=r?o.innerHTML:h;return a&&a.parentNode?a.parentNode.replaceChild(h,a):o.removeChild(h),M}var E=[];function k(e){for(var n=0;n<E.length;n++){var t=E[n];if(("function"==typeof t.node?t.node():t.node)===e)return t}}function C(e,n){void 0===n&&(n=!1);var t=k(e);return t?(t.temporary&&(t.temporary=n),t):(t={node:e,temporary:n},E.push(t),t)}function F(){return E}var T=null,D={childList:!0,subtree:!0,attributes:!0};function N(e){if(e.observer){var n=e.observer;n.pendingScan||(n.pendingScan=setTimeout((function(){delete n.pendingScan,T&&T(e)})))}}function L(e,n){if(e.observer){var t=e.observer;if(!t.pendingScan)for(var r=0;r<n.length;r++){var o=n[r];if(o.addedNodes&&o.addedNodes.length>0||"attributes"===o.type&&void 0!==o.target[A])return void(t.paused||N(e))}}}function z(e,n){e.observer.instance.observe(n,D)}function R(e){var n=e.observer;if(!n||!n.instance){var t="function"==typeof e.node?e.node():e.node;t&&(n||(n={paused:0},e.observer=n),n.instance=new MutationObserver(L.bind(null,e)),z(e,t),n.paused||N(e))}}function q(){F().forEach(R)}function U(e){if(e.observer){var n=e.observer;n.pendingScan&&(clearTimeout(n.pendingScan),delete n.pendingScan),n.instance&&(n.instance.disconnect(),delete n.instance)}}function V(e){var n=null!==T;T!==e&&(T=e,n&&F().forEach(U)),n?q():function(e){var n=document;"complete"===n.readyState||"loading"!==n.readyState&&!n.documentElement.doScroll?e():(n.addEventListener("DOMContentLoaded",e),window.addEventListener("load",e))}(q)}function G(e){(e?[e]:F()).forEach((function(e){if(e.observer){var n=e.observer;if(n.paused++,!(n.paused>1)&&n.instance)n.instance.disconnect()}else e.observer={paused:1}}))}function $(e){(e?[e]:F()).forEach((function(e){if(e.observer){var n=e.observer;if(n.paused&&(n.paused--,!n.paused)){var t="function"==typeof e.node?e.node():e.node;if(!t)return;n.instance?z(e,t):R(e)}}else R(e)}))}function B(e,n){void 0===n&&(n=!1);var t=C(e,n);return R(t),t}function Q(e){var n=k(e);n&&(U(n),function(e){E=E.filter((function(n){var t="function"==typeof n.node?n.node():n.node;return e!==t}))}(e))}var H=[];function J(e){return"string"==typeof e&&(e=o.stringToIcon(e)),null!==e&&o.validateIcon(e)?e:null}function Y(e){var n=[];H.forEach((function(t){var r=t.find(e);Array.prototype.forEach.call(r,(function(e){var r=e;if(void 0===r[A]||r[A]===t){var o=J(t.name(r));if(null!==o){r[A]=t;var i={element:r,finder:t,name:o};n.push(i)}}}))}));var t=e.querySelectorAll("svg.iconify");return Array.prototype.forEach.call(t,(function(e){var t=e,r=t[A],o=t[S];if(r&&o){var i=J(r.name(t));if(null!==i){var a,c=!1;if(i.prefix!==o.name.prefix||i.name!==o.name.name?c=!0:(a=r.customisations(t),function(e,n){var t=Object.keys(e),r=Object.keys(n);if(t.length!==r.length)return!1;for(var o=0;o<t.length;o++){var i=t[o];if(n[i]!==e[i])return!1}return!0}(o.customisations,a)||(c=!0)),c){var u={element:t,finder:r,name:i,customisations:a};n.push(u)}}}})),n}var Z=!1;function K(){Z||(Z=!0,setTimeout((function(){Z&&(Z=!1,W())})))}function W(e,n){void 0===n&&(n=!1),Z=!1;var t=Object.create(null);if((e?[e]:F()).forEach((function(e){var r="function"==typeof e.node?e.node():e.node;if(r&&r.querySelectorAll){var o=!1,a=!1;Y(r).forEach((function(n){var r,c,u=n.element,f=n.name,l=f.provider,s=f.prefix,v=f.name,p=u[S];if(void 0!==p&&(r=p.name,c=f,null!==r&&null!==c&&r.name===c.name&&r.prefix===c.prefix))switch(p.status){case"missing":return;case"loading":if(d.coreModules.api&&d.coreModules.api.isPending({provider:l,prefix:s,name:v}))return void(o=!0)}var h=i.getStorage(l,s);if(void 0===h.icons[v]){if(h.missing[v])return p={name:f,status:"missing",customisations:{}},void(u[S]=p);if(d.coreModules.api&&!d.coreModules.api.isPending({provider:l,prefix:s,name:v})){void 0===t[l]&&(t[l]=Object.create(null));var g=t[l];void 0===g[s]&&(g[s]=Object.create(null)),g[s][v]=!0}p={name:f,status:"loading",customisations:{}},u[S]=p,o=!0}else{!a&&e.observer&&(G(e),a=!0);var m=void 0!==n.customisations?n.customisations:n.finder.customisations(u);_(n,m,i.getIcon(h,v))}})),e.temporary&&!o?Q(r):n&&o?B(r,!0):a&&e.observer&&$(e)}})),d.coreModules.api){var r=d.coreModules.api;Object.keys(t).forEach((function(e){var n=t[e];Object.keys(n).forEach((function(t){r.loadIcons(Object.keys(n[t]).map((function(n){return{provider:e,prefix:t,name:n}})),K)}))}))}}var X=e((function(e,n){Object.defineProperty(n,"__esModule",{value:!0}),n.rotateFromString=void 0,n.rotateFromString=function(e){var n=e.replace(/^-?[0-9.]*/,"");function t(e){for(;e<0;)e+=4;return e%4}if(""===n){var r=parseInt(e);return isNaN(r)?0:t(r)}if(n!==e){var o=0;switch(n){case"%":o=25;break;case"deg":o=90}if(o){var i=parseFloat(e.slice(0,e.length-n.length));return isNaN(i)?0:(i/=o)%1==0?t(i):0}}return 0}})),ee=e((function(e,n){Object.defineProperty(n,"__esModule",{value:!0}),n.alignmentFromString=n.flipFromString=void 0;var t=/[\s,]+/;n.flipFromString=function(e,n){n.split(t).forEach((function(n){switch(n.trim()){case"horizontal":e.hFlip=!0;break;case"vertical":e.vFlip=!0}}))},n.alignmentFromString=function(e,n){n.split(t).forEach((function(n){var t=n.trim();switch(t){case"left":case"center":case"right":e.hAlign=t;break;case"top":case"middle":case"bottom":e.vAlign=t;break;case"slice":case"crop":e.slice=!0;break;case"meet":e.slice=!1}}))}}));function ne(e,n){return e.hasAttribute(n)}function te(e,n){return e.getAttribute(n)}var re=["inline","hFlip","vFlip"],oe=["width","height"],ie="iconify-inline",ae={find:function(e){return e.querySelectorAll("i.iconify, span.iconify, i.iconify-inline, span.iconify-inline")},name:function(e){return ne(e,"data-icon")?te(e,"data-icon"):null},customisations:function(e,n){void 0===n&&(n={inline:!1});var t=n,r=e.getAttribute("class");if(-1!==(r?r.split(/\s+/):[]).indexOf(ie)&&(t.inline=!0),ne(e,"data-rotate")){var o=X.rotateFromString(te(e,"data-rotate"));o&&(t.rotate=o)}return ne(e,"data-flip")&&ee.flipFromString(t,te(e,"data-flip")),ne(e,"data-align")&&ee.alignmentFromString(t,te(e,"data-align")),re.forEach((function(n){if(ne(e,"data-"+n)){var r=function(e,n){var t=e.getAttribute(n);return t===n||"true"===t||""!==t&&"false"!==t&&null}(e,"data-"+n);"boolean"==typeof r&&(t[n]=r)}})),oe.forEach((function(n){if(ne(e,"data-"+n)){var r=te(e,"data-"+n);""!==r&&(t[n]=r)}})),t},classFilter:function(e){var n=[];return e.forEach((function(e){"iconify"!==e&&""!==e&&"iconify--"!==e.slice(0,9)&&n.push(e)})),n}};function ce(e,n,t){var r=a.getIconData(e);return r?_({name:o.stringToIcon(e)},f.mergeCustomisations(f.defaults,"object"==typeof n?n:{}),r,t):null}var ue={getVersion:function(){return"2.0.4"},renderSVG:function(e,n){return ce(e,n,!1)},renderHTML:function(e,n){return ce(e,n,!0)},renderIcon:function(e,n){var t=a.getIconData(e);if(!t)return null;var r=f.mergeCustomisations(f.defaults,"object"==typeof n?n:{});return l.iconToSVG(t,r)},scan:function(e){e?function(e){var n=k(e);n?W(n):W({node:e,temporary:!0},!0)}(e):W()},observe:function(e){B(e)},stopObserving:function(e){Q(e)},pauseObserver:function(e){if(e){var n=k(e);n&&G(n)}else G()},resumeObserver:function(e){if(e){var n=k(e);n&&$(n)}else $()}};if("undefined"!=typeof document&&"undefined"!=typeof window){!function(){if(document.documentElement)return C(document.documentElement);E.push({node:function(){return document.documentElement}})}(),function(e){-1===H.indexOf(e)&&H.push(e)}(ae);var fe=window;if(void 0!==fe.IconifyPreload){var le=fe.IconifyPreload,se="Invalid IconifyPreload syntax.";"object"==typeof le&&null!==le&&(le instanceof Array?le:[le]).forEach((function(e){try{("object"!=typeof e||null===e||e instanceof Array||"object"!=typeof e.icons||"string"!=typeof e.prefix||!a.storageFunctions.addCollection(e))&&console.error(se)}catch(e){console.error(se)}}))}setTimeout((function(){V(W),W()}))}var de={enableCache:function(e,n){return p.toggleBrowserCache(e,!1!==n)},disableCache:function(e){return p.toggleBrowserCache(e,!0)}},ve={_api:P.APIInternalFunctions};[a.storageFunctions,s.builderFunctions,ue,de,P.APIFunctions].forEach((function(e){for(var n in e)ve[n]=e[n]})),d.coreModules.api=O.API;var pe=M.getAPIModule;try{"undefined"!=typeof document&&"undefined"!=typeof window&&(pe="function"==typeof fetch&&"function"==typeof Promise?M.getAPIModule:w.getAPIModule)}catch(se){}if(I.setAPIModule("",pe(j.getAPIConfig)),ve._api.setFetch=function(e){M.setFetch(e),pe!==M.getAPIModule&&(pe=M.getAPIModule,I.setAPIModule("",pe(j.getAPIConfig)))},"undefined"!=typeof document&&"undefined"!=typeof window){d.coreModules.cache=v.storeCache,v.loadCache();var he=window;if(void 0!==he.IconifyProviders){var ge=he.IconifyProviders;if("object"==typeof ge&&null!==ge)for(var me in ge){var be="IconifyProviders["+me+"] is invalid.";try{var ye=ge[me];if("object"!=typeof ye||!ye||void 0===ye.resources)continue;j.setAPIConfig(me,ye)||console.error(be)}catch(e){console.error(be)}}}}return ve}();try{void 0===self.Iconify&&(self.Iconify=Iconify)}catch(e){}if("object"==typeof exports)try{exports.__esModule=!0,exports.default=Iconify}catch(e){} |
@@ -81,8 +81,8 @@ | ||
*/ | ||
renderSVG: (name: string, customisations: IconifyIconCustomisations) => SVGElement | null; | ||
renderHTML: (name: string, customisations: IconifyIconCustomisations) => string | null; | ||
renderSVG: (name: string, customisations?: IconifyIconCustomisations) => SVGElement | null; | ||
renderHTML: (name: string, customisations?: IconifyIconCustomisations) => string | null; | ||
/** | ||
* Get icon data | ||
*/ | ||
renderIcon: (name: string, customisations: IconifyIconCustomisations) => IconifyIconBuildResult | null; | ||
renderIcon: (name: string, customisations?: IconifyIconCustomisations) => IconifyIconBuildResult | null; | ||
/** | ||
@@ -89,0 +89,0 @@ * Scan DOM |
@@ -1817,3 +1817,3 @@ /** | ||
// Clean up customisations | ||
var changes = customisations.mergeCustomisations(customisations.defaults, customisations$1); | ||
var changes = customisations.mergeCustomisations(customisations.defaults, typeof customisations$1 === 'object' ? customisations$1 : {}); | ||
// Get data | ||
@@ -1834,3 +1834,3 @@ return build.iconToSVG(iconData, changes); | ||
// Clean up customisations | ||
var changes = customisations.mergeCustomisations(customisations.defaults, customisations$1); | ||
var changes = customisations.mergeCustomisations(customisations.defaults, typeof customisations$1 === 'object' ? customisations$1 : {}); | ||
// Get data | ||
@@ -1846,3 +1846,3 @@ return renderIcon({ | ||
// Version | ||
getVersion: function () { return '2.0.3'; }, | ||
getVersion: function () { return '2.0.4'; }, | ||
// Render SVG | ||
@@ -1849,0 +1849,0 @@ renderSVG: function (name, customisations) { |
@@ -81,8 +81,8 @@ | ||
*/ | ||
renderSVG: (name: string, customisations: IconifyIconCustomisations) => SVGElement | null; | ||
renderHTML: (name: string, customisations: IconifyIconCustomisations) => string | null; | ||
renderSVG: (name: string, customisations?: IconifyIconCustomisations) => SVGElement | null; | ||
renderHTML: (name: string, customisations?: IconifyIconCustomisations) => string | null; | ||
/** | ||
* Get icon data | ||
*/ | ||
renderIcon: (name: string, customisations: IconifyIconCustomisations) => IconifyIconBuildResult | null; | ||
renderIcon: (name: string, customisations?: IconifyIconCustomisations) => IconifyIconBuildResult | null; | ||
/** | ||
@@ -89,0 +89,0 @@ * Scan DOM |
@@ -13,2 +13,2 @@ /** | ||
*/ | ||
var Iconify=function(){"use strict";function e(e,n,t){return e(t={path:n,exports:{},require:function(e,n){return function(){throw new Error("Dynamic requires are not currently supported by @rollup/plugin-commonjs")}(null==n&&t.path)}},t.exports),t.exports}var n=e((function(e,n){Object.defineProperty(n,"__esModule",{value:!0}),n.fullIcon=n.iconDefaults=n.minifyProps=n.matchName=void 0,n.matchName=/^[a-z0-9]+(-[a-z0-9]+)*$/,n.minifyProps=["width","height","top","left"],n.iconDefaults=Object.freeze({left:0,top:0,width:16,height:16,rotate:0,vFlip:!1,hFlip:!1}),n.fullIcon=function(e){return Object.assign({},n.iconDefaults,e)}})),t=e((function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.mergeIconData=void 0,t.mergeIconData=function(e,t){var i=Object.assign({},e);for(var r in n.iconDefaults){var o=r;if(void 0!==t[o]){var a=t[o];if(void 0===i[o]){i[o]=a;continue}switch(o){case"rotate":i[o]=(i[o]+a)%4;break;case"hFlip":case"vFlip":i[o]=a!==i[o];break;default:i[o]=a}}}return i}})),i=e((function(e,i){Object.defineProperty(i,"__esModule",{value:!0}),i.parseIconSet=void 0;var r=Object.keys(n.iconDefaults);function o(e,n,i,r){void 0===r&&(r=0);var a=e.parent;if(void 0!==n[a])return t.mergeIconData(n[a],e);if(void 0!==i[a]){if(r>2)return null;var c=o(i[a],n,i,r+1);if(c)return t.mergeIconData(c,e)}return null}i.parseIconSet=function(e,t,i){void 0===i&&(i="none");var a=[];if("object"!=typeof e)return"none"!==i&&a;if(e.not_found instanceof Array&&e.not_found.forEach((function(e){t(e,null),"all"===i&&a.push(e)})),"object"!=typeof e.icons)return"none"!==i&&a;var c=Object.create(null);r.forEach((function(n){void 0!==e[n]&&"object"!=typeof e[n]&&(c[n]=e[n])}));var u=e.icons;if(Object.keys(u).forEach((function(e){var i=u[e];"string"==typeof i.body&&(t(e,Object.freeze(Object.assign({},n.iconDefaults,c,i))),a.push(e))})),"object"==typeof e.aliases){var s=e.aliases;Object.keys(s).forEach((function(e){var i=o(s[e],u,s,1);i&&(t(e,Object.freeze(Object.assign({},n.iconDefaults,c,i))),a.push(e))}))}return"none"===i?a.length>0:a}})),r=e((function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.validateIcon=t.stringToIcon=void 0;t.stringToIcon=function(e,n,i,r){void 0===r&&(r="");var o=e.split(":");if("@"===e.slice(0,1)){if(o.length<2||o.length>3)return null;r=o.shift().slice(1)}if(o.length>3||!o.length)return null;if(o.length>1){var a=o.pop(),c=o.pop(),u={provider:o.length>0?o[0]:r,prefix:c,name:a};return n&&!t.validateIcon(u)?null:u}var s=o[0],f=s.split("-");if(f.length>1){var l={provider:r,prefix:f.shift(),name:f.join("-")};return n&&!t.validateIcon(l)?null:l}if(i&&""===r){var d={provider:r,prefix:"",name:s};return n&&!t.validateIcon(d,i)?null:d}return null};t.validateIcon=function(e,t){return!!e&&!(""!==e.provider&&!e.provider.match(n.matchName)||!(t&&""===e.prefix||e.prefix.match(n.matchName))||!e.name.match(n.matchName))}})),o=e((function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.listIcons=t.getIcon=t.iconExists=t.addIcon=t.addIconSet=t.getStorage=t.newStorage=void 0;var r=Object.create(null);function o(e,n){return{provider:e,prefix:n,icons:Object.create(null),missing:Object.create(null)}}function a(e,n){void 0===r[e]&&(r[e]=Object.create(null));var t=r[e];return void 0===t[n]&&(t[n]=o(e,n)),t[n]}t.newStorage=o,t.getStorage=a,t.addIconSet=function(e,n,t){void 0===t&&(t="none");var r=Date.now();return i.parseIconSet(n,(function(n,t){null===t?e.missing[n]=r:e.icons[n]=t}),t)},t.addIcon=function(e,t,i){try{if("string"==typeof i.body)return e.icons[t]=Object.freeze(n.fullIcon(i)),!0}catch(e){}return!1},t.iconExists=function(e,n){return void 0!==e.icons[n]},t.getIcon=function(e,n){var t=e.icons[n];return void 0===t?null:t},t.listIcons=function(e,n){var t=[];return("string"==typeof e?[e]:Object.keys(r)).forEach((function(e){("string"==typeof e&&"string"==typeof n?[n]:void 0===r[e]?[]:Object.keys(r[e])).forEach((function(n){var i=a(e,n),r=Object.keys(i.icons).map((function(t){return(""!==e?"@"+e+":":"")+n+":"+t}));t=t.concat(r)}))})),t}})),a=e((function(e,n){Object.defineProperty(n,"__esModule",{value:!0}),n.storageFunctions=n.addCollection=n.addIcon=n.getIconData=n.allowSimpleNames=void 0;var t=!1;function a(e){var n="string"==typeof e?r.stringToIcon(e,!0,t):e;return n?o.getIcon(o.getStorage(n.provider,n.prefix),n.name):null}function c(e,n){var i=r.stringToIcon(e,!0,t);if(!i)return!1;var a=o.getStorage(i.provider,i.prefix);return o.addIcon(a,i.name,n)}function u(e,n){if("object"!=typeof e)return!1;if("string"!=typeof n&&(n="string"==typeof e.provider?e.provider:""),t&&""===n&&("string"!=typeof e.prefix||""===e.prefix)){var a=!1;return i.parseIconSet(e,(function(e,n){null!==n&&c(e,n)&&(a=!0)})),a}if("string"!=typeof e.prefix||!r.validateIcon({provider:n,prefix:e.prefix,name:"a"}))return!1;var u=o.getStorage(n,e.prefix);return!!o.addIconSet(u,e)}n.allowSimpleNames=function(e){return"boolean"==typeof e&&(t=e),t},n.getIconData=a,n.addIcon=c,n.addCollection=u,n.storageFunctions={iconExists:function(e){return null!==a(e)},getIcon:function(e){var n=a(e);return n?Object.assign({},n):null},listIcons:o.listIcons,addIcon:c,addCollection:u}})),c=e((function(e,n){Object.defineProperty(n,"__esModule",{value:!0}),n.replaceIDs=void 0;var t=/\sid="(\S+)"/g,i="([^A-Za-z0-9_-])";var r="IconifyId-"+Date.now().toString(16)+"-"+(16777216*Math.random()|0).toString(16)+"-",o=0;n.replaceIDs=function(e,n){void 0===n&&(n=r);for(var a,c=[];a=t.exec(e);)c.push(a[1]);return c.length?(c.forEach((function(t){var r="function"==typeof n?n():n+o++;e=e.replace(new RegExp(i+"("+(t.replace(/[.*+?^${}()|[\]\\]/g,"\\$&")+")")+i,"g"),"$1"+r+"$3")})),e):e}})),u=e((function(e,n){Object.defineProperty(n,"__esModule",{value:!0}),n.calculateSize=void 0;var t=/(-?[0-9.]*[0-9]+[0-9.]*)/g,i=/^-?[0-9.]*[0-9]+[0-9.]*$/g;n.calculateSize=function(e,n,r){if(1===n)return e;if(r=void 0===r?100:r,"number"==typeof e)return Math.ceil(e*n*r)/r;if("string"!=typeof e)return e;var o=e.split(t);if(null===o||!o.length)return e;for(var a=[],c=o.shift(),u=i.test(c);;){if(u){var s=parseFloat(c);isNaN(s)?a.push(c):a.push(Math.ceil(s*n*r)/r)}else a.push(c);if(void 0===(c=o.shift()))return a.join("");u=!u}}})),s=e((function(e,n){Object.defineProperty(n,"__esModule",{value:!0}),n.mergeCustomisations=n.defaults=void 0,n.defaults=Object.freeze({inline:!1,width:null,height:null,hAlign:"center",vAlign:"middle",slice:!1,hFlip:!1,vFlip:!1,rotate:0}),n.mergeCustomisations=function(e,n){var t={};for(var i in e){var r=i;if(t[r]=e[r],void 0!==n[r]){var o=n[r];switch(r){case"inline":case"slice":"boolean"==typeof o&&(t[r]=o);break;case"hFlip":case"vFlip":!0===o&&(t[r]=!t[r]);break;case"hAlign":case"vAlign":"string"==typeof o&&""!==o&&(t[r]=o);break;case"width":case"height":("string"==typeof o&&""!==o||"number"==typeof o&&o||null===o)&&(t[r]=o);break;case"rotate":"number"==typeof o&&(t[r]+=o)}}}return t}})),f=e((function(e,n){function t(e){var n="";switch(e.hAlign){case"left":n+="xMin";break;case"right":n+="xMax";break;default:n+="xMid"}switch(e.vAlign){case"top":n+="YMin";break;case"bottom":n+="YMax";break;default:n+="YMid"}return n+=e.slice?" slice":" meet"}Object.defineProperty(n,"__esModule",{value:!0}),n.iconToSVG=void 0,n.iconToSVG=function(e,n){var i,r,o={left:e.left,top:e.top,width:e.width,height:e.height},a=e.body;[e,n].forEach((function(e){var n,t=[],i=e.hFlip,r=e.vFlip,c=e.rotate;switch(i?r?c+=2:(t.push("translate("+(o.width+o.left)+" "+(0-o.top)+")"),t.push("scale(-1 1)"),o.top=o.left=0):r&&(t.push("translate("+(0-o.left)+" "+(o.height+o.top)+")"),t.push("scale(1 -1)"),o.top=o.left=0),c<0&&(c-=4*Math.floor(c/4)),c%=4){case 1:n=o.height/2+o.top,t.unshift("rotate(90 "+n+" "+n+")");break;case 2:t.unshift("rotate(180 "+(o.width/2+o.left)+" "+(o.height/2+o.top)+")");break;case 3:n=o.width/2+o.left,t.unshift("rotate(-90 "+n+" "+n+")")}c%2==1&&(0===o.left&&0===o.top||(n=o.left,o.left=o.top,o.top=n),o.width!==o.height&&(n=o.width,o.width=o.height,o.height=n)),t.length&&(a='<g transform="'+t.join(" ")+'">'+a+"</g>")})),null===n.width&&null===n.height?(r="1em",i=u.calculateSize(r,o.width/o.height)):null!==n.width&&null!==n.height?(i=n.width,r=n.height):null!==n.height?(r=n.height,i=u.calculateSize(r,o.width/o.height)):(i=n.width,r=u.calculateSize(i,o.height/o.width)),"auto"===i&&(i=o.width),"auto"===r&&(r=o.height);var c={attributes:{width:i="string"==typeof i?i:i+"",height:r="string"==typeof r?r:r+"",preserveAspectRatio:t(n),viewBox:o.left+" "+o.top+" "+o.width+" "+o.height},body:a};return n.inline&&(c.inline=!0),c}})),l=e((function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.builderFunctions=void 0,t.builderFunctions={replaceIDs:c.replaceIDs,calculateSize:u.calculateSize,buildIcon:function(e,t){return f.iconToSVG(n.fullIcon(e),s.mergeCustomisations(s.defaults,t))}}})),d="iconifyFinder"+Date.now(),v="iconifyData"+Date.now();function p(e,n,t,i){var r;try{r=document.createElement("span")}catch(e){return i?"":null}var o=f.iconToSVG(t,s.mergeCustomisations(s.defaults,n)),a=e.element,u=e.finder,l=e.name,p=a?a.getAttribute("class"):"",h=u?u.classFilter(p?p.split(/\s+/):[]):[],g='<svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" aria-hidden="true" role="img" class="'+("iconify iconify--"+l.prefix+(""===l.provider?"":" iconify--"+l.provider)+(h.length?" "+h.join(" "):""))+'">'+c.replaceIDs(o.body)+"</svg>";r.innerHTML=g;var m=r.childNodes[0],y=m.style,b=o.attributes;if(Object.keys(b).forEach((function(e){m.setAttribute(e,b[e])})),o.inline&&(y.verticalAlign="-0.125em"),a){for(var I=a.attributes,w=0;w<I.length;w++){var j=I.item(w);if(j){var S=j.name;if("class"!==S&&"style"!==S&&void 0===b[S])try{m.setAttribute(S,j.value)}catch(e){}}}for(var O=a.style,x=0;x<O.length;x++){var E=O[x];y[E]=O[E]}}if(u){var M={name:l,status:"loaded",customisations:n};m[v]=M,m[d]=u}var F=i?r.innerHTML:m;return a&&a.parentNode?a.parentNode.replaceChild(m,a):r.removeChild(m),F}var h=[];function g(e){for(var n=0;n<h.length;n++){var t=h[n];if(("function"==typeof t.node?t.node():t.node)===e)return t}}function m(e,n){void 0===n&&(n=!1);var t=g(e);return t?(t.temporary&&(t.temporary=n),t):(t={node:e,temporary:n},h.push(t),t)}function y(){return h}var b=null,I={childList:!0,subtree:!0,attributes:!0};function w(e){if(e.observer){var n=e.observer;n.pendingScan||(n.pendingScan=setTimeout((function(){delete n.pendingScan,b&&b(e)})))}}function j(e,n){if(e.observer){var t=e.observer;if(!t.pendingScan)for(var i=0;i<n.length;i++){var r=n[i];if(r.addedNodes&&r.addedNodes.length>0||"attributes"===r.type&&void 0!==r.target[d])return void(t.paused||w(e))}}}function S(e,n){e.observer.instance.observe(n,I)}function O(e){var n=e.observer;if(!n||!n.instance){var t="function"==typeof e.node?e.node():e.node;t&&(n||(n={paused:0},e.observer=n),n.instance=new MutationObserver(j.bind(null,e)),S(e,t),n.paused||w(e))}}function x(){y().forEach(O)}function E(e){if(e.observer){var n=e.observer;n.pendingScan&&(clearTimeout(n.pendingScan),delete n.pendingScan),n.instance&&(n.instance.disconnect(),delete n.instance)}}function M(e){var n=null!==b;b!==e&&(b=e,n&&y().forEach(E)),n?x():function(e){var n=document;"complete"===n.readyState||"loading"!==n.readyState&&!n.documentElement.doScroll?e():(n.addEventListener("DOMContentLoaded",e),window.addEventListener("load",e))}(x)}function F(e){(e?[e]:y()).forEach((function(e){if(e.observer){var n=e.observer;if(n.paused++,!(n.paused>1)&&n.instance)n.instance.disconnect()}else e.observer={paused:1}}))}function _(e){(e?[e]:y()).forEach((function(e){if(e.observer){var n=e.observer;if(n.paused&&(n.paused--,!n.paused)){var t="function"==typeof e.node?e.node():e.node;if(!t)return;n.instance?S(e,t):O(e)}}else O(e)}))}function k(e,n){void 0===n&&(n=!1);var t=m(e,n);return O(t),t}function D(e){var n=g(e);n&&(E(n),function(e){h=h.filter((function(n){var t="function"==typeof n.node?n.node():n.node;return e!==t}))}(e))}var A=e((function(e,n){Object.defineProperty(n,"__esModule",{value:!0}),n.coreModules=void 0,n.coreModules={}})),P=[];function N(e){return"string"==typeof e&&(e=r.stringToIcon(e)),null!==e&&r.validateIcon(e)?e:null}function T(e){var n=[];P.forEach((function(t){var i=t.find(e);Array.prototype.forEach.call(i,(function(e){var i=e;if(void 0===i[d]||i[d]===t){var r=N(t.name(i));if(null!==r){i[d]=t;var o={element:i,finder:t,name:r};n.push(o)}}}))}));var t=e.querySelectorAll("svg.iconify");return Array.prototype.forEach.call(t,(function(e){var t=e,i=t[d],r=t[v];if(i&&r){var o=N(i.name(t));if(null!==o){var a,c=!1;if(o.prefix!==r.name.prefix||o.name!==r.name.name?c=!0:(a=i.customisations(t),function(e,n){var t=Object.keys(e),i=Object.keys(n);if(t.length!==i.length)return!1;for(var r=0;r<t.length;r++){var o=t[r];if(n[o]!==e[o])return!1}return!0}(r.customisations,a)||(c=!0)),c){var u={element:t,finder:i,name:o,customisations:a};n.push(u)}}}})),n}var z=!1;function C(){z||(z=!0,setTimeout((function(){z&&(z=!1,L())})))}function L(e,n){void 0===n&&(n=!1),z=!1;var t=Object.create(null);if((e?[e]:y()).forEach((function(e){var i="function"==typeof e.node?e.node():e.node;if(i&&i.querySelectorAll){var r=!1,a=!1;T(i).forEach((function(n){var i,c,u=n.element,s=n.name,f=s.provider,l=s.prefix,d=s.name,h=u[v];if(void 0!==h&&(i=h.name,c=s,null!==i&&null!==c&&i.name===c.name&&i.prefix===c.prefix))switch(h.status){case"missing":return;case"loading":if(A.coreModules.api&&A.coreModules.api.isPending({provider:f,prefix:l,name:d}))return void(r=!0)}var g=o.getStorage(f,l);if(void 0===g.icons[d]){if(g.missing[d])return h={name:s,status:"missing",customisations:{}},void(u[v]=h);if(A.coreModules.api&&!A.coreModules.api.isPending({provider:f,prefix:l,name:d})){void 0===t[f]&&(t[f]=Object.create(null));var m=t[f];void 0===m[l]&&(m[l]=Object.create(null)),m[l][d]=!0}h={name:s,status:"loading",customisations:{}},u[v]=h,r=!0}else{!a&&e.observer&&(F(e),a=!0);var y=void 0!==n.customisations?n.customisations:n.finder.customisations(u);p(n,y,o.getIcon(g,d))}})),e.temporary&&!r?D(i):n&&r?k(i,!0):a&&e.observer&&_(e)}})),A.coreModules.api){var i=A.coreModules.api;Object.keys(t).forEach((function(e){var n=t[e];Object.keys(n).forEach((function(t){i.loadIcons(Object.keys(n[t]).map((function(n){return{provider:e,prefix:t,name:n}})),C)}))}))}}var V=e((function(e,n){Object.defineProperty(n,"__esModule",{value:!0}),n.rotateFromString=void 0,n.rotateFromString=function(e){var n=e.replace(/^-?[0-9.]*/,"");function t(e){for(;e<0;)e+=4;return e%4}if(""===n){var i=parseInt(e);return isNaN(i)?0:t(i)}if(n!==e){var r=0;switch(n){case"%":r=25;break;case"deg":r=90}if(r){var o=parseFloat(e.slice(0,e.length-n.length));return isNaN(o)?0:(o/=r)%1==0?t(o):0}}return 0}})),G=e((function(e,n){Object.defineProperty(n,"__esModule",{value:!0}),n.alignmentFromString=n.flipFromString=void 0;var t=/[\s,]+/;n.flipFromString=function(e,n){n.split(t).forEach((function(n){switch(n.trim()){case"horizontal":e.hFlip=!0;break;case"vertical":e.vFlip=!0}}))},n.alignmentFromString=function(e,n){n.split(t).forEach((function(n){var t=n.trim();switch(t){case"left":case"center":case"right":e.hAlign=t;break;case"top":case"middle":case"bottom":e.vAlign=t;break;case"slice":case"crop":e.slice=!0;break;case"meet":e.slice=!1}}))}}));function $(e,n){return e.hasAttribute(n)}function q(e,n){return e.getAttribute(n)}var H=["inline","hFlip","vFlip"],Y=["width","height"],R="iconify-inline",B={find:function(e){return e.querySelectorAll("i.iconify, span.iconify, i.iconify-inline, span.iconify-inline")},name:function(e){return $(e,"data-icon")?q(e,"data-icon"):null},customisations:function(e,n){void 0===n&&(n={inline:!1});var t=n,i=e.getAttribute("class");if(-1!==(i?i.split(/\s+/):[]).indexOf(R)&&(t.inline=!0),$(e,"data-rotate")){var r=V.rotateFromString(q(e,"data-rotate"));r&&(t.rotate=r)}return $(e,"data-flip")&&G.flipFromString(t,q(e,"data-flip")),$(e,"data-align")&&G.alignmentFromString(t,q(e,"data-align")),H.forEach((function(n){if($(e,"data-"+n)){var i=function(e,n){var t=e.getAttribute(n);return t===n||"true"===t||""!==t&&"false"!==t&&null}(e,"data-"+n);"boolean"==typeof i&&(t[n]=i)}})),Y.forEach((function(n){if($(e,"data-"+n)){var i=q(e,"data-"+n);""!==i&&(t[n]=i)}})),t},classFilter:function(e){var n=[];return e.forEach((function(e){"iconify"!==e&&""!==e&&"iconify--"!==e.slice(0,9)&&n.push(e)})),n}};function Z(e,n,t){var i=a.getIconData(e);return i?p({name:r.stringToIcon(e)},s.mergeCustomisations(s.defaults,n),i,t):null}var J={getVersion:function(){return"2.0.3"},renderSVG:function(e,n){return Z(e,n,!1)},renderHTML:function(e,n){return Z(e,n,!0)},renderIcon:function(e,n){var t=a.getIconData(e);if(!t)return null;var i=s.mergeCustomisations(s.defaults,n);return f.iconToSVG(t,i)},scan:function(e){e?function(e){var n=g(e);n?L(n):L({node:e,temporary:!0},!0)}(e):L()},observe:function(e){k(e)},stopObserving:function(e){D(e)},pauseObserver:function(e){if(e){var n=g(e);n&&F(n)}else F()},resumeObserver:function(e){if(e){var n=g(e);n&&_(n)}else _()}};if("undefined"!=typeof document&&"undefined"!=typeof window){!function(){if(document.documentElement)return m(document.documentElement);h.push({node:function(){return document.documentElement}})}(),function(e){-1===P.indexOf(e)&&P.push(e)}(B);var K=window;if(void 0!==K.IconifyPreload){var Q=K.IconifyPreload,U="Invalid IconifyPreload syntax.";"object"==typeof Q&&null!==Q&&(Q instanceof Array?Q:[Q]).forEach((function(e){try{("object"!=typeof e||null===e||e instanceof Array||"object"!=typeof e.icons||"string"!=typeof e.prefix||!a.storageFunctions.addCollection(e))&&console.error(U)}catch(e){console.error(U)}}))}setTimeout((function(){M(L),L()}))}var W={};return[a.storageFunctions,l.builderFunctions,J].forEach((function(e){for(var n in e)W[n]=e[n]})),W}();try{void 0===self.Iconify&&(self.Iconify=Iconify)}catch(e){}if("object"==typeof exports)try{exports.__esModule=!0,exports.default=Iconify}catch(e){} | ||
var Iconify=function(){"use strict";function e(e,t,n){return e(n={path:t,exports:{},require:function(e,t){return function(){throw new Error("Dynamic requires are not currently supported by @rollup/plugin-commonjs")}(null==t&&n.path)}},n.exports),n.exports}var t=e((function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.fullIcon=t.iconDefaults=t.minifyProps=t.matchName=void 0,t.matchName=/^[a-z0-9]+(-[a-z0-9]+)*$/,t.minifyProps=["width","height","top","left"],t.iconDefaults=Object.freeze({left:0,top:0,width:16,height:16,rotate:0,vFlip:!1,hFlip:!1}),t.fullIcon=function(e){return Object.assign({},t.iconDefaults,e)}})),n=e((function(e,n){Object.defineProperty(n,"__esModule",{value:!0}),n.mergeIconData=void 0,n.mergeIconData=function(e,n){var i=Object.assign({},e);for(var r in t.iconDefaults){var o=r;if(void 0!==n[o]){var a=n[o];if(void 0===i[o]){i[o]=a;continue}switch(o){case"rotate":i[o]=(i[o]+a)%4;break;case"hFlip":case"vFlip":i[o]=a!==i[o];break;default:i[o]=a}}}return i}})),i=e((function(e,i){Object.defineProperty(i,"__esModule",{value:!0}),i.parseIconSet=void 0;var r=Object.keys(t.iconDefaults);function o(e,t,i,r){void 0===r&&(r=0);var a=e.parent;if(void 0!==t[a])return n.mergeIconData(t[a],e);if(void 0!==i[a]){if(r>2)return null;var c=o(i[a],t,i,r+1);if(c)return n.mergeIconData(c,e)}return null}i.parseIconSet=function(e,n,i){void 0===i&&(i="none");var a=[];if("object"!=typeof e)return"none"!==i&&a;if(e.not_found instanceof Array&&e.not_found.forEach((function(e){n(e,null),"all"===i&&a.push(e)})),"object"!=typeof e.icons)return"none"!==i&&a;var c=Object.create(null);r.forEach((function(t){void 0!==e[t]&&"object"!=typeof e[t]&&(c[t]=e[t])}));var u=e.icons;if(Object.keys(u).forEach((function(e){var i=u[e];"string"==typeof i.body&&(n(e,Object.freeze(Object.assign({},t.iconDefaults,c,i))),a.push(e))})),"object"==typeof e.aliases){var s=e.aliases;Object.keys(s).forEach((function(e){var i=o(s[e],u,s,1);i&&(n(e,Object.freeze(Object.assign({},t.iconDefaults,c,i))),a.push(e))}))}return"none"===i?a.length>0:a}})),r=e((function(e,n){Object.defineProperty(n,"__esModule",{value:!0}),n.validateIcon=n.stringToIcon=void 0;n.stringToIcon=function(e,t,i,r){void 0===r&&(r="");var o=e.split(":");if("@"===e.slice(0,1)){if(o.length<2||o.length>3)return null;r=o.shift().slice(1)}if(o.length>3||!o.length)return null;if(o.length>1){var a=o.pop(),c=o.pop(),u={provider:o.length>0?o[0]:r,prefix:c,name:a};return t&&!n.validateIcon(u)?null:u}var s=o[0],f=s.split("-");if(f.length>1){var l={provider:r,prefix:f.shift(),name:f.join("-")};return t&&!n.validateIcon(l)?null:l}if(i&&""===r){var d={provider:r,prefix:"",name:s};return t&&!n.validateIcon(d,i)?null:d}return null};n.validateIcon=function(e,n){return!!e&&!(""!==e.provider&&!e.provider.match(t.matchName)||!(n&&""===e.prefix||e.prefix.match(t.matchName))||!e.name.match(t.matchName))}})),o=e((function(e,n){Object.defineProperty(n,"__esModule",{value:!0}),n.listIcons=n.getIcon=n.iconExists=n.addIcon=n.addIconSet=n.getStorage=n.newStorage=void 0;var r=Object.create(null);function o(e,t){return{provider:e,prefix:t,icons:Object.create(null),missing:Object.create(null)}}function a(e,t){void 0===r[e]&&(r[e]=Object.create(null));var n=r[e];return void 0===n[t]&&(n[t]=o(e,t)),n[t]}n.newStorage=o,n.getStorage=a,n.addIconSet=function(e,t,n){void 0===n&&(n="none");var r=Date.now();return i.parseIconSet(t,(function(t,n){null===n?e.missing[t]=r:e.icons[t]=n}),n)},n.addIcon=function(e,n,i){try{if("string"==typeof i.body)return e.icons[n]=Object.freeze(t.fullIcon(i)),!0}catch(e){}return!1},n.iconExists=function(e,t){return void 0!==e.icons[t]},n.getIcon=function(e,t){var n=e.icons[t];return void 0===n?null:n},n.listIcons=function(e,t){var n=[];return("string"==typeof e?[e]:Object.keys(r)).forEach((function(e){("string"==typeof e&&"string"==typeof t?[t]:void 0===r[e]?[]:Object.keys(r[e])).forEach((function(t){var i=a(e,t),r=Object.keys(i.icons).map((function(n){return(""!==e?"@"+e+":":"")+t+":"+n}));n=n.concat(r)}))})),n}})),a=e((function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.storageFunctions=t.addCollection=t.addIcon=t.getIconData=t.allowSimpleNames=void 0;var n=!1;function a(e){var t="string"==typeof e?r.stringToIcon(e,!0,n):e;return t?o.getIcon(o.getStorage(t.provider,t.prefix),t.name):null}function c(e,t){var i=r.stringToIcon(e,!0,n);if(!i)return!1;var a=o.getStorage(i.provider,i.prefix);return o.addIcon(a,i.name,t)}function u(e,t){if("object"!=typeof e)return!1;if("string"!=typeof t&&(t="string"==typeof e.provider?e.provider:""),n&&""===t&&("string"!=typeof e.prefix||""===e.prefix)){var a=!1;return i.parseIconSet(e,(function(e,t){null!==t&&c(e,t)&&(a=!0)})),a}if("string"!=typeof e.prefix||!r.validateIcon({provider:t,prefix:e.prefix,name:"a"}))return!1;var u=o.getStorage(t,e.prefix);return!!o.addIconSet(u,e)}t.allowSimpleNames=function(e){return"boolean"==typeof e&&(n=e),n},t.getIconData=a,t.addIcon=c,t.addCollection=u,t.storageFunctions={iconExists:function(e){return null!==a(e)},getIcon:function(e){var t=a(e);return t?Object.assign({},t):null},listIcons:o.listIcons,addIcon:c,addCollection:u}})),c=e((function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.replaceIDs=void 0;var n=/\sid="(\S+)"/g,i="([^A-Za-z0-9_-])";var r="IconifyId-"+Date.now().toString(16)+"-"+(16777216*Math.random()|0).toString(16)+"-",o=0;t.replaceIDs=function(e,t){void 0===t&&(t=r);for(var a,c=[];a=n.exec(e);)c.push(a[1]);return c.length?(c.forEach((function(n){var r="function"==typeof t?t():t+o++;e=e.replace(new RegExp(i+"("+(n.replace(/[.*+?^${}()|[\]\\]/g,"\\$&")+")")+i,"g"),"$1"+r+"$3")})),e):e}})),u=e((function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.calculateSize=void 0;var n=/(-?[0-9.]*[0-9]+[0-9.]*)/g,i=/^-?[0-9.]*[0-9]+[0-9.]*$/g;t.calculateSize=function(e,t,r){if(1===t)return e;if(r=void 0===r?100:r,"number"==typeof e)return Math.ceil(e*t*r)/r;if("string"!=typeof e)return e;var o=e.split(n);if(null===o||!o.length)return e;for(var a=[],c=o.shift(),u=i.test(c);;){if(u){var s=parseFloat(c);isNaN(s)?a.push(c):a.push(Math.ceil(s*t*r)/r)}else a.push(c);if(void 0===(c=o.shift()))return a.join("");u=!u}}})),s=e((function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.mergeCustomisations=t.defaults=void 0,t.defaults=Object.freeze({inline:!1,width:null,height:null,hAlign:"center",vAlign:"middle",slice:!1,hFlip:!1,vFlip:!1,rotate:0}),t.mergeCustomisations=function(e,t){var n={};for(var i in e){var r=i;if(n[r]=e[r],void 0!==t[r]){var o=t[r];switch(r){case"inline":case"slice":"boolean"==typeof o&&(n[r]=o);break;case"hFlip":case"vFlip":!0===o&&(n[r]=!n[r]);break;case"hAlign":case"vAlign":"string"==typeof o&&""!==o&&(n[r]=o);break;case"width":case"height":("string"==typeof o&&""!==o||"number"==typeof o&&o||null===o)&&(n[r]=o);break;case"rotate":"number"==typeof o&&(n[r]+=o)}}}return n}})),f=e((function(e,t){function n(e){var t="";switch(e.hAlign){case"left":t+="xMin";break;case"right":t+="xMax";break;default:t+="xMid"}switch(e.vAlign){case"top":t+="YMin";break;case"bottom":t+="YMax";break;default:t+="YMid"}return t+=e.slice?" slice":" meet"}Object.defineProperty(t,"__esModule",{value:!0}),t.iconToSVG=void 0,t.iconToSVG=function(e,t){var i,r,o={left:e.left,top:e.top,width:e.width,height:e.height},a=e.body;[e,t].forEach((function(e){var t,n=[],i=e.hFlip,r=e.vFlip,c=e.rotate;switch(i?r?c+=2:(n.push("translate("+(o.width+o.left)+" "+(0-o.top)+")"),n.push("scale(-1 1)"),o.top=o.left=0):r&&(n.push("translate("+(0-o.left)+" "+(o.height+o.top)+")"),n.push("scale(1 -1)"),o.top=o.left=0),c<0&&(c-=4*Math.floor(c/4)),c%=4){case 1:t=o.height/2+o.top,n.unshift("rotate(90 "+t+" "+t+")");break;case 2:n.unshift("rotate(180 "+(o.width/2+o.left)+" "+(o.height/2+o.top)+")");break;case 3:t=o.width/2+o.left,n.unshift("rotate(-90 "+t+" "+t+")")}c%2==1&&(0===o.left&&0===o.top||(t=o.left,o.left=o.top,o.top=t),o.width!==o.height&&(t=o.width,o.width=o.height,o.height=t)),n.length&&(a='<g transform="'+n.join(" ")+'">'+a+"</g>")})),null===t.width&&null===t.height?(r="1em",i=u.calculateSize(r,o.width/o.height)):null!==t.width&&null!==t.height?(i=t.width,r=t.height):null!==t.height?(r=t.height,i=u.calculateSize(r,o.width/o.height)):(i=t.width,r=u.calculateSize(i,o.height/o.width)),"auto"===i&&(i=o.width),"auto"===r&&(r=o.height);var c={attributes:{width:i="string"==typeof i?i:i+"",height:r="string"==typeof r?r:r+"",preserveAspectRatio:n(t),viewBox:o.left+" "+o.top+" "+o.width+" "+o.height},body:a};return t.inline&&(c.inline=!0),c}})),l=e((function(e,n){Object.defineProperty(n,"__esModule",{value:!0}),n.builderFunctions=void 0,n.builderFunctions={replaceIDs:c.replaceIDs,calculateSize:u.calculateSize,buildIcon:function(e,n){return f.iconToSVG(t.fullIcon(e),s.mergeCustomisations(s.defaults,n))}}})),d="iconifyFinder"+Date.now(),v="iconifyData"+Date.now();function p(e,t,n,i){var r;try{r=document.createElement("span")}catch(e){return i?"":null}var o=f.iconToSVG(n,s.mergeCustomisations(s.defaults,t)),a=e.element,u=e.finder,l=e.name,p=a?a.getAttribute("class"):"",h=u?u.classFilter(p?p.split(/\s+/):[]):[],g='<svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" aria-hidden="true" role="img" class="'+("iconify iconify--"+l.prefix+(""===l.provider?"":" iconify--"+l.provider)+(h.length?" "+h.join(" "):""))+'">'+c.replaceIDs(o.body)+"</svg>";r.innerHTML=g;var m=r.childNodes[0],y=m.style,b=o.attributes;if(Object.keys(b).forEach((function(e){m.setAttribute(e,b[e])})),o.inline&&(y.verticalAlign="-0.125em"),a){for(var I=a.attributes,j=0;j<I.length;j++){var w=I.item(j);if(w){var S=w.name;if("class"!==S&&"style"!==S&&void 0===b[S])try{m.setAttribute(S,w.value)}catch(e){}}}for(var O=a.style,x=0;x<O.length;x++){var E=O[x];y[E]=O[E]}}if(u){var M={name:l,status:"loaded",customisations:t};m[v]=M,m[d]=u}var F=i?r.innerHTML:m;return a&&a.parentNode?a.parentNode.replaceChild(m,a):r.removeChild(m),F}var h=[];function g(e){for(var t=0;t<h.length;t++){var n=h[t];if(("function"==typeof n.node?n.node():n.node)===e)return n}}function m(e,t){void 0===t&&(t=!1);var n=g(e);return n?(n.temporary&&(n.temporary=t),n):(n={node:e,temporary:t},h.push(n),n)}function y(){return h}var b=null,I={childList:!0,subtree:!0,attributes:!0};function j(e){if(e.observer){var t=e.observer;t.pendingScan||(t.pendingScan=setTimeout((function(){delete t.pendingScan,b&&b(e)})))}}function w(e,t){if(e.observer){var n=e.observer;if(!n.pendingScan)for(var i=0;i<t.length;i++){var r=t[i];if(r.addedNodes&&r.addedNodes.length>0||"attributes"===r.type&&void 0!==r.target[d])return void(n.paused||j(e))}}}function S(e,t){e.observer.instance.observe(t,I)}function O(e){var t=e.observer;if(!t||!t.instance){var n="function"==typeof e.node?e.node():e.node;n&&(t||(t={paused:0},e.observer=t),t.instance=new MutationObserver(w.bind(null,e)),S(e,n),t.paused||j(e))}}function x(){y().forEach(O)}function E(e){if(e.observer){var t=e.observer;t.pendingScan&&(clearTimeout(t.pendingScan),delete t.pendingScan),t.instance&&(t.instance.disconnect(),delete t.instance)}}function M(e){var t=null!==b;b!==e&&(b=e,t&&y().forEach(E)),t?x():function(e){var t=document;"complete"===t.readyState||"loading"!==t.readyState&&!t.documentElement.doScroll?e():(t.addEventListener("DOMContentLoaded",e),window.addEventListener("load",e))}(x)}function F(e){(e?[e]:y()).forEach((function(e){if(e.observer){var t=e.observer;if(t.paused++,!(t.paused>1)&&t.instance)t.instance.disconnect()}else e.observer={paused:1}}))}function _(e){(e?[e]:y()).forEach((function(e){if(e.observer){var t=e.observer;if(t.paused&&(t.paused--,!t.paused)){var n="function"==typeof e.node?e.node():e.node;if(!n)return;t.instance?S(e,n):O(e)}}else O(e)}))}function k(e,t){void 0===t&&(t=!1);var n=m(e,t);return O(n),n}function D(e){var t=g(e);t&&(E(t),function(e){h=h.filter((function(t){var n="function"==typeof t.node?t.node():t.node;return e!==n}))}(e))}var A=e((function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.coreModules=void 0,t.coreModules={}})),P=[];function N(e){return"string"==typeof e&&(e=r.stringToIcon(e)),null!==e&&r.validateIcon(e)?e:null}function T(e){var t=[];P.forEach((function(n){var i=n.find(e);Array.prototype.forEach.call(i,(function(e){var i=e;if(void 0===i[d]||i[d]===n){var r=N(n.name(i));if(null!==r){i[d]=n;var o={element:i,finder:n,name:r};t.push(o)}}}))}));var n=e.querySelectorAll("svg.iconify");return Array.prototype.forEach.call(n,(function(e){var n=e,i=n[d],r=n[v];if(i&&r){var o=N(i.name(n));if(null!==o){var a,c=!1;if(o.prefix!==r.name.prefix||o.name!==r.name.name?c=!0:(a=i.customisations(n),function(e,t){var n=Object.keys(e),i=Object.keys(t);if(n.length!==i.length)return!1;for(var r=0;r<n.length;r++){var o=n[r];if(t[o]!==e[o])return!1}return!0}(r.customisations,a)||(c=!0)),c){var u={element:n,finder:i,name:o,customisations:a};t.push(u)}}}})),t}var z=!1;function C(){z||(z=!0,setTimeout((function(){z&&(z=!1,L())})))}function L(e,t){void 0===t&&(t=!1),z=!1;var n=Object.create(null);if((e?[e]:y()).forEach((function(e){var i="function"==typeof e.node?e.node():e.node;if(i&&i.querySelectorAll){var r=!1,a=!1;T(i).forEach((function(t){var i,c,u=t.element,s=t.name,f=s.provider,l=s.prefix,d=s.name,h=u[v];if(void 0!==h&&(i=h.name,c=s,null!==i&&null!==c&&i.name===c.name&&i.prefix===c.prefix))switch(h.status){case"missing":return;case"loading":if(A.coreModules.api&&A.coreModules.api.isPending({provider:f,prefix:l,name:d}))return void(r=!0)}var g=o.getStorage(f,l);if(void 0===g.icons[d]){if(g.missing[d])return h={name:s,status:"missing",customisations:{}},void(u[v]=h);if(A.coreModules.api&&!A.coreModules.api.isPending({provider:f,prefix:l,name:d})){void 0===n[f]&&(n[f]=Object.create(null));var m=n[f];void 0===m[l]&&(m[l]=Object.create(null)),m[l][d]=!0}h={name:s,status:"loading",customisations:{}},u[v]=h,r=!0}else{!a&&e.observer&&(F(e),a=!0);var y=void 0!==t.customisations?t.customisations:t.finder.customisations(u);p(t,y,o.getIcon(g,d))}})),e.temporary&&!r?D(i):t&&r?k(i,!0):a&&e.observer&&_(e)}})),A.coreModules.api){var i=A.coreModules.api;Object.keys(n).forEach((function(e){var t=n[e];Object.keys(t).forEach((function(n){i.loadIcons(Object.keys(t[n]).map((function(t){return{provider:e,prefix:n,name:t}})),C)}))}))}}var V=e((function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.rotateFromString=void 0,t.rotateFromString=function(e){var t=e.replace(/^-?[0-9.]*/,"");function n(e){for(;e<0;)e+=4;return e%4}if(""===t){var i=parseInt(e);return isNaN(i)?0:n(i)}if(t!==e){var r=0;switch(t){case"%":r=25;break;case"deg":r=90}if(r){var o=parseFloat(e.slice(0,e.length-t.length));return isNaN(o)?0:(o/=r)%1==0?n(o):0}}return 0}})),G=e((function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.alignmentFromString=t.flipFromString=void 0;var n=/[\s,]+/;t.flipFromString=function(e,t){t.split(n).forEach((function(t){switch(t.trim()){case"horizontal":e.hFlip=!0;break;case"vertical":e.vFlip=!0}}))},t.alignmentFromString=function(e,t){t.split(n).forEach((function(t){var n=t.trim();switch(n){case"left":case"center":case"right":e.hAlign=n;break;case"top":case"middle":case"bottom":e.vAlign=n;break;case"slice":case"crop":e.slice=!0;break;case"meet":e.slice=!1}}))}}));function $(e,t){return e.hasAttribute(t)}function q(e,t){return e.getAttribute(t)}var H=["inline","hFlip","vFlip"],Y=["width","height"],R="iconify-inline",B={find:function(e){return e.querySelectorAll("i.iconify, span.iconify, i.iconify-inline, span.iconify-inline")},name:function(e){return $(e,"data-icon")?q(e,"data-icon"):null},customisations:function(e,t){void 0===t&&(t={inline:!1});var n=t,i=e.getAttribute("class");if(-1!==(i?i.split(/\s+/):[]).indexOf(R)&&(n.inline=!0),$(e,"data-rotate")){var r=V.rotateFromString(q(e,"data-rotate"));r&&(n.rotate=r)}return $(e,"data-flip")&&G.flipFromString(n,q(e,"data-flip")),$(e,"data-align")&&G.alignmentFromString(n,q(e,"data-align")),H.forEach((function(t){if($(e,"data-"+t)){var i=function(e,t){var n=e.getAttribute(t);return n===t||"true"===n||""!==n&&"false"!==n&&null}(e,"data-"+t);"boolean"==typeof i&&(n[t]=i)}})),Y.forEach((function(t){if($(e,"data-"+t)){var i=q(e,"data-"+t);""!==i&&(n[t]=i)}})),n},classFilter:function(e){var t=[];return e.forEach((function(e){"iconify"!==e&&""!==e&&"iconify--"!==e.slice(0,9)&&t.push(e)})),t}};function Z(e,t,n){var i=a.getIconData(e);return i?p({name:r.stringToIcon(e)},s.mergeCustomisations(s.defaults,"object"==typeof t?t:{}),i,n):null}var J={getVersion:function(){return"2.0.4"},renderSVG:function(e,t){return Z(e,t,!1)},renderHTML:function(e,t){return Z(e,t,!0)},renderIcon:function(e,t){var n=a.getIconData(e);if(!n)return null;var i=s.mergeCustomisations(s.defaults,"object"==typeof t?t:{});return f.iconToSVG(n,i)},scan:function(e){e?function(e){var t=g(e);t?L(t):L({node:e,temporary:!0},!0)}(e):L()},observe:function(e){k(e)},stopObserving:function(e){D(e)},pauseObserver:function(e){if(e){var t=g(e);t&&F(t)}else F()},resumeObserver:function(e){if(e){var t=g(e);t&&_(t)}else _()}};if("undefined"!=typeof document&&"undefined"!=typeof window){!function(){if(document.documentElement)return m(document.documentElement);h.push({node:function(){return document.documentElement}})}(),function(e){-1===P.indexOf(e)&&P.push(e)}(B);var K=window;if(void 0!==K.IconifyPreload){var Q=K.IconifyPreload,U="Invalid IconifyPreload syntax.";"object"==typeof Q&&null!==Q&&(Q instanceof Array?Q:[Q]).forEach((function(e){try{("object"!=typeof e||null===e||e instanceof Array||"object"!=typeof e.icons||"string"!=typeof e.prefix||!a.storageFunctions.addCollection(e))&&console.error(U)}catch(e){console.error(U)}}))}setTimeout((function(){M(L),L()}))}var W={};return[a.storageFunctions,l.builderFunctions,J].forEach((function(e){for(var t in e)W[t]=e[t]})),W}();try{void 0===self.Iconify&&(self.Iconify=Iconify)}catch(e){}if("object"==typeof exports)try{exports.__esModule=!0,exports.default=Iconify}catch(e){} |
@@ -14,8 +14,8 @@ import { IconifyIconCustomisations } from '@iconify/utils/lib/customisations'; | ||
*/ | ||
renderSVG: (name: string, customisations: IconifyIconCustomisations) => SVGElement | null; | ||
renderHTML: (name: string, customisations: IconifyIconCustomisations) => string | null; | ||
renderSVG: (name: string, customisations?: IconifyIconCustomisations) => SVGElement | null; | ||
renderHTML: (name: string, customisations?: IconifyIconCustomisations) => string | null; | ||
/** | ||
* Get icon data | ||
*/ | ||
renderIcon: (name: string, customisations: IconifyIconCustomisations) => IconifyIconBuildResult | null; | ||
renderIcon: (name: string, customisations?: IconifyIconCustomisations) => IconifyIconBuildResult | null; | ||
/** | ||
@@ -22,0 +22,0 @@ * Scan DOM |
@@ -23,3 +23,3 @@ import { stringToIcon } from '@iconify/utils/lib/icon/name'; | ||
// Clean up customisations | ||
const changes = mergeCustomisations(defaults, customisations); | ||
const changes = mergeCustomisations(defaults, typeof customisations === 'object' ? customisations : {}); | ||
// Get data | ||
@@ -40,3 +40,3 @@ return iconToSVG(iconData, changes); | ||
// Clean up customisations | ||
const changes = mergeCustomisations(defaults, customisations); | ||
const changes = mergeCustomisations(defaults, typeof customisations === 'object' ? customisations : {}); | ||
// Get data | ||
@@ -43,0 +43,0 @@ return renderIcon({ |
@@ -5,3 +5,3 @@ { | ||
"author": "Vjacheslav Trushkin <cyberalien@gmail.com> (https://iconify.design)", | ||
"version": "2.0.3", | ||
"version": "2.0.4", | ||
"license": "(Apache-2.0 OR GPL-2.0)", | ||
@@ -8,0 +8,0 @@ "main": "./dist/iconify.min.js", |
@@ -6,3 +6,3 @@ # What is Iconify? | ||
- Unified icon framework that can be used with any icon library. | ||
- Out of the box includes 90+ icon sets with more than 80,000 icons. | ||
- Out of the box includes 100+ icon sets with more than 100,000 icons. | ||
- Embed icons in HTML with SVG framework or components for front-end frameworks. | ||
@@ -25,3 +25,3 @@ - Embed icons in designs with plug-ins for Figma, Sketch and Adobe XD. | ||
```html | ||
<script src="https://code.iconify.design/2/2.0.3/iconify.min.js"></script> | ||
<script src="https://code.iconify.design/2/2.0.4/iconify.min.js"></script> | ||
``` | ||
@@ -32,3 +32,3 @@ | ||
```html | ||
<script src="https://cdn.jsdelivr.net/npm/@iconify/iconify@2.0.3/dist/iconify.min.js"></script> | ||
<script src="https://cdn.jsdelivr.net/npm/@iconify/iconify@2.0.4/dist/iconify.min.js"></script> | ||
``` | ||
@@ -59,3 +59,3 @@ | ||
That is it. Change `data-icon` value to the name of the icon you want to use. There are over 80,000 premade icons to choose from, including FontAwesome, Material Design Icons, Tabler Icons, Box Icons, Unicons, Bootstrap Icons and even several emoji sets. | ||
That is it. Change `data-icon` value to the name of the icon you want to use. There are over 100,000 premade icons to choose from, including FontAwesome, Material Design Icons, Tabler Icons, Box Icons, Unicons, Bootstrap Icons and even several emoji sets. | ||
@@ -287,16 +287,16 @@ Do you want to make your own icon sets? Everything you need is [available on GitHub](https://github.com/iconify): tools for creating custom icon sets, Iconify API application and documentation to help you. | ||
There are over 70,000 icons to choose from. | ||
There are over 100,000 icons to choose from. | ||
General collections (monotone icons): | ||
- [Material Design Icons](https://iconify.design/icon-sets/mdi/) (5000+ icons) | ||
- [Unicons](https://iconify.design/icon-sets/uil/) (1000+ icons) | ||
- [Jam Icons](https://iconify.design/icon-sets/jam/) (900 icons) | ||
- [IonIcons](https://iconify.design/icon-sets/ion/) (1200+ icons) | ||
- [FontAwesome 4](https://iconify.design/icon-sets/fa/) and [FontAwesome 5](https://iconify.design/icon-sets/fa-solid/) (2000+ icons) | ||
- [Vaadin Icons](https://iconify.design/icon-sets/vaadin/) (600+ icons) | ||
- [Bootstrap Icons](https://iconify.design/icon-sets/bi/) (500+ icons) | ||
- [Feather Icons](https://iconify.design/icon-sets/feather/) and [Feather Icon](https://iconify.design/icon-sets/fe/) (500+ icons) | ||
- [IcoMoon Free](https://iconify.design/icon-sets/icomoon-free/) (400+ icons) | ||
- [Dashicons](https://iconify.design/icon-sets/dashicons/) (300 icons) | ||
- [Material Design Icons](https://icon-sets.iconify.design/mdi/) (5000+ icons) | ||
- [Unicons](https://icon-sets.iconify.design/uil/) (1000+ icons) | ||
- [Jam Icons](https://icon-sets.iconify.design/jam/) (900 icons) | ||
- [IonIcons](https://icon-sets.iconify.design/ion/) (1200+ icons) | ||
- [FontAwesome 4](https://icon-sets.iconify.design/fa/) and [FontAwesome 5](https://icon-sets.iconify.design/fa-solid/) (2000+ icons) | ||
- [Vaadin Icons](https://icon-sets.iconify.design/vaadin/) (600+ icons) | ||
- [Bootstrap Icons](https://icon-sets.iconify.design/bi/) (500+ icons) | ||
- [Feather Icons](https://icon-sets.iconify.design/feather/) and [Feather Icon](https://icon-sets.iconify.design/fe/) (500+ icons) | ||
- [IcoMoon Free](https://icon-sets.iconify.design/icomoon-free/) (400+ icons) | ||
- [Dashicons](https://icon-sets.iconify.design/dashicons/) (300 icons) | ||
@@ -307,11 +307,11 @@ and many others. | ||
- [Emoji One](https://iconify.design/icon-sets/emojione/) (1800+ colored version 2 icons, 1400+ monotone version 2 icons, 1200+ version 1 icons) | ||
- [OpenMoji](https://iconify.design/icon-sets/openmoji/) (3500+ icons) | ||
- [Noto Emoji](https://iconify.design/icon-sets/noto/) (2000+ icons for version 2, 2000+ icons for version 1) | ||
- [Twitter Emoji](https://iconify.design/icon-sets/twemoji/) (2000+ icons) | ||
- [Firefox OS Emoji](https://iconify.design/icon-sets/fxemoji/) (1000+ icons) | ||
- [Emoji One](https://icon-sets.iconify.design/emojione/) (1800+ colored version 2 icons, 1400+ monotone version 2 icons, 1200+ version 1 icons) | ||
- [OpenMoji](https://icon-sets.iconify.design/openmoji/) (3500+ icons) | ||
- [Noto Emoji](https://icon-sets.iconify.design/noto/) (2000+ icons for version 2, 2000+ icons for version 1) | ||
- [Twitter Emoji](https://icon-sets.iconify.design/twemoji/) (2000+ icons) | ||
- [Firefox OS Emoji](https://icon-sets.iconify.design/fxemoji/) (1000+ icons) | ||
Also, there are several thematic collections, such as weather icons, map icons, etc. | ||
You can use browse or search available icons on the Iconify website: https://iconify.design/icon-sets/ | ||
You can use browse or search available icons on the Iconify website: https://icon-sets.iconify.design/ | ||
@@ -318,0 +318,0 @@ Click an icon to get HTML code. |
Sorry, the diff of this file is too big to display
334443