Object.assign(Lu.prototype,{beforeStart_:Lu.prototype.copySampleValue_,afterEnd_:Lu.prototype.copySampleValue_}),Pu.prototype=Object.assign(Object.create(Lu.prototype),{constructor:Pu,DefaultSettings_:{endingStart:Ve,endingEnd:Ve},intervalChanged_:function(t,e,n){varr=this.parameterPositions,i=t-2,a=t+1,o=r[i],s=r[a];if(void0===o)switch(this.getSettings_().endingStart){caseje:i=t,o=2*e-n;break;caseWe:o=e+r[i=r.length-2]-r[i+1];break;default:i=t,o=n}if(void0===s)switch(this.getSettings_().endingEnd){caseje:a=t,s=2*n-e;break;caseWe:s=n+r[a=1]-r[0];break;default:a=t-1,s=e}varc=.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(vari=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];returni}}),Cu.prototype=Object.assign(Object.create(Lu.prototype),{constructor:Cu,interpolate_:function(t,e,n,r){for(vari=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;returni}}),Ru.prototype=Object.assign(Object.create(Lu.prototype),{constructor:Ru,interpolate_:function(t){returnthis.copySampleValue_(t-1)}}),Object.assign(Ou,{toJSON:function(t){vare,n=t.constructor;if(void0!==n.toJSON)e=n.toJSON(t);else{e={name:t.name,times:Au.convertArray(t.times,Array),values:Au.convertArray(t.values,Array)};varr=t.getInterpolation();r!==t.DefaultInterpolation&&(e.interpolation=r)}returne.type=t.ValueTypeName,e}}),Object.assign(Ou.prototype,{constructor:Ou,TimeBufferType:Float32Array,ValueBufferType:Float32Array,DefaultInterpolation:He,InterpolantFactoryMethodDiscrete:function(t){returnnewRu(this.times,this.values,this.getValueSize(),t)},InterpolantFactoryMethodLinear:function(t){returnnewCu(this.times,this.values,this.getValueSize(),t)},InterpolantFactoryMethodSmooth:function(t){returnnewPu(this.times,this.values,this.getValueSize(),t)},setInterpolation:function(t){vare;switch(t){caseFe:e=this.InterpolantFactoryMethodDiscrete;break;caseHe:e=this.InterpolantFactoryMethodLinear;break;caseke:e=this.InterpolantFactoryMethodSmooth}if(void0!==e)returnthis.createInterpolant=e,this;varn="unsupported interpolation for "+this.ValueTypeName+" keyframe track named "+this.name;if(void0===this.createInterpolant){if(t===this.DefaultInterpolation)thrownewError(n);this.setInterpolation(this.DefaultInterpolation)}returnconsole.warn("THREE.KeyframeTrack:",n),this},getInterpolation:function(){switch(this.createInterpolant){casethis.InterpolantFactoryMethodDiscrete:returnFe;casethis.InterpolantFactoryMethodLinear:returnHe;casethis.InterpolantFactoryMethodSmooth:returnke}},getValueSize:function(){returnthis.values.length/this.times.length},shift:function(t){if(0!==t)for(vare=this.times,n=0,r=e.length;n!==r;++n)e[n]+=t;returnthis},scale:function(t){if(1!==t)for(vare=this.times,n=0,r=e.length;n!==r;++n)e[n]*=t;returnthis},trim:function(t,e){for(varn=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);varo=this.getValueSize();this.times=Au.arraySlice(n,i,a),this.values=Au.arraySlice(this.values,i*o,a*o)}returnthis},validate:function(){vart=!0,e=this.getValueSize();e-Math.floor(e)!=0&&(console.error("THREE.KeyframeTrack: Invalid value size in track.",this),t=!1);varn=this.times,r=this.values,i=n.length;0===i&&(console.error("THREE.KeyframeTrack: Track is empty.",this),t=!1);for(vara=null,o=0;o!==i;o++){vars=n[o];if("number"==typeofs&&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(void0!==r&&Au.isTypedArray(r)){o=0;for(varc=r.length;o!==c;++o){varu=r[o];if(isNaN(u)){consol
Object.assign(pd.prototype,{_getValue_unbound:pd.prototype.getValue,_setValue_unbound:pd.prototype.setValue}),Object.assign(fd.prototype,{isAnimationObjectGroup:!0,add:function(){for(vart=this._objects,e=t.length,n=this.nCachedObjects_,r=this._indicesByUUID,i=this._paths,a=this._parsedPaths,o=this._bindings,s=o.length,c=void0,u=0,h=arguments.length;u!==h;++u){varl=arguments[u],d=l.uuid,p=r[d];if(void0===p){p=e++,r[d]=p,t.push(l);for(varf=0,m=s;f!==m;++f)o[f].push(newpd(l,i[f],a[f]))}elseif(p<n){c=t[p];varg=--n,v=t[g];t[r[v.uuid]=p]=v,t[r[d]=g]=l;for(f=0,m=s;f!==m;++f){vary=o[f],x=y[g],b=y[p];y[p]=x,void0===b&&(b=newpd(l,i[f],a[f])),y[g]=b}}elset[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(vart=this._objects,e=this.nCachedObjects_,n=this._indicesByUUID,r=this._bindings,i=r.length,a=0,o=arguments.length;a!==o;++a){vars=arguments[a],c=s.uuid,u=n[c];if(void0!==u&&e<=u){varh=e++,l=t[h];t[n[l.uuid]=u]=l,t[n[c]=h]=s;for(vard=0,p=i;d!==p;++d){varf=r[d],m=f[h],g=f[u];f[u]=m,f[h]=g}}}this.nCachedObjects_=e},uncache:function(){for(vart=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){varc=arguments[o].uuid,u=r[c];if(void0!==u)if(deleter[c],u<n){varh=--n,l=t[h],d=t[v=--e];t[r[l.uuid]=u]=l,t[r[d.uuid]=h]=d,t.pop();for(varp=0,f=a;p!==f;++p){varm=(y=i[p])[h],g=y[v];y[u]=m,y[h]=g,y.pop()}}else{varv;t[r[(d=t[v=--e]).uuid]=u]=d,t.pop();for(p=0,f=a;p!==f;++p){vary;(y=i[p])[u]=y[v],y.pop()}}}this.nCachedObjects_=n},subscribe_:function(t,e){varn=this._bindingsIndicesByPath,r=n[t],i=this._bindings;if(void0!==r)returni[r];vara=this._paths,o=this._parsedPaths,s=this._objects,c=s.length,u=this.nCachedObjects_,h=newArray(c);r=i.length,n[t]=r,a.push(t),o.push(e),i.push(h);for(varl=u,d=s.length;l!==d;++l){varp=s[l];h[l]=newpd(p,t,e)}returnh},unsubscribe_:function(t){vare=this._bindingsIndicesByPath,n=e[t];if(void0!==n){varr=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(md.prototype,{play:function(){returnthis._mixer._activateAction(this),this},stop:function(){returnthis._mixer._deactivateAction(this),this.reset()},reset:function(){returnthis.paused=!1,this.enabled=!0,this.time=0,this._loopCount=-1,this._startTime=null,this.stopFading().stopWarping()},isRunning:function(){returnthis.enabled&&!this.paused&&0!==this.timeScale&&null===this._startTime&&this._mixer._isActiveAction(this)},isScheduled:function(){returnthis._mixer._isActiveAction(this)},startAt:function(t){returnthis._startTime=t,this},setLoop:function(t,e){returnthis.loop=t,this.repetitions=e,this},setEffectiveWeight:function(t){returnthis.weight=t,this._effectiveWeight=this.enabled?t:0,this.stopFading()},getEffectiveWeight:function(){returnthis._effectiveWeight},fadeIn:function(t){returnthis._scheduleFading(t,0,1)},fadeOut:function(t){returnthis._scheduleFading(t,1,0)},crossFadeFrom:function(t,e,n){if(t.fadeOut(e),this.fadeIn(e),n){varr=this._clip.duration,i=t._clip.duration,a=i/r,o=r/i;t.warp(1,a,e),this.warp(o,1,e)}returnthis},crossFadeTo:function(t,e,n){returnt.crossFadeFrom(this,e,n)},stopFading:function(){vart=this._weightInterpolant;returnnull!==t&&(this._weightInterpolant=null,this._mixer._takeBackControlInterpolant(t)),this},setEffectiveTimeScale:function(t){returnthis.timeScale=t,this._effectiveTimeScale=this.paused?0:t,this.stopWarping()},getEffectiveTimeScale:function(){returnthis._effectiveTimeScale},setDuration:function(t){returnthis.timeScale=this._clip.duration/t,this.stopWarping()},syncWith:function(t){returnthis.time=t.time,this.timeScale=t.timeScale,this.stopWarping()},halt:function(t){returnthis.warp(this._effectiveTimeScale,0,t)},warp:function(t,e,n){varr=this._mixer,i=r.time,a=this._timeScaleInterpolant,o=this.timeScale;null===a&&(a=r._lendControlInterpolan
t.exports=function(){"use strict";functionr(t){vare=typeoft;returnt!==null&&(e==="object"||e==="function")}functionc(t){returntypeoft==="function"}vart=void0;if(Array.isArray){t=Array.isArray}else{t=function(t){returnObject.prototype.toString.call(t)==="[object Array]"}}varn=t,i=0,e=void0,a=void0,o=functiont(e,n){b[i]=e;b[i+1]=n;i+=2;if(i===2){if(a){a(w)}else{M()}}};functions(t){a=t}functionu(t){o=t}varh=typeofwindow!=="undefined"?window:undefined,l=h||{},d=l.MutationObserver||l.WebKitMutationObserver,p=typeofself==="undefined"&&typeofrt!=="undefined"&&{}.toString.call(rt)==="[object process]",f=typeofUint8ClampedArray!=="undefined"&&typeofimportScripts!=="undefined"&&typeofMessageChannel!=="undefined";functionm(){returnfunction(){returnrt.nextTick(w)}}functiong(){if(typeofe!=="undefined"){returnfunction(){e(w)}}returnx()}functionv(){vart=0;vare=newd(w);varn=document.createTextNode("");e.observe(n,{characterData:true});returnfunction(){n.data=t=++t%2}}functiony(){vart=newMessageChannel;t.port1.onmessage=w;returnfunction(){returnt.port2.postMessage(0)}}functionx(){vart=setTimeout;returnfunction(){returnt(w,1)}}varb=newArray(1e3);functionw(){for(vart=0;t<i;t+=2){vare=b[t];varn=b[t+1];e(n);b[t]=undefined;b[t+1]=undefined}i=0}function_(){try{vart=Function("return this")().require("vertx");e=t.runOnLoop||t.runOnContext;returng()}catch(t){returnx()}}varM=void0;if(p){M=m()}elseif(d){M=v()}elseif(f){M=y()}elseif(h===undefined&&"function"==="function"){M=_()}else{M=x()}functionE(t,e){varn=this;varr=newthis.constructor(A);if(r[T]===undefined){X(r)}vari=n._state;if(i){vara=arguments[i-1];o(function(){returnV(i,r,a,n._result)})}else{H(n,r,t,e)}returnr}functionS(t){vare=this;if(t&&typeoft==="object"&&t.constructor===e){returnt}varn=newe(A);z(n,t);returnn}varT=Math.random().toString(36).substring(2);functionA(){}varL=void0,P=1,C=2;functionR(){returnnewTypeError("You cannot resolve a promise with itself")}functionO(){returnnewTypeError("A promises callback cannot return that same promise.")}functionI(t,e,n,r){try{t.call(e,n,r)}catch(t){returnt}}functionD(t,r,i){o(function(e){varn=false;vart=I(i,r,function(t){if(n){return}n=true;if(r!==t){z(e,t)}else{G(e,t)}},function(t){if(n){return}n=true;F(e,t)},"Settle: "+(e._label||" unknown promise"));if(!n&&t){n=true;F(e,t)}},t)}functionB(e,t){if(t._state===P){G(e,t._result)}elseif(t._state===C){F(e,t._result)}else{H(t,undefined,function(t){returnz(e,t)},function(t){returnF(e,t)})}}functionN(t,e,n){if(e.constructor===t.constructor&&n===E&&e.constructor.resolve===S){B(t,e)}else{if(n===undefined){G(t,e)}elseif(c(n)){D(t,e,n)}else{G(t,e)}}}functionz(e,t){if(e===t){F(e,R())}elseif(r(t)){varn=void0;try{n=t.then}catch(t){F(e,t);return}N(e,t,n)}else{G(e,t)}}functionU(t){if(t._onerror){t._onerror(t._result)}k(t)}functionG(t,e){if(t._state!==L){return}t._result=e;t._state=P;if(t._subscribers.length!==0){o(k,t)}}functionF(t,e){if(t._state!==L){return}t._state=C;t._result=e;o(U,t)}functionH(t,e,n,r){vari=t._subscribers;vara=i.length;t._onerror=null;i[a]=e;i[a+P]=n;i[a+C]=r;if(a===0&&t._state){o(k,t)}}functionk(t){vare=t._subscribers;varn=t._state;if(e.length===0){return}varr=void0,i=void0,a=t._result;for(varo=0;o<e.length;o+=3){r=e[o];i=e[o+n];if(r){V(n,r,i,a)}else{i(a)}}t._subscribers.length=0}functionV(t,e,n,r){vari=c(n),a=void0,o=void0,s=true;if(i){try{a=n(r)}catch(t){s=false;o=t}if(e===a){F(e,O());return}}else{a=r}if(e._state!==L){}elseif(i&&s){z(e,a)}elseif(s===false){F(e,o)}elseif(t===P){G(e,a)}elseif(t===C){F(e,a)}}functionj(n,t){try{t(functiont(e){z(n,e)},functiont(e){F(n,e)})}catch(t){F(n,t)}}varW=0;functionq(){returnW++}functionX(t){t[T]=W++;t._state=undefined;t._result=undefined;t._subscribers=[]}functionY(){returnnewError("Array Methods must be provided an Array")}varJ=function(){functiont(t,e){this._instanceConstructor=t;this.promise=newt(A);if(!this.promise[T]){X(this.promise)}if(n(e)){this.length=e.length;this._remaining=e.length;this._result=newArray(this.le