!function(){try{var e="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{},t=(new e.Error).stack;t&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[t]="c2b8df68-ff61-4477-938b-0a72f57fd85d",e._sentryDebugIdIdentifier="sentry-dbid-c2b8df68-ff61-4477-938b-0a72f57fd85d")}catch(e){}}(),(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[2597,3290],{95598:function(e,t,r){r.d(t,{C:function(){return g}});var n=r(95235),i=r(82269),o=r(13980),a=r.n(o),s=r(82731),c=r(53770),d=r(52322),l=r(17072),u=r(60597);const p=["entryId","anchorOffset","children","className"];function f(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function m(e){for(var t=1;t{let{value:t,relativeTo:r}=e;if(!isNaN(t)&&null!==t&&!isNaN(r)&&null!==r)return t/r*100+"%"},h=c.default.div.withConfig({componentId:"pmp-module__sc-6zzwsp-0"})(["",""],(e=>{let{$width:t,$height:r,maxWidth:n}=e;return(0,c.css)(["max-width:",";position:relative;&::before{content:'';display:block;padding-top:",";}"],n,m({value:r,relativeTo:t}))})),g=(0,o.createContext)(),v=e=>{let{width:t,height:r,maxWidth:n,children:o,className:a}=e,s=(0,i.Z)(e,l);const c={parentWidth:t,parentHeight:r};return(0,d.jsx)(g.Provider,{value:c,children:(0,d.jsx)(h,f(f({$width:t,$height:r,maxWidth:n,className:a},s),{},{children:o}))})};v.defaultProps={maxWidth:"100%"},v.propTypes={children:s().node,className:s().string,height:s().number.isRequired,maxWidth:s().string.isRequired,width:s().number.isRequired};var b=v;const y=c.default.div.withConfig({componentId:"pmp-module__sc-1p75k38-0"})(["pointer-events:none;position:absolute;max-width:100%;"," ",""],(e=>{let{noMaxWidth:t}=e;return t&&(0,c.css)(["max-width:none;"])}),(e=>{let{$width:t,left:r,top:n,parentWidth:i,parentHeight:o}=e;return(0,c.css)(["left:",";top:",";width:",";"],m({value:r,relativeTo:i}),m({value:n,relativeTo:o}),m({value:t,relativeTo:i}))})),w=e=>{let{width:t,left:r,top:n,noMaxWidth:a,children:s,className:c}=e,l=(0,i.Z)(e,u);const{parentWidth:p,parentHeight:m}=(0,o.useContext)(g);return(0,d.jsx)(y,f(f({$width:t,left:r,top:n,parentWidth:p,parentHeight:m,noMaxWidth:a,className:c},l),{},{children:s}))};w.propTypes={children:s().node,className:s().string,left:s().number.isRequired,noMaxWidth:s().bool,top:s().number.isRequired,width:s().number.isRequired};var x=w},53770:function(e,t,r){r.d(t,{c:function(){return o}});var n=r(13980),i=r.n(n);const o={children:i().oneOfType([i().node,i().arrayOf(i().node)]),className:i().string}},18532:function(e,t,r){r.d(t,{m:function(){return o}});var n=r(2771),i={Characters:{es:"Personajes",fr:"Personnages",pt:"Personagens"},"Reduced motion":{es:"Reducir movimiento",fr:"Arr\xeater l\u2019animation",pt:"Movimento reduzido"},"Active gallery item: $i of $t.":{es:"Elemento activo de la galer\xeda: $i de $t.",fr:"Objet de galerie actif : $i sur $t.",pt:"Item ativo da galeria: $i de $t."},"Gallery item":{es:"Elemento de la galer\xeda",fr:"Objet de la galerie",pt:"Item da galeria"},"Next gallery item":{es:"Siguiente art\xedculo de la galer\xeda",fr:"\xc9l\xe9ment suivant de la galerie",pt:"Pr\xf3ximo item da galeria"},"Previous gallery item":{es:"Art\xedculo anterior de la galer\xeda",fr:"\xc9l\xe9ment pr\xe9c\xe9dent de la galerie",pt:"Item anterior da galeria"},"Gallery navigation":{es:"Navegar por la galer\xeda",fr:"Navigation de la galerie",pt:"Galeria de navega\xe7\xe3o"},"Download demo":{es:"Descargar la versi\xf3n de prueba",fr:"T\xe9l\xe9charger la d\xe9mo",pt:"Baixar vers\xe3o demo"},"Play video":{es:"Reproducir video",fr:"Lire la vid\xe9o",pt:"Reproduzir v\xeddeo"},"Watch the trailer":{es:"Ver el tr\xe1iler",fr:"Voir la bande-annonce",pt:"Assista ao trailer"},"Mute audio":{es:"Desactivar el audio",fr:"D\xe9sactiver le son",pt:"Colocar no mudo"},"Unmute audio":{es:"Activar el audio",fr:"Activer le son",pt:"Tirar do mudo"}};function o(e){return(0,n.m)(i,e)}},99411:function(e,t,r){r.d(t,{r:function(){return o}});var n=r(2771),i=r(34406);function o(e){let{url:t,isVideo:r}=e;if(!t)return"";const o="https://assets.nintendo.com",a=/\.[0-9a-z]+$/i,s=`${o}/image/upload/`,c=`${o}/image/upload/f_auto,q_auto/`,d=`${o}/video/upload/f_auto:video,q_auto/`,l=t.toLowerCase().indexOf("marketing");if(-1===l)return t;const u=t.slice(l).trim();return"true"===i.env.LOCAL_IMAGES||!0===i.env.LOCAL_IMAGES?`${n.S}/${u}`:r?`${d}${u}`:u.endsWith(".svg")?`${s}${u}`:a.test(u)?`${c}${u.replace(a,"")}`:`${c}${u}`}},93196:function(e,t,r){r.d(t,{w:function(){return n}});var n=".marquee{position:relative;white-space:nowrap}@keyframes scroll{0%{transform:translate(0)}to{transform:translate(calc(var(--marquee-width) * -1px))}}.marquee__slide{display:inline-block;width:max-content}.marquee--ready{animation:scroll var(--duration) linear infinite var(--animation-state, running)}.marquee--reverse{animation-direction:reverse}\n"},64758:function(e,t,r){r.d(t,{u:function(){return s}});var n=r(2784),i=r(2771);const o=new Map([["S",[1,"small"]],["M",[2,"medium"]],["L",[3,"large"]],["XL",[4,"xlarge"]],["XXL",[5,"xxlarge"]]]),a=[...o].reduce(((e,t)=>{const r=t[1][1];return e[r]=r,e}),{}),s=()=>{const{0:e,1:t}=(0,n.useState)([null,null]),r=e[0],s=(0,n.useCallback)((()=>{t(o.get(window.getComputedStyle(document.querySelector(`.${i.N}`),"::after").content.replace(/'|"/gi,"")))}),[]);return(0,n.useEffect)((()=>(window.addEventListener("resize",s),s(),()=>{window.removeEventListener("resize",s)})),[]),{breakpoint:r,breakpointName:e[1],mediumUp:r>1,mediumDown:r<3,largeUp:r>2,xlargeUp:r>3,BREAKPOINTS:a}}},60597:function(e,t,r){r.d(t,{u:function(){return i}});var n=r(2784);const i=e=>{let{id:t,margin:r=100}=e;(0,n.useEffect)((()=>{if(!t)return;const e=document.querySelector(`#${t}`),n=window.location.hash;if(!e||n!==`#${t}`)return;const i=setTimeout((()=>{let t=e,n=0;for(;t.offsetParent!==document.body;)n+=t.offsetTop,t=t.parentElement;t.offsetParent===document.body&&(n+=t.offsetTop),e.tabindex=-1,e.focus({preventScroll:!0}),e.removeAttribute("tabindex"),window.scroll(0,n-r)}),500);return()=>{clearTimeout(i)}}),[])}},30553:function(e,t,r){r.d(t,{R:function(){return a}});var n=r(52322),i=r(2784);function o(e=[]){if(!e||!Array.isArray(e)||!e.length)return;const t=[];return e.forEach((e=>{"string"==typeof e&&t.push(e)})),t.flat().join(" ")}function a({speed:e=50,reducedMotionSpeed:t=20,prefersReducedMotion:r=!1,playing:a=!0,reverse:c,children:d,className:l,...u}){const[p,f]=(0,i.useState)(0),[m,h]=(0,i.useState)(0),[g,v]=(0,i.useState)(1),b=(0,i.useRef)(null),y=(0,i.useRef)(null),w=(0,i.useRef)(),x=(0,i.useCallback)((()=>{var n,i;const o=(null==(n=b.current)?void 0:n.clientWidth)||0,a=(null==(i=y.current)?void 0:i.clientWidth)||0,s=r?t:e;let c=2*Math.ceil(o/a)-1;(c<1||isNaN(c))&&(c=1),v(c),f(a),h(a{x();const e=()=>{w.current&&clearTimeout(w.current),w.current=setTimeout(x,200)};window.addEventListener("resize",e);const t=w.current;return()=>{clearTimeout(t),window.removeEventListener("resize",e)}}),[x]),(0,n.jsxs)("div",{...u,ref:b,className:o(["marquee",p>0&&"marquee--ready",c&&"marquee--reverse",l]),style:{"--marquee-width":p,"--duration":m+"s","--animation-state":a?"running":"paused"},children:[(0,n.jsx)("div",{ref:y,className:"marquee__slide",children:d}),(0,n.jsx)(s,{neededAmount:g,children:d})]})}function s({children:e,neededAmount:t}){return(0,n.jsx)(n.Fragment,{children:Array.from({length:t}).map(((t,r)=>(0,n.jsx)("div",{className:"marquee__slide",children:e},r)))})}}}]); //# sourceMappingURL=2597.bc96f16efb148558.js.map