import{p as f,o as i,bV as s}from"./index-0LqjRhnu.js";(function(){try{var t=typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},r=new t.Error().stack;r&&(t._sentryDebugIds=t._sentryDebugIds||{},t._sentryDebugIds[r]="7288c474-665b-411a-9ec0-30aa59e3ae5e",t._sentryDebugIdIdentifier="sentry-dbid-7288c474-665b-411a-9ec0-30aa59e3ae5e")}catch{}})();function m(t,r){const u=()=>{let e="meta";return Object.entries(t).forEach(([a,o])=>{e+=`[${a}="${o}"]`}),e},n=f(document.querySelector(u()));i(()=>{if(!n.value){const e=document.createElement("meta");Object.entries(t).forEach(([a,o])=>{e.setAttribute(a,o)}),document.head.appendChild(e),n.value=e}}),s(()=>{r!=null&&r.removeOnUnmount&&d()});const c=e=>{if(!n.value)throw new Error("Meta not defined");Object.entries(e).forEach(([a,o])=>{if(!n.value)throw new Error("Meta not defined");n.value.setAttribute(a,o)})},d=()=>{var e;(e=n.value)==null||e.remove()};return{meta:n,updateMeta:c,remove:d}}export{m as u};
//# sourceMappingURL=useMetaTag-2a1fUAwV.js.map