1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[1969],{1762:(e,t,r)=>{"use strict";r.d(t,{D:()=>p});var s=r(54631),a=r(38959),n=r(31224),i=r(66092),o=r(18035),l=r(91288),d=r(23427);let c=e=>{let{activeSuggestionIndex:t,showSuggestions:r,handleSelect:a,recentSearches:i=[],suggestions:o=[],onRemoveRecent:l}=e;if(!r||!o.length)return null;let c=i.length;return(0,s.jsxs)("div",{id:"autocomplete-suggestions","aria-live":"polite","aria-expanded":r,"data-testid":"autocomplete-suggestions",className:"SearchInput-suggestions",children:[i.length>0&&(0,s.jsxs)("div",{className:"SearchInput-suggestions-section",children:[(0,s.jsx)("div",{className:"SearchInput-suggestions-sectionTitle",children:"Recent searches"}),(0,s.jsx)("div",{className:"SearchInput-suggestions-recentList",children:i.map((e,r)=>(0,s.jsxs)("div",{className:"SearchInput-suggestions-recentItemWrapper",children:[(0,s.jsx)("button",{type:"button",className:`SearchInput-suggestions-recentItem ${t===r?"active":""}`,onClick:()=>a(e.text),children:(0,s.jsx)("span",{className:"SearchInput-suggestions-recentItemText",children:e.text})}),(0,s.jsx)("button",{type:"button",className:"SearchInput-suggestions-recentItemRemove",onClick:t=>{t.stopPropagation(),l?.(e.id)},"aria-label":`Remove ${e.text} from recent`,children:(0,s.jsx)(n.I,{name:"close",size:12})})]},e.id))})]}),o.length>0&&(0,s.jsxs)("div",{className:"SearchInput-suggestions-section",children:[(0,s.jsx)("div",{className:"SearchInput-suggestions-sectionTitle",children:"Suggested searches"}),(0,s.jsx)("div",{className:"SearchInput-suggestions-suggestedList",children:o.map((e,r)=>{let n="song"===e.type;return(0,s.jsxs)("button",{type:"button",className:`SearchInput-suggestions-suggestedItem ${t===c+r?"active":""}`,onClick:()=>a("string"==typeof e.artist?e.artist:e.artist.name),"aria-label":`${e.title}, ${"string"==typeof e.artist?e.artist:e.artist.name}`,children:[(0,s.jsx)(d.default,{src:e.image||"",alt:`${e.title}, ${"string"==typeof e.artist?e.artist:e.artist.name}`,height:40,width:40,className:`SearchInput-suggestions-suggestedItemAvatar ${n?"SearchInput-suggestions-suggestedItemAvatarCircle":""}`}),(0,s.jsx)("div",{className:"SearchInput-suggestions-suggestedItemContent",children:(0,s.jsx)("span",{className:"SearchInput-suggestions-suggestedItemTitle",children:"string"==typeof e.artist?e.artist:e.artist.name})})]},e.id)})})]})]})};var u=r(53358),h=r(87768),m=r(23685);let p=e=>{let{autofocus:t,className:r="",placeholder:d}=e,{suggestions:p,searchValue:g,handleSearchChange:v,isLoading:f,handleSelect:_,recentSearches:b,removeRecentSearch:y}=(0,m.H)(),x=(0,a.useRef)(null),w=(0,a.useRef)(null),[j,k]=(0,a.useState)(g),A=(0,h.useSearchParams)();(0,u.W)(x,()=>{C(!1)});let[S,C]=(0,a.useState)(!1),[P,N]=(0,a.useState)(-1),I=(0,o.d)(j,500),{handleKeyDown:$,handleSelect:E}=(0,l.u)({suggestions:p,onSelect:_,setVal:k,setShowSuggestions:C,setActiveSuggestionIndex:N,activeSuggestionIndex:P});(0,a.useEffect)(()=>{A?.get("q")||k("")},[A]),(0,a.useEffect)(()=>{g&&k(g)},[g]),(0,a.useEffect)(()=>{g!==I&&v(I)},[I]),(0,a.useEffect)(()=>{t&&w.current&&w.current?.focus()},[t]),(0,a.useEffect)(()=>{if(p.length>0){let e=p?.find(e=>e?.artist?.toLowerCase()===j?.toLowerCase());e?N(p.indexOf(e)||0):N(-1)}},[j,p]);let M=j&&!f;return(0,s.jsxs)("form",{onSubmit:e=>{e.preventDefault(),v(I)},className:`SearchInput ${r}`,ref:x,children:[(0,s.jsx)(n.I,{name:"searchIcon",color:"var(--color-orange)",size:12,"aria-label":"searchicon",className:"SearchInput-icon"}),(0,s.jsx)("input",{ref:w,type:"text",value:j,onChange:e=>{k(e.target.value),S||C(!0)},onKeyDown:e=>$(e),onFocus:()=>C(!0),className:"SearchInput-input",placeholder:d||"Search for artists, songs, albums!"}),M&&(0,s.jsx)(i.$,{onClick:()=>k(""),_type:{type:"IconButton",_variant:"plain"},className:"SearchInput-closeBtn",children:(0,s.jsx)(n.I,{name:"close",color:"var(--color-white)",width:10,"aria-label":"close"})}),f&&(0,s.jsx)(n.I,{name:"spinner",className:"SearchInput-spinner",size:20,"aria-label":"spinner"}),(0,s.jsx)(c,{showSuggestions:S,suggestions:p,activeSuggestionIndex:P,handleSelect:E,val:j,recentSearches:b,onRemoveRecent:y})]})}},7389:(e,t,r)=>{"use strict";r.d(t,{j:()=>n});var s=r(54718),a=r(245);let n=()=>{let{createToast:e,removeToast:t}=(0,a.dj)(),{createDisclosure:r}=(0,s.j1)();return{createToast:e,removeToast:t,createDisclosure:r}}},8438:(e,t,r)=>{"use strict";r.d(t,{FD:()=>u,HK:()=>d,Oh:()=>v,RY:()=>h,V_:()=>f,h:()=>p,j4:()=>i,le:()=>c,n4:()=>g,pJ:()=>_,r6:()=>l,rt:()=>n,w4:()=>m,z5:()=>y});var s=r(61312);function a(e){if(!e)return null;let t=Object.keys(e.types).find(t=>e.types[t].active);return e.types[t]||null}function n(e,t){return e||t?function(e,t){let r=a(e),s=t.currentTime;return!(r&&t?.currentSong?.isSponsored)||-1!==r.skippableAfter&&s>r.skippableAfter}(e,t)&&function(e,t){let r=a(e),s=t.currentTime;return!(r&&t?.currentSong?.isSponsored)||-1!==r.skippableAfter&&s>r.skippableAfter}(e,t):null}function i(e){return e?.type==="playlist"?e?.artist.name:e?.artist}function o(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=!(arguments.length>1)||void 0===arguments[1]||arguments[1];return Object.entries(e).filter(e=>{let[,r]=e;return!t||!!r}).map(e=>{let[t,r]=e;return`${encodeURIComponent(t)}=${encodeURIComponent(r??"")}`}).join("&")}function l(e,t){return!(t&&t?.subscription)&&(e?.type!=="song"&&e?.tracks?e?.tracks?.some(e=>(0,s.YL)(e.premium_user_only)):(0,s.YL)(e?.premium_user_only))}function d(e){let{host:t="",encoded:r=!1,embed:s=!1,oembed:a=!1,isPlayer:n=!1,query:i={}}=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(!e)return"";let{type:l,parentDetails:d,artist:c,uploader:u,url_slug:h}=e,m=s&&!a?"/embed":"",p=d&&"playlist"!==d.type?d.artist?.url_slug||d.uploader?.url_slug:"playlist"===l?c?.url_slug:u?.url_slug;
1if(a&&!t)throw Error("Must provide a host when using oembed option");if(e?.uploader_url_slug&&(p=e?.uploader_url_slug),n){if(!p||!h)return"";let e=`${t}${m}/${p}/song/${h}`;return(Object.keys(i).length&&(e+=`?${o(i)}`),r)?encodeURIComponent(e):e}if(!l||!p||!h)return"";let g=`${t}${m}/${p}/${l}/${h}`;return(Object.keys(i).length&&(g+=`?${o(i)}`),a)?`${t}/oembed?url=${encodeURIComponent(g)}`:r?encodeURIComponent(g):g}function c(e){let{host:t="",isPlayer:r=!1}=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},s=function(e,t){let r=e.parentDetails||e,s=["playlist","message"];return t&&s.includes(r.type)?e.uploader:s.includes(r.type)?r.artist:r.uploader}(e,r)?.url_slug;return s?`${t}/${s}`:""}function u(e){return e?.album_details?`/${d(e).split("/").slice(1,2)}/album/${e?.album_details?.url_slug}`:`/search?q=${"song"===e.type&&e?.album}&show=albums`}function h(e,t,r){let s=d(t,{host:e,encoded:!0,query:r?.query??{}}),a="playlist"!==t.type&&t.featuring?` feat. ${t.featuring}`:"",n=encodeURIComponent(`#nowplaying ${t.title} by ${i(t)}${a} via @audiomack`);return`https://twitter.com/share?url=${s}&text=${n}`}function m(e,t,r,s){let a=d(t,{host:e,encoded:!0,query:s?.query??{}}),n=encodeURIComponent(t.image),o="playlist"!==t.type&&t.featuring?` feat. ${t.featuring}`:"",l=encodeURIComponent(`${t.title} by ${i(t)}${o} via @audiomack`);return`https://www.facebook.com/dialog/feed?app_id=${r}&link=${a}&picture=${n}&name=Now%20Playing&caption=%20&description=${l}`}let p=e=>({initial:{opacity:0,y:1},animate:{opacity:1,y:0},exit:{opacity:0,y:1},transition:{duration:.3,type:"spring",ease:"easeInOut",delay:Math.min(.1*e,.15)}});function g(e,t){if(!e||!t)return!1;let r=t?.parentDetails?.type==="album"&&+t?.parentDetails?.uploader?.id==+e.id,s=(t?.type==="song"||t?.type==="album")&&+t?.uploader?.id==+e.id,a=t?.type==="playlist"&&+e.id==+t.artist.id,n=e?.label_owner&&+e?.label_id==+t?.label_id;return r||s||a||n||!1}function v(e){return e?.preview==="supporters"&&e?.released_offset>0}function f(e){return e&&e?.subscription!==null}let _=e=>e&&"no"!==e&&"authenticated-pending"!==e&&"authenticated-declined"!==e&&"banned"!==e?"tastemaker"===e?"Verified Tastemaker":"authenticated"===e||"verify-pending"===e||"verify-declined"===e?"Authenticated Artist":"Verified Artist":null;function b(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(!e)return"";if(e.match(/275-275-\d+.jpg$/))return e;if(e.match(/\.gravatar.com\//)){let r=Math.max(t.width||0,t.size||0,t.height||0),s=e.split("?")[0],a=o({s:r,r:"x",d:"https://i.audiomack.com/default-artist-image.png"});return`${s}?${a}`}return e.match(/default-(artist|song|album|playlist)-image\.(jpg|png)$/)||e.match(/^data:image/)?e:`${e}?${o(t)}`}function y(e){let t,r,s=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},a=s.size,n=s.size,i=e?.startsWith("http")?e:`https://assets.audiomack.com/${e}`;void 0!==s.height&&(n=s.height),void 0!==s.width&&(a=s.width);let o=b(i,{...s,width:a,height:n}),l=b(i,{...s,width:a?2*a:void 0,height:n?2*n:void 0}),d=b(i,{...s,width:a||void 0,height:n||void 0});return l&&(t=`${l} 2x`),d&&(r=`${d} 1x`),[o,t,r]}},9920:(e,t,r)=>{"use strict";r.d(t,{PrivacyRightsButton:()=>a});var s=r(54631);function a(e){let{label:t}=e;return(0,s.jsx)("button",{type:"button","data-testid":"footer-privacy-rights-btn",className:"Footer-legal-nav-item emptybtn",onClick:()=>{"function"==typeof window.__tcfapi&&window.__tcfapi("ping",2,e=>
1{e&&e.gdprApplies?window.__tcfapi?.("displayConsentUi",2,()=>{}):"function"==typeof window.__uspapi&&window.__uspapi("displayUspUi")})},children:t})}r(38959)},9922:(e,t,r)=>{"use strict";r.d(t,{o:()=>i});var s=r(54631);r(38959);var a=r(66092),n=r(30579);let i=e=>{let{isMasquerading:t,handleStopMasquerading:r}=e,{logout:i}=(0,n.u)();return(0,s.jsx)(a.$,{onClick:e=>{if(t)return e.preventDefault(),r(e);i()},_type:{type:"IconButton",_variant:"plain",_size:"small"},className:"HeaderUser-link",children:t?"Stop Masquerading":"Log Out"})}},13147:(e,t,r)=>{var s={"./en/auth.json":[88016,8016],"./en/countries.json":[12418,2418],"./en/discover.json":[30585,585],"./en/email.json":[47452,7452],"./en/footer.json":[79329,9329],"./en/header.json":[27023,7023],"./en/hero.json":[94990,4990],"./en/sidebar.json":[88896,8896],"./uk/auth.json":[63325,3325],"./uk/countries.json":[94185,4185],"./uk/discover.json":[76980,6980],"./uk/footer.json":[10316,316],"./uk/header.json":[19814,9814],"./uk/hero.json":[19147,9147],"./uk/sidebar.json":[67911,7911]};function a(e){if(!r.o(s,e))return Promise.resolve().then(()=>{var t=Error("Cannot find module '"+e+"'");throw t.code="MODULE_NOT_FOUND",t});var t=s[e],a=t[0];return r.e(t[1]).then(()=>r.t(a,19))}a.keys=()=>Object.keys(s),a.id=13147,e.exports=a},14549:()=>{},15661:(e,t,r)=>{"use strict";r.d(t,{l:()=>a});var s=r(38959);let a=()=>{let[e,t]=(0,s.useState)({width:0,height:0});return(0,s.useEffect)(()=>{if(!window)return;t({width:window.innerWidth,height:window.innerHeight});let e=()=>{t({width:window.innerWidth,height:window.innerHeight})};return window.addEventListener("resize",e),()=>{window.removeEventListener("resize",e)}},[]),e}},16666:(e,t,r)=>{"use strict";r.d(t,{BottomAd:()=>g});var s=r(54631),a=r(38959),n=r(87768),i=r(27971),o=r(59120),l=r(37901),d=r(66984),c=r(30579),u=r(49244),h=r(46329),m=r(3130),p=r(82855);r(67613);let g=a.memo(()=>{let e=(0,n.usePathname)(),{user:t}=(0,c.u)(),{currentSong:r,collapsedPlayer:g}=(0,u.K)();if((0,a.useMemo)(()=>{let s=m.wE.some(t=>e.includes(t)),a=(0,h.V_)(t),n=!!r&&!g;return s||a||n},[t,e,r,g]))return null;let v=!!r&&!g,f=!!r&&g;return(0,s.jsx)(i.F,{features:o.l,children:(0,s.jsx)(l.N,{children:(0,s.jsx)(d.Uu,{initial:{y:100,opacity:0},animate:{y:0,opacity:1},exit:{y:100,opacity:0},transition:{duration:.3,ease:[.4,0,.2,1]},className:`BottomAd ${f?"player-collapsed":v?"player-expanded":"no-player"}`,children:(0,s.jsx)(d.Uu,{className:"BottomAd-backplate",animate:{y:0,opacity:1},transition:{duration:.2,ease:[.4,0,.2,1]},children:(0,s.jsx)("div",{className:"BottomAd-container",children:(0,s.jsx)(p.AditudeAd,{placementName:"audiomack_banner",slotId:"audiomack_banner",className:"fixed-ad-responsive",style:{margin:"0 auto",display:"block"}})})})})})})})},18035:(e,t,r)=>{"use strict";r.d(t,{d:()=>a});var s=r(38959);
1function a(e,t){let[r,a]=(0,s.useState)(e);return(0,s.useEffect)(()=>{let r=setTimeout(()=>{a(e)},t);return()=>{clearTimeout(r)}},[e,t]),r}},18945:(e,t,r)=>{"use strict";r.r(t),r.d(t,{default:()=>c});var s=r(54631);r(38959);var a=r(6908),n=r(29199),i=r(88578),o=r(90420),l=r(21054);async function d(e,t,s,a){return(s=s||(0,n.Q_)()).use(i.r),a||s.use((0,l.A)((e,t)=>r(13147)(`./${e}/${t}.json`))),await s.init({lng:e,resources:a,fallbackLng:o.A.defaultLocale,supportedLngs:o.A.locales,defaultNS:t[0],fallbackNS:t[0],ns:t,preload:[e]}),{i18n:s,resources:s.services.resourceStore.data,t:s.t}}function c(e){let{children:t,locale:r,namespaces:i,resources:o}=e,l=(0,n.Q_)();return d(r,i,l,o),(0,s.jsx)(a.xC,{i18n:l,children:t})}},22606:(e,t,r)=>{"use strict";r.d(t,{D:()=>c});var s=r(54631);r(38959);var a=r(29641),n=r.n(a),i=r(58915),o=r(70055),l=r.n(o);let d=(0,i.m)("Heading",{as:"h2"},(e,t)=>{let{as:r="h2",children:a,className:i,weight:o,noOfLines:d,casing:c,align:u,...h}=e,m=n()(l().Heading,"span"!==r&&l()[`Heading-${r}`],o&&l()[`weight-${o}`],d&&l()[`noOfLines-${d}`],i);return(0,s.jsx)(r,{...h,ref:t,className:m,style:{"--heading-font-size":h.fontSize,"--heading-case":c,"--heading-text-align":u,"--heading-font-color":h.color,fontSize:h.fontSize?"var(--heading-font-size)":void 0,...h.style},children:a})}),c=Object.assign(d,{h1:e=>(0,s.jsx)(d,{as:"h1",...e}),h2:e=>(0,s.jsx)(d,{as:"h2",...e}),h3:e=>(0,s.jsx)(d,{as:"h3",...e}),h4:e=>(0,s.jsx)(d,{as:"h4",...e}),h5:e=>(0,s.jsx)(d,{as:"h5",...e}),h6:e=>(0,s.jsx)(d,{as:"h6",...e}),span:e=>(0,s.jsx)(d,{as:"span",...e})})},23685:(e,t,r)=>{"use strict";r.d(t,{SearchInputProvider:()=>c,H:()=>u});var s=r(54631),a=r(38959),n=r(40983),i=r(87768),o=r(59189),l=r(93103);let d=(0,a.createContext)(void 0),c=e=>{let{children:t}=e,r=(()=>{let e=(0,i.useRouter)(),{cleanPath:t}=(0,o.N)(),{searchString:r}=(()=>{let[e,t]=(0,a.useState)(window.location.search);return(0,a.useEffect)(()=>{let e=()=>{t(window.location.search)};return window.addEventListener("popstate",e),()=>{window.removeEventListener("popstate",e)}},[]),(0,a.useEffect)(()=>{let e=history.pushState,r=history.replaceState;return history.pushState=function(){for(var r=arguments.length,s=Array(r),a=0;a<r;a++)s[a]=arguments[a];let n=e.apply(this,s);return Promise.resolve().then(()=>t(window.location.search)),n},history.replaceState=function(){for(var e=arguments.length,s=Array(e),a=0;a<e;a++)s[a]=arguments[a];let n=r.apply(this,s);return Promise.resolve().then(()=>t(window.location.search)),n},()=>{history.pushState=e,history.replaceState=r}},[]),{searchString:e}})(),{recentSearches:s,addRecentSearch:d,removeRecentSearch:c}=(()=>{let[e,t]=(0,a.useState)([]),r=(0,a.useCallback)(e=>{l.Ay.set(l.SO,e,!0)},[]);return(0,a.useEffect)(()=>{let e=l.Ay.get(l.SO,!0);(e=>Array.isArray(e)&&e.every(e=>"string"==typeof e?.id&&"string"==typeof e?.text))(e)?t(e):t([])},[]),{recentSearches:e,addRecentSearch:(0,a.useCallback)(e=>{let s=e.trim();s&&t(e=>{let t=e.filter(e=>e.text.toLowerCase()!==s.toLowerCase()),a=[{id:`${Date.now()}-${Math.random().toString(36).slice(2,8)}`,text:s},...t].slice(0,10);return r(a),a})},[r]),removeRecentSearch:(0,a.useCallback)(e=>{t(t=>{let s=t.filter(t=>t.id!==e);return r(s),s})},[r])}})(),[u,h]=(0,a.useState)(""),[m,p]=(0,a.useState)([]),[g,v]=(0,a.useState)(!1),f=async e=>{if(e){v(!0);try{let t=(await (0,n.H2)({endpoint:"livesearch",fetchOptions:{method:"GET"},params:{q:e,limit:5}})).results||[];p(t)}catch(e){console.error("Error fetchSuggestions:",e),p([])}finally{v(!1)}}};return(0,a.useEffect)(()=>{h(new URLSearchParams(r).get("q")||"")},[r,t]),{searchValue:u,suggestions:m,recentSearches:s,isLoading:g,handleSearchChange:e=>{h(e),e?f(e):p([])},handleSelect:t=>{let s=new URLSearchParams(r);s.set("q",t),d(t),window.history.replaceState(null,"",`/search?${s.toString()}`),e.push(`/search?${s.toString()}`)},removeRecentSearch:c}})();return(0,s.jsx)(d.Provider,{value:r,children:t})},u=()=>{let e=(0,a.useContext)(d);if(void 0===e)throw Error("useSearchInput must be used within an SearchInputProvider");return e}},27231:e=>{e.exports={Image:"img_Image__wX75i","image--loading":"img_image--loading__iue0V","image--object-fit":"img_image--object-fit__Q1_1x","image--object-cover":"img_image--object-cover__8R4ed"}},29967:e=>{e.exports={CallToAction:"call-to-action_CallToAction__QrSVG",sm:"call-to-action_sm__HWZqz",md:"call-to-action_md__crdRU",lg:"call-to-action_lg__RvnM3",block:"call-to-action_block__3FgeY",icon:"call-to-action_icon__PuAok",disabled:"call-to-action_disabled__GfBP_",CTAprimary:"call-to-action_CTAprimary__u_v5l",LeadingIcon:"call-to-action_LeadingIcon__aRPKz",TrailingIcon:"call-to-action_TrailingIcon__lkRCk","CTAprimary-outline":"call-to-action_CTAprimary-outline__UaFox",CTAerror:"call-to-action_CTAerror__9ggRL","CTAerror-outline":"call-to-action_CTAerror-outline___otlg",CTAclear:"call-to-action_CTAclear__tctW3","CTAclear-outline":"call-to-action_CTAclear-outline__gqIT8",CTAsecondary:"call-to-action_CTAsecondary__6xwPZ","CTAsecondary-outline":"call-to-action_CTAsecondary-outline__p_N7e"}},32135:e=>{e.exports={Flex:"flex_Flex__nb_Mq",FlexRow:"flex_FlexRow__hWL65",FlexColumn:"flex_FlexColumn__90iKJ",FlexScroll:"flex_FlexScroll__LZsK9",FlexResponsiveScroll:"flex_FlexResponsiveScroll__ax0i6"}},32712:(e,t,r)=>{"use strict";r.d(t,{a:()=>w});var s=r(54631),a=r(38959),n=r(13043),i=r(28757),o=r(29641),l=r.n(o),d=r(20088),c=r(49467),u=r.n(c),h=r(5669),m=r(38114),p=r(57644),g=r(65371),v=r(58915);let f=(0,g.j)(null,"am-labs-modal"),_=(0,v.m)("Modal",{},(e,t)=>{let{in:r,size:o="md",children:c,keyboard:g=!0,centered:v=!0,onClose:_,title:y,hug:x,fluid:w,dismissible:j=!0,bodyScroll:k=!1,maxHeight:A,...S}=e,C=(0,n.Bi)("am-labs-modal--modal-header"),P=(0,n.Bi)("am-labs-modal--modal-body"),N=(0,d.U)("md","greaterThan"),I=(0,a.useCallback)(e=>{g&&("Escape"===e.key||"Esc"===e.key)&&_?.()},[_,g]);return(0,a.useEffect)(()=>(document.body.addEventListener("keydown",I),()=>{document.body.removeEventListener("keydown",I)}),[I]),(0,a.useEffect)(()=>(r&&(!k||N)&&(document.body.style.overflow="hidden"),()=>{(!k||N)&&(document.body.style.overflow="auto")}),[r,k,N]),r?(0,s.jsx)(h.o,{children:(0,s.jsxs)(i.n1,{contain:!0,restoreFocus:r,children:[(0,s.jsx)("div",{className:u().ModalBackdrop,"aria-hidden":"true","data-amlabs-modal-backdrop":!0},f),(0,s.jsx)("section",{onClick:j?_:void 0,className:l()([u().ModalSection,w&&u().fluid]),"data-amlabs-modal-backdrop":!0,"data-testid":"modal-backdrop",...S,children:(0,s.jsx)("div",{className:l()([u().Modal,v&&u().centered,u()[o],A&&u().maxHeight]),"data-amlabs-modal":!0,role:"dialog","aria-modal":r,"aria-hidden":!r,"aria-labelledby":y&&C,"aria-describedby":P,tabIndex:-1,
1children:(0,s.jsxs)("div",{className:l()([u().ModalContent,x&&u().hug,"custom-scrollbar"]),onClick:e=>e.stopPropagation(),ref:t,children:[j&&(0,s.jsx)(m.r,{wrapParentWith:w||N?"div":"none",className:u().ModalActionBar,children:(0,s.jsx)("button",{"aria-label":"Close Modal",type:"button",onClick:_,className:u().Close,children:(0,s.jsx)("img",{src:(0,p.f)("close"),"aria-hidden":"true",alt:"close icon"})})}),y&&(0,s.jsx)(b,{id:C,title:y}),(0,s.jsx)("div",{id:P,children:c})]})})})]})}):null}),b=e=>{let{title:t,children:r,noBorder:a,...n}=e;return(0,s.jsx)("div",{className:l()([u().ModalHeader,a&&u().noBorder]),...n,children:r||(0,s.jsx)("h3",{children:t})})};b.displayName="Modal.Header";let y=e=>{let{children:t,...r}=e;return(0,s.jsx)("div",{className:u().Footer,...r,children:t})};y.displayName="Modal.Footer";let x=e=>{let{children:t,noPadding:r,...a}=e;return(0,s.jsx)("div",{className:l()([u().ModalBody,r&&u().noPadding]),...a,children:t})};x.displayName="Modal.Body";let w=Object.assign(_,{Header:b,Footer:y,Body:x});_.displayName="Modal"},41240:(e,t,r)=>{"use strict";r.d(t,{FlexibleStateProvider:()=>i,P:()=>o});var s=r(54631),a=r(38959);let n=(0,a.createContext)({}),i=e=>{let{children:t}=e,[r,i]=(0,a.useState)({});return(0,s.jsx)(n.Provider,{value:{flexible:r,setFlexible:i},children:t})},o=()=>(0,a.useContext)(n)},41595:(e,t,r)=>{"use strict";r.d(t,{I1:()=>h,so:()=>g});var s=r(54631),a=r(38959),n=r(29641),i=r.n(n),o=r(32135),l=r.n(o),d=r(20088),c=r(91999);let u=a.forwardRef((e,t)=>{let{children:r,responsiveScroll:a,scrollable:n=!1,...o}=e,u=i()([l().Flex,n&&"custom-scrollbar",n&&l().FlexScroll,a&&l().FlexResponsiveScroll,o.className]),h=(Object.keys(o).some(e=>e.match(/sm|md|lg/))&&o.sm)??o.md??(o.lg||!1),m=(0,d.U)(Object.keys(o).find(e=>e.match(/sm|md|lg/)),"greaterThan"),g=(0,c.I)(p(o));return(0,s.jsx)("div",{ref:t,className:u,style:{...g,...m&&h},children:r})});u.displayName="FlexBase";let h=a.forwardRef((e,t)=>{let{children:r,responsiveScroll:a,scrollable:n=!1,...o}=e,u=i()([l().FlexColumn,n&&l().FlexScroll,a&&l().FlexResponsiveScroll,o.className]),h=(Object.keys(o).some(e=>e.match(/sm|md|lg/))&&o.sm)??o.md??(o.lg||!1),m=(0,d.U)(Object.keys(o).find(e=>e.match(/sm|md|lg/)),"greaterThan"),g=(0,c.I)(p(o));return(0,s.jsx)("div",{ref:t,className:u,style:{...g,...m&&h},children:r})});h.displayName="FlexColumn";let m=a.forwardRef((e,t)=>{let{children:r,responsiveScroll:a,scrollable:n=!1,noGutters:o,...d}=e,u=i()(["flex-row",l().FlexRow,n&&"custom-scrollbar",n&&l().FlexScroll,a&&l().FlexResponsiveScroll,d.className]),h=(0,c.I)({...p(d),marginRight:o&&0,marginLeft:o&&0});return(0,s.jsx)("div",{ref:t,className:u,style:h,children:r})});m.displayName="FlexRow";let p=e=>({justifyContent:e.justifyContent,alignItems:e.alignItems,alignSelf:e.alignSelf,alignContent:e.alignContent,flexWrap:e.flexWrap,flex:e.flex,flexDirection:e.direction,grow:e.grow,width:e.fullWidth?"100%":void 0,shrink:e.shrink,gap:e.gap,flexBasis:e.basis,...e.css}),g=Object.assign(u,{Row:m,Column:h})},46329:(e,t,r)=>{"use strict";r.d(t,{lV:()=>l,h:()=>i.h,FD:()=>i.FD,j4:()=>i.j4,le:()=>i.le,z5:()=>i.z5,w4:()=>i.w4,HK:()=>i.HK,RY:()=>i.RY,pJ:()=>i.pJ,Y5:()=>d,Oh:()=>i.Oh,V_:()=>i.V_,Vi:()=>n,n4:()=>i.n4,r6:()=>i.r6,Jh:()=>c,Z2:()=>o,SI:()=>a});var s=r(38959);function a(e){let[t,r]=(0,s.useState)("0:00");return(0,s.useEffect)(()=>{let t=Number(e);if(!1===Number.isFinite(t)||t<=0)return void r("0:00");r(n(e))},[e]),t}let n=e=>{let t,r,s,a="number"==typeof e?e:parseInt(`${e}`,10),n=Number.isFinite(a)&&a>0?a:0,i=[];return"hh:mm:ss".split(":").forEach(e=>{switch(e){case"hh":(t=Math.floor(n/3600))&&i.push(t);break;case"mm":(r=t?Math.floor(n/60%60):Math.floor(n/60))<10&&t&&(r=`0${r}`),i.push(r);break;case"ss":(s=Math.floor(n%60))<10&&(s=`0${s}`),i.push(s);break;default:i.push("")}}),i.join(":")};var i=r(8438);function o(e){return`${e.charAt(0).toUpperCase()}${e.substring(1)}`}function l(e){if(!e||!e?.geo_restricted)return e}function d(e,t){return t?.id&&e?.is_admin&&!t.geo_restricted&&["","no",void 0].includes(t.premium_user_only)&&["","no",void 0].includes(t.premium_download)}let c=(()=>{let e=new Map,t=new Date,r=e=>`${e}-${t}`;return(t,s)=>{e.get(r(t))||(s(),e.set(r(t),!0))}})()},48645:(e,t,r)=>{Promise.resolve().then(r.bind(r,82855)),Promise.resolve().then(r.bind(r,70525)),Promise.resolve().then(r.bind(r,16666)),Promise.resolve().then(r.bind(r,63813)),Promise.resolve().then(r.bind(r,52428)),Promise.resolve().then(r.bind(r,9920)),Promise.resolve().then(r.bind(r,88766)),Promise.resolve().then(r.bind(r,61543)),Promise.resolve().then(r.bind(r,14750)),Promise.resolve().then(r.bind(r,68661)),Promise.resolve().then(r.bind(r,42671)),Promise.resolve().then(r.bind(r,68989)),Promise.resolve().then(r.bind(r,69812)),Promise.resolve().then(r.bind(r,24172)),Promise.resolve().then(r.bind(r,78067)),Promise.resolve().then(r.bind(r,21994)),Promise.resolve().then(r.bind(r,80316)),Promise.resolve().then(r.bind(r,68961)),Promise.resolve().then(r.bind(r,77474)),Promise.resolve().then(r.bind(r,28497)),Promise.resolve().then(r.bind(r,89455)),Promise.resolve().then(r.bind(r,50809)),Promise.resolve().then(r.bind(r,50717)),Promise.resolve().then(r.bind(r,24506)),Promise.resolve().then(r.bind(r,43851)),Promise.resolve().then(r.bind(r,71644)),Promise.resolve().then(r.bind(r,76383)),Promise.resolve().then(r.bind(r,85926)),Promise.resolve().then(r.bind(r,75864)),Promise.resolve().then(r.bind(r,62792)),Promise.resolve().then(r.bind(r,14124)),Promise.resolve().then(r.bind(r,35406)),Promise.resolve().then(r.bind(r,33478)),Promise.resolve().then(r.bind(r,10412)),Promise.resolve().then(r.bind(r,67774)),Promise.resolve().then(r.bind(r,31481)),Promise.resolve().then(r.bind(r,31845)),Promise.resolve().then(r.bind(r,13367)),Promise.resolve().then(r.bind(r,76155)),Promise.resolve().then(r.bind(r,85402)),Promise.resolve().then(r.bind(r,15487)),Promise.resolve().then(r.bind(r,95626)),Promise.resolve().then(r.bind(r,35116)),Promise.resolve().then(r.bind(r,65768)),Promise.resolve().then(r.bind(r,94564)),Promise.resolve().then(r.bind(r,25764)),Promise.resolve().then(r.bind(r,8618)),Promise.resolve().then(r.bind(r,31835)),Promise.resolve().then(r.bind(r,38761)),Promise.resolve().then(r.bind(r,2295)),Promise.resolve().then(r.bind(r,94168)),Promise.resolve().then(r.bind(r,96305)),Promise.resolve().then(r.bind(r,93786)),Promise.resolve().then(r.bind(r,66090)),Promise.resolve().then(r.bind(r,527)),Promise.resolve().then(r.bind(r,45487)),Promise.resolve().then(r.bind(r,77051)),Promise.resolve().then(r.bind(r,63529)),Promise.resolve().then(r.bind(r,43822)),Promise.resolve().then(r.bind(r,29580)),Promise.resolve().then(r.bind(r,15365)),Promise.resolve().then(r.bind(r,2247)),Promise.resolve().then(r.bind(r,42941)
1),Promise.resolve().then(r.bind(r,95728)),Promise.resolve().then(r.bind(r,90154)),Promise.resolve().then(r.bind(r,95569)),Promise.resolve().then(r.bind(r,82366)),Promise.resolve().then(r.bind(r,39610)),Promise.resolve().then(r.bind(r,50005)),Promise.resolve().then(r.bind(r,35880)),Promise.resolve().then(r.bind(r,61826)),Promise.resolve().then(r.bind(r,26760)),Promise.resolve().then(r.bind(r,94296)),Promise.resolve().then(r.bind(r,87867)),Promise.resolve().then(r.bind(r,68555)),Promise.resolve().then(r.bind(r,95583)),Promise.resolve().then(r.bind(r,19874)),Promise.resolve().then(r.bind(r,302)),Promise.resolve().then(r.bind(r,94920)),Promise.resolve().then(r.bind(r,57029)),Promise.resolve().then(r.bind(r,42705)),Promise.resolve().then(r.bind(r,91106)),Promise.resolve().then(r.bind(r,53789)),Promise.resolve().then(r.bind(r,84196)),Promise.resolve().then(r.bind(r,56322)),Promise.resolve().then(r.bind(r,90970)),Promise.resolve().then(r.bind(r,52557)),Promise.resolve().then(r.bind(r,38743)),Promise.resolve().then(r.bind(r,42989)),Promise.resolve().then(r.bind(r,47108)),Promise.resolve().then(r.bind(r,92868)),Promise.resolve().then(r.bind(r,36090)),Promise.resolve().then(r.bind(r,92301)),Promise.resolve().then(r.bind(r,18945))},49244:(e,t,r)=>{"use strict";r.d(t,{K:()=>n});var s=r(38959),a=r(90542);let n=()=>(0,s.useContext)(a.T)},49467:e=>{e.exports={ModalSection:"modal_ModalSection__n49oj",Modal:"modal_Modal__yKWdj",ModalContent:"modal_ModalContent__vcqcI",hug:"modal_hug__QGXpn",ModalHeader:"modal_ModalHeader__Z2x0Y",ModalActionBar:"modal_ModalActionBar__aMFb6",Close:"modal_Close__nKL5j",ModalBackdrop:"modal_ModalBackdrop__snWJU","fade-in":"modal_fade-in__LSOmV","fade-ScaleIn":"modal_fade-ScaleIn__EEUx6",maxHeight:"modal_maxHeight__X9iKV",centered:"modal_centered__RJRN9",lg:"modal_lg__OVKhF",md:"modal_md__H9eJH",sm:"modal_sm__Gl5y9",xlg:"modal_xlg__coLdE",noBorder:"modal_noBorder__C4PNj",Footer:"modal_Footer__hVQq5",ModalBody:"modal_ModalBody__5uOm0",noPadding:"modal_noPadding__9iOXR"}},50159:e=>{e.exports={Disclosure:"disclosure_Disclosure__f6u4H",DisclosureTitle:"disclosure_DisclosureTitle__qoF70",DisclosureActions:"disclosure_DisclosureActions__SQk1W"}},52428:(e,t,r)=>{"use strict";r.d(t,{GoogleAdSense:()=>d});var s=r(54631),a=r(38959),n=r(87768),i=r(30579),o=r(3130);r(76771);var l=r(2292);let d=e=>{let{"data-ad-slot":t,"data-ad-format":r,"data-full-width-responsive":d,"data-ad-layout":c,className:u="",style:h={}}=e,{user:m}=(0,i.u)(),p=(0,n.usePathname)(),g=(0,a.useRef)(null),[v,f]=(0,a.useState)(!1),[_,b]=(0,a.useState)("idle"),[y,x]=(0,a.useState)(!1);return((0,a.useEffect)(()=>{let e=l.env.NEXT_PUBLIC_ADSENSE_CLIENT_ID||"ca-pub-3858157454086512";if(window.adsenseScriptLoaded||document.querySelector('script[src*="adsbygoogle.js"]'))return void x(!0);console.log("AdSense: Loading script");let t=document.createElement("script");t.async=!0,t.src=`https://pagead2.googlesyndication.com/pagead/js/adsbygoogle.js?client=${e}`,t.crossOrigin="anonymous",t.onload=()=>{console.log("AdSense: Script loaded successfully"),window.adsenseScriptLoaded=!0,x(!0)},t.onerror=()=>{console.error("AdSense: Failed to load script")},document.head.appendChild(t)},[]),(0,a.useEffect)(()=>{if(void 0===m||!y)return;f(!1),b("loading");let e=()=>{window.adsbygoogle&&g.current?(()=>{if(window.adsbygoogle&&g.current)try{let e=g.current.querySelector("ins[data-adsbygoogle-status]");e&&e.remove();let s=document.createElement("ins");s.className=`adsbygoogle ${u}`,s.setAttribute("data-ad-client","ca-pub-3858157454086512"),s.setAttribute("data-ad-slot",t),r&&s.setAttribute("data-ad-format",r),d&&s.setAttribute("data-full-width-responsive",d),h.width&&(s.style.width="number"==typeof h.width?`${h.width}px`:h.width),h.height&&(s.style.height="number"==typeof h.height?`${h.height}px`:h.height),h.display&&(s.style.display=h.display),c&&s.setAttribute("data-ad-layout",c),g.current.innerHTML="",g.current.appendChild(s),console.log("AdSense: Loading fresh ad for",p),window.adsbygoogle.push({}),f(!0),setTimeout(()=>{if(g.current){let e=g.current.querySelector("ins");if(e){let t=e.getAttribute("data-ad-status");"unfilled"===t?(console.log("AdSense: Ad unfilled, hiding component"),b("unfilled")):("filled"===t||e.querySelector("iframe"))&&(console.log("AdSense: Ad filled \uD83D\uDE80"),b("filled"))}}},3e3)}catch(e){console.error("AdSense: Error loading ad",e),b("unfilled")}})():setTimeout(e,100)},s=setTimeout(e,100);return()=>clearTimeout(s)},[m,p,t,r,d,c,y]),(0,o.Gl)(p)&&"unfilled"!==_)?(0,s.jsx)("div",{ref:g,className:`GoogleAdSense ${u}`,style:{...h,minHeight:0,visibility:v?"visible":"hidden"}}):null}},53358:(e,t,r)=>{"use strict";r.d(t,{W:()=>a});var s=r(38959);function a(e,t){let r=(0,s.useRef)(t),a=(0,s.useRef)(null);(0,s.useEffect)(()=>{r.current=t},[t]),(0,s.useEffect)(()=>{let t=t=>{!e.current||e.current.contains(t.target)||(a.current&&(clearTimeout(a.current),a.current=null),a.current=setTimeout(()=>{t instanceof MouseEvent?r.current(t):console.warn("TouchEvent handling is not implemented in the provided handler")},0),t.stopPropagation())};return document.addEventListener("mousedown",t),document.addEventListener("touchstart",t),()=>{document.removeEventListener("mousedown",t),document.removeEventListener("touchstart",t),a.current&&(clearTimeout(a.current),a.current=null)}},[e])}},54718:(e,t,r)=>{"use strict";r.d(t,{EN:()=>g,JQ:()=>p,j1:()=>o});var s=r(54631),a=r(38959),n=r(56280);let i=(0,a.createContext)({createDisclosure:()=>{throw(0,n.Su)("Disclosure_PROVIDER_REQUIRED","useDisclosure","Before calling `createDisclosure`, wrap your application with `<DisclosureProvider>`.")}});function o(){return(0,a.useContext)(i)}var l=r(50159),d=r.n(l),c=r(22606),u=r(32712),h=r(60140);let m={isOpen:!1,message:"",variant:"primary"};function p(e){let{children:t}=e,[r,o]=(0,a.useState)(m),l=(0,a.useCallback)(()=>{o(m)},[]),d=(0,a.useCallback)(e=>{let{message:t,...r}=e;if(!t)throw(0,n.$5)("Disclosure","Disclosure message is required");return o(e=>({...e,isOpen:!0,message:t,...r})),new Promise((t,r)=>{o(s=>({...s,onConfirm:()=>{e.onConfirm?.(),t()},onClose:r}))})},[]),c=(0,a.useCallback)(async function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"onClose";r[e]?.(),l()},[r,l]),u=(0,a.useMemo)(()=>({createDisclosure:d}),[d]);return(0,s.jsxs)(i.Provider,{value:u,children:[t,r.isOpen&&(0,s.jsx)(g,{disclosure:r,resetDisclosure:l,handleConfirm:()=>c("onConfirm"),handleCancel:()=>c("onClose"),children:r.message})]})}let g=e=>{let{disclosure:t,resetDisclosure:r,handleConfirm:a,handleCancel:n,children:i}=e;return(0,s.jsx)(u.a,{in:t?.isOpen,size:"sm",onClose:r,children:(0,s.jsxs)("div",{className:d().Disclosure,"data-amlabs-disclosure":!0,children:[t?.title&&(0,s.jsx)("p",{className:d().DisclosureTitle,children:t?.title}),(0,s.jsx)(c.D.h5,{fontSize:"18px",children:i}),(0,s.jsxs)("div",{className:d().DisclosureActions,children:[(0,s.jsx)(h.E,{variant:t?.variant,size:"lg",onClick:a,children:t?.confirmText||"Confirm"}),(0,s.jsx)(h.E,{size:"lg",variant:"clear",onClick:n,children:"Cancel"})]})]})})}},56226:(e,t,r)=>{"use strict";r.d(t,{Zl:()=>c,rt:()=>l,w9:()=>d});
1var s=r(40983),a=r(20434),n=r(93103),i=r(1872),o=r(2292);let l=async()=>{let e=(0,a.a5)(s.o_)||"",t=(0,a.a5)(s.TB)||"";await d({token:e,secret:t,expiration:0}),i.A.remove(s.o_,{path:"/",secure:!0,sameSite:"strict",domain:s.w9}),i.A.remove(s.TB,{path:"/",secure:!0,sameSite:"strict",domain:s.w9})},d=async e=>{let t,{token:r,secret:a,user:l,expiration:d}=e,c=Date.now()/1e3;t=l&&l?.is_admin?c+604800:c+31536e3;let u=((l&&l?.is_admin?t:d||t)-c)/3600/24;return(i.A.set(s.CV,r,{path:"/",expires:u,secure:"true"!==o.env.AUDIOMACK_DEV,sameSite:"lax",domain:s.w9}),i.A.set(s.bB,a,{path:"/",expires:u,secure:"true"!==o.env.AUDIOMACK_DEV,sameSite:"lax",domain:s.w9}),l)?(n.Ay.set(n.jN,+l.id),{token:r,secret:a,user:l}):{token:r,secret:a}},c=async e=>{if(!e)return;await d({token:e.oauth_token,secret:e.oauth_token_secret,user:e.user});let t=Date.now()/1e3,r=(t+604800-t)/3600/24;return i.A.set(s.o_,e.admin_token,{path:"/",expires:r,secure:!0,sameSite:"strict",domain:s.w9}),i.A.set(s.TB,e.admin_token_secret,{path:"/",expires:r,secure:!0,sameSite:"strict",domain:s.w9}),e}},58275:(e,t,r)=>{"use strict";r.d(t,{E:()=>h});var s=r(54631),a=r(38959),n=r(29641),i=r.n(n),o=r(27231),l=r.n(o),d=r(58915),c=r(46329);let u=` 2data:image/svg+xml,%0A%3Csvg width='300' height='152' viewBox='0 0 300 152' 3fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Crect width='300' height='152' 4fill='url(%23paint0_radial_3292_483)'/%3E%3Cdefs%3E%3CradialGradient id='paint0_radial_3292_483' cx='0' cy='0' r='1' 5gradientUnits='userSpaceOnUse' gradientTransform='translate(97.5 95.5) rotate(-20.7551) 6scale(269.489 322.405)'%3E%3Cstop stop-color='%23584E42'/%3E%3Cstop offset='1' 7stop-color='%23D9D9D9' stop-opacity='0'/%3E%3C/radialGradient%3E%3C/defs%3E%3C/svg%3E%0A 8`,h=(0,d.m)("Img",{lazyLoad:!0},(e,t)=>{let{src:r,alt:n,className:o,lazyLoad:d,size:h,blur:m,wrapperProps:p,noDynamic:g,...v}=e,[f,_]=(0,a.useState)(!d),[b,y]=(0,a.useState)(r),[x,w]=(0,a.useState)(!1),j=(0,a.useRef)(null),[k,A,S]=(0,a.useMemo)(()=>!r||r?.startsWith("data:")||g||r?.startsWith("/")?[r,"",""]:(0,c.z5)(r,{blur:m,width:"number"==typeof v?.width?v?.width:300}),[r,m,v?.width,g]),[C]=!r||r?.startsWith("data:")||g?[u]:(0,c.z5)(r,{size:45,blur:10});return(0,a.useEffect)(()=>{if(!d)return;let e=j.current,t=new IntersectionObserver(e=>{let[r]=e;r.isIntersecting&&(_(!0),y(k),t.unobserve(r.target))},{threshold:.5});return e&&t.observe(e),()=>{e&&t.unobserve(e)}},[k,d]),(0,a.useImperativeHandle)(t,()=>({...j.current})),(0,s.jsxs)("picture",{...p,children:[!x&&(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)("source",{srcSet:f&&b?A:"",media:"(min-width: 768px)"}),(0,s.jsx)("source",{srcSet:f&&b?S:"",media:"(max-width: 768px)"})]}),(0,s.jsx)("img",{src:f&&b?b:C,alt:n,className:i()([l().Image,(!f||!b)&&l()["image--loading"],h&&l()[`image--${h}`],...o?[o]:[]]),onError:e=>{e.currentTarget.src=u,w(!0),y(u)},ref:j,...v})]})})},58406:(e,t,r)=>{"use strict";r.d(t,{C:()=>i});var s=r(54631),a=r(38959),n=r(53358);let i=e=>{let{blockHoverControl:t,blockClickControl:r,titleChildren:i,children:o,contentClassName:l,contentOffset:d=10}=e,c=`${d}px`,[u,h]=(0,a.useState)(!1),m=()=>!t&&h(!0),p=()=>!t&&h(!1),g=(0,a.useRef)(null);return(0,n.W)(g,()=>h(!1)),(0,s.jsxs)("div",{className:"DropDown",ref:g,children:[(0,s.jsx)("span",{className:"DropDown-title",onMouseEnter:m,onMouseLeave:p,onClick:()=>!r&&h(!u),style:{paddingBottom:c},children:i}),o&&(0,s.jsx)("div",{onMouseEnter:m,onMouseLeave:p,className:`DropDown-content ${u?"active":""} ${l}`,style:{top:`calc(100% + ${c})`},children:o})]})}},58915:(e,t,r)=>{"use strict";r.d(t,{m:()=>a});var s=r(38959);function a(e,t,r){let a="function"==typeof t?{}:t,n=(0,s.forwardRef)("object"==typeof t?r:t);return n.displayName=e,n.defaultProps=a,n}},59189:(e,t,r)=>{"use strict";r.d(t,{N:()=>n});var s=r(87768),a=r(90420);let n=()=>{let e=e=>{let t=e.replace(/\/+$/,"")||"/";for(let e of a.A.locales){if(t===`/${e}`){t="/";break}if(t.startsWith(`/${e}/`)){t=t.replace(`/${e}`,"");break}}return t},t=e((0,s.usePathname)());return{isChildActive:r=>r?.some(r=>t===e(r.href)),isActiveParent:r=>{let s=e(r.href);return t===s||t.startsWith(`${s}/`)},normalizePath:e,cleanPath:t}}},60140:(e,t,r)=>{"use strict";r.d(t,{E:()=>m});var s=r(54631);r(38959);
8var a=r(29641),n=r.n(a),i=r(58915),o=r(41595),l=r(44979),d=r(65882),c=r(29967),u=r.n(c);let h=e=>(0,i.m)("CallToAction",{children:null,onPress:void 0,className:void 0,disabled:!1,outline:!1,variant:"primary",size:"md"},(t,r)=>{let{children:a,onPress:i,className:d,disabled:c=!1,outline:h=!1,variant:m="primary",size:p="md",isLoading:g=!1,loadingText:v=null,leadingIcon:f,trailingIcon:_,...b}=t,y=n()([u().CallToAction,h&&u()[`CTA${m}-outline`],m&&!h&&u()[`CTA${m}`],p&&u()[p],c&&u().disabled,f||_?u().icon:"",d]);return(0,s.jsx)(e||"button",{ref:r,className:y,disabled:c||g,"aria-disabled":c||g,...void 0!==g&&{"aria-busy":g},"data-amlabs-button":`cta-${m} ${h?"outline":""}`,onClick:i,tabIndex:c?-1:0,onKeyPress:e=>{("Enter"===e.key||" "===e.key)&&"function"==typeof i&&i(e)},...b,children:g?(0,s.jsxs)(o.so,{gap:"8px",children:[(0,s.jsx)(l.y,{size:{sm:14,md:16,lg:18}[p],thickness:"3",isLoading:g,color:"primary"===m?"#0d0d0d":"#ffa200"}),v&&(0,s.jsx)(s.Fragment,{children:v})]}):(0,s.jsxs)(s.Fragment,{children:[f&&(0,s.jsx)("span",{className:u().LeadingIcon,children:f}),a,_&&(0,s.jsx)("span",{className:u().TrailingIcon,children:_})]})})}),m=Object.assign(h("button"),{a:h(d.N),button:h("button")})},61312:(e,t,r)=>{"use strict";function s(e){return["yes",!0,"1",1,"true"].includes(e)}function a(e,t){return!(t&&t?.subscription)&&(e?.type!=="song"&&e?.tracks?e?.tracks?.some(e=>s(e.premium_user_only)):s(e?.premium_user_only))}r.d(t,{X0:()=>i,YL:()=>s,jT:()=>o,r6:()=>a});let n=null;function i(){if(null!==n)return!!n&&{passive:!0};try{let e=Object.defineProperty({},"passive",{get:()=>n=!0});window.addEventListener("test",()=>null,e),window.removeEventListener("test",()=>null,e)}catch(e){console.log("passiveOption error",e),n=!1}return!!n&&{passive:!0}}let o=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"am-labs:",r="",s=e||Math.random().toString(36).substring(7);for(let e=0;e<s.length;e++){let t=s.toUpperCase().charCodeAt(e);t>64&&t<91&&(r+=t-64+"")}return`${e||t}:${r.slice(0,r.length-1)}`}},62153:(e,t,r)=>{"use strict";r.d(t,{K:()=>s});let s=e=>{let{verified:t}=e,r=null,s=(r=t&&"no"!==t&&"authenticated-pending"!==t&&"authenticated-declined"!==t&&"banned"!==t?"tastemaker"===t?"Verified Tastemaker":"authenticated"===t||"verify-pending"===t||"verify-declined"===t?"Authenticated Artist":"Verified Artist":null)&&"tastemaker"===t;return{isVerified:r,isTasteMarker:s}}},63813:(e,t,r)=>{"use strict";r.d(t,{FixedAd:()=>c});var s=r(54631),a=r(38959),n=r(87768),i=r(30579),o=r(46329),l=r(3130),d=r(82855);let c=a.memo(()=>{let e=(0,n.usePathname)(),{user:t}=(0,i.u)();return(0,a.useMemo)(()=>{let r=l.wE.some(t=>e.includes(t)),s=(0,o.V_)(t);return r||s},[t,e])?null:(0,s.jsx)(d.AditudeAd,{placementName:"audiomack_banner",slotId:"audiomack_banner",className:"fixed-ad-responsive",style:{margin:"0 auto",display:"block"}})})},65882:(e,t,r)=>{"use strict";r.d(t,{N:()=>n});var s=r(38959);r(54631);let a=s.createContext({component:"a",setComponent:e=>{}}),n=e=>{let{component:t}=s.useContext(a);return s.createElement(e.href?.startsWith("https")||!e.href?"a":t,e)}},66106:(e,t,r)=>{"use strict";r.d(t,{A:()=>c,b:()=>d});var s=r(38959),a=r(20434),n=r(30579),i=r(40983),o=r(56226),l=r(7389);let d=()=>{let e=(0,a.a5)(i.CV),t=(0,a.a5)(i.bB),{user:r}=(0,n.u)(),{createToast:d,createDisclosure:c}=(0,l.j)();return{isMasquerading:s.useMemo(()=>((0,a.a5)(i.o_)||(0,a.a5)(i.TB))&&e!==i.o_&&t!==i.TB,[e,t]),handleStopMasquerading:s.useCallback(async e=>{e&&e.preventDefault(),await c({message:`Are you sure you want to stop masquerading as ${r?.name}?`,title:"Stop Masquerading",confirmText:"Stop Masquerading"});try{await (0,o.rt)?.(),window.location.reload(),d({message:`You are no longer masquerading as ${r?.name}`})}catch(e){console.log(e),d({message:e?.data?.message||"Something went wrong, please try again",variant:"error"})}},[r,c,d])}},c=d},67613:()=>{},70055:e=>{e.exports={Heading:"heading_Heading__L5e_i","Heading-h1":"heading_Heading-h1__wHRC7","Heading-h2":"heading_Heading-h2__6PgNb","Heading-h3":"heading_Heading-h3__dkwa3","Heading-h4":"heading_Heading-h4__UJ8EK","Heading-h5":"heading_Heading-h5__mrCYN","Heading-h6":"heading_Heading-h6__Eeja0","Heading-span":"heading_Heading-span__TyJNF","weight-400":"heading_weight-400__U9ehJ","weight-500":"heading_weight-500__OF_R5","weight-600":"heading_weight-600__Mi7MH","weight-700":"heading_weight-700__vB_bz","weight-800":"heading_weight-800__6gk8K","noOfLines-1":"heading_noOfLines-1__Uf1Sb","noOfLines-2":"heading_noOfLines-2__zI2ZS"}},70525:(e,t,r)=>{"use strict";r.d(t,{AditudeScript:()=>o});var s=r(54631),a=r(38959),n=r(87768),i=r(3130);function o(e){let{id:t="aditude-loader"}=e,r=(0,n.usePathname)();return(0,a.useEffect)(()=>
8{if((0,i.f3)(r||"")||document.getElementById(t))return;let e=!1,s=()=>{if(e||document.getElementById(t))return;let r=document.createElement("script");r.id=t,r.src="https://edge.aditude.io/site/audiomack-IKOJVsfn7p/audiomack-longform/audiomack.com/prod/load.js",r.async=!0,r.onload=()=>console.log("[Aditude] loaded"),document.body.appendChild(r)},a="function"==typeof window.requestIdleCallback,n=a?window.requestIdleCallback(s,{timeout:4e3}):window.setTimeout(s,2500);return()=>{e=!0,a?window.cancelIdleCallback?.(n):window.clearTimeout(n)}},[t,r]),(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)("link",{rel:"dns-prefetch",href:"https://edge.aditude.io"}),(0,s.jsx)("link",{rel:"dns-prefetch",href:"https://securepubads.g.doubleclick.net"})]})}},76771:()=>{},77655:e=>{e.exports={Avatar:"avatar_Avatar__I_Pcx",outline:"avatar_outline__ui8Bo",badge:"avatar_badge__xhptr",verified:"avatar_verified__UJ7UA",Badge:"avatar_Badge__ZkCB7","Avatar--size-lg":"avatar_Avatar--size-lg__u0pOS","Avatar--size-xlg":"avatar_Avatar--size-xlg__hXq7u",Avatar__Group:"avatar_Avatar__Group__gQr_V","Avatar__Group__spacing-group":"avatar_Avatar__Group__spacing-group__bu3cs","Avatar__Group__spacing-stack":"avatar_Avatar__Group__spacing-stack__eOsfI","Avatar--size-sm":"avatar_Avatar--size-sm__9rAvG","Avatar--size-md":"avatar_Avatar--size-md__IcKWq"}},81936:(e,t,r)=>{"use strict";r.d(t,{L:()=>l});var s=r(54631),a=r(38959),n=r(31224),i=r(95038),o=r(62153);let l=e=>{let{verified:t,className:r,size:l=12,blockTooltip:d}=e,c=(0,a.useRef)(null),{isTasteMarker:u,isVerified:h}=(0,o.K)({verified:t});return(0,s.jsxs)(s.Fragment,{children:[h&&(0,s.jsx)(n.I,{ref:c,"data-testid":"VerificationMark",className:`VerificationMark ${t} ${r}`,name:u?"testMarker":"verify","data-verified-type":h,size:l}),!d&&(0,s.jsx)(i.A,{placement:"top",targetRef:c,action:"hover",className:"VerificationMark-popover",children:(0,s.jsx)("span",{children:h})})]})}},82855:(e,t,r)=>{"use strict";r.d(t,{AditudeAd:()=>l});var s=r(54631),a=r(38959),n=r(87768),i=r(30579),o=r(3130);r(14549);let l=e=>{let{placementName:t="audiomack_banner",slotId:r="audiomack_banner",className:l="",style:d={},disabled:c=!1}=e,{user:u}=(0,i.u)(),h=(0,n.usePathname)(),m=(0,a.useRef)(null),[p,g]=(0,a.useState)(!1),[v,f]=(0,a.useState)(!1),[_,b]=(0,a.useState)(!1),y=(0,a.useCallback)(()=>{try{document.querySelectorAll(`#${r}`).forEach((e,t)=>{t>0&&e.remove()})}catch(e){console.error("[AditudeAd] Cleanup error:",e)}},[r]),x=(0,a.useCallback)(()=>{if(g(!1),f(!1),null===m.current)return;let e=m.current.querySelector(`#${r}`);null!==e&&(e.innerHTML="")},[r]),w=(0,a.useCallback)(e=>{if(null===e)return!1;let t=e.children.length>1,r=null!==e.querySelector("iframe"),s=null!==e.querySelector("ins"),a=e.textContent&&e.textContent.trim().length>0;return t||r||s||!!a},[]);return((0,a.useEffect)(()=>{if(c){y(),g(!1),f(!1);return}let e=0,t=()=>{e++,void 0!==window.tude?b(!0):e>=100?console.error("[AditudeAd] Aditude script (window.tude) never loaded. Check Network tab for load.js"):setTimeout(t,100)};return t(),()=>{y()}},[c,y,r]),(0,a.useEffect)(()=>{if(void 0===u||!1===_||c||!1===(0,o.Gl)(h))return;let e=()=>{if(void 0===window.tude||null===m.current)return void setTimeout(e,100);if(void 0!==window.tude&&null!==m.current)try{y(),x(),window.tude=window.tude||{cmd:[]},window.tude.cmd.push(function(){"function"==typeof window.tude?.refreshAdsViaDivMappings?window.tude.refreshAdsViaDivMappings([{divId:r,baseDivId:"pb-slot-audiomack-banner"}]):console.error("[AditudeAd] refreshAdsViaDivMappings is not available")}),g(!0),setTimeout(()=>{if(null===m.current)return;let e=m.current.querySelector(`#${r}`),t=w(e);f(t)},5e3)}catch(e){console.error("[AditudeAd] Ad load error:",e)}},t=setTimeout(e,100);return()=>clearTimeout(t)},[u,h,t,r,_,c,y,x,w]),!1===(0,o.Gl)(h)||!0===c)?null:(0,s.jsx)("div",{ref:m,className:`AditudeAd ${l}`,style:{...d,minHeight:0,visibility:p&&v?"visible":"hidden",height:p&&v?"auto":0,overflow:"hidden"},children:(0,s.jsx)("div",{style:{textAlign:"center"},id:r})})}},88406:(e,t,r)=>{"use strict";r.d(t,{K:()=>o});var s=r(54631);r(38959);var a=r(66092),n=r(49771),i=r(91693);let o=e=>{let{signUpTitle:t,signInTitle:r}=e,{onShowAuthModal:o}=(0,n.X)(),l=()=>{i.Ay.trackToApi({event:"ob_welcome",button:"signup"}),o()};return(0,s.jsxs)("div",{className:"HeaderAuth",children:[(0,s.jsx)(a.$,{_type:{type:"IconButton",_variant:"plain",_size:"small"},onClick:l,className:"HeaderAuth-link",children:t}),(0,s.jsx)("div",{className:"HeaderAuth-divider",children:"|"}),(0,s.jsx)(a.$,{_type:{type:"IconButton",_variant:"plain",_size:"small"},onClick:l,className:"HeaderAuth-link",children:r})]})}},88766:(e,t,r)=>{"use strict";r.d(t,{Header:()=>E});var s=r(54631),a=r(38959),n=r(31224),i=r(66092),o=r(88406),l=r(92301),d=r(30579),c=r(46329),u=r(23427),h=r(91693);let m=e=>{let{t}=e,{user:r}=(0,d.u)(),a=async()=>await h.Ay.trackToApi({event:"plus_view",button:"Header"});return(0,s.jsxs)("div",{className:"HeaderLogo",children:[(0,s.jsx)(l.default,{href:"/","data-testid":"header-logo",className:"HeaderLogo-logoLink","aria-label":"Go home",children:(0,s.jsx)(u.default,{src:(0,c.V_)(r)?"/icons/premium_logo.svg":"/icons/logo.svg",alt:t("logo_alt_text")||"",width:132,height:27})}),!(0,c.V_)(r)&&(0,s.jsx)("div",{className:"HeaderGetPlus","data-testid":"header-plus",children:(0,s.jsxs)(l.default,{onClick:a,href:"/plus",className:"HeaderGetPlus-link",children:[t("get_plus")," ",(0,s.jsx)("div",{className:"HeaderGetPlus-link-sign",children:"+"})]})})]})};var p=r(90993),g=r(9922);let v=e=>{let{isMenuOpen:t,handleMenuToggle:r,menuAltText:a,children:o,showMenuWrap:l=!0}=e;return(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)(i.$,{_type:{type:"IconButton",_variant:"plain"},className:"HeaderMobileMenu-btnMenu","data-testid":"header-menu-btn",onClick:r,"aria-label":a,children:(0,s.jsx)(n.I,{name:"drag",color:"var(--color-white)",width:16,alt:a})}),l&&t&&(0,s.jsxs)("div",{className:"HeaderMobileMenu-menuWrap",children:[(0,s.jsx)(i.$,{_type:{type:"IconButton",_variant:"plain"},className:"HeaderMobileMenu-btnClose","data-testid":"header-menu-close-btn",onClick:r,"aria-label":"close menu",children:(0,s.jsx)(n.I,{name:"close",color:"var(--color-white)",width:20})}),o]})]})};var f=r(87768),_=r(1762);function b(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return(0,s.jsx)(_.D,{className:e.className||"",autofocus:e.autofocus||!1,placeholder:e.placeholder||"Search for artists, songs, albums!"})}function y(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return(0,s.jsx)(a.Suspense,{fallback:null,children:(0,s.jsx)(b,{...e})})}let x=e=>{let{children:t,inputPlaceholder:r,logoAltText:o,getPlusLabel:d,isPremiumUser:c}=e,h=(0,f.usePathname)(),[m,p]=(0,a.useState)(!1),g=h?.includes("/search");return(0,a.useEffect)(()=>{g&&p(!1)},[g]),(0,s.jsxs)("div",{className:"HeaderMobile",children:[!m&&(0,s.jsxs)(s.Fragment,{children:[(0,s.jsxs)("div",{className:"HeaderMobile-brand",children:[(0,s.jsx)(l.default,{href:"/",className:"HeaderMobile-logoLink","aria-label":"Go home",children:(0,s.jsx)(u.default,{src:c?"/icons/premium_logo.svg":"/icons/logo.svg",alt:o,width:117,height:18,"data-testid":"header-mobile-logo"})}),!c&&(0,s.jsxs)(l.default,{href:"/plus",className:"HeaderMobile-getPlus","data-testid":"header-mobile-plus",children:[d," ",(0,s.jsx)("span",{className:"HeaderMobile-getPlusSign",children:"+"})]})]}),!g&&(0,s.jsx)(i.$,{_type:{type:"IconButton",_variant:"plain"},onClick:()=>p(!0),"data-testid":"header-search-btn",className:"HeaderMobile-btnSearch","aria-label":"Search",children:(0,s.jsx)(n.I,{name:"searchIcon",color:"var(--color-white)",width:18})}),t]}),m&&!g&&(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)(l.default,{href:"/",className:"HeaderMobile-logoLink","aria-label":"Go home",children:(0,s.jsx)(n.I,{name:"amMark",width:24,alt:o},"mobile-logo")}),(0,s.jsx)(y,{autofocus:!0,className:"HeaderMobile-searchInput",placeholder:r}),(0,s.jsx)(i.$,{_type:{type:"IconButton",_variant:"plain"},"data-testid":"header-close-search-btn",className:"HeaderMobile-btnClose",onClick:()=>p(!1),children:(0,s.jsx)(n.I,{name:"close",size:16,color:"var(--color-white)"})}),t]})]})};var w=r(6908),j=r(41240),k=r(15661),A=r(7305),S=r(49771),C=r(66106),P=r(3130),N=r(76122);let I=(0,A.default)(()=>r.e(9047).then(r.bind(r,39047)),{loadableGenerated:{webpack:()=>[39047]},ssr:!1}),$=(0,A.default)(()=>Promise.all([r.e(7360),r.e(259),r.e(5697),r.e(5400),r.e(2853),r.e(3209),r.e(3437),r.e(3565)]).then(r.bind(r,93565)),{loadableGenerated:{webpack:()=>[93565]},ssr:!1});function E(){let{t:e}=(0,w.Bd)(),{user:t}=(0,d.u)(),{flexible:r,setFlexible:l}=(0,j.P)(),{width:u}=(0,k.l)(),{isMasquerading:f,handleStopMasquerading:_}=(0,C.A)(),{onShowAuthModal:b}
8=(0,S.X)(),[A,E]=(0,a.useState)(!1),M=!!t,T=(0,c.V_)(t);return(0,s.jsx)("div",{className:"Header-container",children:(0,s.jsxs)("header",{className:"Header",children:[(0,s.jsxs)(v,{menuAltText:e("menu"),isMenuOpen:A,handleMenuToggle:()=>{u>=992&&u<=1024?l(e=>({...e,sidebarIsOpened:!r.sidebarIsOpened})):E(!A)},showMenuWrap:u<=991,children:[(0,s.jsx)(N.MainSidebar,{}),(0,s.jsx)(I,{closeModal:()=>E(!1)})]}),(0,s.jsx)(x,{logoAltText:e("logo_alt_text")||"",inputPlaceholder:e("search_input_placeholder"),getPlusLabel:e("get_plus"),isPremiumUser:T,children:(0,s.jsx)(p.j,{t:e,openModal:b,isMasquerading:f,user:t||void 0,children:(0,s.jsx)(g.o,{isMasquerading:f,logOutTitle:e("link_user_log_out"),handleStopMasquerading:_,masqueradingTitle:e("link_user_stop_masquerading")})})}),(0,s.jsx)(m,{t:e}),(0,s.jsx)(y,{}),(0,s.jsxs)("div",{className:"Header-actions",children:[!M&&(0,s.jsx)(o.K,{signUpTitle:e("sign_up"),signInTitle:e("sign_in")}),M&&(0,s.jsx)($,{t:e,user:t,isMasquerading:f,handleStopMasquerading:_}),(0,s.jsxs)(i.$,{as:"link",target:"_blank",className:"Header-uploadBtn",href:(0,P.fd)("/upload"),onClick:()=>h.Ay.trackToApi({event:"creator_app_open",button:"Upload"}),_type:{type:"Button",_size:"medium-large",_variant:"filledDark"},children:[(0,s.jsx)(n.I,{size:16,name:"uploadIcon",color:"var(--color-orange)"}),e("upload")]})]})]})})}},89594:(e,t,r)=>{"use strict";r.d(t,{e:()=>g});var s=r(54631),a=r(38959),n=r(29641),i=r.n(n),o=r(31835),l=r(94564),d=r(77655),c=r.n(d),u=r(91999),h=r(58275);let m=e=>Array.isArray(e),p="https://assets.audiomack.com/default-artist-image.png";function g(e){let{src:t,spacing:r=m(t)&&"stack"||null,size:n="md",isVerified:d,outline:g,alt:v,isBadge:f,lazy:_}=e,b="string"==typeof n,y="number"==typeof n?n:({sm:40,md:60,lg:140,xlg:200})[n],x=(0,u.I)({width:b?void 0:n,height:b?void 0:n}),w=(0,a.useMemo)(()=>d&&"no"!==d&&"authenticated-pending"!==d&&"authenticated-declined"!==d&&"banned"!==d?"tastemaker"===d?"Verified Tastemaker":"authenticated"===d||"verify-pending"===d||"verify-declined"===d?"Authenticated Artist":"Verified Artist":null,[d]);return(0,s.jsx)("figure",{className:i()([c().Avatar,b&&(e=>{switch(e){case"sm":return c()["Avatar--size-sm"];case"md":default:return c()["Avatar--size-md"];case"lg":return c()["Avatar--size-lg"];case"xlg":return c()["Avatar--size-xlg"]}})(n),g&&c().outline,f&&c().badge,d&&c().verified]),style:b?void 0:{"--image-size":`${n}px`},children:m(t)?(0,s.jsx)("div",{className:i()([c().Avatar__Group,(e=>{switch(e){case"group":return c()["Avatar__Group__spacing-group"];case"stack":return c()["Avatar__Group__spacing-stack"]}})(r)]),children:t.map((e,t)=>(0,s.jsx)(h.E,{alt:v||"Avatar",src:e||p,wrapperProps:{style:x},width:y,lazyLoad:_},`${e}:${t}`))}):(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)(h.E,{alt:v||"Avatar",src:t||p,wrapperProps:{style:x},width:y,lazyLoad:_}),w&&(0,s.jsx)(s.Fragment,{children:"tastemaker"===d?(0,s.jsx)(l.default,{className:c().Badge,"data-verified-type":w}):(0,s.jsx)(o.default,{className:c().Badge,"data-verified-type":w})})]})})}g.defaultProps={src:"",size:"md",isVerified:!1,outline:!1,isBadge:!1,lazy:!0}},90542:(e,t,r)=>{"use strict";r.d(t,{T:()=>s});let s=(0,r(38959).createContext)({currentSong:null,queue:[],message:null,currentAudioVolume:0,isPlaying:!1,loading:!1,audio:null})},90993:(e,t,r)=>{"use strict";r.d(t,{j:()=>m});var s=r(54631);r(38959);var a=r(92301),n=r(58406),i=r(31224),o=r(3130),l=r(23427),d=r(46329),c=r(81936),u=r(88406),h=r(91693);let m=e=>{let{children:t,t:r,user:l,isMasquerading:c}=e,m=l?.artistCanSendMessage?(0,o.fd)("/connect/new-message"):(0,o.fd)("/connect/overview"),g=async()=>{await h.Ay.trackToApi({event:"support_view"})},v=[{title:"link_user_profile",href:`/${l?.url_slug}`,show:!0},{title:"link_user_notifications",href:"/my-library/notifications",show:!!l,className:"onlyOnMobile"},{title:"link_user_creator_dashboard",href:(0,o.fd)("/dashboard"),show:!0},{title:"Boost Song",href:(0,o.fd)("/new-boost"),show:l?.upload_count||!1},{title:"link_user_send_message",href:m,show:l?.upload_count||!1,onClick:()=>h.Ay.trackToApi({event:"creator_app_open",button:"Settings - Message"})},{title:"link_user_account_settings",href:(0,o.fd)("/edit/profile"),show:!0},{title:"link_user_switch_account",href:"/switch-account",show:!c,className:"withDivider"},{title:"link_user_generate_amp_code",href:(0,o.fd)("/amp-code"),show:l?.is_admin||l?.is_amp_approver},{title:"link_user_manage_subscription",href:"/plus/manage",show:(0,d.V_)(l)},{title:"link_user_support",href:"https://audiomack.zendesk.com/hc/en-us",show:!0,onClick:()=>g()}];return l?(0,s.jsxs)(n.C,{contentClassName:"HeaderUser-content",titleChildren:(0,s.jsx)(p,{user:l}),children:[v.map(e=>{let t=e.href?.startsWith("http");return e.show?(0,s.jsxs)(a.default,{href:e.href,onClick:e?.onClick,target:t?"_blank":"_self",className:`HeaderUser-link ${e.className||""}`,children:[r(e.title),t&&(0,s.jsx)(i.I,{name:"externalLink",color:"var(--color-white)",size:12})]},e.title):null}),t]}):(0,s.jsx)(u.K,{signUpTitle:r("sign_up"),signInTitle:r("sign_in")})};function p(e){let{user:t}=e,{image:r}=t;return r?(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)(l.default,{src:r+"?width=240",alt:"avatar",width:38,height:38,className:"HeaderUser-avatarImg"}),(0,s.jsx)(c.L,{verified:t.verified,size:22,blockTooltip:!0,className:"HeaderUser-avatarIcon"})]}):(0,s.jsx)(i.I,{name:"user",color:"var(--color-white)",size:32})}},91288:(e,t,r)=>{"use strict";r.d(t,{u:()=>a});var s=r(38959);let a=e=>{let{suggestions:t,onSelect:r,setVal:a,setShowSuggestions:n,setActiveSuggestionIndex:i,activeSuggestionIndex:o}=e,l=(0,s.useCallback)(e=>{"function"==typeof r&&r(e,"Suggestion"),a(e),n(!1)},[r]);return{handleKeyDown:(0,s.useCallback)(e=>{let{key:s,target:a}=e,{value:d}=a;switch(s){case"ArrowDown":e.preventDefault(),i(e=>0===t.length?-1:e<t.length-1?e+1:0);break;case"ArrowUp":e.preventDefault(),i(e=>0===t.length?-1:e>0?e-1:t.length-1);break;case"Enter":if(e.preventDefault(),o>=0&&t[o]){let e=t[o];"string"==typeof e?l(e):l("string"==typeof e.artist?e.artist:e.artist.name),n(!1)}else r?.(d,"Direct");n(!1);break;case"Escape":e.preventDefault(),n(!1)}},[t,o,l]),handleSelect:l}}},91999:(e,t,r)=>{"use strict";r.d(t,{I:()=>a});var s=r(38959);function a(e){let t=e=>Object.keys(e).filter(t=>null!=e[t]).reduce((t,r)=>({...t,[r]:e[r]}),{});return(0,s.useMemo)(()=>({...t(e)}),[JSON.stringify(e),t])}},95038:(e,t,r)=>{"use strict";r.d(t,{A:()=>c});var s=r(54631),a=r(38959),n=r(1822),i=r(4014),o=r(71112),l=r(42803),d=r
8(53358);let c=e=>{let{targetRef:t,children:r,placement:c="auto",action:u="click",className:h="",blockClosePopover:m=!1,zIndex:p=1e3}=e,[g,v]=(0,a.useState)(!1),f=(0,a.useRef)(),{refs:_,x:b,y,strategy:x}=(0,i.we)({open:g,onOpenChange:v,strategy:"fixed",placement:"auto"===c?"bottom":c,middleware:[(0,o.cY)(10),"auto"===c?(0,o.RK)({allowedPlacements:["top","bottom","right","left"]}):(0,o.UU)({fallbackPlacements:["bottom","right","left","top"]}),(0,o.BN)({padding:8})],whileElementsMounted:l.ll});return((0,a.useEffect)(()=>{t?.current&&_.setReference(t.current)},[t,_]),(0,d.W)({current:_.floating.current},()=>{m||v(!1)}),(0,a.useEffect)(()=>{let e=t?.current;if(!e)return;let r=()=>v(e=>!e),s=()=>{f.current&&clearTimeout(f.current),f.current=void 0,v(!0)},a=()=>{f.current=setTimeout(()=>v(!1),300)};return"click"===u?e.addEventListener("click",r):(e.addEventListener("mouseover",s),e.addEventListener("mouseleave",a)),()=>{"click"===u?e.removeEventListener("click",r):(e.removeEventListener("mouseover",s),e.removeEventListener("mouseleave",a)),f.current&&clearTimeout(f.current)}},[u,t]),g)?(0,n.createPortal)((0,s.jsx)("div",{ref:_.setFloating,style:{position:x,top:y??0,left:b??0,zIndex:p},onMouseOver:()=>"hover"===u&&void(f.current&&clearTimeout(f.current),f.current=void 0,v(!0)),onMouseLeave:()=>"hover"===u&&void(f.current=setTimeout(()=>v(!1),300)),className:`Popover ${h}`,role:"hover"===u?"tooltip":"dialog","aria-hidden":!g,"data-placement":c,children:r}),document.body):null}}},e=>{e.O(0,[2237,619,6984,7711,5400,8912,6888,5160,3933,5569,9129,3210,8999,1327,3427,8004,7119,6908,7816,8117,7919,7053,5413,8177,5447,6122,8630,7987,7358],()=>e(e.s=48645)),_N_E=e.O()}]);
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.