1!function(){try{var e="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:{},t=(new e.Error).stack;t&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[t]="61beeba3-cee5-43fa-b250-24c11b06c0a9",e._sentryDebugIdIdentifier="sentry-dbid-61beeba3-cee5-43fa-b250-24c11b06c0a9")}catch(e){}}();"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[3524],{24802:function(e,t,i){var n,s=i(67294);function l(){return(l=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var i=arguments[t];for(var n in i)({}).hasOwnProperty.call(i,n)&&(e[n]=i[n])}return e}).apply(null,arguments)}t.Z=e=>s.createElement("svg",l({width:20,height:20,viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg"},e),n||(n=s.createElement("path",{d:"M16.9795 1.5498C17.2213 1.58414 17.4349 1.73454 17.5459 1.95703C17.6726 2.21132 17.6445 2.51614 17.4736 2.74316L13.9453 7.43066L17.4736 12.1191C17.6441 12.3461 17.6725 12.6502 17.5459 12.9043C17.419 13.1585 17.1581 13.3192 16.874 13.3193H3.875V17.708C3.87484 18.122 3.53895 18.4578 3.125 18.458C2.71088 18.458 2.37516 18.1221 2.375 17.708V2.29199C2.375 1.87778 2.71079 1.54199 3.125 1.54199H16.874L16.9795 1.5498ZM3.875 11.8193H15.3711L12.4082 7.88184C12.2072 7.61478 12.2072 7.24655 12.4082 6.97949L15.3711 3.04199H3.875V11.8193Z",fill:"currentColor"})))},53067:function(e,t,i){i.d(t,{v:function(){return j}});var n=i(85893),s=i(67294),l=i(36422),r=i(3833),a=i(28573),o=i(93550),u=i(57625),d=i(44155),c=i(50671),p=i(76232),h=i(76797),f=i(37425),v=i(76441),y=i(35246),g=i(31651),C=i(68458),x=i(7586);let b=(0,C.default)(p.Z).withConfig({displayName:"playlist-details-menu__CopiedIcon",componentId:"sc-d6ad77-0"})(["width:20px;height:20px;path{fill:",";fill-opacity:1;}"],e=>{let{theme:t}=e;return t.colors.text_primary}),S=e=>{let{analyticsSource:t,playlist:i,withDetailsLink:l=!0,onDismiss:p,onNavigateDismiss:C,onSharePress:S,onAddToQueue:w}=e,{addToQueue:j}=(0,u.Z)({playlist:i,analyticsSource:t}),m=w??j,k=(0,d.v9)(e=>e.user.isAuthed),L=(0,d.v9)(e=>e.user.isSubscribed),T=(0,s.useRef)(null),[P,Z]=(0,s.useState)(!1),{isDesktop:M,isMobile:D}=(0,g.d)();return(0,n.jsx)(c.Fe,{children:(0,n.jsxs)(c.X,{children:[(0,n.jsx)(r.Z,{variant:"popupMenuItem",contentType:"playlists",content:i,onDismiss:p,retainPopupMenuTapState:!0}),(0,n.jsx)(c.ld,{onClick:e=>{var t;if(e.stopPropagation(),!k||!L){null==p||p(),m();return}m(),null===(t=T.current)||void 0===t||t.trigger(),setTimeout(()=>null==p?void 0:p(),x.HF)},icon:(0,n.jsx)(y.D,{ref:T,size:20,look:"dark"}),text:"Add to queue",retainTapState:!0}),l&&(0,n.jsx)(c.N7,{href:`/playlists/${i.slug}`,onClick:()=>a.c.track("playlist_click",{audio_id:i.id,audio_title:i.title,source:t}),onDismiss:C??p,icon:(0,n.jsx)(h.Z,{}),text:"See playlist details",retainTapState:!0}),M&&(0,n.jsx)(c.ld,{onClick:e=>{e.stopPropagation(),(0,o.v)(`${window.location.origin}/playlists/${i.slug}`),Z(!0),setTimeout(()=>Z(!1),x.Xr),setTimeout(()=>null==p?void 0:p(),x.hE)},icon:P?(0,n.jsx)(b,{}):(0,n.jsx)(v.Z,{}),text:P?"Link copied!":"Copy link",retainTapState:!0}),D&&S&&(0,n.jsx)(c.ld,{onClick:S,icon:(0,n.jsx)(f.Z,{}),text:"Share",retainTapState:!0})]})})};var w=i(93071);function j(e){let{playlist:t,analyticsSource:i,withDetailsLink:r,mobileHeader:a,onAddToQueue:o}
1=e,[u,d]=(0,s.useState)(!1),c=(0,s.useRef)(),p=(0,s.useRef)(),h=(0,n.jsx)(S,{playlist:t,analyticsSource:i,withDetailsLink:r,onDismiss:()=>{var e;return null===(e=c.current)||void 0===e?void 0:e.call(c)},onNavigateDismiss:()=>{var e;return null===(e=p.current)||void 0===e?void 0:e.call(p)},onSharePress:()=>d(!0),onAddToQueue:o}),{popup:f,popupButtonRef:v,dismissPopup:y,dismissOnMouseLeave:g,dismissForNavigation:C,forceClose:x,open:b,isOpen:j,isOpenForStyling:m}=(0,w.B)({menu:h,mobileHeader:a,hideOnClick:!1});return c.current=y,p.current=C,{popup:f,popupButtonRef:v,shareSheet:u?(0,n.jsx)(l.c,{playlist:t,baseZIndex:10002,onDismiss:()=>d(!1),onDismissMenu:x}):null,dismissPopup:y,dismissOnMouseLeave:g,open:b,isOpen:j,isOpenForStyling:m}}},68696:function(e,t,i){i.d(t,{M:function(){return D}});var n,s,l=i(85893),r=i(67294),a=i(36422),o=i(27094),u=i(93550),d=i(44155),c=i(76232),p=i(76797),h=i(37425);function f(){return(f=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var i=arguments[t];for(var n in i)({}).hasOwnProperty.call(i,n)&&(e[n]=i[n])}return e}).apply(null,arguments)}var v=e=>r.createElement("svg",f({width:20,height:20,viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg"},e),n||(n=r.createElement("path",{d:"M10.8428 2.84841C12.5848 1.10685 15.4084 1.10688 17.1504 2.84841C18.8929 4.59064 18.893 7.41583 17.1504 9.15798L9.90039 16.406L8.65723 17.6492C8.14169 18.1646 7.44186 18.4547 6.71289 18.4549H2.29199C1.8779 18.4549 1.54219 18.1189 1.54199 17.7049V13.2859C1.54204 12.5565 1.83182 11.8563 2.34766 11.3406L10.3848 3.30642L10.8428 2.84841ZM3.5918 12.2185C3.10375 12.7067 3.10366 13.498 3.5918 13.9861L6.01172 16.406C6.4998 16.8936 7.29126 16.8937 7.7793 16.406L15.1016 9.08376L10.9141 4.89626L3.5918 12.2185ZM16.0898 3.90896C14.9577 2.77731 13.1374 2.7532 11.9766 3.83767L16.1611 8.02126C17.245 6.86022 17.2217 5.04076 16.0898 3.90896Z",fill:"currentColor"}))),y=i(24802),g=i(76441);function C(){return(C=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var i=arguments[t];for(var n in i)({}).hasOwnProperty.call(i,n)&&(e[n]=i[n])}return e}).apply(null,arguments)}var x=e=>r.createElement("svg",C({width:20,height:20,viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg"},e),s||(s=r.createElement("path",{d:"M11.6152 0.722656C13.0015 0.863811 14.0838 2.03455 14.084 3.45801V3.625H17.5V3.63477C17.573 3.62815 17.6471 3.625 17.7217 3.625H18.334L18.4102 3.62891C18.7883 3.66738 19.084 3.98672 19.084 4.375C19.084 4.76328 18.7883 5.08262 18.4102 5.12109L18.334 5.125H17.7217C17.303 5.125 16.9422 5.40353 16.8281 5.79492L15.5469 16.0498C15.3747 17.4258 14.2042 18.458 12.8174 18.458H7.18262C5.79584 18.458 4.62529 17.4258 4.45312 16.0498L3.17285 5.80664C3.07023 5.43669 2.75033 5.16455 2.36523 5.12891L2.2793 5.125H1.66699C1.25278 5.125 0.916992 4.78921 0.916992 4.375C0.916992 3.96079 1.25278 3.625 1.66699 3.625H2.2793L2.5 3.63477V3.625H5.91699V3.45801C5.91717 1.93937 7.14832 0.708008 8.66699 0.708008H11.334L11.6152 0.722656ZM4.64746 5.51172C4.66416 5.58468 4.67841 5.65888 4.68848 5.73438C4.69483 5.78217 4.69596 5.82954 4.69336 5.87598L5.94141 15.8633C6.0196 16.4888 6.55221 16.958 7.18262 16.958H12.8174C13.4478 16.958 13.9804 16.4888 14.0586 15.8633L15.3066 5.87012C15.3045 5.82554 15.3064 5.78017 15.3125 5.73438C15.3226 5.65892 15.3359 5.58464 15.3525 5.51172L15.4004 5.125H4.59961L4.64746 5.51172ZM8.33301 7.79199C8.74722 7.79199 9.08301 8.12778 9.08301 8.54199V13.542C9.08283 13.9561 8.74711 14.292 8.33301 14.292C7.91905 14.2918 7.58318 13.9559 7.58301 13.542V8.54199C7.58301 8.12789 7.91894 7.79217 8.33301 7.79199ZM11.667 7.79199C12.0811 7.79217 12.417 8.12789 12.417 8.54199V13.542C12.4168 13.9559 12.0809 14.2918 11.667 14.292C11.2529 14.292 10.9172 13.9561 10.917 13.542V8.54199C10.917 8.12778 11.2528 7.79199 11.667 7.79199ZM8.66699 2.20801C7.97675 2.20801 7.41717 2.7678 7.41699 3.45801V3.625H12.584V3.45801C12.5838 2.81121 12.0918 2.2792 11.4619 2.21484L11.334 2.20801H8.66699Z",fill:"currentColor"}))),b=i(50671),S=i(93684),w=i(31651),j=i(3833),m=i(7586),k=i(28573),L=i(68458),T=i(35246);let P=(0,L.default)(c.Z).withConfig({displayName:"user-playlist-details-menu__CopiedIcon",componentId:"sc-4ff7c5fe-0"})(["width:20px;height:20px;path{fill:",";fill-opacity:1;}"],e=>{let{theme:t}=e;return t.colors.text_primary}),Z=e=>{let{playlist:t,analyticsSource:i=o.y.homepage,withDetailsLink:n=!0,editDetails:s,askToReportPlaylist:a,askToDeletePlaylist:c,onDismiss:f,onNavigateDismiss:C,onSharePress:L,onAddToQueue:Z,showMediaActions:M=!0}=e,D=(0,d.v9)(e=>e.user),_=t.user.id===(null==D?void 0:D.id),A=(0,d.v9)(e=>e.user.isAuthed),H=(0,d.v9)(e=>e.user.isSubscribed),{addToQueue:I}=(0,S.t)({playlist:t,analyticsSource:i}),V=Z??I,[E,R]=(0,r.useState)(!1),{isDesktop:$,isMobile:O}=(0,w.d)(),B=(0,r.useRef)(null),N=M&&(0,l.jsx)(b.ld,{onClick:e=>{var t;if(e.stopPropagation(),!A||!H){null==f||f(),V();return}V(),null===(t=B.current)||void 0===t||t.trigger(),setTimeout(()=>null==f?void 0:f(),m.HF)},icon:(0,l.jsx)(T.D,{ref:B,size:20,look:"dark"}),text:"Add to queue",retainTapState:!0}),F=n&&(0,l.jsx)(b.N7,{href:`/users-playlists/${t.id}`,onClick:()=>k.c.track("playlist_click",{audio_id:t.id,audio_title:t.title,source:i}),onDismiss:C??f,icon:(0,l.jsx)(p.Z,{}),text:"See playlist details",retainTapState:!0}),X=(0,l.jsxs)(r.Fragment,{children:[$&&(0,l.jsx)(b.ld,{onClick:e=>{e.stopPropagation(),(0,u.v)(`${window.location.origin}/users-playlists/${t.id}`),R(!0),setTimeout(()=>R(!1),m.Xr),setTimeout(()=>null==f?void 0:f(),m.hE)},icon:E?(0,l.jsx)(P,{}):(0,l.jsx)(g.Z,{}),text:E?"Link copied!":"Copy link",retainTapState:!0}),O&&L&&(0,l.jsx)(b.ld,{onClick:L,icon:(0,l.jsx)(h.Z,{}),text:"Share",retainTapState:!0})]});return(0,l.jsx)(b.Fe,{children:_?(0,l.jsxs)(b.X,{children:[N,X,F,s&&(0,l.jsx)(r.Fragment,{children:(0,l.jsx)(b.ld,{onClick:()=>{null==f||f(),s()},icon:(0,l.jsx)(v,{}),text:O?"Edit playlist":"Edit details",retainTapState:!0})}),c&&(0,l.jsx)(b.ld,{onClick:()=>{null==f||f(),c()},icon:(0,l.jsx)(x,{}),text:"Delete playlist",destructive:!0,retainTapState:!0})]}):(0,l.jsxs)(b.X,{children:[N,M&&(0,l.jsx)(j.Z,{variant:"popupMenuItem",contentType:"userPlaylists",content:t,onDismiss:f,retainPopupMenuTapState:!0}),F,X,A&&a&&(0,l.jsx)(b.ld,{onClick:()=>{null==f||f(),a()},icon:(0,l.jsx)(y.Z,{}),text:"Report",retainTapState:!0})]})})};var M=i(93071);function D(e){let{playlist:t,analyticsSource:i,withDetailsLink:n,mobileHeader:s,editDetails:o,askToReportPlaylist:u,askToDeletePlaylist:d,showMediaActions:c}=e,[p,h]=(0,r.useState)(!1),f=(0,r.useRef)(),v=(0,r.useRef)(),y=(0,l.jsx)(Z,{playlist:t,analyticsSource:i,withDetailsLink:n,editDetails:o,askToReportPlaylist:u,askToDeletePlaylist:d,showMediaActions:c,onDismiss:()=>{var e;return null===(e=f.current)||void 0===e?void 0:e.call(f)},onNavigateDismiss:()=>{var e;return null===(e=v.current)||void 0===e?void 0:e.call(v)},onSharePress:()=>h(!0)}
1),{popup:g,popupButtonRef:C,dismissPopup:x,dismissOnMouseLeave:b,dismissForNavigation:S,forceClose:w,open:j,isOpen:m,isOpenForStyling:k}=(0,M.B)({menu:y,mobileHeader:s,hideOnClick:!1});return f.current=x,v.current=S,{popup:g,popupButtonRef:C,shareSheet:p?(0,l.jsx)(a.c,{userPlaylist:t,baseZIndex:10002,onDismiss:()=>h(!1),onDismissMenu:w}):null,dismissPopup:x,dismissOnMouseLeave:b,open:j,isOpen:m,isOpenForStyling:k}}},89937:function(e,t,i){i.d(t,{M:function(){return u}});var n=i(67294),s=i(28157),l=i(90336),r=i(21861),a=i(31651);let o=e=>{let{audio:t}=e,[i,o]=(0,n.useState)(!1);(0,n.useEffect)(()=>{o(!0)},[]);let u=(0,s.I0)(),{isMobile:d}=(0,a.d)(),c=(0,s.v9)(e=>t?e.history.currentlyListening[t.id]:0),p=(0,s.v9)(e=>{var i;return!!t&&(null===(i=e.audioManager.current)||void 0===i?void 0:i.id)===t.id}),h=(0,s.v9)(e=>!!t&&p&&e.audio.isPlaying),f=p||i&&c>0,v=(0,n.useCallback)((e,t,i,n,s,a,o,c,f)=>{h?u((0,l.sB)(!1)):p?u((0,l.sB)(!0)):u((0,r.Vn)(e,t,i,n,s,a,o,c,d,f))},[h,p,u,d]);return{isPlaying:h,isInProgress:f,setPlaying:v}},u=e=>{let{analyticsSource:t,audio:i,listTitle:r,listHref:a}=e,u=(0,s.I0)(),{isPlaying:d,setPlaying:c,isInProgress:p}=o({audio:i}),h=(0,s.v9)(e=>e.user.isAuthed),f=(0,s.v9)(e=>e.user.isSubscribed),v=(0,s.v9)(e=>!!a&&e.audioManager.listHref===a&&e.audio.isPlaying),y=(0,s.v9)(e=>!!a&&e.audioManager.listHref===a&&!!e.audioManager.current.id);return{handlePlayAll:(0,n.useCallback)((e,i,n,s)=>{c(e,n,i,h,f??!1,t,r??i,a,s)},[c,h,f,t,r,a]),handlePlayOrResume:(0,n.useCallback)(function(e,i,n){let s=!(arguments.length>3)||void 0===arguments[3]||arguments[3];v?u((0,l.sB)(!1)):y?u((0,l.sB)(!0)):c(e,n,i,h,f??!1,t,r??i,a,s)},[c,h,f,t,r,a,v,y,u]),isPlaying:i?d:v,isInProgress:p}}},57625:function(e,t,i){i.d(t,{Z:function(){return o}});var n=i(21861),s=i(28157),l=i(31651),r=i(49379),a=i(455);let o=e=>{let{playlist:t,analyticsSource:i,orderedAudios:o}=e,u=(0,s.I0)(),d=(0,s.v9)(e=>e.user),{isMobile:c}=(0,l.d)(),p=async()=>await (0,r.l3)(`${a.R.PLAYLIST}/${t.slug}`).then(e=>e.json());return{play:async()=>{if(o){if(!o.length)return;u((0,n.Vn)(0,o,t.title,d.isAuthed,d.isSubscribed??!1,i,t.title,`/playlists/${t.slug}`,c));return}try{let e="audios"in t?t:await p();u((0,n.Vn)(0,e.audios,e.title,d.isAuthed,d.isSubscribed??!1,i,e.title,`/playlists/${e.slug}`,c))}catch(e){console.log("error",e)}},addToQueue:()=>d.isAuthed&&d.isSubscribed?o?!!o.length&&(u((0,n.pn)(t,o,d.isAuthed,d.isSubscribed??!1,c)),!0):((async()=>{try{let e="audios"in t?t:await p();u((0,n.pn)(e,e.audios,d.isAuthed,d.isSubscribed??!1,c))}catch(e){console.log("error",e)}})(),!0):(u((0,n.pn)({title:t.title},[],d.isAuthed,d.isSubscribed??!1,c)),!1)}}},93684:function(e,t,i){i.d(t,{t:function(){return p}});var n=i(21861),s=i(28157),l=i(31651),r=i(49379),a=i(455),o=i(89937),u=i(86668),d=i.n(u),c=i(28543);let p=e=>{let{playlist:t,analyticsSource:i,orderedAudios:u}=e,p=(0,s.I0)(),h=(0,s.v9)(e=>e.user),{isMobile:f}=(0,l.d)(),{}=(0,o.M)({analyticsSource:i}),v=async()=>await (0,r.qK)(`${a.R.USERS_PLAYLIST}/${t.id}`,"GET",void 0,void 0,!0).then(e=>e.json());return{play:async()=>{if(u){if(!u.length)return;p((0,n.Vn)(0,u,t.title,h.isAuthed,h.isSubscribed??!1,i,t.title,`/users-playlists/${t.id}`,f));return}try{let e="audios"in t?t:await v();p((0,n.Vn)(0,e.audios,e.title,h.isAuthed,h.isSubscribed??!1,i,e.title,`/users-playlists/${e.id}`,f))}catch(e){console.log("error",e)}},addToQueue:async()=>{if(u){if(!u.length)return;p((0,n.pn)(t,u,h.isAuthed,h.isSubscribed??!1,f));return}try{let e="audios"in t?t:await v();p((0,n.pn)(e,e.audios,h.isAuthed,h.isSubscribed??!1,f))}catch(e){console.log("error",e)}},save:async(e,i,n,s)=>{let l="audios"in t?t:await v();if(n===l.isPublic&&e===l.title&&i===l.description&&s.map(e=>e.id)===l.audios.map(e=>e.id))return null;try{let l=await (0,r.qK)(a.R.USERS_PLAYLIST,"POST",void 0,{id:t.id,isPublic:n,title:e,description:i,audios:s.map(e=>e.id),voices:d()(s.map(e=>e.voice.id))},!0);if(200===l.status){p((0,c.aM)(h.token));let e=await v();return p((0,c.YI)(!0)),e}}catch(e){console.log(e)}return null}}}}}]);
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.