1import{n as e}from"./DwTZBSUj.js";import{B as t,C as n,H as r,S as i,X as a,_t as o,mt as s,ot as c,pt as l,vt as u}from"./LEMyuIs8.js";var d=e(((e,t)=>{(function(n,r){typeof e==`object`&&t!==void 0?t.exports=r():typeof define==`function`&&define.amd?define(r):(n=typeof globalThis<`u`?globalThis:n||self).dayjs_plugin_relativeTime=r()})(e,(function(){return function(e,t,n){e||={};var r=t.prototype,i={future:`in %s`,past:`%s ago`,s:`a few seconds`,m:`a minute`,mm:`%d minutes`,h:`an hour`,hh:`%d hours`,d:`a day`,dd:`%d days`,M:`a month`,MM:`%d months`,y:`a year`,yy:`%d years`};function a(e,t,n,i){return r.fromToBase(e,t,n,i)}n.en.relativeTime=i,r.fromToBase=function(t,r,a,o,s){for(var c,l,u,d=a.$locale().relativeTime||i,f=e.thresholds||[{l:`s`,r:44,d:`second`},{l:`m`,r:89},{l:`mm`,r:44,d:`minute`},{l:`h`,r:89},{l:`hh`,r:21,d:`hour`},{l:`d`,r:35},{l:`dd`,r:25,d:`day`},{l:`M`,r:45},{l:`MM`,r:10,d:`month`},{l:`y`,r:17},{l:`yy`,d:`year`}],p=f.length,m=0;m<p;m+=1){var h=f[m];h.d&&(c=o?n(t).diff(a,h.d,!0):a.diff(t,h.d,!0));var g=(e.rounding||Math.round)(Math.abs(c));if(u=c>0,g<=h.r||!h.r){g<=1&&m>0&&(h=f[m-1]);var _=d[h.l];s&&(g=s(``+g)),l=typeof _==`string`?_.replace(`%d`,g):_(g,r,h.l,u);break}}if(r)return l;var v=u?d.future:d.past;return typeof v==`function`?v(l):v.replace(`%s`,l)},r.to=function(e,t){return a(e,t,this,!0)},r.from=function(e,t){return a(e,t,this)};var o=function(e){return e.$u?n.utc():n()};r.toNow=function(e){return this.to(o(this),e)},r.fromNow=function(e){return this.from(o(this),e)}}}))})),f=r(`<canvas aria-hidden="true"></canvas>`);function p(e,r){u(r,!0);let d=s(!1),p=e=>Math.min(1,Math.max(0,e)),m=e=>e*e*(3-2*e),h=e=>e<=.04045?e/12.92:((e+.055)/1.055)**2.4,g=e=>e<=.0031308?e*12.92:1.055*e**(1/2.4)-.055,_=e=>{let[t,n,r]=[1,3,5].map(t=>h(Number.parseInt(e.slice(t,t+2),16)/255)),i=Math.cbrt(.4122214708*t+.5363325363*n+.0514459929*r),a=Math.cbrt(.2119034982*t+.6806995451*n+.1073969566*r),o=Math.cbrt(.0883024619*t+.2817188376*n+.6299787005*r);return[.2104542553*i+.793617785*a-.0040720468*o,1.9779984951*i-2.428592205*a+.4505937099*o,.0259040371*i+.7827717662*a-.808675766*o]},v=([e,t,n])=>{let r=(e+.3963377774*t+.2158037573*n)**3,i=(e-.1055613458*t-.0638541728*n)**3,a=(e-.0894841775*t-1.291485548*n)**3;return[4.0767416621*r-3.3077115913*i+.2309699292*a,-1.2684380046*r+2.6097574011*i-.3413193965*a,-.0041960863*r-.7034186147*i+1.707614701*a].map(e=>Math.round(p(g(e))*255))},y=(e,t)=>{let n=_(e),r=_(t),i=new Uint8ClampedArray(768);for(let e=0;e<256;e++){let t=e/255,a=v([0,1,2].map(e=>n[e]+(r[e]-n[e])*t));i.set(a,e*3)}return i},b=()=>{let e=new Uint8Array(512),t=new Float32Array(256),n=Array.from({length:256},(e,t)=>t);for(let e=255;e>0;e--){let t=Math.floor(Math.random()*(e+1));[n[e],n[t]]=[n[t],n[e]]}for(let t=0;t<512;t++)e[t]=n[t&255];for(let e=0;e<256;e++)t[e]=Math.random();let r=(n,r)=>{let i=Math.floor(n),a=Math.floor(r),o=m(n-i),s=m(r-a),c=i&255,l=a&255,u=t[e[e[c]+l]],d=t[e[e[c+1]+l]],f=t[e[e[c]+l+1]],p=t[e[e[c+1]+l+1]],h=u+(d-u)*o;return h+(f+(p-f)*o-h)*s};return(e,t)=>(r(e,t)*4+r(e*2.03,t*2.03)*2+r(e*4.1,t*4.1))/7},x=e=>{let t=e.getContext(`2d`);if(!t)return;let n=b(),i=y(r.colors[0],r.colors[1]),a=matchMedia(`(prefers-reduced-motion: reduce)`),o=0,s=e.clientHeight/e.clientWidth||1;e.width=s>1?Math.round(96/s):96,e.height=s>1?96:Math.round(96*s);let c=t.createImageData(e.width,e.height),u=new Float32Array(e.width),f=new Float32Array(e.width),{width:h,height:g,data:_}=c,v=1.5/96,x=e=>{let r=e*4e-5,a=(e,t)=>{let i=n(e*v*1.3+t,r*1.5+t),a=p((i-.3)/.4);return Math.max(1,(.05+.4*a)*g)};for(let e=0;e<h;e++)u[e]=a(e,17.3),f[e]=a(e,41.9);for(let e=0;e<g;e++){let t=e*v,a=t-r*.7,o=t+1.3+r*.5,s=t-r*.2,c=t*3+r*.6,l=g-1-e;for(let t=0;t<h;t++){let d=t*v,g=n(d+r,a),y=n(d+5.2-r*.8,o),b=n(d+3*g+r*.3,s+3*y),x=p((b-.3)/.5),S=0;if(x>0){let i=.4+1.2*n(d*3+9.1-r,c),a=Math.min(1,i*Math.min(e/u[t],l/f[t]));S=m(x)*m(a)}let C=Math.round(S*255)*3,w=(e*h+t)*4;_[w]=i[C],_[w+1]=i[C+1],_[w+2]=i[C+2],_[w+3]=255}}t.putImageData(c,0,0),l(d,!0)},S=e=>{x(e),o=requestAnimationFrame(S)},C=()=>{cancelAnimationFrame(o),a.matches?x(0):o=requestAnimationFrame(S)};return C(),a.addEventListener(`change`,C),()=>{cancelAnimationFrame(o),a.removeEventListener(`change`,C)}};var S=f();let C;
1n(S,()=>x),c(()=>C=i(S,1,`colorSwirl svelte-1gwgn8u`,null,C,{ready:a(d)})),t(e,S),o()}export{d as n,p as t};
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.