1"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[2900],{98:(e,t,l)=>{l.d(t,{EB:()=>u,ER:()=>s,cC:()=>c,sD:()=>f});var n=l(7548),r=l(2006),a=l(3464),o=l(6170),i=l(6451);function c(e,t){var l,c,s,u,f;let h=new n.Z58,d=new n.ubm(null!=(l=null==t?void 0:t.fov)?l:60,4/3,.1,500),p=new n.JeP({antialias:!0});p.setPixelRatio(Math.min(window.devicePixelRatio||1,1.5)),p.setClearColor(null!=(c=null==t?void 0:t.clear)?c:657940),(null==t?void 0:t.shadows)&&(p.shadowMap.enabled=!0,p.shadowMap.type=n.Wk7);let g=p.domElement;g.style.width="100%",g.style.height="100%",g.style.display="block",e.appendChild(g);let m=null;(null==t?void 0:t.bloom)&&((m=new r.s(p)).addPass(new o.A(h,d)),m.addPass(new i.C(new n.I9Y(256,256),null!=(s=t.bloom.strength)?s:.5,null!=(u=t.bloom.radius)?u:.5,null!=(f=t.bloom.threshold)?f:.7)),m.addPass(new a.X));let w=()=>{let t=e.clientWidth||1,l=e.clientHeight||1;p.setSize(t,l,!1),m&&(m.setPixelRatio(p.getPixelRatio()),m.setSize(t,l)),d.aspect=t/l,d.updateProjectionMatrix()};w();let M=new ResizeObserver(w);return M.observe(e),{scene:h,camera:d,renderer:p,render:()=>{m?m.render():p.render(h,d)},dispose:()=>{M.disconnect(),null==m||m.dispose(),h.traverse(e=>{e.geometry&&e.geometry.dispose();let t=e.material;Array.isArray(t)?t.forEach(e=>
1e.dispose()):null==t||t.dispose()}),p.dispose(),g.parentElement===e&&e.removeChild(g)}}}function s(e,t,l){let r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:1,a=arguments.length>4&&void 0!==arguments[4]?arguments[4]:1,o=document.createElement("canvas");o.width=e,o.height=t,l(o.getContext("2d"),e,t);let i=new n.GOR(o);return i.colorSpace=n.er$,i.wrapS=n.GJx,i.wrapT=n.GJx,i.repeat.set(r,a),i.anisotropy=4,i}function u(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:128,t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"#808080",l=arguments.length>2&&void 0!==arguments[2]?arguments[2]:26;return s(e,e,n=>{n.fillStyle=t,n.fillRect(0,0,e,e);for(let t=0;t<e*e*.35;t++){let t=128+Math.floor((Math.random()-.5)*2*l);n.fillStyle="rgb(".concat(t,",").concat(t,",").concat(t,")"),n.fillRect(Math.random()*e,Math.random()*e,1.5,1.5)}})}function f(e,t){let l=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0xffffff,r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:.6,a=new Float32Array(3*e);for(let l=0;l<e;l++){let e=t*(.5+.5*Math.random()),n=Math.random()*Math.PI*2,r=(Math.random()-.5)*Math.PI;a[3*l]=Math.cos(n)*Math.cos(r)*e,a[3*l+1]=Math.sin(r)*e,a[3*l+2]=Math.sin(n)*Math.cos(r)*e}let o=new n.LoY;o.setAttribute("position",new n.THS(a,3));let i=new n.BH$({color:l,size:r,sizeAttenuation:!0,transparent:!0,opacity:.8,blending:n.EZo,depthWrite:!1});return new n.ONl(o,i)}},5618:(e,t,l)=>{l.d(t,{lo:()=>a,HC:()=>c,JI:()=>i});var n=l(7548),r=l(6121);let a={idle:"C.096_ACalm.F",walk:"C.096_DWlk.F - Forward",run:"C.096_ARun.F - Forward",scream:"C.096_Dstd.F"},o=null;function i(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:3;return o||(o=new Promise((t,l)=>{new r.B().load("/models/scp096/scene.gltf",l=>{let r=l.scene;r.updateWorldMatrix(!0,!0);let a=new n.NRn().setFromObject(r),o=new n.Pq0;a.getSize(o),r.scale.multiplyScalar(e/(o.y||1)),r.updateWorldMatrix(!0,!0);let i=new n.NRn().setFromObject(r),c=new n.Pq0;i.getCenter(c),r.position.x-=c.x,r.position.z-=c.z,r.position.y-=i.min.y,r.traverse(e=>{e.isMesh&&(e.castShadow=!0,e.receiveShadow=!1,e.frustumCulled=!1)});let s=new n.YJl;s.add(r),t({scene:s,animations:l.animations})},void 0,e=>l(e))}).catch(e=>{throw o=null,e}))}function c(e){let t=function(e){let t=new Map,l=new Map,n=e.clone();return function e(t,l,n){n(t,l);for(let r=0;r<t.children.length;r++)e(t.children[r],l.children[r],n)}(e,n,function(e,n){t.set(n,e),l.set(e,n)}),n.traverse(function(e){if(!e.isSkinnedMesh)return;let n=t.get(e),r=n.skeleton.bones;e.skeleton=n.skeleton.clone(),e.bindMatrix.copy(n.bindMatrix),e.skeleton.bones=r.map(function(e){return l.get(e)}),e.bind(e.skeleton,e.bindMatrix)}),n}(e.scene),l=[];t.traverse(e=>{if(!e.isMesh)return;e.castShadow=!0,e.receiveShadow=!1,e.frustumCulled=!1;let t=e.material;if(Array.isArray(t))e.material=t.map(e=>{let t=e.clone();return l.push(t),t});else{let n=t.clone();e.material=n,l.push(n)}});let r=new n.Iw4(t),a=new Map;for(let t of e.animations)a.set(t.name,t);let o=new Map,i=null;return{group:t,mixer:r,materials:l,play:function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:.3;if(e===i)return;let l=(e=>{let t=o.get(e);if(t)return t;let l=a.get(e);if(!l)return null;let n=r.clipAction(l);return o.set(e,n),n})(e);if(!l)return;l.reset(),l.enabled=!0,l.play();let n=i?o.get(i):null;n&&n!==l?n.crossFadeTo(l,t,!1):l.fadeIn(t),i=e},has:e=>a.has(e)}}},8812:(e,t,l)=>{l.d(t,{CY:()=>p,Ew:()=>d,FV:()=>g,Hh:()=>m,JA:()=>a,RA:()=>M,S:()=>h,TN:()=>c,Z:()=>r,bP:()=>y,f$:()=>f,f2:()=>w,jE:()=>x,ne:()=>s,o8:()=>o,yb:()=>C});var n=l(7548);let r=23,a=3.1,o=2.8,i=e=>(function(e){return()=>{e|=0;let t=Math.imul((e=e+0x6d2b79f5|0)^e>>>15,1|e);return(((t=t+Math.imul(t^t>>>7,61|t)^t)^t>>>14)>>>0)/0x100000000}})(function(e){let t=0x811c9dc5;for(let l=0;l<e.length;l++)t^=e.charCodeAt(l),t=Math.imul(t,0x1000193);return t>>>0}(e)||1),c=e=>"".concat(e.c,",").concat(e.r),s=(e,t)=>e.c===t.c&&e.r===t.r,u=(e,t)=>{let l=[...e];for(let e=l.length-1;e>0;e--){let n=Math.floor(t()*(e+1));[l[e],l[n]]=[l[n],l[e]]}return l};function f(e,t,l){return l<0||t<0||l>=r||t>=r||"#"===e[l][t]}function h(e){let t=(r-1)/2;
1return new n.I9Y((e.c-t)*a,(e.r-t)*a)}function d(e){let t=(r-1)/2;return{c:Math.round(e.x/a+t),r:Math.round(e.y/a+t)}}function p(e,t){let l=[];for(let n of[{c:1,r:0},{c:-1,r:0},{c:0,r:1},{c:0,r:-1}]){let r={c:t.c+n.c,r:t.r+n.r};f(e,r.c,r.r)||l.push(r)}return l}function g(e,t){let l=new Map,n=[t];l.set(c(t),0);for(let t=0;t<n.length;t++){var r;let a=n[t],o=null!=(r=l.get(c(a)))?r:0;for(let t of p(e,a)){let e=c(t);l.has(e)||(l.set(e,o+1),n.push(t))}}return l}function m(e,t,l){if(s(t,l))return[t];let n=[t],r=new Map;r.set(c(t),null);for(let t=0;t<n.length;t++){let a=n[t];if(s(a,l))break;for(let t of p(e,a)){let e=c(t);r.has(e)||(r.set(e,c(a)),n.push(t))}}let a=c(l);if(!r.has(a))return[t];let o=[],i=a;for(;i;){var u;let[e,t]=i.split(",").map(Number);o.push({c:e,r:t}),i=null!=(u=r.get(i))?u:null}return o.reverse()}function w(e,t,l){return[[0,0],[l,0],[-l,0],[0,l],[0,-l],[.7*l,.7*l],[.7*l,-(.7*l)],[-(.7*l),.7*l],[-(.7*l),-(.7*l)]].every(l=>{let[r,a]=l,o=d(new n.I9Y(t.x+r,t.y+a));return!f(e,o.c,o.r)})}function M(e,t,l){let r=Math.max(2,Math.ceil(t.distanceTo(l)/(.28*a)));for(let a=1;a<r;a++){let o=a/r,i=d(new n.I9Y(n.cj9.lerp(t.x,l.x,o),n.cj9.lerp(t.y,l.y,o)));if(f(e,i.c,i.r))return!1}return!0}function v(e,t,l,n){let r=[];for(let a of u(e.slice(0,Math.max(40,18*t)),n))if(r.every(e=>Math.abs(e.c-a.c)+Math.abs(e.r-a.r)>=l)&&(r.push(a),r.length===t))break;for(let l of e){if(r.length===t)break;r.some(e=>s(e,l))||r.push(l)}return r}function b(e,t,l,n,r,a){let o=u(e,a).map(e=>{var t,l;let a=c(e);return{cell:e,bias:(null!=(t=n.get(a))?t:0)-(null!=(l=r.get(a))?l:0)}}),i=[],s=new Set,f=0,h=(e,t)=>i.every(l=>Math.abs(l.c-e.c)+Math.abs(l.r-e.r)>=t);for(let e of[l,l-1,l-2,1])if(!(e<1)){for(;i.length<t;){let t=null,l=1/0;for(let n of o){if(s.has(c(n.cell))||!h(n.cell,e))continue;let r=Math.abs(f+n.bias);r<l&&(l=r,t=n)}if(!t)break;s.add(c(t.cell)),i.push(t.cell),f+=t.bias}if(i.length===t)break}return i}function y(){var e,t,l;let n,a,o=arguments.length>0&&void 0!==arguments[0]?arguments[0]:Math.random,i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},f=null!=(e=i.cards)?e:3,h=null!=(t=i.enemies)?t:6,d=null!=(l=i.placement)?l:"far",p=Array.from({length:r},()=>Array.from({length:r},()=>"#")),m={c:1,r:1},w={c:r-2,r:r-2},M=[{c:2,r:0},{c:-2,r:0},{c:0,r:2},{c:0,r:-2}],y=e=>{for(let t of(p[e.r][e.c]=".",u(M,o))){let l={c:e.c+t.c,r:e.r+t.r};l.c<=0||l.r<=0||l.c>=r-1||l.r>=r-1||"."===p[l.r][l.c]||(p[e.r+t.r/2][e.c+t.c/2]=".",y(l))}};y(m);for(let e=0;e<42;e++){let e=2+Math.floor(o()*(r-4)),t=2+Math.floor(o()*(r-4));if("#"!==p[t][e])continue;let l="."===p[t][e-1]&&"."===p[t][e+1],n="."===p[t-1][e]&&"."===p[t+1][e];(l||n)&&(p[t][e]=".")}p[m.r][m.c]=".",p[m.r][m.c+1]=".",p[m.r+1][m.c]=".",p[w.r][w.c]=".",p[w.r][w.c-1]=".",p[w.r-1][w.c]=".";let x=[];for(let e=0;e<r;e++)for(let t=0;t<r;t++)"."===p[e][t]&&x.push({c:t,r:e});let C=p.map(e=>e.join("")),k=g(C,m);if("balanced"===d){let e=g(C,w);n=b(x.filter(t=>{let l=c(t),n=k.get(l),r=e.get(l);return null!=n&&null!=r&&n>3&&r>3}),f,5,k,e,o)}else n=v(x.filter(e=>{var t;return(null!=(t=k.get(c(e)))?t:0)>35&&!s(e,w)}).sort((e,t)=>{var l,n;return(null!=(l=k.get(c(t)))?l:0)-(null!=(n=k.get(c(e)))?n:0)}),f,8,o);let S=new Set([c(m),c(w),...n.map(c)]);if("balanced"===d){let e=g(C,w);a=b(x.filter(t=>{let l=c(t),n=k.get(l),r=e.get(l);return null!=n&&null!=r&&n>7&&r>7&&!S.has(l)}),h,4,k,e,o)}else a=v(x.filter(e=>{var t;return(null!=(t=k.get(c(e)))?t:0)>18&&!S.has(c(e))}).sort((e,t)=>{var l,n;return(null!=(l=k.get(c(t)))?l:0)-(null!=(n=k.get(c(e)))?n:0)}),h,4,o);return{rows:C,open:x,start:m,exit:w,cards:n,enemies:a}}function x(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},l=null,n=1/0;for(let r=0;r<12;r++){let a=y(i("".concat(e,"#").concat(r)),{...t,placement:"balanced"}),o=function(e){let t=g(e.rows,e.start),l=g(e.rows,e.exit),n=0,r=0;for(let i of e.cards){var a,o;n+=null!=(a=t.get(c(i)))?a:0,r+=null!=(o=l.get(c(i)))?o:0}let i=(n+r)/2;return 0===i?0:Math.abs(n-r)/i}(a);if(o<=.08)return a;o<n&&(n=o,l=a)}return l}let C=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:Math.random;return u(e,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.