PageSourceSearch

https://recoil.org/_app/immutable/nodes/0.D7fns-K_.js

js recoil.org collected 2026-10-02 03:20:15 UTC 2,627 bytes, 1 lines download raw bytes

1import{a as v,f as Y,c as B}from"../chunks/PhZz5NlW.js";import{O as U,P as k,Q as F,R as X,U as H,V as I,c as z,r as O,s as L,W as T}from"../chunks/_DUrTqy0.js";import{s as J}from"../chunks/TbdrhrBy.js";import{b as Q,i as D}from"../chunks/DfYBxeTR.js";import{s as K,p as N}from"../chunks/BWKxGXIw.js";import{o as Z}from"../chunks/DsQhXRdN.js";const $={get error(){return N.error}};K.updated.check;const W=$;var x=Y('<canvas width="380" height="560" class="absolute no-scrollbar" style="z-index:-1; display:block; animation: 2s ease-out 0s 1 fadeIn;"></canvas>');function tt(y,m){U(m,!0);const u=2*Math.PI;function M(t){return t*Math.PI/180}const P=t=>{const o=t.getContext("2d");if(!o)return;const r=t.width,e=t.height;o.translate(r/2,e/2),o.rotate(M(90)),o.translate(-r/2,-e/2),o.translate(-120,100),d(o,1,1,12,8,{radius:28,inset:15,lineWidth:19})},_={radius:30,sides:6,inset:0,diameter:10,lineWidth:10,fillStyle:"red",strokeStyle:"black",lineJoin:"round",randomColors:null},i=(t,o,r)=>{const[e,s,n,a]=t,[c,h,f,S]=o;return[e+(c-e)*r,s+(h-s)*r,n+(f-n)*r,a+(S-a)*r]},l=(t,o)=>{o=1-o;const r=[.75,.85,1,1],e=[1,1,1,1],s=Math.sqrt(t*t+o*o)/Math.sqrt(2);return i(r,e,s)},d=(t,o,r,e,s,n={})=>{const a={..._,...n},c=q(a);a.diameter=a.radius*2;for(let h=r;h<r+s;h++)for(let f=o;f<o+e;f++){const S=f/(o+e),R=h/(r+s),V=l(S,R);t.fillStyle=`rgba(${V.map(j=>j*255).join(",")})`,t.strokeStyle=t.fillStyle,t.lineJoin=a.lineJoin,b(t,g(f,h,a),c,a)}},g=(t,o,r)=>{const e=A(r);return w(Math.floor(t*e.gridSpaceX),Math.floor(o*e.gridSpaceY+(t%2?e.gridOffsetY:0)))},b=(t,o,r,e)=>{t.save(),t.translate(o.x,o.y),E(t,r),t.restore(),e.lineWidth&&(t.lineWidth=e.lineWidth),e.fillStyle&&t.fill(),e.strokeStyle&&t.stroke()},q=(t,o=[])=>{const{inset:r,radius:e,sides:s}=t,n=e-r,a=u/s;for(let c=0;c<s;c++)o.push(G(0,0,n,a*c));return o},A=t=>{const{diameter:o,sides:r}=t,e=Math.sin(Math.PI/r)*o,s=o-e/2,n=Math.cos(Math.PI/r)*o,a=n/2;return{diameter:o,edgeLength:e,gridSpaceX:s,gridSpaceY:n,gridOffsetY:a}},E=(t,o)=>{const[{x:r,y:e}]=o;t.beginPath(),t.moveTo(r,e),o.forEach(({x:s,y:n})=>{t.lineTo(s,n)}),t.closePath()},w=(t,o)=>({x:t,y:o}),G=(t,o,r,e)=>w(t+r*Math.cos(e),o+r*Math.sin(e));let p=H(null);Z(()=>{k(p)&&P(k(p))});var C=x();Q(C,t=>F(p,t),()=>k(p)),v(y,C),X()}var ot=Y('<div class="container mx-auto z-1"><!></div>'),et=Y('<!> <div class="container mx-auto z-1"><!></div>',1);function ct(y,m){U(m,!0);var u=B(),M=I(u);{var P=i=>{var l=ot(),d=z(l);J(d,()=>m.children??T),O(l),v(i,l)},_=i=>{var l=et(),d=I(l);tt(d,{});var g=L(d,2),b=z(g);J(b,()=>m.children??T),O(g),v(i,l)};D(M,i=>{W!=null&&W.error?i(P):i(_,!1)})}v(y,u),X()}export{ct as component};

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.