1"use strict";(globalThis.webpackChunklwjgl_org=globalThis.webpackChunklwjgl_org||[]).push([["474"],{8938(e,t,r){r.d(t,{E:()=>a,s:()=>n});var l,n=((l={})[l.OK=200]="OK",l[l.CREATED=201]="CREATED",l[l.ACCEPTED=202]="ACCEPTED",l[l.NO_CONTENT=204]="NO_CONTENT",l[l.MOVED_PERMANENTLY=301]="MOVED_PERMANENTLY",l[l.BAD_REQUEST=400]="BAD_REQUEST",l[l.UNAUTHORIZED=401]="UNAUTHORIZED",l[l.FORBIDDEN=403]="FORBIDDEN",l[l.NOT_FOUND=404]="NOT_FOUND",l[l.METHOD_NOT_ALLOWED=405]="METHOD_NOT_ALLOWED",l[l.INTERNAL_SERVER_ERROR=500]="INTERNAL_SERVER_ERROR",l);async function a(e){let t=e.headers.get("content-type");if(null!==t){if(t.includes("application/json"))try{let t=await e.json();if(t.error&&t.error.message)return t.error.message}catch(e){console.error(e)}else if(t.includes("text/plain")){let t=await e.text();if(t.length)return t}}return e.statusText}},5818(e,t,r){r.d(t,{LA:()=>o,t0:()=>n,wS:()=>i});var l=r(9210);let n=(0,l.i7)({to:{transform:"rotate(360deg)"}}),a={transform:"scale(2)",opacity:"0"};(0,l.i7)({"75%":a,"100%":a}),(0,l.i7)({"50%":{opacity:".5"}});let o=(0,l.i7)({to:{opacity:1,transform:"translate3d(0, 0, 0)"}}),s={transform:"translateY(-25%)",animationTimingFunction:"cubic-bezier(0.8,0,1,1)"};(0,l.i7)({"0%":s,"50%":{transform:"none",animationTimingFunction:"cubic-bezier(0,0,0.2,1)"},"100%":s});let i=(0,l.i7)({"0%":{transform:"scale(0)"},"50%":{opacity:1,transform:"none"}})},4854(e,t,r){(0,r(7139).k)('<symbol id="fa/solid/folder" viewBox="0 0 512 512"><path d="M464 128H272l-64-64H48C21.49 64 0 85.49 0 112v288c0 26.51 21.49 48 48 48h416c26.51 0 48-21.49 48-48V176c0-26.51-21.49-48-48-48z"/></symbol>')},1010(e,t,r){r.d(t,{a:()=>l});let l=(0,r(9210).I4)("div",{})},7258(e,t,r){r.d(t,{w:()=>a});var l=r(9210),n=r(5818);let a=(0,l.I4)("div",{display:"inline-block",opacity:0,square:"1em",backgroundColor:"currentColor",borderRadius:"$full",animation:`${n.wS} .75s linear infinite`,variants:{size:{xs:{square:"0.5em"},sm:{square:"0.75em"},lg:{square:"1.5em"},xl:{square:"2em"}}}})},8288(e,t,r){r.r(t),r.d(t,{default:()=>w});var l=r(7311),n=r(9863),a=r(8831),o=r(8973),s=r(2647),i=r(4555);let c=(0,r(9210).I4)("div",{wordBreak:"break-all","&:last-child":{borderBottom:"none"},variants:{type:{breadcrump:{padding:"$xsm $sm",backgroundColor:"$accent11",color:"$accent1",".dark &":{backgroundColor:"$body",color:"$accent12"},a:{"&:hover":{textDecoration:"underline"}}},folder:{color:"$accent11",backgroundColor:"$neutral3",borderBottom:"1px solid $neutral6",a:{transition:"filter 0.15s ease-in-out",padding:"$xsm $sm",display:"block","&:hover":{backgroundColor:"$accent4"},"&:active":{filter:"brightness(.9)"}}},default:{padding:"$xsm $sm",color:"$neutral12",backgroundColor:"$neutral4",borderBottom:"1px solid $neutral6",a:{color:"$info11",textDecoration:"underline"}}}},defaultVariants:{type:"default"}}),d=e=>{let t,r,a,o,s,i=(0,n.c)(11),{path:d}=e,m=`https://build.lwjgl.org/${d}`;return i[0]!==d?(t=d.split("/").pop(),i[0]=d,i[1]=t):t=i[1],i[2]===Symbol.for("react.memo_cache_sentinel")?(r=(0,l.jsx)("br",{}),i[2]=r):r=i[2],i[3]!==m?(a=(0,l.jsx)("small",{children:m}),i[3]=m,i[4]=a):a=i[4],i[5]!==a||i[6]!==m?(o=(0,l.jsx)("a",{download:!0,href:m,children:a}),i[5]=a,i[6]=m,i[7]=o):o=i[7],i[8]!==t||i[9]!==o?(s=(0,l.jsxs)(c,{children:[t,r,o]}),i[8]=t,i[9]=o,i[10]=s):s=i[10],s};var m=r(1794),u=r(7258);r(4854);let h=e=>{let t,r,o,s,i=(0,n.c)(9),{path:d,loading:h}=e,f=void 0!==h&&h;i[0]!==d?(t=d.split("/"),i[0]=d,i[1]=t):t=i[1];let p=t,g=p[p.length-1];return i[2]===Symbol.for("react.memo_cache_sentinel")?(r=(0,l.jsx)(m.I,{name:"fa/solid/folder"}),i[2]=r):r=i[2],i[3]!==f?(o=f?(0,l.jsx)(u.w,{size:"sm",css:{ml:"$xxsm"}}):null,i[3]=f,i[4]=o):o=i[4],i[5]!==g||i[6]!==d||i[7]!==o?(s=(0,l.jsx)(c,{type:"folder",children:(0,l.jsxs)(a.N_,{to:d,children:[r," ",g,o]})}),i[5]=g,i[6]=d,i[7]=o,i[8]=s):s=i[8],s},f=()=>{let e,t=(0,n.c)(1);return t[0]===Symbol.for("react.memo_cache_sentinel")?(e=(0,l.jsx)(c,{css:{padding:"$sm",color:"$neutral7"},children:"Loadingâ¦"}),t[0]=e):e=t[0],e},p=e=>{let t,r,a=(0,n.c)(3),{error:o}=e;return a[0]===Symbol.for("react.memo_cache_sentinel")?(t={padding:"$sm",backgroundColor:"$critical9",color:"$caution3"},a[0]=t):t=a[0],a[1]!==o.message?(r=(0,l.jsx)(c,{css:t,children:o.message}),a[1]=o.message,a[2]=r):r=a[2],r};var g=r(1010),b=r(8938);
1let x=new Map([["",Promise.resolve({path:"",files:[],folders:["addons","release","stable","nightly"]})]]);async function E(e){let t=await fetch(`/list?path=${e}/`,{method:"GET",mode:"same-origin",credentials:"omit",headers:{Accept:"application/json"}});if(t.status!==b.s.OK)throw Error(await (0,b.E)(t));let r=await t.json();return r.path=e,void 0===r.files&&(r.files=[]),r.folders=void 0===r.folders?[]:r.folders.map(e=>e.substring(0,e.length-1)),r}function _(e){let t,r,o,d,m,u,h,b,x,E,_=(0,n.c)(23),{path:j}=e,[y,N]=(0,s.useState)(j),[,O]=(0,s.useTransition)();return _[0]!==y||_[1]!==O||_[2]!==j?(t=()=>{j!==y&&O(()=>{N(j)})},_[0]=y,_[1]=O,_[2]=j,_[3]=t):t=_[3],_[4]!==y||_[5]!==j?(r=[j,y],_[4]=y,_[5]=j,_[6]=r):r=_[6],(0,s.useEffect)(t,r),_[7]===Symbol.for("react.memo_cache_sentinel")?(o={".light &":{boxShadow:"$sm"}},_[7]=o):o=_[7],_[8]===Symbol.for("react.memo_cache_sentinel")?(d=(0,l.jsx)(a.N_,{to:"/browse",children:"lwjgl"}),_[8]=d):d=_[8],_[9]!==y?(m=y.length?y.split("/").map($):null,_[9]=y,_[10]=m):m=_[10],_[11]!==m?(u=(0,l.jsxs)(c,{type:"breadcrump",children:[d,m,"/"]}),_[11]=m,_[12]=u):u=_[12],_[13]!==y?(h=y.length>0&&(0,l.jsx)(c,{type:"folder",children:(0,l.jsx)(a.N_,{to:-1!==y.lastIndexOf("/")?y.slice(0,y.lastIndexOf("/")):"",children:"â¦"})}),_[13]=y,_[14]=h):h=_[14],_[15]===Symbol.for("react.memo_cache_sentinel")?(b=(0,l.jsx)(f,{}),_[15]=b):b=_[15],_[16]!==y||_[17]!==j?(x=(0,l.jsx)(i.tH,{FallbackComponent:p,children:(0,l.jsx)(s.Suspense,{fallback:b,children:(0,l.jsx)(T,{path:y,targetPath:j})})}),_[16]=y,_[17]=j,_[18]=x):x=_[18],_[19]!==u||_[20]!==h||_[21]!==x?(E=(0,l.jsxs)(g.a,{css:o,children:[u,h,x]}),_[19]=u,_[20]=h,_[21]=x,_[22]=E):E=_[22],E}function $(e,t,r){let n=r.slice(0,t+1).join("/");return(0,l.jsxs)(s.Fragment,{children:["/",(0,l.jsx)(a.N_,{to:`/browse/${n}`,children:e})]},n)}var j=new(r(5432)).VR("addons/**");function T(e){let t,r,a,o,i=(0,n.c)(17),{path:c,targetPath:m}=e;if(i[0]!==c)x.has(c)||x.set(c,E(c)),t=x.get(c),i[0]=c,i[1]=t;else t=i[1];let{folders:u,files:f}=(0,s.use)(t),p=c.length?c+"/":"";if("release"===c?u.sort(N):j.match(c)&&f.sort(y),i[2]!==p||i[3]!==u||i[4]!==m){let e;i[6]!==p||i[7]!==m?(e=e=>{let t=`${p}${e}`;return(0,l.jsx)(h,{path:t,loading:m===t},t)},i[6]=p,i[7]=m,i[8]=e):e=i[8],r=u.map(e),i[2]=p,i[3]=u,i[4]=m,i[5]=r}else r=i[5];if(i[9]!==p||i[10]!==f){let e;i[12]!==p?(e=e=>(0,l.jsx)(d,{path:`${p}${e}`},`${p}${e}`),i[12]=p,i[13]=e):e=i[13],a=f.map(e),i[9]=p,i[10]=f,i[11]=a}else a=i[11];return i[14]!==r||i[15]!==a?(o=(0,l.jsxs)(l.Fragment,{children:[r,a]}),i[14]=r,i[15]=a,i[16]=o):o=i[16],o}function y(e,t){let r=/[-]([0-9]+)[.]([0-9]+)[.]([0-9]+)[-.]/,l=e.match(r),n=t.match(r);if(null===l&&null!==n)return -1;if(null!==l&&null===n)return 1;if(null!==l&&null!==n){let e=1e6*parseInt(l[1])+1e3*parseInt(l[2])+parseInt(l[3]),t=1e6*parseInt(n[1])+1e3*parseInt(n[2])+parseInt(n[3])-e;if(0!==t)return t}return e.replace(/[-]/g,"").localeCompare(t.replace(/[-]/g,""))}function N(e,t){return -1*e.localeCompare(t)}var O=r(3944);let w=()=>{let e,t,r,s=(0,n.c)(6),i=(0,a.g)(),c=void 0!==i["*"]?i["*"]:"",d=c.length>0?`/${c}`:"Browser";return s[0]===Symbol.for("react.memo_cache_sentinel")?(e={"@initial":!1,"@md":!0},s[0]=e):e=s[0],s[1]!==c?(t=(0,l.jsx)(O.m,{padding:e,children:(0,l.jsx)(_,{path:c})}),s[1]=c,s[2]=t):t=s[2],s[3]!==d||s[4]!==t?(r=(0,l.jsx)(o.h,{title:d,description:"Browse LWJGL files",children:t}),s[3]=d,s[4]=t,s[5]=r):r=s[5],r}}}]);
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.