PageSourceSearch

https://brale.xyz/assets/error-EFL0LJTu.js

js brale.xyz collected 2026-10-03 23:03:11 UTC 8,265 bytes, 1 lines download raw bytes

1import{it as e,ot as t,rt as n,t as r}from"./jsx-runtime-vlDczagz.js";import{t as i}from"./layout-1UWg9V41.js";var a=e(((e,t)=>{function n(e){var t=typeof e;return e!=null&&(t==`object`||t==`function`)}t.exports=n})),o=e(((e,t)=>{t.exports=typeof global==`object`&&global&&global.Object===Object&&global})),s=e(((e,t)=>{var n=o(),r=typeof self==`object`&&self&&self.Object===Object&&self;t.exports=n||r||Function(`return this`)()})),c=e(((e,t)=>{var n=s();t.exports=function(){return n.Date.now()}})),l=e(((e,t)=>{var n=/\s/;function r(e){for(var t=e.length;t--&&n.test(e.charAt(t)););return t}t.exports=r})),u=e(((e,t)=>{var n=l(),r=/^\s+/;function i(e){return e&&e.slice(0,n(e)+1).replace(r,``)}t.exports=i})),d=e(((e,t)=>{t.exports=s().Symbol})),f=e(((e,t)=>{var n=d(),r=Object.prototype,i=r.hasOwnProperty,a=r.toString,o=n?n.toStringTag:void 0;function s(e){var t=i.call(e,o),n=e[o];try{e[o]=void 0;var r=!0}catch{}var s=a.call(e);return r&&(t?e[o]=n:delete e[o]),s}t.exports=s})),p=e(((e,t)=>{var n=Object.prototype.toString;function r(e){return n.call(e)}t.exports=r})),m=e(((e,t)=>{var n=d(),r=f(),i=p(),a=`[object Null]`,o=`[object Undefined]`,s=n?n.toStringTag:void 0;function c(e){return e==null?e===void 0?o:a:s&&s in Object(e)?r(e):i(e)}t.exports=c})),h=e(((e,t)=>{function n(e){return typeof e==`object`&&!!e}t.exports=n})),g=e(((e,t)=>{var n=m(),r=h(),i=`[object Symbol]`;function a(e){return typeof e==`symbol`||r(e)&&n(e)==i}t.exports=a})),_=e(((e,t)=>{var n=u(),r=a(),i=g(),o=NaN,s=/^[-+]0x[0-9a-f]+$/i,c=/^0b[01]+$/i,l=/^0o[0-7]+$/i,d=parseInt;function f(e){if(typeof e==`number`)return e;if(i(e))return o;if(r(e)){var t=typeof e.valueOf==`function`?e.valueOf():e;e=r(t)?t+``:t}if(typeof e!=`string`)return e===0?e:+e;e=n(e);var a=c.test(e);return a||l.test(e)?d(e.slice(2),a?2:8):s.test(e)?o:+e}t.exports=f})),v=e(((e,t)=>{var n=a(),r=c(),i=_(),o=`Expected a function`,s=Math.max,l=Math.min;function u(e,t,a){var c,u,d,f,p,m,h=0,g=!1,_=!1,v=!0;if(typeof e!=`function`)throw TypeError(o);t=i(t)||0,n(a)&&(g=!!a.leading,_=`maxWait`in a,d=_?s(i(a.maxWait)||0,t):d,v=`trailing`in a?!!a.trailing:v);function y(t){var n=c,r=u;return c=u=void 0,h=t,f=e.apply(r,n),f}function b(e){return h=e,p=setTimeout(C,t),g?y(e):f}function x(e){var n=e-m,r=e-h,i=t-n;return _?l(i,d-r):i}function S(e){var n=e-m,r=e-h;return m===void 0||n>=t||n<0||_&&r>=d}function C(){var e=r();if(S(e))return w(e);p=setTimeout(C,x(e))}function w(e){return p=void 0,v&&c?y(e):(c=u=void 0,f)}function T(){p!==void 0&&clearTimeout(p),h=0,c=m=u=p=void 0}function E(){return p===void 0?f:w(r())}function D(){var e=r(),n=S(e);if(c=arguments,u=this,m=e,n){if(p===void 0)return b(m);if(_)return clearTimeout(p),p=setTimeout(C,t),y(m)}return p===void 0&&(p=setTimeout(C,t)),f}return D.cancel=T,D.flush=E,D}t.exports=u})),y=e(((e,t)=>{var n=v(),r=a(),i=`Expected a function`;function o(e,t,a){var o=!0,s=!0;if(typeof e!=`function`)throw TypeError(i);return r(a)&&(o=`leading`in a?!!a.leading:o,s=`trailing`in a?!!a.trailing:s),n(e,t,{leading:o,maxWait:t,trailing:s})}t.exports=o})),b=t(n(),1),x=t(y(),1),S=class{constructor(e,t){this.points=[],this._canvas=e,this.ctx=this._canvas.getContext(`2d`),this._color=t}init(){for(let e=0;e<this.numPoints;e++){let t=new C(this.divisional*(e+1),this);this.push(t)}}render(){let e=this.canvas,t=this.ctx,n=this.points,r=this.numPoints,i=this.center;t.clearRect(0,0,e.width,e.height),n[0].solveWith(n[r-1],n[1]);let a=n[r-1].position,o=n[0].position,s=o;t.beginPath(),t.moveTo(i.x,i.y),t.moveTo((a.x+o.x)/2,(a.y+o.y)/2);for(let e=1;e<r;e++){n[e].solveWith(n[e-1],n[e+1]||n[0]);let r=n[e].position,i=(o.x+r.x)/2,a=(o.y+r.y)/2;t.quadraticCurveTo(o.x,o.y,i,a),o=r}let c=(o.x+s.x)/2,l=(o.y+s.y)/2;t.quadraticCurveTo(o.x,o.y,c,l),t.fillStyle=this.color,t.fill(),requestAnimationFrame(this.render.bind(this))}push(e){e instanceof C&&this.points.push(e)}set color(e){this._color=e}get color(){return this._color||`#FFFFFF`}get canvas(){return this._canvas}set numPoints(e){e>2&&(this._points=e)}get numPoints(){return this._points||32}set radius(e){e>0&&(this._radius=e)}get radius(){return this._radius||234}set position(e){typeof e==`object`&&e.x&&e.y&&(this._position=e)}get position(){return this._position||{x:.5,y:.5}}get divisional(){return Math.PI*2/this.numPoints}get center(){return{x:this.canvas.width*this.position.x,y:this.canvas.height*this.position.y}}set running(e){this._running=e===!0}
1get running(){return this.running!==!1}},C=class{constructor(e,t){this.parent=t,this.azimuth=Math.PI-e,this._components={x:Math.cos(this.azimuth),y:Math.sin(this.azimuth)},this.acceleration=-.3+Math.random()*.6}solveWith(e,t){this.acceleration=(-.3*this.radialEffect+(e.radialEffect-this.radialEffect)+(t.radialEffect-this.radialEffect))*this.elasticity-this.speed*this.friction}set acceleration(e){typeof e==`number`&&(this._acceleration=e,this.speed+=this._acceleration*2)}get acceleration(){return this._acceleration||0}set speed(e){typeof e==`number`&&(this._speed=e,this.radialEffect+=this._speed*5)}get speed(){return this._speed||0}set radialEffect(e){typeof e==`number`&&(this._radialEffect=e)}get radialEffect(){return this._radialEffect||0}get position(){return{x:this.parent.center.x+this.components.x*(this.parent.radius+this.radialEffect),y:this.parent.center.y+this.components.y*(this.parent.radius+this.radialEffect)}}get components(){return this._components}set elasticity(e){typeof e==`number`&&(this._elasticity=e)}get elasticity(){return this._elasticity||.001}set friction(e){typeof e==`number`&&(this._friction=e)}get friction(){return this._friction||.0085}};function w(){return getComputedStyle(document.documentElement).getPropertyValue(`--background`).trim()||`#09090b`}function T(e,t){let n=document.querySelector(`#blob-container`);if(!e)return;let r=e.getAttribute(`data-blob-size`),i=e.clientWidth,a=e.clientHeight,o=new S(e,w());r===`sm`&&(o.radius=96);let s=0,c=0;function l(){let t=n.offsetWidth;e.width=t,e.height=t>600?600:t}function u(){l(),i=e.clientWidth,a=e.clientHeight;let t=window.innerWidth;r===`sm`?t<768?o.radius=64:o.radius=96:t<415?o.radius=125:t<640?o.radius=150:o.radius===150&&(o.radius=234),s=(window.innerWidth-i)/2+i/2,c=(window.innerHeight-a)/2+a/2}let d=t(u,100);window.addEventListener(`resize`,d),u();let f={x:0,y:0},p=!1,m=function(e){let t={x:s,y:c},n={x:e.clientX-t.x,y:e.clientY-t.y},r=Math.sqrt(n.x*n.x+n.y*n.y),i=null;if(o.mousePos={x:t.x-e.clientX,y:t.y-e.clientY},r<o.radius&&p===!1){let n={x:e.clientX-t.x,y:e.clientY-t.y};i=Math.atan2(n.y,n.x),p=!0}else if(r>o.radius&&p===!0){let n={x:e.clientX-t.x,y:e.clientY-t.y};i=Math.atan2(n.y,n.x),p=!1}if(typeof i==`number`){let t=null,n=100;if(o.points.forEach(e=>{Math.abs(i-e.azimuth)<n&&(t=e,n=Math.abs(i-e.azimuth))}),t){let n={x:f.x-e.clientX,y:f.y-e.clientY};n=Math.sqrt(n.x*n.x+n.y*n.y)*10,n>100&&(n=100),t.acceleration=n/100*(p?-1:1)}}f.x=e.clientX,f.y=e.clientY},h=e=>requestAnimationFrame(()=>m(e));window.addEventListener(`pointermove`,h);let g=new MutationObserver(()=>{o.color=w()});return g.observe(document.documentElement,{attributes:!0,attributeFilter:[`class`]}),o.init(),o.render(),()=>{window.removeEventListener(`resize`,d),window.removeEventListener(`pointermove`,h),g.disconnect()}}var E=r();function D({statusCode:e}){let t=(0,b.useRef)(null);return(0,b.useEffect)(()=>{if(t.current)return T(t.current,x.default)},[]),(0,E.jsxs)(i,{children:[(0,E.jsx)(`h1`,{className:`sr-only`,children:e===404?`Page not found`:`Server error`}),(0,E.jsxs)(`div`,{id:`blob-container`,className:`relative flex min-h-full grow items-center justify-center pt-16 sm:pt-20 md:pt-24 lg:pt-28 xl:pt-32`,children:[(0,E.jsxs)(`div`,{className:`absolute flex flex-row`,children:[(0,E.jsx)(`span`,{className:`four0four text-background z-10 text-9xl`,children:e===404?`4`:`5`}),(0,E.jsx)(`span`,{className:`zero-spacer block`}),(0,E.jsx)(`span`,{className:`four0four text-background z-10 text-9xl`,children:e===404?`4`:`0`})]}),(0,E.jsx)(`img`,{alt:`Brale Orb`,className:`absolute`,src:`/assets/site/bg-blurry-orb.webp`,height:`0`,width:`525`}),(0,E.jsx)(`canvas`,{dangerouslySetInnerHTML:{__html:`<!-- The blob was created by Lian Egan - https://twitter.com/liamegan -->`},ref:t,id:`blob`,className:`z-10`,"data-blob-size":`sm`})]})]})}export{D 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.