chbim-plugins 0.0.85 → 0.0.87

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,4 +1,4 @@
1
- (function(Ui,si){typeof exports=="object"&&typeof module<"u"?si(exports,require("vue")):typeof define=="function"&&define.amd?define(["exports","vue"],si):(Ui=typeof globalThis<"u"?globalThis:Ui||self,si(Ui["chbim-plugins"]={},Ui.Vue))})(this,function(Ui,si){"use strict";var m1=Object.defineProperty;var g1=(Ui,si,Al)=>si in Ui?m1(Ui,si,{enumerable:!0,configurable:!0,writable:!0,value:Al}):Ui[si]=Al;var _f=(Ui,si,Al)=>(g1(Ui,typeof si!="symbol"?si+"":si,Al),Al);const Al="",yf=((x,l)=>{const o=x.__vccOpts||x;for(const[c,d]of l)o[c]=d;return o})(Object.assign({name:"MukButton"},{props:{size:{type:String,default:"middle"},type:{type:String,default:"default"}},setup(x){return(l,o)=>(si.openBlock(),si.createElementBlock("button",{class:si.normalizeClass(["muk-btn",[x.size,x.type]])},[si.renderSlot(l.$slots,"default",{},void 0,!0)],2))}}),[["__scopeId","data-v-0e6d93cd"]]);class Bd{constructor(){this.dom={mask:document.querySelector(".js-mask"),slices:[...document.querySelectorAll(".js-mask__slice")],lines:[...document.querySelectorAll(".js-mask-line")],logo:document.querySelector(".js-logo"),titles:[...document.querySelectorAll(".js-transition-title")]},this.tl=null,this.state=!1,this.init()}resetScroll(){window.scrollTo(0,0)}createTimeline(){this.tl=new TimelineMax({paused:!0,onComplete:()=>{this.state=!1}}),this.tl.set(this.dom.titles,{yPercent:0}).set(this.dom.mask,{autoAlpha:1}).staggerFromTo(this.dom.slices,1.5,{xPercent:100},{xPercent:0,ease:Expo.easeInOut},-.075).addCallback(this.resetScroll.bind(this)).addLabel("loaderStart").set(this.dom.titles,{yPercent:-100}).set([this.dom.lines[0],this.dom.logo],{autoAlpha:1}).fromTo(this.dom.logo,1,{yPercent:-100,rotation:10},{yPercent:0,rotation:0,ease:Expo.easeOut}).addLabel("intermediateFrame").staggerFromTo(this.dom.lines,.5,{scaleX:0},{scaleX:1,ease:Expo.easeInOut},.75,"-=1").set(this.dom.lines,{transformOrigin:"right"}).fromTo(this.dom.lines[0],1,{scaleX:1},{scaleX:0,ease:Expo.easeInOut}).fromTo(this.dom.logo,1,{yPercent:0},{yPercent:105,ease:Expo.easeOut},"-=1").staggerFromTo(this.dom.slices,.5,{xPercent:0},{xPercent:100,ease:Expo.easeInOut},.075).set(this.dom.mask,{autoAlpha:0}).addLabel("imagesStart","-=0.85").staggerFromTo(this.dom.titles,1.5,{yPercent:100},{yPercent:0,ease:Expo.easeInOut},.05,"imagesStart").addLabel("loaderEnd")}continuation(){this.init(),this.resetScroll(),this.tl.tweenFromTo("loaderStart","loaderEnd")}show(){this.init(),this.tl.tweenFromTo("loaderStart","intermediateFrame")}hide(){this.resetScroll(),this.tl.tweenFromTo("intermediateFrame","loaderEnd")}init(){document.querySelector(".mask-line.js-mask-line")&&document.querySelector(".mask-line.js-mask-line").removeAttribute("style"),document.querySelector(".mask-line__inner.js-mask-line")&&document.querySelector(".mask-line__inner.js-mask-line").removeAttribute("style"),this.createTimeline()}}const Nd={class:"mask js-mask"},Fd=si.createElementVNode("div",{class:"mask__slice js-mask__slice"},null,-1),Ud=si.createElementVNode("div",{class:"mask__slice js-mask__slice"},null,-1),Gd=si.createElementVNode("div",{class:"mask__slice js-mask__slice"},null,-1),Hd={class:"mask__inner"},Vd={class:"logo logo--mask"},Wd={class:"js-logo",style:{color:"#fff"}},jd=si.createElementVNode("div",{class:"mask-line js-mask-line"},[si.createElementVNode("div",{class:"mask-line__inner js-mask-line"})],-1),Xd={name:"BimCutscenes"},xf=si.defineComponent({...Xd,props:{text:{type:String,default:"CHBIM云平台"}},setup(x,{expose:l}){const o=si.ref(null),c=()=>{o.value===null&&(o.value=new Bd)},d=()=>{c(),o.value.continuation()};return si.onMounted(()=>{c()}),l({continuation:d}),(u,m)=>(si.openBlock(),si.createElementBlock("div",Nd,[Fd,Ud,Gd,si.createElementVNode("div",Hd,[si.createElementVNode("figure",Vd,[si.createElementVNode("p",Wd,si.toDisplayString(x.text),1)]),jd])]))}}),x1="";/*!
1
+ (function(Ui,si){typeof exports=="object"&&typeof module<"u"?si(exports,require("vue")):typeof define=="function"&&define.amd?define(["exports","vue"],si):(Ui=typeof globalThis<"u"?globalThis:Ui||self,si(Ui["chbim-plugins"]={},Ui.Vue))})(this,function(Ui,si){"use strict";var g1=Object.defineProperty;var v1=(Ui,si,Al)=>si in Ui?g1(Ui,si,{enumerable:!0,configurable:!0,writable:!0,value:Al}):Ui[si]=Al;var _f=(Ui,si,Al)=>(v1(Ui,typeof si!="symbol"?si+"":si,Al),Al);const Al="",yf=((x,a)=>{const o=x.__vccOpts||x;for(const[c,d]of a)o[c]=d;return o})(Object.assign({name:"MukButton"},{props:{size:{type:String,default:"middle"},type:{type:String,default:"default"}},setup(x){return(a,o)=>(si.openBlock(),si.createElementBlock("button",{class:si.normalizeClass(["muk-btn",[x.size,x.type]])},[si.renderSlot(a.$slots,"default",{},void 0,!0)],2))}}),[["__scopeId","data-v-0e6d93cd"]]);class Nd{constructor(){this.dom={mask:document.querySelector(".js-mask"),slices:[...document.querySelectorAll(".js-mask__slice")],lines:[...document.querySelectorAll(".js-mask-line")],logo:document.querySelector(".js-logo"),titles:[...document.querySelectorAll(".js-transition-title")]},this.tl=null,this.state=!1,this.init()}resetScroll(){window.scrollTo(0,0)}createTimeline(){this.tl=new TimelineMax({paused:!0,onComplete:()=>{this.state=!1}}),this.tl.set(this.dom.titles,{yPercent:0}).set(this.dom.mask,{autoAlpha:1}).staggerFromTo(this.dom.slices,1.5,{xPercent:100},{xPercent:0,ease:Expo.easeInOut},-.075).addCallback(this.resetScroll.bind(this)).addLabel("loaderStart").set(this.dom.titles,{yPercent:-100}).set([this.dom.lines[0],this.dom.logo],{autoAlpha:1}).fromTo(this.dom.logo,1,{yPercent:-100,rotation:10},{yPercent:0,rotation:0,ease:Expo.easeOut}).addLabel("intermediateFrame").staggerFromTo(this.dom.lines,.5,{scaleX:0},{scaleX:1,ease:Expo.easeInOut},.75,"-=1").set(this.dom.lines,{transformOrigin:"right"}).fromTo(this.dom.lines[0],1,{scaleX:1},{scaleX:0,ease:Expo.easeInOut}).fromTo(this.dom.logo,1,{yPercent:0},{yPercent:105,ease:Expo.easeOut},"-=1").staggerFromTo(this.dom.slices,.5,{xPercent:0},{xPercent:100,ease:Expo.easeInOut},.075).set(this.dom.mask,{autoAlpha:0}).addLabel("imagesStart","-=0.85").staggerFromTo(this.dom.titles,1.5,{yPercent:100},{yPercent:0,ease:Expo.easeInOut},.05,"imagesStart").addLabel("loaderEnd")}continuation(){this.init(),this.resetScroll(),this.tl.tweenFromTo("loaderStart","loaderEnd")}show(){this.init(),this.tl.tweenFromTo("loaderStart","intermediateFrame")}hide(){this.resetScroll(),this.tl.tweenFromTo("intermediateFrame","loaderEnd")}init(){document.querySelector(".mask-line.js-mask-line")&&document.querySelector(".mask-line.js-mask-line").removeAttribute("style"),document.querySelector(".mask-line__inner.js-mask-line")&&document.querySelector(".mask-line__inner.js-mask-line").removeAttribute("style"),this.createTimeline()}}const Fd={class:"mask js-mask"},Ud=si.createElementVNode("div",{class:"mask__slice js-mask__slice"},null,-1),Gd=si.createElementVNode("div",{class:"mask__slice js-mask__slice"},null,-1),Hd=si.createElementVNode("div",{class:"mask__slice js-mask__slice"},null,-1),Vd={class:"mask__inner"},Wd={class:"logo logo--mask"},jd={class:"js-logo",style:{color:"#fff"}},Xd=si.createElementVNode("div",{class:"mask-line js-mask-line"},[si.createElementVNode("div",{class:"mask-line__inner js-mask-line"})],-1),qd={name:"BimCutscenes"},xf=si.defineComponent({...qd,props:{text:{type:String,default:"CHBIM云平台"}},setup(x,{expose:a}){const o=si.ref(null),c=()=>{o.value===null&&(o.value=new Nd)},d=()=>{c(),o.value.continuation()};return si.onMounted(()=>{c()}),a({continuation:d}),(u,m)=>(si.openBlock(),si.createElementBlock("div",Fd,[Ud,Gd,Hd,si.createElementVNode("div",Vd,[si.createElementVNode("figure",Wd,[si.createElementVNode("p",jd,si.toDisplayString(x.text),1)]),Xd])]))}}),w1="";/*!
2
2
  * VERSION: 2.0.2
3
3
  * DATE: 2018-08-27
4
4
  * UPDATES AND DOCS AT: http://greensock.com
@@ -10,7 +10,7 @@
10
10
  * Club GreenSock members, the software agreement that was issued with your membership.
11
11
  *
12
12
  * @author: Jack Doyle, jack@greensock.com
13
- **/var ln=typeof module<"u"&&module.exports&&typeof global<"u"?global:globalThis||window;(ln._gsQueue||(ln._gsQueue=[])).push(function(){ln._gsDefine("TweenMax",["core.Animation","core.SimpleTimeline","TweenLite"],function(x,l,o){var c=function(E){var P,T=[],M=E.length;for(P=0;P!==M;T.push(E[P++]));return T},d=function(E,P,T){var M,R,b=E.cycle;for(M in b)R=b[M],E[M]=typeof R=="function"?R(T,P[T]):R[T%R.length];delete E.cycle},u=function(E,P,T){o.call(this,E,P,T),this._cycle=0,this._yoyo=this.vars.yoyo===!0||!!this.vars.yoyoEase,this._repeat=this.vars.repeat||0,this._repeatDelay=this.vars.repeatDelay||0,this._repeat&&this._uncache(!0),this.render=u.prototype.render},m=1e-10,_=o._internals,y=_.isSelector,S=_.isArray,A=u.prototype=o.to({},.1,{}),I=[];u.version="2.0.2",A.constructor=u,A.kill()._gc=!1,u.killTweensOf=u.killDelayedCallsTo=o.killTweensOf,u.getTweensOf=o.getTweensOf,u.lagSmoothing=o.lagSmoothing,u.ticker=o.ticker,u.render=o.render,A.invalidate=function(){return this._yoyo=this.vars.yoyo===!0||!!this.vars.yoyoEase,this._repeat=this.vars.repeat||0,this._repeatDelay=this.vars.repeatDelay||0,this._yoyoEase=null,this._uncache(!0),o.prototype.invalidate.call(this)},A.updateTo=function(E,P){var T,M=this.ratio,R=this.vars.immediateRender||E.immediateRender;P&&this._startTime<this._timeline._time&&(this._startTime=this._timeline._time,this._uncache(!1),this._gc?this._enabled(!0,!1):this._timeline.insert(this,this._startTime-this._delay));for(T in E)this.vars[T]=E[T];if(this._initted||R){if(P)this._initted=!1,R&&this.render(0,!0,!0);else if(this._gc&&this._enabled(!0,!1),this._notifyPluginsOfEnabled&&this._firstPT&&o._onPluginEvent("_onDisable",this),this._time/this._duration>.998){var b=this._totalTime;this.render(0,!0,!1),this._initted=!1,this.render(b,!0,!1)}else if(this._initted=!1,this._init(),this._time>0||R)for(var U,F=1/(1-M),j=this._firstPT;j;)U=j.s+j.c,j.c*=F,j.s=U-j.c,j=j._next}return this},A.render=function(E,P,T){this._initted||this._duration===0&&this.vars.repeat&&this.invalidate();var M,R,b,U,F,j,J,$,ct,It=this._dirty?this.totalDuration():this._totalDuration,et=this._time,yt=this._totalTime,G=this._cycle,Pt=this._duration,Et=this._rawPrevTime;if(E>=It-1e-7&&E>=0?(this._totalTime=It,this._cycle=this._repeat,this._yoyo&&1&this._cycle?(this._time=0,this.ratio=this._ease._calcEnd?this._ease.getRatio(0):0):(this._time=Pt,this.ratio=this._ease._calcEnd?this._ease.getRatio(1):1),this._reversed||(M=!0,R="onComplete",T=T||this._timeline.autoRemoveChildren),Pt===0&&(this._initted||!this.vars.lazy||T)&&(this._startTime===this._timeline._duration&&(E=0),(0>Et||0>=E&&E>=-1e-7||Et===m&&this.data!=="isPause")&&Et!==E&&(T=!0,Et>m&&(R="onReverseComplete")),this._rawPrevTime=$=!P||E||Et===E?E:m)):1e-7>E?(this._totalTime=this._time=this._cycle=0,this.ratio=this._ease._calcEnd?this._ease.getRatio(0):0,(yt!==0||Pt===0&&Et>0)&&(R="onReverseComplete",M=this._reversed),0>E&&(this._active=!1,Pt===0&&(this._initted||!this.vars.lazy||T)&&(Et>=0&&(T=!0),this._rawPrevTime=$=!P||E||Et===E?E:m)),this._initted||(T=!0)):(this._totalTime=this._time=E,this._repeat!==0&&(U=Pt+this._repeatDelay,this._cycle=this._totalTime/U>>0,this._cycle!==0&&this._cycle===this._totalTime/U&&E>=yt&&this._cycle--,this._time=this._totalTime-this._cycle*U,this._yoyo&&1&this._cycle&&(this._time=Pt-this._time,ct=this._yoyoEase||this.vars.yoyoEase,ct&&(this._yoyoEase||(ct!==!0||this._initted?this._yoyoEase=ct=ct===!0?this._ease:ct instanceof Ease?ct:Ease.map[ct]:(ct=this.vars.ease,this._yoyoEase=ct=ct?ct instanceof Ease?ct:typeof ct=="function"?new Ease(ct,this.vars.easeParams):Ease.map[ct]||o.defaultEase:o.defaultEase)),this.ratio=ct?1-ct.getRatio((Pt-this._time)/Pt):0)),this._time>Pt?this._time=Pt:this._time<0&&(this._time=0)),this._easeType&&!ct?(F=this._time/Pt,j=this._easeType,J=this._easePower,(j===1||j===3&&F>=.5)&&(F=1-F),j===3&&(F*=2),J===1?F*=F:J===2?F*=F*F:J===3?F*=F*F*F:J===4&&(F*=F*F*F*F),j===1?this.ratio=1-F:j===2?this.ratio=F:this._time/Pt<.5?this.ratio=F/2:this.ratio=1-F/2):ct||(this.ratio=this._ease.getRatio(this._time/Pt))),et===this._time&&!T&&G===this._cycle)return void(yt!==this._totalTime&&this._onUpdate&&(P||this._callback("onUpdate")));if(!this._initted){if(this._init(),!this._initted||this._gc)return;if(!T&&this._firstPT&&(this.vars.lazy!==!1&&this._duration||this.vars.lazy&&!this._duration))return this._time=et,this._totalTime=yt,this._rawPrevTime=Et,this._cycle=G,_.lazyTweens.push(this),void(this._lazy=[E,P]);!this._time||M||ct?M&&this._ease._calcEnd&&!ct&&(this.ratio=this._ease.getRatio(this._time===0?0:1)):this.ratio=this._ease.getRatio(this._time/Pt)}for(this._lazy!==!1&&(this._lazy=!1),this._active||!this._paused&&this._time!==et&&E>=0&&(this._active=!0),yt===0&&(this._initted===2&&E>0&&this._init(),this._startAt&&(E>=0?this._startAt.render(E,!0,T):R||(R="_dummyGS")),this.vars.onStart&&(this._totalTime!==0||Pt===0)&&(P||this._callback("onStart"))),b=this._firstPT;b;)b.f?b.t[b.p](b.c*this.ratio+b.s):b.t[b.p]=b.c*this.ratio+b.s,b=b._next;this._onUpdate&&(0>E&&this._startAt&&this._startTime&&this._startAt.render(E,!0,T),P||(this._totalTime!==yt||R)&&this._callback("onUpdate")),this._cycle!==G&&(P||this._gc||this.vars.onRepeat&&this._callback("onRepeat")),R&&(!this._gc||T)&&(0>E&&this._startAt&&!this._onUpdate&&this._startTime&&this._startAt.render(E,!0,T),M&&(this._timeline.autoRemoveChildren&&this._enabled(!1,!1),this._active=!1),!P&&this.vars[R]&&this._callback(R),Pt===0&&this._rawPrevTime===m&&$!==m&&(this._rawPrevTime=0))},u.to=function(E,P,T){return new u(E,P,T)},u.from=function(E,P,T){return T.runBackwards=!0,T.immediateRender=T.immediateRender!=0,new u(E,P,T)},u.fromTo=function(E,P,T,M){return M.startAt=T,M.immediateRender=M.immediateRender!=0&&T.immediateRender!=0,new u(E,P,M)},u.staggerTo=u.allTo=function(E,P,T,M,R,b,U){M=M||0;var F,j,J,$,ct=0,It=[],et=function(){T.onComplete&&T.onComplete.apply(T.onCompleteScope||this,arguments),R.apply(U||T.callbackScope||this,b||I)},yt=T.cycle,G=T.startAt&&T.startAt.cycle;for(S(E)||(typeof E=="string"&&(E=o.selector(E)||E),y(E)&&(E=c(E))),E=E||[],0>M&&(E=c(E),E.reverse(),M*=-1),F=E.length-1,J=0;F>=J;J++){j={};for($ in T)j[$]=T[$];if(yt&&(d(j,E,J),j.duration!=null&&(P=j.duration,delete j.duration)),G){G=j.startAt={};for($ in T.startAt)G[$]=T.startAt[$];d(j.startAt,E,J)}j.delay=ct+(j.delay||0),J===F&&R&&(j.onComplete=et),It[J]=new u(E[J],P,j),ct+=M}return It},u.staggerFrom=u.allFrom=function(E,P,T,M,R,b,U){return T.runBackwards=!0,T.immediateRender=T.immediateRender!=0,u.staggerTo(E,P,T,M,R,b,U)},u.staggerFromTo=u.allFromTo=function(E,P,T,M,R,b,U,F){return M.startAt=T,M.immediateRender=M.immediateRender!=0&&T.immediateRender!=0,u.staggerTo(E,P,M,R,b,U,F)},u.delayedCall=function(E,P,T,M,R){return new u(P,0,{delay:E,onComplete:P,onCompleteParams:T,callbackScope:M,onReverseComplete:P,onReverseCompleteParams:T,immediateRender:!1,useFrames:R,overwrite:0})},u.set=function(E,P){return new u(E,0,P)},u.isTweening=function(E){return o.getTweensOf(E,!0).length>0};var k=function(E,P){for(var T=[],M=0,R=E._first;R;)R instanceof o?T[M++]=R:(P&&(T[M++]=R),T=T.concat(k(R,P)),M=T.length),R=R._next;return T},D=u.getAllTweens=function(E){return k(x._rootTimeline,E).concat(k(x._rootFramesTimeline,E))};u.killAll=function(E,P,T,M){P==null&&(P=!0),T==null&&(T=!0);var R,b,U,F=D(M!=0),j=F.length,J=P&&T&&M;for(U=0;j>U;U++)b=F[U],(J||b instanceof l||(R=b.target===b.vars.onComplete)&&T||P&&!R)&&(E?b.totalTime(b._reversed?0:b.totalDuration()):b._enabled(!1,!1))},u.killChildTweensOf=function(E,P){if(E!=null){var T,M,R,b,U,F=_.tweenLookup;if(typeof E=="string"&&(E=o.selector(E)||E),y(E)&&(E=c(E)),S(E))for(b=E.length;--b>-1;)u.killChildTweensOf(E[b],P);else{T=[];for(R in F)for(M=F[R].target.parentNode;M;)M===E&&(T=T.concat(F[R].tweens)),M=M.parentNode;for(U=T.length,b=0;U>b;b++)P&&T[b].totalTime(T[b].totalDuration()),T[b]._enabled(!1,!1)}}};var N=function(E,P,T,M){P=P!==!1,T=T!==!1,M=M!==!1;for(var R,b,U=D(M),F=P&&T&&M,j=U.length;--j>-1;)b=U[j],(F||b instanceof l||(R=b.target===b.vars.onComplete)&&T||P&&!R)&&b.paused(E)};return u.pauseAll=function(E,P,T){N(!0,E,P,T)},u.resumeAll=function(E,P,T){N(!1,E,P,T)},u.globalTimeScale=function(E){var P=x._rootTimeline,T=o.ticker.time;return arguments.length?(E=E||m,P._startTime=T-(T-P._startTime)*P._timeScale/E,P=x._rootFramesTimeline,T=o.ticker.frame,P._startTime=T-(T-P._startTime)*P._timeScale/E,P._timeScale=x._rootTimeline._timeScale=E,E):P._timeScale},A.progress=function(E,P){return arguments.length?this.totalTime(this.duration()*(this._yoyo&&1&this._cycle?1-E:E)+this._cycle*(this._duration+this._repeatDelay),P):this._time/this.duration()},A.totalProgress=function(E,P){return arguments.length?this.totalTime(this.totalDuration()*E,P):this._totalTime/this.totalDuration()},A.time=function(E,P){return arguments.length?(this._dirty&&this.totalDuration(),E>this._duration&&(E=this._duration),this._yoyo&&1&this._cycle?E=this._duration-E+this._cycle*(this._duration+this._repeatDelay):this._repeat!==0&&(E+=this._cycle*(this._duration+this._repeatDelay)),this.totalTime(E,P)):this._time},A.duration=function(E){return arguments.length?x.prototype.duration.call(this,E):this._duration},A.totalDuration=function(E){return arguments.length?this._repeat===-1?this:this.duration((E-this._repeat*this._repeatDelay)/(this._repeat+1)):(this._dirty&&(this._totalDuration=this._repeat===-1?999999999999:this._duration*(this._repeat+1)+this._repeatDelay*this._repeat,this._dirty=!1),this._totalDuration)},A.repeat=function(E){return arguments.length?(this._repeat=E,this._uncache(!0)):this._repeat},A.repeatDelay=function(E){return arguments.length?(this._repeatDelay=E,this._uncache(!0)):this._repeatDelay},A.yoyo=function(E){return arguments.length?(this._yoyo=E,this):this._yoyo},u},!0),ln._gsDefine("TimelineLite",["core.Animation","core.SimpleTimeline","TweenLite"],function(x,l,o){var c=function(T){l.call(this,T),this._labels={},this.autoRemoveChildren=this.vars.autoRemoveChildren===!0,this.smoothChildTiming=this.vars.smoothChildTiming===!0,this._sortChildren=!0,this._onUpdate=this.vars.onUpdate;var M,R,b=this.vars;for(R in b)M=b[R],y(M)&&M.join("").indexOf("{self}")!==-1&&(b[R]=this._swapSelfInParams(M));y(b.tweens)&&this.add(b.tweens,0,b.align,b.stagger)},d=1e-10,u=o._internals,m=c._internals={},_=u.isSelector,y=u.isArray,S=u.lazyTweens,A=u.lazyRender,I=ln._gsDefine.globals,k=function(T){var M,R={};for(M in T)R[M]=T[M];return R},D=function(T,M,R){var b,U,F=T.cycle;for(b in F)U=F[b],T[b]=typeof U=="function"?U(R,M[R]):U[R%U.length];delete T.cycle},N=m.pauseCallback=function(){},E=function(T){var M,R=[],b=T.length;for(M=0;M!==b;R.push(T[M++]));return R},P=c.prototype=new l;return c.version="2.0.2",P.constructor=c,P.kill()._gc=P._forcingPlayhead=P._hasPause=!1,P.to=function(T,M,R,b){var U=R.repeat&&I.TweenMax||o;return M?this.add(new U(T,M,R),b):this.set(T,R,b)},P.from=function(T,M,R,b){return this.add((R.repeat&&I.TweenMax||o).from(T,M,R),b)},P.fromTo=function(T,M,R,b,U){var F=b.repeat&&I.TweenMax||o;return M?this.add(F.fromTo(T,M,R,b),U):this.set(T,b,U)},P.staggerTo=function(T,M,R,b,U,F,j,J){var $,ct,It=new c({onComplete:F,onCompleteParams:j,callbackScope:J,smoothChildTiming:this.smoothChildTiming}),et=R.cycle;for(typeof T=="string"&&(T=o.selector(T)||T),T=T||[],_(T)&&(T=E(T)),b=b||0,0>b&&(T=E(T),T.reverse(),b*=-1),ct=0;ct<T.length;ct++)$=k(R),$.startAt&&($.startAt=k($.startAt),$.startAt.cycle&&D($.startAt,T,ct)),et&&(D($,T,ct),$.duration!=null&&(M=$.duration,delete $.duration)),It.to(T[ct],M,$,ct*b);return this.add(It,U)},P.staggerFrom=function(T,M,R,b,U,F,j,J){return R.immediateRender=R.immediateRender!=0,R.runBackwards=!0,this.staggerTo(T,M,R,b,U,F,j,J)},P.staggerFromTo=function(T,M,R,b,U,F,j,J,$){return b.startAt=R,b.immediateRender=b.immediateRender!=0&&R.immediateRender!=0,this.staggerTo(T,M,b,U,F,j,J,$)},P.call=function(T,M,R,b){return this.add(o.delayedCall(0,T,M,R),b)},P.set=function(T,M,R){return R=this._parseTimeOrLabel(R,0,!0),M.immediateRender==null&&(M.immediateRender=R===this._time&&!this._paused),this.add(new o(T,0,M),R)},c.exportRoot=function(T,M){T=T||{},T.smoothChildTiming==null&&(T.smoothChildTiming=!0);var R,b,U,F,j=new c(T),J=j._timeline;for(M==null&&(M=!0),J._remove(j,!0),j._startTime=0,j._rawPrevTime=j._time=j._totalTime=J._time,U=J._first;U;)F=U._next,M&&U instanceof o&&U.target===U.vars.onComplete||(b=U._startTime-U._delay,0>b&&(R=1),j.add(U,b)),U=F;return J.add(j,0),R&&j.totalDuration(),j},P.add=function(T,M,R,b){var U,F,j,J,$,ct;if(typeof M!="number"&&(M=this._parseTimeOrLabel(M,0,!0,T)),!(T instanceof x)){if(T instanceof Array||T&&T.push&&y(T)){for(R=R||"normal",b=b||0,U=M,F=T.length,j=0;F>j;j++)y(J=T[j])&&(J=new c({tweens:J})),this.add(J,U),typeof J!="string"&&typeof J!="function"&&(R==="sequence"?U=J._startTime+J.totalDuration()/J._timeScale:R==="start"&&(J._startTime-=J.delay())),U+=b;return this._uncache(!0)}if(typeof T=="string")return this.addLabel(T,M);if(typeof T!="function")throw"Cannot add "+T+" into the timeline; it is not a tween, timeline, function, or string.";T=o.delayedCall(0,T)}if(l.prototype.add.call(this,T,M),T._time&&(U=Math.max(0,Math.min(T.totalDuration(),(this.rawTime()-T._startTime)*T._timeScale)),Math.abs(U-T._totalTime)>1e-5&&T.render(U,!1,!1)),(this._gc||this._time===this._duration)&&!this._paused&&this._duration<this.duration())for($=this,ct=$.rawTime()>T._startTime;$._timeline;)ct&&$._timeline.smoothChildTiming?$.totalTime($._totalTime,!0):$._gc&&$._enabled(!0,!1),$=$._timeline;return this},P.remove=function(T){if(T instanceof x){this._remove(T,!1);var M=T._timeline=T.vars.useFrames?x._rootFramesTimeline:x._rootTimeline;return T._startTime=(T._paused?T._pauseTime:M._time)-(T._reversed?T.totalDuration()-T._totalTime:T._totalTime)/T._timeScale,this}if(T instanceof Array||T&&T.push&&y(T)){for(var R=T.length;--R>-1;)this.remove(T[R]);return this}return typeof T=="string"?this.removeLabel(T):this.kill(null,T)},P._remove=function(T,M){l.prototype._remove.call(this,T,M);var R=this._last;return R?this._time>this.duration()&&(this._time=this._duration,this._totalTime=this._totalDuration):this._time=this._totalTime=this._duration=this._totalDuration=0,this},P.append=function(T,M){return this.add(T,this._parseTimeOrLabel(null,M,!0,T))},P.insert=P.insertMultiple=function(T,M,R,b){return this.add(T,M||0,R,b)},P.appendMultiple=function(T,M,R,b){return this.add(T,this._parseTimeOrLabel(null,M,!0,T),R,b)},P.addLabel=function(T,M){return this._labels[T]=this._parseTimeOrLabel(M),this},P.addPause=function(T,M,R,b){var U=o.delayedCall(0,N,R,b||this);return U.vars.onComplete=U.vars.onReverseComplete=M,U.data="isPause",this._hasPause=!0,this.add(U,T)},P.removeLabel=function(T){return delete this._labels[T],this},P.getLabelTime=function(T){return this._labels[T]!=null?this._labels[T]:-1},P._parseTimeOrLabel=function(T,M,R,b){var U,F;if(b instanceof x&&b.timeline===this)this.remove(b);else if(b&&(b instanceof Array||b.push&&y(b)))for(F=b.length;--F>-1;)b[F]instanceof x&&b[F].timeline===this&&this.remove(b[F]);if(U=typeof T!="number"||M?this.duration()>99999999999?this.recent().endTime(!1):this._duration:0,typeof M=="string")return this._parseTimeOrLabel(M,R&&typeof T=="number"&&this._labels[M]==null?T-U:0,R);if(M=M||0,typeof T!="string"||!isNaN(T)&&this._labels[T]==null)T==null&&(T=U);else{if(F=T.indexOf("="),F===-1)return this._labels[T]==null?R?this._labels[T]=U+M:M:this._labels[T]+M;M=parseInt(T.charAt(F-1)+"1",10)*Number(T.substr(F+1)),T=F>1?this._parseTimeOrLabel(T.substr(0,F-1),0,R):U}return Number(T)+M},P.seek=function(T,M){return this.totalTime(typeof T=="number"?T:this._parseTimeOrLabel(T),M!==!1)},P.stop=function(){return this.paused(!0)},P.gotoAndPlay=function(T,M){return this.play(T,M)},P.gotoAndStop=function(T,M){return this.pause(T,M)},P.render=function(T,M,R){this._gc&&this._enabled(!0,!1);var b,U,F,j,J,$,ct,It=this._time,et=this._dirty?this.totalDuration():this._totalDuration,yt=this._startTime,G=this._timeScale,Pt=this._paused;if(It!==this._time&&(T+=this._time-It),T>=et-1e-7&&T>=0)this._totalTime=this._time=et,this._reversed||this._hasPausedChild()||(U=!0,j="onComplete",J=!!this._timeline.autoRemoveChildren,this._duration===0&&(0>=T&&T>=-1e-7||this._rawPrevTime<0||this._rawPrevTime===d)&&this._rawPrevTime!==T&&this._first&&(J=!0,this._rawPrevTime>d&&(j="onReverseComplete"))),this._rawPrevTime=this._duration||!M||T||this._rawPrevTime===T?T:d,T=et+1e-4;else if(1e-7>T)if(this._totalTime=this._time=0,(It!==0||this._duration===0&&this._rawPrevTime!==d&&(this._rawPrevTime>0||0>T&&this._rawPrevTime>=0))&&(j="onReverseComplete",U=this._reversed),0>T)this._active=!1,this._timeline.autoRemoveChildren&&this._reversed?(J=U=!0,j="onReverseComplete"):this._rawPrevTime>=0&&this._first&&(J=!0),this._rawPrevTime=T;else{if(this._rawPrevTime=this._duration||!M||T||this._rawPrevTime===T?T:d,T===0&&U)for(b=this._first;b&&b._startTime===0;)b._duration||(U=!1),b=b._next;T=0,this._initted||(J=!0)}else{if(this._hasPause&&!this._forcingPlayhead&&!M){if(T>=It)for(b=this._first;b&&b._startTime<=T&&!$;)b._duration||b.data!=="isPause"||b.ratio||b._startTime===0&&this._rawPrevTime===0||($=b),b=b._next;else for(b=this._last;b&&b._startTime>=T&&!$;)b._duration||b.data==="isPause"&&b._rawPrevTime>0&&($=b),b=b._prev;$&&(this._time=T=$._startTime,this._totalTime=T+this._cycle*(this._totalDuration+this._repeatDelay))}this._totalTime=this._time=this._rawPrevTime=T}if(this._time!==It&&this._first||R||J||$){if(this._initted||(this._initted=!0),this._active||!this._paused&&this._time!==It&&T>0&&(this._active=!0),It===0&&this.vars.onStart&&(this._time===0&&this._duration||M||this._callback("onStart")),ct=this._time,ct>=It)for(b=this._first;b&&(F=b._next,ct===this._time&&(!this._paused||Pt));)(b._active||b._startTime<=ct&&!b._paused&&!b._gc)&&($===b&&this.pause(),b._reversed?b.render((b._dirty?b.totalDuration():b._totalDuration)-(T-b._startTime)*b._timeScale,M,R):b.render((T-b._startTime)*b._timeScale,M,R)),b=F;else for(b=this._last;b&&(F=b._prev,ct===this._time&&(!this._paused||Pt));){if(b._active||b._startTime<=It&&!b._paused&&!b._gc){if($===b){for($=b._prev;$&&$.endTime()>this._time;)$.render($._reversed?$.totalDuration()-(T-$._startTime)*$._timeScale:(T-$._startTime)*$._timeScale,M,R),$=$._prev;$=null,this.pause()}b._reversed?b.render((b._dirty?b.totalDuration():b._totalDuration)-(T-b._startTime)*b._timeScale,M,R):b.render((T-b._startTime)*b._timeScale,M,R)}b=F}this._onUpdate&&(M||(S.length&&A(),this._callback("onUpdate"))),j&&(this._gc||(yt===this._startTime||G!==this._timeScale)&&(this._time===0||et>=this.totalDuration())&&(U&&(S.length&&A(),this._timeline.autoRemoveChildren&&this._enabled(!1,!1),this._active=!1),!M&&this.vars[j]&&this._callback(j)))}},P._hasPausedChild=function(){for(var T=this._first;T;){if(T._paused||T instanceof c&&T._hasPausedChild())return!0;T=T._next}return!1},P.getChildren=function(T,M,R,b){b=b||-9999999999;for(var U=[],F=this._first,j=0;F;)F._startTime<b||(F instanceof o?M!==!1&&(U[j++]=F):(R!==!1&&(U[j++]=F),T!==!1&&(U=U.concat(F.getChildren(!0,M,R)),j=U.length))),F=F._next;return U},P.getTweensOf=function(T,M){var R,b,U=this._gc,F=[],j=0;for(U&&this._enabled(!0,!0),R=o.getTweensOf(T),b=R.length;--b>-1;)(R[b].timeline===this||M&&this._contains(R[b]))&&(F[j++]=R[b]);return U&&this._enabled(!1,!0),F},P.recent=function(){return this._recent},P._contains=function(T){for(var M=T.timeline;M;){if(M===this)return!0;M=M.timeline}return!1},P.shiftChildren=function(T,M,R){R=R||0;for(var b,U=this._first,F=this._labels;U;)U._startTime>=R&&(U._startTime+=T),U=U._next;if(M)for(b in F)F[b]>=R&&(F[b]+=T);return this._uncache(!0)},P._kill=function(T,M){if(!T&&!M)return this._enabled(!1,!1);for(var R=M?this.getTweensOf(M):this.getChildren(!0,!0,!1),b=R.length,U=!1;--b>-1;)R[b]._kill(T,M)&&(U=!0);return U},P.clear=function(T){var M=this.getChildren(!1,!0,!0),R=M.length;for(this._time=this._totalTime=0;--R>-1;)M[R]._enabled(!1,!1);return T!==!1&&(this._labels={}),this._uncache(!0)},P.invalidate=function(){for(var T=this._first;T;)T.invalidate(),T=T._next;return x.prototype.invalidate.call(this)},P._enabled=function(T,M){if(T===this._gc)for(var R=this._first;R;)R._enabled(T,!0),R=R._next;return l.prototype._enabled.call(this,T,M)},P.totalTime=function(T,M,R){this._forcingPlayhead=!0;var b=x.prototype.totalTime.apply(this,arguments);return this._forcingPlayhead=!1,b},P.duration=function(T){return arguments.length?(this.duration()!==0&&T!==0&&this.timeScale(this._duration/T),this):(this._dirty&&this.totalDuration(),this._duration)},P.totalDuration=function(T){if(!arguments.length){if(this._dirty){for(var M,R,b=0,U=this._last,F=999999999999;U;)M=U._prev,U._dirty&&U.totalDuration(),U._startTime>F&&this._sortChildren&&!U._paused&&!this._calculatingDuration?(this._calculatingDuration=1,this.add(U,U._startTime-U._delay),this._calculatingDuration=0):F=U._startTime,U._startTime<0&&!U._paused&&(b-=U._startTime,this._timeline.smoothChildTiming&&(this._startTime+=U._startTime/this._timeScale,this._time-=U._startTime,this._totalTime-=U._startTime,this._rawPrevTime-=U._startTime),this.shiftChildren(-U._startTime,!1,-9999999999),F=0),R=U._startTime+U._totalDuration/U._timeScale,R>b&&(b=R),U=M;this._duration=this._totalDuration=b,this._dirty=!1}return this._totalDuration}return T&&this.totalDuration()?this.timeScale(this._totalDuration/T):this},P.paused=function(T){if(!T)for(var M=this._first,R=this._time;M;)M._startTime===R&&M.data==="isPause"&&(M._rawPrevTime=0),M=M._next;return x.prototype.paused.apply(this,arguments)},P.usesFrames=function(){for(var T=this._timeline;T._timeline;)T=T._timeline;return T===x._rootFramesTimeline},P.rawTime=function(T){return T&&(this._paused||this._repeat&&this.time()>0&&this.totalProgress()<1)?this._totalTime%(this._duration+this._repeatDelay):this._paused?this._totalTime:(this._timeline.rawTime(T)-this._startTime)*this._timeScale},c},!0),ln._gsDefine("TimelineMax",["TimelineLite","TweenLite","easing.Ease"],function(x,l,o){var c=function(I){x.call(this,I),this._repeat=this.vars.repeat||0,this._repeatDelay=this.vars.repeatDelay||0,this._cycle=0,this._yoyo=this.vars.yoyo===!0,this._dirty=!0},d=1e-10,u=l._internals,m=u.lazyTweens,_=u.lazyRender,y=ln._gsDefine.globals,S=new o(null,null,1,0),A=c.prototype=new x;return A.constructor=c,A.kill()._gc=!1,c.version="2.0.2",A.invalidate=function(){return this._yoyo=this.vars.yoyo===!0,this._repeat=this.vars.repeat||0,this._repeatDelay=this.vars.repeatDelay||0,this._uncache(!0),x.prototype.invalidate.call(this)},A.addCallback=function(I,k,D,N){return this.add(l.delayedCall(0,I,D,N),k)},A.removeCallback=function(I,k){if(I)if(k==null)this._kill(null,I);else for(var D=this.getTweensOf(I,!1),N=D.length,E=this._parseTimeOrLabel(k);--N>-1;)D[N]._startTime===E&&D[N]._enabled(!1,!1);return this},A.removePause=function(I){return this.removeCallback(x._internals.pauseCallback,I)},A.tweenTo=function(I,k){k=k||{};var D,N,E,P={ease:S,useFrames:this.usesFrames(),immediateRender:!1,lazy:!1},T=k.repeat&&y.TweenMax||l;for(N in k)P[N]=k[N];return P.time=this._parseTimeOrLabel(I),D=Math.abs(Number(P.time)-this._time)/this._timeScale||.001,E=new T(this,D,P),P.onStart=function(){E.target.paused(!0),E.vars.time===E.target.time()||D!==E.duration()||E.isFromTo||E.duration(Math.abs(E.vars.time-E.target.time())/E.target._timeScale).render(E.time(),!0,!0),k.onStart&&k.onStart.apply(k.onStartScope||k.callbackScope||E,k.onStartParams||[])},E},A.tweenFromTo=function(I,k,D){D=D||{},I=this._parseTimeOrLabel(I),D.startAt={onComplete:this.seek,onCompleteParams:[I],callbackScope:this},D.immediateRender=D.immediateRender!==!1;var N=this.tweenTo(k,D);return N.isFromTo=1,N.duration(Math.abs(N.vars.time-I)/this._timeScale||.001)},A.render=function(I,k,D){this._gc&&this._enabled(!0,!1);var N,E,P,T,M,R,b,U,F=this._time,j=this._dirty?this.totalDuration():this._totalDuration,J=this._duration,$=this._totalTime,ct=this._startTime,It=this._timeScale,et=this._rawPrevTime,yt=this._paused,G=this._cycle;if(F!==this._time&&(I+=this._time-F),I>=j-1e-7&&I>=0)this._locked||(this._totalTime=j,this._cycle=this._repeat),this._reversed||this._hasPausedChild()||(E=!0,T="onComplete",M=!!this._timeline.autoRemoveChildren,this._duration===0&&(0>=I&&I>=-1e-7||0>et||et===d)&&et!==I&&this._first&&(M=!0,et>d&&(T="onReverseComplete"))),this._rawPrevTime=this._duration||!k||I||this._rawPrevTime===I?I:d,this._yoyo&&1&this._cycle?this._time=I=0:(this._time=J,I=J+1e-4);else if(1e-7>I)if(this._locked||(this._totalTime=this._cycle=0),this._time=0,(F!==0||J===0&&et!==d&&(et>0||0>I&&et>=0)&&!this._locked)&&(T="onReverseComplete",E=this._reversed),0>I)this._active=!1,this._timeline.autoRemoveChildren&&this._reversed?(M=E=!0,T="onReverseComplete"):et>=0&&this._first&&(M=!0),this._rawPrevTime=I;else{if(this._rawPrevTime=J||!k||I||this._rawPrevTime===I?I:d,I===0&&E)for(N=this._first;N&&N._startTime===0;)N._duration||(E=!1),N=N._next;I=0,this._initted||(M=!0)}else if(J===0&&0>et&&(M=!0),this._time=this._rawPrevTime=I,this._locked||(this._totalTime=I,this._repeat!==0&&(R=J+this._repeatDelay,this._cycle=this._totalTime/R>>0,this._cycle!==0&&this._cycle===this._totalTime/R&&I>=$&&this._cycle--,this._time=this._totalTime-this._cycle*R,this._yoyo&&1&this._cycle&&(this._time=J-this._time),this._time>J?(this._time=J,I=J+1e-4):this._time<0?this._time=I=0:I=this._time)),this._hasPause&&!this._forcingPlayhead&&!k){if(I=this._time,I>=F||this._repeat&&G!==this._cycle)for(N=this._first;N&&N._startTime<=I&&!b;)N._duration||N.data!=="isPause"||N.ratio||N._startTime===0&&this._rawPrevTime===0||(b=N),N=N._next;else for(N=this._last;N&&N._startTime>=I&&!b;)N._duration||N.data==="isPause"&&N._rawPrevTime>0&&(b=N),N=N._prev;b&&b._startTime<J&&(this._time=I=b._startTime,this._totalTime=I+this._cycle*(this._totalDuration+this._repeatDelay))}if(this._cycle!==G&&!this._locked){var Pt=this._yoyo&&(1&G)!==0,Et=Pt===(this._yoyo&&(1&this._cycle)!==0),Ct=this._totalTime,fe=this._cycle,re=this._rawPrevTime,Ft=this._time;if(this._totalTime=G*J,this._cycle<G?Pt=!Pt:this._totalTime+=J,this._time=F,this._rawPrevTime=J===0?et-1e-4:et,this._cycle=G,this._locked=!0,F=Pt?0:J,this.render(F,k,J===0),k||this._gc||this.vars.onRepeat&&(this._cycle=fe,this._locked=!1,this._callback("onRepeat")),F!==this._time||(Et&&(this._cycle=G,this._locked=!0,F=Pt?J+1e-4:-1e-4,this.render(F,!0,!1)),this._locked=!1,this._paused&&!yt))return;this._time=Ft,this._totalTime=Ct,this._cycle=fe,this._rawPrevTime=re}if(!(this._time!==F&&this._first||D||M||b))return void($!==this._totalTime&&this._onUpdate&&(k||this._callback("onUpdate")));if(this._initted||(this._initted=!0),this._active||!this._paused&&this._totalTime!==$&&I>0&&(this._active=!0),$===0&&this.vars.onStart&&(this._totalTime===0&&this._totalDuration||k||this._callback("onStart")),U=this._time,U>=F)for(N=this._first;N&&(P=N._next,U===this._time&&(!this._paused||yt));)(N._active||N._startTime<=this._time&&!N._paused&&!N._gc)&&(b===N&&this.pause(),N._reversed?N.render((N._dirty?N.totalDuration():N._totalDuration)-(I-N._startTime)*N._timeScale,k,D):N.render((I-N._startTime)*N._timeScale,k,D)),N=P;else for(N=this._last;N&&(P=N._prev,U===this._time&&(!this._paused||yt));){if(N._active||N._startTime<=F&&!N._paused&&!N._gc){if(b===N){for(b=N._prev;b&&b.endTime()>this._time;)b.render(b._reversed?b.totalDuration()-(I-b._startTime)*b._timeScale:(I-b._startTime)*b._timeScale,k,D),b=b._prev;b=null,this.pause()}N._reversed?N.render((N._dirty?N.totalDuration():N._totalDuration)-(I-N._startTime)*N._timeScale,k,D):N.render((I-N._startTime)*N._timeScale,k,D)}N=P}this._onUpdate&&(k||(m.length&&_(),this._callback("onUpdate"))),T&&(this._locked||this._gc||(ct===this._startTime||It!==this._timeScale)&&(this._time===0||j>=this.totalDuration())&&(E&&(m.length&&_(),this._timeline.autoRemoveChildren&&this._enabled(!1,!1),this._active=!1),!k&&this.vars[T]&&this._callback(T)))},A.getActive=function(I,k,D){I==null&&(I=!0),k==null&&(k=!0),D==null&&(D=!1);var N,E,P=[],T=this.getChildren(I,k,D),M=0,R=T.length;for(N=0;R>N;N++)E=T[N],E.isActive()&&(P[M++]=E);return P},A.getLabelAfter=function(I){I||I!==0&&(I=this._time);var k,D=this.getLabelsArray(),N=D.length;for(k=0;N>k;k++)if(D[k].time>I)return D[k].name;return null},A.getLabelBefore=function(I){I==null&&(I=this._time);for(var k=this.getLabelsArray(),D=k.length;--D>-1;)if(k[D].time<I)return k[D].name;return null},A.getLabelsArray=function(){var I,k=[],D=0;for(I in this._labels)k[D++]={time:this._labels[I],name:I};return k.sort(function(N,E){return N.time-E.time}),k},A.invalidate=function(){return this._locked=!1,x.prototype.invalidate.call(this)},A.progress=function(I,k){return arguments.length?this.totalTime(this.duration()*(this._yoyo&&1&this._cycle?1-I:I)+this._cycle*(this._duration+this._repeatDelay),k):this._time/this.duration()||0},A.totalProgress=function(I,k){return arguments.length?this.totalTime(this.totalDuration()*I,k):this._totalTime/this.totalDuration()||0},A.totalDuration=function(I){return arguments.length?this._repeat!==-1&&I?this.timeScale(this.totalDuration()/I):this:(this._dirty&&(x.prototype.totalDuration.call(this),this._totalDuration=this._repeat===-1?999999999999:this._duration*(this._repeat+1)+this._repeatDelay*this._repeat),this._totalDuration)},A.time=function(I,k){return arguments.length?(this._dirty&&this.totalDuration(),I>this._duration&&(I=this._duration),this._yoyo&&1&this._cycle?I=this._duration-I+this._cycle*(this._duration+this._repeatDelay):this._repeat!==0&&(I+=this._cycle*(this._duration+this._repeatDelay)),this.totalTime(I,k)):this._time},A.repeat=function(I){return arguments.length?(this._repeat=I,this._uncache(!0)):this._repeat},A.repeatDelay=function(I){return arguments.length?(this._repeatDelay=I,this._uncache(!0)):this._repeatDelay},A.yoyo=function(I){return arguments.length?(this._yoyo=I,this):this._yoyo},A.currentLabel=function(I){return arguments.length?this.seek(I,!0):this.getLabelBefore(this._time+1e-8)},c},!0),function(){var x=180/Math.PI,l=[],o=[],c=[],d={},u=ln._gsDefine.globals,m=function(T,M,R,b){R===b&&(R=b-(b-M)/1e6),T===M&&(M=T+(R-T)/1e6),this.a=T,this.b=M,this.c=R,this.d=b,this.da=b-T,this.ca=R-T,this.ba=M-T},_=",x,y,z,left,top,right,bottom,marginTop,marginLeft,marginRight,marginBottom,paddingLeft,paddingTop,paddingRight,paddingBottom,backgroundPosition,backgroundPosition_y,",y=function(T,M,R,b){var U={a:T},F={},j={},J={c:b},$=(T+M)/2,ct=(M+R)/2,It=(R+b)/2,et=($+ct)/2,yt=(ct+It)/2,G=(yt-et)/8;return U.b=$+(T-$)/4,F.b=et+G,U.c=F.a=(U.b+F.b)/2,F.c=j.a=(et+yt)/2,j.b=yt-G,J.b=It+(b-It)/4,j.c=J.a=(j.b+J.b)/2,[U,F,j,J]},S=function(T,M,R,b,U){var F,j,J,$,ct,It,et,yt,G,Pt,Et,Ct,fe,re=T.length-1,Ft=0,Ot=T[0].a;for(F=0;re>F;F++)ct=T[Ft],j=ct.a,J=ct.d,$=T[Ft+1].d,U?(Et=l[F],Ct=o[F],fe=(Ct+Et)*M*.25/(b?.5:c[F]||.5),It=J-(J-j)*(b?.5*M:Et!==0?fe/Et:0),et=J+($-J)*(b?.5*M:Ct!==0?fe/Ct:0),yt=J-(It+((et-It)*(3*Et/(Et+Ct)+.5)/4||0))):(It=J-(J-j)*M*.5,et=J+($-J)*M*.5,yt=J-(It+et)/2),It+=yt,et+=yt,ct.c=G=It,F!==0?ct.b=Ot:ct.b=Ot=ct.a+.6*(ct.c-ct.a),ct.da=J-j,ct.ca=G-j,ct.ba=Ot-j,R?(Pt=y(j,Ot,G,J),T.splice(Ft,1,Pt[0],Pt[1],Pt[2],Pt[3]),Ft+=4):Ft++,Ot=et;ct=T[Ft],ct.b=Ot,ct.c=Ot+.4*(ct.d-Ot),ct.da=ct.d-ct.a,ct.ca=ct.c-ct.a,ct.ba=Ot-ct.a,R&&(Pt=y(ct.a,Ot,ct.c,ct.d),T.splice(Ft,1,Pt[0],Pt[1],Pt[2],Pt[3]))},A=function(T,M,R,b){var U,F,j,J,$,ct,It=[];if(b)for(T=[b].concat(T),F=T.length;--F>-1;)typeof(ct=T[F][M])=="string"&&ct.charAt(1)==="="&&(T[F][M]=b[M]+Number(ct.charAt(0)+ct.substr(2)));if(U=T.length-2,0>U)return It[0]=new m(T[0][M],0,0,T[0][M]),It;for(F=0;U>F;F++)j=T[F][M],J=T[F+1][M],It[F]=new m(j,0,0,J),R&&($=T[F+2][M],l[F]=(l[F]||0)+(J-j)*(J-j),o[F]=(o[F]||0)+($-J)*($-J));return It[F]=new m(T[F][M],0,0,T[F+1][M]),It},I=function(T,M,R,b,U,F){var j,J,$,ct,It,et,yt,G,Pt={},Et=[],Ct=F||T[0];U=typeof U=="string"?","+U+",":_,M==null&&(M=1);for(J in T[0])Et.push(J);if(T.length>1){for(G=T[T.length-1],yt=!0,j=Et.length;--j>-1;)if(J=Et[j],Math.abs(Ct[J]-G[J])>.05){yt=!1;break}yt&&(T=T.concat(),F&&T.unshift(F),T.push(T[1]),F=T[T.length-3])}for(l.length=o.length=c.length=0,j=Et.length;--j>-1;)J=Et[j],d[J]=U.indexOf(","+J+",")!==-1,Pt[J]=A(T,J,d[J],F);for(j=l.length;--j>-1;)l[j]=Math.sqrt(l[j]),o[j]=Math.sqrt(o[j]);if(!b){for(j=Et.length;--j>-1;)if(d[J])for($=Pt[Et[j]],et=$.length-1,ct=0;et>ct;ct++)It=$[ct+1].da/o[ct]+$[ct].da/l[ct]||0,c[ct]=(c[ct]||0)+It*It;for(j=c.length;--j>-1;)c[j]=Math.sqrt(c[j])}for(j=Et.length,ct=R?4:1;--j>-1;)J=Et[j],$=Pt[J],S($,M,R,b,d[J]),yt&&($.splice(0,ct),$.splice($.length-ct,ct));return Pt},k=function(T,M,R){M=M||"soft";var b,U,F,j,J,$,ct,It,et,yt,G,Pt={},Et=M==="cubic"?3:2,Ct=M==="soft",fe=[];if(Ct&&R&&(T=[R].concat(T)),T==null||T.length<Et+1)throw"invalid Bezier data";for(et in T[0])fe.push(et);for($=fe.length;--$>-1;){for(et=fe[$],Pt[et]=J=[],yt=0,It=T.length,ct=0;It>ct;ct++)b=R==null?T[ct][et]:typeof(G=T[ct][et])=="string"&&G.charAt(1)==="="?R[et]+Number(G.charAt(0)+G.substr(2)):Number(G),Ct&&ct>1&&It-1>ct&&(J[yt++]=(b+J[yt-2])/2),J[yt++]=b;for(It=yt-Et+1,yt=0,ct=0;It>ct;ct+=Et)b=J[ct],U=J[ct+1],F=J[ct+2],j=Et===2?0:J[ct+3],J[yt++]=G=Et===3?new m(b,U,F,j):new m(b,(2*U+b)/3,(2*U+F)/3,F);J.length=yt}return Pt},D=function(T,M,R){for(var b,U,F,j,J,$,ct,It,et,yt,G,Pt=1/R,Et=T.length;--Et>-1;)for(yt=T[Et],F=yt.a,j=yt.d-F,J=yt.c-F,$=yt.b-F,b=U=0,It=1;R>=It;It++)ct=Pt*It,et=1-ct,b=U-(U=(ct*ct*j+3*et*(ct*J+et*$))*ct),G=Et*R+It-1,M[G]=(M[G]||0)+b*b},N=function(T,M){M=M>>0||6;var R,b,U,F,j=[],J=[],$=0,ct=0,It=M-1,et=[],yt=[];for(R in T)D(T[R],j,M);for(U=j.length,b=0;U>b;b++)$+=Math.sqrt(j[b]),F=b%M,yt[F]=$,F===It&&(ct+=$,F=b/M>>0,et[F]=yt,J[F]=ct,$=0,yt=[]);return{length:ct,lengths:J,segments:et}},E=ln._gsDefine.plugin({propName:"bezier",priority:-1,version:"1.3.8",API:2,global:!0,init:function(T,M,R){this._target=T,M instanceof Array&&(M={values:M}),this._func={},this._mod={},this._props=[],this._timeRes=M.timeResolution==null?6:parseInt(M.timeResolution,10);var b,U,F,j,J,$=M.values||[],ct={},It=$[0],et=M.autoRotate||R.vars.orientToBezier;this._autoRotate=et?et instanceof Array?et:[["x","y","rotation",et===!0?0:Number(et)||0]]:null;for(b in It)this._props.push(b);for(F=this._props.length;--F>-1;)b=this._props[F],this._overwriteProps.push(b),U=this._func[b]=typeof T[b]=="function",ct[b]=U?T[b.indexOf("set")||typeof T["get"+b.substr(3)]!="function"?b:"get"+b.substr(3)]():parseFloat(T[b]),J||ct[b]!==$[0][b]&&(J=ct);if(this._beziers=M.type!=="cubic"&&M.type!=="quadratic"&&M.type!=="soft"?I($,isNaN(M.curviness)?1:M.curviness,!1,M.type==="thruBasic",M.correlate,J):k($,M.type,ct),this._segCount=this._beziers[b].length,this._timeRes){var yt=N(this._beziers,this._timeRes);this._length=yt.length,this._lengths=yt.lengths,this._segments=yt.segments,this._l1=this._li=this._s1=this._si=0,this._l2=this._lengths[0],this._curSeg=this._segments[0],this._s2=this._curSeg[0],this._prec=1/this._curSeg.length}if(et=this._autoRotate)for(this._initialRotations=[],et[0]instanceof Array||(this._autoRotate=et=[et]),F=et.length;--F>-1;){for(j=0;3>j;j++)b=et[F][j],this._func[b]=typeof T[b]=="function"?T[b.indexOf("set")||typeof T["get"+b.substr(3)]!="function"?b:"get"+b.substr(3)]:!1;b=et[F][2],this._initialRotations[F]=(this._func[b]?this._func[b].call(this._target):this._target[b])||0,this._overwriteProps.push(b)}return this._startRatio=R.vars.runBackwards?1:0,!0},set:function(T){var M,R,b,U,F,j,J,$,ct,It,et=this._segCount,yt=this._func,G=this._target,Pt=T!==this._startRatio;if(this._timeRes){if(ct=this._lengths,It=this._curSeg,T*=this._length,b=this._li,T>this._l2&&et-1>b){for($=et-1;$>b&&(this._l2=ct[++b])<=T;);this._l1=ct[b-1],this._li=b,this._curSeg=It=this._segments[b],this._s2=It[this._s1=this._si=0]}else if(T<this._l1&&b>0){for(;b>0&&(this._l1=ct[--b])>=T;);b===0&&T<this._l1?this._l1=0:b++,this._l2=ct[b],this._li=b,this._curSeg=It=this._segments[b],this._s1=It[(this._si=It.length-1)-1]||0,this._s2=It[this._si]}if(M=b,T-=this._l1,b=this._si,T>this._s2&&b<It.length-1){for($=It.length-1;$>b&&(this._s2=It[++b])<=T;);this._s1=It[b-1],this._si=b}else if(T<this._s1&&b>0){for(;b>0&&(this._s1=It[--b])>=T;);b===0&&T<this._s1?this._s1=0:b++,this._s2=It[b],this._si=b}j=(b+(T-this._s1)/(this._s2-this._s1))*this._prec||0}else M=0>T?0:T>=1?et-1:et*T>>0,j=(T-M*(1/et))*et;for(R=1-j,b=this._props.length;--b>-1;)U=this._props[b],F=this._beziers[U][M],J=(j*j*F.da+3*R*(j*F.ca+R*F.ba))*j+F.a,this._mod[U]&&(J=this._mod[U](J,G)),yt[U]?G[U](J):G[U]=J;if(this._autoRotate){var Et,Ct,fe,re,Ft,Ot,Bt,ke=this._autoRotate;for(b=ke.length;--b>-1;)U=ke[b][2],Ot=ke[b][3]||0,Bt=ke[b][4]===!0?1:x,F=this._beziers[ke[b][0]],Et=this._beziers[ke[b][1]],F&&Et&&(F=F[M],Et=Et[M],Ct=F.a+(F.b-F.a)*j,re=F.b+(F.c-F.b)*j,Ct+=(re-Ct)*j,re+=(F.c+(F.d-F.c)*j-re)*j,fe=Et.a+(Et.b-Et.a)*j,Ft=Et.b+(Et.c-Et.b)*j,fe+=(Ft-fe)*j,Ft+=(Et.c+(Et.d-Et.c)*j-Ft)*j,J=Pt?Math.atan2(Ft-fe,re-Ct)*Bt+Ot:this._initialRotations[b],this._mod[U]&&(J=this._mod[U](J,G)),yt[U]?G[U](J):G[U]=J)}}}),P=E.prototype;E.bezierThrough=I,E.cubicToQuadratic=y,E._autoCSS=!0,E.quadraticToCubic=function(T,M,R){return new m(T,(2*M+T)/3,(2*M+R)/3,R)},E._cssRegister=function(){var T=u.CSSPlugin;if(T){var M=T._internals,R=M._parseToProxy,b=M._setPluginRatio,U=M.CSSPropTween;M._registerComplexSpecialProp("bezier",{parser:function(F,j,J,$,ct,It){j instanceof Array&&(j={values:j}),It=new E;var et,yt,G,Pt=j.values,Et=Pt.length-1,Ct=[],fe={};if(0>Et)return ct;for(et=0;Et>=et;et++)G=R(F,Pt[et],$,ct,It,Et!==et),Ct[et]=G.end;for(yt in j)fe[yt]=j[yt];return fe.values=Ct,ct=new U(F,"bezier",0,0,G.pt,2),ct.data=G,ct.plugin=It,ct.setRatio=b,fe.autoRotate===0&&(fe.autoRotate=!0),!fe.autoRotate||fe.autoRotate instanceof Array||(et=fe.autoRotate===!0?0:Number(fe.autoRotate),fe.autoRotate=G.end.left!=null?[["left","top","rotation",et,!1]]:G.end.x!=null?[["x","y","rotation",et,!1]]:!1),fe.autoRotate&&($._transform||$._enableTransforms(!1),G.autoRotate=$._target._gsTransform,G.proxy.rotation=G.autoRotate.rotation||0,$._overwriteProps.push("rotation")),It._onInitTween(G.proxy,fe,$._tween),ct}})}},P._mod=function(T){for(var M,R=this._overwriteProps,b=R.length;--b>-1;)M=T[R[b]],M&&typeof M=="function"&&(this._mod[R[b]]=M)},P._kill=function(T){var M,R,b=this._props;for(M in this._beziers)if(M in T)for(delete this._beziers[M],delete this._func[M],R=b.length;--R>-1;)b[R]===M&&b.splice(R,1);if(b=this._autoRotate)for(R=b.length;--R>-1;)T[b[R][2]]&&b.splice(R,1);return this._super._kill.call(this,T)}}(),ln._gsDefine("plugins.CSSPlugin",["plugins.TweenPlugin","TweenLite"],function(x,l){var o,c,d,u,m=function(){x.call(this,"css"),this._overwriteProps.length=0,this.setRatio=m.prototype.setRatio},_=ln._gsDefine.globals,y={},S=m.prototype=new x("css");S.constructor=m,m.version="2.0.2",m.API=2,m.defaultTransformPerspective=0,m.defaultSkewType="compensated",m.defaultSmoothOrigin=!0,S="px",m.suffixMap={top:S,right:S,bottom:S,left:S,width:S,height:S,fontSize:S,padding:S,margin:S,perspective:S,lineHeight:""};var A,I,k,D,N,E,P,T,M=/(?:\-|\.|\b)(\d|\.|e\-)+/g,R=/(?:\d|\-\d|\.\d|\-\.\d|\+=\d|\-=\d|\+=.\d|\-=\.\d)+/g,b=/(?:\+=|\-=|\-|\b)[\d\-\.]+[a-zA-Z0-9]*(?:%|\b)/gi,U=/(?![+-]?\d*\.?\d+|[+-]|e[+-]\d+)[^0-9]/g,F=/(?:\d|\-|\+|=|#|\.)*/g,j=/opacity *= *([^)]*)/i,J=/opacity:([^;]*)/i,$=/alpha\(opacity *=.+?\)/i,ct=/^(rgb|hsl)/,It=/([A-Z])/g,et=/-([a-z])/gi,yt=/(^(?:url\(\"|url\())|(?:(\"\))$|\)$)/gi,G=function(V,tt){return tt.toUpperCase()},Pt=/(?:Left|Right|Width)/i,Et=/(M11|M12|M21|M22)=[\d\-\.e]+/gi,Ct=/progid\:DXImageTransform\.Microsoft\.Matrix\(.+?\)/i,fe=/,(?=[^\)]*(?:\(|$))/gi,re=/[\s,\(]/i,Ft=Math.PI/180,Ot=180/Math.PI,Bt={},ke={style:{}},ce=ln.document||{createElement:function(){return ke}},Yt=function(V,tt){return ce.createElementNS?ce.createElementNS(tt||"http://www.w3.org/1999/xhtml",V):ce.createElement(V)},$e=Yt("div"),Oi=Yt("img"),Oe=m._internals={_specialProps:y},Ge=(ln.navigator||{}).userAgent||"",di=function(){var V=Ge.indexOf("Android"),tt=Yt("a");return k=Ge.indexOf("Safari")!==-1&&Ge.indexOf("Chrome")===-1&&(V===-1||parseFloat(Ge.substr(V+8,2))>3),N=k&&parseFloat(Ge.substr(Ge.indexOf("Version/")+8,2))<6,D=Ge.indexOf("Firefox")!==-1,(/MSIE ([0-9]{1,}[\.0-9]{0,})/.exec(Ge)||/Trident\/.*rv:([0-9]{1,}[\.0-9]{0,})/.exec(Ge))&&(E=parseFloat(RegExp.$1)),tt?(tt.style.cssText="top:1px;opacity:.55;",/^0.55/.test(tt.style.opacity)):!1}(),Ii=function(V){return j.test(typeof V=="string"?V:(V.currentStyle?V.currentStyle.filter:V.style.filter)||"")?parseFloat(RegExp.$1)/100:1},mn=function(V){ln.console&&console.log(V)},Qi="",W="",Jt=function(V,tt){tt=tt||$e;var lt,at,X=tt.style;if(X[V]!==void 0)return V;for(V=V.charAt(0).toUpperCase()+V.substr(1),lt=["O","Moz","ms","Ms","Webkit"],at=5;--at>-1&&X[lt[at]+V]===void 0;);return at>=0?(W=at===3?"ms":lt[at],Qi="-"+W.toLowerCase()+"-",W+V):null},Wt=(typeof window<"u"?window:ce.defaultView||{getComputedStyle:function(){}}).getComputedStyle,pt=m.getStyle=function(V,tt,lt,at,X){var St;return di||tt!=="opacity"?(!at&&V.style[tt]?St=V.style[tt]:(lt=lt||Wt(V))?St=lt[tt]||lt.getPropertyValue(tt)||lt.getPropertyValue(tt.replace(It,"-$1").toLowerCase()):V.currentStyle&&(St=V.currentStyle[tt]),X==null||St&&St!=="none"&&St!=="auto"&&St!=="auto auto"?St:X):Ii(V)},dt=Oe.convertToPixels=function(V,tt,lt,at,X){if(at==="px"||!at&&tt!=="lineHeight")return lt;if(at==="auto"||!lt)return 0;var St,ht,Rt,Ht=Pt.test(tt),kt=V,Mt=$e.style,he=0>lt,oe=lt===1;if(he&&(lt=-lt),oe&&(lt*=100),tt!=="lineHeight"||at)if(at==="%"&&tt.indexOf("border")!==-1)St=lt/100*(Ht?V.clientWidth:V.clientHeight);else{if(Mt.cssText="border:0 solid red;position:"+pt(V,"position")+";line-height:0;",at!=="%"&&kt.appendChild&&at.charAt(0)!=="v"&&at!=="rem")Mt[Ht?"borderLeftWidth":"borderTopWidth"]=lt+at;else{if(kt=V.parentNode||ce.body,pt(kt,"display").indexOf("flex")!==-1&&(Mt.position="absolute"),ht=kt._gsCache,Rt=l.ticker.frame,ht&&Ht&&ht.time===Rt)return ht.width*lt/100;Mt[Ht?"width":"height"]=lt+at}kt.appendChild($e),St=parseFloat($e[Ht?"offsetWidth":"offsetHeight"]),kt.removeChild($e),Ht&&at==="%"&&m.cacheWidths!==!1&&(ht=kt._gsCache=kt._gsCache||{},ht.time=Rt,ht.width=St/lt*100),St!==0||X||(St=dt(V,tt,lt,at,!0))}else ht=Wt(V).lineHeight,V.style.lineHeight=lt,St=parseFloat(Wt(V).lineHeight),V.style.lineHeight=ht;return oe&&(St/=100),he?-St:St},Dt=Oe.calculateOffset=function(V,tt,lt){if(pt(V,"position",lt)!=="absolute")return 0;var at=tt==="left"?"Left":"Top",X=pt(V,"margin"+at,lt);return V["offset"+at]-(dt(V,tt,parseFloat(X),X.replace(F,""))||0)},ie=function(V,tt){var lt,at,X,St={};if(tt=tt||Wt(V,null))if(lt=tt.length)for(;--lt>-1;)X=tt[lt],(X.indexOf("-transform")===-1||ea===X)&&(St[X.replace(et,G)]=tt.getPropertyValue(X));else for(lt in tt)(lt.indexOf("Transform")===-1||Mn===lt)&&(St[lt]=tt[lt]);else if(tt=V.currentStyle||V.style)for(lt in tt)typeof lt=="string"&&St[lt]===void 0&&(St[lt.replace(et,G)]=tt[lt]);return di||(St.opacity=Ii(V)),at=us(V,tt,!1),St.rotation=at.rotation,St.skewX=at.skewX,St.scaleX=at.scaleX,St.scaleY=at.scaleY,St.x=at.x,St.y=at.y,vr&&(St.z=at.z,St.rotationX=at.rotationX,St.rotationY=at.rotationY,St.scaleZ=at.scaleZ),St.filters&&delete St.filters,St},Kt=function(V,tt,lt,at,X){var St,ht,Rt,Ht={},kt=V.style;for(ht in lt)ht!=="cssText"&&ht!=="length"&&isNaN(ht)&&(tt[ht]!==(St=lt[ht])||X&&X[ht])&&ht.indexOf("Origin")===-1&&(typeof St=="number"||typeof St=="string")&&(Ht[ht]=St!=="auto"||ht!=="left"&&ht!=="top"?St!==""&&St!=="auto"&&St!=="none"||typeof tt[ht]!="string"||tt[ht].replace(U,"")===""?St:0:Dt(V,ht),kt[ht]!==void 0&&(Rt=new ni(kt,ht,kt[ht],Rt)));if(at)for(ht in at)ht!=="className"&&(Ht[ht]=at[ht]);return{difs:Ht,firstMPT:Rt}},z={width:["Left","Right"],height:["Top","Bottom"]},Q=["marginLeft","marginRight","marginTop","marginBottom"],ot=function(V,tt,lt){if((V.nodeName+"").toLowerCase()==="svg")return(lt||Wt(V))[tt]||0;if(V.getCTM&&Ya(V))return V.getBBox()[tt]||0;var at=parseFloat(tt==="width"?V.offsetWidth:V.offsetHeight),X=z[tt],St=X.length;for(lt=lt||Wt(V,null);--St>-1;)at-=parseFloat(pt(V,"padding"+X[St],lt,!0))||0,at-=parseFloat(pt(V,"border"+X[St]+"Width",lt,!0))||0;return at},nt=function(V,tt){if(V==="contain"||V==="auto"||V==="auto auto")return V+" ";(V==null||V==="")&&(V="0 0");var lt,at=V.split(" "),X=V.indexOf("left")!==-1?"0%":V.indexOf("right")!==-1?"100%":at[0],St=V.indexOf("top")!==-1?"0%":V.indexOf("bottom")!==-1?"100%":at[1];if(at.length>3&&!tt){for(at=V.split(", ").join(",").split(","),V=[],lt=0;lt<at.length;lt++)V.push(nt(at[lt]));return V.join(",")}return St==null?St=X==="center"?"50%":"0":St==="center"&&(St="50%"),(X==="center"||isNaN(parseFloat(X))&&(X+"").indexOf("=")===-1)&&(X="50%"),V=X+" "+St+(at.length>2?" "+at[2]:""),tt&&(tt.oxp=X.indexOf("%")!==-1,tt.oyp=St.indexOf("%")!==-1,tt.oxr=X.charAt(1)==="=",tt.oyr=St.charAt(1)==="=",tt.ox=parseFloat(X.replace(U,"")),tt.oy=parseFloat(St.replace(U,"")),tt.v=V),tt||V},vt=function(V,tt){return typeof V=="function"&&(V=V(T,P)),typeof V=="string"&&V.charAt(1)==="="?parseInt(V.charAt(0)+"1",10)*parseFloat(V.substr(2)):parseFloat(V)-parseFloat(tt)||0},Gt=function(V,tt){typeof V=="function"&&(V=V(T,P));var lt=typeof V=="string"&&V.charAt(1)==="=";return typeof V=="string"&&V.charAt(V.length-2)==="v"&&(V=(lt?V.substr(0,2):0)+window["inner"+(V.substr(-2)==="vh"?"Height":"Width")]*(parseFloat(lt?V.substr(2):V)/100)),V==null?tt:lt?parseInt(V.charAt(0)+"1",10)*parseFloat(V.substr(2))+tt:parseFloat(V)||0},Xt=function(V,tt,lt,at){var X,St,ht,Rt,Ht,kt=1e-6;return typeof V=="function"&&(V=V(T,P)),V==null?Rt=tt:typeof V=="number"?Rt=V:(X=360,St=V.split("_"),Ht=V.charAt(1)==="=",ht=(Ht?parseInt(V.charAt(0)+"1",10)*parseFloat(St[0].substr(2)):parseFloat(St[0]))*(V.indexOf("rad")===-1?1:Ot)-(Ht?0:tt),St.length&&(at&&(at[lt]=tt+ht),V.indexOf("short")!==-1&&(ht%=X,ht!==ht%(X/2)&&(ht=0>ht?ht+X:ht-X)),V.indexOf("_cw")!==-1&&0>ht?ht=(ht+9999999999*X)%X-(ht/X|0)*X:V.indexOf("ccw")!==-1&&ht>0&&(ht=(ht-9999999999*X)%X-(ht/X|0)*X)),Rt=tt+ht),kt>Rt&&Rt>-kt&&(Rt=0),Rt},jt={aqua:[0,255,255],lime:[0,255,0],silver:[192,192,192],black:[0,0,0],maroon:[128,0,0],teal:[0,128,128],blue:[0,0,255],navy:[0,0,128],white:[255,255,255],fuchsia:[255,0,255],olive:[128,128,0],yellow:[255,255,0],orange:[255,165,0],gray:[128,128,128],purple:[128,0,128],green:[0,128,0],red:[255,0,0],pink:[255,192,203],cyan:[0,255,255],transparent:[255,255,255,0]},Ne=function(V,tt,lt){return V=0>V?V+1:V>1?V-1:V,255*(1>6*V?tt+(lt-tt)*V*6:.5>V?lt:2>3*V?tt+(lt-tt)*(2/3-V)*6:tt)+.5|0},Re=m.parseColor=function(V,tt){var lt,at,X,St,ht,Rt,Ht,kt,Mt,he,oe;if(V)if(typeof V=="number")lt=[V>>16,V>>8&255,255&V];else{if(V.charAt(V.length-1)===","&&(V=V.substr(0,V.length-1)),jt[V])lt=jt[V];else if(V.charAt(0)==="#")V.length===4&&(at=V.charAt(1),X=V.charAt(2),St=V.charAt(3),V="#"+at+at+X+X+St+St),V=parseInt(V.substr(1),16),lt=[V>>16,V>>8&255,255&V];else if(V.substr(0,3)==="hsl")if(lt=oe=V.match(M),tt){if(V.indexOf("=")!==-1)return V.match(R)}else ht=Number(lt[0])%360/360,Rt=Number(lt[1])/100,Ht=Number(lt[2])/100,X=.5>=Ht?Ht*(Rt+1):Ht+Rt-Ht*Rt,at=2*Ht-X,lt.length>3&&(lt[3]=Number(lt[3])),lt[0]=Ne(ht+1/3,at,X),lt[1]=Ne(ht,at,X),lt[2]=Ne(ht-1/3,at,X);else lt=V.match(M)||jt.transparent;lt[0]=Number(lt[0]),lt[1]=Number(lt[1]),lt[2]=Number(lt[2]),lt.length>3&&(lt[3]=Number(lt[3]))}else lt=jt.black;return tt&&!oe&&(at=lt[0]/255,X=lt[1]/255,St=lt[2]/255,kt=Math.max(at,X,St),Mt=Math.min(at,X,St),Ht=(kt+Mt)/2,kt===Mt?ht=Rt=0:(he=kt-Mt,Rt=Ht>.5?he/(2-kt-Mt):he/(kt+Mt),ht=kt===at?(X-St)/he+(St>X?6:0):kt===X?(St-at)/he+2:(at-X)/he+4,ht*=60),lt[0]=ht+.5|0,lt[1]=100*Rt+.5|0,lt[2]=100*Ht+.5|0),lt},ge=function(V,tt){var lt,at,X,St=V.match(we)||[],ht=0,Rt="";if(!St.length)return V;for(lt=0;lt<St.length;lt++)at=St[lt],X=V.substr(ht,V.indexOf(at,ht)-ht),ht+=X.length+at.length,at=Re(at,tt),at.length===3&&at.push(1),Rt+=X+(tt?"hsla("+at[0]+","+at[1]+"%,"+at[2]+"%,"+at[3]:"rgba("+at.join(","))+")";return Rt+V.substr(ht)},we="(?:\\b(?:(?:rgb|rgba|hsl|hsla)\\(.+?\\))|\\B#(?:[0-9a-f]{3}){1,2}\\b";for(S in jt)we+="|"+S+"\\b";we=new RegExp(we+")","gi"),m.colorStringFilter=function(V){var tt,lt=V[0]+" "+V[1];we.test(lt)&&(tt=lt.indexOf("hsl(")!==-1||lt.indexOf("hsla(")!==-1,V[0]=ge(V[0],tt),V[1]=ge(V[1],tt)),we.lastIndex=0},l.defaultStringFilter||(l.defaultStringFilter=m.colorStringFilter);var _i=function(V,tt,lt,at){if(V==null)return function(oe){return oe};var X,St=tt?(V.match(we)||[""])[0]:"",ht=V.split(St).join("").match(b)||[],Rt=V.substr(0,V.indexOf(ht[0])),Ht=V.charAt(V.length-1)===")"?")":"",kt=V.indexOf(" ")!==-1?" ":",",Mt=ht.length,he=Mt>0?ht[0].replace(M,""):"";return Mt?X=tt?function(oe){var te,_e,ue,je;if(typeof oe=="number")oe+=he;else if(at&&fe.test(oe)){for(je=oe.replace(fe,"|").split("|"),ue=0;ue<je.length;ue++)je[ue]=X(je[ue]);return je.join(",")}if(te=(oe.match(we)||[St])[0],_e=oe.split(te).join("").match(b)||[],ue=_e.length,Mt>ue--)for(;++ue<Mt;)_e[ue]=lt?_e[(ue-1)/2|0]:ht[ue];return Rt+_e.join(kt)+kt+te+Ht+(oe.indexOf("inset")!==-1?" inset":"")}:function(oe){var te,_e,ue;if(typeof oe=="number")oe+=he;else if(at&&fe.test(oe)){for(_e=oe.replace(fe,"|").split("|"),ue=0;ue<_e.length;ue++)_e[ue]=X(_e[ue]);return _e.join(",")}if(te=oe.match(b)||[],ue=te.length,Mt>ue--)for(;++ue<Mt;)te[ue]=lt?te[(ue-1)/2|0]:ht[ue];return Rt+te.join(kt)+Ht}:function(oe){return oe}},Si=function(V){return V=V.split(","),function(tt,lt,at,X,St,ht,Rt){var Ht,kt=(lt+"").split(" ");for(Rt={},Ht=0;4>Ht;Ht++)Rt[V[Ht]]=kt[Ht]=kt[Ht]||kt[(Ht-1)/2>>0];return X.parse(tt,Rt,St,ht)}},ni=(Oe._setPluginRatio=function(V){this.plugin.setRatio(V);for(var tt,lt,at,X,St,ht=this.data,Rt=ht.proxy,Ht=ht.firstMPT,kt=1e-6;Ht;)tt=Rt[Ht.v],Ht.r?tt=Ht.r(tt):kt>tt&&tt>-kt&&(tt=0),Ht.t[Ht.p]=tt,Ht=Ht._next;if(ht.autoRotate&&(ht.autoRotate.rotation=ht.mod?ht.mod.call(this._tween,Rt.rotation,this.t,this._tween):Rt.rotation),V===1||V===0)for(Ht=ht.firstMPT,St=V===1?"e":"b";Ht;){if(lt=Ht.t,lt.type){if(lt.type===1){for(X=lt.xs0+lt.s+lt.xs1,at=1;at<lt.l;at++)X+=lt["xn"+at]+lt["xs"+(at+1)];lt[St]=X}}else lt[St]=lt.s+lt.xs0;Ht=Ht._next}},function(V,tt,lt,at,X){this.t=V,this.p=tt,this.v=lt,this.r=X,at&&(at._prev=this,this._next=at)}),Ei=(Oe._parseToProxy=function(V,tt,lt,at,X,St){var ht,Rt,Ht,kt,Mt,he=at,oe={},te={},_e=lt._transform,ue=Bt;for(lt._transform=null,Bt=tt,at=Mt=lt.parse(V,tt,at,X),Bt=ue,St&&(lt._transform=_e,he&&(he._prev=null,he._prev&&(he._prev._next=null)));at&&at!==he;){if(at.type<=1&&(Rt=at.p,te[Rt]=at.s+at.c,oe[Rt]=at.s,St||(kt=new ni(at,"s",Rt,kt,at.r),at.c=0),at.type===1))for(ht=at.l;--ht>0;)Ht="xn"+ht,Rt=at.p+"_"+Ht,te[Rt]=at.data[Ht],oe[Rt]=at[Ht],St||(kt=new ni(at,Ht,Rt,kt,at.rxp[Ht]));at=at._next}return{proxy:oe,end:te,firstMPT:kt,pt:Mt}},Oe.CSSPropTween=function(V,tt,lt,at,X,St,ht,Rt,Ht,kt,Mt){this.t=V,this.p=tt,this.s=lt,this.c=at,this.n=ht||tt,V instanceof Ei||u.push(this.n),this.r=Rt&&(typeof Rt=="function"?Rt:Math.round),this.type=St||0,Ht&&(this.pr=Ht,o=!0),this.b=kt===void 0?lt:kt,this.e=Mt===void 0?lt+at:Mt,X&&(this._next=X,X._prev=this)}),qr=function(V,tt,lt,at,X,St){var ht=new Ei(V,tt,lt,at-lt,X,-1,St);return ht.b=lt,ht.e=ht.xs0=at,ht},or=m.parseComplex=function(V,tt,lt,at,X,St,ht,Rt,Ht,kt){lt=lt||St||"",typeof at=="function"&&(at=at(T,P)),ht=new Ei(V,tt,0,0,ht,kt?2:1,null,!1,Rt,lt,at),at+="",X&&we.test(at+lt)&&(at=[lt,at],m.colorStringFilter(at),lt=at[0],at=at[1]);var Mt,he,oe,te,_e,ue,je,He,ci,Be,ye,Fe,pe,mi=lt.split(", ").join(",").split(" "),Pe=at.split(", ").join(",").split(" "),xe=mi.length,Le=A!==!1;for((at.indexOf(",")!==-1||lt.indexOf(",")!==-1)&&((at+lt).indexOf("rgb")!==-1||(at+lt).indexOf("hsl")!==-1?(mi=mi.join(" ").replace(fe,", ").split(" "),Pe=Pe.join(" ").replace(fe,", ").split(" ")):(mi=mi.join(" ").split(",").join(", ").split(" "),Pe=Pe.join(" ").split(",").join(", ").split(" ")),xe=mi.length),xe!==Pe.length&&(mi=(St||"").split(" "),xe=mi.length),ht.plugin=Ht,ht.setRatio=kt,we.lastIndex=0,Mt=0;xe>Mt;Mt++)if(te=mi[Mt],_e=Pe[Mt]+"",He=parseFloat(te),He||He===0)ht.appendXtra("",He,vt(_e,He),_e.replace(R,""),Le&&_e.indexOf("px")!==-1?Math.round:!1,!0);else if(X&&we.test(te))Fe=_e.indexOf(")")+1,Fe=")"+(Fe?_e.substr(Fe):""),pe=_e.indexOf("hsl")!==-1&&di,Be=_e,te=Re(te,pe),_e=Re(_e,pe),ci=te.length+_e.length>6,ci&&!di&&_e[3]===0?(ht["xs"+ht.l]+=ht.l?" transparent":"transparent",ht.e=ht.e.split(Pe[Mt]).join("transparent")):(di||(ci=!1),pe?ht.appendXtra(Be.substr(0,Be.indexOf("hsl"))+(ci?"hsla(":"hsl("),te[0],vt(_e[0],te[0]),",",!1,!0).appendXtra("",te[1],vt(_e[1],te[1]),"%,",!1).appendXtra("",te[2],vt(_e[2],te[2]),ci?"%,":"%"+Fe,!1):ht.appendXtra(Be.substr(0,Be.indexOf("rgb"))+(ci?"rgba(":"rgb("),te[0],_e[0]-te[0],",",Math.round,!0).appendXtra("",te[1],_e[1]-te[1],",",Math.round).appendXtra("",te[2],_e[2]-te[2],ci?",":Fe,Math.round),ci&&(te=te.length<4?1:te[3],ht.appendXtra("",te,(_e.length<4?1:_e[3])-te,Fe,!1))),we.lastIndex=0;else if(ue=te.match(M)){if(je=_e.match(R),!je||je.length!==ue.length)return ht;for(oe=0,he=0;he<ue.length;he++)ye=ue[he],Be=te.indexOf(ye,oe),ht.appendXtra(te.substr(oe,Be-oe),Number(ye),vt(je[he],ye),"",Le&&te.substr(Be+ye.length,2)==="px"?Math.round:!1,he===0),oe=Be+ye.length;ht["xs"+ht.l]+=te.substr(oe)}else ht["xs"+ht.l]+=ht.l||ht["xs"+ht.l]?" "+_e:_e;if(at.indexOf("=")!==-1&&ht.data){for(Fe=ht.xs0+ht.data.s,Mt=1;Mt<ht.l;Mt++)Fe+=ht["xs"+Mt]+ht.data["xn"+Mt];ht.e=Fe+ht["xs"+Mt]}return ht.l||(ht.type=-1,ht.xs0=ht.e),ht.xfirst||ht},on=9;for(S=Ei.prototype,S.l=S.pr=0;--on>0;)S["xn"+on]=0,S["xs"+on]="";S.xs0="",S._next=S._prev=S.xfirst=S.data=S.plugin=S.setRatio=S.rxp=null,S.appendXtra=function(V,tt,lt,at,X,St){var ht=this,Rt=ht.l;return ht["xs"+Rt]+=St&&(Rt||ht["xs"+Rt])?" "+V:V||"",lt||Rt===0||ht.plugin?(ht.l++,ht.type=ht.setRatio?2:1,ht["xs"+ht.l]=at||"",Rt>0?(ht.data["xn"+Rt]=tt+lt,ht.rxp["xn"+Rt]=X,ht["xn"+Rt]=tt,ht.plugin||(ht.xfirst=new Ei(ht,"xn"+Rt,tt,lt,ht.xfirst||ht,0,ht.n,X,ht.pr),ht.xfirst.xs0=0),ht):(ht.data={s:tt+lt},ht.rxp={},ht.s=tt,ht.c=lt,ht.r=X,ht)):(ht["xs"+Rt]+=tt+(at||""),ht)};var As=function(V,tt){tt=tt||{},this.p=tt.prefix&&Jt(V)||V,y[V]=y[this.p]=this,this.format=tt.formatter||_i(tt.defaultValue,tt.color,tt.collapsible,tt.multi),tt.parser&&(this.parse=tt.parser),this.clrs=tt.color,this.multi=tt.multi,this.keyword=tt.keyword,this.dflt=tt.defaultValue,this.pr=tt.priority||0},Di=Oe._registerComplexSpecialProp=function(V,tt,lt){typeof tt!="object"&&(tt={parser:lt});var at,X=V.split(","),St=tt.defaultValue;for(lt=lt||[St],at=0;at<X.length;at++)tt.prefix=at===0&&tt.prefix,tt.defaultValue=lt[at]||St,new As(X[at],tt)},Xs=Oe._registerPluginProp=function(V){if(!y[V]){var tt=V.charAt(0).toUpperCase()+V.substr(1)+"Plugin";Di(V,{parser:function(lt,at,X,St,ht,Rt,Ht){var kt=_.com.greensock.plugins[tt];return kt?(kt._cssRegister(),y[X].parse(lt,at,X,St,ht,Rt,Ht)):(mn("Error: "+tt+" js file not loaded."),ht)}})}};S=As.prototype,S.parseComplex=function(V,tt,lt,at,X,St){var ht,Rt,Ht,kt,Mt,he,oe=this.keyword;if(this.multi&&(fe.test(lt)||fe.test(tt)?(Rt=tt.replace(fe,"|").split("|"),Ht=lt.replace(fe,"|").split("|")):oe&&(Rt=[tt],Ht=[lt])),Ht){for(kt=Ht.length>Rt.length?Ht.length:Rt.length,ht=0;kt>ht;ht++)tt=Rt[ht]=Rt[ht]||this.dflt,lt=Ht[ht]=Ht[ht]||this.dflt,oe&&(Mt=tt.indexOf(oe),he=lt.indexOf(oe),Mt!==he&&(he===-1?Rt[ht]=Rt[ht].split(oe).join(""):Mt===-1&&(Rt[ht]+=" "+oe)));tt=Rt.join(", "),lt=Ht.join(", ")}return or(V,this.p,tt,lt,this.clrs,this.dflt,at,this.pr,X,St)},S.parse=function(V,tt,lt,at,X,St,ht){return this.parseComplex(V.style,this.format(pt(V,this.p,d,!1,this.dflt)),this.format(tt),X,St)},m.registerSpecialProp=function(V,tt,lt){Di(V,{parser:function(at,X,St,ht,Rt,Ht,kt){var Mt=new Ei(at,St,0,0,Rt,2,St,!1,lt);return Mt.plugin=Ht,Mt.setRatio=tt(at,X,ht._tween,St),Mt},priority:lt})},m.useSVGTransformAttr=!0;var as,Fl="scaleX,scaleY,scaleZ,x,y,z,skewX,skewY,rotation,rotationX,rotationY,perspective,xPercent,yPercent".split(","),Mn=Jt("transform"),ea=Qi+"transform",mo=Jt("transformOrigin"),vr=Jt("perspective")!==null,ia=Oe.Transform=function(){this.perspective=parseFloat(m.defaultTransformPerspective)||0,this.force3D=m.defaultForce3D!==!1&&vr?m.defaultForce3D||"auto":!1},Xa=ln.SVGElement,Ul=function(V,tt,lt){var at,X=ce.createElementNS("http://www.w3.org/2000/svg",V),St=/([a-z])([A-Z])/g;for(at in lt)X.setAttributeNS(null,at.replace(St,"$1-$2").toLowerCase(),lt[at]);return tt.appendChild(X),X},ls=ce.documentElement||{},Ch=function(){var V,tt,lt,at=E||/Android/i.test(Ge)&&!ln.chrome;return ce.createElementNS&&!at&&(V=Ul("svg",ls),tt=Ul("rect",V,{width:100,height:50,x:100}),lt=tt.getBoundingClientRect().width,tt.style[mo]="50% 50%",tt.style[Mn]="scaleX(0.5)",at=lt===tt.getBoundingClientRect().width&&!(D&&vr),ls.removeChild(V)),at}(),na=function(V,tt,lt,at,X,St){var ht,Rt,Ht,kt,Mt,he,oe,te,_e,ue,je,He,ci,Be,ye=V._gsTransform,Fe=sa(V,!0);ye&&(ci=ye.xOrigin,Be=ye.yOrigin),(!at||(ht=at.split(" ")).length<2)&&(oe=V.getBBox(),oe.x===0&&oe.y===0&&oe.width+oe.height===0&&(oe={x:parseFloat(V.hasAttribute("x")?V.getAttribute("x"):V.hasAttribute("cx")?V.getAttribute("cx"):0)||0,y:parseFloat(V.hasAttribute("y")?V.getAttribute("y"):V.hasAttribute("cy")?V.getAttribute("cy"):0)||0,width:0,height:0}),tt=nt(tt).split(" "),ht=[(tt[0].indexOf("%")!==-1?parseFloat(tt[0])/100*oe.width:parseFloat(tt[0]))+oe.x,(tt[1].indexOf("%")!==-1?parseFloat(tt[1])/100*oe.height:parseFloat(tt[1]))+oe.y]),lt.xOrigin=kt=parseFloat(ht[0]),lt.yOrigin=Mt=parseFloat(ht[1]),at&&Fe!==ra&&(he=Fe[0],oe=Fe[1],te=Fe[2],_e=Fe[3],ue=Fe[4],je=Fe[5],He=he*_e-oe*te,He&&(Rt=kt*(_e/He)+Mt*(-te/He)+(te*je-_e*ue)/He,Ht=kt*(-oe/He)+Mt*(he/He)-(he*je-oe*ue)/He,kt=lt.xOrigin=ht[0]=Rt,Mt=lt.yOrigin=ht[1]=Ht)),ye&&(St&&(lt.xOffset=ye.xOffset,lt.yOffset=ye.yOffset,ye=lt),X||X!==!1&&m.defaultSmoothOrigin!==!1?(Rt=kt-ci,Ht=Mt-Be,ye.xOffset+=Rt*Fe[0]+Ht*Fe[2]-Rt,ye.yOffset+=Rt*Fe[1]+Ht*Fe[3]-Ht):ye.xOffset=ye.yOffset=0),St||V.setAttribute("data-svg-origin",ht.join(" "))},qa=function(V){var tt,lt=Yt("svg",this.ownerSVGElement&&this.ownerSVGElement.getAttribute("xmlns")||"http://www.w3.org/2000/svg"),at=this.parentNode,X=this.nextSibling,St=this.style.cssText;if(ls.appendChild(lt),lt.appendChild(this),this.style.display="block",V)try{tt=this.getBBox(),this._originalGetBBox=this.getBBox,this.getBBox=qa}catch{}else this._originalGetBBox&&(tt=this._originalGetBBox());return X?at.insertBefore(this,X):at.appendChild(this),ls.removeChild(lt),this.style.cssText=St,tt},hs=function(V){try{return V.getBBox()}catch{return qa.call(V,!0)}},Ya=function(V){return!(!Xa||!V.getCTM||V.parentNode&&!V.ownerSVGElement||!hs(V))},ra=[1,0,0,1,0,0],sa=function(V,tt){var lt,at,X,St,ht,Rt,Ht=V._gsTransform||new ia,kt=1e5,Mt=V.style;if(Mn?at=pt(V,ea,null,!0):V.currentStyle&&(at=V.currentStyle.filter.match(Et),at=at&&at.length===4?[at[0].substr(4),Number(at[2].substr(4)),Number(at[1].substr(4)),at[3].substr(4),Ht.x||0,Ht.y||0].join(","):""),lt=!at||at==="none"||at==="matrix(1, 0, 0, 1, 0, 0)",!Mn||!(Rt=!Wt(V)||Wt(V).display==="none")&&V.parentNode||(Rt&&(St=Mt.display,Mt.display="block"),V.parentNode||(ht=1,ls.appendChild(V)),at=pt(V,ea,null,!0),lt=!at||at==="none"||at==="matrix(1, 0, 0, 1, 0, 0)",St?Mt.display=St:Rt&&go(Mt,"display"),ht&&ls.removeChild(V)),(Ht.svg||V.getCTM&&Ya(V))&&(lt&&(Mt[Mn]+"").indexOf("matrix")!==-1&&(at=Mt[Mn],lt=0),X=V.getAttribute("transform"),lt&&X&&(X=V.transform.baseVal.consolidate().matrix,at="matrix("+X.a+","+X.b+","+X.c+","+X.d+","+X.e+","+X.f+")",lt=0)),lt)return ra;for(X=(at||"").match(M)||[],on=X.length;--on>-1;)St=Number(X[on]),X[on]=(ht=St-(St|=0))?(ht*kt+(0>ht?-.5:.5)|0)/kt+St:St;return tt&&X.length>6?[X[0],X[1],X[4],X[5],X[12],X[13]]:X},us=Oe.getTransform=function(V,tt,lt,at){if(V._gsTransform&&lt&&!at)return V._gsTransform;var X,St,ht,Rt,Ht,kt,Mt=lt?V._gsTransform||new ia:new ia,he=Mt.scaleX<0,oe=2e-5,te=1e5,_e=vr&&(parseFloat(pt(V,mo,tt,!1,"0 0 0").split(" ")[2])||Mt.zOrigin)||0,ue=parseFloat(m.defaultTransformPerspective)||0;if(Mt.svg=!(!V.getCTM||!Ya(V)),Mt.svg&&(na(V,pt(V,mo,tt,!1,"50% 50%")+"",Mt,V.getAttribute("data-svg-origin")),as=m.useSVGTransformAttr||Ch),X=sa(V),X!==ra){if(X.length===16){var je,He,ci,Be,ye,Fe=X[0],pe=X[1],mi=X[2],Pe=X[3],xe=X[4],Le=X[5],Sn=X[6],Xn=X[7],zi=X[8],ki=X[9],Hi=X[10],nn=X[12],rn=X[13],un=X[14],cn=X[11],Gi=Math.atan2(Sn,Hi);Mt.zOrigin&&(un=-Mt.zOrigin,nn=zi*un-X[12],rn=ki*un-X[13],un=Hi*un+Mt.zOrigin-X[14]),Mt.rotationX=Gi*Ot,Gi&&(Be=Math.cos(-Gi),ye=Math.sin(-Gi),je=xe*Be+zi*ye,He=Le*Be+ki*ye,ci=Sn*Be+Hi*ye,zi=xe*-ye+zi*Be,ki=Le*-ye+ki*Be,Hi=Sn*-ye+Hi*Be,cn=Xn*-ye+cn*Be,xe=je,Le=He,Sn=ci),Gi=Math.atan2(-mi,Hi),Mt.rotationY=Gi*Ot,Gi&&(Be=Math.cos(-Gi),ye=Math.sin(-Gi),je=Fe*Be-zi*ye,He=pe*Be-ki*ye,ci=mi*Be-Hi*ye,ki=pe*ye+ki*Be,Hi=mi*ye+Hi*Be,cn=Pe*ye+cn*Be,Fe=je,pe=He,mi=ci),Gi=Math.atan2(pe,Fe),Mt.rotation=Gi*Ot,Gi&&(Be=Math.cos(Gi),ye=Math.sin(Gi),je=Fe*Be+pe*ye,He=xe*Be+Le*ye,ci=zi*Be+ki*ye,pe=pe*Be-Fe*ye,Le=Le*Be-xe*ye,ki=ki*Be-zi*ye,Fe=je,xe=He,zi=ci),Mt.rotationX&&Math.abs(Mt.rotationX)+Math.abs(Mt.rotation)>359.9&&(Mt.rotationX=Mt.rotation=0,Mt.rotationY=180-Mt.rotationY),Gi=Math.atan2(xe,Le),Mt.scaleX=(Math.sqrt(Fe*Fe+pe*pe+mi*mi)*te+.5|0)/te,Mt.scaleY=(Math.sqrt(Le*Le+Sn*Sn)*te+.5|0)/te,Mt.scaleZ=(Math.sqrt(zi*zi+ki*ki+Hi*Hi)*te+.5|0)/te,Fe/=Mt.scaleX,xe/=Mt.scaleY,pe/=Mt.scaleX,Le/=Mt.scaleY,Math.abs(Gi)>oe?(Mt.skewX=Gi*Ot,xe=0,Mt.skewType!=="simple"&&(Mt.scaleY*=1/Math.cos(Gi))):Mt.skewX=0,Mt.perspective=cn?1/(0>cn?-cn:cn):0,Mt.x=nn,Mt.y=rn,Mt.z=un,Mt.svg&&(Mt.x-=Mt.xOrigin-(Mt.xOrigin*Fe-Mt.yOrigin*xe),Mt.y-=Mt.yOrigin-(Mt.yOrigin*pe-Mt.xOrigin*Le))}else if(!vr||at||!X.length||Mt.x!==X[4]||Mt.y!==X[5]||!Mt.rotationX&&!Mt.rotationY){var Bi=X.length>=6,ji=Bi?X[0]:1,gi=X[1]||0,cs=X[2]||0,Fn=Bi?X[3]:1;Mt.x=X[4]||0,Mt.y=X[5]||0,ht=Math.sqrt(ji*ji+gi*gi),Rt=Math.sqrt(Fn*Fn+cs*cs),Ht=ji||gi?Math.atan2(gi,ji)*Ot:Mt.rotation||0,kt=cs||Fn?Math.atan2(cs,Fn)*Ot+Ht:Mt.skewX||0,Mt.scaleX=ht,Mt.scaleY=Rt,Mt.rotation=Ht,Mt.skewX=kt,vr&&(Mt.rotationX=Mt.rotationY=Mt.z=0,Mt.perspective=ue,Mt.scaleZ=1),Mt.svg&&(Mt.x-=Mt.xOrigin-(Mt.xOrigin*ji+Mt.yOrigin*cs),Mt.y-=Mt.yOrigin-(Mt.xOrigin*gi+Mt.yOrigin*Fn))}Math.abs(Mt.skewX)>90&&Math.abs(Mt.skewX)<270&&(he?(Mt.scaleX*=-1,Mt.skewX+=Mt.rotation<=0?180:-180,Mt.rotation+=Mt.rotation<=0?180:-180):(Mt.scaleY*=-1,Mt.skewX+=Mt.skewX<=0?180:-180)),Mt.zOrigin=_e;for(St in Mt)Mt[St]<oe&&Mt[St]>-oe&&(Mt[St]=0)}return lt&&(V._gsTransform=Mt,Mt.svg&&(as&&V.style[Mn]?l.delayedCall(.001,function(){go(V.style,Mn)}):!as&&V.getAttribute("transform")&&l.delayedCall(.001,function(){V.removeAttribute("transform")}))),Mt},Gl=function(V){var tt,lt,at=this.data,X=-at.rotation*Ft,St=X+at.skewX*Ft,ht=1e5,Rt=(Math.cos(X)*at.scaleX*ht|0)/ht,Ht=(Math.sin(X)*at.scaleX*ht|0)/ht,kt=(Math.sin(St)*-at.scaleY*ht|0)/ht,Mt=(Math.cos(St)*at.scaleY*ht|0)/ht,he=this.t.style,oe=this.t.currentStyle;if(oe){lt=Ht,Ht=-kt,kt=-lt,tt=oe.filter,he.filter="";var te,_e,ue=this.t.offsetWidth,je=this.t.offsetHeight,He=oe.position!=="absolute",ci="progid:DXImageTransform.Microsoft.Matrix(M11="+Rt+", M12="+Ht+", M21="+kt+", M22="+Mt,Be=at.x+ue*at.xPercent/100,ye=at.y+je*at.yPercent/100;if(at.ox!=null&&(te=(at.oxp?ue*at.ox*.01:at.ox)-ue/2,_e=(at.oyp?je*at.oy*.01:at.oy)-je/2,Be+=te-(te*Rt+_e*Ht),ye+=_e-(te*kt+_e*Mt)),He?(te=ue/2,_e=je/2,ci+=", Dx="+(te-(te*Rt+_e*Ht)+Be)+", Dy="+(_e-(te*kt+_e*Mt)+ye)+")"):ci+=", sizingMethod='auto expand')",tt.indexOf("DXImageTransform.Microsoft.Matrix(")!==-1?he.filter=tt.replace(Ct,ci):he.filter=ci+" "+tt,(V===0||V===1)&&Rt===1&&Ht===0&&kt===0&&Mt===1&&(He&&ci.indexOf("Dx=0, Dy=0")===-1||j.test(tt)&&parseFloat(RegExp.$1)!==100||tt.indexOf(tt.indexOf("Alpha"))===-1&&he.removeAttribute("filter")),!He){var Fe,pe,mi,Pe=8>E?1:-1;for(te=at.ieOffsetX||0,_e=at.ieOffsetY||0,at.ieOffsetX=Math.round((ue-((0>Rt?-Rt:Rt)*ue+(0>Ht?-Ht:Ht)*je))/2+Be),at.ieOffsetY=Math.round((je-((0>Mt?-Mt:Mt)*je+(0>kt?-kt:kt)*ue))/2+ye),on=0;4>on;on++)pe=Q[on],Fe=oe[pe],lt=Fe.indexOf("px")!==-1?parseFloat(Fe):dt(this.t,pe,parseFloat(Fe),Fe.replace(F,""))||0,mi=lt!==at[pe]?2>on?-at.ieOffsetX:-at.ieOffsetY:2>on?te-at.ieOffsetX:_e-at.ieOffsetY,he[pe]=(at[pe]=Math.round(lt-mi*(on===0||on===2?1:Pe)))+"px"}}},Ph=Oe.set3DTransformRatio=Oe.setTransformRatio=function(V){var tt,lt,at,X,St,ht,Rt,Ht,kt,Mt,he,oe,te,_e,ue,je,He,ci,Be,ye,Fe,pe,mi,Pe=this.data,xe=this.t.style,Le=Pe.rotation,Sn=Pe.rotationX,Xn=Pe.rotationY,zi=Pe.scaleX,ki=Pe.scaleY,Hi=Pe.scaleZ,nn=Pe.x,rn=Pe.y,un=Pe.z,cn=Pe.svg,Gi=Pe.perspective,Bi=Pe.force3D,ji=Pe.skewY,gi=Pe.skewX;if(ji&&(gi+=ji,Le+=ji),((V===1||V===0)&&Bi==="auto"&&(this.tween._totalTime===this.tween._totalDuration||!this.tween._totalTime)||!Bi)&&!un&&!Gi&&!Xn&&!Sn&&Hi===1||as&&cn||!vr)return void(Le||gi||cn?(Le*=Ft,pe=gi*Ft,mi=1e5,lt=Math.cos(Le)*zi,St=Math.sin(Le)*zi,at=Math.sin(Le-pe)*-ki,ht=Math.cos(Le-pe)*ki,pe&&Pe.skewType==="simple"&&(tt=Math.tan(pe-ji*Ft),tt=Math.sqrt(1+tt*tt),at*=tt,ht*=tt,ji&&(tt=Math.tan(ji*Ft),tt=Math.sqrt(1+tt*tt),lt*=tt,St*=tt)),cn&&(nn+=Pe.xOrigin-(Pe.xOrigin*lt+Pe.yOrigin*at)+Pe.xOffset,rn+=Pe.yOrigin-(Pe.xOrigin*St+Pe.yOrigin*ht)+Pe.yOffset,as&&(Pe.xPercent||Pe.yPercent)&&(ue=this.t.getBBox(),nn+=.01*Pe.xPercent*ue.width,rn+=.01*Pe.yPercent*ue.height),ue=1e-6,ue>nn&&nn>-ue&&(nn=0),ue>rn&&rn>-ue&&(rn=0)),Be=(lt*mi|0)/mi+","+(St*mi|0)/mi+","+(at*mi|0)/mi+","+(ht*mi|0)/mi+","+nn+","+rn+")",cn&&as?this.t.setAttribute("transform","matrix("+Be):xe[Mn]=(Pe.xPercent||Pe.yPercent?"translate("+Pe.xPercent+"%,"+Pe.yPercent+"%) matrix(":"matrix(")+Be):xe[Mn]=(Pe.xPercent||Pe.yPercent?"translate("+Pe.xPercent+"%,"+Pe.yPercent+"%) matrix(":"matrix(")+zi+",0,0,"+ki+","+nn+","+rn+")");if(D&&(ue=1e-4,ue>zi&&zi>-ue&&(zi=Hi=2e-5),ue>ki&&ki>-ue&&(ki=Hi=2e-5),!Gi||Pe.z||Pe.rotationX||Pe.rotationY||(Gi=0)),Le||gi)Le*=Ft,je=lt=Math.cos(Le),He=St=Math.sin(Le),gi&&(Le-=gi*Ft,je=Math.cos(Le),He=Math.sin(Le),Pe.skewType==="simple"&&(tt=Math.tan((gi-ji)*Ft),tt=Math.sqrt(1+tt*tt),je*=tt,He*=tt,Pe.skewY&&(tt=Math.tan(ji*Ft),tt=Math.sqrt(1+tt*tt),lt*=tt,St*=tt))),at=-He,ht=je;else{if(!(Xn||Sn||Hi!==1||Gi||cn))return void(xe[Mn]=(Pe.xPercent||Pe.yPercent?"translate("+Pe.xPercent+"%,"+Pe.yPercent+"%) translate3d(":"translate3d(")+nn+"px,"+rn+"px,"+un+"px)"+(zi!==1||ki!==1?" scale("+zi+","+ki+")":""));lt=ht=1,at=St=0}Mt=1,X=Rt=Ht=kt=he=oe=0,te=Gi?-1/Gi:0,_e=Pe.zOrigin,ue=1e-6,ye=",",Fe="0",Le=Xn*Ft,Le&&(je=Math.cos(Le),He=Math.sin(Le),Ht=-He,he=te*-He,X=lt*He,Rt=St*He,Mt=je,te*=je,lt*=je,St*=je),Le=Sn*Ft,Le&&(je=Math.cos(Le),He=Math.sin(Le),tt=at*je+X*He,ci=ht*je+Rt*He,kt=Mt*He,oe=te*He,X=at*-He+X*je,Rt=ht*-He+Rt*je,Mt*=je,te*=je,at=tt,ht=ci),Hi!==1&&(X*=Hi,Rt*=Hi,Mt*=Hi,te*=Hi),ki!==1&&(at*=ki,ht*=ki,kt*=ki,oe*=ki),zi!==1&&(lt*=zi,St*=zi,Ht*=zi,he*=zi),(_e||cn)&&(_e&&(nn+=X*-_e,rn+=Rt*-_e,un+=Mt*-_e+_e),cn&&(nn+=Pe.xOrigin-(Pe.xOrigin*lt+Pe.yOrigin*at)+Pe.xOffset,rn+=Pe.yOrigin-(Pe.xOrigin*St+Pe.yOrigin*ht)+Pe.yOffset),ue>nn&&nn>-ue&&(nn=Fe),ue>rn&&rn>-ue&&(rn=Fe),ue>un&&un>-ue&&(un=0)),Be=Pe.xPercent||Pe.yPercent?"translate("+Pe.xPercent+"%,"+Pe.yPercent+"%) matrix3d(":"matrix3d(",Be+=(ue>lt&&lt>-ue?Fe:lt)+ye+(ue>St&&St>-ue?Fe:St)+ye+(ue>Ht&&Ht>-ue?Fe:Ht),Be+=ye+(ue>he&&he>-ue?Fe:he)+ye+(ue>at&&at>-ue?Fe:at)+ye+(ue>ht&&ht>-ue?Fe:ht),Sn||Xn||Hi!==1?(Be+=ye+(ue>kt&&kt>-ue?Fe:kt)+ye+(ue>oe&&oe>-ue?Fe:oe)+ye+(ue>X&&X>-ue?Fe:X),Be+=ye+(ue>Rt&&Rt>-ue?Fe:Rt)+ye+(ue>Mt&&Mt>-ue?Fe:Mt)+ye+(ue>te&&te>-ue?Fe:te)+ye):Be+=",0,0,0,0,1,0,",Be+=nn+ye+rn+ye+un+ye+(Gi?1+-un/Gi:1)+")",xe[Mn]=Be};S=ia.prototype,S.x=S.y=S.z=S.skewX=S.skewY=S.rotation=S.rotationX=S.rotationY=S.zOrigin=S.xPercent=S.yPercent=S.xOffset=S.yOffset=0,S.scaleX=S.scaleY=S.scaleZ=1,Di("transform,scale,scaleX,scaleY,scaleZ,x,y,z,rotation,rotationX,rotationY,rotationZ,skewX,skewY,shortRotation,shortRotationX,shortRotationY,shortRotationZ,transformOrigin,svgOrigin,transformPerspective,directionalRotation,parseTransform,force3D,skewType,xPercent,yPercent,smoothOrigin",{parser:function(V,tt,lt,at,X,St,ht){if(at._lastParsedTransform===ht)return X;at._lastParsedTransform=ht;var Rt,Ht=ht.scale&&typeof ht.scale=="function"?ht.scale:0;typeof ht[lt]=="function"&&(Rt=ht[lt],ht[lt]=tt),Ht&&(ht.scale=Ht(T,V));var kt,Mt,he,oe,te,_e,ue,je,He,ci=V._gsTransform,Be=V.style,ye=1e-6,Fe=Fl.length,pe=ht,mi={},Pe="transformOrigin",xe=us(V,d,!0,pe.parseTransform),Le=pe.transform&&(typeof pe.transform=="function"?pe.transform(T,P):pe.transform);if(xe.skewType=pe.skewType||xe.skewType||m.defaultSkewType,at._transform=xe,"rotationZ"in pe&&(pe.rotation=pe.rotationZ),Le&&typeof Le=="string"&&Mn)Mt=$e.style,Mt[Mn]=Le,Mt.display="block",Mt.position="absolute",Le.indexOf("%")!==-1&&(Mt.width=pt(V,"width"),Mt.height=pt(V,"height")),ce.body.appendChild($e),kt=us($e,null,!1),xe.skewType==="simple"&&(kt.scaleY*=Math.cos(kt.skewX*Ft)),xe.svg&&(_e=xe.xOrigin,ue=xe.yOrigin,kt.x-=xe.xOffset,kt.y-=xe.yOffset,(pe.transformOrigin||pe.svgOrigin)&&(Le={},na(V,nt(pe.transformOrigin),Le,pe.svgOrigin,pe.smoothOrigin,!0),_e=Le.xOrigin,ue=Le.yOrigin,kt.x-=Le.xOffset-xe.xOffset,kt.y-=Le.yOffset-xe.yOffset),(_e||ue)&&(je=sa($e,!0),kt.x-=_e-(_e*je[0]+ue*je[2]),kt.y-=ue-(_e*je[1]+ue*je[3]))),ce.body.removeChild($e),kt.perspective||(kt.perspective=xe.perspective),pe.xPercent!=null&&(kt.xPercent=Gt(pe.xPercent,xe.xPercent)),pe.yPercent!=null&&(kt.yPercent=Gt(pe.yPercent,xe.yPercent));else if(typeof pe=="object"){if(kt={scaleX:Gt(pe.scaleX!=null?pe.scaleX:pe.scale,xe.scaleX),scaleY:Gt(pe.scaleY!=null?pe.scaleY:pe.scale,xe.scaleY),scaleZ:Gt(pe.scaleZ,xe.scaleZ),x:Gt(pe.x,xe.x),y:Gt(pe.y,xe.y),z:Gt(pe.z,xe.z),xPercent:Gt(pe.xPercent,xe.xPercent),yPercent:Gt(pe.yPercent,xe.yPercent),perspective:Gt(pe.transformPerspective,xe.perspective)},te=pe.directionalRotation,te!=null)if(typeof te=="object")for(Mt in te)pe[Mt]=te[Mt];else pe.rotation=te;typeof pe.x=="string"&&pe.x.indexOf("%")!==-1&&(kt.x=0,kt.xPercent=Gt(pe.x,xe.xPercent)),typeof pe.y=="string"&&pe.y.indexOf("%")!==-1&&(kt.y=0,kt.yPercent=Gt(pe.y,xe.yPercent)),kt.rotation=Xt("rotation"in pe?pe.rotation:"shortRotation"in pe?pe.shortRotation+"_short":xe.rotation,xe.rotation,"rotation",mi),vr&&(kt.rotationX=Xt("rotationX"in pe?pe.rotationX:"shortRotationX"in pe?pe.shortRotationX+"_short":xe.rotationX||0,xe.rotationX,"rotationX",mi),kt.rotationY=Xt("rotationY"in pe?pe.rotationY:"shortRotationY"in pe?pe.shortRotationY+"_short":xe.rotationY||0,xe.rotationY,"rotationY",mi)),kt.skewX=Xt(pe.skewX,xe.skewX),kt.skewY=Xt(pe.skewY,xe.skewY)}for(vr&&pe.force3D!=null&&(xe.force3D=pe.force3D,oe=!0),he=xe.force3D||xe.z||xe.rotationX||xe.rotationY||kt.z||kt.rotationX||kt.rotationY||kt.perspective,he||pe.scale==null||(kt.scaleZ=1);--Fe>-1;)He=Fl[Fe],Le=kt[He]-xe[He],(Le>ye||-ye>Le||pe[He]!=null||Bt[He]!=null)&&(oe=!0,X=new Ei(xe,He,xe[He],Le,X),He in mi&&(X.e=mi[He]),X.xs0=0,X.plugin=St,at._overwriteProps.push(X.n));return Le=pe.transformOrigin,xe.svg&&(Le||pe.svgOrigin)&&(_e=xe.xOffset,ue=xe.yOffset,na(V,nt(Le),kt,pe.svgOrigin,pe.smoothOrigin),X=qr(xe,"xOrigin",(ci?xe:kt).xOrigin,kt.xOrigin,X,Pe),X=qr(xe,"yOrigin",(ci?xe:kt).yOrigin,kt.yOrigin,X,Pe),(_e!==xe.xOffset||ue!==xe.yOffset)&&(X=qr(xe,"xOffset",ci?_e:xe.xOffset,xe.xOffset,X,Pe),X=qr(xe,"yOffset",ci?ue:xe.yOffset,xe.yOffset,X,Pe)),Le="0px 0px"),(Le||vr&&he&&xe.zOrigin)&&(Mn?(oe=!0,He=mo,Le=(Le||pt(V,He,d,!1,"50% 50%"))+"",X=new Ei(Be,He,0,0,X,-1,Pe),X.b=Be[He],X.plugin=St,vr?(Mt=xe.zOrigin,Le=Le.split(" "),xe.zOrigin=(Le.length>2&&(Mt===0||Le[2]!=="0px")?parseFloat(Le[2]):Mt)||0,X.xs0=X.e=Le[0]+" "+(Le[1]||"50%")+" 0px",X=new Ei(xe,"zOrigin",0,0,X,-1,X.n),X.b=Mt,X.xs0=X.e=xe.zOrigin):X.xs0=X.e=Le):nt(Le+"",xe)),oe&&(at._transformType=xe.svg&&as||!he&&this._transformType!==3?2:3),Rt&&(ht[lt]=Rt),Ht&&(ht.scale=Ht),X},prefix:!0}),Di("boxShadow",{defaultValue:"0px 0px 0px 0px #999",prefix:!0,color:!0,multi:!0,keyword:"inset"}),Di("borderRadius",{defaultValue:"0px",parser:function(V,tt,lt,at,X,St){tt=this.format(tt);var ht,Rt,Ht,kt,Mt,he,oe,te,_e,ue,je,He,ci,Be,ye,Fe,pe=["borderTopLeftRadius","borderTopRightRadius","borderBottomRightRadius","borderBottomLeftRadius"],mi=V.style;for(_e=parseFloat(V.offsetWidth),ue=parseFloat(V.offsetHeight),ht=tt.split(" "),Rt=0;Rt<pe.length;Rt++)this.p.indexOf("border")&&(pe[Rt]=Jt(pe[Rt])),Mt=kt=pt(V,pe[Rt],d,!1,"0px"),Mt.indexOf(" ")!==-1&&(kt=Mt.split(" "),Mt=kt[0],kt=kt[1]),he=Ht=ht[Rt],oe=parseFloat(Mt),He=Mt.substr((oe+"").length),ci=he.charAt(1)==="=",ci?(te=parseInt(he.charAt(0)+"1",10),he=he.substr(2),te*=parseFloat(he),je=he.substr((te+"").length-(0>te?1:0))||""):(te=parseFloat(he),je=he.substr((te+"").length)),je===""&&(je=c[lt]||He),je!==He&&(Be=dt(V,"borderLeft",oe,He),ye=dt(V,"borderTop",oe,He),je==="%"?(Mt=Be/_e*100+"%",kt=ye/ue*100+"%"):je==="em"?(Fe=dt(V,"borderLeft",1,"em"),Mt=Be/Fe+"em",kt=ye/Fe+"em"):(Mt=Be+"px",kt=ye+"px"),ci&&(he=parseFloat(Mt)+te+je,Ht=parseFloat(kt)+te+je)),X=or(mi,pe[Rt],Mt+" "+kt,he+" "+Ht,!1,"0px",X);return X},prefix:!0,formatter:_i("0px 0px 0px 0px",!1,!0)}),Di("borderBottomLeftRadius,borderBottomRightRadius,borderTopLeftRadius,borderTopRightRadius",{defaultValue:"0px",parser:function(V,tt,lt,at,X,St){return or(V.style,lt,this.format(pt(V,lt,d,!1,"0px 0px")),this.format(tt),!1,"0px",X)},prefix:!0,formatter:_i("0px 0px",!1,!0)}),Di("backgroundPosition",{defaultValue:"0 0",parser:function(V,tt,lt,at,X,St){var ht,Rt,Ht,kt,Mt,he,oe="background-position",te=d||Wt(V,null),_e=this.format((te?E?te.getPropertyValue(oe+"-x")+" "+te.getPropertyValue(oe+"-y"):te.getPropertyValue(oe):V.currentStyle.backgroundPositionX+" "+V.currentStyle.backgroundPositionY)||"0 0"),ue=this.format(tt);if(_e.indexOf("%")!==-1!=(ue.indexOf("%")!==-1)&&ue.split(",").length<2&&(he=pt(V,"backgroundImage").replace(yt,""),he&&he!=="none")){for(ht=_e.split(" "),Rt=ue.split(" "),Oi.setAttribute("src",he),Ht=2;--Ht>-1;)_e=ht[Ht],kt=_e.indexOf("%")!==-1,kt!==(Rt[Ht].indexOf("%")!==-1)&&(Mt=Ht===0?V.offsetWidth-Oi.width:V.offsetHeight-Oi.height,ht[Ht]=kt?parseFloat(_e)/100*Mt+"px":parseFloat(_e)/Mt*100+"%");_e=ht.join(" ")}return this.parseComplex(V.style,_e,ue,X,St)},formatter:nt}),Di("backgroundSize",{defaultValue:"0 0",formatter:function(V){return V+="",V.substr(0,2)==="co"?V:nt(V.indexOf(" ")===-1?V+" "+V:V)}}),Di("perspective",{defaultValue:"0px",prefix:!0}),Di("perspectiveOrigin",{defaultValue:"50% 50%",prefix:!0}),Di("transformStyle",{prefix:!0}),Di("backfaceVisibility",{prefix:!0}),Di("userSelect",{prefix:!0}),Di("margin",{parser:Si("marginTop,marginRight,marginBottom,marginLeft")}),Di("padding",{parser:Si("paddingTop,paddingRight,paddingBottom,paddingLeft")}),Di("clip",{defaultValue:"rect(0px,0px,0px,0px)",parser:function(V,tt,lt,at,X,St){var ht,Rt,Ht;return 9>E?(Rt=V.currentStyle,Ht=8>E?" ":",",ht="rect("+Rt.clipTop+Ht+Rt.clipRight+Ht+Rt.clipBottom+Ht+Rt.clipLeft+")",tt=this.format(tt).split(",").join(Ht)):(ht=this.format(pt(V,this.p,d,!1,this.dflt)),tt=this.format(tt)),this.parseComplex(V.style,ht,tt,X,St)}}),Di("textShadow",{defaultValue:"0px 0px 0px #999",color:!0,multi:!0}),Di("autoRound,strictUnits",{parser:function(V,tt,lt,at,X){return X}}),Di("border",{defaultValue:"0px solid #000",parser:function(V,tt,lt,at,X,St){var ht=pt(V,"borderTopWidth",d,!1,"0px"),Rt=this.format(tt).split(" "),Ht=Rt[0].replace(F,"");return Ht!=="px"&&(ht=parseFloat(ht)/dt(V,"borderTopWidth",1,Ht)+Ht),this.parseComplex(V.style,this.format(ht+" "+pt(V,"borderTopStyle",d,!1,"solid")+" "+pt(V,"borderTopColor",d,!1,"#000")),Rt.join(" "),X,St)},color:!0,formatter:function(V){var tt=V.split(" ");return tt[0]+" "+(tt[1]||"solid")+" "+(V.match(we)||["#000"])[0]}}),Di("borderWidth",{parser:Si("borderTopWidth,borderRightWidth,borderBottomWidth,borderLeftWidth")}),Di("float,cssFloat,styleFloat",{parser:function(V,tt,lt,at,X,St){var ht=V.style,Rt="cssFloat"in ht?"cssFloat":"styleFloat";return new Ei(ht,Rt,0,0,X,-1,lt,!1,0,ht[Rt],tt)}});var Lh=function(V){var tt,lt=this.t,at=lt.filter||pt(this.data,"filter")||"",X=this.s+this.c*V|0;X===100&&(at.indexOf("atrix(")===-1&&at.indexOf("radient(")===-1&&at.indexOf("oader(")===-1?(lt.removeAttribute("filter"),tt=!pt(this.data,"filter")):(lt.filter=at.replace($,""),tt=!0)),tt||(this.xn1&&(lt.filter=at=at||"alpha(opacity="+X+")"),at.indexOf("pacity")===-1?X===0&&this.xn1||(lt.filter=at+" alpha(opacity="+X+")"):lt.filter=at.replace(j,"opacity="+X))};Di("opacity,alpha,autoAlpha",{defaultValue:"1",parser:function(V,tt,lt,at,X,St){var ht=parseFloat(pt(V,"opacity",d,!1,"1")),Rt=V.style,Ht=lt==="autoAlpha";return typeof tt=="string"&&tt.charAt(1)==="="&&(tt=(tt.charAt(0)==="-"?-1:1)*parseFloat(tt.substr(2))+ht),Ht&&ht===1&&pt(V,"visibility",d)==="hidden"&&tt!==0&&(ht=0),di?X=new Ei(Rt,"opacity",ht,tt-ht,X):(X=new Ei(Rt,"opacity",100*ht,100*(tt-ht),X),X.xn1=Ht?1:0,Rt.zoom=1,X.type=2,X.b="alpha(opacity="+X.s+")",X.e="alpha(opacity="+(X.s+X.c)+")",X.data=V,X.plugin=St,X.setRatio=Lh),Ht&&(X=new Ei(Rt,"visibility",0,0,X,-1,null,!1,0,ht!==0?"inherit":"hidden",tt===0?"hidden":"inherit"),X.xs0="inherit",at._overwriteProps.push(X.n),at._overwriteProps.push(lt)),X}});var go=function(V,tt){tt&&(V.removeProperty?((tt.substr(0,2)==="ms"||tt.substr(0,6)==="webkit")&&(tt="-"+tt),V.removeProperty(tt.replace(It,"-$1").toLowerCase())):V.removeAttribute(tt))},vo=function(V){if(this.t._gsClassPT=this,V===1||V===0){this.t.setAttribute("class",V===0?this.b:this.e);for(var tt=this.data,lt=this.t.style;tt;)tt.v?lt[tt.p]=tt.v:go(lt,tt.p),tt=tt._next;V===1&&this.t._gsClassPT===this&&(this.t._gsClassPT=null)}else this.t.getAttribute("class")!==this.e&&this.t.setAttribute("class",this.e)};Di("className",{parser:function(V,tt,lt,at,X,St,ht){var Rt,Ht,kt,Mt,he,oe=V.getAttribute("class")||"",te=V.style.cssText;if(X=at._classNamePT=new Ei(V,lt,0,0,X,2),X.setRatio=vo,X.pr=-11,o=!0,X.b=oe,Ht=ie(V,d),kt=V._gsClassPT){for(Mt={},he=kt.data;he;)Mt[he.p]=1,he=he._next;kt.setRatio(1)}return V._gsClassPT=X,X.e=tt.charAt(1)!=="="?tt:oe.replace(new RegExp("(?:\\s|^)"+tt.substr(2)+"(?![\\w-])"),"")+(tt.charAt(0)==="+"?" "+tt.substr(2):""),V.setAttribute("class",X.e),Rt=Kt(V,Ht,ie(V),ht,Mt),V.setAttribute("class",oe),X.data=Rt.firstMPT,V.style.cssText=te,X=X.xfirst=at.parse(V,Rt.difs,X,St)}});var Hl=function(V){if((V===1||V===0)&&this.data._totalTime===this.data._totalDuration&&this.data.data!=="isFromStart"){var tt,lt,at,X,St,ht=this.t.style,Rt=y.transform.parse;if(this.e==="all")ht.cssText="",X=!0;else for(tt=this.e.split(" ").join("").split(","),at=tt.length;--at>-1;)lt=tt[at],y[lt]&&(y[lt].parse===Rt?X=!0:lt=lt==="transformOrigin"?mo:y[lt].p),go(ht,lt);X&&(go(ht,Mn),St=this.t._gsTransform,St&&(St.svg&&(this.t.removeAttribute("data-svg-origin"),this.t.removeAttribute("transform")),delete this.t._gsTransform))}};for(Di("clearProps",{parser:function(V,tt,lt,at,X){return X=new Ei(V,lt,0,0,X,2),X.setRatio=Hl,X.e=tt,X.pr=-10,X.data=at._tween,o=!0,X}}),S="bezier,throwProps,physicsProps,physics2D".split(","),on=S.length;on--;)Xs(S[on]);S=m.prototype,S._firstPT=S._lastParsedTransform=S._transform=null,S._onInitTween=function(V,tt,lt,at){if(!V.nodeType)return!1;this._target=P=V,this._tween=lt,this._vars=tt,T=at,A=tt.autoRound,o=!1,c=tt.suffixMap||m.suffixMap,d=Wt(V,""),u=this._overwriteProps;var X,St,ht,Rt,Ht,kt,Mt,he,oe,te=V.style;if(I&&te.zIndex===""&&(X=pt(V,"zIndex",d),(X==="auto"||X==="")&&this._addLazySet(te,"zIndex",0)),typeof tt=="string"&&(Rt=te.cssText,X=ie(V,d),te.cssText=Rt+";"+tt,X=Kt(V,X,ie(V)).difs,!di&&J.test(tt)&&(X.opacity=parseFloat(RegExp.$1)),tt=X,te.cssText=Rt),tt.className?this._firstPT=St=y.className.parse(V,tt.className,"className",this,null,null,tt):this._firstPT=St=this.parse(V,tt,null),this._transformType){for(oe=this._transformType===3,Mn?k&&(I=!0,te.zIndex===""&&(Mt=pt(V,"zIndex",d),(Mt==="auto"||Mt==="")&&this._addLazySet(te,"zIndex",0)),N&&this._addLazySet(te,"WebkitBackfaceVisibility",this._vars.WebkitBackfaceVisibility||(oe?"visible":"hidden"))):te.zoom=1,ht=St;ht&&ht._next;)ht=ht._next;he=new Ei(V,"transform",0,0,null,2),this._linkCSSP(he,null,ht),he.setRatio=Mn?Ph:Gl,he.data=this._transform||us(V,d,!0),he.tween=lt,he.pr=-1,u.pop()}if(o){for(;St;){for(kt=St._next,ht=Rt;ht&&ht.pr>St.pr;)ht=ht._next;(St._prev=ht?ht._prev:Ht)?St._prev._next=St:Rt=St,(St._next=ht)?ht._prev=St:Ht=St,St=kt}this._firstPT=Rt}return!0},S.parse=function(V,tt,lt,at){var X,St,ht,Rt,Ht,kt,Mt,he,oe,te,_e=V.style;for(X in tt){if(kt=tt[X],typeof kt=="function"&&(kt=kt(T,P)),St=y[X])lt=St.parse(V,kt,X,this,lt,at,tt);else{if(X.substr(0,2)==="--"){this._tween._propLookup[X]=this._addTween.call(this._tween,V.style,"setProperty",Wt(V).getPropertyValue(X)+"",kt+"",X,!1,X);continue}Ht=pt(V,X,d)+"",oe=typeof kt=="string",X==="color"||X==="fill"||X==="stroke"||X.indexOf("Color")!==-1||oe&&ct.test(kt)?(oe||(kt=Re(kt),kt=(kt.length>3?"rgba(":"rgb(")+kt.join(",")+")"),lt=or(_e,X,Ht,kt,!0,"transparent",lt,0,at)):oe&&re.test(kt)?lt=or(_e,X,Ht,kt,!0,null,lt,0,at):(ht=parseFloat(Ht),Mt=ht||ht===0?Ht.substr((ht+"").length):"",(Ht===""||Ht==="auto")&&(X==="width"||X==="height"?(ht=ot(V,X,d),Mt="px"):X==="left"||X==="top"?(ht=Dt(V,X,d),Mt="px"):(ht=X!=="opacity"?0:1,Mt="")),te=oe&&kt.charAt(1)==="=",te?(Rt=parseInt(kt.charAt(0)+"1",10),kt=kt.substr(2),Rt*=parseFloat(kt),he=kt.replace(F,"")):(Rt=parseFloat(kt),he=oe?kt.replace(F,""):""),he===""&&(he=X in c?c[X]:Mt),kt=Rt||Rt===0?(te?Rt+ht:Rt)+he:tt[X],Mt!==he&&(he!==""||X==="lineHeight")&&(Rt||Rt===0)&&ht&&(ht=dt(V,X,ht,Mt),he==="%"?(ht/=dt(V,X,100,"%")/100,tt.strictUnits!==!0&&(Ht=ht+"%")):he==="em"||he==="rem"||he==="vw"||he==="vh"?ht/=dt(V,X,1,he):he!=="px"&&(Rt=dt(V,X,Rt,he),he="px"),te&&(Rt||Rt===0)&&(kt=Rt+ht+he)),te&&(Rt+=ht),!ht&&ht!==0||!Rt&&Rt!==0?_e[X]!==void 0&&(kt||kt+""!="NaN"&&kt!=null)?(lt=new Ei(_e,X,Rt||ht||0,0,lt,-1,X,!1,0,Ht,kt),lt.xs0=kt!=="none"||X!=="display"&&X.indexOf("Style")===-1?kt:Ht):mn("invalid "+X+" tween value: "+tt[X]):(lt=new Ei(_e,X,ht,Rt-ht,lt,0,X,A!==!1&&(he==="px"||X==="zIndex"),0,Ht,kt),lt.xs0=he))}at&&lt&&!lt.plugin&&(lt.plugin=at)}return lt},S.setRatio=function(V){var tt,lt,at,X=this._firstPT,St=1e-6;if(V!==1||this._tween._time!==this._tween._duration&&this._tween._time!==0)if(V||this._tween._time!==this._tween._duration&&this._tween._time!==0||this._tween._rawPrevTime===-1e-6)for(;X;){if(tt=X.c*V+X.s,X.r?tt=X.r(tt):St>tt&&tt>-St&&(tt=0),X.type)if(X.type===1)if(at=X.l,at===2)X.t[X.p]=X.xs0+tt+X.xs1+X.xn1+X.xs2;else if(at===3)X.t[X.p]=X.xs0+tt+X.xs1+X.xn1+X.xs2+X.xn2+X.xs3;else if(at===4)X.t[X.p]=X.xs0+tt+X.xs1+X.xn1+X.xs2+X.xn2+X.xs3+X.xn3+X.xs4;else if(at===5)X.t[X.p]=X.xs0+tt+X.xs1+X.xn1+X.xs2+X.xn2+X.xs3+X.xn3+X.xs4+X.xn4+X.xs5;else{for(lt=X.xs0+tt+X.xs1,at=1;at<X.l;at++)lt+=X["xn"+at]+X["xs"+(at+1)];X.t[X.p]=lt}else X.type===-1?X.t[X.p]=X.xs0:X.setRatio&&X.setRatio(V);else X.t[X.p]=tt+X.xs0;X=X._next}else for(;X;)X.type!==2?X.t[X.p]=X.b:X.setRatio(V),X=X._next;else for(;X;){if(X.type!==2)if(X.r&&X.type!==-1)if(tt=X.r(X.s+X.c),X.type){if(X.type===1){for(at=X.l,lt=X.xs0+tt+X.xs1,at=1;at<X.l;at++)lt+=X["xn"+at]+X["xs"+(at+1)];X.t[X.p]=lt}}else X.t[X.p]=tt+X.xs0;else X.t[X.p]=X.e;else X.setRatio(V);X=X._next}},S._enableTransforms=function(V){this._transform=this._transform||us(this._target,d,!0),this._transformType=this._transform.svg&&as||!V&&this._transformType!==3?2:3};var Vl=function(V){this.t[this.p]=this.e,this.data._linkCSSP(this,this._next,null,!0)};S._addLazySet=function(V,tt,lt){var at=this._firstPT=new Ei(V,tt,0,0,this._firstPT,2);at.e=lt,at.setRatio=Vl,at.data=this},S._linkCSSP=function(V,tt,lt,at){return V&&(tt&&(tt._prev=V),V._next&&(V._next._prev=V._prev),V._prev?V._prev._next=V._next:this._firstPT===V&&(this._firstPT=V._next,at=!0),lt?lt._next=V:at||this._firstPT!==null||(this._firstPT=V),V._next=tt,V._prev=lt),V},S._mod=function(V){for(var tt=this._firstPT;tt;)typeof V[tt.p]=="function"&&(tt.r=V[tt.p]),tt=tt._next},S._kill=function(V){var tt,lt,at,X=V;if(V.autoAlpha||V.alpha){X={};for(lt in V)X[lt]=V[lt];X.opacity=1,X.autoAlpha&&(X.visibility=1)}for(V.className&&(tt=this._classNamePT)&&(at=tt.xfirst,at&&at._prev?this._linkCSSP(at._prev,tt._next,at._prev._prev):at===this._firstPT&&(this._firstPT=tt._next),tt._next&&this._linkCSSP(tt._next,tt._next._next,at._prev),this._classNamePT=null),tt=this._firstPT;tt;)tt.plugin&&tt.plugin!==lt&&tt.plugin._kill&&(tt.plugin._kill(V),lt=tt.plugin),tt=tt._next;return x.prototype._kill.call(this,X)};var Yr=function(V,tt,lt){var at,X,St,ht;if(V.slice)for(X=V.length;--X>-1;)Yr(V[X],tt,lt);else for(at=V.childNodes,X=at.length;--X>-1;)St=at[X],ht=St.type,St.style&&(tt.push(ie(St)),lt&&lt.push(St)),ht!==1&&ht!==9&&ht!==11||!St.childNodes.length||Yr(St,tt,lt)};return m.cascadeTo=function(V,tt,lt){var at,X,St,ht,Rt=l.to(V,tt,lt),Ht=[Rt],kt=[],Mt=[],he=[],oe=l._internals.reservedProps;for(V=Rt._targets||Rt.target,Yr(V,kt,he),Rt.render(tt,!0,!0),Yr(V,Mt),Rt.render(0,!0,!0),Rt._enabled(!0),at=he.length;--at>-1;)if(X=Kt(he[at],kt[at],Mt[at]),X.firstMPT){X=X.difs;for(St in lt)oe[St]&&(X[St]=lt[St]);ht={};for(St in X)ht[St]=kt[at][St];Ht.push(l.fromTo(he[at],tt,ht,X))}return Ht},x.activate([m]),m},!0),function(){var x=ln._gsDefine.plugin({propName:"roundProps",version:"1.7.0",priority:-1,API:2,init:function(d,u,m){return this._tween=m,!0}}),l=function(d){var u=1>d?Math.pow(10,(d+"").length-2):1;return function(m){return(Math.round(m/d)*d*u|0)/u}},o=function(d,u){for(;d;)d.f||d.blob||(d.m=u||Math.round),d=d._next},c=x.prototype;c._onInitAllProps=function(){var d,u,m,_,y=this._tween,S=y.vars.roundProps,A={},I=y._propLookup.roundProps;if(typeof S!="object"||S.push)for(typeof S=="string"&&(S=S.split(",")),m=S.length;--m>-1;)A[S[m]]=Math.round;else for(_ in S)A[_]=l(S[_]);for(_ in A)for(d=y._firstPT;d;)u=d._next,d.pg?d.t._mod(A):d.n===_&&(d.f===2&&d.t?o(d.t._firstPT,A[_]):(this._add(d.t,_,d.s,d.c,A[_]),u&&(u._prev=d._prev),d._prev?d._prev._next=u:y._firstPT===d&&(y._firstPT=u),d._next=d._prev=null,y._propLookup[_]=I)),d=u;return!1},c._add=function(d,u,m,_,y){this._addTween(d,u,m,m+_,u,y||Math.round),this._overwriteProps.push(u)}}(),function(){ln._gsDefine.plugin({propName:"attr",API:2,version:"0.6.1",init:function(x,l,o,c){var d,u;if(typeof x.setAttribute!="function")return!1;for(d in l)u=l[d],typeof u=="function"&&(u=u(c,x)),this._addTween(x,"setAttribute",x.getAttribute(d)+"",u+"",d,!1,d),this._overwriteProps.push(d);return!0}})}(),ln._gsDefine.plugin({propName:"directionalRotation",version:"0.3.1",API:2,init:function(x,l,o,c){typeof l!="object"&&(l={rotation:l}),this.finals={};var d,u,m,_,y,S,A=l.useRadians===!0?2*Math.PI:360,I=1e-6;for(d in l)d!=="useRadians"&&(_=l[d],typeof _=="function"&&(_=_(c,x)),S=(_+"").split("_"),u=S[0],m=parseFloat(typeof x[d]!="function"?x[d]:x[d.indexOf("set")||typeof x["get"+d.substr(3)]!="function"?d:"get"+d.substr(3)]()),_=this.finals[d]=typeof u=="string"&&u.charAt(1)==="="?m+parseInt(u.charAt(0)+"1",10)*Number(u.substr(2)):Number(u)||0,y=_-m,S.length&&(u=S.join("_"),u.indexOf("short")!==-1&&(y%=A,y!==y%(A/2)&&(y=0>y?y+A:y-A)),u.indexOf("_cw")!==-1&&0>y?y=(y+9999999999*A)%A-(y/A|0)*A:u.indexOf("ccw")!==-1&&y>0&&(y=(y-9999999999*A)%A-(y/A|0)*A)),(y>I||-I>y)&&(this._addTween(x,d,m,m+y,d),this._overwriteProps.push(d)));return!0},set:function(x){var l;if(x!==1)this._super.setRatio.call(this,x);else for(l=this._firstPT;l;)l.f?l.t[l.p](this.finals[l.p]):l.t[l.p]=this.finals[l.p],l=l._next}})._autoCSS=!0,ln._gsDefine("easing.Back",["easing.Ease"],function(x){var l,o,c,d,u=ln.GreenSockGlobals||ln,m=u.com.greensock,_=2*Math.PI,y=Math.PI/2,S=m._class,A=function(M,R){var b=S("easing."+M,function(){},!0),U=b.prototype=new x;return U.constructor=b,U.getRatio=R,b},I=x.register||function(){},k=function(M,R,b,U,F){var j=S("easing."+M,{easeOut:new R,easeIn:new b,easeInOut:new U},!0);return I(j,M),j},D=function(M,R,b){this.t=M,this.v=R,b&&(this.next=b,b.prev=this,this.c=b.v-R,this.gap=b.t-M)},N=function(M,R){var b=S("easing."+M,function(F){this._p1=F||F===0?F:1.70158,this._p2=1.525*this._p1},!0),U=b.prototype=new x;return U.constructor=b,U.getRatio=R,U.config=function(F){return new b(F)},b},E=k("Back",N("BackOut",function(M){return(M-=1)*M*((this._p1+1)*M+this._p1)+1}),N("BackIn",function(M){return M*M*((this._p1+1)*M-this._p1)}),N("BackInOut",function(M){return(M*=2)<1?.5*M*M*((this._p2+1)*M-this._p2):.5*((M-=2)*M*((this._p2+1)*M+this._p2)+2)})),P=S("easing.SlowMo",function(M,R,b){R=R||R===0?R:.7,M==null?M=.7:M>1&&(M=1),this._p=M!==1?R:0,this._p1=(1-M)/2,this._p2=M,this._p3=this._p1+this._p2,this._calcEnd=b===!0},!0),T=P.prototype=new x;return T.constructor=P,T.getRatio=function(M){var R=M+(.5-M)*this._p;return M<this._p1?this._calcEnd?1-(M=1-M/this._p1)*M:R-(M=1-M/this._p1)*M*M*M*R:M>this._p3?this._calcEnd?M===1?0:1-(M=(M-this._p3)/this._p1)*M:R+(M-R)*(M=(M-this._p3)/this._p1)*M*M*M:this._calcEnd?1:R},P.ease=new P(.7,.7),T.config=P.config=function(M,R,b){return new P(M,R,b)},l=S("easing.SteppedEase",function(M,R){M=M||1,this._p1=1/M,this._p2=M+(R?0:1),this._p3=R?1:0},!0),T=l.prototype=new x,T.constructor=l,T.getRatio=function(M){return 0>M?M=0:M>=1&&(M=.999999999),((this._p2*M|0)+this._p3)*this._p1},T.config=l.config=function(M,R){return new l(M,R)},o=S("easing.ExpoScaleEase",function(M,R,b){this._p1=Math.log(R/M),this._p2=R-M,this._p3=M,this._ease=b},!0),T=o.prototype=new x,T.constructor=o,T.getRatio=function(M){return this._ease&&(M=this._ease.getRatio(M)),(this._p3*Math.exp(this._p1*M)-this._p3)/this._p2},T.config=o.config=function(M,R,b){return new o(M,R,b)},c=S("easing.RoughEase",function(M){M=M||{};for(var R,b,U,F,j,J,$=M.taper||"none",ct=[],It=0,et=0|(M.points||20),yt=et,G=M.randomize!==!1,Pt=M.clamp===!0,Et=M.template instanceof x?M.template:null,Ct=typeof M.strength=="number"?.4*M.strength:.4;--yt>-1;)R=G?Math.random():1/et*yt,b=Et?Et.getRatio(R):R,$==="none"?U=Ct:$==="out"?(F=1-R,U=F*F*Ct):$==="in"?U=R*R*Ct:.5>R?(F=2*R,U=F*F*.5*Ct):(F=2*(1-R),U=F*F*.5*Ct),G?b+=Math.random()*U-.5*U:yt%2?b+=.5*U:b-=.5*U,Pt&&(b>1?b=1:0>b&&(b=0)),ct[It++]={x:R,y:b};for(ct.sort(function(fe,re){return fe.x-re.x}),J=new D(1,1,null),yt=et;--yt>-1;)j=ct[yt],J=new D(j.x,j.y,J);this._prev=new D(0,0,J.t!==0?J:J.next)},!0),T=c.prototype=new x,T.constructor=c,T.getRatio=function(M){var R=this._prev;if(M>R.t){for(;R.next&&M>=R.t;)R=R.next;R=R.prev}else for(;R.prev&&M<=R.t;)R=R.prev;return this._prev=R,R.v+(M-R.t)/R.gap*R.c},T.config=function(M){return new c(M)},c.ease=new c,k("Bounce",A("BounceOut",function(M){return 1/2.75>M?7.5625*M*M:2/2.75>M?7.5625*(M-=1.5/2.75)*M+.75:2.5/2.75>M?7.5625*(M-=2.25/2.75)*M+.9375:7.5625*(M-=2.625/2.75)*M+.984375}),A("BounceIn",function(M){return(M=1-M)<1/2.75?1-7.5625*M*M:2/2.75>M?1-(7.5625*(M-=1.5/2.75)*M+.75):2.5/2.75>M?1-(7.5625*(M-=2.25/2.75)*M+.9375):1-(7.5625*(M-=2.625/2.75)*M+.984375)}),A("BounceInOut",function(M){var R=.5>M;return M=R?1-2*M:2*M-1,M=1/2.75>M?7.5625*M*M:2/2.75>M?7.5625*(M-=1.5/2.75)*M+.75:2.5/2.75>M?7.5625*(M-=2.25/2.75)*M+.9375:7.5625*(M-=2.625/2.75)*M+.984375,R?.5*(1-M):.5*M+.5})),k("Circ",A("CircOut",function(M){return Math.sqrt(1-(M-=1)*M)}),A("CircIn",function(M){return-(Math.sqrt(1-M*M)-1)}),A("CircInOut",function(M){return(M*=2)<1?-.5*(Math.sqrt(1-M*M)-1):.5*(Math.sqrt(1-(M-=2)*M)+1)})),d=function(M,R,b){var U=S("easing."+M,function(j,J){this._p1=j>=1?j:1,this._p2=(J||b)/(1>j?j:1),this._p3=this._p2/_*(Math.asin(1/this._p1)||0),this._p2=_/this._p2},!0),F=U.prototype=new x;return F.constructor=U,F.getRatio=R,F.config=function(j,J){return new U(j,J)},U},k("Elastic",d("ElasticOut",function(M){return this._p1*Math.pow(2,-10*M)*Math.sin((M-this._p3)*this._p2)+1},.3),d("ElasticIn",function(M){return-(this._p1*Math.pow(2,10*(M-=1))*Math.sin((M-this._p3)*this._p2))},.3),d("ElasticInOut",function(M){return(M*=2)<1?-.5*(this._p1*Math.pow(2,10*(M-=1))*Math.sin((M-this._p3)*this._p2)):this._p1*Math.pow(2,-10*(M-=1))*Math.sin((M-this._p3)*this._p2)*.5+1},.45)),k("Expo",A("ExpoOut",function(M){return 1-Math.pow(2,-10*M)}),A("ExpoIn",function(M){return Math.pow(2,10*(M-1))-.001}),A("ExpoInOut",function(M){return(M*=2)<1?.5*Math.pow(2,10*(M-1)):.5*(2-Math.pow(2,-10*(M-1)))})),k("Sine",A("SineOut",function(M){return Math.sin(M*y)}),A("SineIn",function(M){return-Math.cos(M*y)+1}),A("SineInOut",function(M){return-.5*(Math.cos(Math.PI*M)-1)})),S("easing.EaseLookup",{find:function(M){return x.map[M]}},!0),I(u.SlowMo,"SlowMo","ease,"),I(c,"RoughEase","ease,"),I(l,"SteppedEase","ease,"),E},!0)}),ln._gsDefine&&ln._gsQueue.pop()(),function(x,l){var o={},c=x.document,d=x.GreenSockGlobals=x.GreenSockGlobals||x,u=d[l];if(u)return typeof module<"u"&&module.exports&&(module.exports=u),u;var m,_,y,S,A,I=function(z){var Q,ot=z.split("."),nt=d;for(Q=0;Q<ot.length;Q++)nt[ot[Q]]=nt=nt[ot[Q]]||{};return nt},k=I("com.greensock"),D=1e-10,N=function(z){var Q,ot=[],nt=z.length;for(Q=0;Q!==nt;ot.push(z[Q++]));return ot},E=function(){},P=function(){var z=Object.prototype.toString,Q=z.call([]);return function(ot){return ot!=null&&(ot instanceof Array||typeof ot=="object"&&!!ot.push&&z.call(ot)===Q)}}(),T={},M=function(z,Q,ot,nt){this.sc=T[z]?T[z].sc:[],T[z]=this,this.gsClass=null,this.func=ot;var vt=[];this.check=function(Gt){for(var Xt,jt,Ne,Re,ge=Q.length,we=ge;--ge>-1;)(Xt=T[Q[ge]]||new M(Q[ge],[])).gsClass?(vt[ge]=Xt.gsClass,we--):Gt&&Xt.sc.push(this);if(we===0&&ot){if(jt=("com.greensock."+z).split("."),Ne=jt.pop(),Re=I(jt.join("."))[Ne]=this.gsClass=ot.apply(ot,vt),nt)if(d[Ne]=o[Ne]=Re,typeof module<"u"&&module.exports)if(z===l){module.exports=o[l]=Re;for(ge in o)Re[ge]=o[ge]}else o[l]&&(o[l][Ne]=Re);else typeof define=="function"&&define.amd&&define((x.GreenSockAMDPath?x.GreenSockAMDPath+"/":"")+z.split(".").pop(),[],function(){return Re});for(ge=0;ge<this.sc.length;ge++)this.sc[ge].check()}},this.check(!0)},R=x._gsDefine=function(z,Q,ot,nt){return new M(z,Q,ot,nt)},b=k._class=function(z,Q,ot){return Q=Q||function(){},R(z,[],function(){return Q},ot),Q};R.globals=d;var U=[0,0,1,1],F=b("easing.Ease",function(z,Q,ot,nt){this._func=z,this._type=ot||0,this._power=nt||0,this._params=Q?U.concat(Q):U},!0),j=F.map={},J=F.register=function(z,Q,ot,nt){for(var vt,Gt,Xt,jt,Ne=Q.split(","),Re=Ne.length,ge=(ot||"easeIn,easeOut,easeInOut").split(",");--Re>-1;)for(Gt=Ne[Re],vt=nt?b("easing."+Gt,null,!0):k.easing[Gt]||{},Xt=ge.length;--Xt>-1;)jt=ge[Xt],j[Gt+"."+jt]=j[jt+Gt]=vt[jt]=z.getRatio?z:z[jt]||new z};for(y=F.prototype,y._calcEnd=!1,y.getRatio=function(z){if(this._func)return this._params[0]=z,this._func.apply(null,this._params);var Q=this._type,ot=this._power,nt=Q===1?1-z:Q===2?z:.5>z?2*z:2*(1-z);return ot===1?nt*=nt:ot===2?nt*=nt*nt:ot===3?nt*=nt*nt*nt:ot===4&&(nt*=nt*nt*nt*nt),Q===1?1-nt:Q===2?nt:.5>z?nt/2:1-nt/2},m=["Linear","Quad","Cubic","Quart","Quint,Strong"],_=m.length;--_>-1;)y=m[_]+",Power"+_,J(new F(null,null,1,_),y,"easeOut",!0),J(new F(null,null,2,_),y,"easeIn"+(_===0?",easeNone":"")),J(new F(null,null,3,_),y,"easeInOut");j.linear=k.easing.Linear.easeIn,j.swing=k.easing.Quad.easeInOut;var $=b("events.EventDispatcher",function(z){this._listeners={},this._eventTarget=z||this});y=$.prototype,y.addEventListener=function(z,Q,ot,nt,vt){vt=vt||0;var Gt,Xt,jt=this._listeners[z],Ne=0;for(this!==S||A||S.wake(),jt==null&&(this._listeners[z]=jt=[]),Xt=jt.length;--Xt>-1;)Gt=jt[Xt],Gt.c===Q&&Gt.s===ot?jt.splice(Xt,1):Ne===0&&Gt.pr<vt&&(Ne=Xt+1);jt.splice(Ne,0,{c:Q,s:ot,up:nt,pr:vt})},y.removeEventListener=function(z,Q){var ot,nt=this._listeners[z];if(nt){for(ot=nt.length;--ot>-1;)if(nt[ot].c===Q)return void nt.splice(ot,1)}},y.dispatchEvent=function(z){var Q,ot,nt,vt=this._listeners[z];if(vt)for(Q=vt.length,Q>1&&(vt=vt.slice(0)),ot=this._eventTarget;--Q>-1;)nt=vt[Q],nt&&(nt.up?nt.c.call(nt.s||ot,{type:z,target:ot}):nt.c.call(nt.s||ot))};var ct=x.requestAnimationFrame,It=x.cancelAnimationFrame,et=Date.now||function(){return new Date().getTime()},yt=et();for(m=["ms","moz","webkit","o"],_=m.length;--_>-1&&!ct;)ct=x[m[_]+"RequestAnimationFrame"],It=x[m[_]+"CancelAnimationFrame"]||x[m[_]+"CancelRequestAnimationFrame"];b("Ticker",function(z,Q){var ot,nt,vt,Gt,Xt,jt=this,Ne=et(),Re=Q!==!1&&ct?"auto":!1,ge=500,we=33,_i="tick",Si=function(ni){var Ei,qr,or=et()-yt;or>ge&&(Ne+=or-we),yt+=or,jt.time=(yt-Ne)/1e3,Ei=jt.time-Xt,(!ot||Ei>0||ni===!0)&&(jt.frame++,Xt+=Ei+(Ei>=Gt?.004:Gt-Ei),qr=!0),ni!==!0&&(vt=nt(Si)),qr&&jt.dispatchEvent(_i)};$.call(jt),jt.time=jt.frame=0,jt.tick=function(){Si(!0)},jt.lagSmoothing=function(ni,Ei){return arguments.length?(ge=ni||1/D,void(we=Math.min(Ei,ge,0))):1/D>ge},jt.sleep=function(){vt!=null&&(Re&&It?It(vt):clearTimeout(vt),nt=E,vt=null,jt===S&&(A=!1))},jt.wake=function(ni){vt!==null?jt.sleep():ni?Ne+=-yt+(yt=et()):jt.frame>10&&(yt=et()-ge+5),nt=ot===0?E:Re&&ct?ct:function(Ei){return setTimeout(Ei,1e3*(Xt-jt.time)+1|0)},jt===S&&(A=!0),Si(2)},jt.fps=function(ni){return arguments.length?(ot=ni,Gt=1/(ot||60),Xt=this.time+Gt,void jt.wake()):ot},jt.useRAF=function(ni){return arguments.length?(jt.sleep(),Re=ni,void jt.fps(ot)):Re},jt.fps(z),setTimeout(function(){Re==="auto"&&jt.frame<5&&(c||{}).visibilityState!=="hidden"&&jt.useRAF(!1)},1500)}),y=k.Ticker.prototype=new k.events.EventDispatcher,y.constructor=k.Ticker;var G=b("core.Animation",function(z,Q){if(this.vars=Q=Q||{},this._duration=this._totalDuration=z||0,this._delay=Number(Q.delay)||0,this._timeScale=1,this._active=Q.immediateRender===!0,this.data=Q.data,this._reversed=Q.reversed===!0,W){A||S.wake();var ot=this.vars.useFrames?Qi:W;ot.add(this,ot._time),this.vars.paused&&this.paused(!0)}});S=G.ticker=new k.Ticker,y=G.prototype,y._dirty=y._gc=y._initted=y._paused=!1,y._totalTime=y._time=0,y._rawPrevTime=-1,y._next=y._last=y._onUpdate=y._timeline=y.timeline=null,y._paused=!1;var Pt=function(){A&&et()-yt>2e3&&((c||{}).visibilityState!=="hidden"||!S.lagSmoothing())&&S.wake();var z=setTimeout(Pt,2e3);z.unref&&z.unref()};Pt(),y.play=function(z,Q){return z!=null&&this.seek(z,Q),this.reversed(!1).paused(!1)},y.pause=function(z,Q){return z!=null&&this.seek(z,Q),this.paused(!0)},y.resume=function(z,Q){return z!=null&&this.seek(z,Q),this.paused(!1)},y.seek=function(z,Q){return this.totalTime(Number(z),Q!==!1)},y.restart=function(z,Q){return this.reversed(!1).paused(!1).totalTime(z?-this._delay:0,Q!==!1,!0)},y.reverse=function(z,Q){return z!=null&&this.seek(z||this.totalDuration(),Q),this.reversed(!0).paused(!1)},y.render=function(z,Q,ot){},y.invalidate=function(){return this._time=this._totalTime=0,this._initted=this._gc=!1,this._rawPrevTime=-1,(this._gc||!this.timeline)&&this._enabled(!0),this},y.isActive=function(){var z,Q=this._timeline,ot=this._startTime;return!Q||!this._gc&&!this._paused&&Q.isActive()&&(z=Q.rawTime(!0))>=ot&&z<ot+this.totalDuration()/this._timeScale-1e-7},y._enabled=function(z,Q){return A||S.wake(),this._gc=!z,this._active=this.isActive(),Q!==!0&&(z&&!this.timeline?this._timeline.add(this,this._startTime-this._delay):!z&&this.timeline&&this._timeline._remove(this,!0)),!1},y._kill=function(z,Q){return this._enabled(!1,!1)},y.kill=function(z,Q){return this._kill(z,Q),this},y._uncache=function(z){for(var Q=z?this:this.timeline;Q;)Q._dirty=!0,Q=Q.timeline;return this},y._swapSelfInParams=function(z){for(var Q=z.length,ot=z.concat();--Q>-1;)z[Q]==="{self}"&&(ot[Q]=this);return ot},y._callback=function(z){var Q=this.vars,ot=Q[z],nt=Q[z+"Params"],vt=Q[z+"Scope"]||Q.callbackScope||this,Gt=nt?nt.length:0;switch(Gt){case 0:ot.call(vt);break;case 1:ot.call(vt,nt[0]);break;case 2:ot.call(vt,nt[0],nt[1]);break;default:ot.apply(vt,nt)}},y.eventCallback=function(z,Q,ot,nt){if((z||"").substr(0,2)==="on"){var vt=this.vars;if(arguments.length===1)return vt[z];Q==null?delete vt[z]:(vt[z]=Q,vt[z+"Params"]=P(ot)&&ot.join("").indexOf("{self}")!==-1?this._swapSelfInParams(ot):ot,vt[z+"Scope"]=nt),z==="onUpdate"&&(this._onUpdate=Q)}return this},y.delay=function(z){return arguments.length?(this._timeline.smoothChildTiming&&this.startTime(this._startTime+z-this._delay),this._delay=z,this):this._delay},y.duration=function(z){return arguments.length?(this._duration=this._totalDuration=z,this._uncache(!0),this._timeline.smoothChildTiming&&this._time>0&&this._time<this._duration&&z!==0&&this.totalTime(this._totalTime*(z/this._duration),!0),this):(this._dirty=!1,this._duration)},y.totalDuration=function(z){return this._dirty=!1,arguments.length?this.duration(z):this._totalDuration},y.time=function(z,Q){return arguments.length?(this._dirty&&this.totalDuration(),this.totalTime(z>this._duration?this._duration:z,Q)):this._time},y.totalTime=function(z,Q,ot){if(A||S.wake(),!arguments.length)return this._totalTime;if(this._timeline){if(0>z&&!ot&&(z+=this.totalDuration()),this._timeline.smoothChildTiming){this._dirty&&this.totalDuration();var nt=this._totalDuration,vt=this._timeline;if(z>nt&&!ot&&(z=nt),this._startTime=(this._paused?this._pauseTime:vt._time)-(this._reversed?nt-z:z)/this._timeScale,vt._dirty||this._uncache(!1),vt._timeline)for(;vt._timeline;)vt._timeline._time!==(vt._startTime+vt._totalTime)/vt._timeScale&&vt.totalTime(vt._totalTime,!0),vt=vt._timeline}this._gc&&this._enabled(!0,!1),(this._totalTime!==z||this._duration===0)&&(Ft.length&&Wt(),this.render(z,Q,!1),Ft.length&&Wt())}return this},y.progress=y.totalProgress=function(z,Q){var ot=this.duration();return arguments.length?this.totalTime(ot*z,Q):ot?this._time/ot:this.ratio},y.startTime=function(z){return arguments.length?(z!==this._startTime&&(this._startTime=z,this.timeline&&this.timeline._sortChildren&&this.timeline.add(this,z-this._delay)),this):this._startTime},y.endTime=function(z){return this._startTime+(z!=0?this.totalDuration():this.duration())/this._timeScale},y.timeScale=function(z){if(!arguments.length)return this._timeScale;var Q,ot;for(z=z||D,this._timeline&&this._timeline.smoothChildTiming&&(Q=this._pauseTime,ot=Q||Q===0?Q:this._timeline.totalTime(),this._startTime=ot-(ot-this._startTime)*this._timeScale/z),this._timeScale=z,ot=this.timeline;ot&&ot.timeline;)ot._dirty=!0,ot.totalDuration(),ot=ot.timeline;return this},y.reversed=function(z){return arguments.length?(z!=this._reversed&&(this._reversed=z,this.totalTime(this._timeline&&!this._timeline.smoothChildTiming?this.totalDuration()-this._totalTime:this._totalTime,!0)),this):this._reversed},y.paused=function(z){if(!arguments.length)return this._paused;var Q,ot,nt=this._timeline;return z!=this._paused&&nt&&(A||z||S.wake(),Q=nt.rawTime(),ot=Q-this._pauseTime,!z&&nt.smoothChildTiming&&(this._startTime+=ot,this._uncache(!1)),this._pauseTime=z?Q:null,this._paused=z,this._active=this.isActive(),!z&&ot!==0&&this._initted&&this.duration()&&(Q=nt.smoothChildTiming?this._totalTime:(Q-this._startTime)/this._timeScale,this.render(Q,Q===this._totalTime,!0))),this._gc&&!z&&this._enabled(!0,!1),this};var Et=b("core.SimpleTimeline",function(z){G.call(this,0,z),this.autoRemoveChildren=this.smoothChildTiming=!0});y=Et.prototype=new G,y.constructor=Et,y.kill()._gc=!1,y._first=y._last=y._recent=null,y._sortChildren=!1,y.add=y.insert=function(z,Q,ot,nt){var vt,Gt;if(z._startTime=Number(Q||0)+z._delay,z._paused&&this!==z._timeline&&(z._pauseTime=this.rawTime()-(z._timeline.rawTime()-z._pauseTime)),z.timeline&&z.timeline._remove(z,!0),z.timeline=z._timeline=this,z._gc&&z._enabled(!0,!0),vt=this._last,this._sortChildren)for(Gt=z._startTime;vt&&vt._startTime>Gt;)vt=vt._prev;return vt?(z._next=vt._next,vt._next=z):(z._next=this._first,this._first=z),z._next?z._next._prev=z:this._last=z,z._prev=vt,this._recent=z,this._timeline&&this._uncache(!0),this},y._remove=function(z,Q){return z.timeline===this&&(Q||z._enabled(!1,!0),z._prev?z._prev._next=z._next:this._first===z&&(this._first=z._next),z._next?z._next._prev=z._prev:this._last===z&&(this._last=z._prev),z._next=z._prev=z.timeline=null,z===this._recent&&(this._recent=this._last),this._timeline&&this._uncache(!0)),this},y.render=function(z,Q,ot){var nt,vt=this._first;for(this._totalTime=this._time=this._rawPrevTime=z;vt;)nt=vt._next,(vt._active||z>=vt._startTime&&!vt._paused&&!vt._gc)&&(vt._reversed?vt.render((vt._dirty?vt.totalDuration():vt._totalDuration)-(z-vt._startTime)*vt._timeScale,Q,ot):vt.render((z-vt._startTime)*vt._timeScale,Q,ot)),vt=nt},y.rawTime=function(){return A||S.wake(),this._totalTime};var Ct=b("TweenLite",function(z,Q,ot){if(G.call(this,Q,ot),this.render=Ct.prototype.render,z==null)throw"Cannot tween a null target.";this.target=z=typeof z!="string"?z:Ct.selector(z)||z;var nt,vt,Gt,Xt=z.jquery||z.length&&z!==x&&z[0]&&(z[0]===x||z[0].nodeType&&z[0].style&&!z.nodeType),jt=this.vars.overwrite;if(this._overwrite=jt=jt==null?mn[Ct.defaultOverwrite]:typeof jt=="number"?jt>>0:mn[jt],(Xt||z instanceof Array||z.push&&P(z))&&typeof z[0]!="number")for(this._targets=Gt=N(z),this._propLookup=[],this._siblings=[],nt=0;nt<Gt.length;nt++)vt=Gt[nt],vt?typeof vt!="string"?vt.length&&vt!==x&&vt[0]&&(vt[0]===x||vt[0].nodeType&&vt[0].style&&!vt.nodeType)?(Gt.splice(nt--,1),this._targets=Gt=Gt.concat(N(vt))):(this._siblings[nt]=pt(vt,this,!1),jt===1&&this._siblings[nt].length>1&&Dt(vt,this,null,1,this._siblings[nt])):(vt=Gt[nt--]=Ct.selector(vt),typeof vt=="string"&&Gt.splice(nt+1,1)):Gt.splice(nt--,1);else this._propLookup={},this._siblings=pt(z,this,!1),jt===1&&this._siblings.length>1&&Dt(z,this,null,1,this._siblings);(this.vars.immediateRender||Q===0&&this._delay===0&&this.vars.immediateRender!==!1)&&(this._time=-D,this.render(Math.min(0,-this._delay)))},!0),fe=function(z){return z&&z.length&&z!==x&&z[0]&&(z[0]===x||z[0].nodeType&&z[0].style&&!z.nodeType)},re=function(z,Q){var ot,nt={};for(ot in z)Ii[ot]||ot in Q&&ot!=="transform"&&ot!=="x"&&ot!=="y"&&ot!=="width"&&ot!=="height"&&ot!=="className"&&ot!=="border"||!(!Oe[ot]||Oe[ot]&&Oe[ot]._autoCSS)||(nt[ot]=z[ot],delete z[ot]);z.css=nt};y=Ct.prototype=new G,y.constructor=Ct,y.kill()._gc=!1,y.ratio=0,y._firstPT=y._targets=y._overwrittenProps=y._startAt=null,y._notifyPluginsOfEnabled=y._lazy=!1,Ct.version="2.0.2",Ct.defaultEase=y._ease=new F(null,null,1,1),Ct.defaultOverwrite="auto",Ct.ticker=S,Ct.autoSleep=120,Ct.lagSmoothing=function(z,Q){S.lagSmoothing(z,Q)},Ct.selector=x.$||x.jQuery||function(z){var Q=x.$||x.jQuery;return Q?(Ct.selector=Q,Q(z)):(c||(c=x.document),c?c.querySelectorAll?c.querySelectorAll(z):c.getElementById(z.charAt(0)==="#"?z.substr(1):z):z)};var Ft=[],Ot={},Bt=/(?:(-|-=|\+=)?\d*\.?\d*(?:e[\-+]?\d+)?)[0-9]/gi,ke=/[\+-]=-?[\.\d]/,ce=function(z){for(var Q,ot=this._firstPT,nt=1e-6;ot;)Q=ot.blob?z===1&&this.end!=null?this.end:z?this.join(""):this.start:ot.c*z+ot.s,ot.m?Q=ot.m.call(this._tween,Q,this._target||ot.t,this._tween):nt>Q&&Q>-nt&&!ot.blob&&(Q=0),ot.f?ot.fp?ot.t[ot.p](ot.fp,Q):ot.t[ot.p](Q):ot.t[ot.p]=Q,ot=ot._next},Yt=function(z,Q,ot,nt){var vt,Gt,Xt,jt,Ne,Re,ge,we=[],_i=0,Si="",ni=0;for(we.start=z,we.end=Q,z=we[0]=z+"",Q=we[1]=Q+"",ot&&(ot(we),z=we[0],Q=we[1]),we.length=0,vt=z.match(Bt)||[],Gt=Q.match(Bt)||[],nt&&(nt._next=null,nt.blob=1,we._firstPT=we._applyPT=nt),Ne=Gt.length,jt=0;Ne>jt;jt++)ge=Gt[jt],Re=Q.substr(_i,Q.indexOf(ge,_i)-_i),Si+=Re||!jt?Re:",",_i+=Re.length,ni?ni=(ni+1)%5:Re.substr(-5)==="rgba("&&(ni=1),ge===vt[jt]||vt.length<=jt?Si+=ge:(Si&&(we.push(Si),Si=""),Xt=parseFloat(vt[jt]),we.push(Xt),we._firstPT={_next:we._firstPT,t:we,p:we.length-1,s:Xt,c:(ge.charAt(1)==="="?parseInt(ge.charAt(0)+"1",10)*parseFloat(ge.substr(2)):parseFloat(ge)-Xt)||0,f:0,m:ni&&4>ni?Math.round:0}),_i+=ge.length;return Si+=Q.substr(_i),Si&&we.push(Si),we.setRatio=ce,ke.test(Q)&&(we.end=null),we},$e=function(z,Q,ot,nt,vt,Gt,Xt,jt,Ne){typeof nt=="function"&&(nt=nt(Ne||0,z));var Re,ge=typeof z[Q],we=ge!=="function"?"":Q.indexOf("set")||typeof z["get"+Q.substr(3)]!="function"?Q:"get"+Q.substr(3),_i=ot!=="get"?ot:we?Xt?z[we](Xt):z[we]():z[Q],Si=typeof nt=="string"&&nt.charAt(1)==="=",ni={t:z,p:Q,s:_i,f:ge==="function",pg:0,n:vt||Q,m:Gt?typeof Gt=="function"?Gt:Math.round:0,pr:0,c:Si?parseInt(nt.charAt(0)+"1",10)*parseFloat(nt.substr(2)):parseFloat(nt)-_i||0};return(typeof _i!="number"||typeof nt!="number"&&!Si)&&(Xt||isNaN(_i)||!Si&&isNaN(nt)||typeof _i=="boolean"||typeof nt=="boolean"?(ni.fp=Xt,Re=Yt(_i,Si?parseFloat(ni.s)+ni.c+(ni.s+"").replace(/[0-9\-\.]/g,""):nt,jt||Ct.defaultStringFilter,ni),ni={t:Re,p:"setRatio",s:0,c:1,f:2,pg:0,n:vt||Q,pr:0,m:0}):(ni.s=parseFloat(_i),Si||(ni.c=parseFloat(nt)-ni.s||0))),ni.c?((ni._next=this._firstPT)&&(ni._next._prev=ni),this._firstPT=ni,ni):void 0},Oi=Ct._internals={isArray:P,isSelector:fe,lazyTweens:Ft,blobDif:Yt},Oe=Ct._plugins={},Ge=Oi.tweenLookup={},di=0,Ii=Oi.reservedProps={ease:1,delay:1,overwrite:1,onComplete:1,onCompleteParams:1,onCompleteScope:1,useFrames:1,runBackwards:1,startAt:1,onUpdate:1,onUpdateParams:1,onUpdateScope:1,onStart:1,onStartParams:1,onStartScope:1,onReverseComplete:1,onReverseCompleteParams:1,onReverseCompleteScope:1,onRepeat:1,onRepeatParams:1,onRepeatScope:1,easeParams:1,yoyo:1,immediateRender:1,repeat:1,repeatDelay:1,data:1,paused:1,reversed:1,autoCSS:1,lazy:1,onOverwrite:1,callbackScope:1,stringFilter:1,id:1,yoyoEase:1},mn={none:0,all:1,auto:2,concurrent:3,allOnStart:4,preexisting:5,true:1,false:0},Qi=G._rootFramesTimeline=new Et,W=G._rootTimeline=new Et,Jt=30,Wt=Oi.lazyRender=function(){var z,Q=Ft.length;for(Ot={};--Q>-1;)z=Ft[Q],z&&z._lazy!==!1&&(z.render(z._lazy[0],z._lazy[1],!0),z._lazy=!1);Ft.length=0};W._startTime=S.time,Qi._startTime=S.frame,W._active=Qi._active=!0,setTimeout(Wt,1),G._updateRoot=Ct.render=function(){var z,Q,ot;if(Ft.length&&Wt(),W.render((S.time-W._startTime)*W._timeScale,!1,!1),Qi.render((S.frame-Qi._startTime)*Qi._timeScale,!1,!1),Ft.length&&Wt(),S.frame>=Jt){Jt=S.frame+(parseInt(Ct.autoSleep,10)||120);for(ot in Ge){for(Q=Ge[ot].tweens,z=Q.length;--z>-1;)Q[z]._gc&&Q.splice(z,1);Q.length===0&&delete Ge[ot]}if(ot=W._first,(!ot||ot._paused)&&Ct.autoSleep&&!Qi._first&&S._listeners.tick.length===1){for(;ot&&ot._paused;)ot=ot._next;ot||S.sleep()}}},S.addEventListener("tick",G._updateRoot);var pt=function(z,Q,ot){var nt,vt,Gt=z._gsTweenID;if(Ge[Gt||(z._gsTweenID=Gt="t"+di++)]||(Ge[Gt]={target:z,tweens:[]}),Q&&(nt=Ge[Gt].tweens,nt[vt=nt.length]=Q,ot))for(;--vt>-1;)nt[vt]===Q&&nt.splice(vt,1);return Ge[Gt].tweens},dt=function(z,Q,ot,nt){var vt,Gt,Xt=z.vars.onOverwrite;return Xt&&(vt=Xt(z,Q,ot,nt)),Xt=Ct.onOverwrite,Xt&&(Gt=Xt(z,Q,ot,nt)),vt!==!1&&Gt!==!1},Dt=function(z,Q,ot,nt,vt){var Gt,Xt,jt,Ne;if(nt===1||nt>=4){for(Ne=vt.length,Gt=0;Ne>Gt;Gt++)if((jt=vt[Gt])!==Q)jt._gc||jt._kill(null,z,Q)&&(Xt=!0);else if(nt===5)break;return Xt}var Re,ge=Q._startTime+D,we=[],_i=0,Si=Q._duration===0;for(Gt=vt.length;--Gt>-1;)(jt=vt[Gt])===Q||jt._gc||jt._paused||(jt._timeline!==Q._timeline?(Re=Re||ie(Q,0,Si),ie(jt,Re,Si)===0&&(we[_i++]=jt)):jt._startTime<=ge&&jt._startTime+jt.totalDuration()/jt._timeScale>ge&&((Si||!jt._initted)&&ge-jt._startTime<=2e-10||(we[_i++]=jt)));for(Gt=_i;--Gt>-1;)if(jt=we[Gt],Ne=jt._firstPT,nt===2&&jt._kill(ot,z,Q)&&(Xt=!0),nt!==2||!jt._firstPT&&jt._initted&&Ne){if(nt!==2&&!dt(jt,Q))continue;jt._enabled(!1,!1)&&(Xt=!0)}return Xt},ie=function(z,Q,ot){for(var nt=z._timeline,vt=nt._timeScale,Gt=z._startTime;nt._timeline;){if(Gt+=nt._startTime,vt*=nt._timeScale,nt._paused)return-100;nt=nt._timeline}return Gt/=vt,Gt>Q?Gt-Q:ot&&Gt===Q||!z._initted&&2*D>Gt-Q?D:(Gt+=z.totalDuration()/z._timeScale/vt)>Q+D?0:Gt-Q-D};y._init=function(){var z,Q,ot,nt,vt,Gt,Xt=this.vars,jt=this._overwrittenProps,Ne=this._duration,Re=!!Xt.immediateRender,ge=Xt.ease;if(Xt.startAt){this._startAt&&(this._startAt.render(-1,!0),this._startAt.kill()),vt={};for(nt in Xt.startAt)vt[nt]=Xt.startAt[nt];if(vt.data="isStart",vt.overwrite=!1,vt.immediateRender=!0,vt.lazy=Re&&Xt.lazy!==!1,vt.startAt=vt.delay=null,vt.onUpdate=Xt.onUpdate,vt.onUpdateParams=Xt.onUpdateParams,vt.onUpdateScope=Xt.onUpdateScope||Xt.callbackScope||this,this._startAt=Ct.to(this.target||{},0,vt),Re){if(this._time>0)this._startAt=null;else if(Ne!==0)return}}else if(Xt.runBackwards&&Ne!==0)if(this._startAt)this._startAt.render(-1,!0),this._startAt.kill(),this._startAt=null;else{this._time!==0&&(Re=!1),ot={};for(nt in Xt)Ii[nt]&&nt!=="autoCSS"||(ot[nt]=Xt[nt]);if(ot.overwrite=0,ot.data="isFromStart",ot.lazy=Re&&Xt.lazy!==!1,ot.immediateRender=Re,this._startAt=Ct.to(this.target,0,ot),Re){if(this._time===0)return}else this._startAt._init(),this._startAt._enabled(!1),this.vars.immediateRender&&(this._startAt=null)}if(this._ease=ge=ge?ge instanceof F?ge:typeof ge=="function"?new F(ge,Xt.easeParams):j[ge]||Ct.defaultEase:Ct.defaultEase,Xt.easeParams instanceof Array&&ge.config&&(this._ease=ge.config.apply(ge,Xt.easeParams)),this._easeType=this._ease._type,this._easePower=this._ease._power,this._firstPT=null,this._targets)for(Gt=this._targets.length,z=0;Gt>z;z++)this._initProps(this._targets[z],this._propLookup[z]={},this._siblings[z],jt?jt[z]:null,z)&&(Q=!0);else Q=this._initProps(this.target,this._propLookup,this._siblings,jt,0);if(Q&&Ct._onPluginEvent("_onInitAllProps",this),jt&&(this._firstPT||typeof this.target!="function"&&this._enabled(!1,!1)),Xt.runBackwards)for(ot=this._firstPT;ot;)ot.s+=ot.c,ot.c=-ot.c,ot=ot._next;this._onUpdate=Xt.onUpdate,this._initted=!0},y._initProps=function(z,Q,ot,nt,vt){var Gt,Xt,jt,Ne,Re,ge;if(z==null)return!1;Ot[z._gsTweenID]&&Wt(),this.vars.css||z.style&&z!==x&&z.nodeType&&Oe.css&&this.vars.autoCSS!==!1&&re(this.vars,z);for(Gt in this.vars)if(ge=this.vars[Gt],Ii[Gt])ge&&(ge instanceof Array||ge.push&&P(ge))&&ge.join("").indexOf("{self}")!==-1&&(this.vars[Gt]=ge=this._swapSelfInParams(ge,this));else if(Oe[Gt]&&(Ne=new Oe[Gt])._onInitTween(z,this.vars[Gt],this,vt)){for(this._firstPT=Re={_next:this._firstPT,t:Ne,p:"setRatio",s:0,c:1,f:1,n:Gt,pg:1,pr:Ne._priority,m:0},Xt=Ne._overwriteProps.length;--Xt>-1;)Q[Ne._overwriteProps[Xt]]=this._firstPT;(Ne._priority||Ne._onInitAllProps)&&(jt=!0),(Ne._onDisable||Ne._onEnable)&&(this._notifyPluginsOfEnabled=!0),Re._next&&(Re._next._prev=Re)}else Q[Gt]=$e.call(this,z,Gt,"get",ge,Gt,0,null,this.vars.stringFilter,vt);return nt&&this._kill(nt,z)?this._initProps(z,Q,ot,nt,vt):this._overwrite>1&&this._firstPT&&ot.length>1&&Dt(z,this,Q,this._overwrite,ot)?(this._kill(Q,z),this._initProps(z,Q,ot,nt,vt)):(this._firstPT&&(this.vars.lazy!==!1&&this._duration||this.vars.lazy&&!this._duration)&&(Ot[z._gsTweenID]=!0),jt)},y.render=function(z,Q,ot){var nt,vt,Gt,Xt,jt=this._time,Ne=this._duration,Re=this._rawPrevTime;if(z>=Ne-1e-7&&z>=0)this._totalTime=this._time=Ne,this.ratio=this._ease._calcEnd?this._ease.getRatio(1):1,this._reversed||(nt=!0,vt="onComplete",ot=ot||this._timeline.autoRemoveChildren),Ne===0&&(this._initted||!this.vars.lazy||ot)&&(this._startTime===this._timeline._duration&&(z=0),(0>Re||0>=z&&z>=-1e-7||Re===D&&this.data!=="isPause")&&Re!==z&&(ot=!0,Re>D&&(vt="onReverseComplete")),this._rawPrevTime=Xt=!Q||z||Re===z?z:D);else if(1e-7>z)this._totalTime=this._time=0,this.ratio=this._ease._calcEnd?this._ease.getRatio(0):0,(jt!==0||Ne===0&&Re>0)&&(vt="onReverseComplete",nt=this._reversed),0>z&&(this._active=!1,Ne===0&&(this._initted||!this.vars.lazy||ot)&&(Re>=0&&(Re!==D||this.data!=="isPause")&&(ot=!0),this._rawPrevTime=Xt=!Q||z||Re===z?z:D)),(!this._initted||this._startAt&&this._startAt.progress())&&(ot=!0);else if(this._totalTime=this._time=z,this._easeType){var ge=z/Ne,we=this._easeType,_i=this._easePower;(we===1||we===3&&ge>=.5)&&(ge=1-ge),we===3&&(ge*=2),_i===1?ge*=ge:_i===2?ge*=ge*ge:_i===3?ge*=ge*ge*ge:_i===4&&(ge*=ge*ge*ge*ge),we===1?this.ratio=1-ge:we===2?this.ratio=ge:.5>z/Ne?this.ratio=ge/2:this.ratio=1-ge/2}else this.ratio=this._ease.getRatio(z/Ne);if(this._time!==jt||ot){if(!this._initted){if(this._init(),!this._initted||this._gc)return;if(!ot&&this._firstPT&&(this.vars.lazy!==!1&&this._duration||this.vars.lazy&&!this._duration))return this._time=this._totalTime=jt,this._rawPrevTime=Re,Ft.push(this),void(this._lazy=[z,Q]);this._time&&!nt?this.ratio=this._ease.getRatio(this._time/Ne):nt&&this._ease._calcEnd&&(this.ratio=this._ease.getRatio(this._time===0?0:1))}for(this._lazy!==!1&&(this._lazy=!1),this._active||!this._paused&&this._time!==jt&&z>=0&&(this._active=!0),jt===0&&(this._startAt&&(z>=0?this._startAt.render(z,!0,ot):vt||(vt="_dummyGS")),this.vars.onStart&&(this._time!==0||Ne===0)&&(Q||this._callback("onStart"))),Gt=this._firstPT;Gt;)Gt.f?Gt.t[Gt.p](Gt.c*this.ratio+Gt.s):Gt.t[Gt.p]=Gt.c*this.ratio+Gt.s,Gt=Gt._next;this._onUpdate&&(0>z&&this._startAt&&z!==-1e-4&&this._startAt.render(z,!0,ot),Q||(this._time!==jt||nt||ot)&&this._callback("onUpdate")),vt&&(!this._gc||ot)&&(0>z&&this._startAt&&!this._onUpdate&&z!==-1e-4&&this._startAt.render(z,!0,ot),nt&&(this._timeline.autoRemoveChildren&&this._enabled(!1,!1),this._active=!1),!Q&&this.vars[vt]&&this._callback(vt),Ne===0&&this._rawPrevTime===D&&Xt!==D&&(this._rawPrevTime=0))}},y._kill=function(z,Q,ot){if(z==="all"&&(z=null),z==null&&(Q==null||Q===this.target))return this._lazy=!1,this._enabled(!1,!1);Q=typeof Q!="string"?Q||this._targets||this.target:Ct.selector(Q)||Q;var nt,vt,Gt,Xt,jt,Ne,Re,ge,we,_i=ot&&this._time&&ot._startTime===this._startTime&&this._timeline===ot._timeline,Si=this._firstPT;if((P(Q)||fe(Q))&&typeof Q[0]!="number")for(nt=Q.length;--nt>-1;)this._kill(z,Q[nt],ot)&&(Ne=!0);else{if(this._targets){for(nt=this._targets.length;--nt>-1;)if(Q===this._targets[nt]){jt=this._propLookup[nt]||{},this._overwrittenProps=this._overwrittenProps||[],vt=this._overwrittenProps[nt]=z?this._overwrittenProps[nt]||{}:"all";break}}else{if(Q!==this.target)return!1;jt=this._propLookup,vt=this._overwrittenProps=z?this._overwrittenProps||{}:"all"}if(jt){if(Re=z||jt,ge=z!==vt&&vt!=="all"&&z!==jt&&(typeof z!="object"||!z._tempKill),ot&&(Ct.onOverwrite||this.vars.onOverwrite)){for(Gt in Re)jt[Gt]&&(we||(we=[]),we.push(Gt));if((we||!z)&&!dt(this,ot,Q,we))return!1}for(Gt in Re)(Xt=jt[Gt])&&(_i&&(Xt.f?Xt.t[Xt.p](Xt.s):Xt.t[Xt.p]=Xt.s,Ne=!0),Xt.pg&&Xt.t._kill(Re)&&(Ne=!0),Xt.pg&&Xt.t._overwriteProps.length!==0||(Xt._prev?Xt._prev._next=Xt._next:Xt===this._firstPT&&(this._firstPT=Xt._next),Xt._next&&(Xt._next._prev=Xt._prev),Xt._next=Xt._prev=null),delete jt[Gt]),ge&&(vt[Gt]=1);!this._firstPT&&this._initted&&Si&&this._enabled(!1,!1)}}return Ne},y.invalidate=function(){return this._notifyPluginsOfEnabled&&Ct._onPluginEvent("_onDisable",this),this._firstPT=this._overwrittenProps=this._startAt=this._onUpdate=null,this._notifyPluginsOfEnabled=this._active=this._lazy=!1,this._propLookup=this._targets?{}:[],G.prototype.invalidate.call(this),this.vars.immediateRender&&(this._time=-D,this.render(Math.min(0,-this._delay))),this},y._enabled=function(z,Q){if(A||S.wake(),z&&this._gc){var ot,nt=this._targets;if(nt)for(ot=nt.length;--ot>-1;)this._siblings[ot]=pt(nt[ot],this,!0);else this._siblings=pt(this.target,this,!0)}return G.prototype._enabled.call(this,z,Q),this._notifyPluginsOfEnabled&&this._firstPT?Ct._onPluginEvent(z?"_onEnable":"_onDisable",this):!1},Ct.to=function(z,Q,ot){return new Ct(z,Q,ot)},Ct.from=function(z,Q,ot){return ot.runBackwards=!0,ot.immediateRender=ot.immediateRender!=0,new Ct(z,Q,ot)},Ct.fromTo=function(z,Q,ot,nt){return nt.startAt=ot,nt.immediateRender=nt.immediateRender!=0&&ot.immediateRender!=0,new Ct(z,Q,nt)},Ct.delayedCall=function(z,Q,ot,nt,vt){return new Ct(Q,0,{delay:z,onComplete:Q,onCompleteParams:ot,callbackScope:nt,onReverseComplete:Q,onReverseCompleteParams:ot,immediateRender:!1,lazy:!1,useFrames:vt,overwrite:0})},Ct.set=function(z,Q){return new Ct(z,0,Q)},Ct.getTweensOf=function(z,Q){if(z==null)return[];z=typeof z!="string"?z:Ct.selector(z)||z;var ot,nt,vt,Gt;if((P(z)||fe(z))&&typeof z[0]!="number"){for(ot=z.length,nt=[];--ot>-1;)nt=nt.concat(Ct.getTweensOf(z[ot],Q));for(ot=nt.length;--ot>-1;)for(Gt=nt[ot],vt=ot;--vt>-1;)Gt===nt[vt]&&nt.splice(ot,1)}else if(z._gsTweenID)for(nt=pt(z).concat(),ot=nt.length;--ot>-1;)(nt[ot]._gc||Q&&!nt[ot].isActive())&&nt.splice(ot,1);return nt||[]},Ct.killTweensOf=Ct.killDelayedCallsTo=function(z,Q,ot){typeof Q=="object"&&(ot=Q,Q=!1);for(var nt=Ct.getTweensOf(z,Q),vt=nt.length;--vt>-1;)nt[vt]._kill(ot,z)};var Kt=b("plugins.TweenPlugin",function(z,Q){this._overwriteProps=(z||"").split(","),this._propName=this._overwriteProps[0],this._priority=Q||0,this._super=Kt.prototype},!0);if(y=Kt.prototype,Kt.version="1.19.0",Kt.API=2,y._firstPT=null,y._addTween=$e,y.setRatio=ce,y._kill=function(z){var Q,ot=this._overwriteProps,nt=this._firstPT;if(z[this._propName]!=null)this._overwriteProps=[];else for(Q=ot.length;--Q>-1;)z[ot[Q]]!=null&&ot.splice(Q,1);for(;nt;)z[nt.n]!=null&&(nt._next&&(nt._next._prev=nt._prev),nt._prev?(nt._prev._next=nt._next,nt._prev=null):this._firstPT===nt&&(this._firstPT=nt._next)),nt=nt._next;return!1},y._mod=y._roundProps=function(z){for(var Q,ot=this._firstPT;ot;)Q=z[this._propName]||ot.n!=null&&z[ot.n.split(this._propName+"_").join("")],Q&&typeof Q=="function"&&(ot.f===2?ot.t._applyPT.m=Q:ot.m=Q),ot=ot._next},Ct._onPluginEvent=function(z,Q){var ot,nt,vt,Gt,Xt,jt=Q._firstPT;if(z==="_onInitAllProps"){for(;jt;){for(Xt=jt._next,nt=vt;nt&&nt.pr>jt.pr;)nt=nt._next;(jt._prev=nt?nt._prev:Gt)?jt._prev._next=jt:vt=jt,(jt._next=nt)?nt._prev=jt:Gt=jt,jt=Xt}jt=Q._firstPT=vt}for(;jt;)jt.pg&&typeof jt.t[z]=="function"&&jt.t[z]()&&(ot=!0),jt=jt._next;return ot},Kt.activate=function(z){for(var Q=z.length;--Q>-1;)z[Q].API===Kt.API&&(Oe[new z[Q]()._propName]=z[Q]);return!0},R.plugin=function(z){if(!(z&&z.propName&&z.init&&z.API))throw"illegal plugin definition.";var Q,ot=z.propName,nt=z.priority||0,vt=z.overwriteProps,Gt={init:"_onInitTween",set:"setRatio",kill:"_kill",round:"_mod",mod:"_mod",initAll:"_onInitAllProps"},Xt=b("plugins."+ot.charAt(0).toUpperCase()+ot.substr(1)+"Plugin",function(){Kt.call(this,ot,nt),this._overwriteProps=vt||[]},z.global===!0),jt=Xt.prototype=new Kt(ot);jt.constructor=Xt,Xt.API=z.API;for(Q in Gt)typeof z[Q]=="function"&&(jt[Gt[Q]]=z[Q]);return Xt.version=z.version,Kt.activate([Xt]),Xt},m=x._gsQueue){for(_=0;_<m.length;_++)m[_]();for(y in T)T[y].func||x.console.log("GSAP encountered missing dependency: "+y)}A=!1}(typeof module<"u"&&module.exports&&typeof global<"u"?global:globalThis||window,"TweenMax");const qd={class:"modal-background"},Yd=["innerHTML"],Zd={name:"MapModali"},wf=si.defineComponent({...Zd,props:{},setup(x,{expose:l}){const o=si.ref(""),c=si.ref(""),d=m=>{c.value=m,o.value="five"},u=()=>{o.value=o.value+" out"};return si.onMounted(()=>{}),l({text:c,show:d,hide:u}),(m,_)=>(si.openBlock(),si.createElementBlock("div",{id:"modal-container",class:si.normalizeClass(o.value),onClick:u},[si.createElementVNode("div",qd,[si.createElementVNode("div",{class:"modal",onClick:_[0]||(_[0]=y=>{y.stopPropagation()})},[si.createElementVNode("p",{style:{"white-space":"pre-line","line-height":"1",margin:"0",color:"#fff"},innerHTML:c.value},null,8,Yd)])])],2))}}),w1="",Jd={class:"bim_background_plate"},$d={class:"content"},Kd=si.createElementVNode("canvas",{class:"landscape"},null,-1),Qd={class:"content__title"},tm=si.createElementVNode("div",{class:"overlay"},null,-1),em={name:"BimBackgroundPlate"},Tf=si.defineComponent({...em,setup(x){const l=()=>{let d=`
13
+ **/var ln=typeof module<"u"&&module.exports&&typeof global<"u"?global:globalThis||window;(ln._gsQueue||(ln._gsQueue=[])).push(function(){ln._gsDefine("TweenMax",["core.Animation","core.SimpleTimeline","TweenLite"],function(x,a,o){var c=function(E){var L,T=[],M=E.length;for(L=0;L!==M;T.push(E[L++]));return T},d=function(E,L,T){var M,R,b=E.cycle;for(M in b)R=b[M],E[M]=typeof R=="function"?R(T,L[T]):R[T%R.length];delete E.cycle},u=function(E,L,T){o.call(this,E,L,T),this._cycle=0,this._yoyo=this.vars.yoyo===!0||!!this.vars.yoyoEase,this._repeat=this.vars.repeat||0,this._repeatDelay=this.vars.repeatDelay||0,this._repeat&&this._uncache(!0),this.render=u.prototype.render},m=1e-10,_=o._internals,y=_.isSelector,S=_.isArray,A=u.prototype=o.to({},.1,{}),I=[];u.version="2.0.2",A.constructor=u,A.kill()._gc=!1,u.killTweensOf=u.killDelayedCallsTo=o.killTweensOf,u.getTweensOf=o.getTweensOf,u.lagSmoothing=o.lagSmoothing,u.ticker=o.ticker,u.render=o.render,A.invalidate=function(){return this._yoyo=this.vars.yoyo===!0||!!this.vars.yoyoEase,this._repeat=this.vars.repeat||0,this._repeatDelay=this.vars.repeatDelay||0,this._yoyoEase=null,this._uncache(!0),o.prototype.invalidate.call(this)},A.updateTo=function(E,L){var T,M=this.ratio,R=this.vars.immediateRender||E.immediateRender;L&&this._startTime<this._timeline._time&&(this._startTime=this._timeline._time,this._uncache(!1),this._gc?this._enabled(!0,!1):this._timeline.insert(this,this._startTime-this._delay));for(T in E)this.vars[T]=E[T];if(this._initted||R){if(L)this._initted=!1,R&&this.render(0,!0,!0);else if(this._gc&&this._enabled(!0,!1),this._notifyPluginsOfEnabled&&this._firstPT&&o._onPluginEvent("_onDisable",this),this._time/this._duration>.998){var b=this._totalTime;this.render(0,!0,!1),this._initted=!1,this.render(b,!0,!1)}else if(this._initted=!1,this._init(),this._time>0||R)for(var U,N=1/(1-M),j=this._firstPT;j;)U=j.s+j.c,j.c*=N,j.s=U-j.c,j=j._next}return this},A.render=function(E,L,T){this._initted||this._duration===0&&this.vars.repeat&&this.invalidate();var M,R,b,U,N,j,J,$,ct,It=this._dirty?this.totalDuration():this._totalDuration,et=this._time,yt=this._totalTime,G=this._cycle,Pt=this._duration,Et=this._rawPrevTime;if(E>=It-1e-7&&E>=0?(this._totalTime=It,this._cycle=this._repeat,this._yoyo&&1&this._cycle?(this._time=0,this.ratio=this._ease._calcEnd?this._ease.getRatio(0):0):(this._time=Pt,this.ratio=this._ease._calcEnd?this._ease.getRatio(1):1),this._reversed||(M=!0,R="onComplete",T=T||this._timeline.autoRemoveChildren),Pt===0&&(this._initted||!this.vars.lazy||T)&&(this._startTime===this._timeline._duration&&(E=0),(0>Et||0>=E&&E>=-1e-7||Et===m&&this.data!=="isPause")&&Et!==E&&(T=!0,Et>m&&(R="onReverseComplete")),this._rawPrevTime=$=!L||E||Et===E?E:m)):1e-7>E?(this._totalTime=this._time=this._cycle=0,this.ratio=this._ease._calcEnd?this._ease.getRatio(0):0,(yt!==0||Pt===0&&Et>0)&&(R="onReverseComplete",M=this._reversed),0>E&&(this._active=!1,Pt===0&&(this._initted||!this.vars.lazy||T)&&(Et>=0&&(T=!0),this._rawPrevTime=$=!L||E||Et===E?E:m)),this._initted||(T=!0)):(this._totalTime=this._time=E,this._repeat!==0&&(U=Pt+this._repeatDelay,this._cycle=this._totalTime/U>>0,this._cycle!==0&&this._cycle===this._totalTime/U&&E>=yt&&this._cycle--,this._time=this._totalTime-this._cycle*U,this._yoyo&&1&this._cycle&&(this._time=Pt-this._time,ct=this._yoyoEase||this.vars.yoyoEase,ct&&(this._yoyoEase||(ct!==!0||this._initted?this._yoyoEase=ct=ct===!0?this._ease:ct instanceof Ease?ct:Ease.map[ct]:(ct=this.vars.ease,this._yoyoEase=ct=ct?ct instanceof Ease?ct:typeof ct=="function"?new Ease(ct,this.vars.easeParams):Ease.map[ct]||o.defaultEase:o.defaultEase)),this.ratio=ct?1-ct.getRatio((Pt-this._time)/Pt):0)),this._time>Pt?this._time=Pt:this._time<0&&(this._time=0)),this._easeType&&!ct?(N=this._time/Pt,j=this._easeType,J=this._easePower,(j===1||j===3&&N>=.5)&&(N=1-N),j===3&&(N*=2),J===1?N*=N:J===2?N*=N*N:J===3?N*=N*N*N:J===4&&(N*=N*N*N*N),j===1?this.ratio=1-N:j===2?this.ratio=N:this._time/Pt<.5?this.ratio=N/2:this.ratio=1-N/2):ct||(this.ratio=this._ease.getRatio(this._time/Pt))),et===this._time&&!T&&G===this._cycle)return void(yt!==this._totalTime&&this._onUpdate&&(L||this._callback("onUpdate")));if(!this._initted){if(this._init(),!this._initted||this._gc)return;if(!T&&this._firstPT&&(this.vars.lazy!==!1&&this._duration||this.vars.lazy&&!this._duration))return this._time=et,this._totalTime=yt,this._rawPrevTime=Et,this._cycle=G,_.lazyTweens.push(this),void(this._lazy=[E,L]);!this._time||M||ct?M&&this._ease._calcEnd&&!ct&&(this.ratio=this._ease.getRatio(this._time===0?0:1)):this.ratio=this._ease.getRatio(this._time/Pt)}for(this._lazy!==!1&&(this._lazy=!1),this._active||!this._paused&&this._time!==et&&E>=0&&(this._active=!0),yt===0&&(this._initted===2&&E>0&&this._init(),this._startAt&&(E>=0?this._startAt.render(E,!0,T):R||(R="_dummyGS")),this.vars.onStart&&(this._totalTime!==0||Pt===0)&&(L||this._callback("onStart"))),b=this._firstPT;b;)b.f?b.t[b.p](b.c*this.ratio+b.s):b.t[b.p]=b.c*this.ratio+b.s,b=b._next;this._onUpdate&&(0>E&&this._startAt&&this._startTime&&this._startAt.render(E,!0,T),L||(this._totalTime!==yt||R)&&this._callback("onUpdate")),this._cycle!==G&&(L||this._gc||this.vars.onRepeat&&this._callback("onRepeat")),R&&(!this._gc||T)&&(0>E&&this._startAt&&!this._onUpdate&&this._startTime&&this._startAt.render(E,!0,T),M&&(this._timeline.autoRemoveChildren&&this._enabled(!1,!1),this._active=!1),!L&&this.vars[R]&&this._callback(R),Pt===0&&this._rawPrevTime===m&&$!==m&&(this._rawPrevTime=0))},u.to=function(E,L,T){return new u(E,L,T)},u.from=function(E,L,T){return T.runBackwards=!0,T.immediateRender=T.immediateRender!=0,new u(E,L,T)},u.fromTo=function(E,L,T,M){return M.startAt=T,M.immediateRender=M.immediateRender!=0&&T.immediateRender!=0,new u(E,L,M)},u.staggerTo=u.allTo=function(E,L,T,M,R,b,U){M=M||0;var N,j,J,$,ct=0,It=[],et=function(){T.onComplete&&T.onComplete.apply(T.onCompleteScope||this,arguments),R.apply(U||T.callbackScope||this,b||I)},yt=T.cycle,G=T.startAt&&T.startAt.cycle;for(S(E)||(typeof E=="string"&&(E=o.selector(E)||E),y(E)&&(E=c(E))),E=E||[],0>M&&(E=c(E),E.reverse(),M*=-1),N=E.length-1,J=0;N>=J;J++){j={};for($ in T)j[$]=T[$];if(yt&&(d(j,E,J),j.duration!=null&&(L=j.duration,delete j.duration)),G){G=j.startAt={};for($ in T.startAt)G[$]=T.startAt[$];d(j.startAt,E,J)}j.delay=ct+(j.delay||0),J===N&&R&&(j.onComplete=et),It[J]=new u(E[J],L,j),ct+=M}return It},u.staggerFrom=u.allFrom=function(E,L,T,M,R,b,U){return T.runBackwards=!0,T.immediateRender=T.immediateRender!=0,u.staggerTo(E,L,T,M,R,b,U)},u.staggerFromTo=u.allFromTo=function(E,L,T,M,R,b,U,N){return M.startAt=T,M.immediateRender=M.immediateRender!=0&&T.immediateRender!=0,u.staggerTo(E,L,M,R,b,U,N)},u.delayedCall=function(E,L,T,M,R){return new u(L,0,{delay:E,onComplete:L,onCompleteParams:T,callbackScope:M,onReverseComplete:L,onReverseCompleteParams:T,immediateRender:!1,useFrames:R,overwrite:0})},u.set=function(E,L){return new u(E,0,L)},u.isTweening=function(E){return o.getTweensOf(E,!0).length>0};var k=function(E,L){for(var T=[],M=0,R=E._first;R;)R instanceof o?T[M++]=R:(L&&(T[M++]=R),T=T.concat(k(R,L)),M=T.length),R=R._next;return T},D=u.getAllTweens=function(E){return k(x._rootTimeline,E).concat(k(x._rootFramesTimeline,E))};u.killAll=function(E,L,T,M){L==null&&(L=!0),T==null&&(T=!0);var R,b,U,N=D(M!=0),j=N.length,J=L&&T&&M;for(U=0;j>U;U++)b=N[U],(J||b instanceof a||(R=b.target===b.vars.onComplete)&&T||L&&!R)&&(E?b.totalTime(b._reversed?0:b.totalDuration()):b._enabled(!1,!1))},u.killChildTweensOf=function(E,L){if(E!=null){var T,M,R,b,U,N=_.tweenLookup;if(typeof E=="string"&&(E=o.selector(E)||E),y(E)&&(E=c(E)),S(E))for(b=E.length;--b>-1;)u.killChildTweensOf(E[b],L);else{T=[];for(R in N)for(M=N[R].target.parentNode;M;)M===E&&(T=T.concat(N[R].tweens)),M=M.parentNode;for(U=T.length,b=0;U>b;b++)L&&T[b].totalTime(T[b].totalDuration()),T[b]._enabled(!1,!1)}}};var F=function(E,L,T,M){L=L!==!1,T=T!==!1,M=M!==!1;for(var R,b,U=D(M),N=L&&T&&M,j=U.length;--j>-1;)b=U[j],(N||b instanceof a||(R=b.target===b.vars.onComplete)&&T||L&&!R)&&b.paused(E)};return u.pauseAll=function(E,L,T){F(!0,E,L,T)},u.resumeAll=function(E,L,T){F(!1,E,L,T)},u.globalTimeScale=function(E){var L=x._rootTimeline,T=o.ticker.time;return arguments.length?(E=E||m,L._startTime=T-(T-L._startTime)*L._timeScale/E,L=x._rootFramesTimeline,T=o.ticker.frame,L._startTime=T-(T-L._startTime)*L._timeScale/E,L._timeScale=x._rootTimeline._timeScale=E,E):L._timeScale},A.progress=function(E,L){return arguments.length?this.totalTime(this.duration()*(this._yoyo&&1&this._cycle?1-E:E)+this._cycle*(this._duration+this._repeatDelay),L):this._time/this.duration()},A.totalProgress=function(E,L){return arguments.length?this.totalTime(this.totalDuration()*E,L):this._totalTime/this.totalDuration()},A.time=function(E,L){return arguments.length?(this._dirty&&this.totalDuration(),E>this._duration&&(E=this._duration),this._yoyo&&1&this._cycle?E=this._duration-E+this._cycle*(this._duration+this._repeatDelay):this._repeat!==0&&(E+=this._cycle*(this._duration+this._repeatDelay)),this.totalTime(E,L)):this._time},A.duration=function(E){return arguments.length?x.prototype.duration.call(this,E):this._duration},A.totalDuration=function(E){return arguments.length?this._repeat===-1?this:this.duration((E-this._repeat*this._repeatDelay)/(this._repeat+1)):(this._dirty&&(this._totalDuration=this._repeat===-1?999999999999:this._duration*(this._repeat+1)+this._repeatDelay*this._repeat,this._dirty=!1),this._totalDuration)},A.repeat=function(E){return arguments.length?(this._repeat=E,this._uncache(!0)):this._repeat},A.repeatDelay=function(E){return arguments.length?(this._repeatDelay=E,this._uncache(!0)):this._repeatDelay},A.yoyo=function(E){return arguments.length?(this._yoyo=E,this):this._yoyo},u},!0),ln._gsDefine("TimelineLite",["core.Animation","core.SimpleTimeline","TweenLite"],function(x,a,o){var c=function(T){a.call(this,T),this._labels={},this.autoRemoveChildren=this.vars.autoRemoveChildren===!0,this.smoothChildTiming=this.vars.smoothChildTiming===!0,this._sortChildren=!0,this._onUpdate=this.vars.onUpdate;var M,R,b=this.vars;for(R in b)M=b[R],y(M)&&M.join("").indexOf("{self}")!==-1&&(b[R]=this._swapSelfInParams(M));y(b.tweens)&&this.add(b.tweens,0,b.align,b.stagger)},d=1e-10,u=o._internals,m=c._internals={},_=u.isSelector,y=u.isArray,S=u.lazyTweens,A=u.lazyRender,I=ln._gsDefine.globals,k=function(T){var M,R={};for(M in T)R[M]=T[M];return R},D=function(T,M,R){var b,U,N=T.cycle;for(b in N)U=N[b],T[b]=typeof U=="function"?U(R,M[R]):U[R%U.length];delete T.cycle},F=m.pauseCallback=function(){},E=function(T){var M,R=[],b=T.length;for(M=0;M!==b;R.push(T[M++]));return R},L=c.prototype=new a;return c.version="2.0.2",L.constructor=c,L.kill()._gc=L._forcingPlayhead=L._hasPause=!1,L.to=function(T,M,R,b){var U=R.repeat&&I.TweenMax||o;return M?this.add(new U(T,M,R),b):this.set(T,R,b)},L.from=function(T,M,R,b){return this.add((R.repeat&&I.TweenMax||o).from(T,M,R),b)},L.fromTo=function(T,M,R,b,U){var N=b.repeat&&I.TweenMax||o;return M?this.add(N.fromTo(T,M,R,b),U):this.set(T,b,U)},L.staggerTo=function(T,M,R,b,U,N,j,J){var $,ct,It=new c({onComplete:N,onCompleteParams:j,callbackScope:J,smoothChildTiming:this.smoothChildTiming}),et=R.cycle;for(typeof T=="string"&&(T=o.selector(T)||T),T=T||[],_(T)&&(T=E(T)),b=b||0,0>b&&(T=E(T),T.reverse(),b*=-1),ct=0;ct<T.length;ct++)$=k(R),$.startAt&&($.startAt=k($.startAt),$.startAt.cycle&&D($.startAt,T,ct)),et&&(D($,T,ct),$.duration!=null&&(M=$.duration,delete $.duration)),It.to(T[ct],M,$,ct*b);return this.add(It,U)},L.staggerFrom=function(T,M,R,b,U,N,j,J){return R.immediateRender=R.immediateRender!=0,R.runBackwards=!0,this.staggerTo(T,M,R,b,U,N,j,J)},L.staggerFromTo=function(T,M,R,b,U,N,j,J,$){return b.startAt=R,b.immediateRender=b.immediateRender!=0&&R.immediateRender!=0,this.staggerTo(T,M,b,U,N,j,J,$)},L.call=function(T,M,R,b){return this.add(o.delayedCall(0,T,M,R),b)},L.set=function(T,M,R){return R=this._parseTimeOrLabel(R,0,!0),M.immediateRender==null&&(M.immediateRender=R===this._time&&!this._paused),this.add(new o(T,0,M),R)},c.exportRoot=function(T,M){T=T||{},T.smoothChildTiming==null&&(T.smoothChildTiming=!0);var R,b,U,N,j=new c(T),J=j._timeline;for(M==null&&(M=!0),J._remove(j,!0),j._startTime=0,j._rawPrevTime=j._time=j._totalTime=J._time,U=J._first;U;)N=U._next,M&&U instanceof o&&U.target===U.vars.onComplete||(b=U._startTime-U._delay,0>b&&(R=1),j.add(U,b)),U=N;return J.add(j,0),R&&j.totalDuration(),j},L.add=function(T,M,R,b){var U,N,j,J,$,ct;if(typeof M!="number"&&(M=this._parseTimeOrLabel(M,0,!0,T)),!(T instanceof x)){if(T instanceof Array||T&&T.push&&y(T)){for(R=R||"normal",b=b||0,U=M,N=T.length,j=0;N>j;j++)y(J=T[j])&&(J=new c({tweens:J})),this.add(J,U),typeof J!="string"&&typeof J!="function"&&(R==="sequence"?U=J._startTime+J.totalDuration()/J._timeScale:R==="start"&&(J._startTime-=J.delay())),U+=b;return this._uncache(!0)}if(typeof T=="string")return this.addLabel(T,M);if(typeof T!="function")throw"Cannot add "+T+" into the timeline; it is not a tween, timeline, function, or string.";T=o.delayedCall(0,T)}if(a.prototype.add.call(this,T,M),T._time&&(U=Math.max(0,Math.min(T.totalDuration(),(this.rawTime()-T._startTime)*T._timeScale)),Math.abs(U-T._totalTime)>1e-5&&T.render(U,!1,!1)),(this._gc||this._time===this._duration)&&!this._paused&&this._duration<this.duration())for($=this,ct=$.rawTime()>T._startTime;$._timeline;)ct&&$._timeline.smoothChildTiming?$.totalTime($._totalTime,!0):$._gc&&$._enabled(!0,!1),$=$._timeline;return this},L.remove=function(T){if(T instanceof x){this._remove(T,!1);var M=T._timeline=T.vars.useFrames?x._rootFramesTimeline:x._rootTimeline;return T._startTime=(T._paused?T._pauseTime:M._time)-(T._reversed?T.totalDuration()-T._totalTime:T._totalTime)/T._timeScale,this}if(T instanceof Array||T&&T.push&&y(T)){for(var R=T.length;--R>-1;)this.remove(T[R]);return this}return typeof T=="string"?this.removeLabel(T):this.kill(null,T)},L._remove=function(T,M){a.prototype._remove.call(this,T,M);var R=this._last;return R?this._time>this.duration()&&(this._time=this._duration,this._totalTime=this._totalDuration):this._time=this._totalTime=this._duration=this._totalDuration=0,this},L.append=function(T,M){return this.add(T,this._parseTimeOrLabel(null,M,!0,T))},L.insert=L.insertMultiple=function(T,M,R,b){return this.add(T,M||0,R,b)},L.appendMultiple=function(T,M,R,b){return this.add(T,this._parseTimeOrLabel(null,M,!0,T),R,b)},L.addLabel=function(T,M){return this._labels[T]=this._parseTimeOrLabel(M),this},L.addPause=function(T,M,R,b){var U=o.delayedCall(0,F,R,b||this);return U.vars.onComplete=U.vars.onReverseComplete=M,U.data="isPause",this._hasPause=!0,this.add(U,T)},L.removeLabel=function(T){return delete this._labels[T],this},L.getLabelTime=function(T){return this._labels[T]!=null?this._labels[T]:-1},L._parseTimeOrLabel=function(T,M,R,b){var U,N;if(b instanceof x&&b.timeline===this)this.remove(b);else if(b&&(b instanceof Array||b.push&&y(b)))for(N=b.length;--N>-1;)b[N]instanceof x&&b[N].timeline===this&&this.remove(b[N]);if(U=typeof T!="number"||M?this.duration()>99999999999?this.recent().endTime(!1):this._duration:0,typeof M=="string")return this._parseTimeOrLabel(M,R&&typeof T=="number"&&this._labels[M]==null?T-U:0,R);if(M=M||0,typeof T!="string"||!isNaN(T)&&this._labels[T]==null)T==null&&(T=U);else{if(N=T.indexOf("="),N===-1)return this._labels[T]==null?R?this._labels[T]=U+M:M:this._labels[T]+M;M=parseInt(T.charAt(N-1)+"1",10)*Number(T.substr(N+1)),T=N>1?this._parseTimeOrLabel(T.substr(0,N-1),0,R):U}return Number(T)+M},L.seek=function(T,M){return this.totalTime(typeof T=="number"?T:this._parseTimeOrLabel(T),M!==!1)},L.stop=function(){return this.paused(!0)},L.gotoAndPlay=function(T,M){return this.play(T,M)},L.gotoAndStop=function(T,M){return this.pause(T,M)},L.render=function(T,M,R){this._gc&&this._enabled(!0,!1);var b,U,N,j,J,$,ct,It=this._time,et=this._dirty?this.totalDuration():this._totalDuration,yt=this._startTime,G=this._timeScale,Pt=this._paused;if(It!==this._time&&(T+=this._time-It),T>=et-1e-7&&T>=0)this._totalTime=this._time=et,this._reversed||this._hasPausedChild()||(U=!0,j="onComplete",J=!!this._timeline.autoRemoveChildren,this._duration===0&&(0>=T&&T>=-1e-7||this._rawPrevTime<0||this._rawPrevTime===d)&&this._rawPrevTime!==T&&this._first&&(J=!0,this._rawPrevTime>d&&(j="onReverseComplete"))),this._rawPrevTime=this._duration||!M||T||this._rawPrevTime===T?T:d,T=et+1e-4;else if(1e-7>T)if(this._totalTime=this._time=0,(It!==0||this._duration===0&&this._rawPrevTime!==d&&(this._rawPrevTime>0||0>T&&this._rawPrevTime>=0))&&(j="onReverseComplete",U=this._reversed),0>T)this._active=!1,this._timeline.autoRemoveChildren&&this._reversed?(J=U=!0,j="onReverseComplete"):this._rawPrevTime>=0&&this._first&&(J=!0),this._rawPrevTime=T;else{if(this._rawPrevTime=this._duration||!M||T||this._rawPrevTime===T?T:d,T===0&&U)for(b=this._first;b&&b._startTime===0;)b._duration||(U=!1),b=b._next;T=0,this._initted||(J=!0)}else{if(this._hasPause&&!this._forcingPlayhead&&!M){if(T>=It)for(b=this._first;b&&b._startTime<=T&&!$;)b._duration||b.data!=="isPause"||b.ratio||b._startTime===0&&this._rawPrevTime===0||($=b),b=b._next;else for(b=this._last;b&&b._startTime>=T&&!$;)b._duration||b.data==="isPause"&&b._rawPrevTime>0&&($=b),b=b._prev;$&&(this._time=T=$._startTime,this._totalTime=T+this._cycle*(this._totalDuration+this._repeatDelay))}this._totalTime=this._time=this._rawPrevTime=T}if(this._time!==It&&this._first||R||J||$){if(this._initted||(this._initted=!0),this._active||!this._paused&&this._time!==It&&T>0&&(this._active=!0),It===0&&this.vars.onStart&&(this._time===0&&this._duration||M||this._callback("onStart")),ct=this._time,ct>=It)for(b=this._first;b&&(N=b._next,ct===this._time&&(!this._paused||Pt));)(b._active||b._startTime<=ct&&!b._paused&&!b._gc)&&($===b&&this.pause(),b._reversed?b.render((b._dirty?b.totalDuration():b._totalDuration)-(T-b._startTime)*b._timeScale,M,R):b.render((T-b._startTime)*b._timeScale,M,R)),b=N;else for(b=this._last;b&&(N=b._prev,ct===this._time&&(!this._paused||Pt));){if(b._active||b._startTime<=It&&!b._paused&&!b._gc){if($===b){for($=b._prev;$&&$.endTime()>this._time;)$.render($._reversed?$.totalDuration()-(T-$._startTime)*$._timeScale:(T-$._startTime)*$._timeScale,M,R),$=$._prev;$=null,this.pause()}b._reversed?b.render((b._dirty?b.totalDuration():b._totalDuration)-(T-b._startTime)*b._timeScale,M,R):b.render((T-b._startTime)*b._timeScale,M,R)}b=N}this._onUpdate&&(M||(S.length&&A(),this._callback("onUpdate"))),j&&(this._gc||(yt===this._startTime||G!==this._timeScale)&&(this._time===0||et>=this.totalDuration())&&(U&&(S.length&&A(),this._timeline.autoRemoveChildren&&this._enabled(!1,!1),this._active=!1),!M&&this.vars[j]&&this._callback(j)))}},L._hasPausedChild=function(){for(var T=this._first;T;){if(T._paused||T instanceof c&&T._hasPausedChild())return!0;T=T._next}return!1},L.getChildren=function(T,M,R,b){b=b||-9999999999;for(var U=[],N=this._first,j=0;N;)N._startTime<b||(N instanceof o?M!==!1&&(U[j++]=N):(R!==!1&&(U[j++]=N),T!==!1&&(U=U.concat(N.getChildren(!0,M,R)),j=U.length))),N=N._next;return U},L.getTweensOf=function(T,M){var R,b,U=this._gc,N=[],j=0;for(U&&this._enabled(!0,!0),R=o.getTweensOf(T),b=R.length;--b>-1;)(R[b].timeline===this||M&&this._contains(R[b]))&&(N[j++]=R[b]);return U&&this._enabled(!1,!0),N},L.recent=function(){return this._recent},L._contains=function(T){for(var M=T.timeline;M;){if(M===this)return!0;M=M.timeline}return!1},L.shiftChildren=function(T,M,R){R=R||0;for(var b,U=this._first,N=this._labels;U;)U._startTime>=R&&(U._startTime+=T),U=U._next;if(M)for(b in N)N[b]>=R&&(N[b]+=T);return this._uncache(!0)},L._kill=function(T,M){if(!T&&!M)return this._enabled(!1,!1);for(var R=M?this.getTweensOf(M):this.getChildren(!0,!0,!1),b=R.length,U=!1;--b>-1;)R[b]._kill(T,M)&&(U=!0);return U},L.clear=function(T){var M=this.getChildren(!1,!0,!0),R=M.length;for(this._time=this._totalTime=0;--R>-1;)M[R]._enabled(!1,!1);return T!==!1&&(this._labels={}),this._uncache(!0)},L.invalidate=function(){for(var T=this._first;T;)T.invalidate(),T=T._next;return x.prototype.invalidate.call(this)},L._enabled=function(T,M){if(T===this._gc)for(var R=this._first;R;)R._enabled(T,!0),R=R._next;return a.prototype._enabled.call(this,T,M)},L.totalTime=function(T,M,R){this._forcingPlayhead=!0;var b=x.prototype.totalTime.apply(this,arguments);return this._forcingPlayhead=!1,b},L.duration=function(T){return arguments.length?(this.duration()!==0&&T!==0&&this.timeScale(this._duration/T),this):(this._dirty&&this.totalDuration(),this._duration)},L.totalDuration=function(T){if(!arguments.length){if(this._dirty){for(var M,R,b=0,U=this._last,N=999999999999;U;)M=U._prev,U._dirty&&U.totalDuration(),U._startTime>N&&this._sortChildren&&!U._paused&&!this._calculatingDuration?(this._calculatingDuration=1,this.add(U,U._startTime-U._delay),this._calculatingDuration=0):N=U._startTime,U._startTime<0&&!U._paused&&(b-=U._startTime,this._timeline.smoothChildTiming&&(this._startTime+=U._startTime/this._timeScale,this._time-=U._startTime,this._totalTime-=U._startTime,this._rawPrevTime-=U._startTime),this.shiftChildren(-U._startTime,!1,-9999999999),N=0),R=U._startTime+U._totalDuration/U._timeScale,R>b&&(b=R),U=M;this._duration=this._totalDuration=b,this._dirty=!1}return this._totalDuration}return T&&this.totalDuration()?this.timeScale(this._totalDuration/T):this},L.paused=function(T){if(!T)for(var M=this._first,R=this._time;M;)M._startTime===R&&M.data==="isPause"&&(M._rawPrevTime=0),M=M._next;return x.prototype.paused.apply(this,arguments)},L.usesFrames=function(){for(var T=this._timeline;T._timeline;)T=T._timeline;return T===x._rootFramesTimeline},L.rawTime=function(T){return T&&(this._paused||this._repeat&&this.time()>0&&this.totalProgress()<1)?this._totalTime%(this._duration+this._repeatDelay):this._paused?this._totalTime:(this._timeline.rawTime(T)-this._startTime)*this._timeScale},c},!0),ln._gsDefine("TimelineMax",["TimelineLite","TweenLite","easing.Ease"],function(x,a,o){var c=function(I){x.call(this,I),this._repeat=this.vars.repeat||0,this._repeatDelay=this.vars.repeatDelay||0,this._cycle=0,this._yoyo=this.vars.yoyo===!0,this._dirty=!0},d=1e-10,u=a._internals,m=u.lazyTweens,_=u.lazyRender,y=ln._gsDefine.globals,S=new o(null,null,1,0),A=c.prototype=new x;return A.constructor=c,A.kill()._gc=!1,c.version="2.0.2",A.invalidate=function(){return this._yoyo=this.vars.yoyo===!0,this._repeat=this.vars.repeat||0,this._repeatDelay=this.vars.repeatDelay||0,this._uncache(!0),x.prototype.invalidate.call(this)},A.addCallback=function(I,k,D,F){return this.add(a.delayedCall(0,I,D,F),k)},A.removeCallback=function(I,k){if(I)if(k==null)this._kill(null,I);else for(var D=this.getTweensOf(I,!1),F=D.length,E=this._parseTimeOrLabel(k);--F>-1;)D[F]._startTime===E&&D[F]._enabled(!1,!1);return this},A.removePause=function(I){return this.removeCallback(x._internals.pauseCallback,I)},A.tweenTo=function(I,k){k=k||{};var D,F,E,L={ease:S,useFrames:this.usesFrames(),immediateRender:!1,lazy:!1},T=k.repeat&&y.TweenMax||a;for(F in k)L[F]=k[F];return L.time=this._parseTimeOrLabel(I),D=Math.abs(Number(L.time)-this._time)/this._timeScale||.001,E=new T(this,D,L),L.onStart=function(){E.target.paused(!0),E.vars.time===E.target.time()||D!==E.duration()||E.isFromTo||E.duration(Math.abs(E.vars.time-E.target.time())/E.target._timeScale).render(E.time(),!0,!0),k.onStart&&k.onStart.apply(k.onStartScope||k.callbackScope||E,k.onStartParams||[])},E},A.tweenFromTo=function(I,k,D){D=D||{},I=this._parseTimeOrLabel(I),D.startAt={onComplete:this.seek,onCompleteParams:[I],callbackScope:this},D.immediateRender=D.immediateRender!==!1;var F=this.tweenTo(k,D);return F.isFromTo=1,F.duration(Math.abs(F.vars.time-I)/this._timeScale||.001)},A.render=function(I,k,D){this._gc&&this._enabled(!0,!1);var F,E,L,T,M,R,b,U,N=this._time,j=this._dirty?this.totalDuration():this._totalDuration,J=this._duration,$=this._totalTime,ct=this._startTime,It=this._timeScale,et=this._rawPrevTime,yt=this._paused,G=this._cycle;if(N!==this._time&&(I+=this._time-N),I>=j-1e-7&&I>=0)this._locked||(this._totalTime=j,this._cycle=this._repeat),this._reversed||this._hasPausedChild()||(E=!0,T="onComplete",M=!!this._timeline.autoRemoveChildren,this._duration===0&&(0>=I&&I>=-1e-7||0>et||et===d)&&et!==I&&this._first&&(M=!0,et>d&&(T="onReverseComplete"))),this._rawPrevTime=this._duration||!k||I||this._rawPrevTime===I?I:d,this._yoyo&&1&this._cycle?this._time=I=0:(this._time=J,I=J+1e-4);else if(1e-7>I)if(this._locked||(this._totalTime=this._cycle=0),this._time=0,(N!==0||J===0&&et!==d&&(et>0||0>I&&et>=0)&&!this._locked)&&(T="onReverseComplete",E=this._reversed),0>I)this._active=!1,this._timeline.autoRemoveChildren&&this._reversed?(M=E=!0,T="onReverseComplete"):et>=0&&this._first&&(M=!0),this._rawPrevTime=I;else{if(this._rawPrevTime=J||!k||I||this._rawPrevTime===I?I:d,I===0&&E)for(F=this._first;F&&F._startTime===0;)F._duration||(E=!1),F=F._next;I=0,this._initted||(M=!0)}else if(J===0&&0>et&&(M=!0),this._time=this._rawPrevTime=I,this._locked||(this._totalTime=I,this._repeat!==0&&(R=J+this._repeatDelay,this._cycle=this._totalTime/R>>0,this._cycle!==0&&this._cycle===this._totalTime/R&&I>=$&&this._cycle--,this._time=this._totalTime-this._cycle*R,this._yoyo&&1&this._cycle&&(this._time=J-this._time),this._time>J?(this._time=J,I=J+1e-4):this._time<0?this._time=I=0:I=this._time)),this._hasPause&&!this._forcingPlayhead&&!k){if(I=this._time,I>=N||this._repeat&&G!==this._cycle)for(F=this._first;F&&F._startTime<=I&&!b;)F._duration||F.data!=="isPause"||F.ratio||F._startTime===0&&this._rawPrevTime===0||(b=F),F=F._next;else for(F=this._last;F&&F._startTime>=I&&!b;)F._duration||F.data==="isPause"&&F._rawPrevTime>0&&(b=F),F=F._prev;b&&b._startTime<J&&(this._time=I=b._startTime,this._totalTime=I+this._cycle*(this._totalDuration+this._repeatDelay))}if(this._cycle!==G&&!this._locked){var Pt=this._yoyo&&(1&G)!==0,Et=Pt===(this._yoyo&&(1&this._cycle)!==0),Ct=this._totalTime,fe=this._cycle,re=this._rawPrevTime,Ft=this._time;if(this._totalTime=G*J,this._cycle<G?Pt=!Pt:this._totalTime+=J,this._time=N,this._rawPrevTime=J===0?et-1e-4:et,this._cycle=G,this._locked=!0,N=Pt?0:J,this.render(N,k,J===0),k||this._gc||this.vars.onRepeat&&(this._cycle=fe,this._locked=!1,this._callback("onRepeat")),N!==this._time||(Et&&(this._cycle=G,this._locked=!0,N=Pt?J+1e-4:-1e-4,this.render(N,!0,!1)),this._locked=!1,this._paused&&!yt))return;this._time=Ft,this._totalTime=Ct,this._cycle=fe,this._rawPrevTime=re}if(!(this._time!==N&&this._first||D||M||b))return void($!==this._totalTime&&this._onUpdate&&(k||this._callback("onUpdate")));if(this._initted||(this._initted=!0),this._active||!this._paused&&this._totalTime!==$&&I>0&&(this._active=!0),$===0&&this.vars.onStart&&(this._totalTime===0&&this._totalDuration||k||this._callback("onStart")),U=this._time,U>=N)for(F=this._first;F&&(L=F._next,U===this._time&&(!this._paused||yt));)(F._active||F._startTime<=this._time&&!F._paused&&!F._gc)&&(b===F&&this.pause(),F._reversed?F.render((F._dirty?F.totalDuration():F._totalDuration)-(I-F._startTime)*F._timeScale,k,D):F.render((I-F._startTime)*F._timeScale,k,D)),F=L;else for(F=this._last;F&&(L=F._prev,U===this._time&&(!this._paused||yt));){if(F._active||F._startTime<=N&&!F._paused&&!F._gc){if(b===F){for(b=F._prev;b&&b.endTime()>this._time;)b.render(b._reversed?b.totalDuration()-(I-b._startTime)*b._timeScale:(I-b._startTime)*b._timeScale,k,D),b=b._prev;b=null,this.pause()}F._reversed?F.render((F._dirty?F.totalDuration():F._totalDuration)-(I-F._startTime)*F._timeScale,k,D):F.render((I-F._startTime)*F._timeScale,k,D)}F=L}this._onUpdate&&(k||(m.length&&_(),this._callback("onUpdate"))),T&&(this._locked||this._gc||(ct===this._startTime||It!==this._timeScale)&&(this._time===0||j>=this.totalDuration())&&(E&&(m.length&&_(),this._timeline.autoRemoveChildren&&this._enabled(!1,!1),this._active=!1),!k&&this.vars[T]&&this._callback(T)))},A.getActive=function(I,k,D){I==null&&(I=!0),k==null&&(k=!0),D==null&&(D=!1);var F,E,L=[],T=this.getChildren(I,k,D),M=0,R=T.length;for(F=0;R>F;F++)E=T[F],E.isActive()&&(L[M++]=E);return L},A.getLabelAfter=function(I){I||I!==0&&(I=this._time);var k,D=this.getLabelsArray(),F=D.length;for(k=0;F>k;k++)if(D[k].time>I)return D[k].name;return null},A.getLabelBefore=function(I){I==null&&(I=this._time);for(var k=this.getLabelsArray(),D=k.length;--D>-1;)if(k[D].time<I)return k[D].name;return null},A.getLabelsArray=function(){var I,k=[],D=0;for(I in this._labels)k[D++]={time:this._labels[I],name:I};return k.sort(function(F,E){return F.time-E.time}),k},A.invalidate=function(){return this._locked=!1,x.prototype.invalidate.call(this)},A.progress=function(I,k){return arguments.length?this.totalTime(this.duration()*(this._yoyo&&1&this._cycle?1-I:I)+this._cycle*(this._duration+this._repeatDelay),k):this._time/this.duration()||0},A.totalProgress=function(I,k){return arguments.length?this.totalTime(this.totalDuration()*I,k):this._totalTime/this.totalDuration()||0},A.totalDuration=function(I){return arguments.length?this._repeat!==-1&&I?this.timeScale(this.totalDuration()/I):this:(this._dirty&&(x.prototype.totalDuration.call(this),this._totalDuration=this._repeat===-1?999999999999:this._duration*(this._repeat+1)+this._repeatDelay*this._repeat),this._totalDuration)},A.time=function(I,k){return arguments.length?(this._dirty&&this.totalDuration(),I>this._duration&&(I=this._duration),this._yoyo&&1&this._cycle?I=this._duration-I+this._cycle*(this._duration+this._repeatDelay):this._repeat!==0&&(I+=this._cycle*(this._duration+this._repeatDelay)),this.totalTime(I,k)):this._time},A.repeat=function(I){return arguments.length?(this._repeat=I,this._uncache(!0)):this._repeat},A.repeatDelay=function(I){return arguments.length?(this._repeatDelay=I,this._uncache(!0)):this._repeatDelay},A.yoyo=function(I){return arguments.length?(this._yoyo=I,this):this._yoyo},A.currentLabel=function(I){return arguments.length?this.seek(I,!0):this.getLabelBefore(this._time+1e-8)},c},!0),function(){var x=180/Math.PI,a=[],o=[],c=[],d={},u=ln._gsDefine.globals,m=function(T,M,R,b){R===b&&(R=b-(b-M)/1e6),T===M&&(M=T+(R-T)/1e6),this.a=T,this.b=M,this.c=R,this.d=b,this.da=b-T,this.ca=R-T,this.ba=M-T},_=",x,y,z,left,top,right,bottom,marginTop,marginLeft,marginRight,marginBottom,paddingLeft,paddingTop,paddingRight,paddingBottom,backgroundPosition,backgroundPosition_y,",y=function(T,M,R,b){var U={a:T},N={},j={},J={c:b},$=(T+M)/2,ct=(M+R)/2,It=(R+b)/2,et=($+ct)/2,yt=(ct+It)/2,G=(yt-et)/8;return U.b=$+(T-$)/4,N.b=et+G,U.c=N.a=(U.b+N.b)/2,N.c=j.a=(et+yt)/2,j.b=yt-G,J.b=It+(b-It)/4,j.c=J.a=(j.b+J.b)/2,[U,N,j,J]},S=function(T,M,R,b,U){var N,j,J,$,ct,It,et,yt,G,Pt,Et,Ct,fe,re=T.length-1,Ft=0,Ot=T[0].a;for(N=0;re>N;N++)ct=T[Ft],j=ct.a,J=ct.d,$=T[Ft+1].d,U?(Et=a[N],Ct=o[N],fe=(Ct+Et)*M*.25/(b?.5:c[N]||.5),It=J-(J-j)*(b?.5*M:Et!==0?fe/Et:0),et=J+($-J)*(b?.5*M:Ct!==0?fe/Ct:0),yt=J-(It+((et-It)*(3*Et/(Et+Ct)+.5)/4||0))):(It=J-(J-j)*M*.5,et=J+($-J)*M*.5,yt=J-(It+et)/2),It+=yt,et+=yt,ct.c=G=It,N!==0?ct.b=Ot:ct.b=Ot=ct.a+.6*(ct.c-ct.a),ct.da=J-j,ct.ca=G-j,ct.ba=Ot-j,R?(Pt=y(j,Ot,G,J),T.splice(Ft,1,Pt[0],Pt[1],Pt[2],Pt[3]),Ft+=4):Ft++,Ot=et;ct=T[Ft],ct.b=Ot,ct.c=Ot+.4*(ct.d-Ot),ct.da=ct.d-ct.a,ct.ca=ct.c-ct.a,ct.ba=Ot-ct.a,R&&(Pt=y(ct.a,Ot,ct.c,ct.d),T.splice(Ft,1,Pt[0],Pt[1],Pt[2],Pt[3]))},A=function(T,M,R,b){var U,N,j,J,$,ct,It=[];if(b)for(T=[b].concat(T),N=T.length;--N>-1;)typeof(ct=T[N][M])=="string"&&ct.charAt(1)==="="&&(T[N][M]=b[M]+Number(ct.charAt(0)+ct.substr(2)));if(U=T.length-2,0>U)return It[0]=new m(T[0][M],0,0,T[0][M]),It;for(N=0;U>N;N++)j=T[N][M],J=T[N+1][M],It[N]=new m(j,0,0,J),R&&($=T[N+2][M],a[N]=(a[N]||0)+(J-j)*(J-j),o[N]=(o[N]||0)+($-J)*($-J));return It[N]=new m(T[N][M],0,0,T[N+1][M]),It},I=function(T,M,R,b,U,N){var j,J,$,ct,It,et,yt,G,Pt={},Et=[],Ct=N||T[0];U=typeof U=="string"?","+U+",":_,M==null&&(M=1);for(J in T[0])Et.push(J);if(T.length>1){for(G=T[T.length-1],yt=!0,j=Et.length;--j>-1;)if(J=Et[j],Math.abs(Ct[J]-G[J])>.05){yt=!1;break}yt&&(T=T.concat(),N&&T.unshift(N),T.push(T[1]),N=T[T.length-3])}for(a.length=o.length=c.length=0,j=Et.length;--j>-1;)J=Et[j],d[J]=U.indexOf(","+J+",")!==-1,Pt[J]=A(T,J,d[J],N);for(j=a.length;--j>-1;)a[j]=Math.sqrt(a[j]),o[j]=Math.sqrt(o[j]);if(!b){for(j=Et.length;--j>-1;)if(d[J])for($=Pt[Et[j]],et=$.length-1,ct=0;et>ct;ct++)It=$[ct+1].da/o[ct]+$[ct].da/a[ct]||0,c[ct]=(c[ct]||0)+It*It;for(j=c.length;--j>-1;)c[j]=Math.sqrt(c[j])}for(j=Et.length,ct=R?4:1;--j>-1;)J=Et[j],$=Pt[J],S($,M,R,b,d[J]),yt&&($.splice(0,ct),$.splice($.length-ct,ct));return Pt},k=function(T,M,R){M=M||"soft";var b,U,N,j,J,$,ct,It,et,yt,G,Pt={},Et=M==="cubic"?3:2,Ct=M==="soft",fe=[];if(Ct&&R&&(T=[R].concat(T)),T==null||T.length<Et+1)throw"invalid Bezier data";for(et in T[0])fe.push(et);for($=fe.length;--$>-1;){for(et=fe[$],Pt[et]=J=[],yt=0,It=T.length,ct=0;It>ct;ct++)b=R==null?T[ct][et]:typeof(G=T[ct][et])=="string"&&G.charAt(1)==="="?R[et]+Number(G.charAt(0)+G.substr(2)):Number(G),Ct&&ct>1&&It-1>ct&&(J[yt++]=(b+J[yt-2])/2),J[yt++]=b;for(It=yt-Et+1,yt=0,ct=0;It>ct;ct+=Et)b=J[ct],U=J[ct+1],N=J[ct+2],j=Et===2?0:J[ct+3],J[yt++]=G=Et===3?new m(b,U,N,j):new m(b,(2*U+b)/3,(2*U+N)/3,N);J.length=yt}return Pt},D=function(T,M,R){for(var b,U,N,j,J,$,ct,It,et,yt,G,Pt=1/R,Et=T.length;--Et>-1;)for(yt=T[Et],N=yt.a,j=yt.d-N,J=yt.c-N,$=yt.b-N,b=U=0,It=1;R>=It;It++)ct=Pt*It,et=1-ct,b=U-(U=(ct*ct*j+3*et*(ct*J+et*$))*ct),G=Et*R+It-1,M[G]=(M[G]||0)+b*b},F=function(T,M){M=M>>0||6;var R,b,U,N,j=[],J=[],$=0,ct=0,It=M-1,et=[],yt=[];for(R in T)D(T[R],j,M);for(U=j.length,b=0;U>b;b++)$+=Math.sqrt(j[b]),N=b%M,yt[N]=$,N===It&&(ct+=$,N=b/M>>0,et[N]=yt,J[N]=ct,$=0,yt=[]);return{length:ct,lengths:J,segments:et}},E=ln._gsDefine.plugin({propName:"bezier",priority:-1,version:"1.3.8",API:2,global:!0,init:function(T,M,R){this._target=T,M instanceof Array&&(M={values:M}),this._func={},this._mod={},this._props=[],this._timeRes=M.timeResolution==null?6:parseInt(M.timeResolution,10);var b,U,N,j,J,$=M.values||[],ct={},It=$[0],et=M.autoRotate||R.vars.orientToBezier;this._autoRotate=et?et instanceof Array?et:[["x","y","rotation",et===!0?0:Number(et)||0]]:null;for(b in It)this._props.push(b);for(N=this._props.length;--N>-1;)b=this._props[N],this._overwriteProps.push(b),U=this._func[b]=typeof T[b]=="function",ct[b]=U?T[b.indexOf("set")||typeof T["get"+b.substr(3)]!="function"?b:"get"+b.substr(3)]():parseFloat(T[b]),J||ct[b]!==$[0][b]&&(J=ct);if(this._beziers=M.type!=="cubic"&&M.type!=="quadratic"&&M.type!=="soft"?I($,isNaN(M.curviness)?1:M.curviness,!1,M.type==="thruBasic",M.correlate,J):k($,M.type,ct),this._segCount=this._beziers[b].length,this._timeRes){var yt=F(this._beziers,this._timeRes);this._length=yt.length,this._lengths=yt.lengths,this._segments=yt.segments,this._l1=this._li=this._s1=this._si=0,this._l2=this._lengths[0],this._curSeg=this._segments[0],this._s2=this._curSeg[0],this._prec=1/this._curSeg.length}if(et=this._autoRotate)for(this._initialRotations=[],et[0]instanceof Array||(this._autoRotate=et=[et]),N=et.length;--N>-1;){for(j=0;3>j;j++)b=et[N][j],this._func[b]=typeof T[b]=="function"?T[b.indexOf("set")||typeof T["get"+b.substr(3)]!="function"?b:"get"+b.substr(3)]:!1;b=et[N][2],this._initialRotations[N]=(this._func[b]?this._func[b].call(this._target):this._target[b])||0,this._overwriteProps.push(b)}return this._startRatio=R.vars.runBackwards?1:0,!0},set:function(T){var M,R,b,U,N,j,J,$,ct,It,et=this._segCount,yt=this._func,G=this._target,Pt=T!==this._startRatio;if(this._timeRes){if(ct=this._lengths,It=this._curSeg,T*=this._length,b=this._li,T>this._l2&&et-1>b){for($=et-1;$>b&&(this._l2=ct[++b])<=T;);this._l1=ct[b-1],this._li=b,this._curSeg=It=this._segments[b],this._s2=It[this._s1=this._si=0]}else if(T<this._l1&&b>0){for(;b>0&&(this._l1=ct[--b])>=T;);b===0&&T<this._l1?this._l1=0:b++,this._l2=ct[b],this._li=b,this._curSeg=It=this._segments[b],this._s1=It[(this._si=It.length-1)-1]||0,this._s2=It[this._si]}if(M=b,T-=this._l1,b=this._si,T>this._s2&&b<It.length-1){for($=It.length-1;$>b&&(this._s2=It[++b])<=T;);this._s1=It[b-1],this._si=b}else if(T<this._s1&&b>0){for(;b>0&&(this._s1=It[--b])>=T;);b===0&&T<this._s1?this._s1=0:b++,this._s2=It[b],this._si=b}j=(b+(T-this._s1)/(this._s2-this._s1))*this._prec||0}else M=0>T?0:T>=1?et-1:et*T>>0,j=(T-M*(1/et))*et;for(R=1-j,b=this._props.length;--b>-1;)U=this._props[b],N=this._beziers[U][M],J=(j*j*N.da+3*R*(j*N.ca+R*N.ba))*j+N.a,this._mod[U]&&(J=this._mod[U](J,G)),yt[U]?G[U](J):G[U]=J;if(this._autoRotate){var Et,Ct,fe,re,Ft,Ot,Bt,ke=this._autoRotate;for(b=ke.length;--b>-1;)U=ke[b][2],Ot=ke[b][3]||0,Bt=ke[b][4]===!0?1:x,N=this._beziers[ke[b][0]],Et=this._beziers[ke[b][1]],N&&Et&&(N=N[M],Et=Et[M],Ct=N.a+(N.b-N.a)*j,re=N.b+(N.c-N.b)*j,Ct+=(re-Ct)*j,re+=(N.c+(N.d-N.c)*j-re)*j,fe=Et.a+(Et.b-Et.a)*j,Ft=Et.b+(Et.c-Et.b)*j,fe+=(Ft-fe)*j,Ft+=(Et.c+(Et.d-Et.c)*j-Ft)*j,J=Pt?Math.atan2(Ft-fe,re-Ct)*Bt+Ot:this._initialRotations[b],this._mod[U]&&(J=this._mod[U](J,G)),yt[U]?G[U](J):G[U]=J)}}}),L=E.prototype;E.bezierThrough=I,E.cubicToQuadratic=y,E._autoCSS=!0,E.quadraticToCubic=function(T,M,R){return new m(T,(2*M+T)/3,(2*M+R)/3,R)},E._cssRegister=function(){var T=u.CSSPlugin;if(T){var M=T._internals,R=M._parseToProxy,b=M._setPluginRatio,U=M.CSSPropTween;M._registerComplexSpecialProp("bezier",{parser:function(N,j,J,$,ct,It){j instanceof Array&&(j={values:j}),It=new E;var et,yt,G,Pt=j.values,Et=Pt.length-1,Ct=[],fe={};if(0>Et)return ct;for(et=0;Et>=et;et++)G=R(N,Pt[et],$,ct,It,Et!==et),Ct[et]=G.end;for(yt in j)fe[yt]=j[yt];return fe.values=Ct,ct=new U(N,"bezier",0,0,G.pt,2),ct.data=G,ct.plugin=It,ct.setRatio=b,fe.autoRotate===0&&(fe.autoRotate=!0),!fe.autoRotate||fe.autoRotate instanceof Array||(et=fe.autoRotate===!0?0:Number(fe.autoRotate),fe.autoRotate=G.end.left!=null?[["left","top","rotation",et,!1]]:G.end.x!=null?[["x","y","rotation",et,!1]]:!1),fe.autoRotate&&($._transform||$._enableTransforms(!1),G.autoRotate=$._target._gsTransform,G.proxy.rotation=G.autoRotate.rotation||0,$._overwriteProps.push("rotation")),It._onInitTween(G.proxy,fe,$._tween),ct}})}},L._mod=function(T){for(var M,R=this._overwriteProps,b=R.length;--b>-1;)M=T[R[b]],M&&typeof M=="function"&&(this._mod[R[b]]=M)},L._kill=function(T){var M,R,b=this._props;for(M in this._beziers)if(M in T)for(delete this._beziers[M],delete this._func[M],R=b.length;--R>-1;)b[R]===M&&b.splice(R,1);if(b=this._autoRotate)for(R=b.length;--R>-1;)T[b[R][2]]&&b.splice(R,1);return this._super._kill.call(this,T)}}(),ln._gsDefine("plugins.CSSPlugin",["plugins.TweenPlugin","TweenLite"],function(x,a){var o,c,d,u,m=function(){x.call(this,"css"),this._overwriteProps.length=0,this.setRatio=m.prototype.setRatio},_=ln._gsDefine.globals,y={},S=m.prototype=new x("css");S.constructor=m,m.version="2.0.2",m.API=2,m.defaultTransformPerspective=0,m.defaultSkewType="compensated",m.defaultSmoothOrigin=!0,S="px",m.suffixMap={top:S,right:S,bottom:S,left:S,width:S,height:S,fontSize:S,padding:S,margin:S,perspective:S,lineHeight:""};var A,I,k,D,F,E,L,T,M=/(?:\-|\.|\b)(\d|\.|e\-)+/g,R=/(?:\d|\-\d|\.\d|\-\.\d|\+=\d|\-=\d|\+=.\d|\-=\.\d)+/g,b=/(?:\+=|\-=|\-|\b)[\d\-\.]+[a-zA-Z0-9]*(?:%|\b)/gi,U=/(?![+-]?\d*\.?\d+|[+-]|e[+-]\d+)[^0-9]/g,N=/(?:\d|\-|\+|=|#|\.)*/g,j=/opacity *= *([^)]*)/i,J=/opacity:([^;]*)/i,$=/alpha\(opacity *=.+?\)/i,ct=/^(rgb|hsl)/,It=/([A-Z])/g,et=/-([a-z])/gi,yt=/(^(?:url\(\"|url\())|(?:(\"\))$|\)$)/gi,G=function(V,tt){return tt.toUpperCase()},Pt=/(?:Left|Right|Width)/i,Et=/(M11|M12|M21|M22)=[\d\-\.e]+/gi,Ct=/progid\:DXImageTransform\.Microsoft\.Matrix\(.+?\)/i,fe=/,(?=[^\)]*(?:\(|$))/gi,re=/[\s,\(]/i,Ft=Math.PI/180,Ot=180/Math.PI,Bt={},ke={style:{}},ce=ln.document||{createElement:function(){return ke}},Yt=function(V,tt){return ce.createElementNS?ce.createElementNS(tt||"http://www.w3.org/1999/xhtml",V):ce.createElement(V)},$e=Yt("div"),Oi=Yt("img"),Oe=m._internals={_specialProps:y},Ge=(ln.navigator||{}).userAgent||"",di=function(){var V=Ge.indexOf("Android"),tt=Yt("a");return k=Ge.indexOf("Safari")!==-1&&Ge.indexOf("Chrome")===-1&&(V===-1||parseFloat(Ge.substr(V+8,2))>3),F=k&&parseFloat(Ge.substr(Ge.indexOf("Version/")+8,2))<6,D=Ge.indexOf("Firefox")!==-1,(/MSIE ([0-9]{1,}[\.0-9]{0,})/.exec(Ge)||/Trident\/.*rv:([0-9]{1,}[\.0-9]{0,})/.exec(Ge))&&(E=parseFloat(RegExp.$1)),tt?(tt.style.cssText="top:1px;opacity:.55;",/^0.55/.test(tt.style.opacity)):!1}(),Ii=function(V){return j.test(typeof V=="string"?V:(V.currentStyle?V.currentStyle.filter:V.style.filter)||"")?parseFloat(RegExp.$1)/100:1},mn=function(V){ln.console&&console.log(V)},Qi="",W="",Jt=function(V,tt){tt=tt||$e;var lt,at,X=tt.style;if(X[V]!==void 0)return V;for(V=V.charAt(0).toUpperCase()+V.substr(1),lt=["O","Moz","ms","Ms","Webkit"],at=5;--at>-1&&X[lt[at]+V]===void 0;);return at>=0?(W=at===3?"ms":lt[at],Qi="-"+W.toLowerCase()+"-",W+V):null},Wt=(typeof window<"u"?window:ce.defaultView||{getComputedStyle:function(){}}).getComputedStyle,pt=m.getStyle=function(V,tt,lt,at,X){var St;return di||tt!=="opacity"?(!at&&V.style[tt]?St=V.style[tt]:(lt=lt||Wt(V))?St=lt[tt]||lt.getPropertyValue(tt)||lt.getPropertyValue(tt.replace(It,"-$1").toLowerCase()):V.currentStyle&&(St=V.currentStyle[tt]),X==null||St&&St!=="none"&&St!=="auto"&&St!=="auto auto"?St:X):Ii(V)},dt=Oe.convertToPixels=function(V,tt,lt,at,X){if(at==="px"||!at&&tt!=="lineHeight")return lt;if(at==="auto"||!lt)return 0;var St,ht,Rt,Ht=Pt.test(tt),kt=V,Mt=$e.style,he=0>lt,oe=lt===1;if(he&&(lt=-lt),oe&&(lt*=100),tt!=="lineHeight"||at)if(at==="%"&&tt.indexOf("border")!==-1)St=lt/100*(Ht?V.clientWidth:V.clientHeight);else{if(Mt.cssText="border:0 solid red;position:"+pt(V,"position")+";line-height:0;",at!=="%"&&kt.appendChild&&at.charAt(0)!=="v"&&at!=="rem")Mt[Ht?"borderLeftWidth":"borderTopWidth"]=lt+at;else{if(kt=V.parentNode||ce.body,pt(kt,"display").indexOf("flex")!==-1&&(Mt.position="absolute"),ht=kt._gsCache,Rt=a.ticker.frame,ht&&Ht&&ht.time===Rt)return ht.width*lt/100;Mt[Ht?"width":"height"]=lt+at}kt.appendChild($e),St=parseFloat($e[Ht?"offsetWidth":"offsetHeight"]),kt.removeChild($e),Ht&&at==="%"&&m.cacheWidths!==!1&&(ht=kt._gsCache=kt._gsCache||{},ht.time=Rt,ht.width=St/lt*100),St!==0||X||(St=dt(V,tt,lt,at,!0))}else ht=Wt(V).lineHeight,V.style.lineHeight=lt,St=parseFloat(Wt(V).lineHeight),V.style.lineHeight=ht;return oe&&(St/=100),he?-St:St},Dt=Oe.calculateOffset=function(V,tt,lt){if(pt(V,"position",lt)!=="absolute")return 0;var at=tt==="left"?"Left":"Top",X=pt(V,"margin"+at,lt);return V["offset"+at]-(dt(V,tt,parseFloat(X),X.replace(N,""))||0)},ie=function(V,tt){var lt,at,X,St={};if(tt=tt||Wt(V,null))if(lt=tt.length)for(;--lt>-1;)X=tt[lt],(X.indexOf("-transform")===-1||ea===X)&&(St[X.replace(et,G)]=tt.getPropertyValue(X));else for(lt in tt)(lt.indexOf("Transform")===-1||Mn===lt)&&(St[lt]=tt[lt]);else if(tt=V.currentStyle||V.style)for(lt in tt)typeof lt=="string"&&St[lt]===void 0&&(St[lt.replace(et,G)]=tt[lt]);return di||(St.opacity=Ii(V)),at=us(V,tt,!1),St.rotation=at.rotation,St.skewX=at.skewX,St.scaleX=at.scaleX,St.scaleY=at.scaleY,St.x=at.x,St.y=at.y,vr&&(St.z=at.z,St.rotationX=at.rotationX,St.rotationY=at.rotationY,St.scaleZ=at.scaleZ),St.filters&&delete St.filters,St},Kt=function(V,tt,lt,at,X){var St,ht,Rt,Ht={},kt=V.style;for(ht in lt)ht!=="cssText"&&ht!=="length"&&isNaN(ht)&&(tt[ht]!==(St=lt[ht])||X&&X[ht])&&ht.indexOf("Origin")===-1&&(typeof St=="number"||typeof St=="string")&&(Ht[ht]=St!=="auto"||ht!=="left"&&ht!=="top"?St!==""&&St!=="auto"&&St!=="none"||typeof tt[ht]!="string"||tt[ht].replace(U,"")===""?St:0:Dt(V,ht),kt[ht]!==void 0&&(Rt=new ni(kt,ht,kt[ht],Rt)));if(at)for(ht in at)ht!=="className"&&(Ht[ht]=at[ht]);return{difs:Ht,firstMPT:Rt}},z={width:["Left","Right"],height:["Top","Bottom"]},Q=["marginLeft","marginRight","marginTop","marginBottom"],ot=function(V,tt,lt){if((V.nodeName+"").toLowerCase()==="svg")return(lt||Wt(V))[tt]||0;if(V.getCTM&&Ya(V))return V.getBBox()[tt]||0;var at=parseFloat(tt==="width"?V.offsetWidth:V.offsetHeight),X=z[tt],St=X.length;for(lt=lt||Wt(V,null);--St>-1;)at-=parseFloat(pt(V,"padding"+X[St],lt,!0))||0,at-=parseFloat(pt(V,"border"+X[St]+"Width",lt,!0))||0;return at},nt=function(V,tt){if(V==="contain"||V==="auto"||V==="auto auto")return V+" ";(V==null||V==="")&&(V="0 0");var lt,at=V.split(" "),X=V.indexOf("left")!==-1?"0%":V.indexOf("right")!==-1?"100%":at[0],St=V.indexOf("top")!==-1?"0%":V.indexOf("bottom")!==-1?"100%":at[1];if(at.length>3&&!tt){for(at=V.split(", ").join(",").split(","),V=[],lt=0;lt<at.length;lt++)V.push(nt(at[lt]));return V.join(",")}return St==null?St=X==="center"?"50%":"0":St==="center"&&(St="50%"),(X==="center"||isNaN(parseFloat(X))&&(X+"").indexOf("=")===-1)&&(X="50%"),V=X+" "+St+(at.length>2?" "+at[2]:""),tt&&(tt.oxp=X.indexOf("%")!==-1,tt.oyp=St.indexOf("%")!==-1,tt.oxr=X.charAt(1)==="=",tt.oyr=St.charAt(1)==="=",tt.ox=parseFloat(X.replace(U,"")),tt.oy=parseFloat(St.replace(U,"")),tt.v=V),tt||V},vt=function(V,tt){return typeof V=="function"&&(V=V(T,L)),typeof V=="string"&&V.charAt(1)==="="?parseInt(V.charAt(0)+"1",10)*parseFloat(V.substr(2)):parseFloat(V)-parseFloat(tt)||0},Gt=function(V,tt){typeof V=="function"&&(V=V(T,L));var lt=typeof V=="string"&&V.charAt(1)==="=";return typeof V=="string"&&V.charAt(V.length-2)==="v"&&(V=(lt?V.substr(0,2):0)+window["inner"+(V.substr(-2)==="vh"?"Height":"Width")]*(parseFloat(lt?V.substr(2):V)/100)),V==null?tt:lt?parseInt(V.charAt(0)+"1",10)*parseFloat(V.substr(2))+tt:parseFloat(V)||0},Xt=function(V,tt,lt,at){var X,St,ht,Rt,Ht,kt=1e-6;return typeof V=="function"&&(V=V(T,L)),V==null?Rt=tt:typeof V=="number"?Rt=V:(X=360,St=V.split("_"),Ht=V.charAt(1)==="=",ht=(Ht?parseInt(V.charAt(0)+"1",10)*parseFloat(St[0].substr(2)):parseFloat(St[0]))*(V.indexOf("rad")===-1?1:Ot)-(Ht?0:tt),St.length&&(at&&(at[lt]=tt+ht),V.indexOf("short")!==-1&&(ht%=X,ht!==ht%(X/2)&&(ht=0>ht?ht+X:ht-X)),V.indexOf("_cw")!==-1&&0>ht?ht=(ht+9999999999*X)%X-(ht/X|0)*X:V.indexOf("ccw")!==-1&&ht>0&&(ht=(ht-9999999999*X)%X-(ht/X|0)*X)),Rt=tt+ht),kt>Rt&&Rt>-kt&&(Rt=0),Rt},jt={aqua:[0,255,255],lime:[0,255,0],silver:[192,192,192],black:[0,0,0],maroon:[128,0,0],teal:[0,128,128],blue:[0,0,255],navy:[0,0,128],white:[255,255,255],fuchsia:[255,0,255],olive:[128,128,0],yellow:[255,255,0],orange:[255,165,0],gray:[128,128,128],purple:[128,0,128],green:[0,128,0],red:[255,0,0],pink:[255,192,203],cyan:[0,255,255],transparent:[255,255,255,0]},Ne=function(V,tt,lt){return V=0>V?V+1:V>1?V-1:V,255*(1>6*V?tt+(lt-tt)*V*6:.5>V?lt:2>3*V?tt+(lt-tt)*(2/3-V)*6:tt)+.5|0},Re=m.parseColor=function(V,tt){var lt,at,X,St,ht,Rt,Ht,kt,Mt,he,oe;if(V)if(typeof V=="number")lt=[V>>16,V>>8&255,255&V];else{if(V.charAt(V.length-1)===","&&(V=V.substr(0,V.length-1)),jt[V])lt=jt[V];else if(V.charAt(0)==="#")V.length===4&&(at=V.charAt(1),X=V.charAt(2),St=V.charAt(3),V="#"+at+at+X+X+St+St),V=parseInt(V.substr(1),16),lt=[V>>16,V>>8&255,255&V];else if(V.substr(0,3)==="hsl")if(lt=oe=V.match(M),tt){if(V.indexOf("=")!==-1)return V.match(R)}else ht=Number(lt[0])%360/360,Rt=Number(lt[1])/100,Ht=Number(lt[2])/100,X=.5>=Ht?Ht*(Rt+1):Ht+Rt-Ht*Rt,at=2*Ht-X,lt.length>3&&(lt[3]=Number(lt[3])),lt[0]=Ne(ht+1/3,at,X),lt[1]=Ne(ht,at,X),lt[2]=Ne(ht-1/3,at,X);else lt=V.match(M)||jt.transparent;lt[0]=Number(lt[0]),lt[1]=Number(lt[1]),lt[2]=Number(lt[2]),lt.length>3&&(lt[3]=Number(lt[3]))}else lt=jt.black;return tt&&!oe&&(at=lt[0]/255,X=lt[1]/255,St=lt[2]/255,kt=Math.max(at,X,St),Mt=Math.min(at,X,St),Ht=(kt+Mt)/2,kt===Mt?ht=Rt=0:(he=kt-Mt,Rt=Ht>.5?he/(2-kt-Mt):he/(kt+Mt),ht=kt===at?(X-St)/he+(St>X?6:0):kt===X?(St-at)/he+2:(at-X)/he+4,ht*=60),lt[0]=ht+.5|0,lt[1]=100*Rt+.5|0,lt[2]=100*Ht+.5|0),lt},ge=function(V,tt){var lt,at,X,St=V.match(we)||[],ht=0,Rt="";if(!St.length)return V;for(lt=0;lt<St.length;lt++)at=St[lt],X=V.substr(ht,V.indexOf(at,ht)-ht),ht+=X.length+at.length,at=Re(at,tt),at.length===3&&at.push(1),Rt+=X+(tt?"hsla("+at[0]+","+at[1]+"%,"+at[2]+"%,"+at[3]:"rgba("+at.join(","))+")";return Rt+V.substr(ht)},we="(?:\\b(?:(?:rgb|rgba|hsl|hsla)\\(.+?\\))|\\B#(?:[0-9a-f]{3}){1,2}\\b";for(S in jt)we+="|"+S+"\\b";we=new RegExp(we+")","gi"),m.colorStringFilter=function(V){var tt,lt=V[0]+" "+V[1];we.test(lt)&&(tt=lt.indexOf("hsl(")!==-1||lt.indexOf("hsla(")!==-1,V[0]=ge(V[0],tt),V[1]=ge(V[1],tt)),we.lastIndex=0},a.defaultStringFilter||(a.defaultStringFilter=m.colorStringFilter);var _i=function(V,tt,lt,at){if(V==null)return function(oe){return oe};var X,St=tt?(V.match(we)||[""])[0]:"",ht=V.split(St).join("").match(b)||[],Rt=V.substr(0,V.indexOf(ht[0])),Ht=V.charAt(V.length-1)===")"?")":"",kt=V.indexOf(" ")!==-1?" ":",",Mt=ht.length,he=Mt>0?ht[0].replace(M,""):"";return Mt?X=tt?function(oe){var te,_e,ue,je;if(typeof oe=="number")oe+=he;else if(at&&fe.test(oe)){for(je=oe.replace(fe,"|").split("|"),ue=0;ue<je.length;ue++)je[ue]=X(je[ue]);return je.join(",")}if(te=(oe.match(we)||[St])[0],_e=oe.split(te).join("").match(b)||[],ue=_e.length,Mt>ue--)for(;++ue<Mt;)_e[ue]=lt?_e[(ue-1)/2|0]:ht[ue];return Rt+_e.join(kt)+kt+te+Ht+(oe.indexOf("inset")!==-1?" inset":"")}:function(oe){var te,_e,ue;if(typeof oe=="number")oe+=he;else if(at&&fe.test(oe)){for(_e=oe.replace(fe,"|").split("|"),ue=0;ue<_e.length;ue++)_e[ue]=X(_e[ue]);return _e.join(",")}if(te=oe.match(b)||[],ue=te.length,Mt>ue--)for(;++ue<Mt;)te[ue]=lt?te[(ue-1)/2|0]:ht[ue];return Rt+te.join(kt)+Ht}:function(oe){return oe}},Si=function(V){return V=V.split(","),function(tt,lt,at,X,St,ht,Rt){var Ht,kt=(lt+"").split(" ");for(Rt={},Ht=0;4>Ht;Ht++)Rt[V[Ht]]=kt[Ht]=kt[Ht]||kt[(Ht-1)/2>>0];return X.parse(tt,Rt,St,ht)}},ni=(Oe._setPluginRatio=function(V){this.plugin.setRatio(V);for(var tt,lt,at,X,St,ht=this.data,Rt=ht.proxy,Ht=ht.firstMPT,kt=1e-6;Ht;)tt=Rt[Ht.v],Ht.r?tt=Ht.r(tt):kt>tt&&tt>-kt&&(tt=0),Ht.t[Ht.p]=tt,Ht=Ht._next;if(ht.autoRotate&&(ht.autoRotate.rotation=ht.mod?ht.mod.call(this._tween,Rt.rotation,this.t,this._tween):Rt.rotation),V===1||V===0)for(Ht=ht.firstMPT,St=V===1?"e":"b";Ht;){if(lt=Ht.t,lt.type){if(lt.type===1){for(X=lt.xs0+lt.s+lt.xs1,at=1;at<lt.l;at++)X+=lt["xn"+at]+lt["xs"+(at+1)];lt[St]=X}}else lt[St]=lt.s+lt.xs0;Ht=Ht._next}},function(V,tt,lt,at,X){this.t=V,this.p=tt,this.v=lt,this.r=X,at&&(at._prev=this,this._next=at)}),Ei=(Oe._parseToProxy=function(V,tt,lt,at,X,St){var ht,Rt,Ht,kt,Mt,he=at,oe={},te={},_e=lt._transform,ue=Bt;for(lt._transform=null,Bt=tt,at=Mt=lt.parse(V,tt,at,X),Bt=ue,St&&(lt._transform=_e,he&&(he._prev=null,he._prev&&(he._prev._next=null)));at&&at!==he;){if(at.type<=1&&(Rt=at.p,te[Rt]=at.s+at.c,oe[Rt]=at.s,St||(kt=new ni(at,"s",Rt,kt,at.r),at.c=0),at.type===1))for(ht=at.l;--ht>0;)Ht="xn"+ht,Rt=at.p+"_"+Ht,te[Rt]=at.data[Ht],oe[Rt]=at[Ht],St||(kt=new ni(at,Ht,Rt,kt,at.rxp[Ht]));at=at._next}return{proxy:oe,end:te,firstMPT:kt,pt:Mt}},Oe.CSSPropTween=function(V,tt,lt,at,X,St,ht,Rt,Ht,kt,Mt){this.t=V,this.p=tt,this.s=lt,this.c=at,this.n=ht||tt,V instanceof Ei||u.push(this.n),this.r=Rt&&(typeof Rt=="function"?Rt:Math.round),this.type=St||0,Ht&&(this.pr=Ht,o=!0),this.b=kt===void 0?lt:kt,this.e=Mt===void 0?lt+at:Mt,X&&(this._next=X,X._prev=this)}),qr=function(V,tt,lt,at,X,St){var ht=new Ei(V,tt,lt,at-lt,X,-1,St);return ht.b=lt,ht.e=ht.xs0=at,ht},or=m.parseComplex=function(V,tt,lt,at,X,St,ht,Rt,Ht,kt){lt=lt||St||"",typeof at=="function"&&(at=at(T,L)),ht=new Ei(V,tt,0,0,ht,kt?2:1,null,!1,Rt,lt,at),at+="",X&&we.test(at+lt)&&(at=[lt,at],m.colorStringFilter(at),lt=at[0],at=at[1]);var Mt,he,oe,te,_e,ue,je,He,ci,Be,ye,Fe,pe,mi=lt.split(", ").join(",").split(" "),Pe=at.split(", ").join(",").split(" "),xe=mi.length,Le=A!==!1;for((at.indexOf(",")!==-1||lt.indexOf(",")!==-1)&&((at+lt).indexOf("rgb")!==-1||(at+lt).indexOf("hsl")!==-1?(mi=mi.join(" ").replace(fe,", ").split(" "),Pe=Pe.join(" ").replace(fe,", ").split(" ")):(mi=mi.join(" ").split(",").join(", ").split(" "),Pe=Pe.join(" ").split(",").join(", ").split(" ")),xe=mi.length),xe!==Pe.length&&(mi=(St||"").split(" "),xe=mi.length),ht.plugin=Ht,ht.setRatio=kt,we.lastIndex=0,Mt=0;xe>Mt;Mt++)if(te=mi[Mt],_e=Pe[Mt]+"",He=parseFloat(te),He||He===0)ht.appendXtra("",He,vt(_e,He),_e.replace(R,""),Le&&_e.indexOf("px")!==-1?Math.round:!1,!0);else if(X&&we.test(te))Fe=_e.indexOf(")")+1,Fe=")"+(Fe?_e.substr(Fe):""),pe=_e.indexOf("hsl")!==-1&&di,Be=_e,te=Re(te,pe),_e=Re(_e,pe),ci=te.length+_e.length>6,ci&&!di&&_e[3]===0?(ht["xs"+ht.l]+=ht.l?" transparent":"transparent",ht.e=ht.e.split(Pe[Mt]).join("transparent")):(di||(ci=!1),pe?ht.appendXtra(Be.substr(0,Be.indexOf("hsl"))+(ci?"hsla(":"hsl("),te[0],vt(_e[0],te[0]),",",!1,!0).appendXtra("",te[1],vt(_e[1],te[1]),"%,",!1).appendXtra("",te[2],vt(_e[2],te[2]),ci?"%,":"%"+Fe,!1):ht.appendXtra(Be.substr(0,Be.indexOf("rgb"))+(ci?"rgba(":"rgb("),te[0],_e[0]-te[0],",",Math.round,!0).appendXtra("",te[1],_e[1]-te[1],",",Math.round).appendXtra("",te[2],_e[2]-te[2],ci?",":Fe,Math.round),ci&&(te=te.length<4?1:te[3],ht.appendXtra("",te,(_e.length<4?1:_e[3])-te,Fe,!1))),we.lastIndex=0;else if(ue=te.match(M)){if(je=_e.match(R),!je||je.length!==ue.length)return ht;for(oe=0,he=0;he<ue.length;he++)ye=ue[he],Be=te.indexOf(ye,oe),ht.appendXtra(te.substr(oe,Be-oe),Number(ye),vt(je[he],ye),"",Le&&te.substr(Be+ye.length,2)==="px"?Math.round:!1,he===0),oe=Be+ye.length;ht["xs"+ht.l]+=te.substr(oe)}else ht["xs"+ht.l]+=ht.l||ht["xs"+ht.l]?" "+_e:_e;if(at.indexOf("=")!==-1&&ht.data){for(Fe=ht.xs0+ht.data.s,Mt=1;Mt<ht.l;Mt++)Fe+=ht["xs"+Mt]+ht.data["xn"+Mt];ht.e=Fe+ht["xs"+Mt]}return ht.l||(ht.type=-1,ht.xs0=ht.e),ht.xfirst||ht},on=9;for(S=Ei.prototype,S.l=S.pr=0;--on>0;)S["xn"+on]=0,S["xs"+on]="";S.xs0="",S._next=S._prev=S.xfirst=S.data=S.plugin=S.setRatio=S.rxp=null,S.appendXtra=function(V,tt,lt,at,X,St){var ht=this,Rt=ht.l;return ht["xs"+Rt]+=St&&(Rt||ht["xs"+Rt])?" "+V:V||"",lt||Rt===0||ht.plugin?(ht.l++,ht.type=ht.setRatio?2:1,ht["xs"+ht.l]=at||"",Rt>0?(ht.data["xn"+Rt]=tt+lt,ht.rxp["xn"+Rt]=X,ht["xn"+Rt]=tt,ht.plugin||(ht.xfirst=new Ei(ht,"xn"+Rt,tt,lt,ht.xfirst||ht,0,ht.n,X,ht.pr),ht.xfirst.xs0=0),ht):(ht.data={s:tt+lt},ht.rxp={},ht.s=tt,ht.c=lt,ht.r=X,ht)):(ht["xs"+Rt]+=tt+(at||""),ht)};var As=function(V,tt){tt=tt||{},this.p=tt.prefix&&Jt(V)||V,y[V]=y[this.p]=this,this.format=tt.formatter||_i(tt.defaultValue,tt.color,tt.collapsible,tt.multi),tt.parser&&(this.parse=tt.parser),this.clrs=tt.color,this.multi=tt.multi,this.keyword=tt.keyword,this.dflt=tt.defaultValue,this.pr=tt.priority||0},Di=Oe._registerComplexSpecialProp=function(V,tt,lt){typeof tt!="object"&&(tt={parser:lt});var at,X=V.split(","),St=tt.defaultValue;for(lt=lt||[St],at=0;at<X.length;at++)tt.prefix=at===0&&tt.prefix,tt.defaultValue=lt[at]||St,new As(X[at],tt)},Xs=Oe._registerPluginProp=function(V){if(!y[V]){var tt=V.charAt(0).toUpperCase()+V.substr(1)+"Plugin";Di(V,{parser:function(lt,at,X,St,ht,Rt,Ht){var kt=_.com.greensock.plugins[tt];return kt?(kt._cssRegister(),y[X].parse(lt,at,X,St,ht,Rt,Ht)):(mn("Error: "+tt+" js file not loaded."),ht)}})}};S=As.prototype,S.parseComplex=function(V,tt,lt,at,X,St){var ht,Rt,Ht,kt,Mt,he,oe=this.keyword;if(this.multi&&(fe.test(lt)||fe.test(tt)?(Rt=tt.replace(fe,"|").split("|"),Ht=lt.replace(fe,"|").split("|")):oe&&(Rt=[tt],Ht=[lt])),Ht){for(kt=Ht.length>Rt.length?Ht.length:Rt.length,ht=0;kt>ht;ht++)tt=Rt[ht]=Rt[ht]||this.dflt,lt=Ht[ht]=Ht[ht]||this.dflt,oe&&(Mt=tt.indexOf(oe),he=lt.indexOf(oe),Mt!==he&&(he===-1?Rt[ht]=Rt[ht].split(oe).join(""):Mt===-1&&(Rt[ht]+=" "+oe)));tt=Rt.join(", "),lt=Ht.join(", ")}return or(V,this.p,tt,lt,this.clrs,this.dflt,at,this.pr,X,St)},S.parse=function(V,tt,lt,at,X,St,ht){return this.parseComplex(V.style,this.format(pt(V,this.p,d,!1,this.dflt)),this.format(tt),X,St)},m.registerSpecialProp=function(V,tt,lt){Di(V,{parser:function(at,X,St,ht,Rt,Ht,kt){var Mt=new Ei(at,St,0,0,Rt,2,St,!1,lt);return Mt.plugin=Ht,Mt.setRatio=tt(at,X,ht._tween,St),Mt},priority:lt})},m.useSVGTransformAttr=!0;var as,Fl="scaleX,scaleY,scaleZ,x,y,z,skewX,skewY,rotation,rotationX,rotationY,perspective,xPercent,yPercent".split(","),Mn=Jt("transform"),ea=Qi+"transform",mo=Jt("transformOrigin"),vr=Jt("perspective")!==null,ia=Oe.Transform=function(){this.perspective=parseFloat(m.defaultTransformPerspective)||0,this.force3D=m.defaultForce3D!==!1&&vr?m.defaultForce3D||"auto":!1},Xa=ln.SVGElement,Ul=function(V,tt,lt){var at,X=ce.createElementNS("http://www.w3.org/2000/svg",V),St=/([a-z])([A-Z])/g;for(at in lt)X.setAttributeNS(null,at.replace(St,"$1-$2").toLowerCase(),lt[at]);return tt.appendChild(X),X},ls=ce.documentElement||{},Ch=function(){var V,tt,lt,at=E||/Android/i.test(Ge)&&!ln.chrome;return ce.createElementNS&&!at&&(V=Ul("svg",ls),tt=Ul("rect",V,{width:100,height:50,x:100}),lt=tt.getBoundingClientRect().width,tt.style[mo]="50% 50%",tt.style[Mn]="scaleX(0.5)",at=lt===tt.getBoundingClientRect().width&&!(D&&vr),ls.removeChild(V)),at}(),na=function(V,tt,lt,at,X,St){var ht,Rt,Ht,kt,Mt,he,oe,te,_e,ue,je,He,ci,Be,ye=V._gsTransform,Fe=sa(V,!0);ye&&(ci=ye.xOrigin,Be=ye.yOrigin),(!at||(ht=at.split(" ")).length<2)&&(oe=V.getBBox(),oe.x===0&&oe.y===0&&oe.width+oe.height===0&&(oe={x:parseFloat(V.hasAttribute("x")?V.getAttribute("x"):V.hasAttribute("cx")?V.getAttribute("cx"):0)||0,y:parseFloat(V.hasAttribute("y")?V.getAttribute("y"):V.hasAttribute("cy")?V.getAttribute("cy"):0)||0,width:0,height:0}),tt=nt(tt).split(" "),ht=[(tt[0].indexOf("%")!==-1?parseFloat(tt[0])/100*oe.width:parseFloat(tt[0]))+oe.x,(tt[1].indexOf("%")!==-1?parseFloat(tt[1])/100*oe.height:parseFloat(tt[1]))+oe.y]),lt.xOrigin=kt=parseFloat(ht[0]),lt.yOrigin=Mt=parseFloat(ht[1]),at&&Fe!==ra&&(he=Fe[0],oe=Fe[1],te=Fe[2],_e=Fe[3],ue=Fe[4],je=Fe[5],He=he*_e-oe*te,He&&(Rt=kt*(_e/He)+Mt*(-te/He)+(te*je-_e*ue)/He,Ht=kt*(-oe/He)+Mt*(he/He)-(he*je-oe*ue)/He,kt=lt.xOrigin=ht[0]=Rt,Mt=lt.yOrigin=ht[1]=Ht)),ye&&(St&&(lt.xOffset=ye.xOffset,lt.yOffset=ye.yOffset,ye=lt),X||X!==!1&&m.defaultSmoothOrigin!==!1?(Rt=kt-ci,Ht=Mt-Be,ye.xOffset+=Rt*Fe[0]+Ht*Fe[2]-Rt,ye.yOffset+=Rt*Fe[1]+Ht*Fe[3]-Ht):ye.xOffset=ye.yOffset=0),St||V.setAttribute("data-svg-origin",ht.join(" "))},qa=function(V){var tt,lt=Yt("svg",this.ownerSVGElement&&this.ownerSVGElement.getAttribute("xmlns")||"http://www.w3.org/2000/svg"),at=this.parentNode,X=this.nextSibling,St=this.style.cssText;if(ls.appendChild(lt),lt.appendChild(this),this.style.display="block",V)try{tt=this.getBBox(),this._originalGetBBox=this.getBBox,this.getBBox=qa}catch{}else this._originalGetBBox&&(tt=this._originalGetBBox());return X?at.insertBefore(this,X):at.appendChild(this),ls.removeChild(lt),this.style.cssText=St,tt},hs=function(V){try{return V.getBBox()}catch{return qa.call(V,!0)}},Ya=function(V){return!(!Xa||!V.getCTM||V.parentNode&&!V.ownerSVGElement||!hs(V))},ra=[1,0,0,1,0,0],sa=function(V,tt){var lt,at,X,St,ht,Rt,Ht=V._gsTransform||new ia,kt=1e5,Mt=V.style;if(Mn?at=pt(V,ea,null,!0):V.currentStyle&&(at=V.currentStyle.filter.match(Et),at=at&&at.length===4?[at[0].substr(4),Number(at[2].substr(4)),Number(at[1].substr(4)),at[3].substr(4),Ht.x||0,Ht.y||0].join(","):""),lt=!at||at==="none"||at==="matrix(1, 0, 0, 1, 0, 0)",!Mn||!(Rt=!Wt(V)||Wt(V).display==="none")&&V.parentNode||(Rt&&(St=Mt.display,Mt.display="block"),V.parentNode||(ht=1,ls.appendChild(V)),at=pt(V,ea,null,!0),lt=!at||at==="none"||at==="matrix(1, 0, 0, 1, 0, 0)",St?Mt.display=St:Rt&&go(Mt,"display"),ht&&ls.removeChild(V)),(Ht.svg||V.getCTM&&Ya(V))&&(lt&&(Mt[Mn]+"").indexOf("matrix")!==-1&&(at=Mt[Mn],lt=0),X=V.getAttribute("transform"),lt&&X&&(X=V.transform.baseVal.consolidate().matrix,at="matrix("+X.a+","+X.b+","+X.c+","+X.d+","+X.e+","+X.f+")",lt=0)),lt)return ra;for(X=(at||"").match(M)||[],on=X.length;--on>-1;)St=Number(X[on]),X[on]=(ht=St-(St|=0))?(ht*kt+(0>ht?-.5:.5)|0)/kt+St:St;return tt&&X.length>6?[X[0],X[1],X[4],X[5],X[12],X[13]]:X},us=Oe.getTransform=function(V,tt,lt,at){if(V._gsTransform&&lt&&!at)return V._gsTransform;var X,St,ht,Rt,Ht,kt,Mt=lt?V._gsTransform||new ia:new ia,he=Mt.scaleX<0,oe=2e-5,te=1e5,_e=vr&&(parseFloat(pt(V,mo,tt,!1,"0 0 0").split(" ")[2])||Mt.zOrigin)||0,ue=parseFloat(m.defaultTransformPerspective)||0;if(Mt.svg=!(!V.getCTM||!Ya(V)),Mt.svg&&(na(V,pt(V,mo,tt,!1,"50% 50%")+"",Mt,V.getAttribute("data-svg-origin")),as=m.useSVGTransformAttr||Ch),X=sa(V),X!==ra){if(X.length===16){var je,He,ci,Be,ye,Fe=X[0],pe=X[1],mi=X[2],Pe=X[3],xe=X[4],Le=X[5],Sn=X[6],Xn=X[7],zi=X[8],ki=X[9],Hi=X[10],nn=X[12],rn=X[13],un=X[14],cn=X[11],Gi=Math.atan2(Sn,Hi);Mt.zOrigin&&(un=-Mt.zOrigin,nn=zi*un-X[12],rn=ki*un-X[13],un=Hi*un+Mt.zOrigin-X[14]),Mt.rotationX=Gi*Ot,Gi&&(Be=Math.cos(-Gi),ye=Math.sin(-Gi),je=xe*Be+zi*ye,He=Le*Be+ki*ye,ci=Sn*Be+Hi*ye,zi=xe*-ye+zi*Be,ki=Le*-ye+ki*Be,Hi=Sn*-ye+Hi*Be,cn=Xn*-ye+cn*Be,xe=je,Le=He,Sn=ci),Gi=Math.atan2(-mi,Hi),Mt.rotationY=Gi*Ot,Gi&&(Be=Math.cos(-Gi),ye=Math.sin(-Gi),je=Fe*Be-zi*ye,He=pe*Be-ki*ye,ci=mi*Be-Hi*ye,ki=pe*ye+ki*Be,Hi=mi*ye+Hi*Be,cn=Pe*ye+cn*Be,Fe=je,pe=He,mi=ci),Gi=Math.atan2(pe,Fe),Mt.rotation=Gi*Ot,Gi&&(Be=Math.cos(Gi),ye=Math.sin(Gi),je=Fe*Be+pe*ye,He=xe*Be+Le*ye,ci=zi*Be+ki*ye,pe=pe*Be-Fe*ye,Le=Le*Be-xe*ye,ki=ki*Be-zi*ye,Fe=je,xe=He,zi=ci),Mt.rotationX&&Math.abs(Mt.rotationX)+Math.abs(Mt.rotation)>359.9&&(Mt.rotationX=Mt.rotation=0,Mt.rotationY=180-Mt.rotationY),Gi=Math.atan2(xe,Le),Mt.scaleX=(Math.sqrt(Fe*Fe+pe*pe+mi*mi)*te+.5|0)/te,Mt.scaleY=(Math.sqrt(Le*Le+Sn*Sn)*te+.5|0)/te,Mt.scaleZ=(Math.sqrt(zi*zi+ki*ki+Hi*Hi)*te+.5|0)/te,Fe/=Mt.scaleX,xe/=Mt.scaleY,pe/=Mt.scaleX,Le/=Mt.scaleY,Math.abs(Gi)>oe?(Mt.skewX=Gi*Ot,xe=0,Mt.skewType!=="simple"&&(Mt.scaleY*=1/Math.cos(Gi))):Mt.skewX=0,Mt.perspective=cn?1/(0>cn?-cn:cn):0,Mt.x=nn,Mt.y=rn,Mt.z=un,Mt.svg&&(Mt.x-=Mt.xOrigin-(Mt.xOrigin*Fe-Mt.yOrigin*xe),Mt.y-=Mt.yOrigin-(Mt.yOrigin*pe-Mt.xOrigin*Le))}else if(!vr||at||!X.length||Mt.x!==X[4]||Mt.y!==X[5]||!Mt.rotationX&&!Mt.rotationY){var Bi=X.length>=6,ji=Bi?X[0]:1,gi=X[1]||0,cs=X[2]||0,Fn=Bi?X[3]:1;Mt.x=X[4]||0,Mt.y=X[5]||0,ht=Math.sqrt(ji*ji+gi*gi),Rt=Math.sqrt(Fn*Fn+cs*cs),Ht=ji||gi?Math.atan2(gi,ji)*Ot:Mt.rotation||0,kt=cs||Fn?Math.atan2(cs,Fn)*Ot+Ht:Mt.skewX||0,Mt.scaleX=ht,Mt.scaleY=Rt,Mt.rotation=Ht,Mt.skewX=kt,vr&&(Mt.rotationX=Mt.rotationY=Mt.z=0,Mt.perspective=ue,Mt.scaleZ=1),Mt.svg&&(Mt.x-=Mt.xOrigin-(Mt.xOrigin*ji+Mt.yOrigin*cs),Mt.y-=Mt.yOrigin-(Mt.xOrigin*gi+Mt.yOrigin*Fn))}Math.abs(Mt.skewX)>90&&Math.abs(Mt.skewX)<270&&(he?(Mt.scaleX*=-1,Mt.skewX+=Mt.rotation<=0?180:-180,Mt.rotation+=Mt.rotation<=0?180:-180):(Mt.scaleY*=-1,Mt.skewX+=Mt.skewX<=0?180:-180)),Mt.zOrigin=_e;for(St in Mt)Mt[St]<oe&&Mt[St]>-oe&&(Mt[St]=0)}return lt&&(V._gsTransform=Mt,Mt.svg&&(as&&V.style[Mn]?a.delayedCall(.001,function(){go(V.style,Mn)}):!as&&V.getAttribute("transform")&&a.delayedCall(.001,function(){V.removeAttribute("transform")}))),Mt},Gl=function(V){var tt,lt,at=this.data,X=-at.rotation*Ft,St=X+at.skewX*Ft,ht=1e5,Rt=(Math.cos(X)*at.scaleX*ht|0)/ht,Ht=(Math.sin(X)*at.scaleX*ht|0)/ht,kt=(Math.sin(St)*-at.scaleY*ht|0)/ht,Mt=(Math.cos(St)*at.scaleY*ht|0)/ht,he=this.t.style,oe=this.t.currentStyle;if(oe){lt=Ht,Ht=-kt,kt=-lt,tt=oe.filter,he.filter="";var te,_e,ue=this.t.offsetWidth,je=this.t.offsetHeight,He=oe.position!=="absolute",ci="progid:DXImageTransform.Microsoft.Matrix(M11="+Rt+", M12="+Ht+", M21="+kt+", M22="+Mt,Be=at.x+ue*at.xPercent/100,ye=at.y+je*at.yPercent/100;if(at.ox!=null&&(te=(at.oxp?ue*at.ox*.01:at.ox)-ue/2,_e=(at.oyp?je*at.oy*.01:at.oy)-je/2,Be+=te-(te*Rt+_e*Ht),ye+=_e-(te*kt+_e*Mt)),He?(te=ue/2,_e=je/2,ci+=", Dx="+(te-(te*Rt+_e*Ht)+Be)+", Dy="+(_e-(te*kt+_e*Mt)+ye)+")"):ci+=", sizingMethod='auto expand')",tt.indexOf("DXImageTransform.Microsoft.Matrix(")!==-1?he.filter=tt.replace(Ct,ci):he.filter=ci+" "+tt,(V===0||V===1)&&Rt===1&&Ht===0&&kt===0&&Mt===1&&(He&&ci.indexOf("Dx=0, Dy=0")===-1||j.test(tt)&&parseFloat(RegExp.$1)!==100||tt.indexOf(tt.indexOf("Alpha"))===-1&&he.removeAttribute("filter")),!He){var Fe,pe,mi,Pe=8>E?1:-1;for(te=at.ieOffsetX||0,_e=at.ieOffsetY||0,at.ieOffsetX=Math.round((ue-((0>Rt?-Rt:Rt)*ue+(0>Ht?-Ht:Ht)*je))/2+Be),at.ieOffsetY=Math.round((je-((0>Mt?-Mt:Mt)*je+(0>kt?-kt:kt)*ue))/2+ye),on=0;4>on;on++)pe=Q[on],Fe=oe[pe],lt=Fe.indexOf("px")!==-1?parseFloat(Fe):dt(this.t,pe,parseFloat(Fe),Fe.replace(N,""))||0,mi=lt!==at[pe]?2>on?-at.ieOffsetX:-at.ieOffsetY:2>on?te-at.ieOffsetX:_e-at.ieOffsetY,he[pe]=(at[pe]=Math.round(lt-mi*(on===0||on===2?1:Pe)))+"px"}}},Ph=Oe.set3DTransformRatio=Oe.setTransformRatio=function(V){var tt,lt,at,X,St,ht,Rt,Ht,kt,Mt,he,oe,te,_e,ue,je,He,ci,Be,ye,Fe,pe,mi,Pe=this.data,xe=this.t.style,Le=Pe.rotation,Sn=Pe.rotationX,Xn=Pe.rotationY,zi=Pe.scaleX,ki=Pe.scaleY,Hi=Pe.scaleZ,nn=Pe.x,rn=Pe.y,un=Pe.z,cn=Pe.svg,Gi=Pe.perspective,Bi=Pe.force3D,ji=Pe.skewY,gi=Pe.skewX;if(ji&&(gi+=ji,Le+=ji),((V===1||V===0)&&Bi==="auto"&&(this.tween._totalTime===this.tween._totalDuration||!this.tween._totalTime)||!Bi)&&!un&&!Gi&&!Xn&&!Sn&&Hi===1||as&&cn||!vr)return void(Le||gi||cn?(Le*=Ft,pe=gi*Ft,mi=1e5,lt=Math.cos(Le)*zi,St=Math.sin(Le)*zi,at=Math.sin(Le-pe)*-ki,ht=Math.cos(Le-pe)*ki,pe&&Pe.skewType==="simple"&&(tt=Math.tan(pe-ji*Ft),tt=Math.sqrt(1+tt*tt),at*=tt,ht*=tt,ji&&(tt=Math.tan(ji*Ft),tt=Math.sqrt(1+tt*tt),lt*=tt,St*=tt)),cn&&(nn+=Pe.xOrigin-(Pe.xOrigin*lt+Pe.yOrigin*at)+Pe.xOffset,rn+=Pe.yOrigin-(Pe.xOrigin*St+Pe.yOrigin*ht)+Pe.yOffset,as&&(Pe.xPercent||Pe.yPercent)&&(ue=this.t.getBBox(),nn+=.01*Pe.xPercent*ue.width,rn+=.01*Pe.yPercent*ue.height),ue=1e-6,ue>nn&&nn>-ue&&(nn=0),ue>rn&&rn>-ue&&(rn=0)),Be=(lt*mi|0)/mi+","+(St*mi|0)/mi+","+(at*mi|0)/mi+","+(ht*mi|0)/mi+","+nn+","+rn+")",cn&&as?this.t.setAttribute("transform","matrix("+Be):xe[Mn]=(Pe.xPercent||Pe.yPercent?"translate("+Pe.xPercent+"%,"+Pe.yPercent+"%) matrix(":"matrix(")+Be):xe[Mn]=(Pe.xPercent||Pe.yPercent?"translate("+Pe.xPercent+"%,"+Pe.yPercent+"%) matrix(":"matrix(")+zi+",0,0,"+ki+","+nn+","+rn+")");if(D&&(ue=1e-4,ue>zi&&zi>-ue&&(zi=Hi=2e-5),ue>ki&&ki>-ue&&(ki=Hi=2e-5),!Gi||Pe.z||Pe.rotationX||Pe.rotationY||(Gi=0)),Le||gi)Le*=Ft,je=lt=Math.cos(Le),He=St=Math.sin(Le),gi&&(Le-=gi*Ft,je=Math.cos(Le),He=Math.sin(Le),Pe.skewType==="simple"&&(tt=Math.tan((gi-ji)*Ft),tt=Math.sqrt(1+tt*tt),je*=tt,He*=tt,Pe.skewY&&(tt=Math.tan(ji*Ft),tt=Math.sqrt(1+tt*tt),lt*=tt,St*=tt))),at=-He,ht=je;else{if(!(Xn||Sn||Hi!==1||Gi||cn))return void(xe[Mn]=(Pe.xPercent||Pe.yPercent?"translate("+Pe.xPercent+"%,"+Pe.yPercent+"%) translate3d(":"translate3d(")+nn+"px,"+rn+"px,"+un+"px)"+(zi!==1||ki!==1?" scale("+zi+","+ki+")":""));lt=ht=1,at=St=0}Mt=1,X=Rt=Ht=kt=he=oe=0,te=Gi?-1/Gi:0,_e=Pe.zOrigin,ue=1e-6,ye=",",Fe="0",Le=Xn*Ft,Le&&(je=Math.cos(Le),He=Math.sin(Le),Ht=-He,he=te*-He,X=lt*He,Rt=St*He,Mt=je,te*=je,lt*=je,St*=je),Le=Sn*Ft,Le&&(je=Math.cos(Le),He=Math.sin(Le),tt=at*je+X*He,ci=ht*je+Rt*He,kt=Mt*He,oe=te*He,X=at*-He+X*je,Rt=ht*-He+Rt*je,Mt*=je,te*=je,at=tt,ht=ci),Hi!==1&&(X*=Hi,Rt*=Hi,Mt*=Hi,te*=Hi),ki!==1&&(at*=ki,ht*=ki,kt*=ki,oe*=ki),zi!==1&&(lt*=zi,St*=zi,Ht*=zi,he*=zi),(_e||cn)&&(_e&&(nn+=X*-_e,rn+=Rt*-_e,un+=Mt*-_e+_e),cn&&(nn+=Pe.xOrigin-(Pe.xOrigin*lt+Pe.yOrigin*at)+Pe.xOffset,rn+=Pe.yOrigin-(Pe.xOrigin*St+Pe.yOrigin*ht)+Pe.yOffset),ue>nn&&nn>-ue&&(nn=Fe),ue>rn&&rn>-ue&&(rn=Fe),ue>un&&un>-ue&&(un=0)),Be=Pe.xPercent||Pe.yPercent?"translate("+Pe.xPercent+"%,"+Pe.yPercent+"%) matrix3d(":"matrix3d(",Be+=(ue>lt&&lt>-ue?Fe:lt)+ye+(ue>St&&St>-ue?Fe:St)+ye+(ue>Ht&&Ht>-ue?Fe:Ht),Be+=ye+(ue>he&&he>-ue?Fe:he)+ye+(ue>at&&at>-ue?Fe:at)+ye+(ue>ht&&ht>-ue?Fe:ht),Sn||Xn||Hi!==1?(Be+=ye+(ue>kt&&kt>-ue?Fe:kt)+ye+(ue>oe&&oe>-ue?Fe:oe)+ye+(ue>X&&X>-ue?Fe:X),Be+=ye+(ue>Rt&&Rt>-ue?Fe:Rt)+ye+(ue>Mt&&Mt>-ue?Fe:Mt)+ye+(ue>te&&te>-ue?Fe:te)+ye):Be+=",0,0,0,0,1,0,",Be+=nn+ye+rn+ye+un+ye+(Gi?1+-un/Gi:1)+")",xe[Mn]=Be};S=ia.prototype,S.x=S.y=S.z=S.skewX=S.skewY=S.rotation=S.rotationX=S.rotationY=S.zOrigin=S.xPercent=S.yPercent=S.xOffset=S.yOffset=0,S.scaleX=S.scaleY=S.scaleZ=1,Di("transform,scale,scaleX,scaleY,scaleZ,x,y,z,rotation,rotationX,rotationY,rotationZ,skewX,skewY,shortRotation,shortRotationX,shortRotationY,shortRotationZ,transformOrigin,svgOrigin,transformPerspective,directionalRotation,parseTransform,force3D,skewType,xPercent,yPercent,smoothOrigin",{parser:function(V,tt,lt,at,X,St,ht){if(at._lastParsedTransform===ht)return X;at._lastParsedTransform=ht;var Rt,Ht=ht.scale&&typeof ht.scale=="function"?ht.scale:0;typeof ht[lt]=="function"&&(Rt=ht[lt],ht[lt]=tt),Ht&&(ht.scale=Ht(T,V));var kt,Mt,he,oe,te,_e,ue,je,He,ci=V._gsTransform,Be=V.style,ye=1e-6,Fe=Fl.length,pe=ht,mi={},Pe="transformOrigin",xe=us(V,d,!0,pe.parseTransform),Le=pe.transform&&(typeof pe.transform=="function"?pe.transform(T,L):pe.transform);if(xe.skewType=pe.skewType||xe.skewType||m.defaultSkewType,at._transform=xe,"rotationZ"in pe&&(pe.rotation=pe.rotationZ),Le&&typeof Le=="string"&&Mn)Mt=$e.style,Mt[Mn]=Le,Mt.display="block",Mt.position="absolute",Le.indexOf("%")!==-1&&(Mt.width=pt(V,"width"),Mt.height=pt(V,"height")),ce.body.appendChild($e),kt=us($e,null,!1),xe.skewType==="simple"&&(kt.scaleY*=Math.cos(kt.skewX*Ft)),xe.svg&&(_e=xe.xOrigin,ue=xe.yOrigin,kt.x-=xe.xOffset,kt.y-=xe.yOffset,(pe.transformOrigin||pe.svgOrigin)&&(Le={},na(V,nt(pe.transformOrigin),Le,pe.svgOrigin,pe.smoothOrigin,!0),_e=Le.xOrigin,ue=Le.yOrigin,kt.x-=Le.xOffset-xe.xOffset,kt.y-=Le.yOffset-xe.yOffset),(_e||ue)&&(je=sa($e,!0),kt.x-=_e-(_e*je[0]+ue*je[2]),kt.y-=ue-(_e*je[1]+ue*je[3]))),ce.body.removeChild($e),kt.perspective||(kt.perspective=xe.perspective),pe.xPercent!=null&&(kt.xPercent=Gt(pe.xPercent,xe.xPercent)),pe.yPercent!=null&&(kt.yPercent=Gt(pe.yPercent,xe.yPercent));else if(typeof pe=="object"){if(kt={scaleX:Gt(pe.scaleX!=null?pe.scaleX:pe.scale,xe.scaleX),scaleY:Gt(pe.scaleY!=null?pe.scaleY:pe.scale,xe.scaleY),scaleZ:Gt(pe.scaleZ,xe.scaleZ),x:Gt(pe.x,xe.x),y:Gt(pe.y,xe.y),z:Gt(pe.z,xe.z),xPercent:Gt(pe.xPercent,xe.xPercent),yPercent:Gt(pe.yPercent,xe.yPercent),perspective:Gt(pe.transformPerspective,xe.perspective)},te=pe.directionalRotation,te!=null)if(typeof te=="object")for(Mt in te)pe[Mt]=te[Mt];else pe.rotation=te;typeof pe.x=="string"&&pe.x.indexOf("%")!==-1&&(kt.x=0,kt.xPercent=Gt(pe.x,xe.xPercent)),typeof pe.y=="string"&&pe.y.indexOf("%")!==-1&&(kt.y=0,kt.yPercent=Gt(pe.y,xe.yPercent)),kt.rotation=Xt("rotation"in pe?pe.rotation:"shortRotation"in pe?pe.shortRotation+"_short":xe.rotation,xe.rotation,"rotation",mi),vr&&(kt.rotationX=Xt("rotationX"in pe?pe.rotationX:"shortRotationX"in pe?pe.shortRotationX+"_short":xe.rotationX||0,xe.rotationX,"rotationX",mi),kt.rotationY=Xt("rotationY"in pe?pe.rotationY:"shortRotationY"in pe?pe.shortRotationY+"_short":xe.rotationY||0,xe.rotationY,"rotationY",mi)),kt.skewX=Xt(pe.skewX,xe.skewX),kt.skewY=Xt(pe.skewY,xe.skewY)}for(vr&&pe.force3D!=null&&(xe.force3D=pe.force3D,oe=!0),he=xe.force3D||xe.z||xe.rotationX||xe.rotationY||kt.z||kt.rotationX||kt.rotationY||kt.perspective,he||pe.scale==null||(kt.scaleZ=1);--Fe>-1;)He=Fl[Fe],Le=kt[He]-xe[He],(Le>ye||-ye>Le||pe[He]!=null||Bt[He]!=null)&&(oe=!0,X=new Ei(xe,He,xe[He],Le,X),He in mi&&(X.e=mi[He]),X.xs0=0,X.plugin=St,at._overwriteProps.push(X.n));return Le=pe.transformOrigin,xe.svg&&(Le||pe.svgOrigin)&&(_e=xe.xOffset,ue=xe.yOffset,na(V,nt(Le),kt,pe.svgOrigin,pe.smoothOrigin),X=qr(xe,"xOrigin",(ci?xe:kt).xOrigin,kt.xOrigin,X,Pe),X=qr(xe,"yOrigin",(ci?xe:kt).yOrigin,kt.yOrigin,X,Pe),(_e!==xe.xOffset||ue!==xe.yOffset)&&(X=qr(xe,"xOffset",ci?_e:xe.xOffset,xe.xOffset,X,Pe),X=qr(xe,"yOffset",ci?ue:xe.yOffset,xe.yOffset,X,Pe)),Le="0px 0px"),(Le||vr&&he&&xe.zOrigin)&&(Mn?(oe=!0,He=mo,Le=(Le||pt(V,He,d,!1,"50% 50%"))+"",X=new Ei(Be,He,0,0,X,-1,Pe),X.b=Be[He],X.plugin=St,vr?(Mt=xe.zOrigin,Le=Le.split(" "),xe.zOrigin=(Le.length>2&&(Mt===0||Le[2]!=="0px")?parseFloat(Le[2]):Mt)||0,X.xs0=X.e=Le[0]+" "+(Le[1]||"50%")+" 0px",X=new Ei(xe,"zOrigin",0,0,X,-1,X.n),X.b=Mt,X.xs0=X.e=xe.zOrigin):X.xs0=X.e=Le):nt(Le+"",xe)),oe&&(at._transformType=xe.svg&&as||!he&&this._transformType!==3?2:3),Rt&&(ht[lt]=Rt),Ht&&(ht.scale=Ht),X},prefix:!0}),Di("boxShadow",{defaultValue:"0px 0px 0px 0px #999",prefix:!0,color:!0,multi:!0,keyword:"inset"}),Di("borderRadius",{defaultValue:"0px",parser:function(V,tt,lt,at,X,St){tt=this.format(tt);var ht,Rt,Ht,kt,Mt,he,oe,te,_e,ue,je,He,ci,Be,ye,Fe,pe=["borderTopLeftRadius","borderTopRightRadius","borderBottomRightRadius","borderBottomLeftRadius"],mi=V.style;for(_e=parseFloat(V.offsetWidth),ue=parseFloat(V.offsetHeight),ht=tt.split(" "),Rt=0;Rt<pe.length;Rt++)this.p.indexOf("border")&&(pe[Rt]=Jt(pe[Rt])),Mt=kt=pt(V,pe[Rt],d,!1,"0px"),Mt.indexOf(" ")!==-1&&(kt=Mt.split(" "),Mt=kt[0],kt=kt[1]),he=Ht=ht[Rt],oe=parseFloat(Mt),He=Mt.substr((oe+"").length),ci=he.charAt(1)==="=",ci?(te=parseInt(he.charAt(0)+"1",10),he=he.substr(2),te*=parseFloat(he),je=he.substr((te+"").length-(0>te?1:0))||""):(te=parseFloat(he),je=he.substr((te+"").length)),je===""&&(je=c[lt]||He),je!==He&&(Be=dt(V,"borderLeft",oe,He),ye=dt(V,"borderTop",oe,He),je==="%"?(Mt=Be/_e*100+"%",kt=ye/ue*100+"%"):je==="em"?(Fe=dt(V,"borderLeft",1,"em"),Mt=Be/Fe+"em",kt=ye/Fe+"em"):(Mt=Be+"px",kt=ye+"px"),ci&&(he=parseFloat(Mt)+te+je,Ht=parseFloat(kt)+te+je)),X=or(mi,pe[Rt],Mt+" "+kt,he+" "+Ht,!1,"0px",X);return X},prefix:!0,formatter:_i("0px 0px 0px 0px",!1,!0)}),Di("borderBottomLeftRadius,borderBottomRightRadius,borderTopLeftRadius,borderTopRightRadius",{defaultValue:"0px",parser:function(V,tt,lt,at,X,St){return or(V.style,lt,this.format(pt(V,lt,d,!1,"0px 0px")),this.format(tt),!1,"0px",X)},prefix:!0,formatter:_i("0px 0px",!1,!0)}),Di("backgroundPosition",{defaultValue:"0 0",parser:function(V,tt,lt,at,X,St){var ht,Rt,Ht,kt,Mt,he,oe="background-position",te=d||Wt(V,null),_e=this.format((te?E?te.getPropertyValue(oe+"-x")+" "+te.getPropertyValue(oe+"-y"):te.getPropertyValue(oe):V.currentStyle.backgroundPositionX+" "+V.currentStyle.backgroundPositionY)||"0 0"),ue=this.format(tt);if(_e.indexOf("%")!==-1!=(ue.indexOf("%")!==-1)&&ue.split(",").length<2&&(he=pt(V,"backgroundImage").replace(yt,""),he&&he!=="none")){for(ht=_e.split(" "),Rt=ue.split(" "),Oi.setAttribute("src",he),Ht=2;--Ht>-1;)_e=ht[Ht],kt=_e.indexOf("%")!==-1,kt!==(Rt[Ht].indexOf("%")!==-1)&&(Mt=Ht===0?V.offsetWidth-Oi.width:V.offsetHeight-Oi.height,ht[Ht]=kt?parseFloat(_e)/100*Mt+"px":parseFloat(_e)/Mt*100+"%");_e=ht.join(" ")}return this.parseComplex(V.style,_e,ue,X,St)},formatter:nt}),Di("backgroundSize",{defaultValue:"0 0",formatter:function(V){return V+="",V.substr(0,2)==="co"?V:nt(V.indexOf(" ")===-1?V+" "+V:V)}}),Di("perspective",{defaultValue:"0px",prefix:!0}),Di("perspectiveOrigin",{defaultValue:"50% 50%",prefix:!0}),Di("transformStyle",{prefix:!0}),Di("backfaceVisibility",{prefix:!0}),Di("userSelect",{prefix:!0}),Di("margin",{parser:Si("marginTop,marginRight,marginBottom,marginLeft")}),Di("padding",{parser:Si("paddingTop,paddingRight,paddingBottom,paddingLeft")}),Di("clip",{defaultValue:"rect(0px,0px,0px,0px)",parser:function(V,tt,lt,at,X,St){var ht,Rt,Ht;return 9>E?(Rt=V.currentStyle,Ht=8>E?" ":",",ht="rect("+Rt.clipTop+Ht+Rt.clipRight+Ht+Rt.clipBottom+Ht+Rt.clipLeft+")",tt=this.format(tt).split(",").join(Ht)):(ht=this.format(pt(V,this.p,d,!1,this.dflt)),tt=this.format(tt)),this.parseComplex(V.style,ht,tt,X,St)}}),Di("textShadow",{defaultValue:"0px 0px 0px #999",color:!0,multi:!0}),Di("autoRound,strictUnits",{parser:function(V,tt,lt,at,X){return X}}),Di("border",{defaultValue:"0px solid #000",parser:function(V,tt,lt,at,X,St){var ht=pt(V,"borderTopWidth",d,!1,"0px"),Rt=this.format(tt).split(" "),Ht=Rt[0].replace(N,"");return Ht!=="px"&&(ht=parseFloat(ht)/dt(V,"borderTopWidth",1,Ht)+Ht),this.parseComplex(V.style,this.format(ht+" "+pt(V,"borderTopStyle",d,!1,"solid")+" "+pt(V,"borderTopColor",d,!1,"#000")),Rt.join(" "),X,St)},color:!0,formatter:function(V){var tt=V.split(" ");return tt[0]+" "+(tt[1]||"solid")+" "+(V.match(we)||["#000"])[0]}}),Di("borderWidth",{parser:Si("borderTopWidth,borderRightWidth,borderBottomWidth,borderLeftWidth")}),Di("float,cssFloat,styleFloat",{parser:function(V,tt,lt,at,X,St){var ht=V.style,Rt="cssFloat"in ht?"cssFloat":"styleFloat";return new Ei(ht,Rt,0,0,X,-1,lt,!1,0,ht[Rt],tt)}});var Lh=function(V){var tt,lt=this.t,at=lt.filter||pt(this.data,"filter")||"",X=this.s+this.c*V|0;X===100&&(at.indexOf("atrix(")===-1&&at.indexOf("radient(")===-1&&at.indexOf("oader(")===-1?(lt.removeAttribute("filter"),tt=!pt(this.data,"filter")):(lt.filter=at.replace($,""),tt=!0)),tt||(this.xn1&&(lt.filter=at=at||"alpha(opacity="+X+")"),at.indexOf("pacity")===-1?X===0&&this.xn1||(lt.filter=at+" alpha(opacity="+X+")"):lt.filter=at.replace(j,"opacity="+X))};Di("opacity,alpha,autoAlpha",{defaultValue:"1",parser:function(V,tt,lt,at,X,St){var ht=parseFloat(pt(V,"opacity",d,!1,"1")),Rt=V.style,Ht=lt==="autoAlpha";return typeof tt=="string"&&tt.charAt(1)==="="&&(tt=(tt.charAt(0)==="-"?-1:1)*parseFloat(tt.substr(2))+ht),Ht&&ht===1&&pt(V,"visibility",d)==="hidden"&&tt!==0&&(ht=0),di?X=new Ei(Rt,"opacity",ht,tt-ht,X):(X=new Ei(Rt,"opacity",100*ht,100*(tt-ht),X),X.xn1=Ht?1:0,Rt.zoom=1,X.type=2,X.b="alpha(opacity="+X.s+")",X.e="alpha(opacity="+(X.s+X.c)+")",X.data=V,X.plugin=St,X.setRatio=Lh),Ht&&(X=new Ei(Rt,"visibility",0,0,X,-1,null,!1,0,ht!==0?"inherit":"hidden",tt===0?"hidden":"inherit"),X.xs0="inherit",at._overwriteProps.push(X.n),at._overwriteProps.push(lt)),X}});var go=function(V,tt){tt&&(V.removeProperty?((tt.substr(0,2)==="ms"||tt.substr(0,6)==="webkit")&&(tt="-"+tt),V.removeProperty(tt.replace(It,"-$1").toLowerCase())):V.removeAttribute(tt))},vo=function(V){if(this.t._gsClassPT=this,V===1||V===0){this.t.setAttribute("class",V===0?this.b:this.e);for(var tt=this.data,lt=this.t.style;tt;)tt.v?lt[tt.p]=tt.v:go(lt,tt.p),tt=tt._next;V===1&&this.t._gsClassPT===this&&(this.t._gsClassPT=null)}else this.t.getAttribute("class")!==this.e&&this.t.setAttribute("class",this.e)};Di("className",{parser:function(V,tt,lt,at,X,St,ht){var Rt,Ht,kt,Mt,he,oe=V.getAttribute("class")||"",te=V.style.cssText;if(X=at._classNamePT=new Ei(V,lt,0,0,X,2),X.setRatio=vo,X.pr=-11,o=!0,X.b=oe,Ht=ie(V,d),kt=V._gsClassPT){for(Mt={},he=kt.data;he;)Mt[he.p]=1,he=he._next;kt.setRatio(1)}return V._gsClassPT=X,X.e=tt.charAt(1)!=="="?tt:oe.replace(new RegExp("(?:\\s|^)"+tt.substr(2)+"(?![\\w-])"),"")+(tt.charAt(0)==="+"?" "+tt.substr(2):""),V.setAttribute("class",X.e),Rt=Kt(V,Ht,ie(V),ht,Mt),V.setAttribute("class",oe),X.data=Rt.firstMPT,V.style.cssText=te,X=X.xfirst=at.parse(V,Rt.difs,X,St)}});var Hl=function(V){if((V===1||V===0)&&this.data._totalTime===this.data._totalDuration&&this.data.data!=="isFromStart"){var tt,lt,at,X,St,ht=this.t.style,Rt=y.transform.parse;if(this.e==="all")ht.cssText="",X=!0;else for(tt=this.e.split(" ").join("").split(","),at=tt.length;--at>-1;)lt=tt[at],y[lt]&&(y[lt].parse===Rt?X=!0:lt=lt==="transformOrigin"?mo:y[lt].p),go(ht,lt);X&&(go(ht,Mn),St=this.t._gsTransform,St&&(St.svg&&(this.t.removeAttribute("data-svg-origin"),this.t.removeAttribute("transform")),delete this.t._gsTransform))}};for(Di("clearProps",{parser:function(V,tt,lt,at,X){return X=new Ei(V,lt,0,0,X,2),X.setRatio=Hl,X.e=tt,X.pr=-10,X.data=at._tween,o=!0,X}}),S="bezier,throwProps,physicsProps,physics2D".split(","),on=S.length;on--;)Xs(S[on]);S=m.prototype,S._firstPT=S._lastParsedTransform=S._transform=null,S._onInitTween=function(V,tt,lt,at){if(!V.nodeType)return!1;this._target=L=V,this._tween=lt,this._vars=tt,T=at,A=tt.autoRound,o=!1,c=tt.suffixMap||m.suffixMap,d=Wt(V,""),u=this._overwriteProps;var X,St,ht,Rt,Ht,kt,Mt,he,oe,te=V.style;if(I&&te.zIndex===""&&(X=pt(V,"zIndex",d),(X==="auto"||X==="")&&this._addLazySet(te,"zIndex",0)),typeof tt=="string"&&(Rt=te.cssText,X=ie(V,d),te.cssText=Rt+";"+tt,X=Kt(V,X,ie(V)).difs,!di&&J.test(tt)&&(X.opacity=parseFloat(RegExp.$1)),tt=X,te.cssText=Rt),tt.className?this._firstPT=St=y.className.parse(V,tt.className,"className",this,null,null,tt):this._firstPT=St=this.parse(V,tt,null),this._transformType){for(oe=this._transformType===3,Mn?k&&(I=!0,te.zIndex===""&&(Mt=pt(V,"zIndex",d),(Mt==="auto"||Mt==="")&&this._addLazySet(te,"zIndex",0)),F&&this._addLazySet(te,"WebkitBackfaceVisibility",this._vars.WebkitBackfaceVisibility||(oe?"visible":"hidden"))):te.zoom=1,ht=St;ht&&ht._next;)ht=ht._next;he=new Ei(V,"transform",0,0,null,2),this._linkCSSP(he,null,ht),he.setRatio=Mn?Ph:Gl,he.data=this._transform||us(V,d,!0),he.tween=lt,he.pr=-1,u.pop()}if(o){for(;St;){for(kt=St._next,ht=Rt;ht&&ht.pr>St.pr;)ht=ht._next;(St._prev=ht?ht._prev:Ht)?St._prev._next=St:Rt=St,(St._next=ht)?ht._prev=St:Ht=St,St=kt}this._firstPT=Rt}return!0},S.parse=function(V,tt,lt,at){var X,St,ht,Rt,Ht,kt,Mt,he,oe,te,_e=V.style;for(X in tt){if(kt=tt[X],typeof kt=="function"&&(kt=kt(T,L)),St=y[X])lt=St.parse(V,kt,X,this,lt,at,tt);else{if(X.substr(0,2)==="--"){this._tween._propLookup[X]=this._addTween.call(this._tween,V.style,"setProperty",Wt(V).getPropertyValue(X)+"",kt+"",X,!1,X);continue}Ht=pt(V,X,d)+"",oe=typeof kt=="string",X==="color"||X==="fill"||X==="stroke"||X.indexOf("Color")!==-1||oe&&ct.test(kt)?(oe||(kt=Re(kt),kt=(kt.length>3?"rgba(":"rgb(")+kt.join(",")+")"),lt=or(_e,X,Ht,kt,!0,"transparent",lt,0,at)):oe&&re.test(kt)?lt=or(_e,X,Ht,kt,!0,null,lt,0,at):(ht=parseFloat(Ht),Mt=ht||ht===0?Ht.substr((ht+"").length):"",(Ht===""||Ht==="auto")&&(X==="width"||X==="height"?(ht=ot(V,X,d),Mt="px"):X==="left"||X==="top"?(ht=Dt(V,X,d),Mt="px"):(ht=X!=="opacity"?0:1,Mt="")),te=oe&&kt.charAt(1)==="=",te?(Rt=parseInt(kt.charAt(0)+"1",10),kt=kt.substr(2),Rt*=parseFloat(kt),he=kt.replace(N,"")):(Rt=parseFloat(kt),he=oe?kt.replace(N,""):""),he===""&&(he=X in c?c[X]:Mt),kt=Rt||Rt===0?(te?Rt+ht:Rt)+he:tt[X],Mt!==he&&(he!==""||X==="lineHeight")&&(Rt||Rt===0)&&ht&&(ht=dt(V,X,ht,Mt),he==="%"?(ht/=dt(V,X,100,"%")/100,tt.strictUnits!==!0&&(Ht=ht+"%")):he==="em"||he==="rem"||he==="vw"||he==="vh"?ht/=dt(V,X,1,he):he!=="px"&&(Rt=dt(V,X,Rt,he),he="px"),te&&(Rt||Rt===0)&&(kt=Rt+ht+he)),te&&(Rt+=ht),!ht&&ht!==0||!Rt&&Rt!==0?_e[X]!==void 0&&(kt||kt+""!="NaN"&&kt!=null)?(lt=new Ei(_e,X,Rt||ht||0,0,lt,-1,X,!1,0,Ht,kt),lt.xs0=kt!=="none"||X!=="display"&&X.indexOf("Style")===-1?kt:Ht):mn("invalid "+X+" tween value: "+tt[X]):(lt=new Ei(_e,X,ht,Rt-ht,lt,0,X,A!==!1&&(he==="px"||X==="zIndex"),0,Ht,kt),lt.xs0=he))}at&&lt&&!lt.plugin&&(lt.plugin=at)}return lt},S.setRatio=function(V){var tt,lt,at,X=this._firstPT,St=1e-6;if(V!==1||this._tween._time!==this._tween._duration&&this._tween._time!==0)if(V||this._tween._time!==this._tween._duration&&this._tween._time!==0||this._tween._rawPrevTime===-1e-6)for(;X;){if(tt=X.c*V+X.s,X.r?tt=X.r(tt):St>tt&&tt>-St&&(tt=0),X.type)if(X.type===1)if(at=X.l,at===2)X.t[X.p]=X.xs0+tt+X.xs1+X.xn1+X.xs2;else if(at===3)X.t[X.p]=X.xs0+tt+X.xs1+X.xn1+X.xs2+X.xn2+X.xs3;else if(at===4)X.t[X.p]=X.xs0+tt+X.xs1+X.xn1+X.xs2+X.xn2+X.xs3+X.xn3+X.xs4;else if(at===5)X.t[X.p]=X.xs0+tt+X.xs1+X.xn1+X.xs2+X.xn2+X.xs3+X.xn3+X.xs4+X.xn4+X.xs5;else{for(lt=X.xs0+tt+X.xs1,at=1;at<X.l;at++)lt+=X["xn"+at]+X["xs"+(at+1)];X.t[X.p]=lt}else X.type===-1?X.t[X.p]=X.xs0:X.setRatio&&X.setRatio(V);else X.t[X.p]=tt+X.xs0;X=X._next}else for(;X;)X.type!==2?X.t[X.p]=X.b:X.setRatio(V),X=X._next;else for(;X;){if(X.type!==2)if(X.r&&X.type!==-1)if(tt=X.r(X.s+X.c),X.type){if(X.type===1){for(at=X.l,lt=X.xs0+tt+X.xs1,at=1;at<X.l;at++)lt+=X["xn"+at]+X["xs"+(at+1)];X.t[X.p]=lt}}else X.t[X.p]=tt+X.xs0;else X.t[X.p]=X.e;else X.setRatio(V);X=X._next}},S._enableTransforms=function(V){this._transform=this._transform||us(this._target,d,!0),this._transformType=this._transform.svg&&as||!V&&this._transformType!==3?2:3};var Vl=function(V){this.t[this.p]=this.e,this.data._linkCSSP(this,this._next,null,!0)};S._addLazySet=function(V,tt,lt){var at=this._firstPT=new Ei(V,tt,0,0,this._firstPT,2);at.e=lt,at.setRatio=Vl,at.data=this},S._linkCSSP=function(V,tt,lt,at){return V&&(tt&&(tt._prev=V),V._next&&(V._next._prev=V._prev),V._prev?V._prev._next=V._next:this._firstPT===V&&(this._firstPT=V._next,at=!0),lt?lt._next=V:at||this._firstPT!==null||(this._firstPT=V),V._next=tt,V._prev=lt),V},S._mod=function(V){for(var tt=this._firstPT;tt;)typeof V[tt.p]=="function"&&(tt.r=V[tt.p]),tt=tt._next},S._kill=function(V){var tt,lt,at,X=V;if(V.autoAlpha||V.alpha){X={};for(lt in V)X[lt]=V[lt];X.opacity=1,X.autoAlpha&&(X.visibility=1)}for(V.className&&(tt=this._classNamePT)&&(at=tt.xfirst,at&&at._prev?this._linkCSSP(at._prev,tt._next,at._prev._prev):at===this._firstPT&&(this._firstPT=tt._next),tt._next&&this._linkCSSP(tt._next,tt._next._next,at._prev),this._classNamePT=null),tt=this._firstPT;tt;)tt.plugin&&tt.plugin!==lt&&tt.plugin._kill&&(tt.plugin._kill(V),lt=tt.plugin),tt=tt._next;return x.prototype._kill.call(this,X)};var Yr=function(V,tt,lt){var at,X,St,ht;if(V.slice)for(X=V.length;--X>-1;)Yr(V[X],tt,lt);else for(at=V.childNodes,X=at.length;--X>-1;)St=at[X],ht=St.type,St.style&&(tt.push(ie(St)),lt&&lt.push(St)),ht!==1&&ht!==9&&ht!==11||!St.childNodes.length||Yr(St,tt,lt)};return m.cascadeTo=function(V,tt,lt){var at,X,St,ht,Rt=a.to(V,tt,lt),Ht=[Rt],kt=[],Mt=[],he=[],oe=a._internals.reservedProps;for(V=Rt._targets||Rt.target,Yr(V,kt,he),Rt.render(tt,!0,!0),Yr(V,Mt),Rt.render(0,!0,!0),Rt._enabled(!0),at=he.length;--at>-1;)if(X=Kt(he[at],kt[at],Mt[at]),X.firstMPT){X=X.difs;for(St in lt)oe[St]&&(X[St]=lt[St]);ht={};for(St in X)ht[St]=kt[at][St];Ht.push(a.fromTo(he[at],tt,ht,X))}return Ht},x.activate([m]),m},!0),function(){var x=ln._gsDefine.plugin({propName:"roundProps",version:"1.7.0",priority:-1,API:2,init:function(d,u,m){return this._tween=m,!0}}),a=function(d){var u=1>d?Math.pow(10,(d+"").length-2):1;return function(m){return(Math.round(m/d)*d*u|0)/u}},o=function(d,u){for(;d;)d.f||d.blob||(d.m=u||Math.round),d=d._next},c=x.prototype;c._onInitAllProps=function(){var d,u,m,_,y=this._tween,S=y.vars.roundProps,A={},I=y._propLookup.roundProps;if(typeof S!="object"||S.push)for(typeof S=="string"&&(S=S.split(",")),m=S.length;--m>-1;)A[S[m]]=Math.round;else for(_ in S)A[_]=a(S[_]);for(_ in A)for(d=y._firstPT;d;)u=d._next,d.pg?d.t._mod(A):d.n===_&&(d.f===2&&d.t?o(d.t._firstPT,A[_]):(this._add(d.t,_,d.s,d.c,A[_]),u&&(u._prev=d._prev),d._prev?d._prev._next=u:y._firstPT===d&&(y._firstPT=u),d._next=d._prev=null,y._propLookup[_]=I)),d=u;return!1},c._add=function(d,u,m,_,y){this._addTween(d,u,m,m+_,u,y||Math.round),this._overwriteProps.push(u)}}(),function(){ln._gsDefine.plugin({propName:"attr",API:2,version:"0.6.1",init:function(x,a,o,c){var d,u;if(typeof x.setAttribute!="function")return!1;for(d in a)u=a[d],typeof u=="function"&&(u=u(c,x)),this._addTween(x,"setAttribute",x.getAttribute(d)+"",u+"",d,!1,d),this._overwriteProps.push(d);return!0}})}(),ln._gsDefine.plugin({propName:"directionalRotation",version:"0.3.1",API:2,init:function(x,a,o,c){typeof a!="object"&&(a={rotation:a}),this.finals={};var d,u,m,_,y,S,A=a.useRadians===!0?2*Math.PI:360,I=1e-6;for(d in a)d!=="useRadians"&&(_=a[d],typeof _=="function"&&(_=_(c,x)),S=(_+"").split("_"),u=S[0],m=parseFloat(typeof x[d]!="function"?x[d]:x[d.indexOf("set")||typeof x["get"+d.substr(3)]!="function"?d:"get"+d.substr(3)]()),_=this.finals[d]=typeof u=="string"&&u.charAt(1)==="="?m+parseInt(u.charAt(0)+"1",10)*Number(u.substr(2)):Number(u)||0,y=_-m,S.length&&(u=S.join("_"),u.indexOf("short")!==-1&&(y%=A,y!==y%(A/2)&&(y=0>y?y+A:y-A)),u.indexOf("_cw")!==-1&&0>y?y=(y+9999999999*A)%A-(y/A|0)*A:u.indexOf("ccw")!==-1&&y>0&&(y=(y-9999999999*A)%A-(y/A|0)*A)),(y>I||-I>y)&&(this._addTween(x,d,m,m+y,d),this._overwriteProps.push(d)));return!0},set:function(x){var a;if(x!==1)this._super.setRatio.call(this,x);else for(a=this._firstPT;a;)a.f?a.t[a.p](this.finals[a.p]):a.t[a.p]=this.finals[a.p],a=a._next}})._autoCSS=!0,ln._gsDefine("easing.Back",["easing.Ease"],function(x){var a,o,c,d,u=ln.GreenSockGlobals||ln,m=u.com.greensock,_=2*Math.PI,y=Math.PI/2,S=m._class,A=function(M,R){var b=S("easing."+M,function(){},!0),U=b.prototype=new x;return U.constructor=b,U.getRatio=R,b},I=x.register||function(){},k=function(M,R,b,U,N){var j=S("easing."+M,{easeOut:new R,easeIn:new b,easeInOut:new U},!0);return I(j,M),j},D=function(M,R,b){this.t=M,this.v=R,b&&(this.next=b,b.prev=this,this.c=b.v-R,this.gap=b.t-M)},F=function(M,R){var b=S("easing."+M,function(N){this._p1=N||N===0?N:1.70158,this._p2=1.525*this._p1},!0),U=b.prototype=new x;return U.constructor=b,U.getRatio=R,U.config=function(N){return new b(N)},b},E=k("Back",F("BackOut",function(M){return(M-=1)*M*((this._p1+1)*M+this._p1)+1}),F("BackIn",function(M){return M*M*((this._p1+1)*M-this._p1)}),F("BackInOut",function(M){return(M*=2)<1?.5*M*M*((this._p2+1)*M-this._p2):.5*((M-=2)*M*((this._p2+1)*M+this._p2)+2)})),L=S("easing.SlowMo",function(M,R,b){R=R||R===0?R:.7,M==null?M=.7:M>1&&(M=1),this._p=M!==1?R:0,this._p1=(1-M)/2,this._p2=M,this._p3=this._p1+this._p2,this._calcEnd=b===!0},!0),T=L.prototype=new x;return T.constructor=L,T.getRatio=function(M){var R=M+(.5-M)*this._p;return M<this._p1?this._calcEnd?1-(M=1-M/this._p1)*M:R-(M=1-M/this._p1)*M*M*M*R:M>this._p3?this._calcEnd?M===1?0:1-(M=(M-this._p3)/this._p1)*M:R+(M-R)*(M=(M-this._p3)/this._p1)*M*M*M:this._calcEnd?1:R},L.ease=new L(.7,.7),T.config=L.config=function(M,R,b){return new L(M,R,b)},a=S("easing.SteppedEase",function(M,R){M=M||1,this._p1=1/M,this._p2=M+(R?0:1),this._p3=R?1:0},!0),T=a.prototype=new x,T.constructor=a,T.getRatio=function(M){return 0>M?M=0:M>=1&&(M=.999999999),((this._p2*M|0)+this._p3)*this._p1},T.config=a.config=function(M,R){return new a(M,R)},o=S("easing.ExpoScaleEase",function(M,R,b){this._p1=Math.log(R/M),this._p2=R-M,this._p3=M,this._ease=b},!0),T=o.prototype=new x,T.constructor=o,T.getRatio=function(M){return this._ease&&(M=this._ease.getRatio(M)),(this._p3*Math.exp(this._p1*M)-this._p3)/this._p2},T.config=o.config=function(M,R,b){return new o(M,R,b)},c=S("easing.RoughEase",function(M){M=M||{};for(var R,b,U,N,j,J,$=M.taper||"none",ct=[],It=0,et=0|(M.points||20),yt=et,G=M.randomize!==!1,Pt=M.clamp===!0,Et=M.template instanceof x?M.template:null,Ct=typeof M.strength=="number"?.4*M.strength:.4;--yt>-1;)R=G?Math.random():1/et*yt,b=Et?Et.getRatio(R):R,$==="none"?U=Ct:$==="out"?(N=1-R,U=N*N*Ct):$==="in"?U=R*R*Ct:.5>R?(N=2*R,U=N*N*.5*Ct):(N=2*(1-R),U=N*N*.5*Ct),G?b+=Math.random()*U-.5*U:yt%2?b+=.5*U:b-=.5*U,Pt&&(b>1?b=1:0>b&&(b=0)),ct[It++]={x:R,y:b};for(ct.sort(function(fe,re){return fe.x-re.x}),J=new D(1,1,null),yt=et;--yt>-1;)j=ct[yt],J=new D(j.x,j.y,J);this._prev=new D(0,0,J.t!==0?J:J.next)},!0),T=c.prototype=new x,T.constructor=c,T.getRatio=function(M){var R=this._prev;if(M>R.t){for(;R.next&&M>=R.t;)R=R.next;R=R.prev}else for(;R.prev&&M<=R.t;)R=R.prev;return this._prev=R,R.v+(M-R.t)/R.gap*R.c},T.config=function(M){return new c(M)},c.ease=new c,k("Bounce",A("BounceOut",function(M){return 1/2.75>M?7.5625*M*M:2/2.75>M?7.5625*(M-=1.5/2.75)*M+.75:2.5/2.75>M?7.5625*(M-=2.25/2.75)*M+.9375:7.5625*(M-=2.625/2.75)*M+.984375}),A("BounceIn",function(M){return(M=1-M)<1/2.75?1-7.5625*M*M:2/2.75>M?1-(7.5625*(M-=1.5/2.75)*M+.75):2.5/2.75>M?1-(7.5625*(M-=2.25/2.75)*M+.9375):1-(7.5625*(M-=2.625/2.75)*M+.984375)}),A("BounceInOut",function(M){var R=.5>M;return M=R?1-2*M:2*M-1,M=1/2.75>M?7.5625*M*M:2/2.75>M?7.5625*(M-=1.5/2.75)*M+.75:2.5/2.75>M?7.5625*(M-=2.25/2.75)*M+.9375:7.5625*(M-=2.625/2.75)*M+.984375,R?.5*(1-M):.5*M+.5})),k("Circ",A("CircOut",function(M){return Math.sqrt(1-(M-=1)*M)}),A("CircIn",function(M){return-(Math.sqrt(1-M*M)-1)}),A("CircInOut",function(M){return(M*=2)<1?-.5*(Math.sqrt(1-M*M)-1):.5*(Math.sqrt(1-(M-=2)*M)+1)})),d=function(M,R,b){var U=S("easing."+M,function(j,J){this._p1=j>=1?j:1,this._p2=(J||b)/(1>j?j:1),this._p3=this._p2/_*(Math.asin(1/this._p1)||0),this._p2=_/this._p2},!0),N=U.prototype=new x;return N.constructor=U,N.getRatio=R,N.config=function(j,J){return new U(j,J)},U},k("Elastic",d("ElasticOut",function(M){return this._p1*Math.pow(2,-10*M)*Math.sin((M-this._p3)*this._p2)+1},.3),d("ElasticIn",function(M){return-(this._p1*Math.pow(2,10*(M-=1))*Math.sin((M-this._p3)*this._p2))},.3),d("ElasticInOut",function(M){return(M*=2)<1?-.5*(this._p1*Math.pow(2,10*(M-=1))*Math.sin((M-this._p3)*this._p2)):this._p1*Math.pow(2,-10*(M-=1))*Math.sin((M-this._p3)*this._p2)*.5+1},.45)),k("Expo",A("ExpoOut",function(M){return 1-Math.pow(2,-10*M)}),A("ExpoIn",function(M){return Math.pow(2,10*(M-1))-.001}),A("ExpoInOut",function(M){return(M*=2)<1?.5*Math.pow(2,10*(M-1)):.5*(2-Math.pow(2,-10*(M-1)))})),k("Sine",A("SineOut",function(M){return Math.sin(M*y)}),A("SineIn",function(M){return-Math.cos(M*y)+1}),A("SineInOut",function(M){return-.5*(Math.cos(Math.PI*M)-1)})),S("easing.EaseLookup",{find:function(M){return x.map[M]}},!0),I(u.SlowMo,"SlowMo","ease,"),I(c,"RoughEase","ease,"),I(a,"SteppedEase","ease,"),E},!0)}),ln._gsDefine&&ln._gsQueue.pop()(),function(x,a){var o={},c=x.document,d=x.GreenSockGlobals=x.GreenSockGlobals||x,u=d[a];if(u)return typeof module<"u"&&module.exports&&(module.exports=u),u;var m,_,y,S,A,I=function(z){var Q,ot=z.split("."),nt=d;for(Q=0;Q<ot.length;Q++)nt[ot[Q]]=nt=nt[ot[Q]]||{};return nt},k=I("com.greensock"),D=1e-10,F=function(z){var Q,ot=[],nt=z.length;for(Q=0;Q!==nt;ot.push(z[Q++]));return ot},E=function(){},L=function(){var z=Object.prototype.toString,Q=z.call([]);return function(ot){return ot!=null&&(ot instanceof Array||typeof ot=="object"&&!!ot.push&&z.call(ot)===Q)}}(),T={},M=function(z,Q,ot,nt){this.sc=T[z]?T[z].sc:[],T[z]=this,this.gsClass=null,this.func=ot;var vt=[];this.check=function(Gt){for(var Xt,jt,Ne,Re,ge=Q.length,we=ge;--ge>-1;)(Xt=T[Q[ge]]||new M(Q[ge],[])).gsClass?(vt[ge]=Xt.gsClass,we--):Gt&&Xt.sc.push(this);if(we===0&&ot){if(jt=("com.greensock."+z).split("."),Ne=jt.pop(),Re=I(jt.join("."))[Ne]=this.gsClass=ot.apply(ot,vt),nt)if(d[Ne]=o[Ne]=Re,typeof module<"u"&&module.exports)if(z===a){module.exports=o[a]=Re;for(ge in o)Re[ge]=o[ge]}else o[a]&&(o[a][Ne]=Re);else typeof define=="function"&&define.amd&&define((x.GreenSockAMDPath?x.GreenSockAMDPath+"/":"")+z.split(".").pop(),[],function(){return Re});for(ge=0;ge<this.sc.length;ge++)this.sc[ge].check()}},this.check(!0)},R=x._gsDefine=function(z,Q,ot,nt){return new M(z,Q,ot,nt)},b=k._class=function(z,Q,ot){return Q=Q||function(){},R(z,[],function(){return Q},ot),Q};R.globals=d;var U=[0,0,1,1],N=b("easing.Ease",function(z,Q,ot,nt){this._func=z,this._type=ot||0,this._power=nt||0,this._params=Q?U.concat(Q):U},!0),j=N.map={},J=N.register=function(z,Q,ot,nt){for(var vt,Gt,Xt,jt,Ne=Q.split(","),Re=Ne.length,ge=(ot||"easeIn,easeOut,easeInOut").split(",");--Re>-1;)for(Gt=Ne[Re],vt=nt?b("easing."+Gt,null,!0):k.easing[Gt]||{},Xt=ge.length;--Xt>-1;)jt=ge[Xt],j[Gt+"."+jt]=j[jt+Gt]=vt[jt]=z.getRatio?z:z[jt]||new z};for(y=N.prototype,y._calcEnd=!1,y.getRatio=function(z){if(this._func)return this._params[0]=z,this._func.apply(null,this._params);var Q=this._type,ot=this._power,nt=Q===1?1-z:Q===2?z:.5>z?2*z:2*(1-z);return ot===1?nt*=nt:ot===2?nt*=nt*nt:ot===3?nt*=nt*nt*nt:ot===4&&(nt*=nt*nt*nt*nt),Q===1?1-nt:Q===2?nt:.5>z?nt/2:1-nt/2},m=["Linear","Quad","Cubic","Quart","Quint,Strong"],_=m.length;--_>-1;)y=m[_]+",Power"+_,J(new N(null,null,1,_),y,"easeOut",!0),J(new N(null,null,2,_),y,"easeIn"+(_===0?",easeNone":"")),J(new N(null,null,3,_),y,"easeInOut");j.linear=k.easing.Linear.easeIn,j.swing=k.easing.Quad.easeInOut;var $=b("events.EventDispatcher",function(z){this._listeners={},this._eventTarget=z||this});y=$.prototype,y.addEventListener=function(z,Q,ot,nt,vt){vt=vt||0;var Gt,Xt,jt=this._listeners[z],Ne=0;for(this!==S||A||S.wake(),jt==null&&(this._listeners[z]=jt=[]),Xt=jt.length;--Xt>-1;)Gt=jt[Xt],Gt.c===Q&&Gt.s===ot?jt.splice(Xt,1):Ne===0&&Gt.pr<vt&&(Ne=Xt+1);jt.splice(Ne,0,{c:Q,s:ot,up:nt,pr:vt})},y.removeEventListener=function(z,Q){var ot,nt=this._listeners[z];if(nt){for(ot=nt.length;--ot>-1;)if(nt[ot].c===Q)return void nt.splice(ot,1)}},y.dispatchEvent=function(z){var Q,ot,nt,vt=this._listeners[z];if(vt)for(Q=vt.length,Q>1&&(vt=vt.slice(0)),ot=this._eventTarget;--Q>-1;)nt=vt[Q],nt&&(nt.up?nt.c.call(nt.s||ot,{type:z,target:ot}):nt.c.call(nt.s||ot))};var ct=x.requestAnimationFrame,It=x.cancelAnimationFrame,et=Date.now||function(){return new Date().getTime()},yt=et();for(m=["ms","moz","webkit","o"],_=m.length;--_>-1&&!ct;)ct=x[m[_]+"RequestAnimationFrame"],It=x[m[_]+"CancelAnimationFrame"]||x[m[_]+"CancelRequestAnimationFrame"];b("Ticker",function(z,Q){var ot,nt,vt,Gt,Xt,jt=this,Ne=et(),Re=Q!==!1&&ct?"auto":!1,ge=500,we=33,_i="tick",Si=function(ni){var Ei,qr,or=et()-yt;or>ge&&(Ne+=or-we),yt+=or,jt.time=(yt-Ne)/1e3,Ei=jt.time-Xt,(!ot||Ei>0||ni===!0)&&(jt.frame++,Xt+=Ei+(Ei>=Gt?.004:Gt-Ei),qr=!0),ni!==!0&&(vt=nt(Si)),qr&&jt.dispatchEvent(_i)};$.call(jt),jt.time=jt.frame=0,jt.tick=function(){Si(!0)},jt.lagSmoothing=function(ni,Ei){return arguments.length?(ge=ni||1/D,void(we=Math.min(Ei,ge,0))):1/D>ge},jt.sleep=function(){vt!=null&&(Re&&It?It(vt):clearTimeout(vt),nt=E,vt=null,jt===S&&(A=!1))},jt.wake=function(ni){vt!==null?jt.sleep():ni?Ne+=-yt+(yt=et()):jt.frame>10&&(yt=et()-ge+5),nt=ot===0?E:Re&&ct?ct:function(Ei){return setTimeout(Ei,1e3*(Xt-jt.time)+1|0)},jt===S&&(A=!0),Si(2)},jt.fps=function(ni){return arguments.length?(ot=ni,Gt=1/(ot||60),Xt=this.time+Gt,void jt.wake()):ot},jt.useRAF=function(ni){return arguments.length?(jt.sleep(),Re=ni,void jt.fps(ot)):Re},jt.fps(z),setTimeout(function(){Re==="auto"&&jt.frame<5&&(c||{}).visibilityState!=="hidden"&&jt.useRAF(!1)},1500)}),y=k.Ticker.prototype=new k.events.EventDispatcher,y.constructor=k.Ticker;var G=b("core.Animation",function(z,Q){if(this.vars=Q=Q||{},this._duration=this._totalDuration=z||0,this._delay=Number(Q.delay)||0,this._timeScale=1,this._active=Q.immediateRender===!0,this.data=Q.data,this._reversed=Q.reversed===!0,W){A||S.wake();var ot=this.vars.useFrames?Qi:W;ot.add(this,ot._time),this.vars.paused&&this.paused(!0)}});S=G.ticker=new k.Ticker,y=G.prototype,y._dirty=y._gc=y._initted=y._paused=!1,y._totalTime=y._time=0,y._rawPrevTime=-1,y._next=y._last=y._onUpdate=y._timeline=y.timeline=null,y._paused=!1;var Pt=function(){A&&et()-yt>2e3&&((c||{}).visibilityState!=="hidden"||!S.lagSmoothing())&&S.wake();var z=setTimeout(Pt,2e3);z.unref&&z.unref()};Pt(),y.play=function(z,Q){return z!=null&&this.seek(z,Q),this.reversed(!1).paused(!1)},y.pause=function(z,Q){return z!=null&&this.seek(z,Q),this.paused(!0)},y.resume=function(z,Q){return z!=null&&this.seek(z,Q),this.paused(!1)},y.seek=function(z,Q){return this.totalTime(Number(z),Q!==!1)},y.restart=function(z,Q){return this.reversed(!1).paused(!1).totalTime(z?-this._delay:0,Q!==!1,!0)},y.reverse=function(z,Q){return z!=null&&this.seek(z||this.totalDuration(),Q),this.reversed(!0).paused(!1)},y.render=function(z,Q,ot){},y.invalidate=function(){return this._time=this._totalTime=0,this._initted=this._gc=!1,this._rawPrevTime=-1,(this._gc||!this.timeline)&&this._enabled(!0),this},y.isActive=function(){var z,Q=this._timeline,ot=this._startTime;return!Q||!this._gc&&!this._paused&&Q.isActive()&&(z=Q.rawTime(!0))>=ot&&z<ot+this.totalDuration()/this._timeScale-1e-7},y._enabled=function(z,Q){return A||S.wake(),this._gc=!z,this._active=this.isActive(),Q!==!0&&(z&&!this.timeline?this._timeline.add(this,this._startTime-this._delay):!z&&this.timeline&&this._timeline._remove(this,!0)),!1},y._kill=function(z,Q){return this._enabled(!1,!1)},y.kill=function(z,Q){return this._kill(z,Q),this},y._uncache=function(z){for(var Q=z?this:this.timeline;Q;)Q._dirty=!0,Q=Q.timeline;return this},y._swapSelfInParams=function(z){for(var Q=z.length,ot=z.concat();--Q>-1;)z[Q]==="{self}"&&(ot[Q]=this);return ot},y._callback=function(z){var Q=this.vars,ot=Q[z],nt=Q[z+"Params"],vt=Q[z+"Scope"]||Q.callbackScope||this,Gt=nt?nt.length:0;switch(Gt){case 0:ot.call(vt);break;case 1:ot.call(vt,nt[0]);break;case 2:ot.call(vt,nt[0],nt[1]);break;default:ot.apply(vt,nt)}},y.eventCallback=function(z,Q,ot,nt){if((z||"").substr(0,2)==="on"){var vt=this.vars;if(arguments.length===1)return vt[z];Q==null?delete vt[z]:(vt[z]=Q,vt[z+"Params"]=L(ot)&&ot.join("").indexOf("{self}")!==-1?this._swapSelfInParams(ot):ot,vt[z+"Scope"]=nt),z==="onUpdate"&&(this._onUpdate=Q)}return this},y.delay=function(z){return arguments.length?(this._timeline.smoothChildTiming&&this.startTime(this._startTime+z-this._delay),this._delay=z,this):this._delay},y.duration=function(z){return arguments.length?(this._duration=this._totalDuration=z,this._uncache(!0),this._timeline.smoothChildTiming&&this._time>0&&this._time<this._duration&&z!==0&&this.totalTime(this._totalTime*(z/this._duration),!0),this):(this._dirty=!1,this._duration)},y.totalDuration=function(z){return this._dirty=!1,arguments.length?this.duration(z):this._totalDuration},y.time=function(z,Q){return arguments.length?(this._dirty&&this.totalDuration(),this.totalTime(z>this._duration?this._duration:z,Q)):this._time},y.totalTime=function(z,Q,ot){if(A||S.wake(),!arguments.length)return this._totalTime;if(this._timeline){if(0>z&&!ot&&(z+=this.totalDuration()),this._timeline.smoothChildTiming){this._dirty&&this.totalDuration();var nt=this._totalDuration,vt=this._timeline;if(z>nt&&!ot&&(z=nt),this._startTime=(this._paused?this._pauseTime:vt._time)-(this._reversed?nt-z:z)/this._timeScale,vt._dirty||this._uncache(!1),vt._timeline)for(;vt._timeline;)vt._timeline._time!==(vt._startTime+vt._totalTime)/vt._timeScale&&vt.totalTime(vt._totalTime,!0),vt=vt._timeline}this._gc&&this._enabled(!0,!1),(this._totalTime!==z||this._duration===0)&&(Ft.length&&Wt(),this.render(z,Q,!1),Ft.length&&Wt())}return this},y.progress=y.totalProgress=function(z,Q){var ot=this.duration();return arguments.length?this.totalTime(ot*z,Q):ot?this._time/ot:this.ratio},y.startTime=function(z){return arguments.length?(z!==this._startTime&&(this._startTime=z,this.timeline&&this.timeline._sortChildren&&this.timeline.add(this,z-this._delay)),this):this._startTime},y.endTime=function(z){return this._startTime+(z!=0?this.totalDuration():this.duration())/this._timeScale},y.timeScale=function(z){if(!arguments.length)return this._timeScale;var Q,ot;for(z=z||D,this._timeline&&this._timeline.smoothChildTiming&&(Q=this._pauseTime,ot=Q||Q===0?Q:this._timeline.totalTime(),this._startTime=ot-(ot-this._startTime)*this._timeScale/z),this._timeScale=z,ot=this.timeline;ot&&ot.timeline;)ot._dirty=!0,ot.totalDuration(),ot=ot.timeline;return this},y.reversed=function(z){return arguments.length?(z!=this._reversed&&(this._reversed=z,this.totalTime(this._timeline&&!this._timeline.smoothChildTiming?this.totalDuration()-this._totalTime:this._totalTime,!0)),this):this._reversed},y.paused=function(z){if(!arguments.length)return this._paused;var Q,ot,nt=this._timeline;return z!=this._paused&&nt&&(A||z||S.wake(),Q=nt.rawTime(),ot=Q-this._pauseTime,!z&&nt.smoothChildTiming&&(this._startTime+=ot,this._uncache(!1)),this._pauseTime=z?Q:null,this._paused=z,this._active=this.isActive(),!z&&ot!==0&&this._initted&&this.duration()&&(Q=nt.smoothChildTiming?this._totalTime:(Q-this._startTime)/this._timeScale,this.render(Q,Q===this._totalTime,!0))),this._gc&&!z&&this._enabled(!0,!1),this};var Et=b("core.SimpleTimeline",function(z){G.call(this,0,z),this.autoRemoveChildren=this.smoothChildTiming=!0});y=Et.prototype=new G,y.constructor=Et,y.kill()._gc=!1,y._first=y._last=y._recent=null,y._sortChildren=!1,y.add=y.insert=function(z,Q,ot,nt){var vt,Gt;if(z._startTime=Number(Q||0)+z._delay,z._paused&&this!==z._timeline&&(z._pauseTime=this.rawTime()-(z._timeline.rawTime()-z._pauseTime)),z.timeline&&z.timeline._remove(z,!0),z.timeline=z._timeline=this,z._gc&&z._enabled(!0,!0),vt=this._last,this._sortChildren)for(Gt=z._startTime;vt&&vt._startTime>Gt;)vt=vt._prev;return vt?(z._next=vt._next,vt._next=z):(z._next=this._first,this._first=z),z._next?z._next._prev=z:this._last=z,z._prev=vt,this._recent=z,this._timeline&&this._uncache(!0),this},y._remove=function(z,Q){return z.timeline===this&&(Q||z._enabled(!1,!0),z._prev?z._prev._next=z._next:this._first===z&&(this._first=z._next),z._next?z._next._prev=z._prev:this._last===z&&(this._last=z._prev),z._next=z._prev=z.timeline=null,z===this._recent&&(this._recent=this._last),this._timeline&&this._uncache(!0)),this},y.render=function(z,Q,ot){var nt,vt=this._first;for(this._totalTime=this._time=this._rawPrevTime=z;vt;)nt=vt._next,(vt._active||z>=vt._startTime&&!vt._paused&&!vt._gc)&&(vt._reversed?vt.render((vt._dirty?vt.totalDuration():vt._totalDuration)-(z-vt._startTime)*vt._timeScale,Q,ot):vt.render((z-vt._startTime)*vt._timeScale,Q,ot)),vt=nt},y.rawTime=function(){return A||S.wake(),this._totalTime};var Ct=b("TweenLite",function(z,Q,ot){if(G.call(this,Q,ot),this.render=Ct.prototype.render,z==null)throw"Cannot tween a null target.";this.target=z=typeof z!="string"?z:Ct.selector(z)||z;var nt,vt,Gt,Xt=z.jquery||z.length&&z!==x&&z[0]&&(z[0]===x||z[0].nodeType&&z[0].style&&!z.nodeType),jt=this.vars.overwrite;if(this._overwrite=jt=jt==null?mn[Ct.defaultOverwrite]:typeof jt=="number"?jt>>0:mn[jt],(Xt||z instanceof Array||z.push&&L(z))&&typeof z[0]!="number")for(this._targets=Gt=F(z),this._propLookup=[],this._siblings=[],nt=0;nt<Gt.length;nt++)vt=Gt[nt],vt?typeof vt!="string"?vt.length&&vt!==x&&vt[0]&&(vt[0]===x||vt[0].nodeType&&vt[0].style&&!vt.nodeType)?(Gt.splice(nt--,1),this._targets=Gt=Gt.concat(F(vt))):(this._siblings[nt]=pt(vt,this,!1),jt===1&&this._siblings[nt].length>1&&Dt(vt,this,null,1,this._siblings[nt])):(vt=Gt[nt--]=Ct.selector(vt),typeof vt=="string"&&Gt.splice(nt+1,1)):Gt.splice(nt--,1);else this._propLookup={},this._siblings=pt(z,this,!1),jt===1&&this._siblings.length>1&&Dt(z,this,null,1,this._siblings);(this.vars.immediateRender||Q===0&&this._delay===0&&this.vars.immediateRender!==!1)&&(this._time=-D,this.render(Math.min(0,-this._delay)))},!0),fe=function(z){return z&&z.length&&z!==x&&z[0]&&(z[0]===x||z[0].nodeType&&z[0].style&&!z.nodeType)},re=function(z,Q){var ot,nt={};for(ot in z)Ii[ot]||ot in Q&&ot!=="transform"&&ot!=="x"&&ot!=="y"&&ot!=="width"&&ot!=="height"&&ot!=="className"&&ot!=="border"||!(!Oe[ot]||Oe[ot]&&Oe[ot]._autoCSS)||(nt[ot]=z[ot],delete z[ot]);z.css=nt};y=Ct.prototype=new G,y.constructor=Ct,y.kill()._gc=!1,y.ratio=0,y._firstPT=y._targets=y._overwrittenProps=y._startAt=null,y._notifyPluginsOfEnabled=y._lazy=!1,Ct.version="2.0.2",Ct.defaultEase=y._ease=new N(null,null,1,1),Ct.defaultOverwrite="auto",Ct.ticker=S,Ct.autoSleep=120,Ct.lagSmoothing=function(z,Q){S.lagSmoothing(z,Q)},Ct.selector=x.$||x.jQuery||function(z){var Q=x.$||x.jQuery;return Q?(Ct.selector=Q,Q(z)):(c||(c=x.document),c?c.querySelectorAll?c.querySelectorAll(z):c.getElementById(z.charAt(0)==="#"?z.substr(1):z):z)};var Ft=[],Ot={},Bt=/(?:(-|-=|\+=)?\d*\.?\d*(?:e[\-+]?\d+)?)[0-9]/gi,ke=/[\+-]=-?[\.\d]/,ce=function(z){for(var Q,ot=this._firstPT,nt=1e-6;ot;)Q=ot.blob?z===1&&this.end!=null?this.end:z?this.join(""):this.start:ot.c*z+ot.s,ot.m?Q=ot.m.call(this._tween,Q,this._target||ot.t,this._tween):nt>Q&&Q>-nt&&!ot.blob&&(Q=0),ot.f?ot.fp?ot.t[ot.p](ot.fp,Q):ot.t[ot.p](Q):ot.t[ot.p]=Q,ot=ot._next},Yt=function(z,Q,ot,nt){var vt,Gt,Xt,jt,Ne,Re,ge,we=[],_i=0,Si="",ni=0;for(we.start=z,we.end=Q,z=we[0]=z+"",Q=we[1]=Q+"",ot&&(ot(we),z=we[0],Q=we[1]),we.length=0,vt=z.match(Bt)||[],Gt=Q.match(Bt)||[],nt&&(nt._next=null,nt.blob=1,we._firstPT=we._applyPT=nt),Ne=Gt.length,jt=0;Ne>jt;jt++)ge=Gt[jt],Re=Q.substr(_i,Q.indexOf(ge,_i)-_i),Si+=Re||!jt?Re:",",_i+=Re.length,ni?ni=(ni+1)%5:Re.substr(-5)==="rgba("&&(ni=1),ge===vt[jt]||vt.length<=jt?Si+=ge:(Si&&(we.push(Si),Si=""),Xt=parseFloat(vt[jt]),we.push(Xt),we._firstPT={_next:we._firstPT,t:we,p:we.length-1,s:Xt,c:(ge.charAt(1)==="="?parseInt(ge.charAt(0)+"1",10)*parseFloat(ge.substr(2)):parseFloat(ge)-Xt)||0,f:0,m:ni&&4>ni?Math.round:0}),_i+=ge.length;return Si+=Q.substr(_i),Si&&we.push(Si),we.setRatio=ce,ke.test(Q)&&(we.end=null),we},$e=function(z,Q,ot,nt,vt,Gt,Xt,jt,Ne){typeof nt=="function"&&(nt=nt(Ne||0,z));var Re,ge=typeof z[Q],we=ge!=="function"?"":Q.indexOf("set")||typeof z["get"+Q.substr(3)]!="function"?Q:"get"+Q.substr(3),_i=ot!=="get"?ot:we?Xt?z[we](Xt):z[we]():z[Q],Si=typeof nt=="string"&&nt.charAt(1)==="=",ni={t:z,p:Q,s:_i,f:ge==="function",pg:0,n:vt||Q,m:Gt?typeof Gt=="function"?Gt:Math.round:0,pr:0,c:Si?parseInt(nt.charAt(0)+"1",10)*parseFloat(nt.substr(2)):parseFloat(nt)-_i||0};return(typeof _i!="number"||typeof nt!="number"&&!Si)&&(Xt||isNaN(_i)||!Si&&isNaN(nt)||typeof _i=="boolean"||typeof nt=="boolean"?(ni.fp=Xt,Re=Yt(_i,Si?parseFloat(ni.s)+ni.c+(ni.s+"").replace(/[0-9\-\.]/g,""):nt,jt||Ct.defaultStringFilter,ni),ni={t:Re,p:"setRatio",s:0,c:1,f:2,pg:0,n:vt||Q,pr:0,m:0}):(ni.s=parseFloat(_i),Si||(ni.c=parseFloat(nt)-ni.s||0))),ni.c?((ni._next=this._firstPT)&&(ni._next._prev=ni),this._firstPT=ni,ni):void 0},Oi=Ct._internals={isArray:L,isSelector:fe,lazyTweens:Ft,blobDif:Yt},Oe=Ct._plugins={},Ge=Oi.tweenLookup={},di=0,Ii=Oi.reservedProps={ease:1,delay:1,overwrite:1,onComplete:1,onCompleteParams:1,onCompleteScope:1,useFrames:1,runBackwards:1,startAt:1,onUpdate:1,onUpdateParams:1,onUpdateScope:1,onStart:1,onStartParams:1,onStartScope:1,onReverseComplete:1,onReverseCompleteParams:1,onReverseCompleteScope:1,onRepeat:1,onRepeatParams:1,onRepeatScope:1,easeParams:1,yoyo:1,immediateRender:1,repeat:1,repeatDelay:1,data:1,paused:1,reversed:1,autoCSS:1,lazy:1,onOverwrite:1,callbackScope:1,stringFilter:1,id:1,yoyoEase:1},mn={none:0,all:1,auto:2,concurrent:3,allOnStart:4,preexisting:5,true:1,false:0},Qi=G._rootFramesTimeline=new Et,W=G._rootTimeline=new Et,Jt=30,Wt=Oi.lazyRender=function(){var z,Q=Ft.length;for(Ot={};--Q>-1;)z=Ft[Q],z&&z._lazy!==!1&&(z.render(z._lazy[0],z._lazy[1],!0),z._lazy=!1);Ft.length=0};W._startTime=S.time,Qi._startTime=S.frame,W._active=Qi._active=!0,setTimeout(Wt,1),G._updateRoot=Ct.render=function(){var z,Q,ot;if(Ft.length&&Wt(),W.render((S.time-W._startTime)*W._timeScale,!1,!1),Qi.render((S.frame-Qi._startTime)*Qi._timeScale,!1,!1),Ft.length&&Wt(),S.frame>=Jt){Jt=S.frame+(parseInt(Ct.autoSleep,10)||120);for(ot in Ge){for(Q=Ge[ot].tweens,z=Q.length;--z>-1;)Q[z]._gc&&Q.splice(z,1);Q.length===0&&delete Ge[ot]}if(ot=W._first,(!ot||ot._paused)&&Ct.autoSleep&&!Qi._first&&S._listeners.tick.length===1){for(;ot&&ot._paused;)ot=ot._next;ot||S.sleep()}}},S.addEventListener("tick",G._updateRoot);var pt=function(z,Q,ot){var nt,vt,Gt=z._gsTweenID;if(Ge[Gt||(z._gsTweenID=Gt="t"+di++)]||(Ge[Gt]={target:z,tweens:[]}),Q&&(nt=Ge[Gt].tweens,nt[vt=nt.length]=Q,ot))for(;--vt>-1;)nt[vt]===Q&&nt.splice(vt,1);return Ge[Gt].tweens},dt=function(z,Q,ot,nt){var vt,Gt,Xt=z.vars.onOverwrite;return Xt&&(vt=Xt(z,Q,ot,nt)),Xt=Ct.onOverwrite,Xt&&(Gt=Xt(z,Q,ot,nt)),vt!==!1&&Gt!==!1},Dt=function(z,Q,ot,nt,vt){var Gt,Xt,jt,Ne;if(nt===1||nt>=4){for(Ne=vt.length,Gt=0;Ne>Gt;Gt++)if((jt=vt[Gt])!==Q)jt._gc||jt._kill(null,z,Q)&&(Xt=!0);else if(nt===5)break;return Xt}var Re,ge=Q._startTime+D,we=[],_i=0,Si=Q._duration===0;for(Gt=vt.length;--Gt>-1;)(jt=vt[Gt])===Q||jt._gc||jt._paused||(jt._timeline!==Q._timeline?(Re=Re||ie(Q,0,Si),ie(jt,Re,Si)===0&&(we[_i++]=jt)):jt._startTime<=ge&&jt._startTime+jt.totalDuration()/jt._timeScale>ge&&((Si||!jt._initted)&&ge-jt._startTime<=2e-10||(we[_i++]=jt)));for(Gt=_i;--Gt>-1;)if(jt=we[Gt],Ne=jt._firstPT,nt===2&&jt._kill(ot,z,Q)&&(Xt=!0),nt!==2||!jt._firstPT&&jt._initted&&Ne){if(nt!==2&&!dt(jt,Q))continue;jt._enabled(!1,!1)&&(Xt=!0)}return Xt},ie=function(z,Q,ot){for(var nt=z._timeline,vt=nt._timeScale,Gt=z._startTime;nt._timeline;){if(Gt+=nt._startTime,vt*=nt._timeScale,nt._paused)return-100;nt=nt._timeline}return Gt/=vt,Gt>Q?Gt-Q:ot&&Gt===Q||!z._initted&&2*D>Gt-Q?D:(Gt+=z.totalDuration()/z._timeScale/vt)>Q+D?0:Gt-Q-D};y._init=function(){var z,Q,ot,nt,vt,Gt,Xt=this.vars,jt=this._overwrittenProps,Ne=this._duration,Re=!!Xt.immediateRender,ge=Xt.ease;if(Xt.startAt){this._startAt&&(this._startAt.render(-1,!0),this._startAt.kill()),vt={};for(nt in Xt.startAt)vt[nt]=Xt.startAt[nt];if(vt.data="isStart",vt.overwrite=!1,vt.immediateRender=!0,vt.lazy=Re&&Xt.lazy!==!1,vt.startAt=vt.delay=null,vt.onUpdate=Xt.onUpdate,vt.onUpdateParams=Xt.onUpdateParams,vt.onUpdateScope=Xt.onUpdateScope||Xt.callbackScope||this,this._startAt=Ct.to(this.target||{},0,vt),Re){if(this._time>0)this._startAt=null;else if(Ne!==0)return}}else if(Xt.runBackwards&&Ne!==0)if(this._startAt)this._startAt.render(-1,!0),this._startAt.kill(),this._startAt=null;else{this._time!==0&&(Re=!1),ot={};for(nt in Xt)Ii[nt]&&nt!=="autoCSS"||(ot[nt]=Xt[nt]);if(ot.overwrite=0,ot.data="isFromStart",ot.lazy=Re&&Xt.lazy!==!1,ot.immediateRender=Re,this._startAt=Ct.to(this.target,0,ot),Re){if(this._time===0)return}else this._startAt._init(),this._startAt._enabled(!1),this.vars.immediateRender&&(this._startAt=null)}if(this._ease=ge=ge?ge instanceof N?ge:typeof ge=="function"?new N(ge,Xt.easeParams):j[ge]||Ct.defaultEase:Ct.defaultEase,Xt.easeParams instanceof Array&&ge.config&&(this._ease=ge.config.apply(ge,Xt.easeParams)),this._easeType=this._ease._type,this._easePower=this._ease._power,this._firstPT=null,this._targets)for(Gt=this._targets.length,z=0;Gt>z;z++)this._initProps(this._targets[z],this._propLookup[z]={},this._siblings[z],jt?jt[z]:null,z)&&(Q=!0);else Q=this._initProps(this.target,this._propLookup,this._siblings,jt,0);if(Q&&Ct._onPluginEvent("_onInitAllProps",this),jt&&(this._firstPT||typeof this.target!="function"&&this._enabled(!1,!1)),Xt.runBackwards)for(ot=this._firstPT;ot;)ot.s+=ot.c,ot.c=-ot.c,ot=ot._next;this._onUpdate=Xt.onUpdate,this._initted=!0},y._initProps=function(z,Q,ot,nt,vt){var Gt,Xt,jt,Ne,Re,ge;if(z==null)return!1;Ot[z._gsTweenID]&&Wt(),this.vars.css||z.style&&z!==x&&z.nodeType&&Oe.css&&this.vars.autoCSS!==!1&&re(this.vars,z);for(Gt in this.vars)if(ge=this.vars[Gt],Ii[Gt])ge&&(ge instanceof Array||ge.push&&L(ge))&&ge.join("").indexOf("{self}")!==-1&&(this.vars[Gt]=ge=this._swapSelfInParams(ge,this));else if(Oe[Gt]&&(Ne=new Oe[Gt])._onInitTween(z,this.vars[Gt],this,vt)){for(this._firstPT=Re={_next:this._firstPT,t:Ne,p:"setRatio",s:0,c:1,f:1,n:Gt,pg:1,pr:Ne._priority,m:0},Xt=Ne._overwriteProps.length;--Xt>-1;)Q[Ne._overwriteProps[Xt]]=this._firstPT;(Ne._priority||Ne._onInitAllProps)&&(jt=!0),(Ne._onDisable||Ne._onEnable)&&(this._notifyPluginsOfEnabled=!0),Re._next&&(Re._next._prev=Re)}else Q[Gt]=$e.call(this,z,Gt,"get",ge,Gt,0,null,this.vars.stringFilter,vt);return nt&&this._kill(nt,z)?this._initProps(z,Q,ot,nt,vt):this._overwrite>1&&this._firstPT&&ot.length>1&&Dt(z,this,Q,this._overwrite,ot)?(this._kill(Q,z),this._initProps(z,Q,ot,nt,vt)):(this._firstPT&&(this.vars.lazy!==!1&&this._duration||this.vars.lazy&&!this._duration)&&(Ot[z._gsTweenID]=!0),jt)},y.render=function(z,Q,ot){var nt,vt,Gt,Xt,jt=this._time,Ne=this._duration,Re=this._rawPrevTime;if(z>=Ne-1e-7&&z>=0)this._totalTime=this._time=Ne,this.ratio=this._ease._calcEnd?this._ease.getRatio(1):1,this._reversed||(nt=!0,vt="onComplete",ot=ot||this._timeline.autoRemoveChildren),Ne===0&&(this._initted||!this.vars.lazy||ot)&&(this._startTime===this._timeline._duration&&(z=0),(0>Re||0>=z&&z>=-1e-7||Re===D&&this.data!=="isPause")&&Re!==z&&(ot=!0,Re>D&&(vt="onReverseComplete")),this._rawPrevTime=Xt=!Q||z||Re===z?z:D);else if(1e-7>z)this._totalTime=this._time=0,this.ratio=this._ease._calcEnd?this._ease.getRatio(0):0,(jt!==0||Ne===0&&Re>0)&&(vt="onReverseComplete",nt=this._reversed),0>z&&(this._active=!1,Ne===0&&(this._initted||!this.vars.lazy||ot)&&(Re>=0&&(Re!==D||this.data!=="isPause")&&(ot=!0),this._rawPrevTime=Xt=!Q||z||Re===z?z:D)),(!this._initted||this._startAt&&this._startAt.progress())&&(ot=!0);else if(this._totalTime=this._time=z,this._easeType){var ge=z/Ne,we=this._easeType,_i=this._easePower;(we===1||we===3&&ge>=.5)&&(ge=1-ge),we===3&&(ge*=2),_i===1?ge*=ge:_i===2?ge*=ge*ge:_i===3?ge*=ge*ge*ge:_i===4&&(ge*=ge*ge*ge*ge),we===1?this.ratio=1-ge:we===2?this.ratio=ge:.5>z/Ne?this.ratio=ge/2:this.ratio=1-ge/2}else this.ratio=this._ease.getRatio(z/Ne);if(this._time!==jt||ot){if(!this._initted){if(this._init(),!this._initted||this._gc)return;if(!ot&&this._firstPT&&(this.vars.lazy!==!1&&this._duration||this.vars.lazy&&!this._duration))return this._time=this._totalTime=jt,this._rawPrevTime=Re,Ft.push(this),void(this._lazy=[z,Q]);this._time&&!nt?this.ratio=this._ease.getRatio(this._time/Ne):nt&&this._ease._calcEnd&&(this.ratio=this._ease.getRatio(this._time===0?0:1))}for(this._lazy!==!1&&(this._lazy=!1),this._active||!this._paused&&this._time!==jt&&z>=0&&(this._active=!0),jt===0&&(this._startAt&&(z>=0?this._startAt.render(z,!0,ot):vt||(vt="_dummyGS")),this.vars.onStart&&(this._time!==0||Ne===0)&&(Q||this._callback("onStart"))),Gt=this._firstPT;Gt;)Gt.f?Gt.t[Gt.p](Gt.c*this.ratio+Gt.s):Gt.t[Gt.p]=Gt.c*this.ratio+Gt.s,Gt=Gt._next;this._onUpdate&&(0>z&&this._startAt&&z!==-1e-4&&this._startAt.render(z,!0,ot),Q||(this._time!==jt||nt||ot)&&this._callback("onUpdate")),vt&&(!this._gc||ot)&&(0>z&&this._startAt&&!this._onUpdate&&z!==-1e-4&&this._startAt.render(z,!0,ot),nt&&(this._timeline.autoRemoveChildren&&this._enabled(!1,!1),this._active=!1),!Q&&this.vars[vt]&&this._callback(vt),Ne===0&&this._rawPrevTime===D&&Xt!==D&&(this._rawPrevTime=0))}},y._kill=function(z,Q,ot){if(z==="all"&&(z=null),z==null&&(Q==null||Q===this.target))return this._lazy=!1,this._enabled(!1,!1);Q=typeof Q!="string"?Q||this._targets||this.target:Ct.selector(Q)||Q;var nt,vt,Gt,Xt,jt,Ne,Re,ge,we,_i=ot&&this._time&&ot._startTime===this._startTime&&this._timeline===ot._timeline,Si=this._firstPT;if((L(Q)||fe(Q))&&typeof Q[0]!="number")for(nt=Q.length;--nt>-1;)this._kill(z,Q[nt],ot)&&(Ne=!0);else{if(this._targets){for(nt=this._targets.length;--nt>-1;)if(Q===this._targets[nt]){jt=this._propLookup[nt]||{},this._overwrittenProps=this._overwrittenProps||[],vt=this._overwrittenProps[nt]=z?this._overwrittenProps[nt]||{}:"all";break}}else{if(Q!==this.target)return!1;jt=this._propLookup,vt=this._overwrittenProps=z?this._overwrittenProps||{}:"all"}if(jt){if(Re=z||jt,ge=z!==vt&&vt!=="all"&&z!==jt&&(typeof z!="object"||!z._tempKill),ot&&(Ct.onOverwrite||this.vars.onOverwrite)){for(Gt in Re)jt[Gt]&&(we||(we=[]),we.push(Gt));if((we||!z)&&!dt(this,ot,Q,we))return!1}for(Gt in Re)(Xt=jt[Gt])&&(_i&&(Xt.f?Xt.t[Xt.p](Xt.s):Xt.t[Xt.p]=Xt.s,Ne=!0),Xt.pg&&Xt.t._kill(Re)&&(Ne=!0),Xt.pg&&Xt.t._overwriteProps.length!==0||(Xt._prev?Xt._prev._next=Xt._next:Xt===this._firstPT&&(this._firstPT=Xt._next),Xt._next&&(Xt._next._prev=Xt._prev),Xt._next=Xt._prev=null),delete jt[Gt]),ge&&(vt[Gt]=1);!this._firstPT&&this._initted&&Si&&this._enabled(!1,!1)}}return Ne},y.invalidate=function(){return this._notifyPluginsOfEnabled&&Ct._onPluginEvent("_onDisable",this),this._firstPT=this._overwrittenProps=this._startAt=this._onUpdate=null,this._notifyPluginsOfEnabled=this._active=this._lazy=!1,this._propLookup=this._targets?{}:[],G.prototype.invalidate.call(this),this.vars.immediateRender&&(this._time=-D,this.render(Math.min(0,-this._delay))),this},y._enabled=function(z,Q){if(A||S.wake(),z&&this._gc){var ot,nt=this._targets;if(nt)for(ot=nt.length;--ot>-1;)this._siblings[ot]=pt(nt[ot],this,!0);else this._siblings=pt(this.target,this,!0)}return G.prototype._enabled.call(this,z,Q),this._notifyPluginsOfEnabled&&this._firstPT?Ct._onPluginEvent(z?"_onEnable":"_onDisable",this):!1},Ct.to=function(z,Q,ot){return new Ct(z,Q,ot)},Ct.from=function(z,Q,ot){return ot.runBackwards=!0,ot.immediateRender=ot.immediateRender!=0,new Ct(z,Q,ot)},Ct.fromTo=function(z,Q,ot,nt){return nt.startAt=ot,nt.immediateRender=nt.immediateRender!=0&&ot.immediateRender!=0,new Ct(z,Q,nt)},Ct.delayedCall=function(z,Q,ot,nt,vt){return new Ct(Q,0,{delay:z,onComplete:Q,onCompleteParams:ot,callbackScope:nt,onReverseComplete:Q,onReverseCompleteParams:ot,immediateRender:!1,lazy:!1,useFrames:vt,overwrite:0})},Ct.set=function(z,Q){return new Ct(z,0,Q)},Ct.getTweensOf=function(z,Q){if(z==null)return[];z=typeof z!="string"?z:Ct.selector(z)||z;var ot,nt,vt,Gt;if((L(z)||fe(z))&&typeof z[0]!="number"){for(ot=z.length,nt=[];--ot>-1;)nt=nt.concat(Ct.getTweensOf(z[ot],Q));for(ot=nt.length;--ot>-1;)for(Gt=nt[ot],vt=ot;--vt>-1;)Gt===nt[vt]&&nt.splice(ot,1)}else if(z._gsTweenID)for(nt=pt(z).concat(),ot=nt.length;--ot>-1;)(nt[ot]._gc||Q&&!nt[ot].isActive())&&nt.splice(ot,1);return nt||[]},Ct.killTweensOf=Ct.killDelayedCallsTo=function(z,Q,ot){typeof Q=="object"&&(ot=Q,Q=!1);for(var nt=Ct.getTweensOf(z,Q),vt=nt.length;--vt>-1;)nt[vt]._kill(ot,z)};var Kt=b("plugins.TweenPlugin",function(z,Q){this._overwriteProps=(z||"").split(","),this._propName=this._overwriteProps[0],this._priority=Q||0,this._super=Kt.prototype},!0);if(y=Kt.prototype,Kt.version="1.19.0",Kt.API=2,y._firstPT=null,y._addTween=$e,y.setRatio=ce,y._kill=function(z){var Q,ot=this._overwriteProps,nt=this._firstPT;if(z[this._propName]!=null)this._overwriteProps=[];else for(Q=ot.length;--Q>-1;)z[ot[Q]]!=null&&ot.splice(Q,1);for(;nt;)z[nt.n]!=null&&(nt._next&&(nt._next._prev=nt._prev),nt._prev?(nt._prev._next=nt._next,nt._prev=null):this._firstPT===nt&&(this._firstPT=nt._next)),nt=nt._next;return!1},y._mod=y._roundProps=function(z){for(var Q,ot=this._firstPT;ot;)Q=z[this._propName]||ot.n!=null&&z[ot.n.split(this._propName+"_").join("")],Q&&typeof Q=="function"&&(ot.f===2?ot.t._applyPT.m=Q:ot.m=Q),ot=ot._next},Ct._onPluginEvent=function(z,Q){var ot,nt,vt,Gt,Xt,jt=Q._firstPT;if(z==="_onInitAllProps"){for(;jt;){for(Xt=jt._next,nt=vt;nt&&nt.pr>jt.pr;)nt=nt._next;(jt._prev=nt?nt._prev:Gt)?jt._prev._next=jt:vt=jt,(jt._next=nt)?nt._prev=jt:Gt=jt,jt=Xt}jt=Q._firstPT=vt}for(;jt;)jt.pg&&typeof jt.t[z]=="function"&&jt.t[z]()&&(ot=!0),jt=jt._next;return ot},Kt.activate=function(z){for(var Q=z.length;--Q>-1;)z[Q].API===Kt.API&&(Oe[new z[Q]()._propName]=z[Q]);return!0},R.plugin=function(z){if(!(z&&z.propName&&z.init&&z.API))throw"illegal plugin definition.";var Q,ot=z.propName,nt=z.priority||0,vt=z.overwriteProps,Gt={init:"_onInitTween",set:"setRatio",kill:"_kill",round:"_mod",mod:"_mod",initAll:"_onInitAllProps"},Xt=b("plugins."+ot.charAt(0).toUpperCase()+ot.substr(1)+"Plugin",function(){Kt.call(this,ot,nt),this._overwriteProps=vt||[]},z.global===!0),jt=Xt.prototype=new Kt(ot);jt.constructor=Xt,Xt.API=z.API;for(Q in Gt)typeof z[Q]=="function"&&(jt[Gt[Q]]=z[Q]);return Xt.version=z.version,Kt.activate([Xt]),Xt},m=x._gsQueue){for(_=0;_<m.length;_++)m[_]();for(y in T)T[y].func||x.console.log("GSAP encountered missing dependency: "+y)}A=!1}(typeof module<"u"&&module.exports&&typeof global<"u"?global:globalThis||window,"TweenMax");const Yd={class:"modal-background"},Zd=["innerHTML"],Jd={name:"MapModali"},wf=si.defineComponent({...Jd,props:{},setup(x,{expose:a}){const o=si.ref(""),c=si.ref(""),d=m=>{c.value=m,o.value="five"},u=()=>{o.value=o.value+" out"};return si.onMounted(()=>{}),a({text:c,show:d,hide:u}),(m,_)=>(si.openBlock(),si.createElementBlock("div",{id:"modal-container",class:si.normalizeClass(o.value),onClick:u},[si.createElementVNode("div",Yd,[si.createElementVNode("div",{class:"modal",onClick:_[0]||(_[0]=y=>{y.stopPropagation()})},[si.createElementVNode("p",{style:{"white-space":"pre-line","line-height":"1",margin:"0",color:"#fff"},innerHTML:c.value},null,8,Zd)])])],2))}}),T1="",$d={class:"bim_background_plate"},Kd={class:"content"},Qd=si.createElementVNode("canvas",{class:"landscape"},null,-1),tm={class:"content__title"},em=si.createElementVNode("div",{class:"overlay"},null,-1),im={name:"BimBackgroundPlate"},Tf=si.defineComponent({...im,setup(x){const a=()=>{let d=`
14
14
  vec3 mod289(vec3 x)
15
15
  {
16
16
  return x - floor(x * (1.0 / 289.0)) * 289.0;
@@ -248,23 +248,23 @@
248
248
  float fogFactor = smoothstep( fogNear, fogFar, fogDepth );
249
249
  gl_FragColor.rgb = mix( gl_FragColor.rgb, fogColor, fogFactor );
250
250
  #endif
251
- }`;var m=document.querySelector(".landscape"),_=window.innerWidth,y=window.innerHeight,S,A,I,k,D={x:0,y:0,xDamped:0,yDamped:0},N=typeof window.orientation<"u";E();function E(){P(),T(),M(),F(),N?window.addEventListener("touchmove",U,{passive:!1}):window.addEventListener("mousemove",U),window.addEventListener("resize",b),b()}function P(){S=new THREE.Scene;var $=new THREE.Color(3355443);S.background=$,S.fog=new THREE.Fog($,0,400),R(),I=new THREE.PerspectiveCamera(60,_/y,.1,1e4),I.position.y=8,I.position.z=4;let ct=new THREE.AmbientLight(16777215,1);S.add(ct),A=new THREE.WebGLRenderer({canvas:m,antialias:!0}),A.setPixelRatio=devicePixelRatio,A.setSize(_,y)}function T(){var $=new THREE.PlaneBufferGeometry(100,400,400,400),ct={time:{type:"f",value:0},scroll:{type:"f",value:0},distortCenter:{type:"f",value:.1},roadWidth:{type:"f",value:.5},pallete:{type:"t",value:null},speed:{type:"f",value:3},maxHeight:{type:"f",value:10},color:new THREE.Color(1,1,1)},It=new THREE.ShaderMaterial({uniforms:THREE.UniformsUtils.merge([THREE.ShaderLib.basic.uniforms,ct]),vertexShader:d,fragmentShader:u,wireframe:!1,fog:!0});k=new THREE.Mesh($,It),k.position.z=-180,k.rotation.x=-Math.PI/2,S.add(k)}function M(){new THREE.TextureLoader().load("",function($){k.material.uniforms.pallete.value=$,k.material.needsUpdate=!0})}function R(){R=new THREE.Sky,R.scale.setScalar(45e4),R.material.uniforms.turbidity.value=13,R.material.uniforms.rayleigh.value=1.2,R.material.uniforms.luminance.value=1,R.material.uniforms.mieCoefficient.value=.1,R.material.uniforms.mieDirectionalG.value=.58,S.add(R);let $=new THREE.Mesh(new THREE.SphereBufferGeometry(2e4,16,8),new THREE.MeshBasicMaterial({color:16777215}));$.visible=!1,S.add($);var ct=Math.PI*-.002,It=2*Math.PI*-.25;$.position.x=4e5*Math.cos(It),$.position.y=4e5*Math.sin(It)*Math.sin(ct),$.position.z=4e5*Math.sin(It)*Math.cos(ct),R.material.uniforms.sunPosition.value.copy($.position)}function b(){_=window.innerWidth,y=window.innerHeight,I.aspect=_/y,I.updateProjectionMatrix(),A.setSize(_,y)}function U($){$.preventDefault();var ct,It;$.type=="mousemove"?(ct=$.clientX,It=$.clientY):(ct=$.changedTouches[0].clientX,It=$.changedTouches[0].clientY),D.x=ct,D.y=It}function F(){requestAnimationFrame(F),D.xDamped=J(D.xDamped,D.x,.1),D.yDamped=J(D.yDamped,D.y,.1);var $=performance.now()*.001;k.material.uniforms.time.value=$,k.material.uniforms.scroll.value=$+j(D.yDamped,0,y,0,4),k.material.uniforms.distortCenter.value=Math.sin($)*.1,k.material.uniforms.roadWidth.value=j(D.xDamped,0,_,1,4.5),I.position.y=j(D.yDamped,0,y,4,11),A.render(S,I)}function j($,ct,It,et,yt){return et+(yt-et)*(($-ct)/(It-ct))}function J($,ct,It){return(1-It)*$+It*ct}},o=()=>{const d=document.querySelector(".overlay"),u=document.querySelector(".content__title");charming(u);const m=Array.from(u.querySelectorAll("span"));TweenMax.to(d,2,{ease:Quad.easeOut,opacity:0}),TweenMax.set(m,{opacity:0}),TweenMax.staggerTo(m,1.5,{ease:Expo.easeOut,startAt:{rotationX:-100,z:-1e3},opacity:1,rotationX:0,z:0},.1)},c=()=>{l(),o()};return si.onMounted(()=>{c()}),(d,u)=>(si.openBlock(),si.createElementBlock("div",Jd,[si.createElementVNode("div",$d,[Kd,si.createElementVNode("h2",Qd,[si.renderSlot(d.$slots,"default")])]),tm]))}}),T1="";(function(x,l){typeof Ui=="object"&&typeof module<"u"?l(Ui):typeof define=="function"&&define.amd?define(["exports"],l):l(x.THREE={})})(window,function(x){function l(){}function o(t,e){this.x=t||0,this.y=e||0}function c(){this.elements=[1,0,0,0,0,1,0,0,0,0,1,0,0,0,0,1],0<arguments.length&&console.error("THREE.Matrix4: the constructor no longer reads arguments. use .set() instead.")}function d(t,e,i,n){this._x=t||0,this._y=e||0,this._z=i||0,this._w=n!==void 0?n:1}function u(t,e,i){this.x=t||0,this.y=e||0,this.z=i||0}function m(){this.elements=[1,0,0,0,1,0,0,0,1],0<arguments.length&&console.error("THREE.Matrix3: the constructor no longer reads arguments. use .set() instead.")}function _(t,e,i,n,s,a,f,p,v,w){Object.defineProperty(this,"id",{value:No++}),this.uuid=pi.generateUUID(),this.name="",this.image=t!==void 0?t:_.DEFAULT_IMAGE,this.mipmaps=[],this.mapping=e!==void 0?e:_.DEFAULT_MAPPING,this.wrapS=i!==void 0?i:1001,this.wrapT=n!==void 0?n:1001,this.magFilter=s!==void 0?s:1006,this.minFilter=a!==void 0?a:1008,this.anisotropy=v!==void 0?v:1,this.format=f!==void 0?f:1023,this.type=p!==void 0?p:1009,this.offset=new o(0,0),this.repeat=new o(1,1),this.center=new o(0,0),this.rotation=0,this.matrixAutoUpdate=!0,this.matrix=new m,this.generateMipmaps=!0,this.premultiplyAlpha=!1,this.flipY=!0,this.unpackAlignment=4,this.encoding=w!==void 0?w:3e3,this.version=0,this.onUpdate=null}function y(t,e,i,n){this.x=t||0,this.y=e||0,this.z=i||0,this.w=n!==void 0?n:1}function S(t,e,i){this.width=t,this.height=e,this.scissor=new y(0,0,t,e),this.scissorTest=!1,this.viewport=new y(0,0,t,e),i=i||{},i.minFilter===void 0&&(i.minFilter=1006),this.texture=new _(void 0,void 0,i.wrapS,i.wrapT,i.magFilter,i.minFilter,i.format,i.type,i.anisotropy,i.encoding),this.texture.generateMipmaps=i.generateMipmaps!==void 0?i.generateMipmaps:!0,this.depthBuffer=i.depthBuffer!==void 0?i.depthBuffer:!0,this.stencilBuffer=i.stencilBuffer!==void 0?i.stencilBuffer:!0,this.depthTexture=i.depthTexture!==void 0?i.depthTexture:null}function A(t,e,i){S.call(this,t,e,i),this.activeMipMapLevel=this.activeCubeFace=0}function I(t,e,i,n,s,a,f,p,v,w,C,L){_.call(this,null,a,f,p,v,w,n,s,C,L),this.image={data:t,width:e,height:i},this.magFilter=v!==void 0?v:1003,this.minFilter=w!==void 0?w:1003,this.flipY=this.generateMipmaps=!1,this.unpackAlignment=1}function k(t,e){this.min=t!==void 0?t:new u(1/0,1/0,1/0),this.max=e!==void 0?e:new u(-1/0,-1/0,-1/0)}function D(t,e){this.center=t!==void 0?t:new u,this.radius=e!==void 0?e:0}function N(t,e){this.normal=t!==void 0?t:new u(1,0,0),this.constant=e!==void 0?e:0}function E(t,e,i,n,s,a){this.planes=[t!==void 0?t:new N,e!==void 0?e:new N,i!==void 0?i:new N,n!==void 0?n:new N,s!==void 0?s:new N,a!==void 0?a:new N]}function P(t,e,i){return e===void 0&&i===void 0?this.set(t):this.setRGB(t,e,i)}function T(){function t(s,a){i!==!1&&(n(s,a),e.requestAnimationFrame(t))}var e=null,i=!1,n=null;return{start:function(){i!==!0&&n!==null&&(e.requestAnimationFrame(t),i=!0)},stop:function(){i=!1},setAnimationLoop:function(s){n=s},setContext:function(s){e=s}}}function M(t){function e(n,s){var a=n.array,f=n.dynamic?35048:35044,p=t.createBuffer();return t.bindBuffer(s,p),t.bufferData(s,a,f),n.onUploadCallback(),s=5126,a instanceof Float32Array?s=5126:a instanceof Float64Array?console.warn("THREE.WebGLAttributes: Unsupported data buffer format: Float64Array."):a instanceof Uint16Array?s=5123:a instanceof Int16Array?s=5122:a instanceof Uint32Array?s=5125:a instanceof Int32Array?s=5124:a instanceof Int8Array?s=5120:a instanceof Uint8Array&&(s=5121),{buffer:p,type:s,bytesPerElement:a.BYTES_PER_ELEMENT,version:n.version}}var i=new WeakMap;return{get:function(n){return n.isInterleavedBufferAttribute&&(n=n.data),i.get(n)},remove:function(n){n.isInterleavedBufferAttribute&&(n=n.data);var s=i.get(n);s&&(t.deleteBuffer(s.buffer),i.delete(n))},update:function(n,s){n.isInterleavedBufferAttribute&&(n=n.data);var a=i.get(n);if(a===void 0)i.set(n,e(n,s));else if(a.version<n.version){var f=n,p=f.array,v=f.updateRange;t.bindBuffer(s,a.buffer),f.dynamic===!1?t.bufferData(s,p,35044):v.count===-1?t.bufferSubData(s,0,p):v.count===0?console.error("THREE.WebGLObjects.updateBuffer: dynamic THREE.BufferAttribute marked as needsUpdate but updateRange.count is 0, ensure you are using set methods or updating manually."):(t.bufferSubData(s,v.offset*p.BYTES_PER_ELEMENT,p.subarray(v.offset,v.offset+v.count)),v.count=-1),a.version=n.version}}}}function R(t,e,i,n,s,a){this.a=t,this.b=e,this.c=i,this.normal=n&&n.isVector3?n:new u,this.vertexNormals=Array.isArray(n)?n:[],this.color=s&&s.isColor?s:new P,this.vertexColors=Array.isArray(s)?s:[],this.materialIndex=a!==void 0?a:0}function b(t,e,i,n){this._x=t||0,this._y=e||0,this._z=i||0,this._order=n||b.DefaultOrder}function U(){this.mask=1}function F(){Object.defineProperty(this,"id",{value:Vc++}),this.uuid=pi.generateUUID(),this.name="",this.type="Object3D",this.parent=null,this.children=[],this.up=F.DefaultUp.clone();var t=new u,e=new b,i=new d,n=new u(1,1,1);e.onChange(function(){i.setFromEuler(e,!1)}),i.onChange(function(){e.setFromQuaternion(i,void 0,!1)}),Object.defineProperties(this,{position:{configurable:!0,enumerable:!0,value:t},rotation:{configurable:!0,enumerable:!0,value:e},quaternion:{configurable:!0,enumerable:!0,value:i},scale:{configurable:!0,enumerable:!0,value:n},modelViewMatrix:{value:new c},normalMatrix:{value:new m}}),this.matrix=new c,this.matrixWorld=new c,this.matrixAutoUpdate=F.DefaultMatrixAutoUpdate,this.matrixWorldNeedsUpdate=!1,this.layers=new U,this.visible=!0,this.receiveShadow=this.castShadow=!1,this.frustumCulled=!0,this.renderOrder=0,this.userData={}}function j(){Object.defineProperty(this,"id",{value:Wc+=2}),this.uuid=pi.generateUUID(),this.name="",this.type="Geometry",this.vertices=[],this.colors=[],this.faces=[],this.faceVertexUvs=[[]],this.morphTargets=[],this.morphNormals=[],this.skinWeights=[],this.skinIndices=[],this.lineDistances=[],this.boundingSphere=this.boundingBox=null,this.groupsNeedUpdate=this.lineDistancesNeedUpdate=this.colorsNeedUpdate=this.normalsNeedUpdate=this.uvsNeedUpdate=this.verticesNeedUpdate=this.elementsNeedUpdate=!1}function J(t,e,i){if(Array.isArray(t))throw new TypeError("THREE.BufferAttribute: array should be a Typed Array.");this.name="",this.array=t,this.itemSize=e,this.count=t!==void 0?t.length/e:0,this.normalized=i===!0,this.dynamic=!1,this.updateRange={offset:0,count:-1},this.version=0}function $(t,e,i){J.call(this,new Int8Array(t),e,i)}function ct(t,e,i){J.call(this,new Uint8Array(t),e,i)}function It(t,e,i){J.call(this,new Uint8ClampedArray(t),e,i)}function et(t,e,i){J.call(this,new Int16Array(t),e,i)}function yt(t,e,i){J.call(this,new Uint16Array(t),e,i)}function G(t,e,i){J.call(this,new Int32Array(t),e,i)}function Pt(t,e,i){J.call(this,new Uint32Array(t),e,i)}function Et(t,e,i){J.call(this,new Float32Array(t),e,i)}function Ct(t,e,i){J.call(this,new Float64Array(t),e,i)}function fe(){this.vertices=[],this.normals=[],this.colors=[],this.uvs=[],this.uvs2=[],this.groups=[],this.morphTargets={},this.skinWeights=[],this.skinIndices=[],this.boundingSphere=this.boundingBox=null,this.groupsNeedUpdate=this.uvsNeedUpdate=this.colorsNeedUpdate=this.normalsNeedUpdate=this.verticesNeedUpdate=!1}function re(t){if(t.length===0)return-1/0;for(var e=t[0],i=1,n=t.length;i<n;++i)t[i]>e&&(e=t[i]);return e}function Ft(){Object.defineProperty(this,"id",{value:jc+=2}),this.uuid=pi.generateUUID(),this.name="",this.type="BufferGeometry",this.index=null,this.attributes={},this.morphAttributes={},this.groups=[],this.boundingSphere=this.boundingBox=null,this.drawRange={start:0,count:1/0},this.userData={}}function Ot(t,e,i,n,s,a){j.call(this),this.type="BoxGeometry",this.parameters={width:t,height:e,depth:i,widthSegments:n,heightSegments:s,depthSegments:a},this.fromBufferGeometry(new Bt(t,e,i,n,s,a)),this.mergeVertices()}function Bt(t,e,i,n,s,a){function f(q,K,rt,xt,gt,At,wt,Vt,Z,st,zt){var ee=At/Z,$t=wt/st,qt=At/2,Te=wt/2,me=Vt/2;wt=Z+1;var Ie=st+1,be=At=0,ae,We,Qe=new u;for(We=0;We<Ie;We++){var fi=We*$t-Te;for(ae=0;ae<wt;ae++)Qe[q]=(ae*ee-qt)*xt,Qe[K]=fi*gt,Qe[rt]=me,w.push(Qe.x,Qe.y,Qe.z),Qe[q]=0,Qe[K]=0,Qe[rt]=0<Vt?1:-1,C.push(Qe.x,Qe.y,Qe.z),L.push(ae/Z),L.push(1-We/st),At+=1}for(We=0;We<st;We++)for(ae=0;ae<Z;ae++)q=B+ae+wt*(We+1),K=B+(ae+1)+wt*(We+1),rt=B+(ae+1)+wt*We,v.push(B+ae+wt*We,q,rt),v.push(q,K,rt),be+=6;p.addGroup(H,be,zt),H+=be,B+=At}Ft.call(this),this.type="BoxBufferGeometry",this.parameters={width:t,height:e,depth:i,widthSegments:n,heightSegments:s,depthSegments:a};var p=this;t=t||1,e=e||1,i=i||1,n=Math.floor(n)||1,s=Math.floor(s)||1,a=Math.floor(a)||1;var v=[],w=[],C=[],L=[],B=0,H=0;f("z","y","x",-1,-1,i,e,t,a,s,0),f("z","y","x",1,-1,i,e,-t,a,s,1),f("x","z","y",1,1,t,i,e,n,a,2),f("x","z","y",1,-1,t,i,-e,n,a,3),f("x","y","z",1,-1,t,e,i,n,s,4),f("x","y","z",-1,-1,t,e,-i,n,s,5),this.setIndex(v),this.addAttribute("position",new Et(w,3)),this.addAttribute("normal",new Et(C,3)),this.addAttribute("uv",new Et(L,2))}function ke(t,e,i,n){j.call(this),this.type="PlaneGeometry",this.parameters={width:t,height:e,widthSegments:i,heightSegments:n},this.fromBufferGeometry(new ce(t,e,i,n)),this.mergeVertices()}function ce(t,e,i,n){Ft.call(this),this.type="PlaneBufferGeometry",this.parameters={width:t,height:e,widthSegments:i,heightSegments:n},t=t||1,e=e||1;var s=t/2,a=e/2;i=Math.floor(i)||1,n=Math.floor(n)||1;var f=i+1,p=n+1,v=t/i,w=e/n,C=[],L=[],B=[],H=[];for(t=0;t<p;t++){var q=t*w-a;for(e=0;e<f;e++)L.push(e*v-s,-q,0),B.push(0,0,1),H.push(e/i),H.push(1-t/n)}for(t=0;t<n;t++)for(e=0;e<i;e++)s=e+f*(t+1),a=e+1+f*(t+1),p=e+1+f*t,C.push(e+f*t,s,p),C.push(s,a,p);this.setIndex(C),this.addAttribute("position",new Et(L,3)),this.addAttribute("normal",new Et(B,3)),this.addAttribute("uv",new Et(H,2))}function Yt(){Object.defineProperty(this,"id",{value:Ru++}),this.uuid=pi.generateUUID(),this.name="",this.type="Material",this.lights=this.fog=!0,this.blending=1,this.side=0,this.flatShading=!1,this.vertexColors=0,this.opacity=1,this.transparent=!1,this.blendSrc=204,this.blendDst=205,this.blendEquation=100,this.blendEquationAlpha=this.blendDstAlpha=this.blendSrcAlpha=null,this.depthFunc=3,this.depthWrite=this.depthTest=!0,this.clippingPlanes=null,this.clipShadows=this.clipIntersection=!1,this.shadowSide=null,this.colorWrite=!0,this.precision=null,this.polygonOffset=!1,this.polygonOffsetUnits=this.polygonOffsetFactor=0,this.dithering=!1,this.alphaTest=0,this.premultipliedAlpha=!1,this.visible=!0,this.userData={},this.needsUpdate=!0}function $e(t){Yt.call(this),this.type="ShaderMaterial",this.defines={},this.uniforms={},this.vertexShader=`void main() {
251
+ }`;var m=document.querySelector(".landscape"),_=window.innerWidth,y=window.innerHeight,S,A,I,k,D={x:0,y:0,xDamped:0,yDamped:0},F=typeof window.orientation<"u";E();function E(){L(),T(),M(),N(),F?window.addEventListener("touchmove",U,{passive:!1}):window.addEventListener("mousemove",U),window.addEventListener("resize",b),b()}function L(){S=new THREE.Scene;var $=new THREE.Color(3355443);S.background=$,S.fog=new THREE.Fog($,0,400),R(),I=new THREE.PerspectiveCamera(60,_/y,.1,1e4),I.position.y=8,I.position.z=4;let ct=new THREE.AmbientLight(16777215,1);S.add(ct),A=new THREE.WebGLRenderer({canvas:m,antialias:!0}),A.setPixelRatio=devicePixelRatio,A.setSize(_,y)}function T(){var $=new THREE.PlaneBufferGeometry(100,400,400,400),ct={time:{type:"f",value:0},scroll:{type:"f",value:0},distortCenter:{type:"f",value:.1},roadWidth:{type:"f",value:.5},pallete:{type:"t",value:null},speed:{type:"f",value:3},maxHeight:{type:"f",value:10},color:new THREE.Color(1,1,1)},It=new THREE.ShaderMaterial({uniforms:THREE.UniformsUtils.merge([THREE.ShaderLib.basic.uniforms,ct]),vertexShader:d,fragmentShader:u,wireframe:!1,fog:!0});k=new THREE.Mesh($,It),k.position.z=-180,k.rotation.x=-Math.PI/2,S.add(k)}function M(){new THREE.TextureLoader().load("",function($){k.material.uniforms.pallete.value=$,k.material.needsUpdate=!0})}function R(){R=new THREE.Sky,R.scale.setScalar(45e4),R.material.uniforms.turbidity.value=13,R.material.uniforms.rayleigh.value=1.2,R.material.uniforms.luminance.value=1,R.material.uniforms.mieCoefficient.value=.1,R.material.uniforms.mieDirectionalG.value=.58,S.add(R);let $=new THREE.Mesh(new THREE.SphereBufferGeometry(2e4,16,8),new THREE.MeshBasicMaterial({color:16777215}));$.visible=!1,S.add($);var ct=Math.PI*-.002,It=2*Math.PI*-.25;$.position.x=4e5*Math.cos(It),$.position.y=4e5*Math.sin(It)*Math.sin(ct),$.position.z=4e5*Math.sin(It)*Math.cos(ct),R.material.uniforms.sunPosition.value.copy($.position)}function b(){_=window.innerWidth,y=window.innerHeight,I.aspect=_/y,I.updateProjectionMatrix(),A.setSize(_,y)}function U($){$.preventDefault();var ct,It;$.type=="mousemove"?(ct=$.clientX,It=$.clientY):(ct=$.changedTouches[0].clientX,It=$.changedTouches[0].clientY),D.x=ct,D.y=It}function N(){requestAnimationFrame(N),D.xDamped=J(D.xDamped,D.x,.1),D.yDamped=J(D.yDamped,D.y,.1);var $=performance.now()*.001;k.material.uniforms.time.value=$,k.material.uniforms.scroll.value=$+j(D.yDamped,0,y,0,4),k.material.uniforms.distortCenter.value=Math.sin($)*.1,k.material.uniforms.roadWidth.value=j(D.xDamped,0,_,1,4.5),I.position.y=j(D.yDamped,0,y,4,11),A.render(S,I)}function j($,ct,It,et,yt){return et+(yt-et)*(($-ct)/(It-ct))}function J($,ct,It){return(1-It)*$+It*ct}},o=()=>{const d=document.querySelector(".overlay"),u=document.querySelector(".content__title");charming(u);const m=Array.from(u.querySelectorAll("span"));TweenMax.to(d,2,{ease:Quad.easeOut,opacity:0}),TweenMax.set(m,{opacity:0}),TweenMax.staggerTo(m,1.5,{ease:Expo.easeOut,startAt:{rotationX:-100,z:-1e3},opacity:1,rotationX:0,z:0},.1)},c=()=>{a(),o()};return si.onMounted(()=>{c()}),(d,u)=>(si.openBlock(),si.createElementBlock("div",$d,[si.createElementVNode("div",Kd,[Qd,si.createElementVNode("h2",tm,[si.renderSlot(d.$slots,"default")])]),em]))}}),M1="";(function(x,a){typeof Ui=="object"&&typeof module<"u"?a(Ui):typeof define=="function"&&define.amd?define(["exports"],a):a(x.THREE={})})(window,function(x){function a(){}function o(t,e){this.x=t||0,this.y=e||0}function c(){this.elements=[1,0,0,0,0,1,0,0,0,0,1,0,0,0,0,1],0<arguments.length&&console.error("THREE.Matrix4: the constructor no longer reads arguments. use .set() instead.")}function d(t,e,i,n){this._x=t||0,this._y=e||0,this._z=i||0,this._w=n!==void 0?n:1}function u(t,e,i){this.x=t||0,this.y=e||0,this.z=i||0}function m(){this.elements=[1,0,0,0,1,0,0,0,1],0<arguments.length&&console.error("THREE.Matrix3: the constructor no longer reads arguments. use .set() instead.")}function _(t,e,i,n,s,l,f,p,v,w){Object.defineProperty(this,"id",{value:No++}),this.uuid=pi.generateUUID(),this.name="",this.image=t!==void 0?t:_.DEFAULT_IMAGE,this.mipmaps=[],this.mapping=e!==void 0?e:_.DEFAULT_MAPPING,this.wrapS=i!==void 0?i:1001,this.wrapT=n!==void 0?n:1001,this.magFilter=s!==void 0?s:1006,this.minFilter=l!==void 0?l:1008,this.anisotropy=v!==void 0?v:1,this.format=f!==void 0?f:1023,this.type=p!==void 0?p:1009,this.offset=new o(0,0),this.repeat=new o(1,1),this.center=new o(0,0),this.rotation=0,this.matrixAutoUpdate=!0,this.matrix=new m,this.generateMipmaps=!0,this.premultiplyAlpha=!1,this.flipY=!0,this.unpackAlignment=4,this.encoding=w!==void 0?w:3e3,this.version=0,this.onUpdate=null}function y(t,e,i,n){this.x=t||0,this.y=e||0,this.z=i||0,this.w=n!==void 0?n:1}function S(t,e,i){this.width=t,this.height=e,this.scissor=new y(0,0,t,e),this.scissorTest=!1,this.viewport=new y(0,0,t,e),i=i||{},i.minFilter===void 0&&(i.minFilter=1006),this.texture=new _(void 0,void 0,i.wrapS,i.wrapT,i.magFilter,i.minFilter,i.format,i.type,i.anisotropy,i.encoding),this.texture.generateMipmaps=i.generateMipmaps!==void 0?i.generateMipmaps:!0,this.depthBuffer=i.depthBuffer!==void 0?i.depthBuffer:!0,this.stencilBuffer=i.stencilBuffer!==void 0?i.stencilBuffer:!0,this.depthTexture=i.depthTexture!==void 0?i.depthTexture:null}function A(t,e,i){S.call(this,t,e,i),this.activeMipMapLevel=this.activeCubeFace=0}function I(t,e,i,n,s,l,f,p,v,w,C,P){_.call(this,null,l,f,p,v,w,n,s,C,P),this.image={data:t,width:e,height:i},this.magFilter=v!==void 0?v:1003,this.minFilter=w!==void 0?w:1003,this.flipY=this.generateMipmaps=!1,this.unpackAlignment=1}function k(t,e){this.min=t!==void 0?t:new u(1/0,1/0,1/0),this.max=e!==void 0?e:new u(-1/0,-1/0,-1/0)}function D(t,e){this.center=t!==void 0?t:new u,this.radius=e!==void 0?e:0}function F(t,e){this.normal=t!==void 0?t:new u(1,0,0),this.constant=e!==void 0?e:0}function E(t,e,i,n,s,l){this.planes=[t!==void 0?t:new F,e!==void 0?e:new F,i!==void 0?i:new F,n!==void 0?n:new F,s!==void 0?s:new F,l!==void 0?l:new F]}function L(t,e,i){return e===void 0&&i===void 0?this.set(t):this.setRGB(t,e,i)}function T(){function t(s,l){i!==!1&&(n(s,l),e.requestAnimationFrame(t))}var e=null,i=!1,n=null;return{start:function(){i!==!0&&n!==null&&(e.requestAnimationFrame(t),i=!0)},stop:function(){i=!1},setAnimationLoop:function(s){n=s},setContext:function(s){e=s}}}function M(t){function e(n,s){var l=n.array,f=n.dynamic?35048:35044,p=t.createBuffer();return t.bindBuffer(s,p),t.bufferData(s,l,f),n.onUploadCallback(),s=5126,l instanceof Float32Array?s=5126:l instanceof Float64Array?console.warn("THREE.WebGLAttributes: Unsupported data buffer format: Float64Array."):l instanceof Uint16Array?s=5123:l instanceof Int16Array?s=5122:l instanceof Uint32Array?s=5125:l instanceof Int32Array?s=5124:l instanceof Int8Array?s=5120:l instanceof Uint8Array&&(s=5121),{buffer:p,type:s,bytesPerElement:l.BYTES_PER_ELEMENT,version:n.version}}var i=new WeakMap;return{get:function(n){return n.isInterleavedBufferAttribute&&(n=n.data),i.get(n)},remove:function(n){n.isInterleavedBufferAttribute&&(n=n.data);var s=i.get(n);s&&(t.deleteBuffer(s.buffer),i.delete(n))},update:function(n,s){n.isInterleavedBufferAttribute&&(n=n.data);var l=i.get(n);if(l===void 0)i.set(n,e(n,s));else if(l.version<n.version){var f=n,p=f.array,v=f.updateRange;t.bindBuffer(s,l.buffer),f.dynamic===!1?t.bufferData(s,p,35044):v.count===-1?t.bufferSubData(s,0,p):v.count===0?console.error("THREE.WebGLObjects.updateBuffer: dynamic THREE.BufferAttribute marked as needsUpdate but updateRange.count is 0, ensure you are using set methods or updating manually."):(t.bufferSubData(s,v.offset*p.BYTES_PER_ELEMENT,p.subarray(v.offset,v.offset+v.count)),v.count=-1),l.version=n.version}}}}function R(t,e,i,n,s,l){this.a=t,this.b=e,this.c=i,this.normal=n&&n.isVector3?n:new u,this.vertexNormals=Array.isArray(n)?n:[],this.color=s&&s.isColor?s:new L,this.vertexColors=Array.isArray(s)?s:[],this.materialIndex=l!==void 0?l:0}function b(t,e,i,n){this._x=t||0,this._y=e||0,this._z=i||0,this._order=n||b.DefaultOrder}function U(){this.mask=1}function N(){Object.defineProperty(this,"id",{value:Vc++}),this.uuid=pi.generateUUID(),this.name="",this.type="Object3D",this.parent=null,this.children=[],this.up=N.DefaultUp.clone();var t=new u,e=new b,i=new d,n=new u(1,1,1);e.onChange(function(){i.setFromEuler(e,!1)}),i.onChange(function(){e.setFromQuaternion(i,void 0,!1)}),Object.defineProperties(this,{position:{configurable:!0,enumerable:!0,value:t},rotation:{configurable:!0,enumerable:!0,value:e},quaternion:{configurable:!0,enumerable:!0,value:i},scale:{configurable:!0,enumerable:!0,value:n},modelViewMatrix:{value:new c},normalMatrix:{value:new m}}),this.matrix=new c,this.matrixWorld=new c,this.matrixAutoUpdate=N.DefaultMatrixAutoUpdate,this.matrixWorldNeedsUpdate=!1,this.layers=new U,this.visible=!0,this.receiveShadow=this.castShadow=!1,this.frustumCulled=!0,this.renderOrder=0,this.userData={}}function j(){Object.defineProperty(this,"id",{value:Wc+=2}),this.uuid=pi.generateUUID(),this.name="",this.type="Geometry",this.vertices=[],this.colors=[],this.faces=[],this.faceVertexUvs=[[]],this.morphTargets=[],this.morphNormals=[],this.skinWeights=[],this.skinIndices=[],this.lineDistances=[],this.boundingSphere=this.boundingBox=null,this.groupsNeedUpdate=this.lineDistancesNeedUpdate=this.colorsNeedUpdate=this.normalsNeedUpdate=this.uvsNeedUpdate=this.verticesNeedUpdate=this.elementsNeedUpdate=!1}function J(t,e,i){if(Array.isArray(t))throw new TypeError("THREE.BufferAttribute: array should be a Typed Array.");this.name="",this.array=t,this.itemSize=e,this.count=t!==void 0?t.length/e:0,this.normalized=i===!0,this.dynamic=!1,this.updateRange={offset:0,count:-1},this.version=0}function $(t,e,i){J.call(this,new Int8Array(t),e,i)}function ct(t,e,i){J.call(this,new Uint8Array(t),e,i)}function It(t,e,i){J.call(this,new Uint8ClampedArray(t),e,i)}function et(t,e,i){J.call(this,new Int16Array(t),e,i)}function yt(t,e,i){J.call(this,new Uint16Array(t),e,i)}function G(t,e,i){J.call(this,new Int32Array(t),e,i)}function Pt(t,e,i){J.call(this,new Uint32Array(t),e,i)}function Et(t,e,i){J.call(this,new Float32Array(t),e,i)}function Ct(t,e,i){J.call(this,new Float64Array(t),e,i)}function fe(){this.vertices=[],this.normals=[],this.colors=[],this.uvs=[],this.uvs2=[],this.groups=[],this.morphTargets={},this.skinWeights=[],this.skinIndices=[],this.boundingSphere=this.boundingBox=null,this.groupsNeedUpdate=this.uvsNeedUpdate=this.colorsNeedUpdate=this.normalsNeedUpdate=this.verticesNeedUpdate=!1}function re(t){if(t.length===0)return-1/0;for(var e=t[0],i=1,n=t.length;i<n;++i)t[i]>e&&(e=t[i]);return e}function Ft(){Object.defineProperty(this,"id",{value:jc+=2}),this.uuid=pi.generateUUID(),this.name="",this.type="BufferGeometry",this.index=null,this.attributes={},this.morphAttributes={},this.groups=[],this.boundingSphere=this.boundingBox=null,this.drawRange={start:0,count:1/0},this.userData={}}function Ot(t,e,i,n,s,l){j.call(this),this.type="BoxGeometry",this.parameters={width:t,height:e,depth:i,widthSegments:n,heightSegments:s,depthSegments:l},this.fromBufferGeometry(new Bt(t,e,i,n,s,l)),this.mergeVertices()}function Bt(t,e,i,n,s,l){function f(q,K,rt,xt,gt,At,wt,Vt,Z,st,zt){var ee=At/Z,$t=wt/st,qt=At/2,Te=wt/2,me=Vt/2;wt=Z+1;var Ie=st+1,be=At=0,ae,We,Qe=new u;for(We=0;We<Ie;We++){var fi=We*$t-Te;for(ae=0;ae<wt;ae++)Qe[q]=(ae*ee-qt)*xt,Qe[K]=fi*gt,Qe[rt]=me,w.push(Qe.x,Qe.y,Qe.z),Qe[q]=0,Qe[K]=0,Qe[rt]=0<Vt?1:-1,C.push(Qe.x,Qe.y,Qe.z),P.push(ae/Z),P.push(1-We/st),At+=1}for(We=0;We<st;We++)for(ae=0;ae<Z;ae++)q=B+ae+wt*(We+1),K=B+(ae+1)+wt*(We+1),rt=B+(ae+1)+wt*We,v.push(B+ae+wt*We,q,rt),v.push(q,K,rt),be+=6;p.addGroup(H,be,zt),H+=be,B+=At}Ft.call(this),this.type="BoxBufferGeometry",this.parameters={width:t,height:e,depth:i,widthSegments:n,heightSegments:s,depthSegments:l};var p=this;t=t||1,e=e||1,i=i||1,n=Math.floor(n)||1,s=Math.floor(s)||1,l=Math.floor(l)||1;var v=[],w=[],C=[],P=[],B=0,H=0;f("z","y","x",-1,-1,i,e,t,l,s,0),f("z","y","x",1,-1,i,e,-t,l,s,1),f("x","z","y",1,1,t,i,e,n,l,2),f("x","z","y",1,-1,t,i,-e,n,l,3),f("x","y","z",1,-1,t,e,i,n,s,4),f("x","y","z",-1,-1,t,e,-i,n,s,5),this.setIndex(v),this.addAttribute("position",new Et(w,3)),this.addAttribute("normal",new Et(C,3)),this.addAttribute("uv",new Et(P,2))}function ke(t,e,i,n){j.call(this),this.type="PlaneGeometry",this.parameters={width:t,height:e,widthSegments:i,heightSegments:n},this.fromBufferGeometry(new ce(t,e,i,n)),this.mergeVertices()}function ce(t,e,i,n){Ft.call(this),this.type="PlaneBufferGeometry",this.parameters={width:t,height:e,widthSegments:i,heightSegments:n},t=t||1,e=e||1;var s=t/2,l=e/2;i=Math.floor(i)||1,n=Math.floor(n)||1;var f=i+1,p=n+1,v=t/i,w=e/n,C=[],P=[],B=[],H=[];for(t=0;t<p;t++){var q=t*w-l;for(e=0;e<f;e++)P.push(e*v-s,-q,0),B.push(0,0,1),H.push(e/i),H.push(1-t/n)}for(t=0;t<n;t++)for(e=0;e<i;e++)s=e+f*(t+1),l=e+1+f*(t+1),p=e+1+f*t,C.push(e+f*t,s,p),C.push(s,l,p);this.setIndex(C),this.addAttribute("position",new Et(P,3)),this.addAttribute("normal",new Et(B,3)),this.addAttribute("uv",new Et(H,2))}function Yt(){Object.defineProperty(this,"id",{value:Ru++}),this.uuid=pi.generateUUID(),this.name="",this.type="Material",this.lights=this.fog=!0,this.blending=1,this.side=0,this.flatShading=!1,this.vertexColors=0,this.opacity=1,this.transparent=!1,this.blendSrc=204,this.blendDst=205,this.blendEquation=100,this.blendEquationAlpha=this.blendDstAlpha=this.blendSrcAlpha=null,this.depthFunc=3,this.depthWrite=this.depthTest=!0,this.clippingPlanes=null,this.clipShadows=this.clipIntersection=!1,this.shadowSide=null,this.colorWrite=!0,this.precision=null,this.polygonOffset=!1,this.polygonOffsetUnits=this.polygonOffsetFactor=0,this.dithering=!1,this.alphaTest=0,this.premultipliedAlpha=!1,this.visible=!0,this.userData={},this.needsUpdate=!0}function $e(t){Yt.call(this),this.type="ShaderMaterial",this.defines={},this.uniforms={},this.vertexShader=`void main() {
252
252
  gl_Position = projectionMatrix * modelViewMatrix * vec4( position, 1.0 );
253
253
  }`,this.fragmentShader=`void main() {
254
254
  gl_FragColor = vec4( 1.0, 0.0, 0.0, 1.0 );
255
- }`,this.linewidth=1,this.wireframe=!1,this.wireframeLinewidth=1,this.morphNormals=this.morphTargets=this.skinning=this.clipping=this.lights=this.fog=!1,this.extensions={derivatives:!1,fragDepth:!1,drawBuffers:!1,shaderTextureLOD:!1},this.defaultAttributeValues={color:[1,1,1],uv:[0,0],uv2:[0,0]},this.index0AttributeName=void 0,this.uniformsNeedUpdate=!1,t!==void 0&&(t.attributes!==void 0&&console.error("THREE.ShaderMaterial: attributes should now be defined in THREE.BufferGeometry instead."),this.setValues(t))}function Oi(t,e){this.origin=t!==void 0?t:new u,this.direction=e!==void 0?e:new u}function Oe(t,e,i){this.a=t!==void 0?t:new u,this.b=e!==void 0?e:new u,this.c=i!==void 0?i:new u}function Ge(t){Yt.call(this),this.type="MeshBasicMaterial",this.color=new P(16777215),this.lightMap=this.map=null,this.lightMapIntensity=1,this.aoMap=null,this.aoMapIntensity=1,this.envMap=this.alphaMap=this.specularMap=null,this.combine=0,this.reflectivity=1,this.refractionRatio=.98,this.wireframe=!1,this.wireframeLinewidth=1,this.wireframeLinejoin=this.wireframeLinecap="round",this.lights=this.morphTargets=this.skinning=!1,this.setValues(t)}function di(t,e){F.call(this),this.type="Mesh",this.geometry=t!==void 0?t:new Ft,this.material=e!==void 0?e:new Ge({color:16777215*Math.random()}),this.drawMode=0,this.updateMorphTargets()}function Ii(t,e,i,n){function s(w,C){e.buffers.color.setClear(w.r,w.g,w.b,C,n)}var a=new P(0),f=0,p,v;return{getClearColor:function(){return a},setClearColor:function(w,C){a.set(w),f=C!==void 0?C:1,s(a,f)},getClearAlpha:function(){return f},setClearAlpha:function(w){f=w,s(a,f)},render:function(w,C,L,B){C=C.background,C===null?s(a,f):C&&C.isColor&&(s(C,1),B=!0),(t.autoClear||B)&&t.clear(t.autoClearColor,t.autoClearDepth,t.autoClearStencil),C&&(C.isCubeTexture||C.isWebGLRenderTargetCube)?(v===void 0&&(v=new di(new Bt(1,1,1),new $e({type:"BackgroundCubeMaterial",uniforms:Bn.clone(xs.cube.uniforms),vertexShader:xs.cube.vertexShader,fragmentShader:xs.cube.fragmentShader,side:1,depthTest:!0,depthWrite:!1,fog:!1})),v.geometry.removeAttribute("normal"),v.geometry.removeAttribute("uv"),v.onBeforeRender=function(H,q,K){this.matrixWorld.copyPosition(K.matrixWorld)},i.update(v)),v.material.uniforms.tCube.value=C.isWebGLRenderTargetCube?C.texture:C,v.material.uniforms.tFlip.value=C.isWebGLRenderTargetCube?1:-1,w.push(v,v.geometry,v.material,0,null)):C&&C.isTexture&&(p===void 0&&(p=new di(new ce(2,2),new $e({type:"BackgroundMaterial",uniforms:Bn.clone(xs.background.uniforms),vertexShader:xs.background.vertexShader,fragmentShader:xs.background.fragmentShader,side:0,depthTest:!0,depthWrite:!1,fog:!1})),p.geometry.removeAttribute("normal"),i.update(p)),p.material.uniforms.t2D.value=C,C.matrixAutoUpdate===!0&&C.updateMatrix(),p.material.uniforms.uvTransform.value.copy(C.matrix),w.push(p,p.geometry,p.material,0,null))}}}function mn(t,e,i,n){var s;this.setMode=function(a){s=a},this.render=function(a,f){t.drawArrays(s,a,f),i.update(f,s)},this.renderInstances=function(a,f,p){if(n.isWebGL2)var v=t;else if(v=e.get("ANGLE_instanced_arrays"),v===null){console.error("THREE.WebGLBufferRenderer: using THREE.InstancedBufferGeometry but hardware does not support extension ANGLE_instanced_arrays.");return}v[n.isWebGL2?"drawArraysInstanced":"drawArraysInstancedANGLE"](s,f,p,a.maxInstancedCount),i.update(p,s,a.maxInstancedCount)}}function Qi(t,e,i){function n(xt){if(xt==="highp"){if(0<t.getShaderPrecisionFormat(35633,36338).precision&&0<t.getShaderPrecisionFormat(35632,36338).precision)return"highp";xt="mediump"}return xt==="mediump"&&0<t.getShaderPrecisionFormat(35633,36337).precision&&0<t.getShaderPrecisionFormat(35632,36337).precision?"mediump":"lowp"}var s,a=typeof WebGL2RenderingContext<"u"&&t instanceof WebGL2RenderingContext,f=i.precision!==void 0?i.precision:"highp",p=n(f);p!==f&&(console.warn("THREE.WebGLRenderer:",f,"not supported, using",p,"instead."),f=p),i=i.logarithmicDepthBuffer===!0,p=t.getParameter(34930);var v=t.getParameter(35660),w=t.getParameter(3379),C=t.getParameter(34076),L=t.getParameter(34921),B=t.getParameter(36347),H=t.getParameter(36348),q=t.getParameter(36349),K=0<v,rt=a||!!e.get("OES_texture_float");return{isWebGL2:a,getMaxAnisotropy:function(){if(s!==void 0)return s;var xt=e.get("EXT_texture_filter_anisotropic");return s=xt!==null?t.getParameter(xt.MAX_TEXTURE_MAX_ANISOTROPY_EXT):0},getMaxPrecision:n,precision:f,logarithmicDepthBuffer:i,maxTextures:p,maxVertexTextures:v,maxTextureSize:w,maxCubemapSize:C,maxAttributes:L,maxVertexUniforms:B,maxVaryings:H,maxFragmentUniforms:q,vertexTextures:K,floatFragmentTextures:rt,floatVertexTextures:K&&rt}}function W(){function t(){w.value!==n&&(w.value=n,w.needsUpdate=0<s),i.numPlanes=s,i.numIntersection=0}function e(C,L,B,H){var q=C!==null?C.length:0,K=null;if(q!==0){if(K=w.value,H!==!0||K===null)for(H=B+4*q,L=L.matrixWorldInverse,v.getNormalMatrix(L),(K===null||K.length<H)&&(K=new Float32Array(H)),H=0;H!==q;++H,B+=4)p.copy(C[H]).applyMatrix4(L,v),p.normal.toArray(K,B),K[B+3]=p.constant;w.value=K,w.needsUpdate=!0}return i.numPlanes=q,K}var i=this,n=null,s=0,a=!1,f=!1,p=new N,v=new m,w={value:null,needsUpdate:!1};this.uniform=w,this.numIntersection=this.numPlanes=0,this.init=function(C,L,B){var H=C.length!==0||L||s!==0||a;return a=L,n=e(C,B,0),s=C.length,H},this.beginShadows=function(){f=!0,e(null)},this.endShadows=function(){f=!1,t()},this.setState=function(C,L,B,H,q,K){if(!a||C===null||C.length===0||f&&!B)f?e(null):t();else{B=f?0:s;var rt=4*B,xt=q.clippingState||null;for(w.value=xt,xt=e(C,H,rt,K),C=0;C!==rt;++C)xt[C]=n[C];q.clippingState=xt,this.numIntersection=L?this.numPlanes:0,this.numPlanes+=B}}}function Jt(t){var e={};return{get:function(i){if(e[i]!==void 0)return e[i];switch(i){case"WEBGL_depth_texture":var n=t.getExtension("WEBGL_depth_texture")||t.getExtension("MOZ_WEBGL_depth_texture")||t.getExtension("WEBKIT_WEBGL_depth_texture");break;case"EXT_texture_filter_anisotropic":n=t.getExtension("EXT_texture_filter_anisotropic")||t.getExtension("MOZ_EXT_texture_filter_anisotropic")||t.getExtension("WEBKIT_EXT_texture_filter_anisotropic");break;case"WEBGL_compressed_texture_s3tc":n=t.getExtension("WEBGL_compressed_texture_s3tc")||t.getExtension("MOZ_WEBGL_compressed_texture_s3tc")||t.getExtension("WEBKIT_WEBGL_compressed_texture_s3tc");break;case"WEBGL_compressed_texture_pvrtc":n=t.getExtension("WEBGL_compressed_texture_pvrtc")||t.getExtension("WEBKIT_WEBGL_compressed_texture_pvrtc");break;default:n=t.getExtension(i)}return n===null&&console.warn("THREE.WebGLRenderer: "+i+" extension not supported."),e[i]=n}}}function Wt(t,e,i){function n(f){var p=f.target;f=s[p.id],f.index!==null&&e.remove(f.index);for(var v in f.attributes)e.remove(f.attributes[v]);p.removeEventListener("dispose",n),delete s[p.id],(v=a[f.id])&&(e.remove(v),delete a[f.id]),i.memory.geometries--}var s={},a={};return{get:function(f,p){var v=s[p.id];return v||(p.addEventListener("dispose",n),p.isBufferGeometry?v=p:p.isGeometry&&(p._bufferGeometry===void 0&&(p._bufferGeometry=new Ft().setFromObject(f)),v=p._bufferGeometry),s[p.id]=v,i.memory.geometries++,v)},update:function(f){var p=f.index,v=f.attributes;p!==null&&e.update(p,34963);for(var w in v)e.update(v[w],34962);f=f.morphAttributes;for(w in f){p=f[w],v=0;for(var C=p.length;v<C;v++)e.update(p[v],34962)}},getWireframeAttribute:function(f){var p=a[f.id];if(p)return p;p=[];var v=f.index,w=f.attributes;if(v!==null){v=v.array,w=0;for(var C=v.length;w<C;w+=3){var L=v[w+0],B=v[w+1],H=v[w+2];p.push(L,B,B,H,H,L)}}else for(v=w.position.array,w=0,C=v.length/3-1;w<C;w+=3)L=w+0,B=w+1,H=w+2,p.push(L,B,B,H,H,L);return p=new(65535<re(p)?Pt:yt)(p,1),e.update(p,34963),a[f.id]=p}}}function pt(t,e,i,n){var s,a,f;this.setMode=function(p){s=p},this.setIndex=function(p){a=p.type,f=p.bytesPerElement},this.render=function(p,v){t.drawElements(s,v,a,p*f),i.update(v,s)},this.renderInstances=function(p,v,w){if(n.isWebGL2)var C=t;else if(C=e.get("ANGLE_instanced_arrays"),C===null){console.error("THREE.WebGLIndexedBufferRenderer: using THREE.InstancedBufferGeometry but hardware does not support extension ANGLE_instanced_arrays.");return}C[n.isWebGL2?"drawElementsInstanced":"drawElementsInstancedANGLE"](s,w,a,v*f,p.maxInstancedCount),i.update(w,s,p.maxInstancedCount)}}function dt(t){var e={frame:0,calls:0,triangles:0,points:0,lines:0};return{memory:{geometries:0,textures:0},render:e,programs:null,autoReset:!0,reset:function(){e.frame++,e.calls=0,e.triangles=0,e.points=0,e.lines=0},update:function(i,n,s){switch(s=s||1,e.calls++,n){case 4:e.triangles+=i/3*s;break;case 5:case 6:e.triangles+=s*(i-2);break;case 1:e.lines+=i/2*s;break;case 3:e.lines+=s*(i-1);break;case 2:e.lines+=s*i;break;case 0:e.points+=s*i;break;default:console.error("THREE.WebGLInfo: Unknown draw mode:",n)}}}}function Dt(t,e){return Math.abs(e[1])-Math.abs(t[1])}function ie(t){var e={},i=new Float32Array(8);return{update:function(n,s,a,f){var p=n.morphTargetInfluences,v=p.length;if(n=e[s.id],n===void 0){n=[];for(var w=0;w<v;w++)n[w]=[w,0];e[s.id]=n}var C=a.morphTargets&&s.morphAttributes.position;for(a=a.morphNormals&&s.morphAttributes.normal,w=0;w<v;w++){var L=n[w];L[1]!==0&&(C&&s.removeAttribute("morphTarget"+w),a&&s.removeAttribute("morphNormal"+w))}for(w=0;w<v;w++)L=n[w],L[0]=w,L[1]=p[w];for(n.sort(Dt),w=0;8>w;w++){if((L=n[w])&&(p=L[0],v=L[1])){C&&s.addAttribute("morphTarget"+w,C[p]),a&&s.addAttribute("morphNormal"+w,a[p]),i[w]=v;continue}i[w]=0}f.getUniforms().setValue(t,"morphTargetInfluences",i)}}}function Kt(t,e){var i={};return{update:function(n){var s=e.render.frame,a=n.geometry,f=t.get(n,a);return i[f.id]!==s&&(a.isGeometry&&f.updateFromObject(n),t.update(f),i[f.id]=s),f},dispose:function(){i={}}}}function z(t,e,i,n,s,a,f,p,v,w){t=t!==void 0?t:[],_.call(this,t,e!==void 0?e:301,i,n,s,a,f,p,v,w),this.flipY=!1}function Q(t,e,i,n){_.call(this,null),this.image={data:t,width:e,height:i,depth:n},this.minFilter=this.magFilter=1003,this.flipY=this.generateMipmaps=!1}function ot(t,e,i){var n=t[0];if(0>=n||0<n)return t;var s=e*i,a=nh[s];if(a===void 0&&(a=new Float32Array(s),nh[s]=a),e!==0)for(n.toArray(a,0),n=1,s=0;n!==e;++n)s+=i,t[n].toArray(a,s);return a}function nt(t,e){if(t.length!==e.length)return!1;for(var i=0,n=t.length;i<n;i++)if(t[i]!==e[i])return!1;return!0}function vt(t,e){for(var i=0,n=e.length;i<n;i++)t[i]=e[i]}function Gt(t,e){var i=Ca[e];i===void 0&&(i=new Int32Array(e),Ca[e]=i);for(var n=0;n!==e;++n)i[n]=t.allocTextureUnit();return i}function Xt(t,e){var i=this.cache;i[0]!==e&&(t.uniform1f(this.addr,e),i[0]=e)}function jt(t,e){var i=this.cache;i[0]!==e&&(t.uniform1i(this.addr,e),i[0]=e)}function Ne(t,e){var i=this.cache;e.x!==void 0?(i[0]!==e.x||i[1]!==e.y)&&(t.uniform2f(this.addr,e.x,e.y),i[0]=e.x,i[1]=e.y):nt(i,e)||(t.uniform2fv(this.addr,e),vt(i,e))}function Re(t,e){var i=this.cache;e.x!==void 0?(i[0]!==e.x||i[1]!==e.y||i[2]!==e.z)&&(t.uniform3f(this.addr,e.x,e.y,e.z),i[0]=e.x,i[1]=e.y,i[2]=e.z):e.r!==void 0?(i[0]!==e.r||i[1]!==e.g||i[2]!==e.b)&&(t.uniform3f(this.addr,e.r,e.g,e.b),i[0]=e.r,i[1]=e.g,i[2]=e.b):nt(i,e)||(t.uniform3fv(this.addr,e),vt(i,e))}function ge(t,e){var i=this.cache;e.x!==void 0?(i[0]!==e.x||i[1]!==e.y||i[2]!==e.z||i[3]!==e.w)&&(t.uniform4f(this.addr,e.x,e.y,e.z,e.w),i[0]=e.x,i[1]=e.y,i[2]=e.z,i[3]=e.w):nt(i,e)||(t.uniform4fv(this.addr,e),vt(i,e))}function we(t,e){var i=this.cache,n=e.elements;n===void 0?nt(i,e)||(t.uniformMatrix2fv(this.addr,!1,e),vt(i,e)):nt(i,n)||(Wh.set(n),t.uniformMatrix2fv(this.addr,!1,Wh),vt(i,n))}function _i(t,e){var i=this.cache,n=e.elements;n===void 0?nt(i,e)||(t.uniformMatrix3fv(this.addr,!1,e),vt(i,e)):nt(i,n)||(Iu.set(n),t.uniformMatrix3fv(this.addr,!1,Iu),vt(i,n))}function Si(t,e){var i=this.cache,n=e.elements;n===void 0?nt(i,e)||(t.uniformMatrix4fv(this.addr,!1,e),vt(i,e)):nt(i,n)||(yl.set(n),t.uniformMatrix4fv(this.addr,!1,yl),vt(i,n))}function ni(t,e,i){var n=this.cache,s=i.allocTextureUnit();n[0]!==s&&(t.uniform1i(this.addr,s),n[0]=s),i.setTexture2D(e||Vh,s)}function Ei(t,e,i){var n=this.cache,s=i.allocTextureUnit();n[0]!==s&&(t.uniform1i(this.addr,s),n[0]=s),i.setTexture3D(e||Xc,s)}function qr(t,e,i){var n=this.cache,s=i.allocTextureUnit();n[0]!==s&&(t.uniform1i(this.addr,s),n[0]=s),i.setTextureCube(e||Ou,s)}function or(t,e){var i=this.cache;nt(i,e)||(t.uniform2iv(this.addr,e),vt(i,e))}function on(t,e){var i=this.cache;nt(i,e)||(t.uniform3iv(this.addr,e),vt(i,e))}function As(t,e){var i=this.cache;nt(i,e)||(t.uniform4iv(this.addr,e),vt(i,e))}function Di(t){switch(t){case 5126:return Xt;case 35664:return Ne;case 35665:return Re;case 35666:return ge;case 35674:return we;case 35675:return _i;case 35676:return Si;case 35678:case 36198:return ni;case 35679:return Ei;case 35680:return qr;case 5124:case 35670:return jt;case 35667:case 35671:return or;case 35668:case 35672:return on;case 35669:case 35673:return As}}function Xs(t,e){var i=this.cache;nt(i,e)||(t.uniform1fv(this.addr,e),vt(i,e))}function as(t,e){var i=this.cache;nt(i,e)||(t.uniform1iv(this.addr,e),vt(i,e))}function Fl(t,e){var i=this.cache;e=ot(e,this.size,2),nt(i,e)||(t.uniform2fv(this.addr,e),this.updateCache(e))}function Mn(t,e){var i=this.cache;e=ot(e,this.size,3),nt(i,e)||(t.uniform3fv(this.addr,e),this.updateCache(e))}function ea(t,e){var i=this.cache;e=ot(e,this.size,4),nt(i,e)||(t.uniform4fv(this.addr,e),this.updateCache(e))}function mo(t,e){var i=this.cache;e=ot(e,this.size,4),nt(i,e)||(t.uniformMatrix2fv(this.addr,!1,e),this.updateCache(e))}function vr(t,e){var i=this.cache;e=ot(e,this.size,9),nt(i,e)||(t.uniformMatrix3fv(this.addr,!1,e),this.updateCache(e))}function ia(t,e){var i=this.cache;e=ot(e,this.size,16),nt(i,e)||(t.uniformMatrix4fv(this.addr,!1,e),this.updateCache(e))}function Xa(t,e,i){var n=this.cache,s=e.length,a=Gt(i,s);for(nt(n,a)===!1&&(t.uniform1iv(this.addr,a),vt(n,a)),t=0;t!==s;++t)i.setTexture2D(e[t]||Vh,a[t])}function Ul(t,e,i){var n=this.cache,s=e.length,a=Gt(i,s);for(nt(n,a)===!1&&(t.uniform1iv(this.addr,a),vt(n,a)),t=0;t!==s;++t)i.setTextureCube(e[t]||Ou,a[t])}function ls(t){switch(t){case 5126:return Xs;case 35664:return Fl;case 35665:return Mn;case 35666:return ea;case 35674:return mo;case 35675:return vr;case 35676:return ia;case 35678:return Xa;case 35680:return Ul;case 5124:case 35670:return as;case 35667:case 35671:return or;case 35668:case 35672:return on;case 35669:case 35673:return As}}function Ch(t,e,i){this.id=t,this.addr=i,this.cache=[],this.setValue=Di(e.type)}function na(t,e,i){this.id=t,this.addr=i,this.cache=[],this.size=e.size,this.setValue=ls(e.type)}function qa(t){this.id=t,this.seq=[],this.map={}}function hs(t,e,i){this.seq=[],this.map={},this.renderer=i,i=t.getProgramParameter(e,35718);for(var n=0;n<i;++n){var s=t.getActiveUniform(e,n),a=t.getUniformLocation(e,s.name),f=this,p=s.name,v=p.length;for(jh.lastIndex=0;;){var w=jh.exec(p),C=jh.lastIndex,L=w[1],B=w[3];if(w[2]==="]"&&(L|=0),B===void 0||B==="["&&C+2===v){p=f,s=B===void 0?new Ch(L,s,a):new na(L,s,a),p.seq.push(s),p.map[s.id]=s;break}else B=f.map[L],B===void 0&&(B=new qa(L),L=f,f=B,L.seq.push(f),L.map[f.id]=f),f=B}}}function Ya(t){t=t.split(`
255
+ }`,this.linewidth=1,this.wireframe=!1,this.wireframeLinewidth=1,this.morphNormals=this.morphTargets=this.skinning=this.clipping=this.lights=this.fog=!1,this.extensions={derivatives:!1,fragDepth:!1,drawBuffers:!1,shaderTextureLOD:!1},this.defaultAttributeValues={color:[1,1,1],uv:[0,0],uv2:[0,0]},this.index0AttributeName=void 0,this.uniformsNeedUpdate=!1,t!==void 0&&(t.attributes!==void 0&&console.error("THREE.ShaderMaterial: attributes should now be defined in THREE.BufferGeometry instead."),this.setValues(t))}function Oi(t,e){this.origin=t!==void 0?t:new u,this.direction=e!==void 0?e:new u}function Oe(t,e,i){this.a=t!==void 0?t:new u,this.b=e!==void 0?e:new u,this.c=i!==void 0?i:new u}function Ge(t){Yt.call(this),this.type="MeshBasicMaterial",this.color=new L(16777215),this.lightMap=this.map=null,this.lightMapIntensity=1,this.aoMap=null,this.aoMapIntensity=1,this.envMap=this.alphaMap=this.specularMap=null,this.combine=0,this.reflectivity=1,this.refractionRatio=.98,this.wireframe=!1,this.wireframeLinewidth=1,this.wireframeLinejoin=this.wireframeLinecap="round",this.lights=this.morphTargets=this.skinning=!1,this.setValues(t)}function di(t,e){N.call(this),this.type="Mesh",this.geometry=t!==void 0?t:new Ft,this.material=e!==void 0?e:new Ge({color:16777215*Math.random()}),this.drawMode=0,this.updateMorphTargets()}function Ii(t,e,i,n){function s(w,C){e.buffers.color.setClear(w.r,w.g,w.b,C,n)}var l=new L(0),f=0,p,v;return{getClearColor:function(){return l},setClearColor:function(w,C){l.set(w),f=C!==void 0?C:1,s(l,f)},getClearAlpha:function(){return f},setClearAlpha:function(w){f=w,s(l,f)},render:function(w,C,P,B){C=C.background,C===null?s(l,f):C&&C.isColor&&(s(C,1),B=!0),(t.autoClear||B)&&t.clear(t.autoClearColor,t.autoClearDepth,t.autoClearStencil),C&&(C.isCubeTexture||C.isWebGLRenderTargetCube)?(v===void 0&&(v=new di(new Bt(1,1,1),new $e({type:"BackgroundCubeMaterial",uniforms:Bn.clone(xs.cube.uniforms),vertexShader:xs.cube.vertexShader,fragmentShader:xs.cube.fragmentShader,side:1,depthTest:!0,depthWrite:!1,fog:!1})),v.geometry.removeAttribute("normal"),v.geometry.removeAttribute("uv"),v.onBeforeRender=function(H,q,K){this.matrixWorld.copyPosition(K.matrixWorld)},i.update(v)),v.material.uniforms.tCube.value=C.isWebGLRenderTargetCube?C.texture:C,v.material.uniforms.tFlip.value=C.isWebGLRenderTargetCube?1:-1,w.push(v,v.geometry,v.material,0,null)):C&&C.isTexture&&(p===void 0&&(p=new di(new ce(2,2),new $e({type:"BackgroundMaterial",uniforms:Bn.clone(xs.background.uniforms),vertexShader:xs.background.vertexShader,fragmentShader:xs.background.fragmentShader,side:0,depthTest:!0,depthWrite:!1,fog:!1})),p.geometry.removeAttribute("normal"),i.update(p)),p.material.uniforms.t2D.value=C,C.matrixAutoUpdate===!0&&C.updateMatrix(),p.material.uniforms.uvTransform.value.copy(C.matrix),w.push(p,p.geometry,p.material,0,null))}}}function mn(t,e,i,n){var s;this.setMode=function(l){s=l},this.render=function(l,f){t.drawArrays(s,l,f),i.update(f,s)},this.renderInstances=function(l,f,p){if(n.isWebGL2)var v=t;else if(v=e.get("ANGLE_instanced_arrays"),v===null){console.error("THREE.WebGLBufferRenderer: using THREE.InstancedBufferGeometry but hardware does not support extension ANGLE_instanced_arrays.");return}v[n.isWebGL2?"drawArraysInstanced":"drawArraysInstancedANGLE"](s,f,p,l.maxInstancedCount),i.update(p,s,l.maxInstancedCount)}}function Qi(t,e,i){function n(xt){if(xt==="highp"){if(0<t.getShaderPrecisionFormat(35633,36338).precision&&0<t.getShaderPrecisionFormat(35632,36338).precision)return"highp";xt="mediump"}return xt==="mediump"&&0<t.getShaderPrecisionFormat(35633,36337).precision&&0<t.getShaderPrecisionFormat(35632,36337).precision?"mediump":"lowp"}var s,l=typeof WebGL2RenderingContext<"u"&&t instanceof WebGL2RenderingContext,f=i.precision!==void 0?i.precision:"highp",p=n(f);p!==f&&(console.warn("THREE.WebGLRenderer:",f,"not supported, using",p,"instead."),f=p),i=i.logarithmicDepthBuffer===!0,p=t.getParameter(34930);var v=t.getParameter(35660),w=t.getParameter(3379),C=t.getParameter(34076),P=t.getParameter(34921),B=t.getParameter(36347),H=t.getParameter(36348),q=t.getParameter(36349),K=0<v,rt=l||!!e.get("OES_texture_float");return{isWebGL2:l,getMaxAnisotropy:function(){if(s!==void 0)return s;var xt=e.get("EXT_texture_filter_anisotropic");return s=xt!==null?t.getParameter(xt.MAX_TEXTURE_MAX_ANISOTROPY_EXT):0},getMaxPrecision:n,precision:f,logarithmicDepthBuffer:i,maxTextures:p,maxVertexTextures:v,maxTextureSize:w,maxCubemapSize:C,maxAttributes:P,maxVertexUniforms:B,maxVaryings:H,maxFragmentUniforms:q,vertexTextures:K,floatFragmentTextures:rt,floatVertexTextures:K&&rt}}function W(){function t(){w.value!==n&&(w.value=n,w.needsUpdate=0<s),i.numPlanes=s,i.numIntersection=0}function e(C,P,B,H){var q=C!==null?C.length:0,K=null;if(q!==0){if(K=w.value,H!==!0||K===null)for(H=B+4*q,P=P.matrixWorldInverse,v.getNormalMatrix(P),(K===null||K.length<H)&&(K=new Float32Array(H)),H=0;H!==q;++H,B+=4)p.copy(C[H]).applyMatrix4(P,v),p.normal.toArray(K,B),K[B+3]=p.constant;w.value=K,w.needsUpdate=!0}return i.numPlanes=q,K}var i=this,n=null,s=0,l=!1,f=!1,p=new F,v=new m,w={value:null,needsUpdate:!1};this.uniform=w,this.numIntersection=this.numPlanes=0,this.init=function(C,P,B){var H=C.length!==0||P||s!==0||l;return l=P,n=e(C,B,0),s=C.length,H},this.beginShadows=function(){f=!0,e(null)},this.endShadows=function(){f=!1,t()},this.setState=function(C,P,B,H,q,K){if(!l||C===null||C.length===0||f&&!B)f?e(null):t();else{B=f?0:s;var rt=4*B,xt=q.clippingState||null;for(w.value=xt,xt=e(C,H,rt,K),C=0;C!==rt;++C)xt[C]=n[C];q.clippingState=xt,this.numIntersection=P?this.numPlanes:0,this.numPlanes+=B}}}function Jt(t){var e={};return{get:function(i){if(e[i]!==void 0)return e[i];switch(i){case"WEBGL_depth_texture":var n=t.getExtension("WEBGL_depth_texture")||t.getExtension("MOZ_WEBGL_depth_texture")||t.getExtension("WEBKIT_WEBGL_depth_texture");break;case"EXT_texture_filter_anisotropic":n=t.getExtension("EXT_texture_filter_anisotropic")||t.getExtension("MOZ_EXT_texture_filter_anisotropic")||t.getExtension("WEBKIT_EXT_texture_filter_anisotropic");break;case"WEBGL_compressed_texture_s3tc":n=t.getExtension("WEBGL_compressed_texture_s3tc")||t.getExtension("MOZ_WEBGL_compressed_texture_s3tc")||t.getExtension("WEBKIT_WEBGL_compressed_texture_s3tc");break;case"WEBGL_compressed_texture_pvrtc":n=t.getExtension("WEBGL_compressed_texture_pvrtc")||t.getExtension("WEBKIT_WEBGL_compressed_texture_pvrtc");break;default:n=t.getExtension(i)}return n===null&&console.warn("THREE.WebGLRenderer: "+i+" extension not supported."),e[i]=n}}}function Wt(t,e,i){function n(f){var p=f.target;f=s[p.id],f.index!==null&&e.remove(f.index);for(var v in f.attributes)e.remove(f.attributes[v]);p.removeEventListener("dispose",n),delete s[p.id],(v=l[f.id])&&(e.remove(v),delete l[f.id]),i.memory.geometries--}var s={},l={};return{get:function(f,p){var v=s[p.id];return v||(p.addEventListener("dispose",n),p.isBufferGeometry?v=p:p.isGeometry&&(p._bufferGeometry===void 0&&(p._bufferGeometry=new Ft().setFromObject(f)),v=p._bufferGeometry),s[p.id]=v,i.memory.geometries++,v)},update:function(f){var p=f.index,v=f.attributes;p!==null&&e.update(p,34963);for(var w in v)e.update(v[w],34962);f=f.morphAttributes;for(w in f){p=f[w],v=0;for(var C=p.length;v<C;v++)e.update(p[v],34962)}},getWireframeAttribute:function(f){var p=l[f.id];if(p)return p;p=[];var v=f.index,w=f.attributes;if(v!==null){v=v.array,w=0;for(var C=v.length;w<C;w+=3){var P=v[w+0],B=v[w+1],H=v[w+2];p.push(P,B,B,H,H,P)}}else for(v=w.position.array,w=0,C=v.length/3-1;w<C;w+=3)P=w+0,B=w+1,H=w+2,p.push(P,B,B,H,H,P);return p=new(65535<re(p)?Pt:yt)(p,1),e.update(p,34963),l[f.id]=p}}}function pt(t,e,i,n){var s,l,f;this.setMode=function(p){s=p},this.setIndex=function(p){l=p.type,f=p.bytesPerElement},this.render=function(p,v){t.drawElements(s,v,l,p*f),i.update(v,s)},this.renderInstances=function(p,v,w){if(n.isWebGL2)var C=t;else if(C=e.get("ANGLE_instanced_arrays"),C===null){console.error("THREE.WebGLIndexedBufferRenderer: using THREE.InstancedBufferGeometry but hardware does not support extension ANGLE_instanced_arrays.");return}C[n.isWebGL2?"drawElementsInstanced":"drawElementsInstancedANGLE"](s,w,l,v*f,p.maxInstancedCount),i.update(w,s,p.maxInstancedCount)}}function dt(t){var e={frame:0,calls:0,triangles:0,points:0,lines:0};return{memory:{geometries:0,textures:0},render:e,programs:null,autoReset:!0,reset:function(){e.frame++,e.calls=0,e.triangles=0,e.points=0,e.lines=0},update:function(i,n,s){switch(s=s||1,e.calls++,n){case 4:e.triangles+=i/3*s;break;case 5:case 6:e.triangles+=s*(i-2);break;case 1:e.lines+=i/2*s;break;case 3:e.lines+=s*(i-1);break;case 2:e.lines+=s*i;break;case 0:e.points+=s*i;break;default:console.error("THREE.WebGLInfo: Unknown draw mode:",n)}}}}function Dt(t,e){return Math.abs(e[1])-Math.abs(t[1])}function ie(t){var e={},i=new Float32Array(8);return{update:function(n,s,l,f){var p=n.morphTargetInfluences,v=p.length;if(n=e[s.id],n===void 0){n=[];for(var w=0;w<v;w++)n[w]=[w,0];e[s.id]=n}var C=l.morphTargets&&s.morphAttributes.position;for(l=l.morphNormals&&s.morphAttributes.normal,w=0;w<v;w++){var P=n[w];P[1]!==0&&(C&&s.removeAttribute("morphTarget"+w),l&&s.removeAttribute("morphNormal"+w))}for(w=0;w<v;w++)P=n[w],P[0]=w,P[1]=p[w];for(n.sort(Dt),w=0;8>w;w++){if((P=n[w])&&(p=P[0],v=P[1])){C&&s.addAttribute("morphTarget"+w,C[p]),l&&s.addAttribute("morphNormal"+w,l[p]),i[w]=v;continue}i[w]=0}f.getUniforms().setValue(t,"morphTargetInfluences",i)}}}function Kt(t,e){var i={};return{update:function(n){var s=e.render.frame,l=n.geometry,f=t.get(n,l);return i[f.id]!==s&&(l.isGeometry&&f.updateFromObject(n),t.update(f),i[f.id]=s),f},dispose:function(){i={}}}}function z(t,e,i,n,s,l,f,p,v,w){t=t!==void 0?t:[],_.call(this,t,e!==void 0?e:301,i,n,s,l,f,p,v,w),this.flipY=!1}function Q(t,e,i,n){_.call(this,null),this.image={data:t,width:e,height:i,depth:n},this.minFilter=this.magFilter=1003,this.flipY=this.generateMipmaps=!1}function ot(t,e,i){var n=t[0];if(0>=n||0<n)return t;var s=e*i,l=nh[s];if(l===void 0&&(l=new Float32Array(s),nh[s]=l),e!==0)for(n.toArray(l,0),n=1,s=0;n!==e;++n)s+=i,t[n].toArray(l,s);return l}function nt(t,e){if(t.length!==e.length)return!1;for(var i=0,n=t.length;i<n;i++)if(t[i]!==e[i])return!1;return!0}function vt(t,e){for(var i=0,n=e.length;i<n;i++)t[i]=e[i]}function Gt(t,e){var i=Ca[e];i===void 0&&(i=new Int32Array(e),Ca[e]=i);for(var n=0;n!==e;++n)i[n]=t.allocTextureUnit();return i}function Xt(t,e){var i=this.cache;i[0]!==e&&(t.uniform1f(this.addr,e),i[0]=e)}function jt(t,e){var i=this.cache;i[0]!==e&&(t.uniform1i(this.addr,e),i[0]=e)}function Ne(t,e){var i=this.cache;e.x!==void 0?(i[0]!==e.x||i[1]!==e.y)&&(t.uniform2f(this.addr,e.x,e.y),i[0]=e.x,i[1]=e.y):nt(i,e)||(t.uniform2fv(this.addr,e),vt(i,e))}function Re(t,e){var i=this.cache;e.x!==void 0?(i[0]!==e.x||i[1]!==e.y||i[2]!==e.z)&&(t.uniform3f(this.addr,e.x,e.y,e.z),i[0]=e.x,i[1]=e.y,i[2]=e.z):e.r!==void 0?(i[0]!==e.r||i[1]!==e.g||i[2]!==e.b)&&(t.uniform3f(this.addr,e.r,e.g,e.b),i[0]=e.r,i[1]=e.g,i[2]=e.b):nt(i,e)||(t.uniform3fv(this.addr,e),vt(i,e))}function ge(t,e){var i=this.cache;e.x!==void 0?(i[0]!==e.x||i[1]!==e.y||i[2]!==e.z||i[3]!==e.w)&&(t.uniform4f(this.addr,e.x,e.y,e.z,e.w),i[0]=e.x,i[1]=e.y,i[2]=e.z,i[3]=e.w):nt(i,e)||(t.uniform4fv(this.addr,e),vt(i,e))}function we(t,e){var i=this.cache,n=e.elements;n===void 0?nt(i,e)||(t.uniformMatrix2fv(this.addr,!1,e),vt(i,e)):nt(i,n)||(Wh.set(n),t.uniformMatrix2fv(this.addr,!1,Wh),vt(i,n))}function _i(t,e){var i=this.cache,n=e.elements;n===void 0?nt(i,e)||(t.uniformMatrix3fv(this.addr,!1,e),vt(i,e)):nt(i,n)||(Iu.set(n),t.uniformMatrix3fv(this.addr,!1,Iu),vt(i,n))}function Si(t,e){var i=this.cache,n=e.elements;n===void 0?nt(i,e)||(t.uniformMatrix4fv(this.addr,!1,e),vt(i,e)):nt(i,n)||(yl.set(n),t.uniformMatrix4fv(this.addr,!1,yl),vt(i,n))}function ni(t,e,i){var n=this.cache,s=i.allocTextureUnit();n[0]!==s&&(t.uniform1i(this.addr,s),n[0]=s),i.setTexture2D(e||Vh,s)}function Ei(t,e,i){var n=this.cache,s=i.allocTextureUnit();n[0]!==s&&(t.uniform1i(this.addr,s),n[0]=s),i.setTexture3D(e||Xc,s)}function qr(t,e,i){var n=this.cache,s=i.allocTextureUnit();n[0]!==s&&(t.uniform1i(this.addr,s),n[0]=s),i.setTextureCube(e||Ou,s)}function or(t,e){var i=this.cache;nt(i,e)||(t.uniform2iv(this.addr,e),vt(i,e))}function on(t,e){var i=this.cache;nt(i,e)||(t.uniform3iv(this.addr,e),vt(i,e))}function As(t,e){var i=this.cache;nt(i,e)||(t.uniform4iv(this.addr,e),vt(i,e))}function Di(t){switch(t){case 5126:return Xt;case 35664:return Ne;case 35665:return Re;case 35666:return ge;case 35674:return we;case 35675:return _i;case 35676:return Si;case 35678:case 36198:return ni;case 35679:return Ei;case 35680:return qr;case 5124:case 35670:return jt;case 35667:case 35671:return or;case 35668:case 35672:return on;case 35669:case 35673:return As}}function Xs(t,e){var i=this.cache;nt(i,e)||(t.uniform1fv(this.addr,e),vt(i,e))}function as(t,e){var i=this.cache;nt(i,e)||(t.uniform1iv(this.addr,e),vt(i,e))}function Fl(t,e){var i=this.cache;e=ot(e,this.size,2),nt(i,e)||(t.uniform2fv(this.addr,e),this.updateCache(e))}function Mn(t,e){var i=this.cache;e=ot(e,this.size,3),nt(i,e)||(t.uniform3fv(this.addr,e),this.updateCache(e))}function ea(t,e){var i=this.cache;e=ot(e,this.size,4),nt(i,e)||(t.uniform4fv(this.addr,e),this.updateCache(e))}function mo(t,e){var i=this.cache;e=ot(e,this.size,4),nt(i,e)||(t.uniformMatrix2fv(this.addr,!1,e),this.updateCache(e))}function vr(t,e){var i=this.cache;e=ot(e,this.size,9),nt(i,e)||(t.uniformMatrix3fv(this.addr,!1,e),this.updateCache(e))}function ia(t,e){var i=this.cache;e=ot(e,this.size,16),nt(i,e)||(t.uniformMatrix4fv(this.addr,!1,e),this.updateCache(e))}function Xa(t,e,i){var n=this.cache,s=e.length,l=Gt(i,s);for(nt(n,l)===!1&&(t.uniform1iv(this.addr,l),vt(n,l)),t=0;t!==s;++t)i.setTexture2D(e[t]||Vh,l[t])}function Ul(t,e,i){var n=this.cache,s=e.length,l=Gt(i,s);for(nt(n,l)===!1&&(t.uniform1iv(this.addr,l),vt(n,l)),t=0;t!==s;++t)i.setTextureCube(e[t]||Ou,l[t])}function ls(t){switch(t){case 5126:return Xs;case 35664:return Fl;case 35665:return Mn;case 35666:return ea;case 35674:return mo;case 35675:return vr;case 35676:return ia;case 35678:return Xa;case 35680:return Ul;case 5124:case 35670:return as;case 35667:case 35671:return or;case 35668:case 35672:return on;case 35669:case 35673:return As}}function Ch(t,e,i){this.id=t,this.addr=i,this.cache=[],this.setValue=Di(e.type)}function na(t,e,i){this.id=t,this.addr=i,this.cache=[],this.size=e.size,this.setValue=ls(e.type)}function qa(t){this.id=t,this.seq=[],this.map={}}function hs(t,e,i){this.seq=[],this.map={},this.renderer=i,i=t.getProgramParameter(e,35718);for(var n=0;n<i;++n){var s=t.getActiveUniform(e,n),l=t.getUniformLocation(e,s.name),f=this,p=s.name,v=p.length;for(jh.lastIndex=0;;){var w=jh.exec(p),C=jh.lastIndex,P=w[1],B=w[3];if(w[2]==="]"&&(P|=0),B===void 0||B==="["&&C+2===v){p=f,s=B===void 0?new Ch(P,s,l):new na(P,s,l),p.seq.push(s),p.map[s.id]=s;break}else B=f.map[P],B===void 0&&(B=new qa(P),P=f,f=B,P.seq.push(f),P.map[f.id]=f),f=B}}}function Ya(t){t=t.split(`
256
256
  `);for(var e=0;e<t.length;e++)t[e]=e+1+": "+t[e];return t.join(`
257
257
  `)}function ra(t,e,i){var n=t.createShader(e);return t.shaderSource(n,i),t.compileShader(n),t.getShaderParameter(n,35713)===!1&&console.error("THREE.WebGLShader: Shader couldn't compile."),t.getShaderInfoLog(n)!==""&&console.warn("THREE.WebGLShader: gl.getShaderInfoLog()",e===35633?"vertex":"fragment",t.getShaderInfoLog(n),Ya(i)),n}function sa(t){switch(t){case 3e3:return["Linear","( value )"];case 3001:return["sRGB","( value )"];case 3002:return["RGBE","( value )"];case 3004:return["RGBM","( value, 7.0 )"];case 3005:return["RGBM","( value, 16.0 )"];case 3006:return["RGBD","( value, 256.0 )"];case 3007:return["Gamma","( value, float( GAMMA_FACTOR ) )"];default:throw Error("unsupported encoding: "+t)}}function us(t,e){return e=sa(e),"vec4 "+t+"( vec4 value ) { return "+e[0]+"ToLinear"+e[1]+"; }"}function Gl(t,e){return e=sa(e),"vec4 "+t+"( vec4 value ) { return LinearTo"+e[0]+e[1]+"; }"}function Ph(t,e){switch(e){case 1:e="Linear";break;case 2:e="Reinhard";break;case 3:e="Uncharted2";break;case 4:e="OptimizedCineon";break;default:throw Error("unsupported toneMapping: "+e)}return"vec3 "+t+"( vec3 color ) { return "+e+"ToneMapping( color ); }"}function Lh(t,e,i){return t=t||{},[t.derivatives||e.envMapCubeUV||e.bumpMap||e.normalMap&&!e.objectSpaceNormalMap||e.flatShading?"#extension GL_OES_standard_derivatives : enable":"",(t.fragDepth||e.logarithmicDepthBuffer)&&i.get("EXT_frag_depth")?"#extension GL_EXT_frag_depth : enable":"",t.drawBuffers&&i.get("WEBGL_draw_buffers")?"#extension GL_EXT_draw_buffers : require":"",(t.shaderTextureLOD||e.envMap)&&i.get("EXT_shader_texture_lod")?"#extension GL_EXT_shader_texture_lod : enable":""].filter(vo).join(`
258
258
  `)}function go(t){var e=[],i;for(i in t){var n=t[i];n!==!1&&e.push("#define "+i+" "+n)}return e.join(`
259
- `)}function vo(t){return t!==""}function Hl(t,e){return t.replace(/NUM_DIR_LIGHTS/g,e.numDirLights).replace(/NUM_SPOT_LIGHTS/g,e.numSpotLights).replace(/NUM_RECT_AREA_LIGHTS/g,e.numRectAreaLights).replace(/NUM_POINT_LIGHTS/g,e.numPointLights).replace(/NUM_HEMI_LIGHTS/g,e.numHemiLights)}function Vl(t,e){return t.replace(/NUM_CLIPPING_PLANES/g,e.numClippingPlanes).replace(/UNION_CLIPPING_PLANES/g,e.numClippingPlanes-e.numClipIntersection)}function Yr(t){return t.replace(/^[ \t]*#include +<([\w\d./]+)>/gm,function(e,i){if(e=bi[i],e===void 0)throw Error("Can not resolve #include <"+i+">");return Yr(e)})}function V(t){return t.replace(/#pragma unroll_loop[\s]+?for \( int i = (\d+); i < (\d+); i \+\+ \) \{([\s\S]+?)(?=\})\}/g,function(e,i,n,s){for(e="",i=parseInt(i);i<parseInt(n);i++)e+=s.replace(/\[ i \]/g,"[ "+i+" ]");return e})}function tt(t,e,i,n,s,a,f){var p=t.context,v=n.defines,w=s.vertexShader,C=s.fragmentShader,L="SHADOWMAP_TYPE_BASIC";a.shadowMapType===1?L="SHADOWMAP_TYPE_PCF":a.shadowMapType===2&&(L="SHADOWMAP_TYPE_PCF_SOFT");var B="ENVMAP_TYPE_CUBE",H="ENVMAP_MODE_REFLECTION",q="ENVMAP_BLENDING_MULTIPLY";if(a.envMap){switch(n.envMap.mapping){case 301:case 302:B="ENVMAP_TYPE_CUBE";break;case 306:case 307:B="ENVMAP_TYPE_CUBE_UV";break;case 303:case 304:B="ENVMAP_TYPE_EQUIREC";break;case 305:B="ENVMAP_TYPE_SPHERE"}switch(n.envMap.mapping){case 302:case 304:H="ENVMAP_MODE_REFRACTION"}switch(n.combine){case 0:q="ENVMAP_BLENDING_MULTIPLY";break;case 1:q="ENVMAP_BLENDING_MIX";break;case 2:q="ENVMAP_BLENDING_ADD"}}var K=0<t.gammaFactor?t.gammaFactor:1,rt=f.isWebGL2?"":Lh(n.extensions,a,e),xt=go(v),gt=p.createProgram();n.isRawShaderMaterial?(v=[xt].filter(vo).join(`
259
+ `)}function vo(t){return t!==""}function Hl(t,e){return t.replace(/NUM_DIR_LIGHTS/g,e.numDirLights).replace(/NUM_SPOT_LIGHTS/g,e.numSpotLights).replace(/NUM_RECT_AREA_LIGHTS/g,e.numRectAreaLights).replace(/NUM_POINT_LIGHTS/g,e.numPointLights).replace(/NUM_HEMI_LIGHTS/g,e.numHemiLights)}function Vl(t,e){return t.replace(/NUM_CLIPPING_PLANES/g,e.numClippingPlanes).replace(/UNION_CLIPPING_PLANES/g,e.numClippingPlanes-e.numClipIntersection)}function Yr(t){return t.replace(/^[ \t]*#include +<([\w\d./]+)>/gm,function(e,i){if(e=bi[i],e===void 0)throw Error("Can not resolve #include <"+i+">");return Yr(e)})}function V(t){return t.replace(/#pragma unroll_loop[\s]+?for \( int i = (\d+); i < (\d+); i \+\+ \) \{([\s\S]+?)(?=\})\}/g,function(e,i,n,s){for(e="",i=parseInt(i);i<parseInt(n);i++)e+=s.replace(/\[ i \]/g,"[ "+i+" ]");return e})}function tt(t,e,i,n,s,l,f){var p=t.context,v=n.defines,w=s.vertexShader,C=s.fragmentShader,P="SHADOWMAP_TYPE_BASIC";l.shadowMapType===1?P="SHADOWMAP_TYPE_PCF":l.shadowMapType===2&&(P="SHADOWMAP_TYPE_PCF_SOFT");var B="ENVMAP_TYPE_CUBE",H="ENVMAP_MODE_REFLECTION",q="ENVMAP_BLENDING_MULTIPLY";if(l.envMap){switch(n.envMap.mapping){case 301:case 302:B="ENVMAP_TYPE_CUBE";break;case 306:case 307:B="ENVMAP_TYPE_CUBE_UV";break;case 303:case 304:B="ENVMAP_TYPE_EQUIREC";break;case 305:B="ENVMAP_TYPE_SPHERE"}switch(n.envMap.mapping){case 302:case 304:H="ENVMAP_MODE_REFRACTION"}switch(n.combine){case 0:q="ENVMAP_BLENDING_MULTIPLY";break;case 1:q="ENVMAP_BLENDING_MIX";break;case 2:q="ENVMAP_BLENDING_ADD"}}var K=0<t.gammaFactor?t.gammaFactor:1,rt=f.isWebGL2?"":Lh(n.extensions,l,e),xt=go(v),gt=p.createProgram();n.isRawShaderMaterial?(v=[xt].filter(vo).join(`
260
260
  `),0<v.length&&(v+=`
261
261
  `),e=[rt,xt].filter(vo).join(`
262
262
  `),0<e.length&&(e+=`
263
- `)):(v=["precision "+a.precision+" float;","precision "+a.precision+" int;","#define SHADER_NAME "+s.name,xt,a.supportsVertexTextures?"#define VERTEX_TEXTURES":"","#define GAMMA_FACTOR "+K,"#define MAX_BONES "+a.maxBones,a.useFog&&a.fog?"#define USE_FOG":"",a.useFog&&a.fogExp?"#define FOG_EXP2":"",a.map?"#define USE_MAP":"",a.envMap?"#define USE_ENVMAP":"",a.envMap?"#define "+H:"",a.lightMap?"#define USE_LIGHTMAP":"",a.aoMap?"#define USE_AOMAP":"",a.emissiveMap?"#define USE_EMISSIVEMAP":"",a.bumpMap?"#define USE_BUMPMAP":"",a.normalMap?"#define USE_NORMALMAP":"",a.normalMap&&a.objectSpaceNormalMap?"#define OBJECTSPACE_NORMALMAP":"",a.displacementMap&&a.supportsVertexTextures?"#define USE_DISPLACEMENTMAP":"",a.specularMap?"#define USE_SPECULARMAP":"",a.roughnessMap?"#define USE_ROUGHNESSMAP":"",a.metalnessMap?"#define USE_METALNESSMAP":"",a.alphaMap?"#define USE_ALPHAMAP":"",a.vertexColors?"#define USE_COLOR":"",a.flatShading?"#define FLAT_SHADED":"",a.skinning?"#define USE_SKINNING":"",a.useVertexTexture?"#define BONE_TEXTURE":"",a.morphTargets?"#define USE_MORPHTARGETS":"",a.morphNormals&&a.flatShading===!1?"#define USE_MORPHNORMALS":"",a.doubleSided?"#define DOUBLE_SIDED":"",a.flipSided?"#define FLIP_SIDED":"",a.shadowMapEnabled?"#define USE_SHADOWMAP":"",a.shadowMapEnabled?"#define "+L:"",a.sizeAttenuation?"#define USE_SIZEATTENUATION":"",a.logarithmicDepthBuffer?"#define USE_LOGDEPTHBUF":"",a.logarithmicDepthBuffer&&(f.isWebGL2||e.get("EXT_frag_depth"))?"#define USE_LOGDEPTHBUF_EXT":"","uniform mat4 modelMatrix;","uniform mat4 modelViewMatrix;","uniform mat4 projectionMatrix;","uniform mat4 viewMatrix;","uniform mat3 normalMatrix;","uniform vec3 cameraPosition;","attribute vec3 position;","attribute vec3 normal;","attribute vec2 uv;","#ifdef USE_COLOR"," attribute vec3 color;","#endif","#ifdef USE_MORPHTARGETS"," attribute vec3 morphTarget0;"," attribute vec3 morphTarget1;"," attribute vec3 morphTarget2;"," attribute vec3 morphTarget3;"," #ifdef USE_MORPHNORMALS"," attribute vec3 morphNormal0;"," attribute vec3 morphNormal1;"," attribute vec3 morphNormal2;"," attribute vec3 morphNormal3;"," #else"," attribute vec3 morphTarget4;"," attribute vec3 morphTarget5;"," attribute vec3 morphTarget6;"," attribute vec3 morphTarget7;"," #endif","#endif","#ifdef USE_SKINNING"," attribute vec4 skinIndex;"," attribute vec4 skinWeight;","#endif",`
263
+ `)):(v=["precision "+l.precision+" float;","precision "+l.precision+" int;","#define SHADER_NAME "+s.name,xt,l.supportsVertexTextures?"#define VERTEX_TEXTURES":"","#define GAMMA_FACTOR "+K,"#define MAX_BONES "+l.maxBones,l.useFog&&l.fog?"#define USE_FOG":"",l.useFog&&l.fogExp?"#define FOG_EXP2":"",l.map?"#define USE_MAP":"",l.envMap?"#define USE_ENVMAP":"",l.envMap?"#define "+H:"",l.lightMap?"#define USE_LIGHTMAP":"",l.aoMap?"#define USE_AOMAP":"",l.emissiveMap?"#define USE_EMISSIVEMAP":"",l.bumpMap?"#define USE_BUMPMAP":"",l.normalMap?"#define USE_NORMALMAP":"",l.normalMap&&l.objectSpaceNormalMap?"#define OBJECTSPACE_NORMALMAP":"",l.displacementMap&&l.supportsVertexTextures?"#define USE_DISPLACEMENTMAP":"",l.specularMap?"#define USE_SPECULARMAP":"",l.roughnessMap?"#define USE_ROUGHNESSMAP":"",l.metalnessMap?"#define USE_METALNESSMAP":"",l.alphaMap?"#define USE_ALPHAMAP":"",l.vertexColors?"#define USE_COLOR":"",l.flatShading?"#define FLAT_SHADED":"",l.skinning?"#define USE_SKINNING":"",l.useVertexTexture?"#define BONE_TEXTURE":"",l.morphTargets?"#define USE_MORPHTARGETS":"",l.morphNormals&&l.flatShading===!1?"#define USE_MORPHNORMALS":"",l.doubleSided?"#define DOUBLE_SIDED":"",l.flipSided?"#define FLIP_SIDED":"",l.shadowMapEnabled?"#define USE_SHADOWMAP":"",l.shadowMapEnabled?"#define "+P:"",l.sizeAttenuation?"#define USE_SIZEATTENUATION":"",l.logarithmicDepthBuffer?"#define USE_LOGDEPTHBUF":"",l.logarithmicDepthBuffer&&(f.isWebGL2||e.get("EXT_frag_depth"))?"#define USE_LOGDEPTHBUF_EXT":"","uniform mat4 modelMatrix;","uniform mat4 modelViewMatrix;","uniform mat4 projectionMatrix;","uniform mat4 viewMatrix;","uniform mat3 normalMatrix;","uniform vec3 cameraPosition;","attribute vec3 position;","attribute vec3 normal;","attribute vec2 uv;","#ifdef USE_COLOR"," attribute vec3 color;","#endif","#ifdef USE_MORPHTARGETS"," attribute vec3 morphTarget0;"," attribute vec3 morphTarget1;"," attribute vec3 morphTarget2;"," attribute vec3 morphTarget3;"," #ifdef USE_MORPHNORMALS"," attribute vec3 morphNormal0;"," attribute vec3 morphNormal1;"," attribute vec3 morphNormal2;"," attribute vec3 morphNormal3;"," #else"," attribute vec3 morphTarget4;"," attribute vec3 morphTarget5;"," attribute vec3 morphTarget6;"," attribute vec3 morphTarget7;"," #endif","#endif","#ifdef USE_SKINNING"," attribute vec4 skinIndex;"," attribute vec4 skinWeight;","#endif",`
264
264
  `].filter(vo).join(`
265
- `),e=[rt,"precision "+a.precision+" float;","precision "+a.precision+" int;","#define SHADER_NAME "+s.name,xt,a.alphaTest?"#define ALPHATEST "+a.alphaTest+(a.alphaTest%1?"":".0"):"","#define GAMMA_FACTOR "+K,a.useFog&&a.fog?"#define USE_FOG":"",a.useFog&&a.fogExp?"#define FOG_EXP2":"",a.map?"#define USE_MAP":"",a.envMap?"#define USE_ENVMAP":"",a.envMap?"#define "+B:"",a.envMap?"#define "+H:"",a.envMap?"#define "+q:"",a.lightMap?"#define USE_LIGHTMAP":"",a.aoMap?"#define USE_AOMAP":"",a.emissiveMap?"#define USE_EMISSIVEMAP":"",a.bumpMap?"#define USE_BUMPMAP":"",a.normalMap?"#define USE_NORMALMAP":"",a.normalMap&&a.objectSpaceNormalMap?"#define OBJECTSPACE_NORMALMAP":"",a.specularMap?"#define USE_SPECULARMAP":"",a.roughnessMap?"#define USE_ROUGHNESSMAP":"",a.metalnessMap?"#define USE_METALNESSMAP":"",a.alphaMap?"#define USE_ALPHAMAP":"",a.vertexColors?"#define USE_COLOR":"",a.gradientMap?"#define USE_GRADIENTMAP":"",a.flatShading?"#define FLAT_SHADED":"",a.doubleSided?"#define DOUBLE_SIDED":"",a.flipSided?"#define FLIP_SIDED":"",a.shadowMapEnabled?"#define USE_SHADOWMAP":"",a.shadowMapEnabled?"#define "+L:"",a.premultipliedAlpha?"#define PREMULTIPLIED_ALPHA":"",a.physicallyCorrectLights?"#define PHYSICALLY_CORRECT_LIGHTS":"",a.logarithmicDepthBuffer?"#define USE_LOGDEPTHBUF":"",a.logarithmicDepthBuffer&&(f.isWebGL2||e.get("EXT_frag_depth"))?"#define USE_LOGDEPTHBUF_EXT":"",a.envMap&&(f.isWebGL2||e.get("EXT_shader_texture_lod"))?"#define TEXTURE_LOD_EXT":"","uniform mat4 viewMatrix;","uniform vec3 cameraPosition;",a.toneMapping!==0?"#define TONE_MAPPING":"",a.toneMapping!==0?bi.tonemapping_pars_fragment:"",a.toneMapping!==0?Ph("toneMapping",a.toneMapping):"",a.dithering?"#define DITHERING":"",a.outputEncoding||a.mapEncoding||a.matcapEncoding||a.envMapEncoding||a.emissiveMapEncoding?bi.encodings_pars_fragment:"",a.mapEncoding?us("mapTexelToLinear",a.mapEncoding):"",a.matcapEncoding?us("matcapTexelToLinear",a.matcapEncoding):"",a.envMapEncoding?us("envMapTexelToLinear",a.envMapEncoding):"",a.emissiveMapEncoding?us("emissiveMapTexelToLinear",a.emissiveMapEncoding):"",a.outputEncoding?Gl("linearToOutputTexel",a.outputEncoding):"",a.depthPacking?"#define DEPTH_PACKING "+n.depthPacking:"",`
265
+ `),e=[rt,"precision "+l.precision+" float;","precision "+l.precision+" int;","#define SHADER_NAME "+s.name,xt,l.alphaTest?"#define ALPHATEST "+l.alphaTest+(l.alphaTest%1?"":".0"):"","#define GAMMA_FACTOR "+K,l.useFog&&l.fog?"#define USE_FOG":"",l.useFog&&l.fogExp?"#define FOG_EXP2":"",l.map?"#define USE_MAP":"",l.envMap?"#define USE_ENVMAP":"",l.envMap?"#define "+B:"",l.envMap?"#define "+H:"",l.envMap?"#define "+q:"",l.lightMap?"#define USE_LIGHTMAP":"",l.aoMap?"#define USE_AOMAP":"",l.emissiveMap?"#define USE_EMISSIVEMAP":"",l.bumpMap?"#define USE_BUMPMAP":"",l.normalMap?"#define USE_NORMALMAP":"",l.normalMap&&l.objectSpaceNormalMap?"#define OBJECTSPACE_NORMALMAP":"",l.specularMap?"#define USE_SPECULARMAP":"",l.roughnessMap?"#define USE_ROUGHNESSMAP":"",l.metalnessMap?"#define USE_METALNESSMAP":"",l.alphaMap?"#define USE_ALPHAMAP":"",l.vertexColors?"#define USE_COLOR":"",l.gradientMap?"#define USE_GRADIENTMAP":"",l.flatShading?"#define FLAT_SHADED":"",l.doubleSided?"#define DOUBLE_SIDED":"",l.flipSided?"#define FLIP_SIDED":"",l.shadowMapEnabled?"#define USE_SHADOWMAP":"",l.shadowMapEnabled?"#define "+P:"",l.premultipliedAlpha?"#define PREMULTIPLIED_ALPHA":"",l.physicallyCorrectLights?"#define PHYSICALLY_CORRECT_LIGHTS":"",l.logarithmicDepthBuffer?"#define USE_LOGDEPTHBUF":"",l.logarithmicDepthBuffer&&(f.isWebGL2||e.get("EXT_frag_depth"))?"#define USE_LOGDEPTHBUF_EXT":"",l.envMap&&(f.isWebGL2||e.get("EXT_shader_texture_lod"))?"#define TEXTURE_LOD_EXT":"","uniform mat4 viewMatrix;","uniform vec3 cameraPosition;",l.toneMapping!==0?"#define TONE_MAPPING":"",l.toneMapping!==0?bi.tonemapping_pars_fragment:"",l.toneMapping!==0?Ph("toneMapping",l.toneMapping):"",l.dithering?"#define DITHERING":"",l.outputEncoding||l.mapEncoding||l.matcapEncoding||l.envMapEncoding||l.emissiveMapEncoding?bi.encodings_pars_fragment:"",l.mapEncoding?us("mapTexelToLinear",l.mapEncoding):"",l.matcapEncoding?us("matcapTexelToLinear",l.matcapEncoding):"",l.envMapEncoding?us("envMapTexelToLinear",l.envMapEncoding):"",l.emissiveMapEncoding?us("emissiveMapTexelToLinear",l.emissiveMapEncoding):"",l.outputEncoding?Gl("linearToOutputTexel",l.outputEncoding):"",l.depthPacking?"#define DEPTH_PACKING "+n.depthPacking:"",`
266
266
  `].filter(vo).join(`
267
- `)),w=Yr(w),w=Hl(w,a),w=Vl(w,a),C=Yr(C),C=Hl(C,a),C=Vl(C,a),w=V(w),C=V(C),f.isWebGL2&&!n.isRawShaderMaterial&&(f=!1,L=/^\s*#version\s+300\s+es\s*\n/,n.isShaderMaterial&&w.match(L)!==null&&C.match(L)!==null&&(f=!0,w=w.replace(L,""),C=C.replace(L,"")),v=`#version 300 es
267
+ `)),w=Yr(w),w=Hl(w,l),w=Vl(w,l),C=Yr(C),C=Hl(C,l),C=Vl(C,l),w=V(w),C=V(C),f.isWebGL2&&!n.isRawShaderMaterial&&(f=!1,P=/^\s*#version\s+300\s+es\s*\n/,n.isShaderMaterial&&w.match(P)!==null&&C.match(P)!==null&&(f=!0,w=w.replace(P,""),C=C.replace(P,"")),v=`#version 300 es
268
268
 
269
269
  #define attribute in
270
270
  #define varying out
@@ -282,7 +282,7 @@
282
282
  #define texture2DProjGradEXT textureProjGrad
283
283
  #define textureCubeGradEXT textureGrad`].join(`
284
284
  `)+`
285
- `+e),C=e+C,w=ra(p,35633,v+w),C=ra(p,35632,C),p.attachShader(gt,w),p.attachShader(gt,C),n.index0AttributeName!==void 0?p.bindAttribLocation(gt,0,n.index0AttributeName):a.morphTargets===!0&&p.bindAttribLocation(gt,0,"position"),p.linkProgram(gt),a=p.getProgramInfoLog(gt).trim(),f=p.getShaderInfoLog(w).trim(),L=p.getShaderInfoLog(C).trim(),H=B=!0,p.getProgramParameter(gt,35714)===!1?(B=!1,console.error("THREE.WebGLProgram: shader error: ",p.getError(),"35715",p.getProgramParameter(gt,35715),"gl.getProgramInfoLog",a,f,L)):a!==""?console.warn("THREE.WebGLProgram: gl.getProgramInfoLog()",a):(f===""||L==="")&&(H=!1),H&&(this.diagnostics={runnable:B,material:n,programLog:a,vertexShader:{log:f,prefix:v},fragmentShader:{log:L,prefix:e}}),p.deleteShader(w),p.deleteShader(C);var At;this.getUniforms=function(){return At===void 0&&(At=new hs(p,gt,t)),At};var wt;return this.getAttributes=function(){if(wt===void 0){for(var Vt={},Z=p.getProgramParameter(gt,35721),st=0;st<Z;st++){var zt=p.getActiveAttrib(gt,st).name;Vt[zt]=p.getAttribLocation(gt,zt)}wt=Vt}return wt},this.destroy=function(){p.deleteProgram(gt),this.program=void 0},Object.defineProperties(this,{uniforms:{get:function(){return console.warn("THREE.WebGLProgram: .uniforms is now .getUniforms()."),this.getUniforms()}},attributes:{get:function(){return console.warn("THREE.WebGLProgram: .attributes is now .getAttributes()."),this.getAttributes()}}}),this.name=s.name,this.id=ks++,this.code=i,this.usedTimes=1,this.program=gt,this.vertexShader=w,this.fragmentShader=C,this}function lt(t,e,i){function n(p,v){if(p)p.isTexture?w=p.encoding:p.isWebGLRenderTarget&&(console.warn("THREE.WebGLPrograms.getTextureEncodingFromMap: don't use render targets as textures. Use their .texture property instead."),w=p.texture.encoding);else var w=3e3;return w===3e3&&v&&(w=3007),w}var s=[],a={MeshDepthMaterial:"depth",MeshDistanceMaterial:"distanceRGBA",MeshNormalMaterial:"normal",MeshBasicMaterial:"basic",MeshLambertMaterial:"lambert",MeshPhongMaterial:"phong",MeshToonMaterial:"phong",MeshStandardMaterial:"physical",MeshPhysicalMaterial:"physical",MeshMatcapMaterial:"matcap",LineBasicMaterial:"basic",LineDashedMaterial:"dashed",PointsMaterial:"points",ShadowMaterial:"shadow",SpriteMaterial:"sprite"},f="precision supportsVertexTextures map mapEncoding matcapEncoding envMap envMapMode envMapEncoding lightMap aoMap emissiveMap emissiveMapEncoding bumpMap normalMap objectSpaceNormalMap displacementMap specularMap roughnessMap metalnessMap gradientMap alphaMap combine vertexColors fog useFog fogExp flatShading sizeAttenuation logarithmicDepthBuffer skinning maxBones useVertexTexture morphTargets morphNormals maxMorphTargets maxMorphNormals premultipliedAlpha numDirLights numPointLights numSpotLights numHemiLights numRectAreaLights shadowMapEnabled shadowMapType toneMapping physicallyCorrectLights alphaTest doubleSided flipSided numClippingPlanes numClipIntersection depthPacking dithering".split(" ");this.getParameters=function(p,v,w,C,L,B,H){var q=a[p.type];if(H.isSkinnedMesh){var K=H.skeleton.bones;if(i.floatVertexTextures)K=1024;else{var rt=Math.min(Math.floor((i.maxVertexUniforms-20)/4),K.length);rt<K.length?(console.warn("THREE.WebGLRenderer: Skeleton has "+K.length+" bones. This GPU supports "+rt+"."),K=0):K=rt}}else K=0;rt=i.precision,p.precision!==null&&(rt=i.getMaxPrecision(p.precision),rt!==p.precision&&console.warn("THREE.WebGLProgram.getParameters:",p.precision,"not supported, using",rt,"instead."));var xt=t.getRenderTarget();return{shaderID:q,precision:rt,supportsVertexTextures:i.vertexTextures,outputEncoding:n(xt?xt.texture:null,t.gammaOutput),map:!!p.map,mapEncoding:n(p.map,t.gammaInput),matcap:!!p.matcap,matcapEncoding:n(p.matcap,t.gammaInput),envMap:!!p.envMap,envMapMode:p.envMap&&p.envMap.mapping,envMapEncoding:n(p.envMap,t.gammaInput),envMapCubeUV:!!p.envMap&&(p.envMap.mapping===306||p.envMap.mapping===307),lightMap:!!p.lightMap,aoMap:!!p.aoMap,emissiveMap:!!p.emissiveMap,emissiveMapEncoding:n(p.emissiveMap,t.gammaInput),bumpMap:!!p.bumpMap,normalMap:!!p.normalMap,objectSpaceNormalMap:p.normalMapType===1,displacementMap:!!p.displacementMap,roughnessMap:!!p.roughnessMap,metalnessMap:!!p.metalnessMap,specularMap:!!p.specularMap,alphaMap:!!p.alphaMap,gradientMap:!!p.gradientMap,combine:p.combine,vertexColors:p.vertexColors,fog:!!C,useFog:p.fog,fogExp:C&&C.isFogExp2,flatShading:p.flatShading,sizeAttenuation:p.sizeAttenuation,logarithmicDepthBuffer:i.logarithmicDepthBuffer,skinning:p.skinning&&0<K,maxBones:K,useVertexTexture:i.floatVertexTextures,morphTargets:p.morphTargets,morphNormals:p.morphNormals,maxMorphTargets:t.maxMorphTargets,maxMorphNormals:t.maxMorphNormals,numDirLights:v.directional.length,numPointLights:v.point.length,numSpotLights:v.spot.length,numRectAreaLights:v.rectArea.length,numHemiLights:v.hemi.length,numClippingPlanes:L,numClipIntersection:B,dithering:p.dithering,shadowMapEnabled:t.shadowMap.enabled&&H.receiveShadow&&0<w.length,shadowMapType:t.shadowMap.type,toneMapping:t.toneMapping,physicallyCorrectLights:t.physicallyCorrectLights,premultipliedAlpha:p.premultipliedAlpha,alphaTest:p.alphaTest,doubleSided:p.side===2,flipSided:p.side===1,depthPacking:p.depthPacking!==void 0?p.depthPacking:!1}},this.getProgramCode=function(p,v){var w=[];if(v.shaderID?w.push(v.shaderID):(w.push(p.fragmentShader),w.push(p.vertexShader)),p.defines!==void 0)for(var C in p.defines)w.push(C),w.push(p.defines[C]);for(C=0;C<f.length;C++)w.push(v[f[C]]);return w.push(p.onBeforeCompile.toString()),w.push(t.gammaOutput),w.push(t.gammaFactor),w.join()},this.acquireProgram=function(p,v,w,C){for(var L,B=0,H=s.length;B<H;B++){var q=s[B];if(q.code===C){L=q,++L.usedTimes;break}}return L===void 0&&(L=new tt(t,e,C,p,v,w,i),s.push(L)),L},this.releaseProgram=function(p){if(--p.usedTimes===0){var v=s.indexOf(p);s[v]=s[s.length-1],s.pop(),p.destroy()}},this.programs=s}function at(){var t=new WeakMap;return{get:function(e){var i=t.get(e);return i===void 0&&(i={},t.set(e,i)),i},remove:function(e){t.delete(e)},update:function(e,i,n){t.get(e)[i]=n},dispose:function(){t=new WeakMap}}}function X(t,e){return t.renderOrder!==e.renderOrder?t.renderOrder-e.renderOrder:t.program&&e.program&&t.program!==e.program?t.program.id-e.program.id:t.material.id!==e.material.id?t.material.id-e.material.id:t.z!==e.z?t.z-e.z:t.id-e.id}function St(t,e){return t.renderOrder!==e.renderOrder?t.renderOrder-e.renderOrder:t.z!==e.z?e.z-t.z:t.id-e.id}function ht(){var t=[],e=0,i=[],n=[];return{opaque:i,transparent:n,init:function(){e=0,i.length=0,n.length=0},push:function(s,a,f,p,v){var w=t[e];w===void 0?(w={id:s.id,object:s,geometry:a,material:f,program:f.program,renderOrder:s.renderOrder,z:p,group:v},t[e]=w):(w.id=s.id,w.object=s,w.geometry=a,w.material=f,w.program=f.program,w.renderOrder=s.renderOrder,w.z=p,w.group=v),(f.transparent===!0?n:i).push(w),e++},sort:function(){1<i.length&&i.sort(X),1<n.length&&n.sort(St)}}}function Rt(){var t={};return{get:function(e,i){return e=e.id+","+i.id,i=t[e],i===void 0&&(i=new ht,t[e]=i),i},dispose:function(){t={}}}}function Ht(){var t={};return{get:function(e){if(t[e.id]!==void 0)return t[e.id];switch(e.type){case"DirectionalLight":var i={direction:new u,color:new P,shadow:!1,shadowBias:0,shadowRadius:1,shadowMapSize:new o};break;case"SpotLight":i={position:new u,direction:new u,color:new P,distance:0,coneCos:0,penumbraCos:0,decay:0,shadow:!1,shadowBias:0,shadowRadius:1,shadowMapSize:new o};break;case"PointLight":i={position:new u,color:new P,distance:0,decay:0,shadow:!1,shadowBias:0,shadowRadius:1,shadowMapSize:new o,shadowCameraNear:1,shadowCameraFar:1e3};break;case"HemisphereLight":i={direction:new u,skyColor:new P,groundColor:new P};break;case"RectAreaLight":i={color:new P,position:new u,halfWidth:new u,halfHeight:new u}}return t[e.id]=i}}}function kt(){var t=new Ht,e={id:Xh++,hash:{stateID:-1,directionalLength:-1,pointLength:-1,spotLength:-1,rectAreaLength:-1,hemiLength:-1,shadowsLength:-1},ambient:[0,0,0],directional:[],directionalShadowMap:[],directionalShadowMatrix:[],spot:[],spotShadowMap:[],spotShadowMatrix:[],rectArea:[],point:[],pointShadowMap:[],pointShadowMatrix:[],hemi:[]},i=new u,n=new c,s=new c;return{setup:function(a,f,p){var v=0,w=0,C=0,L=0,B=0,H=0,q=0,K=0;p=p.matrixWorldInverse;for(var rt=0,xt=a.length;rt<xt;rt++){var gt=a[rt],At=gt.color,wt=gt.intensity,Vt=gt.distance,Z=gt.shadow&&gt.shadow.map?gt.shadow.map.texture:null;if(gt.isAmbientLight)v+=At.r*wt,w+=At.g*wt,C+=At.b*wt;else if(gt.isDirectionalLight){var st=t.get(gt);st.color.copy(gt.color).multiplyScalar(gt.intensity),st.direction.setFromMatrixPosition(gt.matrixWorld),i.setFromMatrixPosition(gt.target.matrixWorld),st.direction.sub(i),st.direction.transformDirection(p),(st.shadow=gt.castShadow)&&(At=gt.shadow,st.shadowBias=At.bias,st.shadowRadius=At.radius,st.shadowMapSize=At.mapSize),e.directionalShadowMap[L]=Z,e.directionalShadowMatrix[L]=gt.shadow.matrix,e.directional[L]=st,L++}else gt.isSpotLight?(st=t.get(gt),st.position.setFromMatrixPosition(gt.matrixWorld),st.position.applyMatrix4(p),st.color.copy(At).multiplyScalar(wt),st.distance=Vt,st.direction.setFromMatrixPosition(gt.matrixWorld),i.setFromMatrixPosition(gt.target.matrixWorld),st.direction.sub(i),st.direction.transformDirection(p),st.coneCos=Math.cos(gt.angle),st.penumbraCos=Math.cos(gt.angle*(1-gt.penumbra)),st.decay=gt.decay,(st.shadow=gt.castShadow)&&(At=gt.shadow,st.shadowBias=At.bias,st.shadowRadius=At.radius,st.shadowMapSize=At.mapSize),e.spotShadowMap[H]=Z,e.spotShadowMatrix[H]=gt.shadow.matrix,e.spot[H]=st,H++):gt.isRectAreaLight?(st=t.get(gt),st.color.copy(At).multiplyScalar(wt),st.position.setFromMatrixPosition(gt.matrixWorld),st.position.applyMatrix4(p),s.identity(),n.copy(gt.matrixWorld),n.premultiply(p),s.extractRotation(n),st.halfWidth.set(.5*gt.width,0,0),st.halfHeight.set(0,.5*gt.height,0),st.halfWidth.applyMatrix4(s),st.halfHeight.applyMatrix4(s),e.rectArea[q]=st,q++):gt.isPointLight?(st=t.get(gt),st.position.setFromMatrixPosition(gt.matrixWorld),st.position.applyMatrix4(p),st.color.copy(gt.color).multiplyScalar(gt.intensity),st.distance=gt.distance,st.decay=gt.decay,(st.shadow=gt.castShadow)&&(At=gt.shadow,st.shadowBias=At.bias,st.shadowRadius=At.radius,st.shadowMapSize=At.mapSize,st.shadowCameraNear=At.camera.near,st.shadowCameraFar=At.camera.far),e.pointShadowMap[B]=Z,e.pointShadowMatrix[B]=gt.shadow.matrix,e.point[B]=st,B++):gt.isHemisphereLight&&(st=t.get(gt),st.direction.setFromMatrixPosition(gt.matrixWorld),st.direction.transformDirection(p),st.direction.normalize(),st.skyColor.copy(gt.color).multiplyScalar(wt),st.groundColor.copy(gt.groundColor).multiplyScalar(wt),e.hemi[K]=st,K++)}e.ambient[0]=v,e.ambient[1]=w,e.ambient[2]=C,e.directional.length=L,e.spot.length=H,e.rectArea.length=q,e.point.length=B,e.hemi.length=K,e.hash.stateID=e.id,e.hash.directionalLength=L,e.hash.pointLength=B,e.hash.spotLength=H,e.hash.rectAreaLength=q,e.hash.hemiLength=K,e.hash.shadowsLength=f.length},state:e}}function Mt(){var t=new kt,e=[],i=[];return{init:function(){e.length=0,i.length=0},state:{lightsArray:e,shadowsArray:i,lights:t},setupLights:function(n){t.setup(e,i,n)},pushLight:function(n){e.push(n)},pushShadow:function(n){i.push(n)}}}function he(){var t={};return{get:function(e,i){if(t[e.id]===void 0){var n=new Mt;t[e.id]={},t[e.id][i.id]=n}else t[e.id][i.id]===void 0?(n=new Mt,t[e.id][i.id]=n):n=t[e.id][i.id];return n},dispose:function(){t={}}}}function oe(t){Yt.call(this),this.type="MeshDepthMaterial",this.depthPacking=3200,this.morphTargets=this.skinning=!1,this.displacementMap=this.alphaMap=this.map=null,this.displacementScale=1,this.displacementBias=0,this.wireframe=!1,this.wireframeLinewidth=1,this.lights=this.fog=!1,this.setValues(t)}function te(t){Yt.call(this),this.type="MeshDistanceMaterial",this.referencePosition=new u,this.nearDistance=1,this.farDistance=1e3,this.morphTargets=this.skinning=!1,this.displacementMap=this.alphaMap=this.map=null,this.displacementScale=1,this.displacementBias=0,this.lights=this.fog=!1,this.setValues(t)}function _e(t,e,i){function n(Z,st,zt,ee,$t,qt){var Te=Z.geometry,me=L,Ie=Z.customDepthMaterial;return zt&&(me=B,Ie=Z.customDistanceMaterial),Ie?me=Ie:(Ie=!1,st.morphTargets&&(Te&&Te.isBufferGeometry?Ie=Te.morphAttributes&&Te.morphAttributes.position&&0<Te.morphAttributes.position.length:Te&&Te.isGeometry&&(Ie=Te.morphTargets&&0<Te.morphTargets.length)),Z.isSkinnedMesh&&st.skinning===!1&&console.warn("THREE.WebGLShadowMap: THREE.SkinnedMesh with material.skinning set to false:",Z),Z=Z.isSkinnedMesh&&st.skinning,Te=0,Ie&&(Te|=1),Z&&(Te|=2),me=me[Te]),t.localClippingEnabled&&st.clipShadows===!0&&st.clippingPlanes.length!==0&&(Te=me.uuid,Ie=st.uuid,Z=H[Te],Z===void 0&&(Z={},H[Te]=Z),Te=Z[Ie],Te===void 0&&(Te=me.clone(),Z[Ie]=Te),me=Te),me.visible=st.visible,me.wireframe=st.wireframe,me.side=st.shadowSide!=null?st.shadowSide:q[st.side],me.clipShadows=st.clipShadows,me.clippingPlanes=st.clippingPlanes,me.clipIntersection=st.clipIntersection,me.wireframeLinewidth=st.wireframeLinewidth,me.linewidth=st.linewidth,zt&&me.isMeshDistanceMaterial&&(me.referencePosition.copy(ee),me.nearDistance=$t,me.farDistance=qt),me}function s(Z,st,zt,ee){if(Z.visible!==!1){if(Z.layers.test(st.layers)&&(Z.isMesh||Z.isLine||Z.isPoints)&&Z.castShadow&&(!Z.frustumCulled||a.intersectsObject(Z))){Z.modelViewMatrix.multiplyMatrices(zt.matrixWorldInverse,Z.matrixWorld);var $t=e.update(Z),qt=Z.material;if(Array.isArray(qt))for(var Te=$t.groups,me=0,Ie=Te.length;me<Ie;me++){var be=Te[me],ae=qt[be.materialIndex];ae&&ae.visible&&(ae=n(Z,ae,ee,C,zt.near,zt.far),t.renderBufferDirect(zt,null,$t,ae,Z,be))}else qt.visible&&(ae=n(Z,qt,ee,C,zt.near,zt.far),t.renderBufferDirect(zt,null,$t,ae,Z,null))}for(Z=Z.children,$t=0,qt=Z.length;$t<qt;$t++)s(Z[$t],st,zt,ee)}}var a=new E,f=new c,p=new o,v=new o(i,i),w=new u,C=new u,L=Array(4),B=Array(4),H={},q={0:1,1:0,2:2},K=[new u(1,0,0),new u(-1,0,0),new u(0,0,1),new u(0,0,-1),new u(0,1,0),new u(0,-1,0)],rt=[new u(0,1,0),new u(0,1,0),new u(0,1,0),new u(0,1,0),new u(0,0,1),new u(0,0,-1)],xt=[new y,new y,new y,new y,new y,new y];for(i=0;i!==4;++i){var gt=(i&1)!==0,At=(i&2)!==0,wt=new oe({depthPacking:3201,morphTargets:gt,skinning:At});L[i]=wt,gt=new te({morphTargets:gt,skinning:At}),B[i]=gt}var Vt=this;this.enabled=!1,this.autoUpdate=!0,this.needsUpdate=!1,this.type=1,this.render=function(Z,st,zt){if(Vt.enabled!==!1&&(Vt.autoUpdate!==!1||Vt.needsUpdate!==!1)&&Z.length!==0){var ee=t.state;ee.disable(3042),ee.buffers.color.setClear(1,1,1,1),ee.buffers.depth.setTest(!0),ee.setScissorTest(!1);for(var $t,qt=0,Te=Z.length;qt<Te;qt++){var me=Z[qt];$t=me.shadow;var Ie=me&&me.isPointLight;if($t===void 0)console.warn("THREE.WebGLShadowMap:",me,"has no shadow.");else{var be=$t.camera;if(p.copy($t.mapSize),p.min(v),Ie){var ae=p.x,We=p.y;xt[0].set(2*ae,We,ae,We),xt[1].set(0,We,ae,We),xt[2].set(3*ae,We,ae,We),xt[3].set(ae,We,ae,We),xt[4].set(3*ae,0,ae,We),xt[5].set(ae,0,ae,We),p.x*=4,p.y*=2}for($t.map===null&&($t.map=new S(p.x,p.y,{minFilter:1003,magFilter:1003,format:1023}),$t.map.texture.name=me.name+".shadowMap",be.updateProjectionMatrix()),$t.isSpotLightShadow&&$t.update(me),ae=$t.map,We=$t.matrix,C.setFromMatrixPosition(me.matrixWorld),be.position.copy(C),Ie?($t=6,We.makeTranslation(-C.x,-C.y,-C.z)):($t=1,w.setFromMatrixPosition(me.target.matrixWorld),be.lookAt(w),be.updateMatrixWorld(),We.set(.5,0,0,.5,0,.5,0,.5,0,0,.5,.5,0,0,0,1),We.multiply(be.projectionMatrix),We.multiply(be.matrixWorldInverse)),t.setRenderTarget(ae),t.clear(),me=0;me<$t;me++)Ie&&(w.copy(be.position),w.add(K[me]),be.up.copy(rt[me]),be.lookAt(w),be.updateMatrixWorld(),ee.viewport(xt[me])),f.multiplyMatrices(be.projectionMatrix,be.matrixWorldInverse),a.setFromMatrix(f),s(st,zt,be,Ie)}}Vt.needsUpdate=!1}}}function ue(t,e,i,n){function s(Ut,Ye,ei){var Wi=new Uint8Array(4),Ce=t.createTexture();for(t.bindTexture(Ut,Ce),t.texParameteri(Ut,10241,9728),t.texParameteri(Ut,10240,9728),Ut=0;Ut<ei;Ut++)t.texImage2D(Ye+Ut,0,6408,1,1,0,6408,5121,Wi);return Ce}function a(Ut,Ye){xt[Ut]=1,gt[Ut]===0&&(t.enableVertexAttribArray(Ut),gt[Ut]=1),At[Ut]!==Ye&&((n.isWebGL2?t:e.get("ANGLE_instanced_arrays"))[n.isWebGL2?"vertexAttribDivisor":"vertexAttribDivisorANGLE"](Ut,Ye),At[Ut]=Ye)}function f(Ut){wt[Ut]!==!0&&(t.enable(Ut),wt[Ut]=!0)}function p(Ut){wt[Ut]!==!1&&(t.disable(Ut),wt[Ut]=!1)}function v(Ut,Ye,ei,Wi,Ce,Xe,ri,Ci){if(Ut===0)st&&(p(3042),st=!1);else if(st||(f(3042),st=!0),Ut!==5){if(Ut!==zt||Ci!==be){if((ee!==100||Te!==100)&&(t.blendEquation(32774),Te=ee=100),Ci)switch(Ut){case 1:t.blendFuncSeparate(1,771,1,771);break;case 2:t.blendFunc(1,1);break;case 3:t.blendFuncSeparate(0,0,769,771);break;case 4:t.blendFuncSeparate(0,768,0,770);break;default:console.error("THREE.WebGLState: Invalid blending: ",Ut)}else switch(Ut){case 1:t.blendFuncSeparate(770,771,1,771);break;case 2:t.blendFunc(770,1);break;case 3:t.blendFunc(0,769);break;case 4:t.blendFunc(0,768);break;default:console.error("THREE.WebGLState: Invalid blending: ",Ut)}Ie=me=qt=$t=null,zt=Ut,be=Ci}}else Ce=Ce||Ye,Xe=Xe||ei,ri=ri||Wi,(Ye!==ee||Ce!==Te)&&(t.blendEquationSeparate(i.convert(Ye),i.convert(Ce)),ee=Ye,Te=Ce),(ei!==$t||Wi!==qt||Xe!==me||ri!==Ie)&&(t.blendFuncSeparate(i.convert(ei),i.convert(Wi),i.convert(Xe),i.convert(ri)),$t=ei,qt=Wi,me=Xe,Ie=ri),zt=Ut,be=null}function w(Ut){ae!==Ut&&(Ut?t.frontFace(2304):t.frontFace(2305),ae=Ut)}function C(Ut){Ut!==0?(f(2884),Ut!==We&&(Ut===1?t.cullFace(1029):Ut===2?t.cullFace(1028):t.cullFace(1032))):p(2884),We=Ut}function L(Ut,Ye,ei){Ut?(f(32823),(fi!==Ye||An!==ei)&&(t.polygonOffset(Ye,ei),fi=Ye,An=ei)):p(32823)}function B(Ut){Ut===void 0&&(Ut=33984+yn-1),Vi!==Ut&&(t.activeTexture(Ut),Vi=Ut)}var H=new function(){var Ut=!1,Ye=new y,ei=null,Wi=new y(0,0,0,0);return{setMask:function(Ce){ei===Ce||Ut||(t.colorMask(Ce,Ce,Ce,Ce),ei=Ce)},setLocked:function(Ce){Ut=Ce},setClear:function(Ce,Xe,ri,Ci,Ai){Ai===!0&&(Ce*=Ci,Xe*=Ci,ri*=Ci),Ye.set(Ce,Xe,ri,Ci),Wi.equals(Ye)===!1&&(t.clearColor(Ce,Xe,ri,Ci),Wi.copy(Ye))},reset:function(){Ut=!1,ei=null,Wi.set(-1,0,0,0)}}},q=new function(){var Ut=!1,Ye=null,ei=null,Wi=null;return{setTest:function(Ce){Ce?f(2929):p(2929)},setMask:function(Ce){Ye===Ce||Ut||(t.depthMask(Ce),Ye=Ce)},setFunc:function(Ce){if(ei!==Ce){if(Ce)switch(Ce){case 0:t.depthFunc(512);break;case 1:t.depthFunc(519);break;case 2:t.depthFunc(513);break;case 3:t.depthFunc(515);break;case 4:t.depthFunc(514);break;case 5:t.depthFunc(518);break;case 6:t.depthFunc(516);break;case 7:t.depthFunc(517);break;default:t.depthFunc(515)}else t.depthFunc(515);ei=Ce}},setLocked:function(Ce){Ut=Ce},setClear:function(Ce){Wi!==Ce&&(t.clearDepth(Ce),Wi=Ce)},reset:function(){Ut=!1,Wi=ei=Ye=null}}},K=new function(){var Ut=!1,Ye=null,ei=null,Wi=null,Ce=null,Xe=null,ri=null,Ci=null,Ai=null;return{setTest:function(ne){ne?f(2960):p(2960)},setMask:function(ne){Ye===ne||Ut||(t.stencilMask(ne),Ye=ne)},setFunc:function(ne,ii,Ze){(ei!==ne||Wi!==ii||Ce!==Ze)&&(t.stencilFunc(ne,ii,Ze),ei=ne,Wi=ii,Ce=Ze)},setOp:function(ne,ii,Ze){(Xe!==ne||ri!==ii||Ci!==Ze)&&(t.stencilOp(ne,ii,Ze),Xe=ne,ri=ii,Ci=Ze)},setLocked:function(ne){Ut=ne},setClear:function(ne){Ai!==ne&&(t.clearStencil(ne),Ai=ne)},reset:function(){Ut=!1,Ai=Ci=ri=Xe=Ce=Wi=ei=Ye=null}}},rt=t.getParameter(34921),xt=new Uint8Array(rt),gt=new Uint8Array(rt),At=new Uint8Array(rt),wt={},Vt=null,Z=null,st=null,zt=null,ee=null,$t=null,qt=null,Te=null,me=null,Ie=null,be=!1,ae=null,We=null,Qe=null,fi=null,An=null,yn=t.getParameter(35661),qi=!1;rt=0,rt=t.getParameter(7938),rt.indexOf("WebGL")!==-1?(rt=parseFloat(/^WebGL ([0-9])/.exec(rt)[1]),qi=1<=rt):rt.indexOf("OpenGL ES")!==-1&&(rt=parseFloat(/^OpenGL ES ([0-9])/.exec(rt)[1]),qi=2<=rt);var Vi=null,sn={},Cn=new y,Ae=new y,ti={};return ti[3553]=s(3553,3553,1),ti[34067]=s(34067,34069,6),H.setClear(0,0,0,1),q.setClear(1),K.setClear(0),f(2929),q.setFunc(3),w(!1),C(1),f(2884),v(0),{buffers:{color:H,depth:q,stencil:K},initAttributes:function(){for(var Ut=0,Ye=xt.length;Ut<Ye;Ut++)xt[Ut]=0},enableAttribute:function(Ut){a(Ut,0)},enableAttributeAndDivisor:a,disableUnusedAttributes:function(){for(var Ut=0,Ye=gt.length;Ut!==Ye;++Ut)gt[Ut]!==xt[Ut]&&(t.disableVertexAttribArray(Ut),gt[Ut]=0)},enable:f,disable:p,getCompressedTextureFormats:function(){if(Vt===null&&(Vt=[],e.get("WEBGL_compressed_texture_pvrtc")||e.get("WEBGL_compressed_texture_s3tc")||e.get("WEBGL_compressed_texture_etc1")||e.get("WEBGL_compressed_texture_astc")))for(var Ut=t.getParameter(34467),Ye=0;Ye<Ut.length;Ye++)Vt.push(Ut[Ye]);return Vt},useProgram:function(Ut){return Z!==Ut?(t.useProgram(Ut),Z=Ut,!0):!1},setBlending:v,setMaterial:function(Ut,Ye){Ut.side===2?p(2884):f(2884);var ei=Ut.side===1;Ye&&(ei=!ei),w(ei),Ut.blending===1&&Ut.transparent===!1?v(0):v(Ut.blending,Ut.blendEquation,Ut.blendSrc,Ut.blendDst,Ut.blendEquationAlpha,Ut.blendSrcAlpha,Ut.blendDstAlpha,Ut.premultipliedAlpha),q.setFunc(Ut.depthFunc),q.setTest(Ut.depthTest),q.setMask(Ut.depthWrite),H.setMask(Ut.colorWrite),L(Ut.polygonOffset,Ut.polygonOffsetFactor,Ut.polygonOffsetUnits)},setFlipSided:w,setCullFace:C,setLineWidth:function(Ut){Ut!==Qe&&(qi&&t.lineWidth(Ut),Qe=Ut)},setPolygonOffset:L,setScissorTest:function(Ut){Ut?f(3089):p(3089)},activeTexture:B,bindTexture:function(Ut,Ye){Vi===null&&B();var ei=sn[Vi];ei===void 0&&(ei={type:void 0,texture:void 0},sn[Vi]=ei),(ei.type!==Ut||ei.texture!==Ye)&&(t.bindTexture(Ut,Ye||ti[Ut]),ei.type=Ut,ei.texture=Ye)},compressedTexImage2D:function(){try{t.compressedTexImage2D.apply(t,arguments)}catch(Ut){console.error("THREE.WebGLState:",Ut)}},texImage2D:function(){try{t.texImage2D.apply(t,arguments)}catch(Ut){console.error("THREE.WebGLState:",Ut)}},texImage3D:function(){try{t.texImage3D.apply(t,arguments)}catch(Ut){console.error("THREE.WebGLState:",Ut)}},scissor:function(Ut){Cn.equals(Ut)===!1&&(t.scissor(Ut.x,Ut.y,Ut.z,Ut.w),Cn.copy(Ut))},viewport:function(Ut){Ae.equals(Ut)===!1&&(t.viewport(Ut.x,Ut.y,Ut.z,Ut.w),Ae.copy(Ut))},reset:function(){for(var Ut=0;Ut<gt.length;Ut++)gt[Ut]===1&&(t.disableVertexAttribArray(Ut),gt[Ut]=0);wt={},Vi=Vt=null,sn={},We=ae=zt=Z=null,H.reset(),q.reset(),K.reset()}}}function je(t,e,i,n,s,a,f){function p(Z,st){if(Z.width>st||Z.height>st){if("data"in Z){console.warn("THREE.WebGLRenderer: image in DataTexture is too big ("+Z.width+"x"+Z.height+").");return}st/=Math.max(Z.width,Z.height);var zt=document.createElementNS("http://www.w3.org/1999/xhtml","canvas");return zt.width=Math.floor(Z.width*st),zt.height=Math.floor(Z.height*st),zt.getContext("2d").drawImage(Z,0,0,Z.width,Z.height,0,0,zt.width,zt.height),console.warn("THREE.WebGLRenderer: image is too big ("+Z.width+"x"+Z.height+"). Resized to "+zt.width+"x"+zt.height),zt}return Z}function v(Z){return pi.isPowerOfTwo(Z.width)&&pi.isPowerOfTwo(Z.height)}function w(Z,st){return Z.generateMipmaps&&st&&Z.minFilter!==1003&&Z.minFilter!==1006}function C(Z,st,zt,ee){t.generateMipmap(Z),n.get(st).__maxMipLevel=Math.log(Math.max(zt,ee))*Math.LOG2E}function L(Z,st){if(!s.isWebGL2)return Z;if(Z===6403){if(st===5126)return 33326;if(st===5131)return 33325;if(st===5121)return 33321}if(Z===6407){if(st===5126)return 34837;if(st===5131)return 34843;if(st===5121)return 32849}if(Z===6408){if(st===5126)return 34836;if(st===5131)return 34842;if(st===5121)return 32856}return Z}function B(Z){return Z===1003||Z===1004||Z===1005?9728:9729}function H(Z){Z=Z.target,Z.removeEventListener("dispose",H);t:{var st=n.get(Z);if(Z.image&&st.__image__webglTextureCube)t.deleteTexture(st.__image__webglTextureCube);else{if(st.__webglInit===void 0)break t;t.deleteTexture(st.__webglTexture)}n.remove(Z)}Z.isVideoTexture&&delete wt[Z.id],f.memory.textures--}function q(Z){Z=Z.target,Z.removeEventListener("dispose",q);var st=n.get(Z),zt=n.get(Z.texture);if(Z){if(zt.__webglTexture!==void 0&&t.deleteTexture(zt.__webglTexture),Z.depthTexture&&Z.depthTexture.dispose(),Z.isWebGLRenderTargetCube)for(zt=0;6>zt;zt++)t.deleteFramebuffer(st.__webglFramebuffer[zt]),st.__webglDepthbuffer&&t.deleteRenderbuffer(st.__webglDepthbuffer[zt]);else t.deleteFramebuffer(st.__webglFramebuffer),st.__webglDepthbuffer&&t.deleteRenderbuffer(st.__webglDepthbuffer);n.remove(Z.texture),n.remove(Z)}f.memory.textures--}function K(Z,st){var zt=n.get(Z);if(Z.isVideoTexture){var ee=Z.id,$t=f.render.frame;wt[ee]!==$t&&(wt[ee]=$t,Z.update())}if(0<Z.version&&zt.__version!==Z.version)if(ee=Z.image,ee===void 0)console.warn("THREE.WebGLRenderer: Texture marked for update but image is undefined");else if(ee.complete===!1)console.warn("THREE.WebGLRenderer: Texture marked for update but image is incomplete");else{xt(zt,Z,st);return}i.activeTexture(33984+st),i.bindTexture(3553,zt.__webglTexture)}function rt(Z,st,zt){zt?(t.texParameteri(Z,10242,a.convert(st.wrapS)),t.texParameteri(Z,10243,a.convert(st.wrapT)),t.texParameteri(Z,10240,a.convert(st.magFilter)),t.texParameteri(Z,10241,a.convert(st.minFilter))):(t.texParameteri(Z,10242,33071),t.texParameteri(Z,10243,33071),st.wrapS===1001&&st.wrapT===1001||console.warn("THREE.WebGLRenderer: Texture is not power of two. Texture.wrapS and Texture.wrapT should be set to THREE.ClampToEdgeWrapping."),t.texParameteri(Z,10240,B(st.magFilter)),t.texParameteri(Z,10241,B(st.minFilter)),st.minFilter!==1003&&st.minFilter!==1006&&console.warn("THREE.WebGLRenderer: Texture is not power of two. Texture.minFilter should be set to THREE.NearestFilter or THREE.LinearFilter.")),!(zt=e.get("EXT_texture_filter_anisotropic"))||st.type===1015&&e.get("OES_texture_float_linear")===null||st.type===1016&&(s.isWebGL2||e.get("OES_texture_half_float_linear"))===null||!(1<st.anisotropy||n.get(st).__currentAnisotropy)||(t.texParameterf(Z,zt.TEXTURE_MAX_ANISOTROPY_EXT,Math.min(st.anisotropy,s.getMaxAnisotropy())),n.get(st).__currentAnisotropy=st.anisotropy)}function xt(Z,st,zt){var ee=st.isDataTexture3D?32879:3553;Z.__webglInit===void 0&&(Z.__webglInit=!0,st.addEventListener("dispose",H),Z.__webglTexture=t.createTexture(),f.memory.textures++),i.activeTexture(33984+zt),i.bindTexture(ee,Z.__webglTexture),t.pixelStorei(37440,st.flipY),t.pixelStorei(37441,st.premultiplyAlpha),t.pixelStorei(3317,st.unpackAlignment),zt=p(st.image,s.maxTextureSize);var $t=s.isWebGL2?!1:st.wrapS!==1001||st.wrapT!==1001||st.minFilter!==1003&&st.minFilter!==1006;$t&&v(zt)===!1&&(zt instanceof HTMLImageElement||zt instanceof HTMLCanvasElement||zt instanceof ImageBitmap)&&(Vt===void 0&&(Vt=document.createElementNS("http://www.w3.org/1999/xhtml","canvas")),Vt.width=pi.floorPowerOfTwo(zt.width),Vt.height=pi.floorPowerOfTwo(zt.height),Vt.getContext("2d").drawImage(zt,0,0,Vt.width,Vt.height),console.warn("THREE.WebGLRenderer: image is not power of two ("+zt.width+"x"+zt.height+"). Resized to "+Vt.width+"x"+Vt.height),zt=Vt),$t=v(zt);var qt=a.convert(st.format),Te=a.convert(st.type),me=L(qt,Te);rt(ee,st,$t);var Ie=st.mipmaps;if(st.isDepthTexture){if(me=6402,st.type===1015){if(!s.isWebGL2)throw Error("Float Depth Texture only supported in WebGL2.0");me=36012}else s.isWebGL2&&(me=33189);st.format===1026&&me===6402&&st.type!==1012&&st.type!==1014&&(console.warn("THREE.WebGLRenderer: Use UnsignedShortType or UnsignedIntType for DepthFormat DepthTexture."),st.type=1012,Te=a.convert(st.type)),st.format===1027&&(me=34041,st.type!==1020&&(console.warn("THREE.WebGLRenderer: Use UnsignedInt248Type for DepthStencilFormat DepthTexture."),st.type=1020,Te=a.convert(st.type))),i.texImage2D(3553,0,me,zt.width,zt.height,0,qt,Te,null)}else if(st.isDataTexture)if(0<Ie.length&&$t){for(var be=0,ae=Ie.length;be<ae;be++)ee=Ie[be],i.texImage2D(3553,be,me,ee.width,ee.height,0,qt,Te,ee.data);st.generateMipmaps=!1,Z.__maxMipLevel=Ie.length-1}else i.texImage2D(3553,0,me,zt.width,zt.height,0,qt,Te,zt.data),Z.__maxMipLevel=0;else if(st.isCompressedTexture){for(be=0,ae=Ie.length;be<ae;be++)ee=Ie[be],st.format!==1023&&st.format!==1022?-1<i.getCompressedTextureFormats().indexOf(qt)?i.compressedTexImage2D(3553,be,me,ee.width,ee.height,0,ee.data):console.warn("THREE.WebGLRenderer: Attempt to load unsupported compressed texture format in .uploadTexture()"):i.texImage2D(3553,be,me,ee.width,ee.height,0,qt,Te,ee.data);Z.__maxMipLevel=Ie.length-1}else if(st.isDataTexture3D)i.texImage3D(32879,0,me,zt.width,zt.height,zt.depth,0,qt,Te,zt.data),Z.__maxMipLevel=0;else if(0<Ie.length&&$t){for(be=0,ae=Ie.length;be<ae;be++)ee=Ie[be],i.texImage2D(3553,be,me,qt,Te,ee);st.generateMipmaps=!1,Z.__maxMipLevel=Ie.length-1}else i.texImage2D(3553,0,me,qt,Te,zt),Z.__maxMipLevel=0;w(st,$t)&&C(3553,st,zt.width,zt.height),Z.__version=st.version,st.onUpdate&&st.onUpdate(st)}function gt(Z,st,zt,ee){var $t=a.convert(st.texture.format),qt=a.convert(st.texture.type),Te=L($t,qt);i.texImage2D(ee,0,Te,st.width,st.height,0,$t,qt,null),t.bindFramebuffer(36160,Z),t.framebufferTexture2D(36160,zt,ee,n.get(st.texture).__webglTexture,0),t.bindFramebuffer(36160,null)}function At(Z,st){t.bindRenderbuffer(36161,Z),st.depthBuffer&&!st.stencilBuffer?(t.renderbufferStorage(36161,33189,st.width,st.height),t.framebufferRenderbuffer(36160,36096,36161,Z)):st.depthBuffer&&st.stencilBuffer?(t.renderbufferStorage(36161,34041,st.width,st.height),t.framebufferRenderbuffer(36160,33306,36161,Z)):t.renderbufferStorage(36161,32854,st.width,st.height),t.bindRenderbuffer(36161,null)}var wt={},Vt;this.setTexture2D=K,this.setTexture3D=function(Z,st){var zt=n.get(Z);0<Z.version&&zt.__version!==Z.version?xt(zt,Z,st):(i.activeTexture(33984+st),i.bindTexture(32879,zt.__webglTexture))},this.setTextureCube=function(Z,st){var zt=n.get(Z);if(Z.image.length===6)if(0<Z.version&&zt.__version!==Z.version){zt.__image__webglTextureCube||(Z.addEventListener("dispose",H),zt.__image__webglTextureCube=t.createTexture(),f.memory.textures++),i.activeTexture(33984+st),i.bindTexture(34067,zt.__image__webglTextureCube),t.pixelStorei(37440,Z.flipY),st=Z&&Z.isCompressedTexture;for(var ee=Z.image[0]&&Z.image[0].isDataTexture,$t=[],qt=0;6>qt;qt++)$t[qt]=st||ee?ee?Z.image[qt].image:Z.image[qt]:p(Z.image[qt],s.maxCubemapSize);var Te=$t[0],me=v(Te),Ie=a.convert(Z.format),be=a.convert(Z.type),ae=L(Ie,be);for(rt(34067,Z,me),qt=0;6>qt;qt++)if(st)for(var We,Qe=$t[qt].mipmaps,fi=0,An=Qe.length;fi<An;fi++)We=Qe[fi],Z.format!==1023&&Z.format!==1022?-1<i.getCompressedTextureFormats().indexOf(Ie)?i.compressedTexImage2D(34069+qt,fi,ae,We.width,We.height,0,We.data):console.warn("THREE.WebGLRenderer: Attempt to load unsupported compressed texture format in .setTextureCube()"):i.texImage2D(34069+qt,fi,ae,We.width,We.height,0,Ie,be,We.data);else ee?i.texImage2D(34069+qt,0,ae,$t[qt].width,$t[qt].height,0,Ie,be,$t[qt].data):i.texImage2D(34069+qt,0,ae,Ie,be,$t[qt]);zt.__maxMipLevel=st?Qe.length-1:0,w(Z,me)&&C(34067,Z,Te.width,Te.height),zt.__version=Z.version,Z.onUpdate&&Z.onUpdate(Z)}else i.activeTexture(33984+st),i.bindTexture(34067,zt.__image__webglTextureCube)},this.setTextureCubeDynamic=function(Z,st){i.activeTexture(33984+st),i.bindTexture(34067,n.get(Z).__webglTexture)},this.setupRenderTarget=function(Z){var st=n.get(Z),zt=n.get(Z.texture);Z.addEventListener("dispose",q),zt.__webglTexture=t.createTexture(),f.memory.textures++;var ee=Z.isWebGLRenderTargetCube===!0,$t=v(Z);if(ee){st.__webglFramebuffer=[];for(var qt=0;6>qt;qt++)st.__webglFramebuffer[qt]=t.createFramebuffer()}else st.__webglFramebuffer=t.createFramebuffer();if(ee){for(i.bindTexture(34067,zt.__webglTexture),rt(34067,Z.texture,$t),qt=0;6>qt;qt++)gt(st.__webglFramebuffer[qt],Z,36064,34069+qt);w(Z.texture,$t)&&C(34067,Z.texture,Z.width,Z.height),i.bindTexture(34067,null)}else i.bindTexture(3553,zt.__webglTexture),rt(3553,Z.texture,$t),gt(st.__webglFramebuffer,Z,36064,3553),w(Z.texture,$t)&&C(3553,Z.texture,Z.width,Z.height),i.bindTexture(3553,null);if(Z.depthBuffer){if(st=n.get(Z),zt=Z.isWebGLRenderTargetCube===!0,Z.depthTexture){if(zt)throw Error("target.depthTexture not supported in Cube render targets");if(Z&&Z.isWebGLRenderTargetCube)throw Error("Depth Texture with cube render targets is not supported");if(t.bindFramebuffer(36160,st.__webglFramebuffer),!Z.depthTexture||!Z.depthTexture.isDepthTexture)throw Error("renderTarget.depthTexture must be an instance of THREE.DepthTexture");if(n.get(Z.depthTexture).__webglTexture&&Z.depthTexture.image.width===Z.width&&Z.depthTexture.image.height===Z.height||(Z.depthTexture.image.width=Z.width,Z.depthTexture.image.height=Z.height,Z.depthTexture.needsUpdate=!0),K(Z.depthTexture,0),st=n.get(Z.depthTexture).__webglTexture,Z.depthTexture.format===1026)t.framebufferTexture2D(36160,36096,3553,st,0);else if(Z.depthTexture.format===1027)t.framebufferTexture2D(36160,33306,3553,st,0);else throw Error("Unknown depthTexture format")}else if(zt)for(st.__webglDepthbuffer=[],zt=0;6>zt;zt++)t.bindFramebuffer(36160,st.__webglFramebuffer[zt]),st.__webglDepthbuffer[zt]=t.createRenderbuffer(),At(st.__webglDepthbuffer[zt],Z);else t.bindFramebuffer(36160,st.__webglFramebuffer),st.__webglDepthbuffer=t.createRenderbuffer(),At(st.__webglDepthbuffer,Z);t.bindFramebuffer(36160,null)}},this.updateRenderTargetMipmap=function(Z){var st=Z.texture,zt=v(Z);if(w(st,zt)){zt=Z.isWebGLRenderTargetCube?34067:3553;var ee=n.get(st).__webglTexture;i.bindTexture(zt,ee),C(zt,st,Z.width,Z.height),i.bindTexture(zt,null)}}}function He(t,e,i){return{convert:function(n){if(n===1e3)return 10497;if(n===1001)return 33071;if(n===1002)return 33648;if(n===1003)return 9728;if(n===1004)return 9984;if(n===1005)return 9986;if(n===1006)return 9729;if(n===1007)return 9985;if(n===1008)return 9987;if(n===1009)return 5121;if(n===1017)return 32819;if(n===1018)return 32820;if(n===1019)return 33635;if(n===1010)return 5120;if(n===1011)return 5122;if(n===1012)return 5123;if(n===1013)return 5124;if(n===1014)return 5125;if(n===1015)return 5126;if(n===1016){if(i.isWebGL2)return 5131;var s=e.get("OES_texture_half_float");if(s!==null)return s.HALF_FLOAT_OES}if(n===1021)return 6406;if(n===1022)return 6407;if(n===1023)return 6408;if(n===1024)return 6409;if(n===1025)return 6410;if(n===1026)return 6402;if(n===1027)return 34041;if(n===1028)return 6403;if(n===100)return 32774;if(n===101)return 32778;if(n===102)return 32779;if(n===200)return 0;if(n===201)return 1;if(n===202)return 768;if(n===203)return 769;if(n===204)return 770;if(n===205)return 771;if(n===206)return 772;if(n===207)return 773;if(n===208)return 774;if(n===209)return 775;if(n===210)return 776;if((n===33776||n===33777||n===33778||n===33779)&&(s=e.get("WEBGL_compressed_texture_s3tc"),s!==null)){if(n===33776)return s.COMPRESSED_RGB_S3TC_DXT1_EXT;if(n===33777)return s.COMPRESSED_RGBA_S3TC_DXT1_EXT;if(n===33778)return s.COMPRESSED_RGBA_S3TC_DXT3_EXT;if(n===33779)return s.COMPRESSED_RGBA_S3TC_DXT5_EXT}if((n===35840||n===35841||n===35842||n===35843)&&(s=e.get("WEBGL_compressed_texture_pvrtc"),s!==null)){if(n===35840)return s.COMPRESSED_RGB_PVRTC_4BPPV1_IMG;if(n===35841)return s.COMPRESSED_RGB_PVRTC_2BPPV1_IMG;if(n===35842)return s.COMPRESSED_RGBA_PVRTC_4BPPV1_IMG;if(n===35843)return s.COMPRESSED_RGBA_PVRTC_2BPPV1_IMG}if(n===36196&&(s=e.get("WEBGL_compressed_texture_etc1"),s!==null))return s.COMPRESSED_RGB_ETC1_WEBGL;if((n===37808||n===37809||n===37810||n===37811||n===37812||n===37813||n===37814||n===37815||n===37816||n===37817||n===37818||n===37819||n===37820||n===37821)&&(s=e.get("WEBGL_compressed_texture_astc"),s!==null))return n;if(n===103||n===104){if(i.isWebGL2){if(n===103)return 32775;if(n===104)return 32776}if(s=e.get("EXT_blend_minmax"),s!==null){if(n===103)return s.MIN_EXT;if(n===104)return s.MAX_EXT}}if(n===1020){if(i.isWebGL2)return 34042;if(s=e.get("WEBGL_depth_texture"),s!==null)return s.UNSIGNED_INT_24_8_WEBGL}return 0}}}function ci(){F.call(this),this.type="Group"}function Be(){F.call(this),this.type="Camera",this.matrixWorldInverse=new c,this.projectionMatrix=new c,this.projectionMatrixInverse=new c}function ye(t,e,i,n){Be.call(this),this.type="PerspectiveCamera",this.fov=t!==void 0?t:50,this.zoom=1,this.near=i!==void 0?i:.1,this.far=n!==void 0?n:2e3,this.focus=10,this.aspect=e!==void 0?e:1,this.view=null,this.filmGauge=35,this.filmOffset=0,this.updateProjectionMatrix()}function Fe(t){ye.call(this),this.cameras=t||[]}function pe(t,e,i){oo.setFromMatrixPosition(e.matrixWorld),wr.setFromMatrixPosition(i.matrixWorld);var n=oo.distanceTo(wr),s=e.projectionMatrix.elements,a=i.projectionMatrix.elements,f=s[14]/(s[10]-1);i=s[14]/(s[10]+1);var p=(s[9]+1)/s[5],v=(s[9]-1)/s[5],w=(s[8]-1)/s[0],C=(a[8]+1)/a[0];s=f*w,a=f*C,C=n/(-w+C),w=C*-w,e.matrixWorld.decompose(t.position,t.quaternion,t.scale),t.translateX(w),t.translateZ(C),t.matrixWorld.compose(t.position,t.quaternion,t.scale),t.matrixWorldInverse.getInverse(t.matrixWorld),e=f+C,f=i+C,t.projectionMatrix.makePerspective(s-w,a+(n-w),p*i/f*e,v*i/f*e,e,f)}function mi(t){function e(){return s!==null&&s.isPresenting===!0}function i(){if(e()){var Z=s.getEyeParameters("left"),st=Z.renderWidth*C;Z=Z.renderHeight*C,At=t.getPixelRatio(),gt=t.getSize(),t.setDrawingBufferSize(2*st,Z,1),Vt.start()}else n.enabled&&t.setDrawingBufferSize(gt.width,gt.height,At),Vt.stop()}var n=this,s=null,a=null,f=null,p=[],v=new c,w=new c,C=1,L="stage";typeof window<"u"&&"VRFrameData"in window&&(a=new window.VRFrameData,window.addEventListener("vrdisplaypresentchange",i,!1));var B=new c,H=new d,q=new u,K=new ye;K.bounds=new y(0,0,.5,1),K.layers.enable(1);var rt=new ye;rt.bounds=new y(.5,0,.5,1),rt.layers.enable(2);var xt=new Fe([K,rt]);xt.layers.enable(1),xt.layers.enable(2);var gt,At,wt=[];this.enabled=!1,this.getController=function(Z){var st=p[Z];return st===void 0&&(st=new ci,st.matrixAutoUpdate=!1,st.visible=!1,p[Z]=st),st},this.getDevice=function(){return s},this.setDevice=function(Z){Z!==void 0&&(s=Z),Vt.setContext(Z)},this.setFramebufferScaleFactor=function(Z){C=Z},this.setFrameOfReferenceType=function(Z){L=Z},this.setPoseTarget=function(Z){Z!==void 0&&(f=Z)},this.getCamera=function(Z){var st=L==="stage"?1.6:0;if(s===null)return Z.position.set(0,st,0),Z;if(s.depthNear=Z.near,s.depthFar=Z.far,s.getFrameData(a),L==="stage"){var zt=s.stageParameters;zt?v.fromArray(zt.sittingToStandingTransform):v.makeTranslation(0,st,0)}if(st=a.pose,zt=f!==null?f:Z,zt.matrix.copy(v),zt.matrix.decompose(zt.position,zt.quaternion,zt.scale),st.orientation!==null&&(H.fromArray(st.orientation),zt.quaternion.multiply(H)),st.position!==null&&(H.setFromRotationMatrix(v),q.fromArray(st.position),q.applyQuaternion(H),zt.position.add(q)),zt.updateMatrixWorld(),s.isPresenting===!1)return Z;K.near=Z.near,rt.near=Z.near,K.far=Z.far,rt.far=Z.far,K.matrixWorldInverse.fromArray(a.leftViewMatrix),rt.matrixWorldInverse.fromArray(a.rightViewMatrix),w.getInverse(v),L==="stage"&&(K.matrixWorldInverse.multiply(w),rt.matrixWorldInverse.multiply(w)),Z=zt.parent,Z!==null&&(B.getInverse(Z.matrixWorld),K.matrixWorldInverse.multiply(B),rt.matrixWorldInverse.multiply(B)),K.matrixWorld.getInverse(K.matrixWorldInverse),rt.matrixWorld.getInverse(rt.matrixWorldInverse),K.projectionMatrix.fromArray(a.leftProjectionMatrix),rt.projectionMatrix.fromArray(a.rightProjectionMatrix),pe(xt,K,rt),Z=s.getLayers(),Z.length&&(Z=Z[0],Z.leftBounds!==null&&Z.leftBounds.length===4&&K.bounds.fromArray(Z.leftBounds),Z.rightBounds!==null&&Z.rightBounds.length===4&&rt.bounds.fromArray(Z.rightBounds));t:for(Z=0;Z<p.length;Z++){st=p[Z];e:{zt=Z;for(var ee=navigator.getGamepads&&navigator.getGamepads(),$t=0,qt=0,Te=ee.length;$t<Te;$t++){var me=ee[$t];if(me&&(me.id==="Daydream Controller"||me.id==="Gear VR Controller"||me.id==="Oculus Go Controller"||me.id==="OpenVR Gamepad"||me.id.startsWith("Oculus Touch")||me.id.startsWith("Spatial Controller"))){if(qt===zt){zt=me;break e}qt++}}zt=void 0}if(zt!==void 0&&zt.pose!==void 0){if(zt.pose===null)break t;ee=zt.pose,ee.hasPosition===!1&&st.position.set(.2,-.6,-.05),ee.position!==null&&st.position.fromArray(ee.position),ee.orientation!==null&&st.quaternion.fromArray(ee.orientation),st.matrix.compose(st.position,st.quaternion,st.scale),st.matrix.premultiply(v),st.matrix.decompose(st.position,st.quaternion,st.scale),st.matrixWorldNeedsUpdate=!0,st.visible=!0,ee=zt.id==="Daydream Controller"?0:1,wt[Z]!==zt.buttons[ee].pressed&&(wt[Z]=zt.buttons[ee].pressed,wt[Z]===!0?st.dispatchEvent({type:"selectstart"}):(st.dispatchEvent({type:"selectend"}),st.dispatchEvent({type:"select"})))}else st.visible=!1}return xt},this.getStandingMatrix=function(){return v},this.isPresenting=e;var Vt=new T;this.setAnimationLoop=function(Z){Vt.setAnimationLoop(Z)},this.submitFrame=function(){e()&&s.submitFrame()},this.dispose=function(){typeof window<"u"&&window.removeEventListener("vrdisplaypresentchange",i)}}function Pe(t){function e(){return p!==null&&w!==null}function i(At){var wt=B[H.indexOf(At.inputSource)];wt&&wt.dispatchEvent({type:At.type})}function n(){t.setFramebuffer(null),gt.stop()}function s(At,wt){wt===null?At.matrixWorld.copy(At.matrix):At.matrixWorld.multiplyMatrices(wt.matrixWorld,At.matrix),At.matrixWorldInverse.getInverse(At.matrixWorld)}var a=t.context,f=null,p=null,v=1,w=null,C="stage",L=null,B=[],H=[],q=new ye;q.layers.enable(1),q.viewport=new y;var K=new ye;K.layers.enable(2),K.viewport=new y;var rt=new Fe([q,K]);rt.layers.enable(1),rt.layers.enable(2),this.enabled=!1,this.getController=function(At){var wt=B[At];return wt===void 0&&(wt=new ci,wt.matrixAutoUpdate=!1,wt.visible=!1,B[At]=wt),wt},this.getDevice=function(){return f},this.setDevice=function(At){At!==void 0&&(f=At),At instanceof XRDevice&&a.setCompatibleXRDevice(At)},this.setFramebufferScaleFactor=function(At){v=At},this.setFrameOfReferenceType=function(At){C=At},this.setSession=function(At){p=At,p!==null&&(p.addEventListener("select",i),p.addEventListener("selectstart",i),p.addEventListener("selectend",i),p.addEventListener("end",n),p.baseLayer=new XRWebGLLayer(p,a,{framebufferScaleFactor:v}),p.requestFrameOfReference(C).then(function(wt){w=wt,t.setFramebuffer(p.baseLayer.framebuffer),gt.setContext(p),gt.start()}),H=p.getInputSources(),p.addEventListener("inputsourceschange",function(){H=p.getInputSources(),console.log(H);for(var wt=0;wt<B.length;wt++)B[wt].userData.inputSource=H[wt]}))},this.getCamera=function(At){if(e()){var wt=At.parent,Vt=rt.cameras;s(rt,wt);for(var Z=0;Z<Vt.length;Z++)s(Vt[Z],wt);for(At.matrixWorld.copy(rt.matrixWorld),At=At.children,Z=0,wt=At.length;Z<wt;Z++)At[Z].updateMatrixWorld(!0);return pe(rt,q,K),rt}return At},this.isPresenting=e;var xt=null,gt=new T;gt.setAnimationLoop(function(At,wt){if(L=wt.getDevicePose(w),L!==null)for(var Vt=p.baseLayer,Z=wt.views,st=0;st<Z.length;st++){var zt=Z[st],ee=Vt.getViewport(zt),$t=L.getViewMatrix(zt),qt=rt.cameras[st];qt.matrix.fromArray($t).getInverse(qt.matrix),qt.projectionMatrix.fromArray(zt.projectionMatrix),qt.viewport.set(ee.x,ee.y,ee.width,ee.height),st===0&&rt.matrix.copy(qt.matrix)}for(st=0;st<B.length;st++){if(Vt=B[st],(Z=H[st])&&(Z=wt.getInputPose(Z,w),Z!==null)){"targetRay"in Z?Vt.matrix.elements=Z.targetRay.transformMatrix:"pointerMatrix"in Z&&(Vt.matrix.elements=Z.pointerMatrix),Vt.matrix.decompose(Vt.position,Vt.rotation,Vt.scale),Vt.visible=!0;continue}Vt.visible=!1}xt&&xt(At)}),this.setAnimationLoop=function(At){xt=At},this.dispose=function(){},this.getStandingMatrix=function(){return console.warn("THREE.WebXRManager: getStandingMatrix() is no longer needed."),new THREE.Matrix4},this.submitFrame=function(){}}function xe(t){var e;function i(){ii=new Jt(ne),Ze=new Qi(ne,ii,t),Ze.isWebGL2||(ii.get("WEBGL_depth_texture"),ii.get("OES_texture_float"),ii.get("OES_texture_half_float"),ii.get("OES_texture_half_float_linear"),ii.get("OES_standard_derivatives"),ii.get("OES_element_index_uint"),ii.get("ANGLE_instanced_arrays")),ii.get("OES_texture_float_linear"),In=new He(ne,ii,Ze),li=new ue(ne,ii,In,Ze),li.scissor(qi.copy(Ye).multiplyScalar(ti)),li.viewport(yn.copy(Ut).multiplyScalar(ti)),xn=new dt,Pn=new at,Bs=new je(ne,ii,li,Pn,Ze,In,xn),La=new M(ne),Yh=new Wt(ne,La,xn),Ra=new Kt(Yh,xn),Zh=new ie(ne),Uo=new lt(qt,ii,Ze),Ml=new Rt,Go=new he,lo=new Ii(qt,li,Ra,Z),Jh=new mn(ne,ii,xn,Ze),er=new pt(ne,ii,xn,Ze),xn.programs=Uo.programs,qt.context=ne,qt.capabilities=Ze,qt.extensions=ii,qt.properties=Pn,qt.renderLists=Ml,qt.state=li,qt.info=xn}function n(ft){ft.preventDefault(),console.log("THREE.WebGLRenderer: Context Lost."),Te=!0}function s(){console.log("THREE.WebGLRenderer: Context Restored."),Te=!1,i()}function a(ft){ft=ft.target,ft.removeEventListener("dispose",a),f(ft),Pn.remove(ft)}function f(ft){var Tt=Pn.get(ft).program;ft.program=void 0,Tt!==void 0&&Uo.releaseProgram(Tt)}function p(ft,Tt){ft.render(function(mt){qt.renderBufferImmediate(mt,Tt)})}function v(ft,Tt,mt){if(ft.visible!==!1){if(ft.layers.test(Tt.layers)){if(ft.isLight)$t.pushLight(ft),ft.castShadow&&$t.pushShadow(ft);else if(ft.isSprite){if(!ft.frustumCulled||Wi.intersectsSprite(ft)){mt&&Ai.setFromMatrixPosition(ft.matrixWorld).applyMatrix4(Ci);var Me=Ra.update(ft),De=ft.material;ee.push(ft,Me,De,Ai.z,null)}}else if(ft.isImmediateRenderObject)mt&&Ai.setFromMatrixPosition(ft.matrixWorld).applyMatrix4(Ci),ee.push(ft,null,ft.material,Ai.z,null);else if((ft.isMesh||ft.isLine||ft.isPoints)&&(ft.isSkinnedMesh&&ft.skeleton.update(),!ft.frustumCulled||Wi.intersectsObject(ft)))if(mt&&Ai.setFromMatrixPosition(ft.matrixWorld).applyMatrix4(Ci),Me=Ra.update(ft),De=ft.material,Array.isArray(De))for(var Ve=Me.groups,Se=0,Ke=Ve.length;Se<Ke;Se++){var Li=Ve[Se],$i=De[Li.materialIndex];$i&&$i.visible&&ee.push(ft,Me,$i,Ai.z,Li)}else De.visible&&ee.push(ft,Me,De,Ai.z,null)}for(ft=ft.children,Se=0,Ke=ft.length;Se<Ke;Se++)v(ft[Se],Tt,mt)}}function w(ft,Tt,mt,Me){for(var De=0,Ve=ft.length;De<Ve;De++){var Se=ft[De],Ke=Se.object,Li=Se.geometry,$i=Me===void 0?Se.material:Me;if(Se=Se.group,mt.isArrayCamera){An=mt;for(var ve=mt.cameras,Tr=0,Nn=ve.length;Tr<Nn;Tr++){var an=ve[Tr];if(Ke.layers.test(an.layers)){if("viewport"in an)li.viewport(yn.copy(an.viewport));else{var dr=an.bounds;li.viewport(yn.set(dr.x*Cn,dr.y*Ae,dr.z*Cn,dr.w*Ae).multiplyScalar(ti))}$t.setupLights(an),C(Ke,Tt,an,Li,$i,Se)}}}else An=null,C(Ke,Tt,mt,Li,$i,Se)}}function C(ft,Tt,mt,Me,De,Ve){if(ft.onBeforeRender(qt,Tt,mt,Me,De,Ve),$t=Go.get(Tt,An||mt),ft.modelViewMatrix.multiplyMatrices(mt.matrixWorldInverse,ft.matrixWorld),ft.normalMatrix.getNormalMatrix(ft.modelViewMatrix),ft.isImmediateRenderObject){li.setMaterial(De);var Se=B(mt,Tt.fog,De,ft);We=e=null,Qe=!1,p(ft,Se)}else qt.renderBufferDirect(mt,Tt.fog,Me,De,ft,Ve);ft.onAfterRender(qt,Tt,mt,Me,De,Ve),$t=Go.get(Tt,An||mt)}function L(ft,Tt,mt){var Me=Pn.get(ft),De=$t.state.lights,Ve=Me.lightsHash,Se=De.state.hash;mt=Uo.getParameters(ft,De.state,$t.state.shadowsArray,Tt,Ce.numPlanes,Ce.numIntersection,mt);var Ke=Uo.getProgramCode(ft,mt),Li=Me.program,$i=!0;if(Li===void 0)ft.addEventListener("dispose",a);else if(Li.code!==Ke)f(ft);else{if(Ve.stateID!==Se.stateID||Ve.directionalLength!==Se.directionalLength||Ve.pointLength!==Se.pointLength||Ve.spotLength!==Se.spotLength||Ve.rectAreaLength!==Se.rectAreaLength||Ve.hemiLength!==Se.hemiLength||Ve.shadowsLength!==Se.shadowsLength)Ve.stateID=Se.stateID,Ve.directionalLength=Se.directionalLength,Ve.pointLength=Se.pointLength,Ve.spotLength=Se.spotLength,Ve.rectAreaLength=Se.rectAreaLength,Ve.hemiLength=Se.hemiLength,Ve.shadowsLength=Se.shadowsLength;else if(mt.shaderID!==void 0)return;$i=!1}if($i&&(mt.shaderID?(Ke=xs[mt.shaderID],Me.shader={name:ft.type,uniforms:Bn.clone(Ke.uniforms),vertexShader:Ke.vertexShader,fragmentShader:Ke.fragmentShader}):Me.shader={name:ft.type,uniforms:ft.uniforms,vertexShader:ft.vertexShader,fragmentShader:ft.fragmentShader},ft.onBeforeCompile(Me.shader,qt),Ke=Uo.getProgramCode(ft,mt),Li=Uo.acquireProgram(ft,Me.shader,mt,Ke),Me.program=Li,ft.program=Li),mt=Li.getAttributes(),ft.morphTargets)for(Ke=ft.numSupportedMorphTargets=0;Ke<qt.maxMorphTargets;Ke++)0<=mt["morphTarget"+Ke]&&ft.numSupportedMorphTargets++;if(ft.morphNormals)for(Ke=ft.numSupportedMorphNormals=0;Ke<qt.maxMorphNormals;Ke++)0<=mt["morphNormal"+Ke]&&ft.numSupportedMorphNormals++;mt=Me.shader.uniforms,(!ft.isShaderMaterial&&!ft.isRawShaderMaterial||ft.clipping===!0)&&(Me.numClippingPlanes=Ce.numPlanes,Me.numIntersection=Ce.numIntersection,mt.clippingPlanes=Ce.uniform),Me.fog=Tt,Ve===void 0&&(Me.lightsHash=Ve={}),Ve.stateID=Se.stateID,Ve.directionalLength=Se.directionalLength,Ve.pointLength=Se.pointLength,Ve.spotLength=Se.spotLength,Ve.rectAreaLength=Se.rectAreaLength,Ve.hemiLength=Se.hemiLength,Ve.shadowsLength=Se.shadowsLength,ft.lights&&(mt.ambientLightColor.value=De.state.ambient,mt.directionalLights.value=De.state.directional,mt.spotLights.value=De.state.spot,mt.rectAreaLights.value=De.state.rectArea,mt.pointLights.value=De.state.point,mt.hemisphereLights.value=De.state.hemi,mt.directionalShadowMap.value=De.state.directionalShadowMap,mt.directionalShadowMatrix.value=De.state.directionalShadowMatrix,mt.spotShadowMap.value=De.state.spotShadowMap,mt.spotShadowMatrix.value=De.state.spotShadowMatrix,mt.pointShadowMap.value=De.state.pointShadowMap,mt.pointShadowMatrix.value=De.state.pointShadowMatrix),ft=Me.program.getUniforms(),ft=hs.seqWithValue(ft.seq,mt),Me.uniformsList=ft}function B(ft,Tt,mt,Me){sn=0;var De=Pn.get(mt),Ve=De.lightsHash,Se=$t.state.lights.state.hash;Xe&&(ri||ft!==fi)&&Ce.setState(mt.clippingPlanes,mt.clipIntersection,mt.clipShadows,ft,De,ft===fi&&mt.id===ae),mt.needsUpdate===!1&&(De.program===void 0||mt.fog&&De.fog!==Tt?mt.needsUpdate=!0:(!mt.lights||Ve.stateID===Se.stateID&&Ve.directionalLength===Se.directionalLength&&Ve.pointLength===Se.pointLength&&Ve.spotLength===Se.spotLength&&Ve.rectAreaLength===Se.rectAreaLength&&Ve.hemiLength===Se.hemiLength&&Ve.shadowsLength===Se.shadowsLength)&&(De.numClippingPlanes===void 0||De.numClippingPlanes===Ce.numPlanes&&De.numIntersection===Ce.numIntersection)||(mt.needsUpdate=!0)),mt.needsUpdate&&(L(mt,Tt,Me),mt.needsUpdate=!1);var Ke=!1,Li=!1,$i=!1;Ve=De.program,Se=Ve.getUniforms();var ve=De.shader.uniforms;if(li.useProgram(Ve.program)&&($i=Li=Ke=!0),mt.id!==ae&&(ae=mt.id,Li=!0),(Ke||fi!==ft)&&(Se.setValue(ne,"projectionMatrix",ft.projectionMatrix),Ze.logarithmicDepthBuffer&&Se.setValue(ne,"logDepthBufFC",2/(Math.log(ft.far+1)/Math.LN2)),fi!==ft&&(fi=ft,$i=Li=!0),(mt.isShaderMaterial||mt.isMeshPhongMaterial||mt.isMeshStandardMaterial||mt.envMap)&&(Ke=Se.map.cameraPosition,Ke!==void 0&&Ke.setValue(ne,Ai.setFromMatrixPosition(ft.matrixWorld))),(mt.isMeshPhongMaterial||mt.isMeshLambertMaterial||mt.isMeshBasicMaterial||mt.isMeshStandardMaterial||mt.isShaderMaterial||mt.skinning)&&Se.setValue(ne,"viewMatrix",ft.matrixWorldInverse)),mt.skinning&&(Se.setOptional(ne,Me,"bindMatrix"),Se.setOptional(ne,Me,"bindMatrixInverse"),ft=Me.skeleton))if(Ke=ft.bones,Ze.floatVertexTextures){if(ft.boneTexture===void 0){Ke=Math.sqrt(4*Ke.length),Ke=pi.ceilPowerOfTwo(Ke),Ke=Math.max(Ke,4);var Tr=new Float32Array(Ke*Ke*4);Tr.set(ft.boneMatrices);var Nn=new I(Tr,Ke,Ke,1023,1015);Nn.needsUpdate=!0,ft.boneMatrices=Tr,ft.boneTexture=Nn,ft.boneTextureSize=Ke}Se.setValue(ne,"boneTexture",ft.boneTexture),Se.setValue(ne,"boneTextureSize",ft.boneTextureSize)}else Se.setOptional(ne,ft,"boneMatrices");return Li&&(Se.setValue(ne,"toneMappingExposure",qt.toneMappingExposure),Se.setValue(ne,"toneMappingWhitePoint",qt.toneMappingWhitePoint),mt.lights&&(Li=$i,ve.ambientLightColor.needsUpdate=Li,ve.directionalLights.needsUpdate=Li,ve.pointLights.needsUpdate=Li,ve.spotLights.needsUpdate=Li,ve.rectAreaLights.needsUpdate=Li,ve.hemisphereLights.needsUpdate=Li),Tt&&mt.fog&&(ve.fogColor.value=Tt.color,Tt.isFog?(ve.fogNear.value=Tt.near,ve.fogFar.value=Tt.far):Tt.isFogExp2&&(ve.fogDensity.value=Tt.density)),mt.isMeshBasicMaterial?H(ve,mt):mt.isMeshLambertMaterial?(H(ve,mt),mt.emissiveMap&&(ve.emissiveMap.value=mt.emissiveMap)):mt.isMeshPhongMaterial?(H(ve,mt),mt.isMeshToonMaterial?(q(ve,mt),mt.gradientMap&&(ve.gradientMap.value=mt.gradientMap)):q(ve,mt)):mt.isMeshStandardMaterial?(H(ve,mt),mt.isMeshPhysicalMaterial?(K(ve,mt),ve.reflectivity.value=mt.reflectivity,ve.clearCoat.value=mt.clearCoat,ve.clearCoatRoughness.value=mt.clearCoatRoughness):K(ve,mt)):mt.isMeshMatcapMaterial?(H(ve,mt),mt.matcap&&(ve.matcap.value=mt.matcap),mt.bumpMap&&(ve.bumpMap.value=mt.bumpMap,ve.bumpScale.value=mt.bumpScale,mt.side===1&&(ve.bumpScale.value*=-1)),mt.normalMap&&(ve.normalMap.value=mt.normalMap,ve.normalScale.value.copy(mt.normalScale),mt.side===1&&ve.normalScale.value.negate()),mt.displacementMap&&(ve.displacementMap.value=mt.displacementMap,ve.displacementScale.value=mt.displacementScale,ve.displacementBias.value=mt.displacementBias)):mt.isMeshDepthMaterial?(H(ve,mt),mt.displacementMap&&(ve.displacementMap.value=mt.displacementMap,ve.displacementScale.value=mt.displacementScale,ve.displacementBias.value=mt.displacementBias)):mt.isMeshDistanceMaterial?(H(ve,mt),mt.displacementMap&&(ve.displacementMap.value=mt.displacementMap,ve.displacementScale.value=mt.displacementScale,ve.displacementBias.value=mt.displacementBias),ve.referencePosition.value.copy(mt.referencePosition),ve.nearDistance.value=mt.nearDistance,ve.farDistance.value=mt.farDistance):mt.isMeshNormalMaterial?(H(ve,mt),mt.bumpMap&&(ve.bumpMap.value=mt.bumpMap,ve.bumpScale.value=mt.bumpScale,mt.side===1&&(ve.bumpScale.value*=-1)),mt.normalMap&&(ve.normalMap.value=mt.normalMap,ve.normalScale.value.copy(mt.normalScale),mt.side===1&&ve.normalScale.value.negate()),mt.displacementMap&&(ve.displacementMap.value=mt.displacementMap,ve.displacementScale.value=mt.displacementScale,ve.displacementBias.value=mt.displacementBias)):mt.isLineBasicMaterial?(ve.diffuse.value=mt.color,ve.opacity.value=mt.opacity,mt.isLineDashedMaterial&&(ve.dashSize.value=mt.dashSize,ve.totalSize.value=mt.dashSize+mt.gapSize,ve.scale.value=mt.scale)):mt.isPointsMaterial?(ve.diffuse.value=mt.color,ve.opacity.value=mt.opacity,ve.size.value=mt.size*ti,ve.scale.value=.5*Ae,ve.map.value=mt.map,mt.map!==null&&(mt.map.matrixAutoUpdate===!0&&mt.map.updateMatrix(),ve.uvTransform.value.copy(mt.map.matrix))):mt.isSpriteMaterial?(ve.diffuse.value=mt.color,ve.opacity.value=mt.opacity,ve.rotation.value=mt.rotation,ve.map.value=mt.map,mt.map!==null&&(mt.map.matrixAutoUpdate===!0&&mt.map.updateMatrix(),ve.uvTransform.value.copy(mt.map.matrix))):mt.isShadowMaterial&&(ve.color.value=mt.color,ve.opacity.value=mt.opacity),ve.ltc_1!==void 0&&(ve.ltc_1.value=qe.LTC_1),ve.ltc_2!==void 0&&(ve.ltc_2.value=qe.LTC_2),hs.upload(ne,De.uniformsList,ve,qt)),mt.isShaderMaterial&&mt.uniformsNeedUpdate===!0&&(hs.upload(ne,De.uniformsList,ve,qt),mt.uniformsNeedUpdate=!1),mt.isSpriteMaterial&&Se.setValue(ne,"center",Me.center),Se.setValue(ne,"modelViewMatrix",Me.modelViewMatrix),Se.setValue(ne,"normalMatrix",Me.normalMatrix),Se.setValue(ne,"modelMatrix",Me.matrixWorld),Ve}function H(ft,Tt){if(ft.opacity.value=Tt.opacity,Tt.color&&(ft.diffuse.value=Tt.color),Tt.emissive&&ft.emissive.value.copy(Tt.emissive).multiplyScalar(Tt.emissiveIntensity),Tt.map&&(ft.map.value=Tt.map),Tt.alphaMap&&(ft.alphaMap.value=Tt.alphaMap),Tt.specularMap&&(ft.specularMap.value=Tt.specularMap),Tt.envMap&&(ft.envMap.value=Tt.envMap,ft.flipEnvMap.value=Tt.envMap&&Tt.envMap.isCubeTexture?-1:1,ft.reflectivity.value=Tt.reflectivity,ft.refractionRatio.value=Tt.refractionRatio,ft.maxMipLevel.value=Pn.get(Tt.envMap).__maxMipLevel),Tt.lightMap&&(ft.lightMap.value=Tt.lightMap,ft.lightMapIntensity.value=Tt.lightMapIntensity),Tt.aoMap&&(ft.aoMap.value=Tt.aoMap,ft.aoMapIntensity.value=Tt.aoMapIntensity),Tt.map)var mt=Tt.map;else Tt.specularMap?mt=Tt.specularMap:Tt.displacementMap?mt=Tt.displacementMap:Tt.normalMap?mt=Tt.normalMap:Tt.bumpMap?mt=Tt.bumpMap:Tt.roughnessMap?mt=Tt.roughnessMap:Tt.metalnessMap?mt=Tt.metalnessMap:Tt.alphaMap?mt=Tt.alphaMap:Tt.emissiveMap&&(mt=Tt.emissiveMap);mt!==void 0&&(mt.isWebGLRenderTarget&&(mt=mt.texture),mt.matrixAutoUpdate===!0&&mt.updateMatrix(),ft.uvTransform.value.copy(mt.matrix))}function q(ft,Tt){ft.specular.value=Tt.specular,ft.shininess.value=Math.max(Tt.shininess,1e-4),Tt.emissiveMap&&(ft.emissiveMap.value=Tt.emissiveMap),Tt.bumpMap&&(ft.bumpMap.value=Tt.bumpMap,ft.bumpScale.value=Tt.bumpScale,Tt.side===1&&(ft.bumpScale.value*=-1)),Tt.normalMap&&(ft.normalMap.value=Tt.normalMap,ft.normalScale.value.copy(Tt.normalScale),Tt.side===1&&ft.normalScale.value.negate()),Tt.displacementMap&&(ft.displacementMap.value=Tt.displacementMap,ft.displacementScale.value=Tt.displacementScale,ft.displacementBias.value=Tt.displacementBias)}function K(ft,Tt){ft.roughness.value=Tt.roughness,ft.metalness.value=Tt.metalness,Tt.roughnessMap&&(ft.roughnessMap.value=Tt.roughnessMap),Tt.metalnessMap&&(ft.metalnessMap.value=Tt.metalnessMap),Tt.emissiveMap&&(ft.emissiveMap.value=Tt.emissiveMap),Tt.bumpMap&&(ft.bumpMap.value=Tt.bumpMap,ft.bumpScale.value=Tt.bumpScale,Tt.side===1&&(ft.bumpScale.value*=-1)),Tt.normalMap&&(ft.normalMap.value=Tt.normalMap,ft.normalScale.value.copy(Tt.normalScale),Tt.side===1&&ft.normalScale.value.negate()),Tt.displacementMap&&(ft.displacementMap.value=Tt.displacementMap,ft.displacementScale.value=Tt.displacementScale,ft.displacementBias.value=Tt.displacementBias),Tt.envMap&&(ft.envMapIntensity.value=Tt.envMapIntensity)}console.log("THREE.WebGLRenderer","98"),t=t||{};var rt=t.canvas!==void 0?t.canvas:document.createElementNS("http://www.w3.org/1999/xhtml","canvas"),xt=t.context!==void 0?t.context:null,gt=t.alpha!==void 0?t.alpha:!1,At=t.depth!==void 0?t.depth:!0,wt=t.stencil!==void 0?t.stencil:!0,Vt=t.antialias!==void 0?t.antialias:!1,Z=t.premultipliedAlpha!==void 0?t.premultipliedAlpha:!0,st=t.preserveDrawingBuffer!==void 0?t.preserveDrawingBuffer:!1,zt=t.powerPreference!==void 0?t.powerPreference:"default",ee=null,$t=null;this.domElement=rt,this.context=null,this.sortObjects=this.autoClearStencil=this.autoClearDepth=this.autoClearColor=this.autoClear=!0,this.clippingPlanes=[],this.localClippingEnabled=!1,this.gammaFactor=2,this.physicallyCorrectLights=this.gammaOutput=this.gammaInput=!1,this.toneMappingWhitePoint=this.toneMappingExposure=this.toneMapping=1,this.maxMorphTargets=8,this.maxMorphNormals=4;var qt=this,Te=!1,me=null,Ie=null,be=null,ae=-1,We=e=null,Qe=!1,fi=null,An=null,yn=new y,qi=new y,Vi=null,sn=0,Cn=rt.width,Ae=rt.height,ti=1,Ut=new y(0,0,Cn,Ae),Ye=new y(0,0,Cn,Ae),ei=!1,Wi=new E,Ce=new W,Xe=!1,ri=!1,Ci=new c,Ai=new u;try{gt={alpha:gt,depth:At,stencil:wt,antialias:Vt,premultipliedAlpha:Z,preserveDrawingBuffer:st,powerPreference:zt},rt.addEventListener("webglcontextlost",n,!1),rt.addEventListener("webglcontextrestored",s,!1);var ne=xt||rt.getContext("webgl",gt)||rt.getContext("experimental-webgl",gt);if(ne===null)throw rt.getContext("webgl")!==null?Error("Error creating WebGL context with your selected attributes."):Error("Error creating WebGL context.");ne.getShaderPrecisionFormat===void 0&&(ne.getShaderPrecisionFormat=function(){return{rangeMin:1,rangeMax:1,precision:1}})}catch(ft){console.error("THREE.WebGLRenderer: "+ft.message)}var ii,Ze,li,xn,Pn,Bs,La,Yh,Ra,Uo,Ml,Go,lo,Zh,Jh,er,In;i();var Ms=null;typeof navigator<"u"&&(Ms="xr"in navigator?new Pe(qt):new mi(qt)),this.vr=Ms;var Bu=new _e(qt,Ra,Ze.maxTextureSize);this.shadowMap=Bu,this.getContext=function(){return ne},this.getContextAttributes=function(){return ne.getContextAttributes()},this.forceContextLoss=function(){var ft=ii.get("WEBGL_lose_context");ft&&ft.loseContext()},this.forceContextRestore=function(){var ft=ii.get("WEBGL_lose_context");ft&&ft.restoreContext()},this.getPixelRatio=function(){return ti},this.setPixelRatio=function(ft){ft!==void 0&&(ti=ft,this.setSize(Cn,Ae,!1))},this.getSize=function(){return{width:Cn,height:Ae}},this.setSize=function(ft,Tt,mt){Ms.isPresenting()?console.warn("THREE.WebGLRenderer: Can't change size while VR device is presenting."):(Cn=ft,Ae=Tt,rt.width=ft*ti,rt.height=Tt*ti,mt!==!1&&(rt.style.width=ft+"px",rt.style.height=Tt+"px"),this.setViewport(0,0,ft,Tt))},this.getDrawingBufferSize=function(){return{width:Cn*ti,height:Ae*ti}},this.setDrawingBufferSize=function(ft,Tt,mt){Cn=ft,Ae=Tt,ti=mt,rt.width=ft*mt,rt.height=Tt*mt,this.setViewport(0,0,ft,Tt)},this.getCurrentViewport=function(){return yn},this.setViewport=function(ft,Tt,mt,Me){Ut.set(ft,Ae-Tt-Me,mt,Me),li.viewport(yn.copy(Ut).multiplyScalar(ti))},this.setScissor=function(ft,Tt,mt,Me){Ye.set(ft,Ae-Tt-Me,mt,Me),li.scissor(qi.copy(Ye).multiplyScalar(ti))},this.setScissorTest=function(ft){li.setScissorTest(ei=ft)},this.getClearColor=function(){return lo.getClearColor()},this.setClearColor=function(){lo.setClearColor.apply(lo,arguments)},this.getClearAlpha=function(){return lo.getClearAlpha()},this.setClearAlpha=function(){lo.setClearAlpha.apply(lo,arguments)},this.clear=function(ft,Tt,mt){var Me=0;(ft===void 0||ft)&&(Me|=16384),(Tt===void 0||Tt)&&(Me|=256),(mt===void 0||mt)&&(Me|=1024),ne.clear(Me)},this.clearColor=function(){this.clear(!0,!1,!1)},this.clearDepth=function(){this.clear(!1,!0,!1)},this.clearStencil=function(){this.clear(!1,!1,!0)},this.dispose=function(){rt.removeEventListener("webglcontextlost",n,!1),rt.removeEventListener("webglcontextrestored",s,!1),Ml.dispose(),Go.dispose(),Pn.dispose(),Ra.dispose(),Ms.dispose(),Ns.stop()},this.renderBufferImmediate=function(ft,Tt){li.initAttributes();var mt=Pn.get(ft);ft.hasPositions&&!mt.position&&(mt.position=ne.createBuffer()),ft.hasNormals&&!mt.normal&&(mt.normal=ne.createBuffer()),ft.hasUvs&&!mt.uv&&(mt.uv=ne.createBuffer()),ft.hasColors&&!mt.color&&(mt.color=ne.createBuffer()),Tt=Tt.getAttributes(),ft.hasPositions&&(ne.bindBuffer(34962,mt.position),ne.bufferData(34962,ft.positionArray,35048),li.enableAttribute(Tt.position),ne.vertexAttribPointer(Tt.position,3,5126,!1,0,0)),ft.hasNormals&&(ne.bindBuffer(34962,mt.normal),ne.bufferData(34962,ft.normalArray,35048),li.enableAttribute(Tt.normal),ne.vertexAttribPointer(Tt.normal,3,5126,!1,0,0)),ft.hasUvs&&(ne.bindBuffer(34962,mt.uv),ne.bufferData(34962,ft.uvArray,35048),li.enableAttribute(Tt.uv),ne.vertexAttribPointer(Tt.uv,2,5126,!1,0,0)),ft.hasColors&&(ne.bindBuffer(34962,mt.color),ne.bufferData(34962,ft.colorArray,35048),li.enableAttribute(Tt.color),ne.vertexAttribPointer(Tt.color,3,5126,!1,0,0)),li.disableUnusedAttributes(),ne.drawArrays(4,0,ft.count),ft.count=0},this.renderBufferDirect=function(ft,Tt,mt,Me,De,Ve){var Se=De.isMesh&&0>De.normalMatrix.determinant();li.setMaterial(Me,Se);var Ke=B(ft,Tt,Me,De),Li=!1;(e!==mt.id||We!==Ke.id||Qe!==(Me.wireframe===!0))&&(e=mt.id,We=Ke.id,Qe=Me.wireframe===!0,Li=!0),De.morphTargetInfluences&&(Zh.update(De,mt,Me,Ke),Li=!0),Se=mt.index;var $i=mt.attributes.position;if(Tt=1,Me.wireframe===!0&&(Se=Yh.getWireframeAttribute(mt),Tt=2),ft=Jh,Se!==null){var ve=La.get(Se);ft=er,ft.setIndex(ve)}if(Li){if(mt&&mt.isInstancedBufferGeometry&!Ze.isWebGL2&&ii.get("ANGLE_instanced_arrays")===null)console.error("THREE.WebGLRenderer.setupVertexAttributes: using THREE.InstancedBufferGeometry but hardware does not support extension ANGLE_instanced_arrays.");else{li.initAttributes(),Li=mt.attributes,Ke=Ke.getAttributes();var Tr=Me.defaultAttributeValues;for(ir in Ke){var Nn=Ke[ir];if(0<=Nn){var an=Li[ir];if(an!==void 0){var dr=an.normalized,$h=an.itemSize,Ss=La.get(an);if(Ss!==void 0){var Kh=Ss.buffer,hh=Ss.type;if(Ss=Ss.bytesPerElement,an.isInterleavedBufferAttribute){var Ia=an.data,Nu=Ia.stride;an=an.offset,Ia&&Ia.isInstancedInterleavedBuffer?(li.enableAttributeAndDivisor(Nn,Ia.meshPerAttribute),mt.maxInstancedCount===void 0&&(mt.maxInstancedCount=Ia.meshPerAttribute*Ia.count)):li.enableAttribute(Nn),ne.bindBuffer(34962,Kh),ne.vertexAttribPointer(Nn,$h,hh,dr,Nu*Ss,an*Ss)}else an.isInstancedBufferAttribute?(li.enableAttributeAndDivisor(Nn,an.meshPerAttribute),mt.maxInstancedCount===void 0&&(mt.maxInstancedCount=an.meshPerAttribute*an.count)):li.enableAttribute(Nn),ne.bindBuffer(34962,Kh),ne.vertexAttribPointer(Nn,$h,hh,dr,0,0)}}else if(Tr!==void 0&&(dr=Tr[ir],dr!==void 0))switch(dr.length){case 2:ne.vertexAttrib2fv(Nn,dr);break;case 3:ne.vertexAttrib3fv(Nn,dr);break;case 4:ne.vertexAttrib4fv(Nn,dr);break;default:ne.vertexAttrib1fv(Nn,dr)}}}li.disableUnusedAttributes()}Se!==null&&ne.bindBuffer(34963,ve.buffer)}ve=1/0,Se!==null?ve=Se.count:$i!==void 0&&(ve=$i.count),Se=mt.drawRange.start*Tt,$i=Ve!==null?Ve.start*Tt:0;var ir=Math.max(Se,$i);if(Ve=Math.max(0,Math.min(ve,Se+mt.drawRange.count*Tt,$i+(Ve!==null?Ve.count*Tt:1/0))-1-ir+1),Ve!==0){if(De.isMesh)if(Me.wireframe===!0)li.setLineWidth(Me.wireframeLinewidth*(Ie===null?ti:1)),ft.setMode(1);else switch(De.drawMode){case 0:ft.setMode(4);break;case 1:ft.setMode(5);break;case 2:ft.setMode(6)}else De.isLine?(Me=Me.linewidth,Me===void 0&&(Me=1),li.setLineWidth(Me*(Ie===null?ti:1)),De.isLineSegments?ft.setMode(1):De.isLineLoop?ft.setMode(2):ft.setMode(3)):De.isPoints?ft.setMode(0):De.isSprite&&ft.setMode(4);mt&&mt.isInstancedBufferGeometry?0<mt.maxInstancedCount&&ft.renderInstances(mt,ir,Ve):ft.render(ir,Ve)}},this.compile=function(ft,Tt){$t=Go.get(ft,Tt),$t.init(),ft.traverse(function(mt){mt.isLight&&($t.pushLight(mt),mt.castShadow&&$t.pushShadow(mt))}),$t.setupLights(Tt),ft.traverse(function(mt){if(mt.material)if(Array.isArray(mt.material))for(var Me=0;Me<mt.material.length;Me++)L(mt.material[Me],ft.fog,mt);else L(mt.material,ft.fog,mt)})};var Oa=null,Ns=new T;Ns.setAnimationLoop(function(ft){Ms.isPresenting()||Oa&&Oa(ft)}),typeof window<"u"&&Ns.setContext(window),this.setAnimationLoop=function(ft){Oa=ft,Ms.setAnimationLoop(ft),Ns.start()},this.render=function(ft,Tt,mt,Me){if(!Tt||!Tt.isCamera)console.error("THREE.WebGLRenderer.render: camera is not an instance of THREE.Camera.");else if(!Te){We=e=null,Qe=!1,ae=-1,fi=null,ft.autoUpdate===!0&&ft.updateMatrixWorld(),Tt.parent===null&&Tt.updateMatrixWorld(),Ms.enabled&&(Tt=Ms.getCamera(Tt)),$t=Go.get(ft,Tt),$t.init(),ft.onBeforeRender(qt,ft,Tt,mt),Ci.multiplyMatrices(Tt.projectionMatrix,Tt.matrixWorldInverse),Wi.setFromMatrix(Ci),ri=this.localClippingEnabled,Xe=Ce.init(this.clippingPlanes,ri,Tt),ee=Ml.get(ft,Tt),ee.init(),v(ft,Tt,qt.sortObjects),qt.sortObjects===!0&&ee.sort(),Xe&&Ce.beginShadows(),Bu.render($t.state.shadowsArray,ft,Tt),$t.setupLights(Tt),Xe&&Ce.endShadows(),this.info.autoReset&&this.info.reset(),mt===void 0&&(mt=null),this.setRenderTarget(mt),lo.render(ee,ft,Tt,Me),Me=ee.opaque;var De=ee.transparent;if(ft.overrideMaterial){var Ve=ft.overrideMaterial;Me.length&&w(Me,ft,Tt,Ve),De.length&&w(De,ft,Tt,Ve)}else Me.length&&w(Me,ft,Tt),De.length&&w(De,ft,Tt);mt&&Bs.updateRenderTargetMipmap(mt),li.buffers.depth.setTest(!0),li.buffers.depth.setMask(!0),li.buffers.color.setMask(!0),li.setPolygonOffset(!1),ft.onAfterRender(qt,ft,Tt),Ms.enabled&&Ms.submitFrame(),$t=ee=null}},this.allocTextureUnit=function(){var ft=sn;return ft>=Ze.maxTextures&&console.warn("THREE.WebGLRenderer: Trying to use "+ft+" texture units while this GPU supports only "+Ze.maxTextures),sn+=1,ft},this.setTexture2D=function(){var ft=!1;return function(Tt,mt){Tt&&Tt.isWebGLRenderTarget&&(ft||(console.warn("THREE.WebGLRenderer.setTexture2D: don't use render targets as textures. Use their .texture property instead."),ft=!0),Tt=Tt.texture),Bs.setTexture2D(Tt,mt)}}(),this.setTexture3D=function(){return function(ft,Tt){Bs.setTexture3D(ft,Tt)}}(),this.setTexture=function(){var ft=!1;return function(Tt,mt){ft||(console.warn("THREE.WebGLRenderer: .setTexture is deprecated, use setTexture2D instead."),ft=!0),Bs.setTexture2D(Tt,mt)}}(),this.setTextureCube=function(){var ft=!1;return function(Tt,mt){Tt&&Tt.isWebGLRenderTargetCube&&(ft||(console.warn("THREE.WebGLRenderer.setTextureCube: don't use cube render targets as textures. Use their .texture property instead."),ft=!0),Tt=Tt.texture),Tt&&Tt.isCubeTexture||Array.isArray(Tt.image)&&Tt.image.length===6?Bs.setTextureCube(Tt,mt):Bs.setTextureCubeDynamic(Tt,mt)}}(),this.setFramebuffer=function(ft){me=ft},this.getRenderTarget=function(){return Ie},this.setRenderTarget=function(ft){(Ie=ft)&&Pn.get(ft).__webglFramebuffer===void 0&&Bs.setupRenderTarget(ft);var Tt=me,mt=!1;ft?(Tt=Pn.get(ft).__webglFramebuffer,ft.isWebGLRenderTargetCube&&(Tt=Tt[ft.activeCubeFace],mt=!0),yn.copy(ft.viewport),qi.copy(ft.scissor),Vi=ft.scissorTest):(yn.copy(Ut).multiplyScalar(ti),qi.copy(Ye).multiplyScalar(ti),Vi=ei),be!==Tt&&(ne.bindFramebuffer(36160,Tt),be=Tt),li.viewport(yn),li.scissor(qi),li.setScissorTest(Vi),mt&&(mt=Pn.get(ft.texture),ne.framebufferTexture2D(36160,36064,34069+ft.activeCubeFace,mt.__webglTexture,ft.activeMipMapLevel))},this.readRenderTargetPixels=function(ft,Tt,mt,Me,De,Ve){if(ft&&ft.isWebGLRenderTarget){var Se=Pn.get(ft).__webglFramebuffer;if(Se){var Ke=!1;Se!==be&&(ne.bindFramebuffer(36160,Se),Ke=!0);try{var Li=ft.texture,$i=Li.format,ve=Li.type;$i!==1023&&In.convert($i)!==ne.getParameter(35739)?console.error("THREE.WebGLRenderer.readRenderTargetPixels: renderTarget is not in RGBA or implementation defined format."):ve===1009||In.convert(ve)===ne.getParameter(35738)||ve===1015&&(Ze.isWebGL2||ii.get("OES_texture_float")||ii.get("WEBGL_color_buffer_float"))||ve===1016&&(Ze.isWebGL2?ii.get("EXT_color_buffer_float"):ii.get("EXT_color_buffer_half_float"))?ne.checkFramebufferStatus(36160)===36053?0<=Tt&&Tt<=ft.width-Me&&0<=mt&&mt<=ft.height-De&&ne.readPixels(Tt,mt,Me,De,In.convert($i),In.convert(ve),Ve):console.error("THREE.WebGLRenderer.readRenderTargetPixels: readPixels from renderTarget failed. Framebuffer not complete."):console.error("THREE.WebGLRenderer.readRenderTargetPixels: renderTarget is not in UnsignedByteType or implementation defined type.")}finally{Ke&&ne.bindFramebuffer(36160,be)}}}else console.error("THREE.WebGLRenderer.readRenderTargetPixels: renderTarget is not THREE.WebGLRenderTarget.")},this.copyFramebufferToTexture=function(ft,Tt,mt){var Me=Tt.image.width,De=Tt.image.height,Ve=In.convert(Tt.format);this.setTexture2D(Tt,0),ne.copyTexImage2D(3553,mt||0,Ve,ft.x,ft.y,Me,De,0)},this.copyTextureToTexture=function(ft,Tt,mt,Me){var De=Tt.image.width,Ve=Tt.image.height,Se=In.convert(mt.format),Ke=In.convert(mt.type);this.setTexture2D(mt,0),Tt.isDataTexture?ne.texSubImage2D(3553,Me||0,ft.x,ft.y,De,Ve,Se,Ke,Tt.image.data):ne.texSubImage2D(3553,Me||0,ft.x,ft.y,Se,Ke,Tt.image)}}function Le(t,e){this.name="",this.color=new P(t),this.density=e!==void 0?e:25e-5}function Sn(t,e,i){this.name="",this.color=new P(t),this.near=e!==void 0?e:1,this.far=i!==void 0?i:1e3}function Xn(){F.call(this),this.type="Scene",this.overrideMaterial=this.fog=this.background=null,this.autoUpdate=!0}function zi(t,e){this.array=t,this.stride=e,this.count=t!==void 0?t.length/e:0,this.dynamic=!1,this.updateRange={offset:0,count:-1},this.version=0}function ki(t,e,i,n){this.data=t,this.itemSize=e,this.offset=i,this.normalized=n===!0}function Hi(t){Yt.call(this),this.type="SpriteMaterial",this.color=new P(16777215),this.map=null,this.rotation=0,this.sizeAttenuation=!0,this.lights=!1,this.transparent=!0,this.setValues(t)}function nn(t){if(F.call(this),this.type="Sprite",Pa===void 0){Pa=new Ft;var e=new Float32Array([-.5,-.5,0,0,0,.5,-.5,0,1,0,.5,.5,0,1,1,-.5,.5,0,0,1]);e=new zi(e,5),Pa.setIndex([0,1,2,0,2,3]),Pa.addAttribute("position",new ki(e,3,0,!1)),Pa.addAttribute("uv",new ki(e,2,3,!1))}this.geometry=Pa,this.material=t!==void 0?t:new Hi,this.center=new o(.5,.5)}function rn(){F.call(this),this.type="LOD",Object.defineProperties(this,{levels:{enumerable:!0,value:[]}})}function un(t,e){if(t=t||[],this.bones=t.slice(0),this.boneMatrices=new Float32Array(16*this.bones.length),e===void 0)this.calculateInverses();else if(this.bones.length===e.length)this.boneInverses=e.slice(0);else for(console.warn("THREE.Skeleton boneInverses is the wrong length."),this.boneInverses=[],t=0,e=this.bones.length;t<e;t++)this.boneInverses.push(new c)}function cn(){F.call(this),this.type="Bone"}function Gi(t,e){di.call(this,t,e),this.type="SkinnedMesh",this.bindMode="attached",this.bindMatrix=new c,this.bindMatrixInverse=new c,t=this.initBones(),t=new un(t),this.bind(t,this.matrixWorld),this.normalizeSkinWeights()}function Bi(t){Yt.call(this),this.type="LineBasicMaterial",this.color=new P(16777215),this.linewidth=1,this.linejoin=this.linecap="round",this.lights=!1,this.setValues(t)}function ji(t,e,i){i===1&&console.error("THREE.Line: parameter THREE.LinePieces no longer supported. Use THREE.LineSegments instead."),F.call(this),this.type="Line",this.geometry=t!==void 0?t:new Ft,this.material=e!==void 0?e:new Bi({color:16777215*Math.random()})}function gi(t,e){ji.call(this,t,e),this.type="LineSegments"}function cs(t,e){ji.call(this,t,e),this.type="LineLoop"}function Fn(t){Yt.call(this),this.type="PointsMaterial",this.color=new P(16777215),this.map=null,this.size=1,this.sizeAttenuation=!0,this.lights=this.morphTargets=!1,this.setValues(t)}function oa(t,e){F.call(this),this.type="Points",this.geometry=t!==void 0?t:new Ft,this.material=e!==void 0?e:new Fn({color:16777215*Math.random()})}function Rh(t,e,i,n,s,a,f,p,v){_.call(this,t,e,i,n,s,a,f,p,v),this.generateMipmaps=!1}function qs(t,e,i,n,s,a,f,p,v,w,C,L){_.call(this,null,a,f,p,v,w,n,s,C,L),this.image={width:e,height:i},this.mipmaps=t,this.generateMipmaps=this.flipY=!1}function Za(t,e,i,n,s,a,f,p,v){_.call(this,t,e,i,n,s,a,f,p,v),this.needsUpdate=!0}function Ja(t,e,i,n,s,a,f,p,v,w){if(w=w!==void 0?w:1026,w!==1026&&w!==1027)throw Error("DepthTexture format must be either THREE.DepthFormat or THREE.DepthStencilFormat");i===void 0&&w===1026&&(i=1012),i===void 0&&w===1027&&(i=1020),_.call(this,null,n,s,a,f,p,w,i,v),this.image={width:t,height:e},this.magFilter=f!==void 0?f:1003,this.minFilter=p!==void 0?p:1003,this.generateMipmaps=this.flipY=!1}function aa(t){Ft.call(this),this.type="WireframeGeometry";var e=[],i,n,s,a=[0,0],f={},p=["a","b","c"];if(t&&t.isGeometry){var v=t.faces,w=0;for(n=v.length;w<n;w++){var C=v[w];for(i=0;3>i;i++){var L=C[p[i]],B=C[p[(i+1)%3]];a[0]=Math.min(L,B),a[1]=Math.max(L,B),L=a[0]+","+a[1],f[L]===void 0&&(f[L]={index1:a[0],index2:a[1]})}}for(L in f)w=f[L],p=t.vertices[w.index1],e.push(p.x,p.y,p.z),p=t.vertices[w.index2],e.push(p.x,p.y,p.z)}else if(t&&t.isBufferGeometry)if(p=new u,t.index!==null){v=t.attributes.position,C=t.index;var H=t.groups;for(H.length===0&&(H=[{start:0,count:C.count,materialIndex:0}]),t=0,s=H.length;t<s;++t)for(w=H[t],i=w.start,n=w.count,w=i,n=i+n;w<n;w+=3)for(i=0;3>i;i++)L=C.getX(w+i),B=C.getX(w+(i+1)%3),a[0]=Math.min(L,B),a[1]=Math.max(L,B),L=a[0]+","+a[1],f[L]===void 0&&(f[L]={index1:a[0],index2:a[1]});for(L in f)w=f[L],p.fromBufferAttribute(v,w.index1),e.push(p.x,p.y,p.z),p.fromBufferAttribute(v,w.index2),e.push(p.x,p.y,p.z)}else for(v=t.attributes.position,w=0,n=v.count/3;w<n;w++)for(i=0;3>i;i++)f=3*w+i,p.fromBufferAttribute(v,f),e.push(p.x,p.y,p.z),f=3*w+(i+1)%3,p.fromBufferAttribute(v,f),e.push(p.x,p.y,p.z);this.addAttribute("position",new Et(e,3))}function $a(t,e,i){j.call(this),this.type="ParametricGeometry",this.parameters={func:t,slices:e,stacks:i},this.fromBufferGeometry(new la(t,e,i)),this.mergeVertices()}function la(t,e,i){Ft.call(this),this.type="ParametricBufferGeometry",this.parameters={func:t,slices:e,stacks:i};var n=[],s=[],a=[],f=[],p=new u,v=new u,w=new u,C=new u,L=new u,B,H;3>t.length&&console.error("THREE.ParametricGeometry: Function must now modify a Vector3 as third parameter.");var q=e+1;for(B=0;B<=i;B++){var K=B/i;for(H=0;H<=e;H++){var rt=H/e;t(rt,K,v),s.push(v.x,v.y,v.z),0<=rt-1e-5?(t(rt-1e-5,K,w),C.subVectors(v,w)):(t(rt+1e-5,K,w),C.subVectors(w,v)),0<=K-1e-5?(t(rt,K-1e-5,w),L.subVectors(v,w)):(t(rt,K+1e-5,w),L.subVectors(w,v)),p.crossVectors(C,L).normalize(),a.push(p.x,p.y,p.z),f.push(rt,K)}}for(B=0;B<i;B++)for(H=0;H<e;H++)t=B*q+H+1,p=(B+1)*q+H+1,v=(B+1)*q+H,n.push(B*q+H,t,v),n.push(t,p,v);this.setIndex(n),this.addAttribute("position",new Et(s,3)),this.addAttribute("normal",new Et(a,3)),this.addAttribute("uv",new Et(f,2))}function Xi(t,e,i,n){j.call(this),this.type="PolyhedronGeometry",this.parameters={vertices:t,indices:e,radius:i,detail:n},this.fromBufferGeometry(new xi(t,e,i,n)),this.mergeVertices()}function xi(t,e,i,n){function s(w){p.push(w.x,w.y,w.z)}function a(w,C){w*=3,C.x=t[w+0],C.y=t[w+1],C.z=t[w+2]}function f(w,C,L,B){0>B&&w.x===1&&(v[C]=w.x-1),L.x===0&&L.z===0&&(v[C]=B/2/Math.PI+.5)}Ft.call(this),this.type="PolyhedronBufferGeometry",this.parameters={vertices:t,indices:e,radius:i,detail:n},i=i||1,n=n||0;var p=[],v=[];(function(w){for(var C=new u,L=new u,B=new u,H=0;H<e.length;H+=3){a(e[H+0],C),a(e[H+1],L),a(e[H+2],B);var q,K,rt=C,xt=L,gt=B,At=Math.pow(2,w),wt=[];for(K=0;K<=At;K++){wt[K]=[];var Vt=rt.clone().lerp(gt,K/At),Z=xt.clone().lerp(gt,K/At),st=At-K;for(q=0;q<=st;q++)wt[K][q]=q===0&&K===At?Vt:Vt.clone().lerp(Z,q/st)}for(K=0;K<At;K++)for(q=0;q<2*(At-K)-1;q++)rt=Math.floor(q/2),q%2===0?(s(wt[K][rt+1]),s(wt[K+1][rt]),s(wt[K][rt])):(s(wt[K][rt+1]),s(wt[K+1][rt+1]),s(wt[K+1][rt]))}})(n),function(w){for(var C=new u,L=0;L<p.length;L+=3)C.x=p[L+0],C.y=p[L+1],C.z=p[L+2],C.normalize().multiplyScalar(w),p[L+0]=C.x,p[L+1]=C.y,p[L+2]=C.z}(i),function(){for(var w=new u,C=0;C<p.length;C+=3)w.x=p[C+0],w.y=p[C+1],w.z=p[C+2],v.push(Math.atan2(w.z,-w.x)/2/Math.PI+.5,1-(Math.atan2(-w.y,Math.sqrt(w.x*w.x+w.z*w.z))/Math.PI+.5));w=new u,C=new u;for(var L=new u,B=new u,H=new o,q=new o,K=new o,rt=0,xt=0;rt<p.length;rt+=9,xt+=6){w.set(p[rt+0],p[rt+1],p[rt+2]),C.set(p[rt+3],p[rt+4],p[rt+5]),L.set(p[rt+6],p[rt+7],p[rt+8]),H.set(v[xt+0],v[xt+1]),q.set(v[xt+2],v[xt+3]),K.set(v[xt+4],v[xt+5]),B.copy(w).add(C).add(L).divideScalar(3);var gt=Math.atan2(B.z,-B.x);f(H,xt+0,w,gt),f(q,xt+2,C,gt),f(K,xt+4,L,gt)}for(w=0;w<v.length;w+=6)C=v[w+0],L=v[w+2],B=v[w+4],H=Math.min(C,L,B),.9<Math.max(C,L,B)&&.1>H&&(.2>C&&(v[w+0]+=1),.2>L&&(v[w+2]+=1),.2>B&&(v[w+4]+=1))}(),this.addAttribute("position",new Et(p,3)),this.addAttribute("normal",new Et(p.slice(),3)),this.addAttribute("uv",new Et(v,2)),n===0?this.computeVertexNormals():this.normalizeNormals()}function Ka(t,e){j.call(this),this.type="TetrahedronGeometry",this.parameters={radius:t,detail:e},this.fromBufferGeometry(new ha(t,e)),this.mergeVertices()}function ha(t,e){xi.call(this,[1,1,1,-1,-1,1,-1,1,-1,1,-1,-1],[2,1,0,0,3,2,1,3,0,2,3,1],t,e),this.type="TetrahedronBufferGeometry",this.parameters={radius:t,detail:e}}function Qa(t,e){j.call(this),this.type="OctahedronGeometry",this.parameters={radius:t,detail:e},this.fromBufferGeometry(new _o(t,e)),this.mergeVertices()}function _o(t,e){xi.call(this,[1,0,0,-1,0,0,0,1,0,0,-1,0,0,0,1,0,0,-1],[0,2,4,0,4,3,0,3,5,0,5,2,1,2,5,1,5,3,1,3,4,1,4,2],t,e),this.type="OctahedronBufferGeometry",this.parameters={radius:t,detail:e}}function tl(t,e){j.call(this),this.type="IcosahedronGeometry",this.parameters={radius:t,detail:e},this.fromBufferGeometry(new ua(t,e)),this.mergeVertices()}function ua(t,e){var i=(1+Math.sqrt(5))/2;xi.call(this,[-1,i,0,1,i,0,-1,-i,0,1,-i,0,0,-1,i,0,1,i,0,-1,-i,0,1,-i,i,0,-1,i,0,1,-i,0,-1,-i,0,1],[0,11,5,0,5,1,0,1,7,0,7,10,0,10,11,1,5,9,5,11,4,11,10,2,10,7,6,7,1,8,3,9,4,3,4,2,3,2,6,3,6,8,3,8,9,4,9,5,2,4,11,6,2,10,8,6,7,9,8,1],t,e),this.type="IcosahedronBufferGeometry",this.parameters={radius:t,detail:e}}function ca(t,e){j.call(this),this.type="DodecahedronGeometry",this.parameters={radius:t,detail:e},this.fromBufferGeometry(new fa(t,e)),this.mergeVertices()}function fa(t,e){var i=(1+Math.sqrt(5))/2,n=1/i;xi.call(this,[-1,-1,-1,-1,-1,1,-1,1,-1,-1,1,1,1,-1,-1,1,-1,1,1,1,-1,1,1,1,0,-n,-i,0,-n,i,0,n,-i,0,n,i,-n,-i,0,-n,i,0,n,-i,0,n,i,0,-i,0,-n,i,0,-n,-i,0,n,i,0,n],[3,11,7,3,7,15,3,15,13,7,19,17,7,17,6,7,6,15,17,4,8,17,8,10,17,10,6,8,0,16,8,16,2,8,2,10,0,12,1,0,1,18,0,18,16,6,10,2,6,2,13,6,13,15,2,16,18,2,18,3,2,3,13,18,1,9,18,9,11,18,11,3,4,14,12,4,12,0,4,0,8,11,9,5,11,5,19,11,19,7,19,5,14,19,14,4,19,4,17,1,12,14,1,14,5,1,5,9],t,e),this.type="DodecahedronBufferGeometry",this.parameters={radius:t,detail:e}}function gn(t,e,i,n,s,a){j.call(this),this.type="TubeGeometry",this.parameters={path:t,tubularSegments:e,radius:i,radialSegments:n,closed:s},a!==void 0&&console.warn("THREE.TubeGeometry: taper has been removed."),t=new Ys(t,e,i,n,s),this.tangents=t.tangents,this.normals=t.normals,this.binormals=t.binormals,this.fromBufferGeometry(t),this.mergeVertices()}function Ys(t,e,i,n,s){function a(xt){C=t.getPointAt(xt/e,C);var gt=f.normals[xt];for(xt=f.binormals[xt],B=0;B<=n;B++){var At=B/n*Math.PI*2,wt=Math.sin(At);At=-Math.cos(At),v.x=At*gt.x+wt*xt.x,v.y=At*gt.y+wt*xt.y,v.z=At*gt.z+wt*xt.z,v.normalize(),q.push(v.x,v.y,v.z),p.x=C.x+i*v.x,p.y=C.y+i*v.y,p.z=C.z+i*v.z,H.push(p.x,p.y,p.z)}}Ft.call(this),this.type="TubeBufferGeometry",this.parameters={path:t,tubularSegments:e,radius:i,radialSegments:n,closed:s},e=e||64,i=i||1,n=n||8,s=s||!1;var f=t.computeFrenetFrames(e,s);this.tangents=f.tangents,this.normals=f.normals,this.binormals=f.binormals;var p=new u,v=new u,w=new o,C=new u,L,B,H=[],q=[],K=[],rt=[];for(L=0;L<e;L++)a(L);for(a(s===!1?e:0),L=0;L<=e;L++)for(B=0;B<=n;B++)w.x=L/e,w.y=B/n,K.push(w.x,w.y);(function(){for(B=1;B<=e;B++)for(L=1;L<=n;L++){var xt=(n+1)*B+(L-1),gt=(n+1)*B+L,At=(n+1)*(B-1)+L;rt.push((n+1)*(B-1)+(L-1),xt,At),rt.push(xt,gt,At)}})(),this.setIndex(rt),this.addAttribute("position",new Et(H,3)),this.addAttribute("normal",new Et(q,3)),this.addAttribute("uv",new Et(K,2))}function Zr(t,e,i,n,s,a,f){j.call(this),this.type="TorusKnotGeometry",this.parameters={radius:t,tube:e,tubularSegments:i,radialSegments:n,p:s,q:a},f!==void 0&&console.warn("THREE.TorusKnotGeometry: heightScale has been deprecated. Use .scale( x, y, z ) instead."),this.fromBufferGeometry(new yo(t,e,i,n,s,a)),this.mergeVertices()}function yo(t,e,i,n,s,a){function f(Z,st,zt,ee,$t){var qt=Math.sin(Z);st=zt/st*Z,zt=Math.cos(st),$t.x=ee*(2+zt)*.5*Math.cos(Z),$t.y=ee*(2+zt)*qt*.5,$t.z=ee*Math.sin(st)*.5}Ft.call(this),this.type="TorusKnotBufferGeometry",this.parameters={radius:t,tube:e,tubularSegments:i,radialSegments:n,p:s,q:a},t=t||1,e=e||.4,i=Math.floor(i)||64,n=Math.floor(n)||8,s=s||2,a=a||3;var p=[],v=[],w=[],C=[],L,B=new u,H=new u,q=new u,K=new u,rt=new u,xt=new u,gt=new u;for(L=0;L<=i;++L){var At=L/i*s*Math.PI*2;for(f(At,s,a,t,q),f(At+.01,s,a,t,K),xt.subVectors(K,q),gt.addVectors(K,q),rt.crossVectors(xt,gt),gt.crossVectors(rt,xt),rt.normalize(),gt.normalize(),At=0;At<=n;++At){var wt=At/n*Math.PI*2,Vt=-e*Math.cos(wt);wt=e*Math.sin(wt),B.x=q.x+(Vt*gt.x+wt*rt.x),B.y=q.y+(Vt*gt.y+wt*rt.y),B.z=q.z+(Vt*gt.z+wt*rt.z),v.push(B.x,B.y,B.z),H.subVectors(B,q).normalize(),w.push(H.x,H.y,H.z),C.push(L/i),C.push(At/n)}}for(At=1;At<=i;At++)for(L=1;L<=n;L++)t=(n+1)*At+(L-1),e=(n+1)*At+L,s=(n+1)*(At-1)+L,p.push((n+1)*(At-1)+(L-1),t,s),p.push(t,e,s);this.setIndex(p),this.addAttribute("position",new Et(v,3)),this.addAttribute("normal",new Et(w,3)),this.addAttribute("uv",new Et(C,2))}function xo(t,e,i,n,s){j.call(this),this.type="TorusGeometry",this.parameters={radius:t,tube:e,radialSegments:i,tubularSegments:n,arc:s},this.fromBufferGeometry(new Un(t,e,i,n,s)),this.mergeVertices()}function Un(t,e,i,n,s){Ft.call(this),this.type="TorusBufferGeometry",this.parameters={radius:t,tube:e,radialSegments:i,tubularSegments:n,arc:s},t=t||1,e=e||.4,i=Math.floor(i)||8,n=Math.floor(n)||6,s=s||2*Math.PI;var a=[],f=[],p=[],v=[],w=new u,C=new u,L=new u,B,H;for(B=0;B<=i;B++)for(H=0;H<=n;H++){var q=H/n*s,K=B/i*Math.PI*2;C.x=(t+e*Math.cos(K))*Math.cos(q),C.y=(t+e*Math.cos(K))*Math.sin(q),C.z=e*Math.sin(K),f.push(C.x,C.y,C.z),w.x=t*Math.cos(q),w.y=t*Math.sin(q),L.subVectors(C,w).normalize(),p.push(L.x,L.y,L.z),v.push(H/n),v.push(B/i)}for(B=1;B<=i;B++)for(H=1;H<=n;H++)t=(n+1)*(B-1)+H-1,e=(n+1)*(B-1)+H,s=(n+1)*B+H,a.push((n+1)*B+H-1,t,s),a.push(t,e,s);this.setIndex(a),this.addAttribute("position",new Et(f,3)),this.addAttribute("normal",new Et(p,3)),this.addAttribute("uv",new Et(v,2))}function Oh(t,e,i,n,s){for(var a,f=0,p=e,v=i-n;p<i;p+=n)f+=(t[v]-t[p])*(t[p+1]+t[v+1]),v=p;if(s===0<f)for(s=e;s<i;s+=n)a=Xl(s,t[s],t[s+1],a);else for(s=i-n;s>=e;s-=n)a=Xl(s,t[s],t[s+1],a);return a&&wo(a,a.next)&&(Yi(a),a=a.next),a}function pa(t,e){if(!t)return t;e||(e=t);do{var i=!1;if(t.steiner||!wo(t,t.next)&&Ji(t.prev,t,t.next)!==0)t=t.next;else{if(Yi(t),t=e=t.prev,t===t.next)break;i=!0}}while(i||t!==e);return e}function da(t,e,i,n,s,a,f){if(t){if(!f&&a){var p=t,v=p;do v.z===null&&(v.z=Wl(v.x,v.y,n,s,a)),v.prevZ=v.prev,v=v.nextZ=v.next;while(v!==p);v.prevZ.nextZ=null,v.prevZ=null,p=v;var w,C,L,B,H=1;do{v=p;var q=p=null;for(C=0;v;){C++;var K=v;for(w=L=0;w<H&&(L++,K=K.nextZ,K);w++);for(B=H;0<L||0<B&&K;)L!==0&&(B===0||!K||v.z<=K.z)?(w=v,v=v.nextZ,L--):(w=K,K=K.nextZ,B--),q?q.nextZ=w:p=w,w.prevZ=q,q=w;v=K}q.nextZ=null,H*=2}while(1<C)}for(p=t;t.prev!==t.next;){if(v=t.prev,K=t.next,a)t:{q=t,B=n;var rt=s,xt=a;if(C=q.prev,L=q,H=q.next,0<=Ji(C,L,H))q=!1;else{var gt=C.x>L.x?C.x>H.x?C.x:H.x:L.x>H.x?L.x:H.x,At=C.y>L.y?C.y>H.y?C.y:H.y:L.y>H.y?L.y:H.y;for(w=Wl(C.x<L.x?C.x<H.x?C.x:H.x:L.x<H.x?L.x:H.x,C.y<L.y?C.y<H.y?C.y:H.y:L.y<H.y?L.y:H.y,B,rt,xt),B=Wl(gt,At,B,rt,xt),rt=q.nextZ;rt&&rt.z<=B;){if(rt!==q.prev&&rt!==q.next&&jl(C.x,C.y,L.x,L.y,H.x,H.y,rt.x,rt.y)&&0<=Ji(rt.prev,rt,rt.next)){q=!1;break t}rt=rt.nextZ}for(rt=q.prevZ;rt&&rt.z>=w;){if(rt!==q.prev&&rt!==q.next&&jl(C.x,C.y,L.x,L.y,H.x,H.y,rt.x,rt.y)&&0<=Ji(rt.prev,rt,rt.next)){q=!1;break t}rt=rt.prevZ}q=!0}}else t:if(q=t,C=q.prev,L=q,H=q.next,0<=Ji(C,L,H))q=!1;else{for(w=q.next.next;w!==q.prev;){if(jl(C.x,C.y,L.x,L.y,H.x,H.y,w.x,w.y)&&0<=Ji(w.prev,w,w.next)){q=!1;break t}w=w.next}q=!0}if(q)e.push(v.i/i),e.push(t.i/i),e.push(K.i/i),Yi(t),p=t=K.next;else if(t=K,t===p){if(!f)da(pa(t),e,i,n,s,a,1);else if(f===1){f=e,p=i,v=t;do K=v.prev,q=v.next.next,!wo(K,q)&&Ih(K,v,v.next,q)&&Rr(K,q)&&Rr(q,K)&&(f.push(K.i/p),f.push(v.i/p),f.push(q.i/p),Yi(v),Yi(v.next),v=t=q),v=v.next;while(v!==t);t=v,da(t,e,i,n,s,a,2)}else if(f===2)t:{f=t;do{for(p=f.next.next;p!==f.prev;){if(v=f.i!==p.i){if(v=f,K=p,q=v.next.i!==K.i&&v.prev.i!==K.i){e:{q=v;do{if(q.i!==v.i&&q.next.i!==v.i&&q.i!==K.i&&q.next.i!==K.i&&Ih(q,q.next,v,K)){q=!0;break e}q=q.next}while(q!==v);q=!1}q=!q}if(q=q&&Rr(v,K)&&Rr(K,v)){q=v,C=!1,L=(v.x+K.x)/2,K=(v.y+K.y)/2;do q.y>K!=q.next.y>K&&q.next.y!==q.y&&L<(q.next.x-q.x)*(K-q.y)/(q.next.y-q.y)+q.x&&(C=!C),q=q.next;while(q!==v);q=C}v=q}if(v){t=el(f,p),f=pa(f,f.next),t=pa(t,t.next),da(f,e,i,n,s,a),da(t,e,i,n,s,a);break t}p=p.next}f=f.next}while(f!==t)}break}}}}function xu(t,e){return t.x-e.x}function wu(t,e){var i=e,n=t.x,s=t.y,a=-1/0;do{if(s<=i.y&&s>=i.next.y&&i.next.y!==i.y){var f=i.x+(s-i.y)*(i.next.x-i.x)/(i.next.y-i.y);if(f<=n&&f>a){if(a=f,f===n){if(s===i.y)return i;if(s===i.next.y)return i.next}var p=i.x<i.next.x?i:i.next}}i=i.next}while(i!==e);if(!p)return null;if(n===a)return p.prev;e=p,f=p.x;var v=p.y,w=1/0;for(i=p.next;i!==e;){if(n>=i.x&&i.x>=f&&n!==i.x&&jl(s<v?n:a,s,f,v,s<v?a:n,s,i.x,i.y)){var C=Math.abs(s-i.y)/(n-i.x);(C<w||C===w&&i.x>p.x)&&Rr(i,t)&&(p=i,w=C)}i=i.next}return p}function Wl(t,e,i,n,s){return t=32767*(t-i)*s,e=32767*(e-n)*s,t=(t|t<<8)&16711935,t=(t|t<<4)&252645135,t=(t|t<<2)&858993459,e=(e|e<<8)&16711935,e=(e|e<<4)&252645135,e=(e|e<<2)&858993459,(t|t<<1)&1431655765|((e|e<<1)&1431655765)<<1}function _r(t){var e=t,i=t;do e.x<i.x&&(i=e),e=e.next;while(e!==t);return i}function jl(t,e,i,n,s,a,f,p){return 0<=(s-f)*(e-p)-(t-f)*(a-p)&&0<=(t-f)*(n-p)-(i-f)*(e-p)&&0<=(i-f)*(a-p)-(s-f)*(n-p)}function Ji(t,e,i){return(e.y-t.y)*(i.x-e.x)-(e.x-t.x)*(i.y-e.y)}function wo(t,e){return t.x===e.x&&t.y===e.y}function Ih(t,e,i,n){return wo(t,e)&&wo(i,n)||wo(t,n)&&wo(i,e)?!0:0<Ji(t,e,i)!=0<Ji(t,e,n)&&0<Ji(i,n,t)!=0<Ji(i,n,e)}function Rr(t,e){return 0>Ji(t.prev,t,t.next)?0<=Ji(t,e,t.next)&&0<=Ji(t,t.prev,e):0>Ji(t,e,t.prev)||0>Ji(t,t.next,e)}function el(t,e){var i=new fs(t.i,t.x,t.y),n=new fs(e.i,e.x,e.y),s=t.next,a=e.prev;return t.next=e,e.prev=t,i.next=s,s.prev=i,n.next=i,i.prev=n,a.next=n,n.prev=a,n}function Xl(t,e,i,n){return t=new fs(t,e,i),n?(t.next=n.next,t.prev=n,n.next.prev=t,n.next=t):(t.prev=t,t.next=t),t}function Yi(t){t.next.prev=t.prev,t.prev.next=t.next,t.prevZ&&(t.prevZ.nextZ=t.nextZ),t.nextZ&&(t.nextZ.prevZ=t.prevZ)}function fs(t,e,i){this.i=t,this.x=e,this.y=i,this.nextZ=this.prevZ=this.z=this.next=this.prev=null,this.steiner=!1}function ql(t){var e=t.length;2<e&&t[e-1].equals(t[0])&&t.pop()}function Tu(t,e){for(var i=0;i<e.length;i++)t.push(e[i].x),t.push(e[i].y)}function Cs(t,e){j.call(this),this.type="ExtrudeGeometry",this.parameters={shapes:t,options:e},this.fromBufferGeometry(new ps(t,e)),this.mergeVertices()}function ps(t,e){function i(v){function w(Xe,ri,Ci){return ri||console.error("THREE.ExtrudeGeometry: vec does not exist"),ri.clone().multiplyScalar(Ci).add(Xe)}function C(Xe,ri,Ci){var Ai=Xe.x-ri.x,ne=Xe.y-ri.y,ii=Ci.x-Xe.x,Ze=Ci.y-Xe.y,li=Ai*Ai+ne*ne;if(Math.abs(Ai*Ze-ne*ii)>Number.EPSILON){var xn=Math.sqrt(li),Pn=Math.sqrt(ii*ii+Ze*Ze);if(li=ri.x-ne/xn,ri=ri.y+Ai/xn,Ze=((Ci.x-Ze/Pn-li)*Ze-(Ci.y+ii/Pn-ri)*ii)/(Ai*Ze-ne*ii),ii=li+Ai*Ze-Xe.x,Ai=ri+ne*Ze-Xe.y,ne=ii*ii+Ai*Ai,2>=ne)return new o(ii,Ai);ne=Math.sqrt(ne/2)}else Xe=!1,Ai>Number.EPSILON?ii>Number.EPSILON&&(Xe=!0):Ai<-Number.EPSILON?ii<-Number.EPSILON&&(Xe=!0):Math.sign(ne)===Math.sign(Ze)&&(Xe=!0),Xe?(ii=-ne,ne=Math.sqrt(li)):(ii=Ai,Ai=ne,ne=Math.sqrt(li/2));return new o(ii/ne,Ai/ne)}function L(Xe,ri){for(Ae=Xe.length;0<=--Ae;){var Ci=Ae,Ai=Ae-1;0>Ai&&(Ai=Xe.length-1);var ne,ii=gt+2*st;for(ne=0;ne<ii;ne++){var Ze=Vi*ne,li=Vi*(ne+1),xn=ri+Ai+Ze,Pn=ri+Ai+li;li=ri+Ci+li,q(ri+Ci+Ze),q(xn),q(li),q(xn),q(Pn),q(li),Ze=s.length/3,Ze=ee.generateSideWallUV(n,s,Ze-6,Ze-3,Ze-2,Ze-1),K(Ze[0]),K(Ze[1]),K(Ze[3]),K(Ze[1]),K(Ze[2]),K(Ze[3])}}}function B(Xe,ri,Ci){rt.push(Xe),rt.push(ri),rt.push(Ci)}function H(Xe,ri,Ci){q(Xe),q(ri),q(Ci),Xe=s.length/3,Xe=ee.generateTopUV(n,s,Xe-3,Xe-2,Xe-1),K(Xe[0]),K(Xe[1]),K(Xe[2])}function q(Xe){s.push(rt[3*Xe]),s.push(rt[3*Xe+1]),s.push(rt[3*Xe+2])}function K(Xe){a.push(Xe.x),a.push(Xe.y)}var rt=[],xt=e.curveSegments!==void 0?e.curveSegments:12,gt=e.steps!==void 0?e.steps:1,At=e.depth!==void 0?e.depth:100,wt=e.bevelEnabled!==void 0?e.bevelEnabled:!0,Vt=e.bevelThickness!==void 0?e.bevelThickness:6,Z=e.bevelSize!==void 0?e.bevelSize:Vt-2,st=e.bevelSegments!==void 0?e.bevelSegments:3,zt=e.extrudePath,ee=e.UVGenerator!==void 0?e.UVGenerator:xl;e.amount!==void 0&&(console.warn("THREE.ExtrudeBufferGeometry: amount has been renamed to depth."),At=e.amount);var $t=!1;if(zt){var qt=zt.getSpacedPoints(gt);$t=!0,wt=!1;var Te=zt.computeFrenetFrames(gt,!1),me=new u,Ie=new u,be=new u}wt||(Z=Vt=st=0);var ae;xt=v.extractPoints(xt),v=xt.shape;var We=xt.holes;if(!ws.isClockWise(v)){v=v.reverse();var Qe=0;for(ae=We.length;Qe<ae;Qe++){var fi=We[Qe];ws.isClockWise(fi)&&(We[Qe]=fi.reverse())}}var An=ws.triangulateShape(v,We),yn=v;for(Qe=0,ae=We.length;Qe<ae;Qe++)fi=We[Qe],v=v.concat(fi);var qi,Vi=v.length,sn,Cn=An.length;xt=[];var Ae=0,ti=yn.length,Ut=ti-1;for(qi=Ae+1;Ae<ti;Ae++,Ut++,qi++)Ut===ti&&(Ut=0),qi===ti&&(qi=0),xt[Ae]=C(yn[Ae],yn[Ut],yn[qi]);zt=[];var Ye=xt.concat();for(Qe=0,ae=We.length;Qe<ae;Qe++){fi=We[Qe];var ei=[];for(Ae=0,ti=fi.length,Ut=ti-1,qi=Ae+1;Ae<ti;Ae++,Ut++,qi++)Ut===ti&&(Ut=0),qi===ti&&(qi=0),ei[Ae]=C(fi[Ae],fi[Ut],fi[qi]);zt.push(ei),Ye=Ye.concat(ei)}for(Ut=0;Ut<st;Ut++){ti=Ut/st;var Wi=Vt*Math.cos(ti*Math.PI/2);for(qi=Z*Math.sin(ti*Math.PI/2),Ae=0,ti=yn.length;Ae<ti;Ae++){var Ce=w(yn[Ae],xt[Ae],qi);B(Ce.x,Ce.y,-Wi)}for(Qe=0,ae=We.length;Qe<ae;Qe++)for(fi=We[Qe],ei=zt[Qe],Ae=0,ti=fi.length;Ae<ti;Ae++)Ce=w(fi[Ae],ei[Ae],qi),B(Ce.x,Ce.y,-Wi)}for(qi=Z,Ae=0;Ae<Vi;Ae++)Ce=wt?w(v[Ae],Ye[Ae],qi):v[Ae],$t?(Ie.copy(Te.normals[0]).multiplyScalar(Ce.x),me.copy(Te.binormals[0]).multiplyScalar(Ce.y),be.copy(qt[0]).add(Ie).add(me),B(be.x,be.y,be.z)):B(Ce.x,Ce.y,0);for(ti=1;ti<=gt;ti++)for(Ae=0;Ae<Vi;Ae++)Ce=wt?w(v[Ae],Ye[Ae],qi):v[Ae],$t?(Ie.copy(Te.normals[ti]).multiplyScalar(Ce.x),me.copy(Te.binormals[ti]).multiplyScalar(Ce.y),be.copy(qt[ti]).add(Ie).add(me),B(be.x,be.y,be.z)):B(Ce.x,Ce.y,At/gt*ti);for(Ut=st-1;0<=Ut;Ut--){for(ti=Ut/st,Wi=Vt*Math.cos(ti*Math.PI/2),qi=Z*Math.sin(ti*Math.PI/2),Ae=0,ti=yn.length;Ae<ti;Ae++)Ce=w(yn[Ae],xt[Ae],qi),B(Ce.x,Ce.y,At+Wi);for(Qe=0,ae=We.length;Qe<ae;Qe++)for(fi=We[Qe],ei=zt[Qe],Ae=0,ti=fi.length;Ae<ti;Ae++)Ce=w(fi[Ae],ei[Ae],qi),$t?B(Ce.x,Ce.y+qt[gt-1].y,qt[gt-1].x+Wi):B(Ce.x,Ce.y,At+Wi)}(function(){var Xe=s.length/3;if(wt){var ri=0*Vi;for(Ae=0;Ae<Cn;Ae++)sn=An[Ae],H(sn[2]+ri,sn[1]+ri,sn[0]+ri);for(ri=Vi*(gt+2*st),Ae=0;Ae<Cn;Ae++)sn=An[Ae],H(sn[0]+ri,sn[1]+ri,sn[2]+ri)}else{for(Ae=0;Ae<Cn;Ae++)sn=An[Ae],H(sn[2],sn[1],sn[0]);for(Ae=0;Ae<Cn;Ae++)sn=An[Ae],H(sn[0]+Vi*gt,sn[1]+Vi*gt,sn[2]+Vi*gt)}n.addGroup(Xe,s.length/3-Xe,0)})(),function(){var Xe=s.length/3,ri=0;for(L(yn,ri),ri+=yn.length,Qe=0,ae=We.length;Qe<ae;Qe++)fi=We[Qe],L(fi,ri),ri+=fi.length;n.addGroup(Xe,s.length/3-Xe,1)}()}Ft.call(this),this.type="ExtrudeBufferGeometry",this.parameters={shapes:t,options:e},t=Array.isArray(t)?t:[t];for(var n=this,s=[],a=[],f=0,p=t.length;f<p;f++)i(t[f]);this.addAttribute("position",new Et(s,3)),this.addAttribute("uv",new Et(a,2)),this.computeVertexNormals()}function Mu(t,e,i){if(i.shapes=[],Array.isArray(t))for(var n=0,s=t.length;n<s;n++)i.shapes.push(t[n].uuid);else i.shapes.push(t.uuid);return e.extrudePath!==void 0&&(i.options.extrudePath=e.extrudePath.toJSON()),i}function il(t,e){j.call(this),this.type="TextGeometry",this.parameters={text:t,parameters:e},this.fromBufferGeometry(new To(t,e)),this.mergeVertices()}function To(t,e){e=e||{};var i=e.font;if(!i||!i.isFont)return console.error("THREE.TextGeometry: font parameter is not an instance of THREE.Font."),new j;t=i.generateShapes(t,e.size),e.depth=e.height!==void 0?e.height:50,e.bevelThickness===void 0&&(e.bevelThickness=10),e.bevelSize===void 0&&(e.bevelSize=8),e.bevelEnabled===void 0&&(e.bevelEnabled=!1),ps.call(this,t,e),this.type="TextBufferGeometry"}function Zs(t,e,i,n,s,a,f){j.call(this),this.type="SphereGeometry",this.parameters={radius:t,widthSegments:e,heightSegments:i,phiStart:n,phiLength:s,thetaStart:a,thetaLength:f},this.fromBufferGeometry(new Or(t,e,i,n,s,a,f)),this.mergeVertices()}function Or(t,e,i,n,s,a,f){Ft.call(this),this.type="SphereBufferGeometry",this.parameters={radius:t,widthSegments:e,heightSegments:i,phiStart:n,phiLength:s,thetaStart:a,thetaLength:f},t=t||1,e=Math.max(3,Math.floor(e)||8),i=Math.max(2,Math.floor(i)||6),n=n!==void 0?n:0,s=s!==void 0?s:2*Math.PI,a=a!==void 0?a:0,f=f!==void 0?f:Math.PI;var p=a+f,v,w,C=0,L=[],B=new u,H=new u,q=[],K=[],rt=[],xt=[];for(w=0;w<=i;w++){var gt=[],At=w/i;for(v=0;v<=e;v++){var wt=v/e;B.x=-t*Math.cos(n+wt*s)*Math.sin(a+At*f),B.y=t*Math.cos(a+At*f),B.z=t*Math.sin(n+wt*s)*Math.sin(a+At*f),K.push(B.x,B.y,B.z),H.set(B.x,B.y,B.z).normalize(),rt.push(H.x,H.y,H.z),xt.push(wt,1-At),gt.push(C++)}L.push(gt)}for(w=0;w<i;w++)for(v=0;v<e;v++)t=L[w][v+1],n=L[w][v],s=L[w+1][v],f=L[w+1][v+1],(w!==0||0<a)&&q.push(t,n,f),(w!==i-1||p<Math.PI)&&q.push(n,s,f);this.setIndex(q),this.addAttribute("position",new Et(K,3)),this.addAttribute("normal",new Et(rt,3)),this.addAttribute("uv",new Et(xt,2))}function nl(t,e,i,n,s,a){j.call(this),this.type="RingGeometry",this.parameters={innerRadius:t,outerRadius:e,thetaSegments:i,phiSegments:n,thetaStart:s,thetaLength:a},this.fromBufferGeometry(new Mo(t,e,i,n,s,a)),this.mergeVertices()}function Mo(t,e,i,n,s,a){Ft.call(this),this.type="RingBufferGeometry",this.parameters={innerRadius:t,outerRadius:e,thetaSegments:i,phiSegments:n,thetaStart:s,thetaLength:a},t=t||.5,e=e||1,s=s!==void 0?s:0,a=a!==void 0?a:2*Math.PI,i=i!==void 0?Math.max(3,i):8,n=n!==void 0?Math.max(1,n):1;var f=[],p=[],v=[],w=[],C=t,L=(e-t)/n,B=new u,H=new o,q,K;for(q=0;q<=n;q++){for(K=0;K<=i;K++)t=s+K/i*a,B.x=C*Math.cos(t),B.y=C*Math.sin(t),p.push(B.x,B.y,B.z),v.push(0,0,1),H.x=(B.x/e+1)/2,H.y=(B.y/e+1)/2,w.push(H.x,H.y);C+=L}for(q=0;q<n;q++)for(e=q*(i+1),K=0;K<i;K++)t=K+e,s=t+i+1,a=t+i+2,C=t+1,f.push(t,s,C),f.push(s,a,C);this.setIndex(f),this.addAttribute("position",new Et(p,3)),this.addAttribute("normal",new Et(v,3)),this.addAttribute("uv",new Et(w,2))}function ma(t,e,i,n){j.call(this),this.type="LatheGeometry",this.parameters={points:t,segments:e,phiStart:i,phiLength:n},this.fromBufferGeometry(new Js(t,e,i,n)),this.mergeVertices()}function Js(t,e,i,n){Ft.call(this),this.type="LatheBufferGeometry",this.parameters={points:t,segments:e,phiStart:i,phiLength:n},e=Math.floor(e)||12,i=i||0,n=n||2*Math.PI,n=pi.clamp(n,0,2*Math.PI);var s=[],a=[],f=[],p=1/e,v=new u,w=new o,C;for(C=0;C<=e;C++){var L=i+C*p*n,B=Math.sin(L),H=Math.cos(L);for(L=0;L<=t.length-1;L++)v.x=t[L].x*B,v.y=t[L].y,v.z=t[L].x*H,a.push(v.x,v.y,v.z),w.x=C/e,w.y=L/(t.length-1),f.push(w.x,w.y)}for(C=0;C<e;C++)for(L=0;L<t.length-1;L++)i=L+C*t.length,p=i+t.length,v=i+t.length+1,w=i+1,s.push(i,p,w),s.push(p,v,w);if(this.setIndex(s),this.addAttribute("position",new Et(a,3)),this.addAttribute("uv",new Et(f,2)),this.computeVertexNormals(),n===2*Math.PI)for(n=this.attributes.normal.array,s=new u,a=new u,f=new u,i=e*t.length*3,L=C=0;C<t.length;C++,L+=3)s.x=n[L+0],s.y=n[L+1],s.z=n[L+2],a.x=n[i+L+0],a.y=n[i+L+1],a.z=n[i+L+2],f.addVectors(s,a).normalize(),n[L+0]=n[i+L+0]=f.x,n[L+1]=n[i+L+1]=f.y,n[L+2]=n[i+L+2]=f.z}function Ps(t,e){j.call(this),this.type="ShapeGeometry",typeof e=="object"&&(console.warn("THREE.ShapeGeometry: Options parameter has been removed."),e=e.curveSegments),this.parameters={shapes:t,curveSegments:e},this.fromBufferGeometry(new $s(t,e)),this.mergeVertices()}function $s(t,e){function i(C){var L,B=s.length/3;C=C.extractPoints(e);var H=C.shape,q=C.holes;if(ws.isClockWise(H)===!1)for(H=H.reverse(),C=0,L=q.length;C<L;C++){var K=q[C];ws.isClockWise(K)===!0&&(q[C]=K.reverse())}var rt=ws.triangulateShape(H,q);for(C=0,L=q.length;C<L;C++)K=q[C],H=H.concat(K);for(C=0,L=H.length;C<L;C++)K=H[C],s.push(K.x,K.y,0),a.push(0,0,1),f.push(K.x,K.y);for(C=0,L=rt.length;C<L;C++)H=rt[C],n.push(H[0]+B,H[1]+B,H[2]+B),v+=3}Ft.call(this),this.type="ShapeBufferGeometry",this.parameters={shapes:t,curveSegments:e},e=e||12;var n=[],s=[],a=[],f=[],p=0,v=0;if(Array.isArray(t)===!1)i(t);else for(var w=0;w<t.length;w++)i(t[w]),this.addGroup(p,v,w),p+=v,v=0;this.setIndex(n),this.addAttribute("position",new Et(s,3)),this.addAttribute("normal",new Et(a,3)),this.addAttribute("uv",new Et(f,2))}function Su(t,e){if(e.shapes=[],Array.isArray(t))for(var i=0,n=t.length;i<n;i++)e.shapes.push(t[i].uuid);else e.shapes.push(t.uuid);return e}function Ks(t,e){Ft.call(this),this.type="EdgesGeometry",this.parameters={thresholdAngle:e};var i=[];e=Math.cos(pi.DEG2RAD*(e!==void 0?e:1));var n=[0,0],s={},a=["a","b","c"];if(t.isBufferGeometry){var f=new j;f.fromBufferGeometry(t)}else f=t.clone();f.mergeVertices(),f.computeFaceNormals(),t=f.vertices,f=f.faces;for(var p=0,v=f.length;p<v;p++)for(var w=f[p],C=0;3>C;C++){var L=w[a[C]],B=w[a[(C+1)%3]];n[0]=Math.min(L,B),n[1]=Math.max(L,B),L=n[0]+","+n[1],s[L]===void 0?s[L]={index1:n[0],index2:n[1],face1:p,face2:void 0}:s[L].face2=p}for(L in s)n=s[L],(n.face2===void 0||f[n.face1].normal.dot(f[n.face2].normal)<=e)&&(a=t[n.index1],i.push(a.x,a.y,a.z),a=t[n.index2],i.push(a.x,a.y,a.z));this.addAttribute("position",new Et(i,3))}function Ls(t,e,i,n,s,a,f,p){j.call(this),this.type="CylinderGeometry",this.parameters={radiusTop:t,radiusBottom:e,height:i,radialSegments:n,heightSegments:s,openEnded:a,thetaStart:f,thetaLength:p},this.fromBufferGeometry(new Rs(t,e,i,n,s,a,f,p)),this.mergeVertices()}function Rs(t,e,i,n,s,a,f,p){function v(gt){var At,wt=new o,Vt=new u,Z=0,st=gt===!0?t:e,zt=gt===!0?1:-1,ee=q;for(At=1;At<=n;At++)L.push(0,rt*zt,0),B.push(0,zt,0),H.push(.5,.5),q++;var $t=q;for(At=0;At<=n;At++){var qt=At/n*p+f,Te=Math.cos(qt);qt=Math.sin(qt),Vt.x=st*qt,Vt.y=rt*zt,Vt.z=st*Te,L.push(Vt.x,Vt.y,Vt.z),B.push(0,zt,0),wt.x=.5*Te+.5,wt.y=.5*qt*zt+.5,H.push(wt.x,wt.y),q++}for(At=0;At<n;At++)wt=ee+At,Vt=$t+At,gt===!0?C.push(Vt,Vt+1,wt):C.push(Vt+1,Vt,wt),Z+=3;w.addGroup(xt,Z,gt===!0?1:2),xt+=Z}Ft.call(this),this.type="CylinderBufferGeometry",this.parameters={radiusTop:t,radiusBottom:e,height:i,radialSegments:n,heightSegments:s,openEnded:a,thetaStart:f,thetaLength:p};var w=this;t=t!==void 0?t:1,e=e!==void 0?e:1,i=i||1,n=Math.floor(n)||8,s=Math.floor(s)||1,a=a!==void 0?a:!1,f=f!==void 0?f:0,p=p!==void 0?p:2*Math.PI;var C=[],L=[],B=[],H=[],q=0,K=[],rt=i/2,xt=0;(function(){var gt,At,wt=new u,Vt=new u,Z=0,st=(e-t)/i;for(At=0;At<=s;At++){var zt=[],ee=At/s,$t=ee*(e-t)+t;for(gt=0;gt<=n;gt++){var qt=gt/n,Te=qt*p+f,me=Math.sin(Te);Te=Math.cos(Te),Vt.x=$t*me,Vt.y=-ee*i+rt,Vt.z=$t*Te,L.push(Vt.x,Vt.y,Vt.z),wt.set(me,st,Te).normalize(),B.push(wt.x,wt.y,wt.z),H.push(qt,1-ee),zt.push(q++)}K.push(zt)}for(gt=0;gt<n;gt++)for(At=0;At<s;At++)wt=K[At+1][gt],Vt=K[At+1][gt+1],st=K[At][gt+1],C.push(K[At][gt],wt,st),C.push(wt,Vt,st),Z+=6;w.addGroup(xt,Z,0),xt+=Z})(),a===!1&&(0<t&&v(!0),0<e&&v(!1)),this.setIndex(C),this.addAttribute("position",new Et(L,3)),this.addAttribute("normal",new Et(B,3)),this.addAttribute("uv",new Et(H,2))}function ga(t,e,i,n,s,a,f){Ls.call(this,0,t,e,i,n,s,a,f),this.type="ConeGeometry",this.parameters={radius:t,height:e,radialSegments:i,heightSegments:n,openEnded:s,thetaStart:a,thetaLength:f}}function Gn(t,e,i,n,s,a,f){Rs.call(this,0,t,e,i,n,s,a,f),this.type="ConeBufferGeometry",this.parameters={radius:t,height:e,radialSegments:i,heightSegments:n,openEnded:s,thetaStart:a,thetaLength:f}}function So(t,e,i,n){j.call(this),this.type="CircleGeometry",this.parameters={radius:t,segments:e,thetaStart:i,thetaLength:n},this.fromBufferGeometry(new ds(t,e,i,n)),this.mergeVertices()}function ds(t,e,i,n){Ft.call(this),this.type="CircleBufferGeometry",this.parameters={radius:t,segments:e,thetaStart:i,thetaLength:n},t=t||1,e=e!==void 0?Math.max(3,e):8,i=i!==void 0?i:0,n=n!==void 0?n:2*Math.PI;var s=[],a=[],f=[],p=[],v,w=new u,C=new o;a.push(0,0,0),f.push(0,0,1),p.push(.5,.5);var L=0;for(v=3;L<=e;L++,v+=3){var B=i+L/e*n;w.x=t*Math.cos(B),w.y=t*Math.sin(B),a.push(w.x,w.y,w.z),f.push(0,0,1),C.x=(a[v]/t+1)/2,C.y=(a[v+1]/t+1)/2,p.push(C.x,C.y)}for(v=1;v<=e;v++)s.push(v,v+1,0);this.setIndex(s),this.addAttribute("position",new Et(a,3)),this.addAttribute("normal",new Et(f,3)),this.addAttribute("uv",new Et(p,2))}function Qs(t){Yt.call(this),this.type="ShadowMaterial",this.color=new P(0),this.transparent=!0,this.setValues(t)}function Eo(t){$e.call(this,t),this.type="RawShaderMaterial"}function ms(t){Yt.call(this),this.defines={STANDARD:""},this.type="MeshStandardMaterial",this.color=new P(16777215),this.metalness=this.roughness=.5,this.lightMap=this.map=null,this.lightMapIntensity=1,this.aoMap=null,this.aoMapIntensity=1,this.emissive=new P(0),this.emissiveIntensity=1,this.bumpMap=this.emissiveMap=null,this.bumpScale=1,this.normalMap=null,this.normalMapType=0,this.normalScale=new o(1,1),this.displacementMap=null,this.displacementScale=1,this.displacementBias=0,this.envMap=this.alphaMap=this.metalnessMap=this.roughnessMap=null,this.envMapIntensity=1,this.refractionRatio=.98,this.wireframe=!1,this.wireframeLinewidth=1,this.wireframeLinejoin=this.wireframeLinecap="round",this.morphNormals=this.morphTargets=this.skinning=!1,this.setValues(t)}function bo(t){ms.call(this),this.defines={PHYSICAL:""},this.type="MeshPhysicalMaterial",this.reflectivity=.5,this.clearCoatRoughness=this.clearCoat=0,this.setValues(t)}function Jr(t){Yt.call(this),this.type="MeshPhongMaterial",this.color=new P(16777215),this.specular=new P(1118481),this.shininess=30,this.lightMap=this.map=null,this.lightMapIntensity=1,this.aoMap=null,this.aoMapIntensity=1,this.emissive=new P(0),this.emissiveIntensity=1,this.bumpMap=this.emissiveMap=null,this.bumpScale=1,this.normalMap=null,this.normalMapType=0,this.normalScale=new o(1,1),this.displacementMap=null,this.displacementScale=1,this.displacementBias=0,this.envMap=this.alphaMap=this.specularMap=null,this.combine=0,this.reflectivity=1,this.refractionRatio=.98,this.wireframe=!1,this.wireframeLinewidth=1,this.wireframeLinejoin=this.wireframeLinecap="round",this.morphNormals=this.morphTargets=this.skinning=!1,this.setValues(t)}function Ao(t){Jr.call(this),this.defines={TOON:""},this.type="MeshToonMaterial",this.gradientMap=null,this.setValues(t)}function Co(t){Yt.call(this),this.type="MeshNormalMaterial",this.bumpMap=null,this.bumpScale=1,this.normalMap=null,this.normalMapType=0,this.normalScale=new o(1,1),this.displacementMap=null,this.displacementScale=1,this.displacementBias=0,this.wireframe=!1,this.wireframeLinewidth=1,this.morphNormals=this.morphTargets=this.skinning=this.lights=this.fog=!1,this.setValues(t)}function Ir(t){Yt.call(this),this.type="MeshLambertMaterial",this.color=new P(16777215),this.lightMap=this.map=null,this.lightMapIntensity=1,this.aoMap=null,this.aoMapIntensity=1,this.emissive=new P(0),this.emissiveIntensity=1,this.envMap=this.alphaMap=this.specularMap=this.emissiveMap=null,this.combine=0,this.reflectivity=1,this.refractionRatio=.98,this.wireframe=!1,this.wireframeLinewidth=1,this.wireframeLinejoin=this.wireframeLinecap="round",this.morphNormals=this.morphTargets=this.skinning=!1,this.setValues(t)}function Po(t){if(Yt.call(this),this.defines={MATCAP:""},this.type="MeshMatcapMaterial",this.color=new P(16777215),this.bumpMap=this.map=this.matcap=null,this.bumpScale=1,this.normalMap=null,this.normalMapType=0,this.normalScale=new o(1,1),this.displacementMap=null,this.displacementScale=1,this.displacementBias=0,this.alphaMap=null,this.lights=this.morphNormals=this.morphTargets=this.skinning=!1,this.setValues(t),this.matcap===null){t=document.createElement("canvas"),t.width=1,t.height=1;var e=t.getContext("2d");e.fillStyle="#fff",e.fillRect(0,0,1,1),this.matcap=new THREE.CanvasTexture(t)}}function Lo(t){Bi.call(this),this.type="LineDashedMaterial",this.scale=1,this.dashSize=3,this.gapSize=1,this.setValues(t)}function $n(t,e,i,n){this.parameterPositions=t,this._cachedIndex=0,this.resultBuffer=n!==void 0?n:new e.constructor(i),this.sampleValues=e,this.valueSize=i}function rl(t,e,i,n){$n.call(this,t,e,i,n),this._offsetNext=this._weightNext=this._offsetPrev=this._weightPrev=-0}function Dr(t,e,i,n){$n.call(this,t,e,i,n)}function Ro(t,e,i,n){$n.call(this,t,e,i,n)}function Hn(t,e,i,n){if(t===void 0)throw Error("THREE.KeyframeTrack: track name is undefined");if(e===void 0||e.length===0)throw Error("THREE.KeyframeTrack: no keyframes in track named "+t);this.name=t,this.times=Yn.convertArray(e,this.TimeBufferType),this.values=Yn.convertArray(i,this.ValueBufferType),this.setInterpolation(n||this.DefaultInterpolation)}function Yl(t,e,i){Hn.call(this,t,e,i)}function Zl(t,e,i,n){Hn.call(this,t,e,i,n)}function $r(t,e,i,n){Hn.call(this,t,e,i,n)}function ar(t,e,i,n){$n.call(this,t,e,i,n)}function va(t,e,i,n){Hn.call(this,t,e,i,n)}function Jl(t,e,i,n){Hn.call(this,t,e,i,n)}function _a(t,e,i,n){Hn.call(this,t,e,i,n)}function yr(t,e,i){this.name=t,this.tracks=i,this.duration=e!==void 0?e:-1,this.uuid=pi.generateUUID(),0>this.duration&&this.resetDuration()}function Gc(t){switch(t.toLowerCase()){case"scalar":case"double":case"float":case"number":case"integer":return $r;case"vector":case"vector2":case"vector3":case"vector4":return _a;case"color":return Zl;case"quaternion":return va;case"bool":case"boolean":return Yl;case"string":return Jl}throw Error("THREE.KeyframeTrack: Unsupported typeName: "+t)}function Hc(t){if(t.type===void 0)throw Error("THREE.KeyframeTrack: track type undefined, can not parse");var e=Gc(t.type);if(t.times===void 0){var i=[],n=[];Yn.flattenJSON(t.keys,i,n,"value"),t.times=i,t.values=n}return e.parse!==void 0?e.parse(t):new e(t.name,t.times,t.values,t.interpolation)}function to(t,e,i){var n=this,s=!1,a=0,f=0,p=void 0;this.onStart=void 0,this.onLoad=t,this.onProgress=e,this.onError=i,this.itemStart=function(v){f++,s===!1&&n.onStart!==void 0&&n.onStart(v,a,f),s=!0},this.itemEnd=function(v){a++,n.onProgress!==void 0&&n.onProgress(v,a,f),a===f&&(s=!1,n.onLoad!==void 0)&&n.onLoad()},this.itemError=function(v){n.onError!==void 0&&n.onError(v)},this.resolveURL=function(v){return p?p(v):v},this.setURLModifier=function(v){return p=v,this}}function Lt(t){this.manager=t!==void 0?t:tr}function Qt(t){this.manager=t!==void 0?t:tr}function Zt(t){this.manager=t!==void 0?t:tr,this._parser=null}function Ue(t){this.manager=t!==void 0?t:tr,this._parser=null}function ai(t){this.manager=t!==void 0?t:tr}function Ni(t){this.manager=t!==void 0?t:tr}function fn(t){this.manager=t!==void 0?t:tr}function Ee(){this.type="Curve",this.arcLengthDivisions=200}function Kn(t,e,i,n,s,a,f,p){Ee.call(this),this.type="EllipseCurve",this.aX=t||0,this.aY=e||0,this.xRadius=i||1,this.yRadius=n||1,this.aStartAngle=s||0,this.aEndAngle=a||2*Math.PI,this.aClockwise=f||!1,this.aRotation=p||0}function ya(t,e,i,n,s,a){Kn.call(this,t,e,i,i,n,s,a),this.type="ArcCurve"}function lr(){var t=0,e=0,i=0,n=0;return{initCatmullRom:function(s,a,f,p,v){s=v*(f-s),p=v*(p-a),t=a,e=s,i=-3*a+3*f-2*s-p,n=2*a-2*f+s+p},initNonuniformCatmullRom:function(s,a,f,p,v,w,C){s=((a-s)/v-(f-s)/(v+w)+(f-a)/w)*w,p=((f-a)/w-(p-a)/(w+C)+(p-f)/C)*w,t=a,e=s,i=-3*a+3*f-2*s-p,n=2*a-2*f+s+p},calc:function(s){var a=s*s;return t+e*s+i*a+n*a*s}}}function On(t,e,i,n){Ee.call(this),this.type="CatmullRomCurve3",this.points=t||[],this.closed=e||!1,this.curveType=i||"centripetal",this.tension=n||.5}function Eu(t,e,i,n,s){e=.5*(n-e),s=.5*(s-i);var a=t*t;return(2*i-2*n+e+s)*t*a+(-3*i+3*n-2*e-s)*a+e*t+i}function gs(t,e,i,n){var s=1-t;return s*s*e+2*(1-t)*t*i+t*t*n}function eo(t,e,i,n,s){var a=1-t,f=1-t;return a*a*a*e+3*f*f*t*i+3*(1-t)*t*t*n+t*t*t*s}function hr(t,e,i,n){Ee.call(this),this.type="CubicBezierCurve",this.v0=t||new o,this.v1=e||new o,this.v2=i||new o,this.v3=n||new o}function Ti(t,e,i,n){Ee.call(this),this.type="CubicBezierCurve3",this.v0=t||new u,this.v1=e||new u,this.v2=i||new u,this.v3=n||new u}function ur(t,e){Ee.call(this),this.type="LineCurve",this.v1=t||new o,this.v2=e||new o}function zr(t,e){Ee.call(this),this.type="LineCurve3",this.v1=t||new u,this.v2=e||new u}function cr(t,e,i){Ee.call(this),this.type="QuadraticBezierCurve",this.v0=t||new o,this.v1=e||new o,this.v2=i||new o}function vs(t,e,i){Ee.call(this),this.type="QuadraticBezierCurve3",this.v0=t||new u,this.v1=e||new u,this.v2=i||new u}function Kr(t){Ee.call(this),this.type="SplineCurve",this.points=t||[]}function Os(){Ee.call(this),this.type="CurvePath",this.curves=[],this.autoClose=!1}function fr(t){Os.call(this),this.type="Path",this.currentPoint=new o,t&&this.setFromPoints(t)}function Qn(t){fr.call(this,t),this.uuid=pi.generateUUID(),this.type="Shape",this.holes=[]}function tn(t,e){F.call(this),this.type="Light",this.color=new P(t),this.intensity=e!==void 0?e:1,this.receiveShadow=void 0}function sl(t,e,i){tn.call(this,t,i),this.type="HemisphereLight",this.castShadow=void 0,this.position.copy(F.DefaultUp),this.updateMatrix(),this.groundColor=new P(e)}function _s(t){this.camera=t,this.bias=0,this.radius=1,this.mapSize=new o(512,512),this.map=null,this.matrix=new c}function ol(){_s.call(this,new ye(50,1,.5,500))}function al(t,e,i,n,s,a){tn.call(this,t,e),this.type="SpotLight",this.position.copy(F.DefaultUp),this.updateMatrix(),this.target=new F,Object.defineProperty(this,"power",{get:function(){return this.intensity*Math.PI},set:function(f){this.intensity=f/Math.PI}}),this.distance=i!==void 0?i:0,this.angle=n!==void 0?n:Math.PI/3,this.penumbra=s!==void 0?s:0,this.decay=a!==void 0?a:1,this.shadow=new ol}function Oo(t,e,i,n){tn.call(this,t,e),this.type="PointLight",Object.defineProperty(this,"power",{get:function(){return 4*this.intensity*Math.PI},set:function(s){this.intensity=s/(4*Math.PI)}}),this.distance=i!==void 0?i:0,this.decay=n!==void 0?n:1,this.shadow=new _s(new ye(90,1,.5,500))}function xa(t,e,i,n,s,a){Be.call(this),this.type="OrthographicCamera",this.zoom=1,this.view=null,this.left=t!==void 0?t:-1,this.right=e!==void 0?e:1,this.top=i!==void 0?i:1,this.bottom=n!==void 0?n:-1,this.near=s!==void 0?s:.1,this.far=a!==void 0?a:2e3,this.updateProjectionMatrix()}function io(){_s.call(this,new xa(-5,5,5,-5,.5,500))}function ys(t,e){tn.call(this,t,e),this.type="DirectionalLight",this.position.copy(F.DefaultUp),this.updateMatrix(),this.target=new F,this.shadow=new io}function Io(t,e){tn.call(this,t,e),this.type="AmbientLight",this.castShadow=void 0}function $l(t,e,i,n){tn.call(this,t,e),this.type="RectAreaLight",this.width=i!==void 0?i:10,this.height=n!==void 0?n:10}function Kl(t){this.manager=t!==void 0?t:tr,this.textures={}}function Dh(t){this.manager=t!==void 0?t:tr}function Is(){}function Do(t){typeof t=="boolean"&&(console.warn("THREE.JSONLoader: showStatus parameter has been removed from constructor."),t=void 0),this.manager=t!==void 0?t:tr,this.withCredentials=!1}function ll(t){this.manager=t!==void 0?t:tr,this.resourcePath=""}function zh(t){typeof createImageBitmap>"u"&&console.warn("THREE.ImageBitmapLoader: createImageBitmap() not supported."),typeof fetch>"u"&&console.warn("THREE.ImageBitmapLoader: fetch() not supported."),this.manager=t!==void 0?t:tr,this.options=void 0}function Ql(){this.type="ShapePath",this.color=new P,this.subPaths=[],this.currentPath=null}function kh(t){this.type="Font",this.data=t}function bu(t){this.manager=t!==void 0?t:tr}function vn(t){this.manager=t!==void 0?t:tr}function Vn(){this.type="StereoCamera",this.aspect=1,this.eyeSep=.064,this.cameraL=new ye,this.cameraL.layers.enable(1),this.cameraL.matrixAutoUpdate=!1,this.cameraR=new ye,this.cameraR.layers.enable(2),this.cameraR.matrixAutoUpdate=!1}function hl(t,e,i,n){F.call(this),this.type="CubeCamera";var s=new ye(90,1,t,e);s.up.set(0,-1,0),s.lookAt(new u(1,0,0)),this.add(s);var a=new ye(90,1,t,e);a.up.set(0,-1,0),a.lookAt(new u(-1,0,0)),this.add(a);var f=new ye(90,1,t,e);f.up.set(0,0,1),f.lookAt(new u(0,1,0)),this.add(f);var p=new ye(90,1,t,e);p.up.set(0,0,-1),p.lookAt(new u(0,-1,0)),this.add(p);var v=new ye(90,1,t,e);v.up.set(0,-1,0),v.lookAt(new u(0,0,1)),this.add(v);var w=new ye(90,1,t,e);w.up.set(0,-1,0),w.lookAt(new u(0,0,-1)),this.add(w),n=n||{format:1022,magFilter:1006,minFilter:1006},this.renderTarget=new A(i,i,n),this.renderTarget.texture.name="CubeCamera",this.update=function(C,L){this.parent===null&&this.updateMatrixWorld();var B=this.renderTarget,H=B.texture.generateMipmaps;B.texture.generateMipmaps=!1,B.activeCubeFace=0,C.render(L,s,B),B.activeCubeFace=1,C.render(L,a,B),B.activeCubeFace=2,C.render(L,f,B),B.activeCubeFace=3,C.render(L,p,B),B.activeCubeFace=4,C.render(L,v,B),B.texture.generateMipmaps=H,B.activeCubeFace=5,C.render(L,w,B),C.setRenderTarget(null)},this.clear=function(C,L,B,H){for(var q=this.renderTarget,K=0;6>K;K++)q.activeCubeFace=K,C.setRenderTarget(q),C.clear(L,B,H);C.setRenderTarget(null)}}function Bh(t){this.autoStart=t!==void 0?t:!0,this.elapsedTime=this.oldTime=this.startTime=0,this.running=!1}function th(){F.call(this),this.type="AudioListener",this.context=qh.getContext(),this.gain=this.context.createGain(),this.gain.connect(this.context.destination),this.filter=null,this.timeDelta=0}function wa(t){F.call(this),this.type="Audio",this.listener=t,this.context=t.context,this.gain=this.context.createGain(),this.gain.connect(t.getInput()),this.autoplay=!1,this.buffer=null,this.loop=!1,this.offset=this.startTime=0,this.playbackRate=1,this.isPlaying=!1,this.hasPlaybackControl=!0,this.sourceType="empty",this.filters=[]}function ul(t){wa.call(this,t),this.panner=this.context.createPanner(),this.panner.connect(this.gain)}function zo(t,e){this.analyser=t.context.createAnalyser(),this.analyser.fftSize=e!==void 0?e:2048,this.data=new Uint8Array(this.analyser.frequencyBinCount),t.getOutput().connect(this.analyser)}function cl(t,e,i){switch(this.binding=t,this.valueSize=i,t=Float64Array,e){case"quaternion":e=this._slerp;break;case"string":case"bool":t=Array,e=this._select;break;default:e=this._lerp}this.buffer=new t(4*i),this._mixBufferRegion=e,this.referenceCount=this.useCount=this.cumulativeWeight=0}function ko(t,e,i){i=i||En.parseTrackName(e),this._targetGroup=t,this._bindings=t.subscribe_(e,i)}function En(t,e,i){this.path=e,this.parsedPath=i||En.parseTrackName(e),this.node=En.findNode(t,this.parsedPath.nodeName)||t,this.rootNode=t}function Ta(){this.uuid=pi.generateUUID(),this._objects=Array.prototype.slice.call(arguments),this.nCachedObjects_=0;var t={};this._indicesByUUID=t;for(var e=0,i=arguments.length;e!==i;++e)t[arguments[e].uuid]=e;this._paths=[],this._parsedPaths=[],this._bindings=[],this._bindingsIndicesByPath={};var n=this;this.stats={objects:{get total(){return n._objects.length},get inUse(){return this.total-n.nCachedObjects_}},get bindingsPerObject(){return n._bindings.length}}}function fl(t,e,i){this._mixer=t,this._clip=e,this._localRoot=i||null,t=e.tracks,e=t.length,i=Array(e);for(var n={endingStart:2400,endingEnd:2400},s=0;s!==e;++s){var a=t[s].createInterpolant(null);i[s]=a,a.settings=n}this._interpolantSettings=n,this._interpolants=i,this._propertyBindings=Array(e),this._weightInterpolant=this._timeScaleInterpolant=this._byClipCacheIndex=this._cacheIndex=null,this.loop=2201,this._loopCount=-1,this._startTime=null,this.time=0,this._effectiveWeight=this.weight=this._effectiveTimeScale=this.timeScale=1,this.repetitions=1/0,this.paused=!1,this.enabled=!0,this.clampWhenFinished=!1,this.zeroSlopeAtEnd=this.zeroSlopeAtStart=!0}function no(t){this._root=t,this._initMemoryManager(),this.time=this._accuIndex=0,this.timeScale=1}function eh(t,e){typeof t=="string"&&(console.warn("THREE.Uniform: Type parameter is no longer needed."),t=e),this.value=t}function Nh(){Ft.call(this),this.type="InstancedBufferGeometry",this.maxInstancedCount=void 0}function Fh(t,e,i){zi.call(this,t,e),this.meshPerAttribute=i||1}function Uh(t,e,i,n){typeof i=="number"&&(n=i,i=!1,console.error("THREE.InstancedBufferAttribute: The constructor now expects normalized as the third argument.")),J.call(this,t,e,i),this.meshPerAttribute=n||1}function Au(t,e,i,n){this.ray=new Oi(t,e),this.near=i||0,this.far=n||1/0,this.params={Mesh:{},Line:{},LOD:{},Points:{threshold:1},Sprite:{}},Object.defineProperties(this.params,{PointCloud:{get:function(){return console.warn("THREE.Raycaster: params.PointCloud has been renamed to params.Points."),this.Points}}})}function pl(t,e){return t.distance-e.distance}function Bo(t,e,i,n){if(t.visible!==!1&&(t.raycast(e,i),n===!0)){t=t.children,n=0;for(var s=t.length;n<s;n++)Bo(t[n],e,i,!0)}}function Gh(t,e,i){return this.radius=t!==void 0?t:1,this.phi=e!==void 0?e:0,this.theta=i!==void 0?i:0,this}function it(t,e,i){return this.radius=t!==void 0?t:1,this.theta=e!==void 0?e:0,this.y=i!==void 0?i:0,this}function ro(t,e){this.min=t!==void 0?t:new o(1/0,1/0),this.max=e!==void 0?e:new o(-1/0,-1/0)}function Ma(t,e){this.start=t!==void 0?t:new u,this.end=e!==void 0?e:new u}function qn(t){F.call(this),this.material=t,this.render=function(){}}function yi(t,e,i,n){this.object=t,this.size=e!==void 0?e:1,t=i!==void 0?i:16711680,n=n!==void 0?n:1,e=0,(i=this.object.geometry)&&i.isGeometry?e=3*i.faces.length:i&&i.isBufferGeometry&&(e=i.attributes.normal.count),i=new Ft,e=new Et(6*e,3),i.addAttribute("position",e),gi.call(this,i,new Bi({color:t,linewidth:n})),this.matrixAutoUpdate=!1,this.update()}function Sa(t,e){F.call(this),this.light=t,this.light.updateMatrixWorld(),this.matrix=t.matrixWorld,this.matrixAutoUpdate=!1,this.color=e,t=new Ft,e=[0,0,0,0,0,1,0,0,0,1,0,1,0,0,0,-1,0,1,0,0,0,0,1,1,0,0,0,0,-1,1];for(var i=0,n=1;32>i;i++,n++){var s=i/32*Math.PI*2,a=n/32*Math.PI*2;e.push(Math.cos(s),Math.sin(s),1,Math.cos(a),Math.sin(a),1)}t.addAttribute("position",new Et(e,3)),e=new Bi({fog:!1}),this.cone=new gi(t,e),this.add(this.cone),this.update()}function Cu(t){var e=[];t&&t.isBone&&e.push(t);for(var i=0;i<t.children.length;i++)e.push.apply(e,Cu(t.children[i]));return e}function Ea(t){for(var e=Cu(t),i=new Ft,n=[],s=[],a=new P(0,0,1),f=new P(0,1,0),p=0;p<e.length;p++){var v=e[p];v.parent&&v.parent.isBone&&(n.push(0,0,0),n.push(0,0,0),s.push(a.r,a.g,a.b),s.push(f.r,f.g,f.b))}i.addAttribute("position",new Et(n,3)),i.addAttribute("color",new Et(s,3)),n=new Bi({vertexColors:2,depthTest:!1,depthWrite:!1,transparent:!0}),gi.call(this,i,n),this.root=t,this.bones=e,this.matrix=t.matrixWorld,this.matrixAutoUpdate=!1}function kr(t,e,i){this.light=t,this.light.updateMatrixWorld(),this.color=i,t=new Or(e,4,2),e=new Ge({wireframe:!0,fog:!1}),di.call(this,t,e),this.matrix=this.light.matrixWorld,this.matrixAutoUpdate=!1,this.update()}function ba(t,e){F.call(this),this.light=t,this.light.updateMatrixWorld(),this.matrix=t.matrixWorld,this.matrixAutoUpdate=!1,this.color=e,t=new Bi({fog:!1}),e=new Ft,e.addAttribute("position",new J(new Float32Array(15),3)),this.line=new ji(e,t),this.add(this.line),this.update()}function Aa(t,e,i){F.call(this),this.light=t,this.light.updateMatrixWorld(),this.matrix=t.matrixWorld,this.matrixAutoUpdate=!1,this.color=i,t=new _o(e),t.rotateY(.5*Math.PI),this.material=new Ge({wireframe:!0,fog:!1}),this.color===void 0&&(this.material.vertexColors=2),e=t.getAttribute("position"),e=new Float32Array(3*e.count),t.addAttribute("color",new J(e,3)),this.add(new di(t,this.material)),this.update()}function dl(t,e,i,n){t=t||10,e=e||10,i=new P(i!==void 0?i:4473924),n=new P(n!==void 0?n:8947848);var s=e/2,a=t/e,f=t/2;t=[];for(var p=[],v=0,w=0,C=-f;v<=e;v++,C+=a){t.push(-f,0,C,f,0,C),t.push(C,0,-f,C,0,f);var L=v===s?i:n;L.toArray(p,w),w+=3,L.toArray(p,w),w+=3,L.toArray(p,w),w+=3,L.toArray(p,w),w+=3}e=new Ft,e.addAttribute("position",new Et(t,3)),e.addAttribute("color",new Et(p,3)),i=new Bi({vertexColors:2}),gi.call(this,e,i)}function ih(t,e,i,n,s,a){t=t||10,e=e||16,i=i||8,n=n||64,s=new P(s!==void 0?s:4473924),a=new P(a!==void 0?a:8947848);var f=[],p=[],v;for(v=0;v<=e;v++){var w=v/e*2*Math.PI,C=Math.sin(w)*t;w=Math.cos(w)*t,f.push(0,0,0),f.push(C,0,w);var L=v&1?s:a;p.push(L.r,L.g,L.b),p.push(L.r,L.g,L.b)}for(v=0;v<=i;v++){L=v&1?s:a;var B=t-t/i*v;for(e=0;e<n;e++)w=e/n*2*Math.PI,C=Math.sin(w)*B,w=Math.cos(w)*B,f.push(C,0,w),p.push(L.r,L.g,L.b),w=(e+1)/n*2*Math.PI,C=Math.sin(w)*B,w=Math.cos(w)*B,f.push(C,0,w),p.push(L.r,L.g,L.b)}t=new Ft,t.addAttribute("position",new Et(f,3)),t.addAttribute("color",new Et(p,3)),f=new Bi({vertexColors:2}),gi.call(this,t,f)}function ml(t,e,i,n){this.object=t,this.size=e!==void 0?e:1,t=i!==void 0?i:16776960,n=n!==void 0?n:1,e=0,(i=this.object.geometry)&&i.isGeometry?e=i.faces.length:console.warn("THREE.FaceNormalsHelper: only THREE.Geometry is supported. Use THREE.VertexNormalsHelper, instead."),i=new Ft,e=new Et(6*e,3),i.addAttribute("position",e),gi.call(this,i,new Bi({color:t,linewidth:n})),this.matrixAutoUpdate=!1,this.update()}function pr(t,e,i){F.call(this),this.light=t,this.light.updateMatrixWorld(),this.matrix=t.matrixWorld,this.matrixAutoUpdate=!1,this.color=i,e===void 0&&(e=1),t=new Ft,t.addAttribute("position",new Et([-e,e,0,e,e,0,e,-e,0,-e,-e,0,-e,e,0],3)),e=new Bi({fog:!1}),this.lightPlane=new ji(t,e),this.add(this.lightPlane),t=new Ft,t.addAttribute("position",new Et([0,0,0,0,0,1],3)),this.targetLine=new ji(t,e),this.add(this.targetLine),this.update()}function gl(t){function e(H,q,K){i(H,K),i(q,K)}function i(H,q){a.push(0,0,0),f.push(q.r,q.g,q.b),p[H]===void 0&&(p[H]=[]),p[H].push(a.length/3-1)}var n=new Ft,s=new Bi({color:16777215,vertexColors:1}),a=[],f=[],p={},v=new P(16755200),w=new P(16711680),C=new P(43775),L=new P(16777215),B=new P(3355443);e("n1","n2",v),e("n2","n4",v),e("n4","n3",v),e("n3","n1",v),e("f1","f2",v),e("f2","f4",v),e("f4","f3",v),e("f3","f1",v),e("n1","f1",v),e("n2","f2",v),e("n3","f3",v),e("n4","f4",v),e("p","n1",w),e("p","n2",w),e("p","n3",w),e("p","n4",w),e("u1","u2",C),e("u2","u3",C),e("u3","u1",C),e("c","t",L),e("p","c",B),e("cn1","cn2",B),e("cn3","cn4",B),e("cf1","cf2",B),e("cf3","cf4",B),n.addAttribute("position",new Et(a,3)),n.addAttribute("color",new Et(f,3)),gi.call(this,n,s),this.camera=t,this.camera.updateProjectionMatrix&&this.camera.updateProjectionMatrix(),this.matrix=t.matrixWorld,this.matrixAutoUpdate=!1,this.pointMap=p,this.update()}function Ds(t,e){this.object=t,e===void 0&&(e=16776960),t=new Uint16Array([0,1,1,2,2,3,3,0,4,5,5,6,6,7,7,4,0,4,1,5,2,6,3,7]);var i=new Float32Array(24),n=new Ft;n.setIndex(new J(t,1)),n.addAttribute("position",new J(i,3)),gi.call(this,n,new Bi({color:e})),this.matrixAutoUpdate=!1,this.update()}function vl(t,e){this.type="Box3Helper",this.box=t,t=e!==void 0?e:16776960,e=new Uint16Array([0,1,1,2,2,3,3,0,4,5,5,6,6,7,7,4,0,4,1,5,2,6,3,7]);var i=new Ft;i.setIndex(new J(e,1)),i.addAttribute("position",new Et([1,1,1,-1,1,1,-1,-1,1,1,-1,1,1,1,-1,-1,1,-1,-1,-1,-1,1,-1,-1],3)),gi.call(this,i,new Bi({color:t})),this.geometry.computeBoundingSphere()}function _l(t,e,i){this.type="PlaneHelper",this.plane=t,this.size=e===void 0?1:e,t=i!==void 0?i:16776960,e=new Ft,e.addAttribute("position",new Et([1,-1,1,-1,1,1,-1,-1,1,1,1,1,-1,1,1,-1,-1,1,1,-1,1,1,1,1,0,0,1,0,0,0],3)),e.computeBoundingSphere(),ji.call(this,e,new Bi({color:t})),e=new Ft,e.addAttribute("position",new Et([1,1,1,-1,1,1,-1,-1,1,1,1,1,-1,-1,1,1,-1,1],3)),e.computeBoundingSphere(),this.add(new di(e,new Ge({color:t,opacity:.2,transparent:!0,depthWrite:!1})))}function zs(t,e,i,n,s,a){F.call(this),t===void 0&&(t=new THREE.Vector3(0,0,1)),e===void 0&&(e=new THREE.Vector3(0,0,0)),i===void 0&&(i=1),n===void 0&&(n=16776960),s===void 0&&(s=.2*i),a===void 0&&(a=.2*s),lh===void 0&&(lh=new Ft,lh.addAttribute("position",new Et([0,0,0,0,1,0],3)),Tl=new Rs(0,.5,1,5,1),Tl.translate(0,-.5,0)),this.position.copy(e),this.line=new ji(lh,new Bi({color:n})),this.line.matrixAutoUpdate=!1,this.add(this.line),this.cone=new di(Tl,new Ge({color:n})),this.cone.matrixAutoUpdate=!1,this.add(this.cone),this.setDirection(t),this.setLength(i,s,a)}function xr(t){t=t||1;var e=[0,0,0,t,0,0,0,0,0,0,t,0,0,0,0,0,0,t];t=new Ft,t.addAttribute("position",new Et(e,3)),t.addAttribute("color",new Et([1,0,0,1,.6,0,0,1,0,.6,1,0,0,0,1,0,.6,1],3)),e=new Bi({vertexColors:2}),gi.call(this,t,e)}function Pu(t){console.warn("THREE.ClosedSplineCurve3 has been deprecated. Use THREE.CatmullRomCurve3 instead."),On.call(this,t),this.type="catmullrom",this.closed=!0}function Lu(t){console.warn("THREE.SplineCurve3 has been deprecated. Use THREE.CatmullRomCurve3 instead."),On.call(this,t),this.type="catmullrom"}function Hh(t){console.warn("THREE.Spline has been removed. Use THREE.CatmullRomCurve3 instead."),On.call(this,t),this.type="catmullrom"}Number.EPSILON===void 0&&(Number.EPSILON=Math.pow(2,-52)),Number.isInteger===void 0&&(Number.isInteger=function(t){return typeof t=="number"&&isFinite(t)&&Math.floor(t)===t}),Math.sign===void 0&&(Math.sign=function(t){return 0>t?-1:0<t?1:+t}),!("name"in Function.prototype)&&Object.defineProperty(Function.prototype,"name",{get:function(){return this.toString().match(/^\s*function\s*([^\(\s]*)/)[1]}}),Object.assign===void 0&&function(){Object.assign=function(t){if(t==null)throw new TypeError("Cannot convert undefined or null to object");for(var e=Object(t),i=1;i<arguments.length;i++){var n=arguments[i];if(n!=null)for(var s in n)Object.prototype.hasOwnProperty.call(n,s)&&(e[s]=n[s])}return e}}(),Object.assign(l.prototype,{addEventListener:function(t,e){this._listeners===void 0&&(this._listeners={});var i=this._listeners;i[t]===void 0&&(i[t]=[]),i[t].indexOf(e)===-1&&i[t].push(e)},hasEventListener:function(t,e){if(this._listeners===void 0)return!1;var i=this._listeners;return i[t]!==void 0&&i[t].indexOf(e)!==-1},removeEventListener:function(t,e){this._listeners!==void 0&&(t=this._listeners[t],t!==void 0&&(e=t.indexOf(e),e!==-1&&t.splice(e,1)))},dispatchEvent:function(t){if(this._listeners!==void 0){var e=this._listeners[t.type];if(e!==void 0){t.target=this,e=e.slice(0);for(var i=0,n=e.length;i<n;i++)e[i].call(this,t)}}}});var pi={DEG2RAD:Math.PI/180,RAD2DEG:180/Math.PI,generateUUID:function(){for(var t=[],e=0;256>e;e++)t[e]=(16>e?"0":"")+e.toString(16);return function(){var i=4294967295*Math.random()|0,n=4294967295*Math.random()|0,s=4294967295*Math.random()|0,a=4294967295*Math.random()|0;return(t[i&255]+t[i>>8&255]+t[i>>16&255]+t[i>>24&255]+"-"+t[n&255]+t[n>>8&255]+"-"+t[n>>16&15|64]+t[n>>24&255]+"-"+t[s&63|128]+t[s>>8&255]+"-"+t[s>>16&255]+t[s>>24&255]+t[a&255]+t[a>>8&255]+t[a>>16&255]+t[a>>24&255]).toUpperCase()}}(),clamp:function(t,e,i){return Math.max(e,Math.min(i,t))},euclideanModulo:function(t,e){return(t%e+e)%e},mapLinear:function(t,e,i,n,s){return n+(t-e)*(s-n)/(i-e)},lerp:function(t,e,i){return(1-i)*t+i*e},smoothstep:function(t,e,i){return t<=e?0:t>=i?1:(t=(t-e)/(i-e),t*t*(3-2*t))},smootherstep:function(t,e,i){return t<=e?0:t>=i?1:(t=(t-e)/(i-e),t*t*t*(t*(6*t-15)+10))},randInt:function(t,e){return t+Math.floor(Math.random()*(e-t+1))},randFloat:function(t,e){return t+Math.random()*(e-t)},randFloatSpread:function(t){return t*(.5-Math.random())},degToRad:function(t){return t*pi.DEG2RAD},radToDeg:function(t){return t*pi.RAD2DEG},isPowerOfTwo:function(t){return(t&t-1)===0&&t!==0},ceilPowerOfTwo:function(t){return Math.pow(2,Math.ceil(Math.log(t)/Math.LN2))},floorPowerOfTwo:function(t){return Math.pow(2,Math.floor(Math.log(t)/Math.LN2))}};Object.defineProperties(o.prototype,{width:{get:function(){return this.x},set:function(t){this.x=t}},height:{get:function(){return this.y},set:function(t){this.y=t}}}),Object.assign(o.prototype,{isVector2:!0,set:function(t,e){return this.x=t,this.y=e,this},setScalar:function(t){return this.y=this.x=t,this},setX:function(t){return this.x=t,this},setY:function(t){return this.y=t,this},setComponent:function(t,e){switch(t){case 0:this.x=e;break;case 1:this.y=e;break;default:throw Error("index is out of range: "+t)}return this},getComponent:function(t){switch(t){case 0:return this.x;case 1:return this.y;default:throw Error("index is out of range: "+t)}},clone:function(){return new this.constructor(this.x,this.y)},copy:function(t){return this.x=t.x,this.y=t.y,this},add:function(t,e){return e!==void 0?(console.warn("THREE.Vector2: .add() now only accepts one argument. Use .addVectors( a, b ) instead."),this.addVectors(t,e)):(this.x+=t.x,this.y+=t.y,this)},addScalar:function(t){return this.x+=t,this.y+=t,this},addVectors:function(t,e){return this.x=t.x+e.x,this.y=t.y+e.y,this},addScaledVector:function(t,e){return this.x+=t.x*e,this.y+=t.y*e,this},sub:function(t,e){return e!==void 0?(console.warn("THREE.Vector2: .sub() now only accepts one argument. Use .subVectors( a, b ) instead."),this.subVectors(t,e)):(this.x-=t.x,this.y-=t.y,this)},subScalar:function(t){return this.x-=t,this.y-=t,this},subVectors:function(t,e){return this.x=t.x-e.x,this.y=t.y-e.y,this},multiply:function(t){return this.x*=t.x,this.y*=t.y,this},multiplyScalar:function(t){return this.x*=t,this.y*=t,this},divide:function(t){return this.x/=t.x,this.y/=t.y,this},divideScalar:function(t){return this.multiplyScalar(1/t)},applyMatrix3:function(t){var e=this.x,i=this.y;return t=t.elements,this.x=t[0]*e+t[3]*i+t[6],this.y=t[1]*e+t[4]*i+t[7],this},min:function(t){return this.x=Math.min(this.x,t.x),this.y=Math.min(this.y,t.y),this},max:function(t){return this.x=Math.max(this.x,t.x),this.y=Math.max(this.y,t.y),this},clamp:function(t,e){return this.x=Math.max(t.x,Math.min(e.x,this.x)),this.y=Math.max(t.y,Math.min(e.y,this.y)),this},clampScalar:function(){var t=new o,e=new o;return function(i,n){return t.set(i,i),e.set(n,n),this.clamp(t,e)}}(),clampLength:function(t,e){var i=this.length();return this.divideScalar(i||1).multiplyScalar(Math.max(t,Math.min(e,i)))},floor:function(){return this.x=Math.floor(this.x),this.y=Math.floor(this.y),this},ceil:function(){return this.x=Math.ceil(this.x),this.y=Math.ceil(this.y),this},round:function(){return this.x=Math.round(this.x),this.y=Math.round(this.y),this},roundToZero:function(){return this.x=0>this.x?Math.ceil(this.x):Math.floor(this.x),this.y=0>this.y?Math.ceil(this.y):Math.floor(this.y),this},negate:function(){return this.x=-this.x,this.y=-this.y,this},dot:function(t){return this.x*t.x+this.y*t.y},cross:function(t){return this.x*t.y-this.y*t.x},lengthSq:function(){return this.x*this.x+this.y*this.y},length:function(){return Math.sqrt(this.x*this.x+this.y*this.y)},manhattanLength:function(){return Math.abs(this.x)+Math.abs(this.y)},normalize:function(){return this.divideScalar(this.length()||1)},angle:function(){var t=Math.atan2(this.y,this.x);return 0>t&&(t+=2*Math.PI),t},distanceTo:function(t){return Math.sqrt(this.distanceToSquared(t))},distanceToSquared:function(t){var e=this.x-t.x;return t=this.y-t.y,e*e+t*t},manhattanDistanceTo:function(t){return Math.abs(this.x-t.x)+Math.abs(this.y-t.y)},setLength:function(t){return this.normalize().multiplyScalar(t)},lerp:function(t,e){return this.x+=(t.x-this.x)*e,this.y+=(t.y-this.y)*e,this},lerpVectors:function(t,e,i){return this.subVectors(e,t).multiplyScalar(i).add(t)},equals:function(t){return t.x===this.x&&t.y===this.y},fromArray:function(t,e){return e===void 0&&(e=0),this.x=t[e],this.y=t[e+1],this},toArray:function(t,e){return t===void 0&&(t=[]),e===void 0&&(e=0),t[e]=this.x,t[e+1]=this.y,t},fromBufferAttribute:function(t,e,i){return i!==void 0&&console.warn("THREE.Vector2: offset has been removed from .fromBufferAttribute()."),this.x=t.getX(e),this.y=t.getY(e),this},rotateAround:function(t,e){var i=Math.cos(e);e=Math.sin(e);var n=this.x-t.x,s=this.y-t.y;return this.x=n*i-s*e+t.x,this.y=n*e+s*i+t.y,this}}),Object.assign(c.prototype,{isMatrix4:!0,set:function(t,e,i,n,s,a,f,p,v,w,C,L,B,H,q,K){var rt=this.elements;return rt[0]=t,rt[4]=e,rt[8]=i,rt[12]=n,rt[1]=s,rt[5]=a,rt[9]=f,rt[13]=p,rt[2]=v,rt[6]=w,rt[10]=C,rt[14]=L,rt[3]=B,rt[7]=H,rt[11]=q,rt[15]=K,this},identity:function(){return this.set(1,0,0,0,0,1,0,0,0,0,1,0,0,0,0,1),this},clone:function(){return new c().fromArray(this.elements)},copy:function(t){var e=this.elements;return t=t.elements,e[0]=t[0],e[1]=t[1],e[2]=t[2],e[3]=t[3],e[4]=t[4],e[5]=t[5],e[6]=t[6],e[7]=t[7],e[8]=t[8],e[9]=t[9],e[10]=t[10],e[11]=t[11],e[12]=t[12],e[13]=t[13],e[14]=t[14],e[15]=t[15],this},copyPosition:function(t){var e=this.elements;return t=t.elements,e[12]=t[12],e[13]=t[13],e[14]=t[14],this},extractBasis:function(t,e,i){return t.setFromMatrixColumn(this,0),e.setFromMatrixColumn(this,1),i.setFromMatrixColumn(this,2),this},makeBasis:function(t,e,i){return this.set(t.x,e.x,i.x,0,t.y,e.y,i.y,0,t.z,e.z,i.z,0,0,0,0,1),this},extractRotation:function(){var t=new u;return function(e){var i=this.elements,n=e.elements,s=1/t.setFromMatrixColumn(e,0).length(),a=1/t.setFromMatrixColumn(e,1).length();return e=1/t.setFromMatrixColumn(e,2).length(),i[0]=n[0]*s,i[1]=n[1]*s,i[2]=n[2]*s,i[3]=0,i[4]=n[4]*a,i[5]=n[5]*a,i[6]=n[6]*a,i[7]=0,i[8]=n[8]*e,i[9]=n[9]*e,i[10]=n[10]*e,i[11]=0,i[12]=0,i[13]=0,i[14]=0,i[15]=1,this}}(),makeRotationFromEuler:function(t){t&&t.isEuler||console.error("THREE.Matrix4: .makeRotationFromEuler() now expects a Euler rotation rather than a Vector3 and order.");var e=this.elements,i=t.x,n=t.y,s=t.z,a=Math.cos(i);i=Math.sin(i);var f=Math.cos(n);n=Math.sin(n);var p=Math.cos(s);if(s=Math.sin(s),t.order==="XYZ"){t=a*p;var v=a*s,w=i*p,C=i*s;e[0]=f*p,e[4]=-f*s,e[8]=n,e[1]=v+w*n,e[5]=t-C*n,e[9]=-i*f,e[2]=C-t*n,e[6]=w+v*n,e[10]=a*f}else t.order==="YXZ"?(t=f*p,v=f*s,w=n*p,C=n*s,e[0]=t+C*i,e[4]=w*i-v,e[8]=a*n,e[1]=a*s,e[5]=a*p,e[9]=-i,e[2]=v*i-w,e[6]=C+t*i,e[10]=a*f):t.order==="ZXY"?(t=f*p,v=f*s,w=n*p,C=n*s,e[0]=t-C*i,e[4]=-a*s,e[8]=w+v*i,e[1]=v+w*i,e[5]=a*p,e[9]=C-t*i,e[2]=-a*n,e[6]=i,e[10]=a*f):t.order==="ZYX"?(t=a*p,v=a*s,w=i*p,C=i*s,e[0]=f*p,e[4]=w*n-v,e[8]=t*n+C,e[1]=f*s,e[5]=C*n+t,e[9]=v*n-w,e[2]=-n,e[6]=i*f,e[10]=a*f):t.order==="YZX"?(t=a*f,v=a*n,w=i*f,C=i*n,e[0]=f*p,e[4]=C-t*s,e[8]=w*s+v,e[1]=s,e[5]=a*p,e[9]=-i*p,e[2]=-n*p,e[6]=v*s+w,e[10]=t-C*s):t.order==="XZY"&&(t=a*f,v=a*n,w=i*f,C=i*n,e[0]=f*p,e[4]=-s,e[8]=n*p,e[1]=t*s+C,e[5]=a*p,e[9]=v*s-w,e[2]=w*s-v,e[6]=i*p,e[10]=C*s+t);return e[3]=0,e[7]=0,e[11]=0,e[12]=0,e[13]=0,e[14]=0,e[15]=1,this},makeRotationFromQuaternion:function(){var t=new u(0,0,0),e=new u(1,1,1);return function(i){return this.compose(t,i,e)}}(),lookAt:function(){var t=new u,e=new u,i=new u;return function(n,s,a){var f=this.elements;return i.subVectors(n,s),i.lengthSq()===0&&(i.z=1),i.normalize(),t.crossVectors(a,i),t.lengthSq()===0&&(Math.abs(a.z)===1?i.x+=1e-4:i.z+=1e-4,i.normalize(),t.crossVectors(a,i)),t.normalize(),e.crossVectors(i,t),f[0]=t.x,f[4]=e.x,f[8]=i.x,f[1]=t.y,f[5]=e.y,f[9]=i.y,f[2]=t.z,f[6]=e.z,f[10]=i.z,this}}(),multiply:function(t,e){return e!==void 0?(console.warn("THREE.Matrix4: .multiply() now only accepts one argument. Use .multiplyMatrices( a, b ) instead."),this.multiplyMatrices(t,e)):this.multiplyMatrices(this,t)},premultiply:function(t){return this.multiplyMatrices(t,this)},multiplyMatrices:function(t,e){var i=t.elements,n=e.elements;e=this.elements,t=i[0];var s=i[4],a=i[8],f=i[12],p=i[1],v=i[5],w=i[9],C=i[13],L=i[2],B=i[6],H=i[10],q=i[14],K=i[3],rt=i[7],xt=i[11];i=i[15];var gt=n[0],At=n[4],wt=n[8],Vt=n[12],Z=n[1],st=n[5],zt=n[9],ee=n[13],$t=n[2],qt=n[6],Te=n[10],me=n[14],Ie=n[3],be=n[7],ae=n[11];return n=n[15],e[0]=t*gt+s*Z+a*$t+f*Ie,e[4]=t*At+s*st+a*qt+f*be,e[8]=t*wt+s*zt+a*Te+f*ae,e[12]=t*Vt+s*ee+a*me+f*n,e[1]=p*gt+v*Z+w*$t+C*Ie,e[5]=p*At+v*st+w*qt+C*be,e[9]=p*wt+v*zt+w*Te+C*ae,e[13]=p*Vt+v*ee+w*me+C*n,e[2]=L*gt+B*Z+H*$t+q*Ie,e[6]=L*At+B*st+H*qt+q*be,e[10]=L*wt+B*zt+H*Te+q*ae,e[14]=L*Vt+B*ee+H*me+q*n,e[3]=K*gt+rt*Z+xt*$t+i*Ie,e[7]=K*At+rt*st+xt*qt+i*be,e[11]=K*wt+rt*zt+xt*Te+i*ae,e[15]=K*Vt+rt*ee+xt*me+i*n,this},multiplyScalar:function(t){var e=this.elements;return e[0]*=t,e[4]*=t,e[8]*=t,e[12]*=t,e[1]*=t,e[5]*=t,e[9]*=t,e[13]*=t,e[2]*=t,e[6]*=t,e[10]*=t,e[14]*=t,e[3]*=t,e[7]*=t,e[11]*=t,e[15]*=t,this},applyToBufferAttribute:function(){var t=new u;return function(e){for(var i=0,n=e.count;i<n;i++)t.x=e.getX(i),t.y=e.getY(i),t.z=e.getZ(i),t.applyMatrix4(this),e.setXYZ(i,t.x,t.y,t.z);return e}}(),determinant:function(){var t=this.elements,e=t[0],i=t[4],n=t[8],s=t[12],a=t[1],f=t[5],p=t[9],v=t[13],w=t[2],C=t[6],L=t[10],B=t[14];return t[3]*(+s*p*C-n*v*C-s*f*L+i*v*L+n*f*B-i*p*B)+t[7]*(+e*p*B-e*v*L+s*a*L-n*a*B+n*v*w-s*p*w)+t[11]*(+e*v*C-e*f*B-s*a*C+i*a*B+s*f*w-i*v*w)+t[15]*(-n*f*w-e*p*C+e*f*L+n*a*C-i*a*L+i*p*w)},transpose:function(){var t=this.elements,e=t[1];return t[1]=t[4],t[4]=e,e=t[2],t[2]=t[8],t[8]=e,e=t[6],t[6]=t[9],t[9]=e,e=t[3],t[3]=t[12],t[12]=e,e=t[7],t[7]=t[13],t[13]=e,e=t[11],t[11]=t[14],t[14]=e,this},setPosition:function(t){var e=this.elements;return e[12]=t.x,e[13]=t.y,e[14]=t.z,this},getInverse:function(t,e){var i=this.elements,n=t.elements;t=n[0];var s=n[1],a=n[2],f=n[3],p=n[4],v=n[5],w=n[6],C=n[7],L=n[8],B=n[9],H=n[10],q=n[11],K=n[12],rt=n[13],xt=n[14];n=n[15];var gt=B*xt*C-rt*H*C+rt*w*q-v*xt*q-B*w*n+v*H*n,At=K*H*C-L*xt*C-K*w*q+p*xt*q+L*w*n-p*H*n,wt=L*rt*C-K*B*C+K*v*q-p*rt*q-L*v*n+p*B*n,Vt=K*B*w-L*rt*w-K*v*H+p*rt*H+L*v*xt-p*B*xt,Z=t*gt+s*At+a*wt+f*Vt;if(Z===0){if(e===!0)throw Error("THREE.Matrix4: .getInverse() can't invert matrix, determinant is 0");return console.warn("THREE.Matrix4: .getInverse() can't invert matrix, determinant is 0"),this.identity()}return e=1/Z,i[0]=gt*e,i[1]=(rt*H*f-B*xt*f-rt*a*q+s*xt*q+B*a*n-s*H*n)*e,i[2]=(v*xt*f-rt*w*f+rt*a*C-s*xt*C-v*a*n+s*w*n)*e,i[3]=(B*w*f-v*H*f-B*a*C+s*H*C+v*a*q-s*w*q)*e,i[4]=At*e,i[5]=(L*xt*f-K*H*f+K*a*q-t*xt*q-L*a*n+t*H*n)*e,i[6]=(K*w*f-p*xt*f-K*a*C+t*xt*C+p*a*n-t*w*n)*e,i[7]=(p*H*f-L*w*f+L*a*C-t*H*C-p*a*q+t*w*q)*e,i[8]=wt*e,i[9]=(K*B*f-L*rt*f-K*s*q+t*rt*q+L*s*n-t*B*n)*e,i[10]=(p*rt*f-K*v*f+K*s*C-t*rt*C-p*s*n+t*v*n)*e,i[11]=(L*v*f-p*B*f-L*s*C+t*B*C+p*s*q-t*v*q)*e,i[12]=Vt*e,i[13]=(L*rt*a-K*B*a+K*s*H-t*rt*H-L*s*xt+t*B*xt)*e,i[14]=(K*v*a-p*rt*a-K*s*w+t*rt*w+p*s*xt-t*v*xt)*e,i[15]=(p*B*a-L*v*a+L*s*w-t*B*w-p*s*H+t*v*H)*e,this},scale:function(t){var e=this.elements,i=t.x,n=t.y;return t=t.z,e[0]*=i,e[4]*=n,e[8]*=t,e[1]*=i,e[5]*=n,e[9]*=t,e[2]*=i,e[6]*=n,e[10]*=t,e[3]*=i,e[7]*=n,e[11]*=t,this},getMaxScaleOnAxis:function(){var t=this.elements;return Math.sqrt(Math.max(t[0]*t[0]+t[1]*t[1]+t[2]*t[2],t[4]*t[4]+t[5]*t[5]+t[6]*t[6],t[8]*t[8]+t[9]*t[9]+t[10]*t[10]))},makeTranslation:function(t,e,i){return this.set(1,0,0,t,0,1,0,e,0,0,1,i,0,0,0,1),this},makeRotationX:function(t){var e=Math.cos(t);return t=Math.sin(t),this.set(1,0,0,0,0,e,-t,0,0,t,e,0,0,0,0,1),this},makeRotationY:function(t){var e=Math.cos(t);return t=Math.sin(t),this.set(e,0,t,0,0,1,0,0,-t,0,e,0,0,0,0,1),this},makeRotationZ:function(t){var e=Math.cos(t);return t=Math.sin(t),this.set(e,-t,0,0,t,e,0,0,0,0,1,0,0,0,0,1),this},makeRotationAxis:function(t,e){var i=Math.cos(e);e=Math.sin(e);var n=1-i,s=t.x,a=t.y;t=t.z;var f=n*s,p=n*a;return this.set(f*s+i,f*a-e*t,f*t+e*a,0,f*a+e*t,p*a+i,p*t-e*s,0,f*t-e*a,p*t+e*s,n*t*t+i,0,0,0,0,1),this},makeScale:function(t,e,i){return this.set(t,0,0,0,0,e,0,0,0,0,i,0,0,0,0,1),this},makeShear:function(t,e,i){return this.set(1,e,i,0,t,1,i,0,t,e,1,0,0,0,0,1),this},compose:function(t,e,i){var n=this.elements,s=e._x,a=e._y,f=e._z,p=e._w,v=s+s,w=a+a,C=f+f;e=s*v;var L=s*w;s*=C;var B=a*w;a*=C,f*=C,v*=p,w*=p,p*=C,C=i.x;var H=i.y;return i=i.z,n[0]=(1-(B+f))*C,n[1]=(L+p)*C,n[2]=(s-w)*C,n[3]=0,n[4]=(L-p)*H,n[5]=(1-(e+f))*H,n[6]=(a+v)*H,n[7]=0,n[8]=(s+w)*i,n[9]=(a-v)*i,n[10]=(1-(e+B))*i,n[11]=0,n[12]=t.x,n[13]=t.y,n[14]=t.z,n[15]=1,this},decompose:function(){var t=new u,e=new c;return function(i,n,s){var a=this.elements,f=t.set(a[0],a[1],a[2]).length(),p=t.set(a[4],a[5],a[6]).length(),v=t.set(a[8],a[9],a[10]).length();0>this.determinant()&&(f=-f),i.x=a[12],i.y=a[13],i.z=a[14],e.copy(this),i=1/f,a=1/p;var w=1/v;return e.elements[0]*=i,e.elements[1]*=i,e.elements[2]*=i,e.elements[4]*=a,e.elements[5]*=a,e.elements[6]*=a,e.elements[8]*=w,e.elements[9]*=w,e.elements[10]*=w,n.setFromRotationMatrix(e),s.x=f,s.y=p,s.z=v,this}}(),makePerspective:function(t,e,i,n,s,a){a===void 0&&console.warn("THREE.Matrix4: .makePerspective() has been redefined and has a new signature. Please check the docs.");var f=this.elements;return f[0]=2*s/(e-t),f[4]=0,f[8]=(e+t)/(e-t),f[12]=0,f[1]=0,f[5]=2*s/(i-n),f[9]=(i+n)/(i-n),f[13]=0,f[2]=0,f[6]=0,f[10]=-(a+s)/(a-s),f[14]=-2*a*s/(a-s),f[3]=0,f[7]=0,f[11]=-1,f[15]=0,this},makeOrthographic:function(t,e,i,n,s,a){var f=this.elements,p=1/(e-t),v=1/(i-n),w=1/(a-s);return f[0]=2*p,f[4]=0,f[8]=0,f[12]=-((e+t)*p),f[1]=0,f[5]=2*v,f[9]=0,f[13]=-((i+n)*v),f[2]=0,f[6]=0,f[10]=-2*w,f[14]=-((a+s)*w),f[3]=0,f[7]=0,f[11]=0,f[15]=1,this},equals:function(t){var e=this.elements;t=t.elements;for(var i=0;16>i;i++)if(e[i]!==t[i])return!1;return!0},fromArray:function(t,e){e===void 0&&(e=0);for(var i=0;16>i;i++)this.elements[i]=t[i+e];return this},toArray:function(t,e){t===void 0&&(t=[]),e===void 0&&(e=0);var i=this.elements;return t[e]=i[0],t[e+1]=i[1],t[e+2]=i[2],t[e+3]=i[3],t[e+4]=i[4],t[e+5]=i[5],t[e+6]=i[6],t[e+7]=i[7],t[e+8]=i[8],t[e+9]=i[9],t[e+10]=i[10],t[e+11]=i[11],t[e+12]=i[12],t[e+13]=i[13],t[e+14]=i[14],t[e+15]=i[15],t}}),Object.assign(d,{slerp:function(t,e,i,n){return i.copy(t).slerp(e,n)},slerpFlat:function(t,e,i,n,s,a,f){var p=i[n+0],v=i[n+1],w=i[n+2];i=i[n+3],n=s[a+0];var C=s[a+1],L=s[a+2];if(s=s[a+3],i!==s||p!==n||v!==C||w!==L){a=1-f;var B=p*n+v*C+w*L+i*s,H=0<=B?1:-1,q=1-B*B;q>Number.EPSILON&&(q=Math.sqrt(q),B=Math.atan2(q,B*H),a=Math.sin(a*B)/q,f=Math.sin(f*B)/q),H*=f,p=p*a+n*H,v=v*a+C*H,w=w*a+L*H,i=i*a+s*H,a===1-f&&(f=1/Math.sqrt(p*p+v*v+w*w+i*i),p*=f,v*=f,w*=f,i*=f)}t[e]=p,t[e+1]=v,t[e+2]=w,t[e+3]=i}}),Object.defineProperties(d.prototype,{x:{get:function(){return this._x},set:function(t){this._x=t,this.onChangeCallback()}},y:{get:function(){return this._y},set:function(t){this._y=t,this.onChangeCallback()}},z:{get:function(){return this._z},set:function(t){this._z=t,this.onChangeCallback()}},w:{get:function(){return this._w},set:function(t){this._w=t,this.onChangeCallback()}}}),Object.assign(d.prototype,{isQuaternion:!0,set:function(t,e,i,n){return this._x=t,this._y=e,this._z=i,this._w=n,this.onChangeCallback(),this},clone:function(){return new this.constructor(this._x,this._y,this._z,this._w)},copy:function(t){return this._x=t.x,this._y=t.y,this._z=t.z,this._w=t.w,this.onChangeCallback(),this},setFromEuler:function(t,e){if(!t||!t.isEuler)throw Error("THREE.Quaternion: .setFromEuler() now expects an Euler rotation rather than a Vector3 and order.");var i=t._x,n=t._y,s=t._z;t=t.order;var a=Math.cos,f=Math.sin,p=a(i/2),v=a(n/2);return a=a(s/2),i=f(i/2),n=f(n/2),s=f(s/2),t==="XYZ"?(this._x=i*v*a+p*n*s,this._y=p*n*a-i*v*s,this._z=p*v*s+i*n*a,this._w=p*v*a-i*n*s):t==="YXZ"?(this._x=i*v*a+p*n*s,this._y=p*n*a-i*v*s,this._z=p*v*s-i*n*a,this._w=p*v*a+i*n*s):t==="ZXY"?(this._x=i*v*a-p*n*s,this._y=p*n*a+i*v*s,this._z=p*v*s+i*n*a,this._w=p*v*a-i*n*s):t==="ZYX"?(this._x=i*v*a-p*n*s,this._y=p*n*a+i*v*s,this._z=p*v*s-i*n*a,this._w=p*v*a+i*n*s):t==="YZX"?(this._x=i*v*a+p*n*s,this._y=p*n*a+i*v*s,this._z=p*v*s-i*n*a,this._w=p*v*a-i*n*s):t==="XZY"&&(this._x=i*v*a-p*n*s,this._y=p*n*a-i*v*s,this._z=p*v*s+i*n*a,this._w=p*v*a+i*n*s),e!==!1&&this.onChangeCallback(),this},setFromAxisAngle:function(t,e){e/=2;var i=Math.sin(e);return this._x=t.x*i,this._y=t.y*i,this._z=t.z*i,this._w=Math.cos(e),this.onChangeCallback(),this},setFromRotationMatrix:function(t){var e=t.elements,i=e[0];t=e[4];var n=e[8],s=e[1],a=e[5],f=e[9],p=e[2],v=e[6];e=e[10];var w=i+a+e;return 0<w?(i=.5/Math.sqrt(w+1),this._w=.25/i,this._x=(v-f)*i,this._y=(n-p)*i,this._z=(s-t)*i):i>a&&i>e?(i=2*Math.sqrt(1+i-a-e),this._w=(v-f)/i,this._x=.25*i,this._y=(t+s)/i,this._z=(n+p)/i):a>e?(i=2*Math.sqrt(1+a-i-e),this._w=(n-p)/i,this._x=(t+s)/i,this._y=.25*i,this._z=(f+v)/i):(i=2*Math.sqrt(1+e-i-a),this._w=(s-t)/i,this._x=(n+p)/i,this._y=(f+v)/i,this._z=.25*i),this.onChangeCallback(),this},setFromUnitVectors:function(){var t=new u,e;return function(i,n){return t===void 0&&(t=new u),e=i.dot(n)+1,1e-6>e?(e=0,Math.abs(i.x)>Math.abs(i.z)?t.set(-i.y,i.x,0):t.set(0,-i.z,i.y)):t.crossVectors(i,n),this._x=t.x,this._y=t.y,this._z=t.z,this._w=e,this.normalize()}}(),angleTo:function(t){return 2*Math.acos(Math.abs(pi.clamp(this.dot(t),-1,1)))},rotateTowards:function(t,e){var i=this.angleTo(t);return i===0?this:(this.slerp(t,Math.min(1,e/i)),this)},inverse:function(){return this.conjugate()},conjugate:function(){return this._x*=-1,this._y*=-1,this._z*=-1,this.onChangeCallback(),this},dot:function(t){return this._x*t._x+this._y*t._y+this._z*t._z+this._w*t._w},lengthSq:function(){return this._x*this._x+this._y*this._y+this._z*this._z+this._w*this._w},length:function(){return Math.sqrt(this._x*this._x+this._y*this._y+this._z*this._z+this._w*this._w)},normalize:function(){var t=this.length();return t===0?(this._z=this._y=this._x=0,this._w=1):(t=1/t,this._x*=t,this._y*=t,this._z*=t,this._w*=t),this.onChangeCallback(),this},multiply:function(t,e){return e!==void 0?(console.warn("THREE.Quaternion: .multiply() now only accepts one argument. Use .multiplyQuaternions( a, b ) instead."),this.multiplyQuaternions(t,e)):this.multiplyQuaternions(this,t)},premultiply:function(t){return this.multiplyQuaternions(t,this)},multiplyQuaternions:function(t,e){var i=t._x,n=t._y,s=t._z;t=t._w;var a=e._x,f=e._y,p=e._z;return e=e._w,this._x=i*e+t*a+n*p-s*f,this._y=n*e+t*f+s*a-i*p,this._z=s*e+t*p+i*f-n*a,this._w=t*e-i*a-n*f-s*p,this.onChangeCallback(),this},slerp:function(t,e){if(e===0)return this;if(e===1)return this.copy(t);var i=this._x,n=this._y,s=this._z,a=this._w,f=a*t._w+i*t._x+n*t._y+s*t._z;if(0>f?(this._w=-t._w,this._x=-t._x,this._y=-t._y,this._z=-t._z,f=-f):this.copy(t),1<=f)return this._w=a,this._x=i,this._y=n,this._z=s,this;if(t=1-f*f,t<=Number.EPSILON)return f=1-e,this._w=f*a+e*this._w,this._x=f*i+e*this._x,this._y=f*n+e*this._y,this._z=f*s+e*this._z,this.normalize();t=Math.sqrt(t);var p=Math.atan2(t,f);return f=Math.sin((1-e)*p)/t,e=Math.sin(e*p)/t,this._w=a*f+this._w*e,this._x=i*f+this._x*e,this._y=n*f+this._y*e,this._z=s*f+this._z*e,this.onChangeCallback(),this},equals:function(t){return t._x===this._x&&t._y===this._y&&t._z===this._z&&t._w===this._w},fromArray:function(t,e){return e===void 0&&(e=0),this._x=t[e],this._y=t[e+1],this._z=t[e+2],this._w=t[e+3],this.onChangeCallback(),this},toArray:function(t,e){return t===void 0&&(t=[]),e===void 0&&(e=0),t[e]=this._x,t[e+1]=this._y,t[e+2]=this._z,t[e+3]=this._w,t},onChange:function(t){return this.onChangeCallback=t,this},onChangeCallback:function(){}}),Object.assign(u.prototype,{isVector3:!0,set:function(t,e,i){return this.x=t,this.y=e,this.z=i,this},setScalar:function(t){return this.z=this.y=this.x=t,this},setX:function(t){return this.x=t,this},setY:function(t){return this.y=t,this},setZ:function(t){return this.z=t,this},setComponent:function(t,e){switch(t){case 0:this.x=e;break;case 1:this.y=e;break;case 2:this.z=e;break;default:throw Error("index is out of range: "+t)}return this},getComponent:function(t){switch(t){case 0:return this.x;case 1:return this.y;case 2:return this.z;default:throw Error("index is out of range: "+t)}},clone:function(){return new this.constructor(this.x,this.y,this.z)},copy:function(t){return this.x=t.x,this.y=t.y,this.z=t.z,this},add:function(t,e){return e!==void 0?(console.warn("THREE.Vector3: .add() now only accepts one argument. Use .addVectors( a, b ) instead."),this.addVectors(t,e)):(this.x+=t.x,this.y+=t.y,this.z+=t.z,this)},addScalar:function(t){return this.x+=t,this.y+=t,this.z+=t,this},addVectors:function(t,e){return this.x=t.x+e.x,this.y=t.y+e.y,this.z=t.z+e.z,this},addScaledVector:function(t,e){return this.x+=t.x*e,this.y+=t.y*e,this.z+=t.z*e,this},sub:function(t,e){return e!==void 0?(console.warn("THREE.Vector3: .sub() now only accepts one argument. Use .subVectors( a, b ) instead."),this.subVectors(t,e)):(this.x-=t.x,this.y-=t.y,this.z-=t.z,this)},subScalar:function(t){return this.x-=t,this.y-=t,this.z-=t,this},subVectors:function(t,e){return this.x=t.x-e.x,this.y=t.y-e.y,this.z=t.z-e.z,this},multiply:function(t,e){return e!==void 0?(console.warn("THREE.Vector3: .multiply() now only accepts one argument. Use .multiplyVectors( a, b ) instead."),this.multiplyVectors(t,e)):(this.x*=t.x,this.y*=t.y,this.z*=t.z,this)},multiplyScalar:function(t){return this.x*=t,this.y*=t,this.z*=t,this},multiplyVectors:function(t,e){return this.x=t.x*e.x,this.y=t.y*e.y,this.z=t.z*e.z,this},applyEuler:function(){var t=new d;return function(e){return e&&e.isEuler||console.error("THREE.Vector3: .applyEuler() now expects an Euler rotation rather than a Vector3 and order."),this.applyQuaternion(t.setFromEuler(e))}}(),applyAxisAngle:function(){var t=new d;return function(e,i){return this.applyQuaternion(t.setFromAxisAngle(e,i))}}(),applyMatrix3:function(t){var e=this.x,i=this.y,n=this.z;return t=t.elements,this.x=t[0]*e+t[3]*i+t[6]*n,this.y=t[1]*e+t[4]*i+t[7]*n,this.z=t[2]*e+t[5]*i+t[8]*n,this},applyMatrix4:function(t){var e=this.x,i=this.y,n=this.z;t=t.elements;var s=1/(t[3]*e+t[7]*i+t[11]*n+t[15]);return this.x=(t[0]*e+t[4]*i+t[8]*n+t[12])*s,this.y=(t[1]*e+t[5]*i+t[9]*n+t[13])*s,this.z=(t[2]*e+t[6]*i+t[10]*n+t[14])*s,this},applyQuaternion:function(t){var e=this.x,i=this.y,n=this.z,s=t.x,a=t.y,f=t.z;t=t.w;var p=t*e+a*n-f*i,v=t*i+f*e-s*n,w=t*n+s*i-a*e;return e=-s*e-a*i-f*n,this.x=p*t+e*-s+v*-f-w*-a,this.y=v*t+e*-a+w*-s-p*-f,this.z=w*t+e*-f+p*-a-v*-s,this},project:function(t){return this.applyMatrix4(t.matrixWorldInverse).applyMatrix4(t.projectionMatrix)},unproject:function(){var t=new c;return function(e){return this.applyMatrix4(t.getInverse(e.projectionMatrix)).applyMatrix4(e.matrixWorld)}}(),transformDirection:function(t){var e=this.x,i=this.y,n=this.z;return t=t.elements,this.x=t[0]*e+t[4]*i+t[8]*n,this.y=t[1]*e+t[5]*i+t[9]*n,this.z=t[2]*e+t[6]*i+t[10]*n,this.normalize()},divide:function(t){return this.x/=t.x,this.y/=t.y,this.z/=t.z,this},divideScalar:function(t){return this.multiplyScalar(1/t)},min:function(t){return this.x=Math.min(this.x,t.x),this.y=Math.min(this.y,t.y),this.z=Math.min(this.z,t.z),this},max:function(t){return this.x=Math.max(this.x,t.x),this.y=Math.max(this.y,t.y),this.z=Math.max(this.z,t.z),this},clamp:function(t,e){return this.x=Math.max(t.x,Math.min(e.x,this.x)),this.y=Math.max(t.y,Math.min(e.y,this.y)),this.z=Math.max(t.z,Math.min(e.z,this.z)),this},clampScalar:function(){var t=new u,e=new u;return function(i,n){return t.set(i,i,i),e.set(n,n,n),this.clamp(t,e)}}(),clampLength:function(t,e){var i=this.length();return this.divideScalar(i||1).multiplyScalar(Math.max(t,Math.min(e,i)))},floor:function(){return this.x=Math.floor(this.x),this.y=Math.floor(this.y),this.z=Math.floor(this.z),this},ceil:function(){return this.x=Math.ceil(this.x),this.y=Math.ceil(this.y),this.z=Math.ceil(this.z),this},round:function(){return this.x=Math.round(this.x),this.y=Math.round(this.y),this.z=Math.round(this.z),this},roundToZero:function(){return this.x=0>this.x?Math.ceil(this.x):Math.floor(this.x),this.y=0>this.y?Math.ceil(this.y):Math.floor(this.y),this.z=0>this.z?Math.ceil(this.z):Math.floor(this.z),this},negate:function(){return this.x=-this.x,this.y=-this.y,this.z=-this.z,this},dot:function(t){return this.x*t.x+this.y*t.y+this.z*t.z},lengthSq:function(){return this.x*this.x+this.y*this.y+this.z*this.z},length:function(){return Math.sqrt(this.x*this.x+this.y*this.y+this.z*this.z)},manhattanLength:function(){return Math.abs(this.x)+Math.abs(this.y)+Math.abs(this.z)},normalize:function(){return this.divideScalar(this.length()||1)},setLength:function(t){return this.normalize().multiplyScalar(t)},lerp:function(t,e){return this.x+=(t.x-this.x)*e,this.y+=(t.y-this.y)*e,this.z+=(t.z-this.z)*e,this},lerpVectors:function(t,e,i){return this.subVectors(e,t).multiplyScalar(i).add(t)},cross:function(t,e){return e!==void 0?(console.warn("THREE.Vector3: .cross() now only accepts one argument. Use .crossVectors( a, b ) instead."),this.crossVectors(t,e)):this.crossVectors(this,t)},crossVectors:function(t,e){var i=t.x,n=t.y;t=t.z;var s=e.x,a=e.y;return e=e.z,this.x=n*e-t*a,this.y=t*s-i*e,this.z=i*a-n*s,this},projectOnVector:function(t){var e=t.dot(this)/t.lengthSq();return this.copy(t).multiplyScalar(e)},projectOnPlane:function(){var t=new u;return function(e){return t.copy(this).projectOnVector(e),this.sub(t)}}(),reflect:function(){var t=new u;return function(e){return this.sub(t.copy(e).multiplyScalar(2*this.dot(e)))}}(),angleTo:function(t){return t=this.dot(t)/Math.sqrt(this.lengthSq()*t.lengthSq()),Math.acos(pi.clamp(t,-1,1))},distanceTo:function(t){return Math.sqrt(this.distanceToSquared(t))},distanceToSquared:function(t){var e=this.x-t.x,i=this.y-t.y;return t=this.z-t.z,e*e+i*i+t*t},manhattanDistanceTo:function(t){return Math.abs(this.x-t.x)+Math.abs(this.y-t.y)+Math.abs(this.z-t.z)},setFromSpherical:function(t){return this.setFromSphericalCoords(t.radius,t.phi,t.theta)},setFromSphericalCoords:function(t,e,i){var n=Math.sin(e)*t;return this.x=n*Math.sin(i),this.y=Math.cos(e)*t,this.z=n*Math.cos(i),this},setFromCylindrical:function(t){return this.setFromCylindricalCoords(t.radius,t.theta,t.y)},setFromCylindricalCoords:function(t,e,i){return this.x=t*Math.sin(e),this.y=i,this.z=t*Math.cos(e),this},setFromMatrixPosition:function(t){return t=t.elements,this.x=t[12],this.y=t[13],this.z=t[14],this},setFromMatrixScale:function(t){var e=this.setFromMatrixColumn(t,0).length(),i=this.setFromMatrixColumn(t,1).length();return t=this.setFromMatrixColumn(t,2).length(),this.x=e,this.y=i,this.z=t,this},setFromMatrixColumn:function(t,e){return this.fromArray(t.elements,4*e)},equals:function(t){return t.x===this.x&&t.y===this.y&&t.z===this.z},fromArray:function(t,e){return e===void 0&&(e=0),this.x=t[e],this.y=t[e+1],this.z=t[e+2],this},toArray:function(t,e){return t===void 0&&(t=[]),e===void 0&&(e=0),t[e]=this.x,t[e+1]=this.y,t[e+2]=this.z,t},fromBufferAttribute:function(t,e,i){return i!==void 0&&console.warn("THREE.Vector3: offset has been removed from .fromBufferAttribute()."),this.x=t.getX(e),this.y=t.getY(e),this.z=t.getZ(e),this}}),Object.assign(m.prototype,{isMatrix3:!0,set:function(t,e,i,n,s,a,f,p,v){var w=this.elements;return w[0]=t,w[1]=n,w[2]=f,w[3]=e,w[4]=s,w[5]=p,w[6]=i,w[7]=a,w[8]=v,this},identity:function(){return this.set(1,0,0,0,1,0,0,0,1),this},clone:function(){return new this.constructor().fromArray(this.elements)},copy:function(t){var e=this.elements;return t=t.elements,e[0]=t[0],e[1]=t[1],e[2]=t[2],e[3]=t[3],e[4]=t[4],e[5]=t[5],e[6]=t[6],e[7]=t[7],e[8]=t[8],this},setFromMatrix4:function(t){return t=t.elements,this.set(t[0],t[4],t[8],t[1],t[5],t[9],t[2],t[6],t[10]),this},applyToBufferAttribute:function(){var t=new u;return function(e){for(var i=0,n=e.count;i<n;i++)t.x=e.getX(i),t.y=e.getY(i),t.z=e.getZ(i),t.applyMatrix3(this),e.setXYZ(i,t.x,t.y,t.z);return e}}(),multiply:function(t){return this.multiplyMatrices(this,t)},premultiply:function(t){return this.multiplyMatrices(t,this)},multiplyMatrices:function(t,e){var i=t.elements,n=e.elements;e=this.elements,t=i[0];var s=i[3],a=i[6],f=i[1],p=i[4],v=i[7],w=i[2],C=i[5];i=i[8];var L=n[0],B=n[3],H=n[6],q=n[1],K=n[4],rt=n[7],xt=n[2],gt=n[5];return n=n[8],e[0]=t*L+s*q+a*xt,e[3]=t*B+s*K+a*gt,e[6]=t*H+s*rt+a*n,e[1]=f*L+p*q+v*xt,e[4]=f*B+p*K+v*gt,e[7]=f*H+p*rt+v*n,e[2]=w*L+C*q+i*xt,e[5]=w*B+C*K+i*gt,e[8]=w*H+C*rt+i*n,this},multiplyScalar:function(t){var e=this.elements;return e[0]*=t,e[3]*=t,e[6]*=t,e[1]*=t,e[4]*=t,e[7]*=t,e[2]*=t,e[5]*=t,e[8]*=t,this},determinant:function(){var t=this.elements,e=t[0],i=t[1],n=t[2],s=t[3],a=t[4],f=t[5],p=t[6],v=t[7];return t=t[8],e*a*t-e*f*v-i*s*t+i*f*p+n*s*v-n*a*p},getInverse:function(t,e){t&&t.isMatrix4&&console.error("THREE.Matrix3: .getInverse() no longer takes a Matrix4 argument.");var i=t.elements;t=this.elements;var n=i[0],s=i[1],a=i[2],f=i[3],p=i[4],v=i[5],w=i[6],C=i[7];i=i[8];var L=i*p-v*C,B=v*w-i*f,H=C*f-p*w,q=n*L+s*B+a*H;if(q===0){if(e===!0)throw Error("THREE.Matrix3: .getInverse() can't invert matrix, determinant is 0");return console.warn("THREE.Matrix3: .getInverse() can't invert matrix, determinant is 0"),this.identity()}return e=1/q,t[0]=L*e,t[1]=(a*C-i*s)*e,t[2]=(v*s-a*p)*e,t[3]=B*e,t[4]=(i*n-a*w)*e,t[5]=(a*f-v*n)*e,t[6]=H*e,t[7]=(s*w-C*n)*e,t[8]=(p*n-s*f)*e,this},transpose:function(){var t=this.elements,e=t[1];return t[1]=t[3],t[3]=e,e=t[2],t[2]=t[6],t[6]=e,e=t[5],t[5]=t[7],t[7]=e,this},getNormalMatrix:function(t){return this.setFromMatrix4(t).getInverse(this).transpose()},transposeIntoArray:function(t){var e=this.elements;return t[0]=e[0],t[1]=e[3],t[2]=e[6],t[3]=e[1],t[4]=e[4],t[5]=e[7],t[6]=e[2],t[7]=e[5],t[8]=e[8],this},setUvTransform:function(t,e,i,n,s,a,f){var p=Math.cos(s);s=Math.sin(s),this.set(i*p,i*s,-i*(p*a+s*f)+a+t,-n*s,n*p,-n*(-s*a+p*f)+f+e,0,0,1)},scale:function(t,e){var i=this.elements;return i[0]*=t,i[3]*=t,i[6]*=t,i[1]*=e,i[4]*=e,i[7]*=e,this},rotate:function(t){var e=Math.cos(t);t=Math.sin(t);var i=this.elements,n=i[0],s=i[3],a=i[6],f=i[1],p=i[4],v=i[7];return i[0]=e*n+t*f,i[3]=e*s+t*p,i[6]=e*a+t*v,i[1]=-t*n+e*f,i[4]=-t*s+e*p,i[7]=-t*a+e*v,this},translate:function(t,e){var i=this.elements;return i[0]+=t*i[2],i[3]+=t*i[5],i[6]+=t*i[8],i[1]+=e*i[2],i[4]+=e*i[5],i[7]+=e*i[8],this},equals:function(t){var e=this.elements;t=t.elements;for(var i=0;9>i;i++)if(e[i]!==t[i])return!1;return!0},fromArray:function(t,e){e===void 0&&(e=0);for(var i=0;9>i;i++)this.elements[i]=t[i+e];return this},toArray:function(t,e){t===void 0&&(t=[]),e===void 0&&(e=0);var i=this.elements;return t[e]=i[0],t[e+1]=i[1],t[e+2]=i[2],t[e+3]=i[3],t[e+4]=i[4],t[e+5]=i[5],t[e+6]=i[6],t[e+7]=i[7],t[e+8]=i[8],t}});var so={getDataURL:function(t){if(typeof HTMLCanvasElement>"u")return t.src;if(t instanceof HTMLCanvasElement)var e=t;else{e=document.createElementNS("http://www.w3.org/1999/xhtml","canvas"),e.width=t.width,e.height=t.height;var i=e.getContext("2d");t instanceof ImageData?i.putImageData(t,0,0):i.drawImage(t,0,0,t.width,t.height)}return 2048<e.width||2048<e.height?e.toDataURL("image/jpeg",.6):e.toDataURL("image/png")}},No=0;_.DEFAULT_IMAGE=void 0,_.DEFAULT_MAPPING=300,_.prototype=Object.assign(Object.create(l.prototype),{constructor:_,isTexture:!0,updateMatrix:function(){this.matrix.setUvTransform(this.offset.x,this.offset.y,this.repeat.x,this.repeat.y,this.rotation,this.center.x,this.center.y)},clone:function(){return new this.constructor().copy(this)},copy:function(t){return this.name=t.name,this.image=t.image,this.mipmaps=t.mipmaps.slice(0),this.mapping=t.mapping,this.wrapS=t.wrapS,this.wrapT=t.wrapT,this.magFilter=t.magFilter,this.minFilter=t.minFilter,this.anisotropy=t.anisotropy,this.format=t.format,this.type=t.type,this.offset.copy(t.offset),this.repeat.copy(t.repeat),this.center.copy(t.center),this.rotation=t.rotation,this.matrixAutoUpdate=t.matrixAutoUpdate,this.matrix.copy(t.matrix),this.generateMipmaps=t.generateMipmaps,this.premultiplyAlpha=t.premultiplyAlpha,this.flipY=t.flipY,this.unpackAlignment=t.unpackAlignment,this.encoding=t.encoding,this},toJSON:function(t){var e=t===void 0||typeof t=="string";if(!e&&t.textures[this.uuid]!==void 0)return t.textures[this.uuid];var i={metadata:{version:4.5,type:"Texture",generator:"Texture.toJSON"},uuid:this.uuid,name:this.name,mapping:this.mapping,repeat:[this.repeat.x,this.repeat.y],offset:[this.offset.x,this.offset.y],center:[this.center.x,this.center.y],rotation:this.rotation,wrap:[this.wrapS,this.wrapT],format:this.format,minFilter:this.minFilter,magFilter:this.magFilter,anisotropy:this.anisotropy,flipY:this.flipY};if(this.image!==void 0){var n=this.image;if(n.uuid===void 0&&(n.uuid=pi.generateUUID()),!e&&t.images[n.uuid]===void 0){if(Array.isArray(n))for(var s=[],a=0,f=n.length;a<f;a++)s.push(so.getDataURL(n[a]));else s=so.getDataURL(n);t.images[n.uuid]={uuid:n.uuid,url:s}}i.image=n.uuid}return e||(t.textures[this.uuid]=i),i},dispose:function(){this.dispatchEvent({type:"dispose"})},transformUv:function(t){if(this.mapping!==300)return t;if(t.applyMatrix3(this.matrix),0>t.x||1<t.x)switch(this.wrapS){case 1e3:t.x-=Math.floor(t.x);break;case 1001:t.x=0>t.x?0:1;break;case 1002:t.x=Math.abs(Math.floor(t.x)%2)===1?Math.ceil(t.x)-t.x:t.x-Math.floor(t.x)}if(0>t.y||1<t.y)switch(this.wrapT){case 1e3:t.y-=Math.floor(t.y);break;case 1001:t.y=0>t.y?0:1;break;case 1002:t.y=Math.abs(Math.floor(t.y)%2)===1?Math.ceil(t.y)-t.y:t.y-Math.floor(t.y)}return this.flipY&&(t.y=1-t.y),t}}),Object.defineProperty(_.prototype,"needsUpdate",{set:function(t){t===!0&&this.version++}}),Object.assign(y.prototype,{isVector4:!0,set:function(t,e,i,n){return this.x=t,this.y=e,this.z=i,this.w=n,this},setScalar:function(t){return this.w=this.z=this.y=this.x=t,this},setX:function(t){return this.x=t,this},setY:function(t){return this.y=t,this},setZ:function(t){return this.z=t,this},setW:function(t){return this.w=t,this},setComponent:function(t,e){switch(t){case 0:this.x=e;break;case 1:this.y=e;break;case 2:this.z=e;break;case 3:this.w=e;break;default:throw Error("index is out of range: "+t)}return this},getComponent:function(t){switch(t){case 0:return this.x;case 1:return this.y;case 2:return this.z;case 3:return this.w;default:throw Error("index is out of range: "+t)}},clone:function(){return new this.constructor(this.x,this.y,this.z,this.w)},copy:function(t){return this.x=t.x,this.y=t.y,this.z=t.z,this.w=t.w!==void 0?t.w:1,this},add:function(t,e){return e!==void 0?(console.warn("THREE.Vector4: .add() now only accepts one argument. Use .addVectors( a, b ) instead."),this.addVectors(t,e)):(this.x+=t.x,this.y+=t.y,this.z+=t.z,this.w+=t.w,this)},addScalar:function(t){return this.x+=t,this.y+=t,this.z+=t,this.w+=t,this},addVectors:function(t,e){return this.x=t.x+e.x,this.y=t.y+e.y,this.z=t.z+e.z,this.w=t.w+e.w,this},addScaledVector:function(t,e){return this.x+=t.x*e,this.y+=t.y*e,this.z+=t.z*e,this.w+=t.w*e,this},sub:function(t,e){return e!==void 0?(console.warn("THREE.Vector4: .sub() now only accepts one argument. Use .subVectors( a, b ) instead."),this.subVectors(t,e)):(this.x-=t.x,this.y-=t.y,this.z-=t.z,this.w-=t.w,this)},subScalar:function(t){return this.x-=t,this.y-=t,this.z-=t,this.w-=t,this},subVectors:function(t,e){return this.x=t.x-e.x,this.y=t.y-e.y,this.z=t.z-e.z,this.w=t.w-e.w,this},multiplyScalar:function(t){return this.x*=t,this.y*=t,this.z*=t,this.w*=t,this},applyMatrix4:function(t){var e=this.x,i=this.y,n=this.z,s=this.w;return t=t.elements,this.x=t[0]*e+t[4]*i+t[8]*n+t[12]*s,this.y=t[1]*e+t[5]*i+t[9]*n+t[13]*s,this.z=t[2]*e+t[6]*i+t[10]*n+t[14]*s,this.w=t[3]*e+t[7]*i+t[11]*n+t[15]*s,this},divideScalar:function(t){return this.multiplyScalar(1/t)},setAxisAngleFromQuaternion:function(t){this.w=2*Math.acos(t.w);var e=Math.sqrt(1-t.w*t.w);return 1e-4>e?(this.x=1,this.z=this.y=0):(this.x=t.x/e,this.y=t.y/e,this.z=t.z/e),this},setAxisAngleFromRotationMatrix:function(t){t=t.elements;var e=t[0],i=t[4],n=t[8],s=t[1],a=t[5],f=t[9],p=t[2],v=t[6],w=t[10];return .01>Math.abs(i-s)&&.01>Math.abs(n-p)&&.01>Math.abs(f-v)?.1>Math.abs(i+s)&&.1>Math.abs(n+p)&&.1>Math.abs(f+v)&&.1>Math.abs(e+a+w-3)?(this.set(1,0,0,0),this):(t=Math.PI,e=(e+1)/2,a=(a+1)/2,w=(w+1)/2,i=(i+s)/4,n=(n+p)/4,f=(f+v)/4,e>a&&e>w?.01>e?(v=0,i=p=.707106781):(v=Math.sqrt(e),p=i/v,i=n/v):a>w?.01>a?(v=.707106781,p=0,i=.707106781):(p=Math.sqrt(a),v=i/p,i=f/p):.01>w?(p=v=.707106781,i=0):(i=Math.sqrt(w),v=n/i,p=f/i),this.set(v,p,i,t),this):(t=Math.sqrt((v-f)*(v-f)+(n-p)*(n-p)+(s-i)*(s-i)),.001>Math.abs(t)&&(t=1),this.x=(v-f)/t,this.y=(n-p)/t,this.z=(s-i)/t,this.w=Math.acos((e+a+w-1)/2),this)},min:function(t){return this.x=Math.min(this.x,t.x),this.y=Math.min(this.y,t.y),this.z=Math.min(this.z,t.z),this.w=Math.min(this.w,t.w),this},max:function(t){return this.x=Math.max(this.x,t.x),this.y=Math.max(this.y,t.y),this.z=Math.max(this.z,t.z),this.w=Math.max(this.w,t.w),this},clamp:function(t,e){return this.x=Math.max(t.x,Math.min(e.x,this.x)),this.y=Math.max(t.y,Math.min(e.y,this.y)),this.z=Math.max(t.z,Math.min(e.z,this.z)),this.w=Math.max(t.w,Math.min(e.w,this.w)),this},clampScalar:function(){var t,e;return function(i,n){return t===void 0&&(t=new y,e=new y),t.set(i,i,i,i),e.set(n,n,n,n),this.clamp(t,e)}}(),clampLength:function(t,e){var i=this.length();return this.divideScalar(i||1).multiplyScalar(Math.max(t,Math.min(e,i)))},floor:function(){return this.x=Math.floor(this.x),this.y=Math.floor(this.y),this.z=Math.floor(this.z),this.w=Math.floor(this.w),this},ceil:function(){return this.x=Math.ceil(this.x),this.y=Math.ceil(this.y),this.z=Math.ceil(this.z),this.w=Math.ceil(this.w),this},round:function(){return this.x=Math.round(this.x),this.y=Math.round(this.y),this.z=Math.round(this.z),this.w=Math.round(this.w),this},roundToZero:function(){return this.x=0>this.x?Math.ceil(this.x):Math.floor(this.x),this.y=0>this.y?Math.ceil(this.y):Math.floor(this.y),this.z=0>this.z?Math.ceil(this.z):Math.floor(this.z),this.w=0>this.w?Math.ceil(this.w):Math.floor(this.w),this},negate:function(){return this.x=-this.x,this.y=-this.y,this.z=-this.z,this.w=-this.w,this},dot:function(t){return this.x*t.x+this.y*t.y+this.z*t.z+this.w*t.w},lengthSq:function(){return this.x*this.x+this.y*this.y+this.z*this.z+this.w*this.w},length:function(){return Math.sqrt(this.x*this.x+this.y*this.y+this.z*this.z+this.w*this.w)},manhattanLength:function(){return Math.abs(this.x)+Math.abs(this.y)+Math.abs(this.z)+Math.abs(this.w)},normalize:function(){return this.divideScalar(this.length()||1)},setLength:function(t){return this.normalize().multiplyScalar(t)},lerp:function(t,e){return this.x+=(t.x-this.x)*e,this.y+=(t.y-this.y)*e,this.z+=(t.z-this.z)*e,this.w+=(t.w-this.w)*e,this},lerpVectors:function(t,e,i){return this.subVectors(e,t).multiplyScalar(i).add(t)},equals:function(t){return t.x===this.x&&t.y===this.y&&t.z===this.z&&t.w===this.w},fromArray:function(t,e){return e===void 0&&(e=0),this.x=t[e],this.y=t[e+1],this.z=t[e+2],this.w=t[e+3],this},toArray:function(t,e){return t===void 0&&(t=[]),e===void 0&&(e=0),t[e]=this.x,t[e+1]=this.y,t[e+2]=this.z,t[e+3]=this.w,t},fromBufferAttribute:function(t,e,i){return i!==void 0&&console.warn("THREE.Vector4: offset has been removed from .fromBufferAttribute()."),this.x=t.getX(e),this.y=t.getY(e),this.z=t.getZ(e),this.w=t.getW(e),this}}),S.prototype=Object.assign(Object.create(l.prototype),{constructor:S,isWebGLRenderTarget:!0,setSize:function(t,e){(this.width!==t||this.height!==e)&&(this.width=t,this.height=e,this.dispose()),this.viewport.set(0,0,t,e),this.scissor.set(0,0,t,e)},clone:function(){return new this.constructor().copy(this)},copy:function(t){return this.width=t.width,this.height=t.height,this.viewport.copy(t.viewport),this.texture=t.texture.clone(),this.depthBuffer=t.depthBuffer,this.stencilBuffer=t.stencilBuffer,this.depthTexture=t.depthTexture,this},dispose:function(){this.dispatchEvent({type:"dispose"})}}),A.prototype=Object.create(S.prototype),A.prototype.constructor=A,A.prototype.isWebGLRenderTargetCube=!0,I.prototype=Object.create(_.prototype),I.prototype.constructor=I,I.prototype.isDataTexture=!0,Object.assign(k.prototype,{isBox3:!0,set:function(t,e){return this.min.copy(t),this.max.copy(e),this},setFromArray:function(t){for(var e=1/0,i=1/0,n=1/0,s=-1/0,a=-1/0,f=-1/0,p=0,v=t.length;p<v;p+=3){var w=t[p],C=t[p+1],L=t[p+2];w<e&&(e=w),C<i&&(i=C),L<n&&(n=L),w>s&&(s=w),C>a&&(a=C),L>f&&(f=L)}return this.min.set(e,i,n),this.max.set(s,a,f),this},setFromBufferAttribute:function(t){for(var e=1/0,i=1/0,n=1/0,s=-1/0,a=-1/0,f=-1/0,p=0,v=t.count;p<v;p++){var w=t.getX(p),C=t.getY(p),L=t.getZ(p);w<e&&(e=w),C<i&&(i=C),L<n&&(n=L),w>s&&(s=w),C>a&&(a=C),L>f&&(f=L)}return this.min.set(e,i,n),this.max.set(s,a,f),this},setFromPoints:function(t){this.makeEmpty();for(var e=0,i=t.length;e<i;e++)this.expandByPoint(t[e]);return this},setFromCenterAndSize:function(){var t=new u;return function(e,i){return i=t.copy(i).multiplyScalar(.5),this.min.copy(e).sub(i),this.max.copy(e).add(i),this}}(),setFromObject:function(t){return this.makeEmpty(),this.expandByObject(t)},clone:function(){return new this.constructor().copy(this)},copy:function(t){return this.min.copy(t.min),this.max.copy(t.max),this},makeEmpty:function(){return this.min.x=this.min.y=this.min.z=1/0,this.max.x=this.max.y=this.max.z=-1/0,this},isEmpty:function(){return this.max.x<this.min.x||this.max.y<this.min.y||this.max.z<this.min.z},getCenter:function(t){return t===void 0&&(console.warn("THREE.Box3: .getCenter() target is now required"),t=new u),this.isEmpty()?t.set(0,0,0):t.addVectors(this.min,this.max).multiplyScalar(.5)},getSize:function(t){return t===void 0&&(console.warn("THREE.Box3: .getSize() target is now required"),t=new u),this.isEmpty()?t.set(0,0,0):t.subVectors(this.max,this.min)},expandByPoint:function(t){return this.min.min(t),this.max.max(t),this},expandByVector:function(t){return this.min.sub(t),this.max.add(t),this},expandByScalar:function(t){return this.min.addScalar(-t),this.max.addScalar(t),this},expandByObject:function(){function t(a){var f=a.geometry;if(f!==void 0){if(f.isGeometry)for(f=f.vertices,i=0,n=f.length;i<n;i++)s.copy(f[i]),s.applyMatrix4(a.matrixWorld),e.expandByPoint(s);else if(f.isBufferGeometry&&(f=f.attributes.position,f!==void 0))for(i=0,n=f.count;i<n;i++)s.fromBufferAttribute(f,i).applyMatrix4(a.matrixWorld),e.expandByPoint(s)}}var e,i,n,s=new u;return function(a){return e=this,a.updateMatrixWorld(!0),a.traverse(t),this}}(),containsPoint:function(t){return!(t.x<this.min.x||t.x>this.max.x||t.y<this.min.y||t.y>this.max.y||t.z<this.min.z||t.z>this.max.z)},containsBox:function(t){return this.min.x<=t.min.x&&t.max.x<=this.max.x&&this.min.y<=t.min.y&&t.max.y<=this.max.y&&this.min.z<=t.min.z&&t.max.z<=this.max.z},getParameter:function(t,e){return e===void 0&&(console.warn("THREE.Box3: .getParameter() target is now required"),e=new u),e.set((t.x-this.min.x)/(this.max.x-this.min.x),(t.y-this.min.y)/(this.max.y-this.min.y),(t.z-this.min.z)/(this.max.z-this.min.z))},intersectsBox:function(t){return!(t.max.x<this.min.x||t.min.x>this.max.x||t.max.y<this.min.y||t.min.y>this.max.y||t.max.z<this.min.z||t.min.z>this.max.z)},intersectsSphere:function(){var t=new u;return function(e){return this.clampPoint(e.center,t),t.distanceToSquared(e.center)<=e.radius*e.radius}}(),intersectsPlane:function(t){if(0<t.normal.x)var e=t.normal.x*this.min.x,i=t.normal.x*this.max.x;else e=t.normal.x*this.max.x,i=t.normal.x*this.min.x;return 0<t.normal.y?(e+=t.normal.y*this.min.y,i+=t.normal.y*this.max.y):(e+=t.normal.y*this.max.y,i+=t.normal.y*this.min.y),0<t.normal.z?(e+=t.normal.z*this.min.z,i+=t.normal.z*this.max.z):(e+=t.normal.z*this.max.z,i+=t.normal.z*this.min.z),e<=-t.constant&&i>=-t.constant},intersectsTriangle:function(){function t(L){var B,H=0;for(B=L.length-3;H<=B;H+=3){p.fromArray(L,H);var q=w.x*Math.abs(p.x)+w.y*Math.abs(p.y)+w.z*Math.abs(p.z),K=e.dot(p),rt=i.dot(p),xt=n.dot(p);if(Math.max(-Math.max(K,rt,xt),Math.min(K,rt,xt))>q)return!1}return!0}var e=new u,i=new u,n=new u,s=new u,a=new u,f=new u,p=new u,v=new u,w=new u,C=new u;return function(L){return this.isEmpty()||(this.getCenter(v),w.subVectors(this.max,v),e.subVectors(L.a,v),i.subVectors(L.b,v),n.subVectors(L.c,v),s.subVectors(i,e),a.subVectors(n,i),f.subVectors(e,n),L=[0,-s.z,s.y,0,-a.z,a.y,0,-f.z,f.y,s.z,0,-s.x,a.z,0,-a.x,f.z,0,-f.x,-s.y,s.x,0,-a.y,a.x,0,-f.y,f.x,0],!t(L))||(L=[1,0,0,0,1,0,0,0,1],!t(L))?!1:(C.crossVectors(s,a),L=[C.x,C.y,C.z],t(L))}}(),clampPoint:function(t,e){return e===void 0&&(console.warn("THREE.Box3: .clampPoint() target is now required"),e=new u),e.copy(t).clamp(this.min,this.max)},distanceToPoint:function(){var t=new u;return function(e){return t.copy(e).clamp(this.min,this.max).sub(e).length()}}(),getBoundingSphere:function(){var t=new u;return function(e){return e===void 0&&(console.warn("THREE.Box3: .getBoundingSphere() target is now required"),e=new D),this.getCenter(e.center),e.radius=.5*this.getSize(t).length(),e}}(),intersect:function(t){return this.min.max(t.min),this.max.min(t.max),this.isEmpty()&&this.makeEmpty(),this},union:function(t){return this.min.min(t.min),this.max.max(t.max),this},applyMatrix4:function(){var t=[new u,new u,new u,new u,new u,new u,new u,new u];return function(e){return this.isEmpty()?this:(t[0].set(this.min.x,this.min.y,this.min.z).applyMatrix4(e),t[1].set(this.min.x,this.min.y,this.max.z).applyMatrix4(e),t[2].set(this.min.x,this.max.y,this.min.z).applyMatrix4(e),t[3].set(this.min.x,this.max.y,this.max.z).applyMatrix4(e),t[4].set(this.max.x,this.min.y,this.min.z).applyMatrix4(e),t[5].set(this.max.x,this.min.y,this.max.z).applyMatrix4(e),t[6].set(this.max.x,this.max.y,this.min.z).applyMatrix4(e),t[7].set(this.max.x,this.max.y,this.max.z).applyMatrix4(e),this.setFromPoints(t),this)}}(),translate:function(t){return this.min.add(t),this.max.add(t),this},equals:function(t){return t.min.equals(this.min)&&t.max.equals(this.max)}}),Object.assign(D.prototype,{set:function(t,e){return this.center.copy(t),this.radius=e,this},setFromPoints:function(){var t=new k;return function(e,i){var n=this.center;i!==void 0?n.copy(i):t.setFromPoints(e).getCenter(n);for(var s=i=0,a=e.length;s<a;s++)i=Math.max(i,n.distanceToSquared(e[s]));return this.radius=Math.sqrt(i),this}}(),clone:function(){return new this.constructor().copy(this)},copy:function(t){return this.center.copy(t.center),this.radius=t.radius,this},empty:function(){return 0>=this.radius},containsPoint:function(t){return t.distanceToSquared(this.center)<=this.radius*this.radius},distanceToPoint:function(t){return t.distanceTo(this.center)-this.radius},intersectsSphere:function(t){var e=this.radius+t.radius;return t.center.distanceToSquared(this.center)<=e*e},intersectsBox:function(t){return t.intersectsSphere(this)},intersectsPlane:function(t){return Math.abs(t.distanceToPoint(this.center))<=this.radius},clampPoint:function(t,e){var i=this.center.distanceToSquared(t);return e===void 0&&(console.warn("THREE.Sphere: .clampPoint() target is now required"),e=new u),e.copy(t),i>this.radius*this.radius&&(e.sub(this.center).normalize(),e.multiplyScalar(this.radius).add(this.center)),e},getBoundingBox:function(t){return t===void 0&&(console.warn("THREE.Sphere: .getBoundingBox() target is now required"),t=new k),t.set(this.center,this.center),t.expandByScalar(this.radius),t},applyMatrix4:function(t){return this.center.applyMatrix4(t),this.radius*=t.getMaxScaleOnAxis(),this},translate:function(t){return this.center.add(t),this},equals:function(t){return t.center.equals(this.center)&&t.radius===this.radius}}),Object.assign(N.prototype,{set:function(t,e){return this.normal.copy(t),this.constant=e,this},setComponents:function(t,e,i,n){return this.normal.set(t,e,i),this.constant=n,this},setFromNormalAndCoplanarPoint:function(t,e){return this.normal.copy(t),this.constant=-e.dot(this.normal),this},setFromCoplanarPoints:function(){var t=new u,e=new u;return function(i,n,s){return n=t.subVectors(s,n).cross(e.subVectors(i,n)).normalize(),this.setFromNormalAndCoplanarPoint(n,i),this}}(),clone:function(){return new this.constructor().copy(this)},copy:function(t){return this.normal.copy(t.normal),this.constant=t.constant,this},normalize:function(){var t=1/this.normal.length();return this.normal.multiplyScalar(t),this.constant*=t,this},negate:function(){return this.constant*=-1,this.normal.negate(),this},distanceToPoint:function(t){return this.normal.dot(t)+this.constant},distanceToSphere:function(t){return this.distanceToPoint(t.center)-t.radius},projectPoint:function(t,e){return e===void 0&&(console.warn("THREE.Plane: .projectPoint() target is now required"),e=new u),e.copy(this.normal).multiplyScalar(-this.distanceToPoint(t)).add(t)},intersectLine:function(){var t=new u;return function(e,i){i===void 0&&(console.warn("THREE.Plane: .intersectLine() target is now required"),i=new u);var n=e.delta(t),s=this.normal.dot(n);if(s===0){if(this.distanceToPoint(e.start)===0)return i.copy(e.start)}else if(s=-(e.start.dot(this.normal)+this.constant)/s,!(0>s||1<s))return i.copy(n).multiplyScalar(s).add(e.start)}}(),intersectsLine:function(t){var e=this.distanceToPoint(t.start);return t=this.distanceToPoint(t.end),0>e&&0<t||0>t&&0<e},intersectsBox:function(t){return t.intersectsPlane(this)},intersectsSphere:function(t){return t.intersectsPlane(this)},coplanarPoint:function(t){return t===void 0&&(console.warn("THREE.Plane: .coplanarPoint() target is now required"),t=new u),t.copy(this.normal).multiplyScalar(-this.constant)},applyMatrix4:function(){var t=new u,e=new m;return function(i,n){return n=n||e.getNormalMatrix(i),i=this.coplanarPoint(t).applyMatrix4(i),n=this.normal.applyMatrix3(n).normalize(),this.constant=-i.dot(n),this}}(),translate:function(t){return this.constant-=t.dot(this.normal),this},equals:function(t){return t.normal.equals(this.normal)&&t.constant===this.constant}}),Object.assign(E.prototype,{set:function(t,e,i,n,s,a){var f=this.planes;return f[0].copy(t),f[1].copy(e),f[2].copy(i),f[3].copy(n),f[4].copy(s),f[5].copy(a),this},clone:function(){return new this.constructor().copy(this)},copy:function(t){for(var e=this.planes,i=0;6>i;i++)e[i].copy(t.planes[i]);return this},setFromMatrix:function(t){var e=this.planes,i=t.elements;t=i[0];var n=i[1],s=i[2],a=i[3],f=i[4],p=i[5],v=i[6],w=i[7],C=i[8],L=i[9],B=i[10],H=i[11],q=i[12],K=i[13],rt=i[14];return i=i[15],e[0].setComponents(a-t,w-f,H-C,i-q).normalize(),e[1].setComponents(a+t,w+f,H+C,i+q).normalize(),e[2].setComponents(a+n,w+p,H+L,i+K).normalize(),e[3].setComponents(a-n,w-p,H-L,i-K).normalize(),e[4].setComponents(a-s,w-v,H-B,i-rt).normalize(),e[5].setComponents(a+s,w+v,H+B,i+rt).normalize(),this},intersectsObject:function(){var t=new D;return function(e){var i=e.geometry;return i.boundingSphere===null&&i.computeBoundingSphere(),t.copy(i.boundingSphere).applyMatrix4(e.matrixWorld),this.intersectsSphere(t)}}(),intersectsSprite:function(){var t=new D;return function(e){return t.center.set(0,0,0),t.radius=.7071067811865476,t.applyMatrix4(e.matrixWorld),this.intersectsSphere(t)}}(),intersectsSphere:function(t){var e=this.planes,i=t.center;t=-t.radius;for(var n=0;6>n;n++)if(e[n].distanceToPoint(i)<t)return!1;return!0},intersectsBox:function(){var t=new u;return function(e){for(var i=this.planes,n=0;6>n;n++){var s=i[n];if(t.x=0<s.normal.x?e.max.x:e.min.x,t.y=0<s.normal.y?e.max.y:e.min.y,t.z=0<s.normal.z?e.max.z:e.min.z,0>s.distanceToPoint(t))return!1}return!0}}(),containsPoint:function(t){for(var e=this.planes,i=0;6>i;i++)if(0>e[i].distanceToPoint(t))return!1;return!0}});var bi={alphamap_fragment:`#ifdef USE_ALPHAMAP
285
+ `+e),C=e+C,w=ra(p,35633,v+w),C=ra(p,35632,C),p.attachShader(gt,w),p.attachShader(gt,C),n.index0AttributeName!==void 0?p.bindAttribLocation(gt,0,n.index0AttributeName):l.morphTargets===!0&&p.bindAttribLocation(gt,0,"position"),p.linkProgram(gt),l=p.getProgramInfoLog(gt).trim(),f=p.getShaderInfoLog(w).trim(),P=p.getShaderInfoLog(C).trim(),H=B=!0,p.getProgramParameter(gt,35714)===!1?(B=!1,console.error("THREE.WebGLProgram: shader error: ",p.getError(),"35715",p.getProgramParameter(gt,35715),"gl.getProgramInfoLog",l,f,P)):l!==""?console.warn("THREE.WebGLProgram: gl.getProgramInfoLog()",l):(f===""||P==="")&&(H=!1),H&&(this.diagnostics={runnable:B,material:n,programLog:l,vertexShader:{log:f,prefix:v},fragmentShader:{log:P,prefix:e}}),p.deleteShader(w),p.deleteShader(C);var At;this.getUniforms=function(){return At===void 0&&(At=new hs(p,gt,t)),At};var wt;return this.getAttributes=function(){if(wt===void 0){for(var Vt={},Z=p.getProgramParameter(gt,35721),st=0;st<Z;st++){var zt=p.getActiveAttrib(gt,st).name;Vt[zt]=p.getAttribLocation(gt,zt)}wt=Vt}return wt},this.destroy=function(){p.deleteProgram(gt),this.program=void 0},Object.defineProperties(this,{uniforms:{get:function(){return console.warn("THREE.WebGLProgram: .uniforms is now .getUniforms()."),this.getUniforms()}},attributes:{get:function(){return console.warn("THREE.WebGLProgram: .attributes is now .getAttributes()."),this.getAttributes()}}}),this.name=s.name,this.id=ks++,this.code=i,this.usedTimes=1,this.program=gt,this.vertexShader=w,this.fragmentShader=C,this}function lt(t,e,i){function n(p,v){if(p)p.isTexture?w=p.encoding:p.isWebGLRenderTarget&&(console.warn("THREE.WebGLPrograms.getTextureEncodingFromMap: don't use render targets as textures. Use their .texture property instead."),w=p.texture.encoding);else var w=3e3;return w===3e3&&v&&(w=3007),w}var s=[],l={MeshDepthMaterial:"depth",MeshDistanceMaterial:"distanceRGBA",MeshNormalMaterial:"normal",MeshBasicMaterial:"basic",MeshLambertMaterial:"lambert",MeshPhongMaterial:"phong",MeshToonMaterial:"phong",MeshStandardMaterial:"physical",MeshPhysicalMaterial:"physical",MeshMatcapMaterial:"matcap",LineBasicMaterial:"basic",LineDashedMaterial:"dashed",PointsMaterial:"points",ShadowMaterial:"shadow",SpriteMaterial:"sprite"},f="precision supportsVertexTextures map mapEncoding matcapEncoding envMap envMapMode envMapEncoding lightMap aoMap emissiveMap emissiveMapEncoding bumpMap normalMap objectSpaceNormalMap displacementMap specularMap roughnessMap metalnessMap gradientMap alphaMap combine vertexColors fog useFog fogExp flatShading sizeAttenuation logarithmicDepthBuffer skinning maxBones useVertexTexture morphTargets morphNormals maxMorphTargets maxMorphNormals premultipliedAlpha numDirLights numPointLights numSpotLights numHemiLights numRectAreaLights shadowMapEnabled shadowMapType toneMapping physicallyCorrectLights alphaTest doubleSided flipSided numClippingPlanes numClipIntersection depthPacking dithering".split(" ");this.getParameters=function(p,v,w,C,P,B,H){var q=l[p.type];if(H.isSkinnedMesh){var K=H.skeleton.bones;if(i.floatVertexTextures)K=1024;else{var rt=Math.min(Math.floor((i.maxVertexUniforms-20)/4),K.length);rt<K.length?(console.warn("THREE.WebGLRenderer: Skeleton has "+K.length+" bones. This GPU supports "+rt+"."),K=0):K=rt}}else K=0;rt=i.precision,p.precision!==null&&(rt=i.getMaxPrecision(p.precision),rt!==p.precision&&console.warn("THREE.WebGLProgram.getParameters:",p.precision,"not supported, using",rt,"instead."));var xt=t.getRenderTarget();return{shaderID:q,precision:rt,supportsVertexTextures:i.vertexTextures,outputEncoding:n(xt?xt.texture:null,t.gammaOutput),map:!!p.map,mapEncoding:n(p.map,t.gammaInput),matcap:!!p.matcap,matcapEncoding:n(p.matcap,t.gammaInput),envMap:!!p.envMap,envMapMode:p.envMap&&p.envMap.mapping,envMapEncoding:n(p.envMap,t.gammaInput),envMapCubeUV:!!p.envMap&&(p.envMap.mapping===306||p.envMap.mapping===307),lightMap:!!p.lightMap,aoMap:!!p.aoMap,emissiveMap:!!p.emissiveMap,emissiveMapEncoding:n(p.emissiveMap,t.gammaInput),bumpMap:!!p.bumpMap,normalMap:!!p.normalMap,objectSpaceNormalMap:p.normalMapType===1,displacementMap:!!p.displacementMap,roughnessMap:!!p.roughnessMap,metalnessMap:!!p.metalnessMap,specularMap:!!p.specularMap,alphaMap:!!p.alphaMap,gradientMap:!!p.gradientMap,combine:p.combine,vertexColors:p.vertexColors,fog:!!C,useFog:p.fog,fogExp:C&&C.isFogExp2,flatShading:p.flatShading,sizeAttenuation:p.sizeAttenuation,logarithmicDepthBuffer:i.logarithmicDepthBuffer,skinning:p.skinning&&0<K,maxBones:K,useVertexTexture:i.floatVertexTextures,morphTargets:p.morphTargets,morphNormals:p.morphNormals,maxMorphTargets:t.maxMorphTargets,maxMorphNormals:t.maxMorphNormals,numDirLights:v.directional.length,numPointLights:v.point.length,numSpotLights:v.spot.length,numRectAreaLights:v.rectArea.length,numHemiLights:v.hemi.length,numClippingPlanes:P,numClipIntersection:B,dithering:p.dithering,shadowMapEnabled:t.shadowMap.enabled&&H.receiveShadow&&0<w.length,shadowMapType:t.shadowMap.type,toneMapping:t.toneMapping,physicallyCorrectLights:t.physicallyCorrectLights,premultipliedAlpha:p.premultipliedAlpha,alphaTest:p.alphaTest,doubleSided:p.side===2,flipSided:p.side===1,depthPacking:p.depthPacking!==void 0?p.depthPacking:!1}},this.getProgramCode=function(p,v){var w=[];if(v.shaderID?w.push(v.shaderID):(w.push(p.fragmentShader),w.push(p.vertexShader)),p.defines!==void 0)for(var C in p.defines)w.push(C),w.push(p.defines[C]);for(C=0;C<f.length;C++)w.push(v[f[C]]);return w.push(p.onBeforeCompile.toString()),w.push(t.gammaOutput),w.push(t.gammaFactor),w.join()},this.acquireProgram=function(p,v,w,C){for(var P,B=0,H=s.length;B<H;B++){var q=s[B];if(q.code===C){P=q,++P.usedTimes;break}}return P===void 0&&(P=new tt(t,e,C,p,v,w,i),s.push(P)),P},this.releaseProgram=function(p){if(--p.usedTimes===0){var v=s.indexOf(p);s[v]=s[s.length-1],s.pop(),p.destroy()}},this.programs=s}function at(){var t=new WeakMap;return{get:function(e){var i=t.get(e);return i===void 0&&(i={},t.set(e,i)),i},remove:function(e){t.delete(e)},update:function(e,i,n){t.get(e)[i]=n},dispose:function(){t=new WeakMap}}}function X(t,e){return t.renderOrder!==e.renderOrder?t.renderOrder-e.renderOrder:t.program&&e.program&&t.program!==e.program?t.program.id-e.program.id:t.material.id!==e.material.id?t.material.id-e.material.id:t.z!==e.z?t.z-e.z:t.id-e.id}function St(t,e){return t.renderOrder!==e.renderOrder?t.renderOrder-e.renderOrder:t.z!==e.z?e.z-t.z:t.id-e.id}function ht(){var t=[],e=0,i=[],n=[];return{opaque:i,transparent:n,init:function(){e=0,i.length=0,n.length=0},push:function(s,l,f,p,v){var w=t[e];w===void 0?(w={id:s.id,object:s,geometry:l,material:f,program:f.program,renderOrder:s.renderOrder,z:p,group:v},t[e]=w):(w.id=s.id,w.object=s,w.geometry=l,w.material=f,w.program=f.program,w.renderOrder=s.renderOrder,w.z=p,w.group=v),(f.transparent===!0?n:i).push(w),e++},sort:function(){1<i.length&&i.sort(X),1<n.length&&n.sort(St)}}}function Rt(){var t={};return{get:function(e,i){return e=e.id+","+i.id,i=t[e],i===void 0&&(i=new ht,t[e]=i),i},dispose:function(){t={}}}}function Ht(){var t={};return{get:function(e){if(t[e.id]!==void 0)return t[e.id];switch(e.type){case"DirectionalLight":var i={direction:new u,color:new L,shadow:!1,shadowBias:0,shadowRadius:1,shadowMapSize:new o};break;case"SpotLight":i={position:new u,direction:new u,color:new L,distance:0,coneCos:0,penumbraCos:0,decay:0,shadow:!1,shadowBias:0,shadowRadius:1,shadowMapSize:new o};break;case"PointLight":i={position:new u,color:new L,distance:0,decay:0,shadow:!1,shadowBias:0,shadowRadius:1,shadowMapSize:new o,shadowCameraNear:1,shadowCameraFar:1e3};break;case"HemisphereLight":i={direction:new u,skyColor:new L,groundColor:new L};break;case"RectAreaLight":i={color:new L,position:new u,halfWidth:new u,halfHeight:new u}}return t[e.id]=i}}}function kt(){var t=new Ht,e={id:Xh++,hash:{stateID:-1,directionalLength:-1,pointLength:-1,spotLength:-1,rectAreaLength:-1,hemiLength:-1,shadowsLength:-1},ambient:[0,0,0],directional:[],directionalShadowMap:[],directionalShadowMatrix:[],spot:[],spotShadowMap:[],spotShadowMatrix:[],rectArea:[],point:[],pointShadowMap:[],pointShadowMatrix:[],hemi:[]},i=new u,n=new c,s=new c;return{setup:function(l,f,p){var v=0,w=0,C=0,P=0,B=0,H=0,q=0,K=0;p=p.matrixWorldInverse;for(var rt=0,xt=l.length;rt<xt;rt++){var gt=l[rt],At=gt.color,wt=gt.intensity,Vt=gt.distance,Z=gt.shadow&&gt.shadow.map?gt.shadow.map.texture:null;if(gt.isAmbientLight)v+=At.r*wt,w+=At.g*wt,C+=At.b*wt;else if(gt.isDirectionalLight){var st=t.get(gt);st.color.copy(gt.color).multiplyScalar(gt.intensity),st.direction.setFromMatrixPosition(gt.matrixWorld),i.setFromMatrixPosition(gt.target.matrixWorld),st.direction.sub(i),st.direction.transformDirection(p),(st.shadow=gt.castShadow)&&(At=gt.shadow,st.shadowBias=At.bias,st.shadowRadius=At.radius,st.shadowMapSize=At.mapSize),e.directionalShadowMap[P]=Z,e.directionalShadowMatrix[P]=gt.shadow.matrix,e.directional[P]=st,P++}else gt.isSpotLight?(st=t.get(gt),st.position.setFromMatrixPosition(gt.matrixWorld),st.position.applyMatrix4(p),st.color.copy(At).multiplyScalar(wt),st.distance=Vt,st.direction.setFromMatrixPosition(gt.matrixWorld),i.setFromMatrixPosition(gt.target.matrixWorld),st.direction.sub(i),st.direction.transformDirection(p),st.coneCos=Math.cos(gt.angle),st.penumbraCos=Math.cos(gt.angle*(1-gt.penumbra)),st.decay=gt.decay,(st.shadow=gt.castShadow)&&(At=gt.shadow,st.shadowBias=At.bias,st.shadowRadius=At.radius,st.shadowMapSize=At.mapSize),e.spotShadowMap[H]=Z,e.spotShadowMatrix[H]=gt.shadow.matrix,e.spot[H]=st,H++):gt.isRectAreaLight?(st=t.get(gt),st.color.copy(At).multiplyScalar(wt),st.position.setFromMatrixPosition(gt.matrixWorld),st.position.applyMatrix4(p),s.identity(),n.copy(gt.matrixWorld),n.premultiply(p),s.extractRotation(n),st.halfWidth.set(.5*gt.width,0,0),st.halfHeight.set(0,.5*gt.height,0),st.halfWidth.applyMatrix4(s),st.halfHeight.applyMatrix4(s),e.rectArea[q]=st,q++):gt.isPointLight?(st=t.get(gt),st.position.setFromMatrixPosition(gt.matrixWorld),st.position.applyMatrix4(p),st.color.copy(gt.color).multiplyScalar(gt.intensity),st.distance=gt.distance,st.decay=gt.decay,(st.shadow=gt.castShadow)&&(At=gt.shadow,st.shadowBias=At.bias,st.shadowRadius=At.radius,st.shadowMapSize=At.mapSize,st.shadowCameraNear=At.camera.near,st.shadowCameraFar=At.camera.far),e.pointShadowMap[B]=Z,e.pointShadowMatrix[B]=gt.shadow.matrix,e.point[B]=st,B++):gt.isHemisphereLight&&(st=t.get(gt),st.direction.setFromMatrixPosition(gt.matrixWorld),st.direction.transformDirection(p),st.direction.normalize(),st.skyColor.copy(gt.color).multiplyScalar(wt),st.groundColor.copy(gt.groundColor).multiplyScalar(wt),e.hemi[K]=st,K++)}e.ambient[0]=v,e.ambient[1]=w,e.ambient[2]=C,e.directional.length=P,e.spot.length=H,e.rectArea.length=q,e.point.length=B,e.hemi.length=K,e.hash.stateID=e.id,e.hash.directionalLength=P,e.hash.pointLength=B,e.hash.spotLength=H,e.hash.rectAreaLength=q,e.hash.hemiLength=K,e.hash.shadowsLength=f.length},state:e}}function Mt(){var t=new kt,e=[],i=[];return{init:function(){e.length=0,i.length=0},state:{lightsArray:e,shadowsArray:i,lights:t},setupLights:function(n){t.setup(e,i,n)},pushLight:function(n){e.push(n)},pushShadow:function(n){i.push(n)}}}function he(){var t={};return{get:function(e,i){if(t[e.id]===void 0){var n=new Mt;t[e.id]={},t[e.id][i.id]=n}else t[e.id][i.id]===void 0?(n=new Mt,t[e.id][i.id]=n):n=t[e.id][i.id];return n},dispose:function(){t={}}}}function oe(t){Yt.call(this),this.type="MeshDepthMaterial",this.depthPacking=3200,this.morphTargets=this.skinning=!1,this.displacementMap=this.alphaMap=this.map=null,this.displacementScale=1,this.displacementBias=0,this.wireframe=!1,this.wireframeLinewidth=1,this.lights=this.fog=!1,this.setValues(t)}function te(t){Yt.call(this),this.type="MeshDistanceMaterial",this.referencePosition=new u,this.nearDistance=1,this.farDistance=1e3,this.morphTargets=this.skinning=!1,this.displacementMap=this.alphaMap=this.map=null,this.displacementScale=1,this.displacementBias=0,this.lights=this.fog=!1,this.setValues(t)}function _e(t,e,i){function n(Z,st,zt,ee,$t,qt){var Te=Z.geometry,me=P,Ie=Z.customDepthMaterial;return zt&&(me=B,Ie=Z.customDistanceMaterial),Ie?me=Ie:(Ie=!1,st.morphTargets&&(Te&&Te.isBufferGeometry?Ie=Te.morphAttributes&&Te.morphAttributes.position&&0<Te.morphAttributes.position.length:Te&&Te.isGeometry&&(Ie=Te.morphTargets&&0<Te.morphTargets.length)),Z.isSkinnedMesh&&st.skinning===!1&&console.warn("THREE.WebGLShadowMap: THREE.SkinnedMesh with material.skinning set to false:",Z),Z=Z.isSkinnedMesh&&st.skinning,Te=0,Ie&&(Te|=1),Z&&(Te|=2),me=me[Te]),t.localClippingEnabled&&st.clipShadows===!0&&st.clippingPlanes.length!==0&&(Te=me.uuid,Ie=st.uuid,Z=H[Te],Z===void 0&&(Z={},H[Te]=Z),Te=Z[Ie],Te===void 0&&(Te=me.clone(),Z[Ie]=Te),me=Te),me.visible=st.visible,me.wireframe=st.wireframe,me.side=st.shadowSide!=null?st.shadowSide:q[st.side],me.clipShadows=st.clipShadows,me.clippingPlanes=st.clippingPlanes,me.clipIntersection=st.clipIntersection,me.wireframeLinewidth=st.wireframeLinewidth,me.linewidth=st.linewidth,zt&&me.isMeshDistanceMaterial&&(me.referencePosition.copy(ee),me.nearDistance=$t,me.farDistance=qt),me}function s(Z,st,zt,ee){if(Z.visible!==!1){if(Z.layers.test(st.layers)&&(Z.isMesh||Z.isLine||Z.isPoints)&&Z.castShadow&&(!Z.frustumCulled||l.intersectsObject(Z))){Z.modelViewMatrix.multiplyMatrices(zt.matrixWorldInverse,Z.matrixWorld);var $t=e.update(Z),qt=Z.material;if(Array.isArray(qt))for(var Te=$t.groups,me=0,Ie=Te.length;me<Ie;me++){var be=Te[me],ae=qt[be.materialIndex];ae&&ae.visible&&(ae=n(Z,ae,ee,C,zt.near,zt.far),t.renderBufferDirect(zt,null,$t,ae,Z,be))}else qt.visible&&(ae=n(Z,qt,ee,C,zt.near,zt.far),t.renderBufferDirect(zt,null,$t,ae,Z,null))}for(Z=Z.children,$t=0,qt=Z.length;$t<qt;$t++)s(Z[$t],st,zt,ee)}}var l=new E,f=new c,p=new o,v=new o(i,i),w=new u,C=new u,P=Array(4),B=Array(4),H={},q={0:1,1:0,2:2},K=[new u(1,0,0),new u(-1,0,0),new u(0,0,1),new u(0,0,-1),new u(0,1,0),new u(0,-1,0)],rt=[new u(0,1,0),new u(0,1,0),new u(0,1,0),new u(0,1,0),new u(0,0,1),new u(0,0,-1)],xt=[new y,new y,new y,new y,new y,new y];for(i=0;i!==4;++i){var gt=(i&1)!==0,At=(i&2)!==0,wt=new oe({depthPacking:3201,morphTargets:gt,skinning:At});P[i]=wt,gt=new te({morphTargets:gt,skinning:At}),B[i]=gt}var Vt=this;this.enabled=!1,this.autoUpdate=!0,this.needsUpdate=!1,this.type=1,this.render=function(Z,st,zt){if(Vt.enabled!==!1&&(Vt.autoUpdate!==!1||Vt.needsUpdate!==!1)&&Z.length!==0){var ee=t.state;ee.disable(3042),ee.buffers.color.setClear(1,1,1,1),ee.buffers.depth.setTest(!0),ee.setScissorTest(!1);for(var $t,qt=0,Te=Z.length;qt<Te;qt++){var me=Z[qt];$t=me.shadow;var Ie=me&&me.isPointLight;if($t===void 0)console.warn("THREE.WebGLShadowMap:",me,"has no shadow.");else{var be=$t.camera;if(p.copy($t.mapSize),p.min(v),Ie){var ae=p.x,We=p.y;xt[0].set(2*ae,We,ae,We),xt[1].set(0,We,ae,We),xt[2].set(3*ae,We,ae,We),xt[3].set(ae,We,ae,We),xt[4].set(3*ae,0,ae,We),xt[5].set(ae,0,ae,We),p.x*=4,p.y*=2}for($t.map===null&&($t.map=new S(p.x,p.y,{minFilter:1003,magFilter:1003,format:1023}),$t.map.texture.name=me.name+".shadowMap",be.updateProjectionMatrix()),$t.isSpotLightShadow&&$t.update(me),ae=$t.map,We=$t.matrix,C.setFromMatrixPosition(me.matrixWorld),be.position.copy(C),Ie?($t=6,We.makeTranslation(-C.x,-C.y,-C.z)):($t=1,w.setFromMatrixPosition(me.target.matrixWorld),be.lookAt(w),be.updateMatrixWorld(),We.set(.5,0,0,.5,0,.5,0,.5,0,0,.5,.5,0,0,0,1),We.multiply(be.projectionMatrix),We.multiply(be.matrixWorldInverse)),t.setRenderTarget(ae),t.clear(),me=0;me<$t;me++)Ie&&(w.copy(be.position),w.add(K[me]),be.up.copy(rt[me]),be.lookAt(w),be.updateMatrixWorld(),ee.viewport(xt[me])),f.multiplyMatrices(be.projectionMatrix,be.matrixWorldInverse),l.setFromMatrix(f),s(st,zt,be,Ie)}}Vt.needsUpdate=!1}}}function ue(t,e,i,n){function s(Ut,Ye,ei){var Wi=new Uint8Array(4),Ce=t.createTexture();for(t.bindTexture(Ut,Ce),t.texParameteri(Ut,10241,9728),t.texParameteri(Ut,10240,9728),Ut=0;Ut<ei;Ut++)t.texImage2D(Ye+Ut,0,6408,1,1,0,6408,5121,Wi);return Ce}function l(Ut,Ye){xt[Ut]=1,gt[Ut]===0&&(t.enableVertexAttribArray(Ut),gt[Ut]=1),At[Ut]!==Ye&&((n.isWebGL2?t:e.get("ANGLE_instanced_arrays"))[n.isWebGL2?"vertexAttribDivisor":"vertexAttribDivisorANGLE"](Ut,Ye),At[Ut]=Ye)}function f(Ut){wt[Ut]!==!0&&(t.enable(Ut),wt[Ut]=!0)}function p(Ut){wt[Ut]!==!1&&(t.disable(Ut),wt[Ut]=!1)}function v(Ut,Ye,ei,Wi,Ce,Xe,ri,Ci){if(Ut===0)st&&(p(3042),st=!1);else if(st||(f(3042),st=!0),Ut!==5){if(Ut!==zt||Ci!==be){if((ee!==100||Te!==100)&&(t.blendEquation(32774),Te=ee=100),Ci)switch(Ut){case 1:t.blendFuncSeparate(1,771,1,771);break;case 2:t.blendFunc(1,1);break;case 3:t.blendFuncSeparate(0,0,769,771);break;case 4:t.blendFuncSeparate(0,768,0,770);break;default:console.error("THREE.WebGLState: Invalid blending: ",Ut)}else switch(Ut){case 1:t.blendFuncSeparate(770,771,1,771);break;case 2:t.blendFunc(770,1);break;case 3:t.blendFunc(0,769);break;case 4:t.blendFunc(0,768);break;default:console.error("THREE.WebGLState: Invalid blending: ",Ut)}Ie=me=qt=$t=null,zt=Ut,be=Ci}}else Ce=Ce||Ye,Xe=Xe||ei,ri=ri||Wi,(Ye!==ee||Ce!==Te)&&(t.blendEquationSeparate(i.convert(Ye),i.convert(Ce)),ee=Ye,Te=Ce),(ei!==$t||Wi!==qt||Xe!==me||ri!==Ie)&&(t.blendFuncSeparate(i.convert(ei),i.convert(Wi),i.convert(Xe),i.convert(ri)),$t=ei,qt=Wi,me=Xe,Ie=ri),zt=Ut,be=null}function w(Ut){ae!==Ut&&(Ut?t.frontFace(2304):t.frontFace(2305),ae=Ut)}function C(Ut){Ut!==0?(f(2884),Ut!==We&&(Ut===1?t.cullFace(1029):Ut===2?t.cullFace(1028):t.cullFace(1032))):p(2884),We=Ut}function P(Ut,Ye,ei){Ut?(f(32823),(fi!==Ye||An!==ei)&&(t.polygonOffset(Ye,ei),fi=Ye,An=ei)):p(32823)}function B(Ut){Ut===void 0&&(Ut=33984+yn-1),Vi!==Ut&&(t.activeTexture(Ut),Vi=Ut)}var H=new function(){var Ut=!1,Ye=new y,ei=null,Wi=new y(0,0,0,0);return{setMask:function(Ce){ei===Ce||Ut||(t.colorMask(Ce,Ce,Ce,Ce),ei=Ce)},setLocked:function(Ce){Ut=Ce},setClear:function(Ce,Xe,ri,Ci,Ai){Ai===!0&&(Ce*=Ci,Xe*=Ci,ri*=Ci),Ye.set(Ce,Xe,ri,Ci),Wi.equals(Ye)===!1&&(t.clearColor(Ce,Xe,ri,Ci),Wi.copy(Ye))},reset:function(){Ut=!1,ei=null,Wi.set(-1,0,0,0)}}},q=new function(){var Ut=!1,Ye=null,ei=null,Wi=null;return{setTest:function(Ce){Ce?f(2929):p(2929)},setMask:function(Ce){Ye===Ce||Ut||(t.depthMask(Ce),Ye=Ce)},setFunc:function(Ce){if(ei!==Ce){if(Ce)switch(Ce){case 0:t.depthFunc(512);break;case 1:t.depthFunc(519);break;case 2:t.depthFunc(513);break;case 3:t.depthFunc(515);break;case 4:t.depthFunc(514);break;case 5:t.depthFunc(518);break;case 6:t.depthFunc(516);break;case 7:t.depthFunc(517);break;default:t.depthFunc(515)}else t.depthFunc(515);ei=Ce}},setLocked:function(Ce){Ut=Ce},setClear:function(Ce){Wi!==Ce&&(t.clearDepth(Ce),Wi=Ce)},reset:function(){Ut=!1,Wi=ei=Ye=null}}},K=new function(){var Ut=!1,Ye=null,ei=null,Wi=null,Ce=null,Xe=null,ri=null,Ci=null,Ai=null;return{setTest:function(ne){ne?f(2960):p(2960)},setMask:function(ne){Ye===ne||Ut||(t.stencilMask(ne),Ye=ne)},setFunc:function(ne,ii,Ze){(ei!==ne||Wi!==ii||Ce!==Ze)&&(t.stencilFunc(ne,ii,Ze),ei=ne,Wi=ii,Ce=Ze)},setOp:function(ne,ii,Ze){(Xe!==ne||ri!==ii||Ci!==Ze)&&(t.stencilOp(ne,ii,Ze),Xe=ne,ri=ii,Ci=Ze)},setLocked:function(ne){Ut=ne},setClear:function(ne){Ai!==ne&&(t.clearStencil(ne),Ai=ne)},reset:function(){Ut=!1,Ai=Ci=ri=Xe=Ce=Wi=ei=Ye=null}}},rt=t.getParameter(34921),xt=new Uint8Array(rt),gt=new Uint8Array(rt),At=new Uint8Array(rt),wt={},Vt=null,Z=null,st=null,zt=null,ee=null,$t=null,qt=null,Te=null,me=null,Ie=null,be=!1,ae=null,We=null,Qe=null,fi=null,An=null,yn=t.getParameter(35661),qi=!1;rt=0,rt=t.getParameter(7938),rt.indexOf("WebGL")!==-1?(rt=parseFloat(/^WebGL ([0-9])/.exec(rt)[1]),qi=1<=rt):rt.indexOf("OpenGL ES")!==-1&&(rt=parseFloat(/^OpenGL ES ([0-9])/.exec(rt)[1]),qi=2<=rt);var Vi=null,sn={},Cn=new y,Ae=new y,ti={};return ti[3553]=s(3553,3553,1),ti[34067]=s(34067,34069,6),H.setClear(0,0,0,1),q.setClear(1),K.setClear(0),f(2929),q.setFunc(3),w(!1),C(1),f(2884),v(0),{buffers:{color:H,depth:q,stencil:K},initAttributes:function(){for(var Ut=0,Ye=xt.length;Ut<Ye;Ut++)xt[Ut]=0},enableAttribute:function(Ut){l(Ut,0)},enableAttributeAndDivisor:l,disableUnusedAttributes:function(){for(var Ut=0,Ye=gt.length;Ut!==Ye;++Ut)gt[Ut]!==xt[Ut]&&(t.disableVertexAttribArray(Ut),gt[Ut]=0)},enable:f,disable:p,getCompressedTextureFormats:function(){if(Vt===null&&(Vt=[],e.get("WEBGL_compressed_texture_pvrtc")||e.get("WEBGL_compressed_texture_s3tc")||e.get("WEBGL_compressed_texture_etc1")||e.get("WEBGL_compressed_texture_astc")))for(var Ut=t.getParameter(34467),Ye=0;Ye<Ut.length;Ye++)Vt.push(Ut[Ye]);return Vt},useProgram:function(Ut){return Z!==Ut?(t.useProgram(Ut),Z=Ut,!0):!1},setBlending:v,setMaterial:function(Ut,Ye){Ut.side===2?p(2884):f(2884);var ei=Ut.side===1;Ye&&(ei=!ei),w(ei),Ut.blending===1&&Ut.transparent===!1?v(0):v(Ut.blending,Ut.blendEquation,Ut.blendSrc,Ut.blendDst,Ut.blendEquationAlpha,Ut.blendSrcAlpha,Ut.blendDstAlpha,Ut.premultipliedAlpha),q.setFunc(Ut.depthFunc),q.setTest(Ut.depthTest),q.setMask(Ut.depthWrite),H.setMask(Ut.colorWrite),P(Ut.polygonOffset,Ut.polygonOffsetFactor,Ut.polygonOffsetUnits)},setFlipSided:w,setCullFace:C,setLineWidth:function(Ut){Ut!==Qe&&(qi&&t.lineWidth(Ut),Qe=Ut)},setPolygonOffset:P,setScissorTest:function(Ut){Ut?f(3089):p(3089)},activeTexture:B,bindTexture:function(Ut,Ye){Vi===null&&B();var ei=sn[Vi];ei===void 0&&(ei={type:void 0,texture:void 0},sn[Vi]=ei),(ei.type!==Ut||ei.texture!==Ye)&&(t.bindTexture(Ut,Ye||ti[Ut]),ei.type=Ut,ei.texture=Ye)},compressedTexImage2D:function(){try{t.compressedTexImage2D.apply(t,arguments)}catch(Ut){console.error("THREE.WebGLState:",Ut)}},texImage2D:function(){try{t.texImage2D.apply(t,arguments)}catch(Ut){console.error("THREE.WebGLState:",Ut)}},texImage3D:function(){try{t.texImage3D.apply(t,arguments)}catch(Ut){console.error("THREE.WebGLState:",Ut)}},scissor:function(Ut){Cn.equals(Ut)===!1&&(t.scissor(Ut.x,Ut.y,Ut.z,Ut.w),Cn.copy(Ut))},viewport:function(Ut){Ae.equals(Ut)===!1&&(t.viewport(Ut.x,Ut.y,Ut.z,Ut.w),Ae.copy(Ut))},reset:function(){for(var Ut=0;Ut<gt.length;Ut++)gt[Ut]===1&&(t.disableVertexAttribArray(Ut),gt[Ut]=0);wt={},Vi=Vt=null,sn={},We=ae=zt=Z=null,H.reset(),q.reset(),K.reset()}}}function je(t,e,i,n,s,l,f){function p(Z,st){if(Z.width>st||Z.height>st){if("data"in Z){console.warn("THREE.WebGLRenderer: image in DataTexture is too big ("+Z.width+"x"+Z.height+").");return}st/=Math.max(Z.width,Z.height);var zt=document.createElementNS("http://www.w3.org/1999/xhtml","canvas");return zt.width=Math.floor(Z.width*st),zt.height=Math.floor(Z.height*st),zt.getContext("2d").drawImage(Z,0,0,Z.width,Z.height,0,0,zt.width,zt.height),console.warn("THREE.WebGLRenderer: image is too big ("+Z.width+"x"+Z.height+"). Resized to "+zt.width+"x"+zt.height),zt}return Z}function v(Z){return pi.isPowerOfTwo(Z.width)&&pi.isPowerOfTwo(Z.height)}function w(Z,st){return Z.generateMipmaps&&st&&Z.minFilter!==1003&&Z.minFilter!==1006}function C(Z,st,zt,ee){t.generateMipmap(Z),n.get(st).__maxMipLevel=Math.log(Math.max(zt,ee))*Math.LOG2E}function P(Z,st){if(!s.isWebGL2)return Z;if(Z===6403){if(st===5126)return 33326;if(st===5131)return 33325;if(st===5121)return 33321}if(Z===6407){if(st===5126)return 34837;if(st===5131)return 34843;if(st===5121)return 32849}if(Z===6408){if(st===5126)return 34836;if(st===5131)return 34842;if(st===5121)return 32856}return Z}function B(Z){return Z===1003||Z===1004||Z===1005?9728:9729}function H(Z){Z=Z.target,Z.removeEventListener("dispose",H);t:{var st=n.get(Z);if(Z.image&&st.__image__webglTextureCube)t.deleteTexture(st.__image__webglTextureCube);else{if(st.__webglInit===void 0)break t;t.deleteTexture(st.__webglTexture)}n.remove(Z)}Z.isVideoTexture&&delete wt[Z.id],f.memory.textures--}function q(Z){Z=Z.target,Z.removeEventListener("dispose",q);var st=n.get(Z),zt=n.get(Z.texture);if(Z){if(zt.__webglTexture!==void 0&&t.deleteTexture(zt.__webglTexture),Z.depthTexture&&Z.depthTexture.dispose(),Z.isWebGLRenderTargetCube)for(zt=0;6>zt;zt++)t.deleteFramebuffer(st.__webglFramebuffer[zt]),st.__webglDepthbuffer&&t.deleteRenderbuffer(st.__webglDepthbuffer[zt]);else t.deleteFramebuffer(st.__webglFramebuffer),st.__webglDepthbuffer&&t.deleteRenderbuffer(st.__webglDepthbuffer);n.remove(Z.texture),n.remove(Z)}f.memory.textures--}function K(Z,st){var zt=n.get(Z);if(Z.isVideoTexture){var ee=Z.id,$t=f.render.frame;wt[ee]!==$t&&(wt[ee]=$t,Z.update())}if(0<Z.version&&zt.__version!==Z.version)if(ee=Z.image,ee===void 0)console.warn("THREE.WebGLRenderer: Texture marked for update but image is undefined");else if(ee.complete===!1)console.warn("THREE.WebGLRenderer: Texture marked for update but image is incomplete");else{xt(zt,Z,st);return}i.activeTexture(33984+st),i.bindTexture(3553,zt.__webglTexture)}function rt(Z,st,zt){zt?(t.texParameteri(Z,10242,l.convert(st.wrapS)),t.texParameteri(Z,10243,l.convert(st.wrapT)),t.texParameteri(Z,10240,l.convert(st.magFilter)),t.texParameteri(Z,10241,l.convert(st.minFilter))):(t.texParameteri(Z,10242,33071),t.texParameteri(Z,10243,33071),st.wrapS===1001&&st.wrapT===1001||console.warn("THREE.WebGLRenderer: Texture is not power of two. Texture.wrapS and Texture.wrapT should be set to THREE.ClampToEdgeWrapping."),t.texParameteri(Z,10240,B(st.magFilter)),t.texParameteri(Z,10241,B(st.minFilter)),st.minFilter!==1003&&st.minFilter!==1006&&console.warn("THREE.WebGLRenderer: Texture is not power of two. Texture.minFilter should be set to THREE.NearestFilter or THREE.LinearFilter.")),!(zt=e.get("EXT_texture_filter_anisotropic"))||st.type===1015&&e.get("OES_texture_float_linear")===null||st.type===1016&&(s.isWebGL2||e.get("OES_texture_half_float_linear"))===null||!(1<st.anisotropy||n.get(st).__currentAnisotropy)||(t.texParameterf(Z,zt.TEXTURE_MAX_ANISOTROPY_EXT,Math.min(st.anisotropy,s.getMaxAnisotropy())),n.get(st).__currentAnisotropy=st.anisotropy)}function xt(Z,st,zt){var ee=st.isDataTexture3D?32879:3553;Z.__webglInit===void 0&&(Z.__webglInit=!0,st.addEventListener("dispose",H),Z.__webglTexture=t.createTexture(),f.memory.textures++),i.activeTexture(33984+zt),i.bindTexture(ee,Z.__webglTexture),t.pixelStorei(37440,st.flipY),t.pixelStorei(37441,st.premultiplyAlpha),t.pixelStorei(3317,st.unpackAlignment),zt=p(st.image,s.maxTextureSize);var $t=s.isWebGL2?!1:st.wrapS!==1001||st.wrapT!==1001||st.minFilter!==1003&&st.minFilter!==1006;$t&&v(zt)===!1&&(zt instanceof HTMLImageElement||zt instanceof HTMLCanvasElement||zt instanceof ImageBitmap)&&(Vt===void 0&&(Vt=document.createElementNS("http://www.w3.org/1999/xhtml","canvas")),Vt.width=pi.floorPowerOfTwo(zt.width),Vt.height=pi.floorPowerOfTwo(zt.height),Vt.getContext("2d").drawImage(zt,0,0,Vt.width,Vt.height),console.warn("THREE.WebGLRenderer: image is not power of two ("+zt.width+"x"+zt.height+"). Resized to "+Vt.width+"x"+Vt.height),zt=Vt),$t=v(zt);var qt=l.convert(st.format),Te=l.convert(st.type),me=P(qt,Te);rt(ee,st,$t);var Ie=st.mipmaps;if(st.isDepthTexture){if(me=6402,st.type===1015){if(!s.isWebGL2)throw Error("Float Depth Texture only supported in WebGL2.0");me=36012}else s.isWebGL2&&(me=33189);st.format===1026&&me===6402&&st.type!==1012&&st.type!==1014&&(console.warn("THREE.WebGLRenderer: Use UnsignedShortType or UnsignedIntType for DepthFormat DepthTexture."),st.type=1012,Te=l.convert(st.type)),st.format===1027&&(me=34041,st.type!==1020&&(console.warn("THREE.WebGLRenderer: Use UnsignedInt248Type for DepthStencilFormat DepthTexture."),st.type=1020,Te=l.convert(st.type))),i.texImage2D(3553,0,me,zt.width,zt.height,0,qt,Te,null)}else if(st.isDataTexture)if(0<Ie.length&&$t){for(var be=0,ae=Ie.length;be<ae;be++)ee=Ie[be],i.texImage2D(3553,be,me,ee.width,ee.height,0,qt,Te,ee.data);st.generateMipmaps=!1,Z.__maxMipLevel=Ie.length-1}else i.texImage2D(3553,0,me,zt.width,zt.height,0,qt,Te,zt.data),Z.__maxMipLevel=0;else if(st.isCompressedTexture){for(be=0,ae=Ie.length;be<ae;be++)ee=Ie[be],st.format!==1023&&st.format!==1022?-1<i.getCompressedTextureFormats().indexOf(qt)?i.compressedTexImage2D(3553,be,me,ee.width,ee.height,0,ee.data):console.warn("THREE.WebGLRenderer: Attempt to load unsupported compressed texture format in .uploadTexture()"):i.texImage2D(3553,be,me,ee.width,ee.height,0,qt,Te,ee.data);Z.__maxMipLevel=Ie.length-1}else if(st.isDataTexture3D)i.texImage3D(32879,0,me,zt.width,zt.height,zt.depth,0,qt,Te,zt.data),Z.__maxMipLevel=0;else if(0<Ie.length&&$t){for(be=0,ae=Ie.length;be<ae;be++)ee=Ie[be],i.texImage2D(3553,be,me,qt,Te,ee);st.generateMipmaps=!1,Z.__maxMipLevel=Ie.length-1}else i.texImage2D(3553,0,me,qt,Te,zt),Z.__maxMipLevel=0;w(st,$t)&&C(3553,st,zt.width,zt.height),Z.__version=st.version,st.onUpdate&&st.onUpdate(st)}function gt(Z,st,zt,ee){var $t=l.convert(st.texture.format),qt=l.convert(st.texture.type),Te=P($t,qt);i.texImage2D(ee,0,Te,st.width,st.height,0,$t,qt,null),t.bindFramebuffer(36160,Z),t.framebufferTexture2D(36160,zt,ee,n.get(st.texture).__webglTexture,0),t.bindFramebuffer(36160,null)}function At(Z,st){t.bindRenderbuffer(36161,Z),st.depthBuffer&&!st.stencilBuffer?(t.renderbufferStorage(36161,33189,st.width,st.height),t.framebufferRenderbuffer(36160,36096,36161,Z)):st.depthBuffer&&st.stencilBuffer?(t.renderbufferStorage(36161,34041,st.width,st.height),t.framebufferRenderbuffer(36160,33306,36161,Z)):t.renderbufferStorage(36161,32854,st.width,st.height),t.bindRenderbuffer(36161,null)}var wt={},Vt;this.setTexture2D=K,this.setTexture3D=function(Z,st){var zt=n.get(Z);0<Z.version&&zt.__version!==Z.version?xt(zt,Z,st):(i.activeTexture(33984+st),i.bindTexture(32879,zt.__webglTexture))},this.setTextureCube=function(Z,st){var zt=n.get(Z);if(Z.image.length===6)if(0<Z.version&&zt.__version!==Z.version){zt.__image__webglTextureCube||(Z.addEventListener("dispose",H),zt.__image__webglTextureCube=t.createTexture(),f.memory.textures++),i.activeTexture(33984+st),i.bindTexture(34067,zt.__image__webglTextureCube),t.pixelStorei(37440,Z.flipY),st=Z&&Z.isCompressedTexture;for(var ee=Z.image[0]&&Z.image[0].isDataTexture,$t=[],qt=0;6>qt;qt++)$t[qt]=st||ee?ee?Z.image[qt].image:Z.image[qt]:p(Z.image[qt],s.maxCubemapSize);var Te=$t[0],me=v(Te),Ie=l.convert(Z.format),be=l.convert(Z.type),ae=P(Ie,be);for(rt(34067,Z,me),qt=0;6>qt;qt++)if(st)for(var We,Qe=$t[qt].mipmaps,fi=0,An=Qe.length;fi<An;fi++)We=Qe[fi],Z.format!==1023&&Z.format!==1022?-1<i.getCompressedTextureFormats().indexOf(Ie)?i.compressedTexImage2D(34069+qt,fi,ae,We.width,We.height,0,We.data):console.warn("THREE.WebGLRenderer: Attempt to load unsupported compressed texture format in .setTextureCube()"):i.texImage2D(34069+qt,fi,ae,We.width,We.height,0,Ie,be,We.data);else ee?i.texImage2D(34069+qt,0,ae,$t[qt].width,$t[qt].height,0,Ie,be,$t[qt].data):i.texImage2D(34069+qt,0,ae,Ie,be,$t[qt]);zt.__maxMipLevel=st?Qe.length-1:0,w(Z,me)&&C(34067,Z,Te.width,Te.height),zt.__version=Z.version,Z.onUpdate&&Z.onUpdate(Z)}else i.activeTexture(33984+st),i.bindTexture(34067,zt.__image__webglTextureCube)},this.setTextureCubeDynamic=function(Z,st){i.activeTexture(33984+st),i.bindTexture(34067,n.get(Z).__webglTexture)},this.setupRenderTarget=function(Z){var st=n.get(Z),zt=n.get(Z.texture);Z.addEventListener("dispose",q),zt.__webglTexture=t.createTexture(),f.memory.textures++;var ee=Z.isWebGLRenderTargetCube===!0,$t=v(Z);if(ee){st.__webglFramebuffer=[];for(var qt=0;6>qt;qt++)st.__webglFramebuffer[qt]=t.createFramebuffer()}else st.__webglFramebuffer=t.createFramebuffer();if(ee){for(i.bindTexture(34067,zt.__webglTexture),rt(34067,Z.texture,$t),qt=0;6>qt;qt++)gt(st.__webglFramebuffer[qt],Z,36064,34069+qt);w(Z.texture,$t)&&C(34067,Z.texture,Z.width,Z.height),i.bindTexture(34067,null)}else i.bindTexture(3553,zt.__webglTexture),rt(3553,Z.texture,$t),gt(st.__webglFramebuffer,Z,36064,3553),w(Z.texture,$t)&&C(3553,Z.texture,Z.width,Z.height),i.bindTexture(3553,null);if(Z.depthBuffer){if(st=n.get(Z),zt=Z.isWebGLRenderTargetCube===!0,Z.depthTexture){if(zt)throw Error("target.depthTexture not supported in Cube render targets");if(Z&&Z.isWebGLRenderTargetCube)throw Error("Depth Texture with cube render targets is not supported");if(t.bindFramebuffer(36160,st.__webglFramebuffer),!Z.depthTexture||!Z.depthTexture.isDepthTexture)throw Error("renderTarget.depthTexture must be an instance of THREE.DepthTexture");if(n.get(Z.depthTexture).__webglTexture&&Z.depthTexture.image.width===Z.width&&Z.depthTexture.image.height===Z.height||(Z.depthTexture.image.width=Z.width,Z.depthTexture.image.height=Z.height,Z.depthTexture.needsUpdate=!0),K(Z.depthTexture,0),st=n.get(Z.depthTexture).__webglTexture,Z.depthTexture.format===1026)t.framebufferTexture2D(36160,36096,3553,st,0);else if(Z.depthTexture.format===1027)t.framebufferTexture2D(36160,33306,3553,st,0);else throw Error("Unknown depthTexture format")}else if(zt)for(st.__webglDepthbuffer=[],zt=0;6>zt;zt++)t.bindFramebuffer(36160,st.__webglFramebuffer[zt]),st.__webglDepthbuffer[zt]=t.createRenderbuffer(),At(st.__webglDepthbuffer[zt],Z);else t.bindFramebuffer(36160,st.__webglFramebuffer),st.__webglDepthbuffer=t.createRenderbuffer(),At(st.__webglDepthbuffer,Z);t.bindFramebuffer(36160,null)}},this.updateRenderTargetMipmap=function(Z){var st=Z.texture,zt=v(Z);if(w(st,zt)){zt=Z.isWebGLRenderTargetCube?34067:3553;var ee=n.get(st).__webglTexture;i.bindTexture(zt,ee),C(zt,st,Z.width,Z.height),i.bindTexture(zt,null)}}}function He(t,e,i){return{convert:function(n){if(n===1e3)return 10497;if(n===1001)return 33071;if(n===1002)return 33648;if(n===1003)return 9728;if(n===1004)return 9984;if(n===1005)return 9986;if(n===1006)return 9729;if(n===1007)return 9985;if(n===1008)return 9987;if(n===1009)return 5121;if(n===1017)return 32819;if(n===1018)return 32820;if(n===1019)return 33635;if(n===1010)return 5120;if(n===1011)return 5122;if(n===1012)return 5123;if(n===1013)return 5124;if(n===1014)return 5125;if(n===1015)return 5126;if(n===1016){if(i.isWebGL2)return 5131;var s=e.get("OES_texture_half_float");if(s!==null)return s.HALF_FLOAT_OES}if(n===1021)return 6406;if(n===1022)return 6407;if(n===1023)return 6408;if(n===1024)return 6409;if(n===1025)return 6410;if(n===1026)return 6402;if(n===1027)return 34041;if(n===1028)return 6403;if(n===100)return 32774;if(n===101)return 32778;if(n===102)return 32779;if(n===200)return 0;if(n===201)return 1;if(n===202)return 768;if(n===203)return 769;if(n===204)return 770;if(n===205)return 771;if(n===206)return 772;if(n===207)return 773;if(n===208)return 774;if(n===209)return 775;if(n===210)return 776;if((n===33776||n===33777||n===33778||n===33779)&&(s=e.get("WEBGL_compressed_texture_s3tc"),s!==null)){if(n===33776)return s.COMPRESSED_RGB_S3TC_DXT1_EXT;if(n===33777)return s.COMPRESSED_RGBA_S3TC_DXT1_EXT;if(n===33778)return s.COMPRESSED_RGBA_S3TC_DXT3_EXT;if(n===33779)return s.COMPRESSED_RGBA_S3TC_DXT5_EXT}if((n===35840||n===35841||n===35842||n===35843)&&(s=e.get("WEBGL_compressed_texture_pvrtc"),s!==null)){if(n===35840)return s.COMPRESSED_RGB_PVRTC_4BPPV1_IMG;if(n===35841)return s.COMPRESSED_RGB_PVRTC_2BPPV1_IMG;if(n===35842)return s.COMPRESSED_RGBA_PVRTC_4BPPV1_IMG;if(n===35843)return s.COMPRESSED_RGBA_PVRTC_2BPPV1_IMG}if(n===36196&&(s=e.get("WEBGL_compressed_texture_etc1"),s!==null))return s.COMPRESSED_RGB_ETC1_WEBGL;if((n===37808||n===37809||n===37810||n===37811||n===37812||n===37813||n===37814||n===37815||n===37816||n===37817||n===37818||n===37819||n===37820||n===37821)&&(s=e.get("WEBGL_compressed_texture_astc"),s!==null))return n;if(n===103||n===104){if(i.isWebGL2){if(n===103)return 32775;if(n===104)return 32776}if(s=e.get("EXT_blend_minmax"),s!==null){if(n===103)return s.MIN_EXT;if(n===104)return s.MAX_EXT}}if(n===1020){if(i.isWebGL2)return 34042;if(s=e.get("WEBGL_depth_texture"),s!==null)return s.UNSIGNED_INT_24_8_WEBGL}return 0}}}function ci(){N.call(this),this.type="Group"}function Be(){N.call(this),this.type="Camera",this.matrixWorldInverse=new c,this.projectionMatrix=new c,this.projectionMatrixInverse=new c}function ye(t,e,i,n){Be.call(this),this.type="PerspectiveCamera",this.fov=t!==void 0?t:50,this.zoom=1,this.near=i!==void 0?i:.1,this.far=n!==void 0?n:2e3,this.focus=10,this.aspect=e!==void 0?e:1,this.view=null,this.filmGauge=35,this.filmOffset=0,this.updateProjectionMatrix()}function Fe(t){ye.call(this),this.cameras=t||[]}function pe(t,e,i){oo.setFromMatrixPosition(e.matrixWorld),wr.setFromMatrixPosition(i.matrixWorld);var n=oo.distanceTo(wr),s=e.projectionMatrix.elements,l=i.projectionMatrix.elements,f=s[14]/(s[10]-1);i=s[14]/(s[10]+1);var p=(s[9]+1)/s[5],v=(s[9]-1)/s[5],w=(s[8]-1)/s[0],C=(l[8]+1)/l[0];s=f*w,l=f*C,C=n/(-w+C),w=C*-w,e.matrixWorld.decompose(t.position,t.quaternion,t.scale),t.translateX(w),t.translateZ(C),t.matrixWorld.compose(t.position,t.quaternion,t.scale),t.matrixWorldInverse.getInverse(t.matrixWorld),e=f+C,f=i+C,t.projectionMatrix.makePerspective(s-w,l+(n-w),p*i/f*e,v*i/f*e,e,f)}function mi(t){function e(){return s!==null&&s.isPresenting===!0}function i(){if(e()){var Z=s.getEyeParameters("left"),st=Z.renderWidth*C;Z=Z.renderHeight*C,At=t.getPixelRatio(),gt=t.getSize(),t.setDrawingBufferSize(2*st,Z,1),Vt.start()}else n.enabled&&t.setDrawingBufferSize(gt.width,gt.height,At),Vt.stop()}var n=this,s=null,l=null,f=null,p=[],v=new c,w=new c,C=1,P="stage";typeof window<"u"&&"VRFrameData"in window&&(l=new window.VRFrameData,window.addEventListener("vrdisplaypresentchange",i,!1));var B=new c,H=new d,q=new u,K=new ye;K.bounds=new y(0,0,.5,1),K.layers.enable(1);var rt=new ye;rt.bounds=new y(.5,0,.5,1),rt.layers.enable(2);var xt=new Fe([K,rt]);xt.layers.enable(1),xt.layers.enable(2);var gt,At,wt=[];this.enabled=!1,this.getController=function(Z){var st=p[Z];return st===void 0&&(st=new ci,st.matrixAutoUpdate=!1,st.visible=!1,p[Z]=st),st},this.getDevice=function(){return s},this.setDevice=function(Z){Z!==void 0&&(s=Z),Vt.setContext(Z)},this.setFramebufferScaleFactor=function(Z){C=Z},this.setFrameOfReferenceType=function(Z){P=Z},this.setPoseTarget=function(Z){Z!==void 0&&(f=Z)},this.getCamera=function(Z){var st=P==="stage"?1.6:0;if(s===null)return Z.position.set(0,st,0),Z;if(s.depthNear=Z.near,s.depthFar=Z.far,s.getFrameData(l),P==="stage"){var zt=s.stageParameters;zt?v.fromArray(zt.sittingToStandingTransform):v.makeTranslation(0,st,0)}if(st=l.pose,zt=f!==null?f:Z,zt.matrix.copy(v),zt.matrix.decompose(zt.position,zt.quaternion,zt.scale),st.orientation!==null&&(H.fromArray(st.orientation),zt.quaternion.multiply(H)),st.position!==null&&(H.setFromRotationMatrix(v),q.fromArray(st.position),q.applyQuaternion(H),zt.position.add(q)),zt.updateMatrixWorld(),s.isPresenting===!1)return Z;K.near=Z.near,rt.near=Z.near,K.far=Z.far,rt.far=Z.far,K.matrixWorldInverse.fromArray(l.leftViewMatrix),rt.matrixWorldInverse.fromArray(l.rightViewMatrix),w.getInverse(v),P==="stage"&&(K.matrixWorldInverse.multiply(w),rt.matrixWorldInverse.multiply(w)),Z=zt.parent,Z!==null&&(B.getInverse(Z.matrixWorld),K.matrixWorldInverse.multiply(B),rt.matrixWorldInverse.multiply(B)),K.matrixWorld.getInverse(K.matrixWorldInverse),rt.matrixWorld.getInverse(rt.matrixWorldInverse),K.projectionMatrix.fromArray(l.leftProjectionMatrix),rt.projectionMatrix.fromArray(l.rightProjectionMatrix),pe(xt,K,rt),Z=s.getLayers(),Z.length&&(Z=Z[0],Z.leftBounds!==null&&Z.leftBounds.length===4&&K.bounds.fromArray(Z.leftBounds),Z.rightBounds!==null&&Z.rightBounds.length===4&&rt.bounds.fromArray(Z.rightBounds));t:for(Z=0;Z<p.length;Z++){st=p[Z];e:{zt=Z;for(var ee=navigator.getGamepads&&navigator.getGamepads(),$t=0,qt=0,Te=ee.length;$t<Te;$t++){var me=ee[$t];if(me&&(me.id==="Daydream Controller"||me.id==="Gear VR Controller"||me.id==="Oculus Go Controller"||me.id==="OpenVR Gamepad"||me.id.startsWith("Oculus Touch")||me.id.startsWith("Spatial Controller"))){if(qt===zt){zt=me;break e}qt++}}zt=void 0}if(zt!==void 0&&zt.pose!==void 0){if(zt.pose===null)break t;ee=zt.pose,ee.hasPosition===!1&&st.position.set(.2,-.6,-.05),ee.position!==null&&st.position.fromArray(ee.position),ee.orientation!==null&&st.quaternion.fromArray(ee.orientation),st.matrix.compose(st.position,st.quaternion,st.scale),st.matrix.premultiply(v),st.matrix.decompose(st.position,st.quaternion,st.scale),st.matrixWorldNeedsUpdate=!0,st.visible=!0,ee=zt.id==="Daydream Controller"?0:1,wt[Z]!==zt.buttons[ee].pressed&&(wt[Z]=zt.buttons[ee].pressed,wt[Z]===!0?st.dispatchEvent({type:"selectstart"}):(st.dispatchEvent({type:"selectend"}),st.dispatchEvent({type:"select"})))}else st.visible=!1}return xt},this.getStandingMatrix=function(){return v},this.isPresenting=e;var Vt=new T;this.setAnimationLoop=function(Z){Vt.setAnimationLoop(Z)},this.submitFrame=function(){e()&&s.submitFrame()},this.dispose=function(){typeof window<"u"&&window.removeEventListener("vrdisplaypresentchange",i)}}function Pe(t){function e(){return p!==null&&w!==null}function i(At){var wt=B[H.indexOf(At.inputSource)];wt&&wt.dispatchEvent({type:At.type})}function n(){t.setFramebuffer(null),gt.stop()}function s(At,wt){wt===null?At.matrixWorld.copy(At.matrix):At.matrixWorld.multiplyMatrices(wt.matrixWorld,At.matrix),At.matrixWorldInverse.getInverse(At.matrixWorld)}var l=t.context,f=null,p=null,v=1,w=null,C="stage",P=null,B=[],H=[],q=new ye;q.layers.enable(1),q.viewport=new y;var K=new ye;K.layers.enable(2),K.viewport=new y;var rt=new Fe([q,K]);rt.layers.enable(1),rt.layers.enable(2),this.enabled=!1,this.getController=function(At){var wt=B[At];return wt===void 0&&(wt=new ci,wt.matrixAutoUpdate=!1,wt.visible=!1,B[At]=wt),wt},this.getDevice=function(){return f},this.setDevice=function(At){At!==void 0&&(f=At),At instanceof XRDevice&&l.setCompatibleXRDevice(At)},this.setFramebufferScaleFactor=function(At){v=At},this.setFrameOfReferenceType=function(At){C=At},this.setSession=function(At){p=At,p!==null&&(p.addEventListener("select",i),p.addEventListener("selectstart",i),p.addEventListener("selectend",i),p.addEventListener("end",n),p.baseLayer=new XRWebGLLayer(p,l,{framebufferScaleFactor:v}),p.requestFrameOfReference(C).then(function(wt){w=wt,t.setFramebuffer(p.baseLayer.framebuffer),gt.setContext(p),gt.start()}),H=p.getInputSources(),p.addEventListener("inputsourceschange",function(){H=p.getInputSources(),console.log(H);for(var wt=0;wt<B.length;wt++)B[wt].userData.inputSource=H[wt]}))},this.getCamera=function(At){if(e()){var wt=At.parent,Vt=rt.cameras;s(rt,wt);for(var Z=0;Z<Vt.length;Z++)s(Vt[Z],wt);for(At.matrixWorld.copy(rt.matrixWorld),At=At.children,Z=0,wt=At.length;Z<wt;Z++)At[Z].updateMatrixWorld(!0);return pe(rt,q,K),rt}return At},this.isPresenting=e;var xt=null,gt=new T;gt.setAnimationLoop(function(At,wt){if(P=wt.getDevicePose(w),P!==null)for(var Vt=p.baseLayer,Z=wt.views,st=0;st<Z.length;st++){var zt=Z[st],ee=Vt.getViewport(zt),$t=P.getViewMatrix(zt),qt=rt.cameras[st];qt.matrix.fromArray($t).getInverse(qt.matrix),qt.projectionMatrix.fromArray(zt.projectionMatrix),qt.viewport.set(ee.x,ee.y,ee.width,ee.height),st===0&&rt.matrix.copy(qt.matrix)}for(st=0;st<B.length;st++){if(Vt=B[st],(Z=H[st])&&(Z=wt.getInputPose(Z,w),Z!==null)){"targetRay"in Z?Vt.matrix.elements=Z.targetRay.transformMatrix:"pointerMatrix"in Z&&(Vt.matrix.elements=Z.pointerMatrix),Vt.matrix.decompose(Vt.position,Vt.rotation,Vt.scale),Vt.visible=!0;continue}Vt.visible=!1}xt&&xt(At)}),this.setAnimationLoop=function(At){xt=At},this.dispose=function(){},this.getStandingMatrix=function(){return console.warn("THREE.WebXRManager: getStandingMatrix() is no longer needed."),new THREE.Matrix4},this.submitFrame=function(){}}function xe(t){var e;function i(){ii=new Jt(ne),Ze=new Qi(ne,ii,t),Ze.isWebGL2||(ii.get("WEBGL_depth_texture"),ii.get("OES_texture_float"),ii.get("OES_texture_half_float"),ii.get("OES_texture_half_float_linear"),ii.get("OES_standard_derivatives"),ii.get("OES_element_index_uint"),ii.get("ANGLE_instanced_arrays")),ii.get("OES_texture_float_linear"),In=new He(ne,ii,Ze),li=new ue(ne,ii,In,Ze),li.scissor(qi.copy(Ye).multiplyScalar(ti)),li.viewport(yn.copy(Ut).multiplyScalar(ti)),xn=new dt,Pn=new at,Bs=new je(ne,ii,li,Pn,Ze,In,xn),La=new M(ne),Yh=new Wt(ne,La,xn),Ra=new Kt(Yh,xn),Zh=new ie(ne),Uo=new lt(qt,ii,Ze),Ml=new Rt,Go=new he,lo=new Ii(qt,li,Ra,Z),Jh=new mn(ne,ii,xn,Ze),er=new pt(ne,ii,xn,Ze),xn.programs=Uo.programs,qt.context=ne,qt.capabilities=Ze,qt.extensions=ii,qt.properties=Pn,qt.renderLists=Ml,qt.state=li,qt.info=xn}function n(ft){ft.preventDefault(),console.log("THREE.WebGLRenderer: Context Lost."),Te=!0}function s(){console.log("THREE.WebGLRenderer: Context Restored."),Te=!1,i()}function l(ft){ft=ft.target,ft.removeEventListener("dispose",l),f(ft),Pn.remove(ft)}function f(ft){var Tt=Pn.get(ft).program;ft.program=void 0,Tt!==void 0&&Uo.releaseProgram(Tt)}function p(ft,Tt){ft.render(function(mt){qt.renderBufferImmediate(mt,Tt)})}function v(ft,Tt,mt){if(ft.visible!==!1){if(ft.layers.test(Tt.layers)){if(ft.isLight)$t.pushLight(ft),ft.castShadow&&$t.pushShadow(ft);else if(ft.isSprite){if(!ft.frustumCulled||Wi.intersectsSprite(ft)){mt&&Ai.setFromMatrixPosition(ft.matrixWorld).applyMatrix4(Ci);var Me=Ra.update(ft),De=ft.material;ee.push(ft,Me,De,Ai.z,null)}}else if(ft.isImmediateRenderObject)mt&&Ai.setFromMatrixPosition(ft.matrixWorld).applyMatrix4(Ci),ee.push(ft,null,ft.material,Ai.z,null);else if((ft.isMesh||ft.isLine||ft.isPoints)&&(ft.isSkinnedMesh&&ft.skeleton.update(),!ft.frustumCulled||Wi.intersectsObject(ft)))if(mt&&Ai.setFromMatrixPosition(ft.matrixWorld).applyMatrix4(Ci),Me=Ra.update(ft),De=ft.material,Array.isArray(De))for(var Ve=Me.groups,Se=0,Ke=Ve.length;Se<Ke;Se++){var Li=Ve[Se],$i=De[Li.materialIndex];$i&&$i.visible&&ee.push(ft,Me,$i,Ai.z,Li)}else De.visible&&ee.push(ft,Me,De,Ai.z,null)}for(ft=ft.children,Se=0,Ke=ft.length;Se<Ke;Se++)v(ft[Se],Tt,mt)}}function w(ft,Tt,mt,Me){for(var De=0,Ve=ft.length;De<Ve;De++){var Se=ft[De],Ke=Se.object,Li=Se.geometry,$i=Me===void 0?Se.material:Me;if(Se=Se.group,mt.isArrayCamera){An=mt;for(var ve=mt.cameras,Tr=0,Nn=ve.length;Tr<Nn;Tr++){var an=ve[Tr];if(Ke.layers.test(an.layers)){if("viewport"in an)li.viewport(yn.copy(an.viewport));else{var dr=an.bounds;li.viewport(yn.set(dr.x*Cn,dr.y*Ae,dr.z*Cn,dr.w*Ae).multiplyScalar(ti))}$t.setupLights(an),C(Ke,Tt,an,Li,$i,Se)}}}else An=null,C(Ke,Tt,mt,Li,$i,Se)}}function C(ft,Tt,mt,Me,De,Ve){if(ft.onBeforeRender(qt,Tt,mt,Me,De,Ve),$t=Go.get(Tt,An||mt),ft.modelViewMatrix.multiplyMatrices(mt.matrixWorldInverse,ft.matrixWorld),ft.normalMatrix.getNormalMatrix(ft.modelViewMatrix),ft.isImmediateRenderObject){li.setMaterial(De);var Se=B(mt,Tt.fog,De,ft);We=e=null,Qe=!1,p(ft,Se)}else qt.renderBufferDirect(mt,Tt.fog,Me,De,ft,Ve);ft.onAfterRender(qt,Tt,mt,Me,De,Ve),$t=Go.get(Tt,An||mt)}function P(ft,Tt,mt){var Me=Pn.get(ft),De=$t.state.lights,Ve=Me.lightsHash,Se=De.state.hash;mt=Uo.getParameters(ft,De.state,$t.state.shadowsArray,Tt,Ce.numPlanes,Ce.numIntersection,mt);var Ke=Uo.getProgramCode(ft,mt),Li=Me.program,$i=!0;if(Li===void 0)ft.addEventListener("dispose",l);else if(Li.code!==Ke)f(ft);else{if(Ve.stateID!==Se.stateID||Ve.directionalLength!==Se.directionalLength||Ve.pointLength!==Se.pointLength||Ve.spotLength!==Se.spotLength||Ve.rectAreaLength!==Se.rectAreaLength||Ve.hemiLength!==Se.hemiLength||Ve.shadowsLength!==Se.shadowsLength)Ve.stateID=Se.stateID,Ve.directionalLength=Se.directionalLength,Ve.pointLength=Se.pointLength,Ve.spotLength=Se.spotLength,Ve.rectAreaLength=Se.rectAreaLength,Ve.hemiLength=Se.hemiLength,Ve.shadowsLength=Se.shadowsLength;else if(mt.shaderID!==void 0)return;$i=!1}if($i&&(mt.shaderID?(Ke=xs[mt.shaderID],Me.shader={name:ft.type,uniforms:Bn.clone(Ke.uniforms),vertexShader:Ke.vertexShader,fragmentShader:Ke.fragmentShader}):Me.shader={name:ft.type,uniforms:ft.uniforms,vertexShader:ft.vertexShader,fragmentShader:ft.fragmentShader},ft.onBeforeCompile(Me.shader,qt),Ke=Uo.getProgramCode(ft,mt),Li=Uo.acquireProgram(ft,Me.shader,mt,Ke),Me.program=Li,ft.program=Li),mt=Li.getAttributes(),ft.morphTargets)for(Ke=ft.numSupportedMorphTargets=0;Ke<qt.maxMorphTargets;Ke++)0<=mt["morphTarget"+Ke]&&ft.numSupportedMorphTargets++;if(ft.morphNormals)for(Ke=ft.numSupportedMorphNormals=0;Ke<qt.maxMorphNormals;Ke++)0<=mt["morphNormal"+Ke]&&ft.numSupportedMorphNormals++;mt=Me.shader.uniforms,(!ft.isShaderMaterial&&!ft.isRawShaderMaterial||ft.clipping===!0)&&(Me.numClippingPlanes=Ce.numPlanes,Me.numIntersection=Ce.numIntersection,mt.clippingPlanes=Ce.uniform),Me.fog=Tt,Ve===void 0&&(Me.lightsHash=Ve={}),Ve.stateID=Se.stateID,Ve.directionalLength=Se.directionalLength,Ve.pointLength=Se.pointLength,Ve.spotLength=Se.spotLength,Ve.rectAreaLength=Se.rectAreaLength,Ve.hemiLength=Se.hemiLength,Ve.shadowsLength=Se.shadowsLength,ft.lights&&(mt.ambientLightColor.value=De.state.ambient,mt.directionalLights.value=De.state.directional,mt.spotLights.value=De.state.spot,mt.rectAreaLights.value=De.state.rectArea,mt.pointLights.value=De.state.point,mt.hemisphereLights.value=De.state.hemi,mt.directionalShadowMap.value=De.state.directionalShadowMap,mt.directionalShadowMatrix.value=De.state.directionalShadowMatrix,mt.spotShadowMap.value=De.state.spotShadowMap,mt.spotShadowMatrix.value=De.state.spotShadowMatrix,mt.pointShadowMap.value=De.state.pointShadowMap,mt.pointShadowMatrix.value=De.state.pointShadowMatrix),ft=Me.program.getUniforms(),ft=hs.seqWithValue(ft.seq,mt),Me.uniformsList=ft}function B(ft,Tt,mt,Me){sn=0;var De=Pn.get(mt),Ve=De.lightsHash,Se=$t.state.lights.state.hash;Xe&&(ri||ft!==fi)&&Ce.setState(mt.clippingPlanes,mt.clipIntersection,mt.clipShadows,ft,De,ft===fi&&mt.id===ae),mt.needsUpdate===!1&&(De.program===void 0||mt.fog&&De.fog!==Tt?mt.needsUpdate=!0:(!mt.lights||Ve.stateID===Se.stateID&&Ve.directionalLength===Se.directionalLength&&Ve.pointLength===Se.pointLength&&Ve.spotLength===Se.spotLength&&Ve.rectAreaLength===Se.rectAreaLength&&Ve.hemiLength===Se.hemiLength&&Ve.shadowsLength===Se.shadowsLength)&&(De.numClippingPlanes===void 0||De.numClippingPlanes===Ce.numPlanes&&De.numIntersection===Ce.numIntersection)||(mt.needsUpdate=!0)),mt.needsUpdate&&(P(mt,Tt,Me),mt.needsUpdate=!1);var Ke=!1,Li=!1,$i=!1;Ve=De.program,Se=Ve.getUniforms();var ve=De.shader.uniforms;if(li.useProgram(Ve.program)&&($i=Li=Ke=!0),mt.id!==ae&&(ae=mt.id,Li=!0),(Ke||fi!==ft)&&(Se.setValue(ne,"projectionMatrix",ft.projectionMatrix),Ze.logarithmicDepthBuffer&&Se.setValue(ne,"logDepthBufFC",2/(Math.log(ft.far+1)/Math.LN2)),fi!==ft&&(fi=ft,$i=Li=!0),(mt.isShaderMaterial||mt.isMeshPhongMaterial||mt.isMeshStandardMaterial||mt.envMap)&&(Ke=Se.map.cameraPosition,Ke!==void 0&&Ke.setValue(ne,Ai.setFromMatrixPosition(ft.matrixWorld))),(mt.isMeshPhongMaterial||mt.isMeshLambertMaterial||mt.isMeshBasicMaterial||mt.isMeshStandardMaterial||mt.isShaderMaterial||mt.skinning)&&Se.setValue(ne,"viewMatrix",ft.matrixWorldInverse)),mt.skinning&&(Se.setOptional(ne,Me,"bindMatrix"),Se.setOptional(ne,Me,"bindMatrixInverse"),ft=Me.skeleton))if(Ke=ft.bones,Ze.floatVertexTextures){if(ft.boneTexture===void 0){Ke=Math.sqrt(4*Ke.length),Ke=pi.ceilPowerOfTwo(Ke),Ke=Math.max(Ke,4);var Tr=new Float32Array(Ke*Ke*4);Tr.set(ft.boneMatrices);var Nn=new I(Tr,Ke,Ke,1023,1015);Nn.needsUpdate=!0,ft.boneMatrices=Tr,ft.boneTexture=Nn,ft.boneTextureSize=Ke}Se.setValue(ne,"boneTexture",ft.boneTexture),Se.setValue(ne,"boneTextureSize",ft.boneTextureSize)}else Se.setOptional(ne,ft,"boneMatrices");return Li&&(Se.setValue(ne,"toneMappingExposure",qt.toneMappingExposure),Se.setValue(ne,"toneMappingWhitePoint",qt.toneMappingWhitePoint),mt.lights&&(Li=$i,ve.ambientLightColor.needsUpdate=Li,ve.directionalLights.needsUpdate=Li,ve.pointLights.needsUpdate=Li,ve.spotLights.needsUpdate=Li,ve.rectAreaLights.needsUpdate=Li,ve.hemisphereLights.needsUpdate=Li),Tt&&mt.fog&&(ve.fogColor.value=Tt.color,Tt.isFog?(ve.fogNear.value=Tt.near,ve.fogFar.value=Tt.far):Tt.isFogExp2&&(ve.fogDensity.value=Tt.density)),mt.isMeshBasicMaterial?H(ve,mt):mt.isMeshLambertMaterial?(H(ve,mt),mt.emissiveMap&&(ve.emissiveMap.value=mt.emissiveMap)):mt.isMeshPhongMaterial?(H(ve,mt),mt.isMeshToonMaterial?(q(ve,mt),mt.gradientMap&&(ve.gradientMap.value=mt.gradientMap)):q(ve,mt)):mt.isMeshStandardMaterial?(H(ve,mt),mt.isMeshPhysicalMaterial?(K(ve,mt),ve.reflectivity.value=mt.reflectivity,ve.clearCoat.value=mt.clearCoat,ve.clearCoatRoughness.value=mt.clearCoatRoughness):K(ve,mt)):mt.isMeshMatcapMaterial?(H(ve,mt),mt.matcap&&(ve.matcap.value=mt.matcap),mt.bumpMap&&(ve.bumpMap.value=mt.bumpMap,ve.bumpScale.value=mt.bumpScale,mt.side===1&&(ve.bumpScale.value*=-1)),mt.normalMap&&(ve.normalMap.value=mt.normalMap,ve.normalScale.value.copy(mt.normalScale),mt.side===1&&ve.normalScale.value.negate()),mt.displacementMap&&(ve.displacementMap.value=mt.displacementMap,ve.displacementScale.value=mt.displacementScale,ve.displacementBias.value=mt.displacementBias)):mt.isMeshDepthMaterial?(H(ve,mt),mt.displacementMap&&(ve.displacementMap.value=mt.displacementMap,ve.displacementScale.value=mt.displacementScale,ve.displacementBias.value=mt.displacementBias)):mt.isMeshDistanceMaterial?(H(ve,mt),mt.displacementMap&&(ve.displacementMap.value=mt.displacementMap,ve.displacementScale.value=mt.displacementScale,ve.displacementBias.value=mt.displacementBias),ve.referencePosition.value.copy(mt.referencePosition),ve.nearDistance.value=mt.nearDistance,ve.farDistance.value=mt.farDistance):mt.isMeshNormalMaterial?(H(ve,mt),mt.bumpMap&&(ve.bumpMap.value=mt.bumpMap,ve.bumpScale.value=mt.bumpScale,mt.side===1&&(ve.bumpScale.value*=-1)),mt.normalMap&&(ve.normalMap.value=mt.normalMap,ve.normalScale.value.copy(mt.normalScale),mt.side===1&&ve.normalScale.value.negate()),mt.displacementMap&&(ve.displacementMap.value=mt.displacementMap,ve.displacementScale.value=mt.displacementScale,ve.displacementBias.value=mt.displacementBias)):mt.isLineBasicMaterial?(ve.diffuse.value=mt.color,ve.opacity.value=mt.opacity,mt.isLineDashedMaterial&&(ve.dashSize.value=mt.dashSize,ve.totalSize.value=mt.dashSize+mt.gapSize,ve.scale.value=mt.scale)):mt.isPointsMaterial?(ve.diffuse.value=mt.color,ve.opacity.value=mt.opacity,ve.size.value=mt.size*ti,ve.scale.value=.5*Ae,ve.map.value=mt.map,mt.map!==null&&(mt.map.matrixAutoUpdate===!0&&mt.map.updateMatrix(),ve.uvTransform.value.copy(mt.map.matrix))):mt.isSpriteMaterial?(ve.diffuse.value=mt.color,ve.opacity.value=mt.opacity,ve.rotation.value=mt.rotation,ve.map.value=mt.map,mt.map!==null&&(mt.map.matrixAutoUpdate===!0&&mt.map.updateMatrix(),ve.uvTransform.value.copy(mt.map.matrix))):mt.isShadowMaterial&&(ve.color.value=mt.color,ve.opacity.value=mt.opacity),ve.ltc_1!==void 0&&(ve.ltc_1.value=qe.LTC_1),ve.ltc_2!==void 0&&(ve.ltc_2.value=qe.LTC_2),hs.upload(ne,De.uniformsList,ve,qt)),mt.isShaderMaterial&&mt.uniformsNeedUpdate===!0&&(hs.upload(ne,De.uniformsList,ve,qt),mt.uniformsNeedUpdate=!1),mt.isSpriteMaterial&&Se.setValue(ne,"center",Me.center),Se.setValue(ne,"modelViewMatrix",Me.modelViewMatrix),Se.setValue(ne,"normalMatrix",Me.normalMatrix),Se.setValue(ne,"modelMatrix",Me.matrixWorld),Ve}function H(ft,Tt){if(ft.opacity.value=Tt.opacity,Tt.color&&(ft.diffuse.value=Tt.color),Tt.emissive&&ft.emissive.value.copy(Tt.emissive).multiplyScalar(Tt.emissiveIntensity),Tt.map&&(ft.map.value=Tt.map),Tt.alphaMap&&(ft.alphaMap.value=Tt.alphaMap),Tt.specularMap&&(ft.specularMap.value=Tt.specularMap),Tt.envMap&&(ft.envMap.value=Tt.envMap,ft.flipEnvMap.value=Tt.envMap&&Tt.envMap.isCubeTexture?-1:1,ft.reflectivity.value=Tt.reflectivity,ft.refractionRatio.value=Tt.refractionRatio,ft.maxMipLevel.value=Pn.get(Tt.envMap).__maxMipLevel),Tt.lightMap&&(ft.lightMap.value=Tt.lightMap,ft.lightMapIntensity.value=Tt.lightMapIntensity),Tt.aoMap&&(ft.aoMap.value=Tt.aoMap,ft.aoMapIntensity.value=Tt.aoMapIntensity),Tt.map)var mt=Tt.map;else Tt.specularMap?mt=Tt.specularMap:Tt.displacementMap?mt=Tt.displacementMap:Tt.normalMap?mt=Tt.normalMap:Tt.bumpMap?mt=Tt.bumpMap:Tt.roughnessMap?mt=Tt.roughnessMap:Tt.metalnessMap?mt=Tt.metalnessMap:Tt.alphaMap?mt=Tt.alphaMap:Tt.emissiveMap&&(mt=Tt.emissiveMap);mt!==void 0&&(mt.isWebGLRenderTarget&&(mt=mt.texture),mt.matrixAutoUpdate===!0&&mt.updateMatrix(),ft.uvTransform.value.copy(mt.matrix))}function q(ft,Tt){ft.specular.value=Tt.specular,ft.shininess.value=Math.max(Tt.shininess,1e-4),Tt.emissiveMap&&(ft.emissiveMap.value=Tt.emissiveMap),Tt.bumpMap&&(ft.bumpMap.value=Tt.bumpMap,ft.bumpScale.value=Tt.bumpScale,Tt.side===1&&(ft.bumpScale.value*=-1)),Tt.normalMap&&(ft.normalMap.value=Tt.normalMap,ft.normalScale.value.copy(Tt.normalScale),Tt.side===1&&ft.normalScale.value.negate()),Tt.displacementMap&&(ft.displacementMap.value=Tt.displacementMap,ft.displacementScale.value=Tt.displacementScale,ft.displacementBias.value=Tt.displacementBias)}function K(ft,Tt){ft.roughness.value=Tt.roughness,ft.metalness.value=Tt.metalness,Tt.roughnessMap&&(ft.roughnessMap.value=Tt.roughnessMap),Tt.metalnessMap&&(ft.metalnessMap.value=Tt.metalnessMap),Tt.emissiveMap&&(ft.emissiveMap.value=Tt.emissiveMap),Tt.bumpMap&&(ft.bumpMap.value=Tt.bumpMap,ft.bumpScale.value=Tt.bumpScale,Tt.side===1&&(ft.bumpScale.value*=-1)),Tt.normalMap&&(ft.normalMap.value=Tt.normalMap,ft.normalScale.value.copy(Tt.normalScale),Tt.side===1&&ft.normalScale.value.negate()),Tt.displacementMap&&(ft.displacementMap.value=Tt.displacementMap,ft.displacementScale.value=Tt.displacementScale,ft.displacementBias.value=Tt.displacementBias),Tt.envMap&&(ft.envMapIntensity.value=Tt.envMapIntensity)}console.log("THREE.WebGLRenderer","98"),t=t||{};var rt=t.canvas!==void 0?t.canvas:document.createElementNS("http://www.w3.org/1999/xhtml","canvas"),xt=t.context!==void 0?t.context:null,gt=t.alpha!==void 0?t.alpha:!1,At=t.depth!==void 0?t.depth:!0,wt=t.stencil!==void 0?t.stencil:!0,Vt=t.antialias!==void 0?t.antialias:!1,Z=t.premultipliedAlpha!==void 0?t.premultipliedAlpha:!0,st=t.preserveDrawingBuffer!==void 0?t.preserveDrawingBuffer:!1,zt=t.powerPreference!==void 0?t.powerPreference:"default",ee=null,$t=null;this.domElement=rt,this.context=null,this.sortObjects=this.autoClearStencil=this.autoClearDepth=this.autoClearColor=this.autoClear=!0,this.clippingPlanes=[],this.localClippingEnabled=!1,this.gammaFactor=2,this.physicallyCorrectLights=this.gammaOutput=this.gammaInput=!1,this.toneMappingWhitePoint=this.toneMappingExposure=this.toneMapping=1,this.maxMorphTargets=8,this.maxMorphNormals=4;var qt=this,Te=!1,me=null,Ie=null,be=null,ae=-1,We=e=null,Qe=!1,fi=null,An=null,yn=new y,qi=new y,Vi=null,sn=0,Cn=rt.width,Ae=rt.height,ti=1,Ut=new y(0,0,Cn,Ae),Ye=new y(0,0,Cn,Ae),ei=!1,Wi=new E,Ce=new W,Xe=!1,ri=!1,Ci=new c,Ai=new u;try{gt={alpha:gt,depth:At,stencil:wt,antialias:Vt,premultipliedAlpha:Z,preserveDrawingBuffer:st,powerPreference:zt},rt.addEventListener("webglcontextlost",n,!1),rt.addEventListener("webglcontextrestored",s,!1);var ne=xt||rt.getContext("webgl",gt)||rt.getContext("experimental-webgl",gt);if(ne===null)throw rt.getContext("webgl")!==null?Error("Error creating WebGL context with your selected attributes."):Error("Error creating WebGL context.");ne.getShaderPrecisionFormat===void 0&&(ne.getShaderPrecisionFormat=function(){return{rangeMin:1,rangeMax:1,precision:1}})}catch(ft){console.error("THREE.WebGLRenderer: "+ft.message)}var ii,Ze,li,xn,Pn,Bs,La,Yh,Ra,Uo,Ml,Go,lo,Zh,Jh,er,In;i();var Ms=null;typeof navigator<"u"&&(Ms="xr"in navigator?new Pe(qt):new mi(qt)),this.vr=Ms;var Bu=new _e(qt,Ra,Ze.maxTextureSize);this.shadowMap=Bu,this.getContext=function(){return ne},this.getContextAttributes=function(){return ne.getContextAttributes()},this.forceContextLoss=function(){var ft=ii.get("WEBGL_lose_context");ft&&ft.loseContext()},this.forceContextRestore=function(){var ft=ii.get("WEBGL_lose_context");ft&&ft.restoreContext()},this.getPixelRatio=function(){return ti},this.setPixelRatio=function(ft){ft!==void 0&&(ti=ft,this.setSize(Cn,Ae,!1))},this.getSize=function(){return{width:Cn,height:Ae}},this.setSize=function(ft,Tt,mt){Ms.isPresenting()?console.warn("THREE.WebGLRenderer: Can't change size while VR device is presenting."):(Cn=ft,Ae=Tt,rt.width=ft*ti,rt.height=Tt*ti,mt!==!1&&(rt.style.width=ft+"px",rt.style.height=Tt+"px"),this.setViewport(0,0,ft,Tt))},this.getDrawingBufferSize=function(){return{width:Cn*ti,height:Ae*ti}},this.setDrawingBufferSize=function(ft,Tt,mt){Cn=ft,Ae=Tt,ti=mt,rt.width=ft*mt,rt.height=Tt*mt,this.setViewport(0,0,ft,Tt)},this.getCurrentViewport=function(){return yn},this.setViewport=function(ft,Tt,mt,Me){Ut.set(ft,Ae-Tt-Me,mt,Me),li.viewport(yn.copy(Ut).multiplyScalar(ti))},this.setScissor=function(ft,Tt,mt,Me){Ye.set(ft,Ae-Tt-Me,mt,Me),li.scissor(qi.copy(Ye).multiplyScalar(ti))},this.setScissorTest=function(ft){li.setScissorTest(ei=ft)},this.getClearColor=function(){return lo.getClearColor()},this.setClearColor=function(){lo.setClearColor.apply(lo,arguments)},this.getClearAlpha=function(){return lo.getClearAlpha()},this.setClearAlpha=function(){lo.setClearAlpha.apply(lo,arguments)},this.clear=function(ft,Tt,mt){var Me=0;(ft===void 0||ft)&&(Me|=16384),(Tt===void 0||Tt)&&(Me|=256),(mt===void 0||mt)&&(Me|=1024),ne.clear(Me)},this.clearColor=function(){this.clear(!0,!1,!1)},this.clearDepth=function(){this.clear(!1,!0,!1)},this.clearStencil=function(){this.clear(!1,!1,!0)},this.dispose=function(){rt.removeEventListener("webglcontextlost",n,!1),rt.removeEventListener("webglcontextrestored",s,!1),Ml.dispose(),Go.dispose(),Pn.dispose(),Ra.dispose(),Ms.dispose(),Ns.stop()},this.renderBufferImmediate=function(ft,Tt){li.initAttributes();var mt=Pn.get(ft);ft.hasPositions&&!mt.position&&(mt.position=ne.createBuffer()),ft.hasNormals&&!mt.normal&&(mt.normal=ne.createBuffer()),ft.hasUvs&&!mt.uv&&(mt.uv=ne.createBuffer()),ft.hasColors&&!mt.color&&(mt.color=ne.createBuffer()),Tt=Tt.getAttributes(),ft.hasPositions&&(ne.bindBuffer(34962,mt.position),ne.bufferData(34962,ft.positionArray,35048),li.enableAttribute(Tt.position),ne.vertexAttribPointer(Tt.position,3,5126,!1,0,0)),ft.hasNormals&&(ne.bindBuffer(34962,mt.normal),ne.bufferData(34962,ft.normalArray,35048),li.enableAttribute(Tt.normal),ne.vertexAttribPointer(Tt.normal,3,5126,!1,0,0)),ft.hasUvs&&(ne.bindBuffer(34962,mt.uv),ne.bufferData(34962,ft.uvArray,35048),li.enableAttribute(Tt.uv),ne.vertexAttribPointer(Tt.uv,2,5126,!1,0,0)),ft.hasColors&&(ne.bindBuffer(34962,mt.color),ne.bufferData(34962,ft.colorArray,35048),li.enableAttribute(Tt.color),ne.vertexAttribPointer(Tt.color,3,5126,!1,0,0)),li.disableUnusedAttributes(),ne.drawArrays(4,0,ft.count),ft.count=0},this.renderBufferDirect=function(ft,Tt,mt,Me,De,Ve){var Se=De.isMesh&&0>De.normalMatrix.determinant();li.setMaterial(Me,Se);var Ke=B(ft,Tt,Me,De),Li=!1;(e!==mt.id||We!==Ke.id||Qe!==(Me.wireframe===!0))&&(e=mt.id,We=Ke.id,Qe=Me.wireframe===!0,Li=!0),De.morphTargetInfluences&&(Zh.update(De,mt,Me,Ke),Li=!0),Se=mt.index;var $i=mt.attributes.position;if(Tt=1,Me.wireframe===!0&&(Se=Yh.getWireframeAttribute(mt),Tt=2),ft=Jh,Se!==null){var ve=La.get(Se);ft=er,ft.setIndex(ve)}if(Li){if(mt&&mt.isInstancedBufferGeometry&!Ze.isWebGL2&&ii.get("ANGLE_instanced_arrays")===null)console.error("THREE.WebGLRenderer.setupVertexAttributes: using THREE.InstancedBufferGeometry but hardware does not support extension ANGLE_instanced_arrays.");else{li.initAttributes(),Li=mt.attributes,Ke=Ke.getAttributes();var Tr=Me.defaultAttributeValues;for(ir in Ke){var Nn=Ke[ir];if(0<=Nn){var an=Li[ir];if(an!==void 0){var dr=an.normalized,$h=an.itemSize,Ss=La.get(an);if(Ss!==void 0){var Kh=Ss.buffer,hh=Ss.type;if(Ss=Ss.bytesPerElement,an.isInterleavedBufferAttribute){var Ia=an.data,Nu=Ia.stride;an=an.offset,Ia&&Ia.isInstancedInterleavedBuffer?(li.enableAttributeAndDivisor(Nn,Ia.meshPerAttribute),mt.maxInstancedCount===void 0&&(mt.maxInstancedCount=Ia.meshPerAttribute*Ia.count)):li.enableAttribute(Nn),ne.bindBuffer(34962,Kh),ne.vertexAttribPointer(Nn,$h,hh,dr,Nu*Ss,an*Ss)}else an.isInstancedBufferAttribute?(li.enableAttributeAndDivisor(Nn,an.meshPerAttribute),mt.maxInstancedCount===void 0&&(mt.maxInstancedCount=an.meshPerAttribute*an.count)):li.enableAttribute(Nn),ne.bindBuffer(34962,Kh),ne.vertexAttribPointer(Nn,$h,hh,dr,0,0)}}else if(Tr!==void 0&&(dr=Tr[ir],dr!==void 0))switch(dr.length){case 2:ne.vertexAttrib2fv(Nn,dr);break;case 3:ne.vertexAttrib3fv(Nn,dr);break;case 4:ne.vertexAttrib4fv(Nn,dr);break;default:ne.vertexAttrib1fv(Nn,dr)}}}li.disableUnusedAttributes()}Se!==null&&ne.bindBuffer(34963,ve.buffer)}ve=1/0,Se!==null?ve=Se.count:$i!==void 0&&(ve=$i.count),Se=mt.drawRange.start*Tt,$i=Ve!==null?Ve.start*Tt:0;var ir=Math.max(Se,$i);if(Ve=Math.max(0,Math.min(ve,Se+mt.drawRange.count*Tt,$i+(Ve!==null?Ve.count*Tt:1/0))-1-ir+1),Ve!==0){if(De.isMesh)if(Me.wireframe===!0)li.setLineWidth(Me.wireframeLinewidth*(Ie===null?ti:1)),ft.setMode(1);else switch(De.drawMode){case 0:ft.setMode(4);break;case 1:ft.setMode(5);break;case 2:ft.setMode(6)}else De.isLine?(Me=Me.linewidth,Me===void 0&&(Me=1),li.setLineWidth(Me*(Ie===null?ti:1)),De.isLineSegments?ft.setMode(1):De.isLineLoop?ft.setMode(2):ft.setMode(3)):De.isPoints?ft.setMode(0):De.isSprite&&ft.setMode(4);mt&&mt.isInstancedBufferGeometry?0<mt.maxInstancedCount&&ft.renderInstances(mt,ir,Ve):ft.render(ir,Ve)}},this.compile=function(ft,Tt){$t=Go.get(ft,Tt),$t.init(),ft.traverse(function(mt){mt.isLight&&($t.pushLight(mt),mt.castShadow&&$t.pushShadow(mt))}),$t.setupLights(Tt),ft.traverse(function(mt){if(mt.material)if(Array.isArray(mt.material))for(var Me=0;Me<mt.material.length;Me++)P(mt.material[Me],ft.fog,mt);else P(mt.material,ft.fog,mt)})};var Oa=null,Ns=new T;Ns.setAnimationLoop(function(ft){Ms.isPresenting()||Oa&&Oa(ft)}),typeof window<"u"&&Ns.setContext(window),this.setAnimationLoop=function(ft){Oa=ft,Ms.setAnimationLoop(ft),Ns.start()},this.render=function(ft,Tt,mt,Me){if(!Tt||!Tt.isCamera)console.error("THREE.WebGLRenderer.render: camera is not an instance of THREE.Camera.");else if(!Te){We=e=null,Qe=!1,ae=-1,fi=null,ft.autoUpdate===!0&&ft.updateMatrixWorld(),Tt.parent===null&&Tt.updateMatrixWorld(),Ms.enabled&&(Tt=Ms.getCamera(Tt)),$t=Go.get(ft,Tt),$t.init(),ft.onBeforeRender(qt,ft,Tt,mt),Ci.multiplyMatrices(Tt.projectionMatrix,Tt.matrixWorldInverse),Wi.setFromMatrix(Ci),ri=this.localClippingEnabled,Xe=Ce.init(this.clippingPlanes,ri,Tt),ee=Ml.get(ft,Tt),ee.init(),v(ft,Tt,qt.sortObjects),qt.sortObjects===!0&&ee.sort(),Xe&&Ce.beginShadows(),Bu.render($t.state.shadowsArray,ft,Tt),$t.setupLights(Tt),Xe&&Ce.endShadows(),this.info.autoReset&&this.info.reset(),mt===void 0&&(mt=null),this.setRenderTarget(mt),lo.render(ee,ft,Tt,Me),Me=ee.opaque;var De=ee.transparent;if(ft.overrideMaterial){var Ve=ft.overrideMaterial;Me.length&&w(Me,ft,Tt,Ve),De.length&&w(De,ft,Tt,Ve)}else Me.length&&w(Me,ft,Tt),De.length&&w(De,ft,Tt);mt&&Bs.updateRenderTargetMipmap(mt),li.buffers.depth.setTest(!0),li.buffers.depth.setMask(!0),li.buffers.color.setMask(!0),li.setPolygonOffset(!1),ft.onAfterRender(qt,ft,Tt),Ms.enabled&&Ms.submitFrame(),$t=ee=null}},this.allocTextureUnit=function(){var ft=sn;return ft>=Ze.maxTextures&&console.warn("THREE.WebGLRenderer: Trying to use "+ft+" texture units while this GPU supports only "+Ze.maxTextures),sn+=1,ft},this.setTexture2D=function(){var ft=!1;return function(Tt,mt){Tt&&Tt.isWebGLRenderTarget&&(ft||(console.warn("THREE.WebGLRenderer.setTexture2D: don't use render targets as textures. Use their .texture property instead."),ft=!0),Tt=Tt.texture),Bs.setTexture2D(Tt,mt)}}(),this.setTexture3D=function(){return function(ft,Tt){Bs.setTexture3D(ft,Tt)}}(),this.setTexture=function(){var ft=!1;return function(Tt,mt){ft||(console.warn("THREE.WebGLRenderer: .setTexture is deprecated, use setTexture2D instead."),ft=!0),Bs.setTexture2D(Tt,mt)}}(),this.setTextureCube=function(){var ft=!1;return function(Tt,mt){Tt&&Tt.isWebGLRenderTargetCube&&(ft||(console.warn("THREE.WebGLRenderer.setTextureCube: don't use cube render targets as textures. Use their .texture property instead."),ft=!0),Tt=Tt.texture),Tt&&Tt.isCubeTexture||Array.isArray(Tt.image)&&Tt.image.length===6?Bs.setTextureCube(Tt,mt):Bs.setTextureCubeDynamic(Tt,mt)}}(),this.setFramebuffer=function(ft){me=ft},this.getRenderTarget=function(){return Ie},this.setRenderTarget=function(ft){(Ie=ft)&&Pn.get(ft).__webglFramebuffer===void 0&&Bs.setupRenderTarget(ft);var Tt=me,mt=!1;ft?(Tt=Pn.get(ft).__webglFramebuffer,ft.isWebGLRenderTargetCube&&(Tt=Tt[ft.activeCubeFace],mt=!0),yn.copy(ft.viewport),qi.copy(ft.scissor),Vi=ft.scissorTest):(yn.copy(Ut).multiplyScalar(ti),qi.copy(Ye).multiplyScalar(ti),Vi=ei),be!==Tt&&(ne.bindFramebuffer(36160,Tt),be=Tt),li.viewport(yn),li.scissor(qi),li.setScissorTest(Vi),mt&&(mt=Pn.get(ft.texture),ne.framebufferTexture2D(36160,36064,34069+ft.activeCubeFace,mt.__webglTexture,ft.activeMipMapLevel))},this.readRenderTargetPixels=function(ft,Tt,mt,Me,De,Ve){if(ft&&ft.isWebGLRenderTarget){var Se=Pn.get(ft).__webglFramebuffer;if(Se){var Ke=!1;Se!==be&&(ne.bindFramebuffer(36160,Se),Ke=!0);try{var Li=ft.texture,$i=Li.format,ve=Li.type;$i!==1023&&In.convert($i)!==ne.getParameter(35739)?console.error("THREE.WebGLRenderer.readRenderTargetPixels: renderTarget is not in RGBA or implementation defined format."):ve===1009||In.convert(ve)===ne.getParameter(35738)||ve===1015&&(Ze.isWebGL2||ii.get("OES_texture_float")||ii.get("WEBGL_color_buffer_float"))||ve===1016&&(Ze.isWebGL2?ii.get("EXT_color_buffer_float"):ii.get("EXT_color_buffer_half_float"))?ne.checkFramebufferStatus(36160)===36053?0<=Tt&&Tt<=ft.width-Me&&0<=mt&&mt<=ft.height-De&&ne.readPixels(Tt,mt,Me,De,In.convert($i),In.convert(ve),Ve):console.error("THREE.WebGLRenderer.readRenderTargetPixels: readPixels from renderTarget failed. Framebuffer not complete."):console.error("THREE.WebGLRenderer.readRenderTargetPixels: renderTarget is not in UnsignedByteType or implementation defined type.")}finally{Ke&&ne.bindFramebuffer(36160,be)}}}else console.error("THREE.WebGLRenderer.readRenderTargetPixels: renderTarget is not THREE.WebGLRenderTarget.")},this.copyFramebufferToTexture=function(ft,Tt,mt){var Me=Tt.image.width,De=Tt.image.height,Ve=In.convert(Tt.format);this.setTexture2D(Tt,0),ne.copyTexImage2D(3553,mt||0,Ve,ft.x,ft.y,Me,De,0)},this.copyTextureToTexture=function(ft,Tt,mt,Me){var De=Tt.image.width,Ve=Tt.image.height,Se=In.convert(mt.format),Ke=In.convert(mt.type);this.setTexture2D(mt,0),Tt.isDataTexture?ne.texSubImage2D(3553,Me||0,ft.x,ft.y,De,Ve,Se,Ke,Tt.image.data):ne.texSubImage2D(3553,Me||0,ft.x,ft.y,Se,Ke,Tt.image)}}function Le(t,e){this.name="",this.color=new L(t),this.density=e!==void 0?e:25e-5}function Sn(t,e,i){this.name="",this.color=new L(t),this.near=e!==void 0?e:1,this.far=i!==void 0?i:1e3}function Xn(){N.call(this),this.type="Scene",this.overrideMaterial=this.fog=this.background=null,this.autoUpdate=!0}function zi(t,e){this.array=t,this.stride=e,this.count=t!==void 0?t.length/e:0,this.dynamic=!1,this.updateRange={offset:0,count:-1},this.version=0}function ki(t,e,i,n){this.data=t,this.itemSize=e,this.offset=i,this.normalized=n===!0}function Hi(t){Yt.call(this),this.type="SpriteMaterial",this.color=new L(16777215),this.map=null,this.rotation=0,this.sizeAttenuation=!0,this.lights=!1,this.transparent=!0,this.setValues(t)}function nn(t){if(N.call(this),this.type="Sprite",Pa===void 0){Pa=new Ft;var e=new Float32Array([-.5,-.5,0,0,0,.5,-.5,0,1,0,.5,.5,0,1,1,-.5,.5,0,0,1]);e=new zi(e,5),Pa.setIndex([0,1,2,0,2,3]),Pa.addAttribute("position",new ki(e,3,0,!1)),Pa.addAttribute("uv",new ki(e,2,3,!1))}this.geometry=Pa,this.material=t!==void 0?t:new Hi,this.center=new o(.5,.5)}function rn(){N.call(this),this.type="LOD",Object.defineProperties(this,{levels:{enumerable:!0,value:[]}})}function un(t,e){if(t=t||[],this.bones=t.slice(0),this.boneMatrices=new Float32Array(16*this.bones.length),e===void 0)this.calculateInverses();else if(this.bones.length===e.length)this.boneInverses=e.slice(0);else for(console.warn("THREE.Skeleton boneInverses is the wrong length."),this.boneInverses=[],t=0,e=this.bones.length;t<e;t++)this.boneInverses.push(new c)}function cn(){N.call(this),this.type="Bone"}function Gi(t,e){di.call(this,t,e),this.type="SkinnedMesh",this.bindMode="attached",this.bindMatrix=new c,this.bindMatrixInverse=new c,t=this.initBones(),t=new un(t),this.bind(t,this.matrixWorld),this.normalizeSkinWeights()}function Bi(t){Yt.call(this),this.type="LineBasicMaterial",this.color=new L(16777215),this.linewidth=1,this.linejoin=this.linecap="round",this.lights=!1,this.setValues(t)}function ji(t,e,i){i===1&&console.error("THREE.Line: parameter THREE.LinePieces no longer supported. Use THREE.LineSegments instead."),N.call(this),this.type="Line",this.geometry=t!==void 0?t:new Ft,this.material=e!==void 0?e:new Bi({color:16777215*Math.random()})}function gi(t,e){ji.call(this,t,e),this.type="LineSegments"}function cs(t,e){ji.call(this,t,e),this.type="LineLoop"}function Fn(t){Yt.call(this),this.type="PointsMaterial",this.color=new L(16777215),this.map=null,this.size=1,this.sizeAttenuation=!0,this.lights=this.morphTargets=!1,this.setValues(t)}function oa(t,e){N.call(this),this.type="Points",this.geometry=t!==void 0?t:new Ft,this.material=e!==void 0?e:new Fn({color:16777215*Math.random()})}function Rh(t,e,i,n,s,l,f,p,v){_.call(this,t,e,i,n,s,l,f,p,v),this.generateMipmaps=!1}function qs(t,e,i,n,s,l,f,p,v,w,C,P){_.call(this,null,l,f,p,v,w,n,s,C,P),this.image={width:e,height:i},this.mipmaps=t,this.generateMipmaps=this.flipY=!1}function Za(t,e,i,n,s,l,f,p,v){_.call(this,t,e,i,n,s,l,f,p,v),this.needsUpdate=!0}function Ja(t,e,i,n,s,l,f,p,v,w){if(w=w!==void 0?w:1026,w!==1026&&w!==1027)throw Error("DepthTexture format must be either THREE.DepthFormat or THREE.DepthStencilFormat");i===void 0&&w===1026&&(i=1012),i===void 0&&w===1027&&(i=1020),_.call(this,null,n,s,l,f,p,w,i,v),this.image={width:t,height:e},this.magFilter=f!==void 0?f:1003,this.minFilter=p!==void 0?p:1003,this.generateMipmaps=this.flipY=!1}function aa(t){Ft.call(this),this.type="WireframeGeometry";var e=[],i,n,s,l=[0,0],f={},p=["a","b","c"];if(t&&t.isGeometry){var v=t.faces,w=0;for(n=v.length;w<n;w++){var C=v[w];for(i=0;3>i;i++){var P=C[p[i]],B=C[p[(i+1)%3]];l[0]=Math.min(P,B),l[1]=Math.max(P,B),P=l[0]+","+l[1],f[P]===void 0&&(f[P]={index1:l[0],index2:l[1]})}}for(P in f)w=f[P],p=t.vertices[w.index1],e.push(p.x,p.y,p.z),p=t.vertices[w.index2],e.push(p.x,p.y,p.z)}else if(t&&t.isBufferGeometry)if(p=new u,t.index!==null){v=t.attributes.position,C=t.index;var H=t.groups;for(H.length===0&&(H=[{start:0,count:C.count,materialIndex:0}]),t=0,s=H.length;t<s;++t)for(w=H[t],i=w.start,n=w.count,w=i,n=i+n;w<n;w+=3)for(i=0;3>i;i++)P=C.getX(w+i),B=C.getX(w+(i+1)%3),l[0]=Math.min(P,B),l[1]=Math.max(P,B),P=l[0]+","+l[1],f[P]===void 0&&(f[P]={index1:l[0],index2:l[1]});for(P in f)w=f[P],p.fromBufferAttribute(v,w.index1),e.push(p.x,p.y,p.z),p.fromBufferAttribute(v,w.index2),e.push(p.x,p.y,p.z)}else for(v=t.attributes.position,w=0,n=v.count/3;w<n;w++)for(i=0;3>i;i++)f=3*w+i,p.fromBufferAttribute(v,f),e.push(p.x,p.y,p.z),f=3*w+(i+1)%3,p.fromBufferAttribute(v,f),e.push(p.x,p.y,p.z);this.addAttribute("position",new Et(e,3))}function $a(t,e,i){j.call(this),this.type="ParametricGeometry",this.parameters={func:t,slices:e,stacks:i},this.fromBufferGeometry(new la(t,e,i)),this.mergeVertices()}function la(t,e,i){Ft.call(this),this.type="ParametricBufferGeometry",this.parameters={func:t,slices:e,stacks:i};var n=[],s=[],l=[],f=[],p=new u,v=new u,w=new u,C=new u,P=new u,B,H;3>t.length&&console.error("THREE.ParametricGeometry: Function must now modify a Vector3 as third parameter.");var q=e+1;for(B=0;B<=i;B++){var K=B/i;for(H=0;H<=e;H++){var rt=H/e;t(rt,K,v),s.push(v.x,v.y,v.z),0<=rt-1e-5?(t(rt-1e-5,K,w),C.subVectors(v,w)):(t(rt+1e-5,K,w),C.subVectors(w,v)),0<=K-1e-5?(t(rt,K-1e-5,w),P.subVectors(v,w)):(t(rt,K+1e-5,w),P.subVectors(w,v)),p.crossVectors(C,P).normalize(),l.push(p.x,p.y,p.z),f.push(rt,K)}}for(B=0;B<i;B++)for(H=0;H<e;H++)t=B*q+H+1,p=(B+1)*q+H+1,v=(B+1)*q+H,n.push(B*q+H,t,v),n.push(t,p,v);this.setIndex(n),this.addAttribute("position",new Et(s,3)),this.addAttribute("normal",new Et(l,3)),this.addAttribute("uv",new Et(f,2))}function Xi(t,e,i,n){j.call(this),this.type="PolyhedronGeometry",this.parameters={vertices:t,indices:e,radius:i,detail:n},this.fromBufferGeometry(new xi(t,e,i,n)),this.mergeVertices()}function xi(t,e,i,n){function s(w){p.push(w.x,w.y,w.z)}function l(w,C){w*=3,C.x=t[w+0],C.y=t[w+1],C.z=t[w+2]}function f(w,C,P,B){0>B&&w.x===1&&(v[C]=w.x-1),P.x===0&&P.z===0&&(v[C]=B/2/Math.PI+.5)}Ft.call(this),this.type="PolyhedronBufferGeometry",this.parameters={vertices:t,indices:e,radius:i,detail:n},i=i||1,n=n||0;var p=[],v=[];(function(w){for(var C=new u,P=new u,B=new u,H=0;H<e.length;H+=3){l(e[H+0],C),l(e[H+1],P),l(e[H+2],B);var q,K,rt=C,xt=P,gt=B,At=Math.pow(2,w),wt=[];for(K=0;K<=At;K++){wt[K]=[];var Vt=rt.clone().lerp(gt,K/At),Z=xt.clone().lerp(gt,K/At),st=At-K;for(q=0;q<=st;q++)wt[K][q]=q===0&&K===At?Vt:Vt.clone().lerp(Z,q/st)}for(K=0;K<At;K++)for(q=0;q<2*(At-K)-1;q++)rt=Math.floor(q/2),q%2===0?(s(wt[K][rt+1]),s(wt[K+1][rt]),s(wt[K][rt])):(s(wt[K][rt+1]),s(wt[K+1][rt+1]),s(wt[K+1][rt]))}})(n),function(w){for(var C=new u,P=0;P<p.length;P+=3)C.x=p[P+0],C.y=p[P+1],C.z=p[P+2],C.normalize().multiplyScalar(w),p[P+0]=C.x,p[P+1]=C.y,p[P+2]=C.z}(i),function(){for(var w=new u,C=0;C<p.length;C+=3)w.x=p[C+0],w.y=p[C+1],w.z=p[C+2],v.push(Math.atan2(w.z,-w.x)/2/Math.PI+.5,1-(Math.atan2(-w.y,Math.sqrt(w.x*w.x+w.z*w.z))/Math.PI+.5));w=new u,C=new u;for(var P=new u,B=new u,H=new o,q=new o,K=new o,rt=0,xt=0;rt<p.length;rt+=9,xt+=6){w.set(p[rt+0],p[rt+1],p[rt+2]),C.set(p[rt+3],p[rt+4],p[rt+5]),P.set(p[rt+6],p[rt+7],p[rt+8]),H.set(v[xt+0],v[xt+1]),q.set(v[xt+2],v[xt+3]),K.set(v[xt+4],v[xt+5]),B.copy(w).add(C).add(P).divideScalar(3);var gt=Math.atan2(B.z,-B.x);f(H,xt+0,w,gt),f(q,xt+2,C,gt),f(K,xt+4,P,gt)}for(w=0;w<v.length;w+=6)C=v[w+0],P=v[w+2],B=v[w+4],H=Math.min(C,P,B),.9<Math.max(C,P,B)&&.1>H&&(.2>C&&(v[w+0]+=1),.2>P&&(v[w+2]+=1),.2>B&&(v[w+4]+=1))}(),this.addAttribute("position",new Et(p,3)),this.addAttribute("normal",new Et(p.slice(),3)),this.addAttribute("uv",new Et(v,2)),n===0?this.computeVertexNormals():this.normalizeNormals()}function Ka(t,e){j.call(this),this.type="TetrahedronGeometry",this.parameters={radius:t,detail:e},this.fromBufferGeometry(new ha(t,e)),this.mergeVertices()}function ha(t,e){xi.call(this,[1,1,1,-1,-1,1,-1,1,-1,1,-1,-1],[2,1,0,0,3,2,1,3,0,2,3,1],t,e),this.type="TetrahedronBufferGeometry",this.parameters={radius:t,detail:e}}function Qa(t,e){j.call(this),this.type="OctahedronGeometry",this.parameters={radius:t,detail:e},this.fromBufferGeometry(new _o(t,e)),this.mergeVertices()}function _o(t,e){xi.call(this,[1,0,0,-1,0,0,0,1,0,0,-1,0,0,0,1,0,0,-1],[0,2,4,0,4,3,0,3,5,0,5,2,1,2,5,1,5,3,1,3,4,1,4,2],t,e),this.type="OctahedronBufferGeometry",this.parameters={radius:t,detail:e}}function tl(t,e){j.call(this),this.type="IcosahedronGeometry",this.parameters={radius:t,detail:e},this.fromBufferGeometry(new ua(t,e)),this.mergeVertices()}function ua(t,e){var i=(1+Math.sqrt(5))/2;xi.call(this,[-1,i,0,1,i,0,-1,-i,0,1,-i,0,0,-1,i,0,1,i,0,-1,-i,0,1,-i,i,0,-1,i,0,1,-i,0,-1,-i,0,1],[0,11,5,0,5,1,0,1,7,0,7,10,0,10,11,1,5,9,5,11,4,11,10,2,10,7,6,7,1,8,3,9,4,3,4,2,3,2,6,3,6,8,3,8,9,4,9,5,2,4,11,6,2,10,8,6,7,9,8,1],t,e),this.type="IcosahedronBufferGeometry",this.parameters={radius:t,detail:e}}function ca(t,e){j.call(this),this.type="DodecahedronGeometry",this.parameters={radius:t,detail:e},this.fromBufferGeometry(new fa(t,e)),this.mergeVertices()}function fa(t,e){var i=(1+Math.sqrt(5))/2,n=1/i;xi.call(this,[-1,-1,-1,-1,-1,1,-1,1,-1,-1,1,1,1,-1,-1,1,-1,1,1,1,-1,1,1,1,0,-n,-i,0,-n,i,0,n,-i,0,n,i,-n,-i,0,-n,i,0,n,-i,0,n,i,0,-i,0,-n,i,0,-n,-i,0,n,i,0,n],[3,11,7,3,7,15,3,15,13,7,19,17,7,17,6,7,6,15,17,4,8,17,8,10,17,10,6,8,0,16,8,16,2,8,2,10,0,12,1,0,1,18,0,18,16,6,10,2,6,2,13,6,13,15,2,16,18,2,18,3,2,3,13,18,1,9,18,9,11,18,11,3,4,14,12,4,12,0,4,0,8,11,9,5,11,5,19,11,19,7,19,5,14,19,14,4,19,4,17,1,12,14,1,14,5,1,5,9],t,e),this.type="DodecahedronBufferGeometry",this.parameters={radius:t,detail:e}}function gn(t,e,i,n,s,l){j.call(this),this.type="TubeGeometry",this.parameters={path:t,tubularSegments:e,radius:i,radialSegments:n,closed:s},l!==void 0&&console.warn("THREE.TubeGeometry: taper has been removed."),t=new Ys(t,e,i,n,s),this.tangents=t.tangents,this.normals=t.normals,this.binormals=t.binormals,this.fromBufferGeometry(t),this.mergeVertices()}function Ys(t,e,i,n,s){function l(xt){C=t.getPointAt(xt/e,C);var gt=f.normals[xt];for(xt=f.binormals[xt],B=0;B<=n;B++){var At=B/n*Math.PI*2,wt=Math.sin(At);At=-Math.cos(At),v.x=At*gt.x+wt*xt.x,v.y=At*gt.y+wt*xt.y,v.z=At*gt.z+wt*xt.z,v.normalize(),q.push(v.x,v.y,v.z),p.x=C.x+i*v.x,p.y=C.y+i*v.y,p.z=C.z+i*v.z,H.push(p.x,p.y,p.z)}}Ft.call(this),this.type="TubeBufferGeometry",this.parameters={path:t,tubularSegments:e,radius:i,radialSegments:n,closed:s},e=e||64,i=i||1,n=n||8,s=s||!1;var f=t.computeFrenetFrames(e,s);this.tangents=f.tangents,this.normals=f.normals,this.binormals=f.binormals;var p=new u,v=new u,w=new o,C=new u,P,B,H=[],q=[],K=[],rt=[];for(P=0;P<e;P++)l(P);for(l(s===!1?e:0),P=0;P<=e;P++)for(B=0;B<=n;B++)w.x=P/e,w.y=B/n,K.push(w.x,w.y);(function(){for(B=1;B<=e;B++)for(P=1;P<=n;P++){var xt=(n+1)*B+(P-1),gt=(n+1)*B+P,At=(n+1)*(B-1)+P;rt.push((n+1)*(B-1)+(P-1),xt,At),rt.push(xt,gt,At)}})(),this.setIndex(rt),this.addAttribute("position",new Et(H,3)),this.addAttribute("normal",new Et(q,3)),this.addAttribute("uv",new Et(K,2))}function Zr(t,e,i,n,s,l,f){j.call(this),this.type="TorusKnotGeometry",this.parameters={radius:t,tube:e,tubularSegments:i,radialSegments:n,p:s,q:l},f!==void 0&&console.warn("THREE.TorusKnotGeometry: heightScale has been deprecated. Use .scale( x, y, z ) instead."),this.fromBufferGeometry(new yo(t,e,i,n,s,l)),this.mergeVertices()}function yo(t,e,i,n,s,l){function f(Z,st,zt,ee,$t){var qt=Math.sin(Z);st=zt/st*Z,zt=Math.cos(st),$t.x=ee*(2+zt)*.5*Math.cos(Z),$t.y=ee*(2+zt)*qt*.5,$t.z=ee*Math.sin(st)*.5}Ft.call(this),this.type="TorusKnotBufferGeometry",this.parameters={radius:t,tube:e,tubularSegments:i,radialSegments:n,p:s,q:l},t=t||1,e=e||.4,i=Math.floor(i)||64,n=Math.floor(n)||8,s=s||2,l=l||3;var p=[],v=[],w=[],C=[],P,B=new u,H=new u,q=new u,K=new u,rt=new u,xt=new u,gt=new u;for(P=0;P<=i;++P){var At=P/i*s*Math.PI*2;for(f(At,s,l,t,q),f(At+.01,s,l,t,K),xt.subVectors(K,q),gt.addVectors(K,q),rt.crossVectors(xt,gt),gt.crossVectors(rt,xt),rt.normalize(),gt.normalize(),At=0;At<=n;++At){var wt=At/n*Math.PI*2,Vt=-e*Math.cos(wt);wt=e*Math.sin(wt),B.x=q.x+(Vt*gt.x+wt*rt.x),B.y=q.y+(Vt*gt.y+wt*rt.y),B.z=q.z+(Vt*gt.z+wt*rt.z),v.push(B.x,B.y,B.z),H.subVectors(B,q).normalize(),w.push(H.x,H.y,H.z),C.push(P/i),C.push(At/n)}}for(At=1;At<=i;At++)for(P=1;P<=n;P++)t=(n+1)*At+(P-1),e=(n+1)*At+P,s=(n+1)*(At-1)+P,p.push((n+1)*(At-1)+(P-1),t,s),p.push(t,e,s);this.setIndex(p),this.addAttribute("position",new Et(v,3)),this.addAttribute("normal",new Et(w,3)),this.addAttribute("uv",new Et(C,2))}function xo(t,e,i,n,s){j.call(this),this.type="TorusGeometry",this.parameters={radius:t,tube:e,radialSegments:i,tubularSegments:n,arc:s},this.fromBufferGeometry(new Un(t,e,i,n,s)),this.mergeVertices()}function Un(t,e,i,n,s){Ft.call(this),this.type="TorusBufferGeometry",this.parameters={radius:t,tube:e,radialSegments:i,tubularSegments:n,arc:s},t=t||1,e=e||.4,i=Math.floor(i)||8,n=Math.floor(n)||6,s=s||2*Math.PI;var l=[],f=[],p=[],v=[],w=new u,C=new u,P=new u,B,H;for(B=0;B<=i;B++)for(H=0;H<=n;H++){var q=H/n*s,K=B/i*Math.PI*2;C.x=(t+e*Math.cos(K))*Math.cos(q),C.y=(t+e*Math.cos(K))*Math.sin(q),C.z=e*Math.sin(K),f.push(C.x,C.y,C.z),w.x=t*Math.cos(q),w.y=t*Math.sin(q),P.subVectors(C,w).normalize(),p.push(P.x,P.y,P.z),v.push(H/n),v.push(B/i)}for(B=1;B<=i;B++)for(H=1;H<=n;H++)t=(n+1)*(B-1)+H-1,e=(n+1)*(B-1)+H,s=(n+1)*B+H,l.push((n+1)*B+H-1,t,s),l.push(t,e,s);this.setIndex(l),this.addAttribute("position",new Et(f,3)),this.addAttribute("normal",new Et(p,3)),this.addAttribute("uv",new Et(v,2))}function Oh(t,e,i,n,s){for(var l,f=0,p=e,v=i-n;p<i;p+=n)f+=(t[v]-t[p])*(t[p+1]+t[v+1]),v=p;if(s===0<f)for(s=e;s<i;s+=n)l=Xl(s,t[s],t[s+1],l);else for(s=i-n;s>=e;s-=n)l=Xl(s,t[s],t[s+1],l);return l&&wo(l,l.next)&&(Yi(l),l=l.next),l}function pa(t,e){if(!t)return t;e||(e=t);do{var i=!1;if(t.steiner||!wo(t,t.next)&&Ji(t.prev,t,t.next)!==0)t=t.next;else{if(Yi(t),t=e=t.prev,t===t.next)break;i=!0}}while(i||t!==e);return e}function da(t,e,i,n,s,l,f){if(t){if(!f&&l){var p=t,v=p;do v.z===null&&(v.z=Wl(v.x,v.y,n,s,l)),v.prevZ=v.prev,v=v.nextZ=v.next;while(v!==p);v.prevZ.nextZ=null,v.prevZ=null,p=v;var w,C,P,B,H=1;do{v=p;var q=p=null;for(C=0;v;){C++;var K=v;for(w=P=0;w<H&&(P++,K=K.nextZ,K);w++);for(B=H;0<P||0<B&&K;)P!==0&&(B===0||!K||v.z<=K.z)?(w=v,v=v.nextZ,P--):(w=K,K=K.nextZ,B--),q?q.nextZ=w:p=w,w.prevZ=q,q=w;v=K}q.nextZ=null,H*=2}while(1<C)}for(p=t;t.prev!==t.next;){if(v=t.prev,K=t.next,l)t:{q=t,B=n;var rt=s,xt=l;if(C=q.prev,P=q,H=q.next,0<=Ji(C,P,H))q=!1;else{var gt=C.x>P.x?C.x>H.x?C.x:H.x:P.x>H.x?P.x:H.x,At=C.y>P.y?C.y>H.y?C.y:H.y:P.y>H.y?P.y:H.y;for(w=Wl(C.x<P.x?C.x<H.x?C.x:H.x:P.x<H.x?P.x:H.x,C.y<P.y?C.y<H.y?C.y:H.y:P.y<H.y?P.y:H.y,B,rt,xt),B=Wl(gt,At,B,rt,xt),rt=q.nextZ;rt&&rt.z<=B;){if(rt!==q.prev&&rt!==q.next&&jl(C.x,C.y,P.x,P.y,H.x,H.y,rt.x,rt.y)&&0<=Ji(rt.prev,rt,rt.next)){q=!1;break t}rt=rt.nextZ}for(rt=q.prevZ;rt&&rt.z>=w;){if(rt!==q.prev&&rt!==q.next&&jl(C.x,C.y,P.x,P.y,H.x,H.y,rt.x,rt.y)&&0<=Ji(rt.prev,rt,rt.next)){q=!1;break t}rt=rt.prevZ}q=!0}}else t:if(q=t,C=q.prev,P=q,H=q.next,0<=Ji(C,P,H))q=!1;else{for(w=q.next.next;w!==q.prev;){if(jl(C.x,C.y,P.x,P.y,H.x,H.y,w.x,w.y)&&0<=Ji(w.prev,w,w.next)){q=!1;break t}w=w.next}q=!0}if(q)e.push(v.i/i),e.push(t.i/i),e.push(K.i/i),Yi(t),p=t=K.next;else if(t=K,t===p){if(!f)da(pa(t),e,i,n,s,l,1);else if(f===1){f=e,p=i,v=t;do K=v.prev,q=v.next.next,!wo(K,q)&&Ih(K,v,v.next,q)&&Rr(K,q)&&Rr(q,K)&&(f.push(K.i/p),f.push(v.i/p),f.push(q.i/p),Yi(v),Yi(v.next),v=t=q),v=v.next;while(v!==t);t=v,da(t,e,i,n,s,l,2)}else if(f===2)t:{f=t;do{for(p=f.next.next;p!==f.prev;){if(v=f.i!==p.i){if(v=f,K=p,q=v.next.i!==K.i&&v.prev.i!==K.i){e:{q=v;do{if(q.i!==v.i&&q.next.i!==v.i&&q.i!==K.i&&q.next.i!==K.i&&Ih(q,q.next,v,K)){q=!0;break e}q=q.next}while(q!==v);q=!1}q=!q}if(q=q&&Rr(v,K)&&Rr(K,v)){q=v,C=!1,P=(v.x+K.x)/2,K=(v.y+K.y)/2;do q.y>K!=q.next.y>K&&q.next.y!==q.y&&P<(q.next.x-q.x)*(K-q.y)/(q.next.y-q.y)+q.x&&(C=!C),q=q.next;while(q!==v);q=C}v=q}if(v){t=el(f,p),f=pa(f,f.next),t=pa(t,t.next),da(f,e,i,n,s,l),da(t,e,i,n,s,l);break t}p=p.next}f=f.next}while(f!==t)}break}}}}function xu(t,e){return t.x-e.x}function wu(t,e){var i=e,n=t.x,s=t.y,l=-1/0;do{if(s<=i.y&&s>=i.next.y&&i.next.y!==i.y){var f=i.x+(s-i.y)*(i.next.x-i.x)/(i.next.y-i.y);if(f<=n&&f>l){if(l=f,f===n){if(s===i.y)return i;if(s===i.next.y)return i.next}var p=i.x<i.next.x?i:i.next}}i=i.next}while(i!==e);if(!p)return null;if(n===l)return p.prev;e=p,f=p.x;var v=p.y,w=1/0;for(i=p.next;i!==e;){if(n>=i.x&&i.x>=f&&n!==i.x&&jl(s<v?n:l,s,f,v,s<v?l:n,s,i.x,i.y)){var C=Math.abs(s-i.y)/(n-i.x);(C<w||C===w&&i.x>p.x)&&Rr(i,t)&&(p=i,w=C)}i=i.next}return p}function Wl(t,e,i,n,s){return t=32767*(t-i)*s,e=32767*(e-n)*s,t=(t|t<<8)&16711935,t=(t|t<<4)&252645135,t=(t|t<<2)&858993459,e=(e|e<<8)&16711935,e=(e|e<<4)&252645135,e=(e|e<<2)&858993459,(t|t<<1)&1431655765|((e|e<<1)&1431655765)<<1}function _r(t){var e=t,i=t;do e.x<i.x&&(i=e),e=e.next;while(e!==t);return i}function jl(t,e,i,n,s,l,f,p){return 0<=(s-f)*(e-p)-(t-f)*(l-p)&&0<=(t-f)*(n-p)-(i-f)*(e-p)&&0<=(i-f)*(l-p)-(s-f)*(n-p)}function Ji(t,e,i){return(e.y-t.y)*(i.x-e.x)-(e.x-t.x)*(i.y-e.y)}function wo(t,e){return t.x===e.x&&t.y===e.y}function Ih(t,e,i,n){return wo(t,e)&&wo(i,n)||wo(t,n)&&wo(i,e)?!0:0<Ji(t,e,i)!=0<Ji(t,e,n)&&0<Ji(i,n,t)!=0<Ji(i,n,e)}function Rr(t,e){return 0>Ji(t.prev,t,t.next)?0<=Ji(t,e,t.next)&&0<=Ji(t,t.prev,e):0>Ji(t,e,t.prev)||0>Ji(t,t.next,e)}function el(t,e){var i=new fs(t.i,t.x,t.y),n=new fs(e.i,e.x,e.y),s=t.next,l=e.prev;return t.next=e,e.prev=t,i.next=s,s.prev=i,n.next=i,i.prev=n,l.next=n,n.prev=l,n}function Xl(t,e,i,n){return t=new fs(t,e,i),n?(t.next=n.next,t.prev=n,n.next.prev=t,n.next=t):(t.prev=t,t.next=t),t}function Yi(t){t.next.prev=t.prev,t.prev.next=t.next,t.prevZ&&(t.prevZ.nextZ=t.nextZ),t.nextZ&&(t.nextZ.prevZ=t.prevZ)}function fs(t,e,i){this.i=t,this.x=e,this.y=i,this.nextZ=this.prevZ=this.z=this.next=this.prev=null,this.steiner=!1}function ql(t){var e=t.length;2<e&&t[e-1].equals(t[0])&&t.pop()}function Tu(t,e){for(var i=0;i<e.length;i++)t.push(e[i].x),t.push(e[i].y)}function Cs(t,e){j.call(this),this.type="ExtrudeGeometry",this.parameters={shapes:t,options:e},this.fromBufferGeometry(new ps(t,e)),this.mergeVertices()}function ps(t,e){function i(v){function w(Xe,ri,Ci){return ri||console.error("THREE.ExtrudeGeometry: vec does not exist"),ri.clone().multiplyScalar(Ci).add(Xe)}function C(Xe,ri,Ci){var Ai=Xe.x-ri.x,ne=Xe.y-ri.y,ii=Ci.x-Xe.x,Ze=Ci.y-Xe.y,li=Ai*Ai+ne*ne;if(Math.abs(Ai*Ze-ne*ii)>Number.EPSILON){var xn=Math.sqrt(li),Pn=Math.sqrt(ii*ii+Ze*Ze);if(li=ri.x-ne/xn,ri=ri.y+Ai/xn,Ze=((Ci.x-Ze/Pn-li)*Ze-(Ci.y+ii/Pn-ri)*ii)/(Ai*Ze-ne*ii),ii=li+Ai*Ze-Xe.x,Ai=ri+ne*Ze-Xe.y,ne=ii*ii+Ai*Ai,2>=ne)return new o(ii,Ai);ne=Math.sqrt(ne/2)}else Xe=!1,Ai>Number.EPSILON?ii>Number.EPSILON&&(Xe=!0):Ai<-Number.EPSILON?ii<-Number.EPSILON&&(Xe=!0):Math.sign(ne)===Math.sign(Ze)&&(Xe=!0),Xe?(ii=-ne,ne=Math.sqrt(li)):(ii=Ai,Ai=ne,ne=Math.sqrt(li/2));return new o(ii/ne,Ai/ne)}function P(Xe,ri){for(Ae=Xe.length;0<=--Ae;){var Ci=Ae,Ai=Ae-1;0>Ai&&(Ai=Xe.length-1);var ne,ii=gt+2*st;for(ne=0;ne<ii;ne++){var Ze=Vi*ne,li=Vi*(ne+1),xn=ri+Ai+Ze,Pn=ri+Ai+li;li=ri+Ci+li,q(ri+Ci+Ze),q(xn),q(li),q(xn),q(Pn),q(li),Ze=s.length/3,Ze=ee.generateSideWallUV(n,s,Ze-6,Ze-3,Ze-2,Ze-1),K(Ze[0]),K(Ze[1]),K(Ze[3]),K(Ze[1]),K(Ze[2]),K(Ze[3])}}}function B(Xe,ri,Ci){rt.push(Xe),rt.push(ri),rt.push(Ci)}function H(Xe,ri,Ci){q(Xe),q(ri),q(Ci),Xe=s.length/3,Xe=ee.generateTopUV(n,s,Xe-3,Xe-2,Xe-1),K(Xe[0]),K(Xe[1]),K(Xe[2])}function q(Xe){s.push(rt[3*Xe]),s.push(rt[3*Xe+1]),s.push(rt[3*Xe+2])}function K(Xe){l.push(Xe.x),l.push(Xe.y)}var rt=[],xt=e.curveSegments!==void 0?e.curveSegments:12,gt=e.steps!==void 0?e.steps:1,At=e.depth!==void 0?e.depth:100,wt=e.bevelEnabled!==void 0?e.bevelEnabled:!0,Vt=e.bevelThickness!==void 0?e.bevelThickness:6,Z=e.bevelSize!==void 0?e.bevelSize:Vt-2,st=e.bevelSegments!==void 0?e.bevelSegments:3,zt=e.extrudePath,ee=e.UVGenerator!==void 0?e.UVGenerator:xl;e.amount!==void 0&&(console.warn("THREE.ExtrudeBufferGeometry: amount has been renamed to depth."),At=e.amount);var $t=!1;if(zt){var qt=zt.getSpacedPoints(gt);$t=!0,wt=!1;var Te=zt.computeFrenetFrames(gt,!1),me=new u,Ie=new u,be=new u}wt||(Z=Vt=st=0);var ae;xt=v.extractPoints(xt),v=xt.shape;var We=xt.holes;if(!ws.isClockWise(v)){v=v.reverse();var Qe=0;for(ae=We.length;Qe<ae;Qe++){var fi=We[Qe];ws.isClockWise(fi)&&(We[Qe]=fi.reverse())}}var An=ws.triangulateShape(v,We),yn=v;for(Qe=0,ae=We.length;Qe<ae;Qe++)fi=We[Qe],v=v.concat(fi);var qi,Vi=v.length,sn,Cn=An.length;xt=[];var Ae=0,ti=yn.length,Ut=ti-1;for(qi=Ae+1;Ae<ti;Ae++,Ut++,qi++)Ut===ti&&(Ut=0),qi===ti&&(qi=0),xt[Ae]=C(yn[Ae],yn[Ut],yn[qi]);zt=[];var Ye=xt.concat();for(Qe=0,ae=We.length;Qe<ae;Qe++){fi=We[Qe];var ei=[];for(Ae=0,ti=fi.length,Ut=ti-1,qi=Ae+1;Ae<ti;Ae++,Ut++,qi++)Ut===ti&&(Ut=0),qi===ti&&(qi=0),ei[Ae]=C(fi[Ae],fi[Ut],fi[qi]);zt.push(ei),Ye=Ye.concat(ei)}for(Ut=0;Ut<st;Ut++){ti=Ut/st;var Wi=Vt*Math.cos(ti*Math.PI/2);for(qi=Z*Math.sin(ti*Math.PI/2),Ae=0,ti=yn.length;Ae<ti;Ae++){var Ce=w(yn[Ae],xt[Ae],qi);B(Ce.x,Ce.y,-Wi)}for(Qe=0,ae=We.length;Qe<ae;Qe++)for(fi=We[Qe],ei=zt[Qe],Ae=0,ti=fi.length;Ae<ti;Ae++)Ce=w(fi[Ae],ei[Ae],qi),B(Ce.x,Ce.y,-Wi)}for(qi=Z,Ae=0;Ae<Vi;Ae++)Ce=wt?w(v[Ae],Ye[Ae],qi):v[Ae],$t?(Ie.copy(Te.normals[0]).multiplyScalar(Ce.x),me.copy(Te.binormals[0]).multiplyScalar(Ce.y),be.copy(qt[0]).add(Ie).add(me),B(be.x,be.y,be.z)):B(Ce.x,Ce.y,0);for(ti=1;ti<=gt;ti++)for(Ae=0;Ae<Vi;Ae++)Ce=wt?w(v[Ae],Ye[Ae],qi):v[Ae],$t?(Ie.copy(Te.normals[ti]).multiplyScalar(Ce.x),me.copy(Te.binormals[ti]).multiplyScalar(Ce.y),be.copy(qt[ti]).add(Ie).add(me),B(be.x,be.y,be.z)):B(Ce.x,Ce.y,At/gt*ti);for(Ut=st-1;0<=Ut;Ut--){for(ti=Ut/st,Wi=Vt*Math.cos(ti*Math.PI/2),qi=Z*Math.sin(ti*Math.PI/2),Ae=0,ti=yn.length;Ae<ti;Ae++)Ce=w(yn[Ae],xt[Ae],qi),B(Ce.x,Ce.y,At+Wi);for(Qe=0,ae=We.length;Qe<ae;Qe++)for(fi=We[Qe],ei=zt[Qe],Ae=0,ti=fi.length;Ae<ti;Ae++)Ce=w(fi[Ae],ei[Ae],qi),$t?B(Ce.x,Ce.y+qt[gt-1].y,qt[gt-1].x+Wi):B(Ce.x,Ce.y,At+Wi)}(function(){var Xe=s.length/3;if(wt){var ri=0*Vi;for(Ae=0;Ae<Cn;Ae++)sn=An[Ae],H(sn[2]+ri,sn[1]+ri,sn[0]+ri);for(ri=Vi*(gt+2*st),Ae=0;Ae<Cn;Ae++)sn=An[Ae],H(sn[0]+ri,sn[1]+ri,sn[2]+ri)}else{for(Ae=0;Ae<Cn;Ae++)sn=An[Ae],H(sn[2],sn[1],sn[0]);for(Ae=0;Ae<Cn;Ae++)sn=An[Ae],H(sn[0]+Vi*gt,sn[1]+Vi*gt,sn[2]+Vi*gt)}n.addGroup(Xe,s.length/3-Xe,0)})(),function(){var Xe=s.length/3,ri=0;for(P(yn,ri),ri+=yn.length,Qe=0,ae=We.length;Qe<ae;Qe++)fi=We[Qe],P(fi,ri),ri+=fi.length;n.addGroup(Xe,s.length/3-Xe,1)}()}Ft.call(this),this.type="ExtrudeBufferGeometry",this.parameters={shapes:t,options:e},t=Array.isArray(t)?t:[t];for(var n=this,s=[],l=[],f=0,p=t.length;f<p;f++)i(t[f]);this.addAttribute("position",new Et(s,3)),this.addAttribute("uv",new Et(l,2)),this.computeVertexNormals()}function Mu(t,e,i){if(i.shapes=[],Array.isArray(t))for(var n=0,s=t.length;n<s;n++)i.shapes.push(t[n].uuid);else i.shapes.push(t.uuid);return e.extrudePath!==void 0&&(i.options.extrudePath=e.extrudePath.toJSON()),i}function il(t,e){j.call(this),this.type="TextGeometry",this.parameters={text:t,parameters:e},this.fromBufferGeometry(new To(t,e)),this.mergeVertices()}function To(t,e){e=e||{};var i=e.font;if(!i||!i.isFont)return console.error("THREE.TextGeometry: font parameter is not an instance of THREE.Font."),new j;t=i.generateShapes(t,e.size),e.depth=e.height!==void 0?e.height:50,e.bevelThickness===void 0&&(e.bevelThickness=10),e.bevelSize===void 0&&(e.bevelSize=8),e.bevelEnabled===void 0&&(e.bevelEnabled=!1),ps.call(this,t,e),this.type="TextBufferGeometry"}function Zs(t,e,i,n,s,l,f){j.call(this),this.type="SphereGeometry",this.parameters={radius:t,widthSegments:e,heightSegments:i,phiStart:n,phiLength:s,thetaStart:l,thetaLength:f},this.fromBufferGeometry(new Or(t,e,i,n,s,l,f)),this.mergeVertices()}function Or(t,e,i,n,s,l,f){Ft.call(this),this.type="SphereBufferGeometry",this.parameters={radius:t,widthSegments:e,heightSegments:i,phiStart:n,phiLength:s,thetaStart:l,thetaLength:f},t=t||1,e=Math.max(3,Math.floor(e)||8),i=Math.max(2,Math.floor(i)||6),n=n!==void 0?n:0,s=s!==void 0?s:2*Math.PI,l=l!==void 0?l:0,f=f!==void 0?f:Math.PI;var p=l+f,v,w,C=0,P=[],B=new u,H=new u,q=[],K=[],rt=[],xt=[];for(w=0;w<=i;w++){var gt=[],At=w/i;for(v=0;v<=e;v++){var wt=v/e;B.x=-t*Math.cos(n+wt*s)*Math.sin(l+At*f),B.y=t*Math.cos(l+At*f),B.z=t*Math.sin(n+wt*s)*Math.sin(l+At*f),K.push(B.x,B.y,B.z),H.set(B.x,B.y,B.z).normalize(),rt.push(H.x,H.y,H.z),xt.push(wt,1-At),gt.push(C++)}P.push(gt)}for(w=0;w<i;w++)for(v=0;v<e;v++)t=P[w][v+1],n=P[w][v],s=P[w+1][v],f=P[w+1][v+1],(w!==0||0<l)&&q.push(t,n,f),(w!==i-1||p<Math.PI)&&q.push(n,s,f);this.setIndex(q),this.addAttribute("position",new Et(K,3)),this.addAttribute("normal",new Et(rt,3)),this.addAttribute("uv",new Et(xt,2))}function nl(t,e,i,n,s,l){j.call(this),this.type="RingGeometry",this.parameters={innerRadius:t,outerRadius:e,thetaSegments:i,phiSegments:n,thetaStart:s,thetaLength:l},this.fromBufferGeometry(new Mo(t,e,i,n,s,l)),this.mergeVertices()}function Mo(t,e,i,n,s,l){Ft.call(this),this.type="RingBufferGeometry",this.parameters={innerRadius:t,outerRadius:e,thetaSegments:i,phiSegments:n,thetaStart:s,thetaLength:l},t=t||.5,e=e||1,s=s!==void 0?s:0,l=l!==void 0?l:2*Math.PI,i=i!==void 0?Math.max(3,i):8,n=n!==void 0?Math.max(1,n):1;var f=[],p=[],v=[],w=[],C=t,P=(e-t)/n,B=new u,H=new o,q,K;for(q=0;q<=n;q++){for(K=0;K<=i;K++)t=s+K/i*l,B.x=C*Math.cos(t),B.y=C*Math.sin(t),p.push(B.x,B.y,B.z),v.push(0,0,1),H.x=(B.x/e+1)/2,H.y=(B.y/e+1)/2,w.push(H.x,H.y);C+=P}for(q=0;q<n;q++)for(e=q*(i+1),K=0;K<i;K++)t=K+e,s=t+i+1,l=t+i+2,C=t+1,f.push(t,s,C),f.push(s,l,C);this.setIndex(f),this.addAttribute("position",new Et(p,3)),this.addAttribute("normal",new Et(v,3)),this.addAttribute("uv",new Et(w,2))}function ma(t,e,i,n){j.call(this),this.type="LatheGeometry",this.parameters={points:t,segments:e,phiStart:i,phiLength:n},this.fromBufferGeometry(new Js(t,e,i,n)),this.mergeVertices()}function Js(t,e,i,n){Ft.call(this),this.type="LatheBufferGeometry",this.parameters={points:t,segments:e,phiStart:i,phiLength:n},e=Math.floor(e)||12,i=i||0,n=n||2*Math.PI,n=pi.clamp(n,0,2*Math.PI);var s=[],l=[],f=[],p=1/e,v=new u,w=new o,C;for(C=0;C<=e;C++){var P=i+C*p*n,B=Math.sin(P),H=Math.cos(P);for(P=0;P<=t.length-1;P++)v.x=t[P].x*B,v.y=t[P].y,v.z=t[P].x*H,l.push(v.x,v.y,v.z),w.x=C/e,w.y=P/(t.length-1),f.push(w.x,w.y)}for(C=0;C<e;C++)for(P=0;P<t.length-1;P++)i=P+C*t.length,p=i+t.length,v=i+t.length+1,w=i+1,s.push(i,p,w),s.push(p,v,w);if(this.setIndex(s),this.addAttribute("position",new Et(l,3)),this.addAttribute("uv",new Et(f,2)),this.computeVertexNormals(),n===2*Math.PI)for(n=this.attributes.normal.array,s=new u,l=new u,f=new u,i=e*t.length*3,P=C=0;C<t.length;C++,P+=3)s.x=n[P+0],s.y=n[P+1],s.z=n[P+2],l.x=n[i+P+0],l.y=n[i+P+1],l.z=n[i+P+2],f.addVectors(s,l).normalize(),n[P+0]=n[i+P+0]=f.x,n[P+1]=n[i+P+1]=f.y,n[P+2]=n[i+P+2]=f.z}function Ps(t,e){j.call(this),this.type="ShapeGeometry",typeof e=="object"&&(console.warn("THREE.ShapeGeometry: Options parameter has been removed."),e=e.curveSegments),this.parameters={shapes:t,curveSegments:e},this.fromBufferGeometry(new $s(t,e)),this.mergeVertices()}function $s(t,e){function i(C){var P,B=s.length/3;C=C.extractPoints(e);var H=C.shape,q=C.holes;if(ws.isClockWise(H)===!1)for(H=H.reverse(),C=0,P=q.length;C<P;C++){var K=q[C];ws.isClockWise(K)===!0&&(q[C]=K.reverse())}var rt=ws.triangulateShape(H,q);for(C=0,P=q.length;C<P;C++)K=q[C],H=H.concat(K);for(C=0,P=H.length;C<P;C++)K=H[C],s.push(K.x,K.y,0),l.push(0,0,1),f.push(K.x,K.y);for(C=0,P=rt.length;C<P;C++)H=rt[C],n.push(H[0]+B,H[1]+B,H[2]+B),v+=3}Ft.call(this),this.type="ShapeBufferGeometry",this.parameters={shapes:t,curveSegments:e},e=e||12;var n=[],s=[],l=[],f=[],p=0,v=0;if(Array.isArray(t)===!1)i(t);else for(var w=0;w<t.length;w++)i(t[w]),this.addGroup(p,v,w),p+=v,v=0;this.setIndex(n),this.addAttribute("position",new Et(s,3)),this.addAttribute("normal",new Et(l,3)),this.addAttribute("uv",new Et(f,2))}function Su(t,e){if(e.shapes=[],Array.isArray(t))for(var i=0,n=t.length;i<n;i++)e.shapes.push(t[i].uuid);else e.shapes.push(t.uuid);return e}function Ks(t,e){Ft.call(this),this.type="EdgesGeometry",this.parameters={thresholdAngle:e};var i=[];e=Math.cos(pi.DEG2RAD*(e!==void 0?e:1));var n=[0,0],s={},l=["a","b","c"];if(t.isBufferGeometry){var f=new j;f.fromBufferGeometry(t)}else f=t.clone();f.mergeVertices(),f.computeFaceNormals(),t=f.vertices,f=f.faces;for(var p=0,v=f.length;p<v;p++)for(var w=f[p],C=0;3>C;C++){var P=w[l[C]],B=w[l[(C+1)%3]];n[0]=Math.min(P,B),n[1]=Math.max(P,B),P=n[0]+","+n[1],s[P]===void 0?s[P]={index1:n[0],index2:n[1],face1:p,face2:void 0}:s[P].face2=p}for(P in s)n=s[P],(n.face2===void 0||f[n.face1].normal.dot(f[n.face2].normal)<=e)&&(l=t[n.index1],i.push(l.x,l.y,l.z),l=t[n.index2],i.push(l.x,l.y,l.z));this.addAttribute("position",new Et(i,3))}function Ls(t,e,i,n,s,l,f,p){j.call(this),this.type="CylinderGeometry",this.parameters={radiusTop:t,radiusBottom:e,height:i,radialSegments:n,heightSegments:s,openEnded:l,thetaStart:f,thetaLength:p},this.fromBufferGeometry(new Rs(t,e,i,n,s,l,f,p)),this.mergeVertices()}function Rs(t,e,i,n,s,l,f,p){function v(gt){var At,wt=new o,Vt=new u,Z=0,st=gt===!0?t:e,zt=gt===!0?1:-1,ee=q;for(At=1;At<=n;At++)P.push(0,rt*zt,0),B.push(0,zt,0),H.push(.5,.5),q++;var $t=q;for(At=0;At<=n;At++){var qt=At/n*p+f,Te=Math.cos(qt);qt=Math.sin(qt),Vt.x=st*qt,Vt.y=rt*zt,Vt.z=st*Te,P.push(Vt.x,Vt.y,Vt.z),B.push(0,zt,0),wt.x=.5*Te+.5,wt.y=.5*qt*zt+.5,H.push(wt.x,wt.y),q++}for(At=0;At<n;At++)wt=ee+At,Vt=$t+At,gt===!0?C.push(Vt,Vt+1,wt):C.push(Vt+1,Vt,wt),Z+=3;w.addGroup(xt,Z,gt===!0?1:2),xt+=Z}Ft.call(this),this.type="CylinderBufferGeometry",this.parameters={radiusTop:t,radiusBottom:e,height:i,radialSegments:n,heightSegments:s,openEnded:l,thetaStart:f,thetaLength:p};var w=this;t=t!==void 0?t:1,e=e!==void 0?e:1,i=i||1,n=Math.floor(n)||8,s=Math.floor(s)||1,l=l!==void 0?l:!1,f=f!==void 0?f:0,p=p!==void 0?p:2*Math.PI;var C=[],P=[],B=[],H=[],q=0,K=[],rt=i/2,xt=0;(function(){var gt,At,wt=new u,Vt=new u,Z=0,st=(e-t)/i;for(At=0;At<=s;At++){var zt=[],ee=At/s,$t=ee*(e-t)+t;for(gt=0;gt<=n;gt++){var qt=gt/n,Te=qt*p+f,me=Math.sin(Te);Te=Math.cos(Te),Vt.x=$t*me,Vt.y=-ee*i+rt,Vt.z=$t*Te,P.push(Vt.x,Vt.y,Vt.z),wt.set(me,st,Te).normalize(),B.push(wt.x,wt.y,wt.z),H.push(qt,1-ee),zt.push(q++)}K.push(zt)}for(gt=0;gt<n;gt++)for(At=0;At<s;At++)wt=K[At+1][gt],Vt=K[At+1][gt+1],st=K[At][gt+1],C.push(K[At][gt],wt,st),C.push(wt,Vt,st),Z+=6;w.addGroup(xt,Z,0),xt+=Z})(),l===!1&&(0<t&&v(!0),0<e&&v(!1)),this.setIndex(C),this.addAttribute("position",new Et(P,3)),this.addAttribute("normal",new Et(B,3)),this.addAttribute("uv",new Et(H,2))}function ga(t,e,i,n,s,l,f){Ls.call(this,0,t,e,i,n,s,l,f),this.type="ConeGeometry",this.parameters={radius:t,height:e,radialSegments:i,heightSegments:n,openEnded:s,thetaStart:l,thetaLength:f}}function Gn(t,e,i,n,s,l,f){Rs.call(this,0,t,e,i,n,s,l,f),this.type="ConeBufferGeometry",this.parameters={radius:t,height:e,radialSegments:i,heightSegments:n,openEnded:s,thetaStart:l,thetaLength:f}}function So(t,e,i,n){j.call(this),this.type="CircleGeometry",this.parameters={radius:t,segments:e,thetaStart:i,thetaLength:n},this.fromBufferGeometry(new ds(t,e,i,n)),this.mergeVertices()}function ds(t,e,i,n){Ft.call(this),this.type="CircleBufferGeometry",this.parameters={radius:t,segments:e,thetaStart:i,thetaLength:n},t=t||1,e=e!==void 0?Math.max(3,e):8,i=i!==void 0?i:0,n=n!==void 0?n:2*Math.PI;var s=[],l=[],f=[],p=[],v,w=new u,C=new o;l.push(0,0,0),f.push(0,0,1),p.push(.5,.5);var P=0;for(v=3;P<=e;P++,v+=3){var B=i+P/e*n;w.x=t*Math.cos(B),w.y=t*Math.sin(B),l.push(w.x,w.y,w.z),f.push(0,0,1),C.x=(l[v]/t+1)/2,C.y=(l[v+1]/t+1)/2,p.push(C.x,C.y)}for(v=1;v<=e;v++)s.push(v,v+1,0);this.setIndex(s),this.addAttribute("position",new Et(l,3)),this.addAttribute("normal",new Et(f,3)),this.addAttribute("uv",new Et(p,2))}function Qs(t){Yt.call(this),this.type="ShadowMaterial",this.color=new L(0),this.transparent=!0,this.setValues(t)}function Eo(t){$e.call(this,t),this.type="RawShaderMaterial"}function ms(t){Yt.call(this),this.defines={STANDARD:""},this.type="MeshStandardMaterial",this.color=new L(16777215),this.metalness=this.roughness=.5,this.lightMap=this.map=null,this.lightMapIntensity=1,this.aoMap=null,this.aoMapIntensity=1,this.emissive=new L(0),this.emissiveIntensity=1,this.bumpMap=this.emissiveMap=null,this.bumpScale=1,this.normalMap=null,this.normalMapType=0,this.normalScale=new o(1,1),this.displacementMap=null,this.displacementScale=1,this.displacementBias=0,this.envMap=this.alphaMap=this.metalnessMap=this.roughnessMap=null,this.envMapIntensity=1,this.refractionRatio=.98,this.wireframe=!1,this.wireframeLinewidth=1,this.wireframeLinejoin=this.wireframeLinecap="round",this.morphNormals=this.morphTargets=this.skinning=!1,this.setValues(t)}function bo(t){ms.call(this),this.defines={PHYSICAL:""},this.type="MeshPhysicalMaterial",this.reflectivity=.5,this.clearCoatRoughness=this.clearCoat=0,this.setValues(t)}function Jr(t){Yt.call(this),this.type="MeshPhongMaterial",this.color=new L(16777215),this.specular=new L(1118481),this.shininess=30,this.lightMap=this.map=null,this.lightMapIntensity=1,this.aoMap=null,this.aoMapIntensity=1,this.emissive=new L(0),this.emissiveIntensity=1,this.bumpMap=this.emissiveMap=null,this.bumpScale=1,this.normalMap=null,this.normalMapType=0,this.normalScale=new o(1,1),this.displacementMap=null,this.displacementScale=1,this.displacementBias=0,this.envMap=this.alphaMap=this.specularMap=null,this.combine=0,this.reflectivity=1,this.refractionRatio=.98,this.wireframe=!1,this.wireframeLinewidth=1,this.wireframeLinejoin=this.wireframeLinecap="round",this.morphNormals=this.morphTargets=this.skinning=!1,this.setValues(t)}function Ao(t){Jr.call(this),this.defines={TOON:""},this.type="MeshToonMaterial",this.gradientMap=null,this.setValues(t)}function Co(t){Yt.call(this),this.type="MeshNormalMaterial",this.bumpMap=null,this.bumpScale=1,this.normalMap=null,this.normalMapType=0,this.normalScale=new o(1,1),this.displacementMap=null,this.displacementScale=1,this.displacementBias=0,this.wireframe=!1,this.wireframeLinewidth=1,this.morphNormals=this.morphTargets=this.skinning=this.lights=this.fog=!1,this.setValues(t)}function Ir(t){Yt.call(this),this.type="MeshLambertMaterial",this.color=new L(16777215),this.lightMap=this.map=null,this.lightMapIntensity=1,this.aoMap=null,this.aoMapIntensity=1,this.emissive=new L(0),this.emissiveIntensity=1,this.envMap=this.alphaMap=this.specularMap=this.emissiveMap=null,this.combine=0,this.reflectivity=1,this.refractionRatio=.98,this.wireframe=!1,this.wireframeLinewidth=1,this.wireframeLinejoin=this.wireframeLinecap="round",this.morphNormals=this.morphTargets=this.skinning=!1,this.setValues(t)}function Po(t){if(Yt.call(this),this.defines={MATCAP:""},this.type="MeshMatcapMaterial",this.color=new L(16777215),this.bumpMap=this.map=this.matcap=null,this.bumpScale=1,this.normalMap=null,this.normalMapType=0,this.normalScale=new o(1,1),this.displacementMap=null,this.displacementScale=1,this.displacementBias=0,this.alphaMap=null,this.lights=this.morphNormals=this.morphTargets=this.skinning=!1,this.setValues(t),this.matcap===null){t=document.createElement("canvas"),t.width=1,t.height=1;var e=t.getContext("2d");e.fillStyle="#fff",e.fillRect(0,0,1,1),this.matcap=new THREE.CanvasTexture(t)}}function Lo(t){Bi.call(this),this.type="LineDashedMaterial",this.scale=1,this.dashSize=3,this.gapSize=1,this.setValues(t)}function $n(t,e,i,n){this.parameterPositions=t,this._cachedIndex=0,this.resultBuffer=n!==void 0?n:new e.constructor(i),this.sampleValues=e,this.valueSize=i}function rl(t,e,i,n){$n.call(this,t,e,i,n),this._offsetNext=this._weightNext=this._offsetPrev=this._weightPrev=-0}function Dr(t,e,i,n){$n.call(this,t,e,i,n)}function Ro(t,e,i,n){$n.call(this,t,e,i,n)}function Hn(t,e,i,n){if(t===void 0)throw Error("THREE.KeyframeTrack: track name is undefined");if(e===void 0||e.length===0)throw Error("THREE.KeyframeTrack: no keyframes in track named "+t);this.name=t,this.times=Yn.convertArray(e,this.TimeBufferType),this.values=Yn.convertArray(i,this.ValueBufferType),this.setInterpolation(n||this.DefaultInterpolation)}function Yl(t,e,i){Hn.call(this,t,e,i)}function Zl(t,e,i,n){Hn.call(this,t,e,i,n)}function $r(t,e,i,n){Hn.call(this,t,e,i,n)}function ar(t,e,i,n){$n.call(this,t,e,i,n)}function va(t,e,i,n){Hn.call(this,t,e,i,n)}function Jl(t,e,i,n){Hn.call(this,t,e,i,n)}function _a(t,e,i,n){Hn.call(this,t,e,i,n)}function yr(t,e,i){this.name=t,this.tracks=i,this.duration=e!==void 0?e:-1,this.uuid=pi.generateUUID(),0>this.duration&&this.resetDuration()}function Gc(t){switch(t.toLowerCase()){case"scalar":case"double":case"float":case"number":case"integer":return $r;case"vector":case"vector2":case"vector3":case"vector4":return _a;case"color":return Zl;case"quaternion":return va;case"bool":case"boolean":return Yl;case"string":return Jl}throw Error("THREE.KeyframeTrack: Unsupported typeName: "+t)}function Hc(t){if(t.type===void 0)throw Error("THREE.KeyframeTrack: track type undefined, can not parse");var e=Gc(t.type);if(t.times===void 0){var i=[],n=[];Yn.flattenJSON(t.keys,i,n,"value"),t.times=i,t.values=n}return e.parse!==void 0?e.parse(t):new e(t.name,t.times,t.values,t.interpolation)}function to(t,e,i){var n=this,s=!1,l=0,f=0,p=void 0;this.onStart=void 0,this.onLoad=t,this.onProgress=e,this.onError=i,this.itemStart=function(v){f++,s===!1&&n.onStart!==void 0&&n.onStart(v,l,f),s=!0},this.itemEnd=function(v){l++,n.onProgress!==void 0&&n.onProgress(v,l,f),l===f&&(s=!1,n.onLoad!==void 0)&&n.onLoad()},this.itemError=function(v){n.onError!==void 0&&n.onError(v)},this.resolveURL=function(v){return p?p(v):v},this.setURLModifier=function(v){return p=v,this}}function Lt(t){this.manager=t!==void 0?t:tr}function Qt(t){this.manager=t!==void 0?t:tr}function Zt(t){this.manager=t!==void 0?t:tr,this._parser=null}function Ue(t){this.manager=t!==void 0?t:tr,this._parser=null}function ai(t){this.manager=t!==void 0?t:tr}function Ni(t){this.manager=t!==void 0?t:tr}function fn(t){this.manager=t!==void 0?t:tr}function Ee(){this.type="Curve",this.arcLengthDivisions=200}function Kn(t,e,i,n,s,l,f,p){Ee.call(this),this.type="EllipseCurve",this.aX=t||0,this.aY=e||0,this.xRadius=i||1,this.yRadius=n||1,this.aStartAngle=s||0,this.aEndAngle=l||2*Math.PI,this.aClockwise=f||!1,this.aRotation=p||0}function ya(t,e,i,n,s,l){Kn.call(this,t,e,i,i,n,s,l),this.type="ArcCurve"}function lr(){var t=0,e=0,i=0,n=0;return{initCatmullRom:function(s,l,f,p,v){s=v*(f-s),p=v*(p-l),t=l,e=s,i=-3*l+3*f-2*s-p,n=2*l-2*f+s+p},initNonuniformCatmullRom:function(s,l,f,p,v,w,C){s=((l-s)/v-(f-s)/(v+w)+(f-l)/w)*w,p=((f-l)/w-(p-l)/(w+C)+(p-f)/C)*w,t=l,e=s,i=-3*l+3*f-2*s-p,n=2*l-2*f+s+p},calc:function(s){var l=s*s;return t+e*s+i*l+n*l*s}}}function On(t,e,i,n){Ee.call(this),this.type="CatmullRomCurve3",this.points=t||[],this.closed=e||!1,this.curveType=i||"centripetal",this.tension=n||.5}function Eu(t,e,i,n,s){e=.5*(n-e),s=.5*(s-i);var l=t*t;return(2*i-2*n+e+s)*t*l+(-3*i+3*n-2*e-s)*l+e*t+i}function gs(t,e,i,n){var s=1-t;return s*s*e+2*(1-t)*t*i+t*t*n}function eo(t,e,i,n,s){var l=1-t,f=1-t;return l*l*l*e+3*f*f*t*i+3*(1-t)*t*t*n+t*t*t*s}function hr(t,e,i,n){Ee.call(this),this.type="CubicBezierCurve",this.v0=t||new o,this.v1=e||new o,this.v2=i||new o,this.v3=n||new o}function Ti(t,e,i,n){Ee.call(this),this.type="CubicBezierCurve3",this.v0=t||new u,this.v1=e||new u,this.v2=i||new u,this.v3=n||new u}function ur(t,e){Ee.call(this),this.type="LineCurve",this.v1=t||new o,this.v2=e||new o}function zr(t,e){Ee.call(this),this.type="LineCurve3",this.v1=t||new u,this.v2=e||new u}function cr(t,e,i){Ee.call(this),this.type="QuadraticBezierCurve",this.v0=t||new o,this.v1=e||new o,this.v2=i||new o}function vs(t,e,i){Ee.call(this),this.type="QuadraticBezierCurve3",this.v0=t||new u,this.v1=e||new u,this.v2=i||new u}function Kr(t){Ee.call(this),this.type="SplineCurve",this.points=t||[]}function Os(){Ee.call(this),this.type="CurvePath",this.curves=[],this.autoClose=!1}function fr(t){Os.call(this),this.type="Path",this.currentPoint=new o,t&&this.setFromPoints(t)}function Qn(t){fr.call(this,t),this.uuid=pi.generateUUID(),this.type="Shape",this.holes=[]}function tn(t,e){N.call(this),this.type="Light",this.color=new L(t),this.intensity=e!==void 0?e:1,this.receiveShadow=void 0}function sl(t,e,i){tn.call(this,t,i),this.type="HemisphereLight",this.castShadow=void 0,this.position.copy(N.DefaultUp),this.updateMatrix(),this.groundColor=new L(e)}function _s(t){this.camera=t,this.bias=0,this.radius=1,this.mapSize=new o(512,512),this.map=null,this.matrix=new c}function ol(){_s.call(this,new ye(50,1,.5,500))}function al(t,e,i,n,s,l){tn.call(this,t,e),this.type="SpotLight",this.position.copy(N.DefaultUp),this.updateMatrix(),this.target=new N,Object.defineProperty(this,"power",{get:function(){return this.intensity*Math.PI},set:function(f){this.intensity=f/Math.PI}}),this.distance=i!==void 0?i:0,this.angle=n!==void 0?n:Math.PI/3,this.penumbra=s!==void 0?s:0,this.decay=l!==void 0?l:1,this.shadow=new ol}function Oo(t,e,i,n){tn.call(this,t,e),this.type="PointLight",Object.defineProperty(this,"power",{get:function(){return 4*this.intensity*Math.PI},set:function(s){this.intensity=s/(4*Math.PI)}}),this.distance=i!==void 0?i:0,this.decay=n!==void 0?n:1,this.shadow=new _s(new ye(90,1,.5,500))}function xa(t,e,i,n,s,l){Be.call(this),this.type="OrthographicCamera",this.zoom=1,this.view=null,this.left=t!==void 0?t:-1,this.right=e!==void 0?e:1,this.top=i!==void 0?i:1,this.bottom=n!==void 0?n:-1,this.near=s!==void 0?s:.1,this.far=l!==void 0?l:2e3,this.updateProjectionMatrix()}function io(){_s.call(this,new xa(-5,5,5,-5,.5,500))}function ys(t,e){tn.call(this,t,e),this.type="DirectionalLight",this.position.copy(N.DefaultUp),this.updateMatrix(),this.target=new N,this.shadow=new io}function Io(t,e){tn.call(this,t,e),this.type="AmbientLight",this.castShadow=void 0}function $l(t,e,i,n){tn.call(this,t,e),this.type="RectAreaLight",this.width=i!==void 0?i:10,this.height=n!==void 0?n:10}function Kl(t){this.manager=t!==void 0?t:tr,this.textures={}}function Dh(t){this.manager=t!==void 0?t:tr}function Is(){}function Do(t){typeof t=="boolean"&&(console.warn("THREE.JSONLoader: showStatus parameter has been removed from constructor."),t=void 0),this.manager=t!==void 0?t:tr,this.withCredentials=!1}function ll(t){this.manager=t!==void 0?t:tr,this.resourcePath=""}function zh(t){typeof createImageBitmap>"u"&&console.warn("THREE.ImageBitmapLoader: createImageBitmap() not supported."),typeof fetch>"u"&&console.warn("THREE.ImageBitmapLoader: fetch() not supported."),this.manager=t!==void 0?t:tr,this.options=void 0}function Ql(){this.type="ShapePath",this.color=new L,this.subPaths=[],this.currentPath=null}function kh(t){this.type="Font",this.data=t}function bu(t){this.manager=t!==void 0?t:tr}function vn(t){this.manager=t!==void 0?t:tr}function Vn(){this.type="StereoCamera",this.aspect=1,this.eyeSep=.064,this.cameraL=new ye,this.cameraL.layers.enable(1),this.cameraL.matrixAutoUpdate=!1,this.cameraR=new ye,this.cameraR.layers.enable(2),this.cameraR.matrixAutoUpdate=!1}function hl(t,e,i,n){N.call(this),this.type="CubeCamera";var s=new ye(90,1,t,e);s.up.set(0,-1,0),s.lookAt(new u(1,0,0)),this.add(s);var l=new ye(90,1,t,e);l.up.set(0,-1,0),l.lookAt(new u(-1,0,0)),this.add(l);var f=new ye(90,1,t,e);f.up.set(0,0,1),f.lookAt(new u(0,1,0)),this.add(f);var p=new ye(90,1,t,e);p.up.set(0,0,-1),p.lookAt(new u(0,-1,0)),this.add(p);var v=new ye(90,1,t,e);v.up.set(0,-1,0),v.lookAt(new u(0,0,1)),this.add(v);var w=new ye(90,1,t,e);w.up.set(0,-1,0),w.lookAt(new u(0,0,-1)),this.add(w),n=n||{format:1022,magFilter:1006,minFilter:1006},this.renderTarget=new A(i,i,n),this.renderTarget.texture.name="CubeCamera",this.update=function(C,P){this.parent===null&&this.updateMatrixWorld();var B=this.renderTarget,H=B.texture.generateMipmaps;B.texture.generateMipmaps=!1,B.activeCubeFace=0,C.render(P,s,B),B.activeCubeFace=1,C.render(P,l,B),B.activeCubeFace=2,C.render(P,f,B),B.activeCubeFace=3,C.render(P,p,B),B.activeCubeFace=4,C.render(P,v,B),B.texture.generateMipmaps=H,B.activeCubeFace=5,C.render(P,w,B),C.setRenderTarget(null)},this.clear=function(C,P,B,H){for(var q=this.renderTarget,K=0;6>K;K++)q.activeCubeFace=K,C.setRenderTarget(q),C.clear(P,B,H);C.setRenderTarget(null)}}function Bh(t){this.autoStart=t!==void 0?t:!0,this.elapsedTime=this.oldTime=this.startTime=0,this.running=!1}function th(){N.call(this),this.type="AudioListener",this.context=qh.getContext(),this.gain=this.context.createGain(),this.gain.connect(this.context.destination),this.filter=null,this.timeDelta=0}function wa(t){N.call(this),this.type="Audio",this.listener=t,this.context=t.context,this.gain=this.context.createGain(),this.gain.connect(t.getInput()),this.autoplay=!1,this.buffer=null,this.loop=!1,this.offset=this.startTime=0,this.playbackRate=1,this.isPlaying=!1,this.hasPlaybackControl=!0,this.sourceType="empty",this.filters=[]}function ul(t){wa.call(this,t),this.panner=this.context.createPanner(),this.panner.connect(this.gain)}function zo(t,e){this.analyser=t.context.createAnalyser(),this.analyser.fftSize=e!==void 0?e:2048,this.data=new Uint8Array(this.analyser.frequencyBinCount),t.getOutput().connect(this.analyser)}function cl(t,e,i){switch(this.binding=t,this.valueSize=i,t=Float64Array,e){case"quaternion":e=this._slerp;break;case"string":case"bool":t=Array,e=this._select;break;default:e=this._lerp}this.buffer=new t(4*i),this._mixBufferRegion=e,this.referenceCount=this.useCount=this.cumulativeWeight=0}function ko(t,e,i){i=i||En.parseTrackName(e),this._targetGroup=t,this._bindings=t.subscribe_(e,i)}function En(t,e,i){this.path=e,this.parsedPath=i||En.parseTrackName(e),this.node=En.findNode(t,this.parsedPath.nodeName)||t,this.rootNode=t}function Ta(){this.uuid=pi.generateUUID(),this._objects=Array.prototype.slice.call(arguments),this.nCachedObjects_=0;var t={};this._indicesByUUID=t;for(var e=0,i=arguments.length;e!==i;++e)t[arguments[e].uuid]=e;this._paths=[],this._parsedPaths=[],this._bindings=[],this._bindingsIndicesByPath={};var n=this;this.stats={objects:{get total(){return n._objects.length},get inUse(){return this.total-n.nCachedObjects_}},get bindingsPerObject(){return n._bindings.length}}}function fl(t,e,i){this._mixer=t,this._clip=e,this._localRoot=i||null,t=e.tracks,e=t.length,i=Array(e);for(var n={endingStart:2400,endingEnd:2400},s=0;s!==e;++s){var l=t[s].createInterpolant(null);i[s]=l,l.settings=n}this._interpolantSettings=n,this._interpolants=i,this._propertyBindings=Array(e),this._weightInterpolant=this._timeScaleInterpolant=this._byClipCacheIndex=this._cacheIndex=null,this.loop=2201,this._loopCount=-1,this._startTime=null,this.time=0,this._effectiveWeight=this.weight=this._effectiveTimeScale=this.timeScale=1,this.repetitions=1/0,this.paused=!1,this.enabled=!0,this.clampWhenFinished=!1,this.zeroSlopeAtEnd=this.zeroSlopeAtStart=!0}function no(t){this._root=t,this._initMemoryManager(),this.time=this._accuIndex=0,this.timeScale=1}function eh(t,e){typeof t=="string"&&(console.warn("THREE.Uniform: Type parameter is no longer needed."),t=e),this.value=t}function Nh(){Ft.call(this),this.type="InstancedBufferGeometry",this.maxInstancedCount=void 0}function Fh(t,e,i){zi.call(this,t,e),this.meshPerAttribute=i||1}function Uh(t,e,i,n){typeof i=="number"&&(n=i,i=!1,console.error("THREE.InstancedBufferAttribute: The constructor now expects normalized as the third argument.")),J.call(this,t,e,i),this.meshPerAttribute=n||1}function Au(t,e,i,n){this.ray=new Oi(t,e),this.near=i||0,this.far=n||1/0,this.params={Mesh:{},Line:{},LOD:{},Points:{threshold:1},Sprite:{}},Object.defineProperties(this.params,{PointCloud:{get:function(){return console.warn("THREE.Raycaster: params.PointCloud has been renamed to params.Points."),this.Points}}})}function pl(t,e){return t.distance-e.distance}function Bo(t,e,i,n){if(t.visible!==!1&&(t.raycast(e,i),n===!0)){t=t.children,n=0;for(var s=t.length;n<s;n++)Bo(t[n],e,i,!0)}}function Gh(t,e,i){return this.radius=t!==void 0?t:1,this.phi=e!==void 0?e:0,this.theta=i!==void 0?i:0,this}function it(t,e,i){return this.radius=t!==void 0?t:1,this.theta=e!==void 0?e:0,this.y=i!==void 0?i:0,this}function ro(t,e){this.min=t!==void 0?t:new o(1/0,1/0),this.max=e!==void 0?e:new o(-1/0,-1/0)}function Ma(t,e){this.start=t!==void 0?t:new u,this.end=e!==void 0?e:new u}function qn(t){N.call(this),this.material=t,this.render=function(){}}function yi(t,e,i,n){this.object=t,this.size=e!==void 0?e:1,t=i!==void 0?i:16711680,n=n!==void 0?n:1,e=0,(i=this.object.geometry)&&i.isGeometry?e=3*i.faces.length:i&&i.isBufferGeometry&&(e=i.attributes.normal.count),i=new Ft,e=new Et(6*e,3),i.addAttribute("position",e),gi.call(this,i,new Bi({color:t,linewidth:n})),this.matrixAutoUpdate=!1,this.update()}function Sa(t,e){N.call(this),this.light=t,this.light.updateMatrixWorld(),this.matrix=t.matrixWorld,this.matrixAutoUpdate=!1,this.color=e,t=new Ft,e=[0,0,0,0,0,1,0,0,0,1,0,1,0,0,0,-1,0,1,0,0,0,0,1,1,0,0,0,0,-1,1];for(var i=0,n=1;32>i;i++,n++){var s=i/32*Math.PI*2,l=n/32*Math.PI*2;e.push(Math.cos(s),Math.sin(s),1,Math.cos(l),Math.sin(l),1)}t.addAttribute("position",new Et(e,3)),e=new Bi({fog:!1}),this.cone=new gi(t,e),this.add(this.cone),this.update()}function Cu(t){var e=[];t&&t.isBone&&e.push(t);for(var i=0;i<t.children.length;i++)e.push.apply(e,Cu(t.children[i]));return e}function Ea(t){for(var e=Cu(t),i=new Ft,n=[],s=[],l=new L(0,0,1),f=new L(0,1,0),p=0;p<e.length;p++){var v=e[p];v.parent&&v.parent.isBone&&(n.push(0,0,0),n.push(0,0,0),s.push(l.r,l.g,l.b),s.push(f.r,f.g,f.b))}i.addAttribute("position",new Et(n,3)),i.addAttribute("color",new Et(s,3)),n=new Bi({vertexColors:2,depthTest:!1,depthWrite:!1,transparent:!0}),gi.call(this,i,n),this.root=t,this.bones=e,this.matrix=t.matrixWorld,this.matrixAutoUpdate=!1}function kr(t,e,i){this.light=t,this.light.updateMatrixWorld(),this.color=i,t=new Or(e,4,2),e=new Ge({wireframe:!0,fog:!1}),di.call(this,t,e),this.matrix=this.light.matrixWorld,this.matrixAutoUpdate=!1,this.update()}function ba(t,e){N.call(this),this.light=t,this.light.updateMatrixWorld(),this.matrix=t.matrixWorld,this.matrixAutoUpdate=!1,this.color=e,t=new Bi({fog:!1}),e=new Ft,e.addAttribute("position",new J(new Float32Array(15),3)),this.line=new ji(e,t),this.add(this.line),this.update()}function Aa(t,e,i){N.call(this),this.light=t,this.light.updateMatrixWorld(),this.matrix=t.matrixWorld,this.matrixAutoUpdate=!1,this.color=i,t=new _o(e),t.rotateY(.5*Math.PI),this.material=new Ge({wireframe:!0,fog:!1}),this.color===void 0&&(this.material.vertexColors=2),e=t.getAttribute("position"),e=new Float32Array(3*e.count),t.addAttribute("color",new J(e,3)),this.add(new di(t,this.material)),this.update()}function dl(t,e,i,n){t=t||10,e=e||10,i=new L(i!==void 0?i:4473924),n=new L(n!==void 0?n:8947848);var s=e/2,l=t/e,f=t/2;t=[];for(var p=[],v=0,w=0,C=-f;v<=e;v++,C+=l){t.push(-f,0,C,f,0,C),t.push(C,0,-f,C,0,f);var P=v===s?i:n;P.toArray(p,w),w+=3,P.toArray(p,w),w+=3,P.toArray(p,w),w+=3,P.toArray(p,w),w+=3}e=new Ft,e.addAttribute("position",new Et(t,3)),e.addAttribute("color",new Et(p,3)),i=new Bi({vertexColors:2}),gi.call(this,e,i)}function ih(t,e,i,n,s,l){t=t||10,e=e||16,i=i||8,n=n||64,s=new L(s!==void 0?s:4473924),l=new L(l!==void 0?l:8947848);var f=[],p=[],v;for(v=0;v<=e;v++){var w=v/e*2*Math.PI,C=Math.sin(w)*t;w=Math.cos(w)*t,f.push(0,0,0),f.push(C,0,w);var P=v&1?s:l;p.push(P.r,P.g,P.b),p.push(P.r,P.g,P.b)}for(v=0;v<=i;v++){P=v&1?s:l;var B=t-t/i*v;for(e=0;e<n;e++)w=e/n*2*Math.PI,C=Math.sin(w)*B,w=Math.cos(w)*B,f.push(C,0,w),p.push(P.r,P.g,P.b),w=(e+1)/n*2*Math.PI,C=Math.sin(w)*B,w=Math.cos(w)*B,f.push(C,0,w),p.push(P.r,P.g,P.b)}t=new Ft,t.addAttribute("position",new Et(f,3)),t.addAttribute("color",new Et(p,3)),f=new Bi({vertexColors:2}),gi.call(this,t,f)}function ml(t,e,i,n){this.object=t,this.size=e!==void 0?e:1,t=i!==void 0?i:16776960,n=n!==void 0?n:1,e=0,(i=this.object.geometry)&&i.isGeometry?e=i.faces.length:console.warn("THREE.FaceNormalsHelper: only THREE.Geometry is supported. Use THREE.VertexNormalsHelper, instead."),i=new Ft,e=new Et(6*e,3),i.addAttribute("position",e),gi.call(this,i,new Bi({color:t,linewidth:n})),this.matrixAutoUpdate=!1,this.update()}function pr(t,e,i){N.call(this),this.light=t,this.light.updateMatrixWorld(),this.matrix=t.matrixWorld,this.matrixAutoUpdate=!1,this.color=i,e===void 0&&(e=1),t=new Ft,t.addAttribute("position",new Et([-e,e,0,e,e,0,e,-e,0,-e,-e,0,-e,e,0],3)),e=new Bi({fog:!1}),this.lightPlane=new ji(t,e),this.add(this.lightPlane),t=new Ft,t.addAttribute("position",new Et([0,0,0,0,0,1],3)),this.targetLine=new ji(t,e),this.add(this.targetLine),this.update()}function gl(t){function e(H,q,K){i(H,K),i(q,K)}function i(H,q){l.push(0,0,0),f.push(q.r,q.g,q.b),p[H]===void 0&&(p[H]=[]),p[H].push(l.length/3-1)}var n=new Ft,s=new Bi({color:16777215,vertexColors:1}),l=[],f=[],p={},v=new L(16755200),w=new L(16711680),C=new L(43775),P=new L(16777215),B=new L(3355443);e("n1","n2",v),e("n2","n4",v),e("n4","n3",v),e("n3","n1",v),e("f1","f2",v),e("f2","f4",v),e("f4","f3",v),e("f3","f1",v),e("n1","f1",v),e("n2","f2",v),e("n3","f3",v),e("n4","f4",v),e("p","n1",w),e("p","n2",w),e("p","n3",w),e("p","n4",w),e("u1","u2",C),e("u2","u3",C),e("u3","u1",C),e("c","t",P),e("p","c",B),e("cn1","cn2",B),e("cn3","cn4",B),e("cf1","cf2",B),e("cf3","cf4",B),n.addAttribute("position",new Et(l,3)),n.addAttribute("color",new Et(f,3)),gi.call(this,n,s),this.camera=t,this.camera.updateProjectionMatrix&&this.camera.updateProjectionMatrix(),this.matrix=t.matrixWorld,this.matrixAutoUpdate=!1,this.pointMap=p,this.update()}function Ds(t,e){this.object=t,e===void 0&&(e=16776960),t=new Uint16Array([0,1,1,2,2,3,3,0,4,5,5,6,6,7,7,4,0,4,1,5,2,6,3,7]);var i=new Float32Array(24),n=new Ft;n.setIndex(new J(t,1)),n.addAttribute("position",new J(i,3)),gi.call(this,n,new Bi({color:e})),this.matrixAutoUpdate=!1,this.update()}function vl(t,e){this.type="Box3Helper",this.box=t,t=e!==void 0?e:16776960,e=new Uint16Array([0,1,1,2,2,3,3,0,4,5,5,6,6,7,7,4,0,4,1,5,2,6,3,7]);var i=new Ft;i.setIndex(new J(e,1)),i.addAttribute("position",new Et([1,1,1,-1,1,1,-1,-1,1,1,-1,1,1,1,-1,-1,1,-1,-1,-1,-1,1,-1,-1],3)),gi.call(this,i,new Bi({color:t})),this.geometry.computeBoundingSphere()}function _l(t,e,i){this.type="PlaneHelper",this.plane=t,this.size=e===void 0?1:e,t=i!==void 0?i:16776960,e=new Ft,e.addAttribute("position",new Et([1,-1,1,-1,1,1,-1,-1,1,1,1,1,-1,1,1,-1,-1,1,1,-1,1,1,1,1,0,0,1,0,0,0],3)),e.computeBoundingSphere(),ji.call(this,e,new Bi({color:t})),e=new Ft,e.addAttribute("position",new Et([1,1,1,-1,1,1,-1,-1,1,1,1,1,-1,-1,1,1,-1,1],3)),e.computeBoundingSphere(),this.add(new di(e,new Ge({color:t,opacity:.2,transparent:!0,depthWrite:!1})))}function zs(t,e,i,n,s,l){N.call(this),t===void 0&&(t=new THREE.Vector3(0,0,1)),e===void 0&&(e=new THREE.Vector3(0,0,0)),i===void 0&&(i=1),n===void 0&&(n=16776960),s===void 0&&(s=.2*i),l===void 0&&(l=.2*s),lh===void 0&&(lh=new Ft,lh.addAttribute("position",new Et([0,0,0,0,1,0],3)),Tl=new Rs(0,.5,1,5,1),Tl.translate(0,-.5,0)),this.position.copy(e),this.line=new ji(lh,new Bi({color:n})),this.line.matrixAutoUpdate=!1,this.add(this.line),this.cone=new di(Tl,new Ge({color:n})),this.cone.matrixAutoUpdate=!1,this.add(this.cone),this.setDirection(t),this.setLength(i,s,l)}function xr(t){t=t||1;var e=[0,0,0,t,0,0,0,0,0,0,t,0,0,0,0,0,0,t];t=new Ft,t.addAttribute("position",new Et(e,3)),t.addAttribute("color",new Et([1,0,0,1,.6,0,0,1,0,.6,1,0,0,0,1,0,.6,1],3)),e=new Bi({vertexColors:2}),gi.call(this,t,e)}function Pu(t){console.warn("THREE.ClosedSplineCurve3 has been deprecated. Use THREE.CatmullRomCurve3 instead."),On.call(this,t),this.type="catmullrom",this.closed=!0}function Lu(t){console.warn("THREE.SplineCurve3 has been deprecated. Use THREE.CatmullRomCurve3 instead."),On.call(this,t),this.type="catmullrom"}function Hh(t){console.warn("THREE.Spline has been removed. Use THREE.CatmullRomCurve3 instead."),On.call(this,t),this.type="catmullrom"}Number.EPSILON===void 0&&(Number.EPSILON=Math.pow(2,-52)),Number.isInteger===void 0&&(Number.isInteger=function(t){return typeof t=="number"&&isFinite(t)&&Math.floor(t)===t}),Math.sign===void 0&&(Math.sign=function(t){return 0>t?-1:0<t?1:+t}),!("name"in Function.prototype)&&Object.defineProperty(Function.prototype,"name",{get:function(){return this.toString().match(/^\s*function\s*([^\(\s]*)/)[1]}}),Object.assign===void 0&&function(){Object.assign=function(t){if(t==null)throw new TypeError("Cannot convert undefined or null to object");for(var e=Object(t),i=1;i<arguments.length;i++){var n=arguments[i];if(n!=null)for(var s in n)Object.prototype.hasOwnProperty.call(n,s)&&(e[s]=n[s])}return e}}(),Object.assign(a.prototype,{addEventListener:function(t,e){this._listeners===void 0&&(this._listeners={});var i=this._listeners;i[t]===void 0&&(i[t]=[]),i[t].indexOf(e)===-1&&i[t].push(e)},hasEventListener:function(t,e){if(this._listeners===void 0)return!1;var i=this._listeners;return i[t]!==void 0&&i[t].indexOf(e)!==-1},removeEventListener:function(t,e){this._listeners!==void 0&&(t=this._listeners[t],t!==void 0&&(e=t.indexOf(e),e!==-1&&t.splice(e,1)))},dispatchEvent:function(t){if(this._listeners!==void 0){var e=this._listeners[t.type];if(e!==void 0){t.target=this,e=e.slice(0);for(var i=0,n=e.length;i<n;i++)e[i].call(this,t)}}}});var pi={DEG2RAD:Math.PI/180,RAD2DEG:180/Math.PI,generateUUID:function(){for(var t=[],e=0;256>e;e++)t[e]=(16>e?"0":"")+e.toString(16);return function(){var i=4294967295*Math.random()|0,n=4294967295*Math.random()|0,s=4294967295*Math.random()|0,l=4294967295*Math.random()|0;return(t[i&255]+t[i>>8&255]+t[i>>16&255]+t[i>>24&255]+"-"+t[n&255]+t[n>>8&255]+"-"+t[n>>16&15|64]+t[n>>24&255]+"-"+t[s&63|128]+t[s>>8&255]+"-"+t[s>>16&255]+t[s>>24&255]+t[l&255]+t[l>>8&255]+t[l>>16&255]+t[l>>24&255]).toUpperCase()}}(),clamp:function(t,e,i){return Math.max(e,Math.min(i,t))},euclideanModulo:function(t,e){return(t%e+e)%e},mapLinear:function(t,e,i,n,s){return n+(t-e)*(s-n)/(i-e)},lerp:function(t,e,i){return(1-i)*t+i*e},smoothstep:function(t,e,i){return t<=e?0:t>=i?1:(t=(t-e)/(i-e),t*t*(3-2*t))},smootherstep:function(t,e,i){return t<=e?0:t>=i?1:(t=(t-e)/(i-e),t*t*t*(t*(6*t-15)+10))},randInt:function(t,e){return t+Math.floor(Math.random()*(e-t+1))},randFloat:function(t,e){return t+Math.random()*(e-t)},randFloatSpread:function(t){return t*(.5-Math.random())},degToRad:function(t){return t*pi.DEG2RAD},radToDeg:function(t){return t*pi.RAD2DEG},isPowerOfTwo:function(t){return(t&t-1)===0&&t!==0},ceilPowerOfTwo:function(t){return Math.pow(2,Math.ceil(Math.log(t)/Math.LN2))},floorPowerOfTwo:function(t){return Math.pow(2,Math.floor(Math.log(t)/Math.LN2))}};Object.defineProperties(o.prototype,{width:{get:function(){return this.x},set:function(t){this.x=t}},height:{get:function(){return this.y},set:function(t){this.y=t}}}),Object.assign(o.prototype,{isVector2:!0,set:function(t,e){return this.x=t,this.y=e,this},setScalar:function(t){return this.y=this.x=t,this},setX:function(t){return this.x=t,this},setY:function(t){return this.y=t,this},setComponent:function(t,e){switch(t){case 0:this.x=e;break;case 1:this.y=e;break;default:throw Error("index is out of range: "+t)}return this},getComponent:function(t){switch(t){case 0:return this.x;case 1:return this.y;default:throw Error("index is out of range: "+t)}},clone:function(){return new this.constructor(this.x,this.y)},copy:function(t){return this.x=t.x,this.y=t.y,this},add:function(t,e){return e!==void 0?(console.warn("THREE.Vector2: .add() now only accepts one argument. Use .addVectors( a, b ) instead."),this.addVectors(t,e)):(this.x+=t.x,this.y+=t.y,this)},addScalar:function(t){return this.x+=t,this.y+=t,this},addVectors:function(t,e){return this.x=t.x+e.x,this.y=t.y+e.y,this},addScaledVector:function(t,e){return this.x+=t.x*e,this.y+=t.y*e,this},sub:function(t,e){return e!==void 0?(console.warn("THREE.Vector2: .sub() now only accepts one argument. Use .subVectors( a, b ) instead."),this.subVectors(t,e)):(this.x-=t.x,this.y-=t.y,this)},subScalar:function(t){return this.x-=t,this.y-=t,this},subVectors:function(t,e){return this.x=t.x-e.x,this.y=t.y-e.y,this},multiply:function(t){return this.x*=t.x,this.y*=t.y,this},multiplyScalar:function(t){return this.x*=t,this.y*=t,this},divide:function(t){return this.x/=t.x,this.y/=t.y,this},divideScalar:function(t){return this.multiplyScalar(1/t)},applyMatrix3:function(t){var e=this.x,i=this.y;return t=t.elements,this.x=t[0]*e+t[3]*i+t[6],this.y=t[1]*e+t[4]*i+t[7],this},min:function(t){return this.x=Math.min(this.x,t.x),this.y=Math.min(this.y,t.y),this},max:function(t){return this.x=Math.max(this.x,t.x),this.y=Math.max(this.y,t.y),this},clamp:function(t,e){return this.x=Math.max(t.x,Math.min(e.x,this.x)),this.y=Math.max(t.y,Math.min(e.y,this.y)),this},clampScalar:function(){var t=new o,e=new o;return function(i,n){return t.set(i,i),e.set(n,n),this.clamp(t,e)}}(),clampLength:function(t,e){var i=this.length();return this.divideScalar(i||1).multiplyScalar(Math.max(t,Math.min(e,i)))},floor:function(){return this.x=Math.floor(this.x),this.y=Math.floor(this.y),this},ceil:function(){return this.x=Math.ceil(this.x),this.y=Math.ceil(this.y),this},round:function(){return this.x=Math.round(this.x),this.y=Math.round(this.y),this},roundToZero:function(){return this.x=0>this.x?Math.ceil(this.x):Math.floor(this.x),this.y=0>this.y?Math.ceil(this.y):Math.floor(this.y),this},negate:function(){return this.x=-this.x,this.y=-this.y,this},dot:function(t){return this.x*t.x+this.y*t.y},cross:function(t){return this.x*t.y-this.y*t.x},lengthSq:function(){return this.x*this.x+this.y*this.y},length:function(){return Math.sqrt(this.x*this.x+this.y*this.y)},manhattanLength:function(){return Math.abs(this.x)+Math.abs(this.y)},normalize:function(){return this.divideScalar(this.length()||1)},angle:function(){var t=Math.atan2(this.y,this.x);return 0>t&&(t+=2*Math.PI),t},distanceTo:function(t){return Math.sqrt(this.distanceToSquared(t))},distanceToSquared:function(t){var e=this.x-t.x;return t=this.y-t.y,e*e+t*t},manhattanDistanceTo:function(t){return Math.abs(this.x-t.x)+Math.abs(this.y-t.y)},setLength:function(t){return this.normalize().multiplyScalar(t)},lerp:function(t,e){return this.x+=(t.x-this.x)*e,this.y+=(t.y-this.y)*e,this},lerpVectors:function(t,e,i){return this.subVectors(e,t).multiplyScalar(i).add(t)},equals:function(t){return t.x===this.x&&t.y===this.y},fromArray:function(t,e){return e===void 0&&(e=0),this.x=t[e],this.y=t[e+1],this},toArray:function(t,e){return t===void 0&&(t=[]),e===void 0&&(e=0),t[e]=this.x,t[e+1]=this.y,t},fromBufferAttribute:function(t,e,i){return i!==void 0&&console.warn("THREE.Vector2: offset has been removed from .fromBufferAttribute()."),this.x=t.getX(e),this.y=t.getY(e),this},rotateAround:function(t,e){var i=Math.cos(e);e=Math.sin(e);var n=this.x-t.x,s=this.y-t.y;return this.x=n*i-s*e+t.x,this.y=n*e+s*i+t.y,this}}),Object.assign(c.prototype,{isMatrix4:!0,set:function(t,e,i,n,s,l,f,p,v,w,C,P,B,H,q,K){var rt=this.elements;return rt[0]=t,rt[4]=e,rt[8]=i,rt[12]=n,rt[1]=s,rt[5]=l,rt[9]=f,rt[13]=p,rt[2]=v,rt[6]=w,rt[10]=C,rt[14]=P,rt[3]=B,rt[7]=H,rt[11]=q,rt[15]=K,this},identity:function(){return this.set(1,0,0,0,0,1,0,0,0,0,1,0,0,0,0,1),this},clone:function(){return new c().fromArray(this.elements)},copy:function(t){var e=this.elements;return t=t.elements,e[0]=t[0],e[1]=t[1],e[2]=t[2],e[3]=t[3],e[4]=t[4],e[5]=t[5],e[6]=t[6],e[7]=t[7],e[8]=t[8],e[9]=t[9],e[10]=t[10],e[11]=t[11],e[12]=t[12],e[13]=t[13],e[14]=t[14],e[15]=t[15],this},copyPosition:function(t){var e=this.elements;return t=t.elements,e[12]=t[12],e[13]=t[13],e[14]=t[14],this},extractBasis:function(t,e,i){return t.setFromMatrixColumn(this,0),e.setFromMatrixColumn(this,1),i.setFromMatrixColumn(this,2),this},makeBasis:function(t,e,i){return this.set(t.x,e.x,i.x,0,t.y,e.y,i.y,0,t.z,e.z,i.z,0,0,0,0,1),this},extractRotation:function(){var t=new u;return function(e){var i=this.elements,n=e.elements,s=1/t.setFromMatrixColumn(e,0).length(),l=1/t.setFromMatrixColumn(e,1).length();return e=1/t.setFromMatrixColumn(e,2).length(),i[0]=n[0]*s,i[1]=n[1]*s,i[2]=n[2]*s,i[3]=0,i[4]=n[4]*l,i[5]=n[5]*l,i[6]=n[6]*l,i[7]=0,i[8]=n[8]*e,i[9]=n[9]*e,i[10]=n[10]*e,i[11]=0,i[12]=0,i[13]=0,i[14]=0,i[15]=1,this}}(),makeRotationFromEuler:function(t){t&&t.isEuler||console.error("THREE.Matrix4: .makeRotationFromEuler() now expects a Euler rotation rather than a Vector3 and order.");var e=this.elements,i=t.x,n=t.y,s=t.z,l=Math.cos(i);i=Math.sin(i);var f=Math.cos(n);n=Math.sin(n);var p=Math.cos(s);if(s=Math.sin(s),t.order==="XYZ"){t=l*p;var v=l*s,w=i*p,C=i*s;e[0]=f*p,e[4]=-f*s,e[8]=n,e[1]=v+w*n,e[5]=t-C*n,e[9]=-i*f,e[2]=C-t*n,e[6]=w+v*n,e[10]=l*f}else t.order==="YXZ"?(t=f*p,v=f*s,w=n*p,C=n*s,e[0]=t+C*i,e[4]=w*i-v,e[8]=l*n,e[1]=l*s,e[5]=l*p,e[9]=-i,e[2]=v*i-w,e[6]=C+t*i,e[10]=l*f):t.order==="ZXY"?(t=f*p,v=f*s,w=n*p,C=n*s,e[0]=t-C*i,e[4]=-l*s,e[8]=w+v*i,e[1]=v+w*i,e[5]=l*p,e[9]=C-t*i,e[2]=-l*n,e[6]=i,e[10]=l*f):t.order==="ZYX"?(t=l*p,v=l*s,w=i*p,C=i*s,e[0]=f*p,e[4]=w*n-v,e[8]=t*n+C,e[1]=f*s,e[5]=C*n+t,e[9]=v*n-w,e[2]=-n,e[6]=i*f,e[10]=l*f):t.order==="YZX"?(t=l*f,v=l*n,w=i*f,C=i*n,e[0]=f*p,e[4]=C-t*s,e[8]=w*s+v,e[1]=s,e[5]=l*p,e[9]=-i*p,e[2]=-n*p,e[6]=v*s+w,e[10]=t-C*s):t.order==="XZY"&&(t=l*f,v=l*n,w=i*f,C=i*n,e[0]=f*p,e[4]=-s,e[8]=n*p,e[1]=t*s+C,e[5]=l*p,e[9]=v*s-w,e[2]=w*s-v,e[6]=i*p,e[10]=C*s+t);return e[3]=0,e[7]=0,e[11]=0,e[12]=0,e[13]=0,e[14]=0,e[15]=1,this},makeRotationFromQuaternion:function(){var t=new u(0,0,0),e=new u(1,1,1);return function(i){return this.compose(t,i,e)}}(),lookAt:function(){var t=new u,e=new u,i=new u;return function(n,s,l){var f=this.elements;return i.subVectors(n,s),i.lengthSq()===0&&(i.z=1),i.normalize(),t.crossVectors(l,i),t.lengthSq()===0&&(Math.abs(l.z)===1?i.x+=1e-4:i.z+=1e-4,i.normalize(),t.crossVectors(l,i)),t.normalize(),e.crossVectors(i,t),f[0]=t.x,f[4]=e.x,f[8]=i.x,f[1]=t.y,f[5]=e.y,f[9]=i.y,f[2]=t.z,f[6]=e.z,f[10]=i.z,this}}(),multiply:function(t,e){return e!==void 0?(console.warn("THREE.Matrix4: .multiply() now only accepts one argument. Use .multiplyMatrices( a, b ) instead."),this.multiplyMatrices(t,e)):this.multiplyMatrices(this,t)},premultiply:function(t){return this.multiplyMatrices(t,this)},multiplyMatrices:function(t,e){var i=t.elements,n=e.elements;e=this.elements,t=i[0];var s=i[4],l=i[8],f=i[12],p=i[1],v=i[5],w=i[9],C=i[13],P=i[2],B=i[6],H=i[10],q=i[14],K=i[3],rt=i[7],xt=i[11];i=i[15];var gt=n[0],At=n[4],wt=n[8],Vt=n[12],Z=n[1],st=n[5],zt=n[9],ee=n[13],$t=n[2],qt=n[6],Te=n[10],me=n[14],Ie=n[3],be=n[7],ae=n[11];return n=n[15],e[0]=t*gt+s*Z+l*$t+f*Ie,e[4]=t*At+s*st+l*qt+f*be,e[8]=t*wt+s*zt+l*Te+f*ae,e[12]=t*Vt+s*ee+l*me+f*n,e[1]=p*gt+v*Z+w*$t+C*Ie,e[5]=p*At+v*st+w*qt+C*be,e[9]=p*wt+v*zt+w*Te+C*ae,e[13]=p*Vt+v*ee+w*me+C*n,e[2]=P*gt+B*Z+H*$t+q*Ie,e[6]=P*At+B*st+H*qt+q*be,e[10]=P*wt+B*zt+H*Te+q*ae,e[14]=P*Vt+B*ee+H*me+q*n,e[3]=K*gt+rt*Z+xt*$t+i*Ie,e[7]=K*At+rt*st+xt*qt+i*be,e[11]=K*wt+rt*zt+xt*Te+i*ae,e[15]=K*Vt+rt*ee+xt*me+i*n,this},multiplyScalar:function(t){var e=this.elements;return e[0]*=t,e[4]*=t,e[8]*=t,e[12]*=t,e[1]*=t,e[5]*=t,e[9]*=t,e[13]*=t,e[2]*=t,e[6]*=t,e[10]*=t,e[14]*=t,e[3]*=t,e[7]*=t,e[11]*=t,e[15]*=t,this},applyToBufferAttribute:function(){var t=new u;return function(e){for(var i=0,n=e.count;i<n;i++)t.x=e.getX(i),t.y=e.getY(i),t.z=e.getZ(i),t.applyMatrix4(this),e.setXYZ(i,t.x,t.y,t.z);return e}}(),determinant:function(){var t=this.elements,e=t[0],i=t[4],n=t[8],s=t[12],l=t[1],f=t[5],p=t[9],v=t[13],w=t[2],C=t[6],P=t[10],B=t[14];return t[3]*(+s*p*C-n*v*C-s*f*P+i*v*P+n*f*B-i*p*B)+t[7]*(+e*p*B-e*v*P+s*l*P-n*l*B+n*v*w-s*p*w)+t[11]*(+e*v*C-e*f*B-s*l*C+i*l*B+s*f*w-i*v*w)+t[15]*(-n*f*w-e*p*C+e*f*P+n*l*C-i*l*P+i*p*w)},transpose:function(){var t=this.elements,e=t[1];return t[1]=t[4],t[4]=e,e=t[2],t[2]=t[8],t[8]=e,e=t[6],t[6]=t[9],t[9]=e,e=t[3],t[3]=t[12],t[12]=e,e=t[7],t[7]=t[13],t[13]=e,e=t[11],t[11]=t[14],t[14]=e,this},setPosition:function(t){var e=this.elements;return e[12]=t.x,e[13]=t.y,e[14]=t.z,this},getInverse:function(t,e){var i=this.elements,n=t.elements;t=n[0];var s=n[1],l=n[2],f=n[3],p=n[4],v=n[5],w=n[6],C=n[7],P=n[8],B=n[9],H=n[10],q=n[11],K=n[12],rt=n[13],xt=n[14];n=n[15];var gt=B*xt*C-rt*H*C+rt*w*q-v*xt*q-B*w*n+v*H*n,At=K*H*C-P*xt*C-K*w*q+p*xt*q+P*w*n-p*H*n,wt=P*rt*C-K*B*C+K*v*q-p*rt*q-P*v*n+p*B*n,Vt=K*B*w-P*rt*w-K*v*H+p*rt*H+P*v*xt-p*B*xt,Z=t*gt+s*At+l*wt+f*Vt;if(Z===0){if(e===!0)throw Error("THREE.Matrix4: .getInverse() can't invert matrix, determinant is 0");return console.warn("THREE.Matrix4: .getInverse() can't invert matrix, determinant is 0"),this.identity()}return e=1/Z,i[0]=gt*e,i[1]=(rt*H*f-B*xt*f-rt*l*q+s*xt*q+B*l*n-s*H*n)*e,i[2]=(v*xt*f-rt*w*f+rt*l*C-s*xt*C-v*l*n+s*w*n)*e,i[3]=(B*w*f-v*H*f-B*l*C+s*H*C+v*l*q-s*w*q)*e,i[4]=At*e,i[5]=(P*xt*f-K*H*f+K*l*q-t*xt*q-P*l*n+t*H*n)*e,i[6]=(K*w*f-p*xt*f-K*l*C+t*xt*C+p*l*n-t*w*n)*e,i[7]=(p*H*f-P*w*f+P*l*C-t*H*C-p*l*q+t*w*q)*e,i[8]=wt*e,i[9]=(K*B*f-P*rt*f-K*s*q+t*rt*q+P*s*n-t*B*n)*e,i[10]=(p*rt*f-K*v*f+K*s*C-t*rt*C-p*s*n+t*v*n)*e,i[11]=(P*v*f-p*B*f-P*s*C+t*B*C+p*s*q-t*v*q)*e,i[12]=Vt*e,i[13]=(P*rt*l-K*B*l+K*s*H-t*rt*H-P*s*xt+t*B*xt)*e,i[14]=(K*v*l-p*rt*l-K*s*w+t*rt*w+p*s*xt-t*v*xt)*e,i[15]=(p*B*l-P*v*l+P*s*w-t*B*w-p*s*H+t*v*H)*e,this},scale:function(t){var e=this.elements,i=t.x,n=t.y;return t=t.z,e[0]*=i,e[4]*=n,e[8]*=t,e[1]*=i,e[5]*=n,e[9]*=t,e[2]*=i,e[6]*=n,e[10]*=t,e[3]*=i,e[7]*=n,e[11]*=t,this},getMaxScaleOnAxis:function(){var t=this.elements;return Math.sqrt(Math.max(t[0]*t[0]+t[1]*t[1]+t[2]*t[2],t[4]*t[4]+t[5]*t[5]+t[6]*t[6],t[8]*t[8]+t[9]*t[9]+t[10]*t[10]))},makeTranslation:function(t,e,i){return this.set(1,0,0,t,0,1,0,e,0,0,1,i,0,0,0,1),this},makeRotationX:function(t){var e=Math.cos(t);return t=Math.sin(t),this.set(1,0,0,0,0,e,-t,0,0,t,e,0,0,0,0,1),this},makeRotationY:function(t){var e=Math.cos(t);return t=Math.sin(t),this.set(e,0,t,0,0,1,0,0,-t,0,e,0,0,0,0,1),this},makeRotationZ:function(t){var e=Math.cos(t);return t=Math.sin(t),this.set(e,-t,0,0,t,e,0,0,0,0,1,0,0,0,0,1),this},makeRotationAxis:function(t,e){var i=Math.cos(e);e=Math.sin(e);var n=1-i,s=t.x,l=t.y;t=t.z;var f=n*s,p=n*l;return this.set(f*s+i,f*l-e*t,f*t+e*l,0,f*l+e*t,p*l+i,p*t-e*s,0,f*t-e*l,p*t+e*s,n*t*t+i,0,0,0,0,1),this},makeScale:function(t,e,i){return this.set(t,0,0,0,0,e,0,0,0,0,i,0,0,0,0,1),this},makeShear:function(t,e,i){return this.set(1,e,i,0,t,1,i,0,t,e,1,0,0,0,0,1),this},compose:function(t,e,i){var n=this.elements,s=e._x,l=e._y,f=e._z,p=e._w,v=s+s,w=l+l,C=f+f;e=s*v;var P=s*w;s*=C;var B=l*w;l*=C,f*=C,v*=p,w*=p,p*=C,C=i.x;var H=i.y;return i=i.z,n[0]=(1-(B+f))*C,n[1]=(P+p)*C,n[2]=(s-w)*C,n[3]=0,n[4]=(P-p)*H,n[5]=(1-(e+f))*H,n[6]=(l+v)*H,n[7]=0,n[8]=(s+w)*i,n[9]=(l-v)*i,n[10]=(1-(e+B))*i,n[11]=0,n[12]=t.x,n[13]=t.y,n[14]=t.z,n[15]=1,this},decompose:function(){var t=new u,e=new c;return function(i,n,s){var l=this.elements,f=t.set(l[0],l[1],l[2]).length(),p=t.set(l[4],l[5],l[6]).length(),v=t.set(l[8],l[9],l[10]).length();0>this.determinant()&&(f=-f),i.x=l[12],i.y=l[13],i.z=l[14],e.copy(this),i=1/f,l=1/p;var w=1/v;return e.elements[0]*=i,e.elements[1]*=i,e.elements[2]*=i,e.elements[4]*=l,e.elements[5]*=l,e.elements[6]*=l,e.elements[8]*=w,e.elements[9]*=w,e.elements[10]*=w,n.setFromRotationMatrix(e),s.x=f,s.y=p,s.z=v,this}}(),makePerspective:function(t,e,i,n,s,l){l===void 0&&console.warn("THREE.Matrix4: .makePerspective() has been redefined and has a new signature. Please check the docs.");var f=this.elements;return f[0]=2*s/(e-t),f[4]=0,f[8]=(e+t)/(e-t),f[12]=0,f[1]=0,f[5]=2*s/(i-n),f[9]=(i+n)/(i-n),f[13]=0,f[2]=0,f[6]=0,f[10]=-(l+s)/(l-s),f[14]=-2*l*s/(l-s),f[3]=0,f[7]=0,f[11]=-1,f[15]=0,this},makeOrthographic:function(t,e,i,n,s,l){var f=this.elements,p=1/(e-t),v=1/(i-n),w=1/(l-s);return f[0]=2*p,f[4]=0,f[8]=0,f[12]=-((e+t)*p),f[1]=0,f[5]=2*v,f[9]=0,f[13]=-((i+n)*v),f[2]=0,f[6]=0,f[10]=-2*w,f[14]=-((l+s)*w),f[3]=0,f[7]=0,f[11]=0,f[15]=1,this},equals:function(t){var e=this.elements;t=t.elements;for(var i=0;16>i;i++)if(e[i]!==t[i])return!1;return!0},fromArray:function(t,e){e===void 0&&(e=0);for(var i=0;16>i;i++)this.elements[i]=t[i+e];return this},toArray:function(t,e){t===void 0&&(t=[]),e===void 0&&(e=0);var i=this.elements;return t[e]=i[0],t[e+1]=i[1],t[e+2]=i[2],t[e+3]=i[3],t[e+4]=i[4],t[e+5]=i[5],t[e+6]=i[6],t[e+7]=i[7],t[e+8]=i[8],t[e+9]=i[9],t[e+10]=i[10],t[e+11]=i[11],t[e+12]=i[12],t[e+13]=i[13],t[e+14]=i[14],t[e+15]=i[15],t}}),Object.assign(d,{slerp:function(t,e,i,n){return i.copy(t).slerp(e,n)},slerpFlat:function(t,e,i,n,s,l,f){var p=i[n+0],v=i[n+1],w=i[n+2];i=i[n+3],n=s[l+0];var C=s[l+1],P=s[l+2];if(s=s[l+3],i!==s||p!==n||v!==C||w!==P){l=1-f;var B=p*n+v*C+w*P+i*s,H=0<=B?1:-1,q=1-B*B;q>Number.EPSILON&&(q=Math.sqrt(q),B=Math.atan2(q,B*H),l=Math.sin(l*B)/q,f=Math.sin(f*B)/q),H*=f,p=p*l+n*H,v=v*l+C*H,w=w*l+P*H,i=i*l+s*H,l===1-f&&(f=1/Math.sqrt(p*p+v*v+w*w+i*i),p*=f,v*=f,w*=f,i*=f)}t[e]=p,t[e+1]=v,t[e+2]=w,t[e+3]=i}}),Object.defineProperties(d.prototype,{x:{get:function(){return this._x},set:function(t){this._x=t,this.onChangeCallback()}},y:{get:function(){return this._y},set:function(t){this._y=t,this.onChangeCallback()}},z:{get:function(){return this._z},set:function(t){this._z=t,this.onChangeCallback()}},w:{get:function(){return this._w},set:function(t){this._w=t,this.onChangeCallback()}}}),Object.assign(d.prototype,{isQuaternion:!0,set:function(t,e,i,n){return this._x=t,this._y=e,this._z=i,this._w=n,this.onChangeCallback(),this},clone:function(){return new this.constructor(this._x,this._y,this._z,this._w)},copy:function(t){return this._x=t.x,this._y=t.y,this._z=t.z,this._w=t.w,this.onChangeCallback(),this},setFromEuler:function(t,e){if(!t||!t.isEuler)throw Error("THREE.Quaternion: .setFromEuler() now expects an Euler rotation rather than a Vector3 and order.");var i=t._x,n=t._y,s=t._z;t=t.order;var l=Math.cos,f=Math.sin,p=l(i/2),v=l(n/2);return l=l(s/2),i=f(i/2),n=f(n/2),s=f(s/2),t==="XYZ"?(this._x=i*v*l+p*n*s,this._y=p*n*l-i*v*s,this._z=p*v*s+i*n*l,this._w=p*v*l-i*n*s):t==="YXZ"?(this._x=i*v*l+p*n*s,this._y=p*n*l-i*v*s,this._z=p*v*s-i*n*l,this._w=p*v*l+i*n*s):t==="ZXY"?(this._x=i*v*l-p*n*s,this._y=p*n*l+i*v*s,this._z=p*v*s+i*n*l,this._w=p*v*l-i*n*s):t==="ZYX"?(this._x=i*v*l-p*n*s,this._y=p*n*l+i*v*s,this._z=p*v*s-i*n*l,this._w=p*v*l+i*n*s):t==="YZX"?(this._x=i*v*l+p*n*s,this._y=p*n*l+i*v*s,this._z=p*v*s-i*n*l,this._w=p*v*l-i*n*s):t==="XZY"&&(this._x=i*v*l-p*n*s,this._y=p*n*l-i*v*s,this._z=p*v*s+i*n*l,this._w=p*v*l+i*n*s),e!==!1&&this.onChangeCallback(),this},setFromAxisAngle:function(t,e){e/=2;var i=Math.sin(e);return this._x=t.x*i,this._y=t.y*i,this._z=t.z*i,this._w=Math.cos(e),this.onChangeCallback(),this},setFromRotationMatrix:function(t){var e=t.elements,i=e[0];t=e[4];var n=e[8],s=e[1],l=e[5],f=e[9],p=e[2],v=e[6];e=e[10];var w=i+l+e;return 0<w?(i=.5/Math.sqrt(w+1),this._w=.25/i,this._x=(v-f)*i,this._y=(n-p)*i,this._z=(s-t)*i):i>l&&i>e?(i=2*Math.sqrt(1+i-l-e),this._w=(v-f)/i,this._x=.25*i,this._y=(t+s)/i,this._z=(n+p)/i):l>e?(i=2*Math.sqrt(1+l-i-e),this._w=(n-p)/i,this._x=(t+s)/i,this._y=.25*i,this._z=(f+v)/i):(i=2*Math.sqrt(1+e-i-l),this._w=(s-t)/i,this._x=(n+p)/i,this._y=(f+v)/i,this._z=.25*i),this.onChangeCallback(),this},setFromUnitVectors:function(){var t=new u,e;return function(i,n){return t===void 0&&(t=new u),e=i.dot(n)+1,1e-6>e?(e=0,Math.abs(i.x)>Math.abs(i.z)?t.set(-i.y,i.x,0):t.set(0,-i.z,i.y)):t.crossVectors(i,n),this._x=t.x,this._y=t.y,this._z=t.z,this._w=e,this.normalize()}}(),angleTo:function(t){return 2*Math.acos(Math.abs(pi.clamp(this.dot(t),-1,1)))},rotateTowards:function(t,e){var i=this.angleTo(t);return i===0?this:(this.slerp(t,Math.min(1,e/i)),this)},inverse:function(){return this.conjugate()},conjugate:function(){return this._x*=-1,this._y*=-1,this._z*=-1,this.onChangeCallback(),this},dot:function(t){return this._x*t._x+this._y*t._y+this._z*t._z+this._w*t._w},lengthSq:function(){return this._x*this._x+this._y*this._y+this._z*this._z+this._w*this._w},length:function(){return Math.sqrt(this._x*this._x+this._y*this._y+this._z*this._z+this._w*this._w)},normalize:function(){var t=this.length();return t===0?(this._z=this._y=this._x=0,this._w=1):(t=1/t,this._x*=t,this._y*=t,this._z*=t,this._w*=t),this.onChangeCallback(),this},multiply:function(t,e){return e!==void 0?(console.warn("THREE.Quaternion: .multiply() now only accepts one argument. Use .multiplyQuaternions( a, b ) instead."),this.multiplyQuaternions(t,e)):this.multiplyQuaternions(this,t)},premultiply:function(t){return this.multiplyQuaternions(t,this)},multiplyQuaternions:function(t,e){var i=t._x,n=t._y,s=t._z;t=t._w;var l=e._x,f=e._y,p=e._z;return e=e._w,this._x=i*e+t*l+n*p-s*f,this._y=n*e+t*f+s*l-i*p,this._z=s*e+t*p+i*f-n*l,this._w=t*e-i*l-n*f-s*p,this.onChangeCallback(),this},slerp:function(t,e){if(e===0)return this;if(e===1)return this.copy(t);var i=this._x,n=this._y,s=this._z,l=this._w,f=l*t._w+i*t._x+n*t._y+s*t._z;if(0>f?(this._w=-t._w,this._x=-t._x,this._y=-t._y,this._z=-t._z,f=-f):this.copy(t),1<=f)return this._w=l,this._x=i,this._y=n,this._z=s,this;if(t=1-f*f,t<=Number.EPSILON)return f=1-e,this._w=f*l+e*this._w,this._x=f*i+e*this._x,this._y=f*n+e*this._y,this._z=f*s+e*this._z,this.normalize();t=Math.sqrt(t);var p=Math.atan2(t,f);return f=Math.sin((1-e)*p)/t,e=Math.sin(e*p)/t,this._w=l*f+this._w*e,this._x=i*f+this._x*e,this._y=n*f+this._y*e,this._z=s*f+this._z*e,this.onChangeCallback(),this},equals:function(t){return t._x===this._x&&t._y===this._y&&t._z===this._z&&t._w===this._w},fromArray:function(t,e){return e===void 0&&(e=0),this._x=t[e],this._y=t[e+1],this._z=t[e+2],this._w=t[e+3],this.onChangeCallback(),this},toArray:function(t,e){return t===void 0&&(t=[]),e===void 0&&(e=0),t[e]=this._x,t[e+1]=this._y,t[e+2]=this._z,t[e+3]=this._w,t},onChange:function(t){return this.onChangeCallback=t,this},onChangeCallback:function(){}}),Object.assign(u.prototype,{isVector3:!0,set:function(t,e,i){return this.x=t,this.y=e,this.z=i,this},setScalar:function(t){return this.z=this.y=this.x=t,this},setX:function(t){return this.x=t,this},setY:function(t){return this.y=t,this},setZ:function(t){return this.z=t,this},setComponent:function(t,e){switch(t){case 0:this.x=e;break;case 1:this.y=e;break;case 2:this.z=e;break;default:throw Error("index is out of range: "+t)}return this},getComponent:function(t){switch(t){case 0:return this.x;case 1:return this.y;case 2:return this.z;default:throw Error("index is out of range: "+t)}},clone:function(){return new this.constructor(this.x,this.y,this.z)},copy:function(t){return this.x=t.x,this.y=t.y,this.z=t.z,this},add:function(t,e){return e!==void 0?(console.warn("THREE.Vector3: .add() now only accepts one argument. Use .addVectors( a, b ) instead."),this.addVectors(t,e)):(this.x+=t.x,this.y+=t.y,this.z+=t.z,this)},addScalar:function(t){return this.x+=t,this.y+=t,this.z+=t,this},addVectors:function(t,e){return this.x=t.x+e.x,this.y=t.y+e.y,this.z=t.z+e.z,this},addScaledVector:function(t,e){return this.x+=t.x*e,this.y+=t.y*e,this.z+=t.z*e,this},sub:function(t,e){return e!==void 0?(console.warn("THREE.Vector3: .sub() now only accepts one argument. Use .subVectors( a, b ) instead."),this.subVectors(t,e)):(this.x-=t.x,this.y-=t.y,this.z-=t.z,this)},subScalar:function(t){return this.x-=t,this.y-=t,this.z-=t,this},subVectors:function(t,e){return this.x=t.x-e.x,this.y=t.y-e.y,this.z=t.z-e.z,this},multiply:function(t,e){return e!==void 0?(console.warn("THREE.Vector3: .multiply() now only accepts one argument. Use .multiplyVectors( a, b ) instead."),this.multiplyVectors(t,e)):(this.x*=t.x,this.y*=t.y,this.z*=t.z,this)},multiplyScalar:function(t){return this.x*=t,this.y*=t,this.z*=t,this},multiplyVectors:function(t,e){return this.x=t.x*e.x,this.y=t.y*e.y,this.z=t.z*e.z,this},applyEuler:function(){var t=new d;return function(e){return e&&e.isEuler||console.error("THREE.Vector3: .applyEuler() now expects an Euler rotation rather than a Vector3 and order."),this.applyQuaternion(t.setFromEuler(e))}}(),applyAxisAngle:function(){var t=new d;return function(e,i){return this.applyQuaternion(t.setFromAxisAngle(e,i))}}(),applyMatrix3:function(t){var e=this.x,i=this.y,n=this.z;return t=t.elements,this.x=t[0]*e+t[3]*i+t[6]*n,this.y=t[1]*e+t[4]*i+t[7]*n,this.z=t[2]*e+t[5]*i+t[8]*n,this},applyMatrix4:function(t){var e=this.x,i=this.y,n=this.z;t=t.elements;var s=1/(t[3]*e+t[7]*i+t[11]*n+t[15]);return this.x=(t[0]*e+t[4]*i+t[8]*n+t[12])*s,this.y=(t[1]*e+t[5]*i+t[9]*n+t[13])*s,this.z=(t[2]*e+t[6]*i+t[10]*n+t[14])*s,this},applyQuaternion:function(t){var e=this.x,i=this.y,n=this.z,s=t.x,l=t.y,f=t.z;t=t.w;var p=t*e+l*n-f*i,v=t*i+f*e-s*n,w=t*n+s*i-l*e;return e=-s*e-l*i-f*n,this.x=p*t+e*-s+v*-f-w*-l,this.y=v*t+e*-l+w*-s-p*-f,this.z=w*t+e*-f+p*-l-v*-s,this},project:function(t){return this.applyMatrix4(t.matrixWorldInverse).applyMatrix4(t.projectionMatrix)},unproject:function(){var t=new c;return function(e){return this.applyMatrix4(t.getInverse(e.projectionMatrix)).applyMatrix4(e.matrixWorld)}}(),transformDirection:function(t){var e=this.x,i=this.y,n=this.z;return t=t.elements,this.x=t[0]*e+t[4]*i+t[8]*n,this.y=t[1]*e+t[5]*i+t[9]*n,this.z=t[2]*e+t[6]*i+t[10]*n,this.normalize()},divide:function(t){return this.x/=t.x,this.y/=t.y,this.z/=t.z,this},divideScalar:function(t){return this.multiplyScalar(1/t)},min:function(t){return this.x=Math.min(this.x,t.x),this.y=Math.min(this.y,t.y),this.z=Math.min(this.z,t.z),this},max:function(t){return this.x=Math.max(this.x,t.x),this.y=Math.max(this.y,t.y),this.z=Math.max(this.z,t.z),this},clamp:function(t,e){return this.x=Math.max(t.x,Math.min(e.x,this.x)),this.y=Math.max(t.y,Math.min(e.y,this.y)),this.z=Math.max(t.z,Math.min(e.z,this.z)),this},clampScalar:function(){var t=new u,e=new u;return function(i,n){return t.set(i,i,i),e.set(n,n,n),this.clamp(t,e)}}(),clampLength:function(t,e){var i=this.length();return this.divideScalar(i||1).multiplyScalar(Math.max(t,Math.min(e,i)))},floor:function(){return this.x=Math.floor(this.x),this.y=Math.floor(this.y),this.z=Math.floor(this.z),this},ceil:function(){return this.x=Math.ceil(this.x),this.y=Math.ceil(this.y),this.z=Math.ceil(this.z),this},round:function(){return this.x=Math.round(this.x),this.y=Math.round(this.y),this.z=Math.round(this.z),this},roundToZero:function(){return this.x=0>this.x?Math.ceil(this.x):Math.floor(this.x),this.y=0>this.y?Math.ceil(this.y):Math.floor(this.y),this.z=0>this.z?Math.ceil(this.z):Math.floor(this.z),this},negate:function(){return this.x=-this.x,this.y=-this.y,this.z=-this.z,this},dot:function(t){return this.x*t.x+this.y*t.y+this.z*t.z},lengthSq:function(){return this.x*this.x+this.y*this.y+this.z*this.z},length:function(){return Math.sqrt(this.x*this.x+this.y*this.y+this.z*this.z)},manhattanLength:function(){return Math.abs(this.x)+Math.abs(this.y)+Math.abs(this.z)},normalize:function(){return this.divideScalar(this.length()||1)},setLength:function(t){return this.normalize().multiplyScalar(t)},lerp:function(t,e){return this.x+=(t.x-this.x)*e,this.y+=(t.y-this.y)*e,this.z+=(t.z-this.z)*e,this},lerpVectors:function(t,e,i){return this.subVectors(e,t).multiplyScalar(i).add(t)},cross:function(t,e){return e!==void 0?(console.warn("THREE.Vector3: .cross() now only accepts one argument. Use .crossVectors( a, b ) instead."),this.crossVectors(t,e)):this.crossVectors(this,t)},crossVectors:function(t,e){var i=t.x,n=t.y;t=t.z;var s=e.x,l=e.y;return e=e.z,this.x=n*e-t*l,this.y=t*s-i*e,this.z=i*l-n*s,this},projectOnVector:function(t){var e=t.dot(this)/t.lengthSq();return this.copy(t).multiplyScalar(e)},projectOnPlane:function(){var t=new u;return function(e){return t.copy(this).projectOnVector(e),this.sub(t)}}(),reflect:function(){var t=new u;return function(e){return this.sub(t.copy(e).multiplyScalar(2*this.dot(e)))}}(),angleTo:function(t){return t=this.dot(t)/Math.sqrt(this.lengthSq()*t.lengthSq()),Math.acos(pi.clamp(t,-1,1))},distanceTo:function(t){return Math.sqrt(this.distanceToSquared(t))},distanceToSquared:function(t){var e=this.x-t.x,i=this.y-t.y;return t=this.z-t.z,e*e+i*i+t*t},manhattanDistanceTo:function(t){return Math.abs(this.x-t.x)+Math.abs(this.y-t.y)+Math.abs(this.z-t.z)},setFromSpherical:function(t){return this.setFromSphericalCoords(t.radius,t.phi,t.theta)},setFromSphericalCoords:function(t,e,i){var n=Math.sin(e)*t;return this.x=n*Math.sin(i),this.y=Math.cos(e)*t,this.z=n*Math.cos(i),this},setFromCylindrical:function(t){return this.setFromCylindricalCoords(t.radius,t.theta,t.y)},setFromCylindricalCoords:function(t,e,i){return this.x=t*Math.sin(e),this.y=i,this.z=t*Math.cos(e),this},setFromMatrixPosition:function(t){return t=t.elements,this.x=t[12],this.y=t[13],this.z=t[14],this},setFromMatrixScale:function(t){var e=this.setFromMatrixColumn(t,0).length(),i=this.setFromMatrixColumn(t,1).length();return t=this.setFromMatrixColumn(t,2).length(),this.x=e,this.y=i,this.z=t,this},setFromMatrixColumn:function(t,e){return this.fromArray(t.elements,4*e)},equals:function(t){return t.x===this.x&&t.y===this.y&&t.z===this.z},fromArray:function(t,e){return e===void 0&&(e=0),this.x=t[e],this.y=t[e+1],this.z=t[e+2],this},toArray:function(t,e){return t===void 0&&(t=[]),e===void 0&&(e=0),t[e]=this.x,t[e+1]=this.y,t[e+2]=this.z,t},fromBufferAttribute:function(t,e,i){return i!==void 0&&console.warn("THREE.Vector3: offset has been removed from .fromBufferAttribute()."),this.x=t.getX(e),this.y=t.getY(e),this.z=t.getZ(e),this}}),Object.assign(m.prototype,{isMatrix3:!0,set:function(t,e,i,n,s,l,f,p,v){var w=this.elements;return w[0]=t,w[1]=n,w[2]=f,w[3]=e,w[4]=s,w[5]=p,w[6]=i,w[7]=l,w[8]=v,this},identity:function(){return this.set(1,0,0,0,1,0,0,0,1),this},clone:function(){return new this.constructor().fromArray(this.elements)},copy:function(t){var e=this.elements;return t=t.elements,e[0]=t[0],e[1]=t[1],e[2]=t[2],e[3]=t[3],e[4]=t[4],e[5]=t[5],e[6]=t[6],e[7]=t[7],e[8]=t[8],this},setFromMatrix4:function(t){return t=t.elements,this.set(t[0],t[4],t[8],t[1],t[5],t[9],t[2],t[6],t[10]),this},applyToBufferAttribute:function(){var t=new u;return function(e){for(var i=0,n=e.count;i<n;i++)t.x=e.getX(i),t.y=e.getY(i),t.z=e.getZ(i),t.applyMatrix3(this),e.setXYZ(i,t.x,t.y,t.z);return e}}(),multiply:function(t){return this.multiplyMatrices(this,t)},premultiply:function(t){return this.multiplyMatrices(t,this)},multiplyMatrices:function(t,e){var i=t.elements,n=e.elements;e=this.elements,t=i[0];var s=i[3],l=i[6],f=i[1],p=i[4],v=i[7],w=i[2],C=i[5];i=i[8];var P=n[0],B=n[3],H=n[6],q=n[1],K=n[4],rt=n[7],xt=n[2],gt=n[5];return n=n[8],e[0]=t*P+s*q+l*xt,e[3]=t*B+s*K+l*gt,e[6]=t*H+s*rt+l*n,e[1]=f*P+p*q+v*xt,e[4]=f*B+p*K+v*gt,e[7]=f*H+p*rt+v*n,e[2]=w*P+C*q+i*xt,e[5]=w*B+C*K+i*gt,e[8]=w*H+C*rt+i*n,this},multiplyScalar:function(t){var e=this.elements;return e[0]*=t,e[3]*=t,e[6]*=t,e[1]*=t,e[4]*=t,e[7]*=t,e[2]*=t,e[5]*=t,e[8]*=t,this},determinant:function(){var t=this.elements,e=t[0],i=t[1],n=t[2],s=t[3],l=t[4],f=t[5],p=t[6],v=t[7];return t=t[8],e*l*t-e*f*v-i*s*t+i*f*p+n*s*v-n*l*p},getInverse:function(t,e){t&&t.isMatrix4&&console.error("THREE.Matrix3: .getInverse() no longer takes a Matrix4 argument.");var i=t.elements;t=this.elements;var n=i[0],s=i[1],l=i[2],f=i[3],p=i[4],v=i[5],w=i[6],C=i[7];i=i[8];var P=i*p-v*C,B=v*w-i*f,H=C*f-p*w,q=n*P+s*B+l*H;if(q===0){if(e===!0)throw Error("THREE.Matrix3: .getInverse() can't invert matrix, determinant is 0");return console.warn("THREE.Matrix3: .getInverse() can't invert matrix, determinant is 0"),this.identity()}return e=1/q,t[0]=P*e,t[1]=(l*C-i*s)*e,t[2]=(v*s-l*p)*e,t[3]=B*e,t[4]=(i*n-l*w)*e,t[5]=(l*f-v*n)*e,t[6]=H*e,t[7]=(s*w-C*n)*e,t[8]=(p*n-s*f)*e,this},transpose:function(){var t=this.elements,e=t[1];return t[1]=t[3],t[3]=e,e=t[2],t[2]=t[6],t[6]=e,e=t[5],t[5]=t[7],t[7]=e,this},getNormalMatrix:function(t){return this.setFromMatrix4(t).getInverse(this).transpose()},transposeIntoArray:function(t){var e=this.elements;return t[0]=e[0],t[1]=e[3],t[2]=e[6],t[3]=e[1],t[4]=e[4],t[5]=e[7],t[6]=e[2],t[7]=e[5],t[8]=e[8],this},setUvTransform:function(t,e,i,n,s,l,f){var p=Math.cos(s);s=Math.sin(s),this.set(i*p,i*s,-i*(p*l+s*f)+l+t,-n*s,n*p,-n*(-s*l+p*f)+f+e,0,0,1)},scale:function(t,e){var i=this.elements;return i[0]*=t,i[3]*=t,i[6]*=t,i[1]*=e,i[4]*=e,i[7]*=e,this},rotate:function(t){var e=Math.cos(t);t=Math.sin(t);var i=this.elements,n=i[0],s=i[3],l=i[6],f=i[1],p=i[4],v=i[7];return i[0]=e*n+t*f,i[3]=e*s+t*p,i[6]=e*l+t*v,i[1]=-t*n+e*f,i[4]=-t*s+e*p,i[7]=-t*l+e*v,this},translate:function(t,e){var i=this.elements;return i[0]+=t*i[2],i[3]+=t*i[5],i[6]+=t*i[8],i[1]+=e*i[2],i[4]+=e*i[5],i[7]+=e*i[8],this},equals:function(t){var e=this.elements;t=t.elements;for(var i=0;9>i;i++)if(e[i]!==t[i])return!1;return!0},fromArray:function(t,e){e===void 0&&(e=0);for(var i=0;9>i;i++)this.elements[i]=t[i+e];return this},toArray:function(t,e){t===void 0&&(t=[]),e===void 0&&(e=0);var i=this.elements;return t[e]=i[0],t[e+1]=i[1],t[e+2]=i[2],t[e+3]=i[3],t[e+4]=i[4],t[e+5]=i[5],t[e+6]=i[6],t[e+7]=i[7],t[e+8]=i[8],t}});var so={getDataURL:function(t){if(typeof HTMLCanvasElement>"u")return t.src;if(t instanceof HTMLCanvasElement)var e=t;else{e=document.createElementNS("http://www.w3.org/1999/xhtml","canvas"),e.width=t.width,e.height=t.height;var i=e.getContext("2d");t instanceof ImageData?i.putImageData(t,0,0):i.drawImage(t,0,0,t.width,t.height)}return 2048<e.width||2048<e.height?e.toDataURL("image/jpeg",.6):e.toDataURL("image/png")}},No=0;_.DEFAULT_IMAGE=void 0,_.DEFAULT_MAPPING=300,_.prototype=Object.assign(Object.create(a.prototype),{constructor:_,isTexture:!0,updateMatrix:function(){this.matrix.setUvTransform(this.offset.x,this.offset.y,this.repeat.x,this.repeat.y,this.rotation,this.center.x,this.center.y)},clone:function(){return new this.constructor().copy(this)},copy:function(t){return this.name=t.name,this.image=t.image,this.mipmaps=t.mipmaps.slice(0),this.mapping=t.mapping,this.wrapS=t.wrapS,this.wrapT=t.wrapT,this.magFilter=t.magFilter,this.minFilter=t.minFilter,this.anisotropy=t.anisotropy,this.format=t.format,this.type=t.type,this.offset.copy(t.offset),this.repeat.copy(t.repeat),this.center.copy(t.center),this.rotation=t.rotation,this.matrixAutoUpdate=t.matrixAutoUpdate,this.matrix.copy(t.matrix),this.generateMipmaps=t.generateMipmaps,this.premultiplyAlpha=t.premultiplyAlpha,this.flipY=t.flipY,this.unpackAlignment=t.unpackAlignment,this.encoding=t.encoding,this},toJSON:function(t){var e=t===void 0||typeof t=="string";if(!e&&t.textures[this.uuid]!==void 0)return t.textures[this.uuid];var i={metadata:{version:4.5,type:"Texture",generator:"Texture.toJSON"},uuid:this.uuid,name:this.name,mapping:this.mapping,repeat:[this.repeat.x,this.repeat.y],offset:[this.offset.x,this.offset.y],center:[this.center.x,this.center.y],rotation:this.rotation,wrap:[this.wrapS,this.wrapT],format:this.format,minFilter:this.minFilter,magFilter:this.magFilter,anisotropy:this.anisotropy,flipY:this.flipY};if(this.image!==void 0){var n=this.image;if(n.uuid===void 0&&(n.uuid=pi.generateUUID()),!e&&t.images[n.uuid]===void 0){if(Array.isArray(n))for(var s=[],l=0,f=n.length;l<f;l++)s.push(so.getDataURL(n[l]));else s=so.getDataURL(n);t.images[n.uuid]={uuid:n.uuid,url:s}}i.image=n.uuid}return e||(t.textures[this.uuid]=i),i},dispose:function(){this.dispatchEvent({type:"dispose"})},transformUv:function(t){if(this.mapping!==300)return t;if(t.applyMatrix3(this.matrix),0>t.x||1<t.x)switch(this.wrapS){case 1e3:t.x-=Math.floor(t.x);break;case 1001:t.x=0>t.x?0:1;break;case 1002:t.x=Math.abs(Math.floor(t.x)%2)===1?Math.ceil(t.x)-t.x:t.x-Math.floor(t.x)}if(0>t.y||1<t.y)switch(this.wrapT){case 1e3:t.y-=Math.floor(t.y);break;case 1001:t.y=0>t.y?0:1;break;case 1002:t.y=Math.abs(Math.floor(t.y)%2)===1?Math.ceil(t.y)-t.y:t.y-Math.floor(t.y)}return this.flipY&&(t.y=1-t.y),t}}),Object.defineProperty(_.prototype,"needsUpdate",{set:function(t){t===!0&&this.version++}}),Object.assign(y.prototype,{isVector4:!0,set:function(t,e,i,n){return this.x=t,this.y=e,this.z=i,this.w=n,this},setScalar:function(t){return this.w=this.z=this.y=this.x=t,this},setX:function(t){return this.x=t,this},setY:function(t){return this.y=t,this},setZ:function(t){return this.z=t,this},setW:function(t){return this.w=t,this},setComponent:function(t,e){switch(t){case 0:this.x=e;break;case 1:this.y=e;break;case 2:this.z=e;break;case 3:this.w=e;break;default:throw Error("index is out of range: "+t)}return this},getComponent:function(t){switch(t){case 0:return this.x;case 1:return this.y;case 2:return this.z;case 3:return this.w;default:throw Error("index is out of range: "+t)}},clone:function(){return new this.constructor(this.x,this.y,this.z,this.w)},copy:function(t){return this.x=t.x,this.y=t.y,this.z=t.z,this.w=t.w!==void 0?t.w:1,this},add:function(t,e){return e!==void 0?(console.warn("THREE.Vector4: .add() now only accepts one argument. Use .addVectors( a, b ) instead."),this.addVectors(t,e)):(this.x+=t.x,this.y+=t.y,this.z+=t.z,this.w+=t.w,this)},addScalar:function(t){return this.x+=t,this.y+=t,this.z+=t,this.w+=t,this},addVectors:function(t,e){return this.x=t.x+e.x,this.y=t.y+e.y,this.z=t.z+e.z,this.w=t.w+e.w,this},addScaledVector:function(t,e){return this.x+=t.x*e,this.y+=t.y*e,this.z+=t.z*e,this.w+=t.w*e,this},sub:function(t,e){return e!==void 0?(console.warn("THREE.Vector4: .sub() now only accepts one argument. Use .subVectors( a, b ) instead."),this.subVectors(t,e)):(this.x-=t.x,this.y-=t.y,this.z-=t.z,this.w-=t.w,this)},subScalar:function(t){return this.x-=t,this.y-=t,this.z-=t,this.w-=t,this},subVectors:function(t,e){return this.x=t.x-e.x,this.y=t.y-e.y,this.z=t.z-e.z,this.w=t.w-e.w,this},multiplyScalar:function(t){return this.x*=t,this.y*=t,this.z*=t,this.w*=t,this},applyMatrix4:function(t){var e=this.x,i=this.y,n=this.z,s=this.w;return t=t.elements,this.x=t[0]*e+t[4]*i+t[8]*n+t[12]*s,this.y=t[1]*e+t[5]*i+t[9]*n+t[13]*s,this.z=t[2]*e+t[6]*i+t[10]*n+t[14]*s,this.w=t[3]*e+t[7]*i+t[11]*n+t[15]*s,this},divideScalar:function(t){return this.multiplyScalar(1/t)},setAxisAngleFromQuaternion:function(t){this.w=2*Math.acos(t.w);var e=Math.sqrt(1-t.w*t.w);return 1e-4>e?(this.x=1,this.z=this.y=0):(this.x=t.x/e,this.y=t.y/e,this.z=t.z/e),this},setAxisAngleFromRotationMatrix:function(t){t=t.elements;var e=t[0],i=t[4],n=t[8],s=t[1],l=t[5],f=t[9],p=t[2],v=t[6],w=t[10];return .01>Math.abs(i-s)&&.01>Math.abs(n-p)&&.01>Math.abs(f-v)?.1>Math.abs(i+s)&&.1>Math.abs(n+p)&&.1>Math.abs(f+v)&&.1>Math.abs(e+l+w-3)?(this.set(1,0,0,0),this):(t=Math.PI,e=(e+1)/2,l=(l+1)/2,w=(w+1)/2,i=(i+s)/4,n=(n+p)/4,f=(f+v)/4,e>l&&e>w?.01>e?(v=0,i=p=.707106781):(v=Math.sqrt(e),p=i/v,i=n/v):l>w?.01>l?(v=.707106781,p=0,i=.707106781):(p=Math.sqrt(l),v=i/p,i=f/p):.01>w?(p=v=.707106781,i=0):(i=Math.sqrt(w),v=n/i,p=f/i),this.set(v,p,i,t),this):(t=Math.sqrt((v-f)*(v-f)+(n-p)*(n-p)+(s-i)*(s-i)),.001>Math.abs(t)&&(t=1),this.x=(v-f)/t,this.y=(n-p)/t,this.z=(s-i)/t,this.w=Math.acos((e+l+w-1)/2),this)},min:function(t){return this.x=Math.min(this.x,t.x),this.y=Math.min(this.y,t.y),this.z=Math.min(this.z,t.z),this.w=Math.min(this.w,t.w),this},max:function(t){return this.x=Math.max(this.x,t.x),this.y=Math.max(this.y,t.y),this.z=Math.max(this.z,t.z),this.w=Math.max(this.w,t.w),this},clamp:function(t,e){return this.x=Math.max(t.x,Math.min(e.x,this.x)),this.y=Math.max(t.y,Math.min(e.y,this.y)),this.z=Math.max(t.z,Math.min(e.z,this.z)),this.w=Math.max(t.w,Math.min(e.w,this.w)),this},clampScalar:function(){var t,e;return function(i,n){return t===void 0&&(t=new y,e=new y),t.set(i,i,i,i),e.set(n,n,n,n),this.clamp(t,e)}}(),clampLength:function(t,e){var i=this.length();return this.divideScalar(i||1).multiplyScalar(Math.max(t,Math.min(e,i)))},floor:function(){return this.x=Math.floor(this.x),this.y=Math.floor(this.y),this.z=Math.floor(this.z),this.w=Math.floor(this.w),this},ceil:function(){return this.x=Math.ceil(this.x),this.y=Math.ceil(this.y),this.z=Math.ceil(this.z),this.w=Math.ceil(this.w),this},round:function(){return this.x=Math.round(this.x),this.y=Math.round(this.y),this.z=Math.round(this.z),this.w=Math.round(this.w),this},roundToZero:function(){return this.x=0>this.x?Math.ceil(this.x):Math.floor(this.x),this.y=0>this.y?Math.ceil(this.y):Math.floor(this.y),this.z=0>this.z?Math.ceil(this.z):Math.floor(this.z),this.w=0>this.w?Math.ceil(this.w):Math.floor(this.w),this},negate:function(){return this.x=-this.x,this.y=-this.y,this.z=-this.z,this.w=-this.w,this},dot:function(t){return this.x*t.x+this.y*t.y+this.z*t.z+this.w*t.w},lengthSq:function(){return this.x*this.x+this.y*this.y+this.z*this.z+this.w*this.w},length:function(){return Math.sqrt(this.x*this.x+this.y*this.y+this.z*this.z+this.w*this.w)},manhattanLength:function(){return Math.abs(this.x)+Math.abs(this.y)+Math.abs(this.z)+Math.abs(this.w)},normalize:function(){return this.divideScalar(this.length()||1)},setLength:function(t){return this.normalize().multiplyScalar(t)},lerp:function(t,e){return this.x+=(t.x-this.x)*e,this.y+=(t.y-this.y)*e,this.z+=(t.z-this.z)*e,this.w+=(t.w-this.w)*e,this},lerpVectors:function(t,e,i){return this.subVectors(e,t).multiplyScalar(i).add(t)},equals:function(t){return t.x===this.x&&t.y===this.y&&t.z===this.z&&t.w===this.w},fromArray:function(t,e){return e===void 0&&(e=0),this.x=t[e],this.y=t[e+1],this.z=t[e+2],this.w=t[e+3],this},toArray:function(t,e){return t===void 0&&(t=[]),e===void 0&&(e=0),t[e]=this.x,t[e+1]=this.y,t[e+2]=this.z,t[e+3]=this.w,t},fromBufferAttribute:function(t,e,i){return i!==void 0&&console.warn("THREE.Vector4: offset has been removed from .fromBufferAttribute()."),this.x=t.getX(e),this.y=t.getY(e),this.z=t.getZ(e),this.w=t.getW(e),this}}),S.prototype=Object.assign(Object.create(a.prototype),{constructor:S,isWebGLRenderTarget:!0,setSize:function(t,e){(this.width!==t||this.height!==e)&&(this.width=t,this.height=e,this.dispose()),this.viewport.set(0,0,t,e),this.scissor.set(0,0,t,e)},clone:function(){return new this.constructor().copy(this)},copy:function(t){return this.width=t.width,this.height=t.height,this.viewport.copy(t.viewport),this.texture=t.texture.clone(),this.depthBuffer=t.depthBuffer,this.stencilBuffer=t.stencilBuffer,this.depthTexture=t.depthTexture,this},dispose:function(){this.dispatchEvent({type:"dispose"})}}),A.prototype=Object.create(S.prototype),A.prototype.constructor=A,A.prototype.isWebGLRenderTargetCube=!0,I.prototype=Object.create(_.prototype),I.prototype.constructor=I,I.prototype.isDataTexture=!0,Object.assign(k.prototype,{isBox3:!0,set:function(t,e){return this.min.copy(t),this.max.copy(e),this},setFromArray:function(t){for(var e=1/0,i=1/0,n=1/0,s=-1/0,l=-1/0,f=-1/0,p=0,v=t.length;p<v;p+=3){var w=t[p],C=t[p+1],P=t[p+2];w<e&&(e=w),C<i&&(i=C),P<n&&(n=P),w>s&&(s=w),C>l&&(l=C),P>f&&(f=P)}return this.min.set(e,i,n),this.max.set(s,l,f),this},setFromBufferAttribute:function(t){for(var e=1/0,i=1/0,n=1/0,s=-1/0,l=-1/0,f=-1/0,p=0,v=t.count;p<v;p++){var w=t.getX(p),C=t.getY(p),P=t.getZ(p);w<e&&(e=w),C<i&&(i=C),P<n&&(n=P),w>s&&(s=w),C>l&&(l=C),P>f&&(f=P)}return this.min.set(e,i,n),this.max.set(s,l,f),this},setFromPoints:function(t){this.makeEmpty();for(var e=0,i=t.length;e<i;e++)this.expandByPoint(t[e]);return this},setFromCenterAndSize:function(){var t=new u;return function(e,i){return i=t.copy(i).multiplyScalar(.5),this.min.copy(e).sub(i),this.max.copy(e).add(i),this}}(),setFromObject:function(t){return this.makeEmpty(),this.expandByObject(t)},clone:function(){return new this.constructor().copy(this)},copy:function(t){return this.min.copy(t.min),this.max.copy(t.max),this},makeEmpty:function(){return this.min.x=this.min.y=this.min.z=1/0,this.max.x=this.max.y=this.max.z=-1/0,this},isEmpty:function(){return this.max.x<this.min.x||this.max.y<this.min.y||this.max.z<this.min.z},getCenter:function(t){return t===void 0&&(console.warn("THREE.Box3: .getCenter() target is now required"),t=new u),this.isEmpty()?t.set(0,0,0):t.addVectors(this.min,this.max).multiplyScalar(.5)},getSize:function(t){return t===void 0&&(console.warn("THREE.Box3: .getSize() target is now required"),t=new u),this.isEmpty()?t.set(0,0,0):t.subVectors(this.max,this.min)},expandByPoint:function(t){return this.min.min(t),this.max.max(t),this},expandByVector:function(t){return this.min.sub(t),this.max.add(t),this},expandByScalar:function(t){return this.min.addScalar(-t),this.max.addScalar(t),this},expandByObject:function(){function t(l){var f=l.geometry;if(f!==void 0){if(f.isGeometry)for(f=f.vertices,i=0,n=f.length;i<n;i++)s.copy(f[i]),s.applyMatrix4(l.matrixWorld),e.expandByPoint(s);else if(f.isBufferGeometry&&(f=f.attributes.position,f!==void 0))for(i=0,n=f.count;i<n;i++)s.fromBufferAttribute(f,i).applyMatrix4(l.matrixWorld),e.expandByPoint(s)}}var e,i,n,s=new u;return function(l){return e=this,l.updateMatrixWorld(!0),l.traverse(t),this}}(),containsPoint:function(t){return!(t.x<this.min.x||t.x>this.max.x||t.y<this.min.y||t.y>this.max.y||t.z<this.min.z||t.z>this.max.z)},containsBox:function(t){return this.min.x<=t.min.x&&t.max.x<=this.max.x&&this.min.y<=t.min.y&&t.max.y<=this.max.y&&this.min.z<=t.min.z&&t.max.z<=this.max.z},getParameter:function(t,e){return e===void 0&&(console.warn("THREE.Box3: .getParameter() target is now required"),e=new u),e.set((t.x-this.min.x)/(this.max.x-this.min.x),(t.y-this.min.y)/(this.max.y-this.min.y),(t.z-this.min.z)/(this.max.z-this.min.z))},intersectsBox:function(t){return!(t.max.x<this.min.x||t.min.x>this.max.x||t.max.y<this.min.y||t.min.y>this.max.y||t.max.z<this.min.z||t.min.z>this.max.z)},intersectsSphere:function(){var t=new u;return function(e){return this.clampPoint(e.center,t),t.distanceToSquared(e.center)<=e.radius*e.radius}}(),intersectsPlane:function(t){if(0<t.normal.x)var e=t.normal.x*this.min.x,i=t.normal.x*this.max.x;else e=t.normal.x*this.max.x,i=t.normal.x*this.min.x;return 0<t.normal.y?(e+=t.normal.y*this.min.y,i+=t.normal.y*this.max.y):(e+=t.normal.y*this.max.y,i+=t.normal.y*this.min.y),0<t.normal.z?(e+=t.normal.z*this.min.z,i+=t.normal.z*this.max.z):(e+=t.normal.z*this.max.z,i+=t.normal.z*this.min.z),e<=-t.constant&&i>=-t.constant},intersectsTriangle:function(){function t(P){var B,H=0;for(B=P.length-3;H<=B;H+=3){p.fromArray(P,H);var q=w.x*Math.abs(p.x)+w.y*Math.abs(p.y)+w.z*Math.abs(p.z),K=e.dot(p),rt=i.dot(p),xt=n.dot(p);if(Math.max(-Math.max(K,rt,xt),Math.min(K,rt,xt))>q)return!1}return!0}var e=new u,i=new u,n=new u,s=new u,l=new u,f=new u,p=new u,v=new u,w=new u,C=new u;return function(P){return this.isEmpty()||(this.getCenter(v),w.subVectors(this.max,v),e.subVectors(P.a,v),i.subVectors(P.b,v),n.subVectors(P.c,v),s.subVectors(i,e),l.subVectors(n,i),f.subVectors(e,n),P=[0,-s.z,s.y,0,-l.z,l.y,0,-f.z,f.y,s.z,0,-s.x,l.z,0,-l.x,f.z,0,-f.x,-s.y,s.x,0,-l.y,l.x,0,-f.y,f.x,0],!t(P))||(P=[1,0,0,0,1,0,0,0,1],!t(P))?!1:(C.crossVectors(s,l),P=[C.x,C.y,C.z],t(P))}}(),clampPoint:function(t,e){return e===void 0&&(console.warn("THREE.Box3: .clampPoint() target is now required"),e=new u),e.copy(t).clamp(this.min,this.max)},distanceToPoint:function(){var t=new u;return function(e){return t.copy(e).clamp(this.min,this.max).sub(e).length()}}(),getBoundingSphere:function(){var t=new u;return function(e){return e===void 0&&(console.warn("THREE.Box3: .getBoundingSphere() target is now required"),e=new D),this.getCenter(e.center),e.radius=.5*this.getSize(t).length(),e}}(),intersect:function(t){return this.min.max(t.min),this.max.min(t.max),this.isEmpty()&&this.makeEmpty(),this},union:function(t){return this.min.min(t.min),this.max.max(t.max),this},applyMatrix4:function(){var t=[new u,new u,new u,new u,new u,new u,new u,new u];return function(e){return this.isEmpty()?this:(t[0].set(this.min.x,this.min.y,this.min.z).applyMatrix4(e),t[1].set(this.min.x,this.min.y,this.max.z).applyMatrix4(e),t[2].set(this.min.x,this.max.y,this.min.z).applyMatrix4(e),t[3].set(this.min.x,this.max.y,this.max.z).applyMatrix4(e),t[4].set(this.max.x,this.min.y,this.min.z).applyMatrix4(e),t[5].set(this.max.x,this.min.y,this.max.z).applyMatrix4(e),t[6].set(this.max.x,this.max.y,this.min.z).applyMatrix4(e),t[7].set(this.max.x,this.max.y,this.max.z).applyMatrix4(e),this.setFromPoints(t),this)}}(),translate:function(t){return this.min.add(t),this.max.add(t),this},equals:function(t){return t.min.equals(this.min)&&t.max.equals(this.max)}}),Object.assign(D.prototype,{set:function(t,e){return this.center.copy(t),this.radius=e,this},setFromPoints:function(){var t=new k;return function(e,i){var n=this.center;i!==void 0?n.copy(i):t.setFromPoints(e).getCenter(n);for(var s=i=0,l=e.length;s<l;s++)i=Math.max(i,n.distanceToSquared(e[s]));return this.radius=Math.sqrt(i),this}}(),clone:function(){return new this.constructor().copy(this)},copy:function(t){return this.center.copy(t.center),this.radius=t.radius,this},empty:function(){return 0>=this.radius},containsPoint:function(t){return t.distanceToSquared(this.center)<=this.radius*this.radius},distanceToPoint:function(t){return t.distanceTo(this.center)-this.radius},intersectsSphere:function(t){var e=this.radius+t.radius;return t.center.distanceToSquared(this.center)<=e*e},intersectsBox:function(t){return t.intersectsSphere(this)},intersectsPlane:function(t){return Math.abs(t.distanceToPoint(this.center))<=this.radius},clampPoint:function(t,e){var i=this.center.distanceToSquared(t);return e===void 0&&(console.warn("THREE.Sphere: .clampPoint() target is now required"),e=new u),e.copy(t),i>this.radius*this.radius&&(e.sub(this.center).normalize(),e.multiplyScalar(this.radius).add(this.center)),e},getBoundingBox:function(t){return t===void 0&&(console.warn("THREE.Sphere: .getBoundingBox() target is now required"),t=new k),t.set(this.center,this.center),t.expandByScalar(this.radius),t},applyMatrix4:function(t){return this.center.applyMatrix4(t),this.radius*=t.getMaxScaleOnAxis(),this},translate:function(t){return this.center.add(t),this},equals:function(t){return t.center.equals(this.center)&&t.radius===this.radius}}),Object.assign(F.prototype,{set:function(t,e){return this.normal.copy(t),this.constant=e,this},setComponents:function(t,e,i,n){return this.normal.set(t,e,i),this.constant=n,this},setFromNormalAndCoplanarPoint:function(t,e){return this.normal.copy(t),this.constant=-e.dot(this.normal),this},setFromCoplanarPoints:function(){var t=new u,e=new u;return function(i,n,s){return n=t.subVectors(s,n).cross(e.subVectors(i,n)).normalize(),this.setFromNormalAndCoplanarPoint(n,i),this}}(),clone:function(){return new this.constructor().copy(this)},copy:function(t){return this.normal.copy(t.normal),this.constant=t.constant,this},normalize:function(){var t=1/this.normal.length();return this.normal.multiplyScalar(t),this.constant*=t,this},negate:function(){return this.constant*=-1,this.normal.negate(),this},distanceToPoint:function(t){return this.normal.dot(t)+this.constant},distanceToSphere:function(t){return this.distanceToPoint(t.center)-t.radius},projectPoint:function(t,e){return e===void 0&&(console.warn("THREE.Plane: .projectPoint() target is now required"),e=new u),e.copy(this.normal).multiplyScalar(-this.distanceToPoint(t)).add(t)},intersectLine:function(){var t=new u;return function(e,i){i===void 0&&(console.warn("THREE.Plane: .intersectLine() target is now required"),i=new u);var n=e.delta(t),s=this.normal.dot(n);if(s===0){if(this.distanceToPoint(e.start)===0)return i.copy(e.start)}else if(s=-(e.start.dot(this.normal)+this.constant)/s,!(0>s||1<s))return i.copy(n).multiplyScalar(s).add(e.start)}}(),intersectsLine:function(t){var e=this.distanceToPoint(t.start);return t=this.distanceToPoint(t.end),0>e&&0<t||0>t&&0<e},intersectsBox:function(t){return t.intersectsPlane(this)},intersectsSphere:function(t){return t.intersectsPlane(this)},coplanarPoint:function(t){return t===void 0&&(console.warn("THREE.Plane: .coplanarPoint() target is now required"),t=new u),t.copy(this.normal).multiplyScalar(-this.constant)},applyMatrix4:function(){var t=new u,e=new m;return function(i,n){return n=n||e.getNormalMatrix(i),i=this.coplanarPoint(t).applyMatrix4(i),n=this.normal.applyMatrix3(n).normalize(),this.constant=-i.dot(n),this}}(),translate:function(t){return this.constant-=t.dot(this.normal),this},equals:function(t){return t.normal.equals(this.normal)&&t.constant===this.constant}}),Object.assign(E.prototype,{set:function(t,e,i,n,s,l){var f=this.planes;return f[0].copy(t),f[1].copy(e),f[2].copy(i),f[3].copy(n),f[4].copy(s),f[5].copy(l),this},clone:function(){return new this.constructor().copy(this)},copy:function(t){for(var e=this.planes,i=0;6>i;i++)e[i].copy(t.planes[i]);return this},setFromMatrix:function(t){var e=this.planes,i=t.elements;t=i[0];var n=i[1],s=i[2],l=i[3],f=i[4],p=i[5],v=i[6],w=i[7],C=i[8],P=i[9],B=i[10],H=i[11],q=i[12],K=i[13],rt=i[14];return i=i[15],e[0].setComponents(l-t,w-f,H-C,i-q).normalize(),e[1].setComponents(l+t,w+f,H+C,i+q).normalize(),e[2].setComponents(l+n,w+p,H+P,i+K).normalize(),e[3].setComponents(l-n,w-p,H-P,i-K).normalize(),e[4].setComponents(l-s,w-v,H-B,i-rt).normalize(),e[5].setComponents(l+s,w+v,H+B,i+rt).normalize(),this},intersectsObject:function(){var t=new D;return function(e){var i=e.geometry;return i.boundingSphere===null&&i.computeBoundingSphere(),t.copy(i.boundingSphere).applyMatrix4(e.matrixWorld),this.intersectsSphere(t)}}(),intersectsSprite:function(){var t=new D;return function(e){return t.center.set(0,0,0),t.radius=.7071067811865476,t.applyMatrix4(e.matrixWorld),this.intersectsSphere(t)}}(),intersectsSphere:function(t){var e=this.planes,i=t.center;t=-t.radius;for(var n=0;6>n;n++)if(e[n].distanceToPoint(i)<t)return!1;return!0},intersectsBox:function(){var t=new u;return function(e){for(var i=this.planes,n=0;6>n;n++){var s=i[n];if(t.x=0<s.normal.x?e.max.x:e.min.x,t.y=0<s.normal.y?e.max.y:e.min.y,t.z=0<s.normal.z?e.max.z:e.min.z,0>s.distanceToPoint(t))return!1}return!0}}(),containsPoint:function(t){for(var e=this.planes,i=0;6>i;i++)if(0>e[i].distanceToPoint(t))return!1;return!0}});var bi={alphamap_fragment:`#ifdef USE_ALPHAMAP
286
286
  diffuseColor.a *= texture2D( alphaMap, vUv ).g;
287
287
  #endif
288
288
  `,alphamap_pars_fragment:`#ifdef USE_ALPHAMAP
@@ -2567,15 +2567,15 @@ void main() {
2567
2567
  #include <clipping_planes_vertex>
2568
2568
  #include <fog_vertex>
2569
2569
  }
2570
- `},Bn={merge:function(t){for(var e={},i=0;i<t.length;i++){var n=this.clone(t[i]),s;for(s in n)e[s]=n[s]}return e},clone:function(t){var e={},i;for(i in t){e[i]={};for(var n in t[i]){var s=t[i][n];s&&(s.isColor||s.isMatrix3||s.isMatrix4||s.isVector2||s.isVector3||s.isVector4||s.isTexture)?e[i][n]=s.clone():Array.isArray(s)?e[i][n]=s.slice():e[i][n]=s}}return e}},Qr={aliceblue:15792383,antiquewhite:16444375,aqua:65535,aquamarine:8388564,azure:15794175,beige:16119260,bisque:16770244,black:0,blanchedalmond:16772045,blue:255,blueviolet:9055202,brown:10824234,burlywood:14596231,cadetblue:6266528,chartreuse:8388352,chocolate:13789470,coral:16744272,cornflowerblue:6591981,cornsilk:16775388,crimson:14423100,cyan:65535,darkblue:139,darkcyan:35723,darkgoldenrod:12092939,darkgray:11119017,darkgreen:25600,darkgrey:11119017,darkkhaki:12433259,darkmagenta:9109643,darkolivegreen:5597999,darkorange:16747520,darkorchid:10040012,darkred:9109504,darksalmon:15308410,darkseagreen:9419919,darkslateblue:4734347,darkslategray:3100495,darkslategrey:3100495,darkturquoise:52945,darkviolet:9699539,deeppink:16716947,deepskyblue:49151,dimgray:6908265,dimgrey:6908265,dodgerblue:2003199,firebrick:11674146,floralwhite:16775920,forestgreen:2263842,fuchsia:16711935,gainsboro:14474460,ghostwhite:16316671,gold:16766720,goldenrod:14329120,gray:8421504,green:32768,greenyellow:11403055,grey:8421504,honeydew:15794160,hotpink:16738740,indianred:13458524,indigo:4915330,ivory:16777200,khaki:15787660,lavender:15132410,lavenderblush:16773365,lawngreen:8190976,lemonchiffon:16775885,lightblue:11393254,lightcoral:15761536,lightcyan:14745599,lightgoldenrodyellow:16448210,lightgray:13882323,lightgreen:9498256,lightgrey:13882323,lightpink:16758465,lightsalmon:16752762,lightseagreen:2142890,lightskyblue:8900346,lightslategray:7833753,lightslategrey:7833753,lightsteelblue:11584734,lightyellow:16777184,lime:65280,limegreen:3329330,linen:16445670,magenta:16711935,maroon:8388608,mediumaquamarine:6737322,mediumblue:205,mediumorchid:12211667,mediumpurple:9662683,mediumseagreen:3978097,mediumslateblue:8087790,mediumspringgreen:64154,mediumturquoise:4772300,mediumvioletred:13047173,midnightblue:1644912,mintcream:16121850,mistyrose:16770273,moccasin:16770229,navajowhite:16768685,navy:128,oldlace:16643558,olive:8421376,olivedrab:7048739,orange:16753920,orangered:16729344,orchid:14315734,palegoldenrod:15657130,palegreen:10025880,paleturquoise:11529966,palevioletred:14381203,papayawhip:16773077,peachpuff:16767673,peru:13468991,pink:16761035,plum:14524637,powderblue:11591910,purple:8388736,rebeccapurple:6697881,red:16711680,rosybrown:12357519,royalblue:4286945,saddlebrown:9127187,salmon:16416882,sandybrown:16032864,seagreen:3050327,seashell:16774638,sienna:10506797,silver:12632256,skyblue:8900331,slateblue:6970061,slategray:7372944,slategrey:7372944,snow:16775930,springgreen:65407,steelblue:4620980,tan:13808780,teal:32896,thistle:14204888,tomato:16737095,turquoise:4251856,violet:15631086,wheat:16113331,white:16777215,whitesmoke:16119285,yellow:16776960,yellowgreen:10145074};Object.assign(P.prototype,{isColor:!0,r:1,g:1,b:1,set:function(t){return t&&t.isColor?this.copy(t):typeof t=="number"?this.setHex(t):typeof t=="string"&&this.setStyle(t),this},setScalar:function(t){return this.b=this.g=this.r=t,this},setHex:function(t){return t=Math.floor(t),this.r=(t>>16&255)/255,this.g=(t>>8&255)/255,this.b=(t&255)/255,this},setRGB:function(t,e,i){return this.r=t,this.g=e,this.b=i,this},setHSL:function(){function t(e,i,n){return 0>n&&(n+=1),1<n&&--n,n<1/6?e+6*(i-e)*n:.5>n?i:n<2/3?e+6*(i-e)*(2/3-n):e}return function(e,i,n){return e=pi.euclideanModulo(e,1),i=pi.clamp(i,0,1),n=pi.clamp(n,0,1),i===0?this.r=this.g=this.b=n:(i=.5>=n?n*(1+i):n+i-n*i,n=2*n-i,this.r=t(n,i,e+1/3),this.g=t(n,i,e),this.b=t(n,i,e-1/3)),this}}(),setStyle:function(t){function e(f){f!==void 0&&1>parseFloat(f)&&console.warn("THREE.Color: Alpha component of "+t+" will be ignored.")}var i;if(i=/^((?:rgb|hsl)a?)\(\s*([^\)]*)\)/.exec(t)){var n=i[2];switch(i[1]){case"rgb":case"rgba":if(i=/^(\d+)\s*,\s*(\d+)\s*,\s*(\d+)\s*(,\s*([0-9]*\.?[0-9]+)\s*)?$/.exec(n))return this.r=Math.min(255,parseInt(i[1],10))/255,this.g=Math.min(255,parseInt(i[2],10))/255,this.b=Math.min(255,parseInt(i[3],10))/255,e(i[5]),this;if(i=/^(\d+)%\s*,\s*(\d+)%\s*,\s*(\d+)%\s*(,\s*([0-9]*\.?[0-9]+)\s*)?$/.exec(n))return this.r=Math.min(100,parseInt(i[1],10))/100,this.g=Math.min(100,parseInt(i[2],10))/100,this.b=Math.min(100,parseInt(i[3],10))/100,e(i[5]),this;break;case"hsl":case"hsla":if(i=/^([0-9]*\.?[0-9]+)\s*,\s*(\d+)%\s*,\s*(\d+)%\s*(,\s*([0-9]*\.?[0-9]+)\s*)?$/.exec(n)){n=parseFloat(i[1])/360;var s=parseInt(i[2],10)/100,a=parseInt(i[3],10)/100;return e(i[5]),this.setHSL(n,s,a)}}}else if(i=/^#([A-Fa-f0-9]+)$/.exec(t)){if(i=i[1],n=i.length,n===3)return this.r=parseInt(i.charAt(0)+i.charAt(0),16)/255,this.g=parseInt(i.charAt(1)+i.charAt(1),16)/255,this.b=parseInt(i.charAt(2)+i.charAt(2),16)/255,this;if(n===6)return this.r=parseInt(i.charAt(0)+i.charAt(1),16)/255,this.g=parseInt(i.charAt(2)+i.charAt(3),16)/255,this.b=parseInt(i.charAt(4)+i.charAt(5),16)/255,this}return t&&0<t.length&&(i=Qr[t],i!==void 0?this.setHex(i):console.warn("THREE.Color: Unknown color "+t)),this},clone:function(){return new this.constructor(this.r,this.g,this.b)},copy:function(t){return this.r=t.r,this.g=t.g,this.b=t.b,this},copyGammaToLinear:function(t,e){return e===void 0&&(e=2),this.r=Math.pow(t.r,e),this.g=Math.pow(t.g,e),this.b=Math.pow(t.b,e),this},copyLinearToGamma:function(t,e){return e===void 0&&(e=2),e=0<e?1/e:1,this.r=Math.pow(t.r,e),this.g=Math.pow(t.g,e),this.b=Math.pow(t.b,e),this},convertGammaToLinear:function(t){return this.copyGammaToLinear(this,t),this},convertLinearToGamma:function(t){return this.copyLinearToGamma(this,t),this},copySRGBToLinear:function(){function t(e){return .04045>e?.0773993808*e:Math.pow(.9478672986*e+.0521327014,2.4)}return function(e){return this.r=t(e.r),this.g=t(e.g),this.b=t(e.b),this}}(),copyLinearToSRGB:function(){function t(e){return .0031308>e?12.92*e:1.055*Math.pow(e,.41666)-.055}return function(e){return this.r=t(e.r),this.g=t(e.g),this.b=t(e.b),this}}(),convertSRGBToLinear:function(){return this.copySRGBToLinear(this),this},convertLinearToSRGB:function(){return this.copyLinearToSRGB(this),this},getHex:function(){return 255*this.r<<16^255*this.g<<8^255*this.b<<0},getHexString:function(){return("000000"+this.getHex().toString(16)).slice(-6)},getHSL:function(t){t===void 0&&(console.warn("THREE.Color: .getHSL() target is now required"),t={h:0,s:0,l:0});var e=this.r,i=this.g,n=this.b,s=Math.max(e,i,n),a=Math.min(e,i,n),f,p=(a+s)/2;if(a===s)a=f=0;else{var v=s-a;switch(a=.5>=p?v/(s+a):v/(2-s-a),s){case e:f=(i-n)/v+(i<n?6:0);break;case i:f=(n-e)/v+2;break;case n:f=(e-i)/v+4}f/=6}return t.h=f,t.s=a,t.l=p,t},getStyle:function(){return"rgb("+(255*this.r|0)+","+(255*this.g|0)+","+(255*this.b|0)+")"},offsetHSL:function(){var t={};return function(e,i,n){return this.getHSL(t),t.h+=e,t.s+=i,t.l+=n,this.setHSL(t.h,t.s,t.l),this}}(),add:function(t){return this.r+=t.r,this.g+=t.g,this.b+=t.b,this},addColors:function(t,e){return this.r=t.r+e.r,this.g=t.g+e.g,this.b=t.b+e.b,this},addScalar:function(t){return this.r+=t,this.g+=t,this.b+=t,this},sub:function(t){return this.r=Math.max(0,this.r-t.r),this.g=Math.max(0,this.g-t.g),this.b=Math.max(0,this.b-t.b),this},multiply:function(t){return this.r*=t.r,this.g*=t.g,this.b*=t.b,this},multiplyScalar:function(t){return this.r*=t,this.g*=t,this.b*=t,this},lerp:function(t,e){return this.r+=(t.r-this.r)*e,this.g+=(t.g-this.g)*e,this.b+=(t.b-this.b)*e,this},lerpHSL:function(){var t={h:0,s:0,l:0},e={h:0,s:0,l:0};return function(i,n){this.getHSL(t),i.getHSL(e),i=pi.lerp(t.h,e.h,n);var s=pi.lerp(t.s,e.s,n);return n=pi.lerp(t.l,e.l,n),this.setHSL(i,s,n),this}}(),equals:function(t){return t.r===this.r&&t.g===this.g&&t.b===this.b},fromArray:function(t,e){return e===void 0&&(e=0),this.r=t[e],this.g=t[e+1],this.b=t[e+2],this},toArray:function(t,e){return t===void 0&&(t=[]),e===void 0&&(e=0),t[e]=this.r,t[e+1]=this.g,t[e+2]=this.b,t},toJSON:function(){return this.getHex()}});var qe={common:{diffuse:{value:new P(15658734)},opacity:{value:1},map:{value:null},uvTransform:{value:new m},alphaMap:{value:null}},specularmap:{specularMap:{value:null}},envmap:{envMap:{value:null},flipEnvMap:{value:-1},reflectivity:{value:1},refractionRatio:{value:.98},maxMipLevel:{value:0}},aomap:{aoMap:{value:null},aoMapIntensity:{value:1}},lightmap:{lightMap:{value:null},lightMapIntensity:{value:1}},emissivemap:{emissiveMap:{value:null}},bumpmap:{bumpMap:{value:null},bumpScale:{value:1}},normalmap:{normalMap:{value:null},normalScale:{value:new o(1,1)}},displacementmap:{displacementMap:{value:null},displacementScale:{value:1},displacementBias:{value:0}},roughnessmap:{roughnessMap:{value:null}},metalnessmap:{metalnessMap:{value:null}},gradientmap:{gradientMap:{value:null}},fog:{fogDensity:{value:25e-5},fogNear:{value:1},fogFar:{value:2e3},fogColor:{value:new P(16777215)}},lights:{ambientLightColor:{value:[]},directionalLights:{value:[],properties:{direction:{},color:{},shadow:{},shadowBias:{},shadowRadius:{},shadowMapSize:{}}},directionalShadowMap:{value:[]},directionalShadowMatrix:{value:[]},spotLights:{value:[],properties:{color:{},position:{},direction:{},distance:{},coneCos:{},penumbraCos:{},decay:{},shadow:{},shadowBias:{},shadowRadius:{},shadowMapSize:{}}},spotShadowMap:{value:[]},spotShadowMatrix:{value:[]},pointLights:{value:[],properties:{color:{},position:{},decay:{},distance:{},shadow:{},shadowBias:{},shadowRadius:{},shadowMapSize:{},shadowCameraNear:{},shadowCameraFar:{}}},pointShadowMap:{value:[]},pointShadowMatrix:{value:[]},hemisphereLights:{value:[],properties:{direction:{},skyColor:{},groundColor:{}}},rectAreaLights:{value:[],properties:{color:{},position:{},width:{},height:{}}}},points:{diffuse:{value:new P(15658734)},opacity:{value:1},size:{value:1},scale:{value:1},map:{value:null},uvTransform:{value:new m}},sprite:{diffuse:{value:new P(15658734)},opacity:{value:1},center:{value:new o(.5,.5)},rotation:{value:0},map:{value:null},uvTransform:{value:new m}}},xs={basic:{uniforms:Bn.merge([qe.common,qe.specularmap,qe.envmap,qe.aomap,qe.lightmap,qe.fog]),vertexShader:bi.meshbasic_vert,fragmentShader:bi.meshbasic_frag},lambert:{uniforms:Bn.merge([qe.common,qe.specularmap,qe.envmap,qe.aomap,qe.lightmap,qe.emissivemap,qe.fog,qe.lights,{emissive:{value:new P(0)}}]),vertexShader:bi.meshlambert_vert,fragmentShader:bi.meshlambert_frag},phong:{uniforms:Bn.merge([qe.common,qe.specularmap,qe.envmap,qe.aomap,qe.lightmap,qe.emissivemap,qe.bumpmap,qe.normalmap,qe.displacementmap,qe.gradientmap,qe.fog,qe.lights,{emissive:{value:new P(0)},specular:{value:new P(1118481)},shininess:{value:30}}]),vertexShader:bi.meshphong_vert,fragmentShader:bi.meshphong_frag},standard:{uniforms:Bn.merge([qe.common,qe.envmap,qe.aomap,qe.lightmap,qe.emissivemap,qe.bumpmap,qe.normalmap,qe.displacementmap,qe.roughnessmap,qe.metalnessmap,qe.fog,qe.lights,{emissive:{value:new P(0)},roughness:{value:.5},metalness:{value:.5},envMapIntensity:{value:1}}]),vertexShader:bi.meshphysical_vert,fragmentShader:bi.meshphysical_frag},matcap:{uniforms:Bn.merge([qe.common,qe.bumpmap,qe.normalmap,qe.displacementmap,qe.fog,{matcap:{value:null}}]),vertexShader:bi.meshmatcap_vert,fragmentShader:bi.meshmatcap_frag},points:{uniforms:Bn.merge([qe.points,qe.fog]),vertexShader:bi.points_vert,fragmentShader:bi.points_frag},dashed:{uniforms:Bn.merge([qe.common,qe.fog,{scale:{value:1},dashSize:{value:1},totalSize:{value:2}}]),vertexShader:bi.linedashed_vert,fragmentShader:bi.linedashed_frag},depth:{uniforms:Bn.merge([qe.common,qe.displacementmap]),vertexShader:bi.depth_vert,fragmentShader:bi.depth_frag},normal:{uniforms:Bn.merge([qe.common,qe.bumpmap,qe.normalmap,qe.displacementmap,{opacity:{value:1}}]),vertexShader:bi.normal_vert,fragmentShader:bi.normal_frag},sprite:{uniforms:Bn.merge([qe.sprite,qe.fog]),vertexShader:bi.sprite_vert,fragmentShader:bi.sprite_frag},background:{uniforms:{uvTransform:{value:new m},t2D:{value:null}},vertexShader:bi.background_vert,fragmentShader:bi.background_frag},cube:{uniforms:{tCube:{value:null},tFlip:{value:-1},opacity:{value:1}},vertexShader:bi.cube_vert,fragmentShader:bi.cube_frag},equirect:{uniforms:{tEquirect:{value:null}},vertexShader:bi.equirect_vert,fragmentShader:bi.equirect_frag},distanceRGBA:{uniforms:Bn.merge([qe.common,qe.displacementmap,{referencePosition:{value:new u},nearDistance:{value:1},farDistance:{value:1e3}}]),vertexShader:bi.distanceRGBA_vert,fragmentShader:bi.distanceRGBA_frag},shadow:{uniforms:Bn.merge([qe.lights,qe.fog,{color:{value:new P(0)},opacity:{value:1}}]),vertexShader:bi.shadow_vert,fragmentShader:bi.shadow_frag}};xs.physical={uniforms:Bn.merge([xs.standard.uniforms,{clearCoat:{value:0},clearCoatRoughness:{value:0}}]),vertexShader:bi.meshphysical_vert,fragmentShader:bi.meshphysical_frag},Object.assign(R.prototype,{clone:function(){return new this.constructor().copy(this)},copy:function(t){this.a=t.a,this.b=t.b,this.c=t.c,this.normal.copy(t.normal),this.color.copy(t.color),this.materialIndex=t.materialIndex;for(var e=0,i=t.vertexNormals.length;e<i;e++)this.vertexNormals[e]=t.vertexNormals[e].clone();for(e=0,i=t.vertexColors.length;e<i;e++)this.vertexColors[e]=t.vertexColors[e].clone();return this}}),b.RotationOrders="XYZ YZX ZXY XZY YXZ ZYX".split(" "),b.DefaultOrder="XYZ",Object.defineProperties(b.prototype,{x:{get:function(){return this._x},set:function(t){this._x=t,this.onChangeCallback()}},y:{get:function(){return this._y},set:function(t){this._y=t,this.onChangeCallback()}},z:{get:function(){return this._z},set:function(t){this._z=t,this.onChangeCallback()}},order:{get:function(){return this._order},set:function(t){this._order=t,this.onChangeCallback()}}}),Object.assign(b.prototype,{isEuler:!0,set:function(t,e,i,n){return this._x=t,this._y=e,this._z=i,this._order=n||this._order,this.onChangeCallback(),this},clone:function(){return new this.constructor(this._x,this._y,this._z,this._order)},copy:function(t){return this._x=t._x,this._y=t._y,this._z=t._z,this._order=t._order,this.onChangeCallback(),this},setFromRotationMatrix:function(t,e,i){var n=pi.clamp,s=t.elements;t=s[0];var a=s[4],f=s[8],p=s[1],v=s[5],w=s[9],C=s[2],L=s[6];return s=s[10],e=e||this._order,e==="XYZ"?(this._y=Math.asin(n(f,-1,1)),.99999>Math.abs(f)?(this._x=Math.atan2(-w,s),this._z=Math.atan2(-a,t)):(this._x=Math.atan2(L,v),this._z=0)):e==="YXZ"?(this._x=Math.asin(-n(w,-1,1)),.99999>Math.abs(w)?(this._y=Math.atan2(f,s),this._z=Math.atan2(p,v)):(this._y=Math.atan2(-C,t),this._z=0)):e==="ZXY"?(this._x=Math.asin(n(L,-1,1)),.99999>Math.abs(L)?(this._y=Math.atan2(-C,s),this._z=Math.atan2(-a,v)):(this._y=0,this._z=Math.atan2(p,t))):e==="ZYX"?(this._y=Math.asin(-n(C,-1,1)),.99999>Math.abs(C)?(this._x=Math.atan2(L,s),this._z=Math.atan2(p,t)):(this._x=0,this._z=Math.atan2(-a,v))):e==="YZX"?(this._z=Math.asin(n(p,-1,1)),.99999>Math.abs(p)?(this._x=Math.atan2(-w,v),this._y=Math.atan2(-C,t)):(this._x=0,this._y=Math.atan2(f,s))):e==="XZY"?(this._z=Math.asin(-n(a,-1,1)),.99999>Math.abs(a)?(this._x=Math.atan2(L,v),this._y=Math.atan2(f,t)):(this._x=Math.atan2(-w,s),this._y=0)):console.warn("THREE.Euler: .setFromRotationMatrix() given unsupported order: "+e),this._order=e,i!==!1&&this.onChangeCallback(),this},setFromQuaternion:function(){var t=new c;return function(e,i,n){return t.makeRotationFromQuaternion(e),this.setFromRotationMatrix(t,i,n)}}(),setFromVector3:function(t,e){return this.set(t.x,t.y,t.z,e||this._order)},reorder:function(){var t=new d;return function(e){return t.setFromEuler(this),this.setFromQuaternion(t,e)}}(),equals:function(t){return t._x===this._x&&t._y===this._y&&t._z===this._z&&t._order===this._order},fromArray:function(t){return this._x=t[0],this._y=t[1],this._z=t[2],t[3]!==void 0&&(this._order=t[3]),this.onChangeCallback(),this},toArray:function(t,e){return t===void 0&&(t=[]),e===void 0&&(e=0),t[e]=this._x,t[e+1]=this._y,t[e+2]=this._z,t[e+3]=this._order,t},toVector3:function(t){return t?t.set(this._x,this._y,this._z):new u(this._x,this._y,this._z)},onChange:function(t){return this.onChangeCallback=t,this},onChangeCallback:function(){}}),Object.assign(U.prototype,{set:function(t){this.mask=1<<t|0},enable:function(t){this.mask=this.mask|1<<t|0},toggle:function(t){this.mask^=1<<t|0},disable:function(t){this.mask&=~(1<<t|0)},test:function(t){return(this.mask&t.mask)!==0}});var Vc=0;F.DefaultUp=new u(0,1,0),F.DefaultMatrixAutoUpdate=!0,F.prototype=Object.assign(Object.create(l.prototype),{constructor:F,isObject3D:!0,onBeforeRender:function(){},onAfterRender:function(){},applyMatrix:function(t){this.matrix.multiplyMatrices(t,this.matrix),this.matrix.decompose(this.position,this.quaternion,this.scale)},applyQuaternion:function(t){return this.quaternion.premultiply(t),this},setRotationFromAxisAngle:function(t,e){this.quaternion.setFromAxisAngle(t,e)},setRotationFromEuler:function(t){this.quaternion.setFromEuler(t,!0)},setRotationFromMatrix:function(t){this.quaternion.setFromRotationMatrix(t)},setRotationFromQuaternion:function(t){this.quaternion.copy(t)},rotateOnAxis:function(){var t=new d;return function(e,i){return t.setFromAxisAngle(e,i),this.quaternion.multiply(t),this}}(),rotateOnWorldAxis:function(){var t=new d;return function(e,i){return t.setFromAxisAngle(e,i),this.quaternion.premultiply(t),this}}(),rotateX:function(){var t=new u(1,0,0);return function(e){return this.rotateOnAxis(t,e)}}(),rotateY:function(){var t=new u(0,1,0);return function(e){return this.rotateOnAxis(t,e)}}(),rotateZ:function(){var t=new u(0,0,1);return function(e){return this.rotateOnAxis(t,e)}}(),translateOnAxis:function(){var t=new u;return function(e,i){return t.copy(e).applyQuaternion(this.quaternion),this.position.add(t.multiplyScalar(i)),this}}(),translateX:function(){var t=new u(1,0,0);return function(e){return this.translateOnAxis(t,e)}}(),translateY:function(){var t=new u(0,1,0);return function(e){return this.translateOnAxis(t,e)}}(),translateZ:function(){var t=new u(0,0,1);return function(e){return this.translateOnAxis(t,e)}}(),localToWorld:function(t){return t.applyMatrix4(this.matrixWorld)},worldToLocal:function(){var t=new c;return function(e){return e.applyMatrix4(t.getInverse(this.matrixWorld))}}(),lookAt:function(){var t=new d,e=new c,i=new u,n=new u;return function(s,a,f){s.isVector3?i.copy(s):i.set(s,a,f),s=this.parent,this.updateWorldMatrix(!0,!1),n.setFromMatrixPosition(this.matrixWorld),this.isCamera?e.lookAt(n,i,this.up):e.lookAt(i,n,this.up),this.quaternion.setFromRotationMatrix(e),s&&(e.extractRotation(s.matrixWorld),t.setFromRotationMatrix(e),this.quaternion.premultiply(t.inverse()))}}(),add:function(t){if(1<arguments.length){for(var e=0;e<arguments.length;e++)this.add(arguments[e]);return this}return t===this?(console.error("THREE.Object3D.add: object can't be added as a child of itself.",t),this):(t&&t.isObject3D?(t.parent!==null&&t.parent.remove(t),t.parent=this,t.dispatchEvent({type:"added"}),this.children.push(t)):console.error("THREE.Object3D.add: object not an instance of THREE.Object3D.",t),this)},remove:function(t){if(1<arguments.length){for(var e=0;e<arguments.length;e++)this.remove(arguments[e]);return this}return e=this.children.indexOf(t),e!==-1&&(t.parent=null,t.dispatchEvent({type:"removed"}),this.children.splice(e,1)),this},getObjectById:function(t){return this.getObjectByProperty("id",t)},getObjectByName:function(t){return this.getObjectByProperty("name",t)},getObjectByProperty:function(t,e){if(this[t]===e)return this;for(var i=0,n=this.children.length;i<n;i++){var s=this.children[i].getObjectByProperty(t,e);if(s!==void 0)return s}},getWorldPosition:function(t){return t===void 0&&(console.warn("THREE.Object3D: .getWorldPosition() target is now required"),t=new u),this.updateMatrixWorld(!0),t.setFromMatrixPosition(this.matrixWorld)},getWorldQuaternion:function(){var t=new u,e=new u;return function(i){return i===void 0&&(console.warn("THREE.Object3D: .getWorldQuaternion() target is now required"),i=new d),this.updateMatrixWorld(!0),this.matrixWorld.decompose(t,i,e),i}}(),getWorldScale:function(){var t=new u,e=new d;return function(i){return i===void 0&&(console.warn("THREE.Object3D: .getWorldScale() target is now required"),i=new u),this.updateMatrixWorld(!0),this.matrixWorld.decompose(t,e,i),i}}(),getWorldDirection:function(t){t===void 0&&(console.warn("THREE.Object3D: .getWorldDirection() target is now required"),t=new u),this.updateMatrixWorld(!0);var e=this.matrixWorld.elements;return t.set(e[8],e[9],e[10]).normalize()},raycast:function(){},traverse:function(t){t(this);for(var e=this.children,i=0,n=e.length;i<n;i++)e[i].traverse(t)},traverseVisible:function(t){if(this.visible!==!1){t(this);for(var e=this.children,i=0,n=e.length;i<n;i++)e[i].traverseVisible(t)}},traverseAncestors:function(t){var e=this.parent;e!==null&&(t(e),e.traverseAncestors(t))},updateMatrix:function(){this.matrix.compose(this.position,this.quaternion,this.scale),this.matrixWorldNeedsUpdate=!0},updateMatrixWorld:function(t){this.matrixAutoUpdate&&this.updateMatrix(),(this.matrixWorldNeedsUpdate||t)&&(this.parent===null?this.matrixWorld.copy(this.matrix):this.matrixWorld.multiplyMatrices(this.parent.matrixWorld,this.matrix),this.matrixWorldNeedsUpdate=!1,t=!0);for(var e=this.children,i=0,n=e.length;i<n;i++)e[i].updateMatrixWorld(t)},updateWorldMatrix:function(t,e){var i=this.parent;if(t===!0&&i!==null&&i.updateWorldMatrix(!0,!1),this.matrixAutoUpdate&&this.updateMatrix(),this.parent===null?this.matrixWorld.copy(this.matrix):this.matrixWorld.multiplyMatrices(this.parent.matrixWorld,this.matrix),e===!0)for(t=this.children,e=0,i=t.length;e<i;e++)t[e].updateWorldMatrix(!1,!0)},toJSON:function(t){function e(C,L){return C[L.uuid]===void 0&&(C[L.uuid]=L.toJSON(t)),L.uuid}function i(C){var L=[],B;for(B in C){var H=C[B];delete H.metadata,L.push(H)}return L}var n=t===void 0||typeof t=="string",s={};n&&(t={geometries:{},materials:{},textures:{},images:{},shapes:{}},s.metadata={version:4.5,type:"Object",generator:"Object3D.toJSON"});var a={};if(a.uuid=this.uuid,a.type=this.type,this.name!==""&&(a.name=this.name),this.castShadow===!0&&(a.castShadow=!0),this.receiveShadow===!0&&(a.receiveShadow=!0),this.visible===!1&&(a.visible=!1),this.frustumCulled===!1&&(a.frustumCulled=!1),this.renderOrder!==0&&(a.renderOrder=this.renderOrder),JSON.stringify(this.userData)!=="{}"&&(a.userData=this.userData),a.layers=this.layers.mask,a.matrix=this.matrix.toArray(),this.matrixAutoUpdate===!1&&(a.matrixAutoUpdate=!1),this.isMesh||this.isLine||this.isPoints){a.geometry=e(t.geometries,this.geometry);var f=this.geometry.parameters;if(f!==void 0&&f.shapes!==void 0)if(f=f.shapes,Array.isArray(f))for(var p=0,v=f.length;p<v;p++)e(t.shapes,f[p]);else e(t.shapes,f)}if(this.material!==void 0)if(Array.isArray(this.material)){for(f=[],p=0,v=this.material.length;p<v;p++)f.push(e(t.materials,this.material[p]));a.material=f}else a.material=e(t.materials,this.material);if(0<this.children.length)for(a.children=[],p=0;p<this.children.length;p++)a.children.push(this.children[p].toJSON(t).object);if(n){n=i(t.geometries),p=i(t.materials),v=i(t.textures);var w=i(t.images);f=i(t.shapes),0<n.length&&(s.geometries=n),0<p.length&&(s.materials=p),0<v.length&&(s.textures=v),0<w.length&&(s.images=w),0<f.length&&(s.shapes=f)}return s.object=a,s},clone:function(t){return new this.constructor().copy(this,t)},copy:function(t,e){if(e===void 0&&(e=!0),this.name=t.name,this.up.copy(t.up),this.position.copy(t.position),this.quaternion.copy(t.quaternion),this.scale.copy(t.scale),this.matrix.copy(t.matrix),this.matrixWorld.copy(t.matrixWorld),this.matrixAutoUpdate=t.matrixAutoUpdate,this.matrixWorldNeedsUpdate=t.matrixWorldNeedsUpdate,this.layers.mask=t.layers.mask,this.visible=t.visible,this.castShadow=t.castShadow,this.receiveShadow=t.receiveShadow,this.frustumCulled=t.frustumCulled,this.renderOrder=t.renderOrder,this.userData=JSON.parse(JSON.stringify(t.userData)),e===!0)for(e=0;e<t.children.length;e++)this.add(t.children[e].clone());return this}});var Wc=0;j.prototype=Object.assign(Object.create(l.prototype),{constructor:j,isGeometry:!0,applyMatrix:function(t){for(var e=new m().getNormalMatrix(t),i=0,n=this.vertices.length;i<n;i++)this.vertices[i].applyMatrix4(t);for(i=0,n=this.faces.length;i<n;i++){t=this.faces[i],t.normal.applyMatrix3(e).normalize();for(var s=0,a=t.vertexNormals.length;s<a;s++)t.vertexNormals[s].applyMatrix3(e).normalize()}return this.boundingBox!==null&&this.computeBoundingBox(),this.boundingSphere!==null&&this.computeBoundingSphere(),this.normalsNeedUpdate=this.verticesNeedUpdate=!0,this},rotateX:function(){var t=new c;return function(e){return t.makeRotationX(e),this.applyMatrix(t),this}}(),rotateY:function(){var t=new c;return function(e){return t.makeRotationY(e),this.applyMatrix(t),this}}(),rotateZ:function(){var t=new c;return function(e){return t.makeRotationZ(e),this.applyMatrix(t),this}}(),translate:function(){var t=new c;return function(e,i,n){return t.makeTranslation(e,i,n),this.applyMatrix(t),this}}(),scale:function(){var t=new c;return function(e,i,n){return t.makeScale(e,i,n),this.applyMatrix(t),this}}(),lookAt:function(){var t=new F;return function(e){t.lookAt(e),t.updateMatrix(),this.applyMatrix(t.matrix)}}(),fromBufferGeometry:function(t){function e(q,K,rt,xt){var gt=p===void 0?[]:[i.colors[q].clone(),i.colors[K].clone(),i.colors[rt].clone()],At=f===void 0?[]:[new u().fromArray(f,3*q),new u().fromArray(f,3*K),new u().fromArray(f,3*rt)];xt=new R(q,K,rt,At,gt,xt),i.faces.push(xt),v!==void 0&&i.faceVertexUvs[0].push([new o().fromArray(v,2*q),new o().fromArray(v,2*K),new o().fromArray(v,2*rt)]),w!==void 0&&i.faceVertexUvs[1].push([new o().fromArray(w,2*q),new o().fromArray(w,2*K),new o().fromArray(w,2*rt)])}var i=this,n=t.index!==null?t.index.array:void 0,s=t.attributes,a=s.position.array,f=s.normal!==void 0?s.normal.array:void 0,p=s.color!==void 0?s.color.array:void 0,v=s.uv!==void 0?s.uv.array:void 0,w=s.uv2!==void 0?s.uv2.array:void 0;w!==void 0&&(this.faceVertexUvs[1]=[]);for(var C=s=0;s<a.length;s+=3,C+=2)i.vertices.push(new u().fromArray(a,s)),p!==void 0&&i.colors.push(new P().fromArray(p,s));var L=t.groups;if(0<L.length)for(s=0;s<L.length;s++){a=L[s];var B=a.start,H=a.count;for(C=B,B+=H;C<B;C+=3)n!==void 0?e(n[C],n[C+1],n[C+2],a.materialIndex):e(C,C+1,C+2,a.materialIndex)}else if(n!==void 0)for(s=0;s<n.length;s+=3)e(n[s],n[s+1],n[s+2]);else for(s=0;s<a.length/3;s+=3)e(s,s+1,s+2);return this.computeFaceNormals(),t.boundingBox!==null&&(this.boundingBox=t.boundingBox.clone()),t.boundingSphere!==null&&(this.boundingSphere=t.boundingSphere.clone()),this},center:function(){var t=new u;return function(){return this.computeBoundingBox(),this.boundingBox.getCenter(t).negate(),this.translate(t.x,t.y,t.z),this}}(),normalize:function(){this.computeBoundingSphere();var t=this.boundingSphere.center,e=this.boundingSphere.radius;e=e===0?1:1/e;var i=new c;return i.set(e,0,0,-e*t.x,0,e,0,-e*t.y,0,0,e,-e*t.z,0,0,0,1),this.applyMatrix(i),this},computeFaceNormals:function(){for(var t=new u,e=new u,i=0,n=this.faces.length;i<n;i++){var s=this.faces[i],a=this.vertices[s.a],f=this.vertices[s.b];t.subVectors(this.vertices[s.c],f),e.subVectors(a,f),t.cross(e),t.normalize(),s.normal.copy(t)}},computeVertexNormals:function(t){t===void 0&&(t=!0);var e,i=Array(this.vertices.length),n=0;for(e=this.vertices.length;n<e;n++)i[n]=new u;if(t){var s=new u,a=new u;for(t=0,n=this.faces.length;t<n;t++){e=this.faces[t];var f=this.vertices[e.a],p=this.vertices[e.b],v=this.vertices[e.c];s.subVectors(v,p),a.subVectors(f,p),s.cross(a),i[e.a].add(s),i[e.b].add(s),i[e.c].add(s)}}else for(this.computeFaceNormals(),t=0,n=this.faces.length;t<n;t++)e=this.faces[t],i[e.a].add(e.normal),i[e.b].add(e.normal),i[e.c].add(e.normal);for(n=0,e=this.vertices.length;n<e;n++)i[n].normalize();for(t=0,n=this.faces.length;t<n;t++)e=this.faces[t],f=e.vertexNormals,f.length===3?(f[0].copy(i[e.a]),f[1].copy(i[e.b]),f[2].copy(i[e.c])):(f[0]=i[e.a].clone(),f[1]=i[e.b].clone(),f[2]=i[e.c].clone());0<this.faces.length&&(this.normalsNeedUpdate=!0)},computeFlatVertexNormals:function(){var t;this.computeFaceNormals();var e=0;for(t=this.faces.length;e<t;e++){var i=this.faces[e],n=i.vertexNormals;n.length===3?(n[0].copy(i.normal),n[1].copy(i.normal),n[2].copy(i.normal)):(n[0]=i.normal.clone(),n[1]=i.normal.clone(),n[2]=i.normal.clone())}0<this.faces.length&&(this.normalsNeedUpdate=!0)},computeMorphNormals:function(){var t,e,i=0;for(e=this.faces.length;i<e;i++){var n=this.faces[i];n.__originalFaceNormal?n.__originalFaceNormal.copy(n.normal):n.__originalFaceNormal=n.normal.clone(),n.__originalVertexNormals||(n.__originalVertexNormals=[]);var s=0;for(t=n.vertexNormals.length;s<t;s++)n.__originalVertexNormals[s]?n.__originalVertexNormals[s].copy(n.vertexNormals[s]):n.__originalVertexNormals[s]=n.vertexNormals[s].clone()}var a=new j;for(a.faces=this.faces,s=0,t=this.morphTargets.length;s<t;s++){if(!this.morphNormals[s]){this.morphNormals[s]={},this.morphNormals[s].faceNormals=[],this.morphNormals[s].vertexNormals=[],n=this.morphNormals[s].faceNormals;var f=this.morphNormals[s].vertexNormals;for(i=0,e=this.faces.length;i<e;i++){var p=new u,v={a:new u,b:new u,c:new u};n.push(p),f.push(v)}}for(f=this.morphNormals[s],a.vertices=this.morphTargets[s].vertices,a.computeFaceNormals(),a.computeVertexNormals(),i=0,e=this.faces.length;i<e;i++)n=this.faces[i],p=f.faceNormals[i],v=f.vertexNormals[i],p.copy(n.normal),v.a.copy(n.vertexNormals[0]),v.b.copy(n.vertexNormals[1]),v.c.copy(n.vertexNormals[2])}for(i=0,e=this.faces.length;i<e;i++)n=this.faces[i],n.normal=n.__originalFaceNormal,n.vertexNormals=n.__originalVertexNormals},computeBoundingBox:function(){this.boundingBox===null&&(this.boundingBox=new k),this.boundingBox.setFromPoints(this.vertices)},computeBoundingSphere:function(){this.boundingSphere===null&&(this.boundingSphere=new D),this.boundingSphere.setFromPoints(this.vertices)},merge:function(t,e,i){if(t&&t.isGeometry){var n,s=this.vertices.length,a=this.vertices,f=t.vertices,p=this.faces,v=t.faces,w=this.faceVertexUvs[0],C=t.faceVertexUvs[0],L=this.colors,B=t.colors;i===void 0&&(i=0),e!==void 0&&(n=new m().getNormalMatrix(e)),t=0;for(var H=f.length;t<H;t++){var q=f[t].clone();e!==void 0&&q.applyMatrix4(e),a.push(q)}for(t=0,H=B.length;t<H;t++)L.push(B[t].clone());for(t=0,H=v.length;t<H;t++){f=v[t];var K=f.vertexNormals;for(B=f.vertexColors,L=new R(f.a+s,f.b+s,f.c+s),L.normal.copy(f.normal),n!==void 0&&L.normal.applyMatrix3(n).normalize(),e=0,a=K.length;e<a;e++)q=K[e].clone(),n!==void 0&&q.applyMatrix3(n).normalize(),L.vertexNormals.push(q);for(L.color.copy(f.color),e=0,a=B.length;e<a;e++)q=B[e],L.vertexColors.push(q.clone());L.materialIndex=f.materialIndex+i,p.push(L)}for(t=0,H=C.length;t<H;t++)if(i=C[t],n=[],i!==void 0){for(e=0,a=i.length;e<a;e++)n.push(i[e].clone());w.push(n)}}else console.error("THREE.Geometry.merge(): geometry not an instance of THREE.Geometry.",t)},mergeMesh:function(t){t&&t.isMesh?(t.matrixAutoUpdate&&t.updateMatrix(),this.merge(t.geometry,t.matrix)):console.error("THREE.Geometry.mergeMesh(): mesh not an instance of THREE.Mesh.",t)},mergeVertices:function(){var t={},e=[],i=[],n=Math.pow(10,4),s,a=0;for(s=this.vertices.length;a<s;a++){var f=this.vertices[a];f=Math.round(f.x*n)+"_"+Math.round(f.y*n)+"_"+Math.round(f.z*n),t[f]===void 0?(t[f]=a,e.push(this.vertices[a]),i[a]=e.length-1):i[a]=i[t[f]]}for(t=[],a=0,s=this.faces.length;a<s;a++)for(n=this.faces[a],n.a=i[n.a],n.b=i[n.b],n.c=i[n.c],n=[n.a,n.b,n.c],f=0;3>f;f++)if(n[f]===n[(f+1)%3]){t.push(a);break}for(a=t.length-1;0<=a;a--)for(n=t[a],this.faces.splice(n,1),i=0,s=this.faceVertexUvs.length;i<s;i++)this.faceVertexUvs[i].splice(n,1);return a=this.vertices.length-e.length,this.vertices=e,a},setFromPoints:function(t){this.vertices=[];for(var e=0,i=t.length;e<i;e++){var n=t[e];this.vertices.push(new u(n.x,n.y,n.z||0))}return this},sortFacesByMaterialIndex:function(){for(var t=this.faces,e=t.length,i=0;i<e;i++)t[i]._id=i;t.sort(function(v,w){return v.materialIndex-w.materialIndex});var n=this.faceVertexUvs[0],s=this.faceVertexUvs[1],a,f;for(n&&n.length===e&&(a=[]),s&&s.length===e&&(f=[]),i=0;i<e;i++){var p=t[i]._id;a&&a.push(n[p]),f&&f.push(s[p])}a&&(this.faceVertexUvs[0]=a),f&&(this.faceVertexUvs[1]=f)},toJSON:function(){function t(Vt,Z,st){return st?Vt|1<<Z:Vt&~(1<<Z)}function e(Vt){var Z=Vt.x.toString()+Vt.y.toString()+Vt.z.toString();return w[Z]!==void 0||(w[Z]=v.length/3,v.push(Vt.x,Vt.y,Vt.z)),w[Z]}function i(Vt){var Z=Vt.r.toString()+Vt.g.toString()+Vt.b.toString();return L[Z]!==void 0||(L[Z]=C.length,C.push(Vt.getHex())),L[Z]}function n(Vt){var Z=Vt.x.toString()+Vt.y.toString();return H[Z]!==void 0||(H[Z]=B.length/2,B.push(Vt.x,Vt.y)),H[Z]}var s={metadata:{version:4.5,type:"Geometry",generator:"Geometry.toJSON"}};if(s.uuid=this.uuid,s.type=this.type,this.name!==""&&(s.name=this.name),this.parameters!==void 0){var a=this.parameters,f;for(f in a)a[f]!==void 0&&(s[f]=a[f]);return s}for(a=[],f=0;f<this.vertices.length;f++){var p=this.vertices[f];a.push(p.x,p.y,p.z)}p=[];var v=[],w={},C=[],L={},B=[],H={};for(f=0;f<this.faces.length;f++){var q=this.faces[f],K=this.faceVertexUvs[0][f]!==void 0,rt=0<q.normal.length(),xt=0<q.vertexNormals.length,gt=q.color.r!==1||q.color.g!==1||q.color.b!==1,At=0<q.vertexColors.length,wt=0;wt=t(wt,0,0),wt=t(wt,1,!0),wt=t(wt,2,!1),wt=t(wt,3,K),wt=t(wt,4,rt),wt=t(wt,5,xt),wt=t(wt,6,gt),wt=t(wt,7,At),p.push(wt),p.push(q.a,q.b,q.c),p.push(q.materialIndex),K&&(K=this.faceVertexUvs[0][f],p.push(n(K[0]),n(K[1]),n(K[2]))),rt&&p.push(e(q.normal)),xt&&(rt=q.vertexNormals,p.push(e(rt[0]),e(rt[1]),e(rt[2]))),gt&&p.push(i(q.color)),At&&(q=q.vertexColors,p.push(i(q[0]),i(q[1]),i(q[2])))}return s.data={},s.data.vertices=a,s.data.normals=v,0<C.length&&(s.data.colors=C),0<B.length&&(s.data.uvs=[B]),s.data.faces=p,s},clone:function(){return new j().copy(this)},copy:function(t){var e,i,n;this.vertices=[],this.colors=[],this.faces=[],this.faceVertexUvs=[[]],this.morphTargets=[],this.morphNormals=[],this.skinWeights=[],this.skinIndices=[],this.lineDistances=[],this.boundingSphere=this.boundingBox=null,this.name=t.name;var s=t.vertices,a=0;for(e=s.length;a<e;a++)this.vertices.push(s[a].clone());for(s=t.colors,a=0,e=s.length;a<e;a++)this.colors.push(s[a].clone());for(s=t.faces,a=0,e=s.length;a<e;a++)this.faces.push(s[a].clone());for(a=0,e=t.faceVertexUvs.length;a<e;a++){var f=t.faceVertexUvs[a];for(this.faceVertexUvs[a]===void 0&&(this.faceVertexUvs[a]=[]),s=0,i=f.length;s<i;s++){var p=f[s],v=[],w=0;for(n=p.length;w<n;w++)v.push(p[w].clone());this.faceVertexUvs[a].push(v)}}for(w=t.morphTargets,a=0,e=w.length;a<e;a++){if(n={},n.name=w[a].name,w[a].vertices!==void 0)for(n.vertices=[],s=0,i=w[a].vertices.length;s<i;s++)n.vertices.push(w[a].vertices[s].clone());if(w[a].normals!==void 0)for(n.normals=[],s=0,i=w[a].normals.length;s<i;s++)n.normals.push(w[a].normals[s].clone());this.morphTargets.push(n)}for(w=t.morphNormals,a=0,e=w.length;a<e;a++){if(n={},w[a].vertexNormals!==void 0)for(n.vertexNormals=[],s=0,i=w[a].vertexNormals.length;s<i;s++)f=w[a].vertexNormals[s],p={},p.a=f.a.clone(),p.b=f.b.clone(),p.c=f.c.clone(),n.vertexNormals.push(p);if(w[a].faceNormals!==void 0)for(n.faceNormals=[],s=0,i=w[a].faceNormals.length;s<i;s++)n.faceNormals.push(w[a].faceNormals[s].clone());this.morphNormals.push(n)}for(s=t.skinWeights,a=0,e=s.length;a<e;a++)this.skinWeights.push(s[a].clone());for(s=t.skinIndices,a=0,e=s.length;a<e;a++)this.skinIndices.push(s[a].clone());for(s=t.lineDistances,a=0,e=s.length;a<e;a++)this.lineDistances.push(s[a]);return a=t.boundingBox,a!==null&&(this.boundingBox=a.clone()),a=t.boundingSphere,a!==null&&(this.boundingSphere=a.clone()),this.elementsNeedUpdate=t.elementsNeedUpdate,this.verticesNeedUpdate=t.verticesNeedUpdate,this.uvsNeedUpdate=t.uvsNeedUpdate,this.normalsNeedUpdate=t.normalsNeedUpdate,this.colorsNeedUpdate=t.colorsNeedUpdate,this.lineDistancesNeedUpdate=t.lineDistancesNeedUpdate,this.groupsNeedUpdate=t.groupsNeedUpdate,this},dispose:function(){this.dispatchEvent({type:"dispose"})}}),Object.defineProperty(J.prototype,"needsUpdate",{set:function(t){t===!0&&this.version++}}),Object.assign(J.prototype,{isBufferAttribute:!0,onUploadCallback:function(){},setArray:function(t){if(Array.isArray(t))throw new TypeError("THREE.BufferAttribute: array should be a Typed Array.");return this.count=t!==void 0?t.length/this.itemSize:0,this.array=t,this},setDynamic:function(t){return this.dynamic=t,this},copy:function(t){return this.name=t.name,this.array=new t.array.constructor(t.array),this.itemSize=t.itemSize,this.count=t.count,this.normalized=t.normalized,this.dynamic=t.dynamic,this},copyAt:function(t,e,i){t*=this.itemSize,i*=e.itemSize;for(var n=0,s=this.itemSize;n<s;n++)this.array[t+n]=e.array[i+n];return this},copyArray:function(t){return this.array.set(t),this},copyColorsArray:function(t){for(var e=this.array,i=0,n=0,s=t.length;n<s;n++){var a=t[n];a===void 0&&(console.warn("THREE.BufferAttribute.copyColorsArray(): color is undefined",n),a=new P),e[i++]=a.r,e[i++]=a.g,e[i++]=a.b}return this},copyVector2sArray:function(t){for(var e=this.array,i=0,n=0,s=t.length;n<s;n++){var a=t[n];a===void 0&&(console.warn("THREE.BufferAttribute.copyVector2sArray(): vector is undefined",n),a=new o),e[i++]=a.x,e[i++]=a.y}return this},copyVector3sArray:function(t){for(var e=this.array,i=0,n=0,s=t.length;n<s;n++){var a=t[n];a===void 0&&(console.warn("THREE.BufferAttribute.copyVector3sArray(): vector is undefined",n),a=new u),e[i++]=a.x,e[i++]=a.y,e[i++]=a.z}return this},copyVector4sArray:function(t){for(var e=this.array,i=0,n=0,s=t.length;n<s;n++){var a=t[n];a===void 0&&(console.warn("THREE.BufferAttribute.copyVector4sArray(): vector is undefined",n),a=new y),e[i++]=a.x,e[i++]=a.y,e[i++]=a.z,e[i++]=a.w}return this},set:function(t,e){return e===void 0&&(e=0),this.array.set(t,e),this},getX:function(t){return this.array[t*this.itemSize]},setX:function(t,e){return this.array[t*this.itemSize]=e,this},getY:function(t){return this.array[t*this.itemSize+1]},setY:function(t,e){return this.array[t*this.itemSize+1]=e,this},getZ:function(t){return this.array[t*this.itemSize+2]},setZ:function(t,e){return this.array[t*this.itemSize+2]=e,this},getW:function(t){return this.array[t*this.itemSize+3]},setW:function(t,e){return this.array[t*this.itemSize+3]=e,this},setXY:function(t,e,i){return t*=this.itemSize,this.array[t+0]=e,this.array[t+1]=i,this},setXYZ:function(t,e,i,n){return t*=this.itemSize,this.array[t+0]=e,this.array[t+1]=i,this.array[t+2]=n,this},setXYZW:function(t,e,i,n,s){return t*=this.itemSize,this.array[t+0]=e,this.array[t+1]=i,this.array[t+2]=n,this.array[t+3]=s,this},onUpload:function(t){return this.onUploadCallback=t,this},clone:function(){return new this.constructor(this.array,this.itemSize).copy(this)}}),$.prototype=Object.create(J.prototype),$.prototype.constructor=$,ct.prototype=Object.create(J.prototype),ct.prototype.constructor=ct,It.prototype=Object.create(J.prototype),It.prototype.constructor=It,et.prototype=Object.create(J.prototype),et.prototype.constructor=et,yt.prototype=Object.create(J.prototype),yt.prototype.constructor=yt,G.prototype=Object.create(J.prototype),G.prototype.constructor=G,Pt.prototype=Object.create(J.prototype),Pt.prototype.constructor=Pt,Et.prototype=Object.create(J.prototype),Et.prototype.constructor=Et,Ct.prototype=Object.create(J.prototype),Ct.prototype.constructor=Ct,Object.assign(fe.prototype,{computeGroups:function(t){var e=[],i=void 0;t=t.faces;for(var n=0;n<t.length;n++){var s=t[n];if(s.materialIndex!==i){i=s.materialIndex,a!==void 0&&(a.count=3*n-a.start,e.push(a));var a={start:3*n,materialIndex:i}}}a!==void 0&&(a.count=3*n-a.start,e.push(a)),this.groups=e},fromGeometry:function(t){var e=t.faces,i=t.vertices,n=t.faceVertexUvs,s=n[0]&&0<n[0].length,a=n[1]&&0<n[1].length,f=t.morphTargets,p=f.length;if(0<p){for(var v=[],w=0;w<p;w++)v[w]={name:f[w].name,data:[]};this.morphTargets.position=v}var C=t.morphNormals,L=C.length;if(0<L){var B=[];for(w=0;w<L;w++)B[w]={name:C[w].name,data:[]};this.morphTargets.normal=B}var H=t.skinIndices,q=t.skinWeights,K=H.length===i.length,rt=q.length===i.length;for(0<i.length&&e.length===0&&console.error("THREE.DirectGeometry: Faceless geometries are not supported."),w=0;w<e.length;w++){var xt=e[w];this.vertices.push(i[xt.a],i[xt.b],i[xt.c]);var gt=xt.vertexNormals;for(gt.length===3?this.normals.push(gt[0],gt[1],gt[2]):(gt=xt.normal,this.normals.push(gt,gt,gt)),gt=xt.vertexColors,gt.length===3?this.colors.push(gt[0],gt[1],gt[2]):(gt=xt.color,this.colors.push(gt,gt,gt)),s===!0&&(gt=n[0][w],gt!==void 0?this.uvs.push(gt[0],gt[1],gt[2]):(console.warn("THREE.DirectGeometry.fromGeometry(): Undefined vertexUv ",w),this.uvs.push(new o,new o,new o))),a===!0&&(gt=n[1][w],gt!==void 0?this.uvs2.push(gt[0],gt[1],gt[2]):(console.warn("THREE.DirectGeometry.fromGeometry(): Undefined vertexUv2 ",w),this.uvs2.push(new o,new o,new o))),gt=0;gt<p;gt++){var At=f[gt].vertices;v[gt].data.push(At[xt.a],At[xt.b],At[xt.c])}for(gt=0;gt<L;gt++)At=C[gt].vertexNormals[w],B[gt].data.push(At.a,At.b,At.c);K&&this.skinIndices.push(H[xt.a],H[xt.b],H[xt.c]),rt&&this.skinWeights.push(q[xt.a],q[xt.b],q[xt.c])}return this.computeGroups(t),this.verticesNeedUpdate=t.verticesNeedUpdate,this.normalsNeedUpdate=t.normalsNeedUpdate,this.colorsNeedUpdate=t.colorsNeedUpdate,this.uvsNeedUpdate=t.uvsNeedUpdate,this.groupsNeedUpdate=t.groupsNeedUpdate,this}});var jc=1;Ft.prototype=Object.assign(Object.create(l.prototype),{constructor:Ft,isBufferGeometry:!0,getIndex:function(){return this.index},setIndex:function(t){Array.isArray(t)?this.index=new(65535<re(t)?Pt:yt)(t,1):this.index=t},addAttribute:function(t,e,i){return e&&e.isBufferAttribute||e&&e.isInterleavedBufferAttribute?t==="index"?(console.warn("THREE.BufferGeometry.addAttribute: Use .setIndex() for index attribute."),this.setIndex(e),this):(this.attributes[t]=e,this):(console.warn("THREE.BufferGeometry: .addAttribute() now expects ( name, attribute )."),this.addAttribute(t,new J(e,i)))},getAttribute:function(t){return this.attributes[t]},removeAttribute:function(t){return delete this.attributes[t],this},addGroup:function(t,e,i){this.groups.push({start:t,count:e,materialIndex:i!==void 0?i:0})},clearGroups:function(){this.groups=[]},setDrawRange:function(t,e){this.drawRange.start=t,this.drawRange.count=e},applyMatrix:function(t){var e=this.attributes.position;return e!==void 0&&(t.applyToBufferAttribute(e),e.needsUpdate=!0),e=this.attributes.normal,e!==void 0&&(new m().getNormalMatrix(t).applyToBufferAttribute(e),e.needsUpdate=!0),this.boundingBox!==null&&this.computeBoundingBox(),this.boundingSphere!==null&&this.computeBoundingSphere(),this},rotateX:function(){var t=new c;return function(e){return t.makeRotationX(e),this.applyMatrix(t),this}}(),rotateY:function(){var t=new c;return function(e){return t.makeRotationY(e),this.applyMatrix(t),this}}(),rotateZ:function(){var t=new c;return function(e){return t.makeRotationZ(e),this.applyMatrix(t),this}}(),translate:function(){var t=new c;return function(e,i,n){return t.makeTranslation(e,i,n),this.applyMatrix(t),this}}(),scale:function(){var t=new c;return function(e,i,n){return t.makeScale(e,i,n),this.applyMatrix(t),this}}(),lookAt:function(){var t=new F;return function(e){t.lookAt(e),t.updateMatrix(),this.applyMatrix(t.matrix)}}(),center:function(){var t=new u;return function(){return this.computeBoundingBox(),this.boundingBox.getCenter(t).negate(),this.translate(t.x,t.y,t.z),this}}(),setFromObject:function(t){var e=t.geometry;if(t.isPoints||t.isLine){t=new Et(3*e.vertices.length,3);var i=new Et(3*e.colors.length,3);this.addAttribute("position",t.copyVector3sArray(e.vertices)),this.addAttribute("color",i.copyColorsArray(e.colors)),e.lineDistances&&e.lineDistances.length===e.vertices.length&&(t=new Et(e.lineDistances.length,1),this.addAttribute("lineDistance",t.copyArray(e.lineDistances))),e.boundingSphere!==null&&(this.boundingSphere=e.boundingSphere.clone()),e.boundingBox!==null&&(this.boundingBox=e.boundingBox.clone())}else t.isMesh&&e&&e.isGeometry&&this.fromGeometry(e);return this},setFromPoints:function(t){for(var e=[],i=0,n=t.length;i<n;i++){var s=t[i];e.push(s.x,s.y,s.z||0)}return this.addAttribute("position",new Et(e,3)),this},updateFromObject:function(t){var e=t.geometry;if(t.isMesh){var i=e.__directGeometry;if(e.elementsNeedUpdate===!0&&(i=void 0,e.elementsNeedUpdate=!1),i===void 0)return this.fromGeometry(e);i.verticesNeedUpdate=e.verticesNeedUpdate,i.normalsNeedUpdate=e.normalsNeedUpdate,i.colorsNeedUpdate=e.colorsNeedUpdate,i.uvsNeedUpdate=e.uvsNeedUpdate,i.groupsNeedUpdate=e.groupsNeedUpdate,e.verticesNeedUpdate=!1,e.normalsNeedUpdate=!1,e.colorsNeedUpdate=!1,e.uvsNeedUpdate=!1,e.groupsNeedUpdate=!1,e=i}return e.verticesNeedUpdate===!0&&(i=this.attributes.position,i!==void 0&&(i.copyVector3sArray(e.vertices),i.needsUpdate=!0),e.verticesNeedUpdate=!1),e.normalsNeedUpdate===!0&&(i=this.attributes.normal,i!==void 0&&(i.copyVector3sArray(e.normals),i.needsUpdate=!0),e.normalsNeedUpdate=!1),e.colorsNeedUpdate===!0&&(i=this.attributes.color,i!==void 0&&(i.copyColorsArray(e.colors),i.needsUpdate=!0),e.colorsNeedUpdate=!1),e.uvsNeedUpdate&&(i=this.attributes.uv,i!==void 0&&(i.copyVector2sArray(e.uvs),i.needsUpdate=!0),e.uvsNeedUpdate=!1),e.lineDistancesNeedUpdate&&(i=this.attributes.lineDistance,i!==void 0&&(i.copyArray(e.lineDistances),i.needsUpdate=!0),e.lineDistancesNeedUpdate=!1),e.groupsNeedUpdate&&(e.computeGroups(t.geometry),this.groups=e.groups,e.groupsNeedUpdate=!1),this},fromGeometry:function(t){return t.__directGeometry=new fe().fromGeometry(t),this.fromDirectGeometry(t.__directGeometry)},fromDirectGeometry:function(t){var e=new Float32Array(3*t.vertices.length);this.addAttribute("position",new J(e,3).copyVector3sArray(t.vertices)),0<t.normals.length&&(e=new Float32Array(3*t.normals.length),this.addAttribute("normal",new J(e,3).copyVector3sArray(t.normals))),0<t.colors.length&&(e=new Float32Array(3*t.colors.length),this.addAttribute("color",new J(e,3).copyColorsArray(t.colors))),0<t.uvs.length&&(e=new Float32Array(2*t.uvs.length),this.addAttribute("uv",new J(e,2).copyVector2sArray(t.uvs))),0<t.uvs2.length&&(e=new Float32Array(2*t.uvs2.length),this.addAttribute("uv2",new J(e,2).copyVector2sArray(t.uvs2))),this.groups=t.groups;for(var i in t.morphTargets){e=[];for(var n=t.morphTargets[i],s=0,a=n.length;s<a;s++){var f=n[s],p=new Et(3*f.data.length,3);p.name=f.name,e.push(p.copyVector3sArray(f.data))}this.morphAttributes[i]=e}return 0<t.skinIndices.length&&(i=new Et(4*t.skinIndices.length,4),this.addAttribute("skinIndex",i.copyVector4sArray(t.skinIndices))),0<t.skinWeights.length&&(i=new Et(4*t.skinWeights.length,4),this.addAttribute("skinWeight",i.copyVector4sArray(t.skinWeights))),t.boundingSphere!==null&&(this.boundingSphere=t.boundingSphere.clone()),t.boundingBox!==null&&(this.boundingBox=t.boundingBox.clone()),this},computeBoundingBox:function(){this.boundingBox===null&&(this.boundingBox=new k);var t=this.attributes.position;t!==void 0?this.boundingBox.setFromBufferAttribute(t):this.boundingBox.makeEmpty(),(isNaN(this.boundingBox.min.x)||isNaN(this.boundingBox.min.y)||isNaN(this.boundingBox.min.z))&&console.error('THREE.BufferGeometry.computeBoundingBox: Computed min/max have NaN values. The "position" attribute is likely to have NaN values.',this)},computeBoundingSphere:function(){var t=new k,e=new u;return function(){this.boundingSphere===null&&(this.boundingSphere=new D);var i=this.attributes.position;if(i){var n=this.boundingSphere.center;t.setFromBufferAttribute(i),t.getCenter(n);for(var s=0,a=0,f=i.count;a<f;a++)e.x=i.getX(a),e.y=i.getY(a),e.z=i.getZ(a),s=Math.max(s,n.distanceToSquared(e));this.boundingSphere.radius=Math.sqrt(s),isNaN(this.boundingSphere.radius)&&console.error('THREE.BufferGeometry.computeBoundingSphere(): Computed radius is NaN. The "position" attribute is likely to have NaN values.',this)}}}(),computeFaceNormals:function(){},computeVertexNormals:function(){var t=this.index,e=this.attributes;if(e.position){var i=e.position.array;if(e.normal===void 0)this.addAttribute("normal",new J(new Float32Array(i.length),3));else for(var n=e.normal.array,s=0,a=n.length;s<a;s++)n[s]=0;n=e.normal.array;var f=new u,p=new u,v=new u,w=new u,C=new u;if(t){var L=t.array;for(s=0,a=t.count;s<a;s+=3){t=3*L[s+0];var B=3*L[s+1],H=3*L[s+2];f.fromArray(i,t),p.fromArray(i,B),v.fromArray(i,H),w.subVectors(v,p),C.subVectors(f,p),w.cross(C),n[t]+=w.x,n[t+1]+=w.y,n[t+2]+=w.z,n[B]+=w.x,n[B+1]+=w.y,n[B+2]+=w.z,n[H]+=w.x,n[H+1]+=w.y,n[H+2]+=w.z}}else for(s=0,a=i.length;s<a;s+=9)f.fromArray(i,s),p.fromArray(i,s+3),v.fromArray(i,s+6),w.subVectors(v,p),C.subVectors(f,p),w.cross(C),n[s]=w.x,n[s+1]=w.y,n[s+2]=w.z,n[s+3]=w.x,n[s+4]=w.y,n[s+5]=w.z,n[s+6]=w.x,n[s+7]=w.y,n[s+8]=w.z;this.normalizeNormals(),e.normal.needsUpdate=!0}},merge:function(t,e){if(t&&t.isBufferGeometry){e===void 0&&(e=0,console.warn("THREE.BufferGeometry.merge(): Overwriting original geometry, starting at offset=0. Use BufferGeometryUtils.mergeBufferGeometries() for lossless merge."));var i=this.attributes,n;for(n in i)if(t.attributes[n]!==void 0){var s=i[n].array,a=t.attributes[n],f=a.array,p=0;for(a=a.itemSize*e;p<f.length;p++,a++)s[a]=f[p]}return this}console.error("THREE.BufferGeometry.merge(): geometry not an instance of THREE.BufferGeometry.",t)},normalizeNormals:function(){var t=new u;return function(){for(var e=this.attributes.normal,i=0,n=e.count;i<n;i++)t.x=e.getX(i),t.y=e.getY(i),t.z=e.getZ(i),t.normalize(),e.setXYZ(i,t.x,t.y,t.z)}}(),toNonIndexed:function(){if(this.index===null)return console.warn("THREE.BufferGeometry.toNonIndexed(): Geometry is already non-indexed."),this;var t=new Ft,e=this.index.array,i=this.attributes,n;for(n in i){var s=i[n],a=s.array,f=s.itemSize,p=new a.constructor(e.length*f),v=0;s=0;for(var w=e.length;s<w;s++)for(var C=e[s]*f,L=0;L<f;L++)p[v++]=a[C++];t.addAttribute(n,new J(p,f))}for(e=this.groups,s=0,w=e.length;s<w;s++)i=e[s],t.addGroup(i.start,i.count,i.materialIndex);return t},toJSON:function(){var t={metadata:{version:4.5,type:"BufferGeometry",generator:"BufferGeometry.toJSON"}};if(t.uuid=this.uuid,t.type=this.type,this.name!==""&&(t.name=this.name),0<Object.keys(this.userData).length&&(t.userData=this.userData),this.parameters!==void 0){var e=this.parameters;for(s in e)e[s]!==void 0&&(t[s]=e[s]);return t}t.data={attributes:{}};var i=this.index;i!==null&&(e=Array.prototype.slice.call(i.array),t.data.index={type:i.array.constructor.name,array:e}),i=this.attributes;for(s in i){var n=i[s];e=Array.prototype.slice.call(n.array),t.data.attributes[s]={itemSize:n.itemSize,type:n.array.constructor.name,array:e,normalized:n.normalized}}var s=this.groups;return 0<s.length&&(t.data.groups=JSON.parse(JSON.stringify(s))),s=this.boundingSphere,s!==null&&(t.data.boundingSphere={center:s.center.toArray(),radius:s.radius}),t},clone:function(){return new Ft().copy(this)},copy:function(t){var e;this.index=null,this.attributes={},this.morphAttributes={},this.groups=[],this.boundingSphere=this.boundingBox=null,this.name=t.name;var i=t.index;i!==null&&this.setIndex(i.clone()),i=t.attributes;for(f in i)this.addAttribute(f,i[f].clone());var n=t.morphAttributes;for(f in n){var s=[],a=n[f];for(i=0,e=a.length;i<e;i++)s.push(a[i].clone());this.morphAttributes[f]=s}var f=t.groups;for(i=0,e=f.length;i<e;i++)n=f[i],this.addGroup(n.start,n.count,n.materialIndex);return f=t.boundingBox,f!==null&&(this.boundingBox=f.clone()),f=t.boundingSphere,f!==null&&(this.boundingSphere=f.clone()),this.drawRange.start=t.drawRange.start,this.drawRange.count=t.drawRange.count,this.userData=t.userData,this},dispose:function(){this.dispatchEvent({type:"dispose"})}}),Ot.prototype=Object.create(j.prototype),Ot.prototype.constructor=Ot,Bt.prototype=Object.create(Ft.prototype),Bt.prototype.constructor=Bt,ke.prototype=Object.create(j.prototype),ke.prototype.constructor=ke,ce.prototype=Object.create(Ft.prototype),ce.prototype.constructor=ce;var Ru=0;Yt.prototype=Object.assign(Object.create(l.prototype),{constructor:Yt,isMaterial:!0,onBeforeCompile:function(){},setValues:function(t){if(t!==void 0)for(var e in t){var i=t[e];if(i===void 0)console.warn("THREE.Material: '"+e+"' parameter is undefined.");else if(e==="shading")console.warn("THREE."+this.type+": .shading has been removed. Use the boolean .flatShading instead."),this.flatShading=i===1;else{var n=this[e];n===void 0?console.warn("THREE."+this.type+": '"+e+"' is not a property of this material."):n&&n.isColor?n.set(i):n&&n.isVector3&&i&&i.isVector3?n.copy(i):this[e]=i}}},toJSON:function(t){function e(s){var a=[],f;for(f in s){var p=s[f];delete p.metadata,a.push(p)}return a}var i=t===void 0||typeof t=="string";i&&(t={textures:{},images:{}});var n={metadata:{version:4.5,type:"Material",generator:"Material.toJSON"}};return n.uuid=this.uuid,n.type=this.type,this.name!==""&&(n.name=this.name),this.color&&this.color.isColor&&(n.color=this.color.getHex()),this.roughness!==void 0&&(n.roughness=this.roughness),this.metalness!==void 0&&(n.metalness=this.metalness),this.emissive&&this.emissive.isColor&&(n.emissive=this.emissive.getHex()),this.emissiveIntensity!==1&&(n.emissiveIntensity=this.emissiveIntensity),this.specular&&this.specular.isColor&&(n.specular=this.specular.getHex()),this.shininess!==void 0&&(n.shininess=this.shininess),this.clearCoat!==void 0&&(n.clearCoat=this.clearCoat),this.clearCoatRoughness!==void 0&&(n.clearCoatRoughness=this.clearCoatRoughness),this.map&&this.map.isTexture&&(n.map=this.map.toJSON(t).uuid),this.alphaMap&&this.alphaMap.isTexture&&(n.alphaMap=this.alphaMap.toJSON(t).uuid),this.lightMap&&this.lightMap.isTexture&&(n.lightMap=this.lightMap.toJSON(t).uuid),this.aoMap&&this.aoMap.isTexture&&(n.aoMap=this.aoMap.toJSON(t).uuid,n.aoMapIntensity=this.aoMapIntensity),this.bumpMap&&this.bumpMap.isTexture&&(n.bumpMap=this.bumpMap.toJSON(t).uuid,n.bumpScale=this.bumpScale),this.normalMap&&this.normalMap.isTexture&&(n.normalMap=this.normalMap.toJSON(t).uuid,n.normalMapType=this.normalMapType,n.normalScale=this.normalScale.toArray()),this.displacementMap&&this.displacementMap.isTexture&&(n.displacementMap=this.displacementMap.toJSON(t).uuid,n.displacementScale=this.displacementScale,n.displacementBias=this.displacementBias),this.roughnessMap&&this.roughnessMap.isTexture&&(n.roughnessMap=this.roughnessMap.toJSON(t).uuid),this.metalnessMap&&this.metalnessMap.isTexture&&(n.metalnessMap=this.metalnessMap.toJSON(t).uuid),this.emissiveMap&&this.emissiveMap.isTexture&&(n.emissiveMap=this.emissiveMap.toJSON(t).uuid),this.specularMap&&this.specularMap.isTexture&&(n.specularMap=this.specularMap.toJSON(t).uuid),this.envMap&&this.envMap.isTexture&&(n.envMap=this.envMap.toJSON(t).uuid,n.reflectivity=this.reflectivity,this.combine!==void 0&&(n.combine=this.combine),this.envMapIntensity!==void 0&&(n.envMapIntensity=this.envMapIntensity)),this.gradientMap&&this.gradientMap.isTexture&&(n.gradientMap=this.gradientMap.toJSON(t).uuid),this.size!==void 0&&(n.size=this.size),this.sizeAttenuation!==void 0&&(n.sizeAttenuation=this.sizeAttenuation),this.blending!==1&&(n.blending=this.blending),this.flatShading===!0&&(n.flatShading=this.flatShading),this.side!==0&&(n.side=this.side),this.vertexColors!==0&&(n.vertexColors=this.vertexColors),1>this.opacity&&(n.opacity=this.opacity),this.transparent===!0&&(n.transparent=this.transparent),n.depthFunc=this.depthFunc,n.depthTest=this.depthTest,n.depthWrite=this.depthWrite,this.rotation!==0&&(n.rotation=this.rotation),this.polygonOffset===!0&&(n.polygonOffset=!0),this.polygonOffsetFactor!==0&&(n.polygonOffsetFactor=this.polygonOffsetFactor),this.polygonOffsetUnits!==0&&(n.polygonOffsetUnits=this.polygonOffsetUnits),this.linewidth!==1&&(n.linewidth=this.linewidth),this.dashSize!==void 0&&(n.dashSize=this.dashSize),this.gapSize!==void 0&&(n.gapSize=this.gapSize),this.scale!==void 0&&(n.scale=this.scale),this.dithering===!0&&(n.dithering=!0),0<this.alphaTest&&(n.alphaTest=this.alphaTest),this.premultipliedAlpha===!0&&(n.premultipliedAlpha=this.premultipliedAlpha),this.wireframe===!0&&(n.wireframe=this.wireframe),1<this.wireframeLinewidth&&(n.wireframeLinewidth=this.wireframeLinewidth),this.wireframeLinecap!=="round"&&(n.wireframeLinecap=this.wireframeLinecap),this.wireframeLinejoin!=="round"&&(n.wireframeLinejoin=this.wireframeLinejoin),this.morphTargets===!0&&(n.morphTargets=!0),this.skinning===!0&&(n.skinning=!0),this.visible===!1&&(n.visible=!1),JSON.stringify(this.userData)!=="{}"&&(n.userData=this.userData),i&&(i=e(t.textures),t=e(t.images),0<i.length&&(n.textures=i),0<t.length&&(n.images=t)),n},clone:function(){return new this.constructor().copy(this)},copy:function(t){this.name=t.name,this.fog=t.fog,this.lights=t.lights,this.blending=t.blending,this.side=t.side,this.flatShading=t.flatShading,this.vertexColors=t.vertexColors,this.opacity=t.opacity,this.transparent=t.transparent,this.blendSrc=t.blendSrc,this.blendDst=t.blendDst,this.blendEquation=t.blendEquation,this.blendSrcAlpha=t.blendSrcAlpha,this.blendDstAlpha=t.blendDstAlpha,this.blendEquationAlpha=t.blendEquationAlpha,this.depthFunc=t.depthFunc,this.depthTest=t.depthTest,this.depthWrite=t.depthWrite,this.colorWrite=t.colorWrite,this.precision=t.precision,this.polygonOffset=t.polygonOffset,this.polygonOffsetFactor=t.polygonOffsetFactor,this.polygonOffsetUnits=t.polygonOffsetUnits,this.dithering=t.dithering,this.alphaTest=t.alphaTest,this.premultipliedAlpha=t.premultipliedAlpha,this.visible=t.visible,this.userData=JSON.parse(JSON.stringify(t.userData)),this.clipShadows=t.clipShadows,this.clipIntersection=t.clipIntersection;var e=t.clippingPlanes,i=null;if(e!==null){var n=e.length;i=Array(n);for(var s=0;s!==n;++s)i[s]=e[s].clone()}return this.clippingPlanes=i,this.shadowSide=t.shadowSide,this},dispose:function(){this.dispatchEvent({type:"dispose"})}}),$e.prototype=Object.create(Yt.prototype),$e.prototype.constructor=$e,$e.prototype.isShaderMaterial=!0,$e.prototype.copy=function(t){return Yt.prototype.copy.call(this,t),this.fragmentShader=t.fragmentShader,this.vertexShader=t.vertexShader,this.uniforms=Bn.clone(t.uniforms),this.defines=Object.assign({},t.defines),this.wireframe=t.wireframe,this.wireframeLinewidth=t.wireframeLinewidth,this.lights=t.lights,this.clipping=t.clipping,this.skinning=t.skinning,this.morphTargets=t.morphTargets,this.morphNormals=t.morphNormals,this.extensions=t.extensions,this},$e.prototype.toJSON=function(t){var e=Yt.prototype.toJSON.call(this,t);e.uniforms={};for(var i in this.uniforms){var n=this.uniforms[i].value;e.uniforms[i]=n.isTexture?{type:"t",value:n.toJSON(t).uuid}:n.isColor?{type:"c",value:n.getHex()}:n.isVector2?{type:"v2",value:n.toArray()}:n.isVector3?{type:"v3",value:n.toArray()}:n.isVector4?{type:"v4",value:n.toArray()}:n.isMatrix4?{type:"m4",value:n.toArray()}:{value:n}}return 0<Object.keys(this.defines).length&&(e.defines=this.defines),e.vertexShader=this.vertexShader,e.fragmentShader=this.fragmentShader,e},Object.assign(Oi.prototype,{set:function(t,e){return this.origin.copy(t),this.direction.copy(e),this},clone:function(){return new this.constructor().copy(this)},copy:function(t){return this.origin.copy(t.origin),this.direction.copy(t.direction),this},at:function(t,e){return e===void 0&&(console.warn("THREE.Ray: .at() target is now required"),e=new u),e.copy(this.direction).multiplyScalar(t).add(this.origin)},lookAt:function(t){return this.direction.copy(t).sub(this.origin).normalize(),this},recast:function(){var t=new u;return function(e){return this.origin.copy(this.at(e,t)),this}}(),closestPointToPoint:function(t,e){return e===void 0&&(console.warn("THREE.Ray: .closestPointToPoint() target is now required"),e=new u),e.subVectors(t,this.origin),t=e.dot(this.direction),0>t?e.copy(this.origin):e.copy(this.direction).multiplyScalar(t).add(this.origin)},distanceToPoint:function(t){return Math.sqrt(this.distanceSqToPoint(t))},distanceSqToPoint:function(){var t=new u;return function(e){var i=t.subVectors(e,this.origin).dot(this.direction);return 0>i?this.origin.distanceToSquared(e):(t.copy(this.direction).multiplyScalar(i).add(this.origin),t.distanceToSquared(e))}}(),distanceSqToSegment:function(){var t=new u,e=new u,i=new u;return function(n,s,a,f){t.copy(n).add(s).multiplyScalar(.5),e.copy(s).sub(n).normalize(),i.copy(this.origin).sub(t);var p=.5*n.distanceTo(s),v=-this.direction.dot(e),w=i.dot(this.direction),C=-i.dot(e),L=i.lengthSq(),B=Math.abs(1-v*v);if(0<B){n=v*C-w,s=v*w-C;var H=p*B;0<=n?s>=-H?s<=H?(p=1/B,n*=p,s*=p,v=n*(n+v*s+2*w)+s*(v*n+s+2*C)+L):(s=p,n=Math.max(0,-(v*s+w)),v=-n*n+s*(s+2*C)+L):(s=-p,n=Math.max(0,-(v*s+w)),v=-n*n+s*(s+2*C)+L):s<=-H?(n=Math.max(0,-(-v*p+w)),s=0<n?-p:Math.min(Math.max(-p,-C),p),v=-n*n+s*(s+2*C)+L):s<=H?(n=0,s=Math.min(Math.max(-p,-C),p),v=s*(s+2*C)+L):(n=Math.max(0,-(v*p+w)),s=0<n?p:Math.min(Math.max(-p,-C),p),v=-n*n+s*(s+2*C)+L)}else s=0<v?-p:p,n=Math.max(0,-(v*s+w)),v=-n*n+s*(s+2*C)+L;return a&&a.copy(this.direction).multiplyScalar(n).add(this.origin),f&&f.copy(e).multiplyScalar(s).add(t),v}}(),intersectSphere:function(){var t=new u;return function(e,i){t.subVectors(e.center,this.origin);var n=t.dot(this.direction),s=t.dot(t)-n*n;return e=e.radius*e.radius,s>e?null:(e=Math.sqrt(e-s),s=n-e,n+=e,0>s&&0>n?null:0>s?this.at(n,i):this.at(s,i))}}(),intersectsSphere:function(t){return this.distanceSqToPoint(t.center)<=t.radius*t.radius},distanceToPlane:function(t){var e=t.normal.dot(this.direction);return e===0?t.distanceToPoint(this.origin)===0?0:null:(t=-(this.origin.dot(t.normal)+t.constant)/e,0<=t?t:null)},intersectPlane:function(t,e){return t=this.distanceToPlane(t),t===null?null:this.at(t,e)},intersectsPlane:function(t){var e=t.distanceToPoint(this.origin);return e===0||0>t.normal.dot(this.direction)*e},intersectBox:function(t,e){var i=1/this.direction.x,n=1/this.direction.y,s=1/this.direction.z,a=this.origin;if(0<=i){var f=(t.min.x-a.x)*i;i*=t.max.x-a.x}else f=(t.max.x-a.x)*i,i*=t.min.x-a.x;if(0<=n){var p=(t.min.y-a.y)*n;n*=t.max.y-a.y}else p=(t.max.y-a.y)*n,n*=t.min.y-a.y;return f>n||p>i||((p>f||f!==f)&&(f=p),(n<i||i!==i)&&(i=n),0<=s?(p=(t.min.z-a.z)*s,t=(t.max.z-a.z)*s):(p=(t.max.z-a.z)*s,t=(t.min.z-a.z)*s),f>t||p>i)?null:((p>f||f!==f)&&(f=p),(t<i||i!==i)&&(i=t),0>i?null:this.at(0<=f?f:i,e))},intersectsBox:function(){var t=new u;return function(e){return this.intersectBox(e,t)!==null}}(),intersectTriangle:function(){var t=new u,e=new u,i=new u,n=new u;return function(s,a,f,p,v){if(e.subVectors(a,s),i.subVectors(f,s),n.crossVectors(e,i),a=this.direction.dot(n),0<a){if(p)return null;p=1}else if(0>a)p=-1,a=-a;else return null;return t.subVectors(this.origin,s),s=p*this.direction.dot(i.crossVectors(t,i)),0>s||(f=p*this.direction.dot(e.cross(t)),0>f||s+f>a)?null:(s=-p*t.dot(n),0>s?null:this.at(s/a,v))}}(),applyMatrix4:function(t){return this.origin.applyMatrix4(t),this.direction.transformDirection(t),this},equals:function(t){return t.origin.equals(this.origin)&&t.direction.equals(this.direction)}}),Object.assign(Oe,{getNormal:function(){var t=new u;return function(e,i,n,s){return s===void 0&&(console.warn("THREE.Triangle: .getNormal() target is now required"),s=new u),s.subVectors(n,i),t.subVectors(e,i),s.cross(t),e=s.lengthSq(),0<e?s.multiplyScalar(1/Math.sqrt(e)):s.set(0,0,0)}}(),getBarycoord:function(){var t=new u,e=new u,i=new u;return function(n,s,a,f,p){t.subVectors(f,s),e.subVectors(a,s),i.subVectors(n,s),n=t.dot(t),s=t.dot(e),a=t.dot(i);var v=e.dot(e);f=e.dot(i);var w=n*v-s*s;return p===void 0&&(console.warn("THREE.Triangle: .getBarycoord() target is now required"),p=new u),w===0?p.set(-2,-1,-1):(w=1/w,v=(v*a-s*f)*w,n=(n*f-s*a)*w,p.set(1-v-n,n,v))}}(),containsPoint:function(){var t=new u;return function(e,i,n,s){return Oe.getBarycoord(e,i,n,s,t),0<=t.x&&0<=t.y&&1>=t.x+t.y}}(),getUV:function(){var t=new u;return function(e,i,n,s,a,f,p,v){return this.getBarycoord(e,i,n,s,t),v.set(0,0),v.addScaledVector(a,t.x),v.addScaledVector(f,t.y),v.addScaledVector(p,t.z),v}}()}),Object.assign(Oe.prototype,{set:function(t,e,i){return this.a.copy(t),this.b.copy(e),this.c.copy(i),this},setFromPointsAndIndices:function(t,e,i,n){return this.a.copy(t[e]),this.b.copy(t[i]),this.c.copy(t[n]),this},clone:function(){return new this.constructor().copy(this)},copy:function(t){return this.a.copy(t.a),this.b.copy(t.b),this.c.copy(t.c),this},getArea:function(){var t=new u,e=new u;return function(){return t.subVectors(this.c,this.b),e.subVectors(this.a,this.b),.5*t.cross(e).length()}}(),getMidpoint:function(t){return t===void 0&&(console.warn("THREE.Triangle: .getMidpoint() target is now required"),t=new u),t.addVectors(this.a,this.b).add(this.c).multiplyScalar(1/3)},getNormal:function(t){return Oe.getNormal(this.a,this.b,this.c,t)},getPlane:function(t){return t===void 0&&(console.warn("THREE.Triangle: .getPlane() target is now required"),t=new u),t.setFromCoplanarPoints(this.a,this.b,this.c)},getBarycoord:function(t,e){return Oe.getBarycoord(t,this.a,this.b,this.c,e)},containsPoint:function(t){return Oe.containsPoint(t,this.a,this.b,this.c)},getUV:function(t,e,i,n,s){return Oe.getUV(t,this.a,this.b,this.c,e,i,n,s)},intersectsBox:function(t){return t.intersectsTriangle(this)},closestPointToPoint:function(){var t=new u,e=new u,i=new u,n=new u,s=new u,a=new u;return function(f,p){p===void 0&&(console.warn("THREE.Triangle: .closestPointToPoint() target is now required"),p=new u);var v=this.a,w=this.b,C=this.c;t.subVectors(w,v),e.subVectors(C,v),n.subVectors(f,v);var L=t.dot(n),B=e.dot(n);if(0>=L&&0>=B)return p.copy(v);s.subVectors(f,w);var H=t.dot(s),q=e.dot(s);if(0<=H&&q<=H)return p.copy(w);var K=L*q-H*B;if(0>=K&&0<=L&&0>=H)return w=L/(L-H),p.copy(v).addScaledVector(t,w);a.subVectors(f,C),f=t.dot(a);var rt=e.dot(a);return 0<=rt&&f<=rt?p.copy(C):(L=f*B-L*rt,0>=L&&0<=B&&0>=rt?(K=B/(B-rt),p.copy(v).addScaledVector(e,K)):(B=H*rt-f*q,0>=B&&0<=q-H&&0<=f-rt?(i.subVectors(C,w),K=(q-H)/(q-H+(f-rt)),p.copy(w).addScaledVector(i,K)):(C=1/(B+L+K),w=L*C,K*=C,p.copy(v).addScaledVector(t,w).addScaledVector(e,K))))}}(),equals:function(t){return t.a.equals(this.a)&&t.b.equals(this.b)&&t.c.equals(this.c)}}),Ge.prototype=Object.create(Yt.prototype),Ge.prototype.constructor=Ge,Ge.prototype.isMeshBasicMaterial=!0,Ge.prototype.copy=function(t){return Yt.prototype.copy.call(this,t),this.color.copy(t.color),this.map=t.map,this.lightMap=t.lightMap,this.lightMapIntensity=t.lightMapIntensity,this.aoMap=t.aoMap,this.aoMapIntensity=t.aoMapIntensity,this.specularMap=t.specularMap,this.alphaMap=t.alphaMap,this.envMap=t.envMap,this.combine=t.combine,this.reflectivity=t.reflectivity,this.refractionRatio=t.refractionRatio,this.wireframe=t.wireframe,this.wireframeLinewidth=t.wireframeLinewidth,this.wireframeLinecap=t.wireframeLinecap,this.wireframeLinejoin=t.wireframeLinejoin,this.skinning=t.skinning,this.morphTargets=t.morphTargets,this},di.prototype=Object.assign(Object.create(F.prototype),{constructor:di,isMesh:!0,setDrawMode:function(t){this.drawMode=t},copy:function(t){return F.prototype.copy.call(this,t),this.drawMode=t.drawMode,t.morphTargetInfluences!==void 0&&(this.morphTargetInfluences=t.morphTargetInfluences.slice()),t.morphTargetDictionary!==void 0&&(this.morphTargetDictionary=Object.assign({},t.morphTargetDictionary)),this},updateMorphTargets:function(){var t=this.geometry;if(t.isBufferGeometry){t=t.morphAttributes;var e=Object.keys(t);if(0<e.length){var i=t[e[0]];if(i!==void 0)for(this.morphTargetInfluences=[],this.morphTargetDictionary={},t=0,e=i.length;t<e;t++){var n=i[t].name||String(t);this.morphTargetInfluences.push(0),this.morphTargetDictionary[n]=t}}}else if(i=t.morphTargets,i!==void 0&&0<i.length)for(this.morphTargetInfluences=[],this.morphTargetDictionary={},t=0,e=i.length;t<e;t++)n=i[t].name||String(t),this.morphTargetInfluences.push(0),this.morphTargetDictionary[n]=t},raycast:function(){function t(rt,xt,gt,At,wt,Vt,Z,st){return(xt.side===1?At.intersectTriangle(Z,Vt,wt,!0,st):At.intersectTriangle(wt,Vt,Z,xt.side!==2,st))===null?null:(K.copy(st),K.applyMatrix4(rt.matrixWorld),xt=gt.ray.origin.distanceTo(K),xt<gt.near||xt>gt.far?null:{distance:xt,point:K.clone(),object:rt})}function e(rt,xt,gt,At,wt,Vt,Z,st,zt){return a.fromBufferAttribute(wt,Z),f.fromBufferAttribute(wt,st),p.fromBufferAttribute(wt,zt),(rt=t(rt,xt,gt,At,a,f,p,q))&&(Vt&&(L.fromBufferAttribute(Vt,Z),B.fromBufferAttribute(Vt,st),H.fromBufferAttribute(Vt,zt),rt.uv=Oe.getUV(q,a,f,p,L,B,H,new o)),Vt=new R(Z,st,zt),Oe.getNormal(a,f,p,Vt.normal),rt.face=Vt),rt}var i=new c,n=new Oi,s=new D,a=new u,f=new u,p=new u,v=new u,w=new u,C=new u,L=new o,B=new o,H=new o,q=new u,K=new u;return function(rt,xt){var gt=this.geometry,At=this.material,wt=this.matrixWorld;if(At!==void 0&&(gt.boundingSphere===null&&gt.computeBoundingSphere(),s.copy(gt.boundingSphere),s.applyMatrix4(wt),rt.ray.intersectsSphere(s)!==!1&&(i.getInverse(wt),n.copy(rt.ray).applyMatrix4(i),gt.boundingBox===null||n.intersectsBox(gt.boundingBox)!==!1))){if(gt.isBufferGeometry){var Vt=gt.index,Z=gt.attributes.position,st=gt.attributes.uv,zt=gt.groups;gt=gt.drawRange;var ee;if(Vt!==null)if(Array.isArray(At)){var $t=0;for(ee=zt.length;$t<ee;$t++){var qt=zt[$t],Te=At[qt.materialIndex];wt=Math.max(qt.start,gt.start);var me=Math.min(qt.start+qt.count,gt.start+gt.count);for(qt=wt;qt<me;qt+=3){wt=Vt.getX(qt);var Ie=Vt.getX(qt+1),be=Vt.getX(qt+2);(wt=e(this,Te,rt,n,Z,st,wt,Ie,be))&&(wt.faceIndex=Math.floor(qt/3),xt.push(wt))}}}else for(wt=Math.max(0,gt.start),me=Math.min(Vt.count,gt.start+gt.count),$t=wt,ee=me;$t<ee;$t+=3)wt=Vt.getX($t),Ie=Vt.getX($t+1),be=Vt.getX($t+2),(wt=e(this,At,rt,n,Z,st,wt,Ie,be))&&(wt.faceIndex=Math.floor($t/3),xt.push(wt));else if(Z!==void 0)if(Array.isArray(At))for($t=0,ee=zt.length;$t<ee;$t++)for(qt=zt[$t],Te=At[qt.materialIndex],wt=Math.max(qt.start,gt.start),me=Math.min(qt.start+qt.count,gt.start+gt.count),qt=wt;qt<me;qt+=3)wt=qt,Ie=qt+1,be=qt+2,(wt=e(this,Te,rt,n,Z,st,wt,Ie,be))&&(wt.faceIndex=Math.floor(qt/3),xt.push(wt));else for(wt=Math.max(0,gt.start),me=Math.min(Z.count,gt.start+gt.count),$t=wt,ee=me;$t<ee;$t+=3)wt=$t,Ie=$t+1,be=$t+2,(wt=e(this,At,rt,n,Z,st,wt,Ie,be))&&(wt.faceIndex=Math.floor($t/3),xt.push(wt))}else if(gt.isGeometry){for(Z=Array.isArray(At),st=gt.vertices,zt=gt.faces,wt=gt.faceVertexUvs[0],0<wt.length&&(Vt=wt),qt=0,me=zt.length;qt<me;qt++)if(Ie=zt[qt],wt=Z?At[Ie.materialIndex]:At,wt!==void 0){if($t=st[Ie.a],ee=st[Ie.b],Te=st[Ie.c],wt.morphTargets===!0){be=gt.morphTargets;var ae=this.morphTargetInfluences;a.set(0,0,0),f.set(0,0,0),p.set(0,0,0);for(var We=0,Qe=be.length;We<Qe;We++){var fi=ae[We];if(fi!==0){var An=be[We].vertices;a.addScaledVector(v.subVectors(An[Ie.a],$t),fi),f.addScaledVector(w.subVectors(An[Ie.b],ee),fi),p.addScaledVector(C.subVectors(An[Ie.c],Te),fi)}}a.add($t),f.add(ee),p.add(Te),$t=a,ee=f,Te=p}(wt=t(this,wt,rt,n,$t,ee,Te,q))&&(Vt&&Vt[qt]&&(be=Vt[qt],L.copy(be[0]),B.copy(be[1]),H.copy(be[2]),wt.uv=Oe.getUV(q,$t,ee,Te,L,B,H,new o)),wt.face=Ie,wt.faceIndex=qt,xt.push(wt))}}}}}(),clone:function(){return new this.constructor(this.geometry,this.material).copy(this)}}),z.prototype=Object.create(_.prototype),z.prototype.constructor=z,z.prototype.isCubeTexture=!0,Object.defineProperty(z.prototype,"images",{get:function(){return this.image},set:function(t){this.image=t}}),Q.prototype=Object.create(_.prototype),Q.prototype.constructor=Q,Q.prototype.isDataTexture3D=!0;var Vh=new _,Xc=new Q,Ou=new z,nh=[],Ca=[],yl=new Float32Array(16),Iu=new Float32Array(9),Wh=new Float32Array(4);na.prototype.updateCache=function(t){var e=this.cache;t instanceof Float32Array&&e.length!==t.length&&(this.cache=new Float32Array(t.length)),vt(e,t)},qa.prototype.setValue=function(t,e,i){for(var n=this.seq,s=0,a=n.length;s!==a;++s){var f=n[s];f.setValue(t,e[f.id],i)}};var jh=/([\w\d_]+)(\])?(\[|\.)?/g;hs.prototype.setValue=function(t,e,i){e=this.map[e],e!==void 0&&e.setValue(t,i,this.renderer)},hs.prototype.setOptional=function(t,e,i){e=e[i],e!==void 0&&this.setValue(t,i,e)},hs.upload=function(t,e,i,n){for(var s=0,a=e.length;s!==a;++s){var f=e[s],p=i[f.id];p.needsUpdate!==!1&&f.setValue(t,p.value,n)}},hs.seqWithValue=function(t,e){for(var i=[],n=0,s=t.length;n!==s;++n){var a=t[n];a.id in e&&i.push(a)}return i};var ks=0,Xh=0;oe.prototype=Object.create(Yt.prototype),oe.prototype.constructor=oe,oe.prototype.isMeshDepthMaterial=!0,oe.prototype.copy=function(t){return Yt.prototype.copy.call(this,t),this.depthPacking=t.depthPacking,this.skinning=t.skinning,this.morphTargets=t.morphTargets,this.map=t.map,this.alphaMap=t.alphaMap,this.displacementMap=t.displacementMap,this.displacementScale=t.displacementScale,this.displacementBias=t.displacementBias,this.wireframe=t.wireframe,this.wireframeLinewidth=t.wireframeLinewidth,this},te.prototype=Object.create(Yt.prototype),te.prototype.constructor=te,te.prototype.isMeshDistanceMaterial=!0,te.prototype.copy=function(t){return Yt.prototype.copy.call(this,t),this.referencePosition.copy(t.referencePosition),this.nearDistance=t.nearDistance,this.farDistance=t.farDistance,this.skinning=t.skinning,this.morphTargets=t.morphTargets,this.map=t.map,this.alphaMap=t.alphaMap,this.displacementMap=t.displacementMap,this.displacementScale=t.displacementScale,this.displacementBias=t.displacementBias,this},ci.prototype=Object.assign(Object.create(F.prototype),{constructor:ci,isGroup:!0}),Be.prototype=Object.assign(Object.create(F.prototype),{constructor:Be,isCamera:!0,copy:function(t,e){return F.prototype.copy.call(this,t,e),this.matrixWorldInverse.copy(t.matrixWorldInverse),this.projectionMatrix.copy(t.projectionMatrix),this.projectionMatrixInverse.copy(t.projectionMatrixInverse),this},getWorldDirection:function(t){t===void 0&&(console.warn("THREE.Camera: .getWorldDirection() target is now required"),t=new u),this.updateMatrixWorld(!0);var e=this.matrixWorld.elements;return t.set(-e[8],-e[9],-e[10]).normalize()},updateMatrixWorld:function(t){F.prototype.updateMatrixWorld.call(this,t),this.matrixWorldInverse.getInverse(this.matrixWorld)},clone:function(){return new this.constructor().copy(this)}}),ye.prototype=Object.assign(Object.create(Be.prototype),{constructor:ye,isPerspectiveCamera:!0,copy:function(t,e){return Be.prototype.copy.call(this,t,e),this.fov=t.fov,this.zoom=t.zoom,this.near=t.near,this.far=t.far,this.focus=t.focus,this.aspect=t.aspect,this.view=t.view===null?null:Object.assign({},t.view),this.filmGauge=t.filmGauge,this.filmOffset=t.filmOffset,this},setFocalLength:function(t){t=.5*this.getFilmHeight()/t,this.fov=2*pi.RAD2DEG*Math.atan(t),this.updateProjectionMatrix()},getFocalLength:function(){var t=Math.tan(.5*pi.DEG2RAD*this.fov);return .5*this.getFilmHeight()/t},getEffectiveFOV:function(){return 2*pi.RAD2DEG*Math.atan(Math.tan(.5*pi.DEG2RAD*this.fov)/this.zoom)},getFilmWidth:function(){return this.filmGauge*Math.min(this.aspect,1)},getFilmHeight:function(){return this.filmGauge/Math.max(this.aspect,1)},setViewOffset:function(t,e,i,n,s,a){this.aspect=t/e,this.view===null&&(this.view={enabled:!0,fullWidth:1,fullHeight:1,offsetX:0,offsetY:0,width:1,height:1}),this.view.enabled=!0,this.view.fullWidth=t,this.view.fullHeight=e,this.view.offsetX=i,this.view.offsetY=n,this.view.width=s,this.view.height=a,this.updateProjectionMatrix()},clearViewOffset:function(){this.view!==null&&(this.view.enabled=!1),this.updateProjectionMatrix()},updateProjectionMatrix:function(){var t=this.near,e=t*Math.tan(.5*pi.DEG2RAD*this.fov)/this.zoom,i=2*e,n=this.aspect*i,s=-.5*n,a=this.view;if(this.view!==null&&this.view.enabled){var f=a.fullWidth,p=a.fullHeight;s+=a.offsetX*n/f,e-=a.offsetY*i/p,n*=a.width/f,i*=a.height/p}a=this.filmOffset,a!==0&&(s+=t*a/this.getFilmWidth()),this.projectionMatrix.makePerspective(s,s+n,e,e-i,t,this.far),this.projectionMatrixInverse.getInverse(this.projectionMatrix)},toJSON:function(t){return t=F.prototype.toJSON.call(this,t),t.object.fov=this.fov,t.object.zoom=this.zoom,t.object.near=this.near,t.object.far=this.far,t.object.focus=this.focus,t.object.aspect=this.aspect,this.view!==null&&(t.object.view=Object.assign({},this.view)),t.object.filmGauge=this.filmGauge,t.object.filmOffset=this.filmOffset,t}}),Fe.prototype=Object.assign(Object.create(ye.prototype),{constructor:Fe,isArrayCamera:!0});var oo=new u,wr=new u;Le.prototype.isFogExp2=!0,Le.prototype.clone=function(){return new Le(this.color,this.density)},Le.prototype.toJSON=function(){return{type:"FogExp2",color:this.color.getHex(),density:this.density}},Sn.prototype.isFog=!0,Sn.prototype.clone=function(){return new Sn(this.color,this.near,this.far)},Sn.prototype.toJSON=function(){return{type:"Fog",color:this.color.getHex(),near:this.near,far:this.far}},Xn.prototype=Object.assign(Object.create(F.prototype),{constructor:Xn,copy:function(t,e){return F.prototype.copy.call(this,t,e),t.background!==null&&(this.background=t.background.clone()),t.fog!==null&&(this.fog=t.fog.clone()),t.overrideMaterial!==null&&(this.overrideMaterial=t.overrideMaterial.clone()),this.autoUpdate=t.autoUpdate,this.matrixAutoUpdate=t.matrixAutoUpdate,this},toJSON:function(t){var e=F.prototype.toJSON.call(this,t);return this.background!==null&&(e.object.background=this.background.toJSON(t)),this.fog!==null&&(e.object.fog=this.fog.toJSON()),e}}),Object.defineProperty(zi.prototype,"needsUpdate",{set:function(t){t===!0&&this.version++}}),Object.assign(zi.prototype,{isInterleavedBuffer:!0,onUploadCallback:function(){},setArray:function(t){if(Array.isArray(t))throw new TypeError("THREE.BufferAttribute: array should be a Typed Array.");return this.count=t!==void 0?t.length/this.stride:0,this.array=t,this},setDynamic:function(t){return this.dynamic=t,this},copy:function(t){return this.array=new t.array.constructor(t.array),this.count=t.count,this.stride=t.stride,this.dynamic=t.dynamic,this},copyAt:function(t,e,i){t*=this.stride,i*=e.stride;for(var n=0,s=this.stride;n<s;n++)this.array[t+n]=e.array[i+n];return this},set:function(t,e){return e===void 0&&(e=0),this.array.set(t,e),this},clone:function(){return new this.constructor().copy(this)},onUpload:function(t){return this.onUploadCallback=t,this}}),Object.defineProperties(ki.prototype,{count:{get:function(){return this.data.count}},array:{get:function(){return this.data.array}}}),Object.assign(ki.prototype,{isInterleavedBufferAttribute:!0,setX:function(t,e){return this.data.array[t*this.data.stride+this.offset]=e,this},setY:function(t,e){return this.data.array[t*this.data.stride+this.offset+1]=e,this},setZ:function(t,e){return this.data.array[t*this.data.stride+this.offset+2]=e,this},setW:function(t,e){return this.data.array[t*this.data.stride+this.offset+3]=e,this},getX:function(t){return this.data.array[t*this.data.stride+this.offset]},getY:function(t){return this.data.array[t*this.data.stride+this.offset+1]},getZ:function(t){return this.data.array[t*this.data.stride+this.offset+2]},getW:function(t){return this.data.array[t*this.data.stride+this.offset+3]},setXY:function(t,e,i){return t=t*this.data.stride+this.offset,this.data.array[t+0]=e,this.data.array[t+1]=i,this},setXYZ:function(t,e,i,n){return t=t*this.data.stride+this.offset,this.data.array[t+0]=e,this.data.array[t+1]=i,this.data.array[t+2]=n,this},setXYZW:function(t,e,i,n,s){return t=t*this.data.stride+this.offset,this.data.array[t+0]=e,this.data.array[t+1]=i,this.data.array[t+2]=n,this.data.array[t+3]=s,this}}),Hi.prototype=Object.create(Yt.prototype),Hi.prototype.constructor=Hi,Hi.prototype.isSpriteMaterial=!0,Hi.prototype.copy=function(t){return Yt.prototype.copy.call(this,t),this.color.copy(t.color),this.map=t.map,this.rotation=t.rotation,this.sizeAttenuation=t.sizeAttenuation,this};var Pa;nn.prototype=Object.assign(Object.create(F.prototype),{constructor:nn,isSprite:!0,raycast:function(){function t(H,q,K,rt,xt,gt){s.subVectors(H,K).addScalar(.5).multiply(rt),xt!==void 0?(a.x=gt*s.x-xt*s.y,a.y=xt*s.x+gt*s.y):a.copy(s),H.copy(q),H.x+=a.x,H.y+=a.y,H.applyMatrix4(f)}var e=new u,i=new u,n=new u,s=new o,a=new o,f=new c,p=new u,v=new u,w=new u,C=new o,L=new o,B=new o;return function(H,q){i.setFromMatrixScale(this.matrixWorld),f.getInverse(this.modelViewMatrix).premultiply(this.matrixWorld),n.setFromMatrixPosition(this.modelViewMatrix);var K=this.material.rotation;if(K!==0)var rt=Math.cos(K),xt=Math.sin(K);K=this.center,t(p.set(-.5,-.5,0),n,K,i,xt,rt),t(v.set(.5,-.5,0),n,K,i,xt,rt),t(w.set(.5,.5,0),n,K,i,xt,rt),C.set(0,0),L.set(1,0),B.set(1,1);var gt=H.ray.intersectTriangle(p,v,w,!1,e);gt===null&&(t(v.set(-.5,.5,0),n,K,i,xt,rt),L.set(0,1),gt=H.ray.intersectTriangle(p,w,v,!1,e),gt===null)||(xt=H.ray.origin.distanceTo(e),xt<H.near||xt>H.far||q.push({distance:xt,point:e.clone(),uv:Oe.getUV(e,p,v,w,C,L,B,new o),face:null,object:this}))}}(),clone:function(){return new this.constructor(this.material).copy(this)},copy:function(t){return F.prototype.copy.call(this,t),t.center!==void 0&&this.center.copy(t.center),this}}),rn.prototype=Object.assign(Object.create(F.prototype),{constructor:rn,copy:function(t){F.prototype.copy.call(this,t,!1),t=t.levels;for(var e=0,i=t.length;e<i;e++){var n=t[e];this.addLevel(n.object.clone(),n.distance)}return this},addLevel:function(t,e){e===void 0&&(e=0),e=Math.abs(e);for(var i=this.levels,n=0;n<i.length&&!(e<i[n].distance);n++);i.splice(n,0,{distance:e,object:t}),this.add(t)},getObjectForDistance:function(t){for(var e=this.levels,i=1,n=e.length;i<n&&!(t<e[i].distance);i++);return e[i-1].object},raycast:function(){var t=new u;return function(e,i){t.setFromMatrixPosition(this.matrixWorld);var n=e.ray.origin.distanceTo(t);this.getObjectForDistance(n).raycast(e,i)}}(),update:function(){var t=new u,e=new u;return function(i){var n=this.levels;if(1<n.length){t.setFromMatrixPosition(i.matrixWorld),e.setFromMatrixPosition(this.matrixWorld),i=t.distanceTo(e),n[0].object.visible=!0;for(var s=1,a=n.length;s<a&&i>=n[s].distance;s++)n[s-1].object.visible=!1,n[s].object.visible=!0;for(;s<a;s++)n[s].object.visible=!1}}}(),toJSON:function(t){t=F.prototype.toJSON.call(this,t),t.object.levels=[];for(var e=this.levels,i=0,n=e.length;i<n;i++){var s=e[i];t.object.levels.push({object:s.object.uuid,distance:s.distance})}return t}}),Object.assign(un.prototype,{calculateInverses:function(){this.boneInverses=[];for(var t=0,e=this.bones.length;t<e;t++){var i=new c;this.bones[t]&&i.getInverse(this.bones[t].matrixWorld),this.boneInverses.push(i)}},pose:function(){var t,e,i=0;for(e=this.bones.length;i<e;i++)(t=this.bones[i])&&t.matrixWorld.getInverse(this.boneInverses[i]);for(i=0,e=this.bones.length;i<e;i++)(t=this.bones[i])&&(t.parent&&t.parent.isBone?(t.matrix.getInverse(t.parent.matrixWorld),t.matrix.multiply(t.matrixWorld)):t.matrix.copy(t.matrixWorld),t.matrix.decompose(t.position,t.quaternion,t.scale))},update:function(){var t=new c,e=new c;return function(){for(var i=this.bones,n=this.boneInverses,s=this.boneMatrices,a=this.boneTexture,f=0,p=i.length;f<p;f++)t.multiplyMatrices(i[f]?i[f].matrixWorld:e,n[f]),t.toArray(s,16*f);a!==void 0&&(a.needsUpdate=!0)}}(),clone:function(){return new un(this.bones,this.boneInverses)},getBoneByName:function(t){for(var e=0,i=this.bones.length;e<i;e++){var n=this.bones[e];if(n.name===t)return n}}}),cn.prototype=Object.assign(Object.create(F.prototype),{constructor:cn,isBone:!0}),Gi.prototype=Object.assign(Object.create(di.prototype),{constructor:Gi,isSkinnedMesh:!0,initBones:function(){var t=[],e;if(this.geometry&&this.geometry.bones!==void 0){var i=0;for(e=this.geometry.bones.length;i<e;i++){var n=this.geometry.bones[i],s=new cn;t.push(s),s.name=n.name,s.position.fromArray(n.pos),s.quaternion.fromArray(n.rotq),n.scl!==void 0&&s.scale.fromArray(n.scl)}for(i=0,e=this.geometry.bones.length;i<e;i++)n=this.geometry.bones[i],n.parent!==-1&&n.parent!==null&&t[n.parent]!==void 0?t[n.parent].add(t[i]):this.add(t[i])}return this.updateMatrixWorld(!0),t},bind:function(t,e){this.skeleton=t,e===void 0&&(this.updateMatrixWorld(!0),this.skeleton.calculateInverses(),e=this.matrixWorld),this.bindMatrix.copy(e),this.bindMatrixInverse.getInverse(e)},pose:function(){this.skeleton.pose()},normalizeSkinWeights:function(){var t;if(this.geometry&&this.geometry.isGeometry)for(t=0;t<this.geometry.skinWeights.length;t++){var e=this.geometry.skinWeights[t],i=1/e.manhattanLength();i!==1/0?e.multiplyScalar(i):e.set(1,0,0,0)}else if(this.geometry&&this.geometry.isBufferGeometry){e=new y;var n=this.geometry.attributes.skinWeight;for(t=0;t<n.count;t++)e.x=n.getX(t),e.y=n.getY(t),e.z=n.getZ(t),e.w=n.getW(t),i=1/e.manhattanLength(),i!==1/0?e.multiplyScalar(i):e.set(1,0,0,0),n.setXYZW(t,e.x,e.y,e.z,e.w)}},updateMatrixWorld:function(t){di.prototype.updateMatrixWorld.call(this,t),this.bindMode==="attached"?this.bindMatrixInverse.getInverse(this.matrixWorld):this.bindMode==="detached"?this.bindMatrixInverse.getInverse(this.bindMatrix):console.warn("THREE.SkinnedMesh: Unrecognized bindMode: "+this.bindMode)},clone:function(){return new this.constructor(this.geometry,this.material).copy(this)}}),Bi.prototype=Object.create(Yt.prototype),Bi.prototype.constructor=Bi,Bi.prototype.isLineBasicMaterial=!0,Bi.prototype.copy=function(t){return Yt.prototype.copy.call(this,t),this.color.copy(t.color),this.linewidth=t.linewidth,this.linecap=t.linecap,this.linejoin=t.linejoin,this},ji.prototype=Object.assign(Object.create(F.prototype),{constructor:ji,isLine:!0,computeLineDistances:function(){var t=new u,e=new u;return function(){var i=this.geometry;if(i.isBufferGeometry)if(i.index===null){for(var n=i.attributes.position,s=[0],a=1,f=n.count;a<f;a++)t.fromBufferAttribute(n,a-1),e.fromBufferAttribute(n,a),s[a]=s[a-1],s[a]+=t.distanceTo(e);i.addAttribute("lineDistance",new Et(s,1))}else console.warn("THREE.Line.computeLineDistances(): Computation only possible with non-indexed BufferGeometry.");else if(i.isGeometry)for(n=i.vertices,s=i.lineDistances,s[0]=0,a=1,f=n.length;a<f;a++)s[a]=s[a-1],s[a]+=n[a-1].distanceTo(n[a]);return this}}(),raycast:function(){var t=new c,e=new Oi,i=new D;return function(n,s){var a=n.linePrecision,f=this.geometry,p=this.matrixWorld;if(f.boundingSphere===null&&f.computeBoundingSphere(),i.copy(f.boundingSphere),i.applyMatrix4(p),i.radius+=a,n.ray.intersectsSphere(i)!==!1){t.getInverse(p),e.copy(n.ray).applyMatrix4(t),a/=(this.scale.x+this.scale.y+this.scale.z)/3,a*=a;var v=new u,w=new u;p=new u;var C=new u,L=this&&this.isLineSegments?2:1;if(f.isBufferGeometry){var B=f.index,H=f.attributes.position.array;if(B!==null){B=B.array,f=0;for(var q=B.length-1;f<q;f+=L){var K=B[f+1];v.fromArray(H,3*B[f]),w.fromArray(H,3*K),K=e.distanceSqToSegment(v,w,C,p),K>a||(C.applyMatrix4(this.matrixWorld),K=n.ray.origin.distanceTo(C),K<n.near||K>n.far||s.push({distance:K,point:p.clone().applyMatrix4(this.matrixWorld),index:f,face:null,faceIndex:null,object:this}))}}else for(f=0,q=H.length/3-1;f<q;f+=L)v.fromArray(H,3*f),w.fromArray(H,3*f+3),K=e.distanceSqToSegment(v,w,C,p),K>a||(C.applyMatrix4(this.matrixWorld),K=n.ray.origin.distanceTo(C),K<n.near||K>n.far||s.push({distance:K,point:p.clone().applyMatrix4(this.matrixWorld),index:f,face:null,faceIndex:null,object:this}))}else if(f.isGeometry)for(v=f.vertices,w=v.length,f=0;f<w-1;f+=L)K=e.distanceSqToSegment(v[f],v[f+1],C,p),K>a||(C.applyMatrix4(this.matrixWorld),K=n.ray.origin.distanceTo(C),K<n.near||K>n.far||s.push({distance:K,point:p.clone().applyMatrix4(this.matrixWorld),index:f,face:null,faceIndex:null,object:this}))}}}(),copy:function(t){return F.prototype.copy.call(this,t),this.geometry.copy(t.geometry),this.material.copy(t.material),this},clone:function(){return new this.constructor().copy(this)}}),gi.prototype=Object.assign(Object.create(ji.prototype),{constructor:gi,isLineSegments:!0,computeLineDistances:function(){var t=new u,e=new u;return function(){var i=this.geometry;if(i.isBufferGeometry)if(i.index===null){for(var n=i.attributes.position,s=[],a=0,f=n.count;a<f;a+=2)t.fromBufferAttribute(n,a),e.fromBufferAttribute(n,a+1),s[a]=a===0?0:s[a-1],s[a+1]=s[a]+t.distanceTo(e);i.addAttribute("lineDistance",new Et(s,1))}else console.warn("THREE.LineSegments.computeLineDistances(): Computation only possible with non-indexed BufferGeometry.");else if(i.isGeometry)for(n=i.vertices,s=i.lineDistances,a=0,f=n.length;a<f;a+=2)t.copy(n[a]),e.copy(n[a+1]),s[a]=a===0?0:s[a-1],s[a+1]=s[a]+t.distanceTo(e);return this}}()}),cs.prototype=Object.assign(Object.create(ji.prototype),{constructor:cs,isLineLoop:!0}),Fn.prototype=Object.create(Yt.prototype),Fn.prototype.constructor=Fn,Fn.prototype.isPointsMaterial=!0,Fn.prototype.copy=function(t){return Yt.prototype.copy.call(this,t),this.color.copy(t.color),this.map=t.map,this.size=t.size,this.sizeAttenuation=t.sizeAttenuation,this.morphTargets=t.morphTargets,this},oa.prototype=Object.assign(Object.create(F.prototype),{constructor:oa,isPoints:!0,raycast:function(){var t=new c,e=new Oi,i=new D;return function(n,s){function a(rt,xt){var gt=e.distanceSqToPoint(rt);gt<C&&(e.closestPointToPoint(rt,L),L.applyMatrix4(v),rt=n.ray.origin.distanceTo(L),rt<n.near||rt>n.far||s.push({distance:rt,distanceToRay:Math.sqrt(gt),point:L.clone(),index:xt,face:null,object:f}))}var f=this,p=this.geometry,v=this.matrixWorld,w=n.params.Points.threshold;if(p.boundingSphere===null&&p.computeBoundingSphere(),i.copy(p.boundingSphere),i.applyMatrix4(v),i.radius+=w,n.ray.intersectsSphere(i)!==!1){t.getInverse(v),e.copy(n.ray).applyMatrix4(t),w/=(this.scale.x+this.scale.y+this.scale.z)/3;var C=w*w;w=new u;var L=new u;if(p.isBufferGeometry){var B=p.index;if(p=p.attributes.position.array,B!==null){var H=B.array;B=0;for(var q=H.length;B<q;B++){var K=H[B];w.fromArray(p,3*K),a(w,K)}}else for(B=0,H=p.length/3;B<H;B++)w.fromArray(p,3*B),a(w,B)}else for(w=p.vertices,B=0,H=w.length;B<H;B++)a(w[B],B)}}}(),clone:function(){return new this.constructor(this.geometry,this.material).copy(this)}}),Rh.prototype=Object.assign(Object.create(_.prototype),{constructor:Rh,isVideoTexture:!0,update:function(){var t=this.image;t.readyState>=t.HAVE_CURRENT_DATA&&(this.needsUpdate=!0)}}),qs.prototype=Object.create(_.prototype),qs.prototype.constructor=qs,qs.prototype.isCompressedTexture=!0,Za.prototype=Object.create(_.prototype),Za.prototype.constructor=Za,Za.prototype.isCanvasTexture=!0,Ja.prototype=Object.create(_.prototype),Ja.prototype.constructor=Ja,Ja.prototype.isDepthTexture=!0,aa.prototype=Object.create(Ft.prototype),aa.prototype.constructor=aa,$a.prototype=Object.create(j.prototype),$a.prototype.constructor=$a,la.prototype=Object.create(Ft.prototype),la.prototype.constructor=la,Xi.prototype=Object.create(j.prototype),Xi.prototype.constructor=Xi,xi.prototype=Object.create(Ft.prototype),xi.prototype.constructor=xi,Ka.prototype=Object.create(j.prototype),Ka.prototype.constructor=Ka,ha.prototype=Object.create(xi.prototype),ha.prototype.constructor=ha,Qa.prototype=Object.create(j.prototype),Qa.prototype.constructor=Qa,_o.prototype=Object.create(xi.prototype),_o.prototype.constructor=_o,tl.prototype=Object.create(j.prototype),tl.prototype.constructor=tl,ua.prototype=Object.create(xi.prototype),ua.prototype.constructor=ua,ca.prototype=Object.create(j.prototype),ca.prototype.constructor=ca,fa.prototype=Object.create(xi.prototype),fa.prototype.constructor=fa,gn.prototype=Object.create(j.prototype),gn.prototype.constructor=gn,Ys.prototype=Object.create(Ft.prototype),Ys.prototype.constructor=Ys,Zr.prototype=Object.create(j.prototype),Zr.prototype.constructor=Zr,yo.prototype=Object.create(Ft.prototype),yo.prototype.constructor=yo,xo.prototype=Object.create(j.prototype),xo.prototype.constructor=xo,Un.prototype=Object.create(Ft.prototype),Un.prototype.constructor=Un;var Du={triangulate:function(t,e,i){i=i||2;var n=e&&e.length,s=n?e[0]*i:t.length,a=Oh(t,0,s,i,!0),f=[];if(!a)return f;var p;if(n){var v=i;n=[];var w,C=0;for(w=e.length;C<w;C++){var L=e[C]*v,B=C<w-1?e[C+1]*v:t.length;L=Oh(t,L,B,v,!1),L===L.next&&(L.steiner=!0),n.push(_r(L))}for(n.sort(xu),C=0;C<n.length;C++)e=n[C],v=a,(v=wu(e,v))&&(e=el(v,e),pa(e,e.next)),a=pa(a,a.next)}if(t.length>80*i){var H=p=t[0],q=n=t[1];for(v=i;v<s;v+=i)C=t[v],e=t[v+1],C<H&&(H=C),e<q&&(q=e),C>p&&(p=C),e>n&&(n=e);p=Math.max(p-H,n-q),p=p!==0?1/p:0}return da(a,f,i,H,q,p),f}},ws={area:function(t){for(var e=t.length,i=0,n=e-1,s=0;s<e;n=s++)i+=t[n].x*t[s].y-t[s].x*t[n].y;return .5*i},isClockWise:function(t){return 0>ws.area(t)},triangulateShape:function(t,e){var i=[],n=[],s=[];ql(t),Tu(i,t);var a=t.length;for(e.forEach(ql),t=0;t<e.length;t++)n.push(a),a+=e[t].length,Tu(i,e[t]);for(e=Du.triangulate(i,n),t=0;t<e.length;t+=3)s.push(e.slice(t,t+3));return s}};Cs.prototype=Object.create(j.prototype),Cs.prototype.constructor=Cs,Cs.prototype.toJSON=function(){var t=j.prototype.toJSON.call(this);return Mu(this.parameters.shapes,this.parameters.options,t)},ps.prototype=Object.create(Ft.prototype),ps.prototype.constructor=ps,ps.prototype.toJSON=function(){var t=Ft.prototype.toJSON.call(this);return Mu(this.parameters.shapes,this.parameters.options,t)};var xl={generateTopUV:function(t,e,i,n,s){t=e[3*n],n=e[3*n+1];var a=e[3*s];return s=e[3*s+1],[new o(e[3*i],e[3*i+1]),new o(t,n),new o(a,s)]},generateSideWallUV:function(t,e,i,n,s,a){t=e[3*i];var f=e[3*i+1];i=e[3*i+2];var p=e[3*n],v=e[3*n+1];n=e[3*n+2];var w=e[3*s],C=e[3*s+1];s=e[3*s+2];var L=e[3*a],B=e[3*a+1];return e=e[3*a+2],.01>Math.abs(f-v)?[new o(t,1-i),new o(p,1-n),new o(w,1-s),new o(L,1-e)]:[new o(f,1-i),new o(v,1-n),new o(C,1-s),new o(B,1-e)]}};il.prototype=Object.create(j.prototype),il.prototype.constructor=il,To.prototype=Object.create(ps.prototype),To.prototype.constructor=To,Zs.prototype=Object.create(j.prototype),Zs.prototype.constructor=Zs,Or.prototype=Object.create(Ft.prototype),Or.prototype.constructor=Or,nl.prototype=Object.create(j.prototype),nl.prototype.constructor=nl,Mo.prototype=Object.create(Ft.prototype),Mo.prototype.constructor=Mo,ma.prototype=Object.create(j.prototype),ma.prototype.constructor=ma,Js.prototype=Object.create(Ft.prototype),Js.prototype.constructor=Js,Ps.prototype=Object.create(j.prototype),Ps.prototype.constructor=Ps,Ps.prototype.toJSON=function(){var t=j.prototype.toJSON.call(this);return Su(this.parameters.shapes,t)},$s.prototype=Object.create(Ft.prototype),$s.prototype.constructor=$s,$s.prototype.toJSON=function(){var t=Ft.prototype.toJSON.call(this);return Su(this.parameters.shapes,t)},Ks.prototype=Object.create(Ft.prototype),Ks.prototype.constructor=Ks,Ls.prototype=Object.create(j.prototype),Ls.prototype.constructor=Ls,Rs.prototype=Object.create(Ft.prototype),Rs.prototype.constructor=Rs,ga.prototype=Object.create(Ls.prototype),ga.prototype.constructor=ga,Gn.prototype=Object.create(Rs.prototype),Gn.prototype.constructor=Gn,So.prototype=Object.create(j.prototype),So.prototype.constructor=So,ds.prototype=Object.create(Ft.prototype),ds.prototype.constructor=ds;var _n=Object.freeze({WireframeGeometry:aa,ParametricGeometry:$a,ParametricBufferGeometry:la,TetrahedronGeometry:Ka,TetrahedronBufferGeometry:ha,OctahedronGeometry:Qa,OctahedronBufferGeometry:_o,IcosahedronGeometry:tl,IcosahedronBufferGeometry:ua,DodecahedronGeometry:ca,DodecahedronBufferGeometry:fa,PolyhedronGeometry:Xi,PolyhedronBufferGeometry:xi,TubeGeometry:gn,TubeBufferGeometry:Ys,TorusKnotGeometry:Zr,TorusKnotBufferGeometry:yo,TorusGeometry:xo,TorusBufferGeometry:Un,TextGeometry:il,TextBufferGeometry:To,SphereGeometry:Zs,SphereBufferGeometry:Or,RingGeometry:nl,RingBufferGeometry:Mo,PlaneGeometry:ke,PlaneBufferGeometry:ce,LatheGeometry:ma,LatheBufferGeometry:Js,ShapeGeometry:Ps,ShapeBufferGeometry:$s,ExtrudeGeometry:Cs,ExtrudeBufferGeometry:ps,EdgesGeometry:Ks,ConeGeometry:ga,ConeBufferGeometry:Gn,CylinderGeometry:Ls,CylinderBufferGeometry:Rs,CircleGeometry:So,CircleBufferGeometry:ds,BoxGeometry:Ot,BoxBufferGeometry:Bt});Qs.prototype=Object.create(Yt.prototype),Qs.prototype.constructor=Qs,Qs.prototype.isShadowMaterial=!0,Qs.prototype.copy=function(t){return Yt.prototype.copy.call(this,t),this.color.copy(t.color),this},Eo.prototype=Object.create($e.prototype),Eo.prototype.constructor=Eo,Eo.prototype.isRawShaderMaterial=!0,ms.prototype=Object.create(Yt.prototype),ms.prototype.constructor=ms,ms.prototype.isMeshStandardMaterial=!0,ms.prototype.copy=function(t){return Yt.prototype.copy.call(this,t),this.defines={STANDARD:""},this.color.copy(t.color),this.roughness=t.roughness,this.metalness=t.metalness,this.map=t.map,this.lightMap=t.lightMap,this.lightMapIntensity=t.lightMapIntensity,this.aoMap=t.aoMap,this.aoMapIntensity=t.aoMapIntensity,this.emissive.copy(t.emissive),this.emissiveMap=t.emissiveMap,this.emissiveIntensity=t.emissiveIntensity,this.bumpMap=t.bumpMap,this.bumpScale=t.bumpScale,this.normalMap=t.normalMap,this.normalMapType=t.normalMapType,this.normalScale.copy(t.normalScale),this.displacementMap=t.displacementMap,this.displacementScale=t.displacementScale,this.displacementBias=t.displacementBias,this.roughnessMap=t.roughnessMap,this.metalnessMap=t.metalnessMap,this.alphaMap=t.alphaMap,this.envMap=t.envMap,this.envMapIntensity=t.envMapIntensity,this.refractionRatio=t.refractionRatio,this.wireframe=t.wireframe,this.wireframeLinewidth=t.wireframeLinewidth,this.wireframeLinecap=t.wireframeLinecap,this.wireframeLinejoin=t.wireframeLinejoin,this.skinning=t.skinning,this.morphTargets=t.morphTargets,this.morphNormals=t.morphNormals,this},bo.prototype=Object.create(ms.prototype),bo.prototype.constructor=bo,bo.prototype.isMeshPhysicalMaterial=!0,bo.prototype.copy=function(t){return ms.prototype.copy.call(this,t),this.defines={PHYSICAL:""},this.reflectivity=t.reflectivity,this.clearCoat=t.clearCoat,this.clearCoatRoughness=t.clearCoatRoughness,this},Jr.prototype=Object.create(Yt.prototype),Jr.prototype.constructor=Jr,Jr.prototype.isMeshPhongMaterial=!0,Jr.prototype.copy=function(t){return Yt.prototype.copy.call(this,t),this.color.copy(t.color),this.specular.copy(t.specular),this.shininess=t.shininess,this.map=t.map,this.lightMap=t.lightMap,this.lightMapIntensity=t.lightMapIntensity,this.aoMap=t.aoMap,this.aoMapIntensity=t.aoMapIntensity,this.emissive.copy(t.emissive),this.emissiveMap=t.emissiveMap,this.emissiveIntensity=t.emissiveIntensity,this.bumpMap=t.bumpMap,this.bumpScale=t.bumpScale,this.normalMap=t.normalMap,this.normalMapType=t.normalMapType,this.normalScale.copy(t.normalScale),this.displacementMap=t.displacementMap,this.displacementScale=t.displacementScale,this.displacementBias=t.displacementBias,this.specularMap=t.specularMap,this.alphaMap=t.alphaMap,this.envMap=t.envMap,this.combine=t.combine,this.reflectivity=t.reflectivity,this.refractionRatio=t.refractionRatio,this.wireframe=t.wireframe,this.wireframeLinewidth=t.wireframeLinewidth,this.wireframeLinecap=t.wireframeLinecap,this.wireframeLinejoin=t.wireframeLinejoin,this.skinning=t.skinning,this.morphTargets=t.morphTargets,this.morphNormals=t.morphNormals,this},Ao.prototype=Object.create(Jr.prototype),Ao.prototype.constructor=Ao,Ao.prototype.isMeshToonMaterial=!0,Ao.prototype.copy=function(t){return Jr.prototype.copy.call(this,t),this.gradientMap=t.gradientMap,this},Co.prototype=Object.create(Yt.prototype),Co.prototype.constructor=Co,Co.prototype.isMeshNormalMaterial=!0,Co.prototype.copy=function(t){return Yt.prototype.copy.call(this,t),this.bumpMap=t.bumpMap,this.bumpScale=t.bumpScale,this.normalMap=t.normalMap,this.normalMapType=t.normalMapType,this.normalScale.copy(t.normalScale),this.displacementMap=t.displacementMap,this.displacementScale=t.displacementScale,this.displacementBias=t.displacementBias,this.wireframe=t.wireframe,this.wireframeLinewidth=t.wireframeLinewidth,this.skinning=t.skinning,this.morphTargets=t.morphTargets,this.morphNormals=t.morphNormals,this},Ir.prototype=Object.create(Yt.prototype),Ir.prototype.constructor=Ir,Ir.prototype.isMeshLambertMaterial=!0,Ir.prototype.copy=function(t){return Yt.prototype.copy.call(this,t),this.color.copy(t.color),this.map=t.map,this.lightMap=t.lightMap,this.lightMapIntensity=t.lightMapIntensity,this.aoMap=t.aoMap,this.aoMapIntensity=t.aoMapIntensity,this.emissive.copy(t.emissive),this.emissiveMap=t.emissiveMap,this.emissiveIntensity=t.emissiveIntensity,this.specularMap=t.specularMap,this.alphaMap=t.alphaMap,this.envMap=t.envMap,this.combine=t.combine,this.reflectivity=t.reflectivity,this.refractionRatio=t.refractionRatio,this.wireframe=t.wireframe,this.wireframeLinewidth=t.wireframeLinewidth,this.wireframeLinecap=t.wireframeLinecap,this.wireframeLinejoin=t.wireframeLinejoin,this.skinning=t.skinning,this.morphTargets=t.morphTargets,this.morphNormals=t.morphNormals,this},Po.prototype=Object.create(Yt.prototype),Po.prototype.constructor=Po,Po.prototype.isMeshMatcapMaterial=!0,Po.prototype.copy=function(t){return Yt.prototype.copy.call(this,t),this.defines={MATCAP:""},this.color.copy(t.color),this.matcap=t.matcap,this.map=t.map,this.bumpMap=t.bumpMap,this.bumpScale=t.bumpScale,this.normalMap=t.normalMap,this.normalMapType=t.normalMapType,this.normalScale.copy(t.normalScale),this.displacementMap=t.displacementMap,this.displacementScale=t.displacementScale,this.displacementBias=t.displacementBias,this.alphaMap=t.alphaMap,this.skinning=t.skinning,this.morphTargets=t.morphTargets,this.morphNormals=t.morphNormals,this},Lo.prototype=Object.create(Bi.prototype),Lo.prototype.constructor=Lo,Lo.prototype.isLineDashedMaterial=!0,Lo.prototype.copy=function(t){return Bi.prototype.copy.call(this,t),this.scale=t.scale,this.dashSize=t.dashSize,this.gapSize=t.gapSize,this};var zu=Object.freeze({ShadowMaterial:Qs,SpriteMaterial:Hi,RawShaderMaterial:Eo,ShaderMaterial:$e,PointsMaterial:Fn,MeshPhysicalMaterial:bo,MeshStandardMaterial:ms,MeshPhongMaterial:Jr,MeshToonMaterial:Ao,MeshNormalMaterial:Co,MeshLambertMaterial:Ir,MeshDepthMaterial:oe,MeshDistanceMaterial:te,MeshBasicMaterial:Ge,MeshMatcapMaterial:Po,LineDashedMaterial:Lo,LineBasicMaterial:Bi,Material:Yt}),Yn={arraySlice:function(t,e,i){return Yn.isTypedArray(t)?new t.constructor(t.subarray(e,i!==void 0?i:t.length)):t.slice(e,i)},convertArray:function(t,e,i){return!t||!i&&t.constructor===e?t:typeof e.BYTES_PER_ELEMENT=="number"?new e(t):Array.prototype.slice.call(t)},isTypedArray:function(t){return ArrayBuffer.isView(t)&&!(t instanceof DataView)},getKeyframeOrder:function(t){for(var e=t.length,i=Array(e),n=0;n!==e;++n)i[n]=n;return i.sort(function(s,a){return t[s]-t[a]}),i},sortedArray:function(t,e,i){for(var n=t.length,s=new t.constructor(n),a=0,f=0;f!==n;++a)for(var p=i[a]*e,v=0;v!==e;++v)s[f++]=t[p+v];return s},flattenJSON:function(t,e,i,n){for(var s=1,a=t[0];a!==void 0&&a[n]===void 0;)a=t[s++];if(a!==void 0){var f=a[n];if(f!==void 0)if(Array.isArray(f))do f=a[n],f!==void 0&&(e.push(a.time),i.push.apply(i,f)),a=t[s++];while(a!==void 0);else if(f.toArray!==void 0)do f=a[n],f!==void 0&&(e.push(a.time),f.toArray(i,i.length)),a=t[s++];while(a!==void 0);else do f=a[n],f!==void 0&&(e.push(a.time),i.push(f)),a=t[s++];while(a!==void 0)}}};Object.assign($n.prototype,{evaluate:function(t){var e=this.parameterPositions,i=this._cachedIndex,n=e[i],s=e[i-1];t:{e:{i:{n:if(!(t<n)){for(var a=i+2;;){if(n===void 0){if(t<s)break n;return this._cachedIndex=i=e.length,this.afterEnd_(i-1,t,s)}if(i===a)break;if(s=n,n=e[++i],t<n)break e}n=e.length;break i}if(t>=s)break t;for(a=e[1],t<a&&(i=2,s=a),a=i-2;;){if(s===void 0)return this._cachedIndex=0,this.beforeStart_(0,t,n);if(i===a)break;if(n=s,s=e[--i-1],t>=s)break e}n=i,i=0}for(;i<n;)s=i+n>>>1,t<e[s]?n=s:i=s+1;if(n=e[i],s=e[i-1],s===void 0)return this._cachedIndex=0,this.beforeStart_(0,t,n);if(n===void 0)return this._cachedIndex=i=e.length,this.afterEnd_(i-1,s,t)}this._cachedIndex=i,this.intervalChanged_(i,s,n)}return this.interpolate_(i,s,t,n)},settings:null,DefaultSettings_:{},getSettings_:function(){return this.settings||this.DefaultSettings_},copySampleValue_:function(t){var e=this.resultBuffer,i=this.sampleValues,n=this.valueSize;t*=n;for(var s=0;s!==n;++s)e[s]=i[t+s];return e},interpolate_:function(){throw Error("call to abstract method")},intervalChanged_:function(){}}),Object.assign($n.prototype,{beforeStart_:$n.prototype.copySampleValue_,afterEnd_:$n.prototype.copySampleValue_}),rl.prototype=Object.assign(Object.create($n.prototype),{constructor:rl,DefaultSettings_:{endingStart:2400,endingEnd:2400},intervalChanged_:function(t,e,i){var n=this.parameterPositions,s=t-2,a=t+1,f=n[s],p=n[a];if(f===void 0)switch(this.getSettings_().endingStart){case 2401:s=t,f=2*e-i;break;case 2402:s=n.length-2,f=e+n[s]-n[s+1];break;default:s=t,f=i}if(p===void 0)switch(this.getSettings_().endingEnd){case 2401:a=t,p=2*i-e;break;case 2402:a=1,p=i+n[1]-n[0];break;default:a=t-1,p=e}t=.5*(i-e),n=this.valueSize,this._weightPrev=t/(e-f),this._weightNext=t/(p-i),this._offsetPrev=s*n,this._offsetNext=a*n},interpolate_:function(t,e,i,n){var s=this.resultBuffer,a=this.sampleValues,f=this.valueSize;t*=f;var p=t-f,v=this._offsetPrev,w=this._offsetNext,C=this._weightPrev,L=this._weightNext,B=(i-e)/(n-e);for(i=B*B,n=i*B,e=-C*n+2*C*i-C*B,C=(1+C)*n+(-1.5-2*C)*i+(-.5+C)*B+1,B=(-1-L)*n+(1.5+L)*i+.5*B,L=L*n-L*i,i=0;i!==f;++i)s[i]=e*a[v+i]+C*a[p+i]+B*a[t+i]+L*a[w+i];return s}}),Dr.prototype=Object.assign(Object.create($n.prototype),{constructor:Dr,interpolate_:function(t,e,i,n){var s=this.resultBuffer,a=this.sampleValues,f=this.valueSize;t*=f;var p=t-f;for(e=(i-e)/(n-e),i=1-e,n=0;n!==f;++n)s[n]=a[p+n]*i+a[t+n]*e;return s}}),Ro.prototype=Object.assign(Object.create($n.prototype),{constructor:Ro,interpolate_:function(t){return this.copySampleValue_(t-1)}}),Object.assign(Hn,{toJSON:function(t){var e=t.constructor;if(e.toJSON!==void 0)e=e.toJSON(t);else{e={name:t.name,times:Yn.convertArray(t.times,Array),values:Yn.convertArray(t.values,Array)};var i=t.getInterpolation();i!==t.DefaultInterpolation&&(e.interpolation=i)}return e.type=t.ValueTypeName,e}}),Object.assign(Hn.prototype,{constructor:Hn,TimeBufferType:Float32Array,ValueBufferType:Float32Array,DefaultInterpolation:2301,InterpolantFactoryMethodDiscrete:function(t){return new Ro(this.times,this.values,this.getValueSize(),t)},InterpolantFactoryMethodLinear:function(t){return new Dr(this.times,this.values,this.getValueSize(),t)},InterpolantFactoryMethodSmooth:function(t){return new rl(this.times,this.values,this.getValueSize(),t)},setInterpolation:function(t){switch(t){case 2300:var e=this.InterpolantFactoryMethodDiscrete;break;case 2301:e=this.InterpolantFactoryMethodLinear;break;case 2302:e=this.InterpolantFactoryMethodSmooth}if(e===void 0){if(e="unsupported interpolation for "+this.ValueTypeName+" keyframe track named "+this.name,this.createInterpolant===void 0)if(t!==this.DefaultInterpolation)this.setInterpolation(this.DefaultInterpolation);else throw Error(e);return console.warn("THREE.KeyframeTrack:",e),this}return this.createInterpolant=e,this},getInterpolation:function(){switch(this.createInterpolant){case this.InterpolantFactoryMethodDiscrete:return 2300;case this.InterpolantFactoryMethodLinear:return 2301;case this.InterpolantFactoryMethodSmooth:return 2302}},getValueSize:function(){return this.values.length/this.times.length},shift:function(t){if(t!==0)for(var e=this.times,i=0,n=e.length;i!==n;++i)e[i]+=t;return this},scale:function(t){if(t!==1)for(var e=this.times,i=0,n=e.length;i!==n;++i)e[i]*=t;return this},trim:function(t,e){for(var i=this.times,n=i.length,s=0,a=n-1;s!==n&&i[s]<t;)++s;for(;a!==-1&&i[a]>e;)--a;return++a,(s!==0||a!==n)&&(s>=a&&(a=Math.max(a,1),s=a-1),t=this.getValueSize(),this.times=Yn.arraySlice(i,s,a),this.values=Yn.arraySlice(this.values,s*t,a*t)),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 i=this.times;e=this.values;var n=i.length;n===0&&(console.error("THREE.KeyframeTrack: Track is empty.",this),t=!1);for(var s=null,a=0;a!==n;a++){var f=i[a];if(typeof f=="number"&&isNaN(f)){console.error("THREE.KeyframeTrack: Time is not a valid number.",this,a,f),t=!1;break}if(s!==null&&s>f){console.error("THREE.KeyframeTrack: Out of order keys.",this,a,f,s),t=!1;break}s=f}if(e!==void 0&&Yn.isTypedArray(e)){for(a=0,i=e.length;a!==i;++a)if(n=e[a],isNaN(n)){console.error("THREE.KeyframeTrack: Value is not a valid number.",this,a,n),t=!1;break}}return t},optimize:function(){for(var t=this.times,e=this.values,i=this.getValueSize(),n=this.getInterpolation()===2302,s=1,a=t.length-1,f=1;f<a;++f){var p=!1,v=t[f];if(v!==t[f+1]&&(f!==1||v!==v[0]))if(n)p=!0;else{var w=f*i,C=w-i,L=w+i;for(v=0;v!==i;++v){var B=e[w+v];if(B!==e[C+v]||B!==e[L+v]){p=!0;break}}}if(p){if(f!==s)for(t[s]=t[f],p=f*i,w=s*i,v=0;v!==i;++v)e[w+v]=e[p+v];++s}}if(0<a){for(t[s]=t[a],p=a*i,w=s*i,v=0;v!==i;++v)e[w+v]=e[p+v];++s}return s!==t.length&&(this.times=Yn.arraySlice(t,0,s),this.values=Yn.arraySlice(e,0,s*i)),this}}),Yl.prototype=Object.assign(Object.create(Hn.prototype),{constructor:Yl,ValueTypeName:"bool",ValueBufferType:Array,DefaultInterpolation:2300,InterpolantFactoryMethodLinear:void 0,InterpolantFactoryMethodSmooth:void 0}),Zl.prototype=Object.assign(Object.create(Hn.prototype),{constructor:Zl,ValueTypeName:"color"}),$r.prototype=Object.assign(Object.create(Hn.prototype),{constructor:$r,ValueTypeName:"number"}),ar.prototype=Object.assign(Object.create($n.prototype),{constructor:ar,interpolate_:function(t,e,i,n){var s=this.resultBuffer,a=this.sampleValues,f=this.valueSize;for(t*=f,e=(i-e)/(n-e),i=t+f;t!==i;t+=4)d.slerpFlat(s,0,a,t-f,a,t,e);return s}}),va.prototype=Object.assign(Object.create(Hn.prototype),{constructor:va,ValueTypeName:"quaternion",DefaultInterpolation:2301,InterpolantFactoryMethodLinear:function(t){return new ar(this.times,this.values,this.getValueSize(),t)},InterpolantFactoryMethodSmooth:void 0}),Jl.prototype=Object.assign(Object.create(Hn.prototype),{constructor:Jl,ValueTypeName:"string",ValueBufferType:Array,DefaultInterpolation:2300,InterpolantFactoryMethodLinear:void 0,InterpolantFactoryMethodSmooth:void 0}),_a.prototype=Object.assign(Object.create(Hn.prototype),{constructor:_a,ValueTypeName:"vector"}),Object.assign(yr,{parse:function(t){for(var e=[],i=t.tracks,n=1/(t.fps||1),s=0,a=i.length;s!==a;++s)e.push(Hc(i[s]).scale(n));return new yr(t.name,t.duration,e)},toJSON:function(t){var e=[],i=t.tracks;t={name:t.name,duration:t.duration,tracks:e,uuid:t.uuid};for(var n=0,s=i.length;n!==s;++n)e.push(Hn.toJSON(i[n]));return t},CreateFromMorphTargetSequence:function(t,e,i,n){for(var s=e.length,a=[],f=0;f<s;f++){var p=[],v=[];p.push((f+s-1)%s,f,(f+1)%s),v.push(0,1,0);var w=Yn.getKeyframeOrder(p);p=Yn.sortedArray(p,1,w),v=Yn.sortedArray(v,1,w),n||p[0]!==0||(p.push(s),v.push(v[0])),a.push(new $r(".morphTargetInfluences["+e[f].name+"]",p,v).scale(1/i))}return new yr(t,-1,a)},findByName:function(t,e){var i=t;for(Array.isArray(t)||(i=t.geometry&&t.geometry.animations||t.animations),t=0;t<i.length;t++)if(i[t].name===e)return i[t];return null},CreateClipsFromMorphTargetSequences:function(t,e,i){for(var n={},s=/^([\w-]*?)([\d]+)$/,a=0,f=t.length;a<f;a++){var p=t[a],v=p.name.match(s);if(v&&1<v.length){var w=v[1];(v=n[w])||(n[w]=v=[]),v.push(p)}}t=[];for(w in n)t.push(yr.CreateFromMorphTargetSequence(w,n[w],e,i));return t},parseAnimation:function(t,e){if(!t)return console.error("THREE.AnimationClip: No animation in JSONLoader data."),null;var i=function(K,rt,xt,gt,At){if(xt.length!==0){var wt=[],Vt=[];Yn.flattenJSON(xt,wt,Vt,gt),wt.length!==0&&At.push(new K(rt,wt,Vt))}},n=[],s=t.name||"default",a=t.length||-1,f=t.fps||30;t=t.hierarchy||[];for(var p=0;p<t.length;p++){var v=t[p].keys;if(v&&v.length!==0)if(v[0].morphTargets){a={};for(var w=0;w<v.length;w++)if(v[w].morphTargets)for(var C=0;C<v[w].morphTargets.length;C++)a[v[w].morphTargets[C]]=-1;for(var L in a){var B=[],H=[];for(C=0;C!==v[w].morphTargets.length;++C){var q=v[w];B.push(q.time),H.push(q.morphTarget===L?1:0)}n.push(new $r(".morphTargetInfluence["+L+"]",B,H))}a=a.length*(f||1)}else w=".bones["+e[p].name+"]",i(_a,w+".position",v,"pos",n),i(va,w+".quaternion",v,"rot",n),i(_a,w+".scale",v,"scl",n)}return n.length===0?null:new yr(s,a,n)}}),Object.assign(yr.prototype,{resetDuration:function(){for(var t=0,e=0,i=this.tracks.length;e!==i;++e){var n=this.tracks[e];t=Math.max(t,n.times[n.times.length-1])}return this.duration=t,this},trim:function(){for(var t=0;t<this.tracks.length;t++)this.tracks[t].trim(0,this.duration);return this},validate:function(){for(var t=!0,e=0;e<this.tracks.length;e++)t=t&&this.tracks[e].validate();return t},optimize:function(){for(var t=0;t<this.tracks.length;t++)this.tracks[t].optimize();return this}});var Ts={enabled:!1,files:{},add:function(t,e){this.enabled!==!1&&(this.files[t]=e)},get:function(t){if(this.enabled!==!1)return this.files[t]},remove:function(t){delete this.files[t]},clear:function(){this.files={}}},tr=new to,Br={};Object.assign(Lt.prototype,{load:function(t,e,i,n){t===void 0&&(t=""),this.path!==void 0&&(t=this.path+t),t=this.manager.resolveURL(t);var s=this,a=Ts.get(t);if(a!==void 0)return s.manager.itemStart(t),setTimeout(function(){e&&e(a),s.manager.itemEnd(t)},0),a;if(Br[t]!==void 0)Br[t].push({onLoad:e,onProgress:i,onError:n});else{var f=t.match(/^data:(.*?)(;base64)?,(.*)$/);if(f){i=f[1];var p=!!f[2];f=f[3],f=decodeURIComponent(f),p&&(f=atob(f));try{var v=(this.responseType||"").toLowerCase();switch(v){case"arraybuffer":case"blob":var w=new Uint8Array(f.length);for(p=0;p<f.length;p++)w[p]=f.charCodeAt(p);var C=v==="blob"?new Blob([w.buffer],{type:i}):w.buffer;break;case"document":C=new DOMParser().parseFromString(f,i);break;case"json":C=JSON.parse(f);break;default:C=f}setTimeout(function(){e&&e(C),s.manager.itemEnd(t)},0)}catch(B){setTimeout(function(){n&&n(B),s.manager.itemError(t),s.manager.itemEnd(t)},0)}}else{Br[t]=[],Br[t].push({onLoad:e,onProgress:i,onError:n});var L=new XMLHttpRequest;L.open("GET",t,!0),L.addEventListener("load",function(B){var H=this.response;Ts.add(t,H);var q=Br[t];if(delete Br[t],this.status===200||this.status===0){this.status===0&&console.warn("THREE.FileLoader: HTTP Status 0 received.");for(var K=0,rt=q.length;K<rt;K++){var xt=q[K];xt.onLoad&&xt.onLoad(H)}}else{for(K=0,rt=q.length;K<rt;K++)xt=q[K],xt.onError&&xt.onError(B);s.manager.itemError(t)}s.manager.itemEnd(t)},!1),L.addEventListener("progress",function(B){for(var H=Br[t],q=0,K=H.length;q<K;q++){var rt=H[q];rt.onProgress&&rt.onProgress(B)}},!1),L.addEventListener("error",function(B){var H=Br[t];delete Br[t];for(var q=0,K=H.length;q<K;q++){var rt=H[q];rt.onError&&rt.onError(B)}s.manager.itemError(t),s.manager.itemEnd(t)},!1),L.addEventListener("abort",function(B){var H=Br[t];delete Br[t];for(var q=0,K=H.length;q<K;q++){var rt=H[q];rt.onError&&rt.onError(B)}s.manager.itemError(t),s.manager.itemEnd(t)},!1),this.responseType!==void 0&&(L.responseType=this.responseType),this.withCredentials!==void 0&&(L.withCredentials=this.withCredentials),L.overrideMimeType&&L.overrideMimeType(this.mimeType!==void 0?this.mimeType:"text/plain");for(p in this.requestHeader)L.setRequestHeader(p,this.requestHeader[p]);L.send(null)}return s.manager.itemStart(t),L}},setPath:function(t){return this.path=t,this},setResponseType:function(t){return this.responseType=t,this},setWithCredentials:function(t){return this.withCredentials=t,this},setMimeType:function(t){return this.mimeType=t,this},setRequestHeader:function(t){return this.requestHeader=t,this}}),Object.assign(Qt.prototype,{load:function(t,e,i,n){var s=this,a=new Lt(s.manager);a.setPath(s.path),a.load(t,function(f){e(s.parse(JSON.parse(f)))},i,n)},parse:function(t,e){for(var i=[],n=0;n<t.length;n++){var s=yr.parse(t[n]);i.push(s)}e(i)},setPath:function(t){return this.path=t,this}}),Object.assign(Zt.prototype,{load:function(t,e,i,n){function s(B){v.load(t[B],function(H){H=a._parser(H,!0),f[B]={width:H.width,height:H.height,format:H.format,mipmaps:H.mipmaps},w+=1,w===6&&(H.mipmapCount===1&&(p.minFilter=1006),p.format=H.format,p.needsUpdate=!0,e&&e(p))},i,n)}var a=this,f=[],p=new qs;p.image=f;var v=new Lt(this.manager);if(v.setPath(this.path),v.setResponseType("arraybuffer"),Array.isArray(t))for(var w=0,C=0,L=t.length;C<L;++C)s(C);else v.load(t,function(B){if(B=a._parser(B,!0),B.isCubemap)for(var H=B.mipmaps.length/B.mipmapCount,q=0;q<H;q++){f[q]={mipmaps:[]};for(var K=0;K<B.mipmapCount;K++)f[q].mipmaps.push(B.mipmaps[q*B.mipmapCount+K]),f[q].format=B.format,f[q].width=B.width,f[q].height=B.height}else p.image.width=B.width,p.image.height=B.height,p.mipmaps=B.mipmaps;B.mipmapCount===1&&(p.minFilter=1006),p.format=B.format,p.needsUpdate=!0,e&&e(p)},i,n);return p},setPath:function(t){return this.path=t,this}}),Object.assign(Ue.prototype,{load:function(t,e,i,n){var s=this,a=new I,f=new Lt(this.manager);return f.setResponseType("arraybuffer"),f.setPath(this.path),f.load(t,function(p){(p=s._parser(p))&&(p.image!==void 0?a.image=p.image:p.data!==void 0&&(a.image.width=p.width,a.image.height=p.height,a.image.data=p.data),a.wrapS=p.wrapS!==void 0?p.wrapS:1001,a.wrapT=p.wrapT!==void 0?p.wrapT:1001,a.magFilter=p.magFilter!==void 0?p.magFilter:1006,a.minFilter=p.minFilter!==void 0?p.minFilter:1008,a.anisotropy=p.anisotropy!==void 0?p.anisotropy:1,p.format!==void 0&&(a.format=p.format),p.type!==void 0&&(a.type=p.type),p.mipmaps!==void 0&&(a.mipmaps=p.mipmaps),p.mipmapCount===1&&(a.minFilter=1006),a.needsUpdate=!0,e&&e(a,p))},i,n),a},setPath:function(t){return this.path=t,this}}),Object.assign(ai.prototype,{crossOrigin:"anonymous",load:function(t,e,i,n){function s(){v.removeEventListener("load",s,!1),v.removeEventListener("error",a,!1),Ts.add(t,this),e&&e(this),f.manager.itemEnd(t)}function a(w){v.removeEventListener("load",s,!1),v.removeEventListener("error",a,!1),n&&n(w),f.manager.itemError(t),f.manager.itemEnd(t)}t===void 0&&(t=""),this.path!==void 0&&(t=this.path+t),t=this.manager.resolveURL(t);var f=this,p=Ts.get(t);if(p!==void 0)return f.manager.itemStart(t),setTimeout(function(){e&&e(p),f.manager.itemEnd(t)},0),p;var v=document.createElementNS("http://www.w3.org/1999/xhtml","img");return v.addEventListener("load",s,!1),v.addEventListener("error",a,!1),t.substr(0,5)!=="data:"&&this.crossOrigin!==void 0&&(v.crossOrigin=this.crossOrigin),f.manager.itemStart(t),v.src=t,v},setCrossOrigin:function(t){return this.crossOrigin=t,this},setPath:function(t){return this.path=t,this}}),Object.assign(Ni.prototype,{crossOrigin:"anonymous",load:function(t,e,i,n){function s(v){f.load(t[v],function(w){a.images[v]=w,p++,p===6&&(a.needsUpdate=!0,e&&e(a))},void 0,n)}var a=new z,f=new ai(this.manager);f.setCrossOrigin(this.crossOrigin),f.setPath(this.path);var p=0;for(i=0;i<t.length;++i)s(i);return a},setCrossOrigin:function(t){return this.crossOrigin=t,this},setPath:function(t){return this.path=t,this}}),Object.assign(fn.prototype,{crossOrigin:"anonymous",load:function(t,e,i,n){var s=new _,a=new ai(this.manager);return a.setCrossOrigin(this.crossOrigin),a.setPath(this.path),a.load(t,function(f){s.image=f,f=0<t.search(/\.jpe?g$/i)||t.search(/^data:image\/jpeg/)===0,s.format=f?1022:1023,s.needsUpdate=!0,e!==void 0&&e(s)},i,n),s},setCrossOrigin:function(t){return this.crossOrigin=t,this},setPath:function(t){return this.path=t,this}}),Object.assign(Ee.prototype,{getPoint:function(){return console.warn("THREE.Curve: .getPoint() not implemented."),null},getPointAt:function(t,e){return t=this.getUtoTmapping(t),this.getPoint(t,e)},getPoints:function(t){t===void 0&&(t=5);for(var e=[],i=0;i<=t;i++)e.push(this.getPoint(i/t));return e},getSpacedPoints:function(t){t===void 0&&(t=5);for(var e=[],i=0;i<=t;i++)e.push(this.getPointAt(i/t));return e},getLength:function(){var t=this.getLengths();return t[t.length-1]},getLengths:function(t){if(t===void 0&&(t=this.arcLengthDivisions),this.cacheArcLengths&&this.cacheArcLengths.length===t+1&&!this.needsUpdate)return this.cacheArcLengths;this.needsUpdate=!1;var e=[],i=this.getPoint(0),n,s=0;for(e.push(0),n=1;n<=t;n++){var a=this.getPoint(n/t);s+=a.distanceTo(i),e.push(s),i=a}return this.cacheArcLengths=e},updateArcLengths:function(){this.needsUpdate=!0,this.getLengths()},getUtoTmapping:function(t,e){var i=this.getLengths(),n=i.length;e=e||t*i[n-1];for(var s=0,a=n-1,f;s<=a;)if(t=Math.floor(s+(a-s)/2),f=i[t]-e,0>f)s=t+1;else if(0<f)a=t-1;else{a=t;break}return t=a,i[t]===e?t/(n-1):(s=i[t],(t+(e-s)/(i[t+1]-s))/(n-1))},getTangent:function(t){var e=t-1e-4;return t+=1e-4,0>e&&(e=0),1<t&&(t=1),e=this.getPoint(e),this.getPoint(t).clone().sub(e).normalize()},getTangentAt:function(t){return t=this.getUtoTmapping(t),this.getTangent(t)},computeFrenetFrames:function(t,e){var i=new u,n=[],s=[],a=[],f=new u,p=new c,v;for(v=0;v<=t;v++){var w=v/t;n[v]=this.getTangentAt(w),n[v].normalize()}s[0]=new u,a[0]=new u,v=Number.MAX_VALUE,w=Math.abs(n[0].x);var C=Math.abs(n[0].y),L=Math.abs(n[0].z);for(w<=v&&(v=w,i.set(1,0,0)),C<=v&&(v=C,i.set(0,1,0)),L<=v&&i.set(0,0,1),f.crossVectors(n[0],i).normalize(),s[0].crossVectors(n[0],f),a[0].crossVectors(n[0],s[0]),v=1;v<=t;v++)s[v]=s[v-1].clone(),a[v]=a[v-1].clone(),f.crossVectors(n[v-1],n[v]),f.length()>Number.EPSILON&&(f.normalize(),i=Math.acos(pi.clamp(n[v-1].dot(n[v]),-1,1)),s[v].applyMatrix4(p.makeRotationAxis(f,i))),a[v].crossVectors(n[v],s[v]);if(e===!0)for(i=Math.acos(pi.clamp(s[0].dot(s[t]),-1,1)),i/=t,0<n[0].dot(f.crossVectors(s[0],s[t]))&&(i=-i),v=1;v<=t;v++)s[v].applyMatrix4(p.makeRotationAxis(n[v],i*v)),a[v].crossVectors(n[v],s[v]);return{tangents:n,normals:s,binormals:a}},clone:function(){return new this.constructor().copy(this)},copy:function(t){return this.arcLengthDivisions=t.arcLengthDivisions,this},toJSON:function(){var t={metadata:{version:4.5,type:"Curve",generator:"Curve.toJSON"}};return t.arcLengthDivisions=this.arcLengthDivisions,t.type=this.type,t},fromJSON:function(t){return this.arcLengthDivisions=t.arcLengthDivisions,this}}),Kn.prototype=Object.create(Ee.prototype),Kn.prototype.constructor=Kn,Kn.prototype.isEllipseCurve=!0,Kn.prototype.getPoint=function(t,e){e=e||new o;for(var i=2*Math.PI,n=this.aEndAngle-this.aStartAngle,s=Math.abs(n)<Number.EPSILON;0>n;)n+=i;for(;n>i;)n-=i;n<Number.EPSILON&&(n=s?0:i),this.aClockwise!==!0||s||(n=n===i?-i:n-i),i=this.aStartAngle+t*n,t=this.aX+this.xRadius*Math.cos(i);var a=this.aY+this.yRadius*Math.sin(i);return this.aRotation!==0&&(i=Math.cos(this.aRotation),n=Math.sin(this.aRotation),s=t-this.aX,a-=this.aY,t=s*i-a*n+this.aX,a=s*n+a*i+this.aY),e.set(t,a)},Kn.prototype.copy=function(t){return Ee.prototype.copy.call(this,t),this.aX=t.aX,this.aY=t.aY,this.xRadius=t.xRadius,this.yRadius=t.yRadius,this.aStartAngle=t.aStartAngle,this.aEndAngle=t.aEndAngle,this.aClockwise=t.aClockwise,this.aRotation=t.aRotation,this},Kn.prototype.toJSON=function(){var t=Ee.prototype.toJSON.call(this);return t.aX=this.aX,t.aY=this.aY,t.xRadius=this.xRadius,t.yRadius=this.yRadius,t.aStartAngle=this.aStartAngle,t.aEndAngle=this.aEndAngle,t.aClockwise=this.aClockwise,t.aRotation=this.aRotation,t},Kn.prototype.fromJSON=function(t){return Ee.prototype.fromJSON.call(this,t),this.aX=t.aX,this.aY=t.aY,this.xRadius=t.xRadius,this.yRadius=t.yRadius,this.aStartAngle=t.aStartAngle,this.aEndAngle=t.aEndAngle,this.aClockwise=t.aClockwise,this.aRotation=t.aRotation,this},ya.prototype=Object.create(Kn.prototype),ya.prototype.constructor=ya,ya.prototype.isArcCurve=!0;var bn=new u,wl=new lr,rh=new lr,Nr=new lr;On.prototype=Object.create(Ee.prototype),On.prototype.constructor=On,On.prototype.isCatmullRomCurve3=!0,On.prototype.getPoint=function(t,e){e=e||new u;var i=this.points,n=i.length;t*=n-(this.closed?0:1);var s=Math.floor(t);if(t-=s,this.closed?s+=0<s?0:(Math.floor(Math.abs(s)/n)+1)*n:t===0&&s===n-1&&(s=n-2,t=1),this.closed||0<s)var a=i[(s-1)%n];else bn.subVectors(i[0],i[1]).add(i[0]),a=bn;var f=i[s%n],p=i[(s+1)%n];if(this.closed||s+2<n?i=i[(s+2)%n]:(bn.subVectors(i[n-1],i[n-2]).add(i[n-1]),i=bn),this.curveType==="centripetal"||this.curveType==="chordal"){var v=this.curveType==="chordal"?.5:.25;n=Math.pow(a.distanceToSquared(f),v),s=Math.pow(f.distanceToSquared(p),v),v=Math.pow(p.distanceToSquared(i),v),1e-4>s&&(s=1),1e-4>n&&(n=s),1e-4>v&&(v=s),wl.initNonuniformCatmullRom(a.x,f.x,p.x,i.x,n,s,v),rh.initNonuniformCatmullRom(a.y,f.y,p.y,i.y,n,s,v),Nr.initNonuniformCatmullRom(a.z,f.z,p.z,i.z,n,s,v)}else this.curveType==="catmullrom"&&(wl.initCatmullRom(a.x,f.x,p.x,i.x,this.tension),rh.initCatmullRom(a.y,f.y,p.y,i.y,this.tension),Nr.initCatmullRom(a.z,f.z,p.z,i.z,this.tension));return e.set(wl.calc(t),rh.calc(t),Nr.calc(t)),e},On.prototype.copy=function(t){Ee.prototype.copy.call(this,t),this.points=[];for(var e=0,i=t.points.length;e<i;e++)this.points.push(t.points[e].clone());return this.closed=t.closed,this.curveType=t.curveType,this.tension=t.tension,this},On.prototype.toJSON=function(){var t=Ee.prototype.toJSON.call(this);t.points=[];for(var e=0,i=this.points.length;e<i;e++)t.points.push(this.points[e].toArray());return t.closed=this.closed,t.curveType=this.curveType,t.tension=this.tension,t},On.prototype.fromJSON=function(t){Ee.prototype.fromJSON.call(this,t),this.points=[];for(var e=0,i=t.points.length;e<i;e++){var n=t.points[e];this.points.push(new u().fromArray(n))}return this.closed=t.closed,this.curveType=t.curveType,this.tension=t.tension,this},hr.prototype=Object.create(Ee.prototype),hr.prototype.constructor=hr,hr.prototype.isCubicBezierCurve=!0,hr.prototype.getPoint=function(t,e){e=e||new o;var i=this.v0,n=this.v1,s=this.v2,a=this.v3;return e.set(eo(t,i.x,n.x,s.x,a.x),eo(t,i.y,n.y,s.y,a.y)),e},hr.prototype.copy=function(t){return Ee.prototype.copy.call(this,t),this.v0.copy(t.v0),this.v1.copy(t.v1),this.v2.copy(t.v2),this.v3.copy(t.v3),this},hr.prototype.toJSON=function(){var t=Ee.prototype.toJSON.call(this);return t.v0=this.v0.toArray(),t.v1=this.v1.toArray(),t.v2=this.v2.toArray(),t.v3=this.v3.toArray(),t},hr.prototype.fromJSON=function(t){return Ee.prototype.fromJSON.call(this,t),this.v0.fromArray(t.v0),this.v1.fromArray(t.v1),this.v2.fromArray(t.v2),this.v3.fromArray(t.v3),this},Ti.prototype=Object.create(Ee.prototype),Ti.prototype.constructor=Ti,Ti.prototype.isCubicBezierCurve3=!0,Ti.prototype.getPoint=function(t,e){e=e||new u;var i=this.v0,n=this.v1,s=this.v2,a=this.v3;return e.set(eo(t,i.x,n.x,s.x,a.x),eo(t,i.y,n.y,s.y,a.y),eo(t,i.z,n.z,s.z,a.z)),e},Ti.prototype.copy=function(t){return Ee.prototype.copy.call(this,t),this.v0.copy(t.v0),this.v1.copy(t.v1),this.v2.copy(t.v2),this.v3.copy(t.v3),this},Ti.prototype.toJSON=function(){var t=Ee.prototype.toJSON.call(this);return t.v0=this.v0.toArray(),t.v1=this.v1.toArray(),t.v2=this.v2.toArray(),t.v3=this.v3.toArray(),t},Ti.prototype.fromJSON=function(t){return Ee.prototype.fromJSON.call(this,t),this.v0.fromArray(t.v0),this.v1.fromArray(t.v1),this.v2.fromArray(t.v2),this.v3.fromArray(t.v3),this},ur.prototype=Object.create(Ee.prototype),ur.prototype.constructor=ur,ur.prototype.isLineCurve=!0,ur.prototype.getPoint=function(t,e){return e=e||new o,t===1?e.copy(this.v2):(e.copy(this.v2).sub(this.v1),e.multiplyScalar(t).add(this.v1)),e},ur.prototype.getPointAt=function(t,e){return this.getPoint(t,e)},ur.prototype.getTangent=function(){return this.v2.clone().sub(this.v1).normalize()},ur.prototype.copy=function(t){return Ee.prototype.copy.call(this,t),this.v1.copy(t.v1),this.v2.copy(t.v2),this},ur.prototype.toJSON=function(){var t=Ee.prototype.toJSON.call(this);return t.v1=this.v1.toArray(),t.v2=this.v2.toArray(),t},ur.prototype.fromJSON=function(t){return Ee.prototype.fromJSON.call(this,t),this.v1.fromArray(t.v1),this.v2.fromArray(t.v2),this},zr.prototype=Object.create(Ee.prototype),zr.prototype.constructor=zr,zr.prototype.isLineCurve3=!0,zr.prototype.getPoint=function(t,e){return e=e||new u,t===1?e.copy(this.v2):(e.copy(this.v2).sub(this.v1),e.multiplyScalar(t).add(this.v1)),e},zr.prototype.getPointAt=function(t,e){return this.getPoint(t,e)},zr.prototype.copy=function(t){return Ee.prototype.copy.call(this,t),this.v1.copy(t.v1),this.v2.copy(t.v2),this},zr.prototype.toJSON=function(){var t=Ee.prototype.toJSON.call(this);return t.v1=this.v1.toArray(),t.v2=this.v2.toArray(),t},zr.prototype.fromJSON=function(t){return Ee.prototype.fromJSON.call(this,t),this.v1.fromArray(t.v1),this.v2.fromArray(t.v2),this},cr.prototype=Object.create(Ee.prototype),cr.prototype.constructor=cr,cr.prototype.isQuadraticBezierCurve=!0,cr.prototype.getPoint=function(t,e){e=e||new o;var i=this.v0,n=this.v1,s=this.v2;return e.set(gs(t,i.x,n.x,s.x),gs(t,i.y,n.y,s.y)),e},cr.prototype.copy=function(t){return Ee.prototype.copy.call(this,t),this.v0.copy(t.v0),this.v1.copy(t.v1),this.v2.copy(t.v2),this},cr.prototype.toJSON=function(){var t=Ee.prototype.toJSON.call(this);return t.v0=this.v0.toArray(),t.v1=this.v1.toArray(),t.v2=this.v2.toArray(),t},cr.prototype.fromJSON=function(t){return Ee.prototype.fromJSON.call(this,t),this.v0.fromArray(t.v0),this.v1.fromArray(t.v1),this.v2.fromArray(t.v2),this},vs.prototype=Object.create(Ee.prototype),vs.prototype.constructor=vs,vs.prototype.isQuadraticBezierCurve3=!0,vs.prototype.getPoint=function(t,e){e=e||new u;var i=this.v0,n=this.v1,s=this.v2;return e.set(gs(t,i.x,n.x,s.x),gs(t,i.y,n.y,s.y),gs(t,i.z,n.z,s.z)),e},vs.prototype.copy=function(t){return Ee.prototype.copy.call(this,t),this.v0.copy(t.v0),this.v1.copy(t.v1),this.v2.copy(t.v2),this},vs.prototype.toJSON=function(){var t=Ee.prototype.toJSON.call(this);return t.v0=this.v0.toArray(),t.v1=this.v1.toArray(),t.v2=this.v2.toArray(),t},vs.prototype.fromJSON=function(t){return Ee.prototype.fromJSON.call(this,t),this.v0.fromArray(t.v0),this.v1.fromArray(t.v1),this.v2.fromArray(t.v2),this},Kr.prototype=Object.create(Ee.prototype),Kr.prototype.constructor=Kr,Kr.prototype.isSplineCurve=!0,Kr.prototype.getPoint=function(t,e){e=e||new o;var i=this.points,n=(i.length-1)*t;t=Math.floor(n),n-=t;var s=i[t===0?t:t-1],a=i[t],f=i[t>i.length-2?i.length-1:t+1];return i=i[t>i.length-3?i.length-1:t+2],e.set(Eu(n,s.x,a.x,f.x,i.x),Eu(n,s.y,a.y,f.y,i.y)),e},Kr.prototype.copy=function(t){Ee.prototype.copy.call(this,t),this.points=[];for(var e=0,i=t.points.length;e<i;e++)this.points.push(t.points[e].clone());return this},Kr.prototype.toJSON=function(){var t=Ee.prototype.toJSON.call(this);t.points=[];for(var e=0,i=this.points.length;e<i;e++)t.points.push(this.points[e].toArray());return t},Kr.prototype.fromJSON=function(t){Ee.prototype.fromJSON.call(this,t),this.points=[];for(var e=0,i=t.points.length;e<i;e++){var n=t.points[e];this.points.push(new o().fromArray(n))}return this};var sh=Object.freeze({ArcCurve:ya,CatmullRomCurve3:On,CubicBezierCurve:hr,CubicBezierCurve3:Ti,EllipseCurve:Kn,LineCurve:ur,LineCurve3:zr,QuadraticBezierCurve:cr,QuadraticBezierCurve3:vs,SplineCurve:Kr});Os.prototype=Object.assign(Object.create(Ee.prototype),{constructor:Os,add:function(t){this.curves.push(t)},closePath:function(){var t=this.curves[0].getPoint(0),e=this.curves[this.curves.length-1].getPoint(1);t.equals(e)||this.curves.push(new ur(e,t))},getPoint:function(t){var e=t*this.getLength(),i=this.getCurveLengths();for(t=0;t<i.length;){if(i[t]>=e)return e=i[t]-e,t=this.curves[t],i=t.getLength(),t.getPointAt(i===0?0:1-e/i);t++}return null},getLength:function(){var t=this.getCurveLengths();return t[t.length-1]},updateArcLengths:function(){this.needsUpdate=!0,this.cacheLengths=null,this.getCurveLengths()},getCurveLengths:function(){if(this.cacheLengths&&this.cacheLengths.length===this.curves.length)return this.cacheLengths;for(var t=[],e=0,i=0,n=this.curves.length;i<n;i++)e+=this.curves[i].getLength(),t.push(e);return this.cacheLengths=t},getSpacedPoints:function(t){t===void 0&&(t=40);for(var e=[],i=0;i<=t;i++)e.push(this.getPoint(i/t));return this.autoClose&&e.push(e[0]),e},getPoints:function(t){t=t||12;for(var e=[],i,n=0,s=this.curves;n<s.length;n++){var a=s[n];a=a.getPoints(a&&a.isEllipseCurve?2*t:a&&(a.isLineCurve||a.isLineCurve3)?1:a&&a.isSplineCurve?t*a.points.length:t);for(var f=0;f<a.length;f++){var p=a[f];i&&i.equals(p)||(e.push(p),i=p)}}return this.autoClose&&1<e.length&&!e[e.length-1].equals(e[0])&&e.push(e[0]),e},copy:function(t){Ee.prototype.copy.call(this,t),this.curves=[];for(var e=0,i=t.curves.length;e<i;e++)this.curves.push(t.curves[e].clone());return this.autoClose=t.autoClose,this},toJSON:function(){var t=Ee.prototype.toJSON.call(this);t.autoClose=this.autoClose,t.curves=[];for(var e=0,i=this.curves.length;e<i;e++)t.curves.push(this.curves[e].toJSON());return t},fromJSON:function(t){Ee.prototype.fromJSON.call(this,t),this.autoClose=t.autoClose,this.curves=[];for(var e=0,i=t.curves.length;e<i;e++){var n=t.curves[e];this.curves.push(new sh[n.type]().fromJSON(n))}return this}}),fr.prototype=Object.assign(Object.create(Os.prototype),{constructor:fr,setFromPoints:function(t){this.moveTo(t[0].x,t[0].y);for(var e=1,i=t.length;e<i;e++)this.lineTo(t[e].x,t[e].y)},moveTo:function(t,e){this.currentPoint.set(t,e)},lineTo:function(t,e){var i=new ur(this.currentPoint.clone(),new o(t,e));this.curves.push(i),this.currentPoint.set(t,e)},quadraticCurveTo:function(t,e,i,n){t=new cr(this.currentPoint.clone(),new o(t,e),new o(i,n)),this.curves.push(t),this.currentPoint.set(i,n)},bezierCurveTo:function(t,e,i,n,s,a){t=new hr(this.currentPoint.clone(),new o(t,e),new o(i,n),new o(s,a)),this.curves.push(t),this.currentPoint.set(s,a)},splineThru:function(t){var e=[this.currentPoint.clone()].concat(t);e=new Kr(e),this.curves.push(e),this.currentPoint.copy(t[t.length-1])},arc:function(t,e,i,n,s,a){this.absarc(t+this.currentPoint.x,e+this.currentPoint.y,i,n,s,a)},absarc:function(t,e,i,n,s,a){this.absellipse(t,e,i,i,n,s,a)},ellipse:function(t,e,i,n,s,a,f,p){this.absellipse(t+this.currentPoint.x,e+this.currentPoint.y,i,n,s,a,f,p)},absellipse:function(t,e,i,n,s,a,f,p){t=new Kn(t,e,i,n,s,a,f,p),0<this.curves.length&&(e=t.getPoint(0),e.equals(this.currentPoint)||this.lineTo(e.x,e.y)),this.curves.push(t),t=t.getPoint(1),this.currentPoint.copy(t)},copy:function(t){return Os.prototype.copy.call(this,t),this.currentPoint.copy(t.currentPoint),this},toJSON:function(){var t=Os.prototype.toJSON.call(this);return t.currentPoint=this.currentPoint.toArray(),t},fromJSON:function(t){return Os.prototype.fromJSON.call(this,t),this.currentPoint.fromArray(t.currentPoint),this}}),Qn.prototype=Object.assign(Object.create(fr.prototype),{constructor:Qn,getPointsHoles:function(t){for(var e=[],i=0,n=this.holes.length;i<n;i++)e[i]=this.holes[i].getPoints(t);return e},extractPoints:function(t){return{shape:this.getPoints(t),holes:this.getPointsHoles(t)}},copy:function(t){fr.prototype.copy.call(this,t),this.holes=[];for(var e=0,i=t.holes.length;e<i;e++)this.holes.push(t.holes[e].clone());return this},toJSON:function(){var t=fr.prototype.toJSON.call(this);t.uuid=this.uuid,t.holes=[];for(var e=0,i=this.holes.length;e<i;e++)t.holes.push(this.holes[e].toJSON());return t},fromJSON:function(t){fr.prototype.fromJSON.call(this,t),this.uuid=t.uuid,this.holes=[];for(var e=0,i=t.holes.length;e<i;e++){var n=t.holes[e];this.holes.push(new fr().fromJSON(n))}return this}}),tn.prototype=Object.assign(Object.create(F.prototype),{constructor:tn,isLight:!0,copy:function(t){return F.prototype.copy.call(this,t),this.color.copy(t.color),this.intensity=t.intensity,this},toJSON:function(t){return t=F.prototype.toJSON.call(this,t),t.object.color=this.color.getHex(),t.object.intensity=this.intensity,this.groundColor!==void 0&&(t.object.groundColor=this.groundColor.getHex()),this.distance!==void 0&&(t.object.distance=this.distance),this.angle!==void 0&&(t.object.angle=this.angle),this.decay!==void 0&&(t.object.decay=this.decay),this.penumbra!==void 0&&(t.object.penumbra=this.penumbra),this.shadow!==void 0&&(t.object.shadow=this.shadow.toJSON()),t}}),sl.prototype=Object.assign(Object.create(tn.prototype),{constructor:sl,isHemisphereLight:!0,copy:function(t){return tn.prototype.copy.call(this,t),this.groundColor.copy(t.groundColor),this}}),Object.assign(_s.prototype,{copy:function(t){return this.camera=t.camera.clone(),this.bias=t.bias,this.radius=t.radius,this.mapSize.copy(t.mapSize),this},clone:function(){return new this.constructor().copy(this)},toJSON:function(){var t={};return this.bias!==0&&(t.bias=this.bias),this.radius!==1&&(t.radius=this.radius),(this.mapSize.x!==512||this.mapSize.y!==512)&&(t.mapSize=this.mapSize.toArray()),t.camera=this.camera.toJSON(!1).object,delete t.camera.matrix,t}}),ol.prototype=Object.assign(Object.create(_s.prototype),{constructor:ol,isSpotLightShadow:!0,update:function(t){var e=this.camera,i=2*pi.RAD2DEG*t.angle,n=this.mapSize.width/this.mapSize.height;t=t.distance||e.far,(i!==e.fov||n!==e.aspect||t!==e.far)&&(e.fov=i,e.aspect=n,e.far=t,e.updateProjectionMatrix())}}),al.prototype=Object.assign(Object.create(tn.prototype),{constructor:al,isSpotLight:!0,copy:function(t){return tn.prototype.copy.call(this,t),this.distance=t.distance,this.angle=t.angle,this.penumbra=t.penumbra,this.decay=t.decay,this.target=t.target.clone(),this.shadow=t.shadow.clone(),this}}),Oo.prototype=Object.assign(Object.create(tn.prototype),{constructor:Oo,isPointLight:!0,copy:function(t){return tn.prototype.copy.call(this,t),this.distance=t.distance,this.decay=t.decay,this.shadow=t.shadow.clone(),this}}),xa.prototype=Object.assign(Object.create(Be.prototype),{constructor:xa,isOrthographicCamera:!0,copy:function(t,e){return Be.prototype.copy.call(this,t,e),this.left=t.left,this.right=t.right,this.top=t.top,this.bottom=t.bottom,this.near=t.near,this.far=t.far,this.zoom=t.zoom,this.view=t.view===null?null:Object.assign({},t.view),this},setViewOffset:function(t,e,i,n,s,a){this.view===null&&(this.view={enabled:!0,fullWidth:1,fullHeight:1,offsetX:0,offsetY:0,width:1,height:1}),this.view.enabled=!0,this.view.fullWidth=t,this.view.fullHeight=e,this.view.offsetX=i,this.view.offsetY=n,this.view.width=s,this.view.height=a,this.updateProjectionMatrix()},clearViewOffset:function(){this.view!==null&&(this.view.enabled=!1),this.updateProjectionMatrix()},updateProjectionMatrix:function(){var t=(this.right-this.left)/(2*this.zoom),e=(this.top-this.bottom)/(2*this.zoom),i=(this.right+this.left)/2,n=(this.top+this.bottom)/2,s=i-t;if(i+=t,t=n+e,e=n-e,this.view!==null&&this.view.enabled){i=this.zoom/(this.view.width/this.view.fullWidth),e=this.zoom/(this.view.height/this.view.fullHeight);var a=(this.right-this.left)/this.view.width;n=(this.top-this.bottom)/this.view.height,s+=this.view.offsetX/i*a,i=s+this.view.width/i*a,t-=this.view.offsetY/e*n,e=t-this.view.height/e*n}this.projectionMatrix.makeOrthographic(s,i,t,e,this.near,this.far),this.projectionMatrixInverse.getInverse(this.projectionMatrix)},toJSON:function(t){return t=F.prototype.toJSON.call(this,t),t.object.zoom=this.zoom,t.object.left=this.left,t.object.right=this.right,t.object.top=this.top,t.object.bottom=this.bottom,t.object.near=this.near,t.object.far=this.far,this.view!==null&&(t.object.view=Object.assign({},this.view)),t}}),io.prototype=Object.assign(Object.create(_s.prototype),{constructor:io}),ys.prototype=Object.assign(Object.create(tn.prototype),{constructor:ys,isDirectionalLight:!0,copy:function(t){return tn.prototype.copy.call(this,t),this.target=t.target.clone(),this.shadow=t.shadow.clone(),this}}),Io.prototype=Object.assign(Object.create(tn.prototype),{constructor:Io,isAmbientLight:!0}),$l.prototype=Object.assign(Object.create(tn.prototype),{constructor:$l,isRectAreaLight:!0,copy:function(t){return tn.prototype.copy.call(this,t),this.width=t.width,this.height=t.height,this},toJSON:function(t){return t=tn.prototype.toJSON.call(this,t),t.object.width=this.width,t.object.height=this.height,t}}),Object.assign(Kl.prototype,{load:function(t,e,i,n){var s=this,a=new Lt(s.manager);a.setPath(s.path),a.load(t,function(f){e(s.parse(JSON.parse(f)))},i,n)},parse:function(t){function e(f){return i[f]===void 0&&console.warn("THREE.MaterialLoader: Undefined texture",f),i[f]}var i=this.textures,n=new zu[t.type];if(t.uuid!==void 0&&(n.uuid=t.uuid),t.name!==void 0&&(n.name=t.name),t.color!==void 0&&n.color.setHex(t.color),t.roughness!==void 0&&(n.roughness=t.roughness),t.metalness!==void 0&&(n.metalness=t.metalness),t.emissive!==void 0&&n.emissive.setHex(t.emissive),t.specular!==void 0&&n.specular.setHex(t.specular),t.shininess!==void 0&&(n.shininess=t.shininess),t.clearCoat!==void 0&&(n.clearCoat=t.clearCoat),t.clearCoatRoughness!==void 0&&(n.clearCoatRoughness=t.clearCoatRoughness),t.vertexColors!==void 0&&(n.vertexColors=t.vertexColors),t.fog!==void 0&&(n.fog=t.fog),t.flatShading!==void 0&&(n.flatShading=t.flatShading),t.blending!==void 0&&(n.blending=t.blending),t.combine!==void 0&&(n.combine=t.combine),t.side!==void 0&&(n.side=t.side),t.opacity!==void 0&&(n.opacity=t.opacity),t.transparent!==void 0&&(n.transparent=t.transparent),t.alphaTest!==void 0&&(n.alphaTest=t.alphaTest),t.depthTest!==void 0&&(n.depthTest=t.depthTest),t.depthWrite!==void 0&&(n.depthWrite=t.depthWrite),t.colorWrite!==void 0&&(n.colorWrite=t.colorWrite),t.wireframe!==void 0&&(n.wireframe=t.wireframe),t.wireframeLinewidth!==void 0&&(n.wireframeLinewidth=t.wireframeLinewidth),t.wireframeLinecap!==void 0&&(n.wireframeLinecap=t.wireframeLinecap),t.wireframeLinejoin!==void 0&&(n.wireframeLinejoin=t.wireframeLinejoin),t.rotation!==void 0&&(n.rotation=t.rotation),t.linewidth!==1&&(n.linewidth=t.linewidth),t.dashSize!==void 0&&(n.dashSize=t.dashSize),t.gapSize!==void 0&&(n.gapSize=t.gapSize),t.scale!==void 0&&(n.scale=t.scale),t.polygonOffset!==void 0&&(n.polygonOffset=t.polygonOffset),t.polygonOffsetFactor!==void 0&&(n.polygonOffsetFactor=t.polygonOffsetFactor),t.polygonOffsetUnits!==void 0&&(n.polygonOffsetUnits=t.polygonOffsetUnits),t.skinning!==void 0&&(n.skinning=t.skinning),t.morphTargets!==void 0&&(n.morphTargets=t.morphTargets),t.dithering!==void 0&&(n.dithering=t.dithering),t.visible!==void 0&&(n.visible=t.visible),t.userData!==void 0&&(n.userData=t.userData),t.uniforms!==void 0)for(var s in t.uniforms){var a=t.uniforms[s];switch(n.uniforms[s]={},a.type){case"t":n.uniforms[s].value=e(a.value);break;case"c":n.uniforms[s].value=new P().setHex(a.value);break;case"v2":n.uniforms[s].value=new o().fromArray(a.value);break;case"v3":n.uniforms[s].value=new u().fromArray(a.value);break;case"v4":n.uniforms[s].value=new y().fromArray(a.value);break;case"m4":n.uniforms[s].value=new c().fromArray(a.value);break;default:n.uniforms[s].value=a.value}}return t.defines!==void 0&&(n.defines=t.defines),t.vertexShader!==void 0&&(n.vertexShader=t.vertexShader),t.fragmentShader!==void 0&&(n.fragmentShader=t.fragmentShader),t.shading!==void 0&&(n.flatShading=t.shading===1),t.size!==void 0&&(n.size=t.size),t.sizeAttenuation!==void 0&&(n.sizeAttenuation=t.sizeAttenuation),t.map!==void 0&&(n.map=e(t.map)),t.alphaMap!==void 0&&(n.alphaMap=e(t.alphaMap),n.transparent=!0),t.bumpMap!==void 0&&(n.bumpMap=e(t.bumpMap)),t.bumpScale!==void 0&&(n.bumpScale=t.bumpScale),t.normalMap!==void 0&&(n.normalMap=e(t.normalMap)),t.normalMapType!==void 0&&(n.normalMapType=t.normalMapType),t.normalScale!==void 0&&(s=t.normalScale,Array.isArray(s)===!1&&(s=[s,s]),n.normalScale=new o().fromArray(s)),t.displacementMap!==void 0&&(n.displacementMap=e(t.displacementMap)),t.displacementScale!==void 0&&(n.displacementScale=t.displacementScale),t.displacementBias!==void 0&&(n.displacementBias=t.displacementBias),t.roughnessMap!==void 0&&(n.roughnessMap=e(t.roughnessMap)),t.metalnessMap!==void 0&&(n.metalnessMap=e(t.metalnessMap)),t.emissiveMap!==void 0&&(n.emissiveMap=e(t.emissiveMap)),t.emissiveIntensity!==void 0&&(n.emissiveIntensity=t.emissiveIntensity),t.specularMap!==void 0&&(n.specularMap=e(t.specularMap)),t.envMap!==void 0&&(n.envMap=e(t.envMap)),t.envMapIntensity!==void 0&&(n.envMapIntensity=t.envMapIntensity),t.reflectivity!==void 0&&(n.reflectivity=t.reflectivity),t.lightMap!==void 0&&(n.lightMap=e(t.lightMap)),t.lightMapIntensity!==void 0&&(n.lightMapIntensity=t.lightMapIntensity),t.aoMap!==void 0&&(n.aoMap=e(t.aoMap)),t.aoMapIntensity!==void 0&&(n.aoMapIntensity=t.aoMapIntensity),t.gradientMap!==void 0&&(n.gradientMap=e(t.gradientMap)),n},setPath:function(t){return this.path=t,this},setTextures:function(t){return this.textures=t,this}});var Fo={decodeText:function(t){if(typeof TextDecoder<"u")return new TextDecoder().decode(t);for(var e="",i=0,n=t.length;i<n;i++)e+=String.fromCharCode(t[i]);return decodeURIComponent(escape(e))},extractUrlBase:function(t){var e=t.lastIndexOf("/");return e===-1?"./":t.substr(0,e+1)}};Object.assign(Dh.prototype,{load:function(t,e,i,n){var s=this,a=new Lt(s.manager);a.setPath(s.path),a.load(t,function(f){e(s.parse(JSON.parse(f)))},i,n)},parse:function(t){var e=new Ft,i=t.data.index;i!==void 0&&(i=new ao[i.type](i.array),e.setIndex(new J(i,1)));var n=t.data.attributes;for(a in n){var s=n[a];i=new ao[s.type](s.array),e.addAttribute(a,new J(i,s.itemSize,s.normalized))}var a=t.data.groups||t.data.drawcalls||t.data.offsets;if(a!==void 0)for(i=0,n=a.length;i!==n;++i)s=a[i],e.addGroup(s.start,s.count,s.materialIndex);return t=t.data.boundingSphere,t!==void 0&&(a=new u,t.center!==void 0&&a.fromArray(t.center),e.boundingSphere=new D(a,t.radius)),e},setPath:function(t){return this.path=t,this}});var ao={Int8Array,Uint8Array,Uint8ClampedArray:typeof Uint8ClampedArray<"u"?Uint8ClampedArray:Uint8Array,Int16Array,Uint16Array,Int32Array,Uint32Array,Float32Array,Float64Array};Is.Handlers={handlers:[],add:function(t,e){this.handlers.push(t,e)},get:function(t){for(var e=this.handlers,i=0,n=e.length;i<n;i+=2){var s=e[i+1];if(e[i].test(t))return s}return null}},Object.assign(Is.prototype,{crossOrigin:"anonymous",onLoadStart:function(){},onLoadProgress:function(){},onLoadComplete:function(){},initMaterials:function(t,e,i){for(var n=[],s=0;s<t.length;++s)n[s]=this.createMaterial(t[s],e,i);return n},createMaterial:function(){var t={NoBlending:0,NormalBlending:1,AdditiveBlending:2,SubtractiveBlending:3,MultiplyBlending:4,CustomBlending:5},e=new P,i=new fn,n=new Kl;return function(s,a,f){function p(B,H,q,K,rt){B=a+B;var xt=Is.Handlers.get(B);return xt!==null?B=xt.load(B):(i.setCrossOrigin(f),B=i.load(B)),H!==void 0&&(B.repeat.fromArray(H),H[0]!==1&&(B.wrapS=1e3),H[1]!==1&&(B.wrapT=1e3)),q!==void 0&&B.offset.fromArray(q),K!==void 0&&(K[0]==="repeat"&&(B.wrapS=1e3),K[0]==="mirror"&&(B.wrapS=1002),K[1]==="repeat"&&(B.wrapT=1e3),K[1]==="mirror"&&(B.wrapT=1002)),rt!==void 0&&(B.anisotropy=rt),H=pi.generateUUID(),v[H]=B,H}var v={},w={uuid:pi.generateUUID(),type:"MeshLambertMaterial"},C;for(C in s){var L=s[C];switch(C){case"DbgColor":case"DbgIndex":case"opticalDensity":case"illumination":break;case"DbgName":w.name=L;break;case"blending":w.blending=t[L];break;case"colorAmbient":case"mapAmbient":console.warn("THREE.Loader.createMaterial:",C,"is no longer supported.");break;case"colorDiffuse":w.color=e.fromArray(L).getHex();break;case"colorSpecular":w.specular=e.fromArray(L).getHex();break;case"colorEmissive":w.emissive=e.fromArray(L).getHex();break;case"specularCoef":w.shininess=L;break;case"shading":L.toLowerCase()==="basic"&&(w.type="MeshBasicMaterial"),L.toLowerCase()==="phong"&&(w.type="MeshPhongMaterial"),L.toLowerCase()==="standard"&&(w.type="MeshStandardMaterial");break;case"mapDiffuse":w.map=p(L,s.mapDiffuseRepeat,s.mapDiffuseOffset,s.mapDiffuseWrap,s.mapDiffuseAnisotropy);break;case"mapDiffuseRepeat":case"mapDiffuseOffset":case"mapDiffuseWrap":case"mapDiffuseAnisotropy":break;case"mapEmissive":w.emissiveMap=p(L,s.mapEmissiveRepeat,s.mapEmissiveOffset,s.mapEmissiveWrap,s.mapEmissiveAnisotropy);break;case"mapEmissiveRepeat":case"mapEmissiveOffset":case"mapEmissiveWrap":case"mapEmissiveAnisotropy":break;case"mapLight":w.lightMap=p(L,s.mapLightRepeat,s.mapLightOffset,s.mapLightWrap,s.mapLightAnisotropy);break;case"mapLightRepeat":case"mapLightOffset":case"mapLightWrap":case"mapLightAnisotropy":break;case"mapAO":w.aoMap=p(L,s.mapAORepeat,s.mapAOOffset,s.mapAOWrap,s.mapAOAnisotropy);break;case"mapAORepeat":case"mapAOOffset":case"mapAOWrap":case"mapAOAnisotropy":break;case"mapBump":w.bumpMap=p(L,s.mapBumpRepeat,s.mapBumpOffset,s.mapBumpWrap,s.mapBumpAnisotropy);break;case"mapBumpScale":w.bumpScale=L;break;case"mapBumpRepeat":case"mapBumpOffset":case"mapBumpWrap":case"mapBumpAnisotropy":break;case"mapNormal":w.normalMap=p(L,s.mapNormalRepeat,s.mapNormalOffset,s.mapNormalWrap,s.mapNormalAnisotropy);break;case"mapNormalFactor":w.normalScale=L;break;case"mapNormalRepeat":case"mapNormalOffset":case"mapNormalWrap":case"mapNormalAnisotropy":break;case"mapSpecular":w.specularMap=p(L,s.mapSpecularRepeat,s.mapSpecularOffset,s.mapSpecularWrap,s.mapSpecularAnisotropy);break;case"mapSpecularRepeat":case"mapSpecularOffset":case"mapSpecularWrap":case"mapSpecularAnisotropy":break;case"mapMetalness":w.metalnessMap=p(L,s.mapMetalnessRepeat,s.mapMetalnessOffset,s.mapMetalnessWrap,s.mapMetalnessAnisotropy);break;case"mapMetalnessRepeat":case"mapMetalnessOffset":case"mapMetalnessWrap":case"mapMetalnessAnisotropy":break;case"mapRoughness":w.roughnessMap=p(L,s.mapRoughnessRepeat,s.mapRoughnessOffset,s.mapRoughnessWrap,s.mapRoughnessAnisotropy);break;case"mapRoughnessRepeat":case"mapRoughnessOffset":case"mapRoughnessWrap":case"mapRoughnessAnisotropy":break;case"mapAlpha":w.alphaMap=p(L,s.mapAlphaRepeat,s.mapAlphaOffset,s.mapAlphaWrap,s.mapAlphaAnisotropy);break;case"mapAlphaRepeat":case"mapAlphaOffset":case"mapAlphaWrap":case"mapAlphaAnisotropy":break;case"flipSided":w.side=1;break;case"doubleSided":w.side=2;break;case"transparency":console.warn("THREE.Loader.createMaterial: transparency has been renamed to opacity"),w.opacity=L;break;case"depthTest":case"depthWrite":case"colorWrite":case"opacity":case"reflectivity":case"transparent":case"visible":case"wireframe":w[C]=L;break;case"vertexColors":L===!0&&(w.vertexColors=2),L==="face"&&(w.vertexColors=1);break;default:console.error("THREE.Loader.createMaterial: Unsupported",C,L)}}return w.type==="MeshBasicMaterial"&&delete w.emissive,w.type!=="MeshPhongMaterial"&&delete w.specular,1>w.opacity&&(w.transparent=!0),n.setTextures(v),n.parse(w)}}()}),Object.assign(Do.prototype,{crossOrigin:"anonymous",load:function(t,e,i,n){var s=this,a=this.path===void 0?Fo.extractUrlBase(t):this.path,f=new Lt(this.manager);f.setPath(this.path),f.setWithCredentials(this.withCredentials),f.load(t,function(p){p=JSON.parse(p);var v=p.metadata;if(v!==void 0&&(v=v.type,v!==void 0&&v.toLowerCase()==="object")){console.error("THREE.JSONLoader: "+t+" should be loaded with THREE.ObjectLoader instead.");return}p=s.parse(p,a),e(p.geometry,p.materials)},i,n)},setPath:function(t){return this.path=t,this},setResourcePath:function(t){return this.resourcePath=t,this},setCrossOrigin:function(t){return this.crossOrigin=t,this},parse:function(){return function(t,e){t.data!==void 0&&(t=t.data),t.scale=t.scale!==void 0?1/t.scale:1;var i=new j,n=t,s,a,f,p=n.faces,v=n.vertices,w=n.normals,C=n.colors,L=n.scale,B=0;if(n.uvs!==void 0){for(s=0;s<n.uvs.length;s++)n.uvs[s].length&&B++;for(s=0;s<B;s++)i.faceVertexUvs[s]=[]}var H=0;for(f=v.length;H<f;)s=new u,s.x=v[H++]*L,s.y=v[H++]*L,s.z=v[H++]*L,i.vertices.push(s);for(H=0,f=p.length;H<f;){v=p[H++];var q=v&1,K=v&2;s=v&8;var rt=v&16,xt=v&32;if(L=v&64,v&=128,q){q=new R,q.a=p[H],q.b=p[H+1],q.c=p[H+3];var gt=new R;if(gt.a=p[H+1],gt.b=p[H+2],gt.c=p[H+3],H+=4,K&&(K=p[H++],q.materialIndex=K,gt.materialIndex=K),K=i.faces.length,s)for(s=0;s<B;s++){var At=n.uvs[s];for(i.faceVertexUvs[s][K]=[],i.faceVertexUvs[s][K+1]=[],a=0;4>a;a++){var wt=p[H++],Vt=At[2*wt];wt=At[2*wt+1],Vt=new o(Vt,wt),a!==2&&i.faceVertexUvs[s][K].push(Vt),a!==0&&i.faceVertexUvs[s][K+1].push(Vt)}}if(rt&&(rt=3*p[H++],q.normal.set(w[rt++],w[rt++],w[rt]),gt.normal.copy(q.normal)),xt)for(s=0;4>s;s++)rt=3*p[H++],xt=new u(w[rt++],w[rt++],w[rt]),s!==2&&q.vertexNormals.push(xt),s!==0&&gt.vertexNormals.push(xt);if(L&&(L=p[H++],L=C[L],q.color.setHex(L),gt.color.setHex(L)),v)for(s=0;4>s;s++)L=p[H++],L=C[L],s!==2&&q.vertexColors.push(new P(L)),s!==0&&gt.vertexColors.push(new P(L));i.faces.push(q),i.faces.push(gt)}else{if(q=new R,q.a=p[H++],q.b=p[H++],q.c=p[H++],K&&(K=p[H++],q.materialIndex=K),K=i.faces.length,s)for(s=0;s<B;s++)for(At=n.uvs[s],i.faceVertexUvs[s][K]=[],a=0;3>a;a++)wt=p[H++],Vt=At[2*wt],wt=At[2*wt+1],Vt=new o(Vt,wt),i.faceVertexUvs[s][K].push(Vt);if(rt&&(rt=3*p[H++],q.normal.set(w[rt++],w[rt++],w[rt])),xt)for(s=0;3>s;s++)rt=3*p[H++],xt=new u(w[rt++],w[rt++],w[rt]),q.vertexNormals.push(xt);if(L&&(L=p[H++],q.color.setHex(C[L])),v)for(s=0;3>s;s++)L=p[H++],q.vertexColors.push(new P(C[L]));i.faces.push(q)}}if(n=t,H=n.influencesPerVertex!==void 0?n.influencesPerVertex:2,n.skinWeights)for(f=0,p=n.skinWeights.length;f<p;f+=H)i.skinWeights.push(new y(n.skinWeights[f],1<H?n.skinWeights[f+1]:0,2<H?n.skinWeights[f+2]:0,3<H?n.skinWeights[f+3]:0));if(n.skinIndices)for(f=0,p=n.skinIndices.length;f<p;f+=H)i.skinIndices.push(new y(n.skinIndices[f],1<H?n.skinIndices[f+1]:0,2<H?n.skinIndices[f+2]:0,3<H?n.skinIndices[f+3]:0));if(i.bones=n.bones,i.bones&&0<i.bones.length&&(i.skinWeights.length!==i.skinIndices.length||i.skinIndices.length!==i.vertices.length)&&console.warn("When skinning, number of vertices ("+i.vertices.length+"), skinIndices ("+i.skinIndices.length+"), and skinWeights ("+i.skinWeights.length+") should match."),f=t,p=f.scale,f.morphTargets!==void 0)for(n=0,H=f.morphTargets.length;n<H;n++)for(i.morphTargets[n]={},i.morphTargets[n].name=f.morphTargets[n].name,i.morphTargets[n].vertices=[],w=i.morphTargets[n].vertices,C=f.morphTargets[n].vertices,B=0,v=C.length;B<v;B+=3)L=new u,L.x=C[B]*p,L.y=C[B+1]*p,L.z=C[B+2]*p,w.push(L);if(f.morphColors!==void 0&&0<f.morphColors.length)for(console.warn('THREE.JSONLoader: "morphColors" no longer supported. Using them as face colors.'),p=i.faces,f=f.morphColors[0].colors,n=0,H=p.length;n<H;n++)p[n].color.fromArray(f,3*n);for(f=t,n=[],H=[],f.animation!==void 0&&H.push(f.animation),f.animations!==void 0&&(f.animations.length?H=H.concat(f.animations):H.push(f.animations)),f=0;f<H.length;f++)(p=yr.parseAnimation(H[f],i.bones))&&n.push(p);return i.morphTargets&&(H=yr.CreateClipsFromMorphTargetSequences(i.morphTargets,10),n=n.concat(H)),0<n.length&&(i.animations=n),i.computeFaceNormals(),i.computeBoundingSphere(),t.materials===void 0||t.materials.length===0?{geometry:i}:(t=Is.prototype.initMaterials(t.materials,this.resourcePath||e,this.crossOrigin),{geometry:i,materials:t})}}()}),Object.assign(ll.prototype,{crossOrigin:"anonymous",load:function(t,e,i,n){var s=this,a=this.path===void 0?Fo.extractUrlBase(t):this.path;this.resourcePath=this.resourcePath||a,a=new Lt(s.manager),a.setPath(this.path),a.load(t,function(f){var p=null;try{p=JSON.parse(f)}catch(v){n!==void 0&&n(v),console.error("THREE:ObjectLoader: Can't parse "+t+".",v.message);return}f=p.metadata,f===void 0||f.type===void 0||f.type.toLowerCase()==="geometry"?console.error("THREE.ObjectLoader: Can't load "+t+". Use THREE.JSONLoader instead."):s.parse(p,e)},i,n)},setPath:function(t){return this.path=t,this},setResourcePath:function(t){return this.resourcePath=t,this},setCrossOrigin:function(t){return this.crossOrigin=t,this},parse:function(t,e){var i=this.parseShape(t.shapes);i=this.parseGeometries(t.geometries,i);var n=this.parseImages(t.images,function(){e!==void 0&&e(s)});n=this.parseTextures(t.textures,n),n=this.parseMaterials(t.materials,n);var s=this.parseObject(t.object,i,n);return t.animations&&(s.animations=this.parseAnimations(t.animations)),t.images!==void 0&&t.images.length!==0||e===void 0||e(s),s},parseShape:function(t){var e={};if(t!==void 0)for(var i=0,n=t.length;i<n;i++){var s=new Qn().fromJSON(t[i]);e[s.uuid]=s}return e},parseGeometries:function(t,e){var i={};if(t!==void 0)for(var n=new Do,s=new Dh,a=0,f=t.length;a<f;a++){var p=t[a];switch(p.type){case"PlaneGeometry":case"PlaneBufferGeometry":var v=new _n[p.type](p.width,p.height,p.widthSegments,p.heightSegments);break;case"BoxGeometry":case"BoxBufferGeometry":case"CubeGeometry":v=new _n[p.type](p.width,p.height,p.depth,p.widthSegments,p.heightSegments,p.depthSegments);break;case"CircleGeometry":case"CircleBufferGeometry":v=new _n[p.type](p.radius,p.segments,p.thetaStart,p.thetaLength);break;case"CylinderGeometry":case"CylinderBufferGeometry":v=new _n[p.type](p.radiusTop,p.radiusBottom,p.height,p.radialSegments,p.heightSegments,p.openEnded,p.thetaStart,p.thetaLength);break;case"ConeGeometry":case"ConeBufferGeometry":v=new _n[p.type](p.radius,p.height,p.radialSegments,p.heightSegments,p.openEnded,p.thetaStart,p.thetaLength);break;case"SphereGeometry":case"SphereBufferGeometry":v=new _n[p.type](p.radius,p.widthSegments,p.heightSegments,p.phiStart,p.phiLength,p.thetaStart,p.thetaLength);break;case"DodecahedronGeometry":case"DodecahedronBufferGeometry":case"IcosahedronGeometry":case"IcosahedronBufferGeometry":case"OctahedronGeometry":case"OctahedronBufferGeometry":case"TetrahedronGeometry":case"TetrahedronBufferGeometry":v=new _n[p.type](p.radius,p.detail);break;case"RingGeometry":case"RingBufferGeometry":v=new _n[p.type](p.innerRadius,p.outerRadius,p.thetaSegments,p.phiSegments,p.thetaStart,p.thetaLength);break;case"TorusGeometry":case"TorusBufferGeometry":v=new _n[p.type](p.radius,p.tube,p.radialSegments,p.tubularSegments,p.arc);break;case"TorusKnotGeometry":case"TorusKnotBufferGeometry":v=new _n[p.type](p.radius,p.tube,p.tubularSegments,p.radialSegments,p.p,p.q);break;case"LatheGeometry":case"LatheBufferGeometry":v=new _n[p.type](p.points,p.segments,p.phiStart,p.phiLength);break;case"PolyhedronGeometry":case"PolyhedronBufferGeometry":v=new _n[p.type](p.vertices,p.indices,p.radius,p.details);break;case"ShapeGeometry":case"ShapeBufferGeometry":v=[];for(var w=0,C=p.shapes.length;w<C;w++){var L=e[p.shapes[w]];v.push(L)}v=new _n[p.type](v,p.curveSegments);break;case"ExtrudeGeometry":case"ExtrudeBufferGeometry":for(v=[],w=0,C=p.shapes.length;w<C;w++)L=e[p.shapes[w]],v.push(L);w=p.options.extrudePath,w!==void 0&&(p.options.extrudePath=new sh[w.type]().fromJSON(w)),v=new _n[p.type](v,p.options);break;case"BufferGeometry":v=s.parse(p);break;case"Geometry":v=n.parse(p,this.resourcePath).geometry;break;default:console.warn('THREE.ObjectLoader: Unsupported geometry type "'+p.type+'"');continue}v.uuid=p.uuid,p.name!==void 0&&(v.name=p.name),v.isBufferGeometry===!0&&p.userData!==void 0&&(v.userData=p.userData),i[p.uuid]=v}return i},parseMaterials:function(t,e){var i={},n={};if(t!==void 0){var s=new Kl;s.setTextures(e),e=0;for(var a=t.length;e<a;e++){var f=t[e];if(f.type==="MultiMaterial"){for(var p=[],v=0;v<f.materials.length;v++){var w=f.materials[v];i[w.uuid]===void 0&&(i[w.uuid]=s.parse(w)),p.push(i[w.uuid])}n[f.uuid]=p}else n[f.uuid]=s.parse(f),i[f.uuid]=n[f.uuid]}}return n},parseAnimations:function(t){for(var e=[],i=0;i<t.length;i++){var n=t[i],s=yr.parse(n);n.uuid!==void 0&&(s.uuid=n.uuid),e.push(s)}return e},parseImages:function(t,e){function i(B){return n.manager.itemStart(B),a.load(B,function(){n.manager.itemEnd(B)},void 0,function(){n.manager.itemError(B),n.manager.itemEnd(B)})}var n=this,s={};if(t!==void 0&&0<t.length){e=new to(e);var a=new ai(e);a.setCrossOrigin(this.crossOrigin),e=0;for(var f=t.length;e<f;e++){var p=t[e],v=p.url;if(Array.isArray(v)){s[p.uuid]=[];for(var w=0,C=v.length;w<C;w++){var L=v[w];L=/^(\/\/)|([a-z]+:(\/\/)?)/i.test(L)?L:n.resourcePath+L,s[p.uuid].push(i(L))}}else L=/^(\/\/)|([a-z]+:(\/\/)?)/i.test(p.url)?p.url:n.resourcePath+p.url,s[p.uuid]=i(L)}}return s},parseTextures:function(t,e){function i(v,w){return typeof v=="number"?v:(console.warn("THREE.ObjectLoader.parseTexture: Constant should be in numeric form.",v),w[v])}var n={};if(t!==void 0)for(var s=0,a=t.length;s<a;s++){var f=t[s];f.image===void 0&&console.warn('THREE.ObjectLoader: No "image" specified for',f.uuid),e[f.image]===void 0&&console.warn("THREE.ObjectLoader: Undefined image",f.image);var p=Array.isArray(e[f.image])?new z(e[f.image]):new _(e[f.image]);p.needsUpdate=!0,p.uuid=f.uuid,f.name!==void 0&&(p.name=f.name),f.mapping!==void 0&&(p.mapping=i(f.mapping,ku)),f.offset!==void 0&&p.offset.fromArray(f.offset),f.repeat!==void 0&&p.repeat.fromArray(f.repeat),f.center!==void 0&&p.center.fromArray(f.center),f.rotation!==void 0&&(p.rotation=f.rotation),f.wrap!==void 0&&(p.wrapS=i(f.wrap[0],Zn),p.wrapT=i(f.wrap[1],Zn)),f.format!==void 0&&(p.format=f.format),f.minFilter!==void 0&&(p.minFilter=i(f.minFilter,oh)),f.magFilter!==void 0&&(p.magFilter=i(f.magFilter,oh)),f.anisotropy!==void 0&&(p.anisotropy=f.anisotropy),f.flipY!==void 0&&(p.flipY=f.flipY),n[f.uuid]=p}return n},parseObject:function(t,e,i){function n(w){return e[w]===void 0&&console.warn("THREE.ObjectLoader: Undefined geometry",w),e[w]}function s(w){if(w!==void 0){if(Array.isArray(w)){for(var C=[],L=0,B=w.length;L<B;L++){var H=w[L];i[H]===void 0&&console.warn("THREE.ObjectLoader: Undefined material",H),C.push(i[H])}return C}return i[w]===void 0&&console.warn("THREE.ObjectLoader: Undefined material",w),i[w]}}switch(t.type){case"Scene":var a=new Xn;t.background!==void 0&&Number.isInteger(t.background)&&(a.background=new P(t.background)),t.fog!==void 0&&(t.fog.type==="Fog"?a.fog=new Sn(t.fog.color,t.fog.near,t.fog.far):t.fog.type==="FogExp2"&&(a.fog=new Le(t.fog.color,t.fog.density)));break;case"PerspectiveCamera":a=new ye(t.fov,t.aspect,t.near,t.far),t.focus!==void 0&&(a.focus=t.focus),t.zoom!==void 0&&(a.zoom=t.zoom),t.filmGauge!==void 0&&(a.filmGauge=t.filmGauge),t.filmOffset!==void 0&&(a.filmOffset=t.filmOffset),t.view!==void 0&&(a.view=Object.assign({},t.view));break;case"OrthographicCamera":a=new xa(t.left,t.right,t.top,t.bottom,t.near,t.far),t.zoom!==void 0&&(a.zoom=t.zoom),t.view!==void 0&&(a.view=Object.assign({},t.view));break;case"AmbientLight":a=new Io(t.color,t.intensity);break;case"DirectionalLight":a=new ys(t.color,t.intensity);break;case"PointLight":a=new Oo(t.color,t.intensity,t.distance,t.decay);break;case"RectAreaLight":a=new $l(t.color,t.intensity,t.width,t.height);break;case"SpotLight":a=new al(t.color,t.intensity,t.distance,t.angle,t.penumbra,t.decay);break;case"HemisphereLight":a=new sl(t.color,t.groundColor,t.intensity);break;case"SkinnedMesh":console.warn("THREE.ObjectLoader.parseObject() does not support SkinnedMesh yet.");case"Mesh":a=n(t.geometry);var f=s(t.material);a=a.bones&&0<a.bones.length?new Gi(a,f):new di(a,f);break;case"LOD":a=new rn;break;case"Line":a=new ji(n(t.geometry),s(t.material),t.mode);break;case"LineLoop":a=new cs(n(t.geometry),s(t.material));break;case"LineSegments":a=new gi(n(t.geometry),s(t.material));break;case"PointCloud":case"Points":a=new oa(n(t.geometry),s(t.material));break;case"Sprite":a=new nn(s(t.material));break;case"Group":a=new ci;break;default:a=new F}if(a.uuid=t.uuid,t.name!==void 0&&(a.name=t.name),t.matrix!==void 0?(a.matrix.fromArray(t.matrix),t.matrixAutoUpdate!==void 0&&(a.matrixAutoUpdate=t.matrixAutoUpdate),a.matrixAutoUpdate&&a.matrix.decompose(a.position,a.quaternion,a.scale)):(t.position!==void 0&&a.position.fromArray(t.position),t.rotation!==void 0&&a.rotation.fromArray(t.rotation),t.quaternion!==void 0&&a.quaternion.fromArray(t.quaternion),t.scale!==void 0&&a.scale.fromArray(t.scale)),t.castShadow!==void 0&&(a.castShadow=t.castShadow),t.receiveShadow!==void 0&&(a.receiveShadow=t.receiveShadow),t.shadow&&(t.shadow.bias!==void 0&&(a.shadow.bias=t.shadow.bias),t.shadow.radius!==void 0&&(a.shadow.radius=t.shadow.radius),t.shadow.mapSize!==void 0&&a.shadow.mapSize.fromArray(t.shadow.mapSize),t.shadow.camera!==void 0&&(a.shadow.camera=this.parseObject(t.shadow.camera))),t.visible!==void 0&&(a.visible=t.visible),t.frustumCulled!==void 0&&(a.frustumCulled=t.frustumCulled),t.renderOrder!==void 0&&(a.renderOrder=t.renderOrder),t.userData!==void 0&&(a.userData=t.userData),t.layers!==void 0&&(a.layers.mask=t.layers),t.children!==void 0){f=t.children;for(var p=0;p<f.length;p++)a.add(this.parseObject(f[p],e,i))}if(t.type==="LOD")for(t=t.levels,f=0;f<t.length;f++){p=t[f];var v=a.getObjectByProperty("uuid",p.object);v!==void 0&&a.addLevel(v,p.distance)}return a}});var ku={UVMapping:300,CubeReflectionMapping:301,CubeRefractionMapping:302,EquirectangularReflectionMapping:303,EquirectangularRefractionMapping:304,SphericalReflectionMapping:305,CubeUVReflectionMapping:306,CubeUVRefractionMapping:307},Zn={RepeatWrapping:1e3,ClampToEdgeWrapping:1001,MirroredRepeatWrapping:1002},oh={NearestFilter:1003,NearestMipMapNearestFilter:1004,NearestMipMapLinearFilter:1005,LinearFilter:1006,LinearMipMapNearestFilter:1007,LinearMipMapLinearFilter:1008};zh.prototype={constructor:zh,setOptions:function(t){return this.options=t,this},load:function(t,e,i,n){t===void 0&&(t=""),this.path!==void 0&&(t=this.path+t),t=this.manager.resolveURL(t);var s=this,a=Ts.get(t);if(a!==void 0)return s.manager.itemStart(t),setTimeout(function(){e&&e(a),s.manager.itemEnd(t)},0),a;fetch(t).then(function(f){return f.blob()}).then(function(f){return createImageBitmap(f,s.options)}).then(function(f){Ts.add(t,f),e&&e(f),s.manager.itemEnd(t)}).catch(function(f){n&&n(f),s.manager.itemError(t),s.manager.itemEnd(t)})},setCrossOrigin:function(){return this},setPath:function(t){return this.path=t,this}},Object.assign(Ql.prototype,{moveTo:function(t,e){this.currentPath=new fr,this.subPaths.push(this.currentPath),this.currentPath.moveTo(t,e)},lineTo:function(t,e){this.currentPath.lineTo(t,e)},quadraticCurveTo:function(t,e,i,n){this.currentPath.quadraticCurveTo(t,e,i,n)},bezierCurveTo:function(t,e,i,n,s,a){this.currentPath.bezierCurveTo(t,e,i,n,s,a)},splineThru:function(t){this.currentPath.splineThru(t)},toShapes:function(t,e){function i(rt){for(var xt=[],gt=0,At=rt.length;gt<At;gt++){var wt=rt[gt],Vt=new Qn;Vt.curves=wt.curves,xt.push(Vt)}return xt}function n(rt,xt){for(var gt=xt.length,At=!1,wt=gt-1,Vt=0;Vt<gt;wt=Vt++){var Z=xt[wt],st=xt[Vt],zt=st.x-Z.x,ee=st.y-Z.y;if(Math.abs(ee)>Number.EPSILON){if(0>ee&&(Z=xt[Vt],zt=-zt,st=xt[wt],ee=-ee),!(rt.y<Z.y||rt.y>st.y))if(rt.y===Z.y){if(rt.x===Z.x)return!0}else{if(wt=ee*(rt.x-Z.x)-zt*(rt.y-Z.y),wt===0)return!0;0>wt||(At=!At)}}else if(rt.y===Z.y&&(st.x<=rt.x&&rt.x<=Z.x||Z.x<=rt.x&&rt.x<=st.x))return!0}return At}var s=ws.isClockWise,a=this.subPaths;if(a.length===0)return[];if(e===!0)return i(a);if(e=[],a.length===1){var f=a[0],p=new Qn;return p.curves=f.curves,e.push(p),e}var v=!s(a[0].getPoints());v=t?!v:v,p=[];var w=[],C=[],L=0;w[L]=void 0,C[L]=[];for(var B=0,H=a.length;B<H;B++){f=a[B];var q=f.getPoints(),K=s(q);(K=t?!K:K)?(!v&&w[L]&&L++,w[L]={s:new Qn,p:q},w[L].s.curves=f.curves,v&&L++,C[L]=[]):C[L].push({h:f,p:q[0]})}if(!w[0])return i(a);if(1<w.length){for(B=!1,t=[],s=0,a=w.length;s<a;s++)p[s]=[];for(s=0,a=w.length;s<a;s++)for(f=C[s],K=0;K<f.length;K++){for(v=f[K],L=!0,q=0;q<w.length;q++)n(v.p,w[q].p)&&(s!==q&&t.push({froms:s,tos:q,hole:K}),L?(L=!1,p[q].push(v)):B=!0);L&&p[s].push(v)}0<t.length&&(B||(C=p))}for(B=0,s=w.length;B<s;B++)for(p=w[B].s,e.push(p),t=C[B],a=0,f=t.length;a<f;a++)p.holes.push(t[a].h);return e}}),Object.assign(kh.prototype,{isFont:!0,generateShapes:function(t,e){e===void 0&&(e=100);var i=[],n=e;e=this.data;var s=Array.from?Array.from(t):String(t).split("");n/=e.resolution;var a=(e.boundingBox.yMax-e.boundingBox.yMin+e.underlineThickness)*n;t=[];for(var f=0,p=0,v=0;v<s.length;v++){var w=s[v];if(w===`
2571
- `)f=0,p-=a;else{var C=n,L=f,B=p;if(w=e.glyphs[w]||e.glyphs["?"]){var H=new Ql;if(w.o)for(var q=w._cachedOutline||(w._cachedOutline=w.o.split(" ")),K=0,rt=q.length;K<rt;)switch(q[K++]){case"m":var xt=q[K++]*C+L,gt=q[K++]*C+B;H.moveTo(xt,gt);break;case"l":xt=q[K++]*C+L,gt=q[K++]*C+B,H.lineTo(xt,gt);break;case"q":var At=q[K++]*C+L,wt=q[K++]*C+B,Vt=q[K++]*C+L,Z=q[K++]*C+B;H.quadraticCurveTo(Vt,Z,At,wt);break;case"b":At=q[K++]*C+L,wt=q[K++]*C+B,Vt=q[K++]*C+L,Z=q[K++]*C+B,xt=q[K++]*C+L,gt=q[K++]*C+B,H.bezierCurveTo(Vt,Z,xt,gt,At,wt)}C={offsetX:w.ha*C,path:H}}else C=void 0;f+=C.offsetX,t.push(C.path)}}for(e=0,s=t.length;e<s;e++)Array.prototype.push.apply(i,t[e].toShapes());return i}}),Object.assign(bu.prototype,{load:function(t,e,i,n){var s=this,a=new Lt(this.manager);a.setPath(this.path),a.load(t,function(f){try{var p=JSON.parse(f)}catch{console.warn("THREE.FontLoader: typeface.js support is being deprecated. Use typeface.json instead."),p=JSON.parse(f.substring(65,f.length-2))}f=s.parse(p),e&&e(f)},i,n)},parse:function(t){return new kh(t)},setPath:function(t){return this.path=t,this}});var ah,qh={getContext:function(){return ah===void 0&&(ah=new(window.AudioContext||window.webkitAudioContext)),ah},setContext:function(t){ah=t}};Object.assign(vn.prototype,{load:function(t,e,i,n){var s=new Lt(this.manager);s.setResponseType("arraybuffer"),s.setPath(this.path),s.load(t,function(a){a=a.slice(0),qh.getContext().decodeAudioData(a,function(f){e(f)})},i,n)},setPath:function(t){return this.path=t,this}}),Object.assign(Vn.prototype,{update:function(){var t,e,i,n,s,a,f,p,v=new c,w=new c;return function(C){if(t!==this||e!==C.focus||i!==C.fov||n!==C.aspect*this.aspect||s!==C.near||a!==C.far||f!==C.zoom||p!==this.eyeSep){t=this,e=C.focus,i=C.fov,n=C.aspect*this.aspect,s=C.near,a=C.far,f=C.zoom;var L=C.projectionMatrix.clone();p=this.eyeSep/2;var B=p*s/e,H=s*Math.tan(pi.DEG2RAD*i*.5)/f;w.elements[12]=-p,v.elements[12]=p;var q=-H*n+B,K=H*n+B;L.elements[0]=2*s/(K-q),L.elements[8]=(K+q)/(K-q),this.cameraL.projectionMatrix.copy(L),q=-H*n-B,K=H*n-B,L.elements[0]=2*s/(K-q),L.elements[8]=(K+q)/(K-q),this.cameraR.projectionMatrix.copy(L)}this.cameraL.matrixWorld.copy(C.matrixWorld).multiply(w),this.cameraR.matrixWorld.copy(C.matrixWorld).multiply(v)}}()}),hl.prototype=Object.create(F.prototype),hl.prototype.constructor=hl,Object.assign(Bh.prototype,{start:function(){this.oldTime=this.startTime=(typeof performance>"u"?Date:performance).now(),this.elapsedTime=0,this.running=!0},stop:function(){this.getElapsedTime(),this.autoStart=this.running=!1},getElapsedTime:function(){return this.getDelta(),this.elapsedTime},getDelta:function(){var t=0;if(this.autoStart&&!this.running)return this.start(),0;if(this.running){var e=(typeof performance>"u"?Date:performance).now();t=(e-this.oldTime)/1e3,this.oldTime=e,this.elapsedTime+=t}return t}}),th.prototype=Object.assign(Object.create(F.prototype),{constructor:th,getInput:function(){return this.gain},removeFilter:function(){return this.filter!==null&&(this.gain.disconnect(this.filter),this.filter.disconnect(this.context.destination),this.gain.connect(this.context.destination),this.filter=null),this},getFilter:function(){return this.filter},setFilter:function(t){return this.filter!==null?(this.gain.disconnect(this.filter),this.filter.disconnect(this.context.destination)):this.gain.disconnect(this.context.destination),this.filter=t,this.gain.connect(this.filter),this.filter.connect(this.context.destination),this},getMasterVolume:function(){return this.gain.gain.value},setMasterVolume:function(t){return this.gain.gain.setTargetAtTime(t,this.context.currentTime,.01),this},updateMatrixWorld:function(){var t=new u,e=new d,i=new u,n=new u,s=new Bh;return function(a){F.prototype.updateMatrixWorld.call(this,a),a=this.context.listener;var f=this.up;if(this.timeDelta=s.getDelta(),this.matrixWorld.decompose(t,e,i),n.set(0,0,-1).applyQuaternion(e),a.positionX){var p=this.context.currentTime+this.timeDelta;a.positionX.linearRampToValueAtTime(t.x,p),a.positionY.linearRampToValueAtTime(t.y,p),a.positionZ.linearRampToValueAtTime(t.z,p),a.forwardX.linearRampToValueAtTime(n.x,p),a.forwardY.linearRampToValueAtTime(n.y,p),a.forwardZ.linearRampToValueAtTime(n.z,p),a.upX.linearRampToValueAtTime(f.x,p),a.upY.linearRampToValueAtTime(f.y,p),a.upZ.linearRampToValueAtTime(f.z,p)}else a.setPosition(t.x,t.y,t.z),a.setOrientation(n.x,n.y,n.z,f.x,f.y,f.z)}}()}),wa.prototype=Object.assign(Object.create(F.prototype),{constructor:wa,getOutput:function(){return this.gain},setNodeSource:function(t){return this.hasPlaybackControl=!1,this.sourceType="audioNode",this.source=t,this.connect(),this},setMediaElementSource:function(t){return this.hasPlaybackControl=!1,this.sourceType="mediaNode",this.source=this.context.createMediaElementSource(t),this.connect(),this},setBuffer:function(t){return this.buffer=t,this.sourceType="buffer",this.autoplay&&this.play(),this},play:function(){if(this.isPlaying===!0)console.warn("THREE.Audio: Audio is already playing.");else if(this.hasPlaybackControl===!1)console.warn("THREE.Audio: this Audio has no playback control.");else{var t=this.context.createBufferSource();return t.buffer=this.buffer,t.loop=this.loop,t.onended=this.onEnded.bind(this),t.playbackRate.setValueAtTime(this.playbackRate,this.startTime),this.startTime=this.context.currentTime,t.start(this.startTime,this.offset),this.isPlaying=!0,this.source=t,this.connect()}},pause:function(){if(this.hasPlaybackControl===!1)console.warn("THREE.Audio: this Audio has no playback control.");else return this.isPlaying===!0&&(this.source.stop(),this.source.onended=null,this.offset+=(this.context.currentTime-this.startTime)*this.playbackRate,this.isPlaying=!1),this},stop:function(){if(this.hasPlaybackControl===!1)console.warn("THREE.Audio: this Audio has no playback control.");else return this.source.stop(),this.source.onended=null,this.offset=0,this.isPlaying=!1,this},connect:function(){if(0<this.filters.length){this.source.connect(this.filters[0]);for(var t=1,e=this.filters.length;t<e;t++)this.filters[t-1].connect(this.filters[t]);this.filters[this.filters.length-1].connect(this.getOutput())}else this.source.connect(this.getOutput());return this},disconnect:function(){if(0<this.filters.length){this.source.disconnect(this.filters[0]);for(var t=1,e=this.filters.length;t<e;t++)this.filters[t-1].disconnect(this.filters[t]);this.filters[this.filters.length-1].disconnect(this.getOutput())}else this.source.disconnect(this.getOutput());return this},getFilters:function(){return this.filters},setFilters:function(t){return t||(t=[]),this.isPlaying===!0?(this.disconnect(),this.filters=t,this.connect()):this.filters=t,this},getFilter:function(){return this.getFilters()[0]},setFilter:function(t){return this.setFilters(t?[t]:[])},setPlaybackRate:function(t){if(this.hasPlaybackControl===!1)console.warn("THREE.Audio: this Audio has no playback control.");else return this.playbackRate=t,this.isPlaying===!0&&this.source.playbackRate.setValueAtTime(this.playbackRate,this.context.currentTime),this},getPlaybackRate:function(){return this.playbackRate},onEnded:function(){this.isPlaying=!1},getLoop:function(){return this.hasPlaybackControl===!1?(console.warn("THREE.Audio: this Audio has no playback control."),!1):this.loop},setLoop:function(t){if(this.hasPlaybackControl===!1)console.warn("THREE.Audio: this Audio has no playback control.");else return this.loop=t,this.isPlaying===!0&&(this.source.loop=this.loop),this},getVolume:function(){return this.gain.gain.value},setVolume:function(t){return this.gain.gain.setTargetAtTime(t,this.context.currentTime,.01),this}}),ul.prototype=Object.assign(Object.create(wa.prototype),{constructor:ul,getOutput:function(){return this.panner},getRefDistance:function(){return this.panner.refDistance},setRefDistance:function(t){return this.panner.refDistance=t,this},getRolloffFactor:function(){return this.panner.rolloffFactor},setRolloffFactor:function(t){return this.panner.rolloffFactor=t,this},getDistanceModel:function(){return this.panner.distanceModel},setDistanceModel:function(t){return this.panner.distanceModel=t,this},getMaxDistance:function(){return this.panner.maxDistance},setMaxDistance:function(t){return this.panner.maxDistance=t,this},setDirectionalCone:function(t,e,i){return this.panner.coneInnerAngle=t,this.panner.coneOuterAngle=e,this.panner.coneOuterGain=i,this},updateMatrixWorld:function(){var t=new u,e=new d,i=new u,n=new u;return function(s){if(F.prototype.updateMatrixWorld.call(this,s),s=this.panner,this.matrixWorld.decompose(t,e,i),n.set(0,0,1).applyQuaternion(e),s.positionX){var a=this.context.currentTime+this.listener.timeDelta;s.positionX.linearRampToValueAtTime(t.x,a),s.positionY.linearRampToValueAtTime(t.y,a),s.positionZ.linearRampToValueAtTime(t.z,a),s.orientationX.linearRampToValueAtTime(n.x,a),s.orientationY.linearRampToValueAtTime(n.y,a),s.orientationZ.linearRampToValueAtTime(n.z,a)}else s.setPosition(t.x,t.y,t.z),s.setOrientation(n.x,n.y,n.z)}}()}),Object.assign(zo.prototype,{getFrequencyData:function(){return this.analyser.getByteFrequencyData(this.data),this.data},getAverageFrequency:function(){for(var t=0,e=this.getFrequencyData(),i=0;i<e.length;i++)t+=e[i];return t/e.length}}),Object.assign(cl.prototype,{accumulate:function(t,e){var i=this.buffer,n=this.valueSize;t=t*n+n;var s=this.cumulativeWeight;if(s===0){for(s=0;s!==n;++s)i[t+s]=i[s];s=e}else s+=e,this._mixBufferRegion(i,t,0,e/s,n);this.cumulativeWeight=s},apply:function(t){var e=this.valueSize,i=this.buffer;t=t*e+e;var n=this.cumulativeWeight,s=this.binding;this.cumulativeWeight=0,1>n&&this._mixBufferRegion(i,t,3*e,1-n,e),n=e;for(var a=e+e;n!==a;++n)if(i[n]!==i[n+e]){s.setValue(i,t);break}},saveOriginalState:function(){var t=this.buffer,e=this.valueSize,i=3*e;this.binding.getValue(t,i);for(var n=e;n!==i;++n)t[n]=t[i+n%e];this.cumulativeWeight=0},restoreOriginalState:function(){this.binding.setValue(this.buffer,3*this.valueSize)},_select:function(t,e,i,n,s){if(.5<=n)for(n=0;n!==s;++n)t[e+n]=t[i+n]},_slerp:function(t,e,i,n){d.slerpFlat(t,e,t,e,t,i,n)},_lerp:function(t,e,i,n,s){for(var a=1-n,f=0;f!==s;++f){var p=e+f;t[p]=t[p]*a+t[i+f]*n}}}),Object.assign(ko.prototype,{getValue:function(t,e){this.bind();var i=this._bindings[this._targetGroup.nCachedObjects_];i!==void 0&&i.getValue(t,e)},setValue:function(t,e){for(var i=this._bindings,n=this._targetGroup.nCachedObjects_,s=i.length;n!==s;++n)i[n].setValue(t,e)},bind:function(){for(var t=this._bindings,e=this._targetGroup.nCachedObjects_,i=t.length;e!==i;++e)t[e].bind()},unbind:function(){for(var t=this._bindings,e=this._targetGroup.nCachedObjects_,i=t.length;e!==i;++e)t[e].unbind()}}),Object.assign(En,{Composite:ko,create:function(t,e,i){return t&&t.isAnimationObjectGroup?new En.Composite(t,e,i):new En(t,e,i)},sanitizeNodeName:function(){var t=/[\[\]\.:\/]/g;return function(e){return e.replace(/\s/g,"_").replace(t,"")}}(),parseTrackName:function(){var t="[^"+"\\[\\]\\.:\\/".replace("\\.","")+"]",e=/((?:WC+[\/:])*)/.source.replace("WC","[^\\[\\]\\.:\\/]");t=/(WCOD+)?/.source.replace("WCOD",t);var i=/(?:\.(WC+)(?:\[(.+)\])?)?/.source.replace("WC","[^\\[\\]\\.:\\/]"),n=/\.(WC+)(?:\[(.+)\])?/.source.replace("WC","[^\\[\\]\\.:\\/]"),s=new RegExp("^"+e+t+i+n+"$"),a=["material","materials","bones"];return function(f){var p=s.exec(f);if(!p)throw Error("PropertyBinding: Cannot parse trackName: "+f);p={nodeName:p[2],objectName:p[3],objectIndex:p[4],propertyName:p[5],propertyIndex:p[6]};var v=p.nodeName&&p.nodeName.lastIndexOf(".");if(v!==void 0&&v!==-1){var w=p.nodeName.substring(v+1);a.indexOf(w)!==-1&&(p.nodeName=p.nodeName.substring(0,v),p.objectName=w)}if(p.propertyName===null||p.propertyName.length===0)throw Error("PropertyBinding: can not parse propertyName from trackName: "+f);return p}}(),findNode:function(t,e){if(!e||e===""||e==="root"||e==="."||e===-1||e===t.name||e===t.uuid)return t;if(t.skeleton){var i=t.skeleton.getBoneByName(e);if(i!==void 0)return i}if(t.children){var n=function(s){for(var a=0;a<s.length;a++){var f=s[a];if(f.name===e||f.uuid===e||(f=n(f.children)))return f}return null};if(t=n(t.children))return t}return null}}),Object.assign(En.prototype,{_getValue_unavailable:function(){},_setValue_unavailable:function(){},BindingType:{Direct:0,EntireArray:1,ArrayElement:2,HasFromToArray:3},Versioning:{None:0,NeedsUpdate:1,MatrixWorldNeedsUpdate:2},GetterByBindingType:[function(t,e){t[e]=this.node[this.propertyName]},function(t,e){for(var i=this.resolvedProperty,n=0,s=i.length;n!==s;++n)t[e++]=i[n]},function(t,e){t[e]=this.resolvedProperty[this.propertyIndex]},function(t,e){this.resolvedProperty.toArray(t,e)}],SetterByBindingTypeAndVersioning:[[function(t,e){this.targetObject[this.propertyName]=t[e]},function(t,e){this.targetObject[this.propertyName]=t[e],this.targetObject.needsUpdate=!0},function(t,e){this.targetObject[this.propertyName]=t[e],this.targetObject.matrixWorldNeedsUpdate=!0}],[function(t,e){for(var i=this.resolvedProperty,n=0,s=i.length;n!==s;++n)i[n]=t[e++]},function(t,e){for(var i=this.resolvedProperty,n=0,s=i.length;n!==s;++n)i[n]=t[e++];this.targetObject.needsUpdate=!0},function(t,e){for(var i=this.resolvedProperty,n=0,s=i.length;n!==s;++n)i[n]=t[e++];this.targetObject.matrixWorldNeedsUpdate=!0}],[function(t,e){this.resolvedProperty[this.propertyIndex]=t[e]},function(t,e){this.resolvedProperty[this.propertyIndex]=t[e],this.targetObject.needsUpdate=!0},function(t,e){this.resolvedProperty[this.propertyIndex]=t[e],this.targetObject.matrixWorldNeedsUpdate=!0}],[function(t,e){this.resolvedProperty.fromArray(t,e)},function(t,e){this.resolvedProperty.fromArray(t,e),this.targetObject.needsUpdate=!0},function(t,e){this.resolvedProperty.fromArray(t,e),this.targetObject.matrixWorldNeedsUpdate=!0}]],getValue:function(t,e){this.bind(),this.getValue(t,e)},setValue:function(t,e){this.bind(),this.setValue(t,e)},bind:function(){var t=this.node,e=this.parsedPath,i=e.objectName,n=e.propertyName,s=e.propertyIndex;if(t||(this.node=t=En.findNode(this.rootNode,e.nodeName)||this.rootNode),this.getValue=this._getValue_unavailable,this.setValue=this._setValue_unavailable,t){if(i){var a=e.objectIndex;switch(i){case"materials":if(!t.material){console.error("THREE.PropertyBinding: Can not bind to material as node does not have a material.",this);return}if(!t.material.materials){console.error("THREE.PropertyBinding: Can not bind to material.materials as node.material does not have a materials array.",this);return}t=t.material.materials;break;case"bones":if(!t.skeleton){console.error("THREE.PropertyBinding: Can not bind to bones as node does not have a skeleton.",this);return}for(t=t.skeleton.bones,i=0;i<t.length;i++)if(t[i].name===a){a=i;break}break;default:if(t[i]===void 0){console.error("THREE.PropertyBinding: Can not bind to objectName of node undefined.",this);return}t=t[i]}if(a!==void 0){if(t[a]===void 0){console.error("THREE.PropertyBinding: Trying to bind to objectIndex of objectName, but is undefined.",this,t);return}t=t[a]}}if(a=t[n],a===void 0)console.error("THREE.PropertyBinding: Trying to update property for track: "+e.nodeName+"."+n+" but it wasn't found.",t);else{if(e=this.Versioning.None,this.targetObject=t,t.needsUpdate!==void 0?e=this.Versioning.NeedsUpdate:t.matrixWorldNeedsUpdate!==void 0&&(e=this.Versioning.MatrixWorldNeedsUpdate),i=this.BindingType.Direct,s!==void 0){if(n==="morphTargetInfluences"){if(!t.geometry){console.error("THREE.PropertyBinding: Can not bind to morphTargetInfluences because node does not have a geometry.",this);return}if(t.geometry.isBufferGeometry){if(!t.geometry.morphAttributes){console.error("THREE.PropertyBinding: Can not bind to morphTargetInfluences because node does not have a geometry.morphAttributes.",this);return}for(i=0;i<this.node.geometry.morphAttributes.position.length;i++)if(t.geometry.morphAttributes.position[i].name===s){s=i;break}}else{if(!t.geometry.morphTargets){console.error("THREE.PropertyBinding: Can not bind to morphTargetInfluences because node does not have a geometry.morphTargets.",this);return}for(i=0;i<this.node.geometry.morphTargets.length;i++)if(t.geometry.morphTargets[i].name===s){s=i;break}}}i=this.BindingType.ArrayElement,this.resolvedProperty=a,this.propertyIndex=s}else a.fromArray!==void 0&&a.toArray!==void 0?(i=this.BindingType.HasFromToArray,this.resolvedProperty=a):Array.isArray(a)?(i=this.BindingType.EntireArray,this.resolvedProperty=a):this.propertyName=n;this.getValue=this.GetterByBindingType[i],this.setValue=this.SetterByBindingTypeAndVersioning[i][e]}}else console.error("THREE.PropertyBinding: Trying to update node for track: "+this.path+" but it wasn't found.")},unbind:function(){this.node=null,this.getValue=this._getValue_unbound,this.setValue=this._setValue_unbound}}),Object.assign(En.prototype,{_getValue_unbound:En.prototype.getValue,_setValue_unbound:En.prototype.setValue}),Object.assign(Ta.prototype,{isAnimationObjectGroup:!0,add:function(){for(var t=this._objects,e=t.length,i=this.nCachedObjects_,n=this._indicesByUUID,s=this._paths,a=this._parsedPaths,f=this._bindings,p=f.length,v=void 0,w=0,C=arguments.length;w!==C;++w){var L=arguments[w],B=L.uuid,H=n[B];if(H===void 0){H=e++,n[B]=H,t.push(L),B=0;for(var q=p;B!==q;++B)f[B].push(new En(L,s[B],a[B]))}else if(H<i){v=t[H];var K=--i;for(q=t[K],n[q.uuid]=H,t[H]=q,n[B]=K,t[K]=L,B=0,q=p;B!==q;++B){var rt=f[B],xt=rt[H];rt[H]=rt[K],xt===void 0&&(xt=new En(L,s[B],a[B])),rt[K]=xt}}else t[H]!==v&&console.error("THREE.AnimationObjectGroup: Different objects with the same UUID detected. Clean the caches or recreate your infrastructure when reloading scenes.")}this.nCachedObjects_=i},remove:function(){for(var t=this._objects,e=this.nCachedObjects_,i=this._indicesByUUID,n=this._bindings,s=n.length,a=0,f=arguments.length;a!==f;++a){var p=arguments[a],v=p.uuid,w=i[v];if(w!==void 0&&w>=e){var C=e++,L=t[C];for(i[L.uuid]=w,t[w]=L,i[v]=C,t[C]=p,p=0,v=s;p!==v;++p){L=n[p];var B=L[w];L[w]=L[C],L[C]=B}}}this.nCachedObjects_=e},uncache:function(){for(var t=this._objects,e=t.length,i=this.nCachedObjects_,n=this._indicesByUUID,s=this._bindings,a=s.length,f=0,p=arguments.length;f!==p;++f){var v=arguments[f].uuid,w=n[v];if(w!==void 0)if(delete n[v],w<i){v=--i;var C=t[v],L=--e,B=t[L];for(n[C.uuid]=w,t[w]=C,n[B.uuid]=v,t[v]=B,t.pop(),C=0,B=a;C!==B;++C){var H=s[C],q=H[L];H[w]=H[v],H[v]=q,H.pop()}}else for(L=--e,B=t[L],n[B.uuid]=w,t[w]=B,t.pop(),C=0,B=a;C!==B;++C)H=s[C],H[w]=H[L],H.pop()}this.nCachedObjects_=i},subscribe_:function(t,e){var i=this._bindingsIndicesByPath,n=i[t],s=this._bindings;if(n!==void 0)return s[n];var a=this._paths,f=this._parsedPaths,p=this._objects,v=this.nCachedObjects_,w=Array(p.length);for(n=s.length,i[t]=n,a.push(t),f.push(e),s.push(w),i=v,n=p.length;i!==n;++i)w[i]=new En(p[i],t,e);return w},unsubscribe_:function(t){var e=this._bindingsIndicesByPath,i=e[t];if(i!==void 0){var n=this._paths,s=this._parsedPaths,a=this._bindings,f=a.length-1,p=a[f];e[t[f]]=i,a[i]=p,a.pop(),s[i]=s[f],s.pop(),n[i]=n[f],n.pop()}}}),Object.assign(fl.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&&this.timeScale!==0&&this._startTime===null&&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,i){if(t.fadeOut(e),this.fadeIn(e),i){i=this._clip.duration;var n=t._clip.duration,s=i/n;t.warp(1,n/i,e),this.warp(s,1,e)}return this},crossFadeTo:function(t,e,i){return t.crossFadeFrom(this,e,i)},stopFading:function(){var t=this._weightInterpolant;return t!==null&&(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,i){var n=this._mixer,s=n.time,a=this._timeScaleInterpolant,f=this.timeScale;return a===null&&(this._timeScaleInterpolant=a=n._lendControlInterpolant()),n=a.parameterPositions,a=a.sampleValues,n[0]=s,n[1]=s+i,a[0]=t/f,a[1]=e/f,this},stopWarping:function(){var t=this._timeScaleInterpolant;return t!==null&&(this._timeScaleInterpolant=null,this._mixer._takeBackControlInterpolant(t)),this},getMixer:function(){return this._mixer},getClip:function(){return this._clip},getRoot:function(){return this._localRoot||this._mixer._root},_update:function(t,e,i,n){if(this.enabled){var s=this._startTime;if(s!==null){if(e=(t-s)*i,0>e||i===0)return;this._startTime=null,e*=i}if(e*=this._updateTimeScale(t),i=this._updateTime(e),t=this._updateWeight(t),0<t){e=this._interpolants,s=this._propertyBindings;for(var a=0,f=e.length;a!==f;++a)e[a].evaluate(i),s[a].accumulate(n,t)}}else this._updateWeight(t)},_updateWeight:function(t){var e=0;if(this.enabled){e=this.weight;var i=this._weightInterpolant;if(i!==null){var n=i.evaluate(t)[0];e*=n,t>i.parameterPositions[1]&&(this.stopFading(),n===0&&(this.enabled=!1))}}return this._effectiveWeight=e},_updateTimeScale:function(t){var e=0;if(!this.paused){e=this.timeScale;var i=this._timeScaleInterpolant;if(i!==null){var n=i.evaluate(t)[0];e*=n,t>i.parameterPositions[1]&&(this.stopWarping(),e===0?this.paused=!0:this.timeScale=e)}}return this._effectiveTimeScale=e},_updateTime:function(t){var e=this.time+t,i=this._clip.duration,n=this.loop,s=this._loopCount,a=n===2202;if(t===0)return s===-1?e:a&&(s&1)===1?i-e:e;if(n===2200)t:{if(s===-1&&(this._loopCount=0,this._setEndings(!0,!0,!1)),e>=i)e=i;else if(0>e)e=0;else break t;this.clampWhenFinished?this.paused=!0:this.enabled=!1,this._mixer.dispatchEvent({type:"finished",action:this,direction:0>t?-1:1})}else{if(s===-1&&(0<=t?(s=0,this._setEndings(!0,this.repetitions===0,a)):this._setEndings(this.repetitions===0,!0,a)),e>=i||0>e){n=Math.floor(e/i),e-=i*n,s+=Math.abs(n);var f=this.repetitions-s;0>=f?(this.clampWhenFinished?this.paused=!0:this.enabled=!1,e=0<t?i:0,this._mixer.dispatchEvent({type:"finished",action:this,direction:0<t?1:-1})):(f===1?(t=0>t,this._setEndings(t,!t,a)):this._setEndings(!1,!1,a),this._loopCount=s,this._mixer.dispatchEvent({type:"loop",action:this,loopDelta:n}))}if(a&&(s&1)===1)return this.time=e,i-e}return this.time=e},_setEndings:function(t,e,i){var n=this._interpolantSettings;i?(n.endingStart=2401,n.endingEnd=2401):(n.endingStart=t?this.zeroSlopeAtStart?2401:2400:2402,n.endingEnd=e?this.zeroSlopeAtEnd?2401:2400:2402)},_scheduleFading:function(t,e,i){var n=this._mixer,s=n.time,a=this._weightInterpolant;return a===null&&(this._weightInterpolant=a=n._lendControlInterpolant()),n=a.parameterPositions,a=a.sampleValues,n[0]=s,a[0]=e,n[1]=s+t,a[1]=i,this}}),no.prototype=Object.assign(Object.create(l.prototype),{constructor:no,_bindAction:function(t,e){var i=t._localRoot||this._root,n=t._clip.tracks,s=n.length,a=t._propertyBindings;t=t._interpolants;var f=i.uuid,p=this._bindingsByRootAndName,v=p[f];for(v===void 0&&(v={},p[f]=v),p=0;p!==s;++p){var w=n[p],C=w.name,L=v[C];if(L===void 0){if(L=a[p],L!==void 0){L._cacheIndex===null&&(++L.referenceCount,this._addInactiveBinding(L,f,C));continue}L=new cl(En.create(i,C,e&&e._propertyBindings[p].binding.parsedPath),w.ValueTypeName,w.getValueSize()),++L.referenceCount,this._addInactiveBinding(L,f,C)}a[p]=L,t[p].resultBuffer=L.buffer}},_activateAction:function(t){if(!this._isActiveAction(t)){if(t._cacheIndex===null){var e=(t._localRoot||this._root).uuid,i=t._clip.uuid,n=this._actionsByClip[i];this._bindAction(t,n&&n.knownActions[0]),this._addInactiveAction(t,i,e)}for(e=t._propertyBindings,i=0,n=e.length;i!==n;++i){var s=e[i];s.useCount++===0&&(this._lendBinding(s),s.saveOriginalState())}this._lendAction(t)}},_deactivateAction:function(t){if(this._isActiveAction(t)){for(var e=t._propertyBindings,i=0,n=e.length;i!==n;++i){var s=e[i];--s.useCount===0&&(s.restoreOriginalState(),this._takeBackBinding(s))}this._takeBackAction(t)}},_initMemoryManager:function(){this._actions=[],this._nActiveActions=0,this._actionsByClip={},this._bindings=[],this._nActiveBindings=0,this._bindingsByRootAndName={},this._controlInterpolants=[],this._nActiveControlInterpolants=0;var t=this;this.stats={actions:{get total(){return t._actions.length},get inUse(){return t._nActiveActions}},bindings:{get total(){return t._bindings.length},get inUse(){return t._nActiveBindings}},controlInterpolants:{get total(){return t._controlInterpolants.length},get inUse(){return t._nActiveControlInterpolants}}}},_isActiveAction:function(t){return t=t._cacheIndex,t!==null&&t<this._nActiveActions},_addInactiveAction:function(t,e,i){var n=this._actions,s=this._actionsByClip,a=s[e];a===void 0?(a={knownActions:[t],actionByRoot:{}},t._byClipCacheIndex=0,s[e]=a):(e=a.knownActions,t._byClipCacheIndex=e.length,e.push(t)),t._cacheIndex=n.length,n.push(t),a.actionByRoot[i]=t},_removeInactiveAction:function(t){var e=this._actions,i=e[e.length-1],n=t._cacheIndex;i._cacheIndex=n,e[n]=i,e.pop(),t._cacheIndex=null,e=t._clip.uuid,i=this._actionsByClip,n=i[e];var s=n.knownActions,a=s[s.length-1],f=t._byClipCacheIndex;a._byClipCacheIndex=f,s[f]=a,s.pop(),t._byClipCacheIndex=null,delete n.actionByRoot[(t._localRoot||this._root).uuid],s.length===0&&delete i[e],this._removeInactiveBindingsForAction(t)},_removeInactiveBindingsForAction:function(t){t=t._propertyBindings;for(var e=0,i=t.length;e!==i;++e){var n=t[e];--n.referenceCount===0&&this._removeInactiveBinding(n)}},_lendAction:function(t){var e=this._actions,i=t._cacheIndex,n=this._nActiveActions++,s=e[n];t._cacheIndex=n,e[n]=t,s._cacheIndex=i,e[i]=s},_takeBackAction:function(t){var e=this._actions,i=t._cacheIndex,n=--this._nActiveActions,s=e[n];t._cacheIndex=n,e[n]=t,s._cacheIndex=i,e[i]=s},_addInactiveBinding:function(t,e,i){var n=this._bindingsByRootAndName,s=n[e],a=this._bindings;s===void 0&&(s={},n[e]=s),s[i]=t,t._cacheIndex=a.length,a.push(t)},_removeInactiveBinding:function(t){var e=this._bindings,i=t.binding,n=i.rootNode.uuid;i=i.path;var s=this._bindingsByRootAndName,a=s[n],f=e[e.length-1];t=t._cacheIndex,f._cacheIndex=t,e[t]=f,e.pop(),delete a[i];t:{for(var p in a)break t;delete s[n]}},_lendBinding:function(t){var e=this._bindings,i=t._cacheIndex,n=this._nActiveBindings++,s=e[n];t._cacheIndex=n,e[n]=t,s._cacheIndex=i,e[i]=s},_takeBackBinding:function(t){var e=this._bindings,i=t._cacheIndex,n=--this._nActiveBindings,s=e[n];t._cacheIndex=n,e[n]=t,s._cacheIndex=i,e[i]=s},_lendControlInterpolant:function(){var t=this._controlInterpolants,e=this._nActiveControlInterpolants++,i=t[e];return i===void 0&&(i=new Dr(new Float32Array(2),new Float32Array(2),1,this._controlInterpolantsResultBuffer),i.__cacheIndex=e,t[e]=i),i},_takeBackControlInterpolant:function(t){var e=this._controlInterpolants,i=t.__cacheIndex,n=--this._nActiveControlInterpolants,s=e[n];t.__cacheIndex=n,e[n]=t,s.__cacheIndex=i,e[i]=s},_controlInterpolantsResultBuffer:new Float32Array(1),clipAction:function(t,e){var i=e||this._root,n=i.uuid;i=typeof t=="string"?yr.findByName(i,t):t,t=i!==null?i.uuid:t;var s=this._actionsByClip[t],a=null;if(s!==void 0){if(a=s.actionByRoot[n],a!==void 0)return a;a=s.knownActions[0],i===null&&(i=a._clip)}return i===null?null:(e=new fl(this,i,e),this._bindAction(e,a),this._addInactiveAction(e,t,n),e)},existingAction:function(t,e){var i=e||this._root;return e=i.uuid,i=typeof t=="string"?yr.findByName(i,t):t,t=this._actionsByClip[i?i.uuid:t],t!==void 0&&t.actionByRoot[e]||null},stopAllAction:function(){for(var t=this._actions,e=this._nActiveActions,i=this._bindings,n=this._nActiveBindings,s=this._nActiveBindings=this._nActiveActions=0;s!==e;++s)t[s].reset();for(s=0;s!==n;++s)i[s].useCount=0;return this},update:function(t){t*=this.timeScale;for(var e=this._actions,i=this._nActiveActions,n=this.time+=t,s=Math.sign(t),a=this._accuIndex^=1,f=0;f!==i;++f)e[f]._update(n,t,s,a);for(t=this._bindings,e=this._nActiveBindings,f=0;f!==e;++f)t[f].apply(a);return this},getRoot:function(){return this._root},uncacheClip:function(t){var e=this._actions;t=t.uuid;var i=this._actionsByClip,n=i[t];if(n!==void 0){n=n.knownActions;for(var s=0,a=n.length;s!==a;++s){var f=n[s];this._deactivateAction(f);var p=f._cacheIndex,v=e[e.length-1];f._cacheIndex=null,f._byClipCacheIndex=null,v._cacheIndex=p,e[p]=v,e.pop(),this._removeInactiveBindingsForAction(f)}delete i[t]}},uncacheRoot:function(t){t=t.uuid;var e=this._actionsByClip;for(n in e){var i=e[n].actionByRoot[t];i!==void 0&&(this._deactivateAction(i),this._removeInactiveAction(i))}var n=this._bindingsByRootAndName[t];if(n!==void 0)for(var s in n)t=n[s],t.restoreOriginalState(),this._removeInactiveBinding(t)},uncacheAction:function(t,e){t=this.existingAction(t,e),t!==null&&(this._deactivateAction(t),this._removeInactiveAction(t))}}),eh.prototype.clone=function(){return new eh(this.value.clone===void 0?this.value:this.value.clone())},Nh.prototype=Object.assign(Object.create(Ft.prototype),{constructor:Nh,isInstancedBufferGeometry:!0,copy:function(t){return Ft.prototype.copy.call(this,t),this.maxInstancedCount=t.maxInstancedCount,this},clone:function(){return new this.constructor().copy(this)}}),Fh.prototype=Object.assign(Object.create(zi.prototype),{constructor:Fh,isInstancedInterleavedBuffer:!0,copy:function(t){return zi.prototype.copy.call(this,t),this.meshPerAttribute=t.meshPerAttribute,this}}),Uh.prototype=Object.assign(Object.create(J.prototype),{constructor:Uh,isInstancedBufferAttribute:!0,copy:function(t){return J.prototype.copy.call(this,t),this.meshPerAttribute=t.meshPerAttribute,this}}),Object.assign(Au.prototype,{linePrecision:1,set:function(t,e){this.ray.set(t,e)},setFromCamera:function(t,e){e&&e.isPerspectiveCamera?(this.ray.origin.setFromMatrixPosition(e.matrixWorld),this.ray.direction.set(t.x,t.y,.5).unproject(e).sub(this.ray.origin).normalize()):e&&e.isOrthographicCamera?(this.ray.origin.set(t.x,t.y,(e.near+e.far)/(e.near-e.far)).unproject(e),this.ray.direction.set(0,0,-1).transformDirection(e.matrixWorld)):console.error("THREE.Raycaster: Unsupported camera type.")},intersectObject:function(t,e,i){return i=i||[],Bo(t,this,i,e),i.sort(pl),i},intersectObjects:function(t,e,i){if(i=i||[],Array.isArray(t)===!1)return console.warn("THREE.Raycaster.intersectObjects: objects is not an Array."),i;for(var n=0,s=t.length;n<s;n++)Bo(t[n],this,i,e);return i.sort(pl),i}}),Object.assign(Gh.prototype,{set:function(t,e,i){return this.radius=t,this.phi=e,this.theta=i,this},clone:function(){return new this.constructor().copy(this)},copy:function(t){return this.radius=t.radius,this.phi=t.phi,this.theta=t.theta,this},makeSafe:function(){return this.phi=Math.max(1e-6,Math.min(Math.PI-1e-6,this.phi)),this},setFromVector3:function(t){return this.setFromCartesianCoords(t.x,t.y,t.z)},setFromCartesianCoords:function(t,e,i){return this.radius=Math.sqrt(t*t+e*e+i*i),this.radius===0?this.phi=this.theta=0:(this.theta=Math.atan2(t,i),this.phi=Math.acos(pi.clamp(e/this.radius,-1,1))),this}}),Object.assign(it.prototype,{set:function(t,e,i){return this.radius=t,this.theta=e,this.y=i,this},clone:function(){return new this.constructor().copy(this)},copy:function(t){return this.radius=t.radius,this.theta=t.theta,this.y=t.y,this},setFromVector3:function(t){return this.setFromCartesianCoords(t.x,t.y,t.z)},setFromCartesianCoords:function(t,e,i){return this.radius=Math.sqrt(t*t+i*i),this.theta=Math.atan2(t,i),this.y=e,this}}),Object.assign(ro.prototype,{set:function(t,e){return this.min.copy(t),this.max.copy(e),this},setFromPoints:function(t){this.makeEmpty();for(var e=0,i=t.length;e<i;e++)this.expandByPoint(t[e]);return this},setFromCenterAndSize:function(){var t=new o;return function(e,i){return i=t.copy(i).multiplyScalar(.5),this.min.copy(e).sub(i),this.max.copy(e).add(i),this}}(),clone:function(){return new this.constructor().copy(this)},copy:function(t){return this.min.copy(t.min),this.max.copy(t.max),this},makeEmpty:function(){return this.min.x=this.min.y=1/0,this.max.x=this.max.y=-1/0,this},isEmpty:function(){return this.max.x<this.min.x||this.max.y<this.min.y},getCenter:function(t){return t===void 0&&(console.warn("THREE.Box2: .getCenter() target is now required"),t=new o),this.isEmpty()?t.set(0,0):t.addVectors(this.min,this.max).multiplyScalar(.5)},getSize:function(t){return t===void 0&&(console.warn("THREE.Box2: .getSize() target is now required"),t=new o),this.isEmpty()?t.set(0,0):t.subVectors(this.max,this.min)},expandByPoint:function(t){return this.min.min(t),this.max.max(t),this},expandByVector:function(t){return this.min.sub(t),this.max.add(t),this},expandByScalar:function(t){return this.min.addScalar(-t),this.max.addScalar(t),this},containsPoint:function(t){return!(t.x<this.min.x||t.x>this.max.x||t.y<this.min.y||t.y>this.max.y)},containsBox:function(t){return this.min.x<=t.min.x&&t.max.x<=this.max.x&&this.min.y<=t.min.y&&t.max.y<=this.max.y},getParameter:function(t,e){return e===void 0&&(console.warn("THREE.Box2: .getParameter() target is now required"),e=new o),e.set((t.x-this.min.x)/(this.max.x-this.min.x),(t.y-this.min.y)/(this.max.y-this.min.y))},intersectsBox:function(t){return!(t.max.x<this.min.x||t.min.x>this.max.x||t.max.y<this.min.y||t.min.y>this.max.y)},clampPoint:function(t,e){return e===void 0&&(console.warn("THREE.Box2: .clampPoint() target is now required"),e=new o),e.copy(t).clamp(this.min,this.max)},distanceToPoint:function(){var t=new o;return function(e){return t.copy(e).clamp(this.min,this.max).sub(e).length()}}(),intersect:function(t){return this.min.max(t.min),this.max.min(t.max),this},union:function(t){return this.min.min(t.min),this.max.max(t.max),this},translate:function(t){return this.min.add(t),this.max.add(t),this},equals:function(t){return t.min.equals(this.min)&&t.max.equals(this.max)}}),Object.assign(Ma.prototype,{set:function(t,e){return this.start.copy(t),this.end.copy(e),this},clone:function(){return new this.constructor().copy(this)},copy:function(t){return this.start.copy(t.start),this.end.copy(t.end),this},getCenter:function(t){return t===void 0&&(console.warn("THREE.Line3: .getCenter() target is now required"),t=new u),t.addVectors(this.start,this.end).multiplyScalar(.5)},delta:function(t){return t===void 0&&(console.warn("THREE.Line3: .delta() target is now required"),t=new u),t.subVectors(this.end,this.start)},distanceSq:function(){return this.start.distanceToSquared(this.end)},distance:function(){return this.start.distanceTo(this.end)},at:function(t,e){return e===void 0&&(console.warn("THREE.Line3: .at() target is now required"),e=new u),this.delta(e).multiplyScalar(t).add(this.start)},closestPointToPointParameter:function(){var t=new u,e=new u;return function(i,n){return t.subVectors(i,this.start),e.subVectors(this.end,this.start),i=e.dot(e),i=e.dot(t)/i,n&&(i=pi.clamp(i,0,1)),i}}(),closestPointToPoint:function(t,e,i){return t=this.closestPointToPointParameter(t,e),i===void 0&&(console.warn("THREE.Line3: .closestPointToPoint() target is now required"),i=new u),this.delta(i).multiplyScalar(t).add(this.start)},applyMatrix4:function(t){return this.start.applyMatrix4(t),this.end.applyMatrix4(t),this},equals:function(t){return t.start.equals(this.start)&&t.end.equals(this.end)}}),qn.prototype=Object.create(F.prototype),qn.prototype.constructor=qn,qn.prototype.isImmediateRenderObject=!0,yi.prototype=Object.create(gi.prototype),yi.prototype.constructor=yi,yi.prototype.update=function(){var t=new u,e=new u,i=new m;return function(){var n=["a","b","c"];this.object.updateMatrixWorld(!0),i.getNormalMatrix(this.object.matrixWorld);var s=this.object.matrixWorld,a=this.geometry.attributes.position,f=this.object.geometry;if(f&&f.isGeometry)for(var p=f.vertices,v=f.faces,w=f=0,C=v.length;w<C;w++)for(var L=v[w],B=0,H=L.vertexNormals.length;B<H;B++){var q=L.vertexNormals[B];t.copy(p[L[n[B]]]).applyMatrix4(s),e.copy(q).applyMatrix3(i).normalize().multiplyScalar(this.size).add(t),a.setXYZ(f,t.x,t.y,t.z),f+=1,a.setXYZ(f,e.x,e.y,e.z),f+=1}else if(f&&f.isBufferGeometry)for(n=f.attributes.position,p=f.attributes.normal,B=f=0,H=n.count;B<H;B++)t.set(n.getX(B),n.getY(B),n.getZ(B)).applyMatrix4(s),e.set(p.getX(B),p.getY(B),p.getZ(B)),e.applyMatrix3(i).normalize().multiplyScalar(this.size).add(t),a.setXYZ(f,t.x,t.y,t.z),f+=1,a.setXYZ(f,e.x,e.y,e.z),f+=1;a.needsUpdate=!0}}(),Sa.prototype=Object.create(F.prototype),Sa.prototype.constructor=Sa,Sa.prototype.dispose=function(){this.cone.geometry.dispose(),this.cone.material.dispose()},Sa.prototype.update=function(){var t=new u,e=new u;return function(){this.light.updateMatrixWorld();var i=this.light.distance?this.light.distance:1e3,n=i*Math.tan(this.light.angle);this.cone.scale.set(n,n,i),t.setFromMatrixPosition(this.light.matrixWorld),e.setFromMatrixPosition(this.light.target.matrixWorld),this.cone.lookAt(e.sub(t)),this.color!==void 0?this.cone.material.color.set(this.color):this.cone.material.color.copy(this.light.color)}}(),Ea.prototype=Object.create(gi.prototype),Ea.prototype.constructor=Ea,Ea.prototype.updateMatrixWorld=function(){var t=new u,e=new c,i=new c;return function(n){var s=this.bones,a=this.geometry,f=a.getAttribute("position");i.getInverse(this.root.matrixWorld);for(var p=0,v=0;p<s.length;p++){var w=s[p];w.parent&&w.parent.isBone&&(e.multiplyMatrices(i,w.matrixWorld),t.setFromMatrixPosition(e),f.setXYZ(v,t.x,t.y,t.z),e.multiplyMatrices(i,w.parent.matrixWorld),t.setFromMatrixPosition(e),f.setXYZ(v+1,t.x,t.y,t.z),v+=2)}a.getAttribute("position").needsUpdate=!0,F.prototype.updateMatrixWorld.call(this,n)}}(),kr.prototype=Object.create(di.prototype),kr.prototype.constructor=kr,kr.prototype.dispose=function(){this.geometry.dispose(),this.material.dispose()},kr.prototype.update=function(){this.color!==void 0?this.material.color.set(this.color):this.material.color.copy(this.light.color)},ba.prototype=Object.create(F.prototype),ba.prototype.constructor=ba,ba.prototype.dispose=function(){this.children[0].geometry.dispose(),this.children[0].material.dispose()},ba.prototype.update=function(){var t=.5*this.light.width,e=.5*this.light.height,i=this.line.geometry.attributes.position,n=i.array;n[0]=t,n[1]=-e,n[2]=0,n[3]=t,n[4]=e,n[5]=0,n[6]=-t,n[7]=e,n[8]=0,n[9]=-t,n[10]=-e,n[11]=0,n[12]=t,n[13]=-e,n[14]=0,i.needsUpdate=!0,this.color!==void 0?this.line.material.color.set(this.color):this.line.material.color.copy(this.light.color)},Aa.prototype=Object.create(F.prototype),Aa.prototype.constructor=Aa,Aa.prototype.dispose=function(){this.children[0].geometry.dispose(),this.children[0].material.dispose()},Aa.prototype.update=function(){var t=new u,e=new P,i=new P;return function(){var n=this.children[0];if(this.color!==void 0)this.material.color.set(this.color);else{var s=n.geometry.getAttribute("color");e.copy(this.light.color),i.copy(this.light.groundColor);for(var a=0,f=s.count;a<f;a++){var p=a<f/2?e:i;s.setXYZ(a,p.r,p.g,p.b)}s.needsUpdate=!0}n.lookAt(t.setFromMatrixPosition(this.light.matrixWorld).negate())}}(),dl.prototype=Object.create(gi.prototype),dl.prototype.constructor=dl,ih.prototype=Object.create(gi.prototype),ih.prototype.constructor=ih,ml.prototype=Object.create(gi.prototype),ml.prototype.constructor=ml,ml.prototype.update=function(){var t=new u,e=new u,i=new m;return function(){this.object.updateMatrixWorld(!0),i.getNormalMatrix(this.object.matrixWorld);var n=this.object.matrixWorld,s=this.geometry.attributes.position,a=this.object.geometry,f=a.vertices;a=a.faces;for(var p=0,v=0,w=a.length;v<w;v++){var C=a[v],L=C.normal;t.copy(f[C.a]).add(f[C.b]).add(f[C.c]).divideScalar(3).applyMatrix4(n),e.copy(L).applyMatrix3(i).normalize().multiplyScalar(this.size).add(t),s.setXYZ(p,t.x,t.y,t.z),p+=1,s.setXYZ(p,e.x,e.y,e.z),p+=1}s.needsUpdate=!0}}(),pr.prototype=Object.create(F.prototype),pr.prototype.constructor=pr,pr.prototype.dispose=function(){this.lightPlane.geometry.dispose(),this.lightPlane.material.dispose(),this.targetLine.geometry.dispose(),this.targetLine.material.dispose()},pr.prototype.update=function(){var t=new u,e=new u,i=new u;return function(){t.setFromMatrixPosition(this.light.matrixWorld),e.setFromMatrixPosition(this.light.target.matrixWorld),i.subVectors(e,t),this.lightPlane.lookAt(i),this.color!==void 0?(this.lightPlane.material.color.set(this.color),this.targetLine.material.color.set(this.color)):(this.lightPlane.material.color.copy(this.light.color),this.targetLine.material.color.copy(this.light.color)),this.targetLine.lookAt(i),this.targetLine.scale.z=i.length()}}(),gl.prototype=Object.create(gi.prototype),gl.prototype.constructor=gl,gl.prototype.update=function(){function t(a,f,p,v){if(n.set(f,p,v).unproject(s),a=i[a],a!==void 0)for(f=e.getAttribute("position"),p=0,v=a.length;p<v;p++)f.setXYZ(a[p],n.x,n.y,n.z)}var e,i,n=new u,s=new Be;return function(){e=this.geometry,i=this.pointMap,s.projectionMatrix.copy(this.camera.projectionMatrix),t("c",0,0,-1),t("t",0,0,1),t("n1",-1,-1,-1),t("n2",1,-1,-1),t("n3",-1,1,-1),t("n4",1,1,-1),t("f1",-1,-1,1),t("f2",1,-1,1),t("f3",-1,1,1),t("f4",1,1,1),t("u1",.7,1.1,-1),t("u2",-.7,1.1,-1),t("u3",0,2,-1),t("cf1",-1,0,1),t("cf2",1,0,1),t("cf3",0,-1,1),t("cf4",0,1,1),t("cn1",-1,0,-1),t("cn2",1,0,-1),t("cn3",0,-1,-1),t("cn4",0,1,-1),e.getAttribute("position").needsUpdate=!0}}(),Ds.prototype=Object.create(gi.prototype),Ds.prototype.constructor=Ds,Ds.prototype.update=function(){var t=new k;return function(e){if(e!==void 0&&console.warn("THREE.BoxHelper: .update() has no longer arguments."),this.object!==void 0&&t.setFromObject(this.object),!t.isEmpty()){e=t.min;var i=t.max,n=this.geometry.attributes.position,s=n.array;s[0]=i.x,s[1]=i.y,s[2]=i.z,s[3]=e.x,s[4]=i.y,s[5]=i.z,s[6]=e.x,s[7]=e.y,s[8]=i.z,s[9]=i.x,s[10]=e.y,s[11]=i.z,s[12]=i.x,s[13]=i.y,s[14]=e.z,s[15]=e.x,s[16]=i.y,s[17]=e.z,s[18]=e.x,s[19]=e.y,s[20]=e.z,s[21]=i.x,s[22]=e.y,s[23]=e.z,n.needsUpdate=!0,this.geometry.computeBoundingSphere()}}}(),Ds.prototype.setFromObject=function(t){return this.object=t,this.update(),this},Ds.prototype.copy=function(t){return gi.prototype.copy.call(this,t),this.object=t.object,this},Ds.prototype.clone=function(){return new this.constructor().copy(this)},vl.prototype=Object.create(gi.prototype),vl.prototype.constructor=vl,vl.prototype.updateMatrixWorld=function(t){var e=this.box;e.isEmpty()||(e.getCenter(this.position),e.getSize(this.scale),this.scale.multiplyScalar(.5),F.prototype.updateMatrixWorld.call(this,t))},_l.prototype=Object.create(ji.prototype),_l.prototype.constructor=_l,_l.prototype.updateMatrixWorld=function(t){var e=-this.plane.constant;1e-8>Math.abs(e)&&(e=1e-8),this.scale.set(.5*this.size,.5*this.size,e),this.children[0].material.side=0>e?1:0,this.lookAt(this.plane.normal),F.prototype.updateMatrixWorld.call(this,t)};var lh,Tl;zs.prototype=Object.create(F.prototype),zs.prototype.constructor=zs,zs.prototype.setDirection=function(){var t=new u,e;return function(i){.99999<i.y?this.quaternion.set(0,0,0,1):-.99999>i.y?this.quaternion.set(1,0,0,0):(t.set(i.z,0,-i.x).normalize(),e=Math.acos(i.y),this.quaternion.setFromAxisAngle(t,e))}}(),zs.prototype.setLength=function(t,e,i){e===void 0&&(e=.2*t),i===void 0&&(i=.2*e),this.line.scale.set(1,Math.max(0,t-e),1),this.line.updateMatrix(),this.cone.scale.set(i,e,i),this.cone.position.y=t,this.cone.updateMatrix()},zs.prototype.setColor=function(t){this.line.material.color.copy(t),this.cone.material.color.copy(t)},zs.prototype.copy=function(t){return F.prototype.copy.call(this,t,!1),this.line.copy(t.line),this.cone.copy(t.cone),this},zs.prototype.clone=function(){return new this.constructor().copy(this)},xr.prototype=Object.create(gi.prototype),xr.prototype.constructor=xr,Ee.create=function(t,e){return console.log("THREE.Curve.create() has been deprecated"),t.prototype=Object.create(Ee.prototype),t.prototype.constructor=t,t.prototype.getPoint=e,t},Object.assign(Os.prototype,{createPointsGeometry:function(t){return console.warn("THREE.CurvePath: .createPointsGeometry() has been removed. Use new THREE.Geometry().setFromPoints( points ) instead."),t=this.getPoints(t),this.createGeometry(t)},createSpacedPointsGeometry:function(t){return console.warn("THREE.CurvePath: .createSpacedPointsGeometry() has been removed. Use new THREE.Geometry().setFromPoints( points ) instead."),t=this.getSpacedPoints(t),this.createGeometry(t)},createGeometry:function(t){console.warn("THREE.CurvePath: .createGeometry() has been removed. Use new THREE.Geometry().setFromPoints( points ) instead.");for(var e=new j,i=0,n=t.length;i<n;i++){var s=t[i];e.vertices.push(new u(s.x,s.y,s.z||0))}return e}}),Object.assign(fr.prototype,{fromPoints:function(t){console.warn("THREE.Path: .fromPoints() has been renamed to .setFromPoints()."),this.setFromPoints(t)}}),Pu.prototype=Object.create(On.prototype),Lu.prototype=Object.create(On.prototype),Hh.prototype=Object.create(On.prototype),Object.assign(Hh.prototype,{initFromArray:function(){console.error("THREE.Spline: .initFromArray() has been removed.")},getControlPointsArray:function(){console.error("THREE.Spline: .getControlPointsArray() has been removed.")},reparametrizeByArcLength:function(){console.error("THREE.Spline: .reparametrizeByArcLength() has been removed.")}}),dl.prototype.setColors=function(){console.error("THREE.GridHelper: setColors() has been deprecated, pass them in the constructor instead.")},Ea.prototype.update=function(){console.error("THREE.SkeletonHelper: update() no longer needs to be called.")},Object.assign(Is.prototype,{extractUrlBase:function(t){return console.warn("THREE.Loader: .extractUrlBase() has been deprecated. Use THREE.LoaderUtils.extractUrlBase() instead."),Fo.extractUrlBase(t)}}),Object.assign(Do.prototype,{setTexturePath:function(t){return console.warn("THREE.JSONLoader: .setTexturePath() has been renamed to .setResourcePath()."),this.setResourcePath(t)}}),Object.assign(ll.prototype,{setTexturePath:function(t){return console.warn("THREE.ObjectLoader: .setTexturePath() has been renamed to .setResourcePath()."),this.setResourcePath(t)}}),Object.assign(ro.prototype,{center:function(t){return console.warn("THREE.Box2: .center() has been renamed to .getCenter()."),this.getCenter(t)},empty:function(){return console.warn("THREE.Box2: .empty() has been renamed to .isEmpty()."),this.isEmpty()},isIntersectionBox:function(t){return console.warn("THREE.Box2: .isIntersectionBox() has been renamed to .intersectsBox()."),this.intersectsBox(t)},size:function(t){return console.warn("THREE.Box2: .size() has been renamed to .getSize()."),this.getSize(t)}}),Object.assign(k.prototype,{center:function(t){return console.warn("THREE.Box3: .center() has been renamed to .getCenter()."),this.getCenter(t)},empty:function(){return console.warn("THREE.Box3: .empty() has been renamed to .isEmpty()."),this.isEmpty()},isIntersectionBox:function(t){return console.warn("THREE.Box3: .isIntersectionBox() has been renamed to .intersectsBox()."),this.intersectsBox(t)},isIntersectionSphere:function(t){return console.warn("THREE.Box3: .isIntersectionSphere() has been renamed to .intersectsSphere()."),this.intersectsSphere(t)},size:function(t){return console.warn("THREE.Box3: .size() has been renamed to .getSize()."),this.getSize(t)}}),Ma.prototype.center=function(t){return console.warn("THREE.Line3: .center() has been renamed to .getCenter()."),this.getCenter(t)},Object.assign(pi,{random16:function(){return console.warn("THREE.Math: .random16() has been deprecated. Use Math.random() instead."),Math.random()},nearestPowerOfTwo:function(t){return console.warn("THREE.Math: .nearestPowerOfTwo() has been renamed to .floorPowerOfTwo()."),pi.floorPowerOfTwo(t)},nextPowerOfTwo:function(t){return console.warn("THREE.Math: .nextPowerOfTwo() has been renamed to .ceilPowerOfTwo()."),pi.ceilPowerOfTwo(t)}}),Object.assign(m.prototype,{flattenToArrayOffset:function(t,e){return console.warn("THREE.Matrix3: .flattenToArrayOffset() has been deprecated. Use .toArray() instead."),this.toArray(t,e)},multiplyVector3:function(t){return console.warn("THREE.Matrix3: .multiplyVector3() has been removed. Use vector.applyMatrix3( matrix ) instead."),t.applyMatrix3(this)},multiplyVector3Array:function(){console.error("THREE.Matrix3: .multiplyVector3Array() has been removed.")},applyToBuffer:function(t){return console.warn("THREE.Matrix3: .applyToBuffer() has been removed. Use matrix.applyToBufferAttribute( attribute ) instead."),this.applyToBufferAttribute(t)},applyToVector3Array:function(){console.error("THREE.Matrix3: .applyToVector3Array() has been removed.")}}),Object.assign(c.prototype,{extractPosition:function(t){return console.warn("THREE.Matrix4: .extractPosition() has been renamed to .copyPosition()."),this.copyPosition(t)},flattenToArrayOffset:function(t,e){return console.warn("THREE.Matrix4: .flattenToArrayOffset() has been deprecated. Use .toArray() instead."),this.toArray(t,e)},getPosition:function(){var t;return function(){return t===void 0&&(t=new u),console.warn("THREE.Matrix4: .getPosition() has been removed. Use Vector3.setFromMatrixPosition( matrix ) instead."),t.setFromMatrixColumn(this,3)}}(),setRotationFromQuaternion:function(t){return console.warn("THREE.Matrix4: .setRotationFromQuaternion() has been renamed to .makeRotationFromQuaternion()."),this.makeRotationFromQuaternion(t)},multiplyToArray:function(){console.warn("THREE.Matrix4: .multiplyToArray() has been removed.")},multiplyVector3:function(t){return console.warn("THREE.Matrix4: .multiplyVector3() has been removed. Use vector.applyMatrix4( matrix ) instead."),t.applyMatrix4(this)},multiplyVector4:function(t){return console.warn("THREE.Matrix4: .multiplyVector4() has been removed. Use vector.applyMatrix4( matrix ) instead."),t.applyMatrix4(this)},multiplyVector3Array:function(){console.error("THREE.Matrix4: .multiplyVector3Array() has been removed.")},rotateAxis:function(t){console.warn("THREE.Matrix4: .rotateAxis() has been removed. Use Vector3.transformDirection( matrix ) instead."),t.transformDirection(this)},crossVector:function(t){return console.warn("THREE.Matrix4: .crossVector() has been removed. Use vector.applyMatrix4( matrix ) instead."),t.applyMatrix4(this)},translate:function(){console.error("THREE.Matrix4: .translate() has been removed.")},rotateX:function(){console.error("THREE.Matrix4: .rotateX() has been removed.")},rotateY:function(){console.error("THREE.Matrix4: .rotateY() has been removed.")},rotateZ:function(){console.error("THREE.Matrix4: .rotateZ() has been removed.")},rotateByAxis:function(){console.error("THREE.Matrix4: .rotateByAxis() has been removed.")},applyToBuffer:function(t){return console.warn("THREE.Matrix4: .applyToBuffer() has been removed. Use matrix.applyToBufferAttribute( attribute ) instead."),this.applyToBufferAttribute(t)},applyToVector3Array:function(){console.error("THREE.Matrix4: .applyToVector3Array() has been removed.")},makeFrustum:function(t,e,i,n,s,a){return console.warn("THREE.Matrix4: .makeFrustum() has been removed. Use .makePerspective( left, right, top, bottom, near, far ) instead."),this.makePerspective(t,e,n,i,s,a)}}),N.prototype.isIntersectionLine=function(t){return console.warn("THREE.Plane: .isIntersectionLine() has been renamed to .intersectsLine()."),this.intersectsLine(t)},d.prototype.multiplyVector3=function(t){return console.warn("THREE.Quaternion: .multiplyVector3() has been removed. Use is now vector.applyQuaternion( quaternion ) instead."),t.applyQuaternion(this)},Object.assign(Oi.prototype,{isIntersectionBox:function(t){return console.warn("THREE.Ray: .isIntersectionBox() has been renamed to .intersectsBox()."),this.intersectsBox(t)},isIntersectionPlane:function(t){return console.warn("THREE.Ray: .isIntersectionPlane() has been renamed to .intersectsPlane()."),this.intersectsPlane(t)},isIntersectionSphere:function(t){return console.warn("THREE.Ray: .isIntersectionSphere() has been renamed to .intersectsSphere()."),this.intersectsSphere(t)}}),Object.assign(Oe.prototype,{area:function(){return console.warn("THREE.Triangle: .area() has been renamed to .getArea()."),this.getArea()},barycoordFromPoint:function(t,e){return console.warn("THREE.Triangle: .barycoordFromPoint() has been renamed to .getBarycoord()."),this.getBarycoord(t,e)},midpoint:function(t){return console.warn("THREE.Triangle: .midpoint() has been renamed to .getMidpoint()."),this.getMidpoint(t)},normal:function(t){return console.warn("THREE.Triangle: .normal() has been renamed to .getNormal()."),this.getNormal(t)},plane:function(t){return console.warn("THREE.Triangle: .plane() has been renamed to .getPlane()."),this.getPlane(t)}}),Object.assign(Oe,{barycoordFromPoint:function(t,e,i,n,s){return console.warn("THREE.Triangle: .barycoordFromPoint() has been renamed to .getBarycoord()."),Oe.getBarycoord(t,e,i,n,s)},normal:function(t,e,i,n){return console.warn("THREE.Triangle: .normal() has been renamed to .getNormal()."),Oe.getNormal(t,e,i,n)}}),Object.assign(Qn.prototype,{extractAllPoints:function(t){return console.warn("THREE.Shape: .extractAllPoints() has been removed. Use .extractPoints() instead."),this.extractPoints(t)},extrude:function(t){return console.warn("THREE.Shape: .extrude() has been removed. Use ExtrudeGeometry() instead."),new Cs(this,t)},makeGeometry:function(t){return console.warn("THREE.Shape: .makeGeometry() has been removed. Use ShapeGeometry() instead."),new Ps(this,t)}}),Object.assign(o.prototype,{fromAttribute:function(t,e,i){return console.warn("THREE.Vector2: .fromAttribute() has been renamed to .fromBufferAttribute()."),this.fromBufferAttribute(t,e,i)},distanceToManhattan:function(t){return console.warn("THREE.Vector2: .distanceToManhattan() has been renamed to .manhattanDistanceTo()."),this.manhattanDistanceTo(t)},lengthManhattan:function(){return console.warn("THREE.Vector2: .lengthManhattan() has been renamed to .manhattanLength()."),this.manhattanLength()}}),Object.assign(u.prototype,{setEulerFromRotationMatrix:function(){console.error("THREE.Vector3: .setEulerFromRotationMatrix() has been removed. Use Euler.setFromRotationMatrix() instead.")},setEulerFromQuaternion:function(){console.error("THREE.Vector3: .setEulerFromQuaternion() has been removed. Use Euler.setFromQuaternion() instead.")},getPositionFromMatrix:function(t){return console.warn("THREE.Vector3: .getPositionFromMatrix() has been renamed to .setFromMatrixPosition()."),this.setFromMatrixPosition(t)},getScaleFromMatrix:function(t){return console.warn("THREE.Vector3: .getScaleFromMatrix() has been renamed to .setFromMatrixScale()."),this.setFromMatrixScale(t)},getColumnFromMatrix:function(t,e){return console.warn("THREE.Vector3: .getColumnFromMatrix() has been renamed to .setFromMatrixColumn()."),this.setFromMatrixColumn(e,t)},applyProjection:function(t){return console.warn("THREE.Vector3: .applyProjection() has been removed. Use .applyMatrix4( m ) instead."),this.applyMatrix4(t)},fromAttribute:function(t,e,i){return console.warn("THREE.Vector3: .fromAttribute() has been renamed to .fromBufferAttribute()."),this.fromBufferAttribute(t,e,i)},distanceToManhattan:function(t){return console.warn("THREE.Vector3: .distanceToManhattan() has been renamed to .manhattanDistanceTo()."),this.manhattanDistanceTo(t)},lengthManhattan:function(){return console.warn("THREE.Vector3: .lengthManhattan() has been renamed to .manhattanLength()."),this.manhattanLength()}}),Object.assign(y.prototype,{fromAttribute:function(t,e,i){return console.warn("THREE.Vector4: .fromAttribute() has been renamed to .fromBufferAttribute()."),this.fromBufferAttribute(t,e,i)},lengthManhattan:function(){return console.warn("THREE.Vector4: .lengthManhattan() has been renamed to .manhattanLength()."),this.manhattanLength()}}),Object.assign(j.prototype,{computeTangents:function(){console.error("THREE.Geometry: .computeTangents() has been removed.")},computeLineDistances:function(){console.error("THREE.Geometry: .computeLineDistances() has been removed. Use THREE.Line.computeLineDistances() instead.")}}),Object.assign(F.prototype,{getChildByName:function(t){return console.warn("THREE.Object3D: .getChildByName() has been renamed to .getObjectByName()."),this.getObjectByName(t)},renderDepth:function(){console.warn("THREE.Object3D: .renderDepth has been removed. Use .renderOrder, instead.")},translate:function(t,e){return console.warn("THREE.Object3D: .translate() has been removed. Use .translateOnAxis( axis, distance ) instead."),this.translateOnAxis(e,t)},getWorldRotation:function(){console.error("THREE.Object3D: .getWorldRotation() has been removed. Use THREE.Object3D.getWorldQuaternion( target ) instead.")}}),Object.defineProperties(F.prototype,{eulerOrder:{get:function(){return console.warn("THREE.Object3D: .eulerOrder is now .rotation.order."),this.rotation.order},set:function(t){console.warn("THREE.Object3D: .eulerOrder is now .rotation.order."),this.rotation.order=t}},useQuaternion:{get:function(){console.warn("THREE.Object3D: .useQuaternion has been removed. The library now uses quaternions by default.")},set:function(){console.warn("THREE.Object3D: .useQuaternion has been removed. The library now uses quaternions by default.")}}}),Object.defineProperties(rn.prototype,{objects:{get:function(){return console.warn("THREE.LOD: .objects has been renamed to .levels."),this.levels}}}),Object.defineProperty(un.prototype,"useVertexTexture",{get:function(){console.warn("THREE.Skeleton: useVertexTexture has been removed.")},set:function(){console.warn("THREE.Skeleton: useVertexTexture has been removed.")}}),Object.defineProperty(Ee.prototype,"__arcLengthDivisions",{get:function(){return console.warn("THREE.Curve: .__arcLengthDivisions is now .arcLengthDivisions."),this.arcLengthDivisions},set:function(t){console.warn("THREE.Curve: .__arcLengthDivisions is now .arcLengthDivisions."),this.arcLengthDivisions=t}}),ye.prototype.setLens=function(t,e){console.warn("THREE.PerspectiveCamera.setLens is deprecated. Use .setFocalLength and .filmGauge for a photographic setup."),e!==void 0&&(this.filmGauge=e),this.setFocalLength(t)},Object.defineProperties(tn.prototype,{onlyShadow:{set:function(){console.warn("THREE.Light: .onlyShadow has been removed.")}},shadowCameraFov:{set:function(t){console.warn("THREE.Light: .shadowCameraFov is now .shadow.camera.fov."),this.shadow.camera.fov=t}},shadowCameraLeft:{set:function(t){console.warn("THREE.Light: .shadowCameraLeft is now .shadow.camera.left."),this.shadow.camera.left=t}},shadowCameraRight:{set:function(t){console.warn("THREE.Light: .shadowCameraRight is now .shadow.camera.right."),this.shadow.camera.right=t}},shadowCameraTop:{set:function(t){console.warn("THREE.Light: .shadowCameraTop is now .shadow.camera.top."),this.shadow.camera.top=t}},shadowCameraBottom:{set:function(t){console.warn("THREE.Light: .shadowCameraBottom is now .shadow.camera.bottom."),this.shadow.camera.bottom=t}},shadowCameraNear:{set:function(t){console.warn("THREE.Light: .shadowCameraNear is now .shadow.camera.near."),this.shadow.camera.near=t}},shadowCameraFar:{set:function(t){console.warn("THREE.Light: .shadowCameraFar is now .shadow.camera.far."),this.shadow.camera.far=t}},shadowCameraVisible:{set:function(){console.warn("THREE.Light: .shadowCameraVisible has been removed. Use new THREE.CameraHelper( light.shadow.camera ) instead.")}},shadowBias:{set:function(t){console.warn("THREE.Light: .shadowBias is now .shadow.bias."),this.shadow.bias=t}},shadowDarkness:{set:function(){console.warn("THREE.Light: .shadowDarkness has been removed.")}},shadowMapWidth:{set:function(t){console.warn("THREE.Light: .shadowMapWidth is now .shadow.mapSize.width."),this.shadow.mapSize.width=t}},shadowMapHeight:{set:function(t){console.warn("THREE.Light: .shadowMapHeight is now .shadow.mapSize.height."),this.shadow.mapSize.height=t}}}),Object.defineProperties(J.prototype,{length:{get:function(){return console.warn("THREE.BufferAttribute: .length has been deprecated. Use .count instead."),this.array.length}},copyIndicesArray:function(){console.error("THREE.BufferAttribute: .copyIndicesArray() has been removed.")}}),Object.assign(Ft.prototype,{addIndex:function(t){console.warn("THREE.BufferGeometry: .addIndex() has been renamed to .setIndex()."),this.setIndex(t)},addDrawCall:function(t,e,i){i!==void 0&&console.warn("THREE.BufferGeometry: .addDrawCall() no longer supports indexOffset."),console.warn("THREE.BufferGeometry: .addDrawCall() is now .addGroup()."),this.addGroup(t,e)},clearDrawCalls:function(){console.warn("THREE.BufferGeometry: .clearDrawCalls() is now .clearGroups()."),this.clearGroups()},computeTangents:function(){console.warn("THREE.BufferGeometry: .computeTangents() has been removed.")},computeOffsets:function(){console.warn("THREE.BufferGeometry: .computeOffsets() has been removed.")}}),Object.defineProperties(Ft.prototype,{drawcalls:{get:function(){return console.error("THREE.BufferGeometry: .drawcalls has been renamed to .groups."),this.groups}},offsets:{get:function(){return console.warn("THREE.BufferGeometry: .offsets has been renamed to .groups."),this.groups}}}),Object.assign(ps.prototype,{getArrays:function(){console.error("THREE.ExtrudeBufferGeometry: .getArrays() has been removed.")},addShapeList:function(){console.error("THREE.ExtrudeBufferGeometry: .addShapeList() has been removed.")},addShape:function(){console.error("THREE.ExtrudeBufferGeometry: .addShape() has been removed.")}}),Object.defineProperties(eh.prototype,{dynamic:{set:function(){console.warn("THREE.Uniform: .dynamic has been removed. Use object.onBeforeRender() instead.")}},onUpdate:{value:function(){return console.warn("THREE.Uniform: .onUpdate() has been removed. Use object.onBeforeRender() instead."),this}}}),Object.defineProperties(Yt.prototype,{wrapAround:{get:function(){console.warn("THREE.Material: .wrapAround has been removed.")},set:function(){console.warn("THREE.Material: .wrapAround has been removed.")}},overdraw:{get:function(){console.warn("THREE.Material: .overdraw has been removed.")},set:function(){console.warn("THREE.Material: .overdraw has been removed.")}},wrapRGB:{get:function(){return console.warn("THREE.Material: .wrapRGB has been removed."),new P}},shading:{get:function(){console.error("THREE."+this.type+": .shading has been removed. Use the boolean .flatShading instead.")},set:function(t){console.warn("THREE."+this.type+": .shading has been removed. Use the boolean .flatShading instead."),this.flatShading=t===1}}}),Object.defineProperties(Jr.prototype,{metal:{get:function(){return console.warn("THREE.MeshPhongMaterial: .metal has been removed. Use THREE.MeshStandardMaterial instead."),!1},set:function(){console.warn("THREE.MeshPhongMaterial: .metal has been removed. Use THREE.MeshStandardMaterial instead")}}}),Object.defineProperties($e.prototype,{derivatives:{get:function(){return console.warn("THREE.ShaderMaterial: .derivatives has been moved to .extensions.derivatives."),this.extensions.derivatives},set:function(t){console.warn("THREE. ShaderMaterial: .derivatives has been moved to .extensions.derivatives."),this.extensions.derivatives=t}}}),Object.assign(xe.prototype,{clearTarget:function(t,e,i,n){console.warn("THREE.WebGLRenderer: .clearTarget() has been deprecated. Use .setRenderTarget() and .clear() instead."),this.setRenderTarget(t),this.clear(e,i,n)},animate:function(t){console.warn("THREE.WebGLRenderer: .animate() is now .setAnimationLoop()."),this.setAnimationLoop(t)},getCurrentRenderTarget:function(){return console.warn("THREE.WebGLRenderer: .getCurrentRenderTarget() is now .getRenderTarget()."),this.getRenderTarget()},getMaxAnisotropy:function(){return console.warn("THREE.WebGLRenderer: .getMaxAnisotropy() is now .capabilities.getMaxAnisotropy()."),this.capabilities.getMaxAnisotropy()},getPrecision:function(){return console.warn("THREE.WebGLRenderer: .getPrecision() is now .capabilities.precision."),this.capabilities.precision},resetGLState:function(){return console.warn("THREE.WebGLRenderer: .resetGLState() is now .state.reset()."),this.state.reset()},supportsFloatTextures:function(){return console.warn("THREE.WebGLRenderer: .supportsFloatTextures() is now .extensions.get( 'OES_texture_float' )."),this.extensions.get("OES_texture_float")},supportsHalfFloatTextures:function(){return console.warn("THREE.WebGLRenderer: .supportsHalfFloatTextures() is now .extensions.get( 'OES_texture_half_float' )."),this.extensions.get("OES_texture_half_float")},supportsStandardDerivatives:function(){return console.warn("THREE.WebGLRenderer: .supportsStandardDerivatives() is now .extensions.get( 'OES_standard_derivatives' )."),this.extensions.get("OES_standard_derivatives")},supportsCompressedTextureS3TC:function(){return console.warn("THREE.WebGLRenderer: .supportsCompressedTextureS3TC() is now .extensions.get( 'WEBGL_compressed_texture_s3tc' )."),this.extensions.get("WEBGL_compressed_texture_s3tc")},supportsCompressedTexturePVRTC:function(){return console.warn("THREE.WebGLRenderer: .supportsCompressedTexturePVRTC() is now .extensions.get( 'WEBGL_compressed_texture_pvrtc' )."),this.extensions.get("WEBGL_compressed_texture_pvrtc")},supportsBlendMinMax:function(){return console.warn("THREE.WebGLRenderer: .supportsBlendMinMax() is now .extensions.get( 'EXT_blend_minmax' )."),this.extensions.get("EXT_blend_minmax")},supportsVertexTextures:function(){return console.warn("THREE.WebGLRenderer: .supportsVertexTextures() is now .capabilities.vertexTextures."),this.capabilities.vertexTextures},supportsInstancedArrays:function(){return console.warn("THREE.WebGLRenderer: .supportsInstancedArrays() is now .extensions.get( 'ANGLE_instanced_arrays' )."),this.extensions.get("ANGLE_instanced_arrays")},enableScissorTest:function(t){console.warn("THREE.WebGLRenderer: .enableScissorTest() is now .setScissorTest()."),this.setScissorTest(t)},initMaterial:function(){console.warn("THREE.WebGLRenderer: .initMaterial() has been removed.")},addPrePlugin:function(){console.warn("THREE.WebGLRenderer: .addPrePlugin() has been removed.")},addPostPlugin:function(){console.warn("THREE.WebGLRenderer: .addPostPlugin() has been removed.")},updateShadowMap:function(){console.warn("THREE.WebGLRenderer: .updateShadowMap() has been removed.")},setFaceCulling:function(){console.warn("THREE.WebGLRenderer: .setFaceCulling() has been removed.")}}),Object.defineProperties(xe.prototype,{shadowMapEnabled:{get:function(){return this.shadowMap.enabled},set:function(t){console.warn("THREE.WebGLRenderer: .shadowMapEnabled is now .shadowMap.enabled."),this.shadowMap.enabled=t}},shadowMapType:{get:function(){return this.shadowMap.type},set:function(t){console.warn("THREE.WebGLRenderer: .shadowMapType is now .shadowMap.type."),this.shadowMap.type=t}},shadowMapCullFace:{get:function(){console.warn("THREE.WebGLRenderer: .shadowMapCullFace has been removed. Set Material.shadowSide instead.")},set:function(){console.warn("THREE.WebGLRenderer: .shadowMapCullFace has been removed. Set Material.shadowSide instead.")}}}),Object.defineProperties(_e.prototype,{cullFace:{get:function(){console.warn("THREE.WebGLRenderer: .shadowMap.cullFace has been removed. Set Material.shadowSide instead.")},set:function(){console.warn("THREE.WebGLRenderer: .shadowMap.cullFace has been removed. Set Material.shadowSide instead.")}},renderReverseSided:{get:function(){console.warn("THREE.WebGLRenderer: .shadowMap.renderReverseSided has been removed. Set Material.shadowSide instead.")},set:function(){console.warn("THREE.WebGLRenderer: .shadowMap.renderReverseSided has been removed. Set Material.shadowSide instead.")}},renderSingleSided:{get:function(){console.warn("THREE.WebGLRenderer: .shadowMap.renderSingleSided has been removed. Set Material.shadowSide instead.")},set:function(){console.warn("THREE.WebGLRenderer: .shadowMap.renderSingleSided has been removed. Set Material.shadowSide instead.")}}}),Object.defineProperties(S.prototype,{wrapS:{get:function(){return console.warn("THREE.WebGLRenderTarget: .wrapS is now .texture.wrapS."),this.texture.wrapS},set:function(t){console.warn("THREE.WebGLRenderTarget: .wrapS is now .texture.wrapS."),this.texture.wrapS=t}},wrapT:{get:function(){return console.warn("THREE.WebGLRenderTarget: .wrapT is now .texture.wrapT."),this.texture.wrapT},set:function(t){console.warn("THREE.WebGLRenderTarget: .wrapT is now .texture.wrapT."),this.texture.wrapT=t}},magFilter:{get:function(){return console.warn("THREE.WebGLRenderTarget: .magFilter is now .texture.magFilter."),this.texture.magFilter},set:function(t){console.warn("THREE.WebGLRenderTarget: .magFilter is now .texture.magFilter."),this.texture.magFilter=t}},minFilter:{get:function(){return console.warn("THREE.WebGLRenderTarget: .minFilter is now .texture.minFilter."),this.texture.minFilter},set:function(t){console.warn("THREE.WebGLRenderTarget: .minFilter is now .texture.minFilter."),this.texture.minFilter=t}},anisotropy:{get:function(){return console.warn("THREE.WebGLRenderTarget: .anisotropy is now .texture.anisotropy."),this.texture.anisotropy},set:function(t){console.warn("THREE.WebGLRenderTarget: .anisotropy is now .texture.anisotropy."),this.texture.anisotropy=t}},offset:{get:function(){return console.warn("THREE.WebGLRenderTarget: .offset is now .texture.offset."),this.texture.offset},set:function(t){console.warn("THREE.WebGLRenderTarget: .offset is now .texture.offset."),this.texture.offset=t}},repeat:{get:function(){return console.warn("THREE.WebGLRenderTarget: .repeat is now .texture.repeat."),this.texture.repeat},set:function(t){console.warn("THREE.WebGLRenderTarget: .repeat is now .texture.repeat."),this.texture.repeat=t}},format:{get:function(){return console.warn("THREE.WebGLRenderTarget: .format is now .texture.format."),this.texture.format},set:function(t){console.warn("THREE.WebGLRenderTarget: .format is now .texture.format."),this.texture.format=t}},type:{get:function(){return console.warn("THREE.WebGLRenderTarget: .type is now .texture.type."),this.texture.type},set:function(t){console.warn("THREE.WebGLRenderTarget: .type is now .texture.type."),this.texture.type=t}},generateMipmaps:{get:function(){return console.warn("THREE.WebGLRenderTarget: .generateMipmaps is now .texture.generateMipmaps."),this.texture.generateMipmaps},set:function(t){console.warn("THREE.WebGLRenderTarget: .generateMipmaps is now .texture.generateMipmaps."),this.texture.generateMipmaps=t}}}),Object.defineProperties(mi.prototype,{standing:{set:function(){console.warn("THREE.WebVRManager: .standing has been removed.")}},userHeight:{set:function(){console.warn("THREE.WebVRManager: .userHeight has been removed.")}}}),wa.prototype.load=function(t){console.warn("THREE.Audio: .load has been deprecated. Use THREE.AudioLoader instead.");var e=this;return new vn().load(t,function(i){e.setBuffer(i)}),this},zo.prototype.getData=function(){return console.warn("THREE.AudioAnalyser: .getData() is now .getFrequencyData()."),this.getFrequencyData()},hl.prototype.updateCubeMap=function(t,e){return console.warn("THREE.CubeCamera: .updateCubeMap() is now .update()."),this.update(t,e)},so.crossOrigin=void 0,so.loadTexture=function(t,e,i,n){console.warn("THREE.ImageUtils.loadTexture has been deprecated. Use THREE.TextureLoader() instead.");var s=new fn;return s.setCrossOrigin(this.crossOrigin),t=s.load(t,i,void 0,n),e&&(t.mapping=e),t},so.loadTextureCube=function(t,e,i,n){console.warn("THREE.ImageUtils.loadTextureCube has been deprecated. Use THREE.CubeTextureLoader() instead.");var s=new Ni;return s.setCrossOrigin(this.crossOrigin),t=s.load(t,i,void 0,n),e&&(t.mapping=e),t},so.loadCompressedTexture=function(){console.error("THREE.ImageUtils.loadCompressedTexture has been removed. Use THREE.DDSLoader instead.")},so.loadCompressedTextureCube=function(){console.error("THREE.ImageUtils.loadCompressedTextureCube has been removed. Use THREE.DDSLoader instead.")},x.WebGLRenderTargetCube=A,x.WebGLRenderTarget=S,x.WebGLRenderer=xe,x.ShaderLib=xs,x.UniformsLib=qe,x.UniformsUtils=Bn,x.ShaderChunk=bi,x.FogExp2=Le,x.Fog=Sn,x.Scene=Xn,x.Sprite=nn,x.LOD=rn,x.SkinnedMesh=Gi,x.Skeleton=un,x.Bone=cn,x.Mesh=di,x.LineSegments=gi,x.LineLoop=cs,x.Line=ji,x.Points=oa,x.Group=ci,x.VideoTexture=Rh,x.DataTexture=I,x.DataTexture3D=Q,x.CompressedTexture=qs,x.CubeTexture=z,x.CanvasTexture=Za,x.DepthTexture=Ja,x.Texture=_,x.AnimationLoader=Qt,x.CompressedTextureLoader=Zt,x.DataTextureLoader=Ue,x.CubeTextureLoader=Ni,x.TextureLoader=fn,x.ObjectLoader=ll,x.MaterialLoader=Kl,x.BufferGeometryLoader=Dh,x.DefaultLoadingManager=tr,x.LoadingManager=to,x.JSONLoader=Do,x.ImageLoader=ai,x.ImageBitmapLoader=zh,x.FontLoader=bu,x.FileLoader=Lt,x.Loader=Is,x.LoaderUtils=Fo,x.Cache=Ts,x.AudioLoader=vn,x.SpotLightShadow=ol,x.SpotLight=al,x.PointLight=Oo,x.RectAreaLight=$l,x.HemisphereLight=sl,x.DirectionalLightShadow=io,x.DirectionalLight=ys,x.AmbientLight=Io,x.LightShadow=_s,x.Light=tn,x.StereoCamera=Vn,x.PerspectiveCamera=ye,x.OrthographicCamera=xa,x.CubeCamera=hl,x.ArrayCamera=Fe,x.Camera=Be,x.AudioListener=th,x.PositionalAudio=ul,x.AudioContext=qh,x.AudioAnalyser=zo,x.Audio=wa,x.VectorKeyframeTrack=_a,x.StringKeyframeTrack=Jl,x.QuaternionKeyframeTrack=va,x.NumberKeyframeTrack=$r,x.ColorKeyframeTrack=Zl,x.BooleanKeyframeTrack=Yl,x.PropertyMixer=cl,x.PropertyBinding=En,x.KeyframeTrack=Hn,x.AnimationUtils=Yn,x.AnimationObjectGroup=Ta,x.AnimationMixer=no,x.AnimationClip=yr,x.Uniform=eh,x.InstancedBufferGeometry=Nh,x.BufferGeometry=Ft,x.Geometry=j,x.InterleavedBufferAttribute=ki,x.InstancedInterleavedBuffer=Fh,x.InterleavedBuffer=zi,x.InstancedBufferAttribute=Uh,x.Face3=R,x.Object3D=F,x.Raycaster=Au,x.Layers=U,x.EventDispatcher=l,x.Clock=Bh,x.QuaternionLinearInterpolant=ar,x.LinearInterpolant=Dr,x.DiscreteInterpolant=Ro,x.CubicInterpolant=rl,x.Interpolant=$n,x.Triangle=Oe,x.Math=pi,x.Spherical=Gh,x.Cylindrical=it,x.Plane=N,x.Frustum=E,x.Sphere=D,x.Ray=Oi,x.Matrix4=c,x.Matrix3=m,x.Box3=k,x.Box2=ro,x.Line3=Ma,x.Euler=b,x.Vector4=y,x.Vector3=u,x.Vector2=o,x.Quaternion=d,x.Color=P,x.ImmediateRenderObject=qn,x.VertexNormalsHelper=yi,x.SpotLightHelper=Sa,x.SkeletonHelper=Ea,x.PointLightHelper=kr,x.RectAreaLightHelper=ba,x.HemisphereLightHelper=Aa,x.GridHelper=dl,x.PolarGridHelper=ih,x.FaceNormalsHelper=ml,x.DirectionalLightHelper=pr,x.CameraHelper=gl,x.BoxHelper=Ds,x.Box3Helper=vl,x.PlaneHelper=_l,x.ArrowHelper=zs,x.AxesHelper=xr,x.Shape=Qn,x.Path=fr,x.ShapePath=Ql,x.Font=kh,x.CurvePath=Os,x.Curve=Ee,x.ImageUtils=so,x.ShapeUtils=ws,x.WebGLUtils=He,x.WireframeGeometry=aa,x.ParametricGeometry=$a,x.ParametricBufferGeometry=la,x.TetrahedronGeometry=Ka,x.TetrahedronBufferGeometry=ha,x.OctahedronGeometry=Qa,x.OctahedronBufferGeometry=_o,x.IcosahedronGeometry=tl,x.IcosahedronBufferGeometry=ua,x.DodecahedronGeometry=ca,x.DodecahedronBufferGeometry=fa,x.PolyhedronGeometry=Xi,x.PolyhedronBufferGeometry=xi,x.TubeGeometry=gn,x.TubeBufferGeometry=Ys,x.TorusKnotGeometry=Zr,x.TorusKnotBufferGeometry=yo,x.TorusGeometry=xo,x.TorusBufferGeometry=Un,x.TextGeometry=il,x.TextBufferGeometry=To,x.SphereGeometry=Zs,x.SphereBufferGeometry=Or,x.RingGeometry=nl,x.RingBufferGeometry=Mo,x.PlaneGeometry=ke,x.PlaneBufferGeometry=ce,x.LatheGeometry=ma,x.LatheBufferGeometry=Js,x.ShapeGeometry=Ps,x.ShapeBufferGeometry=$s,x.ExtrudeGeometry=Cs,x.ExtrudeBufferGeometry=ps,x.EdgesGeometry=Ks,x.ConeGeometry=ga,x.ConeBufferGeometry=Gn,x.CylinderGeometry=Ls,x.CylinderBufferGeometry=Rs,x.CircleGeometry=So,x.CircleBufferGeometry=ds,x.BoxGeometry=Ot,x.BoxBufferGeometry=Bt,x.ShadowMaterial=Qs,x.SpriteMaterial=Hi,x.RawShaderMaterial=Eo,x.ShaderMaterial=$e,x.PointsMaterial=Fn,x.MeshPhysicalMaterial=bo,x.MeshStandardMaterial=ms,x.MeshPhongMaterial=Jr,x.MeshToonMaterial=Ao,x.MeshNormalMaterial=Co,x.MeshLambertMaterial=Ir,x.MeshDepthMaterial=oe,x.MeshDistanceMaterial=te,x.MeshBasicMaterial=Ge,x.MeshMatcapMaterial=Po,x.LineDashedMaterial=Lo,x.LineBasicMaterial=Bi,x.Material=Yt,x.Float64BufferAttribute=Ct,x.Float32BufferAttribute=Et,x.Uint32BufferAttribute=Pt,x.Int32BufferAttribute=G,x.Uint16BufferAttribute=yt,x.Int16BufferAttribute=et,x.Uint8ClampedBufferAttribute=It,x.Uint8BufferAttribute=ct,x.Int8BufferAttribute=$,x.BufferAttribute=J,x.ArcCurve=ya,x.CatmullRomCurve3=On,x.CubicBezierCurve=hr,x.CubicBezierCurve3=Ti,x.EllipseCurve=Kn,x.LineCurve=ur,x.LineCurve3=zr,x.QuadraticBezierCurve=cr,x.QuadraticBezierCurve3=vs,x.SplineCurve=Kr,x.REVISION="98",x.MOUSE={LEFT:0,MIDDLE:1,RIGHT:2},x.CullFaceNone=0,x.CullFaceBack=1,x.CullFaceFront=2,x.CullFaceFrontBack=3,x.FrontFaceDirectionCW=0,x.FrontFaceDirectionCCW=1,x.BasicShadowMap=0,x.PCFShadowMap=1,x.PCFSoftShadowMap=2,x.FrontSide=0,x.BackSide=1,x.DoubleSide=2,x.FlatShading=1,x.SmoothShading=2,x.NoColors=0,x.FaceColors=1,x.VertexColors=2,x.NoBlending=0,x.NormalBlending=1,x.AdditiveBlending=2,x.SubtractiveBlending=3,x.MultiplyBlending=4,x.CustomBlending=5,x.AddEquation=100,x.SubtractEquation=101,x.ReverseSubtractEquation=102,x.MinEquation=103,x.MaxEquation=104,x.ZeroFactor=200,x.OneFactor=201,x.SrcColorFactor=202,x.OneMinusSrcColorFactor=203,x.SrcAlphaFactor=204,x.OneMinusSrcAlphaFactor=205,x.DstAlphaFactor=206,x.OneMinusDstAlphaFactor=207,x.DstColorFactor=208,x.OneMinusDstColorFactor=209,x.SrcAlphaSaturateFactor=210,x.NeverDepth=0,x.AlwaysDepth=1,x.LessDepth=2,x.LessEqualDepth=3,x.EqualDepth=4,x.GreaterEqualDepth=5,x.GreaterDepth=6,x.NotEqualDepth=7,x.MultiplyOperation=0,x.MixOperation=1,x.AddOperation=2,x.NoToneMapping=0,x.LinearToneMapping=1,x.ReinhardToneMapping=2,x.Uncharted2ToneMapping=3,x.CineonToneMapping=4,x.UVMapping=300,x.CubeReflectionMapping=301,x.CubeRefractionMapping=302,x.EquirectangularReflectionMapping=303,x.EquirectangularRefractionMapping=304,x.SphericalReflectionMapping=305,x.CubeUVReflectionMapping=306,x.CubeUVRefractionMapping=307,x.RepeatWrapping=1e3,x.ClampToEdgeWrapping=1001,x.MirroredRepeatWrapping=1002,x.NearestFilter=1003,x.NearestMipMapNearestFilter=1004,x.NearestMipMapLinearFilter=1005,x.LinearFilter=1006,x.LinearMipMapNearestFilter=1007,x.LinearMipMapLinearFilter=1008,x.UnsignedByteType=1009,x.ByteType=1010,x.ShortType=1011,x.UnsignedShortType=1012,x.IntType=1013,x.UnsignedIntType=1014,x.FloatType=1015,x.HalfFloatType=1016,x.UnsignedShort4444Type=1017,x.UnsignedShort5551Type=1018,x.UnsignedShort565Type=1019,x.UnsignedInt248Type=1020,x.AlphaFormat=1021,x.RGBFormat=1022,x.RGBAFormat=1023,x.LuminanceFormat=1024,x.LuminanceAlphaFormat=1025,x.RGBEFormat=1023,x.DepthFormat=1026,x.DepthStencilFormat=1027,x.RedFormat=1028,x.RGB_S3TC_DXT1_Format=33776,x.RGBA_S3TC_DXT1_Format=33777,x.RGBA_S3TC_DXT3_Format=33778,x.RGBA_S3TC_DXT5_Format=33779,x.RGB_PVRTC_4BPPV1_Format=35840,x.RGB_PVRTC_2BPPV1_Format=35841,x.RGBA_PVRTC_4BPPV1_Format=35842,x.RGBA_PVRTC_2BPPV1_Format=35843,x.RGB_ETC1_Format=36196,x.RGBA_ASTC_4x4_Format=37808,x.RGBA_ASTC_5x4_Format=37809,x.RGBA_ASTC_5x5_Format=37810,x.RGBA_ASTC_6x5_Format=37811,x.RGBA_ASTC_6x6_Format=37812,x.RGBA_ASTC_8x5_Format=37813,x.RGBA_ASTC_8x6_Format=37814,x.RGBA_ASTC_8x8_Format=37815,x.RGBA_ASTC_10x5_Format=37816,x.RGBA_ASTC_10x6_Format=37817,x.RGBA_ASTC_10x8_Format=37818,x.RGBA_ASTC_10x10_Format=37819,x.RGBA_ASTC_12x10_Format=37820,x.RGBA_ASTC_12x12_Format=37821,x.LoopOnce=2200,x.LoopRepeat=2201,x.LoopPingPong=2202,x.InterpolateDiscrete=2300,x.InterpolateLinear=2301,x.InterpolateSmooth=2302,x.ZeroCurvatureEnding=2400,x.ZeroSlopeEnding=2401,x.WrapAroundEnding=2402,x.TrianglesDrawMode=0,x.TriangleStripDrawMode=1,x.TriangleFanDrawMode=2,x.LinearEncoding=3e3,x.sRGBEncoding=3001,x.GammaEncoding=3007,x.RGBEEncoding=3002,x.LogLuvEncoding=3003,x.RGBM7Encoding=3004,x.RGBM16Encoding=3005,x.RGBDEncoding=3006,x.BasicDepthPacking=3200,x.RGBADepthPacking=3201,x.TangentSpaceNormalMap=0,x.ObjectSpaceNormalMap=1,x.CubeGeometry=Ot,x.Face4=function(t,e,i,n,s,a,f){return console.warn("THREE.Face4 has been removed. A THREE.Face3 will be created instead."),new R(t,e,i,s,a,f)},x.LineStrip=0,x.LinePieces=1,x.MeshFaceMaterial=function(t){return console.warn("THREE.MeshFaceMaterial has been removed. Use an Array instead."),t},x.MultiMaterial=function(t){return t===void 0&&(t=[]),console.warn("THREE.MultiMaterial has been removed. Use an Array instead."),t.isMultiMaterial=!0,t.materials=t,t.clone=function(){return t.slice()},t},x.PointCloud=function(t,e){return console.warn("THREE.PointCloud has been renamed to THREE.Points."),new oa(t,e)},x.Particle=function(t){return console.warn("THREE.Particle has been renamed to THREE.Sprite."),new nn(t)},x.ParticleSystem=function(t,e){return console.warn("THREE.ParticleSystem has been renamed to THREE.Points."),new oa(t,e)},x.PointCloudMaterial=function(t){return console.warn("THREE.PointCloudMaterial has been renamed to THREE.PointsMaterial."),new Fn(t)},x.ParticleBasicMaterial=function(t){return console.warn("THREE.ParticleBasicMaterial has been renamed to THREE.PointsMaterial."),new Fn(t)},x.ParticleSystemMaterial=function(t){return console.warn("THREE.ParticleSystemMaterial has been renamed to THREE.PointsMaterial."),new Fn(t)},x.Vertex=function(t,e,i){return console.warn("THREE.Vertex has been removed. Use THREE.Vector3 instead."),new u(t,e,i)},x.DynamicBufferAttribute=function(t,e){return console.warn("THREE.DynamicBufferAttribute has been removed. Use new THREE.BufferAttribute().setDynamic( true ) instead."),new J(t,e).setDynamic(!0)},x.Int8Attribute=function(t,e){return console.warn("THREE.Int8Attribute has been removed. Use new THREE.Int8BufferAttribute() instead."),new $(t,e)},x.Uint8Attribute=function(t,e){return console.warn("THREE.Uint8Attribute has been removed. Use new THREE.Uint8BufferAttribute() instead."),new ct(t,e)},x.Uint8ClampedAttribute=function(t,e){return console.warn("THREE.Uint8ClampedAttribute has been removed. Use new THREE.Uint8ClampedBufferAttribute() instead."),new It(t,e)},x.Int16Attribute=function(t,e){return console.warn("THREE.Int16Attribute has been removed. Use new THREE.Int16BufferAttribute() instead."),new et(t,e)},x.Uint16Attribute=function(t,e){return console.warn("THREE.Uint16Attribute has been removed. Use new THREE.Uint16BufferAttribute() instead."),new yt(t,e)},x.Int32Attribute=function(t,e){return console.warn("THREE.Int32Attribute has been removed. Use new THREE.Int32BufferAttribute() instead."),new G(t,e)},x.Uint32Attribute=function(t,e){return console.warn("THREE.Uint32Attribute has been removed. Use new THREE.Uint32BufferAttribute() instead."),new Pt(t,e)},x.Float32Attribute=function(t,e){return console.warn("THREE.Float32Attribute has been removed. Use new THREE.Float32BufferAttribute() instead."),new Et(t,e)},x.Float64Attribute=function(t,e){return console.warn("THREE.Float64Attribute has been removed. Use new THREE.Float64BufferAttribute() instead."),new Ct(t,e)},x.ClosedSplineCurve3=Pu,x.SplineCurve3=Lu,x.Spline=Hh,x.AxisHelper=function(t){return console.warn("THREE.AxisHelper has been renamed to THREE.AxesHelper."),new xr(t)},x.BoundingBoxHelper=function(t,e){return console.warn("THREE.BoundingBoxHelper has been deprecated. Creating a THREE.BoxHelper instead."),new Ds(t,e)},x.EdgesHelper=function(t,e){return console.warn("THREE.EdgesHelper has been removed. Use THREE.EdgesGeometry instead."),new gi(new Ks(t.geometry),new Bi({color:e!==void 0?e:16777215}))},x.WireframeHelper=function(t,e){return console.warn("THREE.WireframeHelper has been removed. Use THREE.WireframeGeometry instead."),new gi(new aa(t.geometry),new Bi({color:e!==void 0?e:16777215}))},x.XHRLoader=function(t){return console.warn("THREE.XHRLoader has been renamed to THREE.FileLoader."),new Lt(t)},x.BinaryTextureLoader=function(t){return console.warn("THREE.BinaryTextureLoader has been renamed to THREE.DataTextureLoader."),new Ue(t)},x.GeometryUtils={merge:function(t,e,i){if(console.warn("THREE.GeometryUtils: .merge() has been moved to Geometry. Use geometry.merge( geometry2, matrix, materialIndexOffset ) instead."),e.isMesh){e.matrixAutoUpdate&&e.updateMatrix();var n=e.matrix;e=e.geometry}t.merge(e,n,i)},center:function(t){return console.warn("THREE.GeometryUtils: .center() has been moved to Geometry. Use geometry.center() instead."),t.center()}},x.Projector=function(){console.error("THREE.Projector has been moved to /examples/js/renderers/Projector.js."),this.projectVector=function(t,e){console.warn("THREE.Projector: .projectVector() is now vector.project()."),t.project(e)},this.unprojectVector=function(t,e){console.warn("THREE.Projector: .unprojectVector() is now vector.unproject()."),t.unproject(e)},this.pickingRay=function(){console.error("THREE.Projector: .pickingRay() is now raycaster.setFromCamera().")}},x.CanvasRenderer=function(){console.error("THREE.CanvasRenderer has been removed")},x.SceneUtils={createMultiMaterialObject:function(){console.error("THREE.SceneUtils has been moved to /examples/js/utils/SceneUtils.js")},detach:function(){console.error("THREE.SceneUtils has been moved to /examples/js/utils/SceneUtils.js")},attach:function(){console.error("THREE.SceneUtils has been moved to /examples/js/utils/SceneUtils.js")}},x.LensFlare=function(){console.error("THREE.LensFlare has been moved to /examples/js/objects/Lensflare.js")},Object.defineProperty(x,"__esModule",{value:!0})}),THREE.Sky=function(){var x=THREE.Sky.SkyShader,l=new THREE.ShaderMaterial({fragmentShader:x.fragmentShader,vertexShader:x.vertexShader,uniforms:THREE.UniformsUtils.clone(x.uniforms),side:THREE.BackSide});THREE.Mesh.call(this,new THREE.BoxBufferGeometry(1,1,1),l)},THREE.Sky.prototype=Object.create(THREE.Mesh.prototype),THREE.Sky.SkyShader={uniforms:{luminance:{value:1},turbidity:{value:2},rayleigh:{value:1},mieCoefficient:{value:.005},mieDirectionalG:{value:.8},sunPosition:{value:new THREE.Vector3}},vertexShader:["uniform vec3 sunPosition;","uniform float rayleigh;","uniform float turbidity;","uniform float mieCoefficient;","varying vec3 vWorldPosition;","varying vec3 vSunDirection;","varying float vSunfade;","varying vec3 vBetaR;","varying vec3 vBetaM;","varying float vSunE;","const vec3 up = vec3( 0.0, 1.0, 0.0 );","const float e = 2.71828182845904523536028747135266249775724709369995957;","const float pi = 3.141592653589793238462643383279502884197169;","const vec3 lambda = vec3( 680E-9, 550E-9, 450E-9 );","const vec3 totalRayleigh = vec3( 5.804542996261093E-6, 1.3562911419845635E-5, 3.0265902468824876E-5 );","const float v = 4.0;","const vec3 K = vec3( 0.686, 0.678, 0.666 );","const vec3 MieConst = vec3( 1.8399918514433978E14, 2.7798023919660528E14, 4.0790479543861094E14 );","const float cutoffAngle = 1.6110731556870734;","const float steepness = 1.5;","const float EE = 1000.0;","float sunIntensity( float zenithAngleCos ) {"," zenithAngleCos = clamp( zenithAngleCos, -1.0, 1.0 );"," return EE * max( 0.0, 1.0 - pow( e, -( ( cutoffAngle - acos( zenithAngleCos ) ) / steepness ) ) );","}","vec3 totalMie( float T ) {"," float c = ( 0.2 * T ) * 10E-18;"," return 0.434 * c * MieConst;","}","void main() {"," vec4 worldPosition = modelMatrix * vec4( position, 1.0 );"," vWorldPosition = worldPosition.xyz;"," gl_Position = projectionMatrix * modelViewMatrix * vec4( position, 1.0 );"," gl_Position.z = gl_Position.w;"," vSunDirection = normalize( sunPosition );"," vSunE = sunIntensity( dot( vSunDirection, up ) );"," vSunfade = 1.0 - clamp( 1.0 - exp( ( sunPosition.y / 450000.0 ) ), 0.0, 1.0 );"," float rayleighCoefficient = rayleigh - ( 1.0 * ( 1.0 - vSunfade ) );"," vBetaR = totalRayleigh * rayleighCoefficient;"," vBetaM = totalMie( turbidity ) * mieCoefficient;","}"].join(`
2570
+ `},Bn={merge:function(t){for(var e={},i=0;i<t.length;i++){var n=this.clone(t[i]),s;for(s in n)e[s]=n[s]}return e},clone:function(t){var e={},i;for(i in t){e[i]={};for(var n in t[i]){var s=t[i][n];s&&(s.isColor||s.isMatrix3||s.isMatrix4||s.isVector2||s.isVector3||s.isVector4||s.isTexture)?e[i][n]=s.clone():Array.isArray(s)?e[i][n]=s.slice():e[i][n]=s}}return e}},Qr={aliceblue:15792383,antiquewhite:16444375,aqua:65535,aquamarine:8388564,azure:15794175,beige:16119260,bisque:16770244,black:0,blanchedalmond:16772045,blue:255,blueviolet:9055202,brown:10824234,burlywood:14596231,cadetblue:6266528,chartreuse:8388352,chocolate:13789470,coral:16744272,cornflowerblue:6591981,cornsilk:16775388,crimson:14423100,cyan:65535,darkblue:139,darkcyan:35723,darkgoldenrod:12092939,darkgray:11119017,darkgreen:25600,darkgrey:11119017,darkkhaki:12433259,darkmagenta:9109643,darkolivegreen:5597999,darkorange:16747520,darkorchid:10040012,darkred:9109504,darksalmon:15308410,darkseagreen:9419919,darkslateblue:4734347,darkslategray:3100495,darkslategrey:3100495,darkturquoise:52945,darkviolet:9699539,deeppink:16716947,deepskyblue:49151,dimgray:6908265,dimgrey:6908265,dodgerblue:2003199,firebrick:11674146,floralwhite:16775920,forestgreen:2263842,fuchsia:16711935,gainsboro:14474460,ghostwhite:16316671,gold:16766720,goldenrod:14329120,gray:8421504,green:32768,greenyellow:11403055,grey:8421504,honeydew:15794160,hotpink:16738740,indianred:13458524,indigo:4915330,ivory:16777200,khaki:15787660,lavender:15132410,lavenderblush:16773365,lawngreen:8190976,lemonchiffon:16775885,lightblue:11393254,lightcoral:15761536,lightcyan:14745599,lightgoldenrodyellow:16448210,lightgray:13882323,lightgreen:9498256,lightgrey:13882323,lightpink:16758465,lightsalmon:16752762,lightseagreen:2142890,lightskyblue:8900346,lightslategray:7833753,lightslategrey:7833753,lightsteelblue:11584734,lightyellow:16777184,lime:65280,limegreen:3329330,linen:16445670,magenta:16711935,maroon:8388608,mediumaquamarine:6737322,mediumblue:205,mediumorchid:12211667,mediumpurple:9662683,mediumseagreen:3978097,mediumslateblue:8087790,mediumspringgreen:64154,mediumturquoise:4772300,mediumvioletred:13047173,midnightblue:1644912,mintcream:16121850,mistyrose:16770273,moccasin:16770229,navajowhite:16768685,navy:128,oldlace:16643558,olive:8421376,olivedrab:7048739,orange:16753920,orangered:16729344,orchid:14315734,palegoldenrod:15657130,palegreen:10025880,paleturquoise:11529966,palevioletred:14381203,papayawhip:16773077,peachpuff:16767673,peru:13468991,pink:16761035,plum:14524637,powderblue:11591910,purple:8388736,rebeccapurple:6697881,red:16711680,rosybrown:12357519,royalblue:4286945,saddlebrown:9127187,salmon:16416882,sandybrown:16032864,seagreen:3050327,seashell:16774638,sienna:10506797,silver:12632256,skyblue:8900331,slateblue:6970061,slategray:7372944,slategrey:7372944,snow:16775930,springgreen:65407,steelblue:4620980,tan:13808780,teal:32896,thistle:14204888,tomato:16737095,turquoise:4251856,violet:15631086,wheat:16113331,white:16777215,whitesmoke:16119285,yellow:16776960,yellowgreen:10145074};Object.assign(L.prototype,{isColor:!0,r:1,g:1,b:1,set:function(t){return t&&t.isColor?this.copy(t):typeof t=="number"?this.setHex(t):typeof t=="string"&&this.setStyle(t),this},setScalar:function(t){return this.b=this.g=this.r=t,this},setHex:function(t){return t=Math.floor(t),this.r=(t>>16&255)/255,this.g=(t>>8&255)/255,this.b=(t&255)/255,this},setRGB:function(t,e,i){return this.r=t,this.g=e,this.b=i,this},setHSL:function(){function t(e,i,n){return 0>n&&(n+=1),1<n&&--n,n<1/6?e+6*(i-e)*n:.5>n?i:n<2/3?e+6*(i-e)*(2/3-n):e}return function(e,i,n){return e=pi.euclideanModulo(e,1),i=pi.clamp(i,0,1),n=pi.clamp(n,0,1),i===0?this.r=this.g=this.b=n:(i=.5>=n?n*(1+i):n+i-n*i,n=2*n-i,this.r=t(n,i,e+1/3),this.g=t(n,i,e),this.b=t(n,i,e-1/3)),this}}(),setStyle:function(t){function e(f){f!==void 0&&1>parseFloat(f)&&console.warn("THREE.Color: Alpha component of "+t+" will be ignored.")}var i;if(i=/^((?:rgb|hsl)a?)\(\s*([^\)]*)\)/.exec(t)){var n=i[2];switch(i[1]){case"rgb":case"rgba":if(i=/^(\d+)\s*,\s*(\d+)\s*,\s*(\d+)\s*(,\s*([0-9]*\.?[0-9]+)\s*)?$/.exec(n))return this.r=Math.min(255,parseInt(i[1],10))/255,this.g=Math.min(255,parseInt(i[2],10))/255,this.b=Math.min(255,parseInt(i[3],10))/255,e(i[5]),this;if(i=/^(\d+)%\s*,\s*(\d+)%\s*,\s*(\d+)%\s*(,\s*([0-9]*\.?[0-9]+)\s*)?$/.exec(n))return this.r=Math.min(100,parseInt(i[1],10))/100,this.g=Math.min(100,parseInt(i[2],10))/100,this.b=Math.min(100,parseInt(i[3],10))/100,e(i[5]),this;break;case"hsl":case"hsla":if(i=/^([0-9]*\.?[0-9]+)\s*,\s*(\d+)%\s*,\s*(\d+)%\s*(,\s*([0-9]*\.?[0-9]+)\s*)?$/.exec(n)){n=parseFloat(i[1])/360;var s=parseInt(i[2],10)/100,l=parseInt(i[3],10)/100;return e(i[5]),this.setHSL(n,s,l)}}}else if(i=/^#([A-Fa-f0-9]+)$/.exec(t)){if(i=i[1],n=i.length,n===3)return this.r=parseInt(i.charAt(0)+i.charAt(0),16)/255,this.g=parseInt(i.charAt(1)+i.charAt(1),16)/255,this.b=parseInt(i.charAt(2)+i.charAt(2),16)/255,this;if(n===6)return this.r=parseInt(i.charAt(0)+i.charAt(1),16)/255,this.g=parseInt(i.charAt(2)+i.charAt(3),16)/255,this.b=parseInt(i.charAt(4)+i.charAt(5),16)/255,this}return t&&0<t.length&&(i=Qr[t],i!==void 0?this.setHex(i):console.warn("THREE.Color: Unknown color "+t)),this},clone:function(){return new this.constructor(this.r,this.g,this.b)},copy:function(t){return this.r=t.r,this.g=t.g,this.b=t.b,this},copyGammaToLinear:function(t,e){return e===void 0&&(e=2),this.r=Math.pow(t.r,e),this.g=Math.pow(t.g,e),this.b=Math.pow(t.b,e),this},copyLinearToGamma:function(t,e){return e===void 0&&(e=2),e=0<e?1/e:1,this.r=Math.pow(t.r,e),this.g=Math.pow(t.g,e),this.b=Math.pow(t.b,e),this},convertGammaToLinear:function(t){return this.copyGammaToLinear(this,t),this},convertLinearToGamma:function(t){return this.copyLinearToGamma(this,t),this},copySRGBToLinear:function(){function t(e){return .04045>e?.0773993808*e:Math.pow(.9478672986*e+.0521327014,2.4)}return function(e){return this.r=t(e.r),this.g=t(e.g),this.b=t(e.b),this}}(),copyLinearToSRGB:function(){function t(e){return .0031308>e?12.92*e:1.055*Math.pow(e,.41666)-.055}return function(e){return this.r=t(e.r),this.g=t(e.g),this.b=t(e.b),this}}(),convertSRGBToLinear:function(){return this.copySRGBToLinear(this),this},convertLinearToSRGB:function(){return this.copyLinearToSRGB(this),this},getHex:function(){return 255*this.r<<16^255*this.g<<8^255*this.b<<0},getHexString:function(){return("000000"+this.getHex().toString(16)).slice(-6)},getHSL:function(t){t===void 0&&(console.warn("THREE.Color: .getHSL() target is now required"),t={h:0,s:0,l:0});var e=this.r,i=this.g,n=this.b,s=Math.max(e,i,n),l=Math.min(e,i,n),f,p=(l+s)/2;if(l===s)l=f=0;else{var v=s-l;switch(l=.5>=p?v/(s+l):v/(2-s-l),s){case e:f=(i-n)/v+(i<n?6:0);break;case i:f=(n-e)/v+2;break;case n:f=(e-i)/v+4}f/=6}return t.h=f,t.s=l,t.l=p,t},getStyle:function(){return"rgb("+(255*this.r|0)+","+(255*this.g|0)+","+(255*this.b|0)+")"},offsetHSL:function(){var t={};return function(e,i,n){return this.getHSL(t),t.h+=e,t.s+=i,t.l+=n,this.setHSL(t.h,t.s,t.l),this}}(),add:function(t){return this.r+=t.r,this.g+=t.g,this.b+=t.b,this},addColors:function(t,e){return this.r=t.r+e.r,this.g=t.g+e.g,this.b=t.b+e.b,this},addScalar:function(t){return this.r+=t,this.g+=t,this.b+=t,this},sub:function(t){return this.r=Math.max(0,this.r-t.r),this.g=Math.max(0,this.g-t.g),this.b=Math.max(0,this.b-t.b),this},multiply:function(t){return this.r*=t.r,this.g*=t.g,this.b*=t.b,this},multiplyScalar:function(t){return this.r*=t,this.g*=t,this.b*=t,this},lerp:function(t,e){return this.r+=(t.r-this.r)*e,this.g+=(t.g-this.g)*e,this.b+=(t.b-this.b)*e,this},lerpHSL:function(){var t={h:0,s:0,l:0},e={h:0,s:0,l:0};return function(i,n){this.getHSL(t),i.getHSL(e),i=pi.lerp(t.h,e.h,n);var s=pi.lerp(t.s,e.s,n);return n=pi.lerp(t.l,e.l,n),this.setHSL(i,s,n),this}}(),equals:function(t){return t.r===this.r&&t.g===this.g&&t.b===this.b},fromArray:function(t,e){return e===void 0&&(e=0),this.r=t[e],this.g=t[e+1],this.b=t[e+2],this},toArray:function(t,e){return t===void 0&&(t=[]),e===void 0&&(e=0),t[e]=this.r,t[e+1]=this.g,t[e+2]=this.b,t},toJSON:function(){return this.getHex()}});var qe={common:{diffuse:{value:new L(15658734)},opacity:{value:1},map:{value:null},uvTransform:{value:new m},alphaMap:{value:null}},specularmap:{specularMap:{value:null}},envmap:{envMap:{value:null},flipEnvMap:{value:-1},reflectivity:{value:1},refractionRatio:{value:.98},maxMipLevel:{value:0}},aomap:{aoMap:{value:null},aoMapIntensity:{value:1}},lightmap:{lightMap:{value:null},lightMapIntensity:{value:1}},emissivemap:{emissiveMap:{value:null}},bumpmap:{bumpMap:{value:null},bumpScale:{value:1}},normalmap:{normalMap:{value:null},normalScale:{value:new o(1,1)}},displacementmap:{displacementMap:{value:null},displacementScale:{value:1},displacementBias:{value:0}},roughnessmap:{roughnessMap:{value:null}},metalnessmap:{metalnessMap:{value:null}},gradientmap:{gradientMap:{value:null}},fog:{fogDensity:{value:25e-5},fogNear:{value:1},fogFar:{value:2e3},fogColor:{value:new L(16777215)}},lights:{ambientLightColor:{value:[]},directionalLights:{value:[],properties:{direction:{},color:{},shadow:{},shadowBias:{},shadowRadius:{},shadowMapSize:{}}},directionalShadowMap:{value:[]},directionalShadowMatrix:{value:[]},spotLights:{value:[],properties:{color:{},position:{},direction:{},distance:{},coneCos:{},penumbraCos:{},decay:{},shadow:{},shadowBias:{},shadowRadius:{},shadowMapSize:{}}},spotShadowMap:{value:[]},spotShadowMatrix:{value:[]},pointLights:{value:[],properties:{color:{},position:{},decay:{},distance:{},shadow:{},shadowBias:{},shadowRadius:{},shadowMapSize:{},shadowCameraNear:{},shadowCameraFar:{}}},pointShadowMap:{value:[]},pointShadowMatrix:{value:[]},hemisphereLights:{value:[],properties:{direction:{},skyColor:{},groundColor:{}}},rectAreaLights:{value:[],properties:{color:{},position:{},width:{},height:{}}}},points:{diffuse:{value:new L(15658734)},opacity:{value:1},size:{value:1},scale:{value:1},map:{value:null},uvTransform:{value:new m}},sprite:{diffuse:{value:new L(15658734)},opacity:{value:1},center:{value:new o(.5,.5)},rotation:{value:0},map:{value:null},uvTransform:{value:new m}}},xs={basic:{uniforms:Bn.merge([qe.common,qe.specularmap,qe.envmap,qe.aomap,qe.lightmap,qe.fog]),vertexShader:bi.meshbasic_vert,fragmentShader:bi.meshbasic_frag},lambert:{uniforms:Bn.merge([qe.common,qe.specularmap,qe.envmap,qe.aomap,qe.lightmap,qe.emissivemap,qe.fog,qe.lights,{emissive:{value:new L(0)}}]),vertexShader:bi.meshlambert_vert,fragmentShader:bi.meshlambert_frag},phong:{uniforms:Bn.merge([qe.common,qe.specularmap,qe.envmap,qe.aomap,qe.lightmap,qe.emissivemap,qe.bumpmap,qe.normalmap,qe.displacementmap,qe.gradientmap,qe.fog,qe.lights,{emissive:{value:new L(0)},specular:{value:new L(1118481)},shininess:{value:30}}]),vertexShader:bi.meshphong_vert,fragmentShader:bi.meshphong_frag},standard:{uniforms:Bn.merge([qe.common,qe.envmap,qe.aomap,qe.lightmap,qe.emissivemap,qe.bumpmap,qe.normalmap,qe.displacementmap,qe.roughnessmap,qe.metalnessmap,qe.fog,qe.lights,{emissive:{value:new L(0)},roughness:{value:.5},metalness:{value:.5},envMapIntensity:{value:1}}]),vertexShader:bi.meshphysical_vert,fragmentShader:bi.meshphysical_frag},matcap:{uniforms:Bn.merge([qe.common,qe.bumpmap,qe.normalmap,qe.displacementmap,qe.fog,{matcap:{value:null}}]),vertexShader:bi.meshmatcap_vert,fragmentShader:bi.meshmatcap_frag},points:{uniforms:Bn.merge([qe.points,qe.fog]),vertexShader:bi.points_vert,fragmentShader:bi.points_frag},dashed:{uniforms:Bn.merge([qe.common,qe.fog,{scale:{value:1},dashSize:{value:1},totalSize:{value:2}}]),vertexShader:bi.linedashed_vert,fragmentShader:bi.linedashed_frag},depth:{uniforms:Bn.merge([qe.common,qe.displacementmap]),vertexShader:bi.depth_vert,fragmentShader:bi.depth_frag},normal:{uniforms:Bn.merge([qe.common,qe.bumpmap,qe.normalmap,qe.displacementmap,{opacity:{value:1}}]),vertexShader:bi.normal_vert,fragmentShader:bi.normal_frag},sprite:{uniforms:Bn.merge([qe.sprite,qe.fog]),vertexShader:bi.sprite_vert,fragmentShader:bi.sprite_frag},background:{uniforms:{uvTransform:{value:new m},t2D:{value:null}},vertexShader:bi.background_vert,fragmentShader:bi.background_frag},cube:{uniforms:{tCube:{value:null},tFlip:{value:-1},opacity:{value:1}},vertexShader:bi.cube_vert,fragmentShader:bi.cube_frag},equirect:{uniforms:{tEquirect:{value:null}},vertexShader:bi.equirect_vert,fragmentShader:bi.equirect_frag},distanceRGBA:{uniforms:Bn.merge([qe.common,qe.displacementmap,{referencePosition:{value:new u},nearDistance:{value:1},farDistance:{value:1e3}}]),vertexShader:bi.distanceRGBA_vert,fragmentShader:bi.distanceRGBA_frag},shadow:{uniforms:Bn.merge([qe.lights,qe.fog,{color:{value:new L(0)},opacity:{value:1}}]),vertexShader:bi.shadow_vert,fragmentShader:bi.shadow_frag}};xs.physical={uniforms:Bn.merge([xs.standard.uniforms,{clearCoat:{value:0},clearCoatRoughness:{value:0}}]),vertexShader:bi.meshphysical_vert,fragmentShader:bi.meshphysical_frag},Object.assign(R.prototype,{clone:function(){return new this.constructor().copy(this)},copy:function(t){this.a=t.a,this.b=t.b,this.c=t.c,this.normal.copy(t.normal),this.color.copy(t.color),this.materialIndex=t.materialIndex;for(var e=0,i=t.vertexNormals.length;e<i;e++)this.vertexNormals[e]=t.vertexNormals[e].clone();for(e=0,i=t.vertexColors.length;e<i;e++)this.vertexColors[e]=t.vertexColors[e].clone();return this}}),b.RotationOrders="XYZ YZX ZXY XZY YXZ ZYX".split(" "),b.DefaultOrder="XYZ",Object.defineProperties(b.prototype,{x:{get:function(){return this._x},set:function(t){this._x=t,this.onChangeCallback()}},y:{get:function(){return this._y},set:function(t){this._y=t,this.onChangeCallback()}},z:{get:function(){return this._z},set:function(t){this._z=t,this.onChangeCallback()}},order:{get:function(){return this._order},set:function(t){this._order=t,this.onChangeCallback()}}}),Object.assign(b.prototype,{isEuler:!0,set:function(t,e,i,n){return this._x=t,this._y=e,this._z=i,this._order=n||this._order,this.onChangeCallback(),this},clone:function(){return new this.constructor(this._x,this._y,this._z,this._order)},copy:function(t){return this._x=t._x,this._y=t._y,this._z=t._z,this._order=t._order,this.onChangeCallback(),this},setFromRotationMatrix:function(t,e,i){var n=pi.clamp,s=t.elements;t=s[0];var l=s[4],f=s[8],p=s[1],v=s[5],w=s[9],C=s[2],P=s[6];return s=s[10],e=e||this._order,e==="XYZ"?(this._y=Math.asin(n(f,-1,1)),.99999>Math.abs(f)?(this._x=Math.atan2(-w,s),this._z=Math.atan2(-l,t)):(this._x=Math.atan2(P,v),this._z=0)):e==="YXZ"?(this._x=Math.asin(-n(w,-1,1)),.99999>Math.abs(w)?(this._y=Math.atan2(f,s),this._z=Math.atan2(p,v)):(this._y=Math.atan2(-C,t),this._z=0)):e==="ZXY"?(this._x=Math.asin(n(P,-1,1)),.99999>Math.abs(P)?(this._y=Math.atan2(-C,s),this._z=Math.atan2(-l,v)):(this._y=0,this._z=Math.atan2(p,t))):e==="ZYX"?(this._y=Math.asin(-n(C,-1,1)),.99999>Math.abs(C)?(this._x=Math.atan2(P,s),this._z=Math.atan2(p,t)):(this._x=0,this._z=Math.atan2(-l,v))):e==="YZX"?(this._z=Math.asin(n(p,-1,1)),.99999>Math.abs(p)?(this._x=Math.atan2(-w,v),this._y=Math.atan2(-C,t)):(this._x=0,this._y=Math.atan2(f,s))):e==="XZY"?(this._z=Math.asin(-n(l,-1,1)),.99999>Math.abs(l)?(this._x=Math.atan2(P,v),this._y=Math.atan2(f,t)):(this._x=Math.atan2(-w,s),this._y=0)):console.warn("THREE.Euler: .setFromRotationMatrix() given unsupported order: "+e),this._order=e,i!==!1&&this.onChangeCallback(),this},setFromQuaternion:function(){var t=new c;return function(e,i,n){return t.makeRotationFromQuaternion(e),this.setFromRotationMatrix(t,i,n)}}(),setFromVector3:function(t,e){return this.set(t.x,t.y,t.z,e||this._order)},reorder:function(){var t=new d;return function(e){return t.setFromEuler(this),this.setFromQuaternion(t,e)}}(),equals:function(t){return t._x===this._x&&t._y===this._y&&t._z===this._z&&t._order===this._order},fromArray:function(t){return this._x=t[0],this._y=t[1],this._z=t[2],t[3]!==void 0&&(this._order=t[3]),this.onChangeCallback(),this},toArray:function(t,e){return t===void 0&&(t=[]),e===void 0&&(e=0),t[e]=this._x,t[e+1]=this._y,t[e+2]=this._z,t[e+3]=this._order,t},toVector3:function(t){return t?t.set(this._x,this._y,this._z):new u(this._x,this._y,this._z)},onChange:function(t){return this.onChangeCallback=t,this},onChangeCallback:function(){}}),Object.assign(U.prototype,{set:function(t){this.mask=1<<t|0},enable:function(t){this.mask=this.mask|1<<t|0},toggle:function(t){this.mask^=1<<t|0},disable:function(t){this.mask&=~(1<<t|0)},test:function(t){return(this.mask&t.mask)!==0}});var Vc=0;N.DefaultUp=new u(0,1,0),N.DefaultMatrixAutoUpdate=!0,N.prototype=Object.assign(Object.create(a.prototype),{constructor:N,isObject3D:!0,onBeforeRender:function(){},onAfterRender:function(){},applyMatrix:function(t){this.matrix.multiplyMatrices(t,this.matrix),this.matrix.decompose(this.position,this.quaternion,this.scale)},applyQuaternion:function(t){return this.quaternion.premultiply(t),this},setRotationFromAxisAngle:function(t,e){this.quaternion.setFromAxisAngle(t,e)},setRotationFromEuler:function(t){this.quaternion.setFromEuler(t,!0)},setRotationFromMatrix:function(t){this.quaternion.setFromRotationMatrix(t)},setRotationFromQuaternion:function(t){this.quaternion.copy(t)},rotateOnAxis:function(){var t=new d;return function(e,i){return t.setFromAxisAngle(e,i),this.quaternion.multiply(t),this}}(),rotateOnWorldAxis:function(){var t=new d;return function(e,i){return t.setFromAxisAngle(e,i),this.quaternion.premultiply(t),this}}(),rotateX:function(){var t=new u(1,0,0);return function(e){return this.rotateOnAxis(t,e)}}(),rotateY:function(){var t=new u(0,1,0);return function(e){return this.rotateOnAxis(t,e)}}(),rotateZ:function(){var t=new u(0,0,1);return function(e){return this.rotateOnAxis(t,e)}}(),translateOnAxis:function(){var t=new u;return function(e,i){return t.copy(e).applyQuaternion(this.quaternion),this.position.add(t.multiplyScalar(i)),this}}(),translateX:function(){var t=new u(1,0,0);return function(e){return this.translateOnAxis(t,e)}}(),translateY:function(){var t=new u(0,1,0);return function(e){return this.translateOnAxis(t,e)}}(),translateZ:function(){var t=new u(0,0,1);return function(e){return this.translateOnAxis(t,e)}}(),localToWorld:function(t){return t.applyMatrix4(this.matrixWorld)},worldToLocal:function(){var t=new c;return function(e){return e.applyMatrix4(t.getInverse(this.matrixWorld))}}(),lookAt:function(){var t=new d,e=new c,i=new u,n=new u;return function(s,l,f){s.isVector3?i.copy(s):i.set(s,l,f),s=this.parent,this.updateWorldMatrix(!0,!1),n.setFromMatrixPosition(this.matrixWorld),this.isCamera?e.lookAt(n,i,this.up):e.lookAt(i,n,this.up),this.quaternion.setFromRotationMatrix(e),s&&(e.extractRotation(s.matrixWorld),t.setFromRotationMatrix(e),this.quaternion.premultiply(t.inverse()))}}(),add:function(t){if(1<arguments.length){for(var e=0;e<arguments.length;e++)this.add(arguments[e]);return this}return t===this?(console.error("THREE.Object3D.add: object can't be added as a child of itself.",t),this):(t&&t.isObject3D?(t.parent!==null&&t.parent.remove(t),t.parent=this,t.dispatchEvent({type:"added"}),this.children.push(t)):console.error("THREE.Object3D.add: object not an instance of THREE.Object3D.",t),this)},remove:function(t){if(1<arguments.length){for(var e=0;e<arguments.length;e++)this.remove(arguments[e]);return this}return e=this.children.indexOf(t),e!==-1&&(t.parent=null,t.dispatchEvent({type:"removed"}),this.children.splice(e,1)),this},getObjectById:function(t){return this.getObjectByProperty("id",t)},getObjectByName:function(t){return this.getObjectByProperty("name",t)},getObjectByProperty:function(t,e){if(this[t]===e)return this;for(var i=0,n=this.children.length;i<n;i++){var s=this.children[i].getObjectByProperty(t,e);if(s!==void 0)return s}},getWorldPosition:function(t){return t===void 0&&(console.warn("THREE.Object3D: .getWorldPosition() target is now required"),t=new u),this.updateMatrixWorld(!0),t.setFromMatrixPosition(this.matrixWorld)},getWorldQuaternion:function(){var t=new u,e=new u;return function(i){return i===void 0&&(console.warn("THREE.Object3D: .getWorldQuaternion() target is now required"),i=new d),this.updateMatrixWorld(!0),this.matrixWorld.decompose(t,i,e),i}}(),getWorldScale:function(){var t=new u,e=new d;return function(i){return i===void 0&&(console.warn("THREE.Object3D: .getWorldScale() target is now required"),i=new u),this.updateMatrixWorld(!0),this.matrixWorld.decompose(t,e,i),i}}(),getWorldDirection:function(t){t===void 0&&(console.warn("THREE.Object3D: .getWorldDirection() target is now required"),t=new u),this.updateMatrixWorld(!0);var e=this.matrixWorld.elements;return t.set(e[8],e[9],e[10]).normalize()},raycast:function(){},traverse:function(t){t(this);for(var e=this.children,i=0,n=e.length;i<n;i++)e[i].traverse(t)},traverseVisible:function(t){if(this.visible!==!1){t(this);for(var e=this.children,i=0,n=e.length;i<n;i++)e[i].traverseVisible(t)}},traverseAncestors:function(t){var e=this.parent;e!==null&&(t(e),e.traverseAncestors(t))},updateMatrix:function(){this.matrix.compose(this.position,this.quaternion,this.scale),this.matrixWorldNeedsUpdate=!0},updateMatrixWorld:function(t){this.matrixAutoUpdate&&this.updateMatrix(),(this.matrixWorldNeedsUpdate||t)&&(this.parent===null?this.matrixWorld.copy(this.matrix):this.matrixWorld.multiplyMatrices(this.parent.matrixWorld,this.matrix),this.matrixWorldNeedsUpdate=!1,t=!0);for(var e=this.children,i=0,n=e.length;i<n;i++)e[i].updateMatrixWorld(t)},updateWorldMatrix:function(t,e){var i=this.parent;if(t===!0&&i!==null&&i.updateWorldMatrix(!0,!1),this.matrixAutoUpdate&&this.updateMatrix(),this.parent===null?this.matrixWorld.copy(this.matrix):this.matrixWorld.multiplyMatrices(this.parent.matrixWorld,this.matrix),e===!0)for(t=this.children,e=0,i=t.length;e<i;e++)t[e].updateWorldMatrix(!1,!0)},toJSON:function(t){function e(C,P){return C[P.uuid]===void 0&&(C[P.uuid]=P.toJSON(t)),P.uuid}function i(C){var P=[],B;for(B in C){var H=C[B];delete H.metadata,P.push(H)}return P}var n=t===void 0||typeof t=="string",s={};n&&(t={geometries:{},materials:{},textures:{},images:{},shapes:{}},s.metadata={version:4.5,type:"Object",generator:"Object3D.toJSON"});var l={};if(l.uuid=this.uuid,l.type=this.type,this.name!==""&&(l.name=this.name),this.castShadow===!0&&(l.castShadow=!0),this.receiveShadow===!0&&(l.receiveShadow=!0),this.visible===!1&&(l.visible=!1),this.frustumCulled===!1&&(l.frustumCulled=!1),this.renderOrder!==0&&(l.renderOrder=this.renderOrder),JSON.stringify(this.userData)!=="{}"&&(l.userData=this.userData),l.layers=this.layers.mask,l.matrix=this.matrix.toArray(),this.matrixAutoUpdate===!1&&(l.matrixAutoUpdate=!1),this.isMesh||this.isLine||this.isPoints){l.geometry=e(t.geometries,this.geometry);var f=this.geometry.parameters;if(f!==void 0&&f.shapes!==void 0)if(f=f.shapes,Array.isArray(f))for(var p=0,v=f.length;p<v;p++)e(t.shapes,f[p]);else e(t.shapes,f)}if(this.material!==void 0)if(Array.isArray(this.material)){for(f=[],p=0,v=this.material.length;p<v;p++)f.push(e(t.materials,this.material[p]));l.material=f}else l.material=e(t.materials,this.material);if(0<this.children.length)for(l.children=[],p=0;p<this.children.length;p++)l.children.push(this.children[p].toJSON(t).object);if(n){n=i(t.geometries),p=i(t.materials),v=i(t.textures);var w=i(t.images);f=i(t.shapes),0<n.length&&(s.geometries=n),0<p.length&&(s.materials=p),0<v.length&&(s.textures=v),0<w.length&&(s.images=w),0<f.length&&(s.shapes=f)}return s.object=l,s},clone:function(t){return new this.constructor().copy(this,t)},copy:function(t,e){if(e===void 0&&(e=!0),this.name=t.name,this.up.copy(t.up),this.position.copy(t.position),this.quaternion.copy(t.quaternion),this.scale.copy(t.scale),this.matrix.copy(t.matrix),this.matrixWorld.copy(t.matrixWorld),this.matrixAutoUpdate=t.matrixAutoUpdate,this.matrixWorldNeedsUpdate=t.matrixWorldNeedsUpdate,this.layers.mask=t.layers.mask,this.visible=t.visible,this.castShadow=t.castShadow,this.receiveShadow=t.receiveShadow,this.frustumCulled=t.frustumCulled,this.renderOrder=t.renderOrder,this.userData=JSON.parse(JSON.stringify(t.userData)),e===!0)for(e=0;e<t.children.length;e++)this.add(t.children[e].clone());return this}});var Wc=0;j.prototype=Object.assign(Object.create(a.prototype),{constructor:j,isGeometry:!0,applyMatrix:function(t){for(var e=new m().getNormalMatrix(t),i=0,n=this.vertices.length;i<n;i++)this.vertices[i].applyMatrix4(t);for(i=0,n=this.faces.length;i<n;i++){t=this.faces[i],t.normal.applyMatrix3(e).normalize();for(var s=0,l=t.vertexNormals.length;s<l;s++)t.vertexNormals[s].applyMatrix3(e).normalize()}return this.boundingBox!==null&&this.computeBoundingBox(),this.boundingSphere!==null&&this.computeBoundingSphere(),this.normalsNeedUpdate=this.verticesNeedUpdate=!0,this},rotateX:function(){var t=new c;return function(e){return t.makeRotationX(e),this.applyMatrix(t),this}}(),rotateY:function(){var t=new c;return function(e){return t.makeRotationY(e),this.applyMatrix(t),this}}(),rotateZ:function(){var t=new c;return function(e){return t.makeRotationZ(e),this.applyMatrix(t),this}}(),translate:function(){var t=new c;return function(e,i,n){return t.makeTranslation(e,i,n),this.applyMatrix(t),this}}(),scale:function(){var t=new c;return function(e,i,n){return t.makeScale(e,i,n),this.applyMatrix(t),this}}(),lookAt:function(){var t=new N;return function(e){t.lookAt(e),t.updateMatrix(),this.applyMatrix(t.matrix)}}(),fromBufferGeometry:function(t){function e(q,K,rt,xt){var gt=p===void 0?[]:[i.colors[q].clone(),i.colors[K].clone(),i.colors[rt].clone()],At=f===void 0?[]:[new u().fromArray(f,3*q),new u().fromArray(f,3*K),new u().fromArray(f,3*rt)];xt=new R(q,K,rt,At,gt,xt),i.faces.push(xt),v!==void 0&&i.faceVertexUvs[0].push([new o().fromArray(v,2*q),new o().fromArray(v,2*K),new o().fromArray(v,2*rt)]),w!==void 0&&i.faceVertexUvs[1].push([new o().fromArray(w,2*q),new o().fromArray(w,2*K),new o().fromArray(w,2*rt)])}var i=this,n=t.index!==null?t.index.array:void 0,s=t.attributes,l=s.position.array,f=s.normal!==void 0?s.normal.array:void 0,p=s.color!==void 0?s.color.array:void 0,v=s.uv!==void 0?s.uv.array:void 0,w=s.uv2!==void 0?s.uv2.array:void 0;w!==void 0&&(this.faceVertexUvs[1]=[]);for(var C=s=0;s<l.length;s+=3,C+=2)i.vertices.push(new u().fromArray(l,s)),p!==void 0&&i.colors.push(new L().fromArray(p,s));var P=t.groups;if(0<P.length)for(s=0;s<P.length;s++){l=P[s];var B=l.start,H=l.count;for(C=B,B+=H;C<B;C+=3)n!==void 0?e(n[C],n[C+1],n[C+2],l.materialIndex):e(C,C+1,C+2,l.materialIndex)}else if(n!==void 0)for(s=0;s<n.length;s+=3)e(n[s],n[s+1],n[s+2]);else for(s=0;s<l.length/3;s+=3)e(s,s+1,s+2);return this.computeFaceNormals(),t.boundingBox!==null&&(this.boundingBox=t.boundingBox.clone()),t.boundingSphere!==null&&(this.boundingSphere=t.boundingSphere.clone()),this},center:function(){var t=new u;return function(){return this.computeBoundingBox(),this.boundingBox.getCenter(t).negate(),this.translate(t.x,t.y,t.z),this}}(),normalize:function(){this.computeBoundingSphere();var t=this.boundingSphere.center,e=this.boundingSphere.radius;e=e===0?1:1/e;var i=new c;return i.set(e,0,0,-e*t.x,0,e,0,-e*t.y,0,0,e,-e*t.z,0,0,0,1),this.applyMatrix(i),this},computeFaceNormals:function(){for(var t=new u,e=new u,i=0,n=this.faces.length;i<n;i++){var s=this.faces[i],l=this.vertices[s.a],f=this.vertices[s.b];t.subVectors(this.vertices[s.c],f),e.subVectors(l,f),t.cross(e),t.normalize(),s.normal.copy(t)}},computeVertexNormals:function(t){t===void 0&&(t=!0);var e,i=Array(this.vertices.length),n=0;for(e=this.vertices.length;n<e;n++)i[n]=new u;if(t){var s=new u,l=new u;for(t=0,n=this.faces.length;t<n;t++){e=this.faces[t];var f=this.vertices[e.a],p=this.vertices[e.b],v=this.vertices[e.c];s.subVectors(v,p),l.subVectors(f,p),s.cross(l),i[e.a].add(s),i[e.b].add(s),i[e.c].add(s)}}else for(this.computeFaceNormals(),t=0,n=this.faces.length;t<n;t++)e=this.faces[t],i[e.a].add(e.normal),i[e.b].add(e.normal),i[e.c].add(e.normal);for(n=0,e=this.vertices.length;n<e;n++)i[n].normalize();for(t=0,n=this.faces.length;t<n;t++)e=this.faces[t],f=e.vertexNormals,f.length===3?(f[0].copy(i[e.a]),f[1].copy(i[e.b]),f[2].copy(i[e.c])):(f[0]=i[e.a].clone(),f[1]=i[e.b].clone(),f[2]=i[e.c].clone());0<this.faces.length&&(this.normalsNeedUpdate=!0)},computeFlatVertexNormals:function(){var t;this.computeFaceNormals();var e=0;for(t=this.faces.length;e<t;e++){var i=this.faces[e],n=i.vertexNormals;n.length===3?(n[0].copy(i.normal),n[1].copy(i.normal),n[2].copy(i.normal)):(n[0]=i.normal.clone(),n[1]=i.normal.clone(),n[2]=i.normal.clone())}0<this.faces.length&&(this.normalsNeedUpdate=!0)},computeMorphNormals:function(){var t,e,i=0;for(e=this.faces.length;i<e;i++){var n=this.faces[i];n.__originalFaceNormal?n.__originalFaceNormal.copy(n.normal):n.__originalFaceNormal=n.normal.clone(),n.__originalVertexNormals||(n.__originalVertexNormals=[]);var s=0;for(t=n.vertexNormals.length;s<t;s++)n.__originalVertexNormals[s]?n.__originalVertexNormals[s].copy(n.vertexNormals[s]):n.__originalVertexNormals[s]=n.vertexNormals[s].clone()}var l=new j;for(l.faces=this.faces,s=0,t=this.morphTargets.length;s<t;s++){if(!this.morphNormals[s]){this.morphNormals[s]={},this.morphNormals[s].faceNormals=[],this.morphNormals[s].vertexNormals=[],n=this.morphNormals[s].faceNormals;var f=this.morphNormals[s].vertexNormals;for(i=0,e=this.faces.length;i<e;i++){var p=new u,v={a:new u,b:new u,c:new u};n.push(p),f.push(v)}}for(f=this.morphNormals[s],l.vertices=this.morphTargets[s].vertices,l.computeFaceNormals(),l.computeVertexNormals(),i=0,e=this.faces.length;i<e;i++)n=this.faces[i],p=f.faceNormals[i],v=f.vertexNormals[i],p.copy(n.normal),v.a.copy(n.vertexNormals[0]),v.b.copy(n.vertexNormals[1]),v.c.copy(n.vertexNormals[2])}for(i=0,e=this.faces.length;i<e;i++)n=this.faces[i],n.normal=n.__originalFaceNormal,n.vertexNormals=n.__originalVertexNormals},computeBoundingBox:function(){this.boundingBox===null&&(this.boundingBox=new k),this.boundingBox.setFromPoints(this.vertices)},computeBoundingSphere:function(){this.boundingSphere===null&&(this.boundingSphere=new D),this.boundingSphere.setFromPoints(this.vertices)},merge:function(t,e,i){if(t&&t.isGeometry){var n,s=this.vertices.length,l=this.vertices,f=t.vertices,p=this.faces,v=t.faces,w=this.faceVertexUvs[0],C=t.faceVertexUvs[0],P=this.colors,B=t.colors;i===void 0&&(i=0),e!==void 0&&(n=new m().getNormalMatrix(e)),t=0;for(var H=f.length;t<H;t++){var q=f[t].clone();e!==void 0&&q.applyMatrix4(e),l.push(q)}for(t=0,H=B.length;t<H;t++)P.push(B[t].clone());for(t=0,H=v.length;t<H;t++){f=v[t];var K=f.vertexNormals;for(B=f.vertexColors,P=new R(f.a+s,f.b+s,f.c+s),P.normal.copy(f.normal),n!==void 0&&P.normal.applyMatrix3(n).normalize(),e=0,l=K.length;e<l;e++)q=K[e].clone(),n!==void 0&&q.applyMatrix3(n).normalize(),P.vertexNormals.push(q);for(P.color.copy(f.color),e=0,l=B.length;e<l;e++)q=B[e],P.vertexColors.push(q.clone());P.materialIndex=f.materialIndex+i,p.push(P)}for(t=0,H=C.length;t<H;t++)if(i=C[t],n=[],i!==void 0){for(e=0,l=i.length;e<l;e++)n.push(i[e].clone());w.push(n)}}else console.error("THREE.Geometry.merge(): geometry not an instance of THREE.Geometry.",t)},mergeMesh:function(t){t&&t.isMesh?(t.matrixAutoUpdate&&t.updateMatrix(),this.merge(t.geometry,t.matrix)):console.error("THREE.Geometry.mergeMesh(): mesh not an instance of THREE.Mesh.",t)},mergeVertices:function(){var t={},e=[],i=[],n=Math.pow(10,4),s,l=0;for(s=this.vertices.length;l<s;l++){var f=this.vertices[l];f=Math.round(f.x*n)+"_"+Math.round(f.y*n)+"_"+Math.round(f.z*n),t[f]===void 0?(t[f]=l,e.push(this.vertices[l]),i[l]=e.length-1):i[l]=i[t[f]]}for(t=[],l=0,s=this.faces.length;l<s;l++)for(n=this.faces[l],n.a=i[n.a],n.b=i[n.b],n.c=i[n.c],n=[n.a,n.b,n.c],f=0;3>f;f++)if(n[f]===n[(f+1)%3]){t.push(l);break}for(l=t.length-1;0<=l;l--)for(n=t[l],this.faces.splice(n,1),i=0,s=this.faceVertexUvs.length;i<s;i++)this.faceVertexUvs[i].splice(n,1);return l=this.vertices.length-e.length,this.vertices=e,l},setFromPoints:function(t){this.vertices=[];for(var e=0,i=t.length;e<i;e++){var n=t[e];this.vertices.push(new u(n.x,n.y,n.z||0))}return this},sortFacesByMaterialIndex:function(){for(var t=this.faces,e=t.length,i=0;i<e;i++)t[i]._id=i;t.sort(function(v,w){return v.materialIndex-w.materialIndex});var n=this.faceVertexUvs[0],s=this.faceVertexUvs[1],l,f;for(n&&n.length===e&&(l=[]),s&&s.length===e&&(f=[]),i=0;i<e;i++){var p=t[i]._id;l&&l.push(n[p]),f&&f.push(s[p])}l&&(this.faceVertexUvs[0]=l),f&&(this.faceVertexUvs[1]=f)},toJSON:function(){function t(Vt,Z,st){return st?Vt|1<<Z:Vt&~(1<<Z)}function e(Vt){var Z=Vt.x.toString()+Vt.y.toString()+Vt.z.toString();return w[Z]!==void 0||(w[Z]=v.length/3,v.push(Vt.x,Vt.y,Vt.z)),w[Z]}function i(Vt){var Z=Vt.r.toString()+Vt.g.toString()+Vt.b.toString();return P[Z]!==void 0||(P[Z]=C.length,C.push(Vt.getHex())),P[Z]}function n(Vt){var Z=Vt.x.toString()+Vt.y.toString();return H[Z]!==void 0||(H[Z]=B.length/2,B.push(Vt.x,Vt.y)),H[Z]}var s={metadata:{version:4.5,type:"Geometry",generator:"Geometry.toJSON"}};if(s.uuid=this.uuid,s.type=this.type,this.name!==""&&(s.name=this.name),this.parameters!==void 0){var l=this.parameters,f;for(f in l)l[f]!==void 0&&(s[f]=l[f]);return s}for(l=[],f=0;f<this.vertices.length;f++){var p=this.vertices[f];l.push(p.x,p.y,p.z)}p=[];var v=[],w={},C=[],P={},B=[],H={};for(f=0;f<this.faces.length;f++){var q=this.faces[f],K=this.faceVertexUvs[0][f]!==void 0,rt=0<q.normal.length(),xt=0<q.vertexNormals.length,gt=q.color.r!==1||q.color.g!==1||q.color.b!==1,At=0<q.vertexColors.length,wt=0;wt=t(wt,0,0),wt=t(wt,1,!0),wt=t(wt,2,!1),wt=t(wt,3,K),wt=t(wt,4,rt),wt=t(wt,5,xt),wt=t(wt,6,gt),wt=t(wt,7,At),p.push(wt),p.push(q.a,q.b,q.c),p.push(q.materialIndex),K&&(K=this.faceVertexUvs[0][f],p.push(n(K[0]),n(K[1]),n(K[2]))),rt&&p.push(e(q.normal)),xt&&(rt=q.vertexNormals,p.push(e(rt[0]),e(rt[1]),e(rt[2]))),gt&&p.push(i(q.color)),At&&(q=q.vertexColors,p.push(i(q[0]),i(q[1]),i(q[2])))}return s.data={},s.data.vertices=l,s.data.normals=v,0<C.length&&(s.data.colors=C),0<B.length&&(s.data.uvs=[B]),s.data.faces=p,s},clone:function(){return new j().copy(this)},copy:function(t){var e,i,n;this.vertices=[],this.colors=[],this.faces=[],this.faceVertexUvs=[[]],this.morphTargets=[],this.morphNormals=[],this.skinWeights=[],this.skinIndices=[],this.lineDistances=[],this.boundingSphere=this.boundingBox=null,this.name=t.name;var s=t.vertices,l=0;for(e=s.length;l<e;l++)this.vertices.push(s[l].clone());for(s=t.colors,l=0,e=s.length;l<e;l++)this.colors.push(s[l].clone());for(s=t.faces,l=0,e=s.length;l<e;l++)this.faces.push(s[l].clone());for(l=0,e=t.faceVertexUvs.length;l<e;l++){var f=t.faceVertexUvs[l];for(this.faceVertexUvs[l]===void 0&&(this.faceVertexUvs[l]=[]),s=0,i=f.length;s<i;s++){var p=f[s],v=[],w=0;for(n=p.length;w<n;w++)v.push(p[w].clone());this.faceVertexUvs[l].push(v)}}for(w=t.morphTargets,l=0,e=w.length;l<e;l++){if(n={},n.name=w[l].name,w[l].vertices!==void 0)for(n.vertices=[],s=0,i=w[l].vertices.length;s<i;s++)n.vertices.push(w[l].vertices[s].clone());if(w[l].normals!==void 0)for(n.normals=[],s=0,i=w[l].normals.length;s<i;s++)n.normals.push(w[l].normals[s].clone());this.morphTargets.push(n)}for(w=t.morphNormals,l=0,e=w.length;l<e;l++){if(n={},w[l].vertexNormals!==void 0)for(n.vertexNormals=[],s=0,i=w[l].vertexNormals.length;s<i;s++)f=w[l].vertexNormals[s],p={},p.a=f.a.clone(),p.b=f.b.clone(),p.c=f.c.clone(),n.vertexNormals.push(p);if(w[l].faceNormals!==void 0)for(n.faceNormals=[],s=0,i=w[l].faceNormals.length;s<i;s++)n.faceNormals.push(w[l].faceNormals[s].clone());this.morphNormals.push(n)}for(s=t.skinWeights,l=0,e=s.length;l<e;l++)this.skinWeights.push(s[l].clone());for(s=t.skinIndices,l=0,e=s.length;l<e;l++)this.skinIndices.push(s[l].clone());for(s=t.lineDistances,l=0,e=s.length;l<e;l++)this.lineDistances.push(s[l]);return l=t.boundingBox,l!==null&&(this.boundingBox=l.clone()),l=t.boundingSphere,l!==null&&(this.boundingSphere=l.clone()),this.elementsNeedUpdate=t.elementsNeedUpdate,this.verticesNeedUpdate=t.verticesNeedUpdate,this.uvsNeedUpdate=t.uvsNeedUpdate,this.normalsNeedUpdate=t.normalsNeedUpdate,this.colorsNeedUpdate=t.colorsNeedUpdate,this.lineDistancesNeedUpdate=t.lineDistancesNeedUpdate,this.groupsNeedUpdate=t.groupsNeedUpdate,this},dispose:function(){this.dispatchEvent({type:"dispose"})}}),Object.defineProperty(J.prototype,"needsUpdate",{set:function(t){t===!0&&this.version++}}),Object.assign(J.prototype,{isBufferAttribute:!0,onUploadCallback:function(){},setArray:function(t){if(Array.isArray(t))throw new TypeError("THREE.BufferAttribute: array should be a Typed Array.");return this.count=t!==void 0?t.length/this.itemSize:0,this.array=t,this},setDynamic:function(t){return this.dynamic=t,this},copy:function(t){return this.name=t.name,this.array=new t.array.constructor(t.array),this.itemSize=t.itemSize,this.count=t.count,this.normalized=t.normalized,this.dynamic=t.dynamic,this},copyAt:function(t,e,i){t*=this.itemSize,i*=e.itemSize;for(var n=0,s=this.itemSize;n<s;n++)this.array[t+n]=e.array[i+n];return this},copyArray:function(t){return this.array.set(t),this},copyColorsArray:function(t){for(var e=this.array,i=0,n=0,s=t.length;n<s;n++){var l=t[n];l===void 0&&(console.warn("THREE.BufferAttribute.copyColorsArray(): color is undefined",n),l=new L),e[i++]=l.r,e[i++]=l.g,e[i++]=l.b}return this},copyVector2sArray:function(t){for(var e=this.array,i=0,n=0,s=t.length;n<s;n++){var l=t[n];l===void 0&&(console.warn("THREE.BufferAttribute.copyVector2sArray(): vector is undefined",n),l=new o),e[i++]=l.x,e[i++]=l.y}return this},copyVector3sArray:function(t){for(var e=this.array,i=0,n=0,s=t.length;n<s;n++){var l=t[n];l===void 0&&(console.warn("THREE.BufferAttribute.copyVector3sArray(): vector is undefined",n),l=new u),e[i++]=l.x,e[i++]=l.y,e[i++]=l.z}return this},copyVector4sArray:function(t){for(var e=this.array,i=0,n=0,s=t.length;n<s;n++){var l=t[n];l===void 0&&(console.warn("THREE.BufferAttribute.copyVector4sArray(): vector is undefined",n),l=new y),e[i++]=l.x,e[i++]=l.y,e[i++]=l.z,e[i++]=l.w}return this},set:function(t,e){return e===void 0&&(e=0),this.array.set(t,e),this},getX:function(t){return this.array[t*this.itemSize]},setX:function(t,e){return this.array[t*this.itemSize]=e,this},getY:function(t){return this.array[t*this.itemSize+1]},setY:function(t,e){return this.array[t*this.itemSize+1]=e,this},getZ:function(t){return this.array[t*this.itemSize+2]},setZ:function(t,e){return this.array[t*this.itemSize+2]=e,this},getW:function(t){return this.array[t*this.itemSize+3]},setW:function(t,e){return this.array[t*this.itemSize+3]=e,this},setXY:function(t,e,i){return t*=this.itemSize,this.array[t+0]=e,this.array[t+1]=i,this},setXYZ:function(t,e,i,n){return t*=this.itemSize,this.array[t+0]=e,this.array[t+1]=i,this.array[t+2]=n,this},setXYZW:function(t,e,i,n,s){return t*=this.itemSize,this.array[t+0]=e,this.array[t+1]=i,this.array[t+2]=n,this.array[t+3]=s,this},onUpload:function(t){return this.onUploadCallback=t,this},clone:function(){return new this.constructor(this.array,this.itemSize).copy(this)}}),$.prototype=Object.create(J.prototype),$.prototype.constructor=$,ct.prototype=Object.create(J.prototype),ct.prototype.constructor=ct,It.prototype=Object.create(J.prototype),It.prototype.constructor=It,et.prototype=Object.create(J.prototype),et.prototype.constructor=et,yt.prototype=Object.create(J.prototype),yt.prototype.constructor=yt,G.prototype=Object.create(J.prototype),G.prototype.constructor=G,Pt.prototype=Object.create(J.prototype),Pt.prototype.constructor=Pt,Et.prototype=Object.create(J.prototype),Et.prototype.constructor=Et,Ct.prototype=Object.create(J.prototype),Ct.prototype.constructor=Ct,Object.assign(fe.prototype,{computeGroups:function(t){var e=[],i=void 0;t=t.faces;for(var n=0;n<t.length;n++){var s=t[n];if(s.materialIndex!==i){i=s.materialIndex,l!==void 0&&(l.count=3*n-l.start,e.push(l));var l={start:3*n,materialIndex:i}}}l!==void 0&&(l.count=3*n-l.start,e.push(l)),this.groups=e},fromGeometry:function(t){var e=t.faces,i=t.vertices,n=t.faceVertexUvs,s=n[0]&&0<n[0].length,l=n[1]&&0<n[1].length,f=t.morphTargets,p=f.length;if(0<p){for(var v=[],w=0;w<p;w++)v[w]={name:f[w].name,data:[]};this.morphTargets.position=v}var C=t.morphNormals,P=C.length;if(0<P){var B=[];for(w=0;w<P;w++)B[w]={name:C[w].name,data:[]};this.morphTargets.normal=B}var H=t.skinIndices,q=t.skinWeights,K=H.length===i.length,rt=q.length===i.length;for(0<i.length&&e.length===0&&console.error("THREE.DirectGeometry: Faceless geometries are not supported."),w=0;w<e.length;w++){var xt=e[w];this.vertices.push(i[xt.a],i[xt.b],i[xt.c]);var gt=xt.vertexNormals;for(gt.length===3?this.normals.push(gt[0],gt[1],gt[2]):(gt=xt.normal,this.normals.push(gt,gt,gt)),gt=xt.vertexColors,gt.length===3?this.colors.push(gt[0],gt[1],gt[2]):(gt=xt.color,this.colors.push(gt,gt,gt)),s===!0&&(gt=n[0][w],gt!==void 0?this.uvs.push(gt[0],gt[1],gt[2]):(console.warn("THREE.DirectGeometry.fromGeometry(): Undefined vertexUv ",w),this.uvs.push(new o,new o,new o))),l===!0&&(gt=n[1][w],gt!==void 0?this.uvs2.push(gt[0],gt[1],gt[2]):(console.warn("THREE.DirectGeometry.fromGeometry(): Undefined vertexUv2 ",w),this.uvs2.push(new o,new o,new o))),gt=0;gt<p;gt++){var At=f[gt].vertices;v[gt].data.push(At[xt.a],At[xt.b],At[xt.c])}for(gt=0;gt<P;gt++)At=C[gt].vertexNormals[w],B[gt].data.push(At.a,At.b,At.c);K&&this.skinIndices.push(H[xt.a],H[xt.b],H[xt.c]),rt&&this.skinWeights.push(q[xt.a],q[xt.b],q[xt.c])}return this.computeGroups(t),this.verticesNeedUpdate=t.verticesNeedUpdate,this.normalsNeedUpdate=t.normalsNeedUpdate,this.colorsNeedUpdate=t.colorsNeedUpdate,this.uvsNeedUpdate=t.uvsNeedUpdate,this.groupsNeedUpdate=t.groupsNeedUpdate,this}});var jc=1;Ft.prototype=Object.assign(Object.create(a.prototype),{constructor:Ft,isBufferGeometry:!0,getIndex:function(){return this.index},setIndex:function(t){Array.isArray(t)?this.index=new(65535<re(t)?Pt:yt)(t,1):this.index=t},addAttribute:function(t,e,i){return e&&e.isBufferAttribute||e&&e.isInterleavedBufferAttribute?t==="index"?(console.warn("THREE.BufferGeometry.addAttribute: Use .setIndex() for index attribute."),this.setIndex(e),this):(this.attributes[t]=e,this):(console.warn("THREE.BufferGeometry: .addAttribute() now expects ( name, attribute )."),this.addAttribute(t,new J(e,i)))},getAttribute:function(t){return this.attributes[t]},removeAttribute:function(t){return delete this.attributes[t],this},addGroup:function(t,e,i){this.groups.push({start:t,count:e,materialIndex:i!==void 0?i:0})},clearGroups:function(){this.groups=[]},setDrawRange:function(t,e){this.drawRange.start=t,this.drawRange.count=e},applyMatrix:function(t){var e=this.attributes.position;return e!==void 0&&(t.applyToBufferAttribute(e),e.needsUpdate=!0),e=this.attributes.normal,e!==void 0&&(new m().getNormalMatrix(t).applyToBufferAttribute(e),e.needsUpdate=!0),this.boundingBox!==null&&this.computeBoundingBox(),this.boundingSphere!==null&&this.computeBoundingSphere(),this},rotateX:function(){var t=new c;return function(e){return t.makeRotationX(e),this.applyMatrix(t),this}}(),rotateY:function(){var t=new c;return function(e){return t.makeRotationY(e),this.applyMatrix(t),this}}(),rotateZ:function(){var t=new c;return function(e){return t.makeRotationZ(e),this.applyMatrix(t),this}}(),translate:function(){var t=new c;return function(e,i,n){return t.makeTranslation(e,i,n),this.applyMatrix(t),this}}(),scale:function(){var t=new c;return function(e,i,n){return t.makeScale(e,i,n),this.applyMatrix(t),this}}(),lookAt:function(){var t=new N;return function(e){t.lookAt(e),t.updateMatrix(),this.applyMatrix(t.matrix)}}(),center:function(){var t=new u;return function(){return this.computeBoundingBox(),this.boundingBox.getCenter(t).negate(),this.translate(t.x,t.y,t.z),this}}(),setFromObject:function(t){var e=t.geometry;if(t.isPoints||t.isLine){t=new Et(3*e.vertices.length,3);var i=new Et(3*e.colors.length,3);this.addAttribute("position",t.copyVector3sArray(e.vertices)),this.addAttribute("color",i.copyColorsArray(e.colors)),e.lineDistances&&e.lineDistances.length===e.vertices.length&&(t=new Et(e.lineDistances.length,1),this.addAttribute("lineDistance",t.copyArray(e.lineDistances))),e.boundingSphere!==null&&(this.boundingSphere=e.boundingSphere.clone()),e.boundingBox!==null&&(this.boundingBox=e.boundingBox.clone())}else t.isMesh&&e&&e.isGeometry&&this.fromGeometry(e);return this},setFromPoints:function(t){for(var e=[],i=0,n=t.length;i<n;i++){var s=t[i];e.push(s.x,s.y,s.z||0)}return this.addAttribute("position",new Et(e,3)),this},updateFromObject:function(t){var e=t.geometry;if(t.isMesh){var i=e.__directGeometry;if(e.elementsNeedUpdate===!0&&(i=void 0,e.elementsNeedUpdate=!1),i===void 0)return this.fromGeometry(e);i.verticesNeedUpdate=e.verticesNeedUpdate,i.normalsNeedUpdate=e.normalsNeedUpdate,i.colorsNeedUpdate=e.colorsNeedUpdate,i.uvsNeedUpdate=e.uvsNeedUpdate,i.groupsNeedUpdate=e.groupsNeedUpdate,e.verticesNeedUpdate=!1,e.normalsNeedUpdate=!1,e.colorsNeedUpdate=!1,e.uvsNeedUpdate=!1,e.groupsNeedUpdate=!1,e=i}return e.verticesNeedUpdate===!0&&(i=this.attributes.position,i!==void 0&&(i.copyVector3sArray(e.vertices),i.needsUpdate=!0),e.verticesNeedUpdate=!1),e.normalsNeedUpdate===!0&&(i=this.attributes.normal,i!==void 0&&(i.copyVector3sArray(e.normals),i.needsUpdate=!0),e.normalsNeedUpdate=!1),e.colorsNeedUpdate===!0&&(i=this.attributes.color,i!==void 0&&(i.copyColorsArray(e.colors),i.needsUpdate=!0),e.colorsNeedUpdate=!1),e.uvsNeedUpdate&&(i=this.attributes.uv,i!==void 0&&(i.copyVector2sArray(e.uvs),i.needsUpdate=!0),e.uvsNeedUpdate=!1),e.lineDistancesNeedUpdate&&(i=this.attributes.lineDistance,i!==void 0&&(i.copyArray(e.lineDistances),i.needsUpdate=!0),e.lineDistancesNeedUpdate=!1),e.groupsNeedUpdate&&(e.computeGroups(t.geometry),this.groups=e.groups,e.groupsNeedUpdate=!1),this},fromGeometry:function(t){return t.__directGeometry=new fe().fromGeometry(t),this.fromDirectGeometry(t.__directGeometry)},fromDirectGeometry:function(t){var e=new Float32Array(3*t.vertices.length);this.addAttribute("position",new J(e,3).copyVector3sArray(t.vertices)),0<t.normals.length&&(e=new Float32Array(3*t.normals.length),this.addAttribute("normal",new J(e,3).copyVector3sArray(t.normals))),0<t.colors.length&&(e=new Float32Array(3*t.colors.length),this.addAttribute("color",new J(e,3).copyColorsArray(t.colors))),0<t.uvs.length&&(e=new Float32Array(2*t.uvs.length),this.addAttribute("uv",new J(e,2).copyVector2sArray(t.uvs))),0<t.uvs2.length&&(e=new Float32Array(2*t.uvs2.length),this.addAttribute("uv2",new J(e,2).copyVector2sArray(t.uvs2))),this.groups=t.groups;for(var i in t.morphTargets){e=[];for(var n=t.morphTargets[i],s=0,l=n.length;s<l;s++){var f=n[s],p=new Et(3*f.data.length,3);p.name=f.name,e.push(p.copyVector3sArray(f.data))}this.morphAttributes[i]=e}return 0<t.skinIndices.length&&(i=new Et(4*t.skinIndices.length,4),this.addAttribute("skinIndex",i.copyVector4sArray(t.skinIndices))),0<t.skinWeights.length&&(i=new Et(4*t.skinWeights.length,4),this.addAttribute("skinWeight",i.copyVector4sArray(t.skinWeights))),t.boundingSphere!==null&&(this.boundingSphere=t.boundingSphere.clone()),t.boundingBox!==null&&(this.boundingBox=t.boundingBox.clone()),this},computeBoundingBox:function(){this.boundingBox===null&&(this.boundingBox=new k);var t=this.attributes.position;t!==void 0?this.boundingBox.setFromBufferAttribute(t):this.boundingBox.makeEmpty(),(isNaN(this.boundingBox.min.x)||isNaN(this.boundingBox.min.y)||isNaN(this.boundingBox.min.z))&&console.error('THREE.BufferGeometry.computeBoundingBox: Computed min/max have NaN values. The "position" attribute is likely to have NaN values.',this)},computeBoundingSphere:function(){var t=new k,e=new u;return function(){this.boundingSphere===null&&(this.boundingSphere=new D);var i=this.attributes.position;if(i){var n=this.boundingSphere.center;t.setFromBufferAttribute(i),t.getCenter(n);for(var s=0,l=0,f=i.count;l<f;l++)e.x=i.getX(l),e.y=i.getY(l),e.z=i.getZ(l),s=Math.max(s,n.distanceToSquared(e));this.boundingSphere.radius=Math.sqrt(s),isNaN(this.boundingSphere.radius)&&console.error('THREE.BufferGeometry.computeBoundingSphere(): Computed radius is NaN. The "position" attribute is likely to have NaN values.',this)}}}(),computeFaceNormals:function(){},computeVertexNormals:function(){var t=this.index,e=this.attributes;if(e.position){var i=e.position.array;if(e.normal===void 0)this.addAttribute("normal",new J(new Float32Array(i.length),3));else for(var n=e.normal.array,s=0,l=n.length;s<l;s++)n[s]=0;n=e.normal.array;var f=new u,p=new u,v=new u,w=new u,C=new u;if(t){var P=t.array;for(s=0,l=t.count;s<l;s+=3){t=3*P[s+0];var B=3*P[s+1],H=3*P[s+2];f.fromArray(i,t),p.fromArray(i,B),v.fromArray(i,H),w.subVectors(v,p),C.subVectors(f,p),w.cross(C),n[t]+=w.x,n[t+1]+=w.y,n[t+2]+=w.z,n[B]+=w.x,n[B+1]+=w.y,n[B+2]+=w.z,n[H]+=w.x,n[H+1]+=w.y,n[H+2]+=w.z}}else for(s=0,l=i.length;s<l;s+=9)f.fromArray(i,s),p.fromArray(i,s+3),v.fromArray(i,s+6),w.subVectors(v,p),C.subVectors(f,p),w.cross(C),n[s]=w.x,n[s+1]=w.y,n[s+2]=w.z,n[s+3]=w.x,n[s+4]=w.y,n[s+5]=w.z,n[s+6]=w.x,n[s+7]=w.y,n[s+8]=w.z;this.normalizeNormals(),e.normal.needsUpdate=!0}},merge:function(t,e){if(t&&t.isBufferGeometry){e===void 0&&(e=0,console.warn("THREE.BufferGeometry.merge(): Overwriting original geometry, starting at offset=0. Use BufferGeometryUtils.mergeBufferGeometries() for lossless merge."));var i=this.attributes,n;for(n in i)if(t.attributes[n]!==void 0){var s=i[n].array,l=t.attributes[n],f=l.array,p=0;for(l=l.itemSize*e;p<f.length;p++,l++)s[l]=f[p]}return this}console.error("THREE.BufferGeometry.merge(): geometry not an instance of THREE.BufferGeometry.",t)},normalizeNormals:function(){var t=new u;return function(){for(var e=this.attributes.normal,i=0,n=e.count;i<n;i++)t.x=e.getX(i),t.y=e.getY(i),t.z=e.getZ(i),t.normalize(),e.setXYZ(i,t.x,t.y,t.z)}}(),toNonIndexed:function(){if(this.index===null)return console.warn("THREE.BufferGeometry.toNonIndexed(): Geometry is already non-indexed."),this;var t=new Ft,e=this.index.array,i=this.attributes,n;for(n in i){var s=i[n],l=s.array,f=s.itemSize,p=new l.constructor(e.length*f),v=0;s=0;for(var w=e.length;s<w;s++)for(var C=e[s]*f,P=0;P<f;P++)p[v++]=l[C++];t.addAttribute(n,new J(p,f))}for(e=this.groups,s=0,w=e.length;s<w;s++)i=e[s],t.addGroup(i.start,i.count,i.materialIndex);return t},toJSON:function(){var t={metadata:{version:4.5,type:"BufferGeometry",generator:"BufferGeometry.toJSON"}};if(t.uuid=this.uuid,t.type=this.type,this.name!==""&&(t.name=this.name),0<Object.keys(this.userData).length&&(t.userData=this.userData),this.parameters!==void 0){var e=this.parameters;for(s in e)e[s]!==void 0&&(t[s]=e[s]);return t}t.data={attributes:{}};var i=this.index;i!==null&&(e=Array.prototype.slice.call(i.array),t.data.index={type:i.array.constructor.name,array:e}),i=this.attributes;for(s in i){var n=i[s];e=Array.prototype.slice.call(n.array),t.data.attributes[s]={itemSize:n.itemSize,type:n.array.constructor.name,array:e,normalized:n.normalized}}var s=this.groups;return 0<s.length&&(t.data.groups=JSON.parse(JSON.stringify(s))),s=this.boundingSphere,s!==null&&(t.data.boundingSphere={center:s.center.toArray(),radius:s.radius}),t},clone:function(){return new Ft().copy(this)},copy:function(t){var e;this.index=null,this.attributes={},this.morphAttributes={},this.groups=[],this.boundingSphere=this.boundingBox=null,this.name=t.name;var i=t.index;i!==null&&this.setIndex(i.clone()),i=t.attributes;for(f in i)this.addAttribute(f,i[f].clone());var n=t.morphAttributes;for(f in n){var s=[],l=n[f];for(i=0,e=l.length;i<e;i++)s.push(l[i].clone());this.morphAttributes[f]=s}var f=t.groups;for(i=0,e=f.length;i<e;i++)n=f[i],this.addGroup(n.start,n.count,n.materialIndex);return f=t.boundingBox,f!==null&&(this.boundingBox=f.clone()),f=t.boundingSphere,f!==null&&(this.boundingSphere=f.clone()),this.drawRange.start=t.drawRange.start,this.drawRange.count=t.drawRange.count,this.userData=t.userData,this},dispose:function(){this.dispatchEvent({type:"dispose"})}}),Ot.prototype=Object.create(j.prototype),Ot.prototype.constructor=Ot,Bt.prototype=Object.create(Ft.prototype),Bt.prototype.constructor=Bt,ke.prototype=Object.create(j.prototype),ke.prototype.constructor=ke,ce.prototype=Object.create(Ft.prototype),ce.prototype.constructor=ce;var Ru=0;Yt.prototype=Object.assign(Object.create(a.prototype),{constructor:Yt,isMaterial:!0,onBeforeCompile:function(){},setValues:function(t){if(t!==void 0)for(var e in t){var i=t[e];if(i===void 0)console.warn("THREE.Material: '"+e+"' parameter is undefined.");else if(e==="shading")console.warn("THREE."+this.type+": .shading has been removed. Use the boolean .flatShading instead."),this.flatShading=i===1;else{var n=this[e];n===void 0?console.warn("THREE."+this.type+": '"+e+"' is not a property of this material."):n&&n.isColor?n.set(i):n&&n.isVector3&&i&&i.isVector3?n.copy(i):this[e]=i}}},toJSON:function(t){function e(s){var l=[],f;for(f in s){var p=s[f];delete p.metadata,l.push(p)}return l}var i=t===void 0||typeof t=="string";i&&(t={textures:{},images:{}});var n={metadata:{version:4.5,type:"Material",generator:"Material.toJSON"}};return n.uuid=this.uuid,n.type=this.type,this.name!==""&&(n.name=this.name),this.color&&this.color.isColor&&(n.color=this.color.getHex()),this.roughness!==void 0&&(n.roughness=this.roughness),this.metalness!==void 0&&(n.metalness=this.metalness),this.emissive&&this.emissive.isColor&&(n.emissive=this.emissive.getHex()),this.emissiveIntensity!==1&&(n.emissiveIntensity=this.emissiveIntensity),this.specular&&this.specular.isColor&&(n.specular=this.specular.getHex()),this.shininess!==void 0&&(n.shininess=this.shininess),this.clearCoat!==void 0&&(n.clearCoat=this.clearCoat),this.clearCoatRoughness!==void 0&&(n.clearCoatRoughness=this.clearCoatRoughness),this.map&&this.map.isTexture&&(n.map=this.map.toJSON(t).uuid),this.alphaMap&&this.alphaMap.isTexture&&(n.alphaMap=this.alphaMap.toJSON(t).uuid),this.lightMap&&this.lightMap.isTexture&&(n.lightMap=this.lightMap.toJSON(t).uuid),this.aoMap&&this.aoMap.isTexture&&(n.aoMap=this.aoMap.toJSON(t).uuid,n.aoMapIntensity=this.aoMapIntensity),this.bumpMap&&this.bumpMap.isTexture&&(n.bumpMap=this.bumpMap.toJSON(t).uuid,n.bumpScale=this.bumpScale),this.normalMap&&this.normalMap.isTexture&&(n.normalMap=this.normalMap.toJSON(t).uuid,n.normalMapType=this.normalMapType,n.normalScale=this.normalScale.toArray()),this.displacementMap&&this.displacementMap.isTexture&&(n.displacementMap=this.displacementMap.toJSON(t).uuid,n.displacementScale=this.displacementScale,n.displacementBias=this.displacementBias),this.roughnessMap&&this.roughnessMap.isTexture&&(n.roughnessMap=this.roughnessMap.toJSON(t).uuid),this.metalnessMap&&this.metalnessMap.isTexture&&(n.metalnessMap=this.metalnessMap.toJSON(t).uuid),this.emissiveMap&&this.emissiveMap.isTexture&&(n.emissiveMap=this.emissiveMap.toJSON(t).uuid),this.specularMap&&this.specularMap.isTexture&&(n.specularMap=this.specularMap.toJSON(t).uuid),this.envMap&&this.envMap.isTexture&&(n.envMap=this.envMap.toJSON(t).uuid,n.reflectivity=this.reflectivity,this.combine!==void 0&&(n.combine=this.combine),this.envMapIntensity!==void 0&&(n.envMapIntensity=this.envMapIntensity)),this.gradientMap&&this.gradientMap.isTexture&&(n.gradientMap=this.gradientMap.toJSON(t).uuid),this.size!==void 0&&(n.size=this.size),this.sizeAttenuation!==void 0&&(n.sizeAttenuation=this.sizeAttenuation),this.blending!==1&&(n.blending=this.blending),this.flatShading===!0&&(n.flatShading=this.flatShading),this.side!==0&&(n.side=this.side),this.vertexColors!==0&&(n.vertexColors=this.vertexColors),1>this.opacity&&(n.opacity=this.opacity),this.transparent===!0&&(n.transparent=this.transparent),n.depthFunc=this.depthFunc,n.depthTest=this.depthTest,n.depthWrite=this.depthWrite,this.rotation!==0&&(n.rotation=this.rotation),this.polygonOffset===!0&&(n.polygonOffset=!0),this.polygonOffsetFactor!==0&&(n.polygonOffsetFactor=this.polygonOffsetFactor),this.polygonOffsetUnits!==0&&(n.polygonOffsetUnits=this.polygonOffsetUnits),this.linewidth!==1&&(n.linewidth=this.linewidth),this.dashSize!==void 0&&(n.dashSize=this.dashSize),this.gapSize!==void 0&&(n.gapSize=this.gapSize),this.scale!==void 0&&(n.scale=this.scale),this.dithering===!0&&(n.dithering=!0),0<this.alphaTest&&(n.alphaTest=this.alphaTest),this.premultipliedAlpha===!0&&(n.premultipliedAlpha=this.premultipliedAlpha),this.wireframe===!0&&(n.wireframe=this.wireframe),1<this.wireframeLinewidth&&(n.wireframeLinewidth=this.wireframeLinewidth),this.wireframeLinecap!=="round"&&(n.wireframeLinecap=this.wireframeLinecap),this.wireframeLinejoin!=="round"&&(n.wireframeLinejoin=this.wireframeLinejoin),this.morphTargets===!0&&(n.morphTargets=!0),this.skinning===!0&&(n.skinning=!0),this.visible===!1&&(n.visible=!1),JSON.stringify(this.userData)!=="{}"&&(n.userData=this.userData),i&&(i=e(t.textures),t=e(t.images),0<i.length&&(n.textures=i),0<t.length&&(n.images=t)),n},clone:function(){return new this.constructor().copy(this)},copy:function(t){this.name=t.name,this.fog=t.fog,this.lights=t.lights,this.blending=t.blending,this.side=t.side,this.flatShading=t.flatShading,this.vertexColors=t.vertexColors,this.opacity=t.opacity,this.transparent=t.transparent,this.blendSrc=t.blendSrc,this.blendDst=t.blendDst,this.blendEquation=t.blendEquation,this.blendSrcAlpha=t.blendSrcAlpha,this.blendDstAlpha=t.blendDstAlpha,this.blendEquationAlpha=t.blendEquationAlpha,this.depthFunc=t.depthFunc,this.depthTest=t.depthTest,this.depthWrite=t.depthWrite,this.colorWrite=t.colorWrite,this.precision=t.precision,this.polygonOffset=t.polygonOffset,this.polygonOffsetFactor=t.polygonOffsetFactor,this.polygonOffsetUnits=t.polygonOffsetUnits,this.dithering=t.dithering,this.alphaTest=t.alphaTest,this.premultipliedAlpha=t.premultipliedAlpha,this.visible=t.visible,this.userData=JSON.parse(JSON.stringify(t.userData)),this.clipShadows=t.clipShadows,this.clipIntersection=t.clipIntersection;var e=t.clippingPlanes,i=null;if(e!==null){var n=e.length;i=Array(n);for(var s=0;s!==n;++s)i[s]=e[s].clone()}return this.clippingPlanes=i,this.shadowSide=t.shadowSide,this},dispose:function(){this.dispatchEvent({type:"dispose"})}}),$e.prototype=Object.create(Yt.prototype),$e.prototype.constructor=$e,$e.prototype.isShaderMaterial=!0,$e.prototype.copy=function(t){return Yt.prototype.copy.call(this,t),this.fragmentShader=t.fragmentShader,this.vertexShader=t.vertexShader,this.uniforms=Bn.clone(t.uniforms),this.defines=Object.assign({},t.defines),this.wireframe=t.wireframe,this.wireframeLinewidth=t.wireframeLinewidth,this.lights=t.lights,this.clipping=t.clipping,this.skinning=t.skinning,this.morphTargets=t.morphTargets,this.morphNormals=t.morphNormals,this.extensions=t.extensions,this},$e.prototype.toJSON=function(t){var e=Yt.prototype.toJSON.call(this,t);e.uniforms={};for(var i in this.uniforms){var n=this.uniforms[i].value;e.uniforms[i]=n.isTexture?{type:"t",value:n.toJSON(t).uuid}:n.isColor?{type:"c",value:n.getHex()}:n.isVector2?{type:"v2",value:n.toArray()}:n.isVector3?{type:"v3",value:n.toArray()}:n.isVector4?{type:"v4",value:n.toArray()}:n.isMatrix4?{type:"m4",value:n.toArray()}:{value:n}}return 0<Object.keys(this.defines).length&&(e.defines=this.defines),e.vertexShader=this.vertexShader,e.fragmentShader=this.fragmentShader,e},Object.assign(Oi.prototype,{set:function(t,e){return this.origin.copy(t),this.direction.copy(e),this},clone:function(){return new this.constructor().copy(this)},copy:function(t){return this.origin.copy(t.origin),this.direction.copy(t.direction),this},at:function(t,e){return e===void 0&&(console.warn("THREE.Ray: .at() target is now required"),e=new u),e.copy(this.direction).multiplyScalar(t).add(this.origin)},lookAt:function(t){return this.direction.copy(t).sub(this.origin).normalize(),this},recast:function(){var t=new u;return function(e){return this.origin.copy(this.at(e,t)),this}}(),closestPointToPoint:function(t,e){return e===void 0&&(console.warn("THREE.Ray: .closestPointToPoint() target is now required"),e=new u),e.subVectors(t,this.origin),t=e.dot(this.direction),0>t?e.copy(this.origin):e.copy(this.direction).multiplyScalar(t).add(this.origin)},distanceToPoint:function(t){return Math.sqrt(this.distanceSqToPoint(t))},distanceSqToPoint:function(){var t=new u;return function(e){var i=t.subVectors(e,this.origin).dot(this.direction);return 0>i?this.origin.distanceToSquared(e):(t.copy(this.direction).multiplyScalar(i).add(this.origin),t.distanceToSquared(e))}}(),distanceSqToSegment:function(){var t=new u,e=new u,i=new u;return function(n,s,l,f){t.copy(n).add(s).multiplyScalar(.5),e.copy(s).sub(n).normalize(),i.copy(this.origin).sub(t);var p=.5*n.distanceTo(s),v=-this.direction.dot(e),w=i.dot(this.direction),C=-i.dot(e),P=i.lengthSq(),B=Math.abs(1-v*v);if(0<B){n=v*C-w,s=v*w-C;var H=p*B;0<=n?s>=-H?s<=H?(p=1/B,n*=p,s*=p,v=n*(n+v*s+2*w)+s*(v*n+s+2*C)+P):(s=p,n=Math.max(0,-(v*s+w)),v=-n*n+s*(s+2*C)+P):(s=-p,n=Math.max(0,-(v*s+w)),v=-n*n+s*(s+2*C)+P):s<=-H?(n=Math.max(0,-(-v*p+w)),s=0<n?-p:Math.min(Math.max(-p,-C),p),v=-n*n+s*(s+2*C)+P):s<=H?(n=0,s=Math.min(Math.max(-p,-C),p),v=s*(s+2*C)+P):(n=Math.max(0,-(v*p+w)),s=0<n?p:Math.min(Math.max(-p,-C),p),v=-n*n+s*(s+2*C)+P)}else s=0<v?-p:p,n=Math.max(0,-(v*s+w)),v=-n*n+s*(s+2*C)+P;return l&&l.copy(this.direction).multiplyScalar(n).add(this.origin),f&&f.copy(e).multiplyScalar(s).add(t),v}}(),intersectSphere:function(){var t=new u;return function(e,i){t.subVectors(e.center,this.origin);var n=t.dot(this.direction),s=t.dot(t)-n*n;return e=e.radius*e.radius,s>e?null:(e=Math.sqrt(e-s),s=n-e,n+=e,0>s&&0>n?null:0>s?this.at(n,i):this.at(s,i))}}(),intersectsSphere:function(t){return this.distanceSqToPoint(t.center)<=t.radius*t.radius},distanceToPlane:function(t){var e=t.normal.dot(this.direction);return e===0?t.distanceToPoint(this.origin)===0?0:null:(t=-(this.origin.dot(t.normal)+t.constant)/e,0<=t?t:null)},intersectPlane:function(t,e){return t=this.distanceToPlane(t),t===null?null:this.at(t,e)},intersectsPlane:function(t){var e=t.distanceToPoint(this.origin);return e===0||0>t.normal.dot(this.direction)*e},intersectBox:function(t,e){var i=1/this.direction.x,n=1/this.direction.y,s=1/this.direction.z,l=this.origin;if(0<=i){var f=(t.min.x-l.x)*i;i*=t.max.x-l.x}else f=(t.max.x-l.x)*i,i*=t.min.x-l.x;if(0<=n){var p=(t.min.y-l.y)*n;n*=t.max.y-l.y}else p=(t.max.y-l.y)*n,n*=t.min.y-l.y;return f>n||p>i||((p>f||f!==f)&&(f=p),(n<i||i!==i)&&(i=n),0<=s?(p=(t.min.z-l.z)*s,t=(t.max.z-l.z)*s):(p=(t.max.z-l.z)*s,t=(t.min.z-l.z)*s),f>t||p>i)?null:((p>f||f!==f)&&(f=p),(t<i||i!==i)&&(i=t),0>i?null:this.at(0<=f?f:i,e))},intersectsBox:function(){var t=new u;return function(e){return this.intersectBox(e,t)!==null}}(),intersectTriangle:function(){var t=new u,e=new u,i=new u,n=new u;return function(s,l,f,p,v){if(e.subVectors(l,s),i.subVectors(f,s),n.crossVectors(e,i),l=this.direction.dot(n),0<l){if(p)return null;p=1}else if(0>l)p=-1,l=-l;else return null;return t.subVectors(this.origin,s),s=p*this.direction.dot(i.crossVectors(t,i)),0>s||(f=p*this.direction.dot(e.cross(t)),0>f||s+f>l)?null:(s=-p*t.dot(n),0>s?null:this.at(s/l,v))}}(),applyMatrix4:function(t){return this.origin.applyMatrix4(t),this.direction.transformDirection(t),this},equals:function(t){return t.origin.equals(this.origin)&&t.direction.equals(this.direction)}}),Object.assign(Oe,{getNormal:function(){var t=new u;return function(e,i,n,s){return s===void 0&&(console.warn("THREE.Triangle: .getNormal() target is now required"),s=new u),s.subVectors(n,i),t.subVectors(e,i),s.cross(t),e=s.lengthSq(),0<e?s.multiplyScalar(1/Math.sqrt(e)):s.set(0,0,0)}}(),getBarycoord:function(){var t=new u,e=new u,i=new u;return function(n,s,l,f,p){t.subVectors(f,s),e.subVectors(l,s),i.subVectors(n,s),n=t.dot(t),s=t.dot(e),l=t.dot(i);var v=e.dot(e);f=e.dot(i);var w=n*v-s*s;return p===void 0&&(console.warn("THREE.Triangle: .getBarycoord() target is now required"),p=new u),w===0?p.set(-2,-1,-1):(w=1/w,v=(v*l-s*f)*w,n=(n*f-s*l)*w,p.set(1-v-n,n,v))}}(),containsPoint:function(){var t=new u;return function(e,i,n,s){return Oe.getBarycoord(e,i,n,s,t),0<=t.x&&0<=t.y&&1>=t.x+t.y}}(),getUV:function(){var t=new u;return function(e,i,n,s,l,f,p,v){return this.getBarycoord(e,i,n,s,t),v.set(0,0),v.addScaledVector(l,t.x),v.addScaledVector(f,t.y),v.addScaledVector(p,t.z),v}}()}),Object.assign(Oe.prototype,{set:function(t,e,i){return this.a.copy(t),this.b.copy(e),this.c.copy(i),this},setFromPointsAndIndices:function(t,e,i,n){return this.a.copy(t[e]),this.b.copy(t[i]),this.c.copy(t[n]),this},clone:function(){return new this.constructor().copy(this)},copy:function(t){return this.a.copy(t.a),this.b.copy(t.b),this.c.copy(t.c),this},getArea:function(){var t=new u,e=new u;return function(){return t.subVectors(this.c,this.b),e.subVectors(this.a,this.b),.5*t.cross(e).length()}}(),getMidpoint:function(t){return t===void 0&&(console.warn("THREE.Triangle: .getMidpoint() target is now required"),t=new u),t.addVectors(this.a,this.b).add(this.c).multiplyScalar(1/3)},getNormal:function(t){return Oe.getNormal(this.a,this.b,this.c,t)},getPlane:function(t){return t===void 0&&(console.warn("THREE.Triangle: .getPlane() target is now required"),t=new u),t.setFromCoplanarPoints(this.a,this.b,this.c)},getBarycoord:function(t,e){return Oe.getBarycoord(t,this.a,this.b,this.c,e)},containsPoint:function(t){return Oe.containsPoint(t,this.a,this.b,this.c)},getUV:function(t,e,i,n,s){return Oe.getUV(t,this.a,this.b,this.c,e,i,n,s)},intersectsBox:function(t){return t.intersectsTriangle(this)},closestPointToPoint:function(){var t=new u,e=new u,i=new u,n=new u,s=new u,l=new u;return function(f,p){p===void 0&&(console.warn("THREE.Triangle: .closestPointToPoint() target is now required"),p=new u);var v=this.a,w=this.b,C=this.c;t.subVectors(w,v),e.subVectors(C,v),n.subVectors(f,v);var P=t.dot(n),B=e.dot(n);if(0>=P&&0>=B)return p.copy(v);s.subVectors(f,w);var H=t.dot(s),q=e.dot(s);if(0<=H&&q<=H)return p.copy(w);var K=P*q-H*B;if(0>=K&&0<=P&&0>=H)return w=P/(P-H),p.copy(v).addScaledVector(t,w);l.subVectors(f,C),f=t.dot(l);var rt=e.dot(l);return 0<=rt&&f<=rt?p.copy(C):(P=f*B-P*rt,0>=P&&0<=B&&0>=rt?(K=B/(B-rt),p.copy(v).addScaledVector(e,K)):(B=H*rt-f*q,0>=B&&0<=q-H&&0<=f-rt?(i.subVectors(C,w),K=(q-H)/(q-H+(f-rt)),p.copy(w).addScaledVector(i,K)):(C=1/(B+P+K),w=P*C,K*=C,p.copy(v).addScaledVector(t,w).addScaledVector(e,K))))}}(),equals:function(t){return t.a.equals(this.a)&&t.b.equals(this.b)&&t.c.equals(this.c)}}),Ge.prototype=Object.create(Yt.prototype),Ge.prototype.constructor=Ge,Ge.prototype.isMeshBasicMaterial=!0,Ge.prototype.copy=function(t){return Yt.prototype.copy.call(this,t),this.color.copy(t.color),this.map=t.map,this.lightMap=t.lightMap,this.lightMapIntensity=t.lightMapIntensity,this.aoMap=t.aoMap,this.aoMapIntensity=t.aoMapIntensity,this.specularMap=t.specularMap,this.alphaMap=t.alphaMap,this.envMap=t.envMap,this.combine=t.combine,this.reflectivity=t.reflectivity,this.refractionRatio=t.refractionRatio,this.wireframe=t.wireframe,this.wireframeLinewidth=t.wireframeLinewidth,this.wireframeLinecap=t.wireframeLinecap,this.wireframeLinejoin=t.wireframeLinejoin,this.skinning=t.skinning,this.morphTargets=t.morphTargets,this},di.prototype=Object.assign(Object.create(N.prototype),{constructor:di,isMesh:!0,setDrawMode:function(t){this.drawMode=t},copy:function(t){return N.prototype.copy.call(this,t),this.drawMode=t.drawMode,t.morphTargetInfluences!==void 0&&(this.morphTargetInfluences=t.morphTargetInfluences.slice()),t.morphTargetDictionary!==void 0&&(this.morphTargetDictionary=Object.assign({},t.morphTargetDictionary)),this},updateMorphTargets:function(){var t=this.geometry;if(t.isBufferGeometry){t=t.morphAttributes;var e=Object.keys(t);if(0<e.length){var i=t[e[0]];if(i!==void 0)for(this.morphTargetInfluences=[],this.morphTargetDictionary={},t=0,e=i.length;t<e;t++){var n=i[t].name||String(t);this.morphTargetInfluences.push(0),this.morphTargetDictionary[n]=t}}}else if(i=t.morphTargets,i!==void 0&&0<i.length)for(this.morphTargetInfluences=[],this.morphTargetDictionary={},t=0,e=i.length;t<e;t++)n=i[t].name||String(t),this.morphTargetInfluences.push(0),this.morphTargetDictionary[n]=t},raycast:function(){function t(rt,xt,gt,At,wt,Vt,Z,st){return(xt.side===1?At.intersectTriangle(Z,Vt,wt,!0,st):At.intersectTriangle(wt,Vt,Z,xt.side!==2,st))===null?null:(K.copy(st),K.applyMatrix4(rt.matrixWorld),xt=gt.ray.origin.distanceTo(K),xt<gt.near||xt>gt.far?null:{distance:xt,point:K.clone(),object:rt})}function e(rt,xt,gt,At,wt,Vt,Z,st,zt){return l.fromBufferAttribute(wt,Z),f.fromBufferAttribute(wt,st),p.fromBufferAttribute(wt,zt),(rt=t(rt,xt,gt,At,l,f,p,q))&&(Vt&&(P.fromBufferAttribute(Vt,Z),B.fromBufferAttribute(Vt,st),H.fromBufferAttribute(Vt,zt),rt.uv=Oe.getUV(q,l,f,p,P,B,H,new o)),Vt=new R(Z,st,zt),Oe.getNormal(l,f,p,Vt.normal),rt.face=Vt),rt}var i=new c,n=new Oi,s=new D,l=new u,f=new u,p=new u,v=new u,w=new u,C=new u,P=new o,B=new o,H=new o,q=new u,K=new u;return function(rt,xt){var gt=this.geometry,At=this.material,wt=this.matrixWorld;if(At!==void 0&&(gt.boundingSphere===null&&gt.computeBoundingSphere(),s.copy(gt.boundingSphere),s.applyMatrix4(wt),rt.ray.intersectsSphere(s)!==!1&&(i.getInverse(wt),n.copy(rt.ray).applyMatrix4(i),gt.boundingBox===null||n.intersectsBox(gt.boundingBox)!==!1))){if(gt.isBufferGeometry){var Vt=gt.index,Z=gt.attributes.position,st=gt.attributes.uv,zt=gt.groups;gt=gt.drawRange;var ee;if(Vt!==null)if(Array.isArray(At)){var $t=0;for(ee=zt.length;$t<ee;$t++){var qt=zt[$t],Te=At[qt.materialIndex];wt=Math.max(qt.start,gt.start);var me=Math.min(qt.start+qt.count,gt.start+gt.count);for(qt=wt;qt<me;qt+=3){wt=Vt.getX(qt);var Ie=Vt.getX(qt+1),be=Vt.getX(qt+2);(wt=e(this,Te,rt,n,Z,st,wt,Ie,be))&&(wt.faceIndex=Math.floor(qt/3),xt.push(wt))}}}else for(wt=Math.max(0,gt.start),me=Math.min(Vt.count,gt.start+gt.count),$t=wt,ee=me;$t<ee;$t+=3)wt=Vt.getX($t),Ie=Vt.getX($t+1),be=Vt.getX($t+2),(wt=e(this,At,rt,n,Z,st,wt,Ie,be))&&(wt.faceIndex=Math.floor($t/3),xt.push(wt));else if(Z!==void 0)if(Array.isArray(At))for($t=0,ee=zt.length;$t<ee;$t++)for(qt=zt[$t],Te=At[qt.materialIndex],wt=Math.max(qt.start,gt.start),me=Math.min(qt.start+qt.count,gt.start+gt.count),qt=wt;qt<me;qt+=3)wt=qt,Ie=qt+1,be=qt+2,(wt=e(this,Te,rt,n,Z,st,wt,Ie,be))&&(wt.faceIndex=Math.floor(qt/3),xt.push(wt));else for(wt=Math.max(0,gt.start),me=Math.min(Z.count,gt.start+gt.count),$t=wt,ee=me;$t<ee;$t+=3)wt=$t,Ie=$t+1,be=$t+2,(wt=e(this,At,rt,n,Z,st,wt,Ie,be))&&(wt.faceIndex=Math.floor($t/3),xt.push(wt))}else if(gt.isGeometry){for(Z=Array.isArray(At),st=gt.vertices,zt=gt.faces,wt=gt.faceVertexUvs[0],0<wt.length&&(Vt=wt),qt=0,me=zt.length;qt<me;qt++)if(Ie=zt[qt],wt=Z?At[Ie.materialIndex]:At,wt!==void 0){if($t=st[Ie.a],ee=st[Ie.b],Te=st[Ie.c],wt.morphTargets===!0){be=gt.morphTargets;var ae=this.morphTargetInfluences;l.set(0,0,0),f.set(0,0,0),p.set(0,0,0);for(var We=0,Qe=be.length;We<Qe;We++){var fi=ae[We];if(fi!==0){var An=be[We].vertices;l.addScaledVector(v.subVectors(An[Ie.a],$t),fi),f.addScaledVector(w.subVectors(An[Ie.b],ee),fi),p.addScaledVector(C.subVectors(An[Ie.c],Te),fi)}}l.add($t),f.add(ee),p.add(Te),$t=l,ee=f,Te=p}(wt=t(this,wt,rt,n,$t,ee,Te,q))&&(Vt&&Vt[qt]&&(be=Vt[qt],P.copy(be[0]),B.copy(be[1]),H.copy(be[2]),wt.uv=Oe.getUV(q,$t,ee,Te,P,B,H,new o)),wt.face=Ie,wt.faceIndex=qt,xt.push(wt))}}}}}(),clone:function(){return new this.constructor(this.geometry,this.material).copy(this)}}),z.prototype=Object.create(_.prototype),z.prototype.constructor=z,z.prototype.isCubeTexture=!0,Object.defineProperty(z.prototype,"images",{get:function(){return this.image},set:function(t){this.image=t}}),Q.prototype=Object.create(_.prototype),Q.prototype.constructor=Q,Q.prototype.isDataTexture3D=!0;var Vh=new _,Xc=new Q,Ou=new z,nh=[],Ca=[],yl=new Float32Array(16),Iu=new Float32Array(9),Wh=new Float32Array(4);na.prototype.updateCache=function(t){var e=this.cache;t instanceof Float32Array&&e.length!==t.length&&(this.cache=new Float32Array(t.length)),vt(e,t)},qa.prototype.setValue=function(t,e,i){for(var n=this.seq,s=0,l=n.length;s!==l;++s){var f=n[s];f.setValue(t,e[f.id],i)}};var jh=/([\w\d_]+)(\])?(\[|\.)?/g;hs.prototype.setValue=function(t,e,i){e=this.map[e],e!==void 0&&e.setValue(t,i,this.renderer)},hs.prototype.setOptional=function(t,e,i){e=e[i],e!==void 0&&this.setValue(t,i,e)},hs.upload=function(t,e,i,n){for(var s=0,l=e.length;s!==l;++s){var f=e[s],p=i[f.id];p.needsUpdate!==!1&&f.setValue(t,p.value,n)}},hs.seqWithValue=function(t,e){for(var i=[],n=0,s=t.length;n!==s;++n){var l=t[n];l.id in e&&i.push(l)}return i};var ks=0,Xh=0;oe.prototype=Object.create(Yt.prototype),oe.prototype.constructor=oe,oe.prototype.isMeshDepthMaterial=!0,oe.prototype.copy=function(t){return Yt.prototype.copy.call(this,t),this.depthPacking=t.depthPacking,this.skinning=t.skinning,this.morphTargets=t.morphTargets,this.map=t.map,this.alphaMap=t.alphaMap,this.displacementMap=t.displacementMap,this.displacementScale=t.displacementScale,this.displacementBias=t.displacementBias,this.wireframe=t.wireframe,this.wireframeLinewidth=t.wireframeLinewidth,this},te.prototype=Object.create(Yt.prototype),te.prototype.constructor=te,te.prototype.isMeshDistanceMaterial=!0,te.prototype.copy=function(t){return Yt.prototype.copy.call(this,t),this.referencePosition.copy(t.referencePosition),this.nearDistance=t.nearDistance,this.farDistance=t.farDistance,this.skinning=t.skinning,this.morphTargets=t.morphTargets,this.map=t.map,this.alphaMap=t.alphaMap,this.displacementMap=t.displacementMap,this.displacementScale=t.displacementScale,this.displacementBias=t.displacementBias,this},ci.prototype=Object.assign(Object.create(N.prototype),{constructor:ci,isGroup:!0}),Be.prototype=Object.assign(Object.create(N.prototype),{constructor:Be,isCamera:!0,copy:function(t,e){return N.prototype.copy.call(this,t,e),this.matrixWorldInverse.copy(t.matrixWorldInverse),this.projectionMatrix.copy(t.projectionMatrix),this.projectionMatrixInverse.copy(t.projectionMatrixInverse),this},getWorldDirection:function(t){t===void 0&&(console.warn("THREE.Camera: .getWorldDirection() target is now required"),t=new u),this.updateMatrixWorld(!0);var e=this.matrixWorld.elements;return t.set(-e[8],-e[9],-e[10]).normalize()},updateMatrixWorld:function(t){N.prototype.updateMatrixWorld.call(this,t),this.matrixWorldInverse.getInverse(this.matrixWorld)},clone:function(){return new this.constructor().copy(this)}}),ye.prototype=Object.assign(Object.create(Be.prototype),{constructor:ye,isPerspectiveCamera:!0,copy:function(t,e){return Be.prototype.copy.call(this,t,e),this.fov=t.fov,this.zoom=t.zoom,this.near=t.near,this.far=t.far,this.focus=t.focus,this.aspect=t.aspect,this.view=t.view===null?null:Object.assign({},t.view),this.filmGauge=t.filmGauge,this.filmOffset=t.filmOffset,this},setFocalLength:function(t){t=.5*this.getFilmHeight()/t,this.fov=2*pi.RAD2DEG*Math.atan(t),this.updateProjectionMatrix()},getFocalLength:function(){var t=Math.tan(.5*pi.DEG2RAD*this.fov);return .5*this.getFilmHeight()/t},getEffectiveFOV:function(){return 2*pi.RAD2DEG*Math.atan(Math.tan(.5*pi.DEG2RAD*this.fov)/this.zoom)},getFilmWidth:function(){return this.filmGauge*Math.min(this.aspect,1)},getFilmHeight:function(){return this.filmGauge/Math.max(this.aspect,1)},setViewOffset:function(t,e,i,n,s,l){this.aspect=t/e,this.view===null&&(this.view={enabled:!0,fullWidth:1,fullHeight:1,offsetX:0,offsetY:0,width:1,height:1}),this.view.enabled=!0,this.view.fullWidth=t,this.view.fullHeight=e,this.view.offsetX=i,this.view.offsetY=n,this.view.width=s,this.view.height=l,this.updateProjectionMatrix()},clearViewOffset:function(){this.view!==null&&(this.view.enabled=!1),this.updateProjectionMatrix()},updateProjectionMatrix:function(){var t=this.near,e=t*Math.tan(.5*pi.DEG2RAD*this.fov)/this.zoom,i=2*e,n=this.aspect*i,s=-.5*n,l=this.view;if(this.view!==null&&this.view.enabled){var f=l.fullWidth,p=l.fullHeight;s+=l.offsetX*n/f,e-=l.offsetY*i/p,n*=l.width/f,i*=l.height/p}l=this.filmOffset,l!==0&&(s+=t*l/this.getFilmWidth()),this.projectionMatrix.makePerspective(s,s+n,e,e-i,t,this.far),this.projectionMatrixInverse.getInverse(this.projectionMatrix)},toJSON:function(t){return t=N.prototype.toJSON.call(this,t),t.object.fov=this.fov,t.object.zoom=this.zoom,t.object.near=this.near,t.object.far=this.far,t.object.focus=this.focus,t.object.aspect=this.aspect,this.view!==null&&(t.object.view=Object.assign({},this.view)),t.object.filmGauge=this.filmGauge,t.object.filmOffset=this.filmOffset,t}}),Fe.prototype=Object.assign(Object.create(ye.prototype),{constructor:Fe,isArrayCamera:!0});var oo=new u,wr=new u;Le.prototype.isFogExp2=!0,Le.prototype.clone=function(){return new Le(this.color,this.density)},Le.prototype.toJSON=function(){return{type:"FogExp2",color:this.color.getHex(),density:this.density}},Sn.prototype.isFog=!0,Sn.prototype.clone=function(){return new Sn(this.color,this.near,this.far)},Sn.prototype.toJSON=function(){return{type:"Fog",color:this.color.getHex(),near:this.near,far:this.far}},Xn.prototype=Object.assign(Object.create(N.prototype),{constructor:Xn,copy:function(t,e){return N.prototype.copy.call(this,t,e),t.background!==null&&(this.background=t.background.clone()),t.fog!==null&&(this.fog=t.fog.clone()),t.overrideMaterial!==null&&(this.overrideMaterial=t.overrideMaterial.clone()),this.autoUpdate=t.autoUpdate,this.matrixAutoUpdate=t.matrixAutoUpdate,this},toJSON:function(t){var e=N.prototype.toJSON.call(this,t);return this.background!==null&&(e.object.background=this.background.toJSON(t)),this.fog!==null&&(e.object.fog=this.fog.toJSON()),e}}),Object.defineProperty(zi.prototype,"needsUpdate",{set:function(t){t===!0&&this.version++}}),Object.assign(zi.prototype,{isInterleavedBuffer:!0,onUploadCallback:function(){},setArray:function(t){if(Array.isArray(t))throw new TypeError("THREE.BufferAttribute: array should be a Typed Array.");return this.count=t!==void 0?t.length/this.stride:0,this.array=t,this},setDynamic:function(t){return this.dynamic=t,this},copy:function(t){return this.array=new t.array.constructor(t.array),this.count=t.count,this.stride=t.stride,this.dynamic=t.dynamic,this},copyAt:function(t,e,i){t*=this.stride,i*=e.stride;for(var n=0,s=this.stride;n<s;n++)this.array[t+n]=e.array[i+n];return this},set:function(t,e){return e===void 0&&(e=0),this.array.set(t,e),this},clone:function(){return new this.constructor().copy(this)},onUpload:function(t){return this.onUploadCallback=t,this}}),Object.defineProperties(ki.prototype,{count:{get:function(){return this.data.count}},array:{get:function(){return this.data.array}}}),Object.assign(ki.prototype,{isInterleavedBufferAttribute:!0,setX:function(t,e){return this.data.array[t*this.data.stride+this.offset]=e,this},setY:function(t,e){return this.data.array[t*this.data.stride+this.offset+1]=e,this},setZ:function(t,e){return this.data.array[t*this.data.stride+this.offset+2]=e,this},setW:function(t,e){return this.data.array[t*this.data.stride+this.offset+3]=e,this},getX:function(t){return this.data.array[t*this.data.stride+this.offset]},getY:function(t){return this.data.array[t*this.data.stride+this.offset+1]},getZ:function(t){return this.data.array[t*this.data.stride+this.offset+2]},getW:function(t){return this.data.array[t*this.data.stride+this.offset+3]},setXY:function(t,e,i){return t=t*this.data.stride+this.offset,this.data.array[t+0]=e,this.data.array[t+1]=i,this},setXYZ:function(t,e,i,n){return t=t*this.data.stride+this.offset,this.data.array[t+0]=e,this.data.array[t+1]=i,this.data.array[t+2]=n,this},setXYZW:function(t,e,i,n,s){return t=t*this.data.stride+this.offset,this.data.array[t+0]=e,this.data.array[t+1]=i,this.data.array[t+2]=n,this.data.array[t+3]=s,this}}),Hi.prototype=Object.create(Yt.prototype),Hi.prototype.constructor=Hi,Hi.prototype.isSpriteMaterial=!0,Hi.prototype.copy=function(t){return Yt.prototype.copy.call(this,t),this.color.copy(t.color),this.map=t.map,this.rotation=t.rotation,this.sizeAttenuation=t.sizeAttenuation,this};var Pa;nn.prototype=Object.assign(Object.create(N.prototype),{constructor:nn,isSprite:!0,raycast:function(){function t(H,q,K,rt,xt,gt){s.subVectors(H,K).addScalar(.5).multiply(rt),xt!==void 0?(l.x=gt*s.x-xt*s.y,l.y=xt*s.x+gt*s.y):l.copy(s),H.copy(q),H.x+=l.x,H.y+=l.y,H.applyMatrix4(f)}var e=new u,i=new u,n=new u,s=new o,l=new o,f=new c,p=new u,v=new u,w=new u,C=new o,P=new o,B=new o;return function(H,q){i.setFromMatrixScale(this.matrixWorld),f.getInverse(this.modelViewMatrix).premultiply(this.matrixWorld),n.setFromMatrixPosition(this.modelViewMatrix);var K=this.material.rotation;if(K!==0)var rt=Math.cos(K),xt=Math.sin(K);K=this.center,t(p.set(-.5,-.5,0),n,K,i,xt,rt),t(v.set(.5,-.5,0),n,K,i,xt,rt),t(w.set(.5,.5,0),n,K,i,xt,rt),C.set(0,0),P.set(1,0),B.set(1,1);var gt=H.ray.intersectTriangle(p,v,w,!1,e);gt===null&&(t(v.set(-.5,.5,0),n,K,i,xt,rt),P.set(0,1),gt=H.ray.intersectTriangle(p,w,v,!1,e),gt===null)||(xt=H.ray.origin.distanceTo(e),xt<H.near||xt>H.far||q.push({distance:xt,point:e.clone(),uv:Oe.getUV(e,p,v,w,C,P,B,new o),face:null,object:this}))}}(),clone:function(){return new this.constructor(this.material).copy(this)},copy:function(t){return N.prototype.copy.call(this,t),t.center!==void 0&&this.center.copy(t.center),this}}),rn.prototype=Object.assign(Object.create(N.prototype),{constructor:rn,copy:function(t){N.prototype.copy.call(this,t,!1),t=t.levels;for(var e=0,i=t.length;e<i;e++){var n=t[e];this.addLevel(n.object.clone(),n.distance)}return this},addLevel:function(t,e){e===void 0&&(e=0),e=Math.abs(e);for(var i=this.levels,n=0;n<i.length&&!(e<i[n].distance);n++);i.splice(n,0,{distance:e,object:t}),this.add(t)},getObjectForDistance:function(t){for(var e=this.levels,i=1,n=e.length;i<n&&!(t<e[i].distance);i++);return e[i-1].object},raycast:function(){var t=new u;return function(e,i){t.setFromMatrixPosition(this.matrixWorld);var n=e.ray.origin.distanceTo(t);this.getObjectForDistance(n).raycast(e,i)}}(),update:function(){var t=new u,e=new u;return function(i){var n=this.levels;if(1<n.length){t.setFromMatrixPosition(i.matrixWorld),e.setFromMatrixPosition(this.matrixWorld),i=t.distanceTo(e),n[0].object.visible=!0;for(var s=1,l=n.length;s<l&&i>=n[s].distance;s++)n[s-1].object.visible=!1,n[s].object.visible=!0;for(;s<l;s++)n[s].object.visible=!1}}}(),toJSON:function(t){t=N.prototype.toJSON.call(this,t),t.object.levels=[];for(var e=this.levels,i=0,n=e.length;i<n;i++){var s=e[i];t.object.levels.push({object:s.object.uuid,distance:s.distance})}return t}}),Object.assign(un.prototype,{calculateInverses:function(){this.boneInverses=[];for(var t=0,e=this.bones.length;t<e;t++){var i=new c;this.bones[t]&&i.getInverse(this.bones[t].matrixWorld),this.boneInverses.push(i)}},pose:function(){var t,e,i=0;for(e=this.bones.length;i<e;i++)(t=this.bones[i])&&t.matrixWorld.getInverse(this.boneInverses[i]);for(i=0,e=this.bones.length;i<e;i++)(t=this.bones[i])&&(t.parent&&t.parent.isBone?(t.matrix.getInverse(t.parent.matrixWorld),t.matrix.multiply(t.matrixWorld)):t.matrix.copy(t.matrixWorld),t.matrix.decompose(t.position,t.quaternion,t.scale))},update:function(){var t=new c,e=new c;return function(){for(var i=this.bones,n=this.boneInverses,s=this.boneMatrices,l=this.boneTexture,f=0,p=i.length;f<p;f++)t.multiplyMatrices(i[f]?i[f].matrixWorld:e,n[f]),t.toArray(s,16*f);l!==void 0&&(l.needsUpdate=!0)}}(),clone:function(){return new un(this.bones,this.boneInverses)},getBoneByName:function(t){for(var e=0,i=this.bones.length;e<i;e++){var n=this.bones[e];if(n.name===t)return n}}}),cn.prototype=Object.assign(Object.create(N.prototype),{constructor:cn,isBone:!0}),Gi.prototype=Object.assign(Object.create(di.prototype),{constructor:Gi,isSkinnedMesh:!0,initBones:function(){var t=[],e;if(this.geometry&&this.geometry.bones!==void 0){var i=0;for(e=this.geometry.bones.length;i<e;i++){var n=this.geometry.bones[i],s=new cn;t.push(s),s.name=n.name,s.position.fromArray(n.pos),s.quaternion.fromArray(n.rotq),n.scl!==void 0&&s.scale.fromArray(n.scl)}for(i=0,e=this.geometry.bones.length;i<e;i++)n=this.geometry.bones[i],n.parent!==-1&&n.parent!==null&&t[n.parent]!==void 0?t[n.parent].add(t[i]):this.add(t[i])}return this.updateMatrixWorld(!0),t},bind:function(t,e){this.skeleton=t,e===void 0&&(this.updateMatrixWorld(!0),this.skeleton.calculateInverses(),e=this.matrixWorld),this.bindMatrix.copy(e),this.bindMatrixInverse.getInverse(e)},pose:function(){this.skeleton.pose()},normalizeSkinWeights:function(){var t;if(this.geometry&&this.geometry.isGeometry)for(t=0;t<this.geometry.skinWeights.length;t++){var e=this.geometry.skinWeights[t],i=1/e.manhattanLength();i!==1/0?e.multiplyScalar(i):e.set(1,0,0,0)}else if(this.geometry&&this.geometry.isBufferGeometry){e=new y;var n=this.geometry.attributes.skinWeight;for(t=0;t<n.count;t++)e.x=n.getX(t),e.y=n.getY(t),e.z=n.getZ(t),e.w=n.getW(t),i=1/e.manhattanLength(),i!==1/0?e.multiplyScalar(i):e.set(1,0,0,0),n.setXYZW(t,e.x,e.y,e.z,e.w)}},updateMatrixWorld:function(t){di.prototype.updateMatrixWorld.call(this,t),this.bindMode==="attached"?this.bindMatrixInverse.getInverse(this.matrixWorld):this.bindMode==="detached"?this.bindMatrixInverse.getInverse(this.bindMatrix):console.warn("THREE.SkinnedMesh: Unrecognized bindMode: "+this.bindMode)},clone:function(){return new this.constructor(this.geometry,this.material).copy(this)}}),Bi.prototype=Object.create(Yt.prototype),Bi.prototype.constructor=Bi,Bi.prototype.isLineBasicMaterial=!0,Bi.prototype.copy=function(t){return Yt.prototype.copy.call(this,t),this.color.copy(t.color),this.linewidth=t.linewidth,this.linecap=t.linecap,this.linejoin=t.linejoin,this},ji.prototype=Object.assign(Object.create(N.prototype),{constructor:ji,isLine:!0,computeLineDistances:function(){var t=new u,e=new u;return function(){var i=this.geometry;if(i.isBufferGeometry)if(i.index===null){for(var n=i.attributes.position,s=[0],l=1,f=n.count;l<f;l++)t.fromBufferAttribute(n,l-1),e.fromBufferAttribute(n,l),s[l]=s[l-1],s[l]+=t.distanceTo(e);i.addAttribute("lineDistance",new Et(s,1))}else console.warn("THREE.Line.computeLineDistances(): Computation only possible with non-indexed BufferGeometry.");else if(i.isGeometry)for(n=i.vertices,s=i.lineDistances,s[0]=0,l=1,f=n.length;l<f;l++)s[l]=s[l-1],s[l]+=n[l-1].distanceTo(n[l]);return this}}(),raycast:function(){var t=new c,e=new Oi,i=new D;return function(n,s){var l=n.linePrecision,f=this.geometry,p=this.matrixWorld;if(f.boundingSphere===null&&f.computeBoundingSphere(),i.copy(f.boundingSphere),i.applyMatrix4(p),i.radius+=l,n.ray.intersectsSphere(i)!==!1){t.getInverse(p),e.copy(n.ray).applyMatrix4(t),l/=(this.scale.x+this.scale.y+this.scale.z)/3,l*=l;var v=new u,w=new u;p=new u;var C=new u,P=this&&this.isLineSegments?2:1;if(f.isBufferGeometry){var B=f.index,H=f.attributes.position.array;if(B!==null){B=B.array,f=0;for(var q=B.length-1;f<q;f+=P){var K=B[f+1];v.fromArray(H,3*B[f]),w.fromArray(H,3*K),K=e.distanceSqToSegment(v,w,C,p),K>l||(C.applyMatrix4(this.matrixWorld),K=n.ray.origin.distanceTo(C),K<n.near||K>n.far||s.push({distance:K,point:p.clone().applyMatrix4(this.matrixWorld),index:f,face:null,faceIndex:null,object:this}))}}else for(f=0,q=H.length/3-1;f<q;f+=P)v.fromArray(H,3*f),w.fromArray(H,3*f+3),K=e.distanceSqToSegment(v,w,C,p),K>l||(C.applyMatrix4(this.matrixWorld),K=n.ray.origin.distanceTo(C),K<n.near||K>n.far||s.push({distance:K,point:p.clone().applyMatrix4(this.matrixWorld),index:f,face:null,faceIndex:null,object:this}))}else if(f.isGeometry)for(v=f.vertices,w=v.length,f=0;f<w-1;f+=P)K=e.distanceSqToSegment(v[f],v[f+1],C,p),K>l||(C.applyMatrix4(this.matrixWorld),K=n.ray.origin.distanceTo(C),K<n.near||K>n.far||s.push({distance:K,point:p.clone().applyMatrix4(this.matrixWorld),index:f,face:null,faceIndex:null,object:this}))}}}(),copy:function(t){return N.prototype.copy.call(this,t),this.geometry.copy(t.geometry),this.material.copy(t.material),this},clone:function(){return new this.constructor().copy(this)}}),gi.prototype=Object.assign(Object.create(ji.prototype),{constructor:gi,isLineSegments:!0,computeLineDistances:function(){var t=new u,e=new u;return function(){var i=this.geometry;if(i.isBufferGeometry)if(i.index===null){for(var n=i.attributes.position,s=[],l=0,f=n.count;l<f;l+=2)t.fromBufferAttribute(n,l),e.fromBufferAttribute(n,l+1),s[l]=l===0?0:s[l-1],s[l+1]=s[l]+t.distanceTo(e);i.addAttribute("lineDistance",new Et(s,1))}else console.warn("THREE.LineSegments.computeLineDistances(): Computation only possible with non-indexed BufferGeometry.");else if(i.isGeometry)for(n=i.vertices,s=i.lineDistances,l=0,f=n.length;l<f;l+=2)t.copy(n[l]),e.copy(n[l+1]),s[l]=l===0?0:s[l-1],s[l+1]=s[l]+t.distanceTo(e);return this}}()}),cs.prototype=Object.assign(Object.create(ji.prototype),{constructor:cs,isLineLoop:!0}),Fn.prototype=Object.create(Yt.prototype),Fn.prototype.constructor=Fn,Fn.prototype.isPointsMaterial=!0,Fn.prototype.copy=function(t){return Yt.prototype.copy.call(this,t),this.color.copy(t.color),this.map=t.map,this.size=t.size,this.sizeAttenuation=t.sizeAttenuation,this.morphTargets=t.morphTargets,this},oa.prototype=Object.assign(Object.create(N.prototype),{constructor:oa,isPoints:!0,raycast:function(){var t=new c,e=new Oi,i=new D;return function(n,s){function l(rt,xt){var gt=e.distanceSqToPoint(rt);gt<C&&(e.closestPointToPoint(rt,P),P.applyMatrix4(v),rt=n.ray.origin.distanceTo(P),rt<n.near||rt>n.far||s.push({distance:rt,distanceToRay:Math.sqrt(gt),point:P.clone(),index:xt,face:null,object:f}))}var f=this,p=this.geometry,v=this.matrixWorld,w=n.params.Points.threshold;if(p.boundingSphere===null&&p.computeBoundingSphere(),i.copy(p.boundingSphere),i.applyMatrix4(v),i.radius+=w,n.ray.intersectsSphere(i)!==!1){t.getInverse(v),e.copy(n.ray).applyMatrix4(t),w/=(this.scale.x+this.scale.y+this.scale.z)/3;var C=w*w;w=new u;var P=new u;if(p.isBufferGeometry){var B=p.index;if(p=p.attributes.position.array,B!==null){var H=B.array;B=0;for(var q=H.length;B<q;B++){var K=H[B];w.fromArray(p,3*K),l(w,K)}}else for(B=0,H=p.length/3;B<H;B++)w.fromArray(p,3*B),l(w,B)}else for(w=p.vertices,B=0,H=w.length;B<H;B++)l(w[B],B)}}}(),clone:function(){return new this.constructor(this.geometry,this.material).copy(this)}}),Rh.prototype=Object.assign(Object.create(_.prototype),{constructor:Rh,isVideoTexture:!0,update:function(){var t=this.image;t.readyState>=t.HAVE_CURRENT_DATA&&(this.needsUpdate=!0)}}),qs.prototype=Object.create(_.prototype),qs.prototype.constructor=qs,qs.prototype.isCompressedTexture=!0,Za.prototype=Object.create(_.prototype),Za.prototype.constructor=Za,Za.prototype.isCanvasTexture=!0,Ja.prototype=Object.create(_.prototype),Ja.prototype.constructor=Ja,Ja.prototype.isDepthTexture=!0,aa.prototype=Object.create(Ft.prototype),aa.prototype.constructor=aa,$a.prototype=Object.create(j.prototype),$a.prototype.constructor=$a,la.prototype=Object.create(Ft.prototype),la.prototype.constructor=la,Xi.prototype=Object.create(j.prototype),Xi.prototype.constructor=Xi,xi.prototype=Object.create(Ft.prototype),xi.prototype.constructor=xi,Ka.prototype=Object.create(j.prototype),Ka.prototype.constructor=Ka,ha.prototype=Object.create(xi.prototype),ha.prototype.constructor=ha,Qa.prototype=Object.create(j.prototype),Qa.prototype.constructor=Qa,_o.prototype=Object.create(xi.prototype),_o.prototype.constructor=_o,tl.prototype=Object.create(j.prototype),tl.prototype.constructor=tl,ua.prototype=Object.create(xi.prototype),ua.prototype.constructor=ua,ca.prototype=Object.create(j.prototype),ca.prototype.constructor=ca,fa.prototype=Object.create(xi.prototype),fa.prototype.constructor=fa,gn.prototype=Object.create(j.prototype),gn.prototype.constructor=gn,Ys.prototype=Object.create(Ft.prototype),Ys.prototype.constructor=Ys,Zr.prototype=Object.create(j.prototype),Zr.prototype.constructor=Zr,yo.prototype=Object.create(Ft.prototype),yo.prototype.constructor=yo,xo.prototype=Object.create(j.prototype),xo.prototype.constructor=xo,Un.prototype=Object.create(Ft.prototype),Un.prototype.constructor=Un;var Du={triangulate:function(t,e,i){i=i||2;var n=e&&e.length,s=n?e[0]*i:t.length,l=Oh(t,0,s,i,!0),f=[];if(!l)return f;var p;if(n){var v=i;n=[];var w,C=0;for(w=e.length;C<w;C++){var P=e[C]*v,B=C<w-1?e[C+1]*v:t.length;P=Oh(t,P,B,v,!1),P===P.next&&(P.steiner=!0),n.push(_r(P))}for(n.sort(xu),C=0;C<n.length;C++)e=n[C],v=l,(v=wu(e,v))&&(e=el(v,e),pa(e,e.next)),l=pa(l,l.next)}if(t.length>80*i){var H=p=t[0],q=n=t[1];for(v=i;v<s;v+=i)C=t[v],e=t[v+1],C<H&&(H=C),e<q&&(q=e),C>p&&(p=C),e>n&&(n=e);p=Math.max(p-H,n-q),p=p!==0?1/p:0}return da(l,f,i,H,q,p),f}},ws={area:function(t){for(var e=t.length,i=0,n=e-1,s=0;s<e;n=s++)i+=t[n].x*t[s].y-t[s].x*t[n].y;return .5*i},isClockWise:function(t){return 0>ws.area(t)},triangulateShape:function(t,e){var i=[],n=[],s=[];ql(t),Tu(i,t);var l=t.length;for(e.forEach(ql),t=0;t<e.length;t++)n.push(l),l+=e[t].length,Tu(i,e[t]);for(e=Du.triangulate(i,n),t=0;t<e.length;t+=3)s.push(e.slice(t,t+3));return s}};Cs.prototype=Object.create(j.prototype),Cs.prototype.constructor=Cs,Cs.prototype.toJSON=function(){var t=j.prototype.toJSON.call(this);return Mu(this.parameters.shapes,this.parameters.options,t)},ps.prototype=Object.create(Ft.prototype),ps.prototype.constructor=ps,ps.prototype.toJSON=function(){var t=Ft.prototype.toJSON.call(this);return Mu(this.parameters.shapes,this.parameters.options,t)};var xl={generateTopUV:function(t,e,i,n,s){t=e[3*n],n=e[3*n+1];var l=e[3*s];return s=e[3*s+1],[new o(e[3*i],e[3*i+1]),new o(t,n),new o(l,s)]},generateSideWallUV:function(t,e,i,n,s,l){t=e[3*i];var f=e[3*i+1];i=e[3*i+2];var p=e[3*n],v=e[3*n+1];n=e[3*n+2];var w=e[3*s],C=e[3*s+1];s=e[3*s+2];var P=e[3*l],B=e[3*l+1];return e=e[3*l+2],.01>Math.abs(f-v)?[new o(t,1-i),new o(p,1-n),new o(w,1-s),new o(P,1-e)]:[new o(f,1-i),new o(v,1-n),new o(C,1-s),new o(B,1-e)]}};il.prototype=Object.create(j.prototype),il.prototype.constructor=il,To.prototype=Object.create(ps.prototype),To.prototype.constructor=To,Zs.prototype=Object.create(j.prototype),Zs.prototype.constructor=Zs,Or.prototype=Object.create(Ft.prototype),Or.prototype.constructor=Or,nl.prototype=Object.create(j.prototype),nl.prototype.constructor=nl,Mo.prototype=Object.create(Ft.prototype),Mo.prototype.constructor=Mo,ma.prototype=Object.create(j.prototype),ma.prototype.constructor=ma,Js.prototype=Object.create(Ft.prototype),Js.prototype.constructor=Js,Ps.prototype=Object.create(j.prototype),Ps.prototype.constructor=Ps,Ps.prototype.toJSON=function(){var t=j.prototype.toJSON.call(this);return Su(this.parameters.shapes,t)},$s.prototype=Object.create(Ft.prototype),$s.prototype.constructor=$s,$s.prototype.toJSON=function(){var t=Ft.prototype.toJSON.call(this);return Su(this.parameters.shapes,t)},Ks.prototype=Object.create(Ft.prototype),Ks.prototype.constructor=Ks,Ls.prototype=Object.create(j.prototype),Ls.prototype.constructor=Ls,Rs.prototype=Object.create(Ft.prototype),Rs.prototype.constructor=Rs,ga.prototype=Object.create(Ls.prototype),ga.prototype.constructor=ga,Gn.prototype=Object.create(Rs.prototype),Gn.prototype.constructor=Gn,So.prototype=Object.create(j.prototype),So.prototype.constructor=So,ds.prototype=Object.create(Ft.prototype),ds.prototype.constructor=ds;var _n=Object.freeze({WireframeGeometry:aa,ParametricGeometry:$a,ParametricBufferGeometry:la,TetrahedronGeometry:Ka,TetrahedronBufferGeometry:ha,OctahedronGeometry:Qa,OctahedronBufferGeometry:_o,IcosahedronGeometry:tl,IcosahedronBufferGeometry:ua,DodecahedronGeometry:ca,DodecahedronBufferGeometry:fa,PolyhedronGeometry:Xi,PolyhedronBufferGeometry:xi,TubeGeometry:gn,TubeBufferGeometry:Ys,TorusKnotGeometry:Zr,TorusKnotBufferGeometry:yo,TorusGeometry:xo,TorusBufferGeometry:Un,TextGeometry:il,TextBufferGeometry:To,SphereGeometry:Zs,SphereBufferGeometry:Or,RingGeometry:nl,RingBufferGeometry:Mo,PlaneGeometry:ke,PlaneBufferGeometry:ce,LatheGeometry:ma,LatheBufferGeometry:Js,ShapeGeometry:Ps,ShapeBufferGeometry:$s,ExtrudeGeometry:Cs,ExtrudeBufferGeometry:ps,EdgesGeometry:Ks,ConeGeometry:ga,ConeBufferGeometry:Gn,CylinderGeometry:Ls,CylinderBufferGeometry:Rs,CircleGeometry:So,CircleBufferGeometry:ds,BoxGeometry:Ot,BoxBufferGeometry:Bt});Qs.prototype=Object.create(Yt.prototype),Qs.prototype.constructor=Qs,Qs.prototype.isShadowMaterial=!0,Qs.prototype.copy=function(t){return Yt.prototype.copy.call(this,t),this.color.copy(t.color),this},Eo.prototype=Object.create($e.prototype),Eo.prototype.constructor=Eo,Eo.prototype.isRawShaderMaterial=!0,ms.prototype=Object.create(Yt.prototype),ms.prototype.constructor=ms,ms.prototype.isMeshStandardMaterial=!0,ms.prototype.copy=function(t){return Yt.prototype.copy.call(this,t),this.defines={STANDARD:""},this.color.copy(t.color),this.roughness=t.roughness,this.metalness=t.metalness,this.map=t.map,this.lightMap=t.lightMap,this.lightMapIntensity=t.lightMapIntensity,this.aoMap=t.aoMap,this.aoMapIntensity=t.aoMapIntensity,this.emissive.copy(t.emissive),this.emissiveMap=t.emissiveMap,this.emissiveIntensity=t.emissiveIntensity,this.bumpMap=t.bumpMap,this.bumpScale=t.bumpScale,this.normalMap=t.normalMap,this.normalMapType=t.normalMapType,this.normalScale.copy(t.normalScale),this.displacementMap=t.displacementMap,this.displacementScale=t.displacementScale,this.displacementBias=t.displacementBias,this.roughnessMap=t.roughnessMap,this.metalnessMap=t.metalnessMap,this.alphaMap=t.alphaMap,this.envMap=t.envMap,this.envMapIntensity=t.envMapIntensity,this.refractionRatio=t.refractionRatio,this.wireframe=t.wireframe,this.wireframeLinewidth=t.wireframeLinewidth,this.wireframeLinecap=t.wireframeLinecap,this.wireframeLinejoin=t.wireframeLinejoin,this.skinning=t.skinning,this.morphTargets=t.morphTargets,this.morphNormals=t.morphNormals,this},bo.prototype=Object.create(ms.prototype),bo.prototype.constructor=bo,bo.prototype.isMeshPhysicalMaterial=!0,bo.prototype.copy=function(t){return ms.prototype.copy.call(this,t),this.defines={PHYSICAL:""},this.reflectivity=t.reflectivity,this.clearCoat=t.clearCoat,this.clearCoatRoughness=t.clearCoatRoughness,this},Jr.prototype=Object.create(Yt.prototype),Jr.prototype.constructor=Jr,Jr.prototype.isMeshPhongMaterial=!0,Jr.prototype.copy=function(t){return Yt.prototype.copy.call(this,t),this.color.copy(t.color),this.specular.copy(t.specular),this.shininess=t.shininess,this.map=t.map,this.lightMap=t.lightMap,this.lightMapIntensity=t.lightMapIntensity,this.aoMap=t.aoMap,this.aoMapIntensity=t.aoMapIntensity,this.emissive.copy(t.emissive),this.emissiveMap=t.emissiveMap,this.emissiveIntensity=t.emissiveIntensity,this.bumpMap=t.bumpMap,this.bumpScale=t.bumpScale,this.normalMap=t.normalMap,this.normalMapType=t.normalMapType,this.normalScale.copy(t.normalScale),this.displacementMap=t.displacementMap,this.displacementScale=t.displacementScale,this.displacementBias=t.displacementBias,this.specularMap=t.specularMap,this.alphaMap=t.alphaMap,this.envMap=t.envMap,this.combine=t.combine,this.reflectivity=t.reflectivity,this.refractionRatio=t.refractionRatio,this.wireframe=t.wireframe,this.wireframeLinewidth=t.wireframeLinewidth,this.wireframeLinecap=t.wireframeLinecap,this.wireframeLinejoin=t.wireframeLinejoin,this.skinning=t.skinning,this.morphTargets=t.morphTargets,this.morphNormals=t.morphNormals,this},Ao.prototype=Object.create(Jr.prototype),Ao.prototype.constructor=Ao,Ao.prototype.isMeshToonMaterial=!0,Ao.prototype.copy=function(t){return Jr.prototype.copy.call(this,t),this.gradientMap=t.gradientMap,this},Co.prototype=Object.create(Yt.prototype),Co.prototype.constructor=Co,Co.prototype.isMeshNormalMaterial=!0,Co.prototype.copy=function(t){return Yt.prototype.copy.call(this,t),this.bumpMap=t.bumpMap,this.bumpScale=t.bumpScale,this.normalMap=t.normalMap,this.normalMapType=t.normalMapType,this.normalScale.copy(t.normalScale),this.displacementMap=t.displacementMap,this.displacementScale=t.displacementScale,this.displacementBias=t.displacementBias,this.wireframe=t.wireframe,this.wireframeLinewidth=t.wireframeLinewidth,this.skinning=t.skinning,this.morphTargets=t.morphTargets,this.morphNormals=t.morphNormals,this},Ir.prototype=Object.create(Yt.prototype),Ir.prototype.constructor=Ir,Ir.prototype.isMeshLambertMaterial=!0,Ir.prototype.copy=function(t){return Yt.prototype.copy.call(this,t),this.color.copy(t.color),this.map=t.map,this.lightMap=t.lightMap,this.lightMapIntensity=t.lightMapIntensity,this.aoMap=t.aoMap,this.aoMapIntensity=t.aoMapIntensity,this.emissive.copy(t.emissive),this.emissiveMap=t.emissiveMap,this.emissiveIntensity=t.emissiveIntensity,this.specularMap=t.specularMap,this.alphaMap=t.alphaMap,this.envMap=t.envMap,this.combine=t.combine,this.reflectivity=t.reflectivity,this.refractionRatio=t.refractionRatio,this.wireframe=t.wireframe,this.wireframeLinewidth=t.wireframeLinewidth,this.wireframeLinecap=t.wireframeLinecap,this.wireframeLinejoin=t.wireframeLinejoin,this.skinning=t.skinning,this.morphTargets=t.morphTargets,this.morphNormals=t.morphNormals,this},Po.prototype=Object.create(Yt.prototype),Po.prototype.constructor=Po,Po.prototype.isMeshMatcapMaterial=!0,Po.prototype.copy=function(t){return Yt.prototype.copy.call(this,t),this.defines={MATCAP:""},this.color.copy(t.color),this.matcap=t.matcap,this.map=t.map,this.bumpMap=t.bumpMap,this.bumpScale=t.bumpScale,this.normalMap=t.normalMap,this.normalMapType=t.normalMapType,this.normalScale.copy(t.normalScale),this.displacementMap=t.displacementMap,this.displacementScale=t.displacementScale,this.displacementBias=t.displacementBias,this.alphaMap=t.alphaMap,this.skinning=t.skinning,this.morphTargets=t.morphTargets,this.morphNormals=t.morphNormals,this},Lo.prototype=Object.create(Bi.prototype),Lo.prototype.constructor=Lo,Lo.prototype.isLineDashedMaterial=!0,Lo.prototype.copy=function(t){return Bi.prototype.copy.call(this,t),this.scale=t.scale,this.dashSize=t.dashSize,this.gapSize=t.gapSize,this};var zu=Object.freeze({ShadowMaterial:Qs,SpriteMaterial:Hi,RawShaderMaterial:Eo,ShaderMaterial:$e,PointsMaterial:Fn,MeshPhysicalMaterial:bo,MeshStandardMaterial:ms,MeshPhongMaterial:Jr,MeshToonMaterial:Ao,MeshNormalMaterial:Co,MeshLambertMaterial:Ir,MeshDepthMaterial:oe,MeshDistanceMaterial:te,MeshBasicMaterial:Ge,MeshMatcapMaterial:Po,LineDashedMaterial:Lo,LineBasicMaterial:Bi,Material:Yt}),Yn={arraySlice:function(t,e,i){return Yn.isTypedArray(t)?new t.constructor(t.subarray(e,i!==void 0?i:t.length)):t.slice(e,i)},convertArray:function(t,e,i){return!t||!i&&t.constructor===e?t:typeof e.BYTES_PER_ELEMENT=="number"?new e(t):Array.prototype.slice.call(t)},isTypedArray:function(t){return ArrayBuffer.isView(t)&&!(t instanceof DataView)},getKeyframeOrder:function(t){for(var e=t.length,i=Array(e),n=0;n!==e;++n)i[n]=n;return i.sort(function(s,l){return t[s]-t[l]}),i},sortedArray:function(t,e,i){for(var n=t.length,s=new t.constructor(n),l=0,f=0;f!==n;++l)for(var p=i[l]*e,v=0;v!==e;++v)s[f++]=t[p+v];return s},flattenJSON:function(t,e,i,n){for(var s=1,l=t[0];l!==void 0&&l[n]===void 0;)l=t[s++];if(l!==void 0){var f=l[n];if(f!==void 0)if(Array.isArray(f))do f=l[n],f!==void 0&&(e.push(l.time),i.push.apply(i,f)),l=t[s++];while(l!==void 0);else if(f.toArray!==void 0)do f=l[n],f!==void 0&&(e.push(l.time),f.toArray(i,i.length)),l=t[s++];while(l!==void 0);else do f=l[n],f!==void 0&&(e.push(l.time),i.push(f)),l=t[s++];while(l!==void 0)}}};Object.assign($n.prototype,{evaluate:function(t){var e=this.parameterPositions,i=this._cachedIndex,n=e[i],s=e[i-1];t:{e:{i:{n:if(!(t<n)){for(var l=i+2;;){if(n===void 0){if(t<s)break n;return this._cachedIndex=i=e.length,this.afterEnd_(i-1,t,s)}if(i===l)break;if(s=n,n=e[++i],t<n)break e}n=e.length;break i}if(t>=s)break t;for(l=e[1],t<l&&(i=2,s=l),l=i-2;;){if(s===void 0)return this._cachedIndex=0,this.beforeStart_(0,t,n);if(i===l)break;if(n=s,s=e[--i-1],t>=s)break e}n=i,i=0}for(;i<n;)s=i+n>>>1,t<e[s]?n=s:i=s+1;if(n=e[i],s=e[i-1],s===void 0)return this._cachedIndex=0,this.beforeStart_(0,t,n);if(n===void 0)return this._cachedIndex=i=e.length,this.afterEnd_(i-1,s,t)}this._cachedIndex=i,this.intervalChanged_(i,s,n)}return this.interpolate_(i,s,t,n)},settings:null,DefaultSettings_:{},getSettings_:function(){return this.settings||this.DefaultSettings_},copySampleValue_:function(t){var e=this.resultBuffer,i=this.sampleValues,n=this.valueSize;t*=n;for(var s=0;s!==n;++s)e[s]=i[t+s];return e},interpolate_:function(){throw Error("call to abstract method")},intervalChanged_:function(){}}),Object.assign($n.prototype,{beforeStart_:$n.prototype.copySampleValue_,afterEnd_:$n.prototype.copySampleValue_}),rl.prototype=Object.assign(Object.create($n.prototype),{constructor:rl,DefaultSettings_:{endingStart:2400,endingEnd:2400},intervalChanged_:function(t,e,i){var n=this.parameterPositions,s=t-2,l=t+1,f=n[s],p=n[l];if(f===void 0)switch(this.getSettings_().endingStart){case 2401:s=t,f=2*e-i;break;case 2402:s=n.length-2,f=e+n[s]-n[s+1];break;default:s=t,f=i}if(p===void 0)switch(this.getSettings_().endingEnd){case 2401:l=t,p=2*i-e;break;case 2402:l=1,p=i+n[1]-n[0];break;default:l=t-1,p=e}t=.5*(i-e),n=this.valueSize,this._weightPrev=t/(e-f),this._weightNext=t/(p-i),this._offsetPrev=s*n,this._offsetNext=l*n},interpolate_:function(t,e,i,n){var s=this.resultBuffer,l=this.sampleValues,f=this.valueSize;t*=f;var p=t-f,v=this._offsetPrev,w=this._offsetNext,C=this._weightPrev,P=this._weightNext,B=(i-e)/(n-e);for(i=B*B,n=i*B,e=-C*n+2*C*i-C*B,C=(1+C)*n+(-1.5-2*C)*i+(-.5+C)*B+1,B=(-1-P)*n+(1.5+P)*i+.5*B,P=P*n-P*i,i=0;i!==f;++i)s[i]=e*l[v+i]+C*l[p+i]+B*l[t+i]+P*l[w+i];return s}}),Dr.prototype=Object.assign(Object.create($n.prototype),{constructor:Dr,interpolate_:function(t,e,i,n){var s=this.resultBuffer,l=this.sampleValues,f=this.valueSize;t*=f;var p=t-f;for(e=(i-e)/(n-e),i=1-e,n=0;n!==f;++n)s[n]=l[p+n]*i+l[t+n]*e;return s}}),Ro.prototype=Object.assign(Object.create($n.prototype),{constructor:Ro,interpolate_:function(t){return this.copySampleValue_(t-1)}}),Object.assign(Hn,{toJSON:function(t){var e=t.constructor;if(e.toJSON!==void 0)e=e.toJSON(t);else{e={name:t.name,times:Yn.convertArray(t.times,Array),values:Yn.convertArray(t.values,Array)};var i=t.getInterpolation();i!==t.DefaultInterpolation&&(e.interpolation=i)}return e.type=t.ValueTypeName,e}}),Object.assign(Hn.prototype,{constructor:Hn,TimeBufferType:Float32Array,ValueBufferType:Float32Array,DefaultInterpolation:2301,InterpolantFactoryMethodDiscrete:function(t){return new Ro(this.times,this.values,this.getValueSize(),t)},InterpolantFactoryMethodLinear:function(t){return new Dr(this.times,this.values,this.getValueSize(),t)},InterpolantFactoryMethodSmooth:function(t){return new rl(this.times,this.values,this.getValueSize(),t)},setInterpolation:function(t){switch(t){case 2300:var e=this.InterpolantFactoryMethodDiscrete;break;case 2301:e=this.InterpolantFactoryMethodLinear;break;case 2302:e=this.InterpolantFactoryMethodSmooth}if(e===void 0){if(e="unsupported interpolation for "+this.ValueTypeName+" keyframe track named "+this.name,this.createInterpolant===void 0)if(t!==this.DefaultInterpolation)this.setInterpolation(this.DefaultInterpolation);else throw Error(e);return console.warn("THREE.KeyframeTrack:",e),this}return this.createInterpolant=e,this},getInterpolation:function(){switch(this.createInterpolant){case this.InterpolantFactoryMethodDiscrete:return 2300;case this.InterpolantFactoryMethodLinear:return 2301;case this.InterpolantFactoryMethodSmooth:return 2302}},getValueSize:function(){return this.values.length/this.times.length},shift:function(t){if(t!==0)for(var e=this.times,i=0,n=e.length;i!==n;++i)e[i]+=t;return this},scale:function(t){if(t!==1)for(var e=this.times,i=0,n=e.length;i!==n;++i)e[i]*=t;return this},trim:function(t,e){for(var i=this.times,n=i.length,s=0,l=n-1;s!==n&&i[s]<t;)++s;for(;l!==-1&&i[l]>e;)--l;return++l,(s!==0||l!==n)&&(s>=l&&(l=Math.max(l,1),s=l-1),t=this.getValueSize(),this.times=Yn.arraySlice(i,s,l),this.values=Yn.arraySlice(this.values,s*t,l*t)),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 i=this.times;e=this.values;var n=i.length;n===0&&(console.error("THREE.KeyframeTrack: Track is empty.",this),t=!1);for(var s=null,l=0;l!==n;l++){var f=i[l];if(typeof f=="number"&&isNaN(f)){console.error("THREE.KeyframeTrack: Time is not a valid number.",this,l,f),t=!1;break}if(s!==null&&s>f){console.error("THREE.KeyframeTrack: Out of order keys.",this,l,f,s),t=!1;break}s=f}if(e!==void 0&&Yn.isTypedArray(e)){for(l=0,i=e.length;l!==i;++l)if(n=e[l],isNaN(n)){console.error("THREE.KeyframeTrack: Value is not a valid number.",this,l,n),t=!1;break}}return t},optimize:function(){for(var t=this.times,e=this.values,i=this.getValueSize(),n=this.getInterpolation()===2302,s=1,l=t.length-1,f=1;f<l;++f){var p=!1,v=t[f];if(v!==t[f+1]&&(f!==1||v!==v[0]))if(n)p=!0;else{var w=f*i,C=w-i,P=w+i;for(v=0;v!==i;++v){var B=e[w+v];if(B!==e[C+v]||B!==e[P+v]){p=!0;break}}}if(p){if(f!==s)for(t[s]=t[f],p=f*i,w=s*i,v=0;v!==i;++v)e[w+v]=e[p+v];++s}}if(0<l){for(t[s]=t[l],p=l*i,w=s*i,v=0;v!==i;++v)e[w+v]=e[p+v];++s}return s!==t.length&&(this.times=Yn.arraySlice(t,0,s),this.values=Yn.arraySlice(e,0,s*i)),this}}),Yl.prototype=Object.assign(Object.create(Hn.prototype),{constructor:Yl,ValueTypeName:"bool",ValueBufferType:Array,DefaultInterpolation:2300,InterpolantFactoryMethodLinear:void 0,InterpolantFactoryMethodSmooth:void 0}),Zl.prototype=Object.assign(Object.create(Hn.prototype),{constructor:Zl,ValueTypeName:"color"}),$r.prototype=Object.assign(Object.create(Hn.prototype),{constructor:$r,ValueTypeName:"number"}),ar.prototype=Object.assign(Object.create($n.prototype),{constructor:ar,interpolate_:function(t,e,i,n){var s=this.resultBuffer,l=this.sampleValues,f=this.valueSize;for(t*=f,e=(i-e)/(n-e),i=t+f;t!==i;t+=4)d.slerpFlat(s,0,l,t-f,l,t,e);return s}}),va.prototype=Object.assign(Object.create(Hn.prototype),{constructor:va,ValueTypeName:"quaternion",DefaultInterpolation:2301,InterpolantFactoryMethodLinear:function(t){return new ar(this.times,this.values,this.getValueSize(),t)},InterpolantFactoryMethodSmooth:void 0}),Jl.prototype=Object.assign(Object.create(Hn.prototype),{constructor:Jl,ValueTypeName:"string",ValueBufferType:Array,DefaultInterpolation:2300,InterpolantFactoryMethodLinear:void 0,InterpolantFactoryMethodSmooth:void 0}),_a.prototype=Object.assign(Object.create(Hn.prototype),{constructor:_a,ValueTypeName:"vector"}),Object.assign(yr,{parse:function(t){for(var e=[],i=t.tracks,n=1/(t.fps||1),s=0,l=i.length;s!==l;++s)e.push(Hc(i[s]).scale(n));return new yr(t.name,t.duration,e)},toJSON:function(t){var e=[],i=t.tracks;t={name:t.name,duration:t.duration,tracks:e,uuid:t.uuid};for(var n=0,s=i.length;n!==s;++n)e.push(Hn.toJSON(i[n]));return t},CreateFromMorphTargetSequence:function(t,e,i,n){for(var s=e.length,l=[],f=0;f<s;f++){var p=[],v=[];p.push((f+s-1)%s,f,(f+1)%s),v.push(0,1,0);var w=Yn.getKeyframeOrder(p);p=Yn.sortedArray(p,1,w),v=Yn.sortedArray(v,1,w),n||p[0]!==0||(p.push(s),v.push(v[0])),l.push(new $r(".morphTargetInfluences["+e[f].name+"]",p,v).scale(1/i))}return new yr(t,-1,l)},findByName:function(t,e){var i=t;for(Array.isArray(t)||(i=t.geometry&&t.geometry.animations||t.animations),t=0;t<i.length;t++)if(i[t].name===e)return i[t];return null},CreateClipsFromMorphTargetSequences:function(t,e,i){for(var n={},s=/^([\w-]*?)([\d]+)$/,l=0,f=t.length;l<f;l++){var p=t[l],v=p.name.match(s);if(v&&1<v.length){var w=v[1];(v=n[w])||(n[w]=v=[]),v.push(p)}}t=[];for(w in n)t.push(yr.CreateFromMorphTargetSequence(w,n[w],e,i));return t},parseAnimation:function(t,e){if(!t)return console.error("THREE.AnimationClip: No animation in JSONLoader data."),null;var i=function(K,rt,xt,gt,At){if(xt.length!==0){var wt=[],Vt=[];Yn.flattenJSON(xt,wt,Vt,gt),wt.length!==0&&At.push(new K(rt,wt,Vt))}},n=[],s=t.name||"default",l=t.length||-1,f=t.fps||30;t=t.hierarchy||[];for(var p=0;p<t.length;p++){var v=t[p].keys;if(v&&v.length!==0)if(v[0].morphTargets){l={};for(var w=0;w<v.length;w++)if(v[w].morphTargets)for(var C=0;C<v[w].morphTargets.length;C++)l[v[w].morphTargets[C]]=-1;for(var P in l){var B=[],H=[];for(C=0;C!==v[w].morphTargets.length;++C){var q=v[w];B.push(q.time),H.push(q.morphTarget===P?1:0)}n.push(new $r(".morphTargetInfluence["+P+"]",B,H))}l=l.length*(f||1)}else w=".bones["+e[p].name+"]",i(_a,w+".position",v,"pos",n),i(va,w+".quaternion",v,"rot",n),i(_a,w+".scale",v,"scl",n)}return n.length===0?null:new yr(s,l,n)}}),Object.assign(yr.prototype,{resetDuration:function(){for(var t=0,e=0,i=this.tracks.length;e!==i;++e){var n=this.tracks[e];t=Math.max(t,n.times[n.times.length-1])}return this.duration=t,this},trim:function(){for(var t=0;t<this.tracks.length;t++)this.tracks[t].trim(0,this.duration);return this},validate:function(){for(var t=!0,e=0;e<this.tracks.length;e++)t=t&&this.tracks[e].validate();return t},optimize:function(){for(var t=0;t<this.tracks.length;t++)this.tracks[t].optimize();return this}});var Ts={enabled:!1,files:{},add:function(t,e){this.enabled!==!1&&(this.files[t]=e)},get:function(t){if(this.enabled!==!1)return this.files[t]},remove:function(t){delete this.files[t]},clear:function(){this.files={}}},tr=new to,Br={};Object.assign(Lt.prototype,{load:function(t,e,i,n){t===void 0&&(t=""),this.path!==void 0&&(t=this.path+t),t=this.manager.resolveURL(t);var s=this,l=Ts.get(t);if(l!==void 0)return s.manager.itemStart(t),setTimeout(function(){e&&e(l),s.manager.itemEnd(t)},0),l;if(Br[t]!==void 0)Br[t].push({onLoad:e,onProgress:i,onError:n});else{var f=t.match(/^data:(.*?)(;base64)?,(.*)$/);if(f){i=f[1];var p=!!f[2];f=f[3],f=decodeURIComponent(f),p&&(f=atob(f));try{var v=(this.responseType||"").toLowerCase();switch(v){case"arraybuffer":case"blob":var w=new Uint8Array(f.length);for(p=0;p<f.length;p++)w[p]=f.charCodeAt(p);var C=v==="blob"?new Blob([w.buffer],{type:i}):w.buffer;break;case"document":C=new DOMParser().parseFromString(f,i);break;case"json":C=JSON.parse(f);break;default:C=f}setTimeout(function(){e&&e(C),s.manager.itemEnd(t)},0)}catch(B){setTimeout(function(){n&&n(B),s.manager.itemError(t),s.manager.itemEnd(t)},0)}}else{Br[t]=[],Br[t].push({onLoad:e,onProgress:i,onError:n});var P=new XMLHttpRequest;P.open("GET",t,!0),P.addEventListener("load",function(B){var H=this.response;Ts.add(t,H);var q=Br[t];if(delete Br[t],this.status===200||this.status===0){this.status===0&&console.warn("THREE.FileLoader: HTTP Status 0 received.");for(var K=0,rt=q.length;K<rt;K++){var xt=q[K];xt.onLoad&&xt.onLoad(H)}}else{for(K=0,rt=q.length;K<rt;K++)xt=q[K],xt.onError&&xt.onError(B);s.manager.itemError(t)}s.manager.itemEnd(t)},!1),P.addEventListener("progress",function(B){for(var H=Br[t],q=0,K=H.length;q<K;q++){var rt=H[q];rt.onProgress&&rt.onProgress(B)}},!1),P.addEventListener("error",function(B){var H=Br[t];delete Br[t];for(var q=0,K=H.length;q<K;q++){var rt=H[q];rt.onError&&rt.onError(B)}s.manager.itemError(t),s.manager.itemEnd(t)},!1),P.addEventListener("abort",function(B){var H=Br[t];delete Br[t];for(var q=0,K=H.length;q<K;q++){var rt=H[q];rt.onError&&rt.onError(B)}s.manager.itemError(t),s.manager.itemEnd(t)},!1),this.responseType!==void 0&&(P.responseType=this.responseType),this.withCredentials!==void 0&&(P.withCredentials=this.withCredentials),P.overrideMimeType&&P.overrideMimeType(this.mimeType!==void 0?this.mimeType:"text/plain");for(p in this.requestHeader)P.setRequestHeader(p,this.requestHeader[p]);P.send(null)}return s.manager.itemStart(t),P}},setPath:function(t){return this.path=t,this},setResponseType:function(t){return this.responseType=t,this},setWithCredentials:function(t){return this.withCredentials=t,this},setMimeType:function(t){return this.mimeType=t,this},setRequestHeader:function(t){return this.requestHeader=t,this}}),Object.assign(Qt.prototype,{load:function(t,e,i,n){var s=this,l=new Lt(s.manager);l.setPath(s.path),l.load(t,function(f){e(s.parse(JSON.parse(f)))},i,n)},parse:function(t,e){for(var i=[],n=0;n<t.length;n++){var s=yr.parse(t[n]);i.push(s)}e(i)},setPath:function(t){return this.path=t,this}}),Object.assign(Zt.prototype,{load:function(t,e,i,n){function s(B){v.load(t[B],function(H){H=l._parser(H,!0),f[B]={width:H.width,height:H.height,format:H.format,mipmaps:H.mipmaps},w+=1,w===6&&(H.mipmapCount===1&&(p.minFilter=1006),p.format=H.format,p.needsUpdate=!0,e&&e(p))},i,n)}var l=this,f=[],p=new qs;p.image=f;var v=new Lt(this.manager);if(v.setPath(this.path),v.setResponseType("arraybuffer"),Array.isArray(t))for(var w=0,C=0,P=t.length;C<P;++C)s(C);else v.load(t,function(B){if(B=l._parser(B,!0),B.isCubemap)for(var H=B.mipmaps.length/B.mipmapCount,q=0;q<H;q++){f[q]={mipmaps:[]};for(var K=0;K<B.mipmapCount;K++)f[q].mipmaps.push(B.mipmaps[q*B.mipmapCount+K]),f[q].format=B.format,f[q].width=B.width,f[q].height=B.height}else p.image.width=B.width,p.image.height=B.height,p.mipmaps=B.mipmaps;B.mipmapCount===1&&(p.minFilter=1006),p.format=B.format,p.needsUpdate=!0,e&&e(p)},i,n);return p},setPath:function(t){return this.path=t,this}}),Object.assign(Ue.prototype,{load:function(t,e,i,n){var s=this,l=new I,f=new Lt(this.manager);return f.setResponseType("arraybuffer"),f.setPath(this.path),f.load(t,function(p){(p=s._parser(p))&&(p.image!==void 0?l.image=p.image:p.data!==void 0&&(l.image.width=p.width,l.image.height=p.height,l.image.data=p.data),l.wrapS=p.wrapS!==void 0?p.wrapS:1001,l.wrapT=p.wrapT!==void 0?p.wrapT:1001,l.magFilter=p.magFilter!==void 0?p.magFilter:1006,l.minFilter=p.minFilter!==void 0?p.minFilter:1008,l.anisotropy=p.anisotropy!==void 0?p.anisotropy:1,p.format!==void 0&&(l.format=p.format),p.type!==void 0&&(l.type=p.type),p.mipmaps!==void 0&&(l.mipmaps=p.mipmaps),p.mipmapCount===1&&(l.minFilter=1006),l.needsUpdate=!0,e&&e(l,p))},i,n),l},setPath:function(t){return this.path=t,this}}),Object.assign(ai.prototype,{crossOrigin:"anonymous",load:function(t,e,i,n){function s(){v.removeEventListener("load",s,!1),v.removeEventListener("error",l,!1),Ts.add(t,this),e&&e(this),f.manager.itemEnd(t)}function l(w){v.removeEventListener("load",s,!1),v.removeEventListener("error",l,!1),n&&n(w),f.manager.itemError(t),f.manager.itemEnd(t)}t===void 0&&(t=""),this.path!==void 0&&(t=this.path+t),t=this.manager.resolveURL(t);var f=this,p=Ts.get(t);if(p!==void 0)return f.manager.itemStart(t),setTimeout(function(){e&&e(p),f.manager.itemEnd(t)},0),p;var v=document.createElementNS("http://www.w3.org/1999/xhtml","img");return v.addEventListener("load",s,!1),v.addEventListener("error",l,!1),t.substr(0,5)!=="data:"&&this.crossOrigin!==void 0&&(v.crossOrigin=this.crossOrigin),f.manager.itemStart(t),v.src=t,v},setCrossOrigin:function(t){return this.crossOrigin=t,this},setPath:function(t){return this.path=t,this}}),Object.assign(Ni.prototype,{crossOrigin:"anonymous",load:function(t,e,i,n){function s(v){f.load(t[v],function(w){l.images[v]=w,p++,p===6&&(l.needsUpdate=!0,e&&e(l))},void 0,n)}var l=new z,f=new ai(this.manager);f.setCrossOrigin(this.crossOrigin),f.setPath(this.path);var p=0;for(i=0;i<t.length;++i)s(i);return l},setCrossOrigin:function(t){return this.crossOrigin=t,this},setPath:function(t){return this.path=t,this}}),Object.assign(fn.prototype,{crossOrigin:"anonymous",load:function(t,e,i,n){var s=new _,l=new ai(this.manager);return l.setCrossOrigin(this.crossOrigin),l.setPath(this.path),l.load(t,function(f){s.image=f,f=0<t.search(/\.jpe?g$/i)||t.search(/^data:image\/jpeg/)===0,s.format=f?1022:1023,s.needsUpdate=!0,e!==void 0&&e(s)},i,n),s},setCrossOrigin:function(t){return this.crossOrigin=t,this},setPath:function(t){return this.path=t,this}}),Object.assign(Ee.prototype,{getPoint:function(){return console.warn("THREE.Curve: .getPoint() not implemented."),null},getPointAt:function(t,e){return t=this.getUtoTmapping(t),this.getPoint(t,e)},getPoints:function(t){t===void 0&&(t=5);for(var e=[],i=0;i<=t;i++)e.push(this.getPoint(i/t));return e},getSpacedPoints:function(t){t===void 0&&(t=5);for(var e=[],i=0;i<=t;i++)e.push(this.getPointAt(i/t));return e},getLength:function(){var t=this.getLengths();return t[t.length-1]},getLengths:function(t){if(t===void 0&&(t=this.arcLengthDivisions),this.cacheArcLengths&&this.cacheArcLengths.length===t+1&&!this.needsUpdate)return this.cacheArcLengths;this.needsUpdate=!1;var e=[],i=this.getPoint(0),n,s=0;for(e.push(0),n=1;n<=t;n++){var l=this.getPoint(n/t);s+=l.distanceTo(i),e.push(s),i=l}return this.cacheArcLengths=e},updateArcLengths:function(){this.needsUpdate=!0,this.getLengths()},getUtoTmapping:function(t,e){var i=this.getLengths(),n=i.length;e=e||t*i[n-1];for(var s=0,l=n-1,f;s<=l;)if(t=Math.floor(s+(l-s)/2),f=i[t]-e,0>f)s=t+1;else if(0<f)l=t-1;else{l=t;break}return t=l,i[t]===e?t/(n-1):(s=i[t],(t+(e-s)/(i[t+1]-s))/(n-1))},getTangent:function(t){var e=t-1e-4;return t+=1e-4,0>e&&(e=0),1<t&&(t=1),e=this.getPoint(e),this.getPoint(t).clone().sub(e).normalize()},getTangentAt:function(t){return t=this.getUtoTmapping(t),this.getTangent(t)},computeFrenetFrames:function(t,e){var i=new u,n=[],s=[],l=[],f=new u,p=new c,v;for(v=0;v<=t;v++){var w=v/t;n[v]=this.getTangentAt(w),n[v].normalize()}s[0]=new u,l[0]=new u,v=Number.MAX_VALUE,w=Math.abs(n[0].x);var C=Math.abs(n[0].y),P=Math.abs(n[0].z);for(w<=v&&(v=w,i.set(1,0,0)),C<=v&&(v=C,i.set(0,1,0)),P<=v&&i.set(0,0,1),f.crossVectors(n[0],i).normalize(),s[0].crossVectors(n[0],f),l[0].crossVectors(n[0],s[0]),v=1;v<=t;v++)s[v]=s[v-1].clone(),l[v]=l[v-1].clone(),f.crossVectors(n[v-1],n[v]),f.length()>Number.EPSILON&&(f.normalize(),i=Math.acos(pi.clamp(n[v-1].dot(n[v]),-1,1)),s[v].applyMatrix4(p.makeRotationAxis(f,i))),l[v].crossVectors(n[v],s[v]);if(e===!0)for(i=Math.acos(pi.clamp(s[0].dot(s[t]),-1,1)),i/=t,0<n[0].dot(f.crossVectors(s[0],s[t]))&&(i=-i),v=1;v<=t;v++)s[v].applyMatrix4(p.makeRotationAxis(n[v],i*v)),l[v].crossVectors(n[v],s[v]);return{tangents:n,normals:s,binormals:l}},clone:function(){return new this.constructor().copy(this)},copy:function(t){return this.arcLengthDivisions=t.arcLengthDivisions,this},toJSON:function(){var t={metadata:{version:4.5,type:"Curve",generator:"Curve.toJSON"}};return t.arcLengthDivisions=this.arcLengthDivisions,t.type=this.type,t},fromJSON:function(t){return this.arcLengthDivisions=t.arcLengthDivisions,this}}),Kn.prototype=Object.create(Ee.prototype),Kn.prototype.constructor=Kn,Kn.prototype.isEllipseCurve=!0,Kn.prototype.getPoint=function(t,e){e=e||new o;for(var i=2*Math.PI,n=this.aEndAngle-this.aStartAngle,s=Math.abs(n)<Number.EPSILON;0>n;)n+=i;for(;n>i;)n-=i;n<Number.EPSILON&&(n=s?0:i),this.aClockwise!==!0||s||(n=n===i?-i:n-i),i=this.aStartAngle+t*n,t=this.aX+this.xRadius*Math.cos(i);var l=this.aY+this.yRadius*Math.sin(i);return this.aRotation!==0&&(i=Math.cos(this.aRotation),n=Math.sin(this.aRotation),s=t-this.aX,l-=this.aY,t=s*i-l*n+this.aX,l=s*n+l*i+this.aY),e.set(t,l)},Kn.prototype.copy=function(t){return Ee.prototype.copy.call(this,t),this.aX=t.aX,this.aY=t.aY,this.xRadius=t.xRadius,this.yRadius=t.yRadius,this.aStartAngle=t.aStartAngle,this.aEndAngle=t.aEndAngle,this.aClockwise=t.aClockwise,this.aRotation=t.aRotation,this},Kn.prototype.toJSON=function(){var t=Ee.prototype.toJSON.call(this);return t.aX=this.aX,t.aY=this.aY,t.xRadius=this.xRadius,t.yRadius=this.yRadius,t.aStartAngle=this.aStartAngle,t.aEndAngle=this.aEndAngle,t.aClockwise=this.aClockwise,t.aRotation=this.aRotation,t},Kn.prototype.fromJSON=function(t){return Ee.prototype.fromJSON.call(this,t),this.aX=t.aX,this.aY=t.aY,this.xRadius=t.xRadius,this.yRadius=t.yRadius,this.aStartAngle=t.aStartAngle,this.aEndAngle=t.aEndAngle,this.aClockwise=t.aClockwise,this.aRotation=t.aRotation,this},ya.prototype=Object.create(Kn.prototype),ya.prototype.constructor=ya,ya.prototype.isArcCurve=!0;var bn=new u,wl=new lr,rh=new lr,Nr=new lr;On.prototype=Object.create(Ee.prototype),On.prototype.constructor=On,On.prototype.isCatmullRomCurve3=!0,On.prototype.getPoint=function(t,e){e=e||new u;var i=this.points,n=i.length;t*=n-(this.closed?0:1);var s=Math.floor(t);if(t-=s,this.closed?s+=0<s?0:(Math.floor(Math.abs(s)/n)+1)*n:t===0&&s===n-1&&(s=n-2,t=1),this.closed||0<s)var l=i[(s-1)%n];else bn.subVectors(i[0],i[1]).add(i[0]),l=bn;var f=i[s%n],p=i[(s+1)%n];if(this.closed||s+2<n?i=i[(s+2)%n]:(bn.subVectors(i[n-1],i[n-2]).add(i[n-1]),i=bn),this.curveType==="centripetal"||this.curveType==="chordal"){var v=this.curveType==="chordal"?.5:.25;n=Math.pow(l.distanceToSquared(f),v),s=Math.pow(f.distanceToSquared(p),v),v=Math.pow(p.distanceToSquared(i),v),1e-4>s&&(s=1),1e-4>n&&(n=s),1e-4>v&&(v=s),wl.initNonuniformCatmullRom(l.x,f.x,p.x,i.x,n,s,v),rh.initNonuniformCatmullRom(l.y,f.y,p.y,i.y,n,s,v),Nr.initNonuniformCatmullRom(l.z,f.z,p.z,i.z,n,s,v)}else this.curveType==="catmullrom"&&(wl.initCatmullRom(l.x,f.x,p.x,i.x,this.tension),rh.initCatmullRom(l.y,f.y,p.y,i.y,this.tension),Nr.initCatmullRom(l.z,f.z,p.z,i.z,this.tension));return e.set(wl.calc(t),rh.calc(t),Nr.calc(t)),e},On.prototype.copy=function(t){Ee.prototype.copy.call(this,t),this.points=[];for(var e=0,i=t.points.length;e<i;e++)this.points.push(t.points[e].clone());return this.closed=t.closed,this.curveType=t.curveType,this.tension=t.tension,this},On.prototype.toJSON=function(){var t=Ee.prototype.toJSON.call(this);t.points=[];for(var e=0,i=this.points.length;e<i;e++)t.points.push(this.points[e].toArray());return t.closed=this.closed,t.curveType=this.curveType,t.tension=this.tension,t},On.prototype.fromJSON=function(t){Ee.prototype.fromJSON.call(this,t),this.points=[];for(var e=0,i=t.points.length;e<i;e++){var n=t.points[e];this.points.push(new u().fromArray(n))}return this.closed=t.closed,this.curveType=t.curveType,this.tension=t.tension,this},hr.prototype=Object.create(Ee.prototype),hr.prototype.constructor=hr,hr.prototype.isCubicBezierCurve=!0,hr.prototype.getPoint=function(t,e){e=e||new o;var i=this.v0,n=this.v1,s=this.v2,l=this.v3;return e.set(eo(t,i.x,n.x,s.x,l.x),eo(t,i.y,n.y,s.y,l.y)),e},hr.prototype.copy=function(t){return Ee.prototype.copy.call(this,t),this.v0.copy(t.v0),this.v1.copy(t.v1),this.v2.copy(t.v2),this.v3.copy(t.v3),this},hr.prototype.toJSON=function(){var t=Ee.prototype.toJSON.call(this);return t.v0=this.v0.toArray(),t.v1=this.v1.toArray(),t.v2=this.v2.toArray(),t.v3=this.v3.toArray(),t},hr.prototype.fromJSON=function(t){return Ee.prototype.fromJSON.call(this,t),this.v0.fromArray(t.v0),this.v1.fromArray(t.v1),this.v2.fromArray(t.v2),this.v3.fromArray(t.v3),this},Ti.prototype=Object.create(Ee.prototype),Ti.prototype.constructor=Ti,Ti.prototype.isCubicBezierCurve3=!0,Ti.prototype.getPoint=function(t,e){e=e||new u;var i=this.v0,n=this.v1,s=this.v2,l=this.v3;return e.set(eo(t,i.x,n.x,s.x,l.x),eo(t,i.y,n.y,s.y,l.y),eo(t,i.z,n.z,s.z,l.z)),e},Ti.prototype.copy=function(t){return Ee.prototype.copy.call(this,t),this.v0.copy(t.v0),this.v1.copy(t.v1),this.v2.copy(t.v2),this.v3.copy(t.v3),this},Ti.prototype.toJSON=function(){var t=Ee.prototype.toJSON.call(this);return t.v0=this.v0.toArray(),t.v1=this.v1.toArray(),t.v2=this.v2.toArray(),t.v3=this.v3.toArray(),t},Ti.prototype.fromJSON=function(t){return Ee.prototype.fromJSON.call(this,t),this.v0.fromArray(t.v0),this.v1.fromArray(t.v1),this.v2.fromArray(t.v2),this.v3.fromArray(t.v3),this},ur.prototype=Object.create(Ee.prototype),ur.prototype.constructor=ur,ur.prototype.isLineCurve=!0,ur.prototype.getPoint=function(t,e){return e=e||new o,t===1?e.copy(this.v2):(e.copy(this.v2).sub(this.v1),e.multiplyScalar(t).add(this.v1)),e},ur.prototype.getPointAt=function(t,e){return this.getPoint(t,e)},ur.prototype.getTangent=function(){return this.v2.clone().sub(this.v1).normalize()},ur.prototype.copy=function(t){return Ee.prototype.copy.call(this,t),this.v1.copy(t.v1),this.v2.copy(t.v2),this},ur.prototype.toJSON=function(){var t=Ee.prototype.toJSON.call(this);return t.v1=this.v1.toArray(),t.v2=this.v2.toArray(),t},ur.prototype.fromJSON=function(t){return Ee.prototype.fromJSON.call(this,t),this.v1.fromArray(t.v1),this.v2.fromArray(t.v2),this},zr.prototype=Object.create(Ee.prototype),zr.prototype.constructor=zr,zr.prototype.isLineCurve3=!0,zr.prototype.getPoint=function(t,e){return e=e||new u,t===1?e.copy(this.v2):(e.copy(this.v2).sub(this.v1),e.multiplyScalar(t).add(this.v1)),e},zr.prototype.getPointAt=function(t,e){return this.getPoint(t,e)},zr.prototype.copy=function(t){return Ee.prototype.copy.call(this,t),this.v1.copy(t.v1),this.v2.copy(t.v2),this},zr.prototype.toJSON=function(){var t=Ee.prototype.toJSON.call(this);return t.v1=this.v1.toArray(),t.v2=this.v2.toArray(),t},zr.prototype.fromJSON=function(t){return Ee.prototype.fromJSON.call(this,t),this.v1.fromArray(t.v1),this.v2.fromArray(t.v2),this},cr.prototype=Object.create(Ee.prototype),cr.prototype.constructor=cr,cr.prototype.isQuadraticBezierCurve=!0,cr.prototype.getPoint=function(t,e){e=e||new o;var i=this.v0,n=this.v1,s=this.v2;return e.set(gs(t,i.x,n.x,s.x),gs(t,i.y,n.y,s.y)),e},cr.prototype.copy=function(t){return Ee.prototype.copy.call(this,t),this.v0.copy(t.v0),this.v1.copy(t.v1),this.v2.copy(t.v2),this},cr.prototype.toJSON=function(){var t=Ee.prototype.toJSON.call(this);return t.v0=this.v0.toArray(),t.v1=this.v1.toArray(),t.v2=this.v2.toArray(),t},cr.prototype.fromJSON=function(t){return Ee.prototype.fromJSON.call(this,t),this.v0.fromArray(t.v0),this.v1.fromArray(t.v1),this.v2.fromArray(t.v2),this},vs.prototype=Object.create(Ee.prototype),vs.prototype.constructor=vs,vs.prototype.isQuadraticBezierCurve3=!0,vs.prototype.getPoint=function(t,e){e=e||new u;var i=this.v0,n=this.v1,s=this.v2;return e.set(gs(t,i.x,n.x,s.x),gs(t,i.y,n.y,s.y),gs(t,i.z,n.z,s.z)),e},vs.prototype.copy=function(t){return Ee.prototype.copy.call(this,t),this.v0.copy(t.v0),this.v1.copy(t.v1),this.v2.copy(t.v2),this},vs.prototype.toJSON=function(){var t=Ee.prototype.toJSON.call(this);return t.v0=this.v0.toArray(),t.v1=this.v1.toArray(),t.v2=this.v2.toArray(),t},vs.prototype.fromJSON=function(t){return Ee.prototype.fromJSON.call(this,t),this.v0.fromArray(t.v0),this.v1.fromArray(t.v1),this.v2.fromArray(t.v2),this},Kr.prototype=Object.create(Ee.prototype),Kr.prototype.constructor=Kr,Kr.prototype.isSplineCurve=!0,Kr.prototype.getPoint=function(t,e){e=e||new o;var i=this.points,n=(i.length-1)*t;t=Math.floor(n),n-=t;var s=i[t===0?t:t-1],l=i[t],f=i[t>i.length-2?i.length-1:t+1];return i=i[t>i.length-3?i.length-1:t+2],e.set(Eu(n,s.x,l.x,f.x,i.x),Eu(n,s.y,l.y,f.y,i.y)),e},Kr.prototype.copy=function(t){Ee.prototype.copy.call(this,t),this.points=[];for(var e=0,i=t.points.length;e<i;e++)this.points.push(t.points[e].clone());return this},Kr.prototype.toJSON=function(){var t=Ee.prototype.toJSON.call(this);t.points=[];for(var e=0,i=this.points.length;e<i;e++)t.points.push(this.points[e].toArray());return t},Kr.prototype.fromJSON=function(t){Ee.prototype.fromJSON.call(this,t),this.points=[];for(var e=0,i=t.points.length;e<i;e++){var n=t.points[e];this.points.push(new o().fromArray(n))}return this};var sh=Object.freeze({ArcCurve:ya,CatmullRomCurve3:On,CubicBezierCurve:hr,CubicBezierCurve3:Ti,EllipseCurve:Kn,LineCurve:ur,LineCurve3:zr,QuadraticBezierCurve:cr,QuadraticBezierCurve3:vs,SplineCurve:Kr});Os.prototype=Object.assign(Object.create(Ee.prototype),{constructor:Os,add:function(t){this.curves.push(t)},closePath:function(){var t=this.curves[0].getPoint(0),e=this.curves[this.curves.length-1].getPoint(1);t.equals(e)||this.curves.push(new ur(e,t))},getPoint:function(t){var e=t*this.getLength(),i=this.getCurveLengths();for(t=0;t<i.length;){if(i[t]>=e)return e=i[t]-e,t=this.curves[t],i=t.getLength(),t.getPointAt(i===0?0:1-e/i);t++}return null},getLength:function(){var t=this.getCurveLengths();return t[t.length-1]},updateArcLengths:function(){this.needsUpdate=!0,this.cacheLengths=null,this.getCurveLengths()},getCurveLengths:function(){if(this.cacheLengths&&this.cacheLengths.length===this.curves.length)return this.cacheLengths;for(var t=[],e=0,i=0,n=this.curves.length;i<n;i++)e+=this.curves[i].getLength(),t.push(e);return this.cacheLengths=t},getSpacedPoints:function(t){t===void 0&&(t=40);for(var e=[],i=0;i<=t;i++)e.push(this.getPoint(i/t));return this.autoClose&&e.push(e[0]),e},getPoints:function(t){t=t||12;for(var e=[],i,n=0,s=this.curves;n<s.length;n++){var l=s[n];l=l.getPoints(l&&l.isEllipseCurve?2*t:l&&(l.isLineCurve||l.isLineCurve3)?1:l&&l.isSplineCurve?t*l.points.length:t);for(var f=0;f<l.length;f++){var p=l[f];i&&i.equals(p)||(e.push(p),i=p)}}return this.autoClose&&1<e.length&&!e[e.length-1].equals(e[0])&&e.push(e[0]),e},copy:function(t){Ee.prototype.copy.call(this,t),this.curves=[];for(var e=0,i=t.curves.length;e<i;e++)this.curves.push(t.curves[e].clone());return this.autoClose=t.autoClose,this},toJSON:function(){var t=Ee.prototype.toJSON.call(this);t.autoClose=this.autoClose,t.curves=[];for(var e=0,i=this.curves.length;e<i;e++)t.curves.push(this.curves[e].toJSON());return t},fromJSON:function(t){Ee.prototype.fromJSON.call(this,t),this.autoClose=t.autoClose,this.curves=[];for(var e=0,i=t.curves.length;e<i;e++){var n=t.curves[e];this.curves.push(new sh[n.type]().fromJSON(n))}return this}}),fr.prototype=Object.assign(Object.create(Os.prototype),{constructor:fr,setFromPoints:function(t){this.moveTo(t[0].x,t[0].y);for(var e=1,i=t.length;e<i;e++)this.lineTo(t[e].x,t[e].y)},moveTo:function(t,e){this.currentPoint.set(t,e)},lineTo:function(t,e){var i=new ur(this.currentPoint.clone(),new o(t,e));this.curves.push(i),this.currentPoint.set(t,e)},quadraticCurveTo:function(t,e,i,n){t=new cr(this.currentPoint.clone(),new o(t,e),new o(i,n)),this.curves.push(t),this.currentPoint.set(i,n)},bezierCurveTo:function(t,e,i,n,s,l){t=new hr(this.currentPoint.clone(),new o(t,e),new o(i,n),new o(s,l)),this.curves.push(t),this.currentPoint.set(s,l)},splineThru:function(t){var e=[this.currentPoint.clone()].concat(t);e=new Kr(e),this.curves.push(e),this.currentPoint.copy(t[t.length-1])},arc:function(t,e,i,n,s,l){this.absarc(t+this.currentPoint.x,e+this.currentPoint.y,i,n,s,l)},absarc:function(t,e,i,n,s,l){this.absellipse(t,e,i,i,n,s,l)},ellipse:function(t,e,i,n,s,l,f,p){this.absellipse(t+this.currentPoint.x,e+this.currentPoint.y,i,n,s,l,f,p)},absellipse:function(t,e,i,n,s,l,f,p){t=new Kn(t,e,i,n,s,l,f,p),0<this.curves.length&&(e=t.getPoint(0),e.equals(this.currentPoint)||this.lineTo(e.x,e.y)),this.curves.push(t),t=t.getPoint(1),this.currentPoint.copy(t)},copy:function(t){return Os.prototype.copy.call(this,t),this.currentPoint.copy(t.currentPoint),this},toJSON:function(){var t=Os.prototype.toJSON.call(this);return t.currentPoint=this.currentPoint.toArray(),t},fromJSON:function(t){return Os.prototype.fromJSON.call(this,t),this.currentPoint.fromArray(t.currentPoint),this}}),Qn.prototype=Object.assign(Object.create(fr.prototype),{constructor:Qn,getPointsHoles:function(t){for(var e=[],i=0,n=this.holes.length;i<n;i++)e[i]=this.holes[i].getPoints(t);return e},extractPoints:function(t){return{shape:this.getPoints(t),holes:this.getPointsHoles(t)}},copy:function(t){fr.prototype.copy.call(this,t),this.holes=[];for(var e=0,i=t.holes.length;e<i;e++)this.holes.push(t.holes[e].clone());return this},toJSON:function(){var t=fr.prototype.toJSON.call(this);t.uuid=this.uuid,t.holes=[];for(var e=0,i=this.holes.length;e<i;e++)t.holes.push(this.holes[e].toJSON());return t},fromJSON:function(t){fr.prototype.fromJSON.call(this,t),this.uuid=t.uuid,this.holes=[];for(var e=0,i=t.holes.length;e<i;e++){var n=t.holes[e];this.holes.push(new fr().fromJSON(n))}return this}}),tn.prototype=Object.assign(Object.create(N.prototype),{constructor:tn,isLight:!0,copy:function(t){return N.prototype.copy.call(this,t),this.color.copy(t.color),this.intensity=t.intensity,this},toJSON:function(t){return t=N.prototype.toJSON.call(this,t),t.object.color=this.color.getHex(),t.object.intensity=this.intensity,this.groundColor!==void 0&&(t.object.groundColor=this.groundColor.getHex()),this.distance!==void 0&&(t.object.distance=this.distance),this.angle!==void 0&&(t.object.angle=this.angle),this.decay!==void 0&&(t.object.decay=this.decay),this.penumbra!==void 0&&(t.object.penumbra=this.penumbra),this.shadow!==void 0&&(t.object.shadow=this.shadow.toJSON()),t}}),sl.prototype=Object.assign(Object.create(tn.prototype),{constructor:sl,isHemisphereLight:!0,copy:function(t){return tn.prototype.copy.call(this,t),this.groundColor.copy(t.groundColor),this}}),Object.assign(_s.prototype,{copy:function(t){return this.camera=t.camera.clone(),this.bias=t.bias,this.radius=t.radius,this.mapSize.copy(t.mapSize),this},clone:function(){return new this.constructor().copy(this)},toJSON:function(){var t={};return this.bias!==0&&(t.bias=this.bias),this.radius!==1&&(t.radius=this.radius),(this.mapSize.x!==512||this.mapSize.y!==512)&&(t.mapSize=this.mapSize.toArray()),t.camera=this.camera.toJSON(!1).object,delete t.camera.matrix,t}}),ol.prototype=Object.assign(Object.create(_s.prototype),{constructor:ol,isSpotLightShadow:!0,update:function(t){var e=this.camera,i=2*pi.RAD2DEG*t.angle,n=this.mapSize.width/this.mapSize.height;t=t.distance||e.far,(i!==e.fov||n!==e.aspect||t!==e.far)&&(e.fov=i,e.aspect=n,e.far=t,e.updateProjectionMatrix())}}),al.prototype=Object.assign(Object.create(tn.prototype),{constructor:al,isSpotLight:!0,copy:function(t){return tn.prototype.copy.call(this,t),this.distance=t.distance,this.angle=t.angle,this.penumbra=t.penumbra,this.decay=t.decay,this.target=t.target.clone(),this.shadow=t.shadow.clone(),this}}),Oo.prototype=Object.assign(Object.create(tn.prototype),{constructor:Oo,isPointLight:!0,copy:function(t){return tn.prototype.copy.call(this,t),this.distance=t.distance,this.decay=t.decay,this.shadow=t.shadow.clone(),this}}),xa.prototype=Object.assign(Object.create(Be.prototype),{constructor:xa,isOrthographicCamera:!0,copy:function(t,e){return Be.prototype.copy.call(this,t,e),this.left=t.left,this.right=t.right,this.top=t.top,this.bottom=t.bottom,this.near=t.near,this.far=t.far,this.zoom=t.zoom,this.view=t.view===null?null:Object.assign({},t.view),this},setViewOffset:function(t,e,i,n,s,l){this.view===null&&(this.view={enabled:!0,fullWidth:1,fullHeight:1,offsetX:0,offsetY:0,width:1,height:1}),this.view.enabled=!0,this.view.fullWidth=t,this.view.fullHeight=e,this.view.offsetX=i,this.view.offsetY=n,this.view.width=s,this.view.height=l,this.updateProjectionMatrix()},clearViewOffset:function(){this.view!==null&&(this.view.enabled=!1),this.updateProjectionMatrix()},updateProjectionMatrix:function(){var t=(this.right-this.left)/(2*this.zoom),e=(this.top-this.bottom)/(2*this.zoom),i=(this.right+this.left)/2,n=(this.top+this.bottom)/2,s=i-t;if(i+=t,t=n+e,e=n-e,this.view!==null&&this.view.enabled){i=this.zoom/(this.view.width/this.view.fullWidth),e=this.zoom/(this.view.height/this.view.fullHeight);var l=(this.right-this.left)/this.view.width;n=(this.top-this.bottom)/this.view.height,s+=this.view.offsetX/i*l,i=s+this.view.width/i*l,t-=this.view.offsetY/e*n,e=t-this.view.height/e*n}this.projectionMatrix.makeOrthographic(s,i,t,e,this.near,this.far),this.projectionMatrixInverse.getInverse(this.projectionMatrix)},toJSON:function(t){return t=N.prototype.toJSON.call(this,t),t.object.zoom=this.zoom,t.object.left=this.left,t.object.right=this.right,t.object.top=this.top,t.object.bottom=this.bottom,t.object.near=this.near,t.object.far=this.far,this.view!==null&&(t.object.view=Object.assign({},this.view)),t}}),io.prototype=Object.assign(Object.create(_s.prototype),{constructor:io}),ys.prototype=Object.assign(Object.create(tn.prototype),{constructor:ys,isDirectionalLight:!0,copy:function(t){return tn.prototype.copy.call(this,t),this.target=t.target.clone(),this.shadow=t.shadow.clone(),this}}),Io.prototype=Object.assign(Object.create(tn.prototype),{constructor:Io,isAmbientLight:!0}),$l.prototype=Object.assign(Object.create(tn.prototype),{constructor:$l,isRectAreaLight:!0,copy:function(t){return tn.prototype.copy.call(this,t),this.width=t.width,this.height=t.height,this},toJSON:function(t){return t=tn.prototype.toJSON.call(this,t),t.object.width=this.width,t.object.height=this.height,t}}),Object.assign(Kl.prototype,{load:function(t,e,i,n){var s=this,l=new Lt(s.manager);l.setPath(s.path),l.load(t,function(f){e(s.parse(JSON.parse(f)))},i,n)},parse:function(t){function e(f){return i[f]===void 0&&console.warn("THREE.MaterialLoader: Undefined texture",f),i[f]}var i=this.textures,n=new zu[t.type];if(t.uuid!==void 0&&(n.uuid=t.uuid),t.name!==void 0&&(n.name=t.name),t.color!==void 0&&n.color.setHex(t.color),t.roughness!==void 0&&(n.roughness=t.roughness),t.metalness!==void 0&&(n.metalness=t.metalness),t.emissive!==void 0&&n.emissive.setHex(t.emissive),t.specular!==void 0&&n.specular.setHex(t.specular),t.shininess!==void 0&&(n.shininess=t.shininess),t.clearCoat!==void 0&&(n.clearCoat=t.clearCoat),t.clearCoatRoughness!==void 0&&(n.clearCoatRoughness=t.clearCoatRoughness),t.vertexColors!==void 0&&(n.vertexColors=t.vertexColors),t.fog!==void 0&&(n.fog=t.fog),t.flatShading!==void 0&&(n.flatShading=t.flatShading),t.blending!==void 0&&(n.blending=t.blending),t.combine!==void 0&&(n.combine=t.combine),t.side!==void 0&&(n.side=t.side),t.opacity!==void 0&&(n.opacity=t.opacity),t.transparent!==void 0&&(n.transparent=t.transparent),t.alphaTest!==void 0&&(n.alphaTest=t.alphaTest),t.depthTest!==void 0&&(n.depthTest=t.depthTest),t.depthWrite!==void 0&&(n.depthWrite=t.depthWrite),t.colorWrite!==void 0&&(n.colorWrite=t.colorWrite),t.wireframe!==void 0&&(n.wireframe=t.wireframe),t.wireframeLinewidth!==void 0&&(n.wireframeLinewidth=t.wireframeLinewidth),t.wireframeLinecap!==void 0&&(n.wireframeLinecap=t.wireframeLinecap),t.wireframeLinejoin!==void 0&&(n.wireframeLinejoin=t.wireframeLinejoin),t.rotation!==void 0&&(n.rotation=t.rotation),t.linewidth!==1&&(n.linewidth=t.linewidth),t.dashSize!==void 0&&(n.dashSize=t.dashSize),t.gapSize!==void 0&&(n.gapSize=t.gapSize),t.scale!==void 0&&(n.scale=t.scale),t.polygonOffset!==void 0&&(n.polygonOffset=t.polygonOffset),t.polygonOffsetFactor!==void 0&&(n.polygonOffsetFactor=t.polygonOffsetFactor),t.polygonOffsetUnits!==void 0&&(n.polygonOffsetUnits=t.polygonOffsetUnits),t.skinning!==void 0&&(n.skinning=t.skinning),t.morphTargets!==void 0&&(n.morphTargets=t.morphTargets),t.dithering!==void 0&&(n.dithering=t.dithering),t.visible!==void 0&&(n.visible=t.visible),t.userData!==void 0&&(n.userData=t.userData),t.uniforms!==void 0)for(var s in t.uniforms){var l=t.uniforms[s];switch(n.uniforms[s]={},l.type){case"t":n.uniforms[s].value=e(l.value);break;case"c":n.uniforms[s].value=new L().setHex(l.value);break;case"v2":n.uniforms[s].value=new o().fromArray(l.value);break;case"v3":n.uniforms[s].value=new u().fromArray(l.value);break;case"v4":n.uniforms[s].value=new y().fromArray(l.value);break;case"m4":n.uniforms[s].value=new c().fromArray(l.value);break;default:n.uniforms[s].value=l.value}}return t.defines!==void 0&&(n.defines=t.defines),t.vertexShader!==void 0&&(n.vertexShader=t.vertexShader),t.fragmentShader!==void 0&&(n.fragmentShader=t.fragmentShader),t.shading!==void 0&&(n.flatShading=t.shading===1),t.size!==void 0&&(n.size=t.size),t.sizeAttenuation!==void 0&&(n.sizeAttenuation=t.sizeAttenuation),t.map!==void 0&&(n.map=e(t.map)),t.alphaMap!==void 0&&(n.alphaMap=e(t.alphaMap),n.transparent=!0),t.bumpMap!==void 0&&(n.bumpMap=e(t.bumpMap)),t.bumpScale!==void 0&&(n.bumpScale=t.bumpScale),t.normalMap!==void 0&&(n.normalMap=e(t.normalMap)),t.normalMapType!==void 0&&(n.normalMapType=t.normalMapType),t.normalScale!==void 0&&(s=t.normalScale,Array.isArray(s)===!1&&(s=[s,s]),n.normalScale=new o().fromArray(s)),t.displacementMap!==void 0&&(n.displacementMap=e(t.displacementMap)),t.displacementScale!==void 0&&(n.displacementScale=t.displacementScale),t.displacementBias!==void 0&&(n.displacementBias=t.displacementBias),t.roughnessMap!==void 0&&(n.roughnessMap=e(t.roughnessMap)),t.metalnessMap!==void 0&&(n.metalnessMap=e(t.metalnessMap)),t.emissiveMap!==void 0&&(n.emissiveMap=e(t.emissiveMap)),t.emissiveIntensity!==void 0&&(n.emissiveIntensity=t.emissiveIntensity),t.specularMap!==void 0&&(n.specularMap=e(t.specularMap)),t.envMap!==void 0&&(n.envMap=e(t.envMap)),t.envMapIntensity!==void 0&&(n.envMapIntensity=t.envMapIntensity),t.reflectivity!==void 0&&(n.reflectivity=t.reflectivity),t.lightMap!==void 0&&(n.lightMap=e(t.lightMap)),t.lightMapIntensity!==void 0&&(n.lightMapIntensity=t.lightMapIntensity),t.aoMap!==void 0&&(n.aoMap=e(t.aoMap)),t.aoMapIntensity!==void 0&&(n.aoMapIntensity=t.aoMapIntensity),t.gradientMap!==void 0&&(n.gradientMap=e(t.gradientMap)),n},setPath:function(t){return this.path=t,this},setTextures:function(t){return this.textures=t,this}});var Fo={decodeText:function(t){if(typeof TextDecoder<"u")return new TextDecoder().decode(t);for(var e="",i=0,n=t.length;i<n;i++)e+=String.fromCharCode(t[i]);return decodeURIComponent(escape(e))},extractUrlBase:function(t){var e=t.lastIndexOf("/");return e===-1?"./":t.substr(0,e+1)}};Object.assign(Dh.prototype,{load:function(t,e,i,n){var s=this,l=new Lt(s.manager);l.setPath(s.path),l.load(t,function(f){e(s.parse(JSON.parse(f)))},i,n)},parse:function(t){var e=new Ft,i=t.data.index;i!==void 0&&(i=new ao[i.type](i.array),e.setIndex(new J(i,1)));var n=t.data.attributes;for(l in n){var s=n[l];i=new ao[s.type](s.array),e.addAttribute(l,new J(i,s.itemSize,s.normalized))}var l=t.data.groups||t.data.drawcalls||t.data.offsets;if(l!==void 0)for(i=0,n=l.length;i!==n;++i)s=l[i],e.addGroup(s.start,s.count,s.materialIndex);return t=t.data.boundingSphere,t!==void 0&&(l=new u,t.center!==void 0&&l.fromArray(t.center),e.boundingSphere=new D(l,t.radius)),e},setPath:function(t){return this.path=t,this}});var ao={Int8Array,Uint8Array,Uint8ClampedArray:typeof Uint8ClampedArray<"u"?Uint8ClampedArray:Uint8Array,Int16Array,Uint16Array,Int32Array,Uint32Array,Float32Array,Float64Array};Is.Handlers={handlers:[],add:function(t,e){this.handlers.push(t,e)},get:function(t){for(var e=this.handlers,i=0,n=e.length;i<n;i+=2){var s=e[i+1];if(e[i].test(t))return s}return null}},Object.assign(Is.prototype,{crossOrigin:"anonymous",onLoadStart:function(){},onLoadProgress:function(){},onLoadComplete:function(){},initMaterials:function(t,e,i){for(var n=[],s=0;s<t.length;++s)n[s]=this.createMaterial(t[s],e,i);return n},createMaterial:function(){var t={NoBlending:0,NormalBlending:1,AdditiveBlending:2,SubtractiveBlending:3,MultiplyBlending:4,CustomBlending:5},e=new L,i=new fn,n=new Kl;return function(s,l,f){function p(B,H,q,K,rt){B=l+B;var xt=Is.Handlers.get(B);return xt!==null?B=xt.load(B):(i.setCrossOrigin(f),B=i.load(B)),H!==void 0&&(B.repeat.fromArray(H),H[0]!==1&&(B.wrapS=1e3),H[1]!==1&&(B.wrapT=1e3)),q!==void 0&&B.offset.fromArray(q),K!==void 0&&(K[0]==="repeat"&&(B.wrapS=1e3),K[0]==="mirror"&&(B.wrapS=1002),K[1]==="repeat"&&(B.wrapT=1e3),K[1]==="mirror"&&(B.wrapT=1002)),rt!==void 0&&(B.anisotropy=rt),H=pi.generateUUID(),v[H]=B,H}var v={},w={uuid:pi.generateUUID(),type:"MeshLambertMaterial"},C;for(C in s){var P=s[C];switch(C){case"DbgColor":case"DbgIndex":case"opticalDensity":case"illumination":break;case"DbgName":w.name=P;break;case"blending":w.blending=t[P];break;case"colorAmbient":case"mapAmbient":console.warn("THREE.Loader.createMaterial:",C,"is no longer supported.");break;case"colorDiffuse":w.color=e.fromArray(P).getHex();break;case"colorSpecular":w.specular=e.fromArray(P).getHex();break;case"colorEmissive":w.emissive=e.fromArray(P).getHex();break;case"specularCoef":w.shininess=P;break;case"shading":P.toLowerCase()==="basic"&&(w.type="MeshBasicMaterial"),P.toLowerCase()==="phong"&&(w.type="MeshPhongMaterial"),P.toLowerCase()==="standard"&&(w.type="MeshStandardMaterial");break;case"mapDiffuse":w.map=p(P,s.mapDiffuseRepeat,s.mapDiffuseOffset,s.mapDiffuseWrap,s.mapDiffuseAnisotropy);break;case"mapDiffuseRepeat":case"mapDiffuseOffset":case"mapDiffuseWrap":case"mapDiffuseAnisotropy":break;case"mapEmissive":w.emissiveMap=p(P,s.mapEmissiveRepeat,s.mapEmissiveOffset,s.mapEmissiveWrap,s.mapEmissiveAnisotropy);break;case"mapEmissiveRepeat":case"mapEmissiveOffset":case"mapEmissiveWrap":case"mapEmissiveAnisotropy":break;case"mapLight":w.lightMap=p(P,s.mapLightRepeat,s.mapLightOffset,s.mapLightWrap,s.mapLightAnisotropy);break;case"mapLightRepeat":case"mapLightOffset":case"mapLightWrap":case"mapLightAnisotropy":break;case"mapAO":w.aoMap=p(P,s.mapAORepeat,s.mapAOOffset,s.mapAOWrap,s.mapAOAnisotropy);break;case"mapAORepeat":case"mapAOOffset":case"mapAOWrap":case"mapAOAnisotropy":break;case"mapBump":w.bumpMap=p(P,s.mapBumpRepeat,s.mapBumpOffset,s.mapBumpWrap,s.mapBumpAnisotropy);break;case"mapBumpScale":w.bumpScale=P;break;case"mapBumpRepeat":case"mapBumpOffset":case"mapBumpWrap":case"mapBumpAnisotropy":break;case"mapNormal":w.normalMap=p(P,s.mapNormalRepeat,s.mapNormalOffset,s.mapNormalWrap,s.mapNormalAnisotropy);break;case"mapNormalFactor":w.normalScale=P;break;case"mapNormalRepeat":case"mapNormalOffset":case"mapNormalWrap":case"mapNormalAnisotropy":break;case"mapSpecular":w.specularMap=p(P,s.mapSpecularRepeat,s.mapSpecularOffset,s.mapSpecularWrap,s.mapSpecularAnisotropy);break;case"mapSpecularRepeat":case"mapSpecularOffset":case"mapSpecularWrap":case"mapSpecularAnisotropy":break;case"mapMetalness":w.metalnessMap=p(P,s.mapMetalnessRepeat,s.mapMetalnessOffset,s.mapMetalnessWrap,s.mapMetalnessAnisotropy);break;case"mapMetalnessRepeat":case"mapMetalnessOffset":case"mapMetalnessWrap":case"mapMetalnessAnisotropy":break;case"mapRoughness":w.roughnessMap=p(P,s.mapRoughnessRepeat,s.mapRoughnessOffset,s.mapRoughnessWrap,s.mapRoughnessAnisotropy);break;case"mapRoughnessRepeat":case"mapRoughnessOffset":case"mapRoughnessWrap":case"mapRoughnessAnisotropy":break;case"mapAlpha":w.alphaMap=p(P,s.mapAlphaRepeat,s.mapAlphaOffset,s.mapAlphaWrap,s.mapAlphaAnisotropy);break;case"mapAlphaRepeat":case"mapAlphaOffset":case"mapAlphaWrap":case"mapAlphaAnisotropy":break;case"flipSided":w.side=1;break;case"doubleSided":w.side=2;break;case"transparency":console.warn("THREE.Loader.createMaterial: transparency has been renamed to opacity"),w.opacity=P;break;case"depthTest":case"depthWrite":case"colorWrite":case"opacity":case"reflectivity":case"transparent":case"visible":case"wireframe":w[C]=P;break;case"vertexColors":P===!0&&(w.vertexColors=2),P==="face"&&(w.vertexColors=1);break;default:console.error("THREE.Loader.createMaterial: Unsupported",C,P)}}return w.type==="MeshBasicMaterial"&&delete w.emissive,w.type!=="MeshPhongMaterial"&&delete w.specular,1>w.opacity&&(w.transparent=!0),n.setTextures(v),n.parse(w)}}()}),Object.assign(Do.prototype,{crossOrigin:"anonymous",load:function(t,e,i,n){var s=this,l=this.path===void 0?Fo.extractUrlBase(t):this.path,f=new Lt(this.manager);f.setPath(this.path),f.setWithCredentials(this.withCredentials),f.load(t,function(p){p=JSON.parse(p);var v=p.metadata;if(v!==void 0&&(v=v.type,v!==void 0&&v.toLowerCase()==="object")){console.error("THREE.JSONLoader: "+t+" should be loaded with THREE.ObjectLoader instead.");return}p=s.parse(p,l),e(p.geometry,p.materials)},i,n)},setPath:function(t){return this.path=t,this},setResourcePath:function(t){return this.resourcePath=t,this},setCrossOrigin:function(t){return this.crossOrigin=t,this},parse:function(){return function(t,e){t.data!==void 0&&(t=t.data),t.scale=t.scale!==void 0?1/t.scale:1;var i=new j,n=t,s,l,f,p=n.faces,v=n.vertices,w=n.normals,C=n.colors,P=n.scale,B=0;if(n.uvs!==void 0){for(s=0;s<n.uvs.length;s++)n.uvs[s].length&&B++;for(s=0;s<B;s++)i.faceVertexUvs[s]=[]}var H=0;for(f=v.length;H<f;)s=new u,s.x=v[H++]*P,s.y=v[H++]*P,s.z=v[H++]*P,i.vertices.push(s);for(H=0,f=p.length;H<f;){v=p[H++];var q=v&1,K=v&2;s=v&8;var rt=v&16,xt=v&32;if(P=v&64,v&=128,q){q=new R,q.a=p[H],q.b=p[H+1],q.c=p[H+3];var gt=new R;if(gt.a=p[H+1],gt.b=p[H+2],gt.c=p[H+3],H+=4,K&&(K=p[H++],q.materialIndex=K,gt.materialIndex=K),K=i.faces.length,s)for(s=0;s<B;s++){var At=n.uvs[s];for(i.faceVertexUvs[s][K]=[],i.faceVertexUvs[s][K+1]=[],l=0;4>l;l++){var wt=p[H++],Vt=At[2*wt];wt=At[2*wt+1],Vt=new o(Vt,wt),l!==2&&i.faceVertexUvs[s][K].push(Vt),l!==0&&i.faceVertexUvs[s][K+1].push(Vt)}}if(rt&&(rt=3*p[H++],q.normal.set(w[rt++],w[rt++],w[rt]),gt.normal.copy(q.normal)),xt)for(s=0;4>s;s++)rt=3*p[H++],xt=new u(w[rt++],w[rt++],w[rt]),s!==2&&q.vertexNormals.push(xt),s!==0&&gt.vertexNormals.push(xt);if(P&&(P=p[H++],P=C[P],q.color.setHex(P),gt.color.setHex(P)),v)for(s=0;4>s;s++)P=p[H++],P=C[P],s!==2&&q.vertexColors.push(new L(P)),s!==0&&gt.vertexColors.push(new L(P));i.faces.push(q),i.faces.push(gt)}else{if(q=new R,q.a=p[H++],q.b=p[H++],q.c=p[H++],K&&(K=p[H++],q.materialIndex=K),K=i.faces.length,s)for(s=0;s<B;s++)for(At=n.uvs[s],i.faceVertexUvs[s][K]=[],l=0;3>l;l++)wt=p[H++],Vt=At[2*wt],wt=At[2*wt+1],Vt=new o(Vt,wt),i.faceVertexUvs[s][K].push(Vt);if(rt&&(rt=3*p[H++],q.normal.set(w[rt++],w[rt++],w[rt])),xt)for(s=0;3>s;s++)rt=3*p[H++],xt=new u(w[rt++],w[rt++],w[rt]),q.vertexNormals.push(xt);if(P&&(P=p[H++],q.color.setHex(C[P])),v)for(s=0;3>s;s++)P=p[H++],q.vertexColors.push(new L(C[P]));i.faces.push(q)}}if(n=t,H=n.influencesPerVertex!==void 0?n.influencesPerVertex:2,n.skinWeights)for(f=0,p=n.skinWeights.length;f<p;f+=H)i.skinWeights.push(new y(n.skinWeights[f],1<H?n.skinWeights[f+1]:0,2<H?n.skinWeights[f+2]:0,3<H?n.skinWeights[f+3]:0));if(n.skinIndices)for(f=0,p=n.skinIndices.length;f<p;f+=H)i.skinIndices.push(new y(n.skinIndices[f],1<H?n.skinIndices[f+1]:0,2<H?n.skinIndices[f+2]:0,3<H?n.skinIndices[f+3]:0));if(i.bones=n.bones,i.bones&&0<i.bones.length&&(i.skinWeights.length!==i.skinIndices.length||i.skinIndices.length!==i.vertices.length)&&console.warn("When skinning, number of vertices ("+i.vertices.length+"), skinIndices ("+i.skinIndices.length+"), and skinWeights ("+i.skinWeights.length+") should match."),f=t,p=f.scale,f.morphTargets!==void 0)for(n=0,H=f.morphTargets.length;n<H;n++)for(i.morphTargets[n]={},i.morphTargets[n].name=f.morphTargets[n].name,i.morphTargets[n].vertices=[],w=i.morphTargets[n].vertices,C=f.morphTargets[n].vertices,B=0,v=C.length;B<v;B+=3)P=new u,P.x=C[B]*p,P.y=C[B+1]*p,P.z=C[B+2]*p,w.push(P);if(f.morphColors!==void 0&&0<f.morphColors.length)for(console.warn('THREE.JSONLoader: "morphColors" no longer supported. Using them as face colors.'),p=i.faces,f=f.morphColors[0].colors,n=0,H=p.length;n<H;n++)p[n].color.fromArray(f,3*n);for(f=t,n=[],H=[],f.animation!==void 0&&H.push(f.animation),f.animations!==void 0&&(f.animations.length?H=H.concat(f.animations):H.push(f.animations)),f=0;f<H.length;f++)(p=yr.parseAnimation(H[f],i.bones))&&n.push(p);return i.morphTargets&&(H=yr.CreateClipsFromMorphTargetSequences(i.morphTargets,10),n=n.concat(H)),0<n.length&&(i.animations=n),i.computeFaceNormals(),i.computeBoundingSphere(),t.materials===void 0||t.materials.length===0?{geometry:i}:(t=Is.prototype.initMaterials(t.materials,this.resourcePath||e,this.crossOrigin),{geometry:i,materials:t})}}()}),Object.assign(ll.prototype,{crossOrigin:"anonymous",load:function(t,e,i,n){var s=this,l=this.path===void 0?Fo.extractUrlBase(t):this.path;this.resourcePath=this.resourcePath||l,l=new Lt(s.manager),l.setPath(this.path),l.load(t,function(f){var p=null;try{p=JSON.parse(f)}catch(v){n!==void 0&&n(v),console.error("THREE:ObjectLoader: Can't parse "+t+".",v.message);return}f=p.metadata,f===void 0||f.type===void 0||f.type.toLowerCase()==="geometry"?console.error("THREE.ObjectLoader: Can't load "+t+". Use THREE.JSONLoader instead."):s.parse(p,e)},i,n)},setPath:function(t){return this.path=t,this},setResourcePath:function(t){return this.resourcePath=t,this},setCrossOrigin:function(t){return this.crossOrigin=t,this},parse:function(t,e){var i=this.parseShape(t.shapes);i=this.parseGeometries(t.geometries,i);var n=this.parseImages(t.images,function(){e!==void 0&&e(s)});n=this.parseTextures(t.textures,n),n=this.parseMaterials(t.materials,n);var s=this.parseObject(t.object,i,n);return t.animations&&(s.animations=this.parseAnimations(t.animations)),t.images!==void 0&&t.images.length!==0||e===void 0||e(s),s},parseShape:function(t){var e={};if(t!==void 0)for(var i=0,n=t.length;i<n;i++){var s=new Qn().fromJSON(t[i]);e[s.uuid]=s}return e},parseGeometries:function(t,e){var i={};if(t!==void 0)for(var n=new Do,s=new Dh,l=0,f=t.length;l<f;l++){var p=t[l];switch(p.type){case"PlaneGeometry":case"PlaneBufferGeometry":var v=new _n[p.type](p.width,p.height,p.widthSegments,p.heightSegments);break;case"BoxGeometry":case"BoxBufferGeometry":case"CubeGeometry":v=new _n[p.type](p.width,p.height,p.depth,p.widthSegments,p.heightSegments,p.depthSegments);break;case"CircleGeometry":case"CircleBufferGeometry":v=new _n[p.type](p.radius,p.segments,p.thetaStart,p.thetaLength);break;case"CylinderGeometry":case"CylinderBufferGeometry":v=new _n[p.type](p.radiusTop,p.radiusBottom,p.height,p.radialSegments,p.heightSegments,p.openEnded,p.thetaStart,p.thetaLength);break;case"ConeGeometry":case"ConeBufferGeometry":v=new _n[p.type](p.radius,p.height,p.radialSegments,p.heightSegments,p.openEnded,p.thetaStart,p.thetaLength);break;case"SphereGeometry":case"SphereBufferGeometry":v=new _n[p.type](p.radius,p.widthSegments,p.heightSegments,p.phiStart,p.phiLength,p.thetaStart,p.thetaLength);break;case"DodecahedronGeometry":case"DodecahedronBufferGeometry":case"IcosahedronGeometry":case"IcosahedronBufferGeometry":case"OctahedronGeometry":case"OctahedronBufferGeometry":case"TetrahedronGeometry":case"TetrahedronBufferGeometry":v=new _n[p.type](p.radius,p.detail);break;case"RingGeometry":case"RingBufferGeometry":v=new _n[p.type](p.innerRadius,p.outerRadius,p.thetaSegments,p.phiSegments,p.thetaStart,p.thetaLength);break;case"TorusGeometry":case"TorusBufferGeometry":v=new _n[p.type](p.radius,p.tube,p.radialSegments,p.tubularSegments,p.arc);break;case"TorusKnotGeometry":case"TorusKnotBufferGeometry":v=new _n[p.type](p.radius,p.tube,p.tubularSegments,p.radialSegments,p.p,p.q);break;case"LatheGeometry":case"LatheBufferGeometry":v=new _n[p.type](p.points,p.segments,p.phiStart,p.phiLength);break;case"PolyhedronGeometry":case"PolyhedronBufferGeometry":v=new _n[p.type](p.vertices,p.indices,p.radius,p.details);break;case"ShapeGeometry":case"ShapeBufferGeometry":v=[];for(var w=0,C=p.shapes.length;w<C;w++){var P=e[p.shapes[w]];v.push(P)}v=new _n[p.type](v,p.curveSegments);break;case"ExtrudeGeometry":case"ExtrudeBufferGeometry":for(v=[],w=0,C=p.shapes.length;w<C;w++)P=e[p.shapes[w]],v.push(P);w=p.options.extrudePath,w!==void 0&&(p.options.extrudePath=new sh[w.type]().fromJSON(w)),v=new _n[p.type](v,p.options);break;case"BufferGeometry":v=s.parse(p);break;case"Geometry":v=n.parse(p,this.resourcePath).geometry;break;default:console.warn('THREE.ObjectLoader: Unsupported geometry type "'+p.type+'"');continue}v.uuid=p.uuid,p.name!==void 0&&(v.name=p.name),v.isBufferGeometry===!0&&p.userData!==void 0&&(v.userData=p.userData),i[p.uuid]=v}return i},parseMaterials:function(t,e){var i={},n={};if(t!==void 0){var s=new Kl;s.setTextures(e),e=0;for(var l=t.length;e<l;e++){var f=t[e];if(f.type==="MultiMaterial"){for(var p=[],v=0;v<f.materials.length;v++){var w=f.materials[v];i[w.uuid]===void 0&&(i[w.uuid]=s.parse(w)),p.push(i[w.uuid])}n[f.uuid]=p}else n[f.uuid]=s.parse(f),i[f.uuid]=n[f.uuid]}}return n},parseAnimations:function(t){for(var e=[],i=0;i<t.length;i++){var n=t[i],s=yr.parse(n);n.uuid!==void 0&&(s.uuid=n.uuid),e.push(s)}return e},parseImages:function(t,e){function i(B){return n.manager.itemStart(B),l.load(B,function(){n.manager.itemEnd(B)},void 0,function(){n.manager.itemError(B),n.manager.itemEnd(B)})}var n=this,s={};if(t!==void 0&&0<t.length){e=new to(e);var l=new ai(e);l.setCrossOrigin(this.crossOrigin),e=0;for(var f=t.length;e<f;e++){var p=t[e],v=p.url;if(Array.isArray(v)){s[p.uuid]=[];for(var w=0,C=v.length;w<C;w++){var P=v[w];P=/^(\/\/)|([a-z]+:(\/\/)?)/i.test(P)?P:n.resourcePath+P,s[p.uuid].push(i(P))}}else P=/^(\/\/)|([a-z]+:(\/\/)?)/i.test(p.url)?p.url:n.resourcePath+p.url,s[p.uuid]=i(P)}}return s},parseTextures:function(t,e){function i(v,w){return typeof v=="number"?v:(console.warn("THREE.ObjectLoader.parseTexture: Constant should be in numeric form.",v),w[v])}var n={};if(t!==void 0)for(var s=0,l=t.length;s<l;s++){var f=t[s];f.image===void 0&&console.warn('THREE.ObjectLoader: No "image" specified for',f.uuid),e[f.image]===void 0&&console.warn("THREE.ObjectLoader: Undefined image",f.image);var p=Array.isArray(e[f.image])?new z(e[f.image]):new _(e[f.image]);p.needsUpdate=!0,p.uuid=f.uuid,f.name!==void 0&&(p.name=f.name),f.mapping!==void 0&&(p.mapping=i(f.mapping,ku)),f.offset!==void 0&&p.offset.fromArray(f.offset),f.repeat!==void 0&&p.repeat.fromArray(f.repeat),f.center!==void 0&&p.center.fromArray(f.center),f.rotation!==void 0&&(p.rotation=f.rotation),f.wrap!==void 0&&(p.wrapS=i(f.wrap[0],Zn),p.wrapT=i(f.wrap[1],Zn)),f.format!==void 0&&(p.format=f.format),f.minFilter!==void 0&&(p.minFilter=i(f.minFilter,oh)),f.magFilter!==void 0&&(p.magFilter=i(f.magFilter,oh)),f.anisotropy!==void 0&&(p.anisotropy=f.anisotropy),f.flipY!==void 0&&(p.flipY=f.flipY),n[f.uuid]=p}return n},parseObject:function(t,e,i){function n(w){return e[w]===void 0&&console.warn("THREE.ObjectLoader: Undefined geometry",w),e[w]}function s(w){if(w!==void 0){if(Array.isArray(w)){for(var C=[],P=0,B=w.length;P<B;P++){var H=w[P];i[H]===void 0&&console.warn("THREE.ObjectLoader: Undefined material",H),C.push(i[H])}return C}return i[w]===void 0&&console.warn("THREE.ObjectLoader: Undefined material",w),i[w]}}switch(t.type){case"Scene":var l=new Xn;t.background!==void 0&&Number.isInteger(t.background)&&(l.background=new L(t.background)),t.fog!==void 0&&(t.fog.type==="Fog"?l.fog=new Sn(t.fog.color,t.fog.near,t.fog.far):t.fog.type==="FogExp2"&&(l.fog=new Le(t.fog.color,t.fog.density)));break;case"PerspectiveCamera":l=new ye(t.fov,t.aspect,t.near,t.far),t.focus!==void 0&&(l.focus=t.focus),t.zoom!==void 0&&(l.zoom=t.zoom),t.filmGauge!==void 0&&(l.filmGauge=t.filmGauge),t.filmOffset!==void 0&&(l.filmOffset=t.filmOffset),t.view!==void 0&&(l.view=Object.assign({},t.view));break;case"OrthographicCamera":l=new xa(t.left,t.right,t.top,t.bottom,t.near,t.far),t.zoom!==void 0&&(l.zoom=t.zoom),t.view!==void 0&&(l.view=Object.assign({},t.view));break;case"AmbientLight":l=new Io(t.color,t.intensity);break;case"DirectionalLight":l=new ys(t.color,t.intensity);break;case"PointLight":l=new Oo(t.color,t.intensity,t.distance,t.decay);break;case"RectAreaLight":l=new $l(t.color,t.intensity,t.width,t.height);break;case"SpotLight":l=new al(t.color,t.intensity,t.distance,t.angle,t.penumbra,t.decay);break;case"HemisphereLight":l=new sl(t.color,t.groundColor,t.intensity);break;case"SkinnedMesh":console.warn("THREE.ObjectLoader.parseObject() does not support SkinnedMesh yet.");case"Mesh":l=n(t.geometry);var f=s(t.material);l=l.bones&&0<l.bones.length?new Gi(l,f):new di(l,f);break;case"LOD":l=new rn;break;case"Line":l=new ji(n(t.geometry),s(t.material),t.mode);break;case"LineLoop":l=new cs(n(t.geometry),s(t.material));break;case"LineSegments":l=new gi(n(t.geometry),s(t.material));break;case"PointCloud":case"Points":l=new oa(n(t.geometry),s(t.material));break;case"Sprite":l=new nn(s(t.material));break;case"Group":l=new ci;break;default:l=new N}if(l.uuid=t.uuid,t.name!==void 0&&(l.name=t.name),t.matrix!==void 0?(l.matrix.fromArray(t.matrix),t.matrixAutoUpdate!==void 0&&(l.matrixAutoUpdate=t.matrixAutoUpdate),l.matrixAutoUpdate&&l.matrix.decompose(l.position,l.quaternion,l.scale)):(t.position!==void 0&&l.position.fromArray(t.position),t.rotation!==void 0&&l.rotation.fromArray(t.rotation),t.quaternion!==void 0&&l.quaternion.fromArray(t.quaternion),t.scale!==void 0&&l.scale.fromArray(t.scale)),t.castShadow!==void 0&&(l.castShadow=t.castShadow),t.receiveShadow!==void 0&&(l.receiveShadow=t.receiveShadow),t.shadow&&(t.shadow.bias!==void 0&&(l.shadow.bias=t.shadow.bias),t.shadow.radius!==void 0&&(l.shadow.radius=t.shadow.radius),t.shadow.mapSize!==void 0&&l.shadow.mapSize.fromArray(t.shadow.mapSize),t.shadow.camera!==void 0&&(l.shadow.camera=this.parseObject(t.shadow.camera))),t.visible!==void 0&&(l.visible=t.visible),t.frustumCulled!==void 0&&(l.frustumCulled=t.frustumCulled),t.renderOrder!==void 0&&(l.renderOrder=t.renderOrder),t.userData!==void 0&&(l.userData=t.userData),t.layers!==void 0&&(l.layers.mask=t.layers),t.children!==void 0){f=t.children;for(var p=0;p<f.length;p++)l.add(this.parseObject(f[p],e,i))}if(t.type==="LOD")for(t=t.levels,f=0;f<t.length;f++){p=t[f];var v=l.getObjectByProperty("uuid",p.object);v!==void 0&&l.addLevel(v,p.distance)}return l}});var ku={UVMapping:300,CubeReflectionMapping:301,CubeRefractionMapping:302,EquirectangularReflectionMapping:303,EquirectangularRefractionMapping:304,SphericalReflectionMapping:305,CubeUVReflectionMapping:306,CubeUVRefractionMapping:307},Zn={RepeatWrapping:1e3,ClampToEdgeWrapping:1001,MirroredRepeatWrapping:1002},oh={NearestFilter:1003,NearestMipMapNearestFilter:1004,NearestMipMapLinearFilter:1005,LinearFilter:1006,LinearMipMapNearestFilter:1007,LinearMipMapLinearFilter:1008};zh.prototype={constructor:zh,setOptions:function(t){return this.options=t,this},load:function(t,e,i,n){t===void 0&&(t=""),this.path!==void 0&&(t=this.path+t),t=this.manager.resolveURL(t);var s=this,l=Ts.get(t);if(l!==void 0)return s.manager.itemStart(t),setTimeout(function(){e&&e(l),s.manager.itemEnd(t)},0),l;fetch(t).then(function(f){return f.blob()}).then(function(f){return createImageBitmap(f,s.options)}).then(function(f){Ts.add(t,f),e&&e(f),s.manager.itemEnd(t)}).catch(function(f){n&&n(f),s.manager.itemError(t),s.manager.itemEnd(t)})},setCrossOrigin:function(){return this},setPath:function(t){return this.path=t,this}},Object.assign(Ql.prototype,{moveTo:function(t,e){this.currentPath=new fr,this.subPaths.push(this.currentPath),this.currentPath.moveTo(t,e)},lineTo:function(t,e){this.currentPath.lineTo(t,e)},quadraticCurveTo:function(t,e,i,n){this.currentPath.quadraticCurveTo(t,e,i,n)},bezierCurveTo:function(t,e,i,n,s,l){this.currentPath.bezierCurveTo(t,e,i,n,s,l)},splineThru:function(t){this.currentPath.splineThru(t)},toShapes:function(t,e){function i(rt){for(var xt=[],gt=0,At=rt.length;gt<At;gt++){var wt=rt[gt],Vt=new Qn;Vt.curves=wt.curves,xt.push(Vt)}return xt}function n(rt,xt){for(var gt=xt.length,At=!1,wt=gt-1,Vt=0;Vt<gt;wt=Vt++){var Z=xt[wt],st=xt[Vt],zt=st.x-Z.x,ee=st.y-Z.y;if(Math.abs(ee)>Number.EPSILON){if(0>ee&&(Z=xt[Vt],zt=-zt,st=xt[wt],ee=-ee),!(rt.y<Z.y||rt.y>st.y))if(rt.y===Z.y){if(rt.x===Z.x)return!0}else{if(wt=ee*(rt.x-Z.x)-zt*(rt.y-Z.y),wt===0)return!0;0>wt||(At=!At)}}else if(rt.y===Z.y&&(st.x<=rt.x&&rt.x<=Z.x||Z.x<=rt.x&&rt.x<=st.x))return!0}return At}var s=ws.isClockWise,l=this.subPaths;if(l.length===0)return[];if(e===!0)return i(l);if(e=[],l.length===1){var f=l[0],p=new Qn;return p.curves=f.curves,e.push(p),e}var v=!s(l[0].getPoints());v=t?!v:v,p=[];var w=[],C=[],P=0;w[P]=void 0,C[P]=[];for(var B=0,H=l.length;B<H;B++){f=l[B];var q=f.getPoints(),K=s(q);(K=t?!K:K)?(!v&&w[P]&&P++,w[P]={s:new Qn,p:q},w[P].s.curves=f.curves,v&&P++,C[P]=[]):C[P].push({h:f,p:q[0]})}if(!w[0])return i(l);if(1<w.length){for(B=!1,t=[],s=0,l=w.length;s<l;s++)p[s]=[];for(s=0,l=w.length;s<l;s++)for(f=C[s],K=0;K<f.length;K++){for(v=f[K],P=!0,q=0;q<w.length;q++)n(v.p,w[q].p)&&(s!==q&&t.push({froms:s,tos:q,hole:K}),P?(P=!1,p[q].push(v)):B=!0);P&&p[s].push(v)}0<t.length&&(B||(C=p))}for(B=0,s=w.length;B<s;B++)for(p=w[B].s,e.push(p),t=C[B],l=0,f=t.length;l<f;l++)p.holes.push(t[l].h);return e}}),Object.assign(kh.prototype,{isFont:!0,generateShapes:function(t,e){e===void 0&&(e=100);var i=[],n=e;e=this.data;var s=Array.from?Array.from(t):String(t).split("");n/=e.resolution;var l=(e.boundingBox.yMax-e.boundingBox.yMin+e.underlineThickness)*n;t=[];for(var f=0,p=0,v=0;v<s.length;v++){var w=s[v];if(w===`
2571
+ `)f=0,p-=l;else{var C=n,P=f,B=p;if(w=e.glyphs[w]||e.glyphs["?"]){var H=new Ql;if(w.o)for(var q=w._cachedOutline||(w._cachedOutline=w.o.split(" ")),K=0,rt=q.length;K<rt;)switch(q[K++]){case"m":var xt=q[K++]*C+P,gt=q[K++]*C+B;H.moveTo(xt,gt);break;case"l":xt=q[K++]*C+P,gt=q[K++]*C+B,H.lineTo(xt,gt);break;case"q":var At=q[K++]*C+P,wt=q[K++]*C+B,Vt=q[K++]*C+P,Z=q[K++]*C+B;H.quadraticCurveTo(Vt,Z,At,wt);break;case"b":At=q[K++]*C+P,wt=q[K++]*C+B,Vt=q[K++]*C+P,Z=q[K++]*C+B,xt=q[K++]*C+P,gt=q[K++]*C+B,H.bezierCurveTo(Vt,Z,xt,gt,At,wt)}C={offsetX:w.ha*C,path:H}}else C=void 0;f+=C.offsetX,t.push(C.path)}}for(e=0,s=t.length;e<s;e++)Array.prototype.push.apply(i,t[e].toShapes());return i}}),Object.assign(bu.prototype,{load:function(t,e,i,n){var s=this,l=new Lt(this.manager);l.setPath(this.path),l.load(t,function(f){try{var p=JSON.parse(f)}catch{console.warn("THREE.FontLoader: typeface.js support is being deprecated. Use typeface.json instead."),p=JSON.parse(f.substring(65,f.length-2))}f=s.parse(p),e&&e(f)},i,n)},parse:function(t){return new kh(t)},setPath:function(t){return this.path=t,this}});var ah,qh={getContext:function(){return ah===void 0&&(ah=new(window.AudioContext||window.webkitAudioContext)),ah},setContext:function(t){ah=t}};Object.assign(vn.prototype,{load:function(t,e,i,n){var s=new Lt(this.manager);s.setResponseType("arraybuffer"),s.setPath(this.path),s.load(t,function(l){l=l.slice(0),qh.getContext().decodeAudioData(l,function(f){e(f)})},i,n)},setPath:function(t){return this.path=t,this}}),Object.assign(Vn.prototype,{update:function(){var t,e,i,n,s,l,f,p,v=new c,w=new c;return function(C){if(t!==this||e!==C.focus||i!==C.fov||n!==C.aspect*this.aspect||s!==C.near||l!==C.far||f!==C.zoom||p!==this.eyeSep){t=this,e=C.focus,i=C.fov,n=C.aspect*this.aspect,s=C.near,l=C.far,f=C.zoom;var P=C.projectionMatrix.clone();p=this.eyeSep/2;var B=p*s/e,H=s*Math.tan(pi.DEG2RAD*i*.5)/f;w.elements[12]=-p,v.elements[12]=p;var q=-H*n+B,K=H*n+B;P.elements[0]=2*s/(K-q),P.elements[8]=(K+q)/(K-q),this.cameraL.projectionMatrix.copy(P),q=-H*n-B,K=H*n-B,P.elements[0]=2*s/(K-q),P.elements[8]=(K+q)/(K-q),this.cameraR.projectionMatrix.copy(P)}this.cameraL.matrixWorld.copy(C.matrixWorld).multiply(w),this.cameraR.matrixWorld.copy(C.matrixWorld).multiply(v)}}()}),hl.prototype=Object.create(N.prototype),hl.prototype.constructor=hl,Object.assign(Bh.prototype,{start:function(){this.oldTime=this.startTime=(typeof performance>"u"?Date:performance).now(),this.elapsedTime=0,this.running=!0},stop:function(){this.getElapsedTime(),this.autoStart=this.running=!1},getElapsedTime:function(){return this.getDelta(),this.elapsedTime},getDelta:function(){var t=0;if(this.autoStart&&!this.running)return this.start(),0;if(this.running){var e=(typeof performance>"u"?Date:performance).now();t=(e-this.oldTime)/1e3,this.oldTime=e,this.elapsedTime+=t}return t}}),th.prototype=Object.assign(Object.create(N.prototype),{constructor:th,getInput:function(){return this.gain},removeFilter:function(){return this.filter!==null&&(this.gain.disconnect(this.filter),this.filter.disconnect(this.context.destination),this.gain.connect(this.context.destination),this.filter=null),this},getFilter:function(){return this.filter},setFilter:function(t){return this.filter!==null?(this.gain.disconnect(this.filter),this.filter.disconnect(this.context.destination)):this.gain.disconnect(this.context.destination),this.filter=t,this.gain.connect(this.filter),this.filter.connect(this.context.destination),this},getMasterVolume:function(){return this.gain.gain.value},setMasterVolume:function(t){return this.gain.gain.setTargetAtTime(t,this.context.currentTime,.01),this},updateMatrixWorld:function(){var t=new u,e=new d,i=new u,n=new u,s=new Bh;return function(l){N.prototype.updateMatrixWorld.call(this,l),l=this.context.listener;var f=this.up;if(this.timeDelta=s.getDelta(),this.matrixWorld.decompose(t,e,i),n.set(0,0,-1).applyQuaternion(e),l.positionX){var p=this.context.currentTime+this.timeDelta;l.positionX.linearRampToValueAtTime(t.x,p),l.positionY.linearRampToValueAtTime(t.y,p),l.positionZ.linearRampToValueAtTime(t.z,p),l.forwardX.linearRampToValueAtTime(n.x,p),l.forwardY.linearRampToValueAtTime(n.y,p),l.forwardZ.linearRampToValueAtTime(n.z,p),l.upX.linearRampToValueAtTime(f.x,p),l.upY.linearRampToValueAtTime(f.y,p),l.upZ.linearRampToValueAtTime(f.z,p)}else l.setPosition(t.x,t.y,t.z),l.setOrientation(n.x,n.y,n.z,f.x,f.y,f.z)}}()}),wa.prototype=Object.assign(Object.create(N.prototype),{constructor:wa,getOutput:function(){return this.gain},setNodeSource:function(t){return this.hasPlaybackControl=!1,this.sourceType="audioNode",this.source=t,this.connect(),this},setMediaElementSource:function(t){return this.hasPlaybackControl=!1,this.sourceType="mediaNode",this.source=this.context.createMediaElementSource(t),this.connect(),this},setBuffer:function(t){return this.buffer=t,this.sourceType="buffer",this.autoplay&&this.play(),this},play:function(){if(this.isPlaying===!0)console.warn("THREE.Audio: Audio is already playing.");else if(this.hasPlaybackControl===!1)console.warn("THREE.Audio: this Audio has no playback control.");else{var t=this.context.createBufferSource();return t.buffer=this.buffer,t.loop=this.loop,t.onended=this.onEnded.bind(this),t.playbackRate.setValueAtTime(this.playbackRate,this.startTime),this.startTime=this.context.currentTime,t.start(this.startTime,this.offset),this.isPlaying=!0,this.source=t,this.connect()}},pause:function(){if(this.hasPlaybackControl===!1)console.warn("THREE.Audio: this Audio has no playback control.");else return this.isPlaying===!0&&(this.source.stop(),this.source.onended=null,this.offset+=(this.context.currentTime-this.startTime)*this.playbackRate,this.isPlaying=!1),this},stop:function(){if(this.hasPlaybackControl===!1)console.warn("THREE.Audio: this Audio has no playback control.");else return this.source.stop(),this.source.onended=null,this.offset=0,this.isPlaying=!1,this},connect:function(){if(0<this.filters.length){this.source.connect(this.filters[0]);for(var t=1,e=this.filters.length;t<e;t++)this.filters[t-1].connect(this.filters[t]);this.filters[this.filters.length-1].connect(this.getOutput())}else this.source.connect(this.getOutput());return this},disconnect:function(){if(0<this.filters.length){this.source.disconnect(this.filters[0]);for(var t=1,e=this.filters.length;t<e;t++)this.filters[t-1].disconnect(this.filters[t]);this.filters[this.filters.length-1].disconnect(this.getOutput())}else this.source.disconnect(this.getOutput());return this},getFilters:function(){return this.filters},setFilters:function(t){return t||(t=[]),this.isPlaying===!0?(this.disconnect(),this.filters=t,this.connect()):this.filters=t,this},getFilter:function(){return this.getFilters()[0]},setFilter:function(t){return this.setFilters(t?[t]:[])},setPlaybackRate:function(t){if(this.hasPlaybackControl===!1)console.warn("THREE.Audio: this Audio has no playback control.");else return this.playbackRate=t,this.isPlaying===!0&&this.source.playbackRate.setValueAtTime(this.playbackRate,this.context.currentTime),this},getPlaybackRate:function(){return this.playbackRate},onEnded:function(){this.isPlaying=!1},getLoop:function(){return this.hasPlaybackControl===!1?(console.warn("THREE.Audio: this Audio has no playback control."),!1):this.loop},setLoop:function(t){if(this.hasPlaybackControl===!1)console.warn("THREE.Audio: this Audio has no playback control.");else return this.loop=t,this.isPlaying===!0&&(this.source.loop=this.loop),this},getVolume:function(){return this.gain.gain.value},setVolume:function(t){return this.gain.gain.setTargetAtTime(t,this.context.currentTime,.01),this}}),ul.prototype=Object.assign(Object.create(wa.prototype),{constructor:ul,getOutput:function(){return this.panner},getRefDistance:function(){return this.panner.refDistance},setRefDistance:function(t){return this.panner.refDistance=t,this},getRolloffFactor:function(){return this.panner.rolloffFactor},setRolloffFactor:function(t){return this.panner.rolloffFactor=t,this},getDistanceModel:function(){return this.panner.distanceModel},setDistanceModel:function(t){return this.panner.distanceModel=t,this},getMaxDistance:function(){return this.panner.maxDistance},setMaxDistance:function(t){return this.panner.maxDistance=t,this},setDirectionalCone:function(t,e,i){return this.panner.coneInnerAngle=t,this.panner.coneOuterAngle=e,this.panner.coneOuterGain=i,this},updateMatrixWorld:function(){var t=new u,e=new d,i=new u,n=new u;return function(s){if(N.prototype.updateMatrixWorld.call(this,s),s=this.panner,this.matrixWorld.decompose(t,e,i),n.set(0,0,1).applyQuaternion(e),s.positionX){var l=this.context.currentTime+this.listener.timeDelta;s.positionX.linearRampToValueAtTime(t.x,l),s.positionY.linearRampToValueAtTime(t.y,l),s.positionZ.linearRampToValueAtTime(t.z,l),s.orientationX.linearRampToValueAtTime(n.x,l),s.orientationY.linearRampToValueAtTime(n.y,l),s.orientationZ.linearRampToValueAtTime(n.z,l)}else s.setPosition(t.x,t.y,t.z),s.setOrientation(n.x,n.y,n.z)}}()}),Object.assign(zo.prototype,{getFrequencyData:function(){return this.analyser.getByteFrequencyData(this.data),this.data},getAverageFrequency:function(){for(var t=0,e=this.getFrequencyData(),i=0;i<e.length;i++)t+=e[i];return t/e.length}}),Object.assign(cl.prototype,{accumulate:function(t,e){var i=this.buffer,n=this.valueSize;t=t*n+n;var s=this.cumulativeWeight;if(s===0){for(s=0;s!==n;++s)i[t+s]=i[s];s=e}else s+=e,this._mixBufferRegion(i,t,0,e/s,n);this.cumulativeWeight=s},apply:function(t){var e=this.valueSize,i=this.buffer;t=t*e+e;var n=this.cumulativeWeight,s=this.binding;this.cumulativeWeight=0,1>n&&this._mixBufferRegion(i,t,3*e,1-n,e),n=e;for(var l=e+e;n!==l;++n)if(i[n]!==i[n+e]){s.setValue(i,t);break}},saveOriginalState:function(){var t=this.buffer,e=this.valueSize,i=3*e;this.binding.getValue(t,i);for(var n=e;n!==i;++n)t[n]=t[i+n%e];this.cumulativeWeight=0},restoreOriginalState:function(){this.binding.setValue(this.buffer,3*this.valueSize)},_select:function(t,e,i,n,s){if(.5<=n)for(n=0;n!==s;++n)t[e+n]=t[i+n]},_slerp:function(t,e,i,n){d.slerpFlat(t,e,t,e,t,i,n)},_lerp:function(t,e,i,n,s){for(var l=1-n,f=0;f!==s;++f){var p=e+f;t[p]=t[p]*l+t[i+f]*n}}}),Object.assign(ko.prototype,{getValue:function(t,e){this.bind();var i=this._bindings[this._targetGroup.nCachedObjects_];i!==void 0&&i.getValue(t,e)},setValue:function(t,e){for(var i=this._bindings,n=this._targetGroup.nCachedObjects_,s=i.length;n!==s;++n)i[n].setValue(t,e)},bind:function(){for(var t=this._bindings,e=this._targetGroup.nCachedObjects_,i=t.length;e!==i;++e)t[e].bind()},unbind:function(){for(var t=this._bindings,e=this._targetGroup.nCachedObjects_,i=t.length;e!==i;++e)t[e].unbind()}}),Object.assign(En,{Composite:ko,create:function(t,e,i){return t&&t.isAnimationObjectGroup?new En.Composite(t,e,i):new En(t,e,i)},sanitizeNodeName:function(){var t=/[\[\]\.:\/]/g;return function(e){return e.replace(/\s/g,"_").replace(t,"")}}(),parseTrackName:function(){var t="[^"+"\\[\\]\\.:\\/".replace("\\.","")+"]",e=/((?:WC+[\/:])*)/.source.replace("WC","[^\\[\\]\\.:\\/]");t=/(WCOD+)?/.source.replace("WCOD",t);var i=/(?:\.(WC+)(?:\[(.+)\])?)?/.source.replace("WC","[^\\[\\]\\.:\\/]"),n=/\.(WC+)(?:\[(.+)\])?/.source.replace("WC","[^\\[\\]\\.:\\/]"),s=new RegExp("^"+e+t+i+n+"$"),l=["material","materials","bones"];return function(f){var p=s.exec(f);if(!p)throw Error("PropertyBinding: Cannot parse trackName: "+f);p={nodeName:p[2],objectName:p[3],objectIndex:p[4],propertyName:p[5],propertyIndex:p[6]};var v=p.nodeName&&p.nodeName.lastIndexOf(".");if(v!==void 0&&v!==-1){var w=p.nodeName.substring(v+1);l.indexOf(w)!==-1&&(p.nodeName=p.nodeName.substring(0,v),p.objectName=w)}if(p.propertyName===null||p.propertyName.length===0)throw Error("PropertyBinding: can not parse propertyName from trackName: "+f);return p}}(),findNode:function(t,e){if(!e||e===""||e==="root"||e==="."||e===-1||e===t.name||e===t.uuid)return t;if(t.skeleton){var i=t.skeleton.getBoneByName(e);if(i!==void 0)return i}if(t.children){var n=function(s){for(var l=0;l<s.length;l++){var f=s[l];if(f.name===e||f.uuid===e||(f=n(f.children)))return f}return null};if(t=n(t.children))return t}return null}}),Object.assign(En.prototype,{_getValue_unavailable:function(){},_setValue_unavailable:function(){},BindingType:{Direct:0,EntireArray:1,ArrayElement:2,HasFromToArray:3},Versioning:{None:0,NeedsUpdate:1,MatrixWorldNeedsUpdate:2},GetterByBindingType:[function(t,e){t[e]=this.node[this.propertyName]},function(t,e){for(var i=this.resolvedProperty,n=0,s=i.length;n!==s;++n)t[e++]=i[n]},function(t,e){t[e]=this.resolvedProperty[this.propertyIndex]},function(t,e){this.resolvedProperty.toArray(t,e)}],SetterByBindingTypeAndVersioning:[[function(t,e){this.targetObject[this.propertyName]=t[e]},function(t,e){this.targetObject[this.propertyName]=t[e],this.targetObject.needsUpdate=!0},function(t,e){this.targetObject[this.propertyName]=t[e],this.targetObject.matrixWorldNeedsUpdate=!0}],[function(t,e){for(var i=this.resolvedProperty,n=0,s=i.length;n!==s;++n)i[n]=t[e++]},function(t,e){for(var i=this.resolvedProperty,n=0,s=i.length;n!==s;++n)i[n]=t[e++];this.targetObject.needsUpdate=!0},function(t,e){for(var i=this.resolvedProperty,n=0,s=i.length;n!==s;++n)i[n]=t[e++];this.targetObject.matrixWorldNeedsUpdate=!0}],[function(t,e){this.resolvedProperty[this.propertyIndex]=t[e]},function(t,e){this.resolvedProperty[this.propertyIndex]=t[e],this.targetObject.needsUpdate=!0},function(t,e){this.resolvedProperty[this.propertyIndex]=t[e],this.targetObject.matrixWorldNeedsUpdate=!0}],[function(t,e){this.resolvedProperty.fromArray(t,e)},function(t,e){this.resolvedProperty.fromArray(t,e),this.targetObject.needsUpdate=!0},function(t,e){this.resolvedProperty.fromArray(t,e),this.targetObject.matrixWorldNeedsUpdate=!0}]],getValue:function(t,e){this.bind(),this.getValue(t,e)},setValue:function(t,e){this.bind(),this.setValue(t,e)},bind:function(){var t=this.node,e=this.parsedPath,i=e.objectName,n=e.propertyName,s=e.propertyIndex;if(t||(this.node=t=En.findNode(this.rootNode,e.nodeName)||this.rootNode),this.getValue=this._getValue_unavailable,this.setValue=this._setValue_unavailable,t){if(i){var l=e.objectIndex;switch(i){case"materials":if(!t.material){console.error("THREE.PropertyBinding: Can not bind to material as node does not have a material.",this);return}if(!t.material.materials){console.error("THREE.PropertyBinding: Can not bind to material.materials as node.material does not have a materials array.",this);return}t=t.material.materials;break;case"bones":if(!t.skeleton){console.error("THREE.PropertyBinding: Can not bind to bones as node does not have a skeleton.",this);return}for(t=t.skeleton.bones,i=0;i<t.length;i++)if(t[i].name===l){l=i;break}break;default:if(t[i]===void 0){console.error("THREE.PropertyBinding: Can not bind to objectName of node undefined.",this);return}t=t[i]}if(l!==void 0){if(t[l]===void 0){console.error("THREE.PropertyBinding: Trying to bind to objectIndex of objectName, but is undefined.",this,t);return}t=t[l]}}if(l=t[n],l===void 0)console.error("THREE.PropertyBinding: Trying to update property for track: "+e.nodeName+"."+n+" but it wasn't found.",t);else{if(e=this.Versioning.None,this.targetObject=t,t.needsUpdate!==void 0?e=this.Versioning.NeedsUpdate:t.matrixWorldNeedsUpdate!==void 0&&(e=this.Versioning.MatrixWorldNeedsUpdate),i=this.BindingType.Direct,s!==void 0){if(n==="morphTargetInfluences"){if(!t.geometry){console.error("THREE.PropertyBinding: Can not bind to morphTargetInfluences because node does not have a geometry.",this);return}if(t.geometry.isBufferGeometry){if(!t.geometry.morphAttributes){console.error("THREE.PropertyBinding: Can not bind to morphTargetInfluences because node does not have a geometry.morphAttributes.",this);return}for(i=0;i<this.node.geometry.morphAttributes.position.length;i++)if(t.geometry.morphAttributes.position[i].name===s){s=i;break}}else{if(!t.geometry.morphTargets){console.error("THREE.PropertyBinding: Can not bind to morphTargetInfluences because node does not have a geometry.morphTargets.",this);return}for(i=0;i<this.node.geometry.morphTargets.length;i++)if(t.geometry.morphTargets[i].name===s){s=i;break}}}i=this.BindingType.ArrayElement,this.resolvedProperty=l,this.propertyIndex=s}else l.fromArray!==void 0&&l.toArray!==void 0?(i=this.BindingType.HasFromToArray,this.resolvedProperty=l):Array.isArray(l)?(i=this.BindingType.EntireArray,this.resolvedProperty=l):this.propertyName=n;this.getValue=this.GetterByBindingType[i],this.setValue=this.SetterByBindingTypeAndVersioning[i][e]}}else console.error("THREE.PropertyBinding: Trying to update node for track: "+this.path+" but it wasn't found.")},unbind:function(){this.node=null,this.getValue=this._getValue_unbound,this.setValue=this._setValue_unbound}}),Object.assign(En.prototype,{_getValue_unbound:En.prototype.getValue,_setValue_unbound:En.prototype.setValue}),Object.assign(Ta.prototype,{isAnimationObjectGroup:!0,add:function(){for(var t=this._objects,e=t.length,i=this.nCachedObjects_,n=this._indicesByUUID,s=this._paths,l=this._parsedPaths,f=this._bindings,p=f.length,v=void 0,w=0,C=arguments.length;w!==C;++w){var P=arguments[w],B=P.uuid,H=n[B];if(H===void 0){H=e++,n[B]=H,t.push(P),B=0;for(var q=p;B!==q;++B)f[B].push(new En(P,s[B],l[B]))}else if(H<i){v=t[H];var K=--i;for(q=t[K],n[q.uuid]=H,t[H]=q,n[B]=K,t[K]=P,B=0,q=p;B!==q;++B){var rt=f[B],xt=rt[H];rt[H]=rt[K],xt===void 0&&(xt=new En(P,s[B],l[B])),rt[K]=xt}}else t[H]!==v&&console.error("THREE.AnimationObjectGroup: Different objects with the same UUID detected. Clean the caches or recreate your infrastructure when reloading scenes.")}this.nCachedObjects_=i},remove:function(){for(var t=this._objects,e=this.nCachedObjects_,i=this._indicesByUUID,n=this._bindings,s=n.length,l=0,f=arguments.length;l!==f;++l){var p=arguments[l],v=p.uuid,w=i[v];if(w!==void 0&&w>=e){var C=e++,P=t[C];for(i[P.uuid]=w,t[w]=P,i[v]=C,t[C]=p,p=0,v=s;p!==v;++p){P=n[p];var B=P[w];P[w]=P[C],P[C]=B}}}this.nCachedObjects_=e},uncache:function(){for(var t=this._objects,e=t.length,i=this.nCachedObjects_,n=this._indicesByUUID,s=this._bindings,l=s.length,f=0,p=arguments.length;f!==p;++f){var v=arguments[f].uuid,w=n[v];if(w!==void 0)if(delete n[v],w<i){v=--i;var C=t[v],P=--e,B=t[P];for(n[C.uuid]=w,t[w]=C,n[B.uuid]=v,t[v]=B,t.pop(),C=0,B=l;C!==B;++C){var H=s[C],q=H[P];H[w]=H[v],H[v]=q,H.pop()}}else for(P=--e,B=t[P],n[B.uuid]=w,t[w]=B,t.pop(),C=0,B=l;C!==B;++C)H=s[C],H[w]=H[P],H.pop()}this.nCachedObjects_=i},subscribe_:function(t,e){var i=this._bindingsIndicesByPath,n=i[t],s=this._bindings;if(n!==void 0)return s[n];var l=this._paths,f=this._parsedPaths,p=this._objects,v=this.nCachedObjects_,w=Array(p.length);for(n=s.length,i[t]=n,l.push(t),f.push(e),s.push(w),i=v,n=p.length;i!==n;++i)w[i]=new En(p[i],t,e);return w},unsubscribe_:function(t){var e=this._bindingsIndicesByPath,i=e[t];if(i!==void 0){var n=this._paths,s=this._parsedPaths,l=this._bindings,f=l.length-1,p=l[f];e[t[f]]=i,l[i]=p,l.pop(),s[i]=s[f],s.pop(),n[i]=n[f],n.pop()}}}),Object.assign(fl.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&&this.timeScale!==0&&this._startTime===null&&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,i){if(t.fadeOut(e),this.fadeIn(e),i){i=this._clip.duration;var n=t._clip.duration,s=i/n;t.warp(1,n/i,e),this.warp(s,1,e)}return this},crossFadeTo:function(t,e,i){return t.crossFadeFrom(this,e,i)},stopFading:function(){var t=this._weightInterpolant;return t!==null&&(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,i){var n=this._mixer,s=n.time,l=this._timeScaleInterpolant,f=this.timeScale;return l===null&&(this._timeScaleInterpolant=l=n._lendControlInterpolant()),n=l.parameterPositions,l=l.sampleValues,n[0]=s,n[1]=s+i,l[0]=t/f,l[1]=e/f,this},stopWarping:function(){var t=this._timeScaleInterpolant;return t!==null&&(this._timeScaleInterpolant=null,this._mixer._takeBackControlInterpolant(t)),this},getMixer:function(){return this._mixer},getClip:function(){return this._clip},getRoot:function(){return this._localRoot||this._mixer._root},_update:function(t,e,i,n){if(this.enabled){var s=this._startTime;if(s!==null){if(e=(t-s)*i,0>e||i===0)return;this._startTime=null,e*=i}if(e*=this._updateTimeScale(t),i=this._updateTime(e),t=this._updateWeight(t),0<t){e=this._interpolants,s=this._propertyBindings;for(var l=0,f=e.length;l!==f;++l)e[l].evaluate(i),s[l].accumulate(n,t)}}else this._updateWeight(t)},_updateWeight:function(t){var e=0;if(this.enabled){e=this.weight;var i=this._weightInterpolant;if(i!==null){var n=i.evaluate(t)[0];e*=n,t>i.parameterPositions[1]&&(this.stopFading(),n===0&&(this.enabled=!1))}}return this._effectiveWeight=e},_updateTimeScale:function(t){var e=0;if(!this.paused){e=this.timeScale;var i=this._timeScaleInterpolant;if(i!==null){var n=i.evaluate(t)[0];e*=n,t>i.parameterPositions[1]&&(this.stopWarping(),e===0?this.paused=!0:this.timeScale=e)}}return this._effectiveTimeScale=e},_updateTime:function(t){var e=this.time+t,i=this._clip.duration,n=this.loop,s=this._loopCount,l=n===2202;if(t===0)return s===-1?e:l&&(s&1)===1?i-e:e;if(n===2200)t:{if(s===-1&&(this._loopCount=0,this._setEndings(!0,!0,!1)),e>=i)e=i;else if(0>e)e=0;else break t;this.clampWhenFinished?this.paused=!0:this.enabled=!1,this._mixer.dispatchEvent({type:"finished",action:this,direction:0>t?-1:1})}else{if(s===-1&&(0<=t?(s=0,this._setEndings(!0,this.repetitions===0,l)):this._setEndings(this.repetitions===0,!0,l)),e>=i||0>e){n=Math.floor(e/i),e-=i*n,s+=Math.abs(n);var f=this.repetitions-s;0>=f?(this.clampWhenFinished?this.paused=!0:this.enabled=!1,e=0<t?i:0,this._mixer.dispatchEvent({type:"finished",action:this,direction:0<t?1:-1})):(f===1?(t=0>t,this._setEndings(t,!t,l)):this._setEndings(!1,!1,l),this._loopCount=s,this._mixer.dispatchEvent({type:"loop",action:this,loopDelta:n}))}if(l&&(s&1)===1)return this.time=e,i-e}return this.time=e},_setEndings:function(t,e,i){var n=this._interpolantSettings;i?(n.endingStart=2401,n.endingEnd=2401):(n.endingStart=t?this.zeroSlopeAtStart?2401:2400:2402,n.endingEnd=e?this.zeroSlopeAtEnd?2401:2400:2402)},_scheduleFading:function(t,e,i){var n=this._mixer,s=n.time,l=this._weightInterpolant;return l===null&&(this._weightInterpolant=l=n._lendControlInterpolant()),n=l.parameterPositions,l=l.sampleValues,n[0]=s,l[0]=e,n[1]=s+t,l[1]=i,this}}),no.prototype=Object.assign(Object.create(a.prototype),{constructor:no,_bindAction:function(t,e){var i=t._localRoot||this._root,n=t._clip.tracks,s=n.length,l=t._propertyBindings;t=t._interpolants;var f=i.uuid,p=this._bindingsByRootAndName,v=p[f];for(v===void 0&&(v={},p[f]=v),p=0;p!==s;++p){var w=n[p],C=w.name,P=v[C];if(P===void 0){if(P=l[p],P!==void 0){P._cacheIndex===null&&(++P.referenceCount,this._addInactiveBinding(P,f,C));continue}P=new cl(En.create(i,C,e&&e._propertyBindings[p].binding.parsedPath),w.ValueTypeName,w.getValueSize()),++P.referenceCount,this._addInactiveBinding(P,f,C)}l[p]=P,t[p].resultBuffer=P.buffer}},_activateAction:function(t){if(!this._isActiveAction(t)){if(t._cacheIndex===null){var e=(t._localRoot||this._root).uuid,i=t._clip.uuid,n=this._actionsByClip[i];this._bindAction(t,n&&n.knownActions[0]),this._addInactiveAction(t,i,e)}for(e=t._propertyBindings,i=0,n=e.length;i!==n;++i){var s=e[i];s.useCount++===0&&(this._lendBinding(s),s.saveOriginalState())}this._lendAction(t)}},_deactivateAction:function(t){if(this._isActiveAction(t)){for(var e=t._propertyBindings,i=0,n=e.length;i!==n;++i){var s=e[i];--s.useCount===0&&(s.restoreOriginalState(),this._takeBackBinding(s))}this._takeBackAction(t)}},_initMemoryManager:function(){this._actions=[],this._nActiveActions=0,this._actionsByClip={},this._bindings=[],this._nActiveBindings=0,this._bindingsByRootAndName={},this._controlInterpolants=[],this._nActiveControlInterpolants=0;var t=this;this.stats={actions:{get total(){return t._actions.length},get inUse(){return t._nActiveActions}},bindings:{get total(){return t._bindings.length},get inUse(){return t._nActiveBindings}},controlInterpolants:{get total(){return t._controlInterpolants.length},get inUse(){return t._nActiveControlInterpolants}}}},_isActiveAction:function(t){return t=t._cacheIndex,t!==null&&t<this._nActiveActions},_addInactiveAction:function(t,e,i){var n=this._actions,s=this._actionsByClip,l=s[e];l===void 0?(l={knownActions:[t],actionByRoot:{}},t._byClipCacheIndex=0,s[e]=l):(e=l.knownActions,t._byClipCacheIndex=e.length,e.push(t)),t._cacheIndex=n.length,n.push(t),l.actionByRoot[i]=t},_removeInactiveAction:function(t){var e=this._actions,i=e[e.length-1],n=t._cacheIndex;i._cacheIndex=n,e[n]=i,e.pop(),t._cacheIndex=null,e=t._clip.uuid,i=this._actionsByClip,n=i[e];var s=n.knownActions,l=s[s.length-1],f=t._byClipCacheIndex;l._byClipCacheIndex=f,s[f]=l,s.pop(),t._byClipCacheIndex=null,delete n.actionByRoot[(t._localRoot||this._root).uuid],s.length===0&&delete i[e],this._removeInactiveBindingsForAction(t)},_removeInactiveBindingsForAction:function(t){t=t._propertyBindings;for(var e=0,i=t.length;e!==i;++e){var n=t[e];--n.referenceCount===0&&this._removeInactiveBinding(n)}},_lendAction:function(t){var e=this._actions,i=t._cacheIndex,n=this._nActiveActions++,s=e[n];t._cacheIndex=n,e[n]=t,s._cacheIndex=i,e[i]=s},_takeBackAction:function(t){var e=this._actions,i=t._cacheIndex,n=--this._nActiveActions,s=e[n];t._cacheIndex=n,e[n]=t,s._cacheIndex=i,e[i]=s},_addInactiveBinding:function(t,e,i){var n=this._bindingsByRootAndName,s=n[e],l=this._bindings;s===void 0&&(s={},n[e]=s),s[i]=t,t._cacheIndex=l.length,l.push(t)},_removeInactiveBinding:function(t){var e=this._bindings,i=t.binding,n=i.rootNode.uuid;i=i.path;var s=this._bindingsByRootAndName,l=s[n],f=e[e.length-1];t=t._cacheIndex,f._cacheIndex=t,e[t]=f,e.pop(),delete l[i];t:{for(var p in l)break t;delete s[n]}},_lendBinding:function(t){var e=this._bindings,i=t._cacheIndex,n=this._nActiveBindings++,s=e[n];t._cacheIndex=n,e[n]=t,s._cacheIndex=i,e[i]=s},_takeBackBinding:function(t){var e=this._bindings,i=t._cacheIndex,n=--this._nActiveBindings,s=e[n];t._cacheIndex=n,e[n]=t,s._cacheIndex=i,e[i]=s},_lendControlInterpolant:function(){var t=this._controlInterpolants,e=this._nActiveControlInterpolants++,i=t[e];return i===void 0&&(i=new Dr(new Float32Array(2),new Float32Array(2),1,this._controlInterpolantsResultBuffer),i.__cacheIndex=e,t[e]=i),i},_takeBackControlInterpolant:function(t){var e=this._controlInterpolants,i=t.__cacheIndex,n=--this._nActiveControlInterpolants,s=e[n];t.__cacheIndex=n,e[n]=t,s.__cacheIndex=i,e[i]=s},_controlInterpolantsResultBuffer:new Float32Array(1),clipAction:function(t,e){var i=e||this._root,n=i.uuid;i=typeof t=="string"?yr.findByName(i,t):t,t=i!==null?i.uuid:t;var s=this._actionsByClip[t],l=null;if(s!==void 0){if(l=s.actionByRoot[n],l!==void 0)return l;l=s.knownActions[0],i===null&&(i=l._clip)}return i===null?null:(e=new fl(this,i,e),this._bindAction(e,l),this._addInactiveAction(e,t,n),e)},existingAction:function(t,e){var i=e||this._root;return e=i.uuid,i=typeof t=="string"?yr.findByName(i,t):t,t=this._actionsByClip[i?i.uuid:t],t!==void 0&&t.actionByRoot[e]||null},stopAllAction:function(){for(var t=this._actions,e=this._nActiveActions,i=this._bindings,n=this._nActiveBindings,s=this._nActiveBindings=this._nActiveActions=0;s!==e;++s)t[s].reset();for(s=0;s!==n;++s)i[s].useCount=0;return this},update:function(t){t*=this.timeScale;for(var e=this._actions,i=this._nActiveActions,n=this.time+=t,s=Math.sign(t),l=this._accuIndex^=1,f=0;f!==i;++f)e[f]._update(n,t,s,l);for(t=this._bindings,e=this._nActiveBindings,f=0;f!==e;++f)t[f].apply(l);return this},getRoot:function(){return this._root},uncacheClip:function(t){var e=this._actions;t=t.uuid;var i=this._actionsByClip,n=i[t];if(n!==void 0){n=n.knownActions;for(var s=0,l=n.length;s!==l;++s){var f=n[s];this._deactivateAction(f);var p=f._cacheIndex,v=e[e.length-1];f._cacheIndex=null,f._byClipCacheIndex=null,v._cacheIndex=p,e[p]=v,e.pop(),this._removeInactiveBindingsForAction(f)}delete i[t]}},uncacheRoot:function(t){t=t.uuid;var e=this._actionsByClip;for(n in e){var i=e[n].actionByRoot[t];i!==void 0&&(this._deactivateAction(i),this._removeInactiveAction(i))}var n=this._bindingsByRootAndName[t];if(n!==void 0)for(var s in n)t=n[s],t.restoreOriginalState(),this._removeInactiveBinding(t)},uncacheAction:function(t,e){t=this.existingAction(t,e),t!==null&&(this._deactivateAction(t),this._removeInactiveAction(t))}}),eh.prototype.clone=function(){return new eh(this.value.clone===void 0?this.value:this.value.clone())},Nh.prototype=Object.assign(Object.create(Ft.prototype),{constructor:Nh,isInstancedBufferGeometry:!0,copy:function(t){return Ft.prototype.copy.call(this,t),this.maxInstancedCount=t.maxInstancedCount,this},clone:function(){return new this.constructor().copy(this)}}),Fh.prototype=Object.assign(Object.create(zi.prototype),{constructor:Fh,isInstancedInterleavedBuffer:!0,copy:function(t){return zi.prototype.copy.call(this,t),this.meshPerAttribute=t.meshPerAttribute,this}}),Uh.prototype=Object.assign(Object.create(J.prototype),{constructor:Uh,isInstancedBufferAttribute:!0,copy:function(t){return J.prototype.copy.call(this,t),this.meshPerAttribute=t.meshPerAttribute,this}}),Object.assign(Au.prototype,{linePrecision:1,set:function(t,e){this.ray.set(t,e)},setFromCamera:function(t,e){e&&e.isPerspectiveCamera?(this.ray.origin.setFromMatrixPosition(e.matrixWorld),this.ray.direction.set(t.x,t.y,.5).unproject(e).sub(this.ray.origin).normalize()):e&&e.isOrthographicCamera?(this.ray.origin.set(t.x,t.y,(e.near+e.far)/(e.near-e.far)).unproject(e),this.ray.direction.set(0,0,-1).transformDirection(e.matrixWorld)):console.error("THREE.Raycaster: Unsupported camera type.")},intersectObject:function(t,e,i){return i=i||[],Bo(t,this,i,e),i.sort(pl),i},intersectObjects:function(t,e,i){if(i=i||[],Array.isArray(t)===!1)return console.warn("THREE.Raycaster.intersectObjects: objects is not an Array."),i;for(var n=0,s=t.length;n<s;n++)Bo(t[n],this,i,e);return i.sort(pl),i}}),Object.assign(Gh.prototype,{set:function(t,e,i){return this.radius=t,this.phi=e,this.theta=i,this},clone:function(){return new this.constructor().copy(this)},copy:function(t){return this.radius=t.radius,this.phi=t.phi,this.theta=t.theta,this},makeSafe:function(){return this.phi=Math.max(1e-6,Math.min(Math.PI-1e-6,this.phi)),this},setFromVector3:function(t){return this.setFromCartesianCoords(t.x,t.y,t.z)},setFromCartesianCoords:function(t,e,i){return this.radius=Math.sqrt(t*t+e*e+i*i),this.radius===0?this.phi=this.theta=0:(this.theta=Math.atan2(t,i),this.phi=Math.acos(pi.clamp(e/this.radius,-1,1))),this}}),Object.assign(it.prototype,{set:function(t,e,i){return this.radius=t,this.theta=e,this.y=i,this},clone:function(){return new this.constructor().copy(this)},copy:function(t){return this.radius=t.radius,this.theta=t.theta,this.y=t.y,this},setFromVector3:function(t){return this.setFromCartesianCoords(t.x,t.y,t.z)},setFromCartesianCoords:function(t,e,i){return this.radius=Math.sqrt(t*t+i*i),this.theta=Math.atan2(t,i),this.y=e,this}}),Object.assign(ro.prototype,{set:function(t,e){return this.min.copy(t),this.max.copy(e),this},setFromPoints:function(t){this.makeEmpty();for(var e=0,i=t.length;e<i;e++)this.expandByPoint(t[e]);return this},setFromCenterAndSize:function(){var t=new o;return function(e,i){return i=t.copy(i).multiplyScalar(.5),this.min.copy(e).sub(i),this.max.copy(e).add(i),this}}(),clone:function(){return new this.constructor().copy(this)},copy:function(t){return this.min.copy(t.min),this.max.copy(t.max),this},makeEmpty:function(){return this.min.x=this.min.y=1/0,this.max.x=this.max.y=-1/0,this},isEmpty:function(){return this.max.x<this.min.x||this.max.y<this.min.y},getCenter:function(t){return t===void 0&&(console.warn("THREE.Box2: .getCenter() target is now required"),t=new o),this.isEmpty()?t.set(0,0):t.addVectors(this.min,this.max).multiplyScalar(.5)},getSize:function(t){return t===void 0&&(console.warn("THREE.Box2: .getSize() target is now required"),t=new o),this.isEmpty()?t.set(0,0):t.subVectors(this.max,this.min)},expandByPoint:function(t){return this.min.min(t),this.max.max(t),this},expandByVector:function(t){return this.min.sub(t),this.max.add(t),this},expandByScalar:function(t){return this.min.addScalar(-t),this.max.addScalar(t),this},containsPoint:function(t){return!(t.x<this.min.x||t.x>this.max.x||t.y<this.min.y||t.y>this.max.y)},containsBox:function(t){return this.min.x<=t.min.x&&t.max.x<=this.max.x&&this.min.y<=t.min.y&&t.max.y<=this.max.y},getParameter:function(t,e){return e===void 0&&(console.warn("THREE.Box2: .getParameter() target is now required"),e=new o),e.set((t.x-this.min.x)/(this.max.x-this.min.x),(t.y-this.min.y)/(this.max.y-this.min.y))},intersectsBox:function(t){return!(t.max.x<this.min.x||t.min.x>this.max.x||t.max.y<this.min.y||t.min.y>this.max.y)},clampPoint:function(t,e){return e===void 0&&(console.warn("THREE.Box2: .clampPoint() target is now required"),e=new o),e.copy(t).clamp(this.min,this.max)},distanceToPoint:function(){var t=new o;return function(e){return t.copy(e).clamp(this.min,this.max).sub(e).length()}}(),intersect:function(t){return this.min.max(t.min),this.max.min(t.max),this},union:function(t){return this.min.min(t.min),this.max.max(t.max),this},translate:function(t){return this.min.add(t),this.max.add(t),this},equals:function(t){return t.min.equals(this.min)&&t.max.equals(this.max)}}),Object.assign(Ma.prototype,{set:function(t,e){return this.start.copy(t),this.end.copy(e),this},clone:function(){return new this.constructor().copy(this)},copy:function(t){return this.start.copy(t.start),this.end.copy(t.end),this},getCenter:function(t){return t===void 0&&(console.warn("THREE.Line3: .getCenter() target is now required"),t=new u),t.addVectors(this.start,this.end).multiplyScalar(.5)},delta:function(t){return t===void 0&&(console.warn("THREE.Line3: .delta() target is now required"),t=new u),t.subVectors(this.end,this.start)},distanceSq:function(){return this.start.distanceToSquared(this.end)},distance:function(){return this.start.distanceTo(this.end)},at:function(t,e){return e===void 0&&(console.warn("THREE.Line3: .at() target is now required"),e=new u),this.delta(e).multiplyScalar(t).add(this.start)},closestPointToPointParameter:function(){var t=new u,e=new u;return function(i,n){return t.subVectors(i,this.start),e.subVectors(this.end,this.start),i=e.dot(e),i=e.dot(t)/i,n&&(i=pi.clamp(i,0,1)),i}}(),closestPointToPoint:function(t,e,i){return t=this.closestPointToPointParameter(t,e),i===void 0&&(console.warn("THREE.Line3: .closestPointToPoint() target is now required"),i=new u),this.delta(i).multiplyScalar(t).add(this.start)},applyMatrix4:function(t){return this.start.applyMatrix4(t),this.end.applyMatrix4(t),this},equals:function(t){return t.start.equals(this.start)&&t.end.equals(this.end)}}),qn.prototype=Object.create(N.prototype),qn.prototype.constructor=qn,qn.prototype.isImmediateRenderObject=!0,yi.prototype=Object.create(gi.prototype),yi.prototype.constructor=yi,yi.prototype.update=function(){var t=new u,e=new u,i=new m;return function(){var n=["a","b","c"];this.object.updateMatrixWorld(!0),i.getNormalMatrix(this.object.matrixWorld);var s=this.object.matrixWorld,l=this.geometry.attributes.position,f=this.object.geometry;if(f&&f.isGeometry)for(var p=f.vertices,v=f.faces,w=f=0,C=v.length;w<C;w++)for(var P=v[w],B=0,H=P.vertexNormals.length;B<H;B++){var q=P.vertexNormals[B];t.copy(p[P[n[B]]]).applyMatrix4(s),e.copy(q).applyMatrix3(i).normalize().multiplyScalar(this.size).add(t),l.setXYZ(f,t.x,t.y,t.z),f+=1,l.setXYZ(f,e.x,e.y,e.z),f+=1}else if(f&&f.isBufferGeometry)for(n=f.attributes.position,p=f.attributes.normal,B=f=0,H=n.count;B<H;B++)t.set(n.getX(B),n.getY(B),n.getZ(B)).applyMatrix4(s),e.set(p.getX(B),p.getY(B),p.getZ(B)),e.applyMatrix3(i).normalize().multiplyScalar(this.size).add(t),l.setXYZ(f,t.x,t.y,t.z),f+=1,l.setXYZ(f,e.x,e.y,e.z),f+=1;l.needsUpdate=!0}}(),Sa.prototype=Object.create(N.prototype),Sa.prototype.constructor=Sa,Sa.prototype.dispose=function(){this.cone.geometry.dispose(),this.cone.material.dispose()},Sa.prototype.update=function(){var t=new u,e=new u;return function(){this.light.updateMatrixWorld();var i=this.light.distance?this.light.distance:1e3,n=i*Math.tan(this.light.angle);this.cone.scale.set(n,n,i),t.setFromMatrixPosition(this.light.matrixWorld),e.setFromMatrixPosition(this.light.target.matrixWorld),this.cone.lookAt(e.sub(t)),this.color!==void 0?this.cone.material.color.set(this.color):this.cone.material.color.copy(this.light.color)}}(),Ea.prototype=Object.create(gi.prototype),Ea.prototype.constructor=Ea,Ea.prototype.updateMatrixWorld=function(){var t=new u,e=new c,i=new c;return function(n){var s=this.bones,l=this.geometry,f=l.getAttribute("position");i.getInverse(this.root.matrixWorld);for(var p=0,v=0;p<s.length;p++){var w=s[p];w.parent&&w.parent.isBone&&(e.multiplyMatrices(i,w.matrixWorld),t.setFromMatrixPosition(e),f.setXYZ(v,t.x,t.y,t.z),e.multiplyMatrices(i,w.parent.matrixWorld),t.setFromMatrixPosition(e),f.setXYZ(v+1,t.x,t.y,t.z),v+=2)}l.getAttribute("position").needsUpdate=!0,N.prototype.updateMatrixWorld.call(this,n)}}(),kr.prototype=Object.create(di.prototype),kr.prototype.constructor=kr,kr.prototype.dispose=function(){this.geometry.dispose(),this.material.dispose()},kr.prototype.update=function(){this.color!==void 0?this.material.color.set(this.color):this.material.color.copy(this.light.color)},ba.prototype=Object.create(N.prototype),ba.prototype.constructor=ba,ba.prototype.dispose=function(){this.children[0].geometry.dispose(),this.children[0].material.dispose()},ba.prototype.update=function(){var t=.5*this.light.width,e=.5*this.light.height,i=this.line.geometry.attributes.position,n=i.array;n[0]=t,n[1]=-e,n[2]=0,n[3]=t,n[4]=e,n[5]=0,n[6]=-t,n[7]=e,n[8]=0,n[9]=-t,n[10]=-e,n[11]=0,n[12]=t,n[13]=-e,n[14]=0,i.needsUpdate=!0,this.color!==void 0?this.line.material.color.set(this.color):this.line.material.color.copy(this.light.color)},Aa.prototype=Object.create(N.prototype),Aa.prototype.constructor=Aa,Aa.prototype.dispose=function(){this.children[0].geometry.dispose(),this.children[0].material.dispose()},Aa.prototype.update=function(){var t=new u,e=new L,i=new L;return function(){var n=this.children[0];if(this.color!==void 0)this.material.color.set(this.color);else{var s=n.geometry.getAttribute("color");e.copy(this.light.color),i.copy(this.light.groundColor);for(var l=0,f=s.count;l<f;l++){var p=l<f/2?e:i;s.setXYZ(l,p.r,p.g,p.b)}s.needsUpdate=!0}n.lookAt(t.setFromMatrixPosition(this.light.matrixWorld).negate())}}(),dl.prototype=Object.create(gi.prototype),dl.prototype.constructor=dl,ih.prototype=Object.create(gi.prototype),ih.prototype.constructor=ih,ml.prototype=Object.create(gi.prototype),ml.prototype.constructor=ml,ml.prototype.update=function(){var t=new u,e=new u,i=new m;return function(){this.object.updateMatrixWorld(!0),i.getNormalMatrix(this.object.matrixWorld);var n=this.object.matrixWorld,s=this.geometry.attributes.position,l=this.object.geometry,f=l.vertices;l=l.faces;for(var p=0,v=0,w=l.length;v<w;v++){var C=l[v],P=C.normal;t.copy(f[C.a]).add(f[C.b]).add(f[C.c]).divideScalar(3).applyMatrix4(n),e.copy(P).applyMatrix3(i).normalize().multiplyScalar(this.size).add(t),s.setXYZ(p,t.x,t.y,t.z),p+=1,s.setXYZ(p,e.x,e.y,e.z),p+=1}s.needsUpdate=!0}}(),pr.prototype=Object.create(N.prototype),pr.prototype.constructor=pr,pr.prototype.dispose=function(){this.lightPlane.geometry.dispose(),this.lightPlane.material.dispose(),this.targetLine.geometry.dispose(),this.targetLine.material.dispose()},pr.prototype.update=function(){var t=new u,e=new u,i=new u;return function(){t.setFromMatrixPosition(this.light.matrixWorld),e.setFromMatrixPosition(this.light.target.matrixWorld),i.subVectors(e,t),this.lightPlane.lookAt(i),this.color!==void 0?(this.lightPlane.material.color.set(this.color),this.targetLine.material.color.set(this.color)):(this.lightPlane.material.color.copy(this.light.color),this.targetLine.material.color.copy(this.light.color)),this.targetLine.lookAt(i),this.targetLine.scale.z=i.length()}}(),gl.prototype=Object.create(gi.prototype),gl.prototype.constructor=gl,gl.prototype.update=function(){function t(l,f,p,v){if(n.set(f,p,v).unproject(s),l=i[l],l!==void 0)for(f=e.getAttribute("position"),p=0,v=l.length;p<v;p++)f.setXYZ(l[p],n.x,n.y,n.z)}var e,i,n=new u,s=new Be;return function(){e=this.geometry,i=this.pointMap,s.projectionMatrix.copy(this.camera.projectionMatrix),t("c",0,0,-1),t("t",0,0,1),t("n1",-1,-1,-1),t("n2",1,-1,-1),t("n3",-1,1,-1),t("n4",1,1,-1),t("f1",-1,-1,1),t("f2",1,-1,1),t("f3",-1,1,1),t("f4",1,1,1),t("u1",.7,1.1,-1),t("u2",-.7,1.1,-1),t("u3",0,2,-1),t("cf1",-1,0,1),t("cf2",1,0,1),t("cf3",0,-1,1),t("cf4",0,1,1),t("cn1",-1,0,-1),t("cn2",1,0,-1),t("cn3",0,-1,-1),t("cn4",0,1,-1),e.getAttribute("position").needsUpdate=!0}}(),Ds.prototype=Object.create(gi.prototype),Ds.prototype.constructor=Ds,Ds.prototype.update=function(){var t=new k;return function(e){if(e!==void 0&&console.warn("THREE.BoxHelper: .update() has no longer arguments."),this.object!==void 0&&t.setFromObject(this.object),!t.isEmpty()){e=t.min;var i=t.max,n=this.geometry.attributes.position,s=n.array;s[0]=i.x,s[1]=i.y,s[2]=i.z,s[3]=e.x,s[4]=i.y,s[5]=i.z,s[6]=e.x,s[7]=e.y,s[8]=i.z,s[9]=i.x,s[10]=e.y,s[11]=i.z,s[12]=i.x,s[13]=i.y,s[14]=e.z,s[15]=e.x,s[16]=i.y,s[17]=e.z,s[18]=e.x,s[19]=e.y,s[20]=e.z,s[21]=i.x,s[22]=e.y,s[23]=e.z,n.needsUpdate=!0,this.geometry.computeBoundingSphere()}}}(),Ds.prototype.setFromObject=function(t){return this.object=t,this.update(),this},Ds.prototype.copy=function(t){return gi.prototype.copy.call(this,t),this.object=t.object,this},Ds.prototype.clone=function(){return new this.constructor().copy(this)},vl.prototype=Object.create(gi.prototype),vl.prototype.constructor=vl,vl.prototype.updateMatrixWorld=function(t){var e=this.box;e.isEmpty()||(e.getCenter(this.position),e.getSize(this.scale),this.scale.multiplyScalar(.5),N.prototype.updateMatrixWorld.call(this,t))},_l.prototype=Object.create(ji.prototype),_l.prototype.constructor=_l,_l.prototype.updateMatrixWorld=function(t){var e=-this.plane.constant;1e-8>Math.abs(e)&&(e=1e-8),this.scale.set(.5*this.size,.5*this.size,e),this.children[0].material.side=0>e?1:0,this.lookAt(this.plane.normal),N.prototype.updateMatrixWorld.call(this,t)};var lh,Tl;zs.prototype=Object.create(N.prototype),zs.prototype.constructor=zs,zs.prototype.setDirection=function(){var t=new u,e;return function(i){.99999<i.y?this.quaternion.set(0,0,0,1):-.99999>i.y?this.quaternion.set(1,0,0,0):(t.set(i.z,0,-i.x).normalize(),e=Math.acos(i.y),this.quaternion.setFromAxisAngle(t,e))}}(),zs.prototype.setLength=function(t,e,i){e===void 0&&(e=.2*t),i===void 0&&(i=.2*e),this.line.scale.set(1,Math.max(0,t-e),1),this.line.updateMatrix(),this.cone.scale.set(i,e,i),this.cone.position.y=t,this.cone.updateMatrix()},zs.prototype.setColor=function(t){this.line.material.color.copy(t),this.cone.material.color.copy(t)},zs.prototype.copy=function(t){return N.prototype.copy.call(this,t,!1),this.line.copy(t.line),this.cone.copy(t.cone),this},zs.prototype.clone=function(){return new this.constructor().copy(this)},xr.prototype=Object.create(gi.prototype),xr.prototype.constructor=xr,Ee.create=function(t,e){return console.log("THREE.Curve.create() has been deprecated"),t.prototype=Object.create(Ee.prototype),t.prototype.constructor=t,t.prototype.getPoint=e,t},Object.assign(Os.prototype,{createPointsGeometry:function(t){return console.warn("THREE.CurvePath: .createPointsGeometry() has been removed. Use new THREE.Geometry().setFromPoints( points ) instead."),t=this.getPoints(t),this.createGeometry(t)},createSpacedPointsGeometry:function(t){return console.warn("THREE.CurvePath: .createSpacedPointsGeometry() has been removed. Use new THREE.Geometry().setFromPoints( points ) instead."),t=this.getSpacedPoints(t),this.createGeometry(t)},createGeometry:function(t){console.warn("THREE.CurvePath: .createGeometry() has been removed. Use new THREE.Geometry().setFromPoints( points ) instead.");for(var e=new j,i=0,n=t.length;i<n;i++){var s=t[i];e.vertices.push(new u(s.x,s.y,s.z||0))}return e}}),Object.assign(fr.prototype,{fromPoints:function(t){console.warn("THREE.Path: .fromPoints() has been renamed to .setFromPoints()."),this.setFromPoints(t)}}),Pu.prototype=Object.create(On.prototype),Lu.prototype=Object.create(On.prototype),Hh.prototype=Object.create(On.prototype),Object.assign(Hh.prototype,{initFromArray:function(){console.error("THREE.Spline: .initFromArray() has been removed.")},getControlPointsArray:function(){console.error("THREE.Spline: .getControlPointsArray() has been removed.")},reparametrizeByArcLength:function(){console.error("THREE.Spline: .reparametrizeByArcLength() has been removed.")}}),dl.prototype.setColors=function(){console.error("THREE.GridHelper: setColors() has been deprecated, pass them in the constructor instead.")},Ea.prototype.update=function(){console.error("THREE.SkeletonHelper: update() no longer needs to be called.")},Object.assign(Is.prototype,{extractUrlBase:function(t){return console.warn("THREE.Loader: .extractUrlBase() has been deprecated. Use THREE.LoaderUtils.extractUrlBase() instead."),Fo.extractUrlBase(t)}}),Object.assign(Do.prototype,{setTexturePath:function(t){return console.warn("THREE.JSONLoader: .setTexturePath() has been renamed to .setResourcePath()."),this.setResourcePath(t)}}),Object.assign(ll.prototype,{setTexturePath:function(t){return console.warn("THREE.ObjectLoader: .setTexturePath() has been renamed to .setResourcePath()."),this.setResourcePath(t)}}),Object.assign(ro.prototype,{center:function(t){return console.warn("THREE.Box2: .center() has been renamed to .getCenter()."),this.getCenter(t)},empty:function(){return console.warn("THREE.Box2: .empty() has been renamed to .isEmpty()."),this.isEmpty()},isIntersectionBox:function(t){return console.warn("THREE.Box2: .isIntersectionBox() has been renamed to .intersectsBox()."),this.intersectsBox(t)},size:function(t){return console.warn("THREE.Box2: .size() has been renamed to .getSize()."),this.getSize(t)}}),Object.assign(k.prototype,{center:function(t){return console.warn("THREE.Box3: .center() has been renamed to .getCenter()."),this.getCenter(t)},empty:function(){return console.warn("THREE.Box3: .empty() has been renamed to .isEmpty()."),this.isEmpty()},isIntersectionBox:function(t){return console.warn("THREE.Box3: .isIntersectionBox() has been renamed to .intersectsBox()."),this.intersectsBox(t)},isIntersectionSphere:function(t){return console.warn("THREE.Box3: .isIntersectionSphere() has been renamed to .intersectsSphere()."),this.intersectsSphere(t)},size:function(t){return console.warn("THREE.Box3: .size() has been renamed to .getSize()."),this.getSize(t)}}),Ma.prototype.center=function(t){return console.warn("THREE.Line3: .center() has been renamed to .getCenter()."),this.getCenter(t)},Object.assign(pi,{random16:function(){return console.warn("THREE.Math: .random16() has been deprecated. Use Math.random() instead."),Math.random()},nearestPowerOfTwo:function(t){return console.warn("THREE.Math: .nearestPowerOfTwo() has been renamed to .floorPowerOfTwo()."),pi.floorPowerOfTwo(t)},nextPowerOfTwo:function(t){return console.warn("THREE.Math: .nextPowerOfTwo() has been renamed to .ceilPowerOfTwo()."),pi.ceilPowerOfTwo(t)}}),Object.assign(m.prototype,{flattenToArrayOffset:function(t,e){return console.warn("THREE.Matrix3: .flattenToArrayOffset() has been deprecated. Use .toArray() instead."),this.toArray(t,e)},multiplyVector3:function(t){return console.warn("THREE.Matrix3: .multiplyVector3() has been removed. Use vector.applyMatrix3( matrix ) instead."),t.applyMatrix3(this)},multiplyVector3Array:function(){console.error("THREE.Matrix3: .multiplyVector3Array() has been removed.")},applyToBuffer:function(t){return console.warn("THREE.Matrix3: .applyToBuffer() has been removed. Use matrix.applyToBufferAttribute( attribute ) instead."),this.applyToBufferAttribute(t)},applyToVector3Array:function(){console.error("THREE.Matrix3: .applyToVector3Array() has been removed.")}}),Object.assign(c.prototype,{extractPosition:function(t){return console.warn("THREE.Matrix4: .extractPosition() has been renamed to .copyPosition()."),this.copyPosition(t)},flattenToArrayOffset:function(t,e){return console.warn("THREE.Matrix4: .flattenToArrayOffset() has been deprecated. Use .toArray() instead."),this.toArray(t,e)},getPosition:function(){var t;return function(){return t===void 0&&(t=new u),console.warn("THREE.Matrix4: .getPosition() has been removed. Use Vector3.setFromMatrixPosition( matrix ) instead."),t.setFromMatrixColumn(this,3)}}(),setRotationFromQuaternion:function(t){return console.warn("THREE.Matrix4: .setRotationFromQuaternion() has been renamed to .makeRotationFromQuaternion()."),this.makeRotationFromQuaternion(t)},multiplyToArray:function(){console.warn("THREE.Matrix4: .multiplyToArray() has been removed.")},multiplyVector3:function(t){return console.warn("THREE.Matrix4: .multiplyVector3() has been removed. Use vector.applyMatrix4( matrix ) instead."),t.applyMatrix4(this)},multiplyVector4:function(t){return console.warn("THREE.Matrix4: .multiplyVector4() has been removed. Use vector.applyMatrix4( matrix ) instead."),t.applyMatrix4(this)},multiplyVector3Array:function(){console.error("THREE.Matrix4: .multiplyVector3Array() has been removed.")},rotateAxis:function(t){console.warn("THREE.Matrix4: .rotateAxis() has been removed. Use Vector3.transformDirection( matrix ) instead."),t.transformDirection(this)},crossVector:function(t){return console.warn("THREE.Matrix4: .crossVector() has been removed. Use vector.applyMatrix4( matrix ) instead."),t.applyMatrix4(this)},translate:function(){console.error("THREE.Matrix4: .translate() has been removed.")},rotateX:function(){console.error("THREE.Matrix4: .rotateX() has been removed.")},rotateY:function(){console.error("THREE.Matrix4: .rotateY() has been removed.")},rotateZ:function(){console.error("THREE.Matrix4: .rotateZ() has been removed.")},rotateByAxis:function(){console.error("THREE.Matrix4: .rotateByAxis() has been removed.")},applyToBuffer:function(t){return console.warn("THREE.Matrix4: .applyToBuffer() has been removed. Use matrix.applyToBufferAttribute( attribute ) instead."),this.applyToBufferAttribute(t)},applyToVector3Array:function(){console.error("THREE.Matrix4: .applyToVector3Array() has been removed.")},makeFrustum:function(t,e,i,n,s,l){return console.warn("THREE.Matrix4: .makeFrustum() has been removed. Use .makePerspective( left, right, top, bottom, near, far ) instead."),this.makePerspective(t,e,n,i,s,l)}}),F.prototype.isIntersectionLine=function(t){return console.warn("THREE.Plane: .isIntersectionLine() has been renamed to .intersectsLine()."),this.intersectsLine(t)},d.prototype.multiplyVector3=function(t){return console.warn("THREE.Quaternion: .multiplyVector3() has been removed. Use is now vector.applyQuaternion( quaternion ) instead."),t.applyQuaternion(this)},Object.assign(Oi.prototype,{isIntersectionBox:function(t){return console.warn("THREE.Ray: .isIntersectionBox() has been renamed to .intersectsBox()."),this.intersectsBox(t)},isIntersectionPlane:function(t){return console.warn("THREE.Ray: .isIntersectionPlane() has been renamed to .intersectsPlane()."),this.intersectsPlane(t)},isIntersectionSphere:function(t){return console.warn("THREE.Ray: .isIntersectionSphere() has been renamed to .intersectsSphere()."),this.intersectsSphere(t)}}),Object.assign(Oe.prototype,{area:function(){return console.warn("THREE.Triangle: .area() has been renamed to .getArea()."),this.getArea()},barycoordFromPoint:function(t,e){return console.warn("THREE.Triangle: .barycoordFromPoint() has been renamed to .getBarycoord()."),this.getBarycoord(t,e)},midpoint:function(t){return console.warn("THREE.Triangle: .midpoint() has been renamed to .getMidpoint()."),this.getMidpoint(t)},normal:function(t){return console.warn("THREE.Triangle: .normal() has been renamed to .getNormal()."),this.getNormal(t)},plane:function(t){return console.warn("THREE.Triangle: .plane() has been renamed to .getPlane()."),this.getPlane(t)}}),Object.assign(Oe,{barycoordFromPoint:function(t,e,i,n,s){return console.warn("THREE.Triangle: .barycoordFromPoint() has been renamed to .getBarycoord()."),Oe.getBarycoord(t,e,i,n,s)},normal:function(t,e,i,n){return console.warn("THREE.Triangle: .normal() has been renamed to .getNormal()."),Oe.getNormal(t,e,i,n)}}),Object.assign(Qn.prototype,{extractAllPoints:function(t){return console.warn("THREE.Shape: .extractAllPoints() has been removed. Use .extractPoints() instead."),this.extractPoints(t)},extrude:function(t){return console.warn("THREE.Shape: .extrude() has been removed. Use ExtrudeGeometry() instead."),new Cs(this,t)},makeGeometry:function(t){return console.warn("THREE.Shape: .makeGeometry() has been removed. Use ShapeGeometry() instead."),new Ps(this,t)}}),Object.assign(o.prototype,{fromAttribute:function(t,e,i){return console.warn("THREE.Vector2: .fromAttribute() has been renamed to .fromBufferAttribute()."),this.fromBufferAttribute(t,e,i)},distanceToManhattan:function(t){return console.warn("THREE.Vector2: .distanceToManhattan() has been renamed to .manhattanDistanceTo()."),this.manhattanDistanceTo(t)},lengthManhattan:function(){return console.warn("THREE.Vector2: .lengthManhattan() has been renamed to .manhattanLength()."),this.manhattanLength()}}),Object.assign(u.prototype,{setEulerFromRotationMatrix:function(){console.error("THREE.Vector3: .setEulerFromRotationMatrix() has been removed. Use Euler.setFromRotationMatrix() instead.")},setEulerFromQuaternion:function(){console.error("THREE.Vector3: .setEulerFromQuaternion() has been removed. Use Euler.setFromQuaternion() instead.")},getPositionFromMatrix:function(t){return console.warn("THREE.Vector3: .getPositionFromMatrix() has been renamed to .setFromMatrixPosition()."),this.setFromMatrixPosition(t)},getScaleFromMatrix:function(t){return console.warn("THREE.Vector3: .getScaleFromMatrix() has been renamed to .setFromMatrixScale()."),this.setFromMatrixScale(t)},getColumnFromMatrix:function(t,e){return console.warn("THREE.Vector3: .getColumnFromMatrix() has been renamed to .setFromMatrixColumn()."),this.setFromMatrixColumn(e,t)},applyProjection:function(t){return console.warn("THREE.Vector3: .applyProjection() has been removed. Use .applyMatrix4( m ) instead."),this.applyMatrix4(t)},fromAttribute:function(t,e,i){return console.warn("THREE.Vector3: .fromAttribute() has been renamed to .fromBufferAttribute()."),this.fromBufferAttribute(t,e,i)},distanceToManhattan:function(t){return console.warn("THREE.Vector3: .distanceToManhattan() has been renamed to .manhattanDistanceTo()."),this.manhattanDistanceTo(t)},lengthManhattan:function(){return console.warn("THREE.Vector3: .lengthManhattan() has been renamed to .manhattanLength()."),this.manhattanLength()}}),Object.assign(y.prototype,{fromAttribute:function(t,e,i){return console.warn("THREE.Vector4: .fromAttribute() has been renamed to .fromBufferAttribute()."),this.fromBufferAttribute(t,e,i)},lengthManhattan:function(){return console.warn("THREE.Vector4: .lengthManhattan() has been renamed to .manhattanLength()."),this.manhattanLength()}}),Object.assign(j.prototype,{computeTangents:function(){console.error("THREE.Geometry: .computeTangents() has been removed.")},computeLineDistances:function(){console.error("THREE.Geometry: .computeLineDistances() has been removed. Use THREE.Line.computeLineDistances() instead.")}}),Object.assign(N.prototype,{getChildByName:function(t){return console.warn("THREE.Object3D: .getChildByName() has been renamed to .getObjectByName()."),this.getObjectByName(t)},renderDepth:function(){console.warn("THREE.Object3D: .renderDepth has been removed. Use .renderOrder, instead.")},translate:function(t,e){return console.warn("THREE.Object3D: .translate() has been removed. Use .translateOnAxis( axis, distance ) instead."),this.translateOnAxis(e,t)},getWorldRotation:function(){console.error("THREE.Object3D: .getWorldRotation() has been removed. Use THREE.Object3D.getWorldQuaternion( target ) instead.")}}),Object.defineProperties(N.prototype,{eulerOrder:{get:function(){return console.warn("THREE.Object3D: .eulerOrder is now .rotation.order."),this.rotation.order},set:function(t){console.warn("THREE.Object3D: .eulerOrder is now .rotation.order."),this.rotation.order=t}},useQuaternion:{get:function(){console.warn("THREE.Object3D: .useQuaternion has been removed. The library now uses quaternions by default.")},set:function(){console.warn("THREE.Object3D: .useQuaternion has been removed. The library now uses quaternions by default.")}}}),Object.defineProperties(rn.prototype,{objects:{get:function(){return console.warn("THREE.LOD: .objects has been renamed to .levels."),this.levels}}}),Object.defineProperty(un.prototype,"useVertexTexture",{get:function(){console.warn("THREE.Skeleton: useVertexTexture has been removed.")},set:function(){console.warn("THREE.Skeleton: useVertexTexture has been removed.")}}),Object.defineProperty(Ee.prototype,"__arcLengthDivisions",{get:function(){return console.warn("THREE.Curve: .__arcLengthDivisions is now .arcLengthDivisions."),this.arcLengthDivisions},set:function(t){console.warn("THREE.Curve: .__arcLengthDivisions is now .arcLengthDivisions."),this.arcLengthDivisions=t}}),ye.prototype.setLens=function(t,e){console.warn("THREE.PerspectiveCamera.setLens is deprecated. Use .setFocalLength and .filmGauge for a photographic setup."),e!==void 0&&(this.filmGauge=e),this.setFocalLength(t)},Object.defineProperties(tn.prototype,{onlyShadow:{set:function(){console.warn("THREE.Light: .onlyShadow has been removed.")}},shadowCameraFov:{set:function(t){console.warn("THREE.Light: .shadowCameraFov is now .shadow.camera.fov."),this.shadow.camera.fov=t}},shadowCameraLeft:{set:function(t){console.warn("THREE.Light: .shadowCameraLeft is now .shadow.camera.left."),this.shadow.camera.left=t}},shadowCameraRight:{set:function(t){console.warn("THREE.Light: .shadowCameraRight is now .shadow.camera.right."),this.shadow.camera.right=t}},shadowCameraTop:{set:function(t){console.warn("THREE.Light: .shadowCameraTop is now .shadow.camera.top."),this.shadow.camera.top=t}},shadowCameraBottom:{set:function(t){console.warn("THREE.Light: .shadowCameraBottom is now .shadow.camera.bottom."),this.shadow.camera.bottom=t}},shadowCameraNear:{set:function(t){console.warn("THREE.Light: .shadowCameraNear is now .shadow.camera.near."),this.shadow.camera.near=t}},shadowCameraFar:{set:function(t){console.warn("THREE.Light: .shadowCameraFar is now .shadow.camera.far."),this.shadow.camera.far=t}},shadowCameraVisible:{set:function(){console.warn("THREE.Light: .shadowCameraVisible has been removed. Use new THREE.CameraHelper( light.shadow.camera ) instead.")}},shadowBias:{set:function(t){console.warn("THREE.Light: .shadowBias is now .shadow.bias."),this.shadow.bias=t}},shadowDarkness:{set:function(){console.warn("THREE.Light: .shadowDarkness has been removed.")}},shadowMapWidth:{set:function(t){console.warn("THREE.Light: .shadowMapWidth is now .shadow.mapSize.width."),this.shadow.mapSize.width=t}},shadowMapHeight:{set:function(t){console.warn("THREE.Light: .shadowMapHeight is now .shadow.mapSize.height."),this.shadow.mapSize.height=t}}}),Object.defineProperties(J.prototype,{length:{get:function(){return console.warn("THREE.BufferAttribute: .length has been deprecated. Use .count instead."),this.array.length}},copyIndicesArray:function(){console.error("THREE.BufferAttribute: .copyIndicesArray() has been removed.")}}),Object.assign(Ft.prototype,{addIndex:function(t){console.warn("THREE.BufferGeometry: .addIndex() has been renamed to .setIndex()."),this.setIndex(t)},addDrawCall:function(t,e,i){i!==void 0&&console.warn("THREE.BufferGeometry: .addDrawCall() no longer supports indexOffset."),console.warn("THREE.BufferGeometry: .addDrawCall() is now .addGroup()."),this.addGroup(t,e)},clearDrawCalls:function(){console.warn("THREE.BufferGeometry: .clearDrawCalls() is now .clearGroups()."),this.clearGroups()},computeTangents:function(){console.warn("THREE.BufferGeometry: .computeTangents() has been removed.")},computeOffsets:function(){console.warn("THREE.BufferGeometry: .computeOffsets() has been removed.")}}),Object.defineProperties(Ft.prototype,{drawcalls:{get:function(){return console.error("THREE.BufferGeometry: .drawcalls has been renamed to .groups."),this.groups}},offsets:{get:function(){return console.warn("THREE.BufferGeometry: .offsets has been renamed to .groups."),this.groups}}}),Object.assign(ps.prototype,{getArrays:function(){console.error("THREE.ExtrudeBufferGeometry: .getArrays() has been removed.")},addShapeList:function(){console.error("THREE.ExtrudeBufferGeometry: .addShapeList() has been removed.")},addShape:function(){console.error("THREE.ExtrudeBufferGeometry: .addShape() has been removed.")}}),Object.defineProperties(eh.prototype,{dynamic:{set:function(){console.warn("THREE.Uniform: .dynamic has been removed. Use object.onBeforeRender() instead.")}},onUpdate:{value:function(){return console.warn("THREE.Uniform: .onUpdate() has been removed. Use object.onBeforeRender() instead."),this}}}),Object.defineProperties(Yt.prototype,{wrapAround:{get:function(){console.warn("THREE.Material: .wrapAround has been removed.")},set:function(){console.warn("THREE.Material: .wrapAround has been removed.")}},overdraw:{get:function(){console.warn("THREE.Material: .overdraw has been removed.")},set:function(){console.warn("THREE.Material: .overdraw has been removed.")}},wrapRGB:{get:function(){return console.warn("THREE.Material: .wrapRGB has been removed."),new L}},shading:{get:function(){console.error("THREE."+this.type+": .shading has been removed. Use the boolean .flatShading instead.")},set:function(t){console.warn("THREE."+this.type+": .shading has been removed. Use the boolean .flatShading instead."),this.flatShading=t===1}}}),Object.defineProperties(Jr.prototype,{metal:{get:function(){return console.warn("THREE.MeshPhongMaterial: .metal has been removed. Use THREE.MeshStandardMaterial instead."),!1},set:function(){console.warn("THREE.MeshPhongMaterial: .metal has been removed. Use THREE.MeshStandardMaterial instead")}}}),Object.defineProperties($e.prototype,{derivatives:{get:function(){return console.warn("THREE.ShaderMaterial: .derivatives has been moved to .extensions.derivatives."),this.extensions.derivatives},set:function(t){console.warn("THREE. ShaderMaterial: .derivatives has been moved to .extensions.derivatives."),this.extensions.derivatives=t}}}),Object.assign(xe.prototype,{clearTarget:function(t,e,i,n){console.warn("THREE.WebGLRenderer: .clearTarget() has been deprecated. Use .setRenderTarget() and .clear() instead."),this.setRenderTarget(t),this.clear(e,i,n)},animate:function(t){console.warn("THREE.WebGLRenderer: .animate() is now .setAnimationLoop()."),this.setAnimationLoop(t)},getCurrentRenderTarget:function(){return console.warn("THREE.WebGLRenderer: .getCurrentRenderTarget() is now .getRenderTarget()."),this.getRenderTarget()},getMaxAnisotropy:function(){return console.warn("THREE.WebGLRenderer: .getMaxAnisotropy() is now .capabilities.getMaxAnisotropy()."),this.capabilities.getMaxAnisotropy()},getPrecision:function(){return console.warn("THREE.WebGLRenderer: .getPrecision() is now .capabilities.precision."),this.capabilities.precision},resetGLState:function(){return console.warn("THREE.WebGLRenderer: .resetGLState() is now .state.reset()."),this.state.reset()},supportsFloatTextures:function(){return console.warn("THREE.WebGLRenderer: .supportsFloatTextures() is now .extensions.get( 'OES_texture_float' )."),this.extensions.get("OES_texture_float")},supportsHalfFloatTextures:function(){return console.warn("THREE.WebGLRenderer: .supportsHalfFloatTextures() is now .extensions.get( 'OES_texture_half_float' )."),this.extensions.get("OES_texture_half_float")},supportsStandardDerivatives:function(){return console.warn("THREE.WebGLRenderer: .supportsStandardDerivatives() is now .extensions.get( 'OES_standard_derivatives' )."),this.extensions.get("OES_standard_derivatives")},supportsCompressedTextureS3TC:function(){return console.warn("THREE.WebGLRenderer: .supportsCompressedTextureS3TC() is now .extensions.get( 'WEBGL_compressed_texture_s3tc' )."),this.extensions.get("WEBGL_compressed_texture_s3tc")},supportsCompressedTexturePVRTC:function(){return console.warn("THREE.WebGLRenderer: .supportsCompressedTexturePVRTC() is now .extensions.get( 'WEBGL_compressed_texture_pvrtc' )."),this.extensions.get("WEBGL_compressed_texture_pvrtc")},supportsBlendMinMax:function(){return console.warn("THREE.WebGLRenderer: .supportsBlendMinMax() is now .extensions.get( 'EXT_blend_minmax' )."),this.extensions.get("EXT_blend_minmax")},supportsVertexTextures:function(){return console.warn("THREE.WebGLRenderer: .supportsVertexTextures() is now .capabilities.vertexTextures."),this.capabilities.vertexTextures},supportsInstancedArrays:function(){return console.warn("THREE.WebGLRenderer: .supportsInstancedArrays() is now .extensions.get( 'ANGLE_instanced_arrays' )."),this.extensions.get("ANGLE_instanced_arrays")},enableScissorTest:function(t){console.warn("THREE.WebGLRenderer: .enableScissorTest() is now .setScissorTest()."),this.setScissorTest(t)},initMaterial:function(){console.warn("THREE.WebGLRenderer: .initMaterial() has been removed.")},addPrePlugin:function(){console.warn("THREE.WebGLRenderer: .addPrePlugin() has been removed.")},addPostPlugin:function(){console.warn("THREE.WebGLRenderer: .addPostPlugin() has been removed.")},updateShadowMap:function(){console.warn("THREE.WebGLRenderer: .updateShadowMap() has been removed.")},setFaceCulling:function(){console.warn("THREE.WebGLRenderer: .setFaceCulling() has been removed.")}}),Object.defineProperties(xe.prototype,{shadowMapEnabled:{get:function(){return this.shadowMap.enabled},set:function(t){console.warn("THREE.WebGLRenderer: .shadowMapEnabled is now .shadowMap.enabled."),this.shadowMap.enabled=t}},shadowMapType:{get:function(){return this.shadowMap.type},set:function(t){console.warn("THREE.WebGLRenderer: .shadowMapType is now .shadowMap.type."),this.shadowMap.type=t}},shadowMapCullFace:{get:function(){console.warn("THREE.WebGLRenderer: .shadowMapCullFace has been removed. Set Material.shadowSide instead.")},set:function(){console.warn("THREE.WebGLRenderer: .shadowMapCullFace has been removed. Set Material.shadowSide instead.")}}}),Object.defineProperties(_e.prototype,{cullFace:{get:function(){console.warn("THREE.WebGLRenderer: .shadowMap.cullFace has been removed. Set Material.shadowSide instead.")},set:function(){console.warn("THREE.WebGLRenderer: .shadowMap.cullFace has been removed. Set Material.shadowSide instead.")}},renderReverseSided:{get:function(){console.warn("THREE.WebGLRenderer: .shadowMap.renderReverseSided has been removed. Set Material.shadowSide instead.")},set:function(){console.warn("THREE.WebGLRenderer: .shadowMap.renderReverseSided has been removed. Set Material.shadowSide instead.")}},renderSingleSided:{get:function(){console.warn("THREE.WebGLRenderer: .shadowMap.renderSingleSided has been removed. Set Material.shadowSide instead.")},set:function(){console.warn("THREE.WebGLRenderer: .shadowMap.renderSingleSided has been removed. Set Material.shadowSide instead.")}}}),Object.defineProperties(S.prototype,{wrapS:{get:function(){return console.warn("THREE.WebGLRenderTarget: .wrapS is now .texture.wrapS."),this.texture.wrapS},set:function(t){console.warn("THREE.WebGLRenderTarget: .wrapS is now .texture.wrapS."),this.texture.wrapS=t}},wrapT:{get:function(){return console.warn("THREE.WebGLRenderTarget: .wrapT is now .texture.wrapT."),this.texture.wrapT},set:function(t){console.warn("THREE.WebGLRenderTarget: .wrapT is now .texture.wrapT."),this.texture.wrapT=t}},magFilter:{get:function(){return console.warn("THREE.WebGLRenderTarget: .magFilter is now .texture.magFilter."),this.texture.magFilter},set:function(t){console.warn("THREE.WebGLRenderTarget: .magFilter is now .texture.magFilter."),this.texture.magFilter=t}},minFilter:{get:function(){return console.warn("THREE.WebGLRenderTarget: .minFilter is now .texture.minFilter."),this.texture.minFilter},set:function(t){console.warn("THREE.WebGLRenderTarget: .minFilter is now .texture.minFilter."),this.texture.minFilter=t}},anisotropy:{get:function(){return console.warn("THREE.WebGLRenderTarget: .anisotropy is now .texture.anisotropy."),this.texture.anisotropy},set:function(t){console.warn("THREE.WebGLRenderTarget: .anisotropy is now .texture.anisotropy."),this.texture.anisotropy=t}},offset:{get:function(){return console.warn("THREE.WebGLRenderTarget: .offset is now .texture.offset."),this.texture.offset},set:function(t){console.warn("THREE.WebGLRenderTarget: .offset is now .texture.offset."),this.texture.offset=t}},repeat:{get:function(){return console.warn("THREE.WebGLRenderTarget: .repeat is now .texture.repeat."),this.texture.repeat},set:function(t){console.warn("THREE.WebGLRenderTarget: .repeat is now .texture.repeat."),this.texture.repeat=t}},format:{get:function(){return console.warn("THREE.WebGLRenderTarget: .format is now .texture.format."),this.texture.format},set:function(t){console.warn("THREE.WebGLRenderTarget: .format is now .texture.format."),this.texture.format=t}},type:{get:function(){return console.warn("THREE.WebGLRenderTarget: .type is now .texture.type."),this.texture.type},set:function(t){console.warn("THREE.WebGLRenderTarget: .type is now .texture.type."),this.texture.type=t}},generateMipmaps:{get:function(){return console.warn("THREE.WebGLRenderTarget: .generateMipmaps is now .texture.generateMipmaps."),this.texture.generateMipmaps},set:function(t){console.warn("THREE.WebGLRenderTarget: .generateMipmaps is now .texture.generateMipmaps."),this.texture.generateMipmaps=t}}}),Object.defineProperties(mi.prototype,{standing:{set:function(){console.warn("THREE.WebVRManager: .standing has been removed.")}},userHeight:{set:function(){console.warn("THREE.WebVRManager: .userHeight has been removed.")}}}),wa.prototype.load=function(t){console.warn("THREE.Audio: .load has been deprecated. Use THREE.AudioLoader instead.");var e=this;return new vn().load(t,function(i){e.setBuffer(i)}),this},zo.prototype.getData=function(){return console.warn("THREE.AudioAnalyser: .getData() is now .getFrequencyData()."),this.getFrequencyData()},hl.prototype.updateCubeMap=function(t,e){return console.warn("THREE.CubeCamera: .updateCubeMap() is now .update()."),this.update(t,e)},so.crossOrigin=void 0,so.loadTexture=function(t,e,i,n){console.warn("THREE.ImageUtils.loadTexture has been deprecated. Use THREE.TextureLoader() instead.");var s=new fn;return s.setCrossOrigin(this.crossOrigin),t=s.load(t,i,void 0,n),e&&(t.mapping=e),t},so.loadTextureCube=function(t,e,i,n){console.warn("THREE.ImageUtils.loadTextureCube has been deprecated. Use THREE.CubeTextureLoader() instead.");var s=new Ni;return s.setCrossOrigin(this.crossOrigin),t=s.load(t,i,void 0,n),e&&(t.mapping=e),t},so.loadCompressedTexture=function(){console.error("THREE.ImageUtils.loadCompressedTexture has been removed. Use THREE.DDSLoader instead.")},so.loadCompressedTextureCube=function(){console.error("THREE.ImageUtils.loadCompressedTextureCube has been removed. Use THREE.DDSLoader instead.")},x.WebGLRenderTargetCube=A,x.WebGLRenderTarget=S,x.WebGLRenderer=xe,x.ShaderLib=xs,x.UniformsLib=qe,x.UniformsUtils=Bn,x.ShaderChunk=bi,x.FogExp2=Le,x.Fog=Sn,x.Scene=Xn,x.Sprite=nn,x.LOD=rn,x.SkinnedMesh=Gi,x.Skeleton=un,x.Bone=cn,x.Mesh=di,x.LineSegments=gi,x.LineLoop=cs,x.Line=ji,x.Points=oa,x.Group=ci,x.VideoTexture=Rh,x.DataTexture=I,x.DataTexture3D=Q,x.CompressedTexture=qs,x.CubeTexture=z,x.CanvasTexture=Za,x.DepthTexture=Ja,x.Texture=_,x.AnimationLoader=Qt,x.CompressedTextureLoader=Zt,x.DataTextureLoader=Ue,x.CubeTextureLoader=Ni,x.TextureLoader=fn,x.ObjectLoader=ll,x.MaterialLoader=Kl,x.BufferGeometryLoader=Dh,x.DefaultLoadingManager=tr,x.LoadingManager=to,x.JSONLoader=Do,x.ImageLoader=ai,x.ImageBitmapLoader=zh,x.FontLoader=bu,x.FileLoader=Lt,x.Loader=Is,x.LoaderUtils=Fo,x.Cache=Ts,x.AudioLoader=vn,x.SpotLightShadow=ol,x.SpotLight=al,x.PointLight=Oo,x.RectAreaLight=$l,x.HemisphereLight=sl,x.DirectionalLightShadow=io,x.DirectionalLight=ys,x.AmbientLight=Io,x.LightShadow=_s,x.Light=tn,x.StereoCamera=Vn,x.PerspectiveCamera=ye,x.OrthographicCamera=xa,x.CubeCamera=hl,x.ArrayCamera=Fe,x.Camera=Be,x.AudioListener=th,x.PositionalAudio=ul,x.AudioContext=qh,x.AudioAnalyser=zo,x.Audio=wa,x.VectorKeyframeTrack=_a,x.StringKeyframeTrack=Jl,x.QuaternionKeyframeTrack=va,x.NumberKeyframeTrack=$r,x.ColorKeyframeTrack=Zl,x.BooleanKeyframeTrack=Yl,x.PropertyMixer=cl,x.PropertyBinding=En,x.KeyframeTrack=Hn,x.AnimationUtils=Yn,x.AnimationObjectGroup=Ta,x.AnimationMixer=no,x.AnimationClip=yr,x.Uniform=eh,x.InstancedBufferGeometry=Nh,x.BufferGeometry=Ft,x.Geometry=j,x.InterleavedBufferAttribute=ki,x.InstancedInterleavedBuffer=Fh,x.InterleavedBuffer=zi,x.InstancedBufferAttribute=Uh,x.Face3=R,x.Object3D=N,x.Raycaster=Au,x.Layers=U,x.EventDispatcher=a,x.Clock=Bh,x.QuaternionLinearInterpolant=ar,x.LinearInterpolant=Dr,x.DiscreteInterpolant=Ro,x.CubicInterpolant=rl,x.Interpolant=$n,x.Triangle=Oe,x.Math=pi,x.Spherical=Gh,x.Cylindrical=it,x.Plane=F,x.Frustum=E,x.Sphere=D,x.Ray=Oi,x.Matrix4=c,x.Matrix3=m,x.Box3=k,x.Box2=ro,x.Line3=Ma,x.Euler=b,x.Vector4=y,x.Vector3=u,x.Vector2=o,x.Quaternion=d,x.Color=L,x.ImmediateRenderObject=qn,x.VertexNormalsHelper=yi,x.SpotLightHelper=Sa,x.SkeletonHelper=Ea,x.PointLightHelper=kr,x.RectAreaLightHelper=ba,x.HemisphereLightHelper=Aa,x.GridHelper=dl,x.PolarGridHelper=ih,x.FaceNormalsHelper=ml,x.DirectionalLightHelper=pr,x.CameraHelper=gl,x.BoxHelper=Ds,x.Box3Helper=vl,x.PlaneHelper=_l,x.ArrowHelper=zs,x.AxesHelper=xr,x.Shape=Qn,x.Path=fr,x.ShapePath=Ql,x.Font=kh,x.CurvePath=Os,x.Curve=Ee,x.ImageUtils=so,x.ShapeUtils=ws,x.WebGLUtils=He,x.WireframeGeometry=aa,x.ParametricGeometry=$a,x.ParametricBufferGeometry=la,x.TetrahedronGeometry=Ka,x.TetrahedronBufferGeometry=ha,x.OctahedronGeometry=Qa,x.OctahedronBufferGeometry=_o,x.IcosahedronGeometry=tl,x.IcosahedronBufferGeometry=ua,x.DodecahedronGeometry=ca,x.DodecahedronBufferGeometry=fa,x.PolyhedronGeometry=Xi,x.PolyhedronBufferGeometry=xi,x.TubeGeometry=gn,x.TubeBufferGeometry=Ys,x.TorusKnotGeometry=Zr,x.TorusKnotBufferGeometry=yo,x.TorusGeometry=xo,x.TorusBufferGeometry=Un,x.TextGeometry=il,x.TextBufferGeometry=To,x.SphereGeometry=Zs,x.SphereBufferGeometry=Or,x.RingGeometry=nl,x.RingBufferGeometry=Mo,x.PlaneGeometry=ke,x.PlaneBufferGeometry=ce,x.LatheGeometry=ma,x.LatheBufferGeometry=Js,x.ShapeGeometry=Ps,x.ShapeBufferGeometry=$s,x.ExtrudeGeometry=Cs,x.ExtrudeBufferGeometry=ps,x.EdgesGeometry=Ks,x.ConeGeometry=ga,x.ConeBufferGeometry=Gn,x.CylinderGeometry=Ls,x.CylinderBufferGeometry=Rs,x.CircleGeometry=So,x.CircleBufferGeometry=ds,x.BoxGeometry=Ot,x.BoxBufferGeometry=Bt,x.ShadowMaterial=Qs,x.SpriteMaterial=Hi,x.RawShaderMaterial=Eo,x.ShaderMaterial=$e,x.PointsMaterial=Fn,x.MeshPhysicalMaterial=bo,x.MeshStandardMaterial=ms,x.MeshPhongMaterial=Jr,x.MeshToonMaterial=Ao,x.MeshNormalMaterial=Co,x.MeshLambertMaterial=Ir,x.MeshDepthMaterial=oe,x.MeshDistanceMaterial=te,x.MeshBasicMaterial=Ge,x.MeshMatcapMaterial=Po,x.LineDashedMaterial=Lo,x.LineBasicMaterial=Bi,x.Material=Yt,x.Float64BufferAttribute=Ct,x.Float32BufferAttribute=Et,x.Uint32BufferAttribute=Pt,x.Int32BufferAttribute=G,x.Uint16BufferAttribute=yt,x.Int16BufferAttribute=et,x.Uint8ClampedBufferAttribute=It,x.Uint8BufferAttribute=ct,x.Int8BufferAttribute=$,x.BufferAttribute=J,x.ArcCurve=ya,x.CatmullRomCurve3=On,x.CubicBezierCurve=hr,x.CubicBezierCurve3=Ti,x.EllipseCurve=Kn,x.LineCurve=ur,x.LineCurve3=zr,x.QuadraticBezierCurve=cr,x.QuadraticBezierCurve3=vs,x.SplineCurve=Kr,x.REVISION="98",x.MOUSE={LEFT:0,MIDDLE:1,RIGHT:2},x.CullFaceNone=0,x.CullFaceBack=1,x.CullFaceFront=2,x.CullFaceFrontBack=3,x.FrontFaceDirectionCW=0,x.FrontFaceDirectionCCW=1,x.BasicShadowMap=0,x.PCFShadowMap=1,x.PCFSoftShadowMap=2,x.FrontSide=0,x.BackSide=1,x.DoubleSide=2,x.FlatShading=1,x.SmoothShading=2,x.NoColors=0,x.FaceColors=1,x.VertexColors=2,x.NoBlending=0,x.NormalBlending=1,x.AdditiveBlending=2,x.SubtractiveBlending=3,x.MultiplyBlending=4,x.CustomBlending=5,x.AddEquation=100,x.SubtractEquation=101,x.ReverseSubtractEquation=102,x.MinEquation=103,x.MaxEquation=104,x.ZeroFactor=200,x.OneFactor=201,x.SrcColorFactor=202,x.OneMinusSrcColorFactor=203,x.SrcAlphaFactor=204,x.OneMinusSrcAlphaFactor=205,x.DstAlphaFactor=206,x.OneMinusDstAlphaFactor=207,x.DstColorFactor=208,x.OneMinusDstColorFactor=209,x.SrcAlphaSaturateFactor=210,x.NeverDepth=0,x.AlwaysDepth=1,x.LessDepth=2,x.LessEqualDepth=3,x.EqualDepth=4,x.GreaterEqualDepth=5,x.GreaterDepth=6,x.NotEqualDepth=7,x.MultiplyOperation=0,x.MixOperation=1,x.AddOperation=2,x.NoToneMapping=0,x.LinearToneMapping=1,x.ReinhardToneMapping=2,x.Uncharted2ToneMapping=3,x.CineonToneMapping=4,x.UVMapping=300,x.CubeReflectionMapping=301,x.CubeRefractionMapping=302,x.EquirectangularReflectionMapping=303,x.EquirectangularRefractionMapping=304,x.SphericalReflectionMapping=305,x.CubeUVReflectionMapping=306,x.CubeUVRefractionMapping=307,x.RepeatWrapping=1e3,x.ClampToEdgeWrapping=1001,x.MirroredRepeatWrapping=1002,x.NearestFilter=1003,x.NearestMipMapNearestFilter=1004,x.NearestMipMapLinearFilter=1005,x.LinearFilter=1006,x.LinearMipMapNearestFilter=1007,x.LinearMipMapLinearFilter=1008,x.UnsignedByteType=1009,x.ByteType=1010,x.ShortType=1011,x.UnsignedShortType=1012,x.IntType=1013,x.UnsignedIntType=1014,x.FloatType=1015,x.HalfFloatType=1016,x.UnsignedShort4444Type=1017,x.UnsignedShort5551Type=1018,x.UnsignedShort565Type=1019,x.UnsignedInt248Type=1020,x.AlphaFormat=1021,x.RGBFormat=1022,x.RGBAFormat=1023,x.LuminanceFormat=1024,x.LuminanceAlphaFormat=1025,x.RGBEFormat=1023,x.DepthFormat=1026,x.DepthStencilFormat=1027,x.RedFormat=1028,x.RGB_S3TC_DXT1_Format=33776,x.RGBA_S3TC_DXT1_Format=33777,x.RGBA_S3TC_DXT3_Format=33778,x.RGBA_S3TC_DXT5_Format=33779,x.RGB_PVRTC_4BPPV1_Format=35840,x.RGB_PVRTC_2BPPV1_Format=35841,x.RGBA_PVRTC_4BPPV1_Format=35842,x.RGBA_PVRTC_2BPPV1_Format=35843,x.RGB_ETC1_Format=36196,x.RGBA_ASTC_4x4_Format=37808,x.RGBA_ASTC_5x4_Format=37809,x.RGBA_ASTC_5x5_Format=37810,x.RGBA_ASTC_6x5_Format=37811,x.RGBA_ASTC_6x6_Format=37812,x.RGBA_ASTC_8x5_Format=37813,x.RGBA_ASTC_8x6_Format=37814,x.RGBA_ASTC_8x8_Format=37815,x.RGBA_ASTC_10x5_Format=37816,x.RGBA_ASTC_10x6_Format=37817,x.RGBA_ASTC_10x8_Format=37818,x.RGBA_ASTC_10x10_Format=37819,x.RGBA_ASTC_12x10_Format=37820,x.RGBA_ASTC_12x12_Format=37821,x.LoopOnce=2200,x.LoopRepeat=2201,x.LoopPingPong=2202,x.InterpolateDiscrete=2300,x.InterpolateLinear=2301,x.InterpolateSmooth=2302,x.ZeroCurvatureEnding=2400,x.ZeroSlopeEnding=2401,x.WrapAroundEnding=2402,x.TrianglesDrawMode=0,x.TriangleStripDrawMode=1,x.TriangleFanDrawMode=2,x.LinearEncoding=3e3,x.sRGBEncoding=3001,x.GammaEncoding=3007,x.RGBEEncoding=3002,x.LogLuvEncoding=3003,x.RGBM7Encoding=3004,x.RGBM16Encoding=3005,x.RGBDEncoding=3006,x.BasicDepthPacking=3200,x.RGBADepthPacking=3201,x.TangentSpaceNormalMap=0,x.ObjectSpaceNormalMap=1,x.CubeGeometry=Ot,x.Face4=function(t,e,i,n,s,l,f){return console.warn("THREE.Face4 has been removed. A THREE.Face3 will be created instead."),new R(t,e,i,s,l,f)},x.LineStrip=0,x.LinePieces=1,x.MeshFaceMaterial=function(t){return console.warn("THREE.MeshFaceMaterial has been removed. Use an Array instead."),t},x.MultiMaterial=function(t){return t===void 0&&(t=[]),console.warn("THREE.MultiMaterial has been removed. Use an Array instead."),t.isMultiMaterial=!0,t.materials=t,t.clone=function(){return t.slice()},t},x.PointCloud=function(t,e){return console.warn("THREE.PointCloud has been renamed to THREE.Points."),new oa(t,e)},x.Particle=function(t){return console.warn("THREE.Particle has been renamed to THREE.Sprite."),new nn(t)},x.ParticleSystem=function(t,e){return console.warn("THREE.ParticleSystem has been renamed to THREE.Points."),new oa(t,e)},x.PointCloudMaterial=function(t){return console.warn("THREE.PointCloudMaterial has been renamed to THREE.PointsMaterial."),new Fn(t)},x.ParticleBasicMaterial=function(t){return console.warn("THREE.ParticleBasicMaterial has been renamed to THREE.PointsMaterial."),new Fn(t)},x.ParticleSystemMaterial=function(t){return console.warn("THREE.ParticleSystemMaterial has been renamed to THREE.PointsMaterial."),new Fn(t)},x.Vertex=function(t,e,i){return console.warn("THREE.Vertex has been removed. Use THREE.Vector3 instead."),new u(t,e,i)},x.DynamicBufferAttribute=function(t,e){return console.warn("THREE.DynamicBufferAttribute has been removed. Use new THREE.BufferAttribute().setDynamic( true ) instead."),new J(t,e).setDynamic(!0)},x.Int8Attribute=function(t,e){return console.warn("THREE.Int8Attribute has been removed. Use new THREE.Int8BufferAttribute() instead."),new $(t,e)},x.Uint8Attribute=function(t,e){return console.warn("THREE.Uint8Attribute has been removed. Use new THREE.Uint8BufferAttribute() instead."),new ct(t,e)},x.Uint8ClampedAttribute=function(t,e){return console.warn("THREE.Uint8ClampedAttribute has been removed. Use new THREE.Uint8ClampedBufferAttribute() instead."),new It(t,e)},x.Int16Attribute=function(t,e){return console.warn("THREE.Int16Attribute has been removed. Use new THREE.Int16BufferAttribute() instead."),new et(t,e)},x.Uint16Attribute=function(t,e){return console.warn("THREE.Uint16Attribute has been removed. Use new THREE.Uint16BufferAttribute() instead."),new yt(t,e)},x.Int32Attribute=function(t,e){return console.warn("THREE.Int32Attribute has been removed. Use new THREE.Int32BufferAttribute() instead."),new G(t,e)},x.Uint32Attribute=function(t,e){return console.warn("THREE.Uint32Attribute has been removed. Use new THREE.Uint32BufferAttribute() instead."),new Pt(t,e)},x.Float32Attribute=function(t,e){return console.warn("THREE.Float32Attribute has been removed. Use new THREE.Float32BufferAttribute() instead."),new Et(t,e)},x.Float64Attribute=function(t,e){return console.warn("THREE.Float64Attribute has been removed. Use new THREE.Float64BufferAttribute() instead."),new Ct(t,e)},x.ClosedSplineCurve3=Pu,x.SplineCurve3=Lu,x.Spline=Hh,x.AxisHelper=function(t){return console.warn("THREE.AxisHelper has been renamed to THREE.AxesHelper."),new xr(t)},x.BoundingBoxHelper=function(t,e){return console.warn("THREE.BoundingBoxHelper has been deprecated. Creating a THREE.BoxHelper instead."),new Ds(t,e)},x.EdgesHelper=function(t,e){return console.warn("THREE.EdgesHelper has been removed. Use THREE.EdgesGeometry instead."),new gi(new Ks(t.geometry),new Bi({color:e!==void 0?e:16777215}))},x.WireframeHelper=function(t,e){return console.warn("THREE.WireframeHelper has been removed. Use THREE.WireframeGeometry instead."),new gi(new aa(t.geometry),new Bi({color:e!==void 0?e:16777215}))},x.XHRLoader=function(t){return console.warn("THREE.XHRLoader has been renamed to THREE.FileLoader."),new Lt(t)},x.BinaryTextureLoader=function(t){return console.warn("THREE.BinaryTextureLoader has been renamed to THREE.DataTextureLoader."),new Ue(t)},x.GeometryUtils={merge:function(t,e,i){if(console.warn("THREE.GeometryUtils: .merge() has been moved to Geometry. Use geometry.merge( geometry2, matrix, materialIndexOffset ) instead."),e.isMesh){e.matrixAutoUpdate&&e.updateMatrix();var n=e.matrix;e=e.geometry}t.merge(e,n,i)},center:function(t){return console.warn("THREE.GeometryUtils: .center() has been moved to Geometry. Use geometry.center() instead."),t.center()}},x.Projector=function(){console.error("THREE.Projector has been moved to /examples/js/renderers/Projector.js."),this.projectVector=function(t,e){console.warn("THREE.Projector: .projectVector() is now vector.project()."),t.project(e)},this.unprojectVector=function(t,e){console.warn("THREE.Projector: .unprojectVector() is now vector.unproject()."),t.unproject(e)},this.pickingRay=function(){console.error("THREE.Projector: .pickingRay() is now raycaster.setFromCamera().")}},x.CanvasRenderer=function(){console.error("THREE.CanvasRenderer has been removed")},x.SceneUtils={createMultiMaterialObject:function(){console.error("THREE.SceneUtils has been moved to /examples/js/utils/SceneUtils.js")},detach:function(){console.error("THREE.SceneUtils has been moved to /examples/js/utils/SceneUtils.js")},attach:function(){console.error("THREE.SceneUtils has been moved to /examples/js/utils/SceneUtils.js")}},x.LensFlare=function(){console.error("THREE.LensFlare has been moved to /examples/js/objects/Lensflare.js")},Object.defineProperty(x,"__esModule",{value:!0})}),THREE.Sky=function(){var x=THREE.Sky.SkyShader,a=new THREE.ShaderMaterial({fragmentShader:x.fragmentShader,vertexShader:x.vertexShader,uniforms:THREE.UniformsUtils.clone(x.uniforms),side:THREE.BackSide});THREE.Mesh.call(this,new THREE.BoxBufferGeometry(1,1,1),a)},THREE.Sky.prototype=Object.create(THREE.Mesh.prototype),THREE.Sky.SkyShader={uniforms:{luminance:{value:1},turbidity:{value:2},rayleigh:{value:1},mieCoefficient:{value:.005},mieDirectionalG:{value:.8},sunPosition:{value:new THREE.Vector3}},vertexShader:["uniform vec3 sunPosition;","uniform float rayleigh;","uniform float turbidity;","uniform float mieCoefficient;","varying vec3 vWorldPosition;","varying vec3 vSunDirection;","varying float vSunfade;","varying vec3 vBetaR;","varying vec3 vBetaM;","varying float vSunE;","const vec3 up = vec3( 0.0, 1.0, 0.0 );","const float e = 2.71828182845904523536028747135266249775724709369995957;","const float pi = 3.141592653589793238462643383279502884197169;","const vec3 lambda = vec3( 680E-9, 550E-9, 450E-9 );","const vec3 totalRayleigh = vec3( 5.804542996261093E-6, 1.3562911419845635E-5, 3.0265902468824876E-5 );","const float v = 4.0;","const vec3 K = vec3( 0.686, 0.678, 0.666 );","const vec3 MieConst = vec3( 1.8399918514433978E14, 2.7798023919660528E14, 4.0790479543861094E14 );","const float cutoffAngle = 1.6110731556870734;","const float steepness = 1.5;","const float EE = 1000.0;","float sunIntensity( float zenithAngleCos ) {"," zenithAngleCos = clamp( zenithAngleCos, -1.0, 1.0 );"," return EE * max( 0.0, 1.0 - pow( e, -( ( cutoffAngle - acos( zenithAngleCos ) ) / steepness ) ) );","}","vec3 totalMie( float T ) {"," float c = ( 0.2 * T ) * 10E-18;"," return 0.434 * c * MieConst;","}","void main() {"," vec4 worldPosition = modelMatrix * vec4( position, 1.0 );"," vWorldPosition = worldPosition.xyz;"," gl_Position = projectionMatrix * modelViewMatrix * vec4( position, 1.0 );"," gl_Position.z = gl_Position.w;"," vSunDirection = normalize( sunPosition );"," vSunE = sunIntensity( dot( vSunDirection, up ) );"," vSunfade = 1.0 - clamp( 1.0 - exp( ( sunPosition.y / 450000.0 ) ), 0.0, 1.0 );"," float rayleighCoefficient = rayleigh - ( 1.0 * ( 1.0 - vSunfade ) );"," vBetaR = totalRayleigh * rayleighCoefficient;"," vBetaM = totalMie( turbidity ) * mieCoefficient;","}"].join(`
2572
2572
  `),fragmentShader:["varying vec3 vWorldPosition;","varying vec3 vSunDirection;","varying float vSunfade;","varying vec3 vBetaR;","varying vec3 vBetaM;","varying float vSunE;","uniform float luminance;","uniform float mieDirectionalG;","const vec3 cameraPos = vec3( 0.0, 1.0, 0.0 );","const float pi = 3.141592653589793238462643383279502884197169;","const float n = 1.0003;","const float N = 2.545E25;","const float rayleighZenithLength = 8.4E3;","const float mieZenithLength = 1.25E3;","const vec3 up = vec3( 0.0, 1.0, 0.0 );","const float sunAngularDiameterCos = 0.999956676946448443553574619906976478926848692873900859324;","const float THREE_OVER_SIXTEENPI = 0.05968310365946075;","const float ONE_OVER_FOURPI = 0.07957747154594767;","float rayleighPhase( float cosTheta ) {"," return THREE_OVER_SIXTEENPI * ( 1.0 + pow( cosTheta, 2.0 ) );","}","float hgPhase( float cosTheta, float g ) {"," float g2 = pow( g, 2.0 );"," float inverse = 1.0 / pow( 1.0 - 2.0 * g * cosTheta + g2, 1.5 );"," return ONE_OVER_FOURPI * ( ( 1.0 - g2 ) * inverse );","}","const float A = 0.15;","const float B = 0.50;","const float C = 0.10;","const float D = 0.20;","const float E = 0.02;","const float F = 0.30;","const float whiteScale = 1.0748724675633854;","vec3 Uncharted2Tonemap( vec3 x ) {"," return ( ( x * ( A * x + C * B ) + D * E ) / ( x * ( A * x + B ) + D * F ) ) - E / F;","}","void main() {"," float zenithAngle = acos( max( 0.0, dot( up, normalize( vWorldPosition - cameraPos ) ) ) );"," float inverse = 1.0 / ( cos( zenithAngle ) + 0.15 * pow( 93.885 - ( ( zenithAngle * 180.0 ) / pi ), -1.253 ) );"," float sR = rayleighZenithLength * inverse;"," float sM = mieZenithLength * inverse;"," vec3 Fex = exp( -( vBetaR * sR + vBetaM * sM ) );"," float cosTheta = dot( normalize( vWorldPosition - cameraPos ), vSunDirection );"," float rPhase = rayleighPhase( cosTheta * 0.5 + 0.5 );"," vec3 betaRTheta = vBetaR * rPhase;"," float mPhase = hgPhase( cosTheta, mieDirectionalG );"," vec3 betaMTheta = vBetaM * mPhase;"," vec3 Lin = pow( vSunE * ( ( betaRTheta + betaMTheta ) / ( vBetaR + vBetaM ) ) * ( 1.0 - Fex ), vec3( 1.5 ) );"," Lin *= mix( vec3( 1.0 ), pow( vSunE * ( ( betaRTheta + betaMTheta ) / ( vBetaR + vBetaM ) ) * Fex, vec3( 1.0 / 2.0 ) ), clamp( pow( 1.0 - dot( up, vSunDirection ), 5.0 ), 0.0, 1.0 ) );"," vec3 direction = normalize( vWorldPosition - cameraPos );"," float theta = acos( direction.y ); // elevation --> y-axis, [-pi/2, pi/2]"," float phi = atan( direction.z, direction.x ); // azimuth --> x-axis [-pi/2, pi/2]"," vec2 uv = vec2( phi, theta ) / vec2( 2.0 * pi, pi ) + vec2( 0.5, 0.0 );"," vec3 L0 = vec3( 0.1 ) * Fex;"," float sundisk = smoothstep( sunAngularDiameterCos, sunAngularDiameterCos + 0.00002, cosTheta );"," L0 += ( vSunE * 19000.0 * Fex ) * sundisk;"," vec3 texColor = ( Lin + L0 ) * 0.04 + vec3( 0.0, 0.0003, 0.00075 );"," vec3 curr = Uncharted2Tonemap( ( log2( 2.0 / pow( luminance, 4.0 ) ) ) * texColor );"," vec3 color = curr * whiteScale;"," vec3 retColor = pow( color, vec3( 1.0 / ( 1.2 + ( 1.2 * vSunfade ) ) ) );"," gl_FragColor = vec4( retColor, 1.0 );","}"].join(`
2573
- `)},function(x){typeof module>"u"?window.charming=x:module.exports=x}(function(x,l){l=l||{};var o=l.tagName||"span",c=l.classPrefix!=null?l.classPrefix:"char",d=1,u=function(m){for(var _=m.parentNode,y=m.nodeValue,S=y.length,A=-1;++A<S;){var I=document.createElement(o);c&&(I.className=c+d,d++),I.appendChild(document.createTextNode(y[A])),_.insertBefore(I,m)}_.removeChild(m)};return function m(_){for(var y=[].slice.call(_.childNodes),S=y.length,A=-1;++A<S;)m(y[A]);_.nodeType===Node.TEXT_NODE&&u(_)}(x),x});class im{constructor(l=[]){mars3d?(this.tilesetLayer,this.modelArr=l,this.bimObliquePhotographyId=[],this.editDate={id:null}):console.error("未引入指定插件")}pushModel(l){this.modelArr.push(l)}add(l,o,c){console.log("customAttributes",c);let d=c==null?void 0:c.isClone;const u=new Map([["click",mars3d.EventType.click],["initialTilesLoaded",mars3d.EventType.initialTilesLoaded]]);return new Promise((m,_)=>{let y,S,A,I,k,D,N,E,P;if(typeof l!="object"){let b=this.query(l);b||_("缺少树结构");let{id:U,bimModelExcavationDetails:F,bimModel:j}=b;y=U,S=j.modelType,A=j.tender,I=j.releasedDistance,k=j.modelName,D=j.isDynamicReleased,N={bimModelExcavationDetails:F},E=b.url,P=j.modelColor}else y=l.modelId,S=l.modelType,A=l.tender,I=l.releasedDistance,k=l.modelTitle,D=l.permission,N=l.customize,E=l.url,P=l.color;let T={enabled:!0,precise:!1,czm:!1},M={enabled:!0,precise:!1,czm:!1};c&&(c.color&&(P=c.color),c.clip&&(T.area=c.clip.handleDataList),c.flat&&(M.area=c.flat.handleDataList));let R=window.map.getLayer(l,"modelId");if(R)return m(R),c.color&&this.editColor(l,c.color,c),!1;if(E.indexOf("tileset.json")<0)return console.error("链接不完整",k),m({tite:"【模型】「"+k+"」链接地址有误",type:"error",id:y,url:E}),!1;new Cesium.Resource({url:E}).fetchJson().then(U=>{let F=null;P&&(F={color:{conditions:[["true",P]]}}),this.tilesetLayer=new mars3d.layer.TilesetLayer({modelId:y,modelType:S,tender:A,releasedDistance:I,modelTitle:k,permission:D,customize:N,url:encodeURI(E),skipLevelOfDetail:!1,loadSiblings:!0,cullRequestsWhileMoving:!0,cullRequestsWhileMovingMultiplier:10,preferLeaves:!0,progressiveResolutionHeightFraction:.5,dynamicScreenSpaceError:!0,preloadWhenHidden:!1,style:F,clip:T,flat:M,maximumScreenSpaceError:16,maximumMemoryUsage:1024,cacheBytes:1073741824*2,maximumCacheOverflowBytes:2147483648*2}),this.tilesetLayer.bindPopup(j=>{if(j.graphic){const J=j.graphic.attr;let $=null,ct=null;return JSON.stringify(J)!=="{}"?(J.name&&($=J.name.lastIndexOf("@")),$&&$>-1&&(ct=J.name.slice(0,$)),J.name?`&nbsp;&nbsp;<span>${ct||J.name}</span>&nbsp;&nbsp;`:`&nbsp;&nbsp;<span>${k}</span>&nbsp;&nbsp;`):`&nbsp;&nbsp;<span>${k}</span>&nbsp;&nbsp;`}else return`&nbsp;&nbsp;<span>${k}</span>&nbsp;&nbsp;`}),this.tilesetLayer.readyPromise.then(j=>{m(j);let{modelId:J}=j.options;j.clip.options.area.forEach($=>{window.bimClip.activeObj[J][$.id].id==null&&(window.bimClip.activeObj[J][$.id].id=$.id)})}).catch(j=>{m()}),this.tilesetLayer.on("click",j=>{j.layer.style==null&&map.bimMapEdit=="0"&&j.layer.openHighlight({color:"rgba(255,0,0,1)"},!0)}),o&&Object.keys(o).forEach(j=>{this.tilesetLayer.on(u.get(j),J=>{o[j](J)})}),S==0&&this.bimObliquePhotographyId.push(y),d?window.mapClone&&window.mapClone.mapEx.addLayer(this.tilesetLayer):window.map.addLayer(this.tilesetLayer)}).catch(U=>{console.error("数据加载失败",k),m({tite:"【模型】「"+k+"」无法加载",type:"error",id:y,url:E})})})}remove(l,o){let c=o==null?void 0:o.isClone;window.map.getLayer(l,"modelId")&&(c?(window.mapClone.mapEx.getLayer(l,"modelId").closeHighlight(),window.mapClone.mapEx.removeLayer(window.mapClone.mapEx.getLayer(l,"modelId"))):(window.map.getLayer(l,"modelId").closeHighlight(),window.map.removeLayer(window.map.getLayer(l,"modelId"))))}selected(l,o,c,d=!0){return new Promise((u,m)=>{let _=window.map.getLayer(l,"modelId");_?(_.style==null&&map.bimMapEdit=="0"&&_.openHighlight({color:"rgba(255,0,0,1)"},!0),d?_.flyTo({complete:()=>{u(_)}}):u(_)):this.add(l,o,c).then(y=>{y&&(y.style==null&&map.bimMapEdit=="0"&&y.openHighlight({color:"rgba(255,0,0,1)"},!0),d?y.flyTo({complete:()=>{u(y)}}):u(y))})})}initial(){this.modelArr=[],this.bimObliquePhotographyId=[],this.tilesetLayer=null}query(l){return this.modelArr.length==0?!1:this.modelArr.find(o=>o.id==l)}queryModel(l){return window.map.getLayer(l,"modelId")}postEditDate(l){this.editDate={id:l}}editColor(l,o,c,d="true"){let u,m=c==null?void 0:c.isClone;if(typeof l!="object"&&(m?u=window.mapClone.mapEx.getLayer(l,"modelId"):u=window.map.getLayer(l,"modelId")),u)if(o)u.style={color:{conditions:[[d,o]]}};else{let _=this.query(l).modelColor;_?u.style={color:{conditions:[[d,_]]}}:u.style=null}}editOpacity(l,o){window.map.getLayer(l,"modelId").opacity=o}addClip(l){return new Promise((o,c)=>{window.bimClip?o(bimClip.clipModelAdd(l)):c("挖洞工具未初始化")})}removeClip(l){window.bimClip?window.bimClip.clipModelremoveClip(l):console.log("挖洞工具未初始化")}}const iu=x=>Object.prototype.toString.call(x)==="[object Object]";function nu(){const x=Array.from(arguments);if(x.length<2)return x[0];let l=x[0];return x.shift(),x.forEach(o=>{if(iu(o)){iu(l)||(l={});for(let c in o)l[c]&&iu(o[c])?l[c]=nu(l[c],o[c]):l[c]=o[c]}else o instanceof Array&&(l instanceof Array||(l=[]),o.forEach((c,d)=>{iu(c)?l[d]=nu(l[d]):l[d]=c}))}),l}let ph={};const Mf=(x,l,o)=>{ph={};let{vectorStyle:c,difference:d}=x;if(c){let{divType:u}=c,m="";if(u){let{theme_color:_,title:y,font_color:S,content:A,scaleByDistance:I,scaleByDistance_far:k,scaleByDistance_farValue:D,scaleByDistance_near:N,scaleByDistance_nearValue:E,distanceDisplayCondition:P,distanceDisplayCondition_far:T,distanceDisplayCondition_near:M,clampToGround:R,divStyle:b}=c,{theme_color2:U,theme_color3:F}=b;switch(u){case"1":m=`<div class="entity-div-style entity-div-style1" style="--theme-color1:${_};--theme-font-color1:${S};">
2573
+ `)},function(x){typeof module>"u"?window.charming=x:module.exports=x}(function(x,a){a=a||{};var o=a.tagName||"span",c=a.classPrefix!=null?a.classPrefix:"char",d=1,u=function(m){for(var _=m.parentNode,y=m.nodeValue,S=y.length,A=-1;++A<S;){var I=document.createElement(o);c&&(I.className=c+d,d++),I.appendChild(document.createTextNode(y[A])),_.insertBefore(I,m)}_.removeChild(m)};return function m(_){for(var y=[].slice.call(_.childNodes),S=y.length,A=-1;++A<S;)m(y[A]);_.nodeType===Node.TEXT_NODE&&u(_)}(x),x});class nm{constructor(a=[]){mars3d?(this.tilesetLayer,this.modelArr=a,this.bimObliquePhotographyId=[],this.editDate={id:null}):console.error("未引入指定插件")}pushModel(a){this.modelArr.push(a)}add(a,o,c){console.log("customAttributes",c);let d=c==null?void 0:c.isClone;const u=new Map([["click",mars3d.EventType.click],["initialTilesLoaded",mars3d.EventType.initialTilesLoaded]]);return new Promise((m,_)=>{let y,S,A,I,k,D,F,E,L;if(typeof a!="object"){let b=this.query(a);b||_("缺少树结构");let{id:U,bimModelExcavationDetails:N,bimModel:j}=b;y=U,S=j.modelType,A=j.tender,I=j.releasedDistance,k=j.modelName,D=j.isDynamicReleased,F={bimModelExcavationDetails:N},E=b.url,L=j.modelColor}else y=a.modelId,S=a.modelType,A=a.tender,I=a.releasedDistance,k=a.modelTitle,D=a.permission,F=a.customize,E=a.url,L=a.color;let T={enabled:!0,precise:!1,czm:!1},M={enabled:!0,precise:!1,czm:!1};c&&(c.color&&(L=c.color),c.clip&&(T.area=c.clip.handleDataList),c.flat&&(M.area=c.flat.handleDataList));let R=window.map.getLayer(a,"modelId");if(R)return m(R),c.color&&this.editColor(a,c.color,c),!1;if(E.indexOf("tileset.json")<0)return console.error("链接不完整",k),m({tite:"【模型】「"+k+"」链接地址有误",type:"error",id:y,url:E}),!1;new Cesium.Resource({url:E}).fetchJson().then(U=>{let N=null;L&&(N={color:{conditions:[["true",L]]}}),this.tilesetLayer=new mars3d.layer.TilesetLayer({modelId:y,modelType:S,tender:A,releasedDistance:I,modelTitle:k,permission:D,customize:F,url:encodeURI(E),skipLevelOfDetail:!1,loadSiblings:!0,cullRequestsWhileMoving:!0,cullRequestsWhileMovingMultiplier:10,preferLeaves:!0,progressiveResolutionHeightFraction:.5,dynamicScreenSpaceError:!0,preloadWhenHidden:!1,style:N,clip:T,flat:M,maximumScreenSpaceError:16,maximumMemoryUsage:1024,cacheBytes:1073741824*2,maximumCacheOverflowBytes:2147483648*2}),this.tilesetLayer.bindPopup(j=>{if(j.graphic){const J=j.graphic.attr;let $=null,ct=null;return JSON.stringify(J)!=="{}"?(J.name&&($=J.name.lastIndexOf("@")),$&&$>-1&&(ct=J.name.slice(0,$)),J.name?`&nbsp;&nbsp;<span>${ct||J.name}</span>&nbsp;&nbsp;`:`&nbsp;&nbsp;<span>${k}</span>&nbsp;&nbsp;`):`&nbsp;&nbsp;<span>${k}</span>&nbsp;&nbsp;`}else return`&nbsp;&nbsp;<span>${k}</span>&nbsp;&nbsp;`}),this.tilesetLayer.readyPromise.then(j=>{m(j);let{modelId:J}=j.options;j.clip.options.area.forEach($=>{window.bimClip.activeObj[J][$.id].id==null&&(window.bimClip.activeObj[J][$.id].id=$.id)})}).catch(j=>{m()}),this.tilesetLayer.on("click",j=>{j.layer.style==null&&map.bimMapEdit=="0"&&j.layer.openHighlight({color:"rgba(255,0,0,1)"},!0)}),o&&Object.keys(o).forEach(j=>{this.tilesetLayer.on(u.get(j),J=>{o[j](J)})}),S==0&&this.bimObliquePhotographyId.push(y),d?window.mapClone&&window.mapClone.mapEx.addLayer(this.tilesetLayer):window.map.addLayer(this.tilesetLayer)}).catch(U=>{console.error("数据加载失败",k),m({tite:"【模型】「"+k+"」无法加载",type:"error",id:y,url:E})})})}remove(a,o){let c=o==null?void 0:o.isClone;window.map.getLayer(a,"modelId")&&(c?(window.mapClone.mapEx.getLayer(a,"modelId").closeHighlight(),window.mapClone.mapEx.removeLayer(window.mapClone.mapEx.getLayer(a,"modelId"))):(window.map.getLayer(a,"modelId").closeHighlight(),window.map.removeLayer(window.map.getLayer(a,"modelId"))))}selected(a,o,c,d=!0){return new Promise((u,m)=>{let _=window.map.getLayer(a,"modelId");_?(_.style==null&&map.bimMapEdit=="0"&&_.openHighlight({color:"rgba(255,0,0,1)"},!0),d?_.flyTo({complete:()=>{u(_)}}):u(_)):this.add(a,o,c).then(y=>{y&&(y.style==null&&map.bimMapEdit=="0"&&y.openHighlight({color:"rgba(255,0,0,1)"},!0),d?y.flyTo({complete:()=>{u(y)}}):u(y))})})}initial(){this.modelArr=[],this.bimObliquePhotographyId=[],this.tilesetLayer=null}query(a){return this.modelArr.length==0?!1:this.modelArr.find(o=>o.id==a)}queryModel(a){return window.map.getLayer(a,"modelId")}postEditDate(a){this.editDate={id:a}}editColor(a,o,c,d="true"){let u,m=c==null?void 0:c.isClone;if(typeof a!="object"&&(m?u=window.mapClone.mapEx.getLayer(a,"modelId"):u=window.map.getLayer(a,"modelId")),u)if(o)u.style={color:{conditions:[[d,o]]}};else{let _=this.query(a).modelColor;_?u.style={color:{conditions:[[d,_]]}}:u.style=null}}editOpacity(a,o){window.map.getLayer(a,"modelId").opacity=o}addClip(a){return new Promise((o,c)=>{window.bimClip?o(bimClip.clipModelAdd(a)):c("挖洞工具未初始化")})}removeClip(a){window.bimClip?window.bimClip.clipModelremoveClip(a):console.log("挖洞工具未初始化")}}const iu=x=>Object.prototype.toString.call(x)==="[object Object]";function nu(){const x=Array.from(arguments);if(x.length<2)return x[0];let a=x[0];return x.shift(),x.forEach(o=>{if(iu(o)){iu(a)||(a={});for(let c in o)a[c]&&iu(o[c])?a[c]=nu(a[c],o[c]):a[c]=o[c]}else o instanceof Array&&(a instanceof Array||(a=[]),o.forEach((c,d)=>{iu(c)?a[d]=nu(a[d]):a[d]=c}))}),a}let ph={};const Mf=(x,a,o)=>{ph={};let{vectorStyle:c,difference:d}=x;if(c){let{divType:u}=c,m="";if(u){let{theme_color:_,title:y,font_color:S,content:A,scaleByDistance:I,scaleByDistance_far:k,scaleByDistance_farValue:D,scaleByDistance_near:F,scaleByDistance_nearValue:E,distanceDisplayCondition:L,distanceDisplayCondition_far:T,distanceDisplayCondition_near:M,clampToGround:R,divStyle:b}=c,{theme_color2:U,theme_color3:N}=b;switch(u){case"1":m=`<div class="entity-div-style entity-div-style1" style="--theme-color1:${_};--theme-font-color1:${S};">
2574
2574
  <div class="title">${y}</div>
2575
2575
  </div >`;break;case"2":m=`<div class="entity-div-style entity-div-style2" style="--theme-color1:${_};--theme-font-color1:${S};">
2576
2576
  <div class="title">${y}</div>
2577
2577
  <div class="mars3d-divUpLabel-line"></div>
2578
- </div >`;break;case"3":m=`<div class="entity-div-style entity-div-style3" style="--theme-color1:${_};--theme-font-color1:${S};--theme-color2:${U};--theme-color3:${F}">
2578
+ </div >`;break;case"3":m=`<div class="entity-div-style entity-div-style3" style="--theme-color1:${_};--theme-font-color1:${S};--theme-color2:${U};--theme-color3:${N}">
2579
2579
  <div class="image"></div><div class="wave"></div><div class="wave"></div><div class="wave"></div>
2580
2580
  <div class="infotop"><div class="title">${y}</div><div class="content overflow-auto scrollbar h-full">${A}</div></div>
2581
2581
  </div >`;break;case"4":m=`<div class="entity-div-style entity-div-style4" style="--theme-color1:${_};--theme-font-color1:${S};">
@@ -2606,16 +2606,16 @@ void main() {
2606
2606
  <div class="circular"></div>
2607
2607
  <div class="pole"></div>
2608
2608
  </div>
2609
- </div >`;break}ph={html:m,scaleByDistance:I,scaleByDistance_far:k,scaleByDistance_farValue:D,scaleByDistance_near:N,scaleByDistance_nearValue:E,distanceDisplayCondition:P,distanceDisplayCondition_far:T,distanceDisplayCondition_near:M,clampToGround:R}}else x.difference&&x.difference.length>0&&x.difference.forEach(_=>{nu(ph,{[_]:c[_]})}),l&&l.difference&&l.difference.length>0&&l.difference.forEach(_=>{nu(ph,{label:{[_]:l.labelStyle[_]}})})}return ph};var Er=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function Ju(x){return x&&x.__esModule&&Object.prototype.hasOwnProperty.call(x,"default")?x.default:x}var ru={exports:{}};/**
2609
+ </div >`;break}ph={html:m,scaleByDistance:I,scaleByDistance_far:k,scaleByDistance_farValue:D,scaleByDistance_near:F,scaleByDistance_nearValue:E,distanceDisplayCondition:L,distanceDisplayCondition_far:T,distanceDisplayCondition_near:M,clampToGround:R}}else x.difference&&x.difference.length>0&&x.difference.forEach(_=>{nu(ph,{[_]:c[_]})}),a&&a.difference&&a.difference.length>0&&a.difference.forEach(_=>{nu(ph,{label:{[_]:a.labelStyle[_]}})})}return ph};var Er=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function Ju(x){return x&&x.__esModule&&Object.prototype.hasOwnProperty.call(x,"default")?x.default:x}var ru={exports:{}};/**
2610
2610
  * @license
2611
2611
  * Lodash <https://lodash.com/>
2612
2612
  * Copyright OpenJS Foundation and other contributors <https://openjsf.org/>
2613
2613
  * Released under MIT license <https://lodash.com/license>
2614
2614
  * Based on Underscore.js 1.8.3 <http://underscorejs.org/LICENSE>
2615
2615
  * Copyright Jeremy Ashkenas, DocumentCloud and Investigative Reporters & Editors
2616
- */ru.exports,function(x,l){(function(){var o,c="4.17.21",d=200,u="Unsupported core-js use. Try https://npms.io/search?q=ponyfill.",m="Expected a function",_="Invalid `variable` option passed into `_.template`",y="__lodash_hash_undefined__",S=500,A="__lodash_placeholder__",I=1,k=2,D=4,N=1,E=2,P=1,T=2,M=4,R=8,b=16,U=32,F=64,j=128,J=256,$=512,ct=30,It="...",et=800,yt=16,G=1,Pt=2,Et=3,Ct=1/0,fe=9007199254740991,re=17976931348623157e292,Ft=0/0,Ot=4294967295,Bt=Ot-1,ke=Ot>>>1,ce=[["ary",j],["bind",P],["bindKey",T],["curry",R],["curryRight",b],["flip",$],["partial",U],["partialRight",F],["rearg",J]],Yt="[object Arguments]",$e="[object Array]",Oi="[object AsyncFunction]",Oe="[object Boolean]",Ge="[object Date]",di="[object DOMException]",Ii="[object Error]",mn="[object Function]",Qi="[object GeneratorFunction]",W="[object Map]",Jt="[object Number]",Wt="[object Null]",pt="[object Object]",dt="[object Promise]",Dt="[object Proxy]",ie="[object RegExp]",Kt="[object Set]",z="[object String]",Q="[object Symbol]",ot="[object Undefined]",nt="[object WeakMap]",vt="[object WeakSet]",Gt="[object ArrayBuffer]",Xt="[object DataView]",jt="[object Float32Array]",Ne="[object Float64Array]",Re="[object Int8Array]",ge="[object Int16Array]",we="[object Int32Array]",_i="[object Uint8Array]",Si="[object Uint8ClampedArray]",ni="[object Uint16Array]",Ei="[object Uint32Array]",qr=/\b__p \+= '';/g,or=/\b(__p \+=) '' \+/g,on=/(__e\(.*?\)|\b__t\)) \+\n'';/g,As=/&(?:amp|lt|gt|quot|#39);/g,Di=/[&<>"']/g,Xs=RegExp(As.source),as=RegExp(Di.source),Fl=/<%-([\s\S]+?)%>/g,Mn=/<%([\s\S]+?)%>/g,ea=/<%=([\s\S]+?)%>/g,mo=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,vr=/^\w*$/,ia=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,Xa=/[\\^$.*+?()[\]{}|]/g,Ul=RegExp(Xa.source),ls=/^\s+/,Ch=/\s/,na=/\{(?:\n\/\* \[wrapped with .+\] \*\/)?\n?/,qa=/\{\n\/\* \[wrapped with (.+)\] \*/,hs=/,? & /,Ya=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g,ra=/[()=,{}\[\]\/\s]/,sa=/\\(\\)?/g,us=/\$\{([^\\}]*(?:\\.[^\\}]*)*)\}/g,Gl=/\w*$/,Ph=/^[-+]0x[0-9a-f]+$/i,Lh=/^0b[01]+$/i,go=/^\[object .+?Constructor\]$/,vo=/^0o[0-7]+$/i,Hl=/^(?:0|[1-9]\d*)$/,Vl=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,Yr=/($^)/,V=/['\n\r\u2028\u2029\\]/g,tt="\\ud800-\\udfff",lt="\\u0300-\\u036f",at="\\ufe20-\\ufe2f",X="\\u20d0-\\u20ff",St=lt+at+X,ht="\\u2700-\\u27bf",Rt="a-z\\xdf-\\xf6\\xf8-\\xff",Ht="\\xac\\xb1\\xd7\\xf7",kt="\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf",Mt="\\u2000-\\u206f",he=" \\t\\x0b\\f\\xa0\\ufeff\\n\\r\\u2028\\u2029\\u1680\\u180e\\u2000\\u2001\\u2002\\u2003\\u2004\\u2005\\u2006\\u2007\\u2008\\u2009\\u200a\\u202f\\u205f\\u3000",oe="A-Z\\xc0-\\xd6\\xd8-\\xde",te="\\ufe0e\\ufe0f",_e=Ht+kt+Mt+he,ue="['’]",je="["+tt+"]",He="["+_e+"]",ci="["+St+"]",Be="\\d+",ye="["+ht+"]",Fe="["+Rt+"]",pe="[^"+tt+_e+Be+ht+Rt+oe+"]",mi="\\ud83c[\\udffb-\\udfff]",Pe="(?:"+ci+"|"+mi+")",xe="[^"+tt+"]",Le="(?:\\ud83c[\\udde6-\\uddff]){2}",Sn="[\\ud800-\\udbff][\\udc00-\\udfff]",Xn="["+oe+"]",zi="\\u200d",ki="(?:"+Fe+"|"+pe+")",Hi="(?:"+Xn+"|"+pe+")",nn="(?:"+ue+"(?:d|ll|m|re|s|t|ve))?",rn="(?:"+ue+"(?:D|LL|M|RE|S|T|VE))?",un=Pe+"?",cn="["+te+"]?",Gi="(?:"+zi+"(?:"+[xe,Le,Sn].join("|")+")"+cn+un+")*",Bi="\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])",ji="\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])",gi=cn+un+Gi,cs="(?:"+[ye,Le,Sn].join("|")+")"+gi,Fn="(?:"+[xe+ci+"?",ci,Le,Sn,je].join("|")+")",oa=RegExp(ue,"g"),Rh=RegExp(ci,"g"),qs=RegExp(mi+"(?="+mi+")|"+Fn+gi,"g"),Za=RegExp([Xn+"?"+Fe+"+"+nn+"(?="+[He,Xn,"$"].join("|")+")",Hi+"+"+rn+"(?="+[He,Xn+ki,"$"].join("|")+")",Xn+"?"+ki+"+"+nn,Xn+"+"+rn,ji,Bi,Be,cs].join("|"),"g"),Ja=RegExp("["+zi+tt+St+te+"]"),aa=/[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/,$a=["Array","Buffer","DataView","Date","Error","Float32Array","Float64Array","Function","Int8Array","Int16Array","Int32Array","Map","Math","Object","Promise","RegExp","Set","String","Symbol","TypeError","Uint8Array","Uint8ClampedArray","Uint16Array","Uint32Array","WeakMap","_","clearTimeout","isFinite","parseInt","setTimeout"],la=-1,Xi={};Xi[jt]=Xi[Ne]=Xi[Re]=Xi[ge]=Xi[we]=Xi[_i]=Xi[Si]=Xi[ni]=Xi[Ei]=!0,Xi[Yt]=Xi[$e]=Xi[Gt]=Xi[Oe]=Xi[Xt]=Xi[Ge]=Xi[Ii]=Xi[mn]=Xi[W]=Xi[Jt]=Xi[pt]=Xi[ie]=Xi[Kt]=Xi[z]=Xi[nt]=!1;var xi={};xi[Yt]=xi[$e]=xi[Gt]=xi[Xt]=xi[Oe]=xi[Ge]=xi[jt]=xi[Ne]=xi[Re]=xi[ge]=xi[we]=xi[W]=xi[Jt]=xi[pt]=xi[ie]=xi[Kt]=xi[z]=xi[Q]=xi[_i]=xi[Si]=xi[ni]=xi[Ei]=!0,xi[Ii]=xi[mn]=xi[nt]=!1;var Ka={À:"A",Á:"A",Â:"A",Ã:"A",Ä:"A",Å:"A",à:"a",á:"a",â:"a",ã:"a",ä:"a",å:"a",Ç:"C",ç:"c",Ð:"D",ð:"d",È:"E",É:"E",Ê:"E",Ë:"E",è:"e",é:"e",ê:"e",ë:"e",Ì:"I",Í:"I",Î:"I",Ï:"I",ì:"i",í:"i",î:"i",ï:"i",Ñ:"N",ñ:"n",Ò:"O",Ó:"O",Ô:"O",Õ:"O",Ö:"O",Ø:"O",ò:"o",ó:"o",ô:"o",õ:"o",ö:"o",ø:"o",Ù:"U",Ú:"U",Û:"U",Ü:"U",ù:"u",ú:"u",û:"u",ü:"u",Ý:"Y",ý:"y",ÿ:"y",Æ:"Ae",æ:"ae",Þ:"Th",þ:"th",ß:"ss",Ā:"A",Ă:"A",Ą:"A",ā:"a",ă:"a",ą:"a",Ć:"C",Ĉ:"C",Ċ:"C",Č:"C",ć:"c",ĉ:"c",ċ:"c",č:"c",Ď:"D",Đ:"D",ď:"d",đ:"d",Ē:"E",Ĕ:"E",Ė:"E",Ę:"E",Ě:"E",ē:"e",ĕ:"e",ė:"e",ę:"e",ě:"e",Ĝ:"G",Ğ:"G",Ġ:"G",Ģ:"G",ĝ:"g",ğ:"g",ġ:"g",ģ:"g",Ĥ:"H",Ħ:"H",ĥ:"h",ħ:"h",Ĩ:"I",Ī:"I",Ĭ:"I",Į:"I",İ:"I",ĩ:"i",ī:"i",ĭ:"i",į:"i",ı:"i",Ĵ:"J",ĵ:"j",Ķ:"K",ķ:"k",ĸ:"k",Ĺ:"L",Ļ:"L",Ľ:"L",Ŀ:"L",Ł:"L",ĺ:"l",ļ:"l",ľ:"l",ŀ:"l",ł:"l",Ń:"N",Ņ:"N",Ň:"N",Ŋ:"N",ń:"n",ņ:"n",ň:"n",ŋ:"n",Ō:"O",Ŏ:"O",Ő:"O",ō:"o",ŏ:"o",ő:"o",Ŕ:"R",Ŗ:"R",Ř:"R",ŕ:"r",ŗ:"r",ř:"r",Ś:"S",Ŝ:"S",Ş:"S",Š:"S",ś:"s",ŝ:"s",ş:"s",š:"s",Ţ:"T",Ť:"T",Ŧ:"T",ţ:"t",ť:"t",ŧ:"t",Ũ:"U",Ū:"U",Ŭ:"U",Ů:"U",Ű:"U",Ų:"U",ũ:"u",ū:"u",ŭ:"u",ů:"u",ű:"u",ų:"u",Ŵ:"W",ŵ:"w",Ŷ:"Y",ŷ:"y",Ÿ:"Y",Ź:"Z",Ż:"Z",Ž:"Z",ź:"z",ż:"z",ž:"z",IJ:"IJ",ij:"ij",Œ:"Oe",œ:"oe",ʼn:"'n",ſ:"s"},ha={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;"},Qa={"&amp;":"&","&lt;":"<","&gt;":">","&quot;":'"',"&#39;":"'"},_o={"\\":"\\","'":"'","\n":"n","\r":"r","\u2028":"u2028","\u2029":"u2029"},tl=parseFloat,ua=parseInt,ca=typeof Er=="object"&&Er&&Er.Object===Object&&Er,fa=typeof self=="object"&&self&&self.Object===Object&&self,gn=ca||fa||Function("return this")(),Ys=l&&!l.nodeType&&l,Zr=Ys&&!0&&x&&!x.nodeType&&x,yo=Zr&&Zr.exports===Ys,xo=yo&&ca.process,Un=function(){try{var Lt=Zr&&Zr.require&&Zr.require("util").types;return Lt||xo&&xo.binding&&xo.binding("util")}catch{}}(),Oh=Un&&Un.isArrayBuffer,pa=Un&&Un.isDate,da=Un&&Un.isMap,xu=Un&&Un.isRegExp,wu=Un&&Un.isSet,Wl=Un&&Un.isTypedArray;function _r(Lt,Qt,Zt){switch(Zt.length){case 0:return Lt.call(Qt);case 1:return Lt.call(Qt,Zt[0]);case 2:return Lt.call(Qt,Zt[0],Zt[1]);case 3:return Lt.call(Qt,Zt[0],Zt[1],Zt[2])}return Lt.apply(Qt,Zt)}function jl(Lt,Qt,Zt,Ue){for(var ai=-1,Ni=Lt==null?0:Lt.length;++ai<Ni;){var fn=Lt[ai];Qt(Ue,fn,Zt(fn),Lt)}return Ue}function Ji(Lt,Qt){for(var Zt=-1,Ue=Lt==null?0:Lt.length;++Zt<Ue&&Qt(Lt[Zt],Zt,Lt)!==!1;);return Lt}function wo(Lt,Qt){for(var Zt=Lt==null?0:Lt.length;Zt--&&Qt(Lt[Zt],Zt,Lt)!==!1;);return Lt}function Ih(Lt,Qt){for(var Zt=-1,Ue=Lt==null?0:Lt.length;++Zt<Ue;)if(!Qt(Lt[Zt],Zt,Lt))return!1;return!0}function Rr(Lt,Qt){for(var Zt=-1,Ue=Lt==null?0:Lt.length,ai=0,Ni=[];++Zt<Ue;){var fn=Lt[Zt];Qt(fn,Zt,Lt)&&(Ni[ai++]=fn)}return Ni}function el(Lt,Qt){var Zt=Lt==null?0:Lt.length;return!!Zt&&Or(Lt,Qt,0)>-1}function Xl(Lt,Qt,Zt){for(var Ue=-1,ai=Lt==null?0:Lt.length;++Ue<ai;)if(Zt(Qt,Lt[Ue]))return!0;return!1}function Yi(Lt,Qt){for(var Zt=-1,Ue=Lt==null?0:Lt.length,ai=Array(Ue);++Zt<Ue;)ai[Zt]=Qt(Lt[Zt],Zt,Lt);return ai}function fs(Lt,Qt){for(var Zt=-1,Ue=Qt.length,ai=Lt.length;++Zt<Ue;)Lt[ai+Zt]=Qt[Zt];return Lt}function ql(Lt,Qt,Zt,Ue){var ai=-1,Ni=Lt==null?0:Lt.length;for(Ue&&Ni&&(Zt=Lt[++ai]);++ai<Ni;)Zt=Qt(Zt,Lt[ai],ai,Lt);return Zt}function Tu(Lt,Qt,Zt,Ue){var ai=Lt==null?0:Lt.length;for(Ue&&ai&&(Zt=Lt[--ai]);ai--;)Zt=Qt(Zt,Lt[ai],ai,Lt);return Zt}function Cs(Lt,Qt){for(var Zt=-1,Ue=Lt==null?0:Lt.length;++Zt<Ue;)if(Qt(Lt[Zt],Zt,Lt))return!0;return!1}var ps=Js("length");function Mu(Lt){return Lt.split("")}function il(Lt){return Lt.match(Ya)||[]}function To(Lt,Qt,Zt){var Ue;return Zt(Lt,function(ai,Ni,fn){if(Qt(ai,Ni,fn))return Ue=Ni,!1}),Ue}function Zs(Lt,Qt,Zt,Ue){for(var ai=Lt.length,Ni=Zt+(Ue?1:-1);Ue?Ni--:++Ni<ai;)if(Qt(Lt[Ni],Ni,Lt))return Ni;return-1}function Or(Lt,Qt,Zt){return Qt===Qt?Yl(Lt,Qt,Zt):Zs(Lt,Mo,Zt)}function nl(Lt,Qt,Zt,Ue){for(var ai=Zt-1,Ni=Lt.length;++ai<Ni;)if(Ue(Lt[ai],Qt))return ai;return-1}function Mo(Lt){return Lt!==Lt}function ma(Lt,Qt){var Zt=Lt==null?0:Lt.length;return Zt?Ks(Lt,Qt)/Zt:Ft}function Js(Lt){return function(Qt){return Qt==null?o:Qt[Lt]}}function Ps(Lt){return function(Qt){return Lt==null?o:Lt[Qt]}}function $s(Lt,Qt,Zt,Ue,ai){return ai(Lt,function(Ni,fn,Ee){Zt=Ue?(Ue=!1,Ni):Qt(Zt,Ni,fn,Ee)}),Zt}function Su(Lt,Qt){var Zt=Lt.length;for(Lt.sort(Qt);Zt--;)Lt[Zt]=Lt[Zt].value;return Lt}function Ks(Lt,Qt){for(var Zt,Ue=-1,ai=Lt.length;++Ue<ai;){var Ni=Qt(Lt[Ue]);Ni!==o&&(Zt=Zt===o?Ni:Zt+Ni)}return Zt}function Ls(Lt,Qt){for(var Zt=-1,Ue=Array(Lt);++Zt<Lt;)Ue[Zt]=Qt(Zt);return Ue}function Rs(Lt,Qt){return Yi(Qt,function(Zt){return[Zt,Lt[Zt]]})}function ga(Lt){return Lt&&Lt.slice(0,va(Lt)+1).replace(ls,"")}function Gn(Lt){return function(Qt){return Lt(Qt)}}function So(Lt,Qt){return Yi(Qt,function(Zt){return Lt[Zt]})}function ds(Lt,Qt){return Lt.has(Qt)}function Qs(Lt,Qt){for(var Zt=-1,Ue=Lt.length;++Zt<Ue&&Or(Qt,Lt[Zt],0)>-1;);return Zt}function Eo(Lt,Qt){for(var Zt=Lt.length;Zt--&&Or(Qt,Lt[Zt],0)>-1;);return Zt}function ms(Lt,Qt){for(var Zt=Lt.length,Ue=0;Zt--;)Lt[Zt]===Qt&&++Ue;return Ue}var bo=Ps(Ka),Jr=Ps(ha);function Ao(Lt){return"\\"+_o[Lt]}function Co(Lt,Qt){return Lt==null?o:Lt[Qt]}function Ir(Lt){return Ja.test(Lt)}function Po(Lt){return aa.test(Lt)}function Lo(Lt){for(var Qt,Zt=[];!(Qt=Lt.next()).done;)Zt.push(Qt.value);return Zt}function $n(Lt){var Qt=-1,Zt=Array(Lt.size);return Lt.forEach(function(Ue,ai){Zt[++Qt]=[ai,Ue]}),Zt}function rl(Lt,Qt){return function(Zt){return Lt(Qt(Zt))}}function Dr(Lt,Qt){for(var Zt=-1,Ue=Lt.length,ai=0,Ni=[];++Zt<Ue;){var fn=Lt[Zt];(fn===Qt||fn===A)&&(Lt[Zt]=A,Ni[ai++]=Zt)}return Ni}function Ro(Lt){var Qt=-1,Zt=Array(Lt.size);return Lt.forEach(function(Ue){Zt[++Qt]=Ue}),Zt}function Hn(Lt){var Qt=-1,Zt=Array(Lt.size);return Lt.forEach(function(Ue){Zt[++Qt]=[Ue,Ue]}),Zt}function Yl(Lt,Qt,Zt){for(var Ue=Zt-1,ai=Lt.length;++Ue<ai;)if(Lt[Ue]===Qt)return Ue;return-1}function Zl(Lt,Qt,Zt){for(var Ue=Zt+1;Ue--;)if(Lt[Ue]===Qt)return Ue;return Ue}function $r(Lt){return Ir(Lt)?_a(Lt):ps(Lt)}function ar(Lt){return Ir(Lt)?yr(Lt):Mu(Lt)}function va(Lt){for(var Qt=Lt.length;Qt--&&Ch.test(Lt.charAt(Qt)););return Qt}var Jl=Ps(Qa);function _a(Lt){for(var Qt=qs.lastIndex=0;qs.test(Lt);)++Qt;return Qt}function yr(Lt){return Lt.match(qs)||[]}function Gc(Lt){return Lt.match(Za)||[]}var Hc=function Lt(Qt){Qt=Qt==null?gn:to.defaults(gn.Object(),Qt,to.pick(gn,$a));var Zt=Qt.Array,Ue=Qt.Date,ai=Qt.Error,Ni=Qt.Function,fn=Qt.Math,Ee=Qt.Object,Kn=Qt.RegExp,ya=Qt.String,lr=Qt.TypeError,On=Zt.prototype,Eu=Ni.prototype,gs=Ee.prototype,eo=Qt["__core-js_shared__"],hr=Eu.toString,Ti=gs.hasOwnProperty,ur=0,zr=function(){var r=/[^.]+$/.exec(eo&&eo.keys&&eo.keys.IE_PROTO||"");return r?"Symbol(src)_1."+r:""}(),cr=gs.toString,vs=hr.call(Ee),Kr=gn._,Os=Kn("^"+hr.call(Ti).replace(Xa,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),fr=yo?Qt.Buffer:o,Qn=Qt.Symbol,tn=Qt.Uint8Array,sl=fr?fr.allocUnsafe:o,_s=rl(Ee.getPrototypeOf,Ee),ol=Ee.create,al=gs.propertyIsEnumerable,Oo=On.splice,xa=Qn?Qn.isConcatSpreadable:o,io=Qn?Qn.iterator:o,ys=Qn?Qn.toStringTag:o,Io=function(){try{var r=Sl(Ee,"defineProperty");return r({},"",{}),r}catch{}}(),$l=Qt.clearTimeout!==gn.clearTimeout&&Qt.clearTimeout,Kl=Ue&&Ue.now!==gn.Date.now&&Ue.now,Dh=Qt.setTimeout!==gn.setTimeout&&Qt.setTimeout,Is=fn.ceil,Do=fn.floor,ll=Ee.getOwnPropertySymbols,zh=fr?fr.isBuffer:o,Ql=Qt.isFinite,kh=On.join,bu=rl(Ee.keys,Ee),vn=fn.max,Vn=fn.min,hl=Ue.now,Bh=Qt.parseInt,th=fn.random,wa=On.reverse,ul=Sl(Qt,"DataView"),zo=Sl(Qt,"Map"),cl=Sl(Qt,"Promise"),ko=Sl(Qt,"Set"),En=Sl(Qt,"WeakMap"),Ta=Sl(Ee,"create"),fl=En&&new En,no={},eh=El(ul),Nh=El(zo),Fh=El(cl),Uh=El(ko),Au=El(En),pl=Qn?Qn.prototype:o,Bo=pl?pl.valueOf:o,Gh=pl?pl.toString:o;function it(r){if(Ln(r)&&!vi(r)&&!(r instanceof yi)){if(r instanceof qn)return r;if(Ti.call(r,"__wrapped__"))return id(r)}return new qn(r)}var ro=function(){function r(){}return function(h){if(!wn(h))return{};if(ol)return ol(h);r.prototype=h;var g=new r;return r.prototype=o,g}}();function Ma(){}function qn(r,h){this.__wrapped__=r,this.__actions__=[],this.__chain__=!!h,this.__index__=0,this.__values__=o}it.templateSettings={escape:Fl,evaluate:Mn,interpolate:ea,variable:"",imports:{_:it}},it.prototype=Ma.prototype,it.prototype.constructor=it,qn.prototype=ro(Ma.prototype),qn.prototype.constructor=qn;function yi(r){this.__wrapped__=r,this.__actions__=[],this.__dir__=1,this.__filtered__=!1,this.__iteratees__=[],this.__takeCount__=Ot,this.__views__=[]}function Sa(){var r=new yi(this.__wrapped__);return r.__actions__=er(this.__actions__),r.__dir__=this.__dir__,r.__filtered__=this.__filtered__,r.__iteratees__=er(this.__iteratees__),r.__takeCount__=this.__takeCount__,r.__views__=er(this.__views__),r}function Cu(){if(this.__filtered__){var r=new yi(this);r.__dir__=-1,r.__filtered__=!0}else r=this.clone(),r.__dir__*=-1;return r}function Ea(){var r=this.__wrapped__.value(),h=this.__dir__,g=vi(r),O=h<0,Y=g?r.length:0,ut=Hg(0,Y,this.__views__),_t=ut.start,bt=ut.end,Nt=bt-_t,se=O?bt:_t-1,le=this.__iteratees__,de=le.length,ze=0,Je=Vn(Nt,this.__takeCount__);if(!g||!O&&Y==Nt&&Je==Nt)return ri(r,this.__actions__);var hi=[];t:for(;Nt--&&ze<Je;){se+=h;for(var Mi=-1,ui=r[se];++Mi<de;){var Pi=le[Mi],Fi=Pi.iteratee,es=Pi.type,Sr=Fi(ui);if(es==Pt)ui=Sr;else if(!Sr){if(es==G)continue t;break t}}hi[ze++]=ui}return hi}yi.prototype=ro(Ma.prototype),yi.prototype.constructor=yi;function kr(r){var h=-1,g=r==null?0:r.length;for(this.clear();++h<g;){var O=r[h];this.set(O[0],O[1])}}function ba(){this.__data__=Ta?Ta(null):{},this.size=0}function Aa(r){var h=this.has(r)&&delete this.__data__[r];return this.size-=h?1:0,h}function dl(r){var h=this.__data__;if(Ta){var g=h[r];return g===y?o:g}return Ti.call(h,r)?h[r]:o}function ih(r){var h=this.__data__;return Ta?h[r]!==o:Ti.call(h,r)}function ml(r,h){var g=this.__data__;return this.size+=this.has(r)?0:1,g[r]=Ta&&h===o?y:h,this}kr.prototype.clear=ba,kr.prototype.delete=Aa,kr.prototype.get=dl,kr.prototype.has=ih,kr.prototype.set=ml;function pr(r){var h=-1,g=r==null?0:r.length;for(this.clear();++h<g;){var O=r[h];this.set(O[0],O[1])}}function gl(){this.__data__=[],this.size=0}function Ds(r){var h=this.__data__,g=yl(h,r);if(g<0)return!1;var O=h.length-1;return g==O?h.pop():Oo.call(h,g,1),--this.size,!0}function vl(r){var h=this.__data__,g=yl(h,r);return g<0?o:h[g][1]}function _l(r){return yl(this.__data__,r)>-1}function zs(r,h){var g=this.__data__,O=yl(g,r);return O<0?(++this.size,g.push([r,h])):g[O][1]=h,this}pr.prototype.clear=gl,pr.prototype.delete=Ds,pr.prototype.get=vl,pr.prototype.has=_l,pr.prototype.set=zs;function xr(r){var h=-1,g=r==null?0:r.length;for(this.clear();++h<g;){var O=r[h];this.set(O[0],O[1])}}function Pu(){this.size=0,this.__data__={hash:new kr,map:new(zo||pr),string:new kr}}function Lu(r){var h=Uu(this,r).delete(r);return this.size-=h?1:0,h}function Hh(r){return Uu(this,r).get(r)}function pi(r){return Uu(this,r).has(r)}function so(r,h){var g=Uu(this,r),O=g.size;return g.set(r,h),this.size+=g.size==O?0:1,this}xr.prototype.clear=Pu,xr.prototype.delete=Lu,xr.prototype.get=Hh,xr.prototype.has=pi,xr.prototype.set=so;function No(r){var h=-1,g=r==null?0:r.length;for(this.__data__=new xr;++h<g;)this.add(r[h])}function bi(r){return this.__data__.set(r,y),this}function Bn(r){return this.__data__.has(r)}No.prototype.add=No.prototype.push=bi,No.prototype.has=Bn;function Qr(r){var h=this.__data__=new pr(r);this.size=h.size}function qe(){this.__data__=new pr,this.size=0}function xs(r){var h=this.__data__,g=h.delete(r);return this.size=h.size,g}function Vc(r){return this.__data__.get(r)}function Wc(r){return this.__data__.has(r)}function jc(r,h){var g=this.__data__;if(g instanceof pr){var O=g.__data__;if(!zo||O.length<d-1)return O.push([r,h]),this.size=++g.size,this;g=this.__data__=new xr(O)}return g.set(r,h),this.size=g.size,this}Qr.prototype.clear=qe,Qr.prototype.delete=xs,Qr.prototype.get=Vc,Qr.prototype.has=Wc,Qr.prototype.set=jc;function Ru(r,h){var g=vi(r),O=!g&&bl(r),Y=!g&&!O&&Da(r),ut=!g&&!O&&!Y&&ch(r),_t=g||O||Y||ut,bt=_t?Ls(r.length,ya):[],Nt=bt.length;for(var se in r)(h||Ti.call(r,se))&&!(_t&&(se=="length"||Y&&(se=="offset"||se=="parent")||ut&&(se=="buffer"||se=="byteLength"||se=="byteOffset")||Vo(se,Nt)))&&bt.push(se);return bt}function Vh(r){var h=r.length;return h?r[me(0,h-1)]:o}function Xc(r,h){return Gu(er(r),oo(h,0,r.length))}function Ou(r){return Gu(er(r))}function nh(r,h,g){(g!==o&&!Fs(r[h],g)||g===o&&!(h in r))&&ks(r,h,g)}function Ca(r,h,g){var O=r[h];(!(Ti.call(r,h)&&Fs(O,g))||g===o&&!(h in r))&&ks(r,h,g)}function yl(r,h){for(var g=r.length;g--;)if(Fs(r[g][0],h))return g;return-1}function Iu(r,h,g,O){return _n(r,function(Y,ut,_t){h(O,Y,g(Y),_t)}),O}function Wh(r,h){return r&&In(h,Jn(h),r)}function jh(r,h){return r&&In(h,Ur(h),r)}function ks(r,h,g){h=="__proto__"&&Io?Io(r,h,{configurable:!0,enumerable:!0,value:g,writable:!0}):r[h]=g}function Xh(r,h){for(var g=-1,O=h.length,Y=Zt(O),ut=r==null;++g<O;)Y[g]=ut?o:hf(r,h[g]);return Y}function oo(r,h,g){return r===r&&(g!==o&&(r=r<=g?r:g),h!==o&&(r=r>=h?r:h)),r}function wr(r,h,g,O,Y,ut){var _t,bt=h&I,Nt=h&k,se=h&D;if(g&&(_t=Y?g(r,O,Y,ut):g(r)),_t!==o)return _t;if(!wn(r))return r;var le=vi(r);if(le){if(_t=Wg(r),!bt)return er(r,_t)}else{var de=mr(r),ze=de==mn||de==Qi;if(Da(r))return Bs(r,bt);if(de==pt||de==Yt||ze&&!Y){if(_t=Nt||ze?{}:qp(r),!bt)return Nt?Bu(r,jh(_t,r)):Ms(r,Wh(_t,r))}else{if(!xi[de])return Y?r:{};_t=jg(r,de,bt)}}ut||(ut=new Qr);var Je=ut.get(r);if(Je)return Je;ut.set(r,_t),Td(r)?r.forEach(function(ui){_t.add(wr(ui,h,g,ui,r,ut))}):xd(r)&&r.forEach(function(ui,Pi){_t.set(Pi,wr(ui,h,g,Pi,r,ut))});var hi=se?Nt?Yc:qc:Nt?Ur:Jn,Mi=le?o:hi(r);return Ji(Mi||r,function(ui,Pi){Mi&&(Pi=ui,ui=r[Pi]),Ca(_t,Pi,wr(ui,h,g,Pi,r,ut))}),_t}function Pa(r){var h=Jn(r);return function(g){return Du(g,r,h)}}function Du(r,h,g){var O=g.length;if(r==null)return!O;for(r=Ee(r);O--;){var Y=g[O],ut=h[Y],_t=r[Y];if(_t===o&&!(Y in r)||!ut(_t))return!1}return!0}function ws(r,h,g){if(typeof r!="function")throw new lr(m);return tu(function(){r.apply(o,g)},h)}function xl(r,h,g,O){var Y=-1,ut=el,_t=!0,bt=r.length,Nt=[],se=h.length;if(!bt)return Nt;g&&(h=Yi(h,Gn(g))),O?(ut=Xl,_t=!1):h.length>=d&&(ut=ds,_t=!1,h=new No(h));t:for(;++Y<bt;){var le=r[Y],de=g==null?le:g(le);if(le=O||le!==0?le:0,_t&&de===de){for(var ze=se;ze--;)if(h[ze]===de)continue t;Nt.push(le)}else ut(h,de,O)||Nt.push(le)}return Nt}var _n=ft(Nr),zu=ft(sh,!0);function Yn(r,h){var g=!0;return _n(r,function(O,Y,ut){return g=!!h(O,Y,ut),g}),g}function Ts(r,h,g){for(var O=-1,Y=r.length;++O<Y;){var ut=r[O],_t=h(ut);if(_t!=null&&(bt===o?_t===_t&&!ts(_t):g(_t,bt)))var bt=_t,Nt=ut}return Nt}function tr(r,h,g,O){var Y=r.length;for(g=wi(g),g<0&&(g=-g>Y?0:Y+g),O=O===o||O>Y?Y:wi(O),O<0&&(O+=Y),O=g>O?0:Sd(O);g<O;)r[g++]=h;return r}function Br(r,h){var g=[];return _n(r,function(O,Y,ut){h(O,Y,ut)&&g.push(O)}),g}function bn(r,h,g,O,Y){var ut=-1,_t=r.length;for(g||(g=qg),Y||(Y=[]);++ut<_t;){var bt=r[ut];h>0&&g(bt)?h>1?bn(bt,h-1,g,O,Y):fs(Y,bt):O||(Y[Y.length]=bt)}return Y}var wl=Tt(),rh=Tt(!0);function Nr(r,h){return r&&wl(r,h,Jn)}function sh(r,h){return r&&rh(r,h,Jn)}function Fo(r,h){return Rr(h,function(g){return Wo(r[g])})}function ao(r,h){h=Ze(h,r);for(var g=0,O=h.length;r!=null&&g<O;)r=r[ho(h[g++])];return g&&g==O?r:o}function ku(r,h,g){var O=h(r);return vi(r)?O:fs(O,g(r))}function Zn(r){return r==null?r===o?ot:Wt:ys&&ys in Ee(r)?Gg(r):t0(r)}function oh(r,h){return r>h}function ah(r,h){return r!=null&&Ti.call(r,h)}function qh(r,h){return r!=null&&h in Ee(r)}function lh(r,h,g){return r>=Vn(h,g)&&r<vn(h,g)}function Tl(r,h,g){for(var O=g?Xl:el,Y=r[0].length,ut=r.length,_t=ut,bt=Zt(ut),Nt=1/0,se=[];_t--;){var le=r[_t];_t&&h&&(le=Yi(le,Gn(h))),Nt=Vn(le.length,Nt),bt[_t]=!g&&(h||Y>=120&&le.length>=120)?new No(_t&&le):o}le=r[0];var de=-1,ze=bt[0];t:for(;++de<Y&&se.length<Nt;){var Je=le[de],hi=h?h(Je):Je;if(Je=g||Je!==0?Je:0,!(ze?ds(ze,hi):O(se,hi,g))){for(_t=ut;--_t;){var Mi=bt[_t];if(!(Mi?ds(Mi,hi):O(r[_t],hi,g)))continue t}ze&&ze.push(hi),se.push(Je)}}return se}function t(r,h,g,O){return Nr(r,function(Y,ut,_t){h(O,g(Y),ut,_t)}),O}function e(r,h,g){h=Ze(h,r),r=$p(r,h);var O=r==null?r:r[ho(Es(h))];return O==null?o:_r(O,r,g)}function i(r){return Ln(r)&&Zn(r)==Yt}function n(r){return Ln(r)&&Zn(r)==Gt}function s(r){return Ln(r)&&Zn(r)==Ge}function a(r,h,g,O,Y){return r===h?!0:r==null||h==null||!Ln(r)&&!Ln(h)?r!==r&&h!==h:f(r,h,g,O,a,Y)}function f(r,h,g,O,Y,ut){var _t=vi(r),bt=vi(h),Nt=_t?$e:mr(r),se=bt?$e:mr(h);Nt=Nt==Yt?pt:Nt,se=se==Yt?pt:se;var le=Nt==pt,de=se==pt,ze=Nt==se;if(ze&&Da(r)){if(!Da(h))return!1;_t=!0,le=!1}if(ze&&!le)return ut||(ut=new Qr),_t||ch(r)?Wp(r,h,g,O,Y,ut):Fg(r,h,Nt,g,O,Y,ut);if(!(g&N)){var Je=le&&Ti.call(r,"__wrapped__"),hi=de&&Ti.call(h,"__wrapped__");if(Je||hi){var Mi=Je?r.value():r,ui=hi?h.value():h;return ut||(ut=new Qr),Y(Mi,ui,g,O,ut)}}return ze?(ut||(ut=new Qr),Ug(r,h,g,O,Y,ut)):!1}function p(r){return Ln(r)&&mr(r)==W}function v(r,h,g,O){var Y=g.length,ut=Y,_t=!O;if(r==null)return!ut;for(r=Ee(r);Y--;){var bt=g[Y];if(_t&&bt[2]?bt[1]!==r[bt[0]]:!(bt[0]in r))return!1}for(;++Y<ut;){bt=g[Y];var Nt=bt[0],se=r[Nt],le=bt[1];if(_t&&bt[2]){if(se===o&&!(Nt in r))return!1}else{var de=new Qr;if(O)var ze=O(se,le,Nt,r,h,de);if(!(ze===o?a(le,se,N|E,O,de):ze))return!1}}return!0}function w(r){if(!wn(r)||Zg(r))return!1;var h=Wo(r)?Os:go;return h.test(El(r))}function C(r){return Ln(r)&&Zn(r)==ie}function L(r){return Ln(r)&&mr(r)==Kt}function B(r){return Ln(r)&&qu(r.length)&&!!Xi[Zn(r)]}function H(r){return typeof r=="function"?r:r==null?Gr:typeof r=="object"?vi(r)?At(r[0],r[1]):gt(r):zd(r)}function q(r){if(!Qh(r))return bu(r);var h=[];for(var g in Ee(r))Ti.call(r,g)&&g!="constructor"&&h.push(g);return h}function K(r){if(!wn(r))return Qg(r);var h=Qh(r),g=[];for(var O in r)O=="constructor"&&(h||!Ti.call(r,O))||g.push(O);return g}function rt(r,h){return r<h}function xt(r,h){var g=-1,O=Fr(r)?Zt(r.length):[];return _n(r,function(Y,ut,_t){O[++g]=h(Y,ut,_t)}),O}function gt(r){var h=Jc(r);return h.length==1&&h[0][2]?Zp(h[0][0],h[0][1]):function(g){return g===r||v(g,r,h)}}function At(r,h){return Kc(r)&&Yp(h)?Zp(ho(r),h):function(g){var O=hf(g,r);return O===o&&O===h?uf(g,r):a(h,O,N|E)}}function wt(r,h,g,O,Y){r!==h&&wl(h,function(ut,_t){if(Y||(Y=new Qr),wn(ut))Vt(r,h,_t,g,wt,O,Y);else{var bt=O?O(tf(r,_t),ut,_t+"",r,h,Y):o;bt===o&&(bt=ut),nh(r,_t,bt)}},Ur)}function Vt(r,h,g,O,Y,ut,_t){var bt=tf(r,g),Nt=tf(h,g),se=_t.get(Nt);if(se){nh(r,g,se);return}var le=ut?ut(bt,Nt,g+"",r,h,_t):o,de=le===o;if(de){var ze=vi(Nt),Je=!ze&&Da(Nt),hi=!ze&&!Je&&ch(Nt);le=Nt,ze||Je||hi?vi(bt)?le=bt:Dn(bt)?le=er(bt):Je?(de=!1,le=Bs(Nt,!0)):hi?(de=!1,le=Ml(Nt,!0)):le=[]:eu(Nt)||bl(Nt)?(le=bt,bl(bt)?le=Ed(bt):(!wn(bt)||Wo(bt))&&(le=qp(Nt))):de=!1}de&&(_t.set(Nt,le),Y(le,Nt,O,ut,_t),_t.delete(Nt)),nh(r,g,le)}function Z(r,h){var g=r.length;if(g)return h+=h<0?g:0,Vo(h,g)?r[h]:o}function st(r,h,g){h.length?h=Yi(h,function(ut){return vi(ut)?function(_t){return ao(_t,ut.length===1?ut[0]:ut)}:ut}):h=[Gr];var O=-1;h=Yi(h,Gn(oi()));var Y=xt(r,function(ut,_t,bt){var Nt=Yi(h,function(se){return se(ut)});return{criteria:Nt,index:++O,value:ut}});return Su(Y,function(ut,_t){return lo(ut,_t,g)})}function zt(r,h){return ee(r,h,function(g,O){return uf(r,O)})}function ee(r,h,g){for(var O=-1,Y=h.length,ut={};++O<Y;){var _t=h[O],bt=ao(r,_t);g(bt,_t)&&fi(ut,Ze(_t,r),bt)}return ut}function $t(r){return function(h){return ao(h,r)}}function qt(r,h,g,O){var Y=O?nl:Or,ut=-1,_t=h.length,bt=r;for(r===h&&(h=er(h)),g&&(bt=Yi(r,Gn(g)));++ut<_t;)for(var Nt=0,se=h[ut],le=g?g(se):se;(Nt=Y(bt,le,Nt,O))>-1;)bt!==r&&Oo.call(bt,Nt,1),Oo.call(r,Nt,1);return r}function Te(r,h){for(var g=r?h.length:0,O=g-1;g--;){var Y=h[g];if(g==O||Y!==ut){var ut=Y;Vo(Y)?Oo.call(r,Y,1):Wi(r,Y)}}return r}function me(r,h){return r+Do(th()*(h-r+1))}function Ie(r,h,g,O){for(var Y=-1,ut=vn(Is((h-r)/(g||1)),0),_t=Zt(ut);ut--;)_t[O?ut:++Y]=r,r+=g;return _t}function be(r,h){var g="";if(!r||h<1||h>fe)return g;do h%2&&(g+=r),h=Do(h/2),h&&(r+=r);while(h);return g}function ae(r,h){return ef(Jp(r,h,Gr),r+"")}function We(r){return Vh(fh(r))}function Qe(r,h){var g=fh(r);return Gu(g,oo(h,0,g.length))}function fi(r,h,g,O){if(!wn(r))return r;h=Ze(h,r);for(var Y=-1,ut=h.length,_t=ut-1,bt=r;bt!=null&&++Y<ut;){var Nt=ho(h[Y]),se=g;if(Nt==="__proto__"||Nt==="constructor"||Nt==="prototype")return r;if(Y!=_t){var le=bt[Nt];se=O?O(le,Nt,bt):o,se===o&&(se=wn(le)?le:Vo(h[Y+1])?[]:{})}Ca(bt,Nt,se),bt=bt[Nt]}return r}var An=fl?function(r,h){return fl.set(r,h),r}:Gr,yn=Io?function(r,h){return Io(r,"toString",{configurable:!0,enumerable:!1,value:ff(h),writable:!0})}:Gr;function qi(r){return Gu(fh(r))}function Vi(r,h,g){var O=-1,Y=r.length;h<0&&(h=-h>Y?0:Y+h),g=g>Y?Y:g,g<0&&(g+=Y),Y=h>g?0:g-h>>>0,h>>>=0;for(var ut=Zt(Y);++O<Y;)ut[O]=r[O+h];return ut}function sn(r,h){var g;return _n(r,function(O,Y,ut){return g=h(O,Y,ut),!g}),!!g}function Cn(r,h,g){var O=0,Y=r==null?O:r.length;if(typeof h=="number"&&h===h&&Y<=ke){for(;O<Y;){var ut=O+Y>>>1,_t=r[ut];_t!==null&&!ts(_t)&&(g?_t<=h:_t<h)?O=ut+1:Y=ut}return Y}return Ae(r,h,Gr,g)}function Ae(r,h,g,O){var Y=0,ut=r==null?0:r.length;if(ut===0)return 0;h=g(h);for(var _t=h!==h,bt=h===null,Nt=ts(h),se=h===o;Y<ut;){var le=Do((Y+ut)/2),de=g(r[le]),ze=de!==o,Je=de===null,hi=de===de,Mi=ts(de);if(_t)var ui=O||hi;else se?ui=hi&&(O||ze):bt?ui=hi&&ze&&(O||!Je):Nt?ui=hi&&ze&&!Je&&(O||!Mi):Je||Mi?ui=!1:ui=O?de<=h:de<h;ui?Y=le+1:ut=le}return Vn(ut,Bt)}function ti(r,h){for(var g=-1,O=r.length,Y=0,ut=[];++g<O;){var _t=r[g],bt=h?h(_t):_t;if(!g||!Fs(bt,Nt)){var Nt=bt;ut[Y++]=_t===0?0:_t}}return ut}function Ut(r){return typeof r=="number"?r:ts(r)?Ft:+r}function Ye(r){if(typeof r=="string")return r;if(vi(r))return Yi(r,Ye)+"";if(ts(r))return Gh?Gh.call(r):"";var h=r+"";return h=="0"&&1/r==-Ct?"-0":h}function ei(r,h,g){var O=-1,Y=el,ut=r.length,_t=!0,bt=[],Nt=bt;if(g)_t=!1,Y=Xl;else if(ut>=d){var se=h?null:Ia(r);if(se)return Ro(se);_t=!1,Y=ds,Nt=new No}else Nt=h?[]:bt;t:for(;++O<ut;){var le=r[O],de=h?h(le):le;if(le=g||le!==0?le:0,_t&&de===de){for(var ze=Nt.length;ze--;)if(Nt[ze]===de)continue t;h&&Nt.push(de),bt.push(le)}else Y(Nt,de,g)||(Nt!==bt&&Nt.push(de),bt.push(le))}return bt}function Wi(r,h){return h=Ze(h,r),r=$p(r,h),r==null||delete r[ho(Es(h))]}function Ce(r,h,g,O){return fi(r,h,g(ao(r,h)),O)}function Xe(r,h,g,O){for(var Y=r.length,ut=O?Y:-1;(O?ut--:++ut<Y)&&h(r[ut],ut,r););return g?Vi(r,O?0:ut,O?ut+1:Y):Vi(r,O?ut+1:0,O?Y:ut)}function ri(r,h){var g=r;return g instanceof yi&&(g=g.value()),ql(h,function(O,Y){return Y.func.apply(Y.thisArg,fs([O],Y.args))},g)}function Ci(r,h,g){var O=r.length;if(O<2)return O?ei(r[0]):[];for(var Y=-1,ut=Zt(O);++Y<O;)for(var _t=r[Y],bt=-1;++bt<O;)bt!=Y&&(ut[Y]=xl(ut[Y]||_t,r[bt],h,g));return ei(bn(ut,1),h,g)}function Ai(r,h,g){for(var O=-1,Y=r.length,ut=h.length,_t={};++O<Y;){var bt=O<ut?h[O]:o;g(_t,r[O],bt)}return _t}function ne(r){return Dn(r)?r:[]}function ii(r){return typeof r=="function"?r:Gr}function Ze(r,h){return vi(r)?r:Kc(r,h)?[r]:ed(Zi(r))}var li=ae;function xn(r,h,g){var O=r.length;return g=g===o?O:g,!h&&g>=O?r:Vi(r,h,g)}var Pn=$l||function(r){return gn.clearTimeout(r)};function Bs(r,h){if(h)return r.slice();var g=r.length,O=sl?sl(g):new r.constructor(g);return r.copy(O),O}function La(r){var h=new r.constructor(r.byteLength);return new tn(h).set(new tn(r)),h}function Yh(r,h){var g=h?La(r.buffer):r.buffer;return new r.constructor(g,r.byteOffset,r.byteLength)}function Ra(r){var h=new r.constructor(r.source,Gl.exec(r));return h.lastIndex=r.lastIndex,h}function Uo(r){return Bo?Ee(Bo.call(r)):{}}function Ml(r,h){var g=h?La(r.buffer):r.buffer;return new r.constructor(g,r.byteOffset,r.length)}function Go(r,h){if(r!==h){var g=r!==o,O=r===null,Y=r===r,ut=ts(r),_t=h!==o,bt=h===null,Nt=h===h,se=ts(h);if(!bt&&!se&&!ut&&r>h||ut&&_t&&Nt&&!bt&&!se||O&&_t&&Nt||!g&&Nt||!Y)return 1;if(!O&&!ut&&!se&&r<h||se&&g&&Y&&!O&&!ut||bt&&g&&Y||!_t&&Y||!Nt)return-1}return 0}function lo(r,h,g){for(var O=-1,Y=r.criteria,ut=h.criteria,_t=Y.length,bt=g.length;++O<_t;){var Nt=Go(Y[O],ut[O]);if(Nt){if(O>=bt)return Nt;var se=g[O];return Nt*(se=="desc"?-1:1)}}return r.index-h.index}function Zh(r,h,g,O){for(var Y=-1,ut=r.length,_t=g.length,bt=-1,Nt=h.length,se=vn(ut-_t,0),le=Zt(Nt+se),de=!O;++bt<Nt;)le[bt]=h[bt];for(;++Y<_t;)(de||Y<ut)&&(le[g[Y]]=r[Y]);for(;se--;)le[bt++]=r[Y++];return le}function Jh(r,h,g,O){for(var Y=-1,ut=r.length,_t=-1,bt=g.length,Nt=-1,se=h.length,le=vn(ut-bt,0),de=Zt(le+se),ze=!O;++Y<le;)de[Y]=r[Y];for(var Je=Y;++Nt<se;)de[Je+Nt]=h[Nt];for(;++_t<bt;)(ze||Y<ut)&&(de[Je+g[_t]]=r[Y++]);return de}function er(r,h){var g=-1,O=r.length;for(h||(h=Zt(O));++g<O;)h[g]=r[g];return h}function In(r,h,g,O){var Y=!g;g||(g={});for(var ut=-1,_t=h.length;++ut<_t;){var bt=h[ut],Nt=O?O(g[bt],r[bt],bt,g,r):o;Nt===o&&(Nt=r[bt]),Y?ks(g,bt,Nt):Ca(g,bt,Nt)}return g}function Ms(r,h){return In(r,$c(r),h)}function Bu(r,h){return In(r,jp(r),h)}function Oa(r,h){return function(g,O){var Y=vi(g)?jl:Iu,ut=h?h():{};return Y(g,r,oi(O,2),ut)}}function Ns(r){return ae(function(h,g){var O=-1,Y=g.length,ut=Y>1?g[Y-1]:o,_t=Y>2?g[2]:o;for(ut=r.length>3&&typeof ut=="function"?(Y--,ut):o,_t&&Mr(g[0],g[1],_t)&&(ut=Y<3?o:ut,Y=1),h=Ee(h);++O<Y;){var bt=g[O];bt&&r(h,bt,O,ut)}return h})}function ft(r,h){return function(g,O){if(g==null)return g;if(!Fr(g))return r(g,O);for(var Y=g.length,ut=h?Y:-1,_t=Ee(g);(h?ut--:++ut<Y)&&O(_t[ut],ut,_t)!==!1;);return g}}function Tt(r){return function(h,g,O){for(var Y=-1,ut=Ee(h),_t=O(h),bt=_t.length;bt--;){var Nt=_t[r?bt:++Y];if(g(ut[Nt],Nt,ut)===!1)break}return h}}function mt(r,h,g){var O=h&P,Y=Ve(r);function ut(){var _t=this&&this!==gn&&this instanceof ut?Y:r;return _t.apply(O?g:this,arguments)}return ut}function Me(r){return function(h){h=Zi(h);var g=Ir(h)?ar(h):o,O=g?g[0]:h.charAt(0),Y=g?xn(g,1).join(""):h.slice(1);return O[r]()+Y}}function De(r){return function(h){return ql(Id(Od(h).replace(oa,"")),r,"")}}function Ve(r){return function(){var h=arguments;switch(h.length){case 0:return new r;case 1:return new r(h[0]);case 2:return new r(h[0],h[1]);case 3:return new r(h[0],h[1],h[2]);case 4:return new r(h[0],h[1],h[2],h[3]);case 5:return new r(h[0],h[1],h[2],h[3],h[4]);case 6:return new r(h[0],h[1],h[2],h[3],h[4],h[5]);case 7:return new r(h[0],h[1],h[2],h[3],h[4],h[5],h[6])}var g=ro(r.prototype),O=r.apply(g,h);return wn(O)?O:g}}function Se(r,h,g){var O=Ve(r);function Y(){for(var ut=arguments.length,_t=Zt(ut),bt=ut,Nt=uh(Y);bt--;)_t[bt]=arguments[bt];var se=ut<3&&_t[0]!==Nt&&_t[ut-1]!==Nt?[]:Dr(_t,Nt);if(ut-=se.length,ut<g)return Kh(r,h,$i,Y.placeholder,o,_t,se,o,o,g-ut);var le=this&&this!==gn&&this instanceof Y?O:r;return _r(le,this,_t)}return Y}function Ke(r){return function(h,g,O){var Y=Ee(h);if(!Fr(h)){var ut=oi(g,3);h=Jn(h),g=function(bt){return ut(Y[bt],bt,Y)}}var _t=r(h,g,O);return _t>-1?Y[ut?h[_t]:_t]:o}}function Li(r){return Ho(function(h){var g=h.length,O=g,Y=qn.prototype.thru;for(r&&h.reverse();O--;){var ut=h[O];if(typeof ut!="function")throw new lr(m);if(Y&&!_t&&Fu(ut)=="wrapper")var _t=new qn([],!0)}for(O=_t?O:g;++O<g;){ut=h[O];var bt=Fu(ut),Nt=bt=="wrapper"?Zc(ut):o;Nt&&Qc(Nt[0])&&Nt[1]==(j|R|U|J)&&!Nt[4].length&&Nt[9]==1?_t=_t[Fu(Nt[0])].apply(_t,Nt[3]):_t=ut.length==1&&Qc(ut)?_t[bt]():_t.thru(ut)}return function(){var se=arguments,le=se[0];if(_t&&se.length==1&&vi(le))return _t.plant(le).value();for(var de=0,ze=g?h[de].apply(this,se):le;++de<g;)ze=h[de].call(this,ze);return ze}})}function $i(r,h,g,O,Y,ut,_t,bt,Nt,se){var le=h&j,de=h&P,ze=h&T,Je=h&(R|b),hi=h&$,Mi=ze?o:Ve(r);function ui(){for(var Pi=arguments.length,Fi=Zt(Pi),es=Pi;es--;)Fi[es]=arguments[es];if(Je)var Sr=uh(ui),is=ms(Fi,Sr);if(O&&(Fi=Zh(Fi,O,Y,Je)),ut&&(Fi=Jh(Fi,ut,_t,Je)),Pi-=is,Je&&Pi<se){var zn=Dr(Fi,Sr);return Kh(r,h,$i,ui.placeholder,g,Fi,zn,bt,Nt,se-Pi)}var Us=de?g:this,Xo=ze?Us[r]:r;return Pi=Fi.length,bt?Fi=e0(Fi,bt):hi&&Pi>1&&Fi.reverse(),le&&Nt<Pi&&(Fi.length=Nt),this&&this!==gn&&this instanceof ui&&(Xo=Mi||Ve(Xo)),Xo.apply(Us,Fi)}return ui}function ve(r,h){return function(g,O){return t(g,r,h(O),{})}}function Tr(r,h){return function(g,O){var Y;if(g===o&&O===o)return h;if(g!==o&&(Y=g),O!==o){if(Y===o)return O;typeof g=="string"||typeof O=="string"?(g=Ye(g),O=Ye(O)):(g=Ut(g),O=Ut(O)),Y=r(g,O)}return Y}}function Nn(r){return Ho(function(h){return h=Yi(h,Gn(oi())),ae(function(g){var O=this;return r(h,function(Y){return _r(Y,O,g)})})})}function an(r,h){h=h===o?" ":Ye(h);var g=h.length;if(g<2)return g?be(h,r):h;var O=be(h,Is(r/$r(h)));return Ir(h)?xn(ar(O),0,r).join(""):O.slice(0,r)}function dr(r,h,g,O){var Y=h&P,ut=Ve(r);function _t(){for(var bt=-1,Nt=arguments.length,se=-1,le=O.length,de=Zt(le+Nt),ze=this&&this!==gn&&this instanceof _t?ut:r;++se<le;)de[se]=O[se];for(;Nt--;)de[se++]=arguments[++bt];return _r(ze,Y?g:this,de)}return _t}function $h(r){return function(h,g,O){return O&&typeof O!="number"&&Mr(h,g,O)&&(g=O=o),h=jo(h),g===o?(g=h,h=0):g=jo(g),O=O===o?h<g?1:-1:jo(O),Ie(h,g,O,r)}}function Ss(r){return function(h,g){return typeof h=="string"&&typeof g=="string"||(h=bs(h),g=bs(g)),r(h,g)}}function Kh(r,h,g,O,Y,ut,_t,bt,Nt,se){var le=h&R,de=le?_t:o,ze=le?o:_t,Je=le?ut:o,hi=le?o:ut;h|=le?U:F,h&=~(le?F:U),h&M||(h&=~(P|T));var Mi=[r,h,Y,Je,de,hi,ze,bt,Nt,se],ui=g.apply(o,Mi);return Qc(r)&&Kp(ui,Mi),ui.placeholder=O,Qp(ui,r,h)}function hh(r){var h=fn[r];return function(g,O){if(g=bs(g),O=O==null?0:Vn(wi(O),292),O&&Ql(g)){var Y=(Zi(g)+"e").split("e"),ut=h(Y[0]+"e"+(+Y[1]+O));return Y=(Zi(ut)+"e").split("e"),+(Y[0]+"e"+(+Y[1]-O))}return h(g)}}var Ia=ko&&1/Ro(new ko([,-0]))[1]==Ct?function(r){return new ko(r)}:mf;function Nu(r){return function(h){var g=mr(h);return g==W?$n(h):g==Kt?Hn(h):Rs(h,r(h))}}function ir(r,h,g,O,Y,ut,_t,bt){var Nt=h&T;if(!Nt&&typeof r!="function")throw new lr(m);var se=O?O.length:0;if(se||(h&=~(U|F),O=Y=o),_t=_t===o?_t:vn(wi(_t),0),bt=bt===o?bt:wi(bt),se-=Y?Y.length:0,h&F){var le=O,de=Y;O=Y=o}var ze=Nt?o:Zc(r),Je=[r,h,g,O,Y,le,de,ut,_t,bt];if(ze&&Kg(Je,ze),r=Je[0],h=Je[1],g=Je[2],O=Je[3],Y=Je[4],bt=Je[9]=Je[9]===o?Nt?0:r.length:vn(Je[9]-se,0),!bt&&h&(R|b)&&(h&=~(R|b)),!h||h==P)var hi=mt(r,h,g);else h==R||h==b?hi=Se(r,h,bt):(h==U||h==(P|U))&&!Y.length?hi=dr(r,h,g,O):hi=$i.apply(o,Je);var Mi=ze?An:Kp;return Qp(Mi(hi,Je),r,h)}function Hp(r,h,g,O){return r===o||Fs(r,gs[g])&&!Ti.call(O,g)?h:r}function Vp(r,h,g,O,Y,ut){return wn(r)&&wn(h)&&(ut.set(h,r),wt(r,h,o,Vp,ut),ut.delete(h)),r}function Ng(r){return eu(r)?o:r}function Wp(r,h,g,O,Y,ut){var _t=g&N,bt=r.length,Nt=h.length;if(bt!=Nt&&!(_t&&Nt>bt))return!1;var se=ut.get(r),le=ut.get(h);if(se&&le)return se==h&&le==r;var de=-1,ze=!0,Je=g&E?new No:o;for(ut.set(r,h),ut.set(h,r);++de<bt;){var hi=r[de],Mi=h[de];if(O)var ui=_t?O(Mi,hi,de,h,r,ut):O(hi,Mi,de,r,h,ut);if(ui!==o){if(ui)continue;ze=!1;break}if(Je){if(!Cs(h,function(Pi,Fi){if(!ds(Je,Fi)&&(hi===Pi||Y(hi,Pi,g,O,ut)))return Je.push(Fi)})){ze=!1;break}}else if(!(hi===Mi||Y(hi,Mi,g,O,ut))){ze=!1;break}}return ut.delete(r),ut.delete(h),ze}function Fg(r,h,g,O,Y,ut,_t){switch(g){case Xt:if(r.byteLength!=h.byteLength||r.byteOffset!=h.byteOffset)return!1;r=r.buffer,h=h.buffer;case Gt:return!(r.byteLength!=h.byteLength||!ut(new tn(r),new tn(h)));case Oe:case Ge:case Jt:return Fs(+r,+h);case Ii:return r.name==h.name&&r.message==h.message;case ie:case z:return r==h+"";case W:var bt=$n;case Kt:var Nt=O&N;if(bt||(bt=Ro),r.size!=h.size&&!Nt)return!1;var se=_t.get(r);if(se)return se==h;O|=E,_t.set(r,h);var le=Wp(bt(r),bt(h),O,Y,ut,_t);return _t.delete(r),le;case Q:if(Bo)return Bo.call(r)==Bo.call(h)}return!1}function Ug(r,h,g,O,Y,ut){var _t=g&N,bt=qc(r),Nt=bt.length,se=qc(h),le=se.length;if(Nt!=le&&!_t)return!1;for(var de=Nt;de--;){var ze=bt[de];if(!(_t?ze in h:Ti.call(h,ze)))return!1}var Je=ut.get(r),hi=ut.get(h);if(Je&&hi)return Je==h&&hi==r;var Mi=!0;ut.set(r,h),ut.set(h,r);for(var ui=_t;++de<Nt;){ze=bt[de];var Pi=r[ze],Fi=h[ze];if(O)var es=_t?O(Fi,Pi,ze,h,r,ut):O(Pi,Fi,ze,r,h,ut);if(!(es===o?Pi===Fi||Y(Pi,Fi,g,O,ut):es)){Mi=!1;break}ui||(ui=ze=="constructor")}if(Mi&&!ui){var Sr=r.constructor,is=h.constructor;Sr!=is&&"constructor"in r&&"constructor"in h&&!(typeof Sr=="function"&&Sr instanceof Sr&&typeof is=="function"&&is instanceof is)&&(Mi=!1)}return ut.delete(r),ut.delete(h),Mi}function Ho(r){return ef(Jp(r,o,sd),r+"")}function qc(r){return ku(r,Jn,$c)}function Yc(r){return ku(r,Ur,jp)}var Zc=fl?function(r){return fl.get(r)}:mf;function Fu(r){for(var h=r.name+"",g=no[h],O=Ti.call(no,h)?g.length:0;O--;){var Y=g[O],ut=Y.func;if(ut==null||ut==r)return Y.name}return h}function uh(r){var h=Ti.call(it,"placeholder")?it:r;return h.placeholder}function oi(){var r=it.iteratee||pf;return r=r===pf?H:r,arguments.length?r(arguments[0],arguments[1]):r}function Uu(r,h){var g=r.__data__;return Yg(h)?g[typeof h=="string"?"string":"hash"]:g.map}function Jc(r){for(var h=Jn(r),g=h.length;g--;){var O=h[g],Y=r[O];h[g]=[O,Y,Yp(Y)]}return h}function Sl(r,h){var g=Co(r,h);return w(g)?g:o}function Gg(r){var h=Ti.call(r,ys),g=r[ys];try{r[ys]=o;var O=!0}catch{}var Y=cr.call(r);return O&&(h?r[ys]=g:delete r[ys]),Y}var $c=ll?function(r){return r==null?[]:(r=Ee(r),Rr(ll(r),function(h){return al.call(r,h)}))}:gf,jp=ll?function(r){for(var h=[];r;)fs(h,$c(r)),r=_s(r);return h}:gf,mr=Zn;(ul&&mr(new ul(new ArrayBuffer(1)))!=Xt||zo&&mr(new zo)!=W||cl&&mr(cl.resolve())!=dt||ko&&mr(new ko)!=Kt||En&&mr(new En)!=nt)&&(mr=function(r){var h=Zn(r),g=h==pt?r.constructor:o,O=g?El(g):"";if(O)switch(O){case eh:return Xt;case Nh:return W;case Fh:return dt;case Uh:return Kt;case Au:return nt}return h});function Hg(r,h,g){for(var O=-1,Y=g.length;++O<Y;){var ut=g[O],_t=ut.size;switch(ut.type){case"drop":r+=_t;break;case"dropRight":h-=_t;break;case"take":h=Vn(h,r+_t);break;case"takeRight":r=vn(r,h-_t);break}}return{start:r,end:h}}function Vg(r){var h=r.match(qa);return h?h[1].split(hs):[]}function Xp(r,h,g){h=Ze(h,r);for(var O=-1,Y=h.length,ut=!1;++O<Y;){var _t=ho(h[O]);if(!(ut=r!=null&&g(r,_t)))break;r=r[_t]}return ut||++O!=Y?ut:(Y=r==null?0:r.length,!!Y&&qu(Y)&&Vo(_t,Y)&&(vi(r)||bl(r)))}function Wg(r){var h=r.length,g=new r.constructor(h);return h&&typeof r[0]=="string"&&Ti.call(r,"index")&&(g.index=r.index,g.input=r.input),g}function qp(r){return typeof r.constructor=="function"&&!Qh(r)?ro(_s(r)):{}}function jg(r,h,g){var O=r.constructor;switch(h){case Gt:return La(r);case Oe:case Ge:return new O(+r);case Xt:return Yh(r,g);case jt:case Ne:case Re:case ge:case we:case _i:case Si:case ni:case Ei:return Ml(r,g);case W:return new O;case Jt:case z:return new O(r);case ie:return Ra(r);case Kt:return new O;case Q:return Uo(r)}}function Xg(r,h){var g=h.length;if(!g)return r;var O=g-1;return h[O]=(g>1?"& ":"")+h[O],h=h.join(g>2?", ":" "),r.replace(na,`{
2616
+ */ru.exports,function(x,a){(function(){var o,c="4.17.21",d=200,u="Unsupported core-js use. Try https://npms.io/search?q=ponyfill.",m="Expected a function",_="Invalid `variable` option passed into `_.template`",y="__lodash_hash_undefined__",S=500,A="__lodash_placeholder__",I=1,k=2,D=4,F=1,E=2,L=1,T=2,M=4,R=8,b=16,U=32,N=64,j=128,J=256,$=512,ct=30,It="...",et=800,yt=16,G=1,Pt=2,Et=3,Ct=1/0,fe=9007199254740991,re=17976931348623157e292,Ft=0/0,Ot=4294967295,Bt=Ot-1,ke=Ot>>>1,ce=[["ary",j],["bind",L],["bindKey",T],["curry",R],["curryRight",b],["flip",$],["partial",U],["partialRight",N],["rearg",J]],Yt="[object Arguments]",$e="[object Array]",Oi="[object AsyncFunction]",Oe="[object Boolean]",Ge="[object Date]",di="[object DOMException]",Ii="[object Error]",mn="[object Function]",Qi="[object GeneratorFunction]",W="[object Map]",Jt="[object Number]",Wt="[object Null]",pt="[object Object]",dt="[object Promise]",Dt="[object Proxy]",ie="[object RegExp]",Kt="[object Set]",z="[object String]",Q="[object Symbol]",ot="[object Undefined]",nt="[object WeakMap]",vt="[object WeakSet]",Gt="[object ArrayBuffer]",Xt="[object DataView]",jt="[object Float32Array]",Ne="[object Float64Array]",Re="[object Int8Array]",ge="[object Int16Array]",we="[object Int32Array]",_i="[object Uint8Array]",Si="[object Uint8ClampedArray]",ni="[object Uint16Array]",Ei="[object Uint32Array]",qr=/\b__p \+= '';/g,or=/\b(__p \+=) '' \+/g,on=/(__e\(.*?\)|\b__t\)) \+\n'';/g,As=/&(?:amp|lt|gt|quot|#39);/g,Di=/[&<>"']/g,Xs=RegExp(As.source),as=RegExp(Di.source),Fl=/<%-([\s\S]+?)%>/g,Mn=/<%([\s\S]+?)%>/g,ea=/<%=([\s\S]+?)%>/g,mo=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,vr=/^\w*$/,ia=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,Xa=/[\\^$.*+?()[\]{}|]/g,Ul=RegExp(Xa.source),ls=/^\s+/,Ch=/\s/,na=/\{(?:\n\/\* \[wrapped with .+\] \*\/)?\n?/,qa=/\{\n\/\* \[wrapped with (.+)\] \*/,hs=/,? & /,Ya=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g,ra=/[()=,{}\[\]\/\s]/,sa=/\\(\\)?/g,us=/\$\{([^\\}]*(?:\\.[^\\}]*)*)\}/g,Gl=/\w*$/,Ph=/^[-+]0x[0-9a-f]+$/i,Lh=/^0b[01]+$/i,go=/^\[object .+?Constructor\]$/,vo=/^0o[0-7]+$/i,Hl=/^(?:0|[1-9]\d*)$/,Vl=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,Yr=/($^)/,V=/['\n\r\u2028\u2029\\]/g,tt="\\ud800-\\udfff",lt="\\u0300-\\u036f",at="\\ufe20-\\ufe2f",X="\\u20d0-\\u20ff",St=lt+at+X,ht="\\u2700-\\u27bf",Rt="a-z\\xdf-\\xf6\\xf8-\\xff",Ht="\\xac\\xb1\\xd7\\xf7",kt="\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf",Mt="\\u2000-\\u206f",he=" \\t\\x0b\\f\\xa0\\ufeff\\n\\r\\u2028\\u2029\\u1680\\u180e\\u2000\\u2001\\u2002\\u2003\\u2004\\u2005\\u2006\\u2007\\u2008\\u2009\\u200a\\u202f\\u205f\\u3000",oe="A-Z\\xc0-\\xd6\\xd8-\\xde",te="\\ufe0e\\ufe0f",_e=Ht+kt+Mt+he,ue="['’]",je="["+tt+"]",He="["+_e+"]",ci="["+St+"]",Be="\\d+",ye="["+ht+"]",Fe="["+Rt+"]",pe="[^"+tt+_e+Be+ht+Rt+oe+"]",mi="\\ud83c[\\udffb-\\udfff]",Pe="(?:"+ci+"|"+mi+")",xe="[^"+tt+"]",Le="(?:\\ud83c[\\udde6-\\uddff]){2}",Sn="[\\ud800-\\udbff][\\udc00-\\udfff]",Xn="["+oe+"]",zi="\\u200d",ki="(?:"+Fe+"|"+pe+")",Hi="(?:"+Xn+"|"+pe+")",nn="(?:"+ue+"(?:d|ll|m|re|s|t|ve))?",rn="(?:"+ue+"(?:D|LL|M|RE|S|T|VE))?",un=Pe+"?",cn="["+te+"]?",Gi="(?:"+zi+"(?:"+[xe,Le,Sn].join("|")+")"+cn+un+")*",Bi="\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])",ji="\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])",gi=cn+un+Gi,cs="(?:"+[ye,Le,Sn].join("|")+")"+gi,Fn="(?:"+[xe+ci+"?",ci,Le,Sn,je].join("|")+")",oa=RegExp(ue,"g"),Rh=RegExp(ci,"g"),qs=RegExp(mi+"(?="+mi+")|"+Fn+gi,"g"),Za=RegExp([Xn+"?"+Fe+"+"+nn+"(?="+[He,Xn,"$"].join("|")+")",Hi+"+"+rn+"(?="+[He,Xn+ki,"$"].join("|")+")",Xn+"?"+ki+"+"+nn,Xn+"+"+rn,ji,Bi,Be,cs].join("|"),"g"),Ja=RegExp("["+zi+tt+St+te+"]"),aa=/[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/,$a=["Array","Buffer","DataView","Date","Error","Float32Array","Float64Array","Function","Int8Array","Int16Array","Int32Array","Map","Math","Object","Promise","RegExp","Set","String","Symbol","TypeError","Uint8Array","Uint8ClampedArray","Uint16Array","Uint32Array","WeakMap","_","clearTimeout","isFinite","parseInt","setTimeout"],la=-1,Xi={};Xi[jt]=Xi[Ne]=Xi[Re]=Xi[ge]=Xi[we]=Xi[_i]=Xi[Si]=Xi[ni]=Xi[Ei]=!0,Xi[Yt]=Xi[$e]=Xi[Gt]=Xi[Oe]=Xi[Xt]=Xi[Ge]=Xi[Ii]=Xi[mn]=Xi[W]=Xi[Jt]=Xi[pt]=Xi[ie]=Xi[Kt]=Xi[z]=Xi[nt]=!1;var xi={};xi[Yt]=xi[$e]=xi[Gt]=xi[Xt]=xi[Oe]=xi[Ge]=xi[jt]=xi[Ne]=xi[Re]=xi[ge]=xi[we]=xi[W]=xi[Jt]=xi[pt]=xi[ie]=xi[Kt]=xi[z]=xi[Q]=xi[_i]=xi[Si]=xi[ni]=xi[Ei]=!0,xi[Ii]=xi[mn]=xi[nt]=!1;var Ka={À:"A",Á:"A",Â:"A",Ã:"A",Ä:"A",Å:"A",à:"a",á:"a",â:"a",ã:"a",ä:"a",å:"a",Ç:"C",ç:"c",Ð:"D",ð:"d",È:"E",É:"E",Ê:"E",Ë:"E",è:"e",é:"e",ê:"e",ë:"e",Ì:"I",Í:"I",Î:"I",Ï:"I",ì:"i",í:"i",î:"i",ï:"i",Ñ:"N",ñ:"n",Ò:"O",Ó:"O",Ô:"O",Õ:"O",Ö:"O",Ø:"O",ò:"o",ó:"o",ô:"o",õ:"o",ö:"o",ø:"o",Ù:"U",Ú:"U",Û:"U",Ü:"U",ù:"u",ú:"u",û:"u",ü:"u",Ý:"Y",ý:"y",ÿ:"y",Æ:"Ae",æ:"ae",Þ:"Th",þ:"th",ß:"ss",Ā:"A",Ă:"A",Ą:"A",ā:"a",ă:"a",ą:"a",Ć:"C",Ĉ:"C",Ċ:"C",Č:"C",ć:"c",ĉ:"c",ċ:"c",č:"c",Ď:"D",Đ:"D",ď:"d",đ:"d",Ē:"E",Ĕ:"E",Ė:"E",Ę:"E",Ě:"E",ē:"e",ĕ:"e",ė:"e",ę:"e",ě:"e",Ĝ:"G",Ğ:"G",Ġ:"G",Ģ:"G",ĝ:"g",ğ:"g",ġ:"g",ģ:"g",Ĥ:"H",Ħ:"H",ĥ:"h",ħ:"h",Ĩ:"I",Ī:"I",Ĭ:"I",Į:"I",İ:"I",ĩ:"i",ī:"i",ĭ:"i",į:"i",ı:"i",Ĵ:"J",ĵ:"j",Ķ:"K",ķ:"k",ĸ:"k",Ĺ:"L",Ļ:"L",Ľ:"L",Ŀ:"L",Ł:"L",ĺ:"l",ļ:"l",ľ:"l",ŀ:"l",ł:"l",Ń:"N",Ņ:"N",Ň:"N",Ŋ:"N",ń:"n",ņ:"n",ň:"n",ŋ:"n",Ō:"O",Ŏ:"O",Ő:"O",ō:"o",ŏ:"o",ő:"o",Ŕ:"R",Ŗ:"R",Ř:"R",ŕ:"r",ŗ:"r",ř:"r",Ś:"S",Ŝ:"S",Ş:"S",Š:"S",ś:"s",ŝ:"s",ş:"s",š:"s",Ţ:"T",Ť:"T",Ŧ:"T",ţ:"t",ť:"t",ŧ:"t",Ũ:"U",Ū:"U",Ŭ:"U",Ů:"U",Ű:"U",Ų:"U",ũ:"u",ū:"u",ŭ:"u",ů:"u",ű:"u",ų:"u",Ŵ:"W",ŵ:"w",Ŷ:"Y",ŷ:"y",Ÿ:"Y",Ź:"Z",Ż:"Z",Ž:"Z",ź:"z",ż:"z",ž:"z",IJ:"IJ",ij:"ij",Œ:"Oe",œ:"oe",ʼn:"'n",ſ:"s"},ha={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;"},Qa={"&amp;":"&","&lt;":"<","&gt;":">","&quot;":'"',"&#39;":"'"},_o={"\\":"\\","'":"'","\n":"n","\r":"r","\u2028":"u2028","\u2029":"u2029"},tl=parseFloat,ua=parseInt,ca=typeof Er=="object"&&Er&&Er.Object===Object&&Er,fa=typeof self=="object"&&self&&self.Object===Object&&self,gn=ca||fa||Function("return this")(),Ys=a&&!a.nodeType&&a,Zr=Ys&&!0&&x&&!x.nodeType&&x,yo=Zr&&Zr.exports===Ys,xo=yo&&ca.process,Un=function(){try{var Lt=Zr&&Zr.require&&Zr.require("util").types;return Lt||xo&&xo.binding&&xo.binding("util")}catch{}}(),Oh=Un&&Un.isArrayBuffer,pa=Un&&Un.isDate,da=Un&&Un.isMap,xu=Un&&Un.isRegExp,wu=Un&&Un.isSet,Wl=Un&&Un.isTypedArray;function _r(Lt,Qt,Zt){switch(Zt.length){case 0:return Lt.call(Qt);case 1:return Lt.call(Qt,Zt[0]);case 2:return Lt.call(Qt,Zt[0],Zt[1]);case 3:return Lt.call(Qt,Zt[0],Zt[1],Zt[2])}return Lt.apply(Qt,Zt)}function jl(Lt,Qt,Zt,Ue){for(var ai=-1,Ni=Lt==null?0:Lt.length;++ai<Ni;){var fn=Lt[ai];Qt(Ue,fn,Zt(fn),Lt)}return Ue}function Ji(Lt,Qt){for(var Zt=-1,Ue=Lt==null?0:Lt.length;++Zt<Ue&&Qt(Lt[Zt],Zt,Lt)!==!1;);return Lt}function wo(Lt,Qt){for(var Zt=Lt==null?0:Lt.length;Zt--&&Qt(Lt[Zt],Zt,Lt)!==!1;);return Lt}function Ih(Lt,Qt){for(var Zt=-1,Ue=Lt==null?0:Lt.length;++Zt<Ue;)if(!Qt(Lt[Zt],Zt,Lt))return!1;return!0}function Rr(Lt,Qt){for(var Zt=-1,Ue=Lt==null?0:Lt.length,ai=0,Ni=[];++Zt<Ue;){var fn=Lt[Zt];Qt(fn,Zt,Lt)&&(Ni[ai++]=fn)}return Ni}function el(Lt,Qt){var Zt=Lt==null?0:Lt.length;return!!Zt&&Or(Lt,Qt,0)>-1}function Xl(Lt,Qt,Zt){for(var Ue=-1,ai=Lt==null?0:Lt.length;++Ue<ai;)if(Zt(Qt,Lt[Ue]))return!0;return!1}function Yi(Lt,Qt){for(var Zt=-1,Ue=Lt==null?0:Lt.length,ai=Array(Ue);++Zt<Ue;)ai[Zt]=Qt(Lt[Zt],Zt,Lt);return ai}function fs(Lt,Qt){for(var Zt=-1,Ue=Qt.length,ai=Lt.length;++Zt<Ue;)Lt[ai+Zt]=Qt[Zt];return Lt}function ql(Lt,Qt,Zt,Ue){var ai=-1,Ni=Lt==null?0:Lt.length;for(Ue&&Ni&&(Zt=Lt[++ai]);++ai<Ni;)Zt=Qt(Zt,Lt[ai],ai,Lt);return Zt}function Tu(Lt,Qt,Zt,Ue){var ai=Lt==null?0:Lt.length;for(Ue&&ai&&(Zt=Lt[--ai]);ai--;)Zt=Qt(Zt,Lt[ai],ai,Lt);return Zt}function Cs(Lt,Qt){for(var Zt=-1,Ue=Lt==null?0:Lt.length;++Zt<Ue;)if(Qt(Lt[Zt],Zt,Lt))return!0;return!1}var ps=Js("length");function Mu(Lt){return Lt.split("")}function il(Lt){return Lt.match(Ya)||[]}function To(Lt,Qt,Zt){var Ue;return Zt(Lt,function(ai,Ni,fn){if(Qt(ai,Ni,fn))return Ue=Ni,!1}),Ue}function Zs(Lt,Qt,Zt,Ue){for(var ai=Lt.length,Ni=Zt+(Ue?1:-1);Ue?Ni--:++Ni<ai;)if(Qt(Lt[Ni],Ni,Lt))return Ni;return-1}function Or(Lt,Qt,Zt){return Qt===Qt?Yl(Lt,Qt,Zt):Zs(Lt,Mo,Zt)}function nl(Lt,Qt,Zt,Ue){for(var ai=Zt-1,Ni=Lt.length;++ai<Ni;)if(Ue(Lt[ai],Qt))return ai;return-1}function Mo(Lt){return Lt!==Lt}function ma(Lt,Qt){var Zt=Lt==null?0:Lt.length;return Zt?Ks(Lt,Qt)/Zt:Ft}function Js(Lt){return function(Qt){return Qt==null?o:Qt[Lt]}}function Ps(Lt){return function(Qt){return Lt==null?o:Lt[Qt]}}function $s(Lt,Qt,Zt,Ue,ai){return ai(Lt,function(Ni,fn,Ee){Zt=Ue?(Ue=!1,Ni):Qt(Zt,Ni,fn,Ee)}),Zt}function Su(Lt,Qt){var Zt=Lt.length;for(Lt.sort(Qt);Zt--;)Lt[Zt]=Lt[Zt].value;return Lt}function Ks(Lt,Qt){for(var Zt,Ue=-1,ai=Lt.length;++Ue<ai;){var Ni=Qt(Lt[Ue]);Ni!==o&&(Zt=Zt===o?Ni:Zt+Ni)}return Zt}function Ls(Lt,Qt){for(var Zt=-1,Ue=Array(Lt);++Zt<Lt;)Ue[Zt]=Qt(Zt);return Ue}function Rs(Lt,Qt){return Yi(Qt,function(Zt){return[Zt,Lt[Zt]]})}function ga(Lt){return Lt&&Lt.slice(0,va(Lt)+1).replace(ls,"")}function Gn(Lt){return function(Qt){return Lt(Qt)}}function So(Lt,Qt){return Yi(Qt,function(Zt){return Lt[Zt]})}function ds(Lt,Qt){return Lt.has(Qt)}function Qs(Lt,Qt){for(var Zt=-1,Ue=Lt.length;++Zt<Ue&&Or(Qt,Lt[Zt],0)>-1;);return Zt}function Eo(Lt,Qt){for(var Zt=Lt.length;Zt--&&Or(Qt,Lt[Zt],0)>-1;);return Zt}function ms(Lt,Qt){for(var Zt=Lt.length,Ue=0;Zt--;)Lt[Zt]===Qt&&++Ue;return Ue}var bo=Ps(Ka),Jr=Ps(ha);function Ao(Lt){return"\\"+_o[Lt]}function Co(Lt,Qt){return Lt==null?o:Lt[Qt]}function Ir(Lt){return Ja.test(Lt)}function Po(Lt){return aa.test(Lt)}function Lo(Lt){for(var Qt,Zt=[];!(Qt=Lt.next()).done;)Zt.push(Qt.value);return Zt}function $n(Lt){var Qt=-1,Zt=Array(Lt.size);return Lt.forEach(function(Ue,ai){Zt[++Qt]=[ai,Ue]}),Zt}function rl(Lt,Qt){return function(Zt){return Lt(Qt(Zt))}}function Dr(Lt,Qt){for(var Zt=-1,Ue=Lt.length,ai=0,Ni=[];++Zt<Ue;){var fn=Lt[Zt];(fn===Qt||fn===A)&&(Lt[Zt]=A,Ni[ai++]=Zt)}return Ni}function Ro(Lt){var Qt=-1,Zt=Array(Lt.size);return Lt.forEach(function(Ue){Zt[++Qt]=Ue}),Zt}function Hn(Lt){var Qt=-1,Zt=Array(Lt.size);return Lt.forEach(function(Ue){Zt[++Qt]=[Ue,Ue]}),Zt}function Yl(Lt,Qt,Zt){for(var Ue=Zt-1,ai=Lt.length;++Ue<ai;)if(Lt[Ue]===Qt)return Ue;return-1}function Zl(Lt,Qt,Zt){for(var Ue=Zt+1;Ue--;)if(Lt[Ue]===Qt)return Ue;return Ue}function $r(Lt){return Ir(Lt)?_a(Lt):ps(Lt)}function ar(Lt){return Ir(Lt)?yr(Lt):Mu(Lt)}function va(Lt){for(var Qt=Lt.length;Qt--&&Ch.test(Lt.charAt(Qt)););return Qt}var Jl=Ps(Qa);function _a(Lt){for(var Qt=qs.lastIndex=0;qs.test(Lt);)++Qt;return Qt}function yr(Lt){return Lt.match(qs)||[]}function Gc(Lt){return Lt.match(Za)||[]}var Hc=function Lt(Qt){Qt=Qt==null?gn:to.defaults(gn.Object(),Qt,to.pick(gn,$a));var Zt=Qt.Array,Ue=Qt.Date,ai=Qt.Error,Ni=Qt.Function,fn=Qt.Math,Ee=Qt.Object,Kn=Qt.RegExp,ya=Qt.String,lr=Qt.TypeError,On=Zt.prototype,Eu=Ni.prototype,gs=Ee.prototype,eo=Qt["__core-js_shared__"],hr=Eu.toString,Ti=gs.hasOwnProperty,ur=0,zr=function(){var r=/[^.]+$/.exec(eo&&eo.keys&&eo.keys.IE_PROTO||"");return r?"Symbol(src)_1."+r:""}(),cr=gs.toString,vs=hr.call(Ee),Kr=gn._,Os=Kn("^"+hr.call(Ti).replace(Xa,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),fr=yo?Qt.Buffer:o,Qn=Qt.Symbol,tn=Qt.Uint8Array,sl=fr?fr.allocUnsafe:o,_s=rl(Ee.getPrototypeOf,Ee),ol=Ee.create,al=gs.propertyIsEnumerable,Oo=On.splice,xa=Qn?Qn.isConcatSpreadable:o,io=Qn?Qn.iterator:o,ys=Qn?Qn.toStringTag:o,Io=function(){try{var r=Sl(Ee,"defineProperty");return r({},"",{}),r}catch{}}(),$l=Qt.clearTimeout!==gn.clearTimeout&&Qt.clearTimeout,Kl=Ue&&Ue.now!==gn.Date.now&&Ue.now,Dh=Qt.setTimeout!==gn.setTimeout&&Qt.setTimeout,Is=fn.ceil,Do=fn.floor,ll=Ee.getOwnPropertySymbols,zh=fr?fr.isBuffer:o,Ql=Qt.isFinite,kh=On.join,bu=rl(Ee.keys,Ee),vn=fn.max,Vn=fn.min,hl=Ue.now,Bh=Qt.parseInt,th=fn.random,wa=On.reverse,ul=Sl(Qt,"DataView"),zo=Sl(Qt,"Map"),cl=Sl(Qt,"Promise"),ko=Sl(Qt,"Set"),En=Sl(Qt,"WeakMap"),Ta=Sl(Ee,"create"),fl=En&&new En,no={},eh=El(ul),Nh=El(zo),Fh=El(cl),Uh=El(ko),Au=El(En),pl=Qn?Qn.prototype:o,Bo=pl?pl.valueOf:o,Gh=pl?pl.toString:o;function it(r){if(Ln(r)&&!vi(r)&&!(r instanceof yi)){if(r instanceof qn)return r;if(Ti.call(r,"__wrapped__"))return nd(r)}return new qn(r)}var ro=function(){function r(){}return function(h){if(!wn(h))return{};if(ol)return ol(h);r.prototype=h;var g=new r;return r.prototype=o,g}}();function Ma(){}function qn(r,h){this.__wrapped__=r,this.__actions__=[],this.__chain__=!!h,this.__index__=0,this.__values__=o}it.templateSettings={escape:Fl,evaluate:Mn,interpolate:ea,variable:"",imports:{_:it}},it.prototype=Ma.prototype,it.prototype.constructor=it,qn.prototype=ro(Ma.prototype),qn.prototype.constructor=qn;function yi(r){this.__wrapped__=r,this.__actions__=[],this.__dir__=1,this.__filtered__=!1,this.__iteratees__=[],this.__takeCount__=Ot,this.__views__=[]}function Sa(){var r=new yi(this.__wrapped__);return r.__actions__=er(this.__actions__),r.__dir__=this.__dir__,r.__filtered__=this.__filtered__,r.__iteratees__=er(this.__iteratees__),r.__takeCount__=this.__takeCount__,r.__views__=er(this.__views__),r}function Cu(){if(this.__filtered__){var r=new yi(this);r.__dir__=-1,r.__filtered__=!0}else r=this.clone(),r.__dir__*=-1;return r}function Ea(){var r=this.__wrapped__.value(),h=this.__dir__,g=vi(r),O=h<0,Y=g?r.length:0,ut=Vg(0,Y,this.__views__),_t=ut.start,bt=ut.end,Nt=bt-_t,se=O?bt:_t-1,le=this.__iteratees__,de=le.length,ze=0,Je=Vn(Nt,this.__takeCount__);if(!g||!O&&Y==Nt&&Je==Nt)return ri(r,this.__actions__);var hi=[];t:for(;Nt--&&ze<Je;){se+=h;for(var Mi=-1,ui=r[se];++Mi<de;){var Pi=le[Mi],Fi=Pi.iteratee,es=Pi.type,Sr=Fi(ui);if(es==Pt)ui=Sr;else if(!Sr){if(es==G)continue t;break t}}hi[ze++]=ui}return hi}yi.prototype=ro(Ma.prototype),yi.prototype.constructor=yi;function kr(r){var h=-1,g=r==null?0:r.length;for(this.clear();++h<g;){var O=r[h];this.set(O[0],O[1])}}function ba(){this.__data__=Ta?Ta(null):{},this.size=0}function Aa(r){var h=this.has(r)&&delete this.__data__[r];return this.size-=h?1:0,h}function dl(r){var h=this.__data__;if(Ta){var g=h[r];return g===y?o:g}return Ti.call(h,r)?h[r]:o}function ih(r){var h=this.__data__;return Ta?h[r]!==o:Ti.call(h,r)}function ml(r,h){var g=this.__data__;return this.size+=this.has(r)?0:1,g[r]=Ta&&h===o?y:h,this}kr.prototype.clear=ba,kr.prototype.delete=Aa,kr.prototype.get=dl,kr.prototype.has=ih,kr.prototype.set=ml;function pr(r){var h=-1,g=r==null?0:r.length;for(this.clear();++h<g;){var O=r[h];this.set(O[0],O[1])}}function gl(){this.__data__=[],this.size=0}function Ds(r){var h=this.__data__,g=yl(h,r);if(g<0)return!1;var O=h.length-1;return g==O?h.pop():Oo.call(h,g,1),--this.size,!0}function vl(r){var h=this.__data__,g=yl(h,r);return g<0?o:h[g][1]}function _l(r){return yl(this.__data__,r)>-1}function zs(r,h){var g=this.__data__,O=yl(g,r);return O<0?(++this.size,g.push([r,h])):g[O][1]=h,this}pr.prototype.clear=gl,pr.prototype.delete=Ds,pr.prototype.get=vl,pr.prototype.has=_l,pr.prototype.set=zs;function xr(r){var h=-1,g=r==null?0:r.length;for(this.clear();++h<g;){var O=r[h];this.set(O[0],O[1])}}function Pu(){this.size=0,this.__data__={hash:new kr,map:new(zo||pr),string:new kr}}function Lu(r){var h=Uu(this,r).delete(r);return this.size-=h?1:0,h}function Hh(r){return Uu(this,r).get(r)}function pi(r){return Uu(this,r).has(r)}function so(r,h){var g=Uu(this,r),O=g.size;return g.set(r,h),this.size+=g.size==O?0:1,this}xr.prototype.clear=Pu,xr.prototype.delete=Lu,xr.prototype.get=Hh,xr.prototype.has=pi,xr.prototype.set=so;function No(r){var h=-1,g=r==null?0:r.length;for(this.__data__=new xr;++h<g;)this.add(r[h])}function bi(r){return this.__data__.set(r,y),this}function Bn(r){return this.__data__.has(r)}No.prototype.add=No.prototype.push=bi,No.prototype.has=Bn;function Qr(r){var h=this.__data__=new pr(r);this.size=h.size}function qe(){this.__data__=new pr,this.size=0}function xs(r){var h=this.__data__,g=h.delete(r);return this.size=h.size,g}function Vc(r){return this.__data__.get(r)}function Wc(r){return this.__data__.has(r)}function jc(r,h){var g=this.__data__;if(g instanceof pr){var O=g.__data__;if(!zo||O.length<d-1)return O.push([r,h]),this.size=++g.size,this;g=this.__data__=new xr(O)}return g.set(r,h),this.size=g.size,this}Qr.prototype.clear=qe,Qr.prototype.delete=xs,Qr.prototype.get=Vc,Qr.prototype.has=Wc,Qr.prototype.set=jc;function Ru(r,h){var g=vi(r),O=!g&&bl(r),Y=!g&&!O&&Da(r),ut=!g&&!O&&!Y&&ch(r),_t=g||O||Y||ut,bt=_t?Ls(r.length,ya):[],Nt=bt.length;for(var se in r)(h||Ti.call(r,se))&&!(_t&&(se=="length"||Y&&(se=="offset"||se=="parent")||ut&&(se=="buffer"||se=="byteLength"||se=="byteOffset")||Vo(se,Nt)))&&bt.push(se);return bt}function Vh(r){var h=r.length;return h?r[me(0,h-1)]:o}function Xc(r,h){return Gu(er(r),oo(h,0,r.length))}function Ou(r){return Gu(er(r))}function nh(r,h,g){(g!==o&&!Fs(r[h],g)||g===o&&!(h in r))&&ks(r,h,g)}function Ca(r,h,g){var O=r[h];(!(Ti.call(r,h)&&Fs(O,g))||g===o&&!(h in r))&&ks(r,h,g)}function yl(r,h){for(var g=r.length;g--;)if(Fs(r[g][0],h))return g;return-1}function Iu(r,h,g,O){return _n(r,function(Y,ut,_t){h(O,Y,g(Y),_t)}),O}function Wh(r,h){return r&&In(h,Jn(h),r)}function jh(r,h){return r&&In(h,Ur(h),r)}function ks(r,h,g){h=="__proto__"&&Io?Io(r,h,{configurable:!0,enumerable:!0,value:g,writable:!0}):r[h]=g}function Xh(r,h){for(var g=-1,O=h.length,Y=Zt(O),ut=r==null;++g<O;)Y[g]=ut?o:hf(r,h[g]);return Y}function oo(r,h,g){return r===r&&(g!==o&&(r=r<=g?r:g),h!==o&&(r=r>=h?r:h)),r}function wr(r,h,g,O,Y,ut){var _t,bt=h&I,Nt=h&k,se=h&D;if(g&&(_t=Y?g(r,O,Y,ut):g(r)),_t!==o)return _t;if(!wn(r))return r;var le=vi(r);if(le){if(_t=jg(r),!bt)return er(r,_t)}else{var de=mr(r),ze=de==mn||de==Qi;if(Da(r))return Bs(r,bt);if(de==pt||de==Yt||ze&&!Y){if(_t=Nt||ze?{}:Yp(r),!bt)return Nt?Bu(r,jh(_t,r)):Ms(r,Wh(_t,r))}else{if(!xi[de])return Y?r:{};_t=Xg(r,de,bt)}}ut||(ut=new Qr);var Je=ut.get(r);if(Je)return Je;ut.set(r,_t),Md(r)?r.forEach(function(ui){_t.add(wr(ui,h,g,ui,r,ut))}):wd(r)&&r.forEach(function(ui,Pi){_t.set(Pi,wr(ui,h,g,Pi,r,ut))});var hi=se?Nt?Yc:qc:Nt?Ur:Jn,Mi=le?o:hi(r);return Ji(Mi||r,function(ui,Pi){Mi&&(Pi=ui,ui=r[Pi]),Ca(_t,Pi,wr(ui,h,g,Pi,r,ut))}),_t}function Pa(r){var h=Jn(r);return function(g){return Du(g,r,h)}}function Du(r,h,g){var O=g.length;if(r==null)return!O;for(r=Ee(r);O--;){var Y=g[O],ut=h[Y],_t=r[Y];if(_t===o&&!(Y in r)||!ut(_t))return!1}return!0}function ws(r,h,g){if(typeof r!="function")throw new lr(m);return tu(function(){r.apply(o,g)},h)}function xl(r,h,g,O){var Y=-1,ut=el,_t=!0,bt=r.length,Nt=[],se=h.length;if(!bt)return Nt;g&&(h=Yi(h,Gn(g))),O?(ut=Xl,_t=!1):h.length>=d&&(ut=ds,_t=!1,h=new No(h));t:for(;++Y<bt;){var le=r[Y],de=g==null?le:g(le);if(le=O||le!==0?le:0,_t&&de===de){for(var ze=se;ze--;)if(h[ze]===de)continue t;Nt.push(le)}else ut(h,de,O)||Nt.push(le)}return Nt}var _n=ft(Nr),zu=ft(sh,!0);function Yn(r,h){var g=!0;return _n(r,function(O,Y,ut){return g=!!h(O,Y,ut),g}),g}function Ts(r,h,g){for(var O=-1,Y=r.length;++O<Y;){var ut=r[O],_t=h(ut);if(_t!=null&&(bt===o?_t===_t&&!ts(_t):g(_t,bt)))var bt=_t,Nt=ut}return Nt}function tr(r,h,g,O){var Y=r.length;for(g=wi(g),g<0&&(g=-g>Y?0:Y+g),O=O===o||O>Y?Y:wi(O),O<0&&(O+=Y),O=g>O?0:Ed(O);g<O;)r[g++]=h;return r}function Br(r,h){var g=[];return _n(r,function(O,Y,ut){h(O,Y,ut)&&g.push(O)}),g}function bn(r,h,g,O,Y){var ut=-1,_t=r.length;for(g||(g=Yg),Y||(Y=[]);++ut<_t;){var bt=r[ut];h>0&&g(bt)?h>1?bn(bt,h-1,g,O,Y):fs(Y,bt):O||(Y[Y.length]=bt)}return Y}var wl=Tt(),rh=Tt(!0);function Nr(r,h){return r&&wl(r,h,Jn)}function sh(r,h){return r&&rh(r,h,Jn)}function Fo(r,h){return Rr(h,function(g){return Wo(r[g])})}function ao(r,h){h=Ze(h,r);for(var g=0,O=h.length;r!=null&&g<O;)r=r[ho(h[g++])];return g&&g==O?r:o}function ku(r,h,g){var O=h(r);return vi(r)?O:fs(O,g(r))}function Zn(r){return r==null?r===o?ot:Wt:ys&&ys in Ee(r)?Hg(r):e0(r)}function oh(r,h){return r>h}function ah(r,h){return r!=null&&Ti.call(r,h)}function qh(r,h){return r!=null&&h in Ee(r)}function lh(r,h,g){return r>=Vn(h,g)&&r<vn(h,g)}function Tl(r,h,g){for(var O=g?Xl:el,Y=r[0].length,ut=r.length,_t=ut,bt=Zt(ut),Nt=1/0,se=[];_t--;){var le=r[_t];_t&&h&&(le=Yi(le,Gn(h))),Nt=Vn(le.length,Nt),bt[_t]=!g&&(h||Y>=120&&le.length>=120)?new No(_t&&le):o}le=r[0];var de=-1,ze=bt[0];t:for(;++de<Y&&se.length<Nt;){var Je=le[de],hi=h?h(Je):Je;if(Je=g||Je!==0?Je:0,!(ze?ds(ze,hi):O(se,hi,g))){for(_t=ut;--_t;){var Mi=bt[_t];if(!(Mi?ds(Mi,hi):O(r[_t],hi,g)))continue t}ze&&ze.push(hi),se.push(Je)}}return se}function t(r,h,g,O){return Nr(r,function(Y,ut,_t){h(O,g(Y),ut,_t)}),O}function e(r,h,g){h=Ze(h,r),r=Kp(r,h);var O=r==null?r:r[ho(Es(h))];return O==null?o:_r(O,r,g)}function i(r){return Ln(r)&&Zn(r)==Yt}function n(r){return Ln(r)&&Zn(r)==Gt}function s(r){return Ln(r)&&Zn(r)==Ge}function l(r,h,g,O,Y){return r===h?!0:r==null||h==null||!Ln(r)&&!Ln(h)?r!==r&&h!==h:f(r,h,g,O,l,Y)}function f(r,h,g,O,Y,ut){var _t=vi(r),bt=vi(h),Nt=_t?$e:mr(r),se=bt?$e:mr(h);Nt=Nt==Yt?pt:Nt,se=se==Yt?pt:se;var le=Nt==pt,de=se==pt,ze=Nt==se;if(ze&&Da(r)){if(!Da(h))return!1;_t=!0,le=!1}if(ze&&!le)return ut||(ut=new Qr),_t||ch(r)?jp(r,h,g,O,Y,ut):Ug(r,h,Nt,g,O,Y,ut);if(!(g&F)){var Je=le&&Ti.call(r,"__wrapped__"),hi=de&&Ti.call(h,"__wrapped__");if(Je||hi){var Mi=Je?r.value():r,ui=hi?h.value():h;return ut||(ut=new Qr),Y(Mi,ui,g,O,ut)}}return ze?(ut||(ut=new Qr),Gg(r,h,g,O,Y,ut)):!1}function p(r){return Ln(r)&&mr(r)==W}function v(r,h,g,O){var Y=g.length,ut=Y,_t=!O;if(r==null)return!ut;for(r=Ee(r);Y--;){var bt=g[Y];if(_t&&bt[2]?bt[1]!==r[bt[0]]:!(bt[0]in r))return!1}for(;++Y<ut;){bt=g[Y];var Nt=bt[0],se=r[Nt],le=bt[1];if(_t&&bt[2]){if(se===o&&!(Nt in r))return!1}else{var de=new Qr;if(O)var ze=O(se,le,Nt,r,h,de);if(!(ze===o?l(le,se,F|E,O,de):ze))return!1}}return!0}function w(r){if(!wn(r)||Jg(r))return!1;var h=Wo(r)?Os:go;return h.test(El(r))}function C(r){return Ln(r)&&Zn(r)==ie}function P(r){return Ln(r)&&mr(r)==Kt}function B(r){return Ln(r)&&qu(r.length)&&!!Xi[Zn(r)]}function H(r){return typeof r=="function"?r:r==null?Gr:typeof r=="object"?vi(r)?At(r[0],r[1]):gt(r):kd(r)}function q(r){if(!Qh(r))return bu(r);var h=[];for(var g in Ee(r))Ti.call(r,g)&&g!="constructor"&&h.push(g);return h}function K(r){if(!wn(r))return t0(r);var h=Qh(r),g=[];for(var O in r)O=="constructor"&&(h||!Ti.call(r,O))||g.push(O);return g}function rt(r,h){return r<h}function xt(r,h){var g=-1,O=Fr(r)?Zt(r.length):[];return _n(r,function(Y,ut,_t){O[++g]=h(Y,ut,_t)}),O}function gt(r){var h=Jc(r);return h.length==1&&h[0][2]?Jp(h[0][0],h[0][1]):function(g){return g===r||v(g,r,h)}}function At(r,h){return Kc(r)&&Zp(h)?Jp(ho(r),h):function(g){var O=hf(g,r);return O===o&&O===h?uf(g,r):l(h,O,F|E)}}function wt(r,h,g,O,Y){r!==h&&wl(h,function(ut,_t){if(Y||(Y=new Qr),wn(ut))Vt(r,h,_t,g,wt,O,Y);else{var bt=O?O(tf(r,_t),ut,_t+"",r,h,Y):o;bt===o&&(bt=ut),nh(r,_t,bt)}},Ur)}function Vt(r,h,g,O,Y,ut,_t){var bt=tf(r,g),Nt=tf(h,g),se=_t.get(Nt);if(se){nh(r,g,se);return}var le=ut?ut(bt,Nt,g+"",r,h,_t):o,de=le===o;if(de){var ze=vi(Nt),Je=!ze&&Da(Nt),hi=!ze&&!Je&&ch(Nt);le=Nt,ze||Je||hi?vi(bt)?le=bt:Dn(bt)?le=er(bt):Je?(de=!1,le=Bs(Nt,!0)):hi?(de=!1,le=Ml(Nt,!0)):le=[]:eu(Nt)||bl(Nt)?(le=bt,bl(bt)?le=bd(bt):(!wn(bt)||Wo(bt))&&(le=Yp(Nt))):de=!1}de&&(_t.set(Nt,le),Y(le,Nt,O,ut,_t),_t.delete(Nt)),nh(r,g,le)}function Z(r,h){var g=r.length;if(g)return h+=h<0?g:0,Vo(h,g)?r[h]:o}function st(r,h,g){h.length?h=Yi(h,function(ut){return vi(ut)?function(_t){return ao(_t,ut.length===1?ut[0]:ut)}:ut}):h=[Gr];var O=-1;h=Yi(h,Gn(oi()));var Y=xt(r,function(ut,_t,bt){var Nt=Yi(h,function(se){return se(ut)});return{criteria:Nt,index:++O,value:ut}});return Su(Y,function(ut,_t){return lo(ut,_t,g)})}function zt(r,h){return ee(r,h,function(g,O){return uf(r,O)})}function ee(r,h,g){for(var O=-1,Y=h.length,ut={};++O<Y;){var _t=h[O],bt=ao(r,_t);g(bt,_t)&&fi(ut,Ze(_t,r),bt)}return ut}function $t(r){return function(h){return ao(h,r)}}function qt(r,h,g,O){var Y=O?nl:Or,ut=-1,_t=h.length,bt=r;for(r===h&&(h=er(h)),g&&(bt=Yi(r,Gn(g)));++ut<_t;)for(var Nt=0,se=h[ut],le=g?g(se):se;(Nt=Y(bt,le,Nt,O))>-1;)bt!==r&&Oo.call(bt,Nt,1),Oo.call(r,Nt,1);return r}function Te(r,h){for(var g=r?h.length:0,O=g-1;g--;){var Y=h[g];if(g==O||Y!==ut){var ut=Y;Vo(Y)?Oo.call(r,Y,1):Wi(r,Y)}}return r}function me(r,h){return r+Do(th()*(h-r+1))}function Ie(r,h,g,O){for(var Y=-1,ut=vn(Is((h-r)/(g||1)),0),_t=Zt(ut);ut--;)_t[O?ut:++Y]=r,r+=g;return _t}function be(r,h){var g="";if(!r||h<1||h>fe)return g;do h%2&&(g+=r),h=Do(h/2),h&&(r+=r);while(h);return g}function ae(r,h){return ef($p(r,h,Gr),r+"")}function We(r){return Vh(fh(r))}function Qe(r,h){var g=fh(r);return Gu(g,oo(h,0,g.length))}function fi(r,h,g,O){if(!wn(r))return r;h=Ze(h,r);for(var Y=-1,ut=h.length,_t=ut-1,bt=r;bt!=null&&++Y<ut;){var Nt=ho(h[Y]),se=g;if(Nt==="__proto__"||Nt==="constructor"||Nt==="prototype")return r;if(Y!=_t){var le=bt[Nt];se=O?O(le,Nt,bt):o,se===o&&(se=wn(le)?le:Vo(h[Y+1])?[]:{})}Ca(bt,Nt,se),bt=bt[Nt]}return r}var An=fl?function(r,h){return fl.set(r,h),r}:Gr,yn=Io?function(r,h){return Io(r,"toString",{configurable:!0,enumerable:!1,value:ff(h),writable:!0})}:Gr;function qi(r){return Gu(fh(r))}function Vi(r,h,g){var O=-1,Y=r.length;h<0&&(h=-h>Y?0:Y+h),g=g>Y?Y:g,g<0&&(g+=Y),Y=h>g?0:g-h>>>0,h>>>=0;for(var ut=Zt(Y);++O<Y;)ut[O]=r[O+h];return ut}function sn(r,h){var g;return _n(r,function(O,Y,ut){return g=h(O,Y,ut),!g}),!!g}function Cn(r,h,g){var O=0,Y=r==null?O:r.length;if(typeof h=="number"&&h===h&&Y<=ke){for(;O<Y;){var ut=O+Y>>>1,_t=r[ut];_t!==null&&!ts(_t)&&(g?_t<=h:_t<h)?O=ut+1:Y=ut}return Y}return Ae(r,h,Gr,g)}function Ae(r,h,g,O){var Y=0,ut=r==null?0:r.length;if(ut===0)return 0;h=g(h);for(var _t=h!==h,bt=h===null,Nt=ts(h),se=h===o;Y<ut;){var le=Do((Y+ut)/2),de=g(r[le]),ze=de!==o,Je=de===null,hi=de===de,Mi=ts(de);if(_t)var ui=O||hi;else se?ui=hi&&(O||ze):bt?ui=hi&&ze&&(O||!Je):Nt?ui=hi&&ze&&!Je&&(O||!Mi):Je||Mi?ui=!1:ui=O?de<=h:de<h;ui?Y=le+1:ut=le}return Vn(ut,Bt)}function ti(r,h){for(var g=-1,O=r.length,Y=0,ut=[];++g<O;){var _t=r[g],bt=h?h(_t):_t;if(!g||!Fs(bt,Nt)){var Nt=bt;ut[Y++]=_t===0?0:_t}}return ut}function Ut(r){return typeof r=="number"?r:ts(r)?Ft:+r}function Ye(r){if(typeof r=="string")return r;if(vi(r))return Yi(r,Ye)+"";if(ts(r))return Gh?Gh.call(r):"";var h=r+"";return h=="0"&&1/r==-Ct?"-0":h}function ei(r,h,g){var O=-1,Y=el,ut=r.length,_t=!0,bt=[],Nt=bt;if(g)_t=!1,Y=Xl;else if(ut>=d){var se=h?null:Ia(r);if(se)return Ro(se);_t=!1,Y=ds,Nt=new No}else Nt=h?[]:bt;t:for(;++O<ut;){var le=r[O],de=h?h(le):le;if(le=g||le!==0?le:0,_t&&de===de){for(var ze=Nt.length;ze--;)if(Nt[ze]===de)continue t;h&&Nt.push(de),bt.push(le)}else Y(Nt,de,g)||(Nt!==bt&&Nt.push(de),bt.push(le))}return bt}function Wi(r,h){return h=Ze(h,r),r=Kp(r,h),r==null||delete r[ho(Es(h))]}function Ce(r,h,g,O){return fi(r,h,g(ao(r,h)),O)}function Xe(r,h,g,O){for(var Y=r.length,ut=O?Y:-1;(O?ut--:++ut<Y)&&h(r[ut],ut,r););return g?Vi(r,O?0:ut,O?ut+1:Y):Vi(r,O?ut+1:0,O?Y:ut)}function ri(r,h){var g=r;return g instanceof yi&&(g=g.value()),ql(h,function(O,Y){return Y.func.apply(Y.thisArg,fs([O],Y.args))},g)}function Ci(r,h,g){var O=r.length;if(O<2)return O?ei(r[0]):[];for(var Y=-1,ut=Zt(O);++Y<O;)for(var _t=r[Y],bt=-1;++bt<O;)bt!=Y&&(ut[Y]=xl(ut[Y]||_t,r[bt],h,g));return ei(bn(ut,1),h,g)}function Ai(r,h,g){for(var O=-1,Y=r.length,ut=h.length,_t={};++O<Y;){var bt=O<ut?h[O]:o;g(_t,r[O],bt)}return _t}function ne(r){return Dn(r)?r:[]}function ii(r){return typeof r=="function"?r:Gr}function Ze(r,h){return vi(r)?r:Kc(r,h)?[r]:id(Zi(r))}var li=ae;function xn(r,h,g){var O=r.length;return g=g===o?O:g,!h&&g>=O?r:Vi(r,h,g)}var Pn=$l||function(r){return gn.clearTimeout(r)};function Bs(r,h){if(h)return r.slice();var g=r.length,O=sl?sl(g):new r.constructor(g);return r.copy(O),O}function La(r){var h=new r.constructor(r.byteLength);return new tn(h).set(new tn(r)),h}function Yh(r,h){var g=h?La(r.buffer):r.buffer;return new r.constructor(g,r.byteOffset,r.byteLength)}function Ra(r){var h=new r.constructor(r.source,Gl.exec(r));return h.lastIndex=r.lastIndex,h}function Uo(r){return Bo?Ee(Bo.call(r)):{}}function Ml(r,h){var g=h?La(r.buffer):r.buffer;return new r.constructor(g,r.byteOffset,r.length)}function Go(r,h){if(r!==h){var g=r!==o,O=r===null,Y=r===r,ut=ts(r),_t=h!==o,bt=h===null,Nt=h===h,se=ts(h);if(!bt&&!se&&!ut&&r>h||ut&&_t&&Nt&&!bt&&!se||O&&_t&&Nt||!g&&Nt||!Y)return 1;if(!O&&!ut&&!se&&r<h||se&&g&&Y&&!O&&!ut||bt&&g&&Y||!_t&&Y||!Nt)return-1}return 0}function lo(r,h,g){for(var O=-1,Y=r.criteria,ut=h.criteria,_t=Y.length,bt=g.length;++O<_t;){var Nt=Go(Y[O],ut[O]);if(Nt){if(O>=bt)return Nt;var se=g[O];return Nt*(se=="desc"?-1:1)}}return r.index-h.index}function Zh(r,h,g,O){for(var Y=-1,ut=r.length,_t=g.length,bt=-1,Nt=h.length,se=vn(ut-_t,0),le=Zt(Nt+se),de=!O;++bt<Nt;)le[bt]=h[bt];for(;++Y<_t;)(de||Y<ut)&&(le[g[Y]]=r[Y]);for(;se--;)le[bt++]=r[Y++];return le}function Jh(r,h,g,O){for(var Y=-1,ut=r.length,_t=-1,bt=g.length,Nt=-1,se=h.length,le=vn(ut-bt,0),de=Zt(le+se),ze=!O;++Y<le;)de[Y]=r[Y];for(var Je=Y;++Nt<se;)de[Je+Nt]=h[Nt];for(;++_t<bt;)(ze||Y<ut)&&(de[Je+g[_t]]=r[Y++]);return de}function er(r,h){var g=-1,O=r.length;for(h||(h=Zt(O));++g<O;)h[g]=r[g];return h}function In(r,h,g,O){var Y=!g;g||(g={});for(var ut=-1,_t=h.length;++ut<_t;){var bt=h[ut],Nt=O?O(g[bt],r[bt],bt,g,r):o;Nt===o&&(Nt=r[bt]),Y?ks(g,bt,Nt):Ca(g,bt,Nt)}return g}function Ms(r,h){return In(r,$c(r),h)}function Bu(r,h){return In(r,Xp(r),h)}function Oa(r,h){return function(g,O){var Y=vi(g)?jl:Iu,ut=h?h():{};return Y(g,r,oi(O,2),ut)}}function Ns(r){return ae(function(h,g){var O=-1,Y=g.length,ut=Y>1?g[Y-1]:o,_t=Y>2?g[2]:o;for(ut=r.length>3&&typeof ut=="function"?(Y--,ut):o,_t&&Mr(g[0],g[1],_t)&&(ut=Y<3?o:ut,Y=1),h=Ee(h);++O<Y;){var bt=g[O];bt&&r(h,bt,O,ut)}return h})}function ft(r,h){return function(g,O){if(g==null)return g;if(!Fr(g))return r(g,O);for(var Y=g.length,ut=h?Y:-1,_t=Ee(g);(h?ut--:++ut<Y)&&O(_t[ut],ut,_t)!==!1;);return g}}function Tt(r){return function(h,g,O){for(var Y=-1,ut=Ee(h),_t=O(h),bt=_t.length;bt--;){var Nt=_t[r?bt:++Y];if(g(ut[Nt],Nt,ut)===!1)break}return h}}function mt(r,h,g){var O=h&L,Y=Ve(r);function ut(){var _t=this&&this!==gn&&this instanceof ut?Y:r;return _t.apply(O?g:this,arguments)}return ut}function Me(r){return function(h){h=Zi(h);var g=Ir(h)?ar(h):o,O=g?g[0]:h.charAt(0),Y=g?xn(g,1).join(""):h.slice(1);return O[r]()+Y}}function De(r){return function(h){return ql(Dd(Id(h).replace(oa,"")),r,"")}}function Ve(r){return function(){var h=arguments;switch(h.length){case 0:return new r;case 1:return new r(h[0]);case 2:return new r(h[0],h[1]);case 3:return new r(h[0],h[1],h[2]);case 4:return new r(h[0],h[1],h[2],h[3]);case 5:return new r(h[0],h[1],h[2],h[3],h[4]);case 6:return new r(h[0],h[1],h[2],h[3],h[4],h[5]);case 7:return new r(h[0],h[1],h[2],h[3],h[4],h[5],h[6])}var g=ro(r.prototype),O=r.apply(g,h);return wn(O)?O:g}}function Se(r,h,g){var O=Ve(r);function Y(){for(var ut=arguments.length,_t=Zt(ut),bt=ut,Nt=uh(Y);bt--;)_t[bt]=arguments[bt];var se=ut<3&&_t[0]!==Nt&&_t[ut-1]!==Nt?[]:Dr(_t,Nt);if(ut-=se.length,ut<g)return Kh(r,h,$i,Y.placeholder,o,_t,se,o,o,g-ut);var le=this&&this!==gn&&this instanceof Y?O:r;return _r(le,this,_t)}return Y}function Ke(r){return function(h,g,O){var Y=Ee(h);if(!Fr(h)){var ut=oi(g,3);h=Jn(h),g=function(bt){return ut(Y[bt],bt,Y)}}var _t=r(h,g,O);return _t>-1?Y[ut?h[_t]:_t]:o}}function Li(r){return Ho(function(h){var g=h.length,O=g,Y=qn.prototype.thru;for(r&&h.reverse();O--;){var ut=h[O];if(typeof ut!="function")throw new lr(m);if(Y&&!_t&&Fu(ut)=="wrapper")var _t=new qn([],!0)}for(O=_t?O:g;++O<g;){ut=h[O];var bt=Fu(ut),Nt=bt=="wrapper"?Zc(ut):o;Nt&&Qc(Nt[0])&&Nt[1]==(j|R|U|J)&&!Nt[4].length&&Nt[9]==1?_t=_t[Fu(Nt[0])].apply(_t,Nt[3]):_t=ut.length==1&&Qc(ut)?_t[bt]():_t.thru(ut)}return function(){var se=arguments,le=se[0];if(_t&&se.length==1&&vi(le))return _t.plant(le).value();for(var de=0,ze=g?h[de].apply(this,se):le;++de<g;)ze=h[de].call(this,ze);return ze}})}function $i(r,h,g,O,Y,ut,_t,bt,Nt,se){var le=h&j,de=h&L,ze=h&T,Je=h&(R|b),hi=h&$,Mi=ze?o:Ve(r);function ui(){for(var Pi=arguments.length,Fi=Zt(Pi),es=Pi;es--;)Fi[es]=arguments[es];if(Je)var Sr=uh(ui),is=ms(Fi,Sr);if(O&&(Fi=Zh(Fi,O,Y,Je)),ut&&(Fi=Jh(Fi,ut,_t,Je)),Pi-=is,Je&&Pi<se){var zn=Dr(Fi,Sr);return Kh(r,h,$i,ui.placeholder,g,Fi,zn,bt,Nt,se-Pi)}var Us=de?g:this,Xo=ze?Us[r]:r;return Pi=Fi.length,bt?Fi=i0(Fi,bt):hi&&Pi>1&&Fi.reverse(),le&&Nt<Pi&&(Fi.length=Nt),this&&this!==gn&&this instanceof ui&&(Xo=Mi||Ve(Xo)),Xo.apply(Us,Fi)}return ui}function ve(r,h){return function(g,O){return t(g,r,h(O),{})}}function Tr(r,h){return function(g,O){var Y;if(g===o&&O===o)return h;if(g!==o&&(Y=g),O!==o){if(Y===o)return O;typeof g=="string"||typeof O=="string"?(g=Ye(g),O=Ye(O)):(g=Ut(g),O=Ut(O)),Y=r(g,O)}return Y}}function Nn(r){return Ho(function(h){return h=Yi(h,Gn(oi())),ae(function(g){var O=this;return r(h,function(Y){return _r(Y,O,g)})})})}function an(r,h){h=h===o?" ":Ye(h);var g=h.length;if(g<2)return g?be(h,r):h;var O=be(h,Is(r/$r(h)));return Ir(h)?xn(ar(O),0,r).join(""):O.slice(0,r)}function dr(r,h,g,O){var Y=h&L,ut=Ve(r);function _t(){for(var bt=-1,Nt=arguments.length,se=-1,le=O.length,de=Zt(le+Nt),ze=this&&this!==gn&&this instanceof _t?ut:r;++se<le;)de[se]=O[se];for(;Nt--;)de[se++]=arguments[++bt];return _r(ze,Y?g:this,de)}return _t}function $h(r){return function(h,g,O){return O&&typeof O!="number"&&Mr(h,g,O)&&(g=O=o),h=jo(h),g===o?(g=h,h=0):g=jo(g),O=O===o?h<g?1:-1:jo(O),Ie(h,g,O,r)}}function Ss(r){return function(h,g){return typeof h=="string"&&typeof g=="string"||(h=bs(h),g=bs(g)),r(h,g)}}function Kh(r,h,g,O,Y,ut,_t,bt,Nt,se){var le=h&R,de=le?_t:o,ze=le?o:_t,Je=le?ut:o,hi=le?o:ut;h|=le?U:N,h&=~(le?N:U),h&M||(h&=~(L|T));var Mi=[r,h,Y,Je,de,hi,ze,bt,Nt,se],ui=g.apply(o,Mi);return Qc(r)&&Qp(ui,Mi),ui.placeholder=O,td(ui,r,h)}function hh(r){var h=fn[r];return function(g,O){if(g=bs(g),O=O==null?0:Vn(wi(O),292),O&&Ql(g)){var Y=(Zi(g)+"e").split("e"),ut=h(Y[0]+"e"+(+Y[1]+O));return Y=(Zi(ut)+"e").split("e"),+(Y[0]+"e"+(+Y[1]-O))}return h(g)}}var Ia=ko&&1/Ro(new ko([,-0]))[1]==Ct?function(r){return new ko(r)}:mf;function Nu(r){return function(h){var g=mr(h);return g==W?$n(h):g==Kt?Hn(h):Rs(h,r(h))}}function ir(r,h,g,O,Y,ut,_t,bt){var Nt=h&T;if(!Nt&&typeof r!="function")throw new lr(m);var se=O?O.length:0;if(se||(h&=~(U|N),O=Y=o),_t=_t===o?_t:vn(wi(_t),0),bt=bt===o?bt:wi(bt),se-=Y?Y.length:0,h&N){var le=O,de=Y;O=Y=o}var ze=Nt?o:Zc(r),Je=[r,h,g,O,Y,le,de,ut,_t,bt];if(ze&&Qg(Je,ze),r=Je[0],h=Je[1],g=Je[2],O=Je[3],Y=Je[4],bt=Je[9]=Je[9]===o?Nt?0:r.length:vn(Je[9]-se,0),!bt&&h&(R|b)&&(h&=~(R|b)),!h||h==L)var hi=mt(r,h,g);else h==R||h==b?hi=Se(r,h,bt):(h==U||h==(L|U))&&!Y.length?hi=dr(r,h,g,O):hi=$i.apply(o,Je);var Mi=ze?An:Qp;return td(Mi(hi,Je),r,h)}function Vp(r,h,g,O){return r===o||Fs(r,gs[g])&&!Ti.call(O,g)?h:r}function Wp(r,h,g,O,Y,ut){return wn(r)&&wn(h)&&(ut.set(h,r),wt(r,h,o,Wp,ut),ut.delete(h)),r}function Fg(r){return eu(r)?o:r}function jp(r,h,g,O,Y,ut){var _t=g&F,bt=r.length,Nt=h.length;if(bt!=Nt&&!(_t&&Nt>bt))return!1;var se=ut.get(r),le=ut.get(h);if(se&&le)return se==h&&le==r;var de=-1,ze=!0,Je=g&E?new No:o;for(ut.set(r,h),ut.set(h,r);++de<bt;){var hi=r[de],Mi=h[de];if(O)var ui=_t?O(Mi,hi,de,h,r,ut):O(hi,Mi,de,r,h,ut);if(ui!==o){if(ui)continue;ze=!1;break}if(Je){if(!Cs(h,function(Pi,Fi){if(!ds(Je,Fi)&&(hi===Pi||Y(hi,Pi,g,O,ut)))return Je.push(Fi)})){ze=!1;break}}else if(!(hi===Mi||Y(hi,Mi,g,O,ut))){ze=!1;break}}return ut.delete(r),ut.delete(h),ze}function Ug(r,h,g,O,Y,ut,_t){switch(g){case Xt:if(r.byteLength!=h.byteLength||r.byteOffset!=h.byteOffset)return!1;r=r.buffer,h=h.buffer;case Gt:return!(r.byteLength!=h.byteLength||!ut(new tn(r),new tn(h)));case Oe:case Ge:case Jt:return Fs(+r,+h);case Ii:return r.name==h.name&&r.message==h.message;case ie:case z:return r==h+"";case W:var bt=$n;case Kt:var Nt=O&F;if(bt||(bt=Ro),r.size!=h.size&&!Nt)return!1;var se=_t.get(r);if(se)return se==h;O|=E,_t.set(r,h);var le=jp(bt(r),bt(h),O,Y,ut,_t);return _t.delete(r),le;case Q:if(Bo)return Bo.call(r)==Bo.call(h)}return!1}function Gg(r,h,g,O,Y,ut){var _t=g&F,bt=qc(r),Nt=bt.length,se=qc(h),le=se.length;if(Nt!=le&&!_t)return!1;for(var de=Nt;de--;){var ze=bt[de];if(!(_t?ze in h:Ti.call(h,ze)))return!1}var Je=ut.get(r),hi=ut.get(h);if(Je&&hi)return Je==h&&hi==r;var Mi=!0;ut.set(r,h),ut.set(h,r);for(var ui=_t;++de<Nt;){ze=bt[de];var Pi=r[ze],Fi=h[ze];if(O)var es=_t?O(Fi,Pi,ze,h,r,ut):O(Pi,Fi,ze,r,h,ut);if(!(es===o?Pi===Fi||Y(Pi,Fi,g,O,ut):es)){Mi=!1;break}ui||(ui=ze=="constructor")}if(Mi&&!ui){var Sr=r.constructor,is=h.constructor;Sr!=is&&"constructor"in r&&"constructor"in h&&!(typeof Sr=="function"&&Sr instanceof Sr&&typeof is=="function"&&is instanceof is)&&(Mi=!1)}return ut.delete(r),ut.delete(h),Mi}function Ho(r){return ef($p(r,o,od),r+"")}function qc(r){return ku(r,Jn,$c)}function Yc(r){return ku(r,Ur,Xp)}var Zc=fl?function(r){return fl.get(r)}:mf;function Fu(r){for(var h=r.name+"",g=no[h],O=Ti.call(no,h)?g.length:0;O--;){var Y=g[O],ut=Y.func;if(ut==null||ut==r)return Y.name}return h}function uh(r){var h=Ti.call(it,"placeholder")?it:r;return h.placeholder}function oi(){var r=it.iteratee||pf;return r=r===pf?H:r,arguments.length?r(arguments[0],arguments[1]):r}function Uu(r,h){var g=r.__data__;return Zg(h)?g[typeof h=="string"?"string":"hash"]:g.map}function Jc(r){for(var h=Jn(r),g=h.length;g--;){var O=h[g],Y=r[O];h[g]=[O,Y,Zp(Y)]}return h}function Sl(r,h){var g=Co(r,h);return w(g)?g:o}function Hg(r){var h=Ti.call(r,ys),g=r[ys];try{r[ys]=o;var O=!0}catch{}var Y=cr.call(r);return O&&(h?r[ys]=g:delete r[ys]),Y}var $c=ll?function(r){return r==null?[]:(r=Ee(r),Rr(ll(r),function(h){return al.call(r,h)}))}:gf,Xp=ll?function(r){for(var h=[];r;)fs(h,$c(r)),r=_s(r);return h}:gf,mr=Zn;(ul&&mr(new ul(new ArrayBuffer(1)))!=Xt||zo&&mr(new zo)!=W||cl&&mr(cl.resolve())!=dt||ko&&mr(new ko)!=Kt||En&&mr(new En)!=nt)&&(mr=function(r){var h=Zn(r),g=h==pt?r.constructor:o,O=g?El(g):"";if(O)switch(O){case eh:return Xt;case Nh:return W;case Fh:return dt;case Uh:return Kt;case Au:return nt}return h});function Vg(r,h,g){for(var O=-1,Y=g.length;++O<Y;){var ut=g[O],_t=ut.size;switch(ut.type){case"drop":r+=_t;break;case"dropRight":h-=_t;break;case"take":h=Vn(h,r+_t);break;case"takeRight":r=vn(r,h-_t);break}}return{start:r,end:h}}function Wg(r){var h=r.match(qa);return h?h[1].split(hs):[]}function qp(r,h,g){h=Ze(h,r);for(var O=-1,Y=h.length,ut=!1;++O<Y;){var _t=ho(h[O]);if(!(ut=r!=null&&g(r,_t)))break;r=r[_t]}return ut||++O!=Y?ut:(Y=r==null?0:r.length,!!Y&&qu(Y)&&Vo(_t,Y)&&(vi(r)||bl(r)))}function jg(r){var h=r.length,g=new r.constructor(h);return h&&typeof r[0]=="string"&&Ti.call(r,"index")&&(g.index=r.index,g.input=r.input),g}function Yp(r){return typeof r.constructor=="function"&&!Qh(r)?ro(_s(r)):{}}function Xg(r,h,g){var O=r.constructor;switch(h){case Gt:return La(r);case Oe:case Ge:return new O(+r);case Xt:return Yh(r,g);case jt:case Ne:case Re:case ge:case we:case _i:case Si:case ni:case Ei:return Ml(r,g);case W:return new O;case Jt:case z:return new O(r);case ie:return Ra(r);case Kt:return new O;case Q:return Uo(r)}}function qg(r,h){var g=h.length;if(!g)return r;var O=g-1;return h[O]=(g>1?"& ":"")+h[O],h=h.join(g>2?", ":" "),r.replace(na,`{
2617
2617
  /* [wrapped with `+h+`] */
2618
- `)}function qg(r){return vi(r)||bl(r)||!!(xa&&r&&r[xa])}function Vo(r,h){var g=typeof r;return h=h??fe,!!h&&(g=="number"||g!="symbol"&&Hl.test(r))&&r>-1&&r%1==0&&r<h}function Mr(r,h,g){if(!wn(g))return!1;var O=typeof h;return(O=="number"?Fr(g)&&Vo(h,g.length):O=="string"&&h in g)?Fs(g[h],r):!1}function Kc(r,h){if(vi(r))return!1;var g=typeof r;return g=="number"||g=="symbol"||g=="boolean"||r==null||ts(r)?!0:vr.test(r)||!mo.test(r)||h!=null&&r in Ee(h)}function Yg(r){var h=typeof r;return h=="string"||h=="number"||h=="symbol"||h=="boolean"?r!=="__proto__":r===null}function Qc(r){var h=Fu(r),g=it[h];if(typeof g!="function"||!(h in yi.prototype))return!1;if(r===g)return!0;var O=Zc(g);return!!O&&r===O[0]}function Zg(r){return!!zr&&zr in r}var Jg=eo?Wo:vf;function Qh(r){var h=r&&r.constructor,g=typeof h=="function"&&h.prototype||gs;return r===g}function Yp(r){return r===r&&!wn(r)}function Zp(r,h){return function(g){return g==null?!1:g[r]===h&&(h!==o||r in Ee(g))}}function $g(r){var h=ju(r,function(O){return g.size===S&&g.clear(),O}),g=h.cache;return h}function Kg(r,h){var g=r[1],O=h[1],Y=g|O,ut=Y<(P|T|j),_t=O==j&&g==R||O==j&&g==J&&r[7].length<=h[8]||O==(j|J)&&h[7].length<=h[8]&&g==R;if(!(ut||_t))return r;O&P&&(r[2]=h[2],Y|=g&P?0:M);var bt=h[3];if(bt){var Nt=r[3];r[3]=Nt?Zh(Nt,bt,h[4]):bt,r[4]=Nt?Dr(r[3],A):h[4]}return bt=h[5],bt&&(Nt=r[5],r[5]=Nt?Jh(Nt,bt,h[6]):bt,r[6]=Nt?Dr(r[5],A):h[6]),bt=h[7],bt&&(r[7]=bt),O&j&&(r[8]=r[8]==null?h[8]:Vn(r[8],h[8])),r[9]==null&&(r[9]=h[9]),r[0]=h[0],r[1]=Y,r}function Qg(r){var h=[];if(r!=null)for(var g in Ee(r))h.push(g);return h}function t0(r){return cr.call(r)}function Jp(r,h,g){return h=vn(h===o?r.length-1:h,0),function(){for(var O=arguments,Y=-1,ut=vn(O.length-h,0),_t=Zt(ut);++Y<ut;)_t[Y]=O[h+Y];Y=-1;for(var bt=Zt(h+1);++Y<h;)bt[Y]=O[Y];return bt[h]=g(_t),_r(r,this,bt)}}function $p(r,h){return h.length<2?r:ao(r,Vi(h,0,-1))}function e0(r,h){for(var g=r.length,O=Vn(h.length,g),Y=er(r);O--;){var ut=h[O];r[O]=Vo(ut,g)?Y[ut]:o}return r}function tf(r,h){if(!(h==="constructor"&&typeof r[h]=="function")&&h!="__proto__")return r[h]}var Kp=td(An),tu=Dh||function(r,h){return gn.setTimeout(r,h)},ef=td(yn);function Qp(r,h,g){var O=h+"";return ef(r,Xg(O,i0(Vg(O),g)))}function td(r){var h=0,g=0;return function(){var O=hl(),Y=yt-(O-g);if(g=O,Y>0){if(++h>=et)return arguments[0]}else h=0;return r.apply(o,arguments)}}function Gu(r,h){var g=-1,O=r.length,Y=O-1;for(h=h===o?O:h;++g<h;){var ut=me(g,Y),_t=r[ut];r[ut]=r[g],r[g]=_t}return r.length=h,r}var ed=$g(function(r){var h=[];return r.charCodeAt(0)===46&&h.push(""),r.replace(ia,function(g,O,Y,ut){h.push(Y?ut.replace(sa,"$1"):O||g)}),h});function ho(r){if(typeof r=="string"||ts(r))return r;var h=r+"";return h=="0"&&1/r==-Ct?"-0":h}function El(r){if(r!=null){try{return hr.call(r)}catch{}try{return r+""}catch{}}return""}function i0(r,h){return Ji(ce,function(g){var O="_."+g[0];h&g[1]&&!el(r,O)&&r.push(O)}),r.sort()}function id(r){if(r instanceof yi)return r.clone();var h=new qn(r.__wrapped__,r.__chain__);return h.__actions__=er(r.__actions__),h.__index__=r.__index__,h.__values__=r.__values__,h}function n0(r,h,g){(g?Mr(r,h,g):h===o)?h=1:h=vn(wi(h),0);var O=r==null?0:r.length;if(!O||h<1)return[];for(var Y=0,ut=0,_t=Zt(Is(O/h));Y<O;)_t[ut++]=Vi(r,Y,Y+=h);return _t}function r0(r){for(var h=-1,g=r==null?0:r.length,O=0,Y=[];++h<g;){var ut=r[h];ut&&(Y[O++]=ut)}return Y}function s0(){var r=arguments.length;if(!r)return[];for(var h=Zt(r-1),g=arguments[0],O=r;O--;)h[O-1]=arguments[O];return fs(vi(g)?er(g):[g],bn(h,1))}var o0=ae(function(r,h){return Dn(r)?xl(r,bn(h,1,Dn,!0)):[]}),a0=ae(function(r,h){var g=Es(h);return Dn(g)&&(g=o),Dn(r)?xl(r,bn(h,1,Dn,!0),oi(g,2)):[]}),l0=ae(function(r,h){var g=Es(h);return Dn(g)&&(g=o),Dn(r)?xl(r,bn(h,1,Dn,!0),o,g):[]});function h0(r,h,g){var O=r==null?0:r.length;return O?(h=g||h===o?1:wi(h),Vi(r,h<0?0:h,O)):[]}function u0(r,h,g){var O=r==null?0:r.length;return O?(h=g||h===o?1:wi(h),h=O-h,Vi(r,0,h<0?0:h)):[]}function c0(r,h){return r&&r.length?Xe(r,oi(h,3),!0,!0):[]}function f0(r,h){return r&&r.length?Xe(r,oi(h,3),!0):[]}function p0(r,h,g,O){var Y=r==null?0:r.length;return Y?(g&&typeof g!="number"&&Mr(r,h,g)&&(g=0,O=Y),tr(r,h,g,O)):[]}function nd(r,h,g){var O=r==null?0:r.length;if(!O)return-1;var Y=g==null?0:wi(g);return Y<0&&(Y=vn(O+Y,0)),Zs(r,oi(h,3),Y)}function rd(r,h,g){var O=r==null?0:r.length;if(!O)return-1;var Y=O-1;return g!==o&&(Y=wi(g),Y=g<0?vn(O+Y,0):Vn(Y,O-1)),Zs(r,oi(h,3),Y,!0)}function sd(r){var h=r==null?0:r.length;return h?bn(r,1):[]}function d0(r){var h=r==null?0:r.length;return h?bn(r,Ct):[]}function m0(r,h){var g=r==null?0:r.length;return g?(h=h===o?1:wi(h),bn(r,h)):[]}function g0(r){for(var h=-1,g=r==null?0:r.length,O={};++h<g;){var Y=r[h];O[Y[0]]=Y[1]}return O}function od(r){return r&&r.length?r[0]:o}function v0(r,h,g){var O=r==null?0:r.length;if(!O)return-1;var Y=g==null?0:wi(g);return Y<0&&(Y=vn(O+Y,0)),Or(r,h,Y)}function _0(r){var h=r==null?0:r.length;return h?Vi(r,0,-1):[]}var y0=ae(function(r){var h=Yi(r,ne);return h.length&&h[0]===r[0]?Tl(h):[]}),x0=ae(function(r){var h=Es(r),g=Yi(r,ne);return h===Es(g)?h=o:g.pop(),g.length&&g[0]===r[0]?Tl(g,oi(h,2)):[]}),w0=ae(function(r){var h=Es(r),g=Yi(r,ne);return h=typeof h=="function"?h:o,h&&g.pop(),g.length&&g[0]===r[0]?Tl(g,o,h):[]});function T0(r,h){return r==null?"":kh.call(r,h)}function Es(r){var h=r==null?0:r.length;return h?r[h-1]:o}function M0(r,h,g){var O=r==null?0:r.length;if(!O)return-1;var Y=O;return g!==o&&(Y=wi(g),Y=Y<0?vn(O+Y,0):Vn(Y,O-1)),h===h?Zl(r,h,Y):Zs(r,Mo,Y,!0)}function S0(r,h){return r&&r.length?Z(r,wi(h)):o}var E0=ae(ad);function ad(r,h){return r&&r.length&&h&&h.length?qt(r,h):r}function b0(r,h,g){return r&&r.length&&h&&h.length?qt(r,h,oi(g,2)):r}function A0(r,h,g){return r&&r.length&&h&&h.length?qt(r,h,o,g):r}var C0=Ho(function(r,h){var g=r==null?0:r.length,O=Xh(r,h);return Te(r,Yi(h,function(Y){return Vo(Y,g)?+Y:Y}).sort(Go)),O});function P0(r,h){var g=[];if(!(r&&r.length))return g;var O=-1,Y=[],ut=r.length;for(h=oi(h,3);++O<ut;){var _t=r[O];h(_t,O,r)&&(g.push(_t),Y.push(O))}return Te(r,Y),g}function nf(r){return r==null?r:wa.call(r)}function L0(r,h,g){var O=r==null?0:r.length;return O?(g&&typeof g!="number"&&Mr(r,h,g)?(h=0,g=O):(h=h==null?0:wi(h),g=g===o?O:wi(g)),Vi(r,h,g)):[]}function R0(r,h){return Cn(r,h)}function O0(r,h,g){return Ae(r,h,oi(g,2))}function I0(r,h){var g=r==null?0:r.length;if(g){var O=Cn(r,h);if(O<g&&Fs(r[O],h))return O}return-1}function D0(r,h){return Cn(r,h,!0)}function z0(r,h,g){return Ae(r,h,oi(g,2),!0)}function k0(r,h){var g=r==null?0:r.length;if(g){var O=Cn(r,h,!0)-1;if(Fs(r[O],h))return O}return-1}function B0(r){return r&&r.length?ti(r):[]}function N0(r,h){return r&&r.length?ti(r,oi(h,2)):[]}function F0(r){var h=r==null?0:r.length;return h?Vi(r,1,h):[]}function U0(r,h,g){return r&&r.length?(h=g||h===o?1:wi(h),Vi(r,0,h<0?0:h)):[]}function G0(r,h,g){var O=r==null?0:r.length;return O?(h=g||h===o?1:wi(h),h=O-h,Vi(r,h<0?0:h,O)):[]}function H0(r,h){return r&&r.length?Xe(r,oi(h,3),!1,!0):[]}function V0(r,h){return r&&r.length?Xe(r,oi(h,3)):[]}var W0=ae(function(r){return ei(bn(r,1,Dn,!0))}),j0=ae(function(r){var h=Es(r);return Dn(h)&&(h=o),ei(bn(r,1,Dn,!0),oi(h,2))}),X0=ae(function(r){var h=Es(r);return h=typeof h=="function"?h:o,ei(bn(r,1,Dn,!0),o,h)});function q0(r){return r&&r.length?ei(r):[]}function Y0(r,h){return r&&r.length?ei(r,oi(h,2)):[]}function Z0(r,h){return h=typeof h=="function"?h:o,r&&r.length?ei(r,o,h):[]}function rf(r){if(!(r&&r.length))return[];var h=0;return r=Rr(r,function(g){if(Dn(g))return h=vn(g.length,h),!0}),Ls(h,function(g){return Yi(r,Js(g))})}function ld(r,h){if(!(r&&r.length))return[];var g=rf(r);return h==null?g:Yi(g,function(O){return _r(h,o,O)})}var J0=ae(function(r,h){return Dn(r)?xl(r,h):[]}),$0=ae(function(r){return Ci(Rr(r,Dn))}),K0=ae(function(r){var h=Es(r);return Dn(h)&&(h=o),Ci(Rr(r,Dn),oi(h,2))}),Q0=ae(function(r){var h=Es(r);return h=typeof h=="function"?h:o,Ci(Rr(r,Dn),o,h)}),tv=ae(rf);function ev(r,h){return Ai(r||[],h||[],Ca)}function iv(r,h){return Ai(r||[],h||[],fi)}var nv=ae(function(r){var h=r.length,g=h>1?r[h-1]:o;return g=typeof g=="function"?(r.pop(),g):o,ld(r,g)});function hd(r){var h=it(r);return h.__chain__=!0,h}function rv(r,h){return h(r),r}function Hu(r,h){return h(r)}var sv=Ho(function(r){var h=r.length,g=h?r[0]:0,O=this.__wrapped__,Y=function(ut){return Xh(ut,r)};return h>1||this.__actions__.length||!(O instanceof yi)||!Vo(g)?this.thru(Y):(O=O.slice(g,+g+(h?1:0)),O.__actions__.push({func:Hu,args:[Y],thisArg:o}),new qn(O,this.__chain__).thru(function(ut){return h&&!ut.length&&ut.push(o),ut}))});function ov(){return hd(this)}function av(){return new qn(this.value(),this.__chain__)}function lv(){this.__values__===o&&(this.__values__=Md(this.value()));var r=this.__index__>=this.__values__.length,h=r?o:this.__values__[this.__index__++];return{done:r,value:h}}function hv(){return this}function uv(r){for(var h,g=this;g instanceof Ma;){var O=id(g);O.__index__=0,O.__values__=o,h?Y.__wrapped__=O:h=O;var Y=O;g=g.__wrapped__}return Y.__wrapped__=r,h}function cv(){var r=this.__wrapped__;if(r instanceof yi){var h=r;return this.__actions__.length&&(h=new yi(this)),h=h.reverse(),h.__actions__.push({func:Hu,args:[nf],thisArg:o}),new qn(h,this.__chain__)}return this.thru(nf)}function fv(){return ri(this.__wrapped__,this.__actions__)}var pv=Oa(function(r,h,g){Ti.call(r,g)?++r[g]:ks(r,g,1)});function dv(r,h,g){var O=vi(r)?Ih:Yn;return g&&Mr(r,h,g)&&(h=o),O(r,oi(h,3))}function mv(r,h){var g=vi(r)?Rr:Br;return g(r,oi(h,3))}var gv=Ke(nd),vv=Ke(rd);function _v(r,h){return bn(Vu(r,h),1)}function yv(r,h){return bn(Vu(r,h),Ct)}function xv(r,h,g){return g=g===o?1:wi(g),bn(Vu(r,h),g)}function ud(r,h){var g=vi(r)?Ji:_n;return g(r,oi(h,3))}function cd(r,h){var g=vi(r)?wo:zu;return g(r,oi(h,3))}var wv=Oa(function(r,h,g){Ti.call(r,g)?r[g].push(h):ks(r,g,[h])});function Tv(r,h,g,O){r=Fr(r)?r:fh(r),g=g&&!O?wi(g):0;var Y=r.length;return g<0&&(g=vn(Y+g,0)),Yu(r)?g<=Y&&r.indexOf(h,g)>-1:!!Y&&Or(r,h,g)>-1}var Mv=ae(function(r,h,g){var O=-1,Y=typeof h=="function",ut=Fr(r)?Zt(r.length):[];return _n(r,function(_t){ut[++O]=Y?_r(h,_t,g):e(_t,h,g)}),ut}),Sv=Oa(function(r,h,g){ks(r,g,h)});function Vu(r,h){var g=vi(r)?Yi:xt;return g(r,oi(h,3))}function Ev(r,h,g,O){return r==null?[]:(vi(h)||(h=h==null?[]:[h]),g=O?o:g,vi(g)||(g=g==null?[]:[g]),st(r,h,g))}var bv=Oa(function(r,h,g){r[g?0:1].push(h)},function(){return[[],[]]});function Av(r,h,g){var O=vi(r)?ql:$s,Y=arguments.length<3;return O(r,oi(h,4),g,Y,_n)}function Cv(r,h,g){var O=vi(r)?Tu:$s,Y=arguments.length<3;return O(r,oi(h,4),g,Y,zu)}function Pv(r,h){var g=vi(r)?Rr:Br;return g(r,Xu(oi(h,3)))}function Lv(r){var h=vi(r)?Vh:We;return h(r)}function Rv(r,h,g){(g?Mr(r,h,g):h===o)?h=1:h=wi(h);var O=vi(r)?Xc:Qe;return O(r,h)}function Ov(r){var h=vi(r)?Ou:qi;return h(r)}function Iv(r){if(r==null)return 0;if(Fr(r))return Yu(r)?$r(r):r.length;var h=mr(r);return h==W||h==Kt?r.size:q(r).length}function Dv(r,h,g){var O=vi(r)?Cs:sn;return g&&Mr(r,h,g)&&(h=o),O(r,oi(h,3))}var zv=ae(function(r,h){if(r==null)return[];var g=h.length;return g>1&&Mr(r,h[0],h[1])?h=[]:g>2&&Mr(h[0],h[1],h[2])&&(h=[h[0]]),st(r,bn(h,1),[])}),Wu=Kl||function(){return gn.Date.now()};function kv(r,h){if(typeof h!="function")throw new lr(m);return r=wi(r),function(){if(--r<1)return h.apply(this,arguments)}}function fd(r,h,g){return h=g?o:h,h=r&&h==null?r.length:h,ir(r,j,o,o,o,o,h)}function pd(r,h){var g;if(typeof h!="function")throw new lr(m);return r=wi(r),function(){return--r>0&&(g=h.apply(this,arguments)),r<=1&&(h=o),g}}var sf=ae(function(r,h,g){var O=P;if(g.length){var Y=Dr(g,uh(sf));O|=U}return ir(r,O,h,g,Y)}),dd=ae(function(r,h,g){var O=P|T;if(g.length){var Y=Dr(g,uh(dd));O|=U}return ir(h,O,r,g,Y)});function md(r,h,g){h=g?o:h;var O=ir(r,R,o,o,o,o,o,h);return O.placeholder=md.placeholder,O}function gd(r,h,g){h=g?o:h;var O=ir(r,b,o,o,o,o,o,h);return O.placeholder=gd.placeholder,O}function vd(r,h,g){var O,Y,ut,_t,bt,Nt,se=0,le=!1,de=!1,ze=!0;if(typeof r!="function")throw new lr(m);h=bs(h)||0,wn(g)&&(le=!!g.leading,de="maxWait"in g,ut=de?vn(bs(g.maxWait)||0,h):ut,ze="trailing"in g?!!g.trailing:ze);function Je(zn){var Us=O,Xo=Y;return O=Y=o,se=zn,_t=r.apply(Xo,Us),_t}function hi(zn){return se=zn,bt=tu(Pi,h),le?Je(zn):_t}function Mi(zn){var Us=zn-Nt,Xo=zn-se,kd=h-Us;return de?Vn(kd,ut-Xo):kd}function ui(zn){var Us=zn-Nt,Xo=zn-se;return Nt===o||Us>=h||Us<0||de&&Xo>=ut}function Pi(){var zn=Wu();if(ui(zn))return Fi(zn);bt=tu(Pi,Mi(zn))}function Fi(zn){return bt=o,ze&&O?Je(zn):(O=Y=o,_t)}function es(){bt!==o&&Pn(bt),se=0,O=Nt=Y=bt=o}function Sr(){return bt===o?_t:Fi(Wu())}function is(){var zn=Wu(),Us=ui(zn);if(O=arguments,Y=this,Nt=zn,Us){if(bt===o)return hi(Nt);if(de)return Pn(bt),bt=tu(Pi,h),Je(Nt)}return bt===o&&(bt=tu(Pi,h)),_t}return is.cancel=es,is.flush=Sr,is}var Bv=ae(function(r,h){return ws(r,1,h)}),Nv=ae(function(r,h,g){return ws(r,bs(h)||0,g)});function Fv(r){return ir(r,$)}function ju(r,h){if(typeof r!="function"||h!=null&&typeof h!="function")throw new lr(m);var g=function(){var O=arguments,Y=h?h.apply(this,O):O[0],ut=g.cache;if(ut.has(Y))return ut.get(Y);var _t=r.apply(this,O);return g.cache=ut.set(Y,_t)||ut,_t};return g.cache=new(ju.Cache||xr),g}ju.Cache=xr;function Xu(r){if(typeof r!="function")throw new lr(m);return function(){var h=arguments;switch(h.length){case 0:return!r.call(this);case 1:return!r.call(this,h[0]);case 2:return!r.call(this,h[0],h[1]);case 3:return!r.call(this,h[0],h[1],h[2])}return!r.apply(this,h)}}function Uv(r){return pd(2,r)}var Gv=li(function(r,h){h=h.length==1&&vi(h[0])?Yi(h[0],Gn(oi())):Yi(bn(h,1),Gn(oi()));var g=h.length;return ae(function(O){for(var Y=-1,ut=Vn(O.length,g);++Y<ut;)O[Y]=h[Y].call(this,O[Y]);return _r(r,this,O)})}),of=ae(function(r,h){var g=Dr(h,uh(of));return ir(r,U,o,h,g)}),_d=ae(function(r,h){var g=Dr(h,uh(_d));return ir(r,F,o,h,g)}),Hv=Ho(function(r,h){return ir(r,J,o,o,o,h)});function Vv(r,h){if(typeof r!="function")throw new lr(m);return h=h===o?h:wi(h),ae(r,h)}function Wv(r,h){if(typeof r!="function")throw new lr(m);return h=h==null?0:vn(wi(h),0),ae(function(g){var O=g[h],Y=xn(g,0,h);return O&&fs(Y,O),_r(r,this,Y)})}function jv(r,h,g){var O=!0,Y=!0;if(typeof r!="function")throw new lr(m);return wn(g)&&(O="leading"in g?!!g.leading:O,Y="trailing"in g?!!g.trailing:Y),vd(r,h,{leading:O,maxWait:h,trailing:Y})}function Xv(r){return fd(r,1)}function qv(r,h){return of(ii(h),r)}function Yv(){if(!arguments.length)return[];var r=arguments[0];return vi(r)?r:[r]}function Zv(r){return wr(r,D)}function Jv(r,h){return h=typeof h=="function"?h:o,wr(r,D,h)}function $v(r){return wr(r,I|D)}function Kv(r,h){return h=typeof h=="function"?h:o,wr(r,I|D,h)}function Qv(r,h){return h==null||Du(r,h,Jn(h))}function Fs(r,h){return r===h||r!==r&&h!==h}var t_=Ss(oh),e_=Ss(function(r,h){return r>=h}),bl=i(function(){return arguments}())?i:function(r){return Ln(r)&&Ti.call(r,"callee")&&!al.call(r,"callee")},vi=Zt.isArray,i_=Oh?Gn(Oh):n;function Fr(r){return r!=null&&qu(r.length)&&!Wo(r)}function Dn(r){return Ln(r)&&Fr(r)}function n_(r){return r===!0||r===!1||Ln(r)&&Zn(r)==Oe}var Da=zh||vf,r_=pa?Gn(pa):s;function s_(r){return Ln(r)&&r.nodeType===1&&!eu(r)}function o_(r){if(r==null)return!0;if(Fr(r)&&(vi(r)||typeof r=="string"||typeof r.splice=="function"||Da(r)||ch(r)||bl(r)))return!r.length;var h=mr(r);if(h==W||h==Kt)return!r.size;if(Qh(r))return!q(r).length;for(var g in r)if(Ti.call(r,g))return!1;return!0}function a_(r,h){return a(r,h)}function l_(r,h,g){g=typeof g=="function"?g:o;var O=g?g(r,h):o;return O===o?a(r,h,o,g):!!O}function af(r){if(!Ln(r))return!1;var h=Zn(r);return h==Ii||h==di||typeof r.message=="string"&&typeof r.name=="string"&&!eu(r)}function h_(r){return typeof r=="number"&&Ql(r)}function Wo(r){if(!wn(r))return!1;var h=Zn(r);return h==mn||h==Qi||h==Oi||h==Dt}function yd(r){return typeof r=="number"&&r==wi(r)}function qu(r){return typeof r=="number"&&r>-1&&r%1==0&&r<=fe}function wn(r){var h=typeof r;return r!=null&&(h=="object"||h=="function")}function Ln(r){return r!=null&&typeof r=="object"}var xd=da?Gn(da):p;function u_(r,h){return r===h||v(r,h,Jc(h))}function c_(r,h,g){return g=typeof g=="function"?g:o,v(r,h,Jc(h),g)}function f_(r){return wd(r)&&r!=+r}function p_(r){if(Jg(r))throw new ai(u);return w(r)}function d_(r){return r===null}function m_(r){return r==null}function wd(r){return typeof r=="number"||Ln(r)&&Zn(r)==Jt}function eu(r){if(!Ln(r)||Zn(r)!=pt)return!1;var h=_s(r);if(h===null)return!0;var g=Ti.call(h,"constructor")&&h.constructor;return typeof g=="function"&&g instanceof g&&hr.call(g)==vs}var lf=xu?Gn(xu):C;function g_(r){return yd(r)&&r>=-fe&&r<=fe}var Td=wu?Gn(wu):L;function Yu(r){return typeof r=="string"||!vi(r)&&Ln(r)&&Zn(r)==z}function ts(r){return typeof r=="symbol"||Ln(r)&&Zn(r)==Q}var ch=Wl?Gn(Wl):B;function v_(r){return r===o}function __(r){return Ln(r)&&mr(r)==nt}function y_(r){return Ln(r)&&Zn(r)==vt}var x_=Ss(rt),w_=Ss(function(r,h){return r<=h});function Md(r){if(!r)return[];if(Fr(r))return Yu(r)?ar(r):er(r);if(io&&r[io])return Lo(r[io]());var h=mr(r),g=h==W?$n:h==Kt?Ro:fh;return g(r)}function jo(r){if(!r)return r===0?r:0;if(r=bs(r),r===Ct||r===-Ct){var h=r<0?-1:1;return h*re}return r===r?r:0}function wi(r){var h=jo(r),g=h%1;return h===h?g?h-g:h:0}function Sd(r){return r?oo(wi(r),0,Ot):0}function bs(r){if(typeof r=="number")return r;if(ts(r))return Ft;if(wn(r)){var h=typeof r.valueOf=="function"?r.valueOf():r;r=wn(h)?h+"":h}if(typeof r!="string")return r===0?r:+r;r=ga(r);var g=Lh.test(r);return g||vo.test(r)?ua(r.slice(2),g?2:8):Ph.test(r)?Ft:+r}function Ed(r){return In(r,Ur(r))}function T_(r){return r?oo(wi(r),-fe,fe):r===0?r:0}function Zi(r){return r==null?"":Ye(r)}var M_=Ns(function(r,h){if(Qh(h)||Fr(h)){In(h,Jn(h),r);return}for(var g in h)Ti.call(h,g)&&Ca(r,g,h[g])}),bd=Ns(function(r,h){In(h,Ur(h),r)}),Zu=Ns(function(r,h,g,O){In(h,Ur(h),r,O)}),S_=Ns(function(r,h,g,O){In(h,Jn(h),r,O)}),E_=Ho(Xh);function b_(r,h){var g=ro(r);return h==null?g:Wh(g,h)}var A_=ae(function(r,h){r=Ee(r);var g=-1,O=h.length,Y=O>2?h[2]:o;for(Y&&Mr(h[0],h[1],Y)&&(O=1);++g<O;)for(var ut=h[g],_t=Ur(ut),bt=-1,Nt=_t.length;++bt<Nt;){var se=_t[bt],le=r[se];(le===o||Fs(le,gs[se])&&!Ti.call(r,se))&&(r[se]=ut[se])}return r}),C_=ae(function(r){return r.push(o,Vp),_r(Ad,o,r)});function P_(r,h){return To(r,oi(h,3),Nr)}function L_(r,h){return To(r,oi(h,3),sh)}function R_(r,h){return r==null?r:wl(r,oi(h,3),Ur)}function O_(r,h){return r==null?r:rh(r,oi(h,3),Ur)}function I_(r,h){return r&&Nr(r,oi(h,3))}function D_(r,h){return r&&sh(r,oi(h,3))}function z_(r){return r==null?[]:Fo(r,Jn(r))}function k_(r){return r==null?[]:Fo(r,Ur(r))}function hf(r,h,g){var O=r==null?o:ao(r,h);return O===o?g:O}function B_(r,h){return r!=null&&Xp(r,h,ah)}function uf(r,h){return r!=null&&Xp(r,h,qh)}var N_=ve(function(r,h,g){h!=null&&typeof h.toString!="function"&&(h=cr.call(h)),r[h]=g},ff(Gr)),F_=ve(function(r,h,g){h!=null&&typeof h.toString!="function"&&(h=cr.call(h)),Ti.call(r,h)?r[h].push(g):r[h]=[g]},oi),U_=ae(e);function Jn(r){return Fr(r)?Ru(r):q(r)}function Ur(r){return Fr(r)?Ru(r,!0):K(r)}function G_(r,h){var g={};return h=oi(h,3),Nr(r,function(O,Y,ut){ks(g,h(O,Y,ut),O)}),g}function H_(r,h){var g={};return h=oi(h,3),Nr(r,function(O,Y,ut){ks(g,Y,h(O,Y,ut))}),g}var V_=Ns(function(r,h,g){wt(r,h,g)}),Ad=Ns(function(r,h,g,O){wt(r,h,g,O)}),W_=Ho(function(r,h){var g={};if(r==null)return g;var O=!1;h=Yi(h,function(ut){return ut=Ze(ut,r),O||(O=ut.length>1),ut}),In(r,Yc(r),g),O&&(g=wr(g,I|k|D,Ng));for(var Y=h.length;Y--;)Wi(g,h[Y]);return g});function j_(r,h){return Cd(r,Xu(oi(h)))}var X_=Ho(function(r,h){return r==null?{}:zt(r,h)});function Cd(r,h){if(r==null)return{};var g=Yi(Yc(r),function(O){return[O]});return h=oi(h),ee(r,g,function(O,Y){return h(O,Y[0])})}function q_(r,h,g){h=Ze(h,r);var O=-1,Y=h.length;for(Y||(Y=1,r=o);++O<Y;){var ut=r==null?o:r[ho(h[O])];ut===o&&(O=Y,ut=g),r=Wo(ut)?ut.call(r):ut}return r}function Y_(r,h,g){return r==null?r:fi(r,h,g)}function Z_(r,h,g,O){return O=typeof O=="function"?O:o,r==null?r:fi(r,h,g,O)}var Pd=Nu(Jn),Ld=Nu(Ur);function J_(r,h,g){var O=vi(r),Y=O||Da(r)||ch(r);if(h=oi(h,4),g==null){var ut=r&&r.constructor;Y?g=O?new ut:[]:wn(r)?g=Wo(ut)?ro(_s(r)):{}:g={}}return(Y?Ji:Nr)(r,function(_t,bt,Nt){return h(g,_t,bt,Nt)}),g}function $_(r,h){return r==null?!0:Wi(r,h)}function K_(r,h,g){return r==null?r:Ce(r,h,ii(g))}function Q_(r,h,g,O){return O=typeof O=="function"?O:o,r==null?r:Ce(r,h,ii(g),O)}function fh(r){return r==null?[]:So(r,Jn(r))}function ty(r){return r==null?[]:So(r,Ur(r))}function ey(r,h,g){return g===o&&(g=h,h=o),g!==o&&(g=bs(g),g=g===g?g:0),h!==o&&(h=bs(h),h=h===h?h:0),oo(bs(r),h,g)}function iy(r,h,g){return h=jo(h),g===o?(g=h,h=0):g=jo(g),r=bs(r),lh(r,h,g)}function ny(r,h,g){if(g&&typeof g!="boolean"&&Mr(r,h,g)&&(h=g=o),g===o&&(typeof h=="boolean"?(g=h,h=o):typeof r=="boolean"&&(g=r,r=o)),r===o&&h===o?(r=0,h=1):(r=jo(r),h===o?(h=r,r=0):h=jo(h)),r>h){var O=r;r=h,h=O}if(g||r%1||h%1){var Y=th();return Vn(r+Y*(h-r+tl("1e-"+((Y+"").length-1))),h)}return me(r,h)}var ry=De(function(r,h,g){return h=h.toLowerCase(),r+(g?Rd(h):h)});function Rd(r){return cf(Zi(r).toLowerCase())}function Od(r){return r=Zi(r),r&&r.replace(Vl,bo).replace(Rh,"")}function sy(r,h,g){r=Zi(r),h=Ye(h);var O=r.length;g=g===o?O:oo(wi(g),0,O);var Y=g;return g-=h.length,g>=0&&r.slice(g,Y)==h}function oy(r){return r=Zi(r),r&&as.test(r)?r.replace(Di,Jr):r}function ay(r){return r=Zi(r),r&&Ul.test(r)?r.replace(Xa,"\\$&"):r}var ly=De(function(r,h,g){return r+(g?"-":"")+h.toLowerCase()}),hy=De(function(r,h,g){return r+(g?" ":"")+h.toLowerCase()}),uy=Me("toLowerCase");function cy(r,h,g){r=Zi(r),h=wi(h);var O=h?$r(r):0;if(!h||O>=h)return r;var Y=(h-O)/2;return an(Do(Y),g)+r+an(Is(Y),g)}function fy(r,h,g){r=Zi(r),h=wi(h);var O=h?$r(r):0;return h&&O<h?r+an(h-O,g):r}function py(r,h,g){r=Zi(r),h=wi(h);var O=h?$r(r):0;return h&&O<h?an(h-O,g)+r:r}function dy(r,h,g){return g||h==null?h=0:h&&(h=+h),Bh(Zi(r).replace(ls,""),h||0)}function my(r,h,g){return(g?Mr(r,h,g):h===o)?h=1:h=wi(h),be(Zi(r),h)}function gy(){var r=arguments,h=Zi(r[0]);return r.length<3?h:h.replace(r[1],r[2])}var vy=De(function(r,h,g){return r+(g?"_":"")+h.toLowerCase()});function _y(r,h,g){return g&&typeof g!="number"&&Mr(r,h,g)&&(h=g=o),g=g===o?Ot:g>>>0,g?(r=Zi(r),r&&(typeof h=="string"||h!=null&&!lf(h))&&(h=Ye(h),!h&&Ir(r))?xn(ar(r),0,g):r.split(h,g)):[]}var yy=De(function(r,h,g){return r+(g?" ":"")+cf(h)});function xy(r,h,g){return r=Zi(r),g=g==null?0:oo(wi(g),0,r.length),h=Ye(h),r.slice(g,g+h.length)==h}function wy(r,h,g){var O=it.templateSettings;g&&Mr(r,h,g)&&(h=o),r=Zi(r),h=Zu({},h,O,Hp);var Y=Zu({},h.imports,O.imports,Hp),ut=Jn(Y),_t=So(Y,ut),bt,Nt,se=0,le=h.interpolate||Yr,de="__p += '",ze=Kn((h.escape||Yr).source+"|"+le.source+"|"+(le===ea?us:Yr).source+"|"+(h.evaluate||Yr).source+"|$","g"),Je="//# sourceURL="+(Ti.call(h,"sourceURL")?(h.sourceURL+"").replace(/\s/g," "):"lodash.templateSources["+ ++la+"]")+`
2618
+ `)}function Yg(r){return vi(r)||bl(r)||!!(xa&&r&&r[xa])}function Vo(r,h){var g=typeof r;return h=h??fe,!!h&&(g=="number"||g!="symbol"&&Hl.test(r))&&r>-1&&r%1==0&&r<h}function Mr(r,h,g){if(!wn(g))return!1;var O=typeof h;return(O=="number"?Fr(g)&&Vo(h,g.length):O=="string"&&h in g)?Fs(g[h],r):!1}function Kc(r,h){if(vi(r))return!1;var g=typeof r;return g=="number"||g=="symbol"||g=="boolean"||r==null||ts(r)?!0:vr.test(r)||!mo.test(r)||h!=null&&r in Ee(h)}function Zg(r){var h=typeof r;return h=="string"||h=="number"||h=="symbol"||h=="boolean"?r!=="__proto__":r===null}function Qc(r){var h=Fu(r),g=it[h];if(typeof g!="function"||!(h in yi.prototype))return!1;if(r===g)return!0;var O=Zc(g);return!!O&&r===O[0]}function Jg(r){return!!zr&&zr in r}var $g=eo?Wo:vf;function Qh(r){var h=r&&r.constructor,g=typeof h=="function"&&h.prototype||gs;return r===g}function Zp(r){return r===r&&!wn(r)}function Jp(r,h){return function(g){return g==null?!1:g[r]===h&&(h!==o||r in Ee(g))}}function Kg(r){var h=ju(r,function(O){return g.size===S&&g.clear(),O}),g=h.cache;return h}function Qg(r,h){var g=r[1],O=h[1],Y=g|O,ut=Y<(L|T|j),_t=O==j&&g==R||O==j&&g==J&&r[7].length<=h[8]||O==(j|J)&&h[7].length<=h[8]&&g==R;if(!(ut||_t))return r;O&L&&(r[2]=h[2],Y|=g&L?0:M);var bt=h[3];if(bt){var Nt=r[3];r[3]=Nt?Zh(Nt,bt,h[4]):bt,r[4]=Nt?Dr(r[3],A):h[4]}return bt=h[5],bt&&(Nt=r[5],r[5]=Nt?Jh(Nt,bt,h[6]):bt,r[6]=Nt?Dr(r[5],A):h[6]),bt=h[7],bt&&(r[7]=bt),O&j&&(r[8]=r[8]==null?h[8]:Vn(r[8],h[8])),r[9]==null&&(r[9]=h[9]),r[0]=h[0],r[1]=Y,r}function t0(r){var h=[];if(r!=null)for(var g in Ee(r))h.push(g);return h}function e0(r){return cr.call(r)}function $p(r,h,g){return h=vn(h===o?r.length-1:h,0),function(){for(var O=arguments,Y=-1,ut=vn(O.length-h,0),_t=Zt(ut);++Y<ut;)_t[Y]=O[h+Y];Y=-1;for(var bt=Zt(h+1);++Y<h;)bt[Y]=O[Y];return bt[h]=g(_t),_r(r,this,bt)}}function Kp(r,h){return h.length<2?r:ao(r,Vi(h,0,-1))}function i0(r,h){for(var g=r.length,O=Vn(h.length,g),Y=er(r);O--;){var ut=h[O];r[O]=Vo(ut,g)?Y[ut]:o}return r}function tf(r,h){if(!(h==="constructor"&&typeof r[h]=="function")&&h!="__proto__")return r[h]}var Qp=ed(An),tu=Dh||function(r,h){return gn.setTimeout(r,h)},ef=ed(yn);function td(r,h,g){var O=h+"";return ef(r,qg(O,n0(Wg(O),g)))}function ed(r){var h=0,g=0;return function(){var O=hl(),Y=yt-(O-g);if(g=O,Y>0){if(++h>=et)return arguments[0]}else h=0;return r.apply(o,arguments)}}function Gu(r,h){var g=-1,O=r.length,Y=O-1;for(h=h===o?O:h;++g<h;){var ut=me(g,Y),_t=r[ut];r[ut]=r[g],r[g]=_t}return r.length=h,r}var id=Kg(function(r){var h=[];return r.charCodeAt(0)===46&&h.push(""),r.replace(ia,function(g,O,Y,ut){h.push(Y?ut.replace(sa,"$1"):O||g)}),h});function ho(r){if(typeof r=="string"||ts(r))return r;var h=r+"";return h=="0"&&1/r==-Ct?"-0":h}function El(r){if(r!=null){try{return hr.call(r)}catch{}try{return r+""}catch{}}return""}function n0(r,h){return Ji(ce,function(g){var O="_."+g[0];h&g[1]&&!el(r,O)&&r.push(O)}),r.sort()}function nd(r){if(r instanceof yi)return r.clone();var h=new qn(r.__wrapped__,r.__chain__);return h.__actions__=er(r.__actions__),h.__index__=r.__index__,h.__values__=r.__values__,h}function r0(r,h,g){(g?Mr(r,h,g):h===o)?h=1:h=vn(wi(h),0);var O=r==null?0:r.length;if(!O||h<1)return[];for(var Y=0,ut=0,_t=Zt(Is(O/h));Y<O;)_t[ut++]=Vi(r,Y,Y+=h);return _t}function s0(r){for(var h=-1,g=r==null?0:r.length,O=0,Y=[];++h<g;){var ut=r[h];ut&&(Y[O++]=ut)}return Y}function o0(){var r=arguments.length;if(!r)return[];for(var h=Zt(r-1),g=arguments[0],O=r;O--;)h[O-1]=arguments[O];return fs(vi(g)?er(g):[g],bn(h,1))}var a0=ae(function(r,h){return Dn(r)?xl(r,bn(h,1,Dn,!0)):[]}),l0=ae(function(r,h){var g=Es(h);return Dn(g)&&(g=o),Dn(r)?xl(r,bn(h,1,Dn,!0),oi(g,2)):[]}),h0=ae(function(r,h){var g=Es(h);return Dn(g)&&(g=o),Dn(r)?xl(r,bn(h,1,Dn,!0),o,g):[]});function u0(r,h,g){var O=r==null?0:r.length;return O?(h=g||h===o?1:wi(h),Vi(r,h<0?0:h,O)):[]}function c0(r,h,g){var O=r==null?0:r.length;return O?(h=g||h===o?1:wi(h),h=O-h,Vi(r,0,h<0?0:h)):[]}function f0(r,h){return r&&r.length?Xe(r,oi(h,3),!0,!0):[]}function p0(r,h){return r&&r.length?Xe(r,oi(h,3),!0):[]}function d0(r,h,g,O){var Y=r==null?0:r.length;return Y?(g&&typeof g!="number"&&Mr(r,h,g)&&(g=0,O=Y),tr(r,h,g,O)):[]}function rd(r,h,g){var O=r==null?0:r.length;if(!O)return-1;var Y=g==null?0:wi(g);return Y<0&&(Y=vn(O+Y,0)),Zs(r,oi(h,3),Y)}function sd(r,h,g){var O=r==null?0:r.length;if(!O)return-1;var Y=O-1;return g!==o&&(Y=wi(g),Y=g<0?vn(O+Y,0):Vn(Y,O-1)),Zs(r,oi(h,3),Y,!0)}function od(r){var h=r==null?0:r.length;return h?bn(r,1):[]}function m0(r){var h=r==null?0:r.length;return h?bn(r,Ct):[]}function g0(r,h){var g=r==null?0:r.length;return g?(h=h===o?1:wi(h),bn(r,h)):[]}function v0(r){for(var h=-1,g=r==null?0:r.length,O={};++h<g;){var Y=r[h];O[Y[0]]=Y[1]}return O}function ad(r){return r&&r.length?r[0]:o}function _0(r,h,g){var O=r==null?0:r.length;if(!O)return-1;var Y=g==null?0:wi(g);return Y<0&&(Y=vn(O+Y,0)),Or(r,h,Y)}function y0(r){var h=r==null?0:r.length;return h?Vi(r,0,-1):[]}var x0=ae(function(r){var h=Yi(r,ne);return h.length&&h[0]===r[0]?Tl(h):[]}),w0=ae(function(r){var h=Es(r),g=Yi(r,ne);return h===Es(g)?h=o:g.pop(),g.length&&g[0]===r[0]?Tl(g,oi(h,2)):[]}),T0=ae(function(r){var h=Es(r),g=Yi(r,ne);return h=typeof h=="function"?h:o,h&&g.pop(),g.length&&g[0]===r[0]?Tl(g,o,h):[]});function M0(r,h){return r==null?"":kh.call(r,h)}function Es(r){var h=r==null?0:r.length;return h?r[h-1]:o}function S0(r,h,g){var O=r==null?0:r.length;if(!O)return-1;var Y=O;return g!==o&&(Y=wi(g),Y=Y<0?vn(O+Y,0):Vn(Y,O-1)),h===h?Zl(r,h,Y):Zs(r,Mo,Y,!0)}function E0(r,h){return r&&r.length?Z(r,wi(h)):o}var b0=ae(ld);function ld(r,h){return r&&r.length&&h&&h.length?qt(r,h):r}function A0(r,h,g){return r&&r.length&&h&&h.length?qt(r,h,oi(g,2)):r}function C0(r,h,g){return r&&r.length&&h&&h.length?qt(r,h,o,g):r}var P0=Ho(function(r,h){var g=r==null?0:r.length,O=Xh(r,h);return Te(r,Yi(h,function(Y){return Vo(Y,g)?+Y:Y}).sort(Go)),O});function L0(r,h){var g=[];if(!(r&&r.length))return g;var O=-1,Y=[],ut=r.length;for(h=oi(h,3);++O<ut;){var _t=r[O];h(_t,O,r)&&(g.push(_t),Y.push(O))}return Te(r,Y),g}function nf(r){return r==null?r:wa.call(r)}function R0(r,h,g){var O=r==null?0:r.length;return O?(g&&typeof g!="number"&&Mr(r,h,g)?(h=0,g=O):(h=h==null?0:wi(h),g=g===o?O:wi(g)),Vi(r,h,g)):[]}function O0(r,h){return Cn(r,h)}function I0(r,h,g){return Ae(r,h,oi(g,2))}function D0(r,h){var g=r==null?0:r.length;if(g){var O=Cn(r,h);if(O<g&&Fs(r[O],h))return O}return-1}function z0(r,h){return Cn(r,h,!0)}function k0(r,h,g){return Ae(r,h,oi(g,2),!0)}function B0(r,h){var g=r==null?0:r.length;if(g){var O=Cn(r,h,!0)-1;if(Fs(r[O],h))return O}return-1}function N0(r){return r&&r.length?ti(r):[]}function F0(r,h){return r&&r.length?ti(r,oi(h,2)):[]}function U0(r){var h=r==null?0:r.length;return h?Vi(r,1,h):[]}function G0(r,h,g){return r&&r.length?(h=g||h===o?1:wi(h),Vi(r,0,h<0?0:h)):[]}function H0(r,h,g){var O=r==null?0:r.length;return O?(h=g||h===o?1:wi(h),h=O-h,Vi(r,h<0?0:h,O)):[]}function V0(r,h){return r&&r.length?Xe(r,oi(h,3),!1,!0):[]}function W0(r,h){return r&&r.length?Xe(r,oi(h,3)):[]}var j0=ae(function(r){return ei(bn(r,1,Dn,!0))}),X0=ae(function(r){var h=Es(r);return Dn(h)&&(h=o),ei(bn(r,1,Dn,!0),oi(h,2))}),q0=ae(function(r){var h=Es(r);return h=typeof h=="function"?h:o,ei(bn(r,1,Dn,!0),o,h)});function Y0(r){return r&&r.length?ei(r):[]}function Z0(r,h){return r&&r.length?ei(r,oi(h,2)):[]}function J0(r,h){return h=typeof h=="function"?h:o,r&&r.length?ei(r,o,h):[]}function rf(r){if(!(r&&r.length))return[];var h=0;return r=Rr(r,function(g){if(Dn(g))return h=vn(g.length,h),!0}),Ls(h,function(g){return Yi(r,Js(g))})}function hd(r,h){if(!(r&&r.length))return[];var g=rf(r);return h==null?g:Yi(g,function(O){return _r(h,o,O)})}var $0=ae(function(r,h){return Dn(r)?xl(r,h):[]}),K0=ae(function(r){return Ci(Rr(r,Dn))}),Q0=ae(function(r){var h=Es(r);return Dn(h)&&(h=o),Ci(Rr(r,Dn),oi(h,2))}),tv=ae(function(r){var h=Es(r);return h=typeof h=="function"?h:o,Ci(Rr(r,Dn),o,h)}),ev=ae(rf);function iv(r,h){return Ai(r||[],h||[],Ca)}function nv(r,h){return Ai(r||[],h||[],fi)}var rv=ae(function(r){var h=r.length,g=h>1?r[h-1]:o;return g=typeof g=="function"?(r.pop(),g):o,hd(r,g)});function ud(r){var h=it(r);return h.__chain__=!0,h}function sv(r,h){return h(r),r}function Hu(r,h){return h(r)}var ov=Ho(function(r){var h=r.length,g=h?r[0]:0,O=this.__wrapped__,Y=function(ut){return Xh(ut,r)};return h>1||this.__actions__.length||!(O instanceof yi)||!Vo(g)?this.thru(Y):(O=O.slice(g,+g+(h?1:0)),O.__actions__.push({func:Hu,args:[Y],thisArg:o}),new qn(O,this.__chain__).thru(function(ut){return h&&!ut.length&&ut.push(o),ut}))});function av(){return ud(this)}function lv(){return new qn(this.value(),this.__chain__)}function hv(){this.__values__===o&&(this.__values__=Sd(this.value()));var r=this.__index__>=this.__values__.length,h=r?o:this.__values__[this.__index__++];return{done:r,value:h}}function uv(){return this}function cv(r){for(var h,g=this;g instanceof Ma;){var O=nd(g);O.__index__=0,O.__values__=o,h?Y.__wrapped__=O:h=O;var Y=O;g=g.__wrapped__}return Y.__wrapped__=r,h}function fv(){var r=this.__wrapped__;if(r instanceof yi){var h=r;return this.__actions__.length&&(h=new yi(this)),h=h.reverse(),h.__actions__.push({func:Hu,args:[nf],thisArg:o}),new qn(h,this.__chain__)}return this.thru(nf)}function pv(){return ri(this.__wrapped__,this.__actions__)}var dv=Oa(function(r,h,g){Ti.call(r,g)?++r[g]:ks(r,g,1)});function mv(r,h,g){var O=vi(r)?Ih:Yn;return g&&Mr(r,h,g)&&(h=o),O(r,oi(h,3))}function gv(r,h){var g=vi(r)?Rr:Br;return g(r,oi(h,3))}var vv=Ke(rd),_v=Ke(sd);function yv(r,h){return bn(Vu(r,h),1)}function xv(r,h){return bn(Vu(r,h),Ct)}function wv(r,h,g){return g=g===o?1:wi(g),bn(Vu(r,h),g)}function cd(r,h){var g=vi(r)?Ji:_n;return g(r,oi(h,3))}function fd(r,h){var g=vi(r)?wo:zu;return g(r,oi(h,3))}var Tv=Oa(function(r,h,g){Ti.call(r,g)?r[g].push(h):ks(r,g,[h])});function Mv(r,h,g,O){r=Fr(r)?r:fh(r),g=g&&!O?wi(g):0;var Y=r.length;return g<0&&(g=vn(Y+g,0)),Yu(r)?g<=Y&&r.indexOf(h,g)>-1:!!Y&&Or(r,h,g)>-1}var Sv=ae(function(r,h,g){var O=-1,Y=typeof h=="function",ut=Fr(r)?Zt(r.length):[];return _n(r,function(_t){ut[++O]=Y?_r(h,_t,g):e(_t,h,g)}),ut}),Ev=Oa(function(r,h,g){ks(r,g,h)});function Vu(r,h){var g=vi(r)?Yi:xt;return g(r,oi(h,3))}function bv(r,h,g,O){return r==null?[]:(vi(h)||(h=h==null?[]:[h]),g=O?o:g,vi(g)||(g=g==null?[]:[g]),st(r,h,g))}var Av=Oa(function(r,h,g){r[g?0:1].push(h)},function(){return[[],[]]});function Cv(r,h,g){var O=vi(r)?ql:$s,Y=arguments.length<3;return O(r,oi(h,4),g,Y,_n)}function Pv(r,h,g){var O=vi(r)?Tu:$s,Y=arguments.length<3;return O(r,oi(h,4),g,Y,zu)}function Lv(r,h){var g=vi(r)?Rr:Br;return g(r,Xu(oi(h,3)))}function Rv(r){var h=vi(r)?Vh:We;return h(r)}function Ov(r,h,g){(g?Mr(r,h,g):h===o)?h=1:h=wi(h);var O=vi(r)?Xc:Qe;return O(r,h)}function Iv(r){var h=vi(r)?Ou:qi;return h(r)}function Dv(r){if(r==null)return 0;if(Fr(r))return Yu(r)?$r(r):r.length;var h=mr(r);return h==W||h==Kt?r.size:q(r).length}function zv(r,h,g){var O=vi(r)?Cs:sn;return g&&Mr(r,h,g)&&(h=o),O(r,oi(h,3))}var kv=ae(function(r,h){if(r==null)return[];var g=h.length;return g>1&&Mr(r,h[0],h[1])?h=[]:g>2&&Mr(h[0],h[1],h[2])&&(h=[h[0]]),st(r,bn(h,1),[])}),Wu=Kl||function(){return gn.Date.now()};function Bv(r,h){if(typeof h!="function")throw new lr(m);return r=wi(r),function(){if(--r<1)return h.apply(this,arguments)}}function pd(r,h,g){return h=g?o:h,h=r&&h==null?r.length:h,ir(r,j,o,o,o,o,h)}function dd(r,h){var g;if(typeof h!="function")throw new lr(m);return r=wi(r),function(){return--r>0&&(g=h.apply(this,arguments)),r<=1&&(h=o),g}}var sf=ae(function(r,h,g){var O=L;if(g.length){var Y=Dr(g,uh(sf));O|=U}return ir(r,O,h,g,Y)}),md=ae(function(r,h,g){var O=L|T;if(g.length){var Y=Dr(g,uh(md));O|=U}return ir(h,O,r,g,Y)});function gd(r,h,g){h=g?o:h;var O=ir(r,R,o,o,o,o,o,h);return O.placeholder=gd.placeholder,O}function vd(r,h,g){h=g?o:h;var O=ir(r,b,o,o,o,o,o,h);return O.placeholder=vd.placeholder,O}function _d(r,h,g){var O,Y,ut,_t,bt,Nt,se=0,le=!1,de=!1,ze=!0;if(typeof r!="function")throw new lr(m);h=bs(h)||0,wn(g)&&(le=!!g.leading,de="maxWait"in g,ut=de?vn(bs(g.maxWait)||0,h):ut,ze="trailing"in g?!!g.trailing:ze);function Je(zn){var Us=O,Xo=Y;return O=Y=o,se=zn,_t=r.apply(Xo,Us),_t}function hi(zn){return se=zn,bt=tu(Pi,h),le?Je(zn):_t}function Mi(zn){var Us=zn-Nt,Xo=zn-se,Bd=h-Us;return de?Vn(Bd,ut-Xo):Bd}function ui(zn){var Us=zn-Nt,Xo=zn-se;return Nt===o||Us>=h||Us<0||de&&Xo>=ut}function Pi(){var zn=Wu();if(ui(zn))return Fi(zn);bt=tu(Pi,Mi(zn))}function Fi(zn){return bt=o,ze&&O?Je(zn):(O=Y=o,_t)}function es(){bt!==o&&Pn(bt),se=0,O=Nt=Y=bt=o}function Sr(){return bt===o?_t:Fi(Wu())}function is(){var zn=Wu(),Us=ui(zn);if(O=arguments,Y=this,Nt=zn,Us){if(bt===o)return hi(Nt);if(de)return Pn(bt),bt=tu(Pi,h),Je(Nt)}return bt===o&&(bt=tu(Pi,h)),_t}return is.cancel=es,is.flush=Sr,is}var Nv=ae(function(r,h){return ws(r,1,h)}),Fv=ae(function(r,h,g){return ws(r,bs(h)||0,g)});function Uv(r){return ir(r,$)}function ju(r,h){if(typeof r!="function"||h!=null&&typeof h!="function")throw new lr(m);var g=function(){var O=arguments,Y=h?h.apply(this,O):O[0],ut=g.cache;if(ut.has(Y))return ut.get(Y);var _t=r.apply(this,O);return g.cache=ut.set(Y,_t)||ut,_t};return g.cache=new(ju.Cache||xr),g}ju.Cache=xr;function Xu(r){if(typeof r!="function")throw new lr(m);return function(){var h=arguments;switch(h.length){case 0:return!r.call(this);case 1:return!r.call(this,h[0]);case 2:return!r.call(this,h[0],h[1]);case 3:return!r.call(this,h[0],h[1],h[2])}return!r.apply(this,h)}}function Gv(r){return dd(2,r)}var Hv=li(function(r,h){h=h.length==1&&vi(h[0])?Yi(h[0],Gn(oi())):Yi(bn(h,1),Gn(oi()));var g=h.length;return ae(function(O){for(var Y=-1,ut=Vn(O.length,g);++Y<ut;)O[Y]=h[Y].call(this,O[Y]);return _r(r,this,O)})}),of=ae(function(r,h){var g=Dr(h,uh(of));return ir(r,U,o,h,g)}),yd=ae(function(r,h){var g=Dr(h,uh(yd));return ir(r,N,o,h,g)}),Vv=Ho(function(r,h){return ir(r,J,o,o,o,h)});function Wv(r,h){if(typeof r!="function")throw new lr(m);return h=h===o?h:wi(h),ae(r,h)}function jv(r,h){if(typeof r!="function")throw new lr(m);return h=h==null?0:vn(wi(h),0),ae(function(g){var O=g[h],Y=xn(g,0,h);return O&&fs(Y,O),_r(r,this,Y)})}function Xv(r,h,g){var O=!0,Y=!0;if(typeof r!="function")throw new lr(m);return wn(g)&&(O="leading"in g?!!g.leading:O,Y="trailing"in g?!!g.trailing:Y),_d(r,h,{leading:O,maxWait:h,trailing:Y})}function qv(r){return pd(r,1)}function Yv(r,h){return of(ii(h),r)}function Zv(){if(!arguments.length)return[];var r=arguments[0];return vi(r)?r:[r]}function Jv(r){return wr(r,D)}function $v(r,h){return h=typeof h=="function"?h:o,wr(r,D,h)}function Kv(r){return wr(r,I|D)}function Qv(r,h){return h=typeof h=="function"?h:o,wr(r,I|D,h)}function t_(r,h){return h==null||Du(r,h,Jn(h))}function Fs(r,h){return r===h||r!==r&&h!==h}var e_=Ss(oh),i_=Ss(function(r,h){return r>=h}),bl=i(function(){return arguments}())?i:function(r){return Ln(r)&&Ti.call(r,"callee")&&!al.call(r,"callee")},vi=Zt.isArray,n_=Oh?Gn(Oh):n;function Fr(r){return r!=null&&qu(r.length)&&!Wo(r)}function Dn(r){return Ln(r)&&Fr(r)}function r_(r){return r===!0||r===!1||Ln(r)&&Zn(r)==Oe}var Da=zh||vf,s_=pa?Gn(pa):s;function o_(r){return Ln(r)&&r.nodeType===1&&!eu(r)}function a_(r){if(r==null)return!0;if(Fr(r)&&(vi(r)||typeof r=="string"||typeof r.splice=="function"||Da(r)||ch(r)||bl(r)))return!r.length;var h=mr(r);if(h==W||h==Kt)return!r.size;if(Qh(r))return!q(r).length;for(var g in r)if(Ti.call(r,g))return!1;return!0}function l_(r,h){return l(r,h)}function h_(r,h,g){g=typeof g=="function"?g:o;var O=g?g(r,h):o;return O===o?l(r,h,o,g):!!O}function af(r){if(!Ln(r))return!1;var h=Zn(r);return h==Ii||h==di||typeof r.message=="string"&&typeof r.name=="string"&&!eu(r)}function u_(r){return typeof r=="number"&&Ql(r)}function Wo(r){if(!wn(r))return!1;var h=Zn(r);return h==mn||h==Qi||h==Oi||h==Dt}function xd(r){return typeof r=="number"&&r==wi(r)}function qu(r){return typeof r=="number"&&r>-1&&r%1==0&&r<=fe}function wn(r){var h=typeof r;return r!=null&&(h=="object"||h=="function")}function Ln(r){return r!=null&&typeof r=="object"}var wd=da?Gn(da):p;function c_(r,h){return r===h||v(r,h,Jc(h))}function f_(r,h,g){return g=typeof g=="function"?g:o,v(r,h,Jc(h),g)}function p_(r){return Td(r)&&r!=+r}function d_(r){if($g(r))throw new ai(u);return w(r)}function m_(r){return r===null}function g_(r){return r==null}function Td(r){return typeof r=="number"||Ln(r)&&Zn(r)==Jt}function eu(r){if(!Ln(r)||Zn(r)!=pt)return!1;var h=_s(r);if(h===null)return!0;var g=Ti.call(h,"constructor")&&h.constructor;return typeof g=="function"&&g instanceof g&&hr.call(g)==vs}var lf=xu?Gn(xu):C;function v_(r){return xd(r)&&r>=-fe&&r<=fe}var Md=wu?Gn(wu):P;function Yu(r){return typeof r=="string"||!vi(r)&&Ln(r)&&Zn(r)==z}function ts(r){return typeof r=="symbol"||Ln(r)&&Zn(r)==Q}var ch=Wl?Gn(Wl):B;function __(r){return r===o}function y_(r){return Ln(r)&&mr(r)==nt}function x_(r){return Ln(r)&&Zn(r)==vt}var w_=Ss(rt),T_=Ss(function(r,h){return r<=h});function Sd(r){if(!r)return[];if(Fr(r))return Yu(r)?ar(r):er(r);if(io&&r[io])return Lo(r[io]());var h=mr(r),g=h==W?$n:h==Kt?Ro:fh;return g(r)}function jo(r){if(!r)return r===0?r:0;if(r=bs(r),r===Ct||r===-Ct){var h=r<0?-1:1;return h*re}return r===r?r:0}function wi(r){var h=jo(r),g=h%1;return h===h?g?h-g:h:0}function Ed(r){return r?oo(wi(r),0,Ot):0}function bs(r){if(typeof r=="number")return r;if(ts(r))return Ft;if(wn(r)){var h=typeof r.valueOf=="function"?r.valueOf():r;r=wn(h)?h+"":h}if(typeof r!="string")return r===0?r:+r;r=ga(r);var g=Lh.test(r);return g||vo.test(r)?ua(r.slice(2),g?2:8):Ph.test(r)?Ft:+r}function bd(r){return In(r,Ur(r))}function M_(r){return r?oo(wi(r),-fe,fe):r===0?r:0}function Zi(r){return r==null?"":Ye(r)}var S_=Ns(function(r,h){if(Qh(h)||Fr(h)){In(h,Jn(h),r);return}for(var g in h)Ti.call(h,g)&&Ca(r,g,h[g])}),Ad=Ns(function(r,h){In(h,Ur(h),r)}),Zu=Ns(function(r,h,g,O){In(h,Ur(h),r,O)}),E_=Ns(function(r,h,g,O){In(h,Jn(h),r,O)}),b_=Ho(Xh);function A_(r,h){var g=ro(r);return h==null?g:Wh(g,h)}var C_=ae(function(r,h){r=Ee(r);var g=-1,O=h.length,Y=O>2?h[2]:o;for(Y&&Mr(h[0],h[1],Y)&&(O=1);++g<O;)for(var ut=h[g],_t=Ur(ut),bt=-1,Nt=_t.length;++bt<Nt;){var se=_t[bt],le=r[se];(le===o||Fs(le,gs[se])&&!Ti.call(r,se))&&(r[se]=ut[se])}return r}),P_=ae(function(r){return r.push(o,Wp),_r(Cd,o,r)});function L_(r,h){return To(r,oi(h,3),Nr)}function R_(r,h){return To(r,oi(h,3),sh)}function O_(r,h){return r==null?r:wl(r,oi(h,3),Ur)}function I_(r,h){return r==null?r:rh(r,oi(h,3),Ur)}function D_(r,h){return r&&Nr(r,oi(h,3))}function z_(r,h){return r&&sh(r,oi(h,3))}function k_(r){return r==null?[]:Fo(r,Jn(r))}function B_(r){return r==null?[]:Fo(r,Ur(r))}function hf(r,h,g){var O=r==null?o:ao(r,h);return O===o?g:O}function N_(r,h){return r!=null&&qp(r,h,ah)}function uf(r,h){return r!=null&&qp(r,h,qh)}var F_=ve(function(r,h,g){h!=null&&typeof h.toString!="function"&&(h=cr.call(h)),r[h]=g},ff(Gr)),U_=ve(function(r,h,g){h!=null&&typeof h.toString!="function"&&(h=cr.call(h)),Ti.call(r,h)?r[h].push(g):r[h]=[g]},oi),G_=ae(e);function Jn(r){return Fr(r)?Ru(r):q(r)}function Ur(r){return Fr(r)?Ru(r,!0):K(r)}function H_(r,h){var g={};return h=oi(h,3),Nr(r,function(O,Y,ut){ks(g,h(O,Y,ut),O)}),g}function V_(r,h){var g={};return h=oi(h,3),Nr(r,function(O,Y,ut){ks(g,Y,h(O,Y,ut))}),g}var W_=Ns(function(r,h,g){wt(r,h,g)}),Cd=Ns(function(r,h,g,O){wt(r,h,g,O)}),j_=Ho(function(r,h){var g={};if(r==null)return g;var O=!1;h=Yi(h,function(ut){return ut=Ze(ut,r),O||(O=ut.length>1),ut}),In(r,Yc(r),g),O&&(g=wr(g,I|k|D,Fg));for(var Y=h.length;Y--;)Wi(g,h[Y]);return g});function X_(r,h){return Pd(r,Xu(oi(h)))}var q_=Ho(function(r,h){return r==null?{}:zt(r,h)});function Pd(r,h){if(r==null)return{};var g=Yi(Yc(r),function(O){return[O]});return h=oi(h),ee(r,g,function(O,Y){return h(O,Y[0])})}function Y_(r,h,g){h=Ze(h,r);var O=-1,Y=h.length;for(Y||(Y=1,r=o);++O<Y;){var ut=r==null?o:r[ho(h[O])];ut===o&&(O=Y,ut=g),r=Wo(ut)?ut.call(r):ut}return r}function Z_(r,h,g){return r==null?r:fi(r,h,g)}function J_(r,h,g,O){return O=typeof O=="function"?O:o,r==null?r:fi(r,h,g,O)}var Ld=Nu(Jn),Rd=Nu(Ur);function $_(r,h,g){var O=vi(r),Y=O||Da(r)||ch(r);if(h=oi(h,4),g==null){var ut=r&&r.constructor;Y?g=O?new ut:[]:wn(r)?g=Wo(ut)?ro(_s(r)):{}:g={}}return(Y?Ji:Nr)(r,function(_t,bt,Nt){return h(g,_t,bt,Nt)}),g}function K_(r,h){return r==null?!0:Wi(r,h)}function Q_(r,h,g){return r==null?r:Ce(r,h,ii(g))}function ty(r,h,g,O){return O=typeof O=="function"?O:o,r==null?r:Ce(r,h,ii(g),O)}function fh(r){return r==null?[]:So(r,Jn(r))}function ey(r){return r==null?[]:So(r,Ur(r))}function iy(r,h,g){return g===o&&(g=h,h=o),g!==o&&(g=bs(g),g=g===g?g:0),h!==o&&(h=bs(h),h=h===h?h:0),oo(bs(r),h,g)}function ny(r,h,g){return h=jo(h),g===o?(g=h,h=0):g=jo(g),r=bs(r),lh(r,h,g)}function ry(r,h,g){if(g&&typeof g!="boolean"&&Mr(r,h,g)&&(h=g=o),g===o&&(typeof h=="boolean"?(g=h,h=o):typeof r=="boolean"&&(g=r,r=o)),r===o&&h===o?(r=0,h=1):(r=jo(r),h===o?(h=r,r=0):h=jo(h)),r>h){var O=r;r=h,h=O}if(g||r%1||h%1){var Y=th();return Vn(r+Y*(h-r+tl("1e-"+((Y+"").length-1))),h)}return me(r,h)}var sy=De(function(r,h,g){return h=h.toLowerCase(),r+(g?Od(h):h)});function Od(r){return cf(Zi(r).toLowerCase())}function Id(r){return r=Zi(r),r&&r.replace(Vl,bo).replace(Rh,"")}function oy(r,h,g){r=Zi(r),h=Ye(h);var O=r.length;g=g===o?O:oo(wi(g),0,O);var Y=g;return g-=h.length,g>=0&&r.slice(g,Y)==h}function ay(r){return r=Zi(r),r&&as.test(r)?r.replace(Di,Jr):r}function ly(r){return r=Zi(r),r&&Ul.test(r)?r.replace(Xa,"\\$&"):r}var hy=De(function(r,h,g){return r+(g?"-":"")+h.toLowerCase()}),uy=De(function(r,h,g){return r+(g?" ":"")+h.toLowerCase()}),cy=Me("toLowerCase");function fy(r,h,g){r=Zi(r),h=wi(h);var O=h?$r(r):0;if(!h||O>=h)return r;var Y=(h-O)/2;return an(Do(Y),g)+r+an(Is(Y),g)}function py(r,h,g){r=Zi(r),h=wi(h);var O=h?$r(r):0;return h&&O<h?r+an(h-O,g):r}function dy(r,h,g){r=Zi(r),h=wi(h);var O=h?$r(r):0;return h&&O<h?an(h-O,g)+r:r}function my(r,h,g){return g||h==null?h=0:h&&(h=+h),Bh(Zi(r).replace(ls,""),h||0)}function gy(r,h,g){return(g?Mr(r,h,g):h===o)?h=1:h=wi(h),be(Zi(r),h)}function vy(){var r=arguments,h=Zi(r[0]);return r.length<3?h:h.replace(r[1],r[2])}var _y=De(function(r,h,g){return r+(g?"_":"")+h.toLowerCase()});function yy(r,h,g){return g&&typeof g!="number"&&Mr(r,h,g)&&(h=g=o),g=g===o?Ot:g>>>0,g?(r=Zi(r),r&&(typeof h=="string"||h!=null&&!lf(h))&&(h=Ye(h),!h&&Ir(r))?xn(ar(r),0,g):r.split(h,g)):[]}var xy=De(function(r,h,g){return r+(g?" ":"")+cf(h)});function wy(r,h,g){return r=Zi(r),g=g==null?0:oo(wi(g),0,r.length),h=Ye(h),r.slice(g,g+h.length)==h}function Ty(r,h,g){var O=it.templateSettings;g&&Mr(r,h,g)&&(h=o),r=Zi(r),h=Zu({},h,O,Vp);var Y=Zu({},h.imports,O.imports,Vp),ut=Jn(Y),_t=So(Y,ut),bt,Nt,se=0,le=h.interpolate||Yr,de="__p += '",ze=Kn((h.escape||Yr).source+"|"+le.source+"|"+(le===ea?us:Yr).source+"|"+(h.evaluate||Yr).source+"|$","g"),Je="//# sourceURL="+(Ti.call(h,"sourceURL")?(h.sourceURL+"").replace(/\s/g," "):"lodash.templateSources["+ ++la+"]")+`
2619
2619
  `;r.replace(ze,function(ui,Pi,Fi,es,Sr,is){return Fi||(Fi=es),de+=r.slice(se,is).replace(V,Ao),Pi&&(bt=!0,de+=`' +
2620
2620
  __e(`+Pi+`) +
2621
2621
  '`),Sr&&(Nt=!0,de+=`';
@@ -2632,9 +2632,9 @@ __p += '`),Fi&&(de+=`' +
2632
2632
  function print() { __p += __j.call(arguments, '') }
2633
2633
  `:`;
2634
2634
  `)+de+`return __p
2635
- }`;var Mi=Dd(function(){return Ni(ut,Je+"return "+de).apply(o,_t)});if(Mi.source=de,af(Mi))throw Mi;return Mi}function Ty(r){return Zi(r).toLowerCase()}function My(r){return Zi(r).toUpperCase()}function Sy(r,h,g){if(r=Zi(r),r&&(g||h===o))return ga(r);if(!r||!(h=Ye(h)))return r;var O=ar(r),Y=ar(h),ut=Qs(O,Y),_t=Eo(O,Y)+1;return xn(O,ut,_t).join("")}function Ey(r,h,g){if(r=Zi(r),r&&(g||h===o))return r.slice(0,va(r)+1);if(!r||!(h=Ye(h)))return r;var O=ar(r),Y=Eo(O,ar(h))+1;return xn(O,0,Y).join("")}function by(r,h,g){if(r=Zi(r),r&&(g||h===o))return r.replace(ls,"");if(!r||!(h=Ye(h)))return r;var O=ar(r),Y=Qs(O,ar(h));return xn(O,Y).join("")}function Ay(r,h){var g=ct,O=It;if(wn(h)){var Y="separator"in h?h.separator:Y;g="length"in h?wi(h.length):g,O="omission"in h?Ye(h.omission):O}r=Zi(r);var ut=r.length;if(Ir(r)){var _t=ar(r);ut=_t.length}if(g>=ut)return r;var bt=g-$r(O);if(bt<1)return O;var Nt=_t?xn(_t,0,bt).join(""):r.slice(0,bt);if(Y===o)return Nt+O;if(_t&&(bt+=Nt.length-bt),lf(Y)){if(r.slice(bt).search(Y)){var se,le=Nt;for(Y.global||(Y=Kn(Y.source,Zi(Gl.exec(Y))+"g")),Y.lastIndex=0;se=Y.exec(le);)var de=se.index;Nt=Nt.slice(0,de===o?bt:de)}}else if(r.indexOf(Ye(Y),bt)!=bt){var ze=Nt.lastIndexOf(Y);ze>-1&&(Nt=Nt.slice(0,ze))}return Nt+O}function Cy(r){return r=Zi(r),r&&Xs.test(r)?r.replace(As,Jl):r}var Py=De(function(r,h,g){return r+(g?" ":"")+h.toUpperCase()}),cf=Me("toUpperCase");function Id(r,h,g){return r=Zi(r),h=g?o:h,h===o?Po(r)?Gc(r):il(r):r.match(h)||[]}var Dd=ae(function(r,h){try{return _r(r,o,h)}catch(g){return af(g)?g:new ai(g)}}),Ly=Ho(function(r,h){return Ji(h,function(g){g=ho(g),ks(r,g,sf(r[g],r))}),r});function Ry(r){var h=r==null?0:r.length,g=oi();return r=h?Yi(r,function(O){if(typeof O[1]!="function")throw new lr(m);return[g(O[0]),O[1]]}):[],ae(function(O){for(var Y=-1;++Y<h;){var ut=r[Y];if(_r(ut[0],this,O))return _r(ut[1],this,O)}})}function Oy(r){return Pa(wr(r,I))}function ff(r){return function(){return r}}function Iy(r,h){return r==null||r!==r?h:r}var Dy=Li(),zy=Li(!0);function Gr(r){return r}function pf(r){return H(typeof r=="function"?r:wr(r,I))}function ky(r){return gt(wr(r,I))}function By(r,h){return At(r,wr(h,I))}var Ny=ae(function(r,h){return function(g){return e(g,r,h)}}),Fy=ae(function(r,h){return function(g){return e(r,g,h)}});function df(r,h,g){var O=Jn(h),Y=Fo(h,O);g==null&&!(wn(h)&&(Y.length||!O.length))&&(g=h,h=r,r=this,Y=Fo(h,Jn(h)));var ut=!(wn(g)&&"chain"in g)||!!g.chain,_t=Wo(r);return Ji(Y,function(bt){var Nt=h[bt];r[bt]=Nt,_t&&(r.prototype[bt]=function(){var se=this.__chain__;if(ut||se){var le=r(this.__wrapped__),de=le.__actions__=er(this.__actions__);return de.push({func:Nt,args:arguments,thisArg:r}),le.__chain__=se,le}return Nt.apply(r,fs([this.value()],arguments))})}),r}function Uy(){return gn._===this&&(gn._=Kr),this}function mf(){}function Gy(r){return r=wi(r),ae(function(h){return Z(h,r)})}var Hy=Nn(Yi),Vy=Nn(Ih),Wy=Nn(Cs);function zd(r){return Kc(r)?Js(ho(r)):$t(r)}function jy(r){return function(h){return r==null?o:ao(r,h)}}var Xy=$h(),qy=$h(!0);function gf(){return[]}function vf(){return!1}function Yy(){return{}}function Zy(){return""}function Jy(){return!0}function $y(r,h){if(r=wi(r),r<1||r>fe)return[];var g=Ot,O=Vn(r,Ot);h=oi(h),r-=Ot;for(var Y=Ls(O,h);++g<r;)h(g);return Y}function Ky(r){return vi(r)?Yi(r,ho):ts(r)?[r]:er(ed(Zi(r)))}function Qy(r){var h=++ur;return Zi(r)+h}var t1=Tr(function(r,h){return r+h},0),e1=hh("ceil"),i1=Tr(function(r,h){return r/h},1),n1=hh("floor");function r1(r){return r&&r.length?Ts(r,Gr,oh):o}function s1(r,h){return r&&r.length?Ts(r,oi(h,2),oh):o}function o1(r){return ma(r,Gr)}function a1(r,h){return ma(r,oi(h,2))}function l1(r){return r&&r.length?Ts(r,Gr,rt):o}function h1(r,h){return r&&r.length?Ts(r,oi(h,2),rt):o}var u1=Tr(function(r,h){return r*h},1),c1=hh("round"),f1=Tr(function(r,h){return r-h},0);function p1(r){return r&&r.length?Ks(r,Gr):0}function d1(r,h){return r&&r.length?Ks(r,oi(h,2)):0}return it.after=kv,it.ary=fd,it.assign=M_,it.assignIn=bd,it.assignInWith=Zu,it.assignWith=S_,it.at=E_,it.before=pd,it.bind=sf,it.bindAll=Ly,it.bindKey=dd,it.castArray=Yv,it.chain=hd,it.chunk=n0,it.compact=r0,it.concat=s0,it.cond=Ry,it.conforms=Oy,it.constant=ff,it.countBy=pv,it.create=b_,it.curry=md,it.curryRight=gd,it.debounce=vd,it.defaults=A_,it.defaultsDeep=C_,it.defer=Bv,it.delay=Nv,it.difference=o0,it.differenceBy=a0,it.differenceWith=l0,it.drop=h0,it.dropRight=u0,it.dropRightWhile=c0,it.dropWhile=f0,it.fill=p0,it.filter=mv,it.flatMap=_v,it.flatMapDeep=yv,it.flatMapDepth=xv,it.flatten=sd,it.flattenDeep=d0,it.flattenDepth=m0,it.flip=Fv,it.flow=Dy,it.flowRight=zy,it.fromPairs=g0,it.functions=z_,it.functionsIn=k_,it.groupBy=wv,it.initial=_0,it.intersection=y0,it.intersectionBy=x0,it.intersectionWith=w0,it.invert=N_,it.invertBy=F_,it.invokeMap=Mv,it.iteratee=pf,it.keyBy=Sv,it.keys=Jn,it.keysIn=Ur,it.map=Vu,it.mapKeys=G_,it.mapValues=H_,it.matches=ky,it.matchesProperty=By,it.memoize=ju,it.merge=V_,it.mergeWith=Ad,it.method=Ny,it.methodOf=Fy,it.mixin=df,it.negate=Xu,it.nthArg=Gy,it.omit=W_,it.omitBy=j_,it.once=Uv,it.orderBy=Ev,it.over=Hy,it.overArgs=Gv,it.overEvery=Vy,it.overSome=Wy,it.partial=of,it.partialRight=_d,it.partition=bv,it.pick=X_,it.pickBy=Cd,it.property=zd,it.propertyOf=jy,it.pull=E0,it.pullAll=ad,it.pullAllBy=b0,it.pullAllWith=A0,it.pullAt=C0,it.range=Xy,it.rangeRight=qy,it.rearg=Hv,it.reject=Pv,it.remove=P0,it.rest=Vv,it.reverse=nf,it.sampleSize=Rv,it.set=Y_,it.setWith=Z_,it.shuffle=Ov,it.slice=L0,it.sortBy=zv,it.sortedUniq=B0,it.sortedUniqBy=N0,it.split=_y,it.spread=Wv,it.tail=F0,it.take=U0,it.takeRight=G0,it.takeRightWhile=H0,it.takeWhile=V0,it.tap=rv,it.throttle=jv,it.thru=Hu,it.toArray=Md,it.toPairs=Pd,it.toPairsIn=Ld,it.toPath=Ky,it.toPlainObject=Ed,it.transform=J_,it.unary=Xv,it.union=W0,it.unionBy=j0,it.unionWith=X0,it.uniq=q0,it.uniqBy=Y0,it.uniqWith=Z0,it.unset=$_,it.unzip=rf,it.unzipWith=ld,it.update=K_,it.updateWith=Q_,it.values=fh,it.valuesIn=ty,it.without=J0,it.words=Id,it.wrap=qv,it.xor=$0,it.xorBy=K0,it.xorWith=Q0,it.zip=tv,it.zipObject=ev,it.zipObjectDeep=iv,it.zipWith=nv,it.entries=Pd,it.entriesIn=Ld,it.extend=bd,it.extendWith=Zu,df(it,it),it.add=t1,it.attempt=Dd,it.camelCase=ry,it.capitalize=Rd,it.ceil=e1,it.clamp=ey,it.clone=Zv,it.cloneDeep=$v,it.cloneDeepWith=Kv,it.cloneWith=Jv,it.conformsTo=Qv,it.deburr=Od,it.defaultTo=Iy,it.divide=i1,it.endsWith=sy,it.eq=Fs,it.escape=oy,it.escapeRegExp=ay,it.every=dv,it.find=gv,it.findIndex=nd,it.findKey=P_,it.findLast=vv,it.findLastIndex=rd,it.findLastKey=L_,it.floor=n1,it.forEach=ud,it.forEachRight=cd,it.forIn=R_,it.forInRight=O_,it.forOwn=I_,it.forOwnRight=D_,it.get=hf,it.gt=t_,it.gte=e_,it.has=B_,it.hasIn=uf,it.head=od,it.identity=Gr,it.includes=Tv,it.indexOf=v0,it.inRange=iy,it.invoke=U_,it.isArguments=bl,it.isArray=vi,it.isArrayBuffer=i_,it.isArrayLike=Fr,it.isArrayLikeObject=Dn,it.isBoolean=n_,it.isBuffer=Da,it.isDate=r_,it.isElement=s_,it.isEmpty=o_,it.isEqual=a_,it.isEqualWith=l_,it.isError=af,it.isFinite=h_,it.isFunction=Wo,it.isInteger=yd,it.isLength=qu,it.isMap=xd,it.isMatch=u_,it.isMatchWith=c_,it.isNaN=f_,it.isNative=p_,it.isNil=m_,it.isNull=d_,it.isNumber=wd,it.isObject=wn,it.isObjectLike=Ln,it.isPlainObject=eu,it.isRegExp=lf,it.isSafeInteger=g_,it.isSet=Td,it.isString=Yu,it.isSymbol=ts,it.isTypedArray=ch,it.isUndefined=v_,it.isWeakMap=__,it.isWeakSet=y_,it.join=T0,it.kebabCase=ly,it.last=Es,it.lastIndexOf=M0,it.lowerCase=hy,it.lowerFirst=uy,it.lt=x_,it.lte=w_,it.max=r1,it.maxBy=s1,it.mean=o1,it.meanBy=a1,it.min=l1,it.minBy=h1,it.stubArray=gf,it.stubFalse=vf,it.stubObject=Yy,it.stubString=Zy,it.stubTrue=Jy,it.multiply=u1,it.nth=S0,it.noConflict=Uy,it.noop=mf,it.now=Wu,it.pad=cy,it.padEnd=fy,it.padStart=py,it.parseInt=dy,it.random=ny,it.reduce=Av,it.reduceRight=Cv,it.repeat=my,it.replace=gy,it.result=q_,it.round=c1,it.runInContext=Lt,it.sample=Lv,it.size=Iv,it.snakeCase=vy,it.some=Dv,it.sortedIndex=R0,it.sortedIndexBy=O0,it.sortedIndexOf=I0,it.sortedLastIndex=D0,it.sortedLastIndexBy=z0,it.sortedLastIndexOf=k0,it.startCase=yy,it.startsWith=xy,it.subtract=f1,it.sum=p1,it.sumBy=d1,it.template=wy,it.times=$y,it.toFinite=jo,it.toInteger=wi,it.toLength=Sd,it.toLower=Ty,it.toNumber=bs,it.toSafeInteger=T_,it.toString=Zi,it.toUpper=My,it.trim=Sy,it.trimEnd=Ey,it.trimStart=by,it.truncate=Ay,it.unescape=Cy,it.uniqueId=Qy,it.upperCase=Py,it.upperFirst=cf,it.each=ud,it.eachRight=cd,it.first=od,df(it,function(){var r={};return Nr(it,function(h,g){Ti.call(it.prototype,g)||(r[g]=h)}),r}(),{chain:!1}),it.VERSION=c,Ji(["bind","bindKey","curry","curryRight","partial","partialRight"],function(r){it[r].placeholder=it}),Ji(["drop","take"],function(r,h){yi.prototype[r]=function(g){g=g===o?1:vn(wi(g),0);var O=this.__filtered__&&!h?new yi(this):this.clone();return O.__filtered__?O.__takeCount__=Vn(g,O.__takeCount__):O.__views__.push({size:Vn(g,Ot),type:r+(O.__dir__<0?"Right":"")}),O},yi.prototype[r+"Right"]=function(g){return this.reverse()[r](g).reverse()}}),Ji(["filter","map","takeWhile"],function(r,h){var g=h+1,O=g==G||g==Et;yi.prototype[r]=function(Y){var ut=this.clone();return ut.__iteratees__.push({iteratee:oi(Y,3),type:g}),ut.__filtered__=ut.__filtered__||O,ut}}),Ji(["head","last"],function(r,h){var g="take"+(h?"Right":"");yi.prototype[r]=function(){return this[g](1).value()[0]}}),Ji(["initial","tail"],function(r,h){var g="drop"+(h?"":"Right");yi.prototype[r]=function(){return this.__filtered__?new yi(this):this[g](1)}}),yi.prototype.compact=function(){return this.filter(Gr)},yi.prototype.find=function(r){return this.filter(r).head()},yi.prototype.findLast=function(r){return this.reverse().find(r)},yi.prototype.invokeMap=ae(function(r,h){return typeof r=="function"?new yi(this):this.map(function(g){return e(g,r,h)})}),yi.prototype.reject=function(r){return this.filter(Xu(oi(r)))},yi.prototype.slice=function(r,h){r=wi(r);var g=this;return g.__filtered__&&(r>0||h<0)?new yi(g):(r<0?g=g.takeRight(-r):r&&(g=g.drop(r)),h!==o&&(h=wi(h),g=h<0?g.dropRight(-h):g.take(h-r)),g)},yi.prototype.takeRightWhile=function(r){return this.reverse().takeWhile(r).reverse()},yi.prototype.toArray=function(){return this.take(Ot)},Nr(yi.prototype,function(r,h){var g=/^(?:filter|find|map|reject)|While$/.test(h),O=/^(?:head|last)$/.test(h),Y=it[O?"take"+(h=="last"?"Right":""):h],ut=O||/^find/.test(h);Y&&(it.prototype[h]=function(){var _t=this.__wrapped__,bt=O?[1]:arguments,Nt=_t instanceof yi,se=bt[0],le=Nt||vi(_t),de=function(Pi){var Fi=Y.apply(it,fs([Pi],bt));return O&&ze?Fi[0]:Fi};le&&g&&typeof se=="function"&&se.length!=1&&(Nt=le=!1);var ze=this.__chain__,Je=!!this.__actions__.length,hi=ut&&!ze,Mi=Nt&&!Je;if(!ut&&le){_t=Mi?_t:new yi(this);var ui=r.apply(_t,bt);return ui.__actions__.push({func:Hu,args:[de],thisArg:o}),new qn(ui,ze)}return hi&&Mi?r.apply(this,bt):(ui=this.thru(de),hi?O?ui.value()[0]:ui.value():ui)})}),Ji(["pop","push","shift","sort","splice","unshift"],function(r){var h=On[r],g=/^(?:push|sort|unshift)$/.test(r)?"tap":"thru",O=/^(?:pop|shift)$/.test(r);it.prototype[r]=function(){var Y=arguments;if(O&&!this.__chain__){var ut=this.value();return h.apply(vi(ut)?ut:[],Y)}return this[g](function(_t){return h.apply(vi(_t)?_t:[],Y)})}}),Nr(yi.prototype,function(r,h){var g=it[h];if(g){var O=g.name+"";Ti.call(no,O)||(no[O]=[]),no[O].push({name:h,func:g})}}),no[$i(o,T).name]=[{name:"wrapper",func:o}],yi.prototype.clone=Sa,yi.prototype.reverse=Cu,yi.prototype.value=Ea,it.prototype.at=sv,it.prototype.chain=ov,it.prototype.commit=av,it.prototype.next=lv,it.prototype.plant=uv,it.prototype.reverse=cv,it.prototype.toJSON=it.prototype.valueOf=it.prototype.value=fv,it.prototype.first=it.prototype.head,io&&(it.prototype[io]=hv),it},to=Hc();Zr?((Zr.exports=to)._=to,Ys._=to):gn._=to}).call(Er)}(ru,ru.exports);var nm=ru.exports;const $u=Ju(nm);class rm{constructor(l,o=[],c=!1){_f(this,"simplifyFunc",l=>{try{l=turf.simplify(l,{tolerance:5e-4,highQuality:!1,mutate:!0})}catch{}return l});mars3d?(this.vectorArr=o,this.geoJsonType=new Map([["Point"],["LineString"],["Polygon"],["MultiPoint"],["MultiLineString"],["MultiPolygon"]]),this.avoidanceArr=[],this.editDate={id:""},this.isDynamicMasking=c):console.error("未引入指定插件")}remove(l,o=null){o&&o.isClone=="true"?window.mapClone.mapEx.removeLayer(window.mapClone.mapEx.getLayer(l,"vectorId")):(window.map.removeLayer(window.map.getLayer(l,"vectorId")),window.dynamicMasking&&window.dynamicMasking.remove(l))}add(l,o){return new Promise((c,d)=>{let u,m=o==null?void 0:o.isClone;if(typeof l!="object"){let k=window.map.getLayer(l,"vectorId");if(k)return c(k);u=this.query(l)}else{let k=window.map.getLayer(l.id,"vectorId");if(k)return c(k);u=l}let{value:_,url:y,id:S,title:A}=u;new Cesium.Resource({url:y}).fetchJson().then(k=>{let{id:D,title:N,shpInfo:E}=u,{attributes:P,geometryType:T,geometryCount:M,pointCount:R}=E;if(P){let{width:b,materialType:U,materialOptions:F,clampToGround:j,distanceDisplayCondition:J,distanceDisplayCondition_near:$,distanceDisplayCondition_far:ct,zIndex:It,label:et,fill:yt,diffHeight:G,outline:Pt,outlineStyle:Et,color:Ct,pixelSize:fe,outlineColor:re,outlineWidth:Ft,classificationType:Ot}=JSON.parse(P),Bt;switch(this.isDynamicMasking?(et.color=Cesium.Color.fromCssColorString(et.color).withAlpha(0),et.outlineColor=Cesium.Color.fromCssColorString(et.outlineColor).withAlpha(.001),et.backgroundColor=Cesium.Color.fromCssColorString(et.backgroundColor).withAlpha(.001),et.background=!1,et.outline=!1,et.show=!1):(et.color=Cesium.Color.fromCssColorString(et.color),et.outlineColor=Cesium.Color.fromCssColorString(et.outlineColor),et.backgroundColor=Cesium.Color.fromCssColorString(et.backgroundColor)),T){case"LineString":case"MultiLineString":et.backgroundPadding=5,Bt=new mars3d.layer.GeoJsonLayer({data:k,vectorId:D,symbol:{type:"polylineC",styleOptions:{width:b,clampToGround:j,distanceDisplayCondition:J,distanceDisplayCondition_far:ct,distanceDisplayCondition_near:$,materialType:U,materialOptions:F,classificationType:Ot,label:et}},hasZIndex:!0,zIndex:It});break;case"Polygon":case"MultiPolygon":U=="PolyGrass"&&(F={evenColor:new Cesium.Color(.25,.4,.1,1),oddColor:new Cesium.Color(.1,.1,.1,1),frequency:1.5}),Bt=new mars3d.layer.GeoJsonLayer({data:k,vectorId:D,symbol:{type:"polygon",styleOptions:{fill:yt,diffHeight:G,clampToGround:j,materialType:U,materialOptions:F,distanceDisplayCondition:J,distanceDisplayCondition_far:ct,distanceDisplayCondition_near:$,outlineStyle:Et,outline:Pt,classificationType:Ot,label:et}}});break;case"Point":case"MultiPoint":Bt=new mars3d.layer.GeoJsonLayer({data:k,vectorId:D,symbol:{type:"pointP",styleOptions:{color:Ct,pixelSize:fe,outline:Pt,outlineColor:re,outlineWidth:Ft,visibleDepth:!1,label:et}}});break}m?window.mapClone.mapEx.addLayer(Bt):window.map.addLayer(Bt),Bt.bindPopup(ce=>{let Yt='<div class="bim-map-popup">';return Object.keys(ce.graphic.attr).forEach(($e,Oi)=>{ce.graphic.attr[$e]&&(Yt+=`<p><b>${$e}</b> : ${ce.graphic.attr[$e]}</p>`)}),Yt+="</div>",Yt});let ke=$u.debounce(ce=>{console.log("测试shp矢量加载完成"),window.dynamicMasking.add(ce,JSON.parse(P))},500);Bt.readyPromise.then(ce=>{window.dynamicMasking&&ke(ce),c(ce)}).catch(ce=>{console.error("测试shp矢量加载失败",ce),c({tite:"【矢量】<"+N+">无法加载",type:"error",id:D,url:y})})}else c({tite:"【矢量】<"+N+">无法加载",type:"error",id:D,url:y})}).catch(k=>{console.error("数据有误",k),c({tite:"【矢量】<"+A+">链接地址有误",type:"error",id:S,url:y})})})}updateData(l){this.vectorArr=l}processingKML(l){let o,c=2e3,d=!0,{kmlInfo:u}=l,{fill:m,areaColor:_,areaSideColor:y,transparency:S,isAreaSideColor:A,minDistinct:I,textDistinct:k,textSize:D,textColor:N,fontStyle:E,outLine:P,sideColor:T,backGround:M,backGroundColor:R,clampToGround:b}=u,U={fill:m,color:_,opacity:S||.5,outline:A,outlineColor:y,outlineWidth:2,clampToGround:b,distanceDisplayCondition:!0,distanceDisplayCondition_far:k||1e6,distanceDisplayCondition_near:I||0,classificationType:o,opacity:String(S)},F={text:"{name}",horizontalOrigin:Cesium.HorizontalOrigin.CENTER,verticalOrigin:Cesium.VerticalOrigin.BOTTOM,pixelOffsetY:-10,font_size:26,color:N||"#ffffff",font_family:E||"黑体",outline:P||!0,outlineColor:T||"#000000",outlineWidth:4,scaleByDistance:!0,distanceDisplayCondition:!0,distanceDisplayCondition_far:k||1e6,distanceDisplayCondition_near:I||0,background:M||!1,backgroundColor:R||"",visibleDepth:d,clampToGround:b||!1,disableDepthTestDistance:c};return{...U,label:F}}selected(l){window.map.getLayer(l,"vectorId")&&window.map.getLayer(l,"vectorId").flyTo()}query(l){return this.vectorArr.length==0?!1:this.vectorArr.find(o=>o.id==l)}queryVector(l){return window.map.getLayer(l,"vectorId")}editVector(l,o,c){let d=window.map.getLayer(l,"vectorId"),u=Mf(o,c);d&&(d.eachGraphic(m=>{m.label.show===!1&&(delete m.label.outline,delete m.label.background,delete m.label.outlineColor,delete m.label.backgroundColor),m.setStyle({...u})}),window.dynamicMasking&&dynamicMasking.modify(l,u))}nationalBoundaries(){let l="/gis/nationalBoundaries.json",o=new mars3d.layer.GeoJsonLayer({name:"国界",url:l,format:c=>{try{c=turf.simplify(c,{tolerance:1e-5,highQuality:!1,mutate:!0})}catch(d){console.error(d)}return c},symbol:{type:"polylineC",styleOptions:{width:2,materialType:"Color",materialOptions:{color:"#CD9B1D"},distanceDisplayCondition:!0,distanceDisplayCondition_near:1e3,distanceDisplayCondition_far:2e7,clampToGround:!0,classificationType:Cesium.ClassificationType.TERRAIN}}});map.addLayer(o)}switchDynamicMasking(l){this.isDynamicMasking=l}}class sm{constructor(l=[]){mars3d?(this.terrainProviderArr=l,this.terrainProviderId="",this.events={},window.map.on(mars3d.EventType.terrainLoadError,o=>{console.error("地形服务加载失败",o),this.hide()}),window.map.viewer.scene.globe.tileLoadProgressEvent.addEventListener(o=>{window.map.viewer.scene.globe.tilesLoaded&&this.emit("load",o)})):console.error("未引入指定插件")}add(l){let{url:o,id:c}=l;if(this.terrainProviderId==c&&window.map.terrainProvider._layers)return!1;window.map.terrainProvider=mars3d.LayerUtil.createTerrainProvider({imageXyzId:c,type:"xyz",url:o,requestVertexNormals:!0,requestMetadata:!0}),this.terrainProviderId=c}show(){window.map.hasTerrain=!0}hide(){window.map.hasTerrain=!1}on(l,o){l=="load"?this.events[l]?this.events[l].push(o):this.events[l]=[o]:console.log("未开放自定义")}emit(l,...o){this.events[l]!=null&&this.events[l].forEach(c=>c(...o))}off(l,o){this.events[l]=this.events[l].filter(c=>c!==o)}once(l,o){const c=()=>{o(),this.off(l,c)};this.on(l,c)}addClip(l){return new Promise((o,c)=>{window.bimClip?o(bimClip.clipGisAdd(l)):c("挖洞工具未初始化")})}}class om{constructor(l=[],o){mars3d?(this.elevationImageArr=l,this.elevationImageLayer,o?this.gisTkone={Authorization:`Bearer ${o}`}:this.gisTkone={},this.form={brightnessVal:1.3,msaaSamples:4,surfaceOpacity:1,layerOpacity:1,layerBrightness:2,layerContrast:1,layerHue:0,layerSaturation:1,layerGamma:1},this.tdtLayer=null):console.error("未引入指定插件")}pushVector(l){this.elevationImageArr.push(l)}add(l,o=!0,c){let d;if(typeof l!="object"?d=l:d=l.imageXyzId,window.map.getLayer(d,"imageXyzId"))return!1;const{layerOpacity:u,layerBrightness:m,layerContrast:_,layerHue:y,layerSaturation:S,layerGamma:A,surfaceOpacity:I}=this.exposureEnvironmentSettings();return new Promise((k,D)=>{let N,E,P,T,M,R;if(typeof l!="object"){let b=this.query(l);b||D("缺少树结构");let{gisInfo:U}=b;N=U.id,P=U.order,E=b.url,T=U.minLevel,M=U.maxLevel}else N=l.imageXyzId,E=l.url,P=l.zIndex,T=l.minimumLevel,M=l.maximumLevel,R=l.chinaCRS;this.elevationImageLayer=new mars3d.layer.XyzLayer({imageXyzId:N,type:"xyz",url:E,hasZIndex:!0,zIndex:P.toString(),brightness:m,opacity:u,saturation:S,contrast:_,hue:y,gamma:A,alpha:I,show:!0,minimumLevel:T||0,maximumLevel:M||15,chinaCRS:R,headers:o?this.gisTkone:null}),this.elevationImageLayer.on(mars3d.EventType.load,b=>{k(b)}),window.map.addLayer(this.elevationImageLayer),c&&Object.keys(c).forEach(b=>{this.elevationImageLayer.on(fnType.get(b),U=>{c[b](U)})})})}remove(l){console.log(l),window.map.removeLayer(window.map.getLayer(l,"imageXyzId"))}query(l){return this.elevationImageArr.length==0?!1:this.elevationImageArr.find(o=>o.id==l)}initial(){this.elevationImageArr=[],this.elevationImageLayer=null}exposureEnvironmentSettings(){return localStorage.getItem("environmentSettings")?JSON.parse(localStorage.getItem("environmentSettings")):(localStorage.setItem("environmentSettings",JSON.stringify(this.form)),JSON.parse(JSON.stringify(this.form)))}}class am{constructor(l,o,...c){_f(this,"manualFreed",$u.debounce(()=>{let{lng:l,lat:o,alt:c,pitch:d}=this.map.getCameraView(),u;this.modelArray.forEach(m=>{u=m.releasedDistance?m.releasedDistance:1e4,this.disTance([l,o,c],[m.center._lng,m.center._lat,m.center._alt],this.calculateDistance(d,u))?this.map.getLayer(m.id,"modelId")&&this.emit("leave",m):this.map.getLayer(m.id,"modelId")||this.emit("enter",m)})},200));mars3d?(l&&l!=null&&(this.modelArray=l),this.showModelArray=[],o&&o!=null&&(this.map=o),this.Cesium=mars3d.Cesium,this.events={}):console.error("未引入指定插件")}on(l,o){l=="enter"||l=="leave"?this.events[l]?this.events[l].push(o):this.events[l]=[o]:console.log("未开放自定义")}emit(l,...o){this.events[l]!=null&&this.events[l].forEach(c=>c(...o))}off(l,o){this.events[l]=this.events[l].filter(c=>c!==o)}once(l,o){const c=()=>{o(),this.off(l,c)};this.on(l,c)}say(l){return this[l]}add(l,o){this[l].push(o)}remove(l,o){this[l]=this[l].filter(function(c){return c!==o})}initial(){this.modelArray=[],this.events={}}updateCustomExcavationDetails(l,o,c,d=[],u={}){let m,_,y;switch(m=this.modelArray.find(S=>S.modelId==l).customize.bimModelExcavationDetails,y=m.find((S,A)=>{if(S.id==o)return _=A,S}),c){case"delete":m.splice(_,1);break;case"update":y.excavationDetails=d;break;case"add":m.push(u);break;case"edit":y.excavationDetails=u.excavationDetails,y.kId=u.kId;break}return m}resourceRelease(){this.map.viewer.camera.moveEnd.addEventListener(()=>{this.freed()})}freed(){let{alt:l}=this.map.getCameraView();l<2e4&&(this.freed=$u.throttle(()=>{let{lng:o,lat:c,alt:d,pitch:u}=this.map.getCameraView();this.modelArray&&this.modelArray.forEach(m=>{let _=m.bimModel.releasedDistance?m.bimModel.releasedDistance:1e4;m.center&&this.disTance([o,c,d],[m.center._lng,m.center._lat,m.center._alt],this.calculateDistance(u,_))?this.map.getLayer(m.id,"modelId")&&this.emit("leave",m):this.showModelArray.indexOf(m.id)>=0&&!this.map.getLayer(m.id,"modelId")&&this.emit("enter",m)})},2e3),this.freed())}findPnodeId(l,o,c="id"){let d;if(l){for(var u=0;u<l.length;u++){let m=l[u];if(m[c]==o)return d=m,d;if(m.children&&m.children.length>0&&(d=this.findPnodeId(m.children,o,c),d))return d}return d}}disTance(l,o,c){let d,u,m;return d=Cesium.Cartesian3.fromDegrees(...l),u=Cesium.Cartesian3.fromDegrees(...o),m=Cesium.Cartesian3.distance(d,u),m>c}calculateDistance(l,o){let c=(l+180)%360-180;c=Math.max(-90,Math.min(c,90));let d=(o-o/5)*(Math.abs(c)/90)+o/5;return Math.round(d)}}class lm{constructor(l=[],o){mars3d?(this.entityArr=l,this.entityLayer=new mars3d.layer.GraphicLayer({entityId:"bimEntity"}),window.map.addLayer(this.entityLayer),this.entityItem=null,this.events={},this.entityCloneLayer):console.error("未引入指定插件")}on(l,o){l=="change"||l=="collection"?this.events[l]?this.events[l].push(o):this.events[l]=[o]:console.log("未开放自定义")}emit(l,...o){this.events[l]!=null&&this.events[l].forEach(c=>c(...o))}off(l,o){this.events[l]=this.events[l].filter(c=>c!==o)}once(l,o){const c=()=>{o(),this.off(l,c)};this.on(l,c)}add(l,o=null,c){return new Promise((d,u)=>{var m;if(this.entityLayer){let _,y,S;if(c==null?void 0:c.isClone)this.entityCloneLayer&&(y=this.query(l),S=JSON.parse(y.bimPlanPainting.graphic),S.attr=S.attr||{},S.attr.entityId=l,this.entityCloneLayer.addGraphic(S));else{if(typeof l!="object"?(_=this.entityLayer.getGraphicByAttr(l,"entityId"),y=this.query(l),S=JSON.parse(y.bimPlanPainting.graphic),S.attr=S.attr||{},S.attr.entityId=l):(_=this.entityLayer.getGraphicByAttr(l.id,"entityId"),S=JSON.parse(JSON.stringify(l)),S.attr=S.attr||{},S.attr.entityId=S.attr.entityId||o,S.attr==null?S.attr={entityId:l.id}:((m=S.attr)==null?void 0:m.entityId)==null&&o&&(S.attr.entityId=o)),_)return d();this.entityLayer.addGraphic(S),d(S)}}else d(),console.error("未初始化标绘实例图层")})}query(l){return this.entityArr.length==0?!1:this.entityArr.find(o=>o.id==l)}queryEntity(l){if(bimEntity.entityLayer)return bimEntity.entityLayer.getGraphicByAttr(l,"entityId")}selected(l,o=null){let c=this.entityLayer.getGraphicByAttr(l,"entityId");o==null||o.isClone,c._point&&c._point._alt>0?c.flyTo({radius:c._point._alt+500}):c.flyTo()}remove(l,o=null){(o==null?void 0:o.isClone)?this.entityCloneLayer&&this.entityCloneLayer.getGraphicByAttr(l,"entityId").remove():this.entityLayer.getGraphicByAttr(l,"entityId")&&(this.entityLayer.getGraphicByAttr(l,"entityId").remove(),this.entityItem&&(this.entityItem._state=="destroy"||this.entityItem.options.attr.entityId==l)&&(this.entityItem=null))}entityCloneLayerInit(){this.entityCloneLayer==null&&(this.entityCloneLayer=window.mapClone._mapEx.getLayer("bimEntity","entityId"))}entityCloneLayerRemove(){console.log("没用移除"),this.entityCloneLayer.remove(),this.entityCloneLayer=null}removeEntityItem(){this.entityItem=null}updateData(l){this.entityArr=l}startDrawGraphic(l){let{type:o,style:c}=l;if(o=="div")if(c.html)this.entityLayer.startDraw(l).then(d=>{setTimeout(()=>{this.entityItem=d,this.entityLayer.startEditing(d)},500)});else{let{title:d,divType:u,theme_color:m,font_color:_,scaleByDistance:y,scaleByDistance_far:S,scaleByDistance_farValue:A,scaleByDistance_near:I,scaleByDistance_nearValue:k,distanceDisplayCondition:D,distanceDisplayCondition_far:N,distanceDisplayCondition_near:E,clampToGround:P}=c,T={type:"div",style:{pointerEvents:!0,scaleByDistance:y,scaleByDistance_far:S,scaleByDistance_farValue:A,scaleByDistance_near:I,scaleByDistance_nearValue:k,distanceDisplayCondition:D,distanceDisplayCondition_far:N,distanceDisplayCondition_near:E,clampToGround:P,horizontalOrigin:Cesium.HorizontalOrigin.LEFT,verticalOrigin:Cesium.VerticalOrigin.BOTTOM}};switch(u){case"1":T.style.html=`<div class="entity-div-style entity-div-style1" style="--theme-color1:${m};--theme-font-color1:${_};">
2635
+ }`;var Mi=zd(function(){return Ni(ut,Je+"return "+de).apply(o,_t)});if(Mi.source=de,af(Mi))throw Mi;return Mi}function My(r){return Zi(r).toLowerCase()}function Sy(r){return Zi(r).toUpperCase()}function Ey(r,h,g){if(r=Zi(r),r&&(g||h===o))return ga(r);if(!r||!(h=Ye(h)))return r;var O=ar(r),Y=ar(h),ut=Qs(O,Y),_t=Eo(O,Y)+1;return xn(O,ut,_t).join("")}function by(r,h,g){if(r=Zi(r),r&&(g||h===o))return r.slice(0,va(r)+1);if(!r||!(h=Ye(h)))return r;var O=ar(r),Y=Eo(O,ar(h))+1;return xn(O,0,Y).join("")}function Ay(r,h,g){if(r=Zi(r),r&&(g||h===o))return r.replace(ls,"");if(!r||!(h=Ye(h)))return r;var O=ar(r),Y=Qs(O,ar(h));return xn(O,Y).join("")}function Cy(r,h){var g=ct,O=It;if(wn(h)){var Y="separator"in h?h.separator:Y;g="length"in h?wi(h.length):g,O="omission"in h?Ye(h.omission):O}r=Zi(r);var ut=r.length;if(Ir(r)){var _t=ar(r);ut=_t.length}if(g>=ut)return r;var bt=g-$r(O);if(bt<1)return O;var Nt=_t?xn(_t,0,bt).join(""):r.slice(0,bt);if(Y===o)return Nt+O;if(_t&&(bt+=Nt.length-bt),lf(Y)){if(r.slice(bt).search(Y)){var se,le=Nt;for(Y.global||(Y=Kn(Y.source,Zi(Gl.exec(Y))+"g")),Y.lastIndex=0;se=Y.exec(le);)var de=se.index;Nt=Nt.slice(0,de===o?bt:de)}}else if(r.indexOf(Ye(Y),bt)!=bt){var ze=Nt.lastIndexOf(Y);ze>-1&&(Nt=Nt.slice(0,ze))}return Nt+O}function Py(r){return r=Zi(r),r&&Xs.test(r)?r.replace(As,Jl):r}var Ly=De(function(r,h,g){return r+(g?" ":"")+h.toUpperCase()}),cf=Me("toUpperCase");function Dd(r,h,g){return r=Zi(r),h=g?o:h,h===o?Po(r)?Gc(r):il(r):r.match(h)||[]}var zd=ae(function(r,h){try{return _r(r,o,h)}catch(g){return af(g)?g:new ai(g)}}),Ry=Ho(function(r,h){return Ji(h,function(g){g=ho(g),ks(r,g,sf(r[g],r))}),r});function Oy(r){var h=r==null?0:r.length,g=oi();return r=h?Yi(r,function(O){if(typeof O[1]!="function")throw new lr(m);return[g(O[0]),O[1]]}):[],ae(function(O){for(var Y=-1;++Y<h;){var ut=r[Y];if(_r(ut[0],this,O))return _r(ut[1],this,O)}})}function Iy(r){return Pa(wr(r,I))}function ff(r){return function(){return r}}function Dy(r,h){return r==null||r!==r?h:r}var zy=Li(),ky=Li(!0);function Gr(r){return r}function pf(r){return H(typeof r=="function"?r:wr(r,I))}function By(r){return gt(wr(r,I))}function Ny(r,h){return At(r,wr(h,I))}var Fy=ae(function(r,h){return function(g){return e(g,r,h)}}),Uy=ae(function(r,h){return function(g){return e(r,g,h)}});function df(r,h,g){var O=Jn(h),Y=Fo(h,O);g==null&&!(wn(h)&&(Y.length||!O.length))&&(g=h,h=r,r=this,Y=Fo(h,Jn(h)));var ut=!(wn(g)&&"chain"in g)||!!g.chain,_t=Wo(r);return Ji(Y,function(bt){var Nt=h[bt];r[bt]=Nt,_t&&(r.prototype[bt]=function(){var se=this.__chain__;if(ut||se){var le=r(this.__wrapped__),de=le.__actions__=er(this.__actions__);return de.push({func:Nt,args:arguments,thisArg:r}),le.__chain__=se,le}return Nt.apply(r,fs([this.value()],arguments))})}),r}function Gy(){return gn._===this&&(gn._=Kr),this}function mf(){}function Hy(r){return r=wi(r),ae(function(h){return Z(h,r)})}var Vy=Nn(Yi),Wy=Nn(Ih),jy=Nn(Cs);function kd(r){return Kc(r)?Js(ho(r)):$t(r)}function Xy(r){return function(h){return r==null?o:ao(r,h)}}var qy=$h(),Yy=$h(!0);function gf(){return[]}function vf(){return!1}function Zy(){return{}}function Jy(){return""}function $y(){return!0}function Ky(r,h){if(r=wi(r),r<1||r>fe)return[];var g=Ot,O=Vn(r,Ot);h=oi(h),r-=Ot;for(var Y=Ls(O,h);++g<r;)h(g);return Y}function Qy(r){return vi(r)?Yi(r,ho):ts(r)?[r]:er(id(Zi(r)))}function t1(r){var h=++ur;return Zi(r)+h}var e1=Tr(function(r,h){return r+h},0),i1=hh("ceil"),n1=Tr(function(r,h){return r/h},1),r1=hh("floor");function s1(r){return r&&r.length?Ts(r,Gr,oh):o}function o1(r,h){return r&&r.length?Ts(r,oi(h,2),oh):o}function a1(r){return ma(r,Gr)}function l1(r,h){return ma(r,oi(h,2))}function h1(r){return r&&r.length?Ts(r,Gr,rt):o}function u1(r,h){return r&&r.length?Ts(r,oi(h,2),rt):o}var c1=Tr(function(r,h){return r*h},1),f1=hh("round"),p1=Tr(function(r,h){return r-h},0);function d1(r){return r&&r.length?Ks(r,Gr):0}function m1(r,h){return r&&r.length?Ks(r,oi(h,2)):0}return it.after=Bv,it.ary=pd,it.assign=S_,it.assignIn=Ad,it.assignInWith=Zu,it.assignWith=E_,it.at=b_,it.before=dd,it.bind=sf,it.bindAll=Ry,it.bindKey=md,it.castArray=Zv,it.chain=ud,it.chunk=r0,it.compact=s0,it.concat=o0,it.cond=Oy,it.conforms=Iy,it.constant=ff,it.countBy=dv,it.create=A_,it.curry=gd,it.curryRight=vd,it.debounce=_d,it.defaults=C_,it.defaultsDeep=P_,it.defer=Nv,it.delay=Fv,it.difference=a0,it.differenceBy=l0,it.differenceWith=h0,it.drop=u0,it.dropRight=c0,it.dropRightWhile=f0,it.dropWhile=p0,it.fill=d0,it.filter=gv,it.flatMap=yv,it.flatMapDeep=xv,it.flatMapDepth=wv,it.flatten=od,it.flattenDeep=m0,it.flattenDepth=g0,it.flip=Uv,it.flow=zy,it.flowRight=ky,it.fromPairs=v0,it.functions=k_,it.functionsIn=B_,it.groupBy=Tv,it.initial=y0,it.intersection=x0,it.intersectionBy=w0,it.intersectionWith=T0,it.invert=F_,it.invertBy=U_,it.invokeMap=Sv,it.iteratee=pf,it.keyBy=Ev,it.keys=Jn,it.keysIn=Ur,it.map=Vu,it.mapKeys=H_,it.mapValues=V_,it.matches=By,it.matchesProperty=Ny,it.memoize=ju,it.merge=W_,it.mergeWith=Cd,it.method=Fy,it.methodOf=Uy,it.mixin=df,it.negate=Xu,it.nthArg=Hy,it.omit=j_,it.omitBy=X_,it.once=Gv,it.orderBy=bv,it.over=Vy,it.overArgs=Hv,it.overEvery=Wy,it.overSome=jy,it.partial=of,it.partialRight=yd,it.partition=Av,it.pick=q_,it.pickBy=Pd,it.property=kd,it.propertyOf=Xy,it.pull=b0,it.pullAll=ld,it.pullAllBy=A0,it.pullAllWith=C0,it.pullAt=P0,it.range=qy,it.rangeRight=Yy,it.rearg=Vv,it.reject=Lv,it.remove=L0,it.rest=Wv,it.reverse=nf,it.sampleSize=Ov,it.set=Z_,it.setWith=J_,it.shuffle=Iv,it.slice=R0,it.sortBy=kv,it.sortedUniq=N0,it.sortedUniqBy=F0,it.split=yy,it.spread=jv,it.tail=U0,it.take=G0,it.takeRight=H0,it.takeRightWhile=V0,it.takeWhile=W0,it.tap=sv,it.throttle=Xv,it.thru=Hu,it.toArray=Sd,it.toPairs=Ld,it.toPairsIn=Rd,it.toPath=Qy,it.toPlainObject=bd,it.transform=$_,it.unary=qv,it.union=j0,it.unionBy=X0,it.unionWith=q0,it.uniq=Y0,it.uniqBy=Z0,it.uniqWith=J0,it.unset=K_,it.unzip=rf,it.unzipWith=hd,it.update=Q_,it.updateWith=ty,it.values=fh,it.valuesIn=ey,it.without=$0,it.words=Dd,it.wrap=Yv,it.xor=K0,it.xorBy=Q0,it.xorWith=tv,it.zip=ev,it.zipObject=iv,it.zipObjectDeep=nv,it.zipWith=rv,it.entries=Ld,it.entriesIn=Rd,it.extend=Ad,it.extendWith=Zu,df(it,it),it.add=e1,it.attempt=zd,it.camelCase=sy,it.capitalize=Od,it.ceil=i1,it.clamp=iy,it.clone=Jv,it.cloneDeep=Kv,it.cloneDeepWith=Qv,it.cloneWith=$v,it.conformsTo=t_,it.deburr=Id,it.defaultTo=Dy,it.divide=n1,it.endsWith=oy,it.eq=Fs,it.escape=ay,it.escapeRegExp=ly,it.every=mv,it.find=vv,it.findIndex=rd,it.findKey=L_,it.findLast=_v,it.findLastIndex=sd,it.findLastKey=R_,it.floor=r1,it.forEach=cd,it.forEachRight=fd,it.forIn=O_,it.forInRight=I_,it.forOwn=D_,it.forOwnRight=z_,it.get=hf,it.gt=e_,it.gte=i_,it.has=N_,it.hasIn=uf,it.head=ad,it.identity=Gr,it.includes=Mv,it.indexOf=_0,it.inRange=ny,it.invoke=G_,it.isArguments=bl,it.isArray=vi,it.isArrayBuffer=n_,it.isArrayLike=Fr,it.isArrayLikeObject=Dn,it.isBoolean=r_,it.isBuffer=Da,it.isDate=s_,it.isElement=o_,it.isEmpty=a_,it.isEqual=l_,it.isEqualWith=h_,it.isError=af,it.isFinite=u_,it.isFunction=Wo,it.isInteger=xd,it.isLength=qu,it.isMap=wd,it.isMatch=c_,it.isMatchWith=f_,it.isNaN=p_,it.isNative=d_,it.isNil=g_,it.isNull=m_,it.isNumber=Td,it.isObject=wn,it.isObjectLike=Ln,it.isPlainObject=eu,it.isRegExp=lf,it.isSafeInteger=v_,it.isSet=Md,it.isString=Yu,it.isSymbol=ts,it.isTypedArray=ch,it.isUndefined=__,it.isWeakMap=y_,it.isWeakSet=x_,it.join=M0,it.kebabCase=hy,it.last=Es,it.lastIndexOf=S0,it.lowerCase=uy,it.lowerFirst=cy,it.lt=w_,it.lte=T_,it.max=s1,it.maxBy=o1,it.mean=a1,it.meanBy=l1,it.min=h1,it.minBy=u1,it.stubArray=gf,it.stubFalse=vf,it.stubObject=Zy,it.stubString=Jy,it.stubTrue=$y,it.multiply=c1,it.nth=E0,it.noConflict=Gy,it.noop=mf,it.now=Wu,it.pad=fy,it.padEnd=py,it.padStart=dy,it.parseInt=my,it.random=ry,it.reduce=Cv,it.reduceRight=Pv,it.repeat=gy,it.replace=vy,it.result=Y_,it.round=f1,it.runInContext=Lt,it.sample=Rv,it.size=Dv,it.snakeCase=_y,it.some=zv,it.sortedIndex=O0,it.sortedIndexBy=I0,it.sortedIndexOf=D0,it.sortedLastIndex=z0,it.sortedLastIndexBy=k0,it.sortedLastIndexOf=B0,it.startCase=xy,it.startsWith=wy,it.subtract=p1,it.sum=d1,it.sumBy=m1,it.template=Ty,it.times=Ky,it.toFinite=jo,it.toInteger=wi,it.toLength=Ed,it.toLower=My,it.toNumber=bs,it.toSafeInteger=M_,it.toString=Zi,it.toUpper=Sy,it.trim=Ey,it.trimEnd=by,it.trimStart=Ay,it.truncate=Cy,it.unescape=Py,it.uniqueId=t1,it.upperCase=Ly,it.upperFirst=cf,it.each=cd,it.eachRight=fd,it.first=ad,df(it,function(){var r={};return Nr(it,function(h,g){Ti.call(it.prototype,g)||(r[g]=h)}),r}(),{chain:!1}),it.VERSION=c,Ji(["bind","bindKey","curry","curryRight","partial","partialRight"],function(r){it[r].placeholder=it}),Ji(["drop","take"],function(r,h){yi.prototype[r]=function(g){g=g===o?1:vn(wi(g),0);var O=this.__filtered__&&!h?new yi(this):this.clone();return O.__filtered__?O.__takeCount__=Vn(g,O.__takeCount__):O.__views__.push({size:Vn(g,Ot),type:r+(O.__dir__<0?"Right":"")}),O},yi.prototype[r+"Right"]=function(g){return this.reverse()[r](g).reverse()}}),Ji(["filter","map","takeWhile"],function(r,h){var g=h+1,O=g==G||g==Et;yi.prototype[r]=function(Y){var ut=this.clone();return ut.__iteratees__.push({iteratee:oi(Y,3),type:g}),ut.__filtered__=ut.__filtered__||O,ut}}),Ji(["head","last"],function(r,h){var g="take"+(h?"Right":"");yi.prototype[r]=function(){return this[g](1).value()[0]}}),Ji(["initial","tail"],function(r,h){var g="drop"+(h?"":"Right");yi.prototype[r]=function(){return this.__filtered__?new yi(this):this[g](1)}}),yi.prototype.compact=function(){return this.filter(Gr)},yi.prototype.find=function(r){return this.filter(r).head()},yi.prototype.findLast=function(r){return this.reverse().find(r)},yi.prototype.invokeMap=ae(function(r,h){return typeof r=="function"?new yi(this):this.map(function(g){return e(g,r,h)})}),yi.prototype.reject=function(r){return this.filter(Xu(oi(r)))},yi.prototype.slice=function(r,h){r=wi(r);var g=this;return g.__filtered__&&(r>0||h<0)?new yi(g):(r<0?g=g.takeRight(-r):r&&(g=g.drop(r)),h!==o&&(h=wi(h),g=h<0?g.dropRight(-h):g.take(h-r)),g)},yi.prototype.takeRightWhile=function(r){return this.reverse().takeWhile(r).reverse()},yi.prototype.toArray=function(){return this.take(Ot)},Nr(yi.prototype,function(r,h){var g=/^(?:filter|find|map|reject)|While$/.test(h),O=/^(?:head|last)$/.test(h),Y=it[O?"take"+(h=="last"?"Right":""):h],ut=O||/^find/.test(h);Y&&(it.prototype[h]=function(){var _t=this.__wrapped__,bt=O?[1]:arguments,Nt=_t instanceof yi,se=bt[0],le=Nt||vi(_t),de=function(Pi){var Fi=Y.apply(it,fs([Pi],bt));return O&&ze?Fi[0]:Fi};le&&g&&typeof se=="function"&&se.length!=1&&(Nt=le=!1);var ze=this.__chain__,Je=!!this.__actions__.length,hi=ut&&!ze,Mi=Nt&&!Je;if(!ut&&le){_t=Mi?_t:new yi(this);var ui=r.apply(_t,bt);return ui.__actions__.push({func:Hu,args:[de],thisArg:o}),new qn(ui,ze)}return hi&&Mi?r.apply(this,bt):(ui=this.thru(de),hi?O?ui.value()[0]:ui.value():ui)})}),Ji(["pop","push","shift","sort","splice","unshift"],function(r){var h=On[r],g=/^(?:push|sort|unshift)$/.test(r)?"tap":"thru",O=/^(?:pop|shift)$/.test(r);it.prototype[r]=function(){var Y=arguments;if(O&&!this.__chain__){var ut=this.value();return h.apply(vi(ut)?ut:[],Y)}return this[g](function(_t){return h.apply(vi(_t)?_t:[],Y)})}}),Nr(yi.prototype,function(r,h){var g=it[h];if(g){var O=g.name+"";Ti.call(no,O)||(no[O]=[]),no[O].push({name:h,func:g})}}),no[$i(o,T).name]=[{name:"wrapper",func:o}],yi.prototype.clone=Sa,yi.prototype.reverse=Cu,yi.prototype.value=Ea,it.prototype.at=ov,it.prototype.chain=av,it.prototype.commit=lv,it.prototype.next=hv,it.prototype.plant=cv,it.prototype.reverse=fv,it.prototype.toJSON=it.prototype.valueOf=it.prototype.value=pv,it.prototype.first=it.prototype.head,io&&(it.prototype[io]=uv),it},to=Hc();Zr?((Zr.exports=to)._=to,Ys._=to):gn._=to}).call(Er)}(ru,ru.exports);var rm=ru.exports;const $u=Ju(rm);class sm{constructor(a,o=[],c=!1){_f(this,"simplifyFunc",a=>{try{a=turf.simplify(a,{tolerance:5e-4,highQuality:!1,mutate:!0})}catch{}return a});mars3d?(this.vectorArr=o,this.geoJsonType=new Map([["Point"],["LineString"],["Polygon"],["MultiPoint"],["MultiLineString"],["MultiPolygon"]]),this.avoidanceArr=[],this.editDate={id:""},this.isDynamicMasking=c):console.error("未引入指定插件")}remove(a,o=null){o&&o.isClone=="true"?window.mapClone.mapEx.removeLayer(window.mapClone.mapEx.getLayer(a,"vectorId")):(window.map.removeLayer(window.map.getLayer(a,"vectorId")),window.dynamicMasking&&window.dynamicMasking.remove(a))}add(a,o){return new Promise((c,d)=>{let u,m=o==null?void 0:o.isClone;if(typeof a!="object"){let k=window.map.getLayer(a,"vectorId");if(k)return c(k);u=this.query(a)}else{let k=window.map.getLayer(a.id,"vectorId");if(k)return c(k);u=a}let{value:_,url:y,id:S,title:A}=u;new Cesium.Resource({url:y}).fetchJson().then(k=>{let{id:D,title:F,shpInfo:E}=u,{attributes:L,geometryType:T,geometryCount:M,pointCount:R}=E;if(L){let{width:b,materialType:U,materialOptions:N,clampToGround:j,distanceDisplayCondition:J,distanceDisplayCondition_near:$,distanceDisplayCondition_far:ct,zIndex:It,label:et,fill:yt,diffHeight:G,outline:Pt,outlineStyle:Et,color:Ct,pixelSize:fe,outlineColor:re,outlineWidth:Ft,classificationType:Ot}=JSON.parse(L),Bt;switch(this.isDynamicMasking?(et.color=Cesium.Color.fromCssColorString(et.color).withAlpha(0),et.outlineColor=Cesium.Color.fromCssColorString(et.outlineColor).withAlpha(.001),et.backgroundColor=Cesium.Color.fromCssColorString(et.backgroundColor).withAlpha(.001),et.background=!1,et.outline=!1,et.show=!1):(et.color=Cesium.Color.fromCssColorString(et.color),et.outlineColor=Cesium.Color.fromCssColorString(et.outlineColor),et.backgroundColor=Cesium.Color.fromCssColorString(et.backgroundColor)),T){case"LineString":case"MultiLineString":et.backgroundPadding=5,Bt=new mars3d.layer.GeoJsonLayer({data:k,vectorId:D,symbol:{type:"polylineC",styleOptions:{width:b,clampToGround:j,distanceDisplayCondition:J,distanceDisplayCondition_far:ct,distanceDisplayCondition_near:$,materialType:U,materialOptions:N,classificationType:Ot,label:et}},hasZIndex:!0,zIndex:It});break;case"Polygon":case"MultiPolygon":U=="PolyGrass"&&(N={evenColor:new Cesium.Color(.25,.4,.1,1),oddColor:new Cesium.Color(.1,.1,.1,1),frequency:1.5}),Bt=new mars3d.layer.GeoJsonLayer({data:k,vectorId:D,symbol:{type:"polygon",styleOptions:{fill:yt,diffHeight:G,clampToGround:j,materialType:U,materialOptions:N,distanceDisplayCondition:J,distanceDisplayCondition_far:ct,distanceDisplayCondition_near:$,outlineStyle:Et,outline:Pt,classificationType:Ot,label:et}}});break;case"Point":case"MultiPoint":Bt=new mars3d.layer.GeoJsonLayer({data:k,vectorId:D,symbol:{type:"pointP",styleOptions:{color:Ct,pixelSize:fe,outline:Pt,outlineColor:re,outlineWidth:Ft,visibleDepth:!1,label:et}}});break}m?window.mapClone.mapEx.addLayer(Bt):window.map.addLayer(Bt),Bt.bindPopup(ce=>{let Yt='<div class="bim-map-popup">';return Object.keys(ce.graphic.attr).forEach(($e,Oi)=>{ce.graphic.attr[$e]&&(Yt+=`<p><b>${$e}</b> : ${ce.graphic.attr[$e]}</p>`)}),Yt+="</div>",Yt});let ke=$u.debounce(ce=>{console.log("测试shp矢量加载完成"),window.dynamicMasking.add(ce,JSON.parse(L))},500);Bt.readyPromise.then(ce=>{window.dynamicMasking&&ke(ce),c(ce)}).catch(ce=>{console.error("测试shp矢量加载失败",ce),c({tite:"【矢量】<"+F+">无法加载",type:"error",id:D,url:y})})}else c({tite:"【矢量】<"+F+">无法加载",type:"error",id:D,url:y})}).catch(k=>{console.error("数据有误",k),c({tite:"【矢量】<"+A+">链接地址有误",type:"error",id:S,url:y})})})}updateData(a){this.vectorArr=a}processingKML(a){let o,c=2e3,d=!0,{kmlInfo:u}=a,{fill:m,areaColor:_,areaSideColor:y,transparency:S,isAreaSideColor:A,minDistinct:I,textDistinct:k,textSize:D,textColor:F,fontStyle:E,outLine:L,sideColor:T,backGround:M,backGroundColor:R,clampToGround:b}=u,U={fill:m,color:_,opacity:S||.5,outline:A,outlineColor:y,outlineWidth:2,clampToGround:b,distanceDisplayCondition:!0,distanceDisplayCondition_far:k||1e6,distanceDisplayCondition_near:I||0,classificationType:o,opacity:String(S)},N={text:"{name}",horizontalOrigin:Cesium.HorizontalOrigin.CENTER,verticalOrigin:Cesium.VerticalOrigin.BOTTOM,pixelOffsetY:-10,font_size:26,color:F||"#ffffff",font_family:E||"黑体",outline:L||!0,outlineColor:T||"#000000",outlineWidth:4,scaleByDistance:!0,distanceDisplayCondition:!0,distanceDisplayCondition_far:k||1e6,distanceDisplayCondition_near:I||0,background:M||!1,backgroundColor:R||"",visibleDepth:d,clampToGround:b||!1,disableDepthTestDistance:c};return{...U,label:N}}selected(a){window.map.getLayer(a,"vectorId")&&window.map.getLayer(a,"vectorId").flyTo()}query(a){return this.vectorArr.length==0?!1:this.vectorArr.find(o=>o.id==a)}queryVector(a){return window.map.getLayer(a,"vectorId")}editVector(a,o,c){let d=window.map.getLayer(a,"vectorId"),u=Mf(o,c);d&&(d.eachGraphic(m=>{m.label.show===!1&&(delete m.label.outline,delete m.label.background,delete m.label.outlineColor,delete m.label.backgroundColor),m.setStyle({...u})}),window.dynamicMasking&&dynamicMasking.modify(a,u))}nationalBoundaries(){let a="/gis/nationalBoundaries.json",o=new mars3d.layer.GeoJsonLayer({name:"国界",url:a,format:c=>{try{c=turf.simplify(c,{tolerance:1e-5,highQuality:!1,mutate:!0})}catch(d){console.error(d)}return c},symbol:{type:"polylineC",styleOptions:{width:2,materialType:"Color",materialOptions:{color:"#CD9B1D"},distanceDisplayCondition:!0,distanceDisplayCondition_near:1e3,distanceDisplayCondition_far:2e7,clampToGround:!0,classificationType:Cesium.ClassificationType.TERRAIN}}});map.addLayer(o)}switchDynamicMasking(a){this.isDynamicMasking=a}}class om{constructor(a=[]){mars3d?(this.terrainProviderArr=a,this.terrainProviderId="",this.events={},window.map.on(mars3d.EventType.terrainLoadError,o=>{console.error("地形服务加载失败",o),this.hide()}),window.map.viewer.scene.globe.tileLoadProgressEvent.addEventListener(o=>{window.map.viewer.scene.globe.tilesLoaded&&this.emit("load",o)})):console.error("未引入指定插件")}add(a){let{url:o,id:c}=a;if(this.terrainProviderId==c&&window.map.terrainProvider._layers)return!1;window.map.terrainProvider=mars3d.LayerUtil.createTerrainProvider({imageXyzId:c,type:"xyz",url:o,requestVertexNormals:!0,requestMetadata:!0}),this.terrainProviderId=c}show(){window.map.hasTerrain=!0}hide(){window.map.hasTerrain=!1}on(a,o){a=="load"?this.events[a]?this.events[a].push(o):this.events[a]=[o]:console.log("未开放自定义")}emit(a,...o){this.events[a]!=null&&this.events[a].forEach(c=>c(...o))}off(a,o){this.events[a]=this.events[a].filter(c=>c!==o)}once(a,o){const c=()=>{o(),this.off(a,c)};this.on(a,c)}addClip(a){return new Promise((o,c)=>{window.bimClip?o(bimClip.clipGisAdd(a)):c("挖洞工具未初始化")})}}class am{constructor(a=[],o){mars3d?(this.elevationImageArr=a,this.elevationImageLayer,o?this.gisTkone={Authorization:`Bearer ${o}`}:this.gisTkone={},this.form={brightnessVal:1.3,msaaSamples:4,surfaceOpacity:1,layerOpacity:1,layerBrightness:2,layerContrast:1,layerHue:0,layerSaturation:1,layerGamma:1},this.tdtLayer=null):console.error("未引入指定插件")}pushVector(a){this.elevationImageArr.push(a)}add(a,o=!0,c){let d;if(typeof a!="object"?d=a:d=a.imageXyzId,window.map.getLayer(d,"imageXyzId"))return!1;const{layerOpacity:u,layerBrightness:m,layerContrast:_,layerHue:y,layerSaturation:S,layerGamma:A,surfaceOpacity:I}=this.exposureEnvironmentSettings();return new Promise((k,D)=>{let F,E,L,T,M,R;if(typeof a!="object"){let b=this.query(a);b||D("缺少树结构");let{gisInfo:U}=b;F=U.id,L=U.order,E=b.url,T=U.minLevel,M=U.maxLevel}else F=a.imageXyzId,E=a.url,L=a.zIndex,T=a.minimumLevel,M=a.maximumLevel,R=a.chinaCRS;this.elevationImageLayer=new mars3d.layer.XyzLayer({imageXyzId:F,type:"xyz",url:E,hasZIndex:!0,zIndex:L.toString(),brightness:m,opacity:u,saturation:S,contrast:_,hue:y,gamma:A,alpha:I,show:!0,minimumLevel:T||0,maximumLevel:M||15,chinaCRS:R,headers:o?this.gisTkone:null}),this.elevationImageLayer.on(mars3d.EventType.load,b=>{k(b)}),window.map.addLayer(this.elevationImageLayer),c&&Object.keys(c).forEach(b=>{this.elevationImageLayer.on(fnType.get(b),U=>{c[b](U)})})})}remove(a){console.log(a),window.map.removeLayer(window.map.getLayer(a,"imageXyzId"))}query(a){return this.elevationImageArr.length==0?!1:this.elevationImageArr.find(o=>o.id==a)}initial(){this.elevationImageArr=[],this.elevationImageLayer=null}exposureEnvironmentSettings(){return localStorage.getItem("environmentSettings")?JSON.parse(localStorage.getItem("environmentSettings")):(localStorage.setItem("environmentSettings",JSON.stringify(this.form)),JSON.parse(JSON.stringify(this.form)))}}class lm{constructor(a,o,...c){_f(this,"manualFreed",$u.debounce(()=>{let{lng:a,lat:o,alt:c,pitch:d}=this.map.getCameraView(),u;this.modelArray.forEach(m=>{u=m.releasedDistance?m.releasedDistance:1e4,this.disTance([a,o,c],[m.center._lng,m.center._lat,m.center._alt],this.calculateDistance(d,u))?this.map.getLayer(m.id,"modelId")&&this.emit("leave",m):this.map.getLayer(m.id,"modelId")||this.emit("enter",m)})},200));mars3d?(a&&a!=null&&(this.modelArray=a),this.showModelArray=[],o&&o!=null&&(this.map=o),this.Cesium=mars3d.Cesium,this.events={}):console.error("未引入指定插件")}on(a,o){a=="enter"||a=="leave"?this.events[a]?this.events[a].push(o):this.events[a]=[o]:console.log("未开放自定义")}emit(a,...o){this.events[a]!=null&&this.events[a].forEach(c=>c(...o))}off(a,o){this.events[a]=this.events[a].filter(c=>c!==o)}once(a,o){const c=()=>{o(),this.off(a,c)};this.on(a,c)}say(a){return this[a]}add(a,o){this[a].push(o)}remove(a,o){this[a]=this[a].filter(function(c){return c!==o})}initial(){this.modelArray=[],this.events={}}updateCustomExcavationDetails(a,o,c,d=[],u={}){let m,_,y;switch(m=this.modelArray.find(S=>S.modelId==a).customize.bimModelExcavationDetails,y=m.find((S,A)=>{if(S.id==o)return _=A,S}),c){case"delete":m.splice(_,1);break;case"update":y.excavationDetails=d;break;case"add":m.push(u);break;case"edit":y.excavationDetails=u.excavationDetails,y.kId=u.kId;break}return m}resourceRelease(){this.map.viewer.camera.moveEnd.addEventListener(()=>{this.freed()})}freed(){let{alt:a}=this.map.getCameraView();a<2e4&&(this.freed=$u.throttle(()=>{let{lng:o,lat:c,alt:d,pitch:u}=this.map.getCameraView();this.modelArray&&this.modelArray.forEach(m=>{let _=m.bimModel.releasedDistance?m.bimModel.releasedDistance:1e4;m.center&&this.disTance([o,c,d],[m.center._lng,m.center._lat,m.center._alt],this.calculateDistance(u,_))?this.map.getLayer(m.id,"modelId")&&this.emit("leave",m):this.showModelArray.indexOf(m.id)>=0&&!this.map.getLayer(m.id,"modelId")&&this.emit("enter",m)})},2e3),this.freed())}findPnodeId(a,o,c="id"){let d;if(a){for(var u=0;u<a.length;u++){let m=a[u];if(m[c]==o)return d=m,d;if(m.children&&m.children.length>0&&(d=this.findPnodeId(m.children,o,c),d))return d}return d}}disTance(a,o,c){let d,u,m;return d=Cesium.Cartesian3.fromDegrees(...a),u=Cesium.Cartesian3.fromDegrees(...o),m=Cesium.Cartesian3.distance(d,u),m>c}calculateDistance(a,o){let c=(a+180)%360-180;c=Math.max(-90,Math.min(c,90));let d=(o-o/5)*(Math.abs(c)/90)+o/5;return Math.round(d)}}class hm{constructor(a=[],o){mars3d?(this.entityArr=a,this.entityLayer=new mars3d.layer.GraphicLayer({entityId:"bimEntity"}),window.map.addLayer(this.entityLayer),this.entityItem=null,this.events={},this.entityCloneLayer):console.error("未引入指定插件")}on(a,o){a=="change"||a=="collection"?this.events[a]?this.events[a].push(o):this.events[a]=[o]:console.log("未开放自定义")}emit(a,...o){this.events[a]!=null&&this.events[a].forEach(c=>c(...o))}off(a,o){this.events[a]=this.events[a].filter(c=>c!==o)}once(a,o){const c=()=>{o(),this.off(a,c)};this.on(a,c)}add(a,o=null,c){return new Promise((d,u)=>{var m;if(this.entityLayer){let _,y,S;if(c==null?void 0:c.isClone)this.entityCloneLayer&&(y=this.query(a),S=JSON.parse(y.bimPlanPainting.graphic),S.attr=S.attr||{},S.attr.entityId=a,this.entityCloneLayer.addGraphic(S));else{if(typeof a!="object"?(_=this.entityLayer.getGraphicByAttr(a,"entityId"),y=this.query(a),S=JSON.parse(y.bimPlanPainting.graphic),S.attr=S.attr||{},S.attr.entityId=a):(_=this.entityLayer.getGraphicByAttr(a.id,"entityId"),S=JSON.parse(JSON.stringify(a)),S.attr=S.attr||{},S.attr.entityId=S.attr.entityId||o,S.attr==null?S.attr={entityId:a.id}:((m=S.attr)==null?void 0:m.entityId)==null&&o&&(S.attr.entityId=o)),_)return d();this.entityLayer.addGraphic(S),d(S)}}else d(),console.error("未初始化标绘实例图层")})}query(a){return this.entityArr.length==0?!1:this.entityArr.find(o=>o.id==a)}queryEntity(a){if(bimEntity.entityLayer)return bimEntity.entityLayer.getGraphicByAttr(a,"entityId")}selected(a,o=null){let c=this.entityLayer.getGraphicByAttr(a,"entityId");o==null||o.isClone,c._point&&c._point._alt>0?c.flyTo({radius:c._point._alt+500}):c.flyTo()}remove(a,o=null){(o==null?void 0:o.isClone)?this.entityCloneLayer&&this.entityCloneLayer.getGraphicByAttr(a,"entityId").remove():this.entityLayer.getGraphicByAttr(a,"entityId")&&(this.entityLayer.getGraphicByAttr(a,"entityId").remove(),this.entityItem&&(this.entityItem._state=="destroy"||this.entityItem.options.attr.entityId==a)&&(this.entityItem=null))}entityCloneLayerInit(){this.entityCloneLayer==null&&(this.entityCloneLayer=window.mapClone._mapEx.getLayer("bimEntity","entityId"))}entityCloneLayerRemove(){console.log("没用移除"),this.entityCloneLayer.remove(),this.entityCloneLayer=null}removeEntityItem(){this.entityItem=null}updateData(a){this.entityArr=a}startDrawGraphic(a){let{type:o,style:c}=a;if(o=="div")if(c.html)this.entityLayer.startDraw(a).then(d=>{setTimeout(()=>{this.entityItem=d,this.entityLayer.startEditing(d)},500)});else{let{title:d,divType:u,theme_color:m,font_color:_,scaleByDistance:y,scaleByDistance_far:S,scaleByDistance_farValue:A,scaleByDistance_near:I,scaleByDistance_nearValue:k,distanceDisplayCondition:D,distanceDisplayCondition_far:F,distanceDisplayCondition_near:E,clampToGround:L}=c,T={type:"div",style:{pointerEvents:!0,scaleByDistance:y,scaleByDistance_far:S,scaleByDistance_farValue:A,scaleByDistance_near:I,scaleByDistance_nearValue:k,distanceDisplayCondition:D,distanceDisplayCondition_far:F,distanceDisplayCondition_near:E,clampToGround:L,horizontalOrigin:Cesium.HorizontalOrigin.LEFT,verticalOrigin:Cesium.VerticalOrigin.BOTTOM}};switch(u){case"1":T.style.html=`<div class="entity-div-style entity-div-style1" style="--theme-color1:${m};--theme-font-color1:${_};">
2636
2636
  <div class="title">${d}</div>
2637
- </div>`,T.style.horizontalOrigin=Cesium.HorizontalOrigin.CENTER;break}this.entityLayer.startDraw(T).then(M=>{setTimeout(()=>{this.entityItem=M,this.entityLayer.startEditing(M)},500)})}else this.entityLayer.startDraw(l).then(d=>{setTimeout(()=>{this.entityItem=d,this.entityLayer.startEditing(d)},500)})}stopDraw(l=!0){this.entityLayer&&this.entityLayer.stopDraw(),l&&this.entityItem&&(this.entityItem.stopEditing(),this.entityItem.remove(),this.entityItem=null)}updateEntityItem(l){let o=this.entityLayer.getGraphicByAttr(l,"entityId");o&&(this.entityItem=o)}edit(l,o,c,d){let u=Mf(o,c);o.vectorStyle&&this.entityItem&&(o.vectorStyle.divType==5?this.entityItem.setStyle({...u,horizontalOrigin:Cesium.HorizontalOrigin.LEFT}):this.entityItem.setStyle({...u}))}enableDragging(l=!0){l?this.entityLayer.startEditing(this.entityItem):(this.entityLayer.stopDraw(),this.entityItem&&this.entityItem.stopEditing())}addRightMenu(){this.entityLayer.bindContextMenu([{text:"编辑对象",callback:l=>{this.emit("change",l)}},{text:"收藏对象",callback:l=>{this.emit("collection",l)}}])}removeRightMenu(){this.entityLayer.hasContextMenu()&&this.entityLayer.unbindContextMenu()}processDivData(l){let o={"--theme-color1":"theme_color","--theme-font-color1":"font_color","--theme-color2":"theme_color2","--theme-color3":"theme_color3"},c={title:"",theme_color:"",font_color:"",content:"",divType:"",divStyle:{}};const d=document.createElement("div");d.innerHTML=l;const u=d.querySelector(".entity-div-style");return console.log("解耦",u),Object.keys(o).forEach(m=>{m=="--theme-color2"||m=="--theme-color3"?c.divStyle[o[m]]=u.style.getPropertyValue(m)||"#fff":c[o[m]]=u.style.getPropertyValue(m)}),c.title=u.querySelector(".title")?u.querySelector(".title").innerText:"标题",c.content=u.querySelector(".content")?u.querySelector(".content").innerText:"内容",c.divType=u.classList[1]?u.classList[1].replace("entity-div-style",""):"",c}updateHtml(l,o){let{theme_color:c,font_color:d,title:u,content:m,divStyle:_}=o,{theme_color2:y,theme_color3:S}=_,A="";switch(l){case"1":A=`<div class="entity-div-style entity-div-style1" style="--theme-color1:${c};--theme-font-color1:${d};">
2637
+ </div>`,T.style.horizontalOrigin=Cesium.HorizontalOrigin.CENTER;break}this.entityLayer.startDraw(T).then(M=>{setTimeout(()=>{this.entityItem=M,this.entityLayer.startEditing(M)},500)})}else this.entityLayer.startDraw(a).then(d=>{setTimeout(()=>{this.entityItem=d,this.entityLayer.startEditing(d)},500)})}stopDraw(a=!0){this.entityLayer&&this.entityLayer.stopDraw(),a&&this.entityItem&&(this.entityItem.stopEditing(),this.entityItem.remove(),this.entityItem=null)}updateEntityItem(a){let o=this.entityLayer.getGraphicByAttr(a,"entityId");o&&(this.entityItem=o)}edit(a,o,c,d){let u=Mf(o,c);o.vectorStyle&&this.entityItem&&(o.vectorStyle.divType==5?this.entityItem.setStyle({...u,horizontalOrigin:Cesium.HorizontalOrigin.LEFT}):this.entityItem.setStyle({...u}))}enableDragging(a=!0){a?this.entityLayer.startEditing(this.entityItem):(this.entityLayer.stopDraw(),this.entityItem&&this.entityItem.stopEditing())}addRightMenu(){this.entityLayer.bindContextMenu([{text:"编辑对象",callback:a=>{this.emit("change",a)}},{text:"收藏对象",callback:a=>{this.emit("collection",a)}}])}removeRightMenu(){this.entityLayer.hasContextMenu()&&this.entityLayer.unbindContextMenu()}processDivData(a){let o={"--theme-color1":"theme_color","--theme-font-color1":"font_color","--theme-color2":"theme_color2","--theme-color3":"theme_color3"},c={title:"",theme_color:"",font_color:"",content:"",divType:"",divStyle:{}};const d=document.createElement("div");d.innerHTML=a;const u=d.querySelector(".entity-div-style");return console.log("解耦",u),Object.keys(o).forEach(m=>{m=="--theme-color2"||m=="--theme-color3"?c.divStyle[o[m]]=u.style.getPropertyValue(m)||"#fff":c[o[m]]=u.style.getPropertyValue(m)}),c.title=u.querySelector(".title")?u.querySelector(".title").innerText:"标题",c.content=u.querySelector(".content")?u.querySelector(".content").innerText:"内容",c.divType=u.classList[1]?u.classList[1].replace("entity-div-style",""):"",c}updateHtml(a,o){let{theme_color:c,font_color:d,title:u,content:m,divStyle:_}=o,{theme_color2:y,theme_color3:S}=_,A="";switch(a){case"1":A=`<div class="entity-div-style entity-div-style1" style="--theme-color1:${c};--theme-font-color1:${d};">
2638
2638
  <div class="title">${u}</div>
2639
2639
  </div>`;break;case"2":A=`<div class="entity-div-style entity-div-style2" style="--theme-color1:${c};--theme-font-color1:${d};">
2640
2640
  <div class="title">${u}</div>
@@ -2680,8 +2680,8 @@ function print() { __p += __j.call(arguments, '') }
2680
2680
 
2681
2681
  JSZip uses the library pako released under the MIT license :
2682
2682
  https://github.com/nodeca/pako/blob/main/LICENSE
2683
- */(function(x,l){(function(o){x.exports=o()})(function(){return function o(c,d,u){function m(S,A){if(!d[S]){if(!c[S]){var I=typeof su=="function"&&su;if(!A&&I)return I(S,!0);if(_)return _(S,!0);var k=new Error("Cannot find module '"+S+"'");throw k.code="MODULE_NOT_FOUND",k}var D=d[S]={exports:{}};c[S][0].call(D.exports,function(N){var E=c[S][1][N];return m(E||N)},D,D.exports,o,c,d,u)}return d[S].exports}for(var _=typeof su=="function"&&su,y=0;y<u.length;y++)m(u[y]);return m}({1:[function(o,c,d){var u=o("./utils"),m=o("./support"),_="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=";d.encode=function(y){for(var S,A,I,k,D,N,E,P=[],T=0,M=y.length,R=M,b=u.getTypeOf(y)!=="string";T<y.length;)R=M-T,I=b?(S=y[T++],A=T<M?y[T++]:0,T<M?y[T++]:0):(S=y.charCodeAt(T++),A=T<M?y.charCodeAt(T++):0,T<M?y.charCodeAt(T++):0),k=S>>2,D=(3&S)<<4|A>>4,N=1<R?(15&A)<<2|I>>6:64,E=2<R?63&I:64,P.push(_.charAt(k)+_.charAt(D)+_.charAt(N)+_.charAt(E));return P.join("")},d.decode=function(y){var S,A,I,k,D,N,E=0,P=0,T="data:";if(y.substr(0,T.length)===T)throw new Error("Invalid base64 input, it looks like a data url.");var M,R=3*(y=y.replace(/[^A-Za-z0-9+/=]/g,"")).length/4;if(y.charAt(y.length-1)===_.charAt(64)&&R--,y.charAt(y.length-2)===_.charAt(64)&&R--,R%1!=0)throw new Error("Invalid base64 input, bad content length.");for(M=m.uint8array?new Uint8Array(0|R):new Array(0|R);E<y.length;)S=_.indexOf(y.charAt(E++))<<2|(k=_.indexOf(y.charAt(E++)))>>4,A=(15&k)<<4|(D=_.indexOf(y.charAt(E++)))>>2,I=(3&D)<<6|(N=_.indexOf(y.charAt(E++))),M[P++]=S,D!==64&&(M[P++]=A),N!==64&&(M[P++]=I);return M}},{"./support":30,"./utils":32}],2:[function(o,c,d){var u=o("./external"),m=o("./stream/DataWorker"),_=o("./stream/Crc32Probe"),y=o("./stream/DataLengthProbe");function S(A,I,k,D,N){this.compressedSize=A,this.uncompressedSize=I,this.crc32=k,this.compression=D,this.compressedContent=N}S.prototype={getContentWorker:function(){var A=new m(u.Promise.resolve(this.compressedContent)).pipe(this.compression.uncompressWorker()).pipe(new y("data_length")),I=this;return A.on("end",function(){if(this.streamInfo.data_length!==I.uncompressedSize)throw new Error("Bug : uncompressed data size mismatch")}),A},getCompressedWorker:function(){return new m(u.Promise.resolve(this.compressedContent)).withStreamInfo("compressedSize",this.compressedSize).withStreamInfo("uncompressedSize",this.uncompressedSize).withStreamInfo("crc32",this.crc32).withStreamInfo("compression",this.compression)}},S.createWorkerFrom=function(A,I,k){return A.pipe(new _).pipe(new y("uncompressedSize")).pipe(I.compressWorker(k)).pipe(new y("compressedSize")).withStreamInfo("compression",I)},c.exports=S},{"./external":6,"./stream/Crc32Probe":25,"./stream/DataLengthProbe":26,"./stream/DataWorker":27}],3:[function(o,c,d){var u=o("./stream/GenericWorker");d.STORE={magic:"\0\0",compressWorker:function(){return new u("STORE compression")},uncompressWorker:function(){return new u("STORE decompression")}},d.DEFLATE=o("./flate")},{"./flate":7,"./stream/GenericWorker":28}],4:[function(o,c,d){var u=o("./utils"),m=function(){for(var _,y=[],S=0;S<256;S++){_=S;for(var A=0;A<8;A++)_=1&_?3988292384^_>>>1:_>>>1;y[S]=_}return y}();c.exports=function(_,y){return _!==void 0&&_.length?u.getTypeOf(_)!=="string"?function(S,A,I,k){var D=m,N=k+I;S^=-1;for(var E=k;E<N;E++)S=S>>>8^D[255&(S^A[E])];return-1^S}(0|y,_,_.length,0):function(S,A,I,k){var D=m,N=k+I;S^=-1;for(var E=k;E<N;E++)S=S>>>8^D[255&(S^A.charCodeAt(E))];return-1^S}(0|y,_,_.length,0):0}},{"./utils":32}],5:[function(o,c,d){d.base64=!1,d.binary=!1,d.dir=!1,d.createFolders=!0,d.date=null,d.compression=null,d.compressionOptions=null,d.comment=null,d.unixPermissions=null,d.dosPermissions=null},{}],6:[function(o,c,d){var u=null;u=typeof Promise<"u"?Promise:o("lie"),c.exports={Promise:u}},{lie:37}],7:[function(o,c,d){var u=typeof Uint8Array<"u"&&typeof Uint16Array<"u"&&typeof Uint32Array<"u",m=o("pako"),_=o("./utils"),y=o("./stream/GenericWorker"),S=u?"uint8array":"array";function A(I,k){y.call(this,"FlateWorker/"+I),this._pako=null,this._pakoAction=I,this._pakoOptions=k,this.meta={}}d.magic="\b\0",_.inherits(A,y),A.prototype.processChunk=function(I){this.meta=I.meta,this._pako===null&&this._createPako(),this._pako.push(_.transformTo(S,I.data),!1)},A.prototype.flush=function(){y.prototype.flush.call(this),this._pako===null&&this._createPako(),this._pako.push([],!0)},A.prototype.cleanUp=function(){y.prototype.cleanUp.call(this),this._pako=null},A.prototype._createPako=function(){this._pako=new m[this._pakoAction]({raw:!0,level:this._pakoOptions.level||-1});var I=this;this._pako.onData=function(k){I.push({data:k,meta:I.meta})}},d.compressWorker=function(I){return new A("Deflate",I)},d.uncompressWorker=function(){return new A("Inflate",{})}},{"./stream/GenericWorker":28,"./utils":32,pako:38}],8:[function(o,c,d){function u(D,N){var E,P="";for(E=0;E<N;E++)P+=String.fromCharCode(255&D),D>>>=8;return P}function m(D,N,E,P,T,M){var R,b,U=D.file,F=D.compression,j=M!==S.utf8encode,J=_.transformTo("string",M(U.name)),$=_.transformTo("string",S.utf8encode(U.name)),ct=U.comment,It=_.transformTo("string",M(ct)),et=_.transformTo("string",S.utf8encode(ct)),yt=$.length!==U.name.length,G=et.length!==ct.length,Pt="",Et="",Ct="",fe=U.dir,re=U.date,Ft={crc32:0,compressedSize:0,uncompressedSize:0};N&&!E||(Ft.crc32=D.crc32,Ft.compressedSize=D.compressedSize,Ft.uncompressedSize=D.uncompressedSize);var Ot=0;N&&(Ot|=8),j||!yt&&!G||(Ot|=2048);var Bt=0,ke=0;fe&&(Bt|=16),T==="UNIX"?(ke=798,Bt|=function(Yt,$e){var Oi=Yt;return Yt||(Oi=$e?16893:33204),(65535&Oi)<<16}(U.unixPermissions,fe)):(ke=20,Bt|=function(Yt){return 63&(Yt||0)}(U.dosPermissions)),R=re.getUTCHours(),R<<=6,R|=re.getUTCMinutes(),R<<=5,R|=re.getUTCSeconds()/2,b=re.getUTCFullYear()-1980,b<<=4,b|=re.getUTCMonth()+1,b<<=5,b|=re.getUTCDate(),yt&&(Et=u(1,1)+u(A(J),4)+$,Pt+="up"+u(Et.length,2)+Et),G&&(Ct=u(1,1)+u(A(It),4)+et,Pt+="uc"+u(Ct.length,2)+Ct);var ce="";return ce+=`
2684
- \0`,ce+=u(Ot,2),ce+=F.magic,ce+=u(R,2),ce+=u(b,2),ce+=u(Ft.crc32,4),ce+=u(Ft.compressedSize,4),ce+=u(Ft.uncompressedSize,4),ce+=u(J.length,2),ce+=u(Pt.length,2),{fileRecord:I.LOCAL_FILE_HEADER+ce+J+Pt,dirRecord:I.CENTRAL_FILE_HEADER+u(ke,2)+ce+u(It.length,2)+"\0\0\0\0"+u(Bt,4)+u(P,4)+J+Pt+It}}var _=o("../utils"),y=o("../stream/GenericWorker"),S=o("../utf8"),A=o("../crc32"),I=o("../signature");function k(D,N,E,P){y.call(this,"ZipFileWorker"),this.bytesWritten=0,this.zipComment=N,this.zipPlatform=E,this.encodeFileName=P,this.streamFiles=D,this.accumulate=!1,this.contentBuffer=[],this.dirRecords=[],this.currentSourceOffset=0,this.entriesCount=0,this.currentFile=null,this._sources=[]}_.inherits(k,y),k.prototype.push=function(D){var N=D.meta.percent||0,E=this.entriesCount,P=this._sources.length;this.accumulate?this.contentBuffer.push(D):(this.bytesWritten+=D.data.length,y.prototype.push.call(this,{data:D.data,meta:{currentFile:this.currentFile,percent:E?(N+100*(E-P-1))/E:100}}))},k.prototype.openedSource=function(D){this.currentSourceOffset=this.bytesWritten,this.currentFile=D.file.name;var N=this.streamFiles&&!D.file.dir;if(N){var E=m(D,N,!1,this.currentSourceOffset,this.zipPlatform,this.encodeFileName);this.push({data:E.fileRecord,meta:{percent:0}})}else this.accumulate=!0},k.prototype.closedSource=function(D){this.accumulate=!1;var N=this.streamFiles&&!D.file.dir,E=m(D,N,!0,this.currentSourceOffset,this.zipPlatform,this.encodeFileName);if(this.dirRecords.push(E.dirRecord),N)this.push({data:function(P){return I.DATA_DESCRIPTOR+u(P.crc32,4)+u(P.compressedSize,4)+u(P.uncompressedSize,4)}(D),meta:{percent:100}});else for(this.push({data:E.fileRecord,meta:{percent:0}});this.contentBuffer.length;)this.push(this.contentBuffer.shift());this.currentFile=null},k.prototype.flush=function(){for(var D=this.bytesWritten,N=0;N<this.dirRecords.length;N++)this.push({data:this.dirRecords[N],meta:{percent:100}});var E=this.bytesWritten-D,P=function(T,M,R,b,U){var F=_.transformTo("string",U(b));return I.CENTRAL_DIRECTORY_END+"\0\0\0\0"+u(T,2)+u(T,2)+u(M,4)+u(R,4)+u(F.length,2)+F}(this.dirRecords.length,E,D,this.zipComment,this.encodeFileName);this.push({data:P,meta:{percent:100}})},k.prototype.prepareNextSource=function(){this.previous=this._sources.shift(),this.openedSource(this.previous.streamInfo),this.isPaused?this.previous.pause():this.previous.resume()},k.prototype.registerPrevious=function(D){this._sources.push(D);var N=this;return D.on("data",function(E){N.processChunk(E)}),D.on("end",function(){N.closedSource(N.previous.streamInfo),N._sources.length?N.prepareNextSource():N.end()}),D.on("error",function(E){N.error(E)}),this},k.prototype.resume=function(){return!!y.prototype.resume.call(this)&&(!this.previous&&this._sources.length?(this.prepareNextSource(),!0):this.previous||this._sources.length||this.generatedError?void 0:(this.end(),!0))},k.prototype.error=function(D){var N=this._sources;if(!y.prototype.error.call(this,D))return!1;for(var E=0;E<N.length;E++)try{N[E].error(D)}catch{}return!0},k.prototype.lock=function(){y.prototype.lock.call(this);for(var D=this._sources,N=0;N<D.length;N++)D[N].lock()},c.exports=k},{"../crc32":4,"../signature":23,"../stream/GenericWorker":28,"../utf8":31,"../utils":32}],9:[function(o,c,d){var u=o("../compressions"),m=o("./ZipFileWorker");d.generateWorker=function(_,y,S){var A=new m(y.streamFiles,S,y.platform,y.encodeFileName),I=0;try{_.forEach(function(k,D){I++;var N=function(M,R){var b=M||R,U=u[b];if(!U)throw new Error(b+" is not a valid compression method !");return U}(D.options.compression,y.compression),E=D.options.compressionOptions||y.compressionOptions||{},P=D.dir,T=D.date;D._compressWorker(N,E).withStreamInfo("file",{name:k,dir:P,date:T,comment:D.comment||"",unixPermissions:D.unixPermissions,dosPermissions:D.dosPermissions}).pipe(A)}),A.entriesCount=I}catch(k){A.error(k)}return A}},{"../compressions":3,"./ZipFileWorker":8}],10:[function(o,c,d){function u(){if(!(this instanceof u))return new u;if(arguments.length)throw new Error("The constructor with parameters has been removed in JSZip 3.0, please check the upgrade guide.");this.files=Object.create(null),this.comment=null,this.root="",this.clone=function(){var m=new u;for(var _ in this)typeof this[_]!="function"&&(m[_]=this[_]);return m}}(u.prototype=o("./object")).loadAsync=o("./load"),u.support=o("./support"),u.defaults=o("./defaults"),u.version="3.10.1",u.loadAsync=function(m,_){return new u().loadAsync(m,_)},u.external=o("./external"),c.exports=u},{"./defaults":5,"./external":6,"./load":11,"./object":15,"./support":30}],11:[function(o,c,d){var u=o("./utils"),m=o("./external"),_=o("./utf8"),y=o("./zipEntries"),S=o("./stream/Crc32Probe"),A=o("./nodejsUtils");function I(k){return new m.Promise(function(D,N){var E=k.decompressed.getContentWorker().pipe(new S);E.on("error",function(P){N(P)}).on("end",function(){E.streamInfo.crc32!==k.decompressed.crc32?N(new Error("Corrupted zip : CRC32 mismatch")):D()}).resume()})}c.exports=function(k,D){var N=this;return D=u.extend(D||{},{base64:!1,checkCRC32:!1,optimizedBinaryString:!1,createFolders:!1,decodeFileName:_.utf8decode}),A.isNode&&A.isStream(k)?m.Promise.reject(new Error("JSZip can't accept a stream when loading a zip file.")):u.prepareContent("the loaded zip file",k,!0,D.optimizedBinaryString,D.base64).then(function(E){var P=new y(D);return P.load(E),P}).then(function(E){var P=[m.Promise.resolve(E)],T=E.files;if(D.checkCRC32)for(var M=0;M<T.length;M++)P.push(I(T[M]));return m.Promise.all(P)}).then(function(E){for(var P=E.shift(),T=P.files,M=0;M<T.length;M++){var R=T[M],b=R.fileNameStr,U=u.resolve(R.fileNameStr);N.file(U,R.decompressed,{binary:!0,optimizedBinaryString:!0,date:R.date,dir:R.dir,comment:R.fileCommentStr.length?R.fileCommentStr:null,unixPermissions:R.unixPermissions,dosPermissions:R.dosPermissions,createFolders:D.createFolders}),R.dir||(N.file(U).unsafeOriginalName=b)}return P.zipComment.length&&(N.comment=P.zipComment),N})}},{"./external":6,"./nodejsUtils":14,"./stream/Crc32Probe":25,"./utf8":31,"./utils":32,"./zipEntries":33}],12:[function(o,c,d){var u=o("../utils"),m=o("../stream/GenericWorker");function _(y,S){m.call(this,"Nodejs stream input adapter for "+y),this._upstreamEnded=!1,this._bindStream(S)}u.inherits(_,m),_.prototype._bindStream=function(y){var S=this;(this._stream=y).pause(),y.on("data",function(A){S.push({data:A,meta:{percent:0}})}).on("error",function(A){S.isPaused?this.generatedError=A:S.error(A)}).on("end",function(){S.isPaused?S._upstreamEnded=!0:S.end()})},_.prototype.pause=function(){return!!m.prototype.pause.call(this)&&(this._stream.pause(),!0)},_.prototype.resume=function(){return!!m.prototype.resume.call(this)&&(this._upstreamEnded?this.end():this._stream.resume(),!0)},c.exports=_},{"../stream/GenericWorker":28,"../utils":32}],13:[function(o,c,d){var u=o("readable-stream").Readable;function m(_,y,S){u.call(this,y),this._helper=_;var A=this;_.on("data",function(I,k){A.push(I)||A._helper.pause(),S&&S(k)}).on("error",function(I){A.emit("error",I)}).on("end",function(){A.push(null)})}o("../utils").inherits(m,u),m.prototype._read=function(){this._helper.resume()},c.exports=m},{"../utils":32,"readable-stream":16}],14:[function(o,c,d){c.exports={isNode:typeof Buffer<"u",newBufferFrom:function(u,m){if(Buffer.from&&Buffer.from!==Uint8Array.from)return Buffer.from(u,m);if(typeof u=="number")throw new Error('The "data" argument must not be a number');return new Buffer(u,m)},allocBuffer:function(u){if(Buffer.alloc)return Buffer.alloc(u);var m=new Buffer(u);return m.fill(0),m},isBuffer:function(u){return Buffer.isBuffer(u)},isStream:function(u){return u&&typeof u.on=="function"&&typeof u.pause=="function"&&typeof u.resume=="function"}}},{}],15:[function(o,c,d){function u(U,F,j){var J,$=_.getTypeOf(F),ct=_.extend(j||{},A);ct.date=ct.date||new Date,ct.compression!==null&&(ct.compression=ct.compression.toUpperCase()),typeof ct.unixPermissions=="string"&&(ct.unixPermissions=parseInt(ct.unixPermissions,8)),ct.unixPermissions&&16384&ct.unixPermissions&&(ct.dir=!0),ct.dosPermissions&&16&ct.dosPermissions&&(ct.dir=!0),ct.dir&&(U=T(U)),ct.createFolders&&(J=P(U))&&M.call(this,J,!0);var It=$==="string"&&ct.binary===!1&&ct.base64===!1;j&&j.binary!==void 0||(ct.binary=!It),(F instanceof I&&F.uncompressedSize===0||ct.dir||!F||F.length===0)&&(ct.base64=!1,ct.binary=!0,F="",ct.compression="STORE",$="string");var et=null;et=F instanceof I||F instanceof y?F:N.isNode&&N.isStream(F)?new E(U,F):_.prepareContent(U,F,ct.binary,ct.optimizedBinaryString,ct.base64);var yt=new k(U,et,ct);this.files[U]=yt}var m=o("./utf8"),_=o("./utils"),y=o("./stream/GenericWorker"),S=o("./stream/StreamHelper"),A=o("./defaults"),I=o("./compressedObject"),k=o("./zipObject"),D=o("./generate"),N=o("./nodejsUtils"),E=o("./nodejs/NodejsStreamInputAdapter"),P=function(U){U.slice(-1)==="/"&&(U=U.substring(0,U.length-1));var F=U.lastIndexOf("/");return 0<F?U.substring(0,F):""},T=function(U){return U.slice(-1)!=="/"&&(U+="/"),U},M=function(U,F){return F=F!==void 0?F:A.createFolders,U=T(U),this.files[U]||u.call(this,U,null,{dir:!0,createFolders:F}),this.files[U]};function R(U){return Object.prototype.toString.call(U)==="[object RegExp]"}var b={load:function(){throw new Error("This method has been removed in JSZip 3.0, please check the upgrade guide.")},forEach:function(U){var F,j,J;for(F in this.files)J=this.files[F],(j=F.slice(this.root.length,F.length))&&F.slice(0,this.root.length)===this.root&&U(j,J)},filter:function(U){var F=[];return this.forEach(function(j,J){U(j,J)&&F.push(J)}),F},file:function(U,F,j){if(arguments.length!==1)return U=this.root+U,u.call(this,U,F,j),this;if(R(U)){var J=U;return this.filter(function(ct,It){return!It.dir&&J.test(ct)})}var $=this.files[this.root+U];return $&&!$.dir?$:null},folder:function(U){if(!U)return this;if(R(U))return this.filter(function($,ct){return ct.dir&&U.test($)});var F=this.root+U,j=M.call(this,F),J=this.clone();return J.root=j.name,J},remove:function(U){U=this.root+U;var F=this.files[U];if(F||(U.slice(-1)!=="/"&&(U+="/"),F=this.files[U]),F&&!F.dir)delete this.files[U];else for(var j=this.filter(function($,ct){return ct.name.slice(0,U.length)===U}),J=0;J<j.length;J++)delete this.files[j[J].name];return this},generate:function(){throw new Error("This method has been removed in JSZip 3.0, please check the upgrade guide.")},generateInternalStream:function(U){var F,j={};try{if((j=_.extend(U||{},{streamFiles:!1,compression:"STORE",compressionOptions:null,type:"",platform:"DOS",comment:null,mimeType:"application/zip",encodeFileName:m.utf8encode})).type=j.type.toLowerCase(),j.compression=j.compression.toUpperCase(),j.type==="binarystring"&&(j.type="string"),!j.type)throw new Error("No output type specified.");_.checkSupport(j.type),j.platform!=="darwin"&&j.platform!=="freebsd"&&j.platform!=="linux"&&j.platform!=="sunos"||(j.platform="UNIX"),j.platform==="win32"&&(j.platform="DOS");var J=j.comment||this.comment||"";F=D.generateWorker(this,j,J)}catch($){(F=new y("error")).error($)}return new S(F,j.type||"string",j.mimeType)},generateAsync:function(U,F){return this.generateInternalStream(U).accumulate(F)},generateNodeStream:function(U,F){return(U=U||{}).type||(U.type="nodebuffer"),this.generateInternalStream(U).toNodejsStream(F)}};c.exports=b},{"./compressedObject":2,"./defaults":5,"./generate":9,"./nodejs/NodejsStreamInputAdapter":12,"./nodejsUtils":14,"./stream/GenericWorker":28,"./stream/StreamHelper":29,"./utf8":31,"./utils":32,"./zipObject":35}],16:[function(o,c,d){c.exports=o("stream")},{stream:void 0}],17:[function(o,c,d){var u=o("./DataReader");function m(_){u.call(this,_);for(var y=0;y<this.data.length;y++)_[y]=255&_[y]}o("../utils").inherits(m,u),m.prototype.byteAt=function(_){return this.data[this.zero+_]},m.prototype.lastIndexOfSignature=function(_){for(var y=_.charCodeAt(0),S=_.charCodeAt(1),A=_.charCodeAt(2),I=_.charCodeAt(3),k=this.length-4;0<=k;--k)if(this.data[k]===y&&this.data[k+1]===S&&this.data[k+2]===A&&this.data[k+3]===I)return k-this.zero;return-1},m.prototype.readAndCheckSignature=function(_){var y=_.charCodeAt(0),S=_.charCodeAt(1),A=_.charCodeAt(2),I=_.charCodeAt(3),k=this.readData(4);return y===k[0]&&S===k[1]&&A===k[2]&&I===k[3]},m.prototype.readData=function(_){if(this.checkOffset(_),_===0)return[];var y=this.data.slice(this.zero+this.index,this.zero+this.index+_);return this.index+=_,y},c.exports=m},{"../utils":32,"./DataReader":18}],18:[function(o,c,d){var u=o("../utils");function m(_){this.data=_,this.length=_.length,this.index=0,this.zero=0}m.prototype={checkOffset:function(_){this.checkIndex(this.index+_)},checkIndex:function(_){if(this.length<this.zero+_||_<0)throw new Error("End of data reached (data length = "+this.length+", asked index = "+_+"). Corrupted zip ?")},setIndex:function(_){this.checkIndex(_),this.index=_},skip:function(_){this.setIndex(this.index+_)},byteAt:function(){},readInt:function(_){var y,S=0;for(this.checkOffset(_),y=this.index+_-1;y>=this.index;y--)S=(S<<8)+this.byteAt(y);return this.index+=_,S},readString:function(_){return u.transformTo("string",this.readData(_))},readData:function(){},lastIndexOfSignature:function(){},readAndCheckSignature:function(){},readDate:function(){var _=this.readInt(4);return new Date(Date.UTC(1980+(_>>25&127),(_>>21&15)-1,_>>16&31,_>>11&31,_>>5&63,(31&_)<<1))}},c.exports=m},{"../utils":32}],19:[function(o,c,d){var u=o("./Uint8ArrayReader");function m(_){u.call(this,_)}o("../utils").inherits(m,u),m.prototype.readData=function(_){this.checkOffset(_);var y=this.data.slice(this.zero+this.index,this.zero+this.index+_);return this.index+=_,y},c.exports=m},{"../utils":32,"./Uint8ArrayReader":21}],20:[function(o,c,d){var u=o("./DataReader");function m(_){u.call(this,_)}o("../utils").inherits(m,u),m.prototype.byteAt=function(_){return this.data.charCodeAt(this.zero+_)},m.prototype.lastIndexOfSignature=function(_){return this.data.lastIndexOf(_)-this.zero},m.prototype.readAndCheckSignature=function(_){return _===this.readData(4)},m.prototype.readData=function(_){this.checkOffset(_);var y=this.data.slice(this.zero+this.index,this.zero+this.index+_);return this.index+=_,y},c.exports=m},{"../utils":32,"./DataReader":18}],21:[function(o,c,d){var u=o("./ArrayReader");function m(_){u.call(this,_)}o("../utils").inherits(m,u),m.prototype.readData=function(_){if(this.checkOffset(_),_===0)return new Uint8Array(0);var y=this.data.subarray(this.zero+this.index,this.zero+this.index+_);return this.index+=_,y},c.exports=m},{"../utils":32,"./ArrayReader":17}],22:[function(o,c,d){var u=o("../utils"),m=o("../support"),_=o("./ArrayReader"),y=o("./StringReader"),S=o("./NodeBufferReader"),A=o("./Uint8ArrayReader");c.exports=function(I){var k=u.getTypeOf(I);return u.checkSupport(k),k!=="string"||m.uint8array?k==="nodebuffer"?new S(I):m.uint8array?new A(u.transformTo("uint8array",I)):new _(u.transformTo("array",I)):new y(I)}},{"../support":30,"../utils":32,"./ArrayReader":17,"./NodeBufferReader":19,"./StringReader":20,"./Uint8ArrayReader":21}],23:[function(o,c,d){d.LOCAL_FILE_HEADER="PK",d.CENTRAL_FILE_HEADER="PK",d.CENTRAL_DIRECTORY_END="PK",d.ZIP64_CENTRAL_DIRECTORY_LOCATOR="PK\x07",d.ZIP64_CENTRAL_DIRECTORY_END="PK",d.DATA_DESCRIPTOR="PK\x07\b"},{}],24:[function(o,c,d){var u=o("./GenericWorker"),m=o("../utils");function _(y){u.call(this,"ConvertWorker to "+y),this.destType=y}m.inherits(_,u),_.prototype.processChunk=function(y){this.push({data:m.transformTo(this.destType,y.data),meta:y.meta})},c.exports=_},{"../utils":32,"./GenericWorker":28}],25:[function(o,c,d){var u=o("./GenericWorker"),m=o("../crc32");function _(){u.call(this,"Crc32Probe"),this.withStreamInfo("crc32",0)}o("../utils").inherits(_,u),_.prototype.processChunk=function(y){this.streamInfo.crc32=m(y.data,this.streamInfo.crc32||0),this.push(y)},c.exports=_},{"../crc32":4,"../utils":32,"./GenericWorker":28}],26:[function(o,c,d){var u=o("../utils"),m=o("./GenericWorker");function _(y){m.call(this,"DataLengthProbe for "+y),this.propName=y,this.withStreamInfo(y,0)}u.inherits(_,m),_.prototype.processChunk=function(y){if(y){var S=this.streamInfo[this.propName]||0;this.streamInfo[this.propName]=S+y.data.length}m.prototype.processChunk.call(this,y)},c.exports=_},{"../utils":32,"./GenericWorker":28}],27:[function(o,c,d){var u=o("../utils"),m=o("./GenericWorker");function _(y){m.call(this,"DataWorker");var S=this;this.dataIsReady=!1,this.index=0,this.max=0,this.data=null,this.type="",this._tickScheduled=!1,y.then(function(A){S.dataIsReady=!0,S.data=A,S.max=A&&A.length||0,S.type=u.getTypeOf(A),S.isPaused||S._tickAndRepeat()},function(A){S.error(A)})}u.inherits(_,m),_.prototype.cleanUp=function(){m.prototype.cleanUp.call(this),this.data=null},_.prototype.resume=function(){return!!m.prototype.resume.call(this)&&(!this._tickScheduled&&this.dataIsReady&&(this._tickScheduled=!0,u.delay(this._tickAndRepeat,[],this)),!0)},_.prototype._tickAndRepeat=function(){this._tickScheduled=!1,this.isPaused||this.isFinished||(this._tick(),this.isFinished||(u.delay(this._tickAndRepeat,[],this),this._tickScheduled=!0))},_.prototype._tick=function(){if(this.isPaused||this.isFinished)return!1;var y=null,S=Math.min(this.max,this.index+16384);if(this.index>=this.max)return this.end();switch(this.type){case"string":y=this.data.substring(this.index,S);break;case"uint8array":y=this.data.subarray(this.index,S);break;case"array":case"nodebuffer":y=this.data.slice(this.index,S)}return this.index=S,this.push({data:y,meta:{percent:this.max?this.index/this.max*100:0}})},c.exports=_},{"../utils":32,"./GenericWorker":28}],28:[function(o,c,d){function u(m){this.name=m||"default",this.streamInfo={},this.generatedError=null,this.extraStreamInfo={},this.isPaused=!0,this.isFinished=!1,this.isLocked=!1,this._listeners={data:[],end:[],error:[]},this.previous=null}u.prototype={push:function(m){this.emit("data",m)},end:function(){if(this.isFinished)return!1;this.flush();try{this.emit("end"),this.cleanUp(),this.isFinished=!0}catch(m){this.emit("error",m)}return!0},error:function(m){return!this.isFinished&&(this.isPaused?this.generatedError=m:(this.isFinished=!0,this.emit("error",m),this.previous&&this.previous.error(m),this.cleanUp()),!0)},on:function(m,_){return this._listeners[m].push(_),this},cleanUp:function(){this.streamInfo=this.generatedError=this.extraStreamInfo=null,this._listeners=[]},emit:function(m,_){if(this._listeners[m])for(var y=0;y<this._listeners[m].length;y++)this._listeners[m][y].call(this,_)},pipe:function(m){return m.registerPrevious(this)},registerPrevious:function(m){if(this.isLocked)throw new Error("The stream '"+this+"' has already been used.");this.streamInfo=m.streamInfo,this.mergeStreamInfo(),this.previous=m;var _=this;return m.on("data",function(y){_.processChunk(y)}),m.on("end",function(){_.end()}),m.on("error",function(y){_.error(y)}),this},pause:function(){return!this.isPaused&&!this.isFinished&&(this.isPaused=!0,this.previous&&this.previous.pause(),!0)},resume:function(){if(!this.isPaused||this.isFinished)return!1;var m=this.isPaused=!1;return this.generatedError&&(this.error(this.generatedError),m=!0),this.previous&&this.previous.resume(),!m},flush:function(){},processChunk:function(m){this.push(m)},withStreamInfo:function(m,_){return this.extraStreamInfo[m]=_,this.mergeStreamInfo(),this},mergeStreamInfo:function(){for(var m in this.extraStreamInfo)Object.prototype.hasOwnProperty.call(this.extraStreamInfo,m)&&(this.streamInfo[m]=this.extraStreamInfo[m])},lock:function(){if(this.isLocked)throw new Error("The stream '"+this+"' has already been used.");this.isLocked=!0,this.previous&&this.previous.lock()},toString:function(){var m="Worker "+this.name;return this.previous?this.previous+" -> "+m:m}},c.exports=u},{}],29:[function(o,c,d){var u=o("../utils"),m=o("./ConvertWorker"),_=o("./GenericWorker"),y=o("../base64"),S=o("../support"),A=o("../external"),I=null;if(S.nodestream)try{I=o("../nodejs/NodejsStreamOutputAdapter")}catch{}function k(N,E){return new A.Promise(function(P,T){var M=[],R=N._internalType,b=N._outputType,U=N._mimeType;N.on("data",function(F,j){M.push(F),E&&E(j)}).on("error",function(F){M=[],T(F)}).on("end",function(){try{var F=function(j,J,$){switch(j){case"blob":return u.newBlob(u.transformTo("arraybuffer",J),$);case"base64":return y.encode(J);default:return u.transformTo(j,J)}}(b,function(j,J){var $,ct=0,It=null,et=0;for($=0;$<J.length;$++)et+=J[$].length;switch(j){case"string":return J.join("");case"array":return Array.prototype.concat.apply([],J);case"uint8array":for(It=new Uint8Array(et),$=0;$<J.length;$++)It.set(J[$],ct),ct+=J[$].length;return It;case"nodebuffer":return Buffer.concat(J);default:throw new Error("concat : unsupported type '"+j+"'")}}(R,M),U);P(F)}catch(j){T(j)}M=[]}).resume()})}function D(N,E,P){var T=E;switch(E){case"blob":case"arraybuffer":T="uint8array";break;case"base64":T="string"}try{this._internalType=T,this._outputType=E,this._mimeType=P,u.checkSupport(T),this._worker=N.pipe(new m(T)),N.lock()}catch(M){this._worker=new _("error"),this._worker.error(M)}}D.prototype={accumulate:function(N){return k(this,N)},on:function(N,E){var P=this;return N==="data"?this._worker.on(N,function(T){E.call(P,T.data,T.meta)}):this._worker.on(N,function(){u.delay(E,arguments,P)}),this},resume:function(){return u.delay(this._worker.resume,[],this._worker),this},pause:function(){return this._worker.pause(),this},toNodejsStream:function(N){if(u.checkSupport("nodestream"),this._outputType!=="nodebuffer")throw new Error(this._outputType+" is not supported by this method");return new I(this,{objectMode:this._outputType!=="nodebuffer"},N)}},c.exports=D},{"../base64":1,"../external":6,"../nodejs/NodejsStreamOutputAdapter":13,"../support":30,"../utils":32,"./ConvertWorker":24,"./GenericWorker":28}],30:[function(o,c,d){if(d.base64=!0,d.array=!0,d.string=!0,d.arraybuffer=typeof ArrayBuffer<"u"&&typeof Uint8Array<"u",d.nodebuffer=typeof Buffer<"u",d.uint8array=typeof Uint8Array<"u",typeof ArrayBuffer>"u")d.blob=!1;else{var u=new ArrayBuffer(0);try{d.blob=new Blob([u],{type:"application/zip"}).size===0}catch{try{var m=new(self.BlobBuilder||self.WebKitBlobBuilder||self.MozBlobBuilder||self.MSBlobBuilder);m.append(u),d.blob=m.getBlob("application/zip").size===0}catch{d.blob=!1}}}try{d.nodestream=!!o("readable-stream").Readable}catch{d.nodestream=!1}},{"readable-stream":16}],31:[function(o,c,d){for(var u=o("./utils"),m=o("./support"),_=o("./nodejsUtils"),y=o("./stream/GenericWorker"),S=new Array(256),A=0;A<256;A++)S[A]=252<=A?6:248<=A?5:240<=A?4:224<=A?3:192<=A?2:1;S[254]=S[254]=1;function I(){y.call(this,"utf-8 decode"),this.leftOver=null}function k(){y.call(this,"utf-8 encode")}d.utf8encode=function(D){return m.nodebuffer?_.newBufferFrom(D,"utf-8"):function(N){var E,P,T,M,R,b=N.length,U=0;for(M=0;M<b;M++)(64512&(P=N.charCodeAt(M)))==55296&&M+1<b&&(64512&(T=N.charCodeAt(M+1)))==56320&&(P=65536+(P-55296<<10)+(T-56320),M++),U+=P<128?1:P<2048?2:P<65536?3:4;for(E=m.uint8array?new Uint8Array(U):new Array(U),M=R=0;R<U;M++)(64512&(P=N.charCodeAt(M)))==55296&&M+1<b&&(64512&(T=N.charCodeAt(M+1)))==56320&&(P=65536+(P-55296<<10)+(T-56320),M++),P<128?E[R++]=P:(P<2048?E[R++]=192|P>>>6:(P<65536?E[R++]=224|P>>>12:(E[R++]=240|P>>>18,E[R++]=128|P>>>12&63),E[R++]=128|P>>>6&63),E[R++]=128|63&P);return E}(D)},d.utf8decode=function(D){return m.nodebuffer?u.transformTo("nodebuffer",D).toString("utf-8"):function(N){var E,P,T,M,R=N.length,b=new Array(2*R);for(E=P=0;E<R;)if((T=N[E++])<128)b[P++]=T;else if(4<(M=S[T]))b[P++]=65533,E+=M-1;else{for(T&=M===2?31:M===3?15:7;1<M&&E<R;)T=T<<6|63&N[E++],M--;1<M?b[P++]=65533:T<65536?b[P++]=T:(T-=65536,b[P++]=55296|T>>10&1023,b[P++]=56320|1023&T)}return b.length!==P&&(b.subarray?b=b.subarray(0,P):b.length=P),u.applyFromCharCode(b)}(D=u.transformTo(m.uint8array?"uint8array":"array",D))},u.inherits(I,y),I.prototype.processChunk=function(D){var N=u.transformTo(m.uint8array?"uint8array":"array",D.data);if(this.leftOver&&this.leftOver.length){if(m.uint8array){var E=N;(N=new Uint8Array(E.length+this.leftOver.length)).set(this.leftOver,0),N.set(E,this.leftOver.length)}else N=this.leftOver.concat(N);this.leftOver=null}var P=function(M,R){var b;for((R=R||M.length)>M.length&&(R=M.length),b=R-1;0<=b&&(192&M[b])==128;)b--;return b<0||b===0?R:b+S[M[b]]>R?b:R}(N),T=N;P!==N.length&&(m.uint8array?(T=N.subarray(0,P),this.leftOver=N.subarray(P,N.length)):(T=N.slice(0,P),this.leftOver=N.slice(P,N.length))),this.push({data:d.utf8decode(T),meta:D.meta})},I.prototype.flush=function(){this.leftOver&&this.leftOver.length&&(this.push({data:d.utf8decode(this.leftOver),meta:{}}),this.leftOver=null)},d.Utf8DecodeWorker=I,u.inherits(k,y),k.prototype.processChunk=function(D){this.push({data:d.utf8encode(D.data),meta:D.meta})},d.Utf8EncodeWorker=k},{"./nodejsUtils":14,"./stream/GenericWorker":28,"./support":30,"./utils":32}],32:[function(o,c,d){var u=o("./support"),m=o("./base64"),_=o("./nodejsUtils"),y=o("./external");function S(E){return E}function A(E,P){for(var T=0;T<E.length;++T)P[T]=255&E.charCodeAt(T);return P}o("setimmediate"),d.newBlob=function(E,P){d.checkSupport("blob");try{return new Blob([E],{type:P})}catch{try{var T=new(self.BlobBuilder||self.WebKitBlobBuilder||self.MozBlobBuilder||self.MSBlobBuilder);return T.append(E),T.getBlob(P)}catch{throw new Error("Bug : can't construct the Blob.")}}};var I={stringifyByChunk:function(E,P,T){var M=[],R=0,b=E.length;if(b<=T)return String.fromCharCode.apply(null,E);for(;R<b;)P==="array"||P==="nodebuffer"?M.push(String.fromCharCode.apply(null,E.slice(R,Math.min(R+T,b)))):M.push(String.fromCharCode.apply(null,E.subarray(R,Math.min(R+T,b)))),R+=T;return M.join("")},stringifyByChar:function(E){for(var P="",T=0;T<E.length;T++)P+=String.fromCharCode(E[T]);return P},applyCanBeUsed:{uint8array:function(){try{return u.uint8array&&String.fromCharCode.apply(null,new Uint8Array(1)).length===1}catch{return!1}}(),nodebuffer:function(){try{return u.nodebuffer&&String.fromCharCode.apply(null,_.allocBuffer(1)).length===1}catch{return!1}}()}};function k(E){var P=65536,T=d.getTypeOf(E),M=!0;if(T==="uint8array"?M=I.applyCanBeUsed.uint8array:T==="nodebuffer"&&(M=I.applyCanBeUsed.nodebuffer),M)for(;1<P;)try{return I.stringifyByChunk(E,T,P)}catch{P=Math.floor(P/2)}return I.stringifyByChar(E)}function D(E,P){for(var T=0;T<E.length;T++)P[T]=E[T];return P}d.applyFromCharCode=k;var N={};N.string={string:S,array:function(E){return A(E,new Array(E.length))},arraybuffer:function(E){return N.string.uint8array(E).buffer},uint8array:function(E){return A(E,new Uint8Array(E.length))},nodebuffer:function(E){return A(E,_.allocBuffer(E.length))}},N.array={string:k,array:S,arraybuffer:function(E){return new Uint8Array(E).buffer},uint8array:function(E){return new Uint8Array(E)},nodebuffer:function(E){return _.newBufferFrom(E)}},N.arraybuffer={string:function(E){return k(new Uint8Array(E))},array:function(E){return D(new Uint8Array(E),new Array(E.byteLength))},arraybuffer:S,uint8array:function(E){return new Uint8Array(E)},nodebuffer:function(E){return _.newBufferFrom(new Uint8Array(E))}},N.uint8array={string:k,array:function(E){return D(E,new Array(E.length))},arraybuffer:function(E){return E.buffer},uint8array:S,nodebuffer:function(E){return _.newBufferFrom(E)}},N.nodebuffer={string:k,array:function(E){return D(E,new Array(E.length))},arraybuffer:function(E){return N.nodebuffer.uint8array(E).buffer},uint8array:function(E){return D(E,new Uint8Array(E.length))},nodebuffer:S},d.transformTo=function(E,P){if(P=P||"",!E)return P;d.checkSupport(E);var T=d.getTypeOf(P);return N[T][E](P)},d.resolve=function(E){for(var P=E.split("/"),T=[],M=0;M<P.length;M++){var R=P[M];R==="."||R===""&&M!==0&&M!==P.length-1||(R===".."?T.pop():T.push(R))}return T.join("/")},d.getTypeOf=function(E){return typeof E=="string"?"string":Object.prototype.toString.call(E)==="[object Array]"?"array":u.nodebuffer&&_.isBuffer(E)?"nodebuffer":u.uint8array&&E instanceof Uint8Array?"uint8array":u.arraybuffer&&E instanceof ArrayBuffer?"arraybuffer":void 0},d.checkSupport=function(E){if(!u[E.toLowerCase()])throw new Error(E+" is not supported by this platform")},d.MAX_VALUE_16BITS=65535,d.MAX_VALUE_32BITS=-1,d.pretty=function(E){var P,T,M="";for(T=0;T<(E||"").length;T++)M+="\\x"+((P=E.charCodeAt(T))<16?"0":"")+P.toString(16).toUpperCase();return M},d.delay=function(E,P,T){setImmediate(function(){E.apply(T||null,P||[])})},d.inherits=function(E,P){function T(){}T.prototype=P.prototype,E.prototype=new T},d.extend=function(){var E,P,T={};for(E=0;E<arguments.length;E++)for(P in arguments[E])Object.prototype.hasOwnProperty.call(arguments[E],P)&&T[P]===void 0&&(T[P]=arguments[E][P]);return T},d.prepareContent=function(E,P,T,M,R){return y.Promise.resolve(P).then(function(b){return u.blob&&(b instanceof Blob||["[object File]","[object Blob]"].indexOf(Object.prototype.toString.call(b))!==-1)&&typeof FileReader<"u"?new y.Promise(function(U,F){var j=new FileReader;j.onload=function(J){U(J.target.result)},j.onerror=function(J){F(J.target.error)},j.readAsArrayBuffer(b)}):b}).then(function(b){var U=d.getTypeOf(b);return U?(U==="arraybuffer"?b=d.transformTo("uint8array",b):U==="string"&&(R?b=m.decode(b):T&&M!==!0&&(b=function(F){return A(F,u.uint8array?new Uint8Array(F.length):new Array(F.length))}(b))),b):y.Promise.reject(new Error("Can't read the data of '"+E+"'. Is it in a supported JavaScript type (String, Blob, ArrayBuffer, etc) ?"))})}},{"./base64":1,"./external":6,"./nodejsUtils":14,"./support":30,setimmediate:54}],33:[function(o,c,d){var u=o("./reader/readerFor"),m=o("./utils"),_=o("./signature"),y=o("./zipEntry"),S=o("./support");function A(I){this.files=[],this.loadOptions=I}A.prototype={checkSignature:function(I){if(!this.reader.readAndCheckSignature(I)){this.reader.index-=4;var k=this.reader.readString(4);throw new Error("Corrupted zip or bug: unexpected signature ("+m.pretty(k)+", expected "+m.pretty(I)+")")}},isSignature:function(I,k){var D=this.reader.index;this.reader.setIndex(I);var N=this.reader.readString(4)===k;return this.reader.setIndex(D),N},readBlockEndOfCentral:function(){this.diskNumber=this.reader.readInt(2),this.diskWithCentralDirStart=this.reader.readInt(2),this.centralDirRecordsOnThisDisk=this.reader.readInt(2),this.centralDirRecords=this.reader.readInt(2),this.centralDirSize=this.reader.readInt(4),this.centralDirOffset=this.reader.readInt(4),this.zipCommentLength=this.reader.readInt(2);var I=this.reader.readData(this.zipCommentLength),k=S.uint8array?"uint8array":"array",D=m.transformTo(k,I);this.zipComment=this.loadOptions.decodeFileName(D)},readBlockZip64EndOfCentral:function(){this.zip64EndOfCentralSize=this.reader.readInt(8),this.reader.skip(4),this.diskNumber=this.reader.readInt(4),this.diskWithCentralDirStart=this.reader.readInt(4),this.centralDirRecordsOnThisDisk=this.reader.readInt(8),this.centralDirRecords=this.reader.readInt(8),this.centralDirSize=this.reader.readInt(8),this.centralDirOffset=this.reader.readInt(8),this.zip64ExtensibleData={};for(var I,k,D,N=this.zip64EndOfCentralSize-44;0<N;)I=this.reader.readInt(2),k=this.reader.readInt(4),D=this.reader.readData(k),this.zip64ExtensibleData[I]={id:I,length:k,value:D}},readBlockZip64EndOfCentralLocator:function(){if(this.diskWithZip64CentralDirStart=this.reader.readInt(4),this.relativeOffsetEndOfZip64CentralDir=this.reader.readInt(8),this.disksCount=this.reader.readInt(4),1<this.disksCount)throw new Error("Multi-volumes zip are not supported")},readLocalFiles:function(){var I,k;for(I=0;I<this.files.length;I++)k=this.files[I],this.reader.setIndex(k.localHeaderOffset),this.checkSignature(_.LOCAL_FILE_HEADER),k.readLocalPart(this.reader),k.handleUTF8(),k.processAttributes()},readCentralDir:function(){var I;for(this.reader.setIndex(this.centralDirOffset);this.reader.readAndCheckSignature(_.CENTRAL_FILE_HEADER);)(I=new y({zip64:this.zip64},this.loadOptions)).readCentralPart(this.reader),this.files.push(I);if(this.centralDirRecords!==this.files.length&&this.centralDirRecords!==0&&this.files.length===0)throw new Error("Corrupted zip or bug: expected "+this.centralDirRecords+" records in central dir, got "+this.files.length)},readEndOfCentral:function(){var I=this.reader.lastIndexOfSignature(_.CENTRAL_DIRECTORY_END);if(I<0)throw this.isSignature(0,_.LOCAL_FILE_HEADER)?new Error("Corrupted zip: can't find end of central directory"):new Error("Can't find end of central directory : is this a zip file ? If it is, see https://stuk.github.io/jszip/documentation/howto/read_zip.html");this.reader.setIndex(I);var k=I;if(this.checkSignature(_.CENTRAL_DIRECTORY_END),this.readBlockEndOfCentral(),this.diskNumber===m.MAX_VALUE_16BITS||this.diskWithCentralDirStart===m.MAX_VALUE_16BITS||this.centralDirRecordsOnThisDisk===m.MAX_VALUE_16BITS||this.centralDirRecords===m.MAX_VALUE_16BITS||this.centralDirSize===m.MAX_VALUE_32BITS||this.centralDirOffset===m.MAX_VALUE_32BITS){if(this.zip64=!0,(I=this.reader.lastIndexOfSignature(_.ZIP64_CENTRAL_DIRECTORY_LOCATOR))<0)throw new Error("Corrupted zip: can't find the ZIP64 end of central directory locator");if(this.reader.setIndex(I),this.checkSignature(_.ZIP64_CENTRAL_DIRECTORY_LOCATOR),this.readBlockZip64EndOfCentralLocator(),!this.isSignature(this.relativeOffsetEndOfZip64CentralDir,_.ZIP64_CENTRAL_DIRECTORY_END)&&(this.relativeOffsetEndOfZip64CentralDir=this.reader.lastIndexOfSignature(_.ZIP64_CENTRAL_DIRECTORY_END),this.relativeOffsetEndOfZip64CentralDir<0))throw new Error("Corrupted zip: can't find the ZIP64 end of central directory");this.reader.setIndex(this.relativeOffsetEndOfZip64CentralDir),this.checkSignature(_.ZIP64_CENTRAL_DIRECTORY_END),this.readBlockZip64EndOfCentral()}var D=this.centralDirOffset+this.centralDirSize;this.zip64&&(D+=20,D+=12+this.zip64EndOfCentralSize);var N=k-D;if(0<N)this.isSignature(k,_.CENTRAL_FILE_HEADER)||(this.reader.zero=N);else if(N<0)throw new Error("Corrupted zip: missing "+Math.abs(N)+" bytes.")},prepareReader:function(I){this.reader=u(I)},load:function(I){this.prepareReader(I),this.readEndOfCentral(),this.readCentralDir(),this.readLocalFiles()}},c.exports=A},{"./reader/readerFor":22,"./signature":23,"./support":30,"./utils":32,"./zipEntry":34}],34:[function(o,c,d){var u=o("./reader/readerFor"),m=o("./utils"),_=o("./compressedObject"),y=o("./crc32"),S=o("./utf8"),A=o("./compressions"),I=o("./support");function k(D,N){this.options=D,this.loadOptions=N}k.prototype={isEncrypted:function(){return(1&this.bitFlag)==1},useUTF8:function(){return(2048&this.bitFlag)==2048},readLocalPart:function(D){var N,E;if(D.skip(22),this.fileNameLength=D.readInt(2),E=D.readInt(2),this.fileName=D.readData(this.fileNameLength),D.skip(E),this.compressedSize===-1||this.uncompressedSize===-1)throw new Error("Bug or corrupted zip : didn't get enough information from the central directory (compressedSize === -1 || uncompressedSize === -1)");if((N=function(P){for(var T in A)if(Object.prototype.hasOwnProperty.call(A,T)&&A[T].magic===P)return A[T];return null}(this.compressionMethod))===null)throw new Error("Corrupted zip : compression "+m.pretty(this.compressionMethod)+" unknown (inner file : "+m.transformTo("string",this.fileName)+")");this.decompressed=new _(this.compressedSize,this.uncompressedSize,this.crc32,N,D.readData(this.compressedSize))},readCentralPart:function(D){this.versionMadeBy=D.readInt(2),D.skip(2),this.bitFlag=D.readInt(2),this.compressionMethod=D.readString(2),this.date=D.readDate(),this.crc32=D.readInt(4),this.compressedSize=D.readInt(4),this.uncompressedSize=D.readInt(4);var N=D.readInt(2);if(this.extraFieldsLength=D.readInt(2),this.fileCommentLength=D.readInt(2),this.diskNumberStart=D.readInt(2),this.internalFileAttributes=D.readInt(2),this.externalFileAttributes=D.readInt(4),this.localHeaderOffset=D.readInt(4),this.isEncrypted())throw new Error("Encrypted zip are not supported");D.skip(N),this.readExtraFields(D),this.parseZIP64ExtraField(D),this.fileComment=D.readData(this.fileCommentLength)},processAttributes:function(){this.unixPermissions=null,this.dosPermissions=null;var D=this.versionMadeBy>>8;this.dir=!!(16&this.externalFileAttributes),D==0&&(this.dosPermissions=63&this.externalFileAttributes),D==3&&(this.unixPermissions=this.externalFileAttributes>>16&65535),this.dir||this.fileNameStr.slice(-1)!=="/"||(this.dir=!0)},parseZIP64ExtraField:function(){if(this.extraFields[1]){var D=u(this.extraFields[1].value);this.uncompressedSize===m.MAX_VALUE_32BITS&&(this.uncompressedSize=D.readInt(8)),this.compressedSize===m.MAX_VALUE_32BITS&&(this.compressedSize=D.readInt(8)),this.localHeaderOffset===m.MAX_VALUE_32BITS&&(this.localHeaderOffset=D.readInt(8)),this.diskNumberStart===m.MAX_VALUE_32BITS&&(this.diskNumberStart=D.readInt(4))}},readExtraFields:function(D){var N,E,P,T=D.index+this.extraFieldsLength;for(this.extraFields||(this.extraFields={});D.index+4<T;)N=D.readInt(2),E=D.readInt(2),P=D.readData(E),this.extraFields[N]={id:N,length:E,value:P};D.setIndex(T)},handleUTF8:function(){var D=I.uint8array?"uint8array":"array";if(this.useUTF8())this.fileNameStr=S.utf8decode(this.fileName),this.fileCommentStr=S.utf8decode(this.fileComment);else{var N=this.findExtraFieldUnicodePath();if(N!==null)this.fileNameStr=N;else{var E=m.transformTo(D,this.fileName);this.fileNameStr=this.loadOptions.decodeFileName(E)}var P=this.findExtraFieldUnicodeComment();if(P!==null)this.fileCommentStr=P;else{var T=m.transformTo(D,this.fileComment);this.fileCommentStr=this.loadOptions.decodeFileName(T)}}},findExtraFieldUnicodePath:function(){var D=this.extraFields[28789];if(D){var N=u(D.value);return N.readInt(1)!==1||y(this.fileName)!==N.readInt(4)?null:S.utf8decode(N.readData(D.length-5))}return null},findExtraFieldUnicodeComment:function(){var D=this.extraFields[25461];if(D){var N=u(D.value);return N.readInt(1)!==1||y(this.fileComment)!==N.readInt(4)?null:S.utf8decode(N.readData(D.length-5))}return null}},c.exports=k},{"./compressedObject":2,"./compressions":3,"./crc32":4,"./reader/readerFor":22,"./support":30,"./utf8":31,"./utils":32}],35:[function(o,c,d){function u(N,E,P){this.name=N,this.dir=P.dir,this.date=P.date,this.comment=P.comment,this.unixPermissions=P.unixPermissions,this.dosPermissions=P.dosPermissions,this._data=E,this._dataBinary=P.binary,this.options={compression:P.compression,compressionOptions:P.compressionOptions}}var m=o("./stream/StreamHelper"),_=o("./stream/DataWorker"),y=o("./utf8"),S=o("./compressedObject"),A=o("./stream/GenericWorker");u.prototype={internalStream:function(N){var E=null,P="string";try{if(!N)throw new Error("No output type specified.");var T=(P=N.toLowerCase())==="string"||P==="text";P!=="binarystring"&&P!=="text"||(P="string"),E=this._decompressWorker();var M=!this._dataBinary;M&&!T&&(E=E.pipe(new y.Utf8EncodeWorker)),!M&&T&&(E=E.pipe(new y.Utf8DecodeWorker))}catch(R){(E=new A("error")).error(R)}return new m(E,P,"")},async:function(N,E){return this.internalStream(N).accumulate(E)},nodeStream:function(N,E){return this.internalStream(N||"nodebuffer").toNodejsStream(E)},_compressWorker:function(N,E){if(this._data instanceof S&&this._data.compression.magic===N.magic)return this._data.getCompressedWorker();var P=this._decompressWorker();return this._dataBinary||(P=P.pipe(new y.Utf8EncodeWorker)),S.createWorkerFrom(P,N,E)},_decompressWorker:function(){return this._data instanceof S?this._data.getContentWorker():this._data instanceof A?this._data:new _(this._data)}};for(var I=["asText","asBinary","asNodeBuffer","asUint8Array","asArrayBuffer"],k=function(){throw new Error("This method has been removed in JSZip 3.0, please check the upgrade guide.")},D=0;D<I.length;D++)u.prototype[I[D]]=k;c.exports=u},{"./compressedObject":2,"./stream/DataWorker":27,"./stream/GenericWorker":28,"./stream/StreamHelper":29,"./utf8":31}],36:[function(o,c,d){(function(u){var m,_,y=u.MutationObserver||u.WebKitMutationObserver;if(y){var S=0,A=new y(N),I=u.document.createTextNode("");A.observe(I,{characterData:!0}),m=function(){I.data=S=++S%2}}else if(u.setImmediate||u.MessageChannel===void 0)m="document"in u&&"onreadystatechange"in u.document.createElement("script")?function(){var E=u.document.createElement("script");E.onreadystatechange=function(){N(),E.onreadystatechange=null,E.parentNode.removeChild(E),E=null},u.document.documentElement.appendChild(E)}:function(){setTimeout(N,0)};else{var k=new u.MessageChannel;k.port1.onmessage=N,m=function(){k.port2.postMessage(0)}}var D=[];function N(){var E,P;_=!0;for(var T=D.length;T;){for(P=D,D=[],E=-1;++E<T;)P[E]();T=D.length}_=!1}c.exports=function(E){D.push(E)!==1||_||m()}}).call(this,typeof Er<"u"?Er:typeof self<"u"?self:typeof window<"u"?window:{})},{}],37:[function(o,c,d){var u=o("immediate");function m(){}var _={},y=["REJECTED"],S=["FULFILLED"],A=["PENDING"];function I(T){if(typeof T!="function")throw new TypeError("resolver must be a function");this.state=A,this.queue=[],this.outcome=void 0,T!==m&&E(this,T)}function k(T,M,R){this.promise=T,typeof M=="function"&&(this.onFulfilled=M,this.callFulfilled=this.otherCallFulfilled),typeof R=="function"&&(this.onRejected=R,this.callRejected=this.otherCallRejected)}function D(T,M,R){u(function(){var b;try{b=M(R)}catch(U){return _.reject(T,U)}b===T?_.reject(T,new TypeError("Cannot resolve promise with itself")):_.resolve(T,b)})}function N(T){var M=T&&T.then;if(T&&(typeof T=="object"||typeof T=="function")&&typeof M=="function")return function(){M.apply(T,arguments)}}function E(T,M){var R=!1;function b(j){R||(R=!0,_.reject(T,j))}function U(j){R||(R=!0,_.resolve(T,j))}var F=P(function(){M(U,b)});F.status==="error"&&b(F.value)}function P(T,M){var R={};try{R.value=T(M),R.status="success"}catch(b){R.status="error",R.value=b}return R}(c.exports=I).prototype.finally=function(T){if(typeof T!="function")return this;var M=this.constructor;return this.then(function(R){return M.resolve(T()).then(function(){return R})},function(R){return M.resolve(T()).then(function(){throw R})})},I.prototype.catch=function(T){return this.then(null,T)},I.prototype.then=function(T,M){if(typeof T!="function"&&this.state===S||typeof M!="function"&&this.state===y)return this;var R=new this.constructor(m);return this.state!==A?D(R,this.state===S?T:M,this.outcome):this.queue.push(new k(R,T,M)),R},k.prototype.callFulfilled=function(T){_.resolve(this.promise,T)},k.prototype.otherCallFulfilled=function(T){D(this.promise,this.onFulfilled,T)},k.prototype.callRejected=function(T){_.reject(this.promise,T)},k.prototype.otherCallRejected=function(T){D(this.promise,this.onRejected,T)},_.resolve=function(T,M){var R=P(N,M);if(R.status==="error")return _.reject(T,R.value);var b=R.value;if(b)E(T,b);else{T.state=S,T.outcome=M;for(var U=-1,F=T.queue.length;++U<F;)T.queue[U].callFulfilled(M)}return T},_.reject=function(T,M){T.state=y,T.outcome=M;for(var R=-1,b=T.queue.length;++R<b;)T.queue[R].callRejected(M);return T},I.resolve=function(T){return T instanceof this?T:_.resolve(new this(m),T)},I.reject=function(T){var M=new this(m);return _.reject(M,T)},I.all=function(T){var M=this;if(Object.prototype.toString.call(T)!=="[object Array]")return this.reject(new TypeError("must be an array"));var R=T.length,b=!1;if(!R)return this.resolve([]);for(var U=new Array(R),F=0,j=-1,J=new this(m);++j<R;)$(T[j],j);return J;function $(ct,It){M.resolve(ct).then(function(et){U[It]=et,++F!==R||b||(b=!0,_.resolve(J,U))},function(et){b||(b=!0,_.reject(J,et))})}},I.race=function(T){var M=this;if(Object.prototype.toString.call(T)!=="[object Array]")return this.reject(new TypeError("must be an array"));var R=T.length,b=!1;if(!R)return this.resolve([]);for(var U=-1,F=new this(m);++U<R;)j=T[U],M.resolve(j).then(function(J){b||(b=!0,_.resolve(F,J))},function(J){b||(b=!0,_.reject(F,J))});var j;return F}},{immediate:36}],38:[function(o,c,d){var u={};(0,o("./lib/utils/common").assign)(u,o("./lib/deflate"),o("./lib/inflate"),o("./lib/zlib/constants")),c.exports=u},{"./lib/deflate":39,"./lib/inflate":40,"./lib/utils/common":41,"./lib/zlib/constants":44}],39:[function(o,c,d){var u=o("./zlib/deflate"),m=o("./utils/common"),_=o("./utils/strings"),y=o("./zlib/messages"),S=o("./zlib/zstream"),A=Object.prototype.toString,I=0,k=-1,D=0,N=8;function E(T){if(!(this instanceof E))return new E(T);this.options=m.assign({level:k,method:N,chunkSize:16384,windowBits:15,memLevel:8,strategy:D,to:""},T||{});var M=this.options;M.raw&&0<M.windowBits?M.windowBits=-M.windowBits:M.gzip&&0<M.windowBits&&M.windowBits<16&&(M.windowBits+=16),this.err=0,this.msg="",this.ended=!1,this.chunks=[],this.strm=new S,this.strm.avail_out=0;var R=u.deflateInit2(this.strm,M.level,M.method,M.windowBits,M.memLevel,M.strategy);if(R!==I)throw new Error(y[R]);if(M.header&&u.deflateSetHeader(this.strm,M.header),M.dictionary){var b;if(b=typeof M.dictionary=="string"?_.string2buf(M.dictionary):A.call(M.dictionary)==="[object ArrayBuffer]"?new Uint8Array(M.dictionary):M.dictionary,(R=u.deflateSetDictionary(this.strm,b))!==I)throw new Error(y[R]);this._dict_set=!0}}function P(T,M){var R=new E(M);if(R.push(T,!0),R.err)throw R.msg||y[R.err];return R.result}E.prototype.push=function(T,M){var R,b,U=this.strm,F=this.options.chunkSize;if(this.ended)return!1;b=M===~~M?M:M===!0?4:0,typeof T=="string"?U.input=_.string2buf(T):A.call(T)==="[object ArrayBuffer]"?U.input=new Uint8Array(T):U.input=T,U.next_in=0,U.avail_in=U.input.length;do{if(U.avail_out===0&&(U.output=new m.Buf8(F),U.next_out=0,U.avail_out=F),(R=u.deflate(U,b))!==1&&R!==I)return this.onEnd(R),!(this.ended=!0);U.avail_out!==0&&(U.avail_in!==0||b!==4&&b!==2)||(this.options.to==="string"?this.onData(_.buf2binstring(m.shrinkBuf(U.output,U.next_out))):this.onData(m.shrinkBuf(U.output,U.next_out)))}while((0<U.avail_in||U.avail_out===0)&&R!==1);return b===4?(R=u.deflateEnd(this.strm),this.onEnd(R),this.ended=!0,R===I):b!==2||(this.onEnd(I),!(U.avail_out=0))},E.prototype.onData=function(T){this.chunks.push(T)},E.prototype.onEnd=function(T){T===I&&(this.options.to==="string"?this.result=this.chunks.join(""):this.result=m.flattenChunks(this.chunks)),this.chunks=[],this.err=T,this.msg=this.strm.msg},d.Deflate=E,d.deflate=P,d.deflateRaw=function(T,M){return(M=M||{}).raw=!0,P(T,M)},d.gzip=function(T,M){return(M=M||{}).gzip=!0,P(T,M)}},{"./utils/common":41,"./utils/strings":42,"./zlib/deflate":46,"./zlib/messages":51,"./zlib/zstream":53}],40:[function(o,c,d){var u=o("./zlib/inflate"),m=o("./utils/common"),_=o("./utils/strings"),y=o("./zlib/constants"),S=o("./zlib/messages"),A=o("./zlib/zstream"),I=o("./zlib/gzheader"),k=Object.prototype.toString;function D(E){if(!(this instanceof D))return new D(E);this.options=m.assign({chunkSize:16384,windowBits:0,to:""},E||{});var P=this.options;P.raw&&0<=P.windowBits&&P.windowBits<16&&(P.windowBits=-P.windowBits,P.windowBits===0&&(P.windowBits=-15)),!(0<=P.windowBits&&P.windowBits<16)||E&&E.windowBits||(P.windowBits+=32),15<P.windowBits&&P.windowBits<48&&!(15&P.windowBits)&&(P.windowBits|=15),this.err=0,this.msg="",this.ended=!1,this.chunks=[],this.strm=new A,this.strm.avail_out=0;var T=u.inflateInit2(this.strm,P.windowBits);if(T!==y.Z_OK)throw new Error(S[T]);this.header=new I,u.inflateGetHeader(this.strm,this.header)}function N(E,P){var T=new D(P);if(T.push(E,!0),T.err)throw T.msg||S[T.err];return T.result}D.prototype.push=function(E,P){var T,M,R,b,U,F,j=this.strm,J=this.options.chunkSize,$=this.options.dictionary,ct=!1;if(this.ended)return!1;M=P===~~P?P:P===!0?y.Z_FINISH:y.Z_NO_FLUSH,typeof E=="string"?j.input=_.binstring2buf(E):k.call(E)==="[object ArrayBuffer]"?j.input=new Uint8Array(E):j.input=E,j.next_in=0,j.avail_in=j.input.length;do{if(j.avail_out===0&&(j.output=new m.Buf8(J),j.next_out=0,j.avail_out=J),(T=u.inflate(j,y.Z_NO_FLUSH))===y.Z_NEED_DICT&&$&&(F=typeof $=="string"?_.string2buf($):k.call($)==="[object ArrayBuffer]"?new Uint8Array($):$,T=u.inflateSetDictionary(this.strm,F)),T===y.Z_BUF_ERROR&&ct===!0&&(T=y.Z_OK,ct=!1),T!==y.Z_STREAM_END&&T!==y.Z_OK)return this.onEnd(T),!(this.ended=!0);j.next_out&&(j.avail_out!==0&&T!==y.Z_STREAM_END&&(j.avail_in!==0||M!==y.Z_FINISH&&M!==y.Z_SYNC_FLUSH)||(this.options.to==="string"?(R=_.utf8border(j.output,j.next_out),b=j.next_out-R,U=_.buf2string(j.output,R),j.next_out=b,j.avail_out=J-b,b&&m.arraySet(j.output,j.output,R,b,0),this.onData(U)):this.onData(m.shrinkBuf(j.output,j.next_out)))),j.avail_in===0&&j.avail_out===0&&(ct=!0)}while((0<j.avail_in||j.avail_out===0)&&T!==y.Z_STREAM_END);return T===y.Z_STREAM_END&&(M=y.Z_FINISH),M===y.Z_FINISH?(T=u.inflateEnd(this.strm),this.onEnd(T),this.ended=!0,T===y.Z_OK):M!==y.Z_SYNC_FLUSH||(this.onEnd(y.Z_OK),!(j.avail_out=0))},D.prototype.onData=function(E){this.chunks.push(E)},D.prototype.onEnd=function(E){E===y.Z_OK&&(this.options.to==="string"?this.result=this.chunks.join(""):this.result=m.flattenChunks(this.chunks)),this.chunks=[],this.err=E,this.msg=this.strm.msg},d.Inflate=D,d.inflate=N,d.inflateRaw=function(E,P){return(P=P||{}).raw=!0,N(E,P)},d.ungzip=N},{"./utils/common":41,"./utils/strings":42,"./zlib/constants":44,"./zlib/gzheader":47,"./zlib/inflate":49,"./zlib/messages":51,"./zlib/zstream":53}],41:[function(o,c,d){var u=typeof Uint8Array<"u"&&typeof Uint16Array<"u"&&typeof Int32Array<"u";d.assign=function(y){for(var S=Array.prototype.slice.call(arguments,1);S.length;){var A=S.shift();if(A){if(typeof A!="object")throw new TypeError(A+"must be non-object");for(var I in A)A.hasOwnProperty(I)&&(y[I]=A[I])}}return y},d.shrinkBuf=function(y,S){return y.length===S?y:y.subarray?y.subarray(0,S):(y.length=S,y)};var m={arraySet:function(y,S,A,I,k){if(S.subarray&&y.subarray)y.set(S.subarray(A,A+I),k);else for(var D=0;D<I;D++)y[k+D]=S[A+D]},flattenChunks:function(y){var S,A,I,k,D,N;for(S=I=0,A=y.length;S<A;S++)I+=y[S].length;for(N=new Uint8Array(I),S=k=0,A=y.length;S<A;S++)D=y[S],N.set(D,k),k+=D.length;return N}},_={arraySet:function(y,S,A,I,k){for(var D=0;D<I;D++)y[k+D]=S[A+D]},flattenChunks:function(y){return[].concat.apply([],y)}};d.setTyped=function(y){y?(d.Buf8=Uint8Array,d.Buf16=Uint16Array,d.Buf32=Int32Array,d.assign(d,m)):(d.Buf8=Array,d.Buf16=Array,d.Buf32=Array,d.assign(d,_))},d.setTyped(u)},{}],42:[function(o,c,d){var u=o("./common"),m=!0,_=!0;try{String.fromCharCode.apply(null,[0])}catch{m=!1}try{String.fromCharCode.apply(null,new Uint8Array(1))}catch{_=!1}for(var y=new u.Buf8(256),S=0;S<256;S++)y[S]=252<=S?6:248<=S?5:240<=S?4:224<=S?3:192<=S?2:1;function A(I,k){if(k<65537&&(I.subarray&&_||!I.subarray&&m))return String.fromCharCode.apply(null,u.shrinkBuf(I,k));for(var D="",N=0;N<k;N++)D+=String.fromCharCode(I[N]);return D}y[254]=y[254]=1,d.string2buf=function(I){var k,D,N,E,P,T=I.length,M=0;for(E=0;E<T;E++)(64512&(D=I.charCodeAt(E)))==55296&&E+1<T&&(64512&(N=I.charCodeAt(E+1)))==56320&&(D=65536+(D-55296<<10)+(N-56320),E++),M+=D<128?1:D<2048?2:D<65536?3:4;for(k=new u.Buf8(M),E=P=0;P<M;E++)(64512&(D=I.charCodeAt(E)))==55296&&E+1<T&&(64512&(N=I.charCodeAt(E+1)))==56320&&(D=65536+(D-55296<<10)+(N-56320),E++),D<128?k[P++]=D:(D<2048?k[P++]=192|D>>>6:(D<65536?k[P++]=224|D>>>12:(k[P++]=240|D>>>18,k[P++]=128|D>>>12&63),k[P++]=128|D>>>6&63),k[P++]=128|63&D);return k},d.buf2binstring=function(I){return A(I,I.length)},d.binstring2buf=function(I){for(var k=new u.Buf8(I.length),D=0,N=k.length;D<N;D++)k[D]=I.charCodeAt(D);return k},d.buf2string=function(I,k){var D,N,E,P,T=k||I.length,M=new Array(2*T);for(D=N=0;D<T;)if((E=I[D++])<128)M[N++]=E;else if(4<(P=y[E]))M[N++]=65533,D+=P-1;else{for(E&=P===2?31:P===3?15:7;1<P&&D<T;)E=E<<6|63&I[D++],P--;1<P?M[N++]=65533:E<65536?M[N++]=E:(E-=65536,M[N++]=55296|E>>10&1023,M[N++]=56320|1023&E)}return A(M,N)},d.utf8border=function(I,k){var D;for((k=k||I.length)>I.length&&(k=I.length),D=k-1;0<=D&&(192&I[D])==128;)D--;return D<0||D===0?k:D+y[I[D]]>k?D:k}},{"./common":41}],43:[function(o,c,d){c.exports=function(u,m,_,y){for(var S=65535&u|0,A=u>>>16&65535|0,I=0;_!==0;){for(_-=I=2e3<_?2e3:_;A=A+(S=S+m[y++]|0)|0,--I;);S%=65521,A%=65521}return S|A<<16|0}},{}],44:[function(o,c,d){c.exports={Z_NO_FLUSH:0,Z_PARTIAL_FLUSH:1,Z_SYNC_FLUSH:2,Z_FULL_FLUSH:3,Z_FINISH:4,Z_BLOCK:5,Z_TREES:6,Z_OK:0,Z_STREAM_END:1,Z_NEED_DICT:2,Z_ERRNO:-1,Z_STREAM_ERROR:-2,Z_DATA_ERROR:-3,Z_BUF_ERROR:-5,Z_NO_COMPRESSION:0,Z_BEST_SPEED:1,Z_BEST_COMPRESSION:9,Z_DEFAULT_COMPRESSION:-1,Z_FILTERED:1,Z_HUFFMAN_ONLY:2,Z_RLE:3,Z_FIXED:4,Z_DEFAULT_STRATEGY:0,Z_BINARY:0,Z_TEXT:1,Z_UNKNOWN:2,Z_DEFLATED:8}},{}],45:[function(o,c,d){var u=function(){for(var m,_=[],y=0;y<256;y++){m=y;for(var S=0;S<8;S++)m=1&m?3988292384^m>>>1:m>>>1;_[y]=m}return _}();c.exports=function(m,_,y,S){var A=u,I=S+y;m^=-1;for(var k=S;k<I;k++)m=m>>>8^A[255&(m^_[k])];return-1^m}},{}],46:[function(o,c,d){var u,m=o("../utils/common"),_=o("./trees"),y=o("./adler32"),S=o("./crc32"),A=o("./messages"),I=0,k=4,D=0,N=-2,E=-1,P=4,T=2,M=8,R=9,b=286,U=30,F=19,j=2*b+1,J=15,$=3,ct=258,It=ct+$+1,et=42,yt=113,G=1,Pt=2,Et=3,Ct=4;function fe(W,Jt){return W.msg=A[Jt],Jt}function re(W){return(W<<1)-(4<W?9:0)}function Ft(W){for(var Jt=W.length;0<=--Jt;)W[Jt]=0}function Ot(W){var Jt=W.state,Wt=Jt.pending;Wt>W.avail_out&&(Wt=W.avail_out),Wt!==0&&(m.arraySet(W.output,Jt.pending_buf,Jt.pending_out,Wt,W.next_out),W.next_out+=Wt,Jt.pending_out+=Wt,W.total_out+=Wt,W.avail_out-=Wt,Jt.pending-=Wt,Jt.pending===0&&(Jt.pending_out=0))}function Bt(W,Jt){_._tr_flush_block(W,0<=W.block_start?W.block_start:-1,W.strstart-W.block_start,Jt),W.block_start=W.strstart,Ot(W.strm)}function ke(W,Jt){W.pending_buf[W.pending++]=Jt}function ce(W,Jt){W.pending_buf[W.pending++]=Jt>>>8&255,W.pending_buf[W.pending++]=255&Jt}function Yt(W,Jt){var Wt,pt,dt=W.max_chain_length,Dt=W.strstart,ie=W.prev_length,Kt=W.nice_match,z=W.strstart>W.w_size-It?W.strstart-(W.w_size-It):0,Q=W.window,ot=W.w_mask,nt=W.prev,vt=W.strstart+ct,Gt=Q[Dt+ie-1],Xt=Q[Dt+ie];W.prev_length>=W.good_match&&(dt>>=2),Kt>W.lookahead&&(Kt=W.lookahead);do if(Q[(Wt=Jt)+ie]===Xt&&Q[Wt+ie-1]===Gt&&Q[Wt]===Q[Dt]&&Q[++Wt]===Q[Dt+1]){Dt+=2,Wt++;do;while(Q[++Dt]===Q[++Wt]&&Q[++Dt]===Q[++Wt]&&Q[++Dt]===Q[++Wt]&&Q[++Dt]===Q[++Wt]&&Q[++Dt]===Q[++Wt]&&Q[++Dt]===Q[++Wt]&&Q[++Dt]===Q[++Wt]&&Q[++Dt]===Q[++Wt]&&Dt<vt);if(pt=ct-(vt-Dt),Dt=vt-ct,ie<pt){if(W.match_start=Jt,Kt<=(ie=pt))break;Gt=Q[Dt+ie-1],Xt=Q[Dt+ie]}}while((Jt=nt[Jt&ot])>z&&--dt!=0);return ie<=W.lookahead?ie:W.lookahead}function $e(W){var Jt,Wt,pt,dt,Dt,ie,Kt,z,Q,ot,nt=W.w_size;do{if(dt=W.window_size-W.lookahead-W.strstart,W.strstart>=nt+(nt-It)){for(m.arraySet(W.window,W.window,nt,nt,0),W.match_start-=nt,W.strstart-=nt,W.block_start-=nt,Jt=Wt=W.hash_size;pt=W.head[--Jt],W.head[Jt]=nt<=pt?pt-nt:0,--Wt;);for(Jt=Wt=nt;pt=W.prev[--Jt],W.prev[Jt]=nt<=pt?pt-nt:0,--Wt;);dt+=nt}if(W.strm.avail_in===0)break;if(ie=W.strm,Kt=W.window,z=W.strstart+W.lookahead,Q=dt,ot=void 0,ot=ie.avail_in,Q<ot&&(ot=Q),Wt=ot===0?0:(ie.avail_in-=ot,m.arraySet(Kt,ie.input,ie.next_in,ot,z),ie.state.wrap===1?ie.adler=y(ie.adler,Kt,ot,z):ie.state.wrap===2&&(ie.adler=S(ie.adler,Kt,ot,z)),ie.next_in+=ot,ie.total_in+=ot,ot),W.lookahead+=Wt,W.lookahead+W.insert>=$)for(Dt=W.strstart-W.insert,W.ins_h=W.window[Dt],W.ins_h=(W.ins_h<<W.hash_shift^W.window[Dt+1])&W.hash_mask;W.insert&&(W.ins_h=(W.ins_h<<W.hash_shift^W.window[Dt+$-1])&W.hash_mask,W.prev[Dt&W.w_mask]=W.head[W.ins_h],W.head[W.ins_h]=Dt,Dt++,W.insert--,!(W.lookahead+W.insert<$)););}while(W.lookahead<It&&W.strm.avail_in!==0)}function Oi(W,Jt){for(var Wt,pt;;){if(W.lookahead<It){if($e(W),W.lookahead<It&&Jt===I)return G;if(W.lookahead===0)break}if(Wt=0,W.lookahead>=$&&(W.ins_h=(W.ins_h<<W.hash_shift^W.window[W.strstart+$-1])&W.hash_mask,Wt=W.prev[W.strstart&W.w_mask]=W.head[W.ins_h],W.head[W.ins_h]=W.strstart),Wt!==0&&W.strstart-Wt<=W.w_size-It&&(W.match_length=Yt(W,Wt)),W.match_length>=$)if(pt=_._tr_tally(W,W.strstart-W.match_start,W.match_length-$),W.lookahead-=W.match_length,W.match_length<=W.max_lazy_match&&W.lookahead>=$){for(W.match_length--;W.strstart++,W.ins_h=(W.ins_h<<W.hash_shift^W.window[W.strstart+$-1])&W.hash_mask,Wt=W.prev[W.strstart&W.w_mask]=W.head[W.ins_h],W.head[W.ins_h]=W.strstart,--W.match_length!=0;);W.strstart++}else W.strstart+=W.match_length,W.match_length=0,W.ins_h=W.window[W.strstart],W.ins_h=(W.ins_h<<W.hash_shift^W.window[W.strstart+1])&W.hash_mask;else pt=_._tr_tally(W,0,W.window[W.strstart]),W.lookahead--,W.strstart++;if(pt&&(Bt(W,!1),W.strm.avail_out===0))return G}return W.insert=W.strstart<$-1?W.strstart:$-1,Jt===k?(Bt(W,!0),W.strm.avail_out===0?Et:Ct):W.last_lit&&(Bt(W,!1),W.strm.avail_out===0)?G:Pt}function Oe(W,Jt){for(var Wt,pt,dt;;){if(W.lookahead<It){if($e(W),W.lookahead<It&&Jt===I)return G;if(W.lookahead===0)break}if(Wt=0,W.lookahead>=$&&(W.ins_h=(W.ins_h<<W.hash_shift^W.window[W.strstart+$-1])&W.hash_mask,Wt=W.prev[W.strstart&W.w_mask]=W.head[W.ins_h],W.head[W.ins_h]=W.strstart),W.prev_length=W.match_length,W.prev_match=W.match_start,W.match_length=$-1,Wt!==0&&W.prev_length<W.max_lazy_match&&W.strstart-Wt<=W.w_size-It&&(W.match_length=Yt(W,Wt),W.match_length<=5&&(W.strategy===1||W.match_length===$&&4096<W.strstart-W.match_start)&&(W.match_length=$-1)),W.prev_length>=$&&W.match_length<=W.prev_length){for(dt=W.strstart+W.lookahead-$,pt=_._tr_tally(W,W.strstart-1-W.prev_match,W.prev_length-$),W.lookahead-=W.prev_length-1,W.prev_length-=2;++W.strstart<=dt&&(W.ins_h=(W.ins_h<<W.hash_shift^W.window[W.strstart+$-1])&W.hash_mask,Wt=W.prev[W.strstart&W.w_mask]=W.head[W.ins_h],W.head[W.ins_h]=W.strstart),--W.prev_length!=0;);if(W.match_available=0,W.match_length=$-1,W.strstart++,pt&&(Bt(W,!1),W.strm.avail_out===0))return G}else if(W.match_available){if((pt=_._tr_tally(W,0,W.window[W.strstart-1]))&&Bt(W,!1),W.strstart++,W.lookahead--,W.strm.avail_out===0)return G}else W.match_available=1,W.strstart++,W.lookahead--}return W.match_available&&(pt=_._tr_tally(W,0,W.window[W.strstart-1]),W.match_available=0),W.insert=W.strstart<$-1?W.strstart:$-1,Jt===k?(Bt(W,!0),W.strm.avail_out===0?Et:Ct):W.last_lit&&(Bt(W,!1),W.strm.avail_out===0)?G:Pt}function Ge(W,Jt,Wt,pt,dt){this.good_length=W,this.max_lazy=Jt,this.nice_length=Wt,this.max_chain=pt,this.func=dt}function di(){this.strm=null,this.status=0,this.pending_buf=null,this.pending_buf_size=0,this.pending_out=0,this.pending=0,this.wrap=0,this.gzhead=null,this.gzindex=0,this.method=M,this.last_flush=-1,this.w_size=0,this.w_bits=0,this.w_mask=0,this.window=null,this.window_size=0,this.prev=null,this.head=null,this.ins_h=0,this.hash_size=0,this.hash_bits=0,this.hash_mask=0,this.hash_shift=0,this.block_start=0,this.match_length=0,this.prev_match=0,this.match_available=0,this.strstart=0,this.match_start=0,this.lookahead=0,this.prev_length=0,this.max_chain_length=0,this.max_lazy_match=0,this.level=0,this.strategy=0,this.good_match=0,this.nice_match=0,this.dyn_ltree=new m.Buf16(2*j),this.dyn_dtree=new m.Buf16(2*(2*U+1)),this.bl_tree=new m.Buf16(2*(2*F+1)),Ft(this.dyn_ltree),Ft(this.dyn_dtree),Ft(this.bl_tree),this.l_desc=null,this.d_desc=null,this.bl_desc=null,this.bl_count=new m.Buf16(J+1),this.heap=new m.Buf16(2*b+1),Ft(this.heap),this.heap_len=0,this.heap_max=0,this.depth=new m.Buf16(2*b+1),Ft(this.depth),this.l_buf=0,this.lit_bufsize=0,this.last_lit=0,this.d_buf=0,this.opt_len=0,this.static_len=0,this.matches=0,this.insert=0,this.bi_buf=0,this.bi_valid=0}function Ii(W){var Jt;return W&&W.state?(W.total_in=W.total_out=0,W.data_type=T,(Jt=W.state).pending=0,Jt.pending_out=0,Jt.wrap<0&&(Jt.wrap=-Jt.wrap),Jt.status=Jt.wrap?et:yt,W.adler=Jt.wrap===2?0:1,Jt.last_flush=I,_._tr_init(Jt),D):fe(W,N)}function mn(W){var Jt=Ii(W);return Jt===D&&function(Wt){Wt.window_size=2*Wt.w_size,Ft(Wt.head),Wt.max_lazy_match=u[Wt.level].max_lazy,Wt.good_match=u[Wt.level].good_length,Wt.nice_match=u[Wt.level].nice_length,Wt.max_chain_length=u[Wt.level].max_chain,Wt.strstart=0,Wt.block_start=0,Wt.lookahead=0,Wt.insert=0,Wt.match_length=Wt.prev_length=$-1,Wt.match_available=0,Wt.ins_h=0}(W.state),Jt}function Qi(W,Jt,Wt,pt,dt,Dt){if(!W)return N;var ie=1;if(Jt===E&&(Jt=6),pt<0?(ie=0,pt=-pt):15<pt&&(ie=2,pt-=16),dt<1||R<dt||Wt!==M||pt<8||15<pt||Jt<0||9<Jt||Dt<0||P<Dt)return fe(W,N);pt===8&&(pt=9);var Kt=new di;return(W.state=Kt).strm=W,Kt.wrap=ie,Kt.gzhead=null,Kt.w_bits=pt,Kt.w_size=1<<Kt.w_bits,Kt.w_mask=Kt.w_size-1,Kt.hash_bits=dt+7,Kt.hash_size=1<<Kt.hash_bits,Kt.hash_mask=Kt.hash_size-1,Kt.hash_shift=~~((Kt.hash_bits+$-1)/$),Kt.window=new m.Buf8(2*Kt.w_size),Kt.head=new m.Buf16(Kt.hash_size),Kt.prev=new m.Buf16(Kt.w_size),Kt.lit_bufsize=1<<dt+6,Kt.pending_buf_size=4*Kt.lit_bufsize,Kt.pending_buf=new m.Buf8(Kt.pending_buf_size),Kt.d_buf=1*Kt.lit_bufsize,Kt.l_buf=3*Kt.lit_bufsize,Kt.level=Jt,Kt.strategy=Dt,Kt.method=Wt,mn(W)}u=[new Ge(0,0,0,0,function(W,Jt){var Wt=65535;for(Wt>W.pending_buf_size-5&&(Wt=W.pending_buf_size-5);;){if(W.lookahead<=1){if($e(W),W.lookahead===0&&Jt===I)return G;if(W.lookahead===0)break}W.strstart+=W.lookahead,W.lookahead=0;var pt=W.block_start+Wt;if((W.strstart===0||W.strstart>=pt)&&(W.lookahead=W.strstart-pt,W.strstart=pt,Bt(W,!1),W.strm.avail_out===0)||W.strstart-W.block_start>=W.w_size-It&&(Bt(W,!1),W.strm.avail_out===0))return G}return W.insert=0,Jt===k?(Bt(W,!0),W.strm.avail_out===0?Et:Ct):(W.strstart>W.block_start&&(Bt(W,!1),W.strm.avail_out),G)}),new Ge(4,4,8,4,Oi),new Ge(4,5,16,8,Oi),new Ge(4,6,32,32,Oi),new Ge(4,4,16,16,Oe),new Ge(8,16,32,32,Oe),new Ge(8,16,128,128,Oe),new Ge(8,32,128,256,Oe),new Ge(32,128,258,1024,Oe),new Ge(32,258,258,4096,Oe)],d.deflateInit=function(W,Jt){return Qi(W,Jt,M,15,8,0)},d.deflateInit2=Qi,d.deflateReset=mn,d.deflateResetKeep=Ii,d.deflateSetHeader=function(W,Jt){return W&&W.state?W.state.wrap!==2?N:(W.state.gzhead=Jt,D):N},d.deflate=function(W,Jt){var Wt,pt,dt,Dt;if(!W||!W.state||5<Jt||Jt<0)return W?fe(W,N):N;if(pt=W.state,!W.output||!W.input&&W.avail_in!==0||pt.status===666&&Jt!==k)return fe(W,W.avail_out===0?-5:N);if(pt.strm=W,Wt=pt.last_flush,pt.last_flush=Jt,pt.status===et)if(pt.wrap===2)W.adler=0,ke(pt,31),ke(pt,139),ke(pt,8),pt.gzhead?(ke(pt,(pt.gzhead.text?1:0)+(pt.gzhead.hcrc?2:0)+(pt.gzhead.extra?4:0)+(pt.gzhead.name?8:0)+(pt.gzhead.comment?16:0)),ke(pt,255&pt.gzhead.time),ke(pt,pt.gzhead.time>>8&255),ke(pt,pt.gzhead.time>>16&255),ke(pt,pt.gzhead.time>>24&255),ke(pt,pt.level===9?2:2<=pt.strategy||pt.level<2?4:0),ke(pt,255&pt.gzhead.os),pt.gzhead.extra&&pt.gzhead.extra.length&&(ke(pt,255&pt.gzhead.extra.length),ke(pt,pt.gzhead.extra.length>>8&255)),pt.gzhead.hcrc&&(W.adler=S(W.adler,pt.pending_buf,pt.pending,0)),pt.gzindex=0,pt.status=69):(ke(pt,0),ke(pt,0),ke(pt,0),ke(pt,0),ke(pt,0),ke(pt,pt.level===9?2:2<=pt.strategy||pt.level<2?4:0),ke(pt,3),pt.status=yt);else{var ie=M+(pt.w_bits-8<<4)<<8;ie|=(2<=pt.strategy||pt.level<2?0:pt.level<6?1:pt.level===6?2:3)<<6,pt.strstart!==0&&(ie|=32),ie+=31-ie%31,pt.status=yt,ce(pt,ie),pt.strstart!==0&&(ce(pt,W.adler>>>16),ce(pt,65535&W.adler)),W.adler=1}if(pt.status===69)if(pt.gzhead.extra){for(dt=pt.pending;pt.gzindex<(65535&pt.gzhead.extra.length)&&(pt.pending!==pt.pending_buf_size||(pt.gzhead.hcrc&&pt.pending>dt&&(W.adler=S(W.adler,pt.pending_buf,pt.pending-dt,dt)),Ot(W),dt=pt.pending,pt.pending!==pt.pending_buf_size));)ke(pt,255&pt.gzhead.extra[pt.gzindex]),pt.gzindex++;pt.gzhead.hcrc&&pt.pending>dt&&(W.adler=S(W.adler,pt.pending_buf,pt.pending-dt,dt)),pt.gzindex===pt.gzhead.extra.length&&(pt.gzindex=0,pt.status=73)}else pt.status=73;if(pt.status===73)if(pt.gzhead.name){dt=pt.pending;do{if(pt.pending===pt.pending_buf_size&&(pt.gzhead.hcrc&&pt.pending>dt&&(W.adler=S(W.adler,pt.pending_buf,pt.pending-dt,dt)),Ot(W),dt=pt.pending,pt.pending===pt.pending_buf_size)){Dt=1;break}Dt=pt.gzindex<pt.gzhead.name.length?255&pt.gzhead.name.charCodeAt(pt.gzindex++):0,ke(pt,Dt)}while(Dt!==0);pt.gzhead.hcrc&&pt.pending>dt&&(W.adler=S(W.adler,pt.pending_buf,pt.pending-dt,dt)),Dt===0&&(pt.gzindex=0,pt.status=91)}else pt.status=91;if(pt.status===91)if(pt.gzhead.comment){dt=pt.pending;do{if(pt.pending===pt.pending_buf_size&&(pt.gzhead.hcrc&&pt.pending>dt&&(W.adler=S(W.adler,pt.pending_buf,pt.pending-dt,dt)),Ot(W),dt=pt.pending,pt.pending===pt.pending_buf_size)){Dt=1;break}Dt=pt.gzindex<pt.gzhead.comment.length?255&pt.gzhead.comment.charCodeAt(pt.gzindex++):0,ke(pt,Dt)}while(Dt!==0);pt.gzhead.hcrc&&pt.pending>dt&&(W.adler=S(W.adler,pt.pending_buf,pt.pending-dt,dt)),Dt===0&&(pt.status=103)}else pt.status=103;if(pt.status===103&&(pt.gzhead.hcrc?(pt.pending+2>pt.pending_buf_size&&Ot(W),pt.pending+2<=pt.pending_buf_size&&(ke(pt,255&W.adler),ke(pt,W.adler>>8&255),W.adler=0,pt.status=yt)):pt.status=yt),pt.pending!==0){if(Ot(W),W.avail_out===0)return pt.last_flush=-1,D}else if(W.avail_in===0&&re(Jt)<=re(Wt)&&Jt!==k)return fe(W,-5);if(pt.status===666&&W.avail_in!==0)return fe(W,-5);if(W.avail_in!==0||pt.lookahead!==0||Jt!==I&&pt.status!==666){var Kt=pt.strategy===2?function(z,Q){for(var ot;;){if(z.lookahead===0&&($e(z),z.lookahead===0)){if(Q===I)return G;break}if(z.match_length=0,ot=_._tr_tally(z,0,z.window[z.strstart]),z.lookahead--,z.strstart++,ot&&(Bt(z,!1),z.strm.avail_out===0))return G}return z.insert=0,Q===k?(Bt(z,!0),z.strm.avail_out===0?Et:Ct):z.last_lit&&(Bt(z,!1),z.strm.avail_out===0)?G:Pt}(pt,Jt):pt.strategy===3?function(z,Q){for(var ot,nt,vt,Gt,Xt=z.window;;){if(z.lookahead<=ct){if($e(z),z.lookahead<=ct&&Q===I)return G;if(z.lookahead===0)break}if(z.match_length=0,z.lookahead>=$&&0<z.strstart&&(nt=Xt[vt=z.strstart-1])===Xt[++vt]&&nt===Xt[++vt]&&nt===Xt[++vt]){Gt=z.strstart+ct;do;while(nt===Xt[++vt]&&nt===Xt[++vt]&&nt===Xt[++vt]&&nt===Xt[++vt]&&nt===Xt[++vt]&&nt===Xt[++vt]&&nt===Xt[++vt]&&nt===Xt[++vt]&&vt<Gt);z.match_length=ct-(Gt-vt),z.match_length>z.lookahead&&(z.match_length=z.lookahead)}if(z.match_length>=$?(ot=_._tr_tally(z,1,z.match_length-$),z.lookahead-=z.match_length,z.strstart+=z.match_length,z.match_length=0):(ot=_._tr_tally(z,0,z.window[z.strstart]),z.lookahead--,z.strstart++),ot&&(Bt(z,!1),z.strm.avail_out===0))return G}return z.insert=0,Q===k?(Bt(z,!0),z.strm.avail_out===0?Et:Ct):z.last_lit&&(Bt(z,!1),z.strm.avail_out===0)?G:Pt}(pt,Jt):u[pt.level].func(pt,Jt);if(Kt!==Et&&Kt!==Ct||(pt.status=666),Kt===G||Kt===Et)return W.avail_out===0&&(pt.last_flush=-1),D;if(Kt===Pt&&(Jt===1?_._tr_align(pt):Jt!==5&&(_._tr_stored_block(pt,0,0,!1),Jt===3&&(Ft(pt.head),pt.lookahead===0&&(pt.strstart=0,pt.block_start=0,pt.insert=0))),Ot(W),W.avail_out===0))return pt.last_flush=-1,D}return Jt!==k?D:pt.wrap<=0?1:(pt.wrap===2?(ke(pt,255&W.adler),ke(pt,W.adler>>8&255),ke(pt,W.adler>>16&255),ke(pt,W.adler>>24&255),ke(pt,255&W.total_in),ke(pt,W.total_in>>8&255),ke(pt,W.total_in>>16&255),ke(pt,W.total_in>>24&255)):(ce(pt,W.adler>>>16),ce(pt,65535&W.adler)),Ot(W),0<pt.wrap&&(pt.wrap=-pt.wrap),pt.pending!==0?D:1)},d.deflateEnd=function(W){var Jt;return W&&W.state?(Jt=W.state.status)!==et&&Jt!==69&&Jt!==73&&Jt!==91&&Jt!==103&&Jt!==yt&&Jt!==666?fe(W,N):(W.state=null,Jt===yt?fe(W,-3):D):N},d.deflateSetDictionary=function(W,Jt){var Wt,pt,dt,Dt,ie,Kt,z,Q,ot=Jt.length;if(!W||!W.state||(Dt=(Wt=W.state).wrap)===2||Dt===1&&Wt.status!==et||Wt.lookahead)return N;for(Dt===1&&(W.adler=y(W.adler,Jt,ot,0)),Wt.wrap=0,ot>=Wt.w_size&&(Dt===0&&(Ft(Wt.head),Wt.strstart=0,Wt.block_start=0,Wt.insert=0),Q=new m.Buf8(Wt.w_size),m.arraySet(Q,Jt,ot-Wt.w_size,Wt.w_size,0),Jt=Q,ot=Wt.w_size),ie=W.avail_in,Kt=W.next_in,z=W.input,W.avail_in=ot,W.next_in=0,W.input=Jt,$e(Wt);Wt.lookahead>=$;){for(pt=Wt.strstart,dt=Wt.lookahead-($-1);Wt.ins_h=(Wt.ins_h<<Wt.hash_shift^Wt.window[pt+$-1])&Wt.hash_mask,Wt.prev[pt&Wt.w_mask]=Wt.head[Wt.ins_h],Wt.head[Wt.ins_h]=pt,pt++,--dt;);Wt.strstart=pt,Wt.lookahead=$-1,$e(Wt)}return Wt.strstart+=Wt.lookahead,Wt.block_start=Wt.strstart,Wt.insert=Wt.lookahead,Wt.lookahead=0,Wt.match_length=Wt.prev_length=$-1,Wt.match_available=0,W.next_in=Kt,W.input=z,W.avail_in=ie,Wt.wrap=Dt,D},d.deflateInfo="pako deflate (from Nodeca project)"},{"../utils/common":41,"./adler32":43,"./crc32":45,"./messages":51,"./trees":52}],47:[function(o,c,d){c.exports=function(){this.text=0,this.time=0,this.xflags=0,this.os=0,this.extra=null,this.extra_len=0,this.name="",this.comment="",this.hcrc=0,this.done=!1}},{}],48:[function(o,c,d){c.exports=function(u,m){var _,y,S,A,I,k,D,N,E,P,T,M,R,b,U,F,j,J,$,ct,It,et,yt,G,Pt;_=u.state,y=u.next_in,G=u.input,S=y+(u.avail_in-5),A=u.next_out,Pt=u.output,I=A-(m-u.avail_out),k=A+(u.avail_out-257),D=_.dmax,N=_.wsize,E=_.whave,P=_.wnext,T=_.window,M=_.hold,R=_.bits,b=_.lencode,U=_.distcode,F=(1<<_.lenbits)-1,j=(1<<_.distbits)-1;t:do{R<15&&(M+=G[y++]<<R,R+=8,M+=G[y++]<<R,R+=8),J=b[M&F];e:for(;;){if(M>>>=$=J>>>24,R-=$,($=J>>>16&255)===0)Pt[A++]=65535&J;else{if(!(16&$)){if(!(64&$)){J=b[(65535&J)+(M&(1<<$)-1)];continue e}if(32&$){_.mode=12;break t}u.msg="invalid literal/length code",_.mode=30;break t}ct=65535&J,($&=15)&&(R<$&&(M+=G[y++]<<R,R+=8),ct+=M&(1<<$)-1,M>>>=$,R-=$),R<15&&(M+=G[y++]<<R,R+=8,M+=G[y++]<<R,R+=8),J=U[M&j];i:for(;;){if(M>>>=$=J>>>24,R-=$,!(16&($=J>>>16&255))){if(!(64&$)){J=U[(65535&J)+(M&(1<<$)-1)];continue i}u.msg="invalid distance code",_.mode=30;break t}if(It=65535&J,R<($&=15)&&(M+=G[y++]<<R,(R+=8)<$&&(M+=G[y++]<<R,R+=8)),D<(It+=M&(1<<$)-1)){u.msg="invalid distance too far back",_.mode=30;break t}if(M>>>=$,R-=$,($=A-I)<It){if(E<($=It-$)&&_.sane){u.msg="invalid distance too far back",_.mode=30;break t}if(yt=T,(et=0)===P){if(et+=N-$,$<ct){for(ct-=$;Pt[A++]=T[et++],--$;);et=A-It,yt=Pt}}else if(P<$){if(et+=N+P-$,($-=P)<ct){for(ct-=$;Pt[A++]=T[et++],--$;);if(et=0,P<ct){for(ct-=$=P;Pt[A++]=T[et++],--$;);et=A-It,yt=Pt}}}else if(et+=P-$,$<ct){for(ct-=$;Pt[A++]=T[et++],--$;);et=A-It,yt=Pt}for(;2<ct;)Pt[A++]=yt[et++],Pt[A++]=yt[et++],Pt[A++]=yt[et++],ct-=3;ct&&(Pt[A++]=yt[et++],1<ct&&(Pt[A++]=yt[et++]))}else{for(et=A-It;Pt[A++]=Pt[et++],Pt[A++]=Pt[et++],Pt[A++]=Pt[et++],2<(ct-=3););ct&&(Pt[A++]=Pt[et++],1<ct&&(Pt[A++]=Pt[et++]))}break}}break}}while(y<S&&A<k);y-=ct=R>>3,M&=(1<<(R-=ct<<3))-1,u.next_in=y,u.next_out=A,u.avail_in=y<S?S-y+5:5-(y-S),u.avail_out=A<k?k-A+257:257-(A-k),_.hold=M,_.bits=R}},{}],49:[function(o,c,d){var u=o("../utils/common"),m=o("./adler32"),_=o("./crc32"),y=o("./inffast"),S=o("./inftrees"),A=1,I=2,k=0,D=-2,N=1,E=852,P=592;function T(et){return(et>>>24&255)+(et>>>8&65280)+((65280&et)<<8)+((255&et)<<24)}function M(){this.mode=0,this.last=!1,this.wrap=0,this.havedict=!1,this.flags=0,this.dmax=0,this.check=0,this.total=0,this.head=null,this.wbits=0,this.wsize=0,this.whave=0,this.wnext=0,this.window=null,this.hold=0,this.bits=0,this.length=0,this.offset=0,this.extra=0,this.lencode=null,this.distcode=null,this.lenbits=0,this.distbits=0,this.ncode=0,this.nlen=0,this.ndist=0,this.have=0,this.next=null,this.lens=new u.Buf16(320),this.work=new u.Buf16(288),this.lendyn=null,this.distdyn=null,this.sane=0,this.back=0,this.was=0}function R(et){var yt;return et&&et.state?(yt=et.state,et.total_in=et.total_out=yt.total=0,et.msg="",yt.wrap&&(et.adler=1&yt.wrap),yt.mode=N,yt.last=0,yt.havedict=0,yt.dmax=32768,yt.head=null,yt.hold=0,yt.bits=0,yt.lencode=yt.lendyn=new u.Buf32(E),yt.distcode=yt.distdyn=new u.Buf32(P),yt.sane=1,yt.back=-1,k):D}function b(et){var yt;return et&&et.state?((yt=et.state).wsize=0,yt.whave=0,yt.wnext=0,R(et)):D}function U(et,yt){var G,Pt;return et&&et.state?(Pt=et.state,yt<0?(G=0,yt=-yt):(G=1+(yt>>4),yt<48&&(yt&=15)),yt&&(yt<8||15<yt)?D:(Pt.window!==null&&Pt.wbits!==yt&&(Pt.window=null),Pt.wrap=G,Pt.wbits=yt,b(et))):D}function F(et,yt){var G,Pt;return et?(Pt=new M,(et.state=Pt).window=null,(G=U(et,yt))!==k&&(et.state=null),G):D}var j,J,$=!0;function ct(et){if($){var yt;for(j=new u.Buf32(512),J=new u.Buf32(32),yt=0;yt<144;)et.lens[yt++]=8;for(;yt<256;)et.lens[yt++]=9;for(;yt<280;)et.lens[yt++]=7;for(;yt<288;)et.lens[yt++]=8;for(S(A,et.lens,0,288,j,0,et.work,{bits:9}),yt=0;yt<32;)et.lens[yt++]=5;S(I,et.lens,0,32,J,0,et.work,{bits:5}),$=!1}et.lencode=j,et.lenbits=9,et.distcode=J,et.distbits=5}function It(et,yt,G,Pt){var Et,Ct=et.state;return Ct.window===null&&(Ct.wsize=1<<Ct.wbits,Ct.wnext=0,Ct.whave=0,Ct.window=new u.Buf8(Ct.wsize)),Pt>=Ct.wsize?(u.arraySet(Ct.window,yt,G-Ct.wsize,Ct.wsize,0),Ct.wnext=0,Ct.whave=Ct.wsize):(Pt<(Et=Ct.wsize-Ct.wnext)&&(Et=Pt),u.arraySet(Ct.window,yt,G-Pt,Et,Ct.wnext),(Pt-=Et)?(u.arraySet(Ct.window,yt,G-Pt,Pt,0),Ct.wnext=Pt,Ct.whave=Ct.wsize):(Ct.wnext+=Et,Ct.wnext===Ct.wsize&&(Ct.wnext=0),Ct.whave<Ct.wsize&&(Ct.whave+=Et))),0}d.inflateReset=b,d.inflateReset2=U,d.inflateResetKeep=R,d.inflateInit=function(et){return F(et,15)},d.inflateInit2=F,d.inflate=function(et,yt){var G,Pt,Et,Ct,fe,re,Ft,Ot,Bt,ke,ce,Yt,$e,Oi,Oe,Ge,di,Ii,mn,Qi,W,Jt,Wt,pt,dt=0,Dt=new u.Buf8(4),ie=[16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15];if(!et||!et.state||!et.output||!et.input&&et.avail_in!==0)return D;(G=et.state).mode===12&&(G.mode=13),fe=et.next_out,Et=et.output,Ft=et.avail_out,Ct=et.next_in,Pt=et.input,re=et.avail_in,Ot=G.hold,Bt=G.bits,ke=re,ce=Ft,Jt=k;t:for(;;)switch(G.mode){case N:if(G.wrap===0){G.mode=13;break}for(;Bt<16;){if(re===0)break t;re--,Ot+=Pt[Ct++]<<Bt,Bt+=8}if(2&G.wrap&&Ot===35615){Dt[G.check=0]=255&Ot,Dt[1]=Ot>>>8&255,G.check=_(G.check,Dt,2,0),Bt=Ot=0,G.mode=2;break}if(G.flags=0,G.head&&(G.head.done=!1),!(1&G.wrap)||(((255&Ot)<<8)+(Ot>>8))%31){et.msg="incorrect header check",G.mode=30;break}if((15&Ot)!=8){et.msg="unknown compression method",G.mode=30;break}if(Bt-=4,W=8+(15&(Ot>>>=4)),G.wbits===0)G.wbits=W;else if(W>G.wbits){et.msg="invalid window size",G.mode=30;break}G.dmax=1<<W,et.adler=G.check=1,G.mode=512&Ot?10:12,Bt=Ot=0;break;case 2:for(;Bt<16;){if(re===0)break t;re--,Ot+=Pt[Ct++]<<Bt,Bt+=8}if(G.flags=Ot,(255&G.flags)!=8){et.msg="unknown compression method",G.mode=30;break}if(57344&G.flags){et.msg="unknown header flags set",G.mode=30;break}G.head&&(G.head.text=Ot>>8&1),512&G.flags&&(Dt[0]=255&Ot,Dt[1]=Ot>>>8&255,G.check=_(G.check,Dt,2,0)),Bt=Ot=0,G.mode=3;case 3:for(;Bt<32;){if(re===0)break t;re--,Ot+=Pt[Ct++]<<Bt,Bt+=8}G.head&&(G.head.time=Ot),512&G.flags&&(Dt[0]=255&Ot,Dt[1]=Ot>>>8&255,Dt[2]=Ot>>>16&255,Dt[3]=Ot>>>24&255,G.check=_(G.check,Dt,4,0)),Bt=Ot=0,G.mode=4;case 4:for(;Bt<16;){if(re===0)break t;re--,Ot+=Pt[Ct++]<<Bt,Bt+=8}G.head&&(G.head.xflags=255&Ot,G.head.os=Ot>>8),512&G.flags&&(Dt[0]=255&Ot,Dt[1]=Ot>>>8&255,G.check=_(G.check,Dt,2,0)),Bt=Ot=0,G.mode=5;case 5:if(1024&G.flags){for(;Bt<16;){if(re===0)break t;re--,Ot+=Pt[Ct++]<<Bt,Bt+=8}G.length=Ot,G.head&&(G.head.extra_len=Ot),512&G.flags&&(Dt[0]=255&Ot,Dt[1]=Ot>>>8&255,G.check=_(G.check,Dt,2,0)),Bt=Ot=0}else G.head&&(G.head.extra=null);G.mode=6;case 6:if(1024&G.flags&&(re<(Yt=G.length)&&(Yt=re),Yt&&(G.head&&(W=G.head.extra_len-G.length,G.head.extra||(G.head.extra=new Array(G.head.extra_len)),u.arraySet(G.head.extra,Pt,Ct,Yt,W)),512&G.flags&&(G.check=_(G.check,Pt,Yt,Ct)),re-=Yt,Ct+=Yt,G.length-=Yt),G.length))break t;G.length=0,G.mode=7;case 7:if(2048&G.flags){if(re===0)break t;for(Yt=0;W=Pt[Ct+Yt++],G.head&&W&&G.length<65536&&(G.head.name+=String.fromCharCode(W)),W&&Yt<re;);if(512&G.flags&&(G.check=_(G.check,Pt,Yt,Ct)),re-=Yt,Ct+=Yt,W)break t}else G.head&&(G.head.name=null);G.length=0,G.mode=8;case 8:if(4096&G.flags){if(re===0)break t;for(Yt=0;W=Pt[Ct+Yt++],G.head&&W&&G.length<65536&&(G.head.comment+=String.fromCharCode(W)),W&&Yt<re;);if(512&G.flags&&(G.check=_(G.check,Pt,Yt,Ct)),re-=Yt,Ct+=Yt,W)break t}else G.head&&(G.head.comment=null);G.mode=9;case 9:if(512&G.flags){for(;Bt<16;){if(re===0)break t;re--,Ot+=Pt[Ct++]<<Bt,Bt+=8}if(Ot!==(65535&G.check)){et.msg="header crc mismatch",G.mode=30;break}Bt=Ot=0}G.head&&(G.head.hcrc=G.flags>>9&1,G.head.done=!0),et.adler=G.check=0,G.mode=12;break;case 10:for(;Bt<32;){if(re===0)break t;re--,Ot+=Pt[Ct++]<<Bt,Bt+=8}et.adler=G.check=T(Ot),Bt=Ot=0,G.mode=11;case 11:if(G.havedict===0)return et.next_out=fe,et.avail_out=Ft,et.next_in=Ct,et.avail_in=re,G.hold=Ot,G.bits=Bt,2;et.adler=G.check=1,G.mode=12;case 12:if(yt===5||yt===6)break t;case 13:if(G.last){Ot>>>=7&Bt,Bt-=7&Bt,G.mode=27;break}for(;Bt<3;){if(re===0)break t;re--,Ot+=Pt[Ct++]<<Bt,Bt+=8}switch(G.last=1&Ot,Bt-=1,3&(Ot>>>=1)){case 0:G.mode=14;break;case 1:if(ct(G),G.mode=20,yt!==6)break;Ot>>>=2,Bt-=2;break t;case 2:G.mode=17;break;case 3:et.msg="invalid block type",G.mode=30}Ot>>>=2,Bt-=2;break;case 14:for(Ot>>>=7&Bt,Bt-=7&Bt;Bt<32;){if(re===0)break t;re--,Ot+=Pt[Ct++]<<Bt,Bt+=8}if((65535&Ot)!=(Ot>>>16^65535)){et.msg="invalid stored block lengths",G.mode=30;break}if(G.length=65535&Ot,Bt=Ot=0,G.mode=15,yt===6)break t;case 15:G.mode=16;case 16:if(Yt=G.length){if(re<Yt&&(Yt=re),Ft<Yt&&(Yt=Ft),Yt===0)break t;u.arraySet(Et,Pt,Ct,Yt,fe),re-=Yt,Ct+=Yt,Ft-=Yt,fe+=Yt,G.length-=Yt;break}G.mode=12;break;case 17:for(;Bt<14;){if(re===0)break t;re--,Ot+=Pt[Ct++]<<Bt,Bt+=8}if(G.nlen=257+(31&Ot),Ot>>>=5,Bt-=5,G.ndist=1+(31&Ot),Ot>>>=5,Bt-=5,G.ncode=4+(15&Ot),Ot>>>=4,Bt-=4,286<G.nlen||30<G.ndist){et.msg="too many length or distance symbols",G.mode=30;break}G.have=0,G.mode=18;case 18:for(;G.have<G.ncode;){for(;Bt<3;){if(re===0)break t;re--,Ot+=Pt[Ct++]<<Bt,Bt+=8}G.lens[ie[G.have++]]=7&Ot,Ot>>>=3,Bt-=3}for(;G.have<19;)G.lens[ie[G.have++]]=0;if(G.lencode=G.lendyn,G.lenbits=7,Wt={bits:G.lenbits},Jt=S(0,G.lens,0,19,G.lencode,0,G.work,Wt),G.lenbits=Wt.bits,Jt){et.msg="invalid code lengths set",G.mode=30;break}G.have=0,G.mode=19;case 19:for(;G.have<G.nlen+G.ndist;){for(;Ge=(dt=G.lencode[Ot&(1<<G.lenbits)-1])>>>16&255,di=65535&dt,!((Oe=dt>>>24)<=Bt);){if(re===0)break t;re--,Ot+=Pt[Ct++]<<Bt,Bt+=8}if(di<16)Ot>>>=Oe,Bt-=Oe,G.lens[G.have++]=di;else{if(di===16){for(pt=Oe+2;Bt<pt;){if(re===0)break t;re--,Ot+=Pt[Ct++]<<Bt,Bt+=8}if(Ot>>>=Oe,Bt-=Oe,G.have===0){et.msg="invalid bit length repeat",G.mode=30;break}W=G.lens[G.have-1],Yt=3+(3&Ot),Ot>>>=2,Bt-=2}else if(di===17){for(pt=Oe+3;Bt<pt;){if(re===0)break t;re--,Ot+=Pt[Ct++]<<Bt,Bt+=8}Bt-=Oe,W=0,Yt=3+(7&(Ot>>>=Oe)),Ot>>>=3,Bt-=3}else{for(pt=Oe+7;Bt<pt;){if(re===0)break t;re--,Ot+=Pt[Ct++]<<Bt,Bt+=8}Bt-=Oe,W=0,Yt=11+(127&(Ot>>>=Oe)),Ot>>>=7,Bt-=7}if(G.have+Yt>G.nlen+G.ndist){et.msg="invalid bit length repeat",G.mode=30;break}for(;Yt--;)G.lens[G.have++]=W}}if(G.mode===30)break;if(G.lens[256]===0){et.msg="invalid code -- missing end-of-block",G.mode=30;break}if(G.lenbits=9,Wt={bits:G.lenbits},Jt=S(A,G.lens,0,G.nlen,G.lencode,0,G.work,Wt),G.lenbits=Wt.bits,Jt){et.msg="invalid literal/lengths set",G.mode=30;break}if(G.distbits=6,G.distcode=G.distdyn,Wt={bits:G.distbits},Jt=S(I,G.lens,G.nlen,G.ndist,G.distcode,0,G.work,Wt),G.distbits=Wt.bits,Jt){et.msg="invalid distances set",G.mode=30;break}if(G.mode=20,yt===6)break t;case 20:G.mode=21;case 21:if(6<=re&&258<=Ft){et.next_out=fe,et.avail_out=Ft,et.next_in=Ct,et.avail_in=re,G.hold=Ot,G.bits=Bt,y(et,ce),fe=et.next_out,Et=et.output,Ft=et.avail_out,Ct=et.next_in,Pt=et.input,re=et.avail_in,Ot=G.hold,Bt=G.bits,G.mode===12&&(G.back=-1);break}for(G.back=0;Ge=(dt=G.lencode[Ot&(1<<G.lenbits)-1])>>>16&255,di=65535&dt,!((Oe=dt>>>24)<=Bt);){if(re===0)break t;re--,Ot+=Pt[Ct++]<<Bt,Bt+=8}if(Ge&&!(240&Ge)){for(Ii=Oe,mn=Ge,Qi=di;Ge=(dt=G.lencode[Qi+((Ot&(1<<Ii+mn)-1)>>Ii)])>>>16&255,di=65535&dt,!(Ii+(Oe=dt>>>24)<=Bt);){if(re===0)break t;re--,Ot+=Pt[Ct++]<<Bt,Bt+=8}Ot>>>=Ii,Bt-=Ii,G.back+=Ii}if(Ot>>>=Oe,Bt-=Oe,G.back+=Oe,G.length=di,Ge===0){G.mode=26;break}if(32&Ge){G.back=-1,G.mode=12;break}if(64&Ge){et.msg="invalid literal/length code",G.mode=30;break}G.extra=15&Ge,G.mode=22;case 22:if(G.extra){for(pt=G.extra;Bt<pt;){if(re===0)break t;re--,Ot+=Pt[Ct++]<<Bt,Bt+=8}G.length+=Ot&(1<<G.extra)-1,Ot>>>=G.extra,Bt-=G.extra,G.back+=G.extra}G.was=G.length,G.mode=23;case 23:for(;Ge=(dt=G.distcode[Ot&(1<<G.distbits)-1])>>>16&255,di=65535&dt,!((Oe=dt>>>24)<=Bt);){if(re===0)break t;re--,Ot+=Pt[Ct++]<<Bt,Bt+=8}if(!(240&Ge)){for(Ii=Oe,mn=Ge,Qi=di;Ge=(dt=G.distcode[Qi+((Ot&(1<<Ii+mn)-1)>>Ii)])>>>16&255,di=65535&dt,!(Ii+(Oe=dt>>>24)<=Bt);){if(re===0)break t;re--,Ot+=Pt[Ct++]<<Bt,Bt+=8}Ot>>>=Ii,Bt-=Ii,G.back+=Ii}if(Ot>>>=Oe,Bt-=Oe,G.back+=Oe,64&Ge){et.msg="invalid distance code",G.mode=30;break}G.offset=di,G.extra=15&Ge,G.mode=24;case 24:if(G.extra){for(pt=G.extra;Bt<pt;){if(re===0)break t;re--,Ot+=Pt[Ct++]<<Bt,Bt+=8}G.offset+=Ot&(1<<G.extra)-1,Ot>>>=G.extra,Bt-=G.extra,G.back+=G.extra}if(G.offset>G.dmax){et.msg="invalid distance too far back",G.mode=30;break}G.mode=25;case 25:if(Ft===0)break t;if(Yt=ce-Ft,G.offset>Yt){if((Yt=G.offset-Yt)>G.whave&&G.sane){et.msg="invalid distance too far back",G.mode=30;break}$e=Yt>G.wnext?(Yt-=G.wnext,G.wsize-Yt):G.wnext-Yt,Yt>G.length&&(Yt=G.length),Oi=G.window}else Oi=Et,$e=fe-G.offset,Yt=G.length;for(Ft<Yt&&(Yt=Ft),Ft-=Yt,G.length-=Yt;Et[fe++]=Oi[$e++],--Yt;);G.length===0&&(G.mode=21);break;case 26:if(Ft===0)break t;Et[fe++]=G.length,Ft--,G.mode=21;break;case 27:if(G.wrap){for(;Bt<32;){if(re===0)break t;re--,Ot|=Pt[Ct++]<<Bt,Bt+=8}if(ce-=Ft,et.total_out+=ce,G.total+=ce,ce&&(et.adler=G.check=G.flags?_(G.check,Et,ce,fe-ce):m(G.check,Et,ce,fe-ce)),ce=Ft,(G.flags?Ot:T(Ot))!==G.check){et.msg="incorrect data check",G.mode=30;break}Bt=Ot=0}G.mode=28;case 28:if(G.wrap&&G.flags){for(;Bt<32;){if(re===0)break t;re--,Ot+=Pt[Ct++]<<Bt,Bt+=8}if(Ot!==(4294967295&G.total)){et.msg="incorrect length check",G.mode=30;break}Bt=Ot=0}G.mode=29;case 29:Jt=1;break t;case 30:Jt=-3;break t;case 31:return-4;case 32:default:return D}return et.next_out=fe,et.avail_out=Ft,et.next_in=Ct,et.avail_in=re,G.hold=Ot,G.bits=Bt,(G.wsize||ce!==et.avail_out&&G.mode<30&&(G.mode<27||yt!==4))&&It(et,et.output,et.next_out,ce-et.avail_out)?(G.mode=31,-4):(ke-=et.avail_in,ce-=et.avail_out,et.total_in+=ke,et.total_out+=ce,G.total+=ce,G.wrap&&ce&&(et.adler=G.check=G.flags?_(G.check,Et,ce,et.next_out-ce):m(G.check,Et,ce,et.next_out-ce)),et.data_type=G.bits+(G.last?64:0)+(G.mode===12?128:0)+(G.mode===20||G.mode===15?256:0),(ke==0&&ce===0||yt===4)&&Jt===k&&(Jt=-5),Jt)},d.inflateEnd=function(et){if(!et||!et.state)return D;var yt=et.state;return yt.window&&(yt.window=null),et.state=null,k},d.inflateGetHeader=function(et,yt){var G;return et&&et.state&&2&(G=et.state).wrap?((G.head=yt).done=!1,k):D},d.inflateSetDictionary=function(et,yt){var G,Pt=yt.length;return et&&et.state?(G=et.state).wrap!==0&&G.mode!==11?D:G.mode===11&&m(1,yt,Pt,0)!==G.check?-3:It(et,yt,Pt,Pt)?(G.mode=31,-4):(G.havedict=1,k):D},d.inflateInfo="pako inflate (from Nodeca project)"},{"../utils/common":41,"./adler32":43,"./crc32":45,"./inffast":48,"./inftrees":50}],50:[function(o,c,d){var u=o("../utils/common"),m=[3,4,5,6,7,8,9,10,11,13,15,17,19,23,27,31,35,43,51,59,67,83,99,115,131,163,195,227,258,0,0],_=[16,16,16,16,16,16,16,16,17,17,17,17,18,18,18,18,19,19,19,19,20,20,20,20,21,21,21,21,16,72,78],y=[1,2,3,4,5,7,9,13,17,25,33,49,65,97,129,193,257,385,513,769,1025,1537,2049,3073,4097,6145,8193,12289,16385,24577,0,0],S=[16,16,16,16,17,17,18,18,19,19,20,20,21,21,22,22,23,23,24,24,25,25,26,26,27,27,28,28,29,29,64,64];c.exports=function(A,I,k,D,N,E,P,T){var M,R,b,U,F,j,J,$,ct,It=T.bits,et=0,yt=0,G=0,Pt=0,Et=0,Ct=0,fe=0,re=0,Ft=0,Ot=0,Bt=null,ke=0,ce=new u.Buf16(16),Yt=new u.Buf16(16),$e=null,Oi=0;for(et=0;et<=15;et++)ce[et]=0;for(yt=0;yt<D;yt++)ce[I[k+yt]]++;for(Et=It,Pt=15;1<=Pt&&ce[Pt]===0;Pt--);if(Pt<Et&&(Et=Pt),Pt===0)return N[E++]=20971520,N[E++]=20971520,T.bits=1,0;for(G=1;G<Pt&&ce[G]===0;G++);for(Et<G&&(Et=G),et=re=1;et<=15;et++)if(re<<=1,(re-=ce[et])<0)return-1;if(0<re&&(A===0||Pt!==1))return-1;for(Yt[1]=0,et=1;et<15;et++)Yt[et+1]=Yt[et]+ce[et];for(yt=0;yt<D;yt++)I[k+yt]!==0&&(P[Yt[I[k+yt]]++]=yt);if(j=A===0?(Bt=$e=P,19):A===1?(Bt=m,ke-=257,$e=_,Oi-=257,256):(Bt=y,$e=S,-1),et=G,F=E,fe=yt=Ot=0,b=-1,U=(Ft=1<<(Ct=Et))-1,A===1&&852<Ft||A===2&&592<Ft)return 1;for(;;){for(J=et-fe,ct=P[yt]<j?($=0,P[yt]):P[yt]>j?($=$e[Oi+P[yt]],Bt[ke+P[yt]]):($=96,0),M=1<<et-fe,G=R=1<<Ct;N[F+(Ot>>fe)+(R-=M)]=J<<24|$<<16|ct|0,R!==0;);for(M=1<<et-1;Ot&M;)M>>=1;if(M!==0?(Ot&=M-1,Ot+=M):Ot=0,yt++,--ce[et]==0){if(et===Pt)break;et=I[k+P[yt]]}if(Et<et&&(Ot&U)!==b){for(fe===0&&(fe=Et),F+=G,re=1<<(Ct=et-fe);Ct+fe<Pt&&!((re-=ce[Ct+fe])<=0);)Ct++,re<<=1;if(Ft+=1<<Ct,A===1&&852<Ft||A===2&&592<Ft)return 1;N[b=Ot&U]=Et<<24|Ct<<16|F-E|0}}return Ot!==0&&(N[F+Ot]=et-fe<<24|64<<16|0),T.bits=Et,0}},{"../utils/common":41}],51:[function(o,c,d){c.exports={2:"need dictionary",1:"stream end",0:"","-1":"file error","-2":"stream error","-3":"data error","-4":"insufficient memory","-5":"buffer error","-6":"incompatible version"}},{}],52:[function(o,c,d){var u=o("../utils/common"),m=0,_=1;function y(dt){for(var Dt=dt.length;0<=--Dt;)dt[Dt]=0}var S=0,A=29,I=256,k=I+1+A,D=30,N=19,E=2*k+1,P=15,T=16,M=7,R=256,b=16,U=17,F=18,j=[0,0,0,0,0,0,0,0,1,1,1,1,2,2,2,2,3,3,3,3,4,4,4,4,5,5,5,5,0],J=[0,0,0,0,1,1,2,2,3,3,4,4,5,5,6,6,7,7,8,8,9,9,10,10,11,11,12,12,13,13],$=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,2,3,7],ct=[16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15],It=new Array(2*(k+2));y(It);var et=new Array(2*D);y(et);var yt=new Array(512);y(yt);var G=new Array(256);y(G);var Pt=new Array(A);y(Pt);var Et,Ct,fe,re=new Array(D);function Ft(dt,Dt,ie,Kt,z){this.static_tree=dt,this.extra_bits=Dt,this.extra_base=ie,this.elems=Kt,this.max_length=z,this.has_stree=dt&&dt.length}function Ot(dt,Dt){this.dyn_tree=dt,this.max_code=0,this.stat_desc=Dt}function Bt(dt){return dt<256?yt[dt]:yt[256+(dt>>>7)]}function ke(dt,Dt){dt.pending_buf[dt.pending++]=255&Dt,dt.pending_buf[dt.pending++]=Dt>>>8&255}function ce(dt,Dt,ie){dt.bi_valid>T-ie?(dt.bi_buf|=Dt<<dt.bi_valid&65535,ke(dt,dt.bi_buf),dt.bi_buf=Dt>>T-dt.bi_valid,dt.bi_valid+=ie-T):(dt.bi_buf|=Dt<<dt.bi_valid&65535,dt.bi_valid+=ie)}function Yt(dt,Dt,ie){ce(dt,ie[2*Dt],ie[2*Dt+1])}function $e(dt,Dt){for(var ie=0;ie|=1&dt,dt>>>=1,ie<<=1,0<--Dt;);return ie>>>1}function Oi(dt,Dt,ie){var Kt,z,Q=new Array(P+1),ot=0;for(Kt=1;Kt<=P;Kt++)Q[Kt]=ot=ot+ie[Kt-1]<<1;for(z=0;z<=Dt;z++){var nt=dt[2*z+1];nt!==0&&(dt[2*z]=$e(Q[nt]++,nt))}}function Oe(dt){var Dt;for(Dt=0;Dt<k;Dt++)dt.dyn_ltree[2*Dt]=0;for(Dt=0;Dt<D;Dt++)dt.dyn_dtree[2*Dt]=0;for(Dt=0;Dt<N;Dt++)dt.bl_tree[2*Dt]=0;dt.dyn_ltree[2*R]=1,dt.opt_len=dt.static_len=0,dt.last_lit=dt.matches=0}function Ge(dt){8<dt.bi_valid?ke(dt,dt.bi_buf):0<dt.bi_valid&&(dt.pending_buf[dt.pending++]=dt.bi_buf),dt.bi_buf=0,dt.bi_valid=0}function di(dt,Dt,ie,Kt){var z=2*Dt,Q=2*ie;return dt[z]<dt[Q]||dt[z]===dt[Q]&&Kt[Dt]<=Kt[ie]}function Ii(dt,Dt,ie){for(var Kt=dt.heap[ie],z=ie<<1;z<=dt.heap_len&&(z<dt.heap_len&&di(Dt,dt.heap[z+1],dt.heap[z],dt.depth)&&z++,!di(Dt,Kt,dt.heap[z],dt.depth));)dt.heap[ie]=dt.heap[z],ie=z,z<<=1;dt.heap[ie]=Kt}function mn(dt,Dt,ie){var Kt,z,Q,ot,nt=0;if(dt.last_lit!==0)for(;Kt=dt.pending_buf[dt.d_buf+2*nt]<<8|dt.pending_buf[dt.d_buf+2*nt+1],z=dt.pending_buf[dt.l_buf+nt],nt++,Kt===0?Yt(dt,z,Dt):(Yt(dt,(Q=G[z])+I+1,Dt),(ot=j[Q])!==0&&ce(dt,z-=Pt[Q],ot),Yt(dt,Q=Bt(--Kt),ie),(ot=J[Q])!==0&&ce(dt,Kt-=re[Q],ot)),nt<dt.last_lit;);Yt(dt,R,Dt)}function Qi(dt,Dt){var ie,Kt,z,Q=Dt.dyn_tree,ot=Dt.stat_desc.static_tree,nt=Dt.stat_desc.has_stree,vt=Dt.stat_desc.elems,Gt=-1;for(dt.heap_len=0,dt.heap_max=E,ie=0;ie<vt;ie++)Q[2*ie]!==0?(dt.heap[++dt.heap_len]=Gt=ie,dt.depth[ie]=0):Q[2*ie+1]=0;for(;dt.heap_len<2;)Q[2*(z=dt.heap[++dt.heap_len]=Gt<2?++Gt:0)]=1,dt.depth[z]=0,dt.opt_len--,nt&&(dt.static_len-=ot[2*z+1]);for(Dt.max_code=Gt,ie=dt.heap_len>>1;1<=ie;ie--)Ii(dt,Q,ie);for(z=vt;ie=dt.heap[1],dt.heap[1]=dt.heap[dt.heap_len--],Ii(dt,Q,1),Kt=dt.heap[1],dt.heap[--dt.heap_max]=ie,dt.heap[--dt.heap_max]=Kt,Q[2*z]=Q[2*ie]+Q[2*Kt],dt.depth[z]=(dt.depth[ie]>=dt.depth[Kt]?dt.depth[ie]:dt.depth[Kt])+1,Q[2*ie+1]=Q[2*Kt+1]=z,dt.heap[1]=z++,Ii(dt,Q,1),2<=dt.heap_len;);dt.heap[--dt.heap_max]=dt.heap[1],function(Xt,jt){var Ne,Re,ge,we,_i,Si,ni=jt.dyn_tree,Ei=jt.max_code,qr=jt.stat_desc.static_tree,or=jt.stat_desc.has_stree,on=jt.stat_desc.extra_bits,As=jt.stat_desc.extra_base,Di=jt.stat_desc.max_length,Xs=0;for(we=0;we<=P;we++)Xt.bl_count[we]=0;for(ni[2*Xt.heap[Xt.heap_max]+1]=0,Ne=Xt.heap_max+1;Ne<E;Ne++)Di<(we=ni[2*ni[2*(Re=Xt.heap[Ne])+1]+1]+1)&&(we=Di,Xs++),ni[2*Re+1]=we,Ei<Re||(Xt.bl_count[we]++,_i=0,As<=Re&&(_i=on[Re-As]),Si=ni[2*Re],Xt.opt_len+=Si*(we+_i),or&&(Xt.static_len+=Si*(qr[2*Re+1]+_i)));if(Xs!==0){do{for(we=Di-1;Xt.bl_count[we]===0;)we--;Xt.bl_count[we]--,Xt.bl_count[we+1]+=2,Xt.bl_count[Di]--,Xs-=2}while(0<Xs);for(we=Di;we!==0;we--)for(Re=Xt.bl_count[we];Re!==0;)Ei<(ge=Xt.heap[--Ne])||(ni[2*ge+1]!==we&&(Xt.opt_len+=(we-ni[2*ge+1])*ni[2*ge],ni[2*ge+1]=we),Re--)}}(dt,Dt),Oi(Q,Gt,dt.bl_count)}function W(dt,Dt,ie){var Kt,z,Q=-1,ot=Dt[1],nt=0,vt=7,Gt=4;for(ot===0&&(vt=138,Gt=3),Dt[2*(ie+1)+1]=65535,Kt=0;Kt<=ie;Kt++)z=ot,ot=Dt[2*(Kt+1)+1],++nt<vt&&z===ot||(nt<Gt?dt.bl_tree[2*z]+=nt:z!==0?(z!==Q&&dt.bl_tree[2*z]++,dt.bl_tree[2*b]++):nt<=10?dt.bl_tree[2*U]++:dt.bl_tree[2*F]++,Q=z,Gt=(nt=0)===ot?(vt=138,3):z===ot?(vt=6,3):(vt=7,4))}function Jt(dt,Dt,ie){var Kt,z,Q=-1,ot=Dt[1],nt=0,vt=7,Gt=4;for(ot===0&&(vt=138,Gt=3),Kt=0;Kt<=ie;Kt++)if(z=ot,ot=Dt[2*(Kt+1)+1],!(++nt<vt&&z===ot)){if(nt<Gt)for(;Yt(dt,z,dt.bl_tree),--nt!=0;);else z!==0?(z!==Q&&(Yt(dt,z,dt.bl_tree),nt--),Yt(dt,b,dt.bl_tree),ce(dt,nt-3,2)):nt<=10?(Yt(dt,U,dt.bl_tree),ce(dt,nt-3,3)):(Yt(dt,F,dt.bl_tree),ce(dt,nt-11,7));Q=z,Gt=(nt=0)===ot?(vt=138,3):z===ot?(vt=6,3):(vt=7,4)}}y(re);var Wt=!1;function pt(dt,Dt,ie,Kt){ce(dt,(S<<1)+(Kt?1:0),3),function(z,Q,ot,nt){Ge(z),nt&&(ke(z,ot),ke(z,~ot)),u.arraySet(z.pending_buf,z.window,Q,ot,z.pending),z.pending+=ot}(dt,Dt,ie,!0)}d._tr_init=function(dt){Wt||(function(){var Dt,ie,Kt,z,Q,ot=new Array(P+1);for(z=Kt=0;z<A-1;z++)for(Pt[z]=Kt,Dt=0;Dt<1<<j[z];Dt++)G[Kt++]=z;for(G[Kt-1]=z,z=Q=0;z<16;z++)for(re[z]=Q,Dt=0;Dt<1<<J[z];Dt++)yt[Q++]=z;for(Q>>=7;z<D;z++)for(re[z]=Q<<7,Dt=0;Dt<1<<J[z]-7;Dt++)yt[256+Q++]=z;for(ie=0;ie<=P;ie++)ot[ie]=0;for(Dt=0;Dt<=143;)It[2*Dt+1]=8,Dt++,ot[8]++;for(;Dt<=255;)It[2*Dt+1]=9,Dt++,ot[9]++;for(;Dt<=279;)It[2*Dt+1]=7,Dt++,ot[7]++;for(;Dt<=287;)It[2*Dt+1]=8,Dt++,ot[8]++;for(Oi(It,k+1,ot),Dt=0;Dt<D;Dt++)et[2*Dt+1]=5,et[2*Dt]=$e(Dt,5);Et=new Ft(It,j,I+1,k,P),Ct=new Ft(et,J,0,D,P),fe=new Ft(new Array(0),$,0,N,M)}(),Wt=!0),dt.l_desc=new Ot(dt.dyn_ltree,Et),dt.d_desc=new Ot(dt.dyn_dtree,Ct),dt.bl_desc=new Ot(dt.bl_tree,fe),dt.bi_buf=0,dt.bi_valid=0,Oe(dt)},d._tr_stored_block=pt,d._tr_flush_block=function(dt,Dt,ie,Kt){var z,Q,ot=0;0<dt.level?(dt.strm.data_type===2&&(dt.strm.data_type=function(nt){var vt,Gt=4093624447;for(vt=0;vt<=31;vt++,Gt>>>=1)if(1&Gt&&nt.dyn_ltree[2*vt]!==0)return m;if(nt.dyn_ltree[18]!==0||nt.dyn_ltree[20]!==0||nt.dyn_ltree[26]!==0)return _;for(vt=32;vt<I;vt++)if(nt.dyn_ltree[2*vt]!==0)return _;return m}(dt)),Qi(dt,dt.l_desc),Qi(dt,dt.d_desc),ot=function(nt){var vt;for(W(nt,nt.dyn_ltree,nt.l_desc.max_code),W(nt,nt.dyn_dtree,nt.d_desc.max_code),Qi(nt,nt.bl_desc),vt=N-1;3<=vt&&nt.bl_tree[2*ct[vt]+1]===0;vt--);return nt.opt_len+=3*(vt+1)+5+5+4,vt}(dt),z=dt.opt_len+3+7>>>3,(Q=dt.static_len+3+7>>>3)<=z&&(z=Q)):z=Q=ie+5,ie+4<=z&&Dt!==-1?pt(dt,Dt,ie,Kt):dt.strategy===4||Q===z?(ce(dt,2+(Kt?1:0),3),mn(dt,It,et)):(ce(dt,4+(Kt?1:0),3),function(nt,vt,Gt,Xt){var jt;for(ce(nt,vt-257,5),ce(nt,Gt-1,5),ce(nt,Xt-4,4),jt=0;jt<Xt;jt++)ce(nt,nt.bl_tree[2*ct[jt]+1],3);Jt(nt,nt.dyn_ltree,vt-1),Jt(nt,nt.dyn_dtree,Gt-1)}(dt,dt.l_desc.max_code+1,dt.d_desc.max_code+1,ot+1),mn(dt,dt.dyn_ltree,dt.dyn_dtree)),Oe(dt),Kt&&Ge(dt)},d._tr_tally=function(dt,Dt,ie){return dt.pending_buf[dt.d_buf+2*dt.last_lit]=Dt>>>8&255,dt.pending_buf[dt.d_buf+2*dt.last_lit+1]=255&Dt,dt.pending_buf[dt.l_buf+dt.last_lit]=255&ie,dt.last_lit++,Dt===0?dt.dyn_ltree[2*ie]++:(dt.matches++,Dt--,dt.dyn_ltree[2*(G[ie]+I+1)]++,dt.dyn_dtree[2*Bt(Dt)]++),dt.last_lit===dt.lit_bufsize-1},d._tr_align=function(dt){ce(dt,2,3),Yt(dt,R,It),function(Dt){Dt.bi_valid===16?(ke(Dt,Dt.bi_buf),Dt.bi_buf=0,Dt.bi_valid=0):8<=Dt.bi_valid&&(Dt.pending_buf[Dt.pending++]=255&Dt.bi_buf,Dt.bi_buf>>=8,Dt.bi_valid-=8)}(dt)}},{"../utils/common":41}],53:[function(o,c,d){c.exports=function(){this.input=null,this.next_in=0,this.avail_in=0,this.total_in=0,this.output=null,this.next_out=0,this.avail_out=0,this.total_out=0,this.msg="",this.state=null,this.data_type=2,this.adler=0}},{}],54:[function(o,c,d){(function(u){(function(m,_){if(!m.setImmediate){var y,S,A,I,k=1,D={},N=!1,E=m.document,P=Object.getPrototypeOf&&Object.getPrototypeOf(m);P=P&&P.setTimeout?P:m,y={}.toString.call(m.process)==="[object process]"?function(b){process.nextTick(function(){M(b)})}:function(){if(m.postMessage&&!m.importScripts){var b=!0,U=m.onmessage;return m.onmessage=function(){b=!1},m.postMessage("","*"),m.onmessage=U,b}}()?(I="setImmediate$"+Math.random()+"$",m.addEventListener?m.addEventListener("message",R,!1):m.attachEvent("onmessage",R),function(b){m.postMessage(I+b,"*")}):m.MessageChannel?((A=new MessageChannel).port1.onmessage=function(b){M(b.data)},function(b){A.port2.postMessage(b)}):E&&"onreadystatechange"in E.createElement("script")?(S=E.documentElement,function(b){var U=E.createElement("script");U.onreadystatechange=function(){M(b),U.onreadystatechange=null,S.removeChild(U),U=null},S.appendChild(U)}):function(b){setTimeout(M,0,b)},P.setImmediate=function(b){typeof b!="function"&&(b=new Function(""+b));for(var U=new Array(arguments.length-1),F=0;F<U.length;F++)U[F]=arguments[F+1];var j={callback:b,args:U};return D[k]=j,y(k),k++},P.clearImmediate=T}function T(b){delete D[b]}function M(b){if(N)setTimeout(M,0,b);else{var U=D[b];if(U){N=!0;try{(function(F){var j=F.callback,J=F.args;switch(J.length){case 0:j();break;case 1:j(J[0]);break;case 2:j(J[0],J[1]);break;case 3:j(J[0],J[1],J[2]);break;default:j.apply(_,J)}})(U)}finally{T(b),N=!1}}}}function R(b){b.source===m&&typeof b.data=="string"&&b.data.indexOf(I)===0&&M(+b.data.slice(I.length))}})(typeof self>"u"?u===void 0?this:u:self)}).call(this,typeof Er<"u"?Er:typeof self<"u"?self:typeof window<"u"?window:{})},{}]},{},[10])(10)})})(Sf);var hm=Sf.exports;const um=Ju(hm);var Ef={exports:{}};(function(x,l){(function(o,c){c()})(Er,function(){function o(S,A){return typeof A>"u"?A={autoBom:!1}:typeof A!="object"&&(console.warn("Deprecated: Expected third argument to be a object"),A={autoBom:!A}),A.autoBom&&/^\s*(?:text\/\S*|application\/xml|\S*\/\S*\+xml)\s*;.*charset\s*=\s*utf-8/i.test(S.type)?new Blob(["\uFEFF",S],{type:S.type}):S}function c(S,A,I){var k=new XMLHttpRequest;k.open("GET",S),k.responseType="blob",k.onload=function(){y(k.response,A,I)},k.onerror=function(){console.error("could not download file")},k.send()}function d(S){var A=new XMLHttpRequest;A.open("HEAD",S,!1);try{A.send()}catch{}return 200<=A.status&&299>=A.status}function u(S){try{S.dispatchEvent(new MouseEvent("click"))}catch{var A=document.createEvent("MouseEvents");A.initMouseEvent("click",!0,!0,window,0,0,0,80,20,!1,!1,!1,!1,0,null),S.dispatchEvent(A)}}var m=typeof window=="object"&&window.window===window?window:typeof self=="object"&&self.self===self?self:typeof Er=="object"&&Er.global===Er?Er:void 0,_=m.navigator&&/Macintosh/.test(navigator.userAgent)&&/AppleWebKit/.test(navigator.userAgent)&&!/Safari/.test(navigator.userAgent),y=m.saveAs||(typeof window!="object"||window!==m?function(){}:"download"in HTMLAnchorElement.prototype&&!_?function(S,A,I){var k=m.URL||m.webkitURL,D=document.createElement("a");A=A||S.name||"download",D.download=A,D.rel="noopener",typeof S=="string"?(D.href=S,D.origin===location.origin?u(D):d(D.href)?c(S,A,I):u(D,D.target="_blank")):(D.href=k.createObjectURL(S),setTimeout(function(){k.revokeObjectURL(D.href)},4e4),setTimeout(function(){u(D)},0))}:"msSaveOrOpenBlob"in navigator?function(S,A,I){if(A=A||S.name||"download",typeof S!="string")navigator.msSaveOrOpenBlob(o(S,I),A);else if(d(S))c(S,A,I);else{var k=document.createElement("a");k.href=S,k.target="_blank",setTimeout(function(){u(k)})}}:function(S,A,I,k){if(k=k||open("","_blank"),k&&(k.document.title=k.document.body.innerText="downloading..."),typeof S=="string")return c(S,A,I);var D=S.type==="application/octet-stream",N=/constructor/i.test(m.HTMLElement)||m.safari,E=/CriOS\/[\d]+/.test(navigator.userAgent);if((E||D&&N||_)&&typeof FileReader<"u"){var P=new FileReader;P.onloadend=function(){var R=P.result;R=E?R:R.replace(/^data:[^;]*;/,"data:attachment/file;"),k?k.location.href=R:location=R,k=null},P.readAsDataURL(S)}else{var T=m.URL||m.webkitURL,M=T.createObjectURL(S);k?k.location=M:location.href=M,k=null,setTimeout(function(){T.revokeObjectURL(M)},4e4)}});m.saveAs=y.saveAs=y,x.exports=y})})(Ef);var cm=Ef.exports;const fm=Ju(cm);class pm{constructor(l,o){window.mars3d?(this.map=l,this.panoramicViewClass=o,this.coordinate=[{heading:0,pitch:0,stop:5},{heading:90,pitch:0,stop:5},{heading:180,pitch:0,stop:5},{heading:270,pitch:0,stop:5},{heading:0,pitch:90,stop:5},{heading:0,pitch:-90,stop:5}],this.screenshotArray=[],this.events={},this.timestamp=0,this.lat,this.lng,this.alt):console.error("未引入指定插件")}start(l=!0){var o,c;if(l){this.timestamp=new Date().getTime();const d=document.getElementById("app"),u=window.innerHeight,m=document.getElementById("mars3dContainer");m&&(m.style.width=u.toString()+"px",m.style.height=u.toString()+"px"),d!==null&&d.classList.add(this.panoramicViewClass);let{lat:_,lng:y,alt:S}=this.map.getCameraView();this.lat=_,this.lng=y,this.alt=S,this.map.viewer.scene.camera.frustum.fov=window.Cesium.Math.PI_OVER_THREE*1.5}this.screenshotArray&&this.coordinate?this.coordinate[(o=this.screenshotArray)==null?void 0:o.length]?this.map.setCameraView({lat:this.lat,lng:this.lng,alt:this.alt,...this.coordinate[(c=this.screenshotArray)==null?void 0:c.length]},{complete:()=>{setTimeout(()=>{var d;this.screenshot((d=this.screenshotArray)==null?void 0:d.length)},100)}}):(this.downloadImagesAsZip(),this.screenshotArray=[]):(console.error("初始化失效"),this.emit("state",{type:"error"}))}async screenshot(l){const o=await this.map.expImage({download:!1}),c=this.map.container.getElementsByClassName("cesium-viewer-cesiumWidgetContainer"),d=await window.domtoimage.toPng(this.map.container,{filter:u=>u!==c[0]});this.mergeImage(o.image,d,o.width,o.height).then(u=>{var y;let m=Number(l)+1,_={src:u,name:"全景图_"+this.timestamp+"_"+m+".jpg"};this.emit("intercept",_),(y=this.screenshotArray)==null||y.push(_),this.start(!1)})}mergeImage(l,o,c,d){return new Promise((u,m)=>{const _=document.createElement("canvas");_.width=c,_.height=d;const y=_.getContext("2d");if(_&&y){const S=new Image;S.crossOrigin="Anonymous",S.onload=()=>{y.drawImage(S,0,0,c,d);const A=new Image;A.crossOrigin="Anonymous",A.onload=()=>{y.drawImage(A,0,0,c,d);const I=_.toDataURL("image/png");u(I)},A.src=o},S.src=l}else m()})}download(){this.screenshotArray&&this.screenshotArray.forEach(l=>{window.mars3d.Util.downloadBase64Image(l.name,l.src)})}async downloadImagesAsZip(){if(this.screenshotArray){const l=new um;this.screenshotArray.forEach(c=>{const d=c.src.split(",")[1],u=atob(d),m=[];for(let S=0;S<u.length;S+=1024){const A=u.slice(S,S+1024),I=new Array(A.length);for(let D=0;D<A.length;D++)I[D]=A.charCodeAt(D);const k=new Uint8Array(I);m.push(k)}const _=new Blob(m,{type:"image/jpeg"}),y=`${c.name}`;l.file(y,_,{binary:!0})});const o=await l.generateAsync({type:"blob"});fm(o,"CHBIM-Panorama.zip"),this.emit("state",{type:"success",schedule:100}),this.init()}}init(){const l=document.getElementById("app");l&&l.classList.remove(this.panoramicViewClass);const o=document.getElementById("mars3dContainer");o&&(o.style.width="",o.style.height="")}on(l,o){this.events[l]?this.events[l].push(o):this.events[l]=[o]}emit(l,...o){this.events[l]!=null&&this.events[l].forEach(c=>c(...o))}off(l,o){this.events[l]=this.events[l].filter(c=>c!==o)}}function uo(x){if(x===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return x}function bf(x,l){x.prototype=Object.create(l.prototype),x.prototype.constructor=x,x.__proto__=l}/*!
2683
+ */(function(x,a){(function(o){x.exports=o()})(function(){return function o(c,d,u){function m(S,A){if(!d[S]){if(!c[S]){var I=typeof su=="function"&&su;if(!A&&I)return I(S,!0);if(_)return _(S,!0);var k=new Error("Cannot find module '"+S+"'");throw k.code="MODULE_NOT_FOUND",k}var D=d[S]={exports:{}};c[S][0].call(D.exports,function(F){var E=c[S][1][F];return m(E||F)},D,D.exports,o,c,d,u)}return d[S].exports}for(var _=typeof su=="function"&&su,y=0;y<u.length;y++)m(u[y]);return m}({1:[function(o,c,d){var u=o("./utils"),m=o("./support"),_="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=";d.encode=function(y){for(var S,A,I,k,D,F,E,L=[],T=0,M=y.length,R=M,b=u.getTypeOf(y)!=="string";T<y.length;)R=M-T,I=b?(S=y[T++],A=T<M?y[T++]:0,T<M?y[T++]:0):(S=y.charCodeAt(T++),A=T<M?y.charCodeAt(T++):0,T<M?y.charCodeAt(T++):0),k=S>>2,D=(3&S)<<4|A>>4,F=1<R?(15&A)<<2|I>>6:64,E=2<R?63&I:64,L.push(_.charAt(k)+_.charAt(D)+_.charAt(F)+_.charAt(E));return L.join("")},d.decode=function(y){var S,A,I,k,D,F,E=0,L=0,T="data:";if(y.substr(0,T.length)===T)throw new Error("Invalid base64 input, it looks like a data url.");var M,R=3*(y=y.replace(/[^A-Za-z0-9+/=]/g,"")).length/4;if(y.charAt(y.length-1)===_.charAt(64)&&R--,y.charAt(y.length-2)===_.charAt(64)&&R--,R%1!=0)throw new Error("Invalid base64 input, bad content length.");for(M=m.uint8array?new Uint8Array(0|R):new Array(0|R);E<y.length;)S=_.indexOf(y.charAt(E++))<<2|(k=_.indexOf(y.charAt(E++)))>>4,A=(15&k)<<4|(D=_.indexOf(y.charAt(E++)))>>2,I=(3&D)<<6|(F=_.indexOf(y.charAt(E++))),M[L++]=S,D!==64&&(M[L++]=A),F!==64&&(M[L++]=I);return M}},{"./support":30,"./utils":32}],2:[function(o,c,d){var u=o("./external"),m=o("./stream/DataWorker"),_=o("./stream/Crc32Probe"),y=o("./stream/DataLengthProbe");function S(A,I,k,D,F){this.compressedSize=A,this.uncompressedSize=I,this.crc32=k,this.compression=D,this.compressedContent=F}S.prototype={getContentWorker:function(){var A=new m(u.Promise.resolve(this.compressedContent)).pipe(this.compression.uncompressWorker()).pipe(new y("data_length")),I=this;return A.on("end",function(){if(this.streamInfo.data_length!==I.uncompressedSize)throw new Error("Bug : uncompressed data size mismatch")}),A},getCompressedWorker:function(){return new m(u.Promise.resolve(this.compressedContent)).withStreamInfo("compressedSize",this.compressedSize).withStreamInfo("uncompressedSize",this.uncompressedSize).withStreamInfo("crc32",this.crc32).withStreamInfo("compression",this.compression)}},S.createWorkerFrom=function(A,I,k){return A.pipe(new _).pipe(new y("uncompressedSize")).pipe(I.compressWorker(k)).pipe(new y("compressedSize")).withStreamInfo("compression",I)},c.exports=S},{"./external":6,"./stream/Crc32Probe":25,"./stream/DataLengthProbe":26,"./stream/DataWorker":27}],3:[function(o,c,d){var u=o("./stream/GenericWorker");d.STORE={magic:"\0\0",compressWorker:function(){return new u("STORE compression")},uncompressWorker:function(){return new u("STORE decompression")}},d.DEFLATE=o("./flate")},{"./flate":7,"./stream/GenericWorker":28}],4:[function(o,c,d){var u=o("./utils"),m=function(){for(var _,y=[],S=0;S<256;S++){_=S;for(var A=0;A<8;A++)_=1&_?3988292384^_>>>1:_>>>1;y[S]=_}return y}();c.exports=function(_,y){return _!==void 0&&_.length?u.getTypeOf(_)!=="string"?function(S,A,I,k){var D=m,F=k+I;S^=-1;for(var E=k;E<F;E++)S=S>>>8^D[255&(S^A[E])];return-1^S}(0|y,_,_.length,0):function(S,A,I,k){var D=m,F=k+I;S^=-1;for(var E=k;E<F;E++)S=S>>>8^D[255&(S^A.charCodeAt(E))];return-1^S}(0|y,_,_.length,0):0}},{"./utils":32}],5:[function(o,c,d){d.base64=!1,d.binary=!1,d.dir=!1,d.createFolders=!0,d.date=null,d.compression=null,d.compressionOptions=null,d.comment=null,d.unixPermissions=null,d.dosPermissions=null},{}],6:[function(o,c,d){var u=null;u=typeof Promise<"u"?Promise:o("lie"),c.exports={Promise:u}},{lie:37}],7:[function(o,c,d){var u=typeof Uint8Array<"u"&&typeof Uint16Array<"u"&&typeof Uint32Array<"u",m=o("pako"),_=o("./utils"),y=o("./stream/GenericWorker"),S=u?"uint8array":"array";function A(I,k){y.call(this,"FlateWorker/"+I),this._pako=null,this._pakoAction=I,this._pakoOptions=k,this.meta={}}d.magic="\b\0",_.inherits(A,y),A.prototype.processChunk=function(I){this.meta=I.meta,this._pako===null&&this._createPako(),this._pako.push(_.transformTo(S,I.data),!1)},A.prototype.flush=function(){y.prototype.flush.call(this),this._pako===null&&this._createPako(),this._pako.push([],!0)},A.prototype.cleanUp=function(){y.prototype.cleanUp.call(this),this._pako=null},A.prototype._createPako=function(){this._pako=new m[this._pakoAction]({raw:!0,level:this._pakoOptions.level||-1});var I=this;this._pako.onData=function(k){I.push({data:k,meta:I.meta})}},d.compressWorker=function(I){return new A("Deflate",I)},d.uncompressWorker=function(){return new A("Inflate",{})}},{"./stream/GenericWorker":28,"./utils":32,pako:38}],8:[function(o,c,d){function u(D,F){var E,L="";for(E=0;E<F;E++)L+=String.fromCharCode(255&D),D>>>=8;return L}function m(D,F,E,L,T,M){var R,b,U=D.file,N=D.compression,j=M!==S.utf8encode,J=_.transformTo("string",M(U.name)),$=_.transformTo("string",S.utf8encode(U.name)),ct=U.comment,It=_.transformTo("string",M(ct)),et=_.transformTo("string",S.utf8encode(ct)),yt=$.length!==U.name.length,G=et.length!==ct.length,Pt="",Et="",Ct="",fe=U.dir,re=U.date,Ft={crc32:0,compressedSize:0,uncompressedSize:0};F&&!E||(Ft.crc32=D.crc32,Ft.compressedSize=D.compressedSize,Ft.uncompressedSize=D.uncompressedSize);var Ot=0;F&&(Ot|=8),j||!yt&&!G||(Ot|=2048);var Bt=0,ke=0;fe&&(Bt|=16),T==="UNIX"?(ke=798,Bt|=function(Yt,$e){var Oi=Yt;return Yt||(Oi=$e?16893:33204),(65535&Oi)<<16}(U.unixPermissions,fe)):(ke=20,Bt|=function(Yt){return 63&(Yt||0)}(U.dosPermissions)),R=re.getUTCHours(),R<<=6,R|=re.getUTCMinutes(),R<<=5,R|=re.getUTCSeconds()/2,b=re.getUTCFullYear()-1980,b<<=4,b|=re.getUTCMonth()+1,b<<=5,b|=re.getUTCDate(),yt&&(Et=u(1,1)+u(A(J),4)+$,Pt+="up"+u(Et.length,2)+Et),G&&(Ct=u(1,1)+u(A(It),4)+et,Pt+="uc"+u(Ct.length,2)+Ct);var ce="";return ce+=`
2684
+ \0`,ce+=u(Ot,2),ce+=N.magic,ce+=u(R,2),ce+=u(b,2),ce+=u(Ft.crc32,4),ce+=u(Ft.compressedSize,4),ce+=u(Ft.uncompressedSize,4),ce+=u(J.length,2),ce+=u(Pt.length,2),{fileRecord:I.LOCAL_FILE_HEADER+ce+J+Pt,dirRecord:I.CENTRAL_FILE_HEADER+u(ke,2)+ce+u(It.length,2)+"\0\0\0\0"+u(Bt,4)+u(L,4)+J+Pt+It}}var _=o("../utils"),y=o("../stream/GenericWorker"),S=o("../utf8"),A=o("../crc32"),I=o("../signature");function k(D,F,E,L){y.call(this,"ZipFileWorker"),this.bytesWritten=0,this.zipComment=F,this.zipPlatform=E,this.encodeFileName=L,this.streamFiles=D,this.accumulate=!1,this.contentBuffer=[],this.dirRecords=[],this.currentSourceOffset=0,this.entriesCount=0,this.currentFile=null,this._sources=[]}_.inherits(k,y),k.prototype.push=function(D){var F=D.meta.percent||0,E=this.entriesCount,L=this._sources.length;this.accumulate?this.contentBuffer.push(D):(this.bytesWritten+=D.data.length,y.prototype.push.call(this,{data:D.data,meta:{currentFile:this.currentFile,percent:E?(F+100*(E-L-1))/E:100}}))},k.prototype.openedSource=function(D){this.currentSourceOffset=this.bytesWritten,this.currentFile=D.file.name;var F=this.streamFiles&&!D.file.dir;if(F){var E=m(D,F,!1,this.currentSourceOffset,this.zipPlatform,this.encodeFileName);this.push({data:E.fileRecord,meta:{percent:0}})}else this.accumulate=!0},k.prototype.closedSource=function(D){this.accumulate=!1;var F=this.streamFiles&&!D.file.dir,E=m(D,F,!0,this.currentSourceOffset,this.zipPlatform,this.encodeFileName);if(this.dirRecords.push(E.dirRecord),F)this.push({data:function(L){return I.DATA_DESCRIPTOR+u(L.crc32,4)+u(L.compressedSize,4)+u(L.uncompressedSize,4)}(D),meta:{percent:100}});else for(this.push({data:E.fileRecord,meta:{percent:0}});this.contentBuffer.length;)this.push(this.contentBuffer.shift());this.currentFile=null},k.prototype.flush=function(){for(var D=this.bytesWritten,F=0;F<this.dirRecords.length;F++)this.push({data:this.dirRecords[F],meta:{percent:100}});var E=this.bytesWritten-D,L=function(T,M,R,b,U){var N=_.transformTo("string",U(b));return I.CENTRAL_DIRECTORY_END+"\0\0\0\0"+u(T,2)+u(T,2)+u(M,4)+u(R,4)+u(N.length,2)+N}(this.dirRecords.length,E,D,this.zipComment,this.encodeFileName);this.push({data:L,meta:{percent:100}})},k.prototype.prepareNextSource=function(){this.previous=this._sources.shift(),this.openedSource(this.previous.streamInfo),this.isPaused?this.previous.pause():this.previous.resume()},k.prototype.registerPrevious=function(D){this._sources.push(D);var F=this;return D.on("data",function(E){F.processChunk(E)}),D.on("end",function(){F.closedSource(F.previous.streamInfo),F._sources.length?F.prepareNextSource():F.end()}),D.on("error",function(E){F.error(E)}),this},k.prototype.resume=function(){return!!y.prototype.resume.call(this)&&(!this.previous&&this._sources.length?(this.prepareNextSource(),!0):this.previous||this._sources.length||this.generatedError?void 0:(this.end(),!0))},k.prototype.error=function(D){var F=this._sources;if(!y.prototype.error.call(this,D))return!1;for(var E=0;E<F.length;E++)try{F[E].error(D)}catch{}return!0},k.prototype.lock=function(){y.prototype.lock.call(this);for(var D=this._sources,F=0;F<D.length;F++)D[F].lock()},c.exports=k},{"../crc32":4,"../signature":23,"../stream/GenericWorker":28,"../utf8":31,"../utils":32}],9:[function(o,c,d){var u=o("../compressions"),m=o("./ZipFileWorker");d.generateWorker=function(_,y,S){var A=new m(y.streamFiles,S,y.platform,y.encodeFileName),I=0;try{_.forEach(function(k,D){I++;var F=function(M,R){var b=M||R,U=u[b];if(!U)throw new Error(b+" is not a valid compression method !");return U}(D.options.compression,y.compression),E=D.options.compressionOptions||y.compressionOptions||{},L=D.dir,T=D.date;D._compressWorker(F,E).withStreamInfo("file",{name:k,dir:L,date:T,comment:D.comment||"",unixPermissions:D.unixPermissions,dosPermissions:D.dosPermissions}).pipe(A)}),A.entriesCount=I}catch(k){A.error(k)}return A}},{"../compressions":3,"./ZipFileWorker":8}],10:[function(o,c,d){function u(){if(!(this instanceof u))return new u;if(arguments.length)throw new Error("The constructor with parameters has been removed in JSZip 3.0, please check the upgrade guide.");this.files=Object.create(null),this.comment=null,this.root="",this.clone=function(){var m=new u;for(var _ in this)typeof this[_]!="function"&&(m[_]=this[_]);return m}}(u.prototype=o("./object")).loadAsync=o("./load"),u.support=o("./support"),u.defaults=o("./defaults"),u.version="3.10.1",u.loadAsync=function(m,_){return new u().loadAsync(m,_)},u.external=o("./external"),c.exports=u},{"./defaults":5,"./external":6,"./load":11,"./object":15,"./support":30}],11:[function(o,c,d){var u=o("./utils"),m=o("./external"),_=o("./utf8"),y=o("./zipEntries"),S=o("./stream/Crc32Probe"),A=o("./nodejsUtils");function I(k){return new m.Promise(function(D,F){var E=k.decompressed.getContentWorker().pipe(new S);E.on("error",function(L){F(L)}).on("end",function(){E.streamInfo.crc32!==k.decompressed.crc32?F(new Error("Corrupted zip : CRC32 mismatch")):D()}).resume()})}c.exports=function(k,D){var F=this;return D=u.extend(D||{},{base64:!1,checkCRC32:!1,optimizedBinaryString:!1,createFolders:!1,decodeFileName:_.utf8decode}),A.isNode&&A.isStream(k)?m.Promise.reject(new Error("JSZip can't accept a stream when loading a zip file.")):u.prepareContent("the loaded zip file",k,!0,D.optimizedBinaryString,D.base64).then(function(E){var L=new y(D);return L.load(E),L}).then(function(E){var L=[m.Promise.resolve(E)],T=E.files;if(D.checkCRC32)for(var M=0;M<T.length;M++)L.push(I(T[M]));return m.Promise.all(L)}).then(function(E){for(var L=E.shift(),T=L.files,M=0;M<T.length;M++){var R=T[M],b=R.fileNameStr,U=u.resolve(R.fileNameStr);F.file(U,R.decompressed,{binary:!0,optimizedBinaryString:!0,date:R.date,dir:R.dir,comment:R.fileCommentStr.length?R.fileCommentStr:null,unixPermissions:R.unixPermissions,dosPermissions:R.dosPermissions,createFolders:D.createFolders}),R.dir||(F.file(U).unsafeOriginalName=b)}return L.zipComment.length&&(F.comment=L.zipComment),F})}},{"./external":6,"./nodejsUtils":14,"./stream/Crc32Probe":25,"./utf8":31,"./utils":32,"./zipEntries":33}],12:[function(o,c,d){var u=o("../utils"),m=o("../stream/GenericWorker");function _(y,S){m.call(this,"Nodejs stream input adapter for "+y),this._upstreamEnded=!1,this._bindStream(S)}u.inherits(_,m),_.prototype._bindStream=function(y){var S=this;(this._stream=y).pause(),y.on("data",function(A){S.push({data:A,meta:{percent:0}})}).on("error",function(A){S.isPaused?this.generatedError=A:S.error(A)}).on("end",function(){S.isPaused?S._upstreamEnded=!0:S.end()})},_.prototype.pause=function(){return!!m.prototype.pause.call(this)&&(this._stream.pause(),!0)},_.prototype.resume=function(){return!!m.prototype.resume.call(this)&&(this._upstreamEnded?this.end():this._stream.resume(),!0)},c.exports=_},{"../stream/GenericWorker":28,"../utils":32}],13:[function(o,c,d){var u=o("readable-stream").Readable;function m(_,y,S){u.call(this,y),this._helper=_;var A=this;_.on("data",function(I,k){A.push(I)||A._helper.pause(),S&&S(k)}).on("error",function(I){A.emit("error",I)}).on("end",function(){A.push(null)})}o("../utils").inherits(m,u),m.prototype._read=function(){this._helper.resume()},c.exports=m},{"../utils":32,"readable-stream":16}],14:[function(o,c,d){c.exports={isNode:typeof Buffer<"u",newBufferFrom:function(u,m){if(Buffer.from&&Buffer.from!==Uint8Array.from)return Buffer.from(u,m);if(typeof u=="number")throw new Error('The "data" argument must not be a number');return new Buffer(u,m)},allocBuffer:function(u){if(Buffer.alloc)return Buffer.alloc(u);var m=new Buffer(u);return m.fill(0),m},isBuffer:function(u){return Buffer.isBuffer(u)},isStream:function(u){return u&&typeof u.on=="function"&&typeof u.pause=="function"&&typeof u.resume=="function"}}},{}],15:[function(o,c,d){function u(U,N,j){var J,$=_.getTypeOf(N),ct=_.extend(j||{},A);ct.date=ct.date||new Date,ct.compression!==null&&(ct.compression=ct.compression.toUpperCase()),typeof ct.unixPermissions=="string"&&(ct.unixPermissions=parseInt(ct.unixPermissions,8)),ct.unixPermissions&&16384&ct.unixPermissions&&(ct.dir=!0),ct.dosPermissions&&16&ct.dosPermissions&&(ct.dir=!0),ct.dir&&(U=T(U)),ct.createFolders&&(J=L(U))&&M.call(this,J,!0);var It=$==="string"&&ct.binary===!1&&ct.base64===!1;j&&j.binary!==void 0||(ct.binary=!It),(N instanceof I&&N.uncompressedSize===0||ct.dir||!N||N.length===0)&&(ct.base64=!1,ct.binary=!0,N="",ct.compression="STORE",$="string");var et=null;et=N instanceof I||N instanceof y?N:F.isNode&&F.isStream(N)?new E(U,N):_.prepareContent(U,N,ct.binary,ct.optimizedBinaryString,ct.base64);var yt=new k(U,et,ct);this.files[U]=yt}var m=o("./utf8"),_=o("./utils"),y=o("./stream/GenericWorker"),S=o("./stream/StreamHelper"),A=o("./defaults"),I=o("./compressedObject"),k=o("./zipObject"),D=o("./generate"),F=o("./nodejsUtils"),E=o("./nodejs/NodejsStreamInputAdapter"),L=function(U){U.slice(-1)==="/"&&(U=U.substring(0,U.length-1));var N=U.lastIndexOf("/");return 0<N?U.substring(0,N):""},T=function(U){return U.slice(-1)!=="/"&&(U+="/"),U},M=function(U,N){return N=N!==void 0?N:A.createFolders,U=T(U),this.files[U]||u.call(this,U,null,{dir:!0,createFolders:N}),this.files[U]};function R(U){return Object.prototype.toString.call(U)==="[object RegExp]"}var b={load:function(){throw new Error("This method has been removed in JSZip 3.0, please check the upgrade guide.")},forEach:function(U){var N,j,J;for(N in this.files)J=this.files[N],(j=N.slice(this.root.length,N.length))&&N.slice(0,this.root.length)===this.root&&U(j,J)},filter:function(U){var N=[];return this.forEach(function(j,J){U(j,J)&&N.push(J)}),N},file:function(U,N,j){if(arguments.length!==1)return U=this.root+U,u.call(this,U,N,j),this;if(R(U)){var J=U;return this.filter(function(ct,It){return!It.dir&&J.test(ct)})}var $=this.files[this.root+U];return $&&!$.dir?$:null},folder:function(U){if(!U)return this;if(R(U))return this.filter(function($,ct){return ct.dir&&U.test($)});var N=this.root+U,j=M.call(this,N),J=this.clone();return J.root=j.name,J},remove:function(U){U=this.root+U;var N=this.files[U];if(N||(U.slice(-1)!=="/"&&(U+="/"),N=this.files[U]),N&&!N.dir)delete this.files[U];else for(var j=this.filter(function($,ct){return ct.name.slice(0,U.length)===U}),J=0;J<j.length;J++)delete this.files[j[J].name];return this},generate:function(){throw new Error("This method has been removed in JSZip 3.0, please check the upgrade guide.")},generateInternalStream:function(U){var N,j={};try{if((j=_.extend(U||{},{streamFiles:!1,compression:"STORE",compressionOptions:null,type:"",platform:"DOS",comment:null,mimeType:"application/zip",encodeFileName:m.utf8encode})).type=j.type.toLowerCase(),j.compression=j.compression.toUpperCase(),j.type==="binarystring"&&(j.type="string"),!j.type)throw new Error("No output type specified.");_.checkSupport(j.type),j.platform!=="darwin"&&j.platform!=="freebsd"&&j.platform!=="linux"&&j.platform!=="sunos"||(j.platform="UNIX"),j.platform==="win32"&&(j.platform="DOS");var J=j.comment||this.comment||"";N=D.generateWorker(this,j,J)}catch($){(N=new y("error")).error($)}return new S(N,j.type||"string",j.mimeType)},generateAsync:function(U,N){return this.generateInternalStream(U).accumulate(N)},generateNodeStream:function(U,N){return(U=U||{}).type||(U.type="nodebuffer"),this.generateInternalStream(U).toNodejsStream(N)}};c.exports=b},{"./compressedObject":2,"./defaults":5,"./generate":9,"./nodejs/NodejsStreamInputAdapter":12,"./nodejsUtils":14,"./stream/GenericWorker":28,"./stream/StreamHelper":29,"./utf8":31,"./utils":32,"./zipObject":35}],16:[function(o,c,d){c.exports=o("stream")},{stream:void 0}],17:[function(o,c,d){var u=o("./DataReader");function m(_){u.call(this,_);for(var y=0;y<this.data.length;y++)_[y]=255&_[y]}o("../utils").inherits(m,u),m.prototype.byteAt=function(_){return this.data[this.zero+_]},m.prototype.lastIndexOfSignature=function(_){for(var y=_.charCodeAt(0),S=_.charCodeAt(1),A=_.charCodeAt(2),I=_.charCodeAt(3),k=this.length-4;0<=k;--k)if(this.data[k]===y&&this.data[k+1]===S&&this.data[k+2]===A&&this.data[k+3]===I)return k-this.zero;return-1},m.prototype.readAndCheckSignature=function(_){var y=_.charCodeAt(0),S=_.charCodeAt(1),A=_.charCodeAt(2),I=_.charCodeAt(3),k=this.readData(4);return y===k[0]&&S===k[1]&&A===k[2]&&I===k[3]},m.prototype.readData=function(_){if(this.checkOffset(_),_===0)return[];var y=this.data.slice(this.zero+this.index,this.zero+this.index+_);return this.index+=_,y},c.exports=m},{"../utils":32,"./DataReader":18}],18:[function(o,c,d){var u=o("../utils");function m(_){this.data=_,this.length=_.length,this.index=0,this.zero=0}m.prototype={checkOffset:function(_){this.checkIndex(this.index+_)},checkIndex:function(_){if(this.length<this.zero+_||_<0)throw new Error("End of data reached (data length = "+this.length+", asked index = "+_+"). Corrupted zip ?")},setIndex:function(_){this.checkIndex(_),this.index=_},skip:function(_){this.setIndex(this.index+_)},byteAt:function(){},readInt:function(_){var y,S=0;for(this.checkOffset(_),y=this.index+_-1;y>=this.index;y--)S=(S<<8)+this.byteAt(y);return this.index+=_,S},readString:function(_){return u.transformTo("string",this.readData(_))},readData:function(){},lastIndexOfSignature:function(){},readAndCheckSignature:function(){},readDate:function(){var _=this.readInt(4);return new Date(Date.UTC(1980+(_>>25&127),(_>>21&15)-1,_>>16&31,_>>11&31,_>>5&63,(31&_)<<1))}},c.exports=m},{"../utils":32}],19:[function(o,c,d){var u=o("./Uint8ArrayReader");function m(_){u.call(this,_)}o("../utils").inherits(m,u),m.prototype.readData=function(_){this.checkOffset(_);var y=this.data.slice(this.zero+this.index,this.zero+this.index+_);return this.index+=_,y},c.exports=m},{"../utils":32,"./Uint8ArrayReader":21}],20:[function(o,c,d){var u=o("./DataReader");function m(_){u.call(this,_)}o("../utils").inherits(m,u),m.prototype.byteAt=function(_){return this.data.charCodeAt(this.zero+_)},m.prototype.lastIndexOfSignature=function(_){return this.data.lastIndexOf(_)-this.zero},m.prototype.readAndCheckSignature=function(_){return _===this.readData(4)},m.prototype.readData=function(_){this.checkOffset(_);var y=this.data.slice(this.zero+this.index,this.zero+this.index+_);return this.index+=_,y},c.exports=m},{"../utils":32,"./DataReader":18}],21:[function(o,c,d){var u=o("./ArrayReader");function m(_){u.call(this,_)}o("../utils").inherits(m,u),m.prototype.readData=function(_){if(this.checkOffset(_),_===0)return new Uint8Array(0);var y=this.data.subarray(this.zero+this.index,this.zero+this.index+_);return this.index+=_,y},c.exports=m},{"../utils":32,"./ArrayReader":17}],22:[function(o,c,d){var u=o("../utils"),m=o("../support"),_=o("./ArrayReader"),y=o("./StringReader"),S=o("./NodeBufferReader"),A=o("./Uint8ArrayReader");c.exports=function(I){var k=u.getTypeOf(I);return u.checkSupport(k),k!=="string"||m.uint8array?k==="nodebuffer"?new S(I):m.uint8array?new A(u.transformTo("uint8array",I)):new _(u.transformTo("array",I)):new y(I)}},{"../support":30,"../utils":32,"./ArrayReader":17,"./NodeBufferReader":19,"./StringReader":20,"./Uint8ArrayReader":21}],23:[function(o,c,d){d.LOCAL_FILE_HEADER="PK",d.CENTRAL_FILE_HEADER="PK",d.CENTRAL_DIRECTORY_END="PK",d.ZIP64_CENTRAL_DIRECTORY_LOCATOR="PK\x07",d.ZIP64_CENTRAL_DIRECTORY_END="PK",d.DATA_DESCRIPTOR="PK\x07\b"},{}],24:[function(o,c,d){var u=o("./GenericWorker"),m=o("../utils");function _(y){u.call(this,"ConvertWorker to "+y),this.destType=y}m.inherits(_,u),_.prototype.processChunk=function(y){this.push({data:m.transformTo(this.destType,y.data),meta:y.meta})},c.exports=_},{"../utils":32,"./GenericWorker":28}],25:[function(o,c,d){var u=o("./GenericWorker"),m=o("../crc32");function _(){u.call(this,"Crc32Probe"),this.withStreamInfo("crc32",0)}o("../utils").inherits(_,u),_.prototype.processChunk=function(y){this.streamInfo.crc32=m(y.data,this.streamInfo.crc32||0),this.push(y)},c.exports=_},{"../crc32":4,"../utils":32,"./GenericWorker":28}],26:[function(o,c,d){var u=o("../utils"),m=o("./GenericWorker");function _(y){m.call(this,"DataLengthProbe for "+y),this.propName=y,this.withStreamInfo(y,0)}u.inherits(_,m),_.prototype.processChunk=function(y){if(y){var S=this.streamInfo[this.propName]||0;this.streamInfo[this.propName]=S+y.data.length}m.prototype.processChunk.call(this,y)},c.exports=_},{"../utils":32,"./GenericWorker":28}],27:[function(o,c,d){var u=o("../utils"),m=o("./GenericWorker");function _(y){m.call(this,"DataWorker");var S=this;this.dataIsReady=!1,this.index=0,this.max=0,this.data=null,this.type="",this._tickScheduled=!1,y.then(function(A){S.dataIsReady=!0,S.data=A,S.max=A&&A.length||0,S.type=u.getTypeOf(A),S.isPaused||S._tickAndRepeat()},function(A){S.error(A)})}u.inherits(_,m),_.prototype.cleanUp=function(){m.prototype.cleanUp.call(this),this.data=null},_.prototype.resume=function(){return!!m.prototype.resume.call(this)&&(!this._tickScheduled&&this.dataIsReady&&(this._tickScheduled=!0,u.delay(this._tickAndRepeat,[],this)),!0)},_.prototype._tickAndRepeat=function(){this._tickScheduled=!1,this.isPaused||this.isFinished||(this._tick(),this.isFinished||(u.delay(this._tickAndRepeat,[],this),this._tickScheduled=!0))},_.prototype._tick=function(){if(this.isPaused||this.isFinished)return!1;var y=null,S=Math.min(this.max,this.index+16384);if(this.index>=this.max)return this.end();switch(this.type){case"string":y=this.data.substring(this.index,S);break;case"uint8array":y=this.data.subarray(this.index,S);break;case"array":case"nodebuffer":y=this.data.slice(this.index,S)}return this.index=S,this.push({data:y,meta:{percent:this.max?this.index/this.max*100:0}})},c.exports=_},{"../utils":32,"./GenericWorker":28}],28:[function(o,c,d){function u(m){this.name=m||"default",this.streamInfo={},this.generatedError=null,this.extraStreamInfo={},this.isPaused=!0,this.isFinished=!1,this.isLocked=!1,this._listeners={data:[],end:[],error:[]},this.previous=null}u.prototype={push:function(m){this.emit("data",m)},end:function(){if(this.isFinished)return!1;this.flush();try{this.emit("end"),this.cleanUp(),this.isFinished=!0}catch(m){this.emit("error",m)}return!0},error:function(m){return!this.isFinished&&(this.isPaused?this.generatedError=m:(this.isFinished=!0,this.emit("error",m),this.previous&&this.previous.error(m),this.cleanUp()),!0)},on:function(m,_){return this._listeners[m].push(_),this},cleanUp:function(){this.streamInfo=this.generatedError=this.extraStreamInfo=null,this._listeners=[]},emit:function(m,_){if(this._listeners[m])for(var y=0;y<this._listeners[m].length;y++)this._listeners[m][y].call(this,_)},pipe:function(m){return m.registerPrevious(this)},registerPrevious:function(m){if(this.isLocked)throw new Error("The stream '"+this+"' has already been used.");this.streamInfo=m.streamInfo,this.mergeStreamInfo(),this.previous=m;var _=this;return m.on("data",function(y){_.processChunk(y)}),m.on("end",function(){_.end()}),m.on("error",function(y){_.error(y)}),this},pause:function(){return!this.isPaused&&!this.isFinished&&(this.isPaused=!0,this.previous&&this.previous.pause(),!0)},resume:function(){if(!this.isPaused||this.isFinished)return!1;var m=this.isPaused=!1;return this.generatedError&&(this.error(this.generatedError),m=!0),this.previous&&this.previous.resume(),!m},flush:function(){},processChunk:function(m){this.push(m)},withStreamInfo:function(m,_){return this.extraStreamInfo[m]=_,this.mergeStreamInfo(),this},mergeStreamInfo:function(){for(var m in this.extraStreamInfo)Object.prototype.hasOwnProperty.call(this.extraStreamInfo,m)&&(this.streamInfo[m]=this.extraStreamInfo[m])},lock:function(){if(this.isLocked)throw new Error("The stream '"+this+"' has already been used.");this.isLocked=!0,this.previous&&this.previous.lock()},toString:function(){var m="Worker "+this.name;return this.previous?this.previous+" -> "+m:m}},c.exports=u},{}],29:[function(o,c,d){var u=o("../utils"),m=o("./ConvertWorker"),_=o("./GenericWorker"),y=o("../base64"),S=o("../support"),A=o("../external"),I=null;if(S.nodestream)try{I=o("../nodejs/NodejsStreamOutputAdapter")}catch{}function k(F,E){return new A.Promise(function(L,T){var M=[],R=F._internalType,b=F._outputType,U=F._mimeType;F.on("data",function(N,j){M.push(N),E&&E(j)}).on("error",function(N){M=[],T(N)}).on("end",function(){try{var N=function(j,J,$){switch(j){case"blob":return u.newBlob(u.transformTo("arraybuffer",J),$);case"base64":return y.encode(J);default:return u.transformTo(j,J)}}(b,function(j,J){var $,ct=0,It=null,et=0;for($=0;$<J.length;$++)et+=J[$].length;switch(j){case"string":return J.join("");case"array":return Array.prototype.concat.apply([],J);case"uint8array":for(It=new Uint8Array(et),$=0;$<J.length;$++)It.set(J[$],ct),ct+=J[$].length;return It;case"nodebuffer":return Buffer.concat(J);default:throw new Error("concat : unsupported type '"+j+"'")}}(R,M),U);L(N)}catch(j){T(j)}M=[]}).resume()})}function D(F,E,L){var T=E;switch(E){case"blob":case"arraybuffer":T="uint8array";break;case"base64":T="string"}try{this._internalType=T,this._outputType=E,this._mimeType=L,u.checkSupport(T),this._worker=F.pipe(new m(T)),F.lock()}catch(M){this._worker=new _("error"),this._worker.error(M)}}D.prototype={accumulate:function(F){return k(this,F)},on:function(F,E){var L=this;return F==="data"?this._worker.on(F,function(T){E.call(L,T.data,T.meta)}):this._worker.on(F,function(){u.delay(E,arguments,L)}),this},resume:function(){return u.delay(this._worker.resume,[],this._worker),this},pause:function(){return this._worker.pause(),this},toNodejsStream:function(F){if(u.checkSupport("nodestream"),this._outputType!=="nodebuffer")throw new Error(this._outputType+" is not supported by this method");return new I(this,{objectMode:this._outputType!=="nodebuffer"},F)}},c.exports=D},{"../base64":1,"../external":6,"../nodejs/NodejsStreamOutputAdapter":13,"../support":30,"../utils":32,"./ConvertWorker":24,"./GenericWorker":28}],30:[function(o,c,d){if(d.base64=!0,d.array=!0,d.string=!0,d.arraybuffer=typeof ArrayBuffer<"u"&&typeof Uint8Array<"u",d.nodebuffer=typeof Buffer<"u",d.uint8array=typeof Uint8Array<"u",typeof ArrayBuffer>"u")d.blob=!1;else{var u=new ArrayBuffer(0);try{d.blob=new Blob([u],{type:"application/zip"}).size===0}catch{try{var m=new(self.BlobBuilder||self.WebKitBlobBuilder||self.MozBlobBuilder||self.MSBlobBuilder);m.append(u),d.blob=m.getBlob("application/zip").size===0}catch{d.blob=!1}}}try{d.nodestream=!!o("readable-stream").Readable}catch{d.nodestream=!1}},{"readable-stream":16}],31:[function(o,c,d){for(var u=o("./utils"),m=o("./support"),_=o("./nodejsUtils"),y=o("./stream/GenericWorker"),S=new Array(256),A=0;A<256;A++)S[A]=252<=A?6:248<=A?5:240<=A?4:224<=A?3:192<=A?2:1;S[254]=S[254]=1;function I(){y.call(this,"utf-8 decode"),this.leftOver=null}function k(){y.call(this,"utf-8 encode")}d.utf8encode=function(D){return m.nodebuffer?_.newBufferFrom(D,"utf-8"):function(F){var E,L,T,M,R,b=F.length,U=0;for(M=0;M<b;M++)(64512&(L=F.charCodeAt(M)))==55296&&M+1<b&&(64512&(T=F.charCodeAt(M+1)))==56320&&(L=65536+(L-55296<<10)+(T-56320),M++),U+=L<128?1:L<2048?2:L<65536?3:4;for(E=m.uint8array?new Uint8Array(U):new Array(U),M=R=0;R<U;M++)(64512&(L=F.charCodeAt(M)))==55296&&M+1<b&&(64512&(T=F.charCodeAt(M+1)))==56320&&(L=65536+(L-55296<<10)+(T-56320),M++),L<128?E[R++]=L:(L<2048?E[R++]=192|L>>>6:(L<65536?E[R++]=224|L>>>12:(E[R++]=240|L>>>18,E[R++]=128|L>>>12&63),E[R++]=128|L>>>6&63),E[R++]=128|63&L);return E}(D)},d.utf8decode=function(D){return m.nodebuffer?u.transformTo("nodebuffer",D).toString("utf-8"):function(F){var E,L,T,M,R=F.length,b=new Array(2*R);for(E=L=0;E<R;)if((T=F[E++])<128)b[L++]=T;else if(4<(M=S[T]))b[L++]=65533,E+=M-1;else{for(T&=M===2?31:M===3?15:7;1<M&&E<R;)T=T<<6|63&F[E++],M--;1<M?b[L++]=65533:T<65536?b[L++]=T:(T-=65536,b[L++]=55296|T>>10&1023,b[L++]=56320|1023&T)}return b.length!==L&&(b.subarray?b=b.subarray(0,L):b.length=L),u.applyFromCharCode(b)}(D=u.transformTo(m.uint8array?"uint8array":"array",D))},u.inherits(I,y),I.prototype.processChunk=function(D){var F=u.transformTo(m.uint8array?"uint8array":"array",D.data);if(this.leftOver&&this.leftOver.length){if(m.uint8array){var E=F;(F=new Uint8Array(E.length+this.leftOver.length)).set(this.leftOver,0),F.set(E,this.leftOver.length)}else F=this.leftOver.concat(F);this.leftOver=null}var L=function(M,R){var b;for((R=R||M.length)>M.length&&(R=M.length),b=R-1;0<=b&&(192&M[b])==128;)b--;return b<0||b===0?R:b+S[M[b]]>R?b:R}(F),T=F;L!==F.length&&(m.uint8array?(T=F.subarray(0,L),this.leftOver=F.subarray(L,F.length)):(T=F.slice(0,L),this.leftOver=F.slice(L,F.length))),this.push({data:d.utf8decode(T),meta:D.meta})},I.prototype.flush=function(){this.leftOver&&this.leftOver.length&&(this.push({data:d.utf8decode(this.leftOver),meta:{}}),this.leftOver=null)},d.Utf8DecodeWorker=I,u.inherits(k,y),k.prototype.processChunk=function(D){this.push({data:d.utf8encode(D.data),meta:D.meta})},d.Utf8EncodeWorker=k},{"./nodejsUtils":14,"./stream/GenericWorker":28,"./support":30,"./utils":32}],32:[function(o,c,d){var u=o("./support"),m=o("./base64"),_=o("./nodejsUtils"),y=o("./external");function S(E){return E}function A(E,L){for(var T=0;T<E.length;++T)L[T]=255&E.charCodeAt(T);return L}o("setimmediate"),d.newBlob=function(E,L){d.checkSupport("blob");try{return new Blob([E],{type:L})}catch{try{var T=new(self.BlobBuilder||self.WebKitBlobBuilder||self.MozBlobBuilder||self.MSBlobBuilder);return T.append(E),T.getBlob(L)}catch{throw new Error("Bug : can't construct the Blob.")}}};var I={stringifyByChunk:function(E,L,T){var M=[],R=0,b=E.length;if(b<=T)return String.fromCharCode.apply(null,E);for(;R<b;)L==="array"||L==="nodebuffer"?M.push(String.fromCharCode.apply(null,E.slice(R,Math.min(R+T,b)))):M.push(String.fromCharCode.apply(null,E.subarray(R,Math.min(R+T,b)))),R+=T;return M.join("")},stringifyByChar:function(E){for(var L="",T=0;T<E.length;T++)L+=String.fromCharCode(E[T]);return L},applyCanBeUsed:{uint8array:function(){try{return u.uint8array&&String.fromCharCode.apply(null,new Uint8Array(1)).length===1}catch{return!1}}(),nodebuffer:function(){try{return u.nodebuffer&&String.fromCharCode.apply(null,_.allocBuffer(1)).length===1}catch{return!1}}()}};function k(E){var L=65536,T=d.getTypeOf(E),M=!0;if(T==="uint8array"?M=I.applyCanBeUsed.uint8array:T==="nodebuffer"&&(M=I.applyCanBeUsed.nodebuffer),M)for(;1<L;)try{return I.stringifyByChunk(E,T,L)}catch{L=Math.floor(L/2)}return I.stringifyByChar(E)}function D(E,L){for(var T=0;T<E.length;T++)L[T]=E[T];return L}d.applyFromCharCode=k;var F={};F.string={string:S,array:function(E){return A(E,new Array(E.length))},arraybuffer:function(E){return F.string.uint8array(E).buffer},uint8array:function(E){return A(E,new Uint8Array(E.length))},nodebuffer:function(E){return A(E,_.allocBuffer(E.length))}},F.array={string:k,array:S,arraybuffer:function(E){return new Uint8Array(E).buffer},uint8array:function(E){return new Uint8Array(E)},nodebuffer:function(E){return _.newBufferFrom(E)}},F.arraybuffer={string:function(E){return k(new Uint8Array(E))},array:function(E){return D(new Uint8Array(E),new Array(E.byteLength))},arraybuffer:S,uint8array:function(E){return new Uint8Array(E)},nodebuffer:function(E){return _.newBufferFrom(new Uint8Array(E))}},F.uint8array={string:k,array:function(E){return D(E,new Array(E.length))},arraybuffer:function(E){return E.buffer},uint8array:S,nodebuffer:function(E){return _.newBufferFrom(E)}},F.nodebuffer={string:k,array:function(E){return D(E,new Array(E.length))},arraybuffer:function(E){return F.nodebuffer.uint8array(E).buffer},uint8array:function(E){return D(E,new Uint8Array(E.length))},nodebuffer:S},d.transformTo=function(E,L){if(L=L||"",!E)return L;d.checkSupport(E);var T=d.getTypeOf(L);return F[T][E](L)},d.resolve=function(E){for(var L=E.split("/"),T=[],M=0;M<L.length;M++){var R=L[M];R==="."||R===""&&M!==0&&M!==L.length-1||(R===".."?T.pop():T.push(R))}return T.join("/")},d.getTypeOf=function(E){return typeof E=="string"?"string":Object.prototype.toString.call(E)==="[object Array]"?"array":u.nodebuffer&&_.isBuffer(E)?"nodebuffer":u.uint8array&&E instanceof Uint8Array?"uint8array":u.arraybuffer&&E instanceof ArrayBuffer?"arraybuffer":void 0},d.checkSupport=function(E){if(!u[E.toLowerCase()])throw new Error(E+" is not supported by this platform")},d.MAX_VALUE_16BITS=65535,d.MAX_VALUE_32BITS=-1,d.pretty=function(E){var L,T,M="";for(T=0;T<(E||"").length;T++)M+="\\x"+((L=E.charCodeAt(T))<16?"0":"")+L.toString(16).toUpperCase();return M},d.delay=function(E,L,T){setImmediate(function(){E.apply(T||null,L||[])})},d.inherits=function(E,L){function T(){}T.prototype=L.prototype,E.prototype=new T},d.extend=function(){var E,L,T={};for(E=0;E<arguments.length;E++)for(L in arguments[E])Object.prototype.hasOwnProperty.call(arguments[E],L)&&T[L]===void 0&&(T[L]=arguments[E][L]);return T},d.prepareContent=function(E,L,T,M,R){return y.Promise.resolve(L).then(function(b){return u.blob&&(b instanceof Blob||["[object File]","[object Blob]"].indexOf(Object.prototype.toString.call(b))!==-1)&&typeof FileReader<"u"?new y.Promise(function(U,N){var j=new FileReader;j.onload=function(J){U(J.target.result)},j.onerror=function(J){N(J.target.error)},j.readAsArrayBuffer(b)}):b}).then(function(b){var U=d.getTypeOf(b);return U?(U==="arraybuffer"?b=d.transformTo("uint8array",b):U==="string"&&(R?b=m.decode(b):T&&M!==!0&&(b=function(N){return A(N,u.uint8array?new Uint8Array(N.length):new Array(N.length))}(b))),b):y.Promise.reject(new Error("Can't read the data of '"+E+"'. Is it in a supported JavaScript type (String, Blob, ArrayBuffer, etc) ?"))})}},{"./base64":1,"./external":6,"./nodejsUtils":14,"./support":30,setimmediate:54}],33:[function(o,c,d){var u=o("./reader/readerFor"),m=o("./utils"),_=o("./signature"),y=o("./zipEntry"),S=o("./support");function A(I){this.files=[],this.loadOptions=I}A.prototype={checkSignature:function(I){if(!this.reader.readAndCheckSignature(I)){this.reader.index-=4;var k=this.reader.readString(4);throw new Error("Corrupted zip or bug: unexpected signature ("+m.pretty(k)+", expected "+m.pretty(I)+")")}},isSignature:function(I,k){var D=this.reader.index;this.reader.setIndex(I);var F=this.reader.readString(4)===k;return this.reader.setIndex(D),F},readBlockEndOfCentral:function(){this.diskNumber=this.reader.readInt(2),this.diskWithCentralDirStart=this.reader.readInt(2),this.centralDirRecordsOnThisDisk=this.reader.readInt(2),this.centralDirRecords=this.reader.readInt(2),this.centralDirSize=this.reader.readInt(4),this.centralDirOffset=this.reader.readInt(4),this.zipCommentLength=this.reader.readInt(2);var I=this.reader.readData(this.zipCommentLength),k=S.uint8array?"uint8array":"array",D=m.transformTo(k,I);this.zipComment=this.loadOptions.decodeFileName(D)},readBlockZip64EndOfCentral:function(){this.zip64EndOfCentralSize=this.reader.readInt(8),this.reader.skip(4),this.diskNumber=this.reader.readInt(4),this.diskWithCentralDirStart=this.reader.readInt(4),this.centralDirRecordsOnThisDisk=this.reader.readInt(8),this.centralDirRecords=this.reader.readInt(8),this.centralDirSize=this.reader.readInt(8),this.centralDirOffset=this.reader.readInt(8),this.zip64ExtensibleData={};for(var I,k,D,F=this.zip64EndOfCentralSize-44;0<F;)I=this.reader.readInt(2),k=this.reader.readInt(4),D=this.reader.readData(k),this.zip64ExtensibleData[I]={id:I,length:k,value:D}},readBlockZip64EndOfCentralLocator:function(){if(this.diskWithZip64CentralDirStart=this.reader.readInt(4),this.relativeOffsetEndOfZip64CentralDir=this.reader.readInt(8),this.disksCount=this.reader.readInt(4),1<this.disksCount)throw new Error("Multi-volumes zip are not supported")},readLocalFiles:function(){var I,k;for(I=0;I<this.files.length;I++)k=this.files[I],this.reader.setIndex(k.localHeaderOffset),this.checkSignature(_.LOCAL_FILE_HEADER),k.readLocalPart(this.reader),k.handleUTF8(),k.processAttributes()},readCentralDir:function(){var I;for(this.reader.setIndex(this.centralDirOffset);this.reader.readAndCheckSignature(_.CENTRAL_FILE_HEADER);)(I=new y({zip64:this.zip64},this.loadOptions)).readCentralPart(this.reader),this.files.push(I);if(this.centralDirRecords!==this.files.length&&this.centralDirRecords!==0&&this.files.length===0)throw new Error("Corrupted zip or bug: expected "+this.centralDirRecords+" records in central dir, got "+this.files.length)},readEndOfCentral:function(){var I=this.reader.lastIndexOfSignature(_.CENTRAL_DIRECTORY_END);if(I<0)throw this.isSignature(0,_.LOCAL_FILE_HEADER)?new Error("Corrupted zip: can't find end of central directory"):new Error("Can't find end of central directory : is this a zip file ? If it is, see https://stuk.github.io/jszip/documentation/howto/read_zip.html");this.reader.setIndex(I);var k=I;if(this.checkSignature(_.CENTRAL_DIRECTORY_END),this.readBlockEndOfCentral(),this.diskNumber===m.MAX_VALUE_16BITS||this.diskWithCentralDirStart===m.MAX_VALUE_16BITS||this.centralDirRecordsOnThisDisk===m.MAX_VALUE_16BITS||this.centralDirRecords===m.MAX_VALUE_16BITS||this.centralDirSize===m.MAX_VALUE_32BITS||this.centralDirOffset===m.MAX_VALUE_32BITS){if(this.zip64=!0,(I=this.reader.lastIndexOfSignature(_.ZIP64_CENTRAL_DIRECTORY_LOCATOR))<0)throw new Error("Corrupted zip: can't find the ZIP64 end of central directory locator");if(this.reader.setIndex(I),this.checkSignature(_.ZIP64_CENTRAL_DIRECTORY_LOCATOR),this.readBlockZip64EndOfCentralLocator(),!this.isSignature(this.relativeOffsetEndOfZip64CentralDir,_.ZIP64_CENTRAL_DIRECTORY_END)&&(this.relativeOffsetEndOfZip64CentralDir=this.reader.lastIndexOfSignature(_.ZIP64_CENTRAL_DIRECTORY_END),this.relativeOffsetEndOfZip64CentralDir<0))throw new Error("Corrupted zip: can't find the ZIP64 end of central directory");this.reader.setIndex(this.relativeOffsetEndOfZip64CentralDir),this.checkSignature(_.ZIP64_CENTRAL_DIRECTORY_END),this.readBlockZip64EndOfCentral()}var D=this.centralDirOffset+this.centralDirSize;this.zip64&&(D+=20,D+=12+this.zip64EndOfCentralSize);var F=k-D;if(0<F)this.isSignature(k,_.CENTRAL_FILE_HEADER)||(this.reader.zero=F);else if(F<0)throw new Error("Corrupted zip: missing "+Math.abs(F)+" bytes.")},prepareReader:function(I){this.reader=u(I)},load:function(I){this.prepareReader(I),this.readEndOfCentral(),this.readCentralDir(),this.readLocalFiles()}},c.exports=A},{"./reader/readerFor":22,"./signature":23,"./support":30,"./utils":32,"./zipEntry":34}],34:[function(o,c,d){var u=o("./reader/readerFor"),m=o("./utils"),_=o("./compressedObject"),y=o("./crc32"),S=o("./utf8"),A=o("./compressions"),I=o("./support");function k(D,F){this.options=D,this.loadOptions=F}k.prototype={isEncrypted:function(){return(1&this.bitFlag)==1},useUTF8:function(){return(2048&this.bitFlag)==2048},readLocalPart:function(D){var F,E;if(D.skip(22),this.fileNameLength=D.readInt(2),E=D.readInt(2),this.fileName=D.readData(this.fileNameLength),D.skip(E),this.compressedSize===-1||this.uncompressedSize===-1)throw new Error("Bug or corrupted zip : didn't get enough information from the central directory (compressedSize === -1 || uncompressedSize === -1)");if((F=function(L){for(var T in A)if(Object.prototype.hasOwnProperty.call(A,T)&&A[T].magic===L)return A[T];return null}(this.compressionMethod))===null)throw new Error("Corrupted zip : compression "+m.pretty(this.compressionMethod)+" unknown (inner file : "+m.transformTo("string",this.fileName)+")");this.decompressed=new _(this.compressedSize,this.uncompressedSize,this.crc32,F,D.readData(this.compressedSize))},readCentralPart:function(D){this.versionMadeBy=D.readInt(2),D.skip(2),this.bitFlag=D.readInt(2),this.compressionMethod=D.readString(2),this.date=D.readDate(),this.crc32=D.readInt(4),this.compressedSize=D.readInt(4),this.uncompressedSize=D.readInt(4);var F=D.readInt(2);if(this.extraFieldsLength=D.readInt(2),this.fileCommentLength=D.readInt(2),this.diskNumberStart=D.readInt(2),this.internalFileAttributes=D.readInt(2),this.externalFileAttributes=D.readInt(4),this.localHeaderOffset=D.readInt(4),this.isEncrypted())throw new Error("Encrypted zip are not supported");D.skip(F),this.readExtraFields(D),this.parseZIP64ExtraField(D),this.fileComment=D.readData(this.fileCommentLength)},processAttributes:function(){this.unixPermissions=null,this.dosPermissions=null;var D=this.versionMadeBy>>8;this.dir=!!(16&this.externalFileAttributes),D==0&&(this.dosPermissions=63&this.externalFileAttributes),D==3&&(this.unixPermissions=this.externalFileAttributes>>16&65535),this.dir||this.fileNameStr.slice(-1)!=="/"||(this.dir=!0)},parseZIP64ExtraField:function(){if(this.extraFields[1]){var D=u(this.extraFields[1].value);this.uncompressedSize===m.MAX_VALUE_32BITS&&(this.uncompressedSize=D.readInt(8)),this.compressedSize===m.MAX_VALUE_32BITS&&(this.compressedSize=D.readInt(8)),this.localHeaderOffset===m.MAX_VALUE_32BITS&&(this.localHeaderOffset=D.readInt(8)),this.diskNumberStart===m.MAX_VALUE_32BITS&&(this.diskNumberStart=D.readInt(4))}},readExtraFields:function(D){var F,E,L,T=D.index+this.extraFieldsLength;for(this.extraFields||(this.extraFields={});D.index+4<T;)F=D.readInt(2),E=D.readInt(2),L=D.readData(E),this.extraFields[F]={id:F,length:E,value:L};D.setIndex(T)},handleUTF8:function(){var D=I.uint8array?"uint8array":"array";if(this.useUTF8())this.fileNameStr=S.utf8decode(this.fileName),this.fileCommentStr=S.utf8decode(this.fileComment);else{var F=this.findExtraFieldUnicodePath();if(F!==null)this.fileNameStr=F;else{var E=m.transformTo(D,this.fileName);this.fileNameStr=this.loadOptions.decodeFileName(E)}var L=this.findExtraFieldUnicodeComment();if(L!==null)this.fileCommentStr=L;else{var T=m.transformTo(D,this.fileComment);this.fileCommentStr=this.loadOptions.decodeFileName(T)}}},findExtraFieldUnicodePath:function(){var D=this.extraFields[28789];if(D){var F=u(D.value);return F.readInt(1)!==1||y(this.fileName)!==F.readInt(4)?null:S.utf8decode(F.readData(D.length-5))}return null},findExtraFieldUnicodeComment:function(){var D=this.extraFields[25461];if(D){var F=u(D.value);return F.readInt(1)!==1||y(this.fileComment)!==F.readInt(4)?null:S.utf8decode(F.readData(D.length-5))}return null}},c.exports=k},{"./compressedObject":2,"./compressions":3,"./crc32":4,"./reader/readerFor":22,"./support":30,"./utf8":31,"./utils":32}],35:[function(o,c,d){function u(F,E,L){this.name=F,this.dir=L.dir,this.date=L.date,this.comment=L.comment,this.unixPermissions=L.unixPermissions,this.dosPermissions=L.dosPermissions,this._data=E,this._dataBinary=L.binary,this.options={compression:L.compression,compressionOptions:L.compressionOptions}}var m=o("./stream/StreamHelper"),_=o("./stream/DataWorker"),y=o("./utf8"),S=o("./compressedObject"),A=o("./stream/GenericWorker");u.prototype={internalStream:function(F){var E=null,L="string";try{if(!F)throw new Error("No output type specified.");var T=(L=F.toLowerCase())==="string"||L==="text";L!=="binarystring"&&L!=="text"||(L="string"),E=this._decompressWorker();var M=!this._dataBinary;M&&!T&&(E=E.pipe(new y.Utf8EncodeWorker)),!M&&T&&(E=E.pipe(new y.Utf8DecodeWorker))}catch(R){(E=new A("error")).error(R)}return new m(E,L,"")},async:function(F,E){return this.internalStream(F).accumulate(E)},nodeStream:function(F,E){return this.internalStream(F||"nodebuffer").toNodejsStream(E)},_compressWorker:function(F,E){if(this._data instanceof S&&this._data.compression.magic===F.magic)return this._data.getCompressedWorker();var L=this._decompressWorker();return this._dataBinary||(L=L.pipe(new y.Utf8EncodeWorker)),S.createWorkerFrom(L,F,E)},_decompressWorker:function(){return this._data instanceof S?this._data.getContentWorker():this._data instanceof A?this._data:new _(this._data)}};for(var I=["asText","asBinary","asNodeBuffer","asUint8Array","asArrayBuffer"],k=function(){throw new Error("This method has been removed in JSZip 3.0, please check the upgrade guide.")},D=0;D<I.length;D++)u.prototype[I[D]]=k;c.exports=u},{"./compressedObject":2,"./stream/DataWorker":27,"./stream/GenericWorker":28,"./stream/StreamHelper":29,"./utf8":31}],36:[function(o,c,d){(function(u){var m,_,y=u.MutationObserver||u.WebKitMutationObserver;if(y){var S=0,A=new y(F),I=u.document.createTextNode("");A.observe(I,{characterData:!0}),m=function(){I.data=S=++S%2}}else if(u.setImmediate||u.MessageChannel===void 0)m="document"in u&&"onreadystatechange"in u.document.createElement("script")?function(){var E=u.document.createElement("script");E.onreadystatechange=function(){F(),E.onreadystatechange=null,E.parentNode.removeChild(E),E=null},u.document.documentElement.appendChild(E)}:function(){setTimeout(F,0)};else{var k=new u.MessageChannel;k.port1.onmessage=F,m=function(){k.port2.postMessage(0)}}var D=[];function F(){var E,L;_=!0;for(var T=D.length;T;){for(L=D,D=[],E=-1;++E<T;)L[E]();T=D.length}_=!1}c.exports=function(E){D.push(E)!==1||_||m()}}).call(this,typeof Er<"u"?Er:typeof self<"u"?self:typeof window<"u"?window:{})},{}],37:[function(o,c,d){var u=o("immediate");function m(){}var _={},y=["REJECTED"],S=["FULFILLED"],A=["PENDING"];function I(T){if(typeof T!="function")throw new TypeError("resolver must be a function");this.state=A,this.queue=[],this.outcome=void 0,T!==m&&E(this,T)}function k(T,M,R){this.promise=T,typeof M=="function"&&(this.onFulfilled=M,this.callFulfilled=this.otherCallFulfilled),typeof R=="function"&&(this.onRejected=R,this.callRejected=this.otherCallRejected)}function D(T,M,R){u(function(){var b;try{b=M(R)}catch(U){return _.reject(T,U)}b===T?_.reject(T,new TypeError("Cannot resolve promise with itself")):_.resolve(T,b)})}function F(T){var M=T&&T.then;if(T&&(typeof T=="object"||typeof T=="function")&&typeof M=="function")return function(){M.apply(T,arguments)}}function E(T,M){var R=!1;function b(j){R||(R=!0,_.reject(T,j))}function U(j){R||(R=!0,_.resolve(T,j))}var N=L(function(){M(U,b)});N.status==="error"&&b(N.value)}function L(T,M){var R={};try{R.value=T(M),R.status="success"}catch(b){R.status="error",R.value=b}return R}(c.exports=I).prototype.finally=function(T){if(typeof T!="function")return this;var M=this.constructor;return this.then(function(R){return M.resolve(T()).then(function(){return R})},function(R){return M.resolve(T()).then(function(){throw R})})},I.prototype.catch=function(T){return this.then(null,T)},I.prototype.then=function(T,M){if(typeof T!="function"&&this.state===S||typeof M!="function"&&this.state===y)return this;var R=new this.constructor(m);return this.state!==A?D(R,this.state===S?T:M,this.outcome):this.queue.push(new k(R,T,M)),R},k.prototype.callFulfilled=function(T){_.resolve(this.promise,T)},k.prototype.otherCallFulfilled=function(T){D(this.promise,this.onFulfilled,T)},k.prototype.callRejected=function(T){_.reject(this.promise,T)},k.prototype.otherCallRejected=function(T){D(this.promise,this.onRejected,T)},_.resolve=function(T,M){var R=L(F,M);if(R.status==="error")return _.reject(T,R.value);var b=R.value;if(b)E(T,b);else{T.state=S,T.outcome=M;for(var U=-1,N=T.queue.length;++U<N;)T.queue[U].callFulfilled(M)}return T},_.reject=function(T,M){T.state=y,T.outcome=M;for(var R=-1,b=T.queue.length;++R<b;)T.queue[R].callRejected(M);return T},I.resolve=function(T){return T instanceof this?T:_.resolve(new this(m),T)},I.reject=function(T){var M=new this(m);return _.reject(M,T)},I.all=function(T){var M=this;if(Object.prototype.toString.call(T)!=="[object Array]")return this.reject(new TypeError("must be an array"));var R=T.length,b=!1;if(!R)return this.resolve([]);for(var U=new Array(R),N=0,j=-1,J=new this(m);++j<R;)$(T[j],j);return J;function $(ct,It){M.resolve(ct).then(function(et){U[It]=et,++N!==R||b||(b=!0,_.resolve(J,U))},function(et){b||(b=!0,_.reject(J,et))})}},I.race=function(T){var M=this;if(Object.prototype.toString.call(T)!=="[object Array]")return this.reject(new TypeError("must be an array"));var R=T.length,b=!1;if(!R)return this.resolve([]);for(var U=-1,N=new this(m);++U<R;)j=T[U],M.resolve(j).then(function(J){b||(b=!0,_.resolve(N,J))},function(J){b||(b=!0,_.reject(N,J))});var j;return N}},{immediate:36}],38:[function(o,c,d){var u={};(0,o("./lib/utils/common").assign)(u,o("./lib/deflate"),o("./lib/inflate"),o("./lib/zlib/constants")),c.exports=u},{"./lib/deflate":39,"./lib/inflate":40,"./lib/utils/common":41,"./lib/zlib/constants":44}],39:[function(o,c,d){var u=o("./zlib/deflate"),m=o("./utils/common"),_=o("./utils/strings"),y=o("./zlib/messages"),S=o("./zlib/zstream"),A=Object.prototype.toString,I=0,k=-1,D=0,F=8;function E(T){if(!(this instanceof E))return new E(T);this.options=m.assign({level:k,method:F,chunkSize:16384,windowBits:15,memLevel:8,strategy:D,to:""},T||{});var M=this.options;M.raw&&0<M.windowBits?M.windowBits=-M.windowBits:M.gzip&&0<M.windowBits&&M.windowBits<16&&(M.windowBits+=16),this.err=0,this.msg="",this.ended=!1,this.chunks=[],this.strm=new S,this.strm.avail_out=0;var R=u.deflateInit2(this.strm,M.level,M.method,M.windowBits,M.memLevel,M.strategy);if(R!==I)throw new Error(y[R]);if(M.header&&u.deflateSetHeader(this.strm,M.header),M.dictionary){var b;if(b=typeof M.dictionary=="string"?_.string2buf(M.dictionary):A.call(M.dictionary)==="[object ArrayBuffer]"?new Uint8Array(M.dictionary):M.dictionary,(R=u.deflateSetDictionary(this.strm,b))!==I)throw new Error(y[R]);this._dict_set=!0}}function L(T,M){var R=new E(M);if(R.push(T,!0),R.err)throw R.msg||y[R.err];return R.result}E.prototype.push=function(T,M){var R,b,U=this.strm,N=this.options.chunkSize;if(this.ended)return!1;b=M===~~M?M:M===!0?4:0,typeof T=="string"?U.input=_.string2buf(T):A.call(T)==="[object ArrayBuffer]"?U.input=new Uint8Array(T):U.input=T,U.next_in=0,U.avail_in=U.input.length;do{if(U.avail_out===0&&(U.output=new m.Buf8(N),U.next_out=0,U.avail_out=N),(R=u.deflate(U,b))!==1&&R!==I)return this.onEnd(R),!(this.ended=!0);U.avail_out!==0&&(U.avail_in!==0||b!==4&&b!==2)||(this.options.to==="string"?this.onData(_.buf2binstring(m.shrinkBuf(U.output,U.next_out))):this.onData(m.shrinkBuf(U.output,U.next_out)))}while((0<U.avail_in||U.avail_out===0)&&R!==1);return b===4?(R=u.deflateEnd(this.strm),this.onEnd(R),this.ended=!0,R===I):b!==2||(this.onEnd(I),!(U.avail_out=0))},E.prototype.onData=function(T){this.chunks.push(T)},E.prototype.onEnd=function(T){T===I&&(this.options.to==="string"?this.result=this.chunks.join(""):this.result=m.flattenChunks(this.chunks)),this.chunks=[],this.err=T,this.msg=this.strm.msg},d.Deflate=E,d.deflate=L,d.deflateRaw=function(T,M){return(M=M||{}).raw=!0,L(T,M)},d.gzip=function(T,M){return(M=M||{}).gzip=!0,L(T,M)}},{"./utils/common":41,"./utils/strings":42,"./zlib/deflate":46,"./zlib/messages":51,"./zlib/zstream":53}],40:[function(o,c,d){var u=o("./zlib/inflate"),m=o("./utils/common"),_=o("./utils/strings"),y=o("./zlib/constants"),S=o("./zlib/messages"),A=o("./zlib/zstream"),I=o("./zlib/gzheader"),k=Object.prototype.toString;function D(E){if(!(this instanceof D))return new D(E);this.options=m.assign({chunkSize:16384,windowBits:0,to:""},E||{});var L=this.options;L.raw&&0<=L.windowBits&&L.windowBits<16&&(L.windowBits=-L.windowBits,L.windowBits===0&&(L.windowBits=-15)),!(0<=L.windowBits&&L.windowBits<16)||E&&E.windowBits||(L.windowBits+=32),15<L.windowBits&&L.windowBits<48&&!(15&L.windowBits)&&(L.windowBits|=15),this.err=0,this.msg="",this.ended=!1,this.chunks=[],this.strm=new A,this.strm.avail_out=0;var T=u.inflateInit2(this.strm,L.windowBits);if(T!==y.Z_OK)throw new Error(S[T]);this.header=new I,u.inflateGetHeader(this.strm,this.header)}function F(E,L){var T=new D(L);if(T.push(E,!0),T.err)throw T.msg||S[T.err];return T.result}D.prototype.push=function(E,L){var T,M,R,b,U,N,j=this.strm,J=this.options.chunkSize,$=this.options.dictionary,ct=!1;if(this.ended)return!1;M=L===~~L?L:L===!0?y.Z_FINISH:y.Z_NO_FLUSH,typeof E=="string"?j.input=_.binstring2buf(E):k.call(E)==="[object ArrayBuffer]"?j.input=new Uint8Array(E):j.input=E,j.next_in=0,j.avail_in=j.input.length;do{if(j.avail_out===0&&(j.output=new m.Buf8(J),j.next_out=0,j.avail_out=J),(T=u.inflate(j,y.Z_NO_FLUSH))===y.Z_NEED_DICT&&$&&(N=typeof $=="string"?_.string2buf($):k.call($)==="[object ArrayBuffer]"?new Uint8Array($):$,T=u.inflateSetDictionary(this.strm,N)),T===y.Z_BUF_ERROR&&ct===!0&&(T=y.Z_OK,ct=!1),T!==y.Z_STREAM_END&&T!==y.Z_OK)return this.onEnd(T),!(this.ended=!0);j.next_out&&(j.avail_out!==0&&T!==y.Z_STREAM_END&&(j.avail_in!==0||M!==y.Z_FINISH&&M!==y.Z_SYNC_FLUSH)||(this.options.to==="string"?(R=_.utf8border(j.output,j.next_out),b=j.next_out-R,U=_.buf2string(j.output,R),j.next_out=b,j.avail_out=J-b,b&&m.arraySet(j.output,j.output,R,b,0),this.onData(U)):this.onData(m.shrinkBuf(j.output,j.next_out)))),j.avail_in===0&&j.avail_out===0&&(ct=!0)}while((0<j.avail_in||j.avail_out===0)&&T!==y.Z_STREAM_END);return T===y.Z_STREAM_END&&(M=y.Z_FINISH),M===y.Z_FINISH?(T=u.inflateEnd(this.strm),this.onEnd(T),this.ended=!0,T===y.Z_OK):M!==y.Z_SYNC_FLUSH||(this.onEnd(y.Z_OK),!(j.avail_out=0))},D.prototype.onData=function(E){this.chunks.push(E)},D.prototype.onEnd=function(E){E===y.Z_OK&&(this.options.to==="string"?this.result=this.chunks.join(""):this.result=m.flattenChunks(this.chunks)),this.chunks=[],this.err=E,this.msg=this.strm.msg},d.Inflate=D,d.inflate=F,d.inflateRaw=function(E,L){return(L=L||{}).raw=!0,F(E,L)},d.ungzip=F},{"./utils/common":41,"./utils/strings":42,"./zlib/constants":44,"./zlib/gzheader":47,"./zlib/inflate":49,"./zlib/messages":51,"./zlib/zstream":53}],41:[function(o,c,d){var u=typeof Uint8Array<"u"&&typeof Uint16Array<"u"&&typeof Int32Array<"u";d.assign=function(y){for(var S=Array.prototype.slice.call(arguments,1);S.length;){var A=S.shift();if(A){if(typeof A!="object")throw new TypeError(A+"must be non-object");for(var I in A)A.hasOwnProperty(I)&&(y[I]=A[I])}}return y},d.shrinkBuf=function(y,S){return y.length===S?y:y.subarray?y.subarray(0,S):(y.length=S,y)};var m={arraySet:function(y,S,A,I,k){if(S.subarray&&y.subarray)y.set(S.subarray(A,A+I),k);else for(var D=0;D<I;D++)y[k+D]=S[A+D]},flattenChunks:function(y){var S,A,I,k,D,F;for(S=I=0,A=y.length;S<A;S++)I+=y[S].length;for(F=new Uint8Array(I),S=k=0,A=y.length;S<A;S++)D=y[S],F.set(D,k),k+=D.length;return F}},_={arraySet:function(y,S,A,I,k){for(var D=0;D<I;D++)y[k+D]=S[A+D]},flattenChunks:function(y){return[].concat.apply([],y)}};d.setTyped=function(y){y?(d.Buf8=Uint8Array,d.Buf16=Uint16Array,d.Buf32=Int32Array,d.assign(d,m)):(d.Buf8=Array,d.Buf16=Array,d.Buf32=Array,d.assign(d,_))},d.setTyped(u)},{}],42:[function(o,c,d){var u=o("./common"),m=!0,_=!0;try{String.fromCharCode.apply(null,[0])}catch{m=!1}try{String.fromCharCode.apply(null,new Uint8Array(1))}catch{_=!1}for(var y=new u.Buf8(256),S=0;S<256;S++)y[S]=252<=S?6:248<=S?5:240<=S?4:224<=S?3:192<=S?2:1;function A(I,k){if(k<65537&&(I.subarray&&_||!I.subarray&&m))return String.fromCharCode.apply(null,u.shrinkBuf(I,k));for(var D="",F=0;F<k;F++)D+=String.fromCharCode(I[F]);return D}y[254]=y[254]=1,d.string2buf=function(I){var k,D,F,E,L,T=I.length,M=0;for(E=0;E<T;E++)(64512&(D=I.charCodeAt(E)))==55296&&E+1<T&&(64512&(F=I.charCodeAt(E+1)))==56320&&(D=65536+(D-55296<<10)+(F-56320),E++),M+=D<128?1:D<2048?2:D<65536?3:4;for(k=new u.Buf8(M),E=L=0;L<M;E++)(64512&(D=I.charCodeAt(E)))==55296&&E+1<T&&(64512&(F=I.charCodeAt(E+1)))==56320&&(D=65536+(D-55296<<10)+(F-56320),E++),D<128?k[L++]=D:(D<2048?k[L++]=192|D>>>6:(D<65536?k[L++]=224|D>>>12:(k[L++]=240|D>>>18,k[L++]=128|D>>>12&63),k[L++]=128|D>>>6&63),k[L++]=128|63&D);return k},d.buf2binstring=function(I){return A(I,I.length)},d.binstring2buf=function(I){for(var k=new u.Buf8(I.length),D=0,F=k.length;D<F;D++)k[D]=I.charCodeAt(D);return k},d.buf2string=function(I,k){var D,F,E,L,T=k||I.length,M=new Array(2*T);for(D=F=0;D<T;)if((E=I[D++])<128)M[F++]=E;else if(4<(L=y[E]))M[F++]=65533,D+=L-1;else{for(E&=L===2?31:L===3?15:7;1<L&&D<T;)E=E<<6|63&I[D++],L--;1<L?M[F++]=65533:E<65536?M[F++]=E:(E-=65536,M[F++]=55296|E>>10&1023,M[F++]=56320|1023&E)}return A(M,F)},d.utf8border=function(I,k){var D;for((k=k||I.length)>I.length&&(k=I.length),D=k-1;0<=D&&(192&I[D])==128;)D--;return D<0||D===0?k:D+y[I[D]]>k?D:k}},{"./common":41}],43:[function(o,c,d){c.exports=function(u,m,_,y){for(var S=65535&u|0,A=u>>>16&65535|0,I=0;_!==0;){for(_-=I=2e3<_?2e3:_;A=A+(S=S+m[y++]|0)|0,--I;);S%=65521,A%=65521}return S|A<<16|0}},{}],44:[function(o,c,d){c.exports={Z_NO_FLUSH:0,Z_PARTIAL_FLUSH:1,Z_SYNC_FLUSH:2,Z_FULL_FLUSH:3,Z_FINISH:4,Z_BLOCK:5,Z_TREES:6,Z_OK:0,Z_STREAM_END:1,Z_NEED_DICT:2,Z_ERRNO:-1,Z_STREAM_ERROR:-2,Z_DATA_ERROR:-3,Z_BUF_ERROR:-5,Z_NO_COMPRESSION:0,Z_BEST_SPEED:1,Z_BEST_COMPRESSION:9,Z_DEFAULT_COMPRESSION:-1,Z_FILTERED:1,Z_HUFFMAN_ONLY:2,Z_RLE:3,Z_FIXED:4,Z_DEFAULT_STRATEGY:0,Z_BINARY:0,Z_TEXT:1,Z_UNKNOWN:2,Z_DEFLATED:8}},{}],45:[function(o,c,d){var u=function(){for(var m,_=[],y=0;y<256;y++){m=y;for(var S=0;S<8;S++)m=1&m?3988292384^m>>>1:m>>>1;_[y]=m}return _}();c.exports=function(m,_,y,S){var A=u,I=S+y;m^=-1;for(var k=S;k<I;k++)m=m>>>8^A[255&(m^_[k])];return-1^m}},{}],46:[function(o,c,d){var u,m=o("../utils/common"),_=o("./trees"),y=o("./adler32"),S=o("./crc32"),A=o("./messages"),I=0,k=4,D=0,F=-2,E=-1,L=4,T=2,M=8,R=9,b=286,U=30,N=19,j=2*b+1,J=15,$=3,ct=258,It=ct+$+1,et=42,yt=113,G=1,Pt=2,Et=3,Ct=4;function fe(W,Jt){return W.msg=A[Jt],Jt}function re(W){return(W<<1)-(4<W?9:0)}function Ft(W){for(var Jt=W.length;0<=--Jt;)W[Jt]=0}function Ot(W){var Jt=W.state,Wt=Jt.pending;Wt>W.avail_out&&(Wt=W.avail_out),Wt!==0&&(m.arraySet(W.output,Jt.pending_buf,Jt.pending_out,Wt,W.next_out),W.next_out+=Wt,Jt.pending_out+=Wt,W.total_out+=Wt,W.avail_out-=Wt,Jt.pending-=Wt,Jt.pending===0&&(Jt.pending_out=0))}function Bt(W,Jt){_._tr_flush_block(W,0<=W.block_start?W.block_start:-1,W.strstart-W.block_start,Jt),W.block_start=W.strstart,Ot(W.strm)}function ke(W,Jt){W.pending_buf[W.pending++]=Jt}function ce(W,Jt){W.pending_buf[W.pending++]=Jt>>>8&255,W.pending_buf[W.pending++]=255&Jt}function Yt(W,Jt){var Wt,pt,dt=W.max_chain_length,Dt=W.strstart,ie=W.prev_length,Kt=W.nice_match,z=W.strstart>W.w_size-It?W.strstart-(W.w_size-It):0,Q=W.window,ot=W.w_mask,nt=W.prev,vt=W.strstart+ct,Gt=Q[Dt+ie-1],Xt=Q[Dt+ie];W.prev_length>=W.good_match&&(dt>>=2),Kt>W.lookahead&&(Kt=W.lookahead);do if(Q[(Wt=Jt)+ie]===Xt&&Q[Wt+ie-1]===Gt&&Q[Wt]===Q[Dt]&&Q[++Wt]===Q[Dt+1]){Dt+=2,Wt++;do;while(Q[++Dt]===Q[++Wt]&&Q[++Dt]===Q[++Wt]&&Q[++Dt]===Q[++Wt]&&Q[++Dt]===Q[++Wt]&&Q[++Dt]===Q[++Wt]&&Q[++Dt]===Q[++Wt]&&Q[++Dt]===Q[++Wt]&&Q[++Dt]===Q[++Wt]&&Dt<vt);if(pt=ct-(vt-Dt),Dt=vt-ct,ie<pt){if(W.match_start=Jt,Kt<=(ie=pt))break;Gt=Q[Dt+ie-1],Xt=Q[Dt+ie]}}while((Jt=nt[Jt&ot])>z&&--dt!=0);return ie<=W.lookahead?ie:W.lookahead}function $e(W){var Jt,Wt,pt,dt,Dt,ie,Kt,z,Q,ot,nt=W.w_size;do{if(dt=W.window_size-W.lookahead-W.strstart,W.strstart>=nt+(nt-It)){for(m.arraySet(W.window,W.window,nt,nt,0),W.match_start-=nt,W.strstart-=nt,W.block_start-=nt,Jt=Wt=W.hash_size;pt=W.head[--Jt],W.head[Jt]=nt<=pt?pt-nt:0,--Wt;);for(Jt=Wt=nt;pt=W.prev[--Jt],W.prev[Jt]=nt<=pt?pt-nt:0,--Wt;);dt+=nt}if(W.strm.avail_in===0)break;if(ie=W.strm,Kt=W.window,z=W.strstart+W.lookahead,Q=dt,ot=void 0,ot=ie.avail_in,Q<ot&&(ot=Q),Wt=ot===0?0:(ie.avail_in-=ot,m.arraySet(Kt,ie.input,ie.next_in,ot,z),ie.state.wrap===1?ie.adler=y(ie.adler,Kt,ot,z):ie.state.wrap===2&&(ie.adler=S(ie.adler,Kt,ot,z)),ie.next_in+=ot,ie.total_in+=ot,ot),W.lookahead+=Wt,W.lookahead+W.insert>=$)for(Dt=W.strstart-W.insert,W.ins_h=W.window[Dt],W.ins_h=(W.ins_h<<W.hash_shift^W.window[Dt+1])&W.hash_mask;W.insert&&(W.ins_h=(W.ins_h<<W.hash_shift^W.window[Dt+$-1])&W.hash_mask,W.prev[Dt&W.w_mask]=W.head[W.ins_h],W.head[W.ins_h]=Dt,Dt++,W.insert--,!(W.lookahead+W.insert<$)););}while(W.lookahead<It&&W.strm.avail_in!==0)}function Oi(W,Jt){for(var Wt,pt;;){if(W.lookahead<It){if($e(W),W.lookahead<It&&Jt===I)return G;if(W.lookahead===0)break}if(Wt=0,W.lookahead>=$&&(W.ins_h=(W.ins_h<<W.hash_shift^W.window[W.strstart+$-1])&W.hash_mask,Wt=W.prev[W.strstart&W.w_mask]=W.head[W.ins_h],W.head[W.ins_h]=W.strstart),Wt!==0&&W.strstart-Wt<=W.w_size-It&&(W.match_length=Yt(W,Wt)),W.match_length>=$)if(pt=_._tr_tally(W,W.strstart-W.match_start,W.match_length-$),W.lookahead-=W.match_length,W.match_length<=W.max_lazy_match&&W.lookahead>=$){for(W.match_length--;W.strstart++,W.ins_h=(W.ins_h<<W.hash_shift^W.window[W.strstart+$-1])&W.hash_mask,Wt=W.prev[W.strstart&W.w_mask]=W.head[W.ins_h],W.head[W.ins_h]=W.strstart,--W.match_length!=0;);W.strstart++}else W.strstart+=W.match_length,W.match_length=0,W.ins_h=W.window[W.strstart],W.ins_h=(W.ins_h<<W.hash_shift^W.window[W.strstart+1])&W.hash_mask;else pt=_._tr_tally(W,0,W.window[W.strstart]),W.lookahead--,W.strstart++;if(pt&&(Bt(W,!1),W.strm.avail_out===0))return G}return W.insert=W.strstart<$-1?W.strstart:$-1,Jt===k?(Bt(W,!0),W.strm.avail_out===0?Et:Ct):W.last_lit&&(Bt(W,!1),W.strm.avail_out===0)?G:Pt}function Oe(W,Jt){for(var Wt,pt,dt;;){if(W.lookahead<It){if($e(W),W.lookahead<It&&Jt===I)return G;if(W.lookahead===0)break}if(Wt=0,W.lookahead>=$&&(W.ins_h=(W.ins_h<<W.hash_shift^W.window[W.strstart+$-1])&W.hash_mask,Wt=W.prev[W.strstart&W.w_mask]=W.head[W.ins_h],W.head[W.ins_h]=W.strstart),W.prev_length=W.match_length,W.prev_match=W.match_start,W.match_length=$-1,Wt!==0&&W.prev_length<W.max_lazy_match&&W.strstart-Wt<=W.w_size-It&&(W.match_length=Yt(W,Wt),W.match_length<=5&&(W.strategy===1||W.match_length===$&&4096<W.strstart-W.match_start)&&(W.match_length=$-1)),W.prev_length>=$&&W.match_length<=W.prev_length){for(dt=W.strstart+W.lookahead-$,pt=_._tr_tally(W,W.strstart-1-W.prev_match,W.prev_length-$),W.lookahead-=W.prev_length-1,W.prev_length-=2;++W.strstart<=dt&&(W.ins_h=(W.ins_h<<W.hash_shift^W.window[W.strstart+$-1])&W.hash_mask,Wt=W.prev[W.strstart&W.w_mask]=W.head[W.ins_h],W.head[W.ins_h]=W.strstart),--W.prev_length!=0;);if(W.match_available=0,W.match_length=$-1,W.strstart++,pt&&(Bt(W,!1),W.strm.avail_out===0))return G}else if(W.match_available){if((pt=_._tr_tally(W,0,W.window[W.strstart-1]))&&Bt(W,!1),W.strstart++,W.lookahead--,W.strm.avail_out===0)return G}else W.match_available=1,W.strstart++,W.lookahead--}return W.match_available&&(pt=_._tr_tally(W,0,W.window[W.strstart-1]),W.match_available=0),W.insert=W.strstart<$-1?W.strstart:$-1,Jt===k?(Bt(W,!0),W.strm.avail_out===0?Et:Ct):W.last_lit&&(Bt(W,!1),W.strm.avail_out===0)?G:Pt}function Ge(W,Jt,Wt,pt,dt){this.good_length=W,this.max_lazy=Jt,this.nice_length=Wt,this.max_chain=pt,this.func=dt}function di(){this.strm=null,this.status=0,this.pending_buf=null,this.pending_buf_size=0,this.pending_out=0,this.pending=0,this.wrap=0,this.gzhead=null,this.gzindex=0,this.method=M,this.last_flush=-1,this.w_size=0,this.w_bits=0,this.w_mask=0,this.window=null,this.window_size=0,this.prev=null,this.head=null,this.ins_h=0,this.hash_size=0,this.hash_bits=0,this.hash_mask=0,this.hash_shift=0,this.block_start=0,this.match_length=0,this.prev_match=0,this.match_available=0,this.strstart=0,this.match_start=0,this.lookahead=0,this.prev_length=0,this.max_chain_length=0,this.max_lazy_match=0,this.level=0,this.strategy=0,this.good_match=0,this.nice_match=0,this.dyn_ltree=new m.Buf16(2*j),this.dyn_dtree=new m.Buf16(2*(2*U+1)),this.bl_tree=new m.Buf16(2*(2*N+1)),Ft(this.dyn_ltree),Ft(this.dyn_dtree),Ft(this.bl_tree),this.l_desc=null,this.d_desc=null,this.bl_desc=null,this.bl_count=new m.Buf16(J+1),this.heap=new m.Buf16(2*b+1),Ft(this.heap),this.heap_len=0,this.heap_max=0,this.depth=new m.Buf16(2*b+1),Ft(this.depth),this.l_buf=0,this.lit_bufsize=0,this.last_lit=0,this.d_buf=0,this.opt_len=0,this.static_len=0,this.matches=0,this.insert=0,this.bi_buf=0,this.bi_valid=0}function Ii(W){var Jt;return W&&W.state?(W.total_in=W.total_out=0,W.data_type=T,(Jt=W.state).pending=0,Jt.pending_out=0,Jt.wrap<0&&(Jt.wrap=-Jt.wrap),Jt.status=Jt.wrap?et:yt,W.adler=Jt.wrap===2?0:1,Jt.last_flush=I,_._tr_init(Jt),D):fe(W,F)}function mn(W){var Jt=Ii(W);return Jt===D&&function(Wt){Wt.window_size=2*Wt.w_size,Ft(Wt.head),Wt.max_lazy_match=u[Wt.level].max_lazy,Wt.good_match=u[Wt.level].good_length,Wt.nice_match=u[Wt.level].nice_length,Wt.max_chain_length=u[Wt.level].max_chain,Wt.strstart=0,Wt.block_start=0,Wt.lookahead=0,Wt.insert=0,Wt.match_length=Wt.prev_length=$-1,Wt.match_available=0,Wt.ins_h=0}(W.state),Jt}function Qi(W,Jt,Wt,pt,dt,Dt){if(!W)return F;var ie=1;if(Jt===E&&(Jt=6),pt<0?(ie=0,pt=-pt):15<pt&&(ie=2,pt-=16),dt<1||R<dt||Wt!==M||pt<8||15<pt||Jt<0||9<Jt||Dt<0||L<Dt)return fe(W,F);pt===8&&(pt=9);var Kt=new di;return(W.state=Kt).strm=W,Kt.wrap=ie,Kt.gzhead=null,Kt.w_bits=pt,Kt.w_size=1<<Kt.w_bits,Kt.w_mask=Kt.w_size-1,Kt.hash_bits=dt+7,Kt.hash_size=1<<Kt.hash_bits,Kt.hash_mask=Kt.hash_size-1,Kt.hash_shift=~~((Kt.hash_bits+$-1)/$),Kt.window=new m.Buf8(2*Kt.w_size),Kt.head=new m.Buf16(Kt.hash_size),Kt.prev=new m.Buf16(Kt.w_size),Kt.lit_bufsize=1<<dt+6,Kt.pending_buf_size=4*Kt.lit_bufsize,Kt.pending_buf=new m.Buf8(Kt.pending_buf_size),Kt.d_buf=1*Kt.lit_bufsize,Kt.l_buf=3*Kt.lit_bufsize,Kt.level=Jt,Kt.strategy=Dt,Kt.method=Wt,mn(W)}u=[new Ge(0,0,0,0,function(W,Jt){var Wt=65535;for(Wt>W.pending_buf_size-5&&(Wt=W.pending_buf_size-5);;){if(W.lookahead<=1){if($e(W),W.lookahead===0&&Jt===I)return G;if(W.lookahead===0)break}W.strstart+=W.lookahead,W.lookahead=0;var pt=W.block_start+Wt;if((W.strstart===0||W.strstart>=pt)&&(W.lookahead=W.strstart-pt,W.strstart=pt,Bt(W,!1),W.strm.avail_out===0)||W.strstart-W.block_start>=W.w_size-It&&(Bt(W,!1),W.strm.avail_out===0))return G}return W.insert=0,Jt===k?(Bt(W,!0),W.strm.avail_out===0?Et:Ct):(W.strstart>W.block_start&&(Bt(W,!1),W.strm.avail_out),G)}),new Ge(4,4,8,4,Oi),new Ge(4,5,16,8,Oi),new Ge(4,6,32,32,Oi),new Ge(4,4,16,16,Oe),new Ge(8,16,32,32,Oe),new Ge(8,16,128,128,Oe),new Ge(8,32,128,256,Oe),new Ge(32,128,258,1024,Oe),new Ge(32,258,258,4096,Oe)],d.deflateInit=function(W,Jt){return Qi(W,Jt,M,15,8,0)},d.deflateInit2=Qi,d.deflateReset=mn,d.deflateResetKeep=Ii,d.deflateSetHeader=function(W,Jt){return W&&W.state?W.state.wrap!==2?F:(W.state.gzhead=Jt,D):F},d.deflate=function(W,Jt){var Wt,pt,dt,Dt;if(!W||!W.state||5<Jt||Jt<0)return W?fe(W,F):F;if(pt=W.state,!W.output||!W.input&&W.avail_in!==0||pt.status===666&&Jt!==k)return fe(W,W.avail_out===0?-5:F);if(pt.strm=W,Wt=pt.last_flush,pt.last_flush=Jt,pt.status===et)if(pt.wrap===2)W.adler=0,ke(pt,31),ke(pt,139),ke(pt,8),pt.gzhead?(ke(pt,(pt.gzhead.text?1:0)+(pt.gzhead.hcrc?2:0)+(pt.gzhead.extra?4:0)+(pt.gzhead.name?8:0)+(pt.gzhead.comment?16:0)),ke(pt,255&pt.gzhead.time),ke(pt,pt.gzhead.time>>8&255),ke(pt,pt.gzhead.time>>16&255),ke(pt,pt.gzhead.time>>24&255),ke(pt,pt.level===9?2:2<=pt.strategy||pt.level<2?4:0),ke(pt,255&pt.gzhead.os),pt.gzhead.extra&&pt.gzhead.extra.length&&(ke(pt,255&pt.gzhead.extra.length),ke(pt,pt.gzhead.extra.length>>8&255)),pt.gzhead.hcrc&&(W.adler=S(W.adler,pt.pending_buf,pt.pending,0)),pt.gzindex=0,pt.status=69):(ke(pt,0),ke(pt,0),ke(pt,0),ke(pt,0),ke(pt,0),ke(pt,pt.level===9?2:2<=pt.strategy||pt.level<2?4:0),ke(pt,3),pt.status=yt);else{var ie=M+(pt.w_bits-8<<4)<<8;ie|=(2<=pt.strategy||pt.level<2?0:pt.level<6?1:pt.level===6?2:3)<<6,pt.strstart!==0&&(ie|=32),ie+=31-ie%31,pt.status=yt,ce(pt,ie),pt.strstart!==0&&(ce(pt,W.adler>>>16),ce(pt,65535&W.adler)),W.adler=1}if(pt.status===69)if(pt.gzhead.extra){for(dt=pt.pending;pt.gzindex<(65535&pt.gzhead.extra.length)&&(pt.pending!==pt.pending_buf_size||(pt.gzhead.hcrc&&pt.pending>dt&&(W.adler=S(W.adler,pt.pending_buf,pt.pending-dt,dt)),Ot(W),dt=pt.pending,pt.pending!==pt.pending_buf_size));)ke(pt,255&pt.gzhead.extra[pt.gzindex]),pt.gzindex++;pt.gzhead.hcrc&&pt.pending>dt&&(W.adler=S(W.adler,pt.pending_buf,pt.pending-dt,dt)),pt.gzindex===pt.gzhead.extra.length&&(pt.gzindex=0,pt.status=73)}else pt.status=73;if(pt.status===73)if(pt.gzhead.name){dt=pt.pending;do{if(pt.pending===pt.pending_buf_size&&(pt.gzhead.hcrc&&pt.pending>dt&&(W.adler=S(W.adler,pt.pending_buf,pt.pending-dt,dt)),Ot(W),dt=pt.pending,pt.pending===pt.pending_buf_size)){Dt=1;break}Dt=pt.gzindex<pt.gzhead.name.length?255&pt.gzhead.name.charCodeAt(pt.gzindex++):0,ke(pt,Dt)}while(Dt!==0);pt.gzhead.hcrc&&pt.pending>dt&&(W.adler=S(W.adler,pt.pending_buf,pt.pending-dt,dt)),Dt===0&&(pt.gzindex=0,pt.status=91)}else pt.status=91;if(pt.status===91)if(pt.gzhead.comment){dt=pt.pending;do{if(pt.pending===pt.pending_buf_size&&(pt.gzhead.hcrc&&pt.pending>dt&&(W.adler=S(W.adler,pt.pending_buf,pt.pending-dt,dt)),Ot(W),dt=pt.pending,pt.pending===pt.pending_buf_size)){Dt=1;break}Dt=pt.gzindex<pt.gzhead.comment.length?255&pt.gzhead.comment.charCodeAt(pt.gzindex++):0,ke(pt,Dt)}while(Dt!==0);pt.gzhead.hcrc&&pt.pending>dt&&(W.adler=S(W.adler,pt.pending_buf,pt.pending-dt,dt)),Dt===0&&(pt.status=103)}else pt.status=103;if(pt.status===103&&(pt.gzhead.hcrc?(pt.pending+2>pt.pending_buf_size&&Ot(W),pt.pending+2<=pt.pending_buf_size&&(ke(pt,255&W.adler),ke(pt,W.adler>>8&255),W.adler=0,pt.status=yt)):pt.status=yt),pt.pending!==0){if(Ot(W),W.avail_out===0)return pt.last_flush=-1,D}else if(W.avail_in===0&&re(Jt)<=re(Wt)&&Jt!==k)return fe(W,-5);if(pt.status===666&&W.avail_in!==0)return fe(W,-5);if(W.avail_in!==0||pt.lookahead!==0||Jt!==I&&pt.status!==666){var Kt=pt.strategy===2?function(z,Q){for(var ot;;){if(z.lookahead===0&&($e(z),z.lookahead===0)){if(Q===I)return G;break}if(z.match_length=0,ot=_._tr_tally(z,0,z.window[z.strstart]),z.lookahead--,z.strstart++,ot&&(Bt(z,!1),z.strm.avail_out===0))return G}return z.insert=0,Q===k?(Bt(z,!0),z.strm.avail_out===0?Et:Ct):z.last_lit&&(Bt(z,!1),z.strm.avail_out===0)?G:Pt}(pt,Jt):pt.strategy===3?function(z,Q){for(var ot,nt,vt,Gt,Xt=z.window;;){if(z.lookahead<=ct){if($e(z),z.lookahead<=ct&&Q===I)return G;if(z.lookahead===0)break}if(z.match_length=0,z.lookahead>=$&&0<z.strstart&&(nt=Xt[vt=z.strstart-1])===Xt[++vt]&&nt===Xt[++vt]&&nt===Xt[++vt]){Gt=z.strstart+ct;do;while(nt===Xt[++vt]&&nt===Xt[++vt]&&nt===Xt[++vt]&&nt===Xt[++vt]&&nt===Xt[++vt]&&nt===Xt[++vt]&&nt===Xt[++vt]&&nt===Xt[++vt]&&vt<Gt);z.match_length=ct-(Gt-vt),z.match_length>z.lookahead&&(z.match_length=z.lookahead)}if(z.match_length>=$?(ot=_._tr_tally(z,1,z.match_length-$),z.lookahead-=z.match_length,z.strstart+=z.match_length,z.match_length=0):(ot=_._tr_tally(z,0,z.window[z.strstart]),z.lookahead--,z.strstart++),ot&&(Bt(z,!1),z.strm.avail_out===0))return G}return z.insert=0,Q===k?(Bt(z,!0),z.strm.avail_out===0?Et:Ct):z.last_lit&&(Bt(z,!1),z.strm.avail_out===0)?G:Pt}(pt,Jt):u[pt.level].func(pt,Jt);if(Kt!==Et&&Kt!==Ct||(pt.status=666),Kt===G||Kt===Et)return W.avail_out===0&&(pt.last_flush=-1),D;if(Kt===Pt&&(Jt===1?_._tr_align(pt):Jt!==5&&(_._tr_stored_block(pt,0,0,!1),Jt===3&&(Ft(pt.head),pt.lookahead===0&&(pt.strstart=0,pt.block_start=0,pt.insert=0))),Ot(W),W.avail_out===0))return pt.last_flush=-1,D}return Jt!==k?D:pt.wrap<=0?1:(pt.wrap===2?(ke(pt,255&W.adler),ke(pt,W.adler>>8&255),ke(pt,W.adler>>16&255),ke(pt,W.adler>>24&255),ke(pt,255&W.total_in),ke(pt,W.total_in>>8&255),ke(pt,W.total_in>>16&255),ke(pt,W.total_in>>24&255)):(ce(pt,W.adler>>>16),ce(pt,65535&W.adler)),Ot(W),0<pt.wrap&&(pt.wrap=-pt.wrap),pt.pending!==0?D:1)},d.deflateEnd=function(W){var Jt;return W&&W.state?(Jt=W.state.status)!==et&&Jt!==69&&Jt!==73&&Jt!==91&&Jt!==103&&Jt!==yt&&Jt!==666?fe(W,F):(W.state=null,Jt===yt?fe(W,-3):D):F},d.deflateSetDictionary=function(W,Jt){var Wt,pt,dt,Dt,ie,Kt,z,Q,ot=Jt.length;if(!W||!W.state||(Dt=(Wt=W.state).wrap)===2||Dt===1&&Wt.status!==et||Wt.lookahead)return F;for(Dt===1&&(W.adler=y(W.adler,Jt,ot,0)),Wt.wrap=0,ot>=Wt.w_size&&(Dt===0&&(Ft(Wt.head),Wt.strstart=0,Wt.block_start=0,Wt.insert=0),Q=new m.Buf8(Wt.w_size),m.arraySet(Q,Jt,ot-Wt.w_size,Wt.w_size,0),Jt=Q,ot=Wt.w_size),ie=W.avail_in,Kt=W.next_in,z=W.input,W.avail_in=ot,W.next_in=0,W.input=Jt,$e(Wt);Wt.lookahead>=$;){for(pt=Wt.strstart,dt=Wt.lookahead-($-1);Wt.ins_h=(Wt.ins_h<<Wt.hash_shift^Wt.window[pt+$-1])&Wt.hash_mask,Wt.prev[pt&Wt.w_mask]=Wt.head[Wt.ins_h],Wt.head[Wt.ins_h]=pt,pt++,--dt;);Wt.strstart=pt,Wt.lookahead=$-1,$e(Wt)}return Wt.strstart+=Wt.lookahead,Wt.block_start=Wt.strstart,Wt.insert=Wt.lookahead,Wt.lookahead=0,Wt.match_length=Wt.prev_length=$-1,Wt.match_available=0,W.next_in=Kt,W.input=z,W.avail_in=ie,Wt.wrap=Dt,D},d.deflateInfo="pako deflate (from Nodeca project)"},{"../utils/common":41,"./adler32":43,"./crc32":45,"./messages":51,"./trees":52}],47:[function(o,c,d){c.exports=function(){this.text=0,this.time=0,this.xflags=0,this.os=0,this.extra=null,this.extra_len=0,this.name="",this.comment="",this.hcrc=0,this.done=!1}},{}],48:[function(o,c,d){c.exports=function(u,m){var _,y,S,A,I,k,D,F,E,L,T,M,R,b,U,N,j,J,$,ct,It,et,yt,G,Pt;_=u.state,y=u.next_in,G=u.input,S=y+(u.avail_in-5),A=u.next_out,Pt=u.output,I=A-(m-u.avail_out),k=A+(u.avail_out-257),D=_.dmax,F=_.wsize,E=_.whave,L=_.wnext,T=_.window,M=_.hold,R=_.bits,b=_.lencode,U=_.distcode,N=(1<<_.lenbits)-1,j=(1<<_.distbits)-1;t:do{R<15&&(M+=G[y++]<<R,R+=8,M+=G[y++]<<R,R+=8),J=b[M&N];e:for(;;){if(M>>>=$=J>>>24,R-=$,($=J>>>16&255)===0)Pt[A++]=65535&J;else{if(!(16&$)){if(!(64&$)){J=b[(65535&J)+(M&(1<<$)-1)];continue e}if(32&$){_.mode=12;break t}u.msg="invalid literal/length code",_.mode=30;break t}ct=65535&J,($&=15)&&(R<$&&(M+=G[y++]<<R,R+=8),ct+=M&(1<<$)-1,M>>>=$,R-=$),R<15&&(M+=G[y++]<<R,R+=8,M+=G[y++]<<R,R+=8),J=U[M&j];i:for(;;){if(M>>>=$=J>>>24,R-=$,!(16&($=J>>>16&255))){if(!(64&$)){J=U[(65535&J)+(M&(1<<$)-1)];continue i}u.msg="invalid distance code",_.mode=30;break t}if(It=65535&J,R<($&=15)&&(M+=G[y++]<<R,(R+=8)<$&&(M+=G[y++]<<R,R+=8)),D<(It+=M&(1<<$)-1)){u.msg="invalid distance too far back",_.mode=30;break t}if(M>>>=$,R-=$,($=A-I)<It){if(E<($=It-$)&&_.sane){u.msg="invalid distance too far back",_.mode=30;break t}if(yt=T,(et=0)===L){if(et+=F-$,$<ct){for(ct-=$;Pt[A++]=T[et++],--$;);et=A-It,yt=Pt}}else if(L<$){if(et+=F+L-$,($-=L)<ct){for(ct-=$;Pt[A++]=T[et++],--$;);if(et=0,L<ct){for(ct-=$=L;Pt[A++]=T[et++],--$;);et=A-It,yt=Pt}}}else if(et+=L-$,$<ct){for(ct-=$;Pt[A++]=T[et++],--$;);et=A-It,yt=Pt}for(;2<ct;)Pt[A++]=yt[et++],Pt[A++]=yt[et++],Pt[A++]=yt[et++],ct-=3;ct&&(Pt[A++]=yt[et++],1<ct&&(Pt[A++]=yt[et++]))}else{for(et=A-It;Pt[A++]=Pt[et++],Pt[A++]=Pt[et++],Pt[A++]=Pt[et++],2<(ct-=3););ct&&(Pt[A++]=Pt[et++],1<ct&&(Pt[A++]=Pt[et++]))}break}}break}}while(y<S&&A<k);y-=ct=R>>3,M&=(1<<(R-=ct<<3))-1,u.next_in=y,u.next_out=A,u.avail_in=y<S?S-y+5:5-(y-S),u.avail_out=A<k?k-A+257:257-(A-k),_.hold=M,_.bits=R}},{}],49:[function(o,c,d){var u=o("../utils/common"),m=o("./adler32"),_=o("./crc32"),y=o("./inffast"),S=o("./inftrees"),A=1,I=2,k=0,D=-2,F=1,E=852,L=592;function T(et){return(et>>>24&255)+(et>>>8&65280)+((65280&et)<<8)+((255&et)<<24)}function M(){this.mode=0,this.last=!1,this.wrap=0,this.havedict=!1,this.flags=0,this.dmax=0,this.check=0,this.total=0,this.head=null,this.wbits=0,this.wsize=0,this.whave=0,this.wnext=0,this.window=null,this.hold=0,this.bits=0,this.length=0,this.offset=0,this.extra=0,this.lencode=null,this.distcode=null,this.lenbits=0,this.distbits=0,this.ncode=0,this.nlen=0,this.ndist=0,this.have=0,this.next=null,this.lens=new u.Buf16(320),this.work=new u.Buf16(288),this.lendyn=null,this.distdyn=null,this.sane=0,this.back=0,this.was=0}function R(et){var yt;return et&&et.state?(yt=et.state,et.total_in=et.total_out=yt.total=0,et.msg="",yt.wrap&&(et.adler=1&yt.wrap),yt.mode=F,yt.last=0,yt.havedict=0,yt.dmax=32768,yt.head=null,yt.hold=0,yt.bits=0,yt.lencode=yt.lendyn=new u.Buf32(E),yt.distcode=yt.distdyn=new u.Buf32(L),yt.sane=1,yt.back=-1,k):D}function b(et){var yt;return et&&et.state?((yt=et.state).wsize=0,yt.whave=0,yt.wnext=0,R(et)):D}function U(et,yt){var G,Pt;return et&&et.state?(Pt=et.state,yt<0?(G=0,yt=-yt):(G=1+(yt>>4),yt<48&&(yt&=15)),yt&&(yt<8||15<yt)?D:(Pt.window!==null&&Pt.wbits!==yt&&(Pt.window=null),Pt.wrap=G,Pt.wbits=yt,b(et))):D}function N(et,yt){var G,Pt;return et?(Pt=new M,(et.state=Pt).window=null,(G=U(et,yt))!==k&&(et.state=null),G):D}var j,J,$=!0;function ct(et){if($){var yt;for(j=new u.Buf32(512),J=new u.Buf32(32),yt=0;yt<144;)et.lens[yt++]=8;for(;yt<256;)et.lens[yt++]=9;for(;yt<280;)et.lens[yt++]=7;for(;yt<288;)et.lens[yt++]=8;for(S(A,et.lens,0,288,j,0,et.work,{bits:9}),yt=0;yt<32;)et.lens[yt++]=5;S(I,et.lens,0,32,J,0,et.work,{bits:5}),$=!1}et.lencode=j,et.lenbits=9,et.distcode=J,et.distbits=5}function It(et,yt,G,Pt){var Et,Ct=et.state;return Ct.window===null&&(Ct.wsize=1<<Ct.wbits,Ct.wnext=0,Ct.whave=0,Ct.window=new u.Buf8(Ct.wsize)),Pt>=Ct.wsize?(u.arraySet(Ct.window,yt,G-Ct.wsize,Ct.wsize,0),Ct.wnext=0,Ct.whave=Ct.wsize):(Pt<(Et=Ct.wsize-Ct.wnext)&&(Et=Pt),u.arraySet(Ct.window,yt,G-Pt,Et,Ct.wnext),(Pt-=Et)?(u.arraySet(Ct.window,yt,G-Pt,Pt,0),Ct.wnext=Pt,Ct.whave=Ct.wsize):(Ct.wnext+=Et,Ct.wnext===Ct.wsize&&(Ct.wnext=0),Ct.whave<Ct.wsize&&(Ct.whave+=Et))),0}d.inflateReset=b,d.inflateReset2=U,d.inflateResetKeep=R,d.inflateInit=function(et){return N(et,15)},d.inflateInit2=N,d.inflate=function(et,yt){var G,Pt,Et,Ct,fe,re,Ft,Ot,Bt,ke,ce,Yt,$e,Oi,Oe,Ge,di,Ii,mn,Qi,W,Jt,Wt,pt,dt=0,Dt=new u.Buf8(4),ie=[16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15];if(!et||!et.state||!et.output||!et.input&&et.avail_in!==0)return D;(G=et.state).mode===12&&(G.mode=13),fe=et.next_out,Et=et.output,Ft=et.avail_out,Ct=et.next_in,Pt=et.input,re=et.avail_in,Ot=G.hold,Bt=G.bits,ke=re,ce=Ft,Jt=k;t:for(;;)switch(G.mode){case F:if(G.wrap===0){G.mode=13;break}for(;Bt<16;){if(re===0)break t;re--,Ot+=Pt[Ct++]<<Bt,Bt+=8}if(2&G.wrap&&Ot===35615){Dt[G.check=0]=255&Ot,Dt[1]=Ot>>>8&255,G.check=_(G.check,Dt,2,0),Bt=Ot=0,G.mode=2;break}if(G.flags=0,G.head&&(G.head.done=!1),!(1&G.wrap)||(((255&Ot)<<8)+(Ot>>8))%31){et.msg="incorrect header check",G.mode=30;break}if((15&Ot)!=8){et.msg="unknown compression method",G.mode=30;break}if(Bt-=4,W=8+(15&(Ot>>>=4)),G.wbits===0)G.wbits=W;else if(W>G.wbits){et.msg="invalid window size",G.mode=30;break}G.dmax=1<<W,et.adler=G.check=1,G.mode=512&Ot?10:12,Bt=Ot=0;break;case 2:for(;Bt<16;){if(re===0)break t;re--,Ot+=Pt[Ct++]<<Bt,Bt+=8}if(G.flags=Ot,(255&G.flags)!=8){et.msg="unknown compression method",G.mode=30;break}if(57344&G.flags){et.msg="unknown header flags set",G.mode=30;break}G.head&&(G.head.text=Ot>>8&1),512&G.flags&&(Dt[0]=255&Ot,Dt[1]=Ot>>>8&255,G.check=_(G.check,Dt,2,0)),Bt=Ot=0,G.mode=3;case 3:for(;Bt<32;){if(re===0)break t;re--,Ot+=Pt[Ct++]<<Bt,Bt+=8}G.head&&(G.head.time=Ot),512&G.flags&&(Dt[0]=255&Ot,Dt[1]=Ot>>>8&255,Dt[2]=Ot>>>16&255,Dt[3]=Ot>>>24&255,G.check=_(G.check,Dt,4,0)),Bt=Ot=0,G.mode=4;case 4:for(;Bt<16;){if(re===0)break t;re--,Ot+=Pt[Ct++]<<Bt,Bt+=8}G.head&&(G.head.xflags=255&Ot,G.head.os=Ot>>8),512&G.flags&&(Dt[0]=255&Ot,Dt[1]=Ot>>>8&255,G.check=_(G.check,Dt,2,0)),Bt=Ot=0,G.mode=5;case 5:if(1024&G.flags){for(;Bt<16;){if(re===0)break t;re--,Ot+=Pt[Ct++]<<Bt,Bt+=8}G.length=Ot,G.head&&(G.head.extra_len=Ot),512&G.flags&&(Dt[0]=255&Ot,Dt[1]=Ot>>>8&255,G.check=_(G.check,Dt,2,0)),Bt=Ot=0}else G.head&&(G.head.extra=null);G.mode=6;case 6:if(1024&G.flags&&(re<(Yt=G.length)&&(Yt=re),Yt&&(G.head&&(W=G.head.extra_len-G.length,G.head.extra||(G.head.extra=new Array(G.head.extra_len)),u.arraySet(G.head.extra,Pt,Ct,Yt,W)),512&G.flags&&(G.check=_(G.check,Pt,Yt,Ct)),re-=Yt,Ct+=Yt,G.length-=Yt),G.length))break t;G.length=0,G.mode=7;case 7:if(2048&G.flags){if(re===0)break t;for(Yt=0;W=Pt[Ct+Yt++],G.head&&W&&G.length<65536&&(G.head.name+=String.fromCharCode(W)),W&&Yt<re;);if(512&G.flags&&(G.check=_(G.check,Pt,Yt,Ct)),re-=Yt,Ct+=Yt,W)break t}else G.head&&(G.head.name=null);G.length=0,G.mode=8;case 8:if(4096&G.flags){if(re===0)break t;for(Yt=0;W=Pt[Ct+Yt++],G.head&&W&&G.length<65536&&(G.head.comment+=String.fromCharCode(W)),W&&Yt<re;);if(512&G.flags&&(G.check=_(G.check,Pt,Yt,Ct)),re-=Yt,Ct+=Yt,W)break t}else G.head&&(G.head.comment=null);G.mode=9;case 9:if(512&G.flags){for(;Bt<16;){if(re===0)break t;re--,Ot+=Pt[Ct++]<<Bt,Bt+=8}if(Ot!==(65535&G.check)){et.msg="header crc mismatch",G.mode=30;break}Bt=Ot=0}G.head&&(G.head.hcrc=G.flags>>9&1,G.head.done=!0),et.adler=G.check=0,G.mode=12;break;case 10:for(;Bt<32;){if(re===0)break t;re--,Ot+=Pt[Ct++]<<Bt,Bt+=8}et.adler=G.check=T(Ot),Bt=Ot=0,G.mode=11;case 11:if(G.havedict===0)return et.next_out=fe,et.avail_out=Ft,et.next_in=Ct,et.avail_in=re,G.hold=Ot,G.bits=Bt,2;et.adler=G.check=1,G.mode=12;case 12:if(yt===5||yt===6)break t;case 13:if(G.last){Ot>>>=7&Bt,Bt-=7&Bt,G.mode=27;break}for(;Bt<3;){if(re===0)break t;re--,Ot+=Pt[Ct++]<<Bt,Bt+=8}switch(G.last=1&Ot,Bt-=1,3&(Ot>>>=1)){case 0:G.mode=14;break;case 1:if(ct(G),G.mode=20,yt!==6)break;Ot>>>=2,Bt-=2;break t;case 2:G.mode=17;break;case 3:et.msg="invalid block type",G.mode=30}Ot>>>=2,Bt-=2;break;case 14:for(Ot>>>=7&Bt,Bt-=7&Bt;Bt<32;){if(re===0)break t;re--,Ot+=Pt[Ct++]<<Bt,Bt+=8}if((65535&Ot)!=(Ot>>>16^65535)){et.msg="invalid stored block lengths",G.mode=30;break}if(G.length=65535&Ot,Bt=Ot=0,G.mode=15,yt===6)break t;case 15:G.mode=16;case 16:if(Yt=G.length){if(re<Yt&&(Yt=re),Ft<Yt&&(Yt=Ft),Yt===0)break t;u.arraySet(Et,Pt,Ct,Yt,fe),re-=Yt,Ct+=Yt,Ft-=Yt,fe+=Yt,G.length-=Yt;break}G.mode=12;break;case 17:for(;Bt<14;){if(re===0)break t;re--,Ot+=Pt[Ct++]<<Bt,Bt+=8}if(G.nlen=257+(31&Ot),Ot>>>=5,Bt-=5,G.ndist=1+(31&Ot),Ot>>>=5,Bt-=5,G.ncode=4+(15&Ot),Ot>>>=4,Bt-=4,286<G.nlen||30<G.ndist){et.msg="too many length or distance symbols",G.mode=30;break}G.have=0,G.mode=18;case 18:for(;G.have<G.ncode;){for(;Bt<3;){if(re===0)break t;re--,Ot+=Pt[Ct++]<<Bt,Bt+=8}G.lens[ie[G.have++]]=7&Ot,Ot>>>=3,Bt-=3}for(;G.have<19;)G.lens[ie[G.have++]]=0;if(G.lencode=G.lendyn,G.lenbits=7,Wt={bits:G.lenbits},Jt=S(0,G.lens,0,19,G.lencode,0,G.work,Wt),G.lenbits=Wt.bits,Jt){et.msg="invalid code lengths set",G.mode=30;break}G.have=0,G.mode=19;case 19:for(;G.have<G.nlen+G.ndist;){for(;Ge=(dt=G.lencode[Ot&(1<<G.lenbits)-1])>>>16&255,di=65535&dt,!((Oe=dt>>>24)<=Bt);){if(re===0)break t;re--,Ot+=Pt[Ct++]<<Bt,Bt+=8}if(di<16)Ot>>>=Oe,Bt-=Oe,G.lens[G.have++]=di;else{if(di===16){for(pt=Oe+2;Bt<pt;){if(re===0)break t;re--,Ot+=Pt[Ct++]<<Bt,Bt+=8}if(Ot>>>=Oe,Bt-=Oe,G.have===0){et.msg="invalid bit length repeat",G.mode=30;break}W=G.lens[G.have-1],Yt=3+(3&Ot),Ot>>>=2,Bt-=2}else if(di===17){for(pt=Oe+3;Bt<pt;){if(re===0)break t;re--,Ot+=Pt[Ct++]<<Bt,Bt+=8}Bt-=Oe,W=0,Yt=3+(7&(Ot>>>=Oe)),Ot>>>=3,Bt-=3}else{for(pt=Oe+7;Bt<pt;){if(re===0)break t;re--,Ot+=Pt[Ct++]<<Bt,Bt+=8}Bt-=Oe,W=0,Yt=11+(127&(Ot>>>=Oe)),Ot>>>=7,Bt-=7}if(G.have+Yt>G.nlen+G.ndist){et.msg="invalid bit length repeat",G.mode=30;break}for(;Yt--;)G.lens[G.have++]=W}}if(G.mode===30)break;if(G.lens[256]===0){et.msg="invalid code -- missing end-of-block",G.mode=30;break}if(G.lenbits=9,Wt={bits:G.lenbits},Jt=S(A,G.lens,0,G.nlen,G.lencode,0,G.work,Wt),G.lenbits=Wt.bits,Jt){et.msg="invalid literal/lengths set",G.mode=30;break}if(G.distbits=6,G.distcode=G.distdyn,Wt={bits:G.distbits},Jt=S(I,G.lens,G.nlen,G.ndist,G.distcode,0,G.work,Wt),G.distbits=Wt.bits,Jt){et.msg="invalid distances set",G.mode=30;break}if(G.mode=20,yt===6)break t;case 20:G.mode=21;case 21:if(6<=re&&258<=Ft){et.next_out=fe,et.avail_out=Ft,et.next_in=Ct,et.avail_in=re,G.hold=Ot,G.bits=Bt,y(et,ce),fe=et.next_out,Et=et.output,Ft=et.avail_out,Ct=et.next_in,Pt=et.input,re=et.avail_in,Ot=G.hold,Bt=G.bits,G.mode===12&&(G.back=-1);break}for(G.back=0;Ge=(dt=G.lencode[Ot&(1<<G.lenbits)-1])>>>16&255,di=65535&dt,!((Oe=dt>>>24)<=Bt);){if(re===0)break t;re--,Ot+=Pt[Ct++]<<Bt,Bt+=8}if(Ge&&!(240&Ge)){for(Ii=Oe,mn=Ge,Qi=di;Ge=(dt=G.lencode[Qi+((Ot&(1<<Ii+mn)-1)>>Ii)])>>>16&255,di=65535&dt,!(Ii+(Oe=dt>>>24)<=Bt);){if(re===0)break t;re--,Ot+=Pt[Ct++]<<Bt,Bt+=8}Ot>>>=Ii,Bt-=Ii,G.back+=Ii}if(Ot>>>=Oe,Bt-=Oe,G.back+=Oe,G.length=di,Ge===0){G.mode=26;break}if(32&Ge){G.back=-1,G.mode=12;break}if(64&Ge){et.msg="invalid literal/length code",G.mode=30;break}G.extra=15&Ge,G.mode=22;case 22:if(G.extra){for(pt=G.extra;Bt<pt;){if(re===0)break t;re--,Ot+=Pt[Ct++]<<Bt,Bt+=8}G.length+=Ot&(1<<G.extra)-1,Ot>>>=G.extra,Bt-=G.extra,G.back+=G.extra}G.was=G.length,G.mode=23;case 23:for(;Ge=(dt=G.distcode[Ot&(1<<G.distbits)-1])>>>16&255,di=65535&dt,!((Oe=dt>>>24)<=Bt);){if(re===0)break t;re--,Ot+=Pt[Ct++]<<Bt,Bt+=8}if(!(240&Ge)){for(Ii=Oe,mn=Ge,Qi=di;Ge=(dt=G.distcode[Qi+((Ot&(1<<Ii+mn)-1)>>Ii)])>>>16&255,di=65535&dt,!(Ii+(Oe=dt>>>24)<=Bt);){if(re===0)break t;re--,Ot+=Pt[Ct++]<<Bt,Bt+=8}Ot>>>=Ii,Bt-=Ii,G.back+=Ii}if(Ot>>>=Oe,Bt-=Oe,G.back+=Oe,64&Ge){et.msg="invalid distance code",G.mode=30;break}G.offset=di,G.extra=15&Ge,G.mode=24;case 24:if(G.extra){for(pt=G.extra;Bt<pt;){if(re===0)break t;re--,Ot+=Pt[Ct++]<<Bt,Bt+=8}G.offset+=Ot&(1<<G.extra)-1,Ot>>>=G.extra,Bt-=G.extra,G.back+=G.extra}if(G.offset>G.dmax){et.msg="invalid distance too far back",G.mode=30;break}G.mode=25;case 25:if(Ft===0)break t;if(Yt=ce-Ft,G.offset>Yt){if((Yt=G.offset-Yt)>G.whave&&G.sane){et.msg="invalid distance too far back",G.mode=30;break}$e=Yt>G.wnext?(Yt-=G.wnext,G.wsize-Yt):G.wnext-Yt,Yt>G.length&&(Yt=G.length),Oi=G.window}else Oi=Et,$e=fe-G.offset,Yt=G.length;for(Ft<Yt&&(Yt=Ft),Ft-=Yt,G.length-=Yt;Et[fe++]=Oi[$e++],--Yt;);G.length===0&&(G.mode=21);break;case 26:if(Ft===0)break t;Et[fe++]=G.length,Ft--,G.mode=21;break;case 27:if(G.wrap){for(;Bt<32;){if(re===0)break t;re--,Ot|=Pt[Ct++]<<Bt,Bt+=8}if(ce-=Ft,et.total_out+=ce,G.total+=ce,ce&&(et.adler=G.check=G.flags?_(G.check,Et,ce,fe-ce):m(G.check,Et,ce,fe-ce)),ce=Ft,(G.flags?Ot:T(Ot))!==G.check){et.msg="incorrect data check",G.mode=30;break}Bt=Ot=0}G.mode=28;case 28:if(G.wrap&&G.flags){for(;Bt<32;){if(re===0)break t;re--,Ot+=Pt[Ct++]<<Bt,Bt+=8}if(Ot!==(4294967295&G.total)){et.msg="incorrect length check",G.mode=30;break}Bt=Ot=0}G.mode=29;case 29:Jt=1;break t;case 30:Jt=-3;break t;case 31:return-4;case 32:default:return D}return et.next_out=fe,et.avail_out=Ft,et.next_in=Ct,et.avail_in=re,G.hold=Ot,G.bits=Bt,(G.wsize||ce!==et.avail_out&&G.mode<30&&(G.mode<27||yt!==4))&&It(et,et.output,et.next_out,ce-et.avail_out)?(G.mode=31,-4):(ke-=et.avail_in,ce-=et.avail_out,et.total_in+=ke,et.total_out+=ce,G.total+=ce,G.wrap&&ce&&(et.adler=G.check=G.flags?_(G.check,Et,ce,et.next_out-ce):m(G.check,Et,ce,et.next_out-ce)),et.data_type=G.bits+(G.last?64:0)+(G.mode===12?128:0)+(G.mode===20||G.mode===15?256:0),(ke==0&&ce===0||yt===4)&&Jt===k&&(Jt=-5),Jt)},d.inflateEnd=function(et){if(!et||!et.state)return D;var yt=et.state;return yt.window&&(yt.window=null),et.state=null,k},d.inflateGetHeader=function(et,yt){var G;return et&&et.state&&2&(G=et.state).wrap?((G.head=yt).done=!1,k):D},d.inflateSetDictionary=function(et,yt){var G,Pt=yt.length;return et&&et.state?(G=et.state).wrap!==0&&G.mode!==11?D:G.mode===11&&m(1,yt,Pt,0)!==G.check?-3:It(et,yt,Pt,Pt)?(G.mode=31,-4):(G.havedict=1,k):D},d.inflateInfo="pako inflate (from Nodeca project)"},{"../utils/common":41,"./adler32":43,"./crc32":45,"./inffast":48,"./inftrees":50}],50:[function(o,c,d){var u=o("../utils/common"),m=[3,4,5,6,7,8,9,10,11,13,15,17,19,23,27,31,35,43,51,59,67,83,99,115,131,163,195,227,258,0,0],_=[16,16,16,16,16,16,16,16,17,17,17,17,18,18,18,18,19,19,19,19,20,20,20,20,21,21,21,21,16,72,78],y=[1,2,3,4,5,7,9,13,17,25,33,49,65,97,129,193,257,385,513,769,1025,1537,2049,3073,4097,6145,8193,12289,16385,24577,0,0],S=[16,16,16,16,17,17,18,18,19,19,20,20,21,21,22,22,23,23,24,24,25,25,26,26,27,27,28,28,29,29,64,64];c.exports=function(A,I,k,D,F,E,L,T){var M,R,b,U,N,j,J,$,ct,It=T.bits,et=0,yt=0,G=0,Pt=0,Et=0,Ct=0,fe=0,re=0,Ft=0,Ot=0,Bt=null,ke=0,ce=new u.Buf16(16),Yt=new u.Buf16(16),$e=null,Oi=0;for(et=0;et<=15;et++)ce[et]=0;for(yt=0;yt<D;yt++)ce[I[k+yt]]++;for(Et=It,Pt=15;1<=Pt&&ce[Pt]===0;Pt--);if(Pt<Et&&(Et=Pt),Pt===0)return F[E++]=20971520,F[E++]=20971520,T.bits=1,0;for(G=1;G<Pt&&ce[G]===0;G++);for(Et<G&&(Et=G),et=re=1;et<=15;et++)if(re<<=1,(re-=ce[et])<0)return-1;if(0<re&&(A===0||Pt!==1))return-1;for(Yt[1]=0,et=1;et<15;et++)Yt[et+1]=Yt[et]+ce[et];for(yt=0;yt<D;yt++)I[k+yt]!==0&&(L[Yt[I[k+yt]]++]=yt);if(j=A===0?(Bt=$e=L,19):A===1?(Bt=m,ke-=257,$e=_,Oi-=257,256):(Bt=y,$e=S,-1),et=G,N=E,fe=yt=Ot=0,b=-1,U=(Ft=1<<(Ct=Et))-1,A===1&&852<Ft||A===2&&592<Ft)return 1;for(;;){for(J=et-fe,ct=L[yt]<j?($=0,L[yt]):L[yt]>j?($=$e[Oi+L[yt]],Bt[ke+L[yt]]):($=96,0),M=1<<et-fe,G=R=1<<Ct;F[N+(Ot>>fe)+(R-=M)]=J<<24|$<<16|ct|0,R!==0;);for(M=1<<et-1;Ot&M;)M>>=1;if(M!==0?(Ot&=M-1,Ot+=M):Ot=0,yt++,--ce[et]==0){if(et===Pt)break;et=I[k+L[yt]]}if(Et<et&&(Ot&U)!==b){for(fe===0&&(fe=Et),N+=G,re=1<<(Ct=et-fe);Ct+fe<Pt&&!((re-=ce[Ct+fe])<=0);)Ct++,re<<=1;if(Ft+=1<<Ct,A===1&&852<Ft||A===2&&592<Ft)return 1;F[b=Ot&U]=Et<<24|Ct<<16|N-E|0}}return Ot!==0&&(F[N+Ot]=et-fe<<24|64<<16|0),T.bits=Et,0}},{"../utils/common":41}],51:[function(o,c,d){c.exports={2:"need dictionary",1:"stream end",0:"","-1":"file error","-2":"stream error","-3":"data error","-4":"insufficient memory","-5":"buffer error","-6":"incompatible version"}},{}],52:[function(o,c,d){var u=o("../utils/common"),m=0,_=1;function y(dt){for(var Dt=dt.length;0<=--Dt;)dt[Dt]=0}var S=0,A=29,I=256,k=I+1+A,D=30,F=19,E=2*k+1,L=15,T=16,M=7,R=256,b=16,U=17,N=18,j=[0,0,0,0,0,0,0,0,1,1,1,1,2,2,2,2,3,3,3,3,4,4,4,4,5,5,5,5,0],J=[0,0,0,0,1,1,2,2,3,3,4,4,5,5,6,6,7,7,8,8,9,9,10,10,11,11,12,12,13,13],$=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,2,3,7],ct=[16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15],It=new Array(2*(k+2));y(It);var et=new Array(2*D);y(et);var yt=new Array(512);y(yt);var G=new Array(256);y(G);var Pt=new Array(A);y(Pt);var Et,Ct,fe,re=new Array(D);function Ft(dt,Dt,ie,Kt,z){this.static_tree=dt,this.extra_bits=Dt,this.extra_base=ie,this.elems=Kt,this.max_length=z,this.has_stree=dt&&dt.length}function Ot(dt,Dt){this.dyn_tree=dt,this.max_code=0,this.stat_desc=Dt}function Bt(dt){return dt<256?yt[dt]:yt[256+(dt>>>7)]}function ke(dt,Dt){dt.pending_buf[dt.pending++]=255&Dt,dt.pending_buf[dt.pending++]=Dt>>>8&255}function ce(dt,Dt,ie){dt.bi_valid>T-ie?(dt.bi_buf|=Dt<<dt.bi_valid&65535,ke(dt,dt.bi_buf),dt.bi_buf=Dt>>T-dt.bi_valid,dt.bi_valid+=ie-T):(dt.bi_buf|=Dt<<dt.bi_valid&65535,dt.bi_valid+=ie)}function Yt(dt,Dt,ie){ce(dt,ie[2*Dt],ie[2*Dt+1])}function $e(dt,Dt){for(var ie=0;ie|=1&dt,dt>>>=1,ie<<=1,0<--Dt;);return ie>>>1}function Oi(dt,Dt,ie){var Kt,z,Q=new Array(L+1),ot=0;for(Kt=1;Kt<=L;Kt++)Q[Kt]=ot=ot+ie[Kt-1]<<1;for(z=0;z<=Dt;z++){var nt=dt[2*z+1];nt!==0&&(dt[2*z]=$e(Q[nt]++,nt))}}function Oe(dt){var Dt;for(Dt=0;Dt<k;Dt++)dt.dyn_ltree[2*Dt]=0;for(Dt=0;Dt<D;Dt++)dt.dyn_dtree[2*Dt]=0;for(Dt=0;Dt<F;Dt++)dt.bl_tree[2*Dt]=0;dt.dyn_ltree[2*R]=1,dt.opt_len=dt.static_len=0,dt.last_lit=dt.matches=0}function Ge(dt){8<dt.bi_valid?ke(dt,dt.bi_buf):0<dt.bi_valid&&(dt.pending_buf[dt.pending++]=dt.bi_buf),dt.bi_buf=0,dt.bi_valid=0}function di(dt,Dt,ie,Kt){var z=2*Dt,Q=2*ie;return dt[z]<dt[Q]||dt[z]===dt[Q]&&Kt[Dt]<=Kt[ie]}function Ii(dt,Dt,ie){for(var Kt=dt.heap[ie],z=ie<<1;z<=dt.heap_len&&(z<dt.heap_len&&di(Dt,dt.heap[z+1],dt.heap[z],dt.depth)&&z++,!di(Dt,Kt,dt.heap[z],dt.depth));)dt.heap[ie]=dt.heap[z],ie=z,z<<=1;dt.heap[ie]=Kt}function mn(dt,Dt,ie){var Kt,z,Q,ot,nt=0;if(dt.last_lit!==0)for(;Kt=dt.pending_buf[dt.d_buf+2*nt]<<8|dt.pending_buf[dt.d_buf+2*nt+1],z=dt.pending_buf[dt.l_buf+nt],nt++,Kt===0?Yt(dt,z,Dt):(Yt(dt,(Q=G[z])+I+1,Dt),(ot=j[Q])!==0&&ce(dt,z-=Pt[Q],ot),Yt(dt,Q=Bt(--Kt),ie),(ot=J[Q])!==0&&ce(dt,Kt-=re[Q],ot)),nt<dt.last_lit;);Yt(dt,R,Dt)}function Qi(dt,Dt){var ie,Kt,z,Q=Dt.dyn_tree,ot=Dt.stat_desc.static_tree,nt=Dt.stat_desc.has_stree,vt=Dt.stat_desc.elems,Gt=-1;for(dt.heap_len=0,dt.heap_max=E,ie=0;ie<vt;ie++)Q[2*ie]!==0?(dt.heap[++dt.heap_len]=Gt=ie,dt.depth[ie]=0):Q[2*ie+1]=0;for(;dt.heap_len<2;)Q[2*(z=dt.heap[++dt.heap_len]=Gt<2?++Gt:0)]=1,dt.depth[z]=0,dt.opt_len--,nt&&(dt.static_len-=ot[2*z+1]);for(Dt.max_code=Gt,ie=dt.heap_len>>1;1<=ie;ie--)Ii(dt,Q,ie);for(z=vt;ie=dt.heap[1],dt.heap[1]=dt.heap[dt.heap_len--],Ii(dt,Q,1),Kt=dt.heap[1],dt.heap[--dt.heap_max]=ie,dt.heap[--dt.heap_max]=Kt,Q[2*z]=Q[2*ie]+Q[2*Kt],dt.depth[z]=(dt.depth[ie]>=dt.depth[Kt]?dt.depth[ie]:dt.depth[Kt])+1,Q[2*ie+1]=Q[2*Kt+1]=z,dt.heap[1]=z++,Ii(dt,Q,1),2<=dt.heap_len;);dt.heap[--dt.heap_max]=dt.heap[1],function(Xt,jt){var Ne,Re,ge,we,_i,Si,ni=jt.dyn_tree,Ei=jt.max_code,qr=jt.stat_desc.static_tree,or=jt.stat_desc.has_stree,on=jt.stat_desc.extra_bits,As=jt.stat_desc.extra_base,Di=jt.stat_desc.max_length,Xs=0;for(we=0;we<=L;we++)Xt.bl_count[we]=0;for(ni[2*Xt.heap[Xt.heap_max]+1]=0,Ne=Xt.heap_max+1;Ne<E;Ne++)Di<(we=ni[2*ni[2*(Re=Xt.heap[Ne])+1]+1]+1)&&(we=Di,Xs++),ni[2*Re+1]=we,Ei<Re||(Xt.bl_count[we]++,_i=0,As<=Re&&(_i=on[Re-As]),Si=ni[2*Re],Xt.opt_len+=Si*(we+_i),or&&(Xt.static_len+=Si*(qr[2*Re+1]+_i)));if(Xs!==0){do{for(we=Di-1;Xt.bl_count[we]===0;)we--;Xt.bl_count[we]--,Xt.bl_count[we+1]+=2,Xt.bl_count[Di]--,Xs-=2}while(0<Xs);for(we=Di;we!==0;we--)for(Re=Xt.bl_count[we];Re!==0;)Ei<(ge=Xt.heap[--Ne])||(ni[2*ge+1]!==we&&(Xt.opt_len+=(we-ni[2*ge+1])*ni[2*ge],ni[2*ge+1]=we),Re--)}}(dt,Dt),Oi(Q,Gt,dt.bl_count)}function W(dt,Dt,ie){var Kt,z,Q=-1,ot=Dt[1],nt=0,vt=7,Gt=4;for(ot===0&&(vt=138,Gt=3),Dt[2*(ie+1)+1]=65535,Kt=0;Kt<=ie;Kt++)z=ot,ot=Dt[2*(Kt+1)+1],++nt<vt&&z===ot||(nt<Gt?dt.bl_tree[2*z]+=nt:z!==0?(z!==Q&&dt.bl_tree[2*z]++,dt.bl_tree[2*b]++):nt<=10?dt.bl_tree[2*U]++:dt.bl_tree[2*N]++,Q=z,Gt=(nt=0)===ot?(vt=138,3):z===ot?(vt=6,3):(vt=7,4))}function Jt(dt,Dt,ie){var Kt,z,Q=-1,ot=Dt[1],nt=0,vt=7,Gt=4;for(ot===0&&(vt=138,Gt=3),Kt=0;Kt<=ie;Kt++)if(z=ot,ot=Dt[2*(Kt+1)+1],!(++nt<vt&&z===ot)){if(nt<Gt)for(;Yt(dt,z,dt.bl_tree),--nt!=0;);else z!==0?(z!==Q&&(Yt(dt,z,dt.bl_tree),nt--),Yt(dt,b,dt.bl_tree),ce(dt,nt-3,2)):nt<=10?(Yt(dt,U,dt.bl_tree),ce(dt,nt-3,3)):(Yt(dt,N,dt.bl_tree),ce(dt,nt-11,7));Q=z,Gt=(nt=0)===ot?(vt=138,3):z===ot?(vt=6,3):(vt=7,4)}}y(re);var Wt=!1;function pt(dt,Dt,ie,Kt){ce(dt,(S<<1)+(Kt?1:0),3),function(z,Q,ot,nt){Ge(z),nt&&(ke(z,ot),ke(z,~ot)),u.arraySet(z.pending_buf,z.window,Q,ot,z.pending),z.pending+=ot}(dt,Dt,ie,!0)}d._tr_init=function(dt){Wt||(function(){var Dt,ie,Kt,z,Q,ot=new Array(L+1);for(z=Kt=0;z<A-1;z++)for(Pt[z]=Kt,Dt=0;Dt<1<<j[z];Dt++)G[Kt++]=z;for(G[Kt-1]=z,z=Q=0;z<16;z++)for(re[z]=Q,Dt=0;Dt<1<<J[z];Dt++)yt[Q++]=z;for(Q>>=7;z<D;z++)for(re[z]=Q<<7,Dt=0;Dt<1<<J[z]-7;Dt++)yt[256+Q++]=z;for(ie=0;ie<=L;ie++)ot[ie]=0;for(Dt=0;Dt<=143;)It[2*Dt+1]=8,Dt++,ot[8]++;for(;Dt<=255;)It[2*Dt+1]=9,Dt++,ot[9]++;for(;Dt<=279;)It[2*Dt+1]=7,Dt++,ot[7]++;for(;Dt<=287;)It[2*Dt+1]=8,Dt++,ot[8]++;for(Oi(It,k+1,ot),Dt=0;Dt<D;Dt++)et[2*Dt+1]=5,et[2*Dt]=$e(Dt,5);Et=new Ft(It,j,I+1,k,L),Ct=new Ft(et,J,0,D,L),fe=new Ft(new Array(0),$,0,F,M)}(),Wt=!0),dt.l_desc=new Ot(dt.dyn_ltree,Et),dt.d_desc=new Ot(dt.dyn_dtree,Ct),dt.bl_desc=new Ot(dt.bl_tree,fe),dt.bi_buf=0,dt.bi_valid=0,Oe(dt)},d._tr_stored_block=pt,d._tr_flush_block=function(dt,Dt,ie,Kt){var z,Q,ot=0;0<dt.level?(dt.strm.data_type===2&&(dt.strm.data_type=function(nt){var vt,Gt=4093624447;for(vt=0;vt<=31;vt++,Gt>>>=1)if(1&Gt&&nt.dyn_ltree[2*vt]!==0)return m;if(nt.dyn_ltree[18]!==0||nt.dyn_ltree[20]!==0||nt.dyn_ltree[26]!==0)return _;for(vt=32;vt<I;vt++)if(nt.dyn_ltree[2*vt]!==0)return _;return m}(dt)),Qi(dt,dt.l_desc),Qi(dt,dt.d_desc),ot=function(nt){var vt;for(W(nt,nt.dyn_ltree,nt.l_desc.max_code),W(nt,nt.dyn_dtree,nt.d_desc.max_code),Qi(nt,nt.bl_desc),vt=F-1;3<=vt&&nt.bl_tree[2*ct[vt]+1]===0;vt--);return nt.opt_len+=3*(vt+1)+5+5+4,vt}(dt),z=dt.opt_len+3+7>>>3,(Q=dt.static_len+3+7>>>3)<=z&&(z=Q)):z=Q=ie+5,ie+4<=z&&Dt!==-1?pt(dt,Dt,ie,Kt):dt.strategy===4||Q===z?(ce(dt,2+(Kt?1:0),3),mn(dt,It,et)):(ce(dt,4+(Kt?1:0),3),function(nt,vt,Gt,Xt){var jt;for(ce(nt,vt-257,5),ce(nt,Gt-1,5),ce(nt,Xt-4,4),jt=0;jt<Xt;jt++)ce(nt,nt.bl_tree[2*ct[jt]+1],3);Jt(nt,nt.dyn_ltree,vt-1),Jt(nt,nt.dyn_dtree,Gt-1)}(dt,dt.l_desc.max_code+1,dt.d_desc.max_code+1,ot+1),mn(dt,dt.dyn_ltree,dt.dyn_dtree)),Oe(dt),Kt&&Ge(dt)},d._tr_tally=function(dt,Dt,ie){return dt.pending_buf[dt.d_buf+2*dt.last_lit]=Dt>>>8&255,dt.pending_buf[dt.d_buf+2*dt.last_lit+1]=255&Dt,dt.pending_buf[dt.l_buf+dt.last_lit]=255&ie,dt.last_lit++,Dt===0?dt.dyn_ltree[2*ie]++:(dt.matches++,Dt--,dt.dyn_ltree[2*(G[ie]+I+1)]++,dt.dyn_dtree[2*Bt(Dt)]++),dt.last_lit===dt.lit_bufsize-1},d._tr_align=function(dt){ce(dt,2,3),Yt(dt,R,It),function(Dt){Dt.bi_valid===16?(ke(Dt,Dt.bi_buf),Dt.bi_buf=0,Dt.bi_valid=0):8<=Dt.bi_valid&&(Dt.pending_buf[Dt.pending++]=255&Dt.bi_buf,Dt.bi_buf>>=8,Dt.bi_valid-=8)}(dt)}},{"../utils/common":41}],53:[function(o,c,d){c.exports=function(){this.input=null,this.next_in=0,this.avail_in=0,this.total_in=0,this.output=null,this.next_out=0,this.avail_out=0,this.total_out=0,this.msg="",this.state=null,this.data_type=2,this.adler=0}},{}],54:[function(o,c,d){(function(u){(function(m,_){if(!m.setImmediate){var y,S,A,I,k=1,D={},F=!1,E=m.document,L=Object.getPrototypeOf&&Object.getPrototypeOf(m);L=L&&L.setTimeout?L:m,y={}.toString.call(m.process)==="[object process]"?function(b){process.nextTick(function(){M(b)})}:function(){if(m.postMessage&&!m.importScripts){var b=!0,U=m.onmessage;return m.onmessage=function(){b=!1},m.postMessage("","*"),m.onmessage=U,b}}()?(I="setImmediate$"+Math.random()+"$",m.addEventListener?m.addEventListener("message",R,!1):m.attachEvent("onmessage",R),function(b){m.postMessage(I+b,"*")}):m.MessageChannel?((A=new MessageChannel).port1.onmessage=function(b){M(b.data)},function(b){A.port2.postMessage(b)}):E&&"onreadystatechange"in E.createElement("script")?(S=E.documentElement,function(b){var U=E.createElement("script");U.onreadystatechange=function(){M(b),U.onreadystatechange=null,S.removeChild(U),U=null},S.appendChild(U)}):function(b){setTimeout(M,0,b)},L.setImmediate=function(b){typeof b!="function"&&(b=new Function(""+b));for(var U=new Array(arguments.length-1),N=0;N<U.length;N++)U[N]=arguments[N+1];var j={callback:b,args:U};return D[k]=j,y(k),k++},L.clearImmediate=T}function T(b){delete D[b]}function M(b){if(F)setTimeout(M,0,b);else{var U=D[b];if(U){F=!0;try{(function(N){var j=N.callback,J=N.args;switch(J.length){case 0:j();break;case 1:j(J[0]);break;case 2:j(J[0],J[1]);break;case 3:j(J[0],J[1],J[2]);break;default:j.apply(_,J)}})(U)}finally{T(b),F=!1}}}}function R(b){b.source===m&&typeof b.data=="string"&&b.data.indexOf(I)===0&&M(+b.data.slice(I.length))}})(typeof self>"u"?u===void 0?this:u:self)}).call(this,typeof Er<"u"?Er:typeof self<"u"?self:typeof window<"u"?window:{})},{}]},{},[10])(10)})})(Sf);var um=Sf.exports;const cm=Ju(um);var Ef={exports:{}};(function(x,a){(function(o,c){c()})(Er,function(){function o(S,A){return typeof A>"u"?A={autoBom:!1}:typeof A!="object"&&(console.warn("Deprecated: Expected third argument to be a object"),A={autoBom:!A}),A.autoBom&&/^\s*(?:text\/\S*|application\/xml|\S*\/\S*\+xml)\s*;.*charset\s*=\s*utf-8/i.test(S.type)?new Blob(["\uFEFF",S],{type:S.type}):S}function c(S,A,I){var k=new XMLHttpRequest;k.open("GET",S),k.responseType="blob",k.onload=function(){y(k.response,A,I)},k.onerror=function(){console.error("could not download file")},k.send()}function d(S){var A=new XMLHttpRequest;A.open("HEAD",S,!1);try{A.send()}catch{}return 200<=A.status&&299>=A.status}function u(S){try{S.dispatchEvent(new MouseEvent("click"))}catch{var A=document.createEvent("MouseEvents");A.initMouseEvent("click",!0,!0,window,0,0,0,80,20,!1,!1,!1,!1,0,null),S.dispatchEvent(A)}}var m=typeof window=="object"&&window.window===window?window:typeof self=="object"&&self.self===self?self:typeof Er=="object"&&Er.global===Er?Er:void 0,_=m.navigator&&/Macintosh/.test(navigator.userAgent)&&/AppleWebKit/.test(navigator.userAgent)&&!/Safari/.test(navigator.userAgent),y=m.saveAs||(typeof window!="object"||window!==m?function(){}:"download"in HTMLAnchorElement.prototype&&!_?function(S,A,I){var k=m.URL||m.webkitURL,D=document.createElement("a");A=A||S.name||"download",D.download=A,D.rel="noopener",typeof S=="string"?(D.href=S,D.origin===location.origin?u(D):d(D.href)?c(S,A,I):u(D,D.target="_blank")):(D.href=k.createObjectURL(S),setTimeout(function(){k.revokeObjectURL(D.href)},4e4),setTimeout(function(){u(D)},0))}:"msSaveOrOpenBlob"in navigator?function(S,A,I){if(A=A||S.name||"download",typeof S!="string")navigator.msSaveOrOpenBlob(o(S,I),A);else if(d(S))c(S,A,I);else{var k=document.createElement("a");k.href=S,k.target="_blank",setTimeout(function(){u(k)})}}:function(S,A,I,k){if(k=k||open("","_blank"),k&&(k.document.title=k.document.body.innerText="downloading..."),typeof S=="string")return c(S,A,I);var D=S.type==="application/octet-stream",F=/constructor/i.test(m.HTMLElement)||m.safari,E=/CriOS\/[\d]+/.test(navigator.userAgent);if((E||D&&F||_)&&typeof FileReader<"u"){var L=new FileReader;L.onloadend=function(){var R=L.result;R=E?R:R.replace(/^data:[^;]*;/,"data:attachment/file;"),k?k.location.href=R:location=R,k=null},L.readAsDataURL(S)}else{var T=m.URL||m.webkitURL,M=T.createObjectURL(S);k?k.location=M:location.href=M,k=null,setTimeout(function(){T.revokeObjectURL(M)},4e4)}});m.saveAs=y.saveAs=y,x.exports=y})})(Ef);var fm=Ef.exports;const pm=Ju(fm);class dm{constructor(a,o){window.mars3d?(this.map=a,this.panoramicViewClass=o,this.coordinate=[{heading:0,pitch:0,stop:5},{heading:90,pitch:0,stop:5},{heading:180,pitch:0,stop:5},{heading:270,pitch:0,stop:5},{heading:0,pitch:90,stop:5},{heading:0,pitch:-90,stop:5}],this.screenshotArray=[],this.events={},this.timestamp=0,this.lat,this.lng,this.alt):console.error("未引入指定插件")}start(a=!0){var o,c;if(a){this.timestamp=new Date().getTime();const d=document.getElementById("app"),u=window.innerHeight,m=document.getElementById("mars3dContainer");m&&(m.style.width=u.toString()+"px",m.style.height=u.toString()+"px"),d!==null&&d.classList.add(this.panoramicViewClass);let{lat:_,lng:y,alt:S}=this.map.getCameraView();this.lat=_,this.lng=y,this.alt=S,this.map.viewer.scene.camera.frustum.fov=window.Cesium.Math.PI_OVER_THREE*1.5}this.screenshotArray&&this.coordinate?this.coordinate[(o=this.screenshotArray)==null?void 0:o.length]?this.map.setCameraView({lat:this.lat,lng:this.lng,alt:this.alt,...this.coordinate[(c=this.screenshotArray)==null?void 0:c.length]},{complete:()=>{setTimeout(()=>{var d;this.screenshot((d=this.screenshotArray)==null?void 0:d.length)},100)}}):(this.downloadImagesAsZip(),this.screenshotArray=[]):(console.error("初始化失效"),this.emit("state",{type:"error"}))}async screenshot(a){const o=await this.map.expImage({download:!1}),c=this.map.container.getElementsByClassName("cesium-viewer-cesiumWidgetContainer"),d=await window.domtoimage.toPng(this.map.container,{filter:u=>u!==c[0]});this.mergeImage(o.image,d,o.width,o.height).then(u=>{var y;let m=Number(a)+1,_={src:u,name:"全景图_"+this.timestamp+"_"+m+".jpg"};this.emit("intercept",_),(y=this.screenshotArray)==null||y.push(_),this.start(!1)})}mergeImage(a,o,c,d){return new Promise((u,m)=>{const _=document.createElement("canvas");_.width=c,_.height=d;const y=_.getContext("2d");if(_&&y){const S=new Image;S.crossOrigin="Anonymous",S.onload=()=>{y.drawImage(S,0,0,c,d);const A=new Image;A.crossOrigin="Anonymous",A.onload=()=>{y.drawImage(A,0,0,c,d);const I=_.toDataURL("image/png");u(I)},A.src=o},S.src=a}else m()})}download(){this.screenshotArray&&this.screenshotArray.forEach(a=>{window.mars3d.Util.downloadBase64Image(a.name,a.src)})}async downloadImagesAsZip(){if(this.screenshotArray){const a=new cm;this.screenshotArray.forEach(c=>{const d=c.src.split(",")[1],u=atob(d),m=[];for(let S=0;S<u.length;S+=1024){const A=u.slice(S,S+1024),I=new Array(A.length);for(let D=0;D<A.length;D++)I[D]=A.charCodeAt(D);const k=new Uint8Array(I);m.push(k)}const _=new Blob(m,{type:"image/jpeg"}),y=`${c.name}`;a.file(y,_,{binary:!0})});const o=await a.generateAsync({type:"blob"});pm(o,"CHBIM-Panorama.zip"),this.emit("state",{type:"success",schedule:100}),this.init()}}init(){const a=document.getElementById("app");a&&a.classList.remove(this.panoramicViewClass);const o=document.getElementById("mars3dContainer");o&&(o.style.width="",o.style.height="")}on(a,o){this.events[a]?this.events[a].push(o):this.events[a]=[o]}emit(a,...o){this.events[a]!=null&&this.events[a].forEach(c=>c(...o))}off(a,o){this.events[a]=this.events[a].filter(c=>c!==o)}}function uo(x){if(x===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return x}function bf(x,a){x.prototype=Object.create(a.prototype),x.prototype.constructor=x,x.__proto__=a}/*!
2685
2685
  * GSAP 3.12.5
2686
2686
  * https://gsap.com
2687
2687
  *
@@ -2689,7 +2689,7 @@ function print() { __p += __j.call(arguments, '') }
2689
2689
  * Subject to the terms at https://gsap.com/standard-license or for
2690
2690
  * Club GSAP members, the agreement issued with that membership.
2691
2691
  * @author: Jack Doyle, jack@greensock.com
2692
- */var Hr={autoSleep:120,force3D:"auto",nullTargetWarn:1,units:{lineHeight:""}},Cl={duration:.5,overwrite:!1,delay:0},Ku,nr,hn,ns=1e8,en=1/ns,Qu=Math.PI*2,dm=Qu/4,mm=0,Af=Math.sqrt,gm=Math.cos,vm=Math.sin,Wn=function(l){return typeof l=="string"},Tn=function(l){return typeof l=="function"},co=function(l){return typeof l=="number"},tc=function(l){return typeof l>"u"},Gs=function(l){return typeof l=="object"},br=function(l){return l!==!1},ec=function(){return typeof window<"u"},ou=function(l){return Tn(l)||Wn(l)},Cf=typeof ArrayBuffer=="function"&&ArrayBuffer.isView||function(){},rr=Array.isArray,ic=/(?:-?\.?\d|\.)+/gi,Pf=/[-+=.]*\d+[.e\-+]*\d*[e\-+]*\d*/g,Pl=/[-+=.]*\d+[.e-]*\d*[a-z%]*/g,nc=/[-+=.]*\d+\.?\d*(?:e-|e\+)?\d*/gi,Lf=/[+-]=-?[.\d]+/,Rf=/[^,'"\[\]\s]+/gi,_m=/^[+\-=e\s\d]*\d+[.\d]*([a-z]*|%)\s*$/i,pn,Hs,rc,sc,Vr={},au={},Of,If=function(l){return(au=ka(l,Vr))&&Pr},oc=function(l,o){return console.warn("Invalid property",l,"set to",o,"Missing plugin? gsap.registerPlugin()")},dh=function(l,o){return!o&&console.warn(l)},Df=function(l,o){return l&&(Vr[l]=o)&&au&&(au[l]=o)||Vr},mh=function(){return 0},ym={suppressEvents:!0,isStart:!0,kill:!1},lu={suppressEvents:!0,kill:!1},xm={suppressEvents:!0},ac={},qo=[],lc={},zf,Wr={},hc={},kf=30,hu=[],uc="",cc=function(l){var o=l[0],c,d;if(Gs(o)||Tn(o)||(l=[l]),!(c=(o._gsap||{}).harness)){for(d=hu.length;d--&&!hu[d].targetTest(o););c=hu[d]}for(d=l.length;d--;)l[d]&&(l[d]._gsap||(l[d]._gsap=new cp(l[d],c)))||l.splice(d,1);return l},za=function(l){return l._gsap||cc(os(l))[0]._gsap},Bf=function(l,o,c){return(c=l[o])&&Tn(c)?l[o]():tc(c)&&l.getAttribute&&l.getAttribute(o)||c},Ar=function(l,o){return(l=l.split(",")).forEach(o)||l},Rn=function(l){return Math.round(l*1e5)/1e5||0},jn=function(l){return Math.round(l*1e7)/1e7||0},Ll=function(l,o){var c=o.charAt(0),d=parseFloat(o.substr(2));return l=parseFloat(l),c==="+"?l+d:c==="-"?l-d:c==="*"?l*d:l/d},wm=function(l,o){for(var c=o.length,d=0;l.indexOf(o[d])<0&&++d<c;);return d<c},uu=function(){var l=qo.length,o=qo.slice(0),c,d;for(lc={},qo.length=0,c=0;c<l;c++)d=o[c],d&&d._lazy&&(d.render(d._lazy[0],d._lazy[1],!0)._lazy=0)},Nf=function(l,o,c,d){qo.length&&!nr&&uu(),l.render(o,c,d||nr&&o<0&&(l._initted||l._startAt)),qo.length&&!nr&&uu()},Ff=function(l){var o=parseFloat(l);return(o||o===0)&&(l+"").match(Rf).length<2?o:Wn(l)?l.trim():l},Uf=function(l){return l},rs=function(l,o){for(var c in o)c in l||(l[c]=o[c]);return l},Tm=function(l){return function(o,c){for(var d in c)d in o||d==="duration"&&l||d==="ease"||(o[d]=c[d])}},ka=function(l,o){for(var c in o)l[c]=o[c];return l},Gf=function x(l,o){for(var c in o)c!=="__proto__"&&c!=="constructor"&&c!=="prototype"&&(l[c]=Gs(o[c])?x(l[c]||(l[c]={}),o[c]):o[c]);return l},cu=function(l,o){var c={},d;for(d in l)d in o||(c[d]=l[d]);return c},gh=function(l){var o=l.parent||pn,c=l.keyframes?Tm(rr(l.keyframes)):rs;if(br(l.inherit))for(;o;)c(l,o.vars.defaults),o=o.parent||o._dp;return l},Mm=function(l,o){for(var c=l.length,d=c===o.length;d&&c--&&l[c]===o[c];);return c<0},Hf=function(l,o,c,d,u){c===void 0&&(c="_first"),d===void 0&&(d="_last");var m=l[d],_;if(u)for(_=o[u];m&&m[u]>_;)m=m._prev;return m?(o._next=m._next,m._next=o):(o._next=l[c],l[c]=o),o._next?o._next._prev=o:l[d]=o,o._prev=m,o.parent=o._dp=l,o},fu=function(l,o,c,d){c===void 0&&(c="_first"),d===void 0&&(d="_last");var u=o._prev,m=o._next;u?u._next=m:l[c]===o&&(l[c]=m),m?m._prev=u:l[d]===o&&(l[d]=u),o._next=o._prev=o.parent=null},Yo=function(l,o){l.parent&&(!o||l.parent.autoRemoveChildren)&&l.parent.remove&&l.parent.remove(l),l._act=0},Ba=function(l,o){if(l&&(!o||o._end>l._dur||o._start<0))for(var c=l;c;)c._dirty=1,c=c.parent;return l},Sm=function(l){for(var o=l.parent;o&&o.parent;)o._dirty=1,o.totalDuration(),o=o.parent;return l},fc=function(l,o,c,d){return l._startAt&&(nr?l._startAt.revert(lu):l.vars.immediateRender&&!l.vars.autoRevert||l._startAt.render(o,!0,d))},Em=function x(l){return!l||l._ts&&x(l.parent)},Vf=function(l){return l._repeat?Rl(l._tTime,l=l.duration()+l._rDelay)*l:0},Rl=function(l,o){var c=Math.floor(l/=o);return l&&c===l?c-1:c},pu=function(l,o){return(l-o._start)*o._ts+(o._ts>=0?0:o._dirty?o.totalDuration():o._tDur)},du=function(l){return l._end=jn(l._start+(l._tDur/Math.abs(l._ts||l._rts||en)||0))},mu=function(l,o){var c=l._dp;return c&&c.smoothChildTiming&&l._ts&&(l._start=jn(c._time-(l._ts>0?o/l._ts:((l._dirty?l.totalDuration():l._tDur)-o)/-l._ts)),du(l),c._dirty||Ba(c,l)),l},Wf=function(l,o){var c;if((o._time||!o._dur&&o._initted||o._start<l._time&&(o._dur||!o.add))&&(c=pu(l.rawTime(),o),(!o._dur||_h(0,o.totalDuration(),c)-o._tTime>en)&&o.render(c,!0)),Ba(l,o)._dp&&l._initted&&l._time>=l._dur&&l._ts){if(l._dur<l.duration())for(c=l;c._dp;)c.rawTime()>=0&&c.totalTime(c._tTime),c=c._dp;l._zTime=-en}},Vs=function(l,o,c,d){return o.parent&&Yo(o),o._start=jn((co(c)?c:c||l!==pn?ss(l,c,o):l._time)+o._delay),o._end=jn(o._start+(o.totalDuration()/Math.abs(o.timeScale())||0)),Hf(l,o,"_first","_last",l._sort?"_start":0),pc(o)||(l._recent=o),d||Wf(l,o),l._ts<0&&mu(l,l._tTime),l},jf=function(l,o){return(Vr.ScrollTrigger||oc("scrollTrigger",o))&&Vr.ScrollTrigger.create(o,l)},Xf=function(l,o,c,d,u){if(Tc(l,o,u),!l._initted)return 1;if(!c&&l._pt&&!nr&&(l._dur&&l.vars.lazy!==!1||!l._dur&&l.vars.lazy)&&zf!==Xr.frame)return qo.push(l),l._lazy=[u,d],1},bm=function x(l){var o=l.parent;return o&&o._ts&&o._initted&&!o._lock&&(o.rawTime()<0||x(o))},pc=function(l){var o=l.data;return o==="isFromStart"||o==="isStart"},Am=function(l,o,c,d){var u=l.ratio,m=o<0||!o&&(!l._start&&bm(l)&&!(!l._initted&&pc(l))||(l._ts<0||l._dp._ts<0)&&!pc(l))?0:1,_=l._rDelay,y=0,S,A,I;if(_&&l._repeat&&(y=_h(0,l._tDur,o),A=Rl(y,_),l._yoyo&&A&1&&(m=1-m),A!==Rl(l._tTime,_)&&(u=1-m,l.vars.repeatRefresh&&l._initted&&l.invalidate())),m!==u||nr||d||l._zTime===en||!o&&l._zTime){if(!l._initted&&Xf(l,o,d,c,y))return;for(I=l._zTime,l._zTime=o||(c?en:0),c||(c=o&&!I),l.ratio=m,l._from&&(m=1-m),l._time=0,l._tTime=y,S=l._pt;S;)S.r(m,S.d),S=S._next;o<0&&fc(l,o,c,!0),l._onUpdate&&!c&&jr(l,"onUpdate"),y&&l._repeat&&!c&&l.parent&&jr(l,"onRepeat"),(o>=l._tDur||o<0)&&l.ratio===m&&(m&&Yo(l,1),!c&&!nr&&(jr(l,m?"onComplete":"onReverseComplete",!0),l._prom&&l._prom()))}else l._zTime||(l._zTime=o)},Cm=function(l,o,c){var d;if(c>o)for(d=l._first;d&&d._start<=c;){if(d.data==="isPause"&&d._start>o)return d;d=d._next}else for(d=l._last;d&&d._start>=c;){if(d.data==="isPause"&&d._start<o)return d;d=d._prev}},Ol=function(l,o,c,d){var u=l._repeat,m=jn(o)||0,_=l._tTime/l._tDur;return _&&!d&&(l._time*=m/l._dur),l._dur=m,l._tDur=u?u<0?1e10:jn(m*(u+1)+l._rDelay*u):m,_>0&&!d&&mu(l,l._tTime=l._tDur*_),l.parent&&du(l),c||Ba(l.parent,l),l},qf=function(l){return l instanceof gr?Ba(l):Ol(l,l._dur)},Pm={_start:0,endTime:mh,totalDuration:mh},ss=function x(l,o,c){var d=l.labels,u=l._recent||Pm,m=l.duration()>=ns?u.endTime(!1):l._dur,_,y,S;return Wn(o)&&(isNaN(o)||o in d)?(y=o.charAt(0),S=o.substr(-1)==="%",_=o.indexOf("="),y==="<"||y===">"?(_>=0&&(o=o.replace(/=/,"")),(y==="<"?u._start:u.endTime(u._repeat>=0))+(parseFloat(o.substr(1))||0)*(S?(_<0?u:c).totalDuration()/100:1)):_<0?(o in d||(d[o]=m),d[o]):(y=parseFloat(o.charAt(_-1)+o.substr(_+1)),S&&c&&(y=y/100*(rr(c)?c[0]:c).totalDuration()),_>1?x(l,o.substr(0,_-1),c)+y:m+y)):o==null?m:+o},vh=function(l,o,c){var d=co(o[1]),u=(d?2:1)+(l<2?0:1),m=o[u],_,y;if(d&&(m.duration=o[1]),m.parent=c,l){for(_=m,y=c;y&&!("immediateRender"in _);)_=y.vars.defaults||{},y=br(y.vars.inherit)&&y.parent;m.immediateRender=br(_.immediateRender),l<2?m.runBackwards=1:m.startAt=o[u-1]}return new kn(o[0],m,o[u+1])},Zo=function(l,o){return l||l===0?o(l):o},_h=function(l,o,c){return c<l?l:c>o?o:c},sr=function(l,o){return!Wn(l)||!(o=_m.exec(l))?"":o[1]},Lm=function(l,o,c){return Zo(c,function(d){return _h(l,o,d)})},dc=[].slice,Yf=function(l,o){return l&&Gs(l)&&"length"in l&&(!o&&!l.length||l.length-1 in l&&Gs(l[0]))&&!l.nodeType&&l!==Hs},Rm=function(l,o,c){return c===void 0&&(c=[]),l.forEach(function(d){var u;return Wn(d)&&!o||Yf(d,1)?(u=c).push.apply(u,os(d)):c.push(d)})||c},os=function(l,o,c){return hn&&!o&&hn.selector?hn.selector(l):Wn(l)&&!c&&(rc||!Dl())?dc.call((o||sc).querySelectorAll(l),0):rr(l)?Rm(l,c):Yf(l)?dc.call(l,0):l?[l]:[]},mc=function(l){return l=os(l)[0]||dh("Invalid scope")||{},function(o){var c=l.current||l.nativeElement||l;return os(o,c.querySelectorAll?c:c===l?dh("Invalid scope")||sc.createElement("div"):l)}},Zf=function(l){return l.sort(function(){return .5-Math.random()})},Jf=function(l){if(Tn(l))return l;var o=Gs(l)?l:{each:l},c=Na(o.ease),d=o.from||0,u=parseFloat(o.base)||0,m={},_=d>0&&d<1,y=isNaN(d)||_,S=o.axis,A=d,I=d;return Wn(d)?A=I={center:.5,edges:.5,end:1}[d]||0:!_&&y&&(A=d[0],I=d[1]),function(k,D,N){var E=(N||o).length,P=m[E],T,M,R,b,U,F,j,J,$;if(!P){if($=o.grid==="auto"?0:(o.grid||[1,ns])[1],!$){for(j=-ns;j<(j=N[$++].getBoundingClientRect().left)&&$<E;);$<E&&$--}for(P=m[E]=[],T=y?Math.min($,E)*A-.5:d%$,M=$===ns?0:y?E*I/$-.5:d/$|0,j=0,J=ns,F=0;F<E;F++)R=F%$-T,b=M-(F/$|0),P[F]=U=S?Math.abs(S==="y"?b:R):Af(R*R+b*b),U>j&&(j=U),U<J&&(J=U);d==="random"&&Zf(P),P.max=j-J,P.min=J,P.v=E=(parseFloat(o.amount)||parseFloat(o.each)*($>E?E-1:S?S==="y"?E/$:$:Math.max($,E/$))||0)*(d==="edges"?-1:1),P.b=E<0?u-E:u,P.u=sr(o.amount||o.each)||0,c=c&&E<0?lp(c):c}return E=(P[k]-P.min)/P.max||0,jn(P.b+(c?c(E):E)*P.v)+P.u}},gc=function(l){var o=Math.pow(10,((l+"").split(".")[1]||"").length);return function(c){var d=jn(Math.round(parseFloat(c)/l)*l*o);return(d-d%1)/o+(co(c)?0:sr(c))}},$f=function(l,o){var c=rr(l),d,u;return!c&&Gs(l)&&(d=c=l.radius||ns,l.values?(l=os(l.values),(u=!co(l[0]))&&(d*=d)):l=gc(l.increment)),Zo(o,c?Tn(l)?function(m){return u=l(m),Math.abs(u-m)<=d?u:m}:function(m){for(var _=parseFloat(u?m.x:m),y=parseFloat(u?m.y:0),S=ns,A=0,I=l.length,k,D;I--;)u?(k=l[I].x-_,D=l[I].y-y,k=k*k+D*D):k=Math.abs(l[I]-_),k<S&&(S=k,A=I);return A=!d||S<=d?l[A]:m,u||A===m||co(m)?A:A+sr(m)}:gc(l))},Kf=function(l,o,c,d){return Zo(rr(l)?!o:c===!0?!!(c=0):!d,function(){return rr(l)?l[~~(Math.random()*l.length)]:(c=c||1e-5)&&(d=c<1?Math.pow(10,(c+"").length-2):1)&&Math.floor(Math.round((l-c/2+Math.random()*(o-l+c*.99))/c)*c*d)/d})},Om=function(){for(var l=arguments.length,o=new Array(l),c=0;c<l;c++)o[c]=arguments[c];return function(d){return o.reduce(function(u,m){return m(u)},d)}},Im=function(l,o){return function(c){return l(parseFloat(c))+(o||sr(c))}},Dm=function(l,o,c){return tp(l,o,0,1,c)},Qf=function(l,o,c){return Zo(c,function(d){return l[~~o(d)]})},zm=function x(l,o,c){var d=o-l;return rr(l)?Qf(l,x(0,l.length),o):Zo(c,function(u){return(d+(u-l)%d)%d+l})},km=function x(l,o,c){var d=o-l,u=d*2;return rr(l)?Qf(l,x(0,l.length-1),o):Zo(c,function(m){return m=(u+(m-l)%u)%u||0,l+(m>d?u-m:m)})},yh=function(l){for(var o=0,c="",d,u,m,_;~(d=l.indexOf("random(",o));)m=l.indexOf(")",d),_=l.charAt(d+7)==="[",u=l.substr(d+7,m-d-7).match(_?Rf:ic),c+=l.substr(o,d-o)+Kf(_?u:+u[0],_?0:+u[1],+u[2]||1e-5),o=m+1;return c+l.substr(o,l.length-o)},tp=function(l,o,c,d,u){var m=o-l,_=d-c;return Zo(u,function(y){return c+((y-l)/m*_||0)})},Bm=function x(l,o,c,d){var u=isNaN(l+o)?0:function(D){return(1-D)*l+D*o};if(!u){var m=Wn(l),_={},y,S,A,I,k;if(c===!0&&(d=1)&&(c=null),m)l={p:l},o={p:o};else if(rr(l)&&!rr(o)){for(A=[],I=l.length,k=I-2,S=1;S<I;S++)A.push(x(l[S-1],l[S]));I--,u=function(N){N*=I;var E=Math.min(k,~~N);return A[E](N-E)},c=o}else d||(l=ka(rr(l)?[]:{},l));if(!A){for(y in o)xc.call(_,l,y,"get",o[y]);u=function(N){return Ec(N,_)||(m?l.p:l)}}}return Zo(c,u)},ep=function(l,o,c){var d=l.labels,u=ns,m,_,y;for(m in d)_=d[m]-o,_<0==!!c&&_&&u>(_=Math.abs(_))&&(y=m,u=_);return y},jr=function(l,o,c){var d=l.vars,u=d[o],m=hn,_=l._ctx,y,S,A;if(u)return y=d[o+"Params"],S=d.callbackScope||l,c&&qo.length&&uu(),_&&(hn=_),A=y?u.apply(S,y):u.call(S),hn=m,A},xh=function(l){return Yo(l),l.scrollTrigger&&l.scrollTrigger.kill(!!nr),l.progress()<1&&jr(l,"onInterrupt"),l},Il,ip=[],np=function(l){if(l)if(l=!l.name&&l.default||l,ec()||l.headless){var o=l.name,c=Tn(l),d=o&&!c&&l.init?function(){this._props=[]}:l,u={init:mh,render:Ec,add:xc,kill:Qm,modifier:Km,rawVars:0},m={targetTest:0,get:0,getSetter:Sc,aliases:{},register:0};if(Dl(),l!==d){if(Wr[o])return;rs(d,rs(cu(l,u),m)),ka(d.prototype,ka(u,cu(l,m))),Wr[d.prop=o]=d,l.targetTest&&(hu.push(d),ac[o]=1),o=(o==="css"?"CSS":o.charAt(0).toUpperCase()+o.substr(1))+"Plugin"}Df(o,d),l.register&&l.register(Pr,d,Cr)}else ip.push(l)},Ki=255,wh={aqua:[0,Ki,Ki],lime:[0,Ki,0],silver:[192,192,192],black:[0,0,0],maroon:[128,0,0],teal:[0,128,128],blue:[0,0,Ki],navy:[0,0,128],white:[Ki,Ki,Ki],olive:[128,128,0],yellow:[Ki,Ki,0],orange:[Ki,165,0],gray:[128,128,128],purple:[128,0,128],green:[0,128,0],red:[Ki,0,0],pink:[Ki,192,203],cyan:[0,Ki,Ki],transparent:[Ki,Ki,Ki,0]},vc=function(l,o,c){return l+=l<0?1:l>1?-1:0,(l*6<1?o+(c-o)*l*6:l<.5?c:l*3<2?o+(c-o)*(2/3-l)*6:o)*Ki+.5|0},rp=function(l,o,c){var d=l?co(l)?[l>>16,l>>8&Ki,l&Ki]:0:wh.black,u,m,_,y,S,A,I,k,D,N;if(!d){if(l.substr(-1)===","&&(l=l.substr(0,l.length-1)),wh[l])d=wh[l];else if(l.charAt(0)==="#"){if(l.length<6&&(u=l.charAt(1),m=l.charAt(2),_=l.charAt(3),l="#"+u+u+m+m+_+_+(l.length===5?l.charAt(4)+l.charAt(4):"")),l.length===9)return d=parseInt(l.substr(1,6),16),[d>>16,d>>8&Ki,d&Ki,parseInt(l.substr(7),16)/255];l=parseInt(l.substr(1),16),d=[l>>16,l>>8&Ki,l&Ki]}else if(l.substr(0,3)==="hsl"){if(d=N=l.match(ic),!o)y=+d[0]%360/360,S=+d[1]/100,A=+d[2]/100,m=A<=.5?A*(S+1):A+S-A*S,u=A*2-m,d.length>3&&(d[3]*=1),d[0]=vc(y+1/3,u,m),d[1]=vc(y,u,m),d[2]=vc(y-1/3,u,m);else if(~l.indexOf("="))return d=l.match(Pf),c&&d.length<4&&(d[3]=1),d}else d=l.match(ic)||wh.transparent;d=d.map(Number)}return o&&!N&&(u=d[0]/Ki,m=d[1]/Ki,_=d[2]/Ki,I=Math.max(u,m,_),k=Math.min(u,m,_),A=(I+k)/2,I===k?y=S=0:(D=I-k,S=A>.5?D/(2-I-k):D/(I+k),y=I===u?(m-_)/D+(m<_?6:0):I===m?(_-u)/D+2:(u-m)/D+4,y*=60),d[0]=~~(y+.5),d[1]=~~(S*100+.5),d[2]=~~(A*100+.5)),c&&d.length<4&&(d[3]=1),d},sp=function(l){var o=[],c=[],d=-1;return l.split(Jo).forEach(function(u){var m=u.match(Pl)||[];o.push.apply(o,m),c.push(d+=m.length+1)}),o.c=c,o},op=function(l,o,c){var d="",u=(l+d).match(Jo),m=o?"hsla(":"rgba(",_=0,y,S,A,I;if(!u)return l;if(u=u.map(function(k){return(k=rp(k,o,1))&&m+(o?k[0]+","+k[1]+"%,"+k[2]+"%,"+k[3]:k.join(","))+")"}),c&&(A=sp(l),y=c.c,y.join(d)!==A.c.join(d)))for(S=l.replace(Jo,"1").split(Pl),I=S.length-1;_<I;_++)d+=S[_]+(~y.indexOf(_)?u.shift()||m+"0,0,0,0)":(A.length?A:u.length?u:c).shift());if(!S)for(S=l.split(Jo),I=S.length-1;_<I;_++)d+=S[_]+u[_];return d+S[I]},Jo=function(){var x="(?:\\b(?:(?:rgb|rgba|hsl|hsla)\\(.+?\\))|\\B#(?:[0-9a-f]{3,4}){1,2}\\b",l;for(l in wh)x+="|"+l+"\\b";return new RegExp(x+")","gi")}(),Nm=/hsl[a]?\(/,ap=function(l){var o=l.join(" "),c;if(Jo.lastIndex=0,Jo.test(o))return c=Nm.test(o),l[1]=op(l[1],c),l[0]=op(l[0],c,sp(l[1])),!0},Th,Xr=function(){var x=Date.now,l=500,o=33,c=x(),d=c,u=1e3/240,m=u,_=[],y,S,A,I,k,D,N=function E(P){var T=x()-d,M=P===!0,R,b,U,F;if((T>l||T<0)&&(c+=T-o),d+=T,U=d-c,R=U-m,(R>0||M)&&(F=++I.frame,k=U-I.time*1e3,I.time=U=U/1e3,m+=R+(R>=u?4:u-R),b=1),M||(y=S(E)),b)for(D=0;D<_.length;D++)_[D](U,k,F,P)};return I={time:0,frame:0,tick:function(){N(!0)},deltaRatio:function(P){return k/(1e3/(P||60))},wake:function(){Of&&(!rc&&ec()&&(Hs=rc=window,sc=Hs.document||{},Vr.gsap=Pr,(Hs.gsapVersions||(Hs.gsapVersions=[])).push(Pr.version),If(au||Hs.GreenSockGlobals||!Hs.gsap&&Hs||{}),ip.forEach(np)),A=typeof requestAnimationFrame<"u"&&requestAnimationFrame,y&&I.sleep(),S=A||function(P){return setTimeout(P,m-I.time*1e3+1|0)},Th=1,N(2))},sleep:function(){(A?cancelAnimationFrame:clearTimeout)(y),Th=0,S=mh},lagSmoothing:function(P,T){l=P||1/0,o=Math.min(T||33,l)},fps:function(P){u=1e3/(P||240),m=I.time*1e3+u},add:function(P,T,M){var R=T?function(b,U,F,j){P(b,U,F,j),I.remove(R)}:P;return I.remove(P),_[M?"unshift":"push"](R),Dl(),R},remove:function(P,T){~(T=_.indexOf(P))&&_.splice(T,1)&&D>=T&&D--},_listeners:_},I}(),Dl=function(){return!Th&&Xr.wake()},Ri={},Fm=/^[\d.\-M][\d.\-,\s]/,Um=/["']/g,Gm=function(l){for(var o={},c=l.substr(1,l.length-3).split(":"),d=c[0],u=1,m=c.length,_,y,S;u<m;u++)y=c[u],_=u!==m-1?y.lastIndexOf(","):y.length,S=y.substr(0,_),o[d]=isNaN(S)?S.replace(Um,"").trim():+S,d=y.substr(_+1).trim();return o},Hm=function(l){var o=l.indexOf("(")+1,c=l.indexOf(")"),d=l.indexOf("(",o);return l.substring(o,~d&&d<c?l.indexOf(")",c+1):c)},Vm=function(l){var o=(l+"").split("("),c=Ri[o[0]];return c&&o.length>1&&c.config?c.config.apply(null,~l.indexOf("{")?[Gm(o[1])]:Hm(l).split(",").map(Ff)):Ri._CE&&Fm.test(l)?Ri._CE("",l):c},lp=function(l){return function(o){return 1-l(1-o)}},hp=function x(l,o){for(var c=l._first,d;c;)c instanceof gr?x(c,o):c.vars.yoyoEase&&(!c._yoyo||!c._repeat)&&c._yoyo!==o&&(c.timeline?x(c.timeline,o):(d=c._ease,c._ease=c._yEase,c._yEase=d,c._yoyo=o)),c=c._next},Na=function(l,o){return l&&(Tn(l)?l:Ri[l]||Vm(l))||o},Fa=function(l,o,c,d){c===void 0&&(c=function(y){return 1-o(1-y)}),d===void 0&&(d=function(y){return y<.5?o(y*2)/2:1-o((1-y)*2)/2});var u={easeIn:o,easeOut:c,easeInOut:d},m;return Ar(l,function(_){Ri[_]=Vr[_]=u,Ri[m=_.toLowerCase()]=c;for(var y in u)Ri[m+(y==="easeIn"?".in":y==="easeOut"?".out":".inOut")]=Ri[_+"."+y]=u[y]}),u},up=function(l){return function(o){return o<.5?(1-l(1-o*2))/2:.5+l((o-.5)*2)/2}},_c=function x(l,o,c){var d=o>=1?o:1,u=(c||(l?.3:.45))/(o<1?o:1),m=u/Qu*(Math.asin(1/d)||0),_=function(A){return A===1?1:d*Math.pow(2,-10*A)*vm((A-m)*u)+1},y=l==="out"?_:l==="in"?function(S){return 1-_(1-S)}:up(_);return u=Qu/u,y.config=function(S,A){return x(l,S,A)},y},yc=function x(l,o){o===void 0&&(o=1.70158);var c=function(m){return m?--m*m*((o+1)*m+o)+1:0},d=l==="out"?c:l==="in"?function(u){return 1-c(1-u)}:up(c);return d.config=function(u){return x(l,u)},d};Ar("Linear,Quad,Cubic,Quart,Quint,Strong",function(x,l){var o=l<5?l+1:l;Fa(x+",Power"+(o-1),l?function(c){return Math.pow(c,o)}:function(c){return c},function(c){return 1-Math.pow(1-c,o)},function(c){return c<.5?Math.pow(c*2,o)/2:1-Math.pow((1-c)*2,o)/2})}),Ri.Linear.easeNone=Ri.none=Ri.Linear.easeIn,Fa("Elastic",_c("in"),_c("out"),_c()),function(x,l){var o=1/l,c=2*o,d=2.5*o,u=function(_){return _<o?x*_*_:_<c?x*Math.pow(_-1.5/l,2)+.75:_<d?x*(_-=2.25/l)*_+.9375:x*Math.pow(_-2.625/l,2)+.984375};Fa("Bounce",function(m){return 1-u(1-m)},u)}(7.5625,2.75),Fa("Expo",function(x){return x?Math.pow(2,10*(x-1)):0}),Fa("Circ",function(x){return-(Af(1-x*x)-1)}),Fa("Sine",function(x){return x===1?1:-gm(x*dm)+1}),Fa("Back",yc("in"),yc("out"),yc()),Ri.SteppedEase=Ri.steps=Vr.SteppedEase={config:function(l,o){l===void 0&&(l=1);var c=1/l,d=l+(o?0:1),u=o?1:0,m=1-en;return function(_){return((d*_h(0,m,_)|0)+u)*c}}},Cl.ease=Ri["quad.out"],Ar("onComplete,onUpdate,onStart,onRepeat,onReverseComplete,onInterrupt",function(x){return uc+=x+","+x+"Params,"});var cp=function(l,o){this.id=mm++,l._gsap=this,this.target=l,this.harness=o,this.get=o?o.get:Bf,this.set=o?o.getSetter:Sc},Mh=function(){function x(o){this.vars=o,this._delay=+o.delay||0,(this._repeat=o.repeat===1/0?-2:o.repeat||0)&&(this._rDelay=o.repeatDelay||0,this._yoyo=!!o.yoyo||!!o.yoyoEase),this._ts=1,Ol(this,+o.duration,1,1),this.data=o.data,hn&&(this._ctx=hn,hn.data.push(this)),Th||Xr.wake()}var l=x.prototype;return l.delay=function(c){return c||c===0?(this.parent&&this.parent.smoothChildTiming&&this.startTime(this._start+c-this._delay),this._delay=c,this):this._delay},l.duration=function(c){return arguments.length?this.totalDuration(this._repeat>0?c+(c+this._rDelay)*this._repeat:c):this.totalDuration()&&this._dur},l.totalDuration=function(c){return arguments.length?(this._dirty=0,Ol(this,this._repeat<0?c:(c-this._repeat*this._rDelay)/(this._repeat+1))):this._tDur},l.totalTime=function(c,d){if(Dl(),!arguments.length)return this._tTime;var u=this._dp;if(u&&u.smoothChildTiming&&this._ts){for(mu(this,c),!u._dp||u.parent||Wf(u,this);u&&u.parent;)u.parent._time!==u._start+(u._ts>=0?u._tTime/u._ts:(u.totalDuration()-u._tTime)/-u._ts)&&u.totalTime(u._tTime,!0),u=u.parent;!this.parent&&this._dp.autoRemoveChildren&&(this._ts>0&&c<this._tDur||this._ts<0&&c>0||!this._tDur&&!c)&&Vs(this._dp,this,this._start-this._delay)}return(this._tTime!==c||!this._dur&&!d||this._initted&&Math.abs(this._zTime)===en||!c&&!this._initted&&(this.add||this._ptLookup))&&(this._ts||(this._pTime=c),Nf(this,c,d)),this},l.time=function(c,d){return arguments.length?this.totalTime(Math.min(this.totalDuration(),c+Vf(this))%(this._dur+this._rDelay)||(c?this._dur:0),d):this._time},l.totalProgress=function(c,d){return arguments.length?this.totalTime(this.totalDuration()*c,d):this.totalDuration()?Math.min(1,this._tTime/this._tDur):this.rawTime()>0?1:0},l.progress=function(c,d){return arguments.length?this.totalTime(this.duration()*(this._yoyo&&!(this.iteration()&1)?1-c:c)+Vf(this),d):this.duration()?Math.min(1,this._time/this._dur):this.rawTime()>0?1:0},l.iteration=function(c,d){var u=this.duration()+this._rDelay;return arguments.length?this.totalTime(this._time+(c-1)*u,d):this._repeat?Rl(this._tTime,u)+1:1},l.timeScale=function(c,d){if(!arguments.length)return this._rts===-en?0:this._rts;if(this._rts===c)return this;var u=this.parent&&this._ts?pu(this.parent._time,this):this._tTime;return this._rts=+c||0,this._ts=this._ps||c===-en?0:this._rts,this.totalTime(_h(-Math.abs(this._delay),this._tDur,u),d!==!1),du(this),Sm(this)},l.paused=function(c){return arguments.length?(this._ps!==c&&(this._ps=c,c?(this._pTime=this._tTime||Math.max(-this._delay,this.rawTime()),this._ts=this._act=0):(Dl(),this._ts=this._rts,this.totalTime(this.parent&&!this.parent.smoothChildTiming?this.rawTime():this._tTime||this._pTime,this.progress()===1&&Math.abs(this._zTime)!==en&&(this._tTime-=en)))),this):this._ps},l.startTime=function(c){if(arguments.length){this._start=c;var d=this.parent||this._dp;return d&&(d._sort||!this.parent)&&Vs(d,this,c-this._delay),this}return this._start},l.endTime=function(c){return this._start+(br(c)?this.totalDuration():this.duration())/Math.abs(this._ts||1)},l.rawTime=function(c){var d=this.parent||this._dp;return d?c&&(!this._ts||this._repeat&&this._time&&this.totalProgress()<1)?this._tTime%(this._dur+this._rDelay):this._ts?pu(d.rawTime(c),this):this._tTime:this._tTime},l.revert=function(c){c===void 0&&(c=xm);var d=nr;return nr=c,(this._initted||this._startAt)&&(this.timeline&&this.timeline.revert(c),this.totalTime(-.01,c.suppressEvents)),this.data!=="nested"&&c.kill!==!1&&this.kill(),nr=d,this},l.globalTime=function(c){for(var d=this,u=arguments.length?c:d.rawTime();d;)u=d._start+u/(Math.abs(d._ts)||1),d=d._dp;return!this.parent&&this._sat?this._sat.globalTime(c):u},l.repeat=function(c){return arguments.length?(this._repeat=c===1/0?-2:c,qf(this)):this._repeat===-2?1/0:this._repeat},l.repeatDelay=function(c){if(arguments.length){var d=this._time;return this._rDelay=c,qf(this),d?this.time(d):this}return this._rDelay},l.yoyo=function(c){return arguments.length?(this._yoyo=c,this):this._yoyo},l.seek=function(c,d){return this.totalTime(ss(this,c),br(d))},l.restart=function(c,d){return this.play().totalTime(c?-this._delay:0,br(d))},l.play=function(c,d){return c!=null&&this.seek(c,d),this.reversed(!1).paused(!1)},l.reverse=function(c,d){return c!=null&&this.seek(c||this.totalDuration(),d),this.reversed(!0).paused(!1)},l.pause=function(c,d){return c!=null&&this.seek(c,d),this.paused(!0)},l.resume=function(){return this.paused(!1)},l.reversed=function(c){return arguments.length?(!!c!==this.reversed()&&this.timeScale(-this._rts||(c?-en:0)),this):this._rts<0},l.invalidate=function(){return this._initted=this._act=0,this._zTime=-en,this},l.isActive=function(){var c=this.parent||this._dp,d=this._start,u;return!!(!c||this._ts&&this._initted&&c.isActive()&&(u=c.rawTime(!0))>=d&&u<this.endTime(!0)-en)},l.eventCallback=function(c,d,u){var m=this.vars;return arguments.length>1?(d?(m[c]=d,u&&(m[c+"Params"]=u),c==="onUpdate"&&(this._onUpdate=d)):delete m[c],this):m[c]},l.then=function(c){var d=this;return new Promise(function(u){var m=Tn(c)?c:Uf,_=function(){var S=d.then;d.then=null,Tn(m)&&(m=m(d))&&(m.then||m===d)&&(d.then=S),u(m),d.then=S};d._initted&&d.totalProgress()===1&&d._ts>=0||!d._tTime&&d._ts<0?_():d._prom=_})},l.kill=function(){xh(this)},x}();rs(Mh.prototype,{_time:0,_start:0,_end:0,_tTime:0,_tDur:0,_dirty:0,_repeat:0,_yoyo:!1,parent:null,_initted:!1,_rDelay:0,_ts:1,_dp:0,ratio:0,_zTime:-en,_prom:0,_ps:!1,_rts:1});var gr=function(x){bf(l,x);function l(c,d){var u;return c===void 0&&(c={}),u=x.call(this,c)||this,u.labels={},u.smoothChildTiming=!!c.smoothChildTiming,u.autoRemoveChildren=!!c.autoRemoveChildren,u._sort=br(c.sortChildren),pn&&Vs(c.parent||pn,uo(u),d),c.reversed&&u.reverse(),c.paused&&u.paused(!0),c.scrollTrigger&&jf(uo(u),c.scrollTrigger),u}var o=l.prototype;return o.to=function(d,u,m){return vh(0,arguments,this),this},o.from=function(d,u,m){return vh(1,arguments,this),this},o.fromTo=function(d,u,m,_){return vh(2,arguments,this),this},o.set=function(d,u,m){return u.duration=0,u.parent=this,gh(u).repeatDelay||(u.repeat=0),u.immediateRender=!!u.immediateRender,new kn(d,u,ss(this,m),1),this},o.call=function(d,u,m){return Vs(this,kn.delayedCall(0,d,u),m)},o.staggerTo=function(d,u,m,_,y,S,A){return m.duration=u,m.stagger=m.stagger||_,m.onComplete=S,m.onCompleteParams=A,m.parent=this,new kn(d,m,ss(this,y)),this},o.staggerFrom=function(d,u,m,_,y,S,A){return m.runBackwards=1,gh(m).immediateRender=br(m.immediateRender),this.staggerTo(d,u,m,_,y,S,A)},o.staggerFromTo=function(d,u,m,_,y,S,A,I){return _.startAt=m,gh(_).immediateRender=br(_.immediateRender),this.staggerTo(d,u,_,y,S,A,I)},o.render=function(d,u,m){var _=this._time,y=this._dirty?this.totalDuration():this._tDur,S=this._dur,A=d<=0?0:jn(d),I=this._zTime<0!=d<0&&(this._initted||!S),k,D,N,E,P,T,M,R,b,U,F,j;if(this!==pn&&A>y&&d>=0&&(A=y),A!==this._tTime||m||I){if(_!==this._time&&S&&(A+=this._time-_,d+=this._time-_),k=A,b=this._start,R=this._ts,T=!R,I&&(S||(_=this._zTime),(d||!u)&&(this._zTime=d)),this._repeat){if(F=this._yoyo,P=S+this._rDelay,this._repeat<-1&&d<0)return this.totalTime(P*100+d,u,m);if(k=jn(A%P),A===y?(E=this._repeat,k=S):(E=~~(A/P),E&&E===A/P&&(k=S,E--),k>S&&(k=S)),U=Rl(this._tTime,P),!_&&this._tTime&&U!==E&&this._tTime-U*P-this._dur<=0&&(U=E),F&&E&1&&(k=S-k,j=1),E!==U&&!this._lock){var J=F&&U&1,$=J===(F&&E&1);if(E<U&&(J=!J),_=J?0:A%S?S:A,this._lock=1,this.render(_||(j?0:jn(E*P)),u,!S)._lock=0,this._tTime=A,!u&&this.parent&&jr(this,"onRepeat"),this.vars.repeatRefresh&&!j&&(this.invalidate()._lock=1),_&&_!==this._time||T!==!this._ts||this.vars.onRepeat&&!this.parent&&!this._act)return this;if(S=this._dur,y=this._tDur,$&&(this._lock=2,_=J?S:-1e-4,this.render(_,!0),this.vars.repeatRefresh&&!j&&this.invalidate()),this._lock=0,!this._ts&&!T)return this;hp(this,j)}}if(this._hasPause&&!this._forcing&&this._lock<2&&(M=Cm(this,jn(_),jn(k)),M&&(A-=k-(k=M._start))),this._tTime=A,this._time=k,this._act=!R,this._initted||(this._onUpdate=this.vars.onUpdate,this._initted=1,this._zTime=d,_=0),!_&&k&&!u&&!E&&(jr(this,"onStart"),this._tTime!==A))return this;if(k>=_&&d>=0)for(D=this._first;D;){if(N=D._next,(D._act||k>=D._start)&&D._ts&&M!==D){if(D.parent!==this)return this.render(d,u,m);if(D.render(D._ts>0?(k-D._start)*D._ts:(D._dirty?D.totalDuration():D._tDur)+(k-D._start)*D._ts,u,m),k!==this._time||!this._ts&&!T){M=0,N&&(A+=this._zTime=-en);break}}D=N}else{D=this._last;for(var ct=d<0?d:k;D;){if(N=D._prev,(D._act||ct<=D._end)&&D._ts&&M!==D){if(D.parent!==this)return this.render(d,u,m);if(D.render(D._ts>0?(ct-D._start)*D._ts:(D._dirty?D.totalDuration():D._tDur)+(ct-D._start)*D._ts,u,m||nr&&(D._initted||D._startAt)),k!==this._time||!this._ts&&!T){M=0,N&&(A+=this._zTime=ct?-en:en);break}}D=N}}if(M&&!u&&(this.pause(),M.render(k>=_?0:-en)._zTime=k>=_?1:-1,this._ts))return this._start=b,du(this),this.render(d,u,m);this._onUpdate&&!u&&jr(this,"onUpdate",!0),(A===y&&this._tTime>=this.totalDuration()||!A&&_)&&(b===this._start||Math.abs(R)!==Math.abs(this._ts))&&(this._lock||((d||!S)&&(A===y&&this._ts>0||!A&&this._ts<0)&&Yo(this,1),!u&&!(d<0&&!_)&&(A||_||!y)&&(jr(this,A===y&&d>=0?"onComplete":"onReverseComplete",!0),this._prom&&!(A<y&&this.timeScale()>0)&&this._prom())))}return this},o.add=function(d,u){var m=this;if(co(u)||(u=ss(this,u,d)),!(d instanceof Mh)){if(rr(d))return d.forEach(function(_){return m.add(_,u)}),this;if(Wn(d))return this.addLabel(d,u);if(Tn(d))d=kn.delayedCall(0,d);else return this}return this!==d?Vs(this,d,u):this},o.getChildren=function(d,u,m,_){d===void 0&&(d=!0),u===void 0&&(u=!0),m===void 0&&(m=!0),_===void 0&&(_=-ns);for(var y=[],S=this._first;S;)S._start>=_&&(S instanceof kn?u&&y.push(S):(m&&y.push(S),d&&y.push.apply(y,S.getChildren(!0,u,m)))),S=S._next;return y},o.getById=function(d){for(var u=this.getChildren(1,1,1),m=u.length;m--;)if(u[m].vars.id===d)return u[m]},o.remove=function(d){return Wn(d)?this.removeLabel(d):Tn(d)?this.killTweensOf(d):(fu(this,d),d===this._recent&&(this._recent=this._last),Ba(this))},o.totalTime=function(d,u){return arguments.length?(this._forcing=1,!this._dp&&this._ts&&(this._start=jn(Xr.time-(this._ts>0?d/this._ts:(this.totalDuration()-d)/-this._ts))),x.prototype.totalTime.call(this,d,u),this._forcing=0,this):this._tTime},o.addLabel=function(d,u){return this.labels[d]=ss(this,u),this},o.removeLabel=function(d){return delete this.labels[d],this},o.addPause=function(d,u,m){var _=kn.delayedCall(0,u||mh,m);return _.data="isPause",this._hasPause=1,Vs(this,_,ss(this,d))},o.removePause=function(d){var u=this._first;for(d=ss(this,d);u;)u._start===d&&u.data==="isPause"&&Yo(u),u=u._next},o.killTweensOf=function(d,u,m){for(var _=this.getTweensOf(d,m),y=_.length;y--;)$o!==_[y]&&_[y].kill(d,u);return this},o.getTweensOf=function(d,u){for(var m=[],_=os(d),y=this._first,S=co(u),A;y;)y instanceof kn?wm(y._targets,_)&&(S?(!$o||y._initted&&y._ts)&&y.globalTime(0)<=u&&y.globalTime(y.totalDuration())>u:!u||y.isActive())&&m.push(y):(A=y.getTweensOf(_,u)).length&&m.push.apply(m,A),y=y._next;return m},o.tweenTo=function(d,u){u=u||{};var m=this,_=ss(m,d),y=u,S=y.startAt,A=y.onStart,I=y.onStartParams,k=y.immediateRender,D,N=kn.to(m,rs({ease:u.ease||"none",lazy:!1,immediateRender:!1,time:_,overwrite:"auto",duration:u.duration||Math.abs((_-(S&&"time"in S?S.time:m._time))/m.timeScale())||en,onStart:function(){if(m.pause(),!D){var P=u.duration||Math.abs((_-(S&&"time"in S?S.time:m._time))/m.timeScale());N._dur!==P&&Ol(N,P,0,1).render(N._time,!0,!0),D=1}A&&A.apply(N,I||[])}},u));return k?N.render(0):N},o.tweenFromTo=function(d,u,m){return this.tweenTo(u,rs({startAt:{time:ss(this,d)}},m))},o.recent=function(){return this._recent},o.nextLabel=function(d){return d===void 0&&(d=this._time),ep(this,ss(this,d))},o.previousLabel=function(d){return d===void 0&&(d=this._time),ep(this,ss(this,d),1)},o.currentLabel=function(d){return arguments.length?this.seek(d,!0):this.previousLabel(this._time+en)},o.shiftChildren=function(d,u,m){m===void 0&&(m=0);for(var _=this._first,y=this.labels,S;_;)_._start>=m&&(_._start+=d,_._end+=d),_=_._next;if(u)for(S in y)y[S]>=m&&(y[S]+=d);return Ba(this)},o.invalidate=function(d){var u=this._first;for(this._lock=0;u;)u.invalidate(d),u=u._next;return x.prototype.invalidate.call(this,d)},o.clear=function(d){d===void 0&&(d=!0);for(var u=this._first,m;u;)m=u._next,this.remove(u),u=m;return this._dp&&(this._time=this._tTime=this._pTime=0),d&&(this.labels={}),Ba(this)},o.totalDuration=function(d){var u=0,m=this,_=m._last,y=ns,S,A,I;if(arguments.length)return m.timeScale((m._repeat<0?m.duration():m.totalDuration())/(m.reversed()?-d:d));if(m._dirty){for(I=m.parent;_;)S=_._prev,_._dirty&&_.totalDuration(),A=_._start,A>y&&m._sort&&_._ts&&!m._lock?(m._lock=1,Vs(m,_,A-_._delay,1)._lock=0):y=A,A<0&&_._ts&&(u-=A,(!I&&!m._dp||I&&I.smoothChildTiming)&&(m._start+=A/m._ts,m._time-=A,m._tTime-=A),m.shiftChildren(-A,!1,-1/0),y=0),_._end>u&&_._ts&&(u=_._end),_=S;Ol(m,m===pn&&m._time>u?m._time:u,1,1),m._dirty=0}return m._tDur},l.updateRoot=function(d){if(pn._ts&&(Nf(pn,pu(d,pn)),zf=Xr.frame),Xr.frame>=kf){kf+=Hr.autoSleep||120;var u=pn._first;if((!u||!u._ts)&&Hr.autoSleep&&Xr._listeners.length<2){for(;u&&!u._ts;)u=u._next;u||Xr.sleep()}}},l}(Mh);rs(gr.prototype,{_lock:0,_hasPause:0,_forcing:0});var Wm=function(l,o,c,d,u,m,_){var y=new Cr(this._pt,l,o,0,1,vp,null,u),S=0,A=0,I,k,D,N,E,P,T,M;for(y.b=c,y.e=d,c+="",d+="",(T=~d.indexOf("random("))&&(d=yh(d)),m&&(M=[c,d],m(M,l,o),c=M[0],d=M[1]),k=c.match(nc)||[];I=nc.exec(d);)N=I[0],E=d.substring(S,I.index),D?D=(D+1)%5:E.substr(-5)==="rgba("&&(D=1),N!==k[A++]&&(P=parseFloat(k[A-1])||0,y._pt={_next:y._pt,p:E||A===1?E:",",s:P,c:N.charAt(1)==="="?Ll(P,N)-P:parseFloat(N)-P,m:D&&D<4?Math.round:0},S=nc.lastIndex);return y.c=S<d.length?d.substring(S,d.length):"",y.fp=_,(Lf.test(d)||T)&&(y.e=0),this._pt=y,y},xc=function(l,o,c,d,u,m,_,y,S,A){Tn(d)&&(d=d(u||0,l,m));var I=l[o],k=c!=="get"?c:Tn(I)?S?l[o.indexOf("set")||!Tn(l["get"+o.substr(3)])?o:"get"+o.substr(3)](S):l[o]():I,D=Tn(I)?S?Zm:mp:Mc,N;if(Wn(d)&&(~d.indexOf("random(")&&(d=yh(d)),d.charAt(1)==="="&&(N=Ll(k,d)+(sr(k)||0),(N||N===0)&&(d=N))),!A||k!==d||wc)return!isNaN(k*d)&&d!==""?(N=new Cr(this._pt,l,o,+k||0,d-(k||0),typeof I=="boolean"?$m:gp,0,D),S&&(N.fp=S),_&&N.modifier(_,this,l),this._pt=N):(!I&&!(o in l)&&oc(o,d),Wm.call(this,l,o,k,d,D,y||Hr.stringFilter,S))},jm=function(l,o,c,d,u){if(Tn(l)&&(l=Sh(l,u,o,c,d)),!Gs(l)||l.style&&l.nodeType||rr(l)||Cf(l))return Wn(l)?Sh(l,u,o,c,d):l;var m={},_;for(_ in l)m[_]=Sh(l[_],u,o,c,d);return m},fp=function(l,o,c,d,u,m){var _,y,S,A;if(Wr[l]&&(_=new Wr[l]).init(u,_.rawVars?o[l]:jm(o[l],d,u,m,c),c,d,m)!==!1&&(c._pt=y=new Cr(c._pt,u,l,0,1,_.render,_,0,_.priority),c!==Il))for(S=c._ptLookup[c._targets.indexOf(u)],A=_._props.length;A--;)S[_._props[A]]=y;return _},$o,wc,Tc=function x(l,o,c){var d=l.vars,u=d.ease,m=d.startAt,_=d.immediateRender,y=d.lazy,S=d.onUpdate,A=d.runBackwards,I=d.yoyoEase,k=d.keyframes,D=d.autoRevert,N=l._dur,E=l._startAt,P=l._targets,T=l.parent,M=T&&T.data==="nested"?T.vars.targets:P,R=l._overwrite==="auto"&&!Ku,b=l.timeline,U,F,j,J,$,ct,It,et,yt,G,Pt,Et,Ct;if(b&&(!k||!u)&&(u="none"),l._ease=Na(u,Cl.ease),l._yEase=I?lp(Na(I===!0?u:I,Cl.ease)):0,I&&l._yoyo&&!l._repeat&&(I=l._yEase,l._yEase=l._ease,l._ease=I),l._from=!b&&!!d.runBackwards,!b||k&&!d.stagger){if(et=P[0]?za(P[0]).harness:0,Et=et&&d[et.prop],U=cu(d,ac),E&&(E._zTime<0&&E.progress(1),o<0&&A&&_&&!D?E.render(-1,!0):E.revert(A&&N?lu:ym),E._lazy=0),m){if(Yo(l._startAt=kn.set(P,rs({data:"isStart",overwrite:!1,parent:T,immediateRender:!0,lazy:!E&&br(y),startAt:null,delay:0,onUpdate:S&&function(){return jr(l,"onUpdate")},stagger:0},m))),l._startAt._dp=0,l._startAt._sat=l,o<0&&(nr||!_&&!D)&&l._startAt.revert(lu),_&&N&&o<=0&&c<=0){o&&(l._zTime=o);return}}else if(A&&N&&!E){if(o&&(_=!1),j=rs({overwrite:!1,data:"isFromStart",lazy:_&&!E&&br(y),immediateRender:_,stagger:0,parent:T},U),Et&&(j[et.prop]=Et),Yo(l._startAt=kn.set(P,j)),l._startAt._dp=0,l._startAt._sat=l,o<0&&(nr?l._startAt.revert(lu):l._startAt.render(-1,!0)),l._zTime=o,!_)x(l._startAt,en,en);else if(!o)return}for(l._pt=l._ptCache=0,y=N&&br(y)||y&&!N,F=0;F<P.length;F++){if($=P[F],It=$._gsap||cc(P)[F]._gsap,l._ptLookup[F]=G={},lc[It.id]&&qo.length&&uu(),Pt=M===P?F:M.indexOf($),et&&(yt=new et).init($,Et||U,l,Pt,M)!==!1&&(l._pt=J=new Cr(l._pt,$,yt.name,0,1,yt.render,yt,0,yt.priority),yt._props.forEach(function(fe){G[fe]=J}),yt.priority&&(ct=1)),!et||Et)for(j in U)Wr[j]&&(yt=fp(j,U,l,Pt,$,M))?yt.priority&&(ct=1):G[j]=J=xc.call(l,$,j,"get",U[j],Pt,M,0,d.stringFilter);l._op&&l._op[F]&&l.kill($,l._op[F]),R&&l._pt&&($o=l,pn.killTweensOf($,G,l.globalTime(o)),Ct=!l.parent,$o=0),l._pt&&y&&(lc[It.id]=1)}ct&&_p(l),l._onInit&&l._onInit(l)}l._onUpdate=S,l._initted=(!l._op||l._pt)&&!Ct,k&&o<=0&&b.render(ns,!0,!0)},Xm=function(l,o,c,d,u,m,_,y){var S=(l._pt&&l._ptCache||(l._ptCache={}))[o],A,I,k,D;if(!S)for(S=l._ptCache[o]=[],k=l._ptLookup,D=l._targets.length;D--;){if(A=k[D][o],A&&A.d&&A.d._pt)for(A=A.d._pt;A&&A.p!==o&&A.fp!==o;)A=A._next;if(!A)return wc=1,l.vars[o]="+=0",Tc(l,_),wc=0,y?dh(o+" not eligible for reset"):1;S.push(A)}for(D=S.length;D--;)I=S[D],A=I._pt||I,A.s=(d||d===0)&&!u?d:A.s+(d||0)+m*A.c,A.c=c-A.s,I.e&&(I.e=Rn(c)+sr(I.e)),I.b&&(I.b=A.s+sr(I.b))},qm=function(l,o){var c=l[0]?za(l[0]).harness:0,d=c&&c.aliases,u,m,_,y;if(!d)return o;u=ka({},o);for(m in d)if(m in u)for(y=d[m].split(","),_=y.length;_--;)u[y[_]]=u[m];return u},Ym=function(l,o,c,d){var u=o.ease||d||"power1.inOut",m,_;if(rr(o))_=c[l]||(c[l]=[]),o.forEach(function(y,S){return _.push({t:S/(o.length-1)*100,v:y,e:u})});else for(m in o)_=c[m]||(c[m]=[]),m==="ease"||_.push({t:parseFloat(l),v:o[m],e:u})},Sh=function(l,o,c,d,u){return Tn(l)?l.call(o,c,d,u):Wn(l)&&~l.indexOf("random(")?yh(l):l},pp=uc+"repeat,repeatDelay,yoyo,repeatRefresh,yoyoEase,autoRevert",dp={};Ar(pp+",id,stagger,delay,duration,paused,scrollTrigger",function(x){return dp[x]=1});var kn=function(x){bf(l,x);function l(c,d,u,m){var _;typeof d=="number"&&(u.duration=d,d=u,u=null),_=x.call(this,m?d:gh(d))||this;var y=_.vars,S=y.duration,A=y.delay,I=y.immediateRender,k=y.stagger,D=y.overwrite,N=y.keyframes,E=y.defaults,P=y.scrollTrigger,T=y.yoyoEase,M=d.parent||pn,R=(rr(c)||Cf(c)?co(c[0]):"length"in d)?[c]:os(c),b,U,F,j,J,$,ct,It;if(_._targets=R.length?cc(R):dh("GSAP target "+c+" not found. https://gsap.com",!Hr.nullTargetWarn)||[],_._ptLookup=[],_._overwrite=D,N||k||ou(S)||ou(A)){if(d=_.vars,b=_.timeline=new gr({data:"nested",defaults:E||{},targets:M&&M.data==="nested"?M.vars.targets:R}),b.kill(),b.parent=b._dp=uo(_),b._start=0,k||ou(S)||ou(A)){if(j=R.length,ct=k&&Jf(k),Gs(k))for(J in k)~pp.indexOf(J)&&(It||(It={}),It[J]=k[J]);for(U=0;U<j;U++)F=cu(d,dp),F.stagger=0,T&&(F.yoyoEase=T),It&&ka(F,It),$=R[U],F.duration=+Sh(S,uo(_),U,$,R),F.delay=(+Sh(A,uo(_),U,$,R)||0)-_._delay,!k&&j===1&&F.delay&&(_._delay=A=F.delay,_._start+=A,F.delay=0),b.to($,F,ct?ct(U,$,R):0),b._ease=Ri.none;b.duration()?S=A=0:_.timeline=0}else if(N){gh(rs(b.vars.defaults,{ease:"none"})),b._ease=Na(N.ease||d.ease||"none");var et=0,yt,G,Pt;if(rr(N))N.forEach(function(Et){return b.to(R,Et,">")}),b.duration();else{F={};for(J in N)J==="ease"||J==="easeEach"||Ym(J,N[J],F,N.easeEach);for(J in F)for(yt=F[J].sort(function(Et,Ct){return Et.t-Ct.t}),et=0,U=0;U<yt.length;U++)G=yt[U],Pt={ease:G.e,duration:(G.t-(U?yt[U-1].t:0))/100*S},Pt[J]=G.v,b.to(R,Pt,et),et+=Pt.duration;b.duration()<S&&b.to({},{duration:S-b.duration()})}}S||_.duration(S=b.duration())}else _.timeline=0;return D===!0&&!Ku&&($o=uo(_),pn.killTweensOf(R),$o=0),Vs(M,uo(_),u),d.reversed&&_.reverse(),d.paused&&_.paused(!0),(I||!S&&!N&&_._start===jn(M._time)&&br(I)&&Em(uo(_))&&M.data!=="nested")&&(_._tTime=-en,_.render(Math.max(0,-A)||0)),P&&jf(uo(_),P),_}var o=l.prototype;return o.render=function(d,u,m){var _=this._time,y=this._tDur,S=this._dur,A=d<0,I=d>y-en&&!A?y:d<en?0:d,k,D,N,E,P,T,M,R,b;if(!S)Am(this,d,u,m);else if(I!==this._tTime||!d||m||!this._initted&&this._tTime||this._startAt&&this._zTime<0!==A){if(k=I,R=this.timeline,this._repeat){if(E=S+this._rDelay,this._repeat<-1&&A)return this.totalTime(E*100+d,u,m);if(k=jn(I%E),I===y?(N=this._repeat,k=S):(N=~~(I/E),N&&N===jn(I/E)&&(k=S,N--),k>S&&(k=S)),T=this._yoyo&&N&1,T&&(b=this._yEase,k=S-k),P=Rl(this._tTime,E),k===_&&!m&&this._initted&&N===P)return this._tTime=I,this;N!==P&&(R&&this._yEase&&hp(R,T),this.vars.repeatRefresh&&!T&&!this._lock&&this._time!==E&&this._initted&&(this._lock=m=1,this.render(jn(E*N),!0).invalidate()._lock=0))}if(!this._initted){if(Xf(this,A?d:k,m,u,I))return this._tTime=0,this;if(_!==this._time&&!(m&&this.vars.repeatRefresh&&N!==P))return this;if(S!==this._dur)return this.render(d,u,m)}if(this._tTime=I,this._time=k,!this._act&&this._ts&&(this._act=1,this._lazy=0),this.ratio=M=(b||this._ease)(k/S),this._from&&(this.ratio=M=1-M),k&&!_&&!u&&!N&&(jr(this,"onStart"),this._tTime!==I))return this;for(D=this._pt;D;)D.r(M,D.d),D=D._next;R&&R.render(d<0?d:R._dur*R._ease(k/this._dur),u,m)||this._startAt&&(this._zTime=d),this._onUpdate&&!u&&(A&&fc(this,d,u,m),jr(this,"onUpdate")),this._repeat&&N!==P&&this.vars.onRepeat&&!u&&this.parent&&jr(this,"onRepeat"),(I===this._tDur||!I)&&this._tTime===I&&(A&&!this._onUpdate&&fc(this,d,!0,!0),(d||!S)&&(I===this._tDur&&this._ts>0||!I&&this._ts<0)&&Yo(this,1),!u&&!(A&&!_)&&(I||_||T)&&(jr(this,I===y?"onComplete":"onReverseComplete",!0),this._prom&&!(I<y&&this.timeScale()>0)&&this._prom()))}return this},o.targets=function(){return this._targets},o.invalidate=function(d){return(!d||!this.vars.runBackwards)&&(this._startAt=0),this._pt=this._op=this._onUpdate=this._lazy=this.ratio=0,this._ptLookup=[],this.timeline&&this.timeline.invalidate(d),x.prototype.invalidate.call(this,d)},o.resetTo=function(d,u,m,_,y){Th||Xr.wake(),this._ts||this.play();var S=Math.min(this._dur,(this._dp._time-this._start)*this._ts),A;return this._initted||Tc(this,S),A=this._ease(S/this._dur),Xm(this,d,u,m,_,A,S,y)?this.resetTo(d,u,m,_,1):(mu(this,0),this.parent||Hf(this._dp,this,"_first","_last",this._dp._sort?"_start":0),this.render(0))},o.kill=function(d,u){if(u===void 0&&(u="all"),!d&&(!u||u==="all"))return this._lazy=this._pt=0,this.parent?xh(this):this;if(this.timeline){var m=this.timeline.totalDuration();return this.timeline.killTweensOf(d,u,$o&&$o.vars.overwrite!==!0)._first||xh(this),this.parent&&m!==this.timeline.totalDuration()&&Ol(this,this._dur*this.timeline._tDur/m,0,1),this}var _=this._targets,y=d?os(d):_,S=this._ptLookup,A=this._pt,I,k,D,N,E,P,T;if((!u||u==="all")&&Mm(_,y))return u==="all"&&(this._pt=0),xh(this);for(I=this._op=this._op||[],u!=="all"&&(Wn(u)&&(E={},Ar(u,function(M){return E[M]=1}),u=E),u=qm(_,u)),T=_.length;T--;)if(~y.indexOf(_[T])){k=S[T],u==="all"?(I[T]=u,N=k,D={}):(D=I[T]=I[T]||{},N=u);for(E in N)P=k&&k[E],P&&((!("kill"in P.d)||P.d.kill(E)===!0)&&fu(this,P,"_pt"),delete k[E]),D!=="all"&&(D[E]=1)}return this._initted&&!this._pt&&A&&xh(this),this},l.to=function(d,u){return new l(d,u,arguments[2])},l.from=function(d,u){return vh(1,arguments)},l.delayedCall=function(d,u,m,_){return new l(u,0,{immediateRender:!1,lazy:!1,overwrite:!1,delay:d,onComplete:u,onReverseComplete:u,onCompleteParams:m,onReverseCompleteParams:m,callbackScope:_})},l.fromTo=function(d,u,m){return vh(2,arguments)},l.set=function(d,u){return u.duration=0,u.repeatDelay||(u.repeat=0),new l(d,u)},l.killTweensOf=function(d,u,m){return pn.killTweensOf(d,u,m)},l}(Mh);rs(kn.prototype,{_targets:[],_lazy:0,_startAt:0,_op:0,_onInit:0}),Ar("staggerTo,staggerFrom,staggerFromTo",function(x){kn[x]=function(){var l=new gr,o=dc.call(arguments,0);return o.splice(x==="staggerFromTo"?5:4,0,0),l[x].apply(l,o)}});var Mc=function(l,o,c){return l[o]=c},mp=function(l,o,c){return l[o](c)},Zm=function(l,o,c,d){return l[o](d.fp,c)},Jm=function(l,o,c){return l.setAttribute(o,c)},Sc=function(l,o){return Tn(l[o])?mp:tc(l[o])&&l.setAttribute?Jm:Mc},gp=function(l,o){return o.set(o.t,o.p,Math.round((o.s+o.c*l)*1e6)/1e6,o)},$m=function(l,o){return o.set(o.t,o.p,!!(o.s+o.c*l),o)},vp=function(l,o){var c=o._pt,d="";if(!l&&o.b)d=o.b;else if(l===1&&o.e)d=o.e;else{for(;c;)d=c.p+(c.m?c.m(c.s+c.c*l):Math.round((c.s+c.c*l)*1e4)/1e4)+d,c=c._next;d+=o.c}o.set(o.t,o.p,d,o)},Ec=function(l,o){for(var c=o._pt;c;)c.r(l,c.d),c=c._next},Km=function(l,o,c,d){for(var u=this._pt,m;u;)m=u._next,u.p===d&&u.modifier(l,o,c),u=m},Qm=function(l){for(var o=this._pt,c,d;o;)d=o._next,o.p===l&&!o.op||o.op===l?fu(this,o,"_pt"):o.dep||(c=1),o=d;return!c},tg=function(l,o,c,d){d.mSet(l,o,d.m.call(d.tween,c,d.mt),d)},_p=function(l){for(var o=l._pt,c,d,u,m;o;){for(c=o._next,d=u;d&&d.pr>o.pr;)d=d._next;(o._prev=d?d._prev:m)?o._prev._next=o:u=o,(o._next=d)?d._prev=o:m=o,o=c}l._pt=u},Cr=function(){function x(o,c,d,u,m,_,y,S,A){this.t=c,this.s=u,this.c=m,this.p=d,this.r=_||gp,this.d=y||this,this.set=S||Mc,this.pr=A||0,this._next=o,o&&(o._prev=this)}var l=x.prototype;return l.modifier=function(c,d,u){this.mSet=this.mSet||this.set,this.set=tg,this.m=c,this.mt=u,this.tween=d},x}();Ar(uc+"parent,duration,ease,delay,overwrite,runBackwards,startAt,yoyo,immediateRender,repeat,repeatDelay,data,paused,reversed,lazy,callbackScope,stringFilter,id,yoyoEase,stagger,inherit,repeatRefresh,keyframes,autoRevert,scrollTrigger",function(x){return ac[x]=1}),Vr.TweenMax=Vr.TweenLite=kn,Vr.TimelineLite=Vr.TimelineMax=gr,pn=new gr({sortChildren:!1,defaults:Cl,autoRemoveChildren:!0,id:"root",smoothChildTiming:!0}),Hr.stringFilter=ap;var Ua=[],gu={},eg=[],yp=0,ig=0,bc=function(l){return(gu[l]||eg).map(function(o){return o()})},Ac=function(){var l=Date.now(),o=[];l-yp>2&&(bc("matchMediaInit"),Ua.forEach(function(c){var d=c.queries,u=c.conditions,m,_,y,S;for(_ in d)m=Hs.matchMedia(d[_]).matches,m&&(y=1),m!==u[_]&&(u[_]=m,S=1);S&&(c.revert(),y&&o.push(c))}),bc("matchMediaRevert"),o.forEach(function(c){return c.onMatch(c,function(d){return c.add(null,d)})}),yp=l,bc("matchMedia"))},xp=function(){function x(o,c){this.selector=c&&mc(c),this.data=[],this._r=[],this.isReverted=!1,this.id=ig++,o&&this.add(o)}var l=x.prototype;return l.add=function(c,d,u){Tn(c)&&(u=d,d=c,c=Tn);var m=this,_=function(){var S=hn,A=m.selector,I;return S&&S!==m&&S.data.push(m),u&&(m.selector=mc(u)),hn=m,I=d.apply(m,arguments),Tn(I)&&m._r.push(I),hn=S,m.selector=A,m.isReverted=!1,I};return m.last=_,c===Tn?_(m,function(y){return m.add(null,y)}):c?m[c]=_:_},l.ignore=function(c){var d=hn;hn=null,c(this),hn=d},l.getTweens=function(){var c=[];return this.data.forEach(function(d){return d instanceof x?c.push.apply(c,d.getTweens()):d instanceof kn&&!(d.parent&&d.parent.data==="nested")&&c.push(d)}),c},l.clear=function(){this._r.length=this.data.length=0},l.kill=function(c,d){var u=this;if(c?function(){for(var _=u.getTweens(),y=u.data.length,S;y--;)S=u.data[y],S.data==="isFlip"&&(S.revert(),S.getChildren(!0,!0,!1).forEach(function(A){return _.splice(_.indexOf(A),1)}));for(_.map(function(A){return{g:A._dur||A._delay||A._sat&&!A._sat.vars.immediateRender?A.globalTime(0):-1/0,t:A}}).sort(function(A,I){return I.g-A.g||-1/0}).forEach(function(A){return A.t.revert(c)}),y=u.data.length;y--;)S=u.data[y],S instanceof gr?S.data!=="nested"&&(S.scrollTrigger&&S.scrollTrigger.revert(),S.kill()):!(S instanceof kn)&&S.revert&&S.revert(c);u._r.forEach(function(A){return A(c,u)}),u.isReverted=!0}():this.data.forEach(function(_){return _.kill&&_.kill()}),this.clear(),d)for(var m=Ua.length;m--;)Ua[m].id===this.id&&Ua.splice(m,1)},l.revert=function(c){this.kill(c||{})},x}(),ng=function(){function x(o){this.contexts=[],this.scope=o,hn&&hn.data.push(this)}var l=x.prototype;return l.add=function(c,d,u){Gs(c)||(c={matches:c});var m=new xp(0,u||this.scope),_=m.conditions={},y,S,A;hn&&!m.selector&&(m.selector=hn.selector),this.contexts.push(m),d=m.add("onMatch",d),m.queries=c;for(S in c)S==="all"?A=1:(y=Hs.matchMedia(c[S]),y&&(Ua.indexOf(m)<0&&Ua.push(m),(_[S]=y.matches)&&(A=1),y.addListener?y.addListener(Ac):y.addEventListener("change",Ac)));return A&&d(m,function(I){return m.add(null,I)}),this},l.revert=function(c){this.kill(c||{})},l.kill=function(c){this.contexts.forEach(function(d){return d.kill(c,!0)})},x}(),vu={registerPlugin:function(){for(var l=arguments.length,o=new Array(l),c=0;c<l;c++)o[c]=arguments[c];o.forEach(function(d){return np(d)})},timeline:function(l){return new gr(l)},getTweensOf:function(l,o){return pn.getTweensOf(l,o)},getProperty:function(l,o,c,d){Wn(l)&&(l=os(l)[0]);var u=za(l||{}).get,m=c?Uf:Ff;return c==="native"&&(c=""),l&&(o?m((Wr[o]&&Wr[o].get||u)(l,o,c,d)):function(_,y,S){return m((Wr[_]&&Wr[_].get||u)(l,_,y,S))})},quickSetter:function(l,o,c){if(l=os(l),l.length>1){var d=l.map(function(A){return Pr.quickSetter(A,o,c)}),u=d.length;return function(A){for(var I=u;I--;)d[I](A)}}l=l[0]||{};var m=Wr[o],_=za(l),y=_.harness&&(_.harness.aliases||{})[o]||o,S=m?function(A){var I=new m;Il._pt=0,I.init(l,c?A+c:A,Il,0,[l]),I.render(1,I),Il._pt&&Ec(1,Il)}:_.set(l,y);return m?S:function(A){return S(l,y,c?A+c:A,_,1)}},quickTo:function(l,o,c){var d,u=Pr.to(l,ka((d={},d[o]="+=0.1",d.paused=!0,d),c||{})),m=function(y,S,A){return u.resetTo(o,y,S,A)};return m.tween=u,m},isTweening:function(l){return pn.getTweensOf(l,!0).length>0},defaults:function(l){return l&&l.ease&&(l.ease=Na(l.ease,Cl.ease)),Gf(Cl,l||{})},config:function(l){return Gf(Hr,l||{})},registerEffect:function(l){var o=l.name,c=l.effect,d=l.plugins,u=l.defaults,m=l.extendTimeline;(d||"").split(",").forEach(function(_){return _&&!Wr[_]&&!Vr[_]&&dh(o+" effect requires "+_+" plugin.")}),hc[o]=function(_,y,S){return c(os(_),rs(y||{},u),S)},m&&(gr.prototype[o]=function(_,y,S){return this.add(hc[o](_,Gs(y)?y:(S=y)&&{},this),S)})},registerEase:function(l,o){Ri[l]=Na(o)},parseEase:function(l,o){return arguments.length?Na(l,o):Ri},getById:function(l){return pn.getById(l)},exportRoot:function(l,o){l===void 0&&(l={});var c=new gr(l),d,u;for(c.smoothChildTiming=br(l.smoothChildTiming),pn.remove(c),c._dp=0,c._time=c._tTime=pn._time,d=pn._first;d;)u=d._next,(o||!(!d._dur&&d instanceof kn&&d.vars.onComplete===d._targets[0]))&&Vs(c,d,d._start-d._delay),d=u;return Vs(pn,c,0),c},context:function(l,o){return l?new xp(l,o):hn},matchMedia:function(l){return new ng(l)},matchMediaRefresh:function(){return Ua.forEach(function(l){var o=l.conditions,c,d;for(d in o)o[d]&&(o[d]=!1,c=1);c&&l.revert()})||Ac()},addEventListener:function(l,o){var c=gu[l]||(gu[l]=[]);~c.indexOf(o)||c.push(o)},removeEventListener:function(l,o){var c=gu[l],d=c&&c.indexOf(o);d>=0&&c.splice(d,1)},utils:{wrap:zm,wrapYoyo:km,distribute:Jf,random:Kf,snap:$f,normalize:Dm,getUnit:sr,clamp:Lm,splitColor:rp,toArray:os,selector:mc,mapRange:tp,pipe:Om,unitize:Im,interpolate:Bm,shuffle:Zf},install:If,effects:hc,ticker:Xr,updateRoot:gr.updateRoot,plugins:Wr,globalTimeline:pn,core:{PropTween:Cr,globals:Df,Tween:kn,Timeline:gr,Animation:Mh,getCache:za,_removeLinkedListItem:fu,reverting:function(){return nr},context:function(l){return l&&hn&&(hn.data.push(l),l._ctx=hn),hn},suppressOverwrites:function(l){return Ku=l}}};Ar("to,from,fromTo,delayedCall,set,killTweensOf",function(x){return vu[x]=kn[x]}),Xr.add(gr.updateRoot),Il=vu.to({},{duration:0});var rg=function(l,o){for(var c=l._pt;c&&c.p!==o&&c.op!==o&&c.fp!==o;)c=c._next;return c},sg=function(l,o){var c=l._targets,d,u,m;for(d in o)for(u=c.length;u--;)m=l._ptLookup[u][d],m&&(m=m.d)&&(m._pt&&(m=rg(m,d)),m&&m.modifier&&m.modifier(o[d],l,c[u],d))},Cc=function(l,o){return{name:l,rawVars:1,init:function(d,u,m){m._onInit=function(_){var y,S;if(Wn(u)&&(y={},Ar(u,function(A){return y[A]=1}),u=y),o){y={};for(S in u)y[S]=o(u[S]);u=y}sg(_,u)}}}},Pr=vu.registerPlugin({name:"attr",init:function(l,o,c,d,u){var m,_,y;this.tween=c;for(m in o)y=l.getAttribute(m)||"",_=this.add(l,"setAttribute",(y||0)+"",o[m],d,u,0,0,m),_.op=m,_.b=y,this._props.push(m)},render:function(l,o){for(var c=o._pt;c;)nr?c.set(c.t,c.p,c.b,c):c.r(l,c.d),c=c._next}},{name:"endArray",init:function(l,o){for(var c=o.length;c--;)this.add(l,c,l[c]||0,o[c],0,0,0,0,0,1)}},Cc("roundProps",gc),Cc("modifiers"),Cc("snap",$f))||vu;kn.version=gr.version=Pr.version="3.12.5",Of=1,ec()&&Dl(),Ri.Power0,Ri.Power1,Ri.Power2,Ri.Power3,Ri.Power4,Ri.Linear,Ri.Quad,Ri.Cubic,Ri.Quart,Ri.Quint,Ri.Strong,Ri.Elastic,Ri.Back,Ri.SteppedEase,Ri.Bounce,Ri.Sine,Ri.Expo,Ri.Circ;/*!
2692
+ */var Hr={autoSleep:120,force3D:"auto",nullTargetWarn:1,units:{lineHeight:""}},Cl={duration:.5,overwrite:!1,delay:0},Ku,nr,hn,ns=1e8,en=1/ns,Qu=Math.PI*2,mm=Qu/4,gm=0,Af=Math.sqrt,vm=Math.cos,_m=Math.sin,Wn=function(a){return typeof a=="string"},Tn=function(a){return typeof a=="function"},co=function(a){return typeof a=="number"},tc=function(a){return typeof a>"u"},Gs=function(a){return typeof a=="object"},br=function(a){return a!==!1},ec=function(){return typeof window<"u"},ou=function(a){return Tn(a)||Wn(a)},Cf=typeof ArrayBuffer=="function"&&ArrayBuffer.isView||function(){},rr=Array.isArray,ic=/(?:-?\.?\d|\.)+/gi,Pf=/[-+=.]*\d+[.e\-+]*\d*[e\-+]*\d*/g,Pl=/[-+=.]*\d+[.e-]*\d*[a-z%]*/g,nc=/[-+=.]*\d+\.?\d*(?:e-|e\+)?\d*/gi,Lf=/[+-]=-?[.\d]+/,Rf=/[^,'"\[\]\s]+/gi,ym=/^[+\-=e\s\d]*\d+[.\d]*([a-z]*|%)\s*$/i,pn,Hs,rc,sc,Vr={},au={},Of,If=function(a){return(au=ka(a,Vr))&&Pr},oc=function(a,o){return console.warn("Invalid property",a,"set to",o,"Missing plugin? gsap.registerPlugin()")},dh=function(a,o){return!o&&console.warn(a)},Df=function(a,o){return a&&(Vr[a]=o)&&au&&(au[a]=o)||Vr},mh=function(){return 0},xm={suppressEvents:!0,isStart:!0,kill:!1},lu={suppressEvents:!0,kill:!1},wm={suppressEvents:!0},ac={},qo=[],lc={},zf,Wr={},hc={},kf=30,hu=[],uc="",cc=function(a){var o=a[0],c,d;if(Gs(o)||Tn(o)||(a=[a]),!(c=(o._gsap||{}).harness)){for(d=hu.length;d--&&!hu[d].targetTest(o););c=hu[d]}for(d=a.length;d--;)a[d]&&(a[d]._gsap||(a[d]._gsap=new cp(a[d],c)))||a.splice(d,1);return a},za=function(a){return a._gsap||cc(os(a))[0]._gsap},Bf=function(a,o,c){return(c=a[o])&&Tn(c)?a[o]():tc(c)&&a.getAttribute&&a.getAttribute(o)||c},Ar=function(a,o){return(a=a.split(",")).forEach(o)||a},Rn=function(a){return Math.round(a*1e5)/1e5||0},jn=function(a){return Math.round(a*1e7)/1e7||0},Ll=function(a,o){var c=o.charAt(0),d=parseFloat(o.substr(2));return a=parseFloat(a),c==="+"?a+d:c==="-"?a-d:c==="*"?a*d:a/d},Tm=function(a,o){for(var c=o.length,d=0;a.indexOf(o[d])<0&&++d<c;);return d<c},uu=function(){var a=qo.length,o=qo.slice(0),c,d;for(lc={},qo.length=0,c=0;c<a;c++)d=o[c],d&&d._lazy&&(d.render(d._lazy[0],d._lazy[1],!0)._lazy=0)},Nf=function(a,o,c,d){qo.length&&!nr&&uu(),a.render(o,c,d||nr&&o<0&&(a._initted||a._startAt)),qo.length&&!nr&&uu()},Ff=function(a){var o=parseFloat(a);return(o||o===0)&&(a+"").match(Rf).length<2?o:Wn(a)?a.trim():a},Uf=function(a){return a},rs=function(a,o){for(var c in o)c in a||(a[c]=o[c]);return a},Mm=function(a){return function(o,c){for(var d in c)d in o||d==="duration"&&a||d==="ease"||(o[d]=c[d])}},ka=function(a,o){for(var c in o)a[c]=o[c];return a},Gf=function x(a,o){for(var c in o)c!=="__proto__"&&c!=="constructor"&&c!=="prototype"&&(a[c]=Gs(o[c])?x(a[c]||(a[c]={}),o[c]):o[c]);return a},cu=function(a,o){var c={},d;for(d in a)d in o||(c[d]=a[d]);return c},gh=function(a){var o=a.parent||pn,c=a.keyframes?Mm(rr(a.keyframes)):rs;if(br(a.inherit))for(;o;)c(a,o.vars.defaults),o=o.parent||o._dp;return a},Sm=function(a,o){for(var c=a.length,d=c===o.length;d&&c--&&a[c]===o[c];);return c<0},Hf=function(a,o,c,d,u){c===void 0&&(c="_first"),d===void 0&&(d="_last");var m=a[d],_;if(u)for(_=o[u];m&&m[u]>_;)m=m._prev;return m?(o._next=m._next,m._next=o):(o._next=a[c],a[c]=o),o._next?o._next._prev=o:a[d]=o,o._prev=m,o.parent=o._dp=a,o},fu=function(a,o,c,d){c===void 0&&(c="_first"),d===void 0&&(d="_last");var u=o._prev,m=o._next;u?u._next=m:a[c]===o&&(a[c]=m),m?m._prev=u:a[d]===o&&(a[d]=u),o._next=o._prev=o.parent=null},Yo=function(a,o){a.parent&&(!o||a.parent.autoRemoveChildren)&&a.parent.remove&&a.parent.remove(a),a._act=0},Ba=function(a,o){if(a&&(!o||o._end>a._dur||o._start<0))for(var c=a;c;)c._dirty=1,c=c.parent;return a},Em=function(a){for(var o=a.parent;o&&o.parent;)o._dirty=1,o.totalDuration(),o=o.parent;return a},fc=function(a,o,c,d){return a._startAt&&(nr?a._startAt.revert(lu):a.vars.immediateRender&&!a.vars.autoRevert||a._startAt.render(o,!0,d))},bm=function x(a){return!a||a._ts&&x(a.parent)},Vf=function(a){return a._repeat?Rl(a._tTime,a=a.duration()+a._rDelay)*a:0},Rl=function(a,o){var c=Math.floor(a/=o);return a&&c===a?c-1:c},pu=function(a,o){return(a-o._start)*o._ts+(o._ts>=0?0:o._dirty?o.totalDuration():o._tDur)},du=function(a){return a._end=jn(a._start+(a._tDur/Math.abs(a._ts||a._rts||en)||0))},mu=function(a,o){var c=a._dp;return c&&c.smoothChildTiming&&a._ts&&(a._start=jn(c._time-(a._ts>0?o/a._ts:((a._dirty?a.totalDuration():a._tDur)-o)/-a._ts)),du(a),c._dirty||Ba(c,a)),a},Wf=function(a,o){var c;if((o._time||!o._dur&&o._initted||o._start<a._time&&(o._dur||!o.add))&&(c=pu(a.rawTime(),o),(!o._dur||_h(0,o.totalDuration(),c)-o._tTime>en)&&o.render(c,!0)),Ba(a,o)._dp&&a._initted&&a._time>=a._dur&&a._ts){if(a._dur<a.duration())for(c=a;c._dp;)c.rawTime()>=0&&c.totalTime(c._tTime),c=c._dp;a._zTime=-en}},Vs=function(a,o,c,d){return o.parent&&Yo(o),o._start=jn((co(c)?c:c||a!==pn?ss(a,c,o):a._time)+o._delay),o._end=jn(o._start+(o.totalDuration()/Math.abs(o.timeScale())||0)),Hf(a,o,"_first","_last",a._sort?"_start":0),pc(o)||(a._recent=o),d||Wf(a,o),a._ts<0&&mu(a,a._tTime),a},jf=function(a,o){return(Vr.ScrollTrigger||oc("scrollTrigger",o))&&Vr.ScrollTrigger.create(o,a)},Xf=function(a,o,c,d,u){if(Tc(a,o,u),!a._initted)return 1;if(!c&&a._pt&&!nr&&(a._dur&&a.vars.lazy!==!1||!a._dur&&a.vars.lazy)&&zf!==Xr.frame)return qo.push(a),a._lazy=[u,d],1},Am=function x(a){var o=a.parent;return o&&o._ts&&o._initted&&!o._lock&&(o.rawTime()<0||x(o))},pc=function(a){var o=a.data;return o==="isFromStart"||o==="isStart"},Cm=function(a,o,c,d){var u=a.ratio,m=o<0||!o&&(!a._start&&Am(a)&&!(!a._initted&&pc(a))||(a._ts<0||a._dp._ts<0)&&!pc(a))?0:1,_=a._rDelay,y=0,S,A,I;if(_&&a._repeat&&(y=_h(0,a._tDur,o),A=Rl(y,_),a._yoyo&&A&1&&(m=1-m),A!==Rl(a._tTime,_)&&(u=1-m,a.vars.repeatRefresh&&a._initted&&a.invalidate())),m!==u||nr||d||a._zTime===en||!o&&a._zTime){if(!a._initted&&Xf(a,o,d,c,y))return;for(I=a._zTime,a._zTime=o||(c?en:0),c||(c=o&&!I),a.ratio=m,a._from&&(m=1-m),a._time=0,a._tTime=y,S=a._pt;S;)S.r(m,S.d),S=S._next;o<0&&fc(a,o,c,!0),a._onUpdate&&!c&&jr(a,"onUpdate"),y&&a._repeat&&!c&&a.parent&&jr(a,"onRepeat"),(o>=a._tDur||o<0)&&a.ratio===m&&(m&&Yo(a,1),!c&&!nr&&(jr(a,m?"onComplete":"onReverseComplete",!0),a._prom&&a._prom()))}else a._zTime||(a._zTime=o)},Pm=function(a,o,c){var d;if(c>o)for(d=a._first;d&&d._start<=c;){if(d.data==="isPause"&&d._start>o)return d;d=d._next}else for(d=a._last;d&&d._start>=c;){if(d.data==="isPause"&&d._start<o)return d;d=d._prev}},Ol=function(a,o,c,d){var u=a._repeat,m=jn(o)||0,_=a._tTime/a._tDur;return _&&!d&&(a._time*=m/a._dur),a._dur=m,a._tDur=u?u<0?1e10:jn(m*(u+1)+a._rDelay*u):m,_>0&&!d&&mu(a,a._tTime=a._tDur*_),a.parent&&du(a),c||Ba(a.parent,a),a},qf=function(a){return a instanceof gr?Ba(a):Ol(a,a._dur)},Lm={_start:0,endTime:mh,totalDuration:mh},ss=function x(a,o,c){var d=a.labels,u=a._recent||Lm,m=a.duration()>=ns?u.endTime(!1):a._dur,_,y,S;return Wn(o)&&(isNaN(o)||o in d)?(y=o.charAt(0),S=o.substr(-1)==="%",_=o.indexOf("="),y==="<"||y===">"?(_>=0&&(o=o.replace(/=/,"")),(y==="<"?u._start:u.endTime(u._repeat>=0))+(parseFloat(o.substr(1))||0)*(S?(_<0?u:c).totalDuration()/100:1)):_<0?(o in d||(d[o]=m),d[o]):(y=parseFloat(o.charAt(_-1)+o.substr(_+1)),S&&c&&(y=y/100*(rr(c)?c[0]:c).totalDuration()),_>1?x(a,o.substr(0,_-1),c)+y:m+y)):o==null?m:+o},vh=function(a,o,c){var d=co(o[1]),u=(d?2:1)+(a<2?0:1),m=o[u],_,y;if(d&&(m.duration=o[1]),m.parent=c,a){for(_=m,y=c;y&&!("immediateRender"in _);)_=y.vars.defaults||{},y=br(y.vars.inherit)&&y.parent;m.immediateRender=br(_.immediateRender),a<2?m.runBackwards=1:m.startAt=o[u-1]}return new kn(o[0],m,o[u+1])},Zo=function(a,o){return a||a===0?o(a):o},_h=function(a,o,c){return c<a?a:c>o?o:c},sr=function(a,o){return!Wn(a)||!(o=ym.exec(a))?"":o[1]},Rm=function(a,o,c){return Zo(c,function(d){return _h(a,o,d)})},dc=[].slice,Yf=function(a,o){return a&&Gs(a)&&"length"in a&&(!o&&!a.length||a.length-1 in a&&Gs(a[0]))&&!a.nodeType&&a!==Hs},Om=function(a,o,c){return c===void 0&&(c=[]),a.forEach(function(d){var u;return Wn(d)&&!o||Yf(d,1)?(u=c).push.apply(u,os(d)):c.push(d)})||c},os=function(a,o,c){return hn&&!o&&hn.selector?hn.selector(a):Wn(a)&&!c&&(rc||!Dl())?dc.call((o||sc).querySelectorAll(a),0):rr(a)?Om(a,c):Yf(a)?dc.call(a,0):a?[a]:[]},mc=function(a){return a=os(a)[0]||dh("Invalid scope")||{},function(o){var c=a.current||a.nativeElement||a;return os(o,c.querySelectorAll?c:c===a?dh("Invalid scope")||sc.createElement("div"):a)}},Zf=function(a){return a.sort(function(){return .5-Math.random()})},Jf=function(a){if(Tn(a))return a;var o=Gs(a)?a:{each:a},c=Na(o.ease),d=o.from||0,u=parseFloat(o.base)||0,m={},_=d>0&&d<1,y=isNaN(d)||_,S=o.axis,A=d,I=d;return Wn(d)?A=I={center:.5,edges:.5,end:1}[d]||0:!_&&y&&(A=d[0],I=d[1]),function(k,D,F){var E=(F||o).length,L=m[E],T,M,R,b,U,N,j,J,$;if(!L){if($=o.grid==="auto"?0:(o.grid||[1,ns])[1],!$){for(j=-ns;j<(j=F[$++].getBoundingClientRect().left)&&$<E;);$<E&&$--}for(L=m[E]=[],T=y?Math.min($,E)*A-.5:d%$,M=$===ns?0:y?E*I/$-.5:d/$|0,j=0,J=ns,N=0;N<E;N++)R=N%$-T,b=M-(N/$|0),L[N]=U=S?Math.abs(S==="y"?b:R):Af(R*R+b*b),U>j&&(j=U),U<J&&(J=U);d==="random"&&Zf(L),L.max=j-J,L.min=J,L.v=E=(parseFloat(o.amount)||parseFloat(o.each)*($>E?E-1:S?S==="y"?E/$:$:Math.max($,E/$))||0)*(d==="edges"?-1:1),L.b=E<0?u-E:u,L.u=sr(o.amount||o.each)||0,c=c&&E<0?lp(c):c}return E=(L[k]-L.min)/L.max||0,jn(L.b+(c?c(E):E)*L.v)+L.u}},gc=function(a){var o=Math.pow(10,((a+"").split(".")[1]||"").length);return function(c){var d=jn(Math.round(parseFloat(c)/a)*a*o);return(d-d%1)/o+(co(c)?0:sr(c))}},$f=function(a,o){var c=rr(a),d,u;return!c&&Gs(a)&&(d=c=a.radius||ns,a.values?(a=os(a.values),(u=!co(a[0]))&&(d*=d)):a=gc(a.increment)),Zo(o,c?Tn(a)?function(m){return u=a(m),Math.abs(u-m)<=d?u:m}:function(m){for(var _=parseFloat(u?m.x:m),y=parseFloat(u?m.y:0),S=ns,A=0,I=a.length,k,D;I--;)u?(k=a[I].x-_,D=a[I].y-y,k=k*k+D*D):k=Math.abs(a[I]-_),k<S&&(S=k,A=I);return A=!d||S<=d?a[A]:m,u||A===m||co(m)?A:A+sr(m)}:gc(a))},Kf=function(a,o,c,d){return Zo(rr(a)?!o:c===!0?!!(c=0):!d,function(){return rr(a)?a[~~(Math.random()*a.length)]:(c=c||1e-5)&&(d=c<1?Math.pow(10,(c+"").length-2):1)&&Math.floor(Math.round((a-c/2+Math.random()*(o-a+c*.99))/c)*c*d)/d})},Im=function(){for(var a=arguments.length,o=new Array(a),c=0;c<a;c++)o[c]=arguments[c];return function(d){return o.reduce(function(u,m){return m(u)},d)}},Dm=function(a,o){return function(c){return a(parseFloat(c))+(o||sr(c))}},zm=function(a,o,c){return tp(a,o,0,1,c)},Qf=function(a,o,c){return Zo(c,function(d){return a[~~o(d)]})},km=function x(a,o,c){var d=o-a;return rr(a)?Qf(a,x(0,a.length),o):Zo(c,function(u){return(d+(u-a)%d)%d+a})},Bm=function x(a,o,c){var d=o-a,u=d*2;return rr(a)?Qf(a,x(0,a.length-1),o):Zo(c,function(m){return m=(u+(m-a)%u)%u||0,a+(m>d?u-m:m)})},yh=function(a){for(var o=0,c="",d,u,m,_;~(d=a.indexOf("random(",o));)m=a.indexOf(")",d),_=a.charAt(d+7)==="[",u=a.substr(d+7,m-d-7).match(_?Rf:ic),c+=a.substr(o,d-o)+Kf(_?u:+u[0],_?0:+u[1],+u[2]||1e-5),o=m+1;return c+a.substr(o,a.length-o)},tp=function(a,o,c,d,u){var m=o-a,_=d-c;return Zo(u,function(y){return c+((y-a)/m*_||0)})},Nm=function x(a,o,c,d){var u=isNaN(a+o)?0:function(D){return(1-D)*a+D*o};if(!u){var m=Wn(a),_={},y,S,A,I,k;if(c===!0&&(d=1)&&(c=null),m)a={p:a},o={p:o};else if(rr(a)&&!rr(o)){for(A=[],I=a.length,k=I-2,S=1;S<I;S++)A.push(x(a[S-1],a[S]));I--,u=function(F){F*=I;var E=Math.min(k,~~F);return A[E](F-E)},c=o}else d||(a=ka(rr(a)?[]:{},a));if(!A){for(y in o)xc.call(_,a,y,"get",o[y]);u=function(F){return Ec(F,_)||(m?a.p:a)}}}return Zo(c,u)},ep=function(a,o,c){var d=a.labels,u=ns,m,_,y;for(m in d)_=d[m]-o,_<0==!!c&&_&&u>(_=Math.abs(_))&&(y=m,u=_);return y},jr=function(a,o,c){var d=a.vars,u=d[o],m=hn,_=a._ctx,y,S,A;if(u)return y=d[o+"Params"],S=d.callbackScope||a,c&&qo.length&&uu(),_&&(hn=_),A=y?u.apply(S,y):u.call(S),hn=m,A},xh=function(a){return Yo(a),a.scrollTrigger&&a.scrollTrigger.kill(!!nr),a.progress()<1&&jr(a,"onInterrupt"),a},Il,ip=[],np=function(a){if(a)if(a=!a.name&&a.default||a,ec()||a.headless){var o=a.name,c=Tn(a),d=o&&!c&&a.init?function(){this._props=[]}:a,u={init:mh,render:Ec,add:xc,kill:tg,modifier:Qm,rawVars:0},m={targetTest:0,get:0,getSetter:Sc,aliases:{},register:0};if(Dl(),a!==d){if(Wr[o])return;rs(d,rs(cu(a,u),m)),ka(d.prototype,ka(u,cu(a,m))),Wr[d.prop=o]=d,a.targetTest&&(hu.push(d),ac[o]=1),o=(o==="css"?"CSS":o.charAt(0).toUpperCase()+o.substr(1))+"Plugin"}Df(o,d),a.register&&a.register(Pr,d,Cr)}else ip.push(a)},Ki=255,wh={aqua:[0,Ki,Ki],lime:[0,Ki,0],silver:[192,192,192],black:[0,0,0],maroon:[128,0,0],teal:[0,128,128],blue:[0,0,Ki],navy:[0,0,128],white:[Ki,Ki,Ki],olive:[128,128,0],yellow:[Ki,Ki,0],orange:[Ki,165,0],gray:[128,128,128],purple:[128,0,128],green:[0,128,0],red:[Ki,0,0],pink:[Ki,192,203],cyan:[0,Ki,Ki],transparent:[Ki,Ki,Ki,0]},vc=function(a,o,c){return a+=a<0?1:a>1?-1:0,(a*6<1?o+(c-o)*a*6:a<.5?c:a*3<2?o+(c-o)*(2/3-a)*6:o)*Ki+.5|0},rp=function(a,o,c){var d=a?co(a)?[a>>16,a>>8&Ki,a&Ki]:0:wh.black,u,m,_,y,S,A,I,k,D,F;if(!d){if(a.substr(-1)===","&&(a=a.substr(0,a.length-1)),wh[a])d=wh[a];else if(a.charAt(0)==="#"){if(a.length<6&&(u=a.charAt(1),m=a.charAt(2),_=a.charAt(3),a="#"+u+u+m+m+_+_+(a.length===5?a.charAt(4)+a.charAt(4):"")),a.length===9)return d=parseInt(a.substr(1,6),16),[d>>16,d>>8&Ki,d&Ki,parseInt(a.substr(7),16)/255];a=parseInt(a.substr(1),16),d=[a>>16,a>>8&Ki,a&Ki]}else if(a.substr(0,3)==="hsl"){if(d=F=a.match(ic),!o)y=+d[0]%360/360,S=+d[1]/100,A=+d[2]/100,m=A<=.5?A*(S+1):A+S-A*S,u=A*2-m,d.length>3&&(d[3]*=1),d[0]=vc(y+1/3,u,m),d[1]=vc(y,u,m),d[2]=vc(y-1/3,u,m);else if(~a.indexOf("="))return d=a.match(Pf),c&&d.length<4&&(d[3]=1),d}else d=a.match(ic)||wh.transparent;d=d.map(Number)}return o&&!F&&(u=d[0]/Ki,m=d[1]/Ki,_=d[2]/Ki,I=Math.max(u,m,_),k=Math.min(u,m,_),A=(I+k)/2,I===k?y=S=0:(D=I-k,S=A>.5?D/(2-I-k):D/(I+k),y=I===u?(m-_)/D+(m<_?6:0):I===m?(_-u)/D+2:(u-m)/D+4,y*=60),d[0]=~~(y+.5),d[1]=~~(S*100+.5),d[2]=~~(A*100+.5)),c&&d.length<4&&(d[3]=1),d},sp=function(a){var o=[],c=[],d=-1;return a.split(Jo).forEach(function(u){var m=u.match(Pl)||[];o.push.apply(o,m),c.push(d+=m.length+1)}),o.c=c,o},op=function(a,o,c){var d="",u=(a+d).match(Jo),m=o?"hsla(":"rgba(",_=0,y,S,A,I;if(!u)return a;if(u=u.map(function(k){return(k=rp(k,o,1))&&m+(o?k[0]+","+k[1]+"%,"+k[2]+"%,"+k[3]:k.join(","))+")"}),c&&(A=sp(a),y=c.c,y.join(d)!==A.c.join(d)))for(S=a.replace(Jo,"1").split(Pl),I=S.length-1;_<I;_++)d+=S[_]+(~y.indexOf(_)?u.shift()||m+"0,0,0,0)":(A.length?A:u.length?u:c).shift());if(!S)for(S=a.split(Jo),I=S.length-1;_<I;_++)d+=S[_]+u[_];return d+S[I]},Jo=function(){var x="(?:\\b(?:(?:rgb|rgba|hsl|hsla)\\(.+?\\))|\\B#(?:[0-9a-f]{3,4}){1,2}\\b",a;for(a in wh)x+="|"+a+"\\b";return new RegExp(x+")","gi")}(),Fm=/hsl[a]?\(/,ap=function(a){var o=a.join(" "),c;if(Jo.lastIndex=0,Jo.test(o))return c=Fm.test(o),a[1]=op(a[1],c),a[0]=op(a[0],c,sp(a[1])),!0},Th,Xr=function(){var x=Date.now,a=500,o=33,c=x(),d=c,u=1e3/240,m=u,_=[],y,S,A,I,k,D,F=function E(L){var T=x()-d,M=L===!0,R,b,U,N;if((T>a||T<0)&&(c+=T-o),d+=T,U=d-c,R=U-m,(R>0||M)&&(N=++I.frame,k=U-I.time*1e3,I.time=U=U/1e3,m+=R+(R>=u?4:u-R),b=1),M||(y=S(E)),b)for(D=0;D<_.length;D++)_[D](U,k,N,L)};return I={time:0,frame:0,tick:function(){F(!0)},deltaRatio:function(L){return k/(1e3/(L||60))},wake:function(){Of&&(!rc&&ec()&&(Hs=rc=window,sc=Hs.document||{},Vr.gsap=Pr,(Hs.gsapVersions||(Hs.gsapVersions=[])).push(Pr.version),If(au||Hs.GreenSockGlobals||!Hs.gsap&&Hs||{}),ip.forEach(np)),A=typeof requestAnimationFrame<"u"&&requestAnimationFrame,y&&I.sleep(),S=A||function(L){return setTimeout(L,m-I.time*1e3+1|0)},Th=1,F(2))},sleep:function(){(A?cancelAnimationFrame:clearTimeout)(y),Th=0,S=mh},lagSmoothing:function(L,T){a=L||1/0,o=Math.min(T||33,a)},fps:function(L){u=1e3/(L||240),m=I.time*1e3+u},add:function(L,T,M){var R=T?function(b,U,N,j){L(b,U,N,j),I.remove(R)}:L;return I.remove(L),_[M?"unshift":"push"](R),Dl(),R},remove:function(L,T){~(T=_.indexOf(L))&&_.splice(T,1)&&D>=T&&D--},_listeners:_},I}(),Dl=function(){return!Th&&Xr.wake()},Ri={},Um=/^[\d.\-M][\d.\-,\s]/,Gm=/["']/g,Hm=function(a){for(var o={},c=a.substr(1,a.length-3).split(":"),d=c[0],u=1,m=c.length,_,y,S;u<m;u++)y=c[u],_=u!==m-1?y.lastIndexOf(","):y.length,S=y.substr(0,_),o[d]=isNaN(S)?S.replace(Gm,"").trim():+S,d=y.substr(_+1).trim();return o},Vm=function(a){var o=a.indexOf("(")+1,c=a.indexOf(")"),d=a.indexOf("(",o);return a.substring(o,~d&&d<c?a.indexOf(")",c+1):c)},Wm=function(a){var o=(a+"").split("("),c=Ri[o[0]];return c&&o.length>1&&c.config?c.config.apply(null,~a.indexOf("{")?[Hm(o[1])]:Vm(a).split(",").map(Ff)):Ri._CE&&Um.test(a)?Ri._CE("",a):c},lp=function(a){return function(o){return 1-a(1-o)}},hp=function x(a,o){for(var c=a._first,d;c;)c instanceof gr?x(c,o):c.vars.yoyoEase&&(!c._yoyo||!c._repeat)&&c._yoyo!==o&&(c.timeline?x(c.timeline,o):(d=c._ease,c._ease=c._yEase,c._yEase=d,c._yoyo=o)),c=c._next},Na=function(a,o){return a&&(Tn(a)?a:Ri[a]||Wm(a))||o},Fa=function(a,o,c,d){c===void 0&&(c=function(y){return 1-o(1-y)}),d===void 0&&(d=function(y){return y<.5?o(y*2)/2:1-o((1-y)*2)/2});var u={easeIn:o,easeOut:c,easeInOut:d},m;return Ar(a,function(_){Ri[_]=Vr[_]=u,Ri[m=_.toLowerCase()]=c;for(var y in u)Ri[m+(y==="easeIn"?".in":y==="easeOut"?".out":".inOut")]=Ri[_+"."+y]=u[y]}),u},up=function(a){return function(o){return o<.5?(1-a(1-o*2))/2:.5+a((o-.5)*2)/2}},_c=function x(a,o,c){var d=o>=1?o:1,u=(c||(a?.3:.45))/(o<1?o:1),m=u/Qu*(Math.asin(1/d)||0),_=function(A){return A===1?1:d*Math.pow(2,-10*A)*_m((A-m)*u)+1},y=a==="out"?_:a==="in"?function(S){return 1-_(1-S)}:up(_);return u=Qu/u,y.config=function(S,A){return x(a,S,A)},y},yc=function x(a,o){o===void 0&&(o=1.70158);var c=function(m){return m?--m*m*((o+1)*m+o)+1:0},d=a==="out"?c:a==="in"?function(u){return 1-c(1-u)}:up(c);return d.config=function(u){return x(a,u)},d};Ar("Linear,Quad,Cubic,Quart,Quint,Strong",function(x,a){var o=a<5?a+1:a;Fa(x+",Power"+(o-1),a?function(c){return Math.pow(c,o)}:function(c){return c},function(c){return 1-Math.pow(1-c,o)},function(c){return c<.5?Math.pow(c*2,o)/2:1-Math.pow((1-c)*2,o)/2})}),Ri.Linear.easeNone=Ri.none=Ri.Linear.easeIn,Fa("Elastic",_c("in"),_c("out"),_c()),function(x,a){var o=1/a,c=2*o,d=2.5*o,u=function(_){return _<o?x*_*_:_<c?x*Math.pow(_-1.5/a,2)+.75:_<d?x*(_-=2.25/a)*_+.9375:x*Math.pow(_-2.625/a,2)+.984375};Fa("Bounce",function(m){return 1-u(1-m)},u)}(7.5625,2.75),Fa("Expo",function(x){return x?Math.pow(2,10*(x-1)):0}),Fa("Circ",function(x){return-(Af(1-x*x)-1)}),Fa("Sine",function(x){return x===1?1:-vm(x*mm)+1}),Fa("Back",yc("in"),yc("out"),yc()),Ri.SteppedEase=Ri.steps=Vr.SteppedEase={config:function(a,o){a===void 0&&(a=1);var c=1/a,d=a+(o?0:1),u=o?1:0,m=1-en;return function(_){return((d*_h(0,m,_)|0)+u)*c}}},Cl.ease=Ri["quad.out"],Ar("onComplete,onUpdate,onStart,onRepeat,onReverseComplete,onInterrupt",function(x){return uc+=x+","+x+"Params,"});var cp=function(a,o){this.id=gm++,a._gsap=this,this.target=a,this.harness=o,this.get=o?o.get:Bf,this.set=o?o.getSetter:Sc},Mh=function(){function x(o){this.vars=o,this._delay=+o.delay||0,(this._repeat=o.repeat===1/0?-2:o.repeat||0)&&(this._rDelay=o.repeatDelay||0,this._yoyo=!!o.yoyo||!!o.yoyoEase),this._ts=1,Ol(this,+o.duration,1,1),this.data=o.data,hn&&(this._ctx=hn,hn.data.push(this)),Th||Xr.wake()}var a=x.prototype;return a.delay=function(c){return c||c===0?(this.parent&&this.parent.smoothChildTiming&&this.startTime(this._start+c-this._delay),this._delay=c,this):this._delay},a.duration=function(c){return arguments.length?this.totalDuration(this._repeat>0?c+(c+this._rDelay)*this._repeat:c):this.totalDuration()&&this._dur},a.totalDuration=function(c){return arguments.length?(this._dirty=0,Ol(this,this._repeat<0?c:(c-this._repeat*this._rDelay)/(this._repeat+1))):this._tDur},a.totalTime=function(c,d){if(Dl(),!arguments.length)return this._tTime;var u=this._dp;if(u&&u.smoothChildTiming&&this._ts){for(mu(this,c),!u._dp||u.parent||Wf(u,this);u&&u.parent;)u.parent._time!==u._start+(u._ts>=0?u._tTime/u._ts:(u.totalDuration()-u._tTime)/-u._ts)&&u.totalTime(u._tTime,!0),u=u.parent;!this.parent&&this._dp.autoRemoveChildren&&(this._ts>0&&c<this._tDur||this._ts<0&&c>0||!this._tDur&&!c)&&Vs(this._dp,this,this._start-this._delay)}return(this._tTime!==c||!this._dur&&!d||this._initted&&Math.abs(this._zTime)===en||!c&&!this._initted&&(this.add||this._ptLookup))&&(this._ts||(this._pTime=c),Nf(this,c,d)),this},a.time=function(c,d){return arguments.length?this.totalTime(Math.min(this.totalDuration(),c+Vf(this))%(this._dur+this._rDelay)||(c?this._dur:0),d):this._time},a.totalProgress=function(c,d){return arguments.length?this.totalTime(this.totalDuration()*c,d):this.totalDuration()?Math.min(1,this._tTime/this._tDur):this.rawTime()>0?1:0},a.progress=function(c,d){return arguments.length?this.totalTime(this.duration()*(this._yoyo&&!(this.iteration()&1)?1-c:c)+Vf(this),d):this.duration()?Math.min(1,this._time/this._dur):this.rawTime()>0?1:0},a.iteration=function(c,d){var u=this.duration()+this._rDelay;return arguments.length?this.totalTime(this._time+(c-1)*u,d):this._repeat?Rl(this._tTime,u)+1:1},a.timeScale=function(c,d){if(!arguments.length)return this._rts===-en?0:this._rts;if(this._rts===c)return this;var u=this.parent&&this._ts?pu(this.parent._time,this):this._tTime;return this._rts=+c||0,this._ts=this._ps||c===-en?0:this._rts,this.totalTime(_h(-Math.abs(this._delay),this._tDur,u),d!==!1),du(this),Em(this)},a.paused=function(c){return arguments.length?(this._ps!==c&&(this._ps=c,c?(this._pTime=this._tTime||Math.max(-this._delay,this.rawTime()),this._ts=this._act=0):(Dl(),this._ts=this._rts,this.totalTime(this.parent&&!this.parent.smoothChildTiming?this.rawTime():this._tTime||this._pTime,this.progress()===1&&Math.abs(this._zTime)!==en&&(this._tTime-=en)))),this):this._ps},a.startTime=function(c){if(arguments.length){this._start=c;var d=this.parent||this._dp;return d&&(d._sort||!this.parent)&&Vs(d,this,c-this._delay),this}return this._start},a.endTime=function(c){return this._start+(br(c)?this.totalDuration():this.duration())/Math.abs(this._ts||1)},a.rawTime=function(c){var d=this.parent||this._dp;return d?c&&(!this._ts||this._repeat&&this._time&&this.totalProgress()<1)?this._tTime%(this._dur+this._rDelay):this._ts?pu(d.rawTime(c),this):this._tTime:this._tTime},a.revert=function(c){c===void 0&&(c=wm);var d=nr;return nr=c,(this._initted||this._startAt)&&(this.timeline&&this.timeline.revert(c),this.totalTime(-.01,c.suppressEvents)),this.data!=="nested"&&c.kill!==!1&&this.kill(),nr=d,this},a.globalTime=function(c){for(var d=this,u=arguments.length?c:d.rawTime();d;)u=d._start+u/(Math.abs(d._ts)||1),d=d._dp;return!this.parent&&this._sat?this._sat.globalTime(c):u},a.repeat=function(c){return arguments.length?(this._repeat=c===1/0?-2:c,qf(this)):this._repeat===-2?1/0:this._repeat},a.repeatDelay=function(c){if(arguments.length){var d=this._time;return this._rDelay=c,qf(this),d?this.time(d):this}return this._rDelay},a.yoyo=function(c){return arguments.length?(this._yoyo=c,this):this._yoyo},a.seek=function(c,d){return this.totalTime(ss(this,c),br(d))},a.restart=function(c,d){return this.play().totalTime(c?-this._delay:0,br(d))},a.play=function(c,d){return c!=null&&this.seek(c,d),this.reversed(!1).paused(!1)},a.reverse=function(c,d){return c!=null&&this.seek(c||this.totalDuration(),d),this.reversed(!0).paused(!1)},a.pause=function(c,d){return c!=null&&this.seek(c,d),this.paused(!0)},a.resume=function(){return this.paused(!1)},a.reversed=function(c){return arguments.length?(!!c!==this.reversed()&&this.timeScale(-this._rts||(c?-en:0)),this):this._rts<0},a.invalidate=function(){return this._initted=this._act=0,this._zTime=-en,this},a.isActive=function(){var c=this.parent||this._dp,d=this._start,u;return!!(!c||this._ts&&this._initted&&c.isActive()&&(u=c.rawTime(!0))>=d&&u<this.endTime(!0)-en)},a.eventCallback=function(c,d,u){var m=this.vars;return arguments.length>1?(d?(m[c]=d,u&&(m[c+"Params"]=u),c==="onUpdate"&&(this._onUpdate=d)):delete m[c],this):m[c]},a.then=function(c){var d=this;return new Promise(function(u){var m=Tn(c)?c:Uf,_=function(){var S=d.then;d.then=null,Tn(m)&&(m=m(d))&&(m.then||m===d)&&(d.then=S),u(m),d.then=S};d._initted&&d.totalProgress()===1&&d._ts>=0||!d._tTime&&d._ts<0?_():d._prom=_})},a.kill=function(){xh(this)},x}();rs(Mh.prototype,{_time:0,_start:0,_end:0,_tTime:0,_tDur:0,_dirty:0,_repeat:0,_yoyo:!1,parent:null,_initted:!1,_rDelay:0,_ts:1,_dp:0,ratio:0,_zTime:-en,_prom:0,_ps:!1,_rts:1});var gr=function(x){bf(a,x);function a(c,d){var u;return c===void 0&&(c={}),u=x.call(this,c)||this,u.labels={},u.smoothChildTiming=!!c.smoothChildTiming,u.autoRemoveChildren=!!c.autoRemoveChildren,u._sort=br(c.sortChildren),pn&&Vs(c.parent||pn,uo(u),d),c.reversed&&u.reverse(),c.paused&&u.paused(!0),c.scrollTrigger&&jf(uo(u),c.scrollTrigger),u}var o=a.prototype;return o.to=function(d,u,m){return vh(0,arguments,this),this},o.from=function(d,u,m){return vh(1,arguments,this),this},o.fromTo=function(d,u,m,_){return vh(2,arguments,this),this},o.set=function(d,u,m){return u.duration=0,u.parent=this,gh(u).repeatDelay||(u.repeat=0),u.immediateRender=!!u.immediateRender,new kn(d,u,ss(this,m),1),this},o.call=function(d,u,m){return Vs(this,kn.delayedCall(0,d,u),m)},o.staggerTo=function(d,u,m,_,y,S,A){return m.duration=u,m.stagger=m.stagger||_,m.onComplete=S,m.onCompleteParams=A,m.parent=this,new kn(d,m,ss(this,y)),this},o.staggerFrom=function(d,u,m,_,y,S,A){return m.runBackwards=1,gh(m).immediateRender=br(m.immediateRender),this.staggerTo(d,u,m,_,y,S,A)},o.staggerFromTo=function(d,u,m,_,y,S,A,I){return _.startAt=m,gh(_).immediateRender=br(_.immediateRender),this.staggerTo(d,u,_,y,S,A,I)},o.render=function(d,u,m){var _=this._time,y=this._dirty?this.totalDuration():this._tDur,S=this._dur,A=d<=0?0:jn(d),I=this._zTime<0!=d<0&&(this._initted||!S),k,D,F,E,L,T,M,R,b,U,N,j;if(this!==pn&&A>y&&d>=0&&(A=y),A!==this._tTime||m||I){if(_!==this._time&&S&&(A+=this._time-_,d+=this._time-_),k=A,b=this._start,R=this._ts,T=!R,I&&(S||(_=this._zTime),(d||!u)&&(this._zTime=d)),this._repeat){if(N=this._yoyo,L=S+this._rDelay,this._repeat<-1&&d<0)return this.totalTime(L*100+d,u,m);if(k=jn(A%L),A===y?(E=this._repeat,k=S):(E=~~(A/L),E&&E===A/L&&(k=S,E--),k>S&&(k=S)),U=Rl(this._tTime,L),!_&&this._tTime&&U!==E&&this._tTime-U*L-this._dur<=0&&(U=E),N&&E&1&&(k=S-k,j=1),E!==U&&!this._lock){var J=N&&U&1,$=J===(N&&E&1);if(E<U&&(J=!J),_=J?0:A%S?S:A,this._lock=1,this.render(_||(j?0:jn(E*L)),u,!S)._lock=0,this._tTime=A,!u&&this.parent&&jr(this,"onRepeat"),this.vars.repeatRefresh&&!j&&(this.invalidate()._lock=1),_&&_!==this._time||T!==!this._ts||this.vars.onRepeat&&!this.parent&&!this._act)return this;if(S=this._dur,y=this._tDur,$&&(this._lock=2,_=J?S:-1e-4,this.render(_,!0),this.vars.repeatRefresh&&!j&&this.invalidate()),this._lock=0,!this._ts&&!T)return this;hp(this,j)}}if(this._hasPause&&!this._forcing&&this._lock<2&&(M=Pm(this,jn(_),jn(k)),M&&(A-=k-(k=M._start))),this._tTime=A,this._time=k,this._act=!R,this._initted||(this._onUpdate=this.vars.onUpdate,this._initted=1,this._zTime=d,_=0),!_&&k&&!u&&!E&&(jr(this,"onStart"),this._tTime!==A))return this;if(k>=_&&d>=0)for(D=this._first;D;){if(F=D._next,(D._act||k>=D._start)&&D._ts&&M!==D){if(D.parent!==this)return this.render(d,u,m);if(D.render(D._ts>0?(k-D._start)*D._ts:(D._dirty?D.totalDuration():D._tDur)+(k-D._start)*D._ts,u,m),k!==this._time||!this._ts&&!T){M=0,F&&(A+=this._zTime=-en);break}}D=F}else{D=this._last;for(var ct=d<0?d:k;D;){if(F=D._prev,(D._act||ct<=D._end)&&D._ts&&M!==D){if(D.parent!==this)return this.render(d,u,m);if(D.render(D._ts>0?(ct-D._start)*D._ts:(D._dirty?D.totalDuration():D._tDur)+(ct-D._start)*D._ts,u,m||nr&&(D._initted||D._startAt)),k!==this._time||!this._ts&&!T){M=0,F&&(A+=this._zTime=ct?-en:en);break}}D=F}}if(M&&!u&&(this.pause(),M.render(k>=_?0:-en)._zTime=k>=_?1:-1,this._ts))return this._start=b,du(this),this.render(d,u,m);this._onUpdate&&!u&&jr(this,"onUpdate",!0),(A===y&&this._tTime>=this.totalDuration()||!A&&_)&&(b===this._start||Math.abs(R)!==Math.abs(this._ts))&&(this._lock||((d||!S)&&(A===y&&this._ts>0||!A&&this._ts<0)&&Yo(this,1),!u&&!(d<0&&!_)&&(A||_||!y)&&(jr(this,A===y&&d>=0?"onComplete":"onReverseComplete",!0),this._prom&&!(A<y&&this.timeScale()>0)&&this._prom())))}return this},o.add=function(d,u){var m=this;if(co(u)||(u=ss(this,u,d)),!(d instanceof Mh)){if(rr(d))return d.forEach(function(_){return m.add(_,u)}),this;if(Wn(d))return this.addLabel(d,u);if(Tn(d))d=kn.delayedCall(0,d);else return this}return this!==d?Vs(this,d,u):this},o.getChildren=function(d,u,m,_){d===void 0&&(d=!0),u===void 0&&(u=!0),m===void 0&&(m=!0),_===void 0&&(_=-ns);for(var y=[],S=this._first;S;)S._start>=_&&(S instanceof kn?u&&y.push(S):(m&&y.push(S),d&&y.push.apply(y,S.getChildren(!0,u,m)))),S=S._next;return y},o.getById=function(d){for(var u=this.getChildren(1,1,1),m=u.length;m--;)if(u[m].vars.id===d)return u[m]},o.remove=function(d){return Wn(d)?this.removeLabel(d):Tn(d)?this.killTweensOf(d):(fu(this,d),d===this._recent&&(this._recent=this._last),Ba(this))},o.totalTime=function(d,u){return arguments.length?(this._forcing=1,!this._dp&&this._ts&&(this._start=jn(Xr.time-(this._ts>0?d/this._ts:(this.totalDuration()-d)/-this._ts))),x.prototype.totalTime.call(this,d,u),this._forcing=0,this):this._tTime},o.addLabel=function(d,u){return this.labels[d]=ss(this,u),this},o.removeLabel=function(d){return delete this.labels[d],this},o.addPause=function(d,u,m){var _=kn.delayedCall(0,u||mh,m);return _.data="isPause",this._hasPause=1,Vs(this,_,ss(this,d))},o.removePause=function(d){var u=this._first;for(d=ss(this,d);u;)u._start===d&&u.data==="isPause"&&Yo(u),u=u._next},o.killTweensOf=function(d,u,m){for(var _=this.getTweensOf(d,m),y=_.length;y--;)$o!==_[y]&&_[y].kill(d,u);return this},o.getTweensOf=function(d,u){for(var m=[],_=os(d),y=this._first,S=co(u),A;y;)y instanceof kn?Tm(y._targets,_)&&(S?(!$o||y._initted&&y._ts)&&y.globalTime(0)<=u&&y.globalTime(y.totalDuration())>u:!u||y.isActive())&&m.push(y):(A=y.getTweensOf(_,u)).length&&m.push.apply(m,A),y=y._next;return m},o.tweenTo=function(d,u){u=u||{};var m=this,_=ss(m,d),y=u,S=y.startAt,A=y.onStart,I=y.onStartParams,k=y.immediateRender,D,F=kn.to(m,rs({ease:u.ease||"none",lazy:!1,immediateRender:!1,time:_,overwrite:"auto",duration:u.duration||Math.abs((_-(S&&"time"in S?S.time:m._time))/m.timeScale())||en,onStart:function(){if(m.pause(),!D){var L=u.duration||Math.abs((_-(S&&"time"in S?S.time:m._time))/m.timeScale());F._dur!==L&&Ol(F,L,0,1).render(F._time,!0,!0),D=1}A&&A.apply(F,I||[])}},u));return k?F.render(0):F},o.tweenFromTo=function(d,u,m){return this.tweenTo(u,rs({startAt:{time:ss(this,d)}},m))},o.recent=function(){return this._recent},o.nextLabel=function(d){return d===void 0&&(d=this._time),ep(this,ss(this,d))},o.previousLabel=function(d){return d===void 0&&(d=this._time),ep(this,ss(this,d),1)},o.currentLabel=function(d){return arguments.length?this.seek(d,!0):this.previousLabel(this._time+en)},o.shiftChildren=function(d,u,m){m===void 0&&(m=0);for(var _=this._first,y=this.labels,S;_;)_._start>=m&&(_._start+=d,_._end+=d),_=_._next;if(u)for(S in y)y[S]>=m&&(y[S]+=d);return Ba(this)},o.invalidate=function(d){var u=this._first;for(this._lock=0;u;)u.invalidate(d),u=u._next;return x.prototype.invalidate.call(this,d)},o.clear=function(d){d===void 0&&(d=!0);for(var u=this._first,m;u;)m=u._next,this.remove(u),u=m;return this._dp&&(this._time=this._tTime=this._pTime=0),d&&(this.labels={}),Ba(this)},o.totalDuration=function(d){var u=0,m=this,_=m._last,y=ns,S,A,I;if(arguments.length)return m.timeScale((m._repeat<0?m.duration():m.totalDuration())/(m.reversed()?-d:d));if(m._dirty){for(I=m.parent;_;)S=_._prev,_._dirty&&_.totalDuration(),A=_._start,A>y&&m._sort&&_._ts&&!m._lock?(m._lock=1,Vs(m,_,A-_._delay,1)._lock=0):y=A,A<0&&_._ts&&(u-=A,(!I&&!m._dp||I&&I.smoothChildTiming)&&(m._start+=A/m._ts,m._time-=A,m._tTime-=A),m.shiftChildren(-A,!1,-1/0),y=0),_._end>u&&_._ts&&(u=_._end),_=S;Ol(m,m===pn&&m._time>u?m._time:u,1,1),m._dirty=0}return m._tDur},a.updateRoot=function(d){if(pn._ts&&(Nf(pn,pu(d,pn)),zf=Xr.frame),Xr.frame>=kf){kf+=Hr.autoSleep||120;var u=pn._first;if((!u||!u._ts)&&Hr.autoSleep&&Xr._listeners.length<2){for(;u&&!u._ts;)u=u._next;u||Xr.sleep()}}},a}(Mh);rs(gr.prototype,{_lock:0,_hasPause:0,_forcing:0});var jm=function(a,o,c,d,u,m,_){var y=new Cr(this._pt,a,o,0,1,vp,null,u),S=0,A=0,I,k,D,F,E,L,T,M;for(y.b=c,y.e=d,c+="",d+="",(T=~d.indexOf("random("))&&(d=yh(d)),m&&(M=[c,d],m(M,a,o),c=M[0],d=M[1]),k=c.match(nc)||[];I=nc.exec(d);)F=I[0],E=d.substring(S,I.index),D?D=(D+1)%5:E.substr(-5)==="rgba("&&(D=1),F!==k[A++]&&(L=parseFloat(k[A-1])||0,y._pt={_next:y._pt,p:E||A===1?E:",",s:L,c:F.charAt(1)==="="?Ll(L,F)-L:parseFloat(F)-L,m:D&&D<4?Math.round:0},S=nc.lastIndex);return y.c=S<d.length?d.substring(S,d.length):"",y.fp=_,(Lf.test(d)||T)&&(y.e=0),this._pt=y,y},xc=function(a,o,c,d,u,m,_,y,S,A){Tn(d)&&(d=d(u||0,a,m));var I=a[o],k=c!=="get"?c:Tn(I)?S?a[o.indexOf("set")||!Tn(a["get"+o.substr(3)])?o:"get"+o.substr(3)](S):a[o]():I,D=Tn(I)?S?Jm:mp:Mc,F;if(Wn(d)&&(~d.indexOf("random(")&&(d=yh(d)),d.charAt(1)==="="&&(F=Ll(k,d)+(sr(k)||0),(F||F===0)&&(d=F))),!A||k!==d||wc)return!isNaN(k*d)&&d!==""?(F=new Cr(this._pt,a,o,+k||0,d-(k||0),typeof I=="boolean"?Km:gp,0,D),S&&(F.fp=S),_&&F.modifier(_,this,a),this._pt=F):(!I&&!(o in a)&&oc(o,d),jm.call(this,a,o,k,d,D,y||Hr.stringFilter,S))},Xm=function(a,o,c,d,u){if(Tn(a)&&(a=Sh(a,u,o,c,d)),!Gs(a)||a.style&&a.nodeType||rr(a)||Cf(a))return Wn(a)?Sh(a,u,o,c,d):a;var m={},_;for(_ in a)m[_]=Sh(a[_],u,o,c,d);return m},fp=function(a,o,c,d,u,m){var _,y,S,A;if(Wr[a]&&(_=new Wr[a]).init(u,_.rawVars?o[a]:Xm(o[a],d,u,m,c),c,d,m)!==!1&&(c._pt=y=new Cr(c._pt,u,a,0,1,_.render,_,0,_.priority),c!==Il))for(S=c._ptLookup[c._targets.indexOf(u)],A=_._props.length;A--;)S[_._props[A]]=y;return _},$o,wc,Tc=function x(a,o,c){var d=a.vars,u=d.ease,m=d.startAt,_=d.immediateRender,y=d.lazy,S=d.onUpdate,A=d.runBackwards,I=d.yoyoEase,k=d.keyframes,D=d.autoRevert,F=a._dur,E=a._startAt,L=a._targets,T=a.parent,M=T&&T.data==="nested"?T.vars.targets:L,R=a._overwrite==="auto"&&!Ku,b=a.timeline,U,N,j,J,$,ct,It,et,yt,G,Pt,Et,Ct;if(b&&(!k||!u)&&(u="none"),a._ease=Na(u,Cl.ease),a._yEase=I?lp(Na(I===!0?u:I,Cl.ease)):0,I&&a._yoyo&&!a._repeat&&(I=a._yEase,a._yEase=a._ease,a._ease=I),a._from=!b&&!!d.runBackwards,!b||k&&!d.stagger){if(et=L[0]?za(L[0]).harness:0,Et=et&&d[et.prop],U=cu(d,ac),E&&(E._zTime<0&&E.progress(1),o<0&&A&&_&&!D?E.render(-1,!0):E.revert(A&&F?lu:xm),E._lazy=0),m){if(Yo(a._startAt=kn.set(L,rs({data:"isStart",overwrite:!1,parent:T,immediateRender:!0,lazy:!E&&br(y),startAt:null,delay:0,onUpdate:S&&function(){return jr(a,"onUpdate")},stagger:0},m))),a._startAt._dp=0,a._startAt._sat=a,o<0&&(nr||!_&&!D)&&a._startAt.revert(lu),_&&F&&o<=0&&c<=0){o&&(a._zTime=o);return}}else if(A&&F&&!E){if(o&&(_=!1),j=rs({overwrite:!1,data:"isFromStart",lazy:_&&!E&&br(y),immediateRender:_,stagger:0,parent:T},U),Et&&(j[et.prop]=Et),Yo(a._startAt=kn.set(L,j)),a._startAt._dp=0,a._startAt._sat=a,o<0&&(nr?a._startAt.revert(lu):a._startAt.render(-1,!0)),a._zTime=o,!_)x(a._startAt,en,en);else if(!o)return}for(a._pt=a._ptCache=0,y=F&&br(y)||y&&!F,N=0;N<L.length;N++){if($=L[N],It=$._gsap||cc(L)[N]._gsap,a._ptLookup[N]=G={},lc[It.id]&&qo.length&&uu(),Pt=M===L?N:M.indexOf($),et&&(yt=new et).init($,Et||U,a,Pt,M)!==!1&&(a._pt=J=new Cr(a._pt,$,yt.name,0,1,yt.render,yt,0,yt.priority),yt._props.forEach(function(fe){G[fe]=J}),yt.priority&&(ct=1)),!et||Et)for(j in U)Wr[j]&&(yt=fp(j,U,a,Pt,$,M))?yt.priority&&(ct=1):G[j]=J=xc.call(a,$,j,"get",U[j],Pt,M,0,d.stringFilter);a._op&&a._op[N]&&a.kill($,a._op[N]),R&&a._pt&&($o=a,pn.killTweensOf($,G,a.globalTime(o)),Ct=!a.parent,$o=0),a._pt&&y&&(lc[It.id]=1)}ct&&_p(a),a._onInit&&a._onInit(a)}a._onUpdate=S,a._initted=(!a._op||a._pt)&&!Ct,k&&o<=0&&b.render(ns,!0,!0)},qm=function(a,o,c,d,u,m,_,y){var S=(a._pt&&a._ptCache||(a._ptCache={}))[o],A,I,k,D;if(!S)for(S=a._ptCache[o]=[],k=a._ptLookup,D=a._targets.length;D--;){if(A=k[D][o],A&&A.d&&A.d._pt)for(A=A.d._pt;A&&A.p!==o&&A.fp!==o;)A=A._next;if(!A)return wc=1,a.vars[o]="+=0",Tc(a,_),wc=0,y?dh(o+" not eligible for reset"):1;S.push(A)}for(D=S.length;D--;)I=S[D],A=I._pt||I,A.s=(d||d===0)&&!u?d:A.s+(d||0)+m*A.c,A.c=c-A.s,I.e&&(I.e=Rn(c)+sr(I.e)),I.b&&(I.b=A.s+sr(I.b))},Ym=function(a,o){var c=a[0]?za(a[0]).harness:0,d=c&&c.aliases,u,m,_,y;if(!d)return o;u=ka({},o);for(m in d)if(m in u)for(y=d[m].split(","),_=y.length;_--;)u[y[_]]=u[m];return u},Zm=function(a,o,c,d){var u=o.ease||d||"power1.inOut",m,_;if(rr(o))_=c[a]||(c[a]=[]),o.forEach(function(y,S){return _.push({t:S/(o.length-1)*100,v:y,e:u})});else for(m in o)_=c[m]||(c[m]=[]),m==="ease"||_.push({t:parseFloat(a),v:o[m],e:u})},Sh=function(a,o,c,d,u){return Tn(a)?a.call(o,c,d,u):Wn(a)&&~a.indexOf("random(")?yh(a):a},pp=uc+"repeat,repeatDelay,yoyo,repeatRefresh,yoyoEase,autoRevert",dp={};Ar(pp+",id,stagger,delay,duration,paused,scrollTrigger",function(x){return dp[x]=1});var kn=function(x){bf(a,x);function a(c,d,u,m){var _;typeof d=="number"&&(u.duration=d,d=u,u=null),_=x.call(this,m?d:gh(d))||this;var y=_.vars,S=y.duration,A=y.delay,I=y.immediateRender,k=y.stagger,D=y.overwrite,F=y.keyframes,E=y.defaults,L=y.scrollTrigger,T=y.yoyoEase,M=d.parent||pn,R=(rr(c)||Cf(c)?co(c[0]):"length"in d)?[c]:os(c),b,U,N,j,J,$,ct,It;if(_._targets=R.length?cc(R):dh("GSAP target "+c+" not found. https://gsap.com",!Hr.nullTargetWarn)||[],_._ptLookup=[],_._overwrite=D,F||k||ou(S)||ou(A)){if(d=_.vars,b=_.timeline=new gr({data:"nested",defaults:E||{},targets:M&&M.data==="nested"?M.vars.targets:R}),b.kill(),b.parent=b._dp=uo(_),b._start=0,k||ou(S)||ou(A)){if(j=R.length,ct=k&&Jf(k),Gs(k))for(J in k)~pp.indexOf(J)&&(It||(It={}),It[J]=k[J]);for(U=0;U<j;U++)N=cu(d,dp),N.stagger=0,T&&(N.yoyoEase=T),It&&ka(N,It),$=R[U],N.duration=+Sh(S,uo(_),U,$,R),N.delay=(+Sh(A,uo(_),U,$,R)||0)-_._delay,!k&&j===1&&N.delay&&(_._delay=A=N.delay,_._start+=A,N.delay=0),b.to($,N,ct?ct(U,$,R):0),b._ease=Ri.none;b.duration()?S=A=0:_.timeline=0}else if(F){gh(rs(b.vars.defaults,{ease:"none"})),b._ease=Na(F.ease||d.ease||"none");var et=0,yt,G,Pt;if(rr(F))F.forEach(function(Et){return b.to(R,Et,">")}),b.duration();else{N={};for(J in F)J==="ease"||J==="easeEach"||Zm(J,F[J],N,F.easeEach);for(J in N)for(yt=N[J].sort(function(Et,Ct){return Et.t-Ct.t}),et=0,U=0;U<yt.length;U++)G=yt[U],Pt={ease:G.e,duration:(G.t-(U?yt[U-1].t:0))/100*S},Pt[J]=G.v,b.to(R,Pt,et),et+=Pt.duration;b.duration()<S&&b.to({},{duration:S-b.duration()})}}S||_.duration(S=b.duration())}else _.timeline=0;return D===!0&&!Ku&&($o=uo(_),pn.killTweensOf(R),$o=0),Vs(M,uo(_),u),d.reversed&&_.reverse(),d.paused&&_.paused(!0),(I||!S&&!F&&_._start===jn(M._time)&&br(I)&&bm(uo(_))&&M.data!=="nested")&&(_._tTime=-en,_.render(Math.max(0,-A)||0)),L&&jf(uo(_),L),_}var o=a.prototype;return o.render=function(d,u,m){var _=this._time,y=this._tDur,S=this._dur,A=d<0,I=d>y-en&&!A?y:d<en?0:d,k,D,F,E,L,T,M,R,b;if(!S)Cm(this,d,u,m);else if(I!==this._tTime||!d||m||!this._initted&&this._tTime||this._startAt&&this._zTime<0!==A){if(k=I,R=this.timeline,this._repeat){if(E=S+this._rDelay,this._repeat<-1&&A)return this.totalTime(E*100+d,u,m);if(k=jn(I%E),I===y?(F=this._repeat,k=S):(F=~~(I/E),F&&F===jn(I/E)&&(k=S,F--),k>S&&(k=S)),T=this._yoyo&&F&1,T&&(b=this._yEase,k=S-k),L=Rl(this._tTime,E),k===_&&!m&&this._initted&&F===L)return this._tTime=I,this;F!==L&&(R&&this._yEase&&hp(R,T),this.vars.repeatRefresh&&!T&&!this._lock&&this._time!==E&&this._initted&&(this._lock=m=1,this.render(jn(E*F),!0).invalidate()._lock=0))}if(!this._initted){if(Xf(this,A?d:k,m,u,I))return this._tTime=0,this;if(_!==this._time&&!(m&&this.vars.repeatRefresh&&F!==L))return this;if(S!==this._dur)return this.render(d,u,m)}if(this._tTime=I,this._time=k,!this._act&&this._ts&&(this._act=1,this._lazy=0),this.ratio=M=(b||this._ease)(k/S),this._from&&(this.ratio=M=1-M),k&&!_&&!u&&!F&&(jr(this,"onStart"),this._tTime!==I))return this;for(D=this._pt;D;)D.r(M,D.d),D=D._next;R&&R.render(d<0?d:R._dur*R._ease(k/this._dur),u,m)||this._startAt&&(this._zTime=d),this._onUpdate&&!u&&(A&&fc(this,d,u,m),jr(this,"onUpdate")),this._repeat&&F!==L&&this.vars.onRepeat&&!u&&this.parent&&jr(this,"onRepeat"),(I===this._tDur||!I)&&this._tTime===I&&(A&&!this._onUpdate&&fc(this,d,!0,!0),(d||!S)&&(I===this._tDur&&this._ts>0||!I&&this._ts<0)&&Yo(this,1),!u&&!(A&&!_)&&(I||_||T)&&(jr(this,I===y?"onComplete":"onReverseComplete",!0),this._prom&&!(I<y&&this.timeScale()>0)&&this._prom()))}return this},o.targets=function(){return this._targets},o.invalidate=function(d){return(!d||!this.vars.runBackwards)&&(this._startAt=0),this._pt=this._op=this._onUpdate=this._lazy=this.ratio=0,this._ptLookup=[],this.timeline&&this.timeline.invalidate(d),x.prototype.invalidate.call(this,d)},o.resetTo=function(d,u,m,_,y){Th||Xr.wake(),this._ts||this.play();var S=Math.min(this._dur,(this._dp._time-this._start)*this._ts),A;return this._initted||Tc(this,S),A=this._ease(S/this._dur),qm(this,d,u,m,_,A,S,y)?this.resetTo(d,u,m,_,1):(mu(this,0),this.parent||Hf(this._dp,this,"_first","_last",this._dp._sort?"_start":0),this.render(0))},o.kill=function(d,u){if(u===void 0&&(u="all"),!d&&(!u||u==="all"))return this._lazy=this._pt=0,this.parent?xh(this):this;if(this.timeline){var m=this.timeline.totalDuration();return this.timeline.killTweensOf(d,u,$o&&$o.vars.overwrite!==!0)._first||xh(this),this.parent&&m!==this.timeline.totalDuration()&&Ol(this,this._dur*this.timeline._tDur/m,0,1),this}var _=this._targets,y=d?os(d):_,S=this._ptLookup,A=this._pt,I,k,D,F,E,L,T;if((!u||u==="all")&&Sm(_,y))return u==="all"&&(this._pt=0),xh(this);for(I=this._op=this._op||[],u!=="all"&&(Wn(u)&&(E={},Ar(u,function(M){return E[M]=1}),u=E),u=Ym(_,u)),T=_.length;T--;)if(~y.indexOf(_[T])){k=S[T],u==="all"?(I[T]=u,F=k,D={}):(D=I[T]=I[T]||{},F=u);for(E in F)L=k&&k[E],L&&((!("kill"in L.d)||L.d.kill(E)===!0)&&fu(this,L,"_pt"),delete k[E]),D!=="all"&&(D[E]=1)}return this._initted&&!this._pt&&A&&xh(this),this},a.to=function(d,u){return new a(d,u,arguments[2])},a.from=function(d,u){return vh(1,arguments)},a.delayedCall=function(d,u,m,_){return new a(u,0,{immediateRender:!1,lazy:!1,overwrite:!1,delay:d,onComplete:u,onReverseComplete:u,onCompleteParams:m,onReverseCompleteParams:m,callbackScope:_})},a.fromTo=function(d,u,m){return vh(2,arguments)},a.set=function(d,u){return u.duration=0,u.repeatDelay||(u.repeat=0),new a(d,u)},a.killTweensOf=function(d,u,m){return pn.killTweensOf(d,u,m)},a}(Mh);rs(kn.prototype,{_targets:[],_lazy:0,_startAt:0,_op:0,_onInit:0}),Ar("staggerTo,staggerFrom,staggerFromTo",function(x){kn[x]=function(){var a=new gr,o=dc.call(arguments,0);return o.splice(x==="staggerFromTo"?5:4,0,0),a[x].apply(a,o)}});var Mc=function(a,o,c){return a[o]=c},mp=function(a,o,c){return a[o](c)},Jm=function(a,o,c,d){return a[o](d.fp,c)},$m=function(a,o,c){return a.setAttribute(o,c)},Sc=function(a,o){return Tn(a[o])?mp:tc(a[o])&&a.setAttribute?$m:Mc},gp=function(a,o){return o.set(o.t,o.p,Math.round((o.s+o.c*a)*1e6)/1e6,o)},Km=function(a,o){return o.set(o.t,o.p,!!(o.s+o.c*a),o)},vp=function(a,o){var c=o._pt,d="";if(!a&&o.b)d=o.b;else if(a===1&&o.e)d=o.e;else{for(;c;)d=c.p+(c.m?c.m(c.s+c.c*a):Math.round((c.s+c.c*a)*1e4)/1e4)+d,c=c._next;d+=o.c}o.set(o.t,o.p,d,o)},Ec=function(a,o){for(var c=o._pt;c;)c.r(a,c.d),c=c._next},Qm=function(a,o,c,d){for(var u=this._pt,m;u;)m=u._next,u.p===d&&u.modifier(a,o,c),u=m},tg=function(a){for(var o=this._pt,c,d;o;)d=o._next,o.p===a&&!o.op||o.op===a?fu(this,o,"_pt"):o.dep||(c=1),o=d;return!c},eg=function(a,o,c,d){d.mSet(a,o,d.m.call(d.tween,c,d.mt),d)},_p=function(a){for(var o=a._pt,c,d,u,m;o;){for(c=o._next,d=u;d&&d.pr>o.pr;)d=d._next;(o._prev=d?d._prev:m)?o._prev._next=o:u=o,(o._next=d)?d._prev=o:m=o,o=c}a._pt=u},Cr=function(){function x(o,c,d,u,m,_,y,S,A){this.t=c,this.s=u,this.c=m,this.p=d,this.r=_||gp,this.d=y||this,this.set=S||Mc,this.pr=A||0,this._next=o,o&&(o._prev=this)}var a=x.prototype;return a.modifier=function(c,d,u){this.mSet=this.mSet||this.set,this.set=eg,this.m=c,this.mt=u,this.tween=d},x}();Ar(uc+"parent,duration,ease,delay,overwrite,runBackwards,startAt,yoyo,immediateRender,repeat,repeatDelay,data,paused,reversed,lazy,callbackScope,stringFilter,id,yoyoEase,stagger,inherit,repeatRefresh,keyframes,autoRevert,scrollTrigger",function(x){return ac[x]=1}),Vr.TweenMax=Vr.TweenLite=kn,Vr.TimelineLite=Vr.TimelineMax=gr,pn=new gr({sortChildren:!1,defaults:Cl,autoRemoveChildren:!0,id:"root",smoothChildTiming:!0}),Hr.stringFilter=ap;var Ua=[],gu={},ig=[],yp=0,ng=0,bc=function(a){return(gu[a]||ig).map(function(o){return o()})},Ac=function(){var a=Date.now(),o=[];a-yp>2&&(bc("matchMediaInit"),Ua.forEach(function(c){var d=c.queries,u=c.conditions,m,_,y,S;for(_ in d)m=Hs.matchMedia(d[_]).matches,m&&(y=1),m!==u[_]&&(u[_]=m,S=1);S&&(c.revert(),y&&o.push(c))}),bc("matchMediaRevert"),o.forEach(function(c){return c.onMatch(c,function(d){return c.add(null,d)})}),yp=a,bc("matchMedia"))},xp=function(){function x(o,c){this.selector=c&&mc(c),this.data=[],this._r=[],this.isReverted=!1,this.id=ng++,o&&this.add(o)}var a=x.prototype;return a.add=function(c,d,u){Tn(c)&&(u=d,d=c,c=Tn);var m=this,_=function(){var S=hn,A=m.selector,I;return S&&S!==m&&S.data.push(m),u&&(m.selector=mc(u)),hn=m,I=d.apply(m,arguments),Tn(I)&&m._r.push(I),hn=S,m.selector=A,m.isReverted=!1,I};return m.last=_,c===Tn?_(m,function(y){return m.add(null,y)}):c?m[c]=_:_},a.ignore=function(c){var d=hn;hn=null,c(this),hn=d},a.getTweens=function(){var c=[];return this.data.forEach(function(d){return d instanceof x?c.push.apply(c,d.getTweens()):d instanceof kn&&!(d.parent&&d.parent.data==="nested")&&c.push(d)}),c},a.clear=function(){this._r.length=this.data.length=0},a.kill=function(c,d){var u=this;if(c?function(){for(var _=u.getTweens(),y=u.data.length,S;y--;)S=u.data[y],S.data==="isFlip"&&(S.revert(),S.getChildren(!0,!0,!1).forEach(function(A){return _.splice(_.indexOf(A),1)}));for(_.map(function(A){return{g:A._dur||A._delay||A._sat&&!A._sat.vars.immediateRender?A.globalTime(0):-1/0,t:A}}).sort(function(A,I){return I.g-A.g||-1/0}).forEach(function(A){return A.t.revert(c)}),y=u.data.length;y--;)S=u.data[y],S instanceof gr?S.data!=="nested"&&(S.scrollTrigger&&S.scrollTrigger.revert(),S.kill()):!(S instanceof kn)&&S.revert&&S.revert(c);u._r.forEach(function(A){return A(c,u)}),u.isReverted=!0}():this.data.forEach(function(_){return _.kill&&_.kill()}),this.clear(),d)for(var m=Ua.length;m--;)Ua[m].id===this.id&&Ua.splice(m,1)},a.revert=function(c){this.kill(c||{})},x}(),rg=function(){function x(o){this.contexts=[],this.scope=o,hn&&hn.data.push(this)}var a=x.prototype;return a.add=function(c,d,u){Gs(c)||(c={matches:c});var m=new xp(0,u||this.scope),_=m.conditions={},y,S,A;hn&&!m.selector&&(m.selector=hn.selector),this.contexts.push(m),d=m.add("onMatch",d),m.queries=c;for(S in c)S==="all"?A=1:(y=Hs.matchMedia(c[S]),y&&(Ua.indexOf(m)<0&&Ua.push(m),(_[S]=y.matches)&&(A=1),y.addListener?y.addListener(Ac):y.addEventListener("change",Ac)));return A&&d(m,function(I){return m.add(null,I)}),this},a.revert=function(c){this.kill(c||{})},a.kill=function(c){this.contexts.forEach(function(d){return d.kill(c,!0)})},x}(),vu={registerPlugin:function(){for(var a=arguments.length,o=new Array(a),c=0;c<a;c++)o[c]=arguments[c];o.forEach(function(d){return np(d)})},timeline:function(a){return new gr(a)},getTweensOf:function(a,o){return pn.getTweensOf(a,o)},getProperty:function(a,o,c,d){Wn(a)&&(a=os(a)[0]);var u=za(a||{}).get,m=c?Uf:Ff;return c==="native"&&(c=""),a&&(o?m((Wr[o]&&Wr[o].get||u)(a,o,c,d)):function(_,y,S){return m((Wr[_]&&Wr[_].get||u)(a,_,y,S))})},quickSetter:function(a,o,c){if(a=os(a),a.length>1){var d=a.map(function(A){return Pr.quickSetter(A,o,c)}),u=d.length;return function(A){for(var I=u;I--;)d[I](A)}}a=a[0]||{};var m=Wr[o],_=za(a),y=_.harness&&(_.harness.aliases||{})[o]||o,S=m?function(A){var I=new m;Il._pt=0,I.init(a,c?A+c:A,Il,0,[a]),I.render(1,I),Il._pt&&Ec(1,Il)}:_.set(a,y);return m?S:function(A){return S(a,y,c?A+c:A,_,1)}},quickTo:function(a,o,c){var d,u=Pr.to(a,ka((d={},d[o]="+=0.1",d.paused=!0,d),c||{})),m=function(y,S,A){return u.resetTo(o,y,S,A)};return m.tween=u,m},isTweening:function(a){return pn.getTweensOf(a,!0).length>0},defaults:function(a){return a&&a.ease&&(a.ease=Na(a.ease,Cl.ease)),Gf(Cl,a||{})},config:function(a){return Gf(Hr,a||{})},registerEffect:function(a){var o=a.name,c=a.effect,d=a.plugins,u=a.defaults,m=a.extendTimeline;(d||"").split(",").forEach(function(_){return _&&!Wr[_]&&!Vr[_]&&dh(o+" effect requires "+_+" plugin.")}),hc[o]=function(_,y,S){return c(os(_),rs(y||{},u),S)},m&&(gr.prototype[o]=function(_,y,S){return this.add(hc[o](_,Gs(y)?y:(S=y)&&{},this),S)})},registerEase:function(a,o){Ri[a]=Na(o)},parseEase:function(a,o){return arguments.length?Na(a,o):Ri},getById:function(a){return pn.getById(a)},exportRoot:function(a,o){a===void 0&&(a={});var c=new gr(a),d,u;for(c.smoothChildTiming=br(a.smoothChildTiming),pn.remove(c),c._dp=0,c._time=c._tTime=pn._time,d=pn._first;d;)u=d._next,(o||!(!d._dur&&d instanceof kn&&d.vars.onComplete===d._targets[0]))&&Vs(c,d,d._start-d._delay),d=u;return Vs(pn,c,0),c},context:function(a,o){return a?new xp(a,o):hn},matchMedia:function(a){return new rg(a)},matchMediaRefresh:function(){return Ua.forEach(function(a){var o=a.conditions,c,d;for(d in o)o[d]&&(o[d]=!1,c=1);c&&a.revert()})||Ac()},addEventListener:function(a,o){var c=gu[a]||(gu[a]=[]);~c.indexOf(o)||c.push(o)},removeEventListener:function(a,o){var c=gu[a],d=c&&c.indexOf(o);d>=0&&c.splice(d,1)},utils:{wrap:km,wrapYoyo:Bm,distribute:Jf,random:Kf,snap:$f,normalize:zm,getUnit:sr,clamp:Rm,splitColor:rp,toArray:os,selector:mc,mapRange:tp,pipe:Im,unitize:Dm,interpolate:Nm,shuffle:Zf},install:If,effects:hc,ticker:Xr,updateRoot:gr.updateRoot,plugins:Wr,globalTimeline:pn,core:{PropTween:Cr,globals:Df,Tween:kn,Timeline:gr,Animation:Mh,getCache:za,_removeLinkedListItem:fu,reverting:function(){return nr},context:function(a){return a&&hn&&(hn.data.push(a),a._ctx=hn),hn},suppressOverwrites:function(a){return Ku=a}}};Ar("to,from,fromTo,delayedCall,set,killTweensOf",function(x){return vu[x]=kn[x]}),Xr.add(gr.updateRoot),Il=vu.to({},{duration:0});var sg=function(a,o){for(var c=a._pt;c&&c.p!==o&&c.op!==o&&c.fp!==o;)c=c._next;return c},og=function(a,o){var c=a._targets,d,u,m;for(d in o)for(u=c.length;u--;)m=a._ptLookup[u][d],m&&(m=m.d)&&(m._pt&&(m=sg(m,d)),m&&m.modifier&&m.modifier(o[d],a,c[u],d))},Cc=function(a,o){return{name:a,rawVars:1,init:function(d,u,m){m._onInit=function(_){var y,S;if(Wn(u)&&(y={},Ar(u,function(A){return y[A]=1}),u=y),o){y={};for(S in u)y[S]=o(u[S]);u=y}og(_,u)}}}},Pr=vu.registerPlugin({name:"attr",init:function(a,o,c,d,u){var m,_,y;this.tween=c;for(m in o)y=a.getAttribute(m)||"",_=this.add(a,"setAttribute",(y||0)+"",o[m],d,u,0,0,m),_.op=m,_.b=y,this._props.push(m)},render:function(a,o){for(var c=o._pt;c;)nr?c.set(c.t,c.p,c.b,c):c.r(a,c.d),c=c._next}},{name:"endArray",init:function(a,o){for(var c=o.length;c--;)this.add(a,c,a[c]||0,o[c],0,0,0,0,0,1)}},Cc("roundProps",gc),Cc("modifiers"),Cc("snap",$f))||vu;kn.version=gr.version=Pr.version="3.12.5",Of=1,ec()&&Dl(),Ri.Power0,Ri.Power1,Ri.Power2,Ri.Power3,Ri.Power4,Ri.Linear,Ri.Quad,Ri.Cubic,Ri.Quart,Ri.Quint,Ri.Strong,Ri.Elastic,Ri.Back,Ri.SteppedEase,Ri.Bounce,Ri.Sine,Ri.Expo,Ri.Circ;/*!
2693
2693
  * CSSPlugin 3.12.5
2694
2694
  * https://gsap.com
2695
2695
  *
@@ -2697,4 +2697,4 @@ function print() { __p += __j.call(arguments, '') }
2697
2697
  * Subject to the terms at https://gsap.com/standard-license or for
2698
2698
  * Club GSAP members, the agreement issued with that membership.
2699
2699
  * @author: Jack Doyle, jack@greensock.com
2700
- */var wp,Ko,zl,Pc,Ga,Tp,Lc,og=function(){return typeof window<"u"},fo={},Ha=180/Math.PI,kl=Math.PI/180,Bl=Math.atan2,Mp=1e8,Rc=/([A-Z])/g,ag=/(left|right|width|margin|padding|x)/i,lg=/[\s,\(]\S/,Ws={autoAlpha:"opacity,visibility",scale:"scaleX,scaleY",alpha:"opacity"},Oc=function(l,o){return o.set(o.t,o.p,Math.round((o.s+o.c*l)*1e4)/1e4+o.u,o)},hg=function(l,o){return o.set(o.t,o.p,l===1?o.e:Math.round((o.s+o.c*l)*1e4)/1e4+o.u,o)},ug=function(l,o){return o.set(o.t,o.p,l?Math.round((o.s+o.c*l)*1e4)/1e4+o.u:o.b,o)},cg=function(l,o){var c=o.s+o.c*l;o.set(o.t,o.p,~~(c+(c<0?-.5:.5))+o.u,o)},Sp=function(l,o){return o.set(o.t,o.p,l?o.e:o.b,o)},Ep=function(l,o){return o.set(o.t,o.p,l!==1?o.b:o.e,o)},fg=function(l,o,c){return l.style[o]=c},pg=function(l,o,c){return l.style.setProperty(o,c)},dg=function(l,o,c){return l._gsap[o]=c},mg=function(l,o,c){return l._gsap.scaleX=l._gsap.scaleY=c},gg=function(l,o,c,d,u){var m=l._gsap;m.scaleX=m.scaleY=c,m.renderTransform(u,m)},vg=function(l,o,c,d,u){var m=l._gsap;m[o]=c,m.renderTransform(u,m)},dn="transform",Lr=dn+"Origin",_g=function x(l,o){var c=this,d=this.target,u=d.style,m=d._gsap;if(l in fo&&u){if(this.tfm=this.tfm||{},l!=="transform")l=Ws[l]||l,~l.indexOf(",")?l.split(",").forEach(function(_){return c.tfm[_]=po(d,_)}):this.tfm[l]=m.x?m[l]:po(d,l),l===Lr&&(this.tfm.zOrigin=m.zOrigin);else return Ws.transform.split(",").forEach(function(_){return x.call(c,_,o)});if(this.props.indexOf(dn)>=0)return;m.svg&&(this.svgo=d.getAttribute("data-svg-origin"),this.props.push(Lr,o,"")),l=dn}(u||o)&&this.props.push(l,o,u[l])},bp=function(l){l.translate&&(l.removeProperty("translate"),l.removeProperty("scale"),l.removeProperty("rotate"))},yg=function(){var l=this.props,o=this.target,c=o.style,d=o._gsap,u,m;for(u=0;u<l.length;u+=3)l[u+1]?o[l[u]]=l[u+2]:l[u+2]?c[l[u]]=l[u+2]:c.removeProperty(l[u].substr(0,2)==="--"?l[u]:l[u].replace(Rc,"-$1").toLowerCase());if(this.tfm){for(m in this.tfm)d[m]=this.tfm[m];d.svg&&(d.renderTransform(),o.setAttribute("data-svg-origin",this.svgo||"")),u=Lc(),(!u||!u.isStart)&&!c[dn]&&(bp(c),d.zOrigin&&c[Lr]&&(c[Lr]+=" "+d.zOrigin+"px",d.zOrigin=0,d.renderTransform()),d.uncache=1)}},Ap=function(l,o){var c={target:l,props:[],revert:yg,save:_g};return l._gsap||Pr.core.getCache(l),o&&o.split(",").forEach(function(d){return c.save(d)}),c},Cp,Ic=function(l,o){var c=Ko.createElementNS?Ko.createElementNS((o||"http://www.w3.org/1999/xhtml").replace(/^https/,"http"),l):Ko.createElement(l);return c&&c.style?c:Ko.createElement(l)},js=function x(l,o,c){var d=getComputedStyle(l);return d[o]||d.getPropertyValue(o.replace(Rc,"-$1").toLowerCase())||d.getPropertyValue(o)||!c&&x(l,Nl(o)||o,1)||""},Pp="O,Moz,ms,Ms,Webkit".split(","),Nl=function(l,o,c){var d=o||Ga,u=d.style,m=5;if(l in u&&!c)return l;for(l=l.charAt(0).toUpperCase()+l.substr(1);m--&&!(Pp[m]+l in u););return m<0?null:(m===3?"ms":m>=0?Pp[m]:"")+l},Dc=function(){og()&&window.document&&(wp=window,Ko=wp.document,zl=Ko.documentElement,Ga=Ic("div")||{style:{}},Ic("div"),dn=Nl(dn),Lr=dn+"Origin",Ga.style.cssText="border-width:0;line-height:0;position:absolute;padding:0",Cp=!!Nl("perspective"),Lc=Pr.core.reverting,Pc=1)},zc=function x(l){var o=Ic("svg",this.ownerSVGElement&&this.ownerSVGElement.getAttribute("xmlns")||"http://www.w3.org/2000/svg"),c=this.parentNode,d=this.nextSibling,u=this.style.cssText,m;if(zl.appendChild(o),o.appendChild(this),this.style.display="block",l)try{m=this.getBBox(),this._gsapBBox=this.getBBox,this.getBBox=x}catch{}else this._gsapBBox&&(m=this._gsapBBox());return c&&(d?c.insertBefore(this,d):c.appendChild(this)),zl.removeChild(o),this.style.cssText=u,m},Lp=function(l,o){for(var c=o.length;c--;)if(l.hasAttribute(o[c]))return l.getAttribute(o[c])},Rp=function(l){var o;try{o=l.getBBox()}catch{o=zc.call(l,!0)}return o&&(o.width||o.height)||l.getBBox===zc||(o=zc.call(l,!0)),o&&!o.width&&!o.x&&!o.y?{x:+Lp(l,["x","cx","x1"])||0,y:+Lp(l,["y","cy","y1"])||0,width:0,height:0}:o},Op=function(l){return!!(l.getCTM&&(!l.parentNode||l.ownerSVGElement)&&Rp(l))},Va=function(l,o){if(o){var c=l.style,d;o in fo&&o!==Lr&&(o=dn),c.removeProperty?(d=o.substr(0,2),(d==="ms"||o.substr(0,6)==="webkit")&&(o="-"+o),c.removeProperty(d==="--"?o:o.replace(Rc,"-$1").toLowerCase())):c.removeAttribute(o)}},Qo=function(l,o,c,d,u,m){var _=new Cr(l._pt,o,c,0,1,m?Ep:Sp);return l._pt=_,_.b=d,_.e=u,l._props.push(c),_},Ip={deg:1,rad:1,turn:1},xg={grid:1,flex:1},ta=function x(l,o,c,d){var u=parseFloat(c)||0,m=(c+"").trim().substr((u+"").length)||"px",_=Ga.style,y=ag.test(o),S=l.tagName.toLowerCase()==="svg",A=(S?"client":"offset")+(y?"Width":"Height"),I=100,k=d==="px",D=d==="%",N,E,P,T;if(d===m||!u||Ip[d]||Ip[m])return u;if(m!=="px"&&!k&&(u=x(l,o,c,"px")),T=l.getCTM&&Op(l),(D||m==="%")&&(fo[o]||~o.indexOf("adius")))return N=T?l.getBBox()[y?"width":"height"]:l[A],Rn(D?u/N*I:u/100*N);if(_[y?"width":"height"]=I+(k?m:d),E=~o.indexOf("adius")||d==="em"&&l.appendChild&&!S?l:l.parentNode,T&&(E=(l.ownerSVGElement||{}).parentNode),(!E||E===Ko||!E.appendChild)&&(E=Ko.body),P=E._gsap,P&&D&&P.width&&y&&P.time===Xr.time&&!P.uncache)return Rn(u/P.width*I);if(D&&(o==="height"||o==="width")){var M=l.style[o];l.style[o]=I+d,N=l[A],M?l.style[o]=M:Va(l,o)}else(D||m==="%")&&!xg[js(E,"display")]&&(_.position=js(l,"position")),E===l&&(_.position="static"),E.appendChild(Ga),N=Ga[A],E.removeChild(Ga),_.position="absolute";return y&&D&&(P=za(E),P.time=Xr.time,P.width=E[A]),Rn(k?N*u/I:N&&u?I/N*u:0)},po=function(l,o,c,d){var u;return Pc||Dc(),o in Ws&&o!=="transform"&&(o=Ws[o],~o.indexOf(",")&&(o=o.split(",")[0])),fo[o]&&o!=="transform"?(u=bh(l,d),u=o!=="transformOrigin"?u[o]:u.svg?u.origin:yu(js(l,Lr))+" "+u.zOrigin+"px"):(u=l.style[o],(!u||u==="auto"||d||~(u+"").indexOf("calc("))&&(u=_u[o]&&_u[o](l,o,c)||js(l,o)||Bf(l,o)||(o==="opacity"?1:0))),c&&!~(u+"").trim().indexOf(" ")?ta(l,o,u,c)+c:u},wg=function(l,o,c,d){if(!c||c==="none"){var u=Nl(o,l,1),m=u&&js(l,u,1);m&&m!==c?(o=u,c=m):o==="borderColor"&&(c=js(l,"borderTopColor"))}var _=new Cr(this._pt,l.style,o,0,1,vp),y=0,S=0,A,I,k,D,N,E,P,T,M,R,b,U;if(_.b=c,_.e=d,c+="",d+="",d==="auto"&&(E=l.style[o],l.style[o]=d,d=js(l,o)||d,E?l.style[o]=E:Va(l,o)),A=[c,d],ap(A),c=A[0],d=A[1],k=c.match(Pl)||[],U=d.match(Pl)||[],U.length){for(;I=Pl.exec(d);)P=I[0],M=d.substring(y,I.index),N?N=(N+1)%5:(M.substr(-5)==="rgba("||M.substr(-5)==="hsla(")&&(N=1),P!==(E=k[S++]||"")&&(D=parseFloat(E)||0,b=E.substr((D+"").length),P.charAt(1)==="="&&(P=Ll(D,P)+b),T=parseFloat(P),R=P.substr((T+"").length),y=Pl.lastIndex-R.length,R||(R=R||Hr.units[o]||b,y===d.length&&(d+=R,_.e+=R)),b!==R&&(D=ta(l,o,E,R)||0),_._pt={_next:_._pt,p:M||S===1?M:",",s:D,c:T-D,m:N&&N<4||o==="zIndex"?Math.round:0});_.c=y<d.length?d.substring(y,d.length):""}else _.r=o==="display"&&d==="none"?Ep:Sp;return Lf.test(d)&&(_.e=0),this._pt=_,_},Dp={top:"0%",bottom:"100%",left:"0%",right:"100%",center:"50%"},Tg=function(l){var o=l.split(" "),c=o[0],d=o[1]||"50%";return(c==="top"||c==="bottom"||d==="left"||d==="right")&&(l=c,c=d,d=l),o[0]=Dp[c]||c,o[1]=Dp[d]||d,o.join(" ")},Mg=function(l,o){if(o.tween&&o.tween._time===o.tween._dur){var c=o.t,d=c.style,u=o.u,m=c._gsap,_,y,S;if(u==="all"||u===!0)d.cssText="",y=1;else for(u=u.split(","),S=u.length;--S>-1;)_=u[S],fo[_]&&(y=1,_=_==="transformOrigin"?Lr:dn),Va(c,_);y&&(Va(c,dn),m&&(m.svg&&c.removeAttribute("transform"),bh(c,1),m.uncache=1,bp(d)))}},_u={clearProps:function(l,o,c,d,u){if(u.data!=="isFromStart"){var m=l._pt=new Cr(l._pt,o,c,0,0,Mg);return m.u=d,m.pr=-10,m.tween=u,l._props.push(c),1}}},Eh=[1,0,0,1,0,0],zp={},kp=function(l){return l==="matrix(1, 0, 0, 1, 0, 0)"||l==="none"||!l},Bp=function(l){var o=js(l,dn);return kp(o)?Eh:o.substr(7).match(Pf).map(Rn)},kc=function(l,o){var c=l._gsap||za(l),d=l.style,u=Bp(l),m,_,y,S;return c.svg&&l.getAttribute("transform")?(y=l.transform.baseVal.consolidate().matrix,u=[y.a,y.b,y.c,y.d,y.e,y.f],u.join(",")==="1,0,0,1,0,0"?Eh:u):(u===Eh&&!l.offsetParent&&l!==zl&&!c.svg&&(y=d.display,d.display="block",m=l.parentNode,(!m||!l.offsetParent)&&(S=1,_=l.nextElementSibling,zl.appendChild(l)),u=Bp(l),y?d.display=y:Va(l,"display"),S&&(_?m.insertBefore(l,_):m?m.appendChild(l):zl.removeChild(l))),o&&u.length>6?[u[0],u[1],u[4],u[5],u[12],u[13]]:u)},Bc=function(l,o,c,d,u,m){var _=l._gsap,y=u||kc(l,!0),S=_.xOrigin||0,A=_.yOrigin||0,I=_.xOffset||0,k=_.yOffset||0,D=y[0],N=y[1],E=y[2],P=y[3],T=y[4],M=y[5],R=o.split(" "),b=parseFloat(R[0])||0,U=parseFloat(R[1])||0,F,j,J,$;c?y!==Eh&&(j=D*P-N*E)&&(J=b*(P/j)+U*(-E/j)+(E*M-P*T)/j,$=b*(-N/j)+U*(D/j)-(D*M-N*T)/j,b=J,U=$):(F=Rp(l),b=F.x+(~R[0].indexOf("%")?b/100*F.width:b),U=F.y+(~(R[1]||R[0]).indexOf("%")?U/100*F.height:U)),d||d!==!1&&_.smooth?(T=b-S,M=U-A,_.xOffset=I+(T*D+M*E)-T,_.yOffset=k+(T*N+M*P)-M):_.xOffset=_.yOffset=0,_.xOrigin=b,_.yOrigin=U,_.smooth=!!d,_.origin=o,_.originIsAbsolute=!!c,l.style[Lr]="0px 0px",m&&(Qo(m,_,"xOrigin",S,b),Qo(m,_,"yOrigin",A,U),Qo(m,_,"xOffset",I,_.xOffset),Qo(m,_,"yOffset",k,_.yOffset)),l.setAttribute("data-svg-origin",b+" "+U)},bh=function(l,o){var c=l._gsap||new cp(l);if("x"in c&&!o&&!c.uncache)return c;var d=l.style,u=c.scaleX<0,m="px",_="deg",y=getComputedStyle(l),S=js(l,Lr)||"0",A,I,k,D,N,E,P,T,M,R,b,U,F,j,J,$,ct,It,et,yt,G,Pt,Et,Ct,fe,re,Ft,Ot,Bt,ke,ce,Yt;return A=I=k=E=P=T=M=R=b=0,D=N=1,c.svg=!!(l.getCTM&&Op(l)),y.translate&&((y.translate!=="none"||y.scale!=="none"||y.rotate!=="none")&&(d[dn]=(y.translate!=="none"?"translate3d("+(y.translate+" 0 0").split(" ").slice(0,3).join(", ")+") ":"")+(y.rotate!=="none"?"rotate("+y.rotate+") ":"")+(y.scale!=="none"?"scale("+y.scale.split(" ").join(",")+") ":"")+(y[dn]!=="none"?y[dn]:"")),d.scale=d.rotate=d.translate="none"),j=kc(l,c.svg),c.svg&&(c.uncache?(fe=l.getBBox(),S=c.xOrigin-fe.x+"px "+(c.yOrigin-fe.y)+"px",Ct=""):Ct=!o&&l.getAttribute("data-svg-origin"),Bc(l,Ct||S,!!Ct||c.originIsAbsolute,c.smooth!==!1,j)),U=c.xOrigin||0,F=c.yOrigin||0,j!==Eh&&(It=j[0],et=j[1],yt=j[2],G=j[3],A=Pt=j[4],I=Et=j[5],j.length===6?(D=Math.sqrt(It*It+et*et),N=Math.sqrt(G*G+yt*yt),E=It||et?Bl(et,It)*Ha:0,M=yt||G?Bl(yt,G)*Ha+E:0,M&&(N*=Math.abs(Math.cos(M*kl))),c.svg&&(A-=U-(U*It+F*yt),I-=F-(U*et+F*G))):(Yt=j[6],ke=j[7],Ft=j[8],Ot=j[9],Bt=j[10],ce=j[11],A=j[12],I=j[13],k=j[14],J=Bl(Yt,Bt),P=J*Ha,J&&($=Math.cos(-J),ct=Math.sin(-J),Ct=Pt*$+Ft*ct,fe=Et*$+Ot*ct,re=Yt*$+Bt*ct,Ft=Pt*-ct+Ft*$,Ot=Et*-ct+Ot*$,Bt=Yt*-ct+Bt*$,ce=ke*-ct+ce*$,Pt=Ct,Et=fe,Yt=re),J=Bl(-yt,Bt),T=J*Ha,J&&($=Math.cos(-J),ct=Math.sin(-J),Ct=It*$-Ft*ct,fe=et*$-Ot*ct,re=yt*$-Bt*ct,ce=G*ct+ce*$,It=Ct,et=fe,yt=re),J=Bl(et,It),E=J*Ha,J&&($=Math.cos(J),ct=Math.sin(J),Ct=It*$+et*ct,fe=Pt*$+Et*ct,et=et*$-It*ct,Et=Et*$-Pt*ct,It=Ct,Pt=fe),P&&Math.abs(P)+Math.abs(E)>359.9&&(P=E=0,T=180-T),D=Rn(Math.sqrt(It*It+et*et+yt*yt)),N=Rn(Math.sqrt(Et*Et+Yt*Yt)),J=Bl(Pt,Et),M=Math.abs(J)>2e-4?J*Ha:0,b=ce?1/(ce<0?-ce:ce):0),c.svg&&(Ct=l.getAttribute("transform"),c.forceCSS=l.setAttribute("transform","")||!kp(js(l,dn)),Ct&&l.setAttribute("transform",Ct))),Math.abs(M)>90&&Math.abs(M)<270&&(u?(D*=-1,M+=E<=0?180:-180,E+=E<=0?180:-180):(N*=-1,M+=M<=0?180:-180)),o=o||c.uncache,c.x=A-((c.xPercent=A&&(!o&&c.xPercent||(Math.round(l.offsetWidth/2)===Math.round(-A)?-50:0)))?l.offsetWidth*c.xPercent/100:0)+m,c.y=I-((c.yPercent=I&&(!o&&c.yPercent||(Math.round(l.offsetHeight/2)===Math.round(-I)?-50:0)))?l.offsetHeight*c.yPercent/100:0)+m,c.z=k+m,c.scaleX=Rn(D),c.scaleY=Rn(N),c.rotation=Rn(E)+_,c.rotationX=Rn(P)+_,c.rotationY=Rn(T)+_,c.skewX=M+_,c.skewY=R+_,c.transformPerspective=b+m,(c.zOrigin=parseFloat(S.split(" ")[2])||!o&&c.zOrigin||0)&&(d[Lr]=yu(S)),c.xOffset=c.yOffset=0,c.force3D=Hr.force3D,c.renderTransform=c.svg?Eg:Cp?Np:Sg,c.uncache=0,c},yu=function(l){return(l=l.split(" "))[0]+" "+l[1]},Nc=function(l,o,c){var d=sr(o);return Rn(parseFloat(o)+parseFloat(ta(l,"x",c+"px",d)))+d},Sg=function(l,o){o.z="0px",o.rotationY=o.rotationX="0deg",o.force3D=0,Np(l,o)},Wa="0deg",Ah="0px",ja=") ",Np=function(l,o){var c=o||this,d=c.xPercent,u=c.yPercent,m=c.x,_=c.y,y=c.z,S=c.rotation,A=c.rotationY,I=c.rotationX,k=c.skewX,D=c.skewY,N=c.scaleX,E=c.scaleY,P=c.transformPerspective,T=c.force3D,M=c.target,R=c.zOrigin,b="",U=T==="auto"&&l&&l!==1||T===!0;if(R&&(I!==Wa||A!==Wa)){var F=parseFloat(A)*kl,j=Math.sin(F),J=Math.cos(F),$;F=parseFloat(I)*kl,$=Math.cos(F),m=Nc(M,m,j*$*-R),_=Nc(M,_,-Math.sin(F)*-R),y=Nc(M,y,J*$*-R+R)}P!==Ah&&(b+="perspective("+P+ja),(d||u)&&(b+="translate("+d+"%, "+u+"%) "),(U||m!==Ah||_!==Ah||y!==Ah)&&(b+=y!==Ah||U?"translate3d("+m+", "+_+", "+y+") ":"translate("+m+", "+_+ja),S!==Wa&&(b+="rotate("+S+ja),A!==Wa&&(b+="rotateY("+A+ja),I!==Wa&&(b+="rotateX("+I+ja),(k!==Wa||D!==Wa)&&(b+="skew("+k+", "+D+ja),(N!==1||E!==1)&&(b+="scale("+N+", "+E+ja),M.style[dn]=b||"translate(0, 0)"},Eg=function(l,o){var c=o||this,d=c.xPercent,u=c.yPercent,m=c.x,_=c.y,y=c.rotation,S=c.skewX,A=c.skewY,I=c.scaleX,k=c.scaleY,D=c.target,N=c.xOrigin,E=c.yOrigin,P=c.xOffset,T=c.yOffset,M=c.forceCSS,R=parseFloat(m),b=parseFloat(_),U,F,j,J,$;y=parseFloat(y),S=parseFloat(S),A=parseFloat(A),A&&(A=parseFloat(A),S+=A,y+=A),y||S?(y*=kl,S*=kl,U=Math.cos(y)*I,F=Math.sin(y)*I,j=Math.sin(y-S)*-k,J=Math.cos(y-S)*k,S&&(A*=kl,$=Math.tan(S-A),$=Math.sqrt(1+$*$),j*=$,J*=$,A&&($=Math.tan(A),$=Math.sqrt(1+$*$),U*=$,F*=$)),U=Rn(U),F=Rn(F),j=Rn(j),J=Rn(J)):(U=I,J=k,F=j=0),(R&&!~(m+"").indexOf("px")||b&&!~(_+"").indexOf("px"))&&(R=ta(D,"x",m,"px"),b=ta(D,"y",_,"px")),(N||E||P||T)&&(R=Rn(R+N-(N*U+E*j)+P),b=Rn(b+E-(N*F+E*J)+T)),(d||u)&&($=D.getBBox(),R=Rn(R+d/100*$.width),b=Rn(b+u/100*$.height)),$="matrix("+U+","+F+","+j+","+J+","+R+","+b+")",D.setAttribute("transform",$),M&&(D.style[dn]=$)},bg=function(l,o,c,d,u){var m=360,_=Wn(u),y=parseFloat(u)*(_&&~u.indexOf("rad")?Ha:1),S=y-d,A=d+S+"deg",I,k;return _&&(I=u.split("_")[1],I==="short"&&(S%=m,S!==S%(m/2)&&(S+=S<0?m:-m)),I==="cw"&&S<0?S=(S+m*Mp)%m-~~(S/m)*m:I==="ccw"&&S>0&&(S=(S-m*Mp)%m-~~(S/m)*m)),l._pt=k=new Cr(l._pt,o,c,d,S,hg),k.e=A,k.u="deg",l._props.push(c),k},Fp=function(l,o){for(var c in o)l[c]=o[c];return l},Ag=function(l,o,c){var d=Fp({},c._gsap),u="perspective,force3D,transformOrigin,svgOrigin",m=c.style,_,y,S,A,I,k,D,N;d.svg?(S=c.getAttribute("transform"),c.setAttribute("transform",""),m[dn]=o,_=bh(c,1),Va(c,dn),c.setAttribute("transform",S)):(S=getComputedStyle(c)[dn],m[dn]=o,_=bh(c,1),m[dn]=S);for(y in fo)S=d[y],A=_[y],S!==A&&u.indexOf(y)<0&&(D=sr(S),N=sr(A),I=D!==N?ta(c,y,S,N):parseFloat(S),k=parseFloat(A),l._pt=new Cr(l._pt,_,y,I,k-I,Oc),l._pt.u=N||0,l._props.push(y));Fp(_,d)};Ar("padding,margin,Width,Radius",function(x,l){var o="Top",c="Right",d="Bottom",u="Left",m=(l<3?[o,c,d,u]:[o+u,o+c,d+c,d+u]).map(function(_){return l<2?x+_:"border"+_+x});_u[l>1?"border"+x:x]=function(_,y,S,A,I){var k,D;if(arguments.length<4)return k=m.map(function(N){return po(_,N,S)}),D=k.join(" "),D.split(k[0]).length===5?k[0]:D;k=(A+"").split(" "),D={},m.forEach(function(N,E){return D[N]=k[E]=k[E]||k[(E-1)/2|0]}),_.init(y,D,I)}});var Up={name:"css",register:Dc,targetTest:function(l){return l.style&&l.nodeType},init:function(l,o,c,d,u){var m=this._props,_=l.style,y=c.vars.startAt,S,A,I,k,D,N,E,P,T,M,R,b,U,F,j,J;Pc||Dc(),this.styles=this.styles||Ap(l),J=this.styles.props,this.tween=c;for(E in o)if(E!=="autoRound"&&(A=o[E],!(Wr[E]&&fp(E,o,c,d,l,u)))){if(D=typeof A,N=_u[E],D==="function"&&(A=A.call(c,d,l,u),D=typeof A),D==="string"&&~A.indexOf("random(")&&(A=yh(A)),N)N(this,l,E,A,c)&&(j=1);else if(E.substr(0,2)==="--")S=(getComputedStyle(l).getPropertyValue(E)+"").trim(),A+="",Jo.lastIndex=0,Jo.test(S)||(P=sr(S),T=sr(A)),T?P!==T&&(S=ta(l,E,S,T)+T):P&&(A+=P),this.add(_,"setProperty",S,A,d,u,0,0,E),m.push(E),J.push(E,0,_[E]);else if(D!=="undefined"){if(y&&E in y?(S=typeof y[E]=="function"?y[E].call(c,d,l,u):y[E],Wn(S)&&~S.indexOf("random(")&&(S=yh(S)),sr(S+"")||S==="auto"||(S+=Hr.units[E]||sr(po(l,E))||""),(S+"").charAt(1)==="="&&(S=po(l,E))):S=po(l,E),k=parseFloat(S),M=D==="string"&&A.charAt(1)==="="&&A.substr(0,2),M&&(A=A.substr(2)),I=parseFloat(A),E in Ws&&(E==="autoAlpha"&&(k===1&&po(l,"visibility")==="hidden"&&I&&(k=0),J.push("visibility",0,_.visibility),Qo(this,_,"visibility",k?"inherit":"hidden",I?"inherit":"hidden",!I)),E!=="scale"&&E!=="transform"&&(E=Ws[E],~E.indexOf(",")&&(E=E.split(",")[0]))),R=E in fo,R){if(this.styles.save(E),b||(U=l._gsap,U.renderTransform&&!o.parseTransform||bh(l,o.parseTransform),F=o.smoothOrigin!==!1&&U.smooth,b=this._pt=new Cr(this._pt,_,dn,0,1,U.renderTransform,U,0,-1),b.dep=1),E==="scale")this._pt=new Cr(this._pt,U,"scaleY",U.scaleY,(M?Ll(U.scaleY,M+I):I)-U.scaleY||0,Oc),this._pt.u=0,m.push("scaleY",E),E+="X";else if(E==="transformOrigin"){J.push(Lr,0,_[Lr]),A=Tg(A),U.svg?Bc(l,A,0,F,0,this):(T=parseFloat(A.split(" ")[2])||0,T!==U.zOrigin&&Qo(this,U,"zOrigin",U.zOrigin,T),Qo(this,_,E,yu(S),yu(A)));continue}else if(E==="svgOrigin"){Bc(l,A,1,F,0,this);continue}else if(E in zp){bg(this,U,E,k,M?Ll(k,M+A):A);continue}else if(E==="smoothOrigin"){Qo(this,U,"smooth",U.smooth,A);continue}else if(E==="force3D"){U[E]=A;continue}else if(E==="transform"){Ag(this,A,l);continue}}else E in _||(E=Nl(E)||E);if(R||(I||I===0)&&(k||k===0)&&!lg.test(A)&&E in _)P=(S+"").substr((k+"").length),I||(I=0),T=sr(A)||(E in Hr.units?Hr.units[E]:P),P!==T&&(k=ta(l,E,S,T)),this._pt=new Cr(this._pt,R?U:_,E,k,(M?Ll(k,M+I):I)-k,!R&&(T==="px"||E==="zIndex")&&o.autoRound!==!1?cg:Oc),this._pt.u=T||0,P!==T&&T!=="%"&&(this._pt.b=S,this._pt.r=ug);else if(E in _)wg.call(this,l,E,S,M?M+A:A);else if(E in l)this.add(l,E,S||l[E],M?M+A:A,d,u);else if(E!=="parseTransform"){oc(E,A);continue}R||(E in _?J.push(E,0,_[E]):J.push(E,1,S||l[E])),m.push(E)}}j&&_p(this)},render:function(l,o){if(o.tween._time||!Lc())for(var c=o._pt;c;)c.r(l,c.d),c=c._next;else o.styles.revert()},get:po,aliases:Ws,getSetter:function(l,o,c){var d=Ws[o];return d&&d.indexOf(",")<0&&(o=d),o in fo&&o!==Lr&&(l._gsap.x||po(l,"x"))?c&&Tp===c?o==="scale"?mg:dg:(Tp=c||{})&&(o==="scale"?gg:vg):l.style&&!tc(l.style[o])?fg:~o.indexOf("-")?pg:Sc(l,o)},core:{_removeProperty:Va,_getMatrix:kc}};Pr.utils.checkPrefix=Nl,Pr.core.getStyleSaver=Ap,function(x,l,o,c){var d=Ar(x+","+l+","+o,function(u){fo[u]=1});Ar(l,function(u){Hr.units[u]="deg",zp[u]=1}),Ws[d[13]]=x+","+l,Ar(c,function(u){var m=u.split(":");Ws[m[1]]=d[m[0]]})}("x,y,z,scale,scaleX,scaleY,xPercent,yPercent","rotation,rotationX,rotationY,skewX,skewY","transform,transformOrigin,svgOrigin,force3D,smoothOrigin,transformPerspective","0:translateX,1:translateY,2:translateZ,8:rotate,8:rotationZ,8:rotateZ,9:rotateX,10:rotateY"),Ar("x,y,z,top,right,bottom,left,width,height,fontSize,padding,margin,perspective",function(x){Hr.units[x]="px"}),Pr.registerPlugin(Up);var Fc=Pr.registerPlugin(Up)||Pr;Fc.core.Tween;class Cg{constructor(l,o=!1){window.mars3d?(this.Cesium=window.mars3d.Cesium,this.DynamicMaskingArr=[],this.DynamicMaskingStyle=[],this.canvasClientWidth=l.viewer.canvas.clientWidth,this.canvasClientHeight=l.viewer.canvas.clientHeight,this.oldSet=new Set,this.tweenMap=new Map,this.isDynamicMasking=o):console.error("未引入指定插件")}add(l,o){let c=l.options.symbol.styleOptions.label.font_size,d=l.options.vectorId,u=Number(c)*1.4,m=Number(c)*1.8,_=l.options.symbol.styleOptions.label,{color:y,outlineColor:S,backgroundColor:A}=_;l.eachGraphic(I=>{I.style.label&&this.DynamicMaskingArr.push({id:d,uid:I.id,position:I._getLablePosition(),label:I.name,width:u*I.name.length,height:m,color:y,outline:o.label.outline,outlineColor:S,background:o.label.background,backgroundColor:A,dynamicMaskingColor:{backgroundColor:this.Cesium.Color.fromCssColorString(o.label.backgroundColor),color:this.Cesium.Color.fromCssColorString(o.label.color),outlineColor:this.Cesium.Color.fromCssColorString(o.label.outlineColor)}})}),this.DynamicMaskingStyle.push({vectorId:l.options.vectorId,outline:o.label.outline,background:o.label.background,color:this.Cesium.Color.fromCssColorString(o.label.color),backgroundColor:this.Cesium.Color.fromCssColorString(o.label.backgroundColor),outlineColor:this.Cesium.Color.fromCssColorString(o.label.outlineColor)}),this.oldSet=new Set,this.tweenMap=new Map}remove(l){this.DynamicMaskingArr=this.DynamicMaskingArr.filter(o=>o.id!==l),this.DynamicMaskingStyle=this.DynamicMaskingStyle.filter(o=>o.vectorId!==l),this.oldSet=new Set,this.tweenMap=new Map}modify(l,o){let{label:c}=o;if(c){let{color:d,outline:u,outlineColor:m,background:_,backgroundColor:y}=c;this.DynamicMaskingArr.forEach(S=>{S.id===l&&(d!=null&&(S.color=this.Cesium.Color.fromCssColorString(d),S.dynamicMaskingColor.color=this.Cesium.Color.fromCssColorString(d)),u!=null&&(S.outline=u),m!=null&&(S.outlineColor=this.Cesium.Color.fromCssColorString(m),S.dynamicMaskingColor.outlineColor=this.Cesium.Color.fromCssColorString(m)),_!=null&&(S.background=_),y!=null&&(S.backgroundColor=this.Cesium.Color.fromCssColorString(y),S.dynamicMaskingColor.backgroundColor=this.Cesium.Color.fromCssColorString(y)))})}}getBoundingRectangle(l){var o=this.Cesium.SceneTransforms.wgs84ToWindowCoordinates(window.map.viewer.scene,l.position);return o!==void 0?new this.Cesium.BoundingRectangle(o.x,o.y,l.width,l.height):new this.Cesium.BoundingRectangle(0,0,1,1)}getNonIntersectingRectangles(){let l=[];for(var o=0;o<this.DynamicMaskingArr.length;o++){let d=!1,u=this.DynamicMaskingArr[o],m,_,y;if(_=this.getBoundingRectangle(u),!(_.x<0||_.x>this.canvasClientWidth||_.y<0||_.y>this.canvasClientHeight))if(l.length===0){l.push(o);continue}else{for(var c=0;c<l.length;c++)if(m=this.DynamicMaskingArr[l[c]],y=this.getBoundingRectangle(m),this.Cesium.Intersect.OUTSIDE!==this.Cesium.BoundingRectangle.intersect(_,y)){d=!0;break}d||l.push(o)}}return new Set(l)}ifShow(){if(this.isDynamicMasking){let o={color:.001,outlineColor:.001,backgroundColor:.001},c={color:1,outlineColor:1,backgroundColor:1},d=this.getNonIntersectingRectangles(),u=new Set([...this.oldSet].filter(_=>!d.has(_))),m=new Set([...d].filter(_=>!this.oldSet.has(_)));for(let _ of u)if(this.DynamicMaskingArr[_]){if(this.tweenMap.has(_)){var l=this.tweenMap.get(_);l.kill(),this.tweenMap.delete(_)}var l=Fc.to(c,{duration:.2,color:0,outlineColor:0,backgroundColor:0,onUpdate:()=>{var S,A;var y=this.DynamicMaskingArr[_];y.backgroundColor.alpha=c.backgroundColor,y.color.alpha=c.color,y.outlineColor.alpha=c.outlineColor,(A=(S=window.map.getLayer(y.id,"vectorId"))==null?void 0:S.getGraphicByAttr(y.uid))==null||A.setStyle({label:{show:!1,outline:!1,background:!1}})}});this.tweenMap.set(_,l)}for(let _ of m)if(this.DynamicMaskingArr[_]){if(this.tweenMap.has(_)){var l=this.tweenMap.get(_);l.kill(),this.tweenMap.delete(_)}let y=this.DynamicMaskingArr[_],{backgroundColor:S,color:A,outlineColor:I}=y.dynamicMaskingColor;var l=Fc.to(o,{duration:.8+Math.random(),color:A.alpha,outlineColor:I.alpha,backgroundColor:S.alpha,onUpdate:()=>{var D,N;y.backgroundColor.alpha=o.backgroundColor,y.color.alpha=o.color,y.outlineColor.alpha=o.outlineColor,(N=(D=window.map.getLayer(y.id,"vectorId"))==null?void 0:D.getGraphicByAttr(y.uid))==null||N.setStyle({label:{show:!0,outline:y.outline,background:y.background,color:y.color,outlineColor:y.outlineColor,backgroundColor:y.backgroundColor}})}});this.tweenMap.set(_,l)}this.oldSet=d}}switchDynamicMasking(l){if(l)window.map.getLayers().forEach(o=>{var c;if((c=o.options)!=null&&c.vectorId){let{color:d,outlineColor:u,backgroundColor:m}=o.options.symbol.styleOptions.label;o.eachGraphic(_=>{_.setStyle({label:{color:d.withAlpha(0),outlineColor:u.withAlpha(.001),backgroundColor:m.withAlpha(.001),show:!1,background:!1,outline:!1}})})}});else if(this.DynamicMaskingStyle.length>0){let o;this.DynamicMaskingStyle.forEach(c=>{let{color:d,outline:u,outlineColor:m,background:_,backgroundColor:y,vectorId:S}=c;o=window.map.getLayer(S,"vectorId"),o&&o.eachGraphic(A=>{A.setStyle({label:{color:d,outlineColor:m,backgroundColor:y,show:!0,background:_,outline:u}})})})}this.isDynamicMasking=l,window.bimVector.switchDynamicMasking(l)}}const Pg=()=>{window.schemeEvnModify.clearAllEvnModify(),window.bimRotatePoint.stop(),window.bimTrafficSimulation.destruction(),window.bimMapPTV&&window.bimMapPTV.destruction(),window.romStop(),window.complete(),window.bimMapCompare.destroyControl()},Lg=()=>{window.bimRotatePoint.stop(),window.bimTrafficSimulation.destruction(),window.bimMapPTV&&window.bimMapPTV.destruction(),window.romStop(),window.complete(),window.bimMapCompare.destroyControl()},Rg=()=>{window.bimRotatePoint.stop(),window.bimTrafficSimulation.destruction(),window.bimMapPTV&&window.bimMapPTV.destruction(),window.romStop(),window.complete(),window.bimMapCompare.destroyControl()},Og=x=>{let l=[];if(x.forEach(o=>{let{id:c}=o,d={id:c,mockData:{nextPage:[],item:[],previousPage:[]}};o.operate.forEach((u,m)=>{let _=Uc(u,d.mockData.nextPage);d.mockData.nextPage=_,d.mockData.item=_,d.mockData.previousPage=[]}),l.push(d)}),l.length>1)for(let o=1;o<l.length;o++){let c=l[o].mockData,d=l[o-1].mockData.item;const u=new Map;d.forEach(m=>{m.type!="rotatePoint"&&m.type!="viewpoint"&&m.type!="roaming"&&m.type!="splitScreen"?u.set(`${m.screenplayId}-${m.type}`,m):l[o].mockData.previousPage.push(m)}),c.nextPage.forEach(m=>{const _=`${m.screenplayId}-${m.type}`;let y={...u.get(_)};if(u.has(_)){if(m.type=="flight")l[o].mockData.previousPage.unshift(u.get(_)),y=m;else{let S={};Object.keys(m).forEach(A=>{if(A!="screenplayId"&&A!="type")if(u.get(_)[A])if(A=="clip"||A=="flat"){const I=JSON.parse(m[A]).map(P=>({...P,show:P.show=="true"?"false":"true"}));Object.keys(S).length==0&&(S={screenplayId:m.screenplayId,type:m.type}),S[A]=JSON.stringify(I);let k=JSON.parse(u.get(_)[A]).reduce((P,T)=>({...P,[T.id]:T}),{}),D=JSON.parse(m[A]).reduce((P,T)=>({...P,[T.id]:T}),{}),N={...k,...D},E=Object.values(N);y[A]=JSON.stringify(E)}else Object.keys(S).length==0&&(S={screenplayId:m.screenplayId,type:m.type}),S[A]=u.get(_)[A],y[A]=m[A];else{if(!l[o].mockData.previousPage.some(I=>I.screenplayId===m.screenplayId)){let I=Gp(m);I&&l[o].mockData.previousPage.push(I)}y[A]=m[A]}}),Object.keys(S).length>0&&l[o].mockData.previousPage.push(S)}u.set(_,y)}else{let S=Gp(m);S&&l[o].mockData.previousPage.push(S),u.set(_,m)}}),l[o].mockData.item=Array.from(u.values())}return console.log("-----------最后输出-----------"),console.log(l),console.log("-----------最后输出-----------"),l},Uc=(x,l=null)=>{let{executionProperty:o,screenplayId:c,property:d,type:u,delay:m,delayTime:_}=x;if((d=="add"||d==!0)&&(d="true"),(d=="remove"||d==!1)&&(d="false"),u=="pit"){let S=window.schemeEvnModify.getModelModifyDataForInitModelById(c);S&&(c=S.modelId,d={...S.clipArea,show:d},o=S.type)}let y;if(c==""||c=="map")if(c="map",u=="splitScreen"){let{splitScreenMode:S,splitScreenModePercentage:A}=JSON.parse(d);l.push({screenplayId:c,type:u,executionProperty:{splitScreenMode:S,splitScreenModePercentage:A,mapClone:[]}});let{mainScreen:I,secondaryScreen:k}=JSON.parse(x.property);I.forEach(N=>{Uc(N,l)});let D=l.find(N=>N.type=="splitScreen");k.forEach(N=>{Uc(N,D.executionProperty.mapClone)})}else y={screenplayId:c,type:u,executionProperty:d},(o=="clip"||o=="flat")&&(y[o]=JSON.stringify([d])),m&&(y.delay=m),_&&(y.delayTime=_),l&&(u=="flight"?l.unshift(y):l.push(y));else y=l?l.find(S=>S.screenplayId==c):null,y?(o=="clip"||o=="flat"?y[o]?y[o]=JSON.stringify([...JSON.parse(y[o]),d]):(y[o]=JSON.stringify([d]),y.type="model"):y[o]=d,m&&(y[o].delay=m),_&&(y[o].delayTime=_)):(y={screenplayId:c,type:u},m&&(y.delay=m),_&&(y.delayTime=_),o=="clip"||o=="flat"?(y[o]=JSON.stringify([d]),y.type="model"):y[o]=d,l&&(u=="flight"?l.unshift(y):l.push(y)));return l||y},Gp=x=>{let{type:l,show:o,screenplayId:c,overallStaining:d,clip:u,flat:m}=x,_={};switch(console.log("初始化",x),l){case"model":case"shp":case"plot":o&&o=="true"&&(_={screenplayId:c,type:l,show:"false"}),o&&o=="false"&&console.error("map上没有添加此对象"),d&&(_={..._,screenplayId:c,type:l,overallStaining:"false"}),u&&(_={..._,screenplayId:c,type:l,clip:"false"}),m&&(_={..._,screenplayId:c,type:l,flat:"false"});break;case"terrain":_={screenplayId:c,type:l,executionProperty:"true"};break;case"pit":_={screenplayId:c,type:l,executionProperty:"false"};break}return Object.keys(_).length>0?_:null},Ig=(x,l)=>{const o={};return Object.keys(l).forEach(c=>{x.hasOwnProperty(c)&&(o[c]=x[c])}),o},Dg=x=>/^rgba\(\s*\d+\s*,\s*\d+\s*,\s*\d+\s*,\s*(0|1|0\.\d+)\s*\)$/i.test(x),zg=()=>{window.map.getLayers().forEach(x=>{(x.type=="3dtiles"||x.type=="geojson")&&x.options.name!="国界"&&x.remove()}),window.bimEntity.entityLayer.getGraphicsByAttr().forEach(x=>{x.remove()}),window.bimMapSetUp.undergroundVal(1),window.bimTerrainProvider.show(),window.bimTrafficSimulation.destruction(),window.bimRotatePoint.stop(),window.bimMapPTV.destruction(),window.romStop(),window.complete()},kg=[yf,Tf],Bg={continuation:null,mapModali:null,install(x){if(kg.forEach((m,_)=>{x.component(m.name,m)}),this.continuation){x.config.globalProperties.$continuation=this.continuation;return}let l=si.createApp(xf),o=document.createElement("div"),c=document.body;if(c.appendChild(o),this.loading=l.mount(o),x.config.globalProperties.$loading=this.loading,window.$continuation=this.loading,this.mapModali){x.config.globalProperties.$mapModali=this.mapModali;return}let d=si.createApp(wf),u=document.createElement("div");c.appendChild(u),this.mapModali=d.mount(u),x.config.globalProperties.$mapModali=this.mapModali,window.$mapModali=this.mapModali}};Ui.BimBackgroundPlate=Tf,Ui.BimCutscenes=xf,Ui.BimElevationImage=om,Ui.BimEntity=lm,Ui.BimModel=im,Ui.BimTerrainProvider=sm,Ui.BimVector=rm,Ui.Button=yf,Ui.ChbimPlugins=Bg,Ui.DynamicMasking=Cg,Ui.MapModali=wf,Ui.PanoramicView=pm,Ui.ViewShed=am,Ui.getSameKeyData=Ig,Ui.init=Pg,Ui.initMap=zg,Ui.isValidRGBA=Dg,Ui.nextPage=Rg,Ui.operateMapData=Og,Ui.previousPage=Lg,Object.defineProperty(Ui,Symbol.toStringTag,{value:"Module"})});
2700
+ */var wp,Ko,zl,Pc,Ga,Tp,Lc,ag=function(){return typeof window<"u"},fo={},Ha=180/Math.PI,kl=Math.PI/180,Bl=Math.atan2,Mp=1e8,Rc=/([A-Z])/g,lg=/(left|right|width|margin|padding|x)/i,hg=/[\s,\(]\S/,Ws={autoAlpha:"opacity,visibility",scale:"scaleX,scaleY",alpha:"opacity"},Oc=function(a,o){return o.set(o.t,o.p,Math.round((o.s+o.c*a)*1e4)/1e4+o.u,o)},ug=function(a,o){return o.set(o.t,o.p,a===1?o.e:Math.round((o.s+o.c*a)*1e4)/1e4+o.u,o)},cg=function(a,o){return o.set(o.t,o.p,a?Math.round((o.s+o.c*a)*1e4)/1e4+o.u:o.b,o)},fg=function(a,o){var c=o.s+o.c*a;o.set(o.t,o.p,~~(c+(c<0?-.5:.5))+o.u,o)},Sp=function(a,o){return o.set(o.t,o.p,a?o.e:o.b,o)},Ep=function(a,o){return o.set(o.t,o.p,a!==1?o.b:o.e,o)},pg=function(a,o,c){return a.style[o]=c},dg=function(a,o,c){return a.style.setProperty(o,c)},mg=function(a,o,c){return a._gsap[o]=c},gg=function(a,o,c){return a._gsap.scaleX=a._gsap.scaleY=c},vg=function(a,o,c,d,u){var m=a._gsap;m.scaleX=m.scaleY=c,m.renderTransform(u,m)},_g=function(a,o,c,d,u){var m=a._gsap;m[o]=c,m.renderTransform(u,m)},dn="transform",Lr=dn+"Origin",yg=function x(a,o){var c=this,d=this.target,u=d.style,m=d._gsap;if(a in fo&&u){if(this.tfm=this.tfm||{},a!=="transform")a=Ws[a]||a,~a.indexOf(",")?a.split(",").forEach(function(_){return c.tfm[_]=po(d,_)}):this.tfm[a]=m.x?m[a]:po(d,a),a===Lr&&(this.tfm.zOrigin=m.zOrigin);else return Ws.transform.split(",").forEach(function(_){return x.call(c,_,o)});if(this.props.indexOf(dn)>=0)return;m.svg&&(this.svgo=d.getAttribute("data-svg-origin"),this.props.push(Lr,o,"")),a=dn}(u||o)&&this.props.push(a,o,u[a])},bp=function(a){a.translate&&(a.removeProperty("translate"),a.removeProperty("scale"),a.removeProperty("rotate"))},xg=function(){var a=this.props,o=this.target,c=o.style,d=o._gsap,u,m;for(u=0;u<a.length;u+=3)a[u+1]?o[a[u]]=a[u+2]:a[u+2]?c[a[u]]=a[u+2]:c.removeProperty(a[u].substr(0,2)==="--"?a[u]:a[u].replace(Rc,"-$1").toLowerCase());if(this.tfm){for(m in this.tfm)d[m]=this.tfm[m];d.svg&&(d.renderTransform(),o.setAttribute("data-svg-origin",this.svgo||"")),u=Lc(),(!u||!u.isStart)&&!c[dn]&&(bp(c),d.zOrigin&&c[Lr]&&(c[Lr]+=" "+d.zOrigin+"px",d.zOrigin=0,d.renderTransform()),d.uncache=1)}},Ap=function(a,o){var c={target:a,props:[],revert:xg,save:yg};return a._gsap||Pr.core.getCache(a),o&&o.split(",").forEach(function(d){return c.save(d)}),c},Cp,Ic=function(a,o){var c=Ko.createElementNS?Ko.createElementNS((o||"http://www.w3.org/1999/xhtml").replace(/^https/,"http"),a):Ko.createElement(a);return c&&c.style?c:Ko.createElement(a)},js=function x(a,o,c){var d=getComputedStyle(a);return d[o]||d.getPropertyValue(o.replace(Rc,"-$1").toLowerCase())||d.getPropertyValue(o)||!c&&x(a,Nl(o)||o,1)||""},Pp="O,Moz,ms,Ms,Webkit".split(","),Nl=function(a,o,c){var d=o||Ga,u=d.style,m=5;if(a in u&&!c)return a;for(a=a.charAt(0).toUpperCase()+a.substr(1);m--&&!(Pp[m]+a in u););return m<0?null:(m===3?"ms":m>=0?Pp[m]:"")+a},Dc=function(){ag()&&window.document&&(wp=window,Ko=wp.document,zl=Ko.documentElement,Ga=Ic("div")||{style:{}},Ic("div"),dn=Nl(dn),Lr=dn+"Origin",Ga.style.cssText="border-width:0;line-height:0;position:absolute;padding:0",Cp=!!Nl("perspective"),Lc=Pr.core.reverting,Pc=1)},zc=function x(a){var o=Ic("svg",this.ownerSVGElement&&this.ownerSVGElement.getAttribute("xmlns")||"http://www.w3.org/2000/svg"),c=this.parentNode,d=this.nextSibling,u=this.style.cssText,m;if(zl.appendChild(o),o.appendChild(this),this.style.display="block",a)try{m=this.getBBox(),this._gsapBBox=this.getBBox,this.getBBox=x}catch{}else this._gsapBBox&&(m=this._gsapBBox());return c&&(d?c.insertBefore(this,d):c.appendChild(this)),zl.removeChild(o),this.style.cssText=u,m},Lp=function(a,o){for(var c=o.length;c--;)if(a.hasAttribute(o[c]))return a.getAttribute(o[c])},Rp=function(a){var o;try{o=a.getBBox()}catch{o=zc.call(a,!0)}return o&&(o.width||o.height)||a.getBBox===zc||(o=zc.call(a,!0)),o&&!o.width&&!o.x&&!o.y?{x:+Lp(a,["x","cx","x1"])||0,y:+Lp(a,["y","cy","y1"])||0,width:0,height:0}:o},Op=function(a){return!!(a.getCTM&&(!a.parentNode||a.ownerSVGElement)&&Rp(a))},Va=function(a,o){if(o){var c=a.style,d;o in fo&&o!==Lr&&(o=dn),c.removeProperty?(d=o.substr(0,2),(d==="ms"||o.substr(0,6)==="webkit")&&(o="-"+o),c.removeProperty(d==="--"?o:o.replace(Rc,"-$1").toLowerCase())):c.removeAttribute(o)}},Qo=function(a,o,c,d,u,m){var _=new Cr(a._pt,o,c,0,1,m?Ep:Sp);return a._pt=_,_.b=d,_.e=u,a._props.push(c),_},Ip={deg:1,rad:1,turn:1},wg={grid:1,flex:1},ta=function x(a,o,c,d){var u=parseFloat(c)||0,m=(c+"").trim().substr((u+"").length)||"px",_=Ga.style,y=lg.test(o),S=a.tagName.toLowerCase()==="svg",A=(S?"client":"offset")+(y?"Width":"Height"),I=100,k=d==="px",D=d==="%",F,E,L,T;if(d===m||!u||Ip[d]||Ip[m])return u;if(m!=="px"&&!k&&(u=x(a,o,c,"px")),T=a.getCTM&&Op(a),(D||m==="%")&&(fo[o]||~o.indexOf("adius")))return F=T?a.getBBox()[y?"width":"height"]:a[A],Rn(D?u/F*I:u/100*F);if(_[y?"width":"height"]=I+(k?m:d),E=~o.indexOf("adius")||d==="em"&&a.appendChild&&!S?a:a.parentNode,T&&(E=(a.ownerSVGElement||{}).parentNode),(!E||E===Ko||!E.appendChild)&&(E=Ko.body),L=E._gsap,L&&D&&L.width&&y&&L.time===Xr.time&&!L.uncache)return Rn(u/L.width*I);if(D&&(o==="height"||o==="width")){var M=a.style[o];a.style[o]=I+d,F=a[A],M?a.style[o]=M:Va(a,o)}else(D||m==="%")&&!wg[js(E,"display")]&&(_.position=js(a,"position")),E===a&&(_.position="static"),E.appendChild(Ga),F=Ga[A],E.removeChild(Ga),_.position="absolute";return y&&D&&(L=za(E),L.time=Xr.time,L.width=E[A]),Rn(k?F*u/I:F&&u?I/F*u:0)},po=function(a,o,c,d){var u;return Pc||Dc(),o in Ws&&o!=="transform"&&(o=Ws[o],~o.indexOf(",")&&(o=o.split(",")[0])),fo[o]&&o!=="transform"?(u=bh(a,d),u=o!=="transformOrigin"?u[o]:u.svg?u.origin:yu(js(a,Lr))+" "+u.zOrigin+"px"):(u=a.style[o],(!u||u==="auto"||d||~(u+"").indexOf("calc("))&&(u=_u[o]&&_u[o](a,o,c)||js(a,o)||Bf(a,o)||(o==="opacity"?1:0))),c&&!~(u+"").trim().indexOf(" ")?ta(a,o,u,c)+c:u},Tg=function(a,o,c,d){if(!c||c==="none"){var u=Nl(o,a,1),m=u&&js(a,u,1);m&&m!==c?(o=u,c=m):o==="borderColor"&&(c=js(a,"borderTopColor"))}var _=new Cr(this._pt,a.style,o,0,1,vp),y=0,S=0,A,I,k,D,F,E,L,T,M,R,b,U;if(_.b=c,_.e=d,c+="",d+="",d==="auto"&&(E=a.style[o],a.style[o]=d,d=js(a,o)||d,E?a.style[o]=E:Va(a,o)),A=[c,d],ap(A),c=A[0],d=A[1],k=c.match(Pl)||[],U=d.match(Pl)||[],U.length){for(;I=Pl.exec(d);)L=I[0],M=d.substring(y,I.index),F?F=(F+1)%5:(M.substr(-5)==="rgba("||M.substr(-5)==="hsla(")&&(F=1),L!==(E=k[S++]||"")&&(D=parseFloat(E)||0,b=E.substr((D+"").length),L.charAt(1)==="="&&(L=Ll(D,L)+b),T=parseFloat(L),R=L.substr((T+"").length),y=Pl.lastIndex-R.length,R||(R=R||Hr.units[o]||b,y===d.length&&(d+=R,_.e+=R)),b!==R&&(D=ta(a,o,E,R)||0),_._pt={_next:_._pt,p:M||S===1?M:",",s:D,c:T-D,m:F&&F<4||o==="zIndex"?Math.round:0});_.c=y<d.length?d.substring(y,d.length):""}else _.r=o==="display"&&d==="none"?Ep:Sp;return Lf.test(d)&&(_.e=0),this._pt=_,_},Dp={top:"0%",bottom:"100%",left:"0%",right:"100%",center:"50%"},Mg=function(a){var o=a.split(" "),c=o[0],d=o[1]||"50%";return(c==="top"||c==="bottom"||d==="left"||d==="right")&&(a=c,c=d,d=a),o[0]=Dp[c]||c,o[1]=Dp[d]||d,o.join(" ")},Sg=function(a,o){if(o.tween&&o.tween._time===o.tween._dur){var c=o.t,d=c.style,u=o.u,m=c._gsap,_,y,S;if(u==="all"||u===!0)d.cssText="",y=1;else for(u=u.split(","),S=u.length;--S>-1;)_=u[S],fo[_]&&(y=1,_=_==="transformOrigin"?Lr:dn),Va(c,_);y&&(Va(c,dn),m&&(m.svg&&c.removeAttribute("transform"),bh(c,1),m.uncache=1,bp(d)))}},_u={clearProps:function(a,o,c,d,u){if(u.data!=="isFromStart"){var m=a._pt=new Cr(a._pt,o,c,0,0,Sg);return m.u=d,m.pr=-10,m.tween=u,a._props.push(c),1}}},Eh=[1,0,0,1,0,0],zp={},kp=function(a){return a==="matrix(1, 0, 0, 1, 0, 0)"||a==="none"||!a},Bp=function(a){var o=js(a,dn);return kp(o)?Eh:o.substr(7).match(Pf).map(Rn)},kc=function(a,o){var c=a._gsap||za(a),d=a.style,u=Bp(a),m,_,y,S;return c.svg&&a.getAttribute("transform")?(y=a.transform.baseVal.consolidate().matrix,u=[y.a,y.b,y.c,y.d,y.e,y.f],u.join(",")==="1,0,0,1,0,0"?Eh:u):(u===Eh&&!a.offsetParent&&a!==zl&&!c.svg&&(y=d.display,d.display="block",m=a.parentNode,(!m||!a.offsetParent)&&(S=1,_=a.nextElementSibling,zl.appendChild(a)),u=Bp(a),y?d.display=y:Va(a,"display"),S&&(_?m.insertBefore(a,_):m?m.appendChild(a):zl.removeChild(a))),o&&u.length>6?[u[0],u[1],u[4],u[5],u[12],u[13]]:u)},Bc=function(a,o,c,d,u,m){var _=a._gsap,y=u||kc(a,!0),S=_.xOrigin||0,A=_.yOrigin||0,I=_.xOffset||0,k=_.yOffset||0,D=y[0],F=y[1],E=y[2],L=y[3],T=y[4],M=y[5],R=o.split(" "),b=parseFloat(R[0])||0,U=parseFloat(R[1])||0,N,j,J,$;c?y!==Eh&&(j=D*L-F*E)&&(J=b*(L/j)+U*(-E/j)+(E*M-L*T)/j,$=b*(-F/j)+U*(D/j)-(D*M-F*T)/j,b=J,U=$):(N=Rp(a),b=N.x+(~R[0].indexOf("%")?b/100*N.width:b),U=N.y+(~(R[1]||R[0]).indexOf("%")?U/100*N.height:U)),d||d!==!1&&_.smooth?(T=b-S,M=U-A,_.xOffset=I+(T*D+M*E)-T,_.yOffset=k+(T*F+M*L)-M):_.xOffset=_.yOffset=0,_.xOrigin=b,_.yOrigin=U,_.smooth=!!d,_.origin=o,_.originIsAbsolute=!!c,a.style[Lr]="0px 0px",m&&(Qo(m,_,"xOrigin",S,b),Qo(m,_,"yOrigin",A,U),Qo(m,_,"xOffset",I,_.xOffset),Qo(m,_,"yOffset",k,_.yOffset)),a.setAttribute("data-svg-origin",b+" "+U)},bh=function(a,o){var c=a._gsap||new cp(a);if("x"in c&&!o&&!c.uncache)return c;var d=a.style,u=c.scaleX<0,m="px",_="deg",y=getComputedStyle(a),S=js(a,Lr)||"0",A,I,k,D,F,E,L,T,M,R,b,U,N,j,J,$,ct,It,et,yt,G,Pt,Et,Ct,fe,re,Ft,Ot,Bt,ke,ce,Yt;return A=I=k=E=L=T=M=R=b=0,D=F=1,c.svg=!!(a.getCTM&&Op(a)),y.translate&&((y.translate!=="none"||y.scale!=="none"||y.rotate!=="none")&&(d[dn]=(y.translate!=="none"?"translate3d("+(y.translate+" 0 0").split(" ").slice(0,3).join(", ")+") ":"")+(y.rotate!=="none"?"rotate("+y.rotate+") ":"")+(y.scale!=="none"?"scale("+y.scale.split(" ").join(",")+") ":"")+(y[dn]!=="none"?y[dn]:"")),d.scale=d.rotate=d.translate="none"),j=kc(a,c.svg),c.svg&&(c.uncache?(fe=a.getBBox(),S=c.xOrigin-fe.x+"px "+(c.yOrigin-fe.y)+"px",Ct=""):Ct=!o&&a.getAttribute("data-svg-origin"),Bc(a,Ct||S,!!Ct||c.originIsAbsolute,c.smooth!==!1,j)),U=c.xOrigin||0,N=c.yOrigin||0,j!==Eh&&(It=j[0],et=j[1],yt=j[2],G=j[3],A=Pt=j[4],I=Et=j[5],j.length===6?(D=Math.sqrt(It*It+et*et),F=Math.sqrt(G*G+yt*yt),E=It||et?Bl(et,It)*Ha:0,M=yt||G?Bl(yt,G)*Ha+E:0,M&&(F*=Math.abs(Math.cos(M*kl))),c.svg&&(A-=U-(U*It+N*yt),I-=N-(U*et+N*G))):(Yt=j[6],ke=j[7],Ft=j[8],Ot=j[9],Bt=j[10],ce=j[11],A=j[12],I=j[13],k=j[14],J=Bl(Yt,Bt),L=J*Ha,J&&($=Math.cos(-J),ct=Math.sin(-J),Ct=Pt*$+Ft*ct,fe=Et*$+Ot*ct,re=Yt*$+Bt*ct,Ft=Pt*-ct+Ft*$,Ot=Et*-ct+Ot*$,Bt=Yt*-ct+Bt*$,ce=ke*-ct+ce*$,Pt=Ct,Et=fe,Yt=re),J=Bl(-yt,Bt),T=J*Ha,J&&($=Math.cos(-J),ct=Math.sin(-J),Ct=It*$-Ft*ct,fe=et*$-Ot*ct,re=yt*$-Bt*ct,ce=G*ct+ce*$,It=Ct,et=fe,yt=re),J=Bl(et,It),E=J*Ha,J&&($=Math.cos(J),ct=Math.sin(J),Ct=It*$+et*ct,fe=Pt*$+Et*ct,et=et*$-It*ct,Et=Et*$-Pt*ct,It=Ct,Pt=fe),L&&Math.abs(L)+Math.abs(E)>359.9&&(L=E=0,T=180-T),D=Rn(Math.sqrt(It*It+et*et+yt*yt)),F=Rn(Math.sqrt(Et*Et+Yt*Yt)),J=Bl(Pt,Et),M=Math.abs(J)>2e-4?J*Ha:0,b=ce?1/(ce<0?-ce:ce):0),c.svg&&(Ct=a.getAttribute("transform"),c.forceCSS=a.setAttribute("transform","")||!kp(js(a,dn)),Ct&&a.setAttribute("transform",Ct))),Math.abs(M)>90&&Math.abs(M)<270&&(u?(D*=-1,M+=E<=0?180:-180,E+=E<=0?180:-180):(F*=-1,M+=M<=0?180:-180)),o=o||c.uncache,c.x=A-((c.xPercent=A&&(!o&&c.xPercent||(Math.round(a.offsetWidth/2)===Math.round(-A)?-50:0)))?a.offsetWidth*c.xPercent/100:0)+m,c.y=I-((c.yPercent=I&&(!o&&c.yPercent||(Math.round(a.offsetHeight/2)===Math.round(-I)?-50:0)))?a.offsetHeight*c.yPercent/100:0)+m,c.z=k+m,c.scaleX=Rn(D),c.scaleY=Rn(F),c.rotation=Rn(E)+_,c.rotationX=Rn(L)+_,c.rotationY=Rn(T)+_,c.skewX=M+_,c.skewY=R+_,c.transformPerspective=b+m,(c.zOrigin=parseFloat(S.split(" ")[2])||!o&&c.zOrigin||0)&&(d[Lr]=yu(S)),c.xOffset=c.yOffset=0,c.force3D=Hr.force3D,c.renderTransform=c.svg?bg:Cp?Np:Eg,c.uncache=0,c},yu=function(a){return(a=a.split(" "))[0]+" "+a[1]},Nc=function(a,o,c){var d=sr(o);return Rn(parseFloat(o)+parseFloat(ta(a,"x",c+"px",d)))+d},Eg=function(a,o){o.z="0px",o.rotationY=o.rotationX="0deg",o.force3D=0,Np(a,o)},Wa="0deg",Ah="0px",ja=") ",Np=function(a,o){var c=o||this,d=c.xPercent,u=c.yPercent,m=c.x,_=c.y,y=c.z,S=c.rotation,A=c.rotationY,I=c.rotationX,k=c.skewX,D=c.skewY,F=c.scaleX,E=c.scaleY,L=c.transformPerspective,T=c.force3D,M=c.target,R=c.zOrigin,b="",U=T==="auto"&&a&&a!==1||T===!0;if(R&&(I!==Wa||A!==Wa)){var N=parseFloat(A)*kl,j=Math.sin(N),J=Math.cos(N),$;N=parseFloat(I)*kl,$=Math.cos(N),m=Nc(M,m,j*$*-R),_=Nc(M,_,-Math.sin(N)*-R),y=Nc(M,y,J*$*-R+R)}L!==Ah&&(b+="perspective("+L+ja),(d||u)&&(b+="translate("+d+"%, "+u+"%) "),(U||m!==Ah||_!==Ah||y!==Ah)&&(b+=y!==Ah||U?"translate3d("+m+", "+_+", "+y+") ":"translate("+m+", "+_+ja),S!==Wa&&(b+="rotate("+S+ja),A!==Wa&&(b+="rotateY("+A+ja),I!==Wa&&(b+="rotateX("+I+ja),(k!==Wa||D!==Wa)&&(b+="skew("+k+", "+D+ja),(F!==1||E!==1)&&(b+="scale("+F+", "+E+ja),M.style[dn]=b||"translate(0, 0)"},bg=function(a,o){var c=o||this,d=c.xPercent,u=c.yPercent,m=c.x,_=c.y,y=c.rotation,S=c.skewX,A=c.skewY,I=c.scaleX,k=c.scaleY,D=c.target,F=c.xOrigin,E=c.yOrigin,L=c.xOffset,T=c.yOffset,M=c.forceCSS,R=parseFloat(m),b=parseFloat(_),U,N,j,J,$;y=parseFloat(y),S=parseFloat(S),A=parseFloat(A),A&&(A=parseFloat(A),S+=A,y+=A),y||S?(y*=kl,S*=kl,U=Math.cos(y)*I,N=Math.sin(y)*I,j=Math.sin(y-S)*-k,J=Math.cos(y-S)*k,S&&(A*=kl,$=Math.tan(S-A),$=Math.sqrt(1+$*$),j*=$,J*=$,A&&($=Math.tan(A),$=Math.sqrt(1+$*$),U*=$,N*=$)),U=Rn(U),N=Rn(N),j=Rn(j),J=Rn(J)):(U=I,J=k,N=j=0),(R&&!~(m+"").indexOf("px")||b&&!~(_+"").indexOf("px"))&&(R=ta(D,"x",m,"px"),b=ta(D,"y",_,"px")),(F||E||L||T)&&(R=Rn(R+F-(F*U+E*j)+L),b=Rn(b+E-(F*N+E*J)+T)),(d||u)&&($=D.getBBox(),R=Rn(R+d/100*$.width),b=Rn(b+u/100*$.height)),$="matrix("+U+","+N+","+j+","+J+","+R+","+b+")",D.setAttribute("transform",$),M&&(D.style[dn]=$)},Ag=function(a,o,c,d,u){var m=360,_=Wn(u),y=parseFloat(u)*(_&&~u.indexOf("rad")?Ha:1),S=y-d,A=d+S+"deg",I,k;return _&&(I=u.split("_")[1],I==="short"&&(S%=m,S!==S%(m/2)&&(S+=S<0?m:-m)),I==="cw"&&S<0?S=(S+m*Mp)%m-~~(S/m)*m:I==="ccw"&&S>0&&(S=(S-m*Mp)%m-~~(S/m)*m)),a._pt=k=new Cr(a._pt,o,c,d,S,ug),k.e=A,k.u="deg",a._props.push(c),k},Fp=function(a,o){for(var c in o)a[c]=o[c];return a},Cg=function(a,o,c){var d=Fp({},c._gsap),u="perspective,force3D,transformOrigin,svgOrigin",m=c.style,_,y,S,A,I,k,D,F;d.svg?(S=c.getAttribute("transform"),c.setAttribute("transform",""),m[dn]=o,_=bh(c,1),Va(c,dn),c.setAttribute("transform",S)):(S=getComputedStyle(c)[dn],m[dn]=o,_=bh(c,1),m[dn]=S);for(y in fo)S=d[y],A=_[y],S!==A&&u.indexOf(y)<0&&(D=sr(S),F=sr(A),I=D!==F?ta(c,y,S,F):parseFloat(S),k=parseFloat(A),a._pt=new Cr(a._pt,_,y,I,k-I,Oc),a._pt.u=F||0,a._props.push(y));Fp(_,d)};Ar("padding,margin,Width,Radius",function(x,a){var o="Top",c="Right",d="Bottom",u="Left",m=(a<3?[o,c,d,u]:[o+u,o+c,d+c,d+u]).map(function(_){return a<2?x+_:"border"+_+x});_u[a>1?"border"+x:x]=function(_,y,S,A,I){var k,D;if(arguments.length<4)return k=m.map(function(F){return po(_,F,S)}),D=k.join(" "),D.split(k[0]).length===5?k[0]:D;k=(A+"").split(" "),D={},m.forEach(function(F,E){return D[F]=k[E]=k[E]||k[(E-1)/2|0]}),_.init(y,D,I)}});var Up={name:"css",register:Dc,targetTest:function(a){return a.style&&a.nodeType},init:function(a,o,c,d,u){var m=this._props,_=a.style,y=c.vars.startAt,S,A,I,k,D,F,E,L,T,M,R,b,U,N,j,J;Pc||Dc(),this.styles=this.styles||Ap(a),J=this.styles.props,this.tween=c;for(E in o)if(E!=="autoRound"&&(A=o[E],!(Wr[E]&&fp(E,o,c,d,a,u)))){if(D=typeof A,F=_u[E],D==="function"&&(A=A.call(c,d,a,u),D=typeof A),D==="string"&&~A.indexOf("random(")&&(A=yh(A)),F)F(this,a,E,A,c)&&(j=1);else if(E.substr(0,2)==="--")S=(getComputedStyle(a).getPropertyValue(E)+"").trim(),A+="",Jo.lastIndex=0,Jo.test(S)||(L=sr(S),T=sr(A)),T?L!==T&&(S=ta(a,E,S,T)+T):L&&(A+=L),this.add(_,"setProperty",S,A,d,u,0,0,E),m.push(E),J.push(E,0,_[E]);else if(D!=="undefined"){if(y&&E in y?(S=typeof y[E]=="function"?y[E].call(c,d,a,u):y[E],Wn(S)&&~S.indexOf("random(")&&(S=yh(S)),sr(S+"")||S==="auto"||(S+=Hr.units[E]||sr(po(a,E))||""),(S+"").charAt(1)==="="&&(S=po(a,E))):S=po(a,E),k=parseFloat(S),M=D==="string"&&A.charAt(1)==="="&&A.substr(0,2),M&&(A=A.substr(2)),I=parseFloat(A),E in Ws&&(E==="autoAlpha"&&(k===1&&po(a,"visibility")==="hidden"&&I&&(k=0),J.push("visibility",0,_.visibility),Qo(this,_,"visibility",k?"inherit":"hidden",I?"inherit":"hidden",!I)),E!=="scale"&&E!=="transform"&&(E=Ws[E],~E.indexOf(",")&&(E=E.split(",")[0]))),R=E in fo,R){if(this.styles.save(E),b||(U=a._gsap,U.renderTransform&&!o.parseTransform||bh(a,o.parseTransform),N=o.smoothOrigin!==!1&&U.smooth,b=this._pt=new Cr(this._pt,_,dn,0,1,U.renderTransform,U,0,-1),b.dep=1),E==="scale")this._pt=new Cr(this._pt,U,"scaleY",U.scaleY,(M?Ll(U.scaleY,M+I):I)-U.scaleY||0,Oc),this._pt.u=0,m.push("scaleY",E),E+="X";else if(E==="transformOrigin"){J.push(Lr,0,_[Lr]),A=Mg(A),U.svg?Bc(a,A,0,N,0,this):(T=parseFloat(A.split(" ")[2])||0,T!==U.zOrigin&&Qo(this,U,"zOrigin",U.zOrigin,T),Qo(this,_,E,yu(S),yu(A)));continue}else if(E==="svgOrigin"){Bc(a,A,1,N,0,this);continue}else if(E in zp){Ag(this,U,E,k,M?Ll(k,M+A):A);continue}else if(E==="smoothOrigin"){Qo(this,U,"smooth",U.smooth,A);continue}else if(E==="force3D"){U[E]=A;continue}else if(E==="transform"){Cg(this,A,a);continue}}else E in _||(E=Nl(E)||E);if(R||(I||I===0)&&(k||k===0)&&!hg.test(A)&&E in _)L=(S+"").substr((k+"").length),I||(I=0),T=sr(A)||(E in Hr.units?Hr.units[E]:L),L!==T&&(k=ta(a,E,S,T)),this._pt=new Cr(this._pt,R?U:_,E,k,(M?Ll(k,M+I):I)-k,!R&&(T==="px"||E==="zIndex")&&o.autoRound!==!1?fg:Oc),this._pt.u=T||0,L!==T&&T!=="%"&&(this._pt.b=S,this._pt.r=cg);else if(E in _)Tg.call(this,a,E,S,M?M+A:A);else if(E in a)this.add(a,E,S||a[E],M?M+A:A,d,u);else if(E!=="parseTransform"){oc(E,A);continue}R||(E in _?J.push(E,0,_[E]):J.push(E,1,S||a[E])),m.push(E)}}j&&_p(this)},render:function(a,o){if(o.tween._time||!Lc())for(var c=o._pt;c;)c.r(a,c.d),c=c._next;else o.styles.revert()},get:po,aliases:Ws,getSetter:function(a,o,c){var d=Ws[o];return d&&d.indexOf(",")<0&&(o=d),o in fo&&o!==Lr&&(a._gsap.x||po(a,"x"))?c&&Tp===c?o==="scale"?gg:mg:(Tp=c||{})&&(o==="scale"?vg:_g):a.style&&!tc(a.style[o])?pg:~o.indexOf("-")?dg:Sc(a,o)},core:{_removeProperty:Va,_getMatrix:kc}};Pr.utils.checkPrefix=Nl,Pr.core.getStyleSaver=Ap,function(x,a,o,c){var d=Ar(x+","+a+","+o,function(u){fo[u]=1});Ar(a,function(u){Hr.units[u]="deg",zp[u]=1}),Ws[d[13]]=x+","+a,Ar(c,function(u){var m=u.split(":");Ws[m[1]]=d[m[0]]})}("x,y,z,scale,scaleX,scaleY,xPercent,yPercent","rotation,rotationX,rotationY,skewX,skewY","transform,transformOrigin,svgOrigin,force3D,smoothOrigin,transformPerspective","0:translateX,1:translateY,2:translateZ,8:rotate,8:rotationZ,8:rotateZ,9:rotateX,10:rotateY"),Ar("x,y,z,top,right,bottom,left,width,height,fontSize,padding,margin,perspective",function(x){Hr.units[x]="px"}),Pr.registerPlugin(Up);var Fc=Pr.registerPlugin(Up)||Pr;Fc.core.Tween;class Pg{constructor(a,o=!1){window.mars3d?(this.Cesium=window.mars3d.Cesium,this.DynamicMaskingArr=[],this.DynamicMaskingStyle=[],this.canvasClientWidth=a.viewer.canvas.clientWidth,this.canvasClientHeight=a.viewer.canvas.clientHeight,this.oldSet=new Set,this.tweenMap=new Map,this.isDynamicMasking=o):console.error("未引入指定插件")}add(a,o){let c=a.options.symbol.styleOptions.label.font_size,d=a.options.vectorId,u=Number(c)*1.4,m=Number(c)*1.8,_=a.options.symbol.styleOptions.label,{color:y,outlineColor:S,backgroundColor:A}=_;a.eachGraphic(I=>{I.style.label&&this.DynamicMaskingArr.push({id:d,uid:I.id,position:I._getLablePosition(),label:I.name,width:u*I.name.length,height:m,color:y,outline:o.label.outline,outlineColor:S,background:o.label.background,backgroundColor:A,dynamicMaskingColor:{backgroundColor:this.Cesium.Color.fromCssColorString(o.label.backgroundColor),color:this.Cesium.Color.fromCssColorString(o.label.color),outlineColor:this.Cesium.Color.fromCssColorString(o.label.outlineColor)}})}),this.DynamicMaskingStyle.push({vectorId:a.options.vectorId,outline:o.label.outline,background:o.label.background,color:this.Cesium.Color.fromCssColorString(o.label.color),backgroundColor:this.Cesium.Color.fromCssColorString(o.label.backgroundColor),outlineColor:this.Cesium.Color.fromCssColorString(o.label.outlineColor)}),this.oldSet=new Set,this.tweenMap=new Map}remove(a){this.DynamicMaskingArr=this.DynamicMaskingArr.filter(o=>o.id!==a),this.DynamicMaskingStyle=this.DynamicMaskingStyle.filter(o=>o.vectorId!==a),this.oldSet=new Set,this.tweenMap=new Map}modify(a,o){let{label:c}=o;if(c){let{color:d,outline:u,outlineColor:m,background:_,backgroundColor:y}=c;this.DynamicMaskingArr.forEach(S=>{S.id===a&&(d!=null&&(S.color=this.Cesium.Color.fromCssColorString(d),S.dynamicMaskingColor.color=this.Cesium.Color.fromCssColorString(d)),u!=null&&(S.outline=u),m!=null&&(S.outlineColor=this.Cesium.Color.fromCssColorString(m),S.dynamicMaskingColor.outlineColor=this.Cesium.Color.fromCssColorString(m)),_!=null&&(S.background=_),y!=null&&(S.backgroundColor=this.Cesium.Color.fromCssColorString(y),S.dynamicMaskingColor.backgroundColor=this.Cesium.Color.fromCssColorString(y)))})}}getBoundingRectangle(a){var o=this.Cesium.SceneTransforms.wgs84ToWindowCoordinates(window.map.viewer.scene,a.position);return o!==void 0?new this.Cesium.BoundingRectangle(o.x,o.y,a.width,a.height):new this.Cesium.BoundingRectangle(0,0,1,1)}getNonIntersectingRectangles(){let a=[];for(var o=0;o<this.DynamicMaskingArr.length;o++){let d=!1,u=this.DynamicMaskingArr[o],m,_,y;if(_=this.getBoundingRectangle(u),!(_.x<0||_.x>this.canvasClientWidth||_.y<0||_.y>this.canvasClientHeight))if(a.length===0){a.push(o);continue}else{for(var c=0;c<a.length;c++)if(m=this.DynamicMaskingArr[a[c]],y=this.getBoundingRectangle(m),this.Cesium.Intersect.OUTSIDE!==this.Cesium.BoundingRectangle.intersect(_,y)){d=!0;break}d||a.push(o)}}return new Set(a)}ifShow(){if(this.isDynamicMasking){let o={color:.001,outlineColor:.001,backgroundColor:.001},c={color:1,outlineColor:1,backgroundColor:1},d=this.getNonIntersectingRectangles(),u=new Set([...this.oldSet].filter(_=>!d.has(_))),m=new Set([...d].filter(_=>!this.oldSet.has(_)));for(let _ of u)if(this.DynamicMaskingArr[_]){if(this.tweenMap.has(_)){var a=this.tweenMap.get(_);a.kill(),this.tweenMap.delete(_)}var a=Fc.to(c,{duration:.2,color:0,outlineColor:0,backgroundColor:0,onUpdate:()=>{var S,A;var y=this.DynamicMaskingArr[_];y.backgroundColor.alpha=c.backgroundColor,y.color.alpha=c.color,y.outlineColor.alpha=c.outlineColor,(A=(S=window.map.getLayer(y.id,"vectorId"))==null?void 0:S.getGraphicByAttr(y.uid))==null||A.setStyle({label:{show:!1,outline:!1,background:!1}})}});this.tweenMap.set(_,a)}for(let _ of m)if(this.DynamicMaskingArr[_]){if(this.tweenMap.has(_)){var a=this.tweenMap.get(_);a.kill(),this.tweenMap.delete(_)}let y=this.DynamicMaskingArr[_],{backgroundColor:S,color:A,outlineColor:I}=y.dynamicMaskingColor;var a=Fc.to(o,{duration:.8+Math.random(),color:A.alpha,outlineColor:I.alpha,backgroundColor:S.alpha,onUpdate:()=>{var D,F;y.backgroundColor.alpha=o.backgroundColor,y.color.alpha=o.color,y.outlineColor.alpha=o.outlineColor,(F=(D=window.map.getLayer(y.id,"vectorId"))==null?void 0:D.getGraphicByAttr(y.uid))==null||F.setStyle({label:{show:!0,outline:y.outline,background:y.background,color:y.color,outlineColor:y.outlineColor,backgroundColor:y.backgroundColor}})}});this.tweenMap.set(_,a)}this.oldSet=d}}switchDynamicMasking(a){if(a)window.map.getLayers().forEach(o=>{var c;if((c=o.options)!=null&&c.vectorId){let{color:d,outlineColor:u,backgroundColor:m}=o.options.symbol.styleOptions.label;o.eachGraphic(_=>{_.setStyle({label:{color:d.withAlpha(0),outlineColor:u.withAlpha(.001),backgroundColor:m.withAlpha(.001),show:!1,background:!1,outline:!1}})})}});else if(this.DynamicMaskingStyle.length>0){let o;this.DynamicMaskingStyle.forEach(c=>{let{color:d,outline:u,outlineColor:m,background:_,backgroundColor:y,vectorId:S}=c;o=window.map.getLayer(S,"vectorId"),o&&o.eachGraphic(A=>{A.setStyle({label:{color:d,outlineColor:m,backgroundColor:y,show:!0,background:_,outline:u}})})})}this.isDynamicMasking=a,window.bimVector.switchDynamicMasking(a)}}const Lg=()=>{window.schemeEvnModify.clearAllEvnModify(),window.bimRotatePoint.stop(),window.bimTrafficSimulation.destruction(),window.bimMapPTV&&window.bimMapPTV.destruction(),window.romStop(),window.complete(),window.bimMapCompare.destroyControl()},Rg=()=>{window.bimRotatePoint.stop(),window.bimTrafficSimulation.destruction(),window.bimMapPTV&&window.bimMapPTV.destruction(),window.romStop(),window.complete(),window.bimMapCompare.destroyControl()},Og=()=>{window.bimRotatePoint.stop(),window.bimTrafficSimulation.destruction(),window.bimMapPTV&&window.bimMapPTV.destruction(),window.romStop(),window.complete(),window.bimMapCompare.destroyControl()},Ig=x=>{let a=[];if(x.forEach(o=>{let{id:c}=o,d={id:c,mockData:{nextPage:[],item:[],previousPage:[]}};o.operate.forEach((u,m)=>{let _=Uc(u,d.mockData.nextPage);d.mockData.nextPage=_,d.mockData.item=_,d.mockData.previousPage=[]}),a.push(d)}),a.length>1)for(let o=1;o<a.length;o++){let c=a[o].mockData,d=a[o-1].mockData.item;const u=new Map;d.forEach(m=>{m.type!="rotatePoint"&&m.type!="viewpoint"&&m.type!="roaming"&&m.type!="splitScreen"?u.set(`${m.screenplayId}-${m.type}`,m):a[o].mockData.previousPage.push(m)}),c.nextPage.forEach(m=>{const _=`${m.screenplayId}-${m.type}`;let y={...u.get(_)};if(u.has(_)){if(m.type=="flight")a[o].mockData.previousPage.unshift(u.get(_)),y=m;else{let S={};Object.keys(m).forEach(A=>{if(A!="screenplayId"&&A!="type")if(u.get(_)[A])if(Object.keys(S).length==0&&(S={screenplayId:m.screenplayId,type:m.type}),A=="clip"||A=="flat"){y[A]=Gp(u.get(_)[A],m[A]);let I={screenplayId:m.screenplayId,type:m.type};I[A]={},Object.keys(m[A]).forEach(k=>{u.get(_)[A][k]?I[A][k]=u.get(_)[A][k]:m[A][k]=="true"&&(I[A][k]="false")}),S={...I,...S}}else S[A]=u.get(_)[A],y[A]=m[A];else a[o].mockData.previousPage.some(I=>I.screenplayId===m.screenplayId)||(S={...Hp(m,A),...S}),y[A]=m[A]}),Object.keys(S).length>0&&a[o].mockData.previousPage.push(S)}u.set(_,y)}else{let S=Hp(m);S&&a[o].mockData.previousPage.push(S),u.set(_,m)}}),a[o].mockData.item=Array.from(u.values())}return console.log("-----------最后输出-----------"),console.log(a),console.log("-----------最后输出-----------"),a},Uc=(x,a=null)=>{let{executionProperty:o,screenplayId:c,property:d,type:u,delay:m,delayTime:_}=x;if((d=="add"||d==!0)&&(d="true"),(d=="remove"||d==!1)&&(d="false"),u=="pit"){let S=window.schemeEvnModify.getModelModifyDataForInitModelById(c);if(S){let A={};A[c]=d,d=A,c=S.modelId,o=S.type}}let y;if(c==""||c=="map")if(c="map",u=="splitScreen"){let{splitScreenMode:S,splitScreenModePercentage:A}=JSON.parse(d);a.push({screenplayId:c,type:u,executionProperty:{splitScreenMode:S,splitScreenModePercentage:A,mapClone:[]}});let{mainScreen:I,secondaryScreen:k}=JSON.parse(x.property);I.forEach(F=>{Uc(F,a)});let D=a.find(F=>F.type=="splitScreen");k.forEach(F=>{Uc(F,D.executionProperty.mapClone)})}else y={screenplayId:c,type:u,executionProperty:d},(o=="clip"||o=="flat")&&(y[o]=d),m&&(y.delay=m),_&&(y.delayTime=_),a&&(u=="flight"?a.unshift(y):a.push(y));else y=a?a.find(S=>S.screenplayId==c):null,y?(o=="clip"||o=="flat"?y[o]?y[o]=Gp(y[o],d):(y[o]=d,y.type="model"):y[o]=d,m&&(y[o].delay=m),_&&(y[o].delayTime=_)):(y={screenplayId:c,type:u},m&&(y.delay=m),_&&(y.delayTime=_),o=="clip"||o=="flat"?(y[o]=d,y.type="model"):y[o]=d,a&&(u=="flight"?a.unshift(y):a.push(y)));return a||y},Gp=(x,a)=>{const o={...x};for(const c in a)a.hasOwnProperty(c)&&(o[c]=a[c]);return o},Hp=(x,a="all")=>{let{type:o,show:c,screenplayId:d,overallStaining:u,clip:m,flat:_}=x,y={};if(a=="all")switch(o){case"model":case"shp":case"plot":c&&c=="true"&&(y={screenplayId:d,type:o,show:"false"}),c&&c=="false"&&console.error("map上没有添加此对象"),u&&(y={...y,screenplayId:d,type:o,overallStaining:"false"}),m&&(y={...y,screenplayId:d,type:o,clip:"false"}),_&&(y={...y,screenplayId:d,type:o,flat:"false"});break;case"terrain":y={screenplayId:d,type:o,executionProperty:"true"};break;case"pit":y={screenplayId:d,type:o,executionProperty:"false"};break}else switch(console.log("初始化",a),a){case"overallStaining":y={screenplayId:d,type:o,overallStaining:"false"};break}return Object.keys(y).length>0?y:null},Dg=(x,a)=>{const o={};return Object.keys(a).forEach(c=>{x.hasOwnProperty(c)&&(o[c]=x[c])}),o},zg=x=>/^rgba\(\s*\d+\s*,\s*\d+\s*,\s*\d+\s*,\s*(0|1|0\.\d+)\s*\)$/i.test(x),kg=x=>{let a={};(x==null?void 0:x.length)>0&&x[0].operate.forEach(o=>{let{executionProperty:c,screenplayId:d,property:u,type:m}=o;(c=="show"||c=="overallStaining")&&(a[d]||(a[d]={type:m}),a[d][u]=c)}),console.log("retentionData",a),window.map.getLayers().forEach(o=>{if((o.type=="3dtiles"||o.type=="geojson")&&o.options.name!="国界"){let c=o.options.modelId||o.options.vectorId;a[c]?window.bimModel.editColor(c):o.remove()}}),window.bimEntity.entityLayer.getGraphicsByAttr().forEach(o=>{console.log("1111111111111",o,a),o.remove()}),window.bimMapSetUp.undergroundVal(1),window.bimTerrainProvider.show(),window.bimTrafficSimulation.destruction(),window.bimRotatePoint.stop(),window.bimMapPTV.destruction(),window.romStop(),window.complete()},Bg=[yf,Tf],Ng={continuation:null,mapModali:null,install(x){if(Bg.forEach((m,_)=>{x.component(m.name,m)}),this.continuation){x.config.globalProperties.$continuation=this.continuation;return}let a=si.createApp(xf),o=document.createElement("div"),c=document.body;if(c.appendChild(o),this.loading=a.mount(o),x.config.globalProperties.$loading=this.loading,window.$continuation=this.loading,this.mapModali){x.config.globalProperties.$mapModali=this.mapModali;return}let d=si.createApp(wf),u=document.createElement("div");c.appendChild(u),this.mapModali=d.mount(u),x.config.globalProperties.$mapModali=this.mapModali,window.$mapModali=this.mapModali}};Ui.BimBackgroundPlate=Tf,Ui.BimCutscenes=xf,Ui.BimElevationImage=am,Ui.BimEntity=hm,Ui.BimModel=nm,Ui.BimTerrainProvider=om,Ui.BimVector=sm,Ui.Button=yf,Ui.ChbimPlugins=Ng,Ui.DynamicMasking=Pg,Ui.MapModali=wf,Ui.PanoramicView=dm,Ui.ViewShed=lm,Ui.getSameKeyData=Dg,Ui.init=Lg,Ui.initMap=kg,Ui.isValidRGBA=zg,Ui.nextPage=Og,Ui.operateMapData=Ig,Ui.previousPage=Rg,Object.defineProperty(Ui,Symbol.toStringTag,{value:"Module"})});