LINE1 10 20 30 40 50 60 70 80 90 100 110 120 130 140 150 160 170 180 190 200 210 220 230 240 250 260 270 2801function gearPath(teeth = 8, rOuter = 7.2, rInner = 5.4, cx = 8, cy = 8) {2 const pts = [];3 const steps = teeth * 4;4 for (let i = 0; i < steps; i++) {5 const a = (i / steps) * Math.PI * 2;6 const r = i % 4 === 1 || i % 4 === 2 ? rOuter : rInner;7 pts.push(`${(cx + Math.cos(a) * r).toFixed(2)},${(cy + Math.sin(a) * r).toFixed(2)}`);8 }9 return `M${pts.join('L')}Z`;10}1112const PATHS = {13 money: `<circle cx="8" cy="8" r="6.6" fill="currentColor" opacity=".3"/><circle cx="8" cy="8" r="6.6" fill="none" stroke="currentColor" stroke-width="1.4"/><text x="8" y="11.6" text-anchor="middle" font-size="9.5" font-weight="700" fill="currentColor" font-family="sans-serif">$</text>`,14 scrap: `<path d="${gearPath()}" fill="currentColor"/><circle cx="8" cy="8" r="2.2" fill="#14191a"/>`,15 powder: `<path d="M6 1.5h4v3.2l3.2 5.6c.8 1.5 0 4.2-2.4 4.2H5.2c-2.4 0-3.2-2.7-2.4-4.2L6 4.7z" fill="currentColor"/><path d="M5.2 10.5h5.6" stroke="#14191a" stroke-width="1" opacity=".5"/>`,16 steel: `<path d="M1.5 13L3.6 5.5h8.8l2.1 7.5z" fill="currentColor"/><path d="M4.4 7.2h7.2" stroke="#14191a" stroke-width="1" opacity=".45"/>`,17 optics: `<circle cx="8" cy="8" r="5.8" fill="none" stroke="currentColor" stroke-width="1.7"/><circle cx="8" cy="8" r="2.4" fill="currentColor"/><path d="M8 .8v3M8 12.2v3M.8 8h3M12.2 8h3" stroke="currentColor" stroke-width="1.1"/>`,18 ammo: `<path d="M5.5 15V7.5C5.5 4.5 6.7 1.5 8 1.5s2.5 3 2.5 6V15z" fill="currentColor"/><rect x="5.5" y="12" width="5" height="3" fill="currentColor" opacity=".6"/>`,19};2021export function icon(name) {22 const body = PATHS[name];23 if (!body) return '';24 return `<svg class="ico ico-${name}" viewBox="0 0 16 16" aria-hidden="true">${body}</svg>`;25}