ThreeJS-Webpack-ES6-Boilerp.../build/js/2.app.js

13 lines
564 KiB
JavaScript
Raw Normal View History

2019-01-29 21:54:53 +00:00
(window.webpackJsonp=window.webpackJsonp||[]).push([[2],[function(t,e,n){"use strict";function r(){}n.r(e),n.d(e,"WebGLRenderTargetCube",function(){return Bn}),n.d(e,"WebGLRenderTarget",function(){return Dn}),n.d(e,"WebGLRenderer",function(){return ko}),n.d(e,"ShaderLib",function(){return $n}),n.d(e,"UniformsLib",function(){return Kn}),n.d(e,"UniformsUtils",function(){return Xn}),n.d(e,"ShaderChunk",function(){return Hn}),n.d(e,"FogExp2",function(){return Vo}),n.d(e,"Fog",function(){return jo}),n.d(e,"Scene",function(){return Wo}),n.d(e,"Sprite",function(){return Jo}),n.d(e,"LOD",function(){return Zo}),n.d(e,"SkinnedMesh",function(){return Qo}),n.d(e,"Skeleton",function(){return Ko}),n.d(e,"Bone",function(){return $o}),n.d(e,"Mesh",function(){return Gi}),n.d(e,"LineSegments",function(){return ns}),n.d(e,"LineLoop",function(){return rs}),n.d(e,"Line",function(){return es}),n.d(e,"Points",function(){return as}),n.d(e,"Group",function(){return vo}),n.d(e,"VideoTexture",function(){return os}),n.d(e,"DataTexture",function(){return Nn}),n.d(e,"DataTexture3D",function(){return Ki}),n.d(e,"CompressedTexture",function(){return ss}),n.d(e,"CubeTexture",function(){return Qi}),n.d(e,"CanvasTexture",function(){return cs}),n.d(e,"DepthTexture",function(){return us}),n.d(e,"Texture",function(){return On}),n.d(e,"AnimationLoader",function(){return $c}),n.d(e,"CompressedTextureLoader",function(){return tu}),n.d(e,"DataTextureLoader",function(){return eu}),n.d(e,"CubeTextureLoader",function(){return ru}),n.d(e,"TextureLoader",function(){return iu}),n.d(e,"ObjectLoader",function(){return Vu}),n.d(e,"MaterialLoader",function(){return Gu}),n.d(e,"BufferGeometryLoader",function(){return Hu}),n.d(e,"DefaultLoadingManager",function(){return Zc}),n.d(e,"LoadingManager",function(){return Jc}),n.d(e,"ImageLoader",function(){return nu}),n.d(e,"ImageBitmapLoader",function(){return Ku}),n.d(e,"FontLoader",function(){return nh}),n.d(e,"FileLoader",function(){return Kc}),n.d(e,"Loader",function(){return rh}),n.d(e,"LoaderUtils",function(){return Fu}),n.d(e,"Cache",function(){return Yc}),n.d(e,"AudioLoader",function(){return Eh}),n.d(e,"SpotLightShadow",function(){return Ru}),n.d(e,"SpotLight",function(){return Ou}),n.d(e,"PointLight",function(){return Iu}),n.d(e,"RectAreaLight",function(){return Uu}),n.d(e,"HemisphereLight",function(){return Pu}),n.d(e,"DirectionalLightShadow",function(){return Bu}),n.d(e,"DirectionalLight",function(){return Nu}),n.d(e,"AmbientLight",function(){return zu}),n.d(e,"LightShadow",function(){return Cu}),n.d(e,"Light",function(){return Lu}),n.d(e,"StereoCamera",function(){return Sh}),n.d(e,"PerspectiveCamera",function(){return xo}),n.d(e,"OrthographicCamera",function(){return Du}),n.d(e,"CubeCamera",function(){return Th}),n.d(e,"ArrayCamera",function(){return bo}),n.d(e,"Camera",function(){return yo}),n.d(e,"AudioListener",function(){return Lh}),n.d(e,"PositionalAudio",function(){return Ch}),n.d(e,"AudioContext",function(){return Mh}),n.d(e,"AudioAnalyser",function(){return Rh}),n.d(e,"Audio",function(){return Ph}),n.d(e,"VectorKeyframeTrack",function(){return Wc}),n.d(e,"StringKeyframeTrack",function(){return jc}),n.d(e,"QuaternionKeyframeTrack",function(){return Vc}),n.d(e,"NumberKeyframeTrack",function(){return Hc}),n.d(e,"ColorKeyframeTrack",function(){return Fc}),n.d(e,"BooleanKeyframeTrack",function(){return Gc}),n.d(e,"PropertyMixer",function(){return Oh}),n.d(e,"PropertyBinding",function(){return ml}),n.d(e,"KeyframeTrack",function(){return Uc}),n.d(e,"AnimationUtils",function(){return Ic}),n.d(e,"AnimationObjectGroup",function(){return gl}),n.d(e,"AnimationMixer",function(){return yl}),n.d(e,"AnimationClip",function(){return qc}),n.d(e,"Uniform",function(){return xl}),n.d(e,"InstancedBufferGeometry",function(){return bl}),n.d(e,"BufferGeometry",function(){return ri}),n.d(e,"Geometry",function(){return Ir}),n.d(e,"InterleavedBufferAttribute",function(){return Xo}),n.d(e,"InstancedInterleavedBuffer",function(){return wl}),n.d(e,"InterleavedBuffer",function(){return qo}),n.d(e,"InstancedBufferAttribute",function(){ret
//!\ DECLARE ALIAS AFTER assign prototype !
Object.assign(Dc.prototype,{beforeStart_:Dc.prototype.copySampleValue_,afterEnd_:Dc.prototype.copySampleValue_}),Bc.prototype=Object.assign(Object.create(Dc.prototype),{constructor:Bc,DefaultSettings_:{endingStart:Ve,endingEnd:Ve},intervalChanged_:function(t,e,n){var r=this.parameterPositions,i=t-2,a=t+1,o=r[i],s=r[a];if(void 0===o)switch(this.getSettings_().endingStart){case je:i=t,o=2*e-n;break;case We:o=e+r[i=r.length-2]-r[i+1];break;default:i=t,o=n}if(void 0===s)switch(this.getSettings_().endingEnd){case je:a=t,s=2*n-e;break;case We:s=n+r[a=1]-r[0];break;default:a=t-1,s=e}var c=.5*(n-e),u=this.valueSize;this._weightPrev=c/(e-o),this._weightNext=c/(s-n),this._offsetPrev=i*u,this._offsetNext=a*u},interpolate_:function(t,e,n,r){for(var i=this.resultBuffer,a=this.sampleValues,o=this.valueSize,s=t*o,c=s-o,u=this._offsetPrev,h=this._offsetNext,l=this._weightPrev,d=this._weightNext,p=(n-e)/(r-e),f=p*p,m=f*p,g=-l*m+2*l*f-l*p,v=(1+l)*m+(-1.5-2*l)*f+(-.5+l)*p+1,y=(-1-d)*m+(1.5+d)*f+.5*p,x=d*m-d*f,b=0;b!==o;++b)i[b]=g*a[u+b]+v*a[c+b]+y*a[s+b]+x*a[h+b];return i}}),Nc.prototype=Object.assign(Object.create(Dc.prototype),{constructor:Nc,interpolate_:function(t,e,n,r){for(var i=this.resultBuffer,a=this.sampleValues,o=this.valueSize,s=t*o,c=s-o,u=(n-e)/(r-e),h=1-u,l=0;l!==o;++l)i[l]=a[c+l]*h+a[s+l]*u;return i}}),zc.prototype=Object.assign(Object.create(Dc.prototype),{constructor:zc,interpolate_:function(t){return this.copySampleValue_(t-1)}}),Object.assign(Uc,{toJSON:function(t){var e,n=t.constructor;if(void 0!==n.toJSON)e=n.toJSON(t);else{e={name:t.name,times:Ic.convertArray(t.times,Array),values:Ic.convertArray(t.values,Array)};var r=t.getInterpolation();r!==t.DefaultInterpolation&&(e.interpolation=r)}return e.type=t.ValueTypeName,e}}),Object.assign(Uc.prototype,{constructor:Uc,TimeBufferType:Float32Array,ValueBufferType:Float32Array,DefaultInterpolation:He,InterpolantFactoryMethodDiscrete:function(t){return new zc(this.times,this.values,this.getValueSize(),t)},InterpolantFactoryMethodLinear:function(t){return new Nc(this.times,this.values,this.getValueSize(),t)},InterpolantFactoryMethodSmooth:function(t){return new Bc(this.times,this.values,this.getValueSize(),t)},setInterpolation:function(t){var e;switch(t){case Fe:e=this.InterpolantFactoryMethodDiscrete;break;case He:e=this.InterpolantFactoryMethodLinear;break;case ke:e=this.InterpolantFactoryMethodSmooth}if(void 0!==e)return this.createInterpolant=e,this;var n="unsupported interpolation for "+this.ValueTypeName+" keyframe track named "+this.name;if(void 0===this.createInterpolant){if(t===this.DefaultInterpolation)throw new Error(n);this.setInterpolation(this.DefaultInterpolation)}return console.warn("THREE.KeyframeTrack:",n),this},getInterpolation:function(){switch(this.createInterpolant){case this.InterpolantFactoryMethodDiscrete:return Fe;case this.InterpolantFactoryMethodLinear:return He;case this.InterpolantFactoryMethodSmooth:return ke}},getValueSize:function(){return this.values.length/this.times.length},shift:function(t){if(0!==t)for(var e=this.times,n=0,r=e.length;n!==r;++n)e[n]+=t;return this},scale:function(t){if(1!==t)for(var e=this.times,n=0,r=e.length;n!==r;++n)e[n]*=t;return this},trim:function(t,e){for(var n=this.times,r=n.length,i=0,a=r-1;i!==r&&n[i]<t;)++i;for(;-1!==a&&n[a]>e;)--a;if(++a,0!==i||a!==r){a<=i&&(i=(a=Math.max(a,1))-1);var o=this.getValueSize();this.times=Ic.arraySlice(n,i,a),this.values=Ic.arraySlice(this.values,i*o,a*o)}return this},validate:function(){var t=!0,e=this.getValueSize();e-Math.floor(e)!=0&&(console.error("THREE.KeyframeTrack: Invalid value size in track.",this),t=!1);var n=this.times,r=this.values,i=n.length;0===i&&(console.error("THREE.KeyframeTrack: Track is empty.",this),t=!1);for(var a=null,o=0;o!==i;o++){var s=n[o];if("number"==typeof s&&isNaN(s)){console.error("THREE.KeyframeTrack: Time is not a valid number.",this,o,s),t=!1;break}if(null!==a&&s<a){console.error("THREE.KeyframeTrack: Out of order keys.",this,o,s,a),t=!1;break}a=s}if(void 0!==r&&Ic.isTypedArray(r)){o=0;for(var c=r.length;o!==c;++o){var u=r[o];if(isNaN(u)){consol
//!\ DECLARE ALIAS AFTER assign prototype !
Object.assign(ml.prototype,{_getValue_unbound:ml.prototype.getValue,_setValue_unbound:ml.prototype.setValue}),Object.assign(gl.prototype,{isAnimationObjectGroup:!0,add:function(){for(var t=this._objects,e=t.length,n=this.nCachedObjects_,r=this._indicesByUUID,i=this._paths,a=this._parsedPaths,o=this._bindings,s=o.length,c=void 0,u=0,h=arguments.length;u!==h;++u){var l=arguments[u],d=l.uuid,p=r[d];if(void 0===p){p=e++,r[d]=p,t.push(l);for(var f=0,m=s;f!==m;++f)o[f].push(new ml(l,i[f],a[f]))}else if(p<n){c=t[p];var g=--n,v=t[g];t[r[v.uuid]=p]=v,t[r[d]=g]=l;for(f=0,m=s;f!==m;++f){var y=o[f],x=y[g],b=y[p];y[p]=x,void 0===b&&(b=new ml(l,i[f],a[f])),y[g]=b}}else t[p]!==c&&console.error("THREE.AnimationObjectGroup: Different objects with the same UUID detected. Clean the caches or recreate your infrastructure when reloading scenes.")}this.nCachedObjects_=n},remove:function(){for(var t=this._objects,e=this.nCachedObjects_,n=this._indicesByUUID,r=this._bindings,i=r.length,a=0,o=arguments.length;a!==o;++a){var s=arguments[a],c=s.uuid,u=n[c];if(void 0!==u&&e<=u){var h=e++,l=t[h];t[n[l.uuid]=u]=l,t[n[c]=h]=s;for(var d=0,p=i;d!==p;++d){var f=r[d],m=f[h],g=f[u];f[u]=m,f[h]=g}}}this.nCachedObjects_=e},uncache:function(){for(var t=this._objects,e=t.length,n=this.nCachedObjects_,r=this._indicesByUUID,i=this._bindings,a=i.length,o=0,s=arguments.length;o!==s;++o){var c=arguments[o].uuid,u=r[c];if(void 0!==u)if(delete r[c],u<n){var h=--n,l=t[h],d=t[v=--e];t[r[l.uuid]=u]=l,t[r[d.uuid]=h]=d,t.pop();for(var p=0,f=a;p!==f;++p){var m=(y=i[p])[h],g=y[v];y[u]=m,y[h]=g,y.pop()}}else{var v;t[r[(d=t[v=--e]).uuid]=u]=d,t.pop();for(p=0,f=a;p!==f;++p){var y;(y=i[p])[u]=y[v],y.pop()}}}this.nCachedObjects_=n},subscribe_:function(t,e){var n=this._bindingsIndicesByPath,r=n[t],i=this._bindings;if(void 0!==r)return i[r];var a=this._paths,o=this._parsedPaths,s=this._objects,c=s.length,u=this.nCachedObjects_,h=new Array(c);r=i.length,n[t]=r,a.push(t),o.push(e),i.push(h);for(var l=u,d=s.length;l!==d;++l){var p=s[l];h[l]=new ml(p,t,e)}return h},unsubscribe_:function(t){var e=this._bindingsIndicesByPath,n=e[t];if(void 0!==n){var r=this._paths,i=this._parsedPaths,a=this._bindings,o=a.length-1,s=a[o];a[e[t[o]]=n]=s,a.pop(),i[n]=i[o],i.pop(),r[n]=r[o],r.pop()}}}),Object.assign(vl.prototype,{play:function(){return this._mixer._activateAction(this),this},stop:function(){return this._mixer._deactivateAction(this),this.reset()},reset:function(){return this.paused=!1,this.enabled=!0,this.time=0,this._loopCount=-1,this._startTime=null,this.stopFading().stopWarping()},isRunning:function(){return this.enabled&&!this.paused&&0!==this.timeScale&&null===this._startTime&&this._mixer._isActiveAction(this)},isScheduled:function(){return this._mixer._isActiveAction(this)},startAt:function(t){return this._startTime=t,this},setLoop:function(t,e){return this.loop=t,this.repetitions=e,this},setEffectiveWeight:function(t){return this.weight=t,this._effectiveWeight=this.enabled?t:0,this.stopFading()},getEffectiveWeight:function(){return this._effectiveWeight},fadeIn:function(t){return this._scheduleFading(t,0,1)},fadeOut:function(t){return this._scheduleFading(t,1,0)},crossFadeFrom:function(t,e,n){if(t.fadeOut(e),this.fadeIn(e),n){var r=this._clip.duration,i=t._clip.duration,a=i/r,o=r/i;t.warp(1,a,e),this.warp(o,1,e)}return this},crossFadeTo:function(t,e,n){return t.crossFadeFrom(this,e,n)},stopFading:function(){var t=this._weightInterpolant;return null!==t&&(this._weightInterpolant=null,this._mixer._takeBackControlInterpolant(t)),this},setEffectiveTimeScale:function(t){return this.timeScale=t,this._effectiveTimeScale=this.paused?0:t,this.stopWarping()},getEffectiveTimeScale:function(){return this._effectiveTimeScale},setDuration:function(t){return this.timeScale=this._clip.duration/t,this.stopWarping()},syncWith:function(t){return this.time=t.time,this.timeScale=t.timeScale,this.stopWarping()},halt:function(t){return this.warp(this._effectiveTimeScale,0,t)},warp:function(t,e,n){var r=this._mixer,i=r.time,a=this._timeScaleInterpolant,o=this.timeScale;null===a&&(a=r._lendControlInterpolan
/*!
* @overview es6-promise - a tiny implementation of Promises/A+.
* @copyright Copyright (c) 2014 Yehuda Katz, Tom Dale, Stefan Penner and contributors (Conversion to ES6 API by Jake Archibald)
* @license Licensed under MIT license
* See https://raw.githubusercontent.com/stefanpenner/es6-promise/master/LICENSE
* @version v4.2.5+7f2b526d
*/
t.exports=function(){"use strict";function u(t){return"function"==typeof t}var n=Array.isArray?Array.isArray:function(t){return"[object Array]"===Object.prototype.toString.call(t)},r=0,e=void 0,i=void 0,s=function(t,e){d[r]=t,d[r+1]=e,2===(r+=2)&&(i?i(p):y())},t="undefined"!=typeof window?window:void 0,a=t||{},o=a.MutationObserver||a.WebKitMutationObserver,c="undefined"==typeof self&&void 0!==H&&"[object process]"==={}.toString.call(H),h="undefined"!=typeof Uint8ClampedArray&&"undefined"!=typeof importScripts&&"undefined"!=typeof MessageChannel;function l(){var t=setTimeout;return function(){return t(p,1)}}var d=new Array(1e3);function p(){for(var t=0;t<r;t+=2){var e=d[t],n=d[t+1];e(n),d[t]=void 0,d[t+1]=void 0}r=0}var f,m,g,v,y=void 0;function x(t,e){var n=this,r=new this.constructor(_);void 0===r[w]&&U(r);var i=n._state;if(i){var a=arguments[i-1];s(function(){return N(i,r,a,n._result)})}else D(n,r,t,e);return r}function b(t){if(t&&"object"==typeof t&&t.constructor===this)return t;var e=new this(_);return C(e,t),e}y=c?function(){return H.nextTick(p)}:o?(m=0,g=new o(p),v=document.createTextNode(""),g.observe(v,{characterData:!0}),function(){v.data=m=++m%2}):h?((f=new MessageChannel).port1.onmessage=p,function(){return f.port2.postMessage(0)}):void 0===t?function(){try{var t=Function("return this")().require("vertx");return void 0===(e=t.runOnLoop||t.runOnContext)?l():function(){e(p)}}catch(t){return l()}}():l();var w=Math.random().toString(36).substring(2);function _(){}var M=void 0,E=1,S=2,T={error:null};function A(t){try{return t.then}catch(t){return T.error=t,T}}function L(t,e,n,r){try{t.call(e,n,r)}catch(t){return t}}function P(t,e,n){var r,i,a,o;e.constructor===t.constructor&&n===x&&e.constructor.resolve===b?(a=t,(o=e)._state===E?O(a,o._result):o._state===S?I(a,o._result):D(o,void 0,function(t){return C(a,t)},function(t){return I(a,t)})):n===T?(I(t,T.error),T.error=null):void 0===n?O(t,e):u(n)?(r=e,i=n,s(function(e){var n=!1,t=L(i,r,function(t){n||(n=!0,r!==t?C(e,t):O(e,t))},function(t){n||(n=!0,I(e,t))},e._label);!n&&t&&(n=!0,I(e,t))},t)):O(t,e)}function C(t,e){var n,r;t===e?I(t,new TypeError("You cannot resolve a promise with itself")):(r=typeof(n=e),null===n||"object"!==r&&"function"!==r?O(t,e):P(t,e,A(e)))}function R(t){t._onerror&&t._onerror(t._result),B(t)}function O(t,e){t._state===M&&(t._result=e,t._state=E,0!==t._subscribers.length&&s(B,t))}function I(t,e){t._state===M&&(t._state=S,t._result=e,s(R,t))}function D(t,e,n,r){var i=t._subscribers,a=i.length;t._onerror=null,i[a]=e,i[a+E]=n,i[a+S]=r,0===a&&t._state&&s(B,t)}function B(t){var e=t._subscribers,n=t._state;if(0!==e.length){for(var r=void 0,i=void 0,a=t._result,o=0;o<e.length;o+=3)r=e[o],i=e[o+n],r?N(n,r,i,a):i(a);t._subscribers.length=0}}function N(t,e,n,r){var i=u(n),a=void 0,o=void 0,s=void 0,c=void 0;if(i){if((a=function(t,e){try{return t(e)}catch(t){return T.error=t,T}}(n,r))===T?(c=!0,o=a.error,a.error=null):s=!0,e===a)return void I(e,new TypeError("A promises callback cannot return that same promise."))}else a=r,s=!0;e._state!==M||(i&&s?C(e,a):c?I(e,o):t===E?O(e,a):t===S&&I(e,a))}var z=0;function U(t){t[w]=z++,t._state=void 0,t._result=void 0,t._subscribers=[]}var G=function(){function t(t,e){this._instanceConstructor=t,this.promise=new t(_),this.promise[w]||U(this.promise),n(e)?(this.length=e.length,this._remaining=e.length,this._result=new Array(this.length),0===this.length?O(this.promise,this._result):(this.length=this.length||0,this._enumerate(e),0===this._remaining&&O(this.promise,this._result))):I(this.promise,new Error("Array Methods must be provided an Array"))}return t.prototype._enumerate=function(t){for(var e=0;this._state===M&&e<t.length;e++)this._eachEntry(t[e],e)},t.prototype._eachEntry=function(e,t){var n=this._instanceConstructor,r=n.resolve;if(r===b){var i=A(e);if(i===x&&e._state!==M)this._settledAt(e._state,t,e._result);else if("function"!=typeof i)this._remaining--,this._result[t]=e;else if(n===F){var a=new n(_);P(a,e,i),this._willSettleAt(a,t)}else this._willSettleAt(new n(function(t){return t(e)}),t)}else this._willSettleAt(