1import{a as S,d as C,o as N,r as j,n as E,q as T,s as U,t as O,v as q,w as D,x as I,y as $,z as F,A as V,_ as z,l as H,B as G}from"./2sDswFfi.js";import{k as M,b as w,D as Q,o as W,m as A,a8 as k,l as _,G as J,H as K,P as X}from"./R_wp50hr.js";async function B(t,n=S()){const{path:u,matched:m}=n.resolve(t);if(!m.length||(n._routePreloaded||(n._routePreloaded=new Set),n._routePreloaded.has(u)))return;const e=n._preloadPromises=n._preloadPromises||[];if(e.length>4)return Promise.all(e).then(()=>B(t,n));n._routePreloaded.add(u);const a=m.map(s=>{var r;return(r=s.components)==null?void 0:r.default}).filter(s=>typeof s=="function");for(const s of a){const r=Promise.resolve(s()).catch(()=>{}).finally(()=>e.splice(e.indexOf(r)));e.push(r)}await Promise.all(e)}const Y=(...t)=>t.find(n=>n!==void 0);function Z(t){const n=t.componentName||"NuxtLink";function u(e,a){if(!e||t.trailingSlash!=="append"&&t.trailingSlash!=="remove")return e;if(typeof e=="string")return L(e,t.trailingSlash);const s="path"in e&&e.path!==void 0?e.path:a(e).path;return{...e,name:void 0,path:L(s,t.trailingSlash)}}function m(e){const a=S(),s=$(),r=_(()=>!!e.target&&e.target!=="_self"),v=_(()=>{const d=e.to||e.href||"";return typeof d=="string"&&O(d,{acceptRelative:!0})}),b=k("RouterLink"),p=b&&typeof b!="string"?b.useLink:void 0,g=_(()=>{if(e.external)return!0;const d=e.to||e.href||"";return typeof d=="object"?!1:d===""||v.value}),i=_(()=>{const d=e.to||e.href||"";return g.value?d:u(d,a.resolve)}),f=g.value||p==null?void 0:p({...e,to:i}),y=_(()=>{var d;if(!i.value||v.value)return i.value;if(g.value){const x=typeof i.value=="object"&&"path"in i.value?q(i.value):i.value,P=typeof x=="object"?a.resolve(x).href:x;return u(P,a.resolve)}return typeof i.value=="object"?((d=a.resolve(i.value))==null?void 0:d.href)??null:u(D(s.app.baseURL,i.value),a.resolve)});return{to:i,hasTarget:r,isAbsoluteUrl:v,isExternal:g,href:y,isActive:(f==null?void 0:f.isActive)??_(()=>i.value===a.currentRoute.value.path),isExactActive:(f==null?void 0:f.isExactActive)??_(()=>i.value===a.currentRoute.value.path),route:(f==null?void 0:f.route)??_(()=>a.resolve(i.value)),async navigate(){await I(y.value,{replace:e.replace,external:g.value||r.value})}}}return M({name:n,props:{to:{type:[String,Object],default:void 0,required:!1},href:{type:[String,Object],default:void 0,required:!1},target:{type:String,default:void 0,required:!1},rel:{type:String,default:void 0,required:!1},noRel:{type:Boolean,default:void 0,required:!1},prefetch:{type:Boolean,default:void 0,required:!1},prefetchOn:{type:[String,Object],default:void 0,required:!1},noPrefetch:{type:Boolean,default:void 0,required:!1},activeClass:{type:String,default:void 0,required:!1},exactActiveClass:{type:String,default:void 0,required:!1},prefetchedClass:{type:String,default:void 0,required:!1},replace:{type:Boolean,default:void 0,required:!1},ariaCurrentValue:{type:String,default:void 0,required:!1},external:{type:Boolean,default:void 0,required:!1},custom:{type:Boolean,default:void 0,required:!1}},useLink:m,setup(e,{slots:a}){const s=S(),{to:r,href:v,navigate:b,isExternal:p,hasTarget:g,isAbsoluteUrl:i}=m(e),f=w(!1),y=w(null),d=l=>{var c;y.value=e.custom?(c=l==null?void 0:l.$el)==null?void 0:c.nextElementSibling:l==null?void 0:l.$el};function x(l){var c,o;return!f.value&&(typeof e.prefetchOn=="string"?e.prefetchOn===l:((c=e.prefetchOn)==null?void 0:c[l])??((o=t.prefetchOn)==null?void 0:o[l]))&&(e.prefetch??t.prefetch)!==!1&&e.noPrefetch!==!0&&e.target!=="_blank"&&!ae()}async function P(l=C()){if(f.value)return;f.value=!0;const c=typeof r.value=="string"?r.value:p.value?q(r.value):s.resolve(r.value).fullPath,o=p.value?new URL(c,window.location.href).href:c;await Promise.all([l.hooks.callHook("link:prefetch",o).catch(()=>{}),!p.value&&!g.value&&B(r.value,s).catch(()=>{})])}if(x("visibility")){const l=C();let c,o=null;Q(()=>{const h=ee();N(()=>{c=j(()=>{var R;(R=y==null?void 0:y.value)!=null&&R.tagName&&(o=h.observe(y.value,async()=>{o==null||o(),o=null,await P(l)}))})})}),W(()=>{c&&E(c),o==null||o(),o=null})}return()=>{var o;if(!p.value&&!g.value){const h={ref:d,to:r.value,activeClass:e.activeClass||t.activeClass,exactActiveClass:e.exactActiveClass||t.exactActiveClass,replace:e.replace,ariaCurrentValue:e.ariaCurrentValue,custom:e.custom};
1return e.custom||(x("interaction")&&(h.onPointerenter=P.bind(null,void 0),h.onFocus=P.bind(null,void 0)),f.value&&(h.class=e.prefetchedClass||t.prefetchedClass),h.rel=e.rel||void 0),A(k("RouterLink"),h,a.default)}const l=e.target||null,c=Y(e.noRel?"":e.rel,t.externalRelAttribute,i.value||g.value?"noopener noreferrer":"")||null;return e.custom?a.default?a.default({href:v.value,navigate:b,prefetch:P,get route(){if(!v.value)return;const h=new URL(v.value,window.location.href);return{path:h.pathname,fullPath:h.pathname,get query(){return T(h.search)},hash:h.hash,params:{},name:void 0,matched:[],redirectedFrom:void 0,meta:{},href:v.value}},rel:c,target:l,isExternal:p.value||g.value,isActive:!1,isExactActive:!1}):null:A("a",{ref:y,href:v.value||null,rel:c,target:l},(o=a.default)==null?void 0:o.call(a))}}})}const oe=Z(U);function L(t,n){const u=n==="append"?F:V;return O(t)&&!t.startsWith("http")?t:u(t,!0)}function ee(){const t=C();if(t._observer)return t._observer;let n=null;const u=new Map,m=(a,s)=>(n||(n=new IntersectionObserver(r=>{for(const v of r){const b=u.get(v.target);(v.isIntersecting||v.intersectionRatio>0)&&b&&b()}})),u.set(a,s),n.observe(a),()=>{u.delete(a),n.unobserve(a),u.size===0&&(n.disconnect(),n=null)});return t._observer={observe:m}}const te=/2g/;function ae(){const t=navigator.connection;return!!(t&&(t.saveData||te.test(t.effectiveType)))}const ne={__name:"play_demo",props:{gameName:{type:String,required:!0}},setup(t){const n=H(),u=G(),m=e=>{u.push(n(`/play_demo/${e}`))};return(e,a)=>(J(),K("p",{onClick:a[0]||(a[0]=s=>m(t.gameName))},X(e.$t("index.play_demo")),1))}},ie=z(ne,[["__scopeId","data-v-8ab9cb91"]]);export{oe as _,ie as a};
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.