Funny Shooter 2
0% {
transform: rotate(0deg);
}
100% {
transform: rotate(360deg);
}
`)),S=(0,l.F4)(v||(v=w`
0% {
stroke-dasharray: 1px, 200px;
stroke-dashoffset: 0;
}
50% {
stroke-dasharray: 100px, 200px;
stroke-dashoffset: -15px;
}
100% {
stroke-dasharray: 100px, 200px;
stroke-dashoffset: -125px;
}
`)),C=(0,d.ZP)("span",{name:"MuiCircularProgress",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[n.variant],t[`color${(0,c.Z)(n.color)}`]]}})((e=>{let{ownerState:t,theme:n}=e;return(0,i.Z)({display:"inline-block"},"determinate"===t.variant&&{transition:n.transitions.create("transform")},"inherit"!==t.color&&{color:(n.vars||n).palette[t.color].main})}),(e=>{let{ownerState:t}=e;return"indeterminate"===t.variant&&(0,l.iv)(b||(b=w`
animation: ${0} 1.4s linear infinite;
`),k)})),E=(0,d.ZP)("svg",{name:"MuiCircularProgress",slot:"Svg",overridesResolver:(e,t)=>t.svg})({display:"block"}),P=(0,d.ZP)("circle",{name:"MuiCircularProgress",slot:"Circle",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.circle,t[`circle${(0,c.Z)(n.variant)}`],n.disableShrink&&t.circleDisableShrink]}})((e=>{let{ownerState:t,theme:n}=e;return(0,i.Z)({stroke:"currentColor"},"determinate"===t.variant&&{transition:n.transitions.create("stroke-dashoffset")},"indeterminate"===t.variant&&{strokeDasharray:"80px, 200px",strokeDashoffset:0})}),(e=>{let{ownerState:t}=e;return"indeterminate"===t.variant&&!t.disableShrink&&(0,l.iv)(y||(y=w`
animation: ${0} 1.4s ease-in-out infinite;
`),S)})),I=r.forwardRef((function(e,t){const n=(0,u.Z)({props:e,name:"MuiCircularProgress"}),{className:r,color:l="primary",disableShrink:d=!1,size:p=40,style:g,thickness:v=3.6,value:b=0,variant:y="indeterminate"}=n,w=(0,a.Z)(n,m),k=(0,i.Z)({},n,{color:l,disableShrink:d,size:p,thickness:v,value:b,variant:y}),S=(e=>{const{classes:t,variant:n,color:r,disableShrink:a}=e,i={root:["root",n,`color${(0,c.Z)(r)}`],svg:["svg"],circle:["circle",`circle${(0,c.Z)(n)}`,a&&"circleDisableShrink"]};return(0,s.Z)(i,h,t)})(k),I={},A={},T={};if("determinate"===y){const e=2*Math.PI*((x-v)/2);I.strokeDasharray=e.toFixed(3),T["aria-valuenow"]=Math.round(b),I.strokeDashoffset=`${((100-b)/100*e).toFixed(3)}px`,A.transform="rotate(-90deg)"}return(0,f.jsx)(C,(0,i.Z)({className:(0,o.Z)(S.root,r),style:(0,i.Z)({width:p,height:p},A,g),ownerState:k,ref:t,role:"progressbar"},T,w,{children:(0,f.jsx)(E,{className:S.svg,ownerState:k,viewBox:"22 22 44 44",children:(0,f.jsx)(P,{className:S.circle,style:I,ownerState:k,cx:x,cy:x,r:(x-v)/2,fill:"none",strokeWidth:v})})}))}));var A=n(82937),T=n(16157),Z=n(85541);const R={"@keyframes bob":{"0%":{transform:"translate(0px, 0px)"},"50%":{transform:"translate(0px, 10.5px)"},"100%":{transform:"translate(0px, 0px)"}}},L=(0,d.ZP)("a")({textDecoration:"none"}),_=r.memo((e=>{let{clickUrl:t,customSx:n}=e;const r=(0,f.jsx)(T.Z,{sx:{...R,...n},children:(0,f.jsx)(Z.Z,{viewBox:"0 0 46 50",sx:{width:40,height:40,animation:"bob 800ms linear infinite normal forwards"},shapeRendering:"geometricPrecision",textRendering:"geometricPrecision",children:(0,f.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M39.9436 1.74993C39.685 1.46063 39.3511 1.33714 38.9704 1.33714L38.9668 1.35126C37.5519 1.35126 35.4655 3.05179 34.004 4.4348C30.9264 2.96006 27.145 2.2368 22.552 2.2368C17.959 2.2368 14.1776 2.96006 11.1036 4.43127C9.64206 3.04826 7.55563 1.34773 6.14434 1.34773C5.76009 1.34773 5.42971 1.47121 5.17116 1.76051C2.97341 4.23723 2.76513 10.1679 2.84414 13.5831C1.853 16.2504 1.35025 19.3692 1.35025 22.9325C1.35025 30.4191 3.53362 35.9653 7.83215 39.4334C10.7302 41.7655 14.5116 43.1097 19.3308 43.5119C19.1291 43.6103 18.9246 43.7083 18.7177 43.8075C18.3463 43.9855 17.9671 44.1673 17.5819 44.3621L15.8367 45.2018L14.8455 45.6781C14.5704 45.8188 14.2933 45.9551 14.013 46.0931C13.3089 46.4395 12.5847 46.7959 11.8218 47.2552L11.5597 47.3892C11.4843 47.4421 11.4161 47.5303 11.4017 47.6327C11.3658 47.8232 11.4986 48.0031 11.6926 48.0313C11.996 48.0753 12.2985 48.1241 12.6008 48.1729C13.2681 48.2806 13.935 48.3883 14.6121 48.4441L15.3483 48.5253C15.5925 48.55 15.8331 48.5711 16.0845 48.5852L17.5604 48.6664C17.7902 48.6734 18.0201 48.6734 18.2499 48.6734C19.9987 48.6734 21.7548 48.557 23.4929 48.2889C25.4608 47.996 27.3964 47.4563 29.253 46.7048C31.106 45.9533 32.8728 44.9725 34.4744 43.7835C37.6489 41.3597 40.1447 38.0998 41.6278 34.4694C42.1701 33.1534 42.5795 31.788 42.8668 30.4015C43.4557 28.1753 43.7537 25.6845 43.7537 22.9255C43.7537 19.3727 43.2546 16.2609 42.267 13.5937C42.3496 10.182 42.1449 4.23017 39.9436 1.74993ZM33.7454 2.83305C35.8857 0.927886 37.6022 0 38.9704 0C39.7712 0 40.4607 0.299887 40.9743 0.874965C43.3156 3.51044 43.7214 9.07776 43.6388 13.3785C44.6228 16.141 45.122 19.3515 45.122 22.9255C45.122 25.7585 44.8131 28.3764 44.199 30.7014C43.883 32.1973 43.4449 33.6332 42.8955 34.9633C41.3082 38.8477 38.6867 42.2594 35.3003 44.8419C33.6269 46.0838 31.7703 47.1246 29.7773 47.9325C27.7842 48.7369 25.7409 49.2979 23.7119 49.5978C21.9918 49.8659 20.1567 50 18.2571 50C18.0201 50 17.7794 50 17.5424 49.9929H17.4886L16.0126 49.9118C15.7397 49.8977 15.474 49.8765 15.201 49.8448L14.4828 49.7671C13.7915 49.7105 13.1226 49.6037 12.4731 49.4999C12.4343 49.4937 12.3956 49.4875 12.3569 49.4814L12.355 49.4811C12.0683 49.4353 11.7817 49.3895 11.5058 49.3473C11.0498 49.2838 10.6332 49.0368 10.3639 48.6699C10.0981 48.31 9.99039 47.8549 10.0622 47.4174C10.134 46.9764 10.389 46.5707 10.7697 46.299L10.8487 46.2426L10.9348 46.1967L11.1575 46.0838C11.9511 45.6075 12.6837 45.2477 13.3947 44.8984L13.3947 44.8984C13.4415 44.8754 13.4882 44.8525 13.5348 44.8297C13.7671 44.7158 13.9969 44.6031 14.2243 44.4856L14.2386 44.4785L14.253 44.4715L14.885 44.1681C11.7716 43.4413 9.16085 42.2135 6.97747 40.4565C2.34857 36.7168 0 30.8178 0 22.922C0 19.3374 0.502749 16.1198 1.4903 13.3538C1.4077 9.06012 1.81708 3.50692 4.15488 0.871437C4.66122 0.299887 5.3543 0 6.15152 0C7.51972 0 9.23626 0.927886 11.373 2.82952C14.4757 1.52413 18.1421 0.885549 22.5556 0.885549C26.969 0.885549 30.6427 1.52413 33.7454 2.83305ZM22.5592 9.70929C27.0732 9.70929 30.2944 10.5419 32.3951 12.2389C34.8766 14.2499 36.0904 17.7463 36.0904 22.9255C36.0904 33.8978 30.6822 36.1417 22.5592 36.1417C14.4361 36.1417 9.02797 33.8943 9.02797 22.9255C9.02797 17.7498 10.2346 14.2464 12.7232 12.2389C14.824 10.5349 18.0452 9.70929 22.5592 9.70929ZM17.9051 28.3058C19.4601 28.3058 20.7313 27.0675 20.7313 25.5504V22.3081C20.6559 22.3151 20.5769 22.3187 20.4979 22.3187C19.2482 22.3187 18.2391 21.3343 18.2391 20.1171C18.2391 19.1293 18.9034 18.2931 19.8192 18.0144C19.3164 17.5593 18.6449 17.277 17.9051 17.277C16.3502 17.277 15.0789 18.5154 15.0789 20.0325V25.5504C15.0789 27.0639 16.3502 28.3058 17.9051 28.3058ZM27.2096 28.3058C28.7646 28.3058 30.0358 27.0675 30.0358 25.5504V22.0929C29.9245 22.1105 29.8132 22.1211 29.6982 22.1211C28.4485 22.1211 27.4395 21.1367 27.4395 19.9196C27.4395 18.967 28.0607 18.159 28.9262 17.8521C28.4485 17.4922 27.856 17.277 27.2096 17.277C25.6547 17.277 24.3834 18.5154 24.3834 20.0325V25.5504C24.3834 27.0639 25.6547 28.3058 27.2096 28.3058Z",fill:"white"})})});return t?(0,f.jsx)(L,{href:t,target:"_blank",children:r}):r}));var j=n(46325),M=n(93458);const z=e=>{let{adIsLoading:t,useGameThumbLoader:n}=e;return t?n?(0,f.jsx)(M.Z,{children:(0,f.jsx)(I,{style:{color:"white",marginTop:26}})}):(0,f.jsx)(A.ZP,{container:!0,justifyContent:"center",alignItems:"center",sx:{width:1,height:1,background:j.VP},children:(0,f.jsx)(A.ZP,{item:!0,children:(0,f.jsx)(_,{})})}):null};function F(){return{width:window.innerWidth,height:window.innerHeight-45}}const D=e=>{let{adIsLoading:t,adContainerRef:n,width:r,height:a,useGameThumbLoader:i}=e;const o=F(),s={width:void 0!==r?r:o.width,height:void 0!==a?a:o.height};return(0,f.jsx)("div",{ref:n,style:s,children:(0,f.jsx)(z,{adIsLoading:t,useGameThumbLoader:i})})}},99161:(e,t,n)=>{"use strict";n.d(t,{L7:()=>r,YK:()=>i,gp:()=>o,tp:()=>a});class r extends Error{constructor(){super("No ad available")}}class a extends Error{constructor(){super("Unknown error playing ad")}}class i extends Error{constructor(){super("Banner timeout")}}class o extends Error{constructor(){super("AdBlock detected")}}},3970:(e,t,n)=>{"use strict";n.d(t,{ZP:()=>u,l3:()=>s});var r=n(47313),a=n(90831),i=n(46417);function o(e){throw new Error("[VideoAddThrotter] No Context Initialized")}const s=r.createContext({canPlayAd:o,adPlayed:o,adErrored:o}),l=18e4;class c extends r.Component{constructor(e){super(e),this.lostFocusAt=Date.now(),this.adPlayed=e=>{if(this.setLastPlayedValue(e,Date.now()),"preroll"===e){const{noMidrollAdInFirstMinutes:e}=(0,a.NI)(),t=this.minTimeBetweenAds("midroll"),n=Math.max(6e4*(e||0),t);this.setLastPlayedValue("midroll",Date.now()-t+n)}else if("rewarded"===e){const e=this.minTimeBetweenAds("midroll"),t=6e4,n=Date.now()-e+t,r=Math.max(this.state.lastAdPlayedAt.midroll,n);this.setLastPlayedValue("midroll",r)}},this.adErrored=e=>{if("midroll"===e){const{timeAfterFailedMidrollInMs:t}=(0,a.NI)(),n=this.minTimeBetweenAds(e),r=null!==t&&void 0!==t?t:6e4;this.setLastPlayedValue(e,Date.now()-n+r)}else this.setLastPlayedValue(e,0)},this.canPlayAd=e=>"preroll"===e||Date.now()-this.state.lastAdPlayedAt[e]>=this.minTimeBetweenAds(e),this.minTimeBetweenAds=e=>{const{minTimeBetweenMidrollAdsInMs:t,minTimeBetweenRewardedAdsInMs:n}=(0,a.NI)();switch(e){case"rewarded":return n||5e3;case"midroll":return t||l;default:return l}},this.handleMidrollVisibilityChange=()=>{if(!("visible"===window.document.visibilityState))return void(this.lostFocusAt=Date.now());if((Date.now()-this.lostFocusAt)/6e4<1)return;const e=Math.max(this.state.lastAdPlayedAt.midroll,Date.now());this.setLastPlayedValue("midroll",e)},this.state={lastAdPlayedAt:{preroll:0,midroll:this.initialLastAdTime("midroll"),rewarded:this.initialLastAdTime("rewarded")}}}componentDidMount(){window.addEventListener("visibilitychange",this.handleMidrollVisibilityChange)}componentWillUnmount(){window.removeEventListener("visibilitychange",this.handleMidrollVisibilityChange)}render(){const{children:e}=this.props;return(0,i.jsx)(s.Provider,{value:{canPlayAd:this.canPlayAd,adPlayed:this.adPlayed,adErrored:this.adErrored},children:e})}setLastPlayedValue(e,t){this.setState((n=>({lastAdPlayedAt:{...n.lastAdPlayedAt,[e]:t}})))}initialLastAdTime(e){const t=(0,a.NI)(),{noMidrollAdInFirstMinutes:n,noRewardedAdInFirstMinutes:r}=t,i="rewarded"===e?r:n;if(void 0!==i){const t=this.minTimeBetweenAds(e);return Date.now()-t+6e4*i}return 0}}const u=c},91177:(e,t,n)=>{"use strict";n.d(t,{M:()=>m,Z:()=>b});var r=n(47313),a=n(90831),i=n(22870),o=n(50009),s=n(52797),l=n(47421),c=n(18088),u=n(46604),d=n(25947),p=n(47605),h=n(99161);const f=async function(){const e=(await n.e(3535).then(n.bind(n,23535))).default,t=window.document.createElement("video");t.setAttribute("playsinline","");const r=window.document.createElement("source");r.src=`data:video/mp4;base64, ${e}`,t.appendChild(r);try{return await function(e,t){const n=new Promise(((t,n)=>{window.setTimeout((()=>n("timeout exceeded")),e)}));return Promise.race([t,n])}(500,t.play()),!0}catch(a){return!1}},m=8e3,g=m+1e3;class v extends r.Component{constructor(){super(...arguments),this.adDisplayContainer=void 0,this.adsLoader=void 0,this.adsManager=void 0,this.adsRequest=void 0,this.adState="initialize",this.adError=null,this.canPlayWithSound=!1,this.canPlayWithSoundPromise=null,this.installTimeout=null,this.onAdsManagerLoaded=e=>{const t=new google.ima.AdsRenderingSettings;this.props.preload&&(t.enablePreloading=!0),this.adsManager=e.getAdsManager(this.props.videoContentRef.current,t),this.canPlayWithSound&&"unmuted"===this.props.isMuted?this.adsManager.setVolume(.3):this.adsManager.setVolume(0),this.adsManager.addEventListener(google.ima.AdEvent.Type.CONTENT_RESUME_REQUESTED,this.onContentResumeRequested,!1),this.adsManager.addEventListener(google.ima.AdErrorEvent.Type.AD_ERROR,this.onAdError,!1),this.adsManager.addEventListener(google.ima.AdEvent.Type.PAUSED,this.onAdPaused,!1),this.adsManager.addEventListener(google.ima.AdEvent.Type.RESUMED,this.onAdResumed,!1),[google.ima.AdEvent.Type.ALL_ADS_COMPLETED,google.ima.AdEvent.Type.CLICK,google.ima.AdEvent.Type.COMPLETE,google.ima.AdEvent.Type.FIRST_QUARTILE,google.ima.AdEvent.Type.LOADED,google.ima.AdEvent.Type.MIDPOINT,google.ima.AdEvent.Type.STARTED,google.ima.AdEvent.Type.THIRD_QUARTILE,google.ima.AdEvent.Type.AD_PROGRESS,google.ima.AdEvent.Type.SKIPPABLE_STATE_CHANGED].forEach((e=>{this.adsManager.addEventListener(e,this.onAdEvent,!1)}));try{const{width:e,height:t}=this.getAdDimesions();this.adsManager.init(e,t,google.ima.ViewMode.NORMAL),this.adState="wait-for-play",this.props.play&&this.playAd()}catch(n){this.onAdError(n)}},this.onAdStarted=e=>{const{adStarted:t}=this.props;if(this.adState="playing",t){const n=e.getAd();window.location.search.includes("raf_debug=true")&&console.log(n),t(n,this.canPlayWithSound)}this.installTimeout&&(window.clearTimeout(this.installTimeout),this.installTimeout=null)},this.onAdEvent=e=>{switch(e.type){case google.ima.AdEvent.Type.STARTED:this.onAdStarted(e);break;case google.ima.AdEvent.Type.AD_PROGRESS:this.adProgressed(e.getAdData());break;case google.ima.AdEvent.Type.COMPLETE:this.onAdCompleted(e.getAd());break;case google.ima.AdEvent.Type.SKIPPABLE_STATE_CHANGED:this.onAdSkippableStateChanged(e)}},this.onAdSkippableStateChanged=e=>{this.props.adSkippableStateChanged&&this.props.adSkippableStateChanged()},this.onAdPaused=()=>{if(this.props.adPaused){const e=()=>{this.adsManager.resume()};this.props.adPaused(e)}},this.onAdResumed=()=>{this.props.adResumed&&this.props.adResumed()},this.onAdMute=()=>{this.adsManager.setVolume(0)},this.onAdUnmute=()=>{this.adsManager.setVolume(.3)},this.onContentResumeRequested=e=>{const{onContentResumeRequested:t}=this.props;if(t){t(e.getAd())}},this.onAdError=e=>{const t=this.props.adError;this.adsManager&&this.adsManager.destroy();let n=new h.tp;try{if(e&&e.getError){const t=e.getError();n=t;const r=google.ima.AdError.ErrorCode.VAST_EMPTY_RESPONSE;if(t.getErrorCode()!==r){const e=t.getInnerError(),n=[t.getMessage()];e&&n.push(e.message),i.kg.error("video-error",t.getErrorCode(),...n)}else n=new h.L7}else i.kg.error("video-error-no-error",e)}catch(r){i.kg.error("video-error-error",r)}this.adState="error",this.adError=n,t&&this.props.play&&t(n)},this.resizeAd=()=>{if(this.adsManager){const{width:e,height:t}=this.getAdDimesions();this.adsManager.resize(e,t,google.ima.ViewMode.NORMAL)}},this.getAdDimesions=()=>this.props.fullSize?(0,p.t)():(0,d.vM)(!1)}async componentDidMount(){const{adType:e,videoUrl:t}=this.props;if("initialize"===this.adState){this.adState="loading-script";try{s.GA.Instance.trackAdImaStarted(e),await(0,l.Z)(),this.adState="loaded-script",this.canPlayWithSoundPromise=this.adCanAutoplay(),this.adDisplayContainer=new google.ima.AdDisplayContainer(this.props.adContainerRef.current,this.props.videoContentRef.current),this.setupAdsLoader(),await this.requestAd(t)}catch(n){this.onAdError(n.message)}}window.addEventListener("resize",this.resizeAd)}componentDidUpdate(e){this.props.play&&!e.play&&("wait-for-play"===this.adState?this.playAd():"error"===this.adState&&this.props.adError&&this.adError&&this.props.adError(this.adError)),this.props.isMuted!==e.isMuted&&("muted"===this.props.isMuted&&this.onAdMute(),"unmuted"===this.props.isMuted&&this.onAdUnmute())}componentWillUnmount(){this.installTimeout&&(window.clearTimeout(this.installTimeout),this.installTimeout=null),window.removeEventListener("resize",this.resizeAd)}render(){return null}setupAdsLoader(){this.adsLoader=new google.ima.AdsLoader(this.adDisplayContainer);const e=this.adsLoader.getSettings(),t=google.ima.ImaSdkSettings.VpaidMode.ENABLED;e.setVpaidMode(t),e.setNumRedirects(20),this.adsLoader.addEventListener(google.ima.AdsManagerLoadedEvent.Type.ADS_MANAGER_LOADED,this.onAdsManagerLoaded,!1),this.adsLoader.addEventListener(google.ima.AdErrorEvent.Type.AD_ERROR,this.onAdError,!1)}async requestAd(e){if("requested"===this.adState||"playing"===this.adState)return;this.adState="requested",this.adDisplayContainer.initialize(),this.adsRequest=new google.ima.AdsRequest,this.adsRequest.adTagUrl=e;const{width:t,height:n}=this.getAdDimesions();this.adsRequest.linearAdSlotWidth=t,this.adsRequest.linearAdSlotHeight=n,this.adsRequest.nonLinearAdSlotWidth=t,this.adsRequest.nonLinearAdSlotHeight=n,this.adsRequest.forceNonLinearFullSlot=!0,this.adsRequest.vastLoadTimeout=m,this.adsRequest.omidAccessModeRules={[google.ima.OmidVerificationVendor.OTHER]:google.ima.OmidAccessMode.FULL};const r=(0,a.NI)(),i=u.Z.crazygamesLocalizedGameUrl(r.locale||c.ZW,(0,o.Z)());this.adsRequest.pageUrl=i,await this.canPlayWithSoundPromise,this.adsRequest.setAdWillPlayMuted(!this.canPlayWithSound),this.adsRequest.setAdWillAutoPlay(!1);try{this.adsLoader.requestAds(this.adsRequest)}catch(s){this.onAdError(s)}}playAd(){try{if("playing"!==this.adState){this.installTimeoutCheck();const{imaRequestStarted:e}=this.props;e&&e(),this.adsManager.start()}}catch(e){this.onAdError(e)}}onAdCompleted(e){this.adState="complete";const{adCompleted:t}=this.props;t&&t(e)}adProgressed(e){const{adProgressed:t}=this.props;t&&t(e)}async adCanAutoplay(){this.canPlayWithSound=await f()}installTimeoutCheck(){this.installTimeout=window.setTimeout((()=>{const{adType:e,adError:t}=this.props;!["playing","complete","error"].includes(this.adState)&&(i.kg.error("[VideoAd] video-error our timeout hit"),s.GA.Instance.trackAdInternalTimeoutHit(e),this.adsManager&&(this.adsManager.destroy(),this.adDisplayContainer.destroy()),t&&t(new Error("[VideoAd] Our timeout hit")))}),g)}}const b=v},14832:(e,t,n)=>{"use strict";n.d(t,{Z:()=>g,r:()=>m});var r=n(47313),a=n(87796),i=n(1168),o=n(23004),s=n(99187),l=n(46417);class c extends r.Component{render(){const{showCrazyLogo:e,children:t}=this.props,n=(0,o.tn)();return i.createPortal((0,l.jsx)(s.Z,{showCrazyLogo:e,isTransparent:!0,children:t}),n)}}var u=n(20637),d=n(36854),p=n(59041),h=n(19314);const f=r.lazy((()=>n.e(6513).then(n.bind(n,66513))));function m(e){switch(e){case"midgame":default:return"midroll";case"rewarded":return"rewarded"}}const g=e=>{let{children:t}=e;const n=r.useContext(u.f),{adStarted:i,adType:o,adFinished:s,adCompleted:g,adError:v,adState:b}=n;if(!["requested","playing"].includes(b))return(0,l.jsx)(l.Fragment,{children:t});if("pwa-popup"===o)return(0,l.jsx)(r.Suspense,{fallback:null,children:(0,l.jsx)(f,{onAdd:s,onCancel:s})});const y=function(e){const t=(0,a.Z)();return"rewarded"===e?()=>t.getRewarded():()=>t.getMidroll()}(o),w=m(o||"midgame"),x=(0,p.Z)()?(0,h.U)()?"disabled":"rewarded"===o?"enabled":"disabled":"immediately";return(0,l.jsx)(d.Z,{adError:v,adStarted:i,adFinished:s,adCompleted:g,adType:w,requestFn:y,wrapper:(0,l.jsx)(c,{showCrazyLogo:!1}),preload:!1,play:!0,fallback:x,fullSize:!0})}},36854:(e,t,n)=>{"use strict";n.d(t,{Z:()=>R});var r=n(47313),a=n(3970),i=n(47144),o=n(22870),s=n(6754),l=n(42379),c=n(82937),u=n(71917);const d=(0,l.ZP)("div",{shouldForwardProp:e=>"isDisplaying"!==e})((e=>{let{isDisplaying:t}=e;return{position:"absolute",display:"flex",flexDirection:"column",[`@media screen and (orientation:landscape) and (max-height: ${u.ot.smallMobileLandscapeHeight}px)`]:{flexDirection:"row"},alignItems:"center"}})),p=(0,l.ZP)(c.ZP,{shouldForwardProp:e=>"isDisplaying"!==e})((e=>{let{isDisplaying:t,theme:{spacing:n}}=e;return{fontSize:"1.5rem",fontWeight:700,[`@media screen and (orientation:landscape) and (max-height: ${u.ot.smallMobileLandscapeHeight}px)`]:{fontSize:"1rem"},display:t?"flex":"none",[`@media screen and (min-height: ${u.ot.smallMobileLandscapeHeight}px)`]:{paddingBottom:n(2)}}}));var h=n(77626),f=n(8242),m=n(47605),g=n(87796),v=n(28153),b=n(99161),y=n(82259),w=n(32606),x=n(46417);class k extends r.Component{constructor(e){super(e),this.adContainerRef=void 0,this.countdownInterval=null,this.adProvider=void 0;const t=(0,v.Qh)(this.getDevice());this.state={adState:"initialize",countdownSec:5,bannerCode:t},this.adContainerRef=r.createRef(),this.adProvider=(0,g.Z)()}async componentDidMount(){await this.requestAd()}async componentWillUnmount(){this.stopCountdown()}render(){switch(this.state.adState){case"displaying":case"requested":return this.renderAd();default:return this.renderContent()}}renderContent(){return(0,x.jsx)(x.Fragment,{children:this.props.children})}renderAd(){const e=!["displaying","error","complete"].includes(this.state.adState);return(0,x.jsxs)(s.Z,{children:[this.renderBannerContainer(),(0,x.jsx)(m.Z,{adContainerRef:this.adContainerRef,adIsLoading:e})]})}renderBannerContainer(){const e="displaying"===this.state.adState,t=()=>{this.setState({adState:"complete"}),this.props.adCompleted&&this.props.adCompleted(),this.props.adFinished&&this.props.adFinished()};let n;return n=0===this.state.countdownSec?(0,x.jsx)(y.S,{variant:"contained",height:50,color:"purple",onClick:t,sx:{minWidth:200},children:(0,x.jsx)(h.Z,{id:"banner.continue"})}):(0,x.jsx)(y.S,{variant:"contained",height:50,color:"grey",disabled:!0,sx:{minWidth:200,color:"white !important",backgroundColor:`${w.D.black[40]} !important`},children:(0,x.jsx)(h.Z,{id:"banner.continueIn",values:{time:this.state.countdownSec}})}),(0,x.jsxs)(d,{isDisplaying:e,children:[(0,x.jsxs)(c.ZP,{container:!0,item:!0,direction:"column",alignItems:"center",style:{width:"max-content",alignSelf:"center"},children:[(0,x.jsx)(p,{isDisplaying:e,children:(0,x.jsx)(h.Z,{id:"banner.advertisement"})}),(0,x.jsx)("div",{id:this.state.bannerCode})]}),(0,x.jsx)(c.ZP,{item:!0,sx:{mt:3},children:n})]})}stopCountdown(){this.countdownInterval&&(clearInterval(this.countdownInterval),this.countdownInterval=null)}startCountdown(){this.countdownInterval=window.setInterval((()=>{const e=this.state.countdownSec-1;this.setState({countdownSec:e}),0!==e||this.stopCountdown()}),1e3)}async requestAd(){if(["requested","displaying"].includes(this.state.adState))return;this.setState({adState:"requested"});const e=window.setTimeout((()=>{"requested"===this.state.adState&&(o.kg.debug("[FallbackBanner] banner timeout hit"),this.setState({adState:"error"}),this.props.adError&&this.props.adError(new b.YK))}),2500),{adType:t}=this.props;await this.adProvider.requestVideoFallbackBanner(t,(t=>{let{empty:n}=t;if("requested"===this.state.adState){if(window.clearTimeout(e),n)return this.setState({adState:"error"}),void(this.props.adError&&this.props.adError(new b.L7));this.setState({adState:"displaying"}),this.props.adStarted&&this.props.adStarted(),this.startCountdown()}}))}getDevice(){const{device:e}=this.props;return e.isMobile||e.isSmallDevice?"mobile":e.isTablet?"tablet":"desktop"}}const S=(0,f.Z)(k);var C=n(18526),E=n(68809);const P=e=>{let{children:t,requestFn:n,adType:a,adError:o,adStarted:s,...l}=e;const[c,u]=r.useState(null),d=r.useRef([]),p=r.useRef(0);r.useEffect((()=>{c||(async()=>{try{const{url:e,bids:t,priceFloor:r}=await n();d.current=t,p.current=r,u(e)}catch(e){o&&o(e,{playing:!1})}})()}),[n,o,c]);const h=()=>{const e=d.current.map((e=>e.cpm)),t=Math.max(...e,p.current);t>0&&(0,E.D)(t),s&&s()};return c?(0,x.jsx)(i.Z,{videoUrl:c,adType:a,adError:o,adStarted:h,...l,children:t}):(0,x.jsx)(x.Fragment,{children:t})};var I=n(87308);const A=r.lazy((()=>n.e(6164).then(n.bind(n,96164))));class T extends Error{constructor(){super("Ad requested too soon")}}class Z extends r.Component{constructor(e){super(e),this.adStarted=()=>{const{adStarted:e,adType:t,adPlayed:n}=this.props;n(t),e&&e()},this.videoAdStarted=()=>{this.adStarted(),this.props.videoAdStarted&&this.props.videoAdStarted()},this.adCompleted=()=>{const{adCompleted:e}=this.props;e&&e()},this.adFinished=()=>{const{adFinished:e}=this.props;this.setState({adPlayState:"finished"}),e&&e()},this.closeAdBlockPopup=()=>{this.adError(new b.gp)},this.fallbackAdError=async e=>{if("displayingBanner"===this.state.adPlayState&&"rewarded"===this.props.adType){await this.shouldRenderAdBlockPopup()?(o.kg.debug("[ThrottledAd] Rendering adBlock popup"),this.setState({adPlayState:"displayingAdBlockPopUp"})):(o.kg.debug("[ThrottledAd] Rendering Countdown"),this.setState({adPlayState:"displayingCountdown"}))}else this.adError(e)},this.videoAdError=(e,t)=>{const{fallback:n="enabled",adType:r}=this.props,a="disabled"!==n;"playingVideo"!==this.state.adPlayState||t.playing?this.adError(e):a?(o.kg.debug("[ThrottledAd] Rendering Fallback banner"),this.setState({adPlayState:"displayingBanner"})):"rewarded"===r?this.setState({adPlayState:"displayingCountdown"}):this.adError(e)},this.adError=e=>{const{adError:t,adErrored:n,adType:r}=this.props;this.setState({adPlayState:"error"},(()=>{n(r),t&&t(e)}))},this.shouldRenderAdBlockPopup=async()=>{if((0,I.uo)())return!1;return await(0,g.Z)().hasAdblock().catch((()=>{}))||!1},this.state={adPlayState:"init"}}componentDidMount(){const{adType:e,canPlayAd:t}=this.props;t(e)?this.allowedToPlayVideo()?this.setState({adPlayState:"playingVideo"}):this.setState({adPlayState:"displayingBanner"}):(this.setState({adPlayState:"throttled"}),this.adThrottleLimit())}render(){const{wrapper:e}=this.props,t=this.renderChildren();return r.cloneElement(e,{},t)}renderChildren(){const{play:e,adType:t}=this.props,{adPlayState:n}=this.state;switch(n){case"init":case"throttled":case"finished":case"error":return null;case"playingVideo":return this.renderVideo();case"displayingBanner":return e?(0,x.jsx)(S,{adStarted:this.adStarted,adFinished:this.adFinished,adError:this.fallbackAdError,adCompleted:this.adCompleted,adType:t}):null;case"displayingCountdown":return(0,x.jsx)(C.Z,{callbackFn:this.adFinished,onStarted:this.adStarted});case"displayingAdBlockPopUp":return(0,x.jsx)(A,{callbackFn:this.closeAdBlockPopup});default:throw new Error("[ThrottledAd] Unexpected state")}}renderVideo(){const{children:e,adType:t,videoUrl:n,requestFn:r,play:a,preload:o,fullSize:s}=this.props;return n?(0,x.jsx)(i.Z,{adStarted:this.videoAdStarted,adFinished:this.adFinished,adError:this.videoAdError,adType:t,adCompleted:this.adCompleted,videoUrl:n,enforceSkipButton:!0,skipIfLongerThanSeconds:"rewarded"===t?31:16,skippableAfterSeconds:5,play:a,preload:o,fullSize:s,children:e}):r?(0,x.jsx)(P,{adStarted:this.videoAdStarted,adFinished:this.adFinished,adError:this.videoAdError,adType:t,adCompleted:this.adCompleted,requestFn:r,enforceSkipButton:!0,skipIfLongerThanSeconds:"rewarded"===t?31:16,skippableAfterSeconds:5,play:a,preload:o,fullSize:s,children:e}):null}adThrottleLimit(){const{adError:e}=this.props;e&&e(new T)}allowedToPlayVideo(){return"immediately"!==this.props.fallback}}const R=e=>{const{canPlayAd:t,adPlayed:n,adErrored:i}=r.useContext(a.l3);return(0,x.jsx)(Z,{canPlayAd:t,adPlayed:n,adErrored:i,...e})}},47144:(e,t,n)=>{"use strict";n.d(t,{D:()=>O,Z:()=>U});var r=n(47313),a=n(22870),i=n(52797),o=n(6754),s=n(47605),l=n(99161),c=n(85541),u=n(46417);const d=r.memo((e=>(0,u.jsxs)(c.Z,{...e,width:"24",height:"24",viewBox:"0 0 24 24",children:[(0,u.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M3.25757 2.33007C3.62757 1.92005 4.2599 1.88759 4.66993 2.25759L12.9814 9.75759C14.3395 10.9831 14.3395 13.0169 12.9814 14.2424L4.66993 21.7424C4.2599 22.1124 3.62757 22.08 3.25757 21.6699C2.88758 21.2599 2.92003 20.6276 3.33006 20.2576L11.6415 12.7576C12.1195 12.3263 12.1195 11.6737 11.6415 11.2424L3.33006 3.74243C2.92003 3.37243 2.88758 2.7401 3.25757 2.33007Z"}),(0,u.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M11.2576 2.33007C11.6276 1.92005 12.2599 1.88759 12.6699 2.25759L20.9814 9.75759C22.3395 10.9831 22.3395 13.0169 20.9814 14.2424L12.6699 21.7424C12.2599 22.1124 11.6276 22.08 11.2576 21.6699C10.8876 21.2599 10.92 20.6276 11.3301 20.2576L19.6415 12.7576C20.1195 12.3263 20.1195 11.6737 19.6415 11.2424L11.3301 3.74243C10.92 3.37243 10.8876 2.7401 11.2576 2.33007Z"})]})));var p=n(77626),h=n(42379),f=n(73477);const m=(0,h.ZP)("div",{shouldForwardProp:e=>"position"!==e})((e=>{let{position:t}=e;return{position:"absolute",right:"right"===t?0:void 0,left:"left"===t?0:void 0,bottom:22,zIndex:1e3,padding:"15px 0px 15px 0px"}})),g=(0,h.ZP)(f.Z)((()=>({background:"rgba(0,0,0,0.8)",color:"#fff","&:hover":{background:"rgba(0,0,0,0.8)",borderColor:"rgba(255,255,255,1)"}}))),v=e=>{let{onClick:t,open:n,endIcon:r,children:a,position:i}=e;return n?(0,u.jsx)(m,{position:i,children:(0,u.jsx)(g,{variant:"outlined",onClick:t,endIcon:r,children:(0,u.jsx)("div",{style:{verticalAlign:"middle",fontSize:18},children:a})})}):null},b=e=>{let{onClick:t,open:n}=e;return(0,u.jsx)(v,{open:n,onClick:t,endIcon:(0,u.jsx)(d,{}),children:(0,u.jsx)(p.Z,{id:"videoAd.skip"})})};var y=n(97691),w=n(82937),x=n(18104),k=n(46604),S=n(38239),C=n(23733),E=n(19314);const P=r.memo((e=>(0,u.jsxs)(c.Z,{...e,width:"24",height:"24",viewBox:"0 0 24 24",children:[(0,u.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M9.71963 4.59861C11.0223 3.51306 13 4.43937 13 6.13505V17.865C13 19.5606 11.0223 20.487 9.71963 19.4014L5.63795 16H3C2.44772 16 2 15.5523 2 15V9.00001C2 8.44772 2.44772 8.00001 3 8.00001H5.63795L9.71963 4.59861ZM11 6.13505L6.64018 9.76823C6.46047 9.91799 6.23394 10 6 10H4V14H6C6.23394 14 6.46047 14.082 6.64018 14.2318L11 17.865V6.13505Z"}),(0,u.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M15.0416 5.00462C15.1991 4.47529 15.7559 4.17388 16.2853 4.33142C19.5891 5.3147 22 8.37449 22 12C22 15.6255 19.5891 18.6853 16.2853 19.6686C15.7559 19.8261 15.1991 19.5247 15.0416 18.9954C14.884 18.466 15.1854 17.9092 15.7148 17.7517C18.1939 17.0138 20 14.7165 20 12C20 9.28346 18.1939 6.98615 15.7148 6.24833C15.1854 6.09079 14.884 5.53396 15.0416 5.00462Z"}),(0,u.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M14.0511 8.68438C14.2255 8.16033 14.7916 7.87682 15.3157 8.05115C16.9259 8.58678 18 10.201 18 12C18 13.799 16.9259 15.4133 15.3157 15.9489C14.7916 16.1232 14.2255 15.8397 14.0511 15.3157C13.8768 14.7916 14.1603 14.2255 14.6844 14.0511C15.3874 13.8173 16 13.0365 16 12C16 10.9636 15.3874 10.1828 14.6844 9.94891C14.1603 9.77458 13.8768 9.20844 14.0511 8.68438Z"})]}))),I=r.memo((e=>(0,u.jsx)(c.Z,{...e,width:"24",height:"24",viewBox:"0 0 24 24",children:(0,u.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M9.4 2.80388C10.5532 1.26626 13 2.08185 13 4.00388V20.0039C13 21.9259 10.5532 22.7415 9.4 21.2039L5.5 16.0039H3C2.44772 16.0039 2 15.5562 2 15.0039V9.00388C2 8.45159 2.44772 8.00388 3 8.00388H5.5L9.4 2.80388ZM11 4.00388L6.8 9.60388C6.61115 9.85568 6.31476 10.0039 6 10.0039H4V14.0039H6C6.31476 14.0039 6.61115 14.1521 6.8 14.4039L11 20.0039V4.00388ZM14.2929 8.29677C14.6834 7.90624 15.3166 7.90624 15.7071 8.29677L18 10.5897L20.2929 8.29677C20.6834 7.90624 21.3166 7.90624 21.7071 8.29677C22.0976 8.68729 22.0976 9.32046 21.7071 9.71098L19.4142 12.0039L21.7071 14.2968C22.0976 14.6873 22.0976 15.3205 21.7071 15.711C21.3166 16.1015 20.6834 16.1015 20.2929 15.711L18 13.4181L15.7071 15.711C15.3166 16.1015 14.6834 16.1015 14.2929 15.711C13.9024 15.3205 13.9024 14.6873 14.2929 14.2968L16.5858 12.0039L14.2929 9.71098C13.9024 9.32046 13.9024 8.68729 14.2929 8.29677Z"})}))),A=e=>{let{remainingTimeToSkip:t,canSkip:n,isSkippable:r,remainingTimeForAd:a,isMuted:i,muteAd:o,unmuteAd:s}=e;const l=k.Z.isEmbeddedExternally()&&!k.Z.isOnLocalhost(k.Z.getSafeReferrer()),c=()=>{"muted"===i?s():o()},d=(0,E.U)();return(0,u.jsxs)(y.kH,{container:!0,justifyContent:"space-between",alignItems:"center",wrap:"nowrap",children:[(0,u.jsx)(w.ZP,{item:!0,sx:{pl:2},children:(0,u.jsxs)(y.VT,{isClickable:l&&!d,children:[(0,u.jsx)(S.Z,{clickable:l&&!d,campaignContent:"logo"}),(0,u.jsx)("div",{style:{textTransform:"uppercase",fontSize:9,top:6,opacity:.6,position:"absolute",left:50,fontWeight:700},children:"Advertising"}),!r&&(0,u.jsx)(y.b_,{style:{top:12,left:42,position:"absolute"},children:(0,u.jsx)(p.Z,{id:"videoAd.continuePlayingAfterAd",values:{skipInSeconds:(0,u.jsx)("span",{style:{color:"#35FDFF"},children:a||""})}})}),r&&(0,u.jsx)(y.b_,{style:{top:12,left:42,position:"absolute"},children:n?(0,u.jsx)(p.Z,{id:"videoAd.youCanSkip"}):(0,u.jsx)(p.Z,{id:"videoAd.skipCounter",values:{skipInSeconds:(0,u.jsx)("span",{style:{color:"#35FDFF"},children:t||""})}})})]})}),(0,u.jsxs)(w.ZP,{item:!0,children:["muted"===i&&(0,u.jsx)(C.Z,{titleId:"videoAd.unmute",children:(0,u.jsx)(x.Z,{onClick:c,size:"large",children:(0,u.jsx)(I,{})})}),"unmuted"===i&&(0,u.jsx)(C.Z,{titleId:"videoAd.mute",children:(0,u.jsx)(x.Z,{onClick:c,size:"large",children:(0,u.jsx)(P,{})})})]})]})};var T=n(71917);const Z=(0,h.ZP)("div")((()=>({position:"absolute",left:0,bottom:T.ut.footerHeight,height:4,width:"100%",background:"black"}))),R=(0,h.ZP)("div")((e=>{let{theme:{palette:t}}=e;return{backgroundColor:t.secondary.main,height:"100%",position:"relative"}})),L=(0,h.ZP)("video")((()=>({overflow:"hidden",position:"absolute",width:"100%",maxHeight:"100%",objectFit:"cover"}))),_=(0,h.ZP)("div")((()=>({position:"absolute",top:0,display:"flex",alignItems:"center",width:"100%",height:`calc(100% - ${T.ut.footerHeight+4}px)`})));var j=n(91177),M=n(75993);const z=e=>{let{onClick:t,open:n,position:r}=e;return(0,u.jsx)(v,{open:n,onClick:t,endIcon:(0,u.jsx)(M.Z,{}),position:r||"left",children:(0,u.jsx)(p.Z,{id:"videoAd.continue"})})};var F=n(74082),D=n(8242);const N=j.M+2e3,O="video-ads-mute";class B extends r.Component{constructor(e){super(e),this.adContainerRef=void 0,this.videoContentRef=void 0,this.adProgressLastProgress=void 0,this.progressCheckTimeout=null,this.progressCheckReject=null,this.isProgressingTimeout=null,this.adStartedTimeout=null,this.nonVideoSkipButtonTimeout=null,this.nonVideoEnforceSkipButtonTimeout=null,this.isAdCompleted=!1,this.adCompletedTimeout=null,this.adCompletedGASent=!1,this.adRequestedTime=null,this.adIsMarkedAsSkippable=void 0,this.adSkippableAfter=-1,this.totalAdDuration=1,this.videoAdDuration=-1,this.resume=null,this.adHasProgressReporting=!1,this.adSkipped=()=>{i.GA.Instance.trackAdSkippedUsingOverlay(this.totalAdDuration,this.props.adType),this.adFinished()},this.imaRequestStarted=()=>{},this.adStarted=(e,t)=>{const{adStarted:n}=this.props;if(this.adStartedTimeout&&(window.clearTimeout(this.adStartedTimeout),this.adStartedTimeout=null),e){const t=e.getSkipTimeOffset();t>0&&(this.adIsMarkedAsSkippable=!0),this.adSkippableAfter=t,this.totalAdDuration=e.getDuration()}this.trackAdStarted(e),this.trackAdStartTime(),this.installProgressCheck(e),this.setState({adState:"playing"}),n&&n(),this.setAdVolume(t)},this.adPaused=e=>{this.resume=e,this.setState({paused:!0}),this.progressCheckTimeout&&window.clearTimeout(this.progressCheckTimeout)},this.adResumed=()=>{this.setState({paused:!1},(()=>{this.progressCheckTimeout&&this.isAdProgressingLoop(),this.resume=null}))},this.onAdCompleted=e=>{const{adCompleted:t}=this.props;this.isAdCompleted=!0,this.adCompletedTimeout=window.setTimeout((()=>{this.adFinished()}),1e3),this.trackAdCompleted(e),t&&window.setTimeout((()=>{t()}),80)},this.requestResume=()=>{this.resume&&this.resume()},this.onContentResumeRequested=e=>{this.trackAdCompleted(e),window.setTimeout((()=>{this.adFinished()}),80)},this.adSkippableStateChanged=()=>{this.nonVideoSkipButtonTimeout&&(window.clearTimeout(this.nonVideoSkipButtonTimeout),this.nonVideoSkipButtonTimeout=null),this.adIsMarkedAsSkippable=!0,this.setState({showOurSkipButton:!1})},this.adProgressed=e=>{const{currentTime:t,duration:n}=e;if(this.videoAdDuration=n,n&&n>0){const e=t/n;if(this.setState({currentTime:t}),this.adHasProgressReporting=!0,this.adProgressLastProgress=e,!this.adIsMarkedAsSkippable){const{enforceSkipButton:e,skipIfLongerThanSeconds:a,skippableAfterSeconds:i}=this.props,{showOurSkipButton:o}=this.state;if(!e)return;if(!o){var r;const e=null!==a&&void 0!==a?a:16;if((null!==(r=this.totalAdDuration)&&void 0!==r?r:n)o&&this.setState({showOurSkipButton:!0})}}}},this.adError=e=>{let t=e||new l.tp;const{adError:n}=this.props;this.setState({adState:"error"},(()=>{n&&n(t,{playing:this.state.adStarted})}))},this.setAdVolume=e=>{const t=F.m.Instance.getItem(O);let n="disabled";n=e?"preroll"===this.props.adType&&this.props.device.isMobile||t&&JSON.parse(t)?"muted":"unmuted":"disabled",this.setState({isMuted:n})},this.muteAd=()=>{this.setState({isMuted:"muted"}),F.m.Instance.setItem(O,"true")},this.unmuteAd=()=>{this.setState({isMuted:"unmuted"}),F.m.Instance.setItem(O,"false")},this.state={adState:"wait-for-ima",showOurSkipButton:!1,currentTime:0,adStarted:!1,paused:!1,isMuted:"disabled"},this.adContainerRef=r.createRef(),this.videoContentRef=r.createRef(),this.adProgressLastProgress=0,this.adIsMarkedAsSkippable=!1}componentDidMount(){var e;null===(e=this.videoContentRef.current)||void 0===e||e.setAttribute("muted",""),this.startAdStartedTimeout()}componentWillUnmount(){[this.progressCheckTimeout,this.isProgressingTimeout,this.nonVideoSkipButtonTimeout,this.nonVideoEnforceSkipButtonTimeout,this.adCompletedTimeout,this.adStartedTimeout].forEach((e=>{e&&window.clearTimeout(e)})),this.progressCheckReject&&this.progressCheckReject(),this.progressCheckTimeout=null,this.progressCheckTimeout=null,this.isProgressingTimeout=null,this.adCompletedTimeout=null,this.progressCheckReject=null,this.nonVideoSkipButtonTimeout=null,this.adProgressLastProgress=0,this.adIsMarkedAsSkippable=!1,this.nonVideoEnforceSkipButtonTimeout=null}render(){switch(this.state.adState){case"wait-for-ima":case"playing":return this.renderAd();default:return this.renderContent()}}componentDidUpdate(e){this.props.play&&!e.play&&this.startAdStartedTimeout()}renderIMA(){const{videoUrl:e,adType:t,preload:n,play:r,fullSize:a}=this.props;return(0,u.jsx)(j.Z,{imaRequestStarted:this.imaRequestStarted,adStarted:this.adStarted,adError:this.adError,adCompleted:this.onAdCompleted,adProgressed:this.adProgressed,adPaused:this.adPaused,adResumed:this.adResumed,adSkippableStateChanged:this.adSkippableStateChanged,onContentResumeRequested:this.onContentResumeRequested,videoUrl:e,adType:t,preload:n,play:r,adContainerRef:this.adContainerRef,videoContentRef:this.videoContentRef,isMuted:this.state.isMuted,fullSize:a})}renderContent(){return(0,u.jsx)(u.Fragment,{children:this.props.children})}renderAd(){const e=!["playing","error","complete"].includes(this.state.adState),{adState:t,paused:n,isMuted:r}=this.state,a=this.getSecondsToSkip(),i=this.state.showOurSkipButton&&!n,l=this.getFormattedCountdown(a),c=this.getFormattedCountdown(null),d=null!==a&&a<=0,p=this.adIsMarkedAsSkippable?"left":"right";return(0,u.jsxs)(u.Fragment,{children:[(0,u.jsxs)(o.Z,{children:[(0,u.jsxs)(_,{children:[(0,u.jsx)(L,{ref:this.videoContentRef,id:"videoContent",playsInline:!0}),(0,u.jsx)(b,{open:i,onClick:this.adSkipped}),(0,u.jsx)(z,{open:n,onClick:this.requestResume,position:p}),(0,u.jsx)(s.Z,{adContainerRef:this.adContainerRef,adIsLoading:e,width:"100%",height:"100%",useGameThumbLoader:"preroll"===this.props.adType})]}),"playing"===t&&this.renderProgressBar(),"playing"===t&&(0,u.jsx)(A,{isSkippable:null!==a&&this.adHasProgressReporting,remainingTimeToSkip:l,remainingTimeForAd:c,canSkip:d,muteAd:this.muteAd,unmuteAd:this.unmuteAd,isMuted:r})]}),this.renderIMA()]})}getFormattedCountdown(e){if(null!==e)return this.formatTime(e);{const e=this.getSecondsToEnd();if(null!==e)return this.formatTime(e)}return null}formatTime(e){return`00:${`0${Math.floor(e)}`.slice(-2)}`}getSecondsToEnd(){if(this.totalAdDuration>=0){const{currentTime:e}=this.state;return Math.max(this.totalAdDuration-e,0)}return null}getSecondsToSkip(){if(this.totalAdDuration>=0){const{currentTime:e}=this.state,t=this.getSkippableAfter();if(t&&t>0)return Math.max(t-Math.floor(e),0)}return this.state.showOurSkipButton?0:null}getSkippableAfter(){const{skippableAfterSeconds:e}=this.props;if(this.skipButtonWillBeShown()){if(this.adSkippableAfter>0)return this.adSkippableAfter;return null!==e&&void 0!==e?e:5}return null}skipButtonWillBeShown(){const{enforceSkipButton:e,skipIfLongerThanSeconds:t}=this.props;return this.adIsMarkedAsSkippable||!!e&&this.totalAdDuration>(null!==t&&void 0!==t?t:16)}getProgress(){const{currentTime:e}=this.state;return this.videoAdDuration>0?e/this.videoAdDuration:null}renderProgressBar(){const e=this.getProgress();return e?(0,u.jsx)(Z,{children:(0,u.jsx)(R,{style:{width:100*e+"%"}})}):null}adFinished(){const e=this.props.adFinished;this.setState({adState:"complete"}),e&&e()}startAdStartedTimeout(){this.props.play&&(this.adStartedTimeout=window.setTimeout((()=>{this.adError()}),N))}trackAdStarted(e){const{adType:t}=this.props;if(e)try{const n=e.getDuration(),r=e.getSkipTimeOffset();i.GA.Instance.trackAdStarted(n,r,t)}catch(n){}}trackAdCompleted(e){if(e&&!this.adCompletedGASent)try{this.adCompletedGASent=!0;const{adType:t}=this.props,n=e.getDuration(),r=e.getSkipTimeOffset();i.GA.Instance.trackAdCompleted(n,r,t)}catch(t){}}trackAdStartTime(){const{adType:e}=this.props;this.adRequestedTime&&i.GA.Instance.trackAdTimingRequestStarted(this.adRequestedTime,e),this.adRequestedTime=null}isAdProgressing(){const e=this.adProgressLastProgress;return new Promise(((t,n)=>{this.progressCheckReject=n,this.isProgressingTimeout=window.setTimeout((()=>{const n=this.adProgressLastProgress;this.progressCheckReject=null,t(n>e||this.isAdCompleted)}),2e3)}))}async isAdProgressingLoop(){if("playing"===this.state.adState&&!this.state.paused&&!this.isAdCompleted)try{if(await this.isAdProgressing())return void(this.progressCheckTimeout=window.setTimeout((()=>this.isAdProgressingLoop()),1e3));{a.kg.error("[VideoAd] video-error No progress detected");const{adType:e}=this.props;i.GA.Instance.trackAdNoProgress(e);const t=this.adProgressLastProgress;t&&t>.05?this.adFinished():this.adError()}}catch(e){}}nonVideoSkipButtonCheck(){const{skippableAfterSeconds:e}=this.props,t=null!==e&&void 0!==e?e:5;this.nonVideoSkipButtonTimeout=window.setTimeout((()=>{this.adIsMarkedAsSkippable||this.adHasProgressReporting&&!(this.adProgressLastProgress<=0)||this.setState({showOurSkipButton:!0})}),1e3*t)}nonVideoInstallTimeout(){const{skipIfLongerThanSeconds:e}=this.props,t=1e3*(null!==e&&void 0!==e?e:16);this.nonVideoEnforceSkipButtonTimeout=window.setTimeout((()=>{this.setState({showOurSkipButton:!0})}),t)}installProgressCheck(e){if(this.adHasProgressReporting=!1,!e)return;if((e.getContentType()||"").startsWith("video")){const t=e.getDuration();t&&t>0&&(this.adHasProgressReporting=!0,this.progressCheckTimeout=window.setTimeout((()=>{this.isAdProgressingLoop()}),1e3))}else this.adHasProgressReporting=!1,this.nonVideoSkipButtonCheck(),this.nonVideoInstallTimeout()}}const U=(0,D.Z)(B)},6754:(e,t,n)=>{"use strict";n.d(t,{Z:()=>i});n(47313);var r=n(46417);const a=e=>{e.preventDefault(),e.stopPropagation()},i=e=>{let{children:t}=e;return(0,r.jsx)("div",{style:{display:"flex",alignItems:"center",justifyContent:"center",width:"100%",height:"100%"},onClick:a,onDoubleClick:a,onMouseDown:a,onMouseUp:a,onScroll:a,onKeyDown:a,onKeyPress:a,onKeyUp:a,children:t})}},59041:(e,t,n)=>{"use strict";n.d(t,{Z:()=>l});var r=n(22870),a=n(69121),i=n(87308),o=n(46604);const s={j:["IN","VN"]};const l=function(){if(!o.Z.isEmbeddedExternally()&&(0,i._W)())return r.kg.log("[VideoAds] Video Ads not supported on Edge 18"),!1;const{countryCode:e}=(0,a.bG)();return!e||!s.j.includes(e)}},13751:(e,t,n)=>{"use strict";n.d(t,{Qg:()=>w,VB:()=>h,VO:()=>y,bs:()=>d,do:()=>b,i2:()=>u,o5:()=>g,v9:()=>v,x3:()=>m,z6:()=>p});var r=n(90831),a=n(74082),i=n(19314),o=n(46604),s=n(22870);const l=window.location.search.indexOf("aps_debug=true")>=0,c=new s.Yd(w()).withPrefix("[APS]"),u=e=>e?6e4:3e4,d="1.4.7",p=(e,t,n)=>{let r=`${`https://files.crazygames.com/gameframe/up-aps/aps-script-${d}.html`}?game_slug=${e}`;return n&&(r+=`&sync_timer_ms=${n}`),l&&(r+="&debug=true"),t&&(r+=`&apsStorageKey=${t}`),r},h=()=>{const{apsSyncTimerMs:e,categoryEnSlug:t}=(0,r.NI)();return e||("clicker"===t?3e4:1e3)};function f(e){const t=(0,r.NI)(),n=e.includes("files.crazygames.com")||e.includes("files.dev-crazygames.be"),s=t.aps;return!!((!s||"yes"===s)&&!t.forceDisableAPS&&n&&!(0,i.U)()&&!o.Z.isEmbeddedExternally()&&a.m.Instance.hasWorkingLocalStorage())}function m(){return f((0,r.NI)().loaderOptions.url)}function g(){return f((0,r.NI)().loaderOptions.swfLocation)}function v(){const e=(0,r.NI)(),t=e.aps,n=!t||"yes"===t,a=window.hasOwnProperty("indexedDB");return!!(n&&!e.forceDisableAPS&&!(0,i.U)()&&!o.Z.isEmbeddedExternally()&&a)}async function b(e){const t=await fetch(e,{method:"GET"});return await t.text()}function y(e){w()&&c.debug(`${e}`)}function w(){return l}},6689:(e,t,n)=>{"use strict";n.d(t,{Z:()=>i});var r=n(13751);class a{constructor(){this.type=null,this.preloadDeferred=null,this.isPreloadDeferredFinished=!1,this.isSyncEnabled=!1}static get Instance(){return this._instance||(this._instance=new this)}setType(e){this.type=e}getType(){return this.type}getIsSyncEnabled(){return this.isSyncEnabled}setDeferred(e){this.preloadDeferred=e}setIsDeferredFinished(e){this.isPreloadDeferredFinished=e}getIsDeferredFinished(){return this.isPreloadDeferredFinished}setEnableSync(e){this.isSyncEnabled=e}async waitForAPS(){this.preloadDeferred&&await this.preloadDeferred.promise}async syncData(){if("UNITY"===this.type&&(0,r.v9)()&&this.isSyncEnabled){(0,(await n.e(2012).then(n.bind(n,52012))).syncAPSData)()}}}a._instance=void 0;const i=a},82259:(e,t,n)=>{"use strict";n.d(t,{S:()=>s});var r=n(85624),a=n(32606),i=n(42379);const o=(e,t,n,r,i,o)=>({borderRadius:"small"===o?10:30,transition:"all 250ms ease",border:"none",cursor:"pointer",display:"flex",justifyContent:"center",alignItems:"center",fontFamily:"Nunito",fontWeight:"small"===o?700:800,fontSize:"small"===o?12:16,boxSizing:"border-box",padding:r?0:e.spacing(1,2),background:"transparent",..."contained"===n&&{background:(()=>{switch(t){case"grey":return a.D.black[40];case"purple":return a.D.brand[100];case"white":return a.D.white[100];case"alert":return a.D.alert[100];case"success":return a.D.success[100]}})(),color:(()=>{switch(t){case"grey":case"purple":case"alert":case"success":return a.D.white[100];case"white":return a.D.black[50]}})(),"&:active":{background:(()=>{switch(t){case"grey":return a.g.black[70];case"purple":return a.g.brand[80];case"white":return a.g.white[50];case"alert":return a.g.alert[100];case"success":return a.g.success[100]}})()},...i&&{"&:hover":{background:(()=>{switch(t){case"grey":return a.D.black[70];case"purple":return a.D.brand[80];case"white":return a.D.white[50];case"alert":return a.D.alert[100];case"success":return a.D.success[100]}})()}}},...("link"===n||"outlined"===n)&&{color:(()=>{switch(t){case"white":return a.D.white[90];case"alert":return a.D.alert[100];case"success":return a.D.success[100];default:return a.D.brand[60]}})(),"&:active":{color:"white"===t?a.g.white[50]:a.g.brand[100]},...i&&{"&:hover":{color:"white"===t?a.D.white[50]:a.D.brand[100]}}},..."outlined"===n&&{border:`1px solid ${a.D.white[30]}`,"&:active":{borderColor:a.g.white[30]}},"&.Mui-disabled":{background:a.D.black[60],color:a.D.black[10],cursor:"default"}}),s=(0,i.ZP)(r.Z,{shouldForwardProp:e=>"variant"!==e&&"height"!==e&&"color"!==e&&"isDesktop"!==e&&"sx"!==e&&"size"!==e})((e=>{let{variant:t="link",color:n="purple",theme:r,height:a,isDesktop:i=!0,size:s="default"}=e;return{...o(r,n,t,!1,i,s),height:a||40}}))},38239:(e,t,n)=>{"use strict";n.d(t,{Z:()=>u});var r=n(47313),a=n(17140),i=n(69382),o=n(82937),s=n(19314),l=n(46417);const c=r.lazy((()=>n.e(6448).then(n.bind(n,96448)))),u=e=>{let{clickable:t,campaignContent:n}=e;return(0,l.jsx)(a.Z,{clickable:t,campaignContent:n||"logo",children:(0,l.jsx)(i.Qx,{container:!0,alignItems:"center",justifyContent:"center",isKids:(0,s.U)(),children:(0,l.jsx)(o.ZP,{item:!0,sx:{height:i.y7},children:(0,l.jsx)(r.Suspense,{fallback:null,children:(0,l.jsx)(c,{})})})})})}},17140:(e,t,n)=>{"use strict";n.d(t,{Z:()=>l});var r=n(90831),a=(n(47313),n(50009)),i=n(52797),o=n(46604),s=n(46417);const l=e=>{let{children:t,clickable:n,campaignContent:l}=e;if(!n)return(0,s.jsx)(s.Fragment,{children:t});const c=(0,r.NI)().locale,u=i.GA.Instance,d=(0,a.Z)(),p=o.Z.crazygamesLocalizedHomeUtmUrl(c,d,l);return(0,s.jsx)("a",{href:p,target:"_blank",onClick:()=>u.trackButtonClick(i.J.CrazyLink),id:"external-playMoreGames-link",children:t})}},69382:(e,t,n)=>{"use strict";n.d(t,{Qx:()=>l,rb:()=>c,y7:()=>s});var r=n(42379),a=n(82937),i=n(32606),o=n(71917);const s=26,l=(0,r.ZP)(a.ZP,{shouldForwardProp:e=>"isKids"!==e})((e=>{let{isKids:t}=e;return{width:23,height:"100%","& svg":{fill:t?"#2FB4FF":i.D.brand[100],width:23,height:s}}})),c=(0,r.ZP)(a.ZP)((e=>{let{theme:{palette:t}}=e;return{height:"100%","& svg":{fill:t.secondary.contrastText,width:87,height:o.ut.footerHeight}}}))},35311:(e,t,n)=>{"use strict";n.d(t,{Z:()=>a});const r={orientation:"LANDSCAPE",isIos:!1,isAndroid:!1,isMobile:!1,isTablet:!1,isStandaloneMode:!1,isSafari:!1,isSmallDevice:!1,isIE:!1,isChrome:!1,isFirefox:!1,isOpera:!1,type:"desktop"},a=n(47313).createContext(r)},8242:(e,t,n)=>{"use strict";n.d(t,{Z:()=>i});n(47313);var r=n(35311),a=n(46417);const i=function(e){return t=>(0,a.jsx)(r.Z.Consumer,{children:n=>(0,a.jsx)(e,{device:n,...t})})}},23733:(e,t,n)=>{"use strict";n.d(t,{Z:()=>s});var r=n(47313),a=n(77626),i=n(46417);const o=r.lazy((()=>Promise.all([n.e(859),n.e(6104)]).then(n.bind(n,16104)))),s=e=>{let{children:t,titleId:n,titleValues:s={}}=e;return(0,i.jsx)(r.Suspense,{fallback:(0,i.jsx)(i.Fragment,{children:t}),children:(0,i.jsx)(o,{title:(0,i.jsx)(a.Z,{id:n,values:s}),placement:"top",children:(0,i.jsx)("span",{children:t})})})}},97691:(e,t,n)=>{"use strict";n.d(t,{$J:()=>p,Gd:()=>x,OD:()=>d,SU:()=>S,VT:()=>m,b_:()=>g,eK:()=>b,iT:()=>y,kH:()=>u,lp:()=>f,s0:()=>w,w1:()=>v,x9:()=>k});var r=n(42379),a=n(82937),i=n(73477),o=n(71917),s=n(46325),l=n(32606);const c="#e2264d",u=(0,r.ZP)(a.ZP,{shouldForwardProp:e=>"isKids"!==e&&"hidden"!==e})((e=>{let{isKids:t,hidden:n}=e;return{userSelect:"none",boxSizing:"content-box",background:t?s.fY:l.D.black[70],zIndex:1,position:"absolute",bottom:n?-o.ut.footerHeight:0,transition:"all .2s ease-in-out",left:0,right:0,height:o.ut.footerHeight}})),d=(0,r.ZP)(i.Z)({lineHeight:"15px",height:15,minHeight:o.ut.footerHeight,display:"inline-flex",minWidth:44,padding:0,alignItems:"center",justifyContent:"center","&:link, &:visited":{color:"white",textDecoration:"none"},"& svg":{width:24,height:24,fill:"white"},color:l.D.white[100],"&:hover":{color:l.D.brand[80],"& svg":{fill:`${l.D.brand[80]}`}}}),p=(0,r.ZP)(i.Z)((e=>{let{theme:{spacing:t}}=e;return{color:"white",border:"1px solid rgba(255, 255, 255, 0.2)",borderRadius:40,height:25,textTransform:"none",fontWeight:700,fontSize:12,padding:t(0,1.5),"&: hover":{background:l.D.black[90]}}})),h=()=>({height:o.ut.footerHeight,overflow:"hidden",cursor:"pointer",fontWeight:"bold"}),f=(0,r.ZP)(a.ZP,{shouldForwardProp:e=>"withImage"!==e&&"clicked"!==e&&"variant"!==e&&"active"!==e})((e=>{let{theme:t,withImage:n,clicked:r,variant:a="default",active:i}=e;return{...h(),...n&&{overflowX:"hidden",height:o.ut.footerHeight,cursor:"pointer","& div":{textAlign:"center","& a":{fontSize:0}}},"&:hover svg":{fill:`${l.D.brand[80]}`},backgroundColor:i?l.D.black[90]:void 0,...r&&{"& svg":{fill:(()=>{switch(a){case"dislike":return`${l.D.alert[100]} !important`;case"favourite":return"#e2264d !important";default:return`${l.D.success[100]} !important`}})()},"& .ratingLabel":{color:"dislike"===a?l.D.alert[100]:l.D.success[100]}}}})),m=(0,r.ZP)("div",{shouldForwardProp:e=>"isClickable"!==e})((e=>{let{theme:t,isClickable:n}=e;return{fontSize:24,height:o.ut.footerHeight,margin:0,display:"flex",alignItems:"center","& a":{color:"white",textDecoration:"none"},overflow:"hidden",...n&&{...h(),"& .crazygamesLink":{color:l.D.brand[60]},"&:hover":{"& .crazygamesLink":{color:l.D.white[100]}}}}})),g=(0,r.ZP)("div")((e=>{let{theme:{spacing:t}}=e;return{fontSize:"1rem",fontWeight:900,marginLeft:t(),overflow:"hidden",whiteSpace:"nowrap"}})),v=(0,r.ZP)("div")((e=>{let{theme:{spacing:t}}=e;return{fontSize:12,fontWeight:700,marginLeft:t()}})),b=(0,r.ZP)("div")((()=>({position:"absolute",left:"50%",top:"50%",transform:"translate(-50%,-50%)"}))),y=(0,r.ZP)("div")((e=>{let{theme:{spacing:t}}=e;return{textAlign:"center",width:"100%",position:"absolute",bottom:50}})),w=(0,r.ZP)("div")((e=>{let{theme:{spacing:t}}=e;return{fontWeight:700,background:"rgba(0, 0, 0, 0.2)",borderRadius:30,width:283,padding:t(),left:"50%",transform:"translate(-50%, -50%) !important",position:"absolute"}})),x=(0,r.ZP)("div")((()=>({height:20,marginTop:(o.ut.footerHeight-20)/2,marginRight:10,marginLeft:10,borderRight:`1px solid ${l.D.black[30]}`}))),k=(0,r.ZP)("span")({fontSize:12,fontWeight:700,textTransform:"none",marginLeft:8}),S=(0,r.ZP)("div",{shouldForwardProp:e=>"isClicked"!==e&&"isStaticFavourite"!==e})((e=>{let{isClicked:t,isStaticFavourite:n}=e;return{display:"flex",justifyContent:"center",fontSize:24,span:{display:"flex",justifyContent:"center",...n&&t&&{color:c},userSelect:"none",cursor:"pointer",...t&&!n&&{color:c,filter:"none",willChange:"font-size",svg:{animation:"heart 1s cubic-bezier(0.17, 0.89, 0.32, 1.49)"}}},"span:before, span:after":{position:"absolute",zIndex:10,top:"50%",left:"50%",borderRadius:"50%",content:"''",...t&&!n&&{animation:"rest 1s cubic-bezier(0.17, 0.89, 0.32, 1.49)",animationTimingFunction:"ease-out"}},"span:before":{boxSizing:"border-box",margin:"-1.6875rem",border:"solid 2.25rem #e2264d",width:"3.375rem",height:"3.375rem",transform:"scale(0)",...t&&!n&&{willChange:"transform, border-width, border-color",animationName:"bubble"}},"span:after":{margin:"-2.25px",width:"0.28125rem",height:"0.28125rem",boxShadow:"0.32476rem -3rem 0 -0.1875rem #ff8080,\n -0.32476rem -2.625rem 0 -0.1875rem #ffed80,\n 2.54798rem -1.61656rem 0 -0.1875rem #ffed80,\n 1.84982rem -1.89057rem 0 -0.1875rem #a4ff80,\n 2.85252rem 0.98418rem 0 -0.1875rem #a4ff80,\n 2.63145rem 0.2675rem 0 -0.1875rem #80ffc8,\n 1.00905rem 2.84381rem 0 -0.1875rem #80ffc8,\n 1.43154rem 2.22414rem 0 -0.1875rem #80c8ff,\n -1.59425rem 2.562rem 0 -0.1875rem #80c8ff,\n -0.84635rem 2.50595rem 0 -0.1875rem #a480ff,\n -2.99705rem 0.35095rem 0 -0.1875rem #a480ff,\n -2.48692rem 0.90073rem 0 -0.1875rem #ff80ed,\n -2.14301rem -2.12438rem 0 -0.1875rem #ff80ed,\n -2.25479rem -1.38275rem 0 -0.1875rem #ff8080",...t&&!n&&{willChange:" opacity, box-shadow",animationName:"sparkles"}},"@keyframes heart":{"0%, 17.5%":{transform:"scale(0)"}},"@keyframes rest":{"0%, 17.5%":{fontSize:0}},"@keyframes bubble":{"15%":{transform:"scale(1)",borderColor:"#cc8ef5",borderWidth:"1.6875rem"},"30%,100%":{transform:"scale(1)",borderColor:"#cc8ef5",borderWidth:0}},"@keyframes sparkles":{"0%,20%":{opacity:0},"25%":{opacity:1,boxShadow:"0.32476rem -2.4375rem 0 0rem #ff8080,\n -0.32476rem -2.0625rem 0 0rem #ffed80,\n 2.1082rem -1.26585rem 0 0rem #ffed80,\n 1.41004rem -1.53985rem 0 0rem #a4ff80,\n 2.30412rem 0.85901rem 0 0rem #a4ff80, 2.08305rem 0.14233rem 0 0rem #80ffc8,\n 0.76499rem 2.33702rem 0 0rem #80ffc8, 1.18748rem 1.71734rem 0 0rem #80c8ff,\n -1.35019rem 2.0552rem 0 0rem #80c8ff,\n -0.60229rem 1.99916rem 0 0rem #a480ff,\n -2.44865rem 0.22578rem 0 0rem #a480ff,\n -1.93852rem 0.77557rem 0 0rem #ff80ed,\n -1.70323rem -1.77366rem 0 0rem #ff80ed,\n -1.81501rem -1.03204rem 0 0rem #ff8080"}}}}))},18526:(e,t,n)=>{"use strict";n.d(t,{Z:()=>g});var r=n(82937),a=n(47313),i=n(46417);const o=()=>(0,i.jsxs)("svg",{version:"1.1",id:"Layer_1",xmlns:"http://www.w3.org/2000/svg",xmlnsXlink:"http://www.w3.org/1999/xlink",x:"0px",y:"0px",width:"144.2px",height:"164.2px",viewBox:"0 0 144.2 164.2",enableBackground:"new 0 0 144.2 164.2",xmlSpace:"preserve",children:[(0,i.jsxs)("filter",{xmlns:"http://www.w3.org/2000/svg",id:"dropshadow",height:"130%",children:[(0,i.jsx)("feGaussianBlur",{in:"SourceAlpha",stdDeviation:"5"}),(0,i.jsx)("feOffset",{dx:"5",dy:"5",result:"offsetblur"}),(0,i.jsx)("feComponentTransfer",{children:(0,i.jsx)("feFuncA",{type:"linear",slope:"0.3"})}),(0,i.jsxs)("feMerge",{children:[(0,i.jsx)("feMergeNode",{}),(0,i.jsx)("feMergeNode",{in:"SourceGraphic"})]})]}),(0,i.jsx)("ellipse",{id:"XMLID_55_",className:"st0",cx:"73",cy:"77.7",rx:"47.5",ry:"50.8",fill:"#FFFFFF"}),(0,i.jsxs)("g",{id:"Group-16",filter:"url(#dropshadow)",children:[(0,i.jsxs)("g",{id:"Group-3",transform:"translate(7.314607, 15.788230)",children:[(0,i.jsx)("g",{id:"Clip-2"}),(0,i.jsx)("defs",{children:(0,i.jsx)("filter",{id:"Adobe_OpacityMaskFilter",filterUnits:"userSpaceOnUse",x:"31.8",y:"60.8",width:"97.3",height:"80.8",children:(0,i.jsx)("feColorMatrix",{type:"matrix",values:"1 0 0 0 0 0 1 0 0 0 0 0 1 0 0 0 0 0 1 0"})})}),(0,i.jsx)("mask",{maskUnits:"userSpaceOnUse",x:"31.8",y:"60.8",width:"97.3",height:"80.8",id:"mask-4_1_",children:(0,i.jsx)("g",{className:"st1",filter:"url(#Adobe_OpacityMaskFilter)",children:(0,i.jsx)("polygon",{id:"path-3_1_",className:"st0",points:"31.8,60.8 129.1,60.8 129.1,141.7 31.8,141.7",fill:"#FFFFFF"})})}),(0,i.jsx)("path",{id:"Fill-1_1_",className:"st2",fill:"#6842ff",mask:"url(#mask-4_1_)",d:"M33,137.2c3.2-2,6.3-3.4,9.2-4.9l8.3-4.1c2.6-1.4,5.2-2.5,7.6-3.8c0.6-0.3,1.2-0.6,1.8-0.9 c0.6-0.3,1.2-0.6,1.7-0.9l1.7-0.9l0.8-0.4l0.8-0.5c8.8-4.7,15.6-9.2,21.8-14c6.2-4.8,12.1-10.1,18.5-17.1c3.2-3.5,6.4-7.5,9.8-12 l1.3-1.7c0.4-0.6,0.8-1.2,1.3-1.8c0.4-0.6,0.9-1.2,1.3-1.9c0.4-0.6,0.9-1.3,1.3-1.9l0.7-1c0.2-0.3,0.4-0.7,0.7-1l1.4-2.1 c1-1.4,1.9-2.9,3-4.4l0.5-0.7c0.4-0.5,1-0.6,1.5-0.2c0.2,0.2,0.4,0.5,0.4,0.7c0.7,6,0.5,12.1-0.3,18.1c-0.9,6-2.4,11.9-4.6,17.6 c-4.5,11.3-12.1,21.5-21.8,29c-4.9,3.7-10.3,6.8-15.9,9.1c-5.6,2.3-11.5,4-17.5,4.9c-6,0.9-12,1.3-18,1.2l-4.5-0.3 c-0.8,0-1.5-0.1-2.2-0.2l-2.2-0.2c-3-0.2-5.9-0.8-8.9-1.3c-0.6-0.1-1-0.6-0.9-1.2c0.1-0.3,0.2-0.6,0.5-0.7L33,137.2z"})]}),(0,i.jsx)("path",{id:"Fill-4",className:"st3",fill:"#6842ff",d:"M102.6,25c0,0,17.6-20.2,23.2-13.7c9.7,11.2,6.7,44.8,6.7,44.8"}),(0,i.jsx)("path",{id:"Fill-6",className:"st3",fill:"#6842ff",d:"M43.4,25c0,0-17.6-20.2-23.2-13.7C10.5,22.4,13.4,56,13.4,56"}),(0,i.jsx)("path",{id:"Fill-8",className:"st3",fill:"#6842ff",d:"M58.9,69.2c0-3.5,2.2-6.4,5.4-7.5c-1.6-1.6-3.8-2.6-6.3-2.6c-4.9,0-8.8,4-8.8,8.8v19.5 c0,4.8,4,8.8,8.8,8.8s8.8-4,8.8-8.8V77.1C62.4,77.1,58.9,73.6,58.9,69.2"}),(0,i.jsx)("path",{id:"Fill-10",className:"st3",fill:"#6842ff",d:"M88.9,69.2c0-3.5,2.2-6.4,5.4-7.5c-1.6-1.6-3.8-2.6-6.3-2.6c-4.9,0-8.8,4-8.8,8.8v19.5 c0,4.8,4,8.8,8.8,8.8c4.9,0,8.8-4,8.8-8.8V77.1C92.5,77.1,88.9,73.6,88.9,69.2"}),(0,i.jsx)("path",{id:"Fill-12",className:"st3",fill:"#6842ff",d:"M73,36.1c-13.7,0-23.5,2.6-29.9,7.9c-7.6,6.3-11.3,17.2-11.3,33.3c0,34.2,16.5,41.2,41.2,41.2 s41.2-7,41.2-41.2c0-16.1-3.7-27-11.3-33.3C96.5,38.7,86.7,36.1,73,36.1 M73,141.8c-19.4,0-34.1-4.3-44.8-13.1 C15.1,117.8,8.5,100.6,8.5,77.2c0-23.2,6.6-40.4,19.7-51.3C38.9,17.1,53.6,12.8,73,12.8s34.1,4.3,44.8,13.2 c13.1,10.8,19.7,28.1,19.7,51.3c0,23.3-6.6,40.6-19.7,51.4C107.1,137.5,92.4,141.8,73,141.8"}),(0,i.jsx)("path",{id:"Fill-14",className:"st4",fill:"#7E6AAF",d:"M98.7,138.5c-7.5,2.2-16,3.3-25.8,3.3c-3.4,0-6.6-0.1-9.8-0.4c-1.7,0.9-3.5,1.7-5.4,2.7l-5.4,2.6 c2.6,0.2,5.3,0.3,8.2,0.3C76.3,147,88.9,144.2,98.7,138.5"})]})]});var s=n(46745),l=n(77626),c=n(90831),u=n(42379);const d=(0,u.ZP)("div")((e=>{let{theme:{breakpoints:t}}=e;return{width:525,height:350,margin:"auto",position:"relative",top:40,[t.down("sm")]:{width:360}}})),p=(0,u.ZP)("div")((e=>{let{theme:{breakpoints:t}}=e;return{zIndex:1,position:"absolute",left:0,top:85,[t.down("sm")]:{top:135,left:42}}})),h=(0,u.ZP)("div")((e=>{let{theme:{palette:t,breakpoints:n}}=e;return{position:"absolute",top:-50,left:39,[n.down("sm")]:{left:19},width:250,padding:"16px 14px",margin:"1em auto 50px",textAlign:"center",color:t.primary.light,background:"#fff",borderRadius:20,fontSize:"1em","&:after":{content:'""',position:"absolute",zIndex:-1,bottom:-30,right:"21%",width:35,height:30,background:"#fff",borderBottomRightRadius:"54px 50px",transform:"translate(-37px, -5px)"}}})),f=(0,u.ZP)("div")((e=>{let{theme:{breakpoints:t}}=e;return{fontWeight:900,fontSize:"11em",position:"absolute",top:-81,left:380,[t.down("sm")]:{top:118,left:216,fontSize:"10em"}}})),m=(0,u.ZP)("div")((e=>{let{theme:{breakpoints:t}}=e;return{fontWeight:900,position:"absolute",top:144,left:164,fontSize:"4em",[t.down("sm")]:{top:310,left:67,fontSize:"3em"}}})),g=e=>{let{callbackFn:t,onStarted:n}=e;const[u,g]=a.useState(5);a.useEffect((()=>{n&&n()}),[n]),a.useEffect((()=>{const e=setInterval((()=>{u>0?g(u-1):(t&&t(),clearInterval(e))}),1e3);return()=>clearInterval(e)}),[t,u]);const v=(0,c.NI)(),b=v.thumbnail,y=v.video;return(0,i.jsxs)("div",{children:[(0,i.jsx)(r.ZP,{container:!0,justifyContent:"center",alignItems:"center",sx:{zIndex:1,position:"relative",width:1,height:1},children:(0,i.jsx)(r.ZP,{item:!0,children:(0,i.jsxs)(d,{children:[(0,i.jsx)(p,{children:(0,i.jsx)(o,{})}),(0,i.jsx)(m,{children:(0,i.jsx)(l.Z,{id:"noRewarded.getReady"})}),(0,i.jsx)(h,{children:(0,i.jsx)(l.Z,{id:"noRewarded.message"})}),(0,i.jsx)(f,{children:u})]})})}),(0,i.jsx)(s.Z,{thumbnail:b,video:y,minVideoWidth:.2*window.innerWidth,addBlurredEffect:!0})]})}},9172:(e,t,n)=>{"use strict";n.d(t,{Z:()=>v});var r=n(47313),a=n(18526),i=n(46417);const o=r.lazy((()=>Promise.all([n.e(1750),n.e(6204)]).then(n.bind(n,6204)))),s=r.lazy((()=>n.e(3452).then(n.bind(n,73452)))),l=r.lazy((()=>n.e(208).then(n.bind(n,90208)))),c=r.lazy((()=>n.e(3030).then(n.bind(n,83030)))),u=r.lazy((()=>n.e(8736).then(n.bind(n,68736)))),d=r.lazy((()=>n.e(2386).then(n.bind(n,52386)))),p=r.lazy((()=>n.e(7554).then(n.bind(n,37554)))),h=r.lazy((()=>n.e(1123).then(n.bind(n,1123)))),f=r.lazy((()=>n.e(2633).then(n.bind(n,52633)))),m=r.lazy((()=>n.e(7318).then(n.bind(n,47318)))),g=r.lazy((()=>n.e(8355).then(n.bind(n,78355)))),v=e=>{let{warning:t,close:n}=e;return(0,i.jsx)(r.Suspense,{fallback:(0,i.jsx)(i.Fragment,{}),children:(()=>{if(!t)return null;switch(t){case"fullscreen-unavailable-when-embedded":return(0,i.jsx)(c,{close:n});case"fullscreen-unavailable-when-in-fullscreen":return(0,i.jsx)(g,{close:n});case"unity-unavailable":return(0,i.jsx)(m,{close:n});case"embedding-disallowed":return(0,i.jsx)(s,{close:n});case"game-deleted":return(0,i.jsx)(u,{close:n});case"game-unavailable":return(0,i.jsx)(d,{close:n});case"sandboxing-disallowed":return(0,i.jsx)(f,{close:n});case"ads-txt-missing":return(0,i.jsx)(o,{close:n});case"external-link":return(0,i.jsx)(l,{});case"no-rewarded-countdown":return(0,i.jsx)(a.Z,{callbackFn:()=>{console.log("Callback for No Rewarded AD")}});case"force-fullscreen":return(0,i.jsx)(p,{actionFn:n});case"no-referrer":return(0,i.jsx)(h,{});default:throw new Error(`[Warning] Unmapped warning: ${t}`)}})()})}},30648:(e,t,n)=>{"use strict";n.d(t,{Z:()=>u});var r=n(82937),a=(n(47313),n(77626)),i=n(93825),o=n(32606),s=n(93458),l=n(46417);const c=e=>{let{gameLink:t,target:n,linkRel:r,tracker:a,children:i}=e;return t?(0,l.jsx)("a",{href:t,onClick:a,target:n||"_blank",rel:r,style:{textAlign:"center"},children:i}):(0,l.jsx)("span",{onClick:a,style:{textAlign:"center"},children:i})},u=e=>{let{gameLink:t,linkRel:n,tracker:u,target:d,subtextLabel:p,isDownloadable:h,customTitle:f,customButton:m,customThumb:g}=e;return(0,l.jsx)(l.Fragment,{children:(0,l.jsx)(c,{target:d,gameLink:t,linkRel:n,tracker:u,children:(0,l.jsxs)(s.Z,{customTitle:f,customThumb:g,children:[m||(0,l.jsx)(i.Z,{customStyle:{marginTop:8},children:(0,l.jsx)(a.Z,{id:h?"buttons.downloadNow":"buttons.playNow"})}),p&&(0,l.jsx)(r.ZP,{item:!0,justifyContent:"center",sx:{color:o.D.white[30],fontSize:14,pl:2,pr:2},children:(0,l.jsx)(a.Z,{id:p})})]})})})}},93458:(e,t,n)=>{"use strict";n.d(t,{Z:()=>p});var r=n(47313),a=n(42379);const i=(0,a.ZP)("div")((e=>{let{theme:t}=e;return{position:"fixed",inset:0,display:"flex",flexDirection:"column",justifyContent:"center",alignItems:"center",gap:t.spacing(1.5)}})),o=(0,a.ZP)("div",{shouldForwardProp:e=>"isMobile"!==e})((e=>{let{isMobile:t,theme:{breakpoints:n}}=e;return{height:t?80:110,width:t?142:196,[n.down(300)]:{display:"none"},borderRadius:7,overflow:"hidden",WebkitMaskImage:"-webkit-radial-gradient(white, black)"}})),s=(0,a.ZP)("div")({fontWeight:700,fontSize:28,color:"#FFFFFF"});var l=n(46745),c=n(90831),u=n(35311),d=n(46417);const p=e=>{let{children:t,customTitle:n,customThumb:a}=e;const p=(0,c.NI)(),{isMobile:h}=r.useContext(u.Z);return(0,d.jsxs)(d.Fragment,{children:[(()=>{const{thumbnail:e,video:t}=p;return h?(0,d.jsx)(l.Z,{thumbnail:e,addBlurredEffect:!0}):(0,d.jsx)(l.Z,{thumbnail:e,video:t,minVideoWidth:.2*window.innerWidth,addBlurredEffect:!0})})(),(0,d.jsxs)(i,{children:[a||(0,d.jsx)(o,{isMobile:h,children:(0,d.jsx)(l.Z,{thumbnail:p.thumbnail})}),n||(0,d.jsx)(s,{id:"overlayThumbnailTitle",children:p.gameName}),t]})]})}},57484:(e,t,n)=>{"use strict";n.d(t,{Aw:()=>f,CW:()=>p,sF:()=>h,vN:()=>c,wT:()=>d});var r=n(42379),a=n(32415),i=n(82937),o=n(17551),s=n(32606),l=n(71917);const c=(0,r.ZP)(a.Z)((e=>{let{theme:{palette:t}}=e;return{backgroundColor:t.primary.dark,padding:8,textAlign:"center",borderRadius:8,transition:"all .2s ease-in-out","&:hover":{filter:"brightness(120%)",backgroundImage:t.primary.light,"& .gameTitle":{color:"#b1c8e0"}}}})),u=e=>{let{palette:t}=e;return{height:0,overflow:"hidden",paddingTop:l.Iq.height/l.Iq.width*100+"%",...l.Eu.imagePlaceholderAnimation,position:"relative",borderRadius:4,"& img, & video":{position:"absolute !important",top:0,left:0,height:"100%",width:"100%",borderRadius:4,objectFit:"cover"}}},d=(0,r.ZP)(i.ZP)((e=>{let{theme:t}=e;return{...u(t)}})),p=(0,r.ZP)("div")({position:"absolute",width:"100%",height:"100%",backdropFilter:"blur(8px)",backgroundColor:(0,o.Fq)(s.D.black[100],.8),zIndex:2}),h=(0,r.ZP)(i.ZP)((e=>{let{theme:{breakpoints:t}}=e;return{zIndex:3,pointerEvents:"none",backgroundImage:l.cz.yellowRating,width:"auto",margin:"auto",marginTop:-18,color:"white",fontWeight:800,padding:"3px 14px",borderRadius:28,textShadow:"0 1px 1px #d78b0f",fontSize:"5vw",[t.up("sm")]:{fontSize:"3vw"}}})),f=(0,r.ZP)("div")((e=>{let{theme:{breakpoints:t}}=e;return{color:"white",fontWeight:900,fontSize:"5vw",[t.up("sm")]:{fontSize:"3vw"},[`@media (max-height: ${l.ot.maxMobileLandscapeHeight}px)`]:{fontSize:"2vw"}}}))},99187:(e,t,n)=>{"use strict";n.d(t,{Z:()=>k});var r=n(82937),a=n(47313),i=n(46604),o=n(90831),s=n(22870),l=n(18088),c=n(17140),u=n(69382),d=n(46417);const p=a.lazy((()=>n.e(6012).then(n.bind(n,56012)))),h=a.lazy((()=>n.e(3969).then(n.bind(n,3969)))),f=e=>{let t,{clickable:n,returnImg:i,campaignContent:f}=e;const m=(0,o.NI)().locale;switch(m||l.ZW){case"en_US":t=i?(0,d.jsx)("img",{src:"https://images.crazygames.com/favicons/logo_purple_transparent_sm.png",style:{width:90},alt:"CrazyGames"}):(0,d.jsx)(p,{});break;case"es_ES":t=(0,d.jsx)(h,{});break;default:m===l.ZW&&s.kg.warn("unsupported locale",m),t=(0,d.jsx)(p,{})}return(0,d.jsx)(c.Z,{clickable:n,campaignContent:f||"logo",children:(0,d.jsx)(u.rb,{container:!0,alignItems:"center",justifyContent:"center",children:(0,d.jsx)(r.ZP,{item:!0,style:{height:"100%"},children:(0,d.jsx)(a.Suspense,{fallback:null,children:t})})})})};var m=n(42379),g=n(46325);const v=(e,t)=>{if(!e)return t?g.AT:g.VP},b=(0,m.ZP)(r.ZP,{shouldForwardProp:e=>"isTransparent"!==e&&"fullHeight"!==e&&"isKids"!==e})((e=>{let{isTransparent:t,fullHeight:n,isKids:r}=e;const a=r?g.Q0:void 0,i=r?g.Pr:void 0;return{zIndex:1,position:"absolute",left:0,top:0,right:0,bottom:0,overflow:"hidden",height:n?"100vh":"100%",width:t?"100%":void 0,background:v(!!r,t),backgroundImage:t?i:a}})),y=(0,m.ZP)(r.ZP)((e=>{let{theme:{spacing:t}}=e;return{background:"#00000020",position:"relative",padding:t(2),textAlign:"center",fontSize:"2em",height:`calc(45px + ${t(4)})`,"& a":{position:"relative",height:"100%"}}}));var w=n(86857),x=n(19314);const k=e=>{let{showCrazyLogo:t,fullHeight:n,children:o,showGDPRNotice:s,isTransparent:l}=e;const c=void 0===t||t,u=i.Z.isEmbeddedExternally(),p=(0,x.U)();return(0,d.jsxs)(b,{container:!0,isTransparent:!!l,direction:"column",justifyContent:"space-between",wrap:"nowrap",fullHeight:!!n,isKids:p,children:[c&&(0,d.jsx)(y,{item:!0,container:!0,direction:"column",justifyContent:"center",children:(0,d.jsx)(f,{clickable:u,campaignContent:"overlay-logo",returnImg:u})}),o&&(0,d.jsx)(r.ZP,{container:!0,item:!0,direction:"column",style:{flex:1,overflow:"hidden"},children:o}),s&&(0,d.jsx)(r.ZP,{item:!0,children:(0,d.jsx)(a.Suspense,{fallback:null,children:(0,d.jsx)(w.Z,{})})})]})}},59111:(e,t,n)=>{"use strict";n.d(t,{Z:()=>a});const r={theatreModeEnabled:!1,fullscreenFooterEnabled:!1,hideFullscreenFooter:()=>{}},a=n(47313).createContext(r)},78512:(e,t,n)=>{"use strict";n.d(t,{DV:()=>o,VY:()=>s,Xf:()=>i,hn:()=>a,yk:()=>l});class r{constructor(e){this.internalEvent=void 0,this.internalEvent=new Event(e)}dispatch(){document.dispatchEvent(this.internalEvent)}}class a extends r{constructor(){super("CrazySDK_AdStarted")}}class i extends r{constructor(){super("CrazySDK_AdFinished")}}class o extends r{constructor(){super("CrazySDK_AdCompleted")}}class s extends r{constructor(){super("CrazySDK_AdError")}}const l={AD_STARTED:"CrazySDK_AdStarted",AD_FINISHED:"CrazySDK_AdFinished",AD_ERROR:"CrazySDK_AdError",AD_COMPLETED:"CrazySDK_AdCompleted"}},53618:(e,t,n)=>{"use strict";n.d(t,{C:()=>c,Z:()=>u});var r=n(70818),a=n(87796),i=n(37178),o=n(90831),s=n(50009),l=n(96607);const c="disable_banner_check";const u=class{constructor(){this.initialized=!1,this.options=void 0,this.version=void 0}init(e){if(this.isInitialized())return;(0,i.Z)("Initializing SDK",e),e.wrapper?"unity"===e.wrapper.engine?l.Z.sdkInit("unity5.6",e.wrapper.sdkVersion):l.Z.sdkInit(e.wrapper.engine,e.wrapper.sdkVersion):l.Z.sdkInit(e.sdkType,e.version),this.initialized=!0,this.options=e;const t=this.parseVersion(e.version);if(!t)throw this.initialized=!1,new Error(`Incorrect version ${e.version}`);this.version=t,(0,a.Z)().sdkInitialized()}requestAd(e){(0,r.Q)().requestAd(e)}happytime(){(0,r.Q)().happytime()}gameplayStart(){(0,r.Q)().gameplayStart()}gameplayStop(){(0,r.Q)().gameplayStop()}sdkGameLoadingStart(){(0,r.Q)().sdkGameLoadingStart()}sdkGameLoadingStop(){(0,r.Q)().sdkGameLoadingStop()}requestInviteUrl(e){(0,r.Q)().requestInviteUrl(e)}isInitialized(){return this.initialized}getSDKComponent(){return(0,r.Q)()}parseVersion(e){if(!e)return null;const t=e.split(".");if(3===t.length){const[e,n,r]=t;return{major:Number(e),minor:Number(n),patch:Number(r)}}return null}async runAdblock(){if(this.version.major<=1&&this.version.minor<=3)return;const e=await this.userHasAdblock();this.adblockDetected(e)}userHasAdblock(){return(0,a.Z)().hasAdblock()}getGameLink(){return(0,o.NI)().gameLink||`https://www.crazygames.com/game/${(0,s.Z)()}`}}},34659:(e,t,n)=>{"use strict";n.d(t,{ZP:()=>m,kj:()=>f,m$:()=>h});var r=n(22870),a=n(86309),i=n(78512),o=n(53618);class s extends o.Z{adCompleted(){(new i.DV).dispatch()}adStarted(){(new i.hn).dispatch()}adFinished(){(new i.Xf).dispatch()}adError(){(new i.VY).dispatch()}adblockDetected(e){}inGameBannerError(e){}inGameBannerRendered(e){}postMessageToSdk(){}}const l=s;var c=n(69121);class u extends o.Z{constructor(){super(...arguments),this.crazySDKObjectName=void 0,this.pointerLockElement=null}init(e){if(this.isInitialized())return!0;if(super.init(e),"unity-lite"===e.sdkType)return!0;const{crazySDKObjectName:t}=e;return t?(this.crazySDKObjectName=t,this.runAdblock(),this.initUnitySDK(),!0):(r.kg.error("[CrazySDK] Missing crazySDKObjectName",e),!1)}initUnitySDK(){const e={gameLink:this.getGameLink(),userInfo:(0,c.So)()};this.sendMessage("InitCallback",JSON.stringify(e))}adStarted(){this.pointerLockElement=this.getPointerLockedElement(),this.pointerLockElement&&this.exitPointerLock(),this.eventHandler("adStarted")}adCompleted(){this.eventHandler("adCompleted")}adError(e,t){this.eventHandler("adError",{error:e,message:t.message,reason:t.reason})}adFinished(){this.pointerLockElement&&this.requestPointerLock(this.pointerLockElement),this.eventHandler("adFinished")}adblockDetected(e){const t=e?"AdblockDetected":"AdblockNotDetected";this.sendMessage(t,void 0)}inGameBannerError(e,t){this.eventHandler("inGameBannerError",{id:e,error:t})}inGameBannerRendered(e){this.eventHandler("inGameBannerRendered",{id:e})}postMessageToSdk(){}sendMessage(e,t){const n=this.getSDKComponent().getUnityInstance();n&&this.crazySDKObjectName&&n.SendMessage(this.crazySDKObjectName,e,t)}eventHandler(e,t){this.version.major>=2?this.sendMessage("AdEvent",JSON.stringify({name:e,...t})):this.sendMessage("AdEvent",e)}getPointerLockedElement(){return document.pointerLockElement||null}exitPointerLock(){document.exitPointerLock&&document.exitPointerLock()}requestPointerLock(e){e&&e.requestPointerLock&&e.requestPointerLock()}}const d=u;let p;function h(){return!!p}function f(){return p||(p=new l,p.init({version:"1.0.0",sdkType:"unity5.6-legacy"}),r.kg.warn("[SDK] SDK not initialized, falling back to legacy SDK")),p}window.addEventListener("message",(function(e){"checkCrazyGamesGF"===e.data.type&&e.source.postMessage({type:"crazyGamesGFConfirmation"},e.origin)}),!1);const m=function(e){if(p)return p.init(e),p;const t=function(e){const{sdkType:t,version:n}=e;switch(t){case"unity5.6":case"unity-lite":return new d;case"js":return new a.ZP;default:if("1.0.0"===n&&!t)return r.kg.warn("[SDK] Using old Unity SDK, please upgrade your implementation"),new d;throw new Error(`[SDK] Unsupported SDKType ${t}`)}}(e);return t.init(e),p=t,t}},86309:(e,t,n)=>{"use strict";n.d(t,{ZP:()=>w,rG:()=>g,wu:()=>m});var r=n(90831),a=n(53618),i=n(34659),o=n(87796),s=n(79776),l=n(96607),c=n(69121),u=n(46604),d=n(93333),p=n(49889),h=n(37921);const f=e=>{const{data:t,type:n}=e.data;switch(n){case"init":case"init-js-sdk":(0,i.ZP)({...t,source:e.source,origin:e.origin})}};function m(){const e=(0,r.NI)().loader;["iframe",...r.j9].includes(e)&&window.addEventListener("message",f)}function g(){window.removeEventListener("message",f)}let v=!1;const b=e=>{const{type:t}=e.data;if("userAccountAvailableResponse"===t)v=!0,window.removeEventListener("message",b)};window.addEventListener("message",b),l.Z.requestUserAccountAvailable();class y extends a.Z{constructor(){super(...arguments),this.source=void 0,this.origin=void 0,this.forwardToPortalMessageTypes=["requestUserToken","addScore","requestXsollaUserToken"],this.forwardToSDKMessageTypes=["showAuthPromptResponse","requestGameDataResponse","requestUserTokenResponse","requestXsollaUserTokenResponse"],this.postEvent=(e,t)=>{const n={type:e,...t||{},messageTarget:"sdk"};this.source.postMessage(n,this.origin)},this.receiveMessage=e=>{const{type:t,data:n}=e.data;if("sdk"!==e.data.messageTarget){switch(t){case"init-js-sdk":case"init":break;case"requestAd":this.handleRequestAd(n);break;case"inviteUrl":this.handleInviteUrl(n);break;case"happytime":this.happytime();break;case"gameplayStart":this.gameplayStart();break;case"gameplayStop":this.gameplayStop();break;case"sdkGameLoadingStart":this.sdkGameLoadingStart();break;case"sdkGameLoadingStop":this.sdkGameLoadingStop();break;case"requestBanner":this.handleRequestBanner(n);break;case"requestResponsiveBanner":this.handleRequestResponsive(n);break;case"showAuthPrompt":(0,p.A)();break;case"showAccountLinkPrompt":this.showAccountLinkPrompt();break;case"bannerProcessed":const{containerId:e,width:t,height:r,error:a}=n;l.Z.bannerResult(e,t,r,a);break;case"requestUserToken":l.Z.requestUserToken();break;case"addScore":l.Z.addScore();break;case"requestXsollaUserToken":l.Z.requestXsollaUserToken();break;case"getSystemInfo":l.Z.getSystemInfo();break;case"getUser":l.Z.getUser()}if(this.forwardToPortalMessageTypes.includes(t)){this.forwardToPortalMessageTypes;const e=t,r=n;l.Z.forwardToPortal(e,r)}else if(this.forwardToSDKMessageTypes.includes(t)){const e=n;this.postEvent(t,e)}}}}init(e){if(this.isInitialized())return this.initializeReply(),void this.runAdblock();l.Z.gfLoaded(),super.init(e),this.source=e.source,this.origin=e.origin,this.registerEventHandlers(),this.initializeReply(),this.runAdblock()}adStarted(){this.postEvent("adStarted")}adError(e,t){this.postEvent("adError",{error:e,errorData:t})}adCompleted(){this.postEvent("adCompleted")}adFinished(){this.postEvent("adFinished")}adblockDetected(e){this.source.postMessage({type:"adblockDetectionExecuted",hasAdblock:e,messageTarget:"sdk"},this.origin)}postMessageToSdk(e,t){this.source.postMessage({type:e,data:t,messageTarget:"sdk"},this.origin)}showAccountLinkPrompt(){l.Z.showAccountLinkPrompt(),this.getSDKComponent().showLinkAccountModal()}registerEventHandlers(){window.addEventListener("message",this.receiveMessage)}handleRequestAd(e){const{adType:t}=e;switch(t){case"midgame":case"rewarded":this.requestAd(t);break;default:return}}handleInviteUrl(e){this.requestInviteUrl(e.inviteUrl)}async initializeReply(){const e=(0,r.NI)();this.source.postMessage({type:"initialized",data:{gameLink:this.getGameLink(),rafvertizingUrl:(0,s.p)(),useTestAds:e.forceTestAds,userInfo:(0,c.So)(),systemInfo:(0,c.So)(),debug:"true"===u.Z.getQueryStringValue("sdk_debug"),disableBannerCheck:!!e.disableBannerCheck||"true"===u.Z.getQueryStringValue(a.C),gameId:e.gameId,locale:e.locale,userAccountAvailable:v,isQaTool:(0,h.I)((0,r.NI)().source)},messageTarget:"sdk"},this.origin)}handleRequestBanner(e){if(!e||0===e.length)return;e.forEach((e=>{const[t,n]=e.size.split("x").map((e=>parseInt(e)));l.Z.banner(t,n)}));const t=(0,o.Z)(),{request:n,errors:r}=t.bannerRequestData(e);n&&this.postEvent("requestBanner",{request:n}),r.forEach((t=>{this.postEvent("bannerError",{containerId:t.id,error:t.message});const n=e.find((e=>e.containerId===t.id));if(!n)return;const[r,a]=(0,d._)(n.size);l.Z.bannerResult(n.containerId,r,a,t.message)}))}inGameBannerError(e,t){this.postEvent("bannerError",{containerId:e,error:t})}inGameBannerRendered(e){this.postEvent("bannerRendered",{containerId:e})}handleRequestResponsive(e){e.forEach((e=>{l.Z.responsiveBanner(e.width,e.height)}));const t=(0,o.Z)(),{request:n,errors:r}=t.responsiveBannerRequestData(e);n&&this.postEvent("requestBanner",{request:n}),r.forEach((e=>this.postEvent("bannerError",{containerId:e.id,error:e.message})))}}const w=y},20637:(e,t,n)=>{"use strict";n.d(t,{f:()=>U,Z:()=>V});var r=n(47313),a=n(37178),i=n(23004),o=n(34659),s=n(86309),l=n(90831),c=n(25947),u=n(46604),d=n(53618);function p(e){const t=f(e.size),n=m(),r=function(e){const t=(0,c.$7)(),n={x:e.anchor.x*t.clientWidth,y:(1-e.anchor.y)*t.clientHeight},r=m(),a=f(e.size),i={width:a.width*r,height:a.height*r},o=e.pivot||{x:.5,y:.5};return{x:n.x+e.position.x*r-i.width*o.x,y:n.y-e.position.y*r-i.height*(1-o.y)}}(e);return{width:t.width,height:t.height,top:r.y,left:r.x,scale:n}}function h(e){return`crazy-banner-${e}`}function f(e){switch(e){case"300x250":return{width:300,height:250};case"320x50":return{width:320,height:50};case"728x90":return{width:728,height:90};case"320x100":return{width:320,height:100};case"468x60":return{width:468,height:60}}}function m(){return(0,c.$7)().clientWidth/922}var g=n(87796),v=n(38459),b=n(46417);const y=r.createContext({banners:[],bannerError:()=>{},bannerRendered:()=>{}});const w=function(e){return t=>(0,b.jsx)(y.Consumer,{children:n=>(0,b.jsx)(e,{...t,...n})})};var x=n(80936),k=n.n(x),S=n(93333);class C extends r.Component{constructor(e){super(e),this.adProvider=void 0,this.handleResize=()=>{this.setState({width:window.innerWidth,height:window.innerHeight})},this.adProvider=(0,g.Z)(),this.state={width:window.innerWidth,height:window.innerHeight}}componentDidMount(){window.addEventListener("resize",k()(this.handleResize,200)),this.handleBannersUpdated([])}componentWillUnmount(){window.removeEventListener("resize",this.handleResize)}componentDidUpdate(e){this.handleBannersUpdated(e.banners)}handleBannersUpdated(e){const t=this.props.banners.filter((t=>!e.find((e=>t.id===e.id))));if(0===t.length)return;const n=t.filter((e=>{if(!function(e){const t=p(e);if((0,l.NI)().disableBannerCheck||"true"===u.Z.getQueryStringValue(d.C))return!0;const n=t.left+t.width*t.scale,r=t.top+t.height*t.scale;return!(t.top<-4||t.left<-4||n>window.innerWidth+4||r>window.innerHeight+4)}(e)){const[t,n]=(0,S._)(e.size);return this.props.bannerError(e.id,t,n,"Banner is not entirely visible"),!1}return!0}));this.requestBanners(n)}render(){return this.props.banners.length>0?this.renderBanners():null}requestBanners(e){const t=e.map((e=>({containerId:h(e.id),size:e.size}))),{request:n,errors:r}=this.adProvider.bannerRequestData(t,(t=>{const n=e.find((e=>h(e.id)===t.code));if(!n)return;const[r,a]=(0,S._)(n.size);if(t.empty){if(this.shouldDisplayTestAds()){const e=this.props.banners.find((e=>h(e.id)===t.code));return void(e&&(this.renderPlaceholder(e),this.props.bannerRendered(e.id,r,a)))}const e=`Sorry, no banner is available for the moment for ${t.code}, please retry`;this.props.bannerError(n.id,r,a,e)}else this.props.bannerRendered(n.id,r,a)}));n&&this.adProvider.requestBanner(n),r.forEach((t=>{const n=e.find((e=>e.id===t.id));if(!n)return;const[r,a]=(0,S._)(n.size);this.props.bannerError(n.id,r,a,t.message)}))}renderBanners(){return(0,b.jsx)(b.Fragment,{children:this.props.banners.map((e=>{const t=p(e);return(0,b.jsx)("div",{id:h(e.id),style:{width:`${t.width}px`,height:`${t.height}px`,position:"absolute",top:`${t.top}px`,left:`${t.left}px`,transform:`scale(${t.scale})`,transformOrigin:"top left",userSelect:"none"}},e.id)}))})}renderPlaceholder(e){const[t,n]=e.size.split("x"),r=document.getElementById(h(e.id));if(!r)return;r.innerHTML="";const a=document.createElement("img");a.setAttribute("src",(0,v.Z)(`crazygames-sdk/${e.size}.png`,{w:parseInt(t),h:parseInt(n)})),r.appendChild(a)}shouldDisplayTestAds(){return(0,l.NI)().forceTestAds}}const E=w(C);var P=n(1168),I=n(6224),A=n(14832),T=n(96607),Z=n(52797),R=n(19314),L=n(71153),_=n(59041),j=n(91815),M=n(58684),z=n(16782),F=n(77626);const D=e=>{let{onCancelClick:t,onOkClick:n,gameName:r}=e;return(0,b.jsx)(M.u_,{children:(0,b.jsxs)(M.hz,{children:[(0,b.jsx)(z.o,{onClick:t}),(0,b.jsx)(M.r6,{children:(0,b.jsx)(F.Z,{id:"linkAccountModal.title"})}),(0,b.jsx)(M.iO,{children:(0,b.jsx)(F.Z,{id:"linkAccountModal.text",values:{gameName:r}})}),(0,b.jsxs)(M.O2,{onClick:n,children:[(0,b.jsx)(j.Z,{}),(0,b.jsx)(F.Z,{id:"linkAccountModal.yes"})]}),(0,b.jsx)(M.IB,{onClick:t,children:(0,b.jsx)(F.Z,{id:"linkAccountModal.no"})})]})})};var N=n(6689),O=n(99161);function B(){throw new Error("SDK is not available")}const U=r.createContext({adState:"none",adType:null,adStarted:B,adFinished:B,adCompleted:B,adError:B});class $ extends r.Component{constructor(e){super(e),this.unityInstance=void 0,this.adFinishedListeners=[],this.addAdFinishedListener=e=>{this.adFinishedListeners.push(e)},this.removeAdFinishedListener=e=>{this.adFinishedListeners=this.adFinishedListeners.filter((t=>t!==e))},this.postMessageToSdk=(e,t)=>{(0,o.m$)()&&this.getSDK().postMessageToSdk(e,t)},this.showLinkAccountModal=()=>{this.setState({linkAccountModalVisible:!0})},this.adStarted=()=>{this.getSDK().adStarted(),(0,a.Z)("event adStarted"),T.Z.adStarted(this.state.adType),this.setState({adState:"playing"})},this.adFinished=()=>{this.getSDK().adFinished(),(0,a.Z)("event adFinished"),this.adFinishedListeners.forEach((e=>e())),T.Z.adFinished(this.state.adType),this.adStopped()},this.adCompleted=()=>{this.getSDK().adCompleted(),T.Z.adFinished(this.state.adType)},this.adError=e=>{const{message:t}=e;this.getSDK().adError(t,{reason:this.getErrorReason(e),message:t}),(0,a.Z)("event adError",t),this.adStopped(),T.Z.adFinished(this.state.adType,t)},this.inGameBannerError=(e,t,n,r)=>{this.getSDK().inGameBannerError(e,r),T.Z.bannerResult(e,t,n,r),(0,a.Z)("In-game banner error",e,r)},this.inGameBannerRendered=(e,t,n)=>{this.getSDK().inGameBannerRendered(e),T.Z.bannerResult(e,t,n),(0,a.Z)("In-game banner rendered",e)},this.onClickOK=()=>this.closeLinkAccountModal("yes"),this.onClickCancel=()=>this.closeLinkAccountModal("no"),this.closeLinkAccountModal=e=>{const t={response:e};this.setState({linkAccountModalVisible:!1}),this.getSDK().postMessageToSdk("linkAccountResponse",t)},this.state={adState:"none",adType:null,inGameBanners:[],linkAccountModalVisible:!1},this.unityInstance=null}componentDidMount(){(0,s.wu)()}componentWillUnmount(){(0,s.rG)()}render(){const{gameName:e}=(0,l.NI)();return(0,b.jsx)(U.Provider,{value:{adState:this.state.adState,adType:this.state.adType,adFinished:this.adFinished,adCompleted:this.adCompleted,adStarted:this.adStarted,adError:this.adError},children:(0,b.jsxs)(y.Provider,{value:{banners:this.state.inGameBanners,bannerRendered:this.inGameBannerRendered,bannerError:this.inGameBannerError},children:[this.renderInGameBanners(),this.props.children,this.state.linkAccountModalVisible&&(0,b.jsx)(D,{onCancelClick:this.onClickCancel,onOkClick:this.onClickOK,gameName:e})]})})}renderInGameBanners(){const e=(0,l.NI)();if(!l.eE.includes(e.loader)||0===this.state.inGameBanners.length)return null;const t=(0,i.$7)();return P.createPortal((0,b.jsx)(E,{}),t)}requestAd(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"midgame";if(!(0,L.H)())return void(0,a.Z)("Ads are disabled");if((0,R.U)()&&!(0,_.Z)())return void(0,a.Z)("Ads are disabled");const{adState:t}=this.state;switch(e){case"midgame":T.Z.midgameAd();break;case"rewarded":T.Z.rewardedAd()}switch(t){case"none":const n=this.getInternalAdtype(e);Z.GA.Instance.trackVideoAdRequested(n),(0,a.Z)(`requesting ad ${n}`),this.setState({adState:"requested",adType:n});break;case"requested":case"playing":break;default:throw new Error(`[SDK] Unexpected AdState ${t}`)}}requestInGameBanner(e){(0,R.U)()?(0,a.Z)("Ads are disabled on kids site"):(e&&e.length>0&&e.forEach((e=>{const[t,n]=e.size.split("x").map((e=>parseInt(e)));T.Z.banner(t,n)})),this.setState({inGameBanners:e}))}happytime(){(0,a.Z)("Cheers it's happy time!"),T.Z.happytime()}gameplayStart(){(0,a.Z)("Gaming phase is starting."),T.Z.gameplayStart()}async gameplayStop(){(0,a.Z)("Gaming phase is finished."),T.Z.gameplayStop(),await N.Z.Instance.syncData()}sdkGameLoadingStart(){(0,a.Z)("Loading of the game has started."),T.Z.sdkGameLoadingStart()}sdkGameLoadingStop(){(0,a.Z)("Loading of the game is finished."),T.Z.sdkGameLoadingStop()}setUnityInstance(e){this.unityInstance=e}getUnityInstance(){return this.unityInstance}requestInviteUrl(e){T.Z.inviteLink(e)}getInternalAdtype(e){const{canPlayAd:t}=this.props;return t((0,A.r)(e))?e:"rewarded"!==e&&I.ZP.shouldShowPWAPrompt()?"pwa-popup":e}adStopped(){Z.GA.Instance.trackBackToGame(this.state.adType),this.setState({adState:"none",adType:null})}getSDK(){return(0,o.kj)()}getErrorReason(e){return e instanceof O.L7?"unfilled":"other"}}const V=$},77626:(e,t,n)=>{"use strict";n.d(t,{Z:()=>i});n(47313);var r=n(18254),a=n(46417);const i=e=>(0,a.jsx)(r.cC,{...e})},93825:(e,t,n)=>{"use strict";n.d(t,{Z:()=>s});n(47313);var r=n(31080),a=n(75993),i=n(19314),o=n(46417);const s=e=>{let{onClick:t,children:n,customStyle:s,customIcon:l}=e;const c=(0,i.U)();return(0,o.jsxs)(r.i,{isKids:c,onClick:t,style:s,children:[n,void 0!==l?l:(0,o.jsx)(a.Z,{})]})}},40889:(e,t,n)=>{"use strict";n.d(t,{Z:()=>l});var r=n(47313),a=n(87308),i=n(90831),o=n(46417);const s=(0,r.lazy)((()=>n.e(4168).then(n.bind(n,64168)))),l=e=>{const t=(0,i.NI)();return(0,a.uo)()&&!t.preventBackButton?(0,o.jsx)(r.Suspense,{fallback:null,children:(0,o.jsx)(s,{...e})}):null}},79924:(e,t,n)=>{"use strict";n.d(t,{Z:()=>s});var r=n(47313),a=n(38459),i=n(57484),o=n(46417);const s=e=>{let{src:t,minWidth:n,imgStyle:s,addBlurredEffect:l,addParamWidth:c}=e;const u=c?(0,a.Z)(t,{w:n}):t,[d,p]=r.useState(!1);return(0,o.jsxs)("div",{style:{width:"100%",height:"100%",position:l?"fixed":void 0,top:l?0:void 0},onLoad:()=>p(!0),children:[l&&d&&(0,o.jsx)(i.CW,{}),(0,o.jsx)("img",{alt:"",src:u,style:{...s,zIndex:1,opacity:d?1:0}})]})}},31080:(e,t,n)=>{"use strict";n.d(t,{i:()=>o,v:()=>s});var r=n(42379),a=n(32606);const i=e=>{let{palette:t}=e;return{color:t.primary.main,textTransform:"capitalize",fontSize:"1.3em",fontWeight:900,cursor:"pointer",transform:"perspective(1px) translateZ(0)",transitionDuration:"0.2s"}},o=(0,r.ZP)("div",{shouldForwardProp:e=>"responsive"!==e&&"isKids"!==e})((e=>{let{theme:t,isKids:n}=e;const{palette:r}=t;return{...i(t),backgroundColor:n?r.secondary.main:a.D.brand[100],color:"#FFFFFF",fontWeight:800,alignItems:"center",display:"inline-flex",justifyContent:"center",position:"relative",borderRadius:"80px",padding:"14px 30px",gap:"5px",[t.breakpoints.down(330)]:{padding:"8px 15px",fontSize:"1em"},"&:hover":{transform:"scale(1.1)",transitionTimingFunction:"cubic-bezier(0.47, 2.02, 0.31, -0.36)","& .arrow":{animation:"none"}}}})),s=(0,r.ZP)("div",{shouldForwardProp:e=>"responsive"!==e})((e=>{let{theme:t,responsive:n,variant:r}=e;const{breakpoints:a,palette:o}=t;return{...i(t),padding:"24px 37px",borderRadius:40,display:"flex",alignItems:"center","&:hover":{transform:"scale(1.1)",transitionTimingFunction:"cubic-bezier(0.47, 2.02, 0.31, -0.36)"},"& svg":{marginTop:2},...n&&{fontSize:"3vw",[a.up("sm")]:{fontSize:"2.2vw"},padding:"2.5vh 3vw"},..."outlined"===r&&{border:"2px solid #fff",background:"transparent",color:o.secondary.contrastText,"&:hover":{transform:"scale(1.1)",transitionTimingFunction:"cubic-bezier(0.47, 2.02, 0.31, -0.36)",backgroundColor:"#ffffff36",borderColor:o.secondary.contrastText,borderWidth:2}},..."contained"===r&&{border:0,backgroundColor:o.secondary.main}}}))},90831:(e,t,n)=>{"use strict";n.d(t,{Dn:()=>r,Fw:()=>o,NI:()=>c,eE:()=>a,j9:()=>i,wm:()=>l});const r="published",a=["5.6.x","unity2020","unity2021","unity2022","unity2023"],i=["5.4.x",...a],o=["5.6.x","unity2020","unity2021","unity2022","unity2023"];let s;function l(e){if(s)throw new Error("[GameConfig] should only be set once");s=e}function c(){if(!s)throw new Error("[GameConfig] is not set");return s}},70818:(e,t,n)=>{"use strict";n.d(t,{Q:()=>Sn});var r=n(47313),a=n(21739),i=n(7883),o=n(18254),s=n(87462),l=n(32772),c=n(30686),u=n(46417);function d(e){const{styles:t,defaultTheme:n={}}=e,r="function"===typeof t?e=>{return t(void 0===(r=e)||null===r||0===Object.keys(r).length?n:e);var r}:t;return(0,u.jsx)(c.xB,{styles:r})}var p=n(63566);const h=function(e){return(0,u.jsx)(d,(0,s.Z)({},e,{defaultTheme:p.Z}))},f=(e,t)=>(0,s.Z)({WebkitFontSmoothing:"antialiased",MozOsxFontSmoothing:"grayscale",boxSizing:"border-box",WebkitTextSizeAdjust:"100%"},t&&{colorScheme:e.palette.mode}),m=e=>(0,s.Z)({color:(e.vars||e).palette.text.primary},e.typography.body1,{backgroundColor:(e.vars||e).palette.background.default,"@media print":{backgroundColor:(e.vars||e).palette.common.white}});const g=function(e){const t=(0,l.Z)({props:e,name:"MuiCssBaseline"}),{children:n,enableColorScheme:a=!1}=t;return(0,u.jsxs)(r.Fragment,{children:[(0,u.jsx)(h,{styles:e=>function(e){var t,n;let r={html:f(e,arguments.length>1&&void 0!==arguments[1]&&arguments[1]),"*, *::before, *::after":{boxSizing:"inherit"},"strong, b":{fontWeight:e.typography.fontWeightBold},body:(0,s.Z)({margin:0},m(e),{"&::backdrop":{backgroundColor:(e.vars||e).palette.background.default}})};const a=null==(t=e.components)||null==(n=t.MuiCssBaseline)?void 0:n.styleOverrides;return a&&(r=[r,a]),r}(e,a)}),n]})};var v=n(51639);const b=(0,n(98295).Z)({key:"css",prepend:!0});function y(e){const{injectFirst:t,children:n}=e;return t?(0,u.jsx)(v.C,{value:b,children:n}):n}var w=n(15693),x=n(20201);const k="function"===typeof Symbol&&Symbol.for?Symbol.for("mui.nested"):"__THEME_NESTED__";const S=function(e){const{children:t,theme:n}=e,a=(0,x.Z)(),i=r.useMemo((()=>{const e=null===a?n:function(e,t){if("function"===typeof t)return t(e);return(0,s.Z)({},e,t)}(a,n);return null!=e&&(e[k]=null!==a),e}),[n,a]);return(0,u.jsx)(w.Z.Provider,{value:i,children:t})};var C=n(86728);function E(e){const t=(0,C.Z)();return(0,u.jsx)(v.T.Provider,{value:"object"===typeof t?t:{},children:e.children})}const P=function(e){const{children:t,theme:n}=e;return(0,u.jsx)(S,{theme:n,children:(0,u.jsx)(E,{children:t})})};var I=n(22870),A=n(18088);const T=["en_US","nl_NL","es_ES","fr_FR","it_IT","de_DE","id_ID","pt_BR","sv_SE","ru_RU","fi_FI","nb_NO","pl_PL","ro_RO","uk_UA","da_DK","cs_CZ","el_GR","hu_HU","tr_TR","ar_SA","vi_VN","th_TH"];class Z{static async getTranslations(e){switch(e){case"en_US":return(await n.e(6876).then(n.t.bind(n,66876,23))).default.messages;case"nl_NL":return(await n.e(1325).then(n.t.bind(n,41325,23))).default.messages;case"es_ES":return(await n.e(5385).then(n.t.bind(n,75385,23))).default.messages;case"fr_FR":return(await n.e(8046).then(n.t.bind(n,58046,23))).default.messages;case"it_IT":return(await n.e(5395).then(n.t.bind(n,45395,23))).default.messages;case"de_DE":return(await n.e(9976).then(n.t.bind(n,89976,23))).default.messages;case"id_ID":return(await n.e(3643).then(n.t.bind(n,53643,23))).default.messages;case"pt_BR":return(await n.e(5080).then(n.t.bind(n,15080,23))).default.messages;case"sv_SE":return(await n.e(4040).then(n.t.bind(n,44040,23))).default.messages;case"ru_RU":return(await n.e(9980).then(n.t.bind(n,29980,23))).default.messages;case"fi_FI":return(await n.e(3938).then(n.t.bind(n,13938,23))).default.messages;case"nb_NO":return(await n.e(2553).then(n.t.bind(n,12553,23))).default.messages;case"pl_PL":return(await n.e(7328).then(n.t.bind(n,7328,23))).default.messages;case"ro_RO":return(await n.e(752).then(n.t.bind(n,20752,23))).default.messages;case"uk_UA":return(await n.e(6861).then(n.t.bind(n,66861,23))).default.messages;case"da_DK":return(await n.e(9051).then(n.t.bind(n,69051,23))).default.messages;case"cs_CZ":return(await n.e(5662).then(n.t.bind(n,55662,23))).default.messages;case"el_GR":return(await n.e(5709).then(n.t.bind(n,35709,23))).default.messages;case"hu_HU":return(await n.e(410).then(n.t.bind(n,40410,23))).default.messages;case"tr_TR":return(await n.e(2064).then(n.t.bind(n,82064,23))).default.messages;case"ar_SA":return(await n.e(1658).then(n.t.bind(n,11658,23))).default.messages;case"vi_VN":return(await n.e(863).then(n.t.bind(n,863,23))).default.messages;case"th_TH":return(await n.e(4500).then(n.t.bind(n,4500,23))).default.messages;default:throw new Error(`[Translations] Unmapped locale translations: ${e}`)}}static async Initialize(e){const t=await this.getSupportedLocale(e);this.locale=t,await this.initializeTranslations(t),console.info(`[Translations] initialized locale "${t}"`)}static getReactIntlLocale(){if(null===this.locale)throw new Error("Locale is not initialized yet");return(0,A.xz)(this.locale)}static getLocale(){return this.locale}static getTranslationMap(){if(null===this.translations)throw new Error("Translations are not initialized yet");return this.translations}static async guessLocale(){const e=t=>{if(0===t.length)return console.info("[Translations] None of the preferred locales are supported"),A.ZW;const n=this.browserLocaleToCzyLocale(t[0]);return T.includes(n)?n:e(t.slice(1))};return e(Array.from(navigator.languages))}static browserLocaleToCzyLocale(e){return e.replace("-","_")}static czyLocaleToBrowserLocale(e){return e.replace("_","-")}static async getSupportedLocale(e){if(e){if(T.includes(e))return e;console.warn(`[Translations] specified locale is not supported: ${e}`)}return await this.guessLocale()}static async initializeTranslations(e){const t=await this.getTranslations(e),n=this.czyLocaleToBrowserLocale(e);i.ag.loadLocaleData({[n]:{plurals:()=>"other"}}),i.ag.load(n,t),i.ag.activate(n),this.translations=t}}Z.translations=null,Z.locale=null;const R=Z;var L=n(14832),_=n(3970),j=n(35311),M=n(69121);const z=e=>{let{children:t}=e;const n=window.matchMedia("(orientation: portrait)"),a=n.matches?"PORTRAIT":"LANDSCAPE",[i,o]=r.useState(a);r.useEffect((()=>{const e=e=>{e.matches?o("PORTRAIT"):o("LANDSCAPE")};return n.addEventListener("change",e),function(){n.removeEventListener("change",e)}}),[n]);const s={...(0,M.Tb)(),orientation:i};return(0,u.jsx)(j.Z.Provider,{value:s,children:t})};var F=n(78512),D=n(34659),N=n(20637),O=n(90831),B=n(6224);class U extends r.Component{constructor(){super(...arguments),this.onMessage=e=>{(function(e){const t=(0,O.NI)().gameLink,n=new URL(t).origin;return e.origin===n})(e)&&("canInstallPWA"===e.data?B.ZP.setCanInstallPWA(!0):"notInstallPWA"===e.data&&B.ZP.setCanInstallPWA(!1))}}componentDidMount(){B.ZP.requestCanInstallPWA(),window.addEventListener("message",this.onMessage)}componentWillUnmount(){window.removeEventListener("message",this.onMessage)}render(){return null}}const $=U;var V=n(23004),G=n(87796),W=n(92457),q=n(52797);const H=async function(e){const{orientation:t}=e;if(t&&"BOTH"!==t&&"screen"in window&&window.screen&&window.screen.orientation&&window.screen.orientation.lock)try{const e="PORTRAIT"===t?"portrait":"landscape";await window.screen.orientation.lock(e)}catch(n){}};var K=n(46604);const Y=()=>Array.from(document.querySelectorAll('link[rel="stylesheet"]')).some((e=>e.href.includes("Nunito")&&e.href.includes("400;600;700;800;900")))?null:(0,u.jsx)("link",{href:"https://fonts.googleapis.com/css2?display=swap&family=Nunito:wght@400;600;700;900",rel:"stylesheet"});var Q=n(46325);const X=class{constructor(){this.gameFrame=void 0,this.gameFrame=null}init(e){this.gameFrame=this.getGameframe();const{version:t}=e;q.GA.Instance.trackSDKLegacy(),"1.0.0"!==t?this.gameFrame.init(e):this.initLegacy(e)}requestAd(e){this.gameFrame?this.gameFrame.requestAd(e):console.error("[CrazySDK Legacy] call init first")}getGameframe(){const e=window.Crazygames;if(!e)throw new Error("[CrazySDK Legacy] gameframe not found?");return e}initLegacy(e){if(!this.gameFrame)throw new Error("[CrazySDK Legacy] gameframe not found?");this.gameFrame.init({...e,sdkType:"unity5.6"})}};var J=n(99187),ee=n(44540),te=n(9172);const ne=e=>{let{warning:t}=e;return(0,u.jsx)(J.Z,{showCrazyLogo:!0,children:(0,u.jsx)(te.Z,{warning:t})})};const re=()=>{const[e,t]=r.useState(null),{stateFinished:n}=r.useContext(ee.Z);return r.useEffect((()=>{const e=(0,O.NI)(),r=function(e){const t=e.gameStatus||O.Dn;switch(t){case"deleted":return"game-deleted";case"unavailable":return"game-unavailable";case"published":return null;default:return I.kg.error("[StatusCheck] unexpected status",t),null}}(e);r?t(r):e.forceNoRewardedAd?t("no-rewarded-countdown"):n()}),[t,n]),e?(0,u.jsx)(ne,{warning:e}):(0,u.jsx)(J.Z,{showCrazyLogo:!1})};var ae=n(47421),ie=n(30648);const oe=function(e){return t=>(0,u.jsx)(ee.Z.Consumer,{children:n=>{let{stateFinished:r}=n;return(0,u.jsx)(e,{...t,stateFinished:r})}})};var se=n(36854),le=n(59041),ce=n(68809),ue=n(19314);class de extends r.Component{constructor(e){super(e),this.playVideo=void 0,this.highestBid=0,this.videoAdStarted=()=>{(0,ce.D)(this.highestBid)},this.playVideo=(0,le.Z)(),this.state={videoUrl:void 0}}async componentDidMount(){const{adFinished:e}=this.props,{countryCode:t}=(0,M.bG)(),n=(0,G.Z)(),r=(0,W.Z)((0,O.NI)());if("NEVER"===r)return void e();if(!this.playVideo)return;const a=n.getMinimumPrerollVideoBid(t,r);try{const t=K.Z.isEmbeddedExternally(),{generator:r,bids:i}=await n.getPreroll(a),o=!t&&!this.props.consent,s=!i.some((e=>{let{cpm:t}=e;return t>=a}));if(o&&s)e();else{const e=await r({tfcd:(0,ue.U)()?1:0});this.highestBid=Math.max(...i.map((e=>e.cpm)),a),this.setState({videoUrl:e})}}catch(i){e()}}render(){const{videoUrl:e}=this.state;if(this.playVideo&&!e)return(0,u.jsx)(J.Z,{showCrazyLogo:!1});{const{adFinished:t,play:n}=this.props,r=this.playVideo?"disabled":"immediately";return(0,u.jsx)(se.Z,{adType:"preroll",videoUrl:e,videoAdStarted:this.videoAdStarted,adFinished:t,adError:t,wrapper:(0,u.jsx)(J.Z,{showCrazyLogo:!1}),play:n,preload:!0,fallback:r,fullSize:!0})}}}const pe=de;var he=n(87308),fe=n(91815),me=n(58684),ge=n(16782),ve=n(77626);const be=e=>{let{onCloseClick:t,onOkClick:n,gameName:r}=e;return(0,u.jsx)(me.u_,{hideBackdrop:!0,children:(0,u.jsxs)(me.hz,{children:[(0,u.jsx)(ge.o,{onClick:t}),(0,u.jsx)(me.r6,{children:(0,u.jsx)(ve.Z,{id:"externalProviderPopup.title"})}),(0,u.jsx)(me.iO,{children:(0,u.jsx)(ve.Z,{id:"externalProviderPopup.message",values:{gameName:r}})}),(0,u.jsxs)(me.O2,{onClick:n,children:[(0,u.jsx)(fe.Z,{}),(0,u.jsx)(ve.Z,{id:"externalProviderPopup.button"})]})]})})};var ye=n(8242),we=n(25831),xe=n(74082),ke=n(43063);const Se=[],Ce="startInFsExp";class Ee{static getInstance(){return Ee.instance||(Ee.instance=new Ee),Ee.instance}constructor(){this.experiments={};for(const e of Se){const{key:t}=e,n=this.fetchExperimentValue(e);this.experiments[t]={value:n.value},n.forced||xe.m.Instance.setItem(t,n.value)}this.registerAllExperiments()}registerAllExperiments(){const e=Object.keys(this.experiments);if(e&&0!==e.length)for(const t of e)ke.Z.getInstance().registerManualExperiment(t,this.experiments[t].value)}getExperimentValue(e){var t;return null===(t=this.experiments[e])||void 0===t?void 0:t.value}getExperimentValueAsBoolean(e){return void 0!==this.experiments[e]?"true"===this.experiments[e].value:void 0}fetchExperimentValue(e){const{key:t}=e,n=this.getForcedExperimentValue(t);if(null!==n&&void 0!==n)return{value:n,forced:!0};const r=xe.m.Instance.getItem(t);if(null!==r&&void 0!==r)return{value:r};let a=Math.random();for(const i of e.options){const{chance:e,value:t}=i;if(a{(function(){const e=(0,O.NI)(),t="NOT_SUPPORTED"!==e.fullscreen,n=!["5.4.x","swfviewer"].includes(e.loader);return Ee.getInstance().getExperimentValueAsBoolean(Ce)&&!K.Z.isEmbeddedExternally()&&n&&t})()&&await this.props.requestFullscreen(!0),"NEVER"===this.showPreroll||this.isAdFinished?this.goToNextState():this.setState({state:"renderAd"})},this.adFinished=()=>{"renderAd"===this.state.state?this.goToNextState():this.isAdFinished=!0},this.getConsentInfoCb=(e,t)=>{if(t){this.listenerId=e.listenerId;const t=!e.gdprApplies||"tcloaded"===e.eventStatus||"useractioncomplete"===e.eventStatus,n=t?"allowed":"disallowed";this.setState({preload:n,consent:t})}},this.state={state:"wait",preload:"disallowed",consent:!1},this.showPreroll=(0,W.Z)((0,O.NI)())}componentDidMount(){const e=(0,he.uo)(),t=(0,ue.U)();"NEVER"!==this.showPreroll?((0,ae.Z)().catch((e=>{I.kg.err(e)})),this.getConsentInfo(),this.setState({state:e?"renderAd":"renderButton"})):e||t?this.goToNextState():this.setState({state:"renderButton"})}componentDidUpdate(e,t){"renderAd"!==t.state&&"renderAd"===this.state.state&&this.props.onPreroll()}componentWillUnmount(){if(null!==this.listenerId){(0,G.Z)().removeConsentListener(this.getConsentInfoCb,this.listenerId)}}render(){const{state:e}=this.state;switch(e){case"wait":return this.renderWaiting();case"renderButton":return this.renderOverlay();default:return this.renderAd()}}renderWaiting(){const e=K.Z.isEmbeddedExternally();return(0,u.jsx)(J.Z,{showCrazyLogo:K.Z.isEmbeddedExternally(),showGDPRNotice:e})}renderOverlay(){const{countryCode:e}=(0,M.bG)(),t=(0,O.NI)(),n={thumbnail:t.thumbnail,gameName:t.gameName,video:t.video,showExternalProviderWarning:t.showExternalProviderWarning},r=(0,M.Ax)(e),a="NEVER"!==this.showPreroll&&(!r||"allowed"===this.state.preload),i=r&&K.Z.isEmbeddedExternally(),o="external"===t.loader?"subtext.play.external":void 0;return(0,u.jsxs)(u.Fragment,{children:[(0,u.jsx)(J.Z,{showCrazyLogo:K.Z.isEmbeddedExternally(),showGDPRNotice:i,children:(0,u.jsx)(ie.Z,{...n,tracker:this.buttonClicked,subtextLabel:o})}),!this.props.device.isMobile&&!this.props.device.isTablet&&t.showExternalProviderWarning&&(0,u.jsx)(be,{gameName:n.gameName,onCloseClick:this.buttonClicked,onOkClick:this.buttonClicked}),a&&this.renderPreroll(!1)]})}renderAd(){return this.renderPreroll(!0)}renderPreroll(e){const t=e?{}:{display:"none"};return(0,u.jsx)("div",{style:t,children:(0,u.jsx)(pe,{adFinished:this.adFinished,play:e,consent:this.state.consent},"preroll")},"parentpreroll")}getConsentInfo(){const e=(0,he.uo)(),t=(0,ue.U)(),{countryCode:n}=(0,M.bG)();if(!t&&(0,M.Ax)(n)){(0,G.Z)().addConsentListener(this.getConsentInfoCb)}else this.setState({consent:!0,preload:"allowed"}),e&&this.setState({state:"renderAd"})}goToNextState(){const{stateFinished:e}=this.props;e()}}const Ae=(0,Pe.q)(oe((0,ye.Z)((0,we.Z)(Ie)))),Te=r.lazy((()=>n.e(2014).then(n.bind(n,52014)))),Ze=r.lazy((()=>n.e(1690).then(n.bind(n,71690)))),Re=r.lazy((()=>n.e(6355).then(n.bind(n,46355)))),Le=()=>{const e=(0,O.NI)(),t=(()=>{switch(e.loader){case"unity2023":case"unity2022":case"unity2021":case"unity2020":return Te;case"5.6.x":return Ze;case"5.4.x":return Re;default:return null}})();return t?(0,u.jsx)(r.Suspense,{fallback:(0,u.jsx)(u.Fragment,{}),children:(0,u.jsx)(t,{})}):null};function _e(e){const t=function(e){const t=e.releaseDate;if(!t)return I.kg.log("missing date",e.gameSlug),null;const n=/^(\d{4})-(\d{2})-(\d{2})$/.exec(t);if(!n)return null;const r=parseInt(n[1],10),a=parseInt(n[2],10)-1,i=parseInt(n[3],10);return new Date(r,a,i).getTime()}(e);return!t||t{const{stateFinished:e}=r.useContext(ee.Z),[t,n]=r.useState(null);return r.useEffect((()=>{const t=(0,O.NI)();(async()=>{await K.Z.Initialize();const r=je(t);if(r)return void n(r);if(!K.Z.isEmbeddedExternally())return void e();const a=je(t)||((0,he.vU)()||K.Z.getReferrer()?null:"no-referrer")||function(e){return K.Z.isSandboxed()&&K.Z.isEmbeddedExternally()&&_e(e)?"sandboxing-disallowed":null}(t)||function(e){return e.disableEmbedding&&K.Z.isEmbeddedExternally()?"embedding-disallowed":null}(t);a?n(a):e()})()}),[e]),t?(0,u.jsx)(ne,{warning:t}):(0,u.jsx)(J.Z,{showCrazyLogo:!1})};let ze=null;function Fe(){return ze||(ze=n.e(9444).then(n.bind(n,49444))),ze}const De=r.lazy((()=>Fe()));let Ne=null;function Oe(){return Ne||(Ne=function(){const e=(0,O.NI)();switch(e.loader){case"unity2023":case"unity2022":case"unity2021":case"unity2020":return n.e(6571).then(n.bind(n,36571));case"5.4.x":return n.e(7935).then(n.bind(n,67935));case"5.6.x":return Promise.all([n.e(1750),n.e(3358)]).then(n.bind(n,43358));case"iframe":return n.e(6327).then(n.bind(n,36327));case"external":return n.e(9936).then(n.bind(n,59936));case"swfviewer":return Promise.all([n.e(5061),n.e(3853)]).then(n.bind(n,13853));case"shumway":return n.e(3399).then(n.bind(n,63399));case"ruffle":return n.e(6544).then(n.bind(n,26544));case"fake":return Promise.all([n.e(1750),n.e(2724)]).then(n.bind(n,62724));default:throw new Error(`[Loader] No such loader ${e.loader}`)}}()),Ne}var Be=n(61627),Ue=n(13751),$e=n(42379),Ve=n(32606);const Ge=(0,$e.ZP)("div")((e=>{let{theme:{breakpoints:t}}=e;return{position:"absolute",bottom:20,display:"flex",width:"100%",justifyContent:"center",zIndex:2,[t.down(360)]:{bottom:0}}})),We=(0,$e.ZP)("div")((e=>{let{theme:{breakpoints:t}}=e;return{alignItems:"center",color:Ve.D.white[80],display:"flex",fontSize:16,fontWeight:700,fontFamily:"Nunito",padding:"4px 12px",[t.down(360)]:{fontSize:12}}})),qe=(0,$e.ZP)("div")((e=>{let{theme:{breakpoints:t}}=e;return{alignItems:"center",background:"rgba(41, 31, 84, 0.8)",backdropFilter:"blur(12px)",color:Ve.D.white[80],cursor:"pointer",display:"flex",fontSize:16,fontWeight:700,justifyContent:"center",padding:12,position:"absolute",bottom:0,width:"100%",zIndex:2,[t.down(360)]:{fontSize:12,padding:6,"& span":{padding:"2px 6px"}},"&:hover":{background:"#41327ACC","& span":{background:Ve.D.white[90],color:Ve.D.black[50]}}}})),He=(0,$e.ZP)("span")({borderRadius:30,border:"1px solid rgba(255, 255, 255, 0.30)",padding:"4px 12px",marginLeft:"8px"}),Ke=(0,$e.ZP)("span")({color:Ve.D.success[100]}),Ye=(0,$e.ZP)("span")({color:Ve.D.warning[100]}),Qe=(0,$e.ZP)("div")({alignItems:"center",background:"rgba(51, 14, 27, 0.80)",backdropFilter:"blur(12px)",color:Ve.D.alert[60],cursor:"pointer",display:"flex",fontSize:14,fontWeight:700,justifyContent:"center",padding:"12px",position:"absolute",bottom:50,width:"100%",zIndex:2,"&:hover":{background:"rgba(104, 24, 53, 0.80)",backdropFilter:"blur(12px)","& span":{background:Ve.D.white[90],color:Ve.D.black[50]}}});var Xe=n(85541);const Je=r.memo((e=>(0,u.jsx)(Xe.Z,{...e,width:"24",height:"24",viewBox:"0 0 24 24",children:(0,u.jsx)("g",{id:"Icon/Uploaded",children:(0,u.jsx)("path",{id:"Union",fillRule:"evenodd",clipRule:"evenodd",d:"M9.76134 5.10181C10.7242 4.86729 11.7383 5.04057 12.5941 5.59677C13.4527 6.15481 14.0917 7.06089 14.354 8.13712C14.4207 8.41096 14.5999 8.64392 14.8475 8.77867C15.095 8.91342 15.388 8.93745 15.6542 8.84484C15.961 8.73809 16.2871 8.7256 16.5987 8.80767C16.911 8.8899 17.2045 9.0662 17.4422 9.32654C17.6804 9.58744 17.8516 9.92143 17.9286 10.2935C18.0055 10.6657 17.9834 11.0537 17.8659 11.4113C17.7019 11.91 17.9516 12.4506 18.4376 12.6492C18.9699 12.8667 19.43 13.2835 19.7247 13.844C19.9902 14.3491 20 14.7138 20 15.8784L20.0001 15.8957C20.0098 16.4512 19.8741 17.2835 19.4802 17.9397C19.1204 18.5391 18.5527 19 17.5358 19H11L8.32656 18.9928C7.75838 18.978 7.33702 18.9329 6.93123 18.8153C6.52749 18.6983 6.08992 18.4948 5.52325 18.1078C4.95374 17.7189 4.56691 17.1332 4.32015 16.5276C4.06973 15.913 4 15.367 4 15.172C4 14.8529 4.00974 14.372 4.07576 13.8751C4.14418 13.3603 4.26195 12.9201 4.42587 12.6321C4.82952 11.923 5.44662 11.4071 6.15319 11.1587C6.61703 10.9956 6.8935 10.5195 6.80525 10.0358C6.60573 8.94225 6.81365 7.81274 7.37509 6.89019C7.93549 5.96934 8.79648 5.33683 9.76134 5.10181ZM13.684 3.91983C12.3743 3.06861 10.7958 2.79137 9.28803 3.15863C7.78228 3.52539 6.48862 4.4997 5.66659 5.85046C4.98289 6.97392 4.66485 8.2912 4.74271 9.60524C3.89141 10.0711 3.1803 10.7774 2.68774 11.6427C2.33453 12.2632 2.17389 13.0044 2.09319 13.6117C2.0101 14.237 2 14.8192 2 15.172C2 15.6491 2.12915 16.4507 2.46799 17.2823C2.8105 18.1229 3.40332 19.082 4.39535 19.7595C5.0947 20.237 5.72341 20.5476 6.37455 20.7363C7.021 20.9236 7.64029 20.9761 8.28696 20.9925L8.30964 20.9928L10.9973 21L11 21H17.5358C19.3474 21 20.5238 20.0871 21.1949 18.9691C21.8295 17.912 22.0127 16.6886 22 15.8702L22.0001 15.7276C22.0013 14.7172 22.0023 13.8785 21.495 12.9134C21.1267 12.2128 20.5945 11.6209 19.9482 11.1955C19.9963 10.7609 19.9762 10.3193 19.8871 9.88846C19.7396 9.17514 19.4071 8.51249 18.9192 7.97809C18.4308 7.44312 17.8049 7.05714 17.1081 6.87362C16.7457 6.77819 16.374 6.74014 16.0049 6.75885C15.532 5.59605 14.7286 4.59875 13.684 3.91983ZM10.4 16.8C10.6199 16.9649 10.8979 17.032 11.1688 16.9856C11.4397 16.9392 11.6796 16.7834 11.832 16.5547L14.832 12.0547C15.1384 11.5952 15.0142 10.9743 14.5547 10.6679C14.0952 10.3616 13.4743 10.4858 13.1679 10.9453L10.7543 14.5657L9.59999 13.7C9.15816 13.3686 8.53136 13.4582 8.19999 13.9C7.86861 14.3418 7.95816 14.9686 8.39999 15.3L10.4 16.8Z"})})})));var et=n(72071);const tt=()=>{const{userId:e}=(0,r.useContext)(Be.N),{gameLoadStatus:t}=(0,r.useContext)(et.r);return e&&"NOT_STARTED"===t?(0,u.jsx)(Ge,{children:(0,u.jsxs)(We,{children:[(0,u.jsx)(Je,{sx:e=>({[e.breakpoints.down(360)]:{display:"none"},height:24,width:24,mr:1,fill:Ve.D.success[100]})}),(0,u.jsx)("div",{children:(0,u.jsx)(ve.Z,{id:"aps.info.enabled",values:{highlight:(0,u.jsx)(Ke,{children:(0,u.jsx)(ve.Z,{id:"aps.info.enabled.highlight"})})}})})]})}):null},nt=r.memo((e=>(0,u.jsx)(Xe.Z,{...e,width:"24",height:"24",viewBox:"0 0 24 24",children:(0,u.jsxs)("g",{id:"Group 56",children:[(0,u.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M10.6074 2.56343C9.75396 2.04027 8.73354 1.87336 7.76155 2.09667C6.78937 2.32002 5.93901 2.91698 5.39233 3.76427C4.84547 4.61185 4.64639 5.64227 4.83876 6.63682C4.93419 7.13017 4.64869 7.61771 4.17174 7.77589C3.46054 8.01175 2.85381 8.49646 2.46221 9.14535C2.07048 9.79444 1.92042 10.5643 2.04018 11.3163C2.15991 12.0682 2.54114 12.7505 3.11302 13.2417C3.68469 13.7327 4.40963 14.0008 5.15746 14C5.70975 13.9994 6.15795 14.4466 6.15856 14.9989C6.15916 15.5512 5.71194 15.9994 5.15965 16C3.93096 16.0013 2.74335 15.5606 1.80993 14.7589C0.876718 13.9574 0.258899 12.848 0.0650643 11.6308C-0.128758 10.4137 0.113621 9.16623 0.749871 8.11196C1.24144 7.29743 1.94367 6.63887 2.77546 6.20304C2.71009 4.96587 3.03357 3.7311 3.71177 2.67996C4.53912 1.39766 5.83031 0.488252 7.31373 0.147446C8.79732 -0.1934 10.3537 0.0620379 11.6526 0.858314C12.6848 1.49106 13.4893 2.42522 13.9677 3.52442C14.3342 3.50561 14.7032 3.54065 15.0629 3.63001C15.7469 3.79993 16.3691 4.15917 16.8596 4.66596C17.35 5.17267 17.6894 5.80668 17.8405 6.49599C17.9274 6.8924 17.9502 7.29837 17.9097 7.69853C18.5382 8.09588 19.0619 8.64709 19.4289 9.30552C19.9384 10.2198 20.1143 11.2842 19.927 12.3146C19.7397 13.345 19.2006 14.2786 18.4008 14.9525C17.6008 15.6265 16.5908 15.9978 15.5458 16C14.9935 16.0012 14.5448 15.5544 14.5437 15.0021C14.5425 14.4498 14.9893 14.0012 15.5416 14C16.1145 13.9988 16.6702 13.7953 17.1121 13.423C17.5542 13.0505 17.8547 12.5322 17.9593 11.9569C18.0639 11.3816 17.9654 10.7878 17.6819 10.2792C17.3985 9.77069 16.9489 9.38037 16.4127 9.17373C15.9092 8.97967 15.6505 8.42113 15.828 7.91157C15.9384 7.59469 15.9589 7.25262 15.8869 6.92435C15.815 6.59611 15.6537 6.29579 15.4225 6.05692C15.1913 5.81812 14.8996 5.65024 14.5807 5.57102C14.2619 5.49181 13.9275 5.50411 13.615 5.60665C13.3525 5.69282 13.0659 5.66647 12.8234 5.53387C12.581 5.40126 12.4042 5.17422 12.335 4.90664C12.0818 3.92646 11.4611 3.08677 10.6074 2.56343Z"}),(0,u.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M9.35984 7.23178C9.73069 6.92274 10.2694 6.92274 10.6402 7.23178L13.6402 9.73178C14.0645 10.0853 14.1218 10.7159 13.7682 11.1402C13.4147 11.5645 12.7841 11.6218 12.3598 11.2682L11 10.135V17C11 17.5523 10.5523 18 10 18C9.44774 18 9.00003 17.5523 9.00003 17V10.135L7.64021 11.2682C7.21593 11.6218 6.58537 11.5645 6.2318 11.1402C5.87824 10.7159 5.93556 10.0853 6.35984 9.73178L9.35984 7.23178Z"})]})})));var rt=n(16157),at=n(8226),it=n(82259),ot=n(38459);const st=r.memo((e=>(0,u.jsx)(Xe.Z,{...e,width:"24",height:"24",viewBox:"0 0 24 24",children:(0,u.jsx)("g",{id:"Group 58",children:(0,u.jsx)("path",{id:"Union",fillRule:"evenodd",clipRule:"evenodd",d:"M10.5941 2.59674C9.73829 2.04054 8.72418 1.86726 7.76134 2.10178C6.79648 2.3368 5.93549 2.96931 5.37509 3.89016C4.81365 4.81271 4.60573 5.94222 4.80525 7.0358C4.8935 7.5195 4.61703 7.99558 4.15319 8.15867C3.44662 8.40711 2.82952 8.92296 2.42587 9.63208C2.26195 9.92005 2.14418 10.3602 2.07576 10.8751C2.00974 11.372 2 11.8528 2 12.172C2 12.3669 2.06973 12.913 2.32015 13.5276C2.56691 14.1332 2.95374 14.7189 3.52325 15.1078C4.7069 15.9161 5.28317 16 5.5 16C6.05228 16 6.5 16.4477 6.5 17C6.5 17.5523 6.05228 18 5.5 18C4.71683 18 3.74375 17.6803 2.39535 16.7594C1.40332 16.082 0.810501 15.1228 0.467995 14.2822C0.129155 13.4506 0 12.649 0 12.172C0 11.8192 0.0101008 11.2369 0.0931921 10.6116C0.173895 10.0043 0.334527 9.2632 0.687739 8.64269C1.1803 7.77737 1.89141 7.07111 2.74271 6.6052C2.66485 5.29117 2.98289 3.97389 3.66659 2.85043C4.48862 1.49967 5.78228 0.525359 7.28803 0.158595C8.7958 -0.20866 10.3743 0.0685822 11.684 0.919798C12.7286 1.59872 13.532 2.59601 14.0049 3.75882C14.374 3.74011 14.7457 3.77816 15.1081 3.87359C15.8049 4.05711 16.4308 4.44309 16.9192 4.97806C17.4071 5.51246 17.7396 6.17511 17.8871 6.88843C17.9762 7.31923 17.9963 7.76092 17.9482 8.19548C18.5945 8.62086 19.1267 9.21277 19.495 9.91337C20.0023 10.8785 20.0013 11.7172 20.0001 12.7276L20 12.8783C20 13.4306 19.5523 13.8783 19 13.8783C18.4477 13.8783 18 13.4306 18 12.8783C18 11.7137 17.9902 11.3491 17.7247 10.844C17.43 10.2835 16.9699 9.86668 16.4376 9.64918C15.9516 9.4506 15.7019 8.90999 15.8659 8.41124C15.9834 8.05367 16.0055 7.66571 15.9286 7.29349C15.8516 6.9214 15.6804 6.58741 15.4422 6.32651C15.2045 6.06617 14.911 5.88987 14.5987 5.80764C14.2871 5.72557 13.961 5.73806 13.6542 5.8448C13.388 5.93742 13.095 5.91339 12.8475 5.77864C12.5999 5.64389 12.4207 5.41093 12.354 5.13709C12.0917 4.06086 11.4527 3.15478 10.5941 2.59674ZM9.29289 17.7071C8.90237 17.3166 8.90237 16.6834 9.29289 16.2929L11.0858 14.5L9.29289 12.7071C8.90237 12.3166 8.90237 11.6834 9.29289 11.2929C9.68342 10.9024 10.3166 10.9024 10.7071 11.2929L12.5 13.0858L14.2929 11.2929C14.6834 10.9023 15.3166 10.9023 15.7071 11.2929C16.0976 11.6834 16.0976 12.3166 15.7071 12.7071L13.9142 14.5L15.7071 16.2929C16.0976 16.6834 16.0976 17.3166 15.7071 17.7071C15.3166 18.0976 14.6834 18.0976 14.2929 17.7071L12.5 15.9142L10.7071 17.7071C10.3166 18.0976 9.68342 18.0976 9.29289 17.7071Z"})})})));var lt=n(49889);const ct=()=>{const{signInModalEnabled:e,setSignInModalEnabled:t}=(0,r.useContext)(Be.N),{gameLoadStatus:n}=(0,r.useContext)(et.r),a=r.useContext(j.Z),i=a.isTablet||a.isMobile,o=()=>{(0,lt.A)()};return"GAME_LOADED"===n?null:e&&"NOT_STARTED"===n&&!i?(0,u.jsx)(me.u_,{hideBackdrop:!0,children:(0,u.jsxs)(me.hz,{sx:{backgroundColor:Ve.D.black[70],width:250,pb:2.5},children:[(0,u.jsx)(rt.Z,{sx:{position:"absolute",width:"30px",height:"30px",right:"8px",top:"8px",backgroundColor:Ve.D.black[90],borderRadius:"28px","&:hover":{cursor:"pointer",backgroundColor:Ve.D.black[80]},"&:active":{backgroundColor:Ve.D.black[70]}},onClick:()=>t(!1),children:(0,u.jsx)(at.Z,{sx:{height:20,width:20,mt:"5px"}})}),(0,u.jsx)("div",{style:{marginTop:12,marginBottom:10,height:121,width:"100%"},children:(0,u.jsx)("img",{src:(0,ot.Z)("/gameframe/astronaut.svg"),alt:"Don't lose your progress!"})}),(0,u.jsx)("h2",{style:{marginBlock:0,fontSize:16,fontWeight:700,marginBottom:4,marginTop:10},children:(0,u.jsx)(ve.Z,{id:"aps.userWasLogged.title"})}),(0,u.jsx)("p",{style:{marginBlock:0,fontSize:14,fontWeight:400,color:Ve.D.white[60]},children:(0,u.jsx)(ve.Z,{id:"aps.userWasLogged.text"})}),(0,u.jsxs)("div",{style:{display:"flex",justifyContent:"space-between",marginTop:15},children:[(0,u.jsx)(it.S,{variant:"outlined",color:"white",height:34,style:{minWidth:100,fontSize:14},onClick:()=>t(!1),children:(0,u.jsx)(ve.Z,{id:"aps.userWasLogged.ignore"})}),(0,u.jsx)(it.S,{variant:"contained",height:34,style:{minWidth:100,fontSize:14},onClick:o,children:(0,u.jsx)(ve.Z,{id:"aps.userWasLogged.login"})})]})]})}):"NOT_STARTED"===n?(0,u.jsxs)(qe,{onClick:o,children:[(0,u.jsx)(nt,{sx:e=>({[e.breakpoints.down(360)]:{display:"none"},height:24,width:24,mr:1,mt:.5,fill:Ve.D.brand[60]})}),(0,u.jsxs)("div",{children:[(0,u.jsx)(ve.Z,{id:"aps.info.loginPrompt"}),(0,u.jsx)(He,{children:(0,u.jsx)(ve.Z,{id:"aps.info.loginPrompt.cta"})})]})]}):"POST_PREROLL"===n?(0,u.jsxs)(Qe,{onClick:o,children:[(0,u.jsx)(st,{sx:e=>({[e.breakpoints.down(360)]:{display:"none"},height:24,width:24,mr:.5,mt:.5,fill:Ve.D.alert[60]})}),(0,u.jsxs)("div",{children:[(0,u.jsx)(ve.Z,{id:"aps.splash.loginPrompt"}),(0,u.jsx)(He,{children:(0,u.jsx)(ve.Z,{id:"aps.splash.loginPrompt.cta"})})]})]}):null},ut=()=>{const{gameLoadStatus:e}=(0,r.useContext)(et.r),t=r.useContext(j.Z),n=t.isTablet||t.isMobile;return"NOT_STARTED"!==e||n?null:(0,u.jsx)(Ge,{children:(0,u.jsxs)(We,{children:[(0,u.jsx)(nt,{sx:{height:24,width:24,mr:1,mt:.5,fill:Ve.D.warning[100]}}),(0,u.jsx)("div",{children:(0,u.jsx)(ve.Z,{id:"aps.info.ingame",values:{highlight:(0,u.jsx)(Ye,{children:(0,u.jsx)(ve.Z,{id:"aps.info.ingame.highlight"})})}})})]})})},dt=()=>{const{userId:e}=(0,r.useContext)(Be.N),t=(()=>{const e=(0,O.NI)().loader;return"iframe"===e?(0,Ue.x3)():"ruffle"===e?(0,Ue.o5)():!!O.Fw.includes(e)&&(0,Ue.v9)()})(),n=(0,O.NI)().aps||"no";return"ingame"===n?(0,u.jsx)(ut,{}):!t||"yes"!==n||K.Z.isEmbeddedExternally()?null:e?(0,u.jsx)(tt,{}):(0,u.jsx)(ct,{})};var pt=n(40889),ht=n(47472),ft=n(42780),mt=n(49081);function gt(e){return e.substring(2).toLowerCase()}const vt=function(e){const{children:t,disableReactTree:n=!1,mouseEvent:a="onClick",onClickAway:i,touchEvent:o="onTouchEnd"}=e,s=r.useRef(!1),l=r.useRef(null),c=r.useRef(!1),d=r.useRef(!1);r.useEffect((()=>(setTimeout((()=>{c.current=!0}),0),()=>{c.current=!1})),[]);const p=(0,ht.Z)(t.ref,l),h=(0,ft.Z)((e=>{const t=d.current;d.current=!1;const r=(0,mt.Z)(l.current);if(!c.current||!l.current||"clientX"in e&&function(e,t){return t.documentElement.clientWidth-1:!r.documentElement.contains(e.target)||l.current.contains(e.target),a||!n&&t||i(e)})),f=e=>n=>{d.current=!0;const r=t.props[e];r&&r(n)},m={ref:p};return!1!==o&&(m[o]=f(o)),r.useEffect((()=>{if(!1!==o){const e=gt(o),t=(0,mt.Z)(l.current),n=()=>{s.current=!0};return t.addEventListener(e,h),t.addEventListener("touchmove",n),()=>{t.removeEventListener(e,h),t.removeEventListener("touchmove",n)}}}),[h,o]),!1!==a&&(m[a]=f(a)),r.useEffect((()=>{if(!1!==a){const e=gt(a),t=(0,mt.Z)(l.current);return t.addEventListener(e,h),()=>{t.removeEventListener(e,h)}}}),[h,a]),(0,u.jsx)(r.Fragment,{children:r.cloneElement(t,m)})};var bt=n(18104),yt=n(32415),wt=n(82937),xt=n(71917);const kt=30,St=(0,$e.ZP)("div")((()=>({zIndex:0,overflow:"hidden",margin:20,height:"inherit",position:"absolute",right:0,bottom:xt.ut.footerHeight,maxWidth:"38%",minWidth:"35%",borderRadius:20}))),Ct=(0,$e.ZP)("div",{shouldForwardProp:e=>"hasMouse"!==e})((e=>{let{hasMouse:t}=e;return{height:"calc(100% - 15px)",overflow:"hidden",...t&&{height:"calc(60% - 15px)",marginTop:15}}})),Et=(0,$e.ZP)("div")((e=>{let{theme:{spacing:t}}=e;return{height:`calc(100% - ${t(4)})`,overflowY:"auto",overflowX:"hidden",marginTop:t(4),padding:t(),borderRadius:t(),backgroundColor:Ve.D.black[70],textAlign:"left",paddingLeft:t(2),color:Ve.D.white[60],fontSize:16,fontWeight:400,"& h2":{color:Ve.D.white[100],fontWeight:800,textAlign:"center",marginBlockStart:0},"& h3":{fontSize:24,color:Ve.D.white[100],fontWeight:800,textAlign:"center",marginBlockStart:0},"&::-webkit-scrollbar":{width:7,background:"rgb(29, 24, 40)"},"&::-webkit-scrollbar-thumb":{background:Ve.D.black[10]}}})),Pt=(0,$e.ZP)("div")({background:Ve.D.black[60],padding:0,overflow:"-moz-scrollbars-vertical",msOverflowY:"scroll",overflowY:"scroll",height:"calc(100% - 30px)",alignItems:"baseline",color:Ve.D.white[100],fontSize:"0.8em","&::-webkit-scrollbar":{width:7,background:"rgb(29, 24, 40)"},"&::-webkit-scrollbar-thumb":{background:Ve.D.black[10]}}),It=(0,$e.ZP)("div",{shouldForwardProp:e=>"activeKey"!==e})((e=>{let{theme:{palette:t},activeKey:n}=e;return{display:"inline-block",padding:"5px 10px",border:"0.5px solid rgba(255, 255, 255, 0.18)",borderRadius:4,fontSize:"0.8em",minWidth:30,textAlign:"center",marginRight:5,marginTop:3,color:Ve.D.white[100],"&:hover":{background:n?"rgba(104, 214, 243, 0.22)":void 0}}})),At=(0,$e.ZP)("div")((()=>({fontSize:"0.8em",height:58,width:93,position:"relative",margin:"auto","& div":{position:"absolute",bottom:0,height:26,width:31},"& div:nth-child(1)":{top:0,left:34,paddingLeft:9},"& div:nth-child(2)":{left:0,"&.arrow-key":{paddingTop:3,paddingLeft:9}},"& div:nth-child(3)":{left:34,paddingLeft:9},"& div:nth-child(4)":{left:68}}))),Tt=(0,$e.ZP)("div",{shouldForwardProp:e=>"isOdd"!==e})((e=>{let{isOdd:t}=e;return{height:"auto",display:"flex",alignItems:"center","&:hover":{cursor:"default","& .keyboardLabel":{color:Ve.D.white[100]},"& .control-keyboard-key":{background:Ve.D.black[20]}},...t&&{background:Ve.D.black[70]}}})),Zt=(0,$e.ZP)("div",{shouldForwardProp:e=>"isLabel"!==e&&"active"!==e})((e=>{let{isLabel:t,active:n,theme:r}=e;return{alignItems:"center",flex:1,padding:"3px 11px 6px 11px",textAlign:"center","&:first-child":{width:"60%"},"&:last-child":{width:"40%",paddingRight:17},...t&&{color:Ve.D.white[60],fontWeight:700,fontSize:"1em"},...n&&{color:Ve.D.white[100]}}})),Rt=(0,$e.ZP)("div")((()=>({fontSize:"0.9em",height:kt,textTransform:"uppercase",color:Ve.D.white[100]}))),Lt=(0,$e.ZP)("path",{shouldForwardProp:e=>"active"!==e})((e=>{let{active:t}=e;return{fill:Ve.D.white[20],"&:hover":{...t&&{fill:Ve.D.white[50],cursor:"default"}}}})),_t=(0,$e.ZP)("g",{shouldForwardProp:e=>"active"!==e})((e=>{let{active:t}=e;return{fill:Ve.D.white[20],...t&&{"&:hover":{fill:Ve.D.white[50],cursor:"default"}}}})),jt=e=>{let{type:t,pressedKey:n}=e;if("arrows"!==t&&"wasd"!==t)return null;const r="arrows"===t?[{key:"▲",pressedKey:"arrowup"},{key:"◀",pressedKey:"arrowleft"},{key:"▼",pressedKey:"arrowdown"},{key:"▶",pressedKey:"arrowright"}]:[{key:"W",pressedKey:"w"},{key:"A",pressedKey:"a"},{key:"S",pressedKey:"s"},{key:"D",pressedKey:"d"}],a=("arrows"===t?"arrow-key":"")+" control-keyboard-key";return(0,u.jsx)("div",{children:(0,u.jsx)(At,{children:r.map(((e,t)=>(0,u.jsx)(It,{activeKey:n===e.pressedKey,className:a,dangerouslySetInnerHTML:{__html:e.key}},t)))})})};class Mt extends r.Component{constructor(e){super(e),this.handleKeyboardEvent=e=>{this.setState({pressedKey:e&&"keydown"===e.type?e.key.toLowerCase():null})},this.checkPressedKey=e=>null!==this.state.pressedKey&&(this.state.pressedKey===e||this.state.pressedKey.includes("arrow")&&e.includes("arrow")),this.checkedPressedKeys=e=>e.some((e=>this.checkPressedKey(e.toLowerCase()))),this.convertLabelToSymbol=e=>{if(e.toLowerCase().includes("arrow"))switch(e.toLowerCase()){case"arrowup":return"▲";case"arrowdown":return"▼";case"arrowleft":return"◀";case"arrowright":return"▶";default:return e}return e},this.state={pressedKey:null}}componentDidMount(){this.props.detectPressedKeys&&(document.addEventListener("keydown",this.handleKeyboardEvent,!1),document.addEventListener("keyup",this.handleKeyboardEvent,!1))}componentWillUnmount(){this.props.detectPressedKeys&&(document.removeEventListener("keydown",this.handleKeyboardEvent,!1),document.removeEventListener("keyup",this.handleKeyboardEvent,!1))}render(){const{controls:e,hasMouse:t,locale:n}=this.props;return(0,u.jsxs)(Ct,{hasMouse:t,children:[(0,u.jsxs)(wt.ZP,{container:!0,children:[(0,u.jsx)(wt.ZP,{item:!0,xs:4,children:(0,u.jsx)(Rt,{children:(0,u.jsx)(ve.Z,{id:"gameControls.keyboard"})})}),(0,u.jsx)(wt.ZP,{item:!0,xs:7,children:(0,u.jsx)("hr",{style:{border:"0.5px solid rgba(255, 255, 255, 0.07)"}})})]}),(0,u.jsx)(Pt,{children:e.map(((e,t)=>{const r=n||A.ZW,a=e.label[r]||e.label[A.ZW]||"";return(0,u.jsxs)(Tt,{isOdd:!!(t%2),children:[(0,u.jsx)(Zt,{children:e.keys.map(((e,t)=>"wasd"===e.toLowerCase()||"arrows"===e.toLowerCase()?(0,u.jsx)(jt,{type:e.toLowerCase(),pressedKey:this.state.pressedKey},t):(0,u.jsx)(It,{activeKey:!(!this.state.pressedKey||!this.checkPressedKey(e.toLowerCase())),className:"control-keyboard-key",dangerouslySetInnerHTML:{__html:this.convertLabelToSymbol(e)}},t)))}),(0,u.jsx)(Zt,{className:"keyboardLabel",isLabel:!0,active:e.keys.some((e=>this.checkPressedKey(e.toLowerCase()))),children:a})]},t)}))})]})}}const zt=Mt,Ft=e=>(0,u.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"80",height:e.height,viewBox:"0 0 80 116",children:[(0,u.jsx)("path",{id:"MouseSvgBorder",fill:Ve.D.white[20],d:"M76 53.438v23.46c0 19.356-16.2 35.192-36 35.192S4 96.254 4 76.899V39.1C4 20.44 19.062 5.054 37.889 3.977c.699-.04 1.402-.067 2.11-.067.635 0 1.264.017 1.89.049 18.93.969 34.11 16.406 34.11 35.142v14.337zM40 0c-.708 0-1.412.02-2.111.055C16.81 1.132-.001 18.234-.001 39.101v37.797c0 9.616 3.57 18.43 9.48 25.248 7.343 8.47 18.3 13.854 30.52 13.854 22.057 0 40-17.54 40-39.101V39.1C80 18.16 63.072 1.015 41.89.047A41.248 41.248 0 0 0 39.999 0z"}),(0,u.jsx)(Lt,{id:"MouseSvgRightButton",opacity:e.hasRight?1:.5,active:e.hasRight,d:"M41 8v23.156c4.56.87 8.008 4.733 8.008 9.355V54H72V39.524C72 22.735 58.263 8.969 41 8",onMouseEnter:e.hasRight?()=>e.mouseEnter("right"):void 0,onMouseLeave:e.hasRight?()=>e.mouseLeave():void 0}),(0,u.jsx)(Lt,{id:"MouseSvgLeftButton",opacity:e.hasLeft?1:.5,active:e.hasLeft,d:"M37 8C20.832 9.078 8 22.798 8 39.519V54h21.67V40.506c0-4.546 3.141-8.354 7.33-9.308V8z",onMouseEnter:e.hasLeft?()=>e.mouseEnter("left"):void 0,onMouseLeave:e.hasLeft?()=>e.mouseLeave():void 0}),(0,u.jsxs)(_t,{fillRule:"evenodd",id:"MouseSvgMiddleButton",opacity:e.hasMiddle?1:.5,active:e.hasMiddle,onMouseEnter:e.hasMiddle?()=>e.mouseEnter("middle"):void 0,onMouseLeave:e.hasMiddle?()=>e.mouseLeave():void 0,children:[(0,u.jsx)("path",{d:"M39.5 35c-3.033 0-5.5 2.04-5.5 4.547V53.453C34 55.96 36.467 58 39.5 58s5.5-2.04 5.5-4.547V39.547C45 37.04 42.533 35 39.5 35"}),(0,u.jsx)("path",{stroke:"#716591",strokeLinecap:"square",d:"M40 68V51.5"})]}),e.hasLeft&&(0,u.jsx)("text",{fill:"#FFF",style:{fontSize:13,fontWeight:"bold",pointerEvents:"none"},children:(0,u.jsx)("tspan",{x:"21.322",y:"32",children:"1"})}),e.hasRight&&(0,u.jsx)("text",{fill:"#FFF",style:{fontSize:13,fontWeight:"bold",pointerEvents:"none"},children:(0,u.jsx)("tspan",{x:"51.6",y:"32",children:"2"})}),e.hasMiddle&&(0,u.jsx)("text",{fill:"#FFF",style:{fontSize:13,fontWeight:"bold",pointerEvents:"none"},children:(0,u.jsx)("tspan",{x:"36.873",y:"83",children:"3"})})]});class Dt extends r.Component{constructor(e){super(e),this.mouseEnterMouseControls=e=>{this.setState({hoveredButton:e})},this.mouseLeaveMouseControls=()=>{this.setState({hoveredButton:null})},this.mouseEnterLabelControls=e=>{this.setState({hoveredLabel:e})},this.mouseLeaveLabelControls=()=>{this.setState({hoveredLabel:null})},this.state={hoveredButton:null,hoveredLabel:null}}render(){const{controls:e,locale:t}=this.props;return(0,u.jsxs)("div",{style:{height:"40%"},children:[(0,u.jsxs)(wt.ZP,{container:!0,children:[(0,u.jsx)(wt.ZP,{item:!0,xs:3,children:(0,u.jsx)(Rt,{children:(0,u.jsx)(ve.Z,{id:"gameControls.mouse"})})}),(0,u.jsx)(wt.ZP,{item:!0,xs:7,children:(0,u.jsx)("hr",{style:{border:"0.5px solid rgba(255, 255, 255, 0.07)"}})})]}),(0,u.jsxs)(wt.ZP,{container:!0,alignItems:"center",justifyContent:"center",sx:{backgroundColor:Ve.D.black[70],color:"#fff",fontSize:"0.8em",height:"calc(100% - 30px)"},children:[(0,u.jsx)(wt.ZP,{item:!0,xs:6,sx:{textAlign:"center",height:"100%",padding:"10px 0"},children:(0,u.jsx)(Ft,{height:"100%",active:this.state.hoveredLabel,hasLeft:!!e.left,hasRight:!!e.right,hasMiddle:!!e.middle,mouseEnter:this.mouseEnterMouseControls,mouseLeave:this.mouseLeaveMouseControls})}),(0,u.jsx)(wt.ZP,{item:!0,xs:6,children:Object.keys(e).map((n=>{const r=t||A.ZW,a=e[n],i=a[r]||a[A.ZW]||"",o=this.state.hoveredButton===n;return(0,u.jsxs)(wt.ZP,{container:!0,onMouseEnter:()=>this.mouseEnterLabelControls(n),onMouseLeave:this.mouseLeaveLabelControls,sx:{marginBottom:"10px","&:hover":{cursor:o?"default":void 0,color:o?"secondary.light":void 0}},children:[(0,u.jsx)(wt.ZP,{item:!0,xs:4,children:this.convertLabelToNumber(n)}),(0,u.jsx)(wt.ZP,{item:!0,xs:4,children:i})]},n)}))})]})]})}convertLabelToNumber(e){switch(e){case"right":return 2;case"middle":return 3;default:return 1}}}const Nt=Dt,Ot=e=>{let{controls:t}=e;const n=R.getLocale();return(0,u.jsxs)(u.Fragment,{children:[t.mouse&&(0,u.jsx)(Nt,{controls:t.mouse,locale:n}),t.keyboard&&(0,u.jsx)(zt,{controls:t.keyboard,detectPressedKeys:!1,hasMouse:!!t.mouse,locale:n})]})},Bt=r.forwardRef(((e,t)=>{let{controls:n,close:r,showControlsEntered:a,customStyles:i}=e;const o=()=>void 0!==n.mouse||void 0!==n.keyboard,s=()=>!o()&&!!n.text;return(0,u.jsx)(vt,{onClickAway:e=>{const t=e;t.path&&t.path.some((e=>"game-controls-toggle-button"===e.id))||r&&r()},children:(0,u.jsxs)(St,{ref:t,id:"game-controls",style:a?{...i,zIndex:3}:i,children:[r&&(0,u.jsx)(bt.Z,{onClick:r,disableRipple:!0,sx:{position:"absolute",right:12,top:s()?12:void 0,"&:hover":{cursor:"pointer",opacity:.75}},children:(0,u.jsx)(at.Z,{style:{color:Ve.D.white[10],width:24,height:24}})}),(0,u.jsxs)(yt.Z,{sx:{background:"none",backgroundColor:Ve.D.black[70],padding:"15px",height:"100%"},children:[o()&&(0,u.jsx)(Ot,{controls:n}),s()&&(0,u.jsx)(Et,{children:(0,u.jsx)("div",{dangerouslySetInnerHTML:{__html:n.text}})})]})]})})}));var Ut=n(58921),$t=n(22690);const Vt=(0,$e.ZP)("div",{shouldForwardProp:e=>"fullscreenFooterEnabled"!==e&&"isFullscreen"!==e})((e=>{let{fullscreenFooterEnabled:t,isFullscreen:n}=e;return{zIndex:0,position:"fixed",left:0,right:0,top:0,bottom:xt.ut.footerHeight,margin:"auto !important",background:"transparent !important",...n&&{bottom:t?xt.ut.footerHeight:0,height:t?`calc(100vh - ${xt.ut.footerHeight}px)`:void 0}}}));var Gt=n(59111);const Wt=function(e){return t=>(0,u.jsx)(Gt.Z.Consumer,{children:n=>(0,u.jsx)(e,{gameframeConfig:n,...t})})},qt=r.lazy((()=>Oe())),Ht=r.lazy((()=>Promise.all([n.e(859),n.e(3814)]).then(n.bind(n,23814))));function Kt(){return!(0,he.uo)()}class Yt extends r.Component{constructor(e){super(e),this.ga=void 0,this.config=void 0,this.toggleControls=()=>{const e=!this.state.showControls;e&&this.ga.trackGameControlsOpened(),this.setState((t=>({showControls:e})))},this.closeControls=()=>{this.setState({showControls:!1,showControlsEntered:!1})},this.showControlsEntered=()=>{this.setState({showControlsEntered:!0})},this.setDimenionsOfContainer=()=>{const e=!this.props.isFullscreen&&Kt(),t=(0,V.vM)(e);t.fill||this.setState({containerHeight:`${t.height}px`,containerWidth:`${t.width}px`})},this.config=(0,O.NI)(),this.ga=q.GA.Instance,this.state={showControls:!1,showControlsEntered:!1,containerHeight:null,containerWidth:null}}componentDidMount(){B.ZP.startGameTime(),this.setDimenionsOfContainer(),window.addEventListener("resize",this.setDimenionsOfContainer)}componentWillUnmount(){window.removeEventListener("resize",this.setDimenionsOfContainer)}render(){return(0,u.jsx)(r.Suspense,{fallback:null,children:(0,u.jsxs)("div",{style:{width:"100%",height:"100%",overflow:"hidden"},id:"game-container-wrapper",children:[this.renderGameContainer(),(0,u.jsx)(qt,{}),this.state.showControlsEntered&&(0,u.jsx)(Ut.Z,{open:this.state.showControlsEntered,invisible:!0,style:{zIndex:2}}),this.shouldRenderControls()&&this.renderControls(),this.renderFooter(),this.renderWarning(),(0,u.jsx)(pt.Z,{hasFooter:Kt()})]})})}renderFooter(){return Kt()?(0,u.jsx)(Ht,{toggleControls:this.toggleControls,controlsActive:this.state.showControls}):null}renderControls(){const{controls:e}=this.config;return e?(0,u.jsx)("div",{id:"game-controls-container",style:{height:"100%",paddingBottom:xt.ut.footerHeight,position:"static",width:"100%"},children:(0,u.jsx)($t.Z,{in:this.state.showControls,onEntered:this.showControlsEntered,mountOnEnter:!0,unmountOnExit:!0,direction:"up",children:(0,u.jsx)(Bt,{close:this.closeControls,controls:e,showControlsEntered:this.state.showControlsEntered,customStyles:{maxHeight:"65%"}})})}):null}renderGameContainer(){const{containerWidth:e,containerHeight:t}=this.state,{isFullscreen:n}=this.props,{gameframeConfig:r}=this.props,{fullscreenFooterEnabled:a}=r;let i={bottom:Kt()?void 0:0};return e&&t&&(i={...i,height:t,width:e}),(0,u.jsx)(Vt,{id:"game-container",style:i,fullscreenFooterEnabled:a,isFullscreen:n},"game-container")}renderWarning(){const{fullscreenError:e,setFullScreenError:t}=this.props;return e?(0,u.jsx)(te.Z,{warning:e,close:()=>t(void 0)}):null}shouldRenderControls(){return this.config.controls&&Object.keys(this.config.controls).length>0}}const Qt=Wt((0,we.Z)(Yt)),Xt=r.lazy((()=>Promise.all([n.e(42),n.e(4311)]).then(n.bind(n,14311)))),Jt=()=>{const[e,t]=r.useState("preroll"),{onPostPreroll:n}=r.useContext(et.r),[a,i]=r.useState(!1),[o,s]=r.useState(!1),l=r.useCallback((e=>{const{disableSplashScreen:t}=(0,O.NI)();switch(e){case"preroll":return"statusCheck";case"statusCheck":return t||(0,he.f0)()?"embedderCheck":"splash";case"splash":return"embedderCheck";case"embedderCheck":return"loadingOrPlaying";case"loadingOrPlaying":return null;default:throw new Error(`[StateManager] Unexpected transition ${e}`)}}),[]);r.useEffect((()=>{"statusCheck"===e&&n()}),[e,n]),r.useEffect((()=>{if(a&&!o){const n=l(e);n&&(t(n),i(!1),s(!0))}}),[a,o,e,l]),r.useEffect((()=>{const t=()=>Promise.resolve();o&&(()=>{switch(l(e)){case"preroll":case"statusCheck":case"embedderCheck":default:return t();case"splash":return Fe();case"loadingOrPlaying":return Oe()}})().then((()=>{s(!1)}))}),[o,l,e]);return(0,u.jsxs)(ee.Z.Provider,{value:{stateFinished:()=>{i(!0)}},children:[(()=>{switch(e){case"preroll":return(0,u.jsxs)(u.Fragment,{children:[(0,u.jsx)(Le,{}),(0,u.jsx)(Ae,{})]});case"statusCheck":return(0,u.jsx)(re,{});case"embedderCheck":return(0,u.jsx)(Me,{});case"splash":return(0,u.jsx)(De,{});case"loadingOrPlaying":return(0,u.jsx)(r.Suspense,{fallback:(0,u.jsx)(u.Fragment,{}),children:(0,u.jsx)(Qt,{})});default:return null}})(),(0,u.jsx)(Xt,{}),(0,u.jsx)(dt,{})]})};var en=n(96607);const tn="fullscreen_footer";class nn extends r.Component{constructor(e){super(e),this.config=void 0,this.shouldEnableTheatreModeInterval=void 0,this.processMessage=e=>{"set-status-theatre-mode-enabled"===e.data&&(this.setState({theatreModeEnabled:!0}),this.clearTheatreModeInterval()),"set-status-theatre-mode-disabled"===e.data&&(this.setState({theatreModeEnabled:!1}),this.clearTheatreModeInterval())},this.config=(0,O.NI)(),this.state={theatreModeEnabled:!1,fullscreenFooterEnabled:!1},this.shouldEnableTheatreModeInterval=null}componentDidMount(){this.props.device.isMobile||(window.addEventListener("message",this.processMessage),this.config.preventTheatreMode||(this.shouldEnableTheatreModeInterval=window.setInterval((()=>{en.Z.requestStatusTheatreMode()}),1500)));const e="false"===xe.m.Instance.getItem(tn);this.setState({fullscreenFooterEnabled:!e})}componentWillUnmount(){this.config.preventTheatreMode||(window.removeEventListener("message",this.processMessage),this.clearTheatreModeInterval())}render(){const{children:e}=this.props;return(0,u.jsx)(Gt.Z.Provider,{value:{theatreModeEnabled:this.state.theatreModeEnabled,fullscreenFooterEnabled:this.state.fullscreenFooterEnabled,hideFullscreenFooter:()=>{this.setState({fullscreenFooterEnabled:!1}),xe.m.Instance.setItem(tn,"false")}},children:e})}clearTheatreModeInterval(){this.shouldEnableTheatreModeInterval&&window.clearInterval(this.shouldEnableTheatreModeInterval)}}const rn=(0,ye.Z)(nn);var an=n(47259);const on=r.memo((e=>(0,u.jsx)(Xe.Z,{...e,width:"140",height:"140",viewBox:"0 0 140 140",children:(0,u.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M109.582 8.08209C111.423 6.24175 111.423 3.25796 109.582 1.41761C107.742 -0.422732 104.758 -0.422732 102.918 1.41761L89.9557 14.3797C87.266 17.0694 87.266 21.4303 89.9557 24.1201L102.918 37.0821C104.758 38.9224 107.742 38.9224 109.582 37.0821C111.423 35.2418 111.423 32.258 109.582 30.4176L102.786 23.6212C114.049 22.9025 120.446 26.4566 124.276 31.3956C128.757 37.1754 130.538 45.8658 130.538 55.5001C130.538 58.1028 132.647 60.2126 135.25 60.2126C137.853 60.2126 139.963 58.1028 139.963 55.5001C139.963 45.1141 138.118 33.8669 131.724 25.6205C125.777 17.9502 116.524 13.6415 103.515 14.1494L109.582 8.08209ZM98.5579 14.5564L109.582 1.41761L98.5267 14.5602L98.5579 14.5564ZM94.3026 19.6277L94.2994 19.5855L93.288 20.7878L93.5443 20.5315L94.3026 19.6277ZM52.0573 21.2979L21.2981 52.0571C19.8825 53.4727 19.8825 55.7679 21.2981 57.1836L82.8164 118.702C84.2321 120.118 86.5273 120.118 87.943 118.702L118.702 87.9427C120.118 86.5271 120.118 84.2319 118.702 82.8162L57.1838 21.2979C55.7682 19.8823 53.4729 19.8823 52.0573 21.2979ZM13.6084 44.3673C7.94575 50.0299 7.94575 59.2108 13.6084 64.8734L75.1266 126.392C80.7892 132.054 89.9701 132.054 95.6327 126.392L126.392 95.6325C132.054 89.9699 132.054 80.789 126.392 75.1264L64.8736 13.6081C59.211 7.94554 50.0301 7.94554 44.3675 13.6081L13.6084 44.3673ZM37.2143 116.379C25.9511 117.098 19.5537 113.544 15.7243 108.604C11.243 102.825 9.4626 94.1343 9.4626 84.4999C9.4626 81.8973 7.35274 79.7874 4.7501 79.7874C2.14746 79.7874 0.0375977 81.8973 0.0375977 84.4999C0.0375977 94.8859 1.8822 106.133 8.27587 114.38C14.2229 122.05 23.4765 126.359 36.4852 125.851L30.4179 131.918C28.5775 133.758 28.5775 136.742 30.4179 138.582C32.2582 140.423 35.242 140.423 37.0824 138.582L50.0444 125.62C52.7341 122.931 52.7341 118.57 50.0444 115.88L37.0824 102.918C35.242 101.078 32.2582 101.078 30.4179 102.918C28.5775 104.758 28.5775 107.742 30.4179 109.582L37.2143 116.379ZM41.4735 125.44C41.4631 125.441 41.4527 125.442 41.4423 125.444L30.4179 138.582L41.4735 125.44ZM45.7008 120.415C45.6997 120.4 45.6987 120.386 45.6975 120.372L46.4558 119.469L46.7122 119.212L45.7008 120.415Z",fill:"white"})})));var sn=n(42669);const ln=()=>{const{orientation:e,isMobile:t,isTablet:n}=r.useContext(j.Z),a=(0,O.NI)(),i="BOTH"!==a.orientation?a.orientation:null;return(t||n)&&i&&i!==e?(0,u.jsxs)(wt.ZP,{container:!0,flexDirection:"column",justifyContent:"center",alignItems:"center",display:"flex",style:{background:"#1F144D",opacity:.9,width:"100%",height:"100%",position:"fixed",top:0,left:0,zIndex:4},children:[(0,u.jsx)(on,{style:{color:"white",height:"140px",width:"140px"}}),(0,u.jsx)(sn.Z,{variant:"h6",textAlign:"center",sx:{mt:2,px:5,fontSize:"36px !important",fontWeight:800,lineHeight:"46px"},children:(0,u.jsx)(ve.Z,{id:"common.rotateScreen"})})]}):null};var cn=n(48300);const un="AW-312835820";var dn=n(67708);function pn(e){en.Z.errorLog(e)}if("undefined"!==typeof window){const e=console.error;console.error=function(){for(var t=arguments.length,n=new Array(t),r=0;r{let{children:t}=e;const[n,a]=r.useState(!1),[i,o]=r.useState(),s=vn.Z.Instance,l=q.GA.Instance,c=K.Z.isEmbeddedExternally();return(0,u.jsx)(mn.s.Provider,{value:{disableFullscreen:()=>{s.exitFullscreen()},requestFullscreen:async e=>{var t;if(l.trackFullscreenRequested(),!s.canFullscreen())return l.trackFullscreenFailed("unavailable"),I.kg.debug("[Game] fullscreen not available"),void(c&&!e&&o("fullscreen-unavailable-when-embedded"));const r="Mac OS"===(null===(t=(0,M.So)().os)||void 0===t?void 0:t.name),i=!n&&matchMedia("(display-mode: fullscreen)").matches;if(!r&&i&&!e)return void o("fullscreen-unavailable-when-in-fullscreen");const{activate:u,deactivate:d}=s.requestFullscreen();return d.then((async()=>{a(!1),l.trackFullscreenExited(),I.kg.debug("[Game] removing fullscreen class from container"),await gn.Z.Instance.syncData()})),u.then((()=>{a(!0),l.trackFullscreenEntered(),I.kg.debug("[Game] adding fullscreen class to container")})).catch((t=>{l.trackFullscreenFailed("error"),I.kg.warn("[Game] fullscreen transition failed: ",t),c&&!e&&o("fullscreen-unavailable-when-embedded"),a(!1)}))},isFullscreen:n,fullscreenError:i,setFullScreenError:o},children:t})};var yn=n(32092),wn=n(11414),xn=n(37921);const kn=r.createRef();function Sn(){const e=kn.current;if(!e)throw new Error("SDK Not initialized");return e}window.Crazygames={load:async function(e){const t=(0,A.lB)();t&&(e.locale=t),K.Z.Initialize();const n=(0,xn.I)(e.source);await Promise.all([R.Initialize(e.locale),(0,M.CS)(n)]),I.kg.log(`[GameFrame] version ${V.f4}`),(0,wn.lD)(e.loader,e.loaderOptions),(0,O.wm)(e),function(){const e=(0,M.Tb)();!e.isMobile&&!e.isTablet&&window.screen.width<1400&&Se.push({defaultValue:"false",key:Ce,options:[{chance:.5,value:"true"}]})}(),await H(e);const s=document.createElement("div");(0,dn.X)();const l=e.isKids||e.forceIsKids;if(!l)try{window.dataLayer=[]||0,window.gtag=window.gtag||function(){window.dataLayer.push(arguments)},gtag("js",new Date),gtag("config",un),(0,an.YD)()&>ag("config","DC-13034049"),(0,cn.ve)("https://www.googletagmanager.com/gtag/js?id=AW-312835820"),q.GA.Instance.init(e.gameSlug||e.gameName,e.loader)}catch(d){console.error(d)}document.body.appendChild(s);const c=new URLSearchParams(window.location.search);if(c.has(an.hI)){const e=c.get(an.hI);(0,an.df)(e)}if(c.has(an.sS)){const e=c.get(an.sS);(0,an.dh)(e)}if("NEVER"!==(0,W.Z)(e)){(0,G.Z)().preloadAdsLibrary()}if(Kt()&&"qa"!==e.source&&"standalone-qa"!==e.source)try{(0,yn.Q)(e.gameSlug)}catch(d){}(0,a.s)(s).render((0,u.jsxs)(r.Fragment,{children:[(0,u.jsx)(z,{children:(0,u.jsx)(o.bd,{i18n:i.ag,children:(0,u.jsx)(y,{injectFirst:!0,children:(0,u.jsxs)(P,{theme:(0,Q.ZP)(l),children:[(0,u.jsx)(g,{}),(0,u.jsx)("style",{children:"\n a {\n text-decoration: none;\n }\n a:hover {\n text-decoration: none;\n }\n "}),(0,u.jsx)(_.ZP,{children:(0,u.jsx)(_.l3.Consumer,{children:e=>(0,u.jsxs)(N.Z,{ref:kn,canPlayAd:e.canPlayAd,children:[(0,u.jsx)(L.Z,{}),(0,u.jsx)(rn,{children:(0,u.jsx)(fn.$,{children:(0,u.jsx)(Be.M,{children:(0,u.jsx)(hn.w,{children:(0,u.jsx)(bn,{children:(0,u.jsxs)(et.i,{children:[(0,u.jsx)(ln,{}),(0,u.jsx)(Jt,{})]})})})})})})]})})})]})})})}),(0,u.jsx)($,{}),(0,u.jsx)(Y,{})]}))},init:e=>{(0,D.ZP)(e)},requestAd:e=>{Sn().requestAd(e)},happytime:()=>{Sn().happytime()},gameplayStart:()=>{Sn().gameplayStart()},gameplayStop:()=>{Sn().gameplayStop()},sdkGameLoadingStart:()=>{Sn().sdkGameLoadingStart()},sdkGameLoadingStop:()=>{Sn().sdkGameLoadingStop()},requestInviteUrl:e=>{Sn().requestInviteUrl(e)},requestBanners:e=>{Sn().requestInGameBanner(e)},screenshotReceived:e=>{},constants:F.yk,getUnityInstance:()=>Sn().getUnityInstance()};const Cn=new X;window.CrazySDK=Cn},43063:(e,t,n)=>{"use strict";n.d(t,{Z:()=>s});var r=n(66501),a=n(90831),i=n(96607);class o{constructor(){this.gameId=void 0,this.analyticsInfo=void 0,this.analyticsInfoResolvers=[],this.debug=void 0,window.addEventListener("message",(e=>{"setAnalyticsInfo"===e.data.type&&this.setAnalyticsInfo(e.data.data.analyticsInfo)}))}static getInstance(){return o.instance||(o.instance=new o),o.instance}setAnalyticsInfo(e){this.analyticsInfo=e;for(const t of this.analyticsInfoResolvers)t(e);this.analyticsInfoResolvers=[]}registerManualExperiment(e,t){this.sendEvent({type:"experiment",key:e,value:t})}sendEvent(e){this.getAnalyticsInfo().then((t=>{const n=this.getAnalyticsDebug();if(!t.enabled&&!n)return;const r={...e,...t,sampling:1,gameId:this.getGameId(),version:"3.2.0",source:"gameframe",time:Date.now()};n&&console.log("[CrazyAnalyticsGF] send event",r),this.sendData(r)}))}getAnalyticsInfo(){if(this.analyticsInfo)return Promise.resolve(this.analyticsInfo);const e=new Promise((e=>{this.analyticsInfoResolvers.push(e)}));return i.Z.requestAnalyticsInfo(),e}getAnalyticsDebug(){if(void 0===this.debug){const e=new URLSearchParams(window.location.search);this.debug="true"===e.get("czy_analytics_debug")}return this.debug}getGameId(){return this.gameId||(this.gameId=(0,a.NI)().gameId),this.gameId}async sendData(e){const t=e,n=this.getEndpoint(),r=async()=>{await window.fetch(n,{method:"post",body:JSON.stringify(t),headers:{"Content-Type":"text/plain"}})};if(window.navigator){const e={type:"text/plain"},a=new Blob([JSON.stringify(t)],e);if(window.navigator.sendBeacon(n,a))return Promise.resolve();await r()}else await r()}getEndpoint(){switch(r.q){case"local":case"dev":return"https://analytics.dev-crazygames.be/event";default:return"https://analytics.crazygames.com/event"}}}o.instance=void 0;const s=o},96607:(e,t,n)=>{"use strict";n.d(t,{Z:()=>i});var r=n(43063),a=n(23004);const i=new class{share(){this.postEvent("share",{})}like(){this.postEvent("like",{})}dislike(){this.postEvent("dislike",{})}neutral(){this.postEvent("neutral",{})}feedback(){this.postEvent("feedback",{})}getPwaInstallEnabled(){this.postEvent("getPwaInstallEnabled",{})}exitFullscreen(){this.postEvent("exitFullscreen",{})}requestStatusTheatreMode(){this.postEvent("requestStatusTheatreMode",{})}requestFullscreenFooterEnabled(){this.postEvent("requestFullscreenFooterEnabled",{})}toggleTheatreMode(){this.postEvent("toggleTheatreMode",{})}addGamePWA(e){this.postEvent("addGamePWA",{source:e})}cancelGamePWAInstall(){this.postEvent("cancelGamePWAInstall",{})}gfLoaded(){this.postEvent("gfLoaded",{})}gameFinishedLoading(){this.postEvent("gameFinishedLoading",{success:!0})}gameLoadingStateResponse(e){this.postEvent("gameLoadingStateResponse",{loaded:e})}sdkInit(e,t){this.postEvent("sdkInit",{sdkType:e,version:t});const n={type:"sdkInit",sdkType:e,sdkVersion:t};this.sendEventToAnalytics(n)}happytime(){this.postEvent("happytime",{});this.sendEventToAnalytics({type:"sdkGame",gameEvent:"happytime"})}gameplayStart(){this.postEvent("gameplayStart",{});this.sendEventToAnalytics({type:"sdkGame",gameEvent:"gameplayStart"})}gameplayStop(){this.postEvent("gameplayStop",{});this.sendEventToAnalytics({type:"sdkGame",gameEvent:"gameplayStop"})}sdkGameLoadingStart(){this.postEvent("sdkGameLoadingStart",{});this.sendEventToAnalytics({type:"sdkGame",gameEvent:"sdkGameLoadingStart"})}sdkGameLoadingStop(){this.postEvent("sdkGameLoadingStop",{});this.sendEventToAnalytics({type:"sdkGame",gameEvent:"sdkGameLoadingStop"})}inviteLink(e){this.postEvent("inviteLink",{url:e});this.sendEventToAnalytics({type:"sdkGame",gameEvent:"inviteLink"})}showInviteButton(){this.sendEventToAnalytics({type:"sdkGame",gameEvent:"showInviteButton"})}clickInviteButton(e){this.postEvent("inviteLink",{url:e})}hideInviteButton(){this.sendEventToAnalytics({type:"sdkGame",gameEvent:"hideInviteButton"})}rewardedAd(){this.postEvent("rewardedAd",{});this.sendEventToAnalytics({type:"sdkAd",adType:"rewarded",status:"requested"})}midgameAd(){this.postEvent("midgameAd",{});this.sendEventToAnalytics({type:"sdkAd",adType:"midgame",status:"requested"})}banner(e,t){this.postEvent("banner",{});const n={type:"sdkBanner",bannerType:"fixed",width:e,height:t};this.sendEventToAnalytics(n)}responsiveBanner(e,t){this.postEvent("responsiveBanner",{});const n={type:"sdkBanner",bannerType:"responsive",width:e,height:t};this.sendEventToAnalytics(n)}bannerResult(e,t,n,r){const a={type:"sdkBannerResult",containerId:e,displayed:!r,width:t,height:n,error:r};this.sendEventToAnalytics(a)}adStarted(e){const t={type:"sdkAd",adType:e,status:"started"};this.sendEventToAnalytics(t)}adFinished(e,t){this.postEvent("adFinished",{error:t});const n={type:"sdkAd",adType:e,status:"finished",error:t};this.sendEventToAnalytics(n)}requestGameData(){this.postEvent("requestGameData",{})}updateGameData(e){this.postEvent("updateGameData",e)}clearGameData(e){this.postEvent("clearGameData",e)}forwardToPortal(e,t){this.postEvent(e,t)}trackProgress(e){const t={type:"load",progress:e};this.sendEventToAnalytics(t)}loadFinished(){this.postEvent("gameLoaded",{gfVersion:a.f4})}requestAnalyticsInfo(){this.postEvent("requestAnalyticsInfo",{})}requestUserPortalInfoSync(){this.postEvent("requestUserPortalInfoSync",{})}requestToFavouriteGame(){this.postEvent("requestToFavouriteGame",{})}requestToUnFavouriteGame(){this.postEvent("requestToUnFavouriteGame",{})}openGamesDrawer(){this.postEvent("openGamesDrawer",{})}requestUserAccountAvailable(){this.postEvent("requestUserAccountAvailable",{})}requestAuthPrompt(){this.postEvent("showAuthPrompt",{});this.sendEventToAnalytics({type:"sdkUser",action:"showAuthPrompt"})}forwardToUpGraphql(e){this.postEvent("forwardToUpGraphql",e)}readyPing(e){this.postEvent("gfReadyPing",{gfCapabilities:e})}errorLog(e){this.postEvent("errorLog",{errorLog:e})}addScore(){this.sendEventToAnalytics({type:"sdkUser",action:"addScore"})}requestUserToken(){this.sendEventToAnalytics({type:"sdkUser",action:"getUserToken"})}requestXsollaUserToken(){this.sendEventToAnalytics({type:"sdkUser",action:"getXsollaUserToken"})}showAccountLinkPrompt(){this.sendEventToAnalytics({type:"sdkUser",action:"showAccountLinkPrompt"})}getSystemInfo(){this.sendEventToAnalytics({type:"sdkUser",action:"getSystemInfo"})}getUser(){this.sendEventToAnalytics({type:"sdkUser",action:"getUser"})}trackAPSTimeout(e,t,n,r){this.trackAPSIssue("timeout",e,n,r,{timer:t})}trackAPSSessionConflict(e,t,n){this.trackAPSIssue("sessionconflict",e,t,n)}trackAPSIssue(e,t,n,r){let a=arguments.length>4&&void 0!==arguments[4]?arguments[4]:{};this.sendEventToAnalytics({type:"apsIssue",issueType:e,loaderName:t,hasUserLoaded:n,hasScriptLoaded:r,jsondata:JSON.stringify(a)})}trackAPSPromptSelection(e,t,n,r){this.sendEventToAnalytics({type:"apsPromptSelection",loaderName:e,selection:t,selectedBy:n,userLoadedAt:r})}postEvent(e,t){window.parent.postMessage({type:"GFEvent",event:e,...t},"*")}sendEventToAnalytics(e){r.Z.getInstance().sendEvent(e)}}},87796:(e,t,n)=>{"use strict";n.d(t,{Z:()=>Se});var r=n(47421),a=n(22870),i=n(90831);const o=function(){return(0,i.NI)().forceTestAds||"true"===new URL(window.location.href).searchParams.get("testAds")};var s=n(79776),l=n(54833),c=n(50009);function u(e){if(0===e.length)throw new Error("[getRandomWeightedElement] Expected list to be not empty");const t=e.reduce(((e,t)=>e+t.chance),0);if(t<=0)throw new Error("[getRandomWeightedElement] expected chances to be higher than 0");let n=Math.random()*t;for(const r of e){if(n0?1:n}function B(e,t){(0,F.Z)(2,arguments);var n=(0,j.Z)(e),r=(0,j.Z)(t),a=O(n,r),i=Math.abs(N(n,r));n.setDate(n.getDate()-a*i);var o=Number(O(n,r)===-a),s=a*(i-o);return 0===s?0:s}var U={ceil:Math.ceil,round:Math.round,floor:Math.floor,trunc:function(e){return e<0?Math.ceil(e):Math.floor(e)}};function $(e){return e?U[e]:U.trunc}var V=n(91177),G=n(68809),W=n(73985),q=n(43063);const H=class extends x{constructor(){super(...arguments),this.bidderCode="rise",this.data={ingameBanners728x90:[{placementId:"ROS-In-Game-728x90-1"},{placementId:"ROS-In-Game-728x90-2"}],ingameBanners300x250:[{placementId:"ROS-In-Game-300x250-1"},{placementId:"ROS-In-Game-300x250-2"}],ingameBanners320x50:[{placementId:"ROS-In-Game-320x50-1"},{placementId:"ROS-In-Game-320x50-2"}],ingameBanners468x60:[{placementId:"ROS-In-Game-468x60-1"},{placementId:"ROS-In-Game-468x60-2"}],ingameBanners320x100:[{placementId:"ROS-In-Game-320x100-1"},{placementId:"ROS-In-Game-320x100-2"}],responsiveIngameBanners:[{placementId:"ROS-In-Game-Multi-1"},{placementId:"ROS-In-Game-Multi-2"}],internalSkippableMidroll:{placementId:"ROS-Video-Midroll-Internal-Skippable"},internalNonSkippableMidroll:{placementId:"ROS-Video-Midroll-Internal-Nonskippable"},internalSkippablePreroll:{placementId:"ROS-Video-Preroll-Internal-Skippable"},internalNonSkippablePreroll:{placementId:"ROS-Video-Preroll-Internal-Nonskippable"},internalSkippableRewarded:{placementId:"ROS-Video-Rewarded-Internal-Skippable"},internalNonSkippableRewarded:{placementId:"ROS-Video-Rewarded-Internal-Nonskippable"}}}generateBanner(e){return{bidder:this.bidderCode,disabled:this.nonGoogleDisabled(),placementId:e.placementId}}generateVideo(e){return{bidder:this.bidderCode,disabled:this.nonGoogleDisabled(),placementId:e.placementId}}};var K=n(47144),Y=n(74082);const Q=class extends x{constructor(){super(...arguments),this.bidderCode="stroeerCore",this.data={internalNonSkippableMidroll:{sid:"85721329-cc61-4838-95ca-bb8f095a1329"},internalNonSkippablePreroll:{sid:"85721329-cc61-4838-95ca-bb8f095a1329"},internalNonSkippableRewarded:{sid:"37566457-c786-4ab0-aaad-635cb48e5450"}}}generateBanner(e){return{bidder:this.bidderCode,disabled:!0,sid:e.sid}}generateVideo(e){return{bidder:this.bidderCode,disabled:this.nonGoogleDisabled()||!this.inEnabledCountry(),sid:e.sid}}inEnabledCountry(){const{countryCode:e}=(0,v.bG)();return!!e&&["DE","CH","AT"].includes(e)}},X=Math.random()<.1||window.location.search.includes("openx_enabled");const J=class extends x{constructor(){super(...arguments),this.bidderCode="openx",this.data={ingameBanners728x90:[{unit:"559805517"},{unit:"559805519"}],ingameBanners300x250:[{unit:"559805504"},{unit:"559805520"}],ingameBanners320x50:[{unit:"559805507"},{unit:"559805510"}],ingameBanners468x60:[{unit:"559805516"},{unit:"559805518"}],ingameBanners320x100:[{unit:"559805512"},{unit:"559805514"}],responsiveIngameBanners:[{unit:"559805521"},{unit:"559805522"}],internalSkippableMidroll:{unit:"559805524"},internalNonSkippableMidroll:{unit:"559805527"},internalSkippablePreroll:{unit:"559805526"},internalNonSkippablePreroll:{unit:"559805535"},internalSkippableRewarded:{unit:"559805525"},internalNonSkippableRewarded:{unit:"559805528"}}}getFallbackBannerInternal(e){switch(e){case"mobile":return this.generateBanner({unit:"559805503"});case"tablet":return this.generateBanner({unit:"559805508"});default:return this.generateBanner({unit:"559805523"})}}generateBanner(e){return{bidder:this.bidderCode,disabled:this.nonGoogleDisabled()||!X,unit:e.unit}}generateVideo(e){return{bidder:this.bidderCode,disabled:this.nonGoogleDisabled()||!X,unit:e.unit}}},ee=[{chance:1,value:2e3}],te=[{chance:.01,value:1600},{chance:.01,value:1800},{chance:.96,value:2e3},{chance:.01,value:2200},{chance:.01,value:2400}],ne={US:.5,GB:.2,AU:.2,CA:.2,NZ:.2,FR:.2,DE:.2,NL:.2,BE:.2,default:.1},re={appnexus:"appnexus_v_disabled",ix:"ix_v_disabled",pubmatic:"pubmatic_v_disabled",rubicon:"rubicon_v_disabled",sharethrough:"st_v_disabled",triplelift:"tl_v_disabled",rise:"rise_v_disabled"},ae={isEnabled:!1,disabledBidder:void 0},ie=.005*Object.keys(re).length;if(Math.random(){this.userType=e.userType}))}async hasAdblock(){await(0,s.k)();const{CrazygamesAds:e}=window;return e.hasAdblock()}async requestPreroll(e,t){const n=await this.requestVideo([{adType:"preroll"}],e,t);if(!n.preroll)throw new Error("expected preroll videourl generator");return n.preroll}async requestMidroll(e,t){const n=await this.requestVideo([{adType:"midroll"}],e,t);if(!n.midroll)throw new Error("expected midroll videourl generator");return n.midroll}async requestRewarded(e,t){const n=await this.requestVideo([{adType:"rewarded"}],e,t);if(!n.rewarded)throw new Error("expected rewarded videourl generator");return n.rewarded}requestVideo(e,t,n){const r={units:e.map((e=>{let{adType:t,disabledBidders:r=[]}=e;const a=[...r];return ae.isEnabled&&a.push(ae.disabledBidder),this.getVideoRequest(t,a,n)}))};return this.requestVideoAdUrl(r,t)}requestVideoFallbackBanner(e,t,n){const r=(0,f.ZP)(t),a=this.isInternal(),i=this.bidders.map((e=>e.getFallbackBanner(t,a))),o=this.fullscreen.isFullscreen(),s={...r,bidders:i},l=this.getBannerRequest([s],1200,{callback:n,pageUrl:this.getGamePageUrl(),dfp:{fallback_position:e,is_fullscreen:(0,d.uo)()?void 0:`${o}`},trackConversion:!0});return this.requestBanner(l)}bannerRequestData(e,t,n){const r=[],a=[],i=this.isInternal();let o;if(t.forEach((t=>{const{size:n,containerId:o}=t,s=(0,g.Z)(n);if(!s)return void a.push(new m(o,`${n} is not a valid size`));try{this.checkContainerLimits(o)}catch(c){return void a.push(c)}const l=this.bidders.map((t=>t.getIngameBanner(n,e,i)));try{r.push(this.selectBannerUnit(s,l,o))}catch(c){a.push(c)}})),r.length>0){const e=u(te),t=this.isSelfHosted()?this.getGamePageUrl():void 0;o=this.getBannerRequest(r,e,{callback:n,pageUrl:t})}return{request:o,errors:a}}responsiveBannerRequestData(e,t,n){const r=[],a=[];let i;if(t.forEach((t=>{const{id:n,width:i,height:o}=t,s=function(e,t){return A.filter((n=>e>=n.width&&t>=n.height)).map((e=>[e.width,e.height]))}(i,o);if(0===s.length)return void a.push(new m(n,`No available ad unit size for ${n} container`));const l=function(e){return T.map((t=>({slotId:t,code:t,sizes:e})))}(s);try{this.checkContainerLimits(n)}catch(u){return void a.push(u)}const c=this.bidders.map((t=>t.getResponsiveIngameBanners(s,e)));try{r.push(this.selectBannerUnit(l,c,n))}catch(u){a.push(u)}})),r.length>0){const e=u(te),t=this.isSelfHosted()?this.getGamePageUrl():void 0;i=this.getBannerRequest(r,e,{callback:n,pageUrl:t})}return{request:i,errors:a}}async requestBanner(e){await(0,s.k)();const{CrazygamesAds:t}=window;t.requestAds(e.request,e.options)}isSelfHosted(){const e=(0,i.NI)();if("iframe"===e.loader){const t=e.loaderOptions&&e.loaderOptions.url;return!t||t.indexOf("files.crazygames.com")>=0}return!0}checkContainerLimits(e){if(this.isBannerContainerCalledBeforeDelay(e))throw new m(e,`A banner has already been requested for container ${e} less than ${se/1e3} seconds ago, please wait.`);if(this.bannerContainerCallCount[e]>60)throw new m(e,`You have reached the maximum banner refresh call for container ${e}`)}selectBannerUnit(e,t,n){const r=e.map(((e,n)=>({...e,bidders:t.map((e=>e[n]))}))).find((e=>!this.isAdUnitCalledBeforeDelay(e.slotId)));if(!r)throw new m(n,`No ad unit available for container ${n}, please wait ${oe/1e3} seconds before requesting the same banner.`);this.bannerUnitLastCall[r.slotId]=Date.now(),this.bannerContainerLastCall[n]=Date.now();const a=this.bannerContainerCallCount[n];return this.bannerContainerCallCount[n]=a?a+1:1,{...r,code:n}}isBannerContainerCalledBeforeDelay(e){return!!this.bannerContainerLastCall[e]&&this.bannerContainerLastCall[e]+function(){if(void 0===se){const e=(0,i.NI)();se=e.bannerRefreshDelayInMs||57e3}return se}()>Date.now()}isAdUnitCalledBeforeDelay(e){return!!this.bannerUnitLastCall[e]&&this.bannerUnitLastCall[e]+function(){if(void 0===oe){const e=(0,i.NI)();oe=e.adUnitDelayInMs||3e4}return oe}()>Date.now()}async requestVideoAdUrl(e,t){const n=e.units.map((e=>e.adUnit.code));if(o()){const e=()=>"https://pubads.g.doubleclick.net/gampad/ads?sz=640x480&iu=/124319096/external/single_ad_samples&ciu_szs=300x250&impl=s&gdfp_req=1&env=vp&output=vast&unviewed_position_start=1&cust_params=deployment%3Ddevsite%26sample_ct%3Dskippablelinear&overlay=1&correlator=",t={};return n.forEach((n=>{t[n]={generator:e,bids:[{bidder:"google",cpm:20}]}})),Promise.resolve(t)}await(0,s.k)();const r=(0,i.NI)(),{CrazygamesAds:a}=window,d={};n.forEach((e=>{d[e]=(0,l.P)()}));const f={},m=Math.random()<.5,{countryCode:g}=(0,v.bG)(),y=(0,c.Z)(),w=this.getVideoDFPKeyValues(n),x=u(ee);let k=window.setTimeout((()=>{n.forEach((e=>{const t=d[e];t&&t.reject("adblock timeout hit")}))}),2*x);const S=this.getGamePageUrl();a.requestAds(e,{dollarRate:r.dollarRate,timeout:x,countryCode:(0,b.U)()?null:g,dfp:w,disableBlockthrough:!0,video:{callback:(e,t,r)=>{k&&(window.clearTimeout(k),k=null);const a=d[t];if(a){const i={generator:async r=>{n.forEach((e=>{this.increaseVideoImpressionNumber(e)}));const a=await e(r),i=new URL(a);return m&&i.searchParams.set("sz","640x480|730x400|320x480|640x360"),this.isInternal()&&!(0,b.U)()&&"midroll"===t&&(this.mridxOrdinalNumber=this.mridxOrdinalNumber+1,i.searchParams.set("mridx",`${this.mridxOrdinalNumber}`)),i.toString()},bids:r||[]};f[t]=i,a.resolve(i)}}},priceFloor:t,trafficSource:this.trafficSource(),bidders:[{bidder:"google",descriptionUrl:encodeURIComponent(p.Z.crazygamesLocalizedGameUrl(r.locale||h.ZW,y))},{bidder:"rubicon",siteId:"156268"},{bidder:"triplelift",discrepancy:.01},{bidder:"sharethrough",discrepancy:.01}],pageUrl:S});const C=n.map((e=>d[e].promise));return await Promise.all(C),f}trafficSource(){return(0,Z.p9)()?"purchased":"organic"}getGamePageUrl(){const e=(0,i.NI)();return p.Z.crazygamesLocalizedGameUrl(e.locale||h.ZW,e.gameSlug)}getVideoDFPKeyValues(e){const t={...this.dfpKeys(),...this.incrementalTestDfpKeys()},n=e.map((e=>this.getVideoImpressionNumber(e)));return{...t,impression_number:`${Math.max(...n)}`,video_intern_timeout:`${V.M}`}}getVideoImpressionNumber(e){switch(e){case"midroll":return this.midRollImpressionNumber;case"rewarded":return this.rewardedImpressionNumber;default:return 1}}increaseVideoImpressionNumber(e){switch(e){case"midroll":this.midRollImpressionNumber++;break;case"rewarded":this.rewardedImpressionNumber++}}getBannerRequest(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};const r=this.dfpKeys(),a=(0,i.NI)(),{countryCode:o}=(0,v.bG)(),s=this.getBannerPriceFloor(o);let l=n.callback;n.trackConversion&&(l=e=>{const{empty:t,houseAd:r,minPrice:a}=e;!t&&!r&&a&&a>0&&(0,G.D)(a),n.callback&&n.callback(e)});return{request:{units:e.map((e=>({adUnit:{code:e.code,mediaTypes:{banner:{sizes:e.sizes,pos:1}}},slotId:e.slotId,bidders:e.bidders,banner:{callback:l}})))},options:{disableBlockthrough:!0,pageUrl:n.pageUrl,countryCode:(0,b.U)()?null:o,priceFloor:s,dollarRate:a.dollarRate,trafficSource:this.trafficSource(),timeout:t,dfp:{...r,...n.dfp,igb_timeout_ong_exp:`${t}`}}}}getVideoRequest(e,t,n){const r="rewarded"===e?31:16,a={code:e,mediaTypes:{video:{playerSize:[640,480],context:"instream",pos:1}}},i=this.isInternal(),o=this.getvideoSlotId(e,i),s=this.bidders.map((r=>t.includes(r.bidderCode)?{skippable:r.disabledParams(),nonSkippable:r.disabledParams()}:r.getVideoAd(e,i,n)));return{adUnit:a,slotId:o,video:{videoType:e,placements:{skippable:{maxDuration:120,skippable:!0,bidders:s.map((e=>e.skippable))},nonSkippable:{maxDuration:r,bidders:s.map((e=>e.nonSkippable))}}}}}getvideoSlotId(e,t){return(0,b.U)()?this.videoKidsSlotId(e):this.videoSlotId(e,t)}videoSlotId(e,t){const n=t?"Internal":"External";switch(e){case"midroll":return`/1004887/ROS-Video-Midroll-${n}`;case"preroll":return`/1004887/ROS-Video-Preroll-${n}`;case"rewarded":return`/1004887/ROS-Video-Rewarded-${n}`;default:throw new Error(`unexpected adtype ${e}`)}}videoKidsSlotId(e){switch(e){case"midroll":return"/1004887/Kids-Video-Midroll-Internal";case"preroll":return"/1004887/Kids-Video-Preroll-Internal";case"rewarded":return"/1004887/Kids-Video-Rewarded-Internal";default:throw new Error(`unexpected adtype ${e}`)}}isInternal(){return p.Z.isOnCrazygames(p.Z.getSafeReferrer())}incrementalTestDfpKeys(){let e={};return Object.values(re).forEach((t=>{e[t]="false"})),ae.isEnabled&&(e[re[ae.disabledBidder]]="true"),e}dfpKeys(){const e=p.Z.getReferrerHostName(),t=(0,i.NI)(),n=t.tagsEnSlugs||[],r=this.fullscreen.isFullscreen(),a=(0,Z.dj)();let o,s;if(a){const e=a.date,t=function(e,t,n){(0,F.Z)(2,arguments);var r=B(e,t)/7;return $(null===n||void 0===n?void 0:n.roundingMethod)(r)}(Date.now(),e)+1;o=`${a.adGroup}_week${t}`;const n=function(e){return(0,F.Z)(1,arguments),(0,j.Z)(e).getMonth()}(e)+1,r=n<10?`0${n}`:`${n}`,i=`${function(e){return(0,F.Z)(1,arguments),(0,j.Z)(e).getFullYear()}(e)}`.slice(-2);s=`${a.adGroup}_${r}_${i}`}const l=(0,W.G)(),u=Y.m.Instance.getItem(K.D),h=!!u&&!!JSON.parse(u);return{game_slug:(0,c.Z)(),category_slug:t.categoryEnSlug,tags_slug:n.length>0?n.join(","):void 0,game_technology:t.loader,domain:e,network_speed:(0,d.E)(),advertising_campaign:(0,Z.FM)(),is_fullscreen:(0,d.uo)()?void 0:`${r}`,ad_group:o,ad_group_month:s,logged_in:`${l}`,user_type:this.userType,video_muted:`${h}`}}getBannerPriceFloor(e){if(!e)return ne.default;const t=ne[e];return void 0!==t?null!==t&&void 0!==t?t:void 0:ne.default}};var ce=n(92457),ue=n(59041),de=n(23004);const pe=3e5;const he=class{constructor(e,t,n,r){this.ads=e,this.adType=t,this.priceFloor=n,this.device=r}},fe=14e4;const me=class extends he{constructor(){super(...arguments),this.requestInProgress=null,this.loopTimer=null,this.noBidsReturnedCount=0,this.currentAd=null,this.started=!1,this.handleVisibilityChange=()=>{if(!this.started)return;"visible"===window.document.visibilityState?this.noBidsReturnedCount<3&&this.restartLoop():this.stopLoop()},this.requestLoop=async()=>{this.loopTimer=null,await this.requestAds(["amazon","stroeerCore"]),this.loopTimer=window.setTimeout(this.requestLoop,fe)}}init(){this.initVisibilityListener()}start(){this.started=!0,this.requestLoop()}async getVastUrl(){if(this.requestInProgress||await this.requestAds(),this.requestInProgress&&await this.requestInProgress.promise,!this.currentAd)throw new Error("No ad currently available");const{generator:e,bids:t}=this.currentAd,n=await e({tfcd:(0,b.U)()?1:0});return this.currentAd=null,window.setTimeout((()=>{this.restartLoop()}),31e3),{url:n,bids:t,priceFloor:this.priceFloor}}stopLoop(){this.loopTimer&&(window.clearTimeout(this.loopTimer),this.loopTimer=null)}restartLoop(){this.stopLoop(),this.requestLoop()}async requestAds(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[];if(!this.requestInProgress){this.requestInProgress=(0,de.PQ)();try{var t;const n=await this.ads.requestVideo([{adType:this.adType,disabledBidders:e}],this.priceFloor,this.device);this.checkNewBids(null===(t=n.midroll)||void 0===t?void 0:t.bids)?this.resetNoBidReturned():this.incrementNoBidReturned(),this.currentAd=n[this.adType]||null}catch(n){this.incrementNoBidReturned(),this.currentAd=null}this.requestInProgress.resolve(),this.requestInProgress=null}}initVisibilityListener(){window.addEventListener("visibilitychange",this.handleVisibilityChange)}resetNoBidReturned(){this.noBidsReturnedCount=0,this.loopTimer||this.restartLoop()}incrementNoBidReturned(){this.noBidsReturnedCount++,3===this.noBidsReturnedCount&&this.stopLoop()}checkNewBids(e){if(!e)return!1;const t=Date.now()-fe+5e3;return e.some((e=>e.requestTimestamp&&e.requestTimestamp>t))}};const ge=class extends he{async getVastUrl(){let e,t;if("rewarded"===this.adType){const{generator:n,bids:r}=await this.ads.requestRewarded(this.priceFloor,this.device);t=r,e=await n({tfcd:(0,b.U)()?1:0})}else{const{generator:n,bids:r}=await this.ads.requestMidroll(this.priceFloor,this.device);t=r,e=await n({tfcd:(0,b.U)()?1:0})}return{url:e,bids:t,priceFloor:this.priceFloor}}async init(){}async start(){}};var ve=n(67708);const be={US:15,CA:8,GB:10,AU:8,NZ:5,DE:6.67,FR:6.67,NL:6.67,AT:6.67,ES:6.67,CH:6.67,IE:6.67,EU:5,PL:3.33,SK:3.33,MX:3.33,JP:2.5,TW:2.5,SG:2.5,IN:.41,VN:.41,DZ:.41,default:2},ye={US:10,GB:8,AU:6,CA:5,NZ:3,DE:5.25,FR:5.25,IE:4,AT:4,ES:4,CH:4,EU:2.5,MX:2,JP:2,TW:1.5,SG:2,default:1},we={US:10,GB:8,AU:6,CA:5,NZ:3,DE:5.25,FR:5.25,IE:4,AT:4,ES:4,CH:4,EU:2.5,MX:2,JP:2,TW:1.5,SG:2,default:1};const xe=class{constructor(){this.ads=void 0,this.preroll=null,this.prerollPromise=null,this.prerollRequestTime=null,this.midrollProvider=null,this.rewardedProvider=null,this.isSdkInitialized=!1,this.ads=new le}async addConsentListener(e){await(0,s.k)();const{CrazygamesAds:t}=window;t.addTCFConsentListener(e)}async removeConsentListener(e,t){await(0,s.k)();const{CrazygamesAds:n}=window;n.removeTCFConsentListener(e)}async preloadAdsLibrary(){(0,s.k)().catch((()=>{}));const{countryCode:e}=(0,v.bG)();if(!(0,ue.Z)())return;const t=(0,ce.Z)((0,i.NI)());if(!(0,v.Ax)(e)){const r=this.getMinimumPrerollVideoBid(e,t);try{await this.requestPreroll(r)}catch(n){}}}getMinimumPrerollVideoBid(e,t){const n=this.getLocalMinimumPrerollVideoBid((0,ve.E)(),e,t);return this.adjustMinimumBid(n)}getMinimumMidrollVideoBid(e){const t=this.getMinimumBid(e,ye);return this.adjustMinimumBid(t)}getMinimumRewardedVideoBid(e){const t=this.getMinimumBid(e,we);return this.adjustMinimumBid(t)}requestVideoFallbackBanner(e,t){const n=this.getDevice();return this.ads.requestVideoFallbackBanner(e,n,t)}bannerRequestData(e,t){const n=this.getDevice();return this.ads.bannerRequestData(n,e,t)}responsiveBannerRequestData(e,t){const n=this.getDevice();return this.ads.responsiveBannerRequestData(n,e,t)}requestBanner(e){this.ads.requestBanner(e)}async getPreroll(e){this.prerollPromise&&await this.prerollPromise.promise;const t=this.prerollRequestTime||0;if(!this.preroll||Date.now()-t>pe){const t=this.getDevice();return await this.ads.requestPreroll(e,t)}const n=this.preroll;return this.preroll=null,n}async getMidroll(){const e=this.getMidrollProvider();return await e.getVastUrl()}async getRewarded(){const e=this.getRewardedProvider();return await e.getVastUrl()}sdkInitialized(){var e,t;if(this.isSdkInitialized)return;this.isSdkInitialized=!0,(0,r.Z)().catch((e=>{a.kg.err(e)}));const n=(0,i.NI)(),o=(0,ue.Z)();if(!n.hasMidroll&&void 0!==n.hasMidroll||!o||null!==(e=n.disablePooledPrebid)&&void 0!==e&&e.midroll||window.setTimeout((()=>{this.getMidrollProvider().start()}),15e3),n.hasRewarded&&o&&(null===(t=n.disablePooledPrebid)||void 0===t||!t.rewarded)){this.getRewardedProvider().start()}}hasAdblock(){return this.ads.hasAdblock()}getDevice(){const e=(0,v.Tb)();return e.isMobile||e.isSmallDevice?"mobile":e.isTablet?"tablet":"desktop"}requestPreroll(e){this.prerollRequestTime=Date.now(),this.prerollPromise=(0,l.P)();const t=this.getDevice();return this.ads.requestPreroll(e,t).then((e=>{this.preroll=e||null,this.prerollPromise.resolve(),this.prerollPromise=null})).catch((e=>{this.prerollPromise.reject(e)})),this.prerollPromise.promise}getMinimumBid(e,t){return e?void 0!==t[e]?t[e]:void 0!==t.EU&&(0,v.Ax)(e)?t.EU:t.default:t.default}getLocalMinimumPrerollVideoBid(e,t,n){return e?50:"ALWAYS"===n?we.default:this.getMinimumBid(t,be)}adjustMinimumBid(e){const t=(0,v.Tb)();return t.isSafari||t.isOpera||t.isFirefox?.6*e:e}getMidrollProvider(){if(!this.midrollProvider){return this.initMidrollProvider()}return this.midrollProvider}getRewardedProvider(){if(!this.rewardedProvider){return this.initRewardedProvider()}return this.rewardedProvider}initMidrollProvider(){var e;const t=(0,i.NI)(),{countryCode:n}=(0,v.bG)(),r=this.getDevice();return null!==(e=t.disablePooledPrebid)&&void 0!==e&&e.midroll?(this.midrollProvider=new ge(this.ads,"midroll",this.getMinimumMidrollVideoBid(n),r),this.midrollProvider.init()):(this.midrollProvider=new me(this.ads,"midroll",this.getMinimumMidrollVideoBid(n),r),this.midrollProvider.init()),this.midrollProvider}initRewardedProvider(){var e;const t=(0,i.NI)(),{countryCode:n}=(0,v.bG)(),r=this.getDevice();return null!==(e=t.disablePooledPrebid)&&void 0!==e&&e.rewarded?(this.rewardedProvider=new ge(this.ads,"rewarded",this.getMinimumRewardedVideoBid(n),r),this.rewardedProvider.init()):(this.rewardedProvider=new me(this.ads,"rewarded",this.getMinimumRewardedVideoBid(n),r),this.rewardedProvider.init()),this.rewardedProvider}};let ke;const Se=function(){return ke||(ke=new xe),ke}},47259:(e,t,n)=>{"use strict";n.d(t,{FM:()=>h,YD:()=>u,df:()=>m,dh:()=>v,dj:()=>b,hI:()=>a,hY:()=>d,p9:()=>f,sS:()=>o});var r=n(74082);const a="utm_campaign",i="AD_CAMPAIGN",o="ad_group",s="AD_GROUP",l="AD_GROUP_DATE";let c=null;function u(){return!!h()}function d(){const e=r.m.Instance.getItem(l);if(!e)return!1;const t=Date.now()-Number(e);return u()&&t<6048e5}function p(){const e=r.m.Instance.getItem(l);if(!e)return!1;return!(Date.now()-Number(e)<=23328e6)&&(r.m.Instance.removeItem(i),r.m.Instance.removeItem(s),r.m.Instance.removeItem(l),!0)}function h(){if(null===c){if(p())return void(c=void 0);c=r.m.Instance.getItem(i)||void 0}return c}function f(){return c}function m(e){r.m.Instance.setItem(i,e),c=e}let g=null;function v(e){const t=Date.now();r.m.Instance.setItem(s,e),r.m.Instance.setItem(l,`${t}`),g={adGroup:e,date:t}}function b(){if(null===g){if(p())return void(g=void 0);const e=r.m.Instance.getItem(s);if(e){const t=r.m.Instance.getItem(l);g={adGroup:e,date:Number(t)||Date.now()}}else g=void 0}return g}},71153:(e,t,n)=>{"use strict";n.d(t,{H:()=>o});var r=n(69121),a=n(19314);const i=["US"];function o(){if((0,a.U)()){if(window.location.search.includes("kids_ads"))return!0;const{countryCode:e}=(0,r.bG)();return!(!e||!i.includes(e))}return!0}},93333:(e,t,n)=>{"use strict";n.d(t,{Z:()=>i,_:()=>a});const r={"728x90":[{slotId:"/1004887/ROS-In-Game-728x90-1",code:"/1004887/ROS-In-Game-728x90-1",sizes:[[728,90]]},{slotId:"/1004887/ROS-In-Game-728x90-2",code:"/1004887/ROS-In-Game-728x90-2",sizes:[[728,90]]}],"300x250":[{slotId:"/1004887/ROS-In-Game-300x250-1",code:"/1004887/ROS-In-Game-300x250-1",sizes:[[300,250]]},{slotId:"/1004887/ROS-In-Game-300x250-2",code:"/1004887/ROS-In-Game-300x250-2",sizes:[[300,250]]}],"320x50":[{slotId:"/1004887/ROS-In-Game-320x50-1",code:"/1004887/ROS-In-Game-320x50-1",sizes:[[320,50]]},{slotId:"/1004887/ROS-In-Game-320x50-2",code:"/1004887/ROS-In-Game-320x50-2",sizes:[[320,50]]}],"468x60":[{slotId:"/1004887/ROS-In-Game-468x60-1",code:"/1004887/ROS-In-Game-468x60-1",sizes:[[468,60]]},{slotId:"/1004887/ROS-In-Game-468x60-2",code:"/1004887/ROS-In-Game-468x60-2",sizes:[[468,60]]}],"320x100":[{slotId:"/1004887/ROS-In-Game-320x100-1",code:"/1004887/ROS-In-Game-320x100-1",sizes:[[320,100],[320,50]]},{slotId:"/1004887/ROS-In-Game-320x100-2",code:"/1004887/ROS-In-Game-320x100-2",sizes:[[320,100],[320,50]]}]};function a(e){return e.split("x").map(parseInt)}const i=function(e){return r[e]}},79776:(e,t,n)=>{"use strict";n.d(t,{k:()=>l,p:()=>o});var r=n(66501),a=n(48300),i=n(22870);function o(){switch(r.q){case"local":case"dev":return"https://rafvertizing.dev-crazygames.be/rafvertizing-v8.js";case"prod":return"https://pafvertizing.crazygames.com/rafvertizing-v8.js";default:return i.kg.error(`[Rafvertizing] Unexpected appStage ${r.q}`),"https://pafvertizing.crazygames.com/rafvertizing-v8.js"}}let s;function l(){return window.CrazygamesAds?Promise.resolve():s||(s=(0,a.ve)(o()).then((()=>{window.CrazygamesAds.initAds()})),s)}},92457:(e,t,n)=>{"use strict";n.d(t,{Z:()=>s});var r=n(46604),a=n(87308),i=n(71153);const o=["bing.com/bingbot.htm","Googlebot","Storebot-Google","Applebot","AhrefsBot","PetalBot"];const s=function(e){let t,{showAdOnExternal:n,showAdOnInternal:s}=e;return(0,a._W)()?"NEVER":(t=r.Z.isOnCrazygames(r.Z.getSafeReferrer())?void 0===s?"DEFAULT":s:n,"NEVER"===t?"NEVER":(0,i.H)()?"true"===r.Z.getQueryStringValue("secretSkipPreroll")||"undefined"!==typeof window&&o.some((e=>window.navigator.userAgent.includes(e)))?"NEVER":t:"NEVER")}},28153:(e,t,n)=>{"use strict";function r(e){return("desktop"===e||"tablet"===e)&&window.innerHeight>500&&window.innerWidth>1e3}function a(e){let t=[];switch(e){case"mobile":t=[[300,250],[320,50]];break;case"desktop":case"tablet":t=[[300,250],[728,90],[336,280]],r(e)&&t.push([970,250])}return t}function i(e){const t={desktop:{slotId:"/1004887/ROS-Intermediate-Desktop",code:"div-gpt-ad-1593517925540-0",sizes:a("desktop")},mobile:{slotId:"/1004887/ROS-Intermediate-Mobile",code:"div-gpt-ad-1593517956614-0",sizes:a("mobile")},tablet:{slotId:"/1004887/ROS-Intermediate-Tablet",code:"div-gpt-ad-1593517980869-0",sizes:a("tablet")}};switch(e){case"desktop":default:return t.desktop;case"tablet":return t.tablet;case"mobile":return t.mobile}}function o(e){return i(e).code}n.d(t,{Qh:()=>o,ZP:()=>s,wk:()=>r});const s=i},66501:(e,t,n)=>{"use strict";n.d(t,{q:()=>r});const r="prod"},49889:(e,t,n)=>{"use strict";n.d(t,{A:()=>i});var r=n(96607),a=n(4774);const i=()=>{a.Z.Instance.isFullscreen()&&a.Z.Instance.exitFullscreen(),r.Z.exitFullscreen(),r.Z.requestAuthPrompt()}},68809:(e,t,n)=>{"use strict";n.d(t,{D:()=>i});var r=n(47259),a=n(12549);function i(e){e&&"undefined"!==typeof gtag&&(gtag("event","conversion",{send_to:"AW-312835820/UBOSCNjR06wDEOz9lZUB",value:e,currency:"EUR"}),(0,r.YD)()&>ag("event","purchase",{allow_custom_scripts:!0,currency:"EUR",value:e,quantity:1,transaction_id:(0,a.Z)(),send_to:"DC-13034049/rev0/crazy0+items_sold"}),(0,r.hY)()&>ag("event","purchase",{allow_custom_scripts:!0,currency:"EUR",value:e,quantity:1,transaction_id:(0,a.Z)(),send_to:"DC-13034049/crazy0/crazy0+items_sold"}))}},87308:(e,t,n)=>{"use strict";n.d(t,{E:()=>f,G6:()=>c,U0:()=>h,_W:()=>d,f0:()=>l,i7:()=>o,uo:()=>p,vU:()=>s,w1:()=>u});var r=n(90831),a=n(69121);function i(e,t){return e===t}function o(){const{device:e}=(0,a.bG)(),{browser:t}=e;return i(t.name,"Chrome")}function s(){const{device:e}=(0,a.bG)(),{browser:t}=e;return i(t.name,"Firefox")}function l(){const{device:e}=(0,a.bG)(),{browser:t}=e;return i(t.name,"Opera")}function c(){const{device:e}=(0,a.bG)(),{browser:t}=e;return i(t.name,"Safari")||i(t.name,"Mobile Safari")}function u(){const{device:e}=(0,a.bG)(),{browser:t}=e;return i(t.name,"IE")}function d(){return function(){const{device:e}=(0,a.bG)(),{browser:t}=e;return i(t.name,"Edge")}()&&function(){const{device:e}=(0,a.bG)(),{engine:t}=e;return"Blink"!==t.name}()}function p(){const{device:e}=(0,a.bG)(),t=(0,r.NI)(),n="tablet"===e.device.type;return!!("mobile"===e.device.type||n||function(){if(window.navigator.userAgent.indexOf("iPad")>-1)return!0;const{device:e}=(0,a.bG)();return"Mac OS"===(e.os.name||"")&&window.navigator.maxTouchPoints>2}()||t&&t.forceMobile)}function h(){const e=!!window.navigator.standalone,t=window.matchMedia("(display-mode: standalone)").matches;return e||t}function f(){try{const e=window.navigator.connection;if(!e)return"unknown";const t=e.downlink;if(void 0===t)return"unknown";if(t>10)return"10";return t.toFixed(0)}catch(e){return"unknown"}}},4774:(e,t,n)=>{"use strict";n.d(t,{Z:()=>s});var r=n(22870),a=n(54833);const i=[{name:"generic",requestFullscreen:"requestFullscreen",fullscreenEnabled:"fullscreenEnabled",changeListener:"fullscreenchange",errorListener:"fullscreenerror",isFullscreen:"fullscreen",exitFullscreen:"exitFullscreen"},{name:"webkit",requestFullscreen:"webkitRequestFullscreen",fullscreenEnabled:"webkitFullscreenEnabled",changeListener:"webkitfullscreenchange",errorListener:"webkitfullscreenerror",isFullscreen:"webkitIsFullScreen",exitFullscreen:"webkitExitFullscreen"},{name:"moz",requestFullscreen:"mozRequestFullScreen",fullscreenEnabled:"mozFullScreenEnabled",changeListener:"mozfullscreenchange",errorListener:"mozfullscreenerror",isFullscreen:"mozFullScreen",exitFullscreen:"mozCancelFullScreen"}];class o{constructor(){this.fs=void 0,this.deferredActivate=void 0,this.deferredDeactivate=void 0,this.handleError=e=>{this.deferredActivate&&(this.deferredActivate.reject("[Fullscreen] requestFullscreen failed -- legacy api"),this.deferredActivate=null)},this.handleChange=e=>{this.isFullscreen()?(r.kg.debug("[Fullscreen] fullscreen entered"),this.deferredActivate&&(this.deferredActivate.resolve(),this.deferredActivate=null)):(r.kg.debug("[Fullscreen] fullscreen exited"),this.deferredDeactivate&&(this.deferredDeactivate.resolve(),this.deferredDeactivate=null))},this.fs=this.findPropSet(),this.deferredActivate=null,this.deferredDeactivate=null,this.fs&&(document.addEventListener(this.fs.errorListener,this.handleError),document.addEventListener(this.fs.changeListener,this.handleChange))}static get Instance(){return this.singleton||(this.singleton=new o)}requestFullscreen(e){if(!this.fs)throw new Error("[Fullscreen] browser does not support requesting fullscreen");let t;t=e?e[this.fs.requestFullscreen]():document.body[this.fs.requestFullscreen]();return{activate:this.wrapRequestFullscreenResponse(t),deactivate:this.waitForDeactivation()}}isFullscreen(){return!!this.fs&&document[this.fs.isFullscreen]}canFullscreen(){return!!this.fs&&document[this.fs.fullscreenEnabled]}exitFullscreen(){if(!this.fs)throw new Error("[Fullscreen] browser does not support exiting fullscreen");return document[this.fs.exitFullscreen]()}async wrapRequestFullscreenResponse(e){if(e)return e;const t=this.deferredActivate=(0,a.P)();return setTimeout((()=>{this.deferredActivate===t&&(t.reject("[Fullscreen] requesting fullscreen timed out"),this.deferredActivate=null)}),6e4),this.deferredActivate.promise}async waitForDeactivation(){return this.deferredDeactivate=(0,a.P)(),this.deferredDeactivate.promise}findPropSet(){const e=i.find((e=>void 0!==document[e.isFullscreen]));return e?(r.kg.debug(`[Fullscreen] propset ${e.name}`),e):(r.kg.warn("[Fullscreen] no matching fs propset found"),null)}}o.singleton=void 0;const s=o},67708:(e,t,n)=>{"use strict";n.d(t,{E:()=>o,X:()=>s});var r=n(74082),a=n(12549);let i=!1;function o(){return i}function s(){const e=r.m.Instance,t=e.getItem("_ga");if(t)return t;const n=(0,a.Z)();return e.setItem("_ga",n),i=!0,n}},25947:(e,t,n)=>{"use strict";n.d(t,{$7:()=>o,tn:()=>s,vM:()=>l});var r=n(90831),a=n(71917),i=n(22870);function o(){const e=document.getElementById("game-container");if(!e){const e="[game-container] Cannot grab #game-container - is it properly loaded?";throw i.kg.error(e),new Error(e)}return e}function s(){const e=document.getElementById("game-container-wrapper");if(!e){const e="[game-container-wrapper] Cannot grab #game-container-wrapper - is it properly loaded?";throw i.kg.error(e),new Error(e)}return e}function l(e){const{displayRatio:t}=(0,r.NI)(),n=e?a.ut.footerHeight:0,i=window.innerWidth,o=window.innerHeight-n;if(t&&t.w&&t.h){const e=Math.min(i/t.w,o/t.h),n=e*t.h,r=e*t.w;return{height:n,width:r,left:(i-r)/2,top:(o-n)/2}}return{fill:!0,height:o,width:i}}},50009:(e,t,n)=>{"use strict";n.d(t,{Z:()=>i});var r=n(90831);const a=function(e){return e.replace(/[`~!@#$%^*()_|+\\=?;:'",.<>\\{\\}\\[\]\\\\/]/gi," ").trim().replace(/\s+/g,"-").toLowerCase()};const i=function(e){const t=e||(0,r.NI)();return t.gameSlug||a(t.gameName)}},20505:(e,t,n)=>{"use strict";n.d(t,{GA:()=>s,Z:()=>l});var r=n(46604);const a="Fullscreen",i="Preloader",o="VideoAds";class s{constructor(){this.loadStartTime=0,this.gameSlug=void 0,this.loaderType=void 0,this.enabled=void 0,this.enabled=r.Z.isEmbeddedExternally()}static get Instance(){return this._instance||(this._instance=new this)}trackFirstQuarterLoaded(){this.trackLoadProgress("First Quarter")}trackSecondQuarterLoaded(){this.trackLoadProgress("Second Quarter")}trackThirdQuarterLoaded(){this.trackLoadProgress("Third Quarter")}trackNinetyPercentLoaded(){this.trackLoadProgress("Ninety Percent")}trackLoadStarted(){this.loadStartTime=Date.now(),this.send({eventCategory:i,eventAction:"Load Start"})}trackLoadFinished(){this.trackLoadProgress("Load Finish")}trackStuck(e){this.send({eventCategory:i,eventAction:"Stuck",eventValue:e})}trackStuckRetry(){this.send({eventCategory:i,eventAction:"StuckRetry"})}trackStuckWait(){this.send({eventCategory:i,eventAction:"StuckWait"})}trackGameControlsOpened(){this.send({eventCategory:"Gamecontrols",eventAction:"Open"})}trackFullscreenRequested(){this.send({eventCategory:a,eventAction:"Request"})}trackFullscreenEntered(){this.send({eventCategory:a,eventAction:"Enter"})}trackFullscreenExited(){this.send({eventCategory:a,eventAction:"Exit"})}trackFullscreenFailed(e){this.send({eventCategory:a,eventAction:"Fail",eventLabel:e})}trackAdvancedLoadingTab(e){this.send({eventCategory:"AdvancedLoading",eventAction:"Tab",eventLabel:e})}trackButtonClick(e,t){this.send({eventCategory:"Button",eventAction:e.toString(),eventLabel:t})}trackVideoAdRequested(e){this.send({eventCategory:o,eventAction:"AdRequested",eventLabel:e})}trackBackToGame(e){this.send({eventCategory:o,eventAction:"BackToGame",eventLabel:e})}trackAdImaStarted(e){this.send({eventCategory:o,eventAction:"ImaStarted",eventLabel:e})}trackAdStarted(e,t,n){this.send({eventCategory:o,eventAction:"AdStarted",eventLabel:`${n}_${t}_${e}`})}trackAdCompleted(e,t,n){this.send({eventCategory:o,eventAction:"AdCompleted",eventLabel:`${n}_${t}_${e}`})}trackAdSkippedUsingOverlay(e,t){this.send({eventCategory:o,eventAction:"AdSkippedOverlay",eventLabel:`${t}_${e}`})}trackAdInternalTimeoutHit(e){this.send({eventCategory:o,eventAction:"InternalTimeoutHit",eventLabel:e})}trackAdNoProgress(e){this.send({eventCategory:o,eventAction:"NoProgress",eventLabel:e})}trackAdTimingRequestStarted(e,t){const n=Date.now()-e;this.send({eventAction:"timing",eventCategory:o},{timingCategory:o,timingVar:"AdRequestedStarted",timingValue:n,timingLabel:t})}trackSDKLegacy(){this.send({eventCategory:"SDKLegacy",eventAction:"Initialised",eventLabel:this.gameSlug})}setGameSlug(e){this.gameSlug=e}setLoaderType(e){this.loaderType=e}trackLoadProgress(e){const t=Date.now()-this.loadStartTime;t>9e5||(this.send({eventAction:"timing",eventCategory:i},{timingCategory:i,timingVar:e,timingValue:t}),this.send({eventCategory:i,eventAction:e}))}defaultParams(){const e={title:"GameFrame",hostname:window.location.hostname,referrer:document.referrer};r.Z.isIframed()&&(e.campaignSource=r.Z.getSafeReferrer().hostname,e.campaignMedium="iframed"),this.gameSlug&&(e.dimension1=this.gameSlug),this.loaderType&&(e.dimension2=this.loaderType);const t=window.navigator.connection,n=t&&t.downlink;return void 0!==n&&(e.dimension3=n),e}init(e,t){this.enabled&&(this.gameSlug=e,this.loaderType=t,"undefined"!==typeof gtag&>ag("config","G-SG66H2GZ82",{loaderType:this.loaderType}))}send(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};this.enabled&&"undefined"!==typeof gtag&>ag("event",e.eventAction,{event_category:e.eventCategory,event_label:e.eventLabel,value:e.eventValue,...this.defaultParams(),...t})}}s._instance=void 0;const l=s},52797:(e,t,n)=>{"use strict";n.d(t,{O:()=>i,GA:()=>r.GA,J:()=>a});var r=n(20505);let a=function(e){return e.Steam="steam",e.PlayStore="playstore",e.AppStore="appstore",e.MoreLink="morelink",e.CrazyLink="crazylink",e.PlayOnCrazyLink="playoncrazylink",e.SimilarGames="similargames",e.FlashActivate="flashunavailable",e.FlashAlternative="flashalternative",e.FlashEnableNotAppearing="flashenablenotappearing",e.FlashPlaySimilarGames="flashsimilargames",e.SandboxDisallowed="sandboxdisallowed",e.EmbeddingDisallowed="embeddingdisallowed",e.AlternativeGame="alternativegame",e.EmbeddedAlternativeGame="embeddedalternativegame",e.NoReferrer="noreferrer",e.WindowFullscreen="windowfullscreen",e.AdBlockIgnoreReward="adBlockIgnoreReward",e.AdBlockWhitelist="adBlockWhiteList",e}({}),i=function(e){return e.FullScreenRedirect="fullscreen_redirect",e.UnityUnavailableRedirect="unityunavail_redirect",e.FlashUnavailableRedirect="flashunavail_redirect",e.EmbeddedRedirect="embedded_redirect",e.GameDeletedRedirect="gamedeleted_redirect",e.GameUnavailableRedirect="gameunavailable_redirect",e.AdsTxtMissing="ads_txt_missing",e.NoReferrer="no_referrer",e.ZiggyAnimation="ziggy_animation",e}({})},38459:(e,t,n)=>{"use strict";n.d(t,{Z:()=>o});const r="https://images.crazygames.com/",a={auto:"format,compress",q:75,cs:"strip",ch:"DPR"};function i(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=e;n.startsWith("http")||(n=r+e);const i=new URL(n),o=i.search,s=new URLSearchParams(o),l=Object.assign({},a,t);return Object.entries(l).forEach((e=>{let[t,n]=e;void 0!==n&&s.set(t,`${n}`)})),i.search=s.toString(),i.toString()}const o=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return i(e,t)}},23004:(e,t,n)=>{"use strict";n.d(t,{$7:()=>a.$7,PQ:()=>r.P,f4:()=>i,tn:()=>a.tn,vM:()=>a.vM});var r=n(54833),a=n(25947);n(46604);const i="1.260.0"},19314:(e,t,n)=>{"use strict";n.d(t,{U:()=>a});var r=n(90831);function a(){const{isKids:e,forceIsKids:t}=(0,r.NI)();return!(!e&&!t)}},47421:(e,t,n)=>{"use strict";n.d(t,{Z:()=>i});var r=n(48300);let a=null;const i=function(){return a||(a=(0,r.ve)("https://imasdk.googleapis.com/js/sdkloader/ima3.js")),a}},18088:(e,t,n)=>{"use strict";n.d(t,{ZW:()=>o,lB:()=>l,xz:()=>s});const r=[{domain:"spelle.be",locale:"nl_NL"},{domain:"minijuegos.com",locale:"es_ES"},{domain:"juegos.com",locale:"es_ES"},{domain:"juegosfriv2019.org",locale:"es_ES"},{domain:"juegosfriv2018.net",locale:"es_ES"},{domain:"juegosdechicas.com",locale:"es_ES"},{domain:"juegosfriv2019.com",locale:"es_ES"},{domain:"juegosfrivas.com",locale:"es_ES"},{domain:"juegosarea.com",locale:"es_ES"},{domain:"friv2019com.com",locale:"es_ES"},{domain:"mixfriv.com",locale:"es_ES"},{domain:"juegosfriv2016.org",locale:"es_ES"},{domain:"1001juegos.com",locale:"es_ES"},{domain:"juegos.games",locale:"es_ES"},{domain:"juegosfriv100.link",locale:"es_ES"},{domain:"juegosfriv2017.net",locale:"es_ES"},{domain:"juegosjuegos.com",locale:"es_ES"},{domain:"juegosjuegos.ws",locale:"es_ES"},{domain:"cooljuegos.com",locale:"es_ES"},{domain:"juegosdefriv20.com",locale:"es_ES"},{domain:"gryfriv5.com",locale:"es_ES"},{domain:"fandejuegos.com",locale:"es_ES"},{domain:"juegosdiarios.com",locale:"es_ES"},{domain:"yayoye-juegos.com",locale:"es_ES"},{domain:"juegosjuegos.ws",locale:"es_ES"},{domain:"jogalo.com",locale:"pt_BR"},{domain:"joguix.com",locale:"pt_BR"},{domain:"minigiochi.com",locale:"it_IT"},{domain:"fangiochi.com",locale:"it_IT"},{domain:"giochi.com",locale:"it_IT"},{domain:"macchianera.net",locale:"it_IT"},{domain:"bnatjeux2.com",locale:"fr_FR"},{domain:"fandesjeux.com",locale:"fr_FR"},{domain:"jeux-gratuits.com",locale:"fr_FR"},{domain:"jeu.cc",locale:"fr_FR"},{domain:"jeux23d.com",locale:"fr_FR"},{domain:"zebest-3000.com",locale:"fr_FR"},{domain:"vseigru.net",locale:"ru_RU"},{domain:"igroutka.net",locale:"ru_RU"},{domain:"onlajnigry.net",locale:"ru_RU"},{domain:"jogalo.com",locale:"pt_BR"},{domain:"hierspielen.com",locale:"de_DE"},{domain:"spielen.com",locale:"de_DE"},{domain:"spiel1.com",locale:"de_DE"},{domain:"jetztspielen.ws",locale:"de_DE"},{domain:"1001pelit.com",locale:"fi_FI"},{domain:"aapeli.net",locale:"fi_FI"},{domain:"oyunskor.com",locale:"tr_TR"},{domain:"kraloyun.com",locale:"tr_TR"}],a=[{tld:".nl",locale:"nl_NL"},{tld:".es",locale:"es_ES"},{tld:".ar",locale:"es_ES"},{tld:".mx",locale:"es_ES"},{tld:".pe",locale:"es_ES"},{tld:".cl",locale:"es_ES"},{tld:".py",locale:"es_ES"},{tld:".uy",locale:"es_ES"},{tld:".co",locale:"es_ES"},{tld:".ve",locale:"es_ES"},{tld:".it",locale:"it_IT"},{tld:".se",locale:"sv_SE"},{tld:".id",locale:"id_ID"},{tld:".ua",locale:"uk_UA"},{tld:".fi",locale:"fi_FI"},{tld:".no",locale:"nb_NO"},{tld:".fr",locale:"fr_FR"},{tld:".br",locale:"pt_BR"},{tld:".pt",locale:"pt_BR"},{tld:".ru",locale:"ru_RU"},{tld:".pl",locale:"pl_PL"},{tld:".ro",locale:"ro_RO"},{tld:".at",locale:"de_DE"},{tld:".de",locale:"de_DE"},{tld:".gr",locale:"el_GR"},{tld:".sk",locale:"cs_CZ"},{tld:".cz",locale:"cs_CZ"},{tld:".dk",locale:"da_DK"},{tld:".hu",locale:"hu_HU"},{tld:".tr",locale:"tr_TR"},{tld:".ae",locale:"ar_SA"},{tld:".sa",locale:"ar_SA"},{tld:".dz",locale:"ar_SA"},{tld:".eg",locale:"ar_SA"},{tld:".ma",locale:"ar_SA"}];var i=n(46604);const o="en_US";function s(e){return e.slice(0,2)}function l(){const e=i.Z.getReferrer();return e?function(e){const t=e.hostname.split("."),n=r.find((e=>{let{domain:n}=e;const r=n.split(".");return t.slice(-r.length).join(".")===n}));if(n)return n.locale;const i=a.find((t=>{let{tld:n}=t;return e.hostname.endsWith(n)}));return i?i.locale:null}(e):null}},22870:(e,t,n)=>{"use strict";n.d(t,{Yd:()=>r,fq:()=>i,kg:()=>a});class r{constructor(e){this.isEnabled=e,this.prefix=""}info(e){if(!this.isEnabled)return this;for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r1?t-1:0),r=1;r1?t-1:0),r=1;r1?t-1:0),r=1;r1?t-1:0),r=1;r1?t-1:0),r=1;r{"use strict";n.d(t,{UQ:()=>h,ZP:()=>m,xc:()=>f});var r=n(46604),a=n(74082),i=n(90831),o=n(50009),s=n(96607);const l="pwa-game",c="pwa-cancel-count",u="pwa-blocked-date",d=48e4,p=e=>{const t=a.m.Instance.getItem(l)||"[]",n=JSON.parse(t);return{isMarkedOkay:!!n.find((t=>t.slug===e)),gamesMarked:n}},h=()=>{const e=a.m.Instance,t=(0,o.Z)(),{isMarkedOkay:n,gamesMarked:r}=p(t);n||(r.push({slug:t}),e.setItem(l,JSON.stringify(r)))},f=()=>{const e=a.m.Instance,t=(()=>{const e=a.m.Instance.getItem(c)||"0",t=JSON.parse(e);return parseInt(t)||0})()+1;t>=2?(e.removeItem(c),e.setItem(u,JSON.stringify(Date.now()))):e.setItem(c,JSON.stringify(t))};const m=new class{constructor(){this.gameStartTime=void 0,this.pwaPromptShownAt=void 0,this.shouldRequestCanInstallPWA=void 0,this.canInstallPWA=void 0,this.canInstallListeners=void 0,this.getCanInstallPWA=()=>this.canInstallPWA,this.setCanInstallPWA=e=>{!1===e&&(this.shouldRequestCanInstallPWA=!1),this.canInstallPWA=e,this.canInstallListeners.forEach((t=>t(e)))},this.addListenerToCanInstall=e=>{this.canInstallListeners.push(e)},this.pwaPromptShownAt=[],this.gameStartTime=Date.now(),this.shouldRequestCanInstallPWA=!0,this.canInstallPWA=!1,this.canInstallListeners=[]}requestCanInstallPWA(){(0,i.NI)().disablePWA||!this.shouldRequestCanInstallPWA||this.canInstallPWA||s.Z.getPwaInstallEnabled()}startGameTime(){this.gameStartTime=Date.now()}getGameTime(){return Date.now()-this.gameStartTime}getGameTimeInSec(){return this.getGameTime()/1e3}getLastPWAPromptTime(){const e=this.pwaPromptShownAt.length;return e?this.pwaPromptShownAt[e-1]:null}addPWAPromptStat(){this.pwaPromptShownAt.push(Date.now())}shouldShowPWAIcon(){this.requestCanInstallPWA();const e=(0,i.NI)(),t=(0,o.Z)();if(e.disablePWA)return!1;const n=r.Z.getSafeReferrer();return!(!r.Z.isOnCrazygames(n)&&!r.Z.isOnLocalhost(n))&&(!p(t).isMarkedOkay&&("undefined"===typeof window||!(window.matchMedia("(display-mode: standalone)").matches||window.navigator.standalone||document.referrer.includes("android-app://"))))}shouldShowPWAPrompt(){const e=this.getLastPWAPromptTime(),t=Date.now(),n=(0,i.NI)(),s=(0,o.Z)();if(this.requestCanInstallPWA(),this.shouldRequestCanInstallPWA=!1,n.disablePWA)return!1;if(!this.getCanInstallPWA()&&!n.forceShowPWAPrompt)return!1;if((()=>{const e=a.m.Instance,t=e.getItem(u);if(t){const n=Date.now()-JSON.parse(t);return!(Math.ceil(n/864e5)>=30)||(e.removeItem(u),e.removeItem(c),!1)}return!1})())return!1;if(this.getGameTime(){"use strict";function r(){const e={};return e.promise=new Promise(((t,n)=>{e.resolve=t,e.reject=n})),e}n.d(t,{P:()=>r})},37921:(e,t,n)=>{"use strict";function r(e){return"qa"===e||"standalone-qa"===e}n.d(t,{I:()=>r})},32092:(e,t,n)=>{"use strict";n.d(t,{Q:()=>l});var r=n(22870);const a="https://api.crazygames.com/v3/en_US/game/{game}/rating";let i=null,o=!1,s=[];async function l(e){if(await async function(){if(!o)return;return new Promise((e=>s.push(e)))}(),i)return i;const t=await async function(e){if(i)return i;o=!0;const t=a.replace("{game}",e);try{const e=await fetch(t,{method:"GET"}),n=await e.text();i=JSON.parse(n)}catch(n){r.kg.error("[GameRating] Failed fetch:"+n),i={upVotes:0,downVotes:0}}finally{o=!1;for(const e of s)e();return s=[],i}}(e);return t}},74082:(e,t,n)=>{"use strict";n.d(t,{m:()=>i});var r=n(22870);class a{constructor(){this.data=void 0,this.data={},this.clear()}setItem(e,t){this.data[e]=String(t)}getItem(e){return this.data.hasOwnProperty(e)?this.data[e]:void 0}removeItem(e){delete this.data[e]}clear(){this.data={}}}class i{constructor(){this.storage=void 0,this.storage=this.getAvailableStorage()}static get Instance(){return this._instance?this._instance:this._instance=new this}getItem(e){return this.storage.getItem(e)}setItem(e,t){this.storage.setItem(e,t)}removeItem(e){this.storage.removeItem(e)}clear(){return this.storage.clear()}isFunctioningStorage(e){try{const t=`__SafeLocalStorage__${Date.now()}`,n="test";return e.setItem(t,n),e.getItem(t)!==n?!1:(window.localStorage.removeItem(t),!0)}catch(t){return!1}}getAvailableStorage(){try{return this.hasWorkingLocalStorage()?(r.kg.debug("[SafeLocalStorage] using localStorage"),window.localStorage):this.hasWorkingSessionStorage()?(r.kg.info("[SafeLocalStorage] fallback to sessionStorage"),window.sessionStorage):(r.kg.warn("[SafeLocalStorage] fallback to InMemoryStorage"),new a)}catch(e){return r.kg.warn("[SafeLocalStorage] fallback to InMemoryStorage"),new a}}hasWorkingLocalStorage(){try{if(!window.hasOwnProperty("localStorage"))return!1;const{localStorage:e}=window;return this.isFunctioningStorage(e)}catch(e){return!1}}hasWorkingSessionStorage(){try{if(!window.hasOwnProperty("sessionStorage"))return!1;const{sessionStorage:e}=window;return this.isFunctioningStorage(e)}catch(e){return!1}}}i._instance=void 0},48300:(e,t,n)=>{"use strict";function r(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return new Promise(((n,r)=>{const a=document.createElement("script");a.onload=()=>n(),a.onerror=e=>r(e),a.src=e,a.async=!0,Object.keys(t).forEach((e=>{const n=t[e];a.setAttribute(e,n)})),document.body.appendChild(a)}))}function a(e){o(e,"script",!1)}function i(e,t){o(e,"fetch",t)}function o(e,t,n){const r=document.createElement("link");r.href=e,r.rel="preload",r.as=t,n&&(r.crossOrigin="true"),document.head.appendChild(r)}n.d(t,{Wh:()=>i,kK:()=>a,ve:()=>r})},37178:(e,t,n)=>{"use strict";n.d(t,{Z:()=>s});var r=n(90831),a=n(22870);let i;function o(){if(void 0===i){const e="sdk_debug",t=window.location.search.indexOf(`${e}=true`)>=0,n=!!(0,r.NI)().sdkDebug;i=t||n}return i}const s=function(e){if(o()){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r{"use strict";n.d(t,{Z:()=>d});const r=atob("aHR0cHM6Ly9maWxlcy5jcmF6eWdhbWVzLmNvbS9kb2N1bWVudHMvZ2FtZWZyYW1lLWNvbmZpZy");async function a(){const e=await fetch(r,{method:"GET",cache:"no-store"}),t=await e.text();return JSON.parse(function(e){let t="",n=(e="undefined"===typeof window?Buffer.from(e,"base64").toString():atob(e)).match(/.{1,3}/g)||[];for(var r=0;r{this.config=e}))),this.initPromise}static isSameDomain(e,t){return t.endsWith(`.${e}`)||t===e}static isOnDomains(e,t){const{hostname:n}=e;return!!t.find((e=>this.isSameDomain(e,n)))}static getReferrer(){return document.referrer?new URL(document.referrer):null}static getSafeReferrer(){return new URL(document.referrer||window.location.toString())}static getHostName(e){const{hostname:t}=e;return t}static getReferrerHostName(){return this.getHostName(this.getSafeReferrer())}static isIframed(){try{return window.self!==window.top}catch(e){return!0}}static crazygamesSearchUtmUrl(e,t,n){return this.utmUrl(atob("aHR0cHM6Ly93d3cuY3JhenlnYW1lcy5jb20vc2VhcmNoP3E9")+encodeURIComponent(e),t,n)}static crazygamesLocalizedGameUrl(e,t){return`${this.localizedGamePage(e)}/${t}`}static localhostUrl(){return atob("bG9jYWxob3N0")}static crazygamesGameUtmUrl(e,t,n){const r=atob("aHR0cHM6Ly93d3cuY3JhenlnYW1lcy5jb20vZ2FtZS8=");return this.utmUrl(r+e,t,n)}static utmUrl(e,t,n){const r=new URL(e),a=this.getSafeReferrer();return r.searchParams.append("utm_source",a.toString()),r.searchParams.append("utm_medium","game_frame"),this.isEmbeddedExternally()||r.searchParams.append("utm_campaign",t),r.searchParams.append("utm_content",n),r.toString()}static localizedDomain(e){const t="https://";switch(e){case"es_ES":return t+atob("d3d3LjEwMDFqdWVnb3MuY29t");case"id_ID":return t+atob("d3d3LmNyYXp5Z2FtZXMuY28uaWQ=");case"it_IT":return t+atob("aXQuY3JhenlnYW1lcy5jb20=");case"nl_NL":return t+atob("d3d3LmNyYXp5Z2FtZXMubmw=");case"fr_FR":return t+atob("d3d3LmNyYXp5Z2FtZXMuZnI=");case"ru_RU":return t+atob("d3d3LmNyYXp5Z2FtZXMucnU=");case"pt_BR":return t+atob("d3d3LmNyYXp5Z2FtZXMuY29tLmJy");case"uk_UA":return t+atob("d3d3LmNyYXp5Z2FtZXMuY29tLnVh");case"nb_NO":return t+atob("d3d3LmNyYXp5Z2FtZXMubm8=");case"ro_RO":return t+atob("d3d3LmNyYXp5Z2FtZXMucm8=");case"fi_FI":return t+atob("d3d3LmNyYXp5Z2FtZXMuZmk=");case"sv_SE":return t+atob("d3d3LmNyYXp5Z2FtZXMuc2U=");case"de_DE":return t+atob("ZGUuY3JhenlnYW1lcy5jb20=");case"pl_PL":return t+atob("d3d3LmNyYXp5Z2FtZXMucGw=");case"el_GR":return t+atob("Z3IuY3JhenlnYW1lcy5jb20=");case"da_DK":return t+atob("d3d3LmNyYXp5Z2FtZXMuZGs=");case"cs_CZ":return t+atob("d3d3LmNyYXp5Z2FtZXMuY3o=");case"hu_HU":return t+atob("d3d3LmNyYXp5Z2FtZXMuaHU=");case"tr_TR":return t+atob("dHIuY3JhenlnYW1lcy5jb20=");case"ar_SA":return t+atob("YXIuY3JhenlnYW1lcy5jb20=");case"vi_VN":return t+atob("dm4uY3JhenlnYW1lcy5jb20=");case"th_TH":return t+atob("dGguY3JhenlnYW1lcy5jb20=");default:return t+atob("d3d3LmNyYXp5Z2FtZXMuY29t")}}static crazygamesLocalizedHomeUtmUrl(e,t,n){const r=this.localizedDomain(e);return this.utmUrl(r,t,n)}static isSandboxed(){return this.isOnBlacklistedDomain(this.getSafeReferrer())}static isEmbeddedExternally(){const{forceEmbeddedExternally:e}=(0,i.NI)();if("undefined"!==typeof e)return e;if((0,s.vU)())return!1;const t=this.getReferrer();return!t||!this.isOnCrazygames(t)}static isOnCrazygames(e){return this.isOnDomains(e,this.czyDomains)||this.isOnLocalhost(e)}static isOnLocalhost(e){return this.isOnDomains(e,[this.localhostUrl()])}static isOnBlacklistedDomain(e){const{blacklistedDomains:t}=this.getConfig();return this.isOnDomains(e,t)}static isOnAdsTxtMissingDomains(e){const{adsTxtMissingDomains:t}=this.getConfig();return this.isOnDomains(e,t)}static buildVideoSrc(e,t){if(!e||0===e.length)return o.kg.error("[URL Helper - BuildVideoSrc] A sizes array parameter is required"),"";if(e&&e.length>0){if(t){const n=e.filter((e=>e.width>=t)).sort(((e,t)=>e.width-t.width));if(n.length>0)return n[0].location}return e.slice().sort(((e,t)=>t.width-e.width))[0].location}return""}static getQueryStringValue(e){return new URL(window.location.toString()).searchParams.get(e)}static localizedGamePage(e){const t=this.localizedDomain(e);switch(e){case"es_ES":return t+"/juego";case"en_US":case"id_ID":case"ar_SA":return t+"/game";case"it_IT":return t+"/gioco";case"nl_NL":case"sv_SE":return t+"/spel";case"fr_FR":return t+"/jeu";case"ru_RU":return t+"/igra";case"pt_BR":return t+"/jogos";case"de_DE":return t+"/spiele";case"fi_FI":return t+"/peli";case"nb_NO":return t+"/spill";case"pl_PL":case"uk_UA":return t+"/gra";case"ro_RO":return t+"/joc";case"el_GR":return t+"/paixnidi";case"da_DK":return t+"/spil";case"cs_CZ":return t+"/hra";case"hu_HU":return t+"/jatek";case"tr_TR":return t+"/oyun";case"vi_VN":return t+"/tr\xf2-ch\u01a1i";case"th_TH":return t+"/\u0e40\u0e01\u0e21";default:return o.kg.error("[UrlHelper] localizedGamePage Unknown locale",e),t+"/game"}}static ZiggyMainWebsiteUrl(){const e=(0,i.NI)(),t=c.O.ZiggyAnimation,n=(0,l.Z)();return e.gameSlug?u.crazygamesGameUtmUrl(e.gameSlug,n,t):u.crazygamesSearchUtmUrl(e.gameName,n,t)}}u.config=null,u.czyDomains=["Y3JhenlnYW1lcy5jb20=","MTAwMWp1ZWdvcy5jb20=","Y3JhenlnYW1lcy5ubA==","Y3JhenlnYW1lcy5jby5pZA==","Y3JhenlnYW1lcy5mcg==","Y3JhenlnYW1lcy5ydQ==","Y3JhenlnYW1lcy5jb20uYnI=","ZGV2LWNyYXp5Z2FtZXMuYmU=","Y3JhenlnYW1lcy5jb20udWE=","Y3JhenlnYW1lcy5zZQ==","Y3JhenlnYW1lcy5maQ==","Y3JhenlnYW1lcy5ubw==","Y3JhenlnYW1lcy5ybw==","Y3JhenlnYW1lcy5jeg==","Y3JhenlnYW1lcy5odQ==","Y3JhenlnYW1lcy5kaw==","Y3JhenlnYW1lcy5wbA=="].map((e=>atob(e))),u.initPromise=null;const d=u},69121:(e,t,n)=>{"use strict";n.d(t,{Ax:()=>s,CS:()=>h,So:()=>p,Tb:()=>d,bG:()=>f});var r=n(66501),a=n(90831),i=n(87308);const o=["AT","BE","BG","CY","CZ","DE","DK","EE","ES","FI","FR","GB","GR","HR","HU","IE","IT","LT","LU","LV","MT","NL","PL","PT","RO","SE","SI","SK","CH","NO"];function s(e){return!e||o.some((t=>e===t))}let l={countryCode:null,device:{os:{name:"",version:""},browser:{name:"",version:"",major:""},device:{},engine:{name:"",version:""}}};function c(){const e=Math.max(window.innerWidth,window.innerHeight),t=Math.min(window.innerWidth,window.innerHeight);return e<=568||t<=320}let u=null;function d(){if(!l.device)return{isIos:!1,isAndroid:!1,isMobile:!1,isTablet:!1,isStandaloneMode:(0,i.U0)(),isSmallDevice:c(),isIE:!1,isChrome:!1,isSafari:!1,isFirefox:!1,isOpera:!1,type:"desktop",rawBrowser:{name:"",major:"",version:""},rawOS:{name:"",version:""}};if(!u){const{os:e,browser:t,device:n}=l.device,r="tablet"===n.type,o="mobile"===n.type||(0,a.NI)().forceMobile;let s="desktop";switch(n.type){case"tablet":s="tablet";break;case"mobile":s="mobile"}u={isIos:"iOS"===e.name,isAndroid:"Android"===e.name,isMobile:!(r||!o),isTablet:!!r,isStandaloneMode:(0,i.U0)(),isSmallDevice:c(),isIE:(0,i.w1)(),isChrome:(0,i.i7)(),isSafari:(0,i.G6)(),isFirefox:(0,i.vU)(),isOpera:(0,i.f0)(),rawOS:e,rawBrowser:t,type:s}}return u}function p(){const e=d(),{countryCode:t}=f(),n={countryCode:t,device:{type:e.type}};return e.rawOS&&(n.os={name:e.rawOS.name,version:e.rawOS.version}),e.rawBrowser&&(n.browser={name:e.rawBrowser.name,version:e.rawBrowser.version}),n}async function h(e){try{const t=new URL(function(){switch(r.q){case"local":case"dev":return"https://workers.dev-crazygames.be/device";default:return"https://workers.crazygames.com/device"}}());e&&t.searchParams.set("bypassCache",`${Date.now()}`);const n=await fetch(t.toString(),{method:"GET"}),a=await n.json();l=a}catch(t){l={...l,countryCode:"US"}}return l}function f(){const{forceCountry:e}=(0,a.NI)();return e?{...l,countryCode:e}:l}},32606:(e,t,n)=>{"use strict";n.d(t,{D:()=>r,g:()=>a});const r={brand:{0:"#fff",20:"#E1D9FF",40:"#C3B3FF",50:"#B4A1FF",60:"#A48EFF",70:"#957BFF",80:"#8668FF",100:"#6842FF",120:"#5335CC",140:"#3E2899",160:"#2A1A66",180:"#150D33",200:"#07050F"},black:{10:"#474967",20:"#434561",30:"#3F415C",40:"#373952",50:"#2F3148",60:"#28293D",70:"#212233",80:"#1A1B28",90:"#13141E",100:"#0C0D14"},white:{10:"#666A7F",20:"#767A8E",30:"#878A9E",40:"#989BAE",50:"#AAADBE",60:"#BDBFCE",80:"#E5E6EE",90:"#EFF0F7",100:"#F9FAFF"},success:{100:"#4AF0A7"},alert:{100:"#E70D5C",60:"#F16E9D",80:"#EC3D7D"},warning:{100:"#FFAC4A"}},a={brand:{100:"#6842FFb3",80:"#8668ffb3"},black:{70:"#212233b3"},white:{30:"#878a9eb3",50:"#aaadbeb3"},success:{100:"#4af0a7b3"},alert:{100:"#e70d5cb3"}}},46325:(e,t,n)=>{"use strict";n.d(t,{ZP:()=>b,Q0:()=>h,Pr:()=>f,VP:()=>m,AT:()=>g,fY:()=>v});var r=n(87462),a=n(77219);function i(e){return String(parseFloat(e)).length===String(e).length}function o(e){return parseFloat(e)}function s(e){return(t,n)=>{const r=String(t).match(/[\d.\-+]*\s*(.*)/)[1]||"";if(r===n)return t;let a=o(t);"px"!==r&&("em"===r||"rem"===r)&&(a=o(t)*o(e));let i=a;if("px"!==n)if("em"===n)i=a/o(e);else{if("rem"!==n)return t;i=a/o(e)}return parseFloat(i.toFixed(5))+n}}function l(e){let{size:t,grid:n}=e;const r=t-t%n,a=r+n;return t-r{let r=n+l*e;null!==o&&(r=o(r)),s[`@media (min-width:${e}px)`]={[t]:`${Math.round(1e4*r)/1e4}${a}`}})),s}var d=n(3666),p=n(32606);const h="linear-gradient(337deg, rgb(92 197 255) 24%, rgb(202 234 251), rgb(187 207 75))",f="linear-gradient(337deg, rgb(92 197 255, 0.92) 24%, rgb(202 234 251, 0.92), rgb(255 241 152, 0.92))",m=p.D.black[90],g="#212233c2",v="#FFBC11",b=e=>function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};const{breakpoints:n=["sm","md","lg"],disableAlign:o=!1,factor:d=2,variants:p=["h1","h2","h3","h4","h5","h6","subtitle1","subtitle2","body1","body2","caption","button","overline"]}=t,h=(0,r.Z)({},e);h.typography=(0,r.Z)({},h.typography);const f=h.typography,m=s(f.htmlFontSize),g=n.map((e=>h.breakpoints.values[e]));return p.forEach((e=>{const t=f[e],n=parseFloat(m(t.fontSize,"rem"));if(n<=1)return;const s=n,p=1+(s-1)/d;let{lineHeight:h}=t;if(!i(h)&&!o)throw new Error((0,a.Z)(6));i(h)||(h=parseFloat(m(h,"rem"))/parseFloat(n));let v=null;o||(v=e=>l({size:e,grid:c({pixels:4,lineHeight:h,htmlFontSize:f.htmlFontSize})})),f[e]=(0,r.Z)({},t,u({cssProperty:"fontSize",min:p,max:s,unit:"rem",breakpoints:g,transform:v}))})),h}((0,d.Z)({palette:{mode:"dark",primary:{light:e?"#FFEBA9":"#6937B9",main:"#3C1E6E",dark:e?"#FFBC11":"#2A1253",contrastText:"#decaff"},background:{default:p.D.black[90],paper:"#3C1E6E"},secondary:{main:e?"#2FB4FF":"#35FDFF",contrastText:"#fff"},text:{primary:"#decaff"}},spacing:8,typography:{fontFamily:["Nunito","Arial",'"Helvetica Neue"',"Helvetica","sans-serif"].join(","),fontSize:16,h1:{fontSize:"3rem",color:"#fff"},h3:{fontSize:"2rem",color:"#fff"},h4:{fontSize:"1.5rem",fontWeight:700,color:"#fff"}},components:{MuiCssBaseline:{styleOverrides:{body:{color:"#fff",fontSize:"1rem !important"}}},MuiDialog:{styleOverrides:{paper:{backgroundColor:"white",color:"#2A1253"}}}}}))},71917:(e,t,n)=>{"use strict";n.d(t,{Eu:()=>c,Iq:()=>i,cz:()=>o,ot:()=>s,ut:()=>a});var r=n(30686);const a={footerHeight:45},i={width:392,height:220},o={yellowRating:"linear-gradient(to top, #ffca09, #e89000)"},s={maxMobileLandscapeHeight:546,smallMobileLandscapeHeight:445,minFullsizeHeight:700},l=r.F4`
0% {
background-position: 0% 50%;
}
50% {
background-position: 100% 50%;
}
100% {
background-position: 0% 50%;
}
`,c={loadingBarAnimation:{background:"repeating-linear-gradient(\n 45deg,\n transparent,\n transparent 10px,\n #cccccc12 10px,\n #cccccc12 20px\n ), #33294e",backgroundSize:"400% 400%",animationName:`${l}`,animationDuration:"25s",animationTimingFunction:"linear",animationIterationCount:"infinite"},imagePlaceholderAnimation:{animationDuration:"2s",animationFillMode:"forwards",animationIterationCount:"infinite",animationName:`${l}`,animationTimingFunction:"linear",background:"linear-gradient(to right, #554e86c7 26%, #73659eba 70%, #796c9485 90%)",backgroundSize:"400% 400%"}}},98295:(e,t,n)=>{"use strict";n.d(t,{Z:()=>ae});var r=n(53324),a=Math.abs,i=String.fromCharCode,o=Object.assign;function s(e){return e.trim()}function l(e,t,n){return e.replace(t,n)}function c(e,t){return e.indexOf(t)}function u(e,t){return 0|e.charCodeAt(t)}function d(e,t,n){return e.slice(t,n)}function p(e){return e.length}function h(e){return e.length}function f(e,t){return t.push(e),e}var m=1,g=1,v=0,b=0,y=0,w="";function x(e,t,n,r,a,i,o){return{value:e,root:t,parent:n,type:r,props:a,children:i,line:m,column:g,length:o,return:""}}function k(e,t){return o(x("",null,null,"",null,null,0),e,{length:-e.length},t)}function S(){return y=b>0?u(w,--b):0,g--,10===y&&(g=1,m--),y}function C(){return y=b2||A(y)>3?"":" "}function _(e,t){for(;--t&&C()&&!(y<48||y>102||y>57&&y<65||y>70&&y<97););return I(e,P()+(t<6&&32==E()&&32==C()))}function j(e){for(;C();)switch(y){case e:return b;case 34:case 39:34!==e&&39!==e&&j(y);break;case 40:41===e&&j(e);break;case 92:C()}return b}function M(e,t){for(;C()&&e+y!==57&&(e+y!==84||47!==E()););return"/*"+I(t,b-1)+"*"+i(47===e?e:C())}function z(e){for(;!A(E());)C();return I(e,b)}var F="-ms-",D="-moz-",N="-webkit-",O="comm",B="rule",U="decl",$="@keyframes";function V(e,t){for(var n="",r=h(e),a=0;a6)switch(u(e,t+1)){case 109:if(45!==u(e,t+4))break;case 102:return l(e,/(.+:)(.+)-([^]+)/,"$1-webkit-$2-$3$1"+D+(108==u(e,t+3)?"$3":"$2-$3"))+e;case 115:return~c(e,"stretch")?W(l(e,"stretch","fill-available"),t)+e:e}break;case 4949:if(115!==u(e,t+1))break;case 6444:switch(u(e,p(e)-3-(~c(e,"!important")&&10))){case 107:return l(e,":",":"+N)+e;case 101:return l(e,/(.+:)([^;!]+)(;|!.+)?/,"$1"+N+(45===u(e,14)?"inline-":"")+"box$3$1"+N+"$2$3$1"+F+"$2box$3")+e}break;case 5936:switch(u(e,t+11)){case 114:return N+e+F+l(e,/[svh]\w+-[tblr]{2}/,"tb")+e;case 108:return N+e+F+l(e,/[svh]\w+-[tblr]{2}/,"tb-rl")+e;case 45:return N+e+F+l(e,/[svh]\w+-[tblr]{2}/,"lr")+e}return N+e+F+e+e}return e}function q(e){return Z(H("",null,null,null,[""],e=T(e),0,[0],e))}function H(e,t,n,r,a,o,s,u,d){for(var h=0,m=0,g=s,v=0,b=0,y=0,w=1,x=1,k=1,I=0,A="",T=a,Z=o,j=r,F=A;x;)switch(y=I,I=C()){case 40:if(108!=y&&58==F.charCodeAt(g-1)){-1!=c(F+=l(R(I),"&","&\f"),"&\f")&&(k=-1);break}case 34:case 39:case 91:F+=R(I);break;case 9:case 10:case 13:case 32:F+=L(y);break;case 92:F+=_(P()-1,7);continue;case 47:switch(E()){case 42:case 47:f(Y(M(C(),P()),t,n),d);break;default:F+="/"}break;case 123*w:u[h++]=p(F)*k;case 125*w:case 59:case 0:switch(I){case 0:case 125:x=0;case 59+m:b>0&&p(F)-g&&f(b>32?Q(F+";",r,n,g-1):Q(l(F," ","")+";",r,n,g-2),d);break;case 59:F+=";";default:if(f(j=K(F,t,n,h,m,a,u,A,T=[],Z=[],g),o),123===I)if(0===m)H(F,t,j,j,T,o,g,u,Z);else switch(v){case 100:case 109:case 115:H(e,j,j,r&&f(K(e,j,j,0,0,a,u,A,a,T=[],g),Z),a,Z,g,u,r?T:Z);break;default:H(F,j,j,j,[""],Z,0,u,Z)}}h=m=b=0,w=k=1,A=F="",g=s;break;case 58:g=1+p(F),b=y;default:if(w<1)if(123==I)--w;else if(125==I&&0==w++&&125==S())continue;switch(F+=i(I),I*w){case 38:k=m>0?1:(F+="\f",-1);break;case 44:u[h++]=(p(F)-1)*k,k=1;break;case 64:45===E()&&(F+=R(C())),v=E(),m=g=p(A=F+=z(P())),I++;break;case 45:45===y&&2==p(F)&&(w=0)}}return o}function K(e,t,n,r,i,o,c,u,p,f,m){for(var g=i-1,v=0===i?o:[""],b=h(v),y=0,w=0,k=0;y0?v[S]+" "+C:l(C,/&\f/g,v[S])))&&(p[k++]=E);return x(e,t,n,0===i?B:u,p,f,m)}function Y(e,t,n){return x(e,t,n,O,i(y),d(e,2,-2),0)}function Q(e,t,n,r){return x(e,t,n,U,d(e,0,r),d(e,r+1,-1),r)}var X=function(e,t,n){for(var r=0,a=0;r=a,a=E(),38===r&&12===a&&(t[n]=1),!A(a);)C();return I(e,b)},J=function(e,t){return Z(function(e,t){var n=-1,r=44;do{switch(A(r)){case 0:38===r&&12===E()&&(t[n]=1),e[n]+=X(b-1,t,n);break;case 2:e[n]+=R(r);break;case 4:if(44===r){e[++n]=58===E()?"&\f":"",t[n]=e[n].length;break}default:e[n]+=i(r)}}while(r=C());return e}(T(e),t))},ee=new WeakMap,te=function(e){if("rule"===e.type&&e.parent&&!(e.length<1)){for(var t=e.value,n=e.parent,r=e.column===n.column&&e.line===n.line;"rule"!==n.type;)if(!(n=n.parent))return;if((1!==e.props.length||58===t.charCodeAt(0)||ee.get(n))&&!r){ee.set(e,!0);for(var a=[],i=J(t,a),o=n.props,s=0,l=0;s-1&&!e.return)switch(e.type){case U:e.return=W(e.value,e.length);break;case $:return V([k(e,{value:l(e.value,"@","@"+N)})],r);case B:if(e.length)return function(e,t){return e.map(t).join("")}(e.props,(function(t){switch(function(e,t){return(e=t.exec(e))?e[0]:e}(t,/(::plac\w+|:read-\w+)/)){case":read-only":case":read-write":return V([k(e,{props:[l(t,/:(read-\w+)/,":-moz-$1")]})],r);case"::placeholder":return V([k(e,{props:[l(t,/:(plac\w+)/,":-webkit-input-$1")]}),k(e,{props:[l(t,/:(plac\w+)/,":-moz-$1")]}),k(e,{props:[l(t,/:(plac\w+)/,F+"input-$1")]})],r)}return""}))}}];const ae=function(e){var t=e.key;if("css"===t){var n=document.querySelectorAll("style[data-emotion]:not([data-s])");Array.prototype.forEach.call(n,(function(e){-1!==e.getAttribute("data-emotion").indexOf(" ")&&(document.head.appendChild(e),e.setAttribute("data-s",""))}))}var a=e.stylisPlugins||re;var i,o,s={},l=[];i=e.container||document.head,Array.prototype.forEach.call(document.querySelectorAll('style[data-emotion^="'+t+' "]'),(function(e){for(var t=e.getAttribute("data-emotion").split(" "),n=1;n{"use strict";function r(e){var t=Object.create(null);return function(n){return void 0===t[n]&&(t[n]=e(n)),t[n]}}n.d(t,{Z:()=>r})},51639:(e,t,n)=>{"use strict";n.d(t,{C:()=>o,T:()=>l,w:()=>s});var r=n(47313),a=n(98295),i=(n(21086),(0,r.createContext)("undefined"!==typeof HTMLElement?(0,a.Z)({key:"css"}):null));var o=i.Provider,s=function(e){return(0,r.forwardRef)((function(t,n){var a=(0,r.useContext)(i);return e(t,a,n)}))},l=(0,r.createContext)({})},30686:(e,t,n)=>{"use strict";n.d(t,{F4:()=>u,iv:()=>c,xB:()=>l});var r=n(47313),a=(n(98295),n(51639)),i=(n(67861),n(54911)),o=n(21086),s=n(53324),l=(0,a.w)((function(e,t){var n=e.styles,l=(0,o.O)([n],void 0,(0,r.useContext)(a.T)),c=(0,r.useRef)();return(0,r.useLayoutEffect)((function(){var e=t.key+"-global",n=new s.m({key:e,nonce:t.sheet.nonce,container:t.sheet.container,speedy:t.sheet.isSpeedy}),r=!1,a=document.querySelector('style[data-emotion="'+e+" "+l.name+'"]');return t.sheet.tags.length&&(n.before=t.sheet.tags[0]),null!==a&&(r=!0,a.setAttribute("data-emotion",e),n.hydrate([a])),c.current=[n,r],function(){n.flush()}}),[t]),(0,r.useLayoutEffect)((function(){var e=c.current,n=e[0];if(e[1])e[1]=!1;else{if(void 0!==l.next&&(0,i.My)(t,l.next,!0),n.tags.length){var r=n.tags[n.tags.length-1].nextElementSibling;n.before=r,n.flush()}t.insert("",l,n,!1)}}),[t,l.name]),null}));function c(){for(var e=arguments.length,t=new Array(e),n=0;n{"use strict";n.d(t,{O:()=>f});var r={animationIterationCount:1,aspectRatio:1,borderImageOutset:1,borderImageSlice:1,borderImageWidth:1,boxFlex:1,boxFlexGroup:1,boxOrdinalGroup:1,columnCount:1,columns:1,flex:1,flexGrow:1,flexPositive:1,flexShrink:1,flexNegative:1,flexOrder:1,gridRow:1,gridRowEnd:1,gridRowSpan:1,gridRowStart:1,gridColumn:1,gridColumnEnd:1,gridColumnSpan:1,gridColumnStart:1,msGridRow:1,msGridRowSpan:1,msGridColumn:1,msGridColumnSpan:1,fontWeight:1,lineHeight:1,opacity:1,order:1,orphans:1,tabSize:1,widows:1,zIndex:1,zoom:1,WebkitLineClamp:1,fillOpacity:1,floodOpacity:1,stopOpacity:1,strokeDasharray:1,strokeDashoffset:1,strokeMiterlimit:1,strokeOpacity:1,strokeWidth:1},a=n(91816),i=/[A-Z]|^ms/g,o=/_EMO_([^_]+?)_([^]*?)_EMO_/g,s=function(e){return 45===e.charCodeAt(1)},l=function(e){return null!=e&&"boolean"!==typeof e},c=(0,a.Z)((function(e){return s(e)?e:e.replace(i,"-$&").toLowerCase()})),u=function(e,t){switch(e){case"animation":case"animationName":if("string"===typeof t)return t.replace(o,(function(e,t,n){return p={name:t,styles:n,next:p},t}))}return 1===r[e]||s(e)||"number"!==typeof t||0===t?t:t+"px"};function d(e,t,n){if(null==n)return"";if(void 0!==n.__emotion_styles)return n;switch(typeof n){case"boolean":return"";case"object":if(1===n.anim)return p={name:n.name,styles:n.styles,next:p},n.name;if(void 0!==n.styles){var r=n.next;if(void 0!==r)for(;void 0!==r;)p={name:r.name,styles:r.styles,next:p},r=r.next;return n.styles+";"}return function(e,t,n){var r="";if(Array.isArray(n))for(var a=0;a=4;++r,a-=4)t=1540483477*(65535&(t=255&e.charCodeAt(r)|(255&e.charCodeAt(++r))<<8|(255&e.charCodeAt(++r))<<16|(255&e.charCodeAt(++r))<<24))+(59797*(t>>>16)<<16),n=1540483477*(65535&(t^=t>>>24))+(59797*(t>>>16)<<16)^1540483477*(65535&n)+(59797*(n>>>16)<<16);switch(a){case 3:n^=(255&e.charCodeAt(r+2))<<16;case 2:n^=(255&e.charCodeAt(r+1))<<8;case 1:n=1540483477*(65535&(n^=255&e.charCodeAt(r)))+(59797*(n>>>16)<<16)}return(((n=1540483477*(65535&(n^=n>>>13))+(59797*(n>>>16)<<16))^n>>>15)>>>0).toString(36)}(a)+l;return{name:c,styles:a,next:p}}},53324:(e,t,n)=>{"use strict";n.d(t,{m:()=>r});var r=function(){function e(e){var t=this;this._insertTag=function(e){var n;n=0===t.tags.length?t.insertionPoint?t.insertionPoint.nextSibling:t.prepend?t.container.firstChild:t.before:t.tags[t.tags.length-1].nextSibling,t.container.insertBefore(e,n),t.tags.push(e)},this.isSpeedy=void 0===e.speedy||e.speedy,this.tags=[],this.ctr=0,this.nonce=e.nonce,this.key=e.key,this.container=e.container,this.prepend=e.prepend,this.insertionPoint=e.insertionPoint,this.before=null}var t=e.prototype;return t.hydrate=function(e){e.forEach(this._insertTag)},t.insert=function(e){this.ctr%(this.isSpeedy?65e3:1)===0&&this._insertTag(function(e){var t=document.createElement("style");return t.setAttribute("data-emotion",e.key),void 0!==e.nonce&&t.setAttribute("nonce",e.nonce),t.appendChild(document.createTextNode("")),t.setAttribute("data-s",""),t}(this));var t=this.tags[this.tags.length-1];if(this.isSpeedy){var n=function(e){if(e.sheet)return e.sheet;for(var t=0;t{"use strict";n.d(t,{My:()=>a,fp:()=>r});function r(e,t,n){var r="";return n.split(" ").forEach((function(n){void 0!==e[n]?t.push(e[n]+";"):r+=n+" "})),r}var a=function(e,t,n){!function(e,t,n){var r=e.key+"-"+t.name;!1===n&&void 0===e.registered[r]&&(e.registered[r]=t.styles)}(e,t,n);var r=e.key+"-"+t.name;if(void 0===e.inserted[t.name]){var a=t;do{e.insert(t===a?"."+r:"",a,e.sheet,!0),a=a.next}while(void 0!==a)}}},58921:(e,t,n)=>{"use strict";n.d(t,{Z:()=>g});var r=n(63366),a=n(87462),i=n(47313),o=n(83061),s=n(21921),l=n(42379),c=n(32772),u=n(32410),d=n(32298);function p(e){return(0,d.Z)("MuiBackdrop",e)}(0,n(77430).Z)("MuiBackdrop",["root","invisible"]);var h=n(46417);const f=["children","component","components","componentsProps","className","invisible","open","transitionDuration","TransitionComponent"],m=(0,l.ZP)("div",{name:"MuiBackdrop",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.invisible&&t.invisible]}})((e=>{let{ownerState:t}=e;return(0,a.Z)({position:"fixed",display:"flex",alignItems:"center",justifyContent:"center",right:0,bottom:0,top:0,left:0,backgroundColor:"rgba(0, 0, 0, 0.5)",WebkitTapHighlightColor:"transparent"},t.invisible&&{backgroundColor:"transparent"})})),g=i.forwardRef((function(e,t){var n,i;const l=(0,c.Z)({props:e,name:"MuiBackdrop"}),{children:d,component:g="div",components:v={},componentsProps:b={},className:y,invisible:w=!1,open:x,transitionDuration:k,TransitionComponent:S=u.Z}=l,C=(0,r.Z)(l,f),E=(0,a.Z)({},l,{component:g,invisible:w}),P=(e=>{const{classes:t,invisible:n}=e,r={root:["root",n&&"invisible"]};return(0,s.Z)(r,p,t)})(E);return(0,h.jsx)(S,(0,a.Z)({in:x,timeout:k},C,{children:(0,h.jsx)(m,{"aria-hidden":!0,as:null!=(n=v.Root)?n:g,className:(0,o.Z)(P.root,y),ownerState:(0,a.Z)({},E,null==(i=b.root)?void 0:i.ownerState),classes:P,ref:t,children:d})}))}))},16157:(e,t,n)=>{"use strict";n.d(t,{Z:()=>m});var r=n(87462),a=n(63366),i=n(47313),o=n(83061),s=n(84472),l=n(63649),c=n(39028),u=n(86728),d=n(46417);const p=["className","component"];var h=n(41271);const f=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};const{defaultTheme:t,defaultClassName:n="MuiBox-root",generateClassName:h,styleFunctionSx:f=l.Z}=e,m=(0,s.ZP)("div",{shouldForwardProp:e=>"theme"!==e&&"sx"!==e&&"as"!==e})(f),g=i.forwardRef((function(e,i){const s=(0,u.Z)(t),l=(0,c.Z)(e),{className:f,component:g="div"}=l,v=(0,a.Z)(l,p);return(0,d.jsx)(m,(0,r.Z)({as:g,ref:i,className:(0,o.Z)(f,h?h(n):n),theme:s},v))}));return g}({defaultTheme:(0,n(3666).Z)(),defaultClassName:"MuiBox-root",generateClassName:h.Z.generate}),m=f},73477:(e,t,n)=>{"use strict";n.d(t,{Z:()=>E});var r=n(63366),a=n(87462),i=n(47313),o=n(83061),s=n(29023),l=n(21921),c=n(17551),u=n(42379),d=n(32772),p=n(85624),h=n(28170),f=n(32298);function m(e){return(0,f.Z)("MuiButton",e)}const g=(0,n(77430).Z)("MuiButton",["root","text","textInherit","textPrimary","textSecondary","textSuccess","textError","textInfo","textWarning","outlined","outlinedInherit","outlinedPrimary","outlinedSecondary","outlinedSuccess","outlinedError","outlinedInfo","outlinedWarning","contained","containedInherit","containedPrimary","containedSecondary","containedSuccess","containedError","containedInfo","containedWarning","disableElevation","focusVisible","disabled","colorInherit","textSizeSmall","textSizeMedium","textSizeLarge","outlinedSizeSmall","outlinedSizeMedium","outlinedSizeLarge","containedSizeSmall","containedSizeMedium","containedSizeLarge","sizeMedium","sizeSmall","sizeLarge","fullWidth","startIcon","endIcon","iconSizeSmall","iconSizeMedium","iconSizeLarge"]);const v=i.createContext({});var b=n(46417);const y=["children","color","component","className","disabled","disableElevation","disableFocusRipple","endIcon","focusVisibleClassName","fullWidth","size","startIcon","type","variant"],w=["root"],x=e=>(0,a.Z)({},"small"===e.size&&{"& > *:nth-of-type(1)":{fontSize:18}},"medium"===e.size&&{"& > *:nth-of-type(1)":{fontSize:20}},"large"===e.size&&{"& > *:nth-of-type(1)":{fontSize:22}}),k=(0,u.ZP)(p.Z,{shouldForwardProp:e=>(0,u.FO)(e)||"classes"===e,name:"MuiButton",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[n.variant],t[`${n.variant}${(0,h.Z)(n.color)}`],t[`size${(0,h.Z)(n.size)}`],t[`${n.variant}Size${(0,h.Z)(n.size)}`],"inherit"===n.color&&t.colorInherit,n.disableElevation&&t.disableElevation,n.fullWidth&&t.fullWidth]}})((e=>{let{theme:t,ownerState:n}=e;var r,i;return(0,a.Z)({},t.typography.button,{minWidth:64,padding:"6px 16px",borderRadius:(t.vars||t).shape.borderRadius,transition:t.transitions.create(["background-color","box-shadow","border-color","color"],{duration:t.transitions.duration.short}),"&:hover":(0,a.Z)({textDecoration:"none",backgroundColor:t.vars?`rgba(${t.vars.palette.text.primaryChannel} / ${t.vars.palette.action.hoverOpacity})`:(0,c.Fq)(t.palette.text.primary,t.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}},"text"===n.variant&&"inherit"!==n.color&&{backgroundColor:t.vars?`rgba(${t.vars.palette[n.color].mainChannel} / ${t.vars.palette.action.hoverOpacity})`:(0,c.Fq)(t.palette[n.color].main,t.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}},"outlined"===n.variant&&"inherit"!==n.color&&{border:`1px solid ${(t.vars||t).palette[n.color].main}`,backgroundColor:t.vars?`rgba(${t.vars.palette[n.color].mainChannel} / ${t.vars.palette.action.hoverOpacity})`:(0,c.Fq)(t.palette[n.color].main,t.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}},"contained"===n.variant&&{backgroundColor:(t.vars||t).palette.grey.A100,boxShadow:(t.vars||t).shadows[4],"@media (hover: none)":{boxShadow:(t.vars||t).shadows[2],backgroundColor:(t.vars||t).palette.grey[300]}},"contained"===n.variant&&"inherit"!==n.color&&{backgroundColor:(t.vars||t).palette[n.color].dark,"@media (hover: none)":{backgroundColor:(t.vars||t).palette[n.color].main}}),"&:active":(0,a.Z)({},"contained"===n.variant&&{boxShadow:(t.vars||t).shadows[8]}),[`&.${g.focusVisible}`]:(0,a.Z)({},"contained"===n.variant&&{boxShadow:(t.vars||t).shadows[6]}),[`&.${g.disabled}`]:(0,a.Z)({color:(t.vars||t).palette.action.disabled},"outlined"===n.variant&&{border:`1px solid ${(t.vars||t).palette.action.disabledBackground}`},"outlined"===n.variant&&"secondary"===n.color&&{border:`1px solid ${(t.vars||t).palette.action.disabled}`},"contained"===n.variant&&{color:(t.vars||t).palette.action.disabled,boxShadow:(t.vars||t).shadows[0],backgroundColor:(t.vars||t).palette.action.disabledBackground})},"text"===n.variant&&{padding:"6px 8px"},"text"===n.variant&&"inherit"!==n.color&&{color:(t.vars||t).palette[n.color].main},"outlined"===n.variant&&{padding:"5px 15px",border:"1px solid currentColor"},"outlined"===n.variant&&"inherit"!==n.color&&{color:(t.vars||t).palette[n.color].main,border:t.vars?`1px solid rgba(${t.vars.palette[n.color].mainChannel} / 0.5)`:`1px solid ${(0,c.Fq)(t.palette[n.color].main,.5)}`},"contained"===n.variant&&{color:t.vars?t.vars.palette.text.primary:null==(r=(i=t.palette).getContrastText)?void 0:r.call(i,t.palette.grey[300]),backgroundColor:(t.vars||t).palette.grey[300],boxShadow:(t.vars||t).shadows[2]},"contained"===n.variant&&"inherit"!==n.color&&{color:(t.vars||t).palette[n.color].contrastText,backgroundColor:(t.vars||t).palette[n.color].main},"inherit"===n.color&&{color:"inherit",borderColor:"currentColor"},"small"===n.size&&"text"===n.variant&&{padding:"4px 5px",fontSize:t.typography.pxToRem(13)},"large"===n.size&&"text"===n.variant&&{padding:"8px 11px",fontSize:t.typography.pxToRem(15)},"small"===n.size&&"outlined"===n.variant&&{padding:"3px 9px",fontSize:t.typography.pxToRem(13)},"large"===n.size&&"outlined"===n.variant&&{padding:"7px 21px",fontSize:t.typography.pxToRem(15)},"small"===n.size&&"contained"===n.variant&&{padding:"4px 10px",fontSize:t.typography.pxToRem(13)},"large"===n.size&&"contained"===n.variant&&{padding:"8px 22px",fontSize:t.typography.pxToRem(15)},n.fullWidth&&{width:"100%"})}),(e=>{let{ownerState:t}=e;return t.disableElevation&&{boxShadow:"none","&:hover":{boxShadow:"none"},[`&.${g.focusVisible}`]:{boxShadow:"none"},"&:active":{boxShadow:"none"},[`&.${g.disabled}`]:{boxShadow:"none"}}})),S=(0,u.ZP)("span",{name:"MuiButton",slot:"StartIcon",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.startIcon,t[`iconSize${(0,h.Z)(n.size)}`]]}})((e=>{let{ownerState:t}=e;return(0,a.Z)({display:"inherit",marginRight:8,marginLeft:-4},"small"===t.size&&{marginLeft:-2},x(t))})),C=(0,u.ZP)("span",{name:"MuiButton",slot:"EndIcon",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.endIcon,t[`iconSize${(0,h.Z)(n.size)}`]]}})((e=>{let{ownerState:t}=e;return(0,a.Z)({display:"inherit",marginRight:-4,marginLeft:8},"small"===t.size&&{marginRight:-2},x(t))})),E=i.forwardRef((function(e,t){const n=i.useContext(v),c=(0,s.Z)(n,e),u=(0,d.Z)({props:c,name:"MuiButton"}),{children:p,color:f="primary",component:g="button",className:x,disabled:E=!1,disableElevation:P=!1,disableFocusRipple:I=!1,endIcon:A,focusVisibleClassName:T,fullWidth:Z=!1,size:R="medium",startIcon:L,type:_,variant:j="text"}=u,M=(0,r.Z)(u,y),z=(0,a.Z)({},u,{color:f,component:g,disabled:E,disableElevation:P,disableFocusRipple:I,fullWidth:Z,size:R,type:_,variant:j}),F=(e=>{const{color:t,disableElevation:n,fullWidth:r,size:i,variant:o,classes:s}=e,c={root:["root",o,`${o}${(0,h.Z)(t)}`,`size${(0,h.Z)(i)}`,`${o}Size${(0,h.Z)(i)}`,"inherit"===t&&"colorInherit",n&&"disableElevation",r&&"fullWidth"],label:["label"],startIcon:["startIcon",`iconSize${(0,h.Z)(i)}`],endIcon:["endIcon",`iconSize${(0,h.Z)(i)}`]},u=(0,l.Z)(c,m,s);return(0,a.Z)({},s,u)})(z),{root:D}=F,N=(0,r.Z)(F,w),O=L&&(0,b.jsx)(S,{className:N.startIcon,ownerState:z,children:L}),B=A&&(0,b.jsx)(C,{className:N.endIcon,ownerState:z,children:A});return(0,b.jsxs)(k,(0,a.Z)({ownerState:z,className:(0,o.Z)(n.className,D,x),component:g,disabled:E,focusRipple:!I,focusVisibleClassName:(0,o.Z)(N.focusVisible,T),ref:t,type:_},M,{classes:N,children:[O,p,B]}))}))},85624:(e,t,n)=>{"use strict";n.d(t,{Z:()=>$});var r=n(87462),a=n(63366),i=n(47313),o=n(83061),s=n(21921),l=n(42379),c=n(32772),u=n(2995),d=n(56127),p=n(45730);var h=n(51721),f=n(20010);function m(e,t){var n=Object.create(null);return e&&i.Children.map(e,(function(e){return e})).forEach((function(e){n[e.key]=function(e){return t&&(0,i.isValidElement)(e)?t(e):e}(e)})),n}function g(e,t,n){return null!=n[t]?n[t]:e.props[t]}function v(e,t,n){var r=m(e.children),a=function(e,t){function n(n){return n in t?t[n]:e[n]}e=e||{},t=t||{};var r,a=Object.create(null),i=[];for(var o in e)o in t?i.length&&(a[o]=i,i=[]):i.push(o);var s={};for(var l in t){if(a[l])for(r=0;r{if(!c&&null!=u){const e=setTimeout(u,d);return()=>{clearTimeout(e)}}}),[u,c,d]),(0,k.jsx)("span",{className:f,style:m,children:(0,k.jsx)("span",{className:g})})};var C=n(77430);const E=(0,C.Z)("MuiTouchRipple",["root","ripple","rippleVisible","ripplePulsate","child","childLeaving","childPulsate"]),P=["center","classes","className"];let I,A,T,Z,R=e=>e;const L=(0,x.F4)(I||(I=R`
0% {
transform: scale(0);
opacity: 0.1;
}
100% {
transform: scale(1);
opacity: 0.3;
}
`)),_=(0,x.F4)(A||(A=R`
0% {
opacity: 1;
}
100% {
opacity: 0;
}
`)),j=(0,x.F4)(T||(T=R`
0% {
transform: scale(1);
}
50% {
transform: scale(0.92);
}
100% {
transform: scale(1);
}
`)),M=(0,l.ZP)("span",{name:"MuiTouchRipple",slot:"Root"})({overflow:"hidden",pointerEvents:"none",position:"absolute",zIndex:0,top:0,right:0,bottom:0,left:0,borderRadius:"inherit"}),z=(0,l.ZP)(S,{name:"MuiTouchRipple",slot:"Ripple"})(Z||(Z=R`
opacity: 0;
position: absolute;
&.${0} {
opacity: 0.3;
transform: scale(1);
animation-name: ${0};
animation-duration: ${0}ms;
animation-timing-function: ${0};
}
&.${0} {
animation-duration: ${0}ms;
}
& .${0} {
opacity: 1;
display: block;
width: 100%;
height: 100%;
border-radius: 50%;
background-color: currentColor;
}
& .${0} {
opacity: 0;
animation-name: ${0};
animation-duration: ${0}ms;
animation-timing-function: ${0};
}
& .${0} {
position: absolute;
/* @noflip */
left: 0px;
top: 0;
animation-name: ${0};
animation-duration: 2500ms;
animation-timing-function: ${0};
animation-iteration-count: infinite;
animation-delay: 200ms;
}
`),E.rippleVisible,L,550,(e=>{let{theme:t}=e;return t.transitions.easing.easeInOut}),E.ripplePulsate,(e=>{let{theme:t}=e;return t.transitions.duration.shorter}),E.child,E.childLeaving,_,550,(e=>{let{theme:t}=e;return t.transitions.easing.easeInOut}),E.childPulsate,j,(e=>{let{theme:t}=e;return t.transitions.easing.easeInOut})),F=i.forwardRef((function(e,t){const n=(0,c.Z)({props:e,name:"MuiTouchRipple"}),{center:s=!1,classes:l={},className:u}=n,d=(0,a.Z)(n,P),[p,h]=i.useState([]),f=i.useRef(0),m=i.useRef(null);i.useEffect((()=>{m.current&&(m.current(),m.current=null)}),[p]);const g=i.useRef(!1),v=i.useRef(null),b=i.useRef(null),y=i.useRef(null);i.useEffect((()=>()=>{clearTimeout(v.current)}),[]);const x=i.useCallback((e=>{const{pulsate:t,rippleX:n,rippleY:r,rippleSize:a,cb:i}=e;h((e=>[...e,(0,k.jsx)(z,{classes:{ripple:(0,o.Z)(l.ripple,E.ripple),rippleVisible:(0,o.Z)(l.rippleVisible,E.rippleVisible),ripplePulsate:(0,o.Z)(l.ripplePulsate,E.ripplePulsate),child:(0,o.Z)(l.child,E.child),childLeaving:(0,o.Z)(l.childLeaving,E.childLeaving),childPulsate:(0,o.Z)(l.childPulsate,E.childPulsate)},timeout:550,pulsate:t,rippleX:n,rippleY:r,rippleSize:a},f.current)])),f.current+=1,m.current=i}),[l]),S=i.useCallback((function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=arguments.length>2?arguments[2]:void 0;const{pulsate:r=!1,center:a=s||t.pulsate,fakeElement:i=!1}=t;if("mousedown"===(null==e?void 0:e.type)&&g.current)return void(g.current=!1);"touchstart"===(null==e?void 0:e.type)&&(g.current=!0);const o=i?null:y.current,l=o?o.getBoundingClientRect():{width:0,height:0,left:0,top:0};let c,u,d;if(a||void 0===e||0===e.clientX&&0===e.clientY||!e.clientX&&!e.touches)c=Math.round(l.width/2),u=Math.round(l.height/2);else{const{clientX:t,clientY:n}=e.touches&&e.touches.length>0?e.touches[0]:e;c=Math.round(t-l.left),u=Math.round(n-l.top)}if(a)d=Math.sqrt((2*l.width**2+l.height**2)/3),d%2===0&&(d+=1);else{const e=2*Math.max(Math.abs((o?o.clientWidth:0)-c),c)+2,t=2*Math.max(Math.abs((o?o.clientHeight:0)-u),u)+2;d=Math.sqrt(e**2+t**2)}null!=e&&e.touches?null===b.current&&(b.current=()=>{x({pulsate:r,rippleX:c,rippleY:u,rippleSize:d,cb:n})},v.current=setTimeout((()=>{b.current&&(b.current(),b.current=null)}),80)):x({pulsate:r,rippleX:c,rippleY:u,rippleSize:d,cb:n})}),[s,x]),C=i.useCallback((()=>{S({},{pulsate:!0})}),[S]),I=i.useCallback(((e,t)=>{if(clearTimeout(v.current),"touchend"===(null==e?void 0:e.type)&&b.current)return b.current(),b.current=null,void(v.current=setTimeout((()=>{I(e,t)})));b.current=null,h((e=>e.length>0?e.slice(1):e)),m.current=t}),[]);return i.useImperativeHandle(t,(()=>({pulsate:C,start:S,stop:I})),[C,S,I]),(0,k.jsx)(M,(0,r.Z)({className:(0,o.Z)(E.root,l.root,u),ref:y},d,{children:(0,k.jsx)(w,{component:null,exit:!0,children:p})}))}));var D=n(32298);function N(e){return(0,D.Z)("MuiButtonBase",e)}const O=(0,C.Z)("MuiButtonBase",["root","disabled","focusVisible"]),B=["action","centerRipple","children","className","component","disabled","disableRipple","disableTouchRipple","focusRipple","focusVisibleClassName","LinkComponent","onBlur","onClick","onContextMenu","onDragLeave","onFocus","onFocusVisible","onKeyDown","onKeyUp","onMouseDown","onMouseLeave","onMouseUp","onTouchEnd","onTouchMove","onTouchStart","tabIndex","TouchRippleProps","touchRippleRef","type"],U=(0,l.ZP)("button",{name:"MuiButtonBase",slot:"Root",overridesResolver:(e,t)=>t.root})({display:"inline-flex",alignItems:"center",justifyContent:"center",position:"relative",boxSizing:"border-box",WebkitTapHighlightColor:"transparent",backgroundColor:"transparent",outline:0,border:0,margin:0,borderRadius:0,padding:0,cursor:"pointer",userSelect:"none",verticalAlign:"middle",MozAppearance:"none",WebkitAppearance:"none",textDecoration:"none",color:"inherit","&::-moz-focus-inner":{borderStyle:"none"},[`&.${O.disabled}`]:{pointerEvents:"none",cursor:"default"},"@media print":{colorAdjust:"exact"}}),$=i.forwardRef((function(e,t){const n=(0,c.Z)({props:e,name:"MuiButtonBase"}),{action:l,centerRipple:h=!1,children:f,className:m,component:g="button",disabled:v=!1,disableRipple:b=!1,disableTouchRipple:y=!1,focusRipple:w=!1,LinkComponent:x="a",onBlur:S,onClick:C,onContextMenu:E,onDragLeave:P,onFocus:I,onFocusVisible:A,onKeyDown:T,onKeyUp:Z,onMouseDown:R,onMouseLeave:L,onMouseUp:_,onTouchEnd:j,onTouchMove:M,onTouchStart:z,tabIndex:D=0,TouchRippleProps:O,touchRippleRef:$,type:V}=n,G=(0,a.Z)(n,B),W=i.useRef(null),q=i.useRef(null),H=(0,u.Z)(q,$),{isFocusVisibleRef:K,onFocus:Y,onBlur:Q,ref:X}=(0,p.Z)(),[J,ee]=i.useState(!1);v&&J&&ee(!1),i.useImperativeHandle(l,(()=>({focusVisible:()=>{ee(!0),W.current.focus()}})),[]);const[te,ne]=i.useState(!1);i.useEffect((()=>{ne(!0)}),[]);const re=te&&!b&&!v;function ae(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:y;return(0,d.Z)((r=>{t&&t(r);return!n&&q.current&&q.current[e](r),!0}))}i.useEffect((()=>{J&&w&&!b&&te&&q.current.pulsate()}),[b,w,J,te]);const ie=ae("start",R),oe=ae("stop",E),se=ae("stop",P),le=ae("stop",_),ce=ae("stop",(e=>{J&&e.preventDefault(),L&&L(e)})),ue=ae("start",z),de=ae("stop",j),pe=ae("stop",M),he=ae("stop",(e=>{Q(e),!1===K.current&&ee(!1),S&&S(e)}),!1),fe=(0,d.Z)((e=>{W.current||(W.current=e.currentTarget),Y(e),!0===K.current&&(ee(!0),A&&A(e)),I&&I(e)})),me=()=>{const e=W.current;return g&&"button"!==g&&!("A"===e.tagName&&e.href)},ge=i.useRef(!1),ve=(0,d.Z)((e=>{w&&!ge.current&&J&&q.current&&" "===e.key&&(ge.current=!0,q.current.stop(e,(()=>{q.current.start(e)}))),e.target===e.currentTarget&&me()&&" "===e.key&&e.preventDefault(),T&&T(e),e.target===e.currentTarget&&me()&&"Enter"===e.key&&!v&&(e.preventDefault(),C&&C(e))})),be=(0,d.Z)((e=>{w&&" "===e.key&&q.current&&J&&!e.defaultPrevented&&(ge.current=!1,q.current.stop(e,(()=>{q.current.pulsate(e)}))),Z&&Z(e),C&&e.target===e.currentTarget&&me()&&" "===e.key&&!e.defaultPrevented&&C(e)}));let ye=g;"button"===ye&&(G.href||G.to)&&(ye=x);const we={};"button"===ye?(we.type=void 0===V?"button":V,we.disabled=v):(G.href||G.to||(we.role="button"),v&&(we["aria-disabled"]=v));const xe=(0,u.Z)(X,W),ke=(0,u.Z)(t,xe);const Se=(0,r.Z)({},n,{centerRipple:h,component:g,disabled:v,disableRipple:b,disableTouchRipple:y,focusRipple:w,tabIndex:D,focusVisible:J}),Ce=(e=>{const{disabled:t,focusVisible:n,focusVisibleClassName:r,classes:a}=e,i={root:["root",t&&"disabled",n&&"focusVisible"]},o=(0,s.Z)(i,N,a);return n&&r&&(o.root+=` ${r}`),o})(Se);return(0,k.jsxs)(U,(0,r.Z)({as:ye,className:(0,o.Z)(Ce.root,m),ownerState:Se,onBlur:he,onClick:C,onContextMenu:oe,onFocus:fe,onKeyDown:ve,onKeyUp:be,onMouseDown:ie,onMouseLeave:ce,onMouseUp:le,onDragLeave:se,onTouchEnd:de,onTouchMove:pe,onTouchStart:ue,ref:ke,tabIndex:v?-1:D,type:V},we,G,{children:[f,re?(0,k.jsx)(F,(0,r.Z)({ref:H,center:h},O)):null]}))}))},32410:(e,t,n)=>{"use strict";n.d(t,{Z:()=>h});var r=n(87462),a=n(63366),i=n(47313),o=n(60596),s=n(62111),l=n(68999),c=n(2995),u=n(46417);const d=["addEndListener","appear","children","easing","in","onEnter","onEntered","onEntering","onExit","onExited","onExiting","style","timeout","TransitionComponent"],p={entering:{opacity:1},entered:{opacity:1}},h=i.forwardRef((function(e,t){const n=(0,s.Z)(),h={enter:n.transitions.duration.enteringScreen,exit:n.transitions.duration.leavingScreen},{addEndListener:f,appear:m=!0,children:g,easing:v,in:b,onEnter:y,onEntered:w,onEntering:x,onExit:k,onExited:S,onExiting:C,style:E,timeout:P=h,TransitionComponent:I=o.ZP}=e,A=(0,a.Z)(e,d),T=i.useRef(null),Z=(0,c.Z)(g.ref,t),R=(0,c.Z)(T,Z),L=e=>t=>{if(e){const n=T.current;void 0===t?e(n):e(n,t)}},_=L(x),j=L(((e,t)=>{(0,l.n)(e);const r=(0,l.C)({style:E,timeout:P,easing:v},{mode:"enter"});e.style.webkitTransition=n.transitions.create("opacity",r),e.style.transition=n.transitions.create("opacity",r),y&&y(e,t)})),M=L(w),z=L(C),F=L((e=>{const t=(0,l.C)({style:E,timeout:P,easing:v},{mode:"exit"});e.style.webkitTransition=n.transitions.create("opacity",t),e.style.transition=n.transitions.create("opacity",t),k&&k(e)})),D=L(S);return(0,u.jsx)(I,(0,r.Z)({appear:m,in:b,nodeRef:T,onEnter:j,onEntered:M,onEntering:_,onExit:F,onExited:D,onExiting:z,addEndListener:e=>{f&&f(T.current,e)},timeout:P},A,{children:(e,t)=>i.cloneElement(g,(0,r.Z)({style:(0,r.Z)({opacity:0,visibility:"exited"!==e||b?void 0:"hidden"},p[e],E,g.props.style),ref:R},t))}))}))},82937:(e,t,n)=>{"use strict";n.d(t,{ZP:()=>E});var r=n(63366),a=n(87462),i=n(47313),o=n(83061),s=n(54929),l=n(39028),c=n(21921),u=n(42379),d=n(32772),p=n(62111);const h=i.createContext();var f=n(32298);function m(e){return(0,f.Z)("MuiGrid",e)}const g=["auto",!0,1,2,3,4,5,6,7,8,9,10,11,12],v=(0,n(77430).Z)("MuiGrid",["root","container","item","zeroMinWidth",...[0,1,2,3,4,5,6,7,8,9,10].map((e=>`spacing-xs-${e}`)),...["column-reverse","column","row-reverse","row"].map((e=>`direction-xs-${e}`)),...["nowrap","wrap-reverse","wrap"].map((e=>`wrap-xs-${e}`)),...g.map((e=>`grid-xs-${e}`)),...g.map((e=>`grid-sm-${e}`)),...g.map((e=>`grid-md-${e}`)),...g.map((e=>`grid-lg-${e}`)),...g.map((e=>`grid-xl-${e}`))]);var b=n(46417);const y=["className","columns","columnSpacing","component","container","direction","item","rowSpacing","spacing","wrap","zeroMinWidth"];function w(e){const t=parseFloat(e);return`${t}${String(e).replace(String(t),"")||"px"}`}function x(e){let{breakpoints:t,values:n}=e,r="";Object.keys(n).forEach((e=>{""===r&&0!==n[e]&&(r=e)}));const a=Object.keys(t).sort(((e,n)=>t[e]-t[n]));return a.slice(0,a.indexOf(r))}const k=(0,u.ZP)("div",{name:"MuiGrid",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e,{container:r,direction:a,item:i,spacing:o,wrap:s,zeroMinWidth:l,breakpoints:c}=n;let u=[];r&&(u=function(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};if(!e||e<=0)return[];if("string"===typeof e&&!Number.isNaN(Number(e))||"number"===typeof e)return[n[`spacing-xs-${String(e)}`]];const r=[];return t.forEach((t=>{const a=e[t];Number(a)>0&&r.push(n[`spacing-${t}-${String(a)}`])})),r}(o,c,t));const d=[];return c.forEach((e=>{const r=n[e];r&&d.push(t[`grid-${e}-${String(r)}`])})),[t.root,r&&t.container,i&&t.item,l&&t.zeroMinWidth,...u,"row"!==a&&t[`direction-xs-${String(a)}`],"wrap"!==s&&t[`wrap-xs-${String(s)}`],...d]}})((e=>{let{ownerState:t}=e;return(0,a.Z)({boxSizing:"border-box"},t.container&&{display:"flex",flexWrap:"wrap",width:"100%"},t.item&&{margin:0},t.zeroMinWidth&&{minWidth:0},"wrap"!==t.wrap&&{flexWrap:t.wrap})}),(function(e){let{theme:t,ownerState:n}=e;const r=(0,s.P$)({values:n.direction,breakpoints:t.breakpoints.values});return(0,s.k9)({theme:t},r,(e=>{const t={flexDirection:e};return 0===e.indexOf("column")&&(t[`& > .${v.item}`]={maxWidth:"none"}),t}))}),(function(e){let{theme:t,ownerState:n}=e;const{container:r,rowSpacing:a}=n;let i={};if(r&&0!==a){const e=(0,s.P$)({values:a,breakpoints:t.breakpoints.values});let n;"object"===typeof e&&(n=x({breakpoints:t.breakpoints.values,values:e})),i=(0,s.k9)({theme:t},e,((e,r)=>{var a;const i=t.spacing(e);return"0px"!==i?{marginTop:`-${w(i)}`,[`& > .${v.item}`]:{paddingTop:w(i)}}:null!=(a=n)&&a.includes(r)?{}:{marginTop:0,[`& > .${v.item}`]:{paddingTop:0}}}))}return i}),(function(e){let{theme:t,ownerState:n}=e;const{container:r,columnSpacing:a}=n;let i={};if(r&&0!==a){const e=(0,s.P$)({values:a,breakpoints:t.breakpoints.values});let n;"object"===typeof e&&(n=x({breakpoints:t.breakpoints.values,values:e})),i=(0,s.k9)({theme:t},e,((e,r)=>{var a;const i=t.spacing(e);return"0px"!==i?{width:`calc(100% + ${w(i)})`,marginLeft:`-${w(i)}`,[`& > .${v.item}`]:{paddingLeft:w(i)}}:null!=(a=n)&&a.includes(r)?{}:{width:"100%",marginLeft:0,[`& > .${v.item}`]:{paddingLeft:0}}}))}return i}),(function(e){let t,{theme:n,ownerState:r}=e;return n.breakpoints.keys.reduce(((e,i)=>{let o={};if(r[i]&&(t=r[i]),!t)return e;if(!0===t)o={flexBasis:0,flexGrow:1,maxWidth:"100%"};else if("auto"===t)o={flexBasis:"auto",flexGrow:0,flexShrink:0,maxWidth:"none",width:"auto"};else{const l=(0,s.P$)({values:r.columns,breakpoints:n.breakpoints.values}),c="object"===typeof l?l[i]:l;if(void 0===c||null===c)return e;const u=Math.round(t/c*1e8)/1e6+"%";let d={};if(r.container&&r.item&&0!==r.columnSpacing){const e=n.spacing(r.columnSpacing);if("0px"!==e){const t=`calc(${u} + ${w(e)})`;d={flexBasis:t,maxWidth:t}}}o=(0,a.Z)({flexBasis:u,flexGrow:0,maxWidth:u},d)}return 0===n.breakpoints.values[i]?Object.assign(e,o):e[n.breakpoints.up(i)]=o,e}),{})}));const S=e=>{const{classes:t,container:n,direction:r,item:a,spacing:i,wrap:o,zeroMinWidth:s,breakpoints:l}=e;let u=[];n&&(u=function(e,t){if(!e||e<=0)return[];if("string"===typeof e&&!Number.isNaN(Number(e))||"number"===typeof e)return[`spacing-xs-${String(e)}`];const n=[];return t.forEach((t=>{const r=e[t];if(Number(r)>0){const e=`spacing-${t}-${String(r)}`;n.push(e)}})),n}(i,l));const d=[];l.forEach((t=>{const n=e[t];n&&d.push(`grid-${t}-${String(n)}`)}));const p={root:["root",n&&"container",a&&"item",s&&"zeroMinWidth",...u,"row"!==r&&`direction-xs-${String(r)}`,"wrap"!==o&&`wrap-xs-${String(o)}`,...d]};return(0,c.Z)(p,m,t)},C=i.forwardRef((function(e,t){const n=(0,d.Z)({props:e,name:"MuiGrid"}),{breakpoints:s}=(0,p.Z)(),c=(0,l.Z)(n),{className:u,columns:f,columnSpacing:m,component:g="div",container:v=!1,direction:w="row",item:x=!1,rowSpacing:C,spacing:E=0,wrap:P="wrap",zeroMinWidth:I=!1}=c,A=(0,r.Z)(c,y),T=C||E,Z=m||E,R=i.useContext(h),L=v?f||12:R,_={},j=(0,a.Z)({},A);s.keys.forEach((e=>{null!=A[e]&&(_[e]=A[e],delete j[e])}));const M=(0,a.Z)({},c,{columns:L,container:v,direction:w,item:x,rowSpacing:T,columnSpacing:Z,wrap:P,zeroMinWidth:I,spacing:E},_,{breakpoints:s.keys}),z=S(M);return(0,b.jsx)(h.Provider,{value:L,children:(0,b.jsx)(k,(0,a.Z)({ownerState:M,className:(0,o.Z)(z.root,u),as:g,ref:t},j))})}));const E=C},18104:(e,t,n)=>{"use strict";n.d(t,{Z:()=>y});var r=n(63366),a=n(87462),i=n(47313),o=n(83061),s=n(21921),l=n(17551),c=n(42379),u=n(32772),d=n(85624),p=n(28170),h=n(32298);function f(e){return(0,h.Z)("MuiIconButton",e)}const m=(0,n(77430).Z)("MuiIconButton",["root","disabled","colorInherit","colorPrimary","colorSecondary","edgeStart","edgeEnd","sizeSmall","sizeMedium","sizeLarge"]);var g=n(46417);const v=["edge","children","className","color","disabled","disableFocusRipple","size"],b=(0,c.ZP)(d.Z,{name:"MuiIconButton",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,"default"!==n.color&&t[`color${(0,p.Z)(n.color)}`],n.edge&&t[`edge${(0,p.Z)(n.edge)}`],t[`size${(0,p.Z)(n.size)}`]]}})((e=>{let{theme:t,ownerState:n}=e;return(0,a.Z)({textAlign:"center",flex:"0 0 auto",fontSize:t.typography.pxToRem(24),padding:8,borderRadius:"50%",overflow:"visible",color:(t.vars||t).palette.action.active,transition:t.transitions.create("background-color",{duration:t.transitions.duration.shortest})},!n.disableRipple&&{"&:hover":{backgroundColor:t.vars?`rgba(${t.vars.palette.action.activeChannel} / ${t.vars.palette.action.hoverOpacity})`:(0,l.Fq)(t.palette.action.active,t.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}}},"start"===n.edge&&{marginLeft:"small"===n.size?-3:-12},"end"===n.edge&&{marginRight:"small"===n.size?-3:-12})}),(e=>{let{theme:t,ownerState:n}=e;return(0,a.Z)({},"inherit"===n.color&&{color:"inherit"},"inherit"!==n.color&&"default"!==n.color&&(0,a.Z)({color:(t.vars||t).palette[n.color].main},!n.disableRipple&&{"&:hover":{backgroundColor:t.vars?`rgba(${t.vars.palette[n.color].mainChannel} / ${t.vars.palette.action.hoverOpacity})`:(0,l.Fq)(t.palette[n.color].main,t.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}}}),"small"===n.size&&{padding:5,fontSize:t.typography.pxToRem(18)},"large"===n.size&&{padding:12,fontSize:t.typography.pxToRem(28)},{[`&.${m.disabled}`]:{backgroundColor:"transparent",color:(t.vars||t).palette.action.disabled}})})),y=i.forwardRef((function(e,t){const n=(0,u.Z)({props:e,name:"MuiIconButton"}),{edge:i=!1,children:l,className:c,color:d="default",disabled:h=!1,disableFocusRipple:m=!1,size:y="medium"}=n,w=(0,r.Z)(n,v),x=(0,a.Z)({},n,{edge:i,color:d,disabled:h,disableFocusRipple:m,size:y}),k=(e=>{const{classes:t,disabled:n,color:r,edge:a,size:i}=e,o={root:["root",n&&"disabled","default"!==r&&`color${(0,p.Z)(r)}`,a&&`edge${(0,p.Z)(a)}`,`size${(0,p.Z)(i)}`]};return(0,s.Z)(o,f,t)})(x);return(0,g.jsx)(b,(0,a.Z)({className:(0,o.Z)(k.root,c),centerRipple:!0,focusRipple:!m,disabled:h,ref:t,ownerState:x},w,{children:l}))}))},32415:(e,t,n)=>{"use strict";n.d(t,{Z:()=>v});var r=n(63366),a=n(87462),i=n(47313),o=n(83061),s=n(21921),l=n(17551),c=n(42379),u=n(32772),d=n(32298);function p(e){return(0,d.Z)("MuiPaper",e)}(0,n(77430).Z)("MuiPaper",["root","rounded","outlined","elevation","elevation0","elevation1","elevation2","elevation3","elevation4","elevation5","elevation6","elevation7","elevation8","elevation9","elevation10","elevation11","elevation12","elevation13","elevation14","elevation15","elevation16","elevation17","elevation18","elevation19","elevation20","elevation21","elevation22","elevation23","elevation24"]);var h=n(46417);const f=["className","component","elevation","square","variant"],m=e=>{let t;return t=e<1?5.11916*e**2:4.5*Math.log(e+1)+2,(t/100).toFixed(2)},g=(0,c.ZP)("div",{name:"MuiPaper",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[n.variant],!n.square&&t.rounded,"elevation"===n.variant&&t[`elevation${n.elevation}`]]}})((e=>{let{theme:t,ownerState:n}=e;var r;return(0,a.Z)({backgroundColor:(t.vars||t).palette.background.paper,color:(t.vars||t).palette.text.primary,transition:t.transitions.create("box-shadow")},!n.square&&{borderRadius:t.shape.borderRadius},"outlined"===n.variant&&{border:`1px solid ${(t.vars||t).palette.divider}`},"elevation"===n.variant&&(0,a.Z)({boxShadow:(t.vars||t).shadows[n.elevation]},!t.vars&&"dark"===t.palette.mode&&{backgroundImage:`linear-gradient(${(0,l.Fq)("#fff",m(n.elevation))}, ${(0,l.Fq)("#fff",m(n.elevation))})`},t.vars&&{backgroundImage:null==(r=t.vars.overlays)?void 0:r[n.elevation]}))})),v=i.forwardRef((function(e,t){const n=(0,u.Z)({props:e,name:"MuiPaper"}),{className:i,component:l="div",elevation:c=1,square:d=!1,variant:m="elevation"}=n,v=(0,r.Z)(n,f),b=(0,a.Z)({},n,{component:l,elevation:c,square:d,variant:m}),y=(e=>{const{square:t,elevation:n,variant:r,classes:a}=e,i={root:["root",r,!t&&"rounded","elevation"===r&&`elevation${n}`]};return(0,s.Z)(i,p,a)})(b);return(0,h.jsx)(g,(0,a.Z)({as:l,ownerState:b,className:(0,o.Z)(y.root,i),ref:t},v))}))},22690:(e,t,n)=>{"use strict";n.d(t,{Z:()=>m});var r=n(87462),a=n(63366),i=n(47313),o=n(60596);const s=function(e){let t,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:166;function r(){for(var r=arguments.length,a=new Array(r),i=0;i{e.apply(this,a)};clearTimeout(t),t=setTimeout(o,n)}return r.clear=()=>{clearTimeout(t)},r};var l=n(2995),c=n(62111),u=n(68999);const d=n(93282).Z;var p=n(46417);const h=["addEndListener","appear","children","container","direction","easing","in","onEnter","onEntered","onEntering","onExit","onExited","onExiting","style","timeout","TransitionComponent"];function f(e,t,n){var r;const a=function(e,t,n){const r=t.getBoundingClientRect(),a=n&&n.getBoundingClientRect(),i=d(t);let o;if(t.fakeTransform)o=t.fakeTransform;else{const e=i.getComputedStyle(t);o=e.getPropertyValue("-webkit-transform")||e.getPropertyValue("transform")}let s=0,l=0;if(o&&"none"!==o&&"string"===typeof o){const e=o.split("(")[1].split(")")[0].split(",");s=parseInt(e[4],10),l=parseInt(e[5],10)}return"left"===e?a?`translateX(${a.right+s-r.left}px)`:`translateX(${i.innerWidth+s-r.left}px)`:"right"===e?a?`translateX(-${r.right-a.left-s}px)`:`translateX(-${r.left+r.width-s}px)`:"up"===e?a?`translateY(${a.bottom+l-r.top}px)`:`translateY(${i.innerHeight+l-r.top}px)`:a?`translateY(-${r.top-a.top+r.height-l}px)`:`translateY(-${r.top+r.height-l}px)`}(e,t,"function"===typeof(r=n)?r():r);a&&(t.style.webkitTransform=a,t.style.transform=a)}const m=i.forwardRef((function(e,t){const n=(0,c.Z)(),m={enter:n.transitions.easing.easeOut,exit:n.transitions.easing.sharp},g={enter:n.transitions.duration.enteringScreen,exit:n.transitions.duration.leavingScreen},{addEndListener:v,appear:b=!0,children:y,container:w,direction:x="down",easing:k=m,in:S,onEnter:C,onEntered:E,onEntering:P,onExit:I,onExited:A,onExiting:T,style:Z,timeout:R=g,TransitionComponent:L=o.ZP}=e,_=(0,a.Z)(e,h),j=i.useRef(null),M=(0,l.Z)(y.ref,j),z=(0,l.Z)(M,t),F=e=>t=>{e&&(void 0===t?e(j.current):e(j.current,t))},D=F(((e,t)=>{f(x,e,w),(0,u.n)(e),C&&C(e,t)})),N=F(((e,t)=>{const a=(0,u.C)({timeout:R,style:Z,easing:k},{mode:"enter"});e.style.webkitTransition=n.transitions.create("-webkit-transform",(0,r.Z)({},a)),e.style.transition=n.transitions.create("transform",(0,r.Z)({},a)),e.style.webkitTransform="none",e.style.transform="none",P&&P(e,t)})),O=F(E),B=F(T),U=F((e=>{const t=(0,u.C)({timeout:R,style:Z,easing:k},{mode:"exit"});e.style.webkitTransition=n.transitions.create("-webkit-transform",t),e.style.transition=n.transitions.create("transform",t),f(x,e,w),I&&I(e)})),$=F((e=>{e.style.webkitTransition="",e.style.transition="",A&&A(e)})),V=i.useCallback((()=>{j.current&&f(x,j.current,w)}),[x,w]);return i.useEffect((()=>{if(S||"down"===x||"right"===x)return;const e=s((()=>{j.current&&f(x,j.current,w)})),t=d(j.current);return t.addEventListener("resize",e),()=>{e.clear(),t.removeEventListener("resize",e)}}),[x,S,w]),i.useEffect((()=>{S||V()}),[S,V]),(0,p.jsx)(L,(0,r.Z)({nodeRef:j,onEnter:D,onEntered:O,onEntering:N,onExit:U,onExited:$,onExiting:B,addEndListener:e=>{v&&v(j.current,e)},appear:b,in:S,timeout:R},_,{children:(e,t)=>i.cloneElement(y,(0,r.Z)({ref:z,style:(0,r.Z)({visibility:"exited"!==e||S?void 0:"hidden"},Z,y.props.style)},t))}))}))},85541:(e,t,n)=>{"use strict";n.d(t,{Z:()=>v});var r=n(87462),a=n(63366),i=n(47313),o=n(83061),s=n(21921),l=n(28170),c=n(32772),u=n(42379),d=n(32298);function p(e){return(0,d.Z)("MuiSvgIcon",e)}(0,n(77430).Z)("MuiSvgIcon",["root","colorPrimary","colorSecondary","colorAction","colorError","colorDisabled","fontSizeInherit","fontSizeSmall","fontSizeMedium","fontSizeLarge"]);var h=n(46417);const f=["children","className","color","component","fontSize","htmlColor","inheritViewBox","titleAccess","viewBox"],m=(0,u.ZP)("svg",{name:"MuiSvgIcon",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,"inherit"!==n.color&&t[`color${(0,l.Z)(n.color)}`],t[`fontSize${(0,l.Z)(n.fontSize)}`]]}})((e=>{let{theme:t,ownerState:n}=e;var r,a,i,o,s,l,c,u,d,p,h,f,m,g,v,b,y;return{userSelect:"none",width:"1em",height:"1em",display:"inline-block",fill:"currentColor",flexShrink:0,transition:null==(r=t.transitions)||null==(a=r.create)?void 0:a.call(r,"fill",{duration:null==(i=t.transitions)||null==(o=i.duration)?void 0:o.shorter}),fontSize:{inherit:"inherit",small:(null==(s=t.typography)||null==(l=s.pxToRem)?void 0:l.call(s,20))||"1.25rem",medium:(null==(c=t.typography)||null==(u=c.pxToRem)?void 0:u.call(c,24))||"1.5rem",large:(null==(d=t.typography)||null==(p=d.pxToRem)?void 0:p.call(d,35))||"2.1875"}[n.fontSize],color:null!=(h=null==(f=(t.vars||t).palette)||null==(m=f[n.color])?void 0:m.main)?h:{action:null==(g=(t.vars||t).palette)||null==(v=g.action)?void 0:v.active,disabled:null==(b=(t.vars||t).palette)||null==(y=b.action)?void 0:y.disabled,inherit:void 0}[n.color]}})),g=i.forwardRef((function(e,t){const n=(0,c.Z)({props:e,name:"MuiSvgIcon"}),{children:i,className:u,color:d="inherit",component:g="svg",fontSize:v="medium",htmlColor:b,inheritViewBox:y=!1,titleAccess:w,viewBox:x="0 0 24 24"}=n,k=(0,a.Z)(n,f),S=(0,r.Z)({},n,{color:d,component:g,fontSize:v,instanceFontSize:e.fontSize,inheritViewBox:y,viewBox:x}),C={};y||(C.viewBox=x);const E=(e=>{const{color:t,fontSize:n,classes:r}=e,a={root:["root","inherit"!==t&&`color${(0,l.Z)(t)}`,`fontSize${(0,l.Z)(n)}`]};return(0,s.Z)(a,p,r)})(S);return(0,h.jsxs)(m,(0,r.Z)({as:g,className:(0,o.Z)(E.root,u),ownerState:S,focusable:"false",color:b,"aria-hidden":!w||void 0,role:w?"img":void 0,ref:t},C,k,{children:[i,w?(0,h.jsx)("title",{children:w}):null]}))}));g.muiName="SvgIcon";const v=g},42669:(e,t,n)=>{"use strict";n.d(t,{Z:()=>y});var r=n(63366),a=n(87462),i=n(47313),o=n(83061),s=n(39028),l=n(21921),c=n(42379),u=n(32772),d=n(28170),p=n(32298);function h(e){return(0,p.Z)("MuiTypography",e)}(0,n(77430).Z)("MuiTypography",["root","h1","h2","h3","h4","h5","h6","subtitle1","subtitle2","body1","body2","inherit","button","caption","overline","alignLeft","alignRight","alignCenter","alignJustify","noWrap","gutterBottom","paragraph"]);var f=n(46417);const m=["align","className","component","gutterBottom","noWrap","paragraph","variant","variantMapping"],g=(0,c.ZP)("span",{name:"MuiTypography",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.variant&&t[n.variant],"inherit"!==n.align&&t[`align${(0,d.Z)(n.align)}`],n.noWrap&&t.noWrap,n.gutterBottom&&t.gutterBottom,n.paragraph&&t.paragraph]}})((e=>{let{theme:t,ownerState:n}=e;return(0,a.Z)({margin:0},n.variant&&t.typography[n.variant],"inherit"!==n.align&&{textAlign:n.align},n.noWrap&&{overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"},n.gutterBottom&&{marginBottom:"0.35em"},n.paragraph&&{marginBottom:16})})),v={h1:"h1",h2:"h2",h3:"h3",h4:"h4",h5:"h5",h6:"h6",subtitle1:"h6",subtitle2:"h6",body1:"p",body2:"p",inherit:"p"},b={primary:"primary.main",textPrimary:"text.primary",secondary:"secondary.main",textSecondary:"text.secondary",error:"error.main"},y=i.forwardRef((function(e,t){const n=(0,u.Z)({props:e,name:"MuiTypography"}),i=(e=>b[e]||e)(n.color),c=(0,s.Z)((0,a.Z)({},n,{color:i})),{align:p="inherit",className:y,component:w,gutterBottom:x=!1,noWrap:k=!1,paragraph:S=!1,variant:C="body1",variantMapping:E=v}=c,P=(0,r.Z)(c,m),I=(0,a.Z)({},c,{align:p,color:i,className:y,component:w,gutterBottom:x,noWrap:k,paragraph:S,variant:C,variantMapping:E}),A=w||(S?"p":E[C]||v[C])||"span",T=(e=>{const{align:t,gutterBottom:n,noWrap:r,paragraph:a,variant:i,classes:o}=e,s={root:["root",i,"inherit"!==e.align&&`align${(0,d.Z)(t)}`,n&&"gutterBottom",r&&"noWrap",a&&"paragraph"]};return(0,l.Z)(s,h,o)})(I);return(0,f.jsx)(g,(0,a.Z)({as:A,ref:t,ownerState:I,className:(0,o.Z)(T.root,y)},P))}))},3666:(e,t,n)=>{"use strict";n.d(t,{Z:()=>D});var r=n(87462),a=n(63366),i=n(77219),o=n(13019),s=n(9456);function l(e,t){return(0,r.Z)({toolbar:{minHeight:56,[e.up("xs")]:{"@media (orientation: landscape)":{minHeight:48}},[e.up("sm")]:{minHeight:64}}},t)}var c=n(17551);const u={black:"#000",white:"#fff"},d={50:"#fafafa",100:"#f5f5f5",200:"#eeeeee",300:"#e0e0e0",400:"#bdbdbd",500:"#9e9e9e",600:"#757575",700:"#616161",800:"#424242",900:"#212121",A100:"#f5f5f5",A200:"#eeeeee",A400:"#bdbdbd",A700:"#616161"},p={50:"#f3e5f5",100:"#e1bee7",200:"#ce93d8",300:"#ba68c8",400:"#ab47bc",500:"#9c27b0",600:"#8e24aa",700:"#7b1fa2",800:"#6a1b9a",900:"#4a148c",A100:"#ea80fc",A200:"#e040fb",A400:"#d500f9",A700:"#aa00ff"},h={50:"#ffebee",100:"#ffcdd2",200:"#ef9a9a",300:"#e57373",400:"#ef5350",500:"#f44336",600:"#e53935",700:"#d32f2f",800:"#c62828",900:"#b71c1c",A100:"#ff8a80",A200:"#ff5252",A400:"#ff1744",A700:"#d50000"},f={50:"#fff3e0",100:"#ffe0b2",200:"#ffcc80",300:"#ffb74d",400:"#ffa726",500:"#ff9800",600:"#fb8c00",700:"#f57c00",800:"#ef6c00",900:"#e65100",A100:"#ffd180",A200:"#ffab40",A400:"#ff9100",A700:"#ff6d00"},m={50:"#e3f2fd",100:"#bbdefb",200:"#90caf9",300:"#64b5f6",400:"#42a5f5",500:"#2196f3",600:"#1e88e5",700:"#1976d2",800:"#1565c0",900:"#0d47a1",A100:"#82b1ff",A200:"#448aff",A400:"#2979ff",A700:"#2962ff"},g={50:"#e1f5fe",100:"#b3e5fc",200:"#81d4fa",300:"#4fc3f7",400:"#29b6f6",500:"#03a9f4",600:"#039be5",700:"#0288d1",800:"#0277bd",900:"#01579b",A100:"#80d8ff",A200:"#40c4ff",A400:"#00b0ff",A700:"#0091ea"},v={50:"#e8f5e9",100:"#c8e6c9",200:"#a5d6a7",300:"#81c784",400:"#66bb6a",500:"#4caf50",600:"#43a047",700:"#388e3c",800:"#2e7d32",900:"#1b5e20",A100:"#b9f6ca",A200:"#69f0ae",A400:"#00e676",A700:"#00c853"},b=["mode","contrastThreshold","tonalOffset"],y={text:{primary:"rgba(0, 0, 0, 0.87)",secondary:"rgba(0, 0, 0, 0.6)",disabled:"rgba(0, 0, 0, 0.38)"},divider:"rgba(0, 0, 0, 0.12)",background:{paper:u.white,default:u.white},action:{active:"rgba(0, 0, 0, 0.54)",hover:"rgba(0, 0, 0, 0.04)",hoverOpacity:.04,selected:"rgba(0, 0, 0, 0.08)",selectedOpacity:.08,disabled:"rgba(0, 0, 0, 0.26)",disabledBackground:"rgba(0, 0, 0, 0.12)",disabledOpacity:.38,focus:"rgba(0, 0, 0, 0.12)",focusOpacity:.12,activatedOpacity:.12}},w={text:{primary:u.white,secondary:"rgba(255, 255, 255, 0.7)",disabled:"rgba(255, 255, 255, 0.5)",icon:"rgba(255, 255, 255, 0.5)"},divider:"rgba(255, 255, 255, 0.12)",background:{paper:"#121212",default:"#121212"},action:{active:u.white,hover:"rgba(255, 255, 255, 0.08)",hoverOpacity:.08,selected:"rgba(255, 255, 255, 0.16)",selectedOpacity:.16,disabled:"rgba(255, 255, 255, 0.3)",disabledBackground:"rgba(255, 255, 255, 0.12)",disabledOpacity:.38,focus:"rgba(255, 255, 255, 0.12)",focusOpacity:.12,activatedOpacity:.24}};function x(e,t,n,r){const a=r.light||r,i=r.dark||1.5*r;e[t]||(e.hasOwnProperty(n)?e[t]=e[n]:"light"===t?e.light=(0,c.$n)(e.main,a):"dark"===t&&(e.dark=(0,c._j)(e.main,i)))}function k(e){const{mode:t="light",contrastThreshold:n=3,tonalOffset:s=.2}=e,l=(0,a.Z)(e,b),k=e.primary||function(){return"dark"===(arguments.length>0&&void 0!==arguments[0]?arguments[0]:"light")?{main:m[200],light:m[50],dark:m[400]}:{main:m[700],light:m[400],dark:m[800]}}(t),S=e.secondary||function(){return"dark"===(arguments.length>0&&void 0!==arguments[0]?arguments[0]:"light")?{main:p[200],light:p[50],dark:p[400]}:{main:p[500],light:p[300],dark:p[700]}}(t),C=e.error||function(){return"dark"===(arguments.length>0&&void 0!==arguments[0]?arguments[0]:"light")?{main:h[500],light:h[300],dark:h[700]}:{main:h[700],light:h[400],dark:h[800]}}(t),E=e.info||function(){return"dark"===(arguments.length>0&&void 0!==arguments[0]?arguments[0]:"light")?{main:g[400],light:g[300],dark:g[700]}:{main:g[700],light:g[500],dark:g[900]}}(t),P=e.success||function(){return"dark"===(arguments.length>0&&void 0!==arguments[0]?arguments[0]:"light")?{main:v[400],light:v[300],dark:v[700]}:{main:v[800],light:v[500],dark:v[900]}}(t),I=e.warning||function(){return"dark"===(arguments.length>0&&void 0!==arguments[0]?arguments[0]:"light")?{main:f[400],light:f[300],dark:f[700]}:{main:"#ed6c02",light:f[500],dark:f[900]}}(t);function A(e){return(0,c.mi)(e,w.text.primary)>=n?w.text.primary:y.text.primary}const T=e=>{let{color:t,name:n,mainShade:a=500,lightShade:o=300,darkShade:l=700}=e;if(t=(0,r.Z)({},t),!t.main&&t[a]&&(t.main=t[a]),!t.hasOwnProperty("main"))throw new Error((0,i.Z)(11,n?` (${n})`:"",a));if("string"!==typeof t.main)throw new Error((0,i.Z)(12,n?` (${n})`:"",JSON.stringify(t.main)));return x(t,"light",o,s),x(t,"dark",l,s),t.contrastText||(t.contrastText=A(t.main)),t},Z={dark:w,light:y};return(0,o.Z)((0,r.Z)({common:(0,r.Z)({},u),mode:t,primary:T({color:k,name:"primary"}),secondary:T({color:S,name:"secondary",mainShade:"A400",lightShade:"A200",darkShade:"A700"}),error:T({color:C,name:"error"}),warning:T({color:I,name:"warning"}),info:T({color:E,name:"info"}),success:T({color:P,name:"success"}),grey:d,contrastThreshold:n,getContrastText:A,augmentColor:T,tonalOffset:s},Z[t]),l)}const S=["fontFamily","fontSize","fontWeightLight","fontWeightRegular","fontWeightMedium","fontWeightBold","htmlFontSize","allVariants","pxToRem"];const C={textTransform:"uppercase"},E='"Roboto", "Helvetica", "Arial", sans-serif';function P(e,t){const n="function"===typeof t?t(e):t,{fontFamily:i=E,fontSize:s=14,fontWeightLight:l=300,fontWeightRegular:c=400,fontWeightMedium:u=500,fontWeightBold:d=700,htmlFontSize:p=16,allVariants:h,pxToRem:f}=n,m=(0,a.Z)(n,S);const g=s/14,v=f||(e=>e/p*g+"rem"),b=(e,t,n,a,o)=>{return(0,r.Z)({fontFamily:i,fontWeight:e,fontSize:v(t),lineHeight:n},i===E?{letterSpacing:(s=a/t,Math.round(1e5*s)/1e5)+"em"}:{},o,h);var s},y={h1:b(l,96,1.167,-1.5),h2:b(l,60,1.2,-.5),h3:b(c,48,1.167,0),h4:b(c,34,1.235,.25),h5:b(c,24,1.334,0),h6:b(u,20,1.6,.15),subtitle1:b(c,16,1.75,.15),subtitle2:b(u,14,1.57,.1),body1:b(c,16,1.5,.15),body2:b(c,14,1.43,.15),button:b(u,14,1.75,.4,C),caption:b(c,12,1.66,.4),overline:b(c,12,2.66,1,C)};return(0,o.Z)((0,r.Z)({htmlFontSize:p,pxToRem:v,fontFamily:i,fontSize:s,fontWeightLight:l,fontWeightRegular:c,fontWeightMedium:u,fontWeightBold:d},y),m,{clone:!1})}function I(){return[`${arguments.length<=0?void 0:arguments[0]}px ${arguments.length<=1?void 0:arguments[1]}px ${arguments.length<=2?void 0:arguments[2]}px ${arguments.length<=3?void 0:arguments[3]}px rgba(0,0,0,0.2)`,`${arguments.length<=4?void 0:arguments[4]}px ${arguments.length<=5?void 0:arguments[5]}px ${arguments.length<=6?void 0:arguments[6]}px ${arguments.length<=7?void 0:arguments[7]}px rgba(0,0,0,0.14)`,`${arguments.length<=8?void 0:arguments[8]}px ${arguments.length<=9?void 0:arguments[9]}px ${arguments.length<=10?void 0:arguments[10]}px ${arguments.length<=11?void 0:arguments[11]}px rgba(0,0,0,0.12)`].join(",")}const A=["none",I(0,2,1,-1,0,1,1,0,0,1,3,0),I(0,3,1,-2,0,2,2,0,0,1,5,0),I(0,3,3,-2,0,3,4,0,0,1,8,0),I(0,2,4,-1,0,4,5,0,0,1,10,0),I(0,3,5,-1,0,5,8,0,0,1,14,0),I(0,3,5,-1,0,6,10,0,0,1,18,0),I(0,4,5,-2,0,7,10,1,0,2,16,1),I(0,5,5,-3,0,8,10,1,0,3,14,2),I(0,5,6,-3,0,9,12,1,0,3,16,2),I(0,6,6,-3,0,10,14,1,0,4,18,3),I(0,6,7,-4,0,11,15,1,0,4,20,3),I(0,7,8,-4,0,12,17,2,0,5,22,4),I(0,7,8,-4,0,13,19,2,0,5,24,4),I(0,7,9,-4,0,14,21,2,0,5,26,4),I(0,8,9,-5,0,15,22,2,0,6,28,5),I(0,8,10,-5,0,16,24,2,0,6,30,5),I(0,8,11,-5,0,17,26,2,0,6,32,5),I(0,9,11,-5,0,18,28,2,0,7,34,6),I(0,9,12,-6,0,19,29,2,0,7,36,6),I(0,10,13,-6,0,20,31,3,0,8,38,7),I(0,10,13,-6,0,21,33,3,0,8,40,7),I(0,10,14,-6,0,22,35,3,0,8,42,7),I(0,11,14,-7,0,23,36,3,0,9,44,8),I(0,11,15,-7,0,24,38,3,0,9,46,8)],T=["duration","easing","delay"],Z={easeInOut:"cubic-bezier(0.4, 0, 0.2, 1)",easeOut:"cubic-bezier(0.0, 0, 0.2, 1)",easeIn:"cubic-bezier(0.4, 0, 1, 1)",sharp:"cubic-bezier(0.4, 0, 0.6, 1)"},R={shortest:150,shorter:200,short:250,standard:300,complex:375,enteringScreen:225,leavingScreen:195};function L(e){return`${Math.round(e)}ms`}function _(e){if(!e)return 0;const t=e/36;return Math.round(10*(4+15*t**.25+t/5))}function j(e){const t=(0,r.Z)({},Z,e.easing),n=(0,r.Z)({},R,e.duration);return(0,r.Z)({getAutoHeightDuration:_,create:function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:["all"],r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};const{duration:i=n.standard,easing:o=t.easeInOut,delay:s=0}=r;(0,a.Z)(r,T);return(Array.isArray(e)?e:[e]).map((e=>`${e} ${"string"===typeof i?i:L(i)} ${o} ${"string"===typeof s?s:L(s)}`)).join(",")}},e,{easing:t,duration:n})}const M={mobileStepper:1e3,fab:1050,speedDial:1050,appBar:1100,drawer:1200,modal:1300,snackbar:1400,tooltip:1500},z=["breakpoints","mixins","spacing","palette","transitions","typography","shape"];function F(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};const{mixins:t={},palette:n={},transitions:c={},typography:u={}}=e,d=(0,a.Z)(e,z);if(e.vars)throw new Error((0,i.Z)(18));const p=k(n),h=(0,s.Z)(e);let f=(0,o.Z)(h,{mixins:l(h.breakpoints,t),palette:p,shadows:A.slice(),typography:P(p,u),transitions:j(c),zIndex:(0,r.Z)({},M)});f=(0,o.Z)(f,d);for(var m=arguments.length,g=new Array(m>1?m-1:0),v=1;v(0,o.Z)(e,t)),f),f}const D=F},63566:(e,t,n)=>{"use strict";n.d(t,{Z:()=>r});const r=(0,n(3666).Z)()},42379:(e,t,n)=>{"use strict";n.d(t,{ZP:()=>E,FO:()=>S});var r=n(63366),a=n(87462),i=n(84472),o=n(9456),s=n(50114);const l=["variant"];function c(e){return 0===e.length}function u(e){const{variant:t}=e,n=(0,r.Z)(e,l);let a=t||"";return Object.keys(n).sort().forEach((t=>{a+="color"===t?c(a)?e[t]:(0,s.Z)(e[t]):`${c(a)?t:(0,s.Z)(t)}${(0,s.Z)(e[t].toString())}`})),a}var d=n(63649);const p=["name","slot","skipVariantsResolver","skipSx","overridesResolver"],h=["theme"],f=["theme"];function m(e){return 0===Object.keys(e).length}function g(e){return"string"===typeof e&&e.charCodeAt(0)>96}const v=(e,t)=>t.components&&t.components[e]&&t.components[e].styleOverrides?t.components[e].styleOverrides:null,b=(e,t)=>{let n=[];t&&t.components&&t.components[e]&&t.components[e].variants&&(n=t.components[e].variants);const r={};return n.forEach((e=>{const t=u(e.props);r[t]=e.style})),r},y=(e,t,n,r)=>{var a,i;const{ownerState:o={}}=e,s=[],l=null==n||null==(a=n.components)||null==(i=a[r])?void 0:i.variants;return l&&l.forEach((n=>{let r=!0;Object.keys(n.props).forEach((t=>{o[t]!==n.props[t]&&e[t]!==n.props[t]&&(r=!1)})),r&&s.push(t[u(n.props)])})),s};function w(e){return"ownerState"!==e&&"theme"!==e&&"sx"!==e&&"as"!==e}const x=(0,o.Z)();var k=n(63566);const S=e=>w(e)&&"classes"!==e,C=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};const{defaultTheme:t=x,rootShouldForwardProp:n=w,slotShouldForwardProp:o=w,styleFunctionSx:s=d.Z}=e,l=e=>{const n=m(e.theme)?t:e.theme;return s((0,a.Z)({},e,{theme:n}))};return l.__mui_systemSx=!0,function(e){let s=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};(0,i.Co)(e,(e=>e.filter((e=>!(null!=e&&e.__mui_systemSx)))));const{name:c,slot:u,skipVariantsResolver:d,skipSx:x,overridesResolver:k}=s,S=(0,r.Z)(s,p),C=void 0!==d?d:u&&"Root"!==u||!1,E=x||!1;let P;let I=w;"Root"===u?I=n:u?I=o:g(e)&&(I=void 0);const A=(0,i.ZP)(e,(0,a.Z)({shouldForwardProp:I,label:P},S)),T=function(e){for(var n=arguments.length,i=new Array(n>1?n-1:0),o=1;o"function"===typeof e&&e.__emotion_real!==e?n=>{let{theme:i}=n,o=(0,r.Z)(n,h);return e((0,a.Z)({theme:m(i)?t:i},o))}:e)):[];let u=e;c&&k&&s.push((e=>{const n=m(e.theme)?t:e.theme,r=v(c,n);if(r){const t={};return Object.entries(r).forEach((r=>{let[i,o]=r;t[i]="function"===typeof o?o((0,a.Z)({},e,{theme:n})):o})),k(e,t)}return null})),c&&!C&&s.push((e=>{const n=m(e.theme)?t:e.theme;return y(e,b(c,n),n,c)})),E||s.push(l);const d=s.length-i.length;if(Array.isArray(e)&&d>0){const t=new Array(d).fill("");u=[...e,...t],u.raw=[...e.raw,...t]}else"function"===typeof e&&e.__emotion_real!==e&&(u=n=>{let{theme:i}=n,o=(0,r.Z)(n,f);return e((0,a.Z)({theme:m(i)?t:i},o))});const p=A(u,...s);return p};return A.withConfig&&(T.withConfig=A.withConfig),T}}({defaultTheme:k.Z,rootShouldForwardProp:S}),E=C},62111:(e,t,n)=>{"use strict";n.d(t,{Z:()=>i});n(47313);var r=n(86728),a=n(63566);function i(){return(0,r.Z)(a.Z)}},32772:(e,t,n)=>{"use strict";n.d(t,{Z:()=>s});var r=n(29023);var a=n(86728);function i(e){let{props:t,name:n,defaultTheme:i}=e;const o=function(e){const{theme:t,name:n,props:a}=e;return t&&t.components&&t.components[n]&&t.components[n].defaultProps?(0,r.Z)(t.components[n].defaultProps,a):a}({theme:(0,a.Z)(i),name:n,props:t});return o}var o=n(63566);function s(e){let{props:t,name:n}=e;return i({props:t,name:n,defaultTheme:o.Z})}},68999:(e,t,n)=>{"use strict";n.d(t,{C:()=>a,n:()=>r});const r=e=>e.scrollTop;function a(e,t){var n,r;const{timeout:a,easing:i,style:o={}}=e;return{duration:null!=(n=o.transitionDuration)?n:"number"===typeof a?a:a[t.mode]||0,easing:null!=(r=o.transitionTimingFunction)?r:"object"===typeof i?i[t.mode]:i,delay:o.transitionDelay}}},28170:(e,t,n)=>{"use strict";n.d(t,{Z:()=>r});const r=n(50114).Z},56127:(e,t,n)=>{"use strict";n.d(t,{Z:()=>r});const r=n(42780).Z},2995:(e,t,n)=>{"use strict";n.d(t,{Z:()=>r});const r=n(47472).Z},45730:(e,t,n)=>{"use strict";n.d(t,{Z:()=>p});var r=n(47313);let a,i=!0,o=!1;const s={text:!0,search:!0,url:!0,tel:!0,email:!0,password:!0,number:!0,date:!0,month:!0,week:!0,time:!0,datetime:!0,"datetime-local":!0};function l(e){e.metaKey||e.altKey||e.ctrlKey||(i=!0)}function c(){i=!1}function u(){"hidden"===this.visibilityState&&o&&(i=!0)}function d(e){const{target:t}=e;try{return t.matches(":focus-visible")}catch(n){}return i||function(e){const{type:t,tagName:n}=e;return!("INPUT"!==n||!s[t]||e.readOnly)||"TEXTAREA"===n&&!e.readOnly||!!e.isContentEditable}(t)}const p=function(){const e=r.useCallback((e=>{var t;null!=e&&((t=e.ownerDocument).addEventListener("keydown",l,!0),t.addEventListener("mousedown",c,!0),t.addEventListener("pointerdown",c,!0),t.addEventListener("touchstart",c,!0),t.addEventListener("visibilitychange",u,!0))}),[]),t=r.useRef(!1);return{isFocusVisibleRef:t,onFocus:function(e){return!!d(e)&&(t.current=!0,!0)},onBlur:function(){return!!t.current&&(o=!0,window.clearTimeout(a),a=window.setTimeout((()=>{o=!1}),100),t.current=!1,!0)},ref:e}}},15693:(e,t,n)=>{"use strict";n.d(t,{Z:()=>r});const r=n(47313).createContext(null)},20201:(e,t,n)=>{"use strict";n.d(t,{Z:()=>i});var r=n(47313),a=n(15693);function i(){return r.useContext(a.Z)}},84472:(e,t,n)=>{"use strict";n.d(t,{ZP:()=>y,Co:()=>w});var r=n(47313),a=n(87462),i=n(91816),o=/^((children|dangerouslySetInnerHTML|key|ref|autoFocus|defaultValue|defaultChecked|innerHTML|suppressContentEditableWarning|suppressHydrationWarning|valueLink|abbr|accept|acceptCharset|accessKey|action|allow|allowUserMedia|allowPaymentRequest|allowFullScreen|allowTransparency|alt|async|autoComplete|autoPlay|capture|cellPadding|cellSpacing|challenge|charSet|checked|cite|classID|className|cols|colSpan|content|contentEditable|contextMenu|controls|controlsList|coords|crossOrigin|data|dateTime|decoding|default|defer|dir|disabled|disablePictureInPicture|download|draggable|encType|enterKeyHint|form|formAction|formEncType|formMethod|formNoValidate|formTarget|frameBorder|headers|height|hidden|high|href|hrefLang|htmlFor|httpEquiv|id|inputMode|integrity|is|keyParams|keyType|kind|label|lang|list|loading|loop|low|marginHeight|marginWidth|max|maxLength|media|mediaGroup|method|min|minLength|multiple|muted|name|nonce|noValidate|open|optimum|pattern|placeholder|playsInline|poster|preload|profile|radioGroup|readOnly|referrerPolicy|rel|required|reversed|role|rows|rowSpan|sandbox|scope|scoped|scrolling|seamless|selected|shape|size|sizes|slot|span|spellCheck|src|srcDoc|srcLang|srcSet|start|step|style|summary|tabIndex|target|title|translate|type|useMap|value|width|wmode|wrap|about|datatype|inlist|prefix|property|resource|typeof|vocab|autoCapitalize|autoCorrect|autoSave|color|incremental|fallback|inert|itemProp|itemScope|itemType|itemID|itemRef|on|option|results|security|unselectable|accentHeight|accumulate|additive|alignmentBaseline|allowReorder|alphabetic|amplitude|arabicForm|ascent|attributeName|attributeType|autoReverse|azimuth|baseFrequency|baselineShift|baseProfile|bbox|begin|bias|by|calcMode|capHeight|clip|clipPathUnits|clipPath|clipRule|colorInterpolation|colorInterpolationFilters|colorProfile|colorRendering|contentScriptType|contentStyleType|cursor|cx|cy|d|decelerate|descent|diffuseConstant|direction|display|divisor|dominantBaseline|dur|dx|dy|edgeMode|elevation|enableBackground|end|exponent|externalResourcesRequired|fill|fillOpacity|fillRule|filter|filterRes|filterUnits|floodColor|floodOpacity|focusable|fontFamily|fontSize|fontSizeAdjust|fontStretch|fontStyle|fontVariant|fontWeight|format|from|fr|fx|fy|g1|g2|glyphName|glyphOrientationHorizontal|glyphOrientationVertical|glyphRef|gradientTransform|gradientUnits|hanging|horizAdvX|horizOriginX|ideographic|imageRendering|in|in2|intercept|k|k1|k2|k3|k4|kernelMatrix|kernelUnitLength|kerning|keyPoints|keySplines|keyTimes|lengthAdjust|letterSpacing|lightingColor|limitingConeAngle|local|markerEnd|markerMid|markerStart|markerHeight|markerUnits|markerWidth|mask|maskContentUnits|maskUnits|mathematical|mode|numOctaves|offset|opacity|operator|order|orient|orientation|origin|overflow|overlinePosition|overlineThickness|panose1|paintOrder|pathLength|patternContentUnits|patternTransform|patternUnits|pointerEvents|points|pointsAtX|pointsAtY|pointsAtZ|preserveAlpha|preserveAspectRatio|primitiveUnits|r|radius|refX|refY|renderingIntent|repeatCount|repeatDur|requiredExtensions|requiredFeatures|restart|result|rotate|rx|ry|scale|seed|shapeRendering|slope|spacing|specularConstant|specularExponent|speed|spreadMethod|startOffset|stdDeviation|stemh|stemv|stitchTiles|stopColor|stopOpacity|strikethroughPosition|strikethroughThickness|string|stroke|strokeDasharray|strokeDashoffset|strokeLinecap|strokeLinejoin|strokeMiterlimit|strokeOpacity|strokeWidth|surfaceScale|systemLanguage|tableValues|targetX|targetY|textAnchor|textDecoration|textRendering|textLength|to|transform|u1|u2|underlinePosition|underlineThickness|unicode|unicodeBidi|unicodeRange|unitsPerEm|vAlphabetic|vHanging|vIdeographic|vMathematical|values|vectorEffect|version|vertAdvY|vertOriginX|vertOriginY|viewBox|viewTarget|visibility|widths|wordSpacing|writingMode|x|xHeight|x1|x2|xChannelSelector|xlinkActuate|xlinkArcrole|xlinkHref|xlinkRole|xlinkShow|xlinkTitle|xlinkType|xmlBase|xmlns|xmlnsXlink|xmlLang|xmlSpace|y|y1|y2|yChannelSelector|z|zoomAndPan|for|class|autofocus)|(([Dd][Aa][Tt][Aa]|[Aa][Rr][Ii][Aa]|x)-.*))$/;const s=(0,i.Z)((function(e){return o.test(e)||111===e.charCodeAt(0)&&110===e.charCodeAt(1)&&e.charCodeAt(2)<91}));var l=n(51639),c=n(54911),u=n(21086),d=s,p=function(e){return"theme"!==e},h=function(e){return"string"===typeof e&&e.charCodeAt(0)>96?d:p},f=function(e,t,n){var r;if(t){var a=t.shouldForwardProp;r=e.__emotion_forwardProp&&a?function(t){return e.__emotion_forwardProp(t)&&a(t)}:a}return"function"!==typeof r&&n&&(r=e.__emotion_forwardProp),r},m=function(){return null};const g=function e(t,n){var i,o,s=t.__emotion_real===t,d=s&&t.__emotion_base||t;void 0!==n&&(i=n.label,o=n.target);var p=f(t,n,s),g=p||h(d),v=!g("as");return function(){var b=arguments,y=s&&void 0!==t.__emotion_styles?t.__emotion_styles.slice(0):[];if(void 0!==i&&y.push("label:"+i+";"),null==b[0]||void 0===b[0].raw)y.push.apply(y,b);else{0,y.push(b[0][0]);for(var w=b.length,x=1;x{Array.isArray(e.__emotion_styles)&&(e.__emotion_styles=t(e.__emotion_styles))}},54929:(e,t,n)=>{"use strict";n.d(t,{L7:()=>s,P$:()=>l,VO:()=>r,W8:()=>o,k9:()=>i});const r={xs:0,sm:600,md:900,lg:1200,xl:1536},a={keys:["xs","sm","md","lg","xl"],up:e=>`@media (min-width:${r[e]}px)`};function i(e,t,n){const i=e.theme||{};if(Array.isArray(t)){const e=i.breakpoints||a;return t.reduce(((r,a,i)=>(r[e.up(e.keys[i])]=n(t[i]),r)),{})}if("object"===typeof t){const e=i.breakpoints||a;return Object.keys(t).reduce(((a,i)=>{if(-1!==Object.keys(e.values||r).indexOf(i)){a[e.up(i)]=n(t[i],i)}else{const e=i;a[e]=t[e]}return a}),{})}return n(t)}function o(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};var t;const n=null==(t=e.keys)?void 0:t.reduce(((t,n)=>(t[e.up(n)]={},t)),{});return n||{}}function s(e,t){return e.reduce(((e,t)=>{const n=e[t];return(!n||0===Object.keys(n).length)&&delete e[t],e}),t)}function l(e){let{values:t,breakpoints:n,base:r}=e;const a=r||function(e,t){if("object"!==typeof e)return{};const n={},r=Object.keys(t);return Array.isArray(e)?r.forEach(((t,r)=>{r{null!=e[t]&&(n[t]=!0)})),n}(t,n),i=Object.keys(a);if(0===i.length)return t;let o;return i.reduce(((e,n,r)=>(Array.isArray(t)?(e[n]=null!=t[r]?t[r]:t[o],o=r):"object"===typeof t?(e[n]=null!=t[n]?t[n]:t[o],o=n):e[n]=t,e)),{})}},17551:(e,t,n)=>{"use strict";n.d(t,{$n:()=>d,Fq:()=>c,_j:()=>u,mi:()=>l});var r=n(77219);function a(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:1;return Math.min(Math.max(t,e),n)}function i(e){if(e.type)return e;if("#"===e.charAt(0))return i(function(e){e=e.slice(1);const t=new RegExp(`.{1,${e.length>=6?2:1}}`,"g");let n=e.match(t);return n&&1===n[0].length&&(n=n.map((e=>e+e))),n?`rgb${4===n.length?"a":""}(${n.map(((e,t)=>t<3?parseInt(e,16):Math.round(parseInt(e,16)/255*1e3)/1e3)).join(", ")})`:""}(e));const t=e.indexOf("("),n=e.substring(0,t);if(-1===["rgb","rgba","hsl","hsla","color"].indexOf(n))throw new Error((0,r.Z)(9,e));let a,o=e.substring(t+1,e.length-1);if("color"===n){if(o=o.split(" "),a=o.shift(),4===o.length&&"/"===o[3].charAt(0)&&(o[3]=o[3].slice(1)),-1===["srgb","display-p3","a98-rgb","prophoto-rgb","rec-2020"].indexOf(a))throw new Error((0,r.Z)(10,a))}else o=o.split(",");return o=o.map((e=>parseFloat(e))),{type:n,values:o,colorSpace:a}}function o(e){const{type:t,colorSpace:n}=e;let{values:r}=e;return-1!==t.indexOf("rgb")?r=r.map(((e,t)=>t<3?parseInt(e,10):e)):-1!==t.indexOf("hsl")&&(r[1]=`${r[1]}%`,r[2]=`${r[2]}%`),r=-1!==t.indexOf("color")?`${n} ${r.join(" ")}`:`${r.join(", ")}`,`${t}(${r})`}function s(e){let t="hsl"===(e=i(e)).type?i(function(e){e=i(e);const{values:t}=e,n=t[0],r=t[1]/100,a=t[2]/100,s=r*Math.min(a,1-a),l=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:(e+n/30)%12;return a-s*Math.max(Math.min(t-3,9-t,1),-1)};let c="rgb";const u=[Math.round(255*l(0)),Math.round(255*l(8)),Math.round(255*l(4))];return"hsla"===e.type&&(c+="a",u.push(t[3])),o({type:c,values:u})}(e)).values:e.values;return t=t.map((t=>("color"!==e.type&&(t/=255),t<=.03928?t/12.92:((t+.055)/1.055)**2.4))),Number((.2126*t[0]+.7152*t[1]+.0722*t[2]).toFixed(3))}function l(e,t){const n=s(e),r=s(t);return(Math.max(n,r)+.05)/(Math.min(n,r)+.05)}function c(e,t){return e=i(e),t=a(t),"rgb"!==e.type&&"hsl"!==e.type||(e.type+="a"),"color"===e.type?e.values[3]=`/${t}`:e.values[3]=t,o(e)}function u(e,t){if(e=i(e),t=a(t),-1!==e.type.indexOf("hsl"))e.values[2]*=1-t;else if(-1!==e.type.indexOf("rgb")||-1!==e.type.indexOf("color"))for(let n=0;n<3;n+=1)e.values[n]*=1-t;return o(e)}function d(e,t){if(e=i(e),t=a(t),-1!==e.type.indexOf("hsl"))e.values[2]+=(100-e.values[2])*t;else if(-1!==e.type.indexOf("rgb"))for(let n=0;n<3;n+=1)e.values[n]+=(255-e.values[n])*t;else if(-1!==e.type.indexOf("color"))for(let n=0;n<3;n+=1)e.values[n]+=(1-e.values[n])*t;return o(e)}},9456:(e,t,n)=>{"use strict";n.d(t,{Z:()=>p});var r=n(87462),a=n(63366),i=n(13019);const o=["values","unit","step"];function s(e){const{values:t={xs:0,sm:600,md:900,lg:1200,xl:1536},unit:n="px",step:i=5}=e,s=(0,a.Z)(e,o),l=(e=>{const t=Object.keys(e).map((t=>({key:t,val:e[t]})))||[];return t.sort(((e,t)=>e.val-t.val)),t.reduce(((e,t)=>(0,r.Z)({},e,{[t.key]:t.val})),{})})(t),c=Object.keys(l);function u(e){return`@media (min-width:${"number"===typeof t[e]?t[e]:e}${n})`}function d(e){return`@media (max-width:${("number"===typeof t[e]?t[e]:e)-i/100}${n})`}function p(e,r){const a=c.indexOf(r);return`@media (min-width:${"number"===typeof t[e]?t[e]:e}${n}) and (max-width:${(-1!==a&&"number"===typeof t[c[a]]?t[c[a]]:r)-i/100}${n})`}return(0,r.Z)({keys:c,values:l,up:u,down:d,between:p,only:function(e){return c.indexOf(e)+10&&void 0!==arguments[0]?arguments[0]:8;if(e.mui)return e;const t=(0,c.hB)({spacing:e}),n=function(){for(var e=arguments.length,n=new Array(e),r=0;r{const n=t(e);return"number"===typeof n?`${n}px`:n})).join(" ")};return n.mui=!0,n}const d=["breakpoints","palette","spacing","shape"];const p=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};const{breakpoints:t={},palette:n={},spacing:o,shape:c={}}=e,p=(0,a.Z)(e,d),h=s(t),f=u(o);let m=(0,i.Z)({breakpoints:h,direction:"ltr",components:{},palette:(0,r.Z)({mode:"light"},n),spacing:f,shape:(0,r.Z)({},l,c)},p);for(var g=arguments.length,v=new Array(g>1?g-1:0),b=1;b(0,i.Z)(e,t)),m),m}},43103:(e,t,n)=>{"use strict";n.d(t,{Gc:()=>K,G$:()=>H});var r=n(46428),a=n(77330);const i=function(){for(var e=arguments.length,t=new Array(e),n=0;n(t.filterProps.forEach((n=>{e[n]=t})),e)),{}),i=e=>Object.keys(e).reduce(((t,n)=>r[n]?(0,a.Z)(t,r[n](e)):t),{});return i.propTypes={},i.filterProps=t.reduce(((e,t)=>e.concat(t.filterProps)),[]),i};var o=n(86886),s=n(54929);function l(e){return"number"!==typeof e?e:`${e}px solid`}const c=(0,r.Z)({prop:"border",themeKey:"borders",transform:l}),u=(0,r.Z)({prop:"borderTop",themeKey:"borders",transform:l}),d=(0,r.Z)({prop:"borderRight",themeKey:"borders",transform:l}),p=(0,r.Z)({prop:"borderBottom",themeKey:"borders",transform:l}),h=(0,r.Z)({prop:"borderLeft",themeKey:"borders",transform:l}),f=(0,r.Z)({prop:"borderColor",themeKey:"palette"}),m=(0,r.Z)({prop:"borderTopColor",themeKey:"palette"}),g=(0,r.Z)({prop:"borderRightColor",themeKey:"palette"}),v=(0,r.Z)({prop:"borderBottomColor",themeKey:"palette"}),b=(0,r.Z)({prop:"borderLeftColor",themeKey:"palette"}),y=e=>{if(void 0!==e.borderRadius&&null!==e.borderRadius){const t=(0,o.eI)(e.theme,"shape.borderRadius",4,"borderRadius"),n=e=>({borderRadius:(0,o.NA)(t,e)});return(0,s.k9)(e,e.borderRadius,n)}return null};y.propTypes={},y.filterProps=["borderRadius"];const w=i(c,u,d,p,h,f,m,g,v,b,y),x=i((0,r.Z)({prop:"displayPrint",cssProperty:!1,transform:e=>({"@media print":{display:e}})}),(0,r.Z)({prop:"display"}),(0,r.Z)({prop:"overflow"}),(0,r.Z)({prop:"textOverflow"}),(0,r.Z)({prop:"visibility"}),(0,r.Z)({prop:"whiteSpace"})),k=i((0,r.Z)({prop:"flexBasis"}),(0,r.Z)({prop:"flexDirection"}),(0,r.Z)({prop:"flexWrap"}),(0,r.Z)({prop:"justifyContent"}),(0,r.Z)({prop:"alignItems"}),(0,r.Z)({prop:"alignContent"}),(0,r.Z)({prop:"order"}),(0,r.Z)({prop:"flex"}),(0,r.Z)({prop:"flexGrow"}),(0,r.Z)({prop:"flexShrink"}),(0,r.Z)({prop:"alignSelf"}),(0,r.Z)({prop:"justifyItems"}),(0,r.Z)({prop:"justifySelf"})),S=e=>{if(void 0!==e.gap&&null!==e.gap){const t=(0,o.eI)(e.theme,"spacing",8,"gap"),n=e=>({gap:(0,o.NA)(t,e)});return(0,s.k9)(e,e.gap,n)}return null};S.propTypes={},S.filterProps=["gap"];const C=e=>{if(void 0!==e.columnGap&&null!==e.columnGap){const t=(0,o.eI)(e.theme,"spacing",8,"columnGap"),n=e=>({columnGap:(0,o.NA)(t,e)});return(0,s.k9)(e,e.columnGap,n)}return null};C.propTypes={},C.filterProps=["columnGap"];const E=e=>{if(void 0!==e.rowGap&&null!==e.rowGap){const t=(0,o.eI)(e.theme,"spacing",8,"rowGap"),n=e=>({rowGap:(0,o.NA)(t,e)});return(0,s.k9)(e,e.rowGap,n)}return null};E.propTypes={},E.filterProps=["rowGap"];const P=i(S,C,E,(0,r.Z)({prop:"gridColumn"}),(0,r.Z)({prop:"gridRow"}),(0,r.Z)({prop:"gridAutoFlow"}),(0,r.Z)({prop:"gridAutoColumns"}),(0,r.Z)({prop:"gridAutoRows"}),(0,r.Z)({prop:"gridTemplateColumns"}),(0,r.Z)({prop:"gridTemplateRows"}),(0,r.Z)({prop:"gridTemplateAreas"}),(0,r.Z)({prop:"gridArea"})),I=i((0,r.Z)({prop:"position"}),(0,r.Z)({prop:"zIndex",themeKey:"zIndex"}),(0,r.Z)({prop:"top"}),(0,r.Z)({prop:"right"}),(0,r.Z)({prop:"bottom"}),(0,r.Z)({prop:"left"})),A=i((0,r.Z)({prop:"color",themeKey:"palette"}),(0,r.Z)({prop:"bgcolor",cssProperty:"backgroundColor",themeKey:"palette"}),(0,r.Z)({prop:"backgroundColor",themeKey:"palette"})),T=(0,r.Z)({prop:"boxShadow",themeKey:"shadows"});function Z(e){return e<=1&&0!==e?100*e+"%":e}const R=(0,r.Z)({prop:"width",transform:Z}),L=e=>{if(void 0!==e.maxWidth&&null!==e.maxWidth){const t=t=>{var n,r,a;return{maxWidth:(null==(n=e.theme)||null==(r=n.breakpoints)||null==(a=r.values)?void 0:a[t])||s.VO[t]||Z(t)}};return(0,s.k9)(e,e.maxWidth,t)}return null};L.filterProps=["maxWidth"];const _=(0,r.Z)({prop:"minWidth",transform:Z}),j=(0,r.Z)({prop:"height",transform:Z}),M=(0,r.Z)({prop:"maxHeight",transform:Z}),z=(0,r.Z)({prop:"minHeight",transform:Z}),F=((0,r.Z)({prop:"size",cssProperty:"width",transform:Z}),(0,r.Z)({prop:"size",cssProperty:"height",transform:Z}),i(R,L,_,j,M,z,(0,r.Z)({prop:"boxSizing"}))),D=(0,r.Z)({prop:"fontFamily",themeKey:"typography"}),N=(0,r.Z)({prop:"fontSize",themeKey:"typography"}),O=(0,r.Z)({prop:"fontStyle",themeKey:"typography"}),B=(0,r.Z)({prop:"fontWeight",themeKey:"typography"}),U=(0,r.Z)({prop:"letterSpacing"}),$=(0,r.Z)({prop:"textTransform"}),V=(0,r.Z)({prop:"lineHeight"}),G=(0,r.Z)({prop:"textAlign"}),W=i((0,r.Z)({prop:"typography",cssProperty:!1,themeKey:"typography"}),D,N,O,B,U,V,G,$),q={borders:w.filterProps,display:x.filterProps,flexbox:k.filterProps,grid:P.filterProps,positions:I.filterProps,palette:A.filterProps,shadows:T.filterProps,sizing:F.filterProps,spacing:o.ZP.filterProps,typography:W.filterProps},H={borders:w,display:x,flexbox:k,grid:P,positions:I,palette:A,shadows:T,sizing:F,spacing:o.ZP,typography:W},K=Object.keys(q).reduce(((e,t)=>(q[t].forEach((n=>{e[n]=H[t]})),e)),{})},77330:(e,t,n)=>{"use strict";n.d(t,{Z:()=>a});var r=n(13019);const a=function(e,t){return t?(0,r.Z)(e,t,{clone:!1}):e}},86886:(e,t,n)=>{"use strict";n.d(t,{hB:()=>f,eI:()=>h,ZP:()=>x,NA:()=>m});var r=n(54929),a=n(46428),i=n(77330);const o={m:"margin",p:"padding"},s={t:"Top",r:"Right",b:"Bottom",l:"Left",x:["Left","Right"],y:["Top","Bottom"]},l={marginX:"mx",marginY:"my",paddingX:"px",paddingY:"py"},c=function(e){const t={};return n=>(void 0===t[n]&&(t[n]=e(n)),t[n])}((e=>{if(e.length>2){if(!l[e])return[e];e=l[e]}const[t,n]=e.split(""),r=o[t],a=s[n]||"";return Array.isArray(a)?a.map((e=>r+e)):[r+a]})),u=["m","mt","mr","mb","ml","mx","my","margin","marginTop","marginRight","marginBottom","marginLeft","marginX","marginY","marginInline","marginInlineStart","marginInlineEnd","marginBlock","marginBlockStart","marginBlockEnd"],d=["p","pt","pr","pb","pl","px","py","padding","paddingTop","paddingRight","paddingBottom","paddingLeft","paddingX","paddingY","paddingInline","paddingInlineStart","paddingInlineEnd","paddingBlock","paddingBlockStart","paddingBlockEnd"],p=[...u,...d];function h(e,t,n,r){var i;const o=null!=(i=(0,a.D)(e,t,!1))?i:n;return"number"===typeof o?e=>"string"===typeof e?e:o*e:Array.isArray(o)?e=>"string"===typeof e?e:o[e]:"function"===typeof o?o:()=>{}}function f(e){return h(e,"spacing",8)}function m(e,t){if("string"===typeof t||null==t)return t;const n=e(Math.abs(t));return t>=0?n:"number"===typeof n?-n:`-${n}`}function g(e,t,n,a){if(-1===t.indexOf(n))return null;const i=function(e,t){return n=>e.reduce(((e,r)=>(e[r]=m(t,n),e)),{})}(c(n),a),o=e[n];return(0,r.k9)(e,o,i)}function v(e,t){const n=f(e.theme);return Object.keys(e).map((r=>g(e,t,r,n))).reduce(i.Z,{})}function b(e){return v(e,u)}function y(e){return v(e,d)}function w(e){return v(e,p)}b.propTypes={},b.filterProps=u,y.propTypes={},y.filterProps=d,w.propTypes={},w.filterProps=p;const x=w},46428:(e,t,n)=>{"use strict";n.d(t,{D:()=>i,Z:()=>s});var r=n(50114),a=n(54929);function i(e,t){let n=!(arguments.length>2&&void 0!==arguments[2])||arguments[2];if(!t||"string"!==typeof t)return null;if(e&&e.vars&&n){const n=`vars.${t}`.split(".").reduce(((e,t)=>e&&e[t]?e[t]:null),e);if(null!=n)return n}return t.split(".").reduce(((e,t)=>e&&null!=e[t]?e[t]:null),e)}function o(e,t,n){let r,a=arguments.length>3&&void 0!==arguments[3]?arguments[3]:n;return r="function"===typeof e?e(n):Array.isArray(e)?e[n]||a:i(e,n)||a,t&&(r=t(r)),r}const s=function(e){const{prop:t,cssProperty:n=e.prop,themeKey:s,transform:l}=e,c=e=>{if(null==e[t])return null;const c=e[t],u=i(e.theme,s)||{};return(0,a.k9)(e,c,(e=>{let a=o(u,l,e);return e===a&&"string"===typeof e&&(a=o(u,l,`${t}${"default"===e?"":(0,r.Z)(e)}`,e)),!1===n?a:{[n]:a}}))};return c.propTypes={},c.filterProps=[t],c}},39028:(e,t,n)=>{"use strict";n.d(t,{Z:()=>l});var r=n(87462),a=n(63366),i=n(13019),o=n(43103);const s=["sx"];function l(e){const{sx:t}=e,n=(0,a.Z)(e,s),{systemProps:l,otherProps:c}=(e=>{const t={systemProps:{},otherProps:{}};return Object.keys(e).forEach((n=>{o.Gc[n]?t.systemProps[n]=e[n]:t.otherProps[n]=e[n]})),t})(n);let u;return u=Array.isArray(t)?[l,...t]:"function"===typeof t?function(){const e=t(...arguments);return(0,i.P)(e)?(0,r.Z)({},l,e):l}:(0,r.Z)({},l,t),(0,r.Z)({},c,{sx:u})}},63649:(e,t,n)=>{"use strict";n.d(t,{Z:()=>c});var r=n(77330),a=n(43103),i=n(54929);function o(){for(var e=arguments.length,t=new Array(e),n=0;ne.concat(Object.keys(t))),[]),a=new Set(r);return t.every((e=>a.size===Object.keys(e).length))}function s(e,t){return"function"===typeof e?e(t):e}const l=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:a.G$;const t=Object.keys(e).reduce(((t,n)=>(e[n].filterProps.forEach((r=>{t[r]=e[n]})),t)),{});function n(e,n,r){const a={[e]:n,theme:r},i=t[e];return i?i(a):{[e]:n}}function l(e){const{sx:a,theme:c={}}=e||{};if(!a)return null;function u(e){let a=e;if("function"===typeof e)a=e(c);else if("object"!==typeof e)return e;if(!a)return null;const u=(0,i.W8)(c.breakpoints),d=Object.keys(u);let p=u;return Object.keys(a).forEach((e=>{const u=s(a[e],c);if(null!==u&&void 0!==u)if("object"===typeof u)if(t[e])p=(0,r.Z)(p,n(e,u,c));else{const t=(0,i.k9)({theme:c},u,(t=>({[e]:t})));o(t,u)?p[e]=l({sx:u,theme:c}):p=(0,r.Z)(p,t)}else p=(0,r.Z)(p,n(e,u,c))})),(0,i.L7)(d,p)}return Array.isArray(a)?a.map(u):u(a)}return l}();l.filterProps=["sx"];const c=l},86728:(e,t,n)=>{"use strict";n.d(t,{Z:()=>o});var r=n(9456),a=n(14976);const i=(0,r.Z)();const o=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:i;return(0,a.Z)(e)}},14976:(e,t,n)=>{"use strict";n.d(t,{Z:()=>i});var r=n(20201);function a(e){return 0===Object.keys(e).length}const i=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null;const t=(0,r.Z)();return!t||a(t)?e:t}},41271:(e,t,n)=>{"use strict";n.d(t,{Z:()=>a});const r=e=>e,a=(()=>{let e=r;return{configure(t){e=t},generate:t=>e(t),reset(){e=r}}})()},50114:(e,t,n)=>{"use strict";n.d(t,{Z:()=>a});var r=n(77219);function a(e){if("string"!==typeof e)throw new Error((0,r.Z)(7));return e.charAt(0).toUpperCase()+e.slice(1)}},21921:(e,t,n)=>{"use strict";function r(e,t,n){const r={};return Object.keys(e).forEach((a=>{r[a]=e[a].reduce(((e,r)=>(r&&(e.push(t(r)),n&&n[r]&&e.push(n[r])),e)),[]).join(" ")})),r}n.d(t,{Z:()=>r})},13019:(e,t,n)=>{"use strict";n.d(t,{P:()=>a,Z:()=>i});var r=n(87462);function a(e){return null!==e&&"object"===typeof e&&e.constructor===Object}function i(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{clone:!0};const o=n.clone?(0,r.Z)({},e):e;return a(e)&&a(t)&&Object.keys(t).forEach((r=>{"__proto__"!==r&&(a(t[r])&&r in e&&a(e[r])?o[r]=i(e[r],t[r],n):o[r]=t[r])})),o}},77219:(e,t,n)=>{"use strict";function r(e){let t="https://mui.com/production-error/?code="+e;for(let n=1;nr})},32298:(e,t,n)=>{"use strict";n.d(t,{Z:()=>i});var r=n(41271);const a={active:"active",checked:"checked",completed:"completed",disabled:"disabled",error:"error",expanded:"expanded",focused:"focused",focusVisible:"focusVisible",required:"required",selected:"selected"};function i(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"Mui";const i=a[t];return i?`${n}-${i}`:`${r.Z.generate(e)}-${t}`}},77430:(e,t,n)=>{"use strict";n.d(t,{Z:()=>a});var r=n(32298);function a(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"Mui";const a={};return t.forEach((t=>{a[t]=(0,r.Z)(e,t,n)})),a}},49081:(e,t,n)=>{"use strict";function r(e){return e&&e.ownerDocument||document}n.d(t,{Z:()=>r})},93282:(e,t,n)=>{"use strict";n.d(t,{Z:()=>a});var r=n(49081);function a(e){return(0,r.Z)(e).defaultView||window}},29023:(e,t,n)=>{"use strict";n.d(t,{Z:()=>a});var r=n(87462);function a(e,t){const n=(0,r.Z)({},t);return Object.keys(e).forEach((t=>{void 0===n[t]&&(n[t]=e[t])})),n}},89265:(e,t,n)=>{"use strict";function r(e,t){"function"===typeof e?e(t):e&&(e.current=t)}n.d(t,{Z:()=>r})},2678:(e,t,n)=>{"use strict";n.d(t,{Z:()=>a});var r=n(47313);const a="undefined"!==typeof window?r.useLayoutEffect:r.useEffect},42780:(e,t,n)=>{"use strict";n.d(t,{Z:()=>i});var r=n(47313),a=n(2678);function i(e){const t=r.useRef(e);return(0,a.Z)((()=>{t.current=e})),r.useCallback((function(){return(0,t.current)(...arguments)}),[])}},47472:(e,t,n)=>{"use strict";n.d(t,{Z:()=>i});var r=n(47313),a=n(89265);function i(e,t){return r.useMemo((()=>null==e&&null==t?null:n=>{(0,a.Z)(e,n),(0,a.Z)(t,n)}),[e,t])}},83061:(e,t,n)=>{"use strict";function r(e){var t,n,a="";if("string"==typeof e||"number"==typeof e)a+=e;else if("object"==typeof e)if(Array.isArray(e))for(t=0;ta});const a=function(){for(var e,t,n=0,a="";n{"use strict";function r(e){var t=new Date(Date.UTC(e.getFullYear(),e.getMonth(),e.getDate(),e.getHours(),e.getMinutes(),e.getSeconds(),e.getMilliseconds()));return t.setUTCFullYear(e.getFullYear()),e.getTime()-t.getTime()}n.d(t,{Z:()=>r})},34800:(e,t,n)=>{"use strict";function r(e,t){if(t.length1?"s":"")+" required, but only "+t.length+" present")}n.d(t,{Z:()=>r})},6021:(e,t,n)=>{"use strict";n.d(t,{Z:()=>i});var r=n(93601),a=n(34800);function i(e){(0,a.Z)(1,arguments);var t=(0,r.Z)(e);return t.setHours(0,0,0,0),t}},93601:(e,t,n)=>{"use strict";n.d(t,{Z:()=>a});var r=n(34800);function a(e){(0,r.Z)(1,arguments);var t=Object.prototype.toString.call(e);return e instanceof Date||"object"===typeof e&&"[object Date]"===t?new Date(e.getTime()):"number"===typeof e||"[object Number]"===t?new Date(e):("string"!==typeof e&&"[object String]"!==t||"undefined"===typeof console||(console.warn("Starting with v2.0.0-beta.1 date-fns doesn't accept strings as date arguments. Please use `parseISO` to parse strings. See: https://github.com/date-fns/date-fns/blob/master/docs/upgradeGuide.md#string-arguments"),console.warn((new Error).stack)),new Date(NaN))}},67861:(e,t,n)=>{"use strict";var r=n(89456),a={childContextTypes:!0,contextType:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,getDerivedStateFromError:!0,getDerivedStateFromProps:!0,mixins:!0,propTypes:!0,type:!0},i={name:!0,length:!0,prototype:!0,caller:!0,callee:!0,arguments:!0,arity:!0},o={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},s={};function l(e){return r.isMemo(e)?o:s[e.$$typeof]||a}s[r.ForwardRef]={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},s[r.Memo]=o;var c=Object.defineProperty,u=Object.getOwnPropertyNames,d=Object.getOwnPropertySymbols,p=Object.getOwnPropertyDescriptor,h=Object.getPrototypeOf,f=Object.prototype;e.exports=function e(t,n,r){if("string"!==typeof n){if(f){var a=h(n);a&&a!==f&&e(t,a,r)}var o=u(n);d&&(o=o.concat(d(n)));for(var s=l(t),m=l(n),g=0;g{"use strict";var n="function"===typeof Symbol&&Symbol.for,r=n?Symbol.for("react.element"):60103,a=n?Symbol.for("react.portal"):60106,i=n?Symbol.for("react.fragment"):60107,o=n?Symbol.for("react.strict_mode"):60108,s=n?Symbol.for("react.profiler"):60114,l=n?Symbol.for("react.provider"):60109,c=n?Symbol.for("react.context"):60110,u=n?Symbol.for("react.async_mode"):60111,d=n?Symbol.for("react.concurrent_mode"):60111,p=n?Symbol.for("react.forward_ref"):60112,h=n?Symbol.for("react.suspense"):60113,f=n?Symbol.for("react.suspense_list"):60120,m=n?Symbol.for("react.memo"):60115,g=n?Symbol.for("react.lazy"):60116,v=n?Symbol.for("react.block"):60121,b=n?Symbol.for("react.fundamental"):60117,y=n?Symbol.for("react.responder"):60118,w=n?Symbol.for("react.scope"):60119;function x(e){if("object"===typeof e&&null!==e){var t=e.$$typeof;switch(t){case r:switch(e=e.type){case u:case d:case i:case s:case o:case h:return e;default:switch(e=e&&e.$$typeof){case c:case p:case g:case m:case l:return e;default:return t}}case a:return t}}}function k(e){return x(e)===d}t.AsyncMode=u,t.ConcurrentMode=d,t.ContextConsumer=c,t.ContextProvider=l,t.Element=r,t.ForwardRef=p,t.Fragment=i,t.Lazy=g,t.Memo=m,t.Portal=a,t.Profiler=s,t.StrictMode=o,t.Suspense=h,t.isAsyncMode=function(e){return k(e)||x(e)===u},t.isConcurrentMode=k,t.isContextConsumer=function(e){return x(e)===c},t.isContextProvider=function(e){return x(e)===l},t.isElement=function(e){return"object"===typeof e&&null!==e&&e.$$typeof===r},t.isForwardRef=function(e){return x(e)===p},t.isFragment=function(e){return x(e)===i},t.isLazy=function(e){return x(e)===g},t.isMemo=function(e){return x(e)===m},t.isPortal=function(e){return x(e)===a},t.isProfiler=function(e){return x(e)===s},t.isStrictMode=function(e){return x(e)===o},t.isSuspense=function(e){return x(e)===h},t.isValidElementType=function(e){return"string"===typeof e||"function"===typeof e||e===i||e===d||e===s||e===o||e===h||e===f||"object"===typeof e&&null!==e&&(e.$$typeof===g||e.$$typeof===m||e.$$typeof===l||e.$$typeof===c||e.$$typeof===p||e.$$typeof===b||e.$$typeof===y||e.$$typeof===w||e.$$typeof===v)},t.typeOf=x},89456:(e,t,n)=>{"use strict";e.exports=n(20229)},80936:(e,t,n)=>{var r=/^\s+|\s+$/g,a=/^[-+]0x[0-9a-f]+$/i,i=/^0b[01]+$/i,o=/^0o[0-7]+$/i,s=parseInt,l="object"==typeof n.g&&n.g&&n.g.Object===Object&&n.g,c="object"==typeof self&&self&&self.Object===Object&&self,u=l||c||Function("return this")(),d=Object.prototype.toString,p=Math.max,h=Math.min,f=function(){return u.Date.now()};function m(e){var t=typeof e;return!!e&&("object"==t||"function"==t)}function g(e){if("number"==typeof e)return e;if(function(e){return"symbol"==typeof e||function(e){return!!e&&"object"==typeof e}(e)&&"[object Symbol]"==d.call(e)}(e))return NaN;if(m(e)){var t="function"==typeof e.valueOf?e.valueOf():e;e=m(t)?t+"":t}if("string"!=typeof e)return 0===e?e:+e;e=e.replace(r,"");var n=i.test(e);return n||o.test(e)?s(e.slice(2),n?2:8):a.test(e)?NaN:+e}e.exports=function(e,t,n){var r,a,i,o,s,l,c=0,u=!1,d=!1,v=!0;if("function"!=typeof e)throw new TypeError("Expected a function");function b(t){var n=r,i=a;return r=a=void 0,c=t,o=e.apply(i,n)}function y(e){return c=e,s=setTimeout(x,t),u?b(e):o}function w(e){var n=e-l;return void 0===l||n>=t||n<0||d&&e-c>=i}function x(){var e=f();if(w(e))return k(e);s=setTimeout(x,function(e){var n=t-(e-l);return d?h(n,i-(e-c)):n}(e))}function k(e){return s=void 0,v&&r?b(e):(r=a=void 0,o)}function S(){var e=f(),n=w(e);if(r=arguments,a=this,l=e,n){if(void 0===s)return y(l);if(d)return s=setTimeout(x,t),b(l)}return void 0===s&&(s=setTimeout(x,t)),o}return t=g(t)||0,m(n)&&(u=!!n.leading,i=(d="maxWait"in n)?p(g(n.maxWait)||0,t):i,v="trailing"in n?!!n.trailing:v),S.cancel=function(){void 0!==s&&clearTimeout(s),c=0,r=l=a=s=void 0},S.flush=function(){return void 0===s?o:k(f())},S}},20107:function(e,t){var n,r,a;r=[],void 0===(a="function"===typeof(n=function(){"use strict";var e=Object.prototype.hasOwnProperty,t=Object.prototype.toString,n="boolean"===typeof(new RegExp).sticky;function r(e){return e&&"[object RegExp]"===t.call(e)}function a(e){return e&&"object"===typeof e&&!r(e)&&!Array.isArray(e)}function i(e){return e.replace(/[-\/\\^$*+?.()|[\]{}]/g,"\\$&")}function o(e){return new RegExp("|"+e).exec("").length-1}function s(e){return"("+e+")"}function l(e){return e.length?"(?:"+e.map((function(e){return"(?:"+e+")"})).join("|")+")":"(?!)"}function c(e){if("string"===typeof e)return"(?:"+i(e)+")";if(r(e)){if(e.ignoreCase)throw new Error("RegExp /i flag not allowed");if(e.global)throw new Error("RegExp /g flag is implied");if(e.sticky)throw new Error("RegExp /y flag is implied");if(e.multiline)throw new Error("RegExp /m flag is implied");return e.source}throw new Error("Not a pattern: "+e)}function u(e,t){return e.length>t?e:Array(t-e.length+1).join(" ")+e}function d(e,t){for(var n=e.length,r=0;;){var a=e.lastIndexOf("\n",n-1);if(-1===a)break;if(n=a,++r===t)break;if(0===n)break}var i=r0)throw new Error("RegExp has capture groups: "+x+"\nUse (?: \u2026 ) instead");if(!m.lineBreaks&&x.test("\n"))throw new Error("Rule should declare lineBreaks: "+x);h.push(s(w))}}var k=a&&a.fallback,S=n&&!k?"ym":"gm",C=n||k?"":"|";return!0===d&&(S+="u"),{regexp:new RegExp(l(h)+C,S),groups:p,fast:i,error:a||g}}function b(e){var t=v(m(e));return new k({start:t},"start")}function y(e,t,n){var r=e&&(e.push||e.next);if(r&&!n[r])throw new Error("Missing state '"+r+"' (in token '"+e.defaultType+"' of state '"+t+"')");if(e&&e.pop&&1!==+e.pop)throw new Error("pop must be 1 (in token '"+e.defaultType+"' of state '"+t+"')")}function w(e,t){var n=e.$all?m(e.$all):[];delete e.$all;var r=Object.getOwnPropertyNames(e);t||(t=r[0]);for(var a=Object.create(null),i=0;i{"use strict";var r=n(47313),a=n(62224);function i(e){for(var t="https://reactjs.org/docs/error-decoder.html?invariant="+e,n=1;nt}return!1}(t,n,a,r)&&(n=null),r||null===a?function(e){return!!d.call(f,e)||!d.call(h,e)&&(p.test(e)?f[e]=!0:(h[e]=!0,!1))}(t)&&(null===n?e.removeAttribute(t):e.setAttribute(t,""+n)):a.mustUseProperty?e[a.propertyName]=null===n?3!==a.type&&"":n:(t=a.attributeName,r=a.attributeNamespace,null===n?e.removeAttribute(t):(n=3===(a=a.type)||4===a&&!0===n?"":""+n,r?e.setAttributeNS(r,t,n):e.setAttribute(t,n))))}"accent-height alignment-baseline arabic-form baseline-shift cap-height clip-path clip-rule color-interpolation color-interpolation-filters color-profile color-rendering dominant-baseline enable-background fill-opacity fill-rule flood-color flood-opacity font-family font-size font-size-adjust font-stretch font-style font-variant font-weight glyph-name glyph-orientation-horizontal glyph-orientation-vertical horiz-adv-x horiz-origin-x image-rendering letter-spacing lighting-color marker-end marker-mid marker-start overline-position overline-thickness paint-order panose-1 pointer-events rendering-intent shape-rendering stop-color stop-opacity strikethrough-position strikethrough-thickness stroke-dasharray stroke-dashoffset stroke-linecap stroke-linejoin stroke-miterlimit stroke-opacity stroke-width text-anchor text-decoration text-rendering underline-position underline-thickness unicode-bidi unicode-range units-per-em v-alphabetic v-hanging v-ideographic v-mathematical vector-effect vert-adv-y vert-origin-x vert-origin-y word-spacing writing-mode xmlns:xlink x-height".split(" ").forEach((function(e){var t=e.replace(v,b);g[t]=new m(t,1,!1,e,null,!1,!1)})),"xlink:actuate xlink:arcrole xlink:role xlink:show xlink:title xlink:type".split(" ").forEach((function(e){var t=e.replace(v,b);g[t]=new m(t,1,!1,e,"http://www.w3.org/1999/xlink",!1,!1)})),["xml:base","xml:lang","xml:space"].forEach((function(e){var t=e.replace(v,b);g[t]=new m(t,1,!1,e,"http://www.w3.org/XML/1998/namespace",!1,!1)})),["tabIndex","crossOrigin"].forEach((function(e){g[e]=new m(e,1,!1,e.toLowerCase(),null,!1,!1)})),g.xlinkHref=new m("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1),["src","href","action","formAction"].forEach((function(e){g[e]=new m(e,1,!1,e.toLowerCase(),null,!0,!0)}));var w=r.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED,x=Symbol.for("react.element"),k=Symbol.for("react.portal"),S=Symbol.for("react.fragment"),C=Symbol.for("react.strict_mode"),E=Symbol.for("react.profiler"),P=Symbol.for("react.provider"),I=Symbol.for("react.context"),A=Symbol.for("react.forward_ref"),T=Symbol.for("react.suspense"),Z=Symbol.for("react.suspense_list"),R=Symbol.for("react.memo"),L=Symbol.for("react.lazy");Symbol.for("react.scope"),Symbol.for("react.debug_trace_mode");var _=Symbol.for("react.offscreen");Symbol.for("react.legacy_hidden"),Symbol.for("react.cache"),Symbol.for("react.tracing_marker");var j=Symbol.iterator;function M(e){return null===e||"object"!==typeof e?null:"function"===typeof(e=j&&e[j]||e["@@iterator"])?e:null}var z,F=Object.assign;function D(e){if(void 0===z)try{throw Error()}catch(n){var t=n.stack.trim().match(/\n( *(at )?)/);z=t&&t[1]||""}return"\n"+z+e}var N=!1;function O(e,t){if(!e||N)return"";N=!0;var n=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{if(t)if(t=function(){throw Error()},Object.defineProperty(t.prototype,"props",{set:function(){throw Error()}}),"object"===typeof Reflect&&Reflect.construct){try{Reflect.construct(t,[])}catch(c){var r=c}Reflect.construct(e,[],t)}else{try{t.call()}catch(c){r=c}e.call(t.prototype)}else{try{throw Error()}catch(c){r=c}e()}}catch(c){if(c&&r&&"string"===typeof c.stack){for(var a=c.stack.split("\n"),i=r.stack.split("\n"),o=a.length-1,s=i.length-1;1<=o&&0<=s&&a[o]!==i[s];)s--;for(;1<=o&&0<=s;o--,s--)if(a[o]!==i[s]){if(1!==o||1!==s)do{if(o--,0>--s||a[o]!==i[s]){var l="\n"+a[o].replace(" at new "," at ");return e.displayName&&l.includes("")&&(l=l.replace("",e.displayName)),l}}while(1<=o&&0<=s);break}}}finally{N=!1,Error.prepareStackTrace=n}return(e=e?e.displayName||e.name:"")?D(e):""}function B(e){switch(e.tag){case 5:return D(e.type);case 16:return D("Lazy");case 13:return D("Suspense");case 19:return D("SuspenseList");case 0:case 2:case 15:return e=O(e.type,!1);case 11:return e=O(e.type.render,!1);case 1:return e=O(e.type,!0);default:return""}}function U(e){if(null==e)return null;if("function"===typeof e)return e.displayName||e.name||null;if("string"===typeof e)return e;switch(e){case S:return"Fragment";case k:return"Portal";case E:return"Profiler";case C:return"StrictMode";case T:return"Suspense";case Z:return"SuspenseList"}if("object"===typeof e)switch(e.$$typeof){case I:return(e.displayName||"Context")+".Consumer";case P:return(e._context.displayName||"Context")+".Provider";case A:var t=e.render;return(e=e.displayName)||(e=""!==(e=t.displayName||t.name||"")?"ForwardRef("+e+")":"ForwardRef"),e;case R:return null!==(t=e.displayName||null)?t:U(e.type)||"Memo";case L:t=e._payload,e=e._init;try{return U(e(t))}catch(n){}}return null}function $(e){var t=e.type;switch(e.tag){case 24:return"Cache";case 9:return(t.displayName||"Context")+".Consumer";case 10:return(t._context.displayName||"Context")+".Provider";case 18:return"DehydratedFragment";case 11:return e=(e=t.render).displayName||e.name||"",t.displayName||(""!==e?"ForwardRef("+e+")":"ForwardRef");case 7:return"Fragment";case 5:return t;case 4:return"Portal";case 3:return"Root";case 6:return"Text";case 16:return U(t);case 8:return t===C?"StrictMode":"Mode";case 22:return"Offscreen";case 12:return"Profiler";case 21:return"Scope";case 13:return"Suspense";case 19:return"SuspenseList";case 25:return"TracingMarker";case 1:case 0:case 17:case 2:case 14:case 15:if("function"===typeof t)return t.displayName||t.name||null;if("string"===typeof t)return t}return null}function V(e){switch(typeof e){case"boolean":case"number":case"string":case"undefined":case"object":return e;default:return""}}function G(e){var t=e.type;return(e=e.nodeName)&&"input"===e.toLowerCase()&&("checkbox"===t||"radio"===t)}function W(e){e._valueTracker||(e._valueTracker=function(e){var t=G(e)?"checked":"value",n=Object.getOwnPropertyDescriptor(e.constructor.prototype,t),r=""+e[t];if(!e.hasOwnProperty(t)&&"undefined"!==typeof n&&"function"===typeof n.get&&"function"===typeof n.set){var a=n.get,i=n.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return a.call(this)},set:function(e){r=""+e,i.call(this,e)}}),Object.defineProperty(e,t,{enumerable:n.enumerable}),{getValue:function(){return r},setValue:function(e){r=""+e},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}(e))}function q(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var n=t.getValue(),r="";return e&&(r=G(e)?e.checked?"true":"false":e.value),(e=r)!==n&&(t.setValue(e),!0)}function H(e){if("undefined"===typeof(e=e||("undefined"!==typeof document?document:void 0)))return null;try{return e.activeElement||e.body}catch(t){return e.body}}function K(e,t){var n=t.checked;return F({},t,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:null!=n?n:e._wrapperState.initialChecked})}function Y(e,t){var n=null==t.defaultValue?"":t.defaultValue,r=null!=t.checked?t.checked:t.defaultChecked;n=V(null!=t.value?t.value:n),e._wrapperState={initialChecked:r,initialValue:n,controlled:"checkbox"===t.type||"radio"===t.type?null!=t.checked:null!=t.value}}function Q(e,t){null!=(t=t.checked)&&y(e,"checked",t,!1)}function X(e,t){Q(e,t);var n=V(t.value),r=t.type;if(null!=n)"number"===r?(0===n&&""===e.value||e.value!=n)&&(e.value=""+n):e.value!==""+n&&(e.value=""+n);else if("submit"===r||"reset"===r)return void e.removeAttribute("value");t.hasOwnProperty("value")?ee(e,t.type,n):t.hasOwnProperty("defaultValue")&&ee(e,t.type,V(t.defaultValue)),null==t.checked&&null!=t.defaultChecked&&(e.defaultChecked=!!t.defaultChecked)}function J(e,t,n){if(t.hasOwnProperty("value")||t.hasOwnProperty("defaultValue")){var r=t.type;if(!("submit"!==r&&"reset"!==r||void 0!==t.value&&null!==t.value))return;t=""+e._wrapperState.initialValue,n||t===e.value||(e.value=t),e.defaultValue=t}""!==(n=e.name)&&(e.name=""),e.defaultChecked=!!e._wrapperState.initialChecked,""!==n&&(e.name=n)}function ee(e,t,n){"number"===t&&H(e.ownerDocument)===e||(null==n?e.defaultValue=""+e._wrapperState.initialValue:e.defaultValue!==""+n&&(e.defaultValue=""+n))}var te=Array.isArray;function ne(e,t,n,r){if(e=e.options,t){t={};for(var a=0;a"+t.valueOf().toString()+"",t=ce.firstChild;e.firstChild;)e.removeChild(e.firstChild);for(;t.firstChild;)e.appendChild(t.firstChild)}},"undefined"!==typeof MSApp&&MSApp.execUnsafeLocalFunction?function(e,t,n,r){MSApp.execUnsafeLocalFunction((function(){return ue(e,t)}))}:ue);function pe(e,t){if(t){var n=e.firstChild;if(n&&n===e.lastChild&&3===n.nodeType)return void(n.nodeValue=t)}e.textContent=t}var he={animationIterationCount:!0,aspectRatio:!0,borderImageOutset:!0,borderImageSlice:!0,borderImageWidth:!0,boxFlex:!0,boxFlexGroup:!0,boxOrdinalGroup:!0,columnCount:!0,columns:!0,flex:!0,flexGrow:!0,flexPositive:!0,flexShrink:!0,flexNegative:!0,flexOrder:!0,gridArea:!0,gridRow:!0,gridRowEnd:!0,gridRowSpan:!0,gridRowStart:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnSpan:!0,gridColumnStart:!0,fontWeight:!0,lineClamp:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,tabSize:!0,widows:!0,zIndex:!0,zoom:!0,fillOpacity:!0,floodOpacity:!0,stopOpacity:!0,strokeDasharray:!0,strokeDashoffset:!0,strokeMiterlimit:!0,strokeOpacity:!0,strokeWidth:!0},fe=["Webkit","ms","Moz","O"];function me(e,t,n){return null==t||"boolean"===typeof t||""===t?"":n||"number"!==typeof t||0===t||he.hasOwnProperty(e)&&he[e]?(""+t).trim():t+"px"}function ge(e,t){for(var n in e=e.style,t)if(t.hasOwnProperty(n)){var r=0===n.indexOf("--"),a=me(n,t[n],r);"float"===n&&(n="cssFloat"),r?e.setProperty(n,a):e[n]=a}}Object.keys(he).forEach((function(e){fe.forEach((function(t){t=t+e.charAt(0).toUpperCase()+e.substring(1),he[t]=he[e]}))}));var ve=F({menuitem:!0},{area:!0,base:!0,br:!0,col:!0,embed:!0,hr:!0,img:!0,input:!0,keygen:!0,link:!0,meta:!0,param:!0,source:!0,track:!0,wbr:!0});function be(e,t){if(t){if(ve[e]&&(null!=t.children||null!=t.dangerouslySetInnerHTML))throw Error(i(137,e));if(null!=t.dangerouslySetInnerHTML){if(null!=t.children)throw Error(i(60));if("object"!==typeof t.dangerouslySetInnerHTML||!("__html"in t.dangerouslySetInnerHTML))throw Error(i(61))}if(null!=t.style&&"object"!==typeof t.style)throw Error(i(62))}}function ye(e,t){if(-1===e.indexOf("-"))return"string"===typeof t.is;switch(e){case"annotation-xml":case"color-profile":case"font-face":case"font-face-src":case"font-face-uri":case"font-face-format":case"font-face-name":case"missing-glyph":return!1;default:return!0}}var we=null;function xe(e){return(e=e.target||e.srcElement||window).correspondingUseElement&&(e=e.correspondingUseElement),3===e.nodeType?e.parentNode:e}var ke=null,Se=null,Ce=null;function Ee(e){if(e=ya(e)){if("function"!==typeof ke)throw Error(i(280));var t=e.stateNode;t&&(t=xa(t),ke(e.stateNode,e.type,t))}}function Pe(e){Se?Ce?Ce.push(e):Ce=[e]:Se=e}function Ie(){if(Se){var e=Se,t=Ce;if(Ce=Se=null,Ee(e),t)for(e=0;e>>=0)?32:31-(st(e)/lt|0)|0},st=Math.log,lt=Math.LN2;var ct=64,ut=4194304;function dt(e){switch(e&-e){case 1:return 1;case 2:return 2;case 4:return 4;case 8:return 8;case 16:return 16;case 32:return 32;case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return 4194240&e;case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:return 130023424&e;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 1073741824;default:return e}}function pt(e,t){var n=e.pendingLanes;if(0===n)return 0;var r=0,a=e.suspendedLanes,i=e.pingedLanes,o=268435455&n;if(0!==o){var s=o&~a;0!==s?r=dt(s):0!==(i&=o)&&(r=dt(i))}else 0!==(o=n&~a)?r=dt(o):0!==i&&(r=dt(i));if(0===r)return 0;if(0!==t&&t!==r&&0===(t&a)&&((a=r&-r)>=(i=t&-t)||16===a&&0!==(4194240&i)))return t;if(0!==(4&r)&&(r|=16&n),0!==(t=e.entangledLanes))for(e=e.entanglements,t&=r;0n;n++)t.push(e);return t}function vt(e,t,n){e.pendingLanes|=t,536870912!==t&&(e.suspendedLanes=0,e.pingedLanes=0),(e=e.eventTimes)[t=31-ot(t)]=n}function bt(e,t){var n=e.entangledLanes|=t;for(e=e.entanglements;n;){var r=31-ot(n),a=1<=Mn),Dn=String.fromCharCode(32),Nn=!1;function On(e,t){switch(e){case"keyup":return-1!==_n.indexOf(t.keyCode);case"keydown":return 229!==t.keyCode;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function Bn(e){return"object"===typeof(e=e.detail)&&"data"in e?e.data:null}var Un=!1;var $n={color:!0,date:!0,datetime:!0,"datetime-local":!0,email:!0,month:!0,number:!0,password:!0,range:!0,search:!0,tel:!0,text:!0,time:!0,url:!0,week:!0};function Vn(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return"input"===t?!!$n[e.type]:"textarea"===t}function Gn(e,t,n,r){Pe(r),0<(t=Wr(t,"onChange")).length&&(n=new un("onChange","change",null,n,r),e.push({event:n,listeners:t}))}var Wn=null,qn=null;function Hn(e){Dr(e,0)}function Kn(e){if(q(wa(e)))return e}function Yn(e,t){if("change"===e)return t}var Qn=!1;if(u){var Xn;if(u){var Jn="oninput"in document;if(!Jn){var er=document.createElement("div");er.setAttribute("oninput","return;"),Jn="function"===typeof er.oninput}Xn=Jn}else Xn=!1;Qn=Xn&&(!document.documentMode||9=t)return{node:r,offset:t-e};e=n}e:{for(;r;){if(r.nextSibling){r=r.nextSibling;break e}r=r.parentNode}r=void 0}r=cr(r)}}function dr(e,t){return!(!e||!t)&&(e===t||(!e||3!==e.nodeType)&&(t&&3===t.nodeType?dr(e,t.parentNode):"contains"in e?e.contains(t):!!e.compareDocumentPosition&&!!(16&e.compareDocumentPosition(t))))}function pr(){for(var e=window,t=H();t instanceof e.HTMLIFrameElement;){try{var n="string"===typeof t.contentWindow.location.href}catch(r){n=!1}if(!n)break;t=H((e=t.contentWindow).document)}return t}function hr(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t&&("input"===t&&("text"===e.type||"search"===e.type||"tel"===e.type||"url"===e.type||"password"===e.type)||"textarea"===t||"true"===e.contentEditable)}function fr(e){var t=pr(),n=e.focusedElem,r=e.selectionRange;if(t!==n&&n&&n.ownerDocument&&dr(n.ownerDocument.documentElement,n)){if(null!==r&&hr(n))if(t=r.start,void 0===(e=r.end)&&(e=t),"selectionStart"in n)n.selectionStart=t,n.selectionEnd=Math.min(e,n.value.length);else if((e=(t=n.ownerDocument||document)&&t.defaultView||window).getSelection){e=e.getSelection();var a=n.textContent.length,i=Math.min(r.start,a);r=void 0===r.end?i:Math.min(r.end,a),!e.extend&&i>r&&(a=r,r=i,i=a),a=ur(n,i);var o=ur(n,r);a&&o&&(1!==e.rangeCount||e.anchorNode!==a.node||e.anchorOffset!==a.offset||e.focusNode!==o.node||e.focusOffset!==o.offset)&&((t=t.createRange()).setStart(a.node,a.offset),e.removeAllRanges(),i>r?(e.addRange(t),e.extend(o.node,o.offset)):(t.setEnd(o.node,o.offset),e.addRange(t)))}for(t=[],e=n;e=e.parentNode;)1===e.nodeType&&t.push({element:e,left:e.scrollLeft,top:e.scrollTop});for("function"===typeof n.focus&&n.focus(),n=0;n=document.documentMode,gr=null,vr=null,br=null,yr=!1;function wr(e,t,n){var r=n.window===n?n.document:9===n.nodeType?n:n.ownerDocument;yr||null==gr||gr!==H(r)||("selectionStart"in(r=gr)&&hr(r)?r={start:r.selectionStart,end:r.selectionEnd}:r={anchorNode:(r=(r.ownerDocument&&r.ownerDocument.defaultView||window).getSelection()).anchorNode,anchorOffset:r.anchorOffset,focusNode:r.focusNode,focusOffset:r.focusOffset},br&&lr(br,r)||(br=r,0<(r=Wr(vr,"onSelect")).length&&(t=new un("onSelect","select",null,t,n),e.push({event:t,listeners:r}),t.target=gr)))}function xr(e,t){var n={};return n[e.toLowerCase()]=t.toLowerCase(),n["Webkit"+e]="webkit"+t,n["Moz"+e]="moz"+t,n}var kr={animationend:xr("Animation","AnimationEnd"),animationiteration:xr("Animation","AnimationIteration"),animationstart:xr("Animation","AnimationStart"),transitionend:xr("Transition","TransitionEnd")},Sr={},Cr={};function Er(e){if(Sr[e])return Sr[e];if(!kr[e])return e;var t,n=kr[e];for(t in n)if(n.hasOwnProperty(t)&&t in Cr)return Sr[e]=n[t];return e}u&&(Cr=document.createElement("div").style,"AnimationEvent"in window||(delete kr.animationend.animation,delete kr.animationiteration.animation,delete kr.animationstart.animation),"TransitionEvent"in window||delete kr.transitionend.transition);var Pr=Er("animationend"),Ir=Er("animationiteration"),Ar=Er("animationstart"),Tr=Er("transitionend"),Zr=new Map,Rr="abort auxClick cancel canPlay canPlayThrough click close contextMenu copy cut drag dragEnd dragEnter dragExit dragLeave dragOver dragStart drop durationChange emptied encrypted ended error gotPointerCapture input invalid keyDown keyPress keyUp load loadedData loadedMetadata loadStart lostPointerCapture mouseDown mouseMove mouseOut mouseOver mouseUp paste pause play playing pointerCancel pointerDown pointerMove pointerOut pointerOver pointerUp progress rateChange reset resize seeked seeking stalled submit suspend timeUpdate touchCancel touchEnd touchStart volumeChange scroll toggle touchMove waiting wheel".split(" ");function Lr(e,t){Zr.set(e,t),l(t,[e])}for(var _r=0;_rSa||(e.current=ka[Sa],ka[Sa]=null,Sa--)}function Pa(e,t){Sa++,ka[Sa]=e.current,e.current=t}var Ia={},Aa=Ca(Ia),Ta=Ca(!1),Za=Ia;function Ra(e,t){var n=e.type.contextTypes;if(!n)return Ia;var r=e.stateNode;if(r&&r.__reactInternalMemoizedUnmaskedChildContext===t)return r.__reactInternalMemoizedMaskedChildContext;var a,i={};for(a in n)i[a]=t[a];return r&&((e=e.stateNode).__reactInternalMemoizedUnmaskedChildContext=t,e.__reactInternalMemoizedMaskedChildContext=i),i}function La(e){return null!==(e=e.childContextTypes)&&void 0!==e}function _a(){Ea(Ta),Ea(Aa)}function ja(e,t,n){if(Aa.current!==Ia)throw Error(i(168));Pa(Aa,t),Pa(Ta,n)}function Ma(e,t,n){var r=e.stateNode;if(t=t.childContextTypes,"function"!==typeof r.getChildContext)return n;for(var a in r=r.getChildContext())if(!(a in t))throw Error(i(108,$(e)||"Unknown",a));return F({},n,r)}function za(e){return e=(e=e.stateNode)&&e.__reactInternalMemoizedMergedChildContext||Ia,Za=Aa.current,Pa(Aa,e),Pa(Ta,Ta.current),!0}function Fa(e,t,n){var r=e.stateNode;if(!r)throw Error(i(169));n?(e=Ma(e,t,Za),r.__reactInternalMemoizedMergedChildContext=e,Ea(Ta),Ea(Aa),Pa(Aa,e)):Ea(Ta),Pa(Ta,n)}var Da=null,Na=!1,Oa=!1;function Ba(e){null===Da?Da=[e]:Da.push(e)}function Ua(){if(!Oa&&null!==Da){Oa=!0;var e=0,t=yt;try{var n=Da;for(yt=1;e>=o,a-=o,Ya=1<<32-ot(t)+a|n<m?(g=d,d=null):g=d.sibling;var v=h(a,d,s[m],l);if(null===v){null===d&&(d=g);break}e&&d&&null===v.alternate&&t(a,d),i=o(v,i,m),null===u?c=v:u.sibling=v,u=v,d=g}if(m===s.length)return n(a,d),ai&&Xa(a,m),c;if(null===d){for(;mg?(v=m,m=null):v=m.sibling;var y=h(a,m,b.value,c);if(null===y){null===m&&(m=v);break}e&&m&&null===y.alternate&&t(a,m),s=o(y,s,g),null===d?u=y:d.sibling=y,d=y,m=v}if(b.done)return n(a,m),ai&&Xa(a,g),u;if(null===m){for(;!b.done;g++,b=l.next())null!==(b=p(a,b.value,c))&&(s=o(b,s,g),null===d?u=b:d.sibling=b,d=b);return ai&&Xa(a,g),u}for(m=r(a,m);!b.done;g++,b=l.next())null!==(b=f(m,a,g,b.value,c))&&(e&&null!==b.alternate&&m.delete(null===b.key?g:b.key),s=o(b,s,g),null===d?u=b:d.sibling=b,d=b);return e&&m.forEach((function(e){return t(a,e)})),ai&&Xa(a,g),u}return function e(r,i,o,l){if("object"===typeof o&&null!==o&&o.type===S&&null===o.key&&(o=o.props.children),"object"===typeof o&&null!==o){switch(o.$$typeof){case x:e:{for(var c=o.key,u=i;null!==u;){if(u.key===c){if((c=o.type)===S){if(7===u.tag){n(r,u.sibling),(i=a(u,o.props.children)).return=r,r=i;break e}}else if(u.elementType===c||"object"===typeof c&&null!==c&&c.$$typeof===L&&Hi(c)===u.type){n(r,u.sibling),(i=a(u,o.props)).ref=Wi(r,u,o),i.return=r,r=i;break e}n(r,u);break}t(r,u),u=u.sibling}o.type===S?((i=Mc(o.props.children,r.mode,l,o.key)).return=r,r=i):((l=jc(o.type,o.key,o.props,null,r.mode,l)).ref=Wi(r,i,o),l.return=r,r=l)}return s(r);case k:e:{for(u=o.key;null!==i;){if(i.key===u){if(4===i.tag&&i.stateNode.containerInfo===o.containerInfo&&i.stateNode.implementation===o.implementation){n(r,i.sibling),(i=a(i,o.children||[])).return=r,r=i;break e}n(r,i);break}t(r,i),i=i.sibling}(i=Dc(o,r.mode,l)).return=r,r=i}return s(r);case L:return e(r,i,(u=o._init)(o._payload),l)}if(te(o))return m(r,i,o,l);if(M(o))return g(r,i,o,l);qi(r,o)}return"string"===typeof o&&""!==o||"number"===typeof o?(o=""+o,null!==i&&6===i.tag?(n(r,i.sibling),(i=a(i,o)).return=r,r=i):(n(r,i),(i=Fc(o,r.mode,l)).return=r,r=i),s(r)):n(r,i)}}var Yi=Ki(!0),Qi=Ki(!1),Xi={},Ji=Ca(Xi),eo=Ca(Xi),to=Ca(Xi);function no(e){if(e===Xi)throw Error(i(174));return e}function ro(e,t){switch(Pa(to,t),Pa(eo,e),Pa(Ji,Xi),e=t.nodeType){case 9:case 11:t=(t=t.documentElement)?t.namespaceURI:le(null,"");break;default:t=le(t=(e=8===e?t.parentNode:t).namespaceURI||null,e=e.tagName)}Ea(Ji),Pa(Ji,t)}function ao(){Ea(Ji),Ea(eo),Ea(to)}function io(e){no(to.current);var t=no(Ji.current),n=le(t,e.type);t!==n&&(Pa(eo,e),Pa(Ji,n))}function oo(e){eo.current===e&&(Ea(Ji),Ea(eo))}var so=Ca(0);function lo(e){for(var t=e;null!==t;){if(13===t.tag){var n=t.memoizedState;if(null!==n&&(null===(n=n.dehydrated)||"$?"===n.data||"$!"===n.data))return t}else if(19===t.tag&&void 0!==t.memoizedProps.revealOrder){if(0!==(128&t.flags))return t}else if(null!==t.child){t.child.return=t,t=t.child;continue}if(t===e)break;for(;null===t.sibling;){if(null===t.return||t.return===e)return null;t=t.return}t.sibling.return=t.return,t=t.sibling}return null}var co=[];function uo(){for(var e=0;en?n:4,e(!0);var r=ho.transition;ho.transition={};try{e(!1),t()}finally{yt=n,ho.transition=r}}function es(){return Io().memoizedState}function ts(e,t,n){var r=tc(e);if(n={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null},rs(e))as(t,n);else if(null!==(n=Ai(e,t,n,r))){nc(n,e,r,ec()),is(n,t,r)}}function ns(e,t,n){var r=tc(e),a={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null};if(rs(e))as(t,a);else{var i=e.alternate;if(0===e.lanes&&(null===i||0===i.lanes)&&null!==(i=t.lastRenderedReducer))try{var o=t.lastRenderedState,s=i(o,n);if(a.hasEagerState=!0,a.eagerState=s,sr(s,o)){var l=t.interleaved;return null===l?(a.next=a,Ii(t)):(a.next=l.next,l.next=a),void(t.interleaved=a)}}catch(c){}null!==(n=Ai(e,t,a,r))&&(nc(n,e,r,a=ec()),is(n,t,r))}}function rs(e){var t=e.alternate;return e===mo||null!==t&&t===mo}function as(e,t){yo=bo=!0;var n=e.pending;null===n?t.next=t:(t.next=n.next,n.next=t),e.pending=t}function is(e,t,n){if(0!==(4194240&n)){var r=t.lanes;n|=r&=e.pendingLanes,t.lanes=n,bt(e,n)}}var os={readContext:Ei,useCallback:ko,useContext:ko,useEffect:ko,useImperativeHandle:ko,useInsertionEffect:ko,useLayoutEffect:ko,useMemo:ko,useReducer:ko,useRef:ko,useState:ko,useDebugValue:ko,useDeferredValue:ko,useTransition:ko,useMutableSource:ko,useSyncExternalStore:ko,useId:ko,unstable_isNewReconciler:!1},ss={readContext:Ei,useCallback:function(e,t){return Po().memoizedState=[e,void 0===t?null:t],e},useContext:Ei,useEffect:$o,useImperativeHandle:function(e,t,n){return n=null!==n&&void 0!==n?n.concat([e]):null,Bo(4194308,4,qo.bind(null,t,e),n)},useLayoutEffect:function(e,t){return Bo(4194308,4,e,t)},useInsertionEffect:function(e,t){return Bo(4,2,e,t)},useMemo:function(e,t){var n=Po();return t=void 0===t?null:t,e=e(),n.memoizedState=[e,t],e},useReducer:function(e,t,n){var r=Po();return t=void 0!==n?n(t):t,r.memoizedState=r.baseState=t,e={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:e,lastRenderedState:t},r.queue=e,e=e.dispatch=ts.bind(null,mo,e),[r.memoizedState,e]},useRef:function(e){return e={current:e},Po().memoizedState=e},useState:Do,useDebugValue:Ko,useDeferredValue:function(e){return Po().memoizedState=e},useTransition:function(){var e=Do(!1),t=e[0];return e=Jo.bind(null,e[1]),Po().memoizedState=e,[t,e]},useMutableSource:function(){},useSyncExternalStore:function(e,t,n){var r=mo,a=Po();if(ai){if(void 0===n)throw Error(i(407));n=n()}else{if(n=t(),null===Tl)throw Error(i(349));0!==(30&fo)||_o(r,t,n)}a.memoizedState=n;var o={value:n,getSnapshot:t};return a.queue=o,$o(Mo.bind(null,r,o,e),[e]),r.flags|=2048,No(9,jo.bind(null,r,o,n,t),void 0,null),n},useId:function(){var e=Po(),t=Tl.identifierPrefix;if(ai){var n=Qa;t=":"+t+"R"+(n=(Ya&~(1<<32-ot(Ya)-1)).toString(32)+n),0<(n=wo++)&&(t+="H"+n.toString(32)),t+=":"}else t=":"+t+"r"+(n=xo++).toString(32)+":";return e.memoizedState=t},unstable_isNewReconciler:!1},ls={readContext:Ei,useCallback:Yo,useContext:Ei,useEffect:Vo,useImperativeHandle:Ho,useInsertionEffect:Go,useLayoutEffect:Wo,useMemo:Qo,useReducer:To,useRef:Oo,useState:function(){return To(Ao)},useDebugValue:Ko,useDeferredValue:function(e){return Xo(Io(),go.memoizedState,e)},useTransition:function(){return[To(Ao)[0],Io().memoizedState]},useMutableSource:Ro,useSyncExternalStore:Lo,useId:es,unstable_isNewReconciler:!1},cs={readContext:Ei,useCallback:Yo,useContext:Ei,useEffect:Vo,useImperativeHandle:Ho,useInsertionEffect:Go,useLayoutEffect:Wo,useMemo:Qo,useReducer:Zo,useRef:Oo,useState:function(){return Zo(Ao)},useDebugValue:Ko,useDeferredValue:function(e){var t=Io();return null===go?t.memoizedState=e:Xo(t,go.memoizedState,e)},useTransition:function(){return[Zo(Ao)[0],Io().memoizedState]},useMutableSource:Ro,useSyncExternalStore:Lo,useId:es,unstable_isNewReconciler:!1};function us(e,t){try{var n="",r=t;do{n+=B(r),r=r.return}while(r);var a=n}catch(i){a="\nError generating stack: "+i.message+"\n"+i.stack}return{value:e,source:t,stack:a,digest:null}}function ds(e,t,n){return{value:e,source:null,stack:null!=n?n:null,digest:null!=t?t:null}}function ps(e,t){try{console.error(t.value)}catch(n){setTimeout((function(){throw n}))}}var hs="function"===typeof WeakMap?WeakMap:Map;function fs(e,t,n){(n=_i(-1,n)).tag=3,n.payload={element:null};var r=t.value;return n.callback=function(){Vl||(Vl=!0,Gl=r),ps(0,t)},n}function ms(e,t,n){(n=_i(-1,n)).tag=3;var r=e.type.getDerivedStateFromError;if("function"===typeof r){var a=t.value;n.payload=function(){return r(a)},n.callback=function(){ps(0,t)}}var i=e.stateNode;return null!==i&&"function"===typeof i.componentDidCatch&&(n.callback=function(){ps(0,t),"function"!==typeof r&&(null===Wl?Wl=new Set([this]):Wl.add(this));var e=t.stack;this.componentDidCatch(t.value,{componentStack:null!==e?e:""})}),n}function gs(e,t,n){var r=e.pingCache;if(null===r){r=e.pingCache=new hs;var a=new Set;r.set(t,a)}else void 0===(a=r.get(t))&&(a=new Set,r.set(t,a));a.has(n)||(a.add(n),e=Ec.bind(null,e,t,n),t.then(e,e))}function vs(e){do{var t;if((t=13===e.tag)&&(t=null===(t=e.memoizedState)||null!==t.dehydrated),t)return e;e=e.return}while(null!==e);return null}function bs(e,t,n,r,a){return 0===(1&e.mode)?(e===t?e.flags|=65536:(e.flags|=128,n.flags|=131072,n.flags&=-52805,1===n.tag&&(null===n.alternate?n.tag=17:((t=_i(-1,1)).tag=2,ji(n,t,1))),n.lanes|=1),e):(e.flags|=65536,e.lanes=a,e)}var ys=w.ReactCurrentOwner,ws=!1;function xs(e,t,n,r){t.child=null===e?Qi(t,null,n,r):Yi(t,e.child,n,r)}function ks(e,t,n,r,a){n=n.render;var i=t.ref;return Ci(t,a),r=Co(e,t,n,r,i,a),n=Eo(),null===e||ws?(ai&&n&&ei(t),t.flags|=1,xs(e,t,r,a),t.child):(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~a,Vs(e,t,a))}function Ss(e,t,n,r,a){if(null===e){var i=n.type;return"function"!==typeof i||Lc(i)||void 0!==i.defaultProps||null!==n.compare||void 0!==n.defaultProps?((e=jc(n.type,null,r,t,t.mode,a)).ref=t.ref,e.return=t,t.child=e):(t.tag=15,t.type=i,Cs(e,t,i,r,a))}if(i=e.child,0===(e.lanes&a)){var o=i.memoizedProps;if((n=null!==(n=n.compare)?n:lr)(o,r)&&e.ref===t.ref)return Vs(e,t,a)}return t.flags|=1,(e=_c(i,r)).ref=t.ref,e.return=t,t.child=e}function Cs(e,t,n,r,a){if(null!==e){var i=e.memoizedProps;if(lr(i,r)&&e.ref===t.ref){if(ws=!1,t.pendingProps=r=i,0===(e.lanes&a))return t.lanes=e.lanes,Vs(e,t,a);0!==(131072&e.flags)&&(ws=!0)}}return Is(e,t,n,r,a)}function Es(e,t,n){var r=t.pendingProps,a=r.children,i=null!==e?e.memoizedState:null;if("hidden"===r.mode)if(0===(1&t.mode))t.memoizedState={baseLanes:0,cachePool:null,transitions:null},Pa(_l,Ll),Ll|=n;else{if(0===(1073741824&n))return e=null!==i?i.baseLanes|n:n,t.lanes=t.childLanes=1073741824,t.memoizedState={baseLanes:e,cachePool:null,transitions:null},t.updateQueue=null,Pa(_l,Ll),Ll|=e,null;t.memoizedState={baseLanes:0,cachePool:null,transitions:null},r=null!==i?i.baseLanes:n,Pa(_l,Ll),Ll|=r}else null!==i?(r=i.baseLanes|n,t.memoizedState=null):r=n,Pa(_l,Ll),Ll|=r;return xs(e,t,a,n),t.child}function Ps(e,t){var n=t.ref;(null===e&&null!==n||null!==e&&e.ref!==n)&&(t.flags|=512,t.flags|=2097152)}function Is(e,t,n,r,a){var i=La(n)?Za:Aa.current;return i=Ra(t,i),Ci(t,a),n=Co(e,t,n,r,i,a),r=Eo(),null===e||ws?(ai&&r&&ei(t),t.flags|=1,xs(e,t,n,a),t.child):(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~a,Vs(e,t,a))}function As(e,t,n,r,a){if(La(n)){var i=!0;za(t)}else i=!1;if(Ci(t,a),null===t.stateNode)$s(e,t),$i(t,n,r),Gi(t,n,r,a),r=!0;else if(null===e){var o=t.stateNode,s=t.memoizedProps;o.props=s;var l=o.context,c=n.contextType;"object"===typeof c&&null!==c?c=Ei(c):c=Ra(t,c=La(n)?Za:Aa.current);var u=n.getDerivedStateFromProps,d="function"===typeof u||"function"===typeof o.getSnapshotBeforeUpdate;d||"function"!==typeof o.UNSAFE_componentWillReceiveProps&&"function"!==typeof o.componentWillReceiveProps||(s!==r||l!==c)&&Vi(t,o,r,c),Zi=!1;var p=t.memoizedState;o.state=p,Fi(t,r,o,a),l=t.memoizedState,s!==r||p!==l||Ta.current||Zi?("function"===typeof u&&(Oi(t,n,u,r),l=t.memoizedState),(s=Zi||Ui(t,n,s,r,p,l,c))?(d||"function"!==typeof o.UNSAFE_componentWillMount&&"function"!==typeof o.componentWillMount||("function"===typeof o.componentWillMount&&o.componentWillMount(),"function"===typeof o.UNSAFE_componentWillMount&&o.UNSAFE_componentWillMount()),"function"===typeof o.componentDidMount&&(t.flags|=4194308)):("function"===typeof o.componentDidMount&&(t.flags|=4194308),t.memoizedProps=r,t.memoizedState=l),o.props=r,o.state=l,o.context=c,r=s):("function"===typeof o.componentDidMount&&(t.flags|=4194308),r=!1)}else{o=t.stateNode,Li(e,t),s=t.memoizedProps,c=t.type===t.elementType?s:gi(t.type,s),o.props=c,d=t.pendingProps,p=o.context,"object"===typeof(l=n.contextType)&&null!==l?l=Ei(l):l=Ra(t,l=La(n)?Za:Aa.current);var h=n.getDerivedStateFromProps;(u="function"===typeof h||"function"===typeof o.getSnapshotBeforeUpdate)||"function"!==typeof o.UNSAFE_componentWillReceiveProps&&"function"!==typeof o.componentWillReceiveProps||(s!==d||p!==l)&&Vi(t,o,r,l),Zi=!1,p=t.memoizedState,o.state=p,Fi(t,r,o,a);var f=t.memoizedState;s!==d||p!==f||Ta.current||Zi?("function"===typeof h&&(Oi(t,n,h,r),f=t.memoizedState),(c=Zi||Ui(t,n,c,r,p,f,l)||!1)?(u||"function"!==typeof o.UNSAFE_componentWillUpdate&&"function"!==typeof o.componentWillUpdate||("function"===typeof o.componentWillUpdate&&o.componentWillUpdate(r,f,l),"function"===typeof o.UNSAFE_componentWillUpdate&&o.UNSAFE_componentWillUpdate(r,f,l)),"function"===typeof o.componentDidUpdate&&(t.flags|=4),"function"===typeof o.getSnapshotBeforeUpdate&&(t.flags|=1024)):("function"!==typeof o.componentDidUpdate||s===e.memoizedProps&&p===e.memoizedState||(t.flags|=4),"function"!==typeof o.getSnapshotBeforeUpdate||s===e.memoizedProps&&p===e.memoizedState||(t.flags|=1024),t.memoizedProps=r,t.memoizedState=f),o.props=r,o.state=f,o.context=l,r=c):("function"!==typeof o.componentDidUpdate||s===e.memoizedProps&&p===e.memoizedState||(t.flags|=4),"function"!==typeof o.getSnapshotBeforeUpdate||s===e.memoizedProps&&p===e.memoizedState||(t.flags|=1024),r=!1)}return Ts(e,t,n,r,i,a)}function Ts(e,t,n,r,a,i){Ps(e,t);var o=0!==(128&t.flags);if(!r&&!o)return a&&Fa(t,n,!1),Vs(e,t,i);r=t.stateNode,ys.current=t;var s=o&&"function"!==typeof n.getDerivedStateFromError?null:r.render();return t.flags|=1,null!==e&&o?(t.child=Yi(t,e.child,null,i),t.child=Yi(t,null,s,i)):xs(e,t,s,i),t.memoizedState=r.state,a&&Fa(t,n,!0),t.child}function Zs(e){var t=e.stateNode;t.pendingContext?ja(0,t.pendingContext,t.pendingContext!==t.context):t.context&&ja(0,t.context,!1),ro(e,t.containerInfo)}function Rs(e,t,n,r,a){return hi(),fi(a),t.flags|=256,xs(e,t,n,r),t.child}var Ls,_s,js,Ms={dehydrated:null,treeContext:null,retryLane:0};function zs(e){return{baseLanes:e,cachePool:null,transitions:null}}function Fs(e,t,n){var r,a=t.pendingProps,o=so.current,s=!1,l=0!==(128&t.flags);if((r=l)||(r=(null===e||null!==e.memoizedState)&&0!==(2&o)),r?(s=!0,t.flags&=-129):null!==e&&null===e.memoizedState||(o|=1),Pa(so,1&o),null===e)return ci(t),null!==(e=t.memoizedState)&&null!==(e=e.dehydrated)?(0===(1&t.mode)?t.lanes=1:"$!"===e.data?t.lanes=8:t.lanes=1073741824,null):(l=a.children,e=a.fallback,s?(a=t.mode,s=t.child,l={mode:"hidden",children:l},0===(1&a)&&null!==s?(s.childLanes=0,s.pendingProps=l):s=zc(l,a,0,null),e=Mc(e,a,n,null),s.return=t,e.return=t,s.sibling=e,t.child=s,t.child.memoizedState=zs(n),t.memoizedState=Ms,e):Ds(t,l));if(null!==(o=e.memoizedState)&&null!==(r=o.dehydrated))return function(e,t,n,r,a,o,s){if(n)return 256&t.flags?(t.flags&=-257,Ns(e,t,s,r=ds(Error(i(422))))):null!==t.memoizedState?(t.child=e.child,t.flags|=128,null):(o=r.fallback,a=t.mode,r=zc({mode:"visible",children:r.children},a,0,null),(o=Mc(o,a,s,null)).flags|=2,r.return=t,o.return=t,r.sibling=o,t.child=r,0!==(1&t.mode)&&Yi(t,e.child,null,s),t.child.memoizedState=zs(s),t.memoizedState=Ms,o);if(0===(1&t.mode))return Ns(e,t,s,null);if("$!"===a.data){if(r=a.nextSibling&&a.nextSibling.dataset)var l=r.dgst;return r=l,Ns(e,t,s,r=ds(o=Error(i(419)),r,void 0))}if(l=0!==(s&e.childLanes),ws||l){if(null!==(r=Tl)){switch(s&-s){case 4:a=2;break;case 16:a=8;break;case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:a=32;break;case 536870912:a=268435456;break;default:a=0}0!==(a=0!==(a&(r.suspendedLanes|s))?0:a)&&a!==o.retryLane&&(o.retryLane=a,Ti(e,a),nc(r,e,a,-1))}return mc(),Ns(e,t,s,r=ds(Error(i(421))))}return"$?"===a.data?(t.flags|=128,t.child=e.child,t=Ic.bind(null,e),a._reactRetry=t,null):(e=o.treeContext,ri=ca(a.nextSibling),ni=t,ai=!0,ii=null,null!==e&&(qa[Ha++]=Ya,qa[Ha++]=Qa,qa[Ha++]=Ka,Ya=e.id,Qa=e.overflow,Ka=t),(t=Ds(t,r.children)).flags|=4096,t)}(e,t,l,a,r,o,n);if(s){s=a.fallback,l=t.mode,r=(o=e.child).sibling;var c={mode:"hidden",children:a.children};return 0===(1&l)&&t.child!==o?((a=t.child).childLanes=0,a.pendingProps=c,t.deletions=null):(a=_c(o,c)).subtreeFlags=14680064&o.subtreeFlags,null!==r?s=_c(r,s):(s=Mc(s,l,n,null)).flags|=2,s.return=t,a.return=t,a.sibling=s,t.child=a,a=s,s=t.child,l=null===(l=e.child.memoizedState)?zs(n):{baseLanes:l.baseLanes|n,cachePool:null,transitions:l.transitions},s.memoizedState=l,s.childLanes=e.childLanes&~n,t.memoizedState=Ms,a}return e=(s=e.child).sibling,a=_c(s,{mode:"visible",children:a.children}),0===(1&t.mode)&&(a.lanes=n),a.return=t,a.sibling=null,null!==e&&(null===(n=t.deletions)?(t.deletions=[e],t.flags|=16):n.push(e)),t.child=a,t.memoizedState=null,a}function Ds(e,t){return(t=zc({mode:"visible",children:t},e.mode,0,null)).return=e,e.child=t}function Ns(e,t,n,r){return null!==r&&fi(r),Yi(t,e.child,null,n),(e=Ds(t,t.pendingProps.children)).flags|=2,t.memoizedState=null,e}function Os(e,t,n){e.lanes|=t;var r=e.alternate;null!==r&&(r.lanes|=t),Si(e.return,t,n)}function Bs(e,t,n,r,a){var i=e.memoizedState;null===i?e.memoizedState={isBackwards:t,rendering:null,renderingStartTime:0,last:r,tail:n,tailMode:a}:(i.isBackwards=t,i.rendering=null,i.renderingStartTime=0,i.last=r,i.tail=n,i.tailMode=a)}function Us(e,t,n){var r=t.pendingProps,a=r.revealOrder,i=r.tail;if(xs(e,t,r.children,n),0!==(2&(r=so.current)))r=1&r|2,t.flags|=128;else{if(null!==e&&0!==(128&e.flags))e:for(e=t.child;null!==e;){if(13===e.tag)null!==e.memoizedState&&Os(e,n,t);else if(19===e.tag)Os(e,n,t);else if(null!==e.child){e.child.return=e,e=e.child;continue}if(e===t)break e;for(;null===e.sibling;){if(null===e.return||e.return===t)break e;e=e.return}e.sibling.return=e.return,e=e.sibling}r&=1}if(Pa(so,r),0===(1&t.mode))t.memoizedState=null;else switch(a){case"forwards":for(n=t.child,a=null;null!==n;)null!==(e=n.alternate)&&null===lo(e)&&(a=n),n=n.sibling;null===(n=a)?(a=t.child,t.child=null):(a=n.sibling,n.sibling=null),Bs(t,!1,a,n,i);break;case"backwards":for(n=null,a=t.child,t.child=null;null!==a;){if(null!==(e=a.alternate)&&null===lo(e)){t.child=a;break}e=a.sibling,a.sibling=n,n=a,a=e}Bs(t,!0,n,null,i);break;case"together":Bs(t,!1,null,null,void 0);break;default:t.memoizedState=null}return t.child}function $s(e,t){0===(1&t.mode)&&null!==e&&(e.alternate=null,t.alternate=null,t.flags|=2)}function Vs(e,t,n){if(null!==e&&(t.dependencies=e.dependencies),zl|=t.lanes,0===(n&t.childLanes))return null;if(null!==e&&t.child!==e.child)throw Error(i(153));if(null!==t.child){for(n=_c(e=t.child,e.pendingProps),t.child=n,n.return=t;null!==e.sibling;)e=e.sibling,(n=n.sibling=_c(e,e.pendingProps)).return=t;n.sibling=null}return t.child}function Gs(e,t){if(!ai)switch(e.tailMode){case"hidden":t=e.tail;for(var n=null;null!==t;)null!==t.alternate&&(n=t),t=t.sibling;null===n?e.tail=null:n.sibling=null;break;case"collapsed":n=e.tail;for(var r=null;null!==n;)null!==n.alternate&&(r=n),n=n.sibling;null===r?t||null===e.tail?e.tail=null:e.tail.sibling=null:r.sibling=null}}function Ws(e){var t=null!==e.alternate&&e.alternate.child===e.child,n=0,r=0;if(t)for(var a=e.child;null!==a;)n|=a.lanes|a.childLanes,r|=14680064&a.subtreeFlags,r|=14680064&a.flags,a.return=e,a=a.sibling;else for(a=e.child;null!==a;)n|=a.lanes|a.childLanes,r|=a.subtreeFlags,r|=a.flags,a.return=e,a=a.sibling;return e.subtreeFlags|=r,e.childLanes=n,t}function qs(e,t,n){var r=t.pendingProps;switch(ti(t),t.tag){case 2:case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return Ws(t),null;case 1:case 17:return La(t.type)&&_a(),Ws(t),null;case 3:return r=t.stateNode,ao(),Ea(Ta),Ea(Aa),uo(),r.pendingContext&&(r.context=r.pendingContext,r.pendingContext=null),null!==e&&null!==e.child||(di(t)?t.flags|=4:null===e||e.memoizedState.isDehydrated&&0===(256&t.flags)||(t.flags|=1024,null!==ii&&(oc(ii),ii=null))),Ws(t),null;case 5:oo(t);var a=no(to.current);if(n=t.type,null!==e&&null!=t.stateNode)_s(e,t,n,r),e.ref!==t.ref&&(t.flags|=512,t.flags|=2097152);else{if(!r){if(null===t.stateNode)throw Error(i(166));return Ws(t),null}if(e=no(Ji.current),di(t)){r=t.stateNode,n=t.type;var o=t.memoizedProps;switch(r[pa]=t,r[ha]=o,e=0!==(1&t.mode),n){case"dialog":Nr("cancel",r),Nr("close",r);break;case"iframe":case"object":case"embed":Nr("load",r);break;case"video":case"audio":for(a=0;a<\/script>",e=e.removeChild(e.firstChild)):"string"===typeof r.is?e=l.createElement(n,{is:r.is}):(e=l.createElement(n),"select"===n&&(l=e,r.multiple?l.multiple=!0:r.size&&(l.size=r.size))):e=l.createElementNS(e,n),e[pa]=t,e[ha]=r,Ls(e,t),t.stateNode=e;e:{switch(l=ye(n,r),n){case"dialog":Nr("cancel",e),Nr("close",e),a=r;break;case"iframe":case"object":case"embed":Nr("load",e),a=r;break;case"video":case"audio":for(a=0;aUl&&(t.flags|=128,r=!0,Gs(o,!1),t.lanes=4194304)}else{if(!r)if(null!==(e=lo(l))){if(t.flags|=128,r=!0,null!==(n=e.updateQueue)&&(t.updateQueue=n,t.flags|=4),Gs(o,!0),null===o.tail&&"hidden"===o.tailMode&&!l.alternate&&!ai)return Ws(t),null}else 2*Qe()-o.renderingStartTime>Ul&&1073741824!==n&&(t.flags|=128,r=!0,Gs(o,!1),t.lanes=4194304);o.isBackwards?(l.sibling=t.child,t.child=l):(null!==(n=o.last)?n.sibling=l:t.child=l,o.last=l)}return null!==o.tail?(t=o.tail,o.rendering=t,o.tail=t.sibling,o.renderingStartTime=Qe(),t.sibling=null,n=so.current,Pa(so,r?1&n|2:1&n),t):(Ws(t),null);case 22:case 23:return dc(),r=null!==t.memoizedState,null!==e&&null!==e.memoizedState!==r&&(t.flags|=8192),r&&0!==(1&t.mode)?0!==(1073741824&Ll)&&(Ws(t),6&t.subtreeFlags&&(t.flags|=8192)):Ws(t),null;case 24:case 25:return null}throw Error(i(156,t.tag))}function Hs(e,t){switch(ti(t),t.tag){case 1:return La(t.type)&&_a(),65536&(e=t.flags)?(t.flags=-65537&e|128,t):null;case 3:return ao(),Ea(Ta),Ea(Aa),uo(),0!==(65536&(e=t.flags))&&0===(128&e)?(t.flags=-65537&e|128,t):null;case 5:return oo(t),null;case 13:if(Ea(so),null!==(e=t.memoizedState)&&null!==e.dehydrated){if(null===t.alternate)throw Error(i(340));hi()}return 65536&(e=t.flags)?(t.flags=-65537&e|128,t):null;case 19:return Ea(so),null;case 4:return ao(),null;case 10:return ki(t.type._context),null;case 22:case 23:return dc(),null;default:return null}}Ls=function(e,t){for(var n=t.child;null!==n;){if(5===n.tag||6===n.tag)e.appendChild(n.stateNode);else if(4!==n.tag&&null!==n.child){n.child.return=n,n=n.child;continue}if(n===t)break;for(;null===n.sibling;){if(null===n.return||n.return===t)return;n=n.return}n.sibling.return=n.return,n=n.sibling}},_s=function(e,t,n,r){var a=e.memoizedProps;if(a!==r){e=t.stateNode,no(Ji.current);var i,o=null;switch(n){case"input":a=K(e,a),r=K(e,r),o=[];break;case"select":a=F({},a,{value:void 0}),r=F({},r,{value:void 0}),o=[];break;case"textarea":a=re(e,a),r=re(e,r),o=[];break;default:"function"!==typeof a.onClick&&"function"===typeof r.onClick&&(e.onclick=Jr)}for(u in be(n,r),n=null,a)if(!r.hasOwnProperty(u)&&a.hasOwnProperty(u)&&null!=a[u])if("style"===u){var l=a[u];for(i in l)l.hasOwnProperty(i)&&(n||(n={}),n[i]="")}else"dangerouslySetInnerHTML"!==u&&"children"!==u&&"suppressContentEditableWarning"!==u&&"suppressHydrationWarning"!==u&&"autoFocus"!==u&&(s.hasOwnProperty(u)?o||(o=[]):(o=o||[]).push(u,null));for(u in r){var c=r[u];if(l=null!=a?a[u]:void 0,r.hasOwnProperty(u)&&c!==l&&(null!=c||null!=l))if("style"===u)if(l){for(i in l)!l.hasOwnProperty(i)||c&&c.hasOwnProperty(i)||(n||(n={}),n[i]="");for(i in c)c.hasOwnProperty(i)&&l[i]!==c[i]&&(n||(n={}),n[i]=c[i])}else n||(o||(o=[]),o.push(u,n)),n=c;else"dangerouslySetInnerHTML"===u?(c=c?c.__html:void 0,l=l?l.__html:void 0,null!=c&&l!==c&&(o=o||[]).push(u,c)):"children"===u?"string"!==typeof c&&"number"!==typeof c||(o=o||[]).push(u,""+c):"suppressContentEditableWarning"!==u&&"suppressHydrationWarning"!==u&&(s.hasOwnProperty(u)?(null!=c&&"onScroll"===u&&Nr("scroll",e),o||l===c||(o=[])):(o=o||[]).push(u,c))}n&&(o=o||[]).push("style",n);var u=o;(t.updateQueue=u)&&(t.flags|=4)}},js=function(e,t,n,r){n!==r&&(t.flags|=4)};var Ks=!1,Ys=!1,Qs="function"===typeof WeakSet?WeakSet:Set,Xs=null;function Js(e,t){var n=e.ref;if(null!==n)if("function"===typeof n)try{n(null)}catch(r){Cc(e,t,r)}else n.current=null}function el(e,t,n){try{n()}catch(r){Cc(e,t,r)}}var tl=!1;function nl(e,t,n){var r=t.updateQueue;if(null!==(r=null!==r?r.lastEffect:null)){var a=r=r.next;do{if((a.tag&e)===e){var i=a.destroy;a.destroy=void 0,void 0!==i&&el(t,n,i)}a=a.next}while(a!==r)}}function rl(e,t){if(null!==(t=null!==(t=t.updateQueue)?t.lastEffect:null)){var n=t=t.next;do{if((n.tag&e)===e){var r=n.create;n.destroy=r()}n=n.next}while(n!==t)}}function al(e){var t=e.ref;if(null!==t){var n=e.stateNode;e.tag,e=n,"function"===typeof t?t(e):t.current=e}}function il(e){var t=e.alternate;null!==t&&(e.alternate=null,il(t)),e.child=null,e.deletions=null,e.sibling=null,5===e.tag&&(null!==(t=e.stateNode)&&(delete t[pa],delete t[ha],delete t[ma],delete t[ga],delete t[va])),e.stateNode=null,e.return=null,e.dependencies=null,e.memoizedProps=null,e.memoizedState=null,e.pendingProps=null,e.stateNode=null,e.updateQueue=null}function ol(e){return 5===e.tag||3===e.tag||4===e.tag}function sl(e){e:for(;;){for(;null===e.sibling;){if(null===e.return||ol(e.return))return null;e=e.return}for(e.sibling.return=e.return,e=e.sibling;5!==e.tag&&6!==e.tag&&18!==e.tag;){if(2&e.flags)continue e;if(null===e.child||4===e.tag)continue e;e.child.return=e,e=e.child}if(!(2&e.flags))return e.stateNode}}function ll(e,t,n){var r=e.tag;if(5===r||6===r)e=e.stateNode,t?8===n.nodeType?n.parentNode.insertBefore(e,t):n.insertBefore(e,t):(8===n.nodeType?(t=n.parentNode).insertBefore(e,n):(t=n).appendChild(e),null!==(n=n._reactRootContainer)&&void 0!==n||null!==t.onclick||(t.onclick=Jr));else if(4!==r&&null!==(e=e.child))for(ll(e,t,n),e=e.sibling;null!==e;)ll(e,t,n),e=e.sibling}function cl(e,t,n){var r=e.tag;if(5===r||6===r)e=e.stateNode,t?n.insertBefore(e,t):n.appendChild(e);else if(4!==r&&null!==(e=e.child))for(cl(e,t,n),e=e.sibling;null!==e;)cl(e,t,n),e=e.sibling}var ul=null,dl=!1;function pl(e,t,n){for(n=n.child;null!==n;)hl(e,t,n),n=n.sibling}function hl(e,t,n){if(it&&"function"===typeof it.onCommitFiberUnmount)try{it.onCommitFiberUnmount(at,n)}catch(s){}switch(n.tag){case 5:Ys||Js(n,t);case 6:var r=ul,a=dl;ul=null,pl(e,t,n),dl=a,null!==(ul=r)&&(dl?(e=ul,n=n.stateNode,8===e.nodeType?e.parentNode.removeChild(n):e.removeChild(n)):ul.removeChild(n.stateNode));break;case 18:null!==ul&&(dl?(e=ul,n=n.stateNode,8===e.nodeType?la(e.parentNode,n):1===e.nodeType&&la(e,n),Ut(e)):la(ul,n.stateNode));break;case 4:r=ul,a=dl,ul=n.stateNode.containerInfo,dl=!0,pl(e,t,n),ul=r,dl=a;break;case 0:case 11:case 14:case 15:if(!Ys&&(null!==(r=n.updateQueue)&&null!==(r=r.lastEffect))){a=r=r.next;do{var i=a,o=i.destroy;i=i.tag,void 0!==o&&(0!==(2&i)||0!==(4&i))&&el(n,t,o),a=a.next}while(a!==r)}pl(e,t,n);break;case 1:if(!Ys&&(Js(n,t),"function"===typeof(r=n.stateNode).componentWillUnmount))try{r.props=n.memoizedProps,r.state=n.memoizedState,r.componentWillUnmount()}catch(s){Cc(n,t,s)}pl(e,t,n);break;case 21:pl(e,t,n);break;case 22:1&n.mode?(Ys=(r=Ys)||null!==n.memoizedState,pl(e,t,n),Ys=r):pl(e,t,n);break;default:pl(e,t,n)}}function fl(e){var t=e.updateQueue;if(null!==t){e.updateQueue=null;var n=e.stateNode;null===n&&(n=e.stateNode=new Qs),t.forEach((function(t){var r=Ac.bind(null,e,t);n.has(t)||(n.add(t),t.then(r,r))}))}}function ml(e,t){var n=t.deletions;if(null!==n)for(var r=0;ra&&(a=s),r&=~o}if(r=a,10<(r=(120>(r=Qe()-r)?120:480>r?480:1080>r?1080:1920>r?1920:3e3>r?3e3:4320>r?4320:1960*Cl(r/1960))-r)){e.timeoutHandle=ra(xc.bind(null,e,Ol,$l),r);break}xc(e,Ol,$l);break;default:throw Error(i(329))}}}return rc(e,Qe()),e.callbackNode===n?ac.bind(null,e):null}function ic(e,t){var n=Nl;return e.current.memoizedState.isDehydrated&&(pc(e,t).flags|=256),2!==(e=gc(e,t))&&(t=Ol,Ol=n,null!==t&&oc(t)),e}function oc(e){null===Ol?Ol=e:Ol.push.apply(Ol,e)}function sc(e,t){for(t&=~Dl,t&=~Fl,e.suspendedLanes|=t,e.pingedLanes&=~t,e=e.expirationTimes;0e?16:e,null===Hl)var r=!1;else{if(e=Hl,Hl=null,Kl=0,0!==(6&Al))throw Error(i(331));var a=Al;for(Al|=4,Xs=e.current;null!==Xs;){var o=Xs,s=o.child;if(0!==(16&Xs.flags)){var l=o.deletions;if(null!==l){for(var c=0;cQe()-Bl?pc(e,0):Dl|=n),rc(e,t)}function Pc(e,t){0===t&&(0===(1&e.mode)?t=1:(t=ut,0===(130023424&(ut<<=1))&&(ut=4194304)));var n=ec();null!==(e=Ti(e,t))&&(vt(e,t,n),rc(e,n))}function Ic(e){var t=e.memoizedState,n=0;null!==t&&(n=t.retryLane),Pc(e,n)}function Ac(e,t){var n=0;switch(e.tag){case 13:var r=e.stateNode,a=e.memoizedState;null!==a&&(n=a.retryLane);break;case 19:r=e.stateNode;break;default:throw Error(i(314))}null!==r&&r.delete(t),Pc(e,n)}function Tc(e,t){return qe(e,t)}function Zc(e,t,n,r){this.tag=e,this.key=n,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.ref=null,this.pendingProps=t,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=r,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function Rc(e,t,n,r){return new Zc(e,t,n,r)}function Lc(e){return!(!(e=e.prototype)||!e.isReactComponent)}function _c(e,t){var n=e.alternate;return null===n?((n=Rc(e.tag,t,e.key,e.mode)).elementType=e.elementType,n.type=e.type,n.stateNode=e.stateNode,n.alternate=e,e.alternate=n):(n.pendingProps=t,n.type=e.type,n.flags=0,n.subtreeFlags=0,n.deletions=null),n.flags=14680064&e.flags,n.childLanes=e.childLanes,n.lanes=e.lanes,n.child=e.child,n.memoizedProps=e.memoizedProps,n.memoizedState=e.memoizedState,n.updateQueue=e.updateQueue,t=e.dependencies,n.dependencies=null===t?null:{lanes:t.lanes,firstContext:t.firstContext},n.sibling=e.sibling,n.index=e.index,n.ref=e.ref,n}function jc(e,t,n,r,a,o){var s=2;if(r=e,"function"===typeof e)Lc(e)&&(s=1);else if("string"===typeof e)s=5;else e:switch(e){case S:return Mc(n.children,a,o,t);case C:s=8,a|=8;break;case E:return(e=Rc(12,n,t,2|a)).elementType=E,e.lanes=o,e;case T:return(e=Rc(13,n,t,a)).elementType=T,e.lanes=o,e;case Z:return(e=Rc(19,n,t,a)).elementType=Z,e.lanes=o,e;case _:return zc(n,a,o,t);default:if("object"===typeof e&&null!==e)switch(e.$$typeof){case P:s=10;break e;case I:s=9;break e;case A:s=11;break e;case R:s=14;break e;case L:s=16,r=null;break e}throw Error(i(130,null==e?e:typeof e,""))}return(t=Rc(s,n,t,a)).elementType=e,t.type=r,t.lanes=o,t}function Mc(e,t,n,r){return(e=Rc(7,e,r,t)).lanes=n,e}function zc(e,t,n,r){return(e=Rc(22,e,r,t)).elementType=_,e.lanes=n,e.stateNode={isHidden:!1},e}function Fc(e,t,n){return(e=Rc(6,e,null,t)).lanes=n,e}function Dc(e,t,n){return(t=Rc(4,null!==e.children?e.children:[],e.key,t)).lanes=n,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}function Nc(e,t,n,r,a){this.tag=t,this.containerInfo=e,this.finishedWork=this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.pendingContext=this.context=null,this.callbackPriority=0,this.eventTimes=gt(0),this.expirationTimes=gt(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=gt(0),this.identifierPrefix=r,this.onRecoverableError=a,this.mutableSourceEagerHydrationData=null}function Oc(e,t,n,r,a,i,o,s,l){return e=new Nc(e,t,n,s,l),1===t?(t=1,!0===i&&(t|=8)):t=0,i=Rc(3,null,null,t),e.current=i,i.stateNode=e,i.memoizedState={element:r,isDehydrated:n,cache:null,transitions:null,pendingSuspenseBoundaries:null},Ri(i),e}function Bc(e,t,n){var r=3{"use strict";var r=n(1168);t.s=r.createRoot,r.hydrateRoot},1168:(e,t,n)=>{"use strict";!function e(){if("undefined"!==typeof __REACT_DEVTOOLS_GLOBAL_HOOK__&&"function"===typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE)try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(e)}catch(t){console.error(t)}}(),e.exports=n(30534)},60596:(e,t,n)=>{"use strict";n.d(t,{ZP:()=>g});var r=n(63366),a=n(51721),i=n(47313),o=n(1168);const s=!1;var l=n(20010),c="unmounted",u="exited",d="entering",p="entered",h="exiting",f=function(e){function t(t,n){var r;r=e.call(this,t,n)||this;var a,i=n&&!n.isMounting?t.enter:t.appear;return r.appearStatus=null,t.in?i?(a=u,r.appearStatus=d):a=p:a=t.unmountOnExit||t.mountOnEnter?c:u,r.state={status:a},r.nextCallback=null,r}(0,a.Z)(t,e),t.getDerivedStateFromProps=function(e,t){return e.in&&t.status===c?{status:u}:null};var n=t.prototype;return n.componentDidMount=function(){this.updateStatus(!0,this.appearStatus)},n.componentDidUpdate=function(e){var t=null;if(e!==this.props){var n=this.state.status;this.props.in?n!==d&&n!==p&&(t=d):n!==d&&n!==p||(t=h)}this.updateStatus(!1,t)},n.componentWillUnmount=function(){this.cancelNextCallback()},n.getTimeouts=function(){var e,t,n,r=this.props.timeout;return e=t=n=r,null!=r&&"number"!==typeof r&&(e=r.exit,t=r.enter,n=void 0!==r.appear?r.appear:t),{exit:e,enter:t,appear:n}},n.updateStatus=function(e,t){if(void 0===e&&(e=!1),null!==t)if(this.cancelNextCallback(),t===d){if(this.props.unmountOnExit||this.props.mountOnEnter){var n=this.props.nodeRef?this.props.nodeRef.current:o.findDOMNode(this);n&&function(e){e.scrollTop}(n)}this.performEnter(e)}else this.performExit();else this.props.unmountOnExit&&this.state.status===u&&this.setState({status:c})},n.performEnter=function(e){var t=this,n=this.props.enter,r=this.context?this.context.isMounting:e,a=this.props.nodeRef?[r]:[o.findDOMNode(this),r],i=a[0],l=a[1],c=this.getTimeouts(),u=r?c.appear:c.enter;!e&&!n||s?this.safeSetState({status:p},(function(){t.props.onEntered(i)})):(this.props.onEnter(i,l),this.safeSetState({status:d},(function(){t.props.onEntering(i,l),t.onTransitionEnd(u,(function(){t.safeSetState({status:p},(function(){t.props.onEntered(i,l)}))}))})))},n.performExit=function(){var e=this,t=this.props.exit,n=this.getTimeouts(),r=this.props.nodeRef?void 0:o.findDOMNode(this);t&&!s?(this.props.onExit(r),this.safeSetState({status:h},(function(){e.props.onExiting(r),e.onTransitionEnd(n.exit,(function(){e.safeSetState({status:u},(function(){e.props.onExited(r)}))}))}))):this.safeSetState({status:u},(function(){e.props.onExited(r)}))},n.cancelNextCallback=function(){null!==this.nextCallback&&(this.nextCallback.cancel(),this.nextCallback=null)},n.safeSetState=function(e,t){t=this.setNextCallback(t),this.setState(e,t)},n.setNextCallback=function(e){var t=this,n=!0;return this.nextCallback=function(r){n&&(n=!1,t.nextCallback=null,e(r))},this.nextCallback.cancel=function(){n=!1},this.nextCallback},n.onTransitionEnd=function(e,t){this.setNextCallback(t);var n=this.props.nodeRef?this.props.nodeRef.current:o.findDOMNode(this),r=null==e&&!this.props.addEndListener;if(n&&!r){if(this.props.addEndListener){var a=this.props.nodeRef?[this.nextCallback]:[n,this.nextCallback],i=a[0],s=a[1];this.props.addEndListener(i,s)}null!=e&&setTimeout(this.nextCallback,e)}else setTimeout(this.nextCallback,0)},n.render=function(){var e=this.state.status;if(e===c)return null;var t=this.props,n=t.children,a=(t.in,t.mountOnEnter,t.unmountOnExit,t.appear,t.enter,t.exit,t.timeout,t.addEndListener,t.onEnter,t.onEntering,t.onEntered,t.onExit,t.onExiting,t.onExited,t.nodeRef,(0,r.Z)(t,["children","in","mountOnEnter","unmountOnExit","appear","enter","exit","timeout","addEndListener","onEnter","onEntering","onEntered","onExit","onExiting","onExited","nodeRef"]));return i.createElement(l.Z.Provider,{value:null},"function"===typeof n?n(e,a):i.cloneElement(i.Children.only(n),a))},t}(i.Component);function m(){}f.contextType=l.Z,f.propTypes={},f.defaultProps={in:!1,mountOnEnter:!1,unmountOnExit:!1,appear:!1,enter:!0,exit:!0,onEnter:m,onEntering:m,onEntered:m,onExit:m,onExiting:m,onExited:m},f.UNMOUNTED=c,f.EXITED=u,f.ENTERING=d,f.ENTERED=p,f.EXITING=h;const g=f},20010:(e,t,n)=>{"use strict";n.d(t,{Z:()=>r});const r=n(47313).createContext(null)},35918:(e,t,n)=>{"use strict";var r=n(47313),a=Symbol.for("react.element"),i=Symbol.for("react.fragment"),o=Object.prototype.hasOwnProperty,s=r.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,l={key:!0,ref:!0,__self:!0,__source:!0};function c(e,t,n){var r,i={},c=null,u=null;for(r in void 0!==n&&(c=""+n),void 0!==t.key&&(c=""+t.key),void 0!==t.ref&&(u=t.ref),t)o.call(t,r)&&!l.hasOwnProperty(r)&&(i[r]=t[r]);if(e&&e.defaultProps)for(r in t=e.defaultProps)void 0===i[r]&&(i[r]=t[r]);return{$$typeof:a,type:e,key:c,ref:u,props:i,_owner:s.current}}t.Fragment=i,t.jsx=c,t.jsxs=c},80306:(e,t)=>{"use strict";var n=Symbol.for("react.element"),r=Symbol.for("react.portal"),a=Symbol.for("react.fragment"),i=Symbol.for("react.strict_mode"),o=Symbol.for("react.profiler"),s=Symbol.for("react.provider"),l=Symbol.for("react.context"),c=Symbol.for("react.forward_ref"),u=Symbol.for("react.suspense"),d=Symbol.for("react.memo"),p=Symbol.for("react.lazy"),h=Symbol.iterator;var f={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},m=Object.assign,g={};function v(e,t,n){this.props=e,this.context=t,this.refs=g,this.updater=n||f}function b(){}function y(e,t,n){this.props=e,this.context=t,this.refs=g,this.updater=n||f}v.prototype.isReactComponent={},v.prototype.setState=function(e,t){if("object"!==typeof e&&"function"!==typeof e&&null!=e)throw Error("setState(...): takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,e,t,"setState")},v.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,"forceUpdate")},b.prototype=v.prototype;var w=y.prototype=new b;w.constructor=y,m(w,v.prototype),w.isPureReactComponent=!0;var x=Array.isArray,k=Object.prototype.hasOwnProperty,S={current:null},C={key:!0,ref:!0,__self:!0,__source:!0};function E(e,t,r){var a,i={},o=null,s=null;if(null!=t)for(a in void 0!==t.ref&&(s=t.ref),void 0!==t.key&&(o=""+t.key),t)k.call(t,a)&&!C.hasOwnProperty(a)&&(i[a]=t[a]);var l=arguments.length-2;if(1===l)i.children=r;else if(1{"use strict";e.exports=n(80306)},46417:(e,t,n)=>{"use strict";e.exports=n(35918)},13095:(e,t)=>{"use strict";function n(e,t){var n=e.length;e.push(t);e:for(;0>>1,a=e[r];if(!(0>>1;ri(l,n))ci(u,l)?(e[r]=u,e[c]=n,r=c):(e[r]=l,e[s]=n,r=s);else{if(!(ci(u,n)))break e;e[r]=u,e[c]=n,r=c}}}return t}function i(e,t){var n=e.sortIndex-t.sortIndex;return 0!==n?n:e.id-t.id}if("object"===typeof performance&&"function"===typeof performance.now){var o=performance;t.unstable_now=function(){return o.now()}}else{var s=Date,l=s.now();t.unstable_now=function(){return s.now()-l}}var c=[],u=[],d=1,p=null,h=3,f=!1,m=!1,g=!1,v="function"===typeof setTimeout?setTimeout:null,b="function"===typeof clearTimeout?clearTimeout:null,y="undefined"!==typeof setImmediate?setImmediate:null;function w(e){for(var t=r(u);null!==t;){if(null===t.callback)a(u);else{if(!(t.startTime<=e))break;a(u),t.sortIndex=t.expirationTime,n(c,t)}t=r(u)}}function x(e){if(g=!1,w(e),!m)if(null!==r(c))m=!0,_(k);else{var t=r(u);null!==t&&j(x,t.startTime-e)}}function k(e,n){m=!1,g&&(g=!1,b(P),P=-1),f=!0;var i=h;try{for(w(n),p=r(c);null!==p&&(!(p.expirationTime>n)||e&&!T());){var o=p.callback;if("function"===typeof o){p.callback=null,h=p.priorityLevel;var s=o(p.expirationTime<=n);n=t.unstable_now(),"function"===typeof s?p.callback=s:p===r(c)&&a(c),w(n)}else a(c);p=r(c)}if(null!==p)var l=!0;else{var d=r(u);null!==d&&j(x,d.startTime-n),l=!1}return l}finally{p=null,h=i,f=!1}}"undefined"!==typeof navigator&&void 0!==navigator.scheduling&&void 0!==navigator.scheduling.isInputPending&&navigator.scheduling.isInputPending.bind(navigator.scheduling);var S,C=!1,E=null,P=-1,I=5,A=-1;function T(){return!(t.unstable_now()-Ae||125o?(e.sortIndex=i,n(u,e),null===r(c)&&e===r(u)&&(g?(b(P),P=-1):g=!0,j(x,i-o))):(e.sortIndex=s,n(c,e),m||f||(m=!0,_(k))),e},t.unstable_shouldYield=T,t.unstable_wrapCallback=function(e){var t=h;return function(){var n=h;h=t;try{return e.apply(this,arguments)}finally{h=n}}}},62224:(e,t,n)=>{"use strict";e.exports=n(13095)},12549:(e,t,n)=>{"use strict";n.d(t,{Z:()=>c});const r={randomUUID:"undefined"!==typeof crypto&&crypto.randomUUID&&crypto.randomUUID.bind(crypto)};let a;const i=new Uint8Array(16);function o(){if(!a&&(a="undefined"!==typeof crypto&&crypto.getRandomValues&&crypto.getRandomValues.bind(crypto),!a))throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");return a(i)}const s=[];for(let u=0;u<256;++u)s.push((u+256).toString(16).slice(1));function l(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;return(s[e[t+0]]+s[e[t+1]]+s[e[t+2]]+s[e[t+3]]+"-"+s[e[t+4]]+s[e[t+5]]+"-"+s[e[t+6]]+s[e[t+7]]+"-"+s[e[t+8]]+s[e[t+9]]+"-"+s[e[t+10]]+s[e[t+11]]+s[e[t+12]]+s[e[t+13]]+s[e[t+14]]+s[e[t+15]]).toLowerCase()}const c=function(e,t,n){if(r.randomUUID&&!t&&!e)return r.randomUUID();const a=(e=e||{}).random||(e.rng||o)();if(a[6]=15&a[6]|64,a[8]=63&a[8]|128,t){n=n||0;for(let e=0;e<16;++e)t[n+e]=a[e];return t}return l(a)}},79291:function(e,t,n){"use strict";var r=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.lexer=t.states=void 0;const a=r(n(20107));t.states={body:{doubleapos:{match:"''",value:()=>"'"},quoted:{lineBreaks:!0,match:/'[{}#](?:[^]*?[^'])?'(?!')/u,value:e=>e.slice(1,-1).replace(/''/g,"'")},argument:{lineBreaks:!0,match:/\{\s*[^\p{Pat_Syn}\p{Pat_WS}]+\s*/u,push:"arg",value:e=>e.substring(1).trim()},octothorpe:"#",end:{match:"}",pop:1},content:{lineBreaks:!0,match:/[^][^{}#']*/u}},arg:{select:{lineBreaks:!0,match:/,\s*(?:plural|select|selectordinal)\s*,\s*/u,next:"select",value:e=>e.split(",")[1].trim()},"func-args":{lineBreaks:!0,match:/,\s*[^\p{Pat_Syn}\p{Pat_WS}]+\s*,/u,next:"body",value:e=>e.split(",")[1].trim()},"func-simple":{lineBreaks:!0,match:/,\s*[^\p{Pat_Syn}\p{Pat_WS}]+\s*/u,value:e=>e.substring(1).trim()},end:{match:"}",pop:1}},select:{offset:{lineBreaks:!0,match:/\s*offset\s*:\s*\d+\s*/u,value:e=>e.split(":")[1].trim()},case:{lineBreaks:!0,match:/\s*(?:=\d+|[^\p{Pat_Syn}\p{Pat_WS}]+)\s*\{/u,push:"body",value:e=>e.substring(0,e.indexOf("{")).trim()},end:{match:/\s*\}/u,pop:1}}},t.lexer=a.default.states(t.states)},37688:(e,t,n)=>{"use strict";const r=n(79291),a=e=>({offset:e.offset,line:e.line,col:e.col,text:e.text,lineBreaks:e.lineBreaks}),i=e=>"plural"===e||"select"===e||"selectordinal"===e;const o=["number","date","time","spellout","ordinal","duration"],s=["zero","one","two","few","many","other"];class l extends Error{constructor(e,t){super(r.lexer.formatError(e,t))}}class c{constructor(e,t){var n,a,i,o;this.lexer=r.lexer.reset(e),this.cardinalKeys=null!==(n=null===t||void 0===t?void 0:t.cardinal)&&void 0!==n?n:s,this.ordinalKeys=null!==(a=null===t||void 0===t?void 0:t.ordinal)&&void 0!==a?a:s,this.strict=null!==(i=null===t||void 0===t?void 0:t.strict)&&void 0!==i&&i,this.strictPluralKeys=null===(o=null===t||void 0===t?void 0:t.strictPluralKeys)||void 0===o||o}parse(){return this.parseBody(!1,!0)}checkSelectKey(e,t,n){if("="===n[0]){if("select"===t)throw new l(e,`The case ${n} is not valid with select`)}else if("select"!==t){const r="plural"===t?this.cardinalKeys:this.ordinalKeys;if(this.strictPluralKeys&&r.length>0&&!r.includes(n)){throw new l(e,`The ${t} case ${n} is not valid in this locale`)}}}parseSelect(e,t,n,r){let{value:i}=e;const o={type:r,arg:i,cases:[],ctx:n};"plural"===r||"selectordinal"===r?t=!0:this.strict&&(t=!1);for(const s of this.lexer)switch(s.type){case"offset":if("select"===r)throw new l(s,"Unexpected plural offset for select");if(o.cases.length>0)throw new l(s,"Plural offset must be set before cases");o.pluralOffset=Number(s.value),n.text+=s.text,n.lineBreaks+=s.lineBreaks;break;case"case":this.checkSelectKey(s,r,s.value),o.cases.push({key:s.value,tokens:this.parseBody(t),ctx:a(s)});break;case"end":return o;default:throw new l(s,`Unexpected lexer token: ${s.type}`)}throw new l(null,"Unexpected message end")}parseArgToken(e,t){const n=a(e),r=this.lexer.next();if(!r)throw new l(null,"Unexpected message end");if(n.text+=r.text,n.lineBreaks+=r.lineBreaks,this.strict&&("func-simple"===r.type||"func-args"===r.type)&&!o.includes(r.value)){const t=`Invalid strict mode function arg type: ${r.value}`;throw new l(e,t)}switch(r.type){case"end":return{type:"argument",arg:e.value,ctx:n};case"func-simple":{const t=this.lexer.next();if(!t)throw new l(null,"Unexpected message end");if("end"!==t.type)throw new l(t,`Unexpected lexer token: ${t.type}`);if(n.text+=t.text,i(r.value.toLowerCase()))throw new l(r,`Invalid type identifier: ${r.value}`);return{type:"function",arg:e.value,key:r.value,ctx:n}}case"func-args":{if(i(r.value.toLowerCase())){const e=`Invalid type identifier: ${r.value}`;throw new l(r,e)}let a=this.parseBody(!this.strict&&t);return this.strict&&a.length>0&&(a=function(e,t){let n="",r="";for(const a of t){const t=a.ctx.text;switch(r+=t,a.type){case"content":n+=a.value;break;case"argument":case"function":case"octothorpe":n+=t;break;default:throw new l(e,`Unsupported part in strict mode function arg style: ${t}`)}}return[{type:"content",value:n.trim(),ctx:Object.assign({},t[0].ctx,{text:r})}]}(e,a)),{type:"function",arg:e.value,key:r.value,param:a,ctx:n}}case"select":if(i(r.value))return this.parseSelect(e,t,n,r.value);throw new l(r,`Unexpected select type ${r.value}`);default:throw new l(r,`Unexpected lexer token: ${r.type}`)}}parseBody(e,t){const n=[];let r=null;for(const i of this.lexer)if("argument"===i.type)r&&(r=null),n.push(this.parseArgToken(i,e));else if("octothorpe"===i.type&&e)r&&(r=null),n.push({type:"octothorpe",ctx:a(i)});else{if("end"===i.type&&!t)return n;{let t=i.value;if(!e&&"quoted"===i.type&&"#"===t[0]){if(t.includes("{")){throw new l(i,`Unsupported escape pattern: ${t}`)}t=i.text}r?(r.value+=t,r.ctx.text+=i.text,r.ctx.lineBreaks+=i.lineBreaks):(r={type:"content",value:t,ctx:a(i)},n.push(r))}}if(t)return n;throw new l(null,"Unexpected message end")}}},87462:(e,t,n)=>{"use strict";function r(){return r=Object.assign?Object.assign.bind():function(e){for(var t=1;tr})},51721:(e,t,n)=>{"use strict";function r(e,t){return r=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},r(e,t)}function a(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,r(e,t)}n.d(t,{Z:()=>a})},63366:(e,t,n)=>{"use strict";function r(e,t){if(null==e)return{};var n,r,a={},i=Object.keys(e);for(r=0;r=0||(a[n]=e[n]);return a}n.d(t,{Z:()=>r})},7883:(e,t,n)=>{"use strict";n.d(t,{ag:()=>f});n(37688);const r=e=>"string"===typeof e,a=e=>"function"===typeof e,i=new Map,o=new Map;function s(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=!(arguments.length>2&&void 0!==arguments[2])||arguments[2];return a=>{if(r(a)&&(a=new Date(a)),n){const n=c(e,t),r=o.get(n);if(r)return r.format(a);const i=new Intl.DateTimeFormat(e,t);return o.set(n,i),i.format(a)}return new Intl.DateTimeFormat(e,t).format(a)}}function l(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=!(arguments.length>2&&void 0!==arguments[2])||arguments[2];return r=>{if(n){const n=c(e,t),a=i.get(n);if(a)return a.format(r);const o=new Intl.NumberFormat(e,t);return i.set(n,o),o.format(r)}return new Intl.NumberFormat(e,t).format(r)}}function c(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};const n=Array.isArray(e)?e.sort().join("-"):e;return`${n}-${JSON.stringify(t)}`}const u=/\\u[a-fA-F0-9]{4}|\\x[a-fA-F0-9]{2}/g;function d(e,t,n,i,o){const c=function(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{plurals:void 0},i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{};t=t||e;const{plurals:o}=n,c=e=>r(e)?i[e]||{style:e}:e,u=(e,n)=>o=>{const s=a(n)?n(o):n,u=Array.isArray(s)?s:[s],d=Object.keys(i).length?c("number"):{},p=l(t,d)(e);return u.map((e=>r(e)?e.replace("#",p):e))};return o||console.error(`Plurals for locale ${e} aren't loaded. Use i18n.loadLocaleData method to load plurals for specific locale. Using other plural rule as a fallback.`),{plural:(e,t)=>{let{offset:n=0,...r}=t;const a=r[e]||r[null===o||void 0===o?void 0:o(e-n)]||r.other;return u(e-n,a)},selectordinal:(e,t)=>{let{offset:n=0,...r}=t;const a=r[e]||r[null===o||void 0===o?void 0:o(e-n,!0)]||r.other;return u(e-n,a)},select:(e,t)=>t[e]||t.other,number:(e,n)=>l(t,c(n))(e),date:(e,n)=>s(t,c(n))(e),undefined:e=>e}}(e,t,o,i),u=(e,t,r)=>{const i=n[e],o=c[t](i,r),s=a(o)?o(u):o;return Array.isArray(s)?s.join(""):s};return u}function p(e,t,n,a){return function(i){let o=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};const s=d(t,n,i,o,a),l=e=>Array.isArray(e)?e.reduce(((e,t)=>{if(r(t))return e+t;const[n,a,i]=t;let o={};null==i||r(i)?o=i:Object.keys(i).forEach((e=>{o[e]=l(i[e])}));const c=s(n,a,o);return null==c?e:e+c}),""):e,c=l(e);return r(c)&&u.test(c)?JSON.parse(`"${c.trim()}"`):r(c)?c.trim():c}}class h extends class{_events={};on(e,t){return this._hasEvent(e)||(this._events[e]=[]),this._events[e].push(t),()=>this.removeListener(e,t)}removeListener(e,t){if(!this._hasEvent(e))return;const n=this._events[e].indexOf(t);~n&&this._events[e].splice(n,1)}emit(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;re.apply(this,n)))}_hasEvent(e){return Array.isArray(this._events[e])}}{constructor(e){super(),this._messages={},this._localeData={},null!=e.missing&&(this._missing=e.missing),null!=e.messages&&this.load(e.messages),null!=e.localeData&&this.loadLocaleData(e.localeData),null==e.locale&&null==e.locales||this.activate(e.locale,e.locales)}get locale(){return this._locale}get locales(){return this._locales}get messages(){return this._messages[this._locale]??{}}get localeData(){return this._localeData[this._locale]??{}}_loadLocaleData(e,t){null==this._localeData[e]?this._localeData[e]=t:Object.assign(this._localeData[e],t)}loadLocaleData(e,t){null!=t?this._loadLocaleData(e,t):Object.keys(e).forEach((t=>this._loadLocaleData(t,e[t]))),this.emit("change")}_load(e,t){null==this._messages[e]?this._messages[e]=t:Object.assign(this._messages[e],t)}load(e,t){null!=t?this._load(e,t):Object.keys(e).forEach((t=>this._load(t,e[t]))),this.emit("change")}activate(e,t){this._locale=e,this._locales=t,this.emit("change")}_(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},{message:n,formats:i,context:o}=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};r(e)||(t=e.values||t,n=e.message,o=e.context,e=e.id);const s=!o&&!this.messages[e],l=o&&!this.messages[o][e],c=l||s,d=this._missing;if(d&&c)return a(d)?d(this._locale,e,o):d;let h;return c&&this.emit("missing",{id:e,context:o,locale:this._locale}),h=o&&!l?this.messages[o][e]||n||e:this.messages[e]||n||e,r(h)&&u.test(h)?JSON.parse(`"${h}"`):r(h)?h:p(h,this._locale,this._locales,this.localeData)(t,i)}date(e,t){return s(this._locales||this._locale,t)(e)}number(e,t){return l(this._locales||this._locale,t)(e)}}const f=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return new h(e)}()},18254:(e,t,n)=>{"use strict";function r(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);nx,cC:()=>k});var i=n(47313);function o(e){return o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},o(e)}function s(e){var t=function(e,t){if("object"!==o(e)||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!==o(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"===o(t)?t:String(t)}function l(e,t,n){return(t=s(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var c=i.createContext(null);function u(){return i.useContext(c)}function d(e,t){var n;if("undefined"==typeof Symbol||null==e[Symbol.iterator]){if(Array.isArray(e)||(n=function(e,t){if(e){if("string"==typeof e)return p(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?p(e,t):void 0}}(e))||t&&e&&"number"==typeof e.length){n&&(e=n);var r=0,a=function(){};return{s:a,n:function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}},e:function(e){throw e},f:a}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var i,o=!0,s=!1;return{s:function(){n=e[Symbol.iterator]()},n:function(){var e=n.next();return o=e.done,e},e:function(e){s=!0,i=e},f:function(){try{o||null==n.return||n.return()}finally{if(s)throw i}}}}function p(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n(.*?)<\/\1>|<(\d+)\/>/,f=/(?:\r\n|\r|\n)/g,m={area:!0,base:!0,br:!0,col:!0,embed:!0,hr:!0,img:!0,input:!0,keygen:!0,link:!0,meta:!0,param:!0,source:!0,track:!0,wbr:!0,menuitem:!0};function g(e){if(!e.length)return[];var t=a(e.slice(0,4),4),n=t[0],r=t[1],i=t[2],o=t[3];return[[parseInt(n||i),r||"",o]].concat(g(e.slice(4,e.length)))}var v=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"";return function(){return"".concat(t,"_").concat(e++)}};function b(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 y(e){for(var t=1;t")}}));var x=n&&"function"==typeof n._?n._(l,b,{message:c,formats:p}):l,k=x?function e(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=v(0,"$lingui$"),o=t.replace(f,"").split(h);if(1===o.length)return t;var s=[],l=o.shift();l&&s.push(l);var c,u=d(g(o));try{for(u.s();!(c=u.n()).done;){var p=a(c.value,3),b=p[0],y=p[1],w=p[2],x=n[b];(!x||m[x.type]&&y)&&(x?console.error("".concat(x.type," is a void element tag therefore it must have no children")):console.error("Can use element at index '".concat(b,"' as it is not declared in the original translation")),x=i.createElement(i.Fragment)),s.push(i.cloneElement(x,{key:r()},y?e(y,n):x.props.children)),w&&s.push(w)}}catch(k){u.e(k)}finally{u.f()}return s}(x,w):null;if(null===o||null===s)return k;var S=r||i.Fragment,C={id:l,message:c,translation:k,isTranslated:l!==k&&c!==k};if(o&&s)console.error("You can't use both `component` and `render` prop at the same time. `component` is ignored.");else if(o&&"function"!=typeof o)console.error("Invalid value supplied to prop `render`. It must be a function, provided ".concat(o));else if(s&&"function"!=typeof s)return console.error("Invalid value supplied to prop `component`. It must be a React component, provided ".concat(s)),i.createElement(S,Object.assign({},C),k);if("function"==typeof o)return o(C);var E=s||S,P=r;return P&&!s?i.createElement(P,Object.assign({},C),k):i.createElement(E,null,k)}w.defaultProps={values:{},components:{}};const x=function(e){var t=e.i18n,n=e.defaultComponent,r=e.forceRenderOnLocaleChange,o=void 0===r||r,s=e.children,l=function(){return{i18n:t,defaultComponent:n}},u=function(){return o&&t.locale||"default"},d=a(i.useState(l()),2),p=d[0],h=d[1],f=a(i.useState(u()),2),m=f[0],g=f[1];return i.useEffect((function(){var e=t.on("change",(function(){h(l()),g(u())}));return"default"===m&&g(u()),o&&"default"===m&&console.log("I18nProvider did not render. A call to i18n.activate still needs to happen or forceRenderOnLocaleChange must be set to false."),function(){return e()}}),[]),o&&"default"===m?null:i.createElement(c.Provider,{value:p,key:m},s)},k=w}},t={};function n(r){var a=t[r];if(void 0!==a)return a.exports;var i=t[r]={id:r,loaded:!1,exports:{}};return e[r].call(i.exports,i,i.exports,n),i.loaded=!0,i.exports}n.m=e,n.amdO={},n.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return n.d(t,{a:t}),t},(()=>{var e,t=Object.getPrototypeOf?e=>Object.getPrototypeOf(e):e=>e.__proto__;n.t=function(r,a){if(1&a&&(r=this(r)),8&a)return r;if("object"===typeof r&&r){if(4&a&&r.__esModule)return r;if(16&a&&"function"===typeof r.then)return r}var i=Object.create(null);n.r(i);var o={};e=e||[null,t({}),t([]),t(t)];for(var s=2&a&&r;"object"==typeof s&&!~e.indexOf(s);s=t(s))Object.getOwnPropertyNames(s).forEach((e=>o[e]=()=>r[e]));return o.default=()=>r,n.d(i,o),i}})(),n.d=(e,t)=>{for(var r in t)n.o(t,r)&&!n.o(e,r)&&Object.defineProperty(e,r,{enumerable:!0,get:t[r]})},n.f={},n.e=e=>Promise.all(Object.keys(n.f).reduce(((t,r)=>(n.f[r](e,t),t)),[])),n.u=e=>"static/js/1700470451057/"+e+"."+{42:"616a3054",208:"e872bf20",410:"3e7e78ff",752:"20203cc5",859:"be94a09e",863:"585a63b6",1123:"314b0b5c",1325:"6032b070",1658:"22f85957",1690:"826970e2",1750:"6ebffa84",2012:"5f3ec3fc",2014:"6721e040",2064:"697cec26",2386:"a75fb0bf",2553:"75e43028",2633:"85fd48f3",2724:"8f4db7c8",3030:"9f39d789",3358:"ca11d369",3399:"ec539f1d",3452:"e01e4f79",3535:"61394252",3643:"f06435bc",3814:"39ca6661",3853:"970ff25f",3938:"1643ee68",3969:"3faf1687",4040:"5c47f33b",4168:"2f97361a",4311:"dbd1422e",4500:"1c5dd279",5061:"26e4f11c",5080:"bfdfbcea",5385:"f033b37c",5395:"13120457",5662:"bb73b012",5709:"e8368d85",6012:"964c3282",6104:"3e337e5d",6164:"fb660151",6204:"53dde532",6327:"c462964e",6355:"3fb438e2",6448:"9e7b5338",6510:"73d01351",6513:"175e9558",6544:"64437803",6571:"61ee8329",6861:"1784d49e",6876:"7ce257af",7318:"f0629ebe",7328:"c8cc489f",7554:"95e050af",7935:"f4da94f3",8046:"94a1aca8",8355:"f1ae5e65",8736:"64f10f19",9051:"c9abfd27",9444:"41ab42f8",9936:"058b78aa",9976:"01271bcf",9980:"d30afe36"}[e]+".js",n.miniCssF=e=>{},n.g=function(){if("object"===typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(e){if("object"===typeof window)return window}}(),n.hmd=e=>((e=Object.create(e)).children||(e.children=[]),Object.defineProperty(e,"exports",{enumerable:!0,set:()=>{throw new Error("ES Modules may not assign module.exports or exports.*, Use ESM export syntax, instead: "+e.id)}}),e),n.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),(()=>{var e={},t="crazygames-gameframe:";n.l=(r,a,i,o)=>{if(e[r])e[r].push(a);else{var s,l;if(void 0!==i)for(var c=document.getElementsByTagName("script"),u=0;u{s.onerror=s.onload=null,clearTimeout(h);var a=e[r];if(delete e[r],s.parentNode&&s.parentNode.removeChild(s),a&&a.forEach((e=>e(n))),t)return t(n)},h=setTimeout(p.bind(null,void 0,{type:"timeout",target:s}),12e4);s.onerror=p.bind(null,s.onerror),s.onload=p.bind(null,s.onload),l&&document.head.appendChild(s)}}})(),n.r=e=>{"undefined"!==typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n.nmd=e=>(e.paths=[],e.children||(e.children=[]),e),n.p="https://gameframe.crazygames.com/",(()=>{var e={179:0};n.f.j=(t,r)=>{var a=n.o(e,t)?e[t]:void 0;if(0!==a)if(a)r.push(a[2]);else{var i=new Promise(((n,r)=>a=e[t]=[n,r]));r.push(a[2]=i);var o=n.p+n.u(t),s=new Error;n.l(o,(r=>{if(n.o(e,t)&&(0!==(a=e[t])&&(e[t]=void 0),a)){var i=r&&("load"===r.type?"missing":r.type),o=r&&r.target&&r.target.src;s.message="Loading chunk "+t+" failed.\n("+i+": "+o+")",s.name="ChunkLoadError",s.type=i,s.request=o,a[1](s)}}),"chunk-"+t,t)}};var t=(t,r)=>{var a,i,[o,s,l]=r,c=0;if(o.some((t=>0!==e[t]))){for(a in s)n.o(s,a)&&(n.m[a]=s[a]);if(l)l(n)}for(t&&t(r);c