!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]="9a8ac812-5691-4e67-910e-0b25ed1e5e64",e._sentryDebugIdIdentifier="sentry-dbid-9a8ac812-5691-4e67-910e-0b25ed1e5e64")}catch(e){}}(),(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[8919],{88919:function(e,t,n){n.d(t,{I:function(){return m},S:function(){return p}});var r=n(95235),a=n(82269),i=n(2771),s=n(82731),o=n(14566),l=n(52322),u=n(17072);const c=["assetPath","alt","aspectRatio","dimensions","className","assetEntry"];function d(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 f(e){for(var t=1;t{let{$dimensions:t}=e;return t&&t.width&&t.height&&(0,s.css)(["aspect-ratio:"," / ",";"],t.width,t.height)})),h=s.default.div.withConfig({componentId:"pmp-module__sc-l22pbt-1"})(["position:relative;width:100%;",""],(e=>{let{$aspectRatio:t}=e;return t&&(0,s.css)(["padding-top:","%;","{",";}"],100*t,p,(0,i.f)())}));function m(e){let{assetPath:t,alt:n="",aspectRatio:r,dimensions:i,className:s,assetEntry:o}=e,d=(0,a.Z)(e,c),p=r||i&&i.height/i.width;if(o){const e=(0,u.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 p?(0,l.jsx)(h,f(f({$aspectRatio:p,className:s},d),{},{children:(0,l.jsx)(g,{assetPath:t,alt:n})})):i&&i.width&&i.height||"string"===typeof p&&isNaN(p)||!p?(0,l.jsx)(g,f({assetPath:t,alt:n,className:s,$dimensions:i},d)):null}function g(e){let t=Object.assign({},e);return(0,l.jsx)(p,f({cloudinaryConfig:i.C},t))}},17072:function(e,t,n){n.d(t,{I:function(){return L},R:function(){return F},V:function(){return B},a:function(){return G},b:function(){return M},c:function(){return N},d:function(){return C},e:function(){return z},g:function(){return D},i:function(){return j},r:function(){return P},u:function(){return I}});var r=n(95235),a=n(82269),i=n(2784),s=n(52049),o=n(82731),l=n(2771),u=n(52322),c=n(13980),d=n.n(c),f=n(80865),p=n(84004),h=n(86875),m=n(69133),g=n(34406);const y=["$staggerChildren"],b=["threshold","once","setInViewIfScrolledPast","matchRootMarginToThreshold","staggerChildren","className","children"],w=["animation","duration","delay","staggerChildren","className","children"],v=["tag","className"],x=["data","options","className"];function $(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 O(e){for(var t=1;t`calc(${e} * 1s * var(--duration-factor))`,z=()=>(0,o.css)(["appearance:none;background:none;border-radius:0;border:none;color:inherit;cursor:pointer;display:inline-block;font-family:inherit;font-size:100%;font:inherit;line-height:1.15;margin:0;padding:0;"]),D=(e,t)=>{for(const n of t){if(n.__entryId===e)return n;if(n.modules){const t=D(e,n.modules);if(t)return t}else;}},N=()=>{const e=(0,i.useContext)(l.i);if(!e)throw new Error("usePage hook must be used within a PageProvider.");return e},I=e=>{if("object"!==typeof e)throw new Error("Must pass an object of keys that map to entry IDs.");const{marketingPage:t}=N(),n=(0,i.useCallback)(((e,r)=>{let[a,i]=r;switch(typeof i){case"string":e[a]=D(i,t.modules);break;case"object":e[a]=Object.entries(i).reduce(n,{})}return e}),[t.modules]);return Object.entries(e).reduce(n,{})},k=(0,o.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));"],C("var(--show-duration, var(--default-show-duration))"),C("var(--show-delay, var(--default-show-delay))")),S=(0,o.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));"],C("var(--hide-duration, var(--default-hide-duration))"),C("var(--hide-delay, var(--default-hide-delay))")),E=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},_=e=>{let{$staggerChildren:t,$numChildren:n,$animationDefaults:r}=e;if(t&&n)return(0,o.css)(["--show-duration:",";"],t.duration||r["show-duration"]||.4)},V=e=>{let{animation:t,$animationPresets:n}=e;if(t&&n){const e=n[t]||n.fade;switch(t){case"fade":return(0,o.css)(["--start-alpha:",";--end-alpha:",";"],e["start-alpha"],e["end-alpha"]);case"pop":return(0,o.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,o.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,o.css)(["--start-alpha:",";--end-alpha:",";--start-x:",";--end-x:",";"],e["start-alpha"],e["end-alpha"],e["start-x"],e["end-x"])}}},A=e=>{let{$staggerChildren:t,$isInView:n}=e;if(t)return n?(0,o.css)(["> *{","}"],k):(0,o.css)(["> *{","}"],S)},R=o.default.div.attrs((e=>{let{theme:t}=e;return{$animationDefaults:t?.pmp?.animation?.inView?.defaults||l.A.inView.defaults,$animationPresets:t?.pmp?.animation?.inView?.presets||l.A.inView.presets}})).withConfig({componentId:"pmp-module__sc-12ak7mp-0"})([""," "," "," ",""],(e=>A(e)),(e=>E(e)),(e=>_(e)),(e=>{let{$staggerChildren:t}=e,n=(0,a.Z)(e,y);if(!t)return;const{animation:r}=t;return r?V(O({animation:r},n)):void 0})),M=(0,i.createContext)(),L=e=>{let{threshold:t=.3,once:n=!1,setInViewIfScrolledPast:r=!1,matchRootMarginToThreshold:o=!0,staggerChildren:l,className:c,children:d}=e,f=(0,a.Z)(e,b);const p=(0,i.useMemo)((()=>O(O(O({},"object"!==typeof t&&{threshold:t}),o&&{rootMargin:100*t+"% 0px 0px 0px"}),"object"===typeof t&&{threshold:t})),[o,t]),[h,m,g]=(0,s.YD)(p,n,!(!n||!r)&&r),y={isInView:m,domNode:g},w=d?Array.isArray(d)?d.length:1:0;return(0,u.jsx)(M.Provider,{value:y,children:(0,u.jsx)(R,O(O({ref:h,className:c,$staggerChildren:l,$numChildren:w,$isInView:m},f),{},{children:d}))})},T=o.default.div.attrs((e=>{let{theme:t}=e;return{$animationDefaults:t?.pmp?.animation?.inView?.defaults||l.A.inView.defaults,$animationPresets:t?.pmp?.animation?.inView?.presets||l.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?k:S}),(e=>V(e)),(e=>{let{delay:t}=e;return!isNaN(t)&&null!==t&&(0,o.css)(["--show-delay:",";"],t)}),(e=>{let{duration:t}=e;return!isNaN(t)&&null!==t&&(0,o.css)(["--show-duration:",";"],t)}),(e=>A(e)),(e=>E(e)),(e=>_(e)));var G=e=>{let{animation:t,duration:n,delay:r=0,staggerChildren:s,className:o,children:c}=e,d=(0,a.Z)(e,w);const{isInView:f}=(0,i.useContext)(M),p=(0,l.u)(),h=c?Array.isArray(c)?c.length:1:0;return(0,u.jsx)(T,O(O({$isInView:!(!p||!t)||f,animation:t,duration:n,delay:r,className:o,children:c},d),{},{$staggerChildren:s,$numChildren:h,children:c}))};const Z=e=>{let{tag:t,className:n}=e,r=(0,a.Z)(e,v);return(e,a)=>{const i=t;return(0,u.jsx)(i,O(O({className:n},r),{},{children:a}))}},F=e=>{let{data:t,options:n,className:r}=e,i=(0,a.Z)(e,x);const s={renderNode:{[f.RG.PARAGRAPH]:Z(O({tag:"p",className:r},i)),[f.RG.UL_LIST]:Z(O({tag:"ul",className:r},i)),[f.RG.OL_LIST]:Z(O({tag:"ul",className:r},i))}};return(0,p.h)(t,O(O({},s),n))};F.defaultProps={options:{}},F.propTypes={data:d().object.isRequired,options:d().object,className:d().string};const U=o.default.button.withConfig({componentId:"pmp-module__sc-s2evg1-0"})(["",";font:inherit;"],z()),W=o.default.div.withConfig({componentId:"pmp-module__sc-s2evg1-1"})(["border-radius:",";overflow:hidden;text-align:center;width:min(90vw,120vh);"],(e=>{let{theme:t}=e;return t.borderRadius}));var B=e=>{let{assetPath:t,posterPath:n,dialogLabel:r,onClick:a,className:s,children:o,hashId:l,assetEntry:c,lang:d="en"}=e;const{setModalOpen:f}=N(),{0:p,1:g}=(0,i.useState)(!1),y=(0,i.useRef)();if(c){const e=P(c);e||console.log('Asset is undefinded, Please check the "assetEntry"'),t=e}const b=(0,i.useCallback)((()=>{a&&a(),g(!0),f(!0)}),[a,f]);return(0,i.useEffect)((()=>{if(!l)return;const{hash:e}=window.location;e===`#${l}`&&(document.getElementById(l)?.scrollIntoView(),setTimeout((()=>{b()}),100))}),[l,b]),(0,u.jsxs)(u.Fragment,{children:[(0,u.jsx)(U,{ref:y,onClick:b,className:s,children:o}),!j&&(0,u.jsx)(h.M,{visible:p,lang:d,dialogLabel:r,onClose:()=>{g(!1),f(!1)},containChildren:!1,children:(0,u.jsx)(W,{className:"text-center",children:p&&(0,u.jsx)(m.V,{assetPath:t,posterPath:n,lang:d})})})]})}},2771:function(e,t,n){n.d(t,{A:function(){return w},B:function(){return $},C:function(){return m},N:function(){return p},P:function(){return b},R:function(){return h},S:function(){return f},a:function(){return I},b:function(){return O},c:function(){return u},d:function(){return z},e:function(){return D},f:function(){return C},g:function(){return j},h:function(){return N},i:function(){return y},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 l(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(u(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=l(l({},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 y=(0,a.createContext)(),b=e=>{let{marketingPage:t,locale:n="en-us",DemoButton:r,children:s}=e;const{0:o,1:l}=(0,a.useState)(!1),{0:u,1:c}=(0,a.useState)(!0),d={marketingPage:t,locale:n,DemoButton:r,modalOpen:o,setModalOpen:l,audioMuted:u,setAudioMuted:c};return(0,i.jsx)(y.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"}},x=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}`),l(l({},e),o)}),{});var $=(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"},C=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},D=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 l=n;l<=r;l++)s+=`\n .${o}--${l} {\n ${a}-${i}: ${e.pmp.layout.baseSpace*l}px;\n }\n `;return s},N=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:l(l({},x),{},{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,l="number"==typeof t?t:t.exit,u=(0,r.useRef)(void 0);return(0,r.useEffect)((()=>{clearTimeout(u.current),"mounted"===i?u.current=setTimeout((()=>{s("entering")}),100):"entering"===i?u.current=setTimeout((()=>{s("entered")}),o):"exiting"===i&&(u.current=setTimeout((()=>{s("exited")}),l))}),[o,l,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:l,state:i}}function i(e=.3,t=!0,n=!1){const[a,i]=(0,r.useState)(!1),[s,o]=(0,r.useState)(),l=(0,r.useRef)(),u=(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(l.current||!s)return;const t="number"==typeof e?{threshold:e}:e;return l.current=new IntersectionObserver(u,t),l.current.observe(s),()=>{l.current&&l.current.unobserve(s)}}),[u,s,e]),[o,a,s]}(0,r.createContext)({})}}]); //# sourceMappingURL=8919-a92982c6a7019c67.js.map