import{g as n}from"./p-9857dedb.js";let r;const t=()=>{if("undefined"==typeof window)return new Map;if(!r){const n=window;n.Ionicons=n.Ionicons||{},r=n.Ionicons.map=n.Ionicons.map||new Map}return r},e=n=>{const r=t();Object.keys(n).forEach((t=>r.set(t,n[t])))},i=n=>{let r=u(n.src);if(r)return r;if(r=o(n.name,n.icon,n.mode,n.ios,n.md),r)return s(r);if(n.icon){if(r=u(n.icon),r)return r;if(r=u(n.icon[n.mode]),r)return r}return null},s=r=>t().get(r)||n(`svg/${r}.svg`),o=(n,r,t,e,i)=>(t="ios"===(t&&a(t))?"ios":"md",e&&"ios"===t?n=a(e):i&&"md"===t?n=a(i):(n||!r||l(r)||(n=r),f(n)&&(n=a(n))),f(n)&&""!==n.trim()?""!==n.replace(/[a-z]|-|\d/gi,"")?null:n:null),u=n=>f(n)&&(n=n.trim(),l(n))?n:null,l=n=>n.length>0&&/(\/|\.)/.test(n),f=n=>"string"==typeof n,a=n=>n.toLowerCase(),d=(n,r=[])=>{const t={};return r.forEach((r=>{n.hasAttribute(r)&&(null!==n.getAttribute(r)&&(t[r]=n.getAttribute(r)),n.removeAttribute(r))})),t};export{e as a,d as b,o as c,i as g,f as i}