"use strict";(self.webpackChunklauncher=self.webpackChunklauncher||[]).push([[1663],{6866:(n,t,e)=>{e.r(t),e.d(t,{default:()=>g});var i=e(4914),o=e(678),u=e(5024),r=e.n(u),s=e(4212),l=e.n(s),a=e(8124),c=e.n(a),d=e(1703),f=e.n(d),v=e(6025);function m(n,t){return function(n){if(Array.isArray(n))return n}(n)||function(n,t){var e=null==n?null:"undefined"!=typeof Symbol&&n[Symbol.iterator]||n["@@iterator"];if(null!=e){var i,o,u,r,s=[],l=!0,a=!1;try{if(u=(e=e.call(n)).next,0===t){if(Object(e)!==e)return;l=!1}else for(;!(l=(i=u.call(e)).done)&&(s.push(i.value),s.length!==t);l=!0);}catch(n){a=!0,o=n}finally{try{if(!l&&null!=e.return&&(r=e.return(),Object(r)!==r))return}finally{if(a)throw o}}return s}}(n,t)||function(n,t){if(n){if("string"==typeof n)return y(n,t);var e=Object.prototype.toString.call(n).slice(8,-1);return"Object"===e&&n.constructor&&(e=n.constructor.name),"Map"===e||"Set"===e?Array.from(n):"Arguments"===e||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(e)?y(n,t):void 0}}(n,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function y(n,t){(null==t||t>n.length)&&(t=n.length);for(var e=0,i=new Array(t);e0&&void 0!==arguments[0]?arguments[0]:{},t=n.soundUrl,e=void 0===t?"":t,u=n.soundObj,s=void 0===u?{}:u,a=n.musicUrl,d=void 0===a?"":a,y=n.musicObj,g=void 0===y?{}:y,S=l()(),b=(0,o.useSelector)(v.cd),h=m((0,i.useState)(!!e&&(null===(null===f()||void 0===f()?void 0:f().getItem(p))||"true"===(null===f()||void 0===f()?void 0:f().getItem(p)))),2),A=h[0],I=h[1],j=m((0,i.useState)(!!d&&(null===(null===f()||void 0===f()?void 0:f().getItem(O))||"true"===(null===f()||void 0===f()?void 0:f().getItem(O)))),2),M=j[0],U=j[1],w=m(r()(!A,e,s),3),E=w[0],L=w[1],k=w[2],x=m(r()(!M,d,g),3),C=x[0],G=x[1],T=x[2];(0,i.useEffect)((function(){null===f()||void 0===f()||f().setItem(p,S?E&&A:null===f()||void 0===f()?void 0:f().getItem(p))}),[A,E]),(0,i.useEffect)((function(){null===f()||void 0===f()||f().setItem(O,S?C&&M:null===f()||void 0===f()?void 0:f().getItem(O))}),[M,C]),c()((function(){S?(I("true"===(null===f()||void 0===f()?void 0:f().getItem(p))),U("true"===(null===f()||void 0===f()?void 0:f().getItem(O))),"true"===(null===f()||void 0===f()?void 0:f().getItem(O))&&G("background")):(I(!1),U(!1))}),[S]);var D=(0,i.useMemo)((function(){return{isLoaded:E,isOn:A,play:L,stop:k,setOn:e?I:function(){}}}),[E,A,L,k,I]),W=(0,i.useMemo)((function(){return{isLoaded:C,isOn:M,play:G,stop:T,setOn:d?U:function(){}}}),[C,M,G,T,U]);return(0,i.useEffect)((function(){b||!M&&!A||(e&&I(!0),d&&U(!0))}),[b]),{sound:D,music:W}}},463:(n,t,e)=>{e.d(t,{A:()=>b,W:()=>g});var i=e(3444),o=e.n(i),u=e(4914),r=e(678),s=e(1703),l=e.n(s),a=e(5218),c=e(6866),d=e(6337);function f(n,t){(null==t||t>n.length)&&(t=n.length);for(var e=0,i=new Array(t);e{e.r(t),e.d(t,{SettingsService:()=>i.A,settings:()=>i.W});var i=e(463)}}]);