PageSourceSearch

https://www.sretks.com/_next/static/chunks/pages/vr-ad3aea0f4cab14d1.js

js sretks.com collected 2026-10-04 05:48:13 UTC 9,233 bytes, 1 lines download raw bytes

1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[693],{4943:function(t,e,n){(window.__NEXT_P=window.__NEXT_P||[]).push(["/vr",function(){return n(5114)}])},5114:function(t,e,n){"use strict";n.r(e),n.d(e,{default:function(){return S}});var r=n(5893),o=n(7294),a=n(4551),i=n(9452),c=n(4865),s=n.n(c),l=n(2804),u=n(7779),f=n(6355),h=n(5385),p=n(1874),v=n(3685),d=n(7332);function y(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function w(t,e,n){return w="undefined"!==typeof Reflect&&Reflect.get?Reflect.get:function(t,e,n){var r=function(t,e){for(;!Object.prototype.hasOwnProperty.call(t,e)&&null!==(t=b(t)););return t}(t,e);if(r){var o=Object.getOwnPropertyDescriptor(r,e);return o.get?o.get.call(n):o.value}},w(t,e,n||t)}function b(t){return b=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)},b(t)}function g(t,e){return!e||"object"!==m(e)&&"function"!==typeof e?function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t):e}function _(t,e){return _=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t},_(t,e)}var m=function(t){return t&&"undefined"!==typeof Symbol&&t.constructor===Symbol?"symbol":typeof t};function T(t){var e=function(){if("undefined"===typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"===typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}();return function(){var n,r=b(t);if(e){var o=b(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return g(this,n)}}var P=function(t){!function(t,e){if("function"!==typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&_(t,e)}(a,t);var e,n,r,o=T(a);function a(t,e){var n;return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,a),(n=o.call(this,t,e)).charaRoot=new h.TransformNode("CharaRoot"),n.skyRoot=new h.TransformNode("SkyRoot"),n.rotateSky=function(t,e){var r,o=n.getNode(t),a=new h.TransformNode(t+"Root");o.parent=a,a.parent=n.skyRoot,o.position=new h.Vector3(0,0,-6),o.rotate(new h.Vector3(0,1,0),180*Math.PI/180),a.rotate(new h.Vector3(0,1,0),e*Math.PI/180),null===(r=n.getAnimation(t,"Chara02Sit"))||void 0===r||r.start(!0,1,0,240,!0)},n.contentsLoadTotal=4,n}return e=a,(n=[{key:"loadAssets",value:function(){this.loadAsset("chara01.glb"),this.loadAsset("chara02.glb"),this.loadAsset("elephant.glb")}},{key:"setup",value:function(){var t;w(b(a.prototype),"setup",this).call(this),this.createInstance("chara01.glb","chara01_01"),this.createInstance("chara02.glb","chara02_01"),this.createInstance("chara02.glb","chara02_02"),this.createInstance("chara02.glb","chara02_03"),this.createInstance("chara02.glb","chara02_04"),this.createInstance("elephant.glb","elephant01"),this.createInstance("elephant.glb","elephant02"),this.createInstance("elephant.glb","elephant03"),this.getNode("chara01_01").position=new h.Vector3(0,0,-8),null===(t=this.getAnimation("chara01_01","Chara01Order"))||void 0===t||t.start(!0,1,0,240,!0),this.skyRoot.position=new h.Vector3(0,7.5,0),this.rotateSky("chara02_01",0),this.rotateSky("chara02_02",90),this.rotateSky("chara02_03",180),this.rotateSky("chara02_04",270),this.rotateElephant("elephant01",180,60),this.rotateElephant("elephant02",180,180),this.rotateElephant("elephant03",180,300),p.Z.setMaterialAlphaType(this.scene,"StageLight",h.Material.MATERIAL_ALPHABLEND),p.Z.setMaterialAlphaType(this.scene,"StageMetal",h.Material.MATERIAL_ALPHATEST),this.particleController=new d.Z(this.scene),this.camera=new h.ArcRotateCamera("camera",-Math.PI/2,Math.PI/4,3,new h.Vector3(0,3,0),this.scene),this.camera.attachControl(this.canvas,!0),this.scene.activeCamera=this.camera,this.scene.createDefaultXRExperienceAsync();var e=165;this.createTitle("/element/sretks.svg",5,1,8,e),this.createTitle("/element/position.svg",5,.35,7.25,e),this.createTitle("/element/who.svg",5,2.5,10.5,255),this.createTitle("/element/who__text.svg",10,4,7.25,255),this.createTitle("/element/develop.svg",5,1,8.25,345),this.createTitle("/element/develop__text.svg",10,1.5,7.25,345),this.createTitle("/element/visual.svg",5,1,8.25,435),this.createTitle("/element/visual__text.svg",4,1.5,6.75,435)}},{key:"rotateElephant",value:function(t,e,n){var r;this.getNode(t).scaling=new h.Vector3(1.5,1.5,1.5),this.rotateChara(t,e,n),null===(r=this.getAnimation(t,"ElephantWalk"))||void 0===r||r.start(!0,1,0,240,!0)}},{key:"rotateChara",value:function(t,e,n){var r=this.getNode(t),o=new h.TransformNode(t+"Root");
1o.parent=this.charaRoot,r.parent=o,r.position=new h.Vector3(-5,0,0),r.rotate(new h.Vector3(0,1,0),e*Math.PI/180),o.rotate(new h.Vector3(0,-1,0),n*Math.PI/180)}},{key:"createTitle",value:function(t,e,n,r,o){var a=new h.Texture(t,this.scene);a.hasAlpha=!0;var i=new h.StandardMaterial(t,this.scene);i.diffuseTexture=a,i.emissiveTexture=a,i.useAlphaFromDiffuseTexture=!0,i.alpha=.7;var c=new h.TransformNode(t,this.scene);c.rotate(new h.Vector3(0,1,0),o*Math.PI/180);var s=h.MeshBuilder.CreatePlane(t,{width:e,height:n},this.scene);s.parent=c,s.material=i,s.position=new h.Vector3(-e/2,r,-10),s.rotate(new h.Vector3(0,1,0),200*Math.PI/180)}},{key:"update",value:function(){this.charaRoot.rotation.y+=.002,this.skyRoot.rotation.y+=.004,this.particleController.update(),w(b(a.prototype),"update",this).call(this)}}])&&y(e.prototype,n),r&&y(e,r),a}(v.Z);function E(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}var R=function(){function t(e){var n=this;!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),this.resize=function(){n.stage.resize()},this.stage=new P(e,"stage.glb")}var e,n,r;return e=t,(n=[{key:"start",value:function(){this.stage.start(),window.addEventListener("resize",this.resize)}},{key:"stop",value:function(){this.stage.stop(),window.removeEventListener("resize",this.resize)}}])&&E(e.prototype,n),r&&E(e,r),t}();function O(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function k(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}
1function j(t){return j=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)},j(t)}function C(t,e){return!e||"object"!==x(e)&&"function"!==typeof e?function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t):e}function A(t,e){return A=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t},A(t,e)}var x=function(t){return t&&"undefined"!==typeof Symbol&&t.constructor===Symbol?"symbol":typeof t};function I(t){var e=function(){if("undefined"===typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"===typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}();return function(){var n,r=j(t);if(e){var o=j(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return C(this,n)}}var L=function(t){!function(t,e){if("function"!==typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&A(t,e)}(a,t);var e,n,r,o=I(a);function a(){var t;return O(this,a),(t=o.apply(this,arguments)).initVrController=function(e){t.vrController=new R(e),e.addEventListener("contentsLoadProgress",t.contentsLoadCheck)},t}return e=a,(n=[{key:"start",value:function(){this.vrController.start()}}])&&k(e.prototype,n),r&&k(e,r),a}(f.Z);var N=new L,S=function(t){t=null!==t?t:function(t){throw t}(new TypeError("Cannot destructure undefined")),n(5962);var e=(0,l.sJ)(u.aP),c=(0,o.useState)(!1),f=c[0],h=c[1],p=(0,l.Zl)(u.jd),v=(0,o.useRef)(null);(0,o.useEffect)((function(){return function(){window.removeEventListener("contentsLoadProgress",y),N.finalize()}}),[]),(0,o.useEffect)((function(){e&&d()}),[e]),(0,o.useEffect)((function(){f&&window.scrollTo(0,0)}),[f]);var d=function(){window.addEventListener("contentsLoadProgress",y),v.current&&N.initVrController(v.current)},y=function(t){p({loaded:t.detail.loaded,loadTotal:t.detail.loadTotal}),t.detail.loaded>=t.detail.loadTotal&&(window.removeEventListener("contentsLoadProgress",y),h(!0),N.start())};return(0,r.jsxs)(a.Z,{children:[(0,r.jsx)("div",{className:s().container,children:(0,r.jsx)("div",{className:s().front__container,children:(0,r.jsx)("canvas",{ref:v,className:s().front1})})}),(0,r.jsx)(i.h,{})]})}},1163:function(t,e,n){t.exports=n(387)},4298:function(t,e,n){t.exports=n(699)}},function(t){t.O(0,[68,946,376,774,888,179],(function(){return e=4943,t(t.s=e);var e}));var e=t.O();_N_E=e}]);

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.