try{let e=typeof window<`u`?window:typeof global<`u`?global:typeof globalThis<`u`?globalThis:typeof self<`u`?self:{},t=new e.Error().stack;t&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[t]=`7ce6f9ac-d811-4908-85e0-bad74efab2d4`,e._sentryDebugIdIdentifier=`sentry-dbid-7ce6f9ac-d811-4908-85e0-bad74efab2d4`)}catch{}import{o as e}from"./rolldown-runtime-eb2nym32.js";import{Ig as t}from"./entry.client-dr7r6s9a.js";var n=e=>{let t=e=>{if(typeof e==`string`)return e};return{errorName:e.name,errorCode:t(e.tags?.code)??(e=>{if(typeof e==`number`)return`0x${e.toString(16).toUpperCase().padStart(8,`0`)}`})(e?.hresult)??``,errorMessage:t(e.data?.exception)??e.message??``,errorClassification:r(e)}},r=e=>{let t=e?.classification;if(!t&&e.name===`UserFailedChallenge`)return`User`;switch(t){case`System`:return`System`;case`User`:return`User`;default:return`System`}},i=e=>{switch(e){case`Game`:return`Game`;case`Durable`:return`AddOn`;case`Consumable`:return`Consumable`;case`PASS`:return`Subscription`;default:return}},a=e(t(),1);function o(){let[e]=(0,a.useState)(s);return e}function s(){return crypto.randomUUID()}export{n,i as r,o as t};