| 123456789101112 |
- /**
- * (c) Iconify
- *
- * For the full copyright and license information, please view the license.txt or license.gpl.txt
- * files at https://github.com/iconify/iconify
- *
- * Licensed under MIT.
- *
- * @license MIT
- * @version 3.1.0
- */
- var Iconify=function(e){"use strict";var n=Object.freeze({left:0,top:0,width:16,height:16}),t=Object.freeze({rotate:0,vFlip:!1,hFlip:!1}),r=Object.freeze(Object.assign({},n,t)),i=Object.freeze(Object.assign({},r,{body:"",hidden:!1}));function o(e,n){var r=function(e,n){var t={};!e.hFlip!=!n.hFlip&&(t.hFlip=!0),!e.vFlip!=!n.vFlip&&(t.vFlip=!0);var r=((e.rotate||0)+(n.rotate||0))%4;return r&&(t.rotate=r),t}(e,n);for(var o in i)o in t?o in e&&!(o in r)&&(r[o]=t[o]):o in n?r[o]=n[o]:o in e&&(r[o]=e[o]);return r}function a(e,n,t){var r=e.icons,i=e.aliases||Object.create(null),a={};function c(e){a=o(r[e]||i[e],a)}return c(n),t.forEach(c),o(e,a)}function c(e,n){var t=[];if("object"!=typeof e||"object"!=typeof e.icons)return t;e.not_found instanceof Array&&e.not_found.forEach((function(e){n(e,null),t.push(e)}));var r=function(e,n){var t=e.icons,r=e.aliases||Object.create(null),i=Object.create(null);return(n||Object.keys(t).concat(Object.keys(r))).forEach((function e(n){if(t[n])return i[n]=[];if(!(n in i)){i[n]=null;var o=r[n]&&r[n].parent,a=o&&e(o);a&&(i[n]=[o].concat(a))}return i[n]})),i}(e);for(var i in r){var o=r[i];o&&(n(i,a(e,i,o)),t.push(i))}return t}var u=/^[a-z0-9]+(-[a-z0-9]+)*$/,f=function(e,n,t,r){void 0===r&&(r="");var i=e.split(":");if("@"===e.slice(0,1)){if(i.length<2||i.length>3)return null;r=i.shift().slice(1)}if(i.length>3||!i.length)return null;if(i.length>1){var o=i.pop(),a=i.pop(),c={provider:i.length>0?i[0]:r,prefix:a,name:o};return n&&!s(c)?null:c}var u=i[0],f=u.split("-");if(f.length>1){var d={provider:r,prefix:f.shift(),name:f.join("-")};return n&&!s(d)?null:d}if(t&&""===r){var l={provider:r,prefix:"",name:u};return n&&!s(l,t)?null:l}return null},s=function(e,n){return!!e&&!(""!==e.provider&&!e.provider.match(u)||!(n&&""===e.prefix||e.prefix.match(u))||!e.name.match(u))},d=Object.assign({},{provider:"",aliases:{},not_found:{}},n);function l(e,n){for(var t in n)if(t in e&&typeof e[t]!=typeof n[t])return!1;return!0}function v(e){if("object"!=typeof e||null===e)return null;var n=e;if("string"!=typeof n.prefix||!e.icons||"object"!=typeof e.icons)return null;if(!l(e,d))return null;var t=n.icons;for(var r in t){var o=t[r];if(!r.match(u)||"string"!=typeof o.body||!l(o,i))return null}var a=n.aliases||Object.create(null);for(var c in a){var f=a[c],s=f.parent;if(!c.match(u)||"string"!=typeof s||!t[s]&&!a[s]||!l(f,i))return null}return n}var p=Object.create(null);function g(e,n){var t=p[e]||(p[e]=Object.create(null));return t[n]||(t[n]=function(e,n){return{provider:e,prefix:n,icons:Object.create(null),missing:new Set}}(e,n))}function h(e,n){return v(n)?c(n,(function(n,t){t?e.icons[n]=t:e.missing.add(n)})):[]}function b(e,n){var t=[];return("string"==typeof e?[e]:Object.keys(p)).forEach((function(e){("string"==typeof e&&"string"==typeof n?[n]:Object.keys(p[e]||{})).forEach((function(n){var r=g(e,n);t=t.concat(Object.keys(r.icons).map((function(t){return(""!==e?"@"+e+":":"")+n+":"+t})))}))})),t}var m=!1;function y(e){var n="string"==typeof e?f(e,!0,m):e;if(n){var t=g(n.provider,n.prefix),r=n.name;return t.icons[r]||(t.missing.has(r)?null:void 0)}}function x(e,n){var t=f(e,!0,m);return!!t&&function(e,n,t){try{if("string"==typeof t.body)return e.icons[n]=Object.assign({},t),!0}catch(e){}return!1}(g(t.provider,t.prefix),t.name,n)}function j(e,n){if("object"!=typeof e)return!1;if("string"!=typeof n&&(n=e.provider||""),m&&!n&&!e.prefix){var t=!1;return v(e)&&(e.prefix="",c(e,(function(e,n){n&&x(e,n)&&(t=!0)}))),t}var r=e.prefix;return!!s({provider:n,prefix:r,name:"a"})&&!!h(g(n,r),e)}function O(e){return!!y(e)}function w(e){var n=y(e);return n?Object.assign({},r,n):null}var S=Object.freeze({width:null,height:null}),E=Object.freeze(Object.assign({},S,t)),k=/(-?[0-9.]*[0-9]+[0-9.]*)/g,I=/^-?[0-9.]*[0-9]+[0-9.]*$/g;function C(e,n,t){if(1===n)return e;if(t=t||100,"number"==typeof e)return Math.ceil(e*n*t)/t;if("string"!=typeof e)return e;var r=e.split(k);if(null===r||!r.length)return e;for(var i=[],o=r.shift(),a=I.test(o);;){if(a){var c=parseFloat(o);isNaN(c)?i.push(o):i.push(Math.ceil(c*n*t)/t)}else i.push(o);if(void 0===(o=r.shift()))return i.join("");a=!a}}function M(e,n){var t=Object.assign({},r,e),i=Object.assign({},E,n),o={left:t.left,top:t.top,width:t.width,height:t.height},a=t.body;[t,i].forEach((function(e){var n,t=[],r=e.hFlip,i=e.vFlip,c=e.rotate;switch(r?i?c+=2:(t.push("translate("+(o.width+o.left).toString()+" "+(0-o.top).toString()+")"),t.push("scale(-1 1)"),o.top=o.left=0):i&&(t.push("translate("+(0-o.left).toString()+" "+(o.height+o.top).toString()+")"),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.toString()+" "+n.toString()+")");break;case 2:t.unshift("rotate(180 "+(o.width/2+o.left).toString()+" "+(o.height/2+o.top).toString()+")");break;case 3:n=o.width/2+o.left,t.unshift("rotate(-90 "+n.toString()+" "+n.toString()+")")}c%2==1&&(o.left!==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>")}));var c,u,f=i.width,s=i.height,d=o.width,l=o.height;null===f?c=C(u=null===s?"1em":"auto"===s?l:s,d/l):(c="auto"===f?d:f,u=null===s?C(c,l/d):"auto"===s?l:s);var v={},p=function(e,n){(function(e){return"unset"===e||"undefined"===e||"none"===e})(n)||(v[e]=n.toString())};return p("width",c),p("height",u),v.viewBox=o.left.toString()+" "+o.top.toString()+" "+d.toString()+" "+l.toString(),{attributes:v,body:a}}var T=/\sid="(\S+)"/g,F="IconifyId"+Date.now().toString(16)+(16777216*Math.random()|0).toString(16),L=0;function A(e,n){void 0===n&&(n=F);for(var t,r=[];t=T.exec(e);)r.push(t[1]);if(!r.length)return e;var i="suffix"+(16777216*Math.random()|Date.now()).toString(16);return r.forEach((function(t){var r="function"==typeof n?n(t):n+(L++).toString(),o=t.replace(/[.*+?^${}()|[\]\\]/g,"\\$&");e=e.replace(new RegExp('([#;"])('+o+')([")]|\\.[a-z])',"g"),"$1"+r+i+"$3")})),e=e.replace(new RegExp(i,"g"),"")}function N(e,n){var t=Object.assign({},e);for(var r in n){var i=n[r],o=typeof i;r in S?(null===i||i&&("string"===o||"number"===o))&&(t[r]=i):o===typeof t[r]&&(t[r]="rotate"===r?i%4:i)}return t}var z=Object.assign({},E,{inline:!1}),D="iconify-inline",_="iconifyData"+Date.now(),P=[];function $(e){for(var n=0;n<P.length;n++){var t=P[n];if(("function"==typeof t.node?t.node():t.node)===e)return t}}function q(e,n){void 0===n&&(n=!1);var t=$(e);return t?(t.temporary&&(t.temporary=n),t):(t={node:e,temporary:n},P.push(t),t)}function V(){return P}var H=null,R={childList:!0,subtree:!0,attributes:!0};function G(e){if(e.observer){var n=e.observer;n.pendingScan||(n.pendingScan=setTimeout((function(){delete n.pendingScan,H&&H(e)})))}}function Q(e,n){if(e.observer){var t=e.observer;if(!t.pendingScan)for(var r=0;r<n.length;r++){var i=n[r];if(i.addedNodes&&i.addedNodes.length>0||"attributes"===i.type&&void 0!==i.target[_])return void(t.paused||G(e))}}}function U(e,n){e.observer.instance.observe(n,R)}function J(e){var n=e.observer;if(!n||!n.instance){var t="function"==typeof e.node?e.node():e.node;t&&window&&(n||(n={paused:0},e.observer=n),n.instance=new window.MutationObserver(Q.bind(null,e)),U(e,t),n.paused||G(e))}}function B(){V().forEach(J)}function K(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 W(e){var n=null!==H;H!==e&&(H=e,n&&V().forEach(K)),n?B():function(e){var n=document;n.readyState&&"loading"!==n.readyState?e():n.addEventListener("DOMContentLoaded",e)}(B)}function X(e){(e?[e]:V()).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 Y(e){if(e){var n=$(e);n&&X(n)}else X()}function Z(e){(e?[e]:V()).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?U(e,t):J(e)}}else J(e)}))}function ee(e){if(e){var n=$(e);n&&Z(n)}else Z()}function ne(e,n){void 0===n&&(n=!1);var t=q(e,n);return J(t),t}function te(e){var n=$(e);n&&(K(n),function(e){P=P.filter((function(n){return e!==n&&e!==("function"==typeof n.node?n.node():n.node)}))}(e))}function re(e,n){e.forEach((function(e){var t=e.loaderCallbacks;t&&(e.loaderCallbacks=t.filter((function(e){return e.id!==n})))}))}var ie=0;var oe=Object.create(null);function ae(e){return oe[e]||oe[""]}var ce={resources:[],index:0,timeout:2e3,rotate:750,random:!1,dataAfterTimeout:!1};function ue(e,n,t,r){var i,o=e.resources.length,a=e.random?Math.floor(Math.random()*o):e.index;if(e.random){var c=e.resources.slice(0);for(i=[];c.length>1;){var u=Math.floor(Math.random()*c.length);i.push(c[u]),c=c.slice(0,u).concat(c.slice(u+1))}i=i.concat(c)}else i=e.resources.slice(a).concat(e.resources.slice(0,a));var f,s=Date.now(),d="pending",l=0,v=null,p=[],g=[];function h(){v&&(clearTimeout(v),v=null)}function b(){"pending"===d&&(d="aborted"),h(),p.forEach((function(e){"pending"===e.status&&(e.status="aborted")})),p=[]}function m(e,n){n&&(g=[]),"function"==typeof e&&g.push(e)}function y(){d="failed",g.forEach((function(e){e(void 0,f)}))}function x(){p.forEach((function(e){"pending"===e.status&&(e.status="aborted")})),p=[]}function j(){if("pending"===d){h();var r=i.shift();if(void 0===r)return p.length?void(v=setTimeout((function(){h(),"pending"===d&&(x(),y())}),e.timeout)):void y();var o={status:"pending",resource:r,callback:function(n,t){!function(n,t,r){var o="success"!==t;switch(p=p.filter((function(e){return e!==n})),d){case"pending":break;case"failed":if(o||!e.dataAfterTimeout)return;break;default:return}if("abort"===t)return f=r,void y();if(o)return f=r,void(p.length||(i.length?j():y()));if(h(),x(),!e.random){var a=e.resources.indexOf(n.resource);-1!==a&&a!==e.index&&(e.index=a)}d="completed",g.forEach((function(e){e(r)}))}(o,n,t)}};p.push(o),l++,v=setTimeout(j,e.rotate),t(r,n,o.callback)}}return"function"==typeof r&&g.push(r),setTimeout(j),function(){return{startTime:s,payload:n,status:d,queriesSent:l,queriesPending:p.length,subscribe:m,abort:b}}}function fe(e){var n=Object.assign({},ce,e),t=[];function r(){t=t.filter((function(e){return"pending"===e().status}))}var i={query:function(e,i,o){var a=ue(n,e,i,(function(e,n){r(),o&&o(e,n)}));return t.push(a),a},find:function(e){return t.find((function(n){return e(n)}))||null},setIndex:function(e){n.index=e},getIndex:function(){return n.index},cleanup:r};return i}function se(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:e.path||"/",maxURL:e.maxURL||500,rotate:e.rotate||750,timeout:e.timeout||5e3,random:!0===e.random,index:e.index||0,dataAfterTimeout:!1!==e.dataAfterTimeout}}for(var de=Object.create(null),le=["https://api.simplesvg.com","https://api.unisvg.com"],ve=[];le.length>0;)1===le.length||Math.random()>.5?ve.push(le.shift()):ve.push(le.pop());function pe(){}de[""]=se({resources:["https://api.iconify.design"].concat(ve)});var ge=Object.create(null);function he(e){if(!ge[e]){var n=function(e){return de[e]}(e);if(!n)return;var t={config:n,redundancy:fe(n)};ge[e]=t}return ge[e]}var be="iconify2",me="iconify",ye="iconify-count",xe="iconify-version",je=36e5;function Oe(e,n){try{return e.getItem(n)}catch(e){}}function we(e,n,t){try{return e.setItem(n,t),!0}catch(e){}}function Se(e,n){try{e.removeItem(n)}catch(e){}}function Ee(e,n){return we(e,ye,n.toString())}function ke(e){return parseInt(Oe(e,ye))||0}var Ie={local:!0,session:!0},Ce={local:new Set,session:new Set},Me=!1;var Te="undefined"==typeof window?{}:window;function Fe(e){var n=e+"Storage";try{if(Te&&Te[n]&&"number"==typeof Te[n].length)return Te[n]}catch(e){}Ie[e]=!1}function Le(e,n){var t=Fe(e);if(t){var r=Oe(t,xe);if(r!==be){if(r)for(var i=ke(t),o=0;o<i;o++)Se(t,me+o.toString());return we(t,xe,be),void Ee(t,0)}for(var a=Math.floor(Date.now()/je)-168,c=function(e){var r=me+e.toString(),i=Oe(t,r);if("string"==typeof i){try{var o=JSON.parse(i);if("object"==typeof o&&"number"==typeof o.cached&&o.cached>a&&"string"==typeof o.provider&&"object"==typeof o.data&&"string"==typeof o.data.prefix&&n(o,e))return!0}catch(e){}Se(t,r)}},u=ke(t),f=u-1;f>=0;f--)c(f)||(f===u-1?(u--,Ee(t,u)):Ce[e].add(f))}}function Ae(){if(!Me)for(var e in Me=!0,Ie)Le(e,(function(e){var n=e.data,t=g(e.provider,n.prefix);if(!h(t,n).length)return!1;var r=n.lastModified||-1;return t.lastModifiedCached=t.lastModifiedCached?Math.min(t.lastModifiedCached,r):r,!0}))}function Ne(e,n){function t(t){var r;if(Ie[t]&&(r=Fe(t))){var i,o=Ce[t];if(o.size)o.delete(i=Array.from(o).shift());else if(!Ee(r,(i=ke(r))+1))return;var a={cached:Math.floor(Date.now()/je),provider:e.provider,data:n};return we(r,me+i.toString(),JSON.stringify(a))}}Me||Ae(),n.lastModified&&!function(e,n){var t=e.lastModifiedCached;if(t&&t>=n)return t===n;if(e.lastModifiedCached=n,t)for(var r in Ie)Le(r,(function(t){var r=t.data;return t.provider!==e.provider||r.prefix!==e.prefix||r.lastModified===n}));return!0}(e,n.lastModified)||Object.keys(n.icons).length&&(n.not_found&&delete(n=Object.assign({},n)).not_found,t("local")||t("session"))}function ze(){}function De(e){e.iconsLoaderFlag||(e.iconsLoaderFlag=!0,setTimeout((function(){e.iconsLoaderFlag=!1,function(e){e.pendingCallbacksFlag||(e.pendingCallbacksFlag=!0,setTimeout((function(){e.pendingCallbacksFlag=!1;var n=e.loaderCallbacks?e.loaderCallbacks.slice(0):[];if(n.length){var t=!1,r=e.provider,i=e.prefix;n.forEach((function(n){var o=n.icons,a=o.pending.length;o.pending=o.pending.filter((function(n){if(n.prefix!==i)return!0;var a=n.name;if(e.icons[a])o.loaded.push({provider:r,prefix:i,name:a});else{if(!e.missing.has(a))return t=!0,!0;o.missing.push({provider:r,prefix:i,name:a})}return!1})),o.pending.length!==a&&(t||re([e],n.id),n.callback(o.loaded.slice(0),o.missing.slice(0),o.pending.slice(0),n.abort))}))}})))}(e)})))}function _e(e,n){e.iconsToLoad?e.iconsToLoad=e.iconsToLoad.concat(n).sort():e.iconsToLoad=n,e.iconsQueueFlag||(e.iconsQueueFlag=!0,setTimeout((function(){e.iconsQueueFlag=!1;var n,t=e.provider,r=e.prefix,i=e.iconsToLoad;(delete e.iconsToLoad,i&&(n=ae(t)))&&n.prepare(t,r,i).forEach((function(n){!function(e,n,t){var r,i;if("string"==typeof e){var o=ae(e);if(!o)return t(void 0,424),pe;i=o.send;var a=he(e);a&&(r=a.redundancy)}else{var c=se(e);if(c){r=fe(c);var u=ae(e.resources?e.resources[0]:"");u&&(i=u.send)}}r&&i?r.query(n,i,t)().abort:t(void 0,424)}(t,n,(function(t){if("object"!=typeof t)n.icons.forEach((function(n){e.missing.add(n)}));else try{var r=h(e,t);if(!r.length)return;var i=e.pendingIcons;i&&r.forEach((function(e){i.delete(e)})),Ne(e,t)}catch(e){console.error(e)}De(e)}))}))})))}var Pe=function(e,n){var t,r=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?f(e,n,t):e;i&&r.push(i)})),r}(e,!0,("boolean"==typeof t&&(m=t),m)),i=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 i=e.provider,o=e.prefix,a=e.name,c=t[i]||(t[i]=Object.create(null)),u=c[o]||(c[o]=g(i,o)),f={provider:i,prefix:o,name:a};(a in u.icons?n.loaded:""===o||u.missing.has(a)?n.missing:n.pending).push(f)}})),n}(r);if(!i.pending.length){var o=!0;return n&&setTimeout((function(){o&&n(i.loaded,i.missing,i.pending,ze)})),function(){o=!1}}var a,c,u=Object.create(null),s=[];return i.pending.forEach((function(e){var n=e.provider,t=e.prefix;if(t!==c||n!==a){a=n,c=t,s.push(g(n,t));var r=u[n]||(u[n]=Object.create(null));r[t]||(r[t]=[])}})),i.pending.forEach((function(e){var n=e.provider,t=e.prefix,r=e.name,i=g(n,t),o=i.pendingIcons||(i.pendingIcons=new Set);o.has(r)||(o.add(r),u[n][t].push(r))})),s.forEach((function(e){var n=e.provider,t=e.prefix;u[n][t].length&&_e(e,u[n][t])})),n?function(e,n,t){var r=ie++,i=re.bind(null,t,r);if(!n.pending.length)return i;var o={id:r,icons:n,callback:e,abort:i};return t.forEach((function(e){(e.loaderCallbacks||(e.loaderCallbacks=[])).push(o)})),i}(n,i,s):ze};var $e=/[\s,]+/;var qe=["width","height"],Ve=["inline","hFlip","vFlip"];function He(e){var n=e.getAttribute("data-icon"),t="string"==typeof n&&f(n,!0);if(!t)return null;var r=Object.assign({},z,{inline:e.classList&&e.classList.contains(D)});qe.forEach((function(n){var t=e.getAttribute("data-"+n);t&&(r[n]=t)}));var i=e.getAttribute("data-rotate");"string"==typeof i&&(r.rotate=function(e,n){void 0===n&&(n=0);var t=e.replace(/^-?[0-9.]*/,"");function r(e){for(;e<0;)e+=4;return e%4}if(""===t){var i=parseInt(e);return isNaN(i)?0:r(i)}if(t!==e){var o=0;switch(t){case"%":o=25;break;case"deg":o=90}if(o){var a=parseFloat(e.slice(0,e.length-t.length));return isNaN(a)?0:(a/=o)%1==0?r(a):0}}return n}(i));var o=e.getAttribute("data-flip");"string"==typeof o&&function(e,n){n.split($e).forEach((function(n){switch(n.trim()){case"horizontal":e.hFlip=!0;break;case"vertical":e.vFlip=!0}}))}(r,o),Ve.forEach((function(n){var t="data-"+n,i=function(e,n){return e===n||"true"===e||""!==e&&"false"!==e&&null}(e.getAttribute(t),t);"boolean"==typeof i&&(r[n]=i)}));var a=e.getAttribute("data-mode");return{name:n,icon:t,customisations:r,mode:a}}function Re(e,n){var t=-1===e.indexOf("xlink:")?"":' xmlns:xlink="http://www.w3.org/1999/xlink"';for(var r in n)t+=" "+r+'="'+n[r]+'"';return'<svg xmlns="http://www.w3.org/2000/svg"'+t+">"+e+"</svg>"}function Ge(e){var n=new Set(["iconify"]);return["provider","prefix"].forEach((function(t){e[t]&&n.add("iconify--"+e[t])})),n}function Qe(e,n,t,r){var i=e.classList;if(r){var o=r.classList;Array.from(o).forEach((function(e){i.add(e)}))}var a=[];return n.forEach((function(e){i.contains(e)?t.has(e)&&a.push(e):(i.add(e),a.push(e))})),t.forEach((function(e){n.has(e)||i.remove(e)})),a}function Ue(e,n,t){var r=e.style;(t||[]).forEach((function(e){r.removeProperty(e)}));var i=[];for(var o in n)r.getPropertyValue(o)||(i.push(o),r.setProperty(o,n[o]));return i}function Je(e,n,t){var r;try{r=document.createElement("span")}catch(n){return e}var i=n.customisations,o=M(t,i),a=e[_],c=Re(A(o.body),Object.assign({},{"aria-hidden":"true",role:"img"},o.attributes));r.innerHTML=c;for(var u=r.childNodes[0],f=e.attributes,s=0;s<f.length;s++){var d=f.item(s),l=d.name;"class"===l||u.hasAttribute(l)||u.setAttribute(l,d.value)}var v=Qe(u,Ge(n.icon),new Set(a&&a.addedClasses),e),p=Ue(u,i.inline?{"vertical-align":"-0.125em"}:{},a&&a.addedStyles),g=Object.assign({},n,{status:"loaded",addedClasses:v,addedStyles:p});return u[_]=g,e.parentNode&&e.parentNode.replaceChild(u,e),u}var Be={display:"inline-block"},Ke={"background-color":"currentColor"},We={"background-color":"transparent"},Xe={image:"var(--svg)",repeat:"no-repeat",size:"100% 100%"},Ye={"-webkit-mask":Ke,mask:Ke,background:We};for(var Ze in Ye){var en=Ye[Ze];for(var nn in Xe)en[Ze+"-"+nn]=Xe[nn]}function tn(e){return e+(e.match(/^[-0-9.]+$/)?"px":"")}var rn=!1;function on(){rn||(rn=!0,setTimeout((function(){rn&&(rn=!1,an())})))}function an(e,n){void 0===n&&(n=!1);var t=Object.create(null);function i(e,n){var r=e.provider,i=e.prefix,o=e.name,a=g(r,i),c=a.icons[o];if(c)return{status:"loaded",icon:c};if(a.missing.has(o))return{status:"missing"};if(n&&!function(e){var n=g(e.provider,e.prefix).pendingIcons;return!(!n||!n.has(e.name))}(e)){var u=t[r]||(t[r]=Object.create(null));(u[i]||(u[i]=new Set)).add(o)}return{status:"loading"}}(e?[e]:V()).forEach((function(e){var t="function"==typeof e.node?e.node():e.node;if(t&&t.querySelectorAll){var o=!1,a=!1;(function(e){var n=[];return e.querySelectorAll("svg.iconify, i.iconify, span.iconify, i.iconify-inline, span.iconify-inline").forEach((function(e){var t=e[_]||"svg"!==e.tagName.toLowerCase()?He(e):null;t&&n.push({node:e,props:t})})),n})(t).forEach((function(e){var n,t=e.node,r=e.props,a=t[_];if(!a){var u=i(r.icon,!0),f=u.status,s=u.icon;return s?void c(t,r,s):(o=o||"loading"===f,void(t[_]=Object.assign({},r,{status:f})))}if(function(e,n){if(e.name!==n.name||e.mode!==n.mode)return!0;var t=e.customisations,r=n.customisations;for(var i in z)if(t[i]!==r[i])return!0;return!1}(a,r)){if(!(n=i(r.icon,a.name!==r.name)).icon)return o=o||"loading"===n.status,void Object.assign(a,Object.assign({},r,{status:n.status}))}else{if("loading"!==a.status)return;if(!(n=i(r.icon,!1)).icon)return void(a.status=n.status)}c(t,r,n.icon)})),e.temporary&&!o?te(t):n&&o?ne(t,!0):a&&e.observer&&Z(e)}function c(n,t,i){if(a||(a=!0,X(e)),"SVG"!==n.tagName.toUpperCase()){var o=t.mode,c="mask"===o||"bg"!==o&&("style"===o?-1!==i.body.indexOf("currentColor"):null);if("boolean"==typeof c)return void function(e,n,t,r){var i=n.customisations,o=M(t,i),a=o.attributes,c=e[_],u=Re(o.body,Object.assign({},a,{width:t.width+"",height:t.height+""})),f=Qe(e,Ge(n.icon),new Set(c&&c.addedClasses)),s='url("data:image/svg+xml,'+(l=u,l.replace(/"/g,"'").replace(/%/g,"%25").replace(/#/g,"%23").replace(/</g,"%3C").replace(/>/g,"%3E").replace(/\s+/g," ")+'")'),d=Object.assign({},{"--svg":s,width:tn(a.width),height:tn(a.height)},Be,r?Ke:We);var l;i.inline&&(d["vertical-align"]="-0.125em");var v=Ue(e,d,c&&c.addedStyles),p=Object.assign({},n,{status:"loaded",addedClasses:f,addedStyles:v});e[_]=p}(n,t,Object.assign({},r,i),c)}Je(n,t,i)}}));var o=function(e){var n=t[e],r=function(t){var r=n[t];Pe(Array.from(r).map((function(n){return{provider:e,prefix:t,name:n}})),on)};for(var i in n)r(i)};for(var a in t)o(a)}function cn(e,n,t){void 0===t&&(t=!1);var r=y(e);if(!r)return null;var i=f(e),o=N(z,n||{}),a=Je(document.createElement("span"),{name:e,icon:i,customisations:o},r);return t?a.outerHTML:a}function un(){return"3.1.0"}function fn(e,n){return cn(e,n,!1)}function sn(e,n){return cn(e,n,!0)}function dn(e,n){var t=y(e);return t?M(t,N(z,n||{})):null}function ln(e){e?function(e){var n=$(e);n?an(n):an({node:e,temporary:!0},!0)}(e):an()}if("undefined"!=typeof document&&"undefined"!=typeof window){!function(){if(document.documentElement)return q(document.documentElement);P.push({node:function(){return document.documentElement}})}();var vn=window;if(void 0!==vn.IconifyPreload){var pn=vn.IconifyPreload,gn="Invalid IconifyPreload syntax.";"object"==typeof pn&&null!==pn&&(pn instanceof Array?pn:[pn]).forEach((function(e){try{("object"!=typeof e||null===e||e instanceof Array||"object"!=typeof e.icons||"string"!=typeof e.prefix||!j(e))&&console.error(gn)}catch(e){console.error(gn)}}))}setTimeout((function(){W(an),an()}))}var hn={iconExists:O,getIcon:w,listIcons:b,addIcon:x,addCollection:j,replaceIDs:A,calculateSize:C,buildIcon:M,getVersion:un,renderSVG:fn,renderHTML:sn,renderIcon:dn,scan:ln,observe:ne,stopObserving:te,pauseObserver:Y,resumeObserver:ee};return e.addCollection=j,e.addIcon=x,e.buildIcon=M,e.calculateSize=C,e.default=hn,e.getIcon=w,e.getVersion=un,e.iconExists=O,e.listIcons=b,e.observe=ne,e.pauseObserver=Y,e.renderHTML=sn,e.renderIcon=dn,e.renderSVG=fn,e.replaceIDs=A,e.resumeObserver=ee,e.scan=ln,e.stopObserving=te,Object.defineProperty(e,"__esModule",{value:!0}),e}({});if("object"==typeof exports)try{for(var key in exports.__esModule=!0,exports.default=Iconify,Iconify)exports[key]=Iconify[key]}catch(e){}try{void 0===self.Iconify&&(self.Iconify=Iconify)}catch(e){}
|