// Source: index.html script block (extracted). Loaded via <script type="text/babel"> in index.html.

const Ico = {
  inbox: (p) => (<svg viewBox="0 0 16 16" width="14" height="14" fill="none" stroke="currentColor" strokeWidth="1.4" {...p}><path d="M2 9h3l1 2h4l1-2h3"/><path d="M2 9l2-6h8l2 6v4H2z"/></svg>),
  edit:  (p) => (<svg viewBox="0 0 16 16" width="14" height="14" fill="none" stroke="currentColor" strokeWidth="1.4" {...p}><path d="M11 2l3 3-8 8H3v-3z"/></svg>),
  play:  (p) => (<svg viewBox="0 0 16 16" width="14" height="14" fill="none" stroke="currentColor" strokeWidth="1.4" {...p}><polygon points="4,3 13,8 4,13" fill="currentColor"/></svg>),
  chart: (p) => (<svg viewBox="0 0 16 16" width="14" height="14" fill="none" stroke="currentColor" strokeWidth="1.4" {...p}><path d="M2 13h12M4 13V8M8 13V4M12 13v-7"/></svg>),
  users: (p) => (<svg viewBox="0 0 16 16" width="14" height="14" fill="none" stroke="currentColor" strokeWidth="1.4" {...p}><circle cx="6" cy="6" r="2.5"/><path d="M2 13c.6-2.2 2.2-3 4-3s3.4.8 4 3"/><circle cx="11" cy="5" r="1.8"/><path d="M14 12c-.3-1.5-1.3-2-2.5-2"/></svg>),
  gear:  (p) => (<svg viewBox="0 0 16 16" width="14" height="14" fill="none" stroke="currentColor" strokeWidth="1.4" {...p}><circle cx="8" cy="8" r="2"/><path d="M8 1v2m0 10v2M1 8h2m10 0h2M3 3l1.5 1.5M11.5 11.5L13 13M3 13l1.5-1.5M11.5 4.5L13 3"/></svg>),
  search:(p) => (<svg viewBox="0 0 16 16" width="13" height="13" fill="none" stroke="currentColor" strokeWidth="1.4" {...p}><circle cx="7" cy="7" r="4.5"/><path d="M10.5 10.5L14 14"/></svg>),
  plus:  (p) => (<svg viewBox="0 0 16 16" width="13" height="13" fill="none" stroke="currentColor" strokeWidth="1.6" {...p}><path d="M8 3v10M3 8h10"/></svg>),
  check: (p) => (<svg viewBox="0 0 16 16" width="13" height="13" fill="none" stroke="currentColor" strokeWidth="1.8" {...p}><path d="M3 8.5L7 12l6-7"/></svg>),
  x:     (p) => (<svg viewBox="0 0 16 16" width="13" height="13" fill="none" stroke="currentColor" strokeWidth="1.6" {...p}><path d="M4 4l8 8M12 4l-8 8"/></svg>),
  warn:  (p) => (<svg viewBox="0 0 16 16" width="13" height="13" fill="none" stroke="currentColor" strokeWidth="1.4" {...p}><path d="M8 2l6 11H2z"/><path d="M8 7v3M8 11.5v.5"/></svg>),
  chev:  (p) => (<svg viewBox="0 0 16 16" width="12" height="12" fill="none" stroke="currentColor" strokeWidth="1.5" {...p}><path d="M6 4l4 4-4 4"/></svg>),
  pause: (p) => (<svg viewBox="0 0 16 16" width="13" height="13" fill="currentColor" {...p}><rect x="4" y="3" width="3" height="10"/><rect x="9" y="3" width="3" height="10"/></svg>),
  flag:  (p) => (<svg viewBox="0 0 16 16" width="13" height="13" fill="none" stroke="currentColor" strokeWidth="1.4" {...p}><path d="M3 14V2M3 3h9l-2 3 2 3H3"/></svg>),
  reset: (p) => (<svg viewBox="0 0 16 16" width="13" height="13" fill="none" stroke="currentColor" strokeWidth="1.4" {...p}><path d="M3 4v4h4"/><path d="M3.5 8a5 5 0 105-5"/></svg>),
  tool:  (p) => (<svg viewBox="0 0 16 16" width="13" height="13" fill="none" stroke="currentColor" strokeWidth="1.4" {...p}><path d="M11 2l3 3-5 5-3-3zM6 7l-4 4v3h3l4-4"/></svg>),
  send:  (p) => (<svg viewBox="0 0 16 16" width="13" height="13" fill="none" stroke="currentColor" strokeWidth="1.5" {...p}><path d="M2 14l12-6L2 2l2 6zM4 8h10"/></svg>),
  upload: (p) => (<svg viewBox="0 0 16 16" width="14" height="14" fill="none" stroke="currentColor" strokeWidth="1.4" {...p}><path d="M8 11V2M4 6l4-4 4 4"/><path d="M2 11v3h12v-3"/></svg>),
  download: (p) => (<svg viewBox="0 0 16 16" width="14" height="14" fill="none" stroke="currentColor" strokeWidth="1.4" {...p}><path d="M8 2v9M4 7l4 4 4-4"/><path d="M2 11v3h12v-3"/></svg>),
  file: (p) => (<svg viewBox="0 0 16 16" width="14" height="14" fill="none" stroke="currentColor" strokeWidth="1.4" {...p}><path d="M3 2h7l3 3v9H3z"/><path d="M10 2v3h3"/></svg>),
  stethoscope: (p) => (<svg viewBox="0 0 16 16" width="15" height="15" fill="none" stroke="currentColor" strokeWidth="1.4" {...p}><path d="M3 2v4a3 3 0 006 0V2"/><path d="M6 9v2a3 3 0 003 3 3 3 0 003-3v-2"/><circle cx="12" cy="5" r="1.2"/></svg>),
};

window.Ico = Ico;

// React hook that re-renders when language changes. Use `const { t, lang, setLang } = useLang();`
function useLang() {
  const [lang, setLocal] = React.useState(window.getLang());
  React.useEffect(() => {
    const fn = (l) => setLocal(l);
    window.__langListeners.add(fn);
    return () => window.__langListeners.delete(fn);
  }, []);
  return {
    lang,
    t: window.t,
    setLang: window.setLang,
  };
}
window.useLang = useLang;