1(function(){try{var e=typeof window<`u`?window:typeof global<`u`?global:typeof globalThis<`u`?globalThis:typeof self<`u`?self:{};e.SENTRY_RELEASE={id:`metacritic.prod.2e6d86`}}catch{}})();try{(function(){var 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]=`baca9427-ecf0-40af-8964-fde01472cf64`,e._sentryDebugIdIdentifier=`sentry-dbid-baca9427-ecf0-40af-8964-fde01472cf64`)})()}catch{}import{On as e,g as t}from"./CZe-j-N0.js";import{t as n}from"./CABdKenp.js";import{r}from"./_H9T7c9_.js";import{r as i}from"./BtSBPZaj.js";import{i as a,r as o}from"./BtiU5QTW.js";import{n as s,t as c}from"./D_b1RJrO.js";import"./BfRgYNkD2.js";import{t as l}from"./Bk_D1x8Z2.js";import"./BSZ9azxA2.js";import{n as u}from"./C8S4GoRy2.js";import{r as d,t as f}from"./Bg0kXYDx2.js";var p=new Map([[o.Game,l.PRODUCT_GAME],[o.Movie,l.PRODUCT_MOVIE],[o.Person,l.PROFILE_PERSON],[o.Tv,l.PRODUCT_TV]]),m=e=>e===a.Game,h=a=>{let l=t(()=>{let t=e(a),n=Object.entries(u).find(([,e])=>e===t.typeId);if(n)return n[0]});return{productType:l,releaseDate:t(()=>{let t=e(a),n=s(t.releaseDate||null);return u[o.Game]===t.typeId&&(n=c(t.releaseDate||null)),n||``}),fullReleaseDate:t(()=>{let t=e(a);return c(t.releaseDate||null)||t.releaseDate||``}),isReleased:t(()=>{let t=e(a);return i.isReleased(t.releaseDate)}),platforms:t(()=>e(a).platforms?.map(e=>e.name||``).filter(Boolean)||[]),productUrl:t(()=>{let t=e(a);if(!l.value)return n.warn(`[useProduct] Missing product type for product. Product id: ${t.id}, slug: ${t.slug}`),``;let r=p.get(l.value);return r?d(r,{slug:t.slug}):(n.error(`[useProduct] No route name found for product type: ${l.value}. Product slug: ${t.slug}`),``)}),score:t(()=>e(a).criticScoreSummary?.score??null),isUser:t(()=>e(a).typeId===u[o.Person]),isGame:t(()=>{let t=e(a);return t.typeId===void 0?f(t.type):t.typeId===u[o.Game]}),isTv:t(()=>e(a).typeId===u[o.Tv]),isMovie:t(()=>e(a).typeId===u[o.Movie]),isGameType:t(()=>{let t=e(a);return f(t.type)}),formatRuntime:e=>{if(!e)return null;let t=Math.floor(e/60),n=e-t*60;return`${t>0?`${t} h`:``} ${n>0?`${n} m`:``}`.trim()||null},image:t(()=>{let t=e(a);return t.image?t.image:t.images&&t.images.length>0?t.images[0]??null:null}),cardImage:t(()=>{let t=e(a);if(t.images?.length){let e=t.images.find(e=>e.typeName===r.CARD_IMAGE);if(e)return e}return t.image??null}),mainImage:t(()=>{let t=e(a);if(t.images?.length){let e=t.images.find(e=>e.typeName===r.MAIN_IMAGE);if(e)return e}return t.image??null})}};export{h as n,m as t};
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.