Object.assign(ys.prototype,{beforeStart_:ys.prototype.copySampleValue_,afterEnd_:ys.prototype.copySampleValue_}),xs.prototype=Object.assign(Object.create(ys.prototype),{constructor:xs,interpolate_:function(t,e,n,r){for(vari=this.resultBuffer,o=this.sampleValues,a=this.valueSize,s=t*a,c=(n-e)/(r-e),u=s+a;s!==u;s+=4)qe.slerpFlat(i,0,o,s-a,o,s,c);returni}}),bs.prototype=Object.assign(Object.create(As.prototype),{constructor:bs,ValueTypeName:"quaternion",DefaultInterpolation:Se,InterpolantFactoryMethodLinear:function(t){returnnewxs(this.times,this.values,this.getValueSize(),t)},InterpolantFactoryMethodSmooth:void0}),ws.prototype=Object.assign(Object.create(As.prototype),{constructor:ws,ValueTypeName:"color"}),_s.prototype=Object.assign(Object.create(As.prototype),{constructor:_s,ValueTypeName:"number"}),Ms.prototype=Object.assign(Object.create(ys.prototype),{constructor:Ms,DefaultSettings_:{endingStart:Le,endingEnd:Le},intervalChanged_:function(t,e,n){varr=this.parameterPositions,i=t-2,o=t+1,a=r[i],s=r[o];if(void0===a)switch(this.getSettings_().endingStart){caseRe:i=t,a=2*e-n;break;caseCe:a=e+r[i=r.length-2]-r[i+1];break;default:i=t,a=n}if(void0===s)switch(this.getSettings_().endingEnd){caseRe:o=t,s=2*n-e;break;caseCe:o=1,s=n+r[1]-r[0];break;default:o=t-1,s=e}varc=.5*(n-e),u=this.valueSize;this._weightPrev=c/(e-a),this._weightNext=c/(s-n),this._offsetPrev=i*u,this._offsetNext=o*u},interpolate_:function(t,e,n,r){for(vari=this.resultBuffer,o=this.sampleValues,a=this.valueSize,s=t*a,c=s-a,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!==a;++b)i[b]=g*o[u+b]+v*o[c+b]+y*o[s+b]+x*o[h+b];returni}}),Es.prototype=Object.assign(Object.create(ys.prototype),{constructor:Es,interpolate_:function(t,e,n,r){for(vari=this.resultBuffer,o=this.sampleValues,a=this.valueSize,s=t*a,c=s-a,u=(n-e)/(r-e),h=1-u,l=0;l!==a;++l)i[l]=o[c+l]*h+o[s+l]*u;returni}}),Ts.prototype=Object.assign(Object.create(ys.prototype),{constructor:Ts,interpolate_:function(t){returnthis.copySampleValue_(t-1)}});varSs={arraySlice:function(t,e,n){returnSs.isTypedArray(t)?newt.constructor(t.subarray(e,void0!==n?n:t.length)):t.slice(e,n)},convertArray:function(t,e,n){return!t||!n&&t.constructor===e?t:"number"==typeofe.BYTES_PER_ELEMENT?newe(t):Array.prototype.slice.call(t)},isTypedArray:function(t){returnArrayBuffer.isView(t)&&!(tinstanceofDataView)},getKeyframeOrder:function(t){for(vare=t.length,n=newArray(e),r=0;r!==e;++r)n[r]=r;returnn.sort(function(e,n){returnt[e]-t[n]}),n},sortedArray:function(t,e,n){for(varr=t.length,i=newt.constructor(r),o=0,a=0;a!==r;++o)for(vars=n[o]*e,c=0;c!==e;++c)i[a++]=t[s+c];returni},flattenJSON:function(t,e,n,r){for(vari=1,o=t[0];void0!==o&&void0===o[r];)o=t[i++];if(void0!==o){vara=o[r];if(void0!==a)if(Array.isArray(a))do{void0!==(a=o[r])&&(e.push(o.time),n.push.apply(n,a)),o=t[i++]}while(void0!==o);elseif(void0!==a.toArray)do{void0!==(a=o[r])&&(e.push(o.time),a.toArray(n,n.length)),o=t[i++]}while(void0!==o);elsedo{void0!==(a=o[r])&&(e.push(o.time),n.push(a)),o=t[i++]}while(void0!==o)}}};functionAs(t,e,n,r){if(void0===t)thrownewError("THREE.KeyframeTrack: track name is undefined");if(void0===e||0===e.length)thrownewError("THREE.KeyframeTrack: no keyframes in track named "+t);this.name=t,this.times=Ss.convertArray(e,this.TimeBufferType),this.values=Ss.convertArray(n,this.ValueBufferType),this.setInterpolation(r||this.DefaultInterpolation),this.validate(),this.optimize()}functionLs(t,e,n,r){As.call(this,t,e,n,r)}functionRs(t,e,n){this.name=t,this.tracks=n,this.duration=void0!==e?e:-1,this.uuid=Ve.generateUUID(),this.duration<0&&this.resetDuration(),this.optimize()}functionCs(t){this.manager=void0!==t?t:Ra,this.textures={}}functionPs(t){this.manager=void0!==t?t:Ra}Object.assign(As,{parse:function(t){if(void0===t.type)thrownewError("THREE.KeyframeTrack: track type undefined, can not parse");vare=As._getTrackTypeForValueTypeName(t.type);i
//!\ DECLARE ALIAS AFTER assign prototype !
Object.assign(Rc.prototype,{_getValue_unbound:Rc.prototype.getValue,_setValue_unbound:Rc.prototype.setValue}),Object.assign(Cc.prototype,{isAnimationObjectGroup:!0,add:function(){for(vart=this._objects,e=t.length,n=this.nCachedObjects_,r=this._indicesByUUID,i=this._paths,o=this._parsedPaths,a=this._bindings,s=a.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)a[f].push(newRc(l,i[f],o[f]))}elseif(p<n){c=t[p];varg=--n,v=t[g];r[v.uuid]=p,t[p]=v,r[d]=g,t[g]=l;for(f=0,m=s;f!==m;++f){vary=a[f],x=y[g],b=y[p];y[p]=x,void0===b&&(b=newRc(l,i[f],o[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,o=0,a=arguments.length;o!==a;++o){vars=arguments[o],c=s.uuid,u=n[c];if(void0!==u&&u>=e){varh=e++,l=t[h];n[l.uuid]=u,t[u]=l,n[c]=h,t[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,o=i.length,a=0,s=arguments.length;a!==s;++a){varc=arguments[a].uuid,u=r[c];if(void0!==u)if(deleter[c],u<n){varh=--n,l=t[h],d=t[v=--e];r[l.uuid]=u,t[u]=l,r[d.uuid]=h,t[h]=d,t.pop();for(varp=0,f=o;p!==f;++p){varm=(y=i[p])[h],g=y[v];y[u]=m,y[h]=g,y.pop()}}else{varv;r[(d=t[v=--e]).uuid]=u,t[u]=d,t.pop();for(p=0,f=o;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];varo=this._paths,a=this._parsedPaths,s=this._objects,c=s.length,u=this.nCachedObjects_,h=newArray(c);r=i.length,n[t]=r,o.push(t),a.push(e),i.push(h);for(varl=u,d=s.length;l!==d;++l){varp=s[l];h[l]=newRc(p,t,e)}returnh},unsubscribe_:function(t){vare=this._bindingsIndicesByPath,n=e[t];if(void0!==n){varr=this._paths,i=this._parsedPaths,o=this._bindings,a=o.length-1,s=o[a];e[t[a]]=n,o[n]=s,o.pop(),i[n]=i[a],i.pop(),r[n]=r[a],r.pop()}}}),Object.assign(Pc.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,o=i/r,a=r/i;t.warp(1,o,e),this.warp(a,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,o=this._timeScaleInterpolant,a=this.timeScale;null===o&&(o=r._lendC