1"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[2030,1718,6624],{6261:function(r,e,t){t.d(e,{v:function(){return c}});var a=t(2265),u=t(1448),n=t(1276);function c(r,e){let t=a.useRef(),[c]=a.useState(()=>e?e instanceof u.Object3D?{current:e}:e:t),[o]=a.useState(()=>new u.AnimationMixer(void 0));a.useLayoutEffect(()=>{e&&(c.current=e instanceof u.Object3D?e:e.current),o._root=c.current});let m=a.useRef({}),h=a.useMemo(()=>{let e={};return r.forEach(r=>Object.defineProperty(e,r.name,{enumerable:!0,get(){if(c.current)return m.current[r.name]||(m.current[r.name]=o.clipAction(r,c.current))},configurable:!0})),{ref:c,clips:r,actions:e,names:r.map(r=>r.name),mixer:o}},[r]);return(0,n.F)((r,e)=>o.update(e)),a.useEffect(()=>{let r=c.current;return()=>{m.current={},o.stopAllAction(),Object.values(h.actions).forEach(e=>{r&&o.uncacheAction(e,r)})}},[r]),h}},7610:function(r,e,t){t.d(e,{j:function(){return u}});var a=t(2265);function u(r,e="pointer",t="auto",u=document.body){a.useEffect(()=>{if(r)return u.style.cursor=e,()=>void(u.style.cursor=t)},[r])}},6624:function(r,e,t){t.r(e),t.d(e,{Bunny:function(){return s}});var a=t(7437),u=t(2265),n=t(826),c=t(6261),o=t(7610),m=t(1448),h=t(7865);let i={yes:"CharacterArmature|CharacterArmature|CharacterArmature|Yes",wave:"CharacterArmature|CharacterArmature|CharacterArmature|Wave",walkHolding:"CharacterArmature|CharacterArmature|CharacterArmature|Walk_Holding",walk:"CharacterArmature|CharacterArmature|CharacterArmature|Walk",sword:"CharacterArmature|CharacterArmature|CharacterArmature|Sword",sittingStart:"CharacterArmature|CharacterArmature|CharacterArmature|Sitting_Start",sittingIdle:"CharacterArmature|CharacterArmature|CharacterArmature|Sitting_Idle",assemblyEnd:"CharacterArmature|CharacterArmature|CharacterArmature|Assembly_End",assemblyLoop:"CharacterArmature|CharacterArmature|CharacterArmature|Assembly_Loop",assemblyStart:"CharacterArmature|CharacterArmature|CharacterArmature|Assembly_Start",chopEnd:"CharacterArmature|CharacterArmature|CharacterArmature|Chop_End",chopLoop:"CharacterArmature|CharacterArmature|CharacterArmature|Chop_Loop",chopStart:"CharacterArmature|CharacterArmature|CharacterArmature|Chop_Start",death:"CharacterArmature|CharacterArmature|CharacterArmature|Death",duck:"CharacterArmature|CharacterArmature|CharacterArmature|Duck",hitReact:"CharacterArmature|CharacterArmature|CharacterArmature|HitReact",idle:"CharacterArmature|CharacterArmature|CharacterArmature|Idle",idleHolding:"CharacterArmature|CharacterArmature|CharacterArmature|Idle_Holding",jump:"CharacterArmature|CharacterArmature|CharacterArmature|Jump",jumpIdle:"CharacterArmature|CharacterArmature|CharacterArmature|Jump_Idle",jumpLand:"CharacterArmature|CharacterArmature|CharacterArmature|Jump_Land",no:"CharacterArmature|CharacterArmature|CharacterArmature|No",panEnd:"CharacterArmature|CharacterArmature|CharacterArmature|Pan_End",panLoop:"CharacterArmature|CharacterArmature|CharacterArmature|Pan_Loop",panStart:"CharacterArmature|CharacterArmature|CharacterArmature|Pan_Start",punch:"CharacterArmature|CharacterArmature|CharacterArmature|Punch",run:"CharacterArmature|CharacterArmature|CharacterArmature|Run",runHolding:"CharacterArmature|CharacterArmature|CharacterArmature|Run_Holding",sittingEating:"CharacterArmature|CharacterArmature|CharacterArmature|Sitting_Eating",sittingEnd:"CharacterArmature|CharacterArmature|CharacterArmature|Sitting_End"},l="sittingIdle";function s(r){let{currentAnimation:e=l,...t}=r,s=(0,u.useRef)(),{nodes:A,materials:C,animations:d}=(0,n.L)("/models/Bunny.glb"),{actions:p}=(0,c.v)(d,s),f=(0,u.useRef)(null),g=(0,u.useRef)(null),[y,b]=(0,u.useState)(!1),[_,E]=(0,u.useState)(!1);(0,o.j)(_),(0,u.useEffect)(()=>{if(!p||0===Object.keys(p).length)return;g.current&&(clearTimeout(g.current),g.current=null);let r=()=>{let r=i[l];if(!r||!p[r]){console.warn("Idle animation not found ".concat(r));return}let e=p[r];f.current&&f.current.fadeOut(.5),e.reset().setLoop(m.LoopRepeat,1/0).fadeIn(.5).play(),f.current=e};return(e=>{if(e===l&&f.current===p[i[l]])return;let t=i[e];if(!t){console.warn("Animation not found: ".concat(e)),r();return}let a=p[t];if(f.current&&f.current.fadeOut(.5),e===l)a.reset().setLoop(m.LoopRepeat,1/0).fadeIn(.5).play();else{a.reset().setLoop(m.LoopRepeat,1).fadeIn(.5).play();let e=1e3*a.getClip().duration;g.current=setTimeout(()=>{r()},e+500)}f.current=a})(e),()=>{g.current&&clearTimeout(g.current)}},[e,p]);let{audioEnabled:k,dialogAudioPlaying:L}=(0,h.Z)(),R=(0,u.useRef)();return(0,u.useEffect)(()=>
1{R.current=new Audio("./soundEffects/bunnyHi.mp3"),R.current.preload="auto"},[]),(0,a.jsx)("group",{ref:s,...t,dispose:null,onClick:r=>{r.stopPropagation(),R.current&&k&&!L&&(R.current.currentTime=0,R.current.play().catch(r=>{console.log("error playing bunny audio: ",r)})),b(!0),f.current&&f.current.fadeOut(.5);let e=p[i.idleHolding];e.reset().setLoop(m.LoopRepeat,1).fadeIn(.5).play();let t=1e3*e.getClip().duration;g.current&&clearTimeout(g.current),g.current=setTimeout(()=>{let r=p[i[l]];f.current&&f.current.fadeOut(.5),r.reset().setLoop(m.LoopRepeat,1/0).fadeIn(.5).play(),f.current=r,b(!1)},t+500),f.current=e},onPointerOver:()=>E(!0),onPointerOut:()=>E(!1),children:(0,a.jsx)("group",{name:"Root_Scene",children:(0,a.jsxs)("group",{name:"RootNode",children:[(0,a.jsx)("group",{name:"CharacterArmature",rotation:[-Math.PI/2,0,0],scale:100,children:(0,a.jsx)("primitive",{object:A.Root})}),(0,a.jsx)("skinnedMesh",{name:"Rabbit",geometry:A.Rabbit.geometry,material:C.AtlasMaterial,skeleton:A.Rabbit.skeleton,rotation:[-Math.PI/2,0,0],scale:100}),(0,a.jsx)("skinnedMesh",{name:"Eyes",geometry:A.Eyes.geometry,material:new m.MeshBasicMaterial({map:C.AtlasMaterial.map}),skeleton:A.Eyes.skeleton,rotation:[-Math.PI/2,0,0],scale:100}),(0,a.jsx)("skinnedMesh",{name:"Hair",geometry:A.Hair.geometry,material:new m.MeshStandardMaterial({color:"rebeccapurple"}),skeleton:A.Hair.skeleton,rotation:[-Math.PI/2,0,0],scale:100})]})})})}s.displayName="Bunny",n.L.preload("/models/Bunny.glb")}}]);
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.