const t=new Map,e="#05c9ac";function n(n){const r=function(t){if(!t||"string"!=typeof t)return e;let n=t.trim();if(n.startsWith("#")||(n=`#${n}`),/^#[0-9A-Fa-f]{6}$/.test(n))return n;if(/^#[0-9A-Fa-f]{3}$/.test(n)){const t=n[1],e=n[2],r=n[3];return`#${t}${t}${e}${e}${r}${r}`}return e}(n||"");if(t.has(r))return t.get(r);if("undefined"==typeof document)return t.set(r,""),"";const f=`data:image/svg+xml;charset=utf-8,${encodeURIComponent(`\n\n\n\n`)}`;return t.set(r,f),f}function r(t,e){const n=t.venue_type_color;return n&&"string"==typeof n&&function(t){if(!t||"string"!=typeof t)return null;let e=t.trim();e.startsWith("#")||(e=`#${e}`);const n=e.match(/^#([0-9a-f]{3}|[0-9a-f]{6})$/i);if(!n)return null;let r=n[1];return 3===r.length&&(r=`${r[0]}${r[0]}${r[1]}${r[1]}${r[2]}${r[2]}`),r.toLowerCase()}(n.trim())?n.trim():e()}export{n as g,r as t};