!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]="2beefc32-b95b-4c33-9ff1-29132b35249d",e._sentryDebugIdIdentifier="sentry-dbid-2beefc32-b95b-4c33-9ff1-29132b35249d")}catch(e){}}(),(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[1625],{11625:function(e,t,n){n.d(t,{I:function(){return b},S:function(){return m}});var r=n(95235),a=n(82269),i=n(13980),s=n.n(i),o=n(2771),u=n(82731),l=n(21319),c=n(52322),d=n(30736);const f=["assetPath","alt","aspectRatio","dimensions","className","assetEntry"];function p(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function h(e){for(var t=1;t{let{$dimensions:t}=e;return t&&t.width&&t.height&&(0,u.css)(["aspect-ratio:"," / ",";"],t.width,t.height)})),g=u.default.div.withConfig({componentId:"pmp-module__sc-l22pbt-1"})(["position:relative;width:100%;",""],(e=>{let{$aspectRatio:t}=e;return t&&(0,u.css)(["padding-top:","%;","{",";}"],100*t,m,(0,o.f)())}));function b(e){let{assetPath:t,alt:n="",aspectRatio:r,dimensions:i,className:s,assetEntry:o}=e,u=(0,a.Z)(e,f),l=r||i&&i.height/i.width;if(o){const e=(0,d.r)(o);if(!e)return void console.log('Asset is undefinded, Please check the "assetEntry"');t=e,n||(n=o?.alt),i||(i=o.primary?.dimensions)}return l?(0,c.jsx)(g,h(h({$aspectRatio:l,className:s},u),{},{children:(0,c.jsx)(y,{assetPath:t,alt:n})})):i&&i.width&&i.height||"string"===typeof l&&isNaN(l)||!l?(0,c.jsx)(y,h({assetPath:t,alt:n,className:s,$dimensions:i},u)):null}function y(e){let t=Object.assign({},e);return(0,c.jsx)(m,h({cloudinaryConfig:o.C},t))}b.propTypes={assetPath:s().String,assetEntry:s().object,alt:s().string,aspectRatio:s().oneOf([s().string,s().number]),dimensions:s().shape({width:s().number,height:s().number}),className:s().string}},30736:function(e,t,n){n.d(t,{I:function(){return _},R:function(){return L},a:function(){return T},b:function(){return V},c:function(){return D},d:function(){return O},e:function(){return j},g:function(){return P},r:function(){return x},u:function(){return z}});var r=n(95235),a=n(82269),i=n(2771),s=n(13980),o=n.n(s),u=n(2784),l=n(52049),c=n(82731),d=n(52322),f=n(80865),p=n(84004),h=n(34406);const m=["$staggerChildren"],g=["threshold","once","setInViewIfScrolledPast","matchRootMarginToThreshold","staggerChildren","className","children"],b=["animation","duration","delay","staggerChildren","className","children"],y=["tag","className"],w=["data","options","className"];function v(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function $(e){for(var t=1;t`calc(${e} * 1s * var(--duration-factor))`,j={children:o().oneOfType([o().node,o().arrayOf(o().node)]),className:o().string},P=(e,t)=>{for(const n of t){if(n.__entryId===e)return n;if(n.modules){const t=P(e,n.modules);if(t)return t}else;}},D=()=>{const e=(0,u.useContext)(i.i);if(!e)throw new Error("usePage hook must be used within a PageProvider.");return e},z=e=>{if("object"!==typeof e)throw new Error("Must pass an object of keys that map to entry IDs.");const{marketingPage:t}=D(),n=(0,u.useCallback)(((e,r)=>{let[a,i]=r;switch(typeof i){case"string":e[a]=P(i,t.modules);break;case"object":e[a]=Object.entries(i).reduce(n,{})}return e}),[t.modules]);return Object.entries(e).reduce(n,{})},N=(0,c.css)(["opacity:var(--end-alpha,var(--default-end-alpha));transform:translate( var(--end-x,var(--default-end-x)),var(--end-y,var(--default-end-y)) ) scale(var(--end-scale,var(--default-end-scale))) rotate(var(--end-rotate,var(--default-end-rotate)));transition-duration:",";transition-delay:",";transition-property:opacity,transform;transition-timing-function:var(--show-easing,var(--default-show-easing));"],O("var(--show-duration, var(--default-show-duration))"),O("var(--show-delay, var(--default-show-delay))")),C=(0,c.css)(["opacity:var(--start-alpha,var(--default-start-alpha));transform:translate( var(--start-x,var(--default-start-x)),var(--start-y,var(--default-start-y)) ) scale(var(--start-scale,var(--default-start-scale))) rotate(var(--start-rotate,var(--default-start-rotate)));transition-duration:",";transition-delay:",";transition-property:opacity,transform;transition-timing-function:var(--hide-easing,var(--default-hide-easing));"],O("var(--hide-duration, var(--default-hide-duration))"),O("var(--hide-delay, var(--default-hide-delay))")),I=e=>{let{$staggerChildren:t,$numChildren:n,$animationDefaults:r}=e;if(!t||!n)return;let a="",i=t.delay||r["stagger-delay"]||0;for(let s=0;s *:nth-child(${s+1}) {\n --show-delay: ${parseFloat(e.toFixed(2))};\n }\n `}return a},S=e=>{let{$staggerChildren:t,$numChildren:n,$animationDefaults:r}=e;if(t&&n)return(0,c.css)(["--show-duration:",";"],t.duration||r["show-duration"]||.4)},k=e=>{let{animation:t,$animationPresets:n}=e;if(t&&n){const e=n[t]||n.fade;switch(t){case"fade":return(0,c.css)(["--start-alpha:",";--end-alpha:",";"],e["start-alpha"],e["end-alpha"]);case"pop":return(0,c.css)(["--start-alpha:",";--end-alpha:",";--start-scale:",";--end-scale:",";--show-easing:",";--hide-easing:",";"],e["start-alpha"],e["end-alpha"],e["start-scale"],e["end-scale"],e["show-easing"],e["hide-easing"]);case"up":case"shortUp":case"down":return(0,c.css)(["--start-alpha:",";--end-alpha:",";--start-y:",";--end-y:",";"],e["start-alpha"],e["end-alpha"],e["start-y"],e["end-y"]);case"right":case"left":return(0,c.css)(["--start-alpha:",";--end-alpha:",";--start-x:",";--end-x:",";"],e["start-alpha"],e["end-alpha"],e["start-x"],e["end-x"])}}},E=e=>{let{$staggerChildren:t,$isInView:n}=e;if(t)return n?(0,c.css)(["> *{","}"],N):(0,c.css)(["> *{","}"],C)},R=c.default.div.attrs((e=>{let{theme:t}=e;return{$animationDefaults:t?.pmp?.animation?.inView?.defaults||i.A.inView.defaults,$animationPresets:t?.pmp?.animation?.inView?.presets||i.A.inView.presets}})).withConfig({componentId:"pmp-module__sc-12ak7mp-0"})([""," "," "," ",""],(e=>E(e)),(e=>I(e)),(e=>S(e)),(e=>{let{$staggerChildren:t}=e,n=(0,a.Z)(e,m);if(!t)return;const{animation:r}=t;return r?k($({animation:r},n)):void 0})),V=(0,u.createContext)(),_=e=>{let{threshold:t=.3,once:n=!1,setInViewIfScrolledPast:r=!1,matchRootMarginToThreshold:i=!0,staggerChildren:s,className:o,children:c}=e,f=(0,a.Z)(e,g);const p=(0,u.useMemo)((()=>$($($({},"object"!==typeof t&&{threshold:t}),i&&{rootMargin:100*t+"% 0px 0px 0px"}),"object"===typeof t&&{threshold:t})),[i,t]),[h,m,b]=(0,l.YD)(p,n,!(!n||!r)&&r),y={isInView:m,domNode:b},w=c?Array.isArray(c)?c.length:1:0;return(0,d.jsx)(V.Provider,{value:y,children:(0,d.jsx)(R,$($({ref:h,className:o,$staggerChildren:s,$numChildren:w,$isInView:m},f),{},{children:c}))})};_.defaultProps={threshold:.3,once:!1,matchRootMarginToThreshold:!0,setInViewIfScrolledPast:!1},_.propTypes={threshold:o().oneOfType([o().number,o().object]).isRequired,once:o().bool.isRequired,setInViewIfScrolledPast:o().bool,matchRootMarginToThreshold:o().bool,staggerChildren:o().shape({animation:o().oneOf(["fade","up","down","left","right","shortUp","pop",!0]),duration:o().number,delay:o().number,stagger:o().number}),className:o().string,children:o().oneOfType([o().node,o().arrayOf(o().node)])};const A=c.default.div.attrs((e=>{let{theme:t}=e;return{$animationDefaults:t?.pmp?.animation?.inView?.defaults||i.A.inView.defaults,$animationPresets:t?.pmp?.animation?.inView?.presets||i.A.inView.presets}})).withConfig({componentId:"pmp-module__sc-c0yj7u-0"})(["--default-start-x:",";--default-end-x:",";--default-start-y:",";--default-end-y:",";--default-start-scale:",";--default-end-scale:",";--default-start-rotate:",";--default-end-rotate:",";--default-start-alpha:",";--default-end-alpha:",";--default-show-duration:",";--default-hide-duration:",";--default-show-delay:",";--default-hide-delay:",";--default-show-easing:",";--default-hide-easing:",";"," "," "," "," "," "," "," will-change:transform,opacity;"],(e=>{let{$animationDefaults:t}=e;return t["start-x"]}),(e=>{let{$animationDefaults:t}=e;return t["end-x"]}),(e=>{let{$animationDefaults:t}=e;return t["start-y"]}),(e=>{let{$animationDefaults:t}=e;return t["end-y"]}),(e=>{let{$animationDefaults:t}=e;return t["start-scale"]}),(e=>{let{$animationDefaults:t}=e;return t["end-scale"]}),(e=>{let{$animationDefaults:t}=e;return t["start-rotate"]}),(e=>{let{$animationDefaults:t}=e;return t["end-rotate"]}),(e=>{let{$animationDefaults:t}=e;return t["start-alpha"]}),(e=>{let{$animationDefaults:t}=e;return t["end-alpha"]}),(e=>{let{$animationDefaults:t}=e;return t["show-duration"]}),(e=>{let{$animationDefaults:t}=e;return t["hide-duration"]}),(e=>{let{$animationDefaults:t}=e;return t["show-delay"]}),(e=>{let{$animationDefaults:t}=e;return t["hide-delay"]}),(e=>{let{$animationDefaults:t}=e;return t["show-easing"]}),(e=>{let{$animationDefaults:t}=e;return t["hide-easing"]}),(e=>{let{$isInView:t,animation:n}=e;return t&&n?N:C}),(e=>k(e)),(e=>{let{delay:t}=e;return!isNaN(t)&&null!==t&&(0,c.css)(["--show-delay:",";"],t)}),(e=>{let{duration:t}=e;return!isNaN(t)&&null!==t&&(0,c.css)(["--show-duration:",";"],t)}),(e=>E(e)),(e=>I(e)),(e=>S(e)));var T=e=>{let{animation:t,duration:n,delay:r=0,staggerChildren:s,className:o,children:l}=e,c=(0,a.Z)(e,b);const{isInView:f}=(0,u.useContext)(V),p=(0,i.u)(),h=l?Array.isArray(l)?l.length:1:0;return(0,d.jsx)(A,$($({$isInView:!(!p||!t)||f,animation:t,duration:n,delay:r,className:o,children:l},c),{},{$staggerChildren:s,$numChildren:h,children:l}))};const M=e=>{let{tag:t,className:n}=e,r=(0,a.Z)(e,y);return(e,a)=>{const i=t;return(0,d.jsx)(i,$($({className:n},r),{},{children:a}))}},L=e=>{let{data:t,options:n,className:r}=e,i=(0,a.Z)(e,w);const s={renderNode:{[f.RG.PARAGRAPH]:M($({tag:"p",className:r},i)),[f.RG.UL_LIST]:M($({tag:"ul",className:r},i)),[f.RG.OL_LIST]:M($({tag:"ul",className:r},i))}};return(0,p.h)(t,$($({},s),n))};L.defaultProps={options:{}},L.propTypes={data:o().object.isRequired,options:o().object,className:o().string}},2771:function(e,t,n){n.d(t,{A:function(){return w},B:function(){return x},C:function(){return m},N:function(){return p},P:function(){return y},R:function(){return h},S:function(){return f},a:function(){return I},b:function(){return O},c:function(){return l},d:function(){return z},e:function(){return N},f:function(){return D},g:function(){return j},h:function(){return C},i:function(){return b},m:function(){return d},s:function(){return P},u:function(){return g}});var r=n(95235),a=n(2784),i=n(52322),s=n(82731);function o(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function u(e){for(var t=1;t0&&void 0!==arguments[0]?arguments[0]:[];if(!e||!Array.isArray(e)||!e.length)return null;let t=[];return e.forEach((e=>{"string"===typeof e?t.push(e):Array.isArray(e)&&t.push(l(e))})),t.join(" ")},c=e=>{let{settings:t,prefix:n}=e;return Object.entries(t).reduce(((e,t)=>{let[r,a]=t;return e+`\n --${n}-${r}: ${a};\n `}),"")},d=(e,t)=>{const n=u(u({},e),t);for(const[r,a]of Object.entries(n))if("object"===typeof a&&null!==a){if(!t[r])continue;n[r]=d(e[r],t[r])}return n},f="https://www.nintendo.com/_next/static",p="pmp-module",h="is-reduced-motion",m={cloud:{cloudName:"ncom"},url:{privateCdn:!0,secure:!0,secureDistribution:"assets.nintendo.com",analytics:!1,forceVersion:!1}};function g(){const{0:e,1:t}=(0,a.useState)(!1);return(0,a.useEffect)((()=>{const e=e=>t(e.matches),n=window.matchMedia("(prefers-reduced-motion)");return t(n.matches),n.addEventListener("change",e),()=>n.removeEventListener("change",e)}),[]),e}const b=(0,a.createContext)(),y=e=>{let{marketingPage:t,locale:n="en-us",DemoButton:r,children:s}=e;const{0:o,1:u}=(0,a.useState)(!1),{0:l,1:c}=(0,a.useState)(!0),d={marketingPage:t,locale:n,DemoButton:r,modalOpen:o,setModalOpen:u,audioMuted:l,setAudioMuted:c};return(0,i.jsx)(b.Provider,{value:d,children:s})},w={durationFactor:{default:1,reducedMotion:0},easing:{in:"cubic-bezier(0.51, 0, 0.9, 0.43)","back-in":"cubic-bezier(0.38, -0.37, 0.83, 0.23)",out:"cubic-bezier(0.35, 0.91, 0.3, 0.99)","back-out":"cubic-bezier(0.21, 0.12, 0.35, 1.43)","in-out":"cubic-bezier(0.75, 0, 0.21, 0.99)","in-out-quart":"cubic-bezier(0.77, 0, 0.175, 1)"},inView:{defaults:{"start-alpha":0,"start-rotate":"0deg","start-scale":1,"start-x":0,"start-y":0,"end-alpha":1,"end-rotate":"0deg","end-scale":1,"end-x":0,"end-y":0,"show-delay":0,"show-duration":.4,"show-easing":"cubic-bezier(0.75, 0, 0.21, 0.99)","hide-delay":0,"hide-duration":.4,"hide-easing":"cubic-bezier(0.75, 0, 0.21, 0.99)","stagger-amount":.2,"stagger-delay":0},presets:{fade:{"start-alpha":0},pop:{"start-scale":.5,"start-alpha":0,"show-easing":"cubic-bezier(0.21, 0.12, 0.35, 1.43)","hide-easing":"cubic-bezier(0.38, -0.37, 0.83, 0.23)"},up:{"start-alpha":0,"start-y":"50%"},shortUp:{"start-alpha":0,"start-y":"1em"},down:{"start-alpha":0,"start-y":"-50%"},right:{"start-alpha":0,"start-x":"-50%"},left:{"start-alpha":0,"start-x":"50%"}}}},v={small:{max:"639px"},medium:{min:"640px",max:"1023px"},large:{min:"1024px",max:"1143px"},xlarge:{min:"1144px",max:"1439px"},xxlarge:{min:"1440px"},heroOverlap:{min:"1240px"}},$=Object.entries(v).reduce(((e,t)=>{let[n,{min:r,max:a}]=t;const i=r&&a,s=""+(r?"(min-width: "+r+")":""),o={[n]:`${s}${i?" and ":""}${""+(a?"(max-width: "+a+")":"")}`};return i&&(o[`${n}Up`]=`${s}`),u(u({},e),o)}),{});var x=(0,s.createGlobalStyle)([".","{--duration-factor:",";"," &.","{--duration-factor:",";}}"],(e=>{let{theme:t}=e;return t.pmp.namespace}),(e=>{let{theme:t}=e;return t?.pmp?.animation?.durationFactor?.default||w.durationFactor.default}),(e=>{let{theme:t}=e;return(0,s.css)([""," ",""],c({settings:t?.pmp?.animation?.easing||w.easing,prefix:"ease"}),c({settings:t?.pmp?.animation?.inView?.defaults||w.inView.defaults,prefix:"default"}))}),h,(e=>{let{theme:t}=e;return t?.pmp?.animation?.durationFactor?.reducedMotion||w.durationFactor.reducedMotion}));var O=(0,s.createGlobalStyle)([".","{--gutter-width:","px;@media ","{--gutter-width:","px;}}"],(e=>{let{theme:t}=e;return t.pmp.namespace}),(e=>{let{theme:t}=e;return t.pmp.layout.gutterWidth}),(e=>{let{theme:t}=e;return t.pmp.breakpoints.mediumUp}),(e=>{let{theme:t}=e;return t.pmp.layout.gutterWidthMediumUp}));const j=(e,t)=>100/e.pmp.layout.numberOfColumns*t+"%",P=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:1;return t=>t?.theme?.pmp?.layout?.baseSpace*e+"px"},D=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"px";return isNaN(e)||null===e?(0,s.css)(["position:absolute;top:0;left:0;width:100%;height:100%;"]):(0,s.css)(["position:absolute;top:","",";right:","",";bottom:","",";left:","",";"],e,t,e,t,e,t,e,t)},z=function(){let{theme:e,breakpoint:t,start:n=0,steps:r=15,baseClassName:a="child-spacing"}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};if(n>r)return;let i="",s=`${a}${t?"-"+t:""}`;for(let o=n;o<=r;o++)i+=`\n .${s}--${o} {\n > * + * {\n margin-top: ${e.pmp.layout.baseSpace*o}px;\n }\n }\n `;return i},N=function(){let{theme:e,breakpoint:t,start:n=0,steps:r=15,type:a,direction:i}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};if(!a||!i)return;if(n>r)return;let s="",o=`${a}-${i}${t?"-"+t:""}`;for(let u=n;u<=r;u++)s+=`\n .${o}--${u} {\n ${a}-${i}: ${e.pmp.layout.baseSpace*u}px;\n }\n `;return s},C=function(){let{start:e=0,steps:t=10}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};if(isNaN(e)||isNaN(t)||e>t)return;let n="";for(let r=e;r<=t;r++){const e=5*r;n+=`\n .layer-${e} {\n z-index: ${e};\n }\n `}return n},I={namespace:p,animation:w,breakpoints:u(u({},$),{},{ranges:v}),colors:{main:"#222222",black:"#000000","grey-100":"#cccccc","grey-200":"#888888","grey-300":"#555555","grey-400":"#222222",white:"#ffffff"},layout:{totalWidth:1392,numberOfColumns:12,gutterWidth:16,gutterWidthMediumUp:24,baseSpace:8},typography:{families:{body:"sans-serif",heading:"sans-serif"},weights:{regular:400,bold:700,body:400,heading:700},small:{"title-1":{size:30},"title-2":{size:24},"title-3":{size:20},"title-4":{size:16},"title-5":{size:16},"title-6":{size:16},body:{size:16},"body--larger":{size:18},"body--smaller":{size:12},"body--legal":{size:10}},medium:{"title-1":{size:30},"title-2":{size:24},"title-3":{size:20},"title-4":{size:16},"title-5":{size:16},"title-6":{size:16},body:{size:16},"body--larger":{size:18},"body--smaller":{size:12},"body--legal":{size:10}},large:{"title-1":{size:54},"title-2":{size:38},"title-3":{size:30},"title-4":{size:24},"title-5":{size:24},"title-6":{size:24},body:{size:18},"body--larger":{size:22},"body--smaller":{size:16},"body--legal":{size:10}}},shadows:{},iconSize:{inline:"1em"}}},52049:function(e,t,n){n.d(t,{Gd:function(){return a},YD:function(){return i}});var r=n(2784);n(52322);function a({initial:e=!1,duration:t=300,isVisible:n=!1}){const a=(0,r.useRef)(e),[i,s]=(0,r.useState)(a.current?"entered":"exited"),o="number"==typeof t?t:t.enter,u="number"==typeof t?t:t.exit,l=(0,r.useRef)(void 0);return(0,r.useEffect)((()=>{clearTimeout(l.current),"mounted"===i?l.current=setTimeout((()=>{s("entering")}),100):"entering"===i?l.current=setTimeout((()=>{s("entered")}),o):"exiting"===i&&(l.current=setTimeout((()=>{s("exited")}),u))}),[o,u,i]),(0,r.useEffect)((()=>{a.current?a.current=!1:s((e=>{if(n){if("exited"===e||"exiting"===e)return"mounted"}else if("exited"!==e&&"exiting"!==e)return"exiting";return e}))}),[n]),{render:"exited"!==i,animate:"entering"===i||"entered"===i,currentDuration:"entering"===i?o:u,state:i}}function i(e=.3,t=!0,n=!1){const[a,i]=(0,r.useState)(!1),[s,o]=(0,r.useState)(),u=(0,r.useRef)(),l=(0,r.useCallback)((([e],r)=>{const a=e.isIntersecting||n&&e.boundingClientRect.top<0;i(a),t&&a&&r.unobserve(e.target)}),[t,n]);return(0,r.useEffect)((()=>{if(u.current||!s)return;const t="number"==typeof e?{threshold:e}:e;return u.current=new IntersectionObserver(l,t),u.current.observe(s),()=>{u.current&&u.current.unobserve(s)}}),[l,s,e]),[o,a,s]}(0,r.createContext)({})}}]); //# sourceMappingURL=1625-06705a125ef1c3cf.js.map