var i=["127.0.0.1","localhost"].includes(window.location.hostname),g=n=>typeof n!="string"&&"strTag"in n;function l(n){let r="";for(let t=0;t<=n.length-1;t++)r+=n[t],t<n.length-1&&(r+=`{${t}}`);return r}function u(n,r){return n.replace(/\{(\d+)\}/g,(t,o)=>r(o))}var a=(n,r,t)=>{let o=l(n),e=s(o,t);return u(e,c=>r[c])};function s(n,r={}){window.__strings=window.__strings??{};let t=window.__strings[n]?.content;return!t&&i&&console.log("\u{1F310}",n,r.desc?`(${r.desc})`:""),window.env?.DEBUG_TRANSLATIONS?`__${t??n}`:t??n}var d=(n,r={})=>n?g(n)?a(n.strings,n.values,r):s(n,r):"";export{d as msg};
