PageSourceSearch

https://edjing.com/xx/k6K_97b5.js

js edjing.com collected 2026-10-01 11:35:26 UTC 8,464 bytes, 1 lines download raw bytes

1import{B as K}from"./ZV8vym6t.js";import{l as z,z as F,m as J,S as I,y as X,q as Y,s as Z,v as Q,I as ee,J as te,K as ae,c as B,w as $,x as se,B as oe,o as n,b as l,a as L,u as ne,C as re,t as o,f as m,F as y,r as W,_ as ie,e as h,g as k}from"./BNv7CK9h.js";import{i as le,_ as ce,a as me}from"./6jxvzwpr.js";import{c as ue,_ as de}from"./BC9Ro0FA.js";import{_ as _e}from"./D_4wTWTT.js";import{_ as ge}from"./CEfGovzi.js";import{c as pe,a as he}from"./C7B6233U.js";import{f as be}from"./SOnsDkTv.js";import{u as fe}from"./CDMZvDBC.js";function P(u){let c="";const d=[];for(let g=0;g<u.length;g++){const _=u[g].normalize("NFD").replace(new RegExp("\\p{M}","gu"),"").toLowerCase();for(const M of _)c+=M,d.push(g)}return d.push(u.length),{text:c,origin:d}}function ye(u,c){const d=a=>a.artist_id&&a.slug?`/artist/${a.slug}/${a.artist_id}`:void 0;if(!u)return[];if(!c?.length)return[{text:u}];const g=P(u),_=[];for(const a of c){const i=P(a.name||"").text;if(!i)continue;let C=0;for(;;){const w=g.text.indexOf(i,C);if(w<0)break;const T=g.origin[w],v=g.origin[w+i.length];if(_.every(e=>v<=e.start||T>=e.end)){_.push({start:T,end:v,to:d(a)});break}C=w+1}}if(!_.some(a=>a.to&&a.to===d(c[0])))return[{text:u,to:d(c[0])}];_.sort((a,i)=>a.start-i.start);const b=[];let f=0;for(const a of _)a.start>f&&b.push({text:u.slice(f,a.start)}),b.push({text:u.slice(a.start,a.end),to:a.to}),f=a.end;return f<u.length&&b.push({text:u.slice(f)}),b}const ke={class:"catalog-breadcrumbs"},xe={class:"catalog-hero"},we=["src","alt"],$e={class:"catalog-hero__info"},Le={class:"catalog-title"},Me={class:"catalog-artist catalog-credit"},Te={class:"catalog-meta"},Ne={key:1,class:"track-header__album"},Be={key:0,class:"catalog-genres"},Ce={key:0,class:"catalog-section"},ve={class:"catalog-section__title"},Se={class:"catalog-section__lead"},Ie={key:0,class:"catalog-chart-line"},Ee={key:1,class:"catalog-section"},We={class:"catalog-section__title"},Ae={class:"catalog-section__lead"},Re={key:2,class:"catalog-section"},Oe={class:"catalog-section__title"},ze={class:"catalog-tracks"},A="en",D="/songs-to-mix/methodology",Ke={__name:"[[uuid]]",async setup(u){let c,d;const g=/^[a-z]{2}[a-z0-9]{3}\d{7}$/i,_=se(),M=_.params.slug,b=_.params.uuid,f=b&&g.test(b)?b:!b&&g.test(M)?M:null;if(!f||_.params.lang)throw z({statusCode:404,message:"Track not found",fatal:!0});const a={home:"Home",trackNumber:"Track",released:"Released",moreBy:"More by",mixedWith:"Often mixed with",trend:"Trend on edjing Mix",trendLead:"Share of edjing Mix streaming users who load this song each week, as an index: 100 is its best week. The last four weeks are highlighted.",mixedWithLead:"Songs that edjing Mix users put on the other deck while this one was loaded. The bars show how often, compared with the other songs they mix it with.",howTrend:"How the trend is calculated",howMixedWith:"How mixes are counted"},i=s=>a[s];function C(s){const x=Math.floor(s/6e4),E=Math.floor(s%6e4/1e3);return`${x}:${E.toString().padStart(2,"0")}`}function w(s){const x=Math.floor(s/1e3);return`PT${Math.floor(x/60)}M${x%60}S`}const{data:T,error:v}=([c,d]=F(()=>fe(`/api/seo/track-pages/${f.toLowerCase()}`,{query:{lang:"en"}},"$lWXbZMVKRu")),c=await c,d(),c);if(!T.value)throw z(pe(v.value,"Track not found"));const e=T.value,S=`/track/${e.slug}/${e.isrc}`;le(_.path,S)||([c,d]=F(()=>oe(S,{replace:!0})),await c,d());const p=`${I}${S}`,R=be(e.seo.release_date),t={name:e.seo.name,artistName:e.artist.name,credit:ye(e.artist.name,e.artists||[]),albumName:e.album.name,albumTo:e.album?.album_id&&e.album?.slug?`/album/${e.album.slug}/${e.album.album_id}`:null,tags:e.tags||[],moreBy:e.more_by_artist||[],mixedWith:e.mixed_with||[],trend:e.trend||null,chartLine:ue(e.chart),moreByLabel:e.artists&&e.artists[0]?.name||e.artist.name,image:e.seo.image,trackNumber:e.seo.track_number,durationMs:e.seo.duration_ms,releaseLabel:R?`${i("released")} ${R}`:null,appleId:e.apple_music_id,slug:e.slug,breadcrumbs:[{label:i("home"),to:"/"},{label:"Songs to mix",to:"/songs-to-mix"},...e.artist?.artist_id&&e.artist?.slug?[{label:e.artist.name,to:`/artist/${e.artist.slug}/${e.artist.artist_id}`}]:[],{label:e.seo.name}]};J({htmlAttrs:{lang:"en"},templateParams:{schemaOrg:{path:S}},title:e.seo.seo_title,meta:[{name:"description",content:e.seo.meta_description},{property:"og:title",content:e.seo.seo_title},{property:"og:description",content:e.seo.meta_description},{property:"og:url",content:p},{property:"og:type",content:"music.song"},{property:"og:site_name",content:X},{property:"og:locale",content:"en_US"},{property:"og:image",content:e.seo.image},{property:"music:duration",content:Math.round(e.seo.duration_ms/1e3)},{name:"twitter:card",content:"summary_large_image"},...he(e.indexable),{name:"twitter:image",content:e.seo.image}],link:[{rel:"canonical",href:p},{rel:"alternate",hreflang:"en",href:p},{rel:"alternate",hreflang:"x-default",href:p}]});const O=[e.sources?.apple_music?.url,e.sources?.spotify?.url,e.sources?.tidal?.url,e.
1sources?.beatport?.url].filter(Boolean);return Y([Z({"@id":`${p}#webpage`,name:e.seo.seo_title,description:e.seo.meta_description,url:p,inLanguage:"en",mainEntity:{"@id":`${p}#recording`}}),Q({itemListElement:t.breadcrumbs.map(s=>({name:s.label,item:s.to?`${I}${s.to}`:p}))}),{"@type":"MusicRecording","@id":`${p}#recording`,name:e.seo.name,url:p,isrcCode:e.isrc.toUpperCase(),image:ae(e.seo.image,p),...e.seo.duration_ms?{duration:w(e.seo.duration_ms)}:{},...e.seo.release_date?{datePublished:e.seo.release_date}:{},...e.seo.genres?.length?{genre:e.seo.genres}:{},byArtist:(e.artists?.length?e.artists:[{name:e.artist.name}]).map(s=>({"@type":"MusicGroup",name:s.name,...s.artist_id&&s.slug?{"@id":te(s.slug,s.artist_id),url:`${I}/artist/${s.slug}/${s.artist_id}`}:{}})),inAlbum:{"@type":"MusicAlbum",name:e.album.name,...e.album.album_id&&e.album.slug?{"@id":ee(e.album.slug,e.album.album_id),url:`${I}/album/${e.album.slug}/${e.album.album_id}`}:{},...e.album.apple_url?{sameAs:[e.album.apple_url]}:{}},...O.length?{sameAs:O}:{}}]),(s,x)=>{const E=K,N=ie,H=ce,V=de,U=_e,j=me,q=ge;return n(),B(q,null,{default:$(()=>[l("div",null,[l("div",ke,[L(E,{lang:A,items:t.breadcrumbs},null,8,["items"])]),l("section",xe,[l("img",{src:("resizedImage"in s?s.resizedImage:ne(re))(t.image,560),alt:`${t.name} by ${t.artistName}`,class:"catalog-hero__image",width:"280",height:"280"},null,8,we),l("div",$e,[x[0]||(x[0]=l("p",{class:"catalog-eyebrow"},"Track",-1)),l("h1",Le,o(t.name),1),l("p",Me,[(n(!0),m(y,null,W(t.credit,(r,G)=>(n(),m(y,{key:G},[r.to?(n(),B(N,{key:0,to:r.to},{default:$(()=>[h(o(r.text),1)]),_:2},1032,["to"])):(n(),m(y,{key:1},[h(o(r.text),1)],64))],64))),128))]),l("p",Te,[t.albumTo?(n(),B(N,{key:0,to:t.albumTo,class:"track-header__album"},{default:$(()=>[h(o(t.albumName),1)]),_:1},8,["to"])):(n(),m("span",Ne,o(t.albumName),1)),t.releaseLabel?(n(),m(y,{key:2},[h(" · "+o(t.releaseLabel),1)],64)):k("",!0),t.trackNumber?(n(),m(y,{key:3},[h(" · "+o(i("trackNumber"))+" "+o(t.trackNumber),1)],64)):k("",!0),t.durationMs?(n(),m(y,{key:4},[h(" · "+o(C(t.durationMs)),1)],64)):k("",!0)]),t.tags?.length?(n(),m("div",Be,[(n(!0),m(y,null,W(t.tags,r=>(n(),B(N,{key:r.tag_id,to:`/tags/${r.slug}/${r.tag_id}`,class:"catalog-genre"},{default:$(()=>[h(o(r.name),1)]),_:2},1032,["to"]))),128))])):k("",!0),L(H,{"apple-id":t.appleId,"apple-type":"song",slug:t.slug,"track-name":t.name,"artist-name":t.artistName,lang:A,variant:"hero"},null,8,["apple-id","slug","track-name","artist-name"])])]),t.trend?.weeks?.some(r=>r.index>0)?(n(),m("section",Ce,[l("h2",ve,o(i("trend")),1),l("p",Se,[h(o(i("trendLead"))+" ",1),L(N,{to:`${D}#trend`},{default:$(()=>[h(o(i("howTrend")),1)]),_:1},8,["to"])]),L(V,{weeks:t.trend.weeks,label:t.trend.label},null,8,["weeks","label"]),t.chartLine?(n(),m("p",Ie,o(t.chartLine),1)):k("",!0)])):k("",!0),t.mixedWith?.length?(n(),m("section",Ee,[l("h2",We,o(i("mixedWith"))+" "+o(t.name),1),l("p",Ae,[h(o(i("mixedWithLead"))+" ",1),L(N,{to:`${D}#mixed-with`},{default:$(()=>[h(o(i("howMixedWith")),1)]),_:1},8,["to"])]),L(U,{tracks:t.mixedWith},null,8,["tracks"])])):k("",!0),t.moreBy?.length?(n(),m("section",Re,[l("h2",Oe,o(i("moreBy"))+" "+o(t.moreByLabel),1),l("div",ze,[(n(!0),m(y,null,W(t.moreBy,r=>(n(),B(j,{key:r.uuid,uuid:r.uuid,slug:r.slug,name:r.seo.name,"artist-name":t.moreByLabel,image:r.seo.image,"apple-id":r.apple_music_id,lang:A},null,8,["uuid","slug","name","artist-name","image","apple-id"]))),128))])])):k("",!0)])]),_:1})}}};export{Ke as default};

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.