PageSourceSearch

https://mirlo.space/assets/Index-B94HPm9x.js

js mirlo.space collected 2026-09-24 18:00:23 UTC 33,082 bytes, 2 lines download raw bytes

1import{v as R,j as t,m as v,q as E,g as ne,c as U,R as X,L as se}from"./vendor-DxTwiIr9.js";import re from"./MarkdownContent-ClOmzFGL.js";import{d7 as L,ca as ae,k as N,j as T,u as oe,z as P,H as le,bp as ce,bo as de,d8 as he,ab as G,B as z,d9 as me,bq as ue,br as pe,m as fe,o as K,a5 as ge,bI as ve,G as xe,d as A,bH as we,g as be}from"./index-CiJGP6rH.js";import{R as Q}from"./ReleaseCard-CwPYqphU.js";import{S as I}from"./SectionHeader-IeINz79E.js";import{T as V}from"./TrackgroupGrid-BdlJMdC3.js";import{A as ye}from"./ArtistSquare-_twDtQGQ.js";import{u as D,T as $}from"./i18n-BmyL0TSe.js";import{c as F}from"./_commonjs-dynamic-modules-TDtrdbi3.js";import{T as je}from"./TrackGroupPills-y-94dEdV.js";import"./charts-CNUI2Ec7.js";import"./markdown-CNkDHZ-E.js";import"./MarkdownWrapper-Ct2t5o4G.js";import"./editor-Cm2fdcmq.js";import"./player-Dfxbckx2.js";import"./ArtistLink-D4U3tsoo.js";import"./UploadArtistImage-CfT2OTwF.js";import"./UploadImage-Bbxrr8bB.js";import"./Thermometer-DJZ5Kyow.js";import"./PlayableCover-CuXOwg_n.js";import"./PlayingMusicBars-D88FL7SS.js";const ke=()=>{const{data:a}=R(L());return a!=null&&a.announcementText?t.jsx("div",{className:v({name:"1eti07e",styles:"background:var(--mi-button-color);color:var(--mi-button-text-color);padding:1rem;border-radius:5px;width:100%;border-radius:0;display:flex;align-items:center;justify-content:center;gap:1rem;font-size:1.2rem;#markdown-content{margin-top:0;}a{color:var(--mi-button-text-color);text-decoration:underline;}"}),children:t.jsx(re,{content:a.announcementText})}):null},Te=E("section",{target:"es7ince0"})("width:100%;background-color:color-mix(\n    in srgb,\n    var(--mi-text-color) 6%,\n    var(--mi-background-color)\n  );padding:4rem 0;&>:first-child{margin-top:0;}.image-container{background-color:#fff;}a{color:var(--mi-text-color);}ul{grid-template-columns:repeat(6, minmax(0, 7rem));justify-content:space-between;gap:1.5rem 1rem;}@media screen and (max-width: ",T.medium,"px){ul{grid-template-columns:repeat(3, minmax(0, 7rem));}}"),Ye=()=>{const{t:a}=D("translation",{keyPrefix:"releases"}),{data:y}=R(ae());return(y!=null?y:[]).length===0?null:t.jsxs(Te,{"aria-labelledby":"featured-artists",children:[t.jsx(I,{children:t.jsx(N,{variant:"big",justify:"space-between",className:"flex flex-row",children:t.jsx("h1",{className:"h5 section-header__heading",id:"featured-artists",children:a("featuredArtists")})})}),t.jsx("div",{className:"pt-6",children:t.jsx(N,{variant:"big",justify:"center",children:t.jsx("div",{className:"flex w-full flex-row flex-wrap p-[var(--mi-side-paddings-xsmall)]",children:t.jsx(V,{gridNumber:"6",as:"ul",role:"list",children:y==null?void 0:y.map(u=>t.jsx(ye,{artist:u,circle:!0},u.id))})})})})]})};var J={exports:{}};(function(a,y){(function(u){a.exports=u()})(function(){return function u(g,k,o){function p(r,f){if(!k[r]){if(!g[r]){var j=typeof F=="function"&&F;if(!f&&j)return j(r,!0);if(c)return c(r,!0);var d=new Error("Cannot find module '"+r+"'");throw d.code="MODULE_NOT_FOUND",d}var h=k[r]={exports:{}};g[r][0].call(h.exports,function(i){var e=g[r][1][i];return p(e||i)},h,h.exports,u,g,k,o)}return k[r].exports}for(var c=typeof F=="function"&&F,m=0;m<o.length;m++)p(o[m]);return p}({1:[function(u,g,k){var o=Object.getOwnPropertySymbols,p=Object.prototype.hasOwnProperty,c=Object.prototype.propertyIsEnumerable;function m(f){if(f==null)throw new TypeError("Object.assign cannot be called with null or undefined");return Object(f)}function r(){try{if(!Object.assign)return!1;var f=new String("abc");if(f[5]="de",Object.getOwnPropertyNames(f)[0]==="5")return!1;for(var j={},d=0;d<10;d++)j["_"+String.fromCharCode(d)]=d;var h=Object.getOwnPropertyNames(j).map(function(e){return j[e]});if(h.join("")!=="0123456789")return!1;var i={};return"abcdefghijklmnopqrst".split("").forEach(function(e){i[e]=e}),Object.keys(Object.assign({},i)).join("")==="abcdefghijklmnopqrst"}catch(e){return!1}}g.exports=r()?Object.assign:function(f,j){for(var d,h=m(f),i,e=1;e<arguments.length;e++){d=Object(arguments[e]);for(var n in d)p.call(d,n)&&(h[n]=d[n]);if(o){i=o(d);for(var s=0;s<i.length;s++)c.call(d,i[s])&&(h[i[s]]=d[i[s]])}}return h}},{}],2:[function(u,g,k){(function(o){(function(){var p,c,m,r,f,j;typeof performance<"u"&&performance!==null&&performance.now?g.exports=function(){return performance.now()}:typeof o<"u"&&o!==null&&o.hrtime?(g.exports=function(){return(p()-f)/1e6},c=o.hrtime,p=function(){var d;return d=c(),d[0]*1e9+d[1]},r=p(),j=o.uptime()*1e9,f=r-j):Date.now?(g.exports=function(){return Date.now()-m},m=Date.now()):(g.exports=function(){return new Date().getTime()-m},m=new Date().getTime())}).call(this)}).call(this,u("_process"))},{_process:3}],3:[function(u,g,k){var o=g.exports={},p,c;function m(){throw new Error("setTimeout has not been defined")}function r(){throw new Error("clearTimeout has not been defined")}(function(){try{typeof setTimeout=="function"?p=setTimeout:p=m}catch(l){p=m}try{typeof clearTimeout=="function"?c=clearTimeout:c=r}catch(l){c=r}})();function f(l){if(p===setTimeout)return setTimeout(l,0);if((p===m||!p)&&setTimeout)return p=setTimeout,setTimeout(l,0);try{return p(l,0)}catch(b){try{return p.call(null,l,0)}catch(Y){return p.call(this,l,0)}}}function j(l){if(c===clearTimeout)return clearTimeout(l);if((c===r||!c)&&clearTimeout)return c=clearTimeout,clearTimeout(l);try{return c(l)}catch(b){try{return c.call(null,l)}catch(Y){return c.call(this,l)}}}var d=[],h=!1,i,e=-1;
1function n(){!h||!i||(h=!1,i.length?d=i.concat(d):e=-1,d.length&&s())}function s(){if(!h){var l=f(n);h=!0;for(var b=d.length;b;){for(i=d,d=[];++e<b;)i&&i[e].run();e=-1,b=d.length}i=null,h=!1,j(l)}}o.nextTick=function(l){var b=new Array(arguments.length-1);if(arguments.length>1)for(var Y=1;Y<arguments.length;Y++)b[Y-1]=arguments[Y];d.push(new x(l,b)),d.length===1&&!h&&f(s)};function x(l,b){this.fun=l,this.array=b}x.prototype.run=function(){this.fun.apply(null,this.array)},o.title="browser",o.browser=!0,o.env={},o.argv=[],o.version="",o.versions={};function w(){}o.on=w,o.addListener=w,o.once=w,o.off=w,o.removeListener=w,o.removeAllListeners=w,o.emit=w,o.prependListener=w,o.prependOnceListener=w,o.listeners=function(l){return[]},o.binding=function(l){throw new Error("process.binding is not supported")},o.cwd=function(){return"/"},o.chdir=function(l){throw new Error("process.chdir is not supported")},o.umask=function(){return 0}},{}],4:[function(u,g,k){(function(o){for(var p=u("performance-now"),c=typeof window>"u"?o:window,m=["moz","webkit"],r="AnimationFrame",f=c["request"+r],j=c["cancel"+r]||c["cancelRequest"+r],d=0;!f&&d<m.length;d++)f=c[m[d]+"Request"+r],j=c[m[d]+"Cancel"+r]||c[m[d]+"CancelRequest"+r];if(!f||!j){var h=0,i=0,e=[],n=1e3/60;f=function(s){if(e.length===0){var x=p(),w=Math.max(0,n-(x-h));h=w+x,setTimeout(function(){var l=e.slice(0);e.length=0;for(var b=0;b<l.length;b++)if(!l[b].cancelled)try{l[b].callback(h)}catch(Y){setTimeout(function(){throw Y},0)}},Math.round(w))}return e.push({handle:++i,callback:s,cancelled:!1}),i},j=function(s){for(var x=0;x<e.length;x++)e[x].handle===s&&(e[x].cancelled=!0)}}g.exports=function(s){return f.call(c,s)},g.exports.cancel=function(){j.apply(c,arguments)},g.exports.polyfill=function(){c.requestAnimationFrame=f,c.cancelAnimationFrame=j}}).call(this,typeof U<"u"?U:typeof self<"u"?self:typeof window<"u"?window:{})},{"performance-now":2}],5:[function(u,g,k){var o=function(){function h(i,e){for(var n=0;n<e.length;n++){var s=e[n];s.enumerable=s.enumerable||!1,s.configurable=!0,"value"in s&&(s.writable=!0),Object.defineProperty(i,s.key,s)}}return function(i,e,n){return e&&h(i.prototype,e),n&&h(i,n),i}}();function p(h,i){if(!(h instanceof i))throw new TypeError("Cannot call a class as a function")}var c=u("raf"),m=u("object-assign"),r={propertyCache:{},vendors:[null,["-webkit-","webkit"],["-moz-","Moz"],["-o-","O"],["-ms-","ms"]],clamp:function(i,e,n){return e<n?i<e?e:i>n?n:i:i<n?n:i>e?e:i},data:function(i,e){return r.deserialize(i.getAttribute("data-"+e))},deserialize:function(i){return i==="true"?!0:i==="false"?!1:i==="null"?null:!isNaN(parseFloat(i))&&isFinite(i)?parseFloat(i):i},camelCase:function(i){return i.replace(/-+(.)?/g,function(e,n){return n?n.toUpperCase():""})},accelerate:function(i){r.css(i,"transform","translate3d(0,0,0) rotate(0.0001deg)"),r.css(i,"transform-style","preserve-3d"),r.css(i,"backface-visibility","hidden")},transformSupport:function(i){for(var e=document.createElement("div"),n=!1,s=null,x=!1,w=null,l=null,b=0,Y=r.vendors.length;b<Y;b++)if(r.vendors[b]!==null?(w=r.vendors[b][0]+"transform",l=r.vendors[b][1]+"Transform"):(w="transform",l="transform"),e.style[l]!==void 0){n=!0;break}switch(i){case"2D":x=n;break;case"3D":if(n){var C=document.body||document.createElement("body"),M=document.documentElement,W=M.style.overflow,O=!1;document.body||(O=!0,M.style.overflow="hidden",M.appendChild(C),C.style.overflow="hidden",C.style.background=""),C.appendChild(e),e.style[l]="translate3d(1px,1px,1px)",s=window.getComputedStyle(e).getPropertyValue(w),x=s!==void 0&&s.length>0&&s!=="none",M.style.overflow=W,C.removeChild(e),O&&(C.removeAttribute("style"),C.parentNode.removeChild(C))}break}return x},css:function(i,e,n){var s=r.propertyCache[e];if(!s){for(var x=0,w=r.vendors.length;x<w;x++)if(r.vendors[x]!==null?s=r.camelCase(r.vendors[x][1]+"-"+e):s=e,i.style[s]!==void 0){r.propertyCache[e]=s;break}}i.style[s]=n}},f=30,j={relativeInput:!1,clipRelativeInput:!1,inputElement:null,hoverOnly:!1,calibrationThreshold:100,calibrationDelay:500,supportDelay:500,calibrateX:!1,calibrateY:!0,invertX:!0,invertY:!0,limitX:!1,limitY:!1,scalarX:10,scalarY:10,frictionX:.1,frictionY:.1,originX:.5,originY:.5,pointerEvents:!1,precision:1,onReady:null,selector:null},d=function(){function h(i,e){p(this,h),this.element=i;var n={calibrateX:r.data(this.element,"calibrate-x"),calibrateY:r.data(this.element,"calibrate-y"),invertX:r.data(this.element,"invert-x"),invertY:r.data(this.element,"invert-y"),limitX:r.data(this.element,"limit-x"),limitY:r.data(this.element,"limit-y"),scalarX:r.data(this.element,"scalar-x"),scalarY:r.data(this.element,"scalar-y"),frictionX:r.data(this.element,"friction-x"),frictionY:r.data(this.element,"friction-y"),originX:r.data(this.element,"origin-x"),originY:r.data(this.element,"origin-y"),pointerEvents:r.data(this.element,"pointer-events"),precision:r.data(this.element,"precision"),relativeInput:r.data(this.element,"relative-input"),clipRelativeInput:r.data(this.element,"clip-relative-input"),hoverOnly:r.data(this.element,"hover-only"),inputElement:document.querySelector(r.data(this.element,"input-element")),selector:r.data(this.element,"selector")};for(var s in n)n[s]===null&&delete n[s];m(this,j,n,e),this.inputElement||(this.inputElement=this.element),this.calibrationTimer=null,this.calibrationFlag=!0,this.enabled=!1,this.depthsX=[],this.depthsY=[],this.raf=null,this.bounds=null,this.elementPositionX=0,this.elementPositionY=0,this.elementWidth=0,this.elementHeight=0,this.elementCenterX=0,this.elementCenterY=0,this.elementRangeX=0,this.elementRangeY=0,this.calibrationX=0,this.calibrationY=0,this.inputX=0,this.inputY=0,this.motionX=0,this.motionY=0,this.velocityX=0,this.velocityY=0,this.onMouseMove=this.onMouseMove.bind(this),this.onDeviceOrientation=this.onDeviceOrientation.bind(this),this.onDeviceMotion=this.onDeviceMotion.bind(this),this.onOrientationTimer=this.onOrientationTimer.bind(this),this.onMotionTimer=this.onMotionTimer.bind(this),this.onCalibrationTimer=this.onCalibrationTimer.bind(this),this.onAnimationFrame=this.onAnimationFrame.bind(this),this.onWindowResize=this.onWindowResize.bind(this),this.windowWidth=null,this.windowHeight=null,this.windowCenterX=null,this.windowCenterY=null,this.windowRadiusX=null,this.windowRadiusY=null,this.portrait=!1,this.desktop=!navigator.userAgent.match(/(iPhone|iPod|iPad|Android|BlackBerry|BB10|mobi|tablet|opera mini|nexus 7)/i),this.motionSupport=!!window.DeviceMotionEvent&&!this.desktop,this.orientationSupport=!!window.DeviceOrientationEvent&&!this.desktop,this.orientationStatus=0,this.motionStatus=0,this.initialise()}return o(h,[{key:"initialise",value:function(){this.transform2DSupport===void 0&&(this.transform2DSupport=r.transformSupport("2D"),this.transform3DSupport=r.transformSupport("3D")),this.transform3DSupport&&r.accelerate(this.element);var e=window.getComputedStyle(this.element);e.getPropertyValue("position")==="static"&&(this.element.style.position="relative"),this.pointerEvents||(this.element.style.pointerEvents="none"),this.updateLayers(),this.updateDimensions(),this.enable(),this.queueCalibration(this.calibrationDelay)}},{key:"doReadyCallback",value:function(){this.onReady&&this.onReady()}},{key:"updateLayers",value:function(){this.selector?this.layers=this.element.querySelectorAll(this.selector):this.layers=this.element.children,this.layers.length||console.warn("ParallaxJS: Your scene does not have any layers."),this.depthsX=[],this.depthsY=[];for(var e=0;e<this.layers.length;e++){var n=this.layers[e];this.transform3DSupport&&r.accelerate(n),n.style.position=e?"absolute":"relative",n.style.display="block",n.style.left=0,n.style.top=0;var s=r.data(n,"depth")||0;this.depthsX.push(r.data(n,"depth-x")||s),this.depthsY.push(r.data(n,"depth-y")||s)}}},{key:"updateDimensions",value:function(){this.windowWidth=window.innerWidth,this.windowHeight=window.innerHeight,this.windowCenterX=this.windowWidth*this.originX,this.windowCenterY=this.windowHeight*this.originY,this.windowRadiusX=Math.max(this.windowCenterX,this.windowWidth-this.windowCenterX),this.windowRadiusY=Math.max(this.windowCenterY,this.windowHeight-this.windowCenterY)}},{key:"updateBounds",value:function(){this.bounds=this.inputElement.getBoundingClientRect(),this.elementPositionX=this.bounds.left,this.elementPositionY=this.bounds.top,this.elementWidth=this.bounds.width,this.elementHeight=this.bounds.height,this.elementCenterX=this.elementWidth*this.originX,this.elementCenterY=this.elementHeight*this.originY,this.elementRangeX=Math.max(this.elementCenterX,this.elementWidth-this.elementCenterX),this.elementRangeY=Math.max(this.elementCenterY,this.elementHeight-this.elementCenterY)}},{key:"queueCalibration",value:function(e){clearTimeout(this.calibrationTimer),this.calibrationTimer=setTimeout(this.onCalibrationTimer,e)}},{key:"enable",value:function(){this.enabled||(this.enabled=!0,this.orientationSupport?(this.portrait=!1,window.addEventListener("deviceorientation",this.onDeviceOrientation),this.detectionTimer=setTimeout(this.onOrientationTimer,this.supportDelay)):this.motionSupport?(this.portrait=!1,window.addEventListener("devicemotion",this.onDeviceMotion),this.detectionTimer=setTimeout(this.onMotionTimer,this.supportDelay)):(this.calibrationX=0,this.calibrationY=0,this.portrait=!1,window.addEventListener("mousemove",this.onMouseMove),this.doReadyCallback()),window.addEventListener("resize",this.onWindowResize),this.raf=c(this.onAnimationFrame))}},{key:"disable",value:function(){this.enabled&&(this.enabled=!1,this.orientationSupport?window.removeEventListener("deviceorientation",this.onDeviceOrientation):this.motionSupport?window.removeEventListener("devicemotion",this.onDeviceMotion):window.removeEventListener("mousemove",this.onMouseMove),window.removeEventListener("resize",this.onWindowResize),c.cancel(this.raf))}},{key:"calibrate",value:function(e,n){this.calibrateX=e===void 0?this.calibrateX:e,this.calibrateY=n===void 0?this.calibrateY:n}},{key:"invert",value:function(e,n){this.invertX=e===void 0?this.invertX:e,this.invertY=n===void 0?this.invertY:n}},{key:"friction",value:function(e,n){this.frictionX=e===void 0?this.frictionX:e,this.frictionY=n===void 0?this.frictionY:n}},{key:"scalar",value:function(e,n){this.scalarX=e===void 0?this.scalarX:e,this.scalarY=n===void 0?this.scalarY:n}},{key:"limit",value:function(e,n){this.limitX=e===void 0?this.limitX:e,this.limitY=n===void 0?this.limitY:n}},{key:"origin",value:function(e,n){this.originX=e===void 0?this.originX:e,this.originY=n===void 0?this.originY:n}},{key:"setInputElement",value:function(e){this.inputElement=e,this.updateDimensions()}},{key:"setPosition",value:function(e,n,s){n=n.toFixed(this.precision)+"px",s=s.toFixed(this.precision)+"px",this.transform3DSupport?r.css(e,"transform","translate3d("+n+","+s+",0)"):this.transform2DSupport?r.css(e,"transform","translate("+n+","+s+")"):(e.style.left=n,e.style.top=s)}},{key:"onOrientationTimer",value:function(){this.orientationSupport&&this.orientationStatus===0?(this.disable(),this.orientationSupport=!1,this.enable()):this.doReadyCallback()}},{key:"onMotionTimer",value:function(){this.motionSupport&&this.motionStatus===0?(this.disable(),this.motionSupport=!1,this.enable()):this.doReadyCallback()}},{key:"onCalibrationTimer",value:function(){this.calibrationFlag=!0}},{key:"onWindowResize",value:function(){this.updateDimensions()}},{key:"onAnimationFrame",value:function(){this.updateBounds();var e=this.inputX-this.calibrationX,n=this.inputY-this.calibrationY;(Math.abs(e)>this.calibrationThreshold||Math.abs(n)>this.calibrationThreshold)&&this.queueCalibration(0),this.portrait?(this.motionX=this.calibrateX?n:this.inputY,this.motionY=this.calibrateY?e:this.inputX):(this.motionX=this.calibrateX?e:this.inputX,this.motionY=this.calibrateY?n:this.inputY),this.motionX*=this.elementWidth*(this.scalarX/100),this.motionY*=this.elementHeight*(this.scalarY/100),isNaN(parseFloat(this.limitX))||(this.motionX=r.clamp(this.motionX,-this.limitX,this.limitX)),isNaN(parseFloat(this.limitY))||(this.motionY=r.clamp(this.motionY,-this.limitY,this.limitY)),this.velocityX+=(this.motionX-this.velocityX)*this.frictionX,this.velocityY+=(this.motionY-this.velocityY)*this.frictionY;for(var s=0;s<this.layers.length;s++){var x=this.layers[s],w=this.depthsX[s],l=this.depthsY[s],b=this.velocityX*(w*(this.invertX?-1:1)),Y=this.velocityY*(l*(this.invertY?-1:1));this.setPosition(x,b,Y)}this.raf=c(this.onAnimationFrame)}}
1,{key:"rotate",value:function(e,n){var s=(e||0)/f,x=(n||0)/f,w=this.windowHeight>this.windowWidth;this.portrait!==w&&(this.portrait=w,this.calibrationFlag=!0),this.calibrationFlag&&(this.calibrationFlag=!1,this.calibrationX=s,this.calibrationY=x),this.inputX=s,this.inputY=x}},{key:"onDeviceOrientation",value:function(e){var n=e.beta,s=e.gamma;n!==null&&s!==null&&(this.orientationStatus=1,this.rotate(n,s))}},{key:"onDeviceMotion",value:function(e){var n=e.rotationRate.beta,s=e.rotationRate.gamma;n!==null&&s!==null&&(this.motionStatus=1,this.rotate(n,s))}},{key:"onMouseMove",value:function(e){var n=e.clientX,s=e.clientY;if(this.hoverOnly&&(n<this.elementPositionX||n>this.elementPositionX+this.elementWidth||s<this.elementPositionY||s>this.elementPositionY+this.elementHeight)){this.inputX=0,this.inputY=0;return}this.relativeInput?(this.clipRelativeInput&&(n=Math.max(n,this.elementPositionX),n=Math.min(n,this.elementPositionX+this.elementWidth),s=Math.max(s,this.elementPositionY),s=Math.min(s,this.elementPositionY+this.elementHeight)),this.elementRangeX&&this.elementRangeY&&(this.inputX=(n-this.elementPositionX-this.elementCenterX)/this.elementRangeX,this.inputY=(s-this.elementPositionY-this.elementCenterY)/this.elementRangeY)):this.windowRadiusX&&this.windowRadiusY&&(this.inputX=(n-this.windowCenterX)/this.windowRadiusX,this.inputY=(s-this.windowCenterY)/this.windowRadiusY)}},{key:"destroy",value:function(){this.disable(),clearTimeout(this.calibrationTimer),clearTimeout(this.detectionTimer),this.element.removeAttribute("style");for(var e=0;e<this.layers.length;e++)this.layers[e].removeAttribute("style");delete this.element,delete this.layers}},{key:"version",value:function(){return"3.1.0"}}]),h}();g.exports=d},{"object-assign":1,raf:4}]},{},[5])(5)})})(J);var Xe=J.exports;const Ce=ne(Xe),Z=E("div",{target:"e1kmo6s94"})("display:var(--mi-instance-show-hero-on-home, flex);align-items:center;justify-content:center;width:100%;overflow:hidden;position:relative;background-image:url(\"data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' opacity='.3' viewBox='0 0 600 600'%3E%3Cfilter id='a'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.65' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23a)'/%3E%3C/svg%3E\");background-repeat:repeat;background-size:182px;min-height:calc(\n    100dvh - 50px - 54px ",a=>a.hasAnnouncement?" - 61px":"","\n  );@media screen and (max-width: ",T.medium,"px) and (orientation: portrait){padding:0rem 0.5rem 1rem 0.5rem;}"),ee=E("div",{target:"e1kmo6s93"})({name:"1isczho",styles:"display:flex;flex-direction:column;gap:48px;max-width:500px;justify-content:center;padding-bottom:1rem"}),q=E("h1",{target:"e1kmo6s92"})({name:"1cu5ob3",styles:'font-size:1.75rem;font-weight:400;line-height:1.25;font-family:"cubano",var(--mi-font-family-stack)'}),te=E("div",{target:"e1kmo6s91"})({name:"1r9eqj5",styles:"display:flex;gap:16px"}),_=E("div",{target:"e1kmo6s90"})({name:"1iy85px",styles:"background-size:contain;background-repeat:no-repeat;position:absolute"}),Se=()=>{const a=X.useRef(null);X.useEffect(()=>{const k=window.matchMedia("(prefers-reduced-motion: reduce)").matches;if(a.current&&!k){const o=new Ce(a.current,{relativeInput:!0,hoverOnly:!0});return()=>o.disable()}},[]);const{user:y}=oe(),{t:u}=D("translation",{keyPrefix:"home"}),{data:g}=R(L());return t.jsxs(Z,{hasAnnouncement:!!(g!=null&&g.announcementText),children:[t.jsxs("div",{className:v({name:"16mwsyd",styles:"width:100%;position:absolute!important;height:100%;display:flex;align-items:center;justify-content:center;z-index:0"}),ref:a,children:[t.jsx(_,{"data-depth":".2",className:v('width:60%;height:50px;top:-30%!important;left:0rem!important;background-image:url("/static/images/cloud-no-grain-3.svg");z-index:1;@media screen and (max-width: ',T.medium,"px){top:-40%!important;}","")}),t.jsx(_,{"data-depth":".4",className:v('height:80px;width:70%;top:75%!important;left:10%!important;z-index:-1;background-image:url("/static/images/cloud-no-grain-2.svg");@media screen and (max-width: ',T.medium,"px){margin-bottom:0rem;top:38%!important;}","")}),t.jsx(_,{"data-depth":".6",className:v('height:140px;width:60%;top:55%!important;left:35%!important;z-index:-1;background-image:url("/static/images/cloud-toneddowngrain-1-optimized.webp");@media screen and (max-width: ',T.xlarge,"px){display:none!important;}","")})]}),t.jsxs("div",{className:v("display:flex!important;width:100%;height:100%;justify-content:center;align-items:center;z-index:1;@media screen and (max-width: ",T.medium,"px){flex-direction:column;}",""),children:[t.jsx("div",{className:v('background-image:url("/static/images/frog-mirlo-toneddowngrain-optimized.webp");background-size:contain;background-repeat:no-repeat;z-index:1;width:540px;height:370px;margin-right:4rem;@media screen and (max-width: ',T.medium,"px){margin-right:0;margin-top:4rem;width:300px;}","")}),t.jsx(ee,{children:t.jsxs("div",{className:v({name:"1sq7bu4",styles:"display:flex;flex-direction:column;gap:24px;
1color:var(--mi-foreground-color)"}),children:[t.jsx(q,{children:t.jsx($,{t:u,i18nKey:"support",components:{red:t.jsx("span",{className:v({name:"flafrq",styles:"color:var(--mi-button-color)"})})}})}),!y&&t.jsxs(te,{children:[t.jsx(P,{size:"big",to:"/signup",rounded:!0,children:u("signUp")}),t.jsx(P,{size:"big",to:"/login",variant:"outlined",rounded:!0,endIcon:t.jsx(le,{}),children:u("logIn")})]}),t.jsx("p",{className:v({name:"8ymdhp",styles:"font-size:1rem;line-height:1.5;br{margin-bottom:1rem;}"}),children:t.jsx($,{t:u,i18nKey:"featuresLink",components:{features:t.jsx(se,{to:"https://docs.mirlo.space/features/"}),about:t.jsx("a",{href:"https://docs.mirlo.space"})}})})]})})]})]})},Ne=12,Re=E("div",{target:"eussvk00"})({name:"11hs16",styles:"padding:4rem 0;&>:first-child{margin-top:0;}"}),Ee=()=>{var o,p,c;const{t:a}=D("translation",{keyPrefix:"releases"}),{data:y}=R(ce({orderBy:"count",take:24})),{data:u,refetch:g}=R({...de({skip:0,take:8,orderBy:"random",tag:void 0,title:void 0,isReleased:"released",license:void 0}),refetchOnWindowFocus:!1}),{data:k}=R(he({skip:0,take:Ne,datePurchased:"pastMonth"}));return t.jsxs("div",{className:"w-full",children:[t.jsxs("div",{className:v("padding:2rem 0;@media screen and (max-width: ",T.medium,"px){margin-bottom:0rem;}",""),children:[t.jsx(I,{className:v({name:"t8tc6i",styles:"background-color:var(--mi-white)"}),children:t.jsxs(N,{variant:"big",children:[t.jsx(q,{as:"h2",className:"mbe-8! mx-2",children:a("exploreMusic",{keyPrefix:"home"})}),t.jsx("h3",{className:"h5 section-header__heading",children:a("popularTags")}),t.jsx("div",{className:v({name:"11utca0",styles:"margin:0 0.5rem"}),children:t.jsx(je,{tags:y==null?void 0:y.results.map(m=>m.tag)})}),t.jsx("div",{className:v("display:flex;justify-content:flex-end;@media screen and (max-width: ",T.medium,"px){padding:var(--mi-side-paddings-xsmall);}",""),children:t.jsx(P,{to:"/tags",wrap:!0,className:v({name:"1a7e1yb",styles:"margin-top:0.25rem"}),variant:"outlined",endIcon:t.jsx(G,{}),children:a("browseTags")})})]})}),t.jsx(I,{children:t.jsxs(N,{variant:"big",justify:"space-between",className:"flex items-center",children:[t.jsx("h3",{className:"h5 section-header__heading",children:a("recentReleases")}),t.jsxs("div",{className:v("display:flex;gap:0.75rem;@media screen and (max-width: ",T.medium,"px){padding:var(--mi-side-paddings-xsmall);}",""),children:[t.jsx(z,{onClick:()=>g(),startIcon:t.jsx(me,{}),variant:"transparent",children:a("refreshReleases",{keyPrefix:"home"})}),t.jsx(ue,{"aria-label":a("rssFeed"),title:a("rssFeed"),target:"_blank",href:"https://mirlo.space/v1/trackGroups?released=released&format=rss",rel:"noreferrer",onlyIcon:!0,smallIcon:!0,className:v({name:"1a7e1yb",styles:"margin-top:0.25rem"}),startIcon:t.jsx(pe,{})})]})]})}),t.jsx("div",{className:v({name:"3mtano",styles:"padding-top:0.25rem"}),children:t.jsx(N,{variant:"big",justify:"center",children:t.jsx("div",{className:v({name:"16ebtb8",styles:"display:flex;width:100%;flex-direction:row;flex-wrap:wrap;padding:var(--mi-side-paddings-xsmall)"}),children:t.jsx(V,{gridNumber:"4",as:"ul",children:(o=u==null?void 0:u.results)==null?void 0:o.map(m=>t.jsx(Q,{trackGroup:m,as:"li",showArtist:!0,headingLevel:"h4"},m.id))})})})})]}),t.jsxs(N,{variant:"big",className:"flex gap-4 !justify-end !mb-16 max-md:p-[var(--mi-side-paddings-xsmall)]",children:[t.jsx(P,{wrap:!0,variant:"outlined",to:"/artists",children:a("viewAllArtists")}),t.jsx(P,{wrap:!0,to:"/releases",endIcon:t.jsx(G,{}),children:a("moreReleases")})]}),t.jsx(Ye,{}),((p=k==null?void 0:k.results)!=null?p:[]).length>0&&t.jsxs(Re,{children:[t.jsx(I,{children:t.jsx(N,{variant:"big",justify:"space-between",className:"flex flex-row",children:t.jsx("h3",{className:"h5 section-header__heading",children:a("popularReleases")})})}),t.jsx("div",{className:"pt-1",children:t.jsx(N,{variant:"big",justify:"center",children:t.jsx("div",{className:"flex w-full flex-row flex-wrap p-[var(--mi-side-paddings-xsmall)]",children:t.jsx(V,{gridNumber:"6",as:"ul",children:(c=k==null?void 0:k.results)==null?void 0:c.map(m=>t.jsx(Q,{trackGroup:m,as:"li",showArtist:!0,headingLevel:"h4"},m.id))})})})})]})]})},Me=v("width:100%;background-color:color-mix(\n    in srgb,\n    var(--mi-text-color) 6%,\n    var(--mi-background-color)\n  );display:flex;justify-content:center;padding:7rem 1rem;@media screen and (max-width: ",T.medium,"px){padding:3rem 1.5rem;}",""),Pe=v("width:min(100%, var(--mi-container-big));display:flex;align-items:center;justify-content:space-between;gap:2.5rem;@media screen and (max-width: ",T.medium,"px){flex-direction:column;align-items:stretch;}",""),De=()=>{const{t:a}=D("translation",{keyPrefix:"home"}),y=fe(),[u,g]=X.useState(""),[k,o]=X.useState(!1),[p,c]=X.useState(1),[m,r]=X.useState(""),[f,j]=X.useState(!1),[d,h]=X.useState(!1),[i,e]=X.useState(!1),[n,s]=X.useState(null),x=X.useRef(null),w="0x4AAAAAAAzODdmS-3nypYl1",{data:l,isPending:b}=R(L()),Y=async S=>{if(S.preventDefault(),!(!u.trim()||!(l!=null&&l.id)||f)){c(1),o(!0);return}},C=async S=>{try{await A.post("verify-email",{email:u,cfTurnstile:S}),c(2)}catch(B){y(a("newsletterError"),{type:"warning"})}},M=()=>{o(!1),r(""),c(1),s(null)},W=async S=>{var B;
1if(S.preventDefault(),!(!m.trim()||d||!(l!=null&&l.id)))try{if(h(!0),s(null),!(await A.post("verify-email",{code:m.trim(),email:u})).userId){s(a("newsletterInvalidCode"));return}await A.post("artists/".concat(l.id,"/follow"),{email:u}),y(a("newsletterSuccess"),{type:"success"}),o(!1),g(""),r(""),c(1)}catch(H){H instanceof we&&H.status===400?s(a("newsletterInvalidCode")):s(a("newsletterError")),(B=x.current)==null||B.focus()}finally{h(!1)}},O=async()=>{if(!i)try{e(!0),await A.post("verify-email",{email:u}),y(a("newsletterResendSuccess"),{type:"success"})}catch(S){y(a("newsletterError"),{type:"warning"})}finally{e(!1)}};if(!l&&!b)return null;const ie=a(p===1?"newsletterVerifyingTitle":"newsletterCheckInbox");return t.jsxs("section",{className:Me,children:[t.jsxs("div",{className:Pe,children:[t.jsxs("div",{className:"flex flex-col gap-3 max-w-[420px]",children:[t.jsx(q,{as:"h2",children:a("mailingList")}),t.jsx("p",{className:"text-(--mi-light-foreground-color) leading-[1.6]",children:a("newsletterDescription")})]}),t.jsx("div",{className:"bg-(--mi-background-color) border border-(--mi-darken-x-background-color) rounded-[var(--mi-border-radius-x)] p-8 flex-1 max-w-[460px] max-md:max-w-full max-md:p-6",children:t.jsxs("form",{onSubmit:Y,className:"flex flex-col gap-3",children:[t.jsx("label",{htmlFor:"input-newsletter-email",className:"text-sm font-medium text-(--mi-text-color)",children:a("newsletterEmailLabel")}),t.jsx(K,{id:"input-newsletter-email",type:"email",required:!0,value:u,placeholder:a("newsletterPlaceholder"),onChange:S=>g(S.target.value)}),t.jsx(z,{type:"submit",isLoading:f,disabled:!u.trim()||!(l!=null&&l.id)||f,size:"big",className:"w-full justify-center mt-1",children:a("newsletterButton")})]})})]}),t.jsx(ge,{open:k,onClose:M,title:ie,size:"small",focusTrapOptions:{delayInitialFocus:!0},children:p===1&&w?t.jsxs("div",{className:"flex flex-col gap-4",children:[t.jsx("p",{className:"text-sm text-(--mi-light-foreground-color)",children:a("newsletterVerifyingDescription")}),t.jsx(ve,{siteKey:w,onSuccess:C})]}):t.jsxs("div",{className:"flex flex-col gap-4",children:[t.jsx("p",{className:"text-sm text-(--mi-light-foreground-color)",children:a("newsletterCodeSentTo",{email:u})}),t.jsxs("form",{onSubmit:W,className:"flex flex-col gap-3",children:[t.jsxs(xe,{children:[t.jsx("label",{htmlFor:"input-newsletter-code",children:a("newsletterEnterCode")}),t.jsx(K,{id:"input-newsletter-code",ref:x,type:"text",inputMode:"numeric",autoFocus:!0,required:!0,value:m,onChange:S=>{r(S.target.value),s(null)}})]}),t.jsx("p",{role:"alert","aria-atomic":"true",className:"text-sm text-(--mi-red-700)",children:n}),t.jsx(z,{type:"submit",isLoading:d,disabled:!m.trim()||d,className:"w-full justify-center",children:a("newsletterVerifyAndSubscribe")})]}),t.jsx(z,{type:"button",variant:"link",size:"compact",isLoading:i,disabled:i,onClick:O,children:a("newsletterResend")})]})})]})},Oe=()=>{const{t:a}=D("translation",{keyPrefix:"home"}),{data:y}=R(L());return t.jsx("div",{className:v("width:100%;background-color:var(--mi-button-color)!important;color:var(--mi-white);@media screen and (max-width: ",T.medium,"px){margin:0;}@media (min-width: 768px) and (prefers-color-scheme: dark){background-color:var(--mi-button-text-color);}",""),children:t.jsxs(Z,{className:v("padding:4rem 0;min-height:auto!important;@media screen and (max-width: ",T.medium,"px){padding:0;min-height:calc(100vh - 60px)!important;flex-direction:column-reverse;}",""),children:[t.jsx(ee,{className:v("@media screen and (max-width: ",T.medium,"px){padding-top:0;}@media screen and (max-width: ",T.small,"px){padding:var(--mi-side-paddings-normal);}",""),children:t.jsxs("div",{className:v({name:"klisov",styles:"display:flex;flex-direction:column;gap:24px"}),children:[t.jsx(q,{as:"h2",children:a("sustainedBy")}),t.jsx(te,{children:t.jsx(P,{to:y?be(y)+"/support":"",size:"big",rounded:!0,className:v({name:"m55yvy",styles:"display:block;border-radius:9999px!important;text-decoration:none;text-align:center;background-color:var(--mi-black)!important;color:var(--mi-white)!important;&:hover{text-decoration:underline;}
1@media (prefers-color-scheme: dark){background-color:var(--mi-white)!important;color:var(--mi-black)!important;}"}),children:a("supportTeam")})})]})}),t.jsx("div",{className:v({name:"k2ipt1",styles:'display:block;background-image:url("/static/images/flock.svg");background-size:contain;background-repeat:no-repeat;width:90%;height:30vh;@media (min-width: 768px){width:370px;height:285px;margin-right:60px;}'})})]})})};function nt(){return t.jsxs("div",{className:v("flex-direction:column;display:flex;align-items:center;width:100%;margin-bottom:5rem;@media screen and (max-width: ",T.medium,"px){margin-bottom:3rem;}",""),children:[t.jsx(ke,{}),t.jsx(Se,{}),t.jsx(Ee,{}),t.jsx(Oe,{}),t.jsx(De,{})]})}export{nt as default};
2//# sourceMappingURL=Index-B94HPm9x.js.map

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.