/* Apple iPhone Duo product-viewer graphics runtime and model scripts. * Source: https://www.apple.com/iphone-duo/ (2026-10-08). * Includes third-party components with their embedded notices. * No Apple page navigation, shopping, or analytics modules are initialized. */ (function(){'use strict';const modules={"YEMv/39/pw6MbIjSlRSe":function(e,t,n){(function(t){var n;self,n=()=>(()=>{var e={4972:(e,t,n)=>{"use strict";var r=n(7624),i=n(2137),a=n(6063),s=n(8673),o={};e.exports=function e(t,n){var l,c,u;if(n=n||"div",t=t.toLowerCase(),n in o||(o[n]={}),t in(c=o[n]))return c[t];if(r(t,n))return c[t]=t;if(t in i)for(u=0;u{"use strict";var r=n(7795),i=n(9909),a=n(6733),s=n(6181),o=n(8673),l=function(e,t){var n=a(e),i=!1!==t&&a(t);return r[e]=r[t]=r[n]=r[i]={dom:t,css:i},t};e.exports=function(e){var t,n,a,c;if((e+="")in r)return r[e].dom;for(a=i(),n=(e=s(e)).charAt(0).toUpperCase()+e.substring(1),t="filter"===e?["WebkitFilter","filter"]:(e+" "+o.dom.join(n+" ")+n).split(" "),c=0;c{"use strict";var r=n(1286),i=n(7747),a=n(8673),s=n(7795),o={},l=/(\([^\)]+\))/gi,c=/([^ ,;\(]+(\([^\)]+\))?)/gi;e.exports=function(e,t){var n;return t+="",!!(e=r(e))&&(i(e,t)?t:(n=s[e].css,""!==(t=(t=t.replace(c,function(t){var r,s,c,u;if("#"===t[0]||!isNaN(t[0]))return t;if(s=t.replace(l,""),(c=n+":"+s)in o)return!1===o[c]?"":t.replace(s,o[c]);for(r=a.css.map(function(e){return e+t}),r=[t].concat(r),u=0;u{"use strict";e.exports={transitionend:["webkitTransitionEnd","MSTransitionEnd"],animationstart:["webkitAnimationStart","MSAnimationStart"],animationend:["webkitAnimationEnd","MSAnimationEnd"],animationiteration:["webkitAnimationIteration","MSAnimationIteration"],fullscreenchange:["MSFullscreenChange"],fullscreenerror:["MSFullscreenError"]}},9909:e=>{"use strict";var t;e.exports=function(){return t?(t.style.cssText="",t.removeAttribute("style")):t=document.createElement("_"),t},e.exports.resetElement=function(){t=null}},8673:e=>{"use strict";var t=["-webkit-","-moz-","-ms-"],n=["Webkit","Moz","ms"],r=["webkit","moz","ms"],i=function(){this.initialize()},a=i.prototype;a.initialize=function(){this.reduced=!1,this.css=t,this.dom=n,this.evt=r},a.reduce=function(e){this.reduced||(this.reduced=!0,this.css=[this.css[e]],this.dom=[this.dom[e]],this.evt=[this.evt[e]])},e.exports=new i},7795:e=>{"use strict";e.exports={}},7747:(e,t,n)=>{"use strict";var r,i,a=n(7795),s=n(9909),o=!1;e.exports=function(e,t){var n,l;if(function(){var e;if(!o){o=!0,r="CSS"in window&&"supports"in window.CSS,i=!1,e=s();try{e.style.width="invalid"}catch(e){i=!0}}}(),r)return e=a[e].css,CSS.supports(e,t);if(n=(l=s()).style[e],i)try{l.style[e]=t}catch(e){return!1}else l.style[e]=t;return l.style[e]&&l.style[e]!==n},e.exports.resetFlags=function(){o=!1}},6063:e=>{"use strict";e.exports=["transitionend","animationstart","animationend","animationiteration"]},7624:e=>{"use strict";var t={window:window,document:document};e.exports=function(e,n){var r;return e="on"+e,n in t||(t[n]=document.createElement(n)),e in(r=t[n])||"setAttribute"in r&&(r.setAttribute(e,"return;"),"function"==typeof r[e])}},6733:e=>{"use strict";var t=/^(webkit|moz|ms)/gi;e.exports=function(e){return"cssfloat"===e.toLowerCase()?"float":(t.test(e)&&(e="-"+e),e.replace(/([A-Z]+)([A-Z][a-z])/g,"$1-$2").replace(/([a-z\d])([A-Z])/g,"$1-$2").toLowerCase())}},6181:e=>{"use strict";var t=/-([a-z])/g;e.exports=function(e){return"float"===e.toLowerCase()?"cssFloat":("Ms"===(e=e.replace(t,function(e,t){return t.toUpperCase()})).substr(0,2)&&(e="ms"+e.substring(2)),e)}},9530:e=>{e.exports={majorVersionNumber:"3.x"}},9294:(e,t,n)=>{"use strict";var r,i=n(1427).EventEmitterMicro,a=n(7453),s=n(8260);function o(e){e=e||{},i.call(this),this.id=s.getNewID(),this.executor=e.executor||a,this._reset(),this._willRun=!1,this._didDestroy=!1}(r=o.prototype=Object.create(i.prototype)).run=function(){return this._willRun||(this._willRun=!0),this._subscribe()},r.cancel=function(){this._unsubscribe(),this._willRun&&(this._willRun=!1),this._reset()},r.destroy=function(){var e=this.willRun();return this.cancel(),this.executor=null,i.prototype.destroy.call(this),this._didDestroy=!0,e},r.willRun=function(){return this._willRun},r.isRunning=function(){return this._isRunning},r._subscribe=function(){return this.executor.subscribe(this)},r._unsubscribe=function(){return this.executor.unsubscribe(this)},r._onAnimationFrameStart=function(e){this._isRunning=!0,this._willRun=!1,this._didEmitFrameData||(this._didEmitFrameData=!0,this.trigger("start",e))},r._onAnimationFrameEnd=function(e){this._willRun||(this.trigger("stop",e),this._reset())},r._reset=function(){this._didEmitFrameData=!1,this._isRunning=!1},e.exports=o},4385:(e,t,n)=>{"use strict";var r,i=n(4740);function a(e){e=e||{},this._reset(),this.updatePhases(),this.eventEmitter=new i,this._willRun=!1,this._totalSubscribeCount=-1;var t=null,n=null;"undefined"!=typeof window?(t=window.requestAnimationFrame,n=window.cancelAnimationFrame):t=n=function(){},this._requestAnimationFrame=t,this._cancelAnimationFrame=n,this._boundOnAnimationFrame=this._onAnimationFrame.bind(this),this._boundOnExternalAnimationFrame=this._onExternalAnimationFrame.bind(this)}(r=a.prototype).frameRequestedPhase="requested",r.startPhase="start",r.runPhases=["update","external","draw"],r.endPhase="end",r.disabledPhase="disabled",r.beforePhaseEventPrefix="before:",r.afterPhaseEventPrefix="after:",r.subscribe=function(e,t){return this._totalSubscribeCount++,this._nextFrameSubscribers[e.id]||(t?this._nextFrameSubscribersOrder.unshift(e.id):this._nextFrameSubscribersOrder.push(e.id),this._nextFrameSubscribers[e.id]=e,this._nextFrameSubscriberArrayLength++,this._nextFrameSubscriberCount++,this._run()),this._totalSubscribeCount},r.subscribeImmediate=function(e,t){return this._totalSubscribeCount++,this._subscribers[e.id]||(t?this._subscribersOrder.splice(this._currentSubscriberIndex+1,0,e.id):this._subscribersOrder.unshift(e.id),this._subscribers[e.id]=e,this._subscriberArrayLength++,this._subscriberCount++),this._totalSubscribeCount},r.unsubscribe=function(e){return!!this._nextFrameSubscribers[e.id]&&(this._nextFrameSubscribers[e.id]=null,this._nextFrameSubscriberCount--,0===this._nextFrameSubscriberCount&&this._cancel(),!0)},r.getSubscribeID=function(){return this._totalSubscribeCount+=1},r.destroy=function(){var e=this._cancel();return this.eventEmitter.destroy(),this.eventEmitter=null,this.phases=null,this._subscribers=null,this._subscribersOrder=null,this._nextFrameSubscribers=null,this._nextFrameSubscribersOrder=null,this._rafData=null,this._boundOnAnimationFrame=null,this._onExternalAnimationFrame=null,e},r.useExternalAnimationFrame=function(e){if("boolean"==typeof e){var t=this._isUsingExternalAnimationFrame;return e&&this._animationFrame&&(this._cancelAnimationFrame.call(window,this._animationFrame),this._animationFrame=null),!this._willRun||e||this._animationFrame||(this._animationFrame=this._requestAnimationFrame.call(window,this._boundOnAnimationFrame)),this._isUsingExternalAnimationFrame=e,e?this._boundOnExternalAnimationFrame:t||!1}},r.updatePhases=function(){this.phases||(this.phases=[]),this.phases.length=0,this.phases.push(this.frameRequestedPhase),this.phases.push(this.startPhase),Array.prototype.push.apply(this.phases,this.runPhases),this.phases.push(this.endPhase),this._runPhasesLength=this.runPhases.length,this._phasesLength=this.phases.length},r._run=function(){if(!this._willRun)return this._willRun=!0,0===this.lastFrameTime&&(this.lastFrameTime=performance.now()),this._animationFrameActive=!0,this._isUsingExternalAnimationFrame||(this._animationFrame=this._requestAnimationFrame.call(window,this._boundOnAnimationFrame)),this.phase===this.disabledPhase&&(this.phaseIndex=0,this.phase=this.phases[this.phaseIndex]),!0},r._cancel=function(){var e=!1;return this._animationFrameActive&&(this._animationFrame&&(this._cancelAnimationFrame.call(window,this._animationFrame),this._animationFrame=null),this._animationFrameActive=!1,this._willRun=!1,e=!0),this._isRunning||this._reset(),e},r._onAnimationFrame=function(e){for(this._subscribers=this._nextFrameSubscribers,this._subscribersOrder=this._nextFrameSubscribersOrder,this._subscriberArrayLength=this._nextFrameSubscriberArrayLength,this._subscriberCount=this._nextFrameSubscriberCount,this._nextFrameSubscribers={},this._nextFrameSubscribersOrder=[],this._nextFrameSubscriberArrayLength=0,this._nextFrameSubscriberCount=0,this.phaseIndex=0,this.phase=this.phases[this.phaseIndex],this._isRunning=!0,this._willRun=!1,this._didRequestNextRAF=!1,this._rafData.delta=e-this.lastFrameTime,this.lastFrameTime=e,this._rafData.fps=0,this._rafData.delta>=1e3&&(this._rafData.delta=0),0!==this._rafData.delta&&(this._rafData.fps=1e3/this._rafData.delta),this._rafData.time=e,this._rafData.naturalFps=this._rafData.fps,this._rafData.timeNow=Date.now(),this.phaseIndex++,this.phase=this.phases[this.phaseIndex],this.eventEmitter.trigger(this.beforePhaseEventPrefix+this.phase),this._currentSubscriberIndex=0;this._currentSubscriberIndex{"use strict";var r=n(3494).SharedInstance,i=n(9530).majorVersionNumber,a=function(){this._currentID=0};a.prototype.getNewID=function(){return this._currentID++,"raf:"+this._currentID},e.exports=r.share("@marcom/ac-raf-emitter/sharedRAFEmitterIDGeneratorInstance",i,a)},7453:(e,t,n)=>{"use strict";var r=n(3494).SharedInstance,i=n(9530).majorVersionNumber,a=n(4385);e.exports=r.share("@marcom/ac-raf-emitter/sharedRAFExecutorInstance",i,a)},3494:(e,t,n)=>{"use strict";e.exports={SharedInstance:n(7814)}},7814:e=>{"use strict";var t,n="undefined"!=typeof window?window:{},r="SharedInstance",i=n.AC,a=(t={},{get:function(e,n){var r=null;return t[e]&&t[e][n]&&(r=t[e][n]),r},set:function(e,n,r){return t[e]||(t[e]={}),t[e][n]="function"==typeof r?new r:r,t[e][n]},share:function(e,t,n){var r=this.get(e,t);return r||(r=this.set(e,t,n)),r},remove:function(e,n){var r=typeof n;if("string"!==r&&"number"!==r)t[e]&&(t[e]=null);else{if(!t[e]||!t[e][n])return;t[e][n]=null}}});i||(i=n.AC={}),i[r]||(i[r]=a),e.exports=i[r]},1777:e=>{"use strict";e.exports=new class{constructor(){this.linear=function(e){return e},this.easeInQuad=function(e){return e*e},this.easeOutQuad=function(e){return e*(2-e)},this.easeInOutQuad=function(e){return e<.5?2*e*e:(4-2*e)*e-1},this.easeInSin=function(e){return 1+Math.sin(Math.PI/2*e-Math.PI/2)},this.easeOutSin=function(e){return Math.sin(Math.PI/2*e)},this.easeInOutSin=function(e){return(1+Math.sin(Math.PI*e-Math.PI/2))/2},this.easeInElastic=function(e){return 0===e?e:(.04-.04/e)*Math.sin(25*e)+1},this.easeOutElastic=function(e){return.04*e/--e*Math.sin(25*e)},this.easeInOutElastic=function(e){return(e-=.5)<0?(.02+.01/e)*Math.sin(50*e):(.02-.01/e)*Math.sin(50*e)+1},this.easeOutBack=function(e){return(e-=1)*e*(2.70158*e+1.70158)+1},this.easeInCubic=function(e){return e*e*e},this.easeOutCubic=function(e){return--e*e*e+1},this.easeInOutCubic=function(e){return e<.5?4*e*e*e:(e-1)*(2*e-2)*(2*e-2)+1},this.easeInQuart=function(e){return e*e*e*e},this.easeOutQuart=function(e){return 1- --e*e*e*e},this.easeInOutQuart=function(e){return e<.5?8*e*e*e*e:1-8*--e*e*e*e},this.easeInQuint=function(e){return e*e*e*e*e},this.easeOutQuint=function(e){return 1+--e*e*e*e*e},this.easeInOutQuint=function(e){return e<.5?16*e*e*e*e*e:1+16*--e*e*e*e*e}}}},7297:(e,t,n)=>{"use strict";const{map:r}=n(9917),i={};class a{constructor(e,t,n,r){this.mass=e,this.stiffness=t,this.damping=n,this.initialVelocity=r,this.m_w0=Math.sqrt(this.stiffness/this.mass),this.m_zeta=this.damping/(2*Math.sqrt(this.stiffness*this.mass)),this.m_zeta<1?(this.m_wd=this.m_w0*Math.sqrt(1-this.m_zeta*this.m_zeta),this.m_A=1,this.m_B=(this.m_zeta*this.m_w0-this.initialVelocity)/this.m_wd):(this.m_wd=0,this.m_A=1,this.m_B=-this.initialVelocity+this.m_w0)}solve(e){return 1-(this.m_zeta<1?Math.exp(-e*this.m_zeta*this.m_w0)*(this.m_A*Math.cos(this.m_wd*e)+this.m_B*Math.sin(this.m_wd*e)):(this.m_A+this.m_B*e)*Math.exp(-e*this.m_w0))}}const s=/\d*\.?\d+/g;a.fromCSSString=function(e){let t=e.match(s);if(4!==t.length)throw`SpringEasing could not convert ${cssString} to spring params`;let n=t.map(Number),o=new a(...n);const l=o.solve.bind(o);let c=0,u=function(){if(i[e])return i[e];const t=1/6;let n,r=0;for(;;)if(c+=t,1===l(c)){if(r++,r>=16){n=c*t;break}}else r=0;return i[e]=n,i[e]}();return function(e){return 0===e||1===e?e:l(r(e,0,1,0,u))}},e.exports=a},486:e=>{"use strict";const t=1e-5,n=Math.abs;class r{constructor(e,t,n,r){this.cp=new Float32Array(6),this.cp[0]=3*e,this.cp[1]=3*(n-e)-this.cp[0],this.cp[2]=1-this.cp[0]-this.cp[1],this.cp[3]=3*t,this.cp[4]=3*(r-t)-this.cp[3],this.cp[5]=1-this.cp[3]-this.cp[4]}sampleCurveX(e){return((this.cp[2]*e+this.cp[1])*e+this.cp[0])*e}sampleCurveY(e){return((this.cp[5]*e+this.cp[4])*e+this.cp[3])*e}sampleCurveDerivativeX(e){return(3*this.cp[2]*e+2*this.cp[1])*e+this.cp[0]}solveCurveX(e){var r,i,a,s,o,l;for(a=e,l=0;l<5;l++){if(s=this.sampleCurveX(a)-e,n(s)(i=1))return i;for(;rs?r=a:i=a,a=.5*(i-r)+r}return a}solve(e){return this.sampleCurveY(this.solveCurveX(e))}}const i=/\d*\.?\d+/g;r.fromCSSString=function(e){let t=e.match(i);if(4!==t.length)throw`UnitBezier could not convert ${e} to cubic-bezier`;let n=t.map(Number),a=new r(n[0],n[1],n[2],n[3]);return a.solve.bind(a)},e.exports=r},7503:(e,t,n)=>{"use strict";var r=n(9846),i=n(8579),a=function(){var e=r.getDocument().createElement("canvas");return!("function"!=typeof e.getContext||!e.getContext("2d"))};e.exports=i(a),e.exports.original=a},1606:(e,t,n)=>{"use strict";var r=n(820),i=n(1843).original,a=n(8579);function s(){return!i()||r.os.ios&&r.os.version.major>=8||r.browser.chrome}e.exports=a(s),e.exports.original=s},4138:(e,t,n)=>{"use strict";var r=n(9846),i=n(8579);function a(){var e=!1,t=r.getDocument(),n=r.getNavigator();try{"cookie"in t&&n.cookieEnabled&&(t.cookie="ac_feature_cookie=1",e=-1!==t.cookie.indexOf("ac_feature_cookie"),t.cookie="ac_feature_cookie=; expires=Thu, 01 Jan 1970 00:00:01 GMT;")}catch(e){}return e}e.exports=i(a),e.exports.original=a},6762:(e,t,n)=>{"use strict";var r=n(1578),i=n(8579);function a(){return["linear-gradient(to bottom right, #9f9, white)","linear-gradient(top left, #9f9, white)","gradient(linear, left top, right bottom, from(#9f9), to(white))"].some(function(e){return!!r("background-image",e)})}e.exports=i(a),e.exports.original=a},3900:(e,t,n)=>{"use strict";var r=n(1578),i=n(1286),a=n(2708);function s(e,t){return void 0!==t?!!r(e,t):!!i(e)}e.exports=a(s),e.exports.original=s},688:(e,t,n)=>{"use strict";var r=n(1578),i=n(8579);function a(){return!!r("margin","1vw 1vh")}e.exports=i(a),e.exports.original=a},2549:(e,t,n)=>{"use strict";var r=n(9846),i=n(2708);function a(e,t){return t=t||"div",e in r.getDocument().createElement(t)}e.exports=i(a),e.exports.original=a},8396:(e,t,n)=>{"use strict";var r=n(4972),i=n(2708);function a(e,t){return!!r(e,t)}e.exports=i(a),e.exports.original=a},3251:(e,t,n)=>{"use strict";e.exports={canvasAvailable:n(7503),continuousScrollEventsAvailable:n(1606),cookiesAvailable:n(4138),cssLinearGradientAvailable:n(6762),cssPropertyAvailable:n(3900),cssViewportUnitsAvailable:n(688),elementAttributeAvailable:n(2549),eventTypeAvailable:n(8396),isDesktop:n(9333),isHandheld:n(85),isRetina:n(7665),isTablet:n(2915),localStorageAvailable:n(1073),mediaElementsAvailable:n(2846),mediaQueriesAvailable:n(6334),prefersReducedMotion:n(6028),sessionStorageAvailable:n(2538),svgAvailable:n(9007),threeDTransformsAvailable:n(7151),touchAvailable:n(1843),webGLAvailable:n(2299)}},9846:e=>{"use strict";e.exports={getWindow:function(){return window},getDocument:function(){return document},getNavigator:function(){return navigator}}},9333:(e,t,n)=>{"use strict";var r=n(820).os,i=n(1843).original,a=n(9846),s=n(8579);function o(){var e=a.getWindow();return!i()&&!e.orientation||r.windows}e.exports=s(o),e.exports.original=o},85:(e,t,n)=>{"use strict";var r=n(9333).original,i=n(2915).original,a=n(8579);function s(){return!r()&&!i()}e.exports=a(s),e.exports.original=s},7665:(e,t,n)=>{"use strict";var r=n(9846);e.exports=function(){var e=r.getWindow();return"devicePixelRatio"in e&&e.devicePixelRatio>=1.5}},2915:(e,t,n)=>{"use strict";var r=n(9333).original,i=n(9846),a=n(8579);function s(){var e=i.getWindow(),t=e.screen.width;return e.orientation&&e.screen.height=600}e.exports=a(s),e.exports.original=s},1073:(e,t,n)=>{"use strict";var r=n(9846),i=n(8579);function a(){var e=r.getWindow(),t=!1;try{t=!(!e.localStorage||null===e.localStorage.non_existent)}catch(e){}return t}e.exports=i(a),e.exports.original=a},2846:(e,t,n)=>{"use strict";var r=n(9846),i=n(8579);function a(){return"HTMLMediaElement"in r.getWindow()}e.exports=i(a),e.exports.original=a},6334:(e,t,n)=>{"use strict";var r=n(9846),i=n(8579);function a(){var e=r.getWindow().matchMedia("only all");return!(!e||!e.matches)}e.exports=i(a),e.exports.original=a},6028:(e,t,n)=>{"use strict";var r=n(9846);e.exports=function(){var e=r.getWindow().matchMedia("(prefers-reduced-motion)");return!(!e||!e.matches)}},2538:(e,t,n)=>{"use strict";var r=n(9846),i=n(8579);function a(){var e=r.getWindow(),t=!1;try{"sessionStorage"in e&&"function"==typeof e.sessionStorage.setItem&&(e.sessionStorage.setItem("ac_feature","test"),t=!0,e.sessionStorage.removeItem("ac_feature","test"))}catch(e){}return t}e.exports=i(a),e.exports.original=a},9007:(e,t,n)=>{"use strict";var r=n(9846),i=n(8579);function a(){return!!r.getDocument().implementation.hasFeature("http://www.w3.org/TR/SVG11/feature#Image","1.1")}e.exports=i(a),e.exports.original=a},7151:(e,t,n)=>{"use strict";var r=n(1578),i=n(8579);function a(){return!(!r("perspective","1px")||!r("transform","translateZ(0)"))}e.exports=i(a),e.exports.original=a},1843:(e,t,n)=>{"use strict";var r=n(9846),i=n(8579);function a(){var e=r.getWindow(),t=r.getDocument(),n=r.getNavigator();return!!("ontouchstart"in e||e.DocumentTouch&&t instanceof e.DocumentTouch||n.maxTouchPoints>0||n.msMaxTouchPoints>0)}e.exports=i(a),e.exports.original=a},2299:(e,t,n)=>{"use strict";var r=n(9846),i=n(8579);function a(){var e=r.getDocument().createElement("canvas");return"function"==typeof e.getContext&&!(!e.getContext("webgl")&&!e.getContext("experimental-webgl"))}e.exports=i(a),e.exports.original=a},2708:e=>{"use strict";var t=function(){var e,t="";for(e=0;e0&&(t+=","),t+=arguments[e];return t};e.exports=function(e,n){n=n||t;var r=function(){var t=arguments,i=n.apply(this,t);return i in r.cache||(r.cache[i]=e.apply(this,t)),r.cache[i]};return r.cache={},r}},8579:e=>{"use strict";e.exports=function(e){var t;return function(){return void 0===t&&(t=e.apply(this,arguments)),t}}},9917:e=>{"use strict";e.exports={lerp:function(e,t,n){return t+(n-t)*e},map:function(e,t,n,r,i){return r+(i-r)*(e-t)/(n-t)},mapClamp:function(e,t,n,r,i){var a=r+(i-r)*(e-t)/(n-t);return Math.max(r,Math.min(i,a))},norm:function(e,t,n){return(e-t)/(n-t)},clamp:function(e,t,n){return Math.max(t,Math.min(n,e))},randFloat:function(e,t){return Math.random()*(t-e)+e},randInt:function(e,t){return Math.floor(Math.random()*(t-e)+e)}}},2324:e=>{"use strict";e.exports=function(e){const t={};for(const n in e)t[n]=e[n].reduce(function(e,t){return e[t.name]=!1,e},{version:{string:"",major:0,minor:0,patch:0,documentMode:!1}});return t}},7106:e=>{"use strict";e.exports={browser:[{name:"edge",userAgent:"Edge",version:["rv","Edge"],test:function(e){return e.ua.indexOf("Edge")>-1||"Mozilla/5.0 (Windows NT 10.0; Win64; x64)"===e.ua}},{name:"edgeChromium",userAgent:"Edge",version:["rv","Edg"],test:function(e){return e.ua.indexOf("Edg")>-1&&-1===e.ua.indexOf("Edge")}},{name:"headlessChrome",userAgent:"HeadlessChrome"},{name:"chrome",userAgent:"Chrome"},{name:"firefox",test:function(e){return e.ua.indexOf("Firefox")>-1&&-1===e.ua.indexOf("Opera")},version:"Firefox"},{name:"android",userAgent:"Android"},{name:"safari",test:function(e){return e.ua.indexOf("Safari")>-1&&e.vendor.indexOf("Apple")>-1},version:"Version"},{name:"ie",test:function(e){return e.ua.indexOf("IE")>-1||e.ua.indexOf("Trident")>-1},version:["MSIE","rv"],parseDocumentMode:function(){let e=!1;return document.documentMode&&(e=parseInt(document.documentMode,10)),e}},{name:"opera",userAgent:"Opera",version:["Version","Opera"]},{name:"samsung",userAgent:"SamsungBrowser"}],os:[{name:"windows",test:function(e){return e.ua.indexOf("Windows")>-1},version:"Windows NT"},{name:"osx",userAgent:"Mac",test:function(e){return e.ua.indexOf("Macintosh")>-1}},{name:"ios",test:function(e){return e.ua.indexOf("iPhone")>-1||e.ua.indexOf("iPad")>-1},version:["iPhone OS","CPU OS"]},{name:"linux",userAgent:"Linux",test:function(e){return(e.ua.indexOf("Linux")>-1||e.platform.indexOf("Linux")>-1)&&-1===e.ua.indexOf("Android")}},{name:"fireos",test:function(e){return e.ua.indexOf("Firefox")>-1&&e.ua.indexOf("Mobile")>-1},version:"rv"},{name:"android",userAgent:"Android",test:function(e){return e.ua.indexOf("Android")>-1}},{name:"chromeos",userAgent:"CrOS"}]}},1620:(e,t,n)=>{"use strict";const r=n(2324),i=n(7106);function a(e,t){if("function"==typeof e.parseVersion)return e.parseVersion(t);{let r=e.version||e.userAgent;"string"==typeof r&&(r=[r]);const i=r.length;let a;for(let e=0;e1)return a[1].replace(/_/g,".")}var n;return!1}function s(e,t,n){const r=e.length;let i,s;for(let o=0;o-1&&(i=e[o].name),i){if(t[i]=!0,s=a(e[o],n.ua),"string"==typeof s){const e=s.split(".");t.version.string=s,e&&e.length>0&&(t.version.major=parseInt(e[0]||0),t.version.minor=parseInt(e[1]||0),t.version.patch=parseInt(e[2]||0))}else"edge"===i&&(t.version.string="12.0.0",t.version.major="12",t.version.minor="0",t.version.patch="0");return"function"==typeof e[o].parseDocumentMode&&(t.version.documentMode=e[o].parseDocumentMode()),t}return t}e.exports=function(e){const t={},n=r(i);return t.browser=s(i.browser,n.browser,e),t.os=s(i.os,n.os,e),t}},820:(e,t,n)=>{"use strict";const r="undefined"!=typeof window?window.navigator:{userAgent:"",platform:"",vendor:""},i={ua:r.userAgent,platform:r.platform,vendor:r.vendor};e.exports=n(1620)(i)},8552:(e,t,n)=>{var r=n(852)(n(5639),"DataView");e.exports=r},1989:(e,t,n)=>{var r=n(1789),i=n(401),a=n(7667),s=n(1327),o=n(1866);function l(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t{var r=n(3118),i=n(9435);function a(e){this.__wrapped__=e,this.__actions__=[],this.__dir__=1,this.__filtered__=!1,this.__iteratees__=[],this.__takeCount__=4294967295,this.__views__=[]}a.prototype=r(i.prototype),a.prototype.constructor=a,e.exports=a},8407:(e,t,n)=>{var r=n(7040),i=n(4125),a=n(2117),s=n(7518),o=n(4705);function l(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t{var r=n(3118),i=n(9435);function a(e,t){this.__wrapped__=e,this.__actions__=[],this.__chain__=!!t,this.__index__=0,this.__values__=void 0}a.prototype=r(i.prototype),a.prototype.constructor=a,e.exports=a},7071:(e,t,n)=>{var r=n(852)(n(5639),"Map");e.exports=r},3369:(e,t,n)=>{var r=n(4785),i=n(1285),a=n(6e3),s=n(9916),o=n(5265);function l(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t{var r=n(852)(n(5639),"Promise");e.exports=r},8525:(e,t,n)=>{var r=n(852)(n(5639),"Set");e.exports=r},8668:(e,t,n)=>{var r=n(3369),i=n(619),a=n(2385);function s(e){var t=-1,n=null==e?0:e.length;for(this.__data__=new r;++t{var r=n(8407),i=n(7465),a=n(3779),s=n(7599),o=n(4758),l=n(4309);function c(e){var t=this.__data__=new r(e);this.size=t.size}c.prototype.clear=i,c.prototype.delete=a,c.prototype.get=s,c.prototype.has=o,c.prototype.set=l,e.exports=c},2705:(e,t,n)=>{var r=n(5639).Symbol;e.exports=r},1149:(e,t,n)=>{var r=n(5639).Uint8Array;e.exports=r},577:(e,t,n)=>{var r=n(852)(n(5639),"WeakMap");e.exports=r},6874:e=>{e.exports=function(e,t,n){switch(n.length){case 0:return e.call(t);case 1:return e.call(t,n[0]);case 2:return e.call(t,n[0],n[1]);case 3:return e.call(t,n[0],n[1],n[2])}return e.apply(t,n)}},4174:e=>{e.exports=function(e,t,n,r){for(var i=-1,a=null==e?0:e.length;++i{e.exports=function(e,t){for(var n=-1,r=null==e?0:e.length;++n{e.exports=function(e,t){for(var n=-1,r=null==e?0:e.length,i=0,a=[];++n{var r=n(2118);e.exports=function(e,t){return!(null==e||!e.length)&&r(e,t,0)>-1}},1196:e=>{e.exports=function(e,t,n){for(var r=-1,i=null==e?0:e.length;++r{var r=n(2545),i=n(5694),a=n(1469),s=n(4144),o=n(5776),l=n(6719),c=Object.prototype.hasOwnProperty;e.exports=function(e,t){var n=a(e),u=!n&&i(e),h=!n&&!u&&s(e),d=!n&&!u&&!h&&l(e),p=n||u||h||d,f=p?r(e.length,String):[],m=f.length;for(var A in e)!t&&!c.call(e,A)||p&&("length"==A||h&&("offset"==A||"parent"==A)||d&&("buffer"==A||"byteLength"==A||"byteOffset"==A)||o(A,m))||f.push(A);return f}},9932:e=>{e.exports=function(e,t){for(var n=-1,r=null==e?0:e.length,i=Array(r);++n{e.exports=function(e,t){for(var n=-1,r=t.length,i=e.length;++n{e.exports=function(e,t){for(var n=-1,r=null==e?0:e.length;++n{var r=n(9465),i=n(7813);e.exports=function(e,t,n){(void 0!==n&&!i(e[t],n)||void 0===n&&!(t in e))&&r(e,t,n)}},4865:(e,t,n)=>{var r=n(9465),i=n(7813),a=Object.prototype.hasOwnProperty;e.exports=function(e,t,n){var s=e[t];a.call(e,t)&&i(s,n)&&(void 0!==n||t in e)||r(e,t,n)}},8470:(e,t,n)=>{var r=n(7813);e.exports=function(e,t){for(var n=e.length;n--;)if(r(e[n][0],t))return n;return-1}},1119:(e,t,n)=>{var r=n(9881);e.exports=function(e,t,n,i){return r(e,function(e,r,a){t(i,e,n(e),a)}),i}},4037:(e,t,n)=>{var r=n(8363),i=n(3674);e.exports=function(e,t){return e&&r(t,i(t),e)}},3886:(e,t,n)=>{var r=n(8363),i=n(1704);e.exports=function(e,t){return e&&r(t,i(t),e)}},9465:(e,t,n)=>{var r=n(8777);e.exports=function(e,t,n){"__proto__"==t&&r?r(e,t,{configurable:!0,enumerable:!0,value:n,writable:!0}):e[t]=n}},5990:(e,t,n)=>{var r=n(6384),i=n(7412),a=n(4865),s=n(4037),o=n(3886),l=n(4626),c=n(278),u=n(8805),h=n(1911),d=n(8234),p=n(6904),f=n(4160),m=n(3824),A=n(9148),g=n(8517),v=n(1469),y=n(4144),b=n(6688),_=n(3218),x=n(2928),E=n(3674),w=n(1704),M="[object Arguments]",S="[object Function]",C="[object Object]",I={};I[M]=I["[object Array]"]=I["[object ArrayBuffer]"]=I["[object DataView]"]=I["[object Boolean]"]=I["[object Date]"]=I["[object Float32Array]"]=I["[object Float64Array]"]=I["[object Int8Array]"]=I["[object Int16Array]"]=I["[object Int32Array]"]=I["[object Map]"]=I["[object Number]"]=I[C]=I["[object RegExp]"]=I["[object Set]"]=I["[object String]"]=I["[object Symbol]"]=I["[object Uint8Array]"]=I["[object Uint8ClampedArray]"]=I["[object Uint16Array]"]=I["[object Uint32Array]"]=!0,I["[object Error]"]=I[S]=I["[object WeakMap]"]=!1,e.exports=function e(t,n,T,B,R,P){var L,O=1&n,U=2&n,D=4&n;if(T&&(L=R?T(t,B,R,P):T(t)),void 0!==L)return L;if(!_(t))return t;var F=v(t);if(F){if(L=m(t),!O)return c(t,L)}else{var N=f(t),k=N==S||"[object GeneratorFunction]"==N;if(y(t))return l(t,O);if(N==C||N==M||k&&!R){if(L=U||k?{}:g(t),!O)return U?h(t,o(L,t)):u(t,s(L,t))}else{if(!I[N])return R?t:{};L=A(t,N,O)}}P||(P=new r);var Q=P.get(t);if(Q)return Q;P.set(t,L),x(t)?t.forEach(function(r){L.add(e(r,n,T,r,t,P))}):b(t)&&t.forEach(function(r,i){L.set(i,e(r,n,T,i,t,P))});var G=F?void 0:(D?U?p:d:U?w:E)(t);return i(G||t,function(r,i){G&&(r=t[i=r]),a(L,i,e(r,n,T,i,t,P))}),L}},3118:(e,t,n)=>{var r=n(3218),i=Object.create,a=function(){function e(){}return function(t){if(!r(t))return{};if(i)return i(t);e.prototype=t;var n=new e;return e.prototype=void 0,n}}();e.exports=a},731:(e,t,n)=>{var r=n(8668),i=n(7443),a=n(1196),s=n(9932),o=n(1717),l=n(4757);e.exports=function(e,t,n,c){var u=-1,h=i,d=!0,p=e.length,f=[],m=t.length;if(!p)return f;n&&(t=s(t,o(n))),c?(h=a,d=!1):t.length>=200&&(h=l,d=!1,t=new r(t));e:for(;++u{var r=n(7816),i=n(9291)(r);e.exports=i},1848:e=>{e.exports=function(e,t,n,r){for(var i=e.length,a=n+(r?1:-1);r?a--:++a{var r=n(2488),i=n(7285);e.exports=function e(t,n,a,s,o){var l=-1,c=t.length;for(a||(a=i),o||(o=[]);++l0&&a(u)?n>1?e(u,n-1,a,s,o):r(o,u):s||(o[o.length]=u)}return o}},8483:(e,t,n)=>{var r=n(5063)();e.exports=r},7816:(e,t,n)=>{var r=n(8483),i=n(3674);e.exports=function(e,t){return e&&r(e,t,i)}},7786:(e,t,n)=>{var r=n(1811),i=n(327);e.exports=function(e,t){for(var n=0,a=(t=r(t,e)).length;null!=e&&n{var r=n(2488),i=n(1469);e.exports=function(e,t,n){var a=t(e);return i(e)?a:r(a,n(e))}},4239:(e,t,n)=>{var r=n(2705),i=n(9607),a=n(2333),s=r?r.toStringTag:void 0;e.exports=function(e){return null==e?void 0===e?"[object Undefined]":"[object Null]":s&&s in Object(e)?i(e):a(e)}},8565:e=>{var t=Object.prototype.hasOwnProperty;e.exports=function(e,n){return null!=e&&t.call(e,n)}},13:e=>{e.exports=function(e,t){return null!=e&&t in Object(e)}},2118:(e,t,n)=>{var r=n(1848),i=n(2722),a=n(2351);e.exports=function(e,t,n){return t==t?a(e,t,n):r(e,i,n)}},9454:(e,t,n)=>{var r=n(4239),i=n(7005);e.exports=function(e){return i(e)&&"[object Arguments]"==r(e)}},939:(e,t,n)=>{var r=n(2492),i=n(7005);e.exports=function e(t,n,a,s,o){return t===n||(null==t||null==n||!i(t)&&!i(n)?t!=t&&n!=n:r(t,n,a,s,e,o))}},2492:(e,t,n)=>{var r=n(6384),i=n(7114),a=n(8351),s=n(6096),o=n(4160),l=n(1469),c=n(4144),u=n(6719),h="[object Arguments]",d="[object Array]",p="[object Object]",f=Object.prototype.hasOwnProperty;e.exports=function(e,t,n,m,A,g){var v=l(e),y=l(t),b=v?d:o(e),_=y?d:o(t),x=(b=b==h?p:b)==p,E=(_=_==h?p:_)==p,w=b==_;if(w&&c(e)){if(!c(t))return!1;v=!0,x=!1}if(w&&!x)return g||(g=new r),v||u(e)?i(e,t,n,m,A,g):a(e,t,b,n,m,A,g);if(!(1&n)){var M=x&&f.call(e,"__wrapped__"),S=E&&f.call(t,"__wrapped__");if(M||S){var C=M?e.value():e,I=S?t.value():t;return g||(g=new r),A(C,I,n,m,g)}}return!!w&&(g||(g=new r),s(e,t,n,m,A,g))}},5588:(e,t,n)=>{var r=n(4160),i=n(7005);e.exports=function(e){return i(e)&&"[object Map]"==r(e)}},2958:(e,t,n)=>{var r=n(6384),i=n(939);e.exports=function(e,t,n,a){var s=n.length,o=s,l=!a;if(null==e)return!o;for(e=Object(e);s--;){var c=n[s];if(l&&c[2]?c[1]!==e[c[0]]:!(c[0]in e))return!1}for(;++s{e.exports=function(e){return e!=e}},8458:(e,t,n)=>{var r=n(3560),i=n(5346),a=n(3218),s=n(346),o=/^\[object .+?Constructor\]$/,l=Function.prototype,c=Object.prototype,u=l.toString,h=c.hasOwnProperty,d=RegExp("^"+u.call(h).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");e.exports=function(e){return!(!a(e)||i(e))&&(r(e)?d:o).test(s(e))}},9221:(e,t,n)=>{var r=n(4160),i=n(7005);e.exports=function(e){return i(e)&&"[object Set]"==r(e)}},8749:(e,t,n)=>{var r=n(4239),i=n(1780),a=n(7005),s={};s["[object Float32Array]"]=s["[object Float64Array]"]=s["[object Int8Array]"]=s["[object Int16Array]"]=s["[object Int32Array]"]=s["[object Uint8Array]"]=s["[object Uint8ClampedArray]"]=s["[object Uint16Array]"]=s["[object Uint32Array]"]=!0,s["[object Arguments]"]=s["[object Array]"]=s["[object ArrayBuffer]"]=s["[object Boolean]"]=s["[object DataView]"]=s["[object Date]"]=s["[object Error]"]=s["[object Function]"]=s["[object Map]"]=s["[object Number]"]=s["[object Object]"]=s["[object RegExp]"]=s["[object Set]"]=s["[object String]"]=s["[object WeakMap]"]=!1,e.exports=function(e){return a(e)&&i(e.length)&&!!s[r(e)]}},7206:(e,t,n)=>{var r=n(1573),i=n(6432),a=n(6557),s=n(1469),o=n(9601);e.exports=function(e){return"function"==typeof e?e:null==e?a:"object"==typeof e?s(e)?i(e[0],e[1]):r(e):o(e)}},280:(e,t,n)=>{var r=n(5726),i=n(6916),a=Object.prototype.hasOwnProperty;e.exports=function(e){if(!r(e))return i(e);var t=[];for(var n in Object(e))a.call(e,n)&&"constructor"!=n&&t.push(n);return t}},313:(e,t,n)=>{var r=n(3218),i=n(5726),a=n(3498),s=Object.prototype.hasOwnProperty;e.exports=function(e){if(!r(e))return a(e);var t=i(e),n=[];for(var o in e)("constructor"!=o||!t&&s.call(e,o))&&n.push(o);return n}},9435:e=>{e.exports=function(){}},9199:(e,t,n)=>{var r=n(9881),i=n(8612);e.exports=function(e,t){var n=-1,a=i(e)?Array(e.length):[];return r(e,function(e,r,i){a[++n]=t(e,r,i)}),a}},1573:(e,t,n)=>{var r=n(2958),i=n(1499),a=n(2634);e.exports=function(e){var t=i(e);return 1==t.length&&t[0][2]?a(t[0][0],t[0][1]):function(n){return n===e||r(n,e,t)}}},6432:(e,t,n)=>{var r=n(939),i=n(7361),a=n(9095),s=n(5403),o=n(9162),l=n(2634),c=n(327);e.exports=function(e,t){return s(e)&&o(t)?l(c(e),t):function(n){var s=i(n,e);return void 0===s&&s===t?a(n,e):r(t,s,3)}}},2980:(e,t,n)=>{var r=n(6384),i=n(6556),a=n(8483),s=n(9783),o=n(3218),l=n(1704),c=n(6390);e.exports=function e(t,n,u,h,d){t!==n&&a(n,function(a,l){if(d||(d=new r),o(a))s(t,n,l,u,e,h,d);else{var p=h?h(c(t,l),a,l+"",t,n,d):void 0;void 0===p&&(p=a),i(t,l,p)}},l)}},9783:(e,t,n)=>{var r=n(6556),i=n(4626),a=n(7133),s=n(278),o=n(8517),l=n(5694),c=n(1469),u=n(9246),h=n(4144),d=n(3560),p=n(3218),f=n(8630),m=n(6719),A=n(6390),g=n(3678);e.exports=function(e,t,n,v,y,b,_){var x=A(e,n),E=A(t,n),w=_.get(E);if(w)r(e,n,w);else{var M=b?b(x,E,n+"",e,t,_):void 0,S=void 0===M;if(S){var C=c(E),I=!C&&h(E),T=!C&&!I&&m(E);M=E,C||I||T?c(x)?M=x:u(x)?M=s(x):I?(S=!1,M=i(E,!0)):T?(S=!1,M=a(E,!0)):M=[]:f(E)||l(E)?(M=x,l(x)?M=g(x):p(x)&&!d(x)||(M=o(E))):S=!1}S&&(_.set(E,M),y(M,E,v,b,_),_.delete(E)),r(e,n,M)}}},2689:(e,t,n)=>{var r=n(9932),i=n(7786),a=n(7206),s=n(9199),o=n(1131),l=n(1717),c=n(5022),u=n(6557),h=n(1469);e.exports=function(e,t,n){t=t.length?r(t,function(e){return h(e)?function(t){return i(t,1===e.length?e[0]:e)}:e}):[u];var d=-1;t=r(t,l(a));var p=s(e,function(e,n,i){return{criteria:r(t,function(t){return t(e)}),index:++d,value:e}});return o(p,function(e,t){return c(e,t,n)})}},371:e=>{e.exports=function(e){return function(t){return null==t?void 0:t[e]}}},9152:(e,t,n)=>{var r=n(7786);e.exports=function(e){return function(t){return r(t,e)}}},5976:(e,t,n)=>{var r=n(6557),i=n(5357),a=n(61);e.exports=function(e,t){return a(i(e,t,r),e+"")}},8045:(e,t,n)=>{var r=n(6557),i=n(9250),a=i?function(e,t){return i.set(e,t),e}:r;e.exports=a},6560:(e,t,n)=>{var r=n(5703),i=n(8777),a=n(6557),s=i?function(e,t){return i(e,"toString",{configurable:!0,enumerable:!1,value:r(t),writable:!0})}:a;e.exports=s},1131:e=>{e.exports=function(e,t){var n=e.length;for(e.sort(t);n--;)e[n]=e[n].value;return e}},2545:e=>{e.exports=function(e,t){for(var n=-1,r=Array(e);++n{var r=n(2705),i=n(9932),a=n(1469),s=n(3448),o=r?r.prototype:void 0,l=o?o.toString:void 0;e.exports=function e(t){if("string"==typeof t)return t;if(a(t))return i(t,e)+"";if(s(t))return l?l.call(t):"";var n=t+"";return"0"==n&&1/t==-1/0?"-0":n}},7561:(e,t,n)=>{var r=n(7990),i=/^\s+/;e.exports=function(e){return e?e.slice(0,r(e)+1).replace(i,""):e}},1717:e=>{e.exports=function(e){return function(t){return e(t)}}},5652:(e,t,n)=>{var r=n(8668),i=n(7443),a=n(1196),s=n(4757),o=n(3593),l=n(1814);e.exports=function(e,t,n){var c=-1,u=i,h=e.length,d=!0,p=[],f=p;if(n)d=!1,u=a;else if(h>=200){var m=t?null:o(e);if(m)return l(m);d=!1,u=s,f=new r}else f=t?[]:p;e:for(;++c{e.exports=function(e,t){return e.has(t)}},4290:(e,t,n)=>{var r=n(6557);e.exports=function(e){return"function"==typeof e?e:r}},1811:(e,t,n)=>{var r=n(1469),i=n(5403),a=n(5514),s=n(9833);e.exports=function(e,t){return r(e)?e:i(e,t)?[e]:a(s(e))}},4318:(e,t,n)=>{var r=n(1149);e.exports=function(e){var t=new e.constructor(e.byteLength);return new r(t).set(new r(e)),t}},4626:(e,t,n)=>{e=n.nmd(e);var r=n(5639),i=t&&!t.nodeType&&t,a=i&&e&&!e.nodeType&&e,s=a&&a.exports===i?r.Buffer:void 0,o=s?s.allocUnsafe:void 0;e.exports=function(e,t){if(t)return e.slice();var n=e.length,r=o?o(n):new e.constructor(n);return e.copy(r),r}},7157:(e,t,n)=>{var r=n(4318);e.exports=function(e,t){var n=t?r(e.buffer):e.buffer;return new e.constructor(n,e.byteOffset,e.byteLength)}},3147:e=>{var t=/\w*$/;e.exports=function(e){var n=new e.constructor(e.source,t.exec(e));return n.lastIndex=e.lastIndex,n}},419:(e,t,n)=>{var r=n(2705),i=r?r.prototype:void 0,a=i?i.valueOf:void 0;e.exports=function(e){return a?Object(a.call(e)):{}}},7133:(e,t,n)=>{var r=n(4318);e.exports=function(e,t){var n=t?r(e.buffer):e.buffer;return new e.constructor(n,e.byteOffset,e.length)}},6393:(e,t,n)=>{var r=n(3448);e.exports=function(e,t){if(e!==t){var n=void 0!==e,i=null===e,a=e==e,s=r(e),o=void 0!==t,l=null===t,c=t==t,u=r(t);if(!l&&!u&&!s&&e>t||s&&o&&c&&!l&&!u||i&&o&&c||!n&&c||!a)return 1;if(!i&&!s&&!u&&e{var r=n(6393);e.exports=function(e,t,n){for(var i=-1,a=e.criteria,s=t.criteria,o=a.length,l=n.length;++i=l?c:c*("desc"==n[i]?-1:1)}return e.index-t.index}},2157:e=>{var t=Math.max;e.exports=function(e,n,r,i){for(var a=-1,s=e.length,o=r.length,l=-1,c=n.length,u=t(s-o,0),h=Array(c+u),d=!i;++l{var t=Math.max;e.exports=function(e,n,r,i){for(var a=-1,s=e.length,o=-1,l=r.length,c=-1,u=n.length,h=t(s-l,0),d=Array(h+u),p=!i;++a{e.exports=function(e,t){var n=-1,r=e.length;for(t||(t=Array(r));++n{var r=n(4865),i=n(9465);e.exports=function(e,t,n,a){var s=!n;n||(n={});for(var o=-1,l=t.length;++o{var r=n(8363),i=n(9551);e.exports=function(e,t){return r(e,i(e),t)}},1911:(e,t,n)=>{var r=n(8363),i=n(1442);e.exports=function(e,t){return r(e,i(e),t)}},4429:(e,t,n)=>{var r=n(5639)["__core-js_shared__"];e.exports=r},7991:e=>{e.exports=function(e,t){for(var n=e.length,r=0;n--;)e[n]===t&&++r;return r}},5189:(e,t,n)=>{var r=n(4174),i=n(1119),a=n(7206),s=n(1469);e.exports=function(e,t){return function(n,o){var l=s(n)?r:i,c=t?t():{};return l(n,e,a(o,2),c)}}},1463:(e,t,n)=>{var r=n(5976),i=n(6612);e.exports=function(e){return r(function(t,n){var r=-1,a=n.length,s=a>1?n[a-1]:void 0,o=a>2?n[2]:void 0;for(s=e.length>3&&"function"==typeof s?(a--,s):void 0,o&&i(n[0],n[1],o)&&(s=a<3?void 0:s,a=1),t=Object(t);++r{var r=n(8612);e.exports=function(e,t){return function(n,i){if(null==n)return n;if(!r(n))return e(n,i);for(var a=n.length,s=t?a:-1,o=Object(n);(t?s--:++s{e.exports=function(e){return function(t,n,r){for(var i=-1,a=Object(t),s=r(t),o=s.length;o--;){var l=s[e?o:++i];if(!1===n(a[l],l,a))break}return t}}},2402:(e,t,n)=>{var r=n(1774),i=n(5639);e.exports=function(e,t,n){var a=1&t,s=r(e);return function t(){return(this&&this!==i&&this instanceof t?s:e).apply(a?n:this,arguments)}}},1774:(e,t,n)=>{var r=n(3118),i=n(3218);e.exports=function(e){return function(){var t=arguments;switch(t.length){case 0:return new e;case 1:return new e(t[0]);case 2:return new e(t[0],t[1]);case 3:return new e(t[0],t[1],t[2]);case 4:return new e(t[0],t[1],t[2],t[3]);case 5:return new e(t[0],t[1],t[2],t[3],t[4]);case 6:return new e(t[0],t[1],t[2],t[3],t[4],t[5]);case 7:return new e(t[0],t[1],t[2],t[3],t[4],t[5],t[6])}var n=r(e.prototype),a=e.apply(n,t);return i(a)?a:n}}},6347:(e,t,n)=>{var r=n(6874),i=n(1774),a=n(6935),s=n(4487),o=n(893),l=n(6460),c=n(5639);e.exports=function(e,t,n){var u=i(e);return function i(){for(var h=arguments.length,d=Array(h),p=h,f=o(i);p--;)d[p]=arguments[p];var m=h<3&&d[0]!==f&&d[h-1]!==f?[]:l(d,f);return(h-=m.length){var r=n(2157),i=n(4054),a=n(7991),s=n(1774),o=n(4487),l=n(893),c=n(451),u=n(6460),h=n(5639);e.exports=function e(t,n,d,p,f,m,A,g,v,y){var b=128&n,_=1&n,x=2&n,E=24&n,w=512&n,M=x?void 0:s(t);return function S(){for(var C=arguments.length,I=Array(C),T=C;T--;)I[T]=arguments[T];if(E)var B=l(S),R=a(I,B);if(p&&(I=r(I,p,f,E)),m&&(I=i(I,m,A,E)),C-=R,E&&C1&&I.reverse(),b&&v{var r=n(6874),i=n(1774),a=n(5639);e.exports=function(e,t,n,s){var o=1&t,l=i(e);return function t(){for(var i=-1,c=arguments.length,u=-1,h=s.length,d=Array(h+c),p=this&&this!==a&&this instanceof t?l:e;++u{var r=n(6528),i=n(258),a=n(9255);e.exports=function(e,t,n,s,o,l,c,u,h,d){var p=8&t;t|=p?32:64,4&(t&=~(p?64:32))||(t&=-4);var f=[e,t,o,p?l:void 0,p?c:void 0,p?void 0:l,p?void 0:c,u,h,d],m=n.apply(void 0,f);return r(e)&&i(m,f),m.placeholder=s,a(m,e,t)}},3593:(e,t,n)=>{var r=n(8525),i=n(308),a=n(1814),s=r&&1/a(new r([,-0]))[1]==1/0?function(e){return new r(e)}:i;e.exports=s},7727:(e,t,n)=>{var r=n(8045),i=n(2402),a=n(6347),s=n(6935),o=n(4375),l=n(6833),c=n(3833),u=n(258),h=n(9255),d=n(554),p=Math.max;e.exports=function(e,t,n,f,m,A,g,v){var y=2&t;if(!y&&"function"!=typeof e)throw new TypeError("Expected a function");var b=f?f.length:0;if(b||(t&=-97,f=m=void 0),g=void 0===g?g:p(d(g),0),v=void 0===v?v:d(v),b-=m?m.length:0,64&t){var _=f,x=m;f=m=void 0}var E=y?void 0:l(e),w=[e,t,n,f,m,_,x,A,g,v];if(E&&c(w,E),e=w[0],t=w[1],n=w[2],f=w[3],m=w[4],!(v=w[9]=void 0===w[9]?y?0:e.length:p(w[9]-b,0))&&24&t&&(t&=-25),t&&1!=t)M=8==t||16==t?a(e,t,v):32!=t&&33!=t||m.length?s.apply(void 0,w):o(e,t,n,f);else var M=i(e,t,n);return h((E?r:u)(M,w),e,t)}},8777:(e,t,n)=>{var r=n(852),i=function(){try{var e=r(Object,"defineProperty");return e({},"",{}),e}catch(e){}}();e.exports=i},7114:(e,t,n)=>{var r=n(8668),i=n(2908),a=n(4757);e.exports=function(e,t,n,s,o,l){var c=1&n,u=e.length,h=t.length;if(u!=h&&!(c&&h>u))return!1;var d=l.get(e),p=l.get(t);if(d&&p)return d==t&&p==e;var f=-1,m=!0,A=2&n?new r:void 0;for(l.set(e,t),l.set(t,e);++f{var r=n(2705),i=n(1149),a=n(7813),s=n(7114),o=n(8776),l=n(1814),c=r?r.prototype:void 0,u=c?c.valueOf:void 0;e.exports=function(e,t,n,r,c,h,d){switch(n){case"[object DataView]":if(e.byteLength!=t.byteLength||e.byteOffset!=t.byteOffset)return!1;e=e.buffer,t=t.buffer;case"[object ArrayBuffer]":return!(e.byteLength!=t.byteLength||!h(new i(e),new i(t)));case"[object Boolean]":case"[object Date]":case"[object Number]":return a(+e,+t);case"[object Error]":return e.name==t.name&&e.message==t.message;case"[object RegExp]":case"[object String]":return e==t+"";case"[object Map]":var p=o;case"[object Set]":var f=1&r;if(p||(p=l),e.size!=t.size&&!f)return!1;var m=d.get(e);if(m)return m==t;r|=2,d.set(e,t);var A=s(p(e),p(t),r,c,h,d);return d.delete(e),A;case"[object Symbol]":if(u)return u.call(e)==u.call(t)}return!1}},6096:(e,t,n)=>{var r=n(8234),i=Object.prototype.hasOwnProperty;e.exports=function(e,t,n,a,s,o){var l=1&n,c=r(e),u=c.length;if(u!=r(t).length&&!l)return!1;for(var h=u;h--;){var d=c[h];if(!(l?d in t:i.call(t,d)))return!1}var p=o.get(e),f=o.get(t);if(p&&f)return p==t&&f==e;var m=!0;o.set(e,t),o.set(t,e);for(var A=l;++h{var r="object"==typeof n.g&&n.g&&n.g.Object===Object&&n.g;e.exports=r},8234:(e,t,n)=>{var r=n(8866),i=n(9551),a=n(3674);e.exports=function(e){return r(e,a,i)}},6904:(e,t,n)=>{var r=n(8866),i=n(1442),a=n(1704);e.exports=function(e){return r(e,a,i)}},6833:(e,t,n)=>{var r=n(9250),i=n(308),a=r?function(e){return r.get(e)}:i;e.exports=a},7658:(e,t,n)=>{var r=n(2060),i=Object.prototype.hasOwnProperty;e.exports=function(e){for(var t=e.name+"",n=r[t],a=i.call(r,t)?n.length:0;a--;){var s=n[a],o=s.func;if(null==o||o==e)return s.name}return t}},893:e=>{e.exports=function(e){return e.placeholder}},5050:(e,t,n)=>{var r=n(7019);e.exports=function(e,t){var n=e.__data__;return r(t)?n["string"==typeof t?"string":"hash"]:n.map}},1499:(e,t,n)=>{var r=n(9162),i=n(3674);e.exports=function(e){for(var t=i(e),n=t.length;n--;){var a=t[n],s=e[a];t[n]=[a,s,r(s)]}return t}},852:(e,t,n)=>{var r=n(8458),i=n(7801);e.exports=function(e,t){var n=i(e,t);return r(n)?n:void 0}},5924:(e,t,n)=>{var r=n(5569)(Object.getPrototypeOf,Object);e.exports=r},9607:(e,t,n)=>{var r=n(2705),i=Object.prototype,a=i.hasOwnProperty,s=i.toString,o=r?r.toStringTag:void 0;e.exports=function(e){var t=a.call(e,o),n=e[o];try{e[o]=void 0;var r=!0}catch(e){}var i=s.call(e);return r&&(t?e[o]=n:delete e[o]),i}},9551:(e,t,n)=>{var r=n(4963),i=n(479),a=Object.prototype.propertyIsEnumerable,s=Object.getOwnPropertySymbols,o=s?function(e){return null==e?[]:(e=Object(e),r(s(e),function(t){return a.call(e,t)}))}:i;e.exports=o},1442:(e,t,n)=>{var r=n(2488),i=n(5924),a=n(9551),s=n(479),o=Object.getOwnPropertySymbols?function(e){for(var t=[];e;)r(t,a(e)),e=i(e);return t}:s;e.exports=o},4160:(e,t,n)=>{var r=n(8552),i=n(7071),a=n(3818),s=n(8525),o=n(577),l=n(4239),c=n(346),u="[object Map]",h="[object Promise]",d="[object Set]",p="[object WeakMap]",f="[object DataView]",m=c(r),A=c(i),g=c(a),v=c(s),y=c(o),b=l;(r&&b(new r(new ArrayBuffer(1)))!=f||i&&b(new i)!=u||a&&b(a.resolve())!=h||s&&b(new s)!=d||o&&b(new o)!=p)&&(b=function(e){var t=l(e),n="[object Object]"==t?e.constructor:void 0,r=n?c(n):"";if(r)switch(r){case m:return f;case A:return u;case g:return h;case v:return d;case y:return p}return t}),e.exports=b},7801:e=>{e.exports=function(e,t){return null==e?void 0:e[t]}},8775:e=>{var t=/\{\n\/\* \[wrapped with (.+)\] \*/,n=/,? & /;e.exports=function(e){var r=e.match(t);return r?r[1].split(n):[]}},222:(e,t,n)=>{var r=n(1811),i=n(5694),a=n(1469),s=n(5776),o=n(1780),l=n(327);e.exports=function(e,t,n){for(var c=-1,u=(t=r(t,e)).length,h=!1;++c{var r=n(4536);e.exports=function(){this.__data__=r?r(null):{},this.size=0}},401:e=>{e.exports=function(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t}},7667:(e,t,n)=>{var r=n(4536),i=Object.prototype.hasOwnProperty;e.exports=function(e){var t=this.__data__;if(r){var n=t[e];return"__lodash_hash_undefined__"===n?void 0:n}return i.call(t,e)?t[e]:void 0}},1327:(e,t,n)=>{var r=n(4536),i=Object.prototype.hasOwnProperty;e.exports=function(e){var t=this.__data__;return r?void 0!==t[e]:i.call(t,e)}},1866:(e,t,n)=>{var r=n(4536);e.exports=function(e,t){var n=this.__data__;return this.size+=this.has(e)?0:1,n[e]=r&&void 0===t?"__lodash_hash_undefined__":t,this}},3824:e=>{var t=Object.prototype.hasOwnProperty;e.exports=function(e){var n=e.length,r=new e.constructor(n);return n&&"string"==typeof e[0]&&t.call(e,"index")&&(r.index=e.index,r.input=e.input),r}},9148:(e,t,n)=>{var r=n(4318),i=n(7157),a=n(3147),s=n(419),o=n(7133);e.exports=function(e,t,n){var l=e.constructor;switch(t){case"[object ArrayBuffer]":return r(e);case"[object Boolean]":case"[object Date]":return new l(+e);case"[object DataView]":return i(e,n);case"[object Float32Array]":case"[object Float64Array]":case"[object Int8Array]":case"[object Int16Array]":case"[object Int32Array]":case"[object Uint8Array]":case"[object Uint8ClampedArray]":case"[object Uint16Array]":case"[object Uint32Array]":return o(e,n);case"[object Map]":case"[object Set]":return new l;case"[object Number]":case"[object String]":return new l(e);case"[object RegExp]":return a(e);case"[object Symbol]":return s(e)}}},8517:(e,t,n)=>{var r=n(3118),i=n(5924),a=n(5726);e.exports=function(e){return"function"!=typeof e.constructor||a(e)?{}:r(i(e))}},3112:e=>{var t=/\{(?:\n\/\* \[wrapped with .+\] \*\/)?\n?/;e.exports=function(e,n){var r=n.length;if(!r)return e;var i=r-1;return n[i]=(r>1?"& ":"")+n[i],n=n.join(r>2?", ":" "),e.replace(t,"{\n/* [wrapped with "+n+"] */\n")}},7285:(e,t,n)=>{var r=n(2705),i=n(5694),a=n(1469),s=r?r.isConcatSpreadable:void 0;e.exports=function(e){return a(e)||i(e)||!!(s&&e&&e[s])}},5776:e=>{var t=/^(?:0|[1-9]\d*)$/;e.exports=function(e,n){var r=typeof e;return!!(n=null==n?9007199254740991:n)&&("number"==r||"symbol"!=r&&t.test(e))&&e>-1&&e%1==0&&e{var r=n(7813),i=n(8612),a=n(5776),s=n(3218);e.exports=function(e,t,n){if(!s(n))return!1;var o=typeof t;return!!("number"==o?i(n)&&a(t,n.length):"string"==o&&t in n)&&r(n[t],e)}},5403:(e,t,n)=>{var r=n(1469),i=n(3448),a=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,s=/^\w*$/;e.exports=function(e,t){if(r(e))return!1;var n=typeof e;return!("number"!=n&&"symbol"!=n&&"boolean"!=n&&null!=e&&!i(e))||s.test(e)||!a.test(e)||null!=t&&e in Object(t)}},7019:e=>{e.exports=function(e){var t=typeof e;return"string"==t||"number"==t||"symbol"==t||"boolean"==t?"__proto__"!==e:null===e}},6528:(e,t,n)=>{var r=n(6425),i=n(6833),a=n(7658),s=n(8111);e.exports=function(e){var t=a(e),n=s[t];if("function"!=typeof n||!(t in r.prototype))return!1;if(e===n)return!0;var o=i(n);return!!o&&e===o[0]}},5346:(e,t,n)=>{var r,i=n(4429),a=(r=/[^.]+$/.exec(i&&i.keys&&i.keys.IE_PROTO||""))?"Symbol(src)_1."+r:"";e.exports=function(e){return!!a&&a in e}},5726:e=>{var t=Object.prototype;e.exports=function(e){var n=e&&e.constructor;return e===("function"==typeof n&&n.prototype||t)}},9162:(e,t,n)=>{var r=n(3218);e.exports=function(e){return e==e&&!r(e)}},7040:e=>{e.exports=function(){this.__data__=[],this.size=0}},4125:(e,t,n)=>{var r=n(8470),i=Array.prototype.splice;e.exports=function(e){var t=this.__data__,n=r(t,e);return!(n<0||(n==t.length-1?t.pop():i.call(t,n,1),--this.size,0))}},2117:(e,t,n)=>{var r=n(8470);e.exports=function(e){var t=this.__data__,n=r(t,e);return n<0?void 0:t[n][1]}},7518:(e,t,n)=>{var r=n(8470);e.exports=function(e){return r(this.__data__,e)>-1}},4705:(e,t,n)=>{var r=n(8470);e.exports=function(e,t){var n=this.__data__,i=r(n,e);return i<0?(++this.size,n.push([e,t])):n[i][1]=t,this}},4785:(e,t,n)=>{var r=n(1989),i=n(8407),a=n(7071);e.exports=function(){this.size=0,this.__data__={hash:new r,map:new(a||i),string:new r}}},1285:(e,t,n)=>{var r=n(5050);e.exports=function(e){var t=r(this,e).delete(e);return this.size-=t?1:0,t}},6e3:(e,t,n)=>{var r=n(5050);e.exports=function(e){return r(this,e).get(e)}},9916:(e,t,n)=>{var r=n(5050);e.exports=function(e){return r(this,e).has(e)}},5265:(e,t,n)=>{var r=n(5050);e.exports=function(e,t){var n=r(this,e),i=n.size;return n.set(e,t),this.size+=n.size==i?0:1,this}},8776:e=>{e.exports=function(e){var t=-1,n=Array(e.size);return e.forEach(function(e,r){n[++t]=[r,e]}),n}},2634:e=>{e.exports=function(e,t){return function(n){return null!=n&&n[e]===t&&(void 0!==t||e in Object(n))}}},4523:(e,t,n)=>{var r=n(8306);e.exports=function(e){var t=r(e,function(e){return 500===n.size&&n.clear(),e}),n=t.cache;return t}},3833:(e,t,n)=>{var r=n(2157),i=n(4054),a=n(6460),s="__lodash_placeholder__",o=Math.min;e.exports=function(e,t){var n=e[1],l=t[1],c=n|l,u=c<131,h=128==l&&8==n||128==l&&256==n&&e[7].length<=t[8]||384==l&&t[7].length<=t[8]&&8==n;if(!u&&!h)return e;1&l&&(e[2]=t[2],c|=1&n?0:4);var d=t[3];if(d){var p=e[3];e[3]=p?r(p,d,t[4]):d,e[4]=p?a(e[3],s):t[4]}return(d=t[5])&&(p=e[5],e[5]=p?i(p,d,t[6]):d,e[6]=p?a(e[5],s):t[6]),(d=t[7])&&(e[7]=d),128&l&&(e[8]=null==e[8]?t[8]:o(e[8],t[8])),null==e[9]&&(e[9]=t[9]),e[0]=t[0],e[1]=c,e}},9250:(e,t,n)=>{var r=n(577),i=r&&new r;e.exports=i},4536:(e,t,n)=>{var r=n(852)(Object,"create");e.exports=r},6916:(e,t,n)=>{var r=n(5569)(Object.keys,Object);e.exports=r},3498:e=>{e.exports=function(e){var t=[];if(null!=e)for(var n in Object(e))t.push(n);return t}},1167:(e,t,n)=>{e=n.nmd(e);var r=n(1957),i=t&&!t.nodeType&&t,a=i&&e&&!e.nodeType&&e,s=a&&a.exports===i&&r.process,o=function(){try{return a&&a.require&&a.require("util").types||s&&s.binding&&s.binding("util")}catch(e){}}();e.exports=o},2333:e=>{var t=Object.prototype.toString;e.exports=function(e){return t.call(e)}},5569:e=>{e.exports=function(e,t){return function(n){return e(t(n))}}},5357:(e,t,n)=>{var r=n(6874),i=Math.max;e.exports=function(e,t,n){return t=i(void 0===t?e.length-1:t,0),function(){for(var a=arguments,s=-1,o=i(a.length-t,0),l=Array(o);++s{e.exports={}},451:(e,t,n)=>{var r=n(278),i=n(5776),a=Math.min;e.exports=function(e,t){for(var n=e.length,s=a(t.length,n),o=r(e);s--;){var l=t[s];e[s]=i(l,n)?o[l]:void 0}return e}},6460:e=>{var t="__lodash_placeholder__";e.exports=function(e,n){for(var r=-1,i=e.length,a=0,s=[];++r{var r=n(1957),i="object"==typeof self&&self&&self.Object===Object&&self,a=r||i||Function("return this")();e.exports=a},6390:e=>{e.exports=function(e,t){if(("constructor"!==t||"function"!=typeof e[t])&&"__proto__"!=t)return e[t]}},619:e=>{e.exports=function(e){return this.__data__.set(e,"__lodash_hash_undefined__"),this}},2385:e=>{e.exports=function(e){return this.__data__.has(e)}},258:(e,t,n)=>{var r=n(8045),i=n(1275)(r);e.exports=i},1814:e=>{e.exports=function(e){var t=-1,n=Array(e.size);return e.forEach(function(e){n[++t]=e}),n}},61:(e,t,n)=>{var r=n(6560),i=n(1275)(r);e.exports=i},9255:(e,t,n)=>{var r=n(8775),i=n(3112),a=n(61),s=n(7241);e.exports=function(e,t,n){var o=t+"";return a(e,i(o,s(r(o),n)))}},1275:e=>{var t=Date.now;e.exports=function(e){var n=0,r=0;return function(){var i=t(),a=16-(i-r);if(r=i,a>0){if(++n>=800)return arguments[0]}else n=0;return e.apply(void 0,arguments)}}},7465:(e,t,n)=>{var r=n(8407);e.exports=function(){this.__data__=new r,this.size=0}},3779:e=>{e.exports=function(e){var t=this.__data__,n=t.delete(e);return this.size=t.size,n}},7599:e=>{e.exports=function(e){return this.__data__.get(e)}},4758:e=>{e.exports=function(e){return this.__data__.has(e)}},4309:(e,t,n)=>{var r=n(8407),i=n(7071),a=n(3369);e.exports=function(e,t){var n=this.__data__;if(n instanceof r){var s=n.__data__;if(!i||s.length<199)return s.push([e,t]),this.size=++n.size,this;n=this.__data__=new a(s)}return n.set(e,t),this.size=n.size,this}},2351:e=>{e.exports=function(e,t,n){for(var r=n-1,i=e.length;++r{var r=n(4523),i=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,a=/\\(\\)?/g,s=r(function(e){var t=[];return 46===e.charCodeAt(0)&&t.push(""),e.replace(i,function(e,n,r,i){t.push(r?i.replace(a,"$1"):n||e)}),t});e.exports=s},327:(e,t,n)=>{var r=n(3448);e.exports=function(e){if("string"==typeof e||r(e))return e;var t=e+"";return"0"==t&&1/e==-1/0?"-0":t}},346:e=>{var t=Function.prototype.toString;e.exports=function(e){if(null!=e){try{return t.call(e)}catch(e){}try{return e+""}catch(e){}}return""}},7990:e=>{var t=/\s/;e.exports=function(e){for(var n=e.length;n--&&t.test(e.charAt(n)););return n}},7241:(e,t,n)=>{var r=n(7412),i=n(7443),a=[["ary",128],["bind",1],["bindKey",2],["curry",8],["curryRight",16],["flip",512],["partial",32],["partialRight",64],["rearg",256]];e.exports=function(e,t){return r(a,function(n){var r="_."+n[0];t&n[1]&&!i(e,r)&&e.push(r)}),e.sort()}},1913:(e,t,n)=>{var r=n(6425),i=n(7548),a=n(278);e.exports=function(e){if(e instanceof r)return e.clone();var t=new i(e.__wrapped__,e.__chain__);return t.__actions__=a(e.__actions__),t.__index__=e.__index__,t.__values__=e.__values__,t}},361:(e,t,n)=>{var r=n(5990);e.exports=function(e){return r(e,5)}},9693:e=>{e.exports=function(e){for(var t=-1,n=null==e?0:e.length,r=0,i=[];++t{e.exports=function(e){return function(){return e}}},3279:(e,t,n)=>{var r=n(3218),i=n(7771),a=n(4841),s=Math.max,o=Math.min;e.exports=function(e,t,n){var l,c,u,h,d,p,f=0,m=!1,A=!1,g=!0;if("function"!=typeof e)throw new TypeError("Expected a function");function v(t){var n=l,r=c;return l=c=void 0,f=t,h=e.apply(r,n)}function y(e){var n=e-p;return void 0===p||n>=t||n<0||A&&e-f>=u}function b(){var e=i();if(y(e))return _(e);d=setTimeout(b,function(e){var n=t-(e-p);return A?o(n,u-(e-f)):n}(e))}function _(e){return d=void 0,g&&l?v(e):(l=c=void 0,h)}function x(){var e=i(),n=y(e);if(l=arguments,c=this,p=e,n){if(void 0===d)return function(e){return f=e,d=setTimeout(b,t),m?v(e):h}(p);if(A)return clearTimeout(d),d=setTimeout(b,t),v(p)}return void 0===d&&(d=setTimeout(b,t)),h}return t=a(t)||0,r(n)&&(m=!!n.leading,u=(A="maxWait"in n)?s(a(n.maxWait)||0,t):u,g="trailing"in n?!!n.trailing:g),x.cancel=function(){void 0!==d&&clearTimeout(d),f=0,l=p=c=d=void 0},x.flush=function(){return void 0===d?h:_(i())},x}},1966:(e,t,n)=>{var r=n(731),i=n(1078),a=n(5976),s=n(9246),o=a(function(e,t){return s(e)?r(e,i(t,1,s,!0)):[]});e.exports=o},7813:e=>{e.exports=function(e,t){return e===t||e!=e&&t!=t}},5564:(e,t,n)=>{var r=n(1078);e.exports=function(e){return null!=e&&e.length?r(e,1):[]}},2525:(e,t,n)=>{var r=n(7816),i=n(4290);e.exports=function(e,t){return e&&r(e,i(t))}},7361:(e,t,n)=>{var r=n(7786);e.exports=function(e,t,n){var i=null==e?void 0:r(e,t);return void 0===i?n:i}},7739:(e,t,n)=>{var r=n(9465),i=n(5189),a=Object.prototype.hasOwnProperty,s=i(function(e,t,n){a.call(e,n)?e[n].push(t):r(e,n,[t])});e.exports=s},8721:(e,t,n)=>{var r=n(8565),i=n(222);e.exports=function(e,t){return null!=e&&i(e,t,r)}},9095:(e,t,n)=>{var r=n(13),i=n(222);e.exports=function(e,t){return null!=e&&i(e,t,r)}},6557:e=>{e.exports=function(e){return e}},5694:(e,t,n)=>{var r=n(9454),i=n(7005),a=Object.prototype,s=a.hasOwnProperty,o=a.propertyIsEnumerable,l=r(function(){return arguments}())?r:function(e){return i(e)&&s.call(e,"callee")&&!o.call(e,"callee")};e.exports=l},1469:e=>{var t=Array.isArray;e.exports=t},8612:(e,t,n)=>{var r=n(3560),i=n(1780);e.exports=function(e){return null!=e&&i(e.length)&&!r(e)}},9246:(e,t,n)=>{var r=n(8612),i=n(7005);e.exports=function(e){return i(e)&&r(e)}},4144:(e,t,n)=>{e=n.nmd(e);var r=n(5639),i=n(5062),a=t&&!t.nodeType&&t,s=a&&e&&!e.nodeType&&e,o=s&&s.exports===a?r.Buffer:void 0,l=(o?o.isBuffer:void 0)||i;e.exports=l},1609:(e,t,n)=>{var r=n(280),i=n(4160),a=n(5694),s=n(1469),o=n(8612),l=n(4144),c=n(5726),u=n(6719),h=Object.prototype.hasOwnProperty;e.exports=function(e){if(null==e)return!0;if(o(e)&&(s(e)||"string"==typeof e||"function"==typeof e.splice||l(e)||u(e)||a(e)))return!e.length;var t=i(e);if("[object Map]"==t||"[object Set]"==t)return!e.size;if(c(e))return!r(e).length;for(var n in e)if(h.call(e,n))return!1;return!0}},3560:(e,t,n)=>{var r=n(4239),i=n(3218);e.exports=function(e){if(!i(e))return!1;var t=r(e);return"[object Function]"==t||"[object GeneratorFunction]"==t||"[object AsyncFunction]"==t||"[object Proxy]"==t}},1780:e=>{e.exports=function(e){return"number"==typeof e&&e>-1&&e%1==0&&e<=9007199254740991}},6688:(e,t,n)=>{var r=n(5588),i=n(1717),a=n(1167),s=a&&a.isMap,o=s?i(s):r;e.exports=o},4293:e=>{e.exports=function(e){return null==e}},1763:(e,t,n)=>{var r=n(4239),i=n(7005);e.exports=function(e){return"number"==typeof e||i(e)&&"[object Number]"==r(e)}},3218:e=>{e.exports=function(e){var t=typeof e;return null!=e&&("object"==t||"function"==t)}},7005:e=>{e.exports=function(e){return null!=e&&"object"==typeof e}},8630:(e,t,n)=>{var r=n(4239),i=n(5924),a=n(7005),s=Function.prototype,o=Object.prototype,l=s.toString,c=o.hasOwnProperty,u=l.call(Object);e.exports=function(e){if(!a(e)||"[object Object]"!=r(e))return!1;var t=i(e);if(null===t)return!0;var n=c.call(t,"constructor")&&t.constructor;return"function"==typeof n&&n instanceof n&&l.call(n)==u}},2928:(e,t,n)=>{var r=n(9221),i=n(1717),a=n(1167),s=a&&a.isSet,o=s?i(s):r;e.exports=o},7037:(e,t,n)=>{var r=n(4239),i=n(1469),a=n(7005);e.exports=function(e){return"string"==typeof e||!i(e)&&a(e)&&"[object String]"==r(e)}},3448:(e,t,n)=>{var r=n(4239),i=n(7005);e.exports=function(e){return"symbol"==typeof e||i(e)&&"[object Symbol]"==r(e)}},6719:(e,t,n)=>{var r=n(8749),i=n(1717),a=n(1167),s=a&&a.isTypedArray,o=s?i(s):r;e.exports=o},3674:(e,t,n)=>{var r=n(4636),i=n(280),a=n(8612);e.exports=function(e){return a(e)?r(e):i(e)}},1704:(e,t,n)=>{var r=n(4636),i=n(313),a=n(8612);e.exports=function(e){return a(e)?r(e,!0):i(e)}},3061:e=>{e.exports=function(e){var t=null==e?0:e.length;return t?e[t-1]:void 0}},6486:function(e,t,n){var r; /** * @license * Lodash * Copyright OpenJS Foundation and other contributors * Released under MIT license * Based on Underscore.js 1.8.3 * Copyright Jeremy Ashkenas, DocumentCloud and Investigative Reporters & Editors */e=n.nmd(e),function(){var i,a="Expected a function",s="__lodash_hash_undefined__",o="__lodash_placeholder__",l=32,c=128,u=1/0,h=9007199254740991,d=NaN,p=4294967295,f=[["ary",c],["bind",1],["bindKey",2],["curry",8],["curryRight",16],["flip",512],["partial",l],["partialRight",64],["rearg",256]],m="[object Arguments]",A="[object Array]",g="[object Boolean]",v="[object Date]",y="[object Error]",b="[object Function]",_="[object GeneratorFunction]",x="[object Map]",E="[object Number]",w="[object Object]",M="[object Promise]",S="[object RegExp]",C="[object Set]",I="[object String]",T="[object Symbol]",B="[object WeakMap]",R="[object ArrayBuffer]",P="[object DataView]",L="[object Float32Array]",O="[object Float64Array]",U="[object Int8Array]",D="[object Int16Array]",F="[object Int32Array]",N="[object Uint8Array]",k="[object Uint8ClampedArray]",Q="[object Uint16Array]",G="[object Uint32Array]",V=/\b__p \+= '';/g,z=/\b(__p \+=) '' \+/g,H=/(__e\(.*?\)|\b__t\)) \+\n'';/g,j=/&(?:amp|lt|gt|quot|#39);/g,W=/[&<>"']/g,q=RegExp(j.source),X=RegExp(W.source),Y=/<%-([\s\S]+?)%>/g,K=/<%([\s\S]+?)%>/g,J=/<%=([\s\S]+?)%>/g,Z=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,$=/^\w*$/,ee=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,te=/[\\^$.*+?()[\]{}|]/g,ne=RegExp(te.source),re=/^\s+/,ie=/\s/,ae=/\{(?:\n\/\* \[wrapped with .+\] \*\/)?\n?/,se=/\{\n\/\* \[wrapped with (.+)\] \*/,oe=/,? & /,le=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g,ce=/[()=,{}\[\]\/\s]/,ue=/\\(\\)?/g,he=/\$\{([^\\}]*(?:\\.[^\\}]*)*)\}/g,de=/\w*$/,pe=/^[-+]0x[0-9a-f]+$/i,fe=/^0b[01]+$/i,me=/^\[object .+?Constructor\]$/,Ae=/^0o[0-7]+$/i,ge=/^(?:0|[1-9]\d*)$/,ve=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,ye=/($^)/,be=/['\n\r\u2028\u2029\\]/g,_e="\\ud800-\\udfff",xe="\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff",Ee="\\u2700-\\u27bf",we="a-z\\xdf-\\xf6\\xf8-\\xff",Me="A-Z\\xc0-\\xd6\\xd8-\\xde",Se="\\ufe0e\\ufe0f",Ce="\\xac\\xb1\\xd7\\xf7\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf\\u2000-\\u206f \\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",Ie="["+_e+"]",Te="["+Ce+"]",Be="["+xe+"]",Re="\\d+",Pe="["+Ee+"]",Le="["+we+"]",Oe="[^"+_e+Ce+Re+Ee+we+Me+"]",Ue="\\ud83c[\\udffb-\\udfff]",De="[^"+_e+"]",Fe="(?:\\ud83c[\\udde6-\\uddff]){2}",Ne="[\\ud800-\\udbff][\\udc00-\\udfff]",ke="["+Me+"]",Qe="\\u200d",Ge="(?:"+Le+"|"+Oe+")",Ve="(?:"+ke+"|"+Oe+")",ze="(?:['’](?:d|ll|m|re|s|t|ve))?",He="(?:['’](?:D|LL|M|RE|S|T|VE))?",je="(?:"+Be+"|"+Ue+")?",We="["+Se+"]?",qe=We+je+"(?:"+Qe+"(?:"+[De,Fe,Ne].join("|")+")"+We+je+")*",Xe="(?:"+[Pe,Fe,Ne].join("|")+")"+qe,Ye="(?:"+[De+Be+"?",Be,Fe,Ne,Ie].join("|")+")",Ke=RegExp("['’]","g"),Je=RegExp(Be,"g"),Ze=RegExp(Ue+"(?="+Ue+")|"+Ye+qe,"g"),$e=RegExp([ke+"?"+Le+"+"+ze+"(?="+[Te,ke,"$"].join("|")+")",Ve+"+"+He+"(?="+[Te,ke+Ge,"$"].join("|")+")",ke+"?"+Ge+"+"+ze,ke+"+"+He,"\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])","\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])",Re,Xe].join("|"),"g"),et=RegExp("["+Qe+_e+xe+Se+"]"),tt=/[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/,nt=["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"],rt=-1,it={};it[L]=it[O]=it[U]=it[D]=it[F]=it[N]=it[k]=it[Q]=it[G]=!0,it[m]=it[A]=it[R]=it[g]=it[P]=it[v]=it[y]=it[b]=it[x]=it[E]=it[w]=it[S]=it[C]=it[I]=it[B]=!1;var at={};at[m]=at[A]=at[R]=at[P]=at[g]=at[v]=at[L]=at[O]=at[U]=at[D]=at[F]=at[x]=at[E]=at[w]=at[S]=at[C]=at[I]=at[T]=at[N]=at[k]=at[Q]=at[G]=!0,at[y]=at[b]=at[B]=!1;var st={"\\":"\\","'":"'","\n":"n","\r":"r","\u2028":"u2028","\u2029":"u2029"},ot=parseFloat,lt=parseInt,ct="object"==typeof n.g&&n.g&&n.g.Object===Object&&n.g,ut="object"==typeof self&&self&&self.Object===Object&&self,ht=ct||ut||Function("return this")(),dt=t&&!t.nodeType&&t,pt=dt&&e&&!e.nodeType&&e,ft=pt&&pt.exports===dt,mt=ft&&ct.process,At=function(){try{return pt&&pt.require&&pt.require("util").types||mt&&mt.binding&&mt.binding("util")}catch(e){}}(),gt=At&&At.isArrayBuffer,vt=At&&At.isDate,yt=At&&At.isMap,bt=At&&At.isRegExp,_t=At&&At.isSet,xt=At&&At.isTypedArray;function Et(e,t,n){switch(n.length){case 0:return e.call(t);case 1:return e.call(t,n[0]);case 2:return e.call(t,n[0],n[1]);case 3:return e.call(t,n[0],n[1],n[2])}return e.apply(t,n)}function wt(e,t,n,r){for(var i=-1,a=null==e?0:e.length;++i-1}function Bt(e,t,n){for(var r=-1,i=null==e?0:e.length;++r-1;);return n}function $t(e,t){for(var n=e.length;n--&&kt(t,e[n],0)>-1;);return n}var en=Ht({"À":"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"}),tn=Ht({"&":"&","<":"<",">":">",'"':""","'":"'"});function nn(e){return"\\"+st[e]}function rn(e){return et.test(e)}function an(e){var t=-1,n=Array(e.size);return e.forEach(function(e,r){n[++t]=[r,e]}),n}function sn(e,t){return function(n){return e(t(n))}}function on(e,t){for(var n=-1,r=e.length,i=0,a=[];++n",""":'"',"'":"'"}),pn=function e(t){var n,r=(t=null==t?ht:pn.defaults(ht.Object(),t,pn.pick(ht,nt))).Array,ie=t.Date,_e=t.Error,xe=t.Function,Ee=t.Math,we=t.Object,Me=t.RegExp,Se=t.String,Ce=t.TypeError,Ie=r.prototype,Te=xe.prototype,Be=we.prototype,Re=t["__core-js_shared__"],Pe=Te.toString,Le=Be.hasOwnProperty,Oe=0,Ue=(n=/[^.]+$/.exec(Re&&Re.keys&&Re.keys.IE_PROTO||""))?"Symbol(src)_1."+n:"",De=Be.toString,Fe=Pe.call(we),Ne=ht._,ke=Me("^"+Pe.call(Le).replace(te,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),Qe=ft?t.Buffer:i,Ge=t.Symbol,Ve=t.Uint8Array,ze=Qe?Qe.allocUnsafe:i,He=sn(we.getPrototypeOf,we),je=we.create,We=Be.propertyIsEnumerable,qe=Ie.splice,Xe=Ge?Ge.isConcatSpreadable:i,Ye=Ge?Ge.iterator:i,Ze=Ge?Ge.toStringTag:i,et=function(){try{var e=oa(we,"defineProperty");return e({},"",{}),e}catch(e){}}(),st=t.clearTimeout!==ht.clearTimeout&&t.clearTimeout,ct=ie&&ie.now!==ht.Date.now&&ie.now,ut=t.setTimeout!==ht.setTimeout&&t.setTimeout,dt=Ee.ceil,pt=Ee.floor,mt=we.getOwnPropertySymbols,At=Qe?Qe.isBuffer:i,Dt=t.isFinite,Ht=Ie.join,fn=sn(we.keys,we),mn=Ee.max,An=Ee.min,gn=ie.now,vn=t.parseInt,yn=Ee.random,bn=Ie.reverse,_n=oa(t,"DataView"),xn=oa(t,"Map"),En=oa(t,"Promise"),wn=oa(t,"Set"),Mn=oa(t,"WeakMap"),Sn=oa(we,"create"),Cn=Mn&&new Mn,In={},Tn=La(_n),Bn=La(xn),Rn=La(En),Pn=La(wn),Ln=La(Mn),On=Ge?Ge.prototype:i,Un=On?On.valueOf:i,Dn=On?On.toString:i;function Fn(e){if(Ks(e)&&!ks(e)&&!(e instanceof Gn)){if(e instanceof Qn)return e;if(Le.call(e,"__wrapped__"))return Oa(e)}return new Qn(e)}var Nn=function(){function e(){}return function(t){if(!Ys(t))return{};if(je)return je(t);e.prototype=t;var n=new e;return e.prototype=i,n}}();function kn(){}function Qn(e,t){this.__wrapped__=e,this.__actions__=[],this.__chain__=!!t,this.__index__=0,this.__values__=i}function Gn(e){this.__wrapped__=e,this.__actions__=[],this.__dir__=1,this.__filtered__=!1,this.__iteratees__=[],this.__takeCount__=p,this.__views__=[]}function Vn(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t=t?e:t)),e}function ar(e,t,n,r,a,s){var o,l=1&t,c=2&t,u=4&t;if(n&&(o=a?n(e,r,a,s):n(e)),o!==i)return o;if(!Ys(e))return e;var h=ks(e);if(h){if(o=function(e){var t=e.length,n=new e.constructor(t);return t&&"string"==typeof e[0]&&Le.call(e,"index")&&(n.index=e.index,n.input=e.input),n}(e),!l)return Mi(e,o)}else{var d=ua(e),p=d==b||d==_;if(zs(e))return yi(e,l);if(d==w||d==m||p&&!a){if(o=c||p?{}:da(e),!l)return c?function(e,t){return Si(e,ca(e),t)}(e,function(e,t){return e&&Si(t,Io(t),e)}(o,e)):function(e,t){return Si(e,la(e),t)}(e,tr(o,e))}else{if(!at[d])return a?e:{};o=function(e,t,n){var r,i=e.constructor;switch(t){case R:return bi(e);case g:case v:return new i(+e);case P:return function(e,t){var n=t?bi(e.buffer):e.buffer;return new e.constructor(n,e.byteOffset,e.byteLength)}(e,n);case L:case O:case U:case D:case F:case N:case k:case Q:case G:return _i(e,n);case x:return new i;case E:case I:return new i(e);case S:return function(e){var t=new e.constructor(e.source,de.exec(e));return t.lastIndex=e.lastIndex,t}(e);case C:return new i;case T:return r=e,Un?we(Un.call(r)):{}}}(e,d,l)}}s||(s=new Wn);var f=s.get(e);if(f)return f;s.set(e,o),to(e)?e.forEach(function(r){o.add(ar(r,t,n,r,e,s))}):Js(e)&&e.forEach(function(r,i){o.set(i,ar(r,t,n,i,e,s))});var A=h?i:(u?c?ea:$i:c?Io:Co)(e);return Mt(A||e,function(r,i){A&&(r=e[i=r]),Zn(o,i,ar(r,t,n,i,e,s))}),o}function sr(e,t,n){var r=n.length;if(null==e)return!r;for(e=we(e);r--;){var a=n[r],s=t[a],o=e[a];if(o===i&&!(a in e)||!s(o))return!1}return!0}function or(e,t,n){if("function"!=typeof e)throw new Ce(a);return Sa(function(){e.apply(i,n)},t)}function lr(e,t,n,r){var i=-1,a=Tt,s=!0,o=e.length,l=[],c=t.length;if(!o)return l;n&&(t=Rt(t,Yt(n))),r?(a=Bt,s=!1):t.length>=200&&(a=Jt,s=!1,t=new jn(t));e:for(;++i-1},zn.prototype.set=function(e,t){var n=this.__data__,r=$n(n,e);return r<0?(++this.size,n.push([e,t])):n[r][1]=t,this},Hn.prototype.clear=function(){this.size=0,this.__data__={hash:new Vn,map:new(xn||zn),string:new Vn}},Hn.prototype.delete=function(e){var t=aa(this,e).delete(e);return this.size-=t?1:0,t},Hn.prototype.get=function(e){return aa(this,e).get(e)},Hn.prototype.has=function(e){return aa(this,e).has(e)},Hn.prototype.set=function(e,t){var n=aa(this,e),r=n.size;return n.set(e,t),this.size+=n.size==r?0:1,this},jn.prototype.add=jn.prototype.push=function(e){return this.__data__.set(e,s),this},jn.prototype.has=function(e){return this.__data__.has(e)},Wn.prototype.clear=function(){this.__data__=new zn,this.size=0},Wn.prototype.delete=function(e){var t=this.__data__,n=t.delete(e);return this.size=t.size,n},Wn.prototype.get=function(e){return this.__data__.get(e)},Wn.prototype.has=function(e){return this.__data__.has(e)},Wn.prototype.set=function(e,t){var n=this.__data__;if(n instanceof zn){var r=n.__data__;if(!xn||r.length<199)return r.push([e,t]),this.size=++n.size,this;n=this.__data__=new Hn(r)}return n.set(e,t),this.size=n.size,this};var cr=Ti(gr),ur=Ti(vr,!0);function hr(e,t){var n=!0;return cr(e,function(e,r,i){return n=!!t(e,r,i)}),n}function dr(e,t,n){for(var r=-1,a=e.length;++r0&&n(o)?t>1?fr(o,t-1,n,r,i):Pt(i,o):r||(i[i.length]=o)}return i}var mr=Bi(),Ar=Bi(!0);function gr(e,t){return e&&mr(e,t,Co)}function vr(e,t){return e&&Ar(e,t,Co)}function yr(e,t){return It(t,function(t){return Ws(e[t])})}function br(e,t){for(var n=0,r=(t=mi(t,e)).length;null!=e&&nt}function wr(e,t){return null!=e&&Le.call(e,t)}function Mr(e,t){return null!=e&&t in we(e)}function Sr(e,t,n){for(var a=n?Bt:Tt,s=e[0].length,o=e.length,l=o,c=r(o),u=1/0,h=[];l--;){var d=e[l];l&&t&&(d=Rt(d,Yt(t))),u=An(d.length,u),c[l]=!n&&(t||s>=120&&d.length>=120)?new jn(l&&d):i}d=e[0];var p=-1,f=c[0];e:for(;++p=o?l:l*("desc"==n[r]?-1:1)}return e.index-t.index}(e,t,n)})}function Gr(e,t,n){for(var r=-1,i=t.length,a={};++r-1;)o!==e&&qe.call(o,l,1),qe.call(e,l,1);return e}function zr(e,t){for(var n=e?t.length:0,r=n-1;n--;){var i=t[n];if(n==r||i!==a){var a=i;fa(i)?qe.call(e,i,1):oi(e,i)}}return e}function Hr(e,t){return e+pt(yn()*(t-e+1))}function jr(e,t){var n="";if(!e||t<1||t>h)return n;do{t%2&&(n+=e),(t=pt(t/2))&&(e+=e)}while(t);return n}function Wr(e,t){return Ca(xa(e,t,$o),e+"")}function qr(e){return Xn(Do(e))}function Xr(e,t){var n=Do(e);return Ba(n,ir(t,0,n.length))}function Yr(e,t,n,r){if(!Ys(e))return e;for(var a=-1,s=(t=mi(t,e)).length,o=s-1,l=e;null!=l&&++aa?0:a+t),(n=n>a?a:n)<0&&(n+=a),a=t>n?0:n-t>>>0,t>>>=0;for(var s=r(a);++i>>1,s=e[a];null!==s&&!ro(s)&&(n?s<=t:s=200){var c=t?null:ji(e);if(c)return ln(c);s=!1,i=Jt,l=new jn}else l=t?[]:o;e:for(;++r=r?e:$r(e,t,n)}var vi=st||function(e){return ht.clearTimeout(e)};function yi(e,t){if(t)return e.slice();var n=e.length,r=ze?ze(n):new e.constructor(n);return e.copy(r),r}function bi(e){var t=new e.constructor(e.byteLength);return new Ve(t).set(new Ve(e)),t}function _i(e,t){var n=t?bi(e.buffer):e.buffer;return new e.constructor(n,e.byteOffset,e.length)}function xi(e,t){if(e!==t){var n=e!==i,r=null===e,a=e==e,s=ro(e),o=t!==i,l=null===t,c=t==t,u=ro(t);if(!l&&!u&&!s&&e>t||s&&o&&c&&!l&&!u||r&&o&&c||!n&&c||!a)return 1;if(!r&&!s&&!u&&e1?n[a-1]:i,o=a>2?n[2]:i;for(s=e.length>3&&"function"==typeof s?(a--,s):i,o&&ma(n[0],n[1],o)&&(s=a<3?i:s,a=1),t=we(t);++r-1?a[s?t[o]:o]:i}}function Ui(e){return Zi(function(t){var n=t.length,r=n,s=Qn.prototype.thru;for(e&&t.reverse();r--;){var o=t[r];if("function"!=typeof o)throw new Ce(a);if(s&&!l&&"wrapper"==na(o))var l=new Qn([],!0)}for(r=l?r:n;++r1&&b.reverse(),p&&hl))return!1;var u=s.get(e),h=s.get(t);if(u&&h)return u==t&&h==e;var d=-1,p=!0,f=2&n?new jn:i;for(s.set(e,t),s.set(t,e);++d-1&&e%1==0&&e1?"& ":"")+t[r],t=t.join(n>2?", ":" "),e.replace(ae,"{\n/* [wrapped with "+t+"] */\n")}(r,function(e,t){return Mt(f,function(n){var r="_."+n[0];t&n[1]&&!Tt(e,r)&&e.push(r)}),e.sort()}(function(e){var t=e.match(se);return t?t[1].split(oe):[]}(r),n)))}function Ta(e){var t=0,n=0;return function(){var r=gn(),a=16-(r-n);if(n=r,a>0){if(++t>=800)return arguments[0]}else t=0;return e.apply(i,arguments)}}function Ba(e,t){var n=-1,r=e.length,a=r-1;for(t=t===i?r:t;++n1?e[t-1]:i;return n="function"==typeof n?(e.pop(),n):i,es(e,n)});function os(e){var t=Fn(e);return t.__chain__=!0,t}function ls(e,t){return t(e)}var cs=Zi(function(e){var t=e.length,n=t?e[0]:0,r=this.__wrapped__,a=function(t){return rr(t,e)};return!(t>1||this.__actions__.length)&&r instanceof Gn&&fa(n)?((r=r.slice(n,+n+(t?1:0))).__actions__.push({func:ls,args:[a],thisArg:i}),new Qn(r,this.__chain__).thru(function(e){return t&&!e.length&&e.push(i),e})):this.thru(a)}),us=Ci(function(e,t,n){Le.call(e,n)?++e[n]:nr(e,n,1)}),hs=Oi(Na),ds=Oi(ka);function ps(e,t){return(ks(e)?Mt:cr)(e,ia(t,3))}function fs(e,t){return(ks(e)?St:ur)(e,ia(t,3))}var ms=Ci(function(e,t,n){Le.call(e,n)?e[n].push(t):nr(e,n,[t])}),As=Wr(function(e,t,n){var i=-1,a="function"==typeof t,s=Gs(e)?r(e.length):[];return cr(e,function(e){s[++i]=a?Et(t,e,n):Cr(e,t,n)}),s}),gs=Ci(function(e,t,n){nr(e,n,t)});function vs(e,t){return(ks(e)?Rt:Ur)(e,ia(t,3))}var ys=Ci(function(e,t,n){e[n?0:1].push(t)},function(){return[[],[]]}),bs=Wr(function(e,t){if(null==e)return[];var n=t.length;return n>1&&ma(e,t[0],t[1])?t=[]:n>2&&ma(t[0],t[1],t[2])&&(t=[t[0]]),Qr(e,fr(t,1),[])}),_s=ct||function(){return ht.Date.now()};function xs(e,t,n){return t=n?i:t,t=e&&null==t?e.length:t,qi(e,c,i,i,i,i,t)}function Es(e,t){var n;if("function"!=typeof t)throw new Ce(a);return e=co(e),function(){return--e>0&&(n=t.apply(this,arguments)),e<=1&&(t=i),n}}var ws=Wr(function(e,t,n){var r=1;if(n.length){var i=on(n,ra(ws));r|=l}return qi(e,r,t,n,i)}),Ms=Wr(function(e,t,n){var r=3;if(n.length){var i=on(n,ra(Ms));r|=l}return qi(t,r,e,n,i)});function Ss(e,t,n){var r,s,o,l,c,u,h=0,d=!1,p=!1,f=!0;if("function"!=typeof e)throw new Ce(a);function m(t){var n=r,a=s;return r=s=i,h=t,l=e.apply(a,n)}function A(e){var n=e-u;return u===i||n>=t||n<0||p&&e-h>=o}function g(){var e=_s();if(A(e))return v(e);c=Sa(g,function(e){var n=t-(e-u);return p?An(n,o-(e-h)):n}(e))}function v(e){return c=i,f&&r?m(e):(r=s=i,l)}function y(){var e=_s(),n=A(e);if(r=arguments,s=this,u=e,n){if(c===i)return function(e){return h=e,c=Sa(g,t),d?m(e):l}(u);if(p)return vi(c),c=Sa(g,t),m(u)}return c===i&&(c=Sa(g,t)),l}return t=ho(t)||0,Ys(n)&&(d=!!n.leading,o=(p="maxWait"in n)?mn(ho(n.maxWait)||0,t):o,f="trailing"in n?!!n.trailing:f),y.cancel=function(){c!==i&&vi(c),h=0,r=u=s=c=i},y.flush=function(){return c===i?l:v(_s())},y}var Cs=Wr(function(e,t){return or(e,1,t)}),Is=Wr(function(e,t,n){return or(e,ho(t)||0,n)});function Ts(e,t){if("function"!=typeof e||null!=t&&"function"!=typeof t)throw new Ce(a);var n=function(){var r=arguments,i=t?t.apply(this,r):r[0],a=n.cache;if(a.has(i))return a.get(i);var s=e.apply(this,r);return n.cache=a.set(i,s)||a,s};return n.cache=new(Ts.Cache||Hn),n}function Bs(e){if("function"!=typeof e)throw new Ce(a);return function(){var t=arguments;switch(t.length){case 0:return!e.call(this);case 1:return!e.call(this,t[0]);case 2:return!e.call(this,t[0],t[1]);case 3:return!e.call(this,t[0],t[1],t[2])}return!e.apply(this,t)}}Ts.Cache=Hn;var Rs=Ai(function(e,t){var n=(t=1==t.length&&ks(t[0])?Rt(t[0],Yt(ia())):Rt(fr(t,1),Yt(ia()))).length;return Wr(function(r){for(var i=-1,a=An(r.length,n);++i=t}),Ns=Ir(function(){return arguments}())?Ir:function(e){return Ks(e)&&Le.call(e,"callee")&&!We.call(e,"callee")},ks=r.isArray,Qs=gt?Yt(gt):function(e){return Ks(e)&&xr(e)==R};function Gs(e){return null!=e&&Xs(e.length)&&!Ws(e)}function Vs(e){return Ks(e)&&Gs(e)}var zs=At||dl,Hs=vt?Yt(vt):function(e){return Ks(e)&&xr(e)==v};function js(e){if(!Ks(e))return!1;var t=xr(e);return t==y||"[object DOMException]"==t||"string"==typeof e.message&&"string"==typeof e.name&&!$s(e)}function Ws(e){if(!Ys(e))return!1;var t=xr(e);return t==b||t==_||"[object AsyncFunction]"==t||"[object Proxy]"==t}function qs(e){return"number"==typeof e&&e==co(e)}function Xs(e){return"number"==typeof e&&e>-1&&e%1==0&&e<=h}function Ys(e){var t=typeof e;return null!=e&&("object"==t||"function"==t)}function Ks(e){return null!=e&&"object"==typeof e}var Js=yt?Yt(yt):function(e){return Ks(e)&&ua(e)==x};function Zs(e){return"number"==typeof e||Ks(e)&&xr(e)==E}function $s(e){if(!Ks(e)||xr(e)!=w)return!1;var t=He(e);if(null===t)return!0;var n=Le.call(t,"constructor")&&t.constructor;return"function"==typeof n&&n instanceof n&&Pe.call(n)==Fe}var eo=bt?Yt(bt):function(e){return Ks(e)&&xr(e)==S},to=_t?Yt(_t):function(e){return Ks(e)&&ua(e)==C};function no(e){return"string"==typeof e||!ks(e)&&Ks(e)&&xr(e)==I}function ro(e){return"symbol"==typeof e||Ks(e)&&xr(e)==T}var io=xt?Yt(xt):function(e){return Ks(e)&&Xs(e.length)&&!!it[xr(e)]},ao=Vi(Or),so=Vi(function(e,t){return e<=t});function oo(e){if(!e)return[];if(Gs(e))return no(e)?un(e):Mi(e);if(Ye&&e[Ye])return function(e){for(var t,n=[];!(t=e.next()).done;)n.push(t.value);return n}(e[Ye]());var t=ua(e);return(t==x?an:t==C?ln:Do)(e)}function lo(e){return e?(e=ho(e))===u||e===-1/0?17976931348623157e292*(e<0?-1:1):e==e?e:0:0===e?e:0}function co(e){var t=lo(e),n=t%1;return t==t?n?t-n:t:0}function uo(e){return e?ir(co(e),0,p):0}function ho(e){if("number"==typeof e)return e;if(ro(e))return d;if(Ys(e)){var t="function"==typeof e.valueOf?e.valueOf():e;e=Ys(t)?t+"":t}if("string"!=typeof e)return 0===e?e:+e;e=Xt(e);var n=fe.test(e);return n||Ae.test(e)?lt(e.slice(2),n?2:8):pe.test(e)?d:+e}function po(e){return Si(e,Io(e))}function fo(e){return null==e?"":ai(e)}var mo=Ii(function(e,t){if(ya(t)||Gs(t))Si(t,Co(t),e);else for(var n in t)Le.call(t,n)&&Zn(e,n,t[n])}),Ao=Ii(function(e,t){Si(t,Io(t),e)}),go=Ii(function(e,t,n,r){Si(t,Io(t),e,r)}),vo=Ii(function(e,t,n,r){Si(t,Co(t),e,r)}),yo=Zi(rr),bo=Wr(function(e,t){e=we(e);var n=-1,r=t.length,a=r>2?t[2]:i;for(a&&ma(t[0],t[1],a)&&(r=1);++n1),t}),Si(e,ea(e),n),r&&(n=ar(n,7,Ki));for(var i=t.length;i--;)oi(n,t[i]);return n}),Po=Zi(function(e,t){return null==e?{}:function(e,t){return Gr(e,t,function(t,n){return Eo(e,n)})}(e,t)});function Lo(e,t){if(null==e)return{};var n=Rt(ea(e),function(e){return[e]});return t=ia(t),Gr(e,n,function(e,n){return t(e,n[0])})}var Oo=Wi(Co),Uo=Wi(Io);function Do(e){return null==e?[]:Kt(e,Co(e))}var Fo=Pi(function(e,t,n){return t=t.toLowerCase(),e+(n?No(t):t)});function No(e){return Wo(fo(e).toLowerCase())}function ko(e){return(e=fo(e))&&e.replace(ve,en).replace(Je,"")}var Qo=Pi(function(e,t,n){return e+(n?"-":"")+t.toLowerCase()}),Go=Pi(function(e,t,n){return e+(n?" ":"")+t.toLowerCase()}),Vo=Ri("toLowerCase"),zo=Pi(function(e,t,n){return e+(n?"_":"")+t.toLowerCase()}),Ho=Pi(function(e,t,n){return e+(n?" ":"")+Wo(t)}),jo=Pi(function(e,t,n){return e+(n?" ":"")+t.toUpperCase()}),Wo=Ri("toUpperCase");function qo(e,t,n){return e=fo(e),(t=n?i:t)===i?function(e){return tt.test(e)}(e)?function(e){return e.match($e)||[]}(e):function(e){return e.match(le)||[]}(e):e.match(t)||[]}var Xo=Wr(function(e,t){try{return Et(e,i,t)}catch(e){return js(e)?e:new _e(e)}}),Yo=Zi(function(e,t){return Mt(t,function(t){t=Pa(t),nr(e,t,ws(e[t],e))}),e});function Ko(e){return function(){return e}}var Jo=Ui(),Zo=Ui(!0);function $o(e){return e}function el(e){return Pr("function"==typeof e?e:ar(e,1))}var tl=Wr(function(e,t){return function(n){return Cr(n,e,t)}}),nl=Wr(function(e,t){return function(n){return Cr(e,n,t)}});function rl(e,t,n){var r=Co(t),i=yr(t,r);null!=n||Ys(t)&&(i.length||!r.length)||(n=t,t=e,e=this,i=yr(t,Co(t)));var a=!(Ys(n)&&"chain"in n&&!n.chain),s=Ws(e);return Mt(i,function(n){var r=t[n];e[n]=r,s&&(e.prototype[n]=function(){var t=this.__chain__;if(a||t){var n=e(this.__wrapped__);return(n.__actions__=Mi(this.__actions__)).push({func:r,args:arguments,thisArg:e}),n.__chain__=t,n}return r.apply(e,Pt([this.value()],arguments))})}),e}function il(){}var al=ki(Rt),sl=ki(Ct),ol=ki(Ut);function ll(e){return Aa(e)?zt(Pa(e)):function(e){return function(t){return br(t,e)}}(e)}var cl=Gi(),ul=Gi(!0);function hl(){return[]}function dl(){return!1}var pl,fl=Ni(function(e,t){return e+t},0),ml=Hi("ceil"),Al=Ni(function(e,t){return e/t},1),gl=Hi("floor"),vl=Ni(function(e,t){return e*t},1),yl=Hi("round"),bl=Ni(function(e,t){return e-t},0);return Fn.after=function(e,t){if("function"!=typeof t)throw new Ce(a);return e=co(e),function(){if(--e<1)return t.apply(this,arguments)}},Fn.ary=xs,Fn.assign=mo,Fn.assignIn=Ao,Fn.assignInWith=go,Fn.assignWith=vo,Fn.at=yo,Fn.before=Es,Fn.bind=ws,Fn.bindAll=Yo,Fn.bindKey=Ms,Fn.castArray=function(){if(!arguments.length)return[];var e=arguments[0];return ks(e)?e:[e]},Fn.chain=os,Fn.chunk=function(e,t,n){t=(n?ma(e,t,n):t===i)?1:mn(co(t),0);var a=null==e?0:e.length;if(!a||t<1)return[];for(var s=0,o=0,l=r(dt(a/t));sa?0:a+n),(r=r===i||r>a?a:co(r))<0&&(r+=a),r=n>r?0:uo(r);n>>0)?(e=fo(e))&&("string"==typeof t||null!=t&&!eo(t))&&!(t=ai(t))&&rn(e)?gi(un(e),0,n):e.split(t,n):[]},Fn.spread=function(e,t){if("function"!=typeof e)throw new Ce(a);return t=null==t?0:mn(co(t),0),Wr(function(n){var r=n[t],i=gi(n,0,t);return r&&Pt(i,r),Et(e,this,i)})},Fn.tail=function(e){var t=null==e?0:e.length;return t?$r(e,1,t):[]},Fn.take=function(e,t,n){return e&&e.length?$r(e,0,(t=n||t===i?1:co(t))<0?0:t):[]},Fn.takeRight=function(e,t,n){var r=null==e?0:e.length;return r?$r(e,(t=r-(t=n||t===i?1:co(t)))<0?0:t,r):[]},Fn.takeRightWhile=function(e,t){return e&&e.length?ci(e,ia(t,3),!1,!0):[]},Fn.takeWhile=function(e,t){return e&&e.length?ci(e,ia(t,3)):[]},Fn.tap=function(e,t){return t(e),e},Fn.throttle=function(e,t,n){var r=!0,i=!0;if("function"!=typeof e)throw new Ce(a);return Ys(n)&&(r="leading"in n?!!n.leading:r,i="trailing"in n?!!n.trailing:i),Ss(e,t,{leading:r,maxWait:t,trailing:i})},Fn.thru=ls,Fn.toArray=oo,Fn.toPairs=Oo,Fn.toPairsIn=Uo,Fn.toPath=function(e){return ks(e)?Rt(e,Pa):ro(e)?[e]:Mi(Ra(fo(e)))},Fn.toPlainObject=po,Fn.transform=function(e,t,n){var r=ks(e),i=r||zs(e)||io(e);if(t=ia(t,4),null==n){var a=e&&e.constructor;n=i?r?new a:[]:Ys(e)&&Ws(a)?Nn(He(e)):{}}return(i?Mt:gr)(e,function(e,r,i){return t(n,e,r,i)}),n},Fn.unary=function(e){return xs(e,1)},Fn.union=Ka,Fn.unionBy=Ja,Fn.unionWith=Za,Fn.uniq=function(e){return e&&e.length?si(e):[]},Fn.uniqBy=function(e,t){return e&&e.length?si(e,ia(t,2)):[]},Fn.uniqWith=function(e,t){return t="function"==typeof t?t:i,e&&e.length?si(e,i,t):[]},Fn.unset=function(e,t){return null==e||oi(e,t)},Fn.unzip=$a,Fn.unzipWith=es,Fn.update=function(e,t,n){return null==e?e:li(e,t,fi(n))},Fn.updateWith=function(e,t,n,r){return r="function"==typeof r?r:i,null==e?e:li(e,t,fi(n),r)},Fn.values=Do,Fn.valuesIn=function(e){return null==e?[]:Kt(e,Io(e))},Fn.without=ts,Fn.words=qo,Fn.wrap=function(e,t){return Ps(fi(t),e)},Fn.xor=ns,Fn.xorBy=rs,Fn.xorWith=is,Fn.zip=as,Fn.zipObject=function(e,t){return di(e||[],t||[],Zn)},Fn.zipObjectDeep=function(e,t){return di(e||[],t||[],Yr)},Fn.zipWith=ss,Fn.entries=Oo,Fn.entriesIn=Uo,Fn.extend=Ao,Fn.extendWith=go,rl(Fn,Fn),Fn.add=fl,Fn.attempt=Xo,Fn.camelCase=Fo,Fn.capitalize=No,Fn.ceil=ml,Fn.clamp=function(e,t,n){return n===i&&(n=t,t=i),n!==i&&(n=(n=ho(n))==n?n:0),t!==i&&(t=(t=ho(t))==t?t:0),ir(ho(e),t,n)},Fn.clone=function(e){return ar(e,4)},Fn.cloneDeep=function(e){return ar(e,5)},Fn.cloneDeepWith=function(e,t){return ar(e,5,t="function"==typeof t?t:i)},Fn.cloneWith=function(e,t){return ar(e,4,t="function"==typeof t?t:i)},Fn.conformsTo=function(e,t){return null==t||sr(e,t,Co(t))},Fn.deburr=ko,Fn.defaultTo=function(e,t){return null==e||e!=e?t:e},Fn.divide=Al,Fn.endsWith=function(e,t,n){e=fo(e),t=ai(t);var r=e.length,a=n=n===i?r:ir(co(n),0,r);return(n-=t.length)>=0&&e.slice(n,a)==t},Fn.eq=Us,Fn.escape=function(e){return(e=fo(e))&&X.test(e)?e.replace(W,tn):e},Fn.escapeRegExp=function(e){return(e=fo(e))&&ne.test(e)?e.replace(te,"\\$&"):e},Fn.every=function(e,t,n){var r=ks(e)?Ct:hr;return n&&ma(e,t,n)&&(t=i),r(e,ia(t,3))},Fn.find=hs,Fn.findIndex=Na,Fn.findKey=function(e,t){return Ft(e,ia(t,3),gr)},Fn.findLast=ds,Fn.findLastIndex=ka,Fn.findLastKey=function(e,t){return Ft(e,ia(t,3),vr)},Fn.floor=gl,Fn.forEach=ps,Fn.forEachRight=fs,Fn.forIn=function(e,t){return null==e?e:mr(e,ia(t,3),Io)},Fn.forInRight=function(e,t){return null==e?e:Ar(e,ia(t,3),Io)},Fn.forOwn=function(e,t){return e&&gr(e,ia(t,3))},Fn.forOwnRight=function(e,t){return e&&vr(e,ia(t,3))},Fn.get=xo,Fn.gt=Ds,Fn.gte=Fs,Fn.has=function(e,t){return null!=e&&ha(e,t,wr)},Fn.hasIn=Eo,Fn.head=Ga,Fn.identity=$o,Fn.includes=function(e,t,n,r){e=Gs(e)?e:Do(e),n=n&&!r?co(n):0;var i=e.length;return n<0&&(n=mn(i+n,0)),no(e)?n<=i&&e.indexOf(t,n)>-1:!!i&&kt(e,t,n)>-1},Fn.indexOf=function(e,t,n){var r=null==e?0:e.length;if(!r)return-1;var i=null==n?0:co(n);return i<0&&(i=mn(r+i,0)),kt(e,t,i)},Fn.inRange=function(e,t,n){return t=lo(t),n===i?(n=t,t=0):n=lo(n),function(e,t,n){return e>=An(t,n)&&e=-9007199254740991&&e<=h},Fn.isSet=to,Fn.isString=no,Fn.isSymbol=ro,Fn.isTypedArray=io,Fn.isUndefined=function(e){return e===i},Fn.isWeakMap=function(e){return Ks(e)&&ua(e)==B},Fn.isWeakSet=function(e){return Ks(e)&&"[object WeakSet]"==xr(e)},Fn.join=function(e,t){return null==e?"":Ht.call(e,t)},Fn.kebabCase=Qo,Fn.last=ja,Fn.lastIndexOf=function(e,t,n){var r=null==e?0:e.length;if(!r)return-1;var a=r;return n!==i&&(a=(a=co(n))<0?mn(r+a,0):An(a,r-1)),t==t?function(e,t,n){for(var r=n+1;r--;)if(e[r]===t)return r;return r}(e,t,a):Nt(e,Gt,a,!0)},Fn.lowerCase=Go,Fn.lowerFirst=Vo,Fn.lt=ao,Fn.lte=so,Fn.max=function(e){return e&&e.length?dr(e,$o,Er):i},Fn.maxBy=function(e,t){return e&&e.length?dr(e,ia(t,2),Er):i},Fn.mean=function(e){return Vt(e,$o)},Fn.meanBy=function(e,t){return Vt(e,ia(t,2))},Fn.min=function(e){return e&&e.length?dr(e,$o,Or):i},Fn.minBy=function(e,t){return e&&e.length?dr(e,ia(t,2),Or):i},Fn.stubArray=hl,Fn.stubFalse=dl,Fn.stubObject=function(){return{}},Fn.stubString=function(){return""},Fn.stubTrue=function(){return!0},Fn.multiply=vl,Fn.nth=function(e,t){return e&&e.length?kr(e,co(t)):i},Fn.noConflict=function(){return ht._===this&&(ht._=Ne),this},Fn.noop=il,Fn.now=_s,Fn.pad=function(e,t,n){e=fo(e);var r=(t=co(t))?cn(e):0;if(!t||r>=t)return e;var i=(t-r)/2;return Qi(pt(i),n)+e+Qi(dt(i),n)},Fn.padEnd=function(e,t,n){e=fo(e);var r=(t=co(t))?cn(e):0;return t&&rt){var r=e;e=t,t=r}if(n||e%1||t%1){var a=yn();return An(e+a*(t-e+ot("1e-"+((a+"").length-1))),t)}return Hr(e,t)},Fn.reduce=function(e,t,n){var r=ks(e)?Lt:jt,i=arguments.length<3;return r(e,ia(t,4),n,i,cr)},Fn.reduceRight=function(e,t,n){var r=ks(e)?Ot:jt,i=arguments.length<3;return r(e,ia(t,4),n,i,ur)},Fn.repeat=function(e,t,n){return t=(n?ma(e,t,n):t===i)?1:co(t),jr(fo(e),t)},Fn.replace=function(){var e=arguments,t=fo(e[0]);return e.length<3?t:t.replace(e[1],e[2])},Fn.result=function(e,t,n){var r=-1,a=(t=mi(t,e)).length;for(a||(a=1,e=i);++rh)return[];var n=p,r=An(e,p);t=ia(t),e-=p;for(var i=qt(r,t);++n=s)return e;var l=n-cn(r);if(l<1)return r;var c=o?gi(o,0,l).join(""):e.slice(0,l);if(a===i)return c+r;if(o&&(l+=c.length-l),eo(a)){if(e.slice(l).search(a)){var u,h=c;for(a.global||(a=Me(a.source,fo(de.exec(a))+"g")),a.lastIndex=0;u=a.exec(h);)var d=u.index;c=c.slice(0,d===i?l:d)}}else if(e.indexOf(ai(a),l)!=l){var p=c.lastIndexOf(a);p>-1&&(c=c.slice(0,p))}return c+r},Fn.unescape=function(e){return(e=fo(e))&&q.test(e)?e.replace(j,dn):e},Fn.uniqueId=function(e){var t=++Oe;return fo(e)+t},Fn.upperCase=jo,Fn.upperFirst=Wo,Fn.each=ps,Fn.eachRight=fs,Fn.first=Ga,rl(Fn,(pl={},gr(Fn,function(e,t){Le.call(Fn.prototype,t)||(pl[t]=e)}),pl),{chain:!1}),Fn.VERSION="4.17.21",Mt(["bind","bindKey","curry","curryRight","partial","partialRight"],function(e){Fn[e].placeholder=Fn}),Mt(["drop","take"],function(e,t){Gn.prototype[e]=function(n){n=n===i?1:mn(co(n),0);var r=this.__filtered__&&!t?new Gn(this):this.clone();return r.__filtered__?r.__takeCount__=An(n,r.__takeCount__):r.__views__.push({size:An(n,p),type:e+(r.__dir__<0?"Right":"")}),r},Gn.prototype[e+"Right"]=function(t){return this.reverse()[e](t).reverse()}}),Mt(["filter","map","takeWhile"],function(e,t){var n=t+1,r=1==n||3==n;Gn.prototype[e]=function(e){var t=this.clone();return t.__iteratees__.push({iteratee:ia(e,3),type:n}),t.__filtered__=t.__filtered__||r,t}}),Mt(["head","last"],function(e,t){var n="take"+(t?"Right":"");Gn.prototype[e]=function(){return this[n](1).value()[0]}}),Mt(["initial","tail"],function(e,t){var n="drop"+(t?"":"Right");Gn.prototype[e]=function(){return this.__filtered__?new Gn(this):this[n](1)}}),Gn.prototype.compact=function(){return this.filter($o)},Gn.prototype.find=function(e){return this.filter(e).head()},Gn.prototype.findLast=function(e){return this.reverse().find(e)},Gn.prototype.invokeMap=Wr(function(e,t){return"function"==typeof e?new Gn(this):this.map(function(n){return Cr(n,e,t)})}),Gn.prototype.reject=function(e){return this.filter(Bs(ia(e)))},Gn.prototype.slice=function(e,t){e=co(e);var n=this;return n.__filtered__&&(e>0||t<0)?new Gn(n):(e<0?n=n.takeRight(-e):e&&(n=n.drop(e)),t!==i&&(n=(t=co(t))<0?n.dropRight(-t):n.take(t-e)),n)},Gn.prototype.takeRightWhile=function(e){return this.reverse().takeWhile(e).reverse()},Gn.prototype.toArray=function(){return this.take(p)},gr(Gn.prototype,function(e,t){var n=/^(?:filter|find|map|reject)|While$/.test(t),r=/^(?:head|last)$/.test(t),a=Fn[r?"take"+("last"==t?"Right":""):t],s=r||/^find/.test(t);a&&(Fn.prototype[t]=function(){var t=this.__wrapped__,o=r?[1]:arguments,l=t instanceof Gn,c=o[0],u=l||ks(t),h=function(e){var t=a.apply(Fn,Pt([e],o));return r&&d?t[0]:t};u&&n&&"function"==typeof c&&1!=c.length&&(l=u=!1);var d=this.__chain__,p=!!this.__actions__.length,f=s&&!d,m=l&&!p;if(!s&&u){t=m?t:new Gn(this);var A=e.apply(t,o);return A.__actions__.push({func:ls,args:[h],thisArg:i}),new Qn(A,d)}return f&&m?e.apply(this,o):(A=this.thru(h),f?r?A.value()[0]:A.value():A)})}),Mt(["pop","push","shift","sort","splice","unshift"],function(e){var t=Ie[e],n=/^(?:push|sort|unshift)$/.test(e)?"tap":"thru",r=/^(?:pop|shift)$/.test(e);Fn.prototype[e]=function(){var e=arguments;if(r&&!this.__chain__){var i=this.value();return t.apply(ks(i)?i:[],e)}return this[n](function(n){return t.apply(ks(n)?n:[],e)})}}),gr(Gn.prototype,function(e,t){var n=Fn[t];if(n){var r=n.name+"";Le.call(In,r)||(In[r]=[]),In[r].push({name:t,func:n})}}),In[Di(i,2).name]=[{name:"wrapper",func:i}],Gn.prototype.clone=function(){var e=new Gn(this.__wrapped__);return e.__actions__=Mi(this.__actions__),e.__dir__=this.__dir__,e.__filtered__=this.__filtered__,e.__iteratees__=Mi(this.__iteratees__),e.__takeCount__=this.__takeCount__,e.__views__=Mi(this.__views__),e},Gn.prototype.reverse=function(){if(this.__filtered__){var e=new Gn(this);e.__dir__=-1,e.__filtered__=!0}else(e=this.clone()).__dir__*=-1;return e},Gn.prototype.value=function(){var e=this.__wrapped__.value(),t=this.__dir__,n=ks(e),r=t<0,i=n?e.length:0,a=function(e,t,n){for(var r=-1,i=n.length;++r=this.__values__.length;return{done:e,value:e?i:this.__values__[this.__index__++]}},Fn.prototype.plant=function(e){for(var t,n=this;n instanceof kn;){var r=Oa(n);r.__index__=0,r.__values__=i,t?a.__wrapped__=r:t=r;var a=r;n=n.__wrapped__}return a.__wrapped__=e,t},Fn.prototype.reverse=function(){var e=this.__wrapped__;if(e instanceof Gn){var t=e;return this.__actions__.length&&(t=new Gn(this)),(t=t.reverse()).__actions__.push({func:ls,args:[Ya],thisArg:i}),new Qn(t,this.__chain__)}return this.thru(Ya)},Fn.prototype.toJSON=Fn.prototype.valueOf=Fn.prototype.value=function(){return ui(this.__wrapped__,this.__actions__)},Fn.prototype.first=Fn.prototype.head,Ye&&(Fn.prototype[Ye]=function(){return this}),Fn}();ht._=pn,(r=function(){return pn}.call(t,n,t,e))===i||(e.exports=r)}.call(this)},8306:(e,t,n)=>{var r=n(3369);function i(e,t){if("function"!=typeof e||null!=t&&"function"!=typeof t)throw new TypeError("Expected a function");var n=function(){var r=arguments,i=t?t.apply(this,r):r[0],a=n.cache;if(a.has(i))return a.get(i);var s=e.apply(this,r);return n.cache=a.set(i,s)||a,s};return n.cache=new(i.Cache||r),n}i.Cache=r,e.exports=i},3857:(e,t,n)=>{var r=n(2980),i=n(1463)(function(e,t,n){r(e,t,n)});e.exports=i},236:(e,t,n)=>{var r=n(2980),i=n(1463)(function(e,t,n,i){r(e,t,n,i)});e.exports=i},308:e=>{e.exports=function(){}},7771:(e,t,n)=>{var r=n(5639);e.exports=function(){return r.Date.now()}},3131:(e,t,n)=>{var r=n(5976),i=n(7727),a=n(893),s=n(6460),o=r(function(e,t){var n=s(t,a(o));return i(e,32,void 0,t,n)});o.placeholder={},e.exports=o},9601:(e,t,n)=>{var r=n(371),i=n(9152),a=n(5403),s=n(327);e.exports=function(e){return a(e)?r(s(e)):i(e)}},1351:e=>{var t=Array.prototype.reverse;e.exports=function(e){return null==e?e:t.call(e)}},9734:(e,t,n)=>{var r=n(1078),i=n(2689),a=n(5976),s=n(6612),o=a(function(e,t){if(null==e)return[];var n=t.length;return n>1&&s(e,t[0],t[1])?t=[]:n>2&&s(t[0],t[1],t[2])&&(t=[t[0]]),i(e,r(t,1),[])});e.exports=o},479:e=>{e.exports=function(){return[]}},5062:e=>{e.exports=function(){return!1}},8601:(e,t,n)=>{var r=n(4841),i=1/0;e.exports=function(e){return e?(e=r(e))===i||e===-1/0?17976931348623157e292*(e<0?-1:1):e==e?e:0:0===e?e:0}},554:(e,t,n)=>{var r=n(8601);e.exports=function(e){var t=r(e),n=t%1;return t==t?n?t-n:t:0}},4841:(e,t,n)=>{var r=n(7561),i=n(3218),a=n(3448),s=/^[-+]0x[0-9a-f]+$/i,o=/^0b[01]+$/i,l=/^0o[0-7]+$/i,c=parseInt;e.exports=function(e){if("number"==typeof e)return e;if(a(e))return NaN;if(i(e)){var t="function"==typeof e.valueOf?e.valueOf():e;e=i(t)?t+"":t}if("string"!=typeof e)return 0===e?e:+e;e=r(e);var n=o.test(e);return n||l.test(e)?c(e.slice(2),n?2:8):s.test(e)?NaN:+e}},3678:(e,t,n)=>{var r=n(8363),i=n(1704);e.exports=function(e){return r(e,i(e))}},9833:(e,t,n)=>{var r=n(531);e.exports=function(e){return null==e?"":r(e)}},5578:(e,t,n)=>{var r=n(7206),i=n(5652);e.exports=function(e,t){return e&&e.length?i(e,r(t,2)):[]}},359:(e,t,n)=>{var r=n(4290),i=n(3131);e.exports=function(e,t){return i(r(t),e)}},8111:(e,t,n)=>{var r=n(6425),i=n(7548),a=n(9435),s=n(1469),o=n(7005),l=n(1913),c=Object.prototype.hasOwnProperty;function u(e){if(o(e)&&!s(e)&&!(e instanceof r)){if(e instanceof i)return e;if(c.call(e,"__wrapped__"))return l(e)}return new i(e)}u.prototype=a.prototype,u.prototype.constructor=u,e.exports=u},8949:(e,t,n)=>{"use strict";function r(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;rH,FlowCancellationError:()=>An,ObservableMap:()=>Mr,ObservableSet:()=>Ir,Reaction:()=>Bt,_allowStateChanges:()=>Xe,_allowStateChangesInsideComputed:()=>Xt,_allowStateReadsEnd:()=>ft,_allowStateReadsStart:()=>pt,_autoAction:()=>qt,_endAction:()=>qe,_getAdministration:()=>Kr,_getGlobalState:()=>_t,_interceptReads:()=>wn,_isComputingDerivation:()=>ot,_resetGlobalState:()=>xt,_startAction:()=>We,action:()=>Wt,autorun:()=>Kt,comparer:()=>X,computed:()=>Ne,configure:()=>cn,createAtom:()=>q,defineProperty:()=>kn,entries:()=>On,extendObservable:()=>un,flow:()=>bn,flowResult:()=>xn,get:()=>Nn,getAtom:()=>Yr,getDebugName:()=>Jr,getDependencyTree:()=>hn,getObserverTree:()=>pn,has:()=>Fn,intercept:()=>Mn,isAction:()=>Yt,isBoxedObservable:()=>$e,isComputed:()=>Cn,isComputedProp:()=>In,isFlow:()=>En,isFlowCancellationError:()=>gn,isObservable:()=>Bn,isObservableArray:()=>yr,isObservableMap:()=>Sr,isObservableObject:()=>Dr,isObservableProp:()=>Rn,isObservableSet:()=>Tr,keys:()=>Pn,makeAutoObservable:()=>ar,makeObservable:()=>rr,observable:()=>Oe,observe:()=>Gn,onBecomeObserved:()=>nn,onBecomeUnobserved:()=>rn,onReactionError:()=>Rt,override:()=>Z,ownKeys:()=>Qn,reaction:()=>$t,remove:()=>Dn,runInAction:()=>Xt,set:()=>Un,spy:()=>Ft,toJS:()=>Hn,trace:()=>jn,transaction:()=>Wn,untracked:()=>ut,values:()=>Ln,when:()=>qn});var i={};function a(){return"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:void 0!==n.g?n.g:"undefined"!=typeof self?self:i}var s=Object.assign,o=Object.getOwnPropertyDescriptor,l=Object.defineProperty,c=Object.prototype,u=[];Object.freeze(u);var h={};Object.freeze(h);var d="undefined"!=typeof Proxy,p=Object.toString();function f(){d||r("Proxy not available")}function m(e){var t=!1;return function(){if(!t)return t=!0,e.apply(this,arguments)}}var A=function(){};function g(e){return"function"==typeof e}function v(e){switch(typeof e){case"string":case"symbol":case"number":return!0}return!1}function y(e){return null!==e&&"object"==typeof e}function b(e){if(!y(e))return!1;var t=Object.getPrototypeOf(e);if(null==t)return!0;var n=Object.hasOwnProperty.call(t,"constructor")&&t.constructor;return"function"==typeof n&&n.toString()===p}function _(e){var t=null==e?void 0:e.constructor;return!!t&&("GeneratorFunction"===t.name||"GeneratorFunction"===t.displayName)}function x(e,t,n){l(e,t,{enumerable:!1,writable:!0,configurable:!0,value:n})}function E(e,t,n){l(e,t,{enumerable:!1,writable:!1,configurable:!0,value:n})}function w(e,t){var n="isMobX"+e;return t.prototype[n]=!0,function(e){return y(e)&&!0===e[n]}}function M(e){return e instanceof Map}function S(e){return e instanceof Set}var C=void 0!==Object.getOwnPropertySymbols,I="undefined"!=typeof Reflect&&Reflect.ownKeys?Reflect.ownKeys:C?function(e){return Object.getOwnPropertyNames(e).concat(Object.getOwnPropertySymbols(e))}:Object.getOwnPropertyNames;function T(e){return null===e?null:"object"==typeof e?""+e:e}function B(e,t){return c.hasOwnProperty.call(e,t)}var R=Object.getOwnPropertyDescriptors||function(e){var t={};return I(e).forEach(function(n){t[n]=o(e,n)}),t};function P(e,t){for(var n=0;ne.length)&&(t=e.length);for(var n=0,r=new Array(t);n=e.length?{done:!0}:{done:!1,value:e[r++]}}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var Q=Symbol("mobx-stored-annotations");function G(e){return Object.assign(function(t,n){if(z(n))return e.decorate_20223_(t,n);V(t,n,e)},e)}function V(e,t,n){B(e,Q)||x(e,Q,O({},e[Q])),function(e){return e.annotationType_===J}(n)||(e[Q][t]=n)}function z(e){return"object"==typeof e&&"string"==typeof e.kind}var H=Symbol("mobx administration"),j=function(){function e(e){void 0===e&&(e="Atom"),this.name_=void 0,this.isPendingUnobservation_=!1,this.isBeingObserved_=!1,this.observers_=new Set,this.diffValue_=0,this.lastAccessedBy_=0,this.lowestObserverState_=et.NOT_TRACKING_,this.onBOL=void 0,this.onBUOL=void 0,this.name_=e}var t=e.prototype;return t.onBO=function(){this.onBOL&&this.onBOL.forEach(function(e){return e()})},t.onBUO=function(){this.onBUOL&&this.onBUOL.forEach(function(e){return e()})},t.reportObserved=function(){return It(this)},t.reportChanged=function(){St(),Tt(this),Ct()},t.toString=function(){return this.name_},e}(),W=w("Atom",j);function q(e,t,n){void 0===t&&(t=A),void 0===n&&(n=A);var r=new j(e);return t!==A&&nn(r,t),n!==A&&rn(r,n),r}var X={identity:function(e,t){return e===t},structural:function(e,t){return ei(e,t)},default:function(e,t){return Object.is?Object.is(e,t):e===t?0!==e||1/e==1/t:e!=e&&t!=t},shallow:function(e,t){return ei(e,t,1)}};function Y(e,t,n){return Bn(e)?e:Array.isArray(e)?Oe.array(e,{name:n}):b(e)?Oe.object(e,void 0,{name:n}):M(e)?Oe.map(e,{name:n}):S(e)?Oe.set(e,{name:n}):"function"!=typeof e||Yt(e)||En(e)?e:_(e)?bn(e):qt(n,e)}function K(e){return e}var J="override",Z=G({annotationType_:J,make_:function(e,t){return 0},extend_:function(e,t,n,i){r("'"+this.annotationType_+"' can only be used with 'makeObservable'")},decorate_20223_:function(e,t){console.warn("'"+this.annotationType_+"' cannot be used with decorators - this is a no-op")}});function $(e,t){return{annotationType_:e,options_:t,make_:ee,extend_:te,decorate_20223_:ne}}function ee(e,t,n,r){var i;if(null!=(i=this.options_)&&i.bound)return null===this.extend_(e,t,n,!1)?0:1;if(r===e.target_)return null===this.extend_(e,t,n,!1)?0:2;if(Yt(n.value))return 1;var a=re(e,this,t,n,!1);return l(r,t,a),2}function te(e,t,n,r){var i=re(e,this,t,n);return e.defineProperty_(t,i,r)}function ne(e,t){var n=t.kind,i=t.name,a=t.addInitializer,s=this;if("field"!=n){var o,l,c,u,h,d;if("method"==n)return Yt(e)||(l=e,e=He(null!=(c=null==(u=s.options_)?void 0:u.name)?c:i.toString(),l,null!=(h=null==(d=s.options_)?void 0:d.autoAction)&&h)),null!=(o=this.options_)&&o.bound&&a(function(){var e=this,t=e[i].bind(e);t.isMobxAction=!0,e[i]=t}),e;r("Cannot apply '"+s.annotationType_+"' to '"+String(i)+"' (kind: "+n+"):\n'"+s.annotationType_+"' can only be used on properties with a function value.")}else a(function(){V(this,i,s)})}function re(e,t,n,r,i){var a,s,o,l,c,u,h,d;void 0===i&&(i=bt.safeDescriptors),d=r,t.annotationType_,d.value;var p,f=r.value;return null!=(a=t.options_)&&a.bound&&(f=f.bind(null!=(p=e.proxy_)?p:e.target_)),{value:He(null!=(s=null==(o=t.options_)?void 0:o.name)?s:n.toString(),f,null!=(l=null==(c=t.options_)?void 0:c.autoAction)&&l,null!=(u=t.options_)&&u.bound?null!=(h=e.proxy_)?h:e.target_:void 0),configurable:!i||e.isPlainObject_,enumerable:!1,writable:!i}}function ie(e,t){return{annotationType_:e,options_:t,make_:ae,extend_:se,decorate_20223_:oe}}function ae(e,t,n,r){var i;if(r===e.target_)return null===this.extend_(e,t,n,!1)?0:2;if(null!=(i=this.options_)&&i.bound&&(!B(e.target_,t)||!En(e.target_[t]))&&null===this.extend_(e,t,n,!1))return 0;if(En(n.value))return 1;var a=le(e,this,0,n,!1,!1);return l(r,t,a),2}function se(e,t,n,r){var i,a=le(e,this,0,n,null==(i=this.options_)?void 0:i.bound);return e.defineProperty_(t,a,r)}function oe(e,t){var n,r=t.name,i=t.addInitializer;return En(e)||(e=bn(e)),null!=(n=this.options_)&&n.bound&&i(function(){var e=this,t=e[r].bind(e);t.isMobXFlow=!0,e[r]=t}),e}function le(e,t,n,r,i,a){var s;void 0===a&&(a=bt.safeDescriptors),s=r,t.annotationType_,s.value;var o,l=r.value;return En(l)||(l=bn(l)),i&&((l=l.bind(null!=(o=e.proxy_)?o:e.target_)).isMobXFlow=!0),{value:l,configurable:!a||e.isPlainObject_,enumerable:!1,writable:!a}}function ce(e,t){return{annotationType_:e,options_:t,make_:ue,extend_:he,decorate_20223_:de}}function ue(e,t,n){return null===this.extend_(e,t,n,!1)?0:1}function he(e,t,n,r){return function(e,t,n,r){t.annotationType_,r.get}(0,this,0,n),e.defineComputedProperty_(t,O({},this.options_,{get:n.get,set:n.set}),r)}function de(e,t){var n=this,r=t.name;return(0,t.addInitializer)(function(){var t=Lr(this)[H],i=O({},n.options_,{get:e,context:this});i.name||(i.name="ObservableObject."+r.toString()),t.values_.set(r,new nt(i))}),function(){return this[H].getObservablePropValue_(r)}}function pe(e,t){return{annotationType_:e,options_:t,make_:fe,extend_:me,decorate_20223_:Ae}}function fe(e,t,n){return null===this.extend_(e,t,n,!1)?0:1}function me(e,t,n,r){var i,a;return function(e,t){t.annotationType_}(0,this),e.defineObservableProperty_(t,n.value,null!=(i=null==(a=this.options_)?void 0:a.enhancer)?i:Y,r)}function Ae(e,t){var n=this,r=t.kind,i=t.name,a=new WeakSet;function s(e,t){var r,s,o=Lr(e)[H],l=new Ze(t,null!=(r=null==(s=n.options_)?void 0:s.enhancer)?r:Y,"ObservableObject."+i.toString(),!1);o.values_.set(i,l),a.add(e)}if("accessor"==r)return{get:function(){return a.has(this)||s(this,e.get.call(this)),this[H].getObservablePropValue_(i)},set:function(e){return a.has(this)||s(this,e),this[H].setObservablePropValue_(i,e)},init:function(e){return a.has(this)||s(this,e),e}}}var ge="true",ve=ye();function ye(e){return{annotationType_:ge,options_:e,make_:be,extend_:_e,decorate_20223_:xe}}function be(e,t,n,r){var i,a,s,o;if(n.get)return Ne.make_(e,t,n,r);if(n.set){var c=He(t.toString(),n.set);return r===e.target_?null===e.defineProperty_(t,{configurable:!bt.safeDescriptors||e.isPlainObject_,set:c})?0:2:(l(r,t,{configurable:!0,set:c}),2)}if(r!==e.target_&&"function"==typeof n.value)return _(n.value)?(null!=(o=this.options_)&&o.autoBind?bn.bound:bn).make_(e,t,n,r):(null!=(s=this.options_)&&s.autoBind?qt.bound:qt).make_(e,t,n,r);var u,h=!1===(null==(i=this.options_)?void 0:i.deep)?Oe.ref:Oe;return"function"==typeof n.value&&null!=(a=this.options_)&&a.autoBind&&(n.value=n.value.bind(null!=(u=e.proxy_)?u:e.target_)),h.make_(e,t,n,r)}function _e(e,t,n,r){var i,a,s;return n.get?Ne.extend_(e,t,n,r):n.set?e.defineProperty_(t,{configurable:!bt.safeDescriptors||e.isPlainObject_,set:He(t.toString(),n.set)},r):("function"==typeof n.value&&null!=(i=this.options_)&&i.autoBind&&(n.value=n.value.bind(null!=(s=e.proxy_)?s:e.target_)),(!1===(null==(a=this.options_)?void 0:a.deep)?Oe.ref:Oe).extend_(e,t,n,r))}function xe(e,t){r("'"+this.annotationType_+"' cannot be used as a decorator")}var Ee={deep:!0,name:void 0,defaultDecorator:void 0,proxy:!0};function we(e){return e||Ee}Object.freeze(Ee);var Me=pe("observable"),Se=pe("observable.ref",{enhancer:K}),Ce=pe("observable.shallow",{enhancer:function(e,t,n){return null==e||Dr(e)||yr(e)||Sr(e)||Tr(e)?e:Array.isArray(e)?Oe.array(e,{name:n,deep:!1}):b(e)?Oe.object(e,void 0,{name:n,deep:!1}):M(e)?Oe.map(e,{name:n,deep:!1}):S(e)?Oe.set(e,{name:n,deep:!1}):void 0}}),Ie=pe("observable.struct",{enhancer:function(e,t){return ei(e,t)?t:e}}),Te=G(Me);function Be(e){return!0===e.deep?Y:!1===e.deep?K:(t=e.defaultDecorator)&&null!=(n=null==(r=t.options_)?void 0:r.enhancer)?n:Y;var t,n,r}function Re(e,t,n){return z(t)?Me.decorate_20223_(e,t):v(t)?void V(e,t,Me):Bn(e)?e:b(e)?Oe.object(e,t,n):Array.isArray(e)?Oe.array(e,t):M(e)?Oe.map(e,t):S(e)?Oe.set(e,t):"object"==typeof e&&null!==e?e:Oe.box(e,t)}s(Re,Te);var Pe,Le,Oe=s(Re,{box:function(e,t){var n=we(t);return new Ze(e,Be(n),n.name,!0,n.equals)},array:function(e,t){var n=we(t);return(!1===bt.useProxies||!1===n.proxy?Xr:ur)(e,Be(n),n.name)},map:function(e,t){var n=we(t);return new Mr(e,Be(n),n.name)},set:function(e,t){var n=we(t);return new Ir(e,Be(n),n.name)},object:function(e,t,n){return Zr(function(){return un(!1===bt.useProxies||!1===(null==n?void 0:n.proxy)?Lr({},n):function(e,t){var n,r;return f(),null!=(r=(n=(e=Lr(e,t))[H]).proxy_)?r:n.proxy_=new Proxy(e,Kn)}({},n),e,t)})},ref:G(Se),shallow:G(Ce),deep:Te,struct:G(Ie)}),Ue="computed",De=ce(Ue),Fe=ce("computed.struct",{equals:X.structural}),Ne=function(e,t){if(z(t))return De.decorate_20223_(e,t);if(v(t))return V(e,t,De);if(b(e))return G(ce(Ue,e));var n=b(t)?t:{};return n.get=e,n.name||(n.name=e.name||""),new nt(n)};Object.assign(Ne,De),Ne.struct=G(Fe);var ke,Qe=0,Ge=1,Ve=null!=(Pe=null==(Le=o(function(){},"name"))?void 0:Le.configurable)&&Pe,ze={value:"action",configurable:!0,writable:!1,enumerable:!1};function He(e,t,n,r){function i(){return je(e,n,t,r||this,arguments)}return void 0===n&&(n=!1),i.isMobxAction=!0,i.toString=function(){return t.toString()},Ve&&(ze.value=e,l(i,"name",ze)),i}function je(e,t,n,r,i){var a=We(0,t);try{return n.apply(r,i)}catch(e){throw a.error_=e,e}finally{qe(a)}}function We(e,t,n,r){var i=bt.trackingDerivation,a=!t||!i;St();var s=bt.allowStateChanges;a&&(ht(),s=Ye(!0));var o={runAsAction_:a,prevDerivation_:i,prevAllowStateChanges_:s,prevAllowStateReads_:pt(!0),notifySpy_:!1,startTime_:0,actionId_:Ge++,parentActionId_:Qe};return Qe=o.actionId_,o}function qe(e){Qe!==e.actionId_&&r(30),Qe=e.parentActionId_,void 0!==e.error_&&(bt.suppressReactionErrors=!0),Ke(e.prevAllowStateChanges_),ft(e.prevAllowStateReads_),Ct(),e.runAsAction_&&dt(e.prevDerivation_),bt.suppressReactionErrors=!1}function Xe(e,t){var n=Ye(e);try{return t()}finally{Ke(n)}}function Ye(e){var t=bt.allowStateChanges;return bt.allowStateChanges=e,t}function Ke(e){bt.allowStateChanges=e}ke=Symbol.toPrimitive;var Je,Ze=function(e){function t(t,n,r,i,a){var s;return void 0===r&&(r="ObservableValue"),void 0===i&&(i=!0),void 0===a&&(a=X.default),(s=e.call(this,r)||this).enhancer=void 0,s.name_=void 0,s.equals=void 0,s.hasUnreportedChange_=!1,s.interceptors_=void 0,s.changeListeners_=void 0,s.value_=void 0,s.dehancer=void 0,s.enhancer=n,s.name_=r,s.equals=a,s.value_=n(t,void 0,r),s}U(t,e);var n=t.prototype;return n.dehanceValue=function(e){return void 0!==this.dehancer?this.dehancer(e):e},n.set=function(e){this.value_,(e=this.prepareNewValue_(e))!==bt.UNCHANGED&&this.setNewValue_(e)},n.prepareNewValue_=function(e){if(Jn(this)){var t=$n(this,{object:this,type:or,newValue:e});if(!t)return bt.UNCHANGED;e=t.newValue}return e=this.enhancer(e,this.value_,this.name_),this.equals(this.value_,e)?bt.UNCHANGED:e},n.setNewValue_=function(e){var t=this.value_;this.value_=e,this.reportChanged(),er(this)&&nr(this,{type:or,object:this,newValue:e,oldValue:t})},n.get=function(){return this.reportObserved(),this.dehanceValue(this.value_)},n.intercept_=function(e){return Zn(this,e)},n.observe_=function(e,t){return t&&e({observableKind:"value",debugObjectName:this.name_,object:this,type:or,newValue:this.value_,oldValue:void 0}),tr(this,e)},n.raw=function(){return this.value_},n.toJSON=function(){return this.get()},n.toString=function(){return this.name_+"["+this.value_+"]"},n.valueOf=function(){return T(this.get())},n[ke]=function(){return this.valueOf()},t}(j),$e=w("ObservableValue",Ze);Je=Symbol.toPrimitive;var et,tt,nt=function(){function e(e){this.dependenciesState_=et.NOT_TRACKING_,this.observing_=[],this.newObserving_=null,this.isBeingObserved_=!1,this.isPendingUnobservation_=!1,this.observers_=new Set,this.diffValue_=0,this.runId_=0,this.lastAccessedBy_=0,this.lowestObserverState_=et.UP_TO_DATE_,this.unboundDepsCount_=0,this.value_=new it(null),this.name_=void 0,this.triggeredBy_=void 0,this.isComputing_=!1,this.isRunningSetter_=!1,this.derivation=void 0,this.setter_=void 0,this.isTracing_=tt.NONE,this.scope_=void 0,this.equals_=void 0,this.requiresReaction_=void 0,this.keepAlive_=void 0,this.onBOL=void 0,this.onBUOL=void 0,e.get||r(31),this.derivation=e.get,this.name_=e.name||"ComputedValue",e.set&&(this.setter_=He("ComputedValue-setter",e.set)),this.equals_=e.equals||(e.compareStructural||e.struct?X.structural:X.default),this.scope_=e.context,this.requiresReaction_=e.requiresReaction,this.keepAlive_=!!e.keepAlive}var t=e.prototype;return t.onBecomeStale_=function(){!function(e){e.lowestObserverState_===et.UP_TO_DATE_&&(e.lowestObserverState_=et.POSSIBLY_STALE_,e.observers_.forEach(function(e){e.dependenciesState_===et.UP_TO_DATE_&&(e.dependenciesState_=et.POSSIBLY_STALE_,e.onBecomeStale_())}))}(this)},t.onBO=function(){this.onBOL&&this.onBOL.forEach(function(e){return e()})},t.onBUO=function(){this.onBUOL&&this.onBUOL.forEach(function(e){return e()})},t.get=function(){if(this.isComputing_&&r(32,this.name_,this.derivation),0!==bt.inBatch||0!==this.observers_.size||this.keepAlive_){if(It(this),st(this)){var e=bt.trackingContext;this.keepAlive_&&!e&&(bt.trackingContext=this),this.trackAndCompute()&&function(e){e.lowestObserverState_!==et.STALE_&&(e.lowestObserverState_=et.STALE_,e.observers_.forEach(function(t){t.dependenciesState_===et.POSSIBLY_STALE_?t.dependenciesState_=et.STALE_:t.dependenciesState_===et.UP_TO_DATE_&&(e.lowestObserverState_=et.UP_TO_DATE_)}))}(this),bt.trackingContext=e}}else st(this)&&(this.warnAboutUntrackedRead_(),St(),this.value_=this.computeValue_(!1),Ct());var t=this.value_;if(at(t))throw t.cause;return t},t.set=function(e){if(this.setter_){this.isRunningSetter_&&r(33,this.name_),this.isRunningSetter_=!0;try{this.setter_.call(this.scope_,e)}finally{this.isRunningSetter_=!1}}else r(34,this.name_)},t.trackAndCompute=function(){var e=this.value_,t=this.dependenciesState_===et.NOT_TRACKING_,n=this.computeValue_(!0),r=t||at(e)||at(n)||!this.equals_(e,n);return r&&(this.value_=n),r},t.computeValue_=function(e){this.isComputing_=!0;var t,n=Ye(!1);if(e)t=lt(this,this.derivation,this.scope_);else if(!0===bt.disableErrorBoundaries)t=this.derivation.call(this.scope_);else try{t=this.derivation.call(this.scope_)}catch(e){t=new it(e)}return Ke(n),this.isComputing_=!1,t},t.suspend_=function(){this.keepAlive_||(ct(this),this.value_=void 0)},t.observe_=function(e,t){var n=this,r=!0,i=void 0;return Kt(function(){var a=n.get();if(!r||t){var s=ht();e({observableKind:"computed",debugObjectName:n.name_,type:or,object:n,newValue:a,oldValue:i}),dt(s)}r=!1,i=a})},t.warnAboutUntrackedRead_=function(){},t.toString=function(){return this.name_+"["+this.derivation.toString()+"]"},t.valueOf=function(){return T(this.get())},t[Je]=function(){return this.valueOf()},e}(),rt=w("ComputedValue",nt);!function(e){e[e.NOT_TRACKING_=-1]="NOT_TRACKING_",e[e.UP_TO_DATE_=0]="UP_TO_DATE_",e[e.POSSIBLY_STALE_=1]="POSSIBLY_STALE_",e[e.STALE_=2]="STALE_"}(et||(et={})),function(e){e[e.NONE=0]="NONE",e[e.LOG=1]="LOG",e[e.BREAK=2]="BREAK"}(tt||(tt={}));var it=function(e){this.cause=void 0,this.cause=e};function at(e){return e instanceof it}function st(e){switch(e.dependenciesState_){case et.UP_TO_DATE_:return!1;case et.NOT_TRACKING_:case et.STALE_:return!0;case et.POSSIBLY_STALE_:for(var t=pt(!0),n=ht(),r=e.observing_,i=r.length,a=0;ar&&(r=o.dependenciesState_)}for(n.length=i,e.newObserving_=null,a=t.length;a--;){var l=t[a];0===l.diffValue_&&wt(l,e),l.diffValue_=0}for(;i--;){var c=n[i];1===c.diffValue_&&(c.diffValue_=0,Et(c,e))}r!==et.UP_TO_DATE_&&(e.dependenciesState_=r,e.onBecomeStale_())}(e),ft(r),i}function ct(e){var t=e.observing_;e.observing_=[];for(var n=t.length;n--;)wt(t[n],e);e.dependenciesState_=et.NOT_TRACKING_}function ut(e){var t=ht();try{return e()}finally{dt(t)}}function ht(){var e=bt.trackingDerivation;return bt.trackingDerivation=null,e}function dt(e){bt.trackingDerivation=e}function pt(e){var t=bt.allowStateReads;return bt.allowStateReads=e,t}function ft(e){bt.allowStateReads=e}function mt(e){if(e.dependenciesState_!==et.UP_TO_DATE_){e.dependenciesState_=et.UP_TO_DATE_;for(var t=e.observing_,n=t.length;n--;)t[n].lowestObserverState_=et.UP_TO_DATE_}}var At=["mobxGuid","spyListeners","enforceActions","computedRequiresReaction","reactionRequiresObservable","observableRequiresReaction","allowStateReads","disableErrorBoundaries","runId","UNCHANGED","useProxies"],gt=function(){this.version=6,this.UNCHANGED={},this.trackingDerivation=null,this.trackingContext=null,this.runId=0,this.mobxGuid=0,this.inBatch=0,this.pendingUnobservations=[],this.pendingReactions=[],this.isRunningReactions=!1,this.allowStateChanges=!1,this.allowStateReads=!0,this.enforceActions=!0,this.spyListeners=[],this.globalReactionErrorHandlers=[],this.computedRequiresReaction=!1,this.reactionRequiresObservable=!1,this.observableRequiresReaction=!1,this.disableErrorBoundaries=!1,this.suppressReactionErrors=!1,this.useProxies=!0,this.verifyProxies=!1,this.safeDescriptors=!0},vt=!0,yt=!1,bt=function(){var e=a();return e.__mobxInstanceCount>0&&!e.__mobxGlobals&&(vt=!1),e.__mobxGlobals&&e.__mobxGlobals.version!==(new gt).version&&(vt=!1),vt?e.__mobxGlobals?(e.__mobxInstanceCount+=1,e.__mobxGlobals.UNCHANGED||(e.__mobxGlobals.UNCHANGED={}),e.__mobxGlobals):(e.__mobxInstanceCount=1,e.__mobxGlobals=new gt):(setTimeout(function(){yt||r(35)},1),new gt)}();function _t(){return bt}function xt(){var e=new gt;for(var t in e)-1===At.indexOf(t)&&(bt[t]=e[t]);bt.allowStateChanges=!bt.enforceActions}function Et(e,t){e.observers_.add(t),e.lowestObserverState_>t.dependenciesState_&&(e.lowestObserverState_=t.dependenciesState_)}function wt(e,t){e.observers_.delete(t),0===e.observers_.size&&Mt(e)}function Mt(e){!1===e.isPendingUnobservation_&&(e.isPendingUnobservation_=!0,bt.pendingUnobservations.push(e))}function St(){bt.inBatch++}function Ct(){if(0==--bt.inBatch){Ot();for(var e=bt.pendingUnobservations,t=0;t0&&Mt(e),!1)}function Tt(e){e.lowestObserverState_!==et.STALE_&&(e.lowestObserverState_=et.STALE_,e.observers_.forEach(function(e){e.dependenciesState_===et.UP_TO_DATE_&&e.onBecomeStale_(),e.dependenciesState_=et.STALE_}))}var Bt=function(){function e(e,t,n,r){void 0===e&&(e="Reaction"),this.name_=void 0,this.onInvalidate_=void 0,this.errorHandler_=void 0,this.requiresObservable_=void 0,this.observing_=[],this.newObserving_=[],this.dependenciesState_=et.NOT_TRACKING_,this.diffValue_=0,this.runId_=0,this.unboundDepsCount_=0,this.isDisposed_=!1,this.isScheduled_=!1,this.isTrackPending_=!1,this.isRunning_=!1,this.isTracing_=tt.NONE,this.name_=e,this.onInvalidate_=t,this.errorHandler_=n,this.requiresObservable_=r}var t=e.prototype;return t.onBecomeStale_=function(){this.schedule_()},t.schedule_=function(){this.isScheduled_||(this.isScheduled_=!0,bt.pendingReactions.push(this),Ot())},t.isScheduled=function(){return this.isScheduled_},t.runReaction_=function(){if(!this.isDisposed_){St(),this.isScheduled_=!1;var e=bt.trackingContext;if(bt.trackingContext=this,st(this)){this.isTrackPending_=!0;try{this.onInvalidate_()}catch(e){this.reportExceptionInDerivation_(e)}}bt.trackingContext=e,Ct()}},t.track=function(e){if(!this.isDisposed_){St(),this.isRunning_=!0;var t=bt.trackingContext;bt.trackingContext=this;var n=lt(this,e,void 0);bt.trackingContext=t,this.isRunning_=!1,this.isTrackPending_=!1,this.isDisposed_&&ct(this),at(n)&&this.reportExceptionInDerivation_(n.cause),Ct()}},t.reportExceptionInDerivation_=function(e){var t=this;if(this.errorHandler_)this.errorHandler_(e,this);else{if(bt.disableErrorBoundaries)throw e;var n="[mobx] uncaught error in '"+this+"'";bt.suppressReactionErrors||console.error(n,e),bt.globalReactionErrorHandlers.forEach(function(n){return n(e,t)})}},t.dispose=function(){this.isDisposed_||(this.isDisposed_=!0,this.isRunning_||(St(),ct(this),Ct()))},t.getDisposer_=function(e){var t=this,n=function n(){t.dispose(),null==e||null==e.removeEventListener||e.removeEventListener("abort",n)};return null==e||null==e.addEventListener||e.addEventListener("abort",n),n[H]=this,n},t.toString=function(){return"Reaction["+this.name_+"]"},t.trace=function(e){void 0===e&&(e=!1)},e}();function Rt(e){return bt.globalReactionErrorHandlers.push(e),function(){var t=bt.globalReactionErrorHandlers.indexOf(e);t>=0&&bt.globalReactionErrorHandlers.splice(t,1)}}var Pt=100,Lt=function(e){return e()};function Ot(){bt.inBatch>0||bt.isRunningReactions||Lt(Ut)}function Ut(){bt.isRunningReactions=!0;for(var e=bt.pendingReactions,t=0;e.length>0;){++t===Pt&&(console.error("[mobx] cycle in reaction: "+e[0]),e.splice(0));for(var n=e.splice(0),r=0,i=n.length;r0&&(n.dependencies=(t=e.observing_,Array.from(new Set(t))).map(dn)),n}function pn(e,t){return fn(Yr(e,t))}function fn(e){var t={name:e.name_};return function(e){return e.observers_&&e.observers_.size>0}(e)&&(t.observers=Array.from(function(e){return e.observers_}(e)).map(fn)),t}var mn=0;function An(){this.message="FLOW_CANCELLED"}function gn(e){return e instanceof An}An.prototype=Object.create(Error.prototype);var vn=ie("flow"),yn=ie("flow.bound",{bound:!0}),bn=Object.assign(function(e,t){if(z(t))return vn.decorate_20223_(e,t);if(v(t))return V(e,t,vn);var n=e,r=n.name||"",i=function(){var e,t=arguments,i=++mn,a=Wt(r+" - runid: "+i+" - init",n).apply(this,t),s=void 0,o=new Promise(function(t,n){var o=0;function l(e){var t;s=void 0;try{t=Wt(r+" - runid: "+i+" - yield "+o++,a.next).call(a,e)}catch(e){return n(e)}u(t)}function c(e){var t;s=void 0;try{t=Wt(r+" - runid: "+i+" - yield "+o++,a.throw).call(a,e)}catch(e){return n(e)}u(t)}function u(e){if(!g(null==e?void 0:e.then))return e.done?t(e.value):(s=Promise.resolve(e.value)).then(l,c);e.then(u,n)}e=n,l(void 0)});return o.cancel=Wt(r+" - runid: "+i+" - cancel",function(){try{s&&_n(s);var t=a.return(void 0),n=Promise.resolve(t.value);n.then(A,A),_n(n),e(new An)}catch(t){e(t)}}),o};return i.isMobXFlow=!0,i},vn);function _n(e){g(e.cancel)&&e.cancel()}function xn(e){return e}function En(e){return!0===(null==e?void 0:e.isMobXFlow)}function wn(e,t,n){var r;return Sr(e)||yr(e)||$e(e)?r=Kr(e):Dr(e)&&(r=Kr(e,t)),r.dehancer="function"==typeof t?t:n,function(){r.dehancer=void 0}}function Mn(e,t,n){return g(n)?function(e,t,n){return Kr(e,t).intercept_(n)}(e,t,n):function(e,t){return Kr(e).intercept_(t)}(e,t)}function Sn(e,t){if(void 0===t)return rt(e);if(!1===Dr(e))return!1;if(!e[H].values_.has(t))return!1;var n=Yr(e,t);return rt(n)}function Cn(e){return Sn(e)}function In(e,t){return Sn(e,t)}function Tn(e,t){return!!e&&(void 0!==t?!!Dr(e)&&e[H].values_.has(t):Dr(e)||!!e[H]||W(e)||Dt(e)||rt(e))}function Bn(e){return Tn(e)}function Rn(e,t){return Tn(e,t)}function Pn(e){return Dr(e)?e[H].keys_():Sr(e)||Tr(e)?Array.from(e.keys()):yr(e)?e.map(function(e,t){return t}):void r(5)}function Ln(e){return Dr(e)?Pn(e).map(function(t){return e[t]}):Sr(e)?Pn(e).map(function(t){return e.get(t)}):Tr(e)?Array.from(e.values()):yr(e)?e.slice():void r(6)}function On(e){return Dr(e)?Pn(e).map(function(t){return[t,e[t]]}):Sr(e)?Pn(e).map(function(t){return[t,e.get(t)]}):Tr(e)?Array.from(e.entries()):yr(e)?e.map(function(e,t){return[t,e]}):void r(7)}function Un(e,t,n){if(2!==arguments.length||Tr(e))Dr(e)?e[H].set_(t,n):Sr(e)?e.set(t,n):Tr(e)?e.add(t):yr(e)?("number"!=typeof t&&(t=parseInt(t,10)),t<0&&r("Invalid index: '"+t+"'"),St(),t>=e.length&&(e.length=t+1),e[t]=n,Ct()):r(8);else{St();var i=t;try{for(var a in i)Un(e,a,i[a])}finally{Ct()}}}function Dn(e,t){Dr(e)?e[H].delete_(t):Sr(e)||Tr(e)?e.delete(t):yr(e)?("number"!=typeof t&&(t=parseInt(t,10)),e.splice(t,1)):r(9)}function Fn(e,t){return Dr(e)?e[H].has_(t):Sr(e)||Tr(e)?e.has(t):yr(e)?t>=0&&t0}function Zn(e,t){var n=e.interceptors_||(e.interceptors_=[]);return n.push(t),m(function(){var e=n.indexOf(t);-1!==e&&n.splice(e,1)})}function $n(e,t){var n=ht();try{for(var i=[].concat(e.interceptors_||[]),a=0,s=i.length;a0}function tr(e,t){var n=e.changeListeners_||(e.changeListeners_=[]);return n.push(t),m(function(){var e=n.indexOf(t);-1!==e&&n.splice(e,1)})}function nr(e,t){var n=ht(),r=e.changeListeners_;if(r){for(var i=0,a=(r=r.slice()).length;i0?e.map(this.dehancer):e},t.intercept_=function(e){return Zn(this,e)},t.observe_=function(e,t){return void 0===t&&(t=!1),t&&e({observableKind:"array",object:this.proxy_,debugObjectName:this.atom_.name_,type:"splice",index:0,added:this.values_.slice(),addedCount:this.values_.length,removed:[],removedCount:0}),tr(this,e)},t.getArrayLength_=function(){return this.atom_.reportObserved(),this.values_.length},t.setArrayLength_=function(e){("number"!=typeof e||isNaN(e)||e<0)&&r("Out of range: "+e);var t=this.values_.length;if(e!==t)if(e>t){for(var n=new Array(e-t),i=0;i0&&qr(e+t+1)},t.spliceWithArray_=function(e,t,n){var r=this;this.atom_;var i=this.values_.length;if(void 0===e?e=0:e>i?e=i:e<0&&(e=Math.max(0,i+e)),t=1===arguments.length?i-e:null==t?0:Math.max(0,Math.min(t,i-e)),void 0===n&&(n=u),Jn(this)){var a=$n(this,{object:this.proxy_,type:sr,index:e,removedCount:t,added:n});if(!a)return u;t=a.removedCount,n=a.added}if(n=0===n.length?n:n.map(function(e){return r.enhancer_(e,void 0)}),this.legacyMode_){var s=n.length-t;this.updateArrayLength_(i,s)}var o=this.spliceItemsIntoValues_(e,t,n);return 0===t&&0===n.length||this.notifyArraySplice_(e,n,o),this.dehanceValues_(o)},t.spliceItemsIntoValues_=function(e,t,n){var r;if(n.length<1e4)return(r=this.values_).splice.apply(r,[e,t].concat(n));var i=this.values_.slice(e,e+t),a=this.values_.slice(e+t);this.values_.length+=n.length-t;for(var s=0;s=this.values_.length))return this.atom_.reportObserved(),this.dehanceValue_(this.values_[e]);console.warn("[mobx] Out of bounds read: "+e)},t.set_=function(e,t){var n=this.values_;if(this.legacyMode_&&e>n.length&&r(17,e,n.length),e2?n-2:0),i=2;i-1&&(this.splice(n,1),!0)}};function dr(e,t){"function"==typeof Array.prototype[e]&&(hr[e]=t(e))}function pr(e){return function(){var t=this[H];t.atom_.reportObserved();var n=t.dehanceValues_(t.values_);return n[e].apply(n,arguments)}}function fr(e){return function(t,n){var r=this,i=this[H];return i.atom_.reportObserved(),i.dehanceValues_(i.values_)[e](function(e,i){return t.call(n,e,i,r)})}}function mr(e){return function(){var t=this,n=this[H];n.atom_.reportObserved();var r=n.dehanceValues_(n.values_),i=arguments[0];return arguments[0]=function(e,n,r){return i(e,n,r,t)},r[e].apply(r,arguments)}}dr("at",pr),dr("concat",pr),dr("flat",pr),dr("includes",pr),dr("indexOf",pr),dr("join",pr),dr("lastIndexOf",pr),dr("slice",pr),dr("toString",pr),dr("toLocaleString",pr),dr("toSorted",pr),dr("toSpliced",pr),dr("with",pr),dr("every",fr),dr("filter",fr),dr("find",fr),dr("findIndex",fr),dr("findLast",fr),dr("findLastIndex",fr),dr("flatMap",fr),dr("forEach",fr),dr("map",fr),dr("some",fr),dr("toReversed",fr),dr("reduce",mr),dr("reduceRight",mr);var Ar,gr,vr=w("ObservableArrayAdministration",cr);function yr(e){return y(e)&&vr(e[H])}var br={},_r="add",xr="delete";Ar=Symbol.iterator,gr=Symbol.toStringTag;var Er,wr,Mr=function(){function e(e,t,n){var i=this;void 0===t&&(t=Y),void 0===n&&(n="ObservableMap"),this.enhancer_=void 0,this.name_=void 0,this[H]=br,this.data_=void 0,this.hasMap_=void 0,this.keysAtom_=void 0,this.interceptors_=void 0,this.changeListeners_=void 0,this.dehancer=void 0,this.enhancer_=t,this.name_=n,g(Map)||r(18),Zr(function(){i.keysAtom_=q("ObservableMap.keys()"),i.data_=new Map,i.hasMap_=new Map,e&&i.merge(e)})}var t=e.prototype;return t.has_=function(e){return this.data_.has(e)},t.has=function(e){var t=this;if(!bt.trackingDerivation)return this.has_(e);var n=this.hasMap_.get(e);if(!n){var r=n=new Ze(this.has_(e),K,"ObservableMap.key?",!1);this.hasMap_.set(e,r),rn(r,function(){return t.hasMap_.delete(e)})}return n.get()},t.set=function(e,t){var n=this.has_(e);if(Jn(this)){var r=$n(this,{type:n?or:_r,object:this,newValue:t,name:e});if(!r)return this;t=r.newValue}return n?this.updateValue_(e,t):this.addValue_(e,t),this},t.delete=function(e){var t=this;if(this.keysAtom_,Jn(this)&&!$n(this,{type:xr,object:this,name:e}))return!1;if(this.has_(e)){var n=er(this),r=n?{observableKind:"map",debugObjectName:this.name_,type:xr,object:this,oldValue:this.data_.get(e).value_,name:e}:null;return Wn(function(){var n;t.keysAtom_.reportChanged(),null==(n=t.hasMap_.get(e))||n.setNewValue_(!1),t.data_.get(e).setNewValue_(void 0),t.data_.delete(e)}),n&&nr(this,r),!0}return!1},t.updateValue_=function(e,t){var n=this.data_.get(e);if((t=n.prepareNewValue_(t))!==bt.UNCHANGED){var r=er(this),i=r?{observableKind:"map",debugObjectName:this.name_,type:or,object:this,oldValue:n.value_,name:e,newValue:t}:null;n.setNewValue_(t),r&&nr(this,i)}},t.addValue_=function(e,t){var n=this;this.keysAtom_,Wn(function(){var r,i=new Ze(t,n.enhancer_,"ObservableMap.key",!1);n.data_.set(e,i),t=i.value_,null==(r=n.hasMap_.get(e))||r.setNewValue_(!0),n.keysAtom_.reportChanged()});var r=er(this),i=r?{observableKind:"map",debugObjectName:this.name_,type:_r,object:this,name:e,newValue:t}:null;r&&nr(this,i)},t.get=function(e){return this.has(e)?this.dehanceValue_(this.data_.get(e).get()):this.dehanceValue_(void 0)},t.dehanceValue_=function(e){return void 0!==this.dehancer?this.dehancer(e):e},t.keys=function(){return this.keysAtom_.reportObserved(),this.data_.keys()},t.values=function(){var e=this,t=this.keys();return ri({next:function(){var n=t.next(),r=n.done,i=n.value;return{done:r,value:r?void 0:e.get(i)}}})},t.entries=function(){var e=this,t=this.keys();return ri({next:function(){var n=t.next(),r=n.done,i=n.value;return{done:r,value:r?void 0:[i,e.get(i)]}}})},t[Ar]=function(){return this.entries()},t.forEach=function(e,t){for(var n,r=k(this);!(n=r()).done;){var i=n.value,a=i[0],s=i[1];e.call(t,s,a,this)}},t.merge=function(e){var t=this;return Sr(e)&&(e=new Map(e)),Wn(function(){b(e)?function(e){var t=Object.keys(e);if(!C)return t;var n=Object.getOwnPropertySymbols(e);return n.length?[].concat(t,n.filter(function(t){return c.propertyIsEnumerable.call(e,t)})):t}(e).forEach(function(n){return t.set(n,e[n])}):Array.isArray(e)?e.forEach(function(e){var n=e[0],r=e[1];return t.set(n,r)}):M(e)?(e.constructor!==Map&&r(19,e),e.forEach(function(e,n){return t.set(n,e)})):null!=e&&r(20,e)}),this},t.clear=function(){var e=this;Wn(function(){ut(function(){for(var t,n=k(e.keys());!(t=n()).done;){var r=t.value;e.delete(r)}})})},t.replace=function(e){var t=this;return Wn(function(){for(var n,i=function(e){if(M(e)||Sr(e))return e;if(Array.isArray(e))return new Map(e);if(b(e)){var t=new Map;for(var n in e)t.set(n,e[n]);return t}return r(21,e)}(e),a=new Map,s=!1,o=k(t.data_.keys());!(n=o()).done;){var l=n.value;if(!i.has(l))if(t.delete(l))s=!0;else{var c=t.data_.get(l);a.set(l,c)}}for(var u,h=k(i.entries());!(u=h()).done;){var d=u.value,p=d[0],f=d[1],m=t.data_.has(p);if(t.set(p,f),t.data_.has(p)){var A=t.data_.get(p);a.set(p,A),m||(s=!0)}}if(!s)if(t.data_.size!==a.size)t.keysAtom_.reportChanged();else for(var g=t.data_.keys(),v=a.keys(),y=g.next(),_=v.next();!y.done;){if(y.value!==_.value){t.keysAtom_.reportChanged();break}y=g.next(),_=v.next()}t.data_=a}),this},t.toString=function(){return"[object ObservableMap]"},t.toJSON=function(){return Array.from(this)},t.observe_=function(e,t){return tr(this,e)},t.intercept_=function(e){return Zn(this,e)},L(e,[{key:"size",get:function(){return this.keysAtom_.reportObserved(),this.data_.size}},{key:gr,get:function(){return"Map"}}]),e}(),Sr=w("ObservableMap",Mr),Cr={};Er=Symbol.iterator,wr=Symbol.toStringTag;var Ir=function(){function e(e,t,n){var i=this;void 0===t&&(t=Y),void 0===n&&(n="ObservableSet"),this.name_=void 0,this[H]=Cr,this.data_=new Set,this.atom_=void 0,this.changeListeners_=void 0,this.interceptors_=void 0,this.dehancer=void 0,this.enhancer_=void 0,this.name_=n,g(Set)||r(22),this.enhancer_=function(e,r){return t(e,r,n)},Zr(function(){i.atom_=q(i.name_),e&&i.replace(e)})}var t=e.prototype;return t.dehanceValue_=function(e){return void 0!==this.dehancer?this.dehancer(e):e},t.clear=function(){var e=this;Wn(function(){ut(function(){for(var t,n=k(e.data_.values());!(t=n()).done;){var r=t.value;e.delete(r)}})})},t.forEach=function(e,t){for(var n,r=k(this);!(n=r()).done;){var i=n.value;e.call(t,i,i,this)}},t.add=function(e){var t=this;if(this.atom_,Jn(this)&&!$n(this,{type:_r,object:this,newValue:e}))return this;if(!this.has(e)){Wn(function(){t.data_.add(t.enhancer_(e,void 0)),t.atom_.reportChanged()});var n=er(this),r=n?{observableKind:"set",debugObjectName:this.name_,type:_r,object:this,newValue:e}:null;n&&nr(this,r)}return this},t.delete=function(e){var t=this;if(Jn(this)&&!$n(this,{type:xr,object:this,oldValue:e}))return!1;if(this.has(e)){var n=er(this),r=n?{observableKind:"set",debugObjectName:this.name_,type:xr,object:this,oldValue:e}:null;return Wn(function(){t.atom_.reportChanged(),t.data_.delete(e)}),n&&nr(this,r),!0}return!1},t.has=function(e){return this.atom_.reportObserved(),this.data_.has(this.dehanceValue_(e))},t.entries=function(){var e=0,t=Array.from(this.keys()),n=Array.from(this.values());return ri({next:function(){var r=e;return e+=1,rVr){for(var t=Vr;t=0&&n++}e=ni(e),t=ni(t);var o="[object Array]"===s;if(!o){if("object"!=typeof e||"object"!=typeof t)return!1;var l=e.constructor,c=t.constructor;if(l!==c&&!(g(l)&&l instanceof l&&g(c)&&c instanceof c)&&"constructor"in e&&"constructor"in t)return!1}if(0===n)return!1;n<0&&(n=-1),i=i||[];for(var u=(r=r||[]).length;u--;)if(r[u]===e)return i[u]===t;if(r.push(e),i.push(t),o){if((u=e.length)!==t.length)return!1;for(;u--;)if(!ti(e[u],t[u],n-1,r,i))return!1}else{var h,d=Object.keys(e);if(u=d.length,Object.keys(t).length!==u)return!1;for(;u--;)if(!B(t,h=d[u])||!ti(e[h],t[h],n-1,r,i))return!1}return r.pop(),i.pop(),!0}function ni(e){return yr(e)?e.slice():M(e)||Sr(e)||S(e)||Tr(e)?Array.from(e.entries()):e}function ri(e){return e[Symbol.iterator]=ii,e}function ii(){return this}["Symbol","Map","Set"].forEach(function(e){void 0===a()[e]&&r("MobX requires global '"+e+"' to be available or polyfilled")}),"object"==typeof __MOBX_DEVTOOLS_GLOBAL_HOOK__&&__MOBX_DEVTOOLS_GLOBAL_HOOK__.injectMobx({spy:Ft,extras:{getDebugName:Jr},$mobx:H})},3443:(e,t,n)=>{"use strict";n.r(t),n.d(t,{AlphaMap:()=>c,AlphaMapFields:()=>l,AlphaMapFragment:()=>o(),AlphaMapParsFragment:()=>a(),AoMap:()=>h,AoMapFields:()=>u,BlendMode:()=>m,BlendModeFields:()=>f,Brightness:()=>_,BrightnessFields:()=>b,BrightnessFragment:()=>y(),BrightnessVars:()=>g(),Color:()=>M,ColorFields:()=>w,CustomUVParsFragment:()=>ye(),CustomUVParsVertex:()=>me(),CustomUVVertex:()=>ge(),DepthMode:()=>C,DepthModeFields:()=>S,EnvMap:()=>T,EnvMapFields:()=>I,Exposure:()=>U,ExposureFields:()=>O,ExposureFragment:()=>R(),ExposureVars:()=>L(),Gamma:()=>G,GammaFields:()=>Q,GammaFragment:()=>F(),GammaVars:()=>k(),HSLFields:()=>W,HSLFragment:()=>z(),HSLVars:()=>j(),HueSaturationLightness:()=>q,Levels:()=>$,LevelsFields:()=>Z,LevelsFragment:()=>Y(),LevelsVars:()=>J(),LightMap:()=>ae,LightMapFields:()=>ie,LightMapFragment:()=>te(),LightMapParsFragment:()=>re(),Ocular:()=>pe,OcularFields:()=>de,OcularFragment:()=>oe(),OcularParsFragment:()=>ce(),OcularWorldPosVertex:()=>he(),ParallaxMapping:()=>Ce,ParallaxMappingFields:()=>Se,ParallaxMappingFragment:()=>Ee(),ParallaxMappingFragmentFinal:()=>Me(),ParallaxMappingParsFragment:()=>_e(),Saturation:()=>Le,SaturationFields:()=>Pe,SaturationFragment:()=>Te(),SaturationVars:()=>Re(),ToneMap:()=>Ue,ToneMapFields:()=>Oe,Transparency:()=>Fe,TransparencyFields:()=>De});var r=n(9614),i=n(6946),a=n.n(i),s=n(2387),o=n.n(s);const l=Object.assign(Object.assign(Object.assign({},r.rV),{alphaMap:{defaultValue:"",filter:"texture",render:e=>"interpolation"!==(null==e?void 0:e.transition),type:"Asset"},alphaMapOpacity:{defaultValue:0,min:0,max:1,step:.01,label:"opacity",type:"Slider"},enableAlphaMap:{defaultValue:!0,type:"Boolean"}}),r.Ah);class c extends r.z{constructor({component:e,data:t,material:n}){super({component:e,data:t,instructions:[{target:r.MJ.FragmentShader,type:r.nE.Replace,token:"#include ",chunk:a()},{target:r.MJ.FragmentShader,type:r.nE.Replace,token:"#include ",chunk:o()}],material:n,name:"AlphaMap"}),this.material.transparent=!0}}Object.defineProperty(c,"fields",{enumerable:!0,configurable:!0,writable:!0,value:l});const u=Object.assign(Object.assign(Object.assign({},r.rV),{aoMap:{defaultValue:"",filter:"texture",render:e=>"interpolation"!==(null==e?void 0:e.transition),type:"Asset"},aoMapIntensity:{defaultValue:1,type:"Number"}}),r.Ah);class h extends r.z{constructor({component:e,data:t,material:n}){super({component:e,material:n,name:"AoMap",data:t})}}Object.defineProperty(h,"fields",{enumerable:!0,configurable:!0,writable:!0,value:u});var d=n(4468);const p=[{label:"ZeroFactor",value:d.ZeroFactor},{label:"OneFactor",value:d.OneFactor},{label:"SrcColorFactor",value:d.SrcColorFactor},{label:"OneMinusSrcColorFactor",value:d.OneMinusSrcColorFactor},{label:"SrcAlphaFactor",value:d.SrcAlphaFactor},{label:"OneMinusSrcAlphaFactor",value:d.OneMinusSrcAlphaFactor},{label:"DstAlphaFactor",value:d.DstAlphaFactor},{label:"OneMinusDstAlphaFactor",value:d.OneMinusDstAlphaFactor},{label:"DstColorFactor",value:d.DstColorFactor},{label:"OneMinusDstColorFactor",value:d.OneMinusDstColorFactor},{label:"SrcAlphaSaturateFactor",value:d.SrcAlphaSaturateFactor}],f=Object.assign(Object.assign({},r.rV),{blending:{dataType:"Number",defaultValue:d.NormalBlending,options:[{label:"NoBlending",value:d.NoBlending},{label:"NormalBlending",value:d.NormalBlending},{label:"AdditiveBlending",value:d.AdditiveBlending},{label:"SubtractiveBlending",value:d.SubtractiveBlending},{label:"MultiplyBlending",value:d.MultiplyBlending},{label:"CustomBlending",value:d.CustomBlending}],type:"Select"},blendSrc:{dataType:"Number",defaultValue:d.OneFactor,options:p,type:"Select",render:e=>e.blending===d.CustomBlending},blendDst:{dataType:"Number",defaultValue:d.ZeroFactor,options:p.filter(e=>e.value!==d.SrcAlphaSaturateFactor),type:"Select",render:e=>e.blending===d.CustomBlending},blendEquation:{dataType:"Number",defaultValue:d.AddEquation,options:[{label:"AddEquation",value:d.AddEquation},{label:"SubtractEquation",value:d.SubtractEquation},{label:"ReverseSubtractEquation",value:d.ReverseSubtractEquation},{label:"MinEquation",value:d.MinEquation},{label:"MaxEquation",value:d.MaxEquation}],type:"Select",render:e=>e.blending===d.CustomBlending}});class m extends r.z{constructor({component:e,data:t,material:n}){super({component:e,data:t,material:n,name:"BlendMode"})}}Object.defineProperty(m,"fields",{enumerable:!0,configurable:!0,writable:!0,value:f});var A=n(3992),g=n.n(A),v=n(6944),y=n.n(v);const b=Object.assign(Object.assign(Object.assign({},r.rV),{brightness:{defaultValue:1,min:0,max:10,render:e=>"interpolation"!==(null==e?void 0:e.transition),step:.01,type:"Slider"},enableBrightness:{defaultValue:!0,type:"Boolean"}}),r.Ah);class _ extends r.z{constructor({component:e,data:t,material:n}){super({component:e,data:t,instructions:[{target:r.MJ.FragmentShader,type:r.nE.InjectAfter,token:"#include ",chunk:g()},{target:r.MJ.FragmentShader,type:r.nE.InjectBefore,token:"#include ",chunk:y()}],material:n,name:"Brightness"})}}Object.defineProperty(_,"fields",{enumerable:!0,configurable:!0,writable:!0,value:b});var x=n(1469),E=n.n(x);const w=Object.assign(Object.assign(Object.assign({},r.rV),{color:{defaultValue:[1,0,1],render:e=>"interpolation"!==(null==e?void 0:e.transition),type:"Color"}}),r.Ah);class M extends r.z{constructor({component:e,data:t,material:n}){super({component:e,data:t,material:n,name:"Color"}),this.autorun(this.onColorUpdate.bind(this))}onColorUpdate(){const e=this;if(E()(e.color[0])){const t=[0,0,0];e.color.forEach((n,r)=>n.forEach((n,i)=>t[i]+=n*e.colorMixer[r])),this.material.color.fromArray(t)}else this.material.color.fromArray(e.color)}}Object.defineProperty(M,"fields",{enumerable:!0,configurable:!0,writable:!0,value:w});const S=Object.assign(Object.assign({},r.rV),{depthWrite:{defaultValue:!0,type:"Boolean"},depthTest:{defaultValue:!0,type:"Boolean"},depthFunc:{dataType:"Number",defaultValue:d.LessEqualDepth,options:[{label:"NeverDepth",value:d.NeverDepth},{label:"AlwaysDepth",value:d.AlwaysDepth},{label:"EqualDepth",value:d.EqualDepth},{label:"LessDepth",value:d.LessDepth},{label:"LessEqualDepth",value:d.LessEqualDepth},{label:"GreaterEqualDepth",value:d.GreaterEqualDepth},{label:"GreaterDepth",value:d.GreaterDepth},{label:"NotEqualDepth",value:d.NotEqualDepth}],type:"Select"}});class C extends r.z{constructor({component:e,data:t,material:n}){super({component:e,data:t,material:n,name:"DepthMode"})}}Object.defineProperty(C,"fields",{enumerable:!0,configurable:!0,writable:!0,value:S});const I=Object.assign(Object.assign(Object.assign({},r.rV),{envMap:{defaultValue:"",filter:"texture",render:e=>"interpolation"!==(null==e?void 0:e.transition),type:"Asset"},envMapIntensity:{defaultValue:1,type:"Number"},envMapRotation:{defaultValue:[0,0,0],type:"Vector"}}),r.Ah);class T extends r.z{constructor({component:e,data:t,material:n}){super({component:e,data:t,material:n,name:"EnvMap"})}}Object.defineProperty(T,"fields",{enumerable:!0,configurable:!0,writable:!0,value:I});var B=n(5439),R=n.n(B),P=n(6309),L=n.n(P);const O=Object.assign(Object.assign(Object.assign({},r.rV),{exposure:{defaultValue:0,min:-6,max:6,render:e=>"interpolation"!==(null==e?void 0:e.transition),step:.01,type:"Slider"},enableExposure:{defaultValue:!0,type:"Boolean"}}),r.Ah);class U extends r.z{constructor({component:e,data:t,material:n}){super({component:e,data:t,instructions:[{target:r.MJ.FragmentShader,type:r.nE.InjectAfter,token:"#include ",chunk:L()},{target:r.MJ.FragmentShader,type:r.nE.InjectBefore,token:"#include ",chunk:R()}],material:n,name:"Exposure"})}}Object.defineProperty(U,"fields",{enumerable:!0,configurable:!0,writable:!0,value:O});var D=n(8149),F=n.n(D),N=n(6992),k=n.n(N);const Q=Object.assign(Object.assign(Object.assign({},r.rV),{gamma:{defaultValue:0,min:0,max:10,render:e=>"interpolation"!==(null==e?void 0:e.transition),step:.01,type:"Slider"},enableGamma:{defaultValue:!0,type:"Boolean"}}),r.Ah);class G extends r.z{constructor({component:e,data:t,material:n}){super({component:e,data:t,instructions:[{target:r.MJ.FragmentShader,type:r.nE.InjectAfter,token:"#include ",chunk:k()},{target:r.MJ.FragmentShader,type:r.nE.InjectBefore,token:"#include ",chunk:F()}],material:n,name:"Gamma"})}}Object.defineProperty(G,"fields",{enumerable:!0,configurable:!0,writable:!0,value:Q});var V=n(8210),z=n.n(V),H=n(5310),j=n.n(H);const W=Object.assign(Object.assign(Object.assign({},r.rV),{hue:{defaultValue:0,min:-180,max:180,render:e=>"interpolation"!==(null==e?void 0:e.transition),step:1,type:"Slider"},saturation:{defaultValue:0,min:-100,max:1e3,render:e=>"interpolation"!==(null==e?void 0:e.transition),step:1,type:"Slider"},lightness:{defaultValue:0,min:-100,max:100,render:e=>"interpolation"!==(null==e?void 0:e.transition),step:1,type:"Slider"},enableHSL:{defaultValue:!0,type:"Boolean"}}),r.Ah);class q extends r.z{constructor({component:e,data:t,material:n}){super({component:e,data:t,instructions:[{target:r.MJ.FragmentShader,type:r.nE.InjectAfter,token:"#include ",chunk:j()},{target:r.MJ.FragmentShader,type:r.nE.InjectAfter,token:"#include ",chunk:z()}],material:n,name:"HueSaturationLightness"})}}Object.defineProperty(q,"fields",{enumerable:!0,configurable:!0,writable:!0,value:W});var X=n(3939),Y=n.n(X),K=n(7811),J=n.n(K);const Z=Object.assign(Object.assign(Object.assign({},r.rV),{shadows:{defaultValue:0,min:0,max:255,render:e=>"interpolation"!==(null==e?void 0:e.transition),step:1,type:"Slider"},gamma:{defaultValue:1,min:0,max:10,render:e=>"interpolation"!==(null==e?void 0:e.transition),step:.01,type:"Slider"},highlights:{defaultValue:255,min:0,max:255,render:e=>"interpolation"!==(null==e?void 0:e.transition),step:1,type:"Slider"},outputShadows:{defaultValue:0,min:0,max:255,render:e=>"interpolation"!==(null==e?void 0:e.transition),step:1,type:"Slider"},outputHighlights:{defaultValue:255,min:0,max:255,render:e=>"interpolation"!==(null==e?void 0:e.transition),step:1,type:"Slider"},enableLevels:{defaultValue:!0,type:"Boolean"}}),r.Ah);class $ extends r.z{constructor({component:e,data:t,material:n}){super({component:e,data:t,instructions:[{target:r.MJ.FragmentShader,type:r.nE.InjectAfter,token:"#include ",chunk:J()},{target:r.MJ.FragmentShader,type:r.nE.InjectAfter,token:"#include ",chunk:Y()}],material:n,name:"Levels"})}}Object.defineProperty($,"fields",{enumerable:!0,configurable:!0,writable:!0,value:Z});var ee=n(4093),te=n.n(ee),ne=n(9634),re=n.n(ne);const ie=Object.assign(Object.assign(Object.assign({},r.rV),{lightMap:{defaultValue:"",filter:"texture",render:e=>"interpolation"!==(null==e?void 0:e.transition),type:"Asset"},lightMapColor:{defaultValue:[1,1,1],render:e=>"interpolation"!==(null==e?void 0:e.transition),type:"Vector"},lightMapIntensity:{defaultValue:1,min:0,max:10,render:e=>"interpolation"!==(null==e?void 0:e.transition),step:.001,type:"Slider"}}),r.Ah);class ae extends r.z{constructor({component:e,data:t,material:n}){super({component:e,data:t,instructions:[{target:r.MJ.FragmentShader,type:r.nE.Replace,token:"#include ",chunk:re()},{target:r.MJ.FragmentShader,type:r.nE.Replace,token:"#include ",chunk:te()}],material:n,name:"LightMap"})}}Object.defineProperty(ae,"fields",{enumerable:!0,configurable:!0,writable:!0,value:ie});var se=n(4372),oe=n.n(se),le=n(4352),ce=n.n(le),ue=n(336),he=n.n(ue);const de=Object.assign(Object.assign({},r.rV),{ocularBias:{defaultValue:0,type:"Slider",min:-1,max:1},ocularEmissiveMap:{defaultValue:"",filter:"texture",type:"Asset"},ocularEmissiveIntensity:{defaultValue:1,type:"Slider",min:0,max:2},ocularEmissiveWorldPos:{defaultValue:[0,0,0],type:"Vector"},ocularGlancing:{defaultValue:1,type:"Slider",min:0,max:1},ocularGlancingShape:{defaultValue:0,type:"Slider",min:-2,max:2},ocularImageCenter:{defaultValue:[.5,.5],type:"Vector"},ocularIOR:{defaultValue:1.1,type:"Slider",min:1,max:1.5},ocularNormalScale:{defaultValue:1,type:"Slider",min:0,max:2},ocularRotation:{defaultValue:[0,0],type:"Vector"},ocularVignette:{defaultValue:.01,min:.001,max:.5,type:"Slider"},ocularZoom:{defaultValue:1,min:.1,max:3,type:"Slider"}});class pe extends r.z{constructor({component:e,data:t,material:n}){super({component:e,data:t,instructions:[{target:r.MJ.FragmentShader,type:r.nE.InjectBefore,token:"#include ",chunk:ce()},{target:r.MJ.FragmentShader,type:r.nE.Replace,token:"#include ",chunk:oe()},{target:r.MJ.VertexShader,type:r.nE.InjectBefore,token:"#include ",chunk:"varying vec3 vWorldPosition;"},{target:r.MJ.VertexShader,type:r.nE.Replace,token:"#include ",chunk:he()}],material:n,name:"Ocular"}),this.autorun(this.onOcularEmissiveMapUpdate.bind(this))}onOcularEmissiveMapUpdate(){var e,t;if(null===(e=this.uniforms.values)||void 0===e?void 0:e.ocularEmissiveMap){const e=null===(t=this.uniforms.values)||void 0===t?void 0:t.ocularEmissiveMap;this.material.uniforms.ocularAspect={value:e.image.width/e.image.height}}}}Object.defineProperty(pe,"fields",{enumerable:!0,configurable:!0,writable:!0,value:de});var fe=n(5246),me=n.n(fe),Ae=n(8626),ge=n.n(Ae),ve=n(640),ye=n.n(ve),be=n(7895),_e=n.n(be),xe=n(3268),Ee=n.n(xe),we=n(1753),Me=n.n(we);const Se=Object.assign(Object.assign({},r.rV),{parallaxMode:{defaultValue:"USE_OCCLUSION_PARALLAX",options:[{label:"USE_BASIC_PARALLAX",value:"USE_BASIC_PARALLAX"},{label:"USE_STEEP_PARALLAX",value:"USE_STEEP_PARALLAX"},{label:"USE_OCCLUSION_PARALLAX",value:"USE_OCCLUSION_PARALLAX"},{label:"USE_RELIEF_PARALLAX",value:"USE_RELIEF_PARALLAX"}],type:"Select"},parallaxMap:{defaultValue:"",filter:"texture",type:"Asset"},parallaxMapChannel:{defaultValue:[1,0,0],type:"Vector"},parallaxMapInverted:{defaultValue:!1,type:"Boolean"},parallaxClip:{defaultValue:!1,type:"Boolean"},parallaxClipOffset:{defaultValue:.01,min:0,max:.2,step:.001,type:"Slider"},parallaxScale:{defaultValue:.05,min:0,max:1,step:.001,type:"Slider"},parallaxMinLayers:{defaultValue:20,min:1,max:128,step:1,type:"Slider"},parallaxMaxLayers:{defaultValue:25,min:1,max:128,step:1,type:"Slider"},parallaxAOUseOwnUV:{defaultValue:!1,type:"Boolean"},parallaxUseLightmap:{defaultValue:!1,type:"Boolean"},parallaxLightmapUseOwnUV:{defaultValue:!1,type:"Boolean"}});class Ce extends r.z{constructor({component:e,data:t,material:n}){super({component:e,data:t,instructions:[{target:r.MJ.VertexShader,type:r.nE.Replace,token:"#include ",chunk:me()},{target:r.MJ.VertexShader,type:r.nE.Replace,token:"#include ",chunk:ge()},{target:r.MJ.FragmentShader,type:r.nE.Replace,token:"#include ",chunk:ye()},{target:r.MJ.FragmentShader,type:r.nE.InjectAfter,token:"#include ",chunk:_e()},{target:r.MJ.FragmentShader,type:r.nE.InjectBefore,token:"#include ",chunk:Ee()},{target:r.MJ.FragmentShader,type:r.nE.InjectBefore,token:"#include ",chunk:Me()}],material:n,name:"ParallaxMapping"}),this.observe(this.data,"parallaxMap",this.onParallaxMapUpdate.bind(this),!0),this.observe(this.data,"parallaxMode",this.onParallaxModeUpdate.bind(this),!0)}onParallaxMapUpdate(){return function(e,t,n,r){return new(n||(n=Promise))(function(i,a){function s(e){try{l(r.next(e))}catch(e){a(e)}}function o(e){try{l(r.throw(e))}catch(e){a(e)}}function l(e){var t;e.done?i(e.value):(t=e.value,t instanceof n?t:new n(function(e){e(t)})).then(s,o)}l((r=r.apply(e,t||[])).next())})}(this,void 0,void 0,function*(){if(!this.data.parallaxMap)return;const e=yield r.Assets.getAssetPromise(this.data.parallaxMap);e&&(this.material.map&&(e.repeat=this.material.map.repeat,e.center=this.material.map.center,e.offset=this.material.map.offset,e.flipY=this.material.map.flipY,e.wrapS=this.material.map.wrapS,e.wrapT=this.material.map.wrapT),this.material.uniforms.parallaxMap={value:e});const t=new d.Vector4(1,1,.5,.5);this.material.map&&(t.x=this.material.map.repeat.x,t.y=this.material.map.repeat.y,t.z=this.material.map.offset.x,t.w=this.material.map.offset.y),this.material.uniforms.parallaxUvTransform={value:t},this.material.uniformsNeedUpdate=!0,this.material.needsUpdate=!0})}onParallaxModeUpdate(){this.material.defines={USE_BASIC_PARALLAX:"USE_BASIC_PARALLAX"===this.data.parallaxMode,USE_STEEP_PARALLAX:"USE_STEEP_PARALLAX"===this.data.parallaxMode,USE_OCCLUSION_PARALLAX:"USE_OCCLUSION_PARALLAX"===this.data.parallaxMode,USE_RELIEF_PARALLAX:"USE_RELIEF_PARALLAX"===this.data.parallaxMode}}}Object.defineProperty(Ce,"fields",{enumerable:!0,configurable:!0,writable:!0,value:Se});var Ie=n(5986),Te=n.n(Ie),Be=n(8232),Re=n.n(Be);const Pe=Object.assign(Object.assign(Object.assign({},r.rV),{saturation:{defaultValue:1,min:0,max:10,render:e=>"interpolation"!==(null==e?void 0:e.transition),step:.01,type:"Slider"},enableSaturation:{defaultValue:!0,type:"Boolean"}}),r.Ah);class Le extends r.z{constructor({component:e,data:t,material:n}){super({component:e,data:t,instructions:[{target:r.MJ.FragmentShader,type:r.nE.InjectAfter,token:"#include ",chunk:Re()},{target:r.MJ.FragmentShader,type:r.nE.InjectBefore,token:"#include ",chunk:Te()}],material:n,name:"Saturation"})}}Object.defineProperty(Le,"fields",{enumerable:!0,configurable:!0,writable:!0,value:Pe});const Oe=Object.assign(Object.assign({},r.rV),{toneMapped:{defaultValue:!1,type:"Boolean"}});class Ue extends r.z{constructor({component:e,data:t,material:n}){super({component:e,data:t,material:n,name:"ToneMap"})}}Object.defineProperty(Ue,"fields",{enumerable:!0,configurable:!0,writable:!0,value:Oe});const De=Object.assign(Object.assign(Object.assign({},r.rV),{transparent:{defaultValue:!1,type:"Boolean"},opacity:{dataType:"Number",defaultValue:1,min:0,max:1,render:e=>"interpolation"!==(null==e?void 0:e.transition),step:.001,type:"Slider"}}),r.Ah);class Fe extends r.z{constructor({component:e,data:t,material:n}){super({component:e,data:t,material:n,name:"Transparency"})}}Object.defineProperty(Fe,"fields",{enumerable:!0,configurable:!0,writable:!0,value:De})},1790:(e,t,n)=>{"use strict";n.d(t,{f:()=>c});var r=n(8949),i=n(3465),a=n(4178),s=n(5344),o=n(5052),l=n(1089);class c extends s.X{constructor(e,t){super(),Object.defineProperty(this,"data",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"keyframes",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"selector",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"timeline",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"isPlaying",{enumerable:!0,configurable:!0,writable:!0,value:!1}),this.data=t,this.selector=e,(0,r.makeObservable)(this,{component:r.computed,data:r.observable}),this.onTimelineStart=this.onTimelineStart.bind(this),this.onTimelineUpdate=this.onTimelineUpdate.bind(this),this.onTimelineComplete=this.onTimelineComplete.bind(this),this.autorun(this.onComponentFound.bind(this))}get component(){var e;return null===(e=i.Lotus.scene)||void 0===e?void 0:e.getComponentByName(this.selector)}onComponentFound(){this.component&&(this.destroyKeyframe(),this.createKeyframe())}createKeyframe(){this.keyframes=new o.E({component:this.component,data:this.data})}destroyKeyframe(){var e;null===(e=this.keyframes)||void 0===e||e.destroy(),this.keyframes=void 0}set(e){var t;null===(t=this.keyframes)||void 0===t||t.set(e)}setFrom(e){var t;null===(t=this.keyframes)||void 0===t||t.setFrom(e)}setTo(e){var t;null===(t=this.keyframes)||void 0===t||t.setTo(e)}createTimeline(){var e;this.destroyTimeline(),(null===(e=this.keyframes)||void 0===e?void 0:e.list)&&(this.timeline=new l.T({keyframes:this.keyframes.list,onStart:this.onTimelineStart,onUpdate:this.onTimelineUpdate,onComplete:this.onTimelineComplete}))}destroyTimeline(){var e;null===(e=this.timeline)||void 0===e||e.destroy(),this.timeline=void 0}onTimelineStart(){var e,t,n,r;this.isPlaying=!0;const i={current:this.data,from:this.keyframes.from,to:this.keyframes.to,timeline:this.timeline};"transition"===a.F.type&&(null===(t=(e=this.component).onTransitionStart)||void 0===t||t.call(e,i)),null===(r=(n=this.component).onAnimationStart)||void 0===r||r.call(n,i)}onTimelineUpdate(){var e,t,n,r;this.isPlaying=!0;const i={current:this.data,from:this.keyframes.from,to:this.keyframes.to,timeline:this.timeline};null===(t=(e=this.component).onAnimationUpdate)||void 0===t||t.call(e,i),null===(r=(n=this.component).onTransitionUpdate)||void 0===r||r.call(n,i)}onTimelineComplete(){var e,t,n,r;this.isPlaying=!1;const i={current:this.data,from:this.keyframes.from,to:this.keyframes.to,timeline:this.timeline};"transition"===a.F.type&&(null===(t=(e=this.component).onTransitionComplete)||void 0===t||t.call(e,i)),null===(r=(n=this.component).onAnimationComplete)||void 0===r||r.call(n,i)}pause(){var e;null===(e=this.timeline)||void 0===e||e.pause()}play(){var e,t;null===(e=this.keyframes)||void 0===e||e.setAnimation(),this.createTimeline(),null===(t=this.timeline)||void 0===t||t.play()}destroy(){super.destroy(),this.destroyTimeline(),this.destroyKeyframe()}}},4178:(e,t,n)=>{"use strict";n.d(t,{F:()=>o,d:()=>s});var r=n(8949),i=n(3465),a=n(1790);class s{constructor(){Object.defineProperty(this,"list",{enumerable:!0,configurable:!0,writable:!0,value:new Map}),Object.defineProperty(this,"type",{enumerable:!0,configurable:!0,writable:!0,value:"standard"}),(0,r.makeObservable)(this,{list:r.observable,type:r.observable})}create({animations:e}){const t=new Set(e.flatMap(e=>Object.keys(e)));t.delete("@states"),t.forEach(t=>{var n;const r=e.filter(e=>e[t]).map(e=>({"@states":e["@states"],[t]:e[t]}));null===(n=this.list.get(t))||void 0===n||n.destroy(),this.list.set(t,new a.f(t,r))})}set(e){this.list.forEach(t=>t.set(e)),i.Lotus.tryRequestAnimationFrame()}setFrom(e){this.list.forEach(t=>t.setFrom(e))}setTo(e){this.list.forEach(t=>t.setTo(e))}play(){0===this.progress||1===this.progress?this.type="standard":this.type="transition",this.list.forEach(e=>e.play())}get progress(){let e=0;return this.list.forEach(t=>{var n,r;e+=null!==(r=null===(n=t.timeline)||void 0===n?void 0:n.progress)&&void 0!==r?r:1}),e/=this.list.size,e}reload({content:e,path:t}){}destroy(){this.list.forEach(e=>e.destroy()),this.list.clear()}}const o=new s},940:(e,t,n)=>{"use strict";n.d(t,{B:()=>d,M:()=>p});var r=n(4468),i=n(8721),a=n.n(i),s=n(1469),o=n.n(s),l=n(3061),c=n.n(l),u=n(3465),h=n(6487);class d{findObject(e,t=u.Lotus.scene){const n=t.getObjectByName(e.replace(":",""));if(n)return n;let r;return t.traverse(t=>{const n=t;if(n.isMesh){const t=n.material;t.name===e&&(r=t)}}),r||void 0}checkRGBAXYZW(e){if("flipY"===e)return!1;const t=["X","Y","Z","W"].some(t=>e.endsWith(t)),n=["R","G","B","A"].some(t=>e.endsWith(t));return t||n}getValue(e,t){var n,i,s,o;if(this.checkRGBAXYZW(t)){const l=t.slice(0,-1),u=c()(t).toLowerCase();if(a()(e[l],u)||e[l]instanceof r.Euler)return e[l][u];switch(u){case"x":case"r":return null===(n=e[l])||void 0===n?void 0:n[0];case"y":case"g":return null===(i=e[l])||void 0===i?void 0:i[1];case"z":case"b":return null===(s=e[l])||void 0===s?void 0:s[2];case"w":case"a":return null===(o=e[l])||void 0===o?void 0:o[3]}}return e[t]}applyValue({element:e,property:t,value:n}){if(e instanceof r.Object3D&&"rotationOrder"===t)return e.rotation.reorder(n);if(this.checkRGBAXYZW(t)){const i=t.slice(0,-1),s=c()(t).toLowerCase();if(a()(e[i],s)||e[i]instanceof r.Euler)return e[i][s]=n;switch(s){case"x":case"r":return e[i][0]=n;case"g":case"y":return e[i][1]=n;case"b":case"z":return e[i][2]=n;case"a":case"w":return e[i][3]=n}}else{if(t.toLowerCase().endsWith("map")&&!(n instanceof r.Texture))return e[t]=h.d.getAsset(n);e[t]=n}}apply(e,t=u.Lotus.scene){const n=Object.entries(e).filter(([e])=>"@states"!==e);for(const[e,r]of n){const n=p.findObject(e,t);if(n)for(let[e,t]of Object.entries(r))o()(t)&&(t=c()(t).endValue),p.applyValue({element:n,property:e,value:t})}}}const p=new d},6487:(e,t,n)=>{"use strict";n.d(t,{d:()=>d});var r=n(5564),i=n.n(r),a=n(9734),s=n.n(a),o=n(8949),l=n(3465),c=n(9614),u=n(3951);class h extends c.XY{constructor(){super(),Object.defineProperty(this,"data",{enumerable:!0,configurable:!0,writable:!0,value:[]}),Object.defineProperty(this,"list",{enumerable:!0,configurable:!0,writable:!0,value:[]}),Object.defineProperty(this,"readyPromise",{enumerable:!0,configurable:!0,writable:!0,value:Promise.create()}),(0,o.makeObservable)(this,{data:o.observable,list:o.observable,listLoaded:o.computed,loaded:o.computed,ready:o.computed}),setTimeout(()=>{this.reaction(()=>l.Lotus.scene,()=>{l.Lotus.scene&&this.observe(l.Lotus.scene.data.assets,this.onAssetsUpdate.bind(this),!0)})})}onAssetsUpdate(e){const{added:t,removed:n}=e;t&&i()(t).forEach(e=>{const t=new c.xR(e);this.list.push(t)}),n&&i()(n).forEach(e=>{const t=this.list.find(t=>t.data.id===e.id);u.ArrayUtils.remove(this.list,t)}),i()(l.Lotus.scene.data.assets).forEach(e=>{const t=this.list.find(t=>t.data.id===e.id);t&&(t.data=e)}),this.reaction(()=>this.ready,()=>this.readyPromise.resolve())}get listLoaded(){return this.list.filter(e=>e.source)}get loaded(){return this.list.length===this.listLoaded.length}get ready(){return this.loaded}getAsset(e){if(!e)return;const t=this.list.find(t=>t.id===e);return t?t.source:u.AlertUtils.warn(`Couldn't find asset '${e}'.`)}getAssetPromise(e){return function(e,t,n,r){return new(n||(n=Promise))(function(i,a){function s(e){try{l(r.next(e))}catch(e){a(e)}}function o(e){try{l(r.throw(e))}catch(e){a(e)}}function l(e){var t;e.done?i(e.value):(t=e.value,t instanceof n?t:new n(function(e){e(t)})).then(s,o)}l((r=r.apply(e,t||[])).next())})}(this,void 0,void 0,function*(){const t=this.list.find(t=>t.id===e);return t?(yield t.readyPromise,t.source):u.AlertUtils.warn(`Couldn't find asset '${e}'.`)})}serialize(){const e=[];l.Lotus.scene.data.assets.forEach(t=>{t.reference?e.push({"@type":"reference","@path":t.reference}):e.push({id:t.id,path:t.path,properties:(0,o.toJS)(t.properties),type:t.type})});const t=s()(e,"id","desc");return{"@reference":l.Lotus.scene.data.assets.reference,"@content":t}}}const d=new h},8478:(e,t,n)=>{"use strict";n.d(t,{h:()=>u});var r=n(4468),i=n(4572),a=n(3465),s=n(9614),o=n(8264);const l=new r.Color(1,1,1),c=new r.Color(.3,.4,.5);class u extends((0,i.AF)(s.XY,r.PerspectiveCamera)){constructor({helper:e=!0,name:t="BaseCamera",scene:n}={scene:a.Lotus.scene}){var r,i;super(),Object.defineProperty(this,"script",{enumerable:!0,configurable:!0,writable:!0,value:"BaseCamera"}),Object.defineProperty(this,"scene",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"helper",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"helperPyramid",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),this.layers.enableAll(),this.layers.disable(o.Q6),this.name=t,this.scene=n,null===(i=null===(r=this.scene)||void 0===r?void 0:r.eventPool)||void 0===i||i.register(this),e&&this.createHelper(),this.scene&&this.onResize({ratio:this.scene.viewport.ratio})}createHelper(){var e;(null===(e=a.Lotus.scene)||void 0===e?void 0:e.controls)&&(this.helper=new r.CameraHelper(this),this.helper.material.transparent=!0,this.helper.layers.enable(o.m1),this.helperPyramid=new r.CameraHelper(this),this.helperPyramid.material.transparent=!0,this.helperPyramid.layers.enable(o.m1),this.autorun(this.onFrustumUpdate.bind(this)),this.autorun(this.onModeUpdate.bind(this)),this.autorun(this.onActiveCamera.bind(this)))}onFrustumUpdate(){a.Lotus.scene.controls.frustum?(this.helper.geometry.setDrawRange(0,64),this.helperPyramid.visible=!1):(this.helper.geometry.setDrawRange(0,8),this.helperPyramid.geometry.setDrawRange(24,14),this.helperPyramid.visible=!0)}onModeUpdate(){var e,t;"orbit"===a.Lotus.scene.controls.mode?(this.scene.add(this.helper),this.scene.add(this.helperPyramid)):(null===(e=this.helper)||void 0===e||e.removeFromParent(),null===(t=this.helperPyramid)||void 0===t||t.removeFromParent())}onActiveCamera(){const e=a.Lotus.scene.camera===this;[this.helper,this.helperPyramid].forEach(t=>{t.renderOrder=e?-1:-2;const n=t.material;n.color=e?l:c,n.vertexColors=e,n.opacity=e?1:.4,n.depthWrite=e,n.needsUpdate=!0})}destroyHelper(){this.helper&&(this.helper.removeFromParent(),this.helper.dispose(),this.helper=void 0),this.helperPyramid&&(this.helperPyramid.removeFromParent(),this.helperPyramid.dispose(),this.helperPyramid=void 0)}get focalLength(){return this.getFocalLength()}set focalLength(e){this.setFocalLength(e)}onResize({ratio:e}){this.aspect=e,this.updateProjectionMatrix()}onLoop(){var e,t,n,r,i;this.helper&&(null===(e=this.helper.camera)||void 0===e||e.updateMatrixWorld(!0),null===(n=(t=this.helper).update)||void 0===n||n.call(t),null===(i=(r=this.helperPyramid).update)||void 0===i||i.call(r))}destroy(){super.destroy(),this.destroyHelper()}}},701:(e,t,n)=>{"use strict";n.d(t,{My:()=>x,wA:()=>_,Pw:()=>E,mn:()=>w,r0:()=>M,$t:()=>S,Z8:()=>C});var r=n(8949),i=n(4572),a=n(3465),s=n(9614),o=n(4393),l=n(8032),c=n(9840),u=n(4140),h=n(1938),d=n(8398),p=n(4663),f=n(7536),m=n(261);class A{create(){(0,r.makeObservable)(this,{ready:r.computed})}get ready(){const e=!(0,i.KV)(this,s.H5)||this.chunksReady,t=!(0,i.KV)(this,s.m3)||this.fileReady,n=!(0,i.KV)(this,s.HO)||this.scriptsReady;return e&&t&&n}}var g=n(1727),v=n(8784),y=n(2134),b=n(2379);i.Xd.initFunction="create";class _ extends s.XY{constructor({data:e}){var t,n;super(),Object.defineProperty(this,"data",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"element",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),this.data=e,null===(n=null===(t=a.Lotus.scene)||void 0===t?void 0:t.eventPool)||void 0===n||n.register(this)}create(){(0,r.makeObservable)(this,{element:r.observable,data:r.observable,id:r.computed,name:r.computed,reference:r.computed,type:r.computed}),this.autorun(this.onPropertiesUpdate.bind(this))}get id(){var e;return null===(e=this.data)||void 0===e?void 0:e.id}get name(){var e;return null===(e=this.data)||void 0===e?void 0:e.name}get reference(){var e;return null===(e=this.data)||void 0===e?void 0:e.reference}get type(){var e;return null===(e=this.data)||void 0===e?void 0:e["@type"]}onPropertiesUpdate(){this.element&&(this.element.name=this.name,this.element.userData.component=this)}destroy(){super.destroy(),(0,i.KV)(this,o.O)&&this.destroyCamera(),(0,i.KV)(this,l.H)&&this.destroyChunks(),(0,i.KV)(this,h.l)&&this.destroyHierarchy(),(0,i.KV)(this,p.l)&&this.destroyMaterials(),(0,i.KV)(this,d.F)&&this.destroyLight(),(0,i.KV)(this,f.C)&&this.destroyMesh(),(0,i.KV)(this,g.H)&&this.destroyScript(),(0,i.KV)(this,v.t)&&this.destroyShaders()}}class x extends((0,i.AF)(_,o.O,h.l,m.M,g.H,y.t,b.h,A)){}class E extends((0,i.AF)(_,c.m,v.t,p.l,l.H,h.l,m.M,g.H,y.t,b.h,A)){}class w extends((0,i.AF)(_,u.J,h.l,m.M,g.H,y.t,b.h,A)){}class M extends((0,i.AF)(_,d.F,h.l,m.M,g.H,y.t,b.h,A)){}class S extends((0,i.AF)(_,f.C,h.l,m.M,g.H,y.t,b.h,A)){}class C extends((0,i.AF)(_,u.J,h.l,m.M,g.H,y.t,b.h,A)){}},4393:(e,t,n)=>{"use strict";n.d(t,{O:()=>o});var r=n(4293),i=n.n(r),a=n(8949),s=n(9614);class o{constructor(){Object.defineProperty(this,"element",{enumerable:!0,configurable:!0,writable:!0,value:new s.hO}),Object.defineProperty(this,"far",{enumerable:!0,configurable:!0,writable:!0,value:2e3}),Object.defineProperty(this,"focalLength",{enumerable:!0,configurable:!0,writable:!0,value:37.52887110891728}),Object.defineProperty(this,"fov",{enumerable:!0,configurable:!0,writable:!0,value:50}),Object.defineProperty(this,"near",{enumerable:!0,configurable:!0,writable:!0,value:1}),Object.defineProperty(this,"zoom",{enumerable:!0,configurable:!0,writable:!0,value:1})}create(){(0,a.makeObservable)(this,{far:a.observable,focalLength:a.observable,fov:a.observable,near:a.observable,zoom:a.observable}),this.autorun(this.onCameraDataUpdate.bind(this)),this.autorun(this.onCameraPropertiesUpdate.bind(this)),this.autorun(this.onCameraFocalLengthUpdate.bind(this)),this.autorun(this.onCameraFOVUpdate.bind(this))}onCameraDataUpdate(){this.far=this.data.far,this.focalLength=this.data.focalLength,this.fov=this.data.fov,this.near=this.data.near,this.zoom=this.data.zoom}onCameraPropertiesUpdate(){this.element&&(this.element.far=this.far,this.element.near=this.near,this.element.zoom=this.zoom,this.element.updateProjectionMatrix())}onCameraFOVUpdate(){this.element&&!i()(this.fov)&&(this.element.fov=this.fov,this.element.updateProjectionMatrix())}onCameraFocalLengthUpdate(){this.element&&!i()(this.focalLength)&&(this.element.focalLength=this.focalLength,this.element.updateProjectionMatrix())}destroyCamera(){this.element.destroy()}}},8032:(e,t,n)=>{"use strict";n.d(t,{H:()=>s});var r=n(8949),i=n(3465),a=n(3951);class s{constructor(){Object.defineProperty(this,"chunks",{enumerable:!0,configurable:!0,writable:!0,value:{}})}get chunksReady(){if(!this.data.materials)return!0;const e=Object.values(this.data.materials).map(e=>Object.keys(e.chunks).length).reduce((e,t)=>e+t,0);return Object.values(this.chunks).map(e=>Object.keys(e).length).reduce((e,t)=>e+t,0)===e}create(){(0,r.makeObservable)(this,{chunks:r.observable,chunksReady:r.computed}),this.reaction(()=>this.element||this.materials,this.createChunks.bind(this),{fireImmediately:!0})}createChunks(){this.destroyChunks(),Array.from(this.materials.keys()).forEach(e=>{var t,n;const r=null===(n=null===(t=this.data.materials)||void 0===t?void 0:t[e])||void 0===n?void 0:n.chunks;r&&Object.entries(r).forEach(([t,n])=>{this.addChunk(e,t,n)})})}addChunk(e,t,n){const r=i.Lotus.chunks.get(t);if(r){const i=new r({component:this,data:n,material:this.materials.get(e),name:t});this.chunks[e]||(this.chunks[e]={}),this.chunks[e][t]=i}else a.AlertUtils.warn(`[ComponentChunks] Chunk class "${t}" doesn't exist.`)}removeChunk(e,t){const n=this.chunks[e],r=n[t];r&&r.destroy(),delete n[t]}destroyChunks(){Object.entries(this.chunks).forEach(([e,t])=>{Object.entries(t).forEach(([t,n])=>{this.removeChunk(e,t)})})}}},9840:(e,t,n)=>{"use strict";n.d(t,{m:()=>s});var r=n(8949),i=n(9614),a=n(3951);class s{constructor(){Object.defineProperty(this,"fileReady",{enumerable:!0,configurable:!0,writable:!0,value:!1})}create(){(0,r.makeObservable)(this,{asset:r.computed,fileReady:r.observable}),this.autorun(this.onFileAssetUpdate.bind(this)),this.reaction(()=>this.element,this.onFileElementUpdate.bind(this),{fireImmediately:!0})}get asset(){const{file:e,name:t}=this.data;if(!e)return void a.AlertUtils.warn(`[Components FILE: "${t}"] - missing "file" property.`);const n=i.Assets.getAsset(e);if(!n)return void a.AlertUtils.warn(`[Assets MODEL: "${e}"] - "path" unable to access: file not found or still loading.`);const{path:r}=i.Assets.list.find(t=>t.id===e);if([".obj",".gltf",".glb"].some(e=>r.includes(e)))return a.AlertUtils.log(`%c[Assets MODEL: "${e}"] - loaded successfully.`,"color: #90EE90"),n;a.AlertUtils.warn(`[Assets MODEL: "${e}"] - "path" type incorrect: supported MODEL file required.`)}onFileAssetUpdate(){var e,t,n;null===(t=null===(e=this.element)||void 0===e?void 0:e.removeFromParent)||void 0===t||t.call(e),this.element=null===(n=this.asset)||void 0===n?void 0:n.scene}onFileElementUpdate(){this.element&&(this.fileReady=!0)}}},4140:(e,t,n)=>{"use strict";n.d(t,{J:()=>i});var r=n(4468);class i{constructor(){Object.defineProperty(this,"element",{enumerable:!0,configurable:!0,writable:!0,value:new r.Group})}}},1938:(e,t,n)=>{"use strict";n.d(t,{l:()=>a});var r=n(8949),i=n(3465);class a{constructor(){Object.defineProperty(this,"parent",{enumerable:!0,configurable:!0,writable:!0,value:null})}create(){(0,r.makeObservable)(this,{parent:r.observable}),this.autorun(()=>{this.parent=this.data.parent}),this.autorun(this.onHierarchyParentUpdate.bind(this))}onHierarchyParentUpdate(){var e,t,n;if(this.element)if(this.parent){const t=i.Lotus.scene.getComponent(this.parent);null===(e=null==t?void 0:t.add)||void 0===e||e.call(t,this.element)}else null===(n=null===(t=i.Lotus.scene)||void 0===t?void 0:t.add)||void 0===n||n.call(t,this.element)}add(e){var t;null===(t=this.element)||void 0===t||t.add(e)}remove(e){this.element.remove(e)}destroyHierarchy(){var e;null===(e=this.element)||void 0===e||e.removeFromParent()}}},8398:(e,t,n)=>{"use strict";n.d(t,{F:()=>h});var r=n(4468),i=n(8949),a=n(9895),s=n(4552),o=n(2858),l=n(2794),c=n(9626),u=n(3465);class h{constructor(){Object.defineProperty(this,"element",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"kind",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"color",{enumerable:!0,configurable:!0,writable:!0,value:[1,1,1]}),Object.defineProperty(this,"intensity",{enumerable:!0,configurable:!0,writable:!0,value:1}),Object.defineProperty(this,"layer",{enumerable:!0,configurable:!0,writable:!0,value:0}),Object.defineProperty(this,"decay",{enumerable:!0,configurable:!0,writable:!0,value:2}),Object.defineProperty(this,"distance",{enumerable:!0,configurable:!0,writable:!0,value:0}),Object.defineProperty(this,"angle",{enumerable:!0,configurable:!0,writable:!0,value:Math.PI/3}),Object.defineProperty(this,"penumbra",{enumerable:!0,configurable:!0,writable:!0,value:0}),Object.defineProperty(this,"target",{enumerable:!0,configurable:!0,writable:!0,value:null}),Object.defineProperty(this,"height",{enumerable:!0,configurable:!0,writable:!0,value:1}),Object.defineProperty(this,"width",{enumerable:!0,configurable:!0,writable:!0,value:1})}create(){(0,i.makeObservable)(this,{color:i.observable,intensity:i.observable,layer:i.observable,decay:i.observable,distance:i.observable,angle:i.observable,penumbra:i.observable,target:i.observable,targetComponent:i.computed,height:i.observable,width:i.observable}),this.observe(this.data,"kind",this.onKindUpdate.bind(this),!0),this.autorun(this.onLightDataUpdate.bind(this)),this.autorun(this.onLightPropertiesUpdate.bind(this))}get targetComponent(){if(this.data.target)return u.Lotus.scene.getComponent(this.data.target)}onLightDataUpdate(){this.color=[...this.data.color],this.intensity=this.data.intensity,this.layer=this.data.layer,this.decay=this.data.decay,this.distance=this.data.distance,this.angle=this.data.angle,this.penumbra=this.data.penumbra,this.target=this.data.target,this.height=this.data.height,this.width=this.data.width}onLightPropertiesUpdate(){var e,t;this.element&&(this.element.color.fromArray(this.color),this.element.intensity=this.intensity,this.element.lightLayer=this.layer,(this.element instanceof l.y||this.element instanceof c.K)&&(this.element.decay=this.decay,this.element.distance=this.distance),this.element instanceof c.K&&(this.element.angle=this.angle,this.element.penumbra=this.penumbra),(this.element instanceof s.b||this.element instanceof c.K)&&(this.element.target=null!==(t=null===(e=this.targetComponent)||void 0===e?void 0:e.element)&&void 0!==t?t:new r.Object3D),this.element instanceof o.n&&(this.element.height=this.height,this.element.width=this.width))}onKindUpdate(){var e;let t;switch(null===(e=this.element)||void 0===e||e.destroy(),this.data.kind){case"AmbientLight":t=a.f;break;case"DirectionalLight":t=s.b;break;case"PointLight":t=l.y;break;case"RectAreaLight":t=o.n;break;case"SpotLight":t=c.K}this.element=new t({component:this})}destroyLight(){var e;null===(e=this.element)||void 0===e||e.destroy()}}},4663:(e,t,n)=>{"use strict";n.d(t,{l:()=>s});var r=n(8949),i=n(3465),a=n(9614);class s{constructor(){Object.defineProperty(this,"layers",{enumerable:!0,configurable:!0,writable:!0,value:new Map}),Object.defineProperty(this,"materials",{enumerable:!0,configurable:!0,writable:!0,value:new Map})}create(){(0,r.makeObservable)(this,{layers:r.observable,materials:r.observable}),this.autorun(this.onMaterialsElementUpdate.bind(this)),this.observe(this,"element",this.onMaterialsElementChange.bind(this)),this.observe(this.layers,this.onMaterialsLayersUpdate.bind(this))}onMaterialsElementChange(){this.destroyMaterials()}onMaterialsElementUpdate(){if(!this.element)return this.destroyMaterials();this.element.getObjectsByProperty("isMesh",!0).forEach(e=>{var t,n,r;const s=e.material;if(!s||s instanceof a.ex)return;const{name:o}=s,l=null!==(r=null===(n=null===(t=this.data.materials)||void 0===t?void 0:t[o])||void 0===n?void 0:n.layer)&&void 0!==r?r:0;this.layers.set(s,l),this.materials.set(o,s),i.Lotus.scene.renderer.parseMaterial(s)})}onMaterialsLayersUpdate({name:e,newValue:t}){if(!this.element)return this.destroyMaterials();this.element.getObjectsByProperty("isMesh",!0).forEach(n=>{const r=n.material;r.name===e.name&&(n.layers.set(null!=t?t:0),r.lightLayer=null!=t?t:0)})}destroyMaterials(){this.layers.clear(),this.materials.clear()}}},7536:(e,t,n)=>{"use strict";n.d(t,{C:()=>s});var r=n(4468),i=n(8949),a=n(3465);class s{constructor(){Object.defineProperty(this,"element",{enumerable:!0,configurable:!0,writable:!0,value:new r.Mesh}),Object.defineProperty(this,"elementMaterial",{enumerable:!0,configurable:!0,writable:!0,value:void 0})}create(){(0,i.makeObservable)(this,{elementGeometry:i.computed,elementMaterial:i.observable}),this.reaction(()=>this.data.shader,this.onMeshShaderUpdate.bind(this),{fireImmediately:!0}),this.autorun(this.onMeshPropertiesUpdate.bind(this))}get elementGeometry(){return this.data.geometry?a.Lotus.geometries.get(this.data.geometry):null}onMeshShaderUpdate(){var e;if(!this.data.shader)return;null===(e=this.elementMaterial)||void 0===e||e.destroy(),this.elementMaterial=void 0;const t=a.Lotus.shaders.get(this.data.shader);this.elementMaterial=new t({component:this,data:this.data.shaderValues,name:`${this.name}:${this.data.shader}`})}onMeshPropertiesUpdate(){this.element&&(this.element.geometry=this.elementGeometry,this.element.material=this.elementMaterial,this.element.renderOrder=this.data.renderOrder,this.elementMaterial.blending=this.data.blending,this.elementMaterial.depthTest=this.data.depthTest,this.elementMaterial.depthWrite=this.data.depthWrite,this.elementMaterial.side=this.data.side,this.elementMaterial.transparent=this.data.transparent)}destroyMesh(){this.elementMaterial&&a.DisposeUtils.disposeMaterial(this.elementMaterial)}}},261:(e,t,n)=>{"use strict";n.d(t,{M:()=>i});var r=n(8949);class i{constructor(){Object.defineProperty(this,"position",{enumerable:!0,configurable:!0,writable:!0,value:[0,0,0]}),Object.defineProperty(this,"quaternion",{enumerable:!0,configurable:!0,writable:!0,value:[0,0,0,0]}),Object.defineProperty(this,"rotation",{enumerable:!0,configurable:!0,writable:!0,value:[0,0,0]}),Object.defineProperty(this,"rotationOrder",{enumerable:!0,configurable:!0,writable:!0,value:"XYZ"}),Object.defineProperty(this,"scale",{enumerable:!0,configurable:!0,writable:!0,value:[1,1,1]})}create(){return function(e,t,n,r){return new(n||(n=Promise))(function(i,a){function s(e){try{l(r.next(e))}catch(e){a(e)}}function o(e){try{l(r.throw(e))}catch(e){a(e)}}function l(e){var t;e.done?i(e.value):(t=e.value,t instanceof n?t:new n(function(e){e(t)})).then(s,o)}l((r=r.apply(e,t||[])).next())})}(this,void 0,void 0,function*(){(0,r.makeObservable)(this,{position:r.observable,quaternion:r.observable,rotation:r.observable,rotationOrder:r.observable,scale:r.observable}),this.autorun(()=>this.position=[...this.data.position]),this.autorun(()=>this.rotation=[...this.data.rotation]),this.autorun(()=>this.scale=[...this.data.scale]),this.autorun(()=>this.rotationOrder=this.data.rotationOrder),this.autorun(()=>{var e;return null===(e=this.element)||void 0===e?void 0:e.position.fromArray(this.position)}),this.autorun(()=>{var e,t;null===(e=this.element)||void 0===e||e.rotation.reorder(this.rotationOrder),null===(t=this.element)||void 0===t||t.rotation.fromArray(this.rotation)}),this.autorun(()=>{var e;return null===(e=this.element)||void 0===e?void 0:e.scale.fromArray(this.scale)})})}}},1727:(e,t,n)=>{"use strict";n.d(t,{H:()=>s});var r=n(8949),i=n(3465),a=n(3951);class s{constructor(){Object.defineProperty(this,"scripts",{enumerable:!0,configurable:!0,writable:!0,value:new Map})}get scriptsReady(){const e=Object.keys(this.data.scripts).length===this.scripts.size;let t=!0;return Array.from(this.scripts.values()).find(e=>{if(!1===e.ready)return t=!1}),e&&t}create(){(0,r.makeObservable)(this,{scripts:r.observable,scriptsReady:r.computed}),this.observe(this.data.scripts,this.onScriptsUpdate.bind(this)),this.data.scripts&&Object.entries(this.data.scripts).forEach(([e,t])=>{this.addScript(e,t)})}onScriptsUpdate(e){"add"===e.type&&this.addScript(e.name,e.newValue),"remove"===e.type&&this.removeScript(e.name)}addScript(e,t){const n=i.Lotus.scripts.get(e);if(n){const r=new n({component:this,data:t});this.scripts.set(e,r),this.data.scripts[e]=t,r.key=`${this.name}:${e}`,i.Lotus.scene.scripts.add(r)}else a.AlertUtils.warn(`Script class "${e}" doesn't exist.`),this.scripts.set(e,void 0)}removeScript(e){const t=this.scripts.get(e);t&&t.destroy(),this.scripts.delete(e),delete this.data.scripts[e]}destroyScript(){this.scripts.forEach(e=>{e.destroy()}),this.scripts.clear()}}},8784:(e,t,n)=>{"use strict";n.d(t,{t:()=>s});var r=n(8949),i=n(3465),a=n(3951);class s{constructor(){Object.defineProperty(this,"shaders",{enumerable:!0,configurable:!0,writable:!0,value:new Map}),Object.defineProperty(this,"shadersResets",{enumerable:!0,configurable:!0,writable:!0,value:new Map})}create(){(0,r.makeObservable)(this,{shaders:r.observable}),this.observe(this,"element",this.onShadersElementChange.bind(this)),this.autorun(this.onShadersGenerateResets.bind(this)),this.autorun(this.onShadersGenerate.bind(this))}onShadersElementChange(){this.destroyShaders()}onShadersGenerateResets(){var e;if(!this.element||!(null===(e=this.asset)||void 0===e?void 0:e.parser))return this.destroyShaders();Object.keys(this.asset.parser.nodeNamesUsed).forEach(e=>{if(!this.shadersResets.get(e)){const t=this.element.getObjectByName(e);t&&this.shadersResets.set(e,t.material)}})}onShadersGenerate(){var e;if(!this.element||!(null===(e=this.asset)||void 0===e?void 0:e.parser))return this.destroyShaders();Object.keys(this.asset.parser.nodeNamesUsed).forEach(e=>{var t;if(this.element.getObjectByName(e)){const n=null===(t=this.data.nodes)||void 0===t?void 0:t[e];(null==n?void 0:n.shader)&&(null==n?void 0:n.shaderValues)?this.addShader(e,n.shader,n.shaderValues):this.removeShader(e)}})}addShader(e,t,n){const r=i.Lotus.shaders.get(t);if(r){const i=new r({component:this,data:n,name:t});this.shaders.set(e,i),this.applyMaterialToMesh(i,e)}else a.AlertUtils.warn(`[ComponentShaders] Shader class "${t}" doesn't exist.`)}removeShader(e){const t=this.shaders.get(e);t&&t.destroy(),this.shaders.delete(e);const n=this.shadersResets.get(e);n&&this.applyMaterialToMesh(n,e)}applyMaterialToMesh(e,t){const n=this.element.getObjectByName(t);n?n.material=e:a.AlertUtils.warn(`[ComponentShaders] Mesh "${t}" doesn't exist.`)}destroyShaders(){Array.from(this.shaders.keys()).forEach(e=>{this.removeShader(e)}),this.shaders.clear(),this.shadersResets.clear()}}},2134:(e,t,n)=>{"use strict";n.d(t,{t:()=>i});var r=n(8949);class i{constructor(){Object.defineProperty(this,"isTransitioning",{enumerable:!0,configurable:!0,writable:!0,value:!1})}create(){(0,r.makeObservable)(this,{isTransitioning:r.observable})}onTransitionStart(e){this.isTransitioning=!0,this.dispatchEvent(Object.assign(Object.assign({},e),{type:"transition:start"}))}onTransitionUpdate(e){this.dispatchEvent(Object.assign(Object.assign({},e),{type:"transition:update"}))}onTransitionComplete(e){this.isTransitioning=!1,this.dispatchEvent(Object.assign(Object.assign({},e),{type:"transition:complete"}))}}},2379:(e,t,n)=>{"use strict";n.d(t,{h:()=>i});var r=n(8949);class i{create(){(0,r.makeObservable)(this,{show:r.action,hide:r.action}),this.autorun(this.onVisibilityUpdate.bind(this))}onVisibilityUpdate(){this.element&&(this.element.visible=this.data.visible)}show(){this.data.visible=!0}hide(){this.data.visible=!1}}},9895:(e,t,n)=>{"use strict";n.d(t,{f:()=>s});var r=n(4468),i=n(4572),a=n(9614);class s extends((0,i.AF)(a.XY,r.AmbientLight)){constructor(){super()}destroy(){super.destroy(),this.removeFromParent()}}},4552:(e,t,n)=>{"use strict";n.d(t,{b:()=>c});var r=n(4468),i=n(4572),a=n(3465),s=n(9614),o=n(3951),l=n(8264);class c extends((0,i.AF)(s.XY,r.DirectionalLight)){constructor({component:e}){var t,n;super(),Object.defineProperty(this,"component",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"helper",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),this.component=e,o.EnvironmentUtils.IS_DEVELOPMENT&&this.createHelper(),null===(n=null===(t=a.Lotus.scene)||void 0===t?void 0:t.eventPool)||void 0===n||n.register(this)}createHelper(){this.helper=new r.DirectionalLightHelper(this),this.helper.traverse(e=>e.layers.enable(l.m1)),this.autorun(()=>{const e=a.Lotus.scene.controls;this.helper.visible=this.component.data.visible&&(null==e?void 0:e.lights)&&"orbit"===(null==e?void 0:e.mode)}),a.Lotus.scene.add(this.helper)}destroyHelper(){this.helper&&(this.helper.removeFromParent(),this.helper.dispose(),this.helper=void 0)}onLoop(){var e;null===(e=this.helper)||void 0===e||e.update()}destroy(){super.destroy(),this.destroyHelper(),this.removeFromParent()}}},2794:(e,t,n)=>{"use strict";n.d(t,{y:()=>c});var r=n(4468),i=n(4572),a=n(3465),s=n(9614),o=n(3951),l=n(8264);class c extends((0,i.AF)(s.XY,r.PointLight)){constructor({component:e}){var t,n;super(),Object.defineProperty(this,"component",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"helper",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),this.component=e,o.EnvironmentUtils.IS_DEVELOPMENT&&this.createHelper(),null===(n=null===(t=a.Lotus.scene)||void 0===t?void 0:t.eventPool)||void 0===n||n.register(this)}createHelper(){this.helper=new r.PointLightHelper(this),this.helper.traverse(e=>e.layers.enable(l.m1)),this.autorun(()=>{const e=a.Lotus.scene.controls;this.helper.visible=this.component.data.visible&&(null==e?void 0:e.lights)&&"orbit"===(null==e?void 0:e.mode)}),a.Lotus.scene.add(this.helper)}destroyHelper(){this.helper&&(this.helper.removeFromParent(),this.helper.dispose(),this.helper=void 0)}onLoop(){var e;null===(e=this.helper)||void 0===e||e.update()}destroy(){super.destroy(),this.destroyHelper(),this.removeFromParent()}}},2858:(e,t,n)=>{"use strict";n.d(t,{n:()=>u});var r=n(4468);class i extends r.Line{constructor(e,t){const n=new r.BufferGeometry;n.setAttribute("position",new r.Float32BufferAttribute([1,1,0,-1,1,0,-1,-1,0,1,-1,0,1,1,0],3)),n.computeBoundingSphere(),super(n,new r.LineBasicMaterial({fog:!1})),this.light=e,this.color=t,this.type="RectAreaLightHelper";const i=new r.BufferGeometry;i.setAttribute("position",new r.Float32BufferAttribute([1,1,0,-1,1,0,-1,-1,0,1,1,0,-1,-1,0,1,-1,0],3)),i.computeBoundingSphere(),this.card=new r.Mesh(i,new r.MeshPhysicalMaterial({side:r.BackSide,fog:!1})),this.add(this.card)}updateMatrixWorld(){this.scale.set(.5*this.light.width,.5*this.light.height,1),void 0!==this.color?(this.material.color.set(this.color),this.card.material.emissive.set(this.color)):(this.material.color.copy(this.light.color).multiplyScalar(this.light.intensity),this.card.visible=this.light.visible,this.card.material.emissive.copy(this.material.color)),this.matrixWorld.extractRotation(this.light.matrixWorld).scale(this.scale).copyPosition(this.light.matrixWorld),this.card.matrixWorld.copy(this.matrixWorld)}dispose(){this.geometry.dispose(),this.material.dispose(),this.card.geometry.dispose(),this.card.material.dispose()}}var a=n(4572),s=n(3465),o=n(9614),l=n(3951),c=n(8264);class u extends((0,a.AF)(o.XY,r.RectAreaLight)){constructor({component:e}){var t,n;super(),Object.defineProperty(this,"component",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"helper",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),this.component=e,l.EnvironmentUtils.IS_DEVELOPMENT&&this.createHelper(),null===(n=null===(t=s.Lotus.scene)||void 0===t?void 0:t.eventPool)||void 0===n||n.register(this)}createHelper(){this.helper=new i(this),this.helper.traverse(e=>e.layers.enable(c.m1)),this.autorun(()=>{const e=s.Lotus.scene.controls;this.helper.visible=this.component.data.visible&&(null==e?void 0:e.lights)&&"orbit"===(null==e?void 0:e.mode)}),s.Lotus.scene.add(this.helper)}destroyHelper(){this.helper&&(this.helper.removeFromParent(),this.helper=void 0)}destroy(){super.destroy(),this.destroyHelper(),this.removeFromParent()}}},9626:(e,t,n)=>{"use strict";n.d(t,{K:()=>c});var r=n(4468),i=n(4572),a=n(3465),s=n(9614),o=n(3951),l=n(8264);class c extends((0,i.AF)(s.XY,r.SpotLight)){constructor({component:e}){var t,n;super(),Object.defineProperty(this,"component",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"helper",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),this.component=e,o.EnvironmentUtils.IS_DEVELOPMENT&&this.createHelper(),null===(n=null===(t=a.Lotus.scene)||void 0===t?void 0:t.eventPool)||void 0===n||n.register(this)}createHelper(){this.helper=new r.SpotLightHelper(this),this.helper.traverse(e=>e.layers.enable(l.m1)),this.autorun(()=>{const e=a.Lotus.scene.controls;this.helper.visible=this.component.data.visible&&(null==e?void 0:e.lights)&&"orbit"===(null==e?void 0:e.mode)}),a.Lotus.scene.add(this.helper)}destroyHelper(){this.helper&&(this.helper.removeFromParent(),this.helper.dispose(),this.helper=void 0)}onLoop(){var e;null===(e=this.helper)||void 0===e||e.update()}destroy(){super.destroy(),this.destroyHelper(),this.removeFromParent()}}},5344:(e,t,n)=>{"use strict";n.d(t,{X:()=>s});var r=n(4468),i=n(8949),a=n(3465);class s extends r.EventDispatcher{constructor(){super(...arguments),Object.defineProperty(this,"bindings",{enumerable:!0,configurable:!0,writable:!0,value:[]})}autorun(e,t){const n=(0,i.autorun)(e,t);return this.bindings.push(n),n}observe(e,t,n,r){const a=(0,i.observe)(e,t,n,r);return this.bindings.push(a),a}reaction(e,t,n){const r=(0,i.reaction)(e,t,n);return this.bindings.push(r),r}destroy(){var e,t,n;null===(t=null===(e=a.Lotus.scene)||void 0===e?void 0:e.eventPool)||void 0===t||t.unregister(this),null===(n=this.bindings)||void 0===n||n.forEach(e=>{e()})}}},2893:(e,t,n)=>{"use strict";n.d(t,{c:()=>d});var r=n(4468),i=n(8949),a=n(4572),s=n(3465),o=n(9614),l=n(3641),c=n(3115),u=n(4082),h=n(3951);a.Xd.initFunction=null;class d extends((0,a.AF)(o.XY,r.Scene)){constructor({element:e=document.documentElement,loop:t,lsd:n,renderer:r}){super(),Object.defineProperty(this,"component",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"debug",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"element",{enumerable:!0,configurable:!0,writable:!0,value:document.documentElement}),Object.defineProperty(this,"lsd",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"logs",{enumerable:!0,configurable:!0,writable:!0,value:0}),Object.defineProperty(this,"compiled",{enumerable:!0,configurable:!0,writable:!0,value:!1}),Object.defineProperty(this,"ready",{enumerable:!0,configurable:!0,writable:!0,value:!1}),Object.defineProperty(this,"created",{enumerable:!0,configurable:!0,writable:!0,value:!1}),Object.defineProperty(this,"rendered",{enumerable:!0,configurable:!0,writable:!0,value:!1}),Object.defineProperty(this,"configuration",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"loader",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"states",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"timelines",{enumerable:!0,configurable:!0,writable:!0,value:new Map}),Object.defineProperty(this,"eventPool",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"renderer",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"cameraResetCopy",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"camera",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"controls",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"keyboard",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"loop",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"pointer",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"viewport",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"components",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"chunks",{enumerable:!0,configurable:!0,writable:!0,value:new Set}),Object.defineProperty(this,"scripts",{enumerable:!0,configurable:!0,writable:!0,value:new Set}),Object.defineProperty(this,"componentCache",{enumerable:!0,configurable:!0,writable:!0,value:new Map}),Object.defineProperty(this,"frame",{enumerable:!0,configurable:!0,writable:!0,value:0}),this.name="CustomScene",this.variants=o.tr,(0,i.makeObservable)(this,{camera:i.observable,children:i.observable,compiled:i.observable,component:i.observable,created:i.observable,data:i.computed,debug:i.observable,groups:i.computed,interpolation:(0,i.computed)({keepAlive:!0}),lsd:i.observable,ready:i.observable,rendered:i.observable}),this.element=e,this.loop=t,this.lsd=n,this.renderer=r,this.init()}get data(){var e;return null===(e=this.lsd)||void 0===e?void 0:e.data}get groups(){const e={};for(let t=0;t<10;t++)e[t]=[];return this.components.list.forEach(t=>{t.layers&&t.layers.forEach((t,n)=>{e[t].push(n)})}),e}mobxtoJS(e){return(0,i.toJS)(e)}get interpolation(){var e;if(""===this.configuration.defaultInterpolation)return null;const t=this.getComponent(this.configuration.defaultInterpolation);if(!t)return console.warn("Couldn't find defaultInterpolationComponent",this.configuration.defaultInterpolation),null;const n=null===(e=[...null==t?void 0:t.scripts.values()].find(e=>{var t;return null===(t=e.interpolation)||void 0===t?void 0:t.interpolations}))||void 0===e?void 0:e.interpolation;return n||console.warn(`Default interpolation component '${t.name}' (${t.type}) doesn't provide an interpolation. ID: ${t.id}`),n}init(){return function(e,t,n,r){return new(n||(n=Promise))(function(i,a){function s(e){try{l(r.next(e))}catch(e){a(e)}}function o(e){try{l(r.throw(e))}catch(e){a(e)}}function l(e){var t;e.done?i(e.value):(t=e.value,t instanceof n?t:new n(function(e){e(t)})).then(s,o)}l((r=r.apply(e,t||[])).next())})}(this,void 0,void 0,function*(){this.createEventPool(),this.createStates(),this.createConfiguration(),this.createRenderer(),this.createLoop(),this.createKeyboard(),this.createPointer(),this.createViewport(),this.createLoader(),this.createCamera(),this.createComponents(),this.createControls(),this.reaction(()=>this.created,()=>{const e="Scene:compileAsync",t=`${e} - Start`,n=`${e} - End`;performance.mark(t),window.requestAnimationFrame(()=>{this.renderer.compileAsync(this,this.camera).then(()=>{this.compiled=!0,performance.mark(n),performance.measure(e,t,n)})})}),this.reaction(()=>this.components.ready,()=>{this.create(),this.created=!0})})}create(){this.autorun(()=>{if(this.configuration.camera){const e=this.getComponent(this.configuration.camera);e&&this.setCamera(e.element)}else{const e=[...this.getAllComponents()].reverse().find(e=>(0,a.KV)(e,o.My));e&&this.setCamera(e.element)}}),this.createTimelines(),Object.keys(this.data.configuration.states).forEach(e=>{this.states.bind(e,this.onStateUpdate.bind(this))}),this.reaction(()=>this.components.ready,()=>{Object.values(this.data.configuration.states).forEach(e=>{o.FK.set(e),s.Lotus.scene.scripts.forEach(t=>{var n;null===(n=t.onAnimationSet)||void 0===n||n.call(t,e)})})},{fireImmediately:!0}),this.autorun(()=>{if(!u.GA.envMap)return;const e=this.groups,t=e=>{var t,n;return!(null===(n=null===(t=e.chunks)||void 0===t?void 0:t.includes)||void 0===n?void 0:n.call(t,"EnvMap"))};Object.values(e).forEach(e=>{e.filter(t).forEach(e=>{e.envMap=null,e.envMapIntensity=null})}),this.components.list.forEach(n=>{var r,i;const a=null!==(i=null!==(r=n.scripts.get("Environment"))&&void 0!==r?r:n.scripts.get("EnvironmentKeyframe"))&&void 0!==i?i:n.scripts.get("EnvironmentInterpolation");a&&e[a.data.layer].filter(t).forEach(e=>{e.envMap=a.envMap,e.envMapIntensity=a.envMapIntensity})})})}get assets(){return o.Assets}onStateUpdate({category:e,newValue:t,oldValue:n}){o.FK.setFrom(n),o.FK.setTo(t),o.FK.play()}createConfiguration(){this.configuration=new o.VK({scene:this})}destroyConfiguration(){this.configuration.destroy(),this.configuration=void 0}createLoader(){this.loader=new l.aN}destroyLoader(){this.loader.destroy(),this.loader=void 0}createStates(){this.states=new o.GC({scene:this})}destroyStates(){var e;null===(e=this.states)||void 0===e||e.destroy(),this.states=void 0}createTimelines(){this.data.timelines&&(this.timelines=c.Timelines.create({animations:this.data.timelines}))}createEventPool(){this.eventPool=new o.ID,this.eventPool.register(this)}destroyEventPool(){this.eventPool.destroy()}createRenderer(){this.renderer.create(this)}destroyRenderer(){this.renderer.destroy(),this.renderer=void 0}createCamera(){this.camera=new o.hO({helper:!1,position:[0,0,10],scene:this}),this.cameraResetCopy=this.camera.clone()}setCamera(e){this.camera=e}resetCamera(){this.camera=this.cameraResetCopy.clone()}destroyCamera(){this.camera=void 0}createControls(){h.EnvironmentUtils.IS_PRODUCTION||(this.controls=new o.ZX({scene:this}))}destroyControls(){var e;null===(e=this.controls)||void 0===e||e.destroy(),this.controls=void 0}createKeyboard(){this.keyboard=new l.N1({scene:this})}destroyKeyboard(){this.keyboard.destroy(),this.keyboard=void 0}createLoop(){this.loop.create(this)}destroyLoop(){this.loop.destroy(),this.loop=void 0}createPointer(){this.pointer=new l.gb({scene:this})}destroyPointer(){this.pointer.destroy(),this.pointer=void 0}createViewport(){this.viewport=new l.l_({scene:this})}destroyViewport(){this.viewport.destroy(),this.viewport=void 0}createComponents(){this.components=new o.c3}destroyComponents(){this.components.destroy(),this.components=void 0}getAllComponents(){return this.components.list}getComponent(e){if(!e)return;const t=this.components.listReady.find(t=>t.id===e);if(t)return t;const n=Array.from(this.chunks).find(t=>t.id===e);if(n)return n;const r=Array.from(this.scripts).find(t=>t.id===e);return r||void 0}getComponentByName(e){const t=this.components.listReady.find(t=>t.name===e);if(t)return t;let n,r;if(this.traverse(t=>{t.name===e&&(n=t);const i=t.material;(null==i?void 0:i.name)===e&&(r=i)}),n)return n;if(r)return r;const i=Array.from(this.chunks.values()).find(t=>t.key===e);if(i)return i;const a=Array.from(this.scripts.values()).find(t=>t.key===e);return a||void 0}getComponentsByName(e){if(h.EnvironmentUtils.IS_PRODUCTION&&this.componentCache.get(e))return this.componentCache.get(e);const t=[],n=this.components.listReady.filter(t=>t.name===e);return n&&t.push(...n),h.EnvironmentUtils.IS_DEVELOPMENT&&this.components.listReady.filter(e=>(0,a.KV)(e,o.li)).forEach(n=>{n.materials.forEach(n=>{n.name===e&&t.push(n)})}),this.traverse(n=>{n.name===e&&t.push(n);const r=n.material;!t.includes(r)&&(null==r?void 0:r.name)===e&&t.push(r)}),this.chunks.forEach(n=>{n.key===e&&t.push(n)}),this.scripts.forEach(n=>{n.key===e&&t.push(n)}),h.EnvironmentUtils.IS_PRODUCTION&&this.componentCache.set(e,t),t}getObject(e){let t;return this.traverse(n=>{var r;(null===(r=n.userData)||void 0===r?void 0:r.uuid)===e&&(t=n)}),t}changeState(e,t){this.states.set(e,t)}checkFirstFrame(){this.frame!==d.FIRST_FRAME_THRESHOLD&&(this.frame+=1,this.frame>=d.FIRST_FRAME_THRESHOLD&&(this.rendered=!0,this.ready=!0))}onLoop(){var e,t;if(this.interpolation,this.compiled&&this.created){const n="orbit"===(null===(e=this.controls)||void 0===e?void 0:e.mode)?this.controls.camera:this.camera;n&&(this.renderer.compose(this,n),null===(t=this.controls)||void 0===t||t.onAfterRender(),this.rendered||this.checkFirstFrame())}u.F9.isInitialized&&u.F9.render(),this.rendered||s.Lotus.tryRequestAnimationFrame()}serialize(){var e,t,n;const r=null===(e=this.data.timelines)||void 0===e?void 0:e.reference;return{"@type":"scene","@animations":null===(t=this.data.animations)||void 0===t?void 0:t.reference,"@variants":null===(n=this.data.variants)||void 0===n?void 0:n.reference,assets:o.Assets.serialize(),configuration:this.configuration.serialize(),components:this.components.serialize(),renderer:this.renderer.serialize(),states:this.states.serialize(),timelines:r?{"@type":"reference","@path":r}:void 0,version:"10.7.2"}}destroy(){return super.destroy(),new Promise(e=>{s.Lotus.tasks.clear(),this.destroyLoop(),this.destroyEventPool(),h.DisposeUtils.dispose(this),this.destroyComponents(),o.FK.destroy(),u.F9.destroy(),o.tx.destroy(),o.tr.destroy(),this.destroyControls(),this.destroyCamera(),this.destroyLoader(),this.destroyViewport(),this.destroyPointer(),this.destroyKeyboard(),this.destroyStates(),this.destroyRenderer(),e(!0)})}}Object.defineProperty(d,"FIRST_FRAME_THRESHOLD",{enumerable:!0,configurable:!0,writable:!0,value:1})},7928:(e,t,n)=>{"use strict";n.d(t,{m:()=>c});var r=n(4468),i=n(8949),a=n(3465),s=n(9614),o=n(4082),l=n(5360);class c extends s.XY{constructor({component:e}){var t,n;super(),Object.defineProperty(this,"asset",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"component",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"renderToTexture",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"renderToTextureUniforms",{enumerable:!0,configurable:!0,writable:!0,value:{tMap1:{value:null},tMap2:{value:null},tMap3:{value:null},tMap4:{value:null},uMapOpacities:{value:new r.Vector4(0)}}}),Object.defineProperty(this,"renderTarget",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),(0,i.makeObservable)(this,{asset:i.observable,renderTarget:i.observable}),this.component=e,this.createRenderToTexture(a.Lotus.scene.renderer),this.reaction(()=>this.asset,this.createRenderTarget.bind(this)),null===(n=null===(t=a.Lotus.scene)||void 0===t?void 0:t.eventPool)||void 0===n||n.register(this)}createRenderToTexture(e){this.renderToTexture=new s.ez(e,{fragmentShader:"\n precision highp float;\n\n varying vec2 vUv;\n \n uniform sampler2D tMap1;\n uniform sampler2D tMap2;\n uniform sampler2D tMap3;\n uniform sampler2D tMap4;\n\n uniform vec4 uMapOpacities;\n\n void main() {\n vec4 map1 = texture(tMap1, vUv) * uMapOpacities.x;\n vec4 map2 = texture(tMap2, vUv) * uMapOpacities.y;\n vec4 map3 = texture(tMap3, vUv) * uMapOpacities.z;\n vec4 map4 = texture(tMap4, vUv) * uMapOpacities.w;\n\n vec4 mapColor = map1 + map2 + map3 + map4;\n\n gl_FragColor = mapColor;\n }\n ",uniforms:this.renderToTextureUniforms})}setTextures(e){e.forEach((e,t)=>{this.setTexture(e,t)})}setTexture(e,t=0){this.renderToTextureUniforms[`tMap${t+1}`].value=e}setOpacities(e){this.renderToTextureUniforms.uMapOpacities.value.fromArray(e)}setOpacity(e,t){switch(t){case 0:return this.renderToTextureUniforms.uMapOpacities.value.x=e;case 1:return this.renderToTextureUniforms.uMapOpacities.value.y=e;case 2:return this.renderToTextureUniforms.uMapOpacities.value.z=e;case 3:return this.renderToTextureUniforms.uMapOpacities.value.w=e}}destroyRenderToTexture(){this.renderToTexture.destroy()}createRenderTarget(){const e=o.GA.pmremGenerator.fromScene(this.asset).clone();this.renderTarget=e,this.renderTarget.sourceWidth=e.texture.source.data.width,this.renderTarget.sourceHeight=e.texture.source.data.height,this.renderTarget.texture.name=`EnvironmentTextures:${this.component.component.name}`,o.F9.addTexture(this.renderTarget.texture)}destroyRenderTarget(){this.renderTarget&&(o.F9.removeTexture(this.renderTarget.texture),this.renderTarget.dispose())}getMapTexture(e){return function(e,t,n,r){return new(n||(n=Promise))(function(i,a){function s(e){try{l(r.next(e))}catch(e){a(e)}}function o(e){try{l(r.throw(e))}catch(e){a(e)}}function l(e){var t;e.done?i(e.value):(t=e.value,t instanceof n?t:new n(function(e){e(t)})).then(s,o)}l((r=r.apply(e,t||[])).next())})}(this,void 0,void 0,function*(){const t=`EnvironmentTextures:getMapTexture:${e.texture.name}`,n=`${t} - Start`,i=`${t} - End`;performance.mark(n);const s=e.width*e.height*4,o=l.Z.dataTextureBufferTest(s),c=yield a.Lotus.scene.renderer.readRenderTargetPixelsAsync(e,0,0,e.width,e.height,o),u=new r.DataTexture(c,e.width,e.height,r.RGBAFormat,l.Z.dataTextureTypeTest(),e.texture.mapping,e.texture.wrapS,e.texture.wrapT,e.texture.magFilter,e.texture.minFilter,e.texture.anisotropy,e.texture.colorSpace);return u.flipY=e.texture.flipY,u.needsUpdate=!0,performance.mark(i),performance.measure(t,n,i),u})}render(){var e;null===(e=this.renderToTexture)||void 0===e||e.render(this.renderTarget)}destroy(){super.destroy(),this.destroyRenderTarget(),this.destroyRenderToTexture()}}},5052:(e,t,n)=>{"use strict";n.d(t,{E:()=>o});var r=n(8949),i=n(940),a=n(5344),s=n(4998);class o extends a.X{constructor({component:e,data:t}){super(),Object.defineProperty(this,"component",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"data",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"list",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"values",{enumerable:!0,configurable:!0,writable:!0,value:new Map}),Object.defineProperty(this,"states",{enumerable:!0,configurable:!0,writable:!0,value:{from:null,to:null}}),Object.defineProperty(this,"from",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"to",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),this.component=e,this.data=t,(0,r.makeObservable)(this,{data:r.observable,list:r.observable,values:r.observable}),this.autorun(this.onDataUpdate.bind(this))}onDataUpdate(){this.values.clear(),this.data.forEach(e=>{e["@states"].forEach(t=>{const[n,r]=t.split(":"),i=null!=r?r:n;this.values.has(i)||this.values.set(i,e)})})}getKeyframeValues(e){return this.values.get(e)}set(e){const t=this.getKeyframeValues(e);t&&i.M.apply(t)}setFrom(e){this.states.from=e,this.from=this.getKeyframeValues(e)}setTo(e){this.states.to=e,this.to=this.getKeyframeValues(e)}setAnimation(){var e;this.states.from&&this.states.to&&(this.list=s.i.generate({animations:this.data,parent:null===(e=this.component)||void 0===e?void 0:e.element,states:this.states,values:this.getKeyframeValues(this.states.from)}))}}},4998:(e,t,n)=>{"use strict";n.d(t,{N:()=>d,i:()=>p});var r=n(1469),i=n.n(r),a=n(4293),s=n.n(a),o=n(7037),l=n.n(o),c=n(3465),u=n(4178),h=n(940);class d{findAnimation(e,t){const n=null==e?void 0:e.find(e=>e["@states"].includes(`${t.from}:${t.to}`));if(n)return{animation:n,type:"standard"};const r=null==e?void 0:e.find(e=>e["@states"].includes(`${t.to}`));return r?{animation:r,type:"transition"}:{animation:void 0,type:"unknown"}}findKeyframeValue(e,t,n){let r=h.M.getValue(t,e);return n&&s()(r)&&(r=h.M.getValue(n,e)),r}generateKeyframes({isTransition:e,property:t,target:n,values:r}){const a=[],[s,o]=t;if(i()(o))return o.forEach((t,i)=>{const o=Object.assign(Object.assign({},t),{property:s,target:n,type:"animated"});e&&0===i&&null===o.startValue&&(o.startValue=this.findKeyframeValue(s,n,r)),a.push(o)}),a;if(l()(o)){const e={start:0,property:s,target:n,value:o,type:"static"};a.push(e)}else{const t={easeFunction:[.5,0,.5,1],start:0,end:2,startValue:o,endValue:o,property:s,target:n,type:"animated"};e&&null===t.startValue&&(t.startValue=this.findKeyframeValue(s,n,r)),a.push(t)}return a}generateTimelineKeyframes(e){const t=[];for(const n of Object.entries(e)){const[e,r]=n,i=c.Lotus.scene.getComponentByName(e);for(const e of Object.entries(r))t.push(...this.generateKeyframes({isTransition:!1,property:e,target:i}))}return t}generate({animations:e,parent:t,states:n,values:r}){const{animation:i,type:a}=this.findAnimation(e,n);if(!i)return;const s="transition"===u.F.type||"transition"===a,o=[],l=Object.entries(i).filter(([e])=>"@states"!==e);for(const[e,n]of l){let i=c.Lotus.scene.getComponentByName(e);i||(i=h.M.findObject(e,t));for(const e of Object.entries(n))o.push(...this.generateKeyframes({isTransition:s,property:e,target:i,values:r}))}return o}}const p=new d},1089:(e,t,n)=>{"use strict";n.d(t,{A:()=>u,T:()=>h});var r=n(4468),i=n(308),a=n.n(i),s=n(3465),o=n(940),l=n(5344),c=n(8956);const u={transition:{dataType:"String",defaultValue:"keyframes",options:[{label:"Keyframes",value:"keyframes"},{label:"Interpolation",value:"interpolation"}],type:"Select"}};class h extends l.X{constructor({keyframes:e,onStart:t=a(),onUpdate:n=a(),onComplete:i=a()}){var o,l;super(),Object.defineProperty(this,"clock",{enumerable:!0,configurable:!0,writable:!0,value:new r.Clock(!1)}),Object.defineProperty(this,"keyframes",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"onStart",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"onUpdate",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"onComplete",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"_progress",{enumerable:!0,configurable:!0,writable:!0,value:0}),this.keyframes=e,this.onStart=t,this.onUpdate=n,this.onComplete=i,this.addEventListener("start",this.onStart),this.addEventListener("update",this.onUpdate),this.addEventListener("complete",this.onComplete),null===(l=null===(o=s.Lotus.scene)||void 0===o?void 0:o.eventPool)||void 0===l||l.register(this)}get isPlaying(){return this.clock.running}get progress(){return this._progress}set progress(e){this._progress=e,this.update(e)}get duration(){var e;let t=0;return null===(e=this.keyframes)||void 0===e||e.forEach(e=>{e.end>t&&(t=e.end)}),t}play(e=0){this.duration>0?(this.clock.start(),e=e>this.duration?this.duration:e,this.progress=e/this.duration):this.progress=1}pause(){this.clock.stop()}restart(){this.clock.start()}onLoop(){this.clock.running&&(this.progress=r.MathUtils.clamp(this.clock.getElapsedTime()/this.duration,0,1),this.progress>=1&&this.pause())}normalizeTime(e,t,n){const i=e*this.duration;return r.MathUtils.mapLinear(i,t,n,0,1)}apply(e){o.M.applyValue(e)}update(e){var t;0===e&&this.dispatchEvent({timeline:this,type:"start"}),null===(t=this.keyframes)||void 0===t||t.forEach(({easeFunction:t,end:n,endValue:i,property:a,start:s,startValue:o,target:l,type:u,value:h})=>{if("static"===u)this.duration*e>=s&&this.apply({element:l,property:a,value:h});else{const u=this.normalizeTime(e,s,n);if(u<0||u>1)return;const h=c.K.getEaseTimeCurve(u,t),d=r.MathUtils.lerp(o,i,h);this.apply({element:l,property:a,value:d})}}),this.dispatchEvent({timeline:this,type:"update"}),1===e&&this.dispatchEvent({timeline:this,type:"complete"}),s.Lotus.tryRequestAnimationFrame()}destroy(){super.destroy(),this.removeEventListener("start",this.onStart),this.removeEventListener("update",this.onUpdate),this.removeEventListener("complete",this.onComplete)}}},9614:(e,t,n)=>{"use strict";n.d(t,{fw:()=>f.f,FK:()=>m.F,n0:()=>A,dS:()=>m.d,MU:()=>g.M,Bs:()=>g.B,xR:()=>I,QT:()=>C,AF:()=>x,xG:()=>E,F9:()=>w,Wh:()=>S,Assets:()=>R.d,XY:()=>r.X,hO:()=>P.h,My:()=>j.My,z:()=>O,rV:()=>L,MJ:()=>T,nE:()=>B,t:()=>z,wA:()=>j.wA,fB:()=>ae.f,Op:()=>W.O,H5:()=>q.H,bu:()=>se.b,m3:()=>X.m,Jp:()=>Y.J,ll:()=>K.l,Fh:()=>J.F,li:()=>Z.l,C9:()=>$.C,yD:()=>oe.y,Mi:()=>ee.M,nT:()=>le.n,HO:()=>te.H,te:()=>ne.t,KO:()=>ce.K,tD:()=>re.t,hz:()=>ie.h,c3:()=>de,VK:()=>s,ZX:()=>Ee,cl:()=>o.c,ci:()=>At,rE:()=>Ie,H1:()=>Be,mg:()=>Re.m,ID:()=>we,Pw:()=>j.Pw,mn:()=>j.mn,wf:()=>Ve,E4:()=>ze.E,i3:()=>He.i,Nm:()=>He.N,rW:()=>ct,r0:()=>j.r0,Dt:()=>Pe,$t:()=>j.$t,NB:()=>lt,LI:()=>mt,Sj:()=>ft,ez:()=>xt,Th:()=>p,Y2:()=>Qe,Z8:()=>j.Z8,ex:()=>H,ZM:()=>Ct,GC:()=>St,tx:()=>De,zy:()=>Ue,TY:()=>Et.T,Ah:()=>Et.A,$e:()=>Dt,tr:()=>it,mu:()=>rt,QB:()=>Ge,ZT:()=>xe,qL:()=>pt});var r=n(5344),i=n(8949),a=n(5094);class s extends r.X{constructor({scene:e}){super(),Object.defineProperty(this,"scene",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"component",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"states",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"camera",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"rotationInterpolationMethod",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"defaultInterpolation",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),this.scene=e,(0,i.makeObservable)(this,{component:i.observable,states:i.observable,camera:i.observable,rotationInterpolationMethod:i.observable,defaultInterpolation:i.observable}),this.autorun(()=>{if(this.scene.created&&void 0===this.scene.data.configuration.defaultInterpolation&&this.scene.created){const e=[...this.scene.scripts.values()].find(e=>e instanceof a.A6&&e.interpolation.interpolations);this.scene.data.configuration.defaultInterpolation=e?e.component.id:""}}),this.autorun(()=>{var e,t,n;this.component=this.scene.data.configuration.component,this.states=this.scene.data.configuration.states,this.camera=null!==(e=this.scene.data.configuration.camera)&&void 0!==e?e:"",this.rotationInterpolationMethod=null!==(t=this.scene.data.configuration.rotationInterpolationMethod)&&void 0!==t?t:Ge,this.defaultInterpolation=null!==(n=this.scene.data.configuration.defaultInterpolation)&&void 0!==n?n:""})}serialize(){return{"@reference":this.scene.data.configuration.reference,"@content":{component:this.component,states:(0,i.toJS)(this.states),camera:(0,i.toJS)(this.camera),rotationInterpolationMethod:this.rotationInterpolationMethod,defaultInterpolation:(0,i.toJS)(this.defaultInterpolation)}}}}var o=n(2893),l=n(4468),c=n(3465),u=n(4082),h=n(3951),d=n(5360);class p extends l.WebGLRenderer{constructor(e){super({alpha:e.alpha,antialias:!0,premultipliedAlpha:e.premultipliedAlpha,powerPreference:"high-performance",stencil:e.stencil}),Object.defineProperty(this,"alpha",{enumerable:!0,configurable:!0,writable:!0,value:!0}),Object.defineProperty(this,"background",{enumerable:!0,configurable:!0,writable:!0,value:[0,0,0,0]}),Object.defineProperty(this,"forceDoubleSideDisabled",{enumerable:!0,configurable:!0,writable:!0,value:!1}),Object.defineProperty(this,"forceEnvMapCompile",{enumerable:!0,configurable:!0,writable:!0,value:!0}),Object.defineProperty(this,"forceMapCompile",{enumerable:!0,configurable:!0,writable:!0,value:!0}),Object.defineProperty(this,"forceMetalnessMapCompile",{enumerable:!0,configurable:!0,writable:!0,value:!0}),Object.defineProperty(this,"forceNormalMapCompile",{enumerable:!0,configurable:!0,writable:!0,value:!0}),Object.defineProperty(this,"forceRoughnessMapCompile",{enumerable:!0,configurable:!0,writable:!0,value:!0}),Object.defineProperty(this,"premultipliedAlpha",{enumerable:!0,configurable:!0,writable:!0,value:!0}),Object.defineProperty(this,"reference",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"stencil",{enumerable:!0,configurable:!0,writable:!0,value:!1}),Object.defineProperty(this,"depthMaterial",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"renderTargets",{enumerable:!0,configurable:!0,writable:!0,value:new Set}),Object.defineProperty(this,"height",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"width",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"dpr",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"transmissionMapSize",{enumerable:!0,configurable:!0,writable:!0,value:1024}),(0,i.makeObservable)(this,{alpha:i.observable,background:i.observable,backgroundAlpha:i.computed,backgroundColor:i.computed,forceDoubleSideDisabled:i.observable,forceEnvMapCompile:i.observable,forceMapCompile:i.observable,forceMetalnessMapCompile:i.observable,forceNormalMapCompile:i.observable,forceRoughnessMapCompile:i.observable,premultipliedAlpha:i.observable,renderTargets:i.observable,stencil:i.observable,toneMapping:i.observable,toneMappingExposure:i.observable}),this.debug.checkShaderErrors=h.EnvironmentUtils.IS_DEVELOPMENT||!!localStorage.getItem("LOTUS_CHECK_SHADER_ERRORS"),this.getContext().getExtension("EXT_float_blend"),(0,i.autorun)(()=>{this.alpha=e.alpha,this.background=e.background,this.autoClear=!1,this.forceDoubleSideDisabled=e.forceDoubleSideDisabled,this.forceEnvMapCompile=e.forceEnvMapCompile,this.forceMapCompile=e.forceMapCompile,this.forceMetalnessMapCompile=e.forceMetalnessMapCompile,this.forceNormalMapCompile=e.forceNormalMapCompile,this.forceRoughnessMapCompile=e.forceRoughnessMapCompile,this.premultipliedAlpha=e.premultipliedAlpha,this.reference=e.reference,this.toneMapping=e.toneMapping,this.toneMappingExposure=e.toneMappingExposure,this.stencil=e.stencil,this.setClearColor(this.backgroundColor,this.backgroundAlpha),this.setDPR(),c.Lotus.tryRequestAnimationFrame()},{name:"Renderer data update"}),this.onResize()}create(e){this.createDepthMaterial(),u.GA.initialize(this),e.element.appendChild(this.domElement),e.eventPool.register(this)}createDepthMaterial(){this.depthMaterial=new l.MeshBasicMaterial({colorWrite:!1,name:"RendererDepth"})}destroyDepthMaterial(){this.depthMaterial.dispose()}createDepthTexture(e,t){const n=new l.DepthTexture(e,t);return n.format=this.stencil?l.DepthStencilFormat:l.DepthFormat,n}createRenderTarget(e=this.width*this.dpr,t=this.height*this.dpr,{depthTexture:n=!1,samples:r=0}={samples:0}){const i=new l.WebGLRenderTarget(e,t,{depthBuffer:!0,generateMipmaps:!1,magFilter:l.NearestFilter,minFilter:l.NearestFilter,samples:r,stencilBuffer:this.stencil,type:l.HalfFloatType});return n&&(i.depthTexture=this.createDepthTexture(e,t)),this.renderTargets.add(i),i}destroyRenderTarget(e){this.renderTargets.delete(e),e.texture.dispose(),e.dispose()}compose(e,t){this.clear(),this.render(e,t)}onResize(e){const{height:t=window.innerHeight,width:n=window.innerWidth}=e||{};this.setSize(n,t),this.height=t,this.width=n}get backgroundColor(){const[e,t,n,r]=this.background;return new l.Color(e,t,n)}get backgroundAlpha(){return this.background[3]}setDPR(){this.dpr=d.Z.dprTest(),this.setPixelRatio(this.dpr)}setTransmissionMapSize(e){this.transmissionMapSize=d.Z.transmissionMapSizeTest(e),this.setTransmissionRenderTargetSize(e)}parseMaterial(e){var t,n,r,i,a;this.forceDoubleSideDisabled&&e.side===l.DoubleSide&&(e.side=l.FrontSide),e instanceof l.MeshStandardMaterial&&(this.forceEnvMapCompile&&(e.envMap=null!==(t=e.envMap)&&void 0!==t?t:u.GA.envMap),this.forceMapCompile&&(e.map=null!==(n=e.map)&&void 0!==n?n:u.GA.white1x1),this.forceMetalnessMapCompile&&(e.metalnessMap=null!==(r=e.metalnessMap)&&void 0!==r?r:u.GA.white1x1),this.forceNormalMapCompile&&(e.normalMap=null!==(i=e.normalMap)&&void 0!==i?i:u.GA.normal1x1),this.forceRoughnessMapCompile&&(e.roughnessMap=null!==(a=e.roughnessMap)&&void 0!==a?a:u.GA.white1x1))}compileScene(e,t){return new Promise(n=>function(e,t,n,r){return new(n||(n=Promise))(function(i,a){function s(e){try{l(r.next(e))}catch(e){a(e)}}function o(e){try{l(r.throw(e))}catch(e){a(e)}}function l(e){var t;e.done?i(e.value):(t=e.value,t instanceof n?t:new n(function(e){e(t)})).then(s,o)}l((r=r.apply(e,t||[])).next())})}(this,void 0,void 0,function*(){const r=`compileAsync:${e.name}`,i=`${r} - Start`,a=`${r} - End`;performance.mark(i),yield this.compileAsync(e,t),performance.mark(a),performance.measure(r,i,a),n(!0)}))}serialize(){const e=this.backgroundColor.toArray();return e.push(this.backgroundAlpha),{"@reference":this.reference,"@content":{alpha:this.alpha,background:e,forceDoubleSideDisabled:this.forceDoubleSideDisabled,forceEnvMapCompile:this.forceEnvMapCompile,forceMapCompile:this.forceMapCompile,forceMetalnessMapCompile:this.forceMetalnessMapCompile,forceNormalMapCompile:this.forceNormalMapCompile,forceRoughnessMapCompile:this.forceRoughnessMapCompile,outputColorSpace:this.outputColorSpace,premultipliedAlpha:this.premultipliedAlpha,stencil:this.stencil,toneMapping:this.toneMapping,toneMappingExposure:this.toneMappingExposure}}}destroy(){u.GA.destroy(),this.domElement.parentNode.removeChild(this.domElement),this.destroyDepthMaterial(),this.renderLists.dispose(),this.info.programs.forEach((e,t)=>{0!==t&&1!==t&&e.destroy()})}}var f=n(1790),m=n(4178);class A extends r.X{constructor({animations:e,gltf:t}){var n,r;super(),Object.defineProperty(this,"animations",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"gltf",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"clock",{enumerable:!0,configurable:!0,writable:!0,value:new l.Clock}),Object.defineProperty(this,"mixer",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"action",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"actionData",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"actionTimeout",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),this.animations=e,this.gltf=t,null===(r=null===(n=c.Lotus.scene)||void 0===n?void 0:n.eventPool)||void 0===r||r.register(this),this.createMixer()}createMixer(){this.mixer=new l.AnimationMixer(this.gltf.scene)}destroyMixer(){this.mixer&&(this.mixer.uncacheRoot(this.gltf.scene),this.mixer.stopAllAction(),this.mixer=void 0)}onLoop(){var e,t;const n=this.clock.getDelta();null===(t=null===(e=this.mixer)||void 0===e?void 0:e.update)||void 0===t||t.call(e,n),this.action&&this.action.isRunning?this.clock.start():this.clock.stop(),this.clock.running&&c.Lotus.tryRequestAnimationFrame()}pause(){window.clearTimeout(this.actionTimeout),this.action&&this.action.fadeOut(.5)}play(e){var t,n,r,i;this.pause();const a=null===(t=this.animations)||void 0===t?void 0:t.find(t=>t["@states"].includes(e));if(!a)return;const s=l.AnimationClip.findByName(null===(n=this.gltf)||void 0===n?void 0:n.animations,a.name);if(!s)return;this.action=this.mixer.clipAction(s),this.action.clampWhenFinished=null!==(r=a.clampWhenFinished)&&void 0!==r&&r,a.repetitions>0?this.action.setLoop(l.LoopOnce,a.repetitions):this.action.setLoop(l.LoopRepeat,1/0);const o=1e3*(null!==(i=a.delay)&&void 0!==i?i:0);this.actionTimeout=window.setTimeout(()=>{this.action.reset(),this.action.play()},o)}destroyAction(){var e;window.clearTimeout(this.actionTimeout),null===(e=this.action)||void 0===e||e.stop(),this.action=void 0}destroy(){super.destroy(),this.destroyAction(),this.destroyMixer()}}var g=n(940),v=n(4572),y=n(4063),b=n(9247),_=n.n(b);class x{createLSD(){return function(e,t,n,r){return new(n||(n=Promise))(function(i,a){function s(e){try{l(r.next(e))}catch(e){a(e)}}function o(e){try{l(r.throw(e))}catch(e){a(e)}}function l(e){var t;e.done?i(e.value):(t=e.value,t instanceof n?t:new n(function(e){e(t)})).then(s,o)}l((r=r.apply(e,t||[])).next())})}(this,void 0,void 0,function*(){this.source=yield u.Ie.load(this.path)})}}class E{create(){this.reaction(()=>{var e;return null===(e=this.source)||void 0===e?void 0:e.scene},this.onGLTFLoaded.bind(this))}createGLTF(){return function(e,t,n,r){return new(n||(n=Promise))(function(i,a){function s(e){try{l(r.next(e))}catch(e){a(e)}}function o(e){try{l(r.throw(e))}catch(e){a(e)}}function l(e){var t;e.done?i(e.value):(t=e.value,t instanceof n?t:new n(function(e){e(t)})).then(s,o)}l((r=r.apply(e,t||[])).next())})}(this,void 0,void 0,function*(){this.source=yield u.Ie.load(this.path)})}onGLTFLoaded(){var e;null===(e=this.source.scene)||void 0===e||e.traverse(e=>{(0,i.makeObservable)(e,{visible:i.observable})})}}class w{onReload(e){return function(e,t,n,r){return new(n||(n=Promise))(function(i,a){function s(e){try{l(r.next(e))}catch(e){a(e)}}function o(e){try{l(r.throw(e))}catch(e){a(e)}}function l(e){var t;e.done?i(e.value):(t=e.value,t instanceof n?t:new n(function(e){e(t)})).then(s,o)}l((r=r.apply(e,t||[])).next())})}(this,arguments,void 0,function*({path:e}){if(this.isModel()&&c.Lotus.reload.checkGLTFTextures(this.source,e),c.Lotus.reload.checkFile(e,this.path)){if(this.isLSD()){const e=yield u.Ie.load(this.path);this.source=e}if(this.isModel()){const e=yield u.Ie.load(this.path);this.source=e}if(this.isTexture()){const e=yield u.GA.load(this.path);this.source=e}}})}}var M=function(e,t,n,r){return new(n||(n=Promise))(function(i,a){function s(e){try{l(r.next(e))}catch(e){a(e)}}function o(e){try{l(r.throw(e))}catch(e){a(e)}}function l(e){var t;e.done?i(e.value):(t=e.value,t instanceof n?t:new n(function(e){e(t)})).then(s,o)}l((r=r.apply(e,t||[])).next())})};class S{create(){this.reaction(()=>this.source,this.onTextureLoaded.bind(this)),this.autorun(this.onPropertiesUpdate.bind(this))}createTexture(){return M(this,void 0,void 0,function*(){this.source=yield u.GA.load(this.path)})}onTextureLoaded(){this.isTexture()&&this.source&&(_().IBLS.test(this.path)?this.source.mapping=l.EquirectangularReflectionMapping:_().IMAGES.test(this.path)&&(this.source.colorSpace=l.SRGBColorSpace),this.source.needsUpdate=!0)}onPropertiesUpdate(){return M(this,void 0,void 0,function*(){this.isTexture()&&this.properties&&this.source&&(Object.entries(this.properties).forEach(([e,t])=>{this.source[e]=t}),this.source.needsUpdate=!0)})}}v.Xd.initFunction="create";class C extends r.X{constructor(e){super(),Object.defineProperty(this,"data",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"source",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"readyPromise",{enumerable:!0,configurable:!0,writable:!0,value:Promise.create()}),this.data=e}create(){(0,i.makeObservable)(this,{id:i.computed,path:i.computed,properties:i.computed,ready:i.computed,source:i.observable,type:i.computed}),this.reaction(()=>this.path,this.onPathUpdate.bind(this),{fireImmediately:!0}),this.reaction(()=>this.ready,()=>this.readyPromise.resolve()),this.reaction(()=>{var e;return null===(e=c.Lotus.scene)||void 0===e?void 0:e.rendered},()=>{var e,t;null===(t=null===(e=c.Lotus.scene)||void 0===e?void 0:e.eventPool)||void 0===t||t.register(this)})}get id(){var e;return null===(e=this.data)||void 0===e?void 0:e.id}get path(){var e;return null===(e=this.data)||void 0===e?void 0:e.path}get properties(){var e;return null===(e=this.data)||void 0===e?void 0:e.properties}get type(){var e;return null===(e=this.data)||void 0===e?void 0:e.type}get ready(){return void 0!==this.source}isLSD(){return _().JSON.test(this.path)&&(0,v.KV)(this,x)}isModel(){return _().GLTF.test(this.path)&&(0,v.KV)(this,E)}isTexture(){return _().IMAGES.test(this.path)&&(0,v.KV)(this,S)}onPathUpdate(){return this.isLSD()?this.createLSD():this.isModel()?this.createGLTF():this.isTexture()?this.createTexture():this.path?y.N.warn(`${this.path} is an invalid asset.`):this.source=null}}class I extends((0,v.AF)(C,x,E,S,w)){}var T,B,R=n(6487),P=n(8478);!function(e){e[e.VertexShader=0]="VertexShader",e[e.FragmentShader=1]="FragmentShader"}(T||(T={})),function(e){e[e.InjectBefore=0]="InjectBefore",e[e.Replace=1]="Replace",e[e.InjectAfter=2]="InjectAfter"}(B||(B={}));const L={"@animations":{defaultValue:"",type:"File"},"@variants":{defaultValue:"",type:"File"},id:{defaultValue:"",editable:!1,type:"String"}};class O extends r.X{constructor({component:e,data:t,instructions:n=[],material:r,name:a}){var s,o;super(),Object.defineProperty(this,"component",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"data",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"instructions",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"key",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"material",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"uniforms",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),this.component=e,this.data=t,this.instructions=n,this.key=`${r.name}:${a}`,this.material=r,this.name=a,(0,i.makeObservable)(this,{id:i.computed,material:i.observable,uniforms:i.observable}),c.Lotus.scene.chunks.add(this),this.createInstructions(),this.createUniforms(),null===(o=null===(s=c.Lotus.scene)||void 0===s?void 0:s.eventPool)||void 0===o||o.register(this)}get id(){var e;return null===(e=this.data)||void 0===e?void 0:e.id}createInstructions(){const e=this.material,t=this.constructor.name;if(e.type!==O.MATERIAL_TYPE){const t=O.SHADER_TYPE[e.type];if(void 0!==t){const n=l.ShaderLib[t];e.uniforms=l.UniformsUtils.clone(n.uniforms),e.vertexShader=n.vertexShader,e.fragmentShader=n.fragmentShader}e.chunks=[],e.type=O.MATERIAL_TYPE}if(!e.chunks.includes(t)){e.chunks.push(t);for(const t of this.instructions){let n;switch(t.type){case B.InjectBefore:n=t.chunk+"\n"+t.token;break;case B.Replace:n=t.chunk;break;case B.InjectAfter:n=t.token+"\n"+t.chunk}t.target===T.VertexShader?e.vertexShader=e.vertexShader.replace(t.token,n):e.fragmentShader=e.fragmentShader.replace(t.token,n)}e[`is${this.name}`]=!0}}createUniforms(){this.uniforms=new z({chunk:this})}destroyUniforms(){var e;null===(e=this.uniforms)||void 0===e||e.destroy(),this.uniforms=void 0}destroy(){super.destroy(),this.destroyUniforms()}}Object.defineProperty(O,"MATERIAL_TYPE",{enumerable:!0,configurable:!0,writable:!0,value:"InjectableMaterial"}),Object.defineProperty(O,"SHADER_TYPE",{enumerable:!0,configurable:!0,writable:!0,value:{MeshDepthMaterial:"depth",MeshDistanceMaterial:"distanceRGBA",MeshNormalMaterial:"normal",MeshBasicMaterial:"basic",MeshLambertMaterial:"lambert",MeshPhongMaterial:"phong",MeshToonMaterial:"toon",MeshStandardMaterial:"physical",MeshPhysicalMaterial:"physical",MeshMatcapMaterial:"matcap",LineBasicMaterial:"basic",LineDashedMaterial:"dashed",PointsMaterial:"points",ShadowMaterial:"shadow",SpriteMaterial:"sprite"}}),Object.defineProperty(O,"TEXTURES",{enumerable:!0,configurable:!0,writable:!0,value:["alphaMap","anisotropyMap","aoMap","bumpMap","clearcoatMap","clearcoatNormalMap","clearcoatRoughnessMap","displacementMap","emissiveMap","envMap","iridescenceMap","iridescenceThicknessMap","lightMap","map","metalnessMap","normalMap","roughnessMap","sheenColorMap","sheenRoughnessMap","specularColorMap","specularIntensityMap","specularMap","transmissionMap","thicknessMap"]}),Object.defineProperty(O,"TEXTURES_MIXERS",{enumerable:!0,configurable:!0,writable:!0,value:O.TEXTURES.map(e=>`${e}Mixer`)});var U=n(4293),D=n.n(U),F=n(8721),N=n.n(F),k=n(1469),Q=n.n(k),G=n(7037),V=n.n(G);class z extends r.X{constructor({chunk:e}){super(),Object.defineProperty(this,"chunk",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"data",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"material",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"texture",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"observers",{enumerable:!0,configurable:!0,writable:!0,value:[]}),this.chunk=e,this.data=e.data,this.material=e.material,(0,i.makeObservable)(this,{keys:i.computed}),this.reaction(()=>this.keys,this.onKeysUpdate.bind(this)),this.autorun(this.onDataUpdate.bind(this),{name:"ChunkUniforms.onDataUpdate"}),this.autorun(this.onKeysUpdate.bind(this)),this.autorun(this.onValuesUpdate.bind(this))}get keys(){if(!this.data)return[];const e=Object.keys(c.Lotus.chunks.get(this.chunk.name).fields),t=Object.keys(this.data);return[...new Set([...e,...t])].filter(e=>!z.PROTECTED_PROPERTIES.includes(e))}onKeysUpdate(e){this.keys.filter(e=>!this.observers.includes(e)).forEach(e=>{this.observers.push(e),(0,i.makeObservable)(this.chunk,{[e]:i.observable})})}onDataUpdate(){const e=c.Lotus.chunks.get(this.chunk.name).fields;this.keys.forEach(t=>{var n;this.chunk[t]=void 0!==this.data[t]?this.data[t]:null===(n=e[t])||void 0===n?void 0:n.defaultValue})}get values(){const e={};return this.keys.forEach(t=>{let n=this.chunk[t];const r=t.toLowerCase();r.endsWith("color")&&(n=Q()(n[0])?new l.Color(...n[0]):(new l.Color).fromArray(n)),r.includes("rotation")&&(n=(new l.Euler).fromArray(n)),V()(n)&&r.endsWith("map")&&(n=R.d.getAsset(n)),Q()(n)&&(V()(n[0])?n=n.map(e=>R.d.getAsset(e)):2===n.length?n=(new l.Vector2).fromArray(n):3===n.length?n=(new l.Vector3).fromArray(n):4===n.length&&(n=(new l.Vector4).fromArray(n))),D()(n)||(e[t]=n)}),e}onValuesUpdate(){Object.entries(this.values).forEach(([e,t])=>O.TEXTURES.includes(e)&&Q()(t)?(this.texture=De.get(this.data.id),this.texture.setTextures(t),this.texture.render(),this.applyValue(e,this.texture.renderTarget.texture)):O.TEXTURES_MIXERS.includes(e)?(this.texture=De.get(this.data.id),this.texture.setOpacities(t),void this.texture.render()):void this.applyValue(e,t))}applyValue(e,t){N()(this.material,e)?Q()(t)?this.material[e].fromArray(t):this.material[e]=t:N()(this.material.uniforms,e)?Q()(t)?this.material.uniforms[e].fromArray(t):this.material.uniforms[e].value=t:this.material.uniforms[e]={value:t},this.material.needsUpdate=!0}}Object.defineProperty(z,"PROTECTED_PROPERTIES",{enumerable:!0,configurable:!0,writable:!0,value:["@animations","@states","@variants","animations","id","interpolation","states","transition","variants"]});class H extends((0,v.AF)(r.X,l.ShaderMaterial)){constructor({component:e,data:t,defines:n={},fragmentShader:r,extensions:a={},name:s,uniforms:o={},vertexShader:l}){var u,h;super({defines:n,extensions:a,fragmentShader:r,vertexShader:l,uniforms:o}),Object.defineProperty(this,"component",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"data",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),this.component=e,this.data=t,this.name=s,null===(h=null===(u=c.Lotus.scene)||void 0===u?void 0:u.eventPool)||void 0===h||h.register(this),Object.keys(this.data).filter(e=>!["keyframes","interpolation","transition"].includes(e)).forEach((e,t)=>{this[e]=this.data[e],(0,i.makeObservable)(this,{[e]:i.observable});const n=()=>{this.setUniform({key:e,value:this.data[e]})};if(this.observe(this,e,n,!0),this.observe(this.data,e,n,!0),Q()(this[e])){const t=this[e],r=this.data[e];this.reaction(()=>t.slice(),n,{fireImmediately:!0}),this.reaction(()=>r.slice(),n,{fireImmediately:!0})}})}setUniform({key:e,value:t}){t=h.ChunkUtils.convertValue({key:e,value:t}),D()(t)||(N()(this.uniforms,e)?this.uniforms[e].value=t:this.uniforms[e]={value:t})}}var j=n(701),W=n(4393),q=n(8032),X=n(9840),Y=n(4140),K=n(1938),J=n(8398),Z=n(4663),$=n(7536),ee=n(261),te=n(1727),ne=n(8784),re=n(2134),ie=n(2379),ae=n(9895),se=n(4552),oe=n(2794),le=n(2858),ce=n(9626),ue=n(1351),he=n.n(ue);class de extends r.X{get listLoading(){return this.list.filter(e=>!e.ready)}get listReady(){return this.list.filter(e=>e.ready)}get ready(){return this.created&&0===this.listLoading.length}constructor(){super(),Object.defineProperty(this,"created",{enumerable:!0,configurable:!0,writable:!0,value:!1}),Object.defineProperty(this,"length",{enumerable:!0,configurable:!0,writable:!0,value:0}),Object.defineProperty(this,"list",{enumerable:!0,configurable:!0,writable:!0,value:[]}),Object.defineProperty(this,"isReordering",{enumerable:!0,configurable:!0,writable:!0,value:!1}),(0,i.makeObservable)(this,{created:i.observable,ready:i.computed,list:i.observable,listLoading:i.computed,listReady:i.computed,addComponent:i.action,removeComponent:i.action}),window.requestAnimationFrame(()=>{this.observe(c.Lotus.scene.data.children,this.onDataUpdate.bind(this),!0),this.created=!0})}onDataUpdate(e){const{added:t,removed:n}=e;t&&t.forEach(e=>{this.addComponent(e)}),n&&n.forEach(e=>{this.removeComponent(e)})}addComponent(e){var t;let n;if(this.list.find(t=>t.id===e.id))return;switch(e["@type"]){case"camera":n=j.My;break;case"file":n=j.Pw;break;case"mesh":n=j.$t;break;case"group":n=j.mn;break;case"light":n=j.r0;break;case"script":n=j.Z8}if(!n)return;const r=new n({data:e});return this.list.push(r),(0,v.KV)(r,W.O)&&c.Lotus.scene.setCamera(r.element),null===(t=e.children)||void 0===t||t.forEach(t=>{this.length+=1,t.parent=e.id,this.addComponent(t)}),r}removeComponent(e){var t;const n=this.list.find(t=>t.id===e.id);n&&(this.list.filter(e=>e.parent===n.id).forEach(e=>{this.removeComponent(e)}),h.ArrayUtils.remove(this.list,n),null===(t=n.destroy)||void 0===t||t.call(n))}getComponentChildren(e){const t=[],n=e=>{this.list.forEach(r=>{r.parent===e&&(t.push(r),n(r.id))})};return n(e),t}reorder({componentFrom:e,componentTo:t,type:n}){this.isReordering=!0;const r=this.list.indexOf(e),[i]=this.list.splice(r,1),a=this.list.indexOf(t),s=this.getComponentChildren(t.id);switch(n){case"top":this.list=h.ArrayUtils.insert(this.list,i,a);break;case"center":this.list=h.ArrayUtils.insert(this.list,i,a+1);break;case"bottom":this.list=h.ArrayUtils.insert(this.list,i,a+1+s.length)}t.parent&&"bottom"===n||"top"===n?i.parent=t.parent:"bottom"===n||"top"===n?i.parent=void 0:"center"===n&&(i.parent=t.id);const o=this.getComponentChildren(e.id);he()(o).forEach(e=>{const t=this.list.indexOf(e);this.list.splice(t,1);const n=this.list.indexOf(i);this.list=h.ArrayUtils.insert(this.list,e,n+1)}),this.isReordering=!1}serialize(){return{"@reference":c.Lotus.scene.data.children.reference,"@content":this.list.map(e=>{const t={"@type":e.type,id:e.id,name:e.name};return e.data["@animations"]&&(t["@animations"]=e.data["@animations"]),e.data["@variants"]&&(t["@variants"]=e.data["@variants"]),e.data["@variantWeights"]&&(t["@variantWeights"]=e.data["@variantWeights"]),(0,v.KV)(e,W.O)&&(t.far=e.data.far,t.fov=e.data.fov,t.focalLength=e.data.focalLength,t.near=e.data.near,t.zoom=e.data.zoom),(0,v.KV)(e,q.H)&&(t.materials={},Array.from(e.materials.entries()).forEach(([e,n])=>{t.materials[e]={chunks:{}}}),Object.entries(e.chunks).forEach(([e,n])=>{Object.entries(n).forEach(([n,r])=>{const i=Object.assign({},r.data);delete i["@states"],delete i.animations,delete i.states,delete i.variants,t.materials[e].chunks[n]=i})})),(0,v.KV)(e,X.m)&&(t.file=e.data.file),(0,v.KV)(e,Y.J),(0,v.KV)(e,K.l)&&(t.parent=e.parent),(0,v.KV)(e,J.F)&&(t.kind=e.data.kind,t.layer=e.data.layer,t.color=e.data.color,t.intensity=e.data.intensity,t.decay=e.data.decay,t.distance=e.data.distance,t.angle=e.data.angle,t.penumbra=e.data.penumbra,t.target=e.data.target,t.height=e.data.height,t.width=e.data.width),(0,v.KV)(e,Z.l)&&Array.from(e.layers.entries()).forEach(([e,n])=>{t.materials[e.name].layer=n}),(0,v.KV)(e,$.C)&&(t.geometry=e.data.geometry,t.shader=e.data.shader,t.shaderValues=e.data.shaderValues,t.blending=e.data.blending,t.depthTest=e.data.depthTest,t.depthWrite=e.data.depthWrite,t.renderOrder=e.data.renderOrder,t.side=e.data.side,t.transparent=e.data.transparent),(0,v.KV)(e,ee.M)&&(t.position=(0,i.toJS)(e.data.position),t.rotation=(0,i.toJS)(e.data.rotation),t.rotationOrder=(0,i.toJS)(e.data.rotationOrder),t.scale=(0,i.toJS)(e.data.scale)),(0,v.KV)(e,te.H)&&(t.scripts={},e.scripts.forEach(e=>{const n=Object.assign({},e.data);delete n["@states"],delete n.animations,delete n.states,delete n.variants,t.scripts[e.script]=n})),(0,v.KV)(e,ne.t)&&(t.nodes={},Array.from(e.shadersResets.entries()).forEach(([e,n])=>{t.nodes[e]={}}),Array.from(e.shaders.entries()).forEach(([e,n])=>{t.nodes[e]={shader:n.name,shaderValues:n.data}})),(0,v.KV)(e,ie.h)&&(t.visible=e.data.visible),{"@reference":e.data.reference,"@content":t}})}}destroy(){super.destroy(),this.list.forEach(e=>e.destroy()),this.list=[]}}const pe={type:"change"},fe={type:"start"},me={type:"end"},Ae=new l.Ray,ge=new l.Plane,ve=Math.cos(70*l.MathUtils.DEG2RAD);class ye extends l.EventDispatcher{constructor(e,t){super(),this.object=e,this.domElement=t,this.domElement.style.touchAction="none",this.enabled=!0,this.target=new l.Vector3,this.cursor=new l.Vector3,this.minDistance=0,this.maxDistance=1/0,this.minZoom=0,this.maxZoom=1/0,this.minTargetRadius=0,this.maxTargetRadius=1/0,this.minPolarAngle=0,this.maxPolarAngle=Math.PI,this.minAzimuthAngle=-1/0,this.maxAzimuthAngle=1/0,this.enableDamping=!1,this.dampingFactor=.05,this.enableZoom=!0,this.zoomSpeed=1,this.enableRotate=!0,this.rotateSpeed=1,this.enablePan=!0,this.panSpeed=1,this.screenSpacePanning=!0,this.keyPanSpeed=7,this.zoomToCursor=!1,this.autoRotate=!1,this.autoRotateSpeed=2,this.keys={LEFT:"ArrowLeft",UP:"ArrowUp",RIGHT:"ArrowRight",BOTTOM:"ArrowDown"},this.mouseButtons={LEFT:l.MOUSE.ROTATE,MIDDLE:l.MOUSE.DOLLY,RIGHT:l.MOUSE.PAN},this.touches={ONE:l.TOUCH.ROTATE,TWO:l.TOUCH.DOLLY_PAN},this.target0=this.target.clone(),this.position0=this.object.position.clone(),this.zoom0=this.object.zoom,this._domElementKeyEvents=null,this.getPolarAngle=function(){return s.phi},this.getAzimuthalAngle=function(){return s.theta},this.getDistance=function(){return this.object.position.distanceTo(this.target)},this.listenToKeyEvents=function(e){e.addEventListener("keydown",K),this._domElementKeyEvents=e},this.stopListenToKeyEvents=function(){this._domElementKeyEvents.removeEventListener("keydown",K),this._domElementKeyEvents=null},this.saveState=function(){n.target0.copy(n.target),n.position0.copy(n.object.position),n.zoom0=n.object.zoom},this.reset=function(){n.target.copy(n.target0),n.object.position.copy(n.position0),n.object.zoom=n.zoom0,n.object.updateProjectionMatrix(),n.dispatchEvent(pe),n.update(),i=r.NONE},this.update=function(){const t=new l.Vector3,h=(new l.Quaternion).setFromUnitVectors(e.up,new l.Vector3(0,1,0)),d=h.clone().invert(),p=new l.Vector3,f=new l.Quaternion,m=new l.Vector3,A=2*Math.PI;return function(g=null){const v=n.object.position;t.copy(v).sub(n.target),t.applyQuaternion(h),s.setFromVector3(t),n.autoRotate&&i===r.NONE&&C(function(e){return null!==e?2*Math.PI/60*n.autoRotateSpeed*e:2*Math.PI/60/60*n.autoRotateSpeed}(g)),n.enableDamping?(s.theta+=o.theta*n.dampingFactor,s.phi+=o.phi*n.dampingFactor):(s.theta+=o.theta,s.phi+=o.phi);let y=n.minAzimuthAngle,E=n.maxAzimuthAngle;isFinite(y)&&isFinite(E)&&(y<-Math.PI?y+=A:y>Math.PI&&(y-=A),E<-Math.PI?E+=A:E>Math.PI&&(E-=A),s.theta=y<=E?Math.max(y,Math.min(E,s.theta)):s.theta>(y+E)/2?Math.max(y,s.theta):Math.min(E,s.theta)),s.phi=Math.max(n.minPolarAngle,Math.min(n.maxPolarAngle,s.phi)),s.makeSafe(),!0===n.enableDamping?n.target.addScaledVector(u,n.dampingFactor):n.target.add(u),n.target.sub(n.cursor),n.target.clampLength(n.minTargetRadius,n.maxTargetRadius),n.target.add(n.cursor);let w=!1;if(n.zoomToCursor&&x||n.object.isOrthographicCamera)s.radius=U(s.radius);else{const e=s.radius;s.radius=U(s.radius*c),w=e!=s.radius}if(t.setFromSpherical(s),t.applyQuaternion(d),v.copy(n.target).add(t),n.object.lookAt(n.target),!0===n.enableDamping?(o.theta*=1-n.dampingFactor,o.phi*=1-n.dampingFactor,u.multiplyScalar(1-n.dampingFactor)):(o.set(0,0,0),u.set(0,0,0)),n.zoomToCursor&&x){let r=null;if(n.object.isPerspectiveCamera){const e=t.length();r=U(e*c);const i=e-r;n.object.position.addScaledVector(b,i),n.object.updateMatrixWorld(),w=!!i}else if(n.object.isOrthographicCamera){const e=new l.Vector3(_.x,_.y,0);e.unproject(n.object);const i=n.object.zoom;n.object.zoom=Math.max(n.minZoom,Math.min(n.maxZoom,n.object.zoom/c)),n.object.updateProjectionMatrix(),w=i!==n.object.zoom;const a=new l.Vector3(_.x,_.y,0);a.unproject(n.object),n.object.position.sub(a).add(e),n.object.updateMatrixWorld(),r=t.length()}else console.warn("WARNING: OrbitControls.js encountered an unknown camera type - zoom to cursor disabled."),n.zoomToCursor=!1;null!==r&&(this.screenSpacePanning?n.target.set(0,0,-1).transformDirection(n.object.matrix).multiplyScalar(r).add(n.object.position):(Ae.origin.copy(n.object.position),Ae.direction.set(0,0,-1).transformDirection(n.object.matrix),Math.abs(n.object.up.dot(Ae.direction))a||8*(1-f.dot(n.object.quaternion))>a||m.distanceToSquared(n.target)>a)&&(n.dispatchEvent(pe),p.copy(n.object.position),f.copy(n.object.quaternion),m.copy(n.target),!0)}}(),this.dispose=function(){n.domElement.removeEventListener("contextmenu",Z),n.domElement.removeEventListener("pointerdown",H),n.domElement.removeEventListener("pointercancel",W),n.domElement.removeEventListener("wheel",q),n.domElement.removeEventListener("pointermove",j),n.domElement.removeEventListener("pointerup",W),n.domElement.getRootNode().removeEventListener("keydown",X,{capture:!0}),null!==n._domElementKeyEvents&&(n._domElementKeyEvents.removeEventListener("keydown",K),n._domElementKeyEvents=null)};const n=this,r={NONE:-1,ROTATE:0,DOLLY:1,PAN:2,TOUCH_ROTATE:3,TOUCH_PAN:4,TOUCH_DOLLY_PAN:5,TOUCH_DOLLY_ROTATE:6};let i=r.NONE;const a=1e-6,s=new l.Spherical,o=new l.Spherical;let c=1;const u=new l.Vector3,h=new l.Vector2,d=new l.Vector2,p=new l.Vector2,f=new l.Vector2,m=new l.Vector2,A=new l.Vector2,g=new l.Vector2,v=new l.Vector2,y=new l.Vector2,b=new l.Vector3,_=new l.Vector2;let x=!1;const E=[],w={};let M=!1;function S(e){const t=Math.abs(.01*e);return Math.pow(.95,n.zoomSpeed*t)}function C(e){o.theta-=e}function I(e){o.phi-=e}const T=function(){const e=new l.Vector3;return function(t,n){e.setFromMatrixColumn(n,0),e.multiplyScalar(-t),u.add(e)}}(),B=function(){const e=new l.Vector3;return function(t,r){!0===n.screenSpacePanning?e.setFromMatrixColumn(r,1):(e.setFromMatrixColumn(r,0),e.crossVectors(n.object.up,e)),e.multiplyScalar(t),u.add(e)}}(),R=function(){const e=new l.Vector3;return function(t,r){const i=n.domElement;if(n.object.isPerspectiveCamera){const a=n.object.position;e.copy(a).sub(n.target);let s=e.length();s*=Math.tan(n.object.fov/2*Math.PI/180),T(2*t*s/i.clientHeight,n.object.matrix),B(2*r*s/i.clientHeight,n.object.matrix)}else n.object.isOrthographicCamera?(T(t*(n.object.right-n.object.left)/n.object.zoom/i.clientWidth,n.object.matrix),B(r*(n.object.top-n.object.bottom)/n.object.zoom/i.clientHeight,n.object.matrix)):(console.warn("WARNING: OrbitControls.js encountered an unknown camera type - pan disabled."),n.enablePan=!1)}}();function P(e){n.object.isPerspectiveCamera||n.object.isOrthographicCamera?c/=e:(console.warn("WARNING: OrbitControls.js encountered an unknown camera type - dolly/zoom disabled."),n.enableZoom=!1)}function L(e){n.object.isPerspectiveCamera||n.object.isOrthographicCamera?c*=e:(console.warn("WARNING: OrbitControls.js encountered an unknown camera type - dolly/zoom disabled."),n.enableZoom=!1)}function O(e,t){if(!n.zoomToCursor)return;x=!0;const r=n.domElement.getBoundingClientRect(),i=e-r.left,a=t-r.top,s=r.width,o=r.height;_.x=i/s*2-1,_.y=-a/o*2+1,b.set(_.x,_.y,1).unproject(n.object).sub(n.object.position).normalize()}function U(e){return Math.max(n.minDistance,Math.min(n.maxDistance,e))}function D(e){h.set(e.clientX,e.clientY)}function F(e){f.set(e.clientX,e.clientY)}function N(e){if(1===E.length)h.set(e.pageX,e.pageY);else{const t=ee(e),n=.5*(e.pageX+t.x),r=.5*(e.pageY+t.y);h.set(n,r)}}function k(e){if(1===E.length)f.set(e.pageX,e.pageY);else{const t=ee(e),n=.5*(e.pageX+t.x),r=.5*(e.pageY+t.y);f.set(n,r)}}function Q(e){const t=ee(e),n=e.pageX-t.x,r=e.pageY-t.y,i=Math.sqrt(n*n+r*r);g.set(0,i)}function G(e){if(1==E.length)d.set(e.pageX,e.pageY);else{const t=ee(e),n=.5*(e.pageX+t.x),r=.5*(e.pageY+t.y);d.set(n,r)}p.subVectors(d,h).multiplyScalar(n.rotateSpeed);const t=n.domElement;C(2*Math.PI*p.x/t.clientHeight),I(2*Math.PI*p.y/t.clientHeight),h.copy(d)}function V(e){if(1===E.length)m.set(e.pageX,e.pageY);else{const t=ee(e),n=.5*(e.pageX+t.x),r=.5*(e.pageY+t.y);m.set(n,r)}A.subVectors(m,f).multiplyScalar(n.panSpeed),R(A.x,A.y),f.copy(m)}function z(e){const t=ee(e),r=e.pageX-t.x,i=e.pageY-t.y,a=Math.sqrt(r*r+i*i);v.set(0,a),y.set(0,Math.pow(v.y/g.y,n.zoomSpeed)),P(y.y),g.copy(v),O(.5*(e.pageX+t.x),.5*(e.pageY+t.y))}function H(e){!1!==n.enabled&&(0===E.length&&(n.domElement.setPointerCapture(e.pointerId),n.domElement.addEventListener("pointermove",j),n.domElement.addEventListener("pointerup",W)),function(e){for(let t=0;t0?P(S(y.y)):y.y<0&&L(S(y.y)),g.copy(v),n.update()}(e);break;case r.PAN:if(!1===n.enablePan)return;!function(e){m.set(e.clientX,e.clientY),A.subVectors(m,f).multiplyScalar(n.panSpeed),R(A.x,A.y),f.copy(m),n.update()}(e)}}(e))}function W(e){switch(function(e){delete w[e.pointerId];for(let t=0;t0&&P(S(e.deltaY)),n.update()}(function(e){const t=e.deltaMode,n={clientX:e.clientX,clientY:e.clientY,deltaY:e.deltaY};switch(t){case 1:n.deltaY*=16;break;case 2:n.deltaY*=100}return e.ctrlKey&&!M&&(n.deltaY*=10),n}(e)),n.dispatchEvent(me))}function X(e){"Control"===e.key&&(M=!0,n.domElement.getRootNode().addEventListener("keyup",Y,{passive:!0,capture:!0}))}function Y(e){"Control"===e.key&&(M=!1,n.domElement.getRootNode().removeEventListener("keyup",Y,{passive:!0,capture:!0}))}function K(e){!1!==n.enabled&&!1!==n.enablePan&&function(e){let t=!1;switch(e.code){case n.keys.UP:e.ctrlKey||e.metaKey||e.shiftKey?I(2*Math.PI*n.rotateSpeed/n.domElement.clientHeight):R(0,n.keyPanSpeed),t=!0;break;case n.keys.BOTTOM:e.ctrlKey||e.metaKey||e.shiftKey?I(-2*Math.PI*n.rotateSpeed/n.domElement.clientHeight):R(0,-n.keyPanSpeed),t=!0;break;case n.keys.LEFT:e.ctrlKey||e.metaKey||e.shiftKey?C(2*Math.PI*n.rotateSpeed/n.domElement.clientHeight):R(n.keyPanSpeed,0),t=!0;break;case n.keys.RIGHT:e.ctrlKey||e.metaKey||e.shiftKey?C(-2*Math.PI*n.rotateSpeed/n.domElement.clientHeight):R(-n.keyPanSpeed,0),t=!0}t&&(e.preventDefault(),n.update())}(e)}function J(e){switch($(e),E.length){case 1:switch(n.touches.ONE){case l.TOUCH.ROTATE:if(!1===n.enableRotate)return;N(e),i=r.TOUCH_ROTATE;break;case l.TOUCH.PAN:if(!1===n.enablePan)return;k(e),i=r.TOUCH_PAN;break;default:i=r.NONE}break;case 2:switch(n.touches.TWO){case l.TOUCH.DOLLY_PAN:if(!1===n.enableZoom&&!1===n.enablePan)return;!function(e){n.enableZoom&&Q(e),n.enablePan&&k(e)}(e),i=r.TOUCH_DOLLY_PAN;break;case l.TOUCH.DOLLY_ROTATE:if(!1===n.enableZoom&&!1===n.enableRotate)return;!function(e){n.enableZoom&&Q(e),n.enableRotate&&N(e)}(e),i=r.TOUCH_DOLLY_ROTATE;break;default:i=r.NONE}break;default:i=r.NONE}i!==r.NONE&&n.dispatchEvent(fe)}function Z(e){!1!==n.enabled&&e.preventDefault()}function $(e){let t=w[e.pointerId];void 0===t&&(t=new l.Vector2,w[e.pointerId]=t),t.set(e.pageX,e.pageY)}function ee(e){const t=e.pointerId===E[0]?E[1]:E[0];return w[t]}n.domElement.addEventListener("contextmenu",Z),n.domElement.addEventListener("pointerdown",H),n.domElement.addEventListener("pointercancel",W),n.domElement.addEventListener("wheel",q,{passive:!1}),n.domElement.getRootNode().addEventListener("keydown",X,{passive:!0,capture:!0}),this.update()}}class be extends l.Object3D{constructor(e,t){super(),this.isViewHelper=!0,this.animating=!1,this.center=new l.Vector3;const n=new l.Color("#ff4466"),r=new l.Color("#88ff44"),i=new l.Color("#4488ff"),a=new l.Color("#000000"),s=[],o=new l.Raycaster,c=new l.Vector2,u=new l.Object3D,h=new l.OrthographicCamera(-2,2,2,-2,0,4);h.position.set(0,0,2);const d=new l.CylinderGeometry(.04,.04,.8,5).rotateZ(-Math.PI/2).translate(.4,0,0),p=new l.Mesh(d,U(n)),f=new l.Mesh(d,U(r)),m=new l.Mesh(d,U(i));f.rotation.z=Math.PI/2,m.rotation.y=-Math.PI/2,this.add(p),this.add(m),this.add(f);const A=D(n),g=D(r),v=D(i),y=D(a),b=new l.Sprite(A),_=new l.Sprite(g),x=new l.Sprite(v),E=new l.Sprite(y),w=new l.Sprite(y),M=new l.Sprite(y);b.position.x=1,_.position.y=1,x.position.z=1,E.position.x=-1,w.position.y=-1,M.position.z=-1,E.material.opacity=.2,w.material.opacity=.2,M.material.opacity=.2,b.userData.type="posX",_.userData.type="posY",x.userData.type="posZ",E.userData.type="negX",w.userData.type="negY",M.userData.type="negZ",this.add(b),this.add(_),this.add(x),this.add(E),this.add(w),this.add(M),s.push(b),s.push(_),s.push(x),s.push(E),s.push(w),s.push(M);const S=new l.Vector3,C=128,I=2*Math.PI;this.render=function(n){this.quaternion.copy(e.quaternion).invert(),this.updateMatrixWorld(),S.set(0,0,1),S.applyQuaternion(e.quaternion);const r=t.offsetWidth-C;n.clearDepth(),n.getViewport(L),n.setViewport(r,0,C,C),n.render(this,h),n.setViewport(L.x,L.y,L.z,L.w)};const T=new l.Vector3,B=new l.Quaternion,R=new l.Quaternion,P=new l.Quaternion,L=new l.Vector4;let O=0;function U(e){return new l.MeshBasicMaterial({color:e,toneMapped:!1})}function D(e){const t=document.createElement("canvas");t.width=64,t.height=64;const n=t.getContext("2d");n.beginPath(),n.arc(32,32,14,0,2*Math.PI),n.closePath(),n.fillStyle=e.getStyle(),n.fill();const r=new l.CanvasTexture(t);return r.colorSpace=l.SRGBColorSpace,new l.SpriteMaterial({map:r,toneMapped:!1})}this.handleClick=function(n){if(!0===this.animating)return!1;const r=t.getBoundingClientRect(),i=r.left+(t.offsetWidth-C),a=r.top+(t.offsetHeight-C);c.x=(n.clientX-i)/(r.right-i)*2-1,c.y=-(n.clientY-a)/(r.bottom-a)*2+1,o.setFromCamera(c,h);const d=o.intersectObjects(s);return d.length>0&&(function(t,n){switch(t.userData.type){case"posX":T.set(1,0,0),B.setFromEuler(new l.Euler(0,.5*Math.PI,0));break;case"posY":T.set(0,1,0),B.setFromEuler(new l.Euler(.5*-Math.PI,0,0));break;case"posZ":T.set(0,0,1),B.setFromEuler(new l.Euler);break;case"negX":T.set(-1,0,0),B.setFromEuler(new l.Euler(0,.5*-Math.PI,0));break;case"negY":T.set(0,-1,0),B.setFromEuler(new l.Euler(.5*Math.PI,0,0));break;case"negZ":T.set(0,0,-1),B.setFromEuler(new l.Euler(0,Math.PI,0));break;default:console.error("ViewHelper: Invalid axis.")}O=e.position.distanceTo(n),T.multiplyScalar(O).add(n),u.position.copy(n),u.lookAt(e.position),R.copy(u.quaternion),u.lookAt(T),P.copy(u.quaternion)}(d[0].object,this.center),this.animating=!0,!0)},this.update=function(t){const n=t*I;R.rotateTowards(P,n),e.position.set(0,0,1).applyQuaternion(R).multiplyScalar(O).add(this.center),e.quaternion.rotateTowards(B,n),0===R.angleTo(P)&&(this.animating=!1)},this.dispose=function(){d.dispose(),p.material.dispose(),f.material.dispose(),m.material.dispose(),b.material.map.dispose(),_.material.map.dispose(),x.material.map.dispose(),E.material.map.dispose(),w.material.map.dispose(),M.material.map.dispose(),b.material.dispose(),_.material.dispose(),x.material.dispose(),E.material.dispose(),w.material.dispose(),M.material.dispose()}}}var _e=n(8264);function xe(e){if(!e.visible)return!1;if(e.layers.isEnabled(_e.m1))return!1;let t=e;for(;null!==(t=t.parent);)if(!t.visible)return!1;return!0}class Ee extends r.X{constructor({scene:e}){var t,n;super(),Object.defineProperty(this,"scene",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"domElement",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"axis",{enumerable:!0,configurable:!0,writable:!0,value:!0}),Object.defineProperty(this,"cursor",{enumerable:!0,configurable:!0,writable:!0,value:!0}),Object.defineProperty(this,"frustum",{enumerable:!0,configurable:!0,writable:!0,value:!1}),Object.defineProperty(this,"grid",{enumerable:!0,configurable:!0,writable:!0,value:!0}),Object.defineProperty(this,"lights",{enumerable:!0,configurable:!0,writable:!0,value:!0}),Object.defineProperty(this,"mode",{enumerable:!0,configurable:!0,writable:!0,value:"orbit"}),Object.defineProperty(this,"outline",{enumerable:!0,configurable:!0,writable:!0,value:!0}),Object.defineProperty(this,"outlineHandler",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"camera",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"axisHelper",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"viewHelper",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"gridHelper",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"orbit",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"transformRaycaster",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"selection",{enumerable:!0,configurable:!0,writable:!0,value:null}),this.scene=e,null===(n=null===(t=this.scene)||void 0===t?void 0:t.eventPool)||void 0===n||n.register(this),(0,i.makeObservable)(this,{axis:i.observable,cursor:i.observable,frustum:i.observable,grid:i.observable,lights:i.observable,mode:i.observable,outline:i.observable,outlineHandler:i.observable,selection:i.observable}),this.domElement=this.scene.renderer.domElement,this.initialize()}initialize(){return function(e,t,n,r){return new(n||(n=Promise))(function(i,a){function s(e){try{l(r.next(e))}catch(e){a(e)}}function o(e){try{l(r.throw(e))}catch(e){a(e)}}function l(e){var t;e.done?i(e.value):(t=e.value,t instanceof n?t:new n(function(e){e(t)})).then(s,o)}l((r=r.apply(e,t||[])).next())})}(this,void 0,void 0,function*(){this.createCamera(),this.createRaycaster(),this.createOrbit(),this.createAxisHelper(),this.createGridHelper(),this.reaction(()=>c.Lotus.scene,()=>this.createOutlineHandler()),this.autorun(this.onModeUpdate.bind(this))})}onModeUpdate(){"user"===this.mode?(this.axisHelper.visible=!1,this.gridHelper.visible=!1,this.viewHelper.visible=!1,this.outlineHandler&&(this.outlineHandler.enabled=!1),this.selection=null):(this.axisHelper.visible=this.axis,this.gridHelper.visible=this.grid,this.viewHelper.visible=this.axis,this.outlineHandler&&(this.outlineHandler.enabled=this.outline)),c.Lotus.tryRequestAnimationFrame()}createOutlineHandler(){this.outlineHandler=new mt}destroyOutlineHandler(){this.outlineHandler.destroy(),this.outlineHandler=void 0}createCamera(){this.camera=new P.h({helper:!1,name:"OrbitCamera",near:.01,scene:this.scene}),this.camera.layers.enableAll()}destroyCamera(){this.camera.destroy(),this.camera=void 0}createAxisHelper(){this.axisHelper=new l.AxesHelper(10),this.axisHelper.layers.set(_e.Q6),this.axisHelper.material.depthWrite=!1,this.axisHelper.renderOrder=101,this.axisHelper.visible=this.axis,this.scene.add(this.axisHelper),this.viewHelper=new be(this.camera,this.domElement),this.viewHelper.layers.set(_e.Q6),this.viewHelper.visible=this.axis}destroyAxisHelper(){this.axisHelper.dispose(),this.axisHelper=void 0,this.viewHelper.dispose(),this.viewHelper=void 0}createGridHelper(){this.gridHelper=new l.GridHelper(20,20,1118481,2236962),this.gridHelper.layers.set(_e.Q6),this.gridHelper.material.depthWrite=!1,this.gridHelper.renderOrder=100,this.gridHelper.visible=this.grid,this.scene.add(this.gridHelper)}destroyGridHelper(){this.gridHelper.dispose(),this.gridHelper=void 0}renderViewHelper(){var e;"orbit"===this.mode&&(null===(e=this.viewHelper)||void 0===e||e.render(this.scene.renderer))}createOrbit(){this.orbit=new ye(this.camera,this.domElement),this.camera.position.x=20,this.camera.position.y=20,this.camera.position.z=30}destroyOrbit(){this.orbit.dispose(),this.orbit=void 0}centerOrbit(){this.orbit.target.set(0,0,0)}createRaycaster(){this.transformRaycaster=new l.Raycaster,this.transformRaycaster.layers.enableAll(),this.transformRaycaster.layers.disable(_e.m1),this.transformRaycaster.layers.disable(_e.Q6)}destroyRaycaster(){this.transformRaycaster=void 0}onKeyboard(e){var t;const n=null===(t=e.nativeEvent.key)||void 0===t?void 0:t.toLowerCase();["a","f"].includes(n)&&this.centerOrbit()}onPointerStart(e){}onPointerEnd(e){var t,n,r;if((null===(t=e.nativeEvent)||void 0===t?void 0:t.target)!==c.Lotus.renderer.domElement)return;if("orbit"!==this.mode)return;if(e.nativeEvent instanceof MouseEvent&&e.nativeEvent.button===l.MOUSE.PAN)return;const i=Math.abs(this.scene.pointer.move.x),a=Math.abs(this.scene.pointer.move.y);if(i>1||a>1)return;this.transformRaycaster.setFromCamera(this.scene.pointer.normalized,this.orbit.object);const s=this.transformRaycaster.intersectObjects([c.Lotus.scene],!0),o=[...new Set(s.map(e=>e.object).filter(e=>xe(e)))];if(this.selection){const e=o.indexOf(this.selection),t=o[e+1];this.selection=t}else o.length?this.selection=o[0]:this.selection=null;if(this.cursor){let e=null;this.selection&&(e=null===(n=this.selection.userData)||void 0===n?void 0:n.component,e||null===(r=this.selection)||void 0===r||r.traverseAncestors(t=>{e||(e=t.userData.component)})),c.Lotus.scene.component=e}}onLoop(){var e,t;"orbit"===this.mode&&(null===(t=null===(e=this.orbit)||void 0===e?void 0:e.update)||void 0===t||t.call(e))}onAfterRender(){this.renderViewHelper()}destroy(){super.destroy(),this.destroyCamera(),this.destroyRaycaster(),this.destroyOrbit(),this.destroyAxisHelper(),this.destroyGridHelper(),this.destroyOutlineHandler()}}class we extends r.X{constructor(){super(...arguments),Object.defineProperty(this,"data",{enumerable:!0,configurable:!0,writable:!0,value:{}}),Object.defineProperty(this,"fireAtStart",{enumerable:!0,configurable:!0,writable:!0,value:{}}),Object.defineProperty(this,"instances",{enumerable:!0,configurable:!0,writable:!0,value:[]}),Object.defineProperty(this,"listeners",{enumerable:!0,configurable:!0,writable:!0,value:{}})}on(e,t){this.listeners[e]=this.listeners[e]||[],this.listeners[e].push(t)}off(e,t){e in this.listeners!=0&&this.listeners[e].splice(this.listeners[e].indexOf(t),1)}register(e){this.instances=[e,...this.instances];for(const t in this.fireAtStart)this.fireMethod(e,t)}unregister(e){const t=this.instances.indexOf(e);t>-1&&this.instances.splice(t,1)}nameToMethod(e){return`on${e.charAt(0).toUpperCase()+e.slice(1)}`}fireMethod(e,t){const n=e[this.nameToMethod(t)];"function"==typeof n&&n.call(e,this.data[t])}trigger({name:e,fireAtStart:t=!1},n={}){if(this.data[e]=n,t&&(this.fireAtStart[e]=!0),e in this.listeners)for(let t=0;tthis.fireMethod(t,e))}}var Me=n(2921),Se=n.n(Me),Ce=function(e,t,n,r){return new(n||(n=Promise))(function(i,a){function s(e){try{l(r.next(e))}catch(e){a(e)}}function o(e){try{l(r.throw(e))}catch(e){a(e)}}function l(e){var t;e.done?i(e.value):(t=e.value,t instanceof n?t:new n(function(e){e(t)})).then(s,o)}l((r=r.apply(e,t||[])).next())})};class Ie extends r.X{static generateEmptyTexture(){const e=d.Z.pmremCubeFaceSizeTest(),t=e*e*4,n=d.Z.dataTextureBufferTest(t),r=new l.DataTexture(n,e,e,l.RGBAFormat,d.Z.dataTextureTypeTest(),l.UVMapping,l.ClampToEdgeWrapping,l.ClampToEdgeWrapping,l.LinearFilter,l.LinearFilter,1,l.LinearSRGBColorSpace);return r.flipY=!0,r}constructor({component:e,renderer:t,texture:n}){super(),Object.defineProperty(this,"renderTarget",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"component",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"renderer",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"fadeRenderToTexture",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"fadeRenderToTextureUniforms",{enumerable:!0,configurable:!0,writable:!0,value:{uSourceTexture:{value:null},uDestinationTexture:{value:null},uBlend:{value:0}}}),Object.defineProperty(this,"resizeRenderToTexture",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"resizeRenderToTextureUniforms",{enumerable:!0,configurable:!0,writable:!0,value:{uMainTexture:{value:null}}}),Object.defineProperty(this,"textures",{enumerable:!0,configurable:!0,writable:!0,value:new Set});let r=!1;n||(r=!0,n=Ie.generateEmptyTexture()),this.component=e,this.renderer=t,this.createCrossFade(t),this.createResize(t),this.initWithTexture(n),r&&n.dispose()}createCrossFade(e){this.fadeRenderToTexture=new xt(e,{fragmentShader:Se(),uniforms:this.fadeRenderToTextureUniforms})}destroyCrossFade(){this.fadeRenderToTexture.destroy()}createResize(e){this.resizeRenderToTexture=new xt(e,{uniforms:this.resizeRenderToTextureUniforms})}destroyResize(){this.resizeRenderToTexture.destroy()}getMapFromTexture(e,t){return Ce(this,void 0,void 0,function*(){if(void 0!==this.renderTarget){if(e.source.data.width!==this.renderTarget.sourceWidth||e.source.data.height!==this.renderTarget.sourceHeight||void 0===e.source.data.data){const t=new l.WebGLRenderTarget(this.renderTarget.sourceWidth,this.renderTarget.sourceHeight,{depthBuffer:!1,colorSpace:e.colorSpace,format:l.RGBAFormat,generateMipmaps:!1,magFilter:e.magFilter,minFilter:e.minFilter,type:d.Z.dataTextureTypeTest(),wrapS:e.wrapS,wrapT:e.wrapT});this.resizeRenderToTextureUniforms.uMainTexture.value=e,this.resizeRenderToTexture.render(t),e.dispose(),e=yield this.bufferToPixels(t),t.texture.dispose(),t.dispose()}return this.createMapWithTexture(e,t)}console.error("[EnvironmentTexture] is not initialized, make sure to do it by `initWithTexture` and try again")})}createMapWithTexture(e,t){if(t){const e=Be.get(t);if(e)return e}const n=e.clone(),r=u.GA.pmremGenerator.fromEquirectangular(n);return n.dispose(),t&&Be.add(t,r),r}initWithTexture(e){this.renderTarget=this.createMapWithTexture(e),this.renderTarget.sourceWidth=e.source.data.width,this.renderTarget.sourceHeight=e.source.data.height,this.renderTarget.texture.name=`EnvironmentTexture:${this.component.name}`,u.F9.addTexture(this.renderTarget.texture)}setSourceFromMap(e){return Ce(this,arguments,void 0,function*(e,t=!0){let n=e.texture;t&&(n=yield this.bufferToPixels(e)),this.fadeRenderToTextureUniforms.uSourceTexture.value=n})}setDestinationFromMap(e){return Ce(this,arguments,void 0,function*(e,t=!0){let n=e.texture;t&&(n=yield this.bufferToPixels(e)),this.fadeRenderToTextureUniforms.uDestinationTexture.value=n})}setSourceFromTexture(e,t=!0){this.setupCrossFadeTexture("uSourceTexture",e,t)}setDestinationFromTexture(e,t=!0){this.setupCrossFadeTexture("uDestinationTexture",e,t)}destroyTextures(){this.textures.forEach(e=>{e.dispose()}),this.textures.clear()}bufferToPixels(e){return Ce(this,void 0,void 0,function*(){const t=`EnvironmentTexture:getMapTexture:${e.texture.name}`,n=`${t} - Start`,r=`${t} - End`;performance.mark(n);const i=e.width*e.height*4,a=d.Z.dataTextureBufferTest(i),s=yield this.renderer.readRenderTargetPixelsAsync(e,0,0,e.width,e.height,a),o=new l.DataTexture(s,e.width,e.height,l.RGBAFormat,d.Z.dataTextureTypeTest(),e.texture.mapping,e.texture.wrapS,e.texture.wrapT,e.texture.magFilter,e.texture.minFilter,e.texture.anisotropy,e.texture.colorSpace);return o.flipY=e.texture.flipY,o.needsUpdate=!0,this.textures.add(o),performance.mark(r),performance.measure(t,n,r),o})}setupCrossFadeTexture(e,t){return Ce(this,arguments,void 0,function*(e,t,n=!0){let r=t;n&&(r=t.clone());const i=yield this.getMapFromTexture(r);this.fadeRenderToTextureUniforms[e].value=i.texture,this.fadeRenderToTexture.render(this.renderTarget),n&&r.dispose()})}fade(e){this.fadeRenderToTextureUniforms.uBlend.value=e,this.fadeRenderToTexture.render(this.renderTarget)}destroy(){super.destroy(),this.destroyCrossFade(),this.destroyResize(),this.destroyTextures(),u.F9.removeTexture(this.renderTarget.texture)}}class Te extends r.X{constructor(){super(...arguments),Object.defineProperty(this,"map",{enumerable:!0,configurable:!0,writable:!0,value:new Map})}add(e,t){this.map.set(e,t)}get(e){return!h.EnvironmentUtils.IS_DEVELOPMENT&&this.map.get(e)}}const Be=new Te;var Re=n(7928);class Pe extends Error{constructor(e,t){super(e),Object.defineProperty(this,"type",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),this.name="LotusError",this.type=t.type,Error.captureStackTrace&&Error.captureStackTrace(this,this.constructor)}}var Le=n(1763),Oe=n.n(Le);class Ue{constructor(){Object.defineProperty(this,"list",{enumerable:!0,configurable:!0,writable:!0,value:new Map})}create(e){const t=new At({id:e});return this.list.set(e,t),t}get(e){var t;return null!==(t=this.list.get(e))&&void 0!==t?t:this.create(e)}destroy(){this.list.forEach(e=>{e.destroy()}),this.list.clear()}}const De=new Ue,Fe=Math.PI,Ne=2*Math.PI;function ke(e,t,n){return e+function(e,t){return((t-e)%Ne+(Ne+Fe))%Ne-Fe}(e,t)*n}const Qe=1e-4,Ge="circular";class Ve extends r.X{constructor({component:e,values:t,variantWeightsRef:n}){super(),Object.defineProperty(this,"component",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"interpolations",{enumerable:!0,configurable:!0,writable:!0,value:{}}),Object.defineProperty(this,"types",{enumerable:!0,configurable:!0,writable:!0,value:{}}),Object.defineProperty(this,"values",{enumerable:!0,configurable:!0,writable:!0,value:{}}),Object.defineProperty(this,"variantWeightsRef",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"textures",{enumerable:!0,configurable:!0,writable:!0,value:new Map}),Object.defineProperty(this,"texturesEntries",{enumerable:!0,configurable:!0,writable:!0,value:new Map}),Object.defineProperty(this,"rotationVariantsLastVariants",{enumerable:!0,configurable:!0,writable:!0,value:{}}),Object.defineProperty(this,"rotationVariantsLastValue",{enumerable:!0,configurable:!0,writable:!0,value:{}}),this.component=e,this.values=t,this.variantWeightsRef=n,(0,i.makeObservable)(this,{variantWeightsRef:i.observable,interpolationProvider:i.computed}),this.autorun(this.onDataUpdate.bind(this),{name:"Interpolation.onDataUpdate"}),c.Lotus.scene.eventPool.register(this)}onDataUpdate(e){Object.entries(this.values).forEach(([e,t])=>{Object.entries(t).forEach(([t,n])=>{var r,i;null!==(r=(i=this.interpolations)[t])&&void 0!==r||(i[t]={}),Q()(n)?this.types[t]="array":Oe()(n)?this.types[t]="number":V()(n)&&(this.types[t]="string"),this.interpolations[t][e]=n})}),Object.entries(this.types).filter(([e,t])=>"string"===t).map(([e])=>{var t;const n=De.get(`${this.component.id}:${e}`);this.textures.set(e,n),Object.entries(this.interpolations[e]).map(([e,t])=>{this.texturesEntries.set(t,R.d.getAsset(t))});const r=null===(t=this.component.data)||void 0===t?void 0:t[e];r&&this.texturesEntries.set(r,R.d.getAsset(r))})}get interpolationProvider(){if(!this.variantWeightsRef||""===this.variantWeightsRef)return c.Lotus.scene.interpolation;const e=c.Lotus.scene.getComponent(this.variantWeightsRef);return e?[...null==e?void 0:e.scripts.values()].find(e=>e.interpolation).interpolation:null}onLoop(){var e,t;const n=null!==(e=c.Lotus.scene.configuration.rotationInterpolationMethod)&&void 0!==e?e:Ge;if(!(null===(t=this.interpolationProvider)||void 0===t?void 0:t.interpolations))return;const r=c.Lotus.scene.states.get("global"),i=new Set,a=Object.values(this.interpolationProvider.interpolations);Object.entries(this.interpolations).forEach(([e,t])=>{var s,o,l,c;const u=this.types[e],h=this.component;let d;if(h.data&&(d=g.M.getValue(h.data,e)),D()(d)&&(d=g.M.getValue(this.component,e)),"array"===u){const n=[0,0,0,0];a.forEach(({label:e,interpolation:i})=>{var a,s,o;const l=null!==(o=null!==(s=null!==(a=t[`${r}+${e}`])&&void 0!==a?a:t[e])&&void 0!==s?s:t[r])&&void 0!==o?o:d;l&&(n[0]+=l[0]*i,n[1]+=l[1]*i,n[2]+=l[2]*i,n[3]+=l[3]*i)}),g.M.applyValue({element:this.component,property:e,value:n})}else if("number"===u){let i=0;const u=e.startsWith("rotation")?n:"fov"===e?"fov":"linear";if("linear"===u)a.forEach(({label:e,interpolation:n})=>{var a,s,o;const l=null!==(o=null!==(s=null!==(a=t[`${r}+${e}`])&&void 0!==a?a:t[e])&&void 0!==s?s:t[r])&&void 0!==o?o:d;i+=l*n});else if("fov"===u)a.forEach(({label:e,interpolation:n})=>{var a,s,o;const l=null!==(o=null!==(s=null!==(a=t[`${r}+${e}`])&&void 0!==a?a:t[e])&&void 0!==s?s:t[r])&&void 0!==o?o:d;i+=Math.pow(l,1/Ve.fovExp)*n}),i=Math.pow(i,Ve.fovExp);else if("angle"===u){const n=a.map(({label:e,interpolation:n})=>{var i,a,s;const o=null!==(s=null!==(a=null!==(i=t[`${r}+${e}`])&&void 0!==i?i:t[e])&&void 0!==a?a:t[r])&&void 0!==s?s:d;return{variantName:`${r}+${e}`,weight:n,value:o}});null!==(s=(l=this.rotationVariantsLastVariants)[e])&&void 0!==s||(l[e]={}),null!==(o=(c=this.rotationVariantsLastValue)[e])&&void 0!==o||(c[e]=0);const u=this.rotationVariantsLastVariants[e],h=this.rotationVariantsLastValue[e],p=n.filter(({weight:e})=>Math.abs(e)>Qe);p.forEach(({variantName:e,weight:t,value:n})=>{if(u[e])u[e].weight=t;else{const r=function(e,t){var n;return t-(((t-e+Math.PI)%(n=Ne)+n)%n-Math.PI)}(n,h);u[e]={weight:t,value:r}}}),Object.keys(u).forEach(e=>{p.find(({variantName:t})=>t===e)||delete u[e]});const f=Object.entries(u);f.length>0&&(f[0][1].value<-Math.PI?f.forEach(([e,t])=>{t.value+=Ne}):f[0][1].value>Math.PI&&f.forEach(([e,t])=>{t.value-=Ne})),i=Object.entries(u).reduce((e,[t,{weight:n,value:r}])=>e+r*n,0),this.rotationVariantsLastValue[e]=i}else if("angle_old"===u){const e=a.map(({label:e,interpolation:n})=>{var i,a,s;return{interpolation:n,value:null!==(s=null!==(a=null!==(i=t[`${r}+${e}`])&&void 0!==i?i:t[e])&&void 0!==a?a:t[r])&&void 0!==s?s:d}}).sort((e,t)=>t.interpolation-e.interpolation);let n=e[0].value,s=e[0].interpolation;for(let t=1;t{var a,s,o;const l=(c=null!==(o=null!==(s=null!==(a=t[`${r}+${n}`])&&void 0!==a?a:t[n])&&void 0!==s?s:t[r])&&void 0!==o?o:d,[Math.cos(c),Math.sin(c)]);var c;e[0]+=l[0]*i,e[1]+=l[1]*i}),p=e,i=Math.atan2(p[1],p[0])}g.M.applyValue({element:this.component,property:e,value:i})}else if("string"===u){const n=this.textures.get(e);a.forEach(({label:e,interpolation:a},s)=>{var o,l,c;const u=null!==(c=null!==(l=null!==(o=t[`${r}+${e}`])&&void 0!==o?o:t[e])&&void 0!==l?l:t[r])&&void 0!==c?c:d,h=this.texturesEntries.get(u);h&&(n.setTexture(h,s),n.setOpacity(a,s),i.add(n))}),g.M.applyValue({element:this.component,property:e,value:n.renderTarget.texture})}var p}),i.forEach(e=>e.render())}destroy(){super.destroy(),this.textures.clear(),this.texturesEntries.clear()}}Object.defineProperty(Ve,"fovExp",{enumerable:!0,configurable:!0,writable:!0,value:-2});var ze=n(5052),He=n(4998),je=n(1966),We=n.n(je),qe=n(2525),Xe=n.n(qe),Ye=n(8630),Ke=n.n(Ye),Je=n(3674),Ze=n.n(Je),$e=n(236),et=n.n($e),tt=n(3218),nt=n.n(tt);class rt{constructor(){Object.defineProperty(this,"list",{enumerable:!0,configurable:!0,writable:!0,value:new Map}),(0,i.makeObservable)(this,{list:i.observable})}create(e){var t,n;const r=new Dt(e);return this.list.get(null!==(t=e.id)&&void 0!==t?t:e["@type"])||this.list.set(null!==(n=e.id)&&void 0!==n?n:e["@type"],r),r}reload({content:e,path:t}){this.list.forEach(n=>{const r=n.data["@variants"];c.Lotus.reload.checkFile(t,r)&&(n.data.variants=e,n.data.variants.reference=r)})}destroy(){this.list.forEach(e=>e.destroy()),this.list.clear()}}const it=new rt;var at=n(578),st=n(8812),ot=function(e,t,n,r){return new(n||(n=Promise))(function(i,a){function s(e){try{l(r.next(e))}catch(e){a(e)}}function o(e){try{l(r.throw(e))}catch(e){a(e)}}function l(e){var t;e.done?i(e.value):(t=e.value,t instanceof n?t:new n(function(e){e(t)})).then(s,o)}l((r=r.apply(e,t||[])).next())})};class lt{constructor(e){Object.defineProperty(this,"data",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"ready",{enumerable:!0,configurable:!0,writable:!0,value:Promise.create()}),this.data=e,(0,i.makeObservable)(this,{data:i.observable}),this.parse(this.data).then(()=>this.ready.resolve())}fetch(e,t){return ot(this,void 0,void 0,function*(){let n;n=e[t];const r=yield window.fetch(st.f.get("assets",n));return 200===r.status?yield r.json():at.h.IS_DEVELOPMENT?h.AlertUtils.alert(`${n} file don't exist.`):void 0})}parseAnimations(e){return ot(this,void 0,void 0,function*(){try{nt()(e["@animations"])?(e.animations=e["@animations"],e.animations&&m.F.create(e)):(e.animations=yield this.fetch(e,"@animations"),e.animations&&(m.F.create(e),e.animations.reference=e["@animations"]))}catch(t){console.error(`Error parsing @animations: ${e["@animations"]}\n${t}`)}})}parseVariants(e){return ot(this,void 0,void 0,function*(){nt()(e["@variants"])?(e.variants=e["@variants"],e.variantWeights=e["@variantWeights"],e.variants&&it.create(e)):(e.variants=yield this.fetch(e,"@variants"),e.variantWeights=e["@variantWeights"],e.variants&&(it.create(e),e.variants.reference=e["@variants"]))})}parseReference(e){return ot(this,void 0,void 0,function*(){const t=yield this.fetch(e,"@path"),n=yield this.parse(t);return ct.create(n,e["@path"]).data})}parseEntries(e){return ot(this,void 0,void 0,function*(){const t=[];Object.entries(e).map(n=>ot(this,[n],void 0,function*([n,r]){if(nt()(r)){const i=this.parse(r);return t.push(i),e[n]=yield i}Q()(r)&&r.forEach(r=>ot(this,void 0,void 0,function*(){const i=this.parse(r);return t.push(i),e[n]=yield i}))})),yield Promise.all(t)})}parse(e){return ot(this,void 0,void 0,function*(){return e["@animations"]&&(yield this.parseAnimations(e)),e["@variants"]&&(yield this.parseVariants(e)),"reference"===e["@type"]?this.parseReference(e):(yield this.parseEntries(e),e)})}}const ct=new class{constructor(){Object.defineProperty(this,"list",{enumerable:!0,configurable:!0,writable:!0,value:new Set}),Object.defineProperty(this,"DEFAULTS",{enumerable:!0,configurable:!0,writable:!0,value:{assets:[],children:[],configuration:{component:"",states:{global:"Default"}},renderer:{alpha:!0,background:[0,0,0,0],forceDoubleSideDisabled:!1,forceEnvMapCompile:!0,forceMapCompile:!0,forceMetalnessMapCompile:!0,forceNormalMapCompile:!0,forceRoughnessMapCompile:!0,outputColorSpace:l.SRGBColorSpace,premultipliedAlpha:!0,stencil:!1,toneMapping:l.ACESFilmicToneMapping,toneMappingExposure:1},states:[{category:"global",id:"default",label:"Default",value:"Default"}]}})}create(e,t){const n=new lt(e);return t&&(n.data.reference=t),this.list.add(n),n}reload(e){return function(e,t,n,r){return new(n||(n=Promise))(function(i,a){function s(e){try{l(r.next(e))}catch(e){a(e)}}function o(e){try{l(r.throw(e))}catch(e){a(e)}}function l(e){var t;e.done?i(e.value):(t=e.value,t instanceof n?t:new n(function(e){e(t)})).then(s,o)}l((r=r.apply(e,t||[])).next())})}(this,arguments,void 0,function*({content:e,path:t}){const n=ct.create(e);yield n.ready;const r=(0,i.toJS)(n.data);this.list.forEach(e=>{if(c.Lotus.reload.checkFile(t,e.data.reference)){const{data:t}=e,n=(e,t)=>{if(Q()(e)&&e.length>t.length){const n=e.length-t.length;e.splice(e.length-n,n)}};Xe()(t,(e,t)=>n(e,r[t])),et()(t,r,(e,t,n)=>{if(Ke()(e)){const n=We()(Ze()(e),Ze()(t)).filter(e=>!["animations","parent"].includes(e));n.length&&n.forEach(t=>delete e[t])}}),n(t,r)}})})}};var ut=n(359),ht=n.n(ut);class dt{constructor(){Object.defineProperty(this,"sceneObjects",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"maxDepth",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"meshes",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"skinnedMeshes",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"meshesHidden",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"geometries",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"geometriesIndexed",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"vertexes",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"usageGeo",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"usageTexture",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"usageRenderTargets",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"renderTargetsPixels",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"triangles",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"trianglesVisible",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"trianglesIndexed",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"materials",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"textures",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"texturePixelsTotal",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"bones",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"boneTextures",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"boneTexturePixels",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"usageBoneTexture",{enumerable:!0,configurable:!0,writable:!0,value:void 0})}get totalMemoryUsage(){return this.usageGeo+this.usageTexture+this.usageBoneTexture}}const pt=e=>1e3/e;class ft extends r.X{constructor({loop:e,renderer:t}){var n;super(),Object.defineProperty(this,"loop",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"renderer",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"sceneAnalysis",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"useFPS",{enumerable:!0,configurable:!0,writable:!0,value:null!==(n=JSON.parse(localStorage.getItem("LOTUS_PERF_USE_FPS")))&&void 0!==n&&n}),Object.defineProperty(this,"bufferSize",{enumerable:!0,configurable:!0,writable:!0,value:new l.Vector2}),Object.defineProperty(this,"informations",{enumerable:!0,configurable:!0,writable:!0,value:{}}),Object.defineProperty(this,"measures",{enumerable:!0,configurable:!0,writable:!0,value:{}}),Object.defineProperty(this,"observer",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"renderCount",{enumerable:!0,configurable:!0,writable:!0,value:1}),Object.defineProperty(this,"snapshotTimeout",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"framesTimingInfo",{enumerable:!0,configurable:!0,writable:!0,value:{}}),Object.defineProperty(this,"framesDeltas",{enumerable:!0,configurable:!0,writable:!0,value:[]}),Object.defineProperty(this,"now",{enumerable:!0,configurable:!0,writable:!0,value:0}),this.onSnapshot=this.onSnapshot.bind(this),this.onUpdate=this.onUpdate.bind(this),this.loop=e,this.renderer=t,this.renderer.info.autoReset=!1,(0,i.makeObservable)(this,{framesTimingInfo:i.observable,sceneAnalysis:i.observable,measures:i.observable,now:i.observable,renderer:i.observable,renderCount:i.observable,useFPS:i.observable}),h.EnvironmentUtils.IS_DEVELOPMENT&&this.wrapRendererCompose(),this.sceneAnalysis=new dt,this.addEventListeners()}fence({name:e}){const t=Object.assign({},this.renderer.info);this.informations[e]=Object.assign({},t.render),this.renderer.info.reset()}measureInitialization({name:e}){performance.mark(`Lotus - ${e}`),performance.measure(e,"Lotus",`Lotus - ${e}`)}addEventListeners(){return function(e,t,n,r){return new(n||(n=Promise))(function(i,a){function s(e){try{l(r.next(e))}catch(e){a(e)}}function o(e){try{l(r.throw(e))}catch(e){a(e)}}function l(e){var t;e.done?i(e.value):(t=e.value,t instanceof n?t:new n(function(e){e(t)})).then(s,o)}l((r=r.apply(e,t||[])).next())})}(this,void 0,void 0,function*(){this.observer=new PerformanceObserver(e=>{const t=e.getEntries();for(const e of t)"measure"===e.entryType&&(this.measures[e.name]=e.duration)}),this.observer.observe({entryTypes:["measure"]}),this.reaction(()=>c.Lotus.scene,e=>{e&&(this.measureInitialization({name:"Lotus.scene"}),e.onAfterRender=()=>this.fence({name:"Scene"}),e.addEventListener("EnvironmentInterpolation:onRender",this.onInterpolationRender.bind(this)),e.addEventListener("EnvironmentKeyframe:onRender",this.onKeyframeRender.bind(this)),u.GA.pmremGenerator.fromScene=ht()(u.GA.pmremGenerator.fromScene.bind(u.GA.pmremGenerator),(e,...t)=>{var n;const[r]=t,i=`PMREMGenerator:${null===(n=r.userData.component)||void 0===n?void 0:n.name}`,a=`${i} - Start`,s=`${i} - End`;performance.mark(a);const o=e(...t);return performance.mark(s),performance.measure(i,a,s),o}))}),this.reaction(()=>{var e;return null===(e=c.Lotus.scene)||void 0===e?void 0:e.components.created},e=>e&&this.measureInitialization({name:"Lotus.scene.components.created"})),this.reaction(()=>{var e;return null===(e=c.Lotus.scene)||void 0===e?void 0:e.components.ready},e=>e&&this.measureInitialization({name:"Lotus.scene.components.ready"})),this.reaction(()=>{var e;return null===(e=c.Lotus.scene)||void 0===e?void 0:e.ready},e=>e&&this.measureInitialization({name:"Lotus.scene.ready"})),this.reaction(()=>{var e;return null===(e=c.Lotus.scene)||void 0===e?void 0:e.compiled},e=>e&&this.measureInitialization({name:"Lotus.scene.compiled"})),this.reaction(()=>{var e;return null===(e=c.Lotus.scene)||void 0===e?void 0:e.rendered},e=>e&&this.measureInitialization({name:"Lotus.scene.rendered"}))})}onInterpolationRender({environment:e}){this.fence({name:e.component.name})}onKeyframeRender({environment:e}){this.fence({name:e.component.name})}wrapRendererCompose(){this.renderer.compose=ht()(this.renderer.compose.bind(this.renderer),(e,...t)=>{for(let n=0;ne+t,n=e.reduce(t)/e.length;e.sort((e,t)=>e-t);const r=e[0],i=(e[Math.floor(e.length/4)]+e[Math.ceil(e.length/4)])/2,a=(e[Math.floor(e.length/2)]+e[Math.ceil(e.length/2)])/2,s=(e[Math.floor(e.length/4*3)]+e[Math.min(Math.ceil(e.length/4*3),e.length-1)])/2,o=e[e.length-1],l=e.map(e=>Math.pow(Math.abs(n-e),2)).reduce(t),c=Math.sqrt(l);return{average:n,minimum:r,quartile1:i,median:a,quartile3:s,maximum:o,standardDeviation:c,deviationRatio:c/n}}({frames:e}),this.framesDeltas=[],h.EnvironmentUtils.IS_DEVELOPMENT&&function(e,t=new dt){const n=new Set,r=new Set,i=new Set,a=new Set;t.sceneObjects=0,t.maxDepth=0,t.meshes=0,t.meshesHidden=0,t.skinnedMeshes=0,t.geometriesIndexed=0,t.vertexes=0,t.triangles=0,t.trianglesVisible=0,t.trianglesIndexed=0,t.bones=0,t.boneTexturePixels=0,t.texturePixelsTotal=0,t.usageGeo=0,t.usageBoneTexture=0,t.usageTexture=0,e.traverse(e=>{t.sceneObjects++;let s=0,o=e,l=!1;for(;null!==(o=o.parent);)s++,o.visible||(l=!0);const c=e.visible&&!l;if(t.maxDepth=Math.max(s,t.maxDepth),e.isMesh){t.meshes++,c||t.meshesHidden++;const s=e.geometry;if(!n.has(s)){n.add(s);const e=!!s.index,r=Object.keys(s.attributes)[0],i=s.getAttribute(r).count;t.vertexes+=i,t.usageGeo+=function(e){let t=0;for(const n in e.attributes){const r=e.getAttribute(n);t+=r.count*r.itemSize*r.array.BYTES_PER_ELEMENT}const n=e.getIndex();return t+=n?n.count*n.itemSize*n.array.BYTES_PER_ELEMENT:0,t}(s);const a=e?s.index.count/3:i/3;t.triangles+=a,t.trianglesIndexed+=e?s.index.count/3:0,c&&(t.trianglesVisible+=a),e&&t.geometriesIndexed++}if(e.isSkinnedMesh){t.skinnedMeshes++;const n=e.skeleton.boneTexture;a.has(n)||(a.add(n),t.bones+=e.skeleton.bones.length)}const o=e.material;r.add(o),Object.values(o).forEach(e=>{if(function(e){return e&&"object"==typeof e&&e.isTexture}(e)){const n=e;if(i.has(n))return;i.add(n);const r=4/3,a=4,s=n.image.width*n.image.height;t.texturePixelsTotal+=s,t.usageTexture+=s*a*r}})}}),t.boneTexturePixels=[...a.values()].filter(e=>e).reduce((e,t)=>e+t.image.width*t.image.height,0),t.usageBoneTexture=4*t.boneTexturePixels*4,t.textures=i.size,t.geometries=n.size,t.boneTextures=a.size,t.materials=r.size}(c.Lotus.scene,this.sceneAnalysis),this.renderer.getDrawingBufferSize(this.bufferSize)}onUpdate(){const e=window.performance.now(),t=e-this.now;this.now=e,this.framesDeltas.push(t),window.requestAnimationFrame(()=>{this.renderer.info.reset()})}}class mt extends r.X{constructor(){super(),Object.defineProperty(this,"enabled",{enumerable:!0,configurable:!0,writable:!0,value:!1}),Object.defineProperty(this,"selectedMesh",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"outlineScene",{enumerable:!0,configurable:!0,writable:!0,value:new l.Scene}),Object.defineProperty(this,"outlineMesh",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"quad",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"quadMaterial",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"renderer",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"prevClearColor",{enumerable:!0,configurable:!0,writable:!0,value:new l.Color}),Object.defineProperty(this,"renderTarget",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),(0,i.makeObservable)(this,{enabled:i.observable}),this.initRender(),this.autorun(this.onSelectionUpdate.bind(this)),c.Lotus.scene.eventPool.register(this)}initRender(){this.renderer=c.Lotus.scene.renderer,this.renderTarget=this.renderer.createRenderTarget(void 0,void 0,{depthTexture:!1,samples:4}),this.quadMaterial=new l.ShaderMaterial({depthFunc:l.AlwaysDepth,depthWrite:!1,uniforms:{uEdgeColor:{value:new l.Vector3(218/255,142/255,59/255)},uLineSize:{value:12},uTexture:{value:this.renderTarget.texture},uTextureSize:{value:new l.Vector2(100,100)},uZoom:{value:1}},vertexShader:"\nprecision highp float;\nvarying vec2 vUv;\nvoid main() {\n vUv = uv;\n gl_Position = vec4(position, 1.);\n}\n",fragmentShader:"\nprecision highp float;\n\nuniform vec3 uEdgeColor;\nuniform float uLineSize;\nuniform sampler2D uTexture;\nuniform vec2 uTextureSize;\nvarying vec2 vUv;\nuniform float uZoom;\n\nconst float INV_SQRT2 = 0.707;\n\nfloat getOutline(float lineSize) {\n vec2 invSize = 1.0 / uTextureSize;\n vec4 uvOffset = vec4(1.0, 0.0, -1.0, 0.0) * vec4(invSize, invSize) * uZoom * lineSize;\n vec4 uvOffsetDiag = uvOffset * INV_SQRT2;\n\n float e1 = texture2D( uTexture, vUv + uvOffset.xy).a;\n float e2 = texture2D( uTexture, vUv + uvOffset.zy).a;\n float e3 = texture2D( uTexture, vUv + uvOffset.yx).a;\n float e4 = texture2D( uTexture, vUv + uvOffset.yz).a;\n \n\n float corner1 = texture2D( uTexture, vUv + uvOffsetDiag.xx).a;\n float corner2 = texture2D( uTexture, vUv + uvOffsetDiag.xz).a;\n float corner3 = texture2D( uTexture, vUv + uvOffsetDiag.zx).a;\n float corner4 = texture2D( uTexture, vUv + uvOffsetDiag.zz).a;\n \n float combined = e1 + e2 + e3 + e4 + corner1 + corner2 + corner3 + corner4;\n return min(1.0, combined);\n}\n\nvoid main() {\n vec3 edgeColor2 = vec3(0.0, 0.0, 0.0);\n float baseAlpha = texture2D(uTexture, vUv).a;\n\n float black1Alpha = getOutline(uLineSize * 0.333);\n float orangeAlpha = getOutline(uLineSize * 0.666);\n float black2Alpha = getOutline(uLineSize);\n\n vec3 color = mix(edgeColor2, uEdgeColor, orangeAlpha - black1Alpha);\n float strokeAlpha = black2Alpha * (1.0 - baseAlpha);\n \n gl_FragColor = vec4(color, strokeAlpha);\n}\n",transparent:!0}),this.quad=new l.Mesh(xt.screenQuadGeometry,this.quadMaterial),this.quad.layers.set(_e.m1),this.quad.name="OutlineHandlerQuad",this.quad.frustumCulled=!1,this.quad.renderOrder=Number.MAX_SAFE_INTEGER,c.Lotus.scene.add(this.quad),this.outlineScene.overrideMaterial=new l.MeshBasicMaterial({color:16777215,depthFunc:l.AlwaysDepth,side:l.DoubleSide})}destroy(){c.Lotus.scene.remove(this.quad),this.renderTarget.dispose(),this.enabled=!1}onResize({height:e,width:t}){const n=t*this.renderer.dpr,r=e*this.renderer.dpr;this.quadMaterial.uniforms.uTextureSize.value=new l.Vector2(n,r),this.renderTarget.setSize(n,r)}onSelectionUpdate(){if(c.Lotus.scene.debug={mesh:"",material:""},this.quad.visible=this.enabled,this.enabled&&(this.outlineMesh&&(this.outlineMesh.removeFromParent(),this.outlineMesh=null),this.selectedMesh=c.Lotus.scene.controls.selection,this.selectedMesh)){const e=this.selectedMesh.userData;this.selectedMesh.userData={},this.outlineMesh=this.selectedMesh.clone(),this.selectedMesh.userData=e,this.outlineScene.add(this.outlineMesh),this.outlineMesh.matrixAutoUpdate=!1,c.Lotus.scene.debug={mesh:this.selectedMesh.name,material:this.selectedMesh.material.name}}}onLoop(){var e;if(!this.enabled)return;const t=this.renderer.getRenderTarget();this.renderer.getClearColor(this.prevClearColor);const n=this.renderer.getClearAlpha();null===(e=this.outlineMesh)||void 0===e||e.matrix.copy(this.selectedMesh.matrixWorld),this.renderer.setRenderTarget(this.renderTarget),this.renderer.setClearColor(0,0),this.renderer.clearColor(),this.renderer.render(this.outlineScene,c.Lotus.scene.controls.orbit.object),this.renderer.setRenderTarget(t),this.renderer.setClearColor(this.prevClearColor,n)}}class At extends r.X{constructor({id:e}){var t,n;super(),Object.defineProperty(this,"id",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"renderToTexture",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"renderToTextureUniforms",{enumerable:!0,configurable:!0,writable:!0,value:{tMap1:{value:null},tMap2:{value:null},tMap3:{value:null},tMap4:{value:null},uMapOpacities:{value:new l.Vector4(0)}}}),Object.defineProperty(this,"renderTarget",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),this.id=e,null===(n=null===(t=c.Lotus.scene)||void 0===t?void 0:t.eventPool)||void 0===n||n.register(this),this.createRenderToTexture(c.Lotus.scene.renderer),this.createRenderTarget()}createRenderToTexture(e){this.renderToTexture=new xt(e,{fragmentShader:"\n precision highp float;\n\n varying vec2 vUv;\n\n uniform sampler2D tMap1;\n uniform sampler2D tMap2;\n uniform sampler2D tMap3;\n uniform sampler2D tMap4;\n\n uniform vec4 uMapOpacities;\n\n void main() {\n vec4 map1 = texture(tMap1, vUv) * uMapOpacities.x;\n vec4 map2 = texture(tMap2, vUv) * uMapOpacities.y;\n vec4 map3 = texture(tMap3, vUv) * uMapOpacities.z;\n vec4 map4 = texture(tMap4, vUv) * uMapOpacities.w;\n\n vec4 mapColor = map1 + map2 + map3 + map4;\n\n gl_FragColor = mapColor;\n }\n ",uniforms:this.renderToTextureUniforms})}destroyRenderToTexture(){var e;null===(e=this.renderToTexture)||void 0===e||e.destroy()}setTextures(e){e.forEach((e,t)=>{this.setTexture(e,t)})}setTexture(e,t=0){0===t&&this.renderTarget&&(this.renderTarget.texture.channel=e.channel,this.renderTarget.texture.colorSpace=e.colorSpace),this.renderToTextureUniforms[`tMap${t+1}`].value=e}setOpacities(e){this.renderToTextureUniforms.uMapOpacities.value=e}setOpacity(e,t){switch(t){case 0:return this.renderToTextureUniforms.uMapOpacities.value.x=e;case 1:return this.renderToTextureUniforms.uMapOpacities.value.y=e;case 2:return this.renderToTextureUniforms.uMapOpacities.value.z=e;case 3:return this.renderToTextureUniforms.uMapOpacities.value.w=e}}createRenderTarget(){this.renderTarget=c.Lotus.scene.renderer.createRenderTarget(1024,1024,{depthBuffer:!1,generateMipmaps:!1,magFilter:l.NearestFilter,minFilter:l.NearestFilter}),this.renderTarget.texture.name=`DynamicTexture:${this.id}`,this.renderTarget.scissorTest=!0,u.F9.addTexture(this.renderTarget.texture)}destroyRenderTarget(){this.renderTarget&&(u.F9.removeTexture(this.renderTarget.texture),this.renderTarget=c.Lotus.scene.renderer.destroyRenderTarget(this.renderTarget))}render(){var e;null===(e=this.renderToTexture)||void 0===e||e.render(this.renderTarget)}destroy(){super.destroy(),this.destroyRenderToTexture(),this.destroyRenderTarget()}}var gt=n(7883),vt=n.n(gt),yt=n(5253),bt=n.n(yt),_t=n(7188);class xt extends r.X{static get screenCamera(){return void 0===this._screenCamera&&(this._screenCamera=new l.OrthographicCamera(-.5,.5,.5,-.5,.1,1),this._screenCamera.position.z=.5),this._screenCamera}static get screenQuadGeometry(){return void 0===this._screenQuadGeometry&&(this._screenQuadGeometry=new l.PlaneGeometry(2,2,1,1),this._screenQuadGeometry.deleteAttribute("normal")),this._screenQuadGeometry}constructor(e,t={}){super(),Object.defineProperty(this,"material",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"scene",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"renderer",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),this.renderer=e,this.material=new l.ShaderMaterial(Object.assign({depthTest:!1,depthWrite:!1,fog:!1,fragmentShader:vt(),lights:!1,stencilWrite:!1,toneMapped:!1,transparent:!0,vertexShader:bt()},t));const n=new l.Mesh(xt.screenQuadGeometry,this.material);n.matrixAutoUpdate=!1,this.scene=new l.Scene,this.scene.add(n)}render(e=null){if(this.renderer)if(null!==e){const t=this.renderer.getRenderTarget();this.renderer.setRenderTarget(e),this.renderer.render(this.scene,xt.screenCamera),this.renderer.setRenderTarget(t)}else this.renderer.render(this.scene,xt.screenCamera)}compileAsync(e){return function(e,t,n,r){return new(n||(n=Promise))(function(i,a){function s(e){try{l(r.next(e))}catch(e){a(e)}}function o(e){try{l(r.throw(e))}catch(e){a(e)}}function l(e){var t;e.done?i(e.value):(t=e.value,t instanceof n?t:new n(function(e){e(t)})).then(s,o)}l((r=r.apply(e,t||[])).next())})}(this,void 0,void 0,function*(){const t="compileAsync:RenderToTexture",n=`${t} - Start`,r=`${t} - End`;performance.mark(n),yield this.renderer.compileAsync(e,xt.screenCamera),performance.mark(r),performance.measure(t,n,r)})}destroy(){super.destroy(),_t.H.disposeMaterial(this.material)}}var Et=n(1089),wt=n(7739),Mt=n.n(wt);class St extends r.X{constructor({scene:e}){var t;super(),Object.defineProperty(this,"scene",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"list",{enumerable:!0,configurable:!0,writable:!0,value:[]}),Object.defineProperty(this,"states",{enumerable:!0,configurable:!0,writable:!0,value:{}}),Object.defineProperty(this,"previousStates",{enumerable:!0,configurable:!0,writable:!0,value:{}}),this.scene=e,null===(t=this.scene.eventPool)||void 0===t||t.register(this),(0,i.makeObservable)(this,{categories:i.computed,list:i.observable,states:i.observable}),this.autorun(this.onStatesUpdate.bind(this))}onStatesUpdate(){this.list=this.scene.data.states.map(e=>new Ct(e)),Object.keys(this.categories).forEach(e=>{this.states[e]=this.scene.data.configuration.states[e]})}get categories(){return Mt()(this.scene.data.states,"category")}onBindingsChange(e,t){var n;null===(n=this.scene.eventPool)||void 0===n||n.trigger({name:"stateChange"},{category:e,oldValue:this.previousStates[e],newValue:t}),this.previousStates[e]=t}get(e){return this.states[e]}set(e,t){this.states[e]=t,this.onBindingsChange(e,t)}bind(e,t){return this.observe(this.states,e,n=>t(n,e),!0)}bindAll(e){return Object.keys(this.categories).map(t=>this.observe(this.states,t,n=>e(n,t),!0))}serialize(){return{"@reference":this.scene.data.states.reference,"@content":this.list.map(e=>({category:e.category,id:e.id}))}}}class Ct{constructor(e){Object.defineProperty(this,"data",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),this.data=e,(0,i.makeObservable)(this,{category:i.computed,id:i.computed})}get category(){var e;return null===(e=this.data)||void 0===e?void 0:e.category}get id(){var e;return null===(e=this.data)||void 0===e?void 0:e.id}}var It=n(9693),Tt=n.n(It),Bt=n(5564),Rt=n.n(Bt),Pt=n(1609),Lt=n.n(Pt),Ot=n(6486);const Ut=n(8162);class Dt extends r.X{constructor(e){super(),Object.defineProperty(this,"data",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"variantWeightsRef",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"interpolations",{enumerable:!0,configurable:!0,writable:!0,value:[]}),this.data=e,this.variantWeightsRef=this.data.variantWeights,(0,i.makeObservable)(this,{data:i.observable,states:i.computed.struct,valuesInterpolations:i.computed.struct,valuesSwitch:i.computed.struct,variantWeightsRef:i.observable}),this.reaction(()=>{var e;return null===(e=c.Lotus.scene)||void 0===e?void 0:e.states.states.global},this.makeVariantsHardSwitch.bind(this)),this.reaction(()=>this.valuesSwitch,this.makeVariantsHardSwitch.bind(this)),this.autorun(this.onInterpolationsUpdate.bind(this))}get states(){if(!this.data.variants)return{};const e={};return Object.values(this.data.variants).forEach(t=>{var n;null===(n=null==t?void 0:t["@states"])||void 0===n||n.forEach(n=>{e[n]||(e[n]={}),Object.entries(t).map(([t,r])=>{e[n][t]=Object.assign(Object.assign({},e[n][t]),r)})})}),Object.values(e).forEach(e=>{delete e["@states"]}),e}get component(){var e;return null===(e=c.Lotus.scene)||void 0===e?void 0:e.getComponent(this.data.id)}get valuesSwitch(){var e,t,n;if(!(null===(t=null===(e=c.Lotus.scene)||void 0===e?void 0:e.components)||void 0===t?void 0:t.ready))return{};if("EnvironmentInterpolation"===(null===(n=this.component)||void 0===n?void 0:n.script))return;const r={};return Object.entries(this.states).map(([e,t])=>{r[e]||(r[e]=[]),t&&Object.entries(t).map(([t,n])=>{var i;const a=null===(i=c.Lotus.scene)||void 0===i?void 0:i.getComponentsByName(t);(null==a?void 0:a.length)&&r[e].push({components:a,properties:n})})}),r}makeVariantsHardSwitch(){var e,t;const n=null===(e=c.Lotus.scene)||void 0===e?void 0:e.states.states.global,r=null===(t=this.valuesSwitch)||void 0===t?void 0:t[n];null==r||r.forEach(({components:e,properties:t})=>{e.forEach(e=>{for(const[n,r]of Object.entries(t))g.M.applyValue({element:e,property:n,value:r})})})}get valuesInterpolations(){var e,t,n;const r=null!==(n=null===(t=null===(e=c.Lotus.scene)||void 0===e?void 0:e.states.categories.global)||void 0===t?void 0:t.map(e=>e.id))&&void 0!==n?n:[],i=Object.keys(this.states).filter(e=>!r.includes(e)),a={};if(0===i.length)return;const s=new Map;Object.entries(this.states).map(([e,t])=>{Object.entries(t).forEach(([t,n])=>{a[t]||(a[t]={[e]:{}}),Object.keys(n).forEach(e=>{s.get(t)?s.get(t).add(e):s.set(t,new Set([e]))}),a[t][e]=Object.assign(Object.assign({},a[t][e]),n)})}),Object.entries(a).map(([e,t])=>{const n=s.get(e);null==n||n.forEach(n=>{const r=Object.keys(this.states).map(e=>{var r;return null===(r=t[e])||void 0===r?void 0:r[n]});r.filter((0,Ot.negate)(Ot.isNil)).every((e,t,n)=>e===n[0])&&Object.keys(this.states).forEach(t=>{var r;null===(r=a[e][t])||void 0===r||delete r[n]})})});const o=Ut.clearEmpties(a);return Lt()(o)?void 0:o}onInterpolationsUpdate(){var e,t;(null===(t=null===(e=c.Lotus.scene)||void 0===e?void 0:e.components)||void 0===t?void 0:t.ready)&&this.valuesInterpolations&&(this.interpolations.forEach(e=>e.destroy()),this.interpolations=Tt()(Rt()(Object.entries(this.valuesInterpolations).map(([e,t])=>{var n;const r=null===(n=c.Lotus.scene)||void 0===n?void 0:n.getComponentsByName(e);return null==r?void 0:r.map(e=>new Ve({component:e,values:t,variantWeightsRef:this.variantWeightsRef}))}))))}destroy(){super.destroy(),this.interpolations.forEach(e=>e.destroy())}}},7772:(e,t,n)=>{"use strict";n.r(t),n.d(t,{Box:()=>i,Plane:()=>a,Sphere:()=>s,Tetrahedron:()=>o});var r=n(4468);const i=new r.BoxGeometry(1,1,1),a=new r.PlaneGeometry(1,1,1,1),s=new r.SphereGeometry(1,32,32),o=new r.TetrahedronGeometry(1,0)},3641:(e,t,n)=>{"use strict";n.d(t,{Wi:()=>i,N1:()=>s,aN:()=>u,rN:()=>m,gb:()=>A,l_:()=>y});const r=document.createElement("canvas").getContext("webgl2"),i={webGL2:null!==r,astc:!!r&&Boolean(r.getExtension("WEBGL_compressed_texture_astc"))};var a=n(9614);class s extends a.XY{constructor({scene:e}){super(),Object.defineProperty(this,"scene",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),this.scene=e,this.addEventListeners()}onKeyDown(e){["INPUT","SELECT","TEXTAREA"].includes(document.activeElement.tagName)||this.scene.eventPool.trigger({name:"keyboard"},{nativeEvent:e,keyboard:this})}addEventListeners(){this.onKeyDown=this.onKeyDown.bind(this),window.addEventListener("keydown",this.onKeyDown)}removeEventListeners(){window.removeEventListener("keydown",this.onKeyDown)}destroy(){super.destroy(),this.removeEventListeners()}}var o=n(8949),l=n(3465),c=n(2354);class u extends a.XY{constructor(){super(),Object.defineProperty(this,"loaded",{enumerable:!0,configurable:!0,writable:!0,value:Promise.create()}),this.createListeners()}createListeners(){(0,o.makeObservable)(this,{progress:o.computed,loaded:o.observable}),this.observe(a.Assets,"loaded",this.onLoaded.bind(this))}get progress(){const{list:e,listLoaded:t}=a.Assets;let n=t.length/e.length;return l.Lotus.loadSceneMode===l.Lotus.LOAD_SCENE_MODES.PRE_10_4&&(c.Zr.suppressibleWarn("deprecated-progress","Deprecation Warning: progress() will be updated in the next major release. When using loadScene.onProgress(), progress() will return a value between 0–1."),n=e.length/t.length),this.dispatchEvent({progress:n,type:"load"}),n}onLoaded(){this.dispatchEvent({progress:100,type:"loaded"}),this.loaded.resolve()}}var h=n(9294),d=n.n(h),p=n(4468),f=n(3951);class m extends a.XY{constructor(){super(),Object.defineProperty(this,"clock",{enumerable:!0,configurable:!0,writable:!0,value:new p.Clock}),Object.defineProperty(this,"scene",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"delta",{enumerable:!0,configurable:!0,writable:!0,value:0}),Object.defineProperty(this,"emitter",{enumerable:!0,configurable:!0,writable:!0,value:new(d())}),Object.defineProperty(this,"shouldDrawFrame",{enumerable:!0,configurable:!0,writable:!0,value:!1}),f.QueryUtils.get("fpsLoop")&&(m.ALWAYS_DRAW=!0),this.onUpdate=this.onUpdate.bind(this),this.emitter.on("update",this.onUpdate),this.emitter.run()}create(e){this.scene=e}onUpdate(){var e;this.delta=this.clock.getDelta(),(m.ALWAYS_DRAW||(null===(e=l.Lotus.reload)||void 0===e?void 0:e.isActive)||this.shouldDrawFrame)&&this.onRender(),this.onFrame(),this.emitter.run()}onFrame(){var e,t;l.Lotus.tasks.onFrame(),null===(t=null===(e=this.scene)||void 0===e?void 0:e.eventPool)||void 0===t||t.trigger({name:"frame"},{delta:this.delta})}onRender(){var e,t;null===(t=null===(e=this.scene)||void 0===e?void 0:e.eventPool)||void 0===t||t.trigger({name:"loop"},{delta:this.delta}),this.cancelAnimationFrame()}tryRequestAnimationFrame(){return function(e,t,n,r){return new(n||(n=Promise))(function(i,a){function s(e){try{l(r.next(e))}catch(e){a(e)}}function o(e){try{l(r.throw(e))}catch(e){a(e)}}function l(e){var t;e.done?i(e.value):(t=e.value,t instanceof n?t:new n(function(e){e(t)})).then(s,o)}l((r=r.apply(e,t||[])).next())})}(this,void 0,void 0,function*(){window.requestAnimationFrame(()=>{this.shouldDrawFrame=!0})})}cancelAnimationFrame(){var e,t;"orbit"!==(null===(t=null===(e=this.scene)||void 0===e?void 0:e.controls)||void 0===t?void 0:t.mode)&&(this.shouldDrawFrame=!1)}destroy(){super.destroy(),this.emitter.destroy()}}Object.defineProperty(m,"ALWAYS_DRAW",{enumerable:!0,configurable:!0,writable:!0,value:!1});class A extends a.XY{constructor({scene:e}){super(),Object.defineProperty(this,"element",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"elementBounds",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"scene",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"x",{enumerable:!0,configurable:!0,writable:!0,value:0}),Object.defineProperty(this,"y",{enumerable:!0,configurable:!0,writable:!0,value:0}),Object.defineProperty(this,"isTouch",{enumerable:!0,configurable:!0,writable:!0,value:!1}),Object.defineProperty(this,"isTouching",{enumerable:!0,configurable:!0,writable:!0,value:!1}),Object.defineProperty(this,"distance",{enumerable:!0,configurable:!0,writable:!0,value:0}),Object.defineProperty(this,"hold",{enumerable:!0,configurable:!0,writable:!0,value:new p.Vector2}),Object.defineProperty(this,"last",{enumerable:!0,configurable:!0,writable:!0,value:new p.Vector2}),Object.defineProperty(this,"delta",{enumerable:!0,configurable:!0,writable:!0,value:new p.Vector2}),Object.defineProperty(this,"move",{enumerable:!0,configurable:!0,writable:!0,value:new p.Vector2}),Object.defineProperty(this,"world",{enumerable:!0,configurable:!0,writable:!0,value:new p.Vector3}),Object.defineProperty(this,"normalized",{enumerable:!0,configurable:!0,writable:!0,value:new p.Vector2}),Object.defineProperty(this,"speed",{enumerable:!0,configurable:!0,writable:!0,value:new p.Vector2}),Object.defineProperty(this,"temp",{enumerable:!0,configurable:!0,writable:!0,value:new p.Vector3}),Object.defineProperty(this,"onPointerTest",{enumerable:!0,configurable:!0,writable:!0,value:e=>!0}),Object.defineProperty(this,"raycaster",{enumerable:!0,configurable:!0,writable:!0,value:new p.Raycaster}),Object.defineProperty(this,"timestamp",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),this.scene=e,this.changeEventListeners(this.scene.element)}checkRaycast(){this.raycaster.setFromCamera(this.normalized,this.scene.camera);const e=this.raycaster.intersectObjects(this.scene.children,!0);return this.onPointerTest(e)}getPointer(e){this.elementBounds=this.element.getBoundingClientRect();const t={x:0,y:0},n=e.touches,r=e.changedTouches,i=e;return(null==n?void 0:n.length)?(t.x=n[0].clientX-this.elementBounds.left,t.y=n[0].clientY-this.elementBounds.top):(null==r?void 0:r.length)?(t.x=r[0].clientX-this.elementBounds.left,t.y=r[0].clientY-this.elementBounds.top):(t.x=i.clientX-this.elementBounds.left,t.y=i.clientY-this.elementBounds.top),t}onTouchStart(e){const t=this.getPointer(e);this.onStart({event:e,x:t.x,y:t.y,isTouch:!0})}onTouchMove(e){const t=this.getPointer(e);this.onMove({event:e,x:t.x,y:t.y})}onTouchEnd(e){const t=this.getPointer(e);this.onEnd({event:e,x:t.x,y:t.y})}onMouseDown(e){const t=this.getPointer(e);this.onStart({event:e,x:t.x,y:t.y})}onMouseMove(e){const t=this.getPointer(e);this.onMove({event:e,x:t.x,y:t.y})}onMouseUp(e){const t=this.getPointer(e);this.onEnd({event:e,x:t.x,y:t.y})}onStart({event:e,x:t,y:n,isTouch:r}){this.isTouch=r,this.isTouching=!0,this.x=t,this.y=n,this.hold.set(t,n),this.last.set(t,n),this.delta.set(0,0),this.move.set(0,0),this.normalized.x=this.x/this.scene.viewport.width*2-1,this.normalized.y=-this.y/this.scene.viewport.height*2+1,this.distance=0,r&&this.checkRaycast()&&e.preventDefault(),this.scene.eventPool.trigger({name:"pointerStart"},{nativeEvent:e,pointer:this})}onMove({event:e,x:t,y:n}){if(this.isTouching&&(this.move.x=t-this.hold.x,this.move.y=n-this.hold.y),this.x=t,this.y=n,this.delta.x=t-this.last.x,this.delta.y=n-this.last.y,this.last.x=t,this.last.y=n,this.distance+=this.delta.length(),this.normalized.x=this.x/this.scene.viewport.width*2-1,this.normalized.y=-this.y/this.scene.viewport.height*2+1,this.temp.x=this.normalized.x,this.temp.y=this.normalized.y,this.temp.z=.5,this.calculateMouseSpeed(),this.scene.camera){const e=this.scene.camera;if(e){this.temp.unproject(e);const t=this.temp.sub(e.position).normalize(),n=e.position.z/t.z;this.world.copy(e.position).add(t.multiplyScalar(n))}}this.scene.eventPool&&(this.scene.eventPool.trigger({name:"pointerMove"},{nativeEvent:e,pointer:this}),this.isTouching&&this.scene.eventPool.trigger({name:"pointerDrag"},{nativeEvent:e,pointer:this}))}onEnd({event:e}){this.scene.eventPool.trigger({name:"pointerEnd"},{nativeEvent:e,pointer:this}),this.delta.set(0,0),this.move.set(0,0),this.x=.5*this.scene.viewport.width,this.y=.5*this.scene.viewport.height,this.normalized.x=this.x/this.scene.viewport.width*2-1,this.normalized.y=-this.y/this.scene.viewport.height*2+1,this.distance=0,this.isTouching=!1}calculateMouseSpeed(){if(null===this.timestamp)return void(this.timestamp=Date.now());const e=Date.now(),t=e-this.timestamp;t>0&&(this.speed.x=Math.round(this.delta.x/t*100),this.speed.y=Math.round(this.delta.y/t*100)),this.timestamp=e}changeEventListeners(e){this.addEventListeners(e)}addEventListeners(e){this.element&&this.removeEventListeners(),this.element=e;const t={passive:!1};this.onTouchStart=this.onTouchStart.bind(this),this.onTouchMove=this.onTouchMove.bind(this),this.onTouchEnd=this.onTouchEnd.bind(this),this.element.addEventListener("touchstart",this.onTouchStart,t),document.addEventListener("touchmove",this.onTouchMove,t),document.addEventListener("touchend",this.onTouchEnd,t),document.addEventListener("touchcancel",this.onTouchEnd,t),this.onMouseDown=this.onMouseDown.bind(this),this.onMouseMove=this.onMouseMove.bind(this),this.onMouseUp=this.onMouseUp.bind(this),this.element.addEventListener("mousedown",this.onMouseDown),document.addEventListener("mousemove",this.onMouseMove),document.addEventListener("mouseup",this.onMouseUp),this.onEnd=this.onEnd.bind(this),document.addEventListener("mouseleave",this.onEnd)}removeEventListeners(){this.element.removeEventListener("touchstart",this.onTouchStart),document.removeEventListener("touchmove",this.onTouchMove),document.removeEventListener("touchend",this.onTouchEnd),document.removeEventListener("touchcancel",this.onTouchEnd),this.element.removeEventListener("mousedown",this.onMouseDown),document.removeEventListener("mousemove",this.onMouseMove),document.removeEventListener("mouseup",this.onMouseUp),document.removeEventListener("mouseleave",this.onEnd)}destroy(){super.destroy(),this.removeEventListeners()}}var g=n(3279),v=n.n(g);class y extends a.XY{constructor({scene:e}){super(),Object.defineProperty(this,"element",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"scene",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"resizeObserver",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"bounds",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"height",{enumerable:!0,configurable:!0,writable:!0,value:window.innerHeight}),Object.defineProperty(this,"width",{enumerable:!0,configurable:!0,writable:!0,value:window.innerWidth}),Object.defineProperty(this,"uniform",{enumerable:!0,configurable:!0,writable:!0,value:new p.Vector2(window.innerWidth,window.innerHeight)}),Object.defineProperty(this,"ratio",{enumerable:!0,configurable:!0,writable:!0,value:window.innerWidth/window.innerHeight}),Object.defineProperty(this,"windowHeight",{enumerable:!0,configurable:!0,writable:!0,value:window.innerHeight}),Object.defineProperty(this,"windowWidth",{enumerable:!0,configurable:!0,writable:!0,value:window.innerWidth}),this.onResize=v()(this.onResize,1),this.element=e.element,this.scene=e,this.reaction(()=>this.scene.ready,this.onResize.bind(this)),this.createObserver()}createObserver(){this.resizeObserver=new ResizeObserver(e=>{this.onResize()}),this.resizeObserver.observe(this.element)}destroyObserver(){this.resizeObserver.disconnect()}onResize(){var e,t;this.bounds=this.element.getBoundingClientRect(),this.height=(null===(e=this.bounds)||void 0===e?void 0:e.height)||window.innerHeight,this.width=(null===(t=this.bounds)||void 0===t?void 0:t.width)||window.innerWidth,this.ratio=this.width/this.height,this.uniform.x=this.width,this.uniform.y=this.height,this.windowHeight=window.innerHeight,this.windowWidth=window.innerWidth,this.scene.eventPool.trigger({name:"resize"},{height:this.height,ratio:this.ratio,uniform:this.uniform,width:this.width,windowHeight:this.windowHeight,windowWidth:this.windowWidth}),l.Lotus.tryRequestAnimationFrame()}destroy(){super.destroy(),this.destroyObserver()}}},3465:(e,t,n)=>{"use strict";n.r(t),n.d(t,{AlphaMap:()=>d.AlphaMap,AlphaMapFields:()=>d.AlphaMapFields,AlphaMapFragment:()=>d.AlphaMapFragment,AlphaMapParsFragment:()=>d.AlphaMapParsFragment,Animation:()=>s.fw,Animations:()=>s.FK,AnimationsGLTF:()=>s.n0,AnimationsManager:()=>s.dS,AnimationsUtils:()=>s.MU,AnimationsUtilsManager:()=>s.Bs,AoMap:()=>d.AoMap,AoMapFields:()=>d.AoMapFields,Asset:()=>s.xR,AssetBase:()=>s.QT,AssetLSD:()=>s.AF,AssetModel:()=>s.xG,AssetReload:()=>s.F9,AssetTexture:()=>s.Wh,Assets:()=>s.Assets,Base:()=>s.XY,BaseCamera:()=>s.hO,BlendMode:()=>d.BlendMode,BlendModeFields:()=>d.BlendModeFields,Box:()=>f.Box,Brightness:()=>d.Brightness,BrightnessFields:()=>d.BrightnessFields,BrightnessFragment:()=>d.BrightnessFragment,BrightnessVars:()=>d.BrightnessVars,COLOR_BLACK:()=>g.Sx,COLOR_BLUE:()=>g.pI,COLOR_GREEN:()=>g.F1,COLOR_RED:()=>g.yg,COLOR_WHITE:()=>g.Yf,CameraComponent:()=>s.My,CameraMixer:()=>p.CameraMixer,Capabilities:()=>o.Wi,Chunk:()=>s.z,ChunkFields:()=>s.rV,ChunkInstructionTarget:()=>s.MJ,ChunkInstructionType:()=>s.nE,ChunkUniforms:()=>s.t,Chunks:()=>c.So,Color:()=>d.Color,ColorFields:()=>d.ColorFields,ColorShader:()=>m.ColorShader,ColorShaderFragment:()=>m.ColorShaderFragment,ColorShaderVertex:()=>m.ColorShaderVertex,Component:()=>s.wA,ComponentAmbientLight:()=>s.fB,ComponentCamera:()=>s.Op,ComponentChunks:()=>s.H5,ComponentDirectionalLight:()=>s.bu,ComponentFile:()=>s.m3,ComponentGroup:()=>s.Jp,ComponentHierarchy:()=>s.ll,ComponentLight:()=>s.Fh,ComponentMaterials:()=>s.li,ComponentMesh:()=>s.C9,ComponentPointLight:()=>s.yD,ComponentPosition:()=>s.Mi,ComponentRectAreaLight:()=>s.nT,ComponentScript:()=>s.HO,ComponentShaders:()=>s.te,ComponentSpotLight:()=>s.KO,ComponentTransition:()=>s.tD,ComponentVisibility:()=>s.hz,ComponentsManager:()=>s.c3,Configuration:()=>s.VK,Controls:()=>s.ZX,CrossFadeRenderTargetsFragment:()=>m.CrossFadeRenderTargetsFragment,CustomScene:()=>s.cl,CustomUVParsFragment:()=>d.CustomUVParsFragment,CustomUVParsVertex:()=>d.CustomUVParsVertex,CustomUVVertex:()=>d.CustomUVVertex,DepthMode:()=>d.DepthMode,DepthModeFields:()=>d.DepthModeFields,DynamicTexture:()=>s.ci,EnvMap:()=>d.EnvMap,EnvMapFields:()=>d.EnvMapFields,Environment:()=>p.Environment,EnvironmentBackground:()=>p.EnvironmentBackground,EnvironmentFields:()=>p.EnvironmentFields,EnvironmentInterpolation:()=>p.EnvironmentInterpolation,EnvironmentInterpolationFields:()=>p.EnvironmentInterpolationFields,EnvironmentKeyframe:()=>p.EnvironmentKeyframe,EnvironmentKeyframeFields:()=>p.EnvironmentKeyframeFields,EnvironmentTexture:()=>s.rE,EnvironmentTextureMap:()=>s.H1,EnvironmentTextures:()=>s.mg,EventPool:()=>s.ID,Exposure:()=>d.Exposure,ExposureFields:()=>d.ExposureFields,ExposureFragment:()=>d.ExposureFragment,ExposureVars:()=>d.ExposureVars,FADE_LAYER:()=>g.AR,FileComponent:()=>s.Pw,GLTFAnimation:()=>p.GLTFAnimation,GLTFAnimationFields:()=>p.GLTFAnimationFields,Gamma:()=>d.Gamma,GammaFields:()=>d.GammaFields,GammaFragment:()=>d.GammaFragment,GammaVars:()=>d.GammaVars,Geometries:()=>c.yw,GroupComponent:()=>s.mn,HIDDEN_LAYER:()=>g.Q6,HSLFields:()=>d.HSLFields,HSLFragment:()=>d.HSLFragment,HSLVars:()=>d.HSLVars,HueSaturationLightness:()=>d.HueSaturationLightness,InteractiveCamera:()=>p.InteractiveCamera,InteractiveCameraFields:()=>p.InteractiveCameraFields,InteractiveCameraInterpolation:()=>p.InteractiveCameraInterpolation,Interpolation:()=>s.wf,Keyboard:()=>o.N1,Keyframes:()=>s.E4,KeyframesUtils:()=>s.i3,KeyframesUtilsManager:()=>s.Nm,LSD:()=>s.rW,Levels:()=>d.Levels,LevelsFields:()=>d.LevelsFields,LevelsFragment:()=>d.LevelsFragment,LevelsVars:()=>d.LevelsVars,LightComponent:()=>s.r0,LightMap:()=>d.LightMap,LightMapFields:()=>d.LightMapFields,LightMapFragment:()=>d.LightMapFragment,LightMapParsFragment:()=>d.LightMapParsFragment,Loader:()=>o.aN,Loop:()=>o.rN,Lotus:()=>b,LotusError:()=>s.Dt,MeshComponent:()=>s.$t,MobX:()=>i,NON_RENDERABLE_LAYER:()=>g.m1,Node:()=>s.NB,ObjectLoader:()=>l.Gq,ObjectLoaderManager:()=>l.Ie,Ocular:()=>d.Ocular,OcularFields:()=>d.OcularFields,OcularFragment:()=>d.OcularFragment,OcularParsFragment:()=>d.OcularParsFragment,OcularWorldPosVertex:()=>d.OcularWorldPosVertex,OutlineHandler:()=>s.LI,ParallaxMapping:()=>d.ParallaxMapping,ParallaxMappingFields:()=>d.ParallaxMappingFields,ParallaxMappingFragment:()=>d.ParallaxMappingFragment,ParallaxMappingFragmentFinal:()=>d.ParallaxMappingFragmentFinal,ParallaxMappingParsFragment:()=>d.ParallaxMappingParsFragment,Performance:()=>s.Sj,Plane:()=>f.Plane,Pointer:()=>o.gb,Reload:()=>l.L,RenderToTexture:()=>s.ez,Renderer:()=>s.Th,SIGNIFICANT_WEIGHT:()=>s.Y2,Saturation:()=>d.Saturation,SaturationFields:()=>d.SaturationFields,SaturationFragment:()=>d.SaturationFragment,SaturationVars:()=>d.SaturationVars,ScreenQuadFragment:()=>m.ScreenQuadFragment,ScreenQuadVertex:()=>m.ScreenQuadVertex,ScriptComponent:()=>s.Z8,Scripts:()=>c.KC,Settings:()=>c.Zr,Shader:()=>s.ex,Shaders:()=>c.my,Sphere:()=>f.Sphere,State:()=>s.ZM,States:()=>s.GC,THREE:()=>h,Tasks:()=>c.hS,Tetrahedron:()=>f.Tetrahedron,TextureDebugger:()=>l.F9,TextureDebuggerManager:()=>l.w8,TextureLoaderManager:()=>l.GA,Textures:()=>s.tx,TexturesManager:()=>s.zy,Timeline:()=>s.TY,TimelineEntry:()=>p.TimelineEntry,TimelineFields:()=>s.Ah,Timelines:()=>p.Timelines,TimelinesManager:()=>p.TimelinesManager,ToneMap:()=>d.ToneMap,ToneMapFields:()=>d.ToneMapFields,Transparency:()=>d.Transparency,TransparencyFields:()=>d.TransparencyFields,Variant:()=>s.$e,VariantWeights:()=>p.VariantWeights,VariantWeightsFields:()=>p.VariantWeightsFields,VariantWeightsMixer:()=>p.VariantWeightsMixer,VariantWeightsMixerFields:()=>p.VariantWeightsMixerFields,Variants:()=>s.tr,VariantsManager:()=>s.mu,Viewport:()=>o.l_,defaultRotationInterpolationMethod:()=>s.QB,instance:()=>_,isObjectSelectable:()=>s.ZT,millisToFPS:()=>s.qL});var r=n(9707),i=n(8949),a=(n(2501),n(2893)),s=n(9614),o=n(3641),l=n(4082),c=n(2354),u=n(3951),h=n(4468),d=n(3443),p=n(3115),f=n(7772),m=n(571),A={};for(const e in u)["default","Lotus","instance","MobX","THREE","AlphaMap","AlphaMapFields","AlphaMapFragment","AlphaMapParsFragment","AoMap","AoMapFields","BlendMode","BlendModeFields","Brightness","BrightnessFields","BrightnessFragment","BrightnessVars","Color","ColorFields","CustomUVParsFragment","CustomUVParsVertex","CustomUVVertex","DepthMode","DepthModeFields","EnvMap","EnvMapFields","Exposure","ExposureFields","ExposureFragment","ExposureVars","Gamma","GammaFields","GammaFragment","GammaVars","HSLFields","HSLFragment","HSLVars","HueSaturationLightness","Levels","LevelsFields","LevelsFragment","LevelsVars","LightMap","LightMapFields","LightMapFragment","LightMapParsFragment","Ocular","OcularFields","OcularFragment","OcularParsFragment","OcularWorldPosVertex","ParallaxMapping","ParallaxMappingFields","ParallaxMappingFragment","ParallaxMappingFragmentFinal","ParallaxMappingParsFragment","Saturation","SaturationFields","SaturationFragment","SaturationVars","ToneMap","ToneMapFields","Transparency","TransparencyFields","Animation","Animations","AnimationsGLTF","AnimationsManager","AnimationsUtils","AnimationsUtilsManager","Asset","AssetBase","AssetLSD","AssetModel","AssetReload","AssetTexture","Assets","Base","BaseCamera","CameraComponent","Chunk","ChunkFields","ChunkInstructionTarget","ChunkInstructionType","ChunkUniforms","Component","ComponentAmbientLight","ComponentCamera","ComponentChunks","ComponentDirectionalLight","ComponentFile","ComponentGroup","ComponentHierarchy","ComponentLight","ComponentMaterials","ComponentMesh","ComponentPointLight","ComponentPosition","ComponentRectAreaLight","ComponentScript","ComponentShaders","ComponentSpotLight","ComponentTransition","ComponentVisibility","ComponentsManager","Configuration","Controls","CustomScene","DynamicTexture","EnvironmentTexture","EnvironmentTextureMap","EnvironmentTextures","EventPool","FileComponent","GroupComponent","Interpolation","Keyframes","KeyframesUtils","KeyframesUtilsManager","LSD","LightComponent","LotusError","MeshComponent","Node","OutlineHandler","Performance","RenderToTexture","Renderer","SIGNIFICANT_WEIGHT","ScriptComponent","Shader","State","States","Textures","TexturesManager","Timeline","TimelineFields","Variant","Variants","VariantsManager","defaultRotationInterpolationMethod","isObjectSelectable","millisToFPS","CameraMixer","Environment","EnvironmentBackground","EnvironmentFields","EnvironmentInterpolation","EnvironmentInterpolationFields","EnvironmentKeyframe","EnvironmentKeyframeFields","GLTFAnimation","GLTFAnimationFields","InteractiveCamera","InteractiveCameraFields","InteractiveCameraInterpolation","TimelineEntry","Timelines","TimelinesManager","VariantWeights","VariantWeightsFields","VariantWeightsMixer","VariantWeightsMixerFields","Box","Plane","Sphere","Tetrahedron","Capabilities","Keyboard","Loader","Loop","Pointer","Viewport","Chunks","Geometries","Scripts","Settings","Shaders","Tasks","ColorShader","ColorShaderFragment","ColorShaderVertex","CrossFadeRenderTargetsFragment","ScreenQuadFragment","ScreenQuadVertex","ObjectLoader","ObjectLoaderManager","Reload","TextureDebugger","TextureDebuggerManager","TextureLoaderManager"].indexOf(e)<0&&(A[e]=()=>u[e]);n.d(t,A);var g=n(8264),v=function(e,t,n,r){return new(n||(n=Promise))(function(i,a){function s(e){try{l(r.next(e))}catch(e){a(e)}}function o(e){try{l(r.throw(e))}catch(e){a(e)}}function l(e){var t;e.done?i(e.value):(t=e.value,t instanceof n?t:new n(function(e){e(t)})).then(s,o)}l((r=r.apply(e,t||[])).next())})};r.a.init(),(0,i.configure)({enforceActions:"never"});class y extends s.XY{constructor(){super(),Object.defineProperty(this,"DOM",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"version",{enumerable:!0,configurable:!0,writable:!0,value:"10.7.2"}),Object.defineProperty(this,"ready",{enumerable:!0,configurable:!0,writable:!0,value:!1}),Object.defineProperty(this,"capabilities",{enumerable:!0,configurable:!0,writable:!0,value:o.Wi}),Object.defineProperty(this,"settings",{enumerable:!0,configurable:!0,writable:!0,value:c.Zr}),Object.defineProperty(this,"chunks",{enumerable:!0,configurable:!0,writable:!0,value:new c.So}),Object.defineProperty(this,"geometries",{enumerable:!0,configurable:!0,writable:!0,value:new c.yw}),Object.defineProperty(this,"scripts",{enumerable:!0,configurable:!0,writable:!0,value:new c.KC}),Object.defineProperty(this,"shaders",{enumerable:!0,configurable:!0,writable:!0,value:new c.my}),Object.defineProperty(this,"tasks",{enumerable:!0,configurable:!0,writable:!0,value:new c.hS}),Object.defineProperty(this,"scene",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"LOAD_SCENE_MODES",{enumerable:!0,configurable:!0,writable:!0,value:{PRE_10_4:"PRE_10_4"}}),Object.defineProperty(this,"loadSceneMode",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"reload",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"loop",{enumerable:!0,configurable:!0,writable:!0,value:new o.rN}),Object.defineProperty(this,"renderer",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"rendererReady",{enumerable:!0,configurable:!0,writable:!0,value:Promise.create()}),Object.defineProperty(this,"performance",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"internalAssetsPath",{enumerable:!0,configurable:!0,writable:!0,value:"assets"}),performance.mark("Lotus"),(0,i.makeObservable)(this,{ready:i.observable,scene:i.observable})}loadScene(e){return v(this,void 0,void 0,function*(){let{src:t,data:n,element:r,SceneClass:o=a.c,assetsPath:l,onProgress:c}=e;if(this.internalInitialize({paths:{assets:void 0!==l?l:u.URLUtils.getContainingFolderOf(t)}}),!n){const e=yield window.fetch(t);200===e.status&&(n=yield e.json())}const h="LSD",d=`${h} - Start`,p=`${h} - End`;performance.mark(d);const f=null!=n?n:s.rW.DEFAULTS,m=yield s.rW.create(f,t);if(yield m.ready,performance.mark(p),performance.measure(h,d,p),!this.renderer){if(!this.createRenderer(m)){const e="This browser doesn't support WebGL 2.";if(this.loadSceneMode===this.LOAD_SCENE_MODES.PRE_10_4)return void this.dispatchEvent({message:e,type:"unsupported"});throw new s.Dt(e,{type:"UNSUPPORTED"})}this.createPerformance()}if(this.scene=new o({element:r,loop:this.loop,lsd:m,renderer:this.renderer}),this.loadSceneMode===this.LOAD_SCENE_MODES.PRE_10_4)return this.scene;this.autorun(()=>{if(c){let e=this.scene.loader.progress;isFinite(e)&&c(e)}});const A=new Promise(e=>{(0,i.when)(()=>this.scene.ready,()=>{e(this.scene)})}),g=new Promise((e,t)=>{this.addEventListener("error",e=>{t(new s.Dt(e.message,{type:"LOAD"}))})});return yield Promise.race([A,g])})}createScene(e){return v(this,arguments,void 0,function*({component:e=a.c,data:t,element:n,url:r}){return this.settings.suppressibleWarn("deprecated-create-scene","Deprecation Warning: createScene() is deprecated and will be removed in the next major release. Please migrate to loadScene()."),this.loadSceneMode=this.LOAD_SCENE_MODES.PRE_10_4,yield this.loadScene({src:r,data:t,element:n,SceneClass:e,assetsPath:this.internalAssetsPath})})}createRenderer(e){return this.renderer=new s.Th(e.data.renderer),this.rendererReady.resolve(),l.Ie.initialize(),this.renderer.capabilities.isWebGL2}createPerformance(){this.performance=new s.Sj({loop:this.loop,renderer:this.renderer})}internalInitialize({paths:e}={}){if(this.settings.isInitialized||this.settings.internalInitialize(),[this.chunks,this.geometries,this.scripts,this.shaders].forEach(e=>{e.isInitialized||e.initialize()}),!this.settings.isSupported()){const e="Lotus is not supported in this browser or device.";if(this.loadSceneMode===this.LOAD_SCENE_MODES.PRE_10_4)return void this.dispatchEvent({message:e,type:"unsupported"});throw new s.Dt(e,{type:"UNSUPPORTED"})}u.URLUtils.initialize(e),this.ready=!0}initialize({paths:e}={}){this.settings.suppressibleWarn("deprecated-initialize","Deprecation Warning: Lotus no longer needs to initialize() manually. Initialization has been integrated into Lotus scene creation."),(null==e?void 0:e.assets)&&(this.internalAssetsPath=e.assets)}tryRequestAnimationFrame(){this.loop.tryRequestAnimationFrame()}cancelAnimationFrame(){this.loop.cancelAnimationFrame()}}const b=new y,_=()=>b},5360:(e,t,n)=>{"use strict";n.d(t,{Z:()=>p});var r=n(4468),i=n(8949),a=n(3251),s=n.n(a),o=n(820),l=n.n(o),c=n(9614),u=n(3465),h=n(3951);class d extends c.XY{constructor(){super(),Object.defineProperty(this,"isInitialized",{enumerable:!0,configurable:!0,writable:!0,value:!1}),Object.defineProperty(this,"gltfTextureTasks",{enumerable:!0,configurable:!0,writable:!0,value:!0}),Object.defineProperty(this,"tasks",{enumerable:!0,configurable:!0,writable:!0,value:!1}),Object.defineProperty(this,"pmremGenerator",{enumerable:!0,configurable:!0,writable:!0,value:r.PMREMGenerator}),Object.defineProperty(this,"pmremCubeFaceSizeLimit",{enumerable:!0,configurable:!0,writable:!0,value:256}),Object.defineProperty(this,"suppressedWarnings",{enumerable:!0,configurable:!0,writable:!0,value:new Set}),(0,i.makeObservable)(this,{isInitialized:i.observable})}internalInitialize(){this.isInitialized=!0,this.enableBoneTextureFallback()}initialize(){this.suppressibleWarn("deprecated-settings-initialize","Deprecation Warning: Settings no longer needs to initialize() manually. Initialization has been integrated into Lotus scene creation."),this.internalInitialize()}enableBoneTextureFallback(){return function(e,t,n,r){return new(n||(n=Promise))(function(i,a){function s(e){try{l(r.next(e))}catch(e){a(e)}}function o(e){try{l(r.throw(e))}catch(e){a(e)}}function l(e){var t;e.done?i(e.value):(t=e.value,t instanceof n?t:new n(function(e){e(t)})).then(s,o)}l((r=r.apply(e,t||[])).next())})}(this,void 0,void 0,function*(){yield u.Lotus.rendererReady,r.Skeleton.renderer=u.Lotus.renderer})}isPhoneBreakpoint(){return window.innerWidth<=884}isTabletBreakpoint(){return window.innerWidth<=1440}isIPhoneBreakpoint(){return s().touchAvailable()&&this.isPhoneBreakpoint()}isIPadBreakpoint(){return s().touchAvailable()&&this.isTabletBreakpoint()}gltfTextureTasksTest(){return!!h.QueryUtils.get("gltfTextureTasks")||this.gltfTextureTasks}tasksTest(){return!!h.QueryUtils.get("tasks")||this.tasks}transmissionMapSizeTest(e=1024){const t=h.QueryUtils.get("transmissionMapSize");return t?this.pmremGenerator.CubeFaceSize[t]:e}pmremCubeFaceSizeTest(){const e=h.QueryUtils.get("pmremCubeFaceSize");if(e)return this.pmremGenerator.CubeFaceSize[e];if(this.isIPhoneBreakpoint()){const e=Math.min(this.pmremCubeFaceSizeLimit,128);return this.pmremGenerator.CubeFaceSize[e]}if(this.isIPadBreakpoint()){const e=Math.min(this.pmremCubeFaceSizeLimit,256);return this.pmremGenerator.CubeFaceSize[e]}if(this.isPhoneBreakpoint()){const e=Math.min(this.pmremCubeFaceSizeLimit,h.MathUtils.nextPow2(1024,-2));return this.pmremGenerator.CubeFaceSize[e]}if(this.isTabletBreakpoint()){const e=Math.min(this.pmremCubeFaceSizeLimit,h.MathUtils.nextPow2(1024,-1));return this.pmremGenerator.CubeFaceSize[e]}const t=Math.min(this.pmremCubeFaceSizeLimit,1024);return this.pmremGenerator.CubeFaceSize[t]}getResolutionGroup(){const e=(e,t,n)=>e>=t&&e<=n,t=window.outerHeight,n=window.outerWidth;return e(n,834,1024)&&e(t,1194,1366)||e(t,834,1024)&&e(n,1194,1366)?{group:"a",type:"tablet"}:e(n,810,820)&&e(t,1080,1180)||e(t,810,820)&&e(n,1080,1180)?{group:"b",type:"tablet"}:e(n,744,768)&&e(t,1024,1133)||e(t,744,768)&&e(n,1024,1133)?{group:"c",type:"tablet"}:e(n,393,430)&&e(t,852,932)||e(t,393,430)&&e(n,852,932)?{group:"a",type:"phone"}:390===n&&844===t||390===t&&844===n?{group:"b",type:"phone"}:414===n&&896===t||414===t&&896===n?{group:"c",type:"phone"}:375===n&&812===t||375===t&&812===n?{group:"d",type:"phone"}:414===n&&736===t||414===t&&736===n?{group:"e",type:"phone"}:375===n&&667===t||375===t&&667===n?{group:"f",type:"phone"}:{group:"s",type:"unknown"}}dprTest(e=window.devicePixelRatio){const t=h.QueryUtils.get("dpr");return t?Number(t):(s().touchAvailable(),e)}rtSamplesTest(){const e=h.QueryUtils.get("rtSamples");return e?Number(e):4}dataTextureBufferTest(e){return this.isFirefox()?new Float32Array(e):new Uint16Array(e)}dataTextureTypeTest(){return this.isFirefox()?r.FloatType:r.HalfFloatType}isSupported(){const{browser:e}=l(),{safari:t,version:n}=e,r=t&&15===n.major&&4===n.minor,i=t&&16===n.major&&4===n.minor;return!r&&!i}isIOS164(){const{browser:e,os:t}=l(),{version:n}=e;return t.ios&&16===n.major&&4===n.minor}isFirefox(){const{browser:e}=l();return e.firefox}configureWarnings({suppressWarnings:e}){(null==e?void 0:e.length)>0&&e.forEach(e=>{this.suppressedWarnings.add(e)})}suppressibleWarn(e,t){this.suppressedWarnings.has(e)||console.warn(`[${e}] `+t)}}const p=new d},2354:(e,t,n)=>{"use strict";n.d(t,{So:()=>i,yw:()=>s,KC:()=>l,Zr:()=>c.Z,my:()=>h,hS:()=>v});var r=n(3443);class i{constructor(){Object.defineProperty(this,"isInitialized",{enumerable:!0,configurable:!0,writable:!0,value:!1}),Object.defineProperty(this,"entries",{enumerable:!0,configurable:!0,writable:!0,value:new Map})}initialize(e){const t=Object.entries(r).filter(([e,t])=>"function"==typeof t);for(const[e,n]of t)this.entries.set(e,n);if(e)for(const[t,n]of Object.entries(e))this.entries.set(t,n);this.isInitialized=!0}get(e){return this.entries.get(e)}}var a=n(7772);class s{constructor(){Object.defineProperty(this,"isInitialized",{enumerable:!0,configurable:!0,writable:!0,value:!1}),Object.defineProperty(this,"entries",{enumerable:!0,configurable:!0,writable:!0,value:new Map})}initialize(e){for(const[e,t]of Object.entries(a))this.entries.set(e,t);if(e)for(const[t,n]of Object.entries(e))this.entries.set(t,n);this.isInitialized=!0}get(e){return this.entries.get(e)}}var o=n(3115);class l{constructor(){Object.defineProperty(this,"isInitialized",{enumerable:!0,configurable:!0,writable:!0,value:!1}),Object.defineProperty(this,"entries",{enumerable:!0,configurable:!0,writable:!0,value:new Map})}initialize(e){for(const[e,t]of Object.entries(o))"function"==typeof t&&this.entries.set(e,t);if(e)for(const[t,n]of Object.entries(e))this.entries.set(t,n);this.isInitialized=!0}get(e){return this.entries.get(e)}}var c=n(5360),u=n(571);class h{constructor(){Object.defineProperty(this,"isInitialized",{enumerable:!0,configurable:!0,writable:!0,value:!1}),Object.defineProperty(this,"entries",{enumerable:!0,configurable:!0,writable:!0,value:new Map})}initialize(e){for(const[e,t]of Object.entries(u))"function"==typeof t&&this.entries.set(e,t);if(e)for(const[t,n]of Object.entries(e))this.entries.set(t,n);this.isInitialized=!0}get(e){return this.entries.get(e)}}var d=n(1469),p=n.n(d),f=n(8949),m=n(3465),A=n(9614),g=n(3951);class v extends A.XY{constructor(){super(),Object.defineProperty(this,"list",{enumerable:!0,configurable:!0,writable:!0,value:[]}),(0,f.makeObservable)(this,{list:f.observable})}add(e,t){return p()(e)?e.map(e=>this.create(e,t)):this.create(e,t)}create(e,t){const n=Promise.create(),r={onTaskResolve:()=>{const t=e();n.resolve(t)},onTaskCancel:()=>{n.reject()},promise:n,type:t,cancel:()=>this.remove(r)};return this.list.push(r),r}resolve(e){e.onTaskResolve(),this.remove(e)}remove(e){g.ArrayUtils.remove(this.list,e)}onFrame(){var e,t;if((!(null===(e=m.Lotus.scene)||void 0===e?void 0:e.rendered)&&!c.Z.tasksTest()||(null===(t=m.Lotus.reload)||void 0===t?void 0:t.isActive))&&this.list.forEach(e=>this.resolve(e)),0!==this.list.length)for(let e=0;e{"use strict";n.d(t,{A6:()=>g,bj:()=>A,sg:()=>m});var r=n(4468),i=n(5578),a=n.n(i),s=n(8949),o=n(3465),l=n(6487),c=n(8478),u=n(4459),h=n(434),d=n(5344);const p=1e-5,f=1e9;class m extends d.X{constructor(){super(),Object.defineProperty(this,"interpolations",{enumerable:!0,configurable:!0,writable:!0,value:{a:{label:"",interpolation:0,vector:null,phi:0,theta:0},b:{label:"",interpolation:0,vector:null,phi:0,theta:0},c:{label:"",interpolation:0,vector:null,phi:0,theta:0},d:{label:"",interpolation:0,vector:null,phi:0,theta:0}}}),(0,s.makeObservable)(this,{interpolations:s.observable})}updateWeights([e,t,n,r]){e.interpolation=e.distancethis.angles&&this.data,this.onDataUpdate.bind(this),Object.assign(Object.assign({},i),{name:"InteractiveCamera.onDataUpdate"})),this.reaction(()=>this.data.interpolation,this.onInterpolationUpdate.bind(this),i),this.reaction(()=>{var e;return null===(e=this.angles)||void 0===e?void 0:e.angles},this.onAnglesUpdate.bind(this),i),this.reaction(()=>o.Lotus.scene.states.states.angles,this.onAngleStateUpdate.bind(this))}onAngleStateUpdate(e){if(!this.ready||this.angleChanging)return;const t=this.curatedAngles.find(({label:t})=>t===e);t&&(this.theta=t.theta,this.phi=t.phi)}get theta(){return this.thetaCurrent}set theta(e){this.ready&&(this.nearestAngle.theta=this.closestAngle.x=this.thetaCurrent=this.thetaTarget=e)}get phi(){return this.phiCurrent}set phi(e){this.ready&&(this.nearestAngle.phi=this.closestAngle.y=this.phiCurrent=this.phiTarget=e)}onInterpolationUpdate(){var e;null===(e=this.interpolation)||void 0===e||e.destroy(),this.interpolation=void 0,this.data.interpolation&&(this.interpolation=new m)}get startingAngles(){var e;return null===(e=this.angles)||void 0===e?void 0:e.start}get curatedAngles(){var e;return null===(e=this.angles)||void 0===e?void 0:e.angles}get angles(){return l.d.getAsset(this.data.angles)}onDataUpdate(){this.angles&&this.onValuesChange(),this.ready=!0}onValuesChange(){[this.defaultAngle.x,this.defaultAngle.y]=this.getClosestControlAngle(),this.setViewOffset(o.Lotus.scene.viewport.width,o.Lotus.scene.viewport.height,0,this.data.offset*Math.min(o.Lotus.scene.viewport.width,o.Lotus.scene.viewport.height),o.Lotus.scene.viewport.width,o.Lotus.scene.viewport.height),this.updateNearestAndClosestAngles(),this.calculateCameraRotation(),o.Lotus.tryRequestAnimationFrame()}updateNearestAndClosestAngles(){this.closestAngle.set(this.defaultAngle.x,this.defaultAngle.y);const e=this.curatedAngles.findIndex(({phi:e,theta:t})=>t===this.closestAngle.x&&e===this.closestAngle.y);this.nearestAngle=Object.assign({},this.curatedAngles[e])}onPointerStart(e){this.isEnabled&&(this.thetaTarget=this.thetaCurrent,this.phiTarget=this.phiCurrent)}onPointerMove(e){this.isEnabled&&o.Lotus.scene.pointer.isTouching&&(this.pointerDeltaX+=e.pointer.delta.x,this.pointerDeltaY+=e.pointer.delta.y,o.Lotus.tryRequestAnimationFrame())}onPointerEnd(e){this.isEnabled&&o.Lotus.scene.pointer.isTouching&&o.Lotus.tryRequestAnimationFrame()}get touchSensitivity(){const e=Math.pow(390/o.Lotus.scene.viewport.width,.5);return this.dampMobile.clone().multiplyScalar(e)}calculateUserInteractions(){if(!this.isEnabled||!o.Lotus.scene.pointer.isTouching)return;this.lockPolarFalloff(),this.calculateTargetPosition();const{thetaDistanceLimit:e,rotationFalloffStrength:t,lerpDrag:n}=this.data;this.thetaTarget>this.thetaCurrent?this.thetaTarget=Math.min(this.thetaTarget,this.thetaCurrent+e):this.thetaTarget=Math.max(this.thetaTarget,this.thetaCurrent-e),this.phiTarget>this.rotationFalloff.y?this.phiTarget=this.rotationFalloff.y+(this.phiTarget-this.rotationFalloff.y)*Math.pow(1/(this.phiTarget-this.rotationFalloff.y+1),t):this.phiTargeti?(this.thetaCurrent-=i,this.thetaTarget-=i):this.thetaTarget<0&&(this.thetaCurrent+=i,this.thetaTarget+=i),this.thetaCurrent=u.M.lerp(this.thetaCurrent,this.thetaTarget,n),this.phiCurrent=u.M.lerp(this.phiCurrent,this.phiTarget,n),this.phiCurrent=r.MathUtils.clamp(this.phiCurrent,this.rotationLimit.x,this.rotationLimit.y),this.calculateCameraRotation(),[this.closestAngle.x,this.closestAngle.y]=this.getClosestControlAngle(this.curatedAngles),o.Lotus.tryRequestAnimationFrame()}calculateTargetPosition(){const{pointer:e}=o.Lotus.scene;this.thetaTarget||(this.thetaTarget=this.thetaCurrent),this.phiTarget||(this.phiTarget=this.phiCurrent),e.isTouch?(this.thetaTarget+=-this.pointerDeltaX*this.touchSensitivity.x,this.phiTarget+=-this.pointerDeltaY*this.touchSensitivity.y):(this.thetaTarget+=-this.pointerDeltaX*this.damp.x,this.phiTarget+=-this.pointerDeltaY*this.damp.y),this.pointerDeltaX=0,this.pointerDeltaY=0}lockPolarFalloff(){this.phiCurrentthis.rotationFalloff.y?(this.lockPositionX||(this.damp.x=this.damp.x/1.5),this.lockPositionX=!0):(this.lockPositionX&&(this.damp.x=this.data.damp[0]),this.lockPositionX=!1)}getClosestControlAngle(e=this.startingAngles){var t,n,r,i;const a=(e,t)=>Math.sqrt(Math.pow(e.phi-t.phi,2)+Math.pow(e.theta-t.theta,2)),s=o.Lotus.scene.pointer,l={theta:this.thetaCurrent-s.speed.x*this.throw.x,phi:this.phiCurrent-s.speed.y*this.throw.y};return(null==e?void 0:e.length)&&(this.nearestAngle=Object.assign({},e.reduce((e,t)=>a(e,l)<=a(t,l)?e:t))),[null!==(n=null===(t=this.nearestAngle)||void 0===t?void 0:t.theta)&&void 0!==n?n:0,null!==(i=null===(r=this.nearestAngle)||void 0===r?void 0:r.phi)&&void 0!==i?i:0]}calculateAngles(){o.Lotus.scene.pointer.isTouching||(this.thetaCurrent=u.M.lerp(this.thetaCurrent,this.closestAngle.x,this.data.lerpSnap),this.phiCurrent=u.M.lerp(this.phiCurrent,this.closestAngle.y,this.data.lerpSnap),this.calculateCameraRotation())}calculateCameraRotation(){this.position.setFromSphericalCoords(this.data.radius,this.phiCurrent,this.thetaCurrent),this.phiCurrent<0||this.phiCurrent>Math.PI?this.up.set(0,-1,0):this.up.set(0,1,0),this.lookAt(this.lookAtPosition)}drawFrame(){const e=Math.round(1e3*this.phiCurrent)/1e3,t=Math.round(1e3*this.thetaCurrent)/1e3,n=Math.round(1e3*this.closestAngle.x)/1e3,r=Math.round(1e3*this.closestAngle.y)/1e3;n===t&&r===e||o.Lotus.tryRequestAnimationFrame()}onAnglesUpdate(e){this.positions=a()(e,e=>e.label).filter(e=>e.label).map(e=>{const t=(new r.Vector3).setFromSphericalCoords(this.radius,e.phi,e.theta);if(h.D.get("interactiveCameraDebug")){const e=new r.Mesh(new r.BoxGeometry(1,1),new r.MeshNormalMaterial);e.position.copy(t),o.Lotus.scene.add(e)}return Object.assign(Object.assign({},e),{vector:t})})}get drivingCamera(){var e;return this.data.drivingCamera&&this.data.drivingCamera.trim().length>0&&null!==(e=o.Lotus.scene.getObjectByName(this.data.drivingCamera))&&void 0!==e?e:this}calculateAnglesDistances(){this.positions&&(this.drivingCamera.getWorldPosition(this.positionTemp),this.positionTemp.normalize().multiplyScalar(this.radius),this.positions.forEach(e=>{e.distance=this.positionTemp.distanceTo(e.vector),e.multiplier=r.MathUtils.mapLinear(e.distance,0,e.threshold,1,0),e.multiplier=r.MathUtils.clamp(e.multiplier,0,1)}),this.positionsSorted=this.positions.sort((e,t)=>t.multiplier-e.multiplier))}setCurrentAngle(){if(!this.positionsSorted)return;const[e]=this.positionsSorted;(null==e?void 0:e.label)&&this.angle!==e.label&&(this.angle=e.label,this.angleChanging=!0,this.angleChanging=!1)}reset(){[this.defaultAngle.x,this.defaultAngle.y]=this.getClosestControlAngle(this.curatedAngles),this.updateNearestAndClosestAngles()}onLoop(){var e,t;if(super.onLoop(),null===(e=this.positionsSorted)||void 0===e?void 0:e.length){const e=this.positionsSorted.slice(0,4);null===(t=this.interpolation)||void 0===t||t.updateWeights(e)}this.calculateAngles(),this.calculateAnglesDistances(),this.calculateUserInteractions(),this.setCurrentAngle(),this.drawFrame()}get isEnabled(){const e=this._isEnabled,t=!o.Lotus.scene.controls||"user"===o.Lotus.scene.controls.mode;return e&&t}disable(){this._isEnabled=!1}enable(){this._isEnabled=!0}destroy(){super.destroy(),o.Lotus.scene.camera===this&&o.Lotus.scene.resetCamera()}}Object.defineProperty(g,"fields",{enumerable:!0,configurable:!0,writable:!0,value:A}),Object.defineProperty(g,"supports",{enumerable:!0,configurable:!0,writable:!0,value:["camera"]}),Object.defineProperty(g,"DRAGGING_MULTIPLIER",{enumerable:!0,configurable:!0,writable:!0,value:.02})},3115:(e,t,n)=>{"use strict";n.r(t),n.d(t,{CameraMixer:()=>k,Environment:()=>c,EnvironmentBackground:()=>p,EnvironmentFields:()=>l,EnvironmentInterpolation:()=>E,EnvironmentInterpolationFields:()=>x,EnvironmentKeyframe:()=>I,EnvironmentKeyframeFields:()=>C,GLTFAnimation:()=>B,GLTFAnimationFields:()=>T,InteractiveCamera:()=>R.A6,InteractiveCameraFields:()=>R.bj,InteractiveCameraInterpolation:()=>R.sg,TimelineEntry:()=>Q,Timelines:()=>V,TimelinesManager:()=>G,VariantWeights:()=>j,VariantWeightsFields:()=>H,VariantWeightsMixer:()=>q,VariantWeightsMixerFields:()=>W});var r=n(4468),i=n(8949),a=n(3465),s=n(9614),o=n(3951);const l={"@animations":{defaultValue:"",type:"File"},"@variants":{defaultValue:"",type:"File"},debug:{defaultValue:!1,type:"Boolean"},envMap:{defaultValue:"",filter:"texture",type:"Asset"},envMapIntensity:{defaultValue:1,type:"Number"},envMapRotation:{defaultValue:[0,0,0],type:"Vector"},id:{defaultValue:"",editable:!1,type:"String"},layer:{defaultValue:0,step:1,type:"Number"}};class c extends s.XY{constructor({component:e,data:t}){super(),Object.defineProperty(this,"script",{enumerable:!0,configurable:!0,writable:!0,value:"Environment"}),Object.defineProperty(this,"component",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"data",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"envMapIntensity",{enumerable:!0,configurable:!0,writable:!0,value:1}),Object.defineProperty(this,"envMapRotation",{enumerable:!0,configurable:!0,writable:!0,value:[0,Math.PI/2,0]}),Object.defineProperty(this,"envMapRotationEuler",{enumerable:!0,configurable:!0,writable:!0,value:new r.Euler}),Object.defineProperty(this,"background",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),this.component=e,this.data=t,this.name=this.component.name,(0,i.makeObservable)(this,{envMap:i.computed,envMapRotation:i.observable,envMapIntensity:i.observable}),o.EnvironmentUtils.IS_DEVELOPMENT&&this.createBackground(),this.autorun(()=>{this.envMapIntensity=this.data.envMapIntensity}),this.autorun(()=>{this.envMapRotation=this.data.envMapRotation,this.envMapRotationEuler.fromArray(this.envMapRotation)}),this.autorun(()=>{a.Lotus.scene.groups[this.data.layer].forEach(e=>{e.envMapIntensity=this.envMapIntensity,e.envMapRotation=this.envMapRotationEuler.fromArray(this.envMapRotation)})})}get envMap(){return s.Assets.getAsset(this.data.envMap)}createBackground(){this.background=new p(this),a.Lotus.scene.add(this.background)}destroyBackground(){var e;null===(e=this.background)||void 0===e||e.destroy()}destroy(){super.destroy(),this.destroyBackground()}}Object.defineProperty(c,"fields",{enumerable:!0,configurable:!0,writable:!0,value:l}),Object.defineProperty(c,"supports",{enumerable:!0,configurable:!0,writable:!0,value:["script"]});var u=n(4572),h=n(4082),d=n(8264);class p extends((0,u.AF)(s.XY,r.Mesh)){constructor(e){const t=new r.BoxGeometry(100,100,100);t.deleteAttribute("normal"),t.deleteAttribute("uv");const n=r.UniformsUtils.clone(r.ShaderLib.backgroundCube.uniforms);super(t,new r.ShaderMaterial({depthTest:!1,depthWrite:!1,fog:!1,fragmentShader:r.ShaderLib.backgroundCube.fragmentShader,name:p.NAME,uniforms:n,side:r.BackSide,vertexShader:r.ShaderLib.backgroundCube.vertexShader})),Object.defineProperty(this,"euler",{enumerable:!0,configurable:!0,writable:!0,value:new r.Euler}),Object.defineProperty(this,"matrix4",{enumerable:!0,configurable:!0,writable:!0,value:new r.Matrix4}),this.frustumCulled=!1,this.onBeforeRender=function(e,t,n){this.matrixWorld.copyPosition(n.matrixWorld)},this.layers.set(d.m1),this.renderOrder=-1,this.autorun(()=>{var t,i;if(this.visible=e.data.debug,e.envMap){const a=null===(i=(t=e.envMap).clone)||void 0===i?void 0:i.call(t);if(!a)return;a.mapping=r.EquirectangularReflectionMapping;const s=h.GA.pmremGenerator.fromEquirectangular(a);this.material.envMap=n.envMap.value=s.texture}else this.material.envMap=n.envMap.value=null}),this.autorun(()=>{this.updateIntensity(e.envMapIntensity)}),this.autorun(()=>{this.updateRotation(e.envMapRotation)})}updateIntensity(e){this.material.uniforms.backgroundIntensity.value=e}updateRotation(e){this.euler.fromArray(e),this.euler.y*=-1,this.euler.z*=-1;const t=this.matrix4.makeRotationFromEuler(this.euler);this.material.backgroundRotation=this.material.uniforms.backgroundRotation.value.setFromMatrix4(t)}destroy(){super.destroy(),this.removeFromParent()}}Object.defineProperty(p,"NAME",{enumerable:!0,configurable:!0,writable:!0,value:"EnvironmentBackground"});var f=n(3857),m=n.n(f),A=n(940),g=n(6487),v=n(5344),y=n(7928),b=n(701),_=n(6749);const x={"@variants":{defaultValue:"",type:"File"},asset:{defaultValue:"",filter:"model",type:"Asset"},debug:{defaultValue:!1,type:"Boolean"},interpolationMode:{defaultValue:"crossfade",options:[{label:"crossfade",value:"crossfade"},{label:"dynamic",value:"dynamic"}],type:"Select"},envMapIntensity:{defaultValue:1,type:"Number"},id:{defaultValue:"",editable:!1,type:"String"},layer:{defaultValue:0,step:1,type:"Number"},drivingCamera:{defaultValue:"",type:"Component",componentFilter:e=>e&&(0,u.KV)(e,b.My)&&[...e.scripts.values()].find(e=>"InteractiveCamera"===e.script)}};class E extends v.X{get crossfade(){var e;return"dynamic"!==(null===(e=this.data)||void 0===e?void 0:e.interpolationMode)}constructor({component:e,data:t}){var n,r;super(),Object.defineProperty(this,"script",{enumerable:!0,configurable:!0,writable:!0,value:"EnvironmentInterpolation"}),Object.defineProperty(this,"component",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"data",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"state",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"ready",{enumerable:!0,configurable:!0,writable:!0,value:!1}),Object.defineProperty(this,"variantWeightsRef",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"texture",{enumerable:!0,configurable:!0,writable:!0,value:new y.m({component:this})}),Object.defineProperty(this,"textures",{enumerable:!0,configurable:!0,writable:!0,value:new Map}),Object.defineProperty(this,"textureTasks",{enumerable:!0,configurable:!0,writable:!0,value:new Set}),this.component=e,this.data=t,this.name=this.component.name,(0,i.makeObservable)(this,{asset:i.computed,envMap:i.computed,envMapIntensity:i.computed,id:i.computed,variantWeights:i.computed,variantWeightsRef:i.observable,keyframes:i.computed.struct,ready:i.observable,drivingCamera:i.computed,crossfade:i.computed}),this.autorun(this.onAssetUpdate.bind(this)),this.autorun(this.onDebugUpdate.bind(this)),this.reaction(()=>{var e;return null===(e=this.asset)||void 0===e?void 0:e.scene},(e,t)=>{t&&(console.warn("Removing old environment scene"),a.Lotus.scene.remove(t)),a.Lotus.scene.add(e),e.visible=this.data.debug}),this.reaction(()=>{var e,t,n;const r=null===(e=this.asset)||void 0===e?void 0:e.scene,i=0!==(null===(n=null===(t=this.interactiveCamera)||void 0===t?void 0:t.positions)||void 0===n?void 0:n.length),s=this.keyframes,o=a.Lotus.scene.states.states.global;return r&&i&&s&&o},this.onTexturesUpdate.bind(this),{fireImmediately:!0}),this.reaction(()=>this.keyframes,this.onTexturesUpdate.bind(this),{fireImmediately:!0}),null===(r=null===(n=a.Lotus.scene)||void 0===n?void 0:n.eventPool)||void 0===r||r.register(this)}get asset(){return g.d.getAsset(this.data.asset)}get envMap(){var e,t;return null===(t=null===(e=this.texture)||void 0===e?void 0:e.renderTarget)||void 0===t?void 0:t.texture}get envMapIntensity(){var e;return null!==(e=this.data.envMapIntensity)&&void 0!==e?e:1}get id(){return this.data.id}get variantWeights(){if(!this.variantWeightsRef||""===this.variantWeightsRef)return a.Lotus.scene.interpolation;const e=a.Lotus.scene.getComponent(this.variantWeightsRef);return e?(console.log(e),[...null==e?void 0:e.scripts.values()].find(e=>e.interpolation)):null}get drivingCamera(){var e;return null!==(e=this.data.drivingCamera)&&void 0!==e?e:""}get interactiveCamera(){var e;return this.drivingCamera&&""!==this.drivingCamera?null===(e=a.Lotus.scene.getComponent(this.drivingCamera))||void 0===e?void 0:e.element:a.Lotus.scene.camera}get keyframes(){const e={};return this.data.variants?(this.data.variants.forEach(t=>{t["@states"].forEach(n=>{e[n]||(e[n]={}),Object.entries(t).filter(([e])=>"@states"!==e).forEach(([t,r])=>{e[n][t]=Object.assign(Object.assign({},e[n][t]),r)})})}),e):e}onAssetUpdate(){this.asset&&(this.asset.scene.userData.component=this.component,this.texture&&(this.texture.asset=this.asset.scene))}onDebugUpdate(){var e;(null===(e=this.asset)||void 0===e?void 0:e.scene)&&(this.asset.scene.visible=this.data.debug)}onTexturesUpdate(){var e;if(!this.keyframes||!(null===(e=this.asset)||void 0===e?void 0:e.scene))return;this.destroyEnvironmentTextures();const t=a.Lotus.scene.states.states.global;let n=[];a.Lotus.scene.interpolation?n=Object.values(a.Lotus.scene.interpolation.interpolations).filter(e=>e.interpolation>.1).sort((e,t)=>t.interpolation-e.interpolation).map(e=>e.label):a.AlertUtils.warn(`${this.name}:EnvironmentInterpolation script requires setting a defaultInterpolation in scene's Configuration.`);const r=a.Lotus.scene.states.list.filter(e=>"angles"===e.category&&!n.includes(e.id)).map(e=>e.id),i=[...n,...r].map(e=>{const n=`${t}+${e}`,r=`EnvironmentInterpolation:${n}`,i=`${r} - Start`,s=`${r} - End`;return()=>{performance.mark(i),a.Lotus.scene.renderer.setClearColor(0,1);const o=this.keyframes[e],l=this.keyframes[t],c=this.keyframes[n],u=m()({},o,l,c);A.M.apply(u,this.asset.scene),a.Lotus.tryRequestAnimationFrame();const h=this.asset.scene.visible;this.asset.scene.visible=!0;const d=_.G.pmremGenerator.fromScene(this.asset.scene,0,3,2e3);this.asset.scene.visible=h,a.Lotus.scene.renderer.setClearColor(a.Lotus.scene.renderer.backgroundColor,a.Lotus.scene.renderer.backgroundAlpha),this.texture.getMapTexture(d).then(e=>{this.textures.set(n,e),performance.mark(s),performance.measure(r,i,s)})}});i.length&&i.shift()();const s=i.map(e=>{const t=a.Lotus.tasks.add(e,"environment");return this.textureTasks.add(t),t.promise});Promise.all(s).then(()=>{this.ready=!0})}destroyTexture(){this.texture.destroy(),this.texture=void 0}destroyEnvironmentTextures(){this.textureTasks.forEach(e=>{var t;null===(t=e.cancel)||void 0===t||t.call(e)}),this.textures.forEach(e=>{e.dispose()}),this.textures.clear()}onLoop(){var e,t,n,r,i;if(!(null===(e=this.variantWeights)||void 0===e?void 0:e.interpolations))return;const s=this.texture;if(s)if(this.crossfade){const{a:e,b:o,c:l,d:c}=this.variantWeights.interpolations,u=a.Lotus.scene.states.states.global,h=null!==(t=this.textures.get(`${u}+${e.label}`))&&void 0!==t?t:this.textures.get(`${e.label}`),d=null!==(n=this.textures.get(`${u}+${o.label}`))&&void 0!==n?n:this.textures.get(`${o.label}`),p=null!==(r=this.textures.get(`${u}+${l.label}`))&&void 0!==r?r:this.textures.get(`${l.label}`),f=null!==(i=this.textures.get(`${u}+${c.label}`))&&void 0!==i?i:this.textures.get(`${c.label}`);s.setTextures([h,d,p,f]),s.setOpacities([e.interpolation,o.interpolation,l.interpolation,c.interpolation]),s.render()}else{if(!this.asset||!this.asset.scene)return;const e=this.asset.scene.visible;this.asset.scene.visible=!0,a.Lotus.scene.renderer.setClearColor(0,1);const t=_.G.pmremGenerator.fromScene(this.asset.scene,0,3,2e3);a.Lotus.scene.renderer.setClearColor(a.Lotus.scene.renderer.backgroundColor,a.Lotus.scene.renderer.backgroundAlpha),this.asset.scene.visible=e,s.setTextures([t.texture,t.texture,t.texture,t.texture]),s.setOpacities([1,0,0,0]),s.render()}}destroy(){super.destroy(),this.destroyTexture(),this.destroyEnvironmentTextures()}}Object.defineProperty(E,"fields",{enumerable:!0,configurable:!0,writable:!0,value:x}),Object.defineProperty(E,"supports",{enumerable:!0,configurable:!0,writable:!0,value:["script"]});var w=n(4998),M=n(1089),S=n(1228);const C={animation:{defaultValue:"",filter:"lsd",type:"Asset"},debug:{defaultValue:!1,type:"Boolean"},envMapIntensity:{defaultValue:1,type:"Number"},id:{defaultValue:"",editable:!1,type:"String"},layer:{defaultValue:0,step:1,type:"Number"},scene:{defaultValue:"",filter:e=>!a.Lotus.scene.components.list.find(t=>t.data.file===e.id)&&("model"===e.type||void 0),type:"Asset"}};class I extends v.X{constructor({component:e,data:t}){super(),Object.defineProperty(this,"script",{enumerable:!0,configurable:!0,writable:!0,value:"EnvironmentKeyframe"}),Object.defineProperty(this,"component",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"data",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"element",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"timeline",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"pmrem",{enumerable:!0,configurable:!0,writable:!0,value:_.G.pmremGenerator}),Object.defineProperty(this,"pmremRenderTarget",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"isDebugging",{enumerable:!0,configurable:!0,writable:!0,value:!1}),(0,i.makeObservable)(this,{animations:i.computed,asset:i.computed,element:i.observable,envMap:i.computed,envMapIntensity:i.computed,pmremRenderTarget:i.observable}),this.component=e,this.data=t,this.autorun(this.onSceneUpdate.bind(this)),this.autorun(this.onDebugUpdate.bind(this)),this.reaction(()=>this.envMap,this.onDebugTexture.bind(this)),this.reaction(()=>this.animations,this.onRender.bind(this)),this.reaction(()=>this.element,this.onRender.bind(this)),this.autorun(()=>{const e=a.Lotus.scene.states.bindAll(this.onStateUpdate.bind(this));this.bindings.push(...e)})}get animations(){return g.d.getAsset(this.data.animation)}get asset(){return g.d.getAsset(this.data.scene)}get envMap(){var e;return null===(e=this.pmremRenderTarget)||void 0===e?void 0:e.texture}get envMapIntensity(){var e;return null!==(e=this.data.envMapIntensity)&&void 0!==e?e:1}onSceneUpdate(){var e,t,n;null===(t=null===(e=this.element)||void 0===e?void 0:e.removeFromParent)||void 0===t||t.call(e),this.element=null===(n=this.asset)||void 0===n?void 0:n.scene}onDebugTexture(){this.isDebugging||(this.isDebugging=!0,S.F.addTexture(this.envMap))}onDebugUpdate(){var e,t;this.data.debug&&this.element?a.Lotus.scene.add(this.element):null===(t=null===(e=this.element)||void 0===e?void 0:e.removeFromParent)||void 0===t||t.call(e)}onAnimationSet(e){if(this.animations){const t=this.animations.find(t=>t["@states"].find(t=>t.endsWith(e)));A.M.apply(t,this.element)}this.onRender()}onStateUpdate({category:e,newValue:t,oldValue:n}){var r;if(!t||!n)return;const i=w.i.generate({animations:this.animations,parent:this.element,states:{from:n,to:t}});this.destroyTimeline(),this.timeline=new M.T({keyframes:i,onStart:this.onTimelineStart.bind(this),onUpdate:this.onTimelineUpdate.bind(this),onComplete:this.onTimelineComplete.bind(this)}),null===(r=this.timeline)||void 0===r||r.play()}destroyTimeline(){var e;null===(e=this.timeline)||void 0===e||e.destroy()}onTimelineStart(){this.onRender()}onTimelineUpdate(){this.onRender()}onTimelineComplete(){this.onRender()}onRender(){this.element&&(a.Lotus.scene.renderer.setClearColor(0,1),this.pmremRenderTarget=this.pmrem.fromScene(this.element,0,a.Lotus.scene.camera.near,a.Lotus.scene.camera.far),a.Lotus.scene.renderer.setClearColor(a.Lotus.scene.renderer.backgroundColor,a.Lotus.scene.renderer.backgroundAlpha))}destroy(){super.destroy(),this.destroyTimeline()}}Object.defineProperty(I,"fields",{enumerable:!0,configurable:!0,writable:!0,value:C}),Object.defineProperty(I,"supports",{enumerable:!0,configurable:!0,writable:!0,value:["script"]});const T={asset:{defaultValue:"",filter:"lsd",type:"Asset"},id:{defaultValue:"",editable:!1,type:"String"}};class B extends s.XY{constructor({component:e,data:t}){var n,r;super(),Object.defineProperty(this,"script",{enumerable:!0,configurable:!0,writable:!0,value:"GLTFAnimation"}),Object.defineProperty(this,"component",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"data",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"animation",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),(0,i.makeObservable)(this,{asset:i.computed}),this.component=e,this.data=t,this.reaction(()=>{var e;return(null===(e=this.component)||void 0===e?void 0:e.asset)&&this.asset},this.onAssetUpdate.bind(this)),null===(r=null===(n=a.Lotus.scene)||void 0===n?void 0:n.eventPool)||void 0===r||r.register(this)}get asset(){return s.Assets.getAsset(this.data.asset)}onAssetUpdate(){this.destroyAnimation(),this.createAnimation()}createAnimation(){this.animation=new s.n0({animations:this.asset,gltf:this.component.asset})}destroyAnimation(){var e;null===(e=this.animation)||void 0===e||e.destroy()}onStateChange({newValue:e}){this.animation.pause(),this.animation.play(e)}destroy(){super.destroy(),this.destroyAnimation()}}Object.defineProperty(B,"fields",{enumerable:!0,configurable:!0,writable:!0,value:T}),Object.defineProperty(B,"supports",{enumerable:!0,configurable:!0,writable:!0,value:["file"]});var R=n(5094),P=n(8478);const L=2*Math.PI,O=.5/360*L,U=2/L*360;function D(e,t,n){return e+(t-e)*n}const F=2*Math.PI;function N(e,t,n){const r=function(e,t){return Math.min(Math.max(e-Math.floor(e/t)*t,0),t)}(t-e,F);return D(e,e+(r>.5*F?r-F:r),n)}class k extends P.h{constructor({component:e,data:t}){var n;super(),Object.defineProperty(this,"script",{enumerable:!0,configurable:!0,writable:!0,value:"CameraMixer"}),Object.defineProperty(this,"component",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"data",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"mix",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"_fovScale",{enumerable:!0,configurable:!0,writable:!0,value:1}),this.component=e,this.data=t,null===(n=this.component.element)||void 0===n||n.destroy(),this.component.element=this,a.Lotus.scene.eventPool.register(this),(0,i.makeObservable)(this,{ready:i.computed,mix:i.observable,camera:i.computed}),this.autorun(()=>{this.mix=isNaN(this.data.mix)?0:Math.min(Math.max(this.data.mix,0),1)})}get ready(){return this.data.cameraA&&this.data.cameraB}get camera(){return this.component.element}onLoop(){if(super.onLoop(),this.ready){const n=this.mix,i=[this.data.cameraA,this.data.cameraB].map(e=>a.Lotus.scene.getComponent(e).element),s=i.map(e=>e.getWorldPosition(new r.Vector3)).map(e=>(new r.Spherical).setFromVector3(e)),o=new r.Spherical(D(s[0].radius,s[1].radius,n),D(s[0].phi,s[1].phi,n),N(s[0].theta,s[1].theta,n));this.camera.position.setFromSpherical(o);const l=i.map(e=>e.getWorldQuaternion(new r.Quaternion)).map(e=>(new r.Euler).setFromQuaternion(e,"YXZ")),c=N(l[0].x,l[1].x,n),u=N(l[0].y,l[1].y,n),h=N(l[0].z,l[1].z,n);this.camera.rotation.set(c,u,h,"YXZ");const d=i.map(e=>e.getWorldScale(new r.Vector3));d[0].lerp(d[1],n),this.camera.scale.copy(d[0]),this.camera.near=D(i[0].near,i[1].near,n),this.camera.far=D(i[0].far,i[1].far,n),this.camera.zoom=D(i[0].zoom,i[1].zoom,n);const p=k.fovExp,f=Math.pow(Math.pow(i[0].fov,1/p)*(1-n)+Math.pow(i[1].fov,1/p)*n,p);this.camera.fov=(e=f,t=this._fovScale,Math.atan(Math.tan(e*O)*t)*U),this.camera.aspect=D(i[0].aspect,i[1].aspect,n),this.camera.updateProjectionMatrix()}var e,t}destroy(){this.component=null,this.data=null,super.destroy()}}Object.defineProperty(k,"supports",{enumerable:!0,configurable:!0,writable:!0,value:["camera"]}),Object.defineProperty(k,"fovExp",{enumerable:!0,configurable:!0,writable:!0,value:-2}),Object.defineProperty(k,"fields",{enumerable:!0,configurable:!0,writable:!0,value:{cameraA:{defaultValue:"",type:"Component",componentFilter:e=>e&&(0,u.KV)(e,a.CameraComponent)},cameraB:{defaultValue:"",type:"Component",componentFilter:e=>e&&(0,u.KV)(e,a.CameraComponent)},mix:{defaultValue:0,min:0,max:1,type:"Slider"}}});class Q extends v.X{constructor(e){super(),Object.defineProperty(this,"data",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"keyframes",{enumerable:!0,configurable:!0,writable:!0,value:[]}),Object.defineProperty(this,"timeline",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),this.data=e,this.createKeyframes(),this.createTimeline()}createKeyframes(){const e=w.i.generateTimelineKeyframes(this.data);this.keyframes.push(...e)}createTimeline(){this.timeline=new M.T({keyframes:this.keyframes})}destroyTimeline(){var e;null===(e=this.timeline)||void 0===e||e.destroy()}pause(){this.timeline.pause()}play(){return new Promise(e=>{const t=()=>{this.timeline.removeEventListener("complete",t),e()};this.timeline.addEventListener("complete",t),this.timeline.play()})}progress(e){this.timeline.progress=e}restart(){this.timeline.restart()}destroy(){super.destroy(),this.destroyTimeline()}}class G{constructor(){Object.defineProperty(this,"list",{enumerable:!0,configurable:!0,writable:!0,value:new Map}),(0,i.makeObservable)(this,{list:i.observable})}create({animations:e}){const t=new Map;return Object.entries(e).map(([e,n])=>{const r=new Q(n);t.set(e,r),this.list.set(e,r)}),t}}const V=new G;var z=n(7298);const H={id:{defaultValue:"",editable:!1,type:"String"},weightNames:{type:"String",defaultValue:""},defaultWeightName:{type:"String",defaultValue:""},stiffness:{defaultValue:50,min:1,max:1e3,type:"Slider"},damping:{defaultValue:.75,min:0,max:1,type:"Slider"}};class j extends s.XY{constructor({component:e,data:t}){var n,r;super(),Object.defineProperty(this,"script",{enumerable:!0,configurable:!0,writable:!0,value:"VariantWeights"}),Object.defineProperty(this,"component",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"data",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"interpolation",{enumerable:!0,configurable:!0,writable:!0,value:new a.InteractiveCameraInterpolation}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"namedWeights",{enumerable:!0,configurable:!0,writable:!0,value:[]}),Object.defineProperty(this,"springs",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"variantSpringConfig",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),this.component=e,this.name=this.component.name,this.data=Object.assign(Object.assign({},t),{stiffness:null!==(n=t.stiffness)&&void 0!==n?n:j.fields.stiffness.defaultValue,damping:null!==(r=t.damping)&&void 0!==r?r:j.fields.damping.defaultValue}),this.variantSpringConfig=new z.A({damping:this.data.damping,stiffness:this.data.stiffness}),(0,i.makeObservable)(this,{namedWeights:i.observable}),this.reaction(()=>({weightNames:this.data.weightNames,defaultWeightName:this.data.defaultWeightName}),({weightNames:e,defaultWeightName:t})=>{this.namedWeights.splice(0);const n=e.split(/, ?/g).map(e=>e.trim()).map((e,t)=>({label:e,weight:0===t?1:0}));(null==t?void 0:t.length)>0&&n.forEach(e=>{e.weight=e.label===t?1:0}),this.namedWeights.push(...n),this.springs=this._createVariantSpringValues()},{fireImmediately:!0}),this.autorun(()=>{const e=this.namedWeights.slice(0).sort((e,t)=>Math.abs(t.weight)-Math.abs(e.weight));["a","b","c","d"].forEach((t,n)=>{const r=this.interpolation.interpolations[t],i=e[n];r.label=i?i.label:"",r.interpolation=i?i.weight:0}),this.variantSpringConfig.stiffness=this.data.stiffness,this.variantSpringConfig.damping=this.data.damping}),a.Lotus.scene.eventPool.register(this)}_createVariantSpringValues(){return this.namedWeights.map((e,t)=>new z.q(this.variantSpringConfig,{initialValue:0==t?1:0}))}_setActiveVariantWeights(e){this.namedWeights.splice(0),this.namedWeights.push(...e)}setWeightTargets(e){this.springs&&(this.springs.forEach(e=>{e.targetValue=0}),e.forEach(({label:e,weight:t})=>{const n=this.namedWeights.findIndex(t=>t.label===e);this.springs[n].targetValue=t}))}snapValuesToTargets(){this.springs&&this.springs.forEach(e=>{e.value=e.targetValue,e.velocity=0})}onFrame({delta:e}){const t=this.namedWeights.map(({label:t},n)=>({label:t,weight:this.springs[n].update(e)}));this._setActiveVariantWeights(t),this.springs.some(e=>e.active)&&a.Lotus.tryRequestAnimationFrame()}destroy(){super.destroy()}}Object.defineProperty(j,"fields",{enumerable:!0,configurable:!0,writable:!0,value:H}),Object.defineProperty(j,"supports",{enumerable:!0,configurable:!0,writable:!0,value:["script"]});const W={id:{defaultValue:"",editable:!1,type:"String"},weightsA:{type:"Component",defaultValue:"",componentFilter:e=>{var t;return e&&[...null===(t=e.scripts)||void 0===t?void 0:t.values()].some(e=>{var t;return null===(t=e.interpolation)||void 0===t?void 0:t.interpolations})}},weightsB:{type:"Component",defaultValue:"",componentFilter:e=>{var t;return e&&[...null===(t=e.scripts)||void 0===t?void 0:t.values()].some(e=>{var t;return null===(t=e.interpolation)||void 0===t?void 0:t.interpolations})}},mix:{defaultValue:0,min:0,max:1,type:"Slider"},stiffness:{defaultValue:130,min:1,max:1e3,type:"Slider"},damping:{defaultValue:.75,min:0,max:1,type:"Slider"}};class q extends s.XY{constructor({component:e,data:t}){var n,r;super(),Object.defineProperty(this,"script",{enumerable:!0,configurable:!0,writable:!0,value:"VariantWeightsMixer"}),Object.defineProperty(this,"component",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"data",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"interpolation",{enumerable:!0,configurable:!0,writable:!0,value:new a.InteractiveCameraInterpolation}),Object.defineProperty(this,"weightsAData",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"weightsBData",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"mix",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"mixAnimated",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"mixSpringConfig",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"mixSpring",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),this.component=e,this.data=Object.assign(Object.assign({},t),{stiffness:null!==(n=t.stiffness)&&void 0!==n?n:q.fields.stiffness.defaultValue,damping:null!==(r=t.damping)&&void 0!==r?r:q.fields.damping.defaultValue}),this.name=this.component.name,(0,i.makeObservable)(this,{interpolation:i.observable,weightsAData:i.observable,weightsBData:i.observable,mix:i.observable,mixAnimated:i.observable}),this.autorun(()=>{this.mix=this.data.mix}),this.mixSpringConfig=new z.A({damping:this.data.damping,stiffness:this.data.stiffness}),this.mixSpring=new z.q(this.mixSpringConfig,{initialValue:this.mix}),this.mixAnimated=this.mix,this.autorun(()=>{this.mixSpring.targetValue=this.mix,this.mixSpringConfig.stiffness=this.data.stiffness,this.mixSpringConfig.damping=this.data.damping}),this.autorun(()=>{if(!a.Lotus.scene.ready)return;const e=a.Lotus.scene.getComponent(this.data.weightsA);this.weightsAData=e?[...null==e?void 0:e.scripts.values()].find(e=>{var t;return null===(t=e.interpolation)||void 0===t?void 0:t.interpolations}).interpolation:null;const t=a.Lotus.scene.getComponent(this.data.weightsB);this.weightsBData=t?[...null==t?void 0:t.scripts.values()].find(e=>{var t;return null===(t=e.interpolation)||void 0===t?void 0:t.interpolations}).interpolation:null}),this.autorun(()=>{if(!this.weightsAData||!this.weightsBData)return void(this.interpolation=new a.InteractiveCameraInterpolation);const e=[...Object.values(this.weightsAData.interpolations).map(({label:e,interpolation:t})=>({poseName:e,weight:t*(1-this.mixAnimated)})),...Object.values(this.weightsBData.interpolations).map(({label:e,interpolation:t})=>({poseName:e,weight:t*this.mixAnimated}))].sort((e,t)=>Math.abs(t.weight)-Math.abs(e.weight));this.interpolation.interpolations.a.label=e[0]?e[0].poseName:"",this.interpolation.interpolations.a.interpolation=e[0]?e[0].weight:0,this.interpolation.interpolations.b.label=e[1]?e[1].poseName:"",this.interpolation.interpolations.b.interpolation=e[1]?e[1].weight:0,this.interpolation.interpolations.c.label=e[2]?e[2].poseName:"",this.interpolation.interpolations.c.interpolation=e[2]?e[2].weight:0,this.interpolation.interpolations.d.label=e[3]?e[3].poseName:"",this.interpolation.interpolations.d.interpolation=e[3]?e[3].weight:0}),a.Lotus.scene.eventPool.register(this)}onFrame({delta:e}){this.mixAnimated=this.mixSpring.update(e),this.mixSpring.active&&a.Lotus.tryRequestAnimationFrame()}destroy(){super.destroy()}}Object.defineProperty(q,"fields",{enumerable:!0,configurable:!0,writable:!0,value:W}),Object.defineProperty(q,"supports",{enumerable:!0,configurable:!0,writable:!0,value:["script"]})},2501:()=>{"use strict";Promise.create=()=>{let e,t;const n=new Promise((n,r)=>{e=n,t=r});return n.resolve=e,n.reject=t,n}},571:(e,t,n)=>{"use strict";n.r(t),n.d(t,{ColorShader:()=>c,ColorShaderFragment:()=>s(),ColorShaderVertex:()=>l(),CrossFadeRenderTargetsFragment:()=>u,ScreenQuadFragment:()=>h,ScreenQuadVertex:()=>d});var r=n(4468),i=n(9614),a=n(4327),s=n.n(a),o=n(9774),l=n.n(o);class c extends i.ex{constructor({component:e,data:t,name:n="ColorShader"}){var i,a;const o={uColor:{value:null!==(i=t.uColor)&&void 0!==i?i:c.fields.uColor.defaultValue},uAlpha:{value:null!==(a=t.uAlpha)&&void 0!==a?a:c.fields.uAlpha.defaultValue}};super({component:e,data:t,fragmentShader:s(),name:n,uniforms:{uAlpha:{value:o.uAlpha.value},uColor:{value:new r.Color(...o.uColor.value)}},vertexShader:l()}),Object.defineProperty(this,"opacity",{get:function(){var e,t,n;return null!==(n=null===(t=null===(e=this.uniforms)||void 0===e?void 0:e.uAlpha)||void 0===t?void 0:t.value)&&void 0!==n?n:0},set:function(e){this.uniforms.uAlpha.value=e}}),this.transparent=!0}}Object.defineProperty(c,"fields",{enumerable:!0,configurable:!0,writable:!0,value:{uColor:{defaultValue:[0,0,0],type:"Vector"},uAlpha:{defaultValue:1,max:1,min:0,type:"Slider"}}});var u=n(2921),h=n(7883),d=n(5253)},1228:(e,t,n)=>{"use strict";n.d(t,{F:()=>c,w:()=>l});var r=n(4468),i=n(8949),a=n(3465),s=n(9614),o=n(3951);class l extends s.XY{constructor(){super(),Object.defineProperty(this,"scene",{enumerable:!0,configurable:!0,writable:!0,value:new r.Scene}),Object.defineProperty(this,"scale",{enumerable:!0,configurable:!0,writable:!0,value:.1}),Object.defineProperty(this,"isVisible",{enumerable:!0,configurable:!0,writable:!0,value:!1}),Object.defineProperty(this,"sprites",{enumerable:!0,configurable:!0,writable:!0,value:new Map}),Object.defineProperty(this,"textures",{enumerable:!0,configurable:!0,writable:!0,value:[]}),(0,i.makeObservable)(this,{isVisible:i.observable,textures:i.observable}),this.observe(this,"isVisible",this.onVisibilityUpdate.bind(this),!0),this.observe(this.textures,this.onTexturesUpdate.bind(this),!0)}get isInitialized(){return 0!==this.textures.length}onVisibilityUpdate(){this.scene.visible=this.isVisible,setTimeout(()=>{a.Lotus.tryRequestAnimationFrame()})}onTexturesUpdate(){[...this.sprites.values()].forEach(e=>{this.scene.remove(e)}),this.sprites.clear(),this.textures.forEach(e=>{const t=new r.Sprite(new r.SpriteMaterial({depthFunc:r.AlwaysDepth,depthTest:!0,depthWrite:!1,map:e,transparent:!1}));t.geometry.attributes.uv1=t.geometry.attributes.uv,t.geometry.attributes.uv2=t.geometry.attributes.uv,this.sprites.set(e.uuid,t),this.scene.add(t)})}addTexture(e){o.EnvironmentUtils.IS_PRODUCTION||this.textures.push(e)}removeTexture(e){const t=this.textures.find(t=>e.uuid===t.uuid);t&&o.ArrayUtils.remove(this.textures,t)}render(){const{windowHeight:e,windowWidth:t}=a.Lotus.scene.viewport,n=a.Lotus.renderer,i=n.getRenderTarget();Array.from(this.sprites.entries()).forEach(([n,i],a)=>{const s=Math.floor(1/this.scale),o=a%s,l=Math.floor(a/s),c=this.scale,u=this.scale*t/e,h=new r.Vector2(c,u),d=new r.Vector2(h.x,h.y).multiplyScalar(.5),p=h.x*o-.5+d.x,f=.5-d.y-l*h.y;i.position.set(p,f,0),i.scale.set(h.x,h.y,h.y)}),n.setRenderTarget(null),n.clearDepth(),n.render(this.scene,s.ez.screenCamera),n.setRenderTarget(i)}destroy(){super.destroy(),this.sprites.clear()}}const c=new l},6749:(e,t,n)=>{"use strict";n.d(t,{G:()=>_});var r=n(4293),i=n.n(r),a=n(8949),s=n(4468),o=n(728);class l extends s.DataTextureLoader{constructor(e){super(e),this.type=s.HalfFloatType,this.workerPool=new o.h;const t=c.toString(),n=[t.substring(t.indexOf("{")+1,t.lastIndexOf("}"))].join("\n");this.workerSourceURL=URL.createObjectURL(new Blob([n])),this.workerPool.setWorkerCreator(()=>new Worker(this.workerSourceURL))}async parse(e){const t=this.type;return(await this.workerPool.postMessage({type:t,buffer:e})).data}setDataType(e){return this.type=e,this}load(e,t,n,r){return super.load(e,function(e,n){e.colorSpace=n.colorSpace,e.minFilter=s.LinearFilter,e.magFilter=s.LinearFilter,e.generateMipmaps=!1,e.flipY=!1,t&&t(e,n)},n,r)}setWorkerLimit(e){return this.workerPool.setWorkerLimit(e),this}dispose(){for(let e=0;e>-t-14,r[256|e]=1024>>-t-14|32768,i[e]=-t-1,i[256|e]=-t-1):t<=15?(r[e]=t+15<<10,r[256|e]=t+15<<10|32768,i[e]=13,i[256|e]=13):t<128?(r[e]=31744,r[256|e]=64512,i[e]=24,i[256|e]=24):(r[e]=31744,r[256|e]=64512,i[e]=13,i[256|e]=13)}const a=new Uint32Array(2048),s=new Uint32Array(64),o=new Uint32Array(64);for(let e=1;e<1024;++e){let t=e<<13,n=0;for(;!(8388608&t);)t<<=1,n-=8388608;t&=-8388609,n+=947912704,a[e]=t|n}for(let e=1024;e<2048;++e)a[e]=939524096+(e-1024<<13);for(let e=1;e<31;++e)s[e]=e<<23;s[31]=1199570944,s[32]=2147483648;for(let e=33;e<63;++e)s[e]=2147483648+(e-32<<23);s[63]=3347054592;for(let e=1;e<64;++e)32!==e&&(o[e]=1024);return{floatView:t,uint32View:n,baseTable:r,shiftTable:i,mantissaTable:a,exponentTable:s,offsetTable:o}}(),t=function(t){var n;Math.abs(t)>65504&&console.warn("THREE.DataUtils.toHalfFloat(): Value out of range."),n=t,t=Math.max(-65504,Math.min(65504,n)),e.floatView[0]=t;const r=e.uint32View[0],i=r>>23&511;return e.baseTable[i]+((8388607&r)>>e.shiftTable[i])};var n=Uint8Array,r=Uint16Array,i=Uint32Array,a=new n([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,0,0,0]),s=new n([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]),o=function(e,t){for(var n=new r(31),a=0;a<31;++a)n[a]=t+=1<>>1|(21845&d)<<1;p=(61680&(p=(52428&p)>>>2|(13107&p)<<2))>>>4|(3855&p)<<4,h[d]=((65280&p)>>>8|(255&p)<<8)>>>1}var f=new n(288);for(d=0;d<144;++d)f[d]=8;for(d=144;d<256;++d)f[d]=9;for(d=256;d<280;++d)f[d]=7;for(d=280;d<288;++d)f[d]=8;var m=new n(32);for(d=0;d<32;++d)m[d]=5;const A=function(e,t){return function(e,t,l){var u=e.length;if(!u||l&&!l.l&&u<5)return t||new n(0);var d=!t||l,p=!l||l.i;l||(l={}),t||(t=new n(3*u));var A,g=function(e){var r=t.length;if(e>r){var i=new n(Math.max(2*r,e));i.set(t),t=i}},v=function(e,t,n){var r=t/8|0;return(e[r]|e[r+1]<<8)>>(7&t)&n},y=function(e,t,n){for(var i=e.length,a=0,s=new r(t);a>>c]=u}else for(o=new r(i),a=0;a>>15-e[a]);return o},b=function(e){for(var t=e[0],n=1;nt&&(t=e[n]);return t},_=function(e,t){var n=t/8|0;return(e[n]|e[n+1]<<8|e[n+2]<<16)>>(7&t)},x=y(f,9,1),E=y(m,5,1),w=new n([16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15]),M=o(s,0),S=M[0],C=(M[1],l.f||0),I=l.p||0,T=l.b||0,B=l.l,R=l.d,P=l.m,L=l.n,O=8*u;do{if(!B){l.f=C=v(e,I,1);var U=v(e,I+1,3);if(I+=3,!U){var D=e[(q=((A=I)/8|0)+(7&A&&1)+4)-4]|e[q-3]<<8,F=q+D;if(F>u){if(p)throw"unexpected EOF";break}d&&g(T+D),t.set(e.subarray(q,F),T),l.b=T+=D,l.p=I=8*F;continue}if(1==U)B=x,R=E,P=9,L=5;else{if(2!=U)throw"invalid block type";var N=v(e,I,31)+257,k=v(e,I+10,15)+4,Q=N+v(e,I+5,31)+1;I+=14;for(var G=new n(Q),V=new n(19),z=0;z>>4)<16)G[z++]=q;else{var Y=0,K=0;for(16==q?(K=3+v(e,I,3),I+=2,Y=G[z-1]):17==q?(K=3+v(e,I,7),I+=3):18==q&&(K=11+v(e,I,127),I+=7);K--;)G[z++]=Y}}var J=G.subarray(0,N),Z=G.subarray(N);P=b(J),L=b(Z),B=y(J,P,1),R=y(Z,L,1)}if(I>O){if(p)throw"unexpected EOF";break}}d&&g(T+131072);for(var $=(1<>>4;if((I+=15&Y)>O){if(p)throw"unexpected EOF";break}if(!Y)throw"invalid length/literal";if(ne<256)t[T++]=ne;else{if(256==ne){te=I,B=null;break}var re=ne-254;ne>264&&(re=v(e,I,(1<<(se=a[z=ne-257]))-1)+c[z],I+=se);var ie=R[_(e,I)&ee],ae=ie>>>4;if(!ie)throw"invalid distance";if(I+=15&ie,Z=S[ae],ae>3){var se=s[ae];Z+=_(e,I)&(1<O){if(p)throw"unexpected EOF";break}d&&g(T+131072);for(var oe=T+re;Te.length)&&(a=e.length);var s=new(e instanceof r?r:e instanceof i?i:n)(a-t);return s.set(e.subarray(t,a)),s}(t,0,T)}((function(e){if(8!=(15&e[0])||e[0]>>>4>7||(e[0]<<8|e[1])%31)throw"invalid zlib data";if(32&e[1])throw"invalid zlib data: preset dictionaries not supported"}(e),e.subarray(2,-4)),t)},g=1015,v=1016,y="srgb-linear";self.onmessage=function(e){const n=e.data.type,r=e.data.buffer,i=65536,a=14,s=65537,o=1<>n&(1<n)return!1;h(6,l,c,e,o);const s=u.l;if(l=u.c,c=u.lc,a[r]=s,63==s){if(o.value-t.value>n)throw new Error("Something wrong with hufUnpackEncTable");h(8,l,c,e,o);let s=u.l+6;if(l=u.c,c=u.lc,r+s>i+1)throw new Error("Something wrong with hufUnpackEncTable");for(;s--;)a[r++]=0;r--}else if(s>=59){let e=s-59+2;if(r+e>i+1)throw new Error("Something wrong with hufUnpackEncTable");for(;e--;)a[r++]=0;r--}}!function(e){for(let e=0;e<=58;++e)d[e]=0;for(let t=0;t0;--e){const n=t+d[e]>>1;d[e]=t,t=n}for(let t=0;t0&&(e[t]=n|d[n]++<<6)}}(a)}function f(e){return 63&e}function m(e){return e>>6}const b={c:0,lc:0};function _(e,t,n,r){e=e<<8|Y(n,r),t+=8,b.c=e,b.lc=t}const x={c:0,lc:0};function E(e,t,n,r,i,a,s,o,l){if(e==t){r<8&&(_(n,r,i,a),n=b.c,r=b.lc);let e=n>>(r-=8);if(e=new Uint8Array([e])[0],o.value+e>l)return!1;const t=s[o.value-1];for(;e-- >0;)s[o.value++]=t}else{if(!(o.value32767?t-65536:t}const S={a:0,b:0};function C(e,t){const n=M(e),r=M(t),i=n+(1&r)+(r>>1),a=i,s=i-r;S.a=a,S.b=s}function I(e,t){const n=w(e),r=w(t),i=n-(r>>1)&65535,a=r+i-32768&65535;S.a=a,S.b=i}function T(e,t,n,r,i,a,s){const o=s<16384,l=n>i?i:n;let c,u,h=1;for(;h<=l;)h<<=1;for(h>>=1,c=h,h>>=1;h>=1;){u=0;const s=u+a*(i-c),l=a*h,d=a*c,p=r*h,f=r*c;let m,A,g,v;for(;u<=s;u+=d){let i=u;const a=u+r*(n-c);for(;i<=a;i+=f){const n=i+p,r=i+l,a=r+p;o?(C(e[i+t],e[r+t]),m=S.a,g=S.b,C(e[n+t],e[a+t]),A=S.a,v=S.b,C(m,A),e[i+t]=S.a,e[n+t]=S.b,C(g,v),e[r+t]=S.a,e[a+t]=S.b):(I(e[i+t],e[r+t]),m=S.a,g=S.b,I(e[n+t],e[a+t]),A=S.a,v=S.b,I(m,A),e[i+t]=S.a,e[n+t]=S.b,I(g,v),e[r+t]=S.a,e[a+t]=S.b)}if(n&h){const n=i+l;o?C(e[i+t],e[n+t]):I(e[i+t],e[n+t]),m=S.a,e[n+t]=S.b,e[i+t]=m}}if(i&h){let i=u;const a=u+r*(n-c);for(;i<=a;i+=f){const n=i+p;o?C(e[i+t],e[n+t]):I(e[i+t],e[n+t]),m=S.a,e[n+t]=S.b,e[i+t]=m}}c=h,h>>=1}return u}function B(e,t,n,r,i,c){const u=n.value,h=X(t,n),d=X(t,n);n.value+=4;const A=X(t,n);if(n.value+=4,h<0||h>=s||d<0||d>=s)throw new Error("Something wrong with HUF_ENCSIZE");const g=new Array(s),v=new Array(o);if(function(e){for(let t=0;t8*(r-(n.value-u)))throw new Error("Something wrong with hufUncompress");!function(e,t,n,r){for(;t<=n;t++){const n=m(e[t]),i=f(e[t]);if(n>>i)throw new Error("Invalid table entry");if(i>a){const e=r[n>>i-a];if(e.len)throw new Error("Invalid table entry");if(e.lit++,e.p){const t=e.p;e.p=new Array(e.lit);for(let n=0;n0;s--){const s=r[(n<=a;){const i=t[h>>d-a&l];if(i.len)d-=i.len,E(i.lit,s,h,d,n,r,c,u,p),h=x.c,d=x.lc;else{if(!i.p)throw new Error("hufDecode issues");let t;for(t=0;t=a&&m(e[i.p[t]])==(h>>d-a&(1<>=g,d-=g;d>0;){const e=t[h<a||(t[i++]=e[n++],i>a));)t[i++]=e[r++]}function L(e){let t=e.byteLength;const n=new Array;let r=0;const i=new DataView(e);for(;t>0;){const e=i.getInt8(r++);if(e<0){const a=-e;t-=a+1;for(let e=0;e>8==255?i+=255&r:(n[i]=r,i++),e.value++}function U(e,t){t[0]=ee(e[0]),t[1]=ee(e[1]),t[2]=ee(e[5]),t[3]=ee(e[6]),t[4]=ee(e[14]),t[5]=ee(e[15]),t[6]=ee(e[27]),t[7]=ee(e[28]),t[8]=ee(e[2]),t[9]=ee(e[4]),t[10]=ee(e[7]),t[11]=ee(e[13]),t[12]=ee(e[16]),t[13]=ee(e[26]),t[14]=ee(e[29]),t[15]=ee(e[42]),t[16]=ee(e[3]),t[17]=ee(e[8]),t[18]=ee(e[12]),t[19]=ee(e[17]),t[20]=ee(e[25]),t[21]=ee(e[30]),t[22]=ee(e[41]),t[23]=ee(e[43]),t[24]=ee(e[9]),t[25]=ee(e[11]),t[26]=ee(e[18]),t[27]=ee(e[24]),t[28]=ee(e[31]),t[29]=ee(e[40]),t[30]=ee(e[44]),t[31]=ee(e[53]),t[32]=ee(e[10]),t[33]=ee(e[19]),t[34]=ee(e[23]),t[35]=ee(e[32]),t[36]=ee(e[39]),t[37]=ee(e[45]),t[38]=ee(e[52]),t[39]=ee(e[54]),t[40]=ee(e[20]),t[41]=ee(e[22]),t[42]=ee(e[33]),t[43]=ee(e[38]),t[44]=ee(e[46]),t[45]=ee(e[51]),t[46]=ee(e[55]),t[47]=ee(e[60]),t[48]=ee(e[21]),t[49]=ee(e[34]),t[50]=ee(e[37]),t[51]=ee(e[47]),t[52]=ee(e[50]),t[53]=ee(e[56]),t[54]=ee(e[59]),t[55]=ee(e[61]),t[56]=ee(e[35]),t[57]=ee(e[36]),t[58]=ee(e[48]),t[59]=ee(e[49]),t[60]=ee(e[57]),t[61]=ee(e[58]),t[62]=ee(e[62]),t[63]=ee(e[63])}function D(e){const t=.5*Math.cos(.7853975),n=.5*Math.cos(3.14159/16),r=.5*Math.cos(3.14159/8),i=.5*Math.cos(3*3.14159/16),a=.5*Math.cos(.981746875),s=.5*Math.cos(3*3.14159/8),o=.5*Math.cos(1.374445625),l=new Array(4),c=new Array(4),u=new Array(4),h=new Array(4);for(let d=0;d<8;++d){const p=8*d;l[0]=r*e[p+2],l[1]=s*e[p+2],l[2]=r*e[p+6],l[3]=s*e[p+6],c[0]=n*e[p+1]+i*e[p+3]+a*e[p+5]+o*e[p+7],c[1]=i*e[p+1]-o*e[p+3]-n*e[p+5]-a*e[p+7],c[2]=a*e[p+1]-n*e[p+3]+o*e[p+5]+i*e[p+7],c[3]=o*e[p+1]-a*e[p+3]+i*e[p+5]-n*e[p+7],u[0]=t*(e[p+0]+e[p+4]),u[3]=t*(e[p+0]-e[p+4]),u[1]=l[0]+l[3],u[2]=l[1]-l[2],h[0]=u[0]+u[1],h[1]=u[3]+u[2],h[2]=u[3]-u[2],h[3]=u[0]-u[1],e[p+0]=h[0]+c[0],e[p+1]=h[1]+c[1],e[p+2]=h[2]+c[2],e[p+3]=h[3]+c[3],e[p+4]=h[3]-c[3],e[p+5]=h[2]-c[2],e[p+6]=h[1]-c[1],e[p+7]=h[0]-c[0]}for(let d=0;d<8;++d)l[0]=r*e[16+d],l[1]=s*e[16+d],l[2]=r*e[48+d],l[3]=s*e[48+d],c[0]=n*e[8+d]+i*e[24+d]+a*e[40+d]+o*e[56+d],c[1]=i*e[8+d]-o*e[24+d]-n*e[40+d]-a*e[56+d],c[2]=a*e[8+d]-n*e[24+d]+o*e[40+d]+i*e[56+d],c[3]=o*e[8+d]-a*e[24+d]+i*e[40+d]-n*e[56+d],u[0]=t*(e[d]+e[32+d]),u[3]=t*(e[d]-e[32+d]),u[1]=l[0]+l[3],u[2]=l[1]-l[2],h[0]=u[0]+u[1],h[1]=u[3]+u[2],h[2]=u[3]-u[2],h[3]=u[0]-u[1],e[0+d]=h[0]+c[0],e[8+d]=h[1]+c[1],e[16+d]=h[2]+c[2],e[24+d]=h[3]+c[3],e[32+d]=h[3]-c[3],e[40+d]=h[2]-c[2],e[48+d]=h[1]-c[1],e[56+d]=h[0]-c[0]}function F(e){for(let t=0;t<64;++t){const n=e[0][t],r=e[1][t],i=e[2][t];e[0][t]=n+1.5747*i,e[1][t]=n-.1873*r-.4682*i,e[2][t]=n+1.8556*r}}function N(e,n,r){for(let i=0;i<64;++i)n[r+i]=t(k(e[i]))}function k(e){return e<=1?Math.sign(e)*Math.pow(Math.abs(e),2.2):Math.sign(e)*Math.pow(c,Math.abs(e)-1)}function Q(e){return new DataView(e.array.buffer,e.offset.value,e.size)}function G(e){const t=e.viewer.buffer.slice(e.offset.value,e.offset.value+e.size),n=new Uint8Array(L(t)),r=new Uint8Array(n.length);return R(n),P(n,r),new DataView(r.buffer)}function V(e){const t=e.array.slice(e.offset.value,e.offset.value+e.size),n=A(t),r=new Uint8Array(n.length);return R(n),P(n,r),new DataView(r.buffer)}function z(e){const t=e.viewer,n={value:e.offset.value},r=new Uint16Array(e.columns*e.lines*(e.inputChannels.length*e.type)),a=new Uint8Array(8192);let s=0;const o=new Array(e.inputChannels.length);for(let t=0,n=e.inputChannels.length;t=8192)throw new Error("Something is wrong with PIZ_COMPRESSION BITMAP_SIZE");if(l<=c)for(let e=0;e>3]&1<<(7&r))&&(t[n++]=r);const r=n-1;for(;n0;){const e=W(t.buffer,n),r=K(t,n),i=r>>2&3,o=new Int8Array([(r>>4)-1])[0],l=K(t,n);a.push({name:e,index:o,type:l,compression:i}),s-=e.length+3}const o=ue.channels,l=new Array(e.inputChannels.length);for(let t=0;t=0&&(c.idx[r.index]=t),e.offset=t)}}let u,h,d;if(i.acCompressedSize>0)switch(i.acCompression){case 0:u=new Uint16Array(i.totalAcUncompressedCount),B(e.array,t,n,i.acCompressedSize,u,i.totalAcUncompressedCount);break;case 1:const r=e.array.slice(n.value,n.value+i.totalAcUncompressedCount),a=A(r);u=new Uint16Array(a.buffer),n.value+=i.totalAcUncompressedCount}if(i.dcCompressedSize>0){const t={array:e.array,offset:n,size:i.dcCompressedSize};h=new Uint16Array(V(t).buffer),n.value+=i.dcCompressedSize}if(i.rleRawSize>0){const t=e.array.slice(n.value,n.value+i.rleCompressedSize);d=L(A(t).buffer),n.value+=i.rleCompressedSize}let p=0;const f=new Array(l.length);for(let e=0;e>10,n=1023&e;return(e>>15?-1:1)*(t?31===t?n?NaN:1/0:Math.pow(2,t-15)*(1+n/1024):n/1024*6103515625e-14)}function te(e,t){const n=e.getUint16(t.value,!0);return t.value+=2,n}function ne(e,t){return ee(te(e,t))}function re(e,t,n,r,i){return"string"===r||"stringvector"===r||"iccProfile"===r?function(e,t,n){const r=(new TextDecoder).decode(new Uint8Array(e).slice(t.value,t.value+n));return t.value=t.value+n,r}(t,n,i):"chlist"===r?function(e,t,n,r){const i=n.value,a=[];for(;n.value>4]}}(e,n):"lineOrder"===r?function(e,t){return["INCREASING_Y","DECREASING_Y","RANDOM_Y"][K(e,t)]}(e,n):"float"===r?Z(e,n):"v2f"===r?function(e,t){return[Z(e,t),Z(e,t)]}(e,n):"v3f"===r?function(e,t){return[Z(e,t),Z(e,t),Z(e,t)]}(e,n):"int"===r?q(e,n):"rational"===r?function(e,t){return[q(e,t),X(e,t)]}(e,n):"timecode"===r?function(e,t){return[X(e,t),X(e,t)]}(e,n):"preview"===r?(n.value+=i,"skipped"):void(n.value+=i)}function ie(e,t,n,r){const i=new Array(e);for(let a=0;ae.width?e.width-a:e.blockWidth,e.lines=s+e.blockHeight>e.height?e.height-s:e.blockHeight;const o=e.columns*e.totalBytes,l=e.sizee.height?e.height-i:e.blockHeight;const a=e.columns*e.totalBytes,s=e.size=e.height)continue;const l=t*a,c=(e.height-1-o)*e.outLineWidth;for(let t=0;te:a.scanOrder=e=>a.height-1-e,4==a.outputChannels?(a.format=1023,a.colorSpace=y):(a.format=1028,a.colorSpace=""),e.spec.singleTile){a.blockHeight=e.tiles.ySize,a.blockWidth=e.tiles.xSize;const n=function(e,t,n){let r=0;switch(e.levelMode){case"ONE_LEVEL":r=1;break;case"MIPMAP_LEVELS":r=function(e,t){const n=Math.log2(e);return"ROUND_DOWN"==t?Math.floor(n):Math.ceil(n)}(Math.max(t,n),e.roundingMode)+1;break;case"RIPMAP_LEVELS":throw new Error("THREE.EXRLoader: RIPMAP_LEVELS tiles currently unsupported.")}return r}(e.tiles,a.width,a.height),i=ie(n,a.width,e.tiles.xSize,e.tiles.roundingMode),s=ie(n,a.height,e.tiles.ySize,e.tiles.roundingMode);a.tileCount=i[0]*s[0];for(let e=0;enew Worker(this.workerSourceURL))}async parse(e){const t=this.type;return(await this.workerPool.postMessage({type:t,buffer:e})).data}setDataType(e){return this.type=e,this}load(e,t,n,r){return super.load(e,function(e,n){switch(e.type){case s.FloatType:case s.HalfFloatType:e.colorSpace=s.LinearSRGBColorSpace,e.minFilter=s.LinearFilter,e.magFilter=s.LinearFilter,e.generateMipmaps=!1,e.flipY=!0}t&&t(e,n)},n,r)}setWorkerLimit(e){return this.workerPool.setWorkerLimit(e),this}dispose(){for(let e=0;e>-t-14,r[256|e]=1024>>-t-14|32768,i[e]=-t-1,i[256|e]=-t-1):t<=15?(r[e]=t+15<<10,r[256|e]=t+15<<10|32768,i[e]=13,i[256|e]=13):t<128?(r[e]=31744,r[256|e]=64512,i[e]=24,i[256|e]=24):(r[e]=31744,r[256|e]=64512,i[e]=13,i[256|e]=13)}const a=new Uint32Array(2048),s=new Uint32Array(64),o=new Uint32Array(64);for(let e=1;e<1024;++e){let t=e<<13,n=0;for(;!(8388608&t);)t<<=1,n-=8388608;t&=-8388609,n+=947912704,a[e]=t|n}for(let e=1024;e<2048;++e)a[e]=939524096+(e-1024<<13);for(let e=1;e<31;++e)s[e]=e<<23;s[31]=1199570944,s[32]=2147483648;for(let e=33;e<63;++e)s[e]=2147483648+(e-32<<23);s[63]=3347054592;for(let e=1;e<64;++e)32!==e&&(o[e]=1024);return{floatView:t,uint32View:n,baseTable:r,shiftTable:i,mantissaTable:a,exponentTable:s,offsetTable:o}}(),t=function(t){var n;Math.abs(t)>65504&&console.warn("THREE.DataUtils.toHalfFloat(): Value out of range."),n=t,t=Math.max(-65504,Math.min(65504,n)),e.floatView[0]=t;const r=e.uint32View[0],i=r>>23&511;return e.baseTable[i]+((8388607&r)>>e.shiftTable[i])};self.onmessage=function(e){const n=e.data.type,r=e.data.buffer,i=function(e,t){switch(e){case 1:throw new Error("THREE.RGBELoader: Read Error: "+(t||""));case 2:throw new Error("THREE.RGBELoader: Write Error: "+(t||""));case 3:throw new Error("THREE.RGBELoader: Bad File Format: "+(t||""));default:throw new Error("THREE.RGBELoader: Memory Error: "+(t||""))}},a=function(e,t,n){t=t||1024;let r=e.pos,i=-1,a=0,s="",o=String.fromCharCode.apply(null,new Uint16Array(e.subarray(r,r+128)));for(;0>(i=o.indexOf("\n"))&&a=e.byteLength||!(l=a(e)))&&i(1,"no header found"),(c=l.match(/^#\?(\S+)/))||i(3,"bad initial token"),o.valid|=1,o.programtype=c[1],o.string+=l+"\n";l=a(e),!1!==l;)if(o.string+=l+"\n","#"!==l.charAt(0)){if((c=l.match(t))&&(o.gamma=parseFloat(c[1])),(c=l.match(n))&&(o.exposure=parseFloat(c[1])),(c=l.match(r))&&(o.valid|=2,o.format=c[1]),(c=l.match(s))&&(o.valid|=4,o.height=parseInt(c[1],10),o.width=parseInt(c[2],10)),2&o.valid&&4&o.valid)break}else o.comments+=l+"\n";return 2&o.valid||i(3,"missing format specifier"),4&o.valid||i(3,"missing image size specifier"),o}(l),u=c.width,h=c.height,d=function(e,t,n){const r=t;if(r<8||r>32767||2!==e[0]||2!==e[1]||128&e[2])return new Uint8Array(e);r!==(e[2]<<8|e[3])&&i(3,"wrong scanline width");const a=new Uint8Array(4*t*n);a.length||i(4,"unable to allocate buffer space");let s=0,o=0;const l=4*r,c=new Uint8Array(4),u=new Uint8Array(l);let h=n;for(;h>0&&oe.byteLength&&i(1),c[0]=e[o++],c[1]=e[o++],c[2]=e[o++],c[3]=e[o++],2==c[0]&&2==c[1]&&(c[2]<<8|c[3])==r||i(3,"bad rgbe scanline format");let t,n=0;for(;n128;if(r&&(t-=128),(0===t||n+t>l)&&i(3,"bad scanline data"),r){const r=e[o++];for(let e=0;e{n.load(e,n=>{t&&(Object.keys(t).forEach(e=>{const r=t[e];i()(r)||(n[e]=r)}),n.needsUpdate=!0),p.Lotus.tasks.add(()=>{var t;const r=`Renderer.initTexture - ${e}`,i=`${r} - Start`,a=`${r} - End`;performance.mark(i),null===(t=p.Lotus.scene.renderer)||void 0===t||t.initTexture(n),performance.mark(a),performance.measure(r,i,a)},"texture"),this.onComplete({asset:n,options:t,src:e}),r(n)},n=>{this.onProgress({event:n,options:t,src:e})},n=>{this.onError({event:n,options:t,src:e}),r(null)})})}onError({event:e,options:t,src:n}){var r;null===(r=null==t?void 0:t.onError)||void 0===r||r.call(t,n,e),p.Lotus.dispatchEvent({message:`There was an error loading the asset '${n}'.`,type:"error"})}onProgress({event:e,options:t,src:n}){var r;null===(r=null==t?void 0:t.onProgress)||void 0===r||r.call(t,n,e)}onComplete({asset:e,options:t,src:n}){var r;e.needsUpdate=!0,null===(r=null==t?void 0:t.onLoad)||void 0===r||r.call(t,n,e)}}const _=new b},4082:(e,t,n)=>{"use strict";n.d(t,{Gq:()=>ge,Ie:()=>ve,L:()=>l,F9:()=>ye.F,w8:()=>ye.w,GA:()=>be.G});var r=n(3061),i=n.n(r),a=n(8949),s=n(9614),o=n(3465);class l extends s.XY{constructor(){super(),Object.defineProperty(this,"isActive",{enumerable:!0,configurable:!0,writable:!0,value:!1}),Object.defineProperty(this,"socket",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"socketTimeout",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"reloadTimeout",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"checkFile",{enumerable:!0,configurable:!0,writable:!0,value:(e,t)=>e.includes(t)}),Object.defineProperty(this,"checkGLTFTextures",{enumerable:!0,configurable:!0,writable:!0,value:(e,t)=>function(e,t,n,r){return new(n||(n=Promise))(function(i,a){function s(e){try{l(r.next(e))}catch(e){a(e)}}function o(e){try{l(r.throw(e))}catch(e){a(e)}}function l(e){var t;e.done?i(e.value):(t=e.value,t instanceof n?t:new n(function(e){e(t)})).then(s,o)}l((r=r.apply(e,t||[])).next())})}(this,void 0,void 0,function*(){var n;if(!e)return;const r=null===(n=e.parser)||void 0===n?void 0:n.textureCache;if(!r)return;const a=i()(t.split("/")),s=Object.values(r).map(e=>e);(yield Promise.all(s)).filter(e=>a.includes(e.name)).forEach(e=>this.refreshTexture(e,t))})}),(0,a.makeObservable)(this,{isActive:a.observable}),this.createSocket()}createSocket(){var e;null===(e=this.socket)||void 0===e||e.close(),this.socket=new WebSocket("ws://localhost:4041"),this.socket.onmessage=this.onSocketMessage}onSocketMessage({data:e}){var t;if(!(null===(t=o.Lotus.scene)||void 0===t?void 0:t.rendered))return;const n=JSON.parse(e);"uploads"===n.event&&(this.isActive=!0,n.path.endsWith("lsd")&&(s.rW.reload(n),s.FK.reload(n),s.tr.reload(n)),o.Lotus.scene.eventPool.trigger({name:"reload"},n),clearTimeout(this.reloadTimeout),this.reloadTimeout=setTimeout(()=>{this.isActive=!1,o.Lotus.tryRequestAnimationFrame()},1e3))}refreshTexture(e,t){const n=document.createElement("img");e.source.data.src?n.src=`${e.source.data.src}?${+new Date}`:n.src=`/assets/${i()(t.split("/assets/"))}?${+new Date}`,n.onload=()=>{e.image=n,e.needsUpdate=!0,o.Lotus.tryRequestAnimationFrame()}}}var c=n(4468);function u(e,t){if(t===c.TrianglesDrawMode)return console.warn("THREE.BufferGeometryUtils.toTrianglesDrawMode(): Geometry already defined as triangles."),e;if(t===c.TriangleFanDrawMode||t===c.TriangleStripDrawMode){let n=e.getIndex();if(null===n){const t=[],r=e.getAttribute("position");if(void 0===r)return console.error("THREE.BufferGeometryUtils.toTrianglesDrawMode(): Undefined position attribute. Processing not possible."),e;for(let e=0;e=2.0 are supported.")));const l=new ae(i,{path:t||this.resourcePath||"",crossOrigin:this.crossOrigin,requestHeader:this.requestHeader,manager:this.manager,ktx2Loader:this.ktx2Loader,meshoptDecoder:this.meshoptDecoder,renderer:this.renderer,textureLoader:this.textureLoader,textureTasks:this.textureTasks});l.fileLoader.setRequestHeader(this.requestHeader);for(let e=0;e=0&&void 0===s[t]&&console.warn('THREE.GLTFLoader: Unknown extension "'+t+'".')}}l.setExtensions(a),l.setPlugins(s),l.parse(n,r)}parseAsync(e,t){const n=this;return new Promise(function(r,i){n.parse(e,t,r,i)})}}function d(){let e={};return{get:function(t){return e[t]},add:function(t,n){e[t]=n},remove:function(t){delete e[t]},removeAll:function(){e={}}}}const p={KHR_BINARY_GLTF:"KHR_binary_glTF",KHR_DRACO_MESH_COMPRESSION:"KHR_draco_mesh_compression",KHR_LIGHTS_PUNCTUAL:"KHR_lights_punctual",KHR_MATERIALS_CLEARCOAT:"KHR_materials_clearcoat",KHR_MATERIALS_DISPERSION:"KHR_materials_dispersion",KHR_MATERIALS_IOR:"KHR_materials_ior",KHR_MATERIALS_SHEEN:"KHR_materials_sheen",KHR_MATERIALS_SPECULAR:"KHR_materials_specular",KHR_MATERIALS_TRANSMISSION:"KHR_materials_transmission",KHR_MATERIALS_IRIDESCENCE:"KHR_materials_iridescence",KHR_MATERIALS_ANISOTROPY:"KHR_materials_anisotropy",KHR_MATERIALS_UNLIT:"KHR_materials_unlit",KHR_MATERIALS_VOLUME:"KHR_materials_volume",KHR_TEXTURE_BASISU:"KHR_texture_basisu",KHR_TEXTURE_TRANSFORM:"KHR_texture_transform",KHR_MESH_QUANTIZATION:"KHR_mesh_quantization",KHR_MATERIALS_EMISSIVE_STRENGTH:"KHR_materials_emissive_strength",EXT_MATERIALS_BUMP:"EXT_materials_bump",EXT_TEXTURE_WEBP:"EXT_texture_webp",EXT_TEXTURE_AVIF:"EXT_texture_avif",EXT_MESHOPT_COMPRESSION:"EXT_meshopt_compression",EXT_MESH_GPU_INSTANCING:"EXT_mesh_gpu_instancing",LTS_MATERIALS_OPACITY_MAP:"LTS_materials_opacity_map",LTS_RENDERER_PROPERTIES:"LTS_renderer_properties",LTS_MATERIALS_EXTENDED_TRANSMISSION:"LTS_materials_extended_transmission",LTS_MATERIALS_LIGHTMAP:"LTS_materials_lightmap",LTS_NODES_RENDER_ORDER:"LTS_nodes_render_order",LTS_SAMPLERS_ANISO_FILTERING:"LTS_samplers_aniso_filtering"};class f{constructor(e){this.parser=e,this.name=p.KHR_LIGHTS_PUNCTUAL,this.cache={refs:{},uses:{}}}_markDefs(){const e=this.parser,t=this.parser.json.nodes||[];for(let n=0,r=t.length;n=0)throw new Error("THREE.GLTFLoader: setKTX2Loader must be called before loading KTX2 textures");return null}return t.loadTextureImage(e,i.source,a)}}class I{constructor(e){this.parser=e,this.name=p.EXT_TEXTURE_WEBP,this.isSupported=null}loadTexture(e){const t=this.name,n=this.parser,r=n.json,i=r.textures[e];if(!i.extensions||!i.extensions[t])return null;const a=i.extensions[t],s=r.images[a.source];let o=n.textureLoader;if(s.uri){const e=n.options.manager.getHandler(s.uri);null!==e&&(o=e)}return this.detectSupport().then(function(i){if(i)return n.loadTextureImage(e,a.source,o);if(r.extensionsRequired&&r.extensionsRequired.indexOf(t)>=0)throw new Error("THREE.GLTFLoader: WebP required by asset but unsupported.");return n.loadTexture(e)})}detectSupport(){return this.isSupported||(this.isSupported=new Promise(function(e){const t=new Image;t.src="data:image/webp;base64,UklGRiIAAABXRUJQVlA4IBYAAAAwAQCdASoBAAEADsD+JaQAA3AAAAAA",t.onload=t.onerror=function(){e(1===t.height)}})),this.isSupported}}class T{constructor(e){this.parser=e,this.name=p.EXT_TEXTURE_AVIF,this.isSupported=null}loadTexture(e){const t=this.name,n=this.parser,r=n.json,i=r.textures[e];if(!i.extensions||!i.extensions[t])return null;const a=i.extensions[t],s=r.images[a.source];let o=n.textureLoader;if(s.uri){const e=n.options.manager.getHandler(s.uri);null!==e&&(o=e)}return this.detectSupport().then(function(i){if(i)return n.loadTextureImage(e,a.source,o);if(r.extensionsRequired&&r.extensionsRequired.indexOf(t)>=0)throw new Error("THREE.GLTFLoader: AVIF required by asset but unsupported.");return n.loadTexture(e)})}detectSupport(){return this.isSupported||(this.isSupported=new Promise(function(e){const t=new Image;t.src="data:image/avif;base64,AAAAIGZ0eXBhdmlmAAAAAGF2aWZtaWYxbWlhZk1BMUIAAADybWV0YQAAAAAAAAAoaGRscgAAAAAAAAAAcGljdAAAAAAAAAAAAAAAAGxpYmF2aWYAAAAADnBpdG0AAAAAAAEAAAAeaWxvYwAAAABEAAABAAEAAAABAAABGgAAABcAAAAoaWluZgAAAAAAAQAAABppbmZlAgAAAAABAABhdjAxQ29sb3IAAAAAamlwcnAAAABLaXBjbwAAABRpc3BlAAAAAAAAAAEAAAABAAAAEHBpeGkAAAAAAwgICAAAAAxhdjFDgQAMAAAAABNjb2xybmNseAACAAIABoAAAAAXaXBtYQAAAAAAAAABAAEEAQKDBAAAAB9tZGF0EgAKCBgABogQEDQgMgkQAAAAB8dSLfI=",t.onload=t.onerror=function(){e(1===t.height)}})),this.isSupported}}class B{constructor(e){this.name=p.EXT_MESHOPT_COMPRESSION,this.parser=e}loadBufferView(e){const t=this.parser.json,n=t.bufferViews[e];if(n.extensions&&n.extensions[this.name]){const e=n.extensions[this.name],r=this.parser.getDependency("buffer",e.buffer),i=this.parser.options.meshoptDecoder;if(!i||!i.supported){if(t.extensionsRequired&&t.extensionsRequired.indexOf(this.name)>=0)throw new Error("THREE.GLTFLoader: setMeshoptDecoder must be called before loading compressed files");return null}return r.then(function(t){const n=e.byteOffset||0,r=e.byteLength||0,a=e.count,s=e.byteStride,o=new Uint8Array(t,n,r);return i.decodeGltfBufferAsync?i.decodeGltfBufferAsync(a,s,o,e.mode,e.filter).then(function(e){return e.buffer}):i.ready.then(function(){const t=new ArrayBuffer(a*s);return i.decodeGltfBuffer(new Uint8Array(t),a,s,o,e.mode,e.filter),t})})}return null}}class R{constructor(e){this.name=p.EXT_MESH_GPU_INSTANCING,this.parser=e}createNodeMesh(e){const t=this.parser.json,n=t.nodes[e];if(!n.extensions||!n.extensions[this.name]||void 0===n.mesh)return null;const r=t.meshes[n.mesh];for(const e of r.primitives)if(e.mode!==H.TRIANGLES&&e.mode!==H.TRIANGLE_STRIP&&e.mode!==H.TRIANGLE_FAN&&void 0!==e.mode)return null;const i=n.extensions[this.name].attributes,a=[],s={};for(const e in i)a.push(this.parser.getDependency("accessor",i[e]).then(t=>(s[e]=t,s[e])));return a.length<1?null:(a.push(this.parser.createNodeMesh(e)),Promise.all(a).then(e=>{const t=e.pop(),n=t.isGroup?t.children:[t],r=e[0].count,i=[];for(const e of n){const t=new c.Matrix4,n=new c.Vector3,a=new c.Quaternion,o=new c.Vector3(1,1,1),l=new c.InstancedMesh(e.geometry,e.material,r);for(let e=0;e-1,i=r?navigator.userAgent.match(/Firefox\/([0-9]+)\./)[1]:-1),this.options.textureLoader){const e=this.options.textureLoader;this.textureLoader=new e}else"undefined"==typeof createImageBitmap||n||r&&i<98?this.textureLoader=new c.TextureLoader(this.options.manager):this.textureLoader=new c.ImageBitmapLoader(this.options.manager);this.textureLoader.setCrossOrigin(this.options.crossOrigin),this.textureLoader.setRequestHeader(this.options.requestHeader),this.fileLoader=new c.FileLoader(this.options.manager),this.fileLoader.setResponseType("arraybuffer"),"use-credentials"===this.options.crossOrigin&&this.fileLoader.setWithCredentials(!0)}setExtensions(e){this.extensions=e}setPlugins(e){this.plugins=e}parse(e,t){const n=this,r=this.json,i=this.extensions;this.cache.removeAll(),this.nodeCache={},this._invokeAll(function(e){return e._markDefs&&e._markDefs()}),Promise.all(this._invokeAll(function(e){return e.beforeRoot&&e.beforeRoot()})).then(function(){return Promise.all([n.getDependencies("scene"),n.getDependencies("animation"),n.getDependencies("camera")])}).then(function(t){const a={scene:t[0][r.scene||0],scenes:t[0],animations:t[1],cameras:t[2],asset:r.asset,parser:n,userData:{}};return Z(i,a,r),$(a,r),Promise.all(n._invokeAll(function(e){return e.afterRoot&&e.afterRoot(a)})).then(function(){for(const e of a.scenes)e.updateMatrixWorld();e(a)})}).catch(t)}_markDefs(){const e=this.json.nodes||[],t=this.json.skins||[],n=this.json.meshes||[];for(let n=0,r=t.length;n{const n=this.associations.get(e);null!=n&&this.associations.set(t,n);for(const[n,r]of e.children.entries())i(r,t.children[n])};return i(n,r),r.name+="_instance_"+e.uses[t]++,r}_invokeOne(e){const t=Object.values(this.plugins);t.push(this);for(let n=0;n=2&&f.setY(t,h[e*a+1]),a>=3&&f.setZ(t,h[e*a+2]),a>=4&&f.setW(t,h[e*a+3]),a>=5)throw new Error("THREE.GLTFLoader: Unsupported itemSize in sparse BufferAttribute.")}}return f})}loadTexture(e){const t=this.json,n=this.options,r=t.textures[e].source,i=t.images[r];let a=this.textureLoader;if(i.uri){const e=n.manager.getHandler(i.uri);null!==e&&(a=e)}return this.loadTextureImage(e,r,a)}loadTextureImage(e,t,n){const r=this,i=this.json,a=i.textures[e],s=i.images[t],o=(s.uri||s.bufferView)+":"+a.sampler;if(this.textureCache[o])return this.textureCache[o];const l=this.loadImageSource(t,n).then(function(t){t.flipY=!1,t.name=a.name||s.name||"",""===t.name&&"string"==typeof s.uri&&!1===s.uri.startsWith("data:image/")&&(t.name=s.uri);const n=(i.samplers||{})[a.sampler]||{};if(t.magFilter=W[n.magFilter]||c.LinearFilter,t.minFilter=W[n.minFilter]||c.LinearMipmapLinearFilter,t.wrapS=q[n.wrapS]||c.RepeatWrapping,t.wrapT=q[n.wrapT]||c.RepeatWrapping,n.extensions&&n.extensions[p.LTS_SAMPLERS_ANISO_FILTERING]){const e=n.extensions[p.LTS_SAMPLERS_ANISO_FILTERING].anisotropy;t.anisotropy=e}return r.associations.set(t,{textures:e}),t}).catch(function(){return null});return this.textureCache[o]=l,l}loadImageSource(e,t){const n=this.json,r=this.options;if(void 0!==this.sourceCache[e])return this.sourceCache[e].then(e=>e.clone());const i=n.images[e],a=self.URL||self.webkitURL;let s=i.uri||"",o=!1;if(void 0!==i.bufferView)s=this.getDependency("bufferView",i.bufferView).then(function(e){o=!0;const t=new Blob([e],{type:i.mimeType});return s=a.createObjectURL(t),s});else if(void 0===i.uri)throw new Error("THREE.GLTFLoader: Image "+e+" is missing URI and bufferView");const l=Promise.resolve(s).then(function(e){return new Promise(function(n,i){let a=n;!0===t.isImageBitmapLoader&&(a=function(e){const t=new c.Texture(e);t.needsUpdate=!0,n(t)}),t.load(c.LoaderUtils.resolveURL(e,r.path),a,void 0,i)})}).then(function(e){var t;return!0===o&&a.revokeObjectURL(s),$(e,i),e.userData.mimeType=i.mimeType||((t=i.uri).search(/\.jpe?g($|\?)/i)>0||0===t.search(/^data\:image\/jpeg/)?"image/jpeg":t.search(/\.webp($|\?)/i)>0||0===t.search(/^data\:image\/webp/)?"image/webp":"image/png"),e}).catch(function(e){throw console.error("THREE.GLTFLoader: Couldn't load texture",s),e});return this.sourceCache[e]=l,l}assignTexture(e,t,n,r){const i=this;return this.textureIndex+=1,(()=>this.options.textureTasks?new Promise(e=>{const t=this.getDependency("texture",n.index);this.options.textureTasks.add(()=>{this.options.renderer.initTexture(t),e(t)},"texture")}):this.getDependency("texture",n.index))().then(function(a){if(!a)return null;if(void 0!==n.texCoord&&n.texCoord>0&&((a=a.clone()).channel=n.texCoord),i.extensions[p.KHR_TEXTURE_TRANSFORM]){const e=void 0!==n.extensions?n.extensions[p.KHR_TEXTURE_TRANSFORM]:void 0;if(e){const t=i.associations.get(a);a=i.extensions[p.KHR_TEXTURE_TRANSFORM].extendTexture(a,e),i.associations.set(a,t)}}return void 0!==r&&(a.colorSpace=r),e[t]=a,a})}assignFinalMaterial(e){const t=e.geometry;let n=e.material;const r=void 0===t.attributes.tangent,i=void 0!==t.attributes.color,a=void 0===t.attributes.normal;if(e.isPoints){const e="PointsMaterial:"+n.uuid;let t=this.cache.get(e);t||(t=new c.PointsMaterial,c.Material.prototype.copy.call(t,n),t.color.copy(n.color),t.map=n.map,t.sizeAttenuation=!1,this.cache.add(e,t)),n=t}else if(e.isLine){const e="LineBasicMaterial:"+n.uuid;let t=this.cache.get(e);t||(t=new c.LineBasicMaterial,c.Material.prototype.copy.call(t,n),t.color.copy(n.color),t.map=n.map,this.cache.add(e,t)),n=t}if(r||i||a){let e="ClonedMaterial:"+n.uuid+":";r&&(e+="derivative-tangents:"),i&&(e+="vertex-colors:"),a&&(e+="flat-shading:");let t=this.cache.get(e);t||(t=n.clone(),i&&(t.vertexColors=!0),a&&(t.flatShading=!0),r&&(t.normalScale&&(t.normalScale.y*=-1),t.clearcoatNormalScale&&(t.clearcoatNormalScale.y*=-1)),this.cache.add(e,t),this.associations.set(t,this.associations.get(n))),n=t}e.material=n}getMaterialType(){return c.MeshStandardMaterial}loadMaterial(e){const t=this,n=this.json,r=this.extensions,i=n.materials[e];let a;const s={},o=[];if((i.extensions||{})[p.KHR_MATERIALS_UNLIT]){const e=r[p.KHR_MATERIALS_UNLIT];a=e.getMaterialType(),o.push(e.extendParams(s,i,t))}else{const n=i.pbrMetallicRoughness||{};if(s.color=new c.Color(1,1,1),s.opacity=1,Array.isArray(n.baseColorFactor)){const e=n.baseColorFactor;s.color.setRGB(e[0],e[1],e[2],c.LinearSRGBColorSpace),s.opacity=e[3]}void 0!==n.baseColorTexture&&o.push(t.assignTexture(s,"map",n.baseColorTexture,c.SRGBColorSpace)),s.metalness=void 0!==n.metallicFactor?n.metallicFactor:1,s.roughness=void 0!==n.roughnessFactor?n.roughnessFactor:1,void 0!==n.metallicRoughnessTexture&&(o.push(t.assignTexture(s,"metalnessMap",n.metallicRoughnessTexture)),o.push(t.assignTexture(s,"roughnessMap",n.metallicRoughnessTexture))),a=this._invokeOne(function(t){return t.getMaterialType&&t.getMaterialType(e)}),o.push(Promise.all(this._invokeAll(function(t){return t.extendMaterialParams&&t.extendMaterialParams(e,s)})))}!0===i.doubleSided&&(s.side=c.DoubleSide);const l=i.alphaMode||"OPAQUE";if("BLEND"===l?(s.transparent=!0,s.depthWrite=!1):(s.transparent=!1,"MASK"===l&&(s.alphaTest=void 0!==i.alphaCutoff?i.alphaCutoff:.5)),void 0!==i.normalTexture&&a!==c.MeshBasicMaterial&&(o.push(t.assignTexture(s,"normalMap",i.normalTexture)),s.normalScale=new c.Vector2(1,1),void 0!==i.normalTexture.scale)){const e=i.normalTexture.scale;s.normalScale.set(e,e)}if(void 0!==i.occlusionTexture&&a!==c.MeshBasicMaterial&&(o.push(t.assignTexture(s,"aoMap",i.occlusionTexture)),void 0!==i.occlusionTexture.strength&&(s.aoMapIntensity=i.occlusionTexture.strength)),void 0!==i.emissiveFactor&&a!==c.MeshBasicMaterial){const e=i.emissiveFactor;s.emissive=(new c.Color).setRGB(e[0],e[1],e[2],c.LinearSRGBColorSpace)}return void 0!==i.emissiveTexture&&a!==c.MeshBasicMaterial&&o.push(t.assignTexture(s,"emissiveMap",i.emissiveTexture,c.SRGBColorSpace)),Promise.all(o).then(function(){const n=new a(s);return i.name&&(n.name=i.name),$(n,i),t.associations.set(n,{materials:e}),i.extensions&&Z(r,n,i),n})}createUniqueName(e){const t=c.PropertyBinding.sanitizeNodeName(e||"");return t in this.nodeNamesUsed?t+"_"+ ++this.nodeNamesUsed[t]:(this.nodeNamesUsed[t]=0,t)}loadGeometries(e){const t=this,n=this.extensions,r=this.primitiveCache;function i(e){return n[p.KHR_DRACO_MESH_COMPRESSION].decodePrimitive(e,t).then(function(n){return se(n,e,t)})}const a=[];for(let n=0,s=e.length;n0&&ee(p,i),p.name=t.createUniqueName(i.name||"mesh_"+e),$(p,i),d.extensions&&Z(r,p,d),t.assignFinalMaterial(p),l.push(p)}for(let n=0,r=l.length;n1?new c.Group:1===t.length?t[0]:new c.Object3D,s!==t[0])for(let e=0,n=t.length;e{const t=new Map;for(const[e,n]of r.associations)(e instanceof c.Material||e instanceof c.Texture)&&t.set(e,n);return e.traverse(e=>{const n=r.associations.get(e);null!=n&&t.set(e,n)}),t})(i),i})}_createAnimationTracks(e,t,n,r,i){const a=[],s=e.name?e.name:e.uuid,o=[];let l;switch(K[i.path]===K.weights?e.traverse(function(e){e.morphTargetInfluences&&o.push(e.name?e.name:e.uuid)}):o.push(s),K[i.path]){case K.weights:l=c.NumberKeyframeTrack;break;case K.rotation:l=c.QuaternionKeyframeTrack;break;case K.position:case K.scale:l=c.VectorKeyframeTrack;break;default:l=1===n.itemSize?c.NumberKeyframeTrack:c.VectorKeyframeTrack}const u=void 0!==r.interpolation?J[r.interpolation]:c.InterpolateLinear,h=this._getArrayFromAccessor(n);for(let e=0,n=o.length;e{this.parse(e,t,r)},n,r)}parse(e,t,n=()=>{}){this.decodeDracoFile(e,t,null,null,c.SRGBColorSpace,n).catch(n)}decodeDracoFile(e,t,n,r,i=c.LinearSRGBColorSpace,a=()=>{}){const s={attributeIDs:n||this.defaultAttributeIDs,attributeTypes:r||this.defaultAttributeTypes,useUniqueIDs:!!n,vertexColorSpace:i};return this.decodeGeometry(e,s).then(t).catch(a)}decodeGeometry(e,t){const n=JSON.stringify(t);if(oe.has(e)){const t=oe.get(e);if(t.key===n)return t.promise;if(0===e.byteLength)throw new Error("THREE.DRACOLoader: Unable to re-decode a buffer with different settings. Buffer has already been transferred.")}let r;const i=this.workerNextTaskID++,a=e.byteLength,s=this._getWorker(i,a).then(n=>(r=n,new Promise((n,a)=>{r._callbacks[i]={resolve:n,reject:a},r.postMessage({type:"decode",id:i,taskConfig:t,buffer:e},[e])}))).then(e=>this._createGeometry(e.geometry));return s.catch(()=>!0).then(()=>{r&&i&&this._releaseTask(r,i)}),oe.set(e,{key:n,promise:s}),s}_createGeometry(e){const t=new c.BufferGeometry;e.index&&t.setIndex(new c.BufferAttribute(e.index.array,1));for(let n=0;n{n.load(e,t,void 0,r)})}preload(){return this._initDecoder(),this}_initDecoder(){if(this.decoderPending)return this.decoderPending;const e="object"!=typeof WebAssembly||"js"===this.decoderConfig.type,t=[];return e?t.push(this._loadLibrary("draco_decoder.js","text")):(t.push(this._loadLibrary("draco_wasm_wrapper.js","text")),t.push(this._loadLibrary("draco_decoder.wasm","arraybuffer"))),this.decoderPending=Promise.all(t).then(t=>{const n=t[0];e||(this.decoderConfig.wasmBinary=t[1]);const r=ce.toString(),i=["/* draco decoder */",n,"","/* worker */",r.substring(r.indexOf("{")+1,r.lastIndexOf("}"))].join("\n");this.workerSourceURL=URL.createObjectURL(new Blob([i]))}),this.decoderPending}_getWorker(e,t){return this._initDecoder().then(()=>{if(this.workerPool.lengtht._taskLoad?-1:1});const n=this.workerPool[this.workerPool.length-1];return n._taskCosts[e]=t,n._taskLoad+=t,n})}_releaseTask(e,t){e._taskLoad-=e._taskCosts[t],delete e._callbacks[t],delete e._taskCosts[t]}debug(){console.log("Task load: ",this.workerPool.map(e=>e._taskLoad))}dispose(){for(let e=0;e{const t=e.draco,s=new t.Decoder;try{const e=function(e,t,r,i){const a=i.attributeIDs,s=i.attributeTypes;let o,l;const c=t.GetEncodedGeometryType(r);if(c===e.TRIANGULAR_MESH)o=new e.Mesh,l=t.DecodeArrayToMesh(r,r.byteLength,o);else{if(c!==e.POINT_CLOUD)throw new Error("THREE.DRACOLoader: Unexpected geometry type.");o=new e.PointCloud,l=t.DecodeArrayToPointCloud(r,r.byteLength,o)}if(!l.ok()||0===o.ptr)throw new Error("THREE.DRACOLoader: Decoding failed: "+l.error_msg());const u={index:null,attributes:[]};for(const r in a){const l=self[s[r]];let c,h;if(i.useUniqueIDs)h=a[r],c=t.GetAttributeByUniqueId(o,h);else{if(h=t.GetAttributeId(o,e[a[r]]),-1===h)continue;c=t.GetAttribute(o,h)}const d=n(e,t,o,r,l,c);"color"===r&&(d.vertexColorSpace=i.vertexColorSpace),u.attributes.push(d)}return c===e.TRIANGULAR_MESH&&(u.index=function(e,t,n){const r=3*n.num_faces(),i=4*r,a=e._malloc(i);t.GetTrianglesUInt32Array(n,i,a);const s=new Uint32Array(e.HEAPF32.buffer,a,r).slice();return e._free(a),{array:s,itemSize:1}}(e,t,o)),e.destroy(o),u}(t,s,new Int8Array(r),a),o=e.attributes.map(e=>e.array.buffer);e.index&&o.push(e.index.array.buffer),self.postMessage({type:"decode",id:i.id,geometry:e},o)}catch(e){console.error(e),self.postMessage({type:"error",id:i.id,error:e.message})}finally{t.destroy(s)}})}}}var ue=n(3951),he=n(9247),de=n.n(he),pe=n(5360),fe=n(4604);class me extends c.TextureLoader{constructor(e){super(e),Object.defineProperty(this,"ktxLoader",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"textureLoader",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),this.ktxLoader=new fe.a(e),this.ktxLoader.detectSupport(o.Lotus.renderer),this.textureLoader=new c.TextureLoader(e)}load(e,t,n,r){let i;return i=e.endsWith(".ktx")||e.endsWith(".ktx2")?this.ktxLoader:this.textureLoader,i.load(e,t,n,r)}}var Ae=function(e,t,n,r){return new(n||(n=Promise))(function(i,a){function s(e){try{l(r.next(e))}catch(e){a(e)}}function o(e){try{l(r.throw(e))}catch(e){a(e)}}function l(e){var t;e.done?i(e.value):(t=e.value,t instanceof n?t:new n(function(e){e(t)})).then(s,o)}l((r=r.apply(e,t||[])).next())})};class ge extends s.XY{constructor(){super(...arguments),Object.defineProperty(this,"gltfLoader",{enumerable:!0,configurable:!0,writable:!0,value:new h}),Object.defineProperty(this,"dracoLoader",{enumerable:!0,configurable:!0,writable:!0,value:new le})}initialize(){return Ae(this,void 0,void 0,function*(){this.gltfLoader.setDRACOLoader(this.dracoLoader),this.gltfLoader.setKTX2Loader(be.G.ktx2Loader),this.gltfLoader.setTextureLoader(me),pe.Z.gltfTextureTasksTest()&&(this.gltfLoader.setRenderer(o.Lotus.renderer),this.gltfLoader.setTextureTasks(o.Lotus.tasks)),this.onError=this.onError.bind(this),this.onProgress=this.onProgress.bind(this)})}cleanupGLTF(e){var t;null===(t=e.scenes)||void 0===t||t.forEach(e=>{e.traverse(e=>{var t,n;const r=e;r.isMesh&&r.geometry.attributes.uv&&!(null===(n=null===(t=r.geometry)||void 0===t?void 0:t.attributes)||void 0===n?void 0:n.uv1)&&(r.geometry.attributes.uv1=r.geometry.attributes.uv)})})}load(e,t){return e?(e=ue.URLUtils.get("assets",e),ue.EnvironmentUtils.IS_DEVELOPMENT&&(e=`${e}?${+new Date}`),de().GLTF.test(e)?this.loadGLTF(e,t):de().JSON.test(e)?this.loadJSON(e,t):(ue.AlertUtils.warn(`[ObjectLoader] Format is invalid ${e}.`),Promise.resolve(null))):(ue.AlertUtils.trace("[ObjectLoader] Error trying to load asset, check stack trace."),Promise.resolve(null))}loadGLTF(e,t){return new Promise(n=>{this.gltfLoader.load(e,r=>{this.cleanupGLTF(r),this.onComplete({asset:r,options:t,src:e}),n(r)},n=>{this.onProgress({event:n,options:t,src:e})},r=>{this.onError({event:r,options:t,src:e}),ue.AlertUtils.warn(`[ObjectLoader] Error loading GLTF: ${e}.`),n(null)})})}loadJSON(e,t){return new Promise(n=>Ae(this,void 0,void 0,function*(){const r=yield window.fetch(e);if(200===r.status){const i=yield r.json();this.onComplete({asset:i,options:t,src:e}),n(i)}else ue.AlertUtils.warn(`[ObjectLoader] Error loading JSON ${e}.`),n(null)}))}onError({event:e,options:t,src:n}){var r;null===(r=null==t?void 0:t.onError)||void 0===r||r.call(t,n,e),o.Lotus.dispatchEvent({message:`There was an error loading the asset '${n}'.`,type:"error"})}onProgress({event:e,options:t,src:n}){var r;null===(r=null==t?void 0:t.onProgress)||void 0===r||r.call(t,n,e)}onComplete({asset:e,options:t,src:n}){var r;null===(r=null==t?void 0:t.onLoad)||void 0===r||r.call(t,n,e)}}const ve=new ge;var ye=n(1228),be=n(6749)},4063:(e,t,n)=>{"use strict";n.d(t,{N:()=>a,p:()=>i});var r=n(578);class i{alert(e){r.h.IS_DEVELOPMENT&&alert(e)}trace(e){r.h.IS_DEVELOPMENT&&console.trace(e)}warn(e){r.h.IS_DEVELOPMENT&&console.warn(e)}log(...e){r.h.IS_DEVELOPMENT&&console.log(...e)}}const a=new i},928:(e,t,n)=>{"use strict";n.d(t,{B:()=>i,I:()=>r});class r{remove(e,t){const n=e.indexOf(t);return n>-1&&e.splice(n,1)}insert(e,t,n){return[...e.slice(0,n),t,...e.slice(n)]}}const i=new r},8644:(e,t,n)=>{"use strict";n.d(t,{B:()=>c,a:()=>u});var r=n(4468),i=n(1469),a=n.n(i),s=n(7037),o=n.n(s),l=n(9614);class c{convertValue({key:e,value:t}){if(e=e.toLowerCase(),t.value)return t.value;if(e.includes("color"))return a()(t)&&o()(t[0])?new r.Color(t[0]):(new r.Color).fromArray(t);if(e.includes("rotation"))return(new r.Euler).fromArray(t);if(o()(t))return e.includes("map")?l.Assets.getAssetPromise(t):void 0;if(a()(t)){if(o()(t[0]))return t.map(e=>l.Assets.getAsset(e));if(2===t.length)return(new r.Vector2).fromArray(t);if(3===t.length)return(new r.Vector3).fromArray(t);if(4===t.length)return(new r.Vector4).fromArray(t)}return t}}const u=new c},7889:(e,t,n)=>{"use strict";n.d(t,{O:()=>r,l:()=>i});class r{download(e,t){const n=document.createElement("a");n.href=e,n.setAttribute("download",t),document.body.appendChild(n),n.click(),n.remove()}}const i=new r},7188:(e,t,n)=>{"use strict";n.d(t,{H:()=>s,p:()=>a});var r=n(1469),i=n.n(r);class a{disposeGeometry(e){e.dispose()}disposeMaterial(e){const t=e=>{["alphaMap","aoMap","bumpMap","displacementMap","emissiveMap","envMap","lightMap","map","metalnessMap","normalMap","roughnessMap"].forEach(t=>{e[t]&&(e[t].dispose(),e[t]=void 0)}),["clearcoatRoughnessMap","clearcoatRoughnessMap","clearcoatRoughnessMap","clearcoatRoughnessMap","clearcoatMap","clearcoatNormalMap","clearcoatRoughnessMap","sheenRoughnessMap","sheenColorMap","specularIntensityMap","specularColorMap","thicknessMap","transmissionMap"].forEach(t=>{e[t]&&(e[t].dispose(),e[t]=void 0)}),e.dispose()};i()(e)?e.forEach((e,n)=>{t(n)}):t(e)}disposeSkeleton(e){e.dispose()}dispose(e){e.traverse(e=>{e.geometry&&(this.disposeGeometry(e.geometry),e.geometry=void 0),e.material&&(this.disposeMaterial(e.material),e.material=void 0),e.skeleton&&(this.disposeSkeleton(e.skeleton),e.skeleton=void 0)})}traverse(e,t){for(const n in e)e[n]&&"object"==typeof e[n]?(t(e[n]),this.traverse(e[n],t)):t(e[n])}}const s=new a},8956:(e,t,n)=>{"use strict";n.d(t,{A:()=>h,K:()=>d});var r=n(1777),i=n.n(r),a=n(486),s=n.n(a),o=n(7297),l=n.n(o),c=n(1469),u=n.n(c);class h{getEaseFunction(e){u()(e)&&(e=4===e.length?`cubic-bezier(${e.join(",")})`:"cubic-bezier(0.3333, 0.0, 0.6666, 1.0)");let t=i()[e];return i().hasOwnProperty(e)||(e.includes("bezier")?t=s().fromCSSString(e):e.includes("spring")?t=l().fromCSSString(e):console.error("Keyframe parseOptions cannot find 'easeFunction' named '"+e+"'")),t}getEaseTimeCurve(e,t){return this.getEaseFunction(t)(e)}}const d=new h},578:(e,t,n)=>{"use strict";n.d(t,{H:()=>r,h:()=>i});class r{get IS_DEVELOPMENT(){return this.isDevelopment}get IS_PRODUCTION(){return this.isProduction}constructor(){Object.defineProperty(this,"isDevelopment",{enumerable:!0,configurable:!0,writable:!0,value:!1}),Object.defineProperty(this,"isProduction",{enumerable:!0,configurable:!0,writable:!0,value:!0}),window.LOTUS_ENVIRONMENT&&(this.isDevelopment=["development","electron"].includes(window.LOTUS_ENVIRONMENT),this.isProduction=!this.IS_DEVELOPMENT)}}const i=new r},2659:(e,t,n)=>{"use strict";n.d(t,{E:()=>r,q:()=>i});class r{defer(){return new Promise(e=>{window.requestAnimationFrame(()=>e(!0))})}timeout(e){return new Promise(t=>{window.setTimeout(()=>t(!0),e)})}}const i=new r},4459:(e,t,n)=>{"use strict";n.d(t,{M:()=>s,Y:()=>a});var r=n(4468),i=n(3465);class a{nextPow2(e,t){const n=Math.log2(r.MathUtils.floorPowerOfTwo(e))+t;return Math.pow(2,n<1?1:n)}lerp(e,t,n,a=i.Lotus.scene.loop.delta,s=60){const o=this.delta(n,a,s);return r.MathUtils.lerp(e,t,o)}getRelativeDelta(e=i.Lotus.scene.loop.delta,t=60){return e/(1/t)}delta(e,t=i.Lotus.scene.loop.delta,n=60){const r=this.getRelativeDelta(t,n),a=1-e;return 1-Math.pow(a,r)}}const s=new a},5764:(e,t,n)=>{"use strict";n.d(t,{d:()=>a});var r=n(6486),i=n(8949);const a=new class{constructor(){Object.defineProperty(this,"messages",{enumerable:!0,configurable:!0,writable:!0,value:[]}),(0,i.makeObservable)(this,{messages:i.observable})}notify({message:e}){this.messages.push({id:(0,r.uniqueId)(),message:e}),setTimeout(()=>{this.messages.shift()},1500)}}},434:(e,t,n)=>{"use strict";n.d(t,{D:()=>i,l:()=>r});class r{constructor(){Object.defineProperty(this,"isEnabled",{enumerable:!0,configurable:!0,writable:!0,value:window.LOTUS_DEBUG}),Object.defineProperty(this,"params",{enumerable:!0,configurable:!0,writable:!0,value:new URLSearchParams(window.location.search)})}setEnabled(e){this.isEnabled=e}get(e){var t;return!!this.isEnabled&&(null===(t=this.params)||void 0===t?void 0:t.get(e))}set(e,t){this.params.set(e,t),window.location.search=this.params.toString()}}const i=new r},7298:(e,t,n)=>{"use strict";n.d(t,{A:()=>i,q:()=>r}); /** * @license * Uses portions of the Android Open Source Project under the Apache 2.0 License available at http://www.apache.org/licenses/LICENSE-2.0 */ class r{constructor(e,{initialValue:t=0,initialTargetValue:n=t,initialVelocity:r=0}={}){Object.defineProperty(this,"spring",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"value",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"velocity",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"targetValue",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"active",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),this.spring=e,this.value=t,this.targetValue=n,this.velocity=r}update(e){const{value:t,velocity:n,updated:r}=this.spring.update(this.value,this.targetValue,this.velocity,e);return this.value=t,this.velocity=n,this.active=r,t}}class i{constructor({damping:e,stiffness:t}={}){if(Object.defineProperty(this,"_damping",{enumerable:!0,configurable:!0,writable:!0,value:1}),Object.defineProperty(this,"_stiffness",{enumerable:!0,configurable:!0,writable:!0,value:100}),Object.defineProperty(this,"_gammaMinus",{enumerable:!0,configurable:!0,writable:!0,value:NaN}),Object.defineProperty(this,"_gammaPlus",{enumerable:!0,configurable:!0,writable:!0,value:NaN}),Object.defineProperty(this,"_naturalFreq",{enumerable:!0,configurable:!0,writable:!0,value:NaN}),Object.defineProperty(this,"_dampedFreq",{enumerable:!0,configurable:!0,writable:!0,value:NaN}),e<0)throw new Error("Damping must not be negative.");if(t<0)throw new Error("Stiffness must not be negative.");this.stiffness=null!=t?t:this._stiffness,this.damping=null!=e?e:this._damping,this._init()}_init(){this._damping>1?(this._gammaPlus=-this._damping*this._naturalFreq+this._naturalFreq*Math.sqrt(this._damping*this._damping-1),this._gammaMinus=-this._damping*this._naturalFreq-this._naturalFreq*Math.sqrt(this._damping*this._damping-1)):this._damping<1&&(this._dampedFreq=this._naturalFreq*Math.sqrt(1-this._damping*this._damping))}get stiffness(){return this._stiffness}set stiffness(e){if(e<0)throw new Error("Stiffness must not be negative.");this._stiffness=e,this._naturalFreq=Math.sqrt(this._stiffness),this._init()}get damping(){return this._damping}set damping(e){if(e<0)throw new Error("Damping must not be negative.");this._damping=e,this._init()}update(e,t,n,r){const i=r,a=e-t;let s,o;if(this._damping>1){const e=a-(this._gammaMinus*a-n)/(this._gammaMinus-this._gammaPlus),t=(this._gammaMinus*a-n)/(this._gammaMinus-this._gammaPlus);s=e*Math.pow(Math.E,this._gammaMinus*i)+t*Math.pow(Math.E,this._gammaPlus*i),o=e*this._gammaMinus*Math.pow(Math.E,this._gammaMinus*i)+t*this._gammaPlus*Math.pow(Math.E,this._gammaPlus*i)}else if(1===this._damping){const e=a,t=n+this._naturalFreq*a;s=(e+t*i)*Math.pow(Math.E,-this._naturalFreq*i),o=(e+t*i)*Math.pow(Math.E,-this._naturalFreq*i)*-this._naturalFreq+t*Math.pow(Math.E,-this._naturalFreq*i)}else{const e=a,t=1/this._dampedFreq*(this._damping*this._naturalFreq*a+n);s=Math.pow(Math.E,-this._damping*this._naturalFreq*i)*(e*Math.cos(this._dampedFreq*i)+t*Math.sin(this._dampedFreq*i)),o=s*-this._naturalFreq*this._damping+Math.pow(Math.E,-this._damping*this._naturalFreq*i)*(-this._dampedFreq*e*Math.sin(this._dampedFreq*i)+this._dampedFreq*t*Math.cos(this._dampedFreq*i))}let l=!0;return Math.abs(s)<.001&&Math.abs(o)<.001&&(s=o=0,l=!1),{value:s+t,velocity:o,updated:l}}}},8812:(e,t,n)=>{"use strict";n.d(t,{T:()=>r,f:()=>i});class r{constructor(){Object.defineProperty(this,"api",{enumerable:!0,configurable:!0,writable:!0,value:"api"}),Object.defineProperty(this,"assets",{enumerable:!0,configurable:!0,writable:!0,value:"assets"})}initialize(e){if(e)for(const[t,n]of Object.entries(e))n&&this.set(t,n)}set(e,t){if(t)switch(e){case"api":return this.api=t;case"assets":return this.assets=t}}get(e,t){switch(e){case"api":return`${this.api}${t}`;case"assets":return`${this.assets}${t}`}}getContainingFolderOf(e,t=window.location.href){const n=new URL(e,t);return new URL(".",n).href}}const i=new r},3951:(e,t,n)=>{"use strict";n.r(t),n.d(t,{AlertUtils:()=>r.N,AlertUtilsManager:()=>r.p,ArrayUtils:()=>i.B,ArrayUtilsManager:()=>i.I,ChunkUtils:()=>a.a,ChunkUtilsManager:()=>a.B,DOMUtils:()=>o.l,DOMUtilsManager:()=>o.O,DisposeUtils:()=>s.H,DisposeUtilsManager:()=>s.p,EaseUtils:()=>l.K,EaseUtilsManager:()=>l.A,EnvironmentUtils:()=>c.h,EnvironmentUtilsManager:()=>c.H,FrameUtils:()=>u.q,FrameUtilsManager:()=>u.E,MathUtils:()=>h.M,MathUtilsManager:()=>h.Y,NotificationsUtils:()=>d.d,QueryUtils:()=>m.D,QueryUtilsManager:()=>m.l,Spring:()=>g.A,SpringValue:()=>g.q,URLUtils:()=>A.f,URLUtilsManager:()=>A.T});var r=n(4063),i=n(928),a=n(8644),s=n(7188),o=n(7889),l=n(8956),c=n(578),u=n(2659),h=n(4459),d=n(5764),p=n(8162),f={};for(const e in p)["default","AlertUtils","AlertUtilsManager","ArrayUtils","ArrayUtilsManager","ChunkUtils","ChunkUtilsManager","DisposeUtils","DisposeUtilsManager","DOMUtils","DOMUtilsManager","EaseUtils","EaseUtilsManager","EnvironmentUtils","EnvironmentUtilsManager","FrameUtils","FrameUtilsManager","MathUtils","MathUtilsManager","NotificationsUtils"].indexOf(e)<0&&(f[e]=()=>p[e]);n.d(t,f);var m=n(434),A=n(8812),g=n(7298)},8264:(e,t,n)=>{"use strict";n.d(t,{Sx:()=>i,pI:()=>a,F1:()=>s,yg:()=>o,Yf:()=>l,AR:()=>h,Q6:()=>c,m1:()=>u});var r=n(4468);const i=new r.Color("#000000"),a=new r.Color("#0000ff"),s=new r.Color("#00ff00"),o=new r.Color("#ff0000"),l=new r.Color("#ffffff"),c=31,u=30,h=29},4572:(e,t,n)=>{"use strict";n.d(t,{AF:()=>x,KV:()=>f,Xd:()=>u});const r=(e,t,n=[])=>{const r=Object.getOwnPropertyDescriptors(t);for(let e of n)delete r[e];Object.defineProperties(e,r)},i=(e,t=[e])=>{const n=Object.getPrototypeOf(e);return null===n?t:i(n,[...t,n])},a=(e,t,n=[])=>{var a;const s=null!==(a=((...e)=>{if(0===e.length)return;let t;const n=e.map(e=>i(e));for(;n.every(e=>e.length>0);){const e=n.map(e=>e.pop()),r=e[0];if(!e.every(e=>e===r))break;t=r}return t})(...e))&&void 0!==a?a:Object.prototype,o=Object.create(s),l=i(s);for(let t of e){let e=i(t);for(let t=e.length-1;t>=0;t--){let i=e[t];-1===l.indexOf(i)&&(r(o,i,["constructor",...n]),l.push(i))}}return o.constructor=t,o},s=e=>e.filter((t,n)=>e.indexOf(t)==n),o=(e,t)=>{const n=t.map(e=>i(e));let r=0,a=!0;for(;a;){a=!1;for(let i=t.length-1;i>=0;i--){const t=n[i][r];if(null!=t&&(a=!0,null!=Object.getOwnPropertyDescriptor(t,e)))return n[i][0]}r++}},l=(e,t=Object.prototype)=>new Proxy({},{getPrototypeOf:()=>t,setPrototypeOf(){throw Error("Cannot set prototype of Proxies created by ts-mixer")},getOwnPropertyDescriptor:(t,n)=>Object.getOwnPropertyDescriptor(o(n,e)||{},n),defineProperty(){throw new Error("Cannot define new properties on Proxies created by ts-mixer")},has:(n,r)=>void 0!==o(r,e)||void 0!==t[r],get:(n,r)=>(o(r,e)||t)[r],set(t,n,r){const i=o(n,e);if(void 0===i)throw new Error("Cannot set new properties on Proxies created by ts-mixer");return i[n]=r,!0},deleteProperty(){throw new Error("Cannot delete properties on Proxies created by ts-mixer")},ownKeys:()=>e.map(Object.getOwnPropertyNames).reduce((e,t)=>t.concat(e.filter(e=>t.indexOf(e)<0)))}),c=(e,t)=>l([...e,{constructor:t}]),u={initFunction:null,staticsStrategy:"copy",prototypeStrategy:"copy",decoratorInheritance:"deep"},h=new WeakMap,d=e=>h.get(e),p=(e,t)=>h.set(e,t),f=(e,t)=>{if(e instanceof t)return!0;const n=e.constructor,r=new Set;let a=new Set;for(a.add(n);a.size>0;){if(a.has(t))return!0;a.forEach(e=>r.add(e));const e=new Set;a.forEach(t=>{var n;const s=null!==(n=h.get(t))&&void 0!==n?n:i(t.prototype).map(e=>e.constructor).filter(e=>null!==e);s&&s.forEach(t=>{r.has(t)||a.has(t)||e.add(t)})}),a=e}return!1},m=(e,t)=>{var n,r;const i=s([...Object.getOwnPropertyNames(e),...Object.getOwnPropertyNames(t)]),a={};for(let o of i)a[o]=s([...null!==(n=null==e?void 0:e[o])&&void 0!==n?n:[],...null!==(r=null==t?void 0:t[o])&&void 0!==r?r:[]]);return a},A=(e,t)=>{var n,r,i,a;return{property:m(null!==(n=null==e?void 0:e.property)&&void 0!==n?n:{},null!==(r=null==t?void 0:t.property)&&void 0!==r?r:{}),method:m(null!==(i=null==e?void 0:e.method)&&void 0!==i?i:{},null!==(a=null==t?void 0:t.method)&&void 0!==a?a:{})}},g=(e,t)=>{var n,r,i,a,o,l;return{class:s([...null!==(n=null==e?void 0:e.class)&&void 0!==n?n:[],...null!==(r=null==t?void 0:t.class)&&void 0!==r?r:[]]),static:A(null!==(i=null==e?void 0:e.static)&&void 0!==i?i:{},null!==(a=null==t?void 0:t.static)&&void 0!==a?a:{}),instance:A(null!==(o=null==e?void 0:e.instance)&&void 0!==o?o:{},null!==(l=null==t?void 0:t.instance)&&void 0!==l?l:{})}},v=new Map,y=(...e)=>{const t=((...e)=>{var t;const n=new Set,r=new Set([...e]);for(;r.size>0;)for(let e of r){const a=[...i(e.prototype).map(e=>e.constructor),...null!==(t=d(e))&&void 0!==t?t:[]].filter(e=>!n.has(e));for(let e of a)r.add(e);n.add(e),r.delete(e)}return[...n]})(...e).map(e=>v.get(e)).filter(e=>!!e);return 0==t.length?{}:1==t.length?t[0]:t.reduce((e,t)=>g(e,t))},b=(...e)=>{const t=e.map(e=>_(e));return 0===t.length?{}:1===t.length?t[0]:t.reduce((e,t)=>g(e,t))},_=e=>{let t=v.get(e);return t||(t={},v.set(e,t)),t};function x(...e){var t,n,i;const s=e.map(e=>e.prototype),o=u.initFunction;if(null!==o){const e=s.map(e=>e[o]).filter(e=>"function"==typeof e),t={[o]:function(...t){for(let n of e)n.apply(this,t)}};s.push(t)}function h(...t){for(const n of e)r(this,new n(...t));null!==o&&"function"==typeof this[o]&&this[o].apply(this,t)}h.prototype="copy"===u.prototypeStrategy?a(s,h):c(s,h),Object.setPrototypeOf(h,"copy"===u.staticsStrategy?a(e,null,["prototype"]):l(e,Function.prototype));let d=h;if("none"!==u.decoratorInheritance){const r="deep"===u.decoratorInheritance?y(...e):b(...e);for(let e of null!==(t=null==r?void 0:r.class)&&void 0!==t?t:[]){const t=e(d);t&&(d=t)}E(null!==(n=null==r?void 0:r.static)&&void 0!==n?n:{},d),E(null!==(i=null==r?void 0:r.instance)&&void 0!==i?i:{},d.prototype)}return p(d,e),d}const E=(e,t)=>{const n=e.property,r=e.method;if(n)for(let e in n)for(let r of n[e])r(t,e);if(r)for(let e in r)for(let n of r[e])n(t,e,Object.getOwnPropertyDescriptor(t,e))}},2387:e=>{e.exports="#ifdef USE_ALPHAMAP\n\tfloat alphaMask = 1.0;\n\tif(alphaMapOpacity < 1.0){\t\t\n\t\talphaMask = mix(texture2D( alphaMap, vAlphaMapUv )[ alphaMapChannel ], 1.0, alphaMapOpacity);\n\t}\n\n\tif (enableAlphaMap) {\n\t\tdiffuseColor.a *= alphaMask;\n\t}\n#endif"},6946:e=>{e.exports="\n#ifdef USE_ALPHAMAP\n\tuniform sampler2D alphaMap;\n \tuniform float alphaMapOpacity;\n\tuniform int alphaMapChannel;\n\tuniform bool enableAlphaMap;\n#endif"},6944:e=>{e.exports="if (enableBrightness) {\n gl_FragColor.rgb = adjustBrightness(gl_FragColor.rgb, brightness);\n}\n"},3992:e=>{e.exports="uniform float brightness;\nuniform bool enableBrightness;\n\nvec3 adjustBrightness(vec3 color, float value) {\n return color + value;\n}\n"},5439:e=>{e.exports="if (enableExposure) {\n\tgl_FragColor.rgb = adjustExposure(gl_FragColor.rgb, exposure);\n}\n"},6309:e=>{e.exports="uniform float exposure;\nuniform bool enableExposure;\n\nvec3 adjustExposure(vec3 value, float exposure) {\n return value * pow(2.0, exposure);\n}\n"},8149:e=>{e.exports="if (enableGamma){\n\tgl_FragColor.rgb = adjustGamma(gl_FragColor.rgb, gamma);\n}"},6992:e=>{e.exports="uniform float gamma;\nuniform bool enableGamma;\n\nvec3 adjustGamma(vec3 value, float gamma) {\n return pow(value, vec3(1.0 - gamma));\n}\n"},8210:e=>{e.exports="if (enableHSL){\n gl_FragColor.rgb = adjustHSL(gl_FragColor.rgb, hue, saturation, lightness);\n}"},5310:e=>{e.exports="#define CHUNK_HSL\n#ifndef CHUNK_SATURATION\nuniform float saturation;\n#endif\nuniform float hue;\nuniform float lightness;\nuniform bool enableHSL;\n\nvec3 RGBToHSL(vec3 color) {\n vec3 hsl = vec3(0.0);\n float fmin = min(min(color.r, color.g), color.b); //Min. value of RGB\n float fmax = max(max(color.r, color.g), color.b); //Max. value of RGB\n float delta = fmax - fmin; //Delta RGB value\n hsl.z = (fmax + fmin) / 2.0; // Luminance\n //This is a gray, no chroma...\n if (delta == 0.0) {\n hsl.x = 0.0; // Hue\n hsl.y = 0.0; // Saturation\n } else {\n //Chromatic data...\n if (hsl.z < 0.5)\n hsl.y = delta / (fmax + fmin); // Saturation\n else\n hsl.y = delta / (2.0 - fmax - fmin); // Saturation\n\n float deltaR = (((fmax - color.r) / 6.0) + (delta / 2.0)) / delta;\n float deltaG = (((fmax - color.g) / 6.0) + (delta / 2.0)) / delta;\n float deltaB = (((fmax - color.b) / 6.0) + (delta / 2.0)) / delta;\n\n if (color.r == fmax )\n hsl.x = deltaB - deltaG; // Hue\n else if (color.g == fmax)\n hsl.x = (1.0 / 3.0) + deltaR - deltaB; // Hue\n else if (color.b == fmax)\n hsl.x = (2.0 / 3.0) + deltaG - deltaR; // Hue\n\n if (hsl.x < 0.0)\n hsl.x += 1.0; // Hue\n else if (hsl.x > 1.0)\n hsl.x -= 1.0; // Hue\n }\n\n return hsl;\n}\n\nfloat HueToRGB(float f1, float f2, float hue) {\n if (hue < 0.0)\n hue += 1.0;\n else if (hue > 1.0)\n hue -= 1.0;\n float res;\n if ((6.0 * hue) < 1.0)\n res = f1 + (f2 - f1) * 6.0 * hue;\n else if ((2.0 * hue) < 1.0)\n res = f2;\n else if ((3.0 * hue) < 2.0)\n res = f1 + (f2 - f1) * ((2.0 / 3.0) - hue) * 6.0;\n else\n res = f1;\n return res;\n}\n\nvec3 HSLToRGB(vec3 hsl) {\n vec3 rgb = vec3(0.0);\n if (hsl.y == 0.0)\n rgb = vec3(hsl.z); // Luminance\n else {\n float f2;\n if (hsl.z < 0.5)\n f2 = hsl.z * (1.0 + hsl.y);\n else\n f2 = (hsl.z + hsl.y) - (hsl.y * hsl.z);\n float f1 = 2.0 * hsl.z - f2;\n rgb.r = HueToRGB(f1, f2, hsl.x + (1.0/3.0));\n rgb.g = HueToRGB(f1, f2, hsl.x);\n rgb.b = HueToRGB(f1, f2, hsl.x - (1.0/3.0));\n }\n return rgb;\n}\n\nvec3 adjustLightness(vec3 value, float amount) {\n return mix(value, vec3(amount < 0.0 ? 0.0 : 1.0), abs(amount));\n}\n\nvec3 adjustHSL(vec3 color, float hue, float saturation, float lightness) {\n vec3 hsl = RGBToHSL(color);\n hsl.x += (hue / 180.0) * 0.5;\n#ifndef CHUNK_SATURATION\n hsl.y *= (saturation / 100.0 + 1.0);\n#endif\n return adjustLightness(clamp(HSLToRGB(hsl), vec3(0.0), vec3(1.0)), lightness / 100.0);\n}"},3939:e=>{e.exports="if (enableLevels){\n gl_FragColor.rgb = LevelsControl(\n gl_FragColor.rgb,\n shadows / 255.0,\n gamma,\n highlights / 255.0,\n outputShadows / 255.0,\n outputHighlights / 255.0\n );\n}"},7811:e=>{e.exports="uniform float shadows; // inputMin\nuniform float gamma;\nuniform float highlights; // inputMax\nuniform float outputShadows; // outputMin\nuniform float outputHighlights; // outputMax\nuniform bool enableLevels;\n\n#define GammaCorrection(color, gamma) pow(color, vec3(1.0 / gamma))\n#define LevelsControlInputRange(color, minInput, maxInput) min(max(color - vec3(minInput), vec3(0.0)) / (vec3(maxInput) - vec3(minInput)), vec3(1.0))\n#define LevelsControlInput(color, minInput, gamma, maxInput) GammaCorrection(LevelsControlInputRange(color, minInput, maxInput), gamma)\n#define LevelsControlOutputRange(color, minOutput, maxOutput) mix(vec3(minOutput), vec3(maxOutput), color)\n#define LevelsControl(color, minInput, gamma, maxInput, minOutput, maxOutput) LevelsControlOutputRange(LevelsControlInput(color, minInput, gamma, maxInput), minOutput, maxOutput)\n"},9634:e=>{e.exports="#ifdef USE_LIGHTMAP\n\n\tuniform sampler2D lightMap;\n\tuniform float lightMapIntensity;\n\tuniform vec3 lightMapColor;\n\n#endif\n"},4093:e=>{e.exports="#if defined( RE_IndirectDiffuse )\n\n\t#ifdef USE_LIGHTMAP\n\n\t\tvec4 lightMapTexel = texture2D( lightMap, vLightMapUv );\n\t\tlightMapTexel.rgb *= lightMapColor;\n\t\tvec3 lightMapIrradiance = lightMapTexel.rgb * lightMapIntensity;\n\n\t\tirradiance += lightMapIrradiance;\n\n\t#endif\n\n\t#if defined( USE_ENVMAP ) && defined( STANDARD ) && defined( ENVMAP_TYPE_CUBE_UV )\n\n\t\tiblIrradiance += getIBLIrradiance( geometryNormal );\n\n\t#endif\n\n#endif\n\n#if defined( USE_ENVMAP ) && defined( RE_IndirectSpecular )\n\n\t#ifdef USE_ANISOTROPY\n\n\t\tradiance += getIBLAnisotropyRadiance( geometryViewDir, geometryNormal, material.roughness, material.anisotropyB, material.anisotropy );\n\n\t#else\n\n\t\tradiance += getIBLRadiance( geometryViewDir, geometryNormal, material.roughness );\n\n\t#endif\n\n\t#ifdef USE_CLEARCOAT\n\n\t\tclearcoatRadiance += getIBLRadiance( geometryViewDir, geometryClearcoatNormal, material.clearcoatRoughness );\n\n\t#endif\n\n#endif\n"},4372:e=>{e.exports="\nvec3 v = normalize(cameraPosition - vWorldPosition);\nvec3 n = inverseTransformDirection(mix(vec3(0.0, 0.0, 1.0), normal, ocularNormalScale), viewMatrix);\nvec3 vRefraction = normalize(refract(-v, normalize(n), 1.0 / ocularIOR));\n\n// rotate environment\n// TODO: roll these rotations into a single matrix, move into vertex shader\n// vRefraction = rotateAxis(vRefraction, vec3(1., 0., 0.), ocularRotation.x); // pitch\n// vRefraction = rotateAxis(vRefraction, vec3(0., 1., 0.), ocularRotation.y); // yaw\n// vRefraction = normalize(vRefraction);\n\nvec2 offset = vec2(ocularImageCenter.x, ocularImageCenter.y);\n\n// planar\nvec3 up = vec3(0., 1., 0.);\nvec3 right = vec3(1., 0., 0.);\n\nvec3 p0 = ocularEmissiveWorldPos;\nvec3 p1 =\nrotateAxis(\n rotateAxis(\n vec3(1., 0., 0.),\n right,\n ocularRotation.x\n ),\n up,\n ocularRotation.y\n);\nvec3 p2 = \nrotateAxis(\n rotateAxis(\n vec3(0., 1., 0.),\n right,\n ocularRotation.x\n ),\n up,\n ocularRotation.y\n);\n\nvec3 la = vWorldPosition;\nvec3 lb = vWorldPosition + vRefraction;\nvec4 intersectionResult = planeLineIntersection(p0, p1, p2, la, lb);\nfloat intersectionIndicator = intersectionResult.x;\nvec3 intersectionLocation = intersectionResult.yzw;\n\n// I don't know why the first dot uses negative vectors. ¯\\_(ツ)_/¯ \nfloat planarU = dot(p0, -p1) + dot(intersectionLocation, p1);\nfloat planarV = dot(p0, -p2) + dot(intersectionLocation, p2);\n\n// totalEmissiveRadiance.r = planarU;\n// totalEmissiveRadiance.g = planarV;\nvec2 lookupBasis = vec2(planarU, planarV);\n// end planar\n\nvec2 lookupUv = lookupBasis * vec2(1.0, ocularAspect) * (1.0 / ocularZoom) + offset;\n\ntotalEmissiveRadiance = texture2D(ocularEmissiveMap, lookupUv, ocularBias).rgb;\n\ntotalEmissiveRadiance *= smoothstep(0.0, ocularVignette, lookupUv.x);\ntotalEmissiveRadiance *= smoothstep(1.0, 1.0 - ocularVignette, lookupUv.x);\ntotalEmissiveRadiance *= smoothstep(0.0, ocularVignette, lookupUv.y);\ntotalEmissiveRadiance *= smoothstep(1.0, 1.0 - ocularVignette, lookupUv.y);\n\nfloat glancing = pow(dot(n, v), pow(2.0, ocularGlancingShape));\ntotalEmissiveRadiance *= 1.0 - (1.0 - glancing) * ocularGlancing;\ntotalEmissiveRadiance *= ocularEmissiveIntensity;\n\n// totalEmissiveRadiance.r = mix(totalEmissiveRadiance.r, mod(lookupBasis.x, 1.0), planeDebugGrid);\n// totalEmissiveRadiance.g = mix(totalEmissiveRadiance.g, mod(lookupBasis.y, 1.0), planeDebugGrid);\n// totalEmissiveRadiance.b += clamp(intersectionIndicator, 0., 1.);\n"},4352:e=>{e.exports='varying vec3 vWorldPosition;\n\nuniform float ocularAspect;\nuniform float ocularBias;\nuniform sampler2D ocularEmissiveMap;\nuniform float ocularEmissiveIntensity;\nuniform vec3 ocularEmissiveWorldPos;\nuniform float ocularGlancing;\nuniform float ocularGlancingShape;\nuniform vec2 ocularImageCenter;\nuniform float ocularIOR;\nuniform float ocularNormalScale;\nuniform vec2 ocularRotation;\nuniform float ocularVignette;\nuniform float ocularZoom;\nuniform float planeDebugGrid;\n\n// from https://www.neilmendoza.com/glsl-rotation-about-an-arbitrary-axis/\nvec3 rotateAxis(vec3 p, vec3 axis, float angle) {\n return mix(\n dot(axis, p) * axis, \n p,\n cos(angle)) +\n cross(axis, p) *\n sin(angle)\n ;\n}\n\n/*\nCopyright 2021 Antoine Morin-Paulhus\nPermission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:\nThe above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.\nTHE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.\n*/\n/*\n Find the intersection of a plane and a line.\n Parameters:\n P0 : A point on the plane\n P01: Another point of the plane\n P02: Another point of the plane\n la: Line point a\n lb: Line point b\n .P01_________\n | |\n | lb |\n | / |\n P0 .______/_____.P02\n /\n /la\n Returns a vector vec.xyzw where x is and indicator. x < 0 if there is no intersection or\n infinite intersections (line is on plane).\n Otherwise, the intersection point coordinates are returned in vec.yzw.\n*/\nvec4 planeLineIntersection(vec3 P0, vec3 P01, vec3 P02, vec3 la, vec3 lb) {\n // Many thanks to wikipedia\n // Reference:\n // https://en.wikipedia.org/wiki/Line%E2%80%93plane_intersection\n vec3 lab = lb - la;\n float det = - dot(lab, cross(P01,P02));\n\n if (abs(det) < 0.01) {\n return vec4(-1.0,0.0,0.0,0.0);\n }\n\n float t = 1.0/det * dot(cross(P01, P02), la - P0);\n float u = 1.0/det * dot(cross(P02, -lab), la - P0);\n float v = 1.0/det * dot(cross(-lab, P01), la - P0);\n\n vec3 x = P0 + P01 * u + P02 * v;\n\n float indicator = 1.0;\n\n // Return if intersection is not between la and lb\n // This can be useful depending on your use case.\n //if (t < 0.0 || t > 1.0) {\n // indicator = -2.0;\n //}\n\n if (u < -0.01 || v < -0.01 || u > 1.01 || v > 1.01) {\n indicator = -3.0;\n }\n\n vec4 ret;\n ret.xyzw = vec4(indicator, x);\n return ret;\n}\n'},336:e=>{e.exports="\nvec4 worldPosition = vec4( transformed, 1.0 );\nworldPosition = modelMatrix * worldPosition;\nvWorldPosition = worldPosition.xyz;\n"},640:e=>{e.exports="#ifdef USE_UV\n\n varying vec2 o_vUv;\n vec2 vUv;\n\n#endif\n#ifdef USE_MAP\n\n varying vec2 o_vMapUv;\n vec2 vMapUv;\n\n#endif\n#ifdef USE_ALPHAMAP\n\n varying vec2 vAlphaMapUv;\n\n#endif\n#ifdef USE_LIGHTMAP\n\n varying vec2 o_vLightMapUv;\n vec2 vLightMapUv;\n\n#endif\n#ifdef USE_AOMAP\n\n varying vec2 o_vAoMapUv;\n vec2 vAoMapUv;\n\n#endif\n#ifdef USE_BUMPMAP\n\n varying vec2 o_vBumpMapUv;\n vec2 vBumpMapUv;\n\n#endif\n#ifdef USE_NORMALMAP\n\n varying vec2 o_vNormalMapUv;\n vec2 vNormalMapUv;\n\n#endif\n#ifdef USE_EMISSIVEMAP\n\n varying vec2 o_vEmissiveMapUv;\n vec2 vEmissiveMapUv;\n\n#endif\n#ifdef USE_METALNESSMAP\n\n varying vec2 o_vMetalnessMapUv;\n vec2 vMetalnessMapUv;\n\n#endif\n#ifdef USE_ROUGHNESSMAP\n\n varying vec2 o_vRoughnessMapUv;\n vec2 vRoughnessMapUv;\n\n#endif\n#ifdef USE_CLEARCOATMAP\n\n varying vec2 o_vClearcoatMapUv;\n vec2 vClearcoatMapUv;\n\n#endif\n#ifdef USE_CLEARCOAT_NORMALMAP\n\n varying vec2 o_vClearcoatNormalMapUv;\n vec2 vClearcoatNormalMapUv;\n\n#endif\n#ifdef USE_CLEARCOAT_ROUGHNESSMAP\n\n varying vec2 o_vClearcoatRoughnessMapUv;\n vec2 vClearcoatRoughnessMapUv;\n\n#endif\n#ifdef USE_IRIDESCENCEMAP\n\n varying vec2 o_vIridescenceMapUv;\n vec2 vIridescenceMapUv;\n\n#endif\n#ifdef USE_IRIDESCENCE_THICKNESSMAP\n\n varying vec2 o_vIridescenceThicknessMapUv;\n vec2 vIridescenceThicknessMapUv;\n\n#endif\n#ifdef USE_SHEEN_COLORMAP\n\n varying vec2 o_vSheenColorMapUv;\n vec2 vSheenColorMapUv;\n\n#endif\n#ifdef USE_SHEEN_ROUGHNESSMAP\n\n varying vec2 o_vSheenRoughnessMapUv;\n vec2 vSheenRoughnessMapUv;\n\n#endif\n#ifdef USE_SPECULARMAP\n\n varying vec2 o_vSpecularMapUv;\n vec2 vSpecularMapUv;\n\n#endif\n#ifdef USE_SPECULAR_COLORMAP\n\n varying vec2 o_vSpecularColorMapUv;\n vec2 vSpecularColorMapUv;\n\n#endif\n#ifdef USE_SPECULAR_INTENSITYMAP\n\n varying vec2 o_vSpecularIntensityMapUv;\n vec2 vSpecularIntensityMapUv;\n\n#endif\n#ifdef USE_TRANSMISSIONMAP\n\n uniform mat3 transmissionMapTransform;\n varying vec2 vTransmissionMapUv;\n\n#endif\n#ifdef USE_THICKNESSMAP\n\n uniform mat3 thicknessMapTransform;\n varying vec2 vThicknessMapUv;\n\n#endif\n"},5246:e=>{e.exports="#ifdef USE_UV\n\n varying vec2 o_vUv;\n\n#endif\n#ifdef USE_UV2\n\n attribute vec2 uv2;\n\n#endif\n#ifdef USE_MAP\n\n uniform mat3 mapTransform;\n varying vec2 o_vMapUv;\n\n#endif\n#ifdef USE_ALPHAMAP\n\n uniform mat3 alphaMapTransform;\n varying vec2 vAlphaMapUv;\n\n#endif\n#ifdef USE_LIGHTMAP\n\n uniform mat3 lightMapTransform;\n varying vec2 o_vLightMapUv;\n\n#endif\n#ifdef USE_AOMAP\n\n uniform mat3 aoMapTransform;\n varying vec2 o_vAoMapUv;\n\n#endif\n#ifdef USE_BUMPMAP\n\n uniform mat3 bumpMapTransform;\n varying vec2 o_vBumpMapUv;\n\n#endif\n#ifdef USE_NORMALMAP\n\n uniform mat3 normalMapTransform;\n varying vec2 o_vNormalMapUv;\n\n#endif\n#ifdef USE_DISPLACEMENTMAP\n\n uniform mat3 displacementMapTransform;\n varying vec2 vDisplacementMapUv;\n\n#endif\n#ifdef USE_EMISSIVEMAP\n\n uniform mat3 emissiveMapTransform;\n varying vec2 o_vEmissiveMapUv;\n\n#endif\n#ifdef USE_METALNESSMAP\n\n uniform mat3 metalnessMapTransform;\n varying vec2 o_vMetalnessMapUv;\n\n#endif\n#ifdef USE_ROUGHNESSMAP\n\n uniform mat3 roughnessMapTransform;\n varying vec2 o_vRoughnessMapUv;\n\n#endif\n#ifdef USE_CLEARCOATMAP\n\n uniform mat3 clearcoatMapTransform;\n varying vec2 o_vClearcoatMapUv;\n\n#endif\n#ifdef USE_CLEARCOAT_NORMALMAP\n\n uniform mat3 clearcoatNormalMapTransform;\n varying vec2 o_vClearcoatNormalMapUv;\n\n#endif\n#ifdef USE_CLEARCOAT_ROUGHNESSMAP\n\n uniform mat3 clearcoatRoughnessMapTransform;\n varying vec2 o_vClearcoatRoughnessMapUv;\n\n#endif\n#ifdef USE_SHEEN_COLORMAP\n\n uniform mat3 sheenColorMapTransform;\n varying vec2 o_vSheenColorMapUv;\n\n#endif\n#ifdef USE_SHEEN_ROUGHNESSMAP\n\n uniform mat3 sheenRoughnessMapTransform;\n varying vec2 o_vSheenRoughnessMapUv;\n\n#endif\n#ifdef USE_IRIDESCENCEMAP\n\n uniform mat3 iridescenceMapTransform;\n varying vec2 o_vIridescenceMapUv;\n\n#endif\n#ifdef USE_IRIDESCENCE_THICKNESSMAP\n\n uniform mat3 iridescenceThicknessMapTransform;\n varying vec2 o_vIridescenceThicknessMapUv;\n\n#endif\n#ifdef USE_SPECULARMAP\n\n uniform mat3 specularMapTransform;\n varying vec2 o_vSpecularMapUv;\n\n#endif\n#ifdef USE_SPECULAR_COLORMAP\n\n uniform mat3 specularColorMapTransform;\n varying vec2 o_vSpecularColorMapUv;\n\n#endif\n#ifdef USE_SPECULAR_INTENSITYMAP\n\n uniform mat3 specularIntensityMapTransform;\n varying vec2 o_vSpecularIntensityMapUv;\n\n#endif\n#ifdef USE_TRANSMISSIONMAP\n\n uniform mat3 transmissionMapTransform;\n varying vec2 vTransmissionMapUv;\n\n#endif\n#ifdef USE_THICKNESSMAP\n\n uniform mat3 thicknessMapTransform;\n varying vec2 vThicknessMapUv;\n\n#endif\n"},8626:e=>{e.exports="#ifdef USE_UV\n\n o_vUv = vec3( uv, 1 ).xy;\n\n#endif\n#ifdef USE_MAP\n\n o_vMapUv = ( mapTransform * vec3( MAP_UV, 1 ) ).xy;\n\n#endif\n#ifdef USE_ALPHAMAP\n\n vAlphaMapUv = ( alphaMapTransform * vec3( ALPHAMAP_UV, 1 ) ).xy;\n\n#endif\n#ifdef USE_LIGHTMAP\n\n o_vLightMapUv = ( lightMapTransform * vec3( LIGHTMAP_UV, 1 ) ).xy;\n\n#endif\n#ifdef USE_AOMAP\n\n o_vAoMapUv = ( aoMapTransform * vec3( AOMAP_UV, 1 ) ).xy;\n\n#endif\n#ifdef USE_BUMPMAP\n\n o_vBumpMapUv = ( bumpMapTransform * vec3( BUMPMAP_UV, 1 ) ).xy;\n\n#endif\n#ifdef USE_NORMALMAP\n\n o_vNormalMapUv = ( normalMapTransform * vec3( NORMALMAP_UV, 1 ) ).xy;\n\n#endif\n#ifdef USE_DISPLACEMENTMAP\n\n vDisplacementMapUv = ( displacementMapTransform * vec3( DISPLACEMENTMAP_UV, 1 ) ).xy;\n\n#endif\n#ifdef USE_EMISSIVEMAP\n\n o_vEmissiveMapUv = ( emissiveMapTransform * vec3( EMISSIVEMAP_UV, 1 ) ).xy;\n\n#endif\n#ifdef USE_METALNESSMAP\n\n o_vMetalnessMapUv = ( metalnessMapTransform * vec3( METALNESSMAP_UV, 1 ) ).xy;\n\n#endif\n#ifdef USE_ROUGHNESSMAP\n\n o_vRoughnessMapUv = ( roughnessMapTransform * vec3( ROUGHNESSMAP_UV, 1 ) ).xy;\n\n#endif\n#ifdef USE_CLEARCOATMAP\n\n o_vClearcoatMapUv = ( clearcoatMapTransform * vec3( CLEARCOATMAP_UV, 1 ) ).xy;\n\n#endif\n#ifdef USE_CLEARCOAT_NORMALMAP\n\n o_vClearcoatNormalMapUv = ( clearcoatNormalMapTransform * vec3( CLEARCOAT_NORMALMAP_UV, 1 ) ).xy;\n\n#endif\n#ifdef USE_CLEARCOAT_ROUGHNESSMAP\n\n o_vClearcoatRoughnessMapUv = ( clearcoatRoughnessMapTransform * vec3( CLEARCOAT_ROUGHNESSMAP_UV, 1 ) ).xy;\n\n#endif\n#ifdef USE_IRIDESCENCEMAP\n\n o_vIridescenceMapUv = ( iridescenceMapTransform * vec3( IRIDESCENCEMAP_UV, 1 ) ).xy;\n\n#endif\n#ifdef USE_IRIDESCENCE_THICKNESSMAP\n\n o_vIridescenceThicknessMapUv = ( iridescenceThicknessMapTransform * vec3( IRIDESCENCE_THICKNESSMAP_UV, 1 ) ).xy;\n\n#endif\n#ifdef USE_SHEEN_COLORMAP\n\n o_vSheenColorMapUv = ( sheenColorMapTransform * vec3( SHEEN_COLORMAP_UV, 1 ) ).xy;\n\n#endif\n#ifdef USE_SHEEN_ROUGHNESSMAP\n\n o_vSheenRoughnessMapUv = ( sheenRoughnessMapTransform * vec3( SHEEN_ROUGHNESSMAP_UV, 1 ) ).xy;\n\n#endif\n#ifdef USE_SPECULARMAP\n\n o_vSpecularMapUv = ( specularMapTransform * vec3( SPECULARMAP_UV, 1 ) ).xy;\n\n#endif\n#ifdef USE_SPECULAR_COLORMAP\n\n o_vSpecularColorMapUv = ( specularColorMapTransform * vec3( SPECULAR_COLORMAP_UV, 1 ) ).xy;\n\n#endif\n#ifdef USE_SPECULAR_INTENSITYMAP\n\n o_vSpecularIntensityMapUv = ( specularIntensityMapTransform * vec3( SPECULAR_INTENSITYMAP_UV, 1 ) ).xy;\n\n#endif\n#ifdef USE_TRANSMISSIONMAP\n\n vTransmissionMapUv = ( transmissionMapTransform * vec3( TRANSMISSIONMAP_UV, 1 ) ).xy;\n\n#endif\n#ifdef USE_THICKNESSMAP\n\n vThicknessMapUv = ( thicknessMapTransform * vec3( THICKNESSMAP_UV, 1 ) ).xy;\n\n#endif\n"},3268:e=>{e.exports="vec2 parallaxUV = vec2(0, 0);\n\n#ifdef USE_UV\n\n parallaxUV = getParallaxMappingUV(-vViewPosition, normalize(vNormal), normalize(vViewPosition), o_vUv);\n\n if(clipBorders(parallaxUV))\n discard;\n\n vUv = parallaxUV;\n\n#endif\n#ifdef USE_MAP\n\n parallaxUV = getParallaxMappingUV(-vViewPosition, normalize(vNormal), normalize(vViewPosition), o_vMapUv);\n\n if(clipBorders(parallaxUV))\n discard;\n\n vMapUv = parallaxUV;\n\n#endif\n#ifdef USE_BUMPMAP\n\n vBumpMapUv = parallaxUV;\n\n#endif\n#ifdef USE_LIGHTMAP\n\n vLightMapUv = o_vLightMapUv;\n\n if(parallaxUseLightmap > 0.5)\n {\n if(parallaxLightmapUseOwnUV > 0.5)\n vLightMapUv = getParallaxMappingUV(-vViewPosition, normalize(vNormal), normalize(vViewPosition), o_vLightMapUv);\n else\n vLightMapUv = parallaxUV;\n }\n\n#endif\n#ifdef USE_AOMAP\n\n vAoMapUv = o_vAoMapUv;\n\n if(parallaxAOUseOwnUV > 0.5)\n vAoMapUv = getParallaxMappingUV(-vViewPosition, normalize(vNormal), normalize(vViewPosition), o_vAoMapUv);\n else\n vAoMapUv = parallaxUV;\n\n#endif\n#ifdef USE_NORMALMAP\n\n vNormalMapUv = parallaxUV;\n\n#endif\n#ifdef USE_EMISSIVEMAP\n\n vEmissiveMapUv = parallaxUV;\n\n#endif\n#ifdef USE_METALNESSMAP\n\n vMetalnessMapUv = parallaxUV;\n\n#endif\n#ifdef USE_ROUGHNESSMAP\n\n vRoughnessMapUv = parallaxUV;\n\n#endif\n#ifdef USE_CLEARCOATMAP\n\n vClearcoatMapUv = parallaxUV;\n\n#endif\n#ifdef USE_CLEARCOAT_NORMALMAP\n\n vClearcoatNormalMapUv = parallaxUV;\n\n#endif\n#ifdef USE_CLEARCOAT_ROUGHNESSMAP\n\n vClearcoatRoughnessMapUv = parallaxUV;\n\n#endif\n#ifdef USE_IRIDESCENCEMAP\n\n vIridescenceMapUv = parallaxUV;\n\n#endif\n#ifdef USE_IRIDESCENCE_THICKNESSMAP\n\n vIridescenceThicknessMapUv = parallaxUV;\n\n#endif\n#ifdef USE_SHEEN_COLORMAP\n\n vSheenColorMapUv = parallaxUV;\n\n#endif\n#ifdef USE_SHEEN_ROUGHNESSMAP\n\n vSheenRoughnessMapUv = parallaxUV;\n\n#endif\n#ifdef USE_SPECULARMAP\n\n vSpecularMapUv = parallaxUV;\n\n#endif\n#ifdef USE_SPECULAR_COLORMAP\n\n vSpecularColorMapUv = parallaxUV;\n\n#endif\n#ifdef USE_SPECULAR_INTENSITYMAP\n\n vSpecularIntensityMapUv = parallaxUV;\n\n#endif\n"},1753:e=>{e.exports="gl_FragColor.rgb = setParallaxMappingColor(gl_FragColor.rgb);"},7895:e=>{e.exports="uniform sampler2D parallaxMap;\nuniform float parallaxScale;\nuniform float parallaxMinLayers;\nuniform float parallaxMaxLayers;\n\nuniform float parallaxClip;\nuniform float parallaxMapInverted;\nuniform vec3 parallaxMapChannel;\n\nuniform vec4 parallaxUvTransform;\nuniform float parallaxClipOffset;\n\nuniform float parallaxAOUseOwnUV;\nuniform float parallaxUseLightmap;\nuniform float parallaxLightmapUseOwnUV;\n\nbool clipBorders(vec2 uv)\n{\n vec4 clip = parallaxUvTransform;\n clip.x += clip.z;\n clip.y += clip.w;\n clip.xy += -parallaxClipOffset;\n clip.zw += parallaxClipOffset;\n\n return parallaxClip > .5 && (uv.x > clip.x || uv.y > clip.y || uv.x < clip.z || uv.y < clip.w);\n}\n\nfloat sampleHeightMap(vec2 uv)\n{\n if(parallaxMapInverted > .5)\n return dot(vec4(parallaxMapChannel, 0.0), 1. - texture2D(parallaxMap, uv));\n else\n return dot(vec4(parallaxMapChannel, 0.0), texture2D(parallaxMap, uv));\n}\n\n#ifdef USE_BASIC_PARALLAX\n\n vec2 parallaxMapping(vec3 V, vec2 uv) {\n \n float initialHeight = sampleHeightMap(uv);\n\n // Offset Limiting\n vec2 texCoordOffset = parallaxScale * V.xy * initialHeight;\n return uv - texCoordOffset;\n }\n\n#else\n\n vec2 parallaxMapping(in vec3 V, vec2 uv) {\n\n // Determine number of layers from angle between V and N\n float numLayers = mix(parallaxMaxLayers, parallaxMinLayers, abs(dot(vec3(0.0, 0.0, 1.0), V)));\n float layerHeight = 1.0/numLayers;\n float currentLayerHeight = 0.0;\n\n // Shift of texture coordinates for each iteration\n vec2 dtex = parallaxScale * V.xy/V.z/numLayers;\n vec2 currentTextureCoords = uv;\n float heightFromTexture = sampleHeightMap(currentTextureCoords);\n\n #pragma unroll_loop_start\n for ( int i = 0; i < 30; i += 1 ) \n {\n if (heightFromTexture <= currentLayerHeight) \n break;\n\n currentLayerHeight += layerHeight;\n\n // Shift texture coordinates along vector V\n currentTextureCoords -= dtex;\n heightFromTexture = sampleHeightMap(currentTextureCoords);\n }\n #pragma unroll_loop_end\n\n #ifdef USE_STEEP_PARALLAX\n\n return currentTextureCoords;\n\n #elif defined(USE_RELIEF_PARALLAX)\n\n vec2 deltaTexCoord = dtex / 2.0;\n float deltaHeight = layerHeight / 2.0;\n\n // Return to the mid point of previous layer\n currentTextureCoords += deltaTexCoord;\n currentLayerHeight -= deltaHeight;\n\n // Binary search to increase precision of Steep Parallax Mapping\n const int numSearches = 5;\n\n #pragma unroll_loop_start\n for (int i = 0; i < numSearches; i += 1) \n {\n deltaTexCoord /= 2.0;\n deltaHeight /= 2.0;\n heightFromTexture = sampleHeightMap(currentTextureCoords);\n // Shift along or against vector V\n\n // Below the surface\n if(heightFromTexture > currentLayerHeight) \n {\n \n currentTextureCoords -= deltaTexCoord;\n currentLayerHeight += deltaHeight;\n\n // above the surface\n } else { \n\n currentTextureCoords += deltaTexCoord;\n currentLayerHeight -= deltaHeight;\n }\n }\n #pragma unroll_loop_end\n\n return currentTextureCoords;\n\n #elif defined(USE_OCCLUSION_PARALLAX)\n\n vec2 prevTCoords = currentTextureCoords + dtex;\n\n // Heights for linear interpolation\n float nextH = heightFromTexture - currentLayerHeight;\n float prevH = sampleHeightMap(prevTCoords) - currentLayerHeight + layerHeight;\n\n // Proportions for linear interpolation\n float weight = nextH/(nextH - prevH);\n\n // Interpolation of texture coordinates\n return prevTCoords * weight + currentTextureCoords * (1.0 - weight);\n\n #else\n\n return currentTextureCoords;\n\n #endif\n }\n\n#endif\n\nvec2 getParallaxMappingUV(vec3 surfPosition, vec3 surfNormal, vec3 viewPosition, vec2 uv) {\n vec2 texDx = dFdx(uv);\n vec2 texDy = dFdy(uv);\n\n vec3 vSigmaX = dFdx(surfPosition);\n vec3 vSigmaY = dFdy(surfPosition);\n vec3 vR1 = cross(vSigmaY, surfNormal);\n vec3 vR2 = cross(surfNormal, vSigmaX);\n float fDet = dot(vSigmaX, vR1);\n\n vec2 vProjVscr = (1.0 / fDet) * vec2(dot(vR1, viewPosition), dot(vR2, viewPosition));\n vec3 vProjVtex;\n\n vProjVtex.xy = texDx * vProjVscr.x + texDy * vProjVscr.y;\n vProjVtex.z = dot(surfNormal, viewPosition);\n\n return parallaxMapping(vProjVtex, uv);\n}\n\n// Used for debug\nvec3 setParallaxMappingColor(vec3 value) {\n return value ;\n}\n"},5986:e=>{e.exports="if (enableSaturation){\n\tgl_FragColor.rgb = adjustSaturation(gl_FragColor.rgb, saturation);\n}"},8232:e=>{e.exports="#ifndef CHUNK_HSL\n#define CHUNK_SATURATION\nuniform float saturation;\n#endif\nuniform bool enableSaturation;\n\nfloat getLuminance(vec3 value) {\n return dot(value, vec3(0.22, 0.707, 0.071));\n}\n\nvec3 adjustSaturation(vec3 value, float saturation) {\n float luminance = getLuminance(value);\n return mix(vec3(luminance), value, saturation);\n}\n"},4327:e=>{e.exports="precision highp float;\n\nuniform vec3 uColor;\nuniform float uAlpha;\n\nvarying vec3 vPos;\nvarying vec2 vUv;\n\nvoid main() {\n vec4 color = vec4(uColor, uAlpha);\n\n gl_FragColor = color;\n}\n"},9774:e=>{e.exports="precision highp float;\n\nvarying vec3 vPos;\nvarying vec2 vUv;\n\nvoid main() {\n vPos = position;\n vUv = uv;\n\n gl_Position = projectionMatrix * modelViewMatrix * vec4(position, 1.0);\n}\n"},2921:e=>{e.exports="precision highp float;\n\nvarying vec2 vUv;\n\nuniform sampler2D uSourceTexture;\nuniform sampler2D uDestinationTexture;\n\nuniform float uBlend;\n\nvoid main() {\n vec4 source = texture2D(uSourceTexture, vUv);\n vec4 destination = texture2D(uDestinationTexture, vUv);\n\n gl_FragColor = mix(source, destination, uBlend);\n}\n"},7883:e=>{e.exports="precision highp float;\nvarying vec2 vUv;\nuniform sampler2D uMainTexture;\n\nvoid main() {\n gl_FragColor = texture2D(uMainTexture, vUv);\n}\n"},5253:e=>{e.exports="varying vec2 vUv;\n\nvoid main() {\n gl_Position = vec4(position, 1.0);\n\n vUv = uv;\n}\n"},4740:e=>{function t(){this._events={}}const n=t.prototype;n.on=function(e,t){return this._events[e]=this._events[e]||[],this._events[e].unshift(t),t},n.once=function(e,t){const n=this;return this.on(e,function r(i){n.off(e,r),void 0!==i?t(i):t()})},n.off=function(e,t){if(!this.has(e))return;if(1===arguments.length)return this._events[e]=null,void delete this._events[e];const n=this._events[e].indexOf(t);-1!==n&&this._events[e].splice(n,1)},n.trigger=function(e,t){if(this.has(e))for(let n=this._events[e].length-1;n>=0;n--)void 0!==t?this._events[e][n](t):this._events[e][n]()},n.has=function(e){return e in this._events!=0&&0!==this._events[e].length},n.destroy=function(){for(const e in this._events)this._events[e]=null;this._events=null},t.EventEmitterMicro=t,e.exports=t},1427:e=>{function t(){this._events={}}const n=t.prototype;n.on=function(e,t){return this._events[e]=this._events[e]||[],this._events[e].unshift(t),t},n.once=function(e,t){const n=this;return this.on(e,function r(i){n.off(e,r),void 0!==i?t(i):t()})},n.off=function(e,t){if(!this.has(e))return;if(1===arguments.length)return this._events[e]=null,void delete this._events[e];const n=this._events[e].indexOf(t);-1!==n&&this._events[e].splice(n,1)},n.trigger=function(e,t){if(this.has(e))for(let n=this._events[e].length-1;n>=0;n--)void 0!==t?this._events[e][n](t):this._events[e][n]()},n.has=function(e){return e in this._events!=0&&0!==this._events[e].length},n.destroy=function(){for(const e in this._events)this._events[e]=null;this._events=null},t.EventEmitterMicro=t,e.exports=t},8162:(e,t,n)=>{const r=n(361),i=(e,t)=>{for(const n in e)e[n]&&"object"==typeof e[n]?(t(n,e,e[n]),i(e[n],t)):t(n,e,e[n])},a=e=>{for(const t in e)e[t]&&"object"==typeof e[t]&&(a(e[t]),0===Object.keys(e[t]).length&&delete e[t]);return e};e.exports={assign:(e,t={})=>{const n=r(e);for(const[e,r]of Object.entries(t))n[e]=r;return n},clearEmpties:a,traverse:i}},9247:e=>{e.exports={ALL:/\.(avif|bin|exr|gbl|gltf|hdr|jpe?g|ktx2?|png|json|lsd|webp)/i,BLOB_FILES:"{avif,bin,exr,glb,gltf,hdr,jpg,jpeg,ktx,ktx2,png,json,lsd,webp}",BLOB_IMAGES:"{avif,exr,hdr,jpg,jpeg,png,webp}",EXR:/\.exr/i,GLTF:/\.(gltf|glb)/i,HDR:/\.hdr/i,IBLS:/\.(exr|hdr)/i,IMAGES:/\.(avif|exr|png|jpe?g|hdr|ktx2?|webp)/i,JSON:/\.(json|lsd)/i,KTX:/\.ktx2?/i,LSD:/\.(lsd)/i,MP4:/\.mp4/i,OBJECTS:/\.(json|glb|gltf|lsd)/i,TEXTURES:/\.(exr|hdr|ktx2?)/i}},4468:(e,t,n)=>{"use strict";n.r(t),n.d(t,{ACESFilmicToneMapping:()=>ie,AddEquation:()=>E,AddOperation:()=>$,AdditiveAnimationBlendMode:()=>Gt,AdditiveBlending:()=>y,AgXToneMapping:()=>se,AlphaFormat:()=>Ge,AlwaysCompare:()=>In,AlwaysDepth:()=>H,AlwaysStencilFunc:()=>bn,AmbientLight:()=>mp,AnimationAction:()=>af,AnimationClip:()=>kd,AnimationLoader:()=>Xd,AnimationMixer:()=>of,AnimationObjectGroup:()=>rf,AnimationUtils:()=>Sd,ArcCurve:()=>ju,ArrayCamera:()=>jl,ArrowHelper:()=>$f,AttachedBindMode:()=>le,Audio:()=>Vp,AudioAnalyser:()=>Xp,AudioContext:()=>Tp,AudioListener:()=>Gp,AudioLoader:()=>Bp,AxesHelper:()=>em,BackSide:()=>m,BasicDepthPacking:()=>jt,BasicShadowMap:()=>u,BatchedMesh:()=>mu,Bone:()=>Fc,BooleanKeyframeTrack:()=>Pd,Box2:()=>bf,Box3:()=>Ur,Box3Helper:()=>Xf,BoxGeometry:()=>ja,BoxHelper:()=>qf,BufferAttribute:()=>la,BufferGeometry:()=>Ma,BufferGeometryLoader:()=>xp,ByteType:()=>Be,Cache:()=>Gd,Camera:()=>Ja,CameraHelper:()=>Hf,CanvasTexture:()=>Vu,CapsuleGeometry:()=>dh,CatmullRomCurve3:()=>Ju,CineonToneMapping:()=>re,CircleGeometry:()=>ph,ClampToEdgeWrapping:()=>ge,Clock:()=>Up,Color:()=>Ji,ColorKeyframeTrack:()=>Ld,ColorManagement:()=>fr,CompressedArrayTexture:()=>Qu,CompressedCubeTexture:()=>Gu,CompressedTexture:()=>ku,CompressedTextureLoader:()=>Yd,ConeGeometry:()=>mh,ConstantAlphaFactor:()=>G,ConstantColorFactor:()=>k,CubeCamera:()=>rs,CubeReflectionMapping:()=>he,CubeRefractionMapping:()=>de,CubeTexture:()=>is,CubeTextureLoader:()=>Jd,CubeUVReflectionMapping:()=>me,CubicBezierCurve:()=>th,CubicBezierCurve3:()=>nh,CubicInterpolant:()=>Id,CullFaceBack:()=>o,CullFaceFront:()=>l,CullFaceFrontBack:()=>c,CullFaceNone:()=>s,Curve:()=>zu,CurvePath:()=>ch,CustomBlending:()=>x,CustomToneMapping:()=>ae,CylinderGeometry:()=>fh,Cylindrical:()=>vf,Data3DTexture:()=>Tr,DataArrayTexture:()=>Cr,DataTexture:()=>Nc,DataTextureLoader:()=>Zd,DataUtils:()=>aa,DecrementStencilOp:()=>cn,DecrementWrapStencilOp:()=>hn,DefaultLoadingManager:()=>zd,DepthFormat:()=>We,DepthStencilFormat:()=>qe,DepthTexture:()=>$s,DetachedBindMode:()=>ce,DirectionalLight:()=>fp,DirectionalLightHelper:()=>Gf,DiscreteInterpolant:()=>Bd,DisplayP3ColorSpace:()=>Zt,DodecahedronGeometry:()=>gh,DoubleSide:()=>A,DstAlphaFactor:()=>O,DstColorFactor:()=>D,DynamicCopyUsage:()=>Dn,DynamicDrawUsage:()=>Bn,DynamicReadUsage:()=>Ln,EdgesGeometry:()=>xh,EllipseCurve:()=>Hu,EqualCompare:()=>En,EqualDepth:()=>q,EqualStencilFunc:()=>mn,EquirectangularReflectionMapping:()=>pe,EquirectangularRefractionMapping:()=>fe,Euler:()=>vi,EventDispatcher:()=>Vn,ExtrudeGeometry:()=>Jh,FileLoader:()=>qd,Float16BufferAttribute:()=>Aa,Float32BufferAttribute:()=>ga,FloatType:()=>Ue,Fog:()=>rc,FogExp2:()=>nc,FramebufferTexture:()=>Nu,FrontSide:()=>f,Frustum:()=>ds,GLBufferAttribute:()=>df,GLSL1:()=>Nn,GLSL3:()=>kn,GreaterCompare:()=>Mn,GreaterDepth:()=>Y,GreaterEqualCompare:()=>Cn,GreaterEqualDepth:()=>X,GreaterEqualStencilFunc:()=>yn,GreaterStencilFunc:()=>gn,GridHelper:()=>Df,Group:()=>Wl,HalfFloatType:()=>De,HemisphereLight:()=>tp,HemisphereLightHelper:()=>Uf,IcosahedronGeometry:()=>$h,ImageBitmapLoader:()=>Cp,ImageLoader:()=>Kd,ImageUtils:()=>vr,IncrementStencilOp:()=>ln,IncrementWrapStencilOp:()=>un,InstancedBufferAttribute:()=>Vc,InstancedBufferGeometry:()=>_p,InstancedInterleavedBuffer:()=>hf,InstancedMesh:()=>Kc,Int16BufferAttribute:()=>da,Int32BufferAttribute:()=>fa,Int8BufferAttribute:()=>ca,IntType:()=>Le,InterleavedBuffer:()=>ac,InterleavedBufferAttribute:()=>oc,Interpolant:()=>Cd,InterpolateDiscrete:()=>Ot,InterpolateLinear:()=>Ut,InterpolateSmooth:()=>Dt,InvertStencilOp:()=>dn,KeepStencilOp:()=>sn,KeyframeTrack:()=>Rd,LOD:()=>Sc,LatheGeometry:()=>hh,Layers:()=>yi,LessCompare:()=>xn,LessDepth:()=>j,LessEqualCompare:()=>wn,LessEqualDepth:()=>W,LessEqualStencilFunc:()=>An,LessStencilFunc:()=>fn,Light:()=>ep,LightProbe:()=>vp,Line:()=>wu,Line3:()=>Ef,LineBasicMaterial:()=>Au,LineCurve:()=>rh,LineCurve3:()=>ih,LineDashedMaterial:()=>bd,LineLoop:()=>Tu,LineSegments:()=>Iu,LinearDisplayP3ColorSpace:()=>$t,LinearFilter:()=>we,LinearInterpolant:()=>Td,LinearMipMapLinearFilter:()=>Ie,LinearMipMapNearestFilter:()=>Se,LinearMipmapLinearFilter:()=>Ce,LinearMipmapNearestFilter:()=>Me,LinearSRGBColorSpace:()=>Jt,LinearToneMapping:()=>te,LinearTransfer:()=>en,Loader:()=>Hd,LoaderUtils:()=>bp,LoadingManager:()=>Vd,LoopOnce:()=>Rt,LoopPingPong:()=>Lt,LoopRepeat:()=>Pt,LuminanceAlphaFormat:()=>je,LuminanceFormat:()=>He,MOUSE:()=>i,Material:()=>ea,MaterialLoader:()=>yp,MathUtils:()=>$n,Matrix3:()=>tr,Matrix4:()=>li,MaxEquation:()=>C,Mesh:()=>za,MeshBasicMaterial:()=>ta,MeshDepthMaterial:()=>kl,MeshDistanceMaterial:()=>Ql,MeshLambertMaterial:()=>vd,MeshMatcapMaterial:()=>yd,MeshNormalMaterial:()=>gd,MeshPhongMaterial:()=>md,MeshPhysicalMaterial:()=>fd,MeshStandardMaterial:()=>pd,MeshToonMaterial:()=>Ad,MinEquation:()=>S,MirroredRepeatWrapping:()=>ve,MixOperation:()=>Z,MultiplyBlending:()=>_,MultiplyOperation:()=>J,NearestFilter:()=>ye,NearestMipMapLinearFilter:()=>Ee,NearestMipMapNearestFilter:()=>_e,NearestMipmapLinearFilter:()=>xe,NearestMipmapNearestFilter:()=>be,NeutralToneMapping:()=>oe,NeverCompare:()=>_n,NeverDepth:()=>z,NeverStencilFunc:()=>pn,NoBlending:()=>g,NoColorSpace:()=>Yt,NoToneMapping:()=>ee,NormalAnimationBlendMode:()=>Qt,NormalBlending:()=>v,NotEqualCompare:()=>Sn,NotEqualDepth:()=>K,NotEqualStencilFunc:()=>vn,NumberKeyframeTrack:()=>Od,Object3D:()=>Ui,ObjectLoader:()=>Ep,ObjectSpaceNormalMap:()=>Xt,OctahedronGeometry:()=>ed,OneFactor:()=>T,OneMinusConstantAlphaFactor:()=>V,OneMinusConstantColorFactor:()=>Q,OneMinusDstAlphaFactor:()=>U,OneMinusDstColorFactor:()=>F,OneMinusSrcAlphaFactor:()=>L,OneMinusSrcColorFactor:()=>R,OrthographicCamera:()=>Is,P3Primaries:()=>rn,PCFShadowMap:()=>h,PCFSoftShadowMap:()=>d,PMREMGenerator:()=>Gs,Path:()=>uh,PerspectiveCamera:()=>ts,Plane:()=>cs,PlaneGeometry:()=>ms,PlaneHelper:()=>Yf,PointLight:()=>dp,PointLightHelper:()=>Rf,Points:()=>Uu,PointsMaterial:()=>Bu,PolarGridHelper:()=>Ff,PolyhedronGeometry:()=>Ah,PositionalAudio:()=>qp,PropertyBinding:()=>nf,PropertyMixer:()=>Yp,QuadraticBezierCurve:()=>ah,QuadraticBezierCurve3:()=>sh,Quaternion:()=>Rr,QuaternionKeyframeTrack:()=>Dd,QuaternionLinearInterpolant:()=>Ud,RED_GREEN_RGTC2_Format:()=>Tt,RED_RGTC1_Format:()=>Ct,REVISION:()=>r,RGBADepthPacking:()=>Wt,RGBAFormat:()=>ze,RGBAIntegerFormat:()=>Ze,RGBA_ASTC_10x10_Format:()=>_t,RGBA_ASTC_10x5_Format:()=>vt,RGBA_ASTC_10x6_Format:()=>yt,RGBA_ASTC_10x8_Format:()=>bt,RGBA_ASTC_12x10_Format:()=>xt,RGBA_ASTC_12x12_Format:()=>Et,RGBA_ASTC_4x4_Format:()=>ut,RGBA_ASTC_5x4_Format:()=>ht,RGBA_ASTC_5x5_Format:()=>dt,RGBA_ASTC_6x5_Format:()=>pt,RGBA_ASTC_6x6_Format:()=>ft,RGBA_ASTC_8x5_Format:()=>mt,RGBA_ASTC_8x6_Format:()=>At,RGBA_ASTC_8x8_Format:()=>gt,RGBA_BPTC_Format:()=>wt,RGBA_ETC2_EAC_Format:()=>ct,RGBA_PVRTC_2BPPV1_Format:()=>st,RGBA_PVRTC_4BPPV1_Format:()=>at,RGBA_S3TC_DXT1_Format:()=>et,RGBA_S3TC_DXT3_Format:()=>tt,RGBA_S3TC_DXT5_Format:()=>nt,RGBFormat:()=>Ve,RGB_BPTC_SIGNED_Format:()=>Mt,RGB_BPTC_UNSIGNED_Format:()=>St,RGB_ETC1_Format:()=>ot,RGB_ETC2_Format:()=>lt,RGB_PVRTC_2BPPV1_Format:()=>it,RGB_PVRTC_4BPPV1_Format:()=>rt,RGB_S3TC_DXT1_Format:()=>$e,RGFormat:()=>Ke,RGIntegerFormat:()=>Je,RawShaderMaterial:()=>dd,Ray:()=>oi,Raycaster:()=>ff,Rec709Primaries:()=>nn,RectAreaLight:()=>Ap,RedFormat:()=>Xe,RedIntegerFormat:()=>Ye,ReinhardToneMapping:()=>ne,RenderTarget:()=>Mr,RepeatWrapping:()=>Ae,ReplaceStencilOp:()=>on,ReverseSubtractEquation:()=>M,RingGeometry:()=>td,SIGNED_RED_GREEN_RGTC2_Format:()=>Bt,SIGNED_RED_RGTC1_Format:()=>It,SRGBColorSpace:()=>Kt,SRGBTransfer:()=>tn,Scene:()=>ic,ShaderChunk:()=>As,ShaderLib:()=>vs,ShaderMaterial:()=>Ka,ShadowMaterial:()=>hd,Shape:()=>Eh,ShapeGeometry:()=>nd,ShapePath:()=>tm,ShapeUtils:()=>Xh,ShortType:()=>Re,Skeleton:()=>Gc,SkeletonHelper:()=>Tf,SkinnedMesh:()=>Dc,Source:()=>br,Sphere:()=>$r,SphereGeometry:()=>rd,Spherical:()=>gf,SphericalHarmonics3:()=>gp,SplineCurve:()=>oh,SpotLight:()=>op,SpotLightHelper:()=>Mf,Sprite:()=>xc,SpriteMaterial:()=>lc,SrcAlphaFactor:()=>P,SrcAlphaSaturateFactor:()=>N,SrcColorFactor:()=>B,StaticCopyUsage:()=>Un,StaticDrawUsage:()=>Tn,StaticReadUsage:()=>Pn,StereoCamera:()=>Op,StreamCopyUsage:()=>Fn,StreamDrawUsage:()=>Rn,StreamReadUsage:()=>On,StringKeyframeTrack:()=>Fd,SubtractEquation:()=>w,SubtractiveBlending:()=>b,TOUCH:()=>a,TangentSpaceNormalMap:()=>qt,TetrahedronGeometry:()=>id,Texture:()=>Er,TextureLoader:()=>$d,TorusGeometry:()=>ad,TorusKnotGeometry:()=>sd,Triangle:()=>Wi,TriangleFanDrawMode:()=>Ht,TriangleStripDrawMode:()=>zt,TrianglesDrawMode:()=>Vt,TubeGeometry:()=>od,UVMapping:()=>ue,Uint16BufferAttribute:()=>pa,Uint32BufferAttribute:()=>ma,Uint8BufferAttribute:()=>ua,Uint8ClampedBufferAttribute:()=>ha,Uniform:()=>lf,UniformsGroup:()=>uf,UniformsLib:()=>gs,UniformsUtils:()=>Ya,UnsignedByteType:()=>Te,UnsignedInt248Type:()=>ke,UnsignedInt5999Type:()=>Qe,UnsignedIntType:()=>Oe,UnsignedShort4444Type:()=>Fe,UnsignedShort5551Type:()=>Ne,UnsignedShortType:()=>Pe,VSMShadowMap:()=>p,Vector2:()=>er,Vector3:()=>Pr,Vector4:()=>wr,VectorKeyframeTrack:()=>Nd,VideoTexture:()=>Fu,WebGL3DRenderTarget:()=>Br,WebGLArrayRenderTarget:()=>Ir,WebGLCoordinateSystem:()=>Qn,WebGLCubeRenderTarget:()=>as,WebGLMultipleRenderTargets:()=>nm,WebGLRenderTarget:()=>Sr,WebGLRenderer:()=>tc,WebGLUtils:()=>Hl,WebGPUCoordinateSystem:()=>Gn,WireframeGeometry:()=>ld,WrapAroundEnding:()=>kt,ZeroCurvatureEnding:()=>Ft,ZeroFactor:()=>I,ZeroSlopeEnding:()=>Nt,ZeroStencilOp:()=>an,createCanvasElement:()=>or}); /** * @license * Copyright 2010-2024 Three.js Authors * SPDX-License-Identifier: MIT */ const r="165",i={LEFT:0,MIDDLE:1,RIGHT:2,ROTATE:0,DOLLY:1,PAN:2},a={ROTATE:0,PAN:1,DOLLY_PAN:2,DOLLY_ROTATE:3},s=0,o=1,l=2,c=3,u=0,h=1,d=2,p=3,f=0,m=1,A=2,g=0,v=1,y=2,b=3,_=4,x=5,E=100,w=101,M=102,S=103,C=104,I=200,T=201,B=202,R=203,P=204,L=205,O=206,U=207,D=208,F=209,N=210,k=211,Q=212,G=213,V=214,z=0,H=1,j=2,W=3,q=4,X=5,Y=6,K=7,J=0,Z=1,$=2,ee=0,te=1,ne=2,re=3,ie=4,ae=5,se=6,oe=7,le="attached",ce="detached",ue=300,he=301,de=302,pe=303,fe=304,me=306,Ae=1e3,ge=1001,ve=1002,ye=1003,be=1004,_e=1004,xe=1005,Ee=1005,we=1006,Me=1007,Se=1007,Ce=1008,Ie=1008,Te=1009,Be=1010,Re=1011,Pe=1012,Le=1013,Oe=1014,Ue=1015,De=1016,Fe=1017,Ne=1018,ke=1020,Qe=35902,Ge=1021,Ve=1022,ze=1023,He=1024,je=1025,We=1026,qe=1027,Xe=1028,Ye=1029,Ke=1030,Je=1031,Ze=1033,$e=33776,et=33777,tt=33778,nt=33779,rt=35840,it=35841,at=35842,st=35843,ot=36196,lt=37492,ct=37496,ut=37808,ht=37809,dt=37810,pt=37811,ft=37812,mt=37813,At=37814,gt=37815,vt=37816,yt=37817,bt=37818,_t=37819,xt=37820,Et=37821,wt=36492,Mt=36494,St=36495,Ct=36283,It=36284,Tt=36285,Bt=36286,Rt=2200,Pt=2201,Lt=2202,Ot=2300,Ut=2301,Dt=2302,Ft=2400,Nt=2401,kt=2402,Qt=2500,Gt=2501,Vt=0,zt=1,Ht=2,jt=3200,Wt=3201,qt=0,Xt=1,Yt="",Kt="srgb",Jt="srgb-linear",Zt="display-p3",$t="display-p3-linear",en="linear",tn="srgb",nn="rec709",rn="p3",an=0,sn=7680,on=7681,ln=7682,cn=7683,un=34055,hn=34056,dn=5386,pn=512,fn=513,mn=514,An=515,gn=516,vn=517,yn=518,bn=519,_n=512,xn=513,En=514,wn=515,Mn=516,Sn=517,Cn=518,In=519,Tn=35044,Bn=35048,Rn=35040,Pn=35045,Ln=35049,On=35041,Un=35046,Dn=35050,Fn=35042,Nn="100",kn="300 es",Qn=2e3,Gn=2001;class Vn{addEventListener(e,t){void 0===this._listeners&&(this._listeners={});const n=this._listeners;void 0===n[e]&&(n[e]=[]),-1===n[e].indexOf(t)&&n[e].push(t)}hasEventListener(e,t){if(void 0===this._listeners)return!1;const n=this._listeners;return void 0!==n[e]&&-1!==n[e].indexOf(t)}removeEventListener(e,t){if(void 0===this._listeners)return;const n=this._listeners[e];if(void 0!==n){const e=n.indexOf(t);-1!==e&&n.splice(e,1)}}dispatchEvent(e){if(void 0===this._listeners)return;const t=this._listeners[e.type];if(void 0!==t){e.target=this;const n=t.slice(0);for(let t=0,r=n.length;t>8&255]+zn[e>>16&255]+zn[e>>24&255]+"-"+zn[255&t]+zn[t>>8&255]+"-"+zn[t>>16&15|64]+zn[t>>24&255]+"-"+zn[63&n|128]+zn[n>>8&255]+"-"+zn[n>>16&255]+zn[n>>24&255]+zn[255&r]+zn[r>>8&255]+zn[r>>16&255]+zn[r>>24&255]).toLowerCase()}function Xn(e,t,n){return Math.max(t,Math.min(n,e))}function Yn(e,t){return(e%t+t)%t}function Kn(e,t,n){return(1-n)*e+n*t}function Jn(e,t){switch(t.constructor){case Float32Array:return e;case Uint32Array:return e/4294967295;case Uint16Array:return e/65535;case Uint8Array:return e/255;case Int32Array:return Math.max(e/2147483647,-1);case Int16Array:return Math.max(e/32767,-1);case Int8Array:return Math.max(e/127,-1);default:throw new Error("Invalid component type.")}}function Zn(e,t){switch(t.constructor){case Float32Array:return e;case Uint32Array:return Math.round(4294967295*e);case Uint16Array:return Math.round(65535*e);case Uint8Array:return Math.round(255*e);case Int32Array:return Math.round(2147483647*e);case Int16Array:return Math.round(32767*e);case Int8Array:return Math.round(127*e);default:throw new Error("Invalid component type.")}}const $n={DEG2RAD:jn,RAD2DEG:Wn,generateUUID:qn,clamp:Xn,euclideanModulo:Yn,mapLinear:function(e,t,n,r,i){return r+(e-t)*(i-r)/(n-t)},inverseLerp:function(e,t,n){return e!==t?(n-e)/(t-e):0},lerp:Kn,damp:function(e,t,n,r){return Kn(e,t,1-Math.exp(-n*r))},pingpong:function(e,t=1){return t-Math.abs(Yn(e,2*t)-t)},smoothstep:function(e,t,n){return e<=t?0:e>=n?1:(e=(e-t)/(n-t))*e*(3-2*e)},smootherstep:function(e,t,n){return e<=t?0:e>=n?1:(e=(e-t)/(n-t))*e*e*(e*(6*e-15)+10)},randInt:function(e,t){return e+Math.floor(Math.random()*(t-e+1))},randFloat:function(e,t){return e+Math.random()*(t-e)},randFloatSpread:function(e){return e*(.5-Math.random())},seededRandom:function(e){void 0!==e&&(Hn=e);let t=Hn+=1831565813;return t=Math.imul(t^t>>>15,1|t),t^=t+Math.imul(t^t>>>7,61|t),((t^t>>>14)>>>0)/4294967296},degToRad:function(e){return e*jn},radToDeg:function(e){return e*Wn},isPowerOfTwo:function(e){return!(e&e-1)&&0!==e},ceilPowerOfTwo:function(e){return Math.pow(2,Math.ceil(Math.log(e)/Math.LN2))},floorPowerOfTwo:function(e){return Math.pow(2,Math.floor(Math.log(e)/Math.LN2))},setQuaternionFromProperEuler:function(e,t,n,r,i){const a=Math.cos,s=Math.sin,o=a(n/2),l=s(n/2),c=a((t+r)/2),u=s((t+r)/2),h=a((t-r)/2),d=s((t-r)/2),p=a((r-t)/2),f=s((r-t)/2);switch(i){case"XYX":e.set(o*u,l*h,l*d,o*c);break;case"YZY":e.set(l*d,o*u,l*h,o*c);break;case"ZXZ":e.set(l*h,l*d,o*u,o*c);break;case"XZX":e.set(o*u,l*f,l*p,o*c);break;case"YXY":e.set(l*p,o*u,l*f,o*c);break;case"ZYZ":e.set(l*f,l*p,o*u,o*c);break;default:console.warn("THREE.MathUtils: .setQuaternionFromProperEuler() encountered an unknown order: "+i)}},normalize:Zn,denormalize:Jn};class er{constructor(e=0,t=0){er.prototype.isVector2=!0,this.x=e,this.y=t}get width(){return this.x}set width(e){this.x=e}get height(){return this.y}set height(e){this.y=e}set(e,t){return this.x=e,this.y=t,this}setScalar(e){return this.x=e,this.y=e,this}setX(e){return this.x=e,this}setY(e){return this.y=e,this}setComponent(e,t){switch(e){case 0:this.x=t;break;case 1:this.y=t;break;default:throw new Error("index is out of range: "+e)}return this}getComponent(e){switch(e){case 0:return this.x;case 1:return this.y;default:throw new Error("index is out of range: "+e)}}clone(){return new this.constructor(this.x,this.y)}copy(e){return this.x=e.x,this.y=e.y,this}add(e){return this.x+=e.x,this.y+=e.y,this}addScalar(e){return this.x+=e,this.y+=e,this}addVectors(e,t){return this.x=e.x+t.x,this.y=e.y+t.y,this}addScaledVector(e,t){return this.x+=e.x*t,this.y+=e.y*t,this}sub(e){return this.x-=e.x,this.y-=e.y,this}subScalar(e){return this.x-=e,this.y-=e,this}subVectors(e,t){return this.x=e.x-t.x,this.y=e.y-t.y,this}multiply(e){return this.x*=e.x,this.y*=e.y,this}multiplyScalar(e){return this.x*=e,this.y*=e,this}divide(e){return this.x/=e.x,this.y/=e.y,this}divideScalar(e){return this.multiplyScalar(1/e)}applyMatrix3(e){const t=this.x,n=this.y,r=e.elements;return this.x=r[0]*t+r[3]*n+r[6],this.y=r[1]*t+r[4]*n+r[7],this}min(e){return this.x=Math.min(this.x,e.x),this.y=Math.min(this.y,e.y),this}max(e){return this.x=Math.max(this.x,e.x),this.y=Math.max(this.y,e.y),this}clamp(e,t){return this.x=Math.max(e.x,Math.min(t.x,this.x)),this.y=Math.max(e.y,Math.min(t.y,this.y)),this}clampScalar(e,t){return this.x=Math.max(e,Math.min(t,this.x)),this.y=Math.max(e,Math.min(t,this.y)),this}clampLength(e,t){const n=this.length();return this.divideScalar(n||1).multiplyScalar(Math.max(e,Math.min(t,n)))}floor(){return this.x=Math.floor(this.x),this.y=Math.floor(this.y),this}ceil(){return this.x=Math.ceil(this.x),this.y=Math.ceil(this.y),this}round(){return this.x=Math.round(this.x),this.y=Math.round(this.y),this}roundToZero(){return this.x=Math.trunc(this.x),this.y=Math.trunc(this.y),this}negate(){return this.x=-this.x,this.y=-this.y,this}dot(e){return this.x*e.x+this.y*e.y}cross(e){return this.x*e.y-this.y*e.x}lengthSq(){return this.x*this.x+this.y*this.y}length(){return Math.sqrt(this.x*this.x+this.y*this.y)}manhattanLength(){return Math.abs(this.x)+Math.abs(this.y)}normalize(){return this.divideScalar(this.length()||1)}angle(){return Math.atan2(-this.y,-this.x)+Math.PI}angleTo(e){const t=Math.sqrt(this.lengthSq()*e.lengthSq());if(0===t)return Math.PI/2;const n=this.dot(e)/t;return Math.acos(Xn(n,-1,1))}distanceTo(e){return Math.sqrt(this.distanceToSquared(e))}distanceToSquared(e){const t=this.x-e.x,n=this.y-e.y;return t*t+n*n}manhattanDistanceTo(e){return Math.abs(this.x-e.x)+Math.abs(this.y-e.y)}setLength(e){return this.normalize().multiplyScalar(e)}lerp(e,t){return this.x+=(e.x-this.x)*t,this.y+=(e.y-this.y)*t,this}lerpVectors(e,t,n){return this.x=e.x+(t.x-e.x)*n,this.y=e.y+(t.y-e.y)*n,this}equals(e){return e.x===this.x&&e.y===this.y}fromArray(e,t=0){return this.x=e[t],this.y=e[t+1],this}toArray(e=[],t=0){return e[t]=this.x,e[t+1]=this.y,e}fromBufferAttribute(e,t){return this.x=e.getX(t),this.y=e.getY(t),this}rotateAround(e,t){const n=Math.cos(t),r=Math.sin(t),i=this.x-e.x,a=this.y-e.y;return this.x=i*n-a*r+e.x,this.y=i*r+a*n+e.y,this}random(){return this.x=Math.random(),this.y=Math.random(),this}*[Symbol.iterator](){yield this.x,yield this.y}}class tr{constructor(e,t,n,r,i,a,s,o,l){tr.prototype.isMatrix3=!0,this.elements=[1,0,0,0,1,0,0,0,1],void 0!==e&&this.set(e,t,n,r,i,a,s,o,l)}set(e,t,n,r,i,a,s,o,l){const c=this.elements;return c[0]=e,c[1]=r,c[2]=s,c[3]=t,c[4]=i,c[5]=o,c[6]=n,c[7]=a,c[8]=l,this}identity(){return this.set(1,0,0,0,1,0,0,0,1),this}copy(e){const t=this.elements,n=e.elements;return t[0]=n[0],t[1]=n[1],t[2]=n[2],t[3]=n[3],t[4]=n[4],t[5]=n[5],t[6]=n[6],t[7]=n[7],t[8]=n[8],this}extractBasis(e,t,n){return e.setFromMatrix3Column(this,0),t.setFromMatrix3Column(this,1),n.setFromMatrix3Column(this,2),this}setFromMatrix4(e){const t=e.elements;return this.set(t[0],t[4],t[8],t[1],t[5],t[9],t[2],t[6],t[10]),this}multiply(e){return this.multiplyMatrices(this,e)}premultiply(e){return this.multiplyMatrices(e,this)}multiplyMatrices(e,t){const n=e.elements,r=t.elements,i=this.elements,a=n[0],s=n[3],o=n[6],l=n[1],c=n[4],u=n[7],h=n[2],d=n[5],p=n[8],f=r[0],m=r[3],A=r[6],g=r[1],v=r[4],y=r[7],b=r[2],_=r[5],x=r[8];return i[0]=a*f+s*g+o*b,i[3]=a*m+s*v+o*_,i[6]=a*A+s*y+o*x,i[1]=l*f+c*g+u*b,i[4]=l*m+c*v+u*_,i[7]=l*A+c*y+u*x,i[2]=h*f+d*g+p*b,i[5]=h*m+d*v+p*_,i[8]=h*A+d*y+p*x,this}multiplyScalar(e){const t=this.elements;return t[0]*=e,t[3]*=e,t[6]*=e,t[1]*=e,t[4]*=e,t[7]*=e,t[2]*=e,t[5]*=e,t[8]*=e,this}determinant(){const e=this.elements,t=e[0],n=e[1],r=e[2],i=e[3],a=e[4],s=e[5],o=e[6],l=e[7],c=e[8];return t*a*c-t*s*l-n*i*c+n*s*o+r*i*l-r*a*o}invert(){const e=this.elements,t=e[0],n=e[1],r=e[2],i=e[3],a=e[4],s=e[5],o=e[6],l=e[7],c=e[8],u=c*a-s*l,h=s*o-c*i,d=l*i-a*o,p=t*u+n*h+r*d;if(0===p)return this.set(0,0,0,0,0,0,0,0,0);const f=1/p;return e[0]=u*f,e[1]=(r*l-c*n)*f,e[2]=(s*n-r*a)*f,e[3]=h*f,e[4]=(c*t-r*o)*f,e[5]=(r*i-s*t)*f,e[6]=d*f,e[7]=(n*o-l*t)*f,e[8]=(a*t-n*i)*f,this}transpose(){let e;const t=this.elements;return e=t[1],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(e){return this.setFromMatrix4(e).invert().transpose()}transposeIntoArray(e){const t=this.elements;return e[0]=t[0],e[1]=t[3],e[2]=t[6],e[3]=t[1],e[4]=t[4],e[5]=t[7],e[6]=t[2],e[7]=t[5],e[8]=t[8],this}setUvTransform(e,t,n,r,i,a,s){const o=Math.cos(i),l=Math.sin(i);return this.set(n*o,n*l,-n*(o*a+l*s)+a+e,-r*l,r*o,-r*(-l*a+o*s)+s+t,0,0,1),this}scale(e,t){return this.premultiply(nr.makeScale(e,t)),this}rotate(e){return this.premultiply(nr.makeRotation(-e)),this}translate(e,t){return this.premultiply(nr.makeTranslation(e,t)),this}makeTranslation(e,t){return e.isVector2?this.set(1,0,e.x,0,1,e.y,0,0,1):this.set(1,0,e,0,1,t,0,0,1),this}makeRotation(e){const t=Math.cos(e),n=Math.sin(e);return this.set(t,-n,0,n,t,0,0,0,1),this}makeScale(e,t){return this.set(e,0,0,0,t,0,0,0,1),this}equals(e){const t=this.elements,n=e.elements;for(let e=0;e<9;e++)if(t[e]!==n[e])return!1;return!0}fromArray(e,t=0){for(let n=0;n<9;n++)this.elements[n]=e[n+t];return this}toArray(e=[],t=0){const n=this.elements;return e[t]=n[0],e[t+1]=n[1],e[t+2]=n[2],e[t+3]=n[3],e[t+4]=n[4],e[t+5]=n[5],e[t+6]=n[6],e[t+7]=n[7],e[t+8]=n[8],e}clone(){return(new this.constructor).fromArray(this.elements)}}const nr=new tr;function rr(e){for(let t=e.length-1;t>=0;--t)if(e[t]>=65535)return!0;return!1}const ir={Int8Array:Int8Array,Uint8Array:Uint8Array,Uint8ClampedArray:Uint8ClampedArray,Int16Array:Int16Array,Uint16Array:Uint16Array,Int32Array:Int32Array,Uint32Array:Uint32Array,Float32Array:Float32Array,Float64Array:Float64Array};function ar(e,t){return new ir[e](t)}function sr(e){return document.createElementNS("http://www.w3.org/1999/xhtml",e)}function or(){const e=sr("canvas");return e.style.display="block",e}const lr={};function cr(e){e in lr||(lr[e]=!0,console.warn(e))}const ur=(new tr).set(.8224621,.177538,0,.0331941,.9668058,0,.0170827,.0723974,.9105199),hr=(new tr).set(1.2249401,-.2249404,0,-.0420569,1.0420571,0,-.0196376,-.0786361,1.0982735),dr={[Jt]:{transfer:en,primaries:nn,toReference:e=>e,fromReference:e=>e},[Kt]:{transfer:tn,primaries:nn,toReference:e=>e.convertSRGBToLinear(),fromReference:e=>e.convertLinearToSRGB()},[$t]:{transfer:en,primaries:rn,toReference:e=>e.applyMatrix3(hr),fromReference:e=>e.applyMatrix3(ur)},[Zt]:{transfer:tn,primaries:rn,toReference:e=>e.convertSRGBToLinear().applyMatrix3(hr),fromReference:e=>e.applyMatrix3(ur).convertLinearToSRGB()}},pr=new Set([Jt,$t]),fr={enabled:!0,_workingColorSpace:Jt,get workingColorSpace(){return this._workingColorSpace},set workingColorSpace(e){if(!pr.has(e))throw new Error(`Unsupported working color space, "${e}".`);this._workingColorSpace=e},convert:function(e,t,n){if(!1===this.enabled||t===n||!t||!n)return e;const r=dr[t].toReference;return(0,dr[n].fromReference)(r(e))},fromWorkingColorSpace:function(e,t){return this.convert(e,this._workingColorSpace,t)},toWorkingColorSpace:function(e,t){return this.convert(e,t,this._workingColorSpace)},getPrimaries:function(e){return dr[e].primaries},getTransfer:function(e){return e===Yt?en:dr[e].transfer}};function mr(e){return e<.04045?.0773993808*e:Math.pow(.9478672986*e+.0521327014,2.4)}function Ar(e){return e<.0031308?12.92*e:1.055*Math.pow(e,.41666)-.055}let gr;class vr{static getDataURL(e){if(/^data:/i.test(e.src))return e.src;if("undefined"==typeof HTMLCanvasElement)return e.src;let t;if(e instanceof HTMLCanvasElement)t=e;else{void 0===gr&&(gr=sr("canvas")),gr.width=e.width,gr.height=e.height;const n=gr.getContext("2d");e instanceof ImageData?n.putImageData(e,0,0):n.drawImage(e,0,0,e.width,e.height),t=gr}return t.width>2048||t.height>2048?(console.warn("THREE.ImageUtils.getDataURL: Image converted to jpg for performance reasons",e),t.toDataURL("image/jpeg",.6)):t.toDataURL("image/png")}static sRGBToLinear(e){if("undefined"!=typeof HTMLImageElement&&e instanceof HTMLImageElement||"undefined"!=typeof HTMLCanvasElement&&e instanceof HTMLCanvasElement||"undefined"!=typeof ImageBitmap&&e instanceof ImageBitmap){const t=sr("canvas");t.width=e.width,t.height=e.height;const n=t.getContext("2d");n.drawImage(e,0,0,e.width,e.height);const r=n.getImageData(0,0,e.width,e.height),i=r.data;for(let e=0;e0&&(n.userData=this.userData),t||(e.textures[this.uuid]=n),n}dispose(){this.dispatchEvent({type:"dispose"})}transformUv(e){if(this.mapping!==ue)return e;if(e.applyMatrix3(this.matrix),e.x<0||e.x>1)switch(this.wrapS){case Ae:e.x=e.x-Math.floor(e.x);break;case ge:e.x=e.x<0?0:1;break;case ve:1===Math.abs(Math.floor(e.x)%2)?e.x=Math.ceil(e.x)-e.x:e.x=e.x-Math.floor(e.x)}if(e.y<0||e.y>1)switch(this.wrapT){case Ae:e.y=e.y-Math.floor(e.y);break;case ge:e.y=e.y<0?0:1;break;case ve:1===Math.abs(Math.floor(e.y)%2)?e.y=Math.ceil(e.y)-e.y:e.y=e.y-Math.floor(e.y)}return this.flipY&&(e.y=1-e.y),e}set needsUpdate(e){!0===e&&(this.version++,this.source.needsUpdate=!0)}set needsPMREMUpdate(e){!0===e&&this.pmremVersion++}}Er.DEFAULT_IMAGE=null,Er.DEFAULT_MAPPING=ue,Er.DEFAULT_ANISOTROPY=1;class wr{constructor(e=0,t=0,n=0,r=1){wr.prototype.isVector4=!0,this.x=e,this.y=t,this.z=n,this.w=r}get width(){return this.z}set width(e){this.z=e}get height(){return this.w}set height(e){this.w=e}set(e,t,n,r){return this.x=e,this.y=t,this.z=n,this.w=r,this}setScalar(e){return this.x=e,this.y=e,this.z=e,this.w=e,this}setX(e){return this.x=e,this}setY(e){return this.y=e,this}setZ(e){return this.z=e,this}setW(e){return this.w=e,this}setComponent(e,t){switch(e){case 0:this.x=t;break;case 1:this.y=t;break;case 2:this.z=t;break;case 3:this.w=t;break;default:throw new Error("index is out of range: "+e)}return this}getComponent(e){switch(e){case 0:return this.x;case 1:return this.y;case 2:return this.z;case 3:return this.w;default:throw new Error("index is out of range: "+e)}}clone(){return new this.constructor(this.x,this.y,this.z,this.w)}copy(e){return this.x=e.x,this.y=e.y,this.z=e.z,this.w=void 0!==e.w?e.w:1,this}add(e){return this.x+=e.x,this.y+=e.y,this.z+=e.z,this.w+=e.w,this}addScalar(e){return this.x+=e,this.y+=e,this.z+=e,this.w+=e,this}addVectors(e,t){return this.x=e.x+t.x,this.y=e.y+t.y,this.z=e.z+t.z,this.w=e.w+t.w,this}addScaledVector(e,t){return this.x+=e.x*t,this.y+=e.y*t,this.z+=e.z*t,this.w+=e.w*t,this}sub(e){return this.x-=e.x,this.y-=e.y,this.z-=e.z,this.w-=e.w,this}subScalar(e){return this.x-=e,this.y-=e,this.z-=e,this.w-=e,this}subVectors(e,t){return this.x=e.x-t.x,this.y=e.y-t.y,this.z=e.z-t.z,this.w=e.w-t.w,this}multiply(e){return this.x*=e.x,this.y*=e.y,this.z*=e.z,this.w*=e.w,this}multiplyScalar(e){return this.x*=e,this.y*=e,this.z*=e,this.w*=e,this}applyMatrix4(e){const t=this.x,n=this.y,r=this.z,i=this.w,a=e.elements;return this.x=a[0]*t+a[4]*n+a[8]*r+a[12]*i,this.y=a[1]*t+a[5]*n+a[9]*r+a[13]*i,this.z=a[2]*t+a[6]*n+a[10]*r+a[14]*i,this.w=a[3]*t+a[7]*n+a[11]*r+a[15]*i,this}divideScalar(e){return this.multiplyScalar(1/e)}setAxisAngleFromQuaternion(e){this.w=2*Math.acos(e.w);const t=Math.sqrt(1-e.w*e.w);return t<1e-4?(this.x=1,this.y=0,this.z=0):(this.x=e.x/t,this.y=e.y/t,this.z=e.z/t),this}setAxisAngleFromRotationMatrix(e){let t,n,r,i;const a=.01,s=.1,o=e.elements,l=o[0],c=o[4],u=o[8],h=o[1],d=o[5],p=o[9],f=o[2],m=o[6],A=o[10];if(Math.abs(c-h)o&&e>g?eg?o=0?1:-1,r=1-t*t;if(r>Number.EPSILON){const i=Math.sqrt(r),a=Math.atan2(i,t*n);e=Math.sin(e*a)/i,s=Math.sin(s*a)/i}const i=s*n;if(o=o*e+h*i,l=l*e+d*i,c=c*e+p*i,u=u*e+f*i,e===1-s){const e=1/Math.sqrt(o*o+l*l+c*c+u*u);o*=e,l*=e,c*=e,u*=e}}e[t]=o,e[t+1]=l,e[t+2]=c,e[t+3]=u}static multiplyQuaternionsFlat(e,t,n,r,i,a){const s=n[r],o=n[r+1],l=n[r+2],c=n[r+3],u=i[a],h=i[a+1],d=i[a+2],p=i[a+3];return e[t]=s*p+c*u+o*d-l*h,e[t+1]=o*p+c*h+l*u-s*d,e[t+2]=l*p+c*d+s*h-o*u,e[t+3]=c*p-s*u-o*h-l*d,e}get x(){return this._x}set x(e){this._x=e,this._onChangeCallback()}get y(){return this._y}set y(e){this._y=e,this._onChangeCallback()}get z(){return this._z}set z(e){this._z=e,this._onChangeCallback()}get w(){return this._w}set w(e){this._w=e,this._onChangeCallback()}set(e,t,n,r){return this._x=e,this._y=t,this._z=n,this._w=r,this._onChangeCallback(),this}clone(){return new this.constructor(this._x,this._y,this._z,this._w)}copy(e){return this._x=e.x,this._y=e.y,this._z=e.z,this._w=e.w,this._onChangeCallback(),this}setFromEuler(e,t=!0){const n=e._x,r=e._y,i=e._z,a=e._order,s=Math.cos,o=Math.sin,l=s(n/2),c=s(r/2),u=s(i/2),h=o(n/2),d=o(r/2),p=o(i/2);switch(a){case"XYZ":this._x=h*c*u+l*d*p,this._y=l*d*u-h*c*p,this._z=l*c*p+h*d*u,this._w=l*c*u-h*d*p;break;case"YXZ":this._x=h*c*u+l*d*p,this._y=l*d*u-h*c*p,this._z=l*c*p-h*d*u,this._w=l*c*u+h*d*p;break;case"ZXY":this._x=h*c*u-l*d*p,this._y=l*d*u+h*c*p,this._z=l*c*p+h*d*u,this._w=l*c*u-h*d*p;break;case"ZYX":this._x=h*c*u-l*d*p,this._y=l*d*u+h*c*p,this._z=l*c*p-h*d*u,this._w=l*c*u+h*d*p;break;case"YZX":this._x=h*c*u+l*d*p,this._y=l*d*u+h*c*p,this._z=l*c*p-h*d*u,this._w=l*c*u-h*d*p;break;case"XZY":this._x=h*c*u-l*d*p,this._y=l*d*u-h*c*p,this._z=l*c*p+h*d*u,this._w=l*c*u+h*d*p;break;default:console.warn("THREE.Quaternion: .setFromEuler() encountered an unknown order: "+a)}return!0===t&&this._onChangeCallback(),this}setFromAxisAngle(e,t){const n=t/2,r=Math.sin(n);return this._x=e.x*r,this._y=e.y*r,this._z=e.z*r,this._w=Math.cos(n),this._onChangeCallback(),this}setFromRotationMatrix(e){const t=e.elements,n=t[0],r=t[4],i=t[8],a=t[1],s=t[5],o=t[9],l=t[2],c=t[6],u=t[10],h=n+s+u;if(h>0){const e=.5/Math.sqrt(h+1);this._w=.25/e,this._x=(c-o)*e,this._y=(i-l)*e,this._z=(a-r)*e}else if(n>s&&n>u){const e=2*Math.sqrt(1+n-s-u);this._w=(c-o)/e,this._x=.25*e,this._y=(r+a)/e,this._z=(i+l)/e}else if(s>u){const e=2*Math.sqrt(1+s-n-u);this._w=(i-l)/e,this._x=(r+a)/e,this._y=.25*e,this._z=(o+c)/e}else{const e=2*Math.sqrt(1+u-n-s);this._w=(a-r)/e,this._x=(i+l)/e,this._y=(o+c)/e,this._z=.25*e}return this._onChangeCallback(),this}setFromUnitVectors(e,t){let n=e.dot(t)+1;return nMath.abs(e.z)?(this._x=-e.y,this._y=e.x,this._z=0,this._w=n):(this._x=0,this._y=-e.z,this._z=e.y,this._w=n)):(this._x=e.y*t.z-e.z*t.y,this._y=e.z*t.x-e.x*t.z,this._z=e.x*t.y-e.y*t.x,this._w=n),this.normalize()}angleTo(e){return 2*Math.acos(Math.abs(Xn(this.dot(e),-1,1)))}rotateTowards(e,t){const n=this.angleTo(e);if(0===n)return this;const r=Math.min(1,t/n);return this.slerp(e,r),this}identity(){return this.set(0,0,0,1)}invert(){return this.conjugate()}conjugate(){return this._x*=-1,this._y*=-1,this._z*=-1,this._onChangeCallback(),this}dot(e){return this._x*e._x+this._y*e._y+this._z*e._z+this._w*e._w}lengthSq(){return this._x*this._x+this._y*this._y+this._z*this._z+this._w*this._w}length(){return Math.sqrt(this._x*this._x+this._y*this._y+this._z*this._z+this._w*this._w)}normalize(){let e=this.length();return 0===e?(this._x=0,this._y=0,this._z=0,this._w=1):(e=1/e,this._x=this._x*e,this._y=this._y*e,this._z=this._z*e,this._w=this._w*e),this._onChangeCallback(),this}multiply(e){return this.multiplyQuaternions(this,e)}premultiply(e){return this.multiplyQuaternions(e,this)}multiplyQuaternions(e,t){const n=e._x,r=e._y,i=e._z,a=e._w,s=t._x,o=t._y,l=t._z,c=t._w;return this._x=n*c+a*s+r*l-i*o,this._y=r*c+a*o+i*s-n*l,this._z=i*c+a*l+n*o-r*s,this._w=a*c-n*s-r*o-i*l,this._onChangeCallback(),this}slerp(e,t){if(0===t)return this;if(1===t)return this.copy(e);const n=this._x,r=this._y,i=this._z,a=this._w;let s=a*e._w+n*e._x+r*e._y+i*e._z;if(s<0?(this._w=-e._w,this._x=-e._x,this._y=-e._y,this._z=-e._z,s=-s):this.copy(e),s>=1)return this._w=a,this._x=n,this._y=r,this._z=i,this;const o=1-s*s;if(o<=Number.EPSILON){const e=1-t;return this._w=e*a+t*this._w,this._x=e*n+t*this._x,this._y=e*r+t*this._y,this._z=e*i+t*this._z,this.normalize(),this}const l=Math.sqrt(o),c=Math.atan2(l,s),u=Math.sin((1-t)*c)/l,h=Math.sin(t*c)/l;return this._w=a*u+this._w*h,this._x=n*u+this._x*h,this._y=r*u+this._y*h,this._z=i*u+this._z*h,this._onChangeCallback(),this}slerpQuaternions(e,t,n){return this.copy(e).slerp(t,n)}random(){const e=2*Math.PI*Math.random(),t=2*Math.PI*Math.random(),n=Math.random(),r=Math.sqrt(1-n),i=Math.sqrt(n);return this.set(r*Math.sin(e),r*Math.cos(e),i*Math.sin(t),i*Math.cos(t))}equals(e){return e._x===this._x&&e._y===this._y&&e._z===this._z&&e._w===this._w}fromArray(e,t=0){return this._x=e[t],this._y=e[t+1],this._z=e[t+2],this._w=e[t+3],this._onChangeCallback(),this}toArray(e=[],t=0){return e[t]=this._x,e[t+1]=this._y,e[t+2]=this._z,e[t+3]=this._w,e}fromBufferAttribute(e,t){return this._x=e.getX(t),this._y=e.getY(t),this._z=e.getZ(t),this._w=e.getW(t),this._onChangeCallback(),this}toJSON(){return this.toArray()}_onChange(e){return this._onChangeCallback=e,this}_onChangeCallback(){}*[Symbol.iterator](){yield this._x,yield this._y,yield this._z,yield this._w}}class Pr{constructor(e=0,t=0,n=0){Pr.prototype.isVector3=!0,this.x=e,this.y=t,this.z=n}set(e,t,n){return void 0===n&&(n=this.z),this.x=e,this.y=t,this.z=n,this}setScalar(e){return this.x=e,this.y=e,this.z=e,this}setX(e){return this.x=e,this}setY(e){return this.y=e,this}setZ(e){return this.z=e,this}setComponent(e,t){switch(e){case 0:this.x=t;break;case 1:this.y=t;break;case 2:this.z=t;break;default:throw new Error("index is out of range: "+e)}return this}getComponent(e){switch(e){case 0:return this.x;case 1:return this.y;case 2:return this.z;default:throw new Error("index is out of range: "+e)}}clone(){return new this.constructor(this.x,this.y,this.z)}copy(e){return this.x=e.x,this.y=e.y,this.z=e.z,this}add(e){return this.x+=e.x,this.y+=e.y,this.z+=e.z,this}addScalar(e){return this.x+=e,this.y+=e,this.z+=e,this}addVectors(e,t){return this.x=e.x+t.x,this.y=e.y+t.y,this.z=e.z+t.z,this}addScaledVector(e,t){return this.x+=e.x*t,this.y+=e.y*t,this.z+=e.z*t,this}sub(e){return this.x-=e.x,this.y-=e.y,this.z-=e.z,this}subScalar(e){return this.x-=e,this.y-=e,this.z-=e,this}subVectors(e,t){return this.x=e.x-t.x,this.y=e.y-t.y,this.z=e.z-t.z,this}multiply(e){return this.x*=e.x,this.y*=e.y,this.z*=e.z,this}multiplyScalar(e){return this.x*=e,this.y*=e,this.z*=e,this}multiplyVectors(e,t){return this.x=e.x*t.x,this.y=e.y*t.y,this.z=e.z*t.z,this}applyEuler(e){return this.applyQuaternion(Or.setFromEuler(e))}applyAxisAngle(e,t){return this.applyQuaternion(Or.setFromAxisAngle(e,t))}applyMatrix3(e){const t=this.x,n=this.y,r=this.z,i=e.elements;return this.x=i[0]*t+i[3]*n+i[6]*r,this.y=i[1]*t+i[4]*n+i[7]*r,this.z=i[2]*t+i[5]*n+i[8]*r,this}applyNormalMatrix(e){return this.applyMatrix3(e).normalize()}applyMatrix4(e){const t=this.x,n=this.y,r=this.z,i=e.elements,a=1/(i[3]*t+i[7]*n+i[11]*r+i[15]);return this.x=(i[0]*t+i[4]*n+i[8]*r+i[12])*a,this.y=(i[1]*t+i[5]*n+i[9]*r+i[13])*a,this.z=(i[2]*t+i[6]*n+i[10]*r+i[14])*a,this}applyQuaternion(e){const t=this.x,n=this.y,r=this.z,i=e.x,a=e.y,s=e.z,o=e.w,l=2*(a*r-s*n),c=2*(s*t-i*r),u=2*(i*n-a*t);return this.x=t+o*l+a*u-s*c,this.y=n+o*c+s*l-i*u,this.z=r+o*u+i*c-a*l,this}project(e){return this.applyMatrix4(e.matrixWorldInverse).applyMatrix4(e.projectionMatrix)}unproject(e){return this.applyMatrix4(e.projectionMatrixInverse).applyMatrix4(e.matrixWorld)}transformDirection(e){const t=this.x,n=this.y,r=this.z,i=e.elements;return this.x=i[0]*t+i[4]*n+i[8]*r,this.y=i[1]*t+i[5]*n+i[9]*r,this.z=i[2]*t+i[6]*n+i[10]*r,this.normalize()}divide(e){return this.x/=e.x,this.y/=e.y,this.z/=e.z,this}divideScalar(e){return this.multiplyScalar(1/e)}min(e){return this.x=Math.min(this.x,e.x),this.y=Math.min(this.y,e.y),this.z=Math.min(this.z,e.z),this}max(e){return this.x=Math.max(this.x,e.x),this.y=Math.max(this.y,e.y),this.z=Math.max(this.z,e.z),this}clamp(e,t){return this.x=Math.max(e.x,Math.min(t.x,this.x)),this.y=Math.max(e.y,Math.min(t.y,this.y)),this.z=Math.max(e.z,Math.min(t.z,this.z)),this}clampScalar(e,t){return this.x=Math.max(e,Math.min(t,this.x)),this.y=Math.max(e,Math.min(t,this.y)),this.z=Math.max(e,Math.min(t,this.z)),this}clampLength(e,t){const n=this.length();return this.divideScalar(n||1).multiplyScalar(Math.max(e,Math.min(t,n)))}floor(){return this.x=Math.floor(this.x),this.y=Math.floor(this.y),this.z=Math.floor(this.z),this}ceil(){return this.x=Math.ceil(this.x),this.y=Math.ceil(this.y),this.z=Math.ceil(this.z),this}round(){return this.x=Math.round(this.x),this.y=Math.round(this.y),this.z=Math.round(this.z),this}roundToZero(){return this.x=Math.trunc(this.x),this.y=Math.trunc(this.y),this.z=Math.trunc(this.z),this}negate(){return this.x=-this.x,this.y=-this.y,this.z=-this.z,this}dot(e){return this.x*e.x+this.y*e.y+this.z*e.z}lengthSq(){return this.x*this.x+this.y*this.y+this.z*this.z}length(){return Math.sqrt(this.x*this.x+this.y*this.y+this.z*this.z)}manhattanLength(){return Math.abs(this.x)+Math.abs(this.y)+Math.abs(this.z)}normalize(){return this.divideScalar(this.length()||1)}setLength(e){return this.normalize().multiplyScalar(e)}lerp(e,t){return this.x+=(e.x-this.x)*t,this.y+=(e.y-this.y)*t,this.z+=(e.z-this.z)*t,this}lerpVectors(e,t,n){return this.x=e.x+(t.x-e.x)*n,this.y=e.y+(t.y-e.y)*n,this.z=e.z+(t.z-e.z)*n,this}cross(e){return this.crossVectors(this,e)}crossVectors(e,t){const n=e.x,r=e.y,i=e.z,a=t.x,s=t.y,o=t.z;return this.x=r*o-i*s,this.y=i*a-n*o,this.z=n*s-r*a,this}projectOnVector(e){const t=e.lengthSq();if(0===t)return this.set(0,0,0);const n=e.dot(this)/t;return this.copy(e).multiplyScalar(n)}projectOnPlane(e){return Lr.copy(this).projectOnVector(e),this.sub(Lr)}reflect(e){return this.sub(Lr.copy(e).multiplyScalar(2*this.dot(e)))}angleTo(e){const t=Math.sqrt(this.lengthSq()*e.lengthSq());if(0===t)return Math.PI/2;const n=this.dot(e)/t;return Math.acos(Xn(n,-1,1))}distanceTo(e){return Math.sqrt(this.distanceToSquared(e))}distanceToSquared(e){const t=this.x-e.x,n=this.y-e.y,r=this.z-e.z;return t*t+n*n+r*r}manhattanDistanceTo(e){return Math.abs(this.x-e.x)+Math.abs(this.y-e.y)+Math.abs(this.z-e.z)}setFromSpherical(e){return this.setFromSphericalCoords(e.radius,e.phi,e.theta)}setFromSphericalCoords(e,t,n){const r=Math.sin(t)*e;return this.x=r*Math.sin(n),this.y=Math.cos(t)*e,this.z=r*Math.cos(n),this}setFromCylindrical(e){return this.setFromCylindricalCoords(e.radius,e.theta,e.y)}setFromCylindricalCoords(e,t,n){return this.x=e*Math.sin(t),this.y=n,this.z=e*Math.cos(t),this}setFromMatrixPosition(e){const t=e.elements;return this.x=t[12],this.y=t[13],this.z=t[14],this}setFromMatrixScale(e){const t=this.setFromMatrixColumn(e,0).length(),n=this.setFromMatrixColumn(e,1).length(),r=this.setFromMatrixColumn(e,2).length();return this.x=t,this.y=n,this.z=r,this}setFromMatrixColumn(e,t){return this.fromArray(e.elements,4*t)}setFromMatrix3Column(e,t){return this.fromArray(e.elements,3*t)}setFromEuler(e){return this.x=e._x,this.y=e._y,this.z=e._z,this}setFromColor(e){return this.x=e.r,this.y=e.g,this.z=e.b,this}equals(e){return e.x===this.x&&e.y===this.y&&e.z===this.z}fromArray(e,t=0){return this.x=e[t],this.y=e[t+1],this.z=e[t+2],this}toArray(e=[],t=0){return e[t]=this.x,e[t+1]=this.y,e[t+2]=this.z,e}fromBufferAttribute(e,t){return this.x=e.getX(t),this.y=e.getY(t),this.z=e.getZ(t),this}random(){return this.x=Math.random(),this.y=Math.random(),this.z=Math.random(),this}randomDirection(){const e=Math.random()*Math.PI*2,t=2*Math.random()-1,n=Math.sqrt(1-t*t);return this.x=n*Math.cos(e),this.y=t,this.z=n*Math.sin(e),this}*[Symbol.iterator](){yield this.x,yield this.y,yield this.z}}const Lr=new Pr,Or=new Rr;class Ur{constructor(e=new Pr(1/0,1/0,1/0),t=new Pr(-1/0,-1/0,-1/0)){this.isBox3=!0,this.min=e,this.max=t}set(e,t){return this.min.copy(e),this.max.copy(t),this}setFromArray(e){this.makeEmpty();for(let t=0,n=e.length;tthis.max.x||e.ythis.max.y||e.zthis.max.z)}containsBox(e){return this.min.x<=e.min.x&&e.max.x<=this.max.x&&this.min.y<=e.min.y&&e.max.y<=this.max.y&&this.min.z<=e.min.z&&e.max.z<=this.max.z}getParameter(e,t){return t.set((e.x-this.min.x)/(this.max.x-this.min.x),(e.y-this.min.y)/(this.max.y-this.min.y),(e.z-this.min.z)/(this.max.z-this.min.z))}intersectsBox(e){return!(e.max.xthis.max.x||e.max.ythis.max.y||e.max.zthis.max.z)}intersectsSphere(e){return this.clampPoint(e.center,Fr),Fr.distanceToSquared(e.center)<=e.radius*e.radius}intersectsPlane(e){let t,n;return e.normal.x>0?(t=e.normal.x*this.min.x,n=e.normal.x*this.max.x):(t=e.normal.x*this.max.x,n=e.normal.x*this.min.x),e.normal.y>0?(t+=e.normal.y*this.min.y,n+=e.normal.y*this.max.y):(t+=e.normal.y*this.max.y,n+=e.normal.y*this.min.y),e.normal.z>0?(t+=e.normal.z*this.min.z,n+=e.normal.z*this.max.z):(t+=e.normal.z*this.max.z,n+=e.normal.z*this.min.z),t<=-e.constant&&n>=-e.constant}intersectsTriangle(e){if(this.isEmpty())return!1;this.getCenter(jr),Wr.subVectors(this.max,jr),kr.subVectors(e.a,jr),Qr.subVectors(e.b,jr),Gr.subVectors(e.c,jr),Vr.subVectors(Qr,kr),zr.subVectors(Gr,Qr),Hr.subVectors(kr,Gr);let t=[0,-Vr.z,Vr.y,0,-zr.z,zr.y,0,-Hr.z,Hr.y,Vr.z,0,-Vr.x,zr.z,0,-zr.x,Hr.z,0,-Hr.x,-Vr.y,Vr.x,0,-zr.y,zr.x,0,-Hr.y,Hr.x,0];return!!Yr(t,kr,Qr,Gr,Wr)&&(t=[1,0,0,0,1,0,0,0,1],!!Yr(t,kr,Qr,Gr,Wr)&&(qr.crossVectors(Vr,zr),t=[qr.x,qr.y,qr.z],Yr(t,kr,Qr,Gr,Wr)))}clampPoint(e,t){return t.copy(e).clamp(this.min,this.max)}distanceToPoint(e){return this.clampPoint(e,Fr).distanceTo(e)}getBoundingSphere(e){return this.isEmpty()?e.makeEmpty():(this.getCenter(e.center),e.radius=.5*this.getSize(Fr).length()),e}intersect(e){return this.min.max(e.min),this.max.min(e.max),this.isEmpty()&&this.makeEmpty(),this}union(e){return this.min.min(e.min),this.max.max(e.max),this}applyMatrix4(e){return this.isEmpty()||(Dr[0].set(this.min.x,this.min.y,this.min.z).applyMatrix4(e),Dr[1].set(this.min.x,this.min.y,this.max.z).applyMatrix4(e),Dr[2].set(this.min.x,this.max.y,this.min.z).applyMatrix4(e),Dr[3].set(this.min.x,this.max.y,this.max.z).applyMatrix4(e),Dr[4].set(this.max.x,this.min.y,this.min.z).applyMatrix4(e),Dr[5].set(this.max.x,this.min.y,this.max.z).applyMatrix4(e),Dr[6].set(this.max.x,this.max.y,this.min.z).applyMatrix4(e),Dr[7].set(this.max.x,this.max.y,this.max.z).applyMatrix4(e),this.setFromPoints(Dr)),this}translate(e){return this.min.add(e),this.max.add(e),this}equals(e){return e.min.equals(this.min)&&e.max.equals(this.max)}}const Dr=[new Pr,new Pr,new Pr,new Pr,new Pr,new Pr,new Pr,new Pr],Fr=new Pr,Nr=new Ur,kr=new Pr,Qr=new Pr,Gr=new Pr,Vr=new Pr,zr=new Pr,Hr=new Pr,jr=new Pr,Wr=new Pr,qr=new Pr,Xr=new Pr;function Yr(e,t,n,r,i){for(let a=0,s=e.length-3;a<=s;a+=3){Xr.fromArray(e,a);const s=i.x*Math.abs(Xr.x)+i.y*Math.abs(Xr.y)+i.z*Math.abs(Xr.z),o=t.dot(Xr),l=n.dot(Xr),c=r.dot(Xr);if(Math.max(-Math.max(o,l,c),Math.min(o,l,c))>s)return!1}return!0}const Kr=new Ur,Jr=new Pr,Zr=new Pr;class $r{constructor(e=new Pr,t=-1){this.isSphere=!0,this.center=e,this.radius=t}set(e,t){return this.center.copy(e),this.radius=t,this}setFromPoints(e,t){const n=this.center;void 0!==t?n.copy(t):Kr.setFromPoints(e).getCenter(n);let r=0;for(let t=0,i=e.length;tthis.radius*this.radius&&(t.sub(this.center).normalize(),t.multiplyScalar(this.radius).add(this.center)),t}getBoundingBox(e){return this.isEmpty()?(e.makeEmpty(),e):(e.set(this.center,this.center),e.expandByScalar(this.radius),e)}applyMatrix4(e){return this.center.applyMatrix4(e),this.radius=this.radius*e.getMaxScaleOnAxis(),this}translate(e){return this.center.add(e),this}expandByPoint(e){if(this.isEmpty())return this.center.copy(e),this.radius=0,this;Jr.subVectors(e,this.center);const t=Jr.lengthSq();if(t>this.radius*this.radius){const e=Math.sqrt(t),n=.5*(e-this.radius);this.center.addScaledVector(Jr,n/e),this.radius+=n}return this}union(e){return e.isEmpty()?this:this.isEmpty()?(this.copy(e),this):(!0===this.center.equals(e.center)?this.radius=Math.max(this.radius,e.radius):(Zr.subVectors(e.center,this.center).setLength(e.radius),this.expandByPoint(Jr.copy(e.center).add(Zr)),this.expandByPoint(Jr.copy(e.center).sub(Zr))),this)}equals(e){return e.center.equals(this.center)&&e.radius===this.radius}clone(){return(new this.constructor).copy(this)}}const ei=new Pr,ti=new Pr,ni=new Pr,ri=new Pr,ii=new Pr,ai=new Pr,si=new Pr;class oi{constructor(e=new Pr,t=new Pr(0,0,-1)){this.origin=e,this.direction=t}set(e,t){return this.origin.copy(e),this.direction.copy(t),this}copy(e){return this.origin.copy(e.origin),this.direction.copy(e.direction),this}at(e,t){return t.copy(this.origin).addScaledVector(this.direction,e)}lookAt(e){return this.direction.copy(e).sub(this.origin).normalize(),this}recast(e){return this.origin.copy(this.at(e,ei)),this}closestPointToPoint(e,t){t.subVectors(e,this.origin);const n=t.dot(this.direction);return n<0?t.copy(this.origin):t.copy(this.origin).addScaledVector(this.direction,n)}distanceToPoint(e){return Math.sqrt(this.distanceSqToPoint(e))}distanceSqToPoint(e){const t=ei.subVectors(e,this.origin).dot(this.direction);return t<0?this.origin.distanceToSquared(e):(ei.copy(this.origin).addScaledVector(this.direction,t),ei.distanceToSquared(e))}distanceSqToSegment(e,t,n,r){ti.copy(e).add(t).multiplyScalar(.5),ni.copy(t).sub(e).normalize(),ri.copy(this.origin).sub(ti);const i=.5*e.distanceTo(t),a=-this.direction.dot(ni),s=ri.dot(this.direction),o=-ri.dot(ni),l=ri.lengthSq(),c=Math.abs(1-a*a);let u,h,d,p;if(c>0)if(u=a*o-s,h=a*s-o,p=i*c,u>=0)if(h>=-p)if(h<=p){const e=1/c;u*=e,h*=e,d=u*(u+a*h+2*s)+h*(a*u+h+2*o)+l}else h=i,u=Math.max(0,-(a*h+s)),d=-u*u+h*(h+2*o)+l;else h=-i,u=Math.max(0,-(a*h+s)),d=-u*u+h*(h+2*o)+l;else h<=-p?(u=Math.max(0,-(-a*i+s)),h=u>0?-i:Math.min(Math.max(-i,-o),i),d=-u*u+h*(h+2*o)+l):h<=p?(u=0,h=Math.min(Math.max(-i,-o),i),d=h*(h+2*o)+l):(u=Math.max(0,-(a*i+s)),h=u>0?i:Math.min(Math.max(-i,-o),i),d=-u*u+h*(h+2*o)+l);else h=a>0?-i:i,u=Math.max(0,-(a*h+s)),d=-u*u+h*(h+2*o)+l;return n&&n.copy(this.origin).addScaledVector(this.direction,u),r&&r.copy(ti).addScaledVector(ni,h),d}intersectSphere(e,t){ei.subVectors(e.center,this.origin);const n=ei.dot(this.direction),r=ei.dot(ei)-n*n,i=e.radius*e.radius;if(r>i)return null;const a=Math.sqrt(i-r),s=n-a,o=n+a;return o<0?null:s<0?this.at(o,t):this.at(s,t)}intersectsSphere(e){return this.distanceSqToPoint(e.center)<=e.radius*e.radius}distanceToPlane(e){const t=e.normal.dot(this.direction);if(0===t)return 0===e.distanceToPoint(this.origin)?0:null;const n=-(this.origin.dot(e.normal)+e.constant)/t;return n>=0?n:null}intersectPlane(e,t){const n=this.distanceToPlane(e);return null===n?null:this.at(n,t)}intersectsPlane(e){const t=e.distanceToPoint(this.origin);return 0===t||e.normal.dot(this.direction)*t<0}intersectBox(e,t){let n,r,i,a,s,o;const l=1/this.direction.x,c=1/this.direction.y,u=1/this.direction.z,h=this.origin;return l>=0?(n=(e.min.x-h.x)*l,r=(e.max.x-h.x)*l):(n=(e.max.x-h.x)*l,r=(e.min.x-h.x)*l),c>=0?(i=(e.min.y-h.y)*c,a=(e.max.y-h.y)*c):(i=(e.max.y-h.y)*c,a=(e.min.y-h.y)*c),n>a||i>r?null:((i>n||isNaN(n))&&(n=i),(a=0?(s=(e.min.z-h.z)*u,o=(e.max.z-h.z)*u):(s=(e.max.z-h.z)*u,o=(e.min.z-h.z)*u),n>o||s>r?null:((s>n||n!=n)&&(n=s),(o=0?n:r,t)))}intersectsBox(e){return null!==this.intersectBox(e,ei)}intersectTriangle(e,t,n,r,i){ii.subVectors(t,e),ai.subVectors(n,e),si.crossVectors(ii,ai);let a,s=this.direction.dot(si);if(s>0){if(r)return null;a=1}else{if(!(s<0))return null;a=-1,s=-s}ri.subVectors(this.origin,e);const o=a*this.direction.dot(ai.crossVectors(ri,ai));if(o<0)return null;const l=a*this.direction.dot(ii.cross(ri));if(l<0)return null;if(o+l>s)return null;const c=-a*ri.dot(si);return c<0?null:this.at(c/s,i)}applyMatrix4(e){return this.origin.applyMatrix4(e),this.direction.transformDirection(e),this}equals(e){return e.origin.equals(this.origin)&&e.direction.equals(this.direction)}clone(){return(new this.constructor).copy(this)}}class li{constructor(e,t,n,r,i,a,s,o,l,c,u,h,d,p,f,m){li.prototype.isMatrix4=!0,this.elements=[1,0,0,0,0,1,0,0,0,0,1,0,0,0,0,1],void 0!==e&&this.set(e,t,n,r,i,a,s,o,l,c,u,h,d,p,f,m)}set(e,t,n,r,i,a,s,o,l,c,u,h,d,p,f,m){const A=this.elements;return A[0]=e,A[4]=t,A[8]=n,A[12]=r,A[1]=i,A[5]=a,A[9]=s,A[13]=o,A[2]=l,A[6]=c,A[10]=u,A[14]=h,A[3]=d,A[7]=p,A[11]=f,A[15]=m,this}identity(){return this.set(1,0,0,0,0,1,0,0,0,0,1,0,0,0,0,1),this}clone(){return(new li).fromArray(this.elements)}copy(e){const t=this.elements,n=e.elements;return t[0]=n[0],t[1]=n[1],t[2]=n[2],t[3]=n[3],t[4]=n[4],t[5]=n[5],t[6]=n[6],t[7]=n[7],t[8]=n[8],t[9]=n[9],t[10]=n[10],t[11]=n[11],t[12]=n[12],t[13]=n[13],t[14]=n[14],t[15]=n[15],this}copyPosition(e){const t=this.elements,n=e.elements;return t[12]=n[12],t[13]=n[13],t[14]=n[14],this}setFromMatrix3(e){const t=e.elements;return this.set(t[0],t[3],t[6],0,t[1],t[4],t[7],0,t[2],t[5],t[8],0,0,0,0,1),this}extractBasis(e,t,n){return e.setFromMatrixColumn(this,0),t.setFromMatrixColumn(this,1),n.setFromMatrixColumn(this,2),this}makeBasis(e,t,n){return this.set(e.x,t.x,n.x,0,e.y,t.y,n.y,0,e.z,t.z,n.z,0,0,0,0,1),this}extractRotation(e){const t=this.elements,n=e.elements,r=1/ci.setFromMatrixColumn(e,0).length(),i=1/ci.setFromMatrixColumn(e,1).length(),a=1/ci.setFromMatrixColumn(e,2).length();return t[0]=n[0]*r,t[1]=n[1]*r,t[2]=n[2]*r,t[3]=0,t[4]=n[4]*i,t[5]=n[5]*i,t[6]=n[6]*i,t[7]=0,t[8]=n[8]*a,t[9]=n[9]*a,t[10]=n[10]*a,t[11]=0,t[12]=0,t[13]=0,t[14]=0,t[15]=1,this}makeRotationFromEuler(e){const t=this.elements,n=e.x,r=e.y,i=e.z,a=Math.cos(n),s=Math.sin(n),o=Math.cos(r),l=Math.sin(r),c=Math.cos(i),u=Math.sin(i);if("XYZ"===e.order){const e=a*c,n=a*u,r=s*c,i=s*u;t[0]=o*c,t[4]=-o*u,t[8]=l,t[1]=n+r*l,t[5]=e-i*l,t[9]=-s*o,t[2]=i-e*l,t[6]=r+n*l,t[10]=a*o}else if("YXZ"===e.order){const e=o*c,n=o*u,r=l*c,i=l*u;t[0]=e+i*s,t[4]=r*s-n,t[8]=a*l,t[1]=a*u,t[5]=a*c,t[9]=-s,t[2]=n*s-r,t[6]=i+e*s,t[10]=a*o}else if("ZXY"===e.order){const e=o*c,n=o*u,r=l*c,i=l*u;t[0]=e-i*s,t[4]=-a*u,t[8]=r+n*s,t[1]=n+r*s,t[5]=a*c,t[9]=i-e*s,t[2]=-a*l,t[6]=s,t[10]=a*o}else if("ZYX"===e.order){const e=a*c,n=a*u,r=s*c,i=s*u;t[0]=o*c,t[4]=r*l-n,t[8]=e*l+i,t[1]=o*u,t[5]=i*l+e,t[9]=n*l-r,t[2]=-l,t[6]=s*o,t[10]=a*o}else if("YZX"===e.order){const e=a*o,n=a*l,r=s*o,i=s*l;t[0]=o*c,t[4]=i-e*u,t[8]=r*u+n,t[1]=u,t[5]=a*c,t[9]=-s*c,t[2]=-l*c,t[6]=n*u+r,t[10]=e-i*u}else if("XZY"===e.order){const e=a*o,n=a*l,r=s*o,i=s*l;t[0]=o*c,t[4]=-u,t[8]=l*c,t[1]=e*u+i,t[5]=a*c,t[9]=n*u-r,t[2]=r*u-n,t[6]=s*c,t[10]=i*u+e}return t[3]=0,t[7]=0,t[11]=0,t[12]=0,t[13]=0,t[14]=0,t[15]=1,this}makeRotationFromQuaternion(e){return this.compose(hi,e,di)}lookAt(e,t,n){const r=this.elements;return mi.subVectors(e,t),0===mi.lengthSq()&&(mi.z=1),mi.normalize(),pi.crossVectors(n,mi),0===pi.lengthSq()&&(1===Math.abs(n.z)?mi.x+=1e-4:mi.z+=1e-4,mi.normalize(),pi.crossVectors(n,mi)),pi.normalize(),fi.crossVectors(mi,pi),r[0]=pi.x,r[4]=fi.x,r[8]=mi.x,r[1]=pi.y,r[5]=fi.y,r[9]=mi.y,r[2]=pi.z,r[6]=fi.z,r[10]=mi.z,this}multiply(e){return this.multiplyMatrices(this,e)}premultiply(e){return this.multiplyMatrices(e,this)}multiplyMatrices(e,t){const n=e.elements,r=t.elements,i=this.elements,a=n[0],s=n[4],o=n[8],l=n[12],c=n[1],u=n[5],h=n[9],d=n[13],p=n[2],f=n[6],m=n[10],A=n[14],g=n[3],v=n[7],y=n[11],b=n[15],_=r[0],x=r[4],E=r[8],w=r[12],M=r[1],S=r[5],C=r[9],I=r[13],T=r[2],B=r[6],R=r[10],P=r[14],L=r[3],O=r[7],U=r[11],D=r[15];return i[0]=a*_+s*M+o*T+l*L,i[4]=a*x+s*S+o*B+l*O,i[8]=a*E+s*C+o*R+l*U,i[12]=a*w+s*I+o*P+l*D,i[1]=c*_+u*M+h*T+d*L,i[5]=c*x+u*S+h*B+d*O,i[9]=c*E+u*C+h*R+d*U,i[13]=c*w+u*I+h*P+d*D,i[2]=p*_+f*M+m*T+A*L,i[6]=p*x+f*S+m*B+A*O,i[10]=p*E+f*C+m*R+A*U,i[14]=p*w+f*I+m*P+A*D,i[3]=g*_+v*M+y*T+b*L,i[7]=g*x+v*S+y*B+b*O,i[11]=g*E+v*C+y*R+b*U,i[15]=g*w+v*I+y*P+b*D,this}multiplyScalar(e){const t=this.elements;return t[0]*=e,t[4]*=e,t[8]*=e,t[12]*=e,t[1]*=e,t[5]*=e,t[9]*=e,t[13]*=e,t[2]*=e,t[6]*=e,t[10]*=e,t[14]*=e,t[3]*=e,t[7]*=e,t[11]*=e,t[15]*=e,this}determinant(){const e=this.elements,t=e[0],n=e[4],r=e[8],i=e[12],a=e[1],s=e[5],o=e[9],l=e[13],c=e[2],u=e[6],h=e[10],d=e[14];return e[3]*(+i*o*u-r*l*u-i*s*h+n*l*h+r*s*d-n*o*d)+e[7]*(+t*o*d-t*l*h+i*a*h-r*a*d+r*l*c-i*o*c)+e[11]*(+t*l*u-t*s*d-i*a*u+n*a*d+i*s*c-n*l*c)+e[15]*(-r*s*c-t*o*u+t*s*h+r*a*u-n*a*h+n*o*c)}transpose(){const e=this.elements;let t;return t=e[1],e[1]=e[4],e[4]=t,t=e[2],e[2]=e[8],e[8]=t,t=e[6],e[6]=e[9],e[9]=t,t=e[3],e[3]=e[12],e[12]=t,t=e[7],e[7]=e[13],e[13]=t,t=e[11],e[11]=e[14],e[14]=t,this}setPosition(e,t,n){const r=this.elements;return e.isVector3?(r[12]=e.x,r[13]=e.y,r[14]=e.z):(r[12]=e,r[13]=t,r[14]=n),this}invert(){const e=this.elements,t=e[0],n=e[1],r=e[2],i=e[3],a=e[4],s=e[5],o=e[6],l=e[7],c=e[8],u=e[9],h=e[10],d=e[11],p=e[12],f=e[13],m=e[14],A=e[15],g=u*m*l-f*h*l+f*o*d-s*m*d-u*o*A+s*h*A,v=p*h*l-c*m*l-p*o*d+a*m*d+c*o*A-a*h*A,y=c*f*l-p*u*l+p*s*d-a*f*d-c*s*A+a*u*A,b=p*u*o-c*f*o-p*s*h+a*f*h+c*s*m-a*u*m,_=t*g+n*v+r*y+i*b;if(0===_)return this.set(0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0);const x=1/_;return e[0]=g*x,e[1]=(f*h*i-u*m*i-f*r*d+n*m*d+u*r*A-n*h*A)*x,e[2]=(s*m*i-f*o*i+f*r*l-n*m*l-s*r*A+n*o*A)*x,e[3]=(u*o*i-s*h*i-u*r*l+n*h*l+s*r*d-n*o*d)*x,e[4]=v*x,e[5]=(c*m*i-p*h*i+p*r*d-t*m*d-c*r*A+t*h*A)*x,e[6]=(p*o*i-a*m*i-p*r*l+t*m*l+a*r*A-t*o*A)*x,e[7]=(a*h*i-c*o*i+c*r*l-t*h*l-a*r*d+t*o*d)*x,e[8]=y*x,e[9]=(p*u*i-c*f*i-p*n*d+t*f*d+c*n*A-t*u*A)*x,e[10]=(a*f*i-p*s*i+p*n*l-t*f*l-a*n*A+t*s*A)*x,e[11]=(c*s*i-a*u*i-c*n*l+t*u*l+a*n*d-t*s*d)*x,e[12]=b*x,e[13]=(c*f*r-p*u*r+p*n*h-t*f*h-c*n*m+t*u*m)*x,e[14]=(p*s*r-a*f*r-p*n*o+t*f*o+a*n*m-t*s*m)*x,e[15]=(a*u*r-c*s*r+c*n*o-t*u*o-a*n*h+t*s*h)*x,this}scale(e){const t=this.elements,n=e.x,r=e.y,i=e.z;return t[0]*=n,t[4]*=r,t[8]*=i,t[1]*=n,t[5]*=r,t[9]*=i,t[2]*=n,t[6]*=r,t[10]*=i,t[3]*=n,t[7]*=r,t[11]*=i,this}getMaxScaleOnAxis(){const e=this.elements,t=e[0]*e[0]+e[1]*e[1]+e[2]*e[2],n=e[4]*e[4]+e[5]*e[5]+e[6]*e[6],r=e[8]*e[8]+e[9]*e[9]+e[10]*e[10];return Math.sqrt(Math.max(t,n,r))}makeTranslation(e,t,n){return e.isVector3?this.set(1,0,0,e.x,0,1,0,e.y,0,0,1,e.z,0,0,0,1):this.set(1,0,0,e,0,1,0,t,0,0,1,n,0,0,0,1),this}makeRotationX(e){const t=Math.cos(e),n=Math.sin(e);return this.set(1,0,0,0,0,t,-n,0,0,n,t,0,0,0,0,1),this}makeRotationY(e){const t=Math.cos(e),n=Math.sin(e);return this.set(t,0,n,0,0,1,0,0,-n,0,t,0,0,0,0,1),this}makeRotationZ(e){const t=Math.cos(e),n=Math.sin(e);return this.set(t,-n,0,0,n,t,0,0,0,0,1,0,0,0,0,1),this}makeRotationAxis(e,t){const n=Math.cos(t),r=Math.sin(t),i=1-n,a=e.x,s=e.y,o=e.z,l=i*a,c=i*s;return this.set(l*a+n,l*s-r*o,l*o+r*s,0,l*s+r*o,c*s+n,c*o-r*a,0,l*o-r*s,c*o+r*a,i*o*o+n,0,0,0,0,1),this}makeScale(e,t,n){return this.set(e,0,0,0,0,t,0,0,0,0,n,0,0,0,0,1),this}makeShear(e,t,n,r,i,a){return this.set(1,n,i,0,e,1,a,0,t,r,1,0,0,0,0,1),this}compose(e,t,n){const r=this.elements,i=t._x,a=t._y,s=t._z,o=t._w,l=i+i,c=a+a,u=s+s,h=i*l,d=i*c,p=i*u,f=a*c,m=a*u,A=s*u,g=o*l,v=o*c,y=o*u,b=n.x,_=n.y,x=n.z;return r[0]=(1-(f+A))*b,r[1]=(d+y)*b,r[2]=(p-v)*b,r[3]=0,r[4]=(d-y)*_,r[5]=(1-(h+A))*_,r[6]=(m+g)*_,r[7]=0,r[8]=(p+v)*x,r[9]=(m-g)*x,r[10]=(1-(h+f))*x,r[11]=0,r[12]=e.x,r[13]=e.y,r[14]=e.z,r[15]=1,this}decompose(e,t,n){const r=this.elements;let i=ci.set(r[0],r[1],r[2]).length();const a=ci.set(r[4],r[5],r[6]).length(),s=ci.set(r[8],r[9],r[10]).length();this.determinant()<0&&(i=-i),e.x=r[12],e.y=r[13],e.z=r[14],ui.copy(this);const o=1/i,l=1/a,c=1/s;return ui.elements[0]*=o,ui.elements[1]*=o,ui.elements[2]*=o,ui.elements[4]*=l,ui.elements[5]*=l,ui.elements[6]*=l,ui.elements[8]*=c,ui.elements[9]*=c,ui.elements[10]*=c,t.setFromRotationMatrix(ui),n.x=i,n.y=a,n.z=s,this}makePerspective(e,t,n,r,i,a,s=Qn){const o=this.elements,l=2*i/(t-e),c=2*i/(n-r),u=(t+e)/(t-e),h=(n+r)/(n-r);let d,p;if(s===Qn)d=-(a+i)/(a-i),p=-2*a*i/(a-i);else{if(s!==Gn)throw new Error("THREE.Matrix4.makePerspective(): Invalid coordinate system: "+s);d=-a/(a-i),p=-a*i/(a-i)}return o[0]=l,o[4]=0,o[8]=u,o[12]=0,o[1]=0,o[5]=c,o[9]=h,o[13]=0,o[2]=0,o[6]=0,o[10]=d,o[14]=p,o[3]=0,o[7]=0,o[11]=-1,o[15]=0,this}makeOrthographic(e,t,n,r,i,a,s=Qn){const o=this.elements,l=1/(t-e),c=1/(n-r),u=1/(a-i),h=(t+e)*l,d=(n+r)*c;let p,f;if(s===Qn)p=(a+i)*u,f=-2*u;else{if(s!==Gn)throw new Error("THREE.Matrix4.makeOrthographic(): Invalid coordinate system: "+s);p=i*u,f=-1*u}return o[0]=2*l,o[4]=0,o[8]=0,o[12]=-h,o[1]=0,o[5]=2*c,o[9]=0,o[13]=-d,o[2]=0,o[6]=0,o[10]=f,o[14]=-p,o[3]=0,o[7]=0,o[11]=0,o[15]=1,this}equals(e){const t=this.elements,n=e.elements;for(let e=0;e<16;e++)if(t[e]!==n[e])return!1;return!0}fromArray(e,t=0){for(let n=0;n<16;n++)this.elements[n]=e[n+t];return this}toArray(e=[],t=0){const n=this.elements;return e[t]=n[0],e[t+1]=n[1],e[t+2]=n[2],e[t+3]=n[3],e[t+4]=n[4],e[t+5]=n[5],e[t+6]=n[6],e[t+7]=n[7],e[t+8]=n[8],e[t+9]=n[9],e[t+10]=n[10],e[t+11]=n[11],e[t+12]=n[12],e[t+13]=n[13],e[t+14]=n[14],e[t+15]=n[15],e}}const ci=new Pr,ui=new li,hi=new Pr(0,0,0),di=new Pr(1,1,1),pi=new Pr,fi=new Pr,mi=new Pr,Ai=new li,gi=new Rr;class vi{constructor(e=0,t=0,n=0,r=vi.DEFAULT_ORDER){this.isEuler=!0,this._x=e,this._y=t,this._z=n,this._order=r}get x(){return this._x}set x(e){this._x=e,this._onChangeCallback()}get y(){return this._y}set y(e){this._y=e,this._onChangeCallback()}get z(){return this._z}set z(e){this._z=e,this._onChangeCallback()}get order(){return this._order}set order(e){this._order=e,this._onChangeCallback()}set(e,t,n,r=this._order){return this._x=e,this._y=t,this._z=n,this._order=r,this._onChangeCallback(),this}clone(){return new this.constructor(this._x,this._y,this._z,this._order)}copy(e){return this._x=e._x,this._y=e._y,this._z=e._z,this._order=e._order,this._onChangeCallback(),this}setFromRotationMatrix(e,t=this._order,n=!0){const r=e.elements,i=r[0],a=r[4],s=r[8],o=r[1],l=r[5],c=r[9],u=r[2],h=r[6],d=r[10];switch(t){case"XYZ":this._y=Math.asin(Xn(s,-1,1)),Math.abs(s)<.9999999?(this._x=Math.atan2(-c,d),this._z=Math.atan2(-a,i)):(this._x=Math.atan2(h,l),this._z=0);break;case"YXZ":this._x=Math.asin(-Xn(c,-1,1)),Math.abs(c)<.9999999?(this._y=Math.atan2(s,d),this._z=Math.atan2(o,l)):(this._y=Math.atan2(-u,i),this._z=0);break;case"ZXY":this._x=Math.asin(Xn(h,-1,1)),Math.abs(h)<.9999999?(this._y=Math.atan2(-u,d),this._z=Math.atan2(-a,l)):(this._y=0,this._z=Math.atan2(o,i));break;case"ZYX":this._y=Math.asin(-Xn(u,-1,1)),Math.abs(u)<.9999999?(this._x=Math.atan2(h,d),this._z=Math.atan2(o,i)):(this._x=0,this._z=Math.atan2(-a,l));break;case"YZX":this._z=Math.asin(Xn(o,-1,1)),Math.abs(o)<.9999999?(this._x=Math.atan2(-c,l),this._y=Math.atan2(-u,i)):(this._x=0,this._y=Math.atan2(s,d));break;case"XZY":this._z=Math.asin(-Xn(a,-1,1)),Math.abs(a)<.9999999?(this._x=Math.atan2(h,l),this._y=Math.atan2(s,i)):(this._x=Math.atan2(-c,d),this._y=0);break;default:console.warn("THREE.Euler: .setFromRotationMatrix() encountered an unknown order: "+t)}return this._order=t,!0===n&&this._onChangeCallback(),this}setFromQuaternion(e,t,n){return Ai.makeRotationFromQuaternion(e),this.setFromRotationMatrix(Ai,t,n)}setFromVector3(e,t=this._order){return this.set(e.x,e.y,e.z,t)}reorder(e){return gi.setFromEuler(this),this.setFromQuaternion(gi,e)}equals(e){return e._x===this._x&&e._y===this._y&&e._z===this._z&&e._order===this._order}fromArray(e){return this._x=e[0],this._y=e[1],this._z=e[2],void 0!==e[3]&&(this._order=e[3]),this._onChangeCallback(),this}toArray(e=[],t=0){return e[t]=this._x,e[t+1]=this._y,e[t+2]=this._z,e[t+3]=this._order,e}_onChange(e){return this._onChangeCallback=e,this}_onChangeCallback(){}*[Symbol.iterator](){yield this._x,yield this._y,yield this._z,yield this._order}}vi.DEFAULT_ORDER="XYZ";class yi{constructor(){this.mask=1}set(e){this.mask=1<>>0}enable(e){this.mask|=1<1){for(let e=0;e1){for(let e=0;e0&&(r.userData=this.userData),r.layers=this.layers.mask,r.matrix=this.matrix.toArray(),r.up=this.up.toArray(),!1===this.matrixAutoUpdate&&(r.matrixAutoUpdate=!1),this.isInstancedMesh&&(r.type="InstancedMesh",r.count=this.count,r.instanceMatrix=this.instanceMatrix.toJSON(),null!==this.instanceColor&&(r.instanceColor=this.instanceColor.toJSON())),this.isBatchedMesh&&(r.type="BatchedMesh",r.perObjectFrustumCulled=this.perObjectFrustumCulled,r.sortObjects=this.sortObjects,r.drawRanges=this._drawRanges,r.reservedRanges=this._reservedRanges,r.visibility=this._visibility,r.active=this._active,r.bounds=this._bounds.map(e=>({boxInitialized:e.boxInitialized,boxMin:e.box.min.toArray(),boxMax:e.box.max.toArray(),sphereInitialized:e.sphereInitialized,sphereRadius:e.sphere.radius,sphereCenter:e.sphere.center.toArray()})),r.maxGeometryCount=this._maxGeometryCount,r.maxVertexCount=this._maxVertexCount,r.maxIndexCount=this._maxIndexCount,r.geometryInitialized=this._geometryInitialized,r.geometryCount=this._geometryCount,r.matricesTexture=this._matricesTexture.toJSON(e),null!==this._colorsTexture&&(r.colorsTexture=this._colorsTexture.toJSON(e)),null!==this.boundingSphere&&(r.boundingSphere={center:r.boundingSphere.center.toArray(),radius:r.boundingSphere.radius}),null!==this.boundingBox&&(r.boundingBox={min:r.boundingBox.min.toArray(),max:r.boundingBox.max.toArray()})),this.isScene)this.background&&(this.background.isColor?r.background=this.background.toJSON():this.background.isTexture&&(r.background=this.background.toJSON(e).uuid)),this.environment&&this.environment.isTexture&&!0!==this.environment.isRenderTargetTexture&&(r.environment=this.environment.toJSON(e).uuid);else if(this.isMesh||this.isLine||this.isPoints){r.geometry=i(e.geometries,this.geometry);const t=this.geometry.parameters;if(void 0!==t&&void 0!==t.shapes){const n=t.shapes;if(Array.isArray(n))for(let t=0,r=n.length;t0){r.children=[];for(let t=0;t0){r.animations=[];for(let t=0;t0&&(n.geometries=t),r.length>0&&(n.materials=r),i.length>0&&(n.textures=i),s.length>0&&(n.images=s),o.length>0&&(n.shapes=o),l.length>0&&(n.skeletons=l),c.length>0&&(n.animations=c),u.length>0&&(n.nodes=u)}return n.object=r,n;function a(e){const t=[];for(const n in e){const r=e[n];delete r.metadata,t.push(r)}return t}}clone(e){return(new this.constructor).copy(this,e)}copy(e,t=!0){if(this.name=e.name,this.up.copy(e.up),this.position.copy(e.position),this.rotation.order=e.rotation.order,this.quaternion.copy(e.quaternion),this.scale.copy(e.scale),this.matrix.copy(e.matrix),this.matrixWorld.copy(e.matrixWorld),this.matrixAutoUpdate=e.matrixAutoUpdate,this.matrixWorldAutoUpdate=e.matrixWorldAutoUpdate,this.matrixWorldNeedsUpdate=e.matrixWorldNeedsUpdate,this.layers.mask=e.layers.mask,this.visible=e.visible,this.castShadow=e.castShadow,this.receiveShadow=e.receiveShadow,this.frustumCulled=e.frustumCulled,this.renderOrder=e.renderOrder,this.animations=e.animations.slice(),this.userData=JSON.parse(JSON.stringify(e.userData)),!0===t)for(let t=0;t0?r.multiplyScalar(1/Math.sqrt(i)):r.set(0,0,0)}static getBarycoord(e,t,n,r,i){Di.subVectors(r,t),Fi.subVectors(n,t),Ni.subVectors(e,t);const a=Di.dot(Di),s=Di.dot(Fi),o=Di.dot(Ni),l=Fi.dot(Fi),c=Fi.dot(Ni),u=a*l-s*s;if(0===u)return i.set(0,0,0),null;const h=1/u,d=(l*o-s*c)*h,p=(a*c-s*o)*h;return i.set(1-d-p,p,d)}static containsPoint(e,t,n,r){return null!==this.getBarycoord(e,t,n,r,ki)&&ki.x>=0&&ki.y>=0&&ki.x+ki.y<=1}static getInterpolation(e,t,n,r,i,a,s,o){return null===this.getBarycoord(e,t,n,r,ki)?(o.x=0,o.y=0,"z"in o&&(o.z=0),"w"in o&&(o.w=0),null):(o.setScalar(0),o.addScaledVector(i,ki.x),o.addScaledVector(a,ki.y),o.addScaledVector(s,ki.z),o)}static isFrontFacing(e,t,n,r){return Di.subVectors(n,t),Fi.subVectors(e,t),Di.cross(Fi).dot(r)<0}set(e,t,n){return this.a.copy(e),this.b.copy(t),this.c.copy(n),this}setFromPointsAndIndices(e,t,n,r){return this.a.copy(e[t]),this.b.copy(e[n]),this.c.copy(e[r]),this}setFromAttributeAndIndices(e,t,n,r){return this.a.fromBufferAttribute(e,t),this.b.fromBufferAttribute(e,n),this.c.fromBufferAttribute(e,r),this}clone(){return(new this.constructor).copy(this)}copy(e){return this.a.copy(e.a),this.b.copy(e.b),this.c.copy(e.c),this}getArea(){return Di.subVectors(this.c,this.b),Fi.subVectors(this.a,this.b),.5*Di.cross(Fi).length()}getMidpoint(e){return e.addVectors(this.a,this.b).add(this.c).multiplyScalar(1/3)}getNormal(e){return Wi.getNormal(this.a,this.b,this.c,e)}getPlane(e){return e.setFromCoplanarPoints(this.a,this.b,this.c)}getBarycoord(e,t){return Wi.getBarycoord(e,this.a,this.b,this.c,t)}getInterpolation(e,t,n,r,i){return Wi.getInterpolation(e,this.a,this.b,this.c,t,n,r,i)}containsPoint(e){return Wi.containsPoint(e,this.a,this.b,this.c)}isFrontFacing(e){return Wi.isFrontFacing(this.a,this.b,this.c,e)}intersectsBox(e){return e.intersectsTriangle(this)}closestPointToPoint(e,t){const n=this.a,r=this.b,i=this.c;let a,s;Qi.subVectors(r,n),Gi.subVectors(i,n),zi.subVectors(e,n);const o=Qi.dot(zi),l=Gi.dot(zi);if(o<=0&&l<=0)return t.copy(n);Hi.subVectors(e,r);const c=Qi.dot(Hi),u=Gi.dot(Hi);if(c>=0&&u<=c)return t.copy(r);const h=o*u-c*l;if(h<=0&&o>=0&&c<=0)return a=o/(o-c),t.copy(n).addScaledVector(Qi,a);ji.subVectors(e,i);const d=Qi.dot(ji),p=Gi.dot(ji);if(p>=0&&d<=p)return t.copy(i);const f=d*l-o*p;if(f<=0&&l>=0&&p<=0)return s=l/(l-p),t.copy(n).addScaledVector(Gi,s);const m=c*p-d*u;if(m<=0&&u-c>=0&&d-p>=0)return Vi.subVectors(i,r),s=(u-c)/(u-c+(d-p)),t.copy(r).addScaledVector(Vi,s);const A=1/(m+f+h);return a=f*A,s=h*A,t.copy(n).addScaledVector(Qi,a).addScaledVector(Gi,s)}equals(e){return e.a.equals(this.a)&&e.b.equals(this.b)&&e.c.equals(this.c)}}const qi={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},Xi={h:0,s:0,l:0},Yi={h:0,s:0,l:0};function Ki(e,t,n){return n<0&&(n+=1),n>1&&(n-=1),n<1/6?e+6*(t-e)*n:n<.5?t:n<2/3?e+6*(t-e)*(2/3-n):e}class Ji{constructor(e,t,n){return this.isColor=!0,this.r=1,this.g=1,this.b=1,this.set(e,t,n)}set(e,t,n){if(void 0===t&&void 0===n){const t=e;t&&t.isColor?this.copy(t):"number"==typeof t?this.setHex(t):"string"==typeof t&&this.setStyle(t)}else this.setRGB(e,t,n);return this}setScalar(e){return this.r=e,this.g=e,this.b=e,this}setHex(e,t=Kt){return e=Math.floor(e),this.r=(e>>16&255)/255,this.g=(e>>8&255)/255,this.b=(255&e)/255,fr.toWorkingColorSpace(this,t),this}setRGB(e,t,n,r=fr.workingColorSpace){return this.r=e,this.g=t,this.b=n,fr.toWorkingColorSpace(this,r),this}setHSL(e,t,n,r=fr.workingColorSpace){if(e=Yn(e,1),t=Xn(t,0,1),n=Xn(n,0,1),0===t)this.r=this.g=this.b=n;else{const r=n<=.5?n*(1+t):n+t-n*t,i=2*n-r;this.r=Ki(i,r,e+1/3),this.g=Ki(i,r,e),this.b=Ki(i,r,e-1/3)}return fr.toWorkingColorSpace(this,r),this}setStyle(e,t=Kt){function n(t){void 0!==t&&parseFloat(t)<1&&console.warn("THREE.Color: Alpha component of "+e+" will be ignored.")}let r;if(r=/^(\w+)\(([^\)]*)\)/.exec(e)){let i;const a=r[1],s=r[2];switch(a){case"rgb":case"rgba":if(i=/^\s*(\d+)\s*,\s*(\d+)\s*,\s*(\d+)\s*(?:,\s*(\d*\.?\d+)\s*)?$/.exec(s))return n(i[4]),this.setRGB(Math.min(255,parseInt(i[1],10))/255,Math.min(255,parseInt(i[2],10))/255,Math.min(255,parseInt(i[3],10))/255,t);if(i=/^\s*(\d+)\%\s*,\s*(\d+)\%\s*,\s*(\d+)\%\s*(?:,\s*(\d*\.?\d+)\s*)?$/.exec(s))return n(i[4]),this.setRGB(Math.min(100,parseInt(i[1],10))/100,Math.min(100,parseInt(i[2],10))/100,Math.min(100,parseInt(i[3],10))/100,t);break;case"hsl":case"hsla":if(i=/^\s*(\d*\.?\d+)\s*,\s*(\d*\.?\d+)\%\s*,\s*(\d*\.?\d+)\%\s*(?:,\s*(\d*\.?\d+)\s*)?$/.exec(s))return n(i[4]),this.setHSL(parseFloat(i[1])/360,parseFloat(i[2])/100,parseFloat(i[3])/100,t);break;default:console.warn("THREE.Color: Unknown color model "+e)}}else if(r=/^\#([A-Fa-f\d]+)$/.exec(e)){const n=r[1],i=n.length;if(3===i)return this.setRGB(parseInt(n.charAt(0),16)/15,parseInt(n.charAt(1),16)/15,parseInt(n.charAt(2),16)/15,t);if(6===i)return this.setHex(parseInt(n,16),t);console.warn("THREE.Color: Invalid hex color "+e)}else if(e&&e.length>0)return this.setColorName(e,t);return this}setColorName(e,t=Kt){const n=qi[e.toLowerCase()];return void 0!==n?this.setHex(n,t):console.warn("THREE.Color: Unknown color "+e),this}clone(){return new this.constructor(this.r,this.g,this.b)}copy(e){return this.r=e.r,this.g=e.g,this.b=e.b,this}copySRGBToLinear(e){return this.r=mr(e.r),this.g=mr(e.g),this.b=mr(e.b),this}copyLinearToSRGB(e){return this.r=Ar(e.r),this.g=Ar(e.g),this.b=Ar(e.b),this}convertSRGBToLinear(){return this.copySRGBToLinear(this),this}convertLinearToSRGB(){return this.copyLinearToSRGB(this),this}getHex(e=Kt){return fr.fromWorkingColorSpace(Zi.copy(this),e),65536*Math.round(Xn(255*Zi.r,0,255))+256*Math.round(Xn(255*Zi.g,0,255))+Math.round(Xn(255*Zi.b,0,255))}getHexString(e=Kt){return("000000"+this.getHex(e).toString(16)).slice(-6)}getHSL(e,t=fr.workingColorSpace){fr.fromWorkingColorSpace(Zi.copy(this),t);const n=Zi.r,r=Zi.g,i=Zi.b,a=Math.max(n,r,i),s=Math.min(n,r,i);let o,l;const c=(s+a)/2;if(s===a)o=0,l=0;else{const e=a-s;switch(l=c<=.5?e/(a+s):e/(2-a-s),a){case n:o=(r-i)/e+(r0!=e>0&&this.version++,this._alphaTest=e}onBuild(){}onBeforeRender(){}onBeforeCompile(){}customProgramCacheKey(){return this.onBeforeCompile.toString()}setValues(e){if(void 0!==e)for(const t in e){const n=e[t];if(void 0===n){console.warn(`THREE.Material: parameter '${t}' has value of undefined.`);continue}const r=this[t];void 0!==r?r&&r.isColor?r.set(n):r&&r.isVector3&&n&&n.isVector3?r.copy(n):this[t]=n:console.warn(`THREE.Material: '${t}' is not a property of THREE.${this.type}.`)}}toJSON(e){const t=void 0===e||"string"==typeof e;t&&(e={textures:{},images:{}});const n={metadata:{version:4.6,type:"Material",generator:"Material.toJSON"}};function r(e){const t=[];for(const n in e){const r=e[n];delete r.metadata,t.push(r)}return t}if(n.uuid=this.uuid,n.type=this.type,""!==this.name&&(n.name=this.name),this.color&&this.color.isColor&&(n.color=this.color.getHex()),void 0!==this.roughness&&(n.roughness=this.roughness),void 0!==this.metalness&&(n.metalness=this.metalness),void 0!==this.sheen&&(n.sheen=this.sheen),this.sheenColor&&this.sheenColor.isColor&&(n.sheenColor=this.sheenColor.getHex()),void 0!==this.sheenRoughness&&(n.sheenRoughness=this.sheenRoughness),this.emissive&&this.emissive.isColor&&(n.emissive=this.emissive.getHex()),void 0!==this.emissiveIntensity&&1!==this.emissiveIntensity&&(n.emissiveIntensity=this.emissiveIntensity),this.specular&&this.specular.isColor&&(n.specular=this.specular.getHex()),void 0!==this.specularIntensity&&(n.specularIntensity=this.specularIntensity),this.specularColor&&this.specularColor.isColor&&(n.specularColor=this.specularColor.getHex()),void 0!==this.shininess&&(n.shininess=this.shininess),void 0!==this.clearcoat&&(n.clearcoat=this.clearcoat),void 0!==this.clearcoatRoughness&&(n.clearcoatRoughness=this.clearcoatRoughness),this.clearcoatMap&&this.clearcoatMap.isTexture&&(n.clearcoatMap=this.clearcoatMap.toJSON(e).uuid),this.clearcoatRoughnessMap&&this.clearcoatRoughnessMap.isTexture&&(n.clearcoatRoughnessMap=this.clearcoatRoughnessMap.toJSON(e).uuid),this.clearcoatNormalMap&&this.clearcoatNormalMap.isTexture&&(n.clearcoatNormalMap=this.clearcoatNormalMap.toJSON(e).uuid,n.clearcoatNormalScale=this.clearcoatNormalScale.toArray()),void 0!==this.dispersion&&(n.dispersion=this.dispersion),void 0!==this.iridescence&&(n.iridescence=this.iridescence),void 0!==this.iridescenceIOR&&(n.iridescenceIOR=this.iridescenceIOR),void 0!==this.iridescenceThicknessRange&&(n.iridescenceThicknessRange=this.iridescenceThicknessRange),this.iridescenceMap&&this.iridescenceMap.isTexture&&(n.iridescenceMap=this.iridescenceMap.toJSON(e).uuid),this.iridescenceThicknessMap&&this.iridescenceThicknessMap.isTexture&&(n.iridescenceThicknessMap=this.iridescenceThicknessMap.toJSON(e).uuid),void 0!==this.anisotropy&&(n.anisotropy=this.anisotropy),void 0!==this.anisotropyRotation&&(n.anisotropyRotation=this.anisotropyRotation),this.anisotropyMap&&this.anisotropyMap.isTexture&&(n.anisotropyMap=this.anisotropyMap.toJSON(e).uuid),this.map&&this.map.isTexture&&(n.map=this.map.toJSON(e).uuid),this.matcap&&this.matcap.isTexture&&(n.matcap=this.matcap.toJSON(e).uuid),this.alphaMap&&this.alphaMap.isTexture&&(n.alphaMap=this.alphaMap.toJSON(e).uuid),this.lightMap&&this.lightMap.isTexture&&(n.lightMap=this.lightMap.toJSON(e).uuid,n.lightMapIntensity=this.lightMapIntensity),this.aoMap&&this.aoMap.isTexture&&(n.aoMap=this.aoMap.toJSON(e).uuid,n.aoMapIntensity=this.aoMapIntensity),this.bumpMap&&this.bumpMap.isTexture&&(n.bumpMap=this.bumpMap.toJSON(e).uuid,n.bumpScale=this.bumpScale),this.normalMap&&this.normalMap.isTexture&&(n.normalMap=this.normalMap.toJSON(e).uuid,n.normalMapType=this.normalMapType,n.normalScale=this.normalScale.toArray()),this.displacementMap&&this.displacementMap.isTexture&&(n.displacementMap=this.displacementMap.toJSON(e).uuid,n.displacementScale=this.displacementScale,n.displacementBias=this.displacementBias),this.roughnessMap&&this.roughnessMap.isTexture&&(n.roughnessMap=this.roughnessMap.toJSON(e).uuid),this.metalnessMap&&this.metalnessMap.isTexture&&(n.metalnessMap=this.metalnessMap.toJSON(e).uuid),this.emissiveMap&&this.emissiveMap.isTexture&&(n.emissiveMap=this.emissiveMap.toJSON(e).uuid),this.specularMap&&this.specularMap.isTexture&&(n.specularMap=this.specularMap.toJSON(e).uuid),this.specularIntensityMap&&this.specularIntensityMap.isTexture&&(n.specularIntensityMap=this.specularIntensityMap.toJSON(e).uuid),this.specularColorMap&&this.specularColorMap.isTexture&&(n.specularColorMap=this.specularColorMap.toJSON(e).uuid),this.envMap&&this.envMap.isTexture&&(n.envMap=this.envMap.toJSON(e).uuid,void 0!==this.combine&&(n.combine=this.combine)),void 0!==this.envMapRotation&&(n.envMapRotation=this.envMapRotation.toArray()),void 0!==this.envMapIntensity&&(n.envMapIntensity=this.envMapIntensity),void 0!==this.reflectivity&&(n.reflectivity=this.reflectivity),void 0!==this.refractionRatio&&(n.refractionRatio=this.refractionRatio),this.gradientMap&&this.gradientMap.isTexture&&(n.gradientMap=this.gradientMap.toJSON(e).uuid),void 0!==this.transmission&&(n.transmission=this.transmission),this.transmissionMap&&this.transmissionMap.isTexture&&(n.transmissionMap=this.transmissionMap.toJSON(e).uuid),void 0!==this.thickness&&(n.thickness=this.thickness),this.thicknessMap&&this.thicknessMap.isTexture&&(n.thicknessMap=this.thicknessMap.toJSON(e).uuid),void 0!==this.attenuationDistance&&this.attenuationDistance!==1/0&&(n.attenuationDistance=this.attenuationDistance),void 0!==this.attenuationColor&&(n.attenuationColor=this.attenuationColor.getHex()),void 0!==this.size&&(n.size=this.size),null!==this.shadowSide&&(n.shadowSide=this.shadowSide),void 0!==this.sizeAttenuation&&(n.sizeAttenuation=this.sizeAttenuation),this.blending!==v&&(n.blending=this.blending),this.side!==f&&(n.side=this.side),!0===this.vertexColors&&(n.vertexColors=!0),this.opacity<1&&(n.opacity=this.opacity),!0===this.transparent&&(n.transparent=!0),this.blendSrc!==P&&(n.blendSrc=this.blendSrc),this.blendDst!==L&&(n.blendDst=this.blendDst),this.blendEquation!==E&&(n.blendEquation=this.blendEquation),null!==this.blendSrcAlpha&&(n.blendSrcAlpha=this.blendSrcAlpha),null!==this.blendDstAlpha&&(n.blendDstAlpha=this.blendDstAlpha),null!==this.blendEquationAlpha&&(n.blendEquationAlpha=this.blendEquationAlpha),this.blendColor&&this.blendColor.isColor&&(n.blendColor=this.blendColor.getHex()),0!==this.blendAlpha&&(n.blendAlpha=this.blendAlpha),this.depthFunc!==W&&(n.depthFunc=this.depthFunc),!1===this.depthTest&&(n.depthTest=this.depthTest),!1===this.depthWrite&&(n.depthWrite=this.depthWrite),!1===this.colorWrite&&(n.colorWrite=this.colorWrite),255!==this.stencilWriteMask&&(n.stencilWriteMask=this.stencilWriteMask),this.stencilFunc!==bn&&(n.stencilFunc=this.stencilFunc),0!==this.stencilRef&&(n.stencilRef=this.stencilRef),255!==this.stencilFuncMask&&(n.stencilFuncMask=this.stencilFuncMask),this.stencilFail!==sn&&(n.stencilFail=this.stencilFail),this.stencilZFail!==sn&&(n.stencilZFail=this.stencilZFail),this.stencilZPass!==sn&&(n.stencilZPass=this.stencilZPass),!0===this.stencilWrite&&(n.stencilWrite=this.stencilWrite),void 0!==this.rotation&&0!==this.rotation&&(n.rotation=this.rotation),!0===this.polygonOffset&&(n.polygonOffset=!0),0!==this.polygonOffsetFactor&&(n.polygonOffsetFactor=this.polygonOffsetFactor),0!==this.polygonOffsetUnits&&(n.polygonOffsetUnits=this.polygonOffsetUnits),void 0!==this.linewidth&&1!==this.linewidth&&(n.linewidth=this.linewidth),void 0!==this.dashSize&&(n.dashSize=this.dashSize),void 0!==this.gapSize&&(n.gapSize=this.gapSize),void 0!==this.scale&&(n.scale=this.scale),!0===this.dithering&&(n.dithering=!0),this.alphaTest>0&&(n.alphaTest=this.alphaTest),!0===this.alphaHash&&(n.alphaHash=!0),!0===this.alphaToCoverage&&(n.alphaToCoverage=!0),!0===this.premultipliedAlpha&&(n.premultipliedAlpha=!0),!0===this.forceSinglePass&&(n.forceSinglePass=!0),!0===this.wireframe&&(n.wireframe=!0),this.wireframeLinewidth>1&&(n.wireframeLinewidth=this.wireframeLinewidth),"round"!==this.wireframeLinecap&&(n.wireframeLinecap=this.wireframeLinecap),"round"!==this.wireframeLinejoin&&(n.wireframeLinejoin=this.wireframeLinejoin),!0===this.flatShading&&(n.flatShading=!0),!1===this.visible&&(n.visible=!1),!1===this.toneMapped&&(n.toneMapped=!1),!1===this.fog&&(n.fog=!1),Object.keys(this.userData).length>0&&(n.userData=this.userData),t){const t=r(e.textures),i=r(e.images);t.length>0&&(n.textures=t),i.length>0&&(n.images=i)}return n}clone(){return(new this.constructor).copy(this)}copy(e){this.name=e.name,this.blending=e.blending,this.side=e.side,this.vertexColors=e.vertexColors,this.opacity=e.opacity,this.transparent=e.transparent,this.blendSrc=e.blendSrc,this.blendDst=e.blendDst,this.blendEquation=e.blendEquation,this.blendSrcAlpha=e.blendSrcAlpha,this.blendDstAlpha=e.blendDstAlpha,this.blendEquationAlpha=e.blendEquationAlpha,this.blendColor.copy(e.blendColor),this.blendAlpha=e.blendAlpha,this.depthFunc=e.depthFunc,this.depthTest=e.depthTest,this.depthWrite=e.depthWrite,this.stencilWriteMask=e.stencilWriteMask,this.stencilFunc=e.stencilFunc,this.stencilRef=e.stencilRef,this.stencilFuncMask=e.stencilFuncMask,this.stencilFail=e.stencilFail,this.stencilZFail=e.stencilZFail,this.stencilZPass=e.stencilZPass,this.stencilWrite=e.stencilWrite;const t=e.clippingPlanes;let n=null;if(null!==t){const e=t.length;n=new Array(e);for(let r=0;r!==e;++r)n[r]=t[r].clone()}return this.clippingPlanes=n,this.clipIntersection=e.clipIntersection,this.clipShadows=e.clipShadows,this.shadowSide=e.shadowSide,this.colorWrite=e.colorWrite,this.precision=e.precision,this.polygonOffset=e.polygonOffset,this.polygonOffsetFactor=e.polygonOffsetFactor,this.polygonOffsetUnits=e.polygonOffsetUnits,this.dithering=e.dithering,this.alphaTest=e.alphaTest,this.alphaHash=e.alphaHash,this.alphaToCoverage=e.alphaToCoverage,this.premultipliedAlpha=e.premultipliedAlpha,this.forceSinglePass=e.forceSinglePass,this.visible=e.visible,this.toneMapped=e.toneMapped,this.userData=JSON.parse(JSON.stringify(e.userData)),this}dispose(){this.dispatchEvent({type:"dispose"})}set needsUpdate(e){!0===e&&this.version++}}class ta extends ea{constructor(e){super(),this.isMeshBasicMaterial=!0,this.type="MeshBasicMaterial",this.color=new Ji(16777215),this.map=null,this.lightMap=null,this.lightMapIntensity=1,this.aoMap=null,this.aoMapIntensity=1,this.specularMap=null,this.alphaMap=null,this.alphaMapChannel=0,this.envMap=null,this.envMapRotation=new vi,this.combine=J,this.reflectivity=1,this.refractionRatio=.98,this.wireframe=!1,this.wireframeLinewidth=1,this.wireframeLinecap="round",this.wireframeLinejoin="round",this.fog=!0,this.setValues(e)}copy(e){return super.copy(e),this.color.copy(e.color),this.map=e.map,this.lightMap=e.lightMap,this.lightMapIntensity=e.lightMapIntensity,this.aoMap=e.aoMap,this.aoMapIntensity=e.aoMapIntensity,this.specularMap=e.specularMap,this.alphaMap=e.alphaMap,this.alphaMapChannel=e.alphaMapChannel,this.envMap=e.envMap,this.envMapRotation.copy(e.envMapRotation),this.combine=e.combine,this.reflectivity=e.reflectivity,this.refractionRatio=e.refractionRatio,this.wireframe=e.wireframe,this.wireframeLinewidth=e.wireframeLinewidth,this.wireframeLinecap=e.wireframeLinecap,this.wireframeLinejoin=e.wireframeLinejoin,this.fog=e.fog,this}}const na=function(){const e=new ArrayBuffer(4),t=new Float32Array(e),n=new Uint32Array(e),r=new Uint32Array(512),i=new Uint32Array(512);for(let e=0;e<256;++e){const t=e-127;t<-27?(r[e]=0,r[256|e]=32768,i[e]=24,i[256|e]=24):t<-14?(r[e]=1024>>-t-14,r[256|e]=1024>>-t-14|32768,i[e]=-t-1,i[256|e]=-t-1):t<=15?(r[e]=t+15<<10,r[256|e]=t+15<<10|32768,i[e]=13,i[256|e]=13):t<128?(r[e]=31744,r[256|e]=64512,i[e]=24,i[256|e]=24):(r[e]=31744,r[256|e]=64512,i[e]=13,i[256|e]=13)}const a=new Uint32Array(2048),s=new Uint32Array(64),o=new Uint32Array(64);for(let e=1;e<1024;++e){let t=e<<13,n=0;for(;!(8388608&t);)t<<=1,n-=8388608;t&=-8388609,n+=947912704,a[e]=t|n}for(let e=1024;e<2048;++e)a[e]=939524096+(e-1024<<13);for(let e=1;e<31;++e)s[e]=e<<23;s[31]=1199570944,s[32]=2147483648;for(let e=33;e<63;++e)s[e]=2147483648+(e-32<<23);s[63]=3347054592;for(let e=1;e<64;++e)32!==e&&(o[e]=1024);return{floatView:t,uint32View:n,baseTable:r,shiftTable:i,mantissaTable:a,exponentTable:s,offsetTable:o}}();function ra(e){Math.abs(e)>65504&&console.warn("THREE.DataUtils.toHalfFloat(): Value out of range."),e=Xn(e,-65504,65504),na.floatView[0]=e;const t=na.uint32View[0],n=t>>23&511;return na.baseTable[n]+((8388607&t)>>na.shiftTable[n])}function ia(e){const t=e>>10;return na.uint32View[0]=na.mantissaTable[na.offsetTable[t]+(1023&e)]+na.exponentTable[t],na.floatView[0]}const aa={toHalfFloat:ra,fromHalfFloat:ia},sa=new Pr,oa=new er;class la{constructor(e,t,n=!1){if(Array.isArray(e))throw new TypeError("THREE.BufferAttribute: array should be a Typed Array.");this.isBufferAttribute=!0,this.name="",this.array=e,this.itemSize=t,this.count=void 0!==e?e.length/t:0,this.normalized=n,this.usage=Tn,this._updateRange={offset:0,count:-1},this.updateRanges=[],this.gpuType=Ue,this.version=0}onUploadCallback(){}set needsUpdate(e){!0===e&&this.version++}get updateRange(){return cr("THREE.BufferAttribute: updateRange() is deprecated and will be removed in r169. Use addUpdateRange() instead."),this._updateRange}setUsage(e){return this.usage=e,this}addUpdateRange(e,t){this.updateRanges.push({start:e,count:t})}clearUpdateRanges(){this.updateRanges.length=0}copy(e){return this.name=e.name,this.array=new e.array.constructor(e.array),this.itemSize=e.itemSize,this.count=e.count,this.normalized=e.normalized,this.usage=e.usage,this.gpuType=e.gpuType,this}copyAt(e,t,n){e*=this.itemSize,n*=t.itemSize;for(let r=0,i=this.itemSize;r0&&(e.userData=this.userData),void 0!==this.parameters){const t=this.parameters;for(const n in t)void 0!==t[n]&&(e[n]=t[n]);return e}e.data={attributes:{}};const t=this.index;null!==t&&(e.data.index={type:t.array.constructor.name,array:Array.prototype.slice.call(t.array)});const n=this.attributes;for(const t in n){const r=n[t];e.data.attributes[t]=r.toJSON(e.data)}const r={};let i=!1;for(const t in this.morphAttributes){const n=this.morphAttributes[t],a=[];for(let t=0,r=n.length;t0&&(r[t]=a,i=!0)}i&&(e.data.morphAttributes=r,e.data.morphTargetsRelative=this.morphTargetsRelative);const a=this.groups;a.length>0&&(e.data.groups=JSON.parse(JSON.stringify(a)));const s=this.boundingSphere;return null!==s&&(e.data.boundingSphere={center:s.center.toArray(),radius:s.radius}),e}clone(){return(new this.constructor).copy(this)}copy(e){this.index=null,this.attributes={},this.morphAttributes={},this.groups=[],this.boundingBox=null,this.boundingSphere=null;const t={};this.name=e.name;const n=e.index;null!==n&&this.setIndex(n.clone(t));const r=e.attributes;for(const e in r){const n=r[e];this.setAttribute(e,n.clone(t))}const i=e.morphAttributes;for(const e in i){const n=[],r=i[e];for(let e=0,i=r.length;e0){const n=e[t[0]];if(void 0!==n){this.morphTargetInfluences=[],this.morphTargetDictionary={};for(let e=0,t=n.length;e(e.far-e.near)**2)return}Sa.copy(i).invert(),Ca.copy(e.ray).applyMatrix4(Sa),null!==n.boundingBox&&!1===Ca.intersectsBox(n.boundingBox)||this._computeIntersections(e,t,Ca)}}_computeIntersections(e,t,n){let r;const i=this.geometry,a=this.material,s=i.index,o=i.attributes.position,l=i.attributes.uv,c=i.attributes.uv1,u=i.attributes.normal,h=i.groups,d=i.drawRange;if(null!==s)if(Array.isArray(a))for(let i=0,o=h.length;in.far?null:{distance:c,point:Va.clone(),object:e}}(e,t,n,r,Ba,Ra,Pa,Ga);if(u){i&&(Ua.fromBufferAttribute(i,o),Da.fromBufferAttribute(i,l),Fa.fromBufferAttribute(i,c),u.uv=Wi.getInterpolation(Ga,Ba,Ra,Pa,Ua,Da,Fa,new er)),a&&(Ua.fromBufferAttribute(a,o),Da.fromBufferAttribute(a,l),Fa.fromBufferAttribute(a,c),u.uv1=Wi.getInterpolation(Ga,Ba,Ra,Pa,Ua,Da,Fa,new er)),s&&(Na.fromBufferAttribute(s,o),ka.fromBufferAttribute(s,l),Qa.fromBufferAttribute(s,c),u.normal=Wi.getInterpolation(Ga,Ba,Ra,Pa,Na,ka,Qa,new Pr),u.normal.dot(r.direction)>0&&u.normal.multiplyScalar(-1));const e={a:o,b:l,c:c,normal:new Pr,materialIndex:0};Wi.getNormal(Ba,Ra,Pa,e.normal),u.face=e}return u}class ja extends Ma{constructor(e=1,t=1,n=1,r=1,i=1,a=1){super(),this.type="BoxGeometry",this.parameters={width:e,height:t,depth:n,widthSegments:r,heightSegments:i,depthSegments:a};const s=this;r=Math.floor(r),i=Math.floor(i),a=Math.floor(a);const o=[],l=[],c=[],u=[];let h=0,d=0;function p(e,t,n,r,i,a,p,f,m,A,g){const v=a/m,y=p/A,b=a/2,_=p/2,x=f/2,E=m+1,w=A+1;let M=0,S=0;const C=new Pr;for(let a=0;a0?1:-1,c.push(C.x,C.y,C.z),u.push(o/m),u.push(1-a/A),M+=1}}for(let e=0;e0&&(t.defines=this.defines),t.vertexShader=this.vertexShader,t.fragmentShader=this.fragmentShader,t.lights=this.lights,t.clipping=this.clipping;const n={};for(const e in this.extensions)!0===this.extensions[e]&&(n[e]=!0);return Object.keys(n).length>0&&(t.extensions=n),t}}class Ja extends Ui{constructor(){super(),this.isCamera=!0,this.type="Camera",this.matrixWorldInverse=new li,this.projectionMatrix=new li,this.projectionMatrixInverse=new li,this.coordinateSystem=Qn}copy(e,t){return super.copy(e,t),this.matrixWorldInverse.copy(e.matrixWorldInverse),this.projectionMatrix.copy(e.projectionMatrix),this.projectionMatrixInverse.copy(e.projectionMatrixInverse),this.coordinateSystem=e.coordinateSystem,this}getWorldDirection(e){return super.getWorldDirection(e).negate()}updateMatrixWorld(e){super.updateMatrixWorld(e),this.matrixWorldInverse.copy(this.matrixWorld).invert()}updateWorldMatrix(e,t){super.updateWorldMatrix(e,t),this.matrixWorldInverse.copy(this.matrixWorld).invert()}clone(){return(new this.constructor).copy(this)}}const Za=new Pr,$a=new er,es=new er;class ts extends Ja{constructor(e=50,t=1,n=.1,r=2e3){super(),this.isPerspectiveCamera=!0,this.type="PerspectiveCamera",this.fov=e,this.zoom=1,this.near=n,this.far=r,this.focus=10,this.aspect=t,this.view=null,this.filmGauge=35,this.filmOffset=0,this.updateProjectionMatrix()}copy(e,t){return super.copy(e,t),this.fov=e.fov,this.zoom=e.zoom,this.near=e.near,this.far=e.far,this.focus=e.focus,this.aspect=e.aspect,this.view=null===e.view?null:Object.assign({},e.view),this.filmGauge=e.filmGauge,this.filmOffset=e.filmOffset,this}setFocalLength(e){const t=.5*this.getFilmHeight()/e;this.fov=2*Wn*Math.atan(t),this.updateProjectionMatrix()}getFocalLength(){const e=Math.tan(.5*jn*this.fov);return.5*this.getFilmHeight()/e}getEffectiveFOV(){return 2*Wn*Math.atan(Math.tan(.5*jn*this.fov)/this.zoom)}getFilmWidth(){return this.filmGauge*Math.min(this.aspect,1)}getFilmHeight(){return this.filmGauge/Math.max(this.aspect,1)}getViewBounds(e,t,n){Za.set(-1,-1,.5).applyMatrix4(this.projectionMatrixInverse),t.set(Za.x,Za.y).multiplyScalar(-e/Za.z),Za.set(1,1,.5).applyMatrix4(this.projectionMatrixInverse),n.set(Za.x,Za.y).multiplyScalar(-e/Za.z)}getViewSize(e,t){return this.getViewBounds(e,$a,es),t.subVectors(es,$a)}setViewOffset(e,t,n,r,i,a){this.aspect=e/t,null===this.view&&(this.view={enabled:!0,fullWidth:1,fullHeight:1,offsetX:0,offsetY:0,width:1,height:1}),this.view.enabled=!0,this.view.fullWidth=e,this.view.fullHeight=t,this.view.offsetX=n,this.view.offsetY=r,this.view.width=i,this.view.height=a,this.updateProjectionMatrix()}clearViewOffset(){null!==this.view&&(this.view.enabled=!1),this.updateProjectionMatrix()}updateProjectionMatrix(){const e=this.near;let t=e*Math.tan(.5*jn*this.fov)/this.zoom,n=2*t,r=this.aspect*n,i=-.5*r;const a=this.view;if(null!==this.view&&this.view.enabled){const e=a.fullWidth,s=a.fullHeight;i+=a.offsetX*r/e,t-=a.offsetY*n/s,r*=a.width/e,n*=a.height/s}const s=this.filmOffset;0!==s&&(i+=e*s/this.getFilmWidth()),this.projectionMatrix.makePerspective(i,i+r,t,t-n,e,this.far,this.coordinateSystem),this.projectionMatrixInverse.copy(this.projectionMatrix).invert()}toJSON(e){const t=super.toJSON(e);return 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,null!==this.view&&(t.object.view=Object.assign({},this.view)),t.object.filmGauge=this.filmGauge,t.object.filmOffset=this.filmOffset,t}}const ns=-90;class rs extends Ui{constructor(e,t,n){super(),this.type="CubeCamera",this.renderTarget=n,this.coordinateSystem=null,this.activeMipmapLevel=0;const r=new ts(ns,1,e,t);r.layers=this.layers,this.add(r);const i=new ts(ns,1,e,t);i.layers=this.layers,this.add(i);const a=new ts(ns,1,e,t);a.layers=this.layers,this.add(a);const s=new ts(ns,1,e,t);s.layers=this.layers,this.add(s);const o=new ts(ns,1,e,t);o.layers=this.layers,this.add(o);const l=new ts(ns,1,e,t);l.layers=this.layers,this.add(l)}updateCoordinateSystem(){const e=this.coordinateSystem,t=this.children.concat(),[n,r,i,a,s,o]=t;for(const e of t)this.remove(e);if(e===Qn)n.up.set(0,1,0),n.lookAt(1,0,0),r.up.set(0,1,0),r.lookAt(-1,0,0),i.up.set(0,0,-1),i.lookAt(0,1,0),a.up.set(0,0,1),a.lookAt(0,-1,0),s.up.set(0,1,0),s.lookAt(0,0,1),o.up.set(0,1,0),o.lookAt(0,0,-1);else{if(e!==Gn)throw new Error("THREE.CubeCamera.updateCoordinateSystem(): Invalid coordinate system: "+e);n.up.set(0,-1,0),n.lookAt(-1,0,0),r.up.set(0,-1,0),r.lookAt(1,0,0),i.up.set(0,0,1),i.lookAt(0,1,0),a.up.set(0,0,-1),a.lookAt(0,-1,0),s.up.set(0,-1,0),s.lookAt(0,0,1),o.up.set(0,-1,0),o.lookAt(0,0,-1)}for(const e of t)this.add(e),e.updateMatrixWorld()}update(e,t){null===this.parent&&this.updateMatrixWorld();const{renderTarget:n,activeMipmapLevel:r}=this;this.coordinateSystem!==e.coordinateSystem&&(this.coordinateSystem=e.coordinateSystem,this.updateCoordinateSystem());const[i,a,s,o,l,c]=this.children,u=e.getRenderTarget(),h=e.getActiveCubeFace(),d=e.getActiveMipmapLevel(),p=e.xr.enabled;e.xr.enabled=!1;const f=n.texture.generateMipmaps;n.texture.generateMipmaps=!1,e.setRenderTarget(n,0,r),e.render(t,i),e.setRenderTarget(n,1,r),e.render(t,a),e.setRenderTarget(n,2,r),e.render(t,s),e.setRenderTarget(n,3,r),e.render(t,o),e.setRenderTarget(n,4,r),e.render(t,l),n.texture.generateMipmaps=f,e.setRenderTarget(n,5,r),e.render(t,c),e.setRenderTarget(u,h,d),e.xr.enabled=p,n.texture.needsPMREMUpdate=!0}}class is extends Er{constructor(e,t,n,r,i,a,s,o,l,c){super(e=void 0!==e?e:[],t=void 0!==t?t:he,n,r,i,a,s,o,l,c),this.isCubeTexture=!0,this.flipY=!1}get images(){return this.image}set images(e){this.image=e}}class as extends Sr{constructor(e=1,t={}){super(e,e,t),this.isWebGLCubeRenderTarget=!0;const n={width:e,height:e,depth:1},r=[n,n,n,n,n,n];this.texture=new is(r,t.mapping,t.wrapS,t.wrapT,t.magFilter,t.minFilter,t.format,t.type,t.anisotropy,t.colorSpace),this.texture.isRenderTargetTexture=!0,this.texture.generateMipmaps=void 0!==t.generateMipmaps&&t.generateMipmaps,this.texture.minFilter=void 0!==t.minFilter?t.minFilter:we}fromEquirectangularTexture(e,t){this.texture.type=t.type,this.texture.colorSpace=t.colorSpace,this.texture.generateMipmaps=t.generateMipmaps,this.texture.minFilter=t.minFilter,this.texture.magFilter=t.magFilter;const n={tEquirect:{value:null}},r="\n\n\t\t\t\tvarying vec3 vWorldDirection;\n\n\t\t\t\tvec3 transformDirection( in vec3 dir, in mat4 matrix ) {\n\n\t\t\t\t\treturn normalize( ( matrix * vec4( dir, 0.0 ) ).xyz );\n\n\t\t\t\t}\n\n\t\t\t\tvoid main() {\n\n\t\t\t\t\tvWorldDirection = transformDirection( position, modelMatrix );\n\n\t\t\t\t\t#include \n\t\t\t\t\t#include \n\n\t\t\t\t}\n\t\t\t",i="\n\n\t\t\t\tuniform sampler2D tEquirect;\n\n\t\t\t\tvarying vec3 vWorldDirection;\n\n\t\t\t\t#include \n\n\t\t\t\tvoid main() {\n\n\t\t\t\t\tvec3 direction = normalize( vWorldDirection );\n\n\t\t\t\t\tvec2 sampleUV = equirectUv( direction );\n\n\t\t\t\t\tgl_FragColor = texture2D( tEquirect, sampleUV );\n\n\t\t\t\t}\n\t\t\t",a=new ja(5,5,5),s=new Ka({name:"CubemapFromEquirect",uniforms:Wa(n),vertexShader:r,fragmentShader:i,side:m,blending:g});s.uniforms.tEquirect.value=t;const o=new za(a,s),l=t.minFilter;return t.minFilter===Ce&&(t.minFilter=we),new rs(1,10,this).update(e,o),t.minFilter=l,o.geometry.dispose(),o.material.dispose(),this}clear(e,t,n,r){const i=e.getRenderTarget();for(let i=0;i<6;i++)e.setRenderTarget(this,i),e.clear(t,n,r);e.setRenderTarget(i)}}const ss=new Pr,os=new Pr,ls=new tr;class cs{constructor(e=new Pr(1,0,0),t=0){this.isPlane=!0,this.normal=e,this.constant=t}set(e,t){return this.normal.copy(e),this.constant=t,this}setComponents(e,t,n,r){return this.normal.set(e,t,n),this.constant=r,this}setFromNormalAndCoplanarPoint(e,t){return this.normal.copy(e),this.constant=-t.dot(this.normal),this}setFromCoplanarPoints(e,t,n){const r=ss.subVectors(n,t).cross(os.subVectors(e,t)).normalize();return this.setFromNormalAndCoplanarPoint(r,e),this}copy(e){return this.normal.copy(e.normal),this.constant=e.constant,this}normalize(){const e=1/this.normal.length();return this.normal.multiplyScalar(e),this.constant*=e,this}negate(){return this.constant*=-1,this.normal.negate(),this}distanceToPoint(e){return this.normal.dot(e)+this.constant}distanceToSphere(e){return this.distanceToPoint(e.center)-e.radius}projectPoint(e,t){return t.copy(e).addScaledVector(this.normal,-this.distanceToPoint(e))}intersectLine(e,t){const n=e.delta(ss),r=this.normal.dot(n);if(0===r)return 0===this.distanceToPoint(e.start)?t.copy(e.start):null;const i=-(e.start.dot(this.normal)+this.constant)/r;return i<0||i>1?null:t.copy(e.start).addScaledVector(n,i)}intersectsLine(e){const t=this.distanceToPoint(e.start),n=this.distanceToPoint(e.end);return t<0&&n>0||n<0&&t>0}intersectsBox(e){return e.intersectsPlane(this)}intersectsSphere(e){return e.intersectsPlane(this)}coplanarPoint(e){return e.copy(this.normal).multiplyScalar(-this.constant)}applyMatrix4(e,t){const n=t||ls.getNormalMatrix(e),r=this.coplanarPoint(ss).applyMatrix4(e),i=this.normal.applyMatrix3(n).normalize();return this.constant=-r.dot(i),this}translate(e){return this.constant-=e.dot(this.normal),this}equals(e){return e.normal.equals(this.normal)&&e.constant===this.constant}clone(){return(new this.constructor).copy(this)}}const us=new $r,hs=new Pr;class ds{constructor(e=new cs,t=new cs,n=new cs,r=new cs,i=new cs,a=new cs){this.planes=[e,t,n,r,i,a]}set(e,t,n,r,i,a){const s=this.planes;return s[0].copy(e),s[1].copy(t),s[2].copy(n),s[3].copy(r),s[4].copy(i),s[5].copy(a),this}copy(e){const t=this.planes;for(let n=0;n<6;n++)t[n].copy(e.planes[n]);return this}setFromProjectionMatrix(e,t=Qn){const n=this.planes,r=e.elements,i=r[0],a=r[1],s=r[2],o=r[3],l=r[4],c=r[5],u=r[6],h=r[7],d=r[8],p=r[9],f=r[10],m=r[11],A=r[12],g=r[13],v=r[14],y=r[15];if(n[0].setComponents(o-i,h-l,m-d,y-A).normalize(),n[1].setComponents(o+i,h+l,m+d,y+A).normalize(),n[2].setComponents(o+a,h+c,m+p,y+g).normalize(),n[3].setComponents(o-a,h-c,m-p,y-g).normalize(),n[4].setComponents(o-s,h-u,m-f,y-v).normalize(),t===Qn)n[5].setComponents(o+s,h+u,m+f,y+v).normalize();else{if(t!==Gn)throw new Error("THREE.Frustum.setFromProjectionMatrix(): Invalid coordinate system: "+t);n[5].setComponents(s,u,f,v).normalize()}return this}intersectsObject(e){if(void 0!==e.boundingSphere)null===e.boundingSphere&&e.computeBoundingSphere(),us.copy(e.boundingSphere).applyMatrix4(e.matrixWorld);else{const t=e.geometry;null===t.boundingSphere&&t.computeBoundingSphere(),us.copy(t.boundingSphere).applyMatrix4(e.matrixWorld)}return this.intersectsSphere(us)}intersectsSprite(e){return us.center.set(0,0,0),us.radius=.7071067811865476,us.applyMatrix4(e.matrixWorld),this.intersectsSphere(us)}intersectsSphere(e){const t=this.planes,n=e.center,r=-e.radius;for(let e=0;e<6;e++)if(t[e].distanceToPoint(n)0?e.max.x:e.min.x,hs.y=r.normal.y>0?e.max.y:e.min.y,hs.z=r.normal.z>0?e.max.z:e.min.z,r.distanceToPoint(hs)<0)return!1}return!0}containsPoint(e){const t=this.planes;for(let n=0;n<6;n++)if(t[n].distanceToPoint(e)<0)return!1;return!0}clone(){return(new this.constructor).copy(this)}}function ps(){let e=null,t=!1,n=null,r=null;function i(t,a){n(t,a),r=e.requestAnimationFrame(i)}return{start:function(){!0!==t&&null!==n&&(r=e.requestAnimationFrame(i),t=!0)},stop:function(){e.cancelAnimationFrame(r),t=!1},setAnimationLoop:function(e){n=e},setContext:function(t){e=t}}}function fs(e){const t=new WeakMap;return{get:function(e){return e.isInterleavedBufferAttribute&&(e=e.data),t.get(e)},remove:function(n){n.isInterleavedBufferAttribute&&(n=n.data);const r=t.get(n);r&&(e.deleteBuffer(r.buffer),t.delete(n))},update:function(n,r){if(n.isGLBufferAttribute){const e=t.get(n);return void((!e||e.version 0\n\tvec4 plane;\n\t#ifdef ALPHA_TO_COVERAGE\n\t\tfloat distanceToPlane, distanceGradient;\n\t\tfloat clipOpacity = 1.0;\n\t\t#pragma unroll_loop_start\n\t\tfor ( int i = 0; i < UNION_CLIPPING_PLANES; i ++ ) {\n\t\t\tplane = clippingPlanes[ i ];\n\t\t\tdistanceToPlane = - dot( vClipPosition, plane.xyz ) + plane.w;\n\t\t\tdistanceGradient = fwidth( distanceToPlane ) / 2.0;\n\t\t\tclipOpacity *= smoothstep( - distanceGradient, distanceGradient, distanceToPlane );\n\t\t\tif ( clipOpacity == 0.0 ) discard;\n\t\t}\n\t\t#pragma unroll_loop_end\n\t\t#if UNION_CLIPPING_PLANES < NUM_CLIPPING_PLANES\n\t\t\tfloat unionClipOpacity = 1.0;\n\t\t\t#pragma unroll_loop_start\n\t\t\tfor ( int i = UNION_CLIPPING_PLANES; i < NUM_CLIPPING_PLANES; i ++ ) {\n\t\t\t\tplane = clippingPlanes[ i ];\n\t\t\t\tdistanceToPlane = - dot( vClipPosition, plane.xyz ) + plane.w;\n\t\t\t\tdistanceGradient = fwidth( distanceToPlane ) / 2.0;\n\t\t\t\tunionClipOpacity *= 1.0 - smoothstep( - distanceGradient, distanceGradient, distanceToPlane );\n\t\t\t}\n\t\t\t#pragma unroll_loop_end\n\t\t\tclipOpacity *= 1.0 - unionClipOpacity;\n\t\t#endif\n\t\tdiffuseColor.a *= clipOpacity;\n\t\tif ( diffuseColor.a == 0.0 ) discard;\n\t#else\n\t\t#pragma unroll_loop_start\n\t\tfor ( int i = 0; i < UNION_CLIPPING_PLANES; i ++ ) {\n\t\t\tplane = clippingPlanes[ i ];\n\t\t\tif ( dot( vClipPosition, plane.xyz ) > plane.w ) discard;\n\t\t}\n\t\t#pragma unroll_loop_end\n\t\t#if UNION_CLIPPING_PLANES < NUM_CLIPPING_PLANES\n\t\t\tbool clipped = true;\n\t\t\t#pragma unroll_loop_start\n\t\t\tfor ( int i = UNION_CLIPPING_PLANES; i < NUM_CLIPPING_PLANES; i ++ ) {\n\t\t\t\tplane = clippingPlanes[ i ];\n\t\t\t\tclipped = ( dot( vClipPosition, plane.xyz ) > plane.w ) && clipped;\n\t\t\t}\n\t\t\t#pragma unroll_loop_end\n\t\t\tif ( clipped ) discard;\n\t\t#endif\n\t#endif\n#endif",clipping_planes_pars_fragment:"#if NUM_CLIPPING_PLANES > 0\n\tvarying vec3 vClipPosition;\n\tuniform vec4 clippingPlanes[ NUM_CLIPPING_PLANES ];\n#endif",clipping_planes_pars_vertex:"#if NUM_CLIPPING_PLANES > 0\n\tvarying vec3 vClipPosition;\n#endif",clipping_planes_vertex:"#if NUM_CLIPPING_PLANES > 0\n\tvClipPosition = - mvPosition.xyz;\n#endif",color_fragment:"#if defined( USE_COLOR_ALPHA )\n\tdiffuseColor *= vColor;\n#elif defined( USE_COLOR )\n\tdiffuseColor.rgb *= vColor;\n#endif",color_pars_fragment:"#if defined( USE_COLOR_ALPHA )\n\tvarying vec4 vColor;\n#elif defined( USE_COLOR )\n\tvarying vec3 vColor;\n#endif",color_pars_vertex:"#if defined( USE_COLOR_ALPHA )\n\tvarying vec4 vColor;\n#elif defined( USE_COLOR ) || defined( USE_INSTANCING_COLOR ) || defined( USE_BATCHING_COLOR )\n\tvarying vec3 vColor;\n#endif",color_vertex:"#if defined( USE_COLOR_ALPHA )\n\tvColor = vec4( 1.0 );\n#elif defined( USE_COLOR ) || defined( USE_INSTANCING_COLOR ) || defined( USE_BATCHING_COLOR )\n\tvColor = vec3( 1.0 );\n#endif\n#ifdef USE_COLOR\n\tvColor *= color;\n#endif\n#ifdef USE_INSTANCING_COLOR\n\tvColor.xyz *= instanceColor.xyz;\n#endif\n#ifdef USE_BATCHING_COLOR\n\tvec3 batchingColor = getBatchingColor( batchId );\n\tvColor.xyz *= batchingColor.xyz;\n#endif",common:"#define PI 3.141592653589793\n#define PI2 6.283185307179586\n#define PI_HALF 1.5707963267948966\n#define RECIPROCAL_PI 0.3183098861837907\n#define RECIPROCAL_PI2 0.15915494309189535\n#define EPSILON 1e-6\n#ifndef saturate\n#define saturate( a ) clamp( a, 0.0, 1.0 )\n#endif\n#define whiteComplement( a ) ( 1.0 - saturate( a ) )\nfloat pow2( const in float x ) { return x*x; }\nvec3 pow2( const in vec3 x ) { return x*x; }\nfloat pow3( const in float x ) { return x*x*x; }\nfloat pow4( const in float x ) { float x2 = x*x; return x2*x2; }\nfloat max3( const in vec3 v ) { return max( max( v.x, v.y ), v.z ); }\nfloat average( const in vec3 v ) { return dot( v, vec3( 0.3333333 ) ); }\nhighp float rand( const in vec2 uv ) {\n\tconst highp float a = 12.9898, b = 78.233, c = 43758.5453;\n\thighp float dt = dot( uv.xy, vec2( a,b ) ), sn = mod( dt, PI );\n\treturn fract( sin( sn ) * c );\n}\n#ifdef HIGH_PRECISION\n\tfloat precisionSafeLength( vec3 v ) { return length( v ); }\n#else\n\tfloat precisionSafeLength( vec3 v ) {\n\t\tfloat maxComponent = max3( abs( v ) );\n\t\treturn length( v / maxComponent ) * maxComponent;\n\t}\n#endif\nstruct IncidentLight {\n\tvec3 color;\n\tvec3 direction;\n\tbool visible;\n};\nstruct ReflectedLight {\n\tvec3 directDiffuse;\n\tvec3 directSpecular;\n\tvec3 indirectDiffuse;\n\tvec3 indirectSpecular;\n};\n#ifdef USE_ALPHAHASH\n\tvarying vec3 vPosition;\n#endif\nvec3 transformDirection( in vec3 dir, in mat4 matrix ) {\n\treturn normalize( ( matrix * vec4( dir, 0.0 ) ).xyz );\n}\nvec3 inverseTransformDirection( in vec3 dir, in mat4 matrix ) {\n\treturn normalize( ( vec4( dir, 0.0 ) * matrix ).xyz );\n}\nmat3 transposeMat3( const in mat3 m ) {\n\tmat3 tmp;\n\ttmp[ 0 ] = vec3( m[ 0 ].x, m[ 1 ].x, m[ 2 ].x );\n\ttmp[ 1 ] = vec3( m[ 0 ].y, m[ 1 ].y, m[ 2 ].y );\n\ttmp[ 2 ] = vec3( m[ 0 ].z, m[ 1 ].z, m[ 2 ].z );\n\treturn tmp;\n}\nfloat luminance( const in vec3 rgb ) {\n\tconst vec3 weights = vec3( 0.2126729, 0.7151522, 0.0721750 );\n\treturn dot( weights, rgb );\n}\nbool isPerspectiveMatrix( mat4 m ) {\n\treturn m[ 2 ][ 3 ] == - 1.0;\n}\nvec2 equirectUv( in vec3 dir ) {\n\tfloat u = atan( dir.z, dir.x ) * RECIPROCAL_PI2 + 0.5;\n\tfloat v = asin( clamp( dir.y, - 1.0, 1.0 ) ) * RECIPROCAL_PI + 0.5;\n\treturn vec2( u, v );\n}\nvec3 BRDF_Lambert( const in vec3 diffuseColor ) {\n\treturn RECIPROCAL_PI * diffuseColor;\n}\nvec3 F_Schlick( const in vec3 f0, const in float f90, const in float dotVH ) {\n\tfloat fresnel = exp2( ( - 5.55473 * dotVH - 6.98316 ) * dotVH );\n\treturn f0 * ( 1.0 - fresnel ) + ( f90 * fresnel );\n}\nfloat F_Schlick( const in float f0, const in float f90, const in float dotVH ) {\n\tfloat fresnel = exp2( ( - 5.55473 * dotVH - 6.98316 ) * dotVH );\n\treturn f0 * ( 1.0 - fresnel ) + ( f90 * fresnel );\n} // validated",cube_uv_reflection_fragment:"#ifdef ENVMAP_TYPE_CUBE_UV\n\t#define cubeUV_minMipLevel 4.0\n\t#define cubeUV_minTileSize 16.0\n\tfloat getFace( vec3 direction ) {\n\t\tvec3 absDirection = abs( direction );\n\t\tfloat face = - 1.0;\n\t\tif ( absDirection.x > absDirection.z ) {\n\t\t\tif ( absDirection.x > absDirection.y )\n\t\t\t\tface = direction.x > 0.0 ? 0.0 : 3.0;\n\t\t\telse\n\t\t\t\tface = direction.y > 0.0 ? 1.0 : 4.0;\n\t\t} else {\n\t\t\tif ( absDirection.z > absDirection.y )\n\t\t\t\tface = direction.z > 0.0 ? 2.0 : 5.0;\n\t\t\telse\n\t\t\t\tface = direction.y > 0.0 ? 1.0 : 4.0;\n\t\t}\n\t\treturn face;\n\t}\n\tvec2 getUV( vec3 direction, float face ) {\n\t\tvec2 uv;\n\t\tif ( face == 0.0 ) {\n\t\t\tuv = vec2( direction.z, direction.y ) / abs( direction.x );\n\t\t} else if ( face == 1.0 ) {\n\t\t\tuv = vec2( - direction.x, - direction.z ) / abs( direction.y );\n\t\t} else if ( face == 2.0 ) {\n\t\t\tuv = vec2( - direction.x, direction.y ) / abs( direction.z );\n\t\t} else if ( face == 3.0 ) {\n\t\t\tuv = vec2( - direction.z, direction.y ) / abs( direction.x );\n\t\t} else if ( face == 4.0 ) {\n\t\t\tuv = vec2( - direction.x, direction.z ) / abs( direction.y );\n\t\t} else {\n\t\t\tuv = vec2( direction.x, direction.y ) / abs( direction.z );\n\t\t}\n\t\treturn 0.5 * ( uv + 1.0 );\n\t}\n\tvec3 bilinearCubeUV( sampler2D envMap, vec3 direction, float mipInt ) {\n\t\tfloat face = getFace( direction );\n\t\tfloat filterInt = max( cubeUV_minMipLevel - mipInt, 0.0 );\n\t\tmipInt = max( mipInt, cubeUV_minMipLevel );\n\t\tfloat faceSize = exp2( mipInt );\n\t\thighp vec2 uv = getUV( direction, face ) * ( faceSize - 2.0 ) + 1.0;\n\t\tif ( face > 2.0 ) {\n\t\t\tuv.y += faceSize;\n\t\t\tface -= 3.0;\n\t\t}\n\t\tuv.x += face * faceSize;\n\t\tuv.x += filterInt * 3.0 * cubeUV_minTileSize;\n\t\tuv.y += 4.0 * ( exp2( CUBEUV_MAX_MIP ) - faceSize );\n\t\tuv.x *= CUBEUV_TEXEL_WIDTH;\n\t\tuv.y *= CUBEUV_TEXEL_HEIGHT;\n\t\t#ifdef texture2DGradEXT\n\t\t\treturn texture2DGradEXT( envMap, uv, vec2( 0.0 ), vec2( 0.0 ) ).rgb;\n\t\t#else\n\t\t\treturn texture2D( envMap, uv ).rgb;\n\t\t#endif\n\t}\n\t#define cubeUV_r0 1.0\n\t#define cubeUV_m0 - 2.0\n\t#define cubeUV_r1 0.8\n\t#define cubeUV_m1 - 1.0\n\t#define cubeUV_r4 0.4\n\t#define cubeUV_m4 2.0\n\t#define cubeUV_r5 0.305\n\t#define cubeUV_m5 3.0\n\t#define cubeUV_r6 0.21\n\t#define cubeUV_m6 4.0\n\tfloat roughnessToMip( float roughness ) {\n\t\tfloat mip = 0.0;\n\t\tif ( roughness >= cubeUV_r1 ) {\n\t\t\tmip = ( cubeUV_r0 - roughness ) * ( cubeUV_m1 - cubeUV_m0 ) / ( cubeUV_r0 - cubeUV_r1 ) + cubeUV_m0;\n\t\t} else if ( roughness >= cubeUV_r4 ) {\n\t\t\tmip = ( cubeUV_r1 - roughness ) * ( cubeUV_m4 - cubeUV_m1 ) / ( cubeUV_r1 - cubeUV_r4 ) + cubeUV_m1;\n\t\t} else if ( roughness >= cubeUV_r5 ) {\n\t\t\tmip = ( cubeUV_r4 - roughness ) * ( cubeUV_m5 - cubeUV_m4 ) / ( cubeUV_r4 - cubeUV_r5 ) + cubeUV_m4;\n\t\t} else if ( roughness >= cubeUV_r6 ) {\n\t\t\tmip = ( cubeUV_r5 - roughness ) * ( cubeUV_m6 - cubeUV_m5 ) / ( cubeUV_r5 - cubeUV_r6 ) + cubeUV_m5;\n\t\t} else {\n\t\t\tmip = - 2.0 * log2( 1.16 * roughness );\t\t}\n\t\treturn mip;\n\t}\n\tvec4 textureCubeUV( sampler2D envMap, vec3 sampleDir, float roughness ) {\n\t\tfloat mip = clamp( roughnessToMip( roughness ), cubeUV_m0, CUBEUV_MAX_MIP );\n\t\tfloat mipF = fract( mip );\n\t\tfloat mipInt = floor( mip );\n\t\tvec3 color0 = bilinearCubeUV( envMap, sampleDir, mipInt );\n\t\tif ( mipF == 0.0 ) {\n\t\t\treturn vec4( color0, 1.0 );\n\t\t} else {\n\t\t\tvec3 color1 = bilinearCubeUV( envMap, sampleDir, mipInt + 1.0 );\n\t\t\treturn vec4( mix( color0, color1, mipF ), 1.0 );\n\t\t}\n\t}\n#endif",defaultnormal_vertex:"vec3 transformedNormal = objectNormal;\n#ifdef USE_TANGENT\n\tvec3 transformedTangent = objectTangent;\n#endif\n#ifdef USE_BATCHING\n\tmat3 bm = mat3( batchingMatrix );\n\ttransformedNormal /= vec3( dot( bm[ 0 ], bm[ 0 ] ), dot( bm[ 1 ], bm[ 1 ] ), dot( bm[ 2 ], bm[ 2 ] ) );\n\ttransformedNormal = bm * transformedNormal;\n\t#ifdef USE_TANGENT\n\t\ttransformedTangent = bm * transformedTangent;\n\t#endif\n#endif\n#ifdef USE_INSTANCING\n\tmat3 im = mat3( instanceMatrix );\n\ttransformedNormal /= vec3( dot( im[ 0 ], im[ 0 ] ), dot( im[ 1 ], im[ 1 ] ), dot( im[ 2 ], im[ 2 ] ) );\n\ttransformedNormal = im * transformedNormal;\n\t#ifdef USE_TANGENT\n\t\ttransformedTangent = im * transformedTangent;\n\t#endif\n#endif\ntransformedNormal = normalMatrix * transformedNormal;\n#ifdef FLIP_SIDED\n\ttransformedNormal = - transformedNormal;\n#endif\n#ifdef USE_TANGENT\n\ttransformedTangent = ( modelViewMatrix * vec4( transformedTangent, 0.0 ) ).xyz;\n\t#ifdef FLIP_SIDED\n\t\ttransformedTangent = - transformedTangent;\n\t#endif\n#endif",displacementmap_pars_vertex:"#ifdef USE_DISPLACEMENTMAP\n\tuniform sampler2D displacementMap;\n\tuniform float displacementScale;\n\tuniform float displacementBias;\n#endif",displacementmap_vertex:"#ifdef USE_DISPLACEMENTMAP\n\ttransformed += normalize( objectNormal ) * ( texture2D( displacementMap, vDisplacementMapUv ).x * displacementScale + displacementBias );\n#endif",emissivemap_fragment:"#ifdef USE_EMISSIVEMAP\n\tvec4 emissiveColor = texture2D( emissiveMap, vEmissiveMapUv );\n\ttotalEmissiveRadiance *= emissiveColor.rgb;\n#endif",emissivemap_pars_fragment:"#ifdef USE_EMISSIVEMAP\n\tuniform sampler2D emissiveMap;\n#endif",colorspace_fragment:"gl_FragColor = linearToOutputTexel( gl_FragColor );",colorspace_pars_fragment:"\nconst mat3 LINEAR_SRGB_TO_LINEAR_DISPLAY_P3 = mat3(\n\tvec3( 0.8224621, 0.177538, 0.0 ),\n\tvec3( 0.0331941, 0.9668058, 0.0 ),\n\tvec3( 0.0170827, 0.0723974, 0.9105199 )\n);\nconst mat3 LINEAR_DISPLAY_P3_TO_LINEAR_SRGB = mat3(\n\tvec3( 1.2249401, - 0.2249404, 0.0 ),\n\tvec3( - 0.0420569, 1.0420571, 0.0 ),\n\tvec3( - 0.0196376, - 0.0786361, 1.0982735 )\n);\nvec4 LinearSRGBToLinearDisplayP3( in vec4 value ) {\n\treturn vec4( value.rgb * LINEAR_SRGB_TO_LINEAR_DISPLAY_P3, value.a );\n}\nvec4 LinearDisplayP3ToLinearSRGB( in vec4 value ) {\n\treturn vec4( value.rgb * LINEAR_DISPLAY_P3_TO_LINEAR_SRGB, value.a );\n}\nvec4 LinearTransferOETF( in vec4 value ) {\n\treturn value;\n}\nvec4 sRGBTransferOETF( in vec4 value ) {\n\treturn vec4( mix( pow( value.rgb, vec3( 0.41666 ) ) * 1.055 - vec3( 0.055 ), value.rgb * 12.92, vec3( lessThanEqual( value.rgb, vec3( 0.0031308 ) ) ) ), value.a );\n}\nvec4 LinearToLinear( in vec4 value ) {\n\treturn value;\n}\nvec4 LinearTosRGB( in vec4 value ) {\n\treturn sRGBTransferOETF( value );\n}",envmap_fragment:"#ifdef USE_ENVMAP\n\t#ifdef ENV_WORLDPOS\n\t\tvec3 cameraToFrag;\n\t\tif ( isOrthographic ) {\n\t\t\tcameraToFrag = normalize( vec3( - viewMatrix[ 0 ][ 2 ], - viewMatrix[ 1 ][ 2 ], - viewMatrix[ 2 ][ 2 ] ) );\n\t\t} else {\n\t\t\tcameraToFrag = normalize( vWorldPosition - cameraPosition );\n\t\t}\n\t\tvec3 worldNormal = inverseTransformDirection( normal, viewMatrix );\n\t\t#ifdef ENVMAP_MODE_REFLECTION\n\t\t\tvec3 reflectVec = reflect( cameraToFrag, worldNormal );\n\t\t#else\n\t\t\tvec3 reflectVec = refract( cameraToFrag, worldNormal, refractionRatio );\n\t\t#endif\n\t#else\n\t\tvec3 reflectVec = vReflect;\n\t#endif\n\t#ifdef ENVMAP_TYPE_CUBE\n\t\tvec4 envColor = textureCube( envMap, envMapRotation * vec3( flipEnvMap * reflectVec.x, reflectVec.yz ) );\n\t#else\n\t\tvec4 envColor = vec4( 0.0 );\n\t#endif\n\t#ifdef ENVMAP_BLENDING_MULTIPLY\n\t\toutgoingLight = mix( outgoingLight, outgoingLight * envColor.xyz, specularStrength * reflectivity );\n\t#elif defined( ENVMAP_BLENDING_MIX )\n\t\toutgoingLight = mix( outgoingLight, envColor.xyz, specularStrength * reflectivity );\n\t#elif defined( ENVMAP_BLENDING_ADD )\n\t\toutgoingLight += envColor.xyz * specularStrength * reflectivity;\n\t#endif\n#endif",envmap_common_pars_fragment:"#ifdef USE_ENVMAP\n\tuniform float envMapIntensity;\n\tuniform float flipEnvMap;\n\tuniform mat3 envMapRotation;\n\t#ifdef ENVMAP_TYPE_CUBE\n\t\tuniform samplerCube envMap;\n\t#else\n\t\tuniform sampler2D envMap;\n\t#endif\n\t\n#endif",envmap_pars_fragment:"#ifdef USE_ENVMAP\n\tuniform float reflectivity;\n\t#if defined( USE_BUMPMAP ) || defined( USE_NORMALMAP ) || defined( PHONG ) || defined( LAMBERT )\n\t\t#define ENV_WORLDPOS\n\t#endif\n\t#ifdef ENV_WORLDPOS\n\t\tvarying vec3 vWorldPosition;\n\t\tuniform float refractionRatio;\n\t#else\n\t\tvarying vec3 vReflect;\n\t#endif\n#endif",envmap_pars_vertex:"#ifdef USE_ENVMAP\n\t#if defined( USE_BUMPMAP ) || defined( USE_NORMALMAP ) || defined( PHONG ) || defined( LAMBERT )\n\t\t#define ENV_WORLDPOS\n\t#endif\n\t#ifdef ENV_WORLDPOS\n\t\t\n\t\tvarying vec3 vWorldPosition;\n\t#else\n\t\tvarying vec3 vReflect;\n\t\tuniform float refractionRatio;\n\t#endif\n#endif",envmap_physical_pars_fragment:"#ifdef USE_ENVMAP\n\tvec3 getIBLIrradiance( const in vec3 normal ) {\n\t\t#ifdef ENVMAP_TYPE_CUBE_UV\n\t\t\tvec3 worldNormal = inverseTransformDirection( normal, viewMatrix );\n\t\t\tvec4 envMapColor = textureCubeUV( envMap, envMapRotation * worldNormal, 1.0 );\n\t\t\treturn PI * envMapColor.rgb * envMapIntensity;\n\t\t#else\n\t\t\treturn vec3( 0.0 );\n\t\t#endif\n\t}\n\tvec3 getIBLRadiance( const in vec3 viewDir, const in vec3 normal, const in float roughness ) {\n\t\t#ifdef ENVMAP_TYPE_CUBE_UV\n\t\t\tvec3 reflectVec = reflect( - viewDir, normal );\n\t\t\treflectVec = normalize( mix( reflectVec, normal, roughness * roughness) );\n\t\t\treflectVec = inverseTransformDirection( reflectVec, viewMatrix );\n\t\t\tvec4 envMapColor = textureCubeUV( envMap, envMapRotation * reflectVec, roughness );\n\t\t\treturn envMapColor.rgb * envMapIntensity;\n\t\t#else\n\t\t\treturn vec3( 0.0 );\n\t\t#endif\n\t}\n\t#ifdef USE_ANISOTROPY\n\t\tvec3 getIBLAnisotropyRadiance( const in vec3 viewDir, const in vec3 normal, const in float roughness, const in vec3 bitangent, const in float anisotropy ) {\n\t\t\t#ifdef ENVMAP_TYPE_CUBE_UV\n\t\t\t\tvec3 bentNormal = cross( bitangent, viewDir );\n\t\t\t\tbentNormal = normalize( cross( bentNormal, bitangent ) );\n\t\t\t\tbentNormal = normalize( mix( bentNormal, normal, pow2( pow2( 1.0 - anisotropy * ( 1.0 - roughness ) ) ) ) );\n\t\t\t\treturn getIBLRadiance( viewDir, bentNormal, roughness );\n\t\t\t#else\n\t\t\t\treturn vec3( 0.0 );\n\t\t\t#endif\n\t\t}\n\t#endif\n#endif",envmap_vertex:"#ifdef USE_ENVMAP\n\t#ifdef ENV_WORLDPOS\n\t\tvWorldPosition = worldPosition.xyz;\n\t#else\n\t\tvec3 cameraToVertex;\n\t\tif ( isOrthographic ) {\n\t\t\tcameraToVertex = normalize( vec3( - viewMatrix[ 0 ][ 2 ], - viewMatrix[ 1 ][ 2 ], - viewMatrix[ 2 ][ 2 ] ) );\n\t\t} else {\n\t\t\tcameraToVertex = normalize( worldPosition.xyz - cameraPosition );\n\t\t}\n\t\tvec3 worldNormal = inverseTransformDirection( transformedNormal, viewMatrix );\n\t\t#ifdef ENVMAP_MODE_REFLECTION\n\t\t\tvReflect = reflect( cameraToVertex, worldNormal );\n\t\t#else\n\t\t\tvReflect = refract( cameraToVertex, worldNormal, refractionRatio );\n\t\t#endif\n\t#endif\n#endif",fog_vertex:"#ifdef USE_FOG\n\tvFogDepth = - mvPosition.z;\n#endif",fog_pars_vertex:"#ifdef USE_FOG\n\tvarying float vFogDepth;\n#endif",fog_fragment:"#ifdef USE_FOG\n\t#ifdef FOG_EXP2\n\t\tfloat fogFactor = 1.0 - exp( - fogDensity * fogDensity * vFogDepth * vFogDepth );\n\t#else\n\t\tfloat fogFactor = smoothstep( fogNear, fogFar, vFogDepth );\n\t#endif\n\tgl_FragColor.rgb = mix( gl_FragColor.rgb, fogColor, fogFactor );\n#endif",fog_pars_fragment:"#ifdef USE_FOG\n\tuniform vec3 fogColor;\n\tvarying float vFogDepth;\n\t#ifdef FOG_EXP2\n\t\tuniform float fogDensity;\n\t#else\n\t\tuniform float fogNear;\n\t\tuniform float fogFar;\n\t#endif\n#endif",gradientmap_pars_fragment:"#ifdef USE_GRADIENTMAP\n\tuniform sampler2D gradientMap;\n#endif\nvec3 getGradientIrradiance( vec3 normal, vec3 lightDirection ) {\n\tfloat dotNL = dot( normal, lightDirection );\n\tvec2 coord = vec2( dotNL * 0.5 + 0.5, 0.0 );\n\t#ifdef USE_GRADIENTMAP\n\t\treturn vec3( texture2D( gradientMap, coord ).r );\n\t#else\n\t\tvec2 fw = fwidth( coord ) * 0.5;\n\t\treturn mix( vec3( 0.7 ), vec3( 1.0 ), smoothstep( 0.7 - fw.x, 0.7 + fw.x, coord.x ) );\n\t#endif\n}",lightmap_pars_fragment:"#ifdef USE_LIGHTMAP\n\tuniform sampler2D lightMap;\n\tuniform float lightMapIntensity;\n#endif",lights_lambert_fragment:"LambertMaterial material;\nmaterial.diffuseColor = diffuseColor.rgb;\nmaterial.specularStrength = specularStrength;",lights_lambert_pars_fragment:"varying vec3 vViewPosition;\nstruct LambertMaterial {\n\tvec3 diffuseColor;\n\tfloat specularStrength;\n};\nvoid RE_Direct_Lambert( const in IncidentLight directLight, const in vec3 geometryPosition, const in vec3 geometryNormal, const in vec3 geometryViewDir, const in vec3 geometryClearcoatNormal, const in LambertMaterial material, inout ReflectedLight reflectedLight ) {\n\tfloat dotNL = saturate( dot( geometryNormal, directLight.direction ) );\n\tvec3 irradiance = dotNL * directLight.color;\n\treflectedLight.directDiffuse += irradiance * BRDF_Lambert( material.diffuseColor );\n}\nvoid RE_IndirectDiffuse_Lambert( const in vec3 irradiance, const in vec3 geometryPosition, const in vec3 geometryNormal, const in vec3 geometryViewDir, const in vec3 geometryClearcoatNormal, const in LambertMaterial material, inout ReflectedLight reflectedLight ) {\n\treflectedLight.indirectDiffuse += irradiance * BRDF_Lambert( material.diffuseColor );\n}\n#define RE_Direct\t\t\t\tRE_Direct_Lambert\n#define RE_IndirectDiffuse\t\tRE_IndirectDiffuse_Lambert",lights_pars_begin:"uniform bool receiveShadow;\nuniform vec3 ambientLightColor;\n#if defined( USE_LIGHT_PROBES )\n\tuniform vec3 lightProbe[ 9 ];\n#endif\nvec3 shGetIrradianceAt( in vec3 normal, in vec3 shCoefficients[ 9 ] ) {\n\tfloat x = normal.x, y = normal.y, z = normal.z;\n\tvec3 result = shCoefficients[ 0 ] * 0.886227;\n\tresult += shCoefficients[ 1 ] * 2.0 * 0.511664 * y;\n\tresult += shCoefficients[ 2 ] * 2.0 * 0.511664 * z;\n\tresult += shCoefficients[ 3 ] * 2.0 * 0.511664 * x;\n\tresult += shCoefficients[ 4 ] * 2.0 * 0.429043 * x * y;\n\tresult += shCoefficients[ 5 ] * 2.0 * 0.429043 * y * z;\n\tresult += shCoefficients[ 6 ] * ( 0.743125 * z * z - 0.247708 );\n\tresult += shCoefficients[ 7 ] * 2.0 * 0.429043 * x * z;\n\tresult += shCoefficients[ 8 ] * 0.429043 * ( x * x - y * y );\n\treturn result;\n}\nvec3 getLightProbeIrradiance( const in vec3 lightProbe[ 9 ], const in vec3 normal ) {\n\tvec3 worldNormal = inverseTransformDirection( normal, viewMatrix );\n\tvec3 irradiance = shGetIrradianceAt( worldNormal, lightProbe );\n\treturn irradiance;\n}\nvec3 getAmbientLightIrradiance( const in vec3 ambientLightColor ) {\n\tvec3 irradiance = ambientLightColor;\n\treturn irradiance;\n}\nfloat getDistanceAttenuation( const in float lightDistance, const in float cutoffDistance, const in float decayExponent ) {\n\tfloat distanceFalloff = 1.0 / max( pow( lightDistance, decayExponent ), 0.01 );\n\tif ( cutoffDistance > 0.0 ) {\n\t\tdistanceFalloff *= pow2( saturate( 1.0 - pow4( lightDistance / cutoffDistance ) ) );\n\t}\n\treturn distanceFalloff;\n}\nfloat getSpotAttenuation( const in float coneCosine, const in float penumbraCosine, const in float angleCosine ) {\n\treturn smoothstep( coneCosine, penumbraCosine, angleCosine );\n}\n#if NUM_DIR_LIGHTS > 0\n\tstruct DirectionalLight {\n\t\tvec3 direction;\n\t\tvec3 color;\n\t};\n\tuniform DirectionalLight directionalLights[ NUM_DIR_LIGHTS ];\n\tvoid getDirectionalLightInfo( const in DirectionalLight directionalLight, out IncidentLight light ) {\n\t\tlight.color = directionalLight.color;\n\t\tlight.direction = directionalLight.direction;\n\t\tlight.visible = true;\n\t}\n#endif\n#if NUM_POINT_LIGHTS > 0\n\tstruct PointLight {\n\t\tvec3 position;\n\t\tvec3 color;\n\t\tfloat distance;\n\t\tfloat decay;\n\t};\n\tuniform PointLight pointLights[ NUM_POINT_LIGHTS ];\n\tvoid getPointLightInfo( const in PointLight pointLight, const in vec3 geometryPosition, out IncidentLight light ) {\n\t\tvec3 lVector = pointLight.position - geometryPosition;\n\t\tlight.direction = normalize( lVector );\n\t\tfloat lightDistance = length( lVector );\n\t\tlight.color = pointLight.color;\n\t\tlight.color *= getDistanceAttenuation( lightDistance, pointLight.distance, pointLight.decay );\n\t\tlight.visible = ( light.color != vec3( 0.0 ) );\n\t}\n#endif\n#if NUM_SPOT_LIGHTS > 0\n\tstruct SpotLight {\n\t\tvec3 position;\n\t\tvec3 direction;\n\t\tvec3 color;\n\t\tfloat distance;\n\t\tfloat decay;\n\t\tfloat coneCos;\n\t\tfloat penumbraCos;\n\t};\n\tuniform SpotLight spotLights[ NUM_SPOT_LIGHTS ];\n\tvoid getSpotLightInfo( const in SpotLight spotLight, const in vec3 geometryPosition, out IncidentLight light ) {\n\t\tvec3 lVector = spotLight.position - geometryPosition;\n\t\tlight.direction = normalize( lVector );\n\t\tfloat angleCos = dot( light.direction, spotLight.direction );\n\t\tfloat spotAttenuation = getSpotAttenuation( spotLight.coneCos, spotLight.penumbraCos, angleCos );\n\t\tif ( spotAttenuation > 0.0 ) {\n\t\t\tfloat lightDistance = length( lVector );\n\t\t\tlight.color = spotLight.color * spotAttenuation;\n\t\t\tlight.color *= getDistanceAttenuation( lightDistance, spotLight.distance, spotLight.decay );\n\t\t\tlight.visible = ( light.color != vec3( 0.0 ) );\n\t\t} else {\n\t\t\tlight.color = vec3( 0.0 );\n\t\t\tlight.visible = false;\n\t\t}\n\t}\n#endif\n#if NUM_RECT_AREA_LIGHTS > 0\n\tstruct RectAreaLight {\n\t\tvec3 color;\n\t\tvec3 position;\n\t\tvec3 halfWidth;\n\t\tvec3 halfHeight;\n\t};\n\tuniform sampler2D ltc_1;\tuniform sampler2D ltc_2;\n\tuniform RectAreaLight rectAreaLights[ NUM_RECT_AREA_LIGHTS ];\n#endif\n#if NUM_HEMI_LIGHTS > 0\n\tstruct HemisphereLight {\n\t\tvec3 direction;\n\t\tvec3 skyColor;\n\t\tvec3 groundColor;\n\t};\n\tuniform HemisphereLight hemisphereLights[ NUM_HEMI_LIGHTS ];\n\tvec3 getHemisphereLightIrradiance( const in HemisphereLight hemiLight, const in vec3 normal ) {\n\t\tfloat dotNL = dot( normal, hemiLight.direction );\n\t\tfloat hemiDiffuseWeight = 0.5 * dotNL + 0.5;\n\t\tvec3 irradiance = mix( hemiLight.groundColor, hemiLight.skyColor, hemiDiffuseWeight );\n\t\treturn irradiance;\n\t}\n#endif",lights_toon_fragment:"ToonMaterial material;\nmaterial.diffuseColor = diffuseColor.rgb;",lights_toon_pars_fragment:"varying vec3 vViewPosition;\nstruct ToonMaterial {\n\tvec3 diffuseColor;\n};\nvoid RE_Direct_Toon( const in IncidentLight directLight, const in vec3 geometryPosition, const in vec3 geometryNormal, const in vec3 geometryViewDir, const in vec3 geometryClearcoatNormal, const in ToonMaterial material, inout ReflectedLight reflectedLight ) {\n\tvec3 irradiance = getGradientIrradiance( geometryNormal, directLight.direction ) * directLight.color;\n\treflectedLight.directDiffuse += irradiance * BRDF_Lambert( material.diffuseColor );\n}\nvoid RE_IndirectDiffuse_Toon( const in vec3 irradiance, const in vec3 geometryPosition, const in vec3 geometryNormal, const in vec3 geometryViewDir, const in vec3 geometryClearcoatNormal, const in ToonMaterial material, inout ReflectedLight reflectedLight ) {\n\treflectedLight.indirectDiffuse += irradiance * BRDF_Lambert( material.diffuseColor );\n}\n#define RE_Direct\t\t\t\tRE_Direct_Toon\n#define RE_IndirectDiffuse\t\tRE_IndirectDiffuse_Toon",lights_phong_fragment:"BlinnPhongMaterial material;\nmaterial.diffuseColor = diffuseColor.rgb;\nmaterial.specularColor = specular;\nmaterial.specularShininess = shininess;\nmaterial.specularStrength = specularStrength;",lights_phong_pars_fragment:"varying vec3 vViewPosition;\nstruct BlinnPhongMaterial {\n\tvec3 diffuseColor;\n\tvec3 specularColor;\n\tfloat specularShininess;\n\tfloat specularStrength;\n};\nvoid RE_Direct_BlinnPhong( const in IncidentLight directLight, const in vec3 geometryPosition, const in vec3 geometryNormal, const in vec3 geometryViewDir, const in vec3 geometryClearcoatNormal, const in BlinnPhongMaterial material, inout ReflectedLight reflectedLight ) {\n\tfloat dotNL = saturate( dot( geometryNormal, directLight.direction ) );\n\tvec3 irradiance = dotNL * directLight.color;\n\treflectedLight.directDiffuse += irradiance * BRDF_Lambert( material.diffuseColor );\n\treflectedLight.directSpecular += irradiance * BRDF_BlinnPhong( directLight.direction, geometryViewDir, geometryNormal, material.specularColor, material.specularShininess ) * material.specularStrength;\n}\nvoid RE_IndirectDiffuse_BlinnPhong( const in vec3 irradiance, const in vec3 geometryPosition, const in vec3 geometryNormal, const in vec3 geometryViewDir, const in vec3 geometryClearcoatNormal, const in BlinnPhongMaterial material, inout ReflectedLight reflectedLight ) {\n\treflectedLight.indirectDiffuse += irradiance * BRDF_Lambert( material.diffuseColor );\n}\n#define RE_Direct\t\t\t\tRE_Direct_BlinnPhong\n#define RE_IndirectDiffuse\t\tRE_IndirectDiffuse_BlinnPhong",lights_physical_fragment:"PhysicalMaterial material;\nmaterial.diffuseColor = diffuseColor.rgb * ( 1.0 - metalnessFactor );\nvec3 dxy = max( abs( dFdx( nonPerturbedNormal ) ), abs( dFdy( nonPerturbedNormal ) ) );\nfloat geometryRoughness = max( max( dxy.x, dxy.y ), dxy.z );\nmaterial.roughness = max( roughnessFactor, MINIMUM_ROUGHNESS_SIZE );\nmaterial.roughness += geometryRoughness;\nmaterial.roughness = min( material.roughness, 1.0 );\n#ifdef IOR\n\tmaterial.ior = ior;\n\t#ifdef USE_SPECULAR\n\t\tfloat specularIntensityFactor = specularIntensity;\n\t\tvec3 specularColorFactor = specularColor;\n\t\t#ifdef USE_SPECULAR_COLORMAP\n\t\t\tspecularColorFactor *= texture2D( specularColorMap, vSpecularColorMapUv ).rgb;\n\t\t#endif\n\t\t#ifdef USE_SPECULAR_INTENSITYMAP\n\t\t\tspecularIntensityFactor *= texture2D( specularIntensityMap, vSpecularIntensityMapUv ).a;\n\t\t#endif\n\t\tmaterial.specularF90 = mix( specularIntensityFactor, 1.0, metalnessFactor );\n\t#else\n\t\tfloat specularIntensityFactor = 1.0;\n\t\tvec3 specularColorFactor = vec3( 1.0 );\n\t\tmaterial.specularF90 = 1.0;\n\t#endif\n\tmaterial.specularColor = mix( min( pow2( ( material.ior - 1.0 ) / ( material.ior + 1.0 ) ) * specularColorFactor, vec3( 1.0 ) ) * specularIntensityFactor, diffuseColor.rgb, metalnessFactor );\n#else\n\tmaterial.specularColor = mix( vec3( 0.04 ), diffuseColor.rgb, metalnessFactor );\n\tmaterial.specularF90 = 1.0;\n#endif\n#ifdef USE_CLEARCOAT\n\tmaterial.clearcoat = clearcoat;\n\tmaterial.clearcoatRoughness = clearcoatRoughness;\n\tmaterial.clearcoatF0 = vec3( 0.04 );\n\tmaterial.clearcoatF90 = 1.0;\n\t#ifdef USE_CLEARCOATMAP\n\t\tmaterial.clearcoat *= texture2D( clearcoatMap, vClearcoatMapUv ).x;\n\t#endif\n\t#ifdef USE_CLEARCOAT_ROUGHNESSMAP\n\t\tmaterial.clearcoatRoughness *= texture2D( clearcoatRoughnessMap, vClearcoatRoughnessMapUv ).y;\n\t#endif\n\tmaterial.clearcoat = saturate( material.clearcoat );\tmaterial.clearcoatRoughness = max( material.clearcoatRoughness, 0.0525 );\n\tmaterial.clearcoatRoughness += geometryRoughness;\n\tmaterial.clearcoatRoughness = min( material.clearcoatRoughness, 1.0 );\n#endif\n#ifdef USE_DISPERSION\n\tmaterial.dispersion = dispersion;\n#endif\n#ifdef USE_IRIDESCENCE\n\tmaterial.iridescence = iridescence;\n\tmaterial.iridescenceIOR = iridescenceIOR;\n\t#ifdef USE_IRIDESCENCEMAP\n\t\tmaterial.iridescence *= texture2D( iridescenceMap, vIridescenceMapUv ).r;\n\t#endif\n\t#ifdef USE_IRIDESCENCE_THICKNESSMAP\n\t\tmaterial.iridescenceThickness = (iridescenceThicknessMaximum - iridescenceThicknessMinimum) * texture2D( iridescenceThicknessMap, vIridescenceThicknessMapUv ).g + iridescenceThicknessMinimum;\n\t#else\n\t\tmaterial.iridescenceThickness = iridescenceThicknessMaximum;\n\t#endif\n#endif\n#ifdef USE_SHEEN\n\tmaterial.sheenColor = sheenColor;\n\t#ifdef USE_SHEEN_COLORMAP\n\t\tmaterial.sheenColor *= texture2D( sheenColorMap, vSheenColorMapUv ).rgb;\n\t#endif\n\tmaterial.sheenRoughness = clamp( sheenRoughness, 0.07, 1.0 );\n\t#ifdef USE_SHEEN_ROUGHNESSMAP\n\t\tmaterial.sheenRoughness *= texture2D( sheenRoughnessMap, vSheenRoughnessMapUv ).a;\n\t#endif\n#endif\n#ifdef USE_ANISOTROPY\n\t#ifdef USE_ANISOTROPYMAP\n\t\tmat2 anisotropyMat = mat2( anisotropyVector.x, anisotropyVector.y, - anisotropyVector.y, anisotropyVector.x );\n\t\tvec3 anisotropyPolar = texture2D( anisotropyMap, vAnisotropyMapUv ).rgb;\n\t\tvec2 anisotropyV = anisotropyMat * normalize( 2.0 * anisotropyPolar.rg - vec2( 1.0 ) ) * anisotropyPolar.b;\n\t#else\n\t\tvec2 anisotropyV = anisotropyVector;\n\t#endif\n\tmaterial.anisotropy = length( anisotropyV );\n\tif( material.anisotropy == 0.0 ) {\n\t\tanisotropyV = vec2( 1.0, 0.0 );\n\t} else {\n\t\tanisotropyV /= material.anisotropy;\n\t\tmaterial.anisotropy = saturate( material.anisotropy );\n\t}\n\tmaterial.alphaT = mix( pow2( material.roughness ), 1.0, pow2( material.anisotropy ) );\n\tmaterial.anisotropyT = tbn[ 0 ] * anisotropyV.x + tbn[ 1 ] * anisotropyV.y;\n\tmaterial.anisotropyB = tbn[ 1 ] * anisotropyV.x - tbn[ 0 ] * anisotropyV.y;\n#endif",lights_physical_pars_fragment:"struct PhysicalMaterial {\n\tvec3 diffuseColor;\n\tfloat roughness;\n\tvec3 specularColor;\n\tfloat specularF90;\n\tfloat dispersion;\n\t#ifdef USE_CLEARCOAT\n\t\tfloat clearcoat;\n\t\tfloat clearcoatRoughness;\n\t\tvec3 clearcoatF0;\n\t\tfloat clearcoatF90;\n\t#endif\n\t#ifdef USE_IRIDESCENCE\n\t\tfloat iridescence;\n\t\tfloat iridescenceIOR;\n\t\tfloat iridescenceThickness;\n\t\tvec3 iridescenceFresnel;\n\t\tvec3 iridescenceF0;\n\t#endif\n\t#ifdef USE_SHEEN\n\t\tvec3 sheenColor;\n\t\tfloat sheenRoughness;\n\t#endif\n\t#ifdef IOR\n\t\tfloat ior;\n\t#endif\n\t#ifdef USE_TRANSMISSION\n\t\tfloat transmission;\n\t\tfloat transmissionAlpha;\n\t\tfloat thickness;\n\t\tfloat attenuationDistance;\n\t\tvec3 attenuationColor;\n\t#endif\n\t#ifdef USE_ANISOTROPY\n\t\tfloat anisotropy;\n\t\tfloat alphaT;\n\t\tvec3 anisotropyT;\n\t\tvec3 anisotropyB;\n\t#endif\n};\nvec3 clearcoatSpecularDirect = vec3( 0.0 );\nvec3 clearcoatSpecularIndirect = vec3( 0.0 );\nvec3 sheenSpecularDirect = vec3( 0.0 );\nvec3 sheenSpecularIndirect = vec3(0.0 );\nvec3 Schlick_to_F0( const in vec3 f, const in float f90, const in float dotVH ) {\n float x = clamp( 1.0 - dotVH, 0.0, 1.0 );\n float x2 = x * x;\n float x5 = clamp( x * x2 * x2, 0.0, 0.9999 );\n return ( f - vec3( f90 ) * x5 ) / ( 1.0 - x5 );\n}\nfloat V_GGX_SmithCorrelated( const in float alpha, const in float dotNL, const in float dotNV ) {\n\tfloat a2 = pow2( alpha );\n\tfloat gv = dotNL * sqrt( a2 + ( 1.0 - a2 ) * pow2( dotNV ) );\n\tfloat gl = dotNV * sqrt( a2 + ( 1.0 - a2 ) * pow2( dotNL ) );\n\treturn 0.5 / max( gv + gl, EPSILON );\n}\nfloat D_GGX( const in float alpha, const in float dotNH ) {\n\tfloat a2 = pow2( alpha );\n\tfloat denom = pow2( dotNH ) * ( a2 - 1.0 ) + 1.0;\n\treturn RECIPROCAL_PI * a2 / pow2( denom );\n}\n#ifdef USE_ANISOTROPY\n\tfloat V_GGX_SmithCorrelated_Anisotropic( const in float alphaT, const in float alphaB, const in float dotTV, const in float dotBV, const in float dotTL, const in float dotBL, const in float dotNV, const in float dotNL ) {\n\t\tfloat gv = dotNL * length( vec3( alphaT * dotTV, alphaB * dotBV, dotNV ) );\n\t\tfloat gl = dotNV * length( vec3( alphaT * dotTL, alphaB * dotBL, dotNL ) );\n\t\tfloat v = 0.5 / ( gv + gl );\n\t\treturn saturate(v);\n\t}\n\tfloat D_GGX_Anisotropic( const in float alphaT, const in float alphaB, const in float dotNH, const in float dotTH, const in float dotBH ) {\n\t\tfloat a2 = alphaT * alphaB;\n\t\thighp vec3 v = vec3( alphaB * dotTH, alphaT * dotBH, a2 * dotNH );\n\t\thighp float v2 = dot( v, v );\n\t\tfloat w2 = a2 / v2;\n\t\treturn RECIPROCAL_PI * a2 * pow2 ( w2 );\n\t}\n#endif\n#ifdef USE_CLEARCOAT\n\tvec3 BRDF_GGX_Clearcoat( const in vec3 lightDir, const in vec3 viewDir, const in vec3 normal, const in PhysicalMaterial material) {\n\t\tvec3 f0 = material.clearcoatF0;\n\t\tfloat f90 = material.clearcoatF90;\n\t\tfloat roughness = material.clearcoatRoughness;\n\t\tfloat alpha = pow2( roughness );\n\t\tvec3 halfDir = normalize( lightDir + viewDir );\n\t\tfloat dotNL = saturate( dot( normal, lightDir ) );\n\t\tfloat dotNV = saturate( dot( normal, viewDir ) );\n\t\tfloat dotNH = saturate( dot( normal, halfDir ) );\n\t\tfloat dotVH = saturate( dot( viewDir, halfDir ) );\n\t\tvec3 F = F_Schlick( f0, f90, dotVH );\n\t\tfloat V = V_GGX_SmithCorrelated( alpha, dotNL, dotNV );\n\t\tfloat D = D_GGX( alpha, dotNH );\n\t\treturn F * ( V * D );\n\t}\n#endif\nvec3 BRDF_GGX( const in vec3 lightDir, const in vec3 viewDir, const in vec3 normal, const in PhysicalMaterial material ) {\n\tvec3 f0 = material.specularColor;\n\tfloat f90 = material.specularF90;\n\tfloat roughness = material.roughness;\n\tfloat alpha = pow2( roughness );\n\tvec3 halfDir = normalize( lightDir + viewDir );\n\tfloat dotNL = saturate( dot( normal, lightDir ) );\n\tfloat dotNV = saturate( dot( normal, viewDir ) );\n\tfloat dotNH = saturate( dot( normal, halfDir ) );\n\tfloat dotVH = saturate( dot( viewDir, halfDir ) );\n\tvec3 F = F_Schlick( f0, f90, dotVH );\n\t#ifdef USE_IRIDESCENCE\n\t\tF = mix( F, material.iridescenceFresnel, material.iridescence );\n\t#endif\n\t#ifdef USE_ANISOTROPY\n\t\tfloat dotTL = dot( material.anisotropyT, lightDir );\n\t\tfloat dotTV = dot( material.anisotropyT, viewDir );\n\t\tfloat dotTH = dot( material.anisotropyT, halfDir );\n\t\tfloat dotBL = dot( material.anisotropyB, lightDir );\n\t\tfloat dotBV = dot( material.anisotropyB, viewDir );\n\t\tfloat dotBH = dot( material.anisotropyB, halfDir );\n\t\tfloat V = V_GGX_SmithCorrelated_Anisotropic( material.alphaT, alpha, dotTV, dotBV, dotTL, dotBL, dotNV, dotNL );\n\t\tfloat D = D_GGX_Anisotropic( material.alphaT, alpha, dotNH, dotTH, dotBH );\n\t#else\n\t\tfloat V = V_GGX_SmithCorrelated( alpha, dotNL, dotNV );\n\t\tfloat D = D_GGX( alpha, dotNH );\n\t#endif\n\treturn F * ( V * D );\n}\nvec2 LTC_Uv( const in vec3 N, const in vec3 V, const in float roughness ) {\n\tconst float LUT_SIZE = 64.0;\n\tconst float LUT_SCALE = ( LUT_SIZE - 1.0 ) / LUT_SIZE;\n\tconst float LUT_BIAS = 0.5 / LUT_SIZE;\n\tfloat dotNV = saturate( dot( N, V ) );\n\tvec2 uv = vec2( roughness, sqrt( 1.0 - dotNV ) );\n\tuv = uv * LUT_SCALE + LUT_BIAS;\n\treturn uv;\n}\nfloat LTC_ClippedSphereFormFactor( const in vec3 f ) {\n\tfloat l = length( f );\n\treturn max( ( l * l + f.z ) / ( l + 1.0 ), 0.0 );\n}\nvec3 LTC_EdgeVectorFormFactor( const in vec3 v1, const in vec3 v2 ) {\n\tfloat x = dot( v1, v2 );\n\tfloat y = abs( x );\n\tfloat a = 0.8543985 + ( 0.4965155 + 0.0145206 * y ) * y;\n\tfloat b = 3.4175940 + ( 4.1616724 + y ) * y;\n\tfloat v = a / b;\n\tfloat theta_sintheta = ( x > 0.0 ) ? v : 0.5 * inversesqrt( max( 1.0 - x * x, 1e-7 ) ) - v;\n\treturn cross( v1, v2 ) * theta_sintheta;\n}\nvec3 LTC_Evaluate( const in vec3 N, const in vec3 V, const in vec3 P, const in mat3 mInv, const in vec3 rectCoords[ 4 ] ) {\n\tvec3 v1 = rectCoords[ 1 ] - rectCoords[ 0 ];\n\tvec3 v2 = rectCoords[ 3 ] - rectCoords[ 0 ];\n\tvec3 lightNormal = cross( v1, v2 );\n\tif( dot( lightNormal, P - rectCoords[ 0 ] ) < 0.0 ) return vec3( 0.0 );\n\tvec3 T1, T2;\n\tT1 = normalize( V - N * dot( V, N ) );\n\tT2 = - cross( N, T1 );\n\tmat3 mat = mInv * transposeMat3( mat3( T1, T2, N ) );\n\tvec3 coords[ 4 ];\n\tcoords[ 0 ] = mat * ( rectCoords[ 0 ] - P );\n\tcoords[ 1 ] = mat * ( rectCoords[ 1 ] - P );\n\tcoords[ 2 ] = mat * ( rectCoords[ 2 ] - P );\n\tcoords[ 3 ] = mat * ( rectCoords[ 3 ] - P );\n\tcoords[ 0 ] = normalize( coords[ 0 ] );\n\tcoords[ 1 ] = normalize( coords[ 1 ] );\n\tcoords[ 2 ] = normalize( coords[ 2 ] );\n\tcoords[ 3 ] = normalize( coords[ 3 ] );\n\tvec3 vectorFormFactor = vec3( 0.0 );\n\tvectorFormFactor += LTC_EdgeVectorFormFactor( coords[ 0 ], coords[ 1 ] );\n\tvectorFormFactor += LTC_EdgeVectorFormFactor( coords[ 1 ], coords[ 2 ] );\n\tvectorFormFactor += LTC_EdgeVectorFormFactor( coords[ 2 ], coords[ 3 ] );\n\tvectorFormFactor += LTC_EdgeVectorFormFactor( coords[ 3 ], coords[ 0 ] );\n\tfloat result = LTC_ClippedSphereFormFactor( vectorFormFactor );\n\treturn vec3( result );\n}\n#if defined( USE_SHEEN )\nfloat D_Charlie( float roughness, float dotNH ) {\n\tfloat alpha = pow2( roughness );\n\tfloat invAlpha = 1.0 / alpha;\n\tfloat cos2h = dotNH * dotNH;\n\tfloat sin2h = max( 1.0 - cos2h, 0.0078125 );\n\treturn ( 2.0 + invAlpha ) * pow( sin2h, invAlpha * 0.5 ) / ( 2.0 * PI );\n}\nfloat V_Neubelt( float dotNV, float dotNL ) {\n\treturn saturate( 1.0 / ( 4.0 * ( dotNL + dotNV - dotNL * dotNV ) ) );\n}\nvec3 BRDF_Sheen( const in vec3 lightDir, const in vec3 viewDir, const in vec3 normal, vec3 sheenColor, const in float sheenRoughness ) {\n\tvec3 halfDir = normalize( lightDir + viewDir );\n\tfloat dotNL = saturate( dot( normal, lightDir ) );\n\tfloat dotNV = saturate( dot( normal, viewDir ) );\n\tfloat dotNH = saturate( dot( normal, halfDir ) );\n\tfloat D = D_Charlie( sheenRoughness, dotNH );\n\tfloat V = V_Neubelt( dotNV, dotNL );\n\treturn sheenColor * ( D * V );\n}\n#endif\nfloat IBLSheenBRDF( const in vec3 normal, const in vec3 viewDir, const in float roughness ) {\n\tfloat dotNV = saturate( dot( normal, viewDir ) );\n\tfloat r2 = roughness * roughness;\n\tfloat a = roughness < 0.25 ? -339.2 * r2 + 161.4 * roughness - 25.9 : -8.48 * r2 + 14.3 * roughness - 9.95;\n\tfloat b = roughness < 0.25 ? 44.0 * r2 - 23.7 * roughness + 3.26 : 1.97 * r2 - 3.27 * roughness + 0.72;\n\tfloat DG = exp( a * dotNV + b ) + ( roughness < 0.25 ? 0.0 : 0.1 * ( roughness - 0.25 ) );\n\treturn saturate( DG * RECIPROCAL_PI );\n}\nvec2 DFGApprox( const in vec3 normal, const in vec3 viewDir, const in float roughness ) {\n\tfloat dotNV = saturate( dot( normal, viewDir ) );\n\tconst vec4 c0 = vec4( - 1, - 0.0275, - 0.572, 0.022 );\n\tconst vec4 c1 = vec4( 1, 0.0425, 1.04, - 0.04 );\n\tvec4 r = roughness * c0 + c1;\n\tfloat a004 = min( r.x * r.x, exp2( - 9.28 * dotNV ) ) * r.x + r.y;\n\tvec2 fab = vec2( - 1.04, 1.04 ) * a004 + r.zw;\n\treturn fab;\n}\nvec3 EnvironmentBRDF( const in vec3 normal, const in vec3 viewDir, const in vec3 specularColor, const in float specularF90, const in float roughness ) {\n\tvec2 fab = DFGApprox( normal, viewDir, roughness );\n\treturn specularColor * fab.x + specularF90 * fab.y;\n}\n#ifdef USE_IRIDESCENCE\nvoid computeMultiscatteringIridescence( const in vec3 normal, const in vec3 viewDir, const in vec3 specularColor, const in float specularF90, const in float iridescence, const in vec3 iridescenceF0, const in float roughness, inout vec3 singleScatter, inout vec3 multiScatter ) {\n#else\nvoid computeMultiscattering( const in vec3 normal, const in vec3 viewDir, const in vec3 specularColor, const in float specularF90, const in float roughness, inout vec3 singleScatter, inout vec3 multiScatter ) {\n#endif\n\tvec2 fab = DFGApprox( normal, viewDir, roughness );\n\t#ifdef USE_IRIDESCENCE\n\t\tvec3 Fr = mix( specularColor, iridescenceF0, iridescence );\n\t#else\n\t\tvec3 Fr = specularColor;\n\t#endif\n\tvec3 FssEss = Fr * fab.x + specularF90 * fab.y;\n\tfloat Ess = fab.x + fab.y;\n\tfloat Ems = 1.0 - Ess;\n\tvec3 Favg = Fr + ( 1.0 - Fr ) * 0.047619;\tvec3 Fms = FssEss * Favg / ( 1.0 - Ems * Favg );\n\tsingleScatter += FssEss;\n\tmultiScatter += Fms * Ems;\n}\n#if NUM_RECT_AREA_LIGHTS > 0\n\tvoid RE_Direct_RectArea_Physical( const in RectAreaLight rectAreaLight, const in vec3 geometryPosition, const in vec3 geometryNormal, const in vec3 geometryViewDir, const in vec3 geometryClearcoatNormal, const in PhysicalMaterial material, inout ReflectedLight reflectedLight ) {\n\t\tvec3 normal = geometryNormal;\n\t\tvec3 viewDir = geometryViewDir;\n\t\tvec3 position = geometryPosition;\n\t\tvec3 lightPos = rectAreaLight.position;\n\t\tvec3 halfWidth = rectAreaLight.halfWidth;\n\t\tvec3 halfHeight = rectAreaLight.halfHeight;\n\t\tvec3 lightColor = rectAreaLight.color;\n\t\tfloat roughness = material.roughness;\n\t\tvec3 rectCoords[ 4 ];\n\t\trectCoords[ 0 ] = lightPos + halfWidth - halfHeight;\t\trectCoords[ 1 ] = lightPos - halfWidth - halfHeight;\n\t\trectCoords[ 2 ] = lightPos - halfWidth + halfHeight;\n\t\trectCoords[ 3 ] = lightPos + halfWidth + halfHeight;\n\t\tvec2 uv = LTC_Uv( normal, viewDir, roughness );\n\t\tvec4 t1 = texture2D( ltc_1, uv );\n\t\tvec4 t2 = texture2D( ltc_2, uv );\n\t\tmat3 mInv = mat3(\n\t\t\tvec3( t1.x, 0, t1.y ),\n\t\t\tvec3( 0, 1, 0 ),\n\t\t\tvec3( t1.z, 0, t1.w )\n\t\t);\n\t\tvec3 fresnel = ( material.specularColor * t2.x + ( vec3( 1.0 ) - material.specularColor ) * t2.y );\n\t\treflectedLight.directSpecular += lightColor * fresnel * LTC_Evaluate( normal, viewDir, position, mInv, rectCoords );\n\t\treflectedLight.directDiffuse += lightColor * material.diffuseColor * LTC_Evaluate( normal, viewDir, position, mat3( 1.0 ), rectCoords );\n\t}\n#endif\nvoid RE_Direct_Physical( const in IncidentLight directLight, const in vec3 geometryPosition, const in vec3 geometryNormal, const in vec3 geometryViewDir, const in vec3 geometryClearcoatNormal, const in PhysicalMaterial material, inout ReflectedLight reflectedLight ) {\n\tfloat dotNL = saturate( dot( geometryNormal, directLight.direction ) );\n\tvec3 irradiance = dotNL * directLight.color;\n\t#ifdef USE_CLEARCOAT\n\t\tfloat dotNLcc = saturate( dot( geometryClearcoatNormal, directLight.direction ) );\n\t\tvec3 ccIrradiance = dotNLcc * directLight.color;\n\t\tclearcoatSpecularDirect += ccIrradiance * BRDF_GGX_Clearcoat( directLight.direction, geometryViewDir, geometryClearcoatNormal, material );\n\t#endif\n\t#ifdef USE_SHEEN\n\t\tsheenSpecularDirect += irradiance * BRDF_Sheen( directLight.direction, geometryViewDir, geometryNormal, material.sheenColor, material.sheenRoughness );\n\t#endif\n\treflectedLight.directSpecular += irradiance * BRDF_GGX( directLight.direction, geometryViewDir, geometryNormal, material );\n\treflectedLight.directDiffuse += irradiance * BRDF_Lambert( material.diffuseColor );\n}\nvoid RE_IndirectDiffuse_Physical( const in vec3 irradiance, const in vec3 geometryPosition, const in vec3 geometryNormal, const in vec3 geometryViewDir, const in vec3 geometryClearcoatNormal, const in PhysicalMaterial material, inout ReflectedLight reflectedLight ) {\n\treflectedLight.indirectDiffuse += irradiance * BRDF_Lambert( material.diffuseColor );\n}\nvoid RE_IndirectSpecular_Physical( const in vec3 radiance, const in vec3 irradiance, const in vec3 clearcoatRadiance, const in vec3 geometryPosition, const in vec3 geometryNormal, const in vec3 geometryViewDir, const in vec3 geometryClearcoatNormal, const in PhysicalMaterial material, inout ReflectedLight reflectedLight) {\n\t#ifdef USE_CLEARCOAT\n\t\tclearcoatSpecularIndirect += clearcoatRadiance * EnvironmentBRDF( geometryClearcoatNormal, geometryViewDir, material.clearcoatF0, material.clearcoatF90, material.clearcoatRoughness );\n\t#endif\n\t#ifdef USE_SHEEN\n\t\tsheenSpecularIndirect += irradiance * material.sheenColor * IBLSheenBRDF( geometryNormal, geometryViewDir, material.sheenRoughness );\n\t#endif\n\tvec3 singleScattering = vec3( 0.0 );\n\tvec3 multiScattering = vec3( 0.0 );\n\tvec3 cosineWeightedIrradiance = irradiance * RECIPROCAL_PI;\n\t#ifdef USE_IRIDESCENCE\n\t\tcomputeMultiscatteringIridescence( geometryNormal, geometryViewDir, material.specularColor, material.specularF90, material.iridescence, material.iridescenceFresnel, material.roughness, singleScattering, multiScattering );\n\t#else\n\t\tcomputeMultiscattering( geometryNormal, geometryViewDir, material.specularColor, material.specularF90, material.roughness, singleScattering, multiScattering );\n\t#endif\n\tvec3 totalScattering = singleScattering + multiScattering;\n\tvec3 diffuse = material.diffuseColor * ( 1.0 - max( max( totalScattering.r, totalScattering.g ), totalScattering.b ) );\n\treflectedLight.indirectSpecular += radiance * singleScattering;\n\treflectedLight.indirectSpecular += multiScattering * cosineWeightedIrradiance;\n\treflectedLight.indirectDiffuse += diffuse * cosineWeightedIrradiance;\n}\n#define RE_Direct\t\t\t\tRE_Direct_Physical\n#define RE_Direct_RectArea\t\tRE_Direct_RectArea_Physical\n#define RE_IndirectDiffuse\t\tRE_IndirectDiffuse_Physical\n#define RE_IndirectSpecular\t\tRE_IndirectSpecular_Physical\nfloat computeSpecularOcclusion( const in float dotNV, const in float ambientOcclusion, const in float roughness ) {\n\treturn saturate( pow( dotNV + ambientOcclusion, exp2( - 16.0 * roughness - 1.0 ) ) - 1.0 + ambientOcclusion );\n}",lights_fragment_begin:"\nvec3 geometryPosition = - vViewPosition;\nvec3 geometryNormal = normal;\nvec3 geometryViewDir = ( isOrthographic ) ? vec3( 0, 0, 1 ) : normalize( vViewPosition );\nvec3 geometryClearcoatNormal = vec3( 0.0 );\n#ifdef USE_CLEARCOAT\n\tgeometryClearcoatNormal = clearcoatNormal;\n#endif\n#ifdef USE_IRIDESCENCE\n\tfloat dotNVi = saturate( dot( normal, geometryViewDir ) );\n\tif ( material.iridescenceThickness == 0.0 ) {\n\t\tmaterial.iridescence = 0.0;\n\t} else {\n\t\tmaterial.iridescence = saturate( material.iridescence );\n\t}\n\tif ( material.iridescence > 0.0 ) {\n\t\tmaterial.iridescenceFresnel = evalIridescence( 1.0, material.iridescenceIOR, dotNVi, material.iridescenceThickness, material.specularColor );\n\t\tmaterial.iridescenceF0 = Schlick_to_F0( material.iridescenceFresnel, 1.0, dotNVi );\n\t}\n#endif\nIncidentLight directLight;\n#if ( NUM_POINT_LIGHTS > 0 ) && defined( RE_Direct )\n\tPointLight pointLight;\n\t#if defined( USE_SHADOWMAP ) && NUM_POINT_LIGHT_SHADOWS > 0\n\tPointLightShadow pointLightShadow;\n\t#endif\n\t#pragma unroll_loop_start\n\tfor ( int i = 0; i < NUM_POINT_LIGHTS; i ++ ) {\n\t\tpointLight = pointLights[ i ];\n\t\tgetPointLightInfo( pointLight, geometryPosition, directLight );\n\t\t#if defined( USE_SHADOWMAP ) && ( UNROLLED_LOOP_INDEX < NUM_POINT_LIGHT_SHADOWS )\n\t\tpointLightShadow = pointLightShadows[ i ];\n\t\tdirectLight.color *= ( directLight.visible && receiveShadow ) ? getPointShadow( pointShadowMap[ i ], pointLightShadow.shadowMapSize, pointLightShadow.shadowBias, pointLightShadow.shadowRadius, vPointShadowCoord[ i ], pointLightShadow.shadowCameraNear, pointLightShadow.shadowCameraFar ) : 1.0;\n\t\t#endif\n\t\tRE_Direct( directLight, geometryPosition, geometryNormal, geometryViewDir, geometryClearcoatNormal, material, reflectedLight );\n\t}\n\t#pragma unroll_loop_end\n#endif\n#if ( NUM_SPOT_LIGHTS > 0 ) && defined( RE_Direct )\n\tSpotLight spotLight;\n\tvec4 spotColor;\n\tvec3 spotLightCoord;\n\tbool inSpotLightMap;\n\t#if defined( USE_SHADOWMAP ) && NUM_SPOT_LIGHT_SHADOWS > 0\n\tSpotLightShadow spotLightShadow;\n\t#endif\n\t#pragma unroll_loop_start\n\tfor ( int i = 0; i < NUM_SPOT_LIGHTS; i ++ ) {\n\t\tspotLight = spotLights[ i ];\n\t\tgetSpotLightInfo( spotLight, geometryPosition, directLight );\n\t\t#if ( UNROLLED_LOOP_INDEX < NUM_SPOT_LIGHT_SHADOWS_WITH_MAPS )\n\t\t#define SPOT_LIGHT_MAP_INDEX UNROLLED_LOOP_INDEX\n\t\t#elif ( UNROLLED_LOOP_INDEX < NUM_SPOT_LIGHT_SHADOWS )\n\t\t#define SPOT_LIGHT_MAP_INDEX NUM_SPOT_LIGHT_MAPS\n\t\t#else\n\t\t#define SPOT_LIGHT_MAP_INDEX ( UNROLLED_LOOP_INDEX - NUM_SPOT_LIGHT_SHADOWS + NUM_SPOT_LIGHT_SHADOWS_WITH_MAPS )\n\t\t#endif\n\t\t#if ( SPOT_LIGHT_MAP_INDEX < NUM_SPOT_LIGHT_MAPS )\n\t\t\tspotLightCoord = vSpotLightCoord[ i ].xyz / vSpotLightCoord[ i ].w;\n\t\t\tinSpotLightMap = all( lessThan( abs( spotLightCoord * 2. - 1. ), vec3( 1.0 ) ) );\n\t\t\tspotColor = texture2D( spotLightMap[ SPOT_LIGHT_MAP_INDEX ], spotLightCoord.xy );\n\t\t\tdirectLight.color = inSpotLightMap ? directLight.color * spotColor.rgb : directLight.color;\n\t\t#endif\n\t\t#undef SPOT_LIGHT_MAP_INDEX\n\t\t#if defined( USE_SHADOWMAP ) && ( UNROLLED_LOOP_INDEX < NUM_SPOT_LIGHT_SHADOWS )\n\t\tspotLightShadow = spotLightShadows[ i ];\n\t\tdirectLight.color *= ( directLight.visible && receiveShadow ) ? getShadow( spotShadowMap[ i ], spotLightShadow.shadowMapSize, spotLightShadow.shadowBias, spotLightShadow.shadowRadius, vSpotLightCoord[ i ] ) : 1.0;\n\t\t#endif\n\t\tRE_Direct( directLight, geometryPosition, geometryNormal, geometryViewDir, geometryClearcoatNormal, material, reflectedLight );\n\t}\n\t#pragma unroll_loop_end\n#endif\n#if ( NUM_DIR_LIGHTS > 0 ) && defined( RE_Direct )\n\tDirectionalLight directionalLight;\n\t#if defined( USE_SHADOWMAP ) && NUM_DIR_LIGHT_SHADOWS > 0\n\tDirectionalLightShadow directionalLightShadow;\n\t#endif\n\t#pragma unroll_loop_start\n\tfor ( int i = 0; i < NUM_DIR_LIGHTS; i ++ ) {\n\t\tdirectionalLight = directionalLights[ i ];\n\t\tgetDirectionalLightInfo( directionalLight, directLight );\n\t\t#if defined( USE_SHADOWMAP ) && ( UNROLLED_LOOP_INDEX < NUM_DIR_LIGHT_SHADOWS )\n\t\tdirectionalLightShadow = directionalLightShadows[ i ];\n\t\tdirectLight.color *= ( directLight.visible && receiveShadow ) ? getShadow( directionalShadowMap[ i ], directionalLightShadow.shadowMapSize, directionalLightShadow.shadowBias, directionalLightShadow.shadowRadius, vDirectionalShadowCoord[ i ] ) : 1.0;\n\t\t#endif\n\t\tRE_Direct( directLight, geometryPosition, geometryNormal, geometryViewDir, geometryClearcoatNormal, material, reflectedLight );\n\t}\n\t#pragma unroll_loop_end\n#endif\n#if ( NUM_RECT_AREA_LIGHTS > 0 ) && defined( RE_Direct_RectArea )\n\tRectAreaLight rectAreaLight;\n\t#pragma unroll_loop_start\n\tfor ( int i = 0; i < NUM_RECT_AREA_LIGHTS; i ++ ) {\n\t\trectAreaLight = rectAreaLights[ i ];\n\t\tRE_Direct_RectArea( rectAreaLight, geometryPosition, geometryNormal, geometryViewDir, geometryClearcoatNormal, material, reflectedLight );\n\t}\n\t#pragma unroll_loop_end\n#endif\n#if defined( RE_IndirectDiffuse )\n\tvec3 iblIrradiance = vec3( 0.0 );\n\tvec3 irradiance = getAmbientLightIrradiance( ambientLightColor );\n\t#if defined( USE_LIGHT_PROBES )\n\t\tirradiance += getLightProbeIrradiance( lightProbe, geometryNormal );\n\t#endif\n\t#if ( NUM_HEMI_LIGHTS > 0 )\n\t\t#pragma unroll_loop_start\n\t\tfor ( int i = 0; i < NUM_HEMI_LIGHTS; i ++ ) {\n\t\t\tirradiance += getHemisphereLightIrradiance( hemisphereLights[ i ], geometryNormal );\n\t\t}\n\t\t#pragma unroll_loop_end\n\t#endif\n#endif\n#if defined( RE_IndirectSpecular )\n\tvec3 radiance = vec3( 0.0 );\n\tvec3 clearcoatRadiance = vec3( 0.0 );\n#endif",lights_fragment_maps:"#if defined( RE_IndirectDiffuse )\n\t#ifdef USE_LIGHTMAP\n\t\tvec4 lightMapTexel = texture2D( lightMap, vLightMapUv );\n\t\tvec3 lightMapIrradiance = lightMapTexel.rgb * lightMapIntensity;\n\t\tirradiance += lightMapIrradiance;\n\t#endif\n\t#if defined( USE_ENVMAP ) && defined( STANDARD ) && defined( ENVMAP_TYPE_CUBE_UV )\n\t\tiblIrradiance += getIBLIrradiance( geometryNormal );\n\t#endif\n#endif\n#if defined( USE_ENVMAP ) && defined( RE_IndirectSpecular )\n\t#ifdef USE_ANISOTROPY\n\t\tradiance += getIBLAnisotropyRadiance( geometryViewDir, geometryNormal, material.roughness, material.anisotropyB, material.anisotropy );\n\t#else\n\t\tradiance += getIBLRadiance( geometryViewDir, geometryNormal, material.roughness );\n\t#endif\n\t#ifdef USE_CLEARCOAT\n\t\tclearcoatRadiance += getIBLRadiance( geometryViewDir, geometryClearcoatNormal, material.clearcoatRoughness );\n\t#endif\n#endif",lights_fragment_end:"#if defined( RE_IndirectDiffuse )\n\tRE_IndirectDiffuse( irradiance, geometryPosition, geometryNormal, geometryViewDir, geometryClearcoatNormal, material, reflectedLight );\n#endif\n#if defined( RE_IndirectSpecular )\n\tRE_IndirectSpecular( radiance, iblIrradiance, clearcoatRadiance, geometryPosition, geometryNormal, geometryViewDir, geometryClearcoatNormal, material, reflectedLight );\n#endif",logdepthbuf_fragment:"#if defined( USE_LOGDEPTHBUF )\n\tgl_FragDepth = vIsPerspective == 0.0 ? gl_FragCoord.z : log2( vFragDepth ) * logDepthBufFC * 0.5;\n#endif",logdepthbuf_pars_fragment:"#if defined( USE_LOGDEPTHBUF )\n\tuniform float logDepthBufFC;\n\tvarying float vFragDepth;\n\tvarying float vIsPerspective;\n#endif",logdepthbuf_pars_vertex:"#ifdef USE_LOGDEPTHBUF\n\tvarying float vFragDepth;\n\tvarying float vIsPerspective;\n#endif",logdepthbuf_vertex:"#ifdef USE_LOGDEPTHBUF\n\tvFragDepth = 1.0 + gl_Position.w;\n\tvIsPerspective = float( isPerspectiveMatrix( projectionMatrix ) );\n#endif",map_fragment:"#ifdef USE_MAP\n\tvec4 sampledDiffuseColor = texture2D( map, vMapUv );\n\t#ifdef DECODE_VIDEO_TEXTURE\n\t\tsampledDiffuseColor = vec4( mix( pow( sampledDiffuseColor.rgb * 0.9478672986 + vec3( 0.0521327014 ), vec3( 2.4 ) ), sampledDiffuseColor.rgb * 0.0773993808, vec3( lessThanEqual( sampledDiffuseColor.rgb, vec3( 0.04045 ) ) ) ), sampledDiffuseColor.w );\n\t\n\t#endif\n\tdiffuseColor *= sampledDiffuseColor;\n#endif",map_pars_fragment:"#ifdef USE_MAP\n\tuniform sampler2D map;\n#endif",map_particle_fragment:"#if defined( USE_MAP ) || defined( USE_ALPHAMAP )\n\t#if defined( USE_POINTS_UV )\n\t\tvec2 uv = vUv;\n\t#else\n\t\tvec2 uv = ( uvTransform * vec3( gl_PointCoord.x, 1.0 - gl_PointCoord.y, 1 ) ).xy;\n\t#endif\n#endif\n#ifdef USE_MAP\n\tdiffuseColor *= texture2D( map, uv );\n#endif\n#ifdef USE_ALPHAMAP\n\tdiffuseColor.a *= texture2D( alphaMap, uv ).g;\n#endif",map_particle_pars_fragment:"#if defined( USE_POINTS_UV )\n\tvarying vec2 vUv;\n#else\n\t#if defined( USE_MAP ) || defined( USE_ALPHAMAP )\n\t\tuniform mat3 uvTransform;\n\t#endif\n#endif\n#ifdef USE_MAP\n\tuniform sampler2D map;\n#endif\n#ifdef USE_ALPHAMAP\n\tuniform sampler2D alphaMap;\n#endif",metalnessmap_fragment:"float metalnessFactor = metalness;\n#ifdef USE_METALNESSMAP\n\tvec4 texelMetalness = texture2D( metalnessMap, vMetalnessMapUv );\n\tmetalnessFactor *= texelMetalness.b;\n#endif",metalnessmap_pars_fragment:"#ifdef USE_METALNESSMAP\n\tuniform sampler2D metalnessMap;\n#endif",morphinstance_vertex:"#ifdef USE_INSTANCING_MORPH\n\tfloat morphTargetInfluences[ MORPHTARGETS_COUNT ];\n\tfloat morphTargetBaseInfluence = texelFetch( morphTexture, ivec2( 0, gl_InstanceID ), 0 ).r;\n\tfor ( int i = 0; i < MORPHTARGETS_COUNT; i ++ ) {\n\t\tmorphTargetInfluences[i] = texelFetch( morphTexture, ivec2( i + 1, gl_InstanceID ), 0 ).r;\n\t}\n#endif",morphcolor_vertex:"#if defined( USE_MORPHCOLORS )\n\tvColor *= morphTargetBaseInfluence;\n\tfor ( int i = 0; i < MORPHTARGETS_COUNT; i ++ ) {\n\t\t#if defined( USE_COLOR_ALPHA )\n\t\t\tif ( morphTargetInfluences[ i ] != 0.0 ) vColor += getMorph( gl_VertexID, i, 2 ) * morphTargetInfluences[ i ];\n\t\t#elif defined( USE_COLOR )\n\t\t\tif ( morphTargetInfluences[ i ] != 0.0 ) vColor += getMorph( gl_VertexID, i, 2 ).rgb * morphTargetInfluences[ i ];\n\t\t#endif\n\t}\n#endif",morphnormal_vertex:"#ifdef USE_MORPHNORMALS\n\tobjectNormal *= morphTargetBaseInfluence;\n\tfor ( int i = 0; i < MORPHTARGETS_COUNT; i ++ ) {\n\t\tif ( morphTargetInfluences[ i ] != 0.0 ) objectNormal += getMorph( gl_VertexID, i, 1 ).xyz * morphTargetInfluences[ i ];\n\t}\n#endif",morphtarget_pars_vertex:"#ifdef USE_MORPHTARGETS\n\t#ifndef USE_INSTANCING_MORPH\n\t\tuniform float morphTargetBaseInfluence;\n\t\tuniform float morphTargetInfluences[ MORPHTARGETS_COUNT ];\n\t#endif\n\tuniform sampler2DArray morphTargetsTexture;\n\tuniform ivec2 morphTargetsTextureSize;\n\tvec4 getMorph( const in int vertexIndex, const in int morphTargetIndex, const in int offset ) {\n\t\tint texelIndex = vertexIndex * MORPHTARGETS_TEXTURE_STRIDE + offset;\n\t\tint y = texelIndex / morphTargetsTextureSize.x;\n\t\tint x = texelIndex - y * morphTargetsTextureSize.x;\n\t\tivec3 morphUV = ivec3( x, y, morphTargetIndex );\n\t\treturn texelFetch( morphTargetsTexture, morphUV, 0 );\n\t}\n#endif",morphtarget_vertex:"#ifdef USE_MORPHTARGETS\n\ttransformed *= morphTargetBaseInfluence;\n\tfor ( int i = 0; i < MORPHTARGETS_COUNT; i ++ ) {\n\t\tif ( morphTargetInfluences[ i ] != 0.0 ) transformed += getMorph( gl_VertexID, i, 0 ).xyz * morphTargetInfluences[ i ];\n\t}\n#endif",normal_fragment_begin:"float faceDirection = gl_FrontFacing ? 1.0 : - 1.0;\n#ifdef FLAT_SHADED\n\tvec3 fdx = dFdx( vViewPosition );\n\tvec3 fdy = dFdy( vViewPosition );\n\tvec3 normal = normalize( cross( fdx, fdy ) );\n#else\n\tvec3 normal = normalize( vNormal );\n\t#ifdef DOUBLE_SIDED\n\t\tnormal *= faceDirection;\n\t#endif\n#endif\n#if defined( USE_NORMALMAP_TANGENTSPACE ) || defined( USE_CLEARCOAT_NORMALMAP ) || defined( USE_ANISOTROPY )\n\t#ifdef USE_TANGENT\n\t\tmat3 tbn = mat3( normalize( vTangent ), normalize( vBitangent ), normal );\n\t#else\n\t\tmat3 tbn = getTangentFrame( - vViewPosition, normal,\n\t\t#if defined( USE_NORMALMAP )\n\t\t\tvNormalMapUv\n\t\t#elif defined( USE_CLEARCOAT_NORMALMAP )\n\t\t\tvClearcoatNormalMapUv\n\t\t#else\n\t\t\tvUv\n\t\t#endif\n\t\t);\n\t#endif\n\t#if defined( DOUBLE_SIDED ) && ! defined( FLAT_SHADED )\n\t\ttbn[0] *= faceDirection;\n\t\ttbn[1] *= faceDirection;\n\t#endif\n#endif\n#ifdef USE_CLEARCOAT_NORMALMAP\n\t#ifdef USE_TANGENT\n\t\tmat3 tbn2 = mat3( normalize( vTangent ), normalize( vBitangent ), normal );\n\t#else\n\t\tmat3 tbn2 = getTangentFrame( - vViewPosition, normal, vClearcoatNormalMapUv );\n\t#endif\n\t#if defined( DOUBLE_SIDED ) && ! defined( FLAT_SHADED )\n\t\ttbn2[0] *= faceDirection;\n\t\ttbn2[1] *= faceDirection;\n\t#endif\n#endif\nvec3 nonPerturbedNormal = normal;",normal_fragment_maps:"#ifdef USE_NORMALMAP_OBJECTSPACE\n\tnormal = texture2D( normalMap, vNormalMapUv ).xyz * 2.0 - 1.0;\n\t#ifdef FLIP_SIDED\n\t\tnormal = - normal;\n\t#endif\n\t#ifdef DOUBLE_SIDED\n\t\tnormal = normal * faceDirection;\n\t#endif\n\tnormal = normalize( normalMatrix * normal );\n#elif defined( USE_NORMALMAP_TANGENTSPACE )\n\tvec3 mapN = texture2D( normalMap, vNormalMapUv ).xyz * 2.0 - 1.0;\n\tmapN.xy *= normalScale;\n\tnormal = normalize( tbn * mapN );\n#elif defined( USE_BUMPMAP )\n\tnormal = perturbNormalArb( - vViewPosition, normal, dHdxy_fwd(), faceDirection );\n#endif",normal_pars_fragment:"#ifndef FLAT_SHADED\n\tvarying vec3 vNormal;\n\t#ifdef USE_TANGENT\n\t\tvarying vec3 vTangent;\n\t\tvarying vec3 vBitangent;\n\t#endif\n#endif",normal_pars_vertex:"#ifndef FLAT_SHADED\n\tvarying vec3 vNormal;\n\t#ifdef USE_TANGENT\n\t\tvarying vec3 vTangent;\n\t\tvarying vec3 vBitangent;\n\t#endif\n#endif",normal_vertex:"#ifndef FLAT_SHADED\n\tvNormal = normalize( transformedNormal );\n\t#ifdef USE_TANGENT\n\t\tvTangent = normalize( transformedTangent );\n\t\tvBitangent = normalize( cross( vNormal, vTangent ) * tangent.w );\n\t#endif\n#endif",normalmap_pars_fragment:"#ifdef USE_NORMALMAP\n\tuniform sampler2D normalMap;\n\tuniform vec2 normalScale;\n#endif\n#ifdef USE_NORMALMAP_OBJECTSPACE\n\tuniform mat3 normalMatrix;\n#endif\n#if ! defined ( USE_TANGENT ) && ( defined ( USE_NORMALMAP_TANGENTSPACE ) || defined ( USE_CLEARCOAT_NORMALMAP ) || defined( USE_ANISOTROPY ) )\n\tmat3 getTangentFrame( vec3 eye_pos, vec3 surf_norm, vec2 uv ) {\n\t\tvec3 q0 = dFdx( eye_pos.xyz );\n\t\tvec3 q1 = dFdy( eye_pos.xyz );\n\t\tvec2 st0 = dFdx( uv.st );\n\t\tvec2 st1 = dFdy( uv.st );\n\t\tvec3 N = surf_norm;\n\t\tvec3 q1perp = cross( q1, N );\n\t\tvec3 q0perp = cross( N, q0 );\n\t\tvec3 T = q1perp * st0.x + q0perp * st1.x;\n\t\tvec3 B = q1perp * st0.y + q0perp * st1.y;\n\t\tfloat det = max( dot( T, T ), dot( B, B ) );\n\t\tfloat scale = ( det == 0.0 ) ? 0.0 : inversesqrt( det );\n\t\treturn mat3( T * scale, B * scale, N );\n\t}\n#endif",clearcoat_normal_fragment_begin:"#ifdef USE_CLEARCOAT\n\tvec3 clearcoatNormal = nonPerturbedNormal;\n#endif",clearcoat_normal_fragment_maps:"#ifdef USE_CLEARCOAT_NORMALMAP\n\tvec3 clearcoatMapN = texture2D( clearcoatNormalMap, vClearcoatNormalMapUv ).xyz * 2.0 - 1.0;\n\tclearcoatMapN.xy *= clearcoatNormalScale;\n\tclearcoatNormal = normalize( tbn2 * clearcoatMapN );\n#endif",clearcoat_pars_fragment:"#ifdef USE_CLEARCOATMAP\n\tuniform sampler2D clearcoatMap;\n#endif\n#ifdef USE_CLEARCOAT_NORMALMAP\n\tuniform sampler2D clearcoatNormalMap;\n\tuniform vec2 clearcoatNormalScale;\n#endif\n#ifdef USE_CLEARCOAT_ROUGHNESSMAP\n\tuniform sampler2D clearcoatRoughnessMap;\n#endif",iridescence_pars_fragment:"#ifdef USE_IRIDESCENCEMAP\n\tuniform sampler2D iridescenceMap;\n#endif\n#ifdef USE_IRIDESCENCE_THICKNESSMAP\n\tuniform sampler2D iridescenceThicknessMap;\n#endif",opaque_fragment:"#ifdef OPAQUE\ndiffuseColor.a = 1.0;\n#endif\n#ifdef USE_TRANSMISSION\ndiffuseColor.a *= material.transmissionAlpha;\n#endif\ngl_FragColor = vec4( outgoingLight, diffuseColor.a );",packing:"vec3 packNormalToRGB( const in vec3 normal ) {\n\treturn normalize( normal ) * 0.5 + 0.5;\n}\nvec3 unpackRGBToNormal( const in vec3 rgb ) {\n\treturn 2.0 * rgb.xyz - 1.0;\n}\nconst float PackUpscale = 256. / 255.;const float UnpackDownscale = 255. / 256.;\nconst vec3 PackFactors = vec3( 256. * 256. * 256., 256. * 256., 256. );\nconst vec4 UnpackFactors = UnpackDownscale / vec4( PackFactors, 1. );\nconst float ShiftRight8 = 1. / 256.;\nvec4 packDepthToRGBA( const in float v ) {\n\tvec4 r = vec4( fract( v * PackFactors ), v );\n\tr.yzw -= r.xyz * ShiftRight8;\treturn r * PackUpscale;\n}\nfloat unpackRGBAToDepth( const in vec4 v ) {\n\treturn dot( v, UnpackFactors );\n}\nvec2 packDepthToRG( in highp float v ) {\n\treturn packDepthToRGBA( v ).yx;\n}\nfloat unpackRGToDepth( const in highp vec2 v ) {\n\treturn unpackRGBAToDepth( vec4( v.xy, 0.0, 0.0 ) );\n}\nvec4 pack2HalfToRGBA( vec2 v ) {\n\tvec4 r = vec4( v.x, fract( v.x * 255.0 ), v.y, fract( v.y * 255.0 ) );\n\treturn vec4( r.x - r.y / 255.0, r.y, r.z - r.w / 255.0, r.w );\n}\nvec2 unpackRGBATo2Half( vec4 v ) {\n\treturn vec2( v.x + ( v.y / 255.0 ), v.z + ( v.w / 255.0 ) );\n}\nfloat viewZToOrthographicDepth( const in float viewZ, const in float near, const in float far ) {\n\treturn ( viewZ + near ) / ( near - far );\n}\nfloat orthographicDepthToViewZ( const in float depth, const in float near, const in float far ) {\n\treturn depth * ( near - far ) - near;\n}\nfloat viewZToPerspectiveDepth( const in float viewZ, const in float near, const in float far ) {\n\treturn ( ( near + viewZ ) * far ) / ( ( far - near ) * viewZ );\n}\nfloat perspectiveDepthToViewZ( const in float depth, const in float near, const in float far ) {\n\treturn ( near * far ) / ( ( far - near ) * depth - far );\n}",premultiplied_alpha_fragment:"#ifdef PREMULTIPLIED_ALPHA\n\tgl_FragColor.rgb *= gl_FragColor.a;\n#endif",project_vertex:"vec4 mvPosition = vec4( transformed, 1.0 );\n#ifdef USE_BATCHING\n\tmvPosition = batchingMatrix * mvPosition;\n#endif\n#ifdef USE_INSTANCING\n\tmvPosition = instanceMatrix * mvPosition;\n#endif\nmvPosition = modelViewMatrix * mvPosition;\ngl_Position = projectionMatrix * mvPosition;",dithering_fragment:"#ifdef DITHERING\n\tgl_FragColor.rgb = dithering( gl_FragColor.rgb );\n#endif",dithering_pars_fragment:"#ifdef DITHERING\n\tvec3 dithering( vec3 color ) {\n\t\tfloat grid_position = rand( gl_FragCoord.xy );\n\t\tvec3 dither_shift_RGB = vec3( 0.25 / 255.0, -0.25 / 255.0, 0.25 / 255.0 );\n\t\tdither_shift_RGB = mix( 2.0 * dither_shift_RGB, -2.0 * dither_shift_RGB, grid_position );\n\t\treturn color + dither_shift_RGB;\n\t}\n#endif",roughnessmap_fragment:"float roughnessFactor = roughness;\n#ifdef USE_ROUGHNESSMAP\n\tvec4 texelRoughness = texture2D( roughnessMap, vRoughnessMapUv );\n\troughnessFactor *= texelRoughness.g;\n#endif",roughnessmap_pars_fragment:"#ifdef USE_ROUGHNESSMAP\n\tuniform sampler2D roughnessMap;\n#endif",shadowmap_pars_fragment:"#if NUM_SPOT_LIGHT_COORDS > 0\n\tvarying vec4 vSpotLightCoord[ NUM_SPOT_LIGHT_COORDS ];\n#endif\n#if NUM_SPOT_LIGHT_MAPS > 0\n\tuniform sampler2D spotLightMap[ NUM_SPOT_LIGHT_MAPS ];\n#endif\n#ifdef USE_SHADOWMAP\n\t#if NUM_DIR_LIGHT_SHADOWS > 0\n\t\tuniform sampler2D directionalShadowMap[ NUM_DIR_LIGHT_SHADOWS ];\n\t\tvarying vec4 vDirectionalShadowCoord[ NUM_DIR_LIGHT_SHADOWS ];\n\t\tstruct DirectionalLightShadow {\n\t\t\tfloat shadowBias;\n\t\t\tfloat shadowNormalBias;\n\t\t\tfloat shadowRadius;\n\t\t\tvec2 shadowMapSize;\n\t\t};\n\t\tuniform DirectionalLightShadow directionalLightShadows[ NUM_DIR_LIGHT_SHADOWS ];\n\t#endif\n\t#if NUM_SPOT_LIGHT_SHADOWS > 0\n\t\tuniform sampler2D spotShadowMap[ NUM_SPOT_LIGHT_SHADOWS ];\n\t\tstruct SpotLightShadow {\n\t\t\tfloat shadowBias;\n\t\t\tfloat shadowNormalBias;\n\t\t\tfloat shadowRadius;\n\t\t\tvec2 shadowMapSize;\n\t\t};\n\t\tuniform SpotLightShadow spotLightShadows[ NUM_SPOT_LIGHT_SHADOWS ];\n\t#endif\n\t#if NUM_POINT_LIGHT_SHADOWS > 0\n\t\tuniform sampler2D pointShadowMap[ NUM_POINT_LIGHT_SHADOWS ];\n\t\tvarying vec4 vPointShadowCoord[ NUM_POINT_LIGHT_SHADOWS ];\n\t\tstruct PointLightShadow {\n\t\t\tfloat shadowBias;\n\t\t\tfloat shadowNormalBias;\n\t\t\tfloat shadowRadius;\n\t\t\tvec2 shadowMapSize;\n\t\t\tfloat shadowCameraNear;\n\t\t\tfloat shadowCameraFar;\n\t\t};\n\t\tuniform PointLightShadow pointLightShadows[ NUM_POINT_LIGHT_SHADOWS ];\n\t#endif\n\tfloat texture2DCompare( sampler2D depths, vec2 uv, float compare ) {\n\t\treturn step( compare, unpackRGBAToDepth( texture2D( depths, uv ) ) );\n\t}\n\tvec2 texture2DDistribution( sampler2D shadow, vec2 uv ) {\n\t\treturn unpackRGBATo2Half( texture2D( shadow, uv ) );\n\t}\n\tfloat VSMShadow (sampler2D shadow, vec2 uv, float compare ){\n\t\tfloat occlusion = 1.0;\n\t\tvec2 distribution = texture2DDistribution( shadow, uv );\n\t\tfloat hard_shadow = step( compare , distribution.x );\n\t\tif (hard_shadow != 1.0 ) {\n\t\t\tfloat distance = compare - distribution.x ;\n\t\t\tfloat variance = max( 0.00000, distribution.y * distribution.y );\n\t\t\tfloat softness_probability = variance / (variance + distance * distance );\t\t\tsoftness_probability = clamp( ( softness_probability - 0.3 ) / ( 0.95 - 0.3 ), 0.0, 1.0 );\t\t\tocclusion = clamp( max( hard_shadow, softness_probability ), 0.0, 1.0 );\n\t\t}\n\t\treturn occlusion;\n\t}\n\tfloat getShadow( sampler2D shadowMap, vec2 shadowMapSize, float shadowBias, float shadowRadius, vec4 shadowCoord ) {\n\t\tfloat shadow = 1.0;\n\t\tshadowCoord.xyz /= shadowCoord.w;\n\t\tshadowCoord.z += shadowBias;\n\t\tbool inFrustum = shadowCoord.x >= 0.0 && shadowCoord.x <= 1.0 && shadowCoord.y >= 0.0 && shadowCoord.y <= 1.0;\n\t\tbool frustumTest = inFrustum && shadowCoord.z <= 1.0;\n\t\tif ( frustumTest ) {\n\t\t#if defined( SHADOWMAP_TYPE_PCF )\n\t\t\tvec2 texelSize = vec2( 1.0 ) / shadowMapSize;\n\t\t\tfloat dx0 = - texelSize.x * shadowRadius;\n\t\t\tfloat dy0 = - texelSize.y * shadowRadius;\n\t\t\tfloat dx1 = + texelSize.x * shadowRadius;\n\t\t\tfloat dy1 = + texelSize.y * shadowRadius;\n\t\t\tfloat dx2 = dx0 / 2.0;\n\t\t\tfloat dy2 = dy0 / 2.0;\n\t\t\tfloat dx3 = dx1 / 2.0;\n\t\t\tfloat dy3 = dy1 / 2.0;\n\t\t\tshadow = (\n\t\t\t\ttexture2DCompare( shadowMap, shadowCoord.xy + vec2( dx0, dy0 ), shadowCoord.z ) +\n\t\t\t\ttexture2DCompare( shadowMap, shadowCoord.xy + vec2( 0.0, dy0 ), shadowCoord.z ) +\n\t\t\t\ttexture2DCompare( shadowMap, shadowCoord.xy + vec2( dx1, dy0 ), shadowCoord.z ) +\n\t\t\t\ttexture2DCompare( shadowMap, shadowCoord.xy + vec2( dx2, dy2 ), shadowCoord.z ) +\n\t\t\t\ttexture2DCompare( shadowMap, shadowCoord.xy + vec2( 0.0, dy2 ), shadowCoord.z ) +\n\t\t\t\ttexture2DCompare( shadowMap, shadowCoord.xy + vec2( dx3, dy2 ), shadowCoord.z ) +\n\t\t\t\ttexture2DCompare( shadowMap, shadowCoord.xy + vec2( dx0, 0.0 ), shadowCoord.z ) +\n\t\t\t\ttexture2DCompare( shadowMap, shadowCoord.xy + vec2( dx2, 0.0 ), shadowCoord.z ) +\n\t\t\t\ttexture2DCompare( shadowMap, shadowCoord.xy, shadowCoord.z ) +\n\t\t\t\ttexture2DCompare( shadowMap, shadowCoord.xy + vec2( dx3, 0.0 ), shadowCoord.z ) +\n\t\t\t\ttexture2DCompare( shadowMap, shadowCoord.xy + vec2( dx1, 0.0 ), shadowCoord.z ) +\n\t\t\t\ttexture2DCompare( shadowMap, shadowCoord.xy + vec2( dx2, dy3 ), shadowCoord.z ) +\n\t\t\t\ttexture2DCompare( shadowMap, shadowCoord.xy + vec2( 0.0, dy3 ), shadowCoord.z ) +\n\t\t\t\ttexture2DCompare( shadowMap, shadowCoord.xy + vec2( dx3, dy3 ), shadowCoord.z ) +\n\t\t\t\ttexture2DCompare( shadowMap, shadowCoord.xy + vec2( dx0, dy1 ), shadowCoord.z ) +\n\t\t\t\ttexture2DCompare( shadowMap, shadowCoord.xy + vec2( 0.0, dy1 ), shadowCoord.z ) +\n\t\t\t\ttexture2DCompare( shadowMap, shadowCoord.xy + vec2( dx1, dy1 ), shadowCoord.z )\n\t\t\t) * ( 1.0 / 17.0 );\n\t\t#elif defined( SHADOWMAP_TYPE_PCF_SOFT )\n\t\t\tvec2 texelSize = vec2( 1.0 ) / shadowMapSize;\n\t\t\tfloat dx = texelSize.x;\n\t\t\tfloat dy = texelSize.y;\n\t\t\tvec2 uv = shadowCoord.xy;\n\t\t\tvec2 f = fract( uv * shadowMapSize + 0.5 );\n\t\t\tuv -= f * texelSize;\n\t\t\tshadow = (\n\t\t\t\ttexture2DCompare( shadowMap, uv, shadowCoord.z ) +\n\t\t\t\ttexture2DCompare( shadowMap, uv + vec2( dx, 0.0 ), shadowCoord.z ) +\n\t\t\t\ttexture2DCompare( shadowMap, uv + vec2( 0.0, dy ), shadowCoord.z ) +\n\t\t\t\ttexture2DCompare( shadowMap, uv + texelSize, shadowCoord.z ) +\n\t\t\t\tmix( texture2DCompare( shadowMap, uv + vec2( -dx, 0.0 ), shadowCoord.z ),\n\t\t\t\t\t texture2DCompare( shadowMap, uv + vec2( 2.0 * dx, 0.0 ), shadowCoord.z ),\n\t\t\t\t\t f.x ) +\n\t\t\t\tmix( texture2DCompare( shadowMap, uv + vec2( -dx, dy ), shadowCoord.z ),\n\t\t\t\t\t texture2DCompare( shadowMap, uv + vec2( 2.0 * dx, dy ), shadowCoord.z ),\n\t\t\t\t\t f.x ) +\n\t\t\t\tmix( texture2DCompare( shadowMap, uv + vec2( 0.0, -dy ), shadowCoord.z ),\n\t\t\t\t\t texture2DCompare( shadowMap, uv + vec2( 0.0, 2.0 * dy ), shadowCoord.z ),\n\t\t\t\t\t f.y ) +\n\t\t\t\tmix( texture2DCompare( shadowMap, uv + vec2( dx, -dy ), shadowCoord.z ),\n\t\t\t\t\t texture2DCompare( shadowMap, uv + vec2( dx, 2.0 * dy ), shadowCoord.z ),\n\t\t\t\t\t f.y ) +\n\t\t\t\tmix( mix( texture2DCompare( shadowMap, uv + vec2( -dx, -dy ), shadowCoord.z ),\n\t\t\t\t\t\t texture2DCompare( shadowMap, uv + vec2( 2.0 * dx, -dy ), shadowCoord.z ),\n\t\t\t\t\t\t f.x ),\n\t\t\t\t\t mix( texture2DCompare( shadowMap, uv + vec2( -dx, 2.0 * dy ), shadowCoord.z ),\n\t\t\t\t\t\t texture2DCompare( shadowMap, uv + vec2( 2.0 * dx, 2.0 * dy ), shadowCoord.z ),\n\t\t\t\t\t\t f.x ),\n\t\t\t\t\t f.y )\n\t\t\t) * ( 1.0 / 9.0 );\n\t\t#elif defined( SHADOWMAP_TYPE_VSM )\n\t\t\tshadow = VSMShadow( shadowMap, shadowCoord.xy, shadowCoord.z );\n\t\t#else\n\t\t\tshadow = texture2DCompare( shadowMap, shadowCoord.xy, shadowCoord.z );\n\t\t#endif\n\t\t}\n\t\treturn shadow;\n\t}\n\tvec2 cubeToUV( vec3 v, float texelSizeY ) {\n\t\tvec3 absV = abs( v );\n\t\tfloat scaleToCube = 1.0 / max( absV.x, max( absV.y, absV.z ) );\n\t\tabsV *= scaleToCube;\n\t\tv *= scaleToCube * ( 1.0 - 2.0 * texelSizeY );\n\t\tvec2 planar = v.xy;\n\t\tfloat almostATexel = 1.5 * texelSizeY;\n\t\tfloat almostOne = 1.0 - almostATexel;\n\t\tif ( absV.z >= almostOne ) {\n\t\t\tif ( v.z > 0.0 )\n\t\t\t\tplanar.x = 4.0 - v.x;\n\t\t} else if ( absV.x >= almostOne ) {\n\t\t\tfloat signX = sign( v.x );\n\t\t\tplanar.x = v.z * signX + 2.0 * signX;\n\t\t} else if ( absV.y >= almostOne ) {\n\t\t\tfloat signY = sign( v.y );\n\t\t\tplanar.x = v.x + 2.0 * signY + 2.0;\n\t\t\tplanar.y = v.z * signY - 2.0;\n\t\t}\n\t\treturn vec2( 0.125, 0.25 ) * planar + vec2( 0.375, 0.75 );\n\t}\n\tfloat getPointShadow( sampler2D shadowMap, vec2 shadowMapSize, float shadowBias, float shadowRadius, vec4 shadowCoord, float shadowCameraNear, float shadowCameraFar ) {\n\t\tfloat shadow = 1.0;\n\t\tvec3 lightToPosition = shadowCoord.xyz;\n\t\t\n\t\tfloat lightToPositionLength = length( lightToPosition );\n\t\tif ( lightToPositionLength - shadowCameraFar <= 0.0 && lightToPositionLength - shadowCameraNear >= 0.0 ) {\n\t\t\tfloat dp = ( lightToPositionLength - shadowCameraNear ) / ( shadowCameraFar - shadowCameraNear );\t\t\tdp += shadowBias;\n\t\t\tvec3 bd3D = normalize( lightToPosition );\n\t\t\tvec2 texelSize = vec2( 1.0 ) / ( shadowMapSize * vec2( 4.0, 2.0 ) );\n\t\t\t#if defined( SHADOWMAP_TYPE_PCF ) || defined( SHADOWMAP_TYPE_PCF_SOFT ) || defined( SHADOWMAP_TYPE_VSM )\n\t\t\t\tvec2 offset = vec2( - 1, 1 ) * shadowRadius * texelSize.y;\n\t\t\t\tshadow = (\n\t\t\t\t\ttexture2DCompare( shadowMap, cubeToUV( bd3D + offset.xyy, texelSize.y ), dp ) +\n\t\t\t\t\ttexture2DCompare( shadowMap, cubeToUV( bd3D + offset.yyy, texelSize.y ), dp ) +\n\t\t\t\t\ttexture2DCompare( shadowMap, cubeToUV( bd3D + offset.xyx, texelSize.y ), dp ) +\n\t\t\t\t\ttexture2DCompare( shadowMap, cubeToUV( bd3D + offset.yyx, texelSize.y ), dp ) +\n\t\t\t\t\ttexture2DCompare( shadowMap, cubeToUV( bd3D, texelSize.y ), dp ) +\n\t\t\t\t\ttexture2DCompare( shadowMap, cubeToUV( bd3D + offset.xxy, texelSize.y ), dp ) +\n\t\t\t\t\ttexture2DCompare( shadowMap, cubeToUV( bd3D + offset.yxy, texelSize.y ), dp ) +\n\t\t\t\t\ttexture2DCompare( shadowMap, cubeToUV( bd3D + offset.xxx, texelSize.y ), dp ) +\n\t\t\t\t\ttexture2DCompare( shadowMap, cubeToUV( bd3D + offset.yxx, texelSize.y ), dp )\n\t\t\t\t) * ( 1.0 / 9.0 );\n\t\t\t#else\n\t\t\t\tshadow = texture2DCompare( shadowMap, cubeToUV( bd3D, texelSize.y ), dp );\n\t\t\t#endif\n\t\t}\n\t\treturn shadow;\n\t}\n#endif",shadowmap_pars_vertex:"#if NUM_SPOT_LIGHT_COORDS > 0\n\tuniform mat4 spotLightMatrix[ NUM_SPOT_LIGHT_COORDS ];\n\tvarying vec4 vSpotLightCoord[ NUM_SPOT_LIGHT_COORDS ];\n#endif\n#ifdef USE_SHADOWMAP\n\t#if NUM_DIR_LIGHT_SHADOWS > 0\n\t\tuniform mat4 directionalShadowMatrix[ NUM_DIR_LIGHT_SHADOWS ];\n\t\tvarying vec4 vDirectionalShadowCoord[ NUM_DIR_LIGHT_SHADOWS ];\n\t\tstruct DirectionalLightShadow {\n\t\t\tfloat shadowBias;\n\t\t\tfloat shadowNormalBias;\n\t\t\tfloat shadowRadius;\n\t\t\tvec2 shadowMapSize;\n\t\t};\n\t\tuniform DirectionalLightShadow directionalLightShadows[ NUM_DIR_LIGHT_SHADOWS ];\n\t#endif\n\t#if NUM_SPOT_LIGHT_SHADOWS > 0\n\t\tstruct SpotLightShadow {\n\t\t\tfloat shadowBias;\n\t\t\tfloat shadowNormalBias;\n\t\t\tfloat shadowRadius;\n\t\t\tvec2 shadowMapSize;\n\t\t};\n\t\tuniform SpotLightShadow spotLightShadows[ NUM_SPOT_LIGHT_SHADOWS ];\n\t#endif\n\t#if NUM_POINT_LIGHT_SHADOWS > 0\n\t\tuniform mat4 pointShadowMatrix[ NUM_POINT_LIGHT_SHADOWS ];\n\t\tvarying vec4 vPointShadowCoord[ NUM_POINT_LIGHT_SHADOWS ];\n\t\tstruct PointLightShadow {\n\t\t\tfloat shadowBias;\n\t\t\tfloat shadowNormalBias;\n\t\t\tfloat shadowRadius;\n\t\t\tvec2 shadowMapSize;\n\t\t\tfloat shadowCameraNear;\n\t\t\tfloat shadowCameraFar;\n\t\t};\n\t\tuniform PointLightShadow pointLightShadows[ NUM_POINT_LIGHT_SHADOWS ];\n\t#endif\n#endif",shadowmap_vertex:"#if ( defined( USE_SHADOWMAP ) && ( NUM_DIR_LIGHT_SHADOWS > 0 || NUM_POINT_LIGHT_SHADOWS > 0 ) ) || ( NUM_SPOT_LIGHT_COORDS > 0 )\n\tvec3 shadowWorldNormal = inverseTransformDirection( transformedNormal, viewMatrix );\n\tvec4 shadowWorldPosition;\n#endif\n#if defined( USE_SHADOWMAP )\n\t#if NUM_DIR_LIGHT_SHADOWS > 0\n\t\t#pragma unroll_loop_start\n\t\tfor ( int i = 0; i < NUM_DIR_LIGHT_SHADOWS; i ++ ) {\n\t\t\tshadowWorldPosition = worldPosition + vec4( shadowWorldNormal * directionalLightShadows[ i ].shadowNormalBias, 0 );\n\t\t\tvDirectionalShadowCoord[ i ] = directionalShadowMatrix[ i ] * shadowWorldPosition;\n\t\t}\n\t\t#pragma unroll_loop_end\n\t#endif\n\t#if NUM_POINT_LIGHT_SHADOWS > 0\n\t\t#pragma unroll_loop_start\n\t\tfor ( int i = 0; i < NUM_POINT_LIGHT_SHADOWS; i ++ ) {\n\t\t\tshadowWorldPosition = worldPosition + vec4( shadowWorldNormal * pointLightShadows[ i ].shadowNormalBias, 0 );\n\t\t\tvPointShadowCoord[ i ] = pointShadowMatrix[ i ] * shadowWorldPosition;\n\t\t}\n\t\t#pragma unroll_loop_end\n\t#endif\n#endif\n#if NUM_SPOT_LIGHT_COORDS > 0\n\t#pragma unroll_loop_start\n\tfor ( int i = 0; i < NUM_SPOT_LIGHT_COORDS; i ++ ) {\n\t\tshadowWorldPosition = worldPosition;\n\t\t#if ( defined( USE_SHADOWMAP ) && UNROLLED_LOOP_INDEX < NUM_SPOT_LIGHT_SHADOWS )\n\t\t\tshadowWorldPosition.xyz += shadowWorldNormal * spotLightShadows[ i ].shadowNormalBias;\n\t\t#endif\n\t\tvSpotLightCoord[ i ] = spotLightMatrix[ i ] * shadowWorldPosition;\n\t}\n\t#pragma unroll_loop_end\n#endif",shadowmask_pars_fragment:"float getShadowMask() {\n\tfloat shadow = 1.0;\n\t#ifdef USE_SHADOWMAP\n\t#if NUM_DIR_LIGHT_SHADOWS > 0\n\tDirectionalLightShadow directionalLight;\n\t#pragma unroll_loop_start\n\tfor ( int i = 0; i < NUM_DIR_LIGHT_SHADOWS; i ++ ) {\n\t\tdirectionalLight = directionalLightShadows[ i ];\n\t\tshadow *= receiveShadow ? getShadow( directionalShadowMap[ i ], directionalLight.shadowMapSize, directionalLight.shadowBias, directionalLight.shadowRadius, vDirectionalShadowCoord[ i ] ) : 1.0;\n\t}\n\t#pragma unroll_loop_end\n\t#endif\n\t#if NUM_SPOT_LIGHT_SHADOWS > 0\n\tSpotLightShadow spotLight;\n\t#pragma unroll_loop_start\n\tfor ( int i = 0; i < NUM_SPOT_LIGHT_SHADOWS; i ++ ) {\n\t\tspotLight = spotLightShadows[ i ];\n\t\tshadow *= receiveShadow ? getShadow( spotShadowMap[ i ], spotLight.shadowMapSize, spotLight.shadowBias, spotLight.shadowRadius, vSpotLightCoord[ i ] ) : 1.0;\n\t}\n\t#pragma unroll_loop_end\n\t#endif\n\t#if NUM_POINT_LIGHT_SHADOWS > 0\n\tPointLightShadow pointLight;\n\t#pragma unroll_loop_start\n\tfor ( int i = 0; i < NUM_POINT_LIGHT_SHADOWS; i ++ ) {\n\t\tpointLight = pointLightShadows[ i ];\n\t\tshadow *= receiveShadow ? getPointShadow( pointShadowMap[ i ], pointLight.shadowMapSize, pointLight.shadowBias, pointLight.shadowRadius, vPointShadowCoord[ i ], pointLight.shadowCameraNear, pointLight.shadowCameraFar ) : 1.0;\n\t}\n\t#pragma unroll_loop_end\n\t#endif\n\t#endif\n\treturn shadow;\n}",skinbase_vertex:"#ifdef USE_SKINNING\n\tmat4 boneMatX = getBoneMatrix( skinIndex.x );\n\tmat4 boneMatY = getBoneMatrix( skinIndex.y );\n\tmat4 boneMatZ = getBoneMatrix( skinIndex.z );\n\tmat4 boneMatW = getBoneMatrix( skinIndex.w );\n#endif",skinning_pars_vertex:"#ifdef USE_SKINNING\n\tuniform mat4 bindMatrix;\n\tuniform mat4 bindMatrixInverse;\n\tuniform highp sampler2D boneTexture;\n\tmat4 getBoneMatrix( const in float i ) {\n\t\tint size = textureSize( boneTexture, 0 ).x;\n\t\tint j = int( i ) * 4;\n\t\tint x = j % size;\n\t\tint y = j / size;\n\t\tvec4 v1 = texelFetch( boneTexture, ivec2( x, y ), 0 );\n\t\tvec4 v2 = texelFetch( boneTexture, ivec2( x + 1, y ), 0 );\n\t\tvec4 v3 = texelFetch( boneTexture, ivec2( x + 2, y ), 0 );\n\t\tvec4 v4 = texelFetch( boneTexture, ivec2( x + 3, y ), 0 );\n\t\treturn mat4( v1, v2, v3, v4 );\n\t}\n#endif",skinning_vertex:"#ifdef USE_SKINNING\n\tvec4 skinVertex = bindMatrix * vec4( transformed, 1.0 );\n\tvec4 skinned = vec4( 0.0 );\n\tskinned += boneMatX * skinVertex * skinWeight.x;\n\tskinned += boneMatY * skinVertex * skinWeight.y;\n\tskinned += boneMatZ * skinVertex * skinWeight.z;\n\tskinned += boneMatW * skinVertex * skinWeight.w;\n\ttransformed = ( bindMatrixInverse * skinned ).xyz;\n#endif",skinnormal_vertex:"#ifdef USE_SKINNING\n\tmat4 skinMatrix = mat4( 0.0 );\n\tskinMatrix += skinWeight.x * boneMatX;\n\tskinMatrix += skinWeight.y * boneMatY;\n\tskinMatrix += skinWeight.z * boneMatZ;\n\tskinMatrix += skinWeight.w * boneMatW;\n\tskinMatrix = bindMatrixInverse * skinMatrix * bindMatrix;\n\tobjectNormal = vec4( skinMatrix * vec4( objectNormal, 0.0 ) ).xyz;\n\t#ifdef USE_TANGENT\n\t\tobjectTangent = vec4( skinMatrix * vec4( objectTangent, 0.0 ) ).xyz;\n\t#endif\n#endif",specularmap_fragment:"float specularStrength;\n#ifdef USE_SPECULARMAP\n\tvec4 texelSpecular = texture2D( specularMap, vSpecularMapUv );\n\tspecularStrength = texelSpecular.r;\n#else\n\tspecularStrength = 1.0;\n#endif",specularmap_pars_fragment:"#ifdef USE_SPECULARMAP\n\tuniform sampler2D specularMap;\n#endif",tonemapping_fragment:"#if defined( TONE_MAPPING )\n\tgl_FragColor.rgb = toneMapping( gl_FragColor.rgb );\n#endif",tonemapping_pars_fragment:"#ifndef saturate\n#define saturate( a ) clamp( a, 0.0, 1.0 )\n#endif\nuniform float toneMappingExposure;\nvec3 LinearToneMapping( vec3 color ) {\n\treturn saturate( toneMappingExposure * color );\n}\nvec3 ReinhardToneMapping( vec3 color ) {\n\tcolor *= toneMappingExposure;\n\treturn saturate( color / ( vec3( 1.0 ) + color ) );\n}\nvec3 OptimizedCineonToneMapping( vec3 color ) {\n\tcolor *= toneMappingExposure;\n\tcolor = max( vec3( 0.0 ), color - 0.004 );\n\treturn pow( ( color * ( 6.2 * color + 0.5 ) ) / ( color * ( 6.2 * color + 1.7 ) + 0.06 ), vec3( 2.2 ) );\n}\nvec3 RRTAndODTFit( vec3 v ) {\n\tvec3 a = v * ( v + 0.0245786 ) - 0.000090537;\n\tvec3 b = v * ( 0.983729 * v + 0.4329510 ) + 0.238081;\n\treturn a / b;\n}\nvec3 ACESFilmicToneMapping( vec3 color ) {\n\tconst mat3 ACESInputMat = mat3(\n\t\tvec3( 0.59719, 0.07600, 0.02840 ),\t\tvec3( 0.35458, 0.90834, 0.13383 ),\n\t\tvec3( 0.04823, 0.01566, 0.83777 )\n\t);\n\tconst mat3 ACESOutputMat = mat3(\n\t\tvec3( 1.60475, -0.10208, -0.00327 ),\t\tvec3( -0.53108, 1.10813, -0.07276 ),\n\t\tvec3( -0.07367, -0.00605, 1.07602 )\n\t);\n\tcolor *= toneMappingExposure / 0.6;\n\tcolor = ACESInputMat * color;\n\tcolor = RRTAndODTFit( color );\n\tcolor = ACESOutputMat * color;\n\treturn saturate( color );\n}\nconst mat3 LINEAR_REC2020_TO_LINEAR_SRGB = mat3(\n\tvec3( 1.6605, - 0.1246, - 0.0182 ),\n\tvec3( - 0.5876, 1.1329, - 0.1006 ),\n\tvec3( - 0.0728, - 0.0083, 1.1187 )\n);\nconst mat3 LINEAR_SRGB_TO_LINEAR_REC2020 = mat3(\n\tvec3( 0.6274, 0.0691, 0.0164 ),\n\tvec3( 0.3293, 0.9195, 0.0880 ),\n\tvec3( 0.0433, 0.0113, 0.8956 )\n);\nvec3 agxDefaultContrastApprox( vec3 x ) {\n\tvec3 x2 = x * x;\n\tvec3 x4 = x2 * x2;\n\treturn + 15.5 * x4 * x2\n\t\t- 40.14 * x4 * x\n\t\t+ 31.96 * x4\n\t\t- 6.868 * x2 * x\n\t\t+ 0.4298 * x2\n\t\t+ 0.1191 * x\n\t\t- 0.00232;\n}\nvec3 AgXToneMapping( vec3 color ) {\n\tconst mat3 AgXInsetMatrix = mat3(\n\t\tvec3( 0.856627153315983, 0.137318972929847, 0.11189821299995 ),\n\t\tvec3( 0.0951212405381588, 0.761241990602591, 0.0767994186031903 ),\n\t\tvec3( 0.0482516061458583, 0.101439036467562, 0.811302368396859 )\n\t);\n\tconst mat3 AgXOutsetMatrix = mat3(\n\t\tvec3( 1.1271005818144368, - 0.1413297634984383, - 0.14132976349843826 ),\n\t\tvec3( - 0.11060664309660323, 1.157823702216272, - 0.11060664309660294 ),\n\t\tvec3( - 0.016493938717834573, - 0.016493938717834257, 1.2519364065950405 )\n\t);\n\tconst float AgxMinEv = - 12.47393;\tconst float AgxMaxEv = 4.026069;\n\tcolor *= toneMappingExposure;\n\tcolor = LINEAR_SRGB_TO_LINEAR_REC2020 * color;\n\tcolor = AgXInsetMatrix * color;\n\tcolor = max( color, 1e-10 );\tcolor = log2( color );\n\tcolor = ( color - AgxMinEv ) / ( AgxMaxEv - AgxMinEv );\n\tcolor = clamp( color, 0.0, 1.0 );\n\tcolor = agxDefaultContrastApprox( color );\n\tcolor = AgXOutsetMatrix * color;\n\tcolor = pow( max( vec3( 0.0 ), color ), vec3( 2.2 ) );\n\tcolor = LINEAR_REC2020_TO_LINEAR_SRGB * color;\n\tcolor = clamp( color, 0.0, 1.0 );\n\treturn color;\n}\nvec3 NeutralToneMapping( vec3 color ) {\n\tconst float StartCompression = 0.8 - 0.04;\n\tconst float Desaturation = 0.15;\n\tcolor *= toneMappingExposure;\n\tfloat x = min( color.r, min( color.g, color.b ) );\n\tfloat offset = x < 0.08 ? x - 6.25 * x * x : 0.04;\n\tcolor -= offset;\n\tfloat peak = max( color.r, max( color.g, color.b ) );\n\tif ( peak < StartCompression ) return color;\n\tfloat d = 1. - StartCompression;\n\tfloat newPeak = 1. - d * d / ( peak + d - StartCompression );\n\tcolor *= newPeak / peak;\n\tfloat g = 1. - 1. / ( Desaturation * ( peak - newPeak ) + 1. );\n\treturn mix( color, vec3( newPeak ), g );\n}\nvec3 CustomToneMapping( vec3 color ) { return color; }",transmission_fragment:"#ifdef USE_TRANSMISSION\n\tmaterial.transmission = transmission;\n\tmaterial.transmissionAlpha = 1.0;\n\tmaterial.thickness = thickness;\n\tmaterial.attenuationDistance = attenuationDistance;\n\tmaterial.attenuationColor = attenuationColor;\n\t#ifdef USE_TRANSMISSIONMAP\n\t\tmaterial.transmission *= texture2D( transmissionMap, vTransmissionMapUv ).r;\n\t#endif\n\t#ifdef USE_THICKNESSMAP\n\t\tmaterial.thickness *= texture2D( thicknessMap, vThicknessMapUv ).g;\n\t#endif\n\tvec3 pos = vWorldPosition;\n\tvec3 v = normalize( cameraPosition - pos );\n\tvec3 n = inverseTransformDirection( normal, viewMatrix );\n\tvec4 transmitted = getIBLVolumeRefraction(\n\t\tn, v, material.roughness, material.diffuseColor, material.specularColor, material.specularF90,\n\t\tpos, modelMatrix, viewMatrix, projectionMatrix, material.dispersion, material.ior, material.thickness,\n\t\tmaterial.attenuationColor, material.attenuationDistance );\n\tmaterial.transmissionAlpha = mix( material.transmissionAlpha, transmitted.a, material.transmission );\n\ttotalDiffuse = mix( totalDiffuse, transmitted.rgb, material.transmission );\n#endif",transmission_pars_fragment:"#ifdef USE_TRANSMISSION\n\tuniform float transmission;\n\tuniform float thickness;\n\tuniform float attenuationDistance;\n\tuniform vec3 attenuationColor;\n\tuniform float transmissionLodBias;\n\t#ifdef USE_TRANSMISSIONMAP\n\t\tuniform sampler2D transmissionMap;\n\t#endif\n\t#ifdef USE_THICKNESSMAP\n\t\tuniform sampler2D thicknessMap;\n\t#endif\n\tuniform vec2 transmissionSamplerSize;\n\tuniform sampler2D transmissionSamplerMap;\n\tuniform mat4 modelMatrix;\n\tuniform mat4 projectionMatrix;\n\tvarying vec3 vWorldPosition;\n\tfloat w0( float a ) {\n\t\treturn ( 1.0 / 6.0 ) * ( a * ( a * ( - a + 3.0 ) - 3.0 ) + 1.0 );\n\t}\n\tfloat w1( float a ) {\n\t\treturn ( 1.0 / 6.0 ) * ( a * a * ( 3.0 * a - 6.0 ) + 4.0 );\n\t}\n\tfloat w2( float a ){\n\t\treturn ( 1.0 / 6.0 ) * ( a * ( a * ( - 3.0 * a + 3.0 ) + 3.0 ) + 1.0 );\n\t}\n\tfloat w3( float a ) {\n\t\treturn ( 1.0 / 6.0 ) * ( a * a * a );\n\t}\n\tfloat g0( float a ) {\n\t\treturn w0( a ) + w1( a );\n\t}\n\tfloat g1( float a ) {\n\t\treturn w2( a ) + w3( a );\n\t}\n\tfloat h0( float a ) {\n\t\treturn - 1.0 + w1( a ) / ( w0( a ) + w1( a ) );\n\t}\n\tfloat h1( float a ) {\n\t\treturn 1.0 + w3( a ) / ( w2( a ) + w3( a ) );\n\t}\n\tvec4 bicubic( sampler2D tex, vec2 uv, vec4 texelSize, float lod ) {\n\t\tuv = uv * texelSize.zw + 0.5;\n\t\tvec2 iuv = floor( uv );\n\t\tvec2 fuv = fract( uv );\n\t\tfloat g0x = g0( fuv.x );\n\t\tfloat g1x = g1( fuv.x );\n\t\tfloat h0x = h0( fuv.x );\n\t\tfloat h1x = h1( fuv.x );\n\t\tfloat h0y = h0( fuv.y );\n\t\tfloat h1y = h1( fuv.y );\n\t\tvec2 p0 = ( vec2( iuv.x + h0x, iuv.y + h0y ) - 0.5 ) * texelSize.xy;\n\t\tvec2 p1 = ( vec2( iuv.x + h1x, iuv.y + h0y ) - 0.5 ) * texelSize.xy;\n\t\tvec2 p2 = ( vec2( iuv.x + h0x, iuv.y + h1y ) - 0.5 ) * texelSize.xy;\n\t\tvec2 p3 = ( vec2( iuv.x + h1x, iuv.y + h1y ) - 0.5 ) * texelSize.xy;\n\t\treturn g0( fuv.y ) * ( g0x * textureLod( tex, p0, lod ) + g1x * textureLod( tex, p1, lod ) ) +\n\t\t\tg1( fuv.y ) * ( g0x * textureLod( tex, p2, lod ) + g1x * textureLod( tex, p3, lod ) );\n\t}\n\tvec4 textureBicubic( sampler2D sampler, vec2 uv, float lod ) {\n\t\tvec2 fLodSize = vec2( textureSize( sampler, int( lod ) ) );\n\t\tvec2 cLodSize = vec2( textureSize( sampler, int( lod + 1.0 ) ) );\n\t\tvec2 fLodSizeInv = 1.0 / fLodSize;\n\t\tvec2 cLodSizeInv = 1.0 / cLodSize;\n\t\tvec4 fSample = bicubic( sampler, uv, vec4( fLodSizeInv, fLodSize ), floor( lod ) );\n\t\tvec4 cSample = bicubic( sampler, uv, vec4( cLodSizeInv, cLodSize ), ceil( lod ) );\n\t\treturn mix( fSample, cSample, fract( lod ) );\n\t}\n\tvec3 getVolumeTransmissionRay( const in vec3 n, const in vec3 v, const in float thickness, const in float ior, const in mat4 modelMatrix ) {\n\t\tvec3 refractionVector = refract( - v, normalize( n ), 1.0 / ior );\n\t\tvec3 modelScale;\n\t\tmodelScale.x = length( vec3( modelMatrix[ 0 ].xyz ) );\n\t\tmodelScale.y = length( vec3( modelMatrix[ 1 ].xyz ) );\n\t\tmodelScale.z = length( vec3( modelMatrix[ 2 ].xyz ) );\n\t\treturn normalize( refractionVector ) * thickness * modelScale;\n\t}\n\tfloat applyIorToRoughness( const in float roughness, const in float ior ) {\n\t\treturn roughness * clamp( ior * 2.0 - 2.0, 0.0, 1.0 );\n\t}\n\tvec4 getTransmissionSample( const in vec2 fragCoord, const in float roughness, const in float ior ) {\n\t\tfloat lod = log2( transmissionSamplerSize.x ) * applyIorToRoughness( roughness, ior ) + transmissionLodBias;\n\t\treturn textureBicubic( transmissionSamplerMap, fragCoord.xy, lod );\n\t}\n\tvec3 volumeAttenuation( const in float transmissionDistance, const in vec3 attenuationColor, const in float attenuationDistance ) {\n\t\tif ( isinf( attenuationDistance ) ) {\n\t\t\treturn vec3( 1.0 );\n\t\t} else {\n\t\t\tvec3 attenuationCoefficient = -log( attenuationColor ) / attenuationDistance;\n\t\t\tvec3 transmittance = exp( - attenuationCoefficient * transmissionDistance );\t\t\treturn transmittance;\n\t\t}\n\t}\n\tvec4 getIBLVolumeRefraction( const in vec3 n, const in vec3 v, const in float roughness, const in vec3 diffuseColor,\n\t\tconst in vec3 specularColor, const in float specularF90, const in vec3 position, const in mat4 modelMatrix,\n\t\tconst in mat4 viewMatrix, const in mat4 projMatrix, const in float dispersion, const in float ior, const in float thickness,\n\t\tconst in vec3 attenuationColor, const in float attenuationDistance ) {\n\t\tvec4 transmittedLight;\n\t\tvec3 transmittance;\n\t\t#ifdef USE_DISPERSION\n\t\t\tfloat halfSpread = ( ior - 1.0 ) * 0.025 * dispersion;\n\t\t\tvec3 iors = vec3( ior - halfSpread, ior, ior + halfSpread );\n\t\t\tfor ( int i = 0; i < 3; i ++ ) {\n\t\t\t\tvec3 transmissionRay = getVolumeTransmissionRay( n, v, thickness, iors[ i ], modelMatrix );\n\t\t\t\tvec3 refractedRayExit = position + transmissionRay;\n\t\t\n\t\t\t\tvec4 ndcPos = projMatrix * viewMatrix * vec4( refractedRayExit, 1.0 );\n\t\t\t\tvec2 refractionCoords = ndcPos.xy / ndcPos.w;\n\t\t\t\trefractionCoords += 1.0;\n\t\t\t\trefractionCoords /= 2.0;\n\t\t\n\t\t\t\tvec4 transmissionSample = getTransmissionSample( refractionCoords, roughness, iors[ i ] );\n\t\t\t\ttransmittedLight[ i ] = transmissionSample[ i ];\n\t\t\t\ttransmittedLight.a += transmissionSample.a;\n\t\t\t\ttransmittance[ i ] = diffuseColor[ i ] * volumeAttenuation( length( transmissionRay ), attenuationColor, attenuationDistance )[ i ];\n\t\t\t}\n\t\t\ttransmittedLight.a /= 3.0;\n\t\t\n\t\t#else\n\t\t\n\t\t\tvec3 transmissionRay = getVolumeTransmissionRay( n, v, thickness, ior, modelMatrix );\n\t\t\tvec3 refractedRayExit = position + transmissionRay;\n\t\t\tvec4 ndcPos = projMatrix * viewMatrix * vec4( refractedRayExit, 1.0 );\n\t\t\tvec2 refractionCoords = ndcPos.xy / ndcPos.w;\n\t\t\trefractionCoords += 1.0;\n\t\t\trefractionCoords /= 2.0;\n\t\t\ttransmittedLight = getTransmissionSample( refractionCoords, roughness, ior );\n\t\t\ttransmittance = diffuseColor * volumeAttenuation( length( transmissionRay ), attenuationColor, attenuationDistance );\n\t\t\n\t\t#endif\n\t\tvec3 attenuatedColor = transmittance * transmittedLight.rgb;\n\t\tvec3 F = EnvironmentBRDF( n, v, specularColor, specularF90, roughness );\n\t\tfloat transmittanceFactor = ( transmittance.r + transmittance.g + transmittance.b ) / 3.0;\n\t\treturn vec4( ( 1.0 - F ) * attenuatedColor, 1.0 - ( 1.0 - transmittedLight.a ) * transmittanceFactor );\n\t}\n#endif",uv_pars_fragment:"#if defined( USE_UV ) || defined( USE_ANISOTROPY )\n\tvarying vec2 vUv;\n#endif\n#ifdef USE_MAP\n\tvarying vec2 vMapUv;\n#endif\n#ifdef USE_ALPHAMAP\n\tvarying vec2 vAlphaMapUv;\n#endif\n#ifdef USE_LIGHTMAP\n\tvarying vec2 vLightMapUv;\n#endif\n#ifdef USE_AOMAP\n\tvarying vec2 vAoMapUv;\n#endif\n#ifdef USE_BUMPMAP\n\tvarying vec2 vBumpMapUv;\n#endif\n#ifdef USE_NORMALMAP\n\tvarying vec2 vNormalMapUv;\n#endif\n#ifdef USE_EMISSIVEMAP\n\tvarying vec2 vEmissiveMapUv;\n#endif\n#ifdef USE_METALNESSMAP\n\tvarying vec2 vMetalnessMapUv;\n#endif\n#ifdef USE_ROUGHNESSMAP\n\tvarying vec2 vRoughnessMapUv;\n#endif\n#ifdef USE_ANISOTROPYMAP\n\tvarying vec2 vAnisotropyMapUv;\n#endif\n#ifdef USE_CLEARCOATMAP\n\tvarying vec2 vClearcoatMapUv;\n#endif\n#ifdef USE_CLEARCOAT_NORMALMAP\n\tvarying vec2 vClearcoatNormalMapUv;\n#endif\n#ifdef USE_CLEARCOAT_ROUGHNESSMAP\n\tvarying vec2 vClearcoatRoughnessMapUv;\n#endif\n#ifdef USE_IRIDESCENCEMAP\n\tvarying vec2 vIridescenceMapUv;\n#endif\n#ifdef USE_IRIDESCENCE_THICKNESSMAP\n\tvarying vec2 vIridescenceThicknessMapUv;\n#endif\n#ifdef USE_SHEEN_COLORMAP\n\tvarying vec2 vSheenColorMapUv;\n#endif\n#ifdef USE_SHEEN_ROUGHNESSMAP\n\tvarying vec2 vSheenRoughnessMapUv;\n#endif\n#ifdef USE_SPECULARMAP\n\tvarying vec2 vSpecularMapUv;\n#endif\n#ifdef USE_SPECULAR_COLORMAP\n\tvarying vec2 vSpecularColorMapUv;\n#endif\n#ifdef USE_SPECULAR_INTENSITYMAP\n\tvarying vec2 vSpecularIntensityMapUv;\n#endif\n#ifdef USE_TRANSMISSIONMAP\n\tuniform mat3 transmissionMapTransform;\n\tvarying vec2 vTransmissionMapUv;\n#endif\n#ifdef USE_THICKNESSMAP\n\tuniform mat3 thicknessMapTransform;\n\tvarying vec2 vThicknessMapUv;\n#endif",uv_pars_vertex:"#if defined( USE_UV ) || defined( USE_ANISOTROPY )\n\tvarying vec2 vUv;\n#endif\n#ifdef USE_MAP\n\tuniform mat3 mapTransform;\n\tvarying vec2 vMapUv;\n#endif\n#ifdef USE_ALPHAMAP\n\tuniform mat3 alphaMapTransform;\n\tvarying vec2 vAlphaMapUv;\n#endif\n#ifdef USE_LIGHTMAP\n\tuniform mat3 lightMapTransform;\n\tvarying vec2 vLightMapUv;\n#endif\n#ifdef USE_AOMAP\n\tuniform mat3 aoMapTransform;\n\tvarying vec2 vAoMapUv;\n#endif\n#ifdef USE_BUMPMAP\n\tuniform mat3 bumpMapTransform;\n\tvarying vec2 vBumpMapUv;\n#endif\n#ifdef USE_NORMALMAP\n\tuniform mat3 normalMapTransform;\n\tvarying vec2 vNormalMapUv;\n#endif\n#ifdef USE_DISPLACEMENTMAP\n\tuniform mat3 displacementMapTransform;\n\tvarying vec2 vDisplacementMapUv;\n#endif\n#ifdef USE_EMISSIVEMAP\n\tuniform mat3 emissiveMapTransform;\n\tvarying vec2 vEmissiveMapUv;\n#endif\n#ifdef USE_METALNESSMAP\n\tuniform mat3 metalnessMapTransform;\n\tvarying vec2 vMetalnessMapUv;\n#endif\n#ifdef USE_ROUGHNESSMAP\n\tuniform mat3 roughnessMapTransform;\n\tvarying vec2 vRoughnessMapUv;\n#endif\n#ifdef USE_ANISOTROPYMAP\n\tuniform mat3 anisotropyMapTransform;\n\tvarying vec2 vAnisotropyMapUv;\n#endif\n#ifdef USE_CLEARCOATMAP\n\tuniform mat3 clearcoatMapTransform;\n\tvarying vec2 vClearcoatMapUv;\n#endif\n#ifdef USE_CLEARCOAT_NORMALMAP\n\tuniform mat3 clearcoatNormalMapTransform;\n\tvarying vec2 vClearcoatNormalMapUv;\n#endif\n#ifdef USE_CLEARCOAT_ROUGHNESSMAP\n\tuniform mat3 clearcoatRoughnessMapTransform;\n\tvarying vec2 vClearcoatRoughnessMapUv;\n#endif\n#ifdef USE_SHEEN_COLORMAP\n\tuniform mat3 sheenColorMapTransform;\n\tvarying vec2 vSheenColorMapUv;\n#endif\n#ifdef USE_SHEEN_ROUGHNESSMAP\n\tuniform mat3 sheenRoughnessMapTransform;\n\tvarying vec2 vSheenRoughnessMapUv;\n#endif\n#ifdef USE_IRIDESCENCEMAP\n\tuniform mat3 iridescenceMapTransform;\n\tvarying vec2 vIridescenceMapUv;\n#endif\n#ifdef USE_IRIDESCENCE_THICKNESSMAP\n\tuniform mat3 iridescenceThicknessMapTransform;\n\tvarying vec2 vIridescenceThicknessMapUv;\n#endif\n#ifdef USE_SPECULARMAP\n\tuniform mat3 specularMapTransform;\n\tvarying vec2 vSpecularMapUv;\n#endif\n#ifdef USE_SPECULAR_COLORMAP\n\tuniform mat3 specularColorMapTransform;\n\tvarying vec2 vSpecularColorMapUv;\n#endif\n#ifdef USE_SPECULAR_INTENSITYMAP\n\tuniform mat3 specularIntensityMapTransform;\n\tvarying vec2 vSpecularIntensityMapUv;\n#endif\n#ifdef USE_TRANSMISSIONMAP\n\tuniform mat3 transmissionMapTransform;\n\tvarying vec2 vTransmissionMapUv;\n#endif\n#ifdef USE_THICKNESSMAP\n\tuniform mat3 thicknessMapTransform;\n\tvarying vec2 vThicknessMapUv;\n#endif",uv_vertex:"#if defined( USE_UV ) || defined( USE_ANISOTROPY )\n\tvUv = vec3( uv, 1 ).xy;\n#endif\n#ifdef USE_MAP\n\tvMapUv = ( mapTransform * vec3( MAP_UV, 1 ) ).xy;\n#endif\n#ifdef USE_ALPHAMAP\n\tvAlphaMapUv = ( alphaMapTransform * vec3( ALPHAMAP_UV, 1 ) ).xy;\n#endif\n#ifdef USE_LIGHTMAP\n\tvLightMapUv = ( lightMapTransform * vec3( LIGHTMAP_UV, 1 ) ).xy;\n#endif\n#ifdef USE_AOMAP\n\tvAoMapUv = ( aoMapTransform * vec3( AOMAP_UV, 1 ) ).xy;\n#endif\n#ifdef USE_BUMPMAP\n\tvBumpMapUv = ( bumpMapTransform * vec3( BUMPMAP_UV, 1 ) ).xy;\n#endif\n#ifdef USE_NORMALMAP\n\tvNormalMapUv = ( normalMapTransform * vec3( NORMALMAP_UV, 1 ) ).xy;\n#endif\n#ifdef USE_DISPLACEMENTMAP\n\tvDisplacementMapUv = ( displacementMapTransform * vec3( DISPLACEMENTMAP_UV, 1 ) ).xy;\n#endif\n#ifdef USE_EMISSIVEMAP\n\tvEmissiveMapUv = ( emissiveMapTransform * vec3( EMISSIVEMAP_UV, 1 ) ).xy;\n#endif\n#ifdef USE_METALNESSMAP\n\tvMetalnessMapUv = ( metalnessMapTransform * vec3( METALNESSMAP_UV, 1 ) ).xy;\n#endif\n#ifdef USE_ROUGHNESSMAP\n\tvRoughnessMapUv = ( roughnessMapTransform * vec3( ROUGHNESSMAP_UV, 1 ) ).xy;\n#endif\n#ifdef USE_ANISOTROPYMAP\n\tvAnisotropyMapUv = ( anisotropyMapTransform * vec3( ANISOTROPYMAP_UV, 1 ) ).xy;\n#endif\n#ifdef USE_CLEARCOATMAP\n\tvClearcoatMapUv = ( clearcoatMapTransform * vec3( CLEARCOATMAP_UV, 1 ) ).xy;\n#endif\n#ifdef USE_CLEARCOAT_NORMALMAP\n\tvClearcoatNormalMapUv = ( clearcoatNormalMapTransform * vec3( CLEARCOAT_NORMALMAP_UV, 1 ) ).xy;\n#endif\n#ifdef USE_CLEARCOAT_ROUGHNESSMAP\n\tvClearcoatRoughnessMapUv = ( clearcoatRoughnessMapTransform * vec3( CLEARCOAT_ROUGHNESSMAP_UV, 1 ) ).xy;\n#endif\n#ifdef USE_IRIDESCENCEMAP\n\tvIridescenceMapUv = ( iridescenceMapTransform * vec3( IRIDESCENCEMAP_UV, 1 ) ).xy;\n#endif\n#ifdef USE_IRIDESCENCE_THICKNESSMAP\n\tvIridescenceThicknessMapUv = ( iridescenceThicknessMapTransform * vec3( IRIDESCENCE_THICKNESSMAP_UV, 1 ) ).xy;\n#endif\n#ifdef USE_SHEEN_COLORMAP\n\tvSheenColorMapUv = ( sheenColorMapTransform * vec3( SHEEN_COLORMAP_UV, 1 ) ).xy;\n#endif\n#ifdef USE_SHEEN_ROUGHNESSMAP\n\tvSheenRoughnessMapUv = ( sheenRoughnessMapTransform * vec3( SHEEN_ROUGHNESSMAP_UV, 1 ) ).xy;\n#endif\n#ifdef USE_SPECULARMAP\n\tvSpecularMapUv = ( specularMapTransform * vec3( SPECULARMAP_UV, 1 ) ).xy;\n#endif\n#ifdef USE_SPECULAR_COLORMAP\n\tvSpecularColorMapUv = ( specularColorMapTransform * vec3( SPECULAR_COLORMAP_UV, 1 ) ).xy;\n#endif\n#ifdef USE_SPECULAR_INTENSITYMAP\n\tvSpecularIntensityMapUv = ( specularIntensityMapTransform * vec3( SPECULAR_INTENSITYMAP_UV, 1 ) ).xy;\n#endif\n#ifdef USE_TRANSMISSIONMAP\n\tvTransmissionMapUv = ( transmissionMapTransform * vec3( TRANSMISSIONMAP_UV, 1 ) ).xy;\n#endif\n#ifdef USE_THICKNESSMAP\n\tvThicknessMapUv = ( thicknessMapTransform * vec3( THICKNESSMAP_UV, 1 ) ).xy;\n#endif",worldpos_vertex:"#if defined( USE_ENVMAP ) || defined( DISTANCE ) || defined ( USE_SHADOWMAP ) || defined ( USE_TRANSMISSION ) || NUM_SPOT_LIGHT_COORDS > 0\n\tvec4 worldPosition = vec4( transformed, 1.0 );\n\t#ifdef USE_BATCHING\n\t\tworldPosition = batchingMatrix * worldPosition;\n\t#endif\n\t#ifdef USE_INSTANCING\n\t\tworldPosition = instanceMatrix * worldPosition;\n\t#endif\n\tworldPosition = modelMatrix * worldPosition;\n#endif",background_vert:"varying vec2 vUv;\nuniform mat3 uvTransform;\nvoid main() {\n\tvUv = ( uvTransform * vec3( uv, 1 ) ).xy;\n\tgl_Position = vec4( position.xy, 1.0, 1.0 );\n}",background_frag:"uniform sampler2D t2D;\nuniform float backgroundIntensity;\nvarying vec2 vUv;\nvoid main() {\n\tvec4 texColor = texture2D( t2D, vUv );\n\t#ifdef DECODE_VIDEO_TEXTURE\n\t\ttexColor = vec4( mix( pow( texColor.rgb * 0.9478672986 + vec3( 0.0521327014 ), vec3( 2.4 ) ), texColor.rgb * 0.0773993808, vec3( lessThanEqual( texColor.rgb, vec3( 0.04045 ) ) ) ), texColor.w );\n\t#endif\n\ttexColor.rgb *= backgroundIntensity;\n\tgl_FragColor = texColor;\n\t#include \n\t#include \n}",backgroundCube_vert:"varying vec3 vWorldDirection;\n#include \nvoid main() {\n\tvWorldDirection = transformDirection( position, modelMatrix );\n\t#include \n\t#include \n\tgl_Position.z = gl_Position.w;\n}",backgroundCube_frag:"#ifdef ENVMAP_TYPE_CUBE\n\tuniform samplerCube envMap;\n#elif defined( ENVMAP_TYPE_CUBE_UV )\n\tuniform sampler2D envMap;\n#endif\nuniform float flipEnvMap;\nuniform float backgroundBlurriness;\nuniform float backgroundIntensity;\nuniform mat3 backgroundRotation;\nvarying vec3 vWorldDirection;\n#include \nvoid main() {\n\t#ifdef ENVMAP_TYPE_CUBE\n\t\tvec4 texColor = textureCube( envMap, backgroundRotation * vec3( flipEnvMap * vWorldDirection.x, vWorldDirection.yz ) );\n\t#elif defined( ENVMAP_TYPE_CUBE_UV )\n\t\tvec4 texColor = textureCubeUV( envMap, backgroundRotation * vWorldDirection, backgroundBlurriness );\n\t#else\n\t\tvec4 texColor = vec4( 0.0, 0.0, 0.0, 1.0 );\n\t#endif\n\ttexColor.rgb *= backgroundIntensity;\n\tgl_FragColor = texColor;\n\t#include \n\t#include \n}",cube_vert:"varying vec3 vWorldDirection;\n#include \nvoid main() {\n\tvWorldDirection = transformDirection( position, modelMatrix );\n\t#include \n\t#include \n\tgl_Position.z = gl_Position.w;\n}",cube_frag:"uniform samplerCube tCube;\nuniform float tFlip;\nuniform float opacity;\nvarying vec3 vWorldDirection;\nvoid main() {\n\tvec4 texColor = textureCube( tCube, vec3( tFlip * vWorldDirection.x, vWorldDirection.yz ) );\n\tgl_FragColor = texColor;\n\tgl_FragColor.a *= opacity;\n\t#include \n\t#include \n}",depth_vert:"#include \n#include \n#include \n#include \n#include \n#include \n#include \n#include \nvarying vec2 vHighPrecisionZW;\nvoid main() {\n\t#include \n\t#include \n\t#include \n\t#include \n\t#ifdef USE_DISPLACEMENTMAP\n\t\t#include \n\t\t#include \n\t\t#include \n\t#endif\n\t#include \n\t#include \n\t#include \n\t#include \n\t#include \n\t#include \n\t#include \n\tvHighPrecisionZW = gl_Position.zw;\n}",depth_frag:"#if DEPTH_PACKING == 3200\n\tuniform float opacity;\n#endif\n#include \n#include \n#include \n#include \n#include \n#include \n#include \n#include \n#include \nvarying vec2 vHighPrecisionZW;\nvoid main() {\n\tvec4 diffuseColor = vec4( 1.0 );\n\t#include \n\t#if DEPTH_PACKING == 3200\n\t\tdiffuseColor.a = opacity;\n\t#endif\n\t#include \n\t#include \n\t#include \n\t#include \n\t#include \n\tfloat fragCoordZ = 0.5 * vHighPrecisionZW[0] / vHighPrecisionZW[1] + 0.5;\n\t#if DEPTH_PACKING == 3200\n\t\tgl_FragColor = vec4( vec3( 1.0 - fragCoordZ ), opacity );\n\t#elif DEPTH_PACKING == 3201\n\t\tgl_FragColor = packDepthToRGBA( fragCoordZ );\n\t#endif\n}",distanceRGBA_vert:"#define DISTANCE\nvarying vec3 vWorldPosition;\n#include \n#include \n#include \n#include \n#include \n#include \n#include \nvoid main() {\n\t#include \n\t#include \n\t#include \n\t#include \n\t#ifdef USE_DISPLACEMENTMAP\n\t\t#include \n\t\t#include \n\t\t#include \n\t#endif\n\t#include \n\t#include \n\t#include \n\t#include \n\t#include \n\t#include \n\t#include \n\tvWorldPosition = worldPosition.xyz;\n}",distanceRGBA_frag:"#define DISTANCE\nuniform vec3 referencePosition;\nuniform float nearDistance;\nuniform float farDistance;\nvarying vec3 vWorldPosition;\n#include \n#include \n#include \n#include \n#include \n#include \n#include \n#include \nvoid main () {\n\tvec4 diffuseColor = vec4( 1.0 );\n\t#include \n\t#include \n\t#include \n\t#include \n\t#include \n\tfloat dist = length( vWorldPosition - referencePosition );\n\tdist = ( dist - nearDistance ) / ( farDistance - nearDistance );\n\tdist = saturate( dist );\n\tgl_FragColor = packDepthToRGBA( dist );\n}",equirect_vert:"varying vec3 vWorldDirection;\n#include \nvoid main() {\n\tvWorldDirection = transformDirection( position, modelMatrix );\n\t#include \n\t#include \n}",equirect_frag:"uniform sampler2D tEquirect;\nvarying vec3 vWorldDirection;\n#include \nvoid main() {\n\tvec3 direction = normalize( vWorldDirection );\n\tvec2 sampleUV = equirectUv( direction );\n\tgl_FragColor = texture2D( tEquirect, sampleUV );\n\t#include \n\t#include \n}",linedashed_vert:"uniform float scale;\nattribute float lineDistance;\nvarying float vLineDistance;\n#include \n#include \n#include \n#include \n#include \n#include \n#include \nvoid main() {\n\tvLineDistance = scale * lineDistance;\n\t#include \n\t#include \n\t#include \n\t#include \n\t#include \n\t#include \n\t#include \n\t#include \n\t#include \n\t#include \n}",linedashed_frag:"uniform vec3 diffuse;\nuniform float opacity;\nuniform float dashSize;\nuniform float totalSize;\nvarying float vLineDistance;\n#include \n#include \n#include \n#include \n#include \n#include \n#include \nvoid main() {\n\tvec4 diffuseColor = vec4( diffuse, opacity );\n\t#include \n\tif ( mod( vLineDistance, totalSize ) > dashSize ) {\n\t\tdiscard;\n\t}\n\tvec3 outgoingLight = vec3( 0.0 );\n\t#include \n\t#include \n\t#include \n\toutgoingLight = diffuseColor.rgb;\n\t#include \n\t#include \n\t#include \n\t#include \n\t#include \n}",meshbasic_vert:"#include \n#include \n#include \n#include \n#include \n#include \n#include \n#include \n#include \n#include \nvoid main() {\n\t#include \n\t#include \n\t#include \n\t#include \n\t#include \n\t#if defined ( USE_ENVMAP ) || defined ( USE_SKINNING )\n\t\t#include \n\t\t#include \n\t\t#include \n\t\t#include \n\t\t#include \n\t#endif\n\t#include \n\t#include \n\t#include \n\t#include \n\t#include \n\t#include \n\t#include \n\t#include \n\t#include \n}",meshbasic_frag:"uniform vec3 diffuse;\nuniform float opacity;\n#ifndef FLAT_SHADED\n\tvarying vec3 vNormal;\n#endif\n#include \n#include \n#include \n#include \n#include \n#include \n#include \n#include \n#include \n#include \n#include \n#include \n#include \n#include \n#include \n#include \nvoid main() {\n\tvec4 diffuseColor = vec4( diffuse, opacity );\n\t#include \n\t#include \n\t#include \n\t#include \n\t#include \n\t#include \n\t#include \n\t#include \n\tReflectedLight reflectedLight = ReflectedLight( vec3( 0.0 ), vec3( 0.0 ), vec3( 0.0 ), vec3( 0.0 ) );\n\t#ifdef USE_LIGHTMAP\n\t\tvec4 lightMapTexel = texture2D( lightMap, vLightMapUv );\n\t\treflectedLight.indirectDiffuse += lightMapTexel.rgb * lightMapIntensity * RECIPROCAL_PI;\n\t#else\n\t\treflectedLight.indirectDiffuse += vec3( 1.0 );\n\t#endif\n\t#include \n\treflectedLight.indirectDiffuse *= diffuseColor.rgb;\n\tvec3 outgoingLight = reflectedLight.indirectDiffuse;\n\t#include \n\t#include \n\t#include \n\t#include \n\t#include \n\t#include \n\t#include \n}",meshlambert_vert:"#define LAMBERT\nvarying vec3 vViewPosition;\n#include \n#include \n#include \n#include \n#include \n#include \n#include \n#include \n#include \n#include \n#include \n#include \n#include \nvoid main() {\n\t#include \n\t#include \n\t#include \n\t#include \n\t#include \n\t#include \n\t#include \n\t#include \n\t#include \n\t#include \n\t#include \n\t#include \n\t#include \n\t#include \n\t#include \n\t#include \n\t#include \n\t#include \n\tvViewPosition = - mvPosition.xyz;\n\t#include \n\t#include \n\t#include \n\t#include \n}",meshlambert_frag:"#define LAMBERT\nuniform vec3 diffuse;\nuniform vec3 emissive;\nuniform float opacity;\n#include \n#include \n#include \n#include \n#include \n#include \n#include \n#include \n#include \n#include \n#include \n#include \n#include \n#include \n#include \n#include \n#include \n#include \n#include \n#include \n#include \n#include \n#include \n#include \n#include \nvoid main() {\n\tvec4 diffuseColor = vec4( diffuse, opacity );\n\t#include \n\tReflectedLight reflectedLight = ReflectedLight( vec3( 0.0 ), vec3( 0.0 ), vec3( 0.0 ), vec3( 0.0 ) );\n\tvec3 totalEmissiveRadiance = emissive;\n\t#include \n\t#include \n\t#include \n\t#include \n\t#include \n\t#include \n\t#include \n\t#include \n\t#include \n\t#include \n\t#include \n\t#include \n\t#include \n\t#include \n\t#include \n\tvec3 outgoingLight = reflectedLight.directDiffuse + reflectedLight.indirectDiffuse + totalEmissiveRadiance;\n\t#include \n\t#include \n\t#include \n\t#include \n\t#include \n\t#include \n\t#include \n}",meshmatcap_vert:"#define MATCAP\nvarying vec3 vViewPosition;\n#include \n#include \n#include \n#include \n#include \n#include \n#include \n#include \n#include \n#include \n#include \nvoid main() {\n\t#include \n\t#include \n\t#include \n\t#include \n\t#include \n\t#include \n\t#include \n\t#include \n\t#include \n\t#include \n\t#include \n\t#include \n\t#include \n\t#include \n\t#include \n\t#include \n\t#include \n\t#include \n\t#include \n\tvViewPosition = - mvPosition.xyz;\n}",meshmatcap_frag:"#define MATCAP\nuniform vec3 diffuse;\nuniform float opacity;\nuniform sampler2D matcap;\nvarying vec3 vViewPosition;\n#include \n#include \n#include \n#include \n#include \n#include \n#include \n#include \n#include \n#include \n#include \n#include \n#include \n#include \nvoid main() {\n\tvec4 diffuseColor = vec4( diffuse, opacity );\n\t#include \n\t#include \n\t#include \n\t#include \n\t#include \n\t#include \n\t#include \n\t#include \n\t#include \n\tvec3 viewDir = normalize( vViewPosition );\n\tvec3 x = normalize( vec3( viewDir.z, 0.0, - viewDir.x ) );\n\tvec3 y = cross( viewDir, x );\n\tvec2 uv = vec2( dot( x, normal ), dot( y, normal ) ) * 0.495 + 0.5;\n\t#ifdef USE_MATCAP\n\t\tvec4 matcapColor = texture2D( matcap, uv );\n\t#else\n\t\tvec4 matcapColor = vec4( vec3( mix( 0.2, 0.8, uv.y ) ), 1.0 );\n\t#endif\n\tvec3 outgoingLight = diffuseColor.rgb * matcapColor.rgb;\n\t#include \n\t#include \n\t#include \n\t#include \n\t#include \n\t#include \n}",meshnormal_vert:"#define NORMAL\n#if defined( FLAT_SHADED ) || defined( USE_BUMPMAP ) || defined( USE_NORMALMAP_TANGENTSPACE )\n\tvarying vec3 vViewPosition;\n#endif\n#include \n#include \n#include \n#include \n#include \n#include \n#include \n#include \n#include \nvoid main() {\n\t#include \n\t#include \n\t#include \n\t#include \n\t#include \n\t#include \n\t#include \n\t#include \n\t#include \n\t#include \n\t#include \n\t#include \n\t#include \n\t#include \n\t#include \n\t#include \n#if defined( FLAT_SHADED ) || defined( USE_BUMPMAP ) || defined( USE_NORMALMAP_TANGENTSPACE )\n\tvViewPosition = - mvPosition.xyz;\n#endif\n}",meshnormal_frag:"#define NORMAL\nuniform float opacity;\n#if defined( FLAT_SHADED ) || defined( USE_BUMPMAP ) || defined( USE_NORMALMAP_TANGENTSPACE )\n\tvarying vec3 vViewPosition;\n#endif\n#include \n#include \n#include \n#include \n#include \n#include \n#include \nvoid main() {\n\tvec4 diffuseColor = vec4( 0.0, 0.0, 0.0, opacity );\n\t#include \n\t#include \n\t#include \n\t#include \n\tgl_FragColor = vec4( packNormalToRGB( normal ), diffuseColor.a );\n\t#ifdef OPAQUE\n\t\tgl_FragColor.a = 1.0;\n\t#endif\n}",meshphong_vert:"#define PHONG\nvarying vec3 vViewPosition;\n#include \n#include \n#include \n#include \n#include \n#include \n#include \n#include \n#include \n#include \n#include \n#include \n#include \nvoid main() {\n\t#include \n\t#include \n\t#include \n\t#include \n\t#include \n\t#include \n\t#include \n\t#include \n\t#include \n\t#include \n\t#include \n\t#include \n\t#include \n\t#include \n\t#include \n\t#include \n\t#include \n\t#include \n\tvViewPosition = - mvPosition.xyz;\n\t#include \n\t#include \n\t#include \n\t#include \n}",meshphong_frag:"#define PHONG\nuniform vec3 diffuse;\nuniform vec3 emissive;\nuniform vec3 specular;\nuniform float shininess;\nuniform float opacity;\n#include \n#include \n#include \n#include \n#include \n#include \n#include \n#include \n#include \n#include \n#include \n#include \n#include \n#include \n#include \n#include \n#include \n#include \n#include \n#include \n#include \n#include \n#include \n#include \n#include \nvoid main() {\n\tvec4 diffuseColor = vec4( diffuse, opacity );\n\t#include \n\tReflectedLight reflectedLight = ReflectedLight( vec3( 0.0 ), vec3( 0.0 ), vec3( 0.0 ), vec3( 0.0 ) );\n\tvec3 totalEmissiveRadiance = emissive;\n\t#include \n\t#include \n\t#include \n\t#include \n\t#include \n\t#include \n\t#include \n\t#include \n\t#include \n\t#include \n\t#include \n\t#include \n\t#include \n\t#include \n\t#include \n\tvec3 outgoingLight = reflectedLight.directDiffuse + reflectedLight.indirectDiffuse + reflectedLight.directSpecular + reflectedLight.indirectSpecular + totalEmissiveRadiance;\n\t#include \n\t#include \n\t#include \n\t#include \n\t#include \n\t#include \n\t#include \n}",meshphysical_vert:"#define STANDARD\nvarying vec3 vViewPosition;\n#ifdef USE_TRANSMISSION\n\tvarying vec3 vWorldPosition;\n#endif\n#include \n#include \n#include \n#include \n#include \n#include \n#include \n#include \n#include \n#include \n#include \n#include \nvoid main() {\n\t#include \n\t#include \n\t#include \n\t#include \n\t#include \n\t#include \n\t#include \n\t#include \n\t#include \n\t#include \n\t#include \n\t#include \n\t#include \n\t#include \n\t#include \n\t#include \n\t#include \n\t#include \n\tvViewPosition = - mvPosition.xyz;\n\t#include \n\t#include \n\t#include \n#ifdef USE_TRANSMISSION\n\tvWorldPosition = worldPosition.xyz;\n#endif\n}",meshphysical_frag:"#define STANDARD\n#ifdef PHYSICAL\n\t#define IOR\n\t#define USE_SPECULAR\n#endif\nuniform vec3 diffuse;\nuniform vec3 emissive;\nuniform float roughness;\nuniform float metalness;\nuniform float opacity;\n#ifdef IOR\n\tuniform float ior;\n#endif\n#ifdef USE_SPECULAR\n\tuniform float specularIntensity;\n\tuniform vec3 specularColor;\n\t#ifdef USE_SPECULAR_COLORMAP\n\t\tuniform sampler2D specularColorMap;\n\t#endif\n\t#ifdef USE_SPECULAR_INTENSITYMAP\n\t\tuniform sampler2D specularIntensityMap;\n\t#endif\n#endif\n#ifdef USE_CLEARCOAT\n\tuniform float clearcoat;\n\tuniform float clearcoatRoughness;\n#endif\n#ifdef USE_DISPERSION\n\tuniform float dispersion;\n#endif\n#ifdef USE_IRIDESCENCE\n\tuniform float iridescence;\n\tuniform float iridescenceIOR;\n\tuniform float iridescenceThicknessMinimum;\n\tuniform float iridescenceThicknessMaximum;\n#endif\n#ifdef USE_SHEEN\n\tuniform vec3 sheenColor;\n\tuniform float sheenRoughness;\n\t#ifdef USE_SHEEN_COLORMAP\n\t\tuniform sampler2D sheenColorMap;\n\t#endif\n\t#ifdef USE_SHEEN_ROUGHNESSMAP\n\t\tuniform sampler2D sheenRoughnessMap;\n\t#endif\n#endif\n#ifdef USE_ANISOTROPY\n\tuniform vec2 anisotropyVector;\n\t#ifdef USE_ANISOTROPYMAP\n\t\tuniform sampler2D anisotropyMap;\n\t#endif\n#endif\nvarying vec3 vViewPosition;\n#include \n#include \n#include \n#include \n#include \n#include \n#include \n#include \n#include \n#include \n#include \n#include \n#include \n#include \n#include \n#include \n#include \n#include \n#include \n#include \n#include \n#include \n#include \n#include \n#include \n#include \n#include \n#include \n#include \n#include \nvoid main() {\n\tvec4 diffuseColor = vec4( diffuse, opacity );\n\t#include \n\tReflectedLight reflectedLight = ReflectedLight( vec3( 0.0 ), vec3( 0.0 ), vec3( 0.0 ), vec3( 0.0 ) );\n\tvec3 totalEmissiveRadiance = emissive;\n\t#include \n\t#include \n\t#include \n\t#include \n\t#include \n\t#include \n\t#include \n\t#include \n\t#include \n\t#include \n\t#include \n\t#include \n\t#include \n\t#include \n\t#include \n\t#include \n\t#include \n\t#include \n\tvec3 totalDiffuse = reflectedLight.directDiffuse + reflectedLight.indirectDiffuse;\n\tvec3 totalSpecular = reflectedLight.directSpecular + reflectedLight.indirectSpecular;\n\t#include \n\tvec3 outgoingLight = totalDiffuse + totalSpecular + totalEmissiveRadiance;\n\t#ifdef USE_SHEEN\n\t\tfloat sheenEnergyComp = 1.0 - 0.157 * max3( material.sheenColor );\n\t\toutgoingLight = outgoingLight * sheenEnergyComp + sheenSpecularDirect + sheenSpecularIndirect;\n\t#endif\n\t#ifdef USE_CLEARCOAT\n\t\tfloat dotNVcc = saturate( dot( geometryClearcoatNormal, geometryViewDir ) );\n\t\tvec3 Fcc = F_Schlick( material.clearcoatF0, material.clearcoatF90, dotNVcc );\n\t\toutgoingLight = outgoingLight * ( 1.0 - material.clearcoat * Fcc ) + ( clearcoatSpecularDirect + clearcoatSpecularIndirect ) * material.clearcoat;\n\t#endif\n\t#include \n\t#include \n\t#include \n\t#include \n\t#include \n\t#include \n}",meshtoon_vert:"#define TOON\nvarying vec3 vViewPosition;\n#include \n#include \n#include \n#include \n#include \n#include \n#include \n#include \n#include \n#include \n#include \n#include \nvoid main() {\n\t#include \n\t#include \n\t#include \n\t#include \n\t#include \n\t#include \n\t#include \n\t#include \n\t#include \n\t#include \n\t#include \n\t#include \n\t#include \n\t#include \n\t#include \n\t#include \n\t#include \n\t#include \n\tvViewPosition = - mvPosition.xyz;\n\t#include \n\t#include \n\t#include \n}",meshtoon_frag:"#define TOON\nuniform vec3 diffuse;\nuniform vec3 emissive;\nuniform float opacity;\n#include \n#include \n#include \n#include \n#include \n#include \n#include \n#include \n#include \n#include \n#include \n#include \n#include \n#include \n#include \n#include \n#include \n#include \n#include \n#include \n#include \n#include \n#include \nvoid main() {\n\tvec4 diffuseColor = vec4( diffuse, opacity );\n\t#include \n\tReflectedLight reflectedLight = ReflectedLight( vec3( 0.0 ), vec3( 0.0 ), vec3( 0.0 ), vec3( 0.0 ) );\n\tvec3 totalEmissiveRadiance = emissive;\n\t#include \n\t#include \n\t#include \n\t#include \n\t#include \n\t#include \n\t#include \n\t#include \n\t#include \n\t#include \n\t#include \n\t#include \n\t#include \n\t#include \n\tvec3 outgoingLight = reflectedLight.directDiffuse + reflectedLight.indirectDiffuse + totalEmissiveRadiance;\n\t#include \n\t#include \n\t#include \n\t#include \n\t#include \n\t#include \n}",points_vert:"uniform float size;\nuniform float scale;\n#include \n#include \n#include \n#include \n#include \n#include \n#ifdef USE_POINTS_UV\n\tvarying vec2 vUv;\n\tuniform mat3 uvTransform;\n#endif\nvoid main() {\n\t#ifdef USE_POINTS_UV\n\t\tvUv = ( uvTransform * vec3( uv, 1 ) ).xy;\n\t#endif\n\t#include \n\t#include \n\t#include \n\t#include \n\t#include \n\t#include \n\tgl_PointSize = size;\n\t#ifdef USE_SIZEATTENUATION\n\t\tbool isPerspective = isPerspectiveMatrix( projectionMatrix );\n\t\tif ( isPerspective ) gl_PointSize *= ( scale / - mvPosition.z );\n\t#endif\n\t#include \n\t#include \n\t#include \n\t#include \n}",points_frag:"uniform vec3 diffuse;\nuniform float opacity;\n#include \n#include \n#include \n#include \n#include \n#include \n#include \n#include \nvoid main() {\n\tvec4 diffuseColor = vec4( diffuse, opacity );\n\t#include \n\tvec3 outgoingLight = vec3( 0.0 );\n\t#include \n\t#include \n\t#include \n\t#include \n\t#include \n\toutgoingLight = diffuseColor.rgb;\n\t#include \n\t#include \n\t#include \n\t#include \n\t#include \n}",shadow_vert:"#include \n#include \n#include \n#include \n#include \n#include \n#include \nvoid main() {\n\t#include \n\t#include \n\t#include \n\t#include \n\t#include \n\t#include \n\t#include \n\t#include \n\t#include \n\t#include \n\t#include \n\t#include \n\t#include \n\t#include \n\t#include \n}",shadow_frag:"uniform vec3 color;\nuniform float opacity;\n#include \n#include \n#include \n#include \n#include \n#include \n#include \n#include \nvoid main() {\n\t#include \n\tgl_FragColor = vec4( color, opacity * ( 1.0 - getShadowMask() ) );\n\t#include \n\t#include \n\t#include \n}",sprite_vert:"uniform float rotation;\nuniform vec2 center;\n#include \n#include \n#include \n#include \n#include \nvoid main() {\n\t#include \n\tvec4 mvPosition = modelViewMatrix * vec4( 0.0, 0.0, 0.0, 1.0 );\n\tvec2 scale;\n\tscale.x = length( vec3( modelMatrix[ 0 ].x, modelMatrix[ 0 ].y, modelMatrix[ 0 ].z ) );\n\tscale.y = length( vec3( modelMatrix[ 1 ].x, modelMatrix[ 1 ].y, modelMatrix[ 1 ].z ) );\n\t#ifndef USE_SIZEATTENUATION\n\t\tbool isPerspective = isPerspectiveMatrix( projectionMatrix );\n\t\tif ( isPerspective ) scale *= - mvPosition.z;\n\t#endif\n\tvec2 alignedPosition = ( position.xy - ( center - vec2( 0.5 ) ) ) * scale;\n\tvec2 rotatedPosition;\n\trotatedPosition.x = cos( rotation ) * alignedPosition.x - sin( rotation ) * alignedPosition.y;\n\trotatedPosition.y = sin( rotation ) * alignedPosition.x + cos( rotation ) * alignedPosition.y;\n\tmvPosition.xy += rotatedPosition;\n\tgl_Position = projectionMatrix * mvPosition;\n\t#include \n\t#include \n\t#include \n}",sprite_frag:"uniform vec3 diffuse;\nuniform float opacity;\n#include \n#include \n#include \n#include \n#include \n#include \n#include \n#include \n#include \nvoid main() {\n\tvec4 diffuseColor = vec4( diffuse, opacity );\n\t#include \n\tvec3 outgoingLight = vec3( 0.0 );\n\t#include \n\t#include \n\t#include \n\t#include \n\t#include \n\toutgoingLight = diffuseColor.rgb;\n\t#include \n\t#include \n\t#include \n\t#include \n}"},gs={common:{diffuse:{value:new Ji(16777215)},opacity:{value:1},map:{value:null},mapTransform:{value:new tr},alphaMap:{value:null},alphaMapTransform:{value:new tr},alphaMapChannel:{value:0},alphaTest:{value:0}},specularmap:{specularMap:{value:null},specularMapTransform:{value:new tr}},envmap:{envMap:{value:null},envMapRotation:{value:new tr},flipEnvMap:{value:-1},reflectivity:{value:1},ior:{value:1.5},refractionRatio:{value:.98}},aomap:{aoMap:{value:null},aoMapIntensity:{value:1},aoMapTransform:{value:new tr}},lightmap:{lightMap:{value:null},lightMapIntensity:{value:1},lightMapTransform:{value:new tr}},bumpmap:{bumpMap:{value:null},bumpMapTransform:{value:new tr},bumpScale:{value:1}},normalmap:{normalMap:{value:null},normalMapTransform:{value:new tr},normalScale:{value:new er(1,1)}},displacementmap:{displacementMap:{value:null},displacementMapTransform:{value:new tr},displacementScale:{value:1},displacementBias:{value:0}},emissivemap:{emissiveMap:{value:null},emissiveMapTransform:{value:new tr}},metalnessmap:{metalnessMap:{value:null},metalnessMapTransform:{value:new tr}},roughnessmap:{roughnessMap:{value:null},roughnessMapTransform:{value:new tr}},gradientmap:{gradientMap:{value:null}},fog:{fogDensity:{value:25e-5},fogNear:{value:1},fogFar:{value:2e3},fogColor:{value:new Ji(16777215)}},lights:{ambientLightColor:{value:[]},lightProbe:{value:[]},directionalLights:{value:[],properties:{direction:{},color:{}}},directionalLightShadows:{value:[],properties:{shadowBias:{},shadowNormalBias:{},shadowRadius:{},shadowMapSize:{}}},directionalShadowMap:{value:[]},directionalShadowMatrix:{value:[]},spotLights:{value:[],properties:{color:{},position:{},direction:{},distance:{},coneCos:{},penumbraCos:{},decay:{}}},spotLightShadows:{value:[],properties:{shadowBias:{},shadowNormalBias:{},shadowRadius:{},shadowMapSize:{}}},spotLightMap:{value:[]},spotShadowMap:{value:[]},spotLightMatrix:{value:[]},pointLights:{value:[],properties:{color:{},position:{},decay:{},distance:{}}},pointLightShadows:{value:[],properties:{shadowBias:{},shadowNormalBias:{},shadowRadius:{},shadowMapSize:{},shadowCameraNear:{},shadowCameraFar:{}}},pointShadowMap:{value:[]},pointShadowMatrix:{value:[]},hemisphereLights:{value:[],properties:{direction:{},skyColor:{},groundColor:{}}},rectAreaLights:{value:[],properties:{color:{},position:{},width:{},height:{}}},ltc_1:{value:null},ltc_2:{value:null}},points:{diffuse:{value:new Ji(16777215)},opacity:{value:1},size:{value:1},scale:{value:1},map:{value:null},alphaMap:{value:null},alphaMapTransform:{value:new tr},alphaMapChannel:{value:0},alphaTest:{value:0},uvTransform:{value:new tr}},sprite:{diffuse:{value:new Ji(16777215)},opacity:{value:1},center:{value:new er(.5,.5)},rotation:{value:0},map:{value:null},mapTransform:{value:new tr},alphaMap:{value:null},alphaMapChannel:{value:0},alphaMapTransform:{value:new tr},alphaTest:{value:0}}},vs={basic:{uniforms:qa([gs.common,gs.specularmap,gs.envmap,gs.aomap,gs.lightmap,gs.fog]),vertexShader:As.meshbasic_vert,fragmentShader:As.meshbasic_frag},lambert:{uniforms:qa([gs.common,gs.specularmap,gs.envmap,gs.aomap,gs.lightmap,gs.emissivemap,gs.bumpmap,gs.normalmap,gs.displacementmap,gs.fog,gs.lights,{emissive:{value:new Ji(0)}}]),vertexShader:As.meshlambert_vert,fragmentShader:As.meshlambert_frag},phong:{uniforms:qa([gs.common,gs.specularmap,gs.envmap,gs.aomap,gs.lightmap,gs.emissivemap,gs.bumpmap,gs.normalmap,gs.displacementmap,gs.fog,gs.lights,{emissive:{value:new Ji(0)},specular:{value:new Ji(1118481)},shininess:{value:30}}]),vertexShader:As.meshphong_vert,fragmentShader:As.meshphong_frag},standard:{uniforms:qa([gs.common,gs.envmap,gs.aomap,gs.lightmap,gs.emissivemap,gs.bumpmap,gs.normalmap,gs.displacementmap,gs.roughnessmap,gs.metalnessmap,gs.fog,gs.lights,{emissive:{value:new Ji(0)},roughness:{value:1},metalness:{value:0},envMapIntensity:{value:1}}]),vertexShader:As.meshphysical_vert,fragmentShader:As.meshphysical_frag},toon:{uniforms:qa([gs.common,gs.aomap,gs.lightmap,gs.emissivemap,gs.bumpmap,gs.normalmap,gs.displacementmap,gs.gradientmap,gs.fog,gs.lights,{emissive:{value:new Ji(0)}}]),vertexShader:As.meshtoon_vert,fragmentShader:As.meshtoon_frag},matcap:{uniforms:qa([gs.common,gs.bumpmap,gs.normalmap,gs.displacementmap,gs.fog,{matcap:{value:null}}]),vertexShader:As.meshmatcap_vert,fragmentShader:As.meshmatcap_frag},points:{uniforms:qa([gs.points,gs.fog]),vertexShader:As.points_vert,fragmentShader:As.points_frag},dashed:{uniforms:qa([gs.common,gs.fog,{scale:{value:1},dashSize:{value:1},totalSize:{value:2}}]),vertexShader:As.linedashed_vert,fragmentShader:As.linedashed_frag},depth:{uniforms:qa([gs.common,gs.displacementmap]),vertexShader:As.depth_vert,fragmentShader:As.depth_frag},normal:{uniforms:qa([gs.common,gs.bumpmap,gs.normalmap,gs.displacementmap,{opacity:{value:1}}]),vertexShader:As.meshnormal_vert,fragmentShader:As.meshnormal_frag},sprite:{uniforms:qa([gs.sprite,gs.fog]),vertexShader:As.sprite_vert,fragmentShader:As.sprite_frag},background:{uniforms:{uvTransform:{value:new tr},t2D:{value:null},backgroundIntensity:{value:1}},vertexShader:As.background_vert,fragmentShader:As.background_frag},backgroundCube:{uniforms:{envMap:{value:null},flipEnvMap:{value:-1},backgroundBlurriness:{value:0},backgroundIntensity:{value:1},backgroundRotation:{value:new tr}},vertexShader:As.backgroundCube_vert,fragmentShader:As.backgroundCube_frag},cube:{uniforms:{tCube:{value:null},tFlip:{value:-1},opacity:{value:1}},vertexShader:As.cube_vert,fragmentShader:As.cube_frag},equirect:{uniforms:{tEquirect:{value:null}},vertexShader:As.equirect_vert,fragmentShader:As.equirect_frag},distanceRGBA:{uniforms:qa([gs.common,gs.displacementmap,{referencePosition:{value:new Pr},nearDistance:{value:1},farDistance:{value:1e3}}]),vertexShader:As.distanceRGBA_vert,fragmentShader:As.distanceRGBA_frag},shadow:{uniforms:qa([gs.lights,gs.fog,{color:{value:new Ji(0)},opacity:{value:1}}]),vertexShader:As.shadow_vert,fragmentShader:As.shadow_frag}};vs.physical={uniforms:qa([vs.standard.uniforms,{clearcoat:{value:0},clearcoatMap:{value:null},clearcoatMapTransform:{value:new tr},clearcoatNormalMap:{value:null},clearcoatNormalMapTransform:{value:new tr},clearcoatNormalScale:{value:new er(1,1)},clearcoatRoughness:{value:0},clearcoatRoughnessMap:{value:null},clearcoatRoughnessMapTransform:{value:new tr},dispersion:{value:0},iridescence:{value:0},iridescenceMap:{value:null},iridescenceMapTransform:{value:new tr},iridescenceIOR:{value:1.3},iridescenceThicknessMinimum:{value:100},iridescenceThicknessMaximum:{value:400},iridescenceThicknessMap:{value:null},iridescenceThicknessMapTransform:{value:new tr},sheen:{value:0},sheenColor:{value:new Ji(0)},sheenColorMap:{value:null},sheenColorMapTransform:{value:new tr},sheenRoughness:{value:1},sheenRoughnessMap:{value:null},sheenRoughnessMapTransform:{value:new tr},transmission:{value:0},transmissionLodBias:{value:0},transmissionMap:{value:null},transmissionMapTransform:{value:new tr},transmissionSamplerSize:{value:new er},transmissionSamplerMap:{value:null},thickness:{value:0},thicknessMap:{value:null},thicknessMapTransform:{value:new tr},attenuationDistance:{value:0},attenuationColor:{value:new Ji(0)},specularColor:{value:new Ji(1,1,1)},specularColorMap:{value:null},specularColorMapTransform:{value:new tr},specularIntensity:{value:1},specularIntensityMap:{value:null},specularIntensityMapTransform:{value:new tr},anisotropyVector:{value:new er},anisotropyMap:{value:null},anisotropyMapTransform:{value:new tr}}]),vertexShader:As.meshphysical_vert,fragmentShader:As.meshphysical_frag};const ys={r:0,b:0,g:0},bs=new vi,_s=new li;function xs(e,t,n,r,i,a,s){const o=new Ji(0);let l,c,u=!0===a?0:1,h=null,d=0,p=null;function A(e){let r=!0===e.isScene?e.background:null;return r&&r.isTexture&&(r=(e.backgroundBlurriness>0?n:t).get(r)),r}function g(t,n){t.getRGB(ys,Xa(e)),r.buffers.color.setClear(ys.r,ys.g,ys.b,n,s)}return{getClearColor:function(){return o},setClearColor:function(e,t=1){o.set(e),u=t,g(o,u)},getClearAlpha:function(){return u},setClearAlpha:function(e){u=e,g(o,u)},render:function(t){let n=!1;const i=A(t);null===i?g(o,u):i&&i.isColor&&(g(i,1),n=!0);const a=e.xr.getEnvironmentBlendMode();"additive"===a?r.buffers.color.setClear(0,0,0,1,s):"alpha-blend"===a&&r.buffers.color.setClear(0,0,0,0,s),(e.autoClear||n)&&(r.buffers.depth.setTest(!0),r.buffers.depth.setMask(!0),r.buffers.color.setMask(!0),e.clear(e.autoClearColor,e.autoClearDepth,e.autoClearStencil))},addToRenderList:function(t,n){const r=A(n);r&&(r.isCubeTexture||r.mapping===me)?(void 0===c&&(c=new za(new ja(1,1,1),new Ka({name:"BackgroundCubeMaterial",uniforms:Wa(vs.backgroundCube.uniforms),vertexShader:vs.backgroundCube.vertexShader,fragmentShader:vs.backgroundCube.fragmentShader,side:m,depthTest:!1,depthWrite:!1,fog:!1})),c.geometry.deleteAttribute("normal"),c.geometry.deleteAttribute("uv"),c.onBeforeRender=function(e,t,n){this.matrixWorld.copyPosition(n.matrixWorld)},Object.defineProperty(c.material,"envMap",{get:function(){return this.uniforms.envMap.value}}),i.update(c)),bs.copy(n.backgroundRotation),bs.x*=-1,bs.y*=-1,bs.z*=-1,r.isCubeTexture&&!1===r.isRenderTargetTexture&&(bs.y*=-1,bs.z*=-1),c.material.uniforms.envMap.value=r,c.material.uniforms.flipEnvMap.value=r.isCubeTexture&&!1===r.isRenderTargetTexture?-1:1,c.material.uniforms.backgroundBlurriness.value=n.backgroundBlurriness,c.material.uniforms.backgroundIntensity.value=n.backgroundIntensity,c.material.uniforms.backgroundRotation.value.setFromMatrix4(_s.makeRotationFromEuler(bs)),c.material.toneMapped=fr.getTransfer(r.colorSpace)!==tn,h===r&&d===r.version&&p===e.toneMapping||(c.material.needsUpdate=!0,h=r,d=r.version,p=e.toneMapping),c.layers.enableAll(),t.unshift(c,c.geometry,c.material,0,0,null)):r&&r.isTexture&&(void 0===l&&(l=new za(new ms(2,2),new Ka({name:"BackgroundMaterial",uniforms:Wa(vs.background.uniforms),vertexShader:vs.background.vertexShader,fragmentShader:vs.background.fragmentShader,side:f,depthTest:!1,depthWrite:!1,fog:!1})),l.geometry.deleteAttribute("normal"),Object.defineProperty(l.material,"map",{get:function(){return this.uniforms.t2D.value}}),i.update(l)),l.material.uniforms.t2D.value=r,l.material.uniforms.backgroundIntensity.value=n.backgroundIntensity,l.material.toneMapped=fr.getTransfer(r.colorSpace)!==tn,!0===r.matrixAutoUpdate&&r.updateMatrix(),l.material.uniforms.uvTransform.value.copy(r.matrix),h===r&&d===r.version&&p===e.toneMapping||(l.material.needsUpdate=!0,h=r,d=r.version,p=e.toneMapping),l.layers.enableAll(),t.unshift(l,l.geometry,l.material,0,0,null))}}}function Es(e,t){const n=e.getParameter(e.MAX_VERTEX_ATTRIBS),r={},i=c(null);let a=i,s=!1;function o(t){return e.bindVertexArray(t)}function l(t){return e.deleteVertexArray(t)}function c(e){const t=[],r=[],i=[];for(let e=0;e=0){const n=i[t];let r=s[t];if(void 0===r&&("instanceMatrix"===t&&e.instanceMatrix&&(r=e.instanceMatrix),"instanceColor"===t&&e.instanceColor&&(r=e.instanceColor)),void 0===n)return!0;if(n.attribute!==r)return!0;if(r&&n.data!==r.data)return!0;o++}return a.attributesNum!==o||a.index!==r}(n,m,l,A),g&&function(e,t,n,r){const i={},s=t.attributes;let o=0;const l=n.getAttributes();for(const t in l)if(l[t].location>=0){let n=s[t];void 0===n&&("instanceMatrix"===t&&e.instanceMatrix&&(n=e.instanceMatrix),"instanceColor"===t&&e.instanceColor&&(n=e.instanceColor));const r={};r.attribute=n,n&&n.data&&(r.data=n.data),i[t]=r,o++}a.attributes=i,a.attributesNum=o,a.index=r}(n,m,l,A),null!==A&&t.update(A,e.ELEMENT_ARRAY_BUFFER),(g||s)&&(s=!1,function(n,r,i,a){u();const s=a.attributes,o=i.getAttributes(),l=r.defaultAttributeValues;for(const r in o){const i=o[r];if(i.location>=0){let o=s[r];if(void 0===o&&("instanceMatrix"===r&&n.instanceMatrix&&(o=n.instanceMatrix),"instanceColor"===r&&n.instanceColor&&(o=n.instanceColor)),void 0!==o){const r=o.normalized,s=o.itemSize,l=t.get(o);if(void 0===l)continue;const c=l.buffer,u=l.type,p=l.bytesPerElement,m=u===e.INT||u===e.UNSIGNED_INT||o.gpuType===Le;if(o.isInterleavedBufferAttribute){const t=o.data,l=t.stride,A=o.offset;if(t.isInstancedInterleavedBuffer){for(let e=0;e0&&e.getShaderPrecisionFormat(e.FRAGMENT_SHADER,e.HIGH_FLOAT).precision>0)return"highp";t="mediump"}return"mediump"===t&&e.getShaderPrecisionFormat(e.VERTEX_SHADER,e.MEDIUM_FLOAT).precision>0&&e.getShaderPrecisionFormat(e.FRAGMENT_SHADER,e.MEDIUM_FLOAT).precision>0?"mediump":"lowp"}let s=void 0!==n.precision?n.precision:"highp";const o=a(s);o!==s&&(console.warn("THREE.WebGLRenderer:",s,"not supported, using",o,"instead."),s=o);const l=!0===n.logarithmicDepthBuffer,c=e.getParameter(e.MAX_TEXTURE_IMAGE_UNITS),u=e.getParameter(e.MAX_VERTEX_TEXTURE_IMAGE_UNITS);return{isWebGL2:!0,getMaxAnisotropy:function(){if(void 0!==i)return i;if(!0===t.has("EXT_texture_filter_anisotropic")){const n=t.get("EXT_texture_filter_anisotropic");i=e.getParameter(n.MAX_TEXTURE_MAX_ANISOTROPY_EXT)}else i=0;return i},getMaxPrecision:a,textureFormatReadable:function(t){return t===ze||r.convert(t)===e.getParameter(e.IMPLEMENTATION_COLOR_READ_FORMAT)},textureTypeReadable:function(n){const i=n===De&&(t.has("EXT_color_buffer_half_float")||t.has("EXT_color_buffer_float"));return!(n!==Te&&r.convert(n)!==e.getParameter(e.IMPLEMENTATION_COLOR_READ_TYPE)&&n!==Ue&&!i)},precision:s,logarithmicDepthBuffer:l,maxTextures:c,maxVertexTextures:u,maxTextureSize:e.getParameter(e.MAX_TEXTURE_SIZE),maxCubemapSize:e.getParameter(e.MAX_CUBE_MAP_TEXTURE_SIZE),maxAttributes:e.getParameter(e.MAX_VERTEX_ATTRIBS),maxVertexUniforms:e.getParameter(e.MAX_VERTEX_UNIFORM_VECTORS),maxVaryings:e.getParameter(e.MAX_VARYING_VECTORS),maxFragmentUniforms:e.getParameter(e.MAX_FRAGMENT_UNIFORM_VECTORS),vertexTextures:u>0,maxSamples:e.getParameter(e.MAX_SAMPLES)}}function Ss(e){const t=this;let n=null,r=0,i=!1,a=!1;const s=new cs,o=new tr,l={value:null,needsUpdate:!1};function c(e,n,r,i){const a=null!==e?e.length:0;let c=null;if(0!==a){if(c=l.value,!0!==i||null===c){const t=r+4*a,i=n.matrixWorldInverse;o.getNormalMatrix(i),(null===c||c.length0),t.numPlanes=r,t.numIntersection=0);else{const e=a?0:r,t=4*e;let i=f.clippingState||null;l.value=i,i=c(h,o,t,u);for(let e=0;e!==t;++e)i[e]=n[e];f.clippingState=i,this.numIntersection=d?this.numPlanes:0,this.numPlanes+=e}}}function Cs(e){let t=new WeakMap;function n(e,t){return t===pe?e.mapping=he:t===fe&&(e.mapping=de),e}function r(e){const n=e.target;n.removeEventListener("dispose",r);const i=t.get(n);void 0!==i&&(t.delete(n),i.dispose())}return{get:function(i){if(i&&i.isTexture){const a=i.mapping;if(a===pe||a===fe){if(t.has(i))return n(t.get(i).texture,i.mapping);{const a=i.image;if(a&&a.height>0){const s=new as(a.height);return s.fromEquirectangularTexture(e,i),t.set(i,s),i.addEventListener("dispose",r),n(s.texture,i.mapping)}return null}}}return i},dispose:function(){t=new WeakMap}}}class Is extends Ja{constructor(e=-1,t=1,n=1,r=-1,i=.1,a=2e3){super(),this.isOrthographicCamera=!0,this.type="OrthographicCamera",this.zoom=1,this.view=null,this.left=e,this.right=t,this.top=n,this.bottom=r,this.near=i,this.far=a,this.updateProjectionMatrix()}copy(e,t){return super.copy(e,t),this.left=e.left,this.right=e.right,this.top=e.top,this.bottom=e.bottom,this.near=e.near,this.far=e.far,this.zoom=e.zoom,this.view=null===e.view?null:Object.assign({},e.view),this}setViewOffset(e,t,n,r,i,a){null===this.view&&(this.view={enabled:!0,fullWidth:1,fullHeight:1,offsetX:0,offsetY:0,width:1,height:1}),this.view.enabled=!0,this.view.fullWidth=e,this.view.fullHeight=t,this.view.offsetX=n,this.view.offsetY=r,this.view.width=i,this.view.height=a,this.updateProjectionMatrix()}clearViewOffset(){null!==this.view&&(this.view.enabled=!1),this.updateProjectionMatrix()}updateProjectionMatrix(){const e=(this.right-this.left)/(2*this.zoom),t=(this.top-this.bottom)/(2*this.zoom),n=(this.right+this.left)/2,r=(this.top+this.bottom)/2;let i=n-e,a=n+e,s=r+t,o=r-t;if(null!==this.view&&this.view.enabled){const e=(this.right-this.left)/this.view.fullWidth/this.zoom,t=(this.top-this.bottom)/this.view.fullHeight/this.zoom;i+=e*this.view.offsetX,a=i+e*this.view.width,s-=t*this.view.offsetY,o=s-t*this.view.height}this.projectionMatrix.makeOrthographic(i,a,s,o,this.near,this.far,this.coordinateSystem),this.projectionMatrixInverse.copy(this.projectionMatrix).invert()}toJSON(e){const t=super.toJSON(e);return 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,null!==this.view&&(t.object.view=Object.assign({},this.view)),t}}const Ts=[.125,.215,.35,.446,.526,.582],Bs=new Is,Rs=new Ji;let Ps=null,Ls=0,Os=0,Us=!1;const Ds=(1+Math.sqrt(5))/2,Fs=1/Ds,Ns=[new Pr(-Ds,Fs,0),new Pr(Ds,Fs,0),new Pr(-Fs,0,Ds),new Pr(Fs,0,Ds),new Pr(0,Ds,-Fs),new Pr(0,Ds,Fs),new Pr(-1,1,-1),new Pr(1,1,-1),new Pr(-1,1,1),new Pr(1,1,1)],ks=[1,-1,1,1,1,1],Qs=[1,1,1,-1,-1,-1];class Gs{constructor(e){this._backgroundMaterial=new ta({name:"PMREM.Background",side:m,depthWrite:!1,depthTest:!1}),this._boxGeometry=new ja,this._renderer=e,this._pingPongRenderTarget=null,this._cubeUVRenderTargetMap=new Map,this._lodMax=0,this._cubeSize=0,this._lodPlanes=[],this._sizeLods=[],this._sigmas=[],this._blurMaterial=null,this._cubemapMaterial=null,this._equirectMaterial=null,this._compileMaterial(this._blurMaterial)}static setCubeTextureSize(e){Gs.cubeFaceSize=e}static setRenderTargetSampleCount(e){Gs.renderTargetSampleCount=e}static setHDREnabled(e){Gs.enableHDR=e}fromScene(e,t=0,n=.1,r=100,i=null){Ps=this._renderer.getRenderTarget(),Ls=this._renderer.getActiveCubeFace(),Os=this._renderer.getActiveMipmapLevel(),Us=this._renderer.xr.enabled,this._renderer.xr.enabled=!1,this._setSize(Gs.cubeFaceSize);const a=i||this._allocateTargets(e,!0);return this._sceneToCubeUV(e,n,r,a),t>0&&this._blur(a,0,0,t),this._applyPMREM(a),this._cleanup(a),a}fromEquirectangular(e,t=null){return this._fromTexture(e,t)}fromCubemap(e,t=null){return this._fromTexture(e,t)}compileCubemapShader(){null===this._cubemapMaterial&&(this._cubemapMaterial=js(),this._compileMaterial(this._cubemapMaterial))}compileEquirectangularShader(){null===this._equirectMaterial&&(this._equirectMaterial=Hs(),this._compileMaterial(this._equirectMaterial))}dispose(){this._dispose(),null!==this._cubemapMaterial&&this._cubemapMaterial.dispose(),null!==this._equirectMaterial&&this._equirectMaterial.dispose(),this._backgroundMaterial.dispose(),this._boxGeometry.dispose()}_setSize(e){this._lodMax=Math.floor(Math.log2(e)),this._cubeSize=Math.pow(2,this._lodMax)}_dispose(){this._disposeBlurResources(),this._disposeCubeUVRenderTarget()}_disposeBlurResources(){null!==this._blurMaterial&&this._blurMaterial.dispose(),null!==this._pingPongRenderTarget&&this._pingPongRenderTarget.dispose();for(let e=0;e-1?Ue:De,a=Gs.enableHDR?i:Te,s={magFilter:we,minFilter:we,generateMipmaps:!1,type:a,format:ze,colorSpace:Jt,depthBuffer:!1};let o=null;e?(o=this._cubeUVRenderTargetMap.get(e),null==o||o.width!==n||o.height!==r||o.texture.type!==a||o.samples!==Gs.renderTargetSampleCount||o.depthBuffer!==t?(null!=o&&o.dispose(),o=Vs(n,r,s),o.depthBuffer=t,o.samples=Gs.renderTargetSampleCount,this._cubeUVRenderTargetMap.set(e,o)):(this._renderer.setRenderTarget(o),this._renderer.clear(),o.scissorTest=!0)):(o=Vs(n,r,s),o.depthBuffer=t);const l=o;if(null===this._pingPongRenderTarget||this._pingPongRenderTarget.width!==n||this._pingPongRenderTarget.height!==r||this._pingPongRenderTarget.texture.type!==a){null!==this._pingPongRenderTarget&&this._disposeBlurResources(),this._pingPongRenderTarget=Vs(n,r,s);const{_lodMax:e}=this;({sizeLods:this._sizeLods,lodPlanes:this._lodPlanes,sigmas:this._sigmas}=function(e){const t=[],n=[],r=[];let i=e;const a=e-4+1+Ts.length;for(let s=0;se-4?o=Ts[s-e+4-1]:0===s&&(o=0),r.push(o);const l=1/(a-2),c=-l,u=1+l,h=[c,c,u,c,u,u,c,c,u,u,c,u],d=6,p=6,f=3,m=2,A=1,g=new Float32Array(f*p*d),v=new Float32Array(m*p*d),y=new Float32Array(A*p*d);for(let e=0;e2?0:-1,r=[t,n,0,t+2/3,n,0,t+2/3,n+1,0,t,n,0,t+2/3,n+1,0,t,n+1,0];g.set(r,f*p*e),v.set(h,m*p*e);const i=[e,e,e,e,e,e];y.set(i,A*p*e)}const b=new Ma;b.setAttribute("position",new la(g,f)),b.setAttribute("uv",new la(v,m)),b.setAttribute("faceIndex",new la(y,A)),t.push(b),i>4&&i--}return{lodPlanes:t,sizeLods:n,sigmas:r}}(e)),this._blurMaterial=function(e,t,n){const r=new Float32Array(20),i=new Pr(0,1,0);return new Ka({name:"SphericalGaussianBlur",defines:{n:20,CUBEUV_TEXEL_WIDTH:1/t,CUBEUV_TEXEL_HEIGHT:1/n,CUBEUV_MAX_MIP:`${e}.0`},uniforms:{envMap:{value:null},samples:{value:1},weights:{value:r},latitudinal:{value:!1},dTheta:{value:0},mipInt:{value:0},poleAxis:{value:i}},vertexShader:"\n\n\t\tprecision mediump float;\n\t\tprecision mediump int;\n\n\t\tattribute float faceIndex;\n\n\t\tvarying vec3 vOutputDirection;\n\n\t\t// RH coordinate system; PMREM face-indexing convention\n\t\tvec3 getDirection( vec2 uv, float face ) {\n\n\t\t\tuv = 2.0 * uv - 1.0;\n\n\t\t\tvec3 direction = vec3( uv, 1.0 );\n\n\t\t\tif ( face == 0.0 ) {\n\n\t\t\t\tdirection = direction.zyx; // ( 1, v, u ) pos x\n\n\t\t\t} else if ( face == 1.0 ) {\n\n\t\t\t\tdirection = direction.xzy;\n\t\t\t\tdirection.xz *= -1.0; // ( -u, 1, -v ) pos y\n\n\t\t\t} else if ( face == 2.0 ) {\n\n\t\t\t\tdirection.x *= -1.0; // ( -u, v, 1 ) pos z\n\n\t\t\t} else if ( face == 3.0 ) {\n\n\t\t\t\tdirection = direction.zyx;\n\t\t\t\tdirection.xz *= -1.0; // ( -1, v, -u ) neg x\n\n\t\t\t} else if ( face == 4.0 ) {\n\n\t\t\t\tdirection = direction.xzy;\n\t\t\t\tdirection.xy *= -1.0; // ( -u, -1, v ) neg y\n\n\t\t\t} else if ( face == 5.0 ) {\n\n\t\t\t\tdirection.z *= -1.0; // ( u, v, -1 ) neg z\n\n\t\t\t}\n\n\t\t\treturn direction;\n\n\t\t}\n\n\t\tvoid main() {\n\n\t\t\tvOutputDirection = getDirection( uv, faceIndex );\n\t\t\tgl_Position = vec4( position, 1.0 );\n\n\t\t}\n\t",fragmentShader:"\n\n\t\t\tprecision mediump float;\n\t\t\tprecision mediump int;\n\n\t\t\tvarying vec3 vOutputDirection;\n\n\t\t\tuniform sampler2D envMap;\n\t\t\tuniform int samples;\n\t\t\tuniform float weights[ n ];\n\t\t\tuniform bool latitudinal;\n\t\t\tuniform float dTheta;\n\t\t\tuniform float mipInt;\n\t\t\tuniform vec3 poleAxis;\n\n\t\t\t#define ENVMAP_TYPE_CUBE_UV\n\t\t\t#include \n\n\t\t\tvec3 getSample( float theta, vec3 axis ) {\n\n\t\t\t\tfloat cosTheta = cos( theta );\n\t\t\t\t// Rodrigues' axis-angle rotation\n\t\t\t\tvec3 sampleDirection = vOutputDirection * cosTheta\n\t\t\t\t\t+ cross( axis, vOutputDirection ) * sin( theta )\n\t\t\t\t\t+ axis * dot( axis, vOutputDirection ) * ( 1.0 - cosTheta );\n\n\t\t\t\treturn bilinearCubeUV( envMap, sampleDirection, mipInt );\n\n\t\t\t}\n\n\t\t\tvoid main() {\n\n\t\t\t\tvec3 axis = latitudinal ? poleAxis : cross( poleAxis, vOutputDirection );\n\n\t\t\t\tif ( all( equal( axis, vec3( 0.0 ) ) ) ) {\n\n\t\t\t\t\taxis = vec3( vOutputDirection.z, 0.0, - vOutputDirection.x );\n\n\t\t\t\t}\n\n\t\t\t\taxis = normalize( axis );\n\n\t\t\t\tgl_FragColor = vec4( 0.0, 0.0, 0.0, 1.0 );\n\t\t\t\tgl_FragColor.rgb += weights[ 0 ] * getSample( 0.0, axis );\n\n\t\t\t\tfor ( int i = 1; i < n; i++ ) {\n\n\t\t\t\t\tif ( i >= samples ) {\n\n\t\t\t\t\t\tbreak;\n\n\t\t\t\t\t}\n\n\t\t\t\t\tfloat theta = dTheta * float( i );\n\t\t\t\t\tgl_FragColor.rgb += weights[ i ] * getSample( -1.0 * theta, axis );\n\t\t\t\t\tgl_FragColor.rgb += weights[ i ] * getSample( theta, axis );\n\n\t\t\t\t}\n\n\t\t\t}\n\t\t",blending:g,depthTest:!1,depthWrite:!1})}(e,n,r)}return l}_compileMaterial(e){const t=new za(this._lodPlanes[0],e);this._renderer.compile(t,Bs)}_sceneToCubeUV(e,t,n,r){const i=new ts(90,1,t,n),a=ks,s=Qs,o=this._renderer,l=o.autoClear,c=o.toneMapping;o.getClearColor(Rs),o.toneMapping=ee,o.autoClear=!1;const u=this._backgroundMaterial,h=new za(this._boxGeometry,u);let d=!1;const p=e.background;p?p.isColor&&(u.color.copy(p),e.background=null,d=!0):(u.color.copy(Rs),d=!0);for(let t=0;t<6;t++){const n=t%3;0===n?(i.up.set(0,a[t],0),i.lookAt(s[t],0,0)):1===n?(i.up.set(0,0,a[t]),i.lookAt(0,s[t],0)):(i.up.set(0,a[t],0),i.lookAt(0,0,s[t]));const l=this._cubeSize;zs(r,n*l,t>2?l:0,l,l),o.setRenderTarget(r),d&&o.render(h,i),o.render(e,i)}o.toneMapping=c,o.autoClear=l,e.background=p}_textureToCubeUV(e,t){const n=this._renderer,r=e.mapping===he||e.mapping===de;r?(null===this._cubemapMaterial&&(this._cubemapMaterial=js()),this._cubemapMaterial.uniforms.flipEnvMap.value=!1===e.isRenderTargetTexture?-1:1):null===this._equirectMaterial&&(this._equirectMaterial=Hs());const i=r?this._cubemapMaterial:this._equirectMaterial,a=new za(this._lodPlanes[0],i);i.uniforms.envMap.value=e;const s=this._cubeSize;zs(t,0,0,3*s,2*s),n.setRenderTarget(t),n.render(a,Bs)}_applyPMREM(e){const t=this._renderer,n=t.autoClear;t.autoClear=!1;const r=this._lodPlanes.length;for(let t=1;t20&&console.warn(`sigmaRadians, ${i}, is too large and will clip, as it requested ${f} samples when the maximum is set to 20`);const m=[];let A=0;for(let e=0;e<20;++e){const t=e/p,n=Math.exp(-t*t/2);m.push(n),0===e?A+=n:eg-4?r-g+4:0),4*(this._cubeSize-v),3*v,2*v),o.setRenderTarget(t),o.render(c,Bs)}}function Vs(e,t,n){const r=new Sr(e,t,n);return r.texture.mapping=me,r.texture.name="PMREM.cubeUv",r.scissorTest=!0,r}function zs(e,t,n,r,i){e.viewport.set(t,n,r,i),e.scissor.set(t,n,r,i)}function Hs(){return new Ka({name:"EquirectangularToCubeUV",uniforms:{envMap:{value:null}},vertexShader:"\n\n\t\tprecision mediump float;\n\t\tprecision mediump int;\n\n\t\tattribute float faceIndex;\n\n\t\tvarying vec3 vOutputDirection;\n\n\t\t// RH coordinate system; PMREM face-indexing convention\n\t\tvec3 getDirection( vec2 uv, float face ) {\n\n\t\t\tuv = 2.0 * uv - 1.0;\n\n\t\t\tvec3 direction = vec3( uv, 1.0 );\n\n\t\t\tif ( face == 0.0 ) {\n\n\t\t\t\tdirection = direction.zyx; // ( 1, v, u ) pos x\n\n\t\t\t} else if ( face == 1.0 ) {\n\n\t\t\t\tdirection = direction.xzy;\n\t\t\t\tdirection.xz *= -1.0; // ( -u, 1, -v ) pos y\n\n\t\t\t} else if ( face == 2.0 ) {\n\n\t\t\t\tdirection.x *= -1.0; // ( -u, v, 1 ) pos z\n\n\t\t\t} else if ( face == 3.0 ) {\n\n\t\t\t\tdirection = direction.zyx;\n\t\t\t\tdirection.xz *= -1.0; // ( -1, v, -u ) neg x\n\n\t\t\t} else if ( face == 4.0 ) {\n\n\t\t\t\tdirection = direction.xzy;\n\t\t\t\tdirection.xy *= -1.0; // ( -u, -1, v ) neg y\n\n\t\t\t} else if ( face == 5.0 ) {\n\n\t\t\t\tdirection.z *= -1.0; // ( u, v, -1 ) neg z\n\n\t\t\t}\n\n\t\t\treturn direction;\n\n\t\t}\n\n\t\tvoid main() {\n\n\t\t\tvOutputDirection = getDirection( uv, faceIndex );\n\t\t\tgl_Position = vec4( position, 1.0 );\n\n\t\t}\n\t",fragmentShader:"\n\n\t\t\tprecision mediump float;\n\t\t\tprecision mediump int;\n\n\t\t\tvarying vec3 vOutputDirection;\n\n\t\t\tuniform sampler2D envMap;\n\n\t\t\t#include \n\n\t\t\tvoid main() {\n\n\t\t\t\tvec3 outputDirection = normalize( vOutputDirection );\n\t\t\t\tvec2 uv = equirectUv( outputDirection );\n\n\t\t\t\tgl_FragColor = vec4( texture2D ( envMap, uv ).rgb, 1.0 );\n\n\t\t\t}\n\t\t",blending:g,depthTest:!1,depthWrite:!1})}function js(){return new Ka({name:"CubemapToCubeUV",uniforms:{envMap:{value:null},flipEnvMap:{value:-1}},vertexShader:"\n\n\t\tprecision mediump float;\n\t\tprecision mediump int;\n\n\t\tattribute float faceIndex;\n\n\t\tvarying vec3 vOutputDirection;\n\n\t\t// RH coordinate system; PMREM face-indexing convention\n\t\tvec3 getDirection( vec2 uv, float face ) {\n\n\t\t\tuv = 2.0 * uv - 1.0;\n\n\t\t\tvec3 direction = vec3( uv, 1.0 );\n\n\t\t\tif ( face == 0.0 ) {\n\n\t\t\t\tdirection = direction.zyx; // ( 1, v, u ) pos x\n\n\t\t\t} else if ( face == 1.0 ) {\n\n\t\t\t\tdirection = direction.xzy;\n\t\t\t\tdirection.xz *= -1.0; // ( -u, 1, -v ) pos y\n\n\t\t\t} else if ( face == 2.0 ) {\n\n\t\t\t\tdirection.x *= -1.0; // ( -u, v, 1 ) pos z\n\n\t\t\t} else if ( face == 3.0 ) {\n\n\t\t\t\tdirection = direction.zyx;\n\t\t\t\tdirection.xz *= -1.0; // ( -1, v, -u ) neg x\n\n\t\t\t} else if ( face == 4.0 ) {\n\n\t\t\t\tdirection = direction.xzy;\n\t\t\t\tdirection.xy *= -1.0; // ( -u, -1, v ) neg y\n\n\t\t\t} else if ( face == 5.0 ) {\n\n\t\t\t\tdirection.z *= -1.0; // ( u, v, -1 ) neg z\n\n\t\t\t}\n\n\t\t\treturn direction;\n\n\t\t}\n\n\t\tvoid main() {\n\n\t\t\tvOutputDirection = getDirection( uv, faceIndex );\n\t\t\tgl_Position = vec4( position, 1.0 );\n\n\t\t}\n\t",fragmentShader:"\n\n\t\t\tprecision mediump float;\n\t\t\tprecision mediump int;\n\n\t\t\tuniform float flipEnvMap;\n\n\t\t\tvarying vec3 vOutputDirection;\n\n\t\t\tuniform samplerCube envMap;\n\n\t\t\tvoid main() {\n\n\t\t\t\tgl_FragColor = textureCube( envMap, vec3( flipEnvMap * vOutputDirection.x, vOutputDirection.yz ) );\n\n\t\t\t}\n\t\t",blending:g,depthTest:!1,depthWrite:!1})}function Ws(e){let t=new WeakMap,n=null;function r(e){const n=e.target;n.removeEventListener("dispose",r);const i=t.get(n);void 0!==i&&(t.delete(n),i.dispose())}return{get:function(i){if(i&&i.isTexture){const a=i.mapping,s=a===pe||a===fe,o=a===he||a===de;if(s||o){let a=t.get(i);const l=void 0!==a?a.texture.pmremVersion:0;if(i.isRenderTargetTexture&&i.pmremVersion!==l)return null===n&&(n=new Gs(e)),a=s?n.fromEquirectangular(i,a):n.fromCubemap(i,a),a.texture.pmremVersion=i.pmremVersion,t.set(i,a),a.texture;if(void 0!==a)return a.texture;{const l=i.image;return s&&l&&l.height>0||o&&l&&function(e){let t=0;for(let n=0;n<6;n++)void 0!==e[n]&&t++;return 6===t}(l)?(null===n&&(n=new Gs(e)),a=s?n.fromEquirectangular(i):n.fromCubemap(i),a.texture.pmremVersion=i.pmremVersion,t.set(i,a),i.addEventListener("dispose",r),a.texture):null}}}return i},dispose:function(){t=new WeakMap,null!==n&&(n.dispose(),n=null)}}}function qs(e){const t={};function n(n){if(void 0!==t[n])return t[n];let r;switch(n){case"WEBGL_depth_texture":r=e.getExtension("WEBGL_depth_texture")||e.getExtension("MOZ_WEBGL_depth_texture")||e.getExtension("WEBKIT_WEBGL_depth_texture");break;case"EXT_texture_filter_anisotropic":r=e.getExtension("EXT_texture_filter_anisotropic")||e.getExtension("MOZ_EXT_texture_filter_anisotropic")||e.getExtension("WEBKIT_EXT_texture_filter_anisotropic");break;case"WEBGL_compressed_texture_s3tc":r=e.getExtension("WEBGL_compressed_texture_s3tc")||e.getExtension("MOZ_WEBGL_compressed_texture_s3tc")||e.getExtension("WEBKIT_WEBGL_compressed_texture_s3tc");break;case"WEBGL_compressed_texture_pvrtc":r=e.getExtension("WEBGL_compressed_texture_pvrtc")||e.getExtension("WEBKIT_WEBGL_compressed_texture_pvrtc");break;default:r=e.getExtension(n)}return t[n]=r,r}return{has:function(e){return null!==n(e)},init:function(){n("EXT_color_buffer_float"),n("WEBGL_clip_cull_distance"),n("OES_texture_float_linear"),n("EXT_color_buffer_half_float"),n("WEBGL_multisampled_render_to_texture"),n("WEBGL_render_shared_exponent")},get:function(e){const t=n(e);return null===t&&cr("THREE.WebGLRenderer: "+e+" extension not supported."),t}}}function Xs(e,t,n,r){const i={},a=new WeakMap;function s(e){const o=e.target;null!==o.index&&t.remove(o.index);for(const e in o.attributes)t.remove(o.attributes[e]);for(const e in o.morphAttributes){const n=o.morphAttributes[e];for(let e=0,r=n.length;et.maxTextureSize&&(b=Math.ceil(y/t.maxTextureSize),y=t.maxTextureSize);const _=new Float32Array(y*b*4*u),x=new Cr(_,y,b,u);x.type=Ue,x.needsUpdate=!0;const E=4*v;for(let M=0;M0)return e;const i=t*n;let a=ao[i];if(void 0===a&&(a=new Float32Array(i),ao[i]=a),0!==t){r.toArray(a,0);for(let r=1,i=0;r!==t;++r)i+=n,e[r].toArray(a,i)}return a}function ho(e,t){if(e.length!==t.length)return!1;for(let n=0,r=e.length;n":" "} ${i}: ${n[e]}`)}return r.join("\n")}(e.getShaderSource(t),r)}return i}function cl(e,t){const n=function(e){const t=fr.getPrimaries(fr.workingColorSpace),n=fr.getPrimaries(e);let r;switch(t===n?r="":t===rn&&n===nn?r="LinearDisplayP3ToLinearSRGB":t===nn&&n===rn&&(r="LinearSRGBToLinearDisplayP3"),e){case Jt:case $t:return[r,"LinearTransferOETF"];case Kt:case Zt:return[r,"sRGBTransferOETF"];default:return console.warn("THREE.WebGLProgram: Unsupported color space:",e),[r,"LinearTransferOETF"]}}(t);return`vec4 ${e}( vec4 value ) { return ${n[0]}( ${n[1]}( value ) ); }`}function ul(e,t){let n;switch(t){case te:n="Linear";break;case ne:n="Reinhard";break;case re:n="OptimizedCineon";break;case ie:n="ACESFilmic";break;case se:n="AgX";break;case oe:n="Neutral";break;case ae:n="Custom";break;default:console.warn("THREE.WebGLProgram: Unsupported toneMapping:",t),n="Linear"}return"vec3 "+e+"( vec3 color ) { return "+n+"ToneMapping( color ); }"}function hl(e){return""!==e}function dl(e,t){const n=t.numSpotLightShadows+t.numSpotLightMaps-t.numSpotLightShadowsWithMaps;return e.replace(/NUM_DIR_LIGHTS/g,t.numDirLights).replace(/NUM_SPOT_LIGHTS/g,t.numSpotLights).replace(/NUM_SPOT_LIGHT_MAPS/g,t.numSpotLightMaps).replace(/NUM_SPOT_LIGHT_COORDS/g,n).replace(/NUM_RECT_AREA_LIGHTS/g,t.numRectAreaLights).replace(/NUM_POINT_LIGHTS/g,t.numPointLights).replace(/NUM_HEMI_LIGHTS/g,t.numHemiLights).replace(/NUM_DIR_LIGHT_SHADOWS/g,t.numDirLightShadows).replace(/NUM_SPOT_LIGHT_SHADOWS_WITH_MAPS/g,t.numSpotLightShadowsWithMaps).replace(/NUM_SPOT_LIGHT_SHADOWS/g,t.numSpotLightShadows).replace(/NUM_POINT_LIGHT_SHADOWS/g,t.numPointLightShadows)}function pl(e,t){return e.replace(/NUM_CLIPPING_PLANES/g,t.numClippingPlanes).replace(/UNION_CLIPPING_PLANES/g,t.numClippingPlanes-t.numClipIntersection)}const fl=/^[ \t]*#include +<([\w\d./]+)>/gm;function ml(e){return e.replace(fl,gl)}const Al=new Map;function gl(e,t){let n=As[t];if(void 0===n){const e=Al.get(t);if(void 0===e)throw new Error("Can not resolve #include <"+t+">");n=As[e],console.warn('THREE.WebGLRenderer: Shader chunk "%s" has been deprecated. Use "%s" instead.',t,e)}return ml(n)}const vl=/#pragma unroll_loop_start\s+for\s*\(\s*int\s+i\s*=\s*(\d+)\s*;\s*i\s*<\s*(\d+)\s*;\s*i\s*\+\+\s*\)\s*{([\s\S]+?)}\s+#pragma unroll_loop_end/g;function yl(e){return e.replace(vl,bl)}function bl(e,t,n,r){let i="";for(let e=parseInt(t);e0&&(_+="\n"),x=["#define SHADER_TYPE "+n.shaderType,"#define SHADER_NAME "+n.shaderName,y].filter(hl).join("\n"),x.length>0&&(x+="\n")):(_=[_l(n),"#define SHADER_TYPE "+n.shaderType,"#define SHADER_NAME "+n.shaderName,y,n.extensionClipCullDistance?"#define USE_CLIP_DISTANCE":"",n.batching?"#define USE_BATCHING":"",n.batchingColor?"#define USE_BATCHING_COLOR":"",n.instancing?"#define USE_INSTANCING":"",n.instancingColor?"#define USE_INSTANCING_COLOR":"",n.instancingMorph?"#define USE_INSTANCING_MORPH":"",n.useFog&&n.fog?"#define USE_FOG":"",n.useFog&&n.fogExp2?"#define FOG_EXP2":"",n.map?"#define USE_MAP":"",n.envMap?"#define USE_ENVMAP":"",n.envMap?"#define "+f:"",n.lightMap?"#define USE_LIGHTMAP":"",n.aoMap?"#define USE_AOMAP":"",n.bumpMap?"#define USE_BUMPMAP":"",n.normalMap?"#define USE_NORMALMAP":"",n.normalMapObjectSpace?"#define USE_NORMALMAP_OBJECTSPACE":"",n.normalMapTangentSpace?"#define USE_NORMALMAP_TANGENTSPACE":"",n.displacementMap?"#define USE_DISPLACEMENTMAP":"",n.emissiveMap?"#define USE_EMISSIVEMAP":"",n.anisotropy?"#define USE_ANISOTROPY":"",n.anisotropyMap?"#define USE_ANISOTROPYMAP":"",n.clearcoatMap?"#define USE_CLEARCOATMAP":"",n.clearcoatRoughnessMap?"#define USE_CLEARCOAT_ROUGHNESSMAP":"",n.clearcoatNormalMap?"#define USE_CLEARCOAT_NORMALMAP":"",n.iridescenceMap?"#define USE_IRIDESCENCEMAP":"",n.iridescenceThicknessMap?"#define USE_IRIDESCENCE_THICKNESSMAP":"",n.specularMap?"#define USE_SPECULARMAP":"",n.specularColorMap?"#define USE_SPECULAR_COLORMAP":"",n.specularIntensityMap?"#define USE_SPECULAR_INTENSITYMAP":"",n.roughnessMap?"#define USE_ROUGHNESSMAP":"",n.metalnessMap?"#define USE_METALNESSMAP":"",n.alphaMap?"#define USE_ALPHAMAP":"",n.alphaHash?"#define USE_ALPHAHASH":"",n.transmission?"#define USE_TRANSMISSION":"",n.transmissionMap?"#define USE_TRANSMISSIONMAP":"",n.thicknessMap?"#define USE_THICKNESSMAP":"",n.sheenColorMap?"#define USE_SHEEN_COLORMAP":"",n.sheenRoughnessMap?"#define USE_SHEEN_ROUGHNESSMAP":"",n.mapUv?"#define MAP_UV "+n.mapUv:"",n.alphaMapUv?"#define ALPHAMAP_UV "+n.alphaMapUv:"",n.lightMapUv?"#define LIGHTMAP_UV "+n.lightMapUv:"",n.aoMapUv?"#define AOMAP_UV "+n.aoMapUv:"",n.emissiveMapUv?"#define EMISSIVEMAP_UV "+n.emissiveMapUv:"",n.bumpMapUv?"#define BUMPMAP_UV "+n.bumpMapUv:"",n.normalMapUv?"#define NORMALMAP_UV "+n.normalMapUv:"",n.displacementMapUv?"#define DISPLACEMENTMAP_UV "+n.displacementMapUv:"",n.metalnessMapUv?"#define METALNESSMAP_UV "+n.metalnessMapUv:"",n.roughnessMapUv?"#define ROUGHNESSMAP_UV "+n.roughnessMapUv:"",n.anisotropyMapUv?"#define ANISOTROPYMAP_UV "+n.anisotropyMapUv:"",n.clearcoatMapUv?"#define CLEARCOATMAP_UV "+n.clearcoatMapUv:"",n.clearcoatNormalMapUv?"#define CLEARCOAT_NORMALMAP_UV "+n.clearcoatNormalMapUv:"",n.clearcoatRoughnessMapUv?"#define CLEARCOAT_ROUGHNESSMAP_UV "+n.clearcoatRoughnessMapUv:"",n.iridescenceMapUv?"#define IRIDESCENCEMAP_UV "+n.iridescenceMapUv:"",n.iridescenceThicknessMapUv?"#define IRIDESCENCE_THICKNESSMAP_UV "+n.iridescenceThicknessMapUv:"",n.sheenColorMapUv?"#define SHEEN_COLORMAP_UV "+n.sheenColorMapUv:"",n.sheenRoughnessMapUv?"#define SHEEN_ROUGHNESSMAP_UV "+n.sheenRoughnessMapUv:"",n.specularMapUv?"#define SPECULARMAP_UV "+n.specularMapUv:"",n.specularColorMapUv?"#define SPECULAR_COLORMAP_UV "+n.specularColorMapUv:"",n.specularIntensityMapUv?"#define SPECULAR_INTENSITYMAP_UV "+n.specularIntensityMapUv:"",n.transmissionMapUv?"#define TRANSMISSIONMAP_UV "+n.transmissionMapUv:"",n.thicknessMapUv?"#define THICKNESSMAP_UV "+n.thicknessMapUv:"",n.vertexTangents&&!1===n.flatShading?"#define USE_TANGENT":"",n.vertexColors?"#define USE_COLOR":"",n.vertexAlphas?"#define USE_COLOR_ALPHA":"",n.vertexUv1s?"#define USE_UV1":"",n.vertexUv2s?"#define USE_UV2":"",n.vertexUv3s?"#define USE_UV3":"",n.pointsUvs?"#define USE_POINTS_UV":"",n.flatShading?"#define FLAT_SHADED":"",n.skinning?"#define USE_SKINNING":"",n.morphTargets?"#define USE_MORPHTARGETS":"",n.morphNormals&&!1===n.flatShading?"#define USE_MORPHNORMALS":"",n.morphColors?"#define USE_MORPHCOLORS":"",n.morphTargetsCount>0?"#define MORPHTARGETS_TEXTURE_STRIDE "+n.morphTextureStride:"",n.morphTargetsCount>0?"#define MORPHTARGETS_COUNT "+n.morphTargetsCount:"",n.doubleSided?"#define DOUBLE_SIDED":"",n.flipSided?"#define FLIP_SIDED":"",n.shadowMapEnabled?"#define USE_SHADOWMAP":"",n.shadowMapEnabled?"#define "+c:"",n.sizeAttenuation?"#define USE_SIZEATTENUATION":"",n.numLightProbes>0?"#define USE_LIGHT_PROBES":"",n.logarithmicDepthBuffer?"#define USE_LOGDEPTHBUF":"","uniform mat4 modelMatrix;","uniform mat4 modelViewMatrix;","uniform mat4 projectionMatrix;","uniform mat4 viewMatrix;","uniform mat3 normalMatrix;","uniform vec3 cameraPosition;","uniform bool isOrthographic;","#ifdef USE_INSTANCING","\tattribute mat4 instanceMatrix;","#endif","#ifdef USE_INSTANCING_COLOR","\tattribute vec3 instanceColor;","#endif","#ifdef USE_INSTANCING_MORPH","\tuniform sampler2D morphTexture;","#endif","attribute vec3 position;","attribute vec3 normal;","attribute vec2 uv;","#ifdef USE_UV1","\tattribute vec2 uv1;","#endif","#ifdef USE_UV2","\tattribute vec2 uv2;","#endif","#ifdef USE_UV3","\tattribute vec2 uv3;","#endif","#ifdef USE_TANGENT","\tattribute vec4 tangent;","#endif","#if defined( USE_COLOR_ALPHA )","\tattribute vec4 color;","#elif defined( USE_COLOR )","\tattribute vec3 color;","#endif","#ifdef USE_SKINNING","\tattribute vec4 skinIndex;","\tattribute vec4 skinWeight;","#endif","\n"].filter(hl).join("\n"),x=[_l(n),"#define SHADER_TYPE "+n.shaderType,"#define SHADER_NAME "+n.shaderName,y,n.useFog&&n.fog?"#define USE_FOG":"",n.useFog&&n.fogExp2?"#define FOG_EXP2":"",n.alphaToCoverage?"#define ALPHA_TO_COVERAGE":"",n.map?"#define USE_MAP":"",n.matcap?"#define USE_MATCAP":"",n.envMap?"#define USE_ENVMAP":"",n.envMap?"#define "+u:"",n.envMap?"#define "+f:"",n.envMap?"#define "+m:"",A?"#define CUBEUV_TEXEL_WIDTH "+A.texelWidth:"",A?"#define CUBEUV_TEXEL_HEIGHT "+A.texelHeight:"",A?"#define CUBEUV_MAX_MIP "+A.maxMip+".0":"",n.lightMap?"#define USE_LIGHTMAP":"",n.aoMap?"#define USE_AOMAP":"",n.bumpMap?"#define USE_BUMPMAP":"",n.normalMap?"#define USE_NORMALMAP":"",n.normalMapObjectSpace?"#define USE_NORMALMAP_OBJECTSPACE":"",n.normalMapTangentSpace?"#define USE_NORMALMAP_TANGENTSPACE":"",n.emissiveMap?"#define USE_EMISSIVEMAP":"",n.anisotropy?"#define USE_ANISOTROPY":"",n.anisotropyMap?"#define USE_ANISOTROPYMAP":"",n.clearcoat?"#define USE_CLEARCOAT":"",n.clearcoatMap?"#define USE_CLEARCOATMAP":"",n.clearcoatRoughnessMap?"#define USE_CLEARCOAT_ROUGHNESSMAP":"",n.clearcoatNormalMap?"#define USE_CLEARCOAT_NORMALMAP":"",n.dispersion?"#define USE_DISPERSION":"",n.iridescence?"#define USE_IRIDESCENCE":"",n.iridescenceMap?"#define USE_IRIDESCENCEMAP":"",n.iridescenceThicknessMap?"#define USE_IRIDESCENCE_THICKNESSMAP":"",n.specularMap?"#define USE_SPECULARMAP":"",n.specularColorMap?"#define USE_SPECULAR_COLORMAP":"",n.specularIntensityMap?"#define USE_SPECULAR_INTENSITYMAP":"",n.roughnessMap?"#define USE_ROUGHNESSMAP":"",n.metalnessMap?"#define USE_METALNESSMAP":"",n.alphaMap?"#define USE_ALPHAMAP":"",n.alphaTest?"#define USE_ALPHATEST":"",n.alphaHash?"#define USE_ALPHAHASH":"",n.sheen?"#define USE_SHEEN":"",n.sheenColorMap?"#define USE_SHEEN_COLORMAP":"",n.sheenRoughnessMap?"#define USE_SHEEN_ROUGHNESSMAP":"",n.transmission?"#define USE_TRANSMISSION":"",n.transmissionMap?"#define USE_TRANSMISSIONMAP":"",n.thicknessMap?"#define USE_THICKNESSMAP":"",n.vertexTangents&&!1===n.flatShading?"#define USE_TANGENT":"",n.vertexColors||n.instancingColor||n.batchingColor?"#define USE_COLOR":"",n.vertexAlphas?"#define USE_COLOR_ALPHA":"",n.vertexUv1s?"#define USE_UV1":"",n.vertexUv2s?"#define USE_UV2":"",n.vertexUv3s?"#define USE_UV3":"",n.pointsUvs?"#define USE_POINTS_UV":"",n.gradientMap?"#define USE_GRADIENTMAP":"",n.flatShading?"#define FLAT_SHADED":"",n.doubleSided?"#define DOUBLE_SIDED":"",n.flipSided?"#define FLIP_SIDED":"",n.shadowMapEnabled?"#define USE_SHADOWMAP":"",n.shadowMapEnabled?"#define "+c:"",n.premultipliedAlpha?"#define PREMULTIPLIED_ALPHA":"",n.numLightProbes>0?"#define USE_LIGHT_PROBES":"",n.decodeVideoTexture?"#define DECODE_VIDEO_TEXTURE":"",n.logarithmicDepthBuffer?"#define USE_LOGDEPTHBUF":"","uniform mat4 viewMatrix;","uniform vec3 cameraPosition;","uniform bool isOrthographic;",n.toneMapping!==ee?"#define TONE_MAPPING":"",n.toneMapping!==ee?As.tonemapping_pars_fragment:"",n.toneMapping!==ee?ul("toneMapping",n.toneMapping):"",n.dithering?"#define DITHERING":"",n.opaque?"#define OPAQUE":"",As.colorspace_pars_fragment,cl("linearToOutputTexel",n.outputColorSpace),n.useDepthPacking?"#define DEPTH_PACKING "+n.depthPacking:"","#define MINIMUM_ROUGHNESS_SIZE "+g,"\n"].filter(hl).join("\n")),o=ml(o),o=dl(o,n),o=pl(o,n),l=ml(l),l=dl(l,n),l=pl(l,n),o=yl(o),l=yl(l),!0!==n.isRawShaderMaterial&&(E="#version 300 es\n",_=[v,"#define attribute in","#define varying out","#define texture2D texture"].join("\n")+"\n"+_,x=["#define varying in",n.glslVersion===kn?"":"layout(location = 0) out highp vec4 pc_fragColor;",n.glslVersion===kn?"":"#define gl_FragColor pc_fragColor","#define gl_FragDepthEXT gl_FragDepth","#define texture2D texture","#define textureCube texture","#define texture2DProj textureProj","#define texture2DLodEXT textureLod","#define texture2DProjLodEXT textureProjLod","#define textureCubeLodEXT textureLod","#define texture2DProjGradEXT textureProjGrad","#define textureCubeGradEXT textureGrad"].join("\n")+"\n"+x);const w=E+_+o,M=E+x+l,S=sl(a,a.VERTEX_SHADER,w),C=sl(a,a.FRAGMENT_SHADER,M);function I(t){if(e.debug.checkShaderErrors){const n=a.getProgramInfoLog(b).trim(),r=a.getShaderInfoLog(S).trim(),i=a.getShaderInfoLog(C).trim();let s=!0,o=!0;if(!1===a.getProgramParameter(b,a.LINK_STATUS))if(s=!1,"function"==typeof e.debug.onShaderError)e.debug.onShaderError(a,b,S,C);else{const e=ll(a,S,"vertex"),r=ll(a,C,"fragment");console.error("THREE.WebGLProgram: Shader Error "+a.getError()+" - VALIDATE_STATUS "+a.getProgramParameter(b,a.VALIDATE_STATUS)+"\n\nMaterial Name: "+t.name+"\nMaterial Type: "+t.type+"\n\nProgram Info Log: "+n+"\n"+e+"\n"+r)}else""!==n?console.warn("THREE.WebGLProgram: Program Info Log:",n):""!==r&&""!==i||(o=!1);o&&(t.diagnostics={runnable:s,programLog:n,vertexShader:{log:r,prefix:_},fragmentShader:{log:i,prefix:x}})}a.deleteShader(S),a.deleteShader(C),T=new al(a,b),B=function(e,t){const n={},r=e.getProgramParameter(t,e.ACTIVE_ATTRIBUTES);for(let i=0;i0,Y=a.clearcoat>0,K=a.dispersion>0,J=a.iridescence>0,Z=a.sheen>0,$=a.transmission>0,te=X&&!!a.anisotropyMap,ne=Y&&!!a.clearcoatMap,re=Y&&!!a.clearcoatNormalMap,ie=Y&&!!a.clearcoatRoughnessMap,ae=J&&!!a.iridescenceMap,se=J&&!!a.iridescenceThicknessMap,oe=Z&&!!a.sheenColorMap,le=Z&&!!a.sheenRoughnessMap,ce=!!a.specularMap,ue=!!a.specularColorMap,he=!!a.specularIntensityMap,de=$&&!!a.transmissionMap,pe=$&&!!a.thicknessMap,fe=!!a.gradientMap,Ae=!!a.alphaMap,ge=a.alphaTest>0,ve=!!a.alphaHash,ye=!!a.extensions;let be=ee;a.toneMapped&&(null!==O&&!0!==O.isXRRenderTarget||(be=e.toneMapping));const _e={shaderID:S,shaderType:a.type,shaderName:a.name,vertexShader:T,fragmentShader:B,defines:a.defines,customVertexShaderID:R,customFragmentShaderID:P,isRawShaderMaterial:!0===a.isRawShaderMaterial,glslVersion:a.glslVersion,precision:p,batching:D,batchingColor:D&&null!==b._colorsTexture,instancing:U,instancingColor:U&&null!==b.instanceColor,instancingMorph:U&&null!==b.morphTexture,supportsVertexTextures:d,outputColorSpace:null===O?e.outputColorSpace:!0===O.isXRRenderTarget?O.texture.colorSpace:Jt,alphaToCoverage:!!a.alphaToCoverage,map:F,matcap:N,envMap:k,envMapMode:k&&w.mapping,envMapCubeUVHeight:M,aoMap:Q,lightMap:G,bumpMap:V,normalMap:z,displacementMap:d&&H,emissiveMap:j,normalMapObjectSpace:z&&a.normalMapType===Xt,normalMapTangentSpace:z&&a.normalMapType===qt,metalnessMap:W,roughnessMap:q,anisotropy:X,anisotropyMap:te,clearcoat:Y,clearcoatMap:ne,clearcoatNormalMap:re,clearcoatRoughnessMap:ie,dispersion:K,iridescence:J,iridescenceMap:ae,iridescenceThicknessMap:se,sheen:Z,sheenColorMap:oe,sheenRoughnessMap:le,specularMap:ce,specularColorMap:ue,specularIntensityMap:he,transmission:$,transmissionMap:de,thicknessMap:pe,gradientMap:fe,opaque:!1===a.transparent&&a.blending===v&&!1===a.alphaToCoverage,alphaMap:Ae,alphaTest:ge,alphaHash:ve,combine:a.combine,mapUv:F&&g(a.map.channel),aoMapUv:Q&&g(a.aoMap.channel),lightMapUv:G&&g(a.lightMap.channel),bumpMapUv:V&&g(a.bumpMap.channel),normalMapUv:z&&g(a.normalMap.channel),displacementMapUv:H&&g(a.displacementMap.channel),emissiveMapUv:j&&g(a.emissiveMap.channel),metalnessMapUv:W&&g(a.metalnessMap.channel),roughnessMapUv:q&&g(a.roughnessMap.channel),anisotropyMapUv:te&&g(a.anisotropyMap.channel),clearcoatMapUv:ne&&g(a.clearcoatMap.channel),clearcoatNormalMapUv:re&&g(a.clearcoatNormalMap.channel),clearcoatRoughnessMapUv:ie&&g(a.clearcoatRoughnessMap.channel),iridescenceMapUv:ae&&g(a.iridescenceMap.channel),iridescenceThicknessMapUv:se&&g(a.iridescenceThicknessMap.channel),sheenColorMapUv:oe&&g(a.sheenColorMap.channel),sheenRoughnessMapUv:le&&g(a.sheenRoughnessMap.channel),specularMapUv:ce&&g(a.specularMap.channel),specularColorMapUv:ue&&g(a.specularColorMap.channel),specularIntensityMapUv:he&&g(a.specularIntensityMap.channel),transmissionMapUv:de&&g(a.transmissionMap.channel),thicknessMapUv:pe&&g(a.thicknessMap.channel),alphaMapUv:Ae&&g(a.alphaMap.channel),vertexTangents:!!x.attributes.tangent&&(z||X),vertexColors:a.vertexColors,vertexAlphas:!0===a.vertexColors&&!!x.attributes.color&&4===x.attributes.color.itemSize,pointsUvs:!0===b.isPoints&&!!x.attributes.uv&&(F||Ae),fog:!!_,useFog:!0===a.fog,fogExp2:!!_&&_.isFogExp2,flatShading:!0===a.flatShading,sizeAttenuation:!0===a.sizeAttenuation,logarithmicDepthBuffer:h,skinning:!0===b.isSkinnedMesh,morphTargets:void 0!==x.morphAttributes.position,morphNormals:void 0!==x.morphAttributes.normal,morphColors:void 0!==x.morphAttributes.color,morphTargetsCount:I,morphTextureStride:L,numDirLights:o.directional.length,numPointLights:o.point.length,numSpotLights:o.spot.length,numSpotLightMaps:o.spotLightMap.length,numRectAreaLights:o.rectArea.length,numHemiLights:o.hemi.length,numDirLightShadows:o.directionalShadowMap.length,numPointLightShadows:o.pointShadowMap.length,numSpotLightShadows:o.spotShadowMap.length,numSpotLightShadowsWithMaps:o.numSpotLightShadowsWithMaps,numLightProbes:o.numLightProbes,numClippingPlanes:s.numPlanes,numClipIntersection:s.numIntersection,dithering:a.dithering,shadowMapEnabled:e.shadowMap.enabled&&u.length>0,shadowMapType:e.shadowMap.type,toneMapping:be,decodeVideoTexture:F&&!0===a.map.isVideoTexture&&fr.getTransfer(a.map.colorSpace)===tn,premultipliedAlpha:a.premultipliedAlpha,doubleSided:a.side===A,flipSided:a.side===m,useDepthPacking:a.depthPacking>=0,depthPacking:a.depthPacking||0,index0AttributeName:a.index0AttributeName,extensionClipCullDistance:ye&&!0===a.extensions.clipCullDistance&&r.has("WEBGL_clip_cull_distance"),extensionMultiDraw:ye&&!0===a.extensions.multiDraw&&r.has("WEBGL_multi_draw"),rendererExtensionParallelShaderCompile:r.has("KHR_parallel_shader_compile"),customProgramCacheKey:a.customProgramCacheKey()};return _e.vertexUv1s=c.has(1),_e.vertexUv2s=c.has(2),_e.vertexUv3s=c.has(3),c.clear(),_e},getProgramCacheKey:function(t){const n=[];if(t.shaderID?n.push(t.shaderID):(n.push(t.customVertexShaderID),n.push(t.customFragmentShaderID)),void 0!==t.defines)for(const e in t.defines)n.push(e),n.push(t.defines[e]);return!1===t.isRawShaderMaterial&&(function(e,t){e.push(t.precision),e.push(t.outputColorSpace),e.push(t.envMapMode),e.push(t.envMapCubeUVHeight),e.push(t.mapUv),e.push(t.alphaMapUv),e.push(t.lightMapUv),e.push(t.aoMapUv),e.push(t.bumpMapUv),e.push(t.normalMapUv),e.push(t.displacementMapUv),e.push(t.emissiveMapUv),e.push(t.metalnessMapUv),e.push(t.roughnessMapUv),e.push(t.anisotropyMapUv),e.push(t.clearcoatMapUv),e.push(t.clearcoatNormalMapUv),e.push(t.clearcoatRoughnessMapUv),e.push(t.iridescenceMapUv),e.push(t.iridescenceThicknessMapUv),e.push(t.sheenColorMapUv),e.push(t.sheenRoughnessMapUv),e.push(t.specularMapUv),e.push(t.specularColorMapUv),e.push(t.specularIntensityMapUv),e.push(t.transmissionMapUv),e.push(t.thicknessMapUv),e.push(t.combine),e.push(t.fogExp2),e.push(t.sizeAttenuation),e.push(t.morphTargetsCount),e.push(t.morphAttributeCount),e.push(t.numDirLights),e.push(t.numPointLights),e.push(t.numSpotLights),e.push(t.numSpotLightMaps),e.push(t.numHemiLights),e.push(t.numRectAreaLights),e.push(t.numDirLightShadows),e.push(t.numPointLightShadows),e.push(t.numSpotLightShadows),e.push(t.numSpotLightShadowsWithMaps),e.push(t.numLightProbes),e.push(t.shadowMapType),e.push(t.toneMapping),e.push(t.numClippingPlanes),e.push(t.numClipIntersection),e.push(t.depthPacking)}(n,t),function(e,t){o.disableAll(),t.supportsVertexTextures&&o.enable(0),t.instancing&&o.enable(1),t.instancingColor&&o.enable(2),t.instancingMorph&&o.enable(3),t.matcap&&o.enable(4),t.envMap&&o.enable(5),t.normalMapObjectSpace&&o.enable(6),t.normalMapTangentSpace&&o.enable(7),t.clearcoat&&o.enable(8),t.iridescence&&o.enable(9),t.alphaTest&&o.enable(10),t.vertexColors&&o.enable(11),t.vertexAlphas&&o.enable(12),t.vertexUv1s&&o.enable(13),t.vertexUv2s&&o.enable(14),t.vertexUv3s&&o.enable(15),t.vertexTangents&&o.enable(16),t.anisotropy&&o.enable(17),t.alphaHash&&o.enable(18),t.batching&&o.enable(19),t.dispersion&&o.enable(20),t.batchingColor&&o.enable(21),e.push(o.mask),o.disableAll(),t.fog&&o.enable(0),t.useFog&&o.enable(1),t.flatShading&&o.enable(2),t.logarithmicDepthBuffer&&o.enable(3),t.skinning&&o.enable(4),t.morphTargets&&o.enable(5),t.morphNormals&&o.enable(6),t.morphColors&&o.enable(7),t.premultipliedAlpha&&o.enable(8),t.shadowMapEnabled&&o.enable(9),t.doubleSided&&o.enable(10),t.flipSided&&o.enable(11),t.useDepthPacking&&o.enable(12),t.dithering&&o.enable(13),t.transmission&&o.enable(14),t.sheen&&o.enable(15),t.opaque&&o.enable(16),t.pointsUvs&&o.enable(17),t.decodeVideoTexture&&o.enable(18),t.alphaToCoverage&&o.enable(19),e.push(o.mask)}(n,t),n.push(e.outputColorSpace)),n.push(t.customProgramCacheKey),n.join()},getUniforms:function(e){const t=f[e.type];let n;if(t){const e=vs[t];n=Ya.clone(e.uniforms)}else n=e.uniforms;return n},acquireProgram:function(t,n,r=!0){let i;for(let e=0,t=u.length;e0?r.push(u):!0===s.transparent?i.push(u):n.push(u)},unshift:function(e,t,s,o,l,c){const u=a(e,t,s,o,l,c);s.transmission>0?r.unshift(u):!0===s.transparent?i.unshift(u):n.unshift(u)},finish:function(){for(let n=t,r=e.length;n1&&n.sort(e||Il),r.length>1&&r.sort(t||Tl),i.length>1&&i.sort(t||Tl)}}}function Rl(){let e=new WeakMap;return{get:function(t,n){const r=e.get(t);let i;return void 0===r?(i=new Bl,e.set(t,[i])):n>=r.length?(i=new Bl,r.push(i)):i=r[n],i},dispose:function(){e=new WeakMap}}}function Pl(){const e={};return{get:function(t){if(void 0!==e[t.id])return e[t.id];let n;switch(t.type){case"DirectionalLight":n={direction:new Pr,color:new Ji};break;case"SpotLight":n={position:new Pr,direction:new Pr,color:new Ji,distance:0,coneCos:0,penumbraCos:0,decay:0};break;case"PointLight":n={position:new Pr,color:new Ji,distance:0,decay:0};break;case"HemisphereLight":n={direction:new Pr,skyColor:new Ji,groundColor:new Ji};break;case"RectAreaLight":n={color:new Ji,position:new Pr,halfWidth:new Pr,halfHeight:new Pr}}return e[t.id]=n,n}}}let Ll=0;function Ol(e,t){return(t.castShadow?2:0)-(e.castShadow?2:0)+(t.map?1:0)-(e.map?1:0)}function Ul(e){const t=new Pl,n=function(){const e={};return{get:function(t){if(void 0!==e[t.id])return e[t.id];let n;switch(t.type){case"DirectionalLight":case"SpotLight":n={shadowBias:0,shadowNormalBias:0,shadowRadius:1,shadowMapSize:new er};break;case"PointLight":n={shadowBias:0,shadowNormalBias:0,shadowRadius:1,shadowMapSize:new er,shadowCameraNear:1,shadowCameraFar:1e3}}return e[t.id]=n,n}}}(),r={version:Ll++,hash:{directionalLength:-1,pointLength:-1,spotLength:-1,rectAreaLength:-1,hemiLength:-1,numDirectionalShadows:-1,numPointShadows:-1,numSpotShadows:-1,numSpotMaps:-1,numLightProbes:-1},ambient:[0,0,0],probe:[],directional:[],directionalShadow:[],directionalShadowMap:[],directionalShadowMatrix:[],spot:[],spotLightMap:[],spotShadow:[],spotShadowMap:[],spotLightMatrix:[],rectArea:[],rectAreaLTC1:null,rectAreaLTC2:null,point:[],pointShadow:[],pointShadowMap:[],pointShadowMatrix:[],hemi:[],numSpotLightShadowsWithMaps:0,numLightProbes:0};for(let e=0;e<9;e++)r.probe.push(new Pr);const i=new Pr,a=new li,s=new li;return{setup:function(i){let a=0,s=0,o=0;for(let e=0;e<9;e++)r.probe[e].set(0,0,0);let l=0,c=0,u=0,h=0,d=0,p=0,f=0,m=0,A=0,g=0,v=0;i.sort(Ol);for(let e=0,y=i.length;e0&&(!0===e.has("OES_texture_float_linear")?(r.rectAreaLTC1=gs.LTC_FLOAT_1,r.rectAreaLTC2=gs.LTC_FLOAT_2):(r.rectAreaLTC1=gs.LTC_HALF_1,r.rectAreaLTC2=gs.LTC_HALF_2)),r.ambient[0]=a,r.ambient[1]=s,r.ambient[2]=o;const y=r.hash;y.directionalLength===l&&y.pointLength===c&&y.spotLength===u&&y.rectAreaLength===h&&y.hemiLength===d&&y.numDirectionalShadows===p&&y.numPointShadows===f&&y.numSpotShadows===m&&y.numSpotMaps===A&&y.numLightProbes===v||(r.directional.length=l,r.spot.length=u,r.rectArea.length=h,r.point.length=c,r.hemi.length=d,r.directionalShadow.length=p,r.directionalShadowMap.length=p,r.pointShadow.length=f,r.pointShadowMap.length=f,r.spotShadow.length=m,r.spotShadowMap.length=m,r.directionalShadowMatrix.length=p,r.pointShadowMatrix.length=f,r.spotLightMatrix.length=m+A-g,r.spotLightMap.length=A,r.numSpotLightShadowsWithMaps=g,r.numLightProbes=v,y.directionalLength=l,y.pointLength=c,y.spotLength=u,y.rectAreaLength=h,y.hemiLength=d,y.numDirectionalShadows=p,y.numPointShadows=f,y.numSpotShadows=m,y.numSpotMaps=A,y.numLightProbes=v,r.version=Ll++)},setupView:function(e,t){let n=0,o=0,l=0,c=0,u=0;const h=t.matrixWorldInverse;for(let t=0,d=e.length;t{t.camera=e,t.lightsArray.length=0,t.shadowsArray.length=0}),r=0},state:n[r],setupLights:function(){Object.values(n).forEach(e=>{e.lights.setup(e.lightsArray)})},setupLightsView:function(e){Object.values(n).forEach(t=>{t.lights.setupView(t.lightsArray,e)})},setLightLayer:function(i=0){if(i===r)return;r=i;let a=n[r];void 0===a&&(a=n[r]=new Dl(e)),t.state=a},getLightLayer:function(){return r},_lightLayers:n,pushLight:function(e){n[r].lightsArray.push(e)},pushShadow:function(e){n[r].shadowsArray.push(e)}},t}function Nl(e){let t=new WeakMap;return{get:function(n,r=0){const i=t.get(n);let a;return void 0===i?(a=new Fl(e),t.set(n,[a])):r>=i.length?(a=new Fl(e),i.push(a)):a=i[r],a},dispose:function(){t=new WeakMap}}}class kl extends ea{constructor(e){super(),this.isMeshDepthMaterial=!0,this.type="MeshDepthMaterial",this.depthPacking=jt,this.map=null,this.alphaMap=null,this.alphaMapChannel=0,this.displacementMap=null,this.displacementScale=1,this.displacementBias=0,this.wireframe=!1,this.wireframeLinewidth=1,this.setValues(e)}copy(e){return super.copy(e),this.depthPacking=e.depthPacking,this.map=e.map,this.alphaMap=e.alphaMap,this.alphaMapChannel=e.alphaMapChannel,this.displacementMap=e.displacementMap,this.displacementScale=e.displacementScale,this.displacementBias=e.displacementBias,this.wireframe=e.wireframe,this.wireframeLinewidth=e.wireframeLinewidth,this}}class Ql extends ea{constructor(e){super(),this.isMeshDistanceMaterial=!0,this.type="MeshDistanceMaterial",this.map=null,this.alphaMap=null,this.displacementMap=null,this.displacementScale=1,this.displacementBias=0,this.setValues(e)}copy(e){return super.copy(e),this.map=e.map,this.alphaMap=e.alphaMap,this.displacementMap=e.displacementMap,this.displacementScale=e.displacementScale,this.displacementBias=e.displacementBias,this}}function Gl(e,t,n){let r=new ds;const i=new er,a=new er,s=new wr,o=new kl({depthPacking:Wt}),l=new Ql,c={},u=n.maxTextureSize,d={[f]:m,[m]:f,[A]:A},v=new Ka({defines:{VSM_SAMPLES:8},uniforms:{shadow_pass:{value:null},resolution:{value:new er},radius:{value:4}},vertexShader:"void main() {\n\tgl_Position = vec4( position, 1.0 );\n}",fragmentShader:"uniform sampler2D shadow_pass;\nuniform vec2 resolution;\nuniform float radius;\n#include \nvoid main() {\n\tconst float samples = float( VSM_SAMPLES );\n\tfloat mean = 0.0;\n\tfloat squared_mean = 0.0;\n\tfloat uvStride = samples <= 1.0 ? 0.0 : 2.0 / ( samples - 1.0 );\n\tfloat uvStart = samples <= 1.0 ? 0.0 : - 1.0;\n\tfor ( float i = 0.0; i < samples; i ++ ) {\n\t\tfloat uvOffset = uvStart + i * uvStride;\n\t\t#ifdef HORIZONTAL_PASS\n\t\t\tvec2 distribution = unpackRGBATo2Half( texture2D( shadow_pass, ( gl_FragCoord.xy + vec2( uvOffset, 0.0 ) * radius ) / resolution ) );\n\t\t\tmean += distribution.x;\n\t\t\tsquared_mean += distribution.y * distribution.y + distribution.x * distribution.x;\n\t\t#else\n\t\t\tfloat depth = unpackRGBAToDepth( texture2D( shadow_pass, ( gl_FragCoord.xy + vec2( 0.0, uvOffset ) * radius ) / resolution ) );\n\t\t\tmean += depth;\n\t\t\tsquared_mean += depth * depth;\n\t\t#endif\n\t}\n\tmean = mean / samples;\n\tsquared_mean = squared_mean / samples;\n\tfloat std_dev = sqrt( squared_mean - mean * mean );\n\tgl_FragColor = pack2HalfToRGBA( vec2( mean, std_dev ) );\n}"}),y=v.clone();y.defines.HORIZONTAL_PASS=1;const b=new Ma;b.setAttribute("position",new la(new Float32Array([-1,-1,.5,3,-1,.5,-1,3,.5]),3));const _=new za(b,v),x=this;this.enabled=!1,this.autoUpdate=!0,this.needsUpdate=!1,this.type=h;let E=this.type;function w(n,r){const a=t.update(_);v.defines.VSM_SAMPLES!==n.blurSamples&&(v.defines.VSM_SAMPLES=n.blurSamples,y.defines.VSM_SAMPLES=n.blurSamples,v.needsUpdate=!0,y.needsUpdate=!0),null===n.mapPass&&(n.mapPass=new Sr(i.x,i.y)),v.uniforms.shadow_pass.value=n.map.texture,v.uniforms.resolution.value=n.mapSize,v.uniforms.radius.value=n.radius,e.setRenderTarget(n.mapPass),e.clear(),e.renderBufferDirect(r,null,a,v,_,null),y.uniforms.shadow_pass.value=n.mapPass.texture,y.uniforms.resolution.value=n.mapSize,y.uniforms.radius.value=n.radius,e.setRenderTarget(n.map),e.clear(),e.renderBufferDirect(r,null,a,y,_,null)}function M(t,n,r,i){let a=null;const s=!0===r.isPointLight?t.customDistanceMaterial:t.customDepthMaterial;if(void 0!==s)a=s;else if(a=!0===r.isPointLight?l:o,e.localClippingEnabled&&!0===n.clipShadows&&Array.isArray(n.clippingPlanes)&&0!==n.clippingPlanes.length||n.displacementMap&&0!==n.displacementScale||n.alphaMap&&n.alphaTest>0||n.map&&n.alphaTest>0){const e=a.uuid,t=n.uuid;let r=c[e];void 0===r&&(r={},c[e]=r);let i=r[t];void 0===i&&(i=a.clone(),r[t]=i,n.addEventListener("dispose",C)),a=i}return a.visible=n.visible,a.wireframe=n.wireframe,a.side=i===p?null!==n.shadowSide?n.shadowSide:n.side:null!==n.shadowSide?n.shadowSide:d[n.side],a.alphaMap=n.alphaMap,a.alphaMapChannel=n.alphaMapChannel,a.alphaTest=n.alphaTest,a.map=n.map,a.clipShadows=n.clipShadows,a.clippingPlanes=n.clippingPlanes,a.clipIntersection=n.clipIntersection,a.displacementMap=n.displacementMap,a.displacementScale=n.displacementScale,a.displacementBias=n.displacementBias,a.wireframeLinewidth=n.wireframeLinewidth,a.linewidth=n.linewidth,!0===r.isPointLight&&!0===a.isMeshDistanceMaterial&&(e.properties.get(a).light=r),a}function S(n,i,a,s,o){if(!1===n.visible)return;if(n.layers.test(i.layers)&&(n.isMesh||n.isLine||n.isPoints)&&(n.castShadow||n.receiveShadow&&o===p)&&(!n.frustumCulled||r.intersectsObject(n))){n.modelViewMatrix.multiplyMatrices(a.matrixWorldInverse,n.matrixWorld);const r=t.update(n),l=n.material;if(Array.isArray(l)){const t=r.groups;for(let c=0,u=t.length;cu||i.y>u)&&(i.x>u&&(a.x=Math.floor(u/A.x),i.x=a.x*A.x,h.mapSize.x=a.x),i.y>u&&(a.y=Math.floor(u/A.y),i.y=a.y*A.y,h.mapSize.y=a.y)),null===h.map||!0===f||!0===m){const e=this.type!==p?{minFilter:ye,magFilter:ye}:{};null!==h.map&&h.map.dispose(),h.map=new Sr(i.x,i.y,e),h.map.texture.name=c.name+".shadowMap",h.camera.updateProjectionMatrix()}e.setRenderTarget(h.map),e.clear();const g=h.getViewportCount();for(let e=0;e=1):-1!==me.indexOf("OpenGL ES")&&(fe=parseFloat(/^OpenGL ES (\d)/.exec(me)[1]),pe=fe>=2);let Ae=null,ge={};const ve=e.getParameter(e.SCISSOR_BOX),ye=e.getParameter(e.VIEWPORT),be=(new wr).fromArray(ve),_e=(new wr).fromArray(ye);function xe(t,n,r,i){const a=new Uint8Array(4),s=e.createTexture();e.bindTexture(t,s),e.texParameteri(t,e.TEXTURE_MIN_FILTER,e.NEAREST),e.texParameteri(t,e.TEXTURE_MAG_FILTER,e.NEAREST);for(let s=0;sn||i.height>n)&&(r=n/Math.max(i.width,i.height)),r<1){if("undefined"!=typeof HTMLImageElement&&e instanceof HTMLImageElement||"undefined"!=typeof HTMLCanvasElement&&e instanceof HTMLCanvasElement||"undefined"!=typeof ImageBitmap&&e instanceof ImageBitmap||"undefined"!=typeof VideoFrame&&e instanceof VideoFrame){const n=Math.floor(r*i.width),a=Math.floor(r*i.height);void 0===h&&(h=f(n,a));const s=t?f(n,a):h;return s.width=n,s.height=a,s.getContext("2d").drawImage(e,0,0,n,a),console.warn("THREE.WebGLRenderer: Texture has been resized from ("+i.width+"x"+i.height+") to ("+n+"x"+a+")."),s}return"data"in e&&console.warn("THREE.WebGLRenderer: Image in DataTexture is too big ("+i.width+"x"+i.height+")."),e}return e}function A(e){return e.generateMipmaps&&e.minFilter!==ye&&e.minFilter!==we}function g(t){e.generateMipmap(t)}function v(n,r,i,a,s=!1){if(null!==n){if(void 0!==e[n])return e[n];console.warn("THREE.WebGLRenderer: Attempt to use non-existing WebGL internal format '"+n+"'")}let o=r;if(r===e.RED&&(i===e.FLOAT&&(o=e.R32F),i===e.HALF_FLOAT&&(o=e.R16F),i===e.UNSIGNED_BYTE&&(o=e.R8)),r===e.RED_INTEGER&&(i===e.UNSIGNED_BYTE&&(o=e.R8UI),i===e.UNSIGNED_SHORT&&(o=e.R16UI),i===e.UNSIGNED_INT&&(o=e.R32UI),i===e.BYTE&&(o=e.R8I),i===e.SHORT&&(o=e.R16I),i===e.INT&&(o=e.R32I)),r===e.RG&&(i===e.FLOAT&&(o=e.RG32F),i===e.HALF_FLOAT&&(o=e.RG16F),i===e.UNSIGNED_BYTE&&(o=e.RG8)),r===e.RG_INTEGER&&(i===e.UNSIGNED_BYTE&&(o=e.RG8UI),i===e.UNSIGNED_SHORT&&(o=e.RG16UI),i===e.UNSIGNED_INT&&(o=e.RG32UI),i===e.BYTE&&(o=e.RG8I),i===e.SHORT&&(o=e.RG16I),i===e.INT&&(o=e.RG32I)),r===e.RGB&&i===e.UNSIGNED_INT_5_9_9_9_REV&&(o=e.RGB9_E5),r===e.RGBA){const t=s?en:fr.getTransfer(a);i===e.FLOAT&&(o=e.RGBA32F),i===e.HALF_FLOAT&&(o=e.RGBA16F),i===e.UNSIGNED_BYTE&&(o=t===tn?e.SRGB8_ALPHA8:e.RGBA8),i===e.UNSIGNED_SHORT_4_4_4_4&&(o=e.RGBA4),i===e.UNSIGNED_SHORT_5_5_5_1&&(o=e.RGB5_A1)}return o!==e.R16F&&o!==e.R32F&&o!==e.RG16F&&o!==e.RG32F&&o!==e.RGBA16F&&o!==e.RGBA32F||t.get("EXT_color_buffer_float"),o}function y(t,n){let r;return t?null===n||n===Oe||n===ke?r=e.DEPTH24_STENCIL8:n===Ue?r=e.DEPTH32F_STENCIL8:n===Pe&&(r=e.DEPTH24_STENCIL8,console.warn("DepthTexture: 16 bit depth attachment is not supported with stencil. Using 24-bit attachment.")):null===n||n===Oe||n===ke?r=e.DEPTH_COMPONENT24:n===Ue?r=e.DEPTH_COMPONENT32F:n===Pe&&(r=e.DEPTH_COMPONENT16),r}function b(e,t){return!0===A(e)||e.isFramebufferTexture&&e.minFilter!==ye&&e.minFilter!==we?Math.log2(Math.max(t.width,t.height))+1:void 0!==e.mipmaps&&e.mipmaps.length>0?e.mipmaps.length:e.isCompressedTexture&&Array.isArray(e.image)?t.mipmaps.length:1}function _(e){const t=e.target;t.removeEventListener("dispose",_),function(e){const t=r.get(e);if(void 0===t.__webglInit)return;const n=e.source,i=d.get(n);if(i){const r=i[t.__cacheKey];r.usedTimes--,0===r.usedTimes&&E(e),0===Object.keys(i).length&&d.delete(n)}r.remove(e)}(t),t.isVideoTexture&&u.delete(t)}function x(t){const n=t.target;n.removeEventListener("dispose",x),function(t){const n=r.get(t);if(t.depthTexture&&t.depthTexture.dispose(),t.isWebGLCubeRenderTarget)for(let t=0;t<6;t++){if(Array.isArray(n.__webglFramebuffer[t]))for(let r=0;r0&&a.__version!==t.version){const e=t.image;if(null===e)console.warn("THREE.WebGLRenderer: Texture marked for update but no image data found.");else{if(!1!==e.complete)return void R(a,t,i);console.warn("THREE.WebGLRenderer: Texture marked for update but image is incomplete")}}n.bindTexture(e.TEXTURE_2D,a.__webglTexture,e.TEXTURE0+i)}const S={[Ae]:e.REPEAT,[ge]:e.CLAMP_TO_EDGE,[ve]:e.MIRRORED_REPEAT},C={[ye]:e.NEAREST,[be]:e.NEAREST_MIPMAP_NEAREST,[xe]:e.NEAREST_MIPMAP_LINEAR,[we]:e.LINEAR,[Me]:e.LINEAR_MIPMAP_NEAREST,[Ce]:e.LINEAR_MIPMAP_LINEAR},I={[_n]:e.NEVER,[In]:e.ALWAYS,[xn]:e.LESS,[wn]:e.LEQUAL,[En]:e.EQUAL,[Cn]:e.GEQUAL,[Mn]:e.GREATER,[Sn]:e.NOTEQUAL};function T(n,a){if(a.type!==Ue||!1!==t.has("OES_texture_float_linear")||a.magFilter!==we&&a.magFilter!==Me&&a.magFilter!==xe&&a.magFilter!==Ce&&a.minFilter!==we&&a.minFilter!==Me&&a.minFilter!==xe&&a.minFilter!==Ce||console.warn("THREE.WebGLRenderer: Unable to use linear filtering with floating point textures. OES_texture_float_linear not supported on this device."),e.texParameteri(n,e.TEXTURE_WRAP_S,S[a.wrapS]),e.texParameteri(n,e.TEXTURE_WRAP_T,S[a.wrapT]),n!==e.TEXTURE_3D&&n!==e.TEXTURE_2D_ARRAY||e.texParameteri(n,e.TEXTURE_WRAP_R,S[a.wrapR]),e.texParameteri(n,e.TEXTURE_MAG_FILTER,C[a.magFilter]),e.texParameteri(n,e.TEXTURE_MIN_FILTER,C[a.minFilter]),a.compareFunction&&(e.texParameteri(n,e.TEXTURE_COMPARE_MODE,e.COMPARE_REF_TO_TEXTURE),e.texParameteri(n,e.TEXTURE_COMPARE_FUNC,I[a.compareFunction])),!0===t.has("EXT_texture_filter_anisotropic")){if(a.magFilter===ye)return;if(a.minFilter!==xe&&a.minFilter!==Ce)return;if(a.type===Ue&&!1===t.has("OES_texture_float_linear"))return;if(a.anisotropy>1||r.get(a).__currentAnisotropy){const s=t.get("EXT_texture_filter_anisotropic");e.texParameterf(n,s.TEXTURE_MAX_ANISOTROPY_EXT,Math.min(a.anisotropy,i.getMaxAnisotropy())),r.get(a).__currentAnisotropy=a.anisotropy}}}function B(t,n){let r=!1;void 0===t.__webglInit&&(t.__webglInit=!0,n.addEventListener("dispose",_));const i=n.source;let a=d.get(i);void 0===a&&(a={},d.set(i,a));const o=function(e){const t=[];return t.push(e.wrapS),t.push(e.wrapT),t.push(e.wrapR||0),t.push(e.magFilter),t.push(e.minFilter),t.push(e.anisotropy),t.push(e.internalFormat),t.push(e.format),t.push(e.type),t.push(e.generateMipmaps),t.push(e.premultiplyAlpha),t.push(e.flipY),t.push(e.unpackAlignment),t.push(e.colorSpace),t.join()}(n);if(o!==t.__cacheKey){void 0===a[o]&&(a[o]={texture:e.createTexture(),usedTimes:0},s.memory.textures++,r=!0),a[o].usedTimes++;const i=a[t.__cacheKey];void 0!==i&&(a[t.__cacheKey].usedTimes--,0===i.usedTimes&&E(n)),t.__cacheKey=o,t.__webglTexture=a[o].texture}return r}function R(t,s,o){let l=e.TEXTURE_2D;(s.isDataArrayTexture||s.isCompressedArrayTexture)&&(l=e.TEXTURE_2D_ARRAY),s.isData3DTexture&&(l=e.TEXTURE_3D);const c=B(t,s),u=s.source;n.bindTexture(l,t.__webglTexture,e.TEXTURE0+o);const h=r.get(u);if(u.version!==h.__version||!0===c){n.activeTexture(e.TEXTURE0+o);const t=fr.getPrimaries(fr.workingColorSpace),r=s.colorSpace===Yt?null:fr.getPrimaries(s.colorSpace),d=s.colorSpace===Yt||t===r?e.NONE:e.BROWSER_DEFAULT_WEBGL;e.pixelStorei(e.UNPACK_FLIP_Y_WEBGL,s.flipY),e.pixelStorei(e.UNPACK_PREMULTIPLY_ALPHA_WEBGL,s.premultiplyAlpha),e.pixelStorei(e.UNPACK_ALIGNMENT,s.unpackAlignment),e.pixelStorei(e.UNPACK_COLORSPACE_CONVERSION_WEBGL,d);let p=m(s.image,!1,i.maxTextureSize);p=k(s,p);const f=a.convert(s.format,s.colorSpace),_=a.convert(s.type);let x,E=v(s.internalFormat,f,_,s.colorSpace,s.isVideoTexture);T(l,s);const w=s.mipmaps,M=!0!==s.isVideoTexture,S=void 0===h.__version||!0===c,C=u.dataReady,I=b(s,p);if(s.isDepthTexture)E=y(s.format===qe,s.type),S&&(M?n.texStorage2D(e.TEXTURE_2D,1,E,p.width,p.height):n.texImage2D(e.TEXTURE_2D,0,E,p.width,p.height,0,f,_,null));else if(s.isDataTexture)if(w.length>0){M&&S&&n.texStorage2D(e.TEXTURE_2D,I,E,w[0].width,w[0].height);for(let t=0,r=w.length;t0){for(const r of s.layerUpdates){const i=x.width*x.height;n.compressedTexSubImage3D(e.TEXTURE_2D_ARRAY,t,0,0,r,x.width,x.height,1,f,x.data.slice(i*r,i*(r+1)),0,0)}s.clearLayerUpdates()}else n.compressedTexSubImage3D(e.TEXTURE_2D_ARRAY,t,0,0,0,x.width,x.height,p.depth,f,x.data,0,0)}else n.compressedTexImage3D(e.TEXTURE_2D_ARRAY,t,E,x.width,x.height,p.depth,0,x.data,0,0);else console.warn("THREE.WebGLRenderer: Attempt to load unsupported compressed texture format in .uploadTexture()");else M?C&&n.texSubImage3D(e.TEXTURE_2D_ARRAY,t,0,0,0,x.width,x.height,p.depth,f,_,x.data):n.texImage3D(e.TEXTURE_2D_ARRAY,t,E,x.width,x.height,p.depth,0,f,_,x.data)}else{M&&S&&n.texStorage2D(e.TEXTURE_2D,I,E,w[0].width,w[0].height);for(let t=0,r=w.length;t0){let t;switch(_){case e.UNSIGNED_BYTE:switch(f){case e.ALPHA:case e.LUMINANCE:t=1;break;case e.LUMINANCE_ALPHA:t=2;break;case e.RGB:t=3;break;case e.RGBA:t=4;break;default:throw new Error(`Unknown texel size for format ${f}.`)}break;case e.UNSIGNED_SHORT_4_4_4_4:case e.UNSIGNED_SHORT_5_5_5_1:case e.UNSIGNED_SHORT_5_6_5:t=1;break;default:throw new Error(`Unknown texel size for type ${_}.`)}const r=p.width*p.height*t;for(const t of s.layerUpdates)n.texSubImage3D(e.TEXTURE_2D_ARRAY,0,0,0,t,p.width,p.height,1,f,_,p.data.slice(r*t,r*(t+1)));s.clearLayerUpdates()}else n.texSubImage3D(e.TEXTURE_2D_ARRAY,0,0,0,0,p.width,p.height,p.depth,f,_,p.data)}else n.texImage3D(e.TEXTURE_2D_ARRAY,0,E,p.width,p.height,p.depth,0,f,_,p.data);else if(s.isData3DTexture)M?(S&&n.texStorage3D(e.TEXTURE_3D,I,E,p.width,p.height,p.depth),C&&n.texSubImage3D(e.TEXTURE_3D,0,0,0,0,p.width,p.height,p.depth,f,_,p.data)):n.texImage3D(e.TEXTURE_3D,0,E,p.width,p.height,p.depth,0,f,_,p.data);else if(s.isFramebufferTexture){if(S)if(M)n.texStorage2D(e.TEXTURE_2D,I,E,p.width,p.height);else{let t=p.width,r=p.height;for(let i=0;i>=1,r>>=1}}else if(w.length>0){if(M&&S){const t=Q(w[0]);n.texStorage2D(e.TEXTURE_2D,I,E,t.width,t.height)}for(let t=0,r=w.length;t>u),r=Math.max(1,i.height>>u);c===e.TEXTURE_3D||c===e.TEXTURE_2D_ARRAY?n.texImage3D(c,u,p,t,r,i.depth,0,h,d,null):n.texImage2D(c,u,p,t,r,0,h,d,null)}n.bindFramebuffer(e.FRAMEBUFFER,t),N(i)?o.framebufferTexture2DMultisampleEXT(e.FRAMEBUFFER,l,c,r.get(s).__webglTexture,0,F(i)):(c===e.TEXTURE_2D||c>=e.TEXTURE_CUBE_MAP_POSITIVE_X&&c<=e.TEXTURE_CUBE_MAP_NEGATIVE_Z)&&e.framebufferTexture2D(e.FRAMEBUFFER,l,c,r.get(s).__webglTexture,u),n.bindFramebuffer(e.FRAMEBUFFER,null)}function L(t,n,r){if(e.bindRenderbuffer(e.RENDERBUFFER,t),n.depthBuffer){const i=n.depthTexture,a=i&&i.isDepthTexture?i.type:null,s=y(n.stencilBuffer,a),l=n.stencilBuffer?e.DEPTH_STENCIL_ATTACHMENT:e.DEPTH_ATTACHMENT,c=F(n);N(n)?o.renderbufferStorageMultisampleEXT(e.RENDERBUFFER,c,s,n.width,n.height):r?e.renderbufferStorageMultisample(e.RENDERBUFFER,c,s,n.width,n.height):e.renderbufferStorage(e.RENDERBUFFER,s,n.width,n.height),e.framebufferRenderbuffer(e.FRAMEBUFFER,l,e.RENDERBUFFER,t)}else{const t=n.textures;for(let i=0;i0&&!0===t.has("WEBGL_multisampled_render_to_texture")&&!1!==n.__useRenderToTexture}function k(e,t){const n=e.colorSpace,r=e.format,i=e.type;return!0===e.isCompressedTexture||!0===e.isVideoTexture||n!==Jt&&n!==Yt&&(fr.getTransfer(n)===tn?r===ze&&i===Te||console.warn("THREE.WebGLTextures: sRGB encoded textures have to use RGBAFormat and UnsignedByteType."):console.error("THREE.WebGLTextures: Unsupported texture color space:",n)),t}function Q(e){return"undefined"!=typeof HTMLImageElement&&e instanceof HTMLImageElement?(c.width=e.naturalWidth||e.width,c.height=e.naturalHeight||e.height):"undefined"!=typeof VideoFrame&&e instanceof VideoFrame?(c.width=e.displayWidth,c.height=e.displayHeight):(c.width=e.width,c.height=e.height),c}this.allocateTextureUnit=function(){const e=w;return e>=i.maxTextures&&console.warn("THREE.WebGLTextures: Trying to use "+e+" texture units while this GPU supports only "+i.maxTextures),w+=1,e},this.resetTextureUnits=function(){w=0},this.setTexture2D=M,this.setTexture2DArray=function(t,i){const a=r.get(t);t.version>0&&a.__version!==t.version?R(a,t,i):n.bindTexture(e.TEXTURE_2D_ARRAY,a.__webglTexture,e.TEXTURE0+i)},this.setTexture3D=function(t,i){const a=r.get(t);t.version>0&&a.__version!==t.version?R(a,t,i):n.bindTexture(e.TEXTURE_3D,a.__webglTexture,e.TEXTURE0+i)},this.setTextureCube=function(t,s){const o=r.get(t);t.version>0&&o.__version!==t.version?function(t,s,o){if(6!==s.image.length)return;const l=B(t,s),c=s.source;n.bindTexture(e.TEXTURE_CUBE_MAP,t.__webglTexture,e.TEXTURE0+o);const u=r.get(c);if(c.version!==u.__version||!0===l){n.activeTexture(e.TEXTURE0+o);const t=fr.getPrimaries(fr.workingColorSpace),r=s.colorSpace===Yt?null:fr.getPrimaries(s.colorSpace),h=s.colorSpace===Yt||t===r?e.NONE:e.BROWSER_DEFAULT_WEBGL;e.pixelStorei(e.UNPACK_FLIP_Y_WEBGL,s.flipY),e.pixelStorei(e.UNPACK_PREMULTIPLY_ALPHA_WEBGL,s.premultiplyAlpha),e.pixelStorei(e.UNPACK_ALIGNMENT,s.unpackAlignment),e.pixelStorei(e.UNPACK_COLORSPACE_CONVERSION_WEBGL,h);const d=s.isCompressedTexture||s.image[0].isCompressedTexture,p=s.image[0]&&s.image[0].isDataTexture,f=[];for(let e=0;e<6;e++)f[e]=d||p?p?s.image[e].image:s.image[e]:m(s.image[e],!0,i.maxCubemapSize),f[e]=k(s,f[e]);const y=f[0],_=a.convert(s.format,s.colorSpace),x=a.convert(s.type),E=v(s.internalFormat,_,x,s.colorSpace),w=!0!==s.isVideoTexture,M=void 0===u.__version||!0===l,S=c.dataReady;let C,I=b(s,y);if(T(e.TEXTURE_CUBE_MAP,s),d){w&&M&&n.texStorage2D(e.TEXTURE_CUBE_MAP,I,E,y.width,y.height);for(let t=0;t<6;t++){C=f[t].mipmaps;for(let r=0;r0&&I++;const t=Q(f[0]);n.texStorage2D(e.TEXTURE_CUBE_MAP,I,E,t.width,t.height)}for(let t=0;t<6;t++)if(p){w?S&&n.texSubImage2D(e.TEXTURE_CUBE_MAP_POSITIVE_X+t,0,0,0,f[t].width,f[t].height,_,x,f[t].data):n.texImage2D(e.TEXTURE_CUBE_MAP_POSITIVE_X+t,0,E,f[t].width,f[t].height,0,_,x,f[t].data);for(let r=0;r1;if(h||(void 0===l.__webglTexture&&(l.__webglTexture=e.createTexture()),l.__version=i.version,s.memory.textures++),u){o.__webglFramebuffer=[];for(let t=0;t<6;t++)if(i.mipmaps&&i.mipmaps.length>0){o.__webglFramebuffer[t]=[];for(let n=0;n0){o.__webglFramebuffer=[];for(let t=0;t0&&!1===N(t)){o.__webglMultisampledFramebuffer=e.createFramebuffer(),o.__webglColorRenderbuffer=[],n.bindFramebuffer(e.FRAMEBUFFER,o.__webglMultisampledFramebuffer);for(let n=0;n0)for(let r=0;r0)for(let n=0;n0)if(!1===N(t)){const i=t.textures,a=t.width,s=t.height;let o=e.COLOR_BUFFER_BIT;const c=t.stencilBuffer?e.DEPTH_STENCIL_ATTACHMENT:e.DEPTH_ATTACHMENT,u=r.get(t),h=i.length>1;if(h)for(let t=0;to+c?(l.inputState.pinching=!1,this.dispatchEvent({type:"pinchend",handedness:e.handedness,target:this})):!l.inputState.pinching&&s<=o-c&&(l.inputState.pinching=!0,this.dispatchEvent({type:"pinchstart",handedness:e.handedness,target:this}))}else null!==o&&e.gripSpace&&(i=t.getPose(e.gripSpace,n),null!==i&&(o.matrix.fromArray(i.transform.matrix),o.matrix.decompose(o.position,o.rotation,o.scale),o.matrixWorldNeedsUpdate=!0,i.linearVelocity?(o.hasLinearVelocity=!0,o.linearVelocity.copy(i.linearVelocity)):o.hasLinearVelocity=!1,i.angularVelocity?(o.hasAngularVelocity=!0,o.angularVelocity.copy(i.angularVelocity)):o.hasAngularVelocity=!1));null!==s&&(r=t.getPose(e.targetRaySpace,n),null===r&&null!==i&&(r=i),null!==r&&(s.matrix.fromArray(r.transform.matrix),s.matrix.decompose(s.position,s.rotation,s.scale),s.matrixWorldNeedsUpdate=!0,r.linearVelocity?(s.hasLinearVelocity=!0,s.linearVelocity.copy(r.linearVelocity)):s.hasLinearVelocity=!1,r.angularVelocity?(s.hasAngularVelocity=!0,s.angularVelocity.copy(r.angularVelocity)):s.hasAngularVelocity=!1,this.dispatchEvent(ql)))}return null!==s&&(s.visible=null!==r),null!==o&&(o.visible=null!==i),null!==l&&(l.visible=null!==a),this}_getHandJoint(e,t){if(void 0===e.joints[t.jointName]){const n=new Wl;n.matrixAutoUpdate=!1,n.visible=!1,e.joints[t.jointName]=n,e.add(n)}return e.joints[t.jointName]}}class Yl{constructor(){this.texture=null,this.mesh=null,this.depthNear=0,this.depthFar=0}init(e,t,n){if(null===this.texture){const r=new Er;e.properties.get(r).__webglTexture=t.texture,t.depthNear==n.depthNear&&t.depthFar==n.depthFar||(this.depthNear=t.depthNear,this.depthFar=t.depthFar),this.texture=r}}getMesh(e){if(null!==this.texture&&null===this.mesh){const t=e.cameras[0].viewport,n=new Ka({vertexShader:"\nvoid main() {\n\n\tgl_Position = vec4( position, 1.0 );\n\n}",fragmentShader:"\nuniform sampler2DArray depthColor;\nuniform float depthWidth;\nuniform float depthHeight;\n\nvoid main() {\n\n\tvec2 coord = vec2( gl_FragCoord.x / depthWidth, gl_FragCoord.y / depthHeight );\n\n\tif ( coord.x >= 1.0 ) {\n\n\t\tgl_FragDepth = texture( depthColor, vec3( coord.x - 1.0, coord.y, 1 ) ).r;\n\n\t} else {\n\n\t\tgl_FragDepth = texture( depthColor, vec3( coord.x, coord.y, 0 ) ).r;\n\n\t}\n\n}",uniforms:{depthColor:{value:this.texture},depthWidth:{value:t.z},depthHeight:{value:t.w}}});this.mesh=new za(new ms(20,20),n)}return this.mesh}reset(){this.texture=null,this.mesh=null}}class Kl extends Vn{constructor(e,t){super();const n=this;let r=null,i=1,a=null,s="local-floor",o=1,l=null,c=null,u=null,h=null,d=null,p=null;const f=new Yl,m=t.getContextAttributes();let A=null,g=null;const v=[],y=[],b=new er;let _=null;const x=new ts;x.layers.enable(1),x.viewport=new wr;const E=new ts;E.layers.enable(2),E.viewport=new wr;const w=[x,E],M=new jl;M.layers.enable(1),M.layers.enable(2);let S=null,C=null;function I(e){const t=y.indexOf(e.inputSource);if(-1===t)return;const n=v[t];void 0!==n&&(n.update(e.inputSource,e.frame,l||a),n.dispatchEvent({type:e.type,data:e.inputSource}))}function T(){r.removeEventListener("select",I),r.removeEventListener("selectstart",I),r.removeEventListener("selectend",I),r.removeEventListener("squeeze",I),r.removeEventListener("squeezestart",I),r.removeEventListener("squeezeend",I),r.removeEventListener("end",T),r.removeEventListener("inputsourceschange",B);for(let e=0;e=0&&(y[r]=null,v[r].disconnect(n))}for(let t=0;t=y.length){y.push(n),r=e;break}if(null===y[e]){y[e]=n,r=e;break}}if(-1===r)break}const i=v[r];i&&i.connect(n)}}this.cameraAutoUpdate=!0,this.enabled=!1,this.isPresenting=!1,this.getController=function(e){let t=v[e];return void 0===t&&(t=new Xl,v[e]=t),t.getTargetRaySpace()},this.getControllerGrip=function(e){let t=v[e];return void 0===t&&(t=new Xl,v[e]=t),t.getGripSpace()},this.getHand=function(e){let t=v[e];return void 0===t&&(t=new Xl,v[e]=t),t.getHandSpace()},this.setFramebufferScaleFactor=function(e){i=e,!0===n.isPresenting&&console.warn("THREE.WebXRManager: Cannot change framebuffer scale while presenting.")},this.setReferenceSpaceType=function(e){s=e,!0===n.isPresenting&&console.warn("THREE.WebXRManager: Cannot change reference space type while presenting.")},this.getReferenceSpace=function(){return l||a},this.setReferenceSpace=function(e){l=e},this.getBaseLayer=function(){return null!==h?h:d},this.getBinding=function(){return u},this.getFrame=function(){return p},this.getSession=function(){return r},this.setSession=async function(c){if(r=c,null!==r){if(A=e.getRenderTarget(),r.addEventListener("select",I),r.addEventListener("selectstart",I),r.addEventListener("selectend",I),r.addEventListener("squeeze",I),r.addEventListener("squeezestart",I),r.addEventListener("squeezeend",I),r.addEventListener("end",T),r.addEventListener("inputsourceschange",B),!0!==m.xrCompatible&&await t.makeXRCompatible(),_=e.getPixelRatio(),e.getSize(b),void 0===r.renderState.layers){const n={antialias:m.antialias,alpha:!0,depth:m.depth,stencil:m.stencil,framebufferScaleFactor:i};d=new XRWebGLLayer(r,t,n),r.updateRenderState({baseLayer:d}),e.setPixelRatio(1),e.setSize(d.framebufferWidth,d.framebufferHeight,!1),g=new Sr(d.framebufferWidth,d.framebufferHeight,{format:ze,type:Te,colorSpace:e.outputColorSpace,stencilBuffer:m.stencil})}else{let n=null,a=null,s=null;m.depth&&(s=m.stencil?t.DEPTH24_STENCIL8:t.DEPTH_COMPONENT24,n=m.stencil?qe:We,a=m.stencil?ke:Oe);const o={colorFormat:t.RGBA8,depthFormat:s,scaleFactor:i};u=new XRWebGLBinding(r,t),h=u.createProjectionLayer(o),r.updateRenderState({layers:[h]}),e.setPixelRatio(1),e.setSize(h.textureWidth,h.textureHeight,!1),g=new Sr(h.textureWidth,h.textureHeight,{format:ze,type:Te,depthTexture:new $s(h.textureWidth,h.textureHeight,a,void 0,void 0,void 0,void 0,void 0,void 0,n),stencilBuffer:m.stencil,colorSpace:e.outputColorSpace,samples:m.antialias?4:0,resolveDepthBuffer:!1===h.ignoreDepthValues})}g.isXRRenderTarget=!0,this.setFoveation(o),l=null,a=await r.requestReferenceSpace(s),U.setContext(r),U.start(),n.isPresenting=!0,n.dispatchEvent({type:"sessionstart"})}},this.getEnvironmentBlendMode=function(){if(null!==r)return r.environmentBlendMode};const R=new Pr,P=new Pr;function L(e,t){null===t?e.matrixWorld.copy(e.matrix):e.matrixWorld.multiplyMatrices(t.matrixWorld,e.matrix),e.matrixWorldInverse.copy(e.matrixWorld).invert()}this.updateCamera=function(e){if(null===r)return;null!==f.texture&&(e.near=f.depthNear,e.far=f.depthFar),M.near=E.near=x.near=e.near,M.far=E.far=x.far=e.far,S===M.near&&C===M.far||(r.updateRenderState({depthNear:M.near,depthFar:M.far}),S=M.near,C=M.far,x.near=S,x.far=C,E.near=S,E.far=C,x.updateProjectionMatrix(),E.updateProjectionMatrix(),e.updateProjectionMatrix());const t=e.parent,n=M.cameras;L(M,t);for(let e=0;e0&&(e.alphaTest.value=r.alphaTest);const i=t.get(r),a=i.envMap,s=i.envMapRotation;a&&(e.envMap.value=a,Jl.copy(s),Jl.x*=-1,Jl.y*=-1,Jl.z*=-1,a.isCubeTexture&&!1===a.isRenderTargetTexture&&(Jl.y*=-1,Jl.z*=-1),e.envMapRotation.value.setFromMatrix4(Zl.makeRotationFromEuler(Jl)),e.flipEnvMap.value=a.isCubeTexture&&!1===a.isRenderTargetTexture?-1:1,e.reflectivity.value=r.reflectivity,e.ior.value=r.ior,e.refractionRatio.value=r.refractionRatio),r.lightMap&&(e.lightMap.value=r.lightMap,e.lightMapIntensity.value=r.lightMapIntensity,n(r.lightMap,e.lightMapTransform)),r.aoMap&&(e.aoMap.value=r.aoMap,e.aoMapIntensity.value=r.aoMapIntensity,n(r.aoMap,e.aoMapTransform))}return{refreshFogUniforms:function(t,n){n.color.getRGB(t.fogColor.value,Xa(e)),n.isFog?(t.fogNear.value=n.near,t.fogFar.value=n.far):n.isFogExp2&&(t.fogDensity.value=n.density)},refreshMaterialUniforms:function(e,i,a,s,o){i.isMeshBasicMaterial||i.isMeshLambertMaterial?r(e,i):i.isMeshToonMaterial?(r(e,i),function(e,t){t.gradientMap&&(e.gradientMap.value=t.gradientMap)}(e,i)):i.isMeshPhongMaterial?(r(e,i),function(e,t){e.specular.value.copy(t.specular),e.shininess.value=Math.max(t.shininess,1e-4)}(e,i)):i.isMeshStandardMaterial?(r(e,i),function(e,t){e.metalness.value=t.metalness,t.metalnessMap&&(e.metalnessMap.value=t.metalnessMap,n(t.metalnessMap,e.metalnessMapTransform)),e.roughness.value=t.roughness,t.roughnessMap&&(e.roughnessMap.value=t.roughnessMap,n(t.roughnessMap,e.roughnessMapTransform)),t.envMap&&(e.envMapIntensity.value=t.envMapIntensity)}(e,i),i.isMeshPhysicalMaterial&&function(e,t,r){e.ior.value=t.ior,t.sheen>0&&(e.sheenColor.value.copy(t.sheenColor).multiplyScalar(t.sheen),e.sheenRoughness.value=t.sheenRoughness,t.sheenColorMap&&(e.sheenColorMap.value=t.sheenColorMap,n(t.sheenColorMap,e.sheenColorMapTransform)),t.sheenRoughnessMap&&(e.sheenRoughnessMap.value=t.sheenRoughnessMap,n(t.sheenRoughnessMap,e.sheenRoughnessMapTransform))),t.clearcoat>0&&(e.clearcoat.value=t.clearcoat,e.clearcoatRoughness.value=t.clearcoatRoughness,t.clearcoatMap&&(e.clearcoatMap.value=t.clearcoatMap,n(t.clearcoatMap,e.clearcoatMapTransform)),t.clearcoatRoughnessMap&&(e.clearcoatRoughnessMap.value=t.clearcoatRoughnessMap,n(t.clearcoatRoughnessMap,e.clearcoatRoughnessMapTransform)),t.clearcoatNormalMap&&(e.clearcoatNormalMap.value=t.clearcoatNormalMap,n(t.clearcoatNormalMap,e.clearcoatNormalMapTransform),e.clearcoatNormalScale.value.copy(t.clearcoatNormalScale),t.side===m&&e.clearcoatNormalScale.value.negate())),t.dispersion>0&&(e.dispersion.value=t.dispersion),t.iridescence>0&&(e.iridescence.value=t.iridescence,e.iridescenceIOR.value=t.iridescenceIOR,e.iridescenceThicknessMinimum.value=t.iridescenceThicknessRange[0],e.iridescenceThicknessMaximum.value=t.iridescenceThicknessRange[1],t.iridescenceMap&&(e.iridescenceMap.value=t.iridescenceMap,n(t.iridescenceMap,e.iridescenceMapTransform)),t.iridescenceThicknessMap&&(e.iridescenceThicknessMap.value=t.iridescenceThicknessMap,n(t.iridescenceThicknessMap,e.iridescenceThicknessMapTransform))),t.transmission>0&&(e.transmission.value=t.transmission,e.transmissionSamplerMap.value=r.texture,e.transmissionSamplerSize.value.set(r.width,r.height),e.transmissionLodBias.value=t.transmissionLodBias,t.transmissionMap&&(e.transmissionMap.value=t.transmissionMap,n(t.transmissionMap,e.transmissionMapTransform)),e.thickness.value=t.thickness,t.thicknessMap&&(e.thicknessMap.value=t.thicknessMap,n(t.thicknessMap,e.thicknessMapTransform)),e.attenuationDistance.value=t.attenuationDistance,e.attenuationColor.value.copy(t.attenuationColor)),t.anisotropy>0&&(e.anisotropyVector.value.set(t.anisotropy*Math.cos(t.anisotropyRotation),t.anisotropy*Math.sin(t.anisotropyRotation)),t.anisotropyMap&&(e.anisotropyMap.value=t.anisotropyMap,n(t.anisotropyMap,e.anisotropyMapTransform))),e.specularIntensity.value=t.specularIntensity,e.specularColor.value.copy(t.specularColor),t.specularColorMap&&(e.specularColorMap.value=t.specularColorMap,n(t.specularColorMap,e.specularColorMapTransform)),t.specularIntensityMap&&(e.specularIntensityMap.value=t.specularIntensityMap,n(t.specularIntensityMap,e.specularIntensityMapTransform))}(e,i,o)):i.isMeshMatcapMaterial?(r(e,i),function(e,t){t.matcap&&(e.matcap.value=t.matcap)}(e,i)):i.isMeshDepthMaterial?r(e,i):i.isMeshDistanceMaterial?(r(e,i),function(e,n){const r=t.get(n).light;e.referencePosition.value.setFromMatrixPosition(r.matrixWorld),e.nearDistance.value=r.shadow.camera.near,e.farDistance.value=r.shadow.camera.far}(e,i)):i.isMeshNormalMaterial?r(e,i):i.isLineBasicMaterial?(function(e,t){e.diffuse.value.copy(t.color),e.opacity.value=t.opacity,t.map&&(e.map.value=t.map,n(t.map,e.mapTransform))}(e,i),i.isLineDashedMaterial&&function(e,t){e.dashSize.value=t.dashSize,e.totalSize.value=t.dashSize+t.gapSize,e.scale.value=t.scale}(e,i)):i.isPointsMaterial?function(e,t,r,i){e.diffuse.value.copy(t.color),e.opacity.value=t.opacity,e.size.value=t.size*r,e.scale.value=.5*i,t.map&&(e.map.value=t.map,n(t.map,e.uvTransform)),t.alphaMap&&(e.alphaMap.value=t.alphaMap,e.alphaMapChannel.value=t.alphaMapChannel,n(t.alphaMap,e.alphaMapTransform)),t.alphaTest>0&&(e.alphaTest.value=t.alphaTest)}(e,i,a,s):i.isSpriteMaterial?function(e,t){e.diffuse.value.copy(t.color),e.opacity.value=t.opacity,e.rotation.value=t.rotation,t.map&&(e.map.value=t.map,n(t.map,e.mapTransform)),t.alphaMap&&(e.alphaMap.value=t.alphaMap,e.alphaMapChannel.value=t.alphaMapChannel,n(t.alphaMap,e.alphaMapTransform)),t.alphaTest>0&&(e.alphaTest.value=t.alphaTest)}(e,i):i.isShadowMaterial?(e.color.value.copy(i.color),e.opacity.value=i.opacity):i.isShaderMaterial&&(i.uniformsNeedUpdate=!1)}}}function ec(e,t,n,r){let i={},a={},s=[];const o=e.getParameter(e.MAX_UNIFORM_BUFFER_BINDINGS);function l(e,t,n,r){const i=e.value,a=t+"_"+n;if(void 0===r[a])return r[a]="number"==typeof i||"boolean"==typeof i?i:i.clone(),!0;{const e=r[a];if("number"==typeof i||"boolean"==typeof i){if(e!==i)return r[a]=i,!0}else if(!1===e.equals(i))return e.copy(i),!0}return!1}function c(e){const t={boundary:0,storage:0};return"number"==typeof e||"boolean"==typeof e?(t.boundary=4,t.storage=4):e.isVector2?(t.boundary=8,t.storage=8):e.isVector3||e.isColor?(t.boundary=16,t.storage=12):e.isVector4?(t.boundary=16,t.storage=16):e.isMatrix3?(t.boundary=48,t.storage=48):e.isMatrix4?(t.boundary=64,t.storage=64):e.isTexture?console.warn("THREE.WebGLRenderer: Texture samplers can not be part of an uniforms group."):console.warn("THREE.WebGLRenderer: Unsupported uniform value type.",e),t}function u(t){const n=t.target;n.removeEventListener("dispose",u);const r=s.indexOf(n.__bindingPointIndex);s.splice(r,1),e.deleteBuffer(i[n.id]),delete i[n.id],delete a[n.id]}return{bind:function(e,t){const n=t.program;r.uniformBlockBinding(e,n)},update:function(n,h){let d=i[n.id];void 0===d&&(function(e){const t=e.uniforms;let n=0;for(let e=0,r=t.length;e0&&(n+=16-r),e.__size=n,e.__cache={}}(n),d=function(t){const n=function(){for(let e=0;e0),h=!!n.morphAttributes.position,d=!!n.morphAttributes.normal,p=!!n.morphAttributes.color;let f=ee;r.toneMapped&&(null!==S&&!0!==S.isXRRenderTarget||(f=x.toneMapping));const m=n.morphAttributes.position||n.morphAttributes.normal||n.morphAttributes.color,A=void 0!==m?m.length:0,g=te.get(r),v=y.state.lights;if(!0===z&&(!0===H||e!==I)){const t=e===I&&r.id===C;de.setState(r,e,t)}let b=!1;r.version===g.__version?!g.needsLights||g.lightsStateVersion===v.state.version&&g.lightLayer===r.lightLayer?g.outputColorSpace!==o||i.isBatchedMesh&&!1===g.batching?b=!0:i.isBatchedMesh||!0!==g.batching?i.isBatchedMesh&&!0===g.batchingColor&&null===i.colorTexture||i.isBatchedMesh&&!1===g.batchingColor&&null!==i.colorTexture||i.isInstancedMesh&&!1===g.instancing?b=!0:i.isInstancedMesh||!0!==g.instancing?i.isSkinnedMesh&&!1===g.skinning?b=!0:i.isSkinnedMesh||!0!==g.skinning?i.isInstancedMesh&&!0===g.instancingColor&&null===i.instanceColor||i.isInstancedMesh&&!1===g.instancingColor&&null!==i.instanceColor||i.isInstancedMesh&&!0===g.instancingMorph&&null===i.morphTexture||i.isInstancedMesh&&!1===g.instancingMorph&&null!==i.morphTexture||g.envMap!==l||!0===r.fog&&g.fog!==a?b=!0:void 0===g.numClippingPlanes||g.numClippingPlanes===de.numPlanes&&g.numIntersection===de.numIntersection?(g.vertexAlphas!==c||g.vertexTangents!==u||g.morphTargets!==h||g.morphNormals!==d||g.morphColors!==p||g.toneMapping!==f||g.morphTargetsCount!==A)&&(b=!0):b=!0:b=!0:b=!0:b=!0:b=!0:(b=!0,g.__version=r.version),y.setLightLayer(r.lightLayer);let _=g.currentProgram;!0===b&&(_=qe(r,t,i));let E=!1,w=!1,M=!1;const T=_.getUniforms(),B=g.uniforms;if(Z.useProgram(_.program)&&(E=!0,w=!0,M=!0),r.id!==C&&(C=r.id,w=!0),E||I!==e){T.setValue(_e,"projectionMatrix",e.projectionMatrix),T.setValue(_e,"viewMatrix",e.matrixWorldInverse);const t=T.map.cameraPosition;void 0!==t&&t.setValue(_e,W.setFromMatrixPosition(e.matrixWorld)),J.logarithmicDepthBuffer&&T.setValue(_e,"logDepthBufFC",2/(Math.log(e.far+1)/Math.LN2)),(r.isMeshPhongMaterial||r.isMeshToonMaterial||r.isMeshLambertMaterial||r.isMeshBasicMaterial||r.isMeshStandardMaterial||r.isShaderMaterial)&&T.setValue(_e,"isOrthographic",!0===e.isOrthographicCamera),I!==e&&(I=e,w=!0,M=!0)}if(i.isSkinnedMesh){T.setOptional(_e,i,"bindMatrix"),T.setOptional(_e,i,"bindMatrixInverse");const e=i.skeleton;e&&(null===e.boneTexture&&e.computeBoneTexture(),T.setValue(_e,"boneTexture",e.boneTexture,ne))}i.isBatchedMesh&&(T.setOptional(_e,i,"batchingTexture"),T.setValue(_e,"batchingTexture",i._matricesTexture,ne),T.setOptional(_e,i,"batchingColorTexture"),null!==i._colorsTexture&&T.setValue(_e,"batchingColorTexture",i._colorsTexture,ne));const R=n.morphAttributes;var P,L;if(void 0===R.position&&void 0===R.normal&&void 0===R.color||me.update(i,n,_),(w||g.receiveShadow!==i.receiveShadow)&&(g.receiveShadow=i.receiveShadow,T.setValue(_e,"receiveShadow",i.receiveShadow)),r.isMeshGouraudMaterial&&null!==r.envMap&&(B.envMap.value=l,B.flipEnvMap.value=l.isCubeTexture&&!1===l.isRenderTargetTexture?-1:1),r.isMeshStandardMaterial&&null===r.envMap&&null!==t.environment&&(B.envMapIntensity.value=t.environmentIntensity),w&&(T.setValue(_e,"toneMappingExposure",x.toneMappingExposure),g.needsLights&&(L=M,(P=B).ambientLightColor.needsUpdate=L,P.lightProbe.needsUpdate=L,P.directionalLights.needsUpdate=L,P.directionalLightShadows.needsUpdate=L,P.pointLights.needsUpdate=L,P.pointLightShadows.needsUpdate=L,P.spotLights.needsUpdate=L,P.spotLightShadows.needsUpdate=L,P.rectAreaLights.needsUpdate=L,P.hemisphereLights.needsUpdate=L),a&&!0===r.fog&&ce.refreshFogUniforms(B,a),ce.refreshMaterialUniforms(B,r,D,U,y.state.transmissionRenderTarget[e.id]),al.upload(_e,Xe(g),B,ne)),r.isShaderMaterial&&!0===r.uniformsNeedUpdate&&(al.upload(_e,Xe(g),B,ne),r.uniformsNeedUpdate=!1),r.isSpriteMaterial&&T.setValue(_e,"center",i.center),T.setValue(_e,"modelViewMatrix",i.modelViewMatrix),T.setValue(_e,"normalMatrix",i.normalMatrix),T.setValue(_e,"modelMatrix",i.matrixWorld),r.isShaderMaterial||r.isRawShaderMaterial){const e=r.uniformsGroups;for(let t=0,n=e.length;t{function n(){r.forEach(function(e){te.get(e).currentProgram.isReady()&&r.delete(e)}),0!==r.size?setTimeout(n,10):t(e)}null!==K.get("KHR_parallel_shader_compile")?n():setTimeout(n,10)})};let Le=null;function Ue(){Ge.stop()}function Qe(){Ge.start()}const Ge=new ps;function Ve(e,t,n,r){if(!1===e.visible)return;if(e.layers.test(t.layers))if(e.isGroup)n=e.renderOrder;else if(e.isLOD)!0===e.autoUpdate&&e.update(t);else if(e.isLight)y.setLightLayer(e.lightLayer),y.pushLight(e),e.castShadow&&y.pushShadow(e);else if(e.isSprite){if(!e.frustumCulled||V.intersectsSprite(e)){r&&W.setFromMatrixPosition(e.matrixWorld).applyMatrix4(j);const t=oe.update(e),i=e.material;i.visible&&v.push(e,t,i,n,W.z,null)}}else if((e.isMesh||e.isLine||e.isPoints)&&(!e.frustumCulled||V.intersectsObject(e))){const t=oe.update(e),i=e.material;if(r&&(void 0!==e.boundingSphere?(null===e.boundingSphere&&e.computeBoundingSphere(),W.copy(e.boundingSphere.center)):(null===t.boundingSphere&&t.computeBoundingSphere(),W.copy(t.boundingSphere.center)),W.applyMatrix4(e.matrixWorld).applyMatrix4(j)),Array.isArray(i)){const r=t.groups;for(let a=0,s=r.length;a0&&je(i,t,n),a.length>0&&je(a,t,n),s.length>0&&je(s,t,n),Z.buffers.depth.setTest(!0),Z.buffers.depth.setMask(!0),Z.buffers.color.setMask(!0),Z.setPolygonOffset(!1)}function He(e,t,n,r){if(null!==(!0===n.isScene?n.overrideMaterial:null))return;void 0===y.state.transmissionRenderTarget[r.id]&&(y.state.transmissionRenderTarget[r.id]=new Sr(1,1,{generateMipmaps:!0,type:K.has("EXT_color_buffer_half_float")||K.has("EXT_color_buffer_float")?De:Te,minFilter:Ce,samples:4,stencilBuffer:a,resolveDepthBuffer:!1,resolveStencilBuffer:!1,colorSpace:fr.workingColorSpace}));const i=y.state.transmissionRenderTarget[r.id],s=r.viewport||T;i.setSize(s.z,s.w);const o=x.getRenderTarget();x.setRenderTarget(i),x.getClearColor(P),L=x.getClearAlpha(),L<1&&x.setClearColor(16777215,.5),X?fe.render(n):x.clear();const l=x.toneMapping;x.toneMapping=ee;const c=r.viewport;if(void 0!==r.viewport&&(r.viewport=void 0),y.setupLightsView(r),!0===z&&de.setGlobalState(x.clippingPlanes,r),je(e,n,r),ne.updateMultisampleRenderTarget(i),ne.updateRenderTargetMipmap(i),!1===K.has("WEBGL_multisampled_render_to_texture")){let e=!1;for(let i=0,a=t.length;i0)for(let t=0,a=n.length;t0&&He(r,i,e,t),X&&fe.render(e),ze(v,e,t);null!==S&&(ne.updateMultisampleRenderTarget(S),ne.updateRenderTargetMipmap(S)),!0===e.isScene&&e.onAfterRender(x,e,t),ye.resetDefaultState(),C=-1,I=null,_.pop(),_.length>0?(y=_[_.length-1],!0===z&&de.setGlobalState(x.clippingPlanes,y.state.camera)):y=null,b.pop(),v=b.length>0?b[b.length-1]:null},this.getActiveCubeFace=function(){return w},this.getActiveMipmapLevel=function(){return M},this.getRenderTarget=function(){return S},this.setRenderTargetTextures=function(e,t,n){te.get(e.texture).__webglTexture=t,te.get(e.depthTexture).__webglTexture=n;const r=te.get(e);r.__hasExternalTextures=!0,r.__autoAllocateDepthBuffer=void 0===n,r.__autoAllocateDepthBuffer||!0===K.has("WEBGL_multisampled_render_to_texture")&&(console.warn("THREE.WebGLRenderer: Render-to-texture extension was disabled because an external texture was provided"),r.__useRenderToTexture=!1)},this.setRenderTargetFramebuffer=function(e,t){const n=te.get(e);n.__webglFramebuffer=t,n.__useDefaultFramebuffer=void 0===t},this.setRenderTarget=function(e,t=0,n=0){S=e,w=t,M=n;let r=!0,i=null,a=!1,s=!1;if(e){const o=te.get(e);void 0!==o.__useDefaultFramebuffer?(Z.bindFramebuffer(_e.FRAMEBUFFER,null),r=!1):void 0===o.__webglFramebuffer?ne.setupRenderTarget(e):o.__hasExternalTextures&&ne.rebindTextures(e,te.get(e.texture).__webglTexture,te.get(e.depthTexture).__webglTexture);const l=e.texture;(l.isData3DTexture||l.isDataArrayTexture||l.isCompressedArrayTexture)&&(s=!0);const c=te.get(e).__webglFramebuffer;e.isWebGLCubeRenderTarget?(i=Array.isArray(c[t])?c[t][n]:c[t],a=!0):i=e.samples>0&&!1===ne.useMultisampledRTT(e)?te.get(e).__webglMultisampledFramebuffer:Array.isArray(c)?c[n]:c,T.copy(e.viewport),B.copy(e.scissor),R=e.scissorTest}else T.copy(k).multiplyScalar(D).floor(),B.copy(Q).multiplyScalar(D).floor(),R=G;if(Z.bindFramebuffer(_e.FRAMEBUFFER,i)&&r&&Z.drawBuffers(e,i),Z.viewport(T),Z.scissor(B),Z.setScissorTest(R),a){const r=te.get(e.texture);_e.framebufferTexture2D(_e.FRAMEBUFFER,_e.COLOR_ATTACHMENT0,_e.TEXTURE_CUBE_MAP_POSITIVE_X+t,r.__webglTexture,n)}else if(s){const r=te.get(e.texture),i=t||0;_e.framebufferTextureLayer(_e.FRAMEBUFFER,_e.COLOR_ATTACHMENT0,r.__webglTexture,n||0,i)}C=-1},this.readRenderTargetPixels=function(e,t,n,r,i,a,s){if(!e||!e.isWebGLRenderTarget)return void console.error("THREE.WebGLRenderer.readRenderTargetPixels: renderTarget is not THREE.WebGLRenderTarget.");let o=te.get(e).__webglFramebuffer;if(e.isWebGLCubeRenderTarget&&void 0!==s&&(o=o[s]),o){Z.bindFramebuffer(_e.FRAMEBUFFER,o);try{const s=e.texture,o=s.format,l=s.type;if(!J.textureFormatReadable(o))return void console.error("THREE.WebGLRenderer.readRenderTargetPixels: renderTarget is not in RGBA or implementation defined format.");if(!J.textureTypeReadable(l))return void console.error("THREE.WebGLRenderer.readRenderTargetPixels: renderTarget is not in UnsignedByteType or implementation defined type.");t>=0&&t<=e.width-r&&n>=0&&n<=e.height-i&&_e.readPixels(t,n,r,i,ve.convert(o),ve.convert(l),a)}finally{const e=null!==S?te.get(S).__webglFramebuffer:null;Z.bindFramebuffer(_e.FRAMEBUFFER,e)}}},this.readRenderTargetPixelsAsync=async function(e,t,n,r,i,a,s){if(!e||!e.isWebGLRenderTarget)throw new Error("THREE.WebGLRenderer.readRenderTargetPixels: renderTarget is not THREE.WebGLRenderTarget.");let o=te.get(e).__webglFramebuffer;if(e.isWebGLCubeRenderTarget&&void 0!==s&&(o=o[s]),o){Z.bindFramebuffer(_e.FRAMEBUFFER,o);try{const s=e.texture,o=s.format,l=s.type;if(!J.textureFormatReadable(o))throw new Error("THREE.WebGLRenderer.readRenderTargetPixelsAsync: renderTarget is not in RGBA or implementation defined format.");if(!J.textureTypeReadable(l))throw new Error("THREE.WebGLRenderer.readRenderTargetPixelsAsync: renderTarget is not in UnsignedByteType or implementation defined type.");if(t>=0&&t<=e.width-r&&n>=0&&n<=e.height-i){const e=_e.createBuffer();_e.bindBuffer(_e.PIXEL_PACK_BUFFER,e),_e.bufferData(_e.PIXEL_PACK_BUFFER,a.byteLength,_e.STREAM_READ),_e.readPixels(t,n,r,i,ve.convert(o),ve.convert(l),0),_e.flush();const s=_e.fenceSync(_e.SYNC_GPU_COMMANDS_COMPLETE,0);await function(e,t){return new Promise(function(n,r){setTimeout(function i(){switch(e.clientWaitSync(t,e.SYNC_FLUSH_COMMANDS_BIT,0)){case e.WAIT_FAILED:r();break;case e.TIMEOUT_EXPIRED:setTimeout(i,4);break;default:n()}},4)})}(_e,s);try{_e.bindBuffer(_e.PIXEL_PACK_BUFFER,e),_e.getBufferSubData(_e.PIXEL_PACK_BUFFER,0,a)}finally{_e.deleteBuffer(e),_e.deleteSync(s)}return a}}finally{const e=null!==S?te.get(S).__webglFramebuffer:null;Z.bindFramebuffer(_e.FRAMEBUFFER,e)}}},this.copyFramebufferToTexture=function(e,t=null,n=0){!0!==e.isTexture&&(console.warn("WebGLRenderer: copyFramebufferToTexture function signature has changed."),t=arguments[0]||null,e=arguments[1]);const r=Math.pow(2,-n),i=Math.floor(e.image.width*r),a=Math.floor(e.image.height*r),s=null!==t?t.x:0,o=null!==t?t.y:0;ne.setTexture2D(e,0),_e.copyTexSubImage2D(_e.TEXTURE_2D,n,0,0,s,o,i,a),Z.unbindTexture()},this.copyTextureToTexture=function(e,t,n=null,r=null,i=0){let a,s,o,l,c,u;!0!==e.isTexture&&(console.warn("WebGLRenderer: copyTextureToTexture function signature has changed."),r=arguments[0]||null,e=arguments[1],t=arguments[2],i=arguments[3]||0,n=null),null!==n?(a=n.max.x-n.min.x,s=n.max.y-n.min.y,o=n.min.x,l=n.min.y):(a=e.image.width,s=e.image.height,o=0,l=0),null!==r?(c=r.x,u=r.y):(c=0,u=0);const h=ve.convert(t.format),d=ve.convert(t.type);ne.setTexture2D(t,0),_e.pixelStorei(_e.UNPACK_FLIP_Y_WEBGL,t.flipY),_e.pixelStorei(_e.UNPACK_PREMULTIPLY_ALPHA_WEBGL,t.premultiplyAlpha),_e.pixelStorei(_e.UNPACK_ALIGNMENT,t.unpackAlignment);const p=_e.getParameter(_e.UNPACK_ROW_LENGTH),f=_e.getParameter(_e.UNPACK_IMAGE_HEIGHT),m=_e.getParameter(_e.UNPACK_SKIP_PIXELS),A=_e.getParameter(_e.UNPACK_SKIP_ROWS),g=_e.getParameter(_e.UNPACK_SKIP_IMAGES),v=e.isCompressedTexture?e.mipmaps[i]:e.image;_e.pixelStorei(_e.UNPACK_ROW_LENGTH,v.width),_e.pixelStorei(_e.UNPACK_IMAGE_HEIGHT,v.height),_e.pixelStorei(_e.UNPACK_SKIP_PIXELS,o),_e.pixelStorei(_e.UNPACK_SKIP_ROWS,l),e.isDataTexture?_e.texSubImage2D(_e.TEXTURE_2D,i,c,u,a,s,h,d,v.data):e.isCompressedTexture?_e.compressedTexSubImage2D(_e.TEXTURE_2D,i,c,u,v.width,v.height,h,v.data):_e.texSubImage2D(_e.TEXTURE_2D,i,c,u,h,d,v),_e.pixelStorei(_e.UNPACK_ROW_LENGTH,p),_e.pixelStorei(_e.UNPACK_IMAGE_HEIGHT,f),_e.pixelStorei(_e.UNPACK_SKIP_PIXELS,m),_e.pixelStorei(_e.UNPACK_SKIP_ROWS,A),_e.pixelStorei(_e.UNPACK_SKIP_IMAGES,g),0===i&&t.generateMipmaps&&_e.generateMipmap(_e.TEXTURE_2D),Z.unbindTexture()},this.copyTextureToTexture3D=function(e,t,n=null,r=null,i=0){let a,s,o,l,c,u,h,d,p;!0!==e.isTexture&&(console.warn("WebGLRenderer: copyTextureToTexture3D function signature has changed."),n=arguments[0]||null,r=arguments[1]||null,e=arguments[2],t=arguments[3],i=arguments[4]||0);const f=e.isCompressedTexture?e.mipmaps[i]:e.image;null!==n?(a=n.max.x-n.min.x,s=n.max.y-n.min.y,o=n.max.z-n.min.z,l=n.min.x,c=n.min.y,u=n.min.z):(a=f.width,s=f.height,o=f.depth,l=0,c=0,u=0),null!==r?(h=r.x,d=r.y,p=r.z):(h=0,d=0,p=0);const m=ve.convert(t.format),A=ve.convert(t.type);let g;if(t.isData3DTexture)ne.setTexture3D(t,0),g=_e.TEXTURE_3D;else{if(!t.isDataArrayTexture&&!t.isCompressedArrayTexture)return void console.warn("THREE.WebGLRenderer.copyTextureToTexture3D: only supports THREE.DataTexture3D and THREE.DataTexture2DArray.");ne.setTexture2DArray(t,0),g=_e.TEXTURE_2D_ARRAY}_e.pixelStorei(_e.UNPACK_FLIP_Y_WEBGL,t.flipY),_e.pixelStorei(_e.UNPACK_PREMULTIPLY_ALPHA_WEBGL,t.premultiplyAlpha),_e.pixelStorei(_e.UNPACK_ALIGNMENT,t.unpackAlignment);const v=_e.getParameter(_e.UNPACK_ROW_LENGTH),y=_e.getParameter(_e.UNPACK_IMAGE_HEIGHT),b=_e.getParameter(_e.UNPACK_SKIP_PIXELS),_=_e.getParameter(_e.UNPACK_SKIP_ROWS),x=_e.getParameter(_e.UNPACK_SKIP_IMAGES);_e.pixelStorei(_e.UNPACK_ROW_LENGTH,f.width),_e.pixelStorei(_e.UNPACK_IMAGE_HEIGHT,f.height),_e.pixelStorei(_e.UNPACK_SKIP_PIXELS,l),_e.pixelStorei(_e.UNPACK_SKIP_ROWS,c),_e.pixelStorei(_e.UNPACK_SKIP_IMAGES,u),e.isDataTexture||e.isData3DTexture?_e.texSubImage3D(g,i,h,d,p,a,s,o,m,A,f.data):t.isCompressedArrayTexture?_e.compressedTexSubImage3D(g,i,h,d,p,a,s,o,m,f.data):_e.texSubImage3D(g,i,h,d,p,a,s,o,m,A,f),_e.pixelStorei(_e.UNPACK_ROW_LENGTH,v),_e.pixelStorei(_e.UNPACK_IMAGE_HEIGHT,y),_e.pixelStorei(_e.UNPACK_SKIP_PIXELS,b),_e.pixelStorei(_e.UNPACK_SKIP_ROWS,_),_e.pixelStorei(_e.UNPACK_SKIP_IMAGES,x),0===i&&t.generateMipmaps&&_e.generateMipmap(g),Z.unbindTexture()},this.initRenderTarget=function(e){void 0===te.get(e).__webglFramebuffer&&ne.setupRenderTarget(e)},this.initTexture=function(e){e.isCubeTexture?ne.setTextureCube(e,0):e.isData3DTexture?ne.setTexture3D(e,0):e.isDataArrayTexture||e.isCompressedArrayTexture?ne.setTexture2DArray(e,0):ne.setTexture2D(e,0),Z.unbindTexture()},this.resetState=function(){w=0,M=0,S=null,Z.reset(),ye.reset()},"undefined"!=typeof __THREE_DEVTOOLS__&&__THREE_DEVTOOLS__.dispatchEvent(new CustomEvent("observe",{detail:this}))}get coordinateSystem(){return Qn}get outputColorSpace(){return this._outputColorSpace}set outputColorSpace(e){this._outputColorSpace=e;const t=this.getContext();t.drawingBufferColorSpace=e===Zt?"display-p3":"srgb",t.unpackColorSpace=fr.workingColorSpace===$t?"display-p3":"srgb"}}class nc{constructor(e,t=25e-5){this.isFogExp2=!0,this.name="",this.color=new Ji(e),this.density=t}clone(){return new nc(this.color,this.density)}toJSON(){return{type:"FogExp2",name:this.name,color:this.color.getHex(),density:this.density}}}class rc{constructor(e,t=1,n=1e3){this.isFog=!0,this.name="",this.color=new Ji(e),this.near=t,this.far=n}clone(){return new rc(this.color,this.near,this.far)}toJSON(){return{type:"Fog",name:this.name,color:this.color.getHex(),near:this.near,far:this.far}}}class ic extends Ui{constructor(){super(),this.isScene=!0,this.type="Scene",this.background=null,this.environment=null,this.fog=null,this.backgroundBlurriness=0,this.backgroundIntensity=1,this.backgroundRotation=new vi,this.environmentIntensity=1,this.environmentRotation=new vi,this.overrideMaterial=null,"undefined"!=typeof __THREE_DEVTOOLS__&&__THREE_DEVTOOLS__.dispatchEvent(new CustomEvent("observe",{detail:this}))}copy(e,t){return super.copy(e,t),null!==e.background&&(this.background=e.background.clone()),null!==e.environment&&(this.environment=e.environment.clone()),null!==e.fog&&(this.fog=e.fog.clone()),this.backgroundBlurriness=e.backgroundBlurriness,this.backgroundIntensity=e.backgroundIntensity,this.backgroundRotation.copy(e.backgroundRotation),this.environmentIntensity=e.environmentIntensity,this.environmentRotation.copy(e.environmentRotation),null!==e.overrideMaterial&&(this.overrideMaterial=e.overrideMaterial.clone()),this.matrixAutoUpdate=e.matrixAutoUpdate,this}toJSON(e){const t=super.toJSON(e);return null!==this.fog&&(t.object.fog=this.fog.toJSON()),this.backgroundBlurriness>0&&(t.object.backgroundBlurriness=this.backgroundBlurriness),1!==this.backgroundIntensity&&(t.object.backgroundIntensity=this.backgroundIntensity),t.object.backgroundRotation=this.backgroundRotation.toArray(),1!==this.environmentIntensity&&(t.object.environmentIntensity=this.environmentIntensity),t.object.environmentRotation=this.environmentRotation.toArray(),t}}class ac{constructor(e,t){this.isInterleavedBuffer=!0,this.array=e,this.stride=t,this.count=void 0!==e?e.length/t:0,this.usage=Tn,this._updateRange={offset:0,count:-1},this.updateRanges=[],this.version=0,this.uuid=qn()}onUploadCallback(){}set needsUpdate(e){!0===e&&this.version++}get updateRange(){return cr("THREE.InterleavedBuffer: updateRange() is deprecated and will be removed in r169. Use addUpdateRange() instead."),this._updateRange}setUsage(e){return this.usage=e,this}addUpdateRange(e,t){this.updateRanges.push({start:e,count:t})}clearUpdateRanges(){this.updateRanges.length=0}copy(e){return this.array=new e.array.constructor(e.array),this.count=e.count,this.stride=e.stride,this.usage=e.usage,this}copyAt(e,t,n){e*=this.stride,n*=t.stride;for(let r=0,i=this.stride;re.far||t.push({distance:o,point:uc.clone(),uv:Wi.getInterpolation(uc,Ac,gc,vc,yc,bc,_c,new er),face:null,object:this})}copy(e,t){return super.copy(e,t),void 0!==e.center&&this.center.copy(e.center),this.material=e.material,this}}function Ec(e,t,n,r,i,a){pc.subVectors(e,n).addScalar(.5).multiply(r),void 0!==i?(fc.x=a*pc.x-i*pc.y,fc.y=i*pc.x+a*pc.y):fc.copy(pc),e.copy(t),e.x+=fc.x,e.y+=fc.y,e.applyMatrix4(mc)}const wc=new Pr,Mc=new Pr;class Sc extends Ui{constructor(){super(),this._currentLevel=0,this.type="LOD",Object.defineProperties(this,{levels:{enumerable:!0,value:[]},isLOD:{value:!0}}),this.autoUpdate=!0}copy(e){super.copy(e,!1);const t=e.levels;for(let e=0,n=t.length;e0){let n,r;for(n=1,r=t.length;n0){wc.setFromMatrixPosition(this.matrixWorld);const n=e.ray.origin.distanceTo(wc);this.getObjectForDistance(n).raycast(e,t)}}update(e){const t=this.levels;if(t.length>1){wc.setFromMatrixPosition(e.matrixWorld),Mc.setFromMatrixPosition(this.matrixWorld);const n=wc.distanceTo(Mc)/e.zoom;let r,i;for(t[0].object.visible=!0,r=1,i=t.length;r=e))break;t[r-1].object.visible=!1,t[r].object.visible=!0}for(this._currentLevel=r-1;r=n.length&&n.push({start:-1,count:-1,z:-1});const i=n[this.index];r.push(i),this.index++,i.start=e.start,i.count=e.count,i.z=t}reset(){this.list.length=0,this.index=0}},du=new za,pu=[];function fu(e,t,n=0){const r=t.itemSize;if(e.isInterleavedBufferAttribute||e.array.constructor!==t.array.constructor){const i=e.count;for(let a=0;a65536?new Uint32Array(i):new Uint16Array(i);t.setIndex(new la(e,1))}const a=r>65536?new Uint32Array(n):new Uint16Array(n);t.setAttribute($c,new la(a,1)),this._geometryInitialized=!0}}_validateGeometry(e){if(e.getAttribute($c))throw new Error(`BatchedMesh: Geometry cannot use attribute "${$c}"`);const t=this.geometry;if(Boolean(e.getIndex())!==Boolean(t.getIndex()))throw new Error('BatchedMesh: All geometries must consistently have "index".');for(const n in t.attributes){if(n===$c)continue;if(!e.hasAttribute(n))throw new Error(`BatchedMesh: Added geometry missing "${n}". All geometries must have consistent attributes.`);const r=e.getAttribute(n),i=t.getAttribute(n);if(r.itemSize!==i.itemSize||r.normalized!==i.normalized)throw new Error("BatchedMesh: All attributes must have a consistent itemSize and normalized value.")}}setCustomSort(e){return this.customSort=e,this}computeBoundingBox(){null===this.boundingBox&&(this.boundingBox=new Ur);const e=this._geometryCount,t=this.boundingBox,n=this._active;t.makeEmpty();for(let r=0;r=this._maxGeometryCount)throw new Error("BatchedMesh: Maximum geometry count reached.");const r={vertexStart:-1,vertexCount:-1,indexStart:-1,indexCount:-1};let i=null;const a=this._reservedRanges,s=this._drawRanges,o=this._bounds;0!==this._geometryCount&&(i=a[a.length-1]),r.vertexCount=-1===t?e.getAttribute("position").count:t,r.vertexStart=null===i?0:i.vertexStart+i.vertexCount;const l=e.getIndex(),c=null!==l;if(c&&(r.indexCount=-1===n?l.count:n,r.indexStart=null===i?0:i.indexStart+i.indexCount),-1!==r.indexStart&&r.indexStart+r.indexCount>this._maxIndexCount||r.vertexStart+r.vertexCount>this._maxVertexCount)throw new Error("BatchedMesh: Reserved space request exceeds the maximum buffer size.");const u=this._visibility,h=this._active,d=this._matricesTexture,p=this._matricesTexture.image.data,f=this._colorsTexture;u.push(!0),h.push(!0);const m=this._geometryCount;this._geometryCount++,nu.toArray(p,16*m),d.needsUpdate=!0,null!==f&&(ru.toArray(f.image.data,4*m),f.needsUpdate=!0),a.push(r),s.push({start:c?r.indexStart:r.vertexStart,count:-1}),o.push({boxInitialized:!1,box:new Ur,sphereInitialized:!1,sphere:new $r});const A=this.geometry.getAttribute($c);for(let e=0;e=this._geometryCount)throw new Error("BatchedMesh: Maximum geometry count reached.");this._validateGeometry(t);const n=this.geometry,r=null!==n.getIndex(),i=n.getIndex(),a=t.getIndex(),s=this._reservedRanges[e];if(r&&a.count>s.indexCount||t.attributes.position.count>s.vertexCount)throw new Error("BatchedMesh: Reserved space not large enough for provided geometry.");const o=s.vertexStart,l=s.vertexCount;for(const e in n.attributes){if(e===$c)continue;const r=t.getAttribute(e),i=n.getAttribute(e);fu(r,i,o);const a=r.itemSize;for(let e=r.count,t=l;e=t.length||!1===t[e]||(t[e]=!1,this._visibilityChanged=!0),this}getInstanceCountAt(e){return null===this._multiDrawInstances?null:this._multiDrawInstances[e]}setInstanceCountAt(e,t){return null===this._multiDrawInstances&&(this._multiDrawInstances=new Int32Array(this._maxGeometryCount).fill(1)),this._multiDrawInstances[e]=t,e}getBoundingBoxAt(e,t){if(!1===this._active[e])return null;const n=this._bounds[e],r=n.box,i=this.geometry;if(!1===n.boxInitialized){r.makeEmpty();const t=i.index,a=i.attributes.position,s=this._drawRanges[e];for(let e=s.start,n=s.start+s.count;e=this._geometryCount||!1===n[e]||(t.toArray(i,16*e),r.needsUpdate=!0),this}getMatrixAt(e,t){const n=this._active,r=this._matricesTexture.image.data;return e>=this._geometryCount||!1===n[e]?null:t.fromArray(r,16*e)}setColorAt(e,t){null===this._colorsTexture&&this._initColorsTexture();const n=this._active,r=this._colorsTexture,i=this._colorsTexture.image.data;return e>=this._geometryCount||!1===n[e]||(t.toArray(i,4*e),r.needsUpdate=!0),this}getColorAt(e,t){const n=this._active,r=this._colorsTexture.image.data;return e>=this._geometryCount||!1===n[e]?null:t.fromArray(r,4*e)}setVisibleAt(e,t){const n=this._visibility,r=this._active;return e>=this._geometryCount||!1===r[e]||n[e]===t||(n[e]=t,this._visibilityChanged=!0),this}getVisibleAt(e){const t=this._visibility,n=this._active;return!(e>=this._geometryCount||!1===n[e])&&t[e]}raycast(e,t){const n=this._visibility,r=this._active,i=this._drawRanges,a=this._geometryCount,s=this.matrixWorld,o=this.geometry;du.material=this.material,du.geometry.index=o.index,du.geometry.attributes=o.attributes,null===du.geometry.boundingBox&&(du.geometry.boundingBox=new Ur),null===du.geometry.boundingSphere&&(du.geometry.boundingSphere=new $r);for(let o=0;o({...e})),this._reservedRanges=e._reservedRanges.map(e=>({...e})),this._visibility=e._visibility.slice(),this._active=e._active.slice(),this._bounds=e._bounds.map(e=>({boxInitialized:e.boxInitialized,box:e.box.clone(),sphereInitialized:e.sphereInitialized,sphere:e.sphere.clone()})),this._maxGeometryCount=e._maxGeometryCount,this._maxVertexCount=e._maxVertexCount,this._maxIndexCount=e._maxIndexCount,this._geometryInitialized=e._geometryInitialized,this._geometryCount=e._geometryCount,this._multiDrawCounts=e._multiDrawCounts.slice(),this._multiDrawStarts=e._multiDrawStarts.slice(),this._matricesTexture=e._matricesTexture.clone(),this._matricesTexture.image.data=this._matricesTexture.image.slice(),null!==this._colorsTexture&&(this._colorsTexture=e._colorsTexture.clone(),this._colorsTexture.image.data=this._colorsTexture.image.slice()),this}dispose(){return this.geometry.dispose(),this._matricesTexture.dispose(),this._matricesTexture=null,null!==this._colorsTexture&&(this._colorsTexture.dispose(),this._colorsTexture=null),this}onBeforeRender(e,t,n,r,i){if(!this._visibilityChanged&&!this.perObjectFrustumCulled&&!this.sortObjects)return;const a=r.getIndex(),s=null===a?1:a.array.BYTES_PER_ELEMENT,o=this._active,l=this._visibility,c=this._multiDrawStarts,u=this._multiDrawCounts,h=this._drawRanges,d=this.perObjectFrustumCulled;d&&(iu.multiplyMatrices(n.projectionMatrix,n.matrixWorldInverse).multiply(this.matrixWorld),au.setFromProjectionMatrix(iu,e.coordinateSystem));let p=0;if(this.sortObjects){tu.copy(this.matrixWorld).invert(),lu.setFromMatrixPosition(n.matrixWorld).applyMatrix4(tu),cu.set(0,0,-1).transformDirection(n.matrixWorld).transformDirection(tu);for(let e=0,t=l.length;e0){const n=e[t[0]];if(void 0!==n){this.morphTargetInfluences=[],this.morphTargetDictionary={};for(let e=0,t=n.length;er)return;xu.applyMatrix4(e.matrixWorld);const o=t.ray.origin.distanceTo(xu);return ot.far?void 0:{distance:o,point:Eu.clone().applyMatrix4(e.matrixWorld),index:i,face:null,faceIndex:null,object:e}}const Su=new Pr,Cu=new Pr;class Iu extends wu{constructor(e,t){super(e,t),this.isLineSegments=!0,this.type="LineSegments"}computeLineDistances(){const e=this.geometry;if(null===e.index){const t=e.attributes.position,n=[];for(let e=0,r=t.count;e0){const n=e[t[0]];if(void 0!==n){this.morphTargetInfluences=[],this.morphTargetDictionary={};for(let e=0,t=n.length;ei.far)return;a.push({distance:l,distanceToRay:Math.sqrt(o),point:n,index:t,face:null,object:s})}}class Fu extends Er{constructor(e,t,n,r,i,a,s,o,l){super(e,t,n,r,i,a,s,o,l),this.isVideoTexture=!0,this.minFilter=void 0!==a?a:we,this.magFilter=void 0!==i?i:we,this.generateMipmaps=!1;const c=this;"requestVideoFrameCallback"in e&&e.requestVideoFrameCallback(function t(){c.needsUpdate=!0,e.requestVideoFrameCallback(t)})}clone(){return new this.constructor(this.image).copy(this)}update(){const e=this.image;0=="requestVideoFrameCallback"in e&&e.readyState>=e.HAVE_CURRENT_DATA&&(this.needsUpdate=!0)}}class Nu extends Er{constructor(e,t){super({width:e,height:t}),this.isFramebufferTexture=!0,this.magFilter=ye,this.minFilter=ye,this.generateMipmaps=!1,this.needsUpdate=!0}}class ku extends Er{constructor(e,t,n,r,i,a,s,o,l,c,u,h){super(null,a,s,o,l,c,r,i,u,h),this.isCompressedTexture=!0,this.image={width:t,height:n},this.mipmaps=e,this.flipY=!1,this.generateMipmaps=!1}}class Qu extends ku{constructor(e,t,n,r,i,a){super(e,t,n,i,a),this.isCompressedArrayTexture=!0,this.image.depth=r,this.wrapR=ge,this.layerUpdates=new Set}addLayerUpdates(e){this.layerUpdates.add(e)}clearLayerUpdates(){this.layerUpdates.clear()}}class Gu extends ku{constructor(e,t,n){super(void 0,e[0].width,e[0].height,t,n,he),this.isCompressedCubeTexture=!0,this.isCubeTexture=!0,this.image=e}}class Vu extends Er{constructor(e,t,n,r,i,a,s,o,l){super(e,t,n,r,i,a,s,o,l),this.isCanvasTexture=!0,this.needsUpdate=!0}}class zu{constructor(){this.type="Curve",this.arcLengthDivisions=200}getPoint(){return console.warn("THREE.Curve: .getPoint() not implemented."),null}getPointAt(e,t){const n=this.getUtoTmapping(e);return this.getPoint(n,t)}getPoints(e=5){const t=[];for(let n=0;n<=e;n++)t.push(this.getPoint(n/e));return t}getSpacedPoints(e=5){const t=[];for(let n=0;n<=e;n++)t.push(this.getPointAt(n/e));return t}getLength(){const e=this.getLengths();return e[e.length-1]}getLengths(e=this.arcLengthDivisions){if(this.cacheArcLengths&&this.cacheArcLengths.length===e+1&&!this.needsUpdate)return this.cacheArcLengths;this.needsUpdate=!1;const t=[];let n,r=this.getPoint(0),i=0;t.push(0);for(let a=1;a<=e;a++)n=this.getPoint(a/e),i+=n.distanceTo(r),t.push(i),r=n;return this.cacheArcLengths=t,t}updateArcLengths(){this.needsUpdate=!0,this.getLengths()}getUtoTmapping(e,t){const n=this.getLengths();let r=0;const i=n.length;let a;a=t||e*n[i-1];let s,o=0,l=i-1;for(;o<=l;)if(r=Math.floor(o+(l-o)/2),s=n[r]-a,s<0)o=r+1;else{if(!(s>0)){l=r;break}l=r-1}if(r=l,n[r]===a)return r/(i-1);const c=n[r];return(r+(a-c)/(n[r+1]-c))/(i-1)}getTangent(e,t){const n=1e-4;let r=e-n,i=e+n;r<0&&(r=0),i>1&&(i=1);const a=this.getPoint(r),s=this.getPoint(i),o=t||(a.isVector2?new er:new Pr);return o.copy(s).sub(a).normalize(),o}getTangentAt(e,t){const n=this.getUtoTmapping(e);return this.getTangent(n,t)}computeFrenetFrames(e,t){const n=new Pr,r=[],i=[],a=[],s=new Pr,o=new li;for(let t=0;t<=e;t++){const n=t/e;r[t]=this.getTangentAt(n,new Pr)}i[0]=new Pr,a[0]=new Pr;let l=Number.MAX_VALUE;const c=Math.abs(r[0].x),u=Math.abs(r[0].y),h=Math.abs(r[0].z);c<=l&&(l=c,n.set(1,0,0)),u<=l&&(l=u,n.set(0,1,0)),h<=l&&n.set(0,0,1),s.crossVectors(r[0],n).normalize(),i[0].crossVectors(r[0],s),a[0].crossVectors(r[0],i[0]);for(let t=1;t<=e;t++){if(i[t]=i[t-1].clone(),a[t]=a[t-1].clone(),s.crossVectors(r[t-1],r[t]),s.length()>Number.EPSILON){s.normalize();const e=Math.acos(Xn(r[t-1].dot(r[t]),-1,1));i[t].applyMatrix4(o.makeRotationAxis(s,e))}a[t].crossVectors(r[t],i[t])}if(!0===t){let t=Math.acos(Xn(i[0].dot(i[e]),-1,1));t/=e,r[0].dot(s.crossVectors(i[0],i[e]))>0&&(t=-t);for(let n=1;n<=e;n++)i[n].applyMatrix4(o.makeRotationAxis(r[n],t*n)),a[n].crossVectors(r[n],i[n])}return{tangents:r,normals:i,binormals:a}}clone(){return(new this.constructor).copy(this)}copy(e){return this.arcLengthDivisions=e.arcLengthDivisions,this}toJSON(){const e={metadata:{version:4.6,type:"Curve",generator:"Curve.toJSON"}};return e.arcLengthDivisions=this.arcLengthDivisions,e.type=this.type,e}fromJSON(e){return this.arcLengthDivisions=e.arcLengthDivisions,this}}class Hu extends zu{constructor(e=0,t=0,n=1,r=1,i=0,a=2*Math.PI,s=!1,o=0){super(),this.isEllipseCurve=!0,this.type="EllipseCurve",this.aX=e,this.aY=t,this.xRadius=n,this.yRadius=r,this.aStartAngle=i,this.aEndAngle=a,this.aClockwise=s,this.aRotation=o}getPoint(e,t=new er){const n=t,r=2*Math.PI;let i=this.aEndAngle-this.aStartAngle;const a=Math.abs(i)r;)i-=r;i0?0:(Math.floor(Math.abs(l)/i)+1)*i:0===c&&l===i-1&&(l=i-2,c=1),this.closed||l>0?s=r[(l-1)%i]:(qu.subVectors(r[0],r[1]).add(r[0]),s=qu);const u=r[l%i],h=r[(l+1)%i];if(this.closed||l+2r.length-2?r.length-1:a+1],u=r[a>r.length-3?r.length-1:a+2];return n.set(Zu(s,o.x,l.x,c.x,u.x),Zu(s,o.y,l.y,c.y,u.y)),n}copy(e){super.copy(e),this.points=[];for(let t=0,n=e.points.length;t=n){const e=r[i]-n,a=this.curves[i],s=a.getLength(),o=0===s?0:1-e/s;return a.getPointAt(o,t)}i++}return null}getLength(){const e=this.getCurveLengths();return e[e.length-1]}updateArcLengths(){this.needsUpdate=!0,this.cacheLengths=null,this.getCurveLengths()}getCurveLengths(){if(this.cacheLengths&&this.cacheLengths.length===this.curves.length)return this.cacheLengths;const e=[];let t=0;for(let n=0,r=this.curves.length;n1&&!t[t.length-1].equals(t[0])&&t.push(t[0]),t}copy(e){super.copy(e),this.curves=[];for(let t=0,n=e.curves.length;t0){const e=l.getPoint(0);e.equals(this.currentPoint)||this.lineTo(e.x,e.y)}this.curves.push(l);const c=l.getPoint(1);return this.currentPoint.copy(c),this}copy(e){return super.copy(e),this.currentPoint.copy(e.currentPoint),this}toJSON(){const e=super.toJSON();return e.currentPoint=this.currentPoint.toArray(),e}fromJSON(e){return super.fromJSON(e),this.currentPoint.fromArray(e.currentPoint),this}}class hh extends Ma{constructor(e=[new er(0,-.5),new er(.5,0),new er(0,.5)],t=12,n=0,r=2*Math.PI){super(),this.type="LatheGeometry",this.parameters={points:e,segments:t,phiStart:n,phiLength:r},t=Math.floor(t),r=Xn(r,0,2*Math.PI);const i=[],a=[],s=[],o=[],l=[],c=1/t,u=new Pr,h=new er,d=new Pr,p=new Pr,f=new Pr;let m=0,A=0;for(let t=0;t<=e.length-1;t++)switch(t){case 0:m=e[t+1].x-e[t].x,A=e[t+1].y-e[t].y,d.x=1*A,d.y=-m,d.z=0*A,f.copy(d),d.normalize(),o.push(d.x,d.y,d.z);break;case e.length-1:o.push(f.x,f.y,f.z);break;default:m=e[t+1].x-e[t].x,A=e[t+1].y-e[t].y,d.x=1*A,d.y=-m,d.z=0*A,p.copy(d),d.x+=f.x,d.y+=f.y,d.z+=f.z,d.normalize(),o.push(d.x,d.y,d.z),f.copy(p)}for(let i=0;i<=t;i++){const d=n+i*c*r,p=Math.sin(d),f=Math.cos(d);for(let n=0;n<=e.length-1;n++){u.x=e[n].x*p,u.y=e[n].y,u.z=e[n].x*f,a.push(u.x,u.y,u.z),h.x=i/t,h.y=n/(e.length-1),s.push(h.x,h.y);const r=o[3*n+0]*p,c=o[3*n+1],d=o[3*n+0]*f;l.push(r,c,d)}}for(let n=0;n0&&g(!0),t>0&&g(!1)),this.setIndex(c),this.setAttribute("position",new ga(u,3)),this.setAttribute("normal",new ga(h,3)),this.setAttribute("uv",new ga(d,2))}copy(e){return super.copy(e),this.parameters=Object.assign({},e.parameters),this}static fromJSON(e){return new fh(e.radiusTop,e.radiusBottom,e.height,e.radialSegments,e.heightSegments,e.openEnded,e.thetaStart,e.thetaLength)}}class mh extends fh{constructor(e=1,t=1,n=32,r=1,i=!1,a=0,s=2*Math.PI){super(0,e,t,n,r,i,a,s),this.type="ConeGeometry",this.parameters={radius:e,height:t,radialSegments:n,heightSegments:r,openEnded:i,thetaStart:a,thetaLength:s}}static fromJSON(e){return new mh(e.radius,e.height,e.radialSegments,e.heightSegments,e.openEnded,e.thetaStart,e.thetaLength)}}class Ah extends Ma{constructor(e=[],t=[],n=1,r=0){super(),this.type="PolyhedronGeometry",this.parameters={vertices:e,indices:t,radius:n,detail:r};const i=[],a=[];function s(e,t,n,r){const i=r+1,a=[];for(let r=0;r<=i;r++){a[r]=[];const s=e.clone().lerp(n,r/i),o=t.clone().lerp(n,r/i),l=i-r;for(let e=0;e<=l;e++)a[r][e]=0===e&&r===i?s:s.clone().lerp(o,e/l)}for(let e=0;e.9&&s<.1&&(t<.2&&(a[e+0]+=1),n<.2&&(a[e+2]+=1),r<.2&&(a[e+4]+=1))}}()}(),this.setAttribute("position",new ga(i,3)),this.setAttribute("normal",new ga(i.slice(),3)),this.setAttribute("uv",new ga(a,2)),0===r?this.computeVertexNormals():this.normalizeNormals()}copy(e){return super.copy(e),this.parameters=Object.assign({},e.parameters),this}static fromJSON(e){return new Ah(e.vertices,e.indices,e.radius,e.details)}}class gh extends Ah{constructor(e=1,t=0){const n=(1+Math.sqrt(5))/2,r=1/n;super([-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,-r,-n,0,-r,n,0,r,-n,0,r,n,-r,-n,0,-r,n,0,r,-n,0,r,n,0,-n,0,-r,n,0,-r,-n,0,r,n,0,r],[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],e,t),this.type="DodecahedronGeometry",this.parameters={radius:e,detail:t}}static fromJSON(e){return new gh(e.radius,e.detail)}}const vh=new Pr,yh=new Pr,bh=new Pr,_h=new Wi;class xh extends Ma{constructor(e=null,t=1){if(super(),this.type="EdgesGeometry",this.parameters={geometry:e,thresholdAngle:t},null!==e){const n=4,r=Math.pow(10,n),i=Math.cos(jn*t),a=e.getIndex(),s=e.getAttribute("position"),o=a?a.count:s.count,l=[0,0,0],c=["a","b","c"],u=new Array(3),h={},d=[];for(let e=0;e0)for(a=t;a=t;a-=r)s=jh(a,e[a],e[a+1],s);return s&&kh(s,s.next)&&(Wh(s),s=s.next),s}function Mh(e,t){if(!e)return e;t||(t=e);let n,r=e;do{if(n=!1,r.steiner||!kh(r,r.next)&&0!==Nh(r.prev,r,r.next))r=r.next;else{if(Wh(r),r=t=r.prev,r===r.next)break;n=!0}}while(n||r!==t);return t}function Sh(e,t,n,r,i,a,s){if(!e)return;!s&&a&&function(e,t,n,r){let i=e;do{0===i.z&&(i.z=Oh(i.x,i.y,t,n,r)),i.prevZ=i.prev,i.nextZ=i.next,i=i.next}while(i!==e);i.prevZ.nextZ=null,i.prevZ=null,function(e){let t,n,r,i,a,s,o,l,c=1;do{for(n=e,e=null,a=null,s=0;n;){for(s++,r=n,o=0,t=0;t0||l>0&&r;)0!==o&&(0===l||!r||n.z<=r.z)?(i=n,n=n.nextZ,o--):(i=r,r=r.nextZ,l--),a?a.nextZ=i:e=i,i.prevZ=a,a=i;n=r}a.nextZ=null,c*=2}while(s>1)}(i)}(e,r,i,a);let o,l,c=e;for(;e.prev!==e.next;)if(o=e.prev,l=e.next,a?Ih(e,r,i,a):Ch(e))t.push(o.i/n|0),t.push(e.i/n|0),t.push(l.i/n|0),Wh(e),e=l.next,c=l.next;else if((e=l)===c){s?1===s?Sh(e=Th(Mh(e),t,n),t,n,r,i,a,2):2===s&&Bh(e,t,n,r,i,a):Sh(Mh(e),t,n,r,i,a,1);break}}function Ch(e){const t=e.prev,n=e,r=e.next;if(Nh(t,n,r)>=0)return!1;const i=t.x,a=n.x,s=r.x,o=t.y,l=n.y,c=r.y,u=ia?i>s?i:s:a>s?a:s,p=o>l?o>c?o:c:l>c?l:c;let f=r.next;for(;f!==t;){if(f.x>=u&&f.x<=d&&f.y>=h&&f.y<=p&&Dh(i,o,a,l,s,c,f.x,f.y)&&Nh(f.prev,f,f.next)>=0)return!1;f=f.next}return!0}function Ih(e,t,n,r){const i=e.prev,a=e,s=e.next;if(Nh(i,a,s)>=0)return!1;const o=i.x,l=a.x,c=s.x,u=i.y,h=a.y,d=s.y,p=ol?o>c?o:c:l>c?l:c,A=u>h?u>d?u:d:h>d?h:d,g=Oh(p,f,t,n,r),v=Oh(m,A,t,n,r);let y=e.prevZ,b=e.nextZ;for(;y&&y.z>=g&&b&&b.z<=v;){if(y.x>=p&&y.x<=m&&y.y>=f&&y.y<=A&&y!==i&&y!==s&&Dh(o,u,l,h,c,d,y.x,y.y)&&Nh(y.prev,y,y.next)>=0)return!1;if(y=y.prevZ,b.x>=p&&b.x<=m&&b.y>=f&&b.y<=A&&b!==i&&b!==s&&Dh(o,u,l,h,c,d,b.x,b.y)&&Nh(b.prev,b,b.next)>=0)return!1;b=b.nextZ}for(;y&&y.z>=g;){if(y.x>=p&&y.x<=m&&y.y>=f&&y.y<=A&&y!==i&&y!==s&&Dh(o,u,l,h,c,d,y.x,y.y)&&Nh(y.prev,y,y.next)>=0)return!1;y=y.prevZ}for(;b&&b.z<=v;){if(b.x>=p&&b.x<=m&&b.y>=f&&b.y<=A&&b!==i&&b!==s&&Dh(o,u,l,h,c,d,b.x,b.y)&&Nh(b.prev,b,b.next)>=0)return!1;b=b.nextZ}return!0}function Th(e,t,n){let r=e;do{const i=r.prev,a=r.next.next;!kh(i,a)&&Qh(i,r,r.next,a)&&zh(i,a)&&zh(a,i)&&(t.push(i.i/n|0),t.push(r.i/n|0),t.push(a.i/n|0),Wh(r),Wh(r.next),r=e=a),r=r.next}while(r!==e);return Mh(r)}function Bh(e,t,n,r,i,a){let s=e;do{let e=s.next.next;for(;e!==s.prev;){if(s.i!==e.i&&Fh(s,e)){let o=Hh(s,e);return s=Mh(s,s.next),o=Mh(o,o.next),Sh(s,t,n,r,i,a,0),void Sh(o,t,n,r,i,a,0)}e=e.next}s=s.next}while(s!==e)}function Rh(e,t){return e.x-t.x}function Ph(e,t){const n=function(e,t){let n,r=t,i=-1/0;const a=e.x,s=e.y;do{if(s<=r.y&&s>=r.next.y&&r.next.y!==r.y){const e=r.x+(s-r.y)*(r.next.x-r.x)/(r.next.y-r.y);if(e<=a&&e>i&&(i=e,n=r.x=r.x&&r.x>=l&&a!==r.x&&Dh(sn.x||r.x===n.x&&Lh(n,r)))&&(n=r,h=u)),r=r.next}while(r!==o);return n}(e,t);if(!n)return t;const r=Hh(n,e);return Mh(r,r.next),Mh(n,n.next)}function Lh(e,t){return Nh(e.prev,e,t.prev)<0&&Nh(t.next,e,e.next)<0}function Oh(e,t,n,r,i){return(e=1431655765&((e=858993459&((e=252645135&((e=16711935&((e=(e-n)*i|0)|e<<8))|e<<4))|e<<2))|e<<1))|(t=1431655765&((t=858993459&((t=252645135&((t=16711935&((t=(t-r)*i|0)|t<<8))|t<<4))|t<<2))|t<<1))<<1}function Uh(e){let t=e,n=e;do{(t.x=(e-s)*(a-o)&&(e-s)*(r-o)>=(n-s)*(t-o)&&(n-s)*(a-o)>=(i-s)*(r-o)}function Fh(e,t){return e.next.i!==t.i&&e.prev.i!==t.i&&!function(e,t){let n=e;do{if(n.i!==e.i&&n.next.i!==e.i&&n.i!==t.i&&n.next.i!==t.i&&Qh(n,n.next,e,t))return!0;n=n.next}while(n!==e);return!1}(e,t)&&(zh(e,t)&&zh(t,e)&&function(e,t){let n=e,r=!1;const i=(e.x+t.x)/2,a=(e.y+t.y)/2;do{n.y>a!=n.next.y>a&&n.next.y!==n.y&&i<(n.next.x-n.x)*(a-n.y)/(n.next.y-n.y)+n.x&&(r=!r),n=n.next}while(n!==e);return r}(e,t)&&(Nh(e.prev,e,t.prev)||Nh(e,t.prev,t))||kh(e,t)&&Nh(e.prev,e,e.next)>0&&Nh(t.prev,t,t.next)>0)}function Nh(e,t,n){return(t.y-e.y)*(n.x-t.x)-(t.x-e.x)*(n.y-t.y)}function kh(e,t){return e.x===t.x&&e.y===t.y}function Qh(e,t,n,r){const i=Vh(Nh(e,t,n)),a=Vh(Nh(e,t,r)),s=Vh(Nh(n,r,e)),o=Vh(Nh(n,r,t));return i!==a&&s!==o||!(0!==i||!Gh(e,n,t))||!(0!==a||!Gh(e,r,t))||!(0!==s||!Gh(n,e,r))||!(0!==o||!Gh(n,t,r))}function Gh(e,t,n){return t.x<=Math.max(e.x,n.x)&&t.x>=Math.min(e.x,n.x)&&t.y<=Math.max(e.y,n.y)&&t.y>=Math.min(e.y,n.y)}function Vh(e){return e>0?1:e<0?-1:0}function zh(e,t){return Nh(e.prev,e,e.next)<0?Nh(e,t,e.next)>=0&&Nh(e,e.prev,t)>=0:Nh(e,t,e.prev)<0||Nh(e,e.next,t)<0}function Hh(e,t){const n=new qh(e.i,e.x,e.y),r=new qh(t.i,t.x,t.y),i=e.next,a=t.prev;return e.next=t,t.prev=e,n.next=i,i.prev=n,r.next=n,n.prev=r,a.next=r,r.prev=a,r}function jh(e,t,n,r){const i=new qh(e,t,n);return r?(i.next=r.next,i.prev=r,r.next.prev=i,r.next=i):(i.prev=i,i.next=i),i}function Wh(e){e.next.prev=e.prev,e.prev.next=e.next,e.prevZ&&(e.prevZ.nextZ=e.nextZ),e.nextZ&&(e.nextZ.prevZ=e.prevZ)}function qh(e,t,n){this.i=e,this.x=t,this.y=n,this.prev=null,this.next=null,this.z=0,this.prevZ=null,this.nextZ=null,this.steiner=!1}class Xh{static area(e){const t=e.length;let n=0;for(let r=t-1,i=0;i80*n){o=c=e[0],l=u=e[1];for(let t=n;tc&&(c=h),d>u&&(u=d);p=Math.max(c-o,u-l),p=0!==p?32767/p:0}return Sh(a,s,n,o,l,p,0),s}(n,r);for(let e=0;e2&&e[t-1].equals(e[0])&&e.pop()}function Kh(e,t){for(let n=0;nNumber.EPSILON){const h=Math.sqrt(u),d=Math.sqrt(l*l+c*c),p=t.x-o/h,f=t.y+s/h,m=((n.x-c/d-p)*c-(n.y+l/d-f)*l)/(s*c-o*l);r=p+s*m-e.x,i=f+o*m-e.y;const A=r*r+i*i;if(A<=2)return new er(r,i);a=Math.sqrt(A/2)}else{let e=!1;s>Number.EPSILON?l>Number.EPSILON&&(e=!0):s<-Number.EPSILON?l<-Number.EPSILON&&(e=!0):Math.sign(o)===Math.sign(c)&&(e=!0),e?(r=-o,i=s,a=Math.sqrt(u)):(r=s,i=o,a=Math.sqrt(u/2))}return new er(r/a,i/a)}const R=[];for(let e=0,t=S.length,n=t-1,r=e+1;e=0;e--){const t=e/p,n=u*Math.cos(t*Math.PI/2),r=h*Math.sin(t*Math.PI/2)+d;for(let e=0,t=S.length;e=0;){const r=n;let i=n-1;i<0&&(i=e.length-1);for(let e=0,n=o+2*p;e0)&&d.push(t,i,l),(e!==n-1||o0!=e>0&&this.version++,this._anisotropy=e}get clearcoat(){return this._clearcoat}set clearcoat(e){this._clearcoat>0!=e>0&&this.version++,this._clearcoat=e}get iridescence(){return this._iridescence}set iridescence(e){this._iridescence>0!=e>0&&this.version++,this._iridescence=e}get dispersion(){return this._dispersion}set dispersion(e){this._dispersion>0!=e>0&&this.version++,this._dispersion=e}get sheen(){return this._sheen}set sheen(e){this._sheen>0!=e>0&&this.version++,this._sheen=e}get transmission(){return this._transmission}set transmission(e){this._transmission>0!=e>0&&this.version++,this._transmission=e}get transmissionLodBias(){return this._transmissionLodBias}set transmissionLodBias(e){this._transmissionLodBias>0!=e>0&&this.version++,this._transmissionLodBias=e}copy(e){return super.copy(e),this.defines={STANDARD:"",PHYSICAL:""},this.anisotropy=e.anisotropy,this.anisotropyRotation=e.anisotropyRotation,this.anisotropyMap=e.anisotropyMap,this.clearcoat=e.clearcoat,this.clearcoatMap=e.clearcoatMap,this.clearcoatRoughness=e.clearcoatRoughness,this.clearcoatRoughnessMap=e.clearcoatRoughnessMap,this.clearcoatNormalMap=e.clearcoatNormalMap,this.clearcoatNormalScale.copy(e.clearcoatNormalScale),this.dispersion=e.dispersion,this.ior=e.ior,this.iridescence=e.iridescence,this.iridescenceMap=e.iridescenceMap,this.iridescenceIOR=e.iridescenceIOR,this.iridescenceThicknessRange=[...e.iridescenceThicknessRange],this.iridescenceThicknessMap=e.iridescenceThicknessMap,this.sheen=e.sheen,this.sheenColor.copy(e.sheenColor),this.sheenColorMap=e.sheenColorMap,this.sheenRoughness=e.sheenRoughness,this.sheenRoughnessMap=e.sheenRoughnessMap,this.transmission=e.transmission,this.transmissionMap=e.transmissionMap,this.transmissionLodBias=e.transmissionLodBias,this.thickness=e.thickness,this.thicknessMap=e.thicknessMap,this.attenuationDistance=e.attenuationDistance,this.attenuationColor.copy(e.attenuationColor),this.specularIntensity=e.specularIntensity,this.specularIntensityMap=e.specularIntensityMap,this.specularColor.copy(e.specularColor),this.specularColorMap=e.specularColorMap,this}}class md extends ea{constructor(e){super(),this.isMeshPhongMaterial=!0,this.type="MeshPhongMaterial",this.color=new Ji(16777215),this.specular=new Ji(1118481),this.shininess=30,this.map=null,this.lightMap=null,this.lightMapIntensity=1,this.aoMap=null,this.aoMapIntensity=1,this.emissive=new Ji(0),this.emissiveIntensity=1,this.emissiveMap=null,this.bumpMap=null,this.bumpScale=1,this.normalMap=null,this.normalMapType=qt,this.normalScale=new er(1,1),this.displacementMap=null,this.displacementScale=1,this.displacementBias=0,this.specularMap=null,this.alphaMap=null,this.alphaMapChannel=0,this.envMap=null,this.envMapRotation=new vi,this.combine=J,this.reflectivity=1,this.refractionRatio=.98,this.wireframe=!1,this.wireframeLinewidth=1,this.wireframeLinecap="round",this.wireframeLinejoin="round",this.flatShading=!1,this.fog=!0,this.setValues(e)}copy(e){return super.copy(e),this.color.copy(e.color),this.specular.copy(e.specular),this.shininess=e.shininess,this.map=e.map,this.lightMap=e.lightMap,this.lightMapIntensity=e.lightMapIntensity,this.aoMap=e.aoMap,this.aoMapIntensity=e.aoMapIntensity,this.emissive.copy(e.emissive),this.emissiveMap=e.emissiveMap,this.emissiveIntensity=e.emissiveIntensity,this.bumpMap=e.bumpMap,this.bumpScale=e.bumpScale,this.normalMap=e.normalMap,this.normalMapType=e.normalMapType,this.normalScale.copy(e.normalScale),this.displacementMap=e.displacementMap,this.displacementScale=e.displacementScale,this.displacementBias=e.displacementBias,this.specularMap=e.specularMap,this.alphaMap=e.alphaMap,this.alphaMapChannel=e.alphaMapChannel,this.envMap=e.envMap,this.envMapRotation.copy(e.envMapRotation),this.combine=e.combine,this.reflectivity=e.reflectivity,this.refractionRatio=e.refractionRatio,this.wireframe=e.wireframe,this.wireframeLinewidth=e.wireframeLinewidth,this.wireframeLinecap=e.wireframeLinecap,this.wireframeLinejoin=e.wireframeLinejoin,this.flatShading=e.flatShading,this.fog=e.fog,this}}class Ad extends ea{constructor(e){super(),this.isMeshToonMaterial=!0,this.defines={TOON:""},this.type="MeshToonMaterial",this.color=new Ji(16777215),this.map=null,this.gradientMap=null,this.lightMap=null,this.lightMapIntensity=1,this.aoMap=null,this.aoMapIntensity=1,this.emissive=new Ji(0),this.emissiveIntensity=1,this.emissiveMap=null,this.bumpMap=null,this.bumpScale=1,this.normalMap=null,this.normalMapType=qt,this.normalScale=new er(1,1),this.displacementMap=null,this.displacementScale=1,this.displacementBias=0,this.alphaMap=null,this.alphaMapChannel=0,this.wireframe=!1,this.wireframeLinewidth=1,this.wireframeLinecap="round",this.wireframeLinejoin="round",this.fog=!0,this.setValues(e)}copy(e){return super.copy(e),this.color.copy(e.color),this.map=e.map,this.gradientMap=e.gradientMap,this.lightMap=e.lightMap,this.lightMapIntensity=e.lightMapIntensity,this.aoMap=e.aoMap,this.aoMapIntensity=e.aoMapIntensity,this.emissive.copy(e.emissive),this.emissiveMap=e.emissiveMap,this.emissiveIntensity=e.emissiveIntensity,this.bumpMap=e.bumpMap,this.bumpScale=e.bumpScale,this.normalMap=e.normalMap,this.normalMapType=e.normalMapType,this.normalScale.copy(e.normalScale),this.displacementMap=e.displacementMap,this.displacementScale=e.displacementScale,this.displacementBias=e.displacementBias,this.alphaMap=e.alphaMap,this.alphaMapChannel=e.alphaMapChannel,this.wireframe=e.wireframe,this.wireframeLinewidth=e.wireframeLinewidth,this.wireframeLinecap=e.wireframeLinecap,this.wireframeLinejoin=e.wireframeLinejoin,this.fog=e.fog,this}}class gd extends ea{constructor(e){super(),this.isMeshNormalMaterial=!0,this.type="MeshNormalMaterial",this.bumpMap=null,this.bumpScale=1,this.normalMap=null,this.normalMapType=qt,this.normalScale=new er(1,1),this.displacementMap=null,this.displacementScale=1,this.displacementBias=0,this.wireframe=!1,this.wireframeLinewidth=1,this.flatShading=!1,this.setValues(e)}copy(e){return super.copy(e),this.bumpMap=e.bumpMap,this.bumpScale=e.bumpScale,this.normalMap=e.normalMap,this.normalMapType=e.normalMapType,this.normalScale.copy(e.normalScale),this.displacementMap=e.displacementMap,this.displacementScale=e.displacementScale,this.displacementBias=e.displacementBias,this.wireframe=e.wireframe,this.wireframeLinewidth=e.wireframeLinewidth,this.flatShading=e.flatShading,this}}class vd extends ea{constructor(e){super(),this.isMeshLambertMaterial=!0,this.type="MeshLambertMaterial",this.color=new Ji(16777215),this.map=null,this.lightMap=null,this.lightMapIntensity=1,this.aoMap=null,this.aoMapIntensity=1,this.emissive=new Ji(0),this.emissiveIntensity=1,this.emissiveMap=null,this.bumpMap=null,this.bumpScale=1,this.normalMap=null,this.normalMapType=qt,this.normalScale=new er(1,1),this.displacementMap=null,this.displacementScale=1,this.displacementBias=0,this.specularMap=null,this.alphaMap=null,this.alphaMapChannel=0,this.envMap=null,this.envMapRotation=new vi,this.combine=J,this.reflectivity=1,this.refractionRatio=.98,this.wireframe=!1,this.wireframeLinewidth=1,this.wireframeLinecap="round",this.wireframeLinejoin="round",this.flatShading=!1,this.fog=!0,this.setValues(e)}copy(e){return super.copy(e),this.color.copy(e.color),this.map=e.map,this.lightMap=e.lightMap,this.lightMapIntensity=e.lightMapIntensity,this.aoMap=e.aoMap,this.aoMapIntensity=e.aoMapIntensity,this.emissive.copy(e.emissive),this.emissiveMap=e.emissiveMap,this.emissiveIntensity=e.emissiveIntensity,this.bumpMap=e.bumpMap,this.bumpScale=e.bumpScale,this.normalMap=e.normalMap,this.normalMapType=e.normalMapType,this.normalScale.copy(e.normalScale),this.displacementMap=e.displacementMap,this.displacementScale=e.displacementScale,this.displacementBias=e.displacementBias,this.specularMap=e.specularMap,this.alphaMap=e.alphaMap,this.alphaMapChannel=e.alphaMapChannel,this.envMap=e.envMap,this.envMapRotation.copy(e.envMapRotation),this.combine=e.combine,this.reflectivity=e.reflectivity,this.refractionRatio=e.refractionRatio,this.wireframe=e.wireframe,this.wireframeLinewidth=e.wireframeLinewidth,this.wireframeLinecap=e.wireframeLinecap,this.wireframeLinejoin=e.wireframeLinejoin,this.flatShading=e.flatShading,this.fog=e.fog,this}}class yd extends ea{constructor(e){super(),this.isMeshMatcapMaterial=!0,this.defines={MATCAP:""},this.type="MeshMatcapMaterial",this.color=new Ji(16777215),this.matcap=null,this.map=null,this.bumpMap=null,this.bumpScale=1,this.normalMap=null,this.normalMapType=qt,this.normalScale=new er(1,1),this.displacementMap=null,this.displacementScale=1,this.displacementBias=0,this.alphaMap=null,this.alphaMapChannel=0,this.flatShading=!1,this.fog=!0,this.setValues(e)}copy(e){return super.copy(e),this.defines={MATCAP:""},this.color.copy(e.color),this.matcap=e.matcap,this.map=e.map,this.bumpMap=e.bumpMap,this.bumpScale=e.bumpScale,this.normalMap=e.normalMap,this.normalMapType=e.normalMapType,this.normalScale.copy(e.normalScale),this.displacementMap=e.displacementMap,this.displacementScale=e.displacementScale,this.displacementBias=e.displacementBias,this.alphaMap=e.alphaMap,this.alphaMapChannel=e.alphaMapChannel,this.flatShading=e.flatShading,this.fog=e.fog,this}}class bd extends Au{constructor(e){super(),this.isLineDashedMaterial=!0,this.type="LineDashedMaterial",this.scale=1,this.dashSize=3,this.gapSize=1,this.setValues(e)}copy(e){return super.copy(e),this.scale=e.scale,this.dashSize=e.dashSize,this.gapSize=e.gapSize,this}}function _d(e,t,n){return!e||!n&&e.constructor===t?e:"number"==typeof t.BYTES_PER_ELEMENT?new t(e):Array.prototype.slice.call(e)}function xd(e){return ArrayBuffer.isView(e)&&!(e instanceof DataView)}function Ed(e){const t=e.length,n=new Array(t);for(let e=0;e!==t;++e)n[e]=e;return n.sort(function(t,n){return e[t]-e[n]}),n}function wd(e,t,n){const r=e.length,i=new e.constructor(r);for(let a=0,s=0;s!==r;++a){const r=n[a]*t;for(let n=0;n!==t;++n)i[s++]=e[r+n]}return i}function Md(e,t,n,r){let i=1,a=e[0];for(;void 0!==a&&void 0===a[r];)a=e[i++];if(void 0===a)return;let s=a[r];if(void 0!==s)if(Array.isArray(s))do{s=a[r],void 0!==s&&(t.push(a.time),n.push.apply(n,s)),a=e[i++]}while(void 0!==a);else if(void 0!==s.toArray)do{s=a[r],void 0!==s&&(t.push(a.time),s.toArray(n,n.length)),a=e[i++]}while(void 0!==a);else do{s=a[r],void 0!==s&&(t.push(a.time),n.push(s)),a=e[i++]}while(void 0!==a)}const Sd={convertArray:_d,isTypedArray:xd,getKeyframeOrder:Ed,sortedArray:wd,flattenJSON:Md,subclip:function(e,t,n,r,i=30){const a=e.clone();a.name=t;const s=[];for(let e=0;e=r)){l.push(t.times[e]);for(let n=0;na.tracks[e].times[0]&&(o=a.tracks[e].times[0]);for(let e=0;e=r.times[h]){const e=h*l+o,t=e+l-o;d=r.values.slice(e,t)}else{const e=r.createInterpolant(),t=o,n=l-o;e.evaluate(a),d=e.resultBuffer.slice(t,n)}"quaternion"===i&&(new Rr).fromArray(d).normalize().conjugate().toArray(d);const p=s.times.length;for(let e=0;e=i)break e;{const s=t[1];e=i)break t}a=n,n=0}}for(;n>>1;et;)--a;if(++a,0!==i||a!==r){i>=a&&(a=Math.max(a,1),i=a-1);const e=this.getValueSize();this.times=n.slice(i,a),this.values=this.values.slice(i*e,a*e)}return this}validate(){let e=!0;const t=this.getValueSize();t-Math.floor(t)!=0&&(console.error("THREE.KeyframeTrack: Invalid value size in track.",this),e=!1);const n=this.times,r=this.values,i=n.length;0===i&&(console.error("THREE.KeyframeTrack: Track is empty.",this),e=!1);let a=null;for(let t=0;t!==i;t++){const r=n[t];if("number"==typeof r&&isNaN(r)){console.error("THREE.KeyframeTrack: Time is not a valid number.",this,t,r),e=!1;break}if(null!==a&&a>r){console.error("THREE.KeyframeTrack: Out of order keys.",this,t,r,a),e=!1;break}a=r}if(void 0!==r&&xd(r))for(let t=0,n=r.length;t!==n;++t){const n=r[t];if(isNaN(n)){console.error("THREE.KeyframeTrack: Value is not a valid number.",this,t,n),e=!1;break}}return e}optimize(){const e=this.times.slice(),t=this.values.slice(),n=this.getValueSize(),r=this.getInterpolation()===Dt,i=e.length-1;let a=1;for(let s=1;s0){e[a]=e[i];for(let e=i*n,r=a*n,s=0;s!==n;++s)t[r+s]=t[e+s];++a}return a!==e.length?(this.times=e.slice(0,a),this.values=t.slice(0,a*n)):(this.times=e,this.values=t),this}clone(){const e=this.times.slice(),t=this.values.slice(),n=new(0,this.constructor)(this.name,e,t);return n.createInterpolant=this.createInterpolant,n}}Rd.prototype.TimeBufferType=Float32Array,Rd.prototype.ValueBufferType=Float32Array,Rd.prototype.DefaultInterpolation=Ut;class Pd extends Rd{constructor(e,t,n){super(e,t,n)}}Pd.prototype.ValueTypeName="bool",Pd.prototype.ValueBufferType=Array,Pd.prototype.DefaultInterpolation=Ot,Pd.prototype.InterpolantFactoryMethodLinear=void 0,Pd.prototype.InterpolantFactoryMethodSmooth=void 0;class Ld extends Rd{}Ld.prototype.ValueTypeName="color";class Od extends Rd{}Od.prototype.ValueTypeName="number";class Ud extends Cd{constructor(e,t,n,r){super(e,t,n,r)}interpolate_(e,t,n,r){const i=this.resultBuffer,a=this.sampleValues,s=this.valueSize,o=(n-t)/(r-t);let l=e*s;for(let e=l+s;l!==e;l+=4)Rr.slerpFlat(i,0,a,l-s,a,l,o);return i}}class Dd extends Rd{InterpolantFactoryMethodLinear(e){return new Ud(this.times,this.values,this.getValueSize(),e)}}Dd.prototype.ValueTypeName="quaternion",Dd.prototype.InterpolantFactoryMethodSmooth=void 0;class Fd extends Rd{constructor(e,t,n){super(e,t,n)}}Fd.prototype.ValueTypeName="string",Fd.prototype.ValueBufferType=Array,Fd.prototype.DefaultInterpolation=Ot,Fd.prototype.InterpolantFactoryMethodLinear=void 0,Fd.prototype.InterpolantFactoryMethodSmooth=void 0;class Nd extends Rd{}Nd.prototype.ValueTypeName="vector";class kd{constructor(e="",t=-1,n=[],r=Qt){this.name=e,this.tracks=n,this.duration=t,this.blendMode=r,this.uuid=qn(),this.duration<0&&this.resetDuration()}static parse(e){const t=[],n=e.tracks,r=1/(e.fps||1);for(let e=0,i=n.length;e!==i;++e)t.push(Qd(n[e]).scale(r));const i=new this(e.name,e.duration,t,e.blendMode);return i.uuid=e.uuid,i}static toJSON(e){const t=[],n=e.tracks,r={name:e.name,duration:e.duration,tracks:t,uuid:e.uuid,blendMode:e.blendMode};for(let e=0,r=n.length;e!==r;++e)t.push(Rd.toJSON(n[e]));return r}static CreateFromMorphTargetSequence(e,t,n,r){const i=t.length,a=[];for(let e=0;e1){const e=a[1];let t=r[e];t||(r[e]=t=[]),t.push(n)}}const a=[];for(const e in r)a.push(this.CreateFromMorphTargetSequence(e,r[e],t,n));return a}static parseAnimation(e,t){if(!e)return console.error("THREE.AnimationClip: No animation in JSONLoader data."),null;const n=function(e,t,n,r,i){if(0!==n.length){const a=[],s=[];Md(n,a,s,r),0!==a.length&&i.push(new e(t,a,s))}},r=[],i=e.name||"default",a=e.fps||30,s=e.blendMode;let o=e.length||-1;const l=e.hierarchy||[];for(let e=0;e{t&&t(i),this.manager.itemEnd(e)},0),i;if(void 0!==jd[e])return void jd[e].push({onLoad:t,onProgress:n,onError:r});jd[e]=[],jd[e].push({onLoad:t,onProgress:n,onError:r});const a=new Request(e,{headers:new Headers(this.requestHeader),credentials:this.withCredentials?"include":"same-origin"}),s=this.mimeType,o=this.responseType;fetch(a).then(t=>{if(200===t.status||0===t.status){if(0===t.status&&console.warn("THREE.FileLoader: HTTP Status 0 received."),"undefined"==typeof ReadableStream||void 0===t.body||void 0===t.body.getReader)return t;const n=jd[e],r=t.body.getReader(),i=t.headers.get("X-File-Size")||t.headers.get("Content-Length"),a=i?parseInt(i):0,s=0!==a;let o=0;const l=new ReadableStream({start(e){!function t(){r.read().then(({done:r,value:i})=>{if(r)e.close();else{o+=i.byteLength;const r=new ProgressEvent("progress",{lengthComputable:s,loaded:o,total:a});for(let e=0,t=n.length;e{e.error(t)})}()}});return new Response(l)}throw new Wd(`fetch for "${t.url}" responded with ${t.status}: ${t.statusText}`,t)}).then(e=>{switch(o){case"arraybuffer":return e.arrayBuffer();case"blob":return e.blob();case"document":return e.text().then(e=>(new DOMParser).parseFromString(e,s));case"json":return e.json();default:if(void 0===s)return e.text();{const t=/charset="?([^;"\s]*)"?/i.exec(s),n=t&&t[1]?t[1].toLowerCase():void 0,r=new TextDecoder(n);return e.arrayBuffer().then(e=>r.decode(e))}}}).then(t=>{Gd.add(e,t);const n=jd[e];delete jd[e];for(let e=0,r=n.length;e{const n=jd[e];if(void 0===n)throw this.manager.itemError(e),t;delete jd[e];for(let e=0,r=n.length;e{this.manager.itemEnd(e)}),this.manager.itemStart(e)}setResponseType(e){return this.responseType=e,this}setMimeType(e){return this.mimeType=e,this}}class Xd extends Hd{constructor(e){super(e)}load(e,t,n,r){const i=this,a=new qd(this.manager);a.setPath(this.path),a.setRequestHeader(this.requestHeader),a.setWithCredentials(this.withCredentials),a.load(e,function(n){try{t(i.parse(JSON.parse(n)))}catch(t){r?r(t):console.error(t),i.manager.itemError(e)}},n,r)}parse(e){const t=[];for(let n=0;n0:r.vertexColors=e.vertexColors),void 0!==e.uniforms)for(const t in e.uniforms){const i=e.uniforms[t];switch(r.uniforms[t]={},i.type){case"t":r.uniforms[t].value=n(i.value);break;case"c":r.uniforms[t].value=(new Ji).setHex(i.value);break;case"v2":r.uniforms[t].value=(new er).fromArray(i.value);break;case"v3":r.uniforms[t].value=(new Pr).fromArray(i.value);break;case"v4":r.uniforms[t].value=(new wr).fromArray(i.value);break;case"m3":r.uniforms[t].value=(new tr).fromArray(i.value);break;case"m4":r.uniforms[t].value=(new li).fromArray(i.value);break;default:r.uniforms[t].value=i.value}}if(void 0!==e.defines&&(r.defines=e.defines),void 0!==e.vertexShader&&(r.vertexShader=e.vertexShader),void 0!==e.fragmentShader&&(r.fragmentShader=e.fragmentShader),void 0!==e.glslVersion&&(r.glslVersion=e.glslVersion),void 0!==e.extensions)for(const t in e.extensions)r.extensions[t]=e.extensions[t];if(void 0!==e.lights&&(r.lights=e.lights),void 0!==e.clipping&&(r.clipping=e.clipping),void 0!==e.size&&(r.size=e.size),void 0!==e.sizeAttenuation&&(r.sizeAttenuation=e.sizeAttenuation),void 0!==e.map&&(r.map=n(e.map)),void 0!==e.matcap&&(r.matcap=n(e.matcap)),void 0!==e.alphaMap&&(r.alphaMap=n(e.alphaMap)),void 0!==e.bumpMap&&(r.bumpMap=n(e.bumpMap)),void 0!==e.bumpScale&&(r.bumpScale=e.bumpScale),void 0!==e.normalMap&&(r.normalMap=n(e.normalMap)),void 0!==e.normalMapType&&(r.normalMapType=e.normalMapType),void 0!==e.normalScale){let t=e.normalScale;!1===Array.isArray(t)&&(t=[t,t]),r.normalScale=(new er).fromArray(t)}return void 0!==e.displacementMap&&(r.displacementMap=n(e.displacementMap)),void 0!==e.displacementScale&&(r.displacementScale=e.displacementScale),void 0!==e.displacementBias&&(r.displacementBias=e.displacementBias),void 0!==e.roughnessMap&&(r.roughnessMap=n(e.roughnessMap)),void 0!==e.metalnessMap&&(r.metalnessMap=n(e.metalnessMap)),void 0!==e.emissiveMap&&(r.emissiveMap=n(e.emissiveMap)),void 0!==e.emissiveIntensity&&(r.emissiveIntensity=e.emissiveIntensity),void 0!==e.specularMap&&(r.specularMap=n(e.specularMap)),void 0!==e.specularIntensityMap&&(r.specularIntensityMap=n(e.specularIntensityMap)),void 0!==e.specularColorMap&&(r.specularColorMap=n(e.specularColorMap)),void 0!==e.envMap&&(r.envMap=n(e.envMap)),void 0!==e.envMapRotation&&r.envMapRotation.fromArray(e.envMapRotation),void 0!==e.envMapIntensity&&(r.envMapIntensity=e.envMapIntensity),void 0!==e.reflectivity&&(r.reflectivity=e.reflectivity),void 0!==e.refractionRatio&&(r.refractionRatio=e.refractionRatio),void 0!==e.lightMap&&(r.lightMap=n(e.lightMap)),void 0!==e.lightMapIntensity&&(r.lightMapIntensity=e.lightMapIntensity),void 0!==e.aoMap&&(r.aoMap=n(e.aoMap)),void 0!==e.aoMapIntensity&&(r.aoMapIntensity=e.aoMapIntensity),void 0!==e.gradientMap&&(r.gradientMap=n(e.gradientMap)),void 0!==e.clearcoatMap&&(r.clearcoatMap=n(e.clearcoatMap)),void 0!==e.clearcoatRoughnessMap&&(r.clearcoatRoughnessMap=n(e.clearcoatRoughnessMap)),void 0!==e.clearcoatNormalMap&&(r.clearcoatNormalMap=n(e.clearcoatNormalMap)),void 0!==e.clearcoatNormalScale&&(r.clearcoatNormalScale=(new er).fromArray(e.clearcoatNormalScale)),void 0!==e.iridescenceMap&&(r.iridescenceMap=n(e.iridescenceMap)),void 0!==e.iridescenceThicknessMap&&(r.iridescenceThicknessMap=n(e.iridescenceThicknessMap)),void 0!==e.transmissionMap&&(r.transmissionMap=n(e.transmissionMap)),void 0!==e.thicknessMap&&(r.thicknessMap=n(e.thicknessMap)),void 0!==e.anisotropyMap&&(r.anisotropyMap=n(e.anisotropyMap)),void 0!==e.sheenColorMap&&(r.sheenColorMap=n(e.sheenColorMap)),void 0!==e.sheenRoughnessMap&&(r.sheenRoughnessMap=n(e.sheenRoughnessMap)),r}setTextures(e){return this.textures=e,this}static createMaterialFromType(e){return new{ShadowMaterial:hd,SpriteMaterial:lc,RawShaderMaterial:dd,ShaderMaterial:Ka,PointsMaterial:Bu,MeshPhysicalMaterial:fd,MeshStandardMaterial:pd,MeshPhongMaterial:md,MeshToonMaterial:Ad,MeshNormalMaterial:gd,MeshLambertMaterial:vd,MeshDepthMaterial:kl,MeshDistanceMaterial:Ql,MeshBasicMaterial:ta,MeshMatcapMaterial:yd,LineDashedMaterial:bd,LineBasicMaterial:Au,Material:ea}[e]}}class bp{static decodeText(e){if(console.warn("THREE.LoaderUtils: decodeText() has been deprecated with r165 and will be removed with r175. Use TextDecoder instead."),"undefined"!=typeof TextDecoder)return(new TextDecoder).decode(e);let t="";for(let n=0,r=e.length;n0){const n=new Vd(t);i=new Kd(n),i.setCrossOrigin(this.crossOrigin);for(let t=0,n=e.length;t0){r=new Kd(this.manager),r.setCrossOrigin(this.crossOrigin);for(let t=0,r=e.length;t{const t=new Ur;t.min.fromArray(e.boxMin),t.max.fromArray(e.boxMax);const n=new $r;return n.radius=e.sphereRadius,n.center.fromArray(e.sphereCenter),{boxInitialized:e.boxInitialized,box:t,sphereInitialized:e.sphereInitialized,sphere:n}}),a._maxGeometryCount=e.maxGeometryCount,a._maxVertexCount=e.maxVertexCount,a._maxIndexCount=e.maxIndexCount,a._geometryInitialized=e.geometryInitialized,a._geometryCount=e.geometryCount,a._matricesTexture=u(e.matricesTexture.uuid),void 0!==e.colorsTexture&&(a._colorsTexture=u(e.colorsTexture.uuid));break;case"LOD":a=new Sc;break;case"Line":a=new wu(l(e.geometry),c(e.material));break;case"LineLoop":a=new Tu(l(e.geometry),c(e.material));break;case"LineSegments":a=new Iu(l(e.geometry),c(e.material));break;case"PointCloud":case"Points":a=new Uu(l(e.geometry),c(e.material));break;case"Sprite":a=new xc(c(e.material));break;case"Group":a=new Wl;break;case"Bone":a=new Fc;break;default:a=new Ui}if(a.uuid=e.uuid,void 0!==e.name&&(a.name=e.name),void 0!==e.matrix?(a.matrix.fromArray(e.matrix),void 0!==e.matrixAutoUpdate&&(a.matrixAutoUpdate=e.matrixAutoUpdate),a.matrixAutoUpdate&&a.matrix.decompose(a.position,a.quaternion,a.scale)):(void 0!==e.position&&a.position.fromArray(e.position),void 0!==e.rotation&&a.rotation.fromArray(e.rotation),void 0!==e.quaternion&&a.quaternion.fromArray(e.quaternion),void 0!==e.scale&&a.scale.fromArray(e.scale)),void 0!==e.up&&a.up.fromArray(e.up),void 0!==e.castShadow&&(a.castShadow=e.castShadow),void 0!==e.receiveShadow&&(a.receiveShadow=e.receiveShadow),e.shadow&&(void 0!==e.shadow.bias&&(a.shadow.bias=e.shadow.bias),void 0!==e.shadow.normalBias&&(a.shadow.normalBias=e.shadow.normalBias),void 0!==e.shadow.radius&&(a.shadow.radius=e.shadow.radius),void 0!==e.shadow.mapSize&&a.shadow.mapSize.fromArray(e.shadow.mapSize),void 0!==e.shadow.camera&&(a.shadow.camera=this.parseObject(e.shadow.camera))),void 0!==e.visible&&(a.visible=e.visible),void 0!==e.frustumCulled&&(a.frustumCulled=e.frustumCulled),void 0!==e.renderOrder&&(a.renderOrder=e.renderOrder),void 0!==e.userData&&(a.userData=e.userData),void 0!==e.layers&&(a.layers.mask=e.layers),void 0!==e.children){const s=e.children;for(let e=0;e{t&&t(n),i.manager.itemEnd(e)}).catch(e=>{r&&r(e)}):(setTimeout(function(){t&&t(a),i.manager.itemEnd(e)},0),a);const s={};s.credentials="anonymous"===this.crossOrigin?"same-origin":"include",s.headers=this.requestHeader;const o=fetch(e,s).then(function(e){return e.blob()}).then(function(e){return createImageBitmap(e,Object.assign(i.options,{colorSpaceConversion:"none"}))}).then(function(n){return Gd.add(e,n),t&&t(n),i.manager.itemEnd(e),n}).catch(function(t){r&&r(t),Gd.remove(e),i.manager.itemError(e),i.manager.itemEnd(e)});Gd.add(e,o),i.manager.itemStart(e)}}let Ip;class Tp{static getContext(){return void 0===Ip&&(Ip=new(window.AudioContext||window.webkitAudioContext)),Ip}static setContext(e){Ip=e}}class Bp extends Hd{constructor(e){super(e)}load(e,t,n,r){const i=this,a=new qd(this.manager);function s(t){r?r(t):console.error(t),i.manager.itemError(e)}a.setResponseType("arraybuffer"),a.setPath(this.path),a.setRequestHeader(this.requestHeader),a.setWithCredentials(this.withCredentials),a.load(e,function(e){try{const n=e.slice(0);Tp.getContext().decodeAudioData(n,function(e){t(e)}).catch(s)}catch(e){s(e)}},n,r)}}const Rp=new li,Pp=new li,Lp=new li;class Op{constructor(){this.type="StereoCamera",this.aspect=1,this.eyeSep=.064,this.cameraL=new ts,this.cameraL.layers.enable(1),this.cameraL.matrixAutoUpdate=!1,this.cameraR=new ts,this.cameraR.layers.enable(2),this.cameraR.matrixAutoUpdate=!1,this._cache={focus:null,fov:null,aspect:null,near:null,far:null,zoom:null,eyeSep:null}}update(e){const t=this._cache;if(t.focus!==e.focus||t.fov!==e.fov||t.aspect!==e.aspect*this.aspect||t.near!==e.near||t.far!==e.far||t.zoom!==e.zoom||t.eyeSep!==this.eyeSep){t.focus=e.focus,t.fov=e.fov,t.aspect=e.aspect*this.aspect,t.near=e.near,t.far=e.far,t.zoom=e.zoom,t.eyeSep=this.eyeSep,Lp.copy(e.projectionMatrix);const n=t.eyeSep/2,r=n*t.near/t.focus,i=t.near*Math.tan(jn*t.fov*.5)/t.zoom;let a,s;Pp.elements[12]=-n,Rp.elements[12]=n,a=-i*t.aspect+r,s=i*t.aspect+r,Lp.elements[0]=2*t.near/(s-a),Lp.elements[8]=(s+a)/(s-a),this.cameraL.projectionMatrix.copy(Lp),a=-i*t.aspect-r,s=i*t.aspect-r,Lp.elements[0]=2*t.near/(s-a),Lp.elements[8]=(s+a)/(s-a),this.cameraR.projectionMatrix.copy(Lp)}this.cameraL.matrixWorld.copy(e.matrixWorld).multiply(Pp),this.cameraR.matrixWorld.copy(e.matrixWorld).multiply(Rp)}}class Up{constructor(e=!0){this.autoStart=e,this.startTime=0,this.oldTime=0,this.elapsedTime=0,this.running=!1}start(){this.startTime=Dp(),this.oldTime=this.startTime,this.elapsedTime=0,this.running=!0}stop(){this.getElapsedTime(),this.running=!1,this.autoStart=!1}getElapsedTime(){return this.getDelta(),this.elapsedTime}getDelta(){let e=0;if(this.autoStart&&!this.running)return this.start(),0;if(this.running){const t=Dp();e=(t-this.oldTime)/1e3,this.oldTime=t,this.elapsedTime+=e}return e}}function Dp(){return("undefined"==typeof performance?Date:performance).now()}const Fp=new Pr,Np=new Rr,kp=new Pr,Qp=new Pr;class Gp extends Ui{constructor(){super(),this.type="AudioListener",this.context=Tp.getContext(),this.gain=this.context.createGain(),this.gain.connect(this.context.destination),this.filter=null,this.timeDelta=0,this._clock=new Up}getInput(){return this.gain}removeFilter(){return null!==this.filter&&(this.gain.disconnect(this.filter),this.filter.disconnect(this.context.destination),this.gain.connect(this.context.destination),this.filter=null),this}getFilter(){return this.filter}setFilter(e){return null!==this.filter?(this.gain.disconnect(this.filter),this.filter.disconnect(this.context.destination)):this.gain.disconnect(this.context.destination),this.filter=e,this.gain.connect(this.filter),this.filter.connect(this.context.destination),this}getMasterVolume(){return this.gain.gain.value}setMasterVolume(e){return this.gain.gain.setTargetAtTime(e,this.context.currentTime,.01),this}updateMatrixWorld(e){super.updateMatrixWorld(e);const t=this.context.listener,n=this.up;if(this.timeDelta=this._clock.getDelta(),this.matrixWorld.decompose(Fp,Np,kp),Qp.set(0,0,-1).applyQuaternion(Np),t.positionX){const e=this.context.currentTime+this.timeDelta;t.positionX.linearRampToValueAtTime(Fp.x,e),t.positionY.linearRampToValueAtTime(Fp.y,e),t.positionZ.linearRampToValueAtTime(Fp.z,e),t.forwardX.linearRampToValueAtTime(Qp.x,e),t.forwardY.linearRampToValueAtTime(Qp.y,e),t.forwardZ.linearRampToValueAtTime(Qp.z,e),t.upX.linearRampToValueAtTime(n.x,e),t.upY.linearRampToValueAtTime(n.y,e),t.upZ.linearRampToValueAtTime(n.z,e)}else t.setPosition(Fp.x,Fp.y,Fp.z),t.setOrientation(Qp.x,Qp.y,Qp.z,n.x,n.y,n.z)}}class Vp extends Ui{constructor(e){super(),this.type="Audio",this.listener=e,this.context=e.context,this.gain=this.context.createGain(),this.gain.connect(e.getInput()),this.autoplay=!1,this.buffer=null,this.detune=0,this.loop=!1,this.loopStart=0,this.loopEnd=0,this.offset=0,this.duration=void 0,this.playbackRate=1,this.isPlaying=!1,this.hasPlaybackControl=!0,this.source=null,this.sourceType="empty",this._startedAt=0,this._progress=0,this._connected=!1,this.filters=[]}getOutput(){return this.gain}setNodeSource(e){return this.hasPlaybackControl=!1,this.sourceType="audioNode",this.source=e,this.connect(),this}setMediaElementSource(e){return this.hasPlaybackControl=!1,this.sourceType="mediaNode",this.source=this.context.createMediaElementSource(e),this.connect(),this}setMediaStreamSource(e){return this.hasPlaybackControl=!1,this.sourceType="mediaStreamNode",this.source=this.context.createMediaStreamSource(e),this.connect(),this}setBuffer(e){return this.buffer=e,this.sourceType="buffer",this.autoplay&&this.play(),this}play(e=0){if(!0===this.isPlaying)return void console.warn("THREE.Audio: Audio is already playing.");if(!1===this.hasPlaybackControl)return void console.warn("THREE.Audio: this Audio has no playback control.");this._startedAt=this.context.currentTime+e;const t=this.context.createBufferSource();return t.buffer=this.buffer,t.loop=this.loop,t.loopStart=this.loopStart,t.loopEnd=this.loopEnd,t.onended=this.onEnded.bind(this),t.start(this._startedAt,this._progress+this.offset,this.duration),this.isPlaying=!0,this.source=t,this.setDetune(this.detune),this.setPlaybackRate(this.playbackRate),this.connect()}pause(){if(!1!==this.hasPlaybackControl)return!0===this.isPlaying&&(this._progress+=Math.max(this.context.currentTime-this._startedAt,0)*this.playbackRate,!0===this.loop&&(this._progress=this._progress%(this.duration||this.buffer.duration)),this.source.stop(),this.source.onended=null,this.isPlaying=!1),this;console.warn("THREE.Audio: this Audio has no playback control.")}stop(){if(!1!==this.hasPlaybackControl)return this._progress=0,null!==this.source&&(this.source.stop(),this.source.onended=null),this.isPlaying=!1,this;console.warn("THREE.Audio: this Audio has no playback control.")}connect(){if(this.filters.length>0){this.source.connect(this.filters[0]);for(let e=1,t=this.filters.length;e0){this.source.disconnect(this.filters[0]);for(let e=1,t=this.filters.length;e0&&this._mixBufferRegionAdditive(n,r,this._addIndex*t,1,t);for(let e=t,i=t+t;e!==i;++e)if(n[e]!==n[e+t]){s.setValue(n,r);break}}saveOriginalState(){const e=this.binding,t=this.buffer,n=this.valueSize,r=n*this._origIndex;e.getValue(t,r);for(let e=n,i=r;e!==i;++e)t[e]=t[r+e%n];this._setIdentity(),this.cumulativeWeight=0,this.cumulativeWeightAdditive=0}restoreOriginalState(){const e=3*this.valueSize;this.binding.setValue(this.buffer,e)}_setAdditiveIdentityNumeric(){const e=this._addIndex*this.valueSize,t=e+this.valueSize;for(let n=e;n=.5)for(let r=0;r!==i;++r)e[t+r]=e[n+r]}_slerp(e,t,n,r){Rr.slerpFlat(e,t,e,t,e,n,r)}_slerpAdditive(e,t,n,r,i){const a=this._workIndex*i;Rr.multiplyQuaternionsFlat(e,a,e,t,e,n),Rr.slerpFlat(e,t,e,t,e,a,r)}_lerp(e,t,n,r,i){const a=1-r;for(let s=0;s!==i;++s){const i=t+s;e[i]=e[i]*a+e[n+s]*r}}_lerpAdditive(e,t,n,r,i){for(let a=0;a!==i;++a){const i=t+a;e[i]=e[i]+e[n+a]*r}}}const Kp="\\[\\]\\.:\\/",Jp=new RegExp("["+Kp+"]","g"),Zp="[^"+Kp+"]",$p="[^"+Kp.replace("\\.","")+"]",ef=new RegExp("^"+/((?:WC+[\/:])*)/.source.replace("WC",Zp)+/(WCOD+)?/.source.replace("WCOD",$p)+/(?:\.(WC+)(?:\[(.+)\])?)?/.source.replace("WC",Zp)+/\.(WC+)(?:\[(.+)\])?/.source.replace("WC",Zp)+"$"),tf=["material","materials","bones","map"];class nf{constructor(e,t,n){this.path=t,this.parsedPath=n||nf.parseTrackName(t),this.node=nf.findNode(e,this.parsedPath.nodeName),this.rootNode=e,this.getValue=this._getValue_unbound,this.setValue=this._setValue_unbound}static create(e,t,n){return e&&e.isAnimationObjectGroup?new nf.Composite(e,t,n):new nf(e,t,n)}static sanitizeNodeName(e){return e.replace(/\s/g,"_").replace(Jp,"")}static parseTrackName(e){const t=ef.exec(e);if(null===t)throw new Error("PropertyBinding: Cannot parse trackName: "+e);const n={nodeName:t[2],objectName:t[3],objectIndex:t[4],propertyName:t[5],propertyIndex:t[6]},r=n.nodeName&&n.nodeName.lastIndexOf(".");if(void 0!==r&&-1!==r){const e=n.nodeName.substring(r+1);-1!==tf.indexOf(e)&&(n.nodeName=n.nodeName.substring(0,r),n.objectName=e)}if(null===n.propertyName||0===n.propertyName.length)throw new Error("PropertyBinding: can not parse propertyName from trackName: "+e);return n}static findNode(e,t){if(void 0===t||""===t||"."===t||-1===t||t===e.name||t===e.uuid)return e;if(e.skeleton){const n=e.skeleton.getBoneByName(t);if(void 0!==n)return n}if(e.children){const n=function(e){for(let r=0;r=i){const a=i++,c=e[a];t[c.uuid]=l,e[l]=c,t[o]=a,e[a]=s;for(let e=0,t=r;e!==t;++e){const t=n[e],r=t[a],i=t[l];t[l]=r,t[a]=i}}}this.nCachedObjects_=i}uncache(){const e=this._objects,t=this._indicesByUUID,n=this._bindings,r=n.length;let i=this.nCachedObjects_,a=e.length;for(let s=0,o=arguments.length;s!==o;++s){const o=arguments[s].uuid,l=t[o];if(void 0!==l)if(delete t[o],l0&&(t[s.uuid]=l),e[l]=s,e.pop();for(let e=0,t=r;e!==t;++e){const t=n[e];t[l]=t[i],t.pop()}}}this.nCachedObjects_=i}subscribe_(e,t){const n=this._bindingsIndicesByPath;let r=n[e];const i=this._bindings;if(void 0!==r)return i[r];const a=this._paths,s=this._parsedPaths,o=this._objects,l=o.length,c=this.nCachedObjects_,u=new Array(l);r=i.length,n[e]=r,a.push(e),s.push(t),i.push(u);for(let n=c,r=o.length;n!==r;++n){const r=o[n];u[n]=new nf(r,e,t)}return u}unsubscribe_(e){const t=this._bindingsIndicesByPath,n=t[e];if(void 0!==n){const r=this._paths,i=this._parsedPaths,a=this._bindings,s=a.length-1,o=a[s];t[e[s]]=n,a[n]=o,a.pop(),i[n]=i[s],i.pop(),r[n]=r[s],r.pop()}}}class af{constructor(e,t,n=null,r=t.blendMode){this._mixer=e,this._clip=t,this._localRoot=n,this.blendMode=r;const i=t.tracks,a=i.length,s=new Array(a),o={endingStart:Ft,endingEnd:Ft};for(let e=0;e!==a;++e){const t=i[e].createInterpolant(null);s[e]=t,t.settings=o}this._interpolantSettings=o,this._interpolants=s,this._propertyBindings=new Array(a),this._cacheIndex=null,this._byClipCacheIndex=null,this._timeScaleInterpolant=null,this._weightInterpolant=null,this.loop=Pt,this._loopCount=-1,this._startTime=null,this.time=0,this.timeScale=1,this._effectiveTimeScale=1,this.weight=1,this._effectiveWeight=1,this.repetitions=1/0,this.paused=!1,this.enabled=!0,this.clampWhenFinished=!1,this.zeroSlopeAtStart=!0,this.zeroSlopeAtEnd=!0}play(){return this._mixer._activateAction(this),this}stop(){return this._mixer._deactivateAction(this),this.reset()}reset(){return this.paused=!1,this.enabled=!0,this.time=0,this._loopCount=-1,this._startTime=null,this.stopFading().stopWarping()}isRunning(){return this.enabled&&!this.paused&&0!==this.timeScale&&null===this._startTime&&this._mixer._isActiveAction(this)}isScheduled(){return this._mixer._isActiveAction(this)}startAt(e){return this._startTime=e,this}setLoop(e,t){return this.loop=e,this.repetitions=t,this}setEffectiveWeight(e){return this.weight=e,this._effectiveWeight=this.enabled?e:0,this.stopFading()}getEffectiveWeight(){return this._effectiveWeight}fadeIn(e){return this._scheduleFading(e,0,1)}fadeOut(e){return this._scheduleFading(e,1,0)}crossFadeFrom(e,t,n){if(e.fadeOut(t),this.fadeIn(t),n){const n=this._clip.duration,r=e._clip.duration,i=r/n,a=n/r;e.warp(1,i,t),this.warp(a,1,t)}return this}crossFadeTo(e,t,n){return e.crossFadeFrom(this,t,n)}stopFading(){const e=this._weightInterpolant;return null!==e&&(this._weightInterpolant=null,this._mixer._takeBackControlInterpolant(e)),this}setEffectiveTimeScale(e){return this.timeScale=e,this._effectiveTimeScale=this.paused?0:e,this.stopWarping()}getEffectiveTimeScale(){return this._effectiveTimeScale}setDuration(e){return this.timeScale=this._clip.duration/e,this.stopWarping()}syncWith(e){return this.time=e.time,this.timeScale=e.timeScale,this.stopWarping()}halt(e){return this.warp(this._effectiveTimeScale,0,e)}warp(e,t,n){const r=this._mixer,i=r.time,a=this.timeScale;let s=this._timeScaleInterpolant;null===s&&(s=r._lendControlInterpolant(),this._timeScaleInterpolant=s);const o=s.parameterPositions,l=s.sampleValues;return o[0]=i,o[1]=i+n,l[0]=e/a,l[1]=t/a,this}stopWarping(){const e=this._timeScaleInterpolant;return null!==e&&(this._timeScaleInterpolant=null,this._mixer._takeBackControlInterpolant(e)),this}getMixer(){return this._mixer}getClip(){return this._clip}getRoot(){return this._localRoot||this._mixer._root}_update(e,t,n,r){if(!this.enabled)return void this._updateWeight(e);const i=this._startTime;if(null!==i){const r=(e-i)*n;r<0||0===n?t=0:(this._startTime=null,t=n*r)}t*=this._updateTimeScale(e);const a=this._updateTime(t),s=this._updateWeight(e);if(s>0){const e=this._interpolants,t=this._propertyBindings;if(this.blendMode===Gt)for(let n=0,r=e.length;n!==r;++n)e[n].evaluate(a),t[n].accumulateAdditive(s);else for(let n=0,i=e.length;n!==i;++n)e[n].evaluate(a),t[n].accumulate(r,s)}}_updateWeight(e){let t=0;if(this.enabled){t=this.weight;const n=this._weightInterpolant;if(null!==n){const r=n.evaluate(e)[0];t*=r,e>n.parameterPositions[1]&&(this.stopFading(),0===r&&(this.enabled=!1))}}return this._effectiveWeight=t,t}_updateTimeScale(e){let t=0;if(!this.paused){t=this.timeScale;const n=this._timeScaleInterpolant;null!==n&&(t*=n.evaluate(e)[0],e>n.parameterPositions[1]&&(this.stopWarping(),0===t?this.paused=!0:this.timeScale=t))}return this._effectiveTimeScale=t,t}_updateTime(e){const t=this._clip.duration,n=this.loop;let r=this.time+e,i=this._loopCount;const a=n===Lt;if(0===e)return-1===i||!a||1&~i?r:t-r;if(n===Rt){-1===i&&(this._loopCount=0,this._setEndings(!0,!0,!1));e:{if(r>=t)r=t;else{if(!(r<0)){this.time=r;break e}r=0}this.clampWhenFinished?this.paused=!0:this.enabled=!1,this.time=r,this._mixer.dispatchEvent({type:"finished",action:this,direction:e<0?-1:1})}}else{if(-1===i&&(e>=0?(i=0,this._setEndings(!0,0===this.repetitions,a)):this._setEndings(0===this.repetitions,!0,a)),r>=t||r<0){const n=Math.floor(r/t);r-=t*n,i+=Math.abs(n);const s=this.repetitions-i;if(s<=0)this.clampWhenFinished?this.paused=!0:this.enabled=!1,r=e>0?t:0,this.time=r,this._mixer.dispatchEvent({type:"finished",action:this,direction:e>0?1:-1});else{if(1===s){const t=e<0;this._setEndings(t,!t,a)}else this._setEndings(!1,!1,a);this._loopCount=i,this.time=r,this._mixer.dispatchEvent({type:"loop",action:this,loopDelta:n})}}else this.time=r;if(a&&!(1&~i))return t-r}return r}_setEndings(e,t,n){const r=this._interpolantSettings;n?(r.endingStart=Nt,r.endingEnd=Nt):(r.endingStart=e?this.zeroSlopeAtStart?Nt:Ft:kt,r.endingEnd=t?this.zeroSlopeAtEnd?Nt:Ft:kt)}_scheduleFading(e,t,n){const r=this._mixer,i=r.time;let a=this._weightInterpolant;null===a&&(a=r._lendControlInterpolant(),this._weightInterpolant=a);const s=a.parameterPositions,o=a.sampleValues;return s[0]=i,o[0]=t,s[1]=i+e,o[1]=n,this}}const sf=new Float32Array(1);class of extends Vn{constructor(e){super(),this._root=e,this._initMemoryManager(),this._accuIndex=0,this.time=0,this.timeScale=1}_bindAction(e,t){const n=e._localRoot||this._root,r=e._clip.tracks,i=r.length,a=e._propertyBindings,s=e._interpolants,o=n.uuid,l=this._bindingsByRootAndName;let c=l[o];void 0===c&&(c={},l[o]=c);for(let e=0;e!==i;++e){const i=r[e],l=i.name;let u=c[l];if(void 0!==u)++u.referenceCount,a[e]=u;else{if(u=a[e],void 0!==u){null===u._cacheIndex&&(++u.referenceCount,this._addInactiveBinding(u,o,l));continue}const r=t&&t._propertyBindings[e].binding.parsedPath;u=new Yp(nf.create(n,l,r),i.ValueTypeName,i.getValueSize()),++u.referenceCount,this._addInactiveBinding(u,o,l),a[e]=u}s[e].resultBuffer=u.buffer}}_activateAction(e){if(!this._isActiveAction(e)){if(null===e._cacheIndex){const t=(e._localRoot||this._root).uuid,n=e._clip.uuid,r=this._actionsByClip[n];this._bindAction(e,r&&r.knownActions[0]),this._addInactiveAction(e,n,t)}const t=e._propertyBindings;for(let e=0,n=t.length;e!==n;++e){const n=t[e];0==n.useCount++&&(this._lendBinding(n),n.saveOriginalState())}this._lendAction(e)}}_deactivateAction(e){if(this._isActiveAction(e)){const t=e._propertyBindings;for(let e=0,n=t.length;e!==n;++e){const n=t[e];0==--n.useCount&&(n.restoreOriginalState(),this._takeBackBinding(n))}this._takeBackAction(e)}}_initMemoryManager(){this._actions=[],this._nActiveActions=0,this._actionsByClip={},this._bindings=[],this._nActiveBindings=0,this._bindingsByRootAndName={},this._controlInterpolants=[],this._nActiveControlInterpolants=0;const e=this;this.stats={actions:{get total(){return e._actions.length},get inUse(){return e._nActiveActions}},bindings:{get total(){return e._bindings.length},get inUse(){return e._nActiveBindings}},controlInterpolants:{get total(){return e._controlInterpolants.length},get inUse(){return e._nActiveControlInterpolants}}}}_isActiveAction(e){const t=e._cacheIndex;return null!==t&&t=0;--t)e[t].stop();return this}update(e){e*=this.timeScale;const t=this._actions,n=this._nActiveActions,r=this.time+=e,i=Math.sign(e),a=this._accuIndex^=1;for(let s=0;s!==n;++s)t[s]._update(r,e,i,a);const s=this._bindings,o=this._nActiveBindings;for(let e=0;e!==o;++e)s[e].apply(a);return this}setTime(e){this.time=0;for(let e=0;ethis.max.x||e.ythis.max.y)}containsBox(e){return this.min.x<=e.min.x&&e.max.x<=this.max.x&&this.min.y<=e.min.y&&e.max.y<=this.max.y}getParameter(e,t){return t.set((e.x-this.min.x)/(this.max.x-this.min.x),(e.y-this.min.y)/(this.max.y-this.min.y))}intersectsBox(e){return!(e.max.xthis.max.x||e.max.ythis.max.y)}clampPoint(e,t){return t.copy(e).clamp(this.min,this.max)}distanceToPoint(e){return this.clampPoint(e,yf).distanceTo(e)}intersect(e){return this.min.max(e.min),this.max.min(e.max),this.isEmpty()&&this.makeEmpty(),this}union(e){return this.min.min(e.min),this.max.max(e.max),this}translate(e){return this.min.add(e),this.max.add(e),this}equals(e){return e.min.equals(this.min)&&e.max.equals(this.max)}}const _f=new Pr,xf=new Pr;class Ef{constructor(e=new Pr,t=new Pr){this.start=e,this.end=t}set(e,t){return this.start.copy(e),this.end.copy(t),this}copy(e){return this.start.copy(e.start),this.end.copy(e.end),this}getCenter(e){return e.addVectors(this.start,this.end).multiplyScalar(.5)}delta(e){return e.subVectors(this.end,this.start)}distanceSq(){return this.start.distanceToSquared(this.end)}distance(){return this.start.distanceTo(this.end)}at(e,t){return this.delta(t).multiplyScalar(e).add(this.start)}closestPointToPointParameter(e,t){_f.subVectors(e,this.start),xf.subVectors(this.end,this.start);const n=xf.dot(xf);let r=xf.dot(_f)/n;return t&&(r=Xn(r,0,1)),r}closestPointToPoint(e,t,n){const r=this.closestPointToPointParameter(e,t);return this.delta(n).multiplyScalar(r).add(this.start)}applyMatrix4(e){return this.start.applyMatrix4(e),this.end.applyMatrix4(e),this}equals(e){return e.start.equals(this.start)&&e.end.equals(this.end)}clone(){return(new this.constructor).copy(this)}}const wf=new Pr;class Mf extends Ui{constructor(e,t){super(),this.light=e,this.matrixAutoUpdate=!1,this.color=t,this.type="SpotLightHelper";const n=new Ma,r=[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(let e=0,t=1,n=32;e1)for(let n=0;n.99999)this.quaternion.set(0,0,0,1);else if(e.y<-.99999)this.quaternion.set(1,0,0,0);else{Kf.set(e.z,0,-e.x).normalize();const t=Math.acos(e.y);this.quaternion.setFromAxisAngle(Kf,t)}}setLength(e,t=.2*e,n=.2*t){this.line.scale.set(1,Math.max(1e-4,e-t),1),this.line.updateMatrix(),this.cone.scale.set(n,t,n),this.cone.position.y=e,this.cone.updateMatrix()}setColor(e){this.line.material.color.set(e),this.cone.material.color.set(e)}copy(e){return super.copy(e,!1),this.line.copy(e.line),this.cone.copy(e.cone),this}dispose(){this.line.geometry.dispose(),this.line.material.dispose(),this.cone.geometry.dispose(),this.cone.material.dispose()}}class em extends Iu{constructor(e=1){const t=[0,0,0,e,0,0,0,0,0,0,e,0,0,0,0,0,0,e],n=new Ma;n.setAttribute("position",new ga(t,3)),n.setAttribute("color",new ga([1,0,0,1,.6,0,0,1,0,.6,1,0,0,0,1,0,.6,1],3)),super(n,new Au({vertexColors:!0,toneMapped:!1})),this.type="AxesHelper"}setColors(e,t,n){const r=new Ji,i=this.geometry.attributes.color.array;return r.set(e),r.toArray(i,0),r.toArray(i,3),r.set(t),r.toArray(i,6),r.toArray(i,9),r.set(n),r.toArray(i,12),r.toArray(i,15),this.geometry.attributes.color.needsUpdate=!0,this}dispose(){this.geometry.dispose(),this.material.dispose()}}class tm{constructor(){this.type="ShapePath",this.color=new Ji,this.subPaths=[],this.currentPath=null}moveTo(e,t){return this.currentPath=new uh,this.subPaths.push(this.currentPath),this.currentPath.moveTo(e,t),this}lineTo(e,t){return this.currentPath.lineTo(e,t),this}quadraticCurveTo(e,t,n,r){return this.currentPath.quadraticCurveTo(e,t,n,r),this}bezierCurveTo(e,t,n,r,i,a){return this.currentPath.bezierCurveTo(e,t,n,r,i,a),this}splineThru(e){return this.currentPath.splineThru(e),this}toShapes(e){function t(e,t){const n=t.length;let r=!1;for(let i=n-1,a=0;aNumber.EPSILON){if(l<0&&(n=t[a],o=-o,s=t[i],l=-l),e.ys.y)continue;if(e.y===n.y){if(e.x===n.x)return!0}else{const t=l*(e.x-n.x)-o*(e.y-n.y);if(0===t)return!0;if(t<0)continue;r=!r}}else{if(e.y!==n.y)continue;if(s.x<=e.x&&e.x<=n.x||n.x<=e.x&&e.x<=s.x)return!0}}return r}const n=Xh.isClockWise,r=this.subPaths;if(0===r.length)return[];let i,a,s;const o=[];if(1===r.length)return a=r[0],s=new Eh,s.curves=a.curves,o.push(s),o;let l=!n(r[0].getPoints());l=e?!l:l;const c=[],u=[];let h,d,p=[],f=0;u[f]=void 0,p[f]=[];for(let t=0,s=r.length;t1){let e=!1,n=0;for(let e=0,t=u.length;e0&&!1===e&&(p=c)}for(let e=0,t=u.length;e{"use strict";n.d(t,{a:()=>i});var r=n(4468);class i{static init(){const e=[1,0,0,2e-5,1,0,0,503905e-9,1,0,0,.00201562,1,0,0,.00453516,1,0,0,.00806253,1,0,0,.0125978,1,0,0,.018141,1,0,0,.0246924,1,0,0,.0322525,1,0,0,.0408213,1,0,0,.0503999,1,0,0,.0609894,1,0,0,.0725906,1,0,0,.0852058,1,0,0,.0988363,1,0,0,.113484,1,0,0,.129153,1,0,0,.145839,1,0,0,.163548,1,0,0,.182266,1,0,0,.201942,1,0,0,.222314,1,0,0,.241906,1,0,0,.262314,1,0,0,.285754,1,0,0,.310159,1,0,0,.335426,1,0,0,.361341,1,0,0,.387445,1,0,0,.412784,1,0,0,.438197,1,0,0,.466966,1,0,0,.49559,1,0,0,.523448,1,0,0,.549938,1,0,0,.57979,1,0,0,.608746,1,0,0,.636185,1,0,0,.664748,1,0,0,.69313,1,0,0,.71966,1,0,0,.747662,1,0,0,.774023,1,0,0,.799775,1,0,0,.825274,1,0,0,.849156,1,0,0,.873248,1,0,0,.89532,1,0,0,.917565,1,0,0,.937863,1,0,0,.958139,1,0,0,.976563,1,0,0,.994658,1,0,0,1.0112,1,0,0,1.02712,1,0,0,1.04189,1,0,0,1.05568,1,0,0,1.06877,1,0,0,1.08058,1,0,0,1.09194,1,0,0,1.10191,1,0,0,1.11161,1,0,0,1.1199,1,0,0,1.12813,.999547,-4.48815e-7,.0224417,199902e-10,.999495,-113079e-10,.0224406,503651e-9,.999496,-452317e-10,.0224406,.00201461,.999496,-101772e-9,.0224406,.00453287,.999495,-180928e-9,.0224406,.00805845,.999497,-282702e-9,.0224406,.0125914,.999496,-407096e-9,.0224406,.0181319,.999498,-554114e-9,.0224406,.02468,.999499,-723768e-9,.0224406,.0322363,.999495,-916058e-9,.0224405,.0408009,.999499,-.00113101,.0224408,.050375,.999494,-.00136863,.0224405,.0609586,.999489,-.00162896,.0224401,.0725537,.999489,-.00191201,.0224414,.0851619,.999498,-.00221787,.0224413,.0987867,.999492,-.00254642,.0224409,.113426,.999507,-.00289779,.0224417,.129088,.999494,-.0032716,.0224386,.145767,.999546,-.0036673,.0224424,.163472,.999543,-.00408166,.0224387,.182182,.999499,-.00450056,.0224338,.201843,.999503,-.00483661,.0224203,.222198,.999546,-.00452928,.022315,.241714,.999508,-.00587403,.0224329,.262184,.999509,-.00638806,.0224271,.285609,.999501,-.00691028,.0224166,.309998,.999539,-.00741979,.0223989,.335262,.999454,-.00786282,.0223675,.361154,.999529,-.00811928,.0222828,.387224,.999503,-.00799941,.0221063,.41252,.999561,-.00952753,.0223057,.438006,.999557,-.0099134,.0222065,.466735,.999541,-.0100935,.0220402,.495332,.999562,-.00996821,.0218067,.523197,.999556,-.0105031,.0217096,.550223,.999561,-.0114191,.0217215,.579498,.999588,-.0111818,.0213357,.608416,.999633,-.0107725,.0208689,.635965,.999527,-.0121671,.0210149,.664476,.999508,-.0116005,.020431,.692786,.999568,-.0115604,.0199791,.719709,.999671,-.0121117,.0197415,.74737,.999688,-.0110769,.0188846,.773692,.99962,-.0122368,.0188452,.799534,.999823,-.0110325,.0178001,.825046,.999599,-.0114923,.0174221,.849075,.999619,-.0105923,.0164345,.872999,.999613,-.0105988,.0158227,.895371,.99964,-.00979861,.0148131,.917364,.99977,-.00967238,.0140721,.938002,.999726,-.00869175,.0129543,.957917,.99973,-.00866872,.0122329,.976557,.999773,-.00731956,.0108958,.994459,.999811,-.00756027,.0102715,1.01118,.999862,-.00583732,.00878781,1.02701,.999835,-.00631438,.00827529,1.04186,.999871,-.00450785,.00674583,1.05569,.999867,-.00486079,.00621041,1.06861,.999939,-.00322072,.00478301,1.08064,.999918,-.00318199,.00406395,1.09181,1.00003,-.00193348,.00280682,1.10207,.999928,-.00153729,.00198741,1.11152,.999933,-623666e-9,917714e-9,1.12009,1,-102387e-11,9.07581e-7,1.12813,.997866,-8.96716e-7,.0448334,199584e-10,.997987,-225945e-10,.0448389,502891e-9,.997987,-903781e-10,.0448388,.00201156,.997985,-203351e-9,.0448388,.00452602,.997986,-361514e-9,.0448388,.00804629,.997987,-56487e-8,.0448389,.0125724,.997988,-813423e-9,.0448389,.0181045,.997984,-.00110718,.0448387,.0246427,.997985,-.00144616,.0448388,.0321875,.997987,-.00183038,.044839,.0407392,.997983,-.00225987,.0448387,.0502986,.997991,-.00273467,.0448389,.0608667,.997984,-.00325481,.0448384,.0724444,.998002,-.00382043,.044839,.0850348,.997997,-.00443145,.0448396,.0986372,.998007,-.00508796,.0448397,.113255,.998008,-.00578985,.04484,.128891,.998003,-.00653683,.0448384,.145548,.997983,-.00732713,.0448358,.163221,.997985,-.00815454,.0448358,.181899,.998005,-.00898985,.0448286,.201533,.998026,-.00964404,.0447934,.221821,.998055,-.00922677,.044611,.241282,.99804,-.0117361,.0448245,.261791,.998048,-.0127628,.0448159,.285181,.998088,-.0138055,.0447996,.30954,.998058,-.0148206,.0447669,.334751,.998099,-.0156998,.044697,.36061,.998116,-.0161976,.0445122,.386603,.998195,-.015945,.0441711,.411844,.998168,-.0183947,.0444255,.43773,.998184,-.0197913,.0443809,.466009,.998251,-.0201426,.0440689,.494574,.998305,-.0198847,.0435632,.522405,.998273,-.0210577,.043414,.549967,.998254,-.0227901,.0433943,.578655,.998349,-.0223108,.0426529,.60758,.99843,-.0223088,.042,.635524,.998373,-.0241141,.0418987,.663621,.998425,-.0231446,.0408118,.691906,.998504,-.0233684,.0400565,.719339,.998443,-.0241652,.0394634,.74643,.99848,-.0228715,.0380002,.773086,.998569,-.023519,.0372322,.798988,.998619,-.0223108,.0356468,.824249,.998594,-.0223105,.034523,.848808,.998622,-.0213426,.0328887,.87227,.998669,-.0207912,.0314374,.895157,.998705,-.0198416,.0296925,.916769,.998786,-.0189168,.0279634,.937773,.998888,-.0178811,.0261597,.957431,.99906,-.0166845,.0242159,.976495,.999038,-.0155464,.0222638,.994169,.999237,-.0141349,.0201967,1.01112,.999378,-.0129324,.0181744,1.02692,.999433,-.0113192,.0159898,1.04174,.999439,-.0101244,.0140385,1.05559,.999614,-.00837456,.0117826,1.06852,.999722,-.00721769,.00983745,1.08069,.999817,-.00554067,.00769002,1.09176,.99983,-.00426961,.005782,1.10211,.999964,-.00273904,.00374503,1.11152,1.00001,-.00136739,.00187176,1.12031,.999946,393227e-10,-28919e-9,1.12804,.995847,-13435e-10,.0671785,19916e-9,.995464,-338387e-10,.0671527,501622e-9,.99547,-135355e-9,.0671531,.00200649,.995471,-30455e-8,.0671532,.00451461,.99547,-541423e-9,.0671531,.008026,.995471,-84598e-8,.0671531,.0125407,.99547,-.00121823,.0671531,.0180589,.99547,-.00165817,.0671531,.0245806,.995463,-.00216583,.0671526,.0321062,.995468,-.00274127,.0671527,.0406366,.995474,-.00338447,.0671534,.0501717,.995473,-.00409554,.0671533,.0607131,.995478,-.00487451,.0671531,.0722618,.995476,-.00572148,.0671532,.0848191,.995477,-.00663658,.0671539,.0983882,.995498,-.00761986,.0671541,.112972,.995509,-.00867094,.0671542,.128568,.995509,-.00978951,.0671531,.145183,.995503,-.0109725,.0671491,.162808,.995501,-.012211,.0671465,.181441,.99553,-.0134565,.0671371,.201015,.99555,-.014391,.0670831,.221206,.99558,-.014351,.0668883,.240813,.995577,-.0173997,.0671055,.261257,.995602,-.0191111,.0671178,.284467,.995623,-.0206705,.0670946,.308765,.995658,-.022184,.0670472,.333905,.995705,-.0234832,.0669417,.359677,.995719,-.0241933,.0666714,.385554,.995786,-.0243539,.066266,.410951,.995887,-.0271866,.0664367,.437163,.995944,-.0296012,.0664931,.464842,.996004,-.0301045,.0660105,.49332,.996128,-.0298311,.0652694,.521131,.996253,-.0316426,.0650739,.549167,.996244,-.0339043,.0649433,.57737,.996309,-.033329,.0638926,.606073,.996417,-.0338935,.0630849,.634527,.996372,-.0353104,.0625083,.66256,.996542,-.0348942,.0611986,.690516,.996568,-.0351614,.060069,.718317,.996711,-.0354317,.0588522,.74528,.996671,-.0349513,.0571902,.772061,.996865,-.0345622,.0555321,.798089,.996802,-.0342566,.0537816,.823178,.996992,-.0330862,.0516095,.847949,.996944,-.0324666,.0495537,.871431,.997146,-.0309544,.0470302,.894357,.997189,-.0299372,.0446043,.916142,.997471,-.0281389,.0418812,.937193,.997515,-.0268702,.0391823,.957,.997812,-.0247166,.0361338,.975936,.998027,-.0233525,.0333945,.99391,.998233,-.0209839,.0301917,1.01075,.998481,-.0194309,.027271,1.02669,.998859,-.0169728,.0240162,1.04173,.99894,-.0152322,.0210517,1.05551,.999132,-.0127497,.0178632,1.06856,.999369,-.0108282,.014787,1.08054,.999549,-.00845886,.0116185,1.09185,.999805,-.0063937,.00867209,1.10207,.99985,-.00414582,.00566823,1.1117,.999912,-.00207443,.00277562,1.12022,1.00001,870226e-10,-53766e-9,1.12832,.991943,-178672e-11,.0893382,198384e-10,.991952,-450183e-10,.089339,499849e-9,.991956,-180074e-9,.0893394,.0019994,.991955,-405167e-9,.0893393,.00449867,.991953,-720298e-9,.0893391,.00799764,.991955,-.00112548,.0893393,.0124964,.991957,-.0016207,.0893395,.0179951,.991958,-.00220601,.0893396,.0244939,.991947,-.00288137,.0893385,.0319929,.991962,-.00364693,.0893399,.0404933,.991965,-.00450264,.0893399,.049995,.99198,-.00544862,.0893411,.0604995,.99197,-.00648491,.0893397,.0720074,.991976,-.00761164,.089341,.0845207,.99198,-.00882891,.0893405,.0980413,.991982,-.0101367,.0893396,.112571,.992008,-.011535,.0893415,.128115,.992026,-.0130228,.0893414,.144672,.992064,-.0145966,.0893418,.162241,.992041,-.0162421,.0893359,.180801,.992086,-.0178888,.0893214,.200302,.992157,-.0190368,.0892401,.220332,.992181,-.0195584,.0890525,.240144,.992175,-.0227257,.0892153,.260728,.99221,-.0254195,.089304,.283473,.99222,-.0274883,.0892703,.307673,.992317,-.0294905,.0892027,.332729,.992374,-.0311861,.0890577,.358387,.992505,-.0320656,.0886994,.384102,.992568,-.0329715,.0883198,.409767,.992675,-.036006,.0883602,.436145,.992746,-.0392897,.0884591,.463217,.992873,-.0399337,.0878287,.491557,.992934,-.040231,.0870108,.519516,.993091,-.0422013,.0865857,.547741,.993259,-.0443503,.0861937,.575792,.993455,-.0446368,.0851187,.604233,.993497,-.0454299,.0840576,.632925,.993694,-.0463296,.0829671,.660985,.993718,-.0470619,.0817185,.688714,.993973,-.0468838,.0800294,.716743,.994207,-.046705,.0781286,.74377,.994168,-.0469698,.0763337,.77042,.9945,-.0456816,.0738184,.796659,.994356,-.0455518,.0715545,.821868,.994747,-.0439488,.0686085,.846572,.994937,-.0430056,.065869,.870435,.995142,-.0413414,.0626446,.893272,.995451,-.0396521,.05929,.915376,.995445,-.0378453,.0558503,.936196,.995967,-.0355219,.0520949,.956376,.996094,-.0335146,.048377,.975327,.996622,-.030682,.0442575,.993471,.996938,-.0285504,.0404693,1.01052,.997383,-.0253399,.0360903,1.02637,.997714,-.0231651,.0322176,1.04139,.998249,-.0198138,.0278433,1.05542,.998596,-.0174337,.0238759,1.06846,.998946,-.0141349,.0195944,1.08056,.99928,-.0115603,.0156279,1.09181,.999507,-.00839065,.0114607,1.10213,.999697,-.005666,.00763325,1.11169,.999869,-.00269902,.00364946,1.12042,1.00001,623836e-10,-319288e-10,1.12832,.987221,-222675e-11,.111332,197456e-10,.98739,-561116e-10,.111351,497563e-9,.987448,-224453e-9,.111357,.00199031,.987441,-505019e-9,.111357,.0044782,.987442,-897816e-9,.111357,.00796129,.987442,-.00140284,.111357,.0124396,.987444,-.00202012,.111357,.0179132,.987442,-.00274964,.111357,.0243824,.987446,-.00359147,.111357,.0318474,.987435,-.00454562,.111356,.0403086,.987461,-.00561225,.111358,.0497678,.987458,-.00679125,.111358,.0602239,.987443,-.0080828,.111356,.0716792,.987476,-.0094872,.111358,.0841364,.98749,-.0110044,.111361,.097597,.987508,-.0126344,.111362,.112062,.987494,-.0143767,.111357,.127533,.987526,-.0162307,.111359,.144015,.987558,-.0181912,.111361,.161502,.987602,-.0202393,.111355,.179979,.987692,-.022273,.111346,.199386,.987702,-.0235306,.111215,.219183,.987789,-.0247628,.111061,.239202,.987776,-.0280668,.111171,.259957,.987856,-.0316751,.111327,.282198,.987912,-.0342468,.111282,.306294,.988,-.0367205,.111198,.331219,.988055,-.0387766,.110994,.356708,.988241,-.0397722,.110547,.382234,.988399,-.0416076,.110198,.408227,.988539,-.0448192,.110137,.434662,.988661,-.0483793,.110143,.461442,.988967,-.0495895,.109453,.489318,.989073,-.0506797,.108628,.517516,.989274,-.0526953,.108003,.545844,.989528,-.054578,.107255,.573823,.989709,-.0561503,.106294,.601944,.989991,-.056866,.104896,.630855,.990392,-.0572914,.103336,.658925,.990374,-.0586224,.10189,.686661,.990747,-.0584764,.099783,.714548,.991041,-.0582662,.0974309,.74186,.991236,-.0584118,.0951678,.768422,.991585,-.0573055,.0921581,.794817,.991984,-.0564241,.0891167,.820336,.9921,-.0553608,.085805,.84493,.992749,-.0533816,.0820354,.868961,.99288,-.0518661,.0782181,.891931,.993511,-.0492492,.0738935,.914186,.993617,-.0471956,.0696402,.93532,.99411,-.044216,.0649659,.95543,.994595,-.0416654,.0603177,.974685,.994976,-.0384314,.0553493,.992807,.995579,-.0353491,.0503942,1.00996,.996069,-.0319787,.0452123,1.02606,.996718,-.028472,.0400112,1.04114,.997173,-.0250789,.0349456,1.05517,.997818,-.0213326,.029653,1.0683,.998318,-.0178509,.024549,1.0805,.998853,-.0141118,.0194197,1.09177,.999218,-.0105914,.0143869,1.1022,.999594,-.00693474,.00943517,1.11175,.99975,-.00340478,.00464051,1.12056,1.00001,109172e-9,-112821e-9,1.12853,.983383,-266524e-11,.133358,196534e-10,.981942,-671009e-10,.133162,494804e-9,.981946,-268405e-9,.133163,.00197923,.981944,-603912e-9,.133163,.00445326,.981941,-.00107362,.133162,.00791693,.981946,-.00167755,.133163,.0123703,.981944,-.00241569,.133162,.0178135,.981945,-.00328807,.133163,.0242466,.981945,-.00429472,.133162,.03167,.981955,-.00543573,.133164,.0400846,.981951,-.00671105,.133163,.0494901,.981968,-.00812092,.133165,.0598886,.981979,-.00966541,.133166,.0712811,.981996,-.0113446,.133168,.083669,.982014,-.0131585,.133169,.0970533,.982011,-.0151073,.133167,.111438,.982062,-.0171906,.133172,.126826,.9821,-.0194067,.133175,.143215,.982149,-.0217502,.133176,.160609,.982163,-.0241945,.133173,.178981,.982247,-.0265907,.133148,.198249,.982291,-.027916,.132974,.217795,.982396,-.0299663,.132868,.238042,.982456,-.0334544,.132934,.258901,.982499,-.0378636,.133137,.280639,.982617,-.0409274,.133085,.304604,.98274,-.0438523,.132985,.329376,.982944,-.0462288,.132728,.354697,.98308,-.0475995,.132228,.380102,.983391,-.0501901,.131924,.406256,.983514,-.0535899,.131737,.432735,.98373,-.0571858,.131567,.459359,.984056,-.0592353,.130932,.486637,.984234,-.0610488,.130092,.51509,.984748,-.0630758,.12923,.543461,.985073,-.0647398,.128174,.571376,.985195,-.0671941,.127133,.599414,.985734,-.0681345,.125576,.628134,.986241,-.0686089,.123639,.656399,.986356,-.0698511,.121834,.684258,.986894,-.0700931,.119454,.711818,.987382,-.0698321,.116718,.739511,.988109,-.0693975,.113699,.766267,.988363,-.0689584,.110454,.792456,.989112,-.0672353,.106602,.81813,.989241,-.0662034,.10267,.842889,.990333,-.0638938,.0981381,.867204,.990591,-.0618534,.0935388,.89038,.991106,-.0593117,.088553,.912576,.991919,-.0562676,.0832187,.934118,.992111,-.0534085,.0778302,.954254,.992997,-.0495459,.0720453,.973722,.993317,-.0463707,.0663458,.991949,.994133,-.0421245,.0601883,1.00936,.994705,-.0384977,.0542501,1.02559,.995495,-.0340956,.0479862,1.04083,.996206,-.030105,.041887,1.05497,.996971,-.0256095,.0355355,1.06824,.997796,-.0213932,.0293655,1.08056,.998272,-.0169612,.0232926,1.09182,.998857,-.0126756,.0172786,1.10219,.99939,-.00832486,.0113156,1.11192,.999752,-.00410826,.00557892,1.12075,1,150957e-9,-119101e-9,1.12885,.975169,-309397e-11,.154669,195073e-10,.975439,-779608e-10,.154712,491534e-9,.975464,-311847e-9,.154716,.00196617,.975464,-701656e-9,.154716,.00442387,.975462,-.0012474,.154715,.0078647,.975461,-.00194906,.154715,.0122886,.975464,-.00280667,.154715,.0176959,.975468,-.00382025,.154716,.0240867,.975471,-.00498985,.154716,.0314612,.975472,-.00631541,.154717,.0398199,.975486,-.00779719,.154718,.0491639,.975489,-.00943505,.154718,.0594932,.975509,-.0112295,.154721,.0708113,.97554,-.0131802,.154724,.0831176,.975557,-.0152876,.154726,.096415,.975585,-.0175512,.154728,.110705,.975605,-.0199713,.154729,.125992,.975645,-.0225447,.154729,.142272,.975711,-.0252649,.154735,.159549,.975788,-.0280986,.154736,.177805,.975872,-.0308232,.154704,.196911,.975968,-.0324841,.154525,.216324,.976063,-.0351281,.154432,.236628,.976157,-.0388618,.15446,.257539,.976204,-.0437704,.154665,.278975,.976358,-.047514,.154652,.302606,.976571,-.0508638,.154535,.327204,.976725,-.0534995,.154221,.352276,.977013,-.0555547,.153737,.377696,.977294,-.0586728,.153403,.403855,.977602,-.0622715,.15312,.430333,.977932,-.0658166,.152755,.456855,.978241,-.0689877,.152233,.483668,.978602,-.0712805,.15132,.512097,.979234,-.0732775,.150235,.540455,.97977,-.075163,.148978,.568486,.979995,-.0778026,.147755,.596524,.98078,-.0791854,.146019,.624825,.981628,-.0799666,.143906,.653403,.982067,-.0808532,.141561,.681445,.98271,-.0816024,.139025,.708918,.983734,-.0812511,.135764,.736594,.98431,-.0806201,.132152,.763576,.985071,-.0801605,.12846,.789797,.98618,-.0784208,.124084,.815804,.986886,-.0766643,.1193,.840869,.987485,-.0747744,.114236,.864952,.988431,-.0716701,.108654,.888431,.988886,-.0691609,.102994,.910963,.990024,-.0654048,.0967278,.932629,.990401,-.0619765,.090384,.95313,.991093,-.0579296,.0837885,.972587,.992018,-.0536576,.0770171,.991184,.992536,-.0493719,.0701486,1.00863,.993421,-.0444813,.062953,1.02494,.993928,-.040008,.0560455,1.04017,.994994,-.0347982,.04856,1.05463,.995866,-.0301017,.0416152,1.06807,.996916,-.0248225,.0342597,1.08039,.997766,-.0199229,.0271668,1.09177,.998479,-.0147422,.0201387,1.10235,.99921,-.00980173,.0131944,1.11206,.999652,-.0047426,.00640712,1.12104,.999998,891673e-10,-10379e-8,1.12906,.967868,-351885e-11,.175947,193569e-10,.968001,-886733e-10,.175972,487782e-9,.96801,-354697e-9,.175973,.00195115,.968012,-798063e-9,.175974,.00439006,.968011,-.00141879,.175973,.00780461,.968011,-.00221686,.175973,.0121948,.968016,-.00319231,.175974,.0175607,.968019,-.00434515,.175974,.0239027,.968018,-.00567538,.175974,.0312208,.968033,-.00718308,.175977,.0395158,.968049,-.00886836,.175979,.0487885,.968047,-.0107312,.175978,.0590394,.968072,-.0127719,.175981,.0702705,.968108,-.0149905,.175986,.0824836,.968112,-.0173866,.175985,.0956783,.968173,-.0199611,.175993,.109862,.96827,-.0227128,.176008,.125033,.968292,-.025639,.17601,.141193,.968339,-.0287299,.176007,.158336,.968389,-.0319399,.176001,.176441,.968501,-.034941,.175962,.195359,.968646,-.0370812,.175793,.214686,.968789,-.0402329,.175708,.234973,.96886,-.0442601,.1757,.255871,.969013,-.049398,.175876,.277238,.969242,-.0539932,.17594,.300326,.969419,-.0577299,.175781,.324702,.969763,-.0605643,.175432,.349527,.970093,-.0634488,.174992,.374976,.970361,-.0670589,.174611,.401097,.970825,-.0708246,.174226,.427496,.971214,-.0742871,.173684,.453858,.971622,-.0782608,.173186,.480637,.972175,-.0813151,.172288,.508655,.972944,-.0832678,.170979,.536973,.973595,-.0855964,.169573,.565138,.974345,-.0882163,.168152,.593222,.975233,-.0901671,.166314,.621201,.976239,-.0912111,.163931,.649919,.977289,-.0916959,.161106,.678011,.978076,-.0927061,.158272,.705717,.979533,-.0925562,.15475,.733228,.980335,-.0918159,.150638,.760454,.981808,-.0908508,.146201,.786918,.983061,-.0896172,.141386,.812953,.984148,-.0871588,.135837,.838281,.985047,-.0850624,.130135,.862594,.986219,-.0818541,.123882,.88633,.987043,-.0784523,.117126,.908952,.988107,-.0749601,.110341,.930744,.988955,-.0703548,.102885,.951728,.989426,-.0662798,.0954167,.971166,.990421,-.0610834,.0876331,.989984,.991032,-.0562936,.0797785,1.00765,.992041,-.0508154,.0718166,1.02434,.992794,-.0454045,.0637125,1.03976,.993691,-.0398194,.0555338,1.05418,.994778,-.0341482,.0473388,1.06772,.995915,-.028428,.0391016,1.08028,.997109,-.022642,.0309953,1.09185,.998095,-.0168738,.0230288,1.10247,.998985,-.0111274,.0150722,1.11229,.999581,-.00543881,.00740605,1.12131,1.00003,162239e-9,-105549e-9,1.12946,.959505,-393734e-11,.196876,191893e-10,.959599,-992157e-10,.196895,483544e-9,.959641,-396868e-9,.196903,.0019342,.959599,-892948e-9,.196895,.00435193,.959603,-.00158747,.196896,.0077368,.959604,-.00248042,.196896,.0120888,.959605,-.00357184,.196896,.0174082,.959605,-.00486169,.196896,.0236949,.959613,-.00635008,.196897,.0309497,.959619,-.00803696,.196898,.0391725,.959636,-.00992255,.196901,.0483649,.959634,-.0120067,.1969,.0585266,.959675,-.0142898,.196906,.0696609,.959712,-.0167717,.196911,.0817678,.959752,-.0194524,.196918,.0948494,.959807,-.0223321,.196925,.10891,.959828,-.0254091,.196924,.123947,.959906,-.0286815,.196934,.139968,.960005,-.0321371,.196944,.156968,.960071,-.0357114,.196936,.17491,.960237,-.0389064,.196882,.193597,.960367,-.041623,.196731,.21285,.960562,-.0452655,.196654,.233075,.960735,-.0496207,.196643,.253941,.960913,-.0549379,.196774,.275278,.961121,-.0603414,.196893,.297733,.96139,-.0644244,.196717,.321877,.961818,-.067556,.196314,.346476,.962175,-.0712709,.195917,.371907,.96255,-.0752848,.1955,.397916,.963164,-.0792073,.195026,.424229,.963782,-.0828225,.194424,.450637,.964306,-.0873119,.193831,.477288,.964923,-.0911051,.192973,.504716,.966048,-.093251,.19151,.533053,.967024,-.0958983,.190013,.561366,.968038,-.09835,.188253,.589464,.969152,-.100754,.186257,.617433,.970557,-.102239,.183775,.645801,.972104,-.102767,.180645,.674278,.973203,-.103492,.177242,.702004,.975123,-.103793,.17345,.729529,.97641,-.102839,.168886,.756712,.978313,-.101687,.163892,.783801,.980036,-.100314,.158439,.809671,.981339,-.097836,.152211,.835402,.982794,-.0950006,.145679,.860081,.984123,-.0920994,.138949,.883757,.984918,-.0878641,.131283,.90685,.985999,-.083939,.123464,.928786,.987151,-.0791234,.115324,.94983,.987827,-.0739332,.106854,.96962,.988806,-.0688088,.0982691,.98861,.989588,-.0628962,.0893456,1.00667,.990438,-.0573146,.0805392,1.02344,.991506,-.0509433,.0713725,1.03933,.992492,-.0448724,.0623732,1.05378,.993663,-.0383497,.0530838,1.06747,.994956,-.0319593,.0439512,1.08007,.99634,-.025401,.0347803,1.09182,.99761,-.0189687,.0257954,1.1025,.99863,-.0124441,.0169893,1.11247,.99947,-.00614003,.00829498,1.12151,1.00008,216624e-9,-146107e-9,1.12993,.950129,-434955e-11,.217413,190081e-10,.950264,-10957e-8,.217444,47884e-8,.9503,-438299e-9,.217451,.00191543,.950246,-986124e-9,.21744,.00430951,.950246,-.00175311,.21744,.00766137,.950245,-.00273923,.21744,.011971,.950253,-.00394453,.217441,.0172385,.950258,-.00536897,.217442,.0234641,.950267,-.00701262,.217444,.030648,.950277,-.00887551,.217446,.038791,.950284,-.0109576,.217446,.0478931,.950312,-.0132591,.217451,.0579568,.950334,-.01578,.217454,.0689821,.950378,-.0185204,.217462,.0809714,.950417,-.0214803,.217467,.0939265,.950488,-.0246594,.217479,.10785,.950534,-.0280565,.217483,.122743,.950633,-.0316685,.217498,.138611,.950698,-.0354787,.217499,.155442,.950844,-.0394003,.217507,.173208,.950999,-.0426812,.217419,.191605,.951221,-.0461302,.217317,.21084,.951412,-.0502131,.217238,.230945,.951623,-.0549183,.21722,.251745,.951867,-.0604493,.217306,.273001,.952069,-.0665189,.217466,.294874,.952459,-.0709179,.217266,.318732,.952996,-.0746112,.216891,.34318,.953425,-.0789252,.216503,.36849,.953885,-.0833293,.216042,.394373,.954617,-.087371,.215469,.420505,.955429,-.0914054,.214802,.446907,.956068,-.0961671,.214146,.473522,.957094,-.10048,.213286,.50052,.958372,-.103248,.211796,.528715,.959654,-.106033,.21016,.557065,.961305,-.108384,.208149,.585286,.962785,-.111122,.206024,.613334,.964848,-.112981,.203442,.641334,.966498,-.113717,.19996,.669955,.968678,-.114121,.196105,.698094,.970489,-.114524,.191906,.725643,.972903,-.113792,.186963,.752856,.974701,-.112406,.181343,.780013,.976718,-.110685,.175185,.806268,.978905,-.108468,.168535,.832073,.980267,-.105061,.161106,.857149,.981967,-.101675,.153387,.881145,.983063,-.0974492,.145199,.904255,.984432,-.0925815,.136527,.926686,.985734,-.0877983,.127584,.947901,.986228,-.081884,.118125,.968111,.98719,-.0761208,.108594,.98719,.988228,-.0698196,.0989996,1.00559,.989046,-.0632739,.0890074,1.02246,.990242,-.056522,.0790832,1.03841,.991252,-.0495272,.0689182,1.05347,.992542,-.0425373,.0588592,1.06724,.994096,-.0353198,.0486833,1.08009,.995593,-.028235,.0385977,1.09177,.99711,-.0209511,.0286457,1.10274,.998263,-.0139289,.0188497,1.11262,.999254,-.0067359,.009208,1.12191,.999967,141846e-9,-657764e-10,1.13024,.935608,-474692e-11,.236466,187817e-10,.93996,-11971e-8,.237568,473646e-9,.939959,-478845e-9,.237567,.0018946,.939954,-.0010774,.237566,.00426284,.939956,-.00191538,.237566,.00757842,.939954,-.00299277,.237566,.0118413,.93996,-.00430961,.237567,.0170518,.939969,-.00586589,.237569,.02321,.939982,-.00766166,.237572,.0303164,.939987,-.00969686,.237572,.0383711,.939997,-.0119715,.237574,.0473751,.940031,-.0144858,.237581,.0573298,.940073,-.0172399,.237589,.0682366,.94012,-.0202335,.237598,.080097,.940162,-.0234663,.237604,.0929116,.940237,-.0269387,.237615,.106686,.940328,-.0306489,.237632,.121421,.940419,-.0345917,.237645,.137115,.940522,-.0387481,.237654,.153766,.940702,-.0429906,.237661,.17133,.940871,-.0465089,.237561,.189502,.941103,-.050531,.23748,.208616,.941369,-.0550657,.237423,.228595,.941641,-.0601337,.237399,.249287,.941903,-.0658804,.237443,.270467,.942224,-.0722674,.237597,.292024,.942633,-.0771788,.237419,.315272,.943172,-.0815623,.237068,.339579,.943691,-.0863973,.236682,.364717,.944382,-.0911536,.236213,.390435,.945392,-.0952967,.235562,.416425,.946185,-.0998948,.234832,.442772,.947212,-.104796,.234114,.469347,.948778,-.10928,.233222,.496162,.950149,-.113081,.231845,.523978,.951989,-.115893,.230005,.552295,.953921,-.11846,.227862,.580569,.955624,-.12115,.225439,.608698,.958234,-.123373,.222635,.636696,.960593,-.124519,.219093,.665208,.963201,-.124736,.214749,.693557,.965642,-.125012,.210059,.721334,.968765,-.124661,.204935,.748613,.971753,-.122996,.198661,.776224,.973751,-.120998,.191823,.802461,.976709,-.118583,.184359,.828399,.977956,-.115102,.176437,.853693,.979672,-.111077,.167681,.877962,.981816,-.10688,.158872,.901564,.98238,-.101469,.149398,.924057,.983964,-.0960013,.139436,.945751,.984933,-.0899626,.12943,.966272,.985694,-.0832973,.11894,.985741,.986822,-.0767082,.108349,1.00407,.987725,-.0693614,.0976026,1.02154,.98877,-.06211,.086652,1.03757,.990129,-.0544143,.0756182,1.05296,.991337,-.046744,.0645753,1.06683,.992978,-.0387931,.0534683,1.0798,.994676,-.030973,.0424137,1.09181,.99645,-.0230311,.0314035,1.10286,.997967,-.0152065,.0206869,1.11291,.99922,-.00744837,.010155,1.12237,1.00002,240209e-9,-752767e-10,1.13089,.922948,-515351e-11,.255626,186069e-10,.928785,-129623e-9,.257244,468009e-9,.928761,-51849e-8,.257237,.00187202,.928751,-.0011666,.257235,.00421204,.928751,-.00207395,.257234,.0074881,.928754,-.00324055,.257235,.0117002,.92876,-.00466639,.257236,.0168486,.928763,-.00635149,.257237,.0229334,.928774,-.00829584,.257239,.029955,.928791,-.0104995,.257243,.0379139,.928804,-.0129623,.257245,.0468108,.928847,-.0156846,.257255,.0566473,.92889,-.0186661,.257263,.0674246,.928924,-.0219067,.257268,.0791433,.928989,-.0254066,.257282,.0918076,.92909,-.0291651,.257301,.105419,.92918,-.0331801,.257316,.119978,.92929,-.0374469,.257332,.135491,.929453,-.041939,.257357,.151948,.929586,-.0464612,.257347,.169275,.929858,-.0503426,.257269,.187257,.930125,-.0548409,.257199,.206204,.930403,-.0598063,.257149,.22601,.930726,-.0652437,.257122,.246561,.931098,-.0712376,.257153,.267618,.931396,-.0777506,.257237,.288993,.931947,-.0832374,.257124,.311527,.932579,-.0883955,.25683,.335697,.933194,-.0937037,.256444,.360634,.934013,-.0987292,.255939,.386126,.935307,-.103215,.255282,.412018,.936374,-.108234,.254538,.438292,.93776,-.113234,.253728,.464805,.939599,-.118013,.25275,.491464,.941036,-.122661,.251404,.518751,.94337,-.125477,.249435,.547133,.945318,-.128374,.247113,.575456,.947995,-.130996,.244441,.60372,.950818,-.133438,.241352,.63174,.954378,-.135004,.237849,.659971,.957151,-.135313,.233188,.688478,.960743,-.13521,.228001,.716767,.964352,-.135007,.222249,.744349,.967273,-.133523,.21542,.771786,.969767,-.131155,.208039,.798639,.973195,-.128492,.200076,.824774,.975557,-.125094,.191451,.850222,.977692,-.120578,.18184,.874761,.98026,-.115882,.172102,.898497,.981394,-.110372,.161859,.921636,.982386,-.10415,.15108,.943467,.983783,-.0978128,.140407,.964045,.98422,-.0906171,.129058,.98398,.985447,-.0832921,.117614,1.00276,.986682,-.0754412,.10585,1.02047,.987326,-.0673885,.0940943,1.03678,.988707,-.0592565,.0822093,1.05218,.990185,-.050717,.070192,1.06652,.991866,-.0423486,.0582081,1.07965,.993897,-.0336118,.0460985,1.09188,.995841,-.0252178,.0342737,1.10307,.997605,-.0164893,.0224829,1.11324,.999037,-.00817112,.0110647,1.12262,1.00003,291686e-9,-168673e-9,1.13139,.915304,-552675e-11,.275999,183285e-10,.91668,-139285e-9,.276414,461914e-9,.916664,-55713e-8,.276409,.00184763,.916653,-.00125354,.276406,.00415715,.916651,-.00222851,.276405,.00739053,.916655,-.00348205,.276406,.0115478,.916653,-.00501414,.276405,.0166291,.916667,-.00682478,.276409,.0226346,.91668,-.00891398,.276412,.0295648,.91669,-.0112817,.276413,.0374199,.916727,-.013928,.276422,.0462016,.916759,-.0168528,.276429,.0559101,.916793,-.0200558,.276436,.0665466,.916849,-.0235373,.276448,.0781139,.916964,-.0272973,.276474,.0906156,.917047,-.0313344,.276491,.104051,.917152,-.0356465,.276511,.118424,.917286,-.0402271,.276533,.133736,.917469,-.0450408,.276564,.149978,.917686,-.0497872,.276563,.167057,.917953,-.0540937,.276493,.184846,.918228,-.0590709,.276437,.203614,.918572,-.0644277,.276398,.223212,.918918,-.0702326,.276362,.243584,.919356,-.076484,.276383,.264465,.919842,-.0830808,.276434,.285701,.920451,-.0892972,.276407,.307559,.921113,-.095016,.276128,.331501,.921881,-.100771,.275754,.356207,.923027,-.106029,.275254,.381477,.924364,-.111029,.274595,.40722,.925818,-.116345,.273841,.433385,.92746,-.121424,.272913,.459848,.929167,-.12657,.271837,.486493,.931426,-.131581,.270575,.513432,.934001,-.135038,.268512,.541502,.936296,-.138039,.266135,.569658,.939985,-.140687,.263271,.598375,.943516,-.143247,.260058,.626563,.94782,-.145135,.256138,.654711,.951023,-.145733,.251154,.683285,.955338,-.145554,.245562,.711831,.959629,-.145008,.239265,.739573,.963123,-.144003,.232064,.767027,.966742,-.141289,.224036,.794359,.969991,-.138247,.215305,.820361,.973403,-.134786,.206051,.846548,.975317,-.129966,.195914,.871541,.977647,-.12471,.185184,.895313,.980137,-.119086,.174161,.918398,.981031,-.112297,.162792,.940679,.982037,-.105372,.150952,.961991,.983164,-.097821,.138921,.981913,.983757,-.0897245,.126611,1.00109,.985036,-.0815974,.114228,1.01902,.986289,-.0727725,.101389,1.03604,.987329,-.0639323,.0886476,1.05149,.989193,-.0548109,.0756837,1.06619,.990716,-.045687,.0627581,1.07948,.992769,-.0364315,.0498337,1.09172,.99524,-.0271761,.0370305,1.1033,.997154,-.0179609,.0243959,1.11353,.998845,-.00878063,.0119567,1.12319,1.00002,259038e-9,-108146e-9,1.13177,.903945,-591681e-11,.295126,181226e-10,.903668,-148672e-9,.295037,455367e-9,.903677,-594683e-9,.29504,.00182145,.903673,-.00133805,.295039,.00409831,.903666,-.00237872,.295036,.00728584,.903668,-.00371676,.295037,.0113842,.903679,-.00535212,.29504,.0163936,.903684,-.00728479,.295041,.0223141,.903698,-.00951473,.295044,.0291462,.903718,-.0120419,.295049,.0368904,.903754,-.0148664,.295058,.0455477,.903801,-.017988,.29507,.0551194,.903851,-.0214064,.295082,.0656058,.903921,-.0251219,.295097,.0770109,.904002,-.0291337,.295116,.0893354,.904111,-.033441,.29514,.102583,.904246,-.0380415,.295169,.116755,.904408,-.0429258,.295202,.131853,.904637,-.0480468,.295245,.147869,.904821,-.0529208,.295214,.164658,.905163,-.0577748,.295185,.182274,.905469,-.0631763,.295143,.200828,.905851,-.068917,.295112,.2202,.906322,-.0750861,.295104,.240372,.906761,-.0815855,.295086,.261082,.90735,-.0882138,.295095,.282123,.908087,-.095082,.295139,.303563,.908826,-.101488,.29492,.327028,.909832,-.107577,.294577,.351464,.911393,-.113033,.294115,.376497,.912804,-.118629,.293446,.402115,.914081,-.124232,.292581,.428111,.91637,-.129399,.29166,.454442,.91814,-.134892,.290422,.481024,.921179,-.140069,.289194,.507924,.924544,-.144431,.287421,.535557,.927995,-.147498,.284867,.563984,.931556,-.150197,.281722,.5923,.935777,-.152711,.278207,.620832,.940869,-.154836,.274148,.649069,.945994,-.155912,.269057,.677746,.949634,-.155641,.262799,.706293,.955032,-.154809,.256097,.734278,.95917,-.153678,.248618,.761751,.962931,-.151253,.239794,.789032,.966045,-.147625,.230281,.815422,.96971,-.143964,.220382,.841787,.972747,-.139464,.209846,.867446,.975545,-.133459,.198189,.892004,.978381,-.127424,.186362,.915458,.979935,-.120506,.173964,.937948,.980948,-.11282,.161429,.959732,.982234,-.104941,.148557,.980118,.982767,-.0962905,.135508,.999463,.983544,-.0873625,.122338,1.01756,.984965,-.0783447,.108669,1.03492,.986233,-.0684798,.0949911,1.05087,.987796,-.0590867,.0811386,1.0656,.989885,-.0489145,.0673099,1.0794,.991821,-.0391,.0535665,1.09174,.99448,-.029087,.0397529,1.10341,.996769,-.019114,.0261463,1.11383,.998641,-.00947007,.0128731,1.1237,.999978,446316e-9,-169093e-9,1.13253,.888362,-627064e-11,.312578,178215e-10,.889988,-157791e-9,.313148,448451e-9,.889825,-631076e-9,.313092,.00179356,.88984,-.00141994,.313097,.00403554,.889828,-.0025243,.313092,.00717429,.889831,-.00394421,.313093,.0112099,.889831,-.00567962,.313093,.0161425,.889844,-.00773051,.313096,.0219724,.889858,-.0100968,.3131,.0286999,.889882,-.0127786,.313106,.0363256,.889918,-.0157757,.313116,.0448509,.889967,-.0190878,.313129,.0542758,.89003,-.022715,.313145,.0646032,.890108,-.0266566,.313165,.0758339,.890218,-.0309131,.313193,.0879729,.890351,-.0354819,.313226,.101019,.89051,-.0403613,.313263,.114979,.890672,-.0455385,.313294,.129848,.890882,-.0509444,.313333,.145616,.891189,-.0559657,.313324,.162122,.891457,-.0613123,.313281,.179524,.891856,-.0671488,.313281,.197855,.892312,-.0732732,.313268,.216991,.892819,-.0797865,.313263,.236924,.893369,-.0865269,.313247,.257433,.894045,-.0931592,.313205,.278215,.894884,-.100532,.313276,.299467,.895832,-.107716,.313205,.322276,.897043,-.114099,.312873,.34642,.898515,-.119941,.312331,.371187,.900191,-.126044,.311731,.396656,.90188,-.131808,.310859,.422488,.904359,-.137289,.309857,.448744,.906923,-.142991,.308714,.475239,.910634,-.148253,.307465,.501983,.914502,-.153332,.305774,.529254,.919046,-.156646,.303156,.557709,.923194,-.159612,.299928,.586267,.928858,-.162027,.296245,.614925,.934464,-.164203,.291832,.643187,.939824,-.165602,.286565,.671601,.944582,-.165383,.280073,.700213,.949257,-.164439,.272891,.728432,.954389,-.162953,.264771,.756082,.958595,-.161007,.255927,.78369,.962138,-.157243,.245769,.810769,.966979,-.152872,.235127,.836999,.969566,-.148209,.22347,.862684,.972372,-.142211,.211147,.887847,.975916,-.135458,.198606,.911843,.978026,-.128398,.185498,.934795,.979686,-.120313,.17171,.956787,.980748,-.11166,.158159,.978046,.981622,-.103035,.144399,.997693,.982356,-.0930328,.13001,1.01642,.983308,-.0834627,.115778,1.03366,.985037,-.0732249,.101327,1.05014,.986493,-.0628145,.086554,1.06507,.988484,-.0526556,.0720413,1.07907,.991051,-.0415744,.0571151,1.09189,.993523,-.0314275,.0426643,1.10369,.99628,-.0203603,.0279325,1.11423,.998344,-.0102446,.0138182,1.12421,.999997,42612e-8,-193628e-9,1.1333,.871555,-660007e-11,.329176,174749e-10,.875255,-166579e-9,.330571,441051e-9,.875644,-666394e-9,.330718,.00176441,.875159,-.00149903,.330536,.00396899,.87516,-.00266493,.330536,.007056,.875158,-.00416393,.330535,.0110251,.87516,-.00599598,.330535,.0158764,.875163,-.00816108,.330536,.0216101,.875174,-.0106591,.330538,.0282266,.875199,-.0134899,.330545,.0357266,.875257,-.0166538,.330563,.0441117,.875304,-.0201501,.330575,.0533821,.875373,-.0239785,.330595,.0635395,.875464,-.0281389,.330619,.0745872,.875565,-.0326301,.330645,.0865255,.875691,-.0374516,.330676,.0993599,.875897,-.0425993,.330733,.113093,.876091,-.0480576,.330776,.127722,.876353,-.0537216,.330826,.143227,.876649,-.0589807,.330809,.159462,.877034,-.0647865,.330819,.176642,.877443,-.0709789,.330817,.194702,.877956,-.0774782,.330832,.213577,.878499,-.0843175,.330822,.233246,.879144,-.0912714,.330804,.253512,.879982,-.0980824,.330766,.274137,.88097,-.105823,.330864,.295209,.882051,-.113671,.330896,.317226,.883397,-.120303,.330545,.341068,.884987,-.12667,.330068,.365613,.886789,-.133118,.329418,.390807,.889311,-.139024,.328683,.416494,.891995,-.144971,.327729,.442618,.895106,-.150747,.326521,.469131,.899527,-.156283,.325229,.495921,.90504,-.161707,.32378,.523162,.909875,-.165661,.32122,.55092,.91561,-.168755,.317942,.579928,.921225,-.171193,.313983,.608539,.927308,-.17319,.309636,.636854,.933077,-.174819,.304262,.66523,.938766,-.175002,.297563,.693609,.943667,-.173946,.289613,.722157,.949033,-.172221,.281227,.750021,.953765,-.169869,.271545,.777466,.95804,-.166578,.261034,.804853,.962302,-.161761,.249434,.831569,.966544,-.156636,.237484,.857779,.969372,-.150784,.224395,.883051,.972486,-.143672,.210786,.907864,.975853,-.135772,.196556,.931223,.977975,-.127942,.182307,.954061,.979122,-.118347,.167607,.97531,.980719,-.109112,.152739,.995666,.981223,-.0991789,.137932,1.01475,.98216,-.0883553,.122692,1.03253,.983379,-.0780825,.107493,1.04917,.985434,-.0665646,.0917791,1.06464,.987332,-.0557714,.0764949,1.07896,.990004,-.0442805,.060721,1.09199,.992975,-.0331676,.0452284,1.10393,.995811,-.0219547,.0297934,1.11476,.9982,-.0107613,.0146415,1.12484,1.00002,248678e-9,-14555e-8,1.13413,.859519,-693595e-11,.347264,171673e-10,.859843,-17503e-8,.347394,433219e-9,.859656,-700076e-9,.347319,.00173277,.859671,-.00157517,.347325,.00389875,.859669,-.00280028,.347324,.00693112,.85967,-.0043754,.347324,.01083,.859665,-.00630049,.347321,.0155954,.859685,-.0085755,.347328,.0212278,.859694,-.0112003,.347329,.0277273,.859718,-.0141747,.347336,.0350946,.85976,-.0174988,.347348,.0433314,.85982,-.0211722,.347366,.0524384,.859892,-.0251941,.347387,.0624168,.860006,-.0295649,.347422,.0732708,.860122,-.0342825,.347453,.0849999,.860282,-.0393462,.347499,.0976102,.860482,-.0447513,.347554,.111104,.860719,-.0504775,.347614,.125479,.860998,-.0563577,.347666,.140703,.861322,-.0619473,.347662,.156681,.861724,-.0681277,.347684,.173597,.862198,-.0746567,.347709,.191371,.862733,-.0815234,.347727,.209976,.863371,-.0886643,.347744,.229351,.86414,-.0957908,.347734,.24934,.865138,-.102912,.34772,.269797,.866182,-.110924,.3478,.290654,.867436,-.119223,.347911,.312074,.869087,-.126197,.347649,.335438,.870859,-.133145,.347222,.359732,.872997,-.139869,.346645,.38467,.875939,-.146089,.345935,.41019,.879012,-.152334,.345012,.436218,.883353,-.15821,.343924,.462641,.888362,-.164097,.342636,.489449,.895026,-.169528,.341351,.516629,.900753,-.174408,.339115,.544109,.906814,-.17751,.335809,.572857,.912855,-.180101,.331597,.601554,.919438,-.182116,.32698,.630198,.925962,-.183494,.321449,.658404,.931734,-.184159,.314595,.686625,.93762,-.18304,.306462,.71531,.943858,-.181323,.297514,.744272,.948662,-.178683,.287447,.771462,.953299,-.175379,.276166,.798593,.957346,-.170395,.263758,.8256,.962565,-.165042,.251019,.852575,.966075,-.158655,.237011,.878316,.969048,-.151707,.222518,.90329,.972423,-.143271,.207848,.927745,.975833,-.134824,.192463,.950859,.977629,-.125444,.1768,.972947,.978995,-.114949,.161033,.993263,.980533,-.104936,.145523,1.01337,.980745,-.0935577,.129799,1.03128,.981814,-.0822956,.113486,1.04825,.983943,-.0710082,.0972925,1.06405,.986141,-.0587931,.0808138,1.0785,.988878,-.0472755,.0644915,1.09204,.992132,-.0349128,.0478128,1.10413,.9953,-.0232407,.031621,1.11527,.998117,-.0112713,.0154935,1.12551,1.00003,339743e-9,-195763e-9,1.13504,.845441,-729126e-11,.364305,169208e-10,.843588,-183164e-9,.363506,425067e-9,.843412,-73253e-8,.36343,.00169999,.843401,-.00164818,.363426,.00382495,.843399,-.00293008,.363425,.00679993,.843401,-.00457822,.363425,.010625,.843394,-.00659249,.363421,.0153002,.843398,-.00897282,.363421,.0208258,.843415,-.0117191,.363426,.0272024,.843438,-.0148312,.363432,.0344305,.843483,-.018309,.363447,.0425116,.84356,-.0221521,.363472,.0514471,.843646,-.0263597,.363499,.061238,.843743,-.0309315,.363527,.0718873,.84388,-.0358658,.363569,.0833969,.844079,-.0411624,.363631,.0957742,.844279,-.0468128,.363688,.109015,.844549,-.0527923,.363761,.123124,.844858,-.0588204,.363817,.138044,.84522,-.0647573,.36383,.153755,.845669,-.0713181,.363879,.170394,.846155,-.0781697,.363908,.187861,.846789,-.0853913,.363969,.206176,.847502,-.0928086,.363999,.225244,.8484,-.10005,.363997,.244926,.849461,-.107615,.364008,.265188,.850562,-.115814,.364055,.28587,.851962,-.124334,.364179,.306926,.854326,-.131995,.364233,.329605,.856295,-.139338,.363856,.35359,.858857,-.146346,.363347,.37831,.862428,-.152994,.362807,.403722,.866203,-.159463,.361963,.429537,.871629,-.165623,.36112,.456,.877365,-.171649,.359917,.482773,.883744,-.177151,.35848,.509705,.890693,-.182381,.356523,.537215,.897278,-.186076,.3533,.565493,.903958,-.188602,.349095,.594293,.910908,-.190755,.344215,.623165,.918117,-.192063,.338606,.651573,.924644,-.192758,.331544,.679869,.931054,-.192238,.323163,.708668,.937303,-.190035,.313529,.737201,.943387,-.187162,.303152,.764977,.948494,-.183876,.29146,.792683,.952546,-.178901,.277917,.819228,.958077,-.173173,.264753,.846559,.962462,-.16645,.25002,.872962,.966569,-.159452,.234873,.898729,.969108,-.15074,.218752,.923126,.973072,-.141523,.202673,.947278,.975452,-.132075,.186326,.969938,.977784,-.121257,.169396,.991325,.97899,-.110182,.153044,1.01123,.979777,-.0989634,.136485,1.0299,.980865,-.0865894,.119343,1.04727,.982432,-.0746115,.102452,1.06341,.984935,-.0621822,.0852423,1.07834,.987776,-.0495694,.0678546,1.092,.99103,-.0372386,.0506917,1.1043,.99474,-.0244353,.0333316,1.11576,.997768,-.0121448,.0164348,1.12617,1.00003,31774e-8,-169504e-9,1.13598,.825551,-756799e-11,.378425,165099e-10,.82664,-190922e-9,.378923,416504e-9,.826323,-763495e-9,.378779,.0016656,.826359,-.00171789,.378795,.00374768,.82636,-.00305402,.378795,.00666259,.826368,-.00477185,.378798,.0104104,.826364,-.00687131,.378795,.0149912,.826368,-.00935232,.378795,.0204054,.826376,-.0122146,.378797,.0266532,.826399,-.0154581,.378803,.0337355,.82646,-.0190825,.378824,.0416537,.826525,-.0230873,.378846,.0504091,.826614,-.0274719,.378876,.0600032,.82674,-.0322355,.378917,.0704393,.826888,-.0373766,.378964,.0817195,.827078,-.0428936,.379024,.0938492,.827318,-.0487778,.379099,.106828,.82764,-.0549935,.379199,.120659,.827926,-.0611058,.379227,.13526,.828325,-.0675054,.379275,.150713,.828801,-.0743455,.379332,.167034,.8294,-.0815523,.379415,.184209,.830094,-.0890779,.379495,.202203,.8309,-.096736,.379555,.220945,.831943,-.104135,.379577,.240306,.833037,-.112106,.379604,.260317,.834278,-.120554,.379668,.2808,.836192,-.129128,.3799,.301654,.838671,-.137541,.380109,.323502,.840939,-.14523,.379809,.347176,.844575,-.15248,.379593,.371706,.848379,-.159607,.37909,.39688,.853616,-.166267,.378617,.422702,.858921,-.172698,.377746,.448919,.865324,-.178823,.376749,.475661,.872207,-.184542,.375363,.502599,.880018,-.189836,.373657,.529914,.88694,-.194294,.370673,.557683,.894779,-.197022,.36662,.586848,.902242,-.199108,.36138,.615831,.909914,-.200398,.355434,.644478,.917088,-.20094,.348173,.672905,.923888,-.200671,.339482,.701327,.930495,-.198773,.32956,.730101,.937247,-.195394,.318363,.758383,.943108,-.191956,.306323,.786539,.948296,-.187227,.292576,.813637,.953472,-.181165,.278234,.840793,.958485,-.174119,.263054,.867712,.962714,-.166564,.246756,.893635,.966185,-.158181,.229945,.919028,.970146,-.148275,.212633,.943413,.973491,-.138157,.195229,.966627,.975741,-.127574,.178048,.988817,.977238,-.11554,.160312,1.00924,.978411,-.10364,.142857,1.02845,.979811,-.0913122,.125317,1.04648,.98116,-.0782558,.107627,1.06284,.983543,-.0655957,.0895862,1.07798,.986789,-.0520411,.0713756,1.092,.990292,-.0389727,.053228,1.10484,.994187,-.025808,.0351945,1.11642,.997499,-.0126071,.0173198,1.12703,.999999,275604e-9,-148602e-9,1.13674,.81075,-78735e-10,.394456,161829e-10,.808692,-198293e-9,.393453,407564e-9,.80846,-792877e-9,.39334,.00162965,.808595,-.00178416,.393407,.00366711,.808597,-.00317182,.393408,.00651934,.808598,-.00495589,.393408,.0101866,.808591,-.00713627,.393403,.0146689,.808592,-.00971285,.393402,.0199667,.80861,-.0126855,.393407,.0260803,.808633,-.0160538,.393413,.0330107,.80868,-.0198175,.393429,.0407589,.808748,-.0239758,.393453,.0493264,.808854,-.0285286,.39349,.0587161,.808992,-.0334748,.39354,.0689304,.809141,-.0388116,.393588,.0799707,.809352,-.0445375,.39366,.0918432,.809608,-.0506427,.393742,.104549,.809915,-.0570708,.393834,.118085,.810253,-.0633526,.393885,.132377,.810687,-.0700966,.393953,.147537,.811233,-.0772274,.394047,.163543,.811865,-.0847629,.394148,.180394,.812648,-.0925663,.394265,.198051,.813583,-.100416,.394363,.216443,.814683,-.108119,.394402,.235502,.815948,-.11644,.394489,.255242,.817278,-.125036,.394542,.275441,.819605,-.133655,.39486,.296094,.822256,-.142682,.395248,.317309,.825349,-.150756,.395241,.340516,.829605,-.158392,.395285,.364819,.83391,-.165801,.394922,.389736,.839808,-.172677,.394691,.415409,.845708,-.179448,.394006,.441546,.853025,-.185746,.393279,.46832,.859666,-.191684,.391655,.495302,.86789,-.197146,.390068,.52262,.875845,-.201904,.38727,.550336,.882634,-.205023,.382688,.578825,.891076,-.207098,.377543,.608103,.900589,-.208474,.371752,.63723,.90791,-.209068,.364016,.665769,.915971,-.208655,.355593,.694428,.923455,-.20729,.345439,.723224,.931514,-.203821,.334099,.751925,.937885,-.19986,.321069,.780249,.943136,-.194993,.306571,.8077,.948818,-.189132,.291556,.83497,.954433,-.181617,.275745,.86188,.959078,-.173595,.258695,.888562,.962705,-.164855,.240825,.914008,.966753,-.155129,.22268,.939145,.970704,-.144241,.204542,.963393,.973367,-.133188,.185927,.985983,.975984,-.121146,.167743,1.00704,.976994,-.108366,.149218,1.02715,.978485,-.0956746,.13131,1.0455,.980074,-.0820733,.112513,1.06221,.98225,-.0684061,.0938323,1.07782,.98553,-.0549503,.0749508,1.09199,.989529,-.0407857,.055848,1.10508,.993536,-.0271978,.0368581,1.11684,.997247,-.0132716,.0181845,1.12789,1,431817e-9,-198809e-9,1.13792,.785886,-812608e-11,.405036,157669e-10,.790388,-205278e-9,.407355,398297e-9,.790145,-820824e-9,.407231,.00159263,.790135,-.00184681,.407226,.00358336,.790119,-.00328316,.407218,.00637039,.790126,-.00512988,.40722,.0099539,.79013,-.00738684,.407221,.0143339,.790135,-.0100538,.407221,.0195107,.790134,-.0131306,.407217,.0254848,.79016,-.0166169,.407224,.0322572,.790197,-.020512,.407236,.0398284,.790273,-.0248157,.407263,.0482014,.790381,-.029527,.407304,.0573777,.790521,-.0346446,.407355,.0673602,.790704,-.0401665,.40742,.0781522,.790925,-.0460896,.407499,.0897582,.791195,-.0524017,.407589,.10218,.791522,-.0590121,.407691,.11541,.791878,-.0654876,.407748,.12939,.792361,-.0725207,.407849,.144237,.792942,-.0799844,.407963,.159924,.79362,-.0877896,.408087,.176425,.794529,-.0958451,.408259,.193733,.795521,-.103827,.408362,.211756,.796778,-.111937,.408482,.230524,.798027,-.120521,.408547,.249967,.799813,-.129242,.408721,.269926,.802387,-.138048,.409148,.290338,.805279,-.147301,.409641,.311193,.809251,-.155895,.410154,.333611,.813733,-.163942,.410297,.357615,.819081,-.171666,.410373,.382339,.825427,-.178905,.410348,.407828,.83172,-.185812,.409486,.434034,.83877,-.192318,.408776,.460493,.845817,-.198249,.407176,.487346,.854664,-.204034,.405719,.514832,.863495,-.208908,.403282,.542401,.871883,-.212765,.399293,.570683,.88065,-.214911,.393803,.599947,.89004,-.216214,.387536,.62932,.898476,-.216745,.379846,.658319,.906738,-.216387,.370625,.687138,.914844,-.215053,.360139,.71601,.923877,-.212007,.348849,.745124,.931925,-.207481,.335639,.773366,.938054,-.202418,.320798,.801636,.943895,-.196507,.304772,.829055,.949468,-.189009,.288033,.856097,.955152,-.180539,.270532,.88301,.959403,-.171437,.251639,.909296,.963309,-.161661,.232563,.934868,.967399,-.150425,.213231,.959662,.972009,-.138659,.194247,.98302,.97433,-.126595,.174718,1.00517,.975823,-.113205,.155518,1.02566,.976371,-.0996096,.136709,1.04418,.978705,-.0860754,.117571,1.06146,.981477,-.0714438,.0980046,1.07777,.984263,-.0572304,.0782181,1.09214,.988423,-.0428875,.0584052,1.10553,.993,-.0282442,.038522,1.11758,.99704,-.0140183,.0190148,1.12864,.999913,369494e-9,-145203e-9,1.13901,.777662,-84153e-10,.423844,154403e-10,.770458,-211714e-9,.419915,38845e-8,.770716,-846888e-9,.420055,.00155386,.770982,-.00190567,.420202,.00349653,.770981,-.00338782,.420201,.00621606,.77098,-.00529338,.4202,.00971274,.770983,-.00762223,.4202,.0139867,.770985,-.0103741,.420198,.0190381,.770996,-.0135489,.4202,.0248677,.771029,-.0171461,.420212,.0314764,.771052,-.0211647,.420215,.0388648,.771131,-.0256048,.420245,.047036,.771235,-.0304647,.420284,.0559911,.771383,-.0357436,.420341,.0657346,.771591,-.0414392,.420423,.0762694,.771819,-.0475462,.420506,.0875984,.772123,-.0540506,.420617,.099727,.772464,-.060797,.42072,.112637,.772855,-.0675393,.420799,.126313,.773317,-.0748323,.420893,.140824,.773981,-.0825681,.421058,.15617,.774746,-.0906307,.421226,.172322,.77566,-.0988982,.421397,.189253,.776837,-.106994,.421569,.206912,.778097,-.115528,.421704,.225359,.779588,-.124317,.421849,.24447,.781574,-.133139,.422097,.264156,.784451,-.142179,.422615,.284318,.787682,-.15165,.423269,.304902,.792433,-.160771,.424396,.3265,.797359,-.169166,.424772,.35014,.803986,-.177149,.425475,.374768,.809504,-.184745,.424996,.399928,.815885,-.19173,.424247,.425796,.823513,-.198525,.423515,.452287,.832549,-.204709,.422787,.479321,.841653,-.210447,.421187,.506718,.850401,-.215501,.418519,.53432,.859854,-.219752,.414715,.56242,.869364,-.222305,.409462,.591558,.878837,-.223744,.402926,.621074,.888636,-.224065,.395043,.650538,.898132,-.223742,.38564,.679538,.907181,-.222308,.375378,.708674,.915621,-.219837,.363212,.737714,.9239,-.215233,.349313,.767014,.931644,-.209592,.334162,.795133,.938887,-.203644,.317943,.823228,.945282,-.196349,.300581,.850822,.950758,-.18742,.282195,.877594,.956146,-.177879,.262481,.904564,.960355,-.167643,.242487,.930741,.965256,-.156671,.222668,.955868,.968029,-.144123,.201907,.979869,.97251,-.131305,.18202,1.00291,.974925,-.118335,.161909,1.02392,.975402,-.103714,.142129,1.0433,.976987,-.089415,.122447,1.06089,.979677,-.0748858,.102248,1.07713,.983184,-.0596086,.0814851,1.09218,.987466,-.0447671,.0609484,1.10585,.992348,-.0295217,.0401835,1.11829,.996674,-.0143917,.0198163,1.12966,1.00003,321364e-9,-149983e-9,1.1402,.757901,-869074e-11,.436176,151011e-10,.751195,-217848e-9,.432317,378533e-9,.751178,-871373e-9,.432307,.0015141,.751195,-.00196061,.432317,.0034068,.751198,-.00348552,.432318,.00605659,.751195,-.00544599,.432315,.00946353,.751207,-.00784203,.43232,.013628,.751213,-.0106732,.43232,.0185499,.751221,-.0139393,.432319,.0242302,.751244,-.0176398,.432325,.0306694,.7513,-.0217743,.432348,.0378698,.751358,-.0263412,.432367,.0458321,.751458,-.0313396,.432404,.0545587,.751608,-.0367682,.432464,.0640543,.7518,-.0426246,.43254,.0743222,.752065,-.0489031,.432645,.0853668,.752376,-.0555828,.432762,.0971911,.752715,-.0623861,.432859,.109768,.753137,-.069415,.432958,.123126,.753676,-.0770039,.433099,.137308,.754345,-.084971,.433272,.15229,.755235,-.0932681,.433504,.168075,.756186,-.10171,.433693,.184625,.757363,-.110019,.433857,.201897,.75884,-.11887,.434102,.220014,.760467,-.127881,.434306,.238778,.762969,-.136766,.434751,.258172,.765823,-.14612,.43529,.278062,.769676,-.15566,.436236,.298437,.774909,-.165177,.437754,.319532,.77994,-.17402,.438343,.342505,.785757,-.182201,.438609,.366693,.792487,-.190104,.438762,.391668,.80038,-.197438,.438795,.417494,.808494,-.204365,.438226,.443933,.817695,-.210714,.437283,.470929,.828111,-.216651,.436087,.498569,.837901,-.221804,.433717,.526165,.847813,-.226318,.430133,.554155,.858314,-.229297,.425213,.582822,.868891,-.230999,.418576,.612847,.878941,-.231155,.410405,.642445,.888809,-.230935,.400544,.672024,.898089,-.229343,.389613,.701366,.908081,-.226886,.377197,.730763,.916819,-.222676,.363397,.759642,.924968,-.216835,.347437,.788775,.932906,-.210245,.32995,.817135,.940025,-.202992,.312262,.844912,.946101,-.19436,.293313,.872164,.952835,-.184125,.273638,.899443,.957347,-.173657,.252385,.926389,.961434,-.162204,.231038,.951947,.965522,-.14979,.209834,.976751,.969412,-.136307,.188821,1.00022,.973902,-.122527,.168013,1.02229,.974045,-.108213,.147634,1.04199,.975775,-.0927397,.12705,1.06019,.978383,-.0778212,.106309,1.07711,.98211,-.0621216,.0849279,1.09245,.986517,-.0463847,.0633519,1.10651,.991696,-.0309353,.0419698,1.11903,.996349,-.0150914,.0206272,1.13073,1.00003,442449e-9,-231396e-9,1.14146,.727498,-885074e-11,.441528,145832e-10,.730897,-223525e-9,.443589,368298e-9,.730796,-893996e-9,.443528,.00147303,.730805,-.00201149,.443533,.00331433,.730814,-.00357596,.443538,.00589222,.730815,-.00558734,.443538,.00920678,.730822,-.00804544,.44354,.0132582,.730836,-.0109501,.443545,.0180468,.730848,-.0143008,.443546,.0235732,.730871,-.0180969,.443552,.0298382,.730915,-.022338,.443567,.0368438,.730982,-.0270225,.443591,.044591,.731076,-.0321491,.443627,.0530831,.731245,-.0377166,.443699,.0623243,.73144,-.0437216,.443777,.0723181,.7317,-.0501576,.443881,.0830691,.732034,-.0569942,.444014,.0945809,.732388,-.0638756,.444113,.106825,.732853,-.071203,.444247,.119859,.733473,-.0790076,.444442,.13369,.734195,-.0871937,.444645,.148304,.735069,-.095696,.444877,.163702,.736169,-.10426,.445133,.179861,.73747,-.112853,.44537,.196778,.738991,-.12199,.445651,.214496,.740865,-.131153,.445958,.232913,.743637,-.140245,.446548,.251977,.746797,-.149722,.447246,.271551,.751517,-.159341,.448656,.291774,.756156,-.169106,.449866,.312455,.761519,-.178436,.450919,.334552,.768295,-.186904,.451776,.358491,.776613,-.195117,.452832,.383446,.783966,-.202695,.45249,.408945,.793542,-.20985,.452587,.435364,.803192,-.216403,.451852,.462336,.813892,-.22251,.450708,.48987,.824968,-.227676,.4486,.517697,.835859,-.232443,.445156,.545975,.846825,-.235775,.440351,.574483,.858085,-.237897,.433641,.604246,.868825,-.238074,.425354,.634101,.879638,-.237661,.415383,.664201,.889966,-.236186,.404136,.693918,.899479,-.233599,.390917,.723481,.908769,-.229737,.376352,.75258,.917966,-.223836,.360372,.781764,.926304,-.217067,.342551,.811139,.934626,-.209309,.324238,.839585,.941841,-.20071,.304484,.867044,.94789,-.190602,.283607,.894579,.954196,-.179253,.262205,.921743,.958383,-.167646,.239847,.948026,.963119,-.155073,.218078,.973296,.966941,-.141426,.195899,.998135,.970836,-.126849,.174121,1.02021,.973301,-.112296,.153052,1.04085,.97448,-.0964965,.131733,1.05946,.977045,-.080489,.10997,1.07693,.980751,-.064844,.0881657,1.09254,.985475,-.0481938,.0657987,1.10697,.991089,-.0319185,.0435215,1.12004,.996122,-.0158088,.0214779,1.13173,1.00001,372455e-9,-200295e-9,1.14291,.708622,-907597e-11,.45304,141962e-10,.711162,-228911e-9,.454662,358052e-9,.709812,-914446e-9,.453797,.00143034,.709865,-.00205819,.453834,.00321935,.709864,-.00365894,.453833,.00572331,.709855,-.00571692,.453826,.00894278,.709862,-.00823201,.453828,.012878,.709875,-.011204,.453832,.0175295,.709896,-.0146323,.453839,.0228978,.709925,-.0185163,.453847,.0289839,.709974,-.0228551,.453866,.0357894,.710045,-.0276473,.453892,.0433161,.710133,-.032891,.453924,.0515665,.710292,-.0385851,.453992,.0605458,.710485,-.0447254,.45407,.0702574,.710769,-.0513051,.454192,.0807077,.711106,-.0582733,.454329,.091896,.711516,-.0652866,.45446,.103814,.712071,-.0728426,.454653,.116508,.712676,-.0808307,.45484,.129968,.713476,-.0892216,.455096,.144206,.714377,-.0979047,.455346,.159212,.715579,-.106531,.455647,.174973,.716977,-.115492,.455961,.191504,.71862,-.124821,.456315,.208835,.72084,-.134079,.4568,.226869,.723786,-.143427,.457521,.245582,.727464,-.153061,.458475,.264957,.732771,-.162768,.460239,.284948,.736515,-.172627,.460899,.30522,.743519,-.182487,.463225,.326717,.750041,-.191295,.464027,.350113,.758589,-.199746,.465227,.374782,.767703,-.207584,.465877,.400226,.777484,-.214973,.465996,.426442,.788792,-.221796,.466019,.453688,.800194,-.228038,.465083,.481246,.811234,-.233346,.462506,.509086,.822859,-.238073,.459257,.537338,.835082,-.241764,.454863,.566108,.846332,-.244241,.448163,.595126,.858355,-.244736,.439709,.625574,.87034,-.244278,.429837,.65617,.881027,-.24255,.418002,.686029,.891007,-.239912,.404325,.716039,.900874,-.236133,.389222,.745518,.911072,-.230672,.373269,.775026,.920359,-.22356,.355083,.804521,.928604,-.215591,.335533,.834045,.937175,-.206503,.315278,.861612,.942825,-.196684,.293653,.889131,.949805,-.185116,.271503,.916853,.955535,-.172703,.248821,.943541,.959843,-.159978,.225591,.970132,.964393,-.146375,.202719,.994709,.968008,-.131269,.179928,1.0186,.971013,-.11569,.158007,1.03928,.973334,-.1003,.13624,1.05887,.975775,-.0833352,.1138,1.07652,.979579,-.0668981,.0913141,1.09297,.984323,-.0500902,.0683051,1.10734,.990351,-.0332377,.0451771,1.12084,.995823,-.0161491,.0221705,1.13296,1.0001,234083e-9,-108712e-9,1.14441,.683895,-924677e-11,.46015,137429e-10,.68833,-233383e-9,.463134,346865e-9,.688368,-933547e-9,.463159,.00138748,.688367,-.00210049,.463159,.00312187,.688369,-.00373415,.463159,.00555004,.688377,-.00583449,.463163,.00867216,.688386,-.00840128,.463166,.0124884,.688398,-.0114343,.463169,.0169993,.688418,-.0149329,.463175,.0222054,.688453,-.0188964,.463188,.028108,.688515,-.0233239,.463214,.0347085,.68857,-.0282136,.463231,.0420091,.688679,-.033564,.463276,.0500132,.688854,-.0393733,.463356,.0587255,.689038,-.0456354,.46343,.0681476,.689321,-.0523433,.463553,.0782897,.689662,-.059412,.463693,.0891501,.690188,-.0665736,.4639,.100735,.690755,-.0743106,.464107,.113074,.691405,-.0824722,.464329,.126161,.692198,-.0910484,.464585,.140007,.693196,-.0998778,.464893,.154612,.69454,-.108651,.465285,.169984,.695921,-.117855,.465596,.186106,.697749,-.12734,.466056,.203034,.700375,-.136714,.466771,.220703,.703395,-.146386,.467579,.239062,.707904,-.156096,.469067,.258188,.711673,-.165904,.469851,.277759,.717489,-.175812,.471815,.297935,.724051,-.185931,.47389,.318916,.731965,-.195238,.47587,.341591,.741151,-.204021,.477523,.366062,.751416,-.212113,.478881,.391396,.761848,-.21979,.479226,.417599,.771886,-.2267,.478495,.444401,.783998,-.232991,.477622,.472084,.796523,-.238645,.475833,.500193,.808851,-.243396,.472568,.52865,.821191,-.247226,.467857,.557362,.834261,-.250102,.461871,.586768,.846762,-.251056,.453543,.617085,.859867,-.250604,.443494,.647659,.871948,-.248783,.431711,.678119,.882967,-.245855,.417911,.708399,.892826,-.242168,.401993,.738256,.90332,-.237062,.385371,.767999,.913633,-.22997,.366837,.798191,.922774,-.221687,.346372,.827756,.931371,-.212345,.325682,.856425,.938929,-.20206,.303665,.884299,.944821,-.190981,.280786,.912023,.951792,-.178065,.2573,.939669,.957712,-.164634,.233448,.96655,.961912,-.150863,.209504,.992366,.966382,-.13577,.18597,1.01633,.969588,-.119593,.162905,1.03843,.971777,-.103203,.14053,1.05841,.97433,-.0865888,.117909,1.07632,.978686,-.0690829,.0944101,1.09326,.983281,-.0516568,.0705671,1.10796,.989562,-.034558,.0468592,1.12182,.995465,-.0167808,.0229846,1.1342,.999991,373016e-9,-235606e-9,1.1459,.662251,-939016e-11,.468575,132714e-10,.666634,-237624e-9,.471675,335842e-9,.666411,-950385e-9,.471516,.00134321,.666399,-.00213833,.471509,.00302221,.666386,-.0038014,.471499,.00537283,.666405,-.00593958,.471511,.00839533,.666406,-.00855253,.471508,.0120898,.666428,-.0116401,.471519,.0164569,.666444,-.0152015,.471522,.0214971,.66649,-.0192362,.471543,.027212,.666537,-.0237428,.471558,.033603,.666617,-.0287198,.471591,.0406728,.666718,-.0341647,.471631,.0484238,.666889,-.0400759,.47171,.0568621,.667104,-.0464479,.471805,.0659915,.667374,-.0532677,.471923,.0758178,.667772,-.0603805,.472098,.0863425,.668371,-.0677392,.472363,.0975917,.668971,-.0756028,.472596,.109567,.669696,-.0839293,.472869,.122272,.670481,-.0926683,.473126,.135718,.6715,-.1016,.473442,.149914,.672911,-.110566,.47389,.164882,.674512,-.119984,.474354,.180602,.67651,-.129574,.474922,.19711,.679292,-.139106,.475764,.214371,.682798,-.148993,.476886,.232405,.686955,-.158737,.478179,.251153,.691406,-.168754,.479432,.270436,.697438,-.178703,.481481,.290374,.704761,-.188955,.484143,.311044,.713599,-.198814,.487007,.333003,.723194,-.207869,.488962,.357144,.732601,-.216189,.489815,.382169,.744193,-.22398,.490888,.408227,.754907,-.231156,.490355,.434928,.767403,-.23747,.489548,.462599,.78107,-.243503,.488274,.490908,.793893,-.248114,.484843,.519421,.807296,-.25222,.4803,.548561,.820529,-.255265,.474097,.577772,.833716,-.256741,.466041,.607782,.848403,-.25637,.456547,.638807,.860755,-.254804,.443946,.670058,.874012,-.251834,.430852,.700749,.885619,-.247867,.414903,.731446,.896069,-.242634,.397276,.761191,.906266,-.236093,.378535,.791053,.916759,-.227543,.358038,.821298,.92523,-.21783,.335705,.850747,.93436,-.207534,.313797,.879258,.941631,-.195983,.289671,.907734,.947564,-.183567,.265319,.935206,.953681,-.169345,.240815,.962739,.960008,-.154909,.216119,.989227,.964145,-.140161,.192096,1.01465,.968171,-.123411,.167855,1.03737,.969859,-.106525,.144817,1.05767,.972666,-.0891023,.12149,1.0761,.977055,-.0718094,.0975306,1.09336,.982527,-.0534213,.0730217,1.10878,.989001,-.0355579,.0483366,1.12285,.99512,-.0176383,.023938,1.13548,1.00007,368831e-9,-211581e-9,1.14744,.651047,-960845e-11,.484101,12922e-9,.644145,-241347e-9,.478968,324578e-9,.64396,-965142e-9,.478831,.00129798,.64396,-.00217154,.47883,.00292046,.643968,-.00386049,.478835,.00519202,.643974,-.00603186,.478838,.0081128,.643977,-.0086854,.478836,.011683,.643982,-.0118207,.478834,.0159031,.644024,-.0154374,.478856,.0207743,.644059,-.0195343,.478868,.0262975,.644122,-.0241103,.478896,.0324747,.644207,-.0291638,.478933,.039309,.64432,-.0346919,.478981,.0468029,.644481,-.0406919,.479053,.0549614,.644722,-.047159,.479169,.0637909,.645013,-.0540748,.479302,.0732974,.645503,-.0612001,.479541,.0834898,.646117,-.0687303,.479829,.0943873,.646707,-.0767846,.480061,.105991,.647431,-.0852465,.480343,.11831,.64831,-.0940719,.48066,.131348,.649486,-.103056,.481083,.14514,.650864,-.112261,.481528,.159676,.652604,-.121852,.482102,.174979,.654825,-.131505,.482813,.191079,.657876,-.141189,.483876,.207927,.661339,-.151239,.48499,.225586,.665463,-.161091,.486279,.243947,.670542,-.171235,.487968,.262957,.677361,-.181347,.49053,.282781,.685672,-.191679,.493862,.303311,.694551,-.201781,.49699,.324607,.703753,-.211164,.498884,.347916,.713703,-.219675,.500086,.372628,.725911,-.227836,.501554,.398694,.73862,-.23533,.502193,.425529,.752118,-.241786,.501811,.453209,.76579,-.247865,.500185,.481381,.779568,-.252696,.497159,.51011,.793991,-.256802,.492765,.539322,.808182,-.259942,.486827,.569078,.821698,-.261703,.478386,.598818,.836009,-.262006,.468772,.629762,.849824,-.260333,.456352,.661366,.863888,-.257398,.442533,.69295,.876585,-.253264,.426573,.723608,.888665,-.248026,.408964,.754378,.899537,-.241487,.389677,.784761,.9094,-.233463,.368516,.814688,.920166,-.223397,.346624,.845009,.928899,-.21255,.322717,.874431,.937156,-.200869,.298698,.902922,.943861,-.188387,.273491,.931356,.949557,-.174341,.247866,.958854,.955862,-.158994,.222496,.986098,.961721,-.143664,.197522,1.01229,.965976,-.127412,.17302,1.03571,.968652,-.109798,.148954,1.05699,.971084,-.0916787,.125044,1.07587,.975584,-.0739634,.100577,1.09372,.98122,-.055322,.0753666,1.10948,.988253,-.0366825,.0498899,1.12394,.99482,-.0180389,.024611,1.13694,1.00001,229839e-9,-188283e-9,1.14919,.613867,-964198e-11,.479449,123452e-10,.621485,-244534e-9,.485399,313091e-9,.621429,-978202e-9,.485353,.00125245,.62112,-.00220004,.485114,.00281687,.621119,-.0039111,.485112,.00500783,.621122,-.00611091,.485112,.00782498,.621133,-.00879922,.485117,.0112687,.621152,-.0119756,.485125,.0153394,.621183,-.0156396,.485139,.0200382,.621227,-.0197898,.485158,.0253663,.621298,-.0244253,.485192,.0313261,.621388,-.0295441,.485233,.0379204,.621507,-.0351432,.485286,.0451523,.621693,-.0412198,.485378,.0530277,.621933,-.0477673,.485495,.0615522,.622232,-.0547574,.485635,.0707316,.622809,-.0619417,.485943,.0805883,.623407,-.069625,.486232,.0911267,.62406,-.077796,.486516,.102354,.624835,-.0863731,.486838,.114279,.625758,-.095251,.487188,.126902,.627043,-.104299,.487695,.140285,.628438,-.113724,.488163,.154397,.630325,-.123417,.488858,.169267,.632801,-.133137,.489754,.184941,.635784,-.143052,.490815,.20136,.639406,-.153132,.492048,.218643,.643872,-.163143,.49363,.236615,.6499,-.17333,.496009,.255449,.657201,-.183622,.498994,.275006,.666221,-.194019,.502888,.295354,.674419,-.204192,.505459,.316244,.683729,-.21406,.507771,.33849,.695584,-.222854,.510245,.363166,.708583,-.231315,.512293,.389071,.721233,-.238911,.512747,.415737,.735134,-.245657,.512482,.443331,.750179,-.251879,.511526,.471891,.765073,-.256911,.508935,.500892,.779794,-.261144,.504341,.530294,.794801,-.264316,.498515,.560144,.810339,-.266276,.491015,.590213,.824818,-.266981,.481126,.620865,.839375,-.265778,.468685,.652687,.853043,-.262748,.453925,.684759,.867335,-.258474,.437912,.716209,.88037,-.253187,.419648,.747508,.891711,-.246476,.39982,.77797,.902896,-.238735,.37879,.808586,.913601,-.22885,.355891,.838843,.923019,-.217656,.331773,.869014,.933432,-.205539,.307356,.898512,.939691,-.192595,.281321,.9269,.946938,-.178945,.255441,.955297,.952372,-.163587,.229013,.983231,.95909,-.147214,.203179,1.00971,.963675,-.13064,.17792,1.03438,.968247,-.113121,.152898,1.05625,.97001,-.0945824,.128712,1.07598,.974458,-.0755648,.103349,1.094,.980168,-.0571998,.0776731,1.1104,.987295,-.0377994,.0514445,1.12491,.994432,-.0186417,.025429,1.13851,.999975,542714e-9,-282356e-9,1.15108,.592656,-980249e-11,.486018,119532e-10,.598467,-247275e-9,.490781,301531e-9,.597934,-988317e-9,.490343,.00120517,.597903,-.00222366,.490319,.0027116,.597913,-.00395315,.490327,.00482077,.597919,-.00617653,.490329,.00753264,.597936,-.00889375,.490339,.0108478,.597956,-.0121043,.490347,.0147668,.597992,-.0158073,.490365,.0192905,.598032,-.0200017,.490382,.0244204,.598109,-.0246865,.49042,.0301593,.598215,-.0298594,.490474,.03651,.59833,-.0355167,.490524,.0434757,.598525,-.0416559,.490624,.0510629,.598778,-.0482692,.490753,.0592781,.599135,-.0553114,.49094,.0681304,.599802,-.062542,.491328,.0776467,.600361,-.0703638,.491598,.0878184,.60101,-.0786256,.491882,.0986573,.601811,-.0872962,.492232,.11018,.602861,-.0962284,.492684,.1224,.604167,-.10538,.493213,.135354,.605693,-.114896,.493799,.149034,.607682,-.124654,.494576,.163469,.610672,-.13456,.4959,.178747,.613313,-.144581,.496713,.194723,.617603,-.154703,.498499,.211617,.622174,-.16489,.500188,.229183,.628855,-.175164,.503072,.247786,.636963,-.185565,.506798,.267116,.644866,-.195911,.509719,.28702,.653741,-.206104,.512776,.307763,.664942,-.216447,.516812,.329631,.67633,-.22552,.519181,.353515,.690012,-.234316,.521681,.379226,.704243,-.242032,.523129,.405901,.719396,-.249172,.523768,.433585,.734471,-.255543,.522541,.462085,.750539,-.260697,.520217,.491233,.766365,-.26501,.516293,.521094,.781677,-.268409,.509708,.551014,.797132,-.270399,.501944,.581463,.812655,-.271247,.492025,.612402,.828592,-.270708,.480424,.643798,.844044,-.268085,.465955,.67682,.857305,-.263459,.448425,.708496,.87114,-.258151,.430243,.74046,.884936,-.251171,.410578,.771583,.895772,-.243305,.38862,.802234,.906961,-.234037,.365214,.833179,.917775,-.222714,.34116,.86353,.927883,-.210175,.31572,.893557,.936617,-.196925,.289159,.922976,.943384,-.182788,.261996,.951606,.949713,-.167965,.235324,.979958,.955818,-.151109,.208408,1.00765,.961344,-.133834,.182591,1.03329,.965469,-.115987,.156958,1.0557,.968693,-.09746,.132239,1.07583,.973165,-.0778514,.106195,1.09451,.979387,-.0585067,.0797669,1.11137,.98671,-.0390409,.0530263,1.12643,.994093,-.019408,.0263163,1.14016,1.00002,540029e-9,-194487e-9,1.15299,.574483,-989066e-11,.494533,114896e-10,.574478,-249127e-9,.494528,289403e-9,.574607,-996811e-9,.494637,.00115797,.574396,-.00224241,.494458,.00260498,.574377,-.00398632,.49444,.00463102,.574386,-.00622836,.494445,.00723623,.574401,-.0089683,.494453,.010421,.574419,-.0122056,.49446,.0141859,.574459,-.0159396,.494481,.0185322,.574525,-.0201692,.49452,.0234617,.574587,-.0248924,.494547,.0289762,.574697,-.0301074,.494604,.0350797,.574853,-.0358114,.494688,.0417767,.575027,-.041999,.494772,.0490718,.575294,-.0486618,.494915,.0569728,.575733,-.0557148,.495173,.0654955,.576356,-.0630489,.495537,.0746612,.576944,-.0709285,.495836,.0844615,.57765,-.0792723,.496177,.0949142,.578491,-.0880167,.496563,.10603,.579639,-.0969462,.497096,.117841,.580989,-.10622,.497684,.130367,.582587,-.115861,.498337,.143609,.584951,-.125605,.499414,.157625,.587602,-.135608,.500518,.172413,.59076,-.145742,.501767,.187999,.594992,-.155934,.503542,.20445,.600656,-.166303,.506135,.221764,.607816,-.176681,.509542,.24002,.61522,-.187071,.51263,.258992,.623702,-.197465,.516021,.278773,.634192,-.207816,.520422,.299377,.644936,-.218183,.524073,.320802,.657888,-.2278,.528049,.34384,.670666,-.236747,.52986,.36916,.685626,-.24484,.531892,.395867,.701304,-.252071,.532727,.423488,.717727,-.258714,.532146,.452201,.733914,-.264211,.529883,.481579,.750529,-.26859,.5259,.511558,.76747,-.272046,.51999,.542042,.785189,-.274225,.513083,.572799,.800954,-.275189,.502936,.603816,.816962,-.274946,.490921,.635461,.83336,-.272695,.47684,.6676,.848143,-.268223,.459405,.70051,.861818,-.262768,.440319,.732902,.876828,-.255872,.420123,.765084,.889312,-.247703,.398379,.796391,.900412,-.238381,.374496,.827333,.912251,-.227783,.349874,.858385,.921792,-.214832,.323181,.888652,.931273,-.200949,.296624,.917763,.940295,-.186537,.269211,.947878,.946812,-.171538,.241447,.977016,.953588,-.155254,.213829,1.00501,.958841,-.137156,.186807,1.03179,.963746,-.118699,.160706,1.05502,.966468,-.0998358,.135504,1.07568,.971178,-.0805186,.109131,1.09479,.97831,-.0599348,.0818293,1.1123,.985886,-.0399661,.0545872,1.12771,.994021,-.0198682,.0269405,1.14186,1.00009,271022e-9,-12989e-8,1.15514,.538716,-990918e-11,.486732,109675e-10,.550656,-250642e-9,.497518,277412e-9,.55057,-.00100265,.497441,.00110974,.550903,-.00225672,.497733,.00249779,.550568,-.00401046,.497438,.00443906,.550574,-.00626613,.49744,.00693637,.550591,-.0090226,.497449,.00998921,.550623,-.0122795,.497469,.0135984,.550667,-.0160361,.497495,.0177654,.550724,-.0202908,.497526,.0224915,.550792,-.0250421,.497557,.0277795,.550918,-.0302878,.49763,.0336334,.551058,-.0360241,.497701,.0400573,.551276,-.0422473,.497824,.0470585,.551551,-.0489441,.497977,.0546433,.552074,-.0559596,.498312,.0628367,.552681,-.0633978,.498679,.071646,.553324,-.0713176,.499031,.0810746,.554011,-.0797268,.499365,.091129,.55488,-.0885238,.499779,.101837,.556171,-.0974417,.500444,.113239,.557498,-.106841,.501025,.125316,.559299,-.116533,.501864,.138128,.561647,-.126298,.502967,.151695,.564347,-.136388,.504129,.16604,.567863,-.146576,.505713,.181207,.572569,-.156832,.507953,.197259,.578919,-.167323,.511186,.214258,.585387,-.177712,.514042,.232038,.593134,-.188184,.517484,.250733,.603295,-.198717,.522345,.270454,.613854,-.209177,.526751,.290807,.626092,-.219644,.531595,.312202,.637868,-.229494,.534721,.334435,.652458,-.238718,.538304,.359184,.666985,-.247061,.539875,.385637,.683301,-.254652,.541042,.41328,.69998,-.261376,.540735,.441903,.717824,-.267085,.539139,.471609,.734617,-.271465,.534958,.501446,.753663,-.27528,.53032,.532571,.770512,-.277617,.522134,.563641,.787356,-.278525,.51206,.595067,.806252,-.278512,.50119,.627226,.822061,-.277023,.486791,.659402,.838959,-.273175,.470467,.692874,.85379,-.267238,.450688,.725702,.868268,-.260327,.429741,.75832,.881994,-.251946,.407223,.790189,.893885,-.242432,.383214,.821625,.905118,-.231904,.357297,.853011,.916045,-.219545,.330733,.883773,.927614,-.205378,.303916,.914435,.936005,-.190388,.275941,.944502,.944533,-.1749,.247493,.974439,.950758,-.158588,.218996,1.00286,.957078,-.141027,.191559,1.0304,.962448,-.121507,.164457,1.05466,.964993,-.102068,.138636,1.0761,.970017,-.0822598,.111861,1.09541,.97661,-.062033,.0843438,1.11317,.985073,-.0409832,.0558496,1.12911,.993515,-.020146,.0275331,1.1438,1.00006,27329e-8,-107883e-9,1.15736,.525324,-999341e-11,.498153,105385e-10,.526513,-251605e-9,.499277,265329e-9,.526517,-.00100641,.499282,.0010613,.526588,-.00226466,.499337,.00238823,.526539,-.0040255,.499302,.00424535,.526547,-.00628954,.499306,.00663364,.526561,-.00905628,.499313,.00955337,.526593,-.0123253,.499334,.0130054,.526642,-.0160957,.499365,.0169911,.5267,-.0203661,.499396,.0215122,.526792,-.0251347,.499451,.0265718,.526904,-.0303985,.499511,.0321732,.527079,-.0361554,.499617,.0383231,.527285,-.0423982,.499731,.045026,.527602,-.0491121,.499924,.0522936,.528166,-.0561127,.500306,.0601528,.52879,-.0635988,.5007,.0686059,.529421,-.071581,.501048,.0776518,.530144,-.0799854,.501421,.0873148,.531062,-.0888032,.501884,.0976084,.532374,-.0977643,.50259,.108588,.533828,-.107197,.50329,.120234,.53581,-.116887,.504312,.132602,.538063,-.126755,.505365,.145721,.5409,-.136819,.506668,.159617,.544882,-.147117,.508731,.174369,.550238,-.157446,.511601,.190028,.556038,-.167988,.514431,.206587,.563031,-.178364,.517808,.224046,.571543,-.189007,.521937,.242503,.582255,-.199546,.527415,.261977,.59272,-.210084,.531682,.282162,.605648,-.220448,.537123,.303426,.61785,-.230593,.540664,.325323,.632223,-.240238,.544467,.348993,.648819,-.24887,.547594,.375462,.665825,-.256657,.54912,.403024,.683389,-.263711,.549294,.431773,.701495,-.269666,.547649,.461494,.719197,-.274169,.543786,.491623,.737906,-.278124,.538644,.522994,.756652,-.280632,.531057,.554775,.775279,-.281741,.521972,.586441,.792688,-.281652,.509613,.618596,.811894,-.280345,.496497,.651462,.827938,-.277128,.47968,.684023,.844837,-.271646,.460688,.718024,.859239,-.264397,.438872,.751207,.874088,-.256144,.41577,.784232,.887693,-.246311,.391369,.816191,.899402,-.235497,.365872,.847828,.910973,-.223631,.338618,.87934,.92204,-.209874,.310803,.910325,.930987,-.194265,.281802,.940695,.94,-.178125,.252836,.970958,.948018,-.161479,.224239,1.00078,.955141,-.144038,.195857,1.0288,.960513,-.124915,.168487,1.05371,.963964,-.104284,.141495,1.07596,.968713,-.0838732,.114437,1.09628,.975524,-.0635579,.0863105,1.11448,.98431,-.042291,.0574774,1.13069,.992916,-.0209131,.0284343,1.14568,.999926,743097e-9,-379265e-9,1.15955,.501042,-998428e-11,.498726,100306e-10,.502992,-252112e-9,.500665,253283e-9,.502417,-.00100791,.500092,.00101259,.502965,-.00226919,.500621,.00227978,.502318,-.00403109,.499994,.00405011,.502333,-.00629832,.500005,.00632868,.502362,-.00906907,.500027,.00911446,.502369,-.0123423,.500023,.0124078,.50243,-.0161178,.500066,.016211,.502493,-.0203937,.500103,.0205256,.502592,-.0251684,.500166,.0253548,.502707,-.0304389,.50023,.0307029,.502881,-.0362015,.500335,.0365753,.503124,-.0424507,.500488,.0429798,.503443,-.0491582,.500686,.0499268,.504083,-.0561476,.501155,.0574541,.504668,-.0636846,.501524,.0655408,.505319,-.0716834,.501904,.0742072,.50609,-.0800925,.502321,.0834699,.507122,-.0888425,.502896,.0933603,.508414,-.097855,.503603,.10391,.509955,-.107304,.504416,.115113,.512061,-.116921,.505565,.127054,.514419,-.12689,.506732,.139709,.517529,-.136934,.508338,.153173,.522085,-.147327,.510987,.167528,.526986,-.157612,.513527,.182708,.533122,-.168213,.516717,.198881,.540807,-.178688,.520832,.215986,.550687,-.189511,.52632,.234335,.560567,-.199998,.531009,.253375,.571698,-.210652,.535839,.273499,.584364,-.220917,.541091,.294355,.599066,-.23137,.546875,.316525,.614148,-.241206,.551306,.339671,.631157,-.250379,.555187,.36531,.647919,-.258397,.556595,.392767,.666112,-.265528,.556949,.421397,.686158,-.271827,.556617,.451433,.704838,-.27674,.552975,.482131,.723957,-.280733,.547814,.513458,.74262,-.283359,.53997,.545446,.762009,-.284541,.530422,.57775,.781314,-.284507,.518546,.610434,.799116,-.283309,.504178,.643178,.817604,-.280378,.48843,.676248,.83459,-.275619,.469457,.709698,.850974,-.26856,.447698,.744245,.866747,-.260094,.424791,.777695,.881412,-.249929,.399913,.810392,.8936,-.239137,.37308,.842872,.905943,-.226818,.345705,.874677,.916408,-.213699,.31706,.906257,.927215,-.198428,.288444,.936881,.935625,-.181643,.258329,.96795,.944076,-.164386,.228488,.998216,.951229,-.146339,.199763,1.02689,.958793,-.127709,.172153,1.0535,.963219,-.107244,.144989,1.07646,.967562,-.0857764,.11685,1.09675,.974866,-.0645377,.0880571,1.11576,.983353,-.0431732,.0587352,1.13227,.992503,-.0218356,.0294181,1.1478,1.00003,605203e-9,-231013e-9,1.16207,.482935,-101177e-10,.504695,968142e-11,.477554,-251521e-9,.499071,240676e-9,.477904,-.00100683,.499436,96342e-8,.478368,-.00226636,.499899,.0021687,.477977,-.00402719,.499513,.00385384,.477993,-.00629226,.499525,.0060221,.478011,-.00906011,.499536,.00867289,.478051,-.0123305,.499566,.0118074,.478089,-.016102,.499587,.0154269,.478171,-.0203736,.499645,.0195341,.478254,-.025143,.499692,.0241318,.47839,-.0304071,.499779,.0292247,.478588,-.0361631,.499911,.0348196,.478812,-.0424023,.500046,.0409231,.479208,-.0490724,.500326,.047552,.479841,-.0560722,.500805,.0547377,.480392,-.0636125,.501152,.0624607,.481068,-.0716134,.501561,.0707473,.481898,-.0800062,.502054,.0796118,.483022,-.0886568,.502728,.0890974,.484332,-.0977553,.503479,.0992099,.486126,-.107173,.504546,.10999,.488066,-.11677,.50557,.121476,.490521,-.126725,.506849,.133672,.494232,-.136793,.50911,.146731,.498302,-.147116,.511345,.160577,.503565,-.157446,.514344,.175335,.510902,-.168121,.518824,.191207,.519263,-.178799,.523666,.208058,.528204,-.189407,.528296,.225875,.538854,-.200145,.533724,.244782,.551278,-.210701,.539833,.264753,.565222,-.221303,.546131,.285745,.579403,-.231688,.551496,.307592,.595469,-.241718,.556809,.330582,.610929,-.250992,.559641,.354995,.629433,-.259602,.562379,.382471,.648504,-.267038,.563676,.411126,.66756,-.273388,.562092,.440924,.689143,-.278788,.560807,.472118,.709056,-.282783,.555701,.503774,.729855,-.285836,.548698,.536364,.748954,-.287078,.538544,.56895,.768373,-.287133,.526711,.601991,.78827,-.285839,.512511,.635403,.807465,-.283238,.496323,.668797,.825194,-.27906,.477638,.702584,.842203,-.272286,.456253,.736393,.857749,-.263854,.432412,.77096,.874799,-.253943,.407806,.80489,.887497,-.24237,.38033,.83771,.89966,-.230278,.352446,.870376,.911753,-.21646,.323268,.902256,.923011,-.202071,.294314,.933306,.932375,-.185519,.264104,.965177,.940537,-.167604,.234035,.996303,.948904,-.149068,.20412,1.0261,.955263,-.129539,.175431,1.05304,.960303,-.109932,.148116,1.07617,.965512,-.0880572,.119693,1.09742,.973466,-.0660548,.0901619,1.11721,.98284,-.0439228,.0599875,1.13436,.992216,-.0219588,.0298975,1.15006,.999946,119402e-9,-208547e-10,1.16471,.447827,-100414e-10,.491543,914833e-11,.454778,-251257e-9,.499172,22891e-8,.453519,-.00100342,.497787,914184e-9,.45357,-.00225776,.497847,.00205701,.453578,-.00401371,.497855,.00365705,.45357,-.00627107,.497841,.00571453,.453598,-.00902968,.497864,.00823019,.453627,-.0122888,.497882,.0112049,.453684,-.0160475,.497923,.0146405,.453764,-.0203044,.49798,.0185394,.453866,-.0250576,.498049,.0229054,.453996,-.0303028,.49813,.0277424,.454196,-.0360379,.498267,.0330587,.454457,-.0422521,.498445,.0388613,.454926,-.0488393,.498812,.0451767,.455525,-.0558653,.499272,.0520153,.456074,-.0633772,.499625,.0593754,.456752,-.0713606,.500049,.0672751,.457648,-.07971,.500615,.0757447,.458849,-.0883032,.501399,.0848231,.46029,-.0974095,.502293,.0945135,.462,-.106729,.503301,.104848,.464121,-.116354,.504533,.115884,.466889,-.126214,.506172,.127652,.470744,-.136324,.508667,.14024,.47488,-.146595,.510995,.153673,.480845,-.157027,.514832,.168053,.488262,-.167658,.519506,.183508,.496547,-.178343,.524347,.199948,.506254,-.188916,.52983,.217503,.517961,-.199975,.536357,.236272,.531484,-.210624,.543641,.256096,.545496,-.221227,.550048,.277085,.559497,-.231568,.555076,.298615,.575752,-.241698,.560541,.321547,.591999,-.251172,.564156,.345602,.610654,-.260178,.567607,.371851,.630484,-.268094,.56923,.40076,.651807,-.274661,.569779,.430801,.67239,-.280331,.566791,.461939,.693024,-.284501,.562007,.493854,.715473,-.287852,.555791,.526992,.736323,-.28929,.546345,.560102,.755771,-.289405,.534,.593543,.775424,-.2881,.519114,.627256,.795447,-.285562,.502543,.661464,.815319,-.281416,.484773,.695206,.831769,-.275523,.463445,.729044,.849464,-.267516,.440269,.764069,.866775,-.257584,.415049,.799089,.881252,-.245817,.388049,.831948,.894209,-.233127,.35889,.865526,.906922,-.219579,.329915,.89818,.919686,-.204491,.300441,.930013,.929044,-.188962,.269445,.962061,.938393,-.171079,.238402,.994214,.94661,-.15199,.208204,1.02533,.953095,-.131953,.178653,1.0529,.958644,-.111233,.150684,1.0771,.963925,-.0903098,.122359,1.09855,.971995,-.0680505,.0923342,1.11874,.981658,-.0448512,.0614195,1.13635,.991649,-.0221931,.0303582,1.15238,.999985,393403e-9,-111086e-9,1.16772,.396806,-971563e-11,.457671,842355e-11,.429186,-249421e-9,.495017,21625e-8,.429324,-998052e-9,.495173,865322e-9,.429175,-.00224487,.494999,.00194637,.429129,-.00399041,.494952,.00346004,.429153,-.00623476,.494974,.00540684,.429168,-.0089773,.494983,.00778714,.429207,-.0122175,.495012,.0106022,.429257,-.0159542,.495047,.0138535,.429338,-.0201864,.495106,.0175443,.429431,-.0249104,.495165,.0216774,.429587,-.0301252,.495279,.0262594,.429796,-.0358249,.495432,.0312968,.430065,-.0419972,.495621,.0367985,.430588,-.0485144,.496061,.042798,.43113,-.0555028,.496472,.0492914,.431743,-.0629852,.496904,.0562907,.432448,-.0709256,.497369,.0638056,.433414,-.0791942,.498032,.071885,.434638,-.0877346,.498854,.0805517,.43611,-.0968056,.499812,.0898047,.437859,-.106002,.500891,.0997142,.440017,-.115648,.502198,.110289,.443236,-.125427,.504389,.121644,.44697,-.135492,.506809,.133769,.451689,-.145746,.509858,.146787,.45811,-.156219,.514247,.160793,.465305,-.166834,.518816,.175791,.474085,-.177546,.524331,.191906,.484808,-.188262,.53104,.209199,.49732,-.199346,.538511,.227825,.509693,-.209951,.544554,.247269,.524367,-.220533,.551616,.267978,.539228,-.231082,.557368,.289672,.55644,-.241342,.563782,.31268,.574204,-.250964,.568851,.33651,.593388,-.260306,.57312,.362219,.613358,-.268667,.574916,.390322,.634512,-.275591,.575053,.420478,.65563,-.281328,.572404,.451614,.678265,-.285948,.568893,.484112,.70011,-.289408,.561878,.517348,.723005,-.291328,.55359,.551355,.743744,-.291418,.541099,.585109,.763949,-.290252,.526489,.619487,.784186,-.287648,.509496,.65404,.804304,-.283782,.491484,.688649,.823629,-.278067,.470517,.723133,.84094,-.270588,.44705,.757163,.857852,-.261188,.421252,.792816,.874934,-.249313,.394191,.827248,.888709,-.236492,.365359,.861074,.902589,-.222185,.336016,.894417,.914201,-.207314,.30527,.926825,.925978,-.191146,.274532,.9595,.93512,-.174135,.243393,.991583,.943656,-.155231,.212414,1.02356,.951719,-.134403,.182005,1.05239,.957164,-.113023,.153043,1.07754,.962656,-.0914493,.124186,1.09984,.970695,-.0694179,.0941654,1.12,.980749,-.0466199,.0629671,1.13849,.991205,-.0227032,.0311146,1.15494,.999884,632388e-9,-254483e-9,1.1706,.379821,-957289e-11,.460637,789337e-11,.405188,-247483e-9,.491396,204064e-9,.404796,-989434e-9,.490914,815853e-9,.40483,-.00222607,.490949,.00183559,.40473,-.00395723,.49084,.00326332,.404731,-.00618287,.490836,.00509945,.404768,-.00890258,.490871,.00734463,.404791,-.0121156,.490883,.00999992,.404857,-.0158214,.490938,.0130676,.404943,-.0200178,.491004,.0165503,.405059,-.0247027,.491093,.0204521,.405213,-.0298729,.491205,.0247788,.405399,-.0355226,.491333,.0295373,.405731,-.0416352,.491604,.034741,.406303,-.0480807,.492116,.0404255,.406814,-.0550458,.492506,.0465732,.407404,-.0624652,.492926,.0532058,.408149,-.0702958,.493442,.0603442,.409128,-.0784623,.494136,.0680297,.410408,-.087007,.495054,.0762786,.411813,-.0959639,.495962,.0851046,.413735,-.105075,.497257,.0945878,.416137,-.114646,.498882,.104725,.41934,-.124394,.501132,.11563,.423326,-.134328,.503883,.127325,.428419,-.14458,.50747,.139911,.43484,-.154979,.511964,.153481,.442641,-.165628,.517328,.168114,.452511,-.176365,.524258,.183995,.463473,-.187298,.531248,.200953,.475564,-.198244,.538367,.219176,.488664,-.208938,.545175,.238514,.504073,-.219599,.553227,.259129,.520832,-.230378,.560653,.280997,.538455,-.240703,.567523,.303821,.55709,-.250548,.573287,.327948,.576646,-.259964,.577795,.353362,.596705,-.268721,.580077,.380336,.618053,-.276054,.58018,.4101,.640303,-.282176,.578747,.44161,.662365,-.286931,.574294,.474106,.684542,-.290521,.567035,.507549,.707984,-.292672,.558687,.541853,.730913,-.293189,.547606,.576581,.752948,-.292199,.533471,.61172,.773452,-.289508,.516395,.646339,.794715,-.285716,.497873,.682131,.814251,-.280051,.476845,.716396,.833057,-.272873,.453449,.751503,.84959,-.263982,.427857,.786085,.867022,-.252745,.400335,.821355,.882277,-.239655,.371304,.85646,.895375,-.225386,.340397,.890828,.909347,-.209587,.310005,.923532,.921885,-.193433,.2796,.956419,.932127,-.176135,.247276,.989445,.941869,-.157872,.216186,1.02221,.949735,-.137577,.185602,1.05195,.956617,-.115285,.155767,1.07822,.961974,-.0928418,.126103,1.10149,.96972,-.0700592,.0956758,1.12207,.98012,-.0474671,.0643269,1.1408,.990825,-.0238113,.0320863,1.1577,.999876,381574e-9,-812203e-10,1.17403,.367636,-961342e-11,.469176,753287e-11,.380377,-244772e-9,.485434,191797e-9,.380416,-978857e-9,.485475,767015e-9,.380376,-.00220165,.485435,.00172522,.380419,-.00391408,.485487,.00306734,.380438,-.00611549,.485505,.00479332,.380462,-.00880558,.485525,.00690391,.380496,-.0119837,.485551,.00940039,.38056,-.0156487,.485605,.0122848,.38064,-.0197988,.485666,.0155601,.380767,-.0244324,.48577,.0192313,.380909,-.0295444,.485871,.0233032,.381142,-.0351321,.48606,.0277861,.381472,-.0411535,.486336,.0326939,.382015,-.0475408,.486833,.0380565,.382523,-.0544395,.487231,.0438615,.383129,-.061784,.487683,.0501332,.383952,-.0695085,.488313,.0568996,.38498,-.0775819,.489077,.0641952,.386331,-.0860443,.490113,.0720324,.387788,-.0948406,.491099,.0804379,.389808,-.103899,.492566,.0894899,.39252,-.113313,.494601,.0992098,.395493,-.123007,.496619,.109641,.399826,-.132859,.499912,.120919,.405341,-.143077,.504061,.133107,.411932,-.153465,.508905,.146263,.420591,-.164108,.515482,.160544,.43101,-.174893,.523191,.176123,.441881,-.185839,.53026,.192757,.453919,-.196633,.537295,.210535,.468715,-.207611,.546156,.229886,.485182,-.218517,.555173,.250543,.501926,-.229249,.562728,.27221,.51785,-.239481,.567494,.294892,.536947,-.249395,.573889,.318987,.557115,-.259,.578831,.344348,.577966,-.268075,.582055,.371223,.599489,-.276115,.583307,.399834,.62479,-.282523,.583902,.431415,.647504,-.287663,.57953,.464301,.670601,-.291538,.573103,.498123,.693539,-.293842,.563731,.532662,.717385,-.294681,.553169,.567925,.741533,-.293717,.539908,.603502,.762142,-.291156,.521902,.639074,.783014,-.28719,.502815,.674439,.805158,-.281773,.482598,.710497,.823646,-.274682,.458949,.7456,.841879,-.266184,.433129,.781085,.859515,-.255682,.406064,.816,.875335,-.242849,.376509,.851074,.890147,-.228329,.345502,.886473,.903144,-.212491,.31428,.920751,.916618,-.195695,.282994,.954606,.927953,-.178267,.251091,.988402,.937414,-.159549,.219107,1.02141,.946823,-.140022,.18896,1.05167,.954651,-.118154,.158667,1.07819,.959955,-.0946636,.128808,1.1025,.96858,-.0711792,.0973787,1.12391,.97938,-.0475046,.0650965,1.14322,.990498,-.024059,.0326267,1.16077,.999844,-512408e-10,112444e-9,1.17727,.316912,-934977e-11,.425996,695559e-11,.356423,-241372e-9,.479108,179562e-9,.356272,-965292e-9,.478897,71811e-8,.356262,-.00217182,.478894,.00161574,.356265,-.00386092,.478895,.00287261,.356278,-.0060324,.478905,.00448907,.356293,-.00868565,.478914,.00646572,.356346,-.0118207,.478965,.00880438,.356395,-.0154355,.479001,.0115066,.356484,-.019529,.479075,.0145762,.356609,-.0240991,.47918,.018018,.356766,-.0291413,.479305,.0218379,.357009,-.0346498,.479512,.0260454,.357424,-.0405462,.479909,.0306657,.357899,-.0468825,.480337,.0357054,.358424,-.0536887,.480771,.0411728,.359041,-.0609416,.481242,.0470841,.359903,-.0685239,.481943,.0534831,.360932,-.0764883,.482741,.0603795,.362196,-.0848364,.483688,.0678028,.363847,-.0935002,.484947,.0758086,.365972,-.102471,.486588,.0844173,.368741,-.111751,.488787,.0937199,.372146,-.121334,.491405,.103732,.377114,-.131147,.495604,.114608,.38226,-.141213,.499436,.126345,.389609,-.151632,.505334,.139116,.397925,-.162073,.51168,.152995,.407824,-.172819,.518876,.168071,.420014,-.183929,.527639,.184495,.434266,-.195032,.537588,.20232,.447352,-.205792,.544379,.221189,.463726,-.216704,.553422,.241616,.481406,-.227531,.562074,.263298,.498707,-.238017,.568227,.286116,.518039,-.247936,.574473,.3101,.538277,-.257437,.579191,.335401,.561166,-.266829,.584807,.362246,.583189,-.275329,.586476,.390609,.606024,-.28234,.585578,.420998,.632419,-.287924,.584496,.454357,.656128,-.291972,.577766,.488233,.679953,-.29456,.56875,.523248,.704654,-.295816,.558388,.559168,.729016,-.295157,.544826,.595326,.752062,-.292779,.528273,.631864,.773138,-.288681,.508482,.667793,.794869,-.283358,.487341,.704035,.815101,-.27608,.46354,.739925,.834212,-.26767,.438672,.775539,.852368,-.257397,.411239,.810895,.870207,-.245689,.3829,.846472,.884063,-.231452,.351496,.881788,.898284,-.215561,.31895,.917438,.912964,-.198208,.287367,.952422,.924666,-.180426,.254487,.987551,.934429,-.161525,.222226,1.02142,.943485,-.141197,.191143,1.05218,.9521,-.120085,.161112,1.07937,.957876,-.0975881,.130982,1.10403,.966943,-.0726842,.0990553,1.12616,.978313,-.0483705,.0662818,1.14619,.990048,-.0239072,.0329243,1.16413,.999984,461885e-9,-772859e-10,1.18099,.321287,-935049e-11,.455413,659662e-11,.332595,-237513e-9,.471437,167562e-9,.332729,-949964e-9,.471618,670192e-9,.332305,-.00213618,.471028,.00150712,.332326,-.00379765,.471055,.00267959,.332344,-.00593353,.471072,.00418751,.332356,-.00854349,.471077,.00603172,.332403,-.0116268,.471121,.00821362,.332461,-.0151824,.47117,.0107357,.332552,-.0192088,.471251,.0136014,.332657,-.0237024,.47133,.0168152,.332835,-.0286615,.471487,.0203853,.333083,-.0340765,.471708,.0243212,.333547,-.0398563,.47219,.0286518,.333989,-.0460916,.472587,.0333763,.334532,-.0527897,.473054,.0385084,.335167,-.0599284,.473568,.0440638,.33608,-.0673514,.474362,.0500962,.337146,-.0752237,.475231,.0566022,.338462,-.083418,.476282,.0636272,.34014,-.0919382,.477615,.0712153,.342341,-.100741,.479404,.079417,.345088,-.109905,.481618,.0882631,.349049,-.119369,.485081,.0978851,.353939,-.129033,.489317,.108336,.359893,-.139038,.494309,.119698,.366945,-.149411,.499983,.132024,.375814,-.159843,.507185,.145558,.387112,-.170664,.516392,.160433,.40023,-.181897,.526519,.176648,.412555,-.192785,.53423,.193922,.427023,-.203663,.542741,.212662,.443685,-.214695,.552066,.232944,.461499,-.225561,.560762,.254495,.480975,-.236257,.569421,.277531,.501,-.24639,.576101,.301724,.521691,-.256101,.581493,.327112,.543478,-.265289,.585221,.353917,.566094,-.273938,.587614,.381941,.589578,-.281679,.587991,.41172,.614583,-.287655,.585928,.444148,.641813,-.292228,.582092,.478617,.666189,-.295172,.57398,.51397,.690475,-.29648,.561676,.550118,.715543,-.296203,.548758,.586933,.740405,-.293999,.532792,.62384,.762183,-.28998,.512735,.660723,.786069,-.28478,.492402,.69807,.806812,-.277568,.469058,.734422,.826987,-.268951,.443017,.770946,.844588,-.259049,.415501,.80699,.863725,-.2471,.387328,.842107,.879137,-.234157,.356108,.878078,.894634,-.218719,.324315,.914058,.909162,-.201293,.291813,.949922,.92072,-.18267,.258474,.985337,.93158,-.163212,.225593,1.0205,.941238,-.142771,.193986,1.05273,.949293,-.120956,.163392,1.08075,.956226,-.0985743,.132934,1.10559,.96546,-.075118,.101255,1.12823,.977403,-.0497921,.0675441,1.149,.989648,-.0241574,.0334681,1.16765,1.00001,5762e-7,-184807e-9,1.18519,.303474,-916603e-11,.4542,61243e-10,.308894,-232869e-9,.462306,155592e-9,.309426,-931661e-9,.463093,622499e-9,.308643,-.0020949,.461933,.00139979,.308651,-.0037242,.461941,.00248874,.308662,-.00581873,.46195,.00388933,.308687,-.00837818,.461974,.00560247,.308728,-.0114016,.462011,.00762948,.308789,-.0148884,.462067,.00997326,.308882,-.0188369,.462151,.0126375,.309007,-.0232436,.462263,.0156271,.30918,-.0281054,.462417,.0189498,.309442,-.0334065,.462667,.0226167,.309901,-.0390589,.463162,.0266614,.310331,-.0452042,.463555,.0310715,.310858,-.0517735,.464019,.0358698,.311576,-.0587359,.464669,.0410848,.312436,-.0660383,.465406,.0467453,.313526,-.0737266,.466339,.0528718,.314903,-.0817574,.467504,.0595039,.316814,-.090167,.469226,.0666888,.318965,-.0987555,.470981,.0744658,.322077,-.107792,.473814,.082912,.325947,-.117098,.477241,.0920846,.331008,-.126602,.48184,.102137,.337893,-.136619,.488334,.113135,.345106,-.146838,.494415,.12511,.355111,-.157357,.503275,.138356,.365095,-.167955,.510966,.152686,.378344,-.179157,.521508,.16856,.391599,-.190143,.530455,.18561,.407786,-.20123,.541275,.204308,.425294,-.212456,.551784,.224623,.444021,-.223568,.561493,.246172,.463418,-.234154,.569886,.268979,.484077,-.244546,.577116,.293411,.505513,-.254301,.582914,.318936,.527672,-.263564,.587208,.345856,.550565,-.272332,.589277,.374054,.573656,-.280011,.588426,.403276,.59827,-.286924,.587504,.43474,.624731,-.291994,.583401,.468767,.652396,-.295159,.576997,.504411,.67732,-.296954,.565863,.54114,.703147,-.296877,.552316,.57816,.728715,-.295147,.536773,.616124,.752448,-.291275,.51771,.653885,.775169,-.285905,.496087,.691537,.799307,-.279064,.474232,.729251,.819482,-.270294,.447676,.766267,.837659,-.260032,.419656,.802616,.856903,-.248497,.391328,.838583,.873325,-.235252,.360285,.874711,.889788,-.221126,.329215,.91077,.904486,-.204304,.296392,.94653,.917711,-.185562,.262159,.983828,.928969,-.165635,.229142,1.01955,.939707,-.14442,.19673,1.05317,.948167,-.122147,.165095,1.0823,.955222,-.099098,.13451,1.10791,.964401,-.0755332,.102476,1.1312,.976605,-.0513817,.0689667,1.15218,.989085,-.0258499,.034506,1.17129,.999908,617773e-9,-271268e-9,1.18961,.285803,-905752e-11,.452348,572272e-11,.284689,-22732e-8,.450581,143626e-9,.285263,-910214e-9,.451482,575099e-9,.285302,-.00204784,.451553,.00129395,.285318,-.00364057,.451574,.0023006,.28533,-.00568813,.451585,.00359547,.285361,-.00819001,.451618,.00517934,.285397,-.0111458,.45165,.007054,.285447,-.0145536,.451688,.00922167,.285527,-.0184127,.451758,.0116869,.285688,-.0227207,.451929,.0144555,.28584,-.0274712,.452055,.0175341,.286136,-.0326278,.452369,.0209406,.286574,-.0381792,.452853,.0246965,.287012,-.0441879,.453272,.0287996,.287542,-.0506096,.453752,.033268,.288299,-.0573634,.454488,.0381504,.289186,-.0645458,.455294,.0434447,.290302,-.0720405,.456301,.0491973,.291776,-.0799046,.457648,.0554453,.29372,-.088117,.459483,.0622311,.296052,-.0965328,.461571,.0695992,.299563,-.105409,.465085,.077658,.30335,-.114553,.468506,.0864176,.309167,-.123917,.474423,.0961078,.31529,-.13381,.47995,.106643,.324163,-.144021,.488592,.118322,.333272,-.154382,.496461,.131133,.344224,-.165015,.50562,.145208,.357733,-.176168,.516719,.16073,.373046,-.187468,.528513,.177807,.38788,-.198488,.537713,.196072,.405133,-.209545,.547999,.21605,.423845,-.220724,.55759,.237484,.443777,-.231518,.566246,.26039,.464824,-.242035,.574326,.284835,.486635,-.251898,.58037,.310518,.51012,-.261304,.58568,.337678,.535301,-.270384,.590197,.366242,.559193,-.27841,.590569,.395873,.583544,-.285325,.588161,.426857,.608834,-.291113,.584249,.459477,.635753,-.294882,.57763,.494734,.664367,-.297088,.569479,.532023,.689688,-.297364,.555064,.569629,.715732,-.295949,.539522,.608124,.741307,-.292259,.521613,.646231,.764949,-.287063,.49969,.684938,.788599,-.28012,.476747,.723548,.81048,-.27153,.45116,.761135,.831372,-.261289,.424101,.798916,.850092,-.249559,.39443,.835952,.867777,-.236348,.363849,.871606,.884632,-.221569,.332477,.907843,.90047,-.20618,.300667,.944187,.914524,-.188771,.266552,.981371,.926892,-.168362,.232349,1.01841,.937951,-.146761,.199359,1.05308,.947236,-.123813,.1675,1.0839,.954367,-.099984,.136166,1.11047,.963907,-.0759278,.103808,1.13414,.976218,-.0511367,.0697061,1.15575,.988772,-.0267415,.0352529,1.17531,.999888,-520778e-9,289926e-9,1.19389,.263546,-883274e-11,.441896,526783e-11,.262352,-221849e-9,.439889,132311e-9,.262325,-886683e-9,.439848,528824e-9,.26228,-.00199476,.439765,.00118975,.262372,-.00354671,.439922,.00211568,.26239,-.00554141,.439941,.00330652,.262412,-.00797888,.439961,.00476346,.262453,-.0108584,.440002,.00648818,.262528,-.0141788,.440085,.0084835,.262615,-.017938,.440166,.0107533,.262744,-.0221346,.440291,.0133044,.262939,-.026762,.440493,.0161445,.263277,-.0317573,.440889,.0192974,.26368,-.0371832,.441338,.0227699,.264106,-.0430371,.441753,.0265698,.264624,-.0493035,.442227,.0307178,.265378,-.0558669,.442985,.0352616,.266253,-.0628718,.443795,.0401968,.267478,-.0701569,.445008,.04559,.269062,-.077845,.446599,.0514539,.270926,-.0857941,.448349,.0578382,.273693,-.0940773,.451221,.0648363,.276746,-.102704,.454097,.0724389,.281693,-.111735,.459517,.0808744,.287335,-.121004,.46531,.0901551,.29448,-.130734,.472605,.100371,.30257,-.140777,.480251,.111644,.312465,-.15111,.489444,.124111,.324856,-.16189,.500919,.137979,.33774,-.172946,.511317,.153163,.35255,-.184152,.522684,.169817,.367786,-.19522,.53248,.187886,.385474,-.20632,.543326,.207634,.404976,-.217744,.554109,.229165,.425203,-.228691,.563395,.252068,.446704,-.239299,.571565,.276471,.468951,-.249348,.577935,.302323,.493487,-.258933,.584309,.329882,.517861,-.268009,.58773,.358525,.543309,-.276238,.589612,.388585,.569704,-.28356,.589294,.419787,.594871,-.289497,.585137,.452114,.622555,-.294452,.580356,.486466,.651167,-.296918,.57185,.523079,.677332,-.297647,.558428,.5611,.703718,-.296321,.542232,.599592,.730262,-.293339,.524541,.639138,.754304,-.288036,.502691,.677978,.778051,-.281018,.479212,.716537,.801557,-.272414,.454071,.75586,.822559,-.262419,.425952,.794477,.843051,-.250702,.397313,.832664,.86232,-.237264,.366534,.869876,.879044,-.222716,.334816,.906973,.896362,-.206827,.303143,.943558,.910342,-.189659,.269699,.979759,.924119,-.171108,.236411,1.01718,.935374,-.149579,.202224,1.05289,.944295,-.126295,.16989,1.08496,.952227,-.101511,.138089,1.11256,.962041,-.0766392,.105053,1.1375,.97528,-.0511967,.070329,1.15983,.988476,-.025463,.0351268,1.17987,.999962,286808e-10,145564e-10,1.19901,.227089,-841413e-11,.404216,472707e-11,.239725,-215083e-9,.426708,120833e-9,.239904,-860718e-9,.427028,483555e-9,.239911,-.00193661,.427039,.00108806,.239914,-.00344276,.42704,.00193457,.239933,-.00537907,.427064,.00302363,.239944,-.00774482,.427065,.00435604,.239993,-.01054,.427122,.00593398,.240052,-.0137626,.427179,.00775987,.240148,-.0174115,.427279,.00983854,.240278,-.021484,.42741,.0121763,.240472,-.0259729,.427618,.0147827,.240839,-.0308131,.428086,.0176837,.241201,-.0360893,.428482,.0208775,.241626,-.0417723,.428907,.0243821,.242207,-.0478337,.42952,.0282228,.24298,-.0542199,.430332,.0324333,.243881,-.0610015,.431222,.0370252,.245123,-.0680874,.432512,.0420535,.24667,-.0755482,.434088,.0475414,.248779,-.0832873,.436323,.0535542,.251665,-.0913546,.439509,.0601716,.255305,-.0998489,.443478,.0674282,.260049,-.108576,.448713,.0754673,.266192,-.117754,.455524,.084339,.273158,-.127294,.4627,.0941683,.282131,-.137311,.472068,.10515,.293332,-.147736,.483565,.117402,.304667,-.158357,.493702,.130824,.317785,-.169274,.504708,.145724,.333245,-.180595,.517107,.16215,.349843,-.191892,.528849,.180149,.367944,-.203168,.540301,.199746,.387579,-.214443,.551514,.221047,.408247,-.225624,.560906,.243981,.43014,-.236422,.56959,.268513,.452669,-.24654,.576098,.294409,.476196,-.256157,.580925,.322002,.501157,-.265289,.584839,.351052,.527632,-.273671,.587614,.3812,.555754,-.281254,.589119,.412994,.581682,-.287448,.585204,.445498,.608196,-.292614,.579006,.479505,.635661,-.296068,.571297,.514643,.664999,-.297395,.560855,.552213,.691039,-.296645,.544525,.591365,.7179,-.293785,.526535,.630883,.744059,-.289089,.50545,.670932,.76863,-.282239,.482514,.710904,.793273,-.273688,.457246,.750259,.814731,-.26328,.428872,.78948,.835603,-.251526,.399384,.828597,.85489,-.238339,.368811,.866892,.872828,-.223607,.336617,.90563,.889462,-.207538,.303997,.943538,.904929,-.190297,.270812,.980591,.919101,-.172034,.237453,1.01935,.930536,-.152058,.204431,1.05498,.941223,-.129515,.172495,1.08717,.94982,-.104263,.140175,1.11551,.960592,-.0781944,.106465,1.14098,.974629,-.051688,.0711592,1.16418,.98811,-.0253929,.0354432,1.18465,1.00004,804378e-9,-330876e-9,1.20462,.214668,-821282e-11,.406619,433582e-11,.218053,-208144e-9,.413025,109887e-9,.217987,-832212e-9,.412901,439362e-9,.217971,-.00187246,.412876,988623e-9,.217968,-.00332855,.41286,.00175772,.217985,-.00520055,.412882,.00274729,.218014,-.00748814,.412916,.00395842,.218054,-.0101901,.412957,.00539274,.218106,-.0133057,.413005,.00705348,.218217,-.0168342,.413139,.00894581,.218338,-.0207707,.413258,.0110754,.21855,-.0251001,.413509,.0134551,.218913,-.0297861,.413992,.0161081,.219265,-.0348956,.414383,.0190307,.219696,-.0403909,.414839,.0222458,.220329,-.0462003,.415567,.025792,.220989,-.0524208,.41621,.0296637,.222027,-.058948,.417385,.0339323,.223301,-.0658208,.418779,.0386055,.224988,-.0730347,.420665,.0437355,.227211,-.0805274,.423198,.0493844,.230131,-.088395,.426566,.0556135,.233908,-.0966208,.43091,.0624829,.239092,-.105223,.437148,.0701636,.245315,-.11424,.444302,.0786949,.253166,-.12368,.453262,.0882382,.262374,-.133569,.463211,.0988682,.273145,-.143836,.474271,.110727,.285512,-.154577,.4863,.123945,.299512,-.165501,.498817,.138581,.314287,-.176698,.510341,.154676,.331083,-.188066,.522583,.172459,.349615,-.199597,.534879,.191979,.369318,-.210843,.546083,.21309,.390377,-.222068,.5562,.235998,.412411,-.233059,.564704,.260518,.435715,-.24357,.572314,.286795,.461196,-.253356,.579395,.314559,.485587,-.262362,.581985,.343581,.511908,-.270895,.584347,.374367,.539798,-.278452,.58505,.406015,.567974,-.284877,.583344,.439168,.594303,-.290124,.577348,.473005,.622951,-.294183,.570751,.508534,.652404,-.296389,.561541,.544764,.679291,-.296605,.546426,.582927,.706437,-.294095,.528599,.622681,.734485,-.28978,.508676,.663567,.758841,-.283363,.484768,.704092,.78537,-.275015,.460434,.745101,.807315,-.264689,.432166,.784712,.8271,-.252597,.401807,.824241,.849191,-.239154,.371458,.863803,.867046,-.224451,.338873,.903063,.8852,-.208342,.306175,.942763,.901771,-.190684,.272759,.981559,.915958,-.172105,.239306,1.02048,.928046,-.152214,.206071,1.05765,.939961,-.130247,.17367,1.08999,.948711,-.10672,.142201,1.11829,.959305,-.0808688,.108454,1.14467,.973009,-.0539145,.0728109,1.16839,.987631,-.0262947,.0360625,1.19004,.999978,.00132758,-559424e-9,1.21058,.193925,-793421e-11,.391974,392537e-11,.196746,-200315e-9,.397675,991033e-10,.19667,-801099e-9,.397521,396342e-9,.196633,-.00180246,.397445,891829e-9,.196654,-.00320443,.397482,.00158582,.196659,-.00500647,.39748,.00247867,.196683,-.0072086,.397506,.00357167,.196728,-.00981001,.397562,.00486675,.196792,-.0128096,.397633,.00636707,.19689,-.0162055,.397746,.00807752,.197017,-.0199943,.397884,.0100052,.19729,-.024139,.39827,.0121691,.197583,-.0286671,.398639,.0145755,.197927,-.0335858,.399034,.0172355,.198383,-.0388806,.399554,.0201718,.199002,-.0444736,.400289,.0234194,.199739,-.0504583,.401111,.026984,.200784,-.056729,.402349,.0309217,.202075,-.0633643,.403841,.0352496,.203898,-.0703247,.406076,.0400313,.206199,-.0775565,.408841,.0453282,.209252,-.085184,.41259,.0511794,.213638,-.0931994,.418288,.0577459,.21881,-.101617,.424681,.0650508,.225642,-.11052,.433429,.0732759,.233717,-.119772,.442897,.0824683,.242823,-.129505,.452888,.0927484,.254772,-.139906,.466407,.104417,.266603,-.150402,.477413,.117211,.28073,-.161395,.490519,.131598,.295399,-.172465,.50201,.147407,.312705,-.183982,.515311,.165031,.331335,-.195532,.52786,.184336,.351037,-.206971,.5392,.205361,.372175,-.218117,.54941,.228043,.394548,-.229327,.558642,.25267,.419598,-.240052,.567861,.279071,.443922,-.249937,.573332,.306882,.471495,-.259407,.58013,.33661,.496769,-.267749,.580564,.367328,.524951,-.275524,.581696,.399753,.55318,-.282148,.579885,.433134,.581577,-.287533,.575471,.467534,.609231,-.291612,.567445,.502943,.637478,-.293911,.557657,.53871,.667795,-.295096,.546535,.576568,.694272,-.294073,.529561,.614929,.722937,-.290386,.510561,.655909,.749682,-.284481,.487846,.697663,.774754,-.276188,.462487,.738515,.799301,-.266215,.43481,.779802,.820762,-.254116,.404879,.820045,.843231,-.240393,.374559,.860294,.861857,-.225503,.341582,.900965,.880815,-.209382,.308778,.941727,.89766,-.19155,.275232,.980916,.912926,-.172346,.240938,1.02162,.926391,-.151799,.207223,1.0597,.938429,-.129968,.17484,1.09291,.947834,-.10651,.142984,1.12248,.958432,-.0824098,.109902,1.149,.972402,-.0565242,.0744454,1.1733,.987191,-.028427,.0373794,1.19538,.999975,385685e-10,-4203e-8,1.21676,.178114,-766075e-11,.385418,354027e-11,.176074,-191966e-9,.381002,887135e-10,.17601,-767549e-9,.380861,354715e-9,.17598,-.00172696,.380798,798168e-9,.175994,-.00307012,.380824,.00141928,.176017,-.00479684,.380858,.00221859,.176019,-.00690648,.380839,.00319714,.176072,-.00939888,.380913,.0043572,.176131,-.0122726,.380979,.005702,.176239,-.0155264,.38112,.00723689,.176371,-.0191551,.381272,.00896907,.176638,-.023117,.381669,.0109194,.176912,-.0274633,.382015,.0130903,.177279,-.032173,.382476,.0154949,.17774,-.0372219,.383041,.0181669,.178344,-.0426132,.38378,.0211209,.179153,-.0483309,.384773,.0243899,.180197,-.0543447,.386076,.0280062,.181581,-.0607122,.387809,.032004,.18344,-.0673855,.390205,.036453,.186139,-.0743989,.393944,.0414162,.189432,-.0817731,.39832,.0469394,.193795,-.0895464,.404188,.0531442,.199641,-.0978264,.4121,.0601374,.206679,-.106499,.421425,.0680078,.214865,-.115654,.431504,.076919,.224406,-.125268,.442526,.0868835,.235876,-.135475,.455465,.0981875,.248335,-.146023,.4681,.110759,.262868,-.157016,.482069,.124885,.278962,-.168245,.496182,.140645,.295082,-.17958,.507401,.157838,.313738,-.191227,.520252,.17695,.333573,-.202718,.531708,.197817,.356433,-.214424,.544509,.220785,.378853,-.225492,.55373,.245306,.402717,-.236236,.561348,.271593,.428375,-.246568,.568538,.299776,.454724,-.255941,.573462,.329433,.482291,-.264511,.576356,.360598,.509706,-.272129,.576446,.393204,.538805,-.278979,.575298,.427227,.568919,-.284528,.572154,.462157,.596804,-.288801,.564691,.497997,.625987,-.291334,.555134,.534467,.656414,-.292722,.545051,.571736,.683916,-.292185,.528813,.610158,.711809,-.290043,.51106,.649061,.739547,-.285246,.490103,.690081,.766914,-.277647,.465523,.732554,.791375,-.267603,.437718,.773982,.814772,-.256109,.40882,.81609,.836691,-.242281,.377823,.856849,.856984,-.227155,.34496,.898363,.876332,-.210395,.311335,.939471,.894988,-.192612,.277703,.980799,.911113,-.173236,.243019,1.02215,.924092,-.152258,.209037,1.06139,.936828,-.129575,.175909,1.09635,.946869,-.10594,.143852,1.12707,.958284,-.081318,.110289,1.15419,.972325,-.0556133,.0747232,1.17909,.986878,-.0297899,.0383149,1.20163,.999936,-.00197169,912402e-9,1.22338,.151174,-720365e-11,.351531,309789e-11,.155594,-18279e-8,.361806,78608e-9,.156099,-731569e-9,.362982,314615e-9,.156053,-.00164578,.362869,707845e-9,.156093,-.0029261,.362961,.00125884,.156099,-.00457155,.362959,.00196783,.15612,-.00658224,.362982,.00283622,.156168,-.00895774,.363048,.00386625,.156221,-.0116962,.363101,.00506109,.156324,-.0147973,.363241,.00642675,.156476,-.0182503,.363448,.00797175,.156731,-.0220266,.36384,.00971484,.156994,-.026176,.364179,.0116575,.157341,-.0306701,.36462,.0138207,.157867,-.0354591,.365364,.0162356,.15846,-.0406141,.366111,.0189092,.159308,-.0460519,.367248,.021885,.160426,-.0518096,.368767,.0252004,.161877,-.0578906,.370745,.0288825,.163995,-.0642812,.373831,.0330139,.16655,-.0710067,.377366,.0376283,.170237,-.0781522,.382799,.0428493,.175096,-.0857172,.389915,.0487324,.181069,-.0938025,.398487,.0554214,.188487,-.102363,.408799,.0630189,.197029,-.111343,.419991,.071634,.206684,-.120812,.431455,.0812797,.218698,-.131033,.445746,.0923651,.230726,-.141373,.457471,.104545,.245516,-.152387,.472388,.118449,.261551,-.163628,.486671,.133923,.277437,-.174814,.49762,.150849,.296662,-.186713,.51162,.169924,.31795,-.198513,.525435,.190848,.339422,-.210119,.536267,.213504,.362143,-.221354,.545982,.237947,.387198,-.23224,.555364,.264427,.412349,-.24257,.561489,.292519,.439274,-.252284,.566903,.322561,.466779,-.261023,.569614,.353952,.496011,-.26899,.571589,.387278,.524964,-.275498,.570325,.421356,.556518,-.281449,.568792,.457314,.584363,-.285526,.560268,.493199,.614214,-.28844,.55205,.530276,.645684,-.289777,.541906,.56855,.673446,-.289722,.526464,.606927,.701924,-.287792,.509872,.645945,.73037,-.284315,.490649,.685564,.757405,-.278804,.467964,.726511,.784025,-.269543,.441468,.768601,.808255,-.258117,.41216,.811321,.830739,-.244728,.380606,.853496,.851914,-.229428,.348111,.895374,.872586,-.212508,.314732,.937674,.891581,-.194025,.280338,.979869,.907641,-.174711,.245203,1.02253,.922233,-.153509,.21077,1.06371,.935878,-.130418,.177399,1.09972,.946338,-.105558,.144507,1.13124,.957265,-.080059,.110508,1.15973,.971668,-.0539766,.0742311,1.18515,.9866,-.0277101,.0375224,1.20858,1.00021,-515531e-9,135226e-9,1.23135,.137468,-686011e-11,.345041,273315e-11,.13703,-173378e-9,.343936,690761e-10,.136986,-693048e-9,.34383,276126e-9,.136964,-.00155931,.343761,621337e-9,.137003,-.00277211,.343863,.00110494,.137012,-.00433103,.343868,.00172744,.137043,-.00623606,.343916,.00249022,.13709,-.0084868,.343986,.00339559,.137145,-.0110814,.344045,.00444687,.137242,-.0140187,.344177,.00565007,.137431,-.0172713,.344491,.00701868,.137644,-.0208605,.344805,.00856042,.13791,-.024792,.345172,.0102863,.138295,-.0290461,.345734,.0122185,.138764,-.0335957,.346371,.0143771,.139415,-.038467,.347298,.0167894,.140272,-.0436176,.348527,.0194895,.141457,-.0491016,.350276,.0225043,.14303,-.0548764,.352646,.0258962,.145289,-.0610096,.356206,.0297168,.148502,-.0674777,.361488,.0340562,.152188,-.074345,.367103,.0389534,.157359,-.0817442,.375247,.0445541,.16379,-.0896334,.385064,.0509535,.171376,-.098005,.396082,.0582611,.179901,-.106817,.407418,.06654,.189892,-.116239,.420031,.075994,.201838,-.12627,.434321,.0867239,.214311,-.136701,.447631,.0987517,.228902,-.147616,.462046,.112353,.245107,-.158871,.476942,.127605,.262292,-.170261,.490285,.144469,.281215,-.182017,.503783,.163282,.301058,-.193729,.515505,.183873,.322752,-.205512,.52682,.206466,.347547,-.217214,.539473,.231194,.370969,-.227966,.546625,.257288,.397533,-.238555,.55472,.285789,.42398,-.248278,.559468,.315746,.452928,-.257422,.564095,.347724,.482121,-.265306,.565426,.380922,.510438,-.272043,.563205,.415639,.541188,-.277614,.561087,.451702,.571667,-.281927,.554922,.48845,.602432,-.285015,.546838,.526442,.634126,-.286512,.537415,.564896,.662816,-.286388,.522906,.604037,.692411,-.284734,.507003,.643795,.720946,-.281297,.488398,.68298,.748293,-.276262,.466353,.723466,.776931,-.269978,.443573,.764565,.801065,-.260305,.415279,.805838,.825843,-.247426,.384773,.849985,.84807,-.232437,.352555,.893174,.869122,-.215806,.318642,.936564,.888963,-.197307,.28381,.980253,.905547,-.177203,.247888,1.02463,.918554,-.155542,.212904,1.06714,.931395,-.131948,.1787,1.10451,.941749,-.106723,.145902,1.13694,.954551,-.0804939,.111193,1.1666,.970279,-.0534239,.0744697,1.19249,.986117,-.0257452,.0368788,1.21665,.999938,.00190634,-.0010291,1.23981,.118493,-647439e-11,.32272,23772e-10,.118765,-163023e-9,.323456,598573e-10,.118772,-65212e-8,.323477,239447e-9,.118843,-.00146741,.323657,538881e-9,.118804,-.00260846,.323553,95826e-8,.118826,-.00407576,.323595,.00149845,.118846,-.00586826,.323617,.00216047,.118886,-.00798578,.32367,.00294679,.118947,-.0104273,.323753,.00386124,.119055,-.0131909,.323922,.00490999,.119241,-.0162444,.324251,.00610804,.11944,-.0196339,.324544,.00745805,.119739,-.0233378,.325026,.00897805,.12011,-.0273179,.325586,.0106895,.120571,-.0316143,.326231,.0126073,.12124,-.0361939,.327264,.0147654,.122162,-.0410511,.328733,.0172001,.123378,-.0462233,.330659,.0199375,.125183,-.0517109,.333754,.0230498,.127832,-.0575652,.338507,.026597,.130909,-.0637441,.343666,.0306345,.135221,-.0704302,.351063,.035273,.14082,-.0776364,.360604,.0406137,.146781,-.0852293,.369638,.0466788,.155121,-.0935351,.3827,.0537628,.16398,-.102234,.39522,.0617985,.173926,-.111465,.40793,.07097,.185137,-.121296,.42105,.0813426,.19826,-.13169,.435735,.0931596,.212938,-.142614,.450932,.106547,.229046,-.153884,.465726,.121575,.246246,-.165382,.479461,.138286,.264637,-.176806,.492106,.15666,.284959,-.188793,.504774,.17728,.308157,-.200763,.518805,.19988,.330951,-.21239,.528231,.224293,.3549,-.223521,.536376,.250541,.381502,-.234169,.544846,.278902,.409529,-.244077,.551717,.309227,.437523,-.253363,.55517,.341426,.467624,-.261659,.557772,.37518,.497268,-.268498,.556442,.41007,.528294,-.274018,.553915,.446445,.559053,-.278169,.549153,.483779,.589329,-.281229,.539878,.522249,.622503,-.282902,.53162,.561754,.652382,-.282815,.518119,.601544,.681847,-.281247,.502187,.641574,.712285,-.277986,.484824,.682633,.740094,-.273017,.463483,.723426,.768478,-.266692,.441299,.763747,.794556,-.258358,.415238,.805565,.819408,-.248807,.386912,.847254,.843411,-.236214,.356165,.891091,.862397,-.219794,.320562,.936174,.883113,-.201768,.285322,.982562,.90023,-.181672,.249713,1.02862,.915192,-.159279,.214546,1.07163,.928458,-.134725,.180285,1.10995,.94069,-.10913,.147119,1.14354,.953409,-.0821315,.112492,1.17372,.969537,-.0542677,.0752014,1.20043,.985612,-.0259096,.0370361,1.22528,.999835,.00298198,-.00151801,1.24959,.10097,-602574e-11,.300277,202619e-11,.101577,-152164e-9,.302077,511662e-10,.101572,-608889e-9,.302066,204751e-9,.101566,-.00136997,.302047,460753e-9,.101592,-.00243557,.302114,819497e-9,.101608,-.0038053,.30214,.00128154,.101627,-.00547906,.30216,.0018483,.101669,-.00745647,.302224,.00252223,.101732,-.00973615,.302318,.00330716,.101844,-.0123097,.302513,.00421061,.102025,-.0151681,.30285,.00524481,.102224,-.0183334,.303166,.0064154,.102515,-.0217819,.303654,.00774063,.102886,-.0255067,.304243,.0092398,.103395,-.029514,.305089,.0109339,.104109,-.0337912,.306301,.0128561,.105074,-.0383565,.30798,.0150338,.10654,-.0432132,.310726,.0175228,.108478,-.0484244,.314351,.0203648,.111015,-.0539339,.319032,.0236325,.114682,-.0598885,.32605,.0274188,.11911,-.0663375,.334109,.0317905,.124736,-.0733011,.344013,.0368502,.131479,-.0807744,.355358,.0427104,.139283,-.0888204,.367614,.0494788,.148054,-.0973394,.380072,.0572367,.159037,-.10665,.395678,.0662704,.169794,-.116221,.40795,.0763192,.18314,-.126632,.423546,.087956,.197515,-.137383,.438213,.101042,.213514,-.148641,.453248,.115827,.23065,-.160117,.46688,.132283,.249148,-.171807,.479962,.150644,.270219,-.183695,.494618,.171073,.292338,-.195574,.506937,.193378,.314999,-.207205,.516463,.217585,.340991,-.218955,.528123,.24428,.367982,-.229917,.537025,.272784,.39432,-.239737,.541627,.302742,.423364,-.249048,.546466,.335112,.453751,-.257329,.549466,.369032,.48416,-.264623,.549503,.404577,.515262,-.270411,.547008,.441337,.547036,-.274581,.542249,.479162,.576614,-.277266,.533015,.517904,.611143,-.279144,.525512,.558508,.640989,-.279001,.51154,.598995,.671182,-.277324,.495641,.639935,.700848,-.273908,.477526,.681017,.729862,-.269063,.457955,.722764,.758273,-.262282,.434846,.764349,.784121,-.254281,.409203,.806206,.809798,-.24505,.382694,.848617,.834953,-.233861,.354034,.892445,.856817,-.221308,.321764,.936263,.877609,-.205996,.288118,.982401,.897489,-.186702,.253277,1.02975,.913792,-.164618,.217963,1.07488,.92785,-.140023,.183221,1.11487,.940378,-.11328,.149385,1.14947,.95273,-.0853958,.114152,1.1807,.969059,-.0568698,.0769845,1.20912,.985574,-.0276502,.0381186,1.23498,.999943,.00239052,-.00126861,1.25987,.0852715,-560067e-11,.279021,171162e-11,.0854143,-140871e-9,.279483,430516e-10,.0854191,-563385e-9,.2795,172184e-9,.0854188,-.00126753,.279493,387464e-9,.0854229,-.00225337,.279501,68918e-8,.0854443,-.00352086,.279549,.00107803,.0854697,-.00506962,.279591,.00155536,.0855093,-.00689873,.279652,.00212354,.0855724,-.00900821,.279752,.00278703,.0856991,-.0113799,.280011,.0035551,.085855,-.0140314,.280297,.00443449,.0860682,-.016963,.280682,.00543636,.086344,-.0201438,.281159,.0065788,.0867426,-.0235999,.281886,.00787977,.087239,-.0273069,.282745,.0093606,.0879815,-.031269,.284139,.011056,.0891258,-.035531,.28647,.0130065,.0906909,-.0400947,.289708,.0152495,.0927624,-.0449638,.293904,.0178454,.0958376,-.0502427,.300471,.0208915,.0995827,-.0559514,.30806,.0244247,.104526,-.0622152,.317874,.0285721,.110532,-.0690046,.329332,.0334227,.117385,-.0763068,.341217,.0390466,.12522,-.084184,.353968,.0455786,.134037,-.0925248,.366797,.0530773,.144014,-.101487,.380209,.0617424,.156013,-.111273,.395956,.071777,.168872,-.121431,.41053,.0830905,.183089,-.132105,.425073,.0959341,.198763,-.143286,.439833,.110448,.216159,-.154841,.454507,.126769,.234859,-.166588,.468368,.14495,.255879,-.178626,.482846,.165233,.27677,-.190218,.493489,.187217,.301184,-.202227,.506549,.211659,.325852,-.213764,.5158,.237922,.352824,-.22487,.525442,.26632,.380882,-.235246,.532487,.296691,.410137,-.244847,.537703,.329179,.439787,-.253122,.540361,.363135,.472291,-.260517,.542734,.399222,.501856,-.266519,.538826,.436352,.534816,-.270905,.535152,.474505,.565069,-.273826,.525979,.513988,.597154,-.275333,.516394,.554852,.630473,-.275314,.506206,.596592,.660574,-.273323,.489769,.638117,.692015,-.270008,.472578,.680457,.720647,-.265001,.452134,.723008,.750528,-.258311,.430344,.765954,.777568,-.250046,.405624,.809012,.80387,-.240114,.378339,.852425,.828439,-.228737,.349877,.895346,.851472,-.216632,.318968,.940695,.873906,-.202782,.287489,.987235,.89467,-.187059,.254394,1.03348,.912281,-.168818,.221294,1.07812,.927358,-.146494,.18675,1.11928,.940385,-.120009,.152322,1.15609,.952672,-.0917183,.117514,1.18875,.968496,-.0620321,.0797405,1.21821,.985236,-.0314945,.0402383,1.24523,.99998,-575153e-9,110644e-9,1.27133,.0702429,-512222e-11,.255273,140947e-11,.0702981,-128826e-9,.255469,354488e-10,.0703691,-515562e-9,.255727,141874e-9,.0703805,-.00116,.255754,31929e-8,.0703961,-.00206224,.255813,567999e-9,.0704102,-.00322223,.255839,88871e-8,.0704298,-.00463928,.255863,.00128272,.0704759,-.00631375,.255953,.00175283,.0705434,-.00824317,.256079,.00230342,.0706693,-.010412,.25636,.0029443,.0708189,-.0128439,.256647,.00368031,.0710364,-.0155177,.257084,.00452614,.0713223,-.0184374,.257637,.00549706,.0717182,-.0216002,.258416,.00661246,.072321,-.0249966,.259699,.00790147,.0731446,-.0286566,.261475,.0093884,.0743352,-.0325888,.264132,.0111186,.0760676,-.036843,.26815,.013145,.078454,-.0414292,.273636,.0155251,.0818618,-.0464634,.281653,.0183525,.0857382,-.0519478,.289992,.0216642,.0908131,-.0579836,.30066,.0255956,.0967512,-.0645124,.312204,.0301954,.103717,-.0716505,.325001,.0356017,.111596,-.0793232,.338129,.041896,.120933,-.087645,.352853,.0492447,.130787,-.096492,.366192,.0576749,.142311,-.105973,.380864,.0673969,.155344,-.116182,.396575,.0785899,.169535,-.126815,.411443,.0912377,.185173,-.138015,.426256,.105607,.201755,-.149325,.439607,.121551,.221334,-.161207,.455467,.139608,.241461,-.173162,.469096,.159591,.26294,-.18504,.481014,.18156,.286776,-.196881,.493291,.205781,.311596,-.208311,.503556,.231819,.338667,-.219671,.513268,.260274,.366021,-.230451,.519414,.290862,.395875,-.240131,.526766,.323196,.425564,-.248566,.52905,.357071,.457094,-.256195,.530796,.393262,.488286,-.262331,.528703,.430797,.522291,-.267141,.52727,.470231,.554172,-.270411,.519848,.510477,.586427,-.271986,.510307,.551594,.619638,-.27192,.499158,.593849,.650656,-.269817,.483852,.636314,.68284,-.266267,.467515,.679679,.714356,-.26113,.44931,.723884,.742717,-.254067,.425789,.767245,.770894,-.245652,.401144,.811819,.797358,-.235554,.374224,.856315,.823377,-.223896,.346167,.901077,.847456,-.210865,.316056,.946502,.870697,-.196574,.284503,.993711,.891068,-.180814,.251628,1.04134,.909267,-.163314,.219065,1.08609,.925653,-.143304,.186446,1.12702,.940017,-.121322,.153416,1.16371,.952398,-.0973872,.120334,1.19712,.967568,-.0698785,.08352,1.22791,.984772,-.0390031,.0439209,1.25672,1.00026,-.0070087,.00315668,1.28428,.0556653,-459654e-11,.227325,112556e-11,.0565238,-116382e-9,.230826,284985e-10,.0565717,-465666e-9,.231026,114036e-9,.0565859,-.00104773,.231079,256656e-9,.0565761,-.00186255,.231025,45663e-8,.0565913,-.00291002,.231058,714664e-9,.0566108,-.00418998,.231085,.00103224,.0566532,-.00570206,.231169,.00141202,.0567473,-.00743666,.231417,.00186018,.0568567,-.00940298,.231661,.00238264,.0569859,-.0115991,.231895,.00298699,.0572221,-.0140096,.232456,.00368957,.057519,-.0166508,.233096,.00450303,.0579534,-.01951,.234094,.00544945,.0585922,-.0225991,.235629,.00655564,.0595647,-.0259416,.238106,.00785724,.0609109,-.0295661,.241557,.00939127,.0628751,-.0335126,.246652,.0112198,.0656908,-.0378604,.254091,.0134168,.0691347,-.0426543,.262666,.0160374,.0732165,-.0478967,.272029,.0191514,.0782863,-.0536716,.283007,.0228597,.0843973,-.0600683,.295732,.0272829,.0913598,-.0670095,.308779,.032484,.0994407,-.0745516,.322886,.0385886,.108189,-.082712,.336408,.0457133,.118574,-.0914927,.351692,.0539832,.129989,-.100854,.366502,.0635162,.142722,-.110837,.381675,.0744386,.156654,-.121353,.3963,.0868483,.172151,-.132414,.411477,.100963,.188712,-.143809,.42508,.116795,.208093,-.155765,.441328,.134715,.227936,-.167608,.454328,.154396,.249495,-.179579,.467235,.176179,.27362,-.191488,.480248,.200193,.296371,-.202618,.487886,.225775,.324234,-.214133,.499632,.25441,.353049,-.225212,.509532,.285077,.381785,-.234875,.514265,.317047,.414038,-.244205,.521282,.351874,.445251,-.252145,.522931,.388279,.476819,-.258433,.520947,.425825,.509209,-.263411,.517669,.465104,.542759,-.266732,.512841,.505741,.574822,-.268263,.503317,.547611,.609324,-.268489,.493035,.590953,.641772,-.266941,.478816,.63488,.674049,-.263297,.462863,.679072,.705071,-.257618,.442931,.723487,.734709,-.250625,.421299,.768708,.763704,-.24179,.397085,.814375,.791818,-.231115,.370577,.859907,.817439,-.21922,.34232,.906715,.843202,-.205658,.312627,.953943,.866639,-.190563,.280933,1.00185,.888129,-.173978,.248393,1.05105,.907239,-.155485,.216007,1.09704,.923893,-.134782,.183233,1.13857,.938882,-.11249,.150376,1.17539,.952464,-.0890706,.117177,1.20924,.968529,-.0646523,.0813095,1.24055,.984763,-.038606,.0439378,1.27018,1.00053,-.01238,.00598668,1.29873,.0437928,-409594e-11,.204012,8.79224e-7,.0440166,-103395e-9,.205049,221946e-10,.0440529,-413633e-9,.205225,887981e-10,.0440493,-930594e-9,.2052,199858e-9,.0439884,-.00165352,.204901,355495e-9,.0440716,-.0025849,.205255,556983e-9,.0440968,-.00372222,.205311,805326e-9,.0441359,-.00506478,.205391,.00110333,.0442231,-.00660384,.205638,.00145768,.0443254,-.00835246,.205877,.00187275,.0444832,-.0102992,.20627,.00235938,.0447001,-.0124449,.206796,.0029299,.0450168,-.0147935,.207593,.0036005,.0454816,-.017336,.208819,.00439246,.0462446,-.0201156,.211036,.00533864,.0473694,-.0231568,.214388,.00646984,.0490191,-.0264941,.219357,.00783856,.0512776,-.030184,.226061,.00950182,.0541279,-.0342661,.234094,.0115156,.0578989,-.0388539,.244297,.0139687,.0620835,-.0438735,.254457,.0169015,.0673497,-.04951,.266706,.0204554,.0731759,-.0556263,.278753,.0246606,.0803937,-.0624585,.29309,.0297126,.0879287,-.0697556,.305856,.0355868,.0970669,-.0778795,.321059,.0425768,.106508,-.0863541,.333873,.05056,.11776,-.0955935,.349008,.0598972,.130081,-.105438,.363776,.0706314,.144454,-.115899,.380112,.0828822,.1596,-.126827,.394843,.0967611,.176097,-.138161,.409033,.112381,.194726,-.149904,.424257,.129952,.213944,-.161675,.436945,.149333,.235516,-.173659,.450176,.170892,.260564,-.185963,.466305,.194984,.285183,-.197582,.477328,.220805,.311095,-.208697,.486566,.248694,.338924,-.219519,.494811,.279015,.369757,-.229766,.504065,.311725,.3996,-.238879,.507909,.345844,.430484,-.246802,.509805,.381749,.46413,-.253924,.511436,.420251,.497077,-.259319,.508787,.459957,.530434,-.263297,.50394,.501356,.565725,-.265619,.49804,.544252,.599254,-.265842,.487346,.587856,.631251,-.263978,.472975,.631969,.663972,-.26043,.457135,.677471,.697724,-.255358,.439844,.723744,.727725,-.248308,.417872,.770653,.756417,-.239181,.39273,.817357,.785419,-.22814,.367839,.864221,.81266,-.215681,.339449,.912701,.839391,-.201623,.309279,.962419,.86366,-.185624,.278029,1.0122,.885028,-.16797,.245294,1.06186,.904639,-.148336,.212689,1.10934,.922048,-.12637,.179616,1.15063,.936952,-.102928,.146749,1.18885,.951895,-.0785268,.112733,1.22352,.967198,-.0530153,.0760056,1.25681,.984405,-.02649,.0383183,1.28762,1.00021,70019e-8,-20039e-8,1.31656,.0325964,-355447e-11,.176706,6.55682e-7,.0329333,-899174e-10,.178527,165869e-10,.0329181,-359637e-9,.178453,663498e-10,.0329085,-808991e-9,.178383,149332e-9,.0329181,-.00143826,.178394,265873e-9,.0329425,-.00224678,.178517,416597e-9,.0329511,-.00323575,.17849,603299e-9,.033011,-.00439875,.178695,829422e-9,.0330733,-.00574059,.178843,.00109908,.0331857,-.00725896,.179176,.00141933,.0333445,-.00895289,.179618,.0017999,.0335674,-.0108219,.180238,.00225316,.033939,-.0128687,.181417,.00279765,.0345239,-.015114,.183395,.0034564,.0354458,-.017596,.186616,.00425864,.0368313,-.0203524,.191547,.00524936,.0386115,-.0234105,.197508,.00647033,.0410303,-.0268509,.205395,.00798121,.0442245,-.0307481,.215365,.0098557,.0478659,-.0350863,.225595,.0121417,.0522416,-.0399506,.236946,.0149385,.0574513,-.045357,.249442,.0183189,.0631208,-.0512863,.261222,.0223644,.0701124,-.0579273,.275418,.0272418,.0777331,-.0650652,.288989,.0329458,.0862709,-.0728813,.302546,.0396819,.096103,-.081363,.317164,.04757,.106976,-.0904463,.331733,.0567012,.119175,-.100105,.34661,.067202,.132919,-.110375,.362249,.0792588,.147727,-.121115,.376978,.0928672,.163618,-.132299,.390681,.108228,.182234,-.143887,.406571,.125502,.201809,-.155827,.42042,.144836,.225041,-.168357,.438411,.166706,.247621,-.18004,.450368,.189909,.27097,-.191536,.460083,.215251,.296658,-.203024,.469765,.243164,.325892,-.214056,.481837,.273388,.35406,-.224104,.487474,.305344,.384372,-.233489,.492773,.339741,.41749,-.241874,.498451,.376287,.45013,-.248834,.499632,.414195,.481285,-.254658,.495233,.454077,.519183,-.259367,.496401,.496352,.551544,-.261818,.487686,.538798,.587349,-.262964,.479453,.583626,.621679,-.262128,.467709,.629451,.654991,-.258998,.452123,.67566,.686873,-.254119,.433495,.723248,.719801,-.246946,.413657,.771156,.750355,-.237709,.390366,.81989,.780033,-.226549,.364947,.868601,.809254,-.214186,.337256,.920034,.836576,-.199639,.307395,.971706,.861774,-.183169,.275431,1.02479,.885707,-.165111,.243431,1.07837,.904742,-.144363,.210921,1.12783,.915604,-.121305,.17647,1.17254,.930959,-.0962119,.143106,1.21012,.948404,-.069969,.108112,1.24474,.967012,-.0427586,.0708478,1.27718,.984183,-.0147043,.032335,1.3083,.999577,.0142165,-.00726867,1.3382,.0229227,-299799e-11,.148623,4.62391e-7,.0232194,-758796e-10,.15054,117033e-10,.0232315,-303636e-9,.15063,468397e-10,.0232354,-683189e-9,.150624,105472e-9,.0232092,-.0012136,.150445,187744e-9,.0232523,-.00189765,.150679,294847e-9,.0232828,-.00273247,.150789,428013e-9,.0233371,-.00371287,.150995,591134e-9,.0234015,-.00484794,.15118,787642e-9,.023514,-.00612877,.151562,.00102547,.023679,-.00756125,.152116,.00131351,.0239559,-.00914651,.153162,.00166594,.0244334,-.010904,.155133,.00210182,.025139,-.0128615,.158035,.00264406,.0262598,-.0150628,.162751,.00332923,.0277875,-.0175532,.168944,.00419773,.0298472,-.0203981,.176835,.00530034,.0325444,-.023655,.186686,.00669777,.0355581,-.0272982,.196248,.00842661,.0392841,-.0314457,.207352,.0105854,.0436815,-.0361157,.219279,.0132458,.0485272,-.0412932,.230728,.0164736,.0541574,-.0470337,.242994,.0203715,.0609479,-.0535002,.257042,.0250953,.0685228,-.0605409,.27102,.0306856,.0768042,-.0680553,.28406,.037193,.0864844,-.0765011,.299186,.0449795,.0969415,-.0852674,.3132,.0538316,.108478,-.0947333,.327138,.0641149,.121705,-.10481,.342345,.0759185,.136743,-.115474,.358472,.0894116,.152986,-.126536,.374067,.104562,.170397,-.138061,.388267,.121632,.191392,-.150203,.406467,.140996,.211566,-.161751,.418641,.161696,.233567,-.173407,.430418,.184557,.257769,-.185397,.44277,.210092,.28531,-.197048,.457191,.237827,.311726,-.20784,.464712,.267253,.340537,-.218345,.472539,.299332,.372921,-.228306,.482331,.333988,.402924,-.236665,.484378,.369722,.434475,-.244097,.484717,.407836,.469736,-.250547,.487093,.448465,.505045,-.25511,.485575,.490263,.540262,-.258444,.481225,.534495,.576347,-.259903,.473481,.579451,.608656,-.259572,.4603,.625604,.646679,-.257908,.450341,.674511,.679902,-.253663,.431561,.723269,.714159,-.247419,.412684,.773263,.745345,-.239122,.389388,.824182,.778248,-.228837,.365361,.876634,.807208,-.216197,.337667,.92945,.835019,-.201772,.307197,.985261,.860261,-.185291,.274205,1.04299,.877601,-.165809,.240178,1.09816,.898211,-.143897,.207571,1.14694,.915789,-.119513,.174904,1.19008,.931831,-.0932919,.141423,1.2297,.949244,-.0656528,.105603,1.26553,.967527,-.0370262,.0679551,1.29986,.984139,-.00730117,.0283133,1.33252,.999713,.0234648,-.0121785,1.36397,.0152135,-245447e-11,.122795,3.04092e-7,.0151652,-615778e-10,.122399,76292e-10,.0151181,-245948e-9,.122023,304802e-10,.0151203,-553394e-9,.12203,686634e-10,.015125,-983841e-9,.122037,122463e-9,.0151427,-.00153774,.12214,192706e-9,.0151708,-.0022103,.122237,281219e-9,.0152115,-.00300741,.12238,390804e-9,.0152877,-.00392494,.1227,526317e-9,.015412,-.00496597,.123244,69443e-8,.0156201,-.00613314,.124228,90547e-8,.0159658,-.00744113,.125945,.0011732,.0165674,-.00892546,.129098,.00151888,.017487,-.010627,.133865,.00197007,.018839,-.0126043,.140682,.0025637,.020554,-.0148814,.148534,.00333637,.0226727,-.0175123,.157381,.00433738,.0251879,-.0205266,.166685,.00561664,.0283635,-.0240319,.177796,.00725563,.0318694,-.0279432,.188251,.00928811,.0361044,-.0324313,.200038,.011835,.0406656,-.0373527,.210685,.0149146,.0463846,-.0430132,.224182,.0187254,.0525696,-.0491013,.23634,.0232283,.0598083,-.0559175,.250013,.0286521,.0679437,-.0633657,.263981,.0350634,.0771181,-.0714602,.278072,.0425882,.0881273,-.0803502,.29511,.0514487,.0996628,-.0896903,.309976,.0615766,.112702,-.099644,.325611,.0732139,.126488,-.109829,.339321,.0862324,.142625,-.120859,.35574,.101275,.15953,-.131956,.369845,.117892,.176991,-.143145,.38146,.136205,.199715,-.155292,.40052,.157252,.220787,-.167066,.412055,.179966,.243697,-.178396,.423133,.204418,.272106,-.190433,.439524,.232141,.297637,-.201265,.447041,.261109,.325273,-.211834,.454488,.292627,.357219,-.221889,.465004,.326669,.387362,-.230729,.468527,.362426,.423131,-.23924,.475836,.401533,.45543,-.246067,.475017,.441902,.493393,-.251557,.478017,.484239,.526253,-.255571,.4709,.528586,.560554,-.257752,.463167,.574346,.599306,-.258076,.456452,.621655,.634541,-.256471,.443725,.670492,.668907,-.253283,.428719,.721943,.705619,-.247562,.411348,.772477,.739034,-.240626,.388939,.8264,.771408,-.231493,.36425,.881702,.803312,-.220125,.337321,.9385,.828457,-.206645,.305364,.997437,.854819,-.190664,.273715,1.05693,.878666,-.171429,.242218,1.11251,.898404,-.149235,.209556,1.16398,.917416,-.12435,.176863,1.21014,.933133,-.0972703,.142775,1.25178,.95066,-.0683607,.106735,1.29028,.968589,-.0378724,.0681609,1.32703,.984776,-.00605712,.0273966,1.36158,.99994,.0263276,-.0138124,1.3943,.00867437,-186005e-11,.0928979,1.73682e-7,.00864003,-466389e-10,.0925237,435505e-11,.00864593,-186594e-9,.0925806,174322e-10,.00864095,-419639e-9,.0924903,392862e-10,.00863851,-746272e-9,.0924589,702598e-10,.00868531,-.00116456,.0929,111188e-9,.00869667,-.00167711,.0928529,163867e-9,.00874332,-.00228051,.0930914,23104e-8,.00882709,-.00297864,.0935679,31741e-8,.00898874,-.00377557,.0946165,430186e-9,.00929346,-.00469247,.0967406,580383e-9,.00978271,-.00575491,.100084,783529e-9,.0105746,-.00701514,.105447,.00106304,.0116949,-.00851797,.112494,.00144685,.0130419,-.0102757,.119876,.00196439,.0148375,-.012381,.129034,.00266433,.0168725,-.01482,.137812,.00358364,.0193689,-.0176563,.147696,.00478132,.0222691,-.0209211,.157795,.00631721,.0256891,-.0246655,.168431,.00826346,.0294686,-.0288597,.178587,.0106714,.0340412,-.0336441,.190251,.0136629,.0393918,-.039033,.202999,.0173272,.0453947,-.0450087,.215655,.0217448,.0521936,-.0515461,.228686,.0269941,.0600279,-.058817,.242838,.033272,.0692398,-.0667228,.258145,.0406457,.0793832,-.0752401,.273565,.0492239,.0902297,-.0841851,.287735,.0590105,.102014,-.0936479,.301161,.0702021,.116054,-.103967,.317438,.0832001,.13191,-.114622,.334166,.0977951,.148239,-.125452,.348192,.113985,.165809,-.136453,.361094,.131928,.184616,-.147648,.373534,.151811,.207491,-.159607,.39101,.174476,.230106,-.171119,.402504,.198798,.257036,-.182906,.418032,.225796,.281172,-.193605,.425468,.254027,.312034,-.204771,.440379,.285713,.340402,-.214988,.445406,.319196,.370231,-.224711,.44968,.35537,.407105,-.233516,.460747,.393838,.439037,-.240801,.460624,.433747,.47781,-.24762,.465957,.477234,.510655,-.251823,.460054,.52044,.550584,-.255552,.459172,.567853,.585872,-.257036,.450311,.615943,.620466,-.257535,.437763,.667693,.660496,-.255248,.426639,.718988,.695578,-.251141,.409185,.772503,.732176,-.244718,.39015,.827023,.760782,-.236782,.362594,.885651,.79422,-.225923,.33711,.943756,.824521,-.213855,.308272,1.00874,.854964,-.197723,.278529,1.06764,.878065,-.179209,.246208,1.12836,.899834,-.157569,.21329,1.18318,.918815,-.133206,.181038,1.23161,.934934,-.106545,.146993,1.27644,.952115,-.0780574,.111175,1.31842,.96906,-.0478279,.0728553,1.35839,.985178,-.0160014,.032579,1.39697,1.00039,.0173126,-.0095256,1.43312,.00384146,-124311e-11,.0613583,7.78271e-8,.00390023,-314043e-10,.0622919,196626e-11,.00389971,-125622e-9,.0622632,787379e-11,.00389491,-282352e-9,.0620659,1778e-8,.00391618,-502512e-9,.0624687,320918e-10,.00392662,-784458e-9,.0625113,515573e-10,.00396053,-.00112907,.0628175,778668e-10,.00401911,-.00153821,.0633286,113811e-9,.00414994,-.0020208,.0646443,16445e-8,.00441223,-.00260007,.0673886,237734e-9,.00484427,-.0033097,.0716528,345929e-9,.00549109,-.00418966,.0774998,505987e-9,.00636293,-.00527331,.0844758,739208e-9,.00746566,-.00660428,.0921325,.00107347,.00876625,-.00818826,.0997067,.00153691,.0103125,-.0100811,.107433,.00217153,.0123309,-.0123643,.117088,.00303427,.0146274,-.0150007,.126438,.00416018,.0172295,-.0180531,.135672,.00561513,.0204248,-.0215962,.146244,.007478,.0241597,-.0256234,.157481,.00981046,.0284693,-.0302209,.169125,.0127148,.033445,-.0353333,.181659,.0162453,.0391251,-.0410845,.1944,.0205417,.0454721,-.0473451,.207082,.0256333,.0530983,-.0542858,.221656,.0317036,.0615356,-.0618384,.236036,.0388319,.0703363,-.0697631,.248398,.046974,.0810391,-.0784757,.263611,.0565246,.0920144,-.0873488,.275857,.0671724,.105584,-.0973652,.292555,.0798105,.119506,-.107271,.306333,.0935945,.134434,-.117608,.318888,.109106,.153399,-.128938,.337552,.127074,.171258,-.139944,.349955,.14643,.191059,-.151288,.361545,.168,.215069,-.163018,.378421,.192082,.237838,-.174226,.38879,.217838,.266965,-.186063,.405857,.246931,.292827,-.196909,.414146,.277505,.324352,-.207473,.426955,.310711,.354427,-.217713,.433429,.346794,.389854,-.227183,.443966,.385237,.420749,-.235131,.44471,.424955,.459597,-.242786,.451729,.468446,.495316,-.248767,.45072,.513422,.534903,-.253351,.450924,.560618,.572369,-.256277,.445266,.609677,.612383,-.2576,.438798,.660995,.644037,-.256931,.421693,.713807,.686749,-.254036,.4109,.767616,.719814,-.249785,.390151,.82533,.754719,-.244283,.367847,.888311,.792022,-.235076,.345013,.948177,.822404,-.225061,.316193,1.01661,.853084,-.211113,.287013,1.08075,.879871,-.19449,.255424,1.14501,.901655,-.174023,.222879,1.20203,.919957,-.1509,.18989,1.25698,.938412,-.124923,.15606,1.30588,.953471,-.0968139,.120512,1.3529,.970451,-.066734,.0828515,1.3986,.985522,-.034734,.0424458,1.44148,1.00099,-.00102222,678929e-9,1.48398,965494e-9,-6.27338e-7,.0306409,1.97672e-8,99168e-8,-158573e-10,.0314638,4.99803e-7,991068e-9,-634012e-10,.031363,200682e-11,974567e-9,-14144e-8,.03036,457312e-11,998079e-9,-252812e-9,.031496,860131e-11,.00102243,-396506e-9,.0319955,148288e-10,.00107877,-577593e-9,.0331376,249141e-10,.00121622,-816816e-9,.0359396,423011e-10,.0014455,-.00113761,.0399652,724613e-10,.00178791,-.00156959,.0450556,123929e-9,.00225668,-.00214064,.0508025,208531e-9,.00285627,-.00287655,.0568443,341969e-9,.0035991,-.00380271,.0630892,544158e-9,.00455524,-.00496264,.0702204,842423e-9,.00569143,-.0063793,.0773426,.00126704,.00716928,-.00813531,.0860839,.00186642,.00885307,-.0101946,.0944079,.00267014,.0109316,-.0126386,.103951,.00374033,.0133704,-.0154876,.113786,.0051304,.0161525,-.0187317,.123477,.00688858,.0194267,-.0224652,.133986,.00910557,.0230967,-.0265976,.143979,.0118074,.0273627,-.0312848,.154645,.0151266,.0323898,-.0365949,.166765,.0191791,.0379225,-.0422914,.177932,.0239236,.0447501,-.0487469,.19167,.0296568,.0519391,-.0556398,.203224,.0362924,.0599464,-.0631646,.215652,.0440585,.0702427,-.0714308,.232089,.0531619,.0806902,-.0800605,.245258,.0634564,.0923194,-.0892815,.258609,.0752481,.106938,-.09931,.276654,.0888914,.121238,-.109575,.289847,.104055,.138817,-.120461,.307566,.121266,.15595,-.131209,.320117,.139944,.178418,-.143049,.339677,.161591,.197875,-.154074,.349886,.184303,.224368,-.166307,.369352,.210669,.252213,-.178051,.386242,.238895,.277321,-.189335,.395294,.269182,.310332,-.200683,.412148,.302508,.338809,-.210856,.418266,.337264,.372678,-.220655,.428723,.374881,.405632,-.230053,.433887,.415656,.442293,-.237993,.439911,.457982,.477256,-.244897,.440175,.502831,.515592,-.250657,.441079,.550277,.550969,-.255459,.435219,.601102,.592883,-.257696,.432882,.651785,.629092,-.259894,.421054,.708961,.672033,-.258592,.41177,.763806,.709147,-.256525,.395267,.824249,.745367,-.254677,.375013,.8951,.784715,-.247892,.353906,.959317,.818107,-.240162,.327801,1.03153,.847895,-.229741,.298821,1.10601,.879603,-.213084,.269115,1.164,.902605,-.195242,.236606,1.22854,.922788,-.174505,.203442,1.29017,.944831,-.150169,.169594,1.34157,.959656,-.124099,.135909,1.3956,.972399,-.0960626,.0990563,1.45128,.986549,-.0657097,.0602348,1.50312,1.00013,-.0333558,.0186694,1.55364,619747e-11,-1e-7,.00778326,796756e-16,2.37499e-8,-9.99999e-8,282592e-10,1.14596e-10,100292e-11,-166369e-11,250354e-9,6.77492e-9,350752e-11,-637769e-11,357289e-9,6.31655e-8,826445e-11,-174689e-10,516179e-9,3.1851e-7,242481e-10,-450868e-10,.0010223,130577e-11,455631e-10,-89044e-9,.00144302,374587e-11,971222e-10,-178311e-9,.00241912,102584e-10,171403e-9,-313976e-9,.00354938,236481e-10,292747e-9,-520026e-9,.00513765,496014e-10,789827e-9,-.00118187,.0238621,139056e-9,.00114093,-.00171827,.0286691,244093e-9,.00176119,-.00249667,.0368565,420623e-9,.0022233,-.00333742,.0400469,65673e-8,.00343382,-.00481976,.0535751,.00109323,.00427602,-.00600755,.057099,.00155268,.00461435,-.00737637,.0551084,.00215031,.00695698,-.00971401,.0715767,.00316529,.00867619,-.0120943,.0793314,.00436995,.0106694,-.0148202,.0869391,.0058959,.0140351,-.0183501,.101572,.00798757,.0168939,-.022006,.11018,.0104233,.020197,-.0261568,.119041,.0134167,.0254702,-.0312778,.135404,.0173009,.0298384,-.0362469,.1437,.0215428,.035159,-.042237,.15512,.0268882,.0427685,-.0488711,.17128,.033235,.0494848,-.0557997,.181813,.0404443,.0592394,-.0635578,.198745,.0490043,.0681463,-.071838,.210497,.0588239,.0804753,-.0809297,.228864,.0702835,.0942205,-.0906488,.247008,.0834012,.106777,-.100216,.258812,.0975952,.124471,-.110827,.278617,.114162,.138389,-.121193,.287049,.131983,.159543,-.13253,.307151,.152541,.176432,-.143611,.31564,.174673,.201723,-.15548,.33538,.199842,.229721,-.167166,.355256,.227097,.250206,-.178238,.360047,.256014,.282118,-.189905,.378761,.28855,.312821,-.201033,.39181,.323348,.341482,-.211584,.397716,.360564,.377368,-.221314,.410141,.400004,.418229,-.230474,.423485,.442371,.444881,-.239443,.418874,.488796,.488899,-.245987,.427545,.535012,.520317,-.253948,.422147,.589678,.568566,-.256616,.42719,.637683,.599607,-.26376,.415114,.703363,.64222,-.268687,.408715,.771363,.685698,-.2694,.399722,.83574,.732327,-.266642,.388651,.897764,.769873,-.267712,.369198,.983312,.806733,-.263479,.346802,1.06222,.843466,-.254575,.321368,1.13477,.873008,-.242749,.29211,1.20712,.908438,-.22725,.262143,1.27465,.936321,-.207621,.228876,1.33203,.950353,-.187932,.19484,1.40439,.96442,-.165154,.163178,1.4732,.979856,-.139302,.127531,1.53574,.982561,-.11134,.0903457,1.59982,.996389,-.0808124,.0489007,1.6577],t=[1,0,0,0,1,791421e-36,0,0,1,104392e-29,0,0,1,349405e-26,0,0,1,109923e-23,0,0,1,947414e-22,0,0,1,359627e-20,0,0,1,772053e-19,0,0,1,108799e-17,0,0,1,110655e-16,0,0,1,865818e-16,0,0,.999998,5.45037e-10,0,0,.999994,2.85095e-9,0,0,.999989,1.26931e-8,0,0,.999973,4.89938e-8,0,0,.999947,1.66347e-7,0,0,.999894,5.02694e-7,0,0,.999798,136532e-11,0,0,.999617,335898e-11,0,0,.999234,752126e-11,0,0,.998258,152586e-10,0,0,.99504,266207e-10,0,0,.980816,236802e-10,0,0,.967553,207684e-11,0,0,.966877,403733e-11,0,0,.965752,741174e-11,0,0,.96382,127746e-10,0,0,.960306,202792e-10,0,0,.953619,280232e-10,0,0,.941103,278816e-10,0,0,.926619,160221e-10,0,0,.920983,235164e-10,0,0,.912293,311924e-10,0,.0158731,.899277,348118e-10,0,.0476191,.880884,26041e-9,0,.0793651,.870399,338726e-10,0,.111111,.856138,392906e-10,0,.142857,.837436,372874e-10,0,.174603,.820973,392558e-10,0,.206349,.803583,434658e-10,0,.238095,.782168,40256e-9,0,.269841,.764107,448159e-10,0,.301587,.743092,457627e-10,0,.333333,.721626,455314e-10,0,.365079,.700375,477335e-10,0,.396825,.677334,461072e-10,0,.428571,.655702,484393e-10,0,.460317,.632059,464583e-10,0,.492064,.610125,483923e-10,0,.52381,.58653,464342e-10,0,.555556,.564508,477033e-10,0,.587302,.541405,459263e-10,0,.619048,.519556,46412e-9,0,.650794,.497292,448913e-10,0,.68254,.475898,445789e-10,0,.714286,.454722,433496e-10,0,.746032,.434042,423054e-10,0,.777778,.414126,413737e-10,0,.809524,.394387,397265e-10,0,.84127,.375841,390709e-10,0,.873016,.357219,369938e-10,0,.904762,.340084,365618e-10,0,.936508,.322714,342533e-10,0,.968254,.306974,339596e-10,0,1,1,101524e-23,0,0,1,10292e-22,0,0,1,130908e-23,0,0,1,473331e-23,0,0,1,625319e-22,0,0,1,107932e-20,0,0,1,163779e-19,0,0,1,203198e-18,0,0,1,204717e-17,0,0,.999999,168995e-16,0,0,.999998,1.15855e-10,0,0,.999996,6.6947e-10,0,0,.999991,3.30863e-9,0,0,.999983,1.41737e-8,0,0,.999968,5.32626e-8,0,0,.99994,1.77431e-7,0,0,.999891,5.28835e-7,0,0,.999797,142169e-11,0,0,.999617,347057e-11,0,0,.999227,77231e-10,0,0,.998239,155753e-10,0,0,.994937,268495e-10,0,0,.980225,213742e-10,0,0,.967549,21631e-10,0,0,.966865,417989e-11,0,0,.965739,763341e-11,0,0,.963794,130892e-10,0,0,.960244,206456e-10,0,0,.953495,282016e-10,0,148105e-9,.940876,271581e-10,0,.002454,.926569,164159e-10,0,.00867491,.920905,239521e-10,0,.01956,.912169,315127e-10,0,.035433,.899095,346626e-10,0,.056294,.882209,290223e-10,0,.0818191,.870272,342992e-10,0,.111259,.855977,394164e-10,0,.142857,.837431,372343e-10,0,.174603,.820826,396691e-10,0,.206349,.803408,435395e-10,0,.238095,.782838,419579e-10,0,.269841,.763941,450953e-10,0,.301587,.742904,455847e-10,0,.333333,.721463,458833e-10,0,.365079,.700197,477159e-10,0,.396825,.677501,470641e-10,0,.428571,.655527,484732e-10,0,.460317,.6324,476834e-10,0,.492064,.609964,484213e-10,0,.52381,.586839,475541e-10,0,.555556,.564353,476951e-10,0,.587302,.541589,467611e-10,0,.619048,.519413,463493e-10,0,.650794,.497337,453994e-10,0,.68254,.475797,445308e-10,0,.714286,.454659,435787e-10,0,.746032,.434065,424839e-10,0,.777778,.414018,41436e-9,0,.809524,.39455,401902e-10,0,.84127,.375742,390813e-10,0,.873016,.357501,377116e-10,0,.904762,.339996,36535e-9,0,.936508,.323069,351265e-10,0,.968254,.306897,339112e-10,0,1,1,10396e-19,0,0,1,104326e-20,0,0,1,110153e-20,0,0,1,144668e-20,0,0,1,34528e-19,0,0,1,175958e-19,0,0,1,12627e-17,0,0,1,936074e-18,0,0,1,645742e-17,0,0,.999998,401228e-16,0,0,.999997,2.22338e-10,0,0,.999995,1.0967e-9,0,0,.999991,4.82132e-9,0,0,.999981,1.89434e-8,0,0,.999967,6.67716e-8,0,0,.999938,2.12066e-7,0,0,.999886,6.0977e-7,0,0,.999792,159504e-11,0,0,.999608,381191e-11,0,0,.999209,833727e-11,0,0,.998179,165288e-10,0,0,.994605,274387e-10,0,0,.979468,167316e-10,0,0,.967529,242877e-11,0,0,.966836,461696e-11,0,0,.96569,830977e-11,0,0,.963706,140427e-10,0,244659e-11,.960063,217353e-10,0,760774e-9,.953113,286606e-10,0,.00367261,.940192,247691e-10,0,.00940263,.927731,195814e-10,0,.018333,.920669,252531e-10,0,.0306825,.911799,324277e-10,0,.0465556,.89857,340982e-10,0,.0659521,.883283,319622e-10,0,.0887677,.86989,35548e-9,0,.114784,.855483,397143e-10,0,.143618,.837987,391665e-10,0,.174606,.820546,411306e-10,0,.206349,.802878,436753e-10,0,.238095,.783402,444e-7,0,.269841,.763439,458726e-10,0,.301587,.742925,467097e-10,0,.333333,.721633,478887e-10,0,.365079,.69985,481251e-10,0,.396825,.67783,491811e-10,0,.428571,.655126,488199e-10,0,.460318,.632697,496025e-10,0,.492064,.609613,48829e-9,0,.52381,.587098,492754e-10,0,.555556,.564119,482625e-10,0,.587302,.541813,482807e-10,0,.619048,.519342,471552e-10,0,.650794,.497514,466765e-10,0,.68254,.475879,455582e-10,0,.714286,.454789,446007e-10,0,.746032,.434217,435382e-10,0,.777778,.414086,421753e-10,0,.809524,.394744,412093e-10,0,.84127,.375782,396634e-10,0,.873016,.357707,386419e-10,0,.904762,.340038,370345e-10,0,.936508,.323284,359725e-10,0,.968254,.306954,3436e-8,0,1,1,599567e-19,0,0,1,600497e-19,0,0,1,614839e-19,0,0,1,686641e-19,0,0,1,972658e-19,0,0,1,221271e-18,0,0,1,833195e-18,0,0,1,403601e-17,0,0,.999999,206001e-16,0,0,.999998,1.01739e-10,0,0,.999997,4.70132e-10,0,0,.999993,2.00436e-9,0,0,.999988,7.83682e-9,0,0,.999979,2.80338e-8,0,0,.999962,9.17033e-8,0,0,.999933,2.74514e-7,0,0,.999881,7.53201e-7,0,0,.999783,189826e-11,0,0,.999594,440279e-11,0,0,.999178,93898e-10,0,0,.998073,181265e-10,0,0,.993993,280487e-10,0,0,.979982,149422e-10,0,0,.968145,378481e-11,0,0,.966786,53771e-10,0,0,.965611,947508e-11,0,388934e-10,.963557,156616e-10,0,9693e-7,.959752,235144e-10,0,.00370329,.952461,291568e-10,0,.00868428,.940193,240102e-10,0,.0161889,.929042,231235e-10,0,.0263948,.920266,273968e-10,0,.0394088,.911178,337915e-10,0,.0552818,.897873,333629e-10,0,.0740138,.884053,351405e-10,0,.0955539,.869455,378034e-10,0,.119795,.854655,399378e-10,0,.14656,.838347,419108e-10,0,.175573,.820693,440831e-10,0,.206388,.802277,445599e-10,0,.238095,.783634,472691e-10,0,.269841,.763159,476984e-10,0,.301587,.742914,491487e-10,0,.333333,.721662,502312e-10,0,.365079,.699668,502817e-10,0,.396825,.677839,51406e-9,0,.428571,.655091,511095e-10,0,.460317,.632665,516067e-10,0,.492064,.609734,512255e-10,0,.52381,.587043,510263e-10,0,.555556,.564298,50565e-9,0,.587302,.541769,497951e-10,0,.619048,.519529,492698e-10,0,.650794,.497574,482066e-10,0,.68254,.476028,473689e-10,0,.714286,.454961,461941e-10,0,.746032,.434341,450618e-10,0,.777778,.414364,438355e-10,0,.809524,.394832,424196e-10,0,.84127,.376109,412563e-10,0,.873016,.35779,396226e-10,0,.904762,.340379,384886e-10,0,.936508,.323385,368214e-10,0,.968254,.307295,356636e-10,0,1,1,106465e-17,0,0,1,106555e-17,0,0,1,107966e-17,0,0,1,114601e-17,0,0,1,137123e-17,0,0,1,21243e-16,0,0,.999999,489653e-17,0,0,.999999,160283e-16,0,0,.999998,62269e-15,0,0,.999997,2.51859e-10,0,0,.999996,9.96192e-10,0,0,.999992,3.74531e-9,0,0,.999986,1.32022e-8,0,0,.999975,4.33315e-8,0,0,.999959,1.31956e-7,0,0,.999927,3.72249e-7,0,0,.999871,9.72461e-7,0,0,.999771,235343e-11,0,0,.999572,52768e-10,0,0,.999133,109237e-10,0,0,.997912,203675e-10,0,0,.993008,279396e-10,0,0,.980645,139604e-10,0,0,.970057,646596e-11,0,0,.966717,65089e-10,0,474145e-10,.965497,111863e-10,0,89544e-8,.96334,179857e-10,0,.0032647,.959294,259045e-10,0,.0075144,.951519,292327e-10,0,.0138734,.940517,249769e-10,0,.0224952,.93014,26803e-9,0,.0334828,.91972,303656e-10,0,.0468973,.910294,353323e-10,0,.0627703,.897701,351002e-10,0,.0811019,.884522,388104e-10,0,.10186,.869489,412932e-10,0,.124985,.853983,415781e-10,0,.150372,.838425,454066e-10,0,.177868,.820656,471624e-10,0,.207245,.801875,475243e-10,0,.238143,.783521,505621e-10,0,.269841,.763131,50721e-9,0,.301587,.74261,523293e-10,0,.333333,.72148,528699e-10,0,.365079,.699696,538677e-10,0,.396825,.677592,539255e-10,0,.428571,.65525,546367e-10,0,.460317,.632452,541348e-10,0,.492064,.609903,544976e-10,0,.52381,.586928,536201e-10,0,.555556,.564464,535185e-10,0,.587302,.541801,524949e-10,0,.619048,.519681,51812e-9,0,.650794,.497685,507687e-10,0,.68254,.47622,496243e-10,0,.714286,.455135,485714e-10,0,.746032,.4346,471847e-10,0,.777778,.414564,459294e-10,0,.809524,.395165,444705e-10,0,.84127,.376333,430772e-10,0,.873016,.358197,416229e-10,0,.904762,.34064,401019e-10,0,.936508,.323816,386623e-10,0,.968254,.307581,370933e-10,0,1,1,991541e-17,0,0,1,992077e-17,0,0,1,100041e-16,0,0,1,10385e-15,0,0,1,115777e-16,0,0,1,150215e-16,0,0,.999999,254738e-16,0,0,.999999,598822e-16,0,0,.999998,1.79597e-10,0,0,.999997,6.02367e-10,0,0,.999994,2.06835e-9,0,0,.99999,6.94952e-9,0,0,.999984,2.23363e-8,0,0,.999972,6.78578e-8,0,0,.999952,1.93571e-7,0,0,.999919,5.16594e-7,0,0,.99986,128739e-11,0,0,.999753,299298e-11,0,0,.999546,648258e-11,0,0,.999074,129985e-10,0,0,.997671,232176e-10,0,0,.991504,256701e-10,0,0,.981148,131141e-10,0,0,.971965,869048e-11,0,280182e-10,.966624,808301e-11,0,695475e-9,.965344,135235e-10,0,.00265522,.963048,210592e-10,0,.00622975,.958673,287473e-10,0,.0116234,.950262,281379e-10,0,.018976,.940836,271089e-10,0,.0283844,.930996,30926e-9,0,.0399151,.919848,348359e-10,0,.0536063,.909136,366092e-10,0,.0694793,.897554,384162e-10,0,.0875342,.884691,430971e-10,0,.107749,.869414,447803e-10,0,.130087,.853462,452858e-10,0,.154481,.838187,495769e-10,0,.180833,.820381,502709e-10,0,.209005,.801844,522713e-10,0,.238791,.783061,541505e-10,0,.269869,.763205,553712e-10,0,.301587,.742362,564909e-10,0,.333333,.721393,572646e-10,0,.365079,.699676,581012e-10,0,.396825,.677395,58096e-9,0,.428571,.655208,585766e-10,0,.460317,.632451,583602e-10,0,.492064,.609839,580234e-10,0,.52381,.587093,577161e-10,0,.555556,.564467,568447e-10,0,.587302,.542043,563166e-10,0,.619048,.519826,55156e-9,0,.650794,.497952,541682e-10,0,.68254,.476477,528971e-10,0,.714286,.455412,514952e-10,0,.746032,.434926,502222e-10,0,.777778,.4149,485779e-10,0,.809524,.395552,472242e-10,0,.84127,.376712,454891e-10,0,.873016,.358622,440924e-10,0,.904762,.341048,422984e-10,0,.936508,.324262,408582e-10,0,.968254,.308013,390839e-10,0,1,1,613913e-16,0,0,1,614145e-16,0,0,1,617708e-16,0,0,1,633717e-16,0,0,1,681648e-16,0,0,1,808291e-16,0,0,1,1.14608e-10,0,0,.999998,2.10507e-10,0,0,.999997,4.99595e-10,0,0,.999995,1.39897e-9,0,0,.999994,4.19818e-9,0,0,.999988,1.27042e-8,0,0,.999979,3.75153e-8,0,0,.999965,1.06206e-7,0,0,.999945,2.85381e-7,0,0,.999908,7.23611e-7,0,0,.999846,17255e-10,0,0,.999733,386104e-11,0,0,.999511,808493e-11,0,0,.998993,156884e-10,0,0,.997326,265538e-10,0,0,.989706,206466e-10,0,0,.981713,130756e-10,0,70005e-10,.973636,106473e-10,0,464797e-9,.966509,10194e-9,0,.00201743,.965149,165881e-10,0,.00497549,.962669,249147e-10,0,.00953262,.95786,317449e-10,0,.0158211,.949334,281045e-10,0,.0239343,.941041,303263e-10,0,.0339372,.931575,356754e-10,0,.0458738,.920102,397075e-10,0,.059772,.908002,384886e-10,0,.075645,.897269,43027e-9,0,.0934929,.884559,479925e-10,0,.113302,.869161,48246e-9,0,.135045,.853342,509505e-10,0,.158678,.837633,542846e-10,0,.184136,.820252,554139e-10,0,.211325,.801872,581412e-10,0,.240113,.782418,585535e-10,0,.270306,.7631,610923e-10,0,.301594,.742183,613678e-10,0,.333333,.721098,627275e-10,0,.365079,.699512,629413e-10,0,.396825,.677372,636351e-10,0,.428571,.655059,633555e-10,0,.460317,.632567,636513e-10,0,.492064,.609784,628965e-10,0,.52381,.587237,625546e-10,0,.555556,.564525,615825e-10,0,.587302,.542181,605048e-10,0,.619048,.520017,596329e-10,0,.650794,.498204,581516e-10,0,.68254,.476742,569186e-10,0,.714286,.455803,553833e-10,0,.746032,.435251,537807e-10,0,.777778,.415374,522025e-10,0,.809524,.395921,503421e-10,0,.84127,.377253,488211e-10,0,.873016,.359021,468234e-10,0,.904762,.341637,453269e-10,0,.936508,.3247,433014e-10,0,.968254,.308625,418007e-10,0,1,1,2.86798e-10,0,0,1,2.86877e-10,0,0,1,2.88094e-10,0,0,1,2.93506e-10,0,0,1,3.09262e-10,0,0,.999999,3.48593e-10,0,0,.999999,4.44582e-10,0,0,.999998,6.88591e-10,0,0,.999996,1.34391e-9,0,0,.999993,3.17438e-9,0,0,.999989,8.35609e-9,0,0,.999983,2.28677e-8,0,0,.999974,6.23361e-8,0,0,.999959,1.65225e-7,0,0,.999936,4.19983e-7,0,0,.999896,101546e-11,0,0,.99983,232376e-11,0,0,.999709,50156e-10,0,0,.999469,10167e-9,0,0,.998886,190775e-10,0,0,.996819,300511e-10,0,0,.988837,185092e-10,0,1.68222e-7,.982178,134622e-10,0,259622e-9,.975017,125961e-10,0,.00142595,.967101,13507e-9,0,.00382273,.964905,205003e-10,0,.00764164,.96218,29546e-9,0,.0130121,.956821,343738e-10,0,.0200253,.948829,305063e-10,0,.0287452,.941092,346487e-10,0,.039218,.931883,412061e-10,0,.0514748,.920211,444651e-10,0,.0655351,.907307,431252e-10,0,.0814082,.89684,490382e-10,0,.0990939,.884119,53334e-9,0,.118583,.869148,54114e-9,0,.139856,.853377,578536e-10,0,.162882,.836753,592285e-10,0,.187615,.820063,622787e-10,0,.213991,.801694,645492e-10,0,.241918,.782116,65353e-9,0,.271267,.762673,674344e-10,0,.301847,.742133,682788e-10,0,.333333,.720779,691959e-10,0,.365079,.699386,696817e-10,0,.396826,.67732,699583e-10,0,.428572,.654888,698447e-10,0,.460318,.632499,694063e-10,0,.492064,.609825,691612e-10,0,.52381,.587287,681576e-10,0,.555556,.564743,674138e-10,0,.587302,.542409,661617e-10,0,.619048,.520282,647785e-10,0,.650794,.498506,633836e-10,0,.68254,.477102,615905e-10,0,.714286,.456167,601013e-10,0,.746032,.435728,581457e-10,0,.777778,.415809,564215e-10,0,.809524,.396517,544997e-10,0,.84127,.377737,525061e-10,0,.873016,.359698,506831e-10,0,.904762,.342164,48568e-9,0,.936508,.325417,467826e-10,0,.968254,.309186,446736e-10,0,1,1,1.09018e-9,0,0,1,1.0904e-9,0,0,1,1.09393e-9,0,0,1,1.1095e-9,0,0,1,1.154e-9,0,0,1,1.26089e-9,0,0,.999999,1.5059e-9,0,0,.999997,2.07899e-9,0,0,.999994,3.48164e-9,0,0,.999993,7.05728e-9,0,0,.999987,1.63692e-8,0,0,.999981,4.06033e-8,0,0,.999969,1.0245e-7,0,0,.999953,2.55023e-7,0,0,.999925,6.1511e-7,0,0,.999881,142218e-11,0,0,.99981,313086e-11,0,0,.99968,653119e-11,0,0,.999418,12832e-9,0,0,.998748,232497e-10,0,0,.996066,329522e-10,0,0,.988379,179613e-10,0,108799e-9,.982567,143715e-10,0,921302e-9,.976097,148096e-10,0,.00280738,.968475,178905e-10,0,.00596622,.964606,253921e-10,0,.0105284,.961564,348623e-10,0,.0165848,.955517,357612e-10,0,.0242,.948381,343493e-10,0,.03342,.941095,405849e-10,0,.0442777,.931923,475394e-10,0,.0567958,.91996,484328e-10,0,.0709879,.907419,502146e-10,0,.086861,.89618,561654e-10,0,.104415,.88337,587612e-10,0,.123643,.869046,618057e-10,0,.144531,.853278,657392e-10,0,.167057,.836091,66303e-9,0,.191188,.819644,704445e-10,0,.216878,.801246,714071e-10,0,.244062,.782031,740093e-10,0,.272649,.762066,74685e-9,0,.302509,.741964,766647e-10,0,.333442,.720554,766328e-10,0,.365079,.699098,777857e-10,0,.396826,.677189,774633e-10,0,.428572,.65484,776235e-10,0,.460318,.632496,770316e-10,0,.492064,.609908,762669e-10,0,.52381,.587312,753972e-10,0,.555556,.564938,739994e-10,0,.587302,.542577,728382e-10,0,.619048,.52062,71112e-9,0,.650794,.498819,694004e-10,0,.68254,.477555,675575e-10,0,.714286,.456568,653449e-10,0,.746032,.436278,636068e-10,0,.777778,.41637,613466e-10,0,.809524,.397144,594177e-10,0,.84127,.378412,570987e-10,0,.873016,.360376,550419e-10,0,.904762,.342906,527422e-10,0,.936508,.326136,506544e-10,0,.968254,.30997,484307e-10,0,1,1,3.54014e-9,0,0,1,3.54073e-9,0,0,1,3.54972e-9,0,0,1,3.58929e-9,0,0,1,3.70093e-9,0,0,.999999,3.96194e-9,0,0,.999998,4.53352e-9,0,0,.999997,5.78828e-9,0,0,.999994,8.63812e-9,0,0,.999991,1.53622e-8,0,0,.999985,3.16356e-8,0,0,.999977,7.12781e-8,0,0,.999964,1.66725e-7,0,0,.999945,3.90501e-7,0,0,.999912,8.95622e-7,0,0,.999866,198428e-11,0,0,.999786,421038e-11,0,0,.999647,850239e-11,0,0,.999356,162059e-10,0,0,.998563,282652e-10,0,0,.994928,336309e-10,0,244244e-10,.987999,178458e-10,0,523891e-9,.982893,159162e-10,0,.00194729,.977044,178056e-10,0,.00451099,.969972,230624e-10,0,.00835132,.964237,313922e-10,0,.013561,.960791,406145e-10,0,.0202056,.954292,372796e-10,0,.0283321,.948052,403199e-10,0,.0379739,.940938,479537e-10,0,.0491551,.931689,545292e-10,0,.0618918,.91987,54038e-9,0,.0761941,.907665,589909e-10,0,.0920672,.895281,642651e-10,0,.109511,.882621,659707e-10,0,.12852,.86873,709973e-10,0,.149085,.853008,742221e-10,0,.171189,.835944,761754e-10,0,.194809,.818949,797052e-10,0,.21991,.800951,812434e-10,0,.246447,.781847,838075e-10,0,.274352,.761649,84501e-9,0,.303535,.74152,860258e-10,0,.333857,.720495,866233e-10,0,.365104,.698742,868326e-10,0,.396826,.677096,87133e-9,0,.428572,.654782,863497e-10,0,.460318,.632335,860206e-10,0,.492064,.610031,849337e-10,0,.52381,.587457,838279e-10,0,.555556,.56513,82309e-9,0,.587302,.542877,803542e-10,0,.619048,.5209,786928e-10,0,.650794,.499291,765171e-10,0,.68254,.477971,744753e-10,0,.714286,.457221,72209e-9,0,.746032,.436803,697448e-10,0,.777778,.417083,675333e-10,0,.809524,.397749,648058e-10,0,.84127,.379177,625759e-10,0,.873016,.361061,598584e-10,0,.904762,.343713,575797e-10,0,.936508,.326894,549999e-10,0,.968254,.310816,527482e-10,0,1,1,1.0153e-8,0,0,1,1.01544e-8,0,0,1,1.01751e-8,0,0,1,1.02662e-8,0,0,1,1.0521e-8,0,0,.999999,1.11049e-8,0,0,.999999,1.23408e-8,0,0,.999996,1.4924e-8,0,0,.999992,2.04471e-8,0,0,.999989,3.26539e-8,0,0,.99998,6.03559e-8,0,0,.999971,1.23936e-7,0,0,.999955,2.69058e-7,0,0,.999933,5.93604e-7,0,0,.999901,129633e-11,0,0,.999847,275621e-11,0,0,.999761,564494e-11,0,0,.999607,110485e-10,0,0,.999282,204388e-10,0,0,.99831,341084e-10,0,2.2038e-7,.993288,294949e-10,0,242388e-9,.987855,192736e-10,0,.0012503,.983167,182383e-10,0,.0032745,.977908,218633e-10,0,.00646321,.971194,290662e-10,0,.0109133,.963867,386401e-10,0,.0166927,.95982,462827e-10,0,.0238494,.953497,420705e-10,0,.0324178,.947621,477743e-10,0,.0424225,.940611,568258e-10,0,.0538808,.931174,618061e-10,0,.0668047,.919919,627098e-10,0,.0812014,.907856,694714e-10,0,.0970745,.894509,735008e-10,0,.114424,.881954,763369e-10,0,.133246,.868309,821896e-10,0,.153534,.852511,83769e-9,0,.175275,.835821,881615e-10,0,.198453,.817981,896368e-10,0,.223042,.800504,930906e-10,0,.249009,.78141,945056e-10,0,.276304,.761427,963605e-10,0,.304862,.74094,968088e-10,0,.334584,.720233,981481e-10,0,.365322,.698592,979122e-10,0,.396826,.676763,981057e-10,0,.428571,.654808,973956e-10,0,.460318,.632326,962619e-10,0,.492064,.610049,952996e-10,0,.52381,.58763,933334e-10,0,.555556,.565261,917573e-10,0,.587302,.543244,896636e-10,0,.619048,.521273,873304e-10,0,.650794,.499818,852648e-10,0,.68254,.478536,823961e-10,0,.714286,.457826,79939e-9,0,.746032,.437549,77126e-9,0,.777778,.41776,743043e-10,0,.809524,.39863,716426e-10,0,.84127,.379954,686456e-10,0,.873016,.362025,660514e-10,0,.904762,.344581,630755e-10,0,.936508,.327909,605439e-10,0,.968254,.311736,576345e-10,0,1,1,2.63344e-8,0,0,1,2.63373e-8,0,0,1,2.63815e-8,0,0,1,2.65753e-8,0,0,1,2.71132e-8,0,0,.999999,2.83279e-8,0,0,.999997,3.0833e-8,0,0,.999995,3.58711e-8,0,0,.999992,4.61266e-8,0,0,.999985,6.7574e-8,0,0,.999977,1.1358e-7,0,0,.999966,2.13657e-7,0,0,.999948,4.31151e-7,0,0,.999923,8.96656e-7,0,0,.999884,186603e-11,0,0,.999826,381115e-11,0,0,.999732,754184e-11,0,0,.999561,143192e-10,0,0,.999191,257061e-10,0,0,.997955,405724e-10,0,744132e-10,.992228,276537e-10,0,716477e-9,.987638,208885e-10,0,.0022524,.983395,215226e-10,0,.00484816,.978614,270795e-10,0,.00860962,.972389,365282e-10,0,.0136083,.964392,474747e-10,0,.0198941,.95861,509141e-10,0,.0275023,.952806,48963e-9,0,.0364584,.94712,571119e-10,0,.04678,.940104,671704e-10,0,.0584799,.930398,687586e-10,0,.0715665,.919866,738161e-10,0,.086045,.907853,813235e-10,0,.101918,.894078,834582e-10,0,.119186,.881177,892093e-10,0,.137845,.867575,944548e-10,0,.157891,.852107,969607e-10,0,.179316,.835502,101456e-9,0,.202106,.81756,103256e-9,0,.226243,.79984,106954e-9,0,.251704,.780998,108066e-9,0,.278451,.761132,110111e-9,0,.306436,.740429,110459e-9,0,.335586,.719836,111219e-9,0,.365796,.698467,11145e-8,0,.3969,.676446,110393e-9,0,.428571,.654635,110035e-9,0,.460318,.632411,108548e-9,0,.492064,.609986,106963e-9,0,.52381,.587872,105238e-9,0,.555556,.565528,102665e-9,0,.587302,.543563,100543e-9,0,.619048,.52176,976182e-10,0,.650794,.500188,947099e-10,0,.68254,.479204,919929e-10,0,.714286,.458413,886139e-10,0,.746032,.438314,857839e-10,0,.777778,.418573,82411e-9,0,.809524,.39947,792211e-10,0,.84127,.380892,759546e-10,0,.873016,.362953,727571e-10,0,.904762,.345601,695738e-10,0,.936508,.328895,664907e-10,0,.968254,.312808,634277e-10,0,1,1,6.28647e-8,0,0,1,6.28705e-8,0,0,1,6.29587e-8,0,0,1,6.33441e-8,0,0,.999999,6.44087e-8,0,0,.999998,6.67856e-8,0,0,.999997,7.15889e-8,0,0,.999995,8.09577e-8,0,0,.999989,9.92764e-8,0,0,.999983,1.35834e-7,0,0,.999974,2.10482e-7,0,0,.999959,3.65215e-7,0,0,.999939,6.86693e-7,0,0,.999911,13472e-10,0,0,.999868,26731e-10,0,0,.999804,524756e-11,0,0,.9997,100403e-10,0,0,.99951,185019e-10,0,0,.999078,322036e-10,0,620676e-11,.997428,470002e-10,0,341552e-9,.99162,287123e-10,0,.00143727,.987479,234706e-10,0,.00349201,.983582,260083e-10,0,.0066242,.979186,337927e-10,0,.0109113,.97325,454689e-10,0,.0164064,.965221,573759e-10,0,.0231463,.957262,544114e-10,0,.0311571,.952211,587006e-10,0,.0404572,.946631,692256e-10,0,.0510592,.939391,787819e-10,0,.0629723,.929795,792368e-10,0,.0762025,.91965,875075e-10,0,.090753,.907737,950903e-10,0,.106626,.893899,972963e-10,0,.123822,.880239,10459e-8,0,.142337,.866562,107689e-9,0,.16217,.85164,113081e-9,0,.183314,.835021,116636e-9,0,.20576,.817311,120074e-9,0,.229496,.798845,121921e-9,0,.254502,.780479,12475e-8,0,.280753,.760694,125255e-9,0,.308212,.740142,126719e-9,0,.336825,.719248,12636e-8,0,.366517,.698209,126712e-9,0,.397167,.676398,125769e-9,0,.428578,.654378,124432e-9,0,.460318,.632484,123272e-9,0,.492064,.610113,12085e-8,0,.52381,.587931,118411e-9,0,.555556,.565872,11569e-8,0,.587302,.543814,112521e-9,0,.619048,.522265,109737e-9,0,.650794,.500835,106228e-9,0,.68254,.479818,102591e-9,0,.714286,.459258,991288e-10,0,.746032,.439061,952325e-10,0,.777778,.419552,91895e-9,0,.809524,.400399,879051e-10,0,.84127,.381976,844775e-10,0,.873016,.364009,806316e-10,0,.904762,.346761,771848e-10,0,.936508,.330049,735429e-10,0,.968254,.314018,702103e-10,0,1,1,1.39968e-7,0,0,1,1.39979e-7,0,0,1,1.40145e-7,0,0,1,1.4087e-7,0,0,.999999,1.42865e-7,0,0,.999998,1.47279e-7,0,0,.999997,1.56057e-7,0,0,.999992,1.7276e-7,0,0,.999989,2.04352e-7,0,0,.99998,2.6494e-7,0,0,.999969,3.83435e-7,0,0,.999953,6.18641e-7,0,0,.999929,108755e-11,0,0,.999898,201497e-11,0,0,.999849,381346e-11,0,0,.999778,719815e-11,0,0,.999661,133215e-10,0,0,.999451,238313e-10,0,0,.998936,401343e-10,0,113724e-9,.99662,517346e-10,0,820171e-9,.991094,304323e-10,0,.00238143,.987487,281757e-10,0,.00493527,.983731,320048e-10,0,.00856859,.979647,423905e-10,0,.0133393,.973837,562935e-10,0,.0192863,.96584,677442e-10,0,.0264369,.956309,623073e-10,0,.03481,.951523,704131e-10,0,.0444184,.946003,836594e-10,0,.0552713,.938454,911736e-10,0,.0673749,.929279,938264e-10,0,.0807329,.919239,103754e-9,0,.0953479,.907293,109928e-9,0,.111221,.893936,115257e-9,0,.128352,.879674,122265e-9,0,.14674,.865668,125733e-9,0,.166382,.850998,132305e-9,0,.187276,.834498,134844e-9,0,.209413,.816903,139276e-9,0,.232786,.798235,140984e-9,0,.257382,.779724,14378e-8,0,.283181,.760251,144623e-9,0,.310156,.739808,145228e-9,0,.338269,.718762,14539e-8,0,.367461,.697815,144432e-9,0,.397646,.67631,143893e-9,0,.428685,.654278,141846e-9,0,.460318,.632347,13935e-8,0,.492064,.610296,137138e-9,0,.52381,.588039,133806e-9,0,.555556,.566218,130755e-9,0,.587302,.544346,127128e-9,0,.619048,.522701,123002e-9,0,.650794,.501542,119443e-9,0,.68254,.480508,115055e-9,0,.714286,.460092,111032e-9,0,.746032,.440021,106635e-9,0,.777778,.420446,102162e-9,0,.809524,.401512,98184e-9,0,.84127,.38299,936497e-10,0,.873016,.365232,89813e-9,0,.904762,.347865,853073e-10,0,.936508,.331342,817068e-10,0,.968254,.315202,773818e-10,0,1,1,2.9368e-7,0,0,1,2.937e-7,0,0,1,2.93998e-7,0,0,1,2.95298e-7,0,0,.999999,2.98865e-7,0,0,.999998,3.067e-7,0,0,.999995,3.22082e-7,0,0,.999992,3.50767e-7,0,0,.999986,4.03538e-7,0,0,.999976,5.01372e-7,0,0,.999964,6.8562e-7,0,0,.999945,10374e-10,0,0,.999919,171269e-11,0,0,.999882,300175e-11,0,0,.999829,542144e-11,0,0,.999749,984182e-11,0,0,.99962,176213e-10,0,0,.999382,305995e-10,0,138418e-10,.998751,496686e-10,0,389844e-9,.995344,510733e-10,0,.00150343,.990768,345829e-10,0,.00352451,.987464,342841e-10,0,.00655379,.983846,399072e-10,0,.0106554,.980007,533219e-10,0,.0158723,.974494,696992e-10,0,.0222333,.96622,776754e-10,0,.029758,.956273,747718e-10,0,.0384596,.950952,864611e-10,0,.0483473,.945215,100464e-9,0,.0594266,.937287,103729e-9,0,.0717019,.928649,111665e-9,0,.0851752,.918791,12353e-8,0,.0998479,.906685,127115e-9,0,.115721,.893706,13628e-8,0,.132794,.879248,142427e-9,0,.151067,.864685,148091e-9,0,.170538,.850032,153517e-9,0,.191204,.833853,157322e-9,0,.213063,.816353,161086e-9,0,.236107,.797834,164111e-9,0,.260329,.778831,165446e-9,0,.285714,.759756,167492e-9,0,.312243,.739419,166928e-9,0,.339887,.718491,167e-6,0,.368604,.697392,165674e-9,0,.398329,.676102,163815e-9,0,.428961,.654243,162003e-9,0,.460331,.632176,158831e-9,0,.492064,.610407,155463e-9,0,.52381,.588394,152062e-9,0,.555556,.56645,147665e-9,0,.587302,.5449,14375e-8,0,.619048,.523276,138905e-9,0,.650794,.502179,134189e-9,0,.68254,.481359,129392e-9,0,.714286,.46092,124556e-9,0,.746032,.441084,11957e-8,0,.777778,.421517,114652e-9,0,.809524,.402721,109688e-9,0,.84127,.384222,104667e-9,0,.873016,.366534,999633e-10,0,.904762,.349205,950177e-10,0,.936508,.332702,907301e-10,0,.968254,.316599,859769e-10,0,1,1,5.85473e-7,0,0,1,5.85507e-7,0,0,1,5.8602e-7,0,0,.999999,5.88259e-7,0,0,.999999,5.94381e-7,0,0,.999998,6.07754e-7,0,0,.999995,6.33729e-7,0,0,.99999,6.8137e-7,0,0,.999984,7.67003e-7,0,0,.999973,9.21212e-7,0,0,.999959,120218e-11,0,0,.999936,172024e-11,0,0,.999907,268088e-11,0,0,.999866,445512e-11,0,0,.999806,768481e-11,0,0,.999716,1342e-8,0,0,.999576,232473e-10,0,0,.9993,391694e-10,0,129917e-9,.998498,608429e-10,0,845035e-9,.994132,489743e-10,0,.00237616,.99031,384644e-10,0,.00484456,.987409,421768e-10,0,.00832472,.983981,504854e-10,0,.0128643,.980268,671028e-10,0,.0184947,.974875,852749e-10,0,.025237,.966063,85531e-9,0,.0331046,.956779,900588e-10,0,.0421067,.950259,10577e-8,0,.0522487,.944239,119458e-9,0,.0635343,.936341,122164e-9,0,.0759654,.928047,134929e-9,0,.0895434,.918065,145544e-9,0,.104269,.906267,150531e-9,0,.120142,.893419,161652e-9,0,.137163,.878758,16593e-8,0,.15533,.863699,174014e-9,0,.174645,.848876,177877e-9,0,.195106,.833032,184049e-9,0,.21671,.815557,186088e-9,0,.239454,.797323,19054e-8,0,.263332,.778124,191765e-9,0,.288336,.758929,192535e-9,0,.314451,.738979,192688e-9,0,.341658,.718213,191522e-9,0,.369924,.696947,190491e-9,0,.399202,.675807,187913e-9,0,.429416,.654147,184451e-9,0,.460447,.63229,181442e-9,0,.492064,.610499,177139e-9,0,.523809,.588747,172596e-9,0,.555555,.566783,167457e-9,0,.587301,.545359,162518e-9,0,.619048,.523984,156818e-9,0,.650794,.502917,151884e-9,0,.68254,.482294,145514e-9,0,.714286,.461945,140199e-9,0,.746032,.442133,134101e-9,0,.777778,.422705,128374e-9,0,.809524,.403916,122996e-9,0,.84127,.38554,116808e-9,0,.873016,.367909,111973e-9,0,.904762,.350651,105938e-9,0,.936508,.334208,101355e-9,0,.968254,.318123,957629e-10,0,1,1,111633e-11,0,0,1,111639e-11,0,0,1,111725e-11,0,0,1,112096e-11,0,0,.999999,11311e-10,0,0,.999997,115315e-11,0,0,.999995,11956e-10,0,0,.999989,127239e-11,0,0,.999981,140772e-11,0,0,.999969,164541e-11,0,0,.999952,206607e-11,0,0,.999928,281783e-11,0,0,.999895,416835e-11,0,0,.999848,658728e-11,0,0,.999781,108648e-10,0,0,.999682,182579e-10,0,0,.999523,306003e-10,0,159122e-10,.999205,499862e-10,0,391184e-9,.998131,73306e-9,0,.00147534,.993334,513229e-10,0,.0034227,.99016,467783e-10,0,.00632232,.987321,523413e-10,0,.0102295,.984099,64267e-9,0,.0151794,.980432,843042e-10,0,.0211947,.974976,102819e-9,0,.0282899,.966429,996234e-10,0,.0364739,.957633,111074e-9,0,.0457522,.949422,128644e-9,0,.0561278,.943045,140076e-9,0,.0676023,.935448,146349e-9,0,.0801762,.927225,161854e-9,0,.0938499,.917033,169135e-9,0,.108623,.905762,179987e-9,0,.124496,.892879,189832e-9,0,.141469,.878435,195881e-9,0,.159541,.863114,20466e-8,0,.178713,.84776,209473e-9,0,.198985,.832084,214861e-9,0,.220355,.814915,217695e-9,0,.242823,.796711,220313e-9,0,.266385,.777603,22313e-8,0,.291036,.757991,222471e-9,0,.316767,.738371,222869e-9,0,.343563,.717872,221243e-9,0,.371402,.696619,218089e-9,0,.400248,.675379,21562e-8,0,.430047,.65411,21169e-8,0,.460709,.63241,206947e-9,0,.492079,.61046,201709e-9,0,.52381,.58903,196753e-9,0,.555556,.567267,189637e-9,0,.587302,.545886,184735e-9,0,.619048,.524714,177257e-9,0,.650794,.503789,171424e-9,0,.68254,.483204,164688e-9,0,.714286,.462976,157172e-9,0,.746032,.443294,151341e-9,0,.777778,.423988,143737e-9,0,.809524,.405325,138098e-9,0,.84127,.386981,130698e-9,0,.873016,.369436,125276e-9,0,.904762,.35219,118349e-9,0,.936508,.335804,11312e-8,0,.968254,.319749,106687e-9,0,1,1,204685e-11,0,0,1,204694e-11,0,0,1,204831e-11,0,0,.999999,205428e-11,0,0,.999999,207056e-11,0,0,.999997,210581e-11,0,0,.999993,21732e-10,0,0,.999987,229365e-11,0,0,.999979,250243e-11,0,0,.999965,286127e-11,0,0,.999947,348028e-11,0,0,.999918,455588e-11,0,0,.999881,643303e-11,0,0,.999828,970064e-11,0,0,.999753,153233e-10,0,0,.999642,24793e-9,0,0,.999464,402032e-10,0,122947e-9,.999089,635852e-10,0,807414e-9,.997567,857026e-10,0,.00227206,.992903,594912e-10,0,.00462812,.990011,578515e-10,0,.00794162,.987192,65399e-9,0,.0122534,.98418,819675e-10,0,.0175888,.980491,105514e-9,0,.0239635,.974779,121532e-9,0,.031387,.96675,119144e-9,0,.0398644,.958248,136125e-9,0,.0493982,.948884,155408e-9,0,.0599896,.941673,162281e-9,0,.0716382,.934521,176754e-9,0,.0843437,.926205,192873e-9,0,.0981056,.916089,200038e-9,0,.112923,.904963,213624e-9,0,.128796,.892089,221834e-9,0,.145725,.878028,232619e-9,0,.163709,.86249,238632e-9,0,.182749,.846587,247002e-9,0,.202847,.830988,250702e-9,0,.224001,.814165,255562e-9,0,.246214,.796135,257505e-9,0,.269482,.777052,258625e-9,0,.293805,.757201,258398e-9,0,.319176,.737655,256714e-9,0,.345587,.717477,255187e-9,0,.373021,.696433,251792e-9,0,.401454,.675084,247223e-9,0,.430844,.653907,242213e-9,0,.461125,.632561,237397e-9,0,.492187,.610658,229313e-9,0,.52381,.589322,224402e-9,0,.555556,.567857,216116e-9,0,.587302,.54652,209124e-9,0,.619048,.525433,201601e-9,0,.650794,.504679,192957e-9,0,.68254,.484203,186052e-9,0,.714286,.464203,177672e-9,0,.746032,.444549,170005e-9,0,.777778,.425346,162401e-9,0,.809524,.406706,1544e-7,0,.84127,.388576,147437e-9,0,.873016,.37094,139493e-9,0,.904762,.353996,133219e-9,0,.936508,.337391,125573e-9,0,.968254,.321648,119867e-9,0,1,1,362511e-11,0,0,1,362525e-11,0,0,1,362739e-11,0,0,.999999,363673e-11,0,0,.999998,366214e-11,0,0,.999996,371698e-11,0,0,.999992,382116e-11,0,0,.999986,400554e-11,0,0,.999976,432058e-11,0,0,.999961,485194e-11,0,0,.999938,574808e-11,0,0,.999908,726643e-11,0,0,.999865,984707e-11,0,0,.999807,142217e-10,0,0,.999723,215581e-10,0,0,.999602,336114e-10,0,119113e-10,.999398,527353e-10,0,355813e-9,.998946,805809e-10,0,.00137768,.996647,942908e-10,0,.00322469,.992298,668733e-10,0,.00597897,.989802,716564e-10,0,.00968903,.987019,821355e-10,0,.0143845,.984219,104555e-9,0,.0200831,.980425,131245e-9,0,.0267948,.974241,139613e-9,0,.034525,.967006,145931e-9,0,.0432757,.95893,167153e-9,0,.0530471,.949157,188146e-9,0,.0638386,.94062,194625e-9,0,.0756487,.933509,213721e-9,0,.0884762,.925088,229616e-9,0,.10232,.915178,239638e-9,0,.117178,.904093,254814e-9,0,.133051,.891337,263685e-9,0,.149939,.877326,274789e-9,0,.167841,.861794,280534e-9,0,.18676,.845758,289534e-9,0,.206696,.829792,294446e-9,0,.22765,.813037,296877e-9,0,.249625,.795285,300217e-9,0,.27262,.776323,299826e-9,0,.296636,.756673,299787e-9,0,.321671,.736856,297867e-9,0,.347718,.716883,294052e-9,0,.374768,.696089,289462e-9,0,.402804,.67505,285212e-9,0,.431796,.653509,27653e-8,0,.461695,.63258,271759e-9,0,.49242,.61104,262811e-9,0,.523822,.589567,255151e-9,0,.555556,.568322,246434e-9,0,.587302,.547235,237061e-9,0,.619048,.52616,228343e-9,0,.650794,.505716,219236e-9,0,.68254,.485274,209595e-9,0,.714286,.465411,201011e-9,0,.746032,.445854,19109e-8,0,.777778,.426911,182897e-9,0,.809524,.408222,173569e-9,0,.84127,.390307,165496e-9,0,.873016,.372624,156799e-9,0,.904762,.355804,14917e-8,0,.936508,.33924,140907e-9,0,.968254,.323534,134062e-9,0,1,1,622487e-11,0,0,1,62251e-10,0,0,1,622837e-11,0,0,.999999,624259e-11,0,0,.999998,628127e-11,0,0,.999996,636451e-11,0,0,.999991,65218e-10,0,0,.999984,679782e-11,0,0,.999973,726361e-11,0,0,.999955,803644e-11,0,0,.999931,931397e-11,0,0,.999896,114299e-10,0,0,.999847,149402e-10,0,0,.999784,207461e-10,0,0,.999692,302493e-10,0,0,.999554,454957e-10,0,997275e-10,.999326,690762e-10,0,724813e-9,.998757,101605e-9,0,.0020972,.995367,958745e-10,0,.00432324,.99209,832808e-10,0,.00746347,.989517,887601e-10,0,.0115534,.987008,10564e-8,0,.0166134,.98421,133179e-9,0,.0226552,.98021,161746e-9,0,.0296838,.973676,161821e-9,0,.0377016,.967052,178635e-9,0,.0467079,.959385,206765e-9,0,.0567013,.949461,22476e-8,0,.0676796,.939578,23574e-8,0,.0796403,.932416,25893e-8,0,.0925812,.923759,271228e-9,0,.106501,.914223,289165e-9,0,.121397,.902942,301156e-9,0,.13727,.890419,313852e-9,0,.15412,.876639,324408e-9,0,.171946,.861316,33249e-8,0,.190751,.84496,338497e-9,0,.210537,.828427,345861e-9,0,.231305,.811871,347863e-9,0,.253057,.794397,350225e-9,0,.275797,.775726,349915e-9,0,.299525,.75617,347297e-9,0,.324242,.736091,344232e-9,0,.349947,.716213,340835e-9,0,.376633,.695736,332369e-9,0,.404289,.674961,327943e-9,0,.432895,.653518,318533e-9,0,.462415,.632574,310391e-9,0,.492788,.61134,300755e-9,0,.523909,.590017,290506e-9,0,.555556,.568752,280446e-9,0,.587302,.548061,269902e-9,0,.619048,.52711,258815e-9,0,.650794,.506682,248481e-9,0,.68254,.486524,237141e-9,0,.714286,.466812,226872e-9,0,.746032,.44732,216037e-9,0,.777778,.428473,205629e-9,0,.809524,.409921,195691e-9,0,.84127,.392028,185457e-9,0,.873016,.374606,176436e-9,0,.904762,.357601,166508e-9,0,.936508,.341348,158385e-9,0,.968254,.32542,149203e-9,0,1,1,103967e-10,0,0,1,10397e-9,0,0,1,104019e-10,0,0,.999999,104231e-10,0,0,.999998,104806e-10,0,0,.999995,106042e-10,0,0,.999991,108366e-10,0,0,.999982,112415e-10,0,0,.999968,119174e-10,0,0,.99995,130227e-10,0,0,.999922,148176e-10,0,0,.999884,177303e-10,0,0,.99983,224564e-10,0,0,.999758,300966e-10,0,0,.999654,423193e-10,0,549083e-11,.999503,614848e-10,0,296087e-9,.999237,903576e-10,0,.00123144,.998491,1271e-7,0,.00295954,.994594,107754e-9,0,.00555829,.99178,103025e-9,0,.00907209,.989265,11154e-8,0,.0135257,.986998,136296e-9,0,.0189327,.984137,169154e-9,0,.0252993,.979798,196671e-9,0,.0326272,.97337,196678e-9,0,.0409157,.967239,223121e-9,0,.0501623,.959543,253809e-9,0,.0603638,.949466,265972e-9,0,.0715171,.939074,288372e-9,0,.0836187,.931118,310983e-9,0,.0966657,.922525,325561e-9,0,.110656,.912983,345725e-9,0,.125588,.901617,3556e-7,0,.141461,.889487,374012e-9,0,.158275,.875787,383445e-9,0,.176031,.860654,393972e-9,0,.19473,.844417,400311e-9,0,.214374,.82741,405004e-9,0,.234967,.810545,407378e-9,0,.256512,.793312,407351e-9,0,.279011,.774847,406563e-9,0,.302468,.755621,404903e-9,0,.326887,.735511,397486e-9,0,.352266,.715435,39357e-8,0,.378605,.695403,384739e-9,0,.405897,.674681,376108e-9,0,.43413,.65359,365997e-9,0,.463277,.632471,354957e-9,0,.493295,.61151,343593e-9,0,.524106,.59064,331841e-9,0,.555561,.569386,318891e-9,0,.587302,.548785,3072e-7,0,.619048,.528146,29361e-8,0,.650794,.507872,281709e-9,0,.68254,.487805,268627e-9,0,.714286,.468196,255887e-9,0,.746032,.448922,243997e-9,0,.777778,.430093,231662e-9,0,.809524,.411845,220339e-9,0,.84127,.393808,208694e-9,0,.873016,.376615,198045e-9,0,.904762,.359655,187375e-9,0,.936508,.343452,177371e-9,0,.968254,.32765,167525e-9,0,1,1,169351e-10,0,0,1,169356e-10,0,0,1,169427e-10,0,0,.999999,169736e-10,0,0,.999998,170575e-10,0,0,.999995,172372e-10,0,0,.99999,175739e-10,0,0,.999979,181568e-10,0,0,.999966,191206e-10,0,0,.999944,20677e-9,0,0,.999912,231644e-10,0,0,.999869,271268e-10,0,0,.999811,334272e-10,0,0,.99973,433979e-10,0,0,.999617,590083e-10,0,680315e-10,.999445,829497e-10,0,612796e-9,.999138,118019e-9,0,.00187408,.998095,156712e-9,0,.00395791,.993919,125054e-9,0,.00692144,.991333,126091e-9,0,.0107962,.989226,144912e-9,0,.0155986,.986954,175737e-9,0,.0213364,.983982,213883e-9,0,.0280114,.979128,234526e-9,0,.0356226,.973327,243725e-9,0,.0441668,.967416,2773e-7,0,.0536399,.959729,308799e-9,0,.0640376,.949758,322447e-9,0,.0753554,.939173,350021e-9,0,.0875893,.9296,370089e-9,0,.100736,.921181,391365e-9,0,.114793,.91164,413636e-9,0,.129759,.900435,427068e-9,0,.145632,.888183,441046e-9,0,.162412,.874772,454968e-9,0,.180101,.859566,461882e-9,0,.1987,.843579,471556e-9,0,.218213,.826453,474335e-9,0,.238641,.809164,477078e-9,0,.259989,.792179,47755e-8,0,.282262,.773866,472573e-9,0,.305464,.754944,469765e-9,0,.329599,.735133,462371e-9,0,.35467,.714858,453674e-9,0,.380678,.694829,443888e-9,0,.407622,.674453,432052e-9,0,.435493,.653685,420315e-9,0,.464275,.632666,406829e-9,0,.493938,.611676,392234e-9,0,.524422,.591193,379208e-9,0,.555624,.570145,36319e-8,0,.587302,.549566,349111e-9,0,.619048,.529278,334166e-9,0,.650794,.509026,318456e-9,0,.68254,.489186,30449e-8,0,.714286,.469662,289051e-9,0,.746032,.450691,275494e-9,0,.777778,.431841,261437e-9,0,.809524,.413752,247846e-9,0,.84127,.395951,235085e-9,0,.873016,.378633,222245e-9,0,.904762,.36194,210533e-9,0,.936508,.345599,198494e-9,0,.968254,.329999,188133e-9,0,1,1,269663e-10,0,0,1,26967e-9,0,0,1,269772e-10,0,0,.999999,270214e-10,0,0,.999998,271415e-10,0,0,.999994,27398e-9,0,0,.999988,278771e-10,0,0,.999977,287019e-10,0,0,.999961,300544e-10,0,0,.999937,322138e-10,0,0,.999904,356163e-10,0,0,.999854,409465e-10,0,0,.99979,492651e-10,0,0,.999699,621722e-10,0,8.8288e-7,.999572,819715e-10,0,223369e-9,.999381,111689e-9,0,.00105414,.999016,153862e-9,0,.0026493,.997437,187667e-9,0,.00508608,.993545,155672e-9,0,.00840554,.991135,161455e-9,0,.012629,.989157,188241e-9,0,.0177661,.986874,226229e-9,0,.0238198,.983714,268668e-9,0,.0307887,.978301,277109e-9,0,.0386688,.973227,303446e-9,0,.0474554,.967317,341851e-9,0,.0571428,.959477,370885e-9,0,.0677256,.950012,392753e-9,0,.0791988,.939484,42781e-8,0,.0915576,.928135,443866e-9,0,.104798,.919819,472959e-9,0,.118918,.910049,491551e-9,0,.133915,.899181,512616e-9,0,.149788,.886881,523563e-9,0,.166537,.87359,540183e-9,0,.184164,.858613,547386e-9,0,.202669,.842809,554809e-9,0,.222056,.825727,558316e-9,0,.242329,.808086,557824e-9,0,.263492,.790728,556346e-9,0,.285551,.772987,552672e-9,0,.30851,.7541,543738e-9,0,.332376,.734669,536107e-9,0,.357153,.714411,523342e-9,0,.382845,.694196,512238e-9,0,.409454,.674252,497465e-9,0,.436977,.65357,481096e-9,0,.465404,.632999,467054e-9,0,.494713,.611994,448771e-9,0,.524864,.591604,431889e-9,0,.555779,.571134,415238e-9,0,.587302,.550528,396369e-9,0,.619048,.530292,379477e-9,0,.650794,.510364,361488e-9,0,.68254,.490749,343787e-9,0,.714286,.471266,327822e-9,0,.746032,.452462,310626e-9,0,.777778,.433907,295352e-9,0,.809524,.415659,279179e-9,0,.84127,.398138,264685e-9,0,.873016,.380833,249905e-9,0,.904762,.364247,236282e-9,0,.936508,.348041,222905e-9,0,.968254,.332389,210522e-9,0,1,1,420604e-10,0,0,1,420614e-10,0,0,1,420757e-10,0,0,.999999,42138e-9,0,0,.999997,423067e-10,0,0,.999993,426668e-10,0,0,.999986,433372e-10,0,0,.999974,444857e-10,0,0,.999956,463554e-10,0,0,.99993,493105e-10,0,0,.999892,539077e-10,0,0,.999838,610005e-10,0,0,.999767,718822e-10,0,0,.999666,884581e-10,0,365471e-10,.999525,113398e-9,0,485623e-9,.999311,150043e-9,0,.00162096,.998865,200063e-9,0,.00355319,.996278,211014e-9,0,.00633818,.992956,189672e-9,0,.0100043,.991017,210262e-9,0,.0145648,.989055,244292e-9,0,.0200237,.986741,290481e-9,0,.0263798,.983288,334303e-9,0,.033629,.977784,340307e-9,0,.0417652,.973037,377864e-9,0,.0507821,.967181,4239e-7,0,.060673,.958971,443854e-9,0,.0714314,.950093,483039e-9,0,.0830518,.939552,517934e-9,0,.0955288,.927678,539449e-9,0,.108859,.918278,568604e-9,0,.123038,.908449,588505e-9,0,.138065,.897713,612473e-9,0,.153938,.885533,625575e-9,0,.170657,.872131,63854e-8,0,.188224,.857517,647034e-9,0,.20664,.841796,65209e-8,0,.225909,.824726,6544e-7,0,.246035,.807297,655744e-9,0,.267022,.789058,646716e-9,0,.288878,.77189,643898e-9,0,.311607,.753082,629973e-9,0,.335216,.7341,621564e-9,0,.359713,.714094,605171e-9,0,.385103,.693839,588752e-9,0,.41139,.673891,573294e-9,0,.438576,.653565,552682e-9,0,.466656,.633326,533446e-9,0,.495617,.612582,514635e-9,0,.525431,.59205,49303e-8,0,.556041,.571918,471842e-9,0,.587338,.551572,451713e-9,0,.619048,.531553,430049e-9,0,.650794,.51175,410445e-9,0,.68254,.49238,390098e-9,0,.714286,.473143,370033e-9,0,.746032,.45423,351205e-9,0,.777778,.435963,332049e-9,0,.809524,.41787,315021e-9,0,.84127,.400387,297315e-9,0,.873016,.383332,281385e-9,0,.904762,.366665,265397e-9,0,.936508,.350633,250601e-9,0,.968254,.334964,23589e-8,0,1,1,643736e-10,0,0,1,64375e-9,0,0,1,643947e-10,0,0,.999999,64481e-9,0,0,.999997,647143e-10,0,0,.999994,652119e-10,0,0,.999985,661359e-10,0,0,.999972,677116e-10,0,0,.999952,702599e-10,0,0,.999922,742517e-10,0,0,.99988,803906e-10,0,0,.99982,897315e-10,0,0,.999741,103838e-9,0,0,.999629,12496e-8,0,149024e-9,.999474,156161e-9,0,861027e-9,.999229,201034e-9,0,.00231198,.998662,259069e-9,0,.00458147,.995299,245439e-9,0,.00770895,.992732,24498e-8,0,.0117126,.990847,273211e-9,0,.0165989,.988911,316492e-9,0,.0223674,.98654,37161e-8,0,.0290135,.982636,410352e-9,0,.0365309,.977346,421756e-9,0,.0449117,.972909,475578e-9,0,.0541481,.966821,522482e-9,0,.0642326,.958686,545008e-9,0,.075158,.949754,589286e-9,0,.0869181,.939184,619995e-9,0,.0995074,.927505,654266e-9,0,.112922,.916606,682362e-9,0,.127157,.906707,704286e-9,0,.142212,.895937,725909e-9,0,.158085,.883913,743939e-9,0,.174776,.870642,755157e-9,0,.192287,.856241,764387e-9,0,.210619,.84069,771032e-9,0,.229775,.823728,765906e-9,0,.249761,.806481,767604e-9,0,.270582,.787924,754385e-9,0,.292243,.770588,749668e-9,0,.314753,.751991,731613e-9,0,.338118,.733407,717655e-9,0,.362347,.713688,700604e-9,0,.387447,.693595,678765e-9,0,.413424,.673426,657042e-9,0,.440284,.65359,635892e-9,0,.468027,.633576,611569e-9,0,.496645,.613144,586011e-9,0,.526122,.592711,563111e-9,0,.556417,.572722,537699e-9,0,.587451,.552762,512556e-9,0,.619048,.532985,489757e-9,0,.650794,.513219,464139e-9,0,.68254,.493992,442193e-9,0,.714286,.47509,418629e-9,0,.746032,.456287,397045e-9,0,.777778,.438152,375504e-9,0,.809524,.420294,35492e-8,0,.84127,.402749,335327e-9,0,.873016,.385879,316422e-9,0,.904762,.369352,298333e-9,0,.936508,.353301,281417e-9,0,.968254,.337781,265203e-9,0,1,1,968267e-10,0,0,1,968284e-10,0,0,1,968556e-10,0,0,.999999,969733e-10,0,0,.999997,972913e-10,0,0,.999993,979688e-10,0,0,.999984,992239e-10,0,0,.999969,101356e-9,0,0,.999946,104784e-9,0,0,.999913,110111e-9,0,0,.999868,118217e-9,0,0,.999801,130396e-9,0,0,.999712,148523e-9,0,124907e-10,.999589,175233e-9,0,355405e-9,.999416,213999e-9,0,.0013528,.999136,268529e-9,0,.00312557,.998367,333088e-9,0,.00573045,.994701,304757e-9,0,.00919397,.992497,318031e-9,0,.0135261,.990608,353863e-9,0,.0187278,.988715,409044e-9,0,.0247947,.986241,472967e-9,0,.0317196,.981696,495104e-9,0,.039494,.977097,532873e-9,0,.0481087,.972583,594447e-9,0,.0575549,.966142,636867e-9,0,.0678242,.95823,669899e-9,0,.0789089,.949677,719499e-9,0,.0908023,.939226,750584e-9,0,.103499,.927501,793183e-9,0,.116993,.915199,81995e-8,0,.131282,.90498,847654e-9,0,.146364,.894243,868929e-9,0,.162237,.882154,884278e-9,0,.178902,.869161,898108e-9,0,.196358,.854751,901254e-9,0,.21461,.839368,90679e-8,0,.23366,.822874,901541e-9,0,.253512,.805514,897297e-9,0,.274174,.78716,881856e-9,0,.29565,.769061,870032e-9,0,.31795,.751,851719e-9,0,.341081,.732614,830671e-9,0,.365053,.713171,806569e-9,0,.389874,.693472,78338e-8,0,.415553,.673528,756404e-9,0,.442098,.653397,726872e-9,0,.469512,.633781,700494e-9,0,.497794,.613877,67105e-8,0,.526935,.593506,640361e-9,0,.556908,.573667,613502e-9,0,.587657,.553932,583177e-9,0,.61906,.534345,554375e-9,0,.650794,.515042,527811e-9,0,.68254,.495674,499367e-9,0,.714286,.477132,47429e-8,0,.746032,.458609,447726e-9,0,.777778,.440354,424205e-9,0,.809524,.422765,399549e-9,0,.84127,.405472,378315e-9,0,.873016,.388482,355327e-9,0,.904762,.372191,336122e-9,0,.936508,.356099,315247e-9,0,.968254,.340737,29794e-8,0,1,1,143327e-9,0,0,1,14333e-8,0,0,1,143366e-9,0,0,.999999,143524e-9,0,0,.999996,143952e-9,0,0,.999991,144862e-9,0,0,.999981,146544e-9,0,0,.999966,149391e-9,0,0,.999941,153946e-9,0,0,.999905,160971e-9,0,0,.999852,171562e-9,0,0,.99978,18729e-8,0,0,.999681,210386e-9,0,826239e-10,.999546,243906e-9,0,664807e-9,.999352,291739e-9,0,.00196192,.999027,357419e-9,0,.00405941,.997886,422349e-9,0,.00699664,.99419,385008e-9,0,.0107896,.99214,409775e-9,0,.0154415,.990274,456418e-9,0,.0209488,.988455,527008e-9,0,.0273037,.985804,597685e-9,0,.0344969,.98103,613124e-9,0,.0425183,.976674,668321e-9,0,.0513575,.972021,736985e-9,0,.0610046,.965274,773789e-9,0,.0714508,.958046,830852e-9,0,.0826877,.949333,875766e-9,0,.0947085,.939135,917088e-9,0,.107507,.927119,952244e-9,0,.121078,.91469,990626e-9,0,.135419,.903006,.00101304,0,.150526,.892368,.00103834,0,.166399,.880231,.00105002,0,.183038,.867432,.00106331,0,.200443,.853208,.00106783,0,.218618,.837956,.00106458,0,.237566,.821772,.00105945,0,.257291,.804328,.00104685,0,.2778,.786465,.00103178,0,.2991,.768004,.00101077,0,.321199,.74972,985504e-9,0,.344106,.731682,962893e-9,0,.36783,.712813,932146e-9,0,.392383,.693139,89871e-8,0,.417774,.673566,869678e-9,0,.444013,.653483,835525e-9,0,.471107,.633891,799853e-9,0,.49906,.614433,766838e-9,0,.527869,.594586,732227e-9,0,.557517,.574769,696442e-9,0,.587966,.555149,663935e-9,0,.61913,.535898,629826e-9,0,.650794,.516753,596486e-9,0,.68254,.497816,567078e-9,0,.714286,.479034,534399e-9,0,.746032,.460975,507013e-9,0,.777778,.442935,477421e-9,0,.809524,.425263,451101e-9,0,.84127,.408248,424964e-9,0,.873016,.391339,39993e-8,0,.904762,.37513,377619e-9,0,.936508,.359172,354418e-9,0,.968254,.343876,334823e-9,0,1,1,209042e-9,0,0,1,209045e-9,0,0,1,209093e-9,0,0,.999999,209304e-9,0,0,.999996,209871e-9,0,0,.999991,211078e-9,0,0,.999979,213304e-9,0,0,.999963,217061e-9,0,0,.999933,223042e-9,0,0,.999894,232206e-9,0,0,.999837,245901e-9,0,0,.999756,266023e-9,0,102927e-11,.999648,295204e-9,0,233468e-9,.999499,336958e-9,0,.00108237,.999283,395563e-9,0,.00268832,.998896,473785e-9,0,.00511138,.997006,520008e-9,0,.00837705,.993819,497261e-9,0,.0124928,.991632,523722e-9,0,.0174561,.989875,587258e-9,0,.0232596,.988109,676329e-9,0,.0298932,.985155,747701e-9,0,.0373453,.980479,768803e-9,0,.0456045,.976271,841054e-9,0,.0546593,.971347,911469e-9,0,.0644994,.964528,953057e-9,0,.0751152,.957632,.00102221,0,.0864981,.948681,.00106122,0,.0986407,.938716,.00111857,0,.111537,.926629,.00114762,0,.125182,.914025,.00118995,0,.139571,.901026,.00121228,0,.154703,.890358,.00123946,0,.170576,.878283,.0012527,0,.18719,.865459,.00125536,0,.204547,.851407,.00126134,0,.222648,.836276,.00124759,0,.241498,.820436,.00124443,0,.261101,.803253,.00122071,0,.281465,.785562,.00120107,0,.302595,.76718,.00117762,0,.324501,.748551,.00114289,0,.347192,.730564,.00110872,0,.370679,.712253,.00107636,0,.394973,.692867,.00103646,0,.420085,.673695,996793e-9,0,.446027,.653912,95675e-8,0,.47281,.634129,916739e-9,0,.500441,.615004,874401e-9,0,.528921,.595587,833411e-9,0,.558244,.575965,794556e-9,0,.588384,.5566,75196e-8,0,.619281,.537428,716381e-9,0,.650795,.518623,676558e-9,0,.68254,.499964,64074e-8,0,.714286,.481356,605984e-9,0,.746032,.463279,570256e-9,0,.777778,.445673,540138e-9,0,.809524,.428032,507299e-9,0,.84127,.411112,479553e-9,0,.873016,.394444,450737e-9,0,.904762,.378247,424269e-9,0,.936508,.362415,399111e-9,0,.968254,.347103,375274e-9,0,1,1,300729e-9,0,0,1,300733e-9,0,0,1,300797e-9,0,0,.999998,301072e-9,0,0,.999996,301817e-9,0,0,.999989,303398e-9,0,0,.999977,306309e-9,0,0,.999958,311209e-9,0,0,.999927,318975e-9,0,0,.999884,330804e-9,0,0,.99982,34834e-8,0,0,.999733,373854e-9,0,326995e-10,.999613,410424e-9,0,477174e-9,.999447,462047e-9,0,.00161099,.999204,533322e-9,0,.00353153,.998725,624964e-9,0,.00627965,.995871,631786e-9,0,.0098693,.993194,632017e-9,0,.0143011,.991541,68923e-8,0,.019568,.989773,766892e-9,0,.0256593,.987647,863668e-9,0,.0325625,.984193,922089e-9,0,.0402647,.980016,970749e-9,0,.0487532,.975859,.00106027,0,.058016,.970514,.00112239,0,.0680419,.963625,.00117212,0,.0788208,.956959,.00125211,0,.0903439,.947956,.00129411,0,.102604,.93809,.00135879,0,.115594,.92659,.00139309,0,.129309,.913829,.00143253,0,.143745,.90005,.00145809,0,.158901,.888129,.0014748,0,.174774,.87607,.00148756,0,.191365,.863461,.00148714,0,.208674,.849594,.00148892,0,.226705,.834531,.00146496,0,.245461,.81903,.0014579,0,.264947,.802122,.00143039,0,.28517,.78445,.00139717,0,.306137,.766434,.00136312,0,.327857,.747816,.00132597,0,.350341,.729519,.00128323,0,.373598,.711454,.00123803,0,.397642,.692699,.00119097,0,.422485,.673723,.00114565,0,.448139,.654386,.00109552,0,.474619,.634673,.00104553,0,.501933,.615554,99985e-8,0,.530089,.596462,948207e-9,0,.559087,.577385,902299e-9,0,.588913,.558257,856448e-9,0,.619525,.5392,810395e-9,0,.650826,.520543,768558e-9,0,.68254,.502206,7239e-7,0,.714286,.48402,685794e-9,0,.746032,.465779,64471e-8,0,.777778,.448455,609583e-9,0,.809524,.431091,57227e-8,0,.84127,.414147,54042e-8,0,.873016,.39765,506545e-9,0,.904762,.381576,477635e-9,0,.936508,.365881,448446e-9,0,.968254,.350582,421424e-9,0,1,1,427144e-9,0,0,1,427151e-9,0,0,1,427232e-9,0,0,.999998,42759e-8,0,0,.999995,428555e-9,0,0,.999988,430603e-9,0,0,.999976,434368e-9,0,0,.999952,440688e-9,0,0,.999919,450667e-9,0,0,.999871,46578e-8,0,0,.999801,488024e-9,0,0,.999704,520092e-9,0,129791e-9,.999572,565553e-9,0,821056e-9,.999389,628906e-9,0,.00225241,.999114,714911e-9,0,.00449109,.998488,819218e-9,0,.00756249,.995234,80415e-8,0,.0114716,.993021,830181e-9,0,.0162131,.991407,902645e-9,0,.021776,.989625,996934e-9,0,.0281471,.987064,.00109707,0,.0353118,.983265,.00114353,0,.0432562,.979535,.0012272,0,.0519665,.975224,.00132642,0,.0614298,.969574,.00138092,0,.0716348,.963021,.00145896,0,.0825709,.956046,.00152834,0,.094229,.947136,.00158217,0,.106602,.937313,.0016347,0,.119682,.926073,.00168383,0,.133465,.913121,.00171627,0,.147947,.899165,.00174229,0,.163125,.885891,.00176137,0,.178998,.873783,.00176406,0,.195566,.861331,.00176156,0,.21283,.847569,.00175346,0,.230793,.832785,.00172753,0,.249459,.817442,.00170204,0,.268832,.800613,.00166576,0,.28892,.783597,.00162909,0,.30973,.76571,.0015826,0,.331271,.747021,.00153106,0,.353554,.728593,.00148036,0,.37659,.710661,.00142808,0,.400391,.692426,.00136906,0,.424973,.673623,.00131066,0,.450347,.65494,.00125569,0,.476531,.635448,.00119517,0,.503535,.616221,.00113828,0,.531372,.597531,.0010816,0,.560047,.578795,.00102673,0,.589554,.559892,970985e-9,0,.619869,.541307,919773e-9,0,.650923,.522608,868479e-9,0,.68254,.504484,82137e-8,0,.714286,.486603,772916e-9,0,.746032,.468802,730353e-9,0,.777778,.451172,684955e-9,0,.809524,.434348,647565e-9,0,.84127,.417445,605863e-9,0,.873016,.401077,571885e-9,0,.904762,.385039,536034e-9,0,.936508,.369483,504227e-9,0,.968254,.354272,473165e-9,0,1,1,599525e-9,0,0,1,599533e-9,0,0,1,599639e-9,0,0,.999998,600097e-9,0,0,.999994,601336e-9,0,0,.999987,603958e-9,0,0,.999972,608775e-9,0,0,.999949,616842e-9,0,0,.999912,629534e-9,0,0,.999857,648658e-9,0,0,.999781,676615e-9,0,538873e-11,.999674,716574e-9,0,308602e-9,.999528,772641e-9,0,.00127003,.999326,849806e-9,0,.00300783,.999009,952682e-9,0,.00556637,.998112,.00106394,0,.00895889,.994496,.00102228,0,.0131827,.992806,.00108586,0,.0182277,.991211,.0011759,0,.0240795,.989415,.00128955,0,.030723,.986499,.00139038,0,.0381418,.982679,.00144539,0,.046321,.978839,.00153954,0,.0552459,.974295,.00164417,0,.0649034,.968784,.00171517,0,.0752814,.962324,.00180282,0,.0863693,.954956,.00186387,0,.0981578,.94624,.00193817,0,.110639,.936517,.00198156,0,.123806,.925186,.00203042,0,.137655,.91252,.0020664,0,.15218,.898441,.00207822,0,.16738,.884394,.0020992,0,.183253,.871273,.00208748,0,.199799,.859057,.00208686,0,.21702,.845243,.00205519,0,.234918,.830723,.00202868,0,.253496,.815801,.00199501,0,.272761,.79914,.00194193,0,.292719,.782372,.00188824,0,.313377,.76482,.00183695,0,.334745,.746586,.00177418,0,.356833,.7281,.00170628,0,.379654,.709842,.00164063,0,.403221,.692019,.00157355,0,.427548,.67364,.00150262,0,.452651,.655277,.00143473,0,.478545,.636438,.00136371,0,.505246,.617364,.00129911,0,.532768,.598603,.00123014,0,.561122,.580195,.00116587,0,.590309,.561786,.00110398,0,.620318,.543377,.00104148,0,.651102,.525093,983984e-9,0,.682545,.506791,92667e-8,0,.714286,.489291,874326e-9,0,.746032,.471811,821734e-9,0,.777778,.454435,774698e-9,0,.809524,.437493,727302e-9,0,.84127,.420977,684039e-9,0,.873016,.404729,64373e-8,0,.904762,.388756,60285e-8,0,.936508,.373344,56765e-8,0,.968254,.358191,531929e-9,0,1,1,832169e-9,0,0,1,832178e-9,0,0,1,83231e-8,0,0,.999998,832893e-9,0,0,.999995,834465e-9,0,0,.999985,837791e-9,0,0,.999969,843893e-9,0,0,.999944,854086e-9,0,0,.999903,870071e-9,0,0,.999843,894042e-9,0,0,.999759,928865e-9,0,531805e-10,.999643,978242e-9,0,579365e-9,.99948,.00104684,0,.00182774,.999255,.00114012,0,.00387804,.998885,.00126188,0,.00675709,.997405,.00135888,0,.010468,.99424,.00133626,0,.0150018,.992458,.00140905,0,.0203443,.990929,.00152305,0,.0264786,.989116,.00165882,0,.0333875,.985624,.00174128,0,.0410536,.982003,.00182108,0,.0494609,.978336,.00194498,0,.0585941,.973184,.00202708,0,.0684396,.9678,.00212166,0,.0789851,.961348,.00221366,0,.0902199,.953841,.00228219,0,.102134,.94534,.00235662,0,.114721,.935552,.00240572,0,.127972,.924064,.00244405,0,.141884,.911827,.00247557,0,.156451,.897731,.00248374,0,.171672,.883409,.00249863,0,.187545,.868625,.00246688,0,.20407,.856529,.00246523,0,.221249,.842999,.00242368,0,.239083,.828505,.00237354,0,.257578,.813825,.00232588,0,.276738,.797813,.00226731,0,.296569,.781097,.00219704,0,.31708,.764038,.00212394,0,.338281,.746067,.00204786,0,.360181,.727687,.00196728,0,.382794,.709571,.00188779,0,.406133,.691503,.00180532,0,.430213,.673673,.00171849,0,.45505,.655732,.00164147,0,.480662,.637399,.00155858,0,.507065,.618616,.00147641,0,.534278,.60005,.00140125,0,.562313,.581713,.00132441,0,.59118,.563546,.00125014,0,.620875,.545605,.00118249,0,.651373,.527559,.0011116,0,.682593,.509764,.00104979,0,.714286,.49193,985977e-9,0,.746032,.475011,928592e-9,0,.777778,.457878,873466e-9,0,.809524,.440979,819585e-9,0,.84127,.424613,772365e-9,0,.873016,.408549,722195e-9,0,.904762,.392771,680014e-9,0,.936508,.377317,636797e-9,0,.968254,.362352,598318e-9,0,1,1,.00114313,0,0,1,.00114314,0,0,.999999,.00114331,0,0,.999998,.00114404,0,0,.999994,.00114601,0,0,.999984,.00115019,0,0,.999967,.00115784,0,0,.999937,.0011706,0,0,.999894,.00119054,0,0,.999828,.00122031,0,0,.999735,.00126331,0,169263e-9,.999606,.00132382,0,949167e-9,.999426,.0014071,0,.00249668,.999173,.00151895,0,.00486392,.99873,.00166102,0,.00806323,.996243,.0017023,0,.0120895,.993779,.00172782,0,.0169288,.9919,.0018108,0,.0225633,.990524,.00196028,0,.028974,.98868,.00212014,0,.036142,.984663,.00217598,0,.044049,.981457,.00230563,0,.0526781,.977608,.00243966,0,.0620137,.972215,.00251336,0,.0720418,.966798,.0026285,0,.0827499,.960241,.00271409,0,.0941271,.952489,.00278381,0,.106164,.944127,.00285399,0,.118852,.934282,.00290994,0,.132185,.923271,.00294558,0,.146157,.910803,.00296269,0,.160766,.896705,.00296803,0,.176007,.88238,.00296637,0,.19188,.867116,.00293163,0,.208385,.853636,.00289418,0,.225523,.840469,.00284663,0,.243296,.82639,.00278594,0,.261709,.811759,.00271618,0,.280767,.796113,.00263187,0,.300476,.779518,.00254589,0,.320845,.763142,.00246003,0,.341883,.745464,.00236529,0,.363601,.727491,.00226536,0,.386011,.709414,.00216375,0,.409128,.691396,.00207127,0,.432967,.67368,.00197106,0,.457545,.656049,.00187022,0,.482881,.638188,.00177605,0,.508992,.620177,.00168482,0,.535899,.601506,.00158909,0,.563619,.58362,.00150583,0,.592165,.565496,.00141791,0,.621544,.54789,.00133693,0,.651743,.530323,.00126038,0,.682709,.512795,.00118556,0,.714286,.495199,.00111527,0,.746032,.478101,.0010489,0,.777778,.461511,984264e-9,0,.809524,.444879,92591e-8,0,.84127,.428424,866582e-9,0,.873016,.412495,814463e-9,0,.904762,.396975,764498e-9,0,.936508,.381614,715967e-9,0,.968254,.366732,672483e-9,0,1,1,.00155501,0,0,1,.00155503,0,0,1,.00155524,0,0,.999998,.00155615,0,0,.999994,.0015586,0,0,.999983,.00156379,0,0,.999963,.0015733,0,0,.999932,.00158911,0,0,.999882,.00161376,0,0,.99981,.00165041,0,100875e-10,.999708,.00170304,0,367658e-9,.999565,.00177658,0,.0014234,.999368,.00187688,0,.00327939,.999081,.00200989,0,.00596629,.99852,.00217177,0,.0094852,.99549,.0021745,0,.013824,.993252,.00222357,0,.0189642,.991727,.00235022,0,.0248856,.989951,.00250561,0,.0315669,.988029,.00268829,0,.0389882,.984029,.0027496,0,.0471302,.980683,.00289793,0,.0559754,.976554,.00303315,0,.0655081,.97139,.00313257,0,.0757138,.965544,.00323656,0,.08658,.95912,.00333432,0,.0980954,.951183,.0034039,0,.110251,.942974,.00347515,0,.123038,.932642,.00350381,0,.13645,.922158,.00354519,0,.150482,.909404,.00353851,0,.165129,.896071,.0035435,0,.18039,.881206,.00349936,0,.196263,.866077,.00347256,0,.212748,.85093,.003415,0,.229847,.837703,.00333367,0,.247561,.823878,.003249,0,.265895,.809449,.00316347,0,.284854,.794379,.00306351,0,.304445,.778138,.0029499,0,.324675,.761997,.00284099,0,.345555,.744938,.00272104,0,.367095,.727212,.00260715,0,.389309,.709549,.00248855,0,.41221,.691704,.00236783,0,.435814,.673689,.00225178,0,.460138,.656453,.00213765,0,.485203,.639128,.00202178,0,.511028,.621512,.00191443,0,.537634,.603598,.00180977,0,.565041,.58559,.00170456,0,.593268,.567852,.00160927,0,.622327,.5503,.00151395,0,.652217,.533033,.00142499,0,.682907,.515942,.00133955,0,.714296,.498814,.0012602,0,.746032,.481595,.00118188,0,.777778,.465117,.00111171,0,.809524,.448865,.00104091,0,.84127,.432711,976618e-9,0,.873016,.416822,91859e-8,0,.904762,.401272,857704e-9,0,.936508,.386226,807172e-9,0,.968254,.371321,75464e-8,0,1,1,.00209596,0,0,1,.00209598,0,0,1,.00209624,0,0,.999997,.00209736,0,0,.999991,.00210039,0,0,.999979,.00210678,0,0,.999959,.00211847,0,0,.999925,.0021379,0,0,.99987,.00216809,0,0,.999791,.00221281,0,681487e-10,.999677,.00227669,0,658161e-9,.999521,.00236533,0,.00200635,.999301,.00248514,0,.0041779,.998977,.00264185,0,.00718648,.998191,.00281695,0,.0110239,.994801,.00278518,0,.015672,.993091,.00288774,0,.0211091,.991571,.00303931,0,.0273123,.9897,.00321643,0,.034259,.987023,.00337332,0,.0419282,.983289,.00346146,0,.0502998,.979892,.00363704,0,.0593562,.975111,.00373601,0,.069081,.970351,.0038842,0,.0794598,.964131,.00397053,0,.0904798,.957747,.00408078,0,.10213,.949536,.00413533,0,.1144,.941372,.00420305,0,.127284,.931049,.00422815,0,.140772,.920647,.00425048,0,.154862,.908033,.0042281,0,.169548,.895028,.00422026,0,.184828,.879968,.00415042,0,.200701,.864875,.00408821,0,.217167,.84918,.00400909,0,.234227,.834934,.00391178,0,.251884,.821397,.00380066,0,.270141,.807135,.00367974,0,.289004,.792363,.00355172,0,.308479,.776661,.003411,0,.328575,.760705,.00328123,0,.349301,.744408,.00314003,0,.370668,.726994,.0029906,0,.392689,.709598,.00285034,0,.415379,.692112,.00271179,0,.438754,.674435,.00257185,0,.46283,.65676,.00243425,0,.48763,.639982,.00230351,0,.513173,.622983,.0021777,0,.539482,.605471,.00204991,0,.566579,.58796,.00193759,0,.594488,.570463,.00181976,0,.623226,.553058,.00171497,0,.6528,.535894,.00161109,0,.683198,.519089,.00151394,0,.714354,.502454,.00142122,0,.746032,.485681,.00133488,0,.777778,.468935,.00124975,0,.809524,.452951,.00117309,0,.84127,.437139,.00110155,0,.873016,.421446,.00103124,0,.904762,.405951,966387e-9,0,.936508,.391003,908119e-9,0,.968254,.376198,848057e-9,0,1,1,.00280076,0,0,1,.00280078,0,0,.999999,.00280109,0,0,.999997,.00280246,0,0,.999992,.00280616,0,0,.999979,.00281396,0,0,.999956,.00282822,0,0,.999916,.00285186,0,0,.999857,.0028885,0,0,.999768,.00294259,0,196026e-9,.999645,.00301946,0,.00104842,.99947,.00312541,0,.00270199,.999229,.00326733,0,.00519449,.998852,.00344992,0,.00852602,.997558,.00361052,0,.0126804,.994417,.0035898,0,.017635,.992824,.00372393,0,.023365,.991344,.00390695,0,.0298456,.989337,.00410392,0,.0370529,.985811,.00420987,0,.0449651,.982772,.00437488,0,.0535615,.979001,.00455069,0,.0628243,.974102,.00464462,0,.0727368,.969197,.00480577,0,.0832844,.962759,.00487818,0,.0944545,.956207,.00498176,0,.106236,.947909,.00503392,0,.118619,.939596,.00507474,0,.131595,.929642,.00509798,0,.145159,.918807,.00508476,0,.159305,.906921,.00505634,0,.174028,.893312,.00498845,0,.189327,.878933,.0049133,0,.2052,.863986,.0048259,0,.221647,.847936,.00470848,0,.23867,.832253,.00456889,0,.25627,.818619,.00442726,0,.274453,.804788,.00427677,0,.293222,.790241,.00411906,0,.312585,.775162,.00394833,0,.33255,.759463,.00377366,0,.353126,.743598,.00361026,0,.374324,.72697,.00343627,0,.396158,.709646,.00326422,0,.418641,.69277,.00309717,0,.44179,.675371,.0029356,0,.465624,.657863,.00277712,0,.490163,.640772,.00261738,0,.515429,.624441,.0024737,0,.541445,.607497,.00233125,0,.568236,.590438,.00218994,0,.595828,.573224,.0020664,0,.624242,.556168,.00193526,0,.653496,.539232,.00182463,0,.683588,.522352,.00170735,0,.714482,.506172,.00160555,0,.746032,.489842,.00150451,0,.777778,.473463,.00140938,0,.809524,.457266,.00132568,0,.84127,.441609,.0012376,0,.873016,.426348,.00116265,0,.904762,.411002,.00108935,0,.936508,.396045,.00101946,0,.968254,.381448,955665e-9,0,1,1,.0037121,0,0,1,.00371213,0,0,1,.00371251,0,0,.999997,.00371417,0,0,.99999,.00371863,0,0,.999977,.00372807,0,0,.99995,.00374529,0,0,.999908,.0037738,0,0,.999843,.00381789,0,123596e-10,.999745,.00388273,0,407442e-9,.999608,.00397443,0,.0015447,.999415,.00409998,0,.00351385,.999143,.00426662,0,.0063316,.9987,.00447625,0,.00998679,.996363,.00455323,0,.0144569,.994021,.00461052,0,.0197151,.992372,.00476359,0,.0257344,.991007,.00499101,0,.0324882,.988767,.0051972,0,.0399517,.984872,.00528407,0,.0481022,.982004,.00548926,0,.0569191,.977714,.00564385,0,.0663839,.973076,.0057693,0,.0764801,.967565,.0058924,0,.0871928,.961384,.00599629,0,.0985095,.954435,.00605998,0,.110419,.946303,.0061133,0,.122912,.937662,.00612028,0,.13598,.927867,.00612209,0,.149617,.916475,.00604813,0,.163817,.90541,.00603088,0,.178577,.891591,.00592218,0,.193894,.877573,.00578854,0,.209767,.862511,.00566648,0,.226196,.846861,.00551481,0,.243182,.83068,.00533754,0,.260728,.815725,.00515487,0,.278837,.802321,.0049655,0,.297515,.787826,.00475421,0,.316768,.773454,.00456002,0,.336605,.758224,.00434727,0,.357034,.74265,.00414444,0,.378067,.726729,.00393738,0,.399717,.710155,.00373575,0,.421998,.693312,.00353736,0,.444928,.67653,.00334368,0,.468523,.659444,.00315981,0,.492806,.642051,.00297809,0,.517798,.625758,.00280592,0,.543525,.609615,.00264254,0,.570012,.592919,.00248459,0,.597288,.576298,.00233327,0,.625379,.559489,.00219519,0,.654307,.542891,.00205441,0,.684084,.526255,.00193385,0,.714693,.509853,.00180745,0,.746044,.494131,.00169817,0,.777778,.478114,.0015913,0,.809524,.462274,.00148981,0,.84127,.446412,.00139537,0,.873016,.431274,.00130984,0,.904762,.41635,.00122403,0,.936508,.401476,.00114809,0,.968254,.386993,.00107563,0,1,1,.00488216,0,0,1,.0048822,0,0,1,.00488265,0,0,.999997,.00488463,0,0,.999988,.00488999,0,0,.999974,.00490129,0,0,.999946,.00492191,0,0,.999897,.00495598,0,0,.999825,.00500855,0,744791e-10,.999718,.00508559,0,712744e-9,.999565,.005194,0,.00215249,.999352,.00534147,0,.00444576,.999046,.00553523,0,.00759218,.998492,.00577016,0,.0115714,.995564,.00578487,0,.0163557,.993339,.00586414,0,.021915,.991834,.00606002,0,.0282201,.990496,.00633312,0,.0352433,.987826,.00651941,0,.042959,.98383,.00660842,0,.0513439,.98109,.00685523,0,.0603772,.976131,.00695778,0,.0700402,.971922,.00714236,0,.0803163,.965901,.00721437,0,.0911908,.959606,.00732017,0,.102651,.952504,.00735788,0,.114686,.944365,.00738493,0,.127286,.935652,.00737969,0,.140443,.925813,.00733612,0,.154151,.914397,.00723094,0,.168405,.903257,.00714002,0,.183201,.890015,.00700149,0,.198536,.876014,.00682813,0,.214409,.861436,.00665567,0,.23082,.845752,.00644526,0,.24777,.829169,.00621635,0,.265263,.813435,.00597789,0,.283301,.799701,.00575694,0,.301889,.785726,.00549866,0,.321035,.77152,.0052503,0,.340746,.75683,.00499619,0,.361032,.741951,.0047543,0,.381904,.726367,.0045084,0,.403374,.710537,.00426784,0,.425457,.693965,.00403487,0,.448169,.677724,.0038075,0,.47153,.66117,.00359431,0,.495561,.644274,.00338354,0,.520284,.627449,.00318163,0,.545725,.611645,.00299672,0,.571911,.595614,.00281016,0,.598873,.579426,.00264252,0,.62664,.563016,.00247509,0,.655239,.546728,.00232647,0,.684692,.530539,.00217803,0,.714999,.514164,.00204216,0,.746106,.498344,.00191403,0,.777778,.482957,.00179203,0,.809524,.467336,.00167695,0,.84127,.451994,.00157567,0,.873016,.436514,.00147113,0,.904762,.42178,.00138034,0,.936508,.407271,.00129219,0,.968254,.392822,.0012098,0,1,1,.00637427,0,0,1,.00637431,0,0,.999999,.00637485,0,0,.999996,.00637721,0,0,.999987,.00638357,0,0,.999971,.006397,0,0,.999939,.00642142,0,0,.999888,.00646177,0,0,.999807,.00652387,0,207916e-9,.999689,.00661454,0,.00112051,.99952,.00674155,0,.00287719,.999283,.00691313,0,.00550145,.998936,.00713598,0,.00897928,.998165,.00738501,0,.0132829,.994847,.00734388,0,.01838,.993182,.00749991,0,.0242381,.991665,.0077246,0,.030826,.989708,.00797579,0,.0381152,.986663,.00813011,0,.0460794,.983288,.00830365,0,.0546951,.980104,.00853496,0,.0639411,.974855,.00861045,0,.0737988,.97045,.00879133,0,.0842516,.964509,.00886377,0,.0952848,.957594,.00890346,0,.106886,.950546,.00893289,0,.119044,.942225,.00890074,0,.131749,.933365,.00886826,0,.144994,.923202,.0087316,0,.158772,.912605,.00863082,0,.173078,.901099,.00847403,0,.187908,.888177,.00825838,0,.203261,.873955,.00801834,0,.219134,.860091,.00779026,0,.235527,.84434,.00752478,0,.252443,.828517,.00724074,0,.269883,.81239,.00693769,0,.287851,.79721,.00664817,0,.306352,.783489,.00634763,0,.325393,.769514,.00604221,0,.344981,.755419,.00573568,0,.365126,.741083,.00544359,0,.385839,.726059,.00515515,0,.407132,.710809,.00487139,0,.42902,.695052,.00459846,0,.45152,.678886,.00433412,0,.474651,.663042,.00407981,0,.498433,.646634,.00384264,0,.52289,.630117,.00360897,0,.548048,.613804,.00338863,0,.573936,.598338,.00318486,0,.600584,.582687,.00298377,0,.628027,.566809,.00280082,0,.656295,.550817,.00262255,0,.685417,.534937,.00245835,0,.715406,.519151,.00230574,0,.74624,.503118,.0021549,0,.777778,.487723,.00202008,0,.809524,.472725,.00189355,0,.84127,.457599,.00177108,0,.873016,.442558,.00165843,0,.904762,.427624,.00155494,0,.936508,.413171,.00145273,0,.968254,.399122,.00136454,0,1,1,.00826496,0,0,1,.00826499,0,0,1,.00826564,0,0,.999996,.00826842,0,0,.999987,.00827589,0,0,.999967,.00829167,0,0,.999933,.00832037,0,0,.999876,.00836768,0,109338e-10,.999786,.00844031,0,427145e-9,.999655,.00854603,0,.0016384,.999468,.00869337,0,.00372392,.999203,.008891,0,.00668513,.998803,.00914387,0,.0104968,.99748,.00935838,0,.015125,.994446,.00933309,0,.0205338,.99292,.00953084,0,.0266884,.991414,.0097893,0,.0335565,.989049,.0100228,0,.0411086,.98582,.0101664,0,.0493181,.982441,.0103582,0,.0581613,.978595,.0105292,0,.0676169,.973495,.0106274,0,.0776661,.968405,.0107261,0,.0882926,.962717,.0108234,0,.0994817,.955478,.0108102,0,.111221,.948275,.0107914,0,.123499,.940006,.0107161,0,.136308,.930831,.0106309,0,.149639,.920648,.0104083,0,.163485,.910205,.0102312,0,.177843,.898445,.0100051,0,.192707,.885986,.00971928,0,.208077,.872204,.00940747,0,.22395,.858436,.0091085,0,.240326,.843454,.00876595,0,.257208,.827437,.00839794,0,.274596,.811488,.00803692,0,.292496,.796039,.00767352,0,.310911,.781083,.0073097,0,.329849,.767642,.00694032,0,.349316,.753901,.00657476,0,.369323,.740131,.00622699,0,.38988,.725845,.0058838,0,.410999,.710991,.00555586,0,.432696,.696002,.00523089,0,.454987,.680461,.00492494,0,.47789,.664875,.00463464,0,.501426,.649273,.00435422,0,.52562,.63302,.0040875,0,.550498,.61705,.00384075,0,.576089,.601154,.00359557,0,.602427,.586008,.00337636,0,.629544,.570699,.00316019,0,.657479,.555166,.00296033,0,.686264,.539645,.00277552,0,.715924,.524159,.00259499,0,.746459,.508682,.00243257,0,.777789,.493163,.00227851,0,.809524,.478004,.00213083,0,.84127,.46347,.00199502,0,.873016,.448778,.00186967,0,.904762,.434105,.00174732,0,.936508,.419576,.00163861,0,.968254,.405541,.00153341,0,1,1,.0106462,0,0,1,.0106462,0,0,.999999,.010647,0,0,.999995,.0106502,0,0,.999985,.0106589,0,0,.999964,.0106773,0,0,.999925,.0107106,0,0,.999861,.0107655,0,712986e-10,.999763,.0108497,0,743959e-9,.999616,.0109716,0,.00227361,.999408,.0111408,0,.0046983,.999112,.0113659,0,.00800158,.998637,.0116475,0,.0121493,.996223,.0117231,0,.0171023,.994006,.0118064,0,.0228218,.992444,.0120254,0,.0292711,.991028,.0123314,0,.036417,.98803,.0124954,0,.0442295,.984816,.0126538,0,.0526815,.981399,.0128537,0,.0617492,.977085,.0129694,0,.0714114,.972154,.013091,0,.0816495,.966617,.0131166,0,.0924472,.960628,.0131583,0,.10379,.953295,.0131094,0,.115665,.94575,.0129966,0,.128062,.937654,.0128796,0,.140972,.927716,.0126477,0,.154387,.917932,.0123889,0,.168301,.907719,.012131,0,.182709,.89584,.0118013,0,.197608,.883526,.0114145,0,.212994,.870301,.0110075,0,.228867,.856272,.0106019,0,.245227,.842251,.0101938,0,.262074,.826466,.00973254,0,.279412,.810859,.0092846,0,.297244,.795051,.00883304,0,.315575,.780053,.00840272,0,.334412,.76575,.00796438,0,.35376,.752298,.00752526,0,.373631,.739153,.00711486,0,.394034,.725514,.00670361,0,.414983,.711473,.00632656,0,.436491,.696936,.00595206,0,.458575,.682126,.00559191,0,.481253,.667027,.00525362,0,.504547,.651875,.00493805,0,.528481,.636463,.00462848,0,.553081,.620641,.00433936,0,.578377,.604931,.00407,0,.604404,.589549,.00380864,0,.631197,.574712,.00357049,0,.658795,.559775,.00334466,0,.687238,.544514,.00312505,0,.716559,.529555,.00293199,0,.746776,.514402,.00274204,0,.777849,.499302,.00256647,0,.809524,.484114,.00239901,0,.84127,.469308,.00225148,0,.873016,.455133,.00210178,0,.904762,.440939,.0019727,0,.936508,.426627,.00184382,0,.968254,.412509,.00172548,0,1,1,.013628,0,0,1,.0136281,0,0,.999999,.0136289,0,0,.999995,.0136327,0,0,.999983,.0136427,0,0,.99996,.0136638,0,0,.999917,.0137022,0,0,.999846,.0137652,0,204597e-9,.999736,.0138615,0,.00116837,.999573,.0140007,0,.00303325,.99934,.0141927,0,.00580613,.999004,.0144457,0,.00945626,.998407,.0147489,0,.0139421,.995464,.014731,0,.0192202,.993328,.0148283,0,.0252495,.991799,.0150797,0,.0319921,.990397,.0154316,0,.0394138,.986835,.0155005,0,.0474843,.983938,.0157308,0,.0561763,.980154,.0158753,0,.0654661,.975659,.0159581,0,.0753326,.970171,.0159832,0,.0857571,.964803,.0160084,0,.0967236,.958366,.0159484,0,.108218,.950613,.0158001,0,.120227,.942874,.0155845,0,.132741,.935005,.0154292,0,.145751,.924991,.0150742,0,.159249,.914814,.0146757,0,.17323,.904743,.0143097,0,.187687,.893216,.0138695,0,.202619,.880769,.0133706,0,.218021,.868136,.0128606,0,.233894,.85469,.0123403,0,.250238,.840593,.0118091,0,.267052,.825808,.011253,0,.284341,.81009,.0107099,0,.302106,.79504,.0101636,0,.320354,.779757,.00964041,0,.33909,.764697,.00911896,0,.358322,.750913,.00859533,0,.378059,.738175,.00811592,0,.398311,.725242,.00764504,0,.41909,.711864,.00718885,0,.440412,.698009,.00675843,0,.462292,.683841,.00634984,0,.484748,.669391,.00595502,0,.507802,.654731,.00558671,0,.531477,.639805,.00523578,0,.555802,.624789,.00490834,0,.580805,.609325,.00459448,0,.606522,.593975,.00430342,0,.63299,.578983,.00403019,0,.66025,.564442,.0037707,0,.688346,.549835,.0035316,0,.717319,.535039,.00330255,0,.7472,.520403,.00308932,0,.777982,.505687,.00289335,0,.809524,.490939,.00270818,0,.84127,.476233,.0025343,0,.873016,.461624,.00237097,0,.904762,.447833,.00222065,0,.936508,.433992,.00207561,0,.968254,.420147,.00194955,0,1,1,.0173415,0,0,1,.0173416,0,0,.999999,.0173426,0,0,.999995,.0173468,0,0,.999983,.0173582,0,0,.999954,.0173822,0,0,.999908,.0174258,0,669501e-11,.999828,.0174973,0,427399e-9,.999705,.0176063,0,.00171019,.999524,.0177631,0,.0039248,.999263,.0179781,0,.00705382,.998878,.018258,0,.0110552,.998012,.0185551,0,.0158812,.994614,.0184264,0,.0214852,.993132,.0186385,0,.0278239,.991563,.0189067,0,.0348585,.989298,.0191577,0,.0425544,.986036,.0192522,0,.050881,.982558,.0194063,0,.059811,.978531,.019486,0,.0693209,.974198,.0195847,0,.0793895,.968148,.0194749,0,.0899984,.962565,.0194277,0,.101132,.956041,.0192991,0,.112775,.947749,.0189893,0,.124917,.94018,.018704,0,.137547,.93165,.0183458,0,.150655,.921798,.0178775,0,.164236,.911573,.0173618,0,.178281,.901569,.0168482,0,.192788,.890341,.016265,0,.207752,.877835,.0156199,0,.223171,.865472,.0149516,0,.239044,.852905,.0143274,0,.255371,.838906,.0136643,0,.272153,.824888,.0129903,0,.289393,.809977,.0123218,0,.307093,.794697,.0116572,0,.325259,.780028,.0110307,0,.343896,.765124,.0104236,0,.363012,.750411,.0098219,0,.382617,.737264,.00924397,0,.402719,.724799,.00868719,0,.423332,.712253,.00816476,0,.444469,.699267,.00767262,0,.466146,.685618,.00719746,0,.488383,.671736,.00673916,0,.511199,.657777,.00631937,0,.534618,.643497,.00592411,0,.558668,.62889,.00553928,0,.58338,.614299,.0051934,0,.608787,.599197,.00485985,0,.634929,.584175,.00454357,0,.661849,.569541,.00425787,0,.689594,.555193,.00397905,0,.718211,.540947,.00372364,0,.747742,.526593,.00348599,0,.778205,.512335,.00326103,0,.80953,.498017,.00305137,0,.84127,.483609,.00285485,0,.873016,.469368,.00267472,0,.904762,.455037,.00249945,0,.936508,.441493,.00234792,0,.968254,.428147,.00219936,0,1,1,.0219422,0,0,1,.0219423,0,0,.999998,.0219434,0,0,.999993,.0219481,0,0,.999981,.021961,0,0,.999949,.0219879,0,0,.999896,.0220367,0,593194e-10,.999808,.0221167,0,75364e-8,.99967,.0222383,0,.00237884,.999466,.0224125,0,.00495612,.999174,.0226495,0,.00844887,.998725,.0229525,0,.0128058,.996979,.0231123,0,.0179742,.994317,.0230742,0,.0239047,.992781,.0232895,0,.0305526,.991191,.0235734,0,.0378786,.987787,.0236152,0,.0458475,.985092,.0237994,0,.0544287,.981121,.0238553,0,.0635952,.976924,.0238706,0,.0733233,.97218,.0238704,0,.0835922,.965956,.0236598,0,.0943839,.959998,.0234735,0,.105682,.953245,.0232277,0,.117474,.944445,.0226973,0,.129747,.937087,.0223527,0,.142491,.928341,.0218144,0,.155697,.9184,.0211516,0,.169358,.907959,.0204553,0,.183469,.89808,.0197673,0,.198024,.887047,.0189915,0,.21302,.875221,.0182082,0,.228455,.86269,.0173584,0,.244329,.850735,.0165718,0,.260639,.837545,.0157524,0,.277389,.823639,.0149482,0,.29458,.809699,.0141431,0,.312216,.794797,.0133527,0,.3303,.780578,.0126193,0,.34884,.766019,.0118914,0,.367842,.751447,.0111839,0,.387315,.737275,.010514,0,.40727,.724545,.00987277,0,.427717,.712644,.00926569,0,.448671,.700432,.00869029,0,.470149,.687664,.00814691,0,.492167,.674288,.00763012,0,.514746,.660966,.00714437,0,.537911,.647264,.00668457,0,.561688,.633431,.00626581,0,.586108,.619133,.00585593,0,.611206,.604935,.00548188,0,.637022,.590236,.00513288,0,.663599,.575473,.0047906,0,.690989,.561228,.00448895,0,.719242,.547054,.00420233,0,.748411,.533175,.00392869,0,.778531,.519163,.00367445,0,.809583,.505328,.00344097,0,.84127,.491446,.00322003,0,.873016,.477356,.00301283,0,.904762,.46356,.00282592,0,.936508,.449623,.00264956,0,.968254,.436068,.00246956,0,1,1,.0276135,0,0,1,.0276136,0,0,.999998,.0276148,0,0,.999993,.0276201,0,0,.999976,.0276342,0,0,.999945,.027664,0,0,.999884,.0277179,0,18679e-8,.999784,.027806,0,.00119607,.99963,.0279394,0,.00318407,.999401,.0281295,0,.00613601,.999066,.0283858,0,.00999963,.998524,.0287027,0,.0147164,.995702,.0286256,0,.0202295,.993593,.0286733,0,.0264876,.992067,.0288989,0,.0334452,.990548,.0292135,0,.0410621,.986775,.0291296,0,.0493032,.984054,.0293099,0,.0581381,.979481,.0291881,0,.0675397,.975297,.0291598,0,.0774848,.96981,.028954,0,.0879528,.963524,.028628,0,.0989258,.957398,.0283135,0,.110388,.950088,.0278469,0,.122327,.941538,.0271798,0,.134729,.933332,.0265388,0,.147587,.924392,.0257776,0,.160889,.914581,.024916,0,.174631,.904347,.0240242,0,.188806,.894324,.0231229,0,.203409,.883724,.022153,0,.218437,.872207,.0211355,0,.233888,.859927,.0201048,0,.249761,.848373,.0191263,0,.266056,.836023,.0181306,0,.282774,.82289,.0171718,0,.299917,.809324,.0162196,0,.317488,.795361,.0152622,0,.335493,.781253,.01439,0,.353936,.767338,.013533,0,.372825,.753156,.0127244,0,.392168,.739122,.0119454,0,.411976,.725358,.0112054,0,.432259,.712949,.010487,0,.453032,.701621,.00984032,0,.47431,.689703,.00921495,0,.496111,.677216,.00862492,0,.518456,.664217,.00806882,0,.541367,.65137,.00755922,0,.564872,.638,.00705705,0,.589001,.62453,.00661266,0,.613789,.610601,.00618432,0,.639277,.59676,.00578033,0,.66551,.582433,.00540927,0,.692539,.568026,.00506104,0,.720422,.55414,.0047353,0,.749216,.540178,.00442889,0,.778974,.526513,.00414363,0,.809711,.512954,.00388237,0,.84127,.499403,.00362875,0,.873016,.486026,.00340827,0,.904762,.472345,.00318598,0,.936508,.458828,.00297635,0,.968254,.445379,.00279447,0,1,1,.0345716,0,0,1,.0345717,0,0,.999999,.034573,0,0,.999991,.0345787,0,0,.999974,.0345941,0,0,.999937,.0346263,0,188589e-11,.999869,.0346847,0,409238e-9,.999757,.0347798,0,.0017674,.999582,.0349233,0,.00413658,.999322,.0351265,0,.00747408,.998939,.0353967,0,.0117157,.998219,.0357018,0,.0167966,.994974,.0354726,0,.0226572,.993201,.0355621,0,.0292445,.991573,.0357641,0,.0365123,.989301,.0359252,0,.0444203,.985712,.0358017,0,.0529334,.982411,.0358353,0,.0620214,.977827,.035617,0,.0716574,.973278,.0354398,0,.0818186,.967397,.0350483,0,.0924846,.960696,.0344795,0,.103638,.954349,.0339861,0,.115263,.946066,.0331323,0,.127348,.938012,.032359,0,.13988,.929413,.0314413,0,.152849,.920355,.0304103,0,.166248,.910586,.0292785,0,.18007,.900609,.0281391,0,.194308,.890093,.0269103,0,.208958,.880013,.0257269,0,.224018,.869001,.0244671,0,.239485,.85751,.0232252,0,.255359,.84582,.0220117,0,.271638,.834383,.0208274,0,.288324,.822158,.0196628,0,.305419,.809056,.0185306,0,.322927,.795832,.0174174,0,.340851,.782547,.0163758,0,.359199,.7689,.015391,0,.377975,.755526,.0144488,0,.397189,.741681,.0135372,0,.416851,.728178,.0126957,0,.436971,.714642,.0118812,0,.457564,.702756,.0111165,0,.478644,.69175,.0104145,0,.500229,.680159,.00974439,0,.522339,.668073,.00911926,0,.544997,.655405,.00851393,0,.56823,.642921,.00797637,0,.592068,.629993,.00745119,0,.616546,.616828,.00696972,0,.641705,.603305,.00652425,0,.66759,.589833,.00610188,0,.694255,.575945,.00570834,0,.72176,.561745,.00533384,0,.750168,.548277,.00500001,0,.779545,.534467,.00467582,0,.809933,.521032,.00438092,0,.841272,.507877,.00410348,0,.873016,.494654,.00383618,0,.904762,.481592,.00358699,0,.936508,.468509,.00337281,0,.968254,.455293,.00316196,0,1,1,.0430698,0,0,1,.0430699,0,0,.999998,.0430713,0,0,.999991,.0430773,0,0,.99997,.0430936,0,0,.999928,.0431277,0,406396e-10,.999852,.0431893,0,744376e-9,.999724,.0432895,0,.0024806,.999527,.0434397,0,.00524779,.99923,.0436507,0,.00898164,.998783,.0439255,0,.0136083,.997507,.0441104,0,.0190582,.994418,.0438225,0,.0252694,.992864,.0439396,0,.0321879,.991127,.0440962,0,.039767,.987331,.0438408,0,.0479667,.984819,.0438991,0,.056752,.980384,.0435906,0,.0660929,.975846,.0432543,0,.075963,.970748,.0428293,0,.0863398,.964303,.042153,0,.0972035,.95772,.0414111,0,.108537,.950747,.0405893,0,.120325,.942533,.0394887,0,.132554,.934045,.0383544,0,.145215,.924942,.037057,0,.158296,.915811,.0356993,0,.17179,.90612,.0342401,0,.185691,.896434,.0328078,0,.199993,.886021,.031288,0,.214691,.876081,.0297776,0,.229782,.865608,.0282334,0,.245265,.854924,.026749,0,.261138,.843607,.02526,0,.277401,.832456,.0238214,0,.294056,.821342,.0224682,0,.311104,.809303,.0211297,0,.328548,.796468,.0198387,0,.346394,.784046,.0186227,0,.364645,.771262,.0174561,0,.38331,.758118,.0163806,0,.402396,.745075,.0153287,0,.421912,.731926,.0143647,0,.44187,.71863,.0134363,0,.462283,.705414,.0125603,0,.483165,.693792,.0117508,0,.504535,.683108,.0110016,0,.52641,.67183,.0102757,0,.548816,.66015,.00962044,0,.571776,.647907,.00898031,0,.595323,.635734,.00840811,0,.619489,.623208,.00786211,0,.644317,.610438,.00734953,0,.669852,.597345,.00687688,0,.696148,.584138,.00643469,0,.723267,.5707,.00602236,0,.75128,.556966,.0056324,0,.780258,.543607,.00528277,0,.810268,.530213,.00493999,0,.841311,.516912,.00462265,0,.873016,.503916,.0043307,0,.904762,.491146,.00406858,0,.936508,.478439,.00381436,0,.968254,.465834,.00358003,0,1,1,.0534039,0,0,1,.053404,0,0,.999998,.0534055,0,0,.999989,.0534116,0,0,.999968,.0534283,0,0,.999918,.0534633,0,155895e-9,.99983,.0535262,0,.00120914,.999685,.0536281,0,.00334944,.999461,.0537799,0,.00653077,.999119,.0539902,0,.0106718,.998582,.0542524,0,.0156907,.995919,.0540318,0,.0215147,.993735,.0538914,0,.0280801,.992126,.0539557,0,.0353323,.990266,.0540401,0,.0432247,.986317,.0536064,0,.0517172,.983213,.0534425,0,.0607754,.978303,.0528622,0,.0703698,.973665,.0523363,0,.0804742,.968091,.0516165,0,.0910667,.961026,.0505434,0,.102128,.954333,.049523,0,.113641,.946372,.0481698,0,.125591,.938254,.0467674,0,.137965,.929516,.0452341,0,.150754,.920106,.0435083,0,.163947,.910899,.0417399,0,.177537,.901532,.0399389,0,.191516,.891919,.0380901,0,.205881,.882006,.0362341,0,.220626,.871965,.0343444,0,.235749,.862145,.0324832,0,.251248,.852058,.0306681,0,.267121,.84161,.0289097,0,.283368,.830806,.0272079,0,.299992,.820476,.0256089,0,.316992,.809514,.0240394,0,.334374,.797865,.0225379,0,.35214,.785621,.0211235,0,.370296,.773765,.0197908,0,.388849,.761629,.0185235,0,.407807,.748891,.0173358,0,.427178,.736437,.0162305,0,.446974,.723707,.0151778,0,.467207,.710606,.0141791,0,.487892,.698019,.0132592,0,.509046,.686203,.0123887,0,.530687,.675692,.0115976,0,.552839,.664826,.0108325,0,.575527,.65349,.0101348,0,.59878,.641774,.00947756,0,.622634,.629794,.00886058,0,.647128,.617647,.00828526,0,.672308,.60534,.00775312,0,.698231,.592718,.00726033,0,.724958,.579746,.00679731,0,.752563,.566763,.00636111,0,.781127,.553515,.00595228,0,.810733,.540118,.00556876,0,.841426,.527325,.00523051,0,.873016,.514265,.00490712,0,.904762,.501406,.00460297,0,.936508,.488922,.00431247,0,.968254,.476541,.0040472,0,1,1,.0659184,0,0,1,.0659185,0,0,.999998,.06592,0,0,.999988,.0659259,0,0,.999963,.0659423,0,0,.999907,.0659764,0,374198e-9,.999806,.0660376,0,.00182071,.999639,.0661361,0,.0043894,.999378,.0662814,0,.00800055,.998985,.0664779,0,.0125594,.998285,.0666914,0,.0179786,.995071,.0661989,0,.0241822,.993172,.0660454,0,.031106,.991438,.0660105,0,.0386952,.988428,.0656875,0,.0469032,.985218,.0652913,0,.0556905,.981128,.0647107,0,.065023,.976015,.0638491,0,.0748717,.97097,.062993,0,.0852112,.964582,.0617927,0,.0960199,.957383,.0603626,0,.107279,.949969,.0588128,0,.118971,.941843,.0570274,0,.131084,.933624,.0551885,0,.143604,.924543,.053122,0,.156521,.914919,.0508897,0,.169825,.905773,.0486418,0,.18351,.896434,.0463364,0,.197569,.887195,.0440623,0,.211997,.877706,.0417799,0,.226789,.867719,.03945,0,.241944,.858587,.037243,0,.257458,.849317,.0350956,0,.273331,.839585,.0329852,0,.289563,.829856,.0310028,0,.306154,.819589,.0290953,0,.323108,.809714,.0272738,0,.340426,.79934,.0255631,0,.358113,.788224,.0239175,0,.376175,.776619,.0223831,0,.394616,.76521,.0209298,0,.413445,.753716,.0195786,0,.432671,.741564,.0183001,0,.452305,.729413,.0171259,0,.472358,.717146,.0159933,0,.492845,.70436,.0149495,0,.513783,.69219,.0139681,0,.535189,.680289,.0130577,0,.557087,.669611,.0122198,0,.5795,.659113,.0114174,0,.602459,.648148,.0106729,0,.625997,.636905,.00998997,0,.650154,.625154,.00934313,0,.674976,.613481,.00874839,0,.700518,.60154,.00818265,0,.726845,.58943,.00766889,0,.754032,.576828,.00717153,0,.782167,.564194,.00672696,0,.811344,.551501,.00630863,0,.841644,.538635,.00592177,0,.873016,.525724,.00554888,0,.904762,.513209,.00520225,0,.936508,.500457,.00488231,0,.968254,.48799,.00457153,0,1,1,.0810131,0,0,1,.0810133,0,0,.999997,.0810145,0,0,.999985,.08102,0,0,.999956,.0810347,0,195026e-10,.999893,.0810656,0,719316e-9,.999777,.0811205,0,.00259774,.999583,.081208,0,.00561807,.999281,.0813343,0,.00967472,.998813,.0814969,0,.0146627,.997597,.0815217,0,.0204902,.994379,.0808502,0,.0270802,.992744,.0806792,0,.0343674,.990745,.0804589,0,.0422974,.986646,.0796107,0,.0508242,.983611,.0790913,0,.0599087,.978869,.0780746,0,.0695175,.973475,.0768218,0,.0796223,.967845,.0754926,0,.0901983,.960778,.0737063,0,.101224,.953333,.0718052,0,.112682,.945274,.0695946,0,.124555,.936955,.0672492,0,.136831,.928319,.0647732,0,.149496,.919075,.0620947,0,.162542,.909114,.0591816,0,.175958,.900137,.0563917,0,.189739,.891069,.0535392,0,.203877,.882262,.0507642,0,.218368,.873232,.0479793,0,.233208,.864042,.045226,0,.248393,.855002,.0425413,0,.263923,.846569,.0400126,0,.279796,.837714,.0375269,0,.296012,.828918,.0352027,0,.312573,.819783,.0330011,0,.329479,.810129,.0308908,0,.346734,.800866,.0289112,0,.364342,.79093,.0270255,0,.382307,.780593,.0252758,0,.400637,.769511,.0236178,0,.419337,.758558,.0220652,0,.438418,.747632,.0206289,0,.457889,.736146,.0192873,0,.477761,.724093,.0180333,0,.49805,.71234,.0168264,0,.51877,.700201,.015746,0,.53994,.687949,.0147027,0,.561581,.676163,.0137512,0,.583718,.665001,.0128655,0,.60638,.65472,.0120366,0,.629599,.644213,.0112604,0,.653415,.633382,.0105413,0,.677874,.62212,.00986498,0,.70303,.610631,.00923308,0,.728948,.599078,.00864206,0,.755706,.587519,.00811784,0,.783396,.575505,.00761237,0,.812121,.563148,.00713949,0,.841989,.550828,.00668379,0,.873035,.538458,.00627715,0,.904762,.525905,.00588336,0,.936508,.513517,.00552687,0,.968254,.501395,.00519681,0,1,1,.0991506,0,0,1,.0991504,0,0,.999996,.0991515,0,0,.999984,.0991558,0,0,.999947,.0991672,0,114389e-9,.999874,.0991912,0,.00121503,.999739,.0992331,0,.00356108,.999514,.0992983,0,.00705578,.999159,.0993877,0,.011574,.998586,.0994837,0,.017003,.995731,.0988425,0,.0232484,.993384,.098276,0,.0302318,.991615,.0979269,0,.0378884,.989029,.0973432,0,.0461641,.985373,.0963539,0,.0550136,.981278,.0952306,0,.0643988,.975777,.0936233,0,.0742868,.970526,.0920219,0,.0846501,.963755,.0898912,0,.0954644,.956676,.0876064,0,.106709,.948099,.0847751,0,.118367,.939718,.0818638,0,.130423,.931305,.078857,0,.142862,.922342,.0756127,0,.155674,.912842,.0721473,0,.168849,.903304,.0686195,0,.182378,.89411,.0650589,0,.196255,.885512,.0616022,0,.210473,.877193,.0582434,0,.225027,.86877,.0548979,0,.239915,.860267,.0516095,0,.255132,.851915,.048468,0,.270678,.843912,.0454447,0,.286551,.83604,.0425612,0,.302751,.828245,.0398752,0,.31928,.820159,.0373198,0,.336138,.81167,.034916,0,.35333,.802659,.0326402,0,.370858,.793921,.0304901,0,.388728,.784713,.0284857,0,.406944,.774946,.0266186,0,.425515,.76448,.0248593,0,.444449,.753793,.0232114,0,.463756,.743506,.0217039,0,.483447,.732555,.0202841,0,.503535,.720965,.0189648,0,.524036,.709422,.0177189,0,.544968,.697756,.0165626,0,.56635,.685565,.015483,0,.588208,.673987,.0144892,0,.610569,.66244,.0135607,0,.633466,.651675,.0126956,0,.656936,.641598,.0118788,0,.681025,.63121,.0111261,0,.705788,.620514,.010437,0,.731289,.609366,.00978747,0,.757606,.598137,.00917257,0,.784834,.586966,.00859778,0,.813085,.575549,.00806803,0,.842485,.563797,.00757294,0,.87313,.551758,.00710592,0,.904762,.539894,.0066841,0,.936508,.527901,.00627901,0,.968254,.515819,.00590506,0,1,1,.120864,0,0,1,.120864,0,0,.999996,.120864,0,0,.99998,.120867,0,0,.99994,.120872,0,323781e-9,.999852,.120884,0,.00188693,.999693,.120903,0,.00473489,.999426,.120929,0,.00872704,.999002,.120955,0,.0137237,.998235,.120918,0,.0196068,.994608,.119764,0,.0262803,.992997,.119265,0,.0336657,.990968,.11863,0,.0416987,.987002,.117261,0,.0503261,.983524,.116009,0,.0595035,.97875,.114252,0,.0691935,.972652,.11193,0,.0793645,.966613,.109555,0,.0899894,.959275,.106612,0,.101045,.951272,.103375,0,.112512,.942323,.0996594,0,.124372,.933679,.0958841,0,.136611,.924822,.0919265,0,.149216,.915742,.0878061,0,.162176,.906348,.0834894,0,.175482,.896883,.079085,0,.189125,.88774,.0746745,0,.203098,.87986,.0705773,0,.217396,.871998,.0665005,0,.232015,.864325,.0625413,0,.24695,.856685,.0586781,0,.2622,.84925,.0550063,0,.277761,.841719,.0514727,0,.293634,.834755,.0481398,0,.309819,.827853,.0450172,0,.326315,.820888,.0420969,0,.343126,.813616,.0393702,0,.360254,.805767,.0367771,0,.377701,.797338,.0343274,0,.395474,.789122,.0320529,0,.413577,.780601,.0299485,0,.432018,.771424,.0279812,0,.450804,.761502,.0261054,0,.469944,.751166,.0243942,0,.489451,.741276,.0228087,0,.509337,.730898,.0213265,0,.529617,.719878,.0199307,0,.550307,.708379,.0186574,0,.571428,.697165,.0174446,0,.593003,.685554,.0163144,0,.615059,.673631,.015276,0,.637628,.662385,.0143003,0,.660746,.651059,.0134112,0,.68446,.640451,.0125794,0,.70882,.630536,.011793,0,.733893,.620316,.0110547,0,.759756,.609722,.0103668,0,.786505,.598804,.00973009,0,.814259,.587871,.00912812,0,.843157,.577121,.00858916,0,.87334,.566019,.00807333,0,.904762,.554664,.00759687,0,.936508,.543101,.00714759,0,.968254,.531558,.00673418,0,1,1,.146767,0,0,1,.146767,0,0,.999997,.146767,0,0,.999977,.146765,0,320658e-11,.999929,.146762,0,682576e-9,.999823,.146753,0,.00276402,.999633,.146735,0,.00614771,.999314,.146699,0,.0106613,.998796,.14662,0,.0161546,.997124,.146107,0,.0225063,.994062,.144857,0,.0296198,.992154,.144011,0,.037417,.989186,.142712,0,.0458348,.985279,.140926,0,.0548211,.980826,.13885,0,.0643326,.975056,.136168,0,.074333,.969005,.133217,0,.0847917,.961554,.12959,0,.0956828,.954206,.125886,0,.106984,.945046,.121335,0,.118675,.935678,.116492,0,.130741,.926748,.111635,0,.143166,.917764,.106625,0,.155939,.908358,.101325,0,.169049,.899219,.0960249,0,.182487,.890089,.0906527,0,.196245,.881488,.0853905,0,.210317,.874031,.0804177,0,.224697,.866932,.0756005,0,.23938,.859976,.0709019,0,.254364,.853375,.0664391,0,.269646,.846971,.0622012,0,.285223,.840483,.058129,0,.301096,.833969,.0542762,0,.317265,.82806,.0507042,0,.333729,.822128,.047368,0,.350491,.815989,.044272,0,.367554,.809336,.0413444,0,.38492,.802177,.038601,0,.402594,.79441,.0360227,0,.420582,.786573,.0336383,0,.438891,.778619,.0314321,0,.457527,.77,.029362,0,.476499,.760698,.0274102,0,.49582,.750932,.0256146,0,.5155,.740993,.023974,0,.535555,.731159,.0224182,0,.556,.720836,.0209889,0,.576855,.709913,.0196411,0,.598143,.698415,.0183824,0,.619888,.68745,.0172222,0,.642123,.676154,.0161509,0,.664883,.664383,.0151397,0,.688211,.6533,.0141873,0,.71216,.642072,.0133105,0,.736792,.631412,.0124932,0,.762186,.621622,.0117408,0,.788439,.611681,.0110358,0,.815672,.60142,.0103775,0,.844034,.59083,.00975623,0,.873699,.580254,.00918084,0,.904765,.569841,.00864721,0,.936508,.559224,.00815731,0,.968254,.548315,.00767924,0,1,1,.177563,0,0,1,.177563,0,0,.999994,.177562,0,0,.999972,.177555,0,664171e-10,.999914,.177536,0,.0012276,.999787,.177496,0,.00388025,.999556,.17742,0,.00783463,.999165,.177285,0,.0128953,.9985,.177037,0,.0189053,.995388,.175634,0,.025742,.993102,.174375,0,.033309,.990992,.173121,0,.0415298,.986932,.170896,0,.0503425,.982786,.16847,0,.0596964,.977592,.165455,0,.0695498,.971075,.161676,0,.0798676,.963967,.157458,0,.0906201,.956397,.152836,0,.101783,.947489,.147467,0,.113333,.937564,.14145,0,.125254,.928182,.135383,0,.137529,.919027,.129212,0,.150144,.909618,.12276,0,.163088,.900492,.116273,0,.176351,.891671,.1098,0,.189924,.883146,.103362,0,.203799,.875151,.0970799,0,.21797,.868338,.0911732,0,.232433,.862033,.0854966,0,.247182,.856107,.0800691,0,.262216,.850644,.0749618,0,.27753,.845261,.070079,0,.293124,.839885,.0654321,0,.308997,.834609,.0610975,0,.325149,.829083,.0569741,0,.341581,.82404,.0531736,0,.358294,.818968,.049665,0,.37529,.813496,.0463856,0,.392573,.807533,.0433217,0,.410148,.80099,.0404402,0,.428019,.793891,.0377578,0,.446192,.786281,.0352616,0,.464676,.778773,.0329577,0,.483478,.770737,.030808,0,.502608,.762094,.0287964,0,.522079,.752898,.0269254,0,.541905,.743306,.0251926,0,.5621,.733416,.023595,0,.582684,.723742,.0221155,0,.603677,.713542,.0207435,0,.625106,.702755,.019434,0,.646998,.691484,.0182046,0,.66939,.680531,.0170771,0,.692324,.66953,.0160339,0,.715849,.658126,.0150677,0,.740028,.646933,.0141551,0,.764937,.636107,.0133179,0,.790673,.625271,.0125284,0,.817358,.615225,.0117937,0,.84515,.605678,.0111181,0,.874244,.59583,.0104759,0,.904828,.585704,.00986672,0,.936508,.575413,.00929712,0,.968254,.565373,.00876713,0,1,1,.214058,0,0,.999999,.214058,0,0,.999994,.214055,0,0,.999966,.214039,0,259642e-9,.999893,.213998,0,.00200075,.999737,.21391,0,.00527775,.999449,.213745,0,.00983959,.99896,.213458,0,.0154755,.9979,.212855,0,.0220249,.994278,.210779,0,.0293654,.992254,.20926,0,.0374021,.98881,.206908,0,.0460604,.984715,.204009,0,.0552802,.979738,.200471,0,.0650127,.972884,.195813,0,.0752175,.965996,.190856,0,.0858612,.957974,.185077,0,.0969155,.949155,.17868,0,.108356,.939288,.171513,0,.120163,.928996,.163838,0,.132319,.919563,.156246,0,.144808,.910004,.148359,0,.157618,.900791,.140417,0,.170737,.892135,.132569,0,.184155,.883803,.124741,0,.197866,.876034,.117091,0,.211861,.869219,.109835,0,.226134,.863062,.102859,0,.240682,.857795,.0962928,0,.255499,.853009,.0900725,0,.270583,.848603,.0842101,0,.285931,.844335,.0786527,0,.301542,.840208,.0734397,0,.317415,.836035,.0685334,0,.33355,.83172,.0639275,0,.349948,.827135,.0595909,0,.36661,.822797,.0556204,0,.383539,.818387,.0519394,0,.400738,.813565,.0485317,0,.41821,.808142,.0453138,0,.435961,.802212,.0423354,0,.453997,.79573,.0395553,0,.472324,.788741,.036988,0,.490951,.781093,.0345688,0,.509887,.773597,.0323297,0,.529144,.765622,.0302719,0,.548735,.757083,.0283477,0,.568674,.747992,.0265562,0,.588979,.738591,.0248844,0,.609671,.728719,.0233342,0,.630773,.719146,.0219081,0,.652314,.709165,.0205711,0,.674328,.69875,.0193248,0,.696854,.687884,.0181582,0,.719942,.676818,.0170746,0,.743651,.666247,.0160718,0,.768057,.655284,.0151262,0,.793253,.64401,.0142561,0,.819363,.633353,.0134327,0,.846547,.622674,.012653,0,.875017,.612265,.0119354,0,.905021,.602455,.0112533,0,.936508,.593147,.0106234,0,.968254,.583592,.0100213,0,1,1,.25717,0,0,1,.25717,0,0,.999992,.257164,0,0,.999958,.257135,0,641715e-9,.999864,.25706,0,.00305314,.999666,.256897,0,.00700975,.999302,.256596,0,.0122194,.998663,.25607,0,.0184622,.995607,.254123,0,.0255773,.993094,.252081,0,.0334439,.9907,.249867,0,.0419696,.98594,.246118,0,.0510823,.981214,.242049,0,.0607242,.974966,.236869,0,.0708486,.967589,.230724,0,.081417,.95915,.223635,0,.0923974,.950257,.21596,0,.103763,.940165,.207296,0,.115491,.929396,.197901,0,.127562,.919288,.188437,0,.13996,.909428,.178762,0,.15267,.900105,.169072,0,.165679,.891418,.159478,0,.178979,.883347,.15002,0,.192558,.875992,.140813,0,.20641,.869466,.13196,0,.220529,.863699,.123501,0,.234907,.858553,.115436,0,.249542,.854379,.107901,0,.264428,.850894,.10088,0,.279564,.847632,.0942296,0,.294947,.844571,.0879861,0,.310575,.84163,.0821534,0,.326448,.838542,.0766409,0,.342566,.835412,.0715322,0,.358929,.831899,.0666883,0,.37554,.828177,.0622175,0,.392399,.82416,.0580452,0,.409511,.820393,.054267,0,.426878,.816068,.0507172,0,.444506,.811201,.0474041,0,.4624,.805785,.0443174,0,.480566,.799878,.0414562,0,.499013,.793469,.0388147,0,.517749,.786473,.0363453,0,.536785,.778874,.0340225,0,.556134,.771277,.0318599,0,.575809,.763426,.0298859,0,.595827,.755044,.0280357,0,.616207,.746161,.0262979,0,.636973,.737124,.0247295,0,.65815,.72761,.0232514,0,.679772,.717822,.0218755,0,.701876,.708279,.0205942,0,.724509,.698333,.0193947,0,.74773,.68802,.0182717,0,.771609,.677321,.0172044,0,.79624,.666504,.0162122,0,.821743,.656184,.0152924,0,.84828,.64556,.0144326,0,.876069,.634636,.0136157,0,.905404,.624124,.0128612,0,.936508,.613914,.0121435,0,.968254,.603589,.0114887,0,1,1,.307946,0,0,.999999,.307945,0,0,.999988,.307934,0,204479e-10,.999944,.307886,0,.00127833,.999824,.307756,0,.00445047,.999565,.30748,0,.00914673,.999085,.306966,0,.0150498,.998103,.306004,0,.0219367,.994249,.303028,0,.0296485,.991807,.300435,0,.038068,.987773,.296554,0,.0471062,.982673,.2916,0,.0566942,.976623,.285641,0,.0667768,.968757,.27815,0,.0773099,.959849,.269529,0,.088257,.950663,.260248,0,.0995879,.940129,.249704,0,.111277,.92895,.238291,0,.123304,.917996,.226501,0,.13565,.907813,.214669,0,.148299,.898305,.202835,0,.161237,.889626,.191158,0,.174455,.88175,.179695,0,.187941,.874715,.168548,0,.201687,.868746,.15792,0,.215687,.863703,.147807,0,.229933,.859315,.138149,0,.24442,.855538,.128993,0,.259145,.852428,.120414,0,.274103,.850168,.112498,0,.289293,.848132,.105054,0,.304711,.846291,.0981087,0,.320357,.844431,.0915942,0,.33623,.842493,.0855056,0,.35233,.840368,.0798204,0,.368658,.83798,.0745097,0,.385214,.83523,.0695424,0,.402002,.832091,.0649092,0,.419023,.828667,.0606291,0,.436282,.824805,.0566523,0,.453782,.820988,.0530229,0,.471529,.816635,.0496364,0,.489528,.811725,.0464658,0,.507788,.806316,.0435082,0,.526317,.800469,.0407873,0,.545124,.794107,.038255,0,.564221,.787218,.0358825,0,.583621,.779872,.0336785,0,.603341,.772097,.0316379,0,.623397,.764484,.0297379,0,.643812,.756428,.0279581,0,.664611,.748022,.0263153,0,.685824,.739268,.0247799,0,.707488,.73024,.0233385,0,.729646,.720893,.0220035,0,.752354,.71119,.0207555,0,.77568,.701791,.0195843,0,.799715,.692184,.0184891,0,.824574,.682258,.0174541,0,.850417,.67206,.0164873,0,.877466,.661717,.0155959,0,.90604,.651462,.0147519,0,.936528,.641467,.0139727,0,.968254,.631229,.0132363,0,1,1,.367573,0,0,.999999,.367571,0,0,.999984,.367553,0,183382e-9,.999925,.367473,0,.00225254,.999759,.367259,0,.00628165,.99941,.366801,0,.0117858,.998739,.365946,0,.0184359,.995529,.363191,0,.0260114,.992875,.360171,0,.0343581,.989135,.355981,0,.0433637,.984166,.350401,0,.0529438,.977871,.343348,0,.0630334,.96951,.334341,0,.0735805,.959964,.323862,0,.0845437,.950162,.312521,0,.095889,.938882,.299577,0,.107588,.926992,.285573,0,.119617,.915589,.271212,0,.131957,.904791,.256611,0,.144591,.895177,.242224,0,.157503,.886403,.227952,0,.170682,.878957,.214192,0,.184117,.872418,.200795,0,.197799,.867029,.188015,0,.21172,.862835,.175975,0,.225873,.859411,.164526,0,.240253,.856655,.153693,0,.254854,.854519,.14352,0,.269673,.852828,.13397,0,.284707,.851412,.124984,0,.299953,.850609,.116748,0,.315408,.849855,.10905,0,.331073,.849017,.101839,0,.346946,.848079,.0951359,0,.363028,.846911,.0888774,0,.379318,.845445,.0830375,0,.395818,.84362,.0775844,0,.41253,.841411,.0725054,0,.429457,.838768,.0677691,0,.446602,.835801,.0634016,0,.463968,.832341,.0593095,0,.481561,.828424,.0555121,0,.499386,.824312,.052024,0,.51745,.819918,.0487865,0,.535761,.815072,.0457801,0,.554328,.809863,.0430184,0,.573162,.804164,.0404245,0,.592275,.798034,.0380146,0,.611681,.791436,.0357436,0,.631398,.784498,.0336475,0,.651445,.777125,.0316666,0,.671845,.769365,.0298122,0,.692628,.761579,.0281001,0,.713827,.753746,.0265049,0,.735484,.745573,.0250067,0,.75765,.737083,.0236026,0,.78039,.728545,.0223302,0,.803789,.719691,.0211243,0,.82796,.710569,.0199983,0,.853056,.701216,.0189569,0,.879298,.692094,.0179702,0,.907014,.682909,.0170418,0,.936691,.673509,.0161732,0,.968254,.663863,.0153406,0,1,1,.437395,0,0,.999998,.437394,0,0,.99998,.437363,0,616704e-9,.999891,.437232,0,.00367925,.999656,.436877,0,.00867446,.999148,.436121,0,.0150679,.997959,.434564,0,.022531,.993464,.430134,0,.0308507,.990606,.426077,0,.0398805,.985027,.419397,0,.0495148,.978491,.41118,0,.0596749,.969643,.40048,0,.0703001,.959189,.38769,0,.0813427,.948223,.373575,0,.0927641,.935955,.357622,0,.104533,.923237,.34043,0,.116624,.911074,.322735,0,.129015,.899724,.30479,0,.141687,.890189,.287392,0,.154626,.881796,.270248,0,.167818,.874781,.253659,0,.181252,.869166,.237786,0,.194918,.864725,.222618,0,.208807,.861565,.208356,0,.222913,.859284,.194867,0,.237229,.857677,.18212,0,.25175,.856714,.17018,0,.266473,.856155,.158969,0,.281392,.8558,.148413,0,.296505,.855672,.138578,0,.311811,.855538,.129345,0,.327306,.855689,.120861,0,.342991,.855767,.112969,0,.358864,.855618,.105593,0,.374925,.85525,.0987451,0,.391176,.854583,.0923727,0,.407616,.853534,.0864143,0,.424249,.852061,.0808338,0,.441076,.850253,.0756771,0,.4581,.848004,.0708612,0,.475324,.845333,.0663784,0,.492754,.842376,.0622631,0,.510394,.838956,.0584112,0,.528251,.835121,.0548328,0,.546331,.830842,.0514838,0,.564644,.826212,.048355,0,.583198,.821522,.0454714,0,.602005,.816551,.0428263,0,.621078,.811211,.0403612,0,.640434,.805479,.038039,0,.660089,.799409,.0358739,0,.680066,.79306,.0338727,0,.70039,.786395,.0319985,0,.721094,.779416,.030241,0,.742215,.77214,.0285951,0,.7638,.764636,.0270747,0,.785912,.756836,.0256354,0,.808628,.749315,.0243027,0,.832055,.741561,.0230497,0,.856338,.733589,.0218801,0,.88169,.725479,.020784,0,.908441,.717255,.0197702,0,.937125,.708829,.0188168,0,.968254,.700191,.0179113,0,1,1,.518937,0,0,.999998,.518933,0,0,.999967,.518883,0,.00147741,.999832,.51866,0,.00573221,.999466,.518057,0,.011826,.998644,.516752,0,.0192116,.994458,.512347,0,.027573,.991223,.507675,0,.0367099,.985515,.500188,0,.046487,.978308,.490408,0,.0568071,.968359,.477357,0,.0675984,.95682,.461752,0,.0788059,.943929,.443796,0,.090386,.930224,.423893,0,.102304,.916514,.402682,0,.114532,.903653,.380914,0,.127047,.892315,.359212,0,.139828,.882942,.338102,0,.152861,.875438,.31773,0,.16613,.869642,.298186,0,.179624,.865304,.279491,0,.193332,.862382,.261804,0,.207247,.860666,.245146,0,.22136,.859788,.229406,0,.235666,.859608,.214605,0,.250158,.859912,.200691,0,.264832,.86053,.187623,0,.279684,.861368,.17539,0,.294711,.862237,.163901,0,.309911,.863127,.153175,0,.32528,.863923,.143147,0,.340819,.864567,.133781,0,.356524,.865013,.125042,0,.372397,.86539,.116952,0,.388438,.865591,.109476,0,.404645,.865517,.102542,0,.421022,.865084,.0960688,0,.437569,.864309,.0900499,0,.454287,.863151,.0844328,0,.471181,.861649,.0792218,0,.488253,.859742,.0743482,0,.505507,.857446,.0697963,0,.522947,.854757,.0655364,0,.54058,.851783,.061608,0,.558412,.848516,.0579701,0,.576449,.844897,.0545742,0,.594701,.840956,.0514167,0,.613178,.836676,.0484598,0,.631892,.832075,.0456934,0,.650856,.827191,.0431178,0,.670088,.822295,.0407718,0,.689606,.817294,.0386032,0,.709434,.812013,.0365675,0,.7296,.806465,.0346547,0,.750138,.800691,.0328717,0,.771093,.794709,.031211,0,.792519,.788493,.0296504,0,.814488,.782049,.0281782,0,.837097,.775403,.0267965,0,.860481,.76857,.0255002,0,.884842,.761536,.0242759,0,.910494,.754303,.0231142,0,.937985,.74692,.0220305,0,.968254,.739745,.0210192,0,1,1,.613914,0,0,.999996,.613907,0,963597e-10,.999942,.613814,0,.00301247,.999704,.613407,0,.00870385,.999046,.612302,0,.0160714,.995516,.608266,0,.0245899,.991726,.602863,0,.0339681,.985157,.593956,0,.0440254,.97642,.581748,0,.0546409,.964404,.565183,0,.0657284,.950601,.545273,0,.0772246,.935158,.522129,0,.0890812,.919364,.496782,0,.10126,.904754,.470571,0,.113731,.89176,.444037,0,.126469,.881492,.418322,0,.139454,.873656,.393522,0,.15267,.868053,.369795,0,.166101,.864336,.347171,0,.179736,.862259,.325737,0,.193565,.861556,.305532,0,.207578,.861776,.286416,0,.221769,.862661,.268355,0,.23613,.864015,.251334,0,.250656,.865711,.235352,0,.265343,.867519,.220302,0,.280187,.869351,.206161,0,.295183,.871144,.192908,0,.31033,.872839,.180505,0,.325624,.874307,.168848,0,.341065,.875667,.158021,0,.35665,.876758,.147877,0,.37238,.87764,.138441,0,.388253,.878237,.129627,0,.404269,.878563,.121415,0,.42043,.878572,.113741,0,.436735,.87842,.106652,0,.453187,.878057,.100097,0,.469786,.877413,.0940128,0,.486536,.87646,.0883462,0,.503439,.875233,.0830924,0,.520498,.8737,.0781975,0,.537717,.871873,.07364,0,.555102,.86978,.0694103,0,.572657,.867405,.0654696,0,.59039,.864751,.0617914,0,.608307,.861818,.0583491,0,.626419,.858645,.0551443,0,.644733,.855307,.0521894,0,.663264,.851736,.0494334,0,.682025,.847927,.0468504,0,.701032,.843888,.0444261,0,.720308,.839629,.0421497,0,.739875,.835158,.0400082,0,.759764,.830509,.0380076,0,.780014,.825714,.0361488,0,.800673,.820729,.0343956,0,.821803,.815751,.0327781,0,.843492,.810752,.031275,0,.86586,.805587,.0298542,0,.889087,.800317,.0285397,0,.913466,.79489,.0272948,0,.93952,.789314,.0261139,0,.96835,.783593,.0249938,0,1,1,.724258,0,0,.999992,.724243,0,726889e-9,.99987,.724044,0,.00569574,.999336,.72317,0,.0131702,.996271,.719432,0,.0220738,.991159,.712576,0,.0319405,.982465,.700927,0,.0425202,.97049,.684297,0,.0536599,.953973,.661244,0,.065258,.935546,.633804,0,.0772427,.916596,.603071,0,.0895616,.899353,.57105,0,.102175,.885216,.539206,0,.11505,.875076,.508714,0,.128164,.868334,.479571,0,.141495,.864414,.451796,0,.155026,.862678,.425328,0,.168745,.862835,.400352,0,.182639,.864067,.376532,0,.196699,.866086,.35391,0,.210915,.868557,.332424,0,.225282,.871271,.312053,0,.239792,.874058,.292764,0,.25444,.8768,.27453,0,.269223,.87939,.257297,0,.284135,.8819,.24114,0,.299174,.884187,.225934,0,.314337,.886262,.211669,0,.329622,.888119,.198311,0,.345026,.889709,.185783,0,.360549,.891054,.174063,0,.376189,.892196,.163143,0,.391946,.893101,.152952,0,.407819,.893803,.143475,0,.423808,.894277,.134647,0,.439914,.894532,.126434,0,.456137,.894576,.1188,0,.472479,.894393,.111694,0,.48894,.893976,.105069,0,.505523,.893346,.0989077,0,.52223,.892502,.0931724,0,.539064,.891441,.0878276,0,.556028,.890276,.082903,0,.573125,.888972,.0783505,0,.590361,.887469,.0741083,0,.607741,.885785,.0701633,0,.62527,.883914,.0664835,0,.642957,.881872,.0630567,0,.660809,.879651,.0598527,0,.678836,.877267,.0568615,0,.69705,.874717,.05406,0,.715465,.872012,.0514378,0,.734098,.869157,.0489805,0,.752968,.866155,.0466727,0,.772101,.863014,.0445056,0,.791529,.859748,.0424733,0,.81129,.856416,.0405957,0,.831438,.852958,.0388273,0,.852044,.849382,.0371619,0,.87321,.845694,.0355959,0,.89509,.841893,.0341155,0,.917932,.837981,.0327141,0,.942204,.833963,.0313856,0,.968981,.829847,.0301275,0,1,1,.85214,0,0,.999969,.852095,0,.00279627,.999483,.851408,0,.0107635,.994545,.84579,0,.0206454,.986188,.835231,0,.0315756,.969847,.814687,0,.0432021,.945951,.783735,0,.0553396,.91917,.746074,0,.0678766,.895488,.706938,0,.0807395,.878232,.669534,0,.0938767,.868252,.635168,0,.10725,.863873,.603069,0,.120832,.863369,.572514,0,.134598,.86545,.543169,0,.148533,.868803,.514578,0,.16262,.872794,.486762,0,.176849,.87702,.459811,0,.19121,.881054,.433654,0,.205694,.884974,.408574,0,.220294,.888587,.384525,0,.235005,.891877,.36156,0,.24982,.894793,.339661,0,.264737,.89743,.318913,0,.279751,.899796,.299302,0,.294859,.901943,.280843,0,.310058,.903858,.263481,0,.325346,.905574,.247197,0,.340721,.907069,.231915,0,.356181,.908379,.217614,0,.371725,.90952,.20425,0,.387353,.910483,.191758,0,.403063,.91128,.180092,0,.418854,.911936,.169222,0,.434727,.912454,.159098,0,.450682,.912835,.149668,0,.466718,.913078,.140884,0,.482837,.913192,.132709,0,.499038,.913175,.125095,0,.515324,.91304,.118012,0,.531695,.912781,.111417,0,.548153,.91241,.105281,0,.5647,.911924,.0995691,0,.581338,.911331,.0942531,0,.59807,.910637,.0893076,0,.6149,.90984,.0846998,0,.63183,.908941,.0804044,0,.648865,.907944,.0763984,0,.666011,.906857,.0726638,0,.683273,.90568,.0691783,0,.700659,.904416,.0659222,0,.718176,.903067,.0628782,0,.735834,.901637,.0600307,0,.753646,.900128,.0573647,0,.771625,.898544,.0548668,0,.78979,.89689,.052527,0,.808162,.895165,.0503306,0,.826771,.893371,.0482668,0,.845654,.891572,.0463605,0,.864863,.889763,.0445998,0,.884472,.887894,.0429451,0,.904592,.885967,.0413884,0,.925407,.883984,.0399225,0,.947271,.881945,.0385405,0,.97105,.879854,.0372362,0,1,.999804,.995833,0,0,.938155,.933611,0,.0158731,.864755,.854311,0,.0317461,.888594,.865264,0,.0476191,.905575,.863922,0,.0634921,.915125,.850558,0,.0793651,.920665,.829254,0,.0952381,.924073,.802578,0,.111111,.926304,.772211,0,.126984,.927829,.739366,0,.142857,.928924,.705033,0,.15873,.92973,.670019,0,.174603,.930339,.634993,0,.190476,.930811,.600485,0,.206349,.931191,.566897,0,.222222,.93149,.534485,0,.238095,.931737,.503429,0,.253968,.931939,.473811,0,.269841,.932108,.445668,0,.285714,.93225,.418993,0,.301587,.932371,.393762,0,.31746,.932474,.369939,0,.333333,.932562,.347479,0,.349206,.932638,.326336,0,.365079,.932703,.306462,0,.380952,.93276,.287805,0,.396825,.932809,.270313,0,.412698,.932851,.253933,0,.428571,.932887,.23861,0,.444444,.932917,.224289,0,.460317,.932943,.210917,0,.47619,.932965,.19844,0,.492063,.932982,.186807,0,.507937,.932995,.175966,0,.52381,.933005,.165869,0,.539683,.933011,.156468,0,.555556,.933013,.147719,0,.571429,.933013,.139579,0,.587302,.93301,.132007,0,.603175,.933004,.124965,0,.619048,.932994,.118416,0,.634921,.932982,.112326,0,.650794,.932968,.106663,0,.666667,.93295,.101397,0,.68254,.932931,.0964993,0,.698413,.932908,.0919438,0,.714286,.932883,.0877057,0,.730159,.932856,.0837623,0,.746032,.932827,.0800921,0,.761905,.932796,.0766754,0,.777778,.932762,.0734936,0,.793651,.932727,.0705296,0,.809524,.932689,.0677676,0,.825397,.93265,.0651929,0,.84127,.932609,.0627917,0,.857143,.932565,.0605515,0,.873016,.932521,.0584606,0,.888889,.932474,.0565082,0,.904762,.932427,.0546841,0,.920635,.932377,.0529793,0,.936508,.932326,.0513851,0,.952381,.932274,.0498936,0,.968254,.93222,.0484975,0,.984127,.932164,.0471899,0,1],n=new Float32Array(e),i=new Float32Array(t);r.UniformsLib.LTC_FLOAT_1=new r.DataTexture(n,64,64,r.RGBAFormat,r.FloatType,r.UVMapping,r.ClampToEdgeWrapping,r.ClampToEdgeWrapping,r.LinearFilter,r.NearestFilter,1),r.UniformsLib.LTC_FLOAT_2=new r.DataTexture(i,64,64,r.RGBAFormat,r.FloatType,r.UVMapping,r.ClampToEdgeWrapping,r.ClampToEdgeWrapping,r.LinearFilter,r.NearestFilter,1),r.UniformsLib.LTC_FLOAT_1.needsUpdate=!0,r.UniformsLib.LTC_FLOAT_2.needsUpdate=!0;const a=new Uint16Array(e.length);e.forEach(function(e,t){a[t]=r.DataUtils.toHalfFloat(e)});const s=new Uint16Array(t.length);t.forEach(function(e,t){s[t]=r.DataUtils.toHalfFloat(e)}),r.UniformsLib.LTC_HALF_1=new r.DataTexture(a,64,64,r.RGBAFormat,r.HalfFloatType,r.UVMapping,r.ClampToEdgeWrapping,r.ClampToEdgeWrapping,r.LinearFilter,r.NearestFilter,1),r.UniformsLib.LTC_HALF_2=new r.DataTexture(s,64,64,r.RGBAFormat,r.HalfFloatType,r.UVMapping,r.ClampToEdgeWrapping,r.ClampToEdgeWrapping,r.LinearFilter,r.NearestFilter,1),r.UniformsLib.LTC_HALF_1.needsUpdate=!0,r.UniformsLib.LTC_HALF_2.needsUpdate=!0}}},4604:(e,n,r)=>{"use strict";r.d(n,{a:()=>y});var i=r(4468),a=r(728);class s{constructor(){this.vkFormat=0,this.typeSize=1,this.pixelWidth=0,this.pixelHeight=0,this.pixelDepth=0,this.layerCount=0,this.faceCount=1,this.supercompressionScheme=0,this.levels=[],this.dataFormatDescriptor=[{vendorId:0,descriptorType:0,descriptorBlockSize:0,versionNumber:2,colorModel:0,colorPrimaries:1,transferFunction:2,flags:0,texelBlockDimension:[0,0,0,0],bytesPlane:[0,0,0,0,0,0,0,0],samples:[]}],this.keyValue={},this.globalData=null}}class o{constructor(e,t,n,r){this._dataView=new DataView(e.buffer,e.byteOffset+t,n),this._littleEndian=r,this._offset=0}_nextUint8(){const e=this._dataView.getUint8(this._offset);return this._offset+=1,e}_nextUint16(){const e=this._dataView.getUint16(this._offset,this._littleEndian);return this._offset+=2,e}_nextUint32(){const e=this._dataView.getUint32(this._offset,this._littleEndian);return this._offset+=4,e}_nextUint64(){const e=this._dataView.getUint32(this._offset,this._littleEndian)+2**32*this._dataView.getUint32(this._offset+4,this._littleEndian);return this._offset+=8,e}_nextInt32(){const e=this._dataView.getInt32(this._offset,this._littleEndian);return this._offset+=4,e}_skip(e){return this._offset+=e,this}_scan(e,t=0){const n=this._offset;let r=0;for(;this._dataView.getUint8(this._offset)!==t&&re.arrayBuffer()).then(e=>WebAssembly.instantiate(e,p)).then(this._init):WebAssembly.instantiate(t.from(m,"base64"),p).then(this._init),u)}_init(e){h=e.instance,p.env.emscripten_notify_memory_growth(0)}decode(e,t=0){if(!h)throw new Error("ZSTDDecoder: Await .init() before decoding.");const n=e.byteLength,r=h.exports.malloc(n);d.set(e,r),t=t||Number(h.exports.ZSTD_findDecompressedSize(r,n));const i=h.exports.malloc(t),a=h.exports.ZSTD_decompress(i,t,r,n),s=d.slice(i,i+a);return h.exports.free(r),h.exports.free(i),s}}const m="AGFzbQEAAAABpQEVYAF/AX9gAn9/AGADf39/AX9gBX9/f39/AX9gAX8AYAJ/fwF/YAR/f39/AX9gA39/fwBgBn9/f39/fwF/YAd/f39/f39/AX9gAn9/AX5gAn5+AX5gAABgBX9/f39/AGAGf39/f39/AGAIf39/f39/f38AYAl/f39/f39/f38AYAABf2AIf39/f39/f38Bf2ANf39/f39/f39/f39/fwF/YAF/AX4CJwEDZW52H2Vtc2NyaXB0ZW5fbm90aWZ5X21lbW9yeV9ncm93dGgABANpaAEFAAAFAgEFCwACAQABAgIFBQcAAwABDgsBAQcAEhMHAAUBDAQEAAANBwQCAgYCBAgDAwMDBgEACQkHBgICAAYGAgQUBwYGAwIGAAMCAQgBBwUGCgoEEQAEBAEIAwgDBQgDEA8IAAcABAUBcAECAgUEAQCAAgYJAX8BQaCgwAILB2AHBm1lbW9yeQIABm1hbGxvYwAoBGZyZWUAJgxaU1REX2lzRXJyb3IAaBlaU1REX2ZpbmREZWNvbXByZXNzZWRTaXplAFQPWlNURF9kZWNvbXByZXNzAEoGX3N0YXJ0ACQJBwEAQQELASQKussBaA8AIAAgACgCBCABajYCBAsZACAAKAIAIAAoAgRBH3F0QQAgAWtBH3F2CwgAIABBiH9LC34BBH9BAyEBIAAoAgQiA0EgTQRAIAAoAggiASAAKAIQTwRAIAAQDQ8LIAAoAgwiAiABRgRAQQFBAiADQSBJGw8LIAAgASABIAJrIANBA3YiBCABIARrIAJJIgEbIgJrIgQ2AgggACADIAJBA3RrNgIEIAAgBCgAADYCAAsgAQsUAQF/IAAgARACIQIgACABEAEgAgv3AQECfyACRQRAIABCADcCACAAQQA2AhAgAEIANwIIQbh/DwsgACABNgIMIAAgAUEEajYCECACQQRPBEAgACABIAJqIgFBfGoiAzYCCCAAIAMoAAA2AgAgAUF/ai0AACIBBEAgAEEIIAEQFGs2AgQgAg8LIABBADYCBEF/DwsgACABNgIIIAAgAS0AACIDNgIAIAJBfmoiBEEBTQRAIARBAWtFBEAgACABLQACQRB0IANyIgM2AgALIAAgAS0AAUEIdCADajYCAAsgASACakF/ai0AACIBRQRAIABBADYCBEFsDwsgAEEoIAEQFCACQQN0ams2AgQgAgsWACAAIAEpAAA3AAAgACABKQAINwAICy8BAX8gAUECdEGgHWooAgAgACgCAEEgIAEgACgCBGprQR9xdnEhAiAAIAEQASACCyEAIAFCz9bTvtLHq9lCfiAAfEIfiUKHla+vmLbem55/fgsdAQF/IAAoAgggACgCDEYEfyAAKAIEQSBGBUEACwuCBAEDfyACQYDAAE8EQCAAIAEgAhBnIAAPCyAAIAJqIQMCQCAAIAFzQQNxRQRAAkAgAkEBSARAIAAhAgwBCyAAQQNxRQRAIAAhAgwBCyAAIQIDQCACIAEtAAA6AAAgAUEBaiEBIAJBAWoiAiADTw0BIAJBA3ENAAsLAkAgA0F8cSIEQcAASQ0AIAIgBEFAaiIFSw0AA0AgAiABKAIANgIAIAIgASgCBDYCBCACIAEoAgg2AgggAiABKAIMNgIMIAIgASgCEDYCECACIAEoAhQ2AhQgAiABKAIYNgIYIAIgASgCHDYCHCACIAEoAiA2AiAgAiABKAIkNgIkIAIgASgCKDYCKCACIAEoAiw2AiwgAiABKAIwNgIwIAIgASgCNDYCNCACIAEoAjg2AjggAiABKAI8NgI8IAFBQGshASACQUBrIgIgBU0NAAsLIAIgBE8NAQNAIAIgASgCADYCACABQQRqIQEgAkEEaiICIARJDQALDAELIANBBEkEQCAAIQIMAQsgA0F8aiIEIABJBEAgACECDAELIAAhAgNAIAIgAS0AADoAACACIAEtAAE6AAEgAiABLQACOgACIAIgAS0AAzoAAyABQQRqIQEgAkEEaiICIARNDQALCyACIANJBEADQCACIAEtAAA6AAAgAUEBaiEBIAJBAWoiAiADRw0ACwsgAAsMACAAIAEpAAA3AAALQQECfyAAKAIIIgEgACgCEEkEQEEDDwsgACAAKAIEIgJBB3E2AgQgACABIAJBA3ZrIgE2AgggACABKAAANgIAQQALDAAgACABKAIANgAAC/cCAQJ/AkAgACABRg0AAkAgASACaiAASwRAIAAgAmoiBCABSw0BCyAAIAEgAhALDwsgACABc0EDcSEDAkACQCAAIAFJBEAgAwRAIAAhAwwDCyAAQQNxRQRAIAAhAwwCCyAAIQMDQCACRQ0EIAMgAS0AADoAACABQQFqIQEgAkF/aiECIANBAWoiA0EDcQ0ACwwBCwJAIAMNACAEQQNxBEADQCACRQ0FIAAgAkF/aiICaiIDIAEgAmotAAA6AAAgA0EDcQ0ACwsgAkEDTQ0AA0AgACACQXxqIgJqIAEgAmooAgA2AgAgAkEDSw0ACwsgAkUNAgNAIAAgAkF/aiICaiABIAJqLQAAOgAAIAINAAsMAgsgAkEDTQ0AIAIhBANAIAMgASgCADYCACABQQRqIQEgA0EEaiEDIARBfGoiBEEDSw0ACyACQQNxIQILIAJFDQADQCADIAEtAAA6AAAgA0EBaiEDIAFBAWohASACQX9qIgINAAsLIAAL8wICAn8BfgJAIAJFDQAgACACaiIDQX9qIAE6AAAgACABOgAAIAJBA0kNACADQX5qIAE6AAAgACABOgABIANBfWogAToAACAAIAE6AAIgAkEHSQ0AIANBfGogAToAACAAIAE6AAMgAkEJSQ0AIABBACAAa0EDcSIEaiIDIAFB/wFxQYGChAhsIgE2AgAgAyACIARrQXxxIgRqIgJBfGogATYCACAEQQlJDQAgAyABNgIIIAMgATYCBCACQXhqIAE2AgAgAkF0aiABNgIAIARBGUkNACADIAE2AhggAyABNgIUIAMgATYCECADIAE2AgwgAkFwaiABNgIAIAJBbGogATYCACACQWhqIAE2AgAgAkFkaiABNgIAIAQgA0EEcUEYciIEayICQSBJDQAgAa0iBUIghiAFhCEFIAMgBGohAQNAIAEgBTcDGCABIAU3AxAgASAFNwMIIAEgBTcDACABQSBqIQEgAkFgaiICQR9LDQALCyAACy8BAn8gACgCBCAAKAIAQQJ0aiICLQACIQMgACACLwEAIAEgAi0AAxAIajYCACADCy8BAn8gACgCBCAAKAIAQQJ0aiICLQACIQMgACACLwEAIAEgAi0AAxAFajYCACADCx8AIAAgASACKAIEEAg2AgAgARAEGiAAIAJBCGo2AgQLCAAgAGdBH3MLugUBDX8jAEEQayIKJAACfyAEQQNNBEAgCkEANgIMIApBDGogAyAEEAsaIAAgASACIApBDGpBBBAVIgBBbCAAEAMbIAAgACAESxsMAQsgAEEAIAEoAgBBAXRBAmoQECENQVQgAygAACIGQQ9xIgBBCksNABogAiAAQQVqNgIAIAMgBGoiAkF8aiEMIAJBeWohDiACQXtqIRAgAEEGaiELQQQhBSAGQQR2IQRBICAAdCIAQQFyIQkgASgCACEPQQAhAiADIQYCQANAIAlBAkggAiAPS3JFBEAgAiEHAkAgCARAA0AgBEH//wNxQf//A0YEQCAHQRhqIQcgBiAQSQR/IAZBAmoiBigAACAFdgUgBUEQaiEFIARBEHYLIQQMAQsLA0AgBEEDcSIIQQNGBEAgBUECaiEFIARBAnYhBCAHQQNqIQcMAQsLIAcgCGoiByAPSw0EIAVBAmohBQNAIAIgB0kEQCANIAJBAXRqQQA7AQAgAkEBaiECDAELCyAGIA5LQQAgBiAFQQN1aiIHIAxLG0UEQCAHKAAAIAVBB3EiBXYhBAwCCyAEQQJ2IQQLIAYhBwsCfyALQX9qIAQgAEF/anEiBiAAQQF0QX9qIgggCWsiEUkNABogBCAIcSIEQQAgESAEIABIG2shBiALCyEIIA0gAkEBdGogBkF/aiIEOwEAIAlBASAGayAEIAZBAUgbayEJA0AgCSAASARAIABBAXUhACALQX9qIQsMAQsLAn8gByAOS0EAIAcgBSAIaiIFQQN1aiIGIAxLG0UEQCAFQQdxDAELIAUgDCIGIAdrQQN0awshBSACQQFqIQIgBEUhCCAGKAAAIAVBH3F2IQQMAQsLQWwgCUEBRyAFQSBKcg0BGiABIAJBf2o2AgAgBiAFQQdqQQN1aiADawwBC0FQCyEAIApBEGokACAACwkAQQFBBSAAGwsMACAAIAEoAAA2AAALqgMBCn8jAEHwAGsiCiQAIAJBAWohDiAAQQhqIQtBgIAEIAVBf2p0QRB1IQxBACECQQEhBkEBIAV0IglBf2oiDyEIA0AgAiAORkUEQAJAIAEgAkEBdCINai8BACIHQf//A0YEQCALIAhBA3RqIAI2AgQgCEF/aiEIQQEhBwwBCyAGQQAgDCAHQRB0QRB1ShshBgsgCiANaiAHOwEAIAJBAWohAgwBCwsgACAFNgIEIAAgBjYCACAJQQN2IAlBAXZqQQNqIQxBACEAQQAhBkEAIQIDQCAGIA5GBEADQAJAIAAgCUYNACAKIAsgAEEDdGoiASgCBCIGQQF0aiICIAIvAQAiAkEBajsBACABIAUgAhAUayIIOgADIAEgAiAIQf8BcXQgCWs7AQAgASAEIAZBAnQiAmooAgA6AAIgASACIANqKAIANgIEIABBAWohAAwBCwsFIAEgBkEBdGouAQAhDUEAIQcDQCAHIA1ORQRAIAsgAkEDdGogBjYCBANAIAIgDGogD3EiAiAISw0ACyAHQQFqIQcMAQsLIAZBAWohBgwBCwsgCkHwAGokAAsjAEIAIAEQCSAAhUKHla+vmLbem55/fkLj3MqV/M7y9YV/fAsQACAAQn43AwggACABNgIACyQBAX8gAARAIAEoAgQiAgRAIAEoAgggACACEQEADwsgABAmCwsfACAAIAEgAi8BABAINgIAIAEQBBogACACQQRqNgIEC0oBAX9BoCAoAgAiASAAaiIAQX9MBEBBiCBBMDYCAEF/DwsCQCAAPwBBEHRNDQAgABBmDQBBiCBBMDYCAEF/DwtBoCAgADYCACABC9cBAQh/Qbp/IQoCQCACKAIEIgggAigCACIJaiIOIAEgAGtLDQBBbCEKIAkgBCADKAIAIgtrSw0AIAAgCWoiBCACKAIIIgxrIQ0gACABQWBqIg8gCyAJQQAQKSADIAkgC2o2AgACQAJAIAwgBCAFa00EQCANIQUMAQsgDCAEIAZrSw0CIAcgDSAFayIAaiIBIAhqIAdNBEAgBCABIAgQDxoMAgsgBCABQQAgAGsQDyEBIAIgACAIaiIINgIEIAEgAGshBAsgBCAPIAUgCEEBECkLIA4hCgsgCgubAgEBfyMAQYABayINJAAgDSADNgJ8AkAgAkEDSwRAQX8hCQwBCwJAAkACQAJAIAJBAWsOAwADAgELIAZFBEBBuH8hCQwEC0FsIQkgBS0AACICIANLDQMgACAHIAJBAnQiAmooAgAgAiAIaigCABA7IAEgADYCAEEBIQkMAwsgASAJNgIAQQAhCQwCCyAKRQRAQWwhCQwCC0EAIQkgC0UgDEEZSHINAUEIIAR0QQhqIQBBACECA0AgAiAATw0CIAJBQGshAgwAAAsAC0FsIQkgDSANQfwAaiANQfgAaiAFIAYQFSICEAMNACANKAJ4IgMgBEsNACAAIA0gDSgCfCAHIAggAxAYIAEgADYCACACIQkLIA1BgAFqJAAgCQsLACAAIAEgAhALGgsQACAALwAAIAAtAAJBEHRyCy8AAn9BuH8gAUEISQ0AGkFyIAAoAAQiAEF3Sw0AGkG4fyAAQQhqIgAgACABSxsLCwkAIAAgATsAAAsDAAELigYBBX8gACAAKAIAIgVBfnE2AgBBACAAIAVBAXZqQYQgKAIAIgQgAEYbIQECQAJAIAAoAgQiAkUNACACKAIAIgNBAXENACACQQhqIgUgA0EBdkF4aiIDQQggA0EISxtnQR9zQQJ0QYAfaiIDKAIARgRAIAMgAigCDDYCAAsgAigCCCIDBEAgAyACKAIMNgIECyACKAIMIgMEQCADIAIoAgg2AgALIAIgAigCACAAKAIAQX5xajYCAEGEICEAAkACQCABRQ0AIAEgAjYCBCABKAIAIgNBAXENASADQQF2QXhqIgNBCCADQQhLG2dBH3NBAnRBgB9qIgMoAgAgAUEIakYEQCADIAEoAgw2AgALIAEoAggiAwRAIAMgASgCDDYCBAsgASgCDCIDBEAgAyABKAIINgIAQYQgKAIAIQQLIAIgAigCACABKAIAQX5xajYCACABIARGDQAgASABKAIAQQF2akEEaiEACyAAIAI2AgALIAIoAgBBAXZBeGoiAEEIIABBCEsbZ0Efc0ECdEGAH2oiASgCACEAIAEgBTYCACACIAA2AgwgAkEANgIIIABFDQEgACAFNgIADwsCQCABRQ0AIAEoAgAiAkEBcQ0AIAJBAXZBeGoiAkEIIAJBCEsbZ0Efc0ECdEGAH2oiAigCACABQQhqRgRAIAIgASgCDDYCAAsgASgCCCICBEAgAiABKAIMNgIECyABKAIMIgIEQCACIAEoAgg2AgBBhCAoAgAhBAsgACAAKAIAIAEoAgBBfnFqIgI2AgACQCABIARHBEAgASABKAIAQQF2aiAANgIEIAAoAgAhAgwBC0GEICAANgIACyACQQF2QXhqIgFBCCABQQhLG2dBH3NBAnRBgB9qIgIoAgAhASACIABBCGoiAjYCACAAIAE2AgwgAEEANgIIIAFFDQEgASACNgIADwsgBUEBdkF4aiIBQQggAUEISxtnQR9zQQJ0QYAfaiICKAIAIQEgAiAAQQhqIgI2AgAgACABNgIMIABBADYCCCABRQ0AIAEgAjYCAAsLDgAgAARAIABBeGoQJQsLgAIBA38CQCAAQQ9qQXhxQYQgKAIAKAIAQQF2ayICEB1Bf0YNAAJAQYQgKAIAIgAoAgAiAUEBcQ0AIAFBAXZBeGoiAUEIIAFBCEsbZ0Efc0ECdEGAH2oiASgCACAAQQhqRgRAIAEgACgCDDYCAAsgACgCCCIBBEAgASAAKAIMNgIECyAAKAIMIgFFDQAgASAAKAIINgIAC0EBIQEgACAAKAIAIAJBAXRqIgI2AgAgAkEBcQ0AIAJBAXZBeGoiAkEIIAJBCEsbZ0Efc0ECdEGAH2oiAygCACECIAMgAEEIaiIDNgIAIAAgAjYCDCAAQQA2AgggAkUNACACIAM2AgALIAELtwIBA38CQAJAIABBASAAGyICEDgiAA0AAkACQEGEICgCACIARQ0AIAAoAgAiA0EBcQ0AIAAgA0EBcjYCACADQQF2QXhqIgFBCCABQQhLG2dBH3NBAnRBgB9qIgEoAgAgAEEIakYEQCABIAAoAgw2AgALIAAoAggiAQRAIAEgACgCDDYCBAsgACgCDCIBBEAgASAAKAIINgIACyACECchAkEAIQFBhCAoAgAhACACDQEgACAAKAIAQX5xNgIAQQAPCyACQQ9qQXhxIgMQHSICQX9GDQIgAkEHakF4cSIAIAJHBEAgACACaxAdQX9GDQMLAkBBhCAoAgAiAUUEQEGAICAANgIADAELIAAgATYCBAtBhCAgADYCACAAIANBAXRBAXI2AgAMAQsgAEUNAQsgAEEIaiEBCyABC7kDAQJ/IAAgA2ohBQJAIANBB0wEQANAIAAgBU8NAiAAIAItAAA6AAAgAEEBaiEAIAJBAWohAgwAAAsACyAEQQFGBEACQCAAIAJrIgZBB00EQCAAIAItAAA6AAAgACACLQABOgABIAAgAi0AAjoAAiAAIAItAAM6AAMgAEEEaiACIAZBAnQiBkHAHmooAgBqIgIQFyACIAZB4B5qKAIAayECDAELIAAgAhAMCyACQQhqIQIgAEEIaiEACwJAAkACQAJAIAUgAU0EQCAAIANqIQEgBEEBRyAAIAJrQQ9Kcg0BA0AgACACEAwgAkEIaiECIABBCGoiACABSQ0ACwwFCyAAIAFLBEAgACEBDAQLIARBAUcgACACa0EPSnINASAAIQMgAiEEA0AgAyAEEAwgBEEIaiEEIANBCGoiAyABSQ0ACwwCCwNAIAAgAhAHIAJBEGohAiAAQRBqIgAgAUkNAAsMAwsgACEDIAIhBANAIAMgBBAHIARBEGohBCADQRBqIgMgAUkNAAsLIAIgASAAa2ohAgsDQCABIAVPDQEgASACLQAAOgAAIAFBAWohASACQQFqIQIMAAALAAsLQQECfyAAIAAoArjgASIDNgLE4AEgACgCvOABIQQgACABNgK84AEgACABIAJqNgK44AEgACABIAQgA2tqNgLA4AELpgEBAX8gACAAKALs4QEQFjYCyOABIABCADcD+OABIABCADcDuOABIABBwOABakIANwMAIABBqNAAaiIBQYyAgOAANgIAIABBADYCmOIBIABCADcDiOEBIABCAzcDgOEBIABBrNABakHgEikCADcCACAAQbTQAWpB6BIoAgA2AgAgACABNgIMIAAgAEGYIGo2AgggACAAQaAwajYCBCAAIABBEGo2AgALYQEBf0G4fyEDAkAgAUEDSQ0AIAIgABAhIgFBA3YiADYCCCACIAFBAXE2AgQgAiABQQF2QQNxIgM2AgACQCADQX9qIgFBAksNAAJAIAFBAWsOAgEAAgtBbA8LIAAhAwsgAwsMACAAIAEgAkEAEC4LiAQCA38CfiADEBYhBCAAQQBBKBAQIQAgBCACSwRAIAQPCyABRQRAQX8PCwJAAkAgA0EBRg0AIAEoAAAiBkGo6r5pRg0AQXYhAyAGQXBxQdDUtMIBRw0BQQghAyACQQhJDQEgAEEAQSgQECEAIAEoAAQhASAAQQE2AhQgACABrTcDAEEADwsgASACIAMQLyIDIAJLDQAgACADNgIYQXIhAyABIARqIgVBf2otAAAiAkEIcQ0AIAJBIHEiBkUEQEFwIQMgBS0AACIFQacBSw0BIAVBB3GtQgEgBUEDdkEKaq2GIgdCA4h+IAd8IQggBEEBaiEECyACQQZ2IQMgAkECdiEFAkAgAkEDcUF/aiICQQJLBEBBACECDAELAkACQAJAIAJBAWsOAgECAAsgASAEai0AACECIARBAWohBAwCCyABIARqLwAAIQIgBEECaiEEDAELIAEgBGooAAAhAiAEQQRqIQQLIAVBAXEhBQJ+AkACQAJAIANBf2oiA0ECTQRAIANBAWsOAgIDAQtCfyAGRQ0DGiABIARqMQAADAMLIAEgBGovAACtQoACfAwCCyABIARqKAAArQwBCyABIARqKQAACyEHIAAgBTYCICAAIAI2AhwgACAHNwMAQQAhAyAAQQA2AhQgACAHIAggBhsiBzcDCCAAIAdCgIAIIAdCgIAIVBs+AhALIAMLWwEBf0G4fyEDIAIQFiICIAFNBH8gACACakF/ai0AACIAQQNxQQJ0QaAeaigCACACaiAAQQZ2IgFBAnRBsB5qKAIAaiAAQSBxIgBFaiABRSAAQQV2cWoFQbh/CwsdACAAKAKQ4gEQWiAAQQA2AqDiASAAQgA3A5DiAQu1AwEFfyMAQZACayIKJABBuH8hBgJAIAVFDQAgBCwAACIIQf8BcSEHAkAgCEF/TARAIAdBgn9qQQF2IgggBU8NAkFsIQYgB0GBf2oiBUGAAk8NAiAEQQFqIQdBACEGA0AgBiAFTwRAIAUhBiAIIQcMAwUgACAGaiAHIAZBAXZqIgQtAABBBHY6AAAgACAGQQFyaiAELQAAQQ9xOgAAIAZBAmohBgwBCwAACwALIAcgBU8NASAAIARBAWogByAKEFMiBhADDQELIAYhBEEAIQYgAUEAQTQQECEJQQAhBQNAIAQgBkcEQCAAIAZqIggtAAAiAUELSwRAQWwhBgwDBSAJIAFBAnRqIgEgASgCAEEBajYCACAGQQFqIQZBASAILQAAdEEBdSAFaiEFDAILAAsLQWwhBiAFRQ0AIAUQFEEBaiIBQQxLDQAgAyABNgIAQQFBASABdCAFayIDEBQiAXQgA0cNACAAIARqIAFBAWoiADoAACAJIABBAnRqIgAgACgCAEEBajYCACAJKAIEIgBBAkkgAEEBcXINACACIARBAWo2AgAgB0EBaiEGCyAKQZACaiQAIAYLxhEBDH8jAEHwAGsiBSQAQWwhCwJAIANBCkkNACACLwAAIQogAi8AAiEJIAIvAAQhByAFQQhqIAQQDgJAIAMgByAJIApqakEGaiIMSQ0AIAUtAAohCCAFQdgAaiACQQZqIgIgChAGIgsQAw0BIAVBQGsgAiAKaiICIAkQBiILEAMNASAFQShqIAIgCWoiAiAHEAYiCxADDQEgBUEQaiACIAdqIAMgDGsQBiILEAMNASAAIAFqIg9BfWohECAEQQRqIQZBASELIAAgAUEDakECdiIDaiIMIANqIgIgA2oiDiEDIAIhBCAMIQcDQCALIAMgEElxBEAgACAGIAVB2ABqIAgQAkECdGoiCS8BADsAACAFQdgAaiAJLQACEAEgCS0AAyELIAcgBiAFQUBrIAgQAkECdGoiCS8BADsAACAFQUBrIAktAAIQASAJLQADIQogBCAGIAVBKGogCBACQQJ0aiIJLwEAOwAAIAVBKGogCS0AAhABIAktAAMhCSADIAYgBUEQaiAIEAJBAnRqIg0vAQA7AAAgBUEQaiANLQACEAEgDS0AAyENIAAgC2oiCyAGIAVB2ABqIAgQAkECdGoiAC8BADsAACAFQdgAaiAALQACEAEgAC0AAyEAIAcgCmoiCiAGIAVBQGsgCBACQQJ0aiIHLwEAOwAAIAVBQGsgBy0AAhABIActAAMhByAEIAlqIgkgBiAFQShqIAgQAkECdGoiBC8BADsAACAFQShqIAQtAAIQASAELQADIQQgAyANaiIDIAYgBUEQaiAIEAJBAnRqIg0vAQA7AAAgBUEQaiANLQACEAEgACALaiEAIAcgCmohByAEIAlqIQQgAyANLQADaiEDIAVB2ABqEA0gBUFAaxANciAFQShqEA1yIAVBEGoQDXJFIQsMAQsLIAQgDksgByACS3INAEFsIQsgACAMSw0BIAxBfWohCQNAQQAgACAJSSAFQdgAahAEGwRAIAAgBiAFQdgAaiAIEAJBAnRqIgovAQA7AAAgBUHYAGogCi0AAhABIAAgCi0AA2oiACAGIAVB2ABqIAgQAkECdGoiCi8BADsAACAFQdgAaiAKLQACEAEgACAKLQADaiEADAEFIAxBfmohCgNAIAVB2ABqEAQgACAKS3JFBEAgACAGIAVB2ABqIAgQAkECdGoiCS8BADsAACAFQdgAaiAJLQACEAEgACAJLQADaiEADAELCwNAIAAgCk0EQCAAIAYgBUHYAGogCBACQQJ0aiIJLwEAOwAAIAVB2ABqIAktAAIQASAAIAktAANqIQAMAQsLAkAgACAMTw0AIAAgBiAFQdgAaiAIEAIiAEECdGoiDC0AADoAACAMLQADQQFGBEAgBUHYAGogDC0AAhABDAELIAUoAlxBH0sNACAFQdgAaiAGIABBAnRqLQACEAEgBSgCXEEhSQ0AIAVBIDYCXAsgAkF9aiEMA0BBACAHIAxJIAVBQGsQBBsEQCAHIAYgBUFAayAIEAJBAnRqIgAvAQA7AAAgBUFAayAALQACEAEgByAALQADaiIAIAYgBUFAayAIEAJBAnRqIgcvAQA7AAAgBUFAayAHLQACEAEgACAHLQADaiEHDAEFIAJBfmohDANAIAVBQGsQBCAHIAxLckUEQCAHIAYgBUFAayAIEAJBAnRqIgAvAQA7AAAgBUFAayAALQACEAEgByAALQADaiEHDAELCwNAIAcgDE0EQCAHIAYgBUFAayAIEAJBAnRqIgAvAQA7AAAgBUFAayAALQACEAEgByAALQADaiEHDAELCwJAIAcgAk8NACAHIAYgBUFAayAIEAIiAEECdGoiAi0AADoAACACLQADQQFGBEAgBUFAayACLQACEAEMAQsgBSgCREEfSw0AIAVBQGsgBiAAQQJ0ai0AAhABIAUoAkRBIUkNACAFQSA2AkQLIA5BfWohAgNAQQAgBCACSSAFQShqEAQbBEAgBCAGIAVBKGogCBACQQJ0aiIALwEAOwAAIAVBKGogAC0AAhABIAQgAC0AA2oiACAGIAVBKGogCBACQQJ0aiIELwEAOwAAIAVBKGogBC0AAhABIAAgBC0AA2ohBAwBBSAOQX5qIQIDQCAFQShqEAQgBCACS3JFBEAgBCAGIAVBKGogCBACQQJ0aiIALwEAOwAAIAVBKGogAC0AAhABIAQgAC0AA2ohBAwBCwsDQCAEIAJNBEAgBCAGIAVBKGogCBACQQJ0aiIALwEAOwAAIAVBKGogAC0AAhABIAQgAC0AA2ohBAwBCwsCQCAEIA5PDQAgBCAGIAVBKGogCBACIgBBAnRqIgItAAA6AAAgAi0AA0EBRgRAIAVBKGogAi0AAhABDAELIAUoAixBH0sNACAFQShqIAYgAEECdGotAAIQASAFKAIsQSFJDQAgBUEgNgIsCwNAQQAgAyAQSSAFQRBqEAQbBEAgAyAGIAVBEGogCBACQQJ0aiIALwEAOwAAIAVBEGogAC0AAhABIAMgAC0AA2oiACAGIAVBEGogCBACQQJ0aiICLwEAOwAAIAVBEGogAi0AAhABIAAgAi0AA2ohAwwBBSAPQX5qIQIDQCAFQRBqEAQgAyACS3JFBEAgAyAGIAVBEGogCBACQQJ0aiIALwEAOwAAIAVBEGogAC0AAhABIAMgAC0AA2ohAwwBCwsDQCADIAJNBEAgAyAGIAVBEGogCBACQQJ0aiIALwEAOwAAIAVBEGogAC0AAhABIAMgAC0AA2ohAwwBCwsCQCADIA9PDQAgAyAGIAVBEGogCBACIgBBAnRqIgItAAA6AAAgAi0AA0EBRgRAIAVBEGogAi0AAhABDAELIAUoAhRBH0sNACAFQRBqIAYgAEECdGotAAIQASAFKAIUQSFJDQAgBUEgNgIUCyABQWwgBUHYAGoQCiAFQUBrEApxIAVBKGoQCnEgBUEQahAKcRshCwwJCwAACwALAAALAAsAAAsACwAACwALQWwhCwsgBUHwAGokACALC7UEAQ5/IwBBEGsiBiQAIAZBBGogABAOQVQhBQJAIARB3AtJDQAgBi0ABCEHIANB8ARqQQBB7AAQECEIIAdBDEsNACADQdwJaiIJIAggBkEIaiAGQQxqIAEgAhAxIhAQA0UEQCAGKAIMIgQgB0sNASADQdwFaiEPIANBpAVqIREgAEEEaiESIANBqAVqIQEgBCEFA0AgBSICQX9qIQUgCCACQQJ0aigCAEUNAAsgAkEBaiEOQQEhBQNAIAUgDk9FBEAgCCAFQQJ0IgtqKAIAIQwgASALaiAKNgIAIAVBAWohBSAKIAxqIQoMAQsLIAEgCjYCAEEAIQUgBigCCCELA0AgBSALRkUEQCABIAUgCWotAAAiDEECdGoiDSANKAIAIg1BAWo2AgAgDyANQQF0aiINIAw6AAEgDSAFOgAAIAVBAWohBQwBCwtBACEBIANBADYCqAUgBEF/cyAHaiEJQQEhBQNAIAUgDk9FBEAgCCAFQQJ0IgtqKAIAIQwgAyALaiABNgIAIAwgBSAJanQgAWohASAFQQFqIQUMAQsLIAcgBEEBaiIBIAJrIgRrQQFqIQgDQEEBIQUgBCAIT0UEQANAIAUgDk9FBEAgBUECdCIJIAMgBEE0bGpqIAMgCWooAgAgBHY2AgAgBUEBaiEFDAELCyAEQQFqIQQMAQsLIBIgByAPIAogESADIAIgARBkIAZBAToABSAGIAc6AAYgACAGKAIENgIACyAQIQULIAZBEGokACAFC8ENAQt/IwBB8ABrIgUkAEFsIQkCQCADQQpJDQAgAi8AACEKIAIvAAIhDCACLwAEIQYgBUEIaiAEEA4CQCADIAYgCiAMampBBmoiDUkNACAFLQAKIQcgBUHYAGogAkEGaiICIAoQBiIJEAMNASAFQUBrIAIgCmoiAiAMEAYiCRADDQEgBUEoaiACIAxqIgIgBhAGIgkQAw0BIAVBEGogAiAGaiADIA1rEAYiCRADDQEgACABaiIOQX1qIQ8gBEEEaiEGQQEhCSAAIAFBA2pBAnYiAmoiCiACaiIMIAJqIg0hAyAMIQQgCiECA0AgCSADIA9JcQRAIAYgBUHYAGogBxACQQF0aiIILQAAIQsgBUHYAGogCC0AARABIAAgCzoAACAGIAVBQGsgBxACQQF0aiIILQAAIQsgBUFAayAILQABEAEgAiALOgAAIAYgBUEoaiAHEAJBAXRqIggtAAAhCyAFQShqIAgtAAEQASAEIAs6AAAgBiAFQRBqIAcQAkEBdGoiCC0AACELIAVBEGogCC0AARABIAMgCzoAACAGIAVB2ABqIAcQAkEBdGoiCC0AACELIAVB2ABqIAgtAAEQASAAIAs6AAEgBiAFQUBrIAcQAkEBdGoiCC0AACELIAVBQGsgCC0AARABIAIgCzoAASAGIAVBKGogBxACQQF0aiIILQAAIQsgBUEoaiAILQABEAEgBCALOgABIAYgBUEQaiAHEAJBAXRqIggtAAAhCyAFQRBqIAgtAAEQASADIAs6AAEgA0ECaiEDIARBAmohBCACQQJqIQIgAEECaiEAIAkgBUHYAGoQDUVxIAVBQGsQDUVxIAVBKGoQDUVxIAVBEGoQDUVxIQkMAQsLIAQgDUsgAiAMS3INAEFsIQkgACAKSw0BIApBfWohCQNAIAVB2ABqEAQgACAJT3JFBEAgBiAFQdgAaiAHEAJBAXRqIggtAAAhCyAFQdgAaiAILQABEAEgACALOgAAIAYgBUHYAGogBxACQQF0aiIILQAAIQsgBUHYAGogCC0AARABIAAgCzoAASAAQQJqIQAMAQsLA0AgBUHYAGoQBCAAIApPckUEQCAGIAVB2ABqIAcQAkEBdGoiCS0AACEIIAVB2ABqIAktAAEQASAAIAg6AAAgAEEBaiEADAELCwNAIAAgCkkEQCAGIAVB2ABqIAcQAkEBdGoiCS0AACEIIAVB2ABqIAktAAEQASAAIAg6AAAgAEEBaiEADAELCyAMQX1qIQADQCAFQUBrEAQgAiAAT3JFBEAgBiAFQUBrIAcQAkEBdGoiCi0AACEJIAVBQGsgCi0AARABIAIgCToAACAGIAVBQGsgBxACQQF0aiIKLQAAIQkgBUFAayAKLQABEAEgAiAJOgABIAJBAmohAgwBCwsDQCAFQUBrEAQgAiAMT3JFBEAgBiAFQUBrIAcQAkEBdGoiAC0AACEKIAVBQGsgAC0AARABIAIgCjoAACACQQFqIQIMAQsLA0AgAiAMSQRAIAYgBUFAayAHEAJBAXRqIgAtAAAhCiAFQUBrIAAtAAEQASACIAo6AAAgAkEBaiECDAELCyANQX1qIQADQCAFQShqEAQgBCAAT3JFBEAgBiAFQShqIAcQAkEBdGoiAi0AACEKIAVBKGogAi0AARABIAQgCjoAACAGIAVBKGogBxACQQF0aiICLQAAIQogBUEoaiACLQABEAEgBCAKOgABIARBAmohBAwBCwsDQCAFQShqEAQgBCANT3JFBEAgBiAFQShqIAcQAkEBdGoiAC0AACECIAVBKGogAC0AARABIAQgAjoAACAEQQFqIQQMAQsLA0AgBCANSQRAIAYgBUEoaiAHEAJBAXRqIgAtAAAhAiAFQShqIAAtAAEQASAEIAI6AAAgBEEBaiEEDAELCwNAIAVBEGoQBCADIA9PckUEQCAGIAVBEGogBxACQQF0aiIALQAAIQIgBUEQaiAALQABEAEgAyACOgAAIAYgBUEQaiAHEAJBAXRqIgAtAAAhAiAFQRBqIAAtAAEQASADIAI6AAEgA0ECaiEDDAELCwNAIAVBEGoQBCADIA5PckUEQCAGIAVBEGogBxACQQF0aiIALQAAIQIgBUEQaiAALQABEAEgAyACOgAAIANBAWohAwwBCwsDQCADIA5JBEAgBiAFQRBqIAcQAkEBdGoiAC0AACECIAVBEGogAC0AARABIAMgAjoAACADQQFqIQMMAQsLIAFBbCAFQdgAahAKIAVBQGsQCnEgBUEoahAKcSAFQRBqEApxGyEJDAELQWwhCQsgBUHwAGokACAJC8oCAQR/IwBBIGsiBSQAIAUgBBAOIAUtAAIhByAFQQhqIAIgAxAGIgIQA0UEQCAEQQRqIQIgACABaiIDQX1qIQQDQCAFQQhqEAQgACAET3JFBEAgAiAFQQhqIAcQAkEBdGoiBi0AACEIIAVBCGogBi0AARABIAAgCDoAACACIAVBCGogBxACQQF0aiIGLQAAIQggBUEIaiAGLQABEAEgACAIOgABIABBAmohAAwBCwsDQCAFQQhqEAQgACADT3JFBEAgAiAFQQhqIAcQAkEBdGoiBC0AACEGIAVBCGogBC0AARABIAAgBjoAACAAQQFqIQAMAQsLA0AgACADT0UEQCACIAVBCGogBxACQQF0aiIELQAAIQYgBUEIaiAELQABEAEgACAGOgAAIABBAWohAAwBCwsgAUFsIAVBCGoQChshAgsgBUEgaiQAIAILtgMBCX8jAEEQayIGJAAgBkEANgIMIAZBADYCCEFUIQQCQAJAIANBQGsiDCADIAZBCGogBkEMaiABIAIQMSICEAMNACAGQQRqIAAQDiAGKAIMIgcgBi0ABEEBaksNASAAQQRqIQogBkEAOgAFIAYgBzoABiAAIAYoAgQ2AgAgB0EBaiEJQQEhBANAIAQgCUkEQCADIARBAnRqIgEoAgAhACABIAU2AgAgACAEQX9qdCAFaiEFIARBAWohBAwBCwsgB0EBaiEHQQAhBSAGKAIIIQkDQCAFIAlGDQEgAyAFIAxqLQAAIgRBAnRqIgBBASAEdEEBdSILIAAoAgAiAWoiADYCACAHIARrIQhBACEEAkAgC0EDTQRAA0AgBCALRg0CIAogASAEakEBdGoiACAIOgABIAAgBToAACAEQQFqIQQMAAALAAsDQCABIABPDQEgCiABQQF0aiIEIAg6AAEgBCAFOgAAIAQgCDoAAyAEIAU6AAIgBCAIOgAFIAQgBToABCAEIAg6AAcgBCAFOgAGIAFBBGohAQwAAAsACyAFQQFqIQUMAAALAAsgAiEECyAGQRBqJAAgBAutAQECfwJAQYQgKAIAIABHIAAoAgBBAXYiAyABa0F4aiICQXhxQQhHcgR/IAIFIAMQJ0UNASACQQhqC0EQSQ0AIAAgACgCACICQQFxIAAgAWpBD2pBeHEiASAAa0EBdHI2AgAgASAANgIEIAEgASgCAEEBcSAAIAJBAXZqIAFrIgJBAXRyNgIAQYQgIAEgAkH/////B3FqQQRqQYQgKAIAIABGGyABNgIAIAEQJQsLygIBBX8CQAJAAkAgAEEIIABBCEsbZ0EfcyAAaUEBR2oiAUEESSAAIAF2cg0AIAFBAnRB/B5qKAIAIgJFDQADQCACQXhqIgMoAgBBAXZBeGoiBSAATwRAIAIgBUEIIAVBCEsbZ0Efc0ECdEGAH2oiASgCAEYEQCABIAIoAgQ2AgALDAMLIARBHksNASAEQQFqIQQgAigCBCICDQALC0EAIQMgAUEgTw0BA0AgAUECdEGAH2ooAgAiAkUEQCABQR5LIQIgAUEBaiEBIAJFDQEMAwsLIAIgAkF4aiIDKAIAQQF2QXhqIgFBCCABQQhLG2dBH3NBAnRBgB9qIgEoAgBGBEAgASACKAIENgIACwsgAigCACIBBEAgASACKAIENgIECyACKAIEIgEEQCABIAIoAgA2AgALIAMgAygCAEEBcjYCACADIAAQNwsgAwvhCwINfwV+IwBB8ABrIgckACAHIAAoAvDhASIINgJcIAEgAmohDSAIIAAoAoDiAWohDwJAAkAgBUUEQCABIQQMAQsgACgCxOABIRAgACgCwOABIREgACgCvOABIQ4gAEEBNgKM4QFBACEIA0AgCEEDRwRAIAcgCEECdCICaiAAIAJqQazQAWooAgA2AkQgCEEBaiEIDAELC0FsIQwgB0EYaiADIAQQBhADDQEgB0EsaiAHQRhqIAAoAgAQEyAHQTRqIAdBGGogACgCCBATIAdBPGogB0EYaiAAKAIEEBMgDUFgaiESIAEhBEEAIQwDQCAHKAIwIAcoAixBA3RqKQIAIhRCEIinQf8BcSEIIAcoAkAgBygCPEEDdGopAgAiFUIQiKdB/wFxIQsgBygCOCAHKAI0QQN0aikCACIWQiCIpyEJIBVCIIghFyAUQiCIpyECAkAgFkIQiKdB/wFxIgNBAk8EQAJAIAZFIANBGUlyRQRAIAkgB0EYaiADQSAgBygCHGsiCiAKIANLGyIKEAUgAyAKayIDdGohCSAHQRhqEAQaIANFDQEgB0EYaiADEAUgCWohCQwBCyAHQRhqIAMQBSAJaiEJIAdBGGoQBBoLIAcpAkQhGCAHIAk2AkQgByAYNwNIDAELAkAgA0UEQCACBEAgBygCRCEJDAMLIAcoAkghCQwBCwJAAkAgB0EYakEBEAUgCSACRWpqIgNBA0YEQCAHKAJEQX9qIgMgA0VqIQkMAQsgA0ECdCAHaigCRCIJIAlFaiEJIANBAUYNAQsgByAHKAJINgJMCwsgByAHKAJENgJIIAcgCTYCRAsgF6chAyALBEAgB0EYaiALEAUgA2ohAwsgCCALakEUTwRAIAdBGGoQBBoLIAgEQCAHQRhqIAgQBSACaiECCyAHQRhqEAQaIAcgB0EYaiAUQhiIp0H/AXEQCCAUp0H//wNxajYCLCAHIAdBGGogFUIYiKdB/wFxEAggFadB//8DcWo2AjwgB0EYahAEGiAHIAdBGGogFkIYiKdB/wFxEAggFqdB//8DcWo2AjQgByACNgJgIAcoAlwhCiAHIAk2AmggByADNgJkAkACQAJAIAQgAiADaiILaiASSw0AIAIgCmoiEyAPSw0AIA0gBGsgC0Egak8NAQsgByAHKQNoNwMQIAcgBykDYDcDCCAEIA0gB0EIaiAHQdwAaiAPIA4gESAQEB4hCwwBCyACIARqIQggBCAKEAcgAkERTwRAIARBEGohAgNAIAIgCkEQaiIKEAcgAkEQaiICIAhJDQALCyAIIAlrIQIgByATNgJcIAkgCCAOa0sEQCAJIAggEWtLBEBBbCELDAILIBAgAiAOayICaiIKIANqIBBNBEAgCCAKIAMQDxoMAgsgCCAKQQAgAmsQDyEIIAcgAiADaiIDNgJkIAggAmshCCAOIQILIAlBEE8EQCADIAhqIQMDQCAIIAIQByACQRBqIQIgCEEQaiIIIANJDQALDAELAkAgCUEHTQRAIAggAi0AADoAACAIIAItAAE6AAEgCCACLQACOgACIAggAi0AAzoAAyAIQQRqIAIgCUECdCIDQcAeaigCAGoiAhAXIAIgA0HgHmooAgBrIQIgBygCZCEDDAELIAggAhAMCyADQQlJDQAgAyAIaiEDIAhBCGoiCCACQQhqIgJrQQ9MBEADQCAIIAIQDCACQQhqIQIgCEEIaiIIIANJDQAMAgALAAsDQCAIIAIQByACQRBqIQIgCEEQaiIIIANJDQALCyAHQRhqEAQaIAsgDCALEAMiAhshDCAEIAQgC2ogAhshBCAFQX9qIgUNAAsgDBADDQFBbCEMIAdBGGoQBEECSQ0BQQAhCANAIAhBA0cEQCAAIAhBAnQiAmpBrNABaiACIAdqKAJENgIAIAhBAWohCAwBCwsgBygCXCEIC0G6fyEMIA8gCGsiACANIARrSw0AIAQEfyAEIAggABALIABqBUEACyABayEMCyAHQfAAaiQAIAwLkRcCFn8FfiMAQdABayIHJAAgByAAKALw4QEiCDYCvAEgASACaiESIAggACgCgOIBaiETAkACQCAFRQRAIAEhAwwBCyAAKALE4AEhESAAKALA4AEhFSAAKAK84AEhDyAAQQE2AozhAUEAIQgDQCAIQQNHBEAgByAIQQJ0IgJqIAAgAmpBrNABaigCADYCVCAIQQFqIQgMAQsLIAcgETYCZCAHIA82AmAgByABIA9rNgJoQWwhECAHQShqIAMgBBAGEAMNASAFQQQgBUEESBshFyAHQTxqIAdBKGogACgCABATIAdBxABqIAdBKGogACgCCBATIAdBzABqIAdBKGogACgCBBATQQAhBCAHQeAAaiEMIAdB5ABqIQoDQCAHQShqEARBAksgBCAXTnJFBEAgBygCQCAHKAI8QQN0aikCACIdQhCIp0H/AXEhCyAHKAJQIAcoAkxBA3RqKQIAIh5CEIinQf8BcSEJIAcoAkggBygCREEDdGopAgAiH0IgiKchCCAeQiCIISAgHUIgiKchAgJAIB9CEIinQf8BcSIDQQJPBEACQCAGRSADQRlJckUEQCAIIAdBKGogA0EgIAcoAixrIg0gDSADSxsiDRAFIAMgDWsiA3RqIQggB0EoahAEGiADRQ0BIAdBKGogAxAFIAhqIQgMAQsgB0EoaiADEAUgCGohCCAHQShqEAQaCyAHKQJUISEgByAINgJUIAcgITcDWAwBCwJAIANFBEAgAgRAIAcoAlQhCAwDCyAHKAJYIQgMAQsCQAJAIAdBKGpBARAFIAggAkVqaiIDQQNGBEAgBygCVEF/aiIDIANFaiEIDAELIANBAnQgB2ooAlQiCCAIRWohCCADQQFGDQELIAcgBygCWDYCXAsLIAcgBygCVDYCWCAHIAg2AlQLICCnIQMgCQRAIAdBKGogCRAFIANqIQMLIAkgC2pBFE8EQCAHQShqEAQaCyALBEAgB0EoaiALEAUgAmohAgsgB0EoahAEGiAHIAcoAmggAmoiCSADajYCaCAKIAwgCCAJSxsoAgAhDSAHIAdBKGogHUIYiKdB/wFxEAggHadB//8DcWo2AjwgByAHQShqIB5CGIinQf8BcRAIIB6nQf//A3FqNgJMIAdBKGoQBBogB0EoaiAfQhiIp0H/AXEQCCEOIAdB8ABqIARBBHRqIgsgCSANaiAIazYCDCALIAg2AgggCyADNgIEIAsgAjYCACAHIA4gH6dB//8DcWo2AkQgBEEBaiEEDAELCyAEIBdIDQEgEkFgaiEYIAdB4ABqIRogB0HkAGohGyABIQMDQCAHQShqEARBAksgBCAFTnJFBEAgBygCQCAHKAI8QQN0aikCACIdQhCIp0H/AXEhCyAHKAJQIAcoAkxBA3RqKQIAIh5CEIinQf8BcSEIIAcoAkggBygCREEDdGopAgAiH0IgiKchCSAeQiCIISAgHUIgiKchDAJAIB9CEIinQf8BcSICQQJPBEACQCAGRSACQRlJckUEQCAJIAdBKGogAkEgIAcoAixrIgogCiACSxsiChAFIAIgCmsiAnRqIQkgB0EoahAEGiACRQ0BIAdBKGogAhAFIAlqIQkMAQsgB0EoaiACEAUgCWohCSAHQShqEAQaCyAHKQJUISEgByAJNgJUIAcgITcDWAwBCwJAIAJFBEAgDARAIAcoAlQhCQwDCyAHKAJYIQkMAQsCQAJAIAdBKGpBARAFIAkgDEVqaiICQQNGBEAgBygCVEF/aiICIAJFaiEJDAELIAJBAnQgB2ooAlQiCSAJRWohCSACQQFGDQELIAcgBygCWDYCXAsLIAcgBygCVDYCWCAHIAk2AlQLICCnIRQgCARAIAdBKGogCBAFIBRqIRQLIAggC2pBFE8EQCAHQShqEAQaCyALBEAgB0EoaiALEAUgDGohDAsgB0EoahAEGiAHIAcoAmggDGoiGSAUajYCaCAbIBogCSAZSxsoAgAhHCAHIAdBKGogHUIYiKdB/wFxEAggHadB//8DcWo2AjwgByAHQShqIB5CGIinQf8BcRAIIB6nQf//A3FqNgJMIAdBKGoQBBogByAHQShqIB9CGIinQf8BcRAIIB+nQf//A3FqNgJEIAcgB0HwAGogBEEDcUEEdGoiDSkDCCIdNwPIASAHIA0pAwAiHjcDwAECQAJAAkAgBygCvAEiDiAepyICaiIWIBNLDQAgAyAHKALEASIKIAJqIgtqIBhLDQAgEiADayALQSBqTw0BCyAHIAcpA8gBNwMQIAcgBykDwAE3AwggAyASIAdBCGogB0G8AWogEyAPIBUgERAeIQsMAQsgAiADaiEIIAMgDhAHIAJBEU8EQCADQRBqIQIDQCACIA5BEGoiDhAHIAJBEGoiAiAISQ0ACwsgCCAdpyIOayECIAcgFjYCvAEgDiAIIA9rSwRAIA4gCCAVa0sEQEFsIQsMAgsgESACIA9rIgJqIhYgCmogEU0EQCAIIBYgChAPGgwCCyAIIBZBACACaxAPIQggByACIApqIgo2AsQBIAggAmshCCAPIQILIA5BEE8EQCAIIApqIQoDQCAIIAIQByACQRBqIQIgCEEQaiIIIApJDQALDAELAkAgDkEHTQRAIAggAi0AADoAACAIIAItAAE6AAEgCCACLQACOgACIAggAi0AAzoAAyAIQQRqIAIgDkECdCIKQcAeaigCAGoiAhAXIAIgCkHgHmooAgBrIQIgBygCxAEhCgwBCyAIIAIQDAsgCkEJSQ0AIAggCmohCiAIQQhqIgggAkEIaiICa0EPTARAA0AgCCACEAwgAkEIaiECIAhBCGoiCCAKSQ0ADAIACwALA0AgCCACEAcgAkEQaiECIAhBEGoiCCAKSQ0ACwsgCxADBEAgCyEQDAQFIA0gDDYCACANIBkgHGogCWs2AgwgDSAJNgIIIA0gFDYCBCAEQQFqIQQgAyALaiEDDAILAAsLIAQgBUgNASAEIBdrIQtBACEEA0AgCyAFSARAIAcgB0HwAGogC0EDcUEEdGoiAikDCCIdNwPIASAHIAIpAwAiHjcDwAECQAJAAkAgBygCvAEiDCAepyICaiIKIBNLDQAgAyAHKALEASIJIAJqIhBqIBhLDQAgEiADayAQQSBqTw0BCyAHIAcpA8gBNwMgIAcgBykDwAE3AxggAyASIAdBGGogB0G8AWogEyAPIBUgERAeIRAMAQsgAiADaiEIIAMgDBAHIAJBEU8EQCADQRBqIQIDQCACIAxBEGoiDBAHIAJBEGoiAiAISQ0ACwsgCCAdpyIGayECIAcgCjYCvAEgBiAIIA9rSwRAIAYgCCAVa0sEQEFsIRAMAgsgESACIA9rIgJqIgwgCWogEU0EQCAIIAwgCRAPGgwCCyAIIAxBACACaxAPIQggByACIAlqIgk2AsQBIAggAmshCCAPIQILIAZBEE8EQCAIIAlqIQYDQCAIIAIQByACQRBqIQIgCEEQaiIIIAZJDQALDAELAkAgBkEHTQRAIAggAi0AADoAACAIIAItAAE6AAEgCCACLQACOgACIAggAi0AAzoAAyAIQQRqIAIgBkECdCIGQcAeaigCAGoiAhAXIAIgBkHgHmooAgBrIQIgBygCxAEhCQwBCyAIIAIQDAsgCUEJSQ0AIAggCWohBiAIQQhqIgggAkEIaiICa0EPTARAA0AgCCACEAwgAkEIaiECIAhBCGoiCCAGSQ0ADAIACwALA0AgCCACEAcgAkEQaiECIAhBEGoiCCAGSQ0ACwsgEBADDQMgC0EBaiELIAMgEGohAwwBCwsDQCAEQQNHBEAgACAEQQJ0IgJqQazQAWogAiAHaigCVDYCACAEQQFqIQQMAQsLIAcoArwBIQgLQbp/IRAgEyAIayIAIBIgA2tLDQAgAwR/IAMgCCAAEAsgAGoFQQALIAFrIRALIAdB0AFqJAAgEAslACAAQgA3AgAgAEEAOwEIIABBADoACyAAIAE2AgwgACACOgAKC7QFAQN/IwBBMGsiBCQAIABB/wFqIgVBfWohBgJAIAMvAQIEQCAEQRhqIAEgAhAGIgIQAw0BIARBEGogBEEYaiADEBwgBEEIaiAEQRhqIAMQHCAAIQMDQAJAIARBGGoQBCADIAZPckUEQCADIARBEGogBEEYahASOgAAIAMgBEEIaiAEQRhqEBI6AAEgBEEYahAERQ0BIANBAmohAwsgBUF+aiEFAn8DQEG6fyECIAMiASAFSw0FIAEgBEEQaiAEQRhqEBI6AAAgAUEBaiEDIARBGGoQBEEDRgRAQQIhAiAEQQhqDAILIAMgBUsNBSABIARBCGogBEEYahASOgABIAFBAmohA0EDIQIgBEEYahAEQQNHDQALIARBEGoLIQUgAyAFIARBGGoQEjoAACABIAJqIABrIQIMAwsgAyAEQRBqIARBGGoQEjoAAiADIARBCGogBEEYahASOgADIANBBGohAwwAAAsACyAEQRhqIAEgAhAGIgIQAw0AIARBEGogBEEYaiADEBwgBEEIaiAEQRhqIAMQHCAAIQMDQAJAIARBGGoQBCADIAZPckUEQCADIARBEGogBEEYahAROgAAIAMgBEEIaiAEQRhqEBE6AAEgBEEYahAERQ0BIANBAmohAwsgBUF+aiEFAn8DQEG6fyECIAMiASAFSw0EIAEgBEEQaiAEQRhqEBE6AAAgAUEBaiEDIARBGGoQBEEDRgRAQQIhAiAEQQhqDAILIAMgBUsNBCABIARBCGogBEEYahAROgABIAFBAmohA0EDIQIgBEEYahAEQQNHDQALIARBEGoLIQUgAyAFIARBGGoQEToAACABIAJqIABrIQIMAgsgAyAEQRBqIARBGGoQEToAAiADIARBCGogBEEYahAROgADIANBBGohAwwAAAsACyAEQTBqJAAgAgtpAQF/An8CQAJAIAJBB00NACABKAAAQbfIwuF+Rw0AIAAgASgABDYCmOIBQWIgAEEQaiABIAIQPiIDEAMNAhogAEKBgICAEDcDiOEBIAAgASADaiACIANrECoMAQsgACABIAIQKgtBAAsLrQMBBn8jAEGAAWsiAyQAQWIhCAJAIAJBCUkNACAAQZjQAGogAUEIaiIEIAJBeGogAEGY0AAQMyIFEAMiBg0AIANBHzYCfCADIANB/ABqIANB+ABqIAQgBCAFaiAGGyIEIAEgAmoiAiAEaxAVIgUQAw0AIAMoAnwiBkEfSw0AIAMoAngiB0EJTw0AIABBiCBqIAMgBkGAC0GADCAHEBggA0E0NgJ8IAMgA0H8AGogA0H4AGogBCAFaiIEIAIgBGsQFSIFEAMNACADKAJ8IgZBNEsNACADKAJ4IgdBCk8NACAAQZAwaiADIAZBgA1B4A4gBxAYIANBIzYCfCADIANB/ABqIANB+ABqIAQgBWoiBCACIARrEBUiBRADDQAgAygCfCIGQSNLDQAgAygCeCIHQQpPDQAgACADIAZBwBBB0BEgBxAYIAQgBWoiBEEMaiIFIAJLDQAgAiAFayEFQQAhAgNAIAJBA0cEQCAEKAAAIgZBf2ogBU8NAiAAIAJBAnRqQZzQAWogBjYCACACQQFqIQIgBEEEaiEEDAELCyAEIAFrIQgLIANBgAFqJAAgCAtGAQN/IABBCGohAyAAKAIEIQJBACEAA0AgACACdkUEQCABIAMgAEEDdGotAAJBFktqIQEgAEEBaiEADAELCyABQQggAmt0C4YDAQV/Qbh/IQcCQCADRQ0AIAItAAAiBEUEQCABQQA2AgBBAUG4fyADQQFGGw8LAn8gAkEBaiIFIARBGHRBGHUiBkF/Sg0AGiAGQX9GBEAgA0EDSA0CIAUvAABBgP4BaiEEIAJBA2oMAQsgA0ECSA0BIAItAAEgBEEIdHJBgIB+aiEEIAJBAmoLIQUgASAENgIAIAVBAWoiASACIANqIgNLDQBBbCEHIABBEGogACAFLQAAIgVBBnZBI0EJIAEgAyABa0HAEEHQEUHwEiAAKAKM4QEgACgCnOIBIAQQHyIGEAMiCA0AIABBmCBqIABBCGogBUEEdkEDcUEfQQggASABIAZqIAgbIgEgAyABa0GAC0GADEGAFyAAKAKM4QEgACgCnOIBIAQQHyIGEAMiCA0AIABBoDBqIABBBGogBUECdkEDcUE0QQkgASABIAZqIAgbIgEgAyABa0GADUHgDkGQGSAAKAKM4QEgACgCnOIBIAQQHyIAEAMNACAAIAFqIAJrIQcLIAcLrQMBCn8jAEGABGsiCCQAAn9BUiACQf8BSw0AGkFUIANBDEsNABogAkEBaiELIABBBGohCUGAgAQgA0F/anRBEHUhCkEAIQJBASEEQQEgA3QiB0F/aiIMIQUDQCACIAtGRQRAAkAgASACQQF0Ig1qLwEAIgZB//8DRgRAIAkgBUECdGogAjoAAiAFQX9qIQVBASEGDAELIARBACAKIAZBEHRBEHVKGyEECyAIIA1qIAY7AQAgAkEBaiECDAELCyAAIAQ7AQIgACADOwEAIAdBA3YgB0EBdmpBA2ohBkEAIQRBACECA0AgBCALRkUEQCABIARBAXRqLgEAIQpBACEAA0AgACAKTkUEQCAJIAJBAnRqIAQ6AAIDQCACIAZqIAxxIgIgBUsNAAsgAEEBaiEADAELCyAEQQFqIQQMAQsLQX8gAg0AGkEAIQIDfyACIAdGBH9BAAUgCCAJIAJBAnRqIgAtAAJBAXRqIgEgAS8BACIBQQFqOwEAIAAgAyABEBRrIgU6AAMgACABIAVB/wFxdCAHazsBACACQQFqIQIMAQsLCyEFIAhBgARqJAAgBQvjBgEIf0FsIQcCQCACQQNJDQACQAJAAkACQCABLQAAIgNBA3EiCUEBaw4DAwEAAgsgACgCiOEBDQBBYg8LIAJBBUkNAkEDIQYgASgAACEFAn8CQAJAIANBAnZBA3EiCEF+aiIEQQFNBEAgBEEBaw0BDAILIAVBDnZB/wdxIQQgBUEEdkH/B3EhAyAIRQwCCyAFQRJ2IQRBBCEGIAVBBHZB//8AcSEDQQAMAQsgBUEEdkH//w9xIgNBgIAISw0DIAEtAARBCnQgBUEWdnIhBEEFIQZBAAshBSAEIAZqIgogAksNAgJAIANBgQZJDQAgACgCnOIBRQ0AQQAhAgNAIAJBg4ABSw0BIAJBQGshAgwAAAsACwJ/IAlBA0YEQCABIAZqIQEgAEHw4gFqIQIgACgCDCEGIAUEQCACIAMgASAEIAYQXwwCCyACIAMgASAEIAYQXQwBCyAAQbjQAWohAiABIAZqIQEgAEHw4gFqIQYgAEGo0ABqIQggBQRAIAggBiADIAEgBCACEF4MAQsgCCAGIAMgASAEIAIQXAsQAw0CIAAgAzYCgOIBIABBATYCiOEBIAAgAEHw4gFqNgLw4QEgCUECRgRAIAAgAEGo0ABqNgIMCyAAIANqIgBBiOMBakIANwAAIABBgOMBakIANwAAIABB+OIBakIANwAAIABB8OIBakIANwAAIAoPCwJ/AkACQAJAIANBAnZBA3FBf2oiBEECSw0AIARBAWsOAgACAQtBASEEIANBA3YMAgtBAiEEIAEvAABBBHYMAQtBAyEEIAEQIUEEdgsiAyAEaiIFQSBqIAJLBEAgBSACSw0CIABB8OIBaiABIARqIAMQCyEBIAAgAzYCgOIBIAAgATYC8OEBIAEgA2oiAEIANwAYIABCADcAECAAQgA3AAggAEIANwAAIAUPCyAAIAM2AoDiASAAIAEgBGo2AvDhASAFDwsCfwJAAkACQCADQQJ2QQNxQX9qIgRBAksNACAEQQFrDgIAAgELQQEhByADQQN2DAILQQIhByABLwAAQQR2DAELIAJBBEkgARAhIgJBj4CAAUtyDQFBAyEHIAJBBHYLIQIgAEHw4gFqIAEgB2otAAAgAkEgahAQIQEgACACNgKA4gEgACABNgLw4QEgB0EBaiEHCyAHC0sAIABC+erQ0OfJoeThADcDICAAQgA3AxggAELP1tO+0ser2UI3AxAgAELW64Lu6v2J9eAANwMIIABCADcDACAAQShqQQBBKBAQGgviAgICfwV+IABBKGoiASAAKAJIaiECAn4gACkDACIDQiBaBEAgACkDECIEQgeJIAApAwgiBUIBiXwgACkDGCIGQgyJfCAAKQMgIgdCEol8IAUQGSAEEBkgBhAZIAcQGQwBCyAAKQMYQsXP2bLx5brqJ3wLIAN8IQMDQCABQQhqIgAgAk0EQEIAIAEpAAAQCSADhUIbiUKHla+vmLbem55/fkLj3MqV/M7y9YV/fCEDIAAhAQwBCwsCQCABQQRqIgAgAksEQCABIQAMAQsgASgAAK1Ch5Wvr5i23puef34gA4VCF4lCz9bTvtLHq9lCfkL5893xmfaZqxZ8IQMLA0AgACACSQRAIAAxAABCxc/ZsvHluuonfiADhUILiUKHla+vmLbem55/fiEDIABBAWohAAwBCwsgA0IhiCADhULP1tO+0ser2UJ+IgNCHYggA4VC+fPd8Zn2masWfiIDQiCIIAOFC+8CAgJ/BH4gACAAKQMAIAKtfDcDAAJAAkAgACgCSCIDIAJqIgRBH00EQCABRQ0BIAAgA2pBKGogASACECAgACgCSCACaiEEDAELIAEgAmohAgJ/IAMEQCAAQShqIgQgA2ogAUEgIANrECAgACAAKQMIIAQpAAAQCTcDCCAAIAApAxAgACkAMBAJNwMQIAAgACkDGCAAKQA4EAk3AxggACAAKQMgIABBQGspAAAQCTcDICAAKAJIIQMgAEEANgJIIAEgA2tBIGohAQsgAUEgaiACTQsEQCACQWBqIQMgACkDICEFIAApAxghBiAAKQMQIQcgACkDCCEIA0AgCCABKQAAEAkhCCAHIAEpAAgQCSEHIAYgASkAEBAJIQYgBSABKQAYEAkhBSABQSBqIgEgA00NAAsgACAFNwMgIAAgBjcDGCAAIAc3AxAgACAINwMICyABIAJPDQEgAEEoaiABIAIgAWsiBBAgCyAAIAQ2AkgLCy8BAX8gAEUEQEG2f0EAIAMbDwtBun8hBCADIAFNBH8gACACIAMQEBogAwVBun8LCy8BAX8gAEUEQEG2f0EAIAMbDwtBun8hBCADIAFNBH8gACACIAMQCxogAwVBun8LC6gCAQZ/IwBBEGsiByQAIABB2OABaikDAEKAgIAQViEIQbh/IQUCQCAEQf//B0sNACAAIAMgBBBCIgUQAyIGDQAgACgCnOIBIQkgACAHQQxqIAMgAyAFaiAGGyIKIARBACAFIAYbayIGEEAiAxADBEAgAyEFDAELIAcoAgwhBCABRQRAQbp/IQUgBEEASg0BCyAGIANrIQUgAyAKaiEDAkAgCQRAIABBADYCnOIBDAELAkACQAJAIARBBUgNACAAQdjgAWopAwBCgICACFgNAAwBCyAAQQA2ApziAQwBCyAAKAIIED8hBiAAQQA2ApziASAGQRRPDQELIAAgASACIAMgBSAEIAgQOSEFDAELIAAgASACIAMgBSAEIAgQOiEFCyAHQRBqJAAgBQtnACAAQdDgAWogASACIAAoAuzhARAuIgEQAwRAIAEPC0G4fyECAkAgAQ0AIABB7OABaigCACIBBEBBYCECIAAoApjiASABRw0BC0EAIQIgAEHw4AFqKAIARQ0AIABBkOEBahBDCyACCycBAX8QVyIERQRAQUAPCyAEIAAgASACIAMgBBBLEE8hACAEEFYgAAs/AQF/AkACQAJAIAAoAqDiAUEBaiIBQQJLDQAgAUEBaw4CAAECCyAAEDBBAA8LIABBADYCoOIBCyAAKAKU4gELvAMCB38BfiMAQRBrIgkkAEG4fyEGAkAgBCgCACIIQQVBCSAAKALs4QEiBRtJDQAgAygCACIHQQFBBSAFGyAFEC8iBRADBEAgBSEGDAELIAggBUEDakkNACAAIAcgBRBJIgYQAw0AIAEgAmohCiAAQZDhAWohCyAIIAVrIQIgBSAHaiEHIAEhBQNAIAcgAiAJECwiBhADDQEgAkF9aiICIAZJBEBBuH8hBgwCCyAJKAIAIghBAksEQEFsIQYMAgsgB0EDaiEHAn8CQAJAAkAgCEEBaw4CAgABCyAAIAUgCiAFayAHIAYQSAwCCyAFIAogBWsgByAGEEcMAQsgBSAKIAVrIActAAAgCSgCCBBGCyIIEAMEQCAIIQYMAgsgACgC8OABBEAgCyAFIAgQRQsgAiAGayECIAYgB2ohByAFIAhqIQUgCSgCBEUNAAsgACkD0OABIgxCf1IEQEFsIQYgDCAFIAFrrFINAQsgACgC8OABBEBBaiEGIAJBBEkNASALEEQhDCAHKAAAIAynRw0BIAdBBGohByACQXxqIQILIAMgBzYCACAEIAI2AgAgBSABayEGCyAJQRBqJAAgBgsuACAAECsCf0EAQQAQAw0AGiABRSACRXJFBEBBYiAAIAEgAhA9EAMNARoLQQALCzcAIAEEQCAAIAAoAsTgASABKAIEIAEoAghqRzYCnOIBCyAAECtBABADIAFFckUEQCAAIAEQWwsL0QIBB38jAEEQayIGJAAgBiAENgIIIAYgAzYCDCAFBEAgBSgCBCEKIAUoAgghCQsgASEIAkACQANAIAAoAuzhARAWIQsCQANAIAQgC0kNASADKAAAQXBxQdDUtMIBRgRAIAMgBBAiIgcQAw0EIAQgB2shBCADIAdqIQMMAQsLIAYgAzYCDCAGIAQ2AggCQCAFBEAgACAFEE5BACEHQQAQA0UNAQwFCyAAIAogCRBNIgcQAw0ECyAAIAgQUCAMQQFHQQAgACAIIAIgBkEMaiAGQQhqEEwiByIDa0EAIAMQAxtBCkdyRQRAQbh/IQcMBAsgBxADDQMgAiAHayECIAcgCGohCEEBIQwgBigCDCEDIAYoAgghBAwBCwsgBiADNgIMIAYgBDYCCEG4fyEHIAQNASAIIAFrIQcMAQsgBiADNgIMIAYgBDYCCAsgBkEQaiQAIAcLRgECfyABIAAoArjgASICRwRAIAAgAjYCxOABIAAgATYCuOABIAAoArzgASEDIAAgATYCvOABIAAgASADIAJrajYCwOABCwutAgIEfwF+IwBBQGoiBCQAAkACQCACQQhJDQAgASgAAEFwcUHQ1LTCAUcNACABIAIQIiEBIABCADcDCCAAQQA2AgQgACABNgIADAELIARBGGogASACEC0iAxADBEAgACADEBoMAQsgAwRAIABBuH8QGgwBCyACIAQoAjAiA2shAiABIANqIQMDQAJAIAAgAyACIARBCGoQLCIFEAMEfyAFBSACIAVBA2oiBU8NAUG4fwsQGgwCCyAGQQFqIQYgAiAFayECIAMgBWohAyAEKAIMRQ0ACyAEKAI4BEAgAkEDTQRAIABBuH8QGgwCCyADQQRqIQMLIAQoAighAiAEKQMYIQcgAEEANgIEIAAgAyABazYCACAAIAIgBmytIAcgB0J/URs3AwgLIARBQGskAAslAQF/IwBBEGsiAiQAIAIgACABEFEgAigCACEAIAJBEGokACAAC30BBH8jAEGQBGsiBCQAIARB/wE2AggCQCAEQRBqIARBCGogBEEMaiABIAIQFSIGEAMEQCAGIQUMAQtBVCEFIAQoAgwiB0EGSw0AIAMgBEEQaiAEKAIIIAcQQSIFEAMNACAAIAEgBmogAiAGayADEDwhBQsgBEGQBGokACAFC4cBAgJ/An5BABAWIQMCQANAIAEgA08EQAJAIAAoAABBcHFB0NS0wgFGBEAgACABECIiAhADRQ0BQn4PCyAAIAEQVSIEQn1WDQMgBCAFfCIFIARUIQJCfiEEIAINAyAAIAEQUiICEAMNAwsgASACayEBIAAgAmohAAwBCwtCfiAFIAEbIQQLIAQLPwIBfwF+IwBBMGsiAiQAAn5CfiACQQhqIAAgARAtDQAaQgAgAigCHEEBRg0AGiACKQMICyEDIAJBMGokACADC40BAQJ/IwBBMGsiASQAAkAgAEUNACAAKAKI4gENACABIABB/OEBaigCADYCKCABIAApAvThATcDICAAEDAgACgCqOIBIQIgASABKAIoNgIYIAEgASkDIDcDECACIAFBEGoQGyAAQQA2AqjiASABIAEoAig2AgggASABKQMgNwMAIAAgARAbCyABQTBqJAALKgECfyMAQRBrIgAkACAAQQA2AgggAEIANwMAIAAQWCEBIABBEGokACABC4cBAQN/IwBBEGsiAiQAAkAgACgCAEUgACgCBEVzDQAgAiAAKAIINgIIIAIgACkCADcDAAJ/IAIoAgAiAQRAIAIoAghBqOMJIAERBQAMAQtBqOMJECgLIgFFDQAgASAAKQIANwL04QEgAUH84QFqIAAoAgg2AgAgARBZIAEhAwsgAkEQaiQAIAMLywEBAn8jAEEgayIBJAAgAEGBgIDAADYCtOIBIABBADYCiOIBIABBADYC7OEBIABCADcDkOIBIABBADYCpOMJIABBADYC3OIBIABCADcCzOIBIABBADYCvOIBIABBADYCxOABIABCADcCnOIBIABBpOIBakIANwIAIABBrOIBakEANgIAIAFCADcCECABQgA3AhggASABKQMYNwMIIAEgASkDEDcDACABKAIIQQh2QQFxIQIgAEEANgLg4gEgACACNgKM4gEgAUEgaiQAC3YBA38jAEEwayIBJAAgAARAIAEgAEHE0AFqIgIoAgA2AiggASAAKQK80AE3AyAgACgCACEDIAEgAigCADYCGCABIAApArzQATcDECADIAFBEGoQGyABIAEoAig2AgggASABKQMgNwMAIAAgARAbCyABQTBqJAALzAEBAX8gACABKAK00AE2ApjiASAAIAEoAgQiAjYCwOABIAAgAjYCvOABIAAgAiABKAIIaiICNgK44AEgACACNgLE4AEgASgCuNABBEAgAEKBgICAEDcDiOEBIAAgAUGk0ABqNgIMIAAgAUGUIGo2AgggACABQZwwajYCBCAAIAFBDGo2AgAgAEGs0AFqIAFBqNABaigCADYCACAAQbDQAWogAUGs0AFqKAIANgIAIABBtNABaiABQbDQAWooAgA2AgAPCyAAQgA3A4jhAQs7ACACRQRAQbp/DwsgBEUEQEFsDwsgAiAEEGAEQCAAIAEgAiADIAQgBRBhDwsgACABIAIgAyAEIAUQZQtGAQF/IwBBEGsiBSQAIAVBCGogBBAOAn8gBS0ACQRAIAAgASACIAMgBBAyDAELIAAgASACIAMgBBA0CyEAIAVBEGokACAACzQAIAAgAyAEIAUQNiIFEAMEQCAFDwsgBSAESQR/IAEgAiADIAVqIAQgBWsgABA1BUG4fwsLRgEBfyMAQRBrIgUkACAFQQhqIAQQDgJ/IAUtAAkEQCAAIAEgAiADIAQQYgwBCyAAIAEgAiADIAQQNQshACAFQRBqJAAgAAtZAQF/QQ8hAiABIABJBEAgAUEEdCAAbiECCyAAQQh2IgEgAkEYbCIAQYwIaigCAGwgAEGICGooAgBqIgJBA3YgAmogAEGACGooAgAgAEGECGooAgAgAWxqSQs3ACAAIAMgBCAFQYAQEDMiBRADBEAgBQ8LIAUgBEkEfyABIAIgAyAFaiAEIAVrIAAQMgVBuH8LC78DAQN/IwBBIGsiBSQAIAVBCGogAiADEAYiAhADRQRAIAAgAWoiB0F9aiEGIAUgBBAOIARBBGohAiAFLQACIQMDQEEAIAAgBkkgBUEIahAEGwRAIAAgAiAFQQhqIAMQAkECdGoiBC8BADsAACAFQQhqIAQtAAIQASAAIAQtAANqIgQgAiAFQQhqIAMQAkECdGoiAC8BADsAACAFQQhqIAAtAAIQASAEIAAtAANqIQAMAQUgB0F+aiEEA0AgBUEIahAEIAAgBEtyRQRAIAAgAiAFQQhqIAMQAkECdGoiBi8BADsAACAFQQhqIAYtAAIQASAAIAYtAANqIQAMAQsLA0AgACAES0UEQCAAIAIgBUEIaiADEAJBAnRqIgYvAQA7AAAgBUEIaiAGLQACEAEgACAGLQADaiEADAELCwJAIAAgB08NACAAIAIgBUEIaiADEAIiA0ECdGoiAC0AADoAACAALQADQQFGBEAgBUEIaiAALQACEAEMAQsgBSgCDEEfSw0AIAVBCGogAiADQQJ0ai0AAhABIAUoAgxBIUkNACAFQSA2AgwLIAFBbCAFQQhqEAobIQILCwsgBUEgaiQAIAILkgIBBH8jAEFAaiIJJAAgCSADQTQQCyEDAkAgBEECSA0AIAMgBEECdGooAgAhCSADQTxqIAgQIyADQQE6AD8gAyACOgA+QQAhBCADKAI8IQoDQCAEIAlGDQEgACAEQQJ0aiAKNgEAIARBAWohBAwAAAsAC0EAIQkDQCAGIAlGRQRAIAMgBSAJQQF0aiIKLQABIgtBAnRqIgwoAgAhBCADQTxqIAotAABBCHQgCGpB//8DcRAjIANBAjoAPyADIAcgC2siCiACajoAPiAEQQEgASAKa3RqIQogAygCPCELA0AgACAEQQJ0aiALNgEAIARBAWoiBCAKSQ0ACyAMIAo2AgAgCUEBaiEJDAELCyADQUBrJAALowIBCX8jAEHQAGsiCSQAIAlBEGogBUE0EAsaIAcgBmshDyAHIAFrIRADQAJAIAMgCkcEQEEBIAEgByACIApBAXRqIgYtAAEiDGsiCGsiC3QhDSAGLQAAIQ4gCUEQaiAMQQJ0aiIMKAIAIQYgCyAPTwRAIAAgBkECdGogCyAIIAUgCEE0bGogCCAQaiIIQQEgCEEBShsiCCACIAQgCEECdGooAgAiCEEBdGogAyAIayAHIA4QYyAGIA1qIQgMAgsgCUEMaiAOECMgCUEBOgAPIAkgCDoADiAGIA1qIQggCSgCDCELA0AgBiAITw0CIAAgBkECdGogCzYBACAGQQFqIQYMAAALAAsgCUHQAGokAA8LIAwgCDYCACAKQQFqIQoMAAALAAs0ACAAIAMgBCAFEDYiBRADBEAgBQ8LIAUgBEkEfyABIAIgAyAFaiAEIAVrIAAQNAVBuH8LCyMAIAA/AEEQdGtB//8DakEQdkAAQX9GBEBBAA8LQQAQAEEBCzsBAX8gAgRAA0AgACABIAJBgCAgAkGAIEkbIgMQCyEAIAFBgCBqIQEgAEGAIGohACACIANrIgINAAsLCwYAIAAQAwsLqBUJAEGICAsNAQAAAAEAAAACAAAAAgBBoAgLswYBAAAAAQAAAAIAAAACAAAAJgAAAIIAAAAhBQAASgAAAGcIAAAmAAAAwAEAAIAAAABJBQAASgAAAL4IAAApAAAALAIAAIAAAABJBQAASgAAAL4IAAAvAAAAygIAAIAAAACKBQAASgAAAIQJAAA1AAAAcwMAAIAAAACdBQAASgAAAKAJAAA9AAAAgQMAAIAAAADrBQAASwAAAD4KAABEAAAAngMAAIAAAABNBgAASwAAAKoKAABLAAAAswMAAIAAAADBBgAATQAAAB8NAABNAAAAUwQAAIAAAAAjCAAAUQAAAKYPAABUAAAAmQQAAIAAAABLCQAAVwAAALESAABYAAAA2gQAAIAAAABvCQAAXQAAACMUAABUAAAARQUAAIAAAABUCgAAagAAAIwUAABqAAAArwUAAIAAAAB2CQAAfAAAAE4QAAB8AAAA0gIAAIAAAABjBwAAkQAAAJAHAACSAAAAAAAAAAEAAAABAAAABQAAAA0AAAAdAAAAPQAAAH0AAAD9AAAA/QEAAP0DAAD9BwAA/Q8AAP0fAAD9PwAA/X8AAP3/AAD9/wEA/f8DAP3/BwD9/w8A/f8fAP3/PwD9/38A/f//AP3//wH9//8D/f//B/3//w/9//8f/f//P/3//38AAAAAAQAAAAIAAAADAAAABAAAAAUAAAAGAAAABwAAAAgAAAAJAAAACgAAAAsAAAAMAAAADQAAAA4AAAAPAAAAEAAAABEAAAASAAAAEwAAABQAAAAVAAAAFgAAABcAAAAYAAAAGQAAABoAAAAbAAAAHAAAAB0AAAAeAAAAHwAAAAMAAAAEAAAABQAAAAYAAAAHAAAACAAAAAkAAAAKAAAACwAAAAwAAAANAAAADgAAAA8AAAAQAAAAEQAAABIAAAATAAAAFAAAABUAAAAWAAAAFwAAABgAAAAZAAAAGgAAABsAAAAcAAAAHQAAAB4AAAAfAAAAIAAAACEAAAAiAAAAIwAAACUAAAAnAAAAKQAAACsAAAAvAAAAMwAAADsAAABDAAAAUwAAAGMAAACDAAAAAwEAAAMCAAADBAAAAwgAAAMQAAADIAAAA0AAAAOAAAADAAEAQeAPC1EBAAAAAQAAAAEAAAABAAAAAgAAAAIAAAADAAAAAwAAAAQAAAAEAAAABQAAAAcAAAAIAAAACQAAAAoAAAALAAAADAAAAA0AAAAOAAAADwAAABAAQcQQC4sBAQAAAAIAAAADAAAABAAAAAUAAAAGAAAABwAAAAgAAAAJAAAACgAAAAsAAAAMAAAADQAAAA4AAAAPAAAAEAAAABIAAAAUAAAAFgAAABgAAAAcAAAAIAAAACgAAAAwAAAAQAAAAIAAAAAAAQAAAAIAAAAEAAAACAAAABAAAAAgAAAAQAAAAIAAAAAAAQBBkBIL5gQBAAAAAQAAAAEAAAABAAAAAgAAAAIAAAADAAAAAwAAAAQAAAAGAAAABwAAAAgAAAAJAAAACgAAAAsAAAAMAAAADQAAAA4AAAAPAAAAEAAAAAEAAAAEAAAACAAAAAAAAAABAAEBBgAAAAAAAAQAAAAAEAAABAAAAAAgAAAFAQAAAAAAAAUDAAAAAAAABQQAAAAAAAAFBgAAAAAAAAUHAAAAAAAABQkAAAAAAAAFCgAAAAAAAAUMAAAAAAAABg4AAAAAAAEFEAAAAAAAAQUUAAAAAAABBRYAAAAAAAIFHAAAAAAAAwUgAAAAAAAEBTAAAAAgAAYFQAAAAAAABwWAAAAAAAAIBgABAAAAAAoGAAQAAAAADAYAEAAAIAAABAAAAAAAAAAEAQAAAAAAAAUCAAAAIAAABQQAAAAAAAAFBQAAACAAAAUHAAAAAAAABQgAAAAgAAAFCgAAAAAAAAULAAAAAAAABg0AAAAgAAEFEAAAAAAAAQUSAAAAIAABBRYAAAAAAAIFGAAAACAAAwUgAAAAAAADBSgAAAAAAAYEQAAAABAABgRAAAAAIAAHBYAAAAAAAAkGAAIAAAAACwYACAAAMAAABAAAAAAQAAAEAQAAACAAAAUCAAAAIAAABQMAAAAgAAAFBQAAACAAAAUGAAAAIAAABQgAAAAgAAAFCQAAACAAAAULAAAAIAAABQwAAAAAAAAGDwAAACAAAQUSAAAAIAABBRQAAAAgAAIFGAAAACAAAgUcAAAAIAADBSgAAAAgAAQFMAAAAAAAEAYAAAEAAAAPBgCAAAAAAA4GAEAAAAAADQYAIABBgBcLhwIBAAEBBQAAAAAAAAUAAAAAAAAGBD0AAAAAAAkF/QEAAAAADwX9fwAAAAAVBf3/HwAAAAMFBQAAAAAABwR9AAAAAAAMBf0PAAAAABIF/f8DAAAAFwX9/38AAAAFBR0AAAAAAAgE/QAAAAAADgX9PwAAAAAUBf3/DwAAAAIFAQAAABAABwR9AAAAAAALBf0HAAAAABEF/f8BAAAAFgX9/z8AAAAEBQ0AAAAQAAgE/QAAAAAADQX9HwAAAAATBf3/BwAAAAEFAQAAABAABgQ9AAAAAAAKBf0DAAAAABAF/f8AAAAAHAX9//8PAAAbBf3//wcAABoF/f//AwAAGQX9//8BAAAYBf3//wBBkBkLhgQBAAEBBgAAAAAAAAYDAAAAAAAABAQAAAAgAAAFBQAAAAAAAAUGAAAAAAAABQgAAAAAAAAFCQAAAAAAAAULAAAAAAAABg0AAAAAAAAGEAAAAAAAAAYTAAAAAAAABhYAAAAAAAAGGQAAAAAAAAYcAAAAAAAABh8AAAAAAAAGIgAAAAAAAQYlAAAAAAABBikAAAAAAAIGLwAAAAAAAwY7AAAAAAAEBlMAAAAAAAcGgwAAAAAACQYDAgAAEAAABAQAAAAAAAAEBQAAACAAAAUGAAAAAAAABQcAAAAgAAAFCQAAAAAAAAUKAAAAAAAABgwAAAAAAAAGDwAAAAAAAAYSAAAAAAAABhUAAAAAAAAGGAAAAAAAAAYbAAAAAAAABh4AAAAAAAAGIQAAAAAAAQYjAAAAAAABBicAAAAAAAIGKwAAAAAAAwYzAAAAAAAEBkMAAAAAAAUGYwAAAAAACAYDAQAAIAAABAQAAAAwAAAEBAAAABAAAAQFAAAAIAAABQcAAAAgAAAFCAAAACAAAAUKAAAAIAAABQsAAAAAAAAGDgAAAAAAAAYRAAAAAAAABhQAAAAAAAAGFwAAAAAAAAYaAAAAAAAABh0AAAAAAAAGIAAAAAAAEAYDAAEAAAAPBgOAAAAAAA4GA0AAAAAADQYDIAAAAAAMBgMQAAAAAAsGAwgAAAAACgYDBABBpB0L2QEBAAAAAwAAAAcAAAAPAAAAHwAAAD8AAAB/AAAA/wAAAP8BAAD/AwAA/wcAAP8PAAD/HwAA/z8AAP9/AAD//wAA//8BAP//AwD//wcA//8PAP//HwD//z8A//9/AP///wD///8B////A////wf///8P////H////z////9/AAAAAAEAAAACAAAABAAAAAAAAAACAAAABAAAAAgAAAAAAAAAAQAAAAIAAAABAAAABAAAAAQAAAAEAAAABAAAAAgAAAAIAAAACAAAAAcAAAAIAAAACQAAAAoAAAALAEGgIAsDwBBQ",A=new WeakMap;let g,v=0;class y extends i.Loader{constructor(e){super(e),this.transcoderPath="",this.transcoderBinary=null,this.transcoderPending=null,this.workerPool=new a.h,this.workerSourceURL="",this.workerConfig=null,"undefined"!=typeof MSC_TRANSCODER&&console.warn('THREE.KTX2Loader: Please update to latest "basis_transcoder". "msc_basis_transcoder" is no longer supported in three.js r125+.')}setTranscoderPath(e){return this.transcoderPath=e,this}setWorkerLimit(e){return this.workerPool.setWorkerLimit(e),this}async detectSupportAsync(e){return this.workerConfig={astcSupported:await e.hasFeatureAsync("texture-compression-astc"),etc1Supported:await e.hasFeatureAsync("texture-compression-etc1"),etc2Supported:await e.hasFeatureAsync("texture-compression-etc2"),dxtSupported:await e.hasFeatureAsync("texture-compression-bc"),bptcSupported:await e.hasFeatureAsync("texture-compression-bptc"),pvrtcSupported:await e.hasFeatureAsync("texture-compression-pvrtc")},this}detectSupport(e){return!0===e.isWebGPURenderer?this.workerConfig={astcSupported:e.hasFeature("texture-compression-astc"),etc1Supported:e.hasFeature("texture-compression-etc1"),etc2Supported:e.hasFeature("texture-compression-etc2"),dxtSupported:e.hasFeature("texture-compression-bc"),bptcSupported:e.hasFeature("texture-compression-bptc"),pvrtcSupported:e.hasFeature("texture-compression-pvrtc")}:this.workerConfig={astcSupported:e.extensions.has("WEBGL_compressed_texture_astc"),etc1Supported:e.extensions.has("WEBGL_compressed_texture_etc1"),etc2Supported:e.extensions.has("WEBGL_compressed_texture_etc"),dxtSupported:e.extensions.has("WEBGL_compressed_texture_s3tc"),bptcSupported:e.extensions.has("EXT_texture_compression_bptc"),pvrtcSupported:e.extensions.has("WEBGL_compressed_texture_pvrtc")||e.extensions.has("WEBKIT_WEBGL_compressed_texture_pvrtc")},this}init(){if(!this.transcoderPending){const e=new i.FileLoader(this.manager);e.setPath(this.transcoderPath),e.setWithCredentials(this.withCredentials);const t=e.loadAsync("basis_transcoder.js"),n=new i.FileLoader(this.manager);n.setPath(this.transcoderPath),n.setResponseType("arraybuffer"),n.setWithCredentials(this.withCredentials);const r=n.loadAsync("basis_transcoder.wasm");this.transcoderPending=Promise.all([t,r]).then(([e,t])=>{const n=y.BasisWorker.toString(),r=["/* constants */","let _EngineFormat = "+JSON.stringify(y.EngineFormat),"let _TranscoderFormat = "+JSON.stringify(y.TranscoderFormat),"let _BasisFormat = "+JSON.stringify(y.BasisFormat),"/* basis_transcoder.js */",e,"/* worker */",n.substring(n.indexOf("{")+1,n.lastIndexOf("}"))].join("\n");this.workerSourceURL=URL.createObjectURL(new Blob([r])),this.transcoderBinary=t,this.workerPool.setWorkerCreator(()=>{const e=new Worker(this.workerSourceURL),t=this.transcoderBinary.slice(0);return e.postMessage({type:"init",config:this.workerConfig,transcoderBinary:t},[t]),e})}),v>0&&console.warn("THREE.KTX2Loader: Multiple active KTX2 loaders may cause performance issues. Use a single KTX2Loader instance, or call .dispose() on old instances."),v++}return this.transcoderPending}load(e,t,n,r){if(null===this.workerConfig)throw new Error("THREE.KTX2Loader: Missing initialization with `.detectSupport( renderer )`.");const a=new i.FileLoader(this.manager);a.setResponseType("arraybuffer"),a.setWithCredentials(this.withCredentials),a.load(e,e=>{if(A.has(e))return A.get(e).promise.then(t).catch(r);this._createTexture(e).then(e=>t?t(e):null).catch(r)},n,r)}_createTextureFrom(e,t){const{faces:n,width:r,height:a,format:s,type:o,error:l,dfdFlags:c}=e;if("error"===o)return Promise.reject(l);let u;if(6===t.faceCount)u=new i.CompressedCubeTexture(n,s,i.UnsignedByteType);else{const e=n[0].mipmaps;u=t.layerCount>1?new i.CompressedArrayTexture(e,r,a,t.layerCount,s,i.UnsignedByteType):new i.CompressedTexture(e,r,a,s,i.UnsignedByteType)}return u.minFilter=1===n[0].mipmaps.length?i.LinearFilter:i.LinearMipmapLinearFilter,u.magFilter=i.LinearFilter,u.generateMipmaps=!1,u.needsUpdate=!0,u.colorSpace=E(t),u.premultiplyAlpha=!!(1&c),u}async _createTexture(e,t={}){const n=function(e){const t=new Uint8Array(e.buffer,e.byteOffset,l.length);if(t[0]!==l[0]||t[1]!==l[1]||t[2]!==l[2]||t[3]!==l[3]||t[4]!==l[4]||t[5]!==l[5]||t[6]!==l[6]||t[7]!==l[7]||t[8]!==l[8]||t[9]!==l[9]||t[10]!==l[10]||t[11]!==l[11])throw new Error("Missing KTX 2.0 identifier.");const n=new s,r=17*Uint32Array.BYTES_PER_ELEMENT,i=new o(e,l.length,r,!0);n.vkFormat=i._nextUint32(),n.typeSize=i._nextUint32(),n.pixelWidth=i._nextUint32(),n.pixelHeight=i._nextUint32(),n.pixelDepth=i._nextUint32(),n.layerCount=i._nextUint32(),n.faceCount=i._nextUint32();const a=i._nextUint32();n.supercompressionScheme=i._nextUint32();const u=i._nextUint32(),h=i._nextUint32(),d=i._nextUint32(),p=i._nextUint32(),f=i._nextUint64(),m=i._nextUint64(),A=new o(e,l.length+r,3*a*8,!0);for(let t=0;t{const t=new f;await t.init(),e(t)})),n=await g);const r=[];for(let a=0;a>a),o=Math.max(1,e.pixelHeight>>a),l=e.pixelDepth?Math.max(1,e.pixelDepth>>a):0,c=e.levels[a];let u,h;if(0===e.supercompressionScheme)u=c.levelData;else{if(2!==e.supercompressionScheme)throw new Error("THREE.KTX2Loader: Unsupported supercompressionScheme.");u=n.decode(c.levelData,c.uncompressedByteLength)}h=x[t]===i.FloatType?new Float32Array(u.buffer,u.byteOffset,u.byteLength/Float32Array.BYTES_PER_ELEMENT):x[t]===i.HalfFloatType?new Uint16Array(u.buffer,u.byteOffset,u.byteLength/Uint16Array.BYTES_PER_ELEMENT):u,r.push({data:h,width:s,height:o,depth:l})}let a;if(b.has(_[t]))a=0===e.pixelDepth?new i.DataTexture(r[0].data,e.pixelWidth,e.pixelHeight):new i.Data3DTexture(r[0].data,e.pixelWidth,e.pixelHeight,e.pixelDepth);else{if(e.pixelDepth>0)throw new Error("THREE.KTX2Loader: Unsupported pixelDepth.");a=new i.CompressedTexture(r,e.pixelWidth,e.pixelHeight)}return a.mipmaps=r,a.type=x[t],a.format=_[t],a.colorSpace=E(e),a.needsUpdate=!0,Promise.resolve(a)}(n);const r=t,a=this.init().then(()=>this.workerPool.postMessage({type:"transcode",buffer:e,taskConfig:r},[e])).then(e=>this._createTextureFrom(e.data,n));return A.set(e,{promise:a}),a}dispose(){return this.workerPool.dispose(),this.workerSourceURL&&URL.revokeObjectURL(this.workerSourceURL),v--,this}}y.BasisFormat={ETC1S:0,UASTC_4x4:1},y.TranscoderFormat={ETC1:0,ETC2:1,BC1:2,BC3:3,BC4:4,BC5:5,BC7_M6_OPAQUE_ONLY:6,BC7_M5:7,PVRTC1_4_RGB:8,PVRTC1_4_RGBA:9,ASTC_4x4:10,ATC_RGB:11,ATC_RGBA_INTERPOLATED_ALPHA:12,RGBA32:13,RGB565:14,BGR565:15,RGBA4444:16},y.EngineFormat={RGBAFormat:i.RGBAFormat,RGBA_ASTC_4x4_Format:i.RGBA_ASTC_4x4_Format,RGBA_BPTC_Format:i.RGBA_BPTC_Format,RGBA_ETC2_EAC_Format:i.RGBA_ETC2_EAC_Format,RGBA_PVRTC_4BPPV1_Format:i.RGBA_PVRTC_4BPPV1_Format,RGBA_S3TC_DXT5_Format:i.RGBA_S3TC_DXT5_Format,RGB_ETC1_Format:i.RGB_ETC1_Format,RGB_ETC2_Format:i.RGB_ETC2_Format,RGB_PVRTC_4BPPV1_Format:i.RGB_PVRTC_4BPPV1_Format,RGBA_S3TC_DXT1_Format:i.RGBA_S3TC_DXT1_Format},y.BasisWorker=function(){let e,t,n;const r=_EngineFormat,i=_TranscoderFormat,a=_BasisFormat;self.addEventListener("message",function(s){const h=s.data;switch(h.type){case"init":e=h.config,d=h.transcoderBinary,t=new Promise(e=>{n={wasmBinary:d,onRuntimeInitialized:e},BASIS(n)}).then(()=>{n.initializeBasis(),void 0===n.KTX2File&&console.warn("THREE.KTX2Loader: Please update Basis Universal transcoder.")});break;case"transcode":t.then(()=>{try{const{faces:t,buffers:s,width:d,height:p,hasAlpha:f,format:m,dfdFlags:A}=function(t){const s=new n.KTX2File(new Uint8Array(t));function h(){s.close(),s.delete()}if(!s.isValid())throw h(),new Error("THREE.KTX2Loader:\tInvalid or unsupported .ktx2 file");const d=s.isUASTC()?a.UASTC_4x4:a.ETC1S,p=s.getWidth(),f=s.getHeight(),m=s.getLayers()||1,A=s.getLevels(),g=s.getFaces(),v=s.getHasAlpha(),y=s.getDFDFlags(),{transcoderFormat:b,engineFormat:_}=function(t,n,s,u){let h,d;const p=t===a.ETC1S?o:l;for(let r=0;r1?(i=o.origWidth,a=o.origHeight):(i=o.width,a=o.height);const l=new Uint8Array(s.getImageTranscodedSizeInBytes(n,t,0,b));if(!s.transcodeImage(l,n,t,e,b,0,-1,-1))throw h(),new Error("THREE.KTX2Loader: .transcodeImage failed.");r.push(l)}const o=u(r);t.push({data:o,width:i,height:a}),E.push(o.buffer)}x.push({mipmaps:t,width:p,height:f,format:_})}return h(),{faces:x,buffers:E,width:p,height:f,hasAlpha:v,format:_,dfdFlags:y}}(h.buffer);self.postMessage({type:"transcode",id:h.id,faces:t,width:d,height:p,hasAlpha:f,format:m,dfdFlags:A},s)}catch(e){console.error(e),self.postMessage({type:"error",id:h.id,error:e.message})}})}var d});const s=[{if:"astcSupported",basisFormat:[a.UASTC_4x4],transcoderFormat:[i.ASTC_4x4,i.ASTC_4x4],engineFormat:[r.RGBA_ASTC_4x4_Format,r.RGBA_ASTC_4x4_Format],priorityETC1S:1/0,priorityUASTC:1,needsPowerOfTwo:!1},{if:"bptcSupported",basisFormat:[a.ETC1S,a.UASTC_4x4],transcoderFormat:[i.BC7_M5,i.BC7_M5],engineFormat:[r.RGBA_BPTC_Format,r.RGBA_BPTC_Format],priorityETC1S:3,priorityUASTC:2,needsPowerOfTwo:!1},{if:"dxtSupported",basisFormat:[a.ETC1S,a.UASTC_4x4],transcoderFormat:[i.BC1,i.BC3],engineFormat:[r.RGBA_S3TC_DXT1_Format,r.RGBA_S3TC_DXT5_Format],priorityETC1S:4,priorityUASTC:5,needsPowerOfTwo:!1},{if:"etc2Supported",basisFormat:[a.ETC1S,a.UASTC_4x4],transcoderFormat:[i.ETC1,i.ETC2],engineFormat:[r.RGB_ETC2_Format,r.RGBA_ETC2_EAC_Format],priorityETC1S:1,priorityUASTC:3,needsPowerOfTwo:!1},{if:"etc1Supported",basisFormat:[a.ETC1S,a.UASTC_4x4],transcoderFormat:[i.ETC1],engineFormat:[r.RGB_ETC1_Format],priorityETC1S:2,priorityUASTC:4,needsPowerOfTwo:!1},{if:"pvrtcSupported",basisFormat:[a.ETC1S,a.UASTC_4x4],transcoderFormat:[i.PVRTC1_4_RGB,i.PVRTC1_4_RGBA],engineFormat:[r.RGB_PVRTC_4BPPV1_Format,r.RGBA_PVRTC_4BPPV1_Format],priorityETC1S:5,priorityUASTC:6,needsPowerOfTwo:!0}],o=s.sort(function(e,t){return e.priorityETC1S-t.priorityETC1S}),l=s.sort(function(e,t){return e.priorityUASTC-t.priorityUASTC});function c(e){return e<=2||!(e&e-1)&&0!==e}function u(e){if(1===e.length)return e[0];let t=0;for(let n=0;n{"use strict";n.d(t,{h:()=>r});class r{constructor(e=4){this.pool=e,this.queue=[],this.workers=[],this.workersResolve=[],this.workerStatus=0}_initWorker(e){if(!this.workers[e]){const t=this.workerCreator();t.addEventListener("message",this._onMessage.bind(this,e)),this.workers[e]=t}}_getIdleWorker(){for(let e=0;e{const r=this._getIdleWorker();-1!==r?(this._initWorker(r),this.workerStatus|=1<e.terminate()),this.workersResolve.length=0,this.workers.length=0,this.queue.length=0,this.workerStatus=0}}}},n={};function r(t){var i=n[t];if(void 0!==i)return i.exports;var a=n[t]={id:t,loaded:!1,exports:{}};return e[t].call(a.exports,a,a.exports,r),a.loaded=!0,a.exports}return r.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return r.d(t,{a:t}),t},r.d=(e,t)=>{for(var n in t)r.o(t,n)&&!r.o(e,n)&&Object.defineProperty(e,n,{enumerable:!0,get:t[n]})},r.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(e){if("object"==typeof window)return window}}(),r.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),r.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},r.nmd=e=>(e.paths=[],e.children||(e.children=[]),e),r(3465)})(),e.exports=n()}).call(this,n("tjlAD9JXF+0QXY+PgJ2T").Buffer)},"tjlAD9JXF+0QXY+PgJ2T":function(e,t,n){"use strict";(function(e){ /*! * The buffer module from node.js, for the browser. * * @author Feross Aboukhadijeh * @license MIT */ var r=n("H7XF7Q2SdOodR4WkY272"),i=n("kVK+JS0Owmz5XGSrDTDW"),a=n("49sm5gZZWIZYytWQL8hX");function s(){return l.TYPED_ARRAY_SUPPORT?2147483647:1073741823}function o(e,t){if(s()=s())throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+s().toString(16)+" bytes");return 0|e}function f(e,t){if(l.isBuffer(e))return e.length;if("undefined"!=typeof ArrayBuffer&&"function"==typeof ArrayBuffer.isView&&(ArrayBuffer.isView(e)||e instanceof ArrayBuffer))return e.byteLength;"string"!=typeof e&&(e=""+e);var n=e.length;if(0===n)return 0;for(var r=!1;;)switch(t){case"ascii":case"latin1":case"binary":return n;case"utf8":case"utf-8":case void 0:return G(e).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return 2*n;case"hex":return n>>>1;case"base64":return V(e).length;default:if(r)return G(e).length;t=(""+t).toLowerCase(),r=!0}}function m(e,t,n){var r=!1;if((void 0===t||t<0)&&(t=0),t>this.length)return"";if((void 0===n||n>this.length)&&(n=this.length),n<=0)return"";if((n>>>=0)<=(t>>>=0))return"";for(e||(e="utf8");;)switch(e){case"hex":return B(this,t,n);case"utf8":case"utf-8":return S(this,t,n);case"ascii":return I(this,t,n);case"latin1":case"binary":return T(this,t,n);case"base64":return M(this,t,n);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return R(this,t,n);default:if(r)throw new TypeError("Unknown encoding: "+e);e=(e+"").toLowerCase(),r=!0}}function A(e,t,n){var r=e[t];e[t]=e[n],e[n]=r}function g(e,t,n,r,i){if(0===e.length)return-1;if("string"==typeof n?(r=n,n=0):n>2147483647?n=2147483647:n<-2147483648&&(n=-2147483648),n=+n,isNaN(n)&&(n=i?0:e.length-1),n<0&&(n=e.length+n),n>=e.length){if(i)return-1;n=e.length-1}else if(n<0){if(!i)return-1;n=0}if("string"==typeof t&&(t=l.from(t,r)),l.isBuffer(t))return 0===t.length?-1:v(e,t,n,r,i);if("number"==typeof t)return t&=255,l.TYPED_ARRAY_SUPPORT&&"function"==typeof Uint8Array.prototype.indexOf?i?Uint8Array.prototype.indexOf.call(e,t,n):Uint8Array.prototype.lastIndexOf.call(e,t,n):v(e,[t],n,r,i);throw new TypeError("val must be string, number or Buffer")}function v(e,t,n,r,i){var a,s=1,o=e.length,l=t.length;if(void 0!==r&&("ucs2"===(r=String(r).toLowerCase())||"ucs-2"===r||"utf16le"===r||"utf-16le"===r)){if(e.length<2||t.length<2)return-1;s=2,o/=2,l/=2,n/=2}function c(e,t){return 1===s?e[t]:e.readUInt16BE(t*s)}if(i){var u=-1;for(a=n;ao&&(n=o-l),a=n;a>=0;a--){for(var h=!0,d=0;di&&(r=i):r=i;var a=t.length;if(a%2!=0)throw new TypeError("Invalid hex string");r>a/2&&(r=a/2);for(var s=0;s>8,i=n%256,a.push(i),a.push(r);return a}(t,e.length-n),e,n,r)}function M(e,t,n){return 0===t&&n===e.length?r.fromByteArray(e):r.fromByteArray(e.slice(t,n))}function S(e,t,n){n=Math.min(e.length,n);for(var r=[],i=t;i239?4:c>223?3:c>191?2:1;if(i+h<=n)switch(h){case 1:c<128&&(u=c);break;case 2:128==(192&(a=e[i+1]))&&(l=(31&c)<<6|63&a)>127&&(u=l);break;case 3:a=e[i+1],s=e[i+2],128==(192&a)&&128==(192&s)&&(l=(15&c)<<12|(63&a)<<6|63&s)>2047&&(l<55296||l>57343)&&(u=l);break;case 4:a=e[i+1],s=e[i+2],o=e[i+3],128==(192&a)&&128==(192&s)&&128==(192&o)&&(l=(15&c)<<18|(63&a)<<12|(63&s)<<6|63&o)>65535&&l<1114112&&(u=l)}null===u?(u=65533,h=1):u>65535&&(u-=65536,r.push(u>>>10&1023|55296),u=56320|1023&u),r.push(u),i+=h}return function(e){var t=e.length;if(t<=C)return String.fromCharCode.apply(String,e);var n="",r=0;for(;r0&&(e=this.toString("hex",0,n).match(/.{2}/g).join(" "),this.length>n&&(e+=" ... ")),""},l.prototype.compare=function(e,t,n,r,i){if(!l.isBuffer(e))throw new TypeError("Argument must be a Buffer");if(void 0===t&&(t=0),void 0===n&&(n=e?e.length:0),void 0===r&&(r=0),void 0===i&&(i=this.length),t<0||n>e.length||r<0||i>this.length)throw new RangeError("out of range index");if(r>=i&&t>=n)return 0;if(r>=i)return-1;if(t>=n)return 1;if(this===e)return 0;for(var a=(i>>>=0)-(r>>>=0),s=(n>>>=0)-(t>>>=0),o=Math.min(a,s),c=this.slice(r,i),u=e.slice(t,n),h=0;hi)&&(n=i),e.length>0&&(n<0||t<0)||t>this.length)throw new RangeError("Attempt to write outside buffer bounds");r||(r="utf8");for(var a=!1;;)switch(r){case"hex":return y(this,e,t,n);case"utf8":case"utf-8":return b(this,e,t,n);case"ascii":return _(this,e,t,n);case"latin1":case"binary":return x(this,e,t,n);case"base64":return E(this,e,t,n);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return w(this,e,t,n);default:if(a)throw new TypeError("Unknown encoding: "+r);r=(""+r).toLowerCase(),a=!0}},l.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};var C=4096;function I(e,t,n){var r="";n=Math.min(e.length,n);for(var i=t;ir)&&(n=r);for(var i="",a=t;an)throw new RangeError("Trying to access beyond buffer length")}function L(e,t,n,r,i,a){if(!l.isBuffer(e))throw new TypeError('"buffer" argument must be a Buffer instance');if(t>i||te.length)throw new RangeError("Index out of range")}function O(e,t,n,r){t<0&&(t=65535+t+1);for(var i=0,a=Math.min(e.length-n,2);i>>8*(r?i:1-i)}function U(e,t,n,r){t<0&&(t=4294967295+t+1);for(var i=0,a=Math.min(e.length-n,4);i>>8*(r?i:3-i)&255}function D(e,t,n,r,i,a){if(n+r>e.length)throw new RangeError("Index out of range");if(n<0)throw new RangeError("Index out of range")}function F(e,t,n,r,a){return a||D(e,0,n,4),i.write(e,t,n,r,23,4),n+4}function N(e,t,n,r,a){return a||D(e,0,n,8),i.write(e,t,n,r,52,8),n+8}l.prototype.slice=function(e,t){var n,r=this.length;if((e=~~e)<0?(e+=r)<0&&(e=0):e>r&&(e=r),(t=void 0===t?r:~~t)<0?(t+=r)<0&&(t=0):t>r&&(t=r),t0&&(i*=256);)r+=this[e+--t]*i;return r},l.prototype.readUInt8=function(e,t){return t||P(e,1,this.length),this[e]},l.prototype.readUInt16LE=function(e,t){return t||P(e,2,this.length),this[e]|this[e+1]<<8},l.prototype.readUInt16BE=function(e,t){return t||P(e,2,this.length),this[e]<<8|this[e+1]},l.prototype.readUInt32LE=function(e,t){return t||P(e,4,this.length),(this[e]|this[e+1]<<8|this[e+2]<<16)+16777216*this[e+3]},l.prototype.readUInt32BE=function(e,t){return t||P(e,4,this.length),16777216*this[e]+(this[e+1]<<16|this[e+2]<<8|this[e+3])},l.prototype.readIntLE=function(e,t,n){e|=0,t|=0,n||P(e,t,this.length);for(var r=this[e],i=1,a=0;++a=(i*=128)&&(r-=Math.pow(2,8*t)),r},l.prototype.readIntBE=function(e,t,n){e|=0,t|=0,n||P(e,t,this.length);for(var r=t,i=1,a=this[e+--r];r>0&&(i*=256);)a+=this[e+--r]*i;return a>=(i*=128)&&(a-=Math.pow(2,8*t)),a},l.prototype.readInt8=function(e,t){return t||P(e,1,this.length),128&this[e]?-1*(255-this[e]+1):this[e]},l.prototype.readInt16LE=function(e,t){t||P(e,2,this.length);var n=this[e]|this[e+1]<<8;return 32768&n?4294901760|n:n},l.prototype.readInt16BE=function(e,t){t||P(e,2,this.length);var n=this[e+1]|this[e]<<8;return 32768&n?4294901760|n:n},l.prototype.readInt32LE=function(e,t){return t||P(e,4,this.length),this[e]|this[e+1]<<8|this[e+2]<<16|this[e+3]<<24},l.prototype.readInt32BE=function(e,t){return t||P(e,4,this.length),this[e]<<24|this[e+1]<<16|this[e+2]<<8|this[e+3]},l.prototype.readFloatLE=function(e,t){return t||P(e,4,this.length),i.read(this,e,!0,23,4)},l.prototype.readFloatBE=function(e,t){return t||P(e,4,this.length),i.read(this,e,!1,23,4)},l.prototype.readDoubleLE=function(e,t){return t||P(e,8,this.length),i.read(this,e,!0,52,8)},l.prototype.readDoubleBE=function(e,t){return t||P(e,8,this.length),i.read(this,e,!1,52,8)},l.prototype.writeUIntLE=function(e,t,n,r){(e=+e,t|=0,n|=0,r)||L(this,e,t,n,Math.pow(2,8*n)-1,0);var i=1,a=0;for(this[t]=255&e;++a=0&&(a*=256);)this[t+i]=e/a&255;return t+n},l.prototype.writeUInt8=function(e,t,n){return e=+e,t|=0,n||L(this,e,t,1,255,0),l.TYPED_ARRAY_SUPPORT||(e=Math.floor(e)),this[t]=255&e,t+1},l.prototype.writeUInt16LE=function(e,t,n){return e=+e,t|=0,n||L(this,e,t,2,65535,0),l.TYPED_ARRAY_SUPPORT?(this[t]=255&e,this[t+1]=e>>>8):O(this,e,t,!0),t+2},l.prototype.writeUInt16BE=function(e,t,n){return e=+e,t|=0,n||L(this,e,t,2,65535,0),l.TYPED_ARRAY_SUPPORT?(this[t]=e>>>8,this[t+1]=255&e):O(this,e,t,!1),t+2},l.prototype.writeUInt32LE=function(e,t,n){return e=+e,t|=0,n||L(this,e,t,4,4294967295,0),l.TYPED_ARRAY_SUPPORT?(this[t+3]=e>>>24,this[t+2]=e>>>16,this[t+1]=e>>>8,this[t]=255&e):U(this,e,t,!0),t+4},l.prototype.writeUInt32BE=function(e,t,n){return e=+e,t|=0,n||L(this,e,t,4,4294967295,0),l.TYPED_ARRAY_SUPPORT?(this[t]=e>>>24,this[t+1]=e>>>16,this[t+2]=e>>>8,this[t+3]=255&e):U(this,e,t,!1),t+4},l.prototype.writeIntLE=function(e,t,n,r){if(e=+e,t|=0,!r){var i=Math.pow(2,8*n-1);L(this,e,t,n,i-1,-i)}var a=0,s=1,o=0;for(this[t]=255&e;++a=0&&(s*=256);)e<0&&0===o&&0!==this[t+a+1]&&(o=1),this[t+a]=(e/s|0)-o&255;return t+n},l.prototype.writeInt8=function(e,t,n){return e=+e,t|=0,n||L(this,e,t,1,127,-128),l.TYPED_ARRAY_SUPPORT||(e=Math.floor(e)),e<0&&(e=255+e+1),this[t]=255&e,t+1},l.prototype.writeInt16LE=function(e,t,n){return e=+e,t|=0,n||L(this,e,t,2,32767,-32768),l.TYPED_ARRAY_SUPPORT?(this[t]=255&e,this[t+1]=e>>>8):O(this,e,t,!0),t+2},l.prototype.writeInt16BE=function(e,t,n){return e=+e,t|=0,n||L(this,e,t,2,32767,-32768),l.TYPED_ARRAY_SUPPORT?(this[t]=e>>>8,this[t+1]=255&e):O(this,e,t,!1),t+2},l.prototype.writeInt32LE=function(e,t,n){return e=+e,t|=0,n||L(this,e,t,4,2147483647,-2147483648),l.TYPED_ARRAY_SUPPORT?(this[t]=255&e,this[t+1]=e>>>8,this[t+2]=e>>>16,this[t+3]=e>>>24):U(this,e,t,!0),t+4},l.prototype.writeInt32BE=function(e,t,n){return e=+e,t|=0,n||L(this,e,t,4,2147483647,-2147483648),e<0&&(e=4294967295+e+1),l.TYPED_ARRAY_SUPPORT?(this[t]=e>>>24,this[t+1]=e>>>16,this[t+2]=e>>>8,this[t+3]=255&e):U(this,e,t,!1),t+4},l.prototype.writeFloatLE=function(e,t,n){return F(this,e,t,!0,n)},l.prototype.writeFloatBE=function(e,t,n){return F(this,e,t,!1,n)},l.prototype.writeDoubleLE=function(e,t,n){return N(this,e,t,!0,n)},l.prototype.writeDoubleBE=function(e,t,n){return N(this,e,t,!1,n)},l.prototype.copy=function(e,t,n,r){if(n||(n=0),r||0===r||(r=this.length),t>=e.length&&(t=e.length),t||(t=0),r>0&&r=this.length)throw new RangeError("sourceStart out of bounds");if(r<0)throw new RangeError("sourceEnd out of bounds");r>this.length&&(r=this.length),e.length-t=0;--i)e[i+t]=this[i+n];else if(a<1e3||!l.TYPED_ARRAY_SUPPORT)for(i=0;i>>=0,n=void 0===n?this.length:n>>>0,e||(e=0),"number"==typeof e)for(a=t;a55295&&n<57344){if(!i){if(n>56319){(t-=3)>-1&&a.push(239,191,189);continue}if(s+1===r){(t-=3)>-1&&a.push(239,191,189);continue}i=n;continue}if(n<56320){(t-=3)>-1&&a.push(239,191,189),i=n;continue}n=65536+(i-55296<<10|n-56320)}else i&&(t-=3)>-1&&a.push(239,191,189);if(i=null,n<128){if((t-=1)<0)break;a.push(n)}else if(n<2048){if((t-=2)<0)break;a.push(n>>6|192,63&n|128)}else if(n<65536){if((t-=3)<0)break;a.push(n>>12|224,n>>6&63|128,63&n|128)}else{if(!(n<1114112))throw new Error("Invalid code point");if((t-=4)<0)break;a.push(n>>18|240,n>>12&63|128,n>>6&63|128,63&n|128)}}return a}function V(e){return r.toByteArray(function(e){if((e=function(e){return e.trim?e.trim():e.replace(/^\s+|\s+$/g,"")}(e).replace(k,"")).length<2)return"";for(;e.length%4!=0;)e+="=";return e}(e))}function z(e,t,n,r){for(var i=0;i=t.length||i>=e.length);++i)t[i+n]=e[i];return i}}).call(this,n("yLpjYHveuDogMkLkzmV/"))},"H7XF7Q2SdOodR4WkY272":function(e,t,n){"use strict";t.byteLength=function(e){var t=l(e),n=t[0],r=t[1];return 3*(n+r)/4-r},t.toByteArray=function(e){var t,n,r=l(e),s=r[0],o=r[1],c=new a(function(e,t,n){return 3*(t+n)/4-n}(0,s,o)),u=0,h=o>0?s-4:s;for(n=0;n>16&255,c[u++]=t>>8&255,c[u++]=255&t;2===o&&(t=i[e.charCodeAt(n)]<<2|i[e.charCodeAt(n+1)]>>4,c[u++]=255&t);1===o&&(t=i[e.charCodeAt(n)]<<10|i[e.charCodeAt(n+1)]<<4|i[e.charCodeAt(n+2)]>>2,c[u++]=t>>8&255,c[u++]=255&t);return c},t.fromByteArray=function(e){for(var t,n=e.length,i=n%3,a=[],s=16383,o=0,l=n-i;ol?l:o+s));1===i?(t=e[n-1],a.push(r[t>>2]+r[t<<4&63]+"==")):2===i&&(t=(e[n-2]<<8)+e[n-1],a.push(r[t>>10]+r[t>>4&63]+r[t<<2&63]+"="));return a.join("")};for(var r=[],i=[],a="undefined"!=typeof Uint8Array?Uint8Array:Array,s="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",o=0;o<64;++o)r[o]=s[o],i[s.charCodeAt(o)]=o;function l(e){var t=e.length;if(t%4>0)throw new Error("Invalid string. Length must be a multiple of 4");var n=e.indexOf("=");return-1===n&&(n=t),[n,n===t?0:4-n%4]}function c(e){return r[e>>18&63]+r[e>>12&63]+r[e>>6&63]+r[63&e]}function u(e,t,n){for(var r,i=[],a=t;a */ t.read=function(e,t,n,r,i){var a,s,o=8*i-r-1,l=(1<>1,u=-7,h=n?i-1:0,d=n?-1:1,p=e[t+h];for(h+=d,a=p&(1<<-u)-1,p>>=-u,u+=o;u>0;a=256*a+e[t+h],h+=d,u-=8);for(s=a&(1<<-u)-1,a>>=-u,u+=r;u>0;s=256*s+e[t+h],h+=d,u-=8);if(0===a)a=1-c;else{if(a===l)return s?NaN:1/0*(p?-1:1);s+=Math.pow(2,r),a-=c}return(p?-1:1)*s*Math.pow(2,a-r)},t.write=function(e,t,n,r,i,a){var s,o,l,c=8*a-i-1,u=(1<>1,d=23===i?Math.pow(2,-24)-Math.pow(2,-77):0,p=r?0:a-1,f=r?1:-1,m=t<0||0===t&&1/t<0?1:0;for(t=Math.abs(t),isNaN(t)||t===1/0?(o=isNaN(t)?1:0,s=u):(s=Math.floor(Math.log(t)/Math.LN2),t*(l=Math.pow(2,-s))<1&&(s--,l*=2),(t+=s+h>=1?d/l:d*Math.pow(2,1-h))*l>=2&&(s++,l/=2),s+h>=u?(o=0,s=u):s+h>=1?(o=(t*l-1)*Math.pow(2,i),s+=h):(o=t*Math.pow(2,h-1)*Math.pow(2,i),s=0));i>=8;e[n+p]=255&o,p+=f,o/=256,i-=8);for(s=s<0;e[n+p]=255&s,p+=f,s/=256,c-=8);e[n+p-f]|=128*m}},"49sm5gZZWIZYytWQL8hX":function(e,t){var n={}.toString;e.exports=Array.isArray||function(e){return"[object Array]"==n.call(e)}},"yLpjYHveuDogMkLkzmV/":function(e,t){var n;n=function(){return this}();try{n=n||new Function("return this")()}catch(e){"object"==typeof window&&(n=window)}e.exports=n},"rPr0FRAY05W5smljnBUZ":function(e,t,i){"use strict";var s=i("TqRtNiF+JaFOr10x9fxR");Object.defineProperty(t,"__esModule",{value:!0}),t.DetailChunk=void 0;var n=s(i("W82/jU9nLaXK1eC3M7Am")),r=s(i("iYBs6KcJRq//tGy23pbc")),a=s(i("yTsoCPE6ZEs/PlXxcdV1")),o=s(i("vKTafvyzh9sJzDUHWLZn")),l=s(i("hrnQeREXPjYDCBYxPD5i")),d=s(i("WJRPDOZiiFna/FES3NeB")),c=s(i("aAmlYGFN0te963+3YeAo"));const{Lotus:h}=window,{Chunk:u,ChunkFields:p,ChunkInstructionTarget:m,ChunkInstructionType:f}=h;class g extends u{constructor({component:e,data:t,material:i}){super({component:e,data:t,instructions:[{target:m.VertexShader,type:f.InjectBefore,token:"#include ",chunk:d.default},{target:m.VertexShader,type:f.InjectAfter,token:"#include ",chunk:c.default},{target:m.FragmentShader,type:f.InjectBefore,token:"#include ",chunk:l.default},{target:m.FragmentShader,type:f.InjectAfter,token:"#include ",chunk:n.default},{target:m.FragmentShader,type:f.InjectAfter,token:"#include ",chunk:a.default},{target:m.FragmentShader,type:f.InjectAfter,token:"#include ",chunk:o.default},{target:m.FragmentShader,type:f.InjectAfter,token:"#include ",chunk:r.default}],material:i,name:"DetailChunk"}),this.material.uniforms.DetailDiffuseEnabled={value:0},this.material.uniforms.DetailDiffuseMap={value:null},this.material.uniforms.DetailDiffuseIntensity={value:1},this.material.uniforms.DetailDiffuseRepeat={value:[4,4]},this.material.uniforms.DetailDiffuseBlendMode={value:0},this.material.uniforms.DetailNormalEnabled={value:0},this.material.uniforms.DetailNormalMap={value:null},this.material.uniforms.DetailNormalIntensity={value:1},this.material.uniforms.DetailNormalRepeat={value:[4,4]},this.material.uniforms.DetailNormalBlendMode={value:0},this.material.uniforms.DetailRoughMetalEnabled={value:0},this.material.uniforms.DetailRoughMetalMap={value:null},this.material.uniforms.DetailRoughnessIntensity={value:0},this.material.uniforms.DetailMetalnessIntensity={value:0},this.material.uniforms.DetailRoughMetalRepeat={value:[4,4]},this.material.uniforms.DetailRoughBlendMode={value:0},this.material.needsUpdate=!0,this.autorun(()=>{var e,t,i,s,n,r,a,o,l,d,c,h,u,p,m,f,g,v,_,E,y,A,b;const C=null!==(e=this.uniforms)&&void 0!==e&&null!==(e=e.values)&&void 0!==e&&e.DetailDiffuseEnabled?1:0,T=null!==(t=null===(i=this.uniforms)||void 0===i||null===(i=i.values)||void 0===i?void 0:i.DetailDiffuseMap)&&void 0!==t?t:null,S=Number(null!==(s=null===(n=this.uniforms)||void 0===n||null===(n=n.values)||void 0===n?void 0:n.DetailDiffuseBlendMode)&&void 0!==s?s:0);let w=null!==(r=null===(a=this.uniforms)||void 0===a||null===(a=a.values)||void 0===a?void 0:a.DetailDiffuseIntensity)&&void 0!==r?r:1;0!==S&&3!==S||(w=Math.min(w,1)),this.material.uniforms.DetailDiffuseEnabled.value=C,this.material.uniforms.DetailDiffuseMap.value=T,this.material.uniforms.DetailDiffuseIntensity.value=w,this.material.uniforms.DetailDiffuseBlendMode.value=S,T&&T.isTexture&&(T.wrapS=1e3,T.wrapT=1e3,T.needsUpdate=!0);const x=null!==(o=this.uniforms)&&void 0!==o&&null!==(o=o.values)&&void 0!==o&&o.DetailNormalEnabled?1:0,I=null!==(l=null===(d=this.uniforms)||void 0===d||null===(d=d.values)||void 0===d?void 0:d.DetailNormalMap)&&void 0!==l?l:null,P=Number(null!==(c=null===(h=this.uniforms)||void 0===h||null===(h=h.values)||void 0===h?void 0:h.DetailNormalBlendMode)&&void 0!==c?c:0),M=null!==(u=null===(p=this.uniforms)||void 0===p||null===(p=p.values)||void 0===p?void 0:p.DetailNormalIntensity)&&void 0!==u?u:1;this.material.uniforms.DetailNormalEnabled.value=x,this.material.uniforms.DetailNormalMap.value=I,this.material.uniforms.DetailNormalIntensity.value=M,this.material.uniforms.DetailNormalBlendMode.value=P,I&&I.isTexture&&(I.wrapS=1e3,I.wrapT=1e3,I.needsUpdate=!0);const O=null!==(m=this.uniforms)&&void 0!==m&&null!==(m=m.values)&&void 0!==m&&m.DetailRoughMetalEnabled?1:0,R=null!==(f=null===(g=this.uniforms)||void 0===g||null===(g=g.values)||void 0===g?void 0:g.DetailRoughMetalMap)&&void 0!==f?f:null,L=Number(null!==(v=null===(_=this.uniforms)||void 0===_||null===(_=_.values)||void 0===_?void 0:_.DetailRoughBlendMode)&&void 0!==v?v:0);let N=null!==(E=null===(y=this.uniforms)||void 0===y||null===(y=y.values)||void 0===y?void 0:y.DetailRoughnessIntensity)&&void 0!==E?E:1,D=null!==(A=null===(b=this.uniforms)||void 0===b||null===(b=b.values)||void 0===b?void 0:b.DetailMetalnessIntensity)&&void 0!==A?A:1;0!==L&&3!==L||(N=Math.min(N,1),D=Math.min(D,1)),this.material.uniforms.DetailRoughMetalEnabled.value=O,this.material.uniforms.DetailRoughMetalMap.value=R,this.material.uniforms.DetailRoughnessIntensity.value=N,this.material.uniforms.DetailMetalnessIntensity.value=D,this.material.uniforms.DetailRoughBlendMode.value=L,R&&R.isTexture&&(R.wrapS=1e3,R.wrapT=1e3,R.needsUpdate=!0)})}}t.DetailChunk=g,g.fields={...p,DetailDiffuseEnabled:{defaultValue:!1,type:"Boolean"},DetailDiffuseMap:{defaultValue:"",filter:"texture",type:"Asset"},DetailDiffuseBlendMode:{defaultValue:0,type:"Select",options:[{label:"Mix",value:0},{label:"Add",value:1},{label:"Mult",value:2},{label:"Over",value:3}]},DetailDiffuseIntensity:{defaultValue:1,min:0,max:1,step:.01,type:"Slider"},DetailDiffuseRepeat:{defaultValue:[4,4],type:"Vector"},DetailNormalEnabled:{defaultValue:!1,type:"Boolean"},DetailNormalMap:{defaultValue:"",filter:"texture",type:"Asset"},DetailNormalBlendMode:{defaultValue:0,type:"Select",options:[{label:"Add",value:0},{label:"Over",value:1}]},DetailNormalIntensity:{defaultValue:1,min:0,max:1,step:.01,type:"Slider"},DetailNormalRepeat:{defaultValue:[4,4],type:"Vector"},DetailRoughMetalEnabled:{defaultValue:!1,type:"Boolean"},DetailRoughMetalMap:{defaultValue:"",filter:"texture",type:"Asset"},DetailRoughBlendMode:{defaultValue:0,type:"Select",options:[{label:"Mix",value:0},{label:"Add",value:1},{label:"Mult",value:2},{label:"Over",value:3}]},DetailRoughnessIntensity:{defaultValue:0,min:0,max:1,step:.01,type:"Slider"},DetailMetalnessIntensity:{defaultValue:0,min:0,max:1,step:.01,type:"Slider"},DetailRoughMetalRepeat:{defaultValue:[4,4],type:"Vector"}}},"TqRtNiF+JaFOr10x9fxR":function(e,t){e.exports=function(e){return e&&e.__esModule?e:{default:e}},e.exports.__esModule=!0,e.exports.default=e.exports},"W82/jU9nLaXK1eC3M7Am":function(e,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;t.default="\nif (DetailDiffuseEnabled == 1) {\n vec2 diffuseUv = vDetailDiffuseUv * DetailDiffuseRepeat;\n vec4 diffuseTex = texture2D(DetailDiffuseMap, diffuseUv);\n vec3 diffuseTexRGB = diffuseTex.rgb;\n float alphaDiffuse = diffuseTex.a * DetailDiffuseIntensity;\n\n if (DetailDiffuseBlendMode == 0) {\n // Mix\n diffuseColor = mix(diffuseColor, diffuseTex, DetailDiffuseIntensity);\n }\n else if (DetailDiffuseBlendMode == 1) {\n // Add\n diffuseColor += diffuseTex * DetailDiffuseIntensity;\n diffuseColor = clamp(diffuseColor, 0.0, 1.0);\n }\n else if (DetailDiffuseBlendMode == 2) {\n // Mult\n diffuseColor = diffuseColor * diffuseTex * DetailDiffuseIntensity;\n }\n else if (DetailDiffuseBlendMode == 3) {\n // Over\n diffuseColor = mix(diffuseColor, diffuseTex, alphaDiffuse);\n }\n else {\n vec3 overlay = blendOverlay(diffuseColor.rgb, diffuseTexRGB);\n diffuseColor.rgb = mix(diffuseColor.rgb, overlay, DetailDiffuseIntensity);\n }\n}\n"},"iYBs6KcJRq//tGy23pbc":function(e,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;t.default="\nif (DetailRoughMetalEnabled == 1) {\n vec2 metalUv = vDetailRoughMetalUv * DetailRoughMetalRepeat;\n vec4 metalTex = texture2D(DetailRoughMetalMap, metalUv);\n\n float alphaMetal = metalTex.a * DetailMetalnessIntensity;\n\n if (DetailRoughBlendMode == 0) {\n metalnessFactor = mix(metalnessFactor, metalTex.b, DetailMetalnessIntensity);\n }\n else if (DetailRoughBlendMode == 1) {\n metalnessFactor += (metalTex.b - 0.5) * DetailMetalnessIntensity;\n }\n else if (DetailRoughBlendMode == 2) {\n metalnessFactor = metalnessFactor * mix(1.0, metalTex.b, DetailMetalnessIntensity);\n }\n else if (DetailRoughBlendMode == 3) {\n metalnessFactor = mix(metalnessFactor, metalTex.b, alphaMetal);\n }\n else {\n float overlay = blendOverlay(metalnessFactor, metalTex.b);\n metalnessFactor = mix(metalnessFactor, overlay, DetailMetalnessIntensity);\n }\n\n metalnessFactor = clamp(metalnessFactor, 0.0, 1.0);\n}\n"},"yTsoCPE6ZEs/PlXxcdV1":function(e,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;t.default="\nif (DetailNormalEnabled == 1) {\n vec2 baseUv = vDetailNormalUv;\n vec2 normalUv = baseUv * DetailNormalRepeat;\n\n vec4 detailNormalSamples = texture2D(DetailNormalMap, normalUv);\n\n vec3 detailNormalTangent = detailNormalSamples.xyz * 2.0 - 1.0;\n // vec3 detailNormalTangent = detailNormalSamples.xyz;\n\n float alpha = detailNormalSamples.a;\n\n vec3 baseNormal = normalize(normal);\n // mat3 detailTBN = buildDetailTBN(-vViewPosition, baseNormal, baseUv);\n mat3 detailTBN = buildDetailTBN(vDetailWorldPosition, normalize(vDetailWorldNormal), baseUv);\n\n\n //vec3 detailOffsetVS = detailTBN*detailNormalTangent;\n //detailNormalTangent=normalize(vec3(0.0,0.3,1.0));\n vec3 detailOffsetVS = tbn*detailNormalTangent;\n //vec3 tnormal=vec3(0.0,0.0,1.0);\n if (DetailNormalBlendMode == 0) {\n normal = normalize(baseNormal + detailOffsetVS * DetailNormalIntensity);\n //normal = normalize(detailOffsetVS);\n // diffuseColor.rgb = normalize(detailOffsetVS) *0.5+0.5;\n //diffuseColor.rgb = normalize(detailTBN*detailNormalTangent*0.5+0.5);\n //diffuseColor.rgb = (detailTBN[2]+1.0)*0.5;\n //diffuseColor.rgb = (baseNormal+1.0)*0.5;\n //diffuseColor.rgb = vec3(baseUv,0); \n //diffuseColor.rgb = vViewPosition;\n //diffuseColor.rgb = normalize(tbn*detailNormalTangent*0.5+0.5);;\n //diffuseColor.rgb = (tbn[0]+1.0)*0.5;\n //diffuseColor.rgb = normalize(vTangent.xyz);\n //diffuseColor.rgb = normalize(vDteailTangent.xyz) * 0.5 + 0.5;\n //diffuseColor.rgb = vec3(vDetailTangent.w * 0.5 + 0.5);\n //vec3 detailNormalVS = normalize(detailTBN * detailNormalTangent);\n //normal = normalize(mix(baseNormal, detailNormalVS, DetailNormalIntensity));\n \n }\n else if (DetailNormalBlendMode == 1) {\n normal = normalize(baseNormal*(1.0-alpha) +tbn[2]+ (detailOffsetVS * alpha)*DetailNormalIntensity);\n }\n\n}\n"},"vKTafvyzh9sJzDUHWLZn":function(e,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;t.default="\nif (DetailRoughMetalEnabled == 1) {\n vec2 roughUv = vDetailRoughMetalUv * DetailRoughMetalRepeat;\n vec4 roughTex = texture2D(DetailRoughMetalMap, roughUv);\n\n float alphaRough = roughTex.a * DetailRoughnessIntensity;\n\n if (DetailRoughBlendMode == 0) {\n roughnessFactor = mix(roughnessFactor, roughTex.g, DetailRoughnessIntensity);\n }\n else if (DetailRoughBlendMode == 1) {\n roughnessFactor += roughTex.g * DetailRoughnessIntensity;\n }\n else if (DetailRoughBlendMode == 2) {\n roughnessFactor = roughnessFactor * mix(1.0, roughTex.g, DetailRoughnessIntensity);\n }\n else if (DetailRoughBlendMode == 3) {\n roughnessFactor = mix(roughnessFactor, roughTex.g, alphaRough);\n }\n else {\n float overlay = blendOverlay(roughnessFactor, roughTex.g);\n roughnessFactor = mix(roughnessFactor, overlay, DetailRoughnessIntensity);\n }\n\n roughnessFactor = clamp(roughnessFactor, 0.0, 1.0);\n}\n"},"hrnQeREXPjYDCBYxPD5i":function(e,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;t.default="\nuniform int DetailDiffuseEnabled;\nuniform sampler2D DetailDiffuseMap;\nuniform float DetailDiffuseIntensity;\nuniform vec2 DetailDiffuseRepeat;\nuniform int DetailDiffuseBlendMode;\n\nuniform int DetailNormalEnabled;\nuniform sampler2D DetailNormalMap;\nuniform float DetailNormalIntensity;\nuniform vec2 DetailNormalRepeat;\nuniform int DetailNormalBlendMode;\n\nuniform int DetailRoughMetalEnabled;\nuniform sampler2D DetailRoughMetalMap;\nuniform float DetailRoughnessIntensity;\nuniform float DetailMetalnessIntensity;\nuniform vec2 DetailRoughMetalRepeat;\nuniform int DetailRoughBlendMode;\n\nvarying vec2 vDetailDiffuseUv;\nvarying vec2 vDetailNormalUv;\nvarying vec2 vDetailRoughMetalUv;\n\nvarying vec3 vDetailWorldPosition;\nvarying vec3 vDetailWorldNormal;\n\nvarying vec4 vDetailTangent;\n\nvec3 blendOverlay(vec3 base, vec3 blend) {\n return mix(\n 2.0 * base * blend,\n 1.0 - 2.0 * (1.0 - base) * (1.0 - blend),\n step(0.5, base)\n );\n}\n\nfloat blendOverlay(float base, float blend) {\n return mix(\n 2.0 * base * blend,\n 1.0 - 2.0 * (1.0 - base) * (1.0 - blend),\n step(0.5, base)\n );\n}\n\nvec3 safeNormalizeDetail(vec3 v) {\n float len2 = dot(v, v);\n return (len2 > 1e-8) ? v * inversesqrt(len2) : vec3(0.0, 0.0, 1.0);\n}\n\nmat3 buildDetailTBN(vec3 surfPosition, vec3 surfNormal, vec2 uv) {\n vec3 q0 = dFdx(surfPosition);\n vec3 q1 = dFdy(surfPosition);\n vec2 st0 = dFdx(uv);\n vec2 st1 = dFdy(uv);\n\n vec3 N = normalize(surfNormal);\n\n vec3 q1perp = cross(q1, N);\n vec3 q0perp = cross(N, q0);\n\n vec3 T = q1perp * st0.x + q0perp * st1.x;\n vec3 B = q1perp * st0.y + q0perp * st1.y;\n\n float det = max(dot(T, T), dot(B, B));\n float scale = (det == 0.0) ? 0.0 : inversesqrt(det);\n \n return mat3(T * scale, B * scale, N);\n}\n"},"WJRPDOZiiFna/FES3NeB":function(e,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;t.default="\n#ifndef USE_UV1\nattribute vec2 uv1;\n#endif\n\n//attribute vec4 tangent;\n//varying vec3 vTangent;\nvarying vec4 vDetailTangent;\n\nvarying vec2 vDetailDiffuseUv;\nvarying vec2 vDetailNormalUv;\nvarying vec2 vDetailRoughMetalUv;\n\nvarying vec3 vDetailViewPosition;\n\nvarying vec3 vDetailWorldPosition;\nvarying vec3 vDetailWorldNormal;\n\nuniform vec2 DetailDiffuseRepeat;\nuniform vec2 DetailNormalRepeat;\nuniform vec2 DetailRoughMetalRepeat;\n"},"aAmlYGFN0te963+3YeAo":function(e,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;t.default="\nvDetailDiffuseUv = vec2(1.0 - uv.x, uv.y);\nvDetailNormalUv = vec2(1.0 - uv1.x, uv1.y);\nvDetailRoughMetalUv = vec2(1.0 - uv1.x, uv1.y);\n\nvDetailWorldPosition = (modelMatrix * vec4(position, 1.0)).xyz;\nvDetailWorldNormal = normalize(mat3(modelMatrix) * normal);\n\n//vDetailTangent = tangent;\n//vDetailTangent = vTangent;\n"},"3KWH7xpHANxtsy7reUMs":function(e,t,i){"use strict";var s=i("TqRtNiF+JaFOr10x9fxR");Object.defineProperty(t,"__esModule",{value:!0}),t.WipeFields=t.Wipe=void 0,Object.defineProperty(t,"WipeFragment",{enumerable:!0,get:function(){return a.default}}),Object.defineProperty(t,"WipeFragmentVars",{enumerable:!0,get:function(){return o.default}});var n=s(i("ATTVpAM55GNrzjS1YEVV")),r=s(i("QMo/ajkYoIsS74YAN6Q/")),a=s(i("3tLaB6Cb935Y3Fsgxqd2")),o=s(i("sU7auOrFNPLtAN8l34sH")),l=s(i("flnfENULkvOqXgUIgS80"));const{Lotus:d}=window,{THREE:c}=d,{clamp:h,smoothstep:u}=c.MathUtils,{ClampToEdgeWrapping:p,LinearFilter:m,LinearMipmapLinearFilter:f}=c,{Chunk:g,ChunkFields:v,ChunkInstructionTarget:_,ChunkInstructionType:E,TimelineFields:y}=d,A=t.WipeFields={...v,wipeFactor:{defaultValue:1,min:-1,max:1,render:e=>"interpolation"!==(null==e?void 0:e.transition),step:.01,type:"Slider"},wipeOffset:{defaultValue:0,min:-1,max:1,render:e=>"interpolation"!==(null==e?void 0:e.transition),step:.01,type:"Slider"},wipeAmount:{defaultValue:0,min:0,max:1,render:e=>"interpolation"!==(null==e?void 0:e.transition),step:.01,type:"Slider"},wipePosition:{defaultValue:0,min:0,max:1,render:e=>"interpolation"!==(null==e?void 0:e.transition),step:.01,type:"Slider"},minShading:{defaultValue:.1,min:0,max:1,render:e=>"interpolation"!==(null==e?void 0:e.transition),step:.01,type:"Slider"},brightness:{defaultValue:1,min:0,max:1,render:e=>"interpolation"!==(null==e?void 0:e.transition),step:.01,type:"Slider"},offset:{defaultValue:0,min:-1,max:1,render:e=>"interpolation"!==(null==e?void 0:e.transition),step:.01,type:"Slider"},scale:{defaultValue:1,min:.5,max:2,render:e=>"interpolation"!==(null==e?void 0:e.transition),step:.01,type:"Slider"},blurBounds:{defaultValue:[-.25,1],type:"Vector"},shadeBounds:{defaultValue:[0,1],type:"Vector"},rotation:{defaultValue:[0,0,0],type:"Vector"},emissiveLocalPos:{defaultValue:[0,0,0],type:"Vector"},zoom:{defaultValue:8.25,min:.1,max:10,type:"Slider"},transitionToCameraRest:{defaultValue:0,min:0,max:1,render:e=>"interpolation"!==(null==e?void 0:e.transition),step:.01,type:"Slider"},renderTargetScale:{defaultValue:.6,min:.1,max:1,step:.01,type:"Slider"},...y};class b extends g{constructor({component:e,data:t,material:i}){super({component:e,data:t,instructions:[{target:_.VertexShader,type:E.InjectAfter,token:"#include ",chunk:"\nuniform mat4 modelMatrixInverse;\nvarying vec3 vLocalPosition;\nvarying vec3 vLocalCameraPosition;\nvarying mat3 vRotationMatrixInverse;\nuniform vec3 emissiveLocalPos;\nuniform vec3 rotation;\nvarying vec3 p0;\nvarying vec3 p1;\nvarying vec3 p2;\n\n#ifndef USE_TRANSMISSION\n varying vec3 vWorldPosition;\n#endif\n\nvec3 rotateAxis(vec3 p, vec3 axis, float angle) {\n return mix(\n dot(axis, p) * axis,\n p,\n cos(angle)) +\n cross(axis, p) *\n sin(angle)\n ;\n}\n"},{target:_.VertexShader,type:E.Replace,token:"#include ",chunk:l.default},{target:_.FragmentShader,type:E.InjectAfter,token:"#include ",chunk:o.default},{target:_.FragmentShader,type:E.Replace,token:"#include ",chunk:a.default}],material:i,name:"Wipe"}),this.portrait=!1,i.defines.USE_UV="";const s=i.emissiveMap.image.width,d=i.emissiveMap.image.height;this.portrait=s{var a;i.uniforms.modelMatrixInverse.value.copy(r.matrixWorld).invert();const o=null===(a=i.emissiveMapTarget)||void 0===a?void 0:a.image,l=i.uniforms.renderTargetScale.value;if((null==o?void 0:o.width)>=64&&(null==o?void 0:o.height)>=64){const e=Math.round(o.width*l),t=Math.round(o.height*l);A.width===e&&A.height===t||(this.portrait=e.01?u(i,.45,1):1;this.wipeAmount=s/2,this.transitionToCameraRest=n}}var e,t}}t.Wipe=b,b.fields=A},"ATTVpAM55GNrzjS1YEVV":function(e,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;const{Lotus:s}=window,{THREE:n}=s;class r extends n.RawShaderMaterial{constructor(){super({name:"BlurPass",vertexShader:"\nin vec2 uv;\nin vec3 position;\nuniform mat4 modelViewMatrix;\nuniform mat4 projectionMatrix;\nout vec2 vUv;\n\nvoid main() {\n vUv = uv;\n gl_Position = projectionMatrix * modelViewMatrix * vec4(position, 1.0);\n}\n",fragmentShader:"\nprecision highp float;\n\nuniform sampler2D map;\nuniform float wipeAmount;\nuniform float wipePosition;\nuniform vec2 blurBounds;\nin vec2 vUv;\nout vec4 fragColor;\n\n\nfloat w0(float a) {\n return (1.0/6.0)*(a*(a*(-a + 3.0) - 3.0) + 1.0);\n}\n\nfloat w1(float a) {\n return (1.0/6.0)*(a*a*(3.0*a - 6.0) + 4.0);\n}\n\nfloat w2(float a) {\n return (1.0/6.0)*(a*(a*(-3.0*a + 3.0) + 3.0) + 1.0);\n}\n\nfloat w3(float a) {\n return (1.0/6.0)*(a*a*a);\n}\n\nfloat g0(float a) {\n return w0(a) + w1(a);\n}\n\nfloat g1(float a) {\n return w2(a) + w3(a);\n}\n\nfloat h0(float a) {\n return -1.0 + w1(a) / (w0(a) + w1(a));\n}\n\nfloat h1(float a) {\n return 1.0 + w3(a) / (w2(a) + w3(a));\n}\n\nvec4 bicubic(sampler2D tex, vec2 uv, vec4 texelSize, vec2 fullSize, float lod) {\n\tuv = uv*texelSize.zw + 0.5;\n\tvec2 iuv = floor( uv );\n\tvec2 fuv = fract( uv );\n\n float g0x = g0(fuv.x);\n float g1x = g1(fuv.x);\n float h0x = h0(fuv.x);\n float h1x = h1(fuv.x);\n float h0y = h0(fuv.y);\n float h1y = h1(fuv.y);\n\n\tvec2 p0 = (vec2(iuv.x + h0x, iuv.y + h0y) - 0.5) * texelSize.xy;\n\tvec2 p1 = (vec2(iuv.x + h1x, iuv.y + h0y) - 0.5) * texelSize.xy;\n\tvec2 p2 = (vec2(iuv.x + h0x, iuv.y + h1y) - 0.5) * texelSize.xy;\n\tvec2 p3 = (vec2(iuv.x + h1x, iuv.y + h1y) - 0.5) * texelSize.xy;\n\t\n vec2 lodFudge = pow(1.95, lod) / fullSize;\n \n return g0(fuv.y) * (g0x * \n textureLod(tex, p0, lod) +\n \n g1x * textureLod(tex, p1, lod)\n ) +\n g1(fuv.y) * (\n g0x * textureLod(tex, p2, lod) +\n g1x * textureLod(tex, p3, lod));\n}\n\nvec4 textureBicubic(sampler2D s, vec2 uv, float lod) {\n vec2 lodSizeFloor = vec2(textureSize(s, int(lod)));\n vec2 lodSizeCeil = vec2(textureSize(s, int(lod + 1.0)));\n vec2 fullSize = vec2(textureSize(s, 0));\n vec4 floorSample = bicubic( s, uv, vec4(1.0 / lodSizeFloor.x, 1.0 / lodSizeFloor.y, lodSizeFloor.x, lodSizeFloor.y), fullSize, floor(lod));\n vec4 ceilSample = bicubic( s, uv, vec4(1.0 / lodSizeCeil.x, 1.0 / lodSizeCeil.y, lodSizeCeil.x, lodSizeCeil.y), fullSize, ceil(lod));\n return mix(floorSample, ceilSample, fract(lod));\n}\n\n\nfloat remap(float minValue, float maxValue, float value) {\n return (value - minValue) / (maxValue - minValue);\n}\n\nvoid main() {\n float distanceToWipe = distance(vUv.x, wipePosition);\n float blurArea = pow(remap(0.0, 0.75, clamp(remap(blurBounds.x, blurBounds.y, distanceToWipe) * wipeAmount * 2.5, 0.0, 1.0)), 0.5);\n float blurred = blurArea * 8.0;\n float shade = mix(0.25, 1.0, smoothstep(1.3, 0.9, blurArea));\n shade *= smoothstep(1.0, 0.9, distance(vUv.y, 0.5) * 2.0);\n fragColor = textureBicubic(map, vUv, blurred) * vec4(vec3(shade), 1.0);\n}\n",glslVersion:n.GLSL3,uniforms:{map:{value:null},wipeAmount:{value:0},wipePosition:{value:0},blurBounds:{value:new n.Vector2(0,1)}}})}get map(){return this.uniforms.map.value}set map(e){this.uniforms.map.value=e}get wipeAmount(){return this.uniforms.wipeAmount.value}set wipeAmount(e){this.uniforms.wipeAmount.value=e}get wipePosition(){return this.uniforms.wipePosition.value}set wipePosition(e){this.uniforms.wipePosition.value=e}get blurBounds(){return this.uniforms.blurBounds.value}set blurBounds(e){this.uniforms.blurBounds.value=e}}t.default=r},"QMo/ajkYoIsS74YAN6Q/":function(e,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;const{Lotus:s}=window,{THREE:n}=s;class r extends n.MeshBasicMaterial{constructor(){super({name:"FramePass"}),this.uniforms={enableFraming:{value:!0}}}onBeforeCompile(e){e.fragmentShader=e.fragmentShader.replace("#include ","\n#include \nuniform bool enableFraming;\n\n#define BORDER_RADIUS 110.0\n#define BORDER_COLOR vec3(5.0 / 255.0)\n\nfloat fill(float sdf, float aa) {\n return smoothstep(0.0, aa, -sdf);\n}\n\nfloat sdRoundedBox(in vec2 p, in vec2 b, in float r) {\n vec2 q = abs(p) - b + r;\n return min(max(q.x, q.y), 0.0) + length(max(q, 0.0)) - r;\n}\n"),e.fragmentShader=e.fragmentShader.replace("#include ","\n#ifdef USE_MAP\n vec4 sampledDiffuseColor = vec4(1.0);\n if (enableFraming) {\n vec2 uv = (vMapUv - 0.5) / 0.9 + 0.5;\n sampledDiffuseColor = texture2D( map, uv );\n vec2 imgSize = vec2(textureSize(map, 0));\n vec2 aspect = vec2(imgSize.x / imgSize.y, 1.0);\n vec2 borderUV = uv * aspect;\n float maxBounds = min(imgSize.x, imgSize.y);\n float aa = 2.0 / maxBounds;\n float corners = BORDER_RADIUS / maxBounds;\n if (imgSize.x < imgSize.y && uv.x < 0.5) corners = 0.0; // don't apply on outside-left\n vec2 center = vec2(0.5) * aspect;\n float area = sdRoundedBox(borderUV - center, center, corners);\n float mask = fill(area, aa);\n sampledDiffuseColor.rgb = mix(BORDER_COLOR, sampledDiffuseColor.rgb, mask);\n } else {\n sampledDiffuseColor = texture2D( map, vMapUv );\n }\n\n\tdiffuseColor *= sampledDiffuseColor;\n#endif\n"),this.uniforms=e.uniforms,this.uniforms.enableFraming={value:!0}}get enableFraming(){return this.uniforms.enableFraming.value}set enableFraming(e){this.uniforms.enableFraming.value=e}}t.default=r},"3tLaB6Cb935Y3Fsgxqd2":function(e,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;t.default="\nvec3 v = normalize(vLocalCameraPosition - vLocalPosition);\nvec3 worldNormal = normalize(inverseTransformDirection(normal, viewMatrix));\nvec3 n = normalize(vRotationMatrixInverse * worldNormal);\n\nvec3 vRefraction = normalize(refract(-v, n, 1.0));\nvec3 vFlat = -n;\nvec3 viewDir = normalize(mix(vRefraction, vFlat, 0.0));\n\n// planar\nvec3 la = vLocalPosition;\nvec3 lb = vLocalPosition + viewDir;\nvec4 intersectionResult = planeLineIntersection(p0, p1, p2, la, lb);\nvec3 intersectionLocation = intersectionResult.yzw;\n\nfloat planarU = dot(p0, -p1) + dot(intersectionLocation, p1);\nfloat planarV = dot(p0, -p2) + dot(intersectionLocation, p2);\n\nvec2 lookupBasis = vec2(planarU, planarV);\n// end planar\n\nvec2 emissiveMapSize = vec2(textureSize(emissiveMap, 0));\nvec2 texSize = emissiveMapSize.x > emissiveMapSize.y ? landscapeSize : portraitSize;\nfloat aspect = texSize.x / texSize.y;\nvec2 lookupUv = lookupBasis * (1.0 / scale) * vec2(1.0, aspect) * (1.0 / zoom) * vec2(0.988) + vec2(0.5 + wipeAmount * offset, 0.5);\n\nvec2 uv = mix(\n (lookupUv - 0.5) * wallpaperUvScale.x + 0.5,\n (vec2(vUv.x, 1.0 - vUv.y) - 0.5) * wallpaperUvScale + 0.5,\n enableFraming ? transitionToCameraRest : 1.0\n);\n\nuv = (uv - 0.5) / (enableFraming ? 1.12 : 1.0) + 0.5;\n\nif (!enableFraming) uv.y = 1.0 - uv.y;\n\n// Shading\nfloat distanceToWipe = distance(vUv.x, wipePosition);\nfloat wipe = mix(1.0, smoothstep(shadeBounds.y, shadeBounds.x, distanceToWipe), clamp(wipeAmount * 2.75, 0.0, 1.0) * (enableFraming ? 1.0 : 0.0));\nfloat edges = smoothstep(1.1, 1.0, uv.x) * smoothstep(-0.1, 0.0, uv.x) *\n smoothstep(1.1, 1.0, uv.y) * smoothstep(-0.1, 0.0, uv.y);\n\nfloat camera = 1.0;\n// Landscape\nif (texSize.x > texSize.y) {\n vec2 insideRes = vec2(2853.0, 2007.0);\n float radius = cameraRadius / insideRes.y;\n vec2 pos = (cameraPos / insideRes) * vec2(aspect, 1.0);\n float circle = fill(circleSDF(vUv * vec2(aspect, 1.0) - pos), radius);\n camera = mix(camera, cameraDarkness, circle);\n // Extra inner shadow on the left\n edges = mix(edges, edges * smoothstep(0.05, 0.5, uv.x), smoothstep(0.0, 0.55, wipeAmount));\n}\n\n\n// Composite\nfloat emissiveBrightness = mix(minShading, 1.0, smoothstep(0.1, 1.0, brightness) * wipe * edges * camera);\ntotalEmissiveRadiance = texture(emissiveMap, uv).rgb * emissive * emissiveBrightness;\n"},"sU7auOrFNPLtAN8l34sH":function(e,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;t.default="\nuniform float wipeAmount;\nuniform float wipePosition;\nuniform float minShading;\nuniform float offset;\nuniform float scale;\nuniform float brightness;\nuniform vec2 shadeBounds;\nuniform float zoom;\nuniform float transitionToCameraRest;\nuniform vec2 wallpaperUvScale;\nuniform bool enableFraming;\nuniform mat4 modelMatrixInverse;\nuniform float maxViewingAngle;\nvarying vec3 vLocalPosition;\nvarying vec3 vLocalCameraPosition;\nvarying mat3 vRotationMatrixInverse;\nvarying vec3 p0;\nvarying vec3 p1;\nvarying vec3 p2;\n\n#define cameraPos vec2(2035.0, 127.0)\n#define cameraRadius 83.0\n#define cameraDarkness 0.95\n#define landscapeSize vec2(2670.0, 1878.0)\n#define portraitSize vec2(1291.0, 1878.0)\n\nvec4 planeLineIntersection(vec3 P0, vec3 P01, vec3 P02, vec3 la, vec3 lb) {\n vec3 lab = lb - la;\n vec3 planeNormalUnscaled = cross(P01, P02);\n float det = -dot(lab, planeNormalUnscaled);\n\n float epsilon = 0.05;\n // was: float confidence = smoothstep(0.0, epsilon, abs(det));\n float confidence = smoothstep(0.0, epsilon, det); // sign-aware: 0 on the back side, not just near det=0\n\n float safeDet = sign(det) * max(abs(det), epsilon);\n\n float u = 1.0/safeDet * dot(cross(P02, -lab), la - P0);\n float v = 1.0/safeDet * dot(cross(-lab, P01), la - P0);\n vec3 x = P0 + P01 * u + P02 * v;\n\n return vec4(confidence, x);\n}\n\nfloat aastep(float threshold, float value) {\n float afwidth = 0.7 * length(vec2(dFdx(value), dFdy(value)));\n return smoothstep(threshold-afwidth, threshold+afwidth, value);\n}\n\nfloat circleSDF(in vec2 v) {\n return length(v) * 2.0;\n}\n\nfloat fill(float x, float size) {\n return 1.0 - aastep(size, x);\n}\n"},"flnfENULkvOqXgUIgS80":function(e,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;t.default="\n// Local-space position (skip modelMatrix)\nvLocalPosition = transformed;\n\n// Rotation-only matrix (no scale), used to rotate world-space *directions*\n// (like the normal) back into local orientation in the fragment shader.\nmat3 modelRotation = mat3( modelMatrix );\nvec3 modelScale = vec3(\n\tlength( modelRotation[0] ),\n\tlength( modelRotation[1] ),\n\tlength( modelRotation[2] )\n);\nmat3 rotationMatrix = mat3(\n\tmodelRotation[0] / modelScale.x,\n\tmodelRotation[1] / modelScale.y,\n\tmodelRotation[2] / modelScale.z\n);\nvRotationMatrixInverse = transpose( rotationMatrix ); // rotation matrices are orthonormal, so transpose == inverse\n\n// Camera position transformed into local space. cameraPosition and\n// modelMatrixInverse are both uniform, so this is constant across the\n// triangle — cheap to compute per-vertex and interpolate.\nvec3 camPos = cameraPosition; // cameraPosition\nvLocalCameraPosition = ( modelMatrixInverse * vec4( camPos, 1.0 ) ).xyz;\n\nvec3 up = vec3(0., 1., 0.);\nvec3 right = vec3(1., 0., 0.);\nvec3 forward = vec3(0., 0., 1.);\n\np0 = emissiveLocalPos;\np1 = rotateAxis(rotateAxis(rotateAxis(vec3(1., 0., 0.), right, rotation.x), up, rotation.y), forward, rotation.z);\np2 = rotateAxis(rotateAxis(rotateAxis(vec3(0., 1., 0.), right, rotation.x), up, rotation.y), forward, rotation.z);\n"},"kjH2WT2JtSgZLYUFj9jM":function(e,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.AnimationScrubberFields=t.AnimationScrubber=void 0;const{Lotus:s}=window,{Base:n}=s,{AnimationClip:r,AnimationMixer:a}=s.THREE,{makeObservable:o,observable:l}=s.MobX;class d extends n{constructor({component:e,data:t}){super(),this.script="AnimationScrubber",this.component=null,this.data=null,this.animationName="",this.progress=null,this.start=null,this.duration=null,this.animationMixer=null,this.clip=null,this.action=null,this.component=e,this.data=t,o(this,{data:l,animationMixer:l,animationName:l,action:l,progress:l,start:l,duration:l}),this.animationName=this.data.animationName,this.autorun(()=>{this.progress=this.data.progress,this.start=this.data.start,this.duration=this.data.duration}),this.reaction(()=>this.component.asset,e=>{e&&(this.animationMixer||(this.animationMixer=new a(e.scene)))}),this.autorun(()=>{this.animationMixer&&(this.clip=r.findByName(this.component.asset,this.animationName),this.action=this.animationMixer.clipAction(this.clip),this.action.paused=!0,this.action.play(),window._clip=this.clip,window._action=this.action)},{name:"set clip/action"}),this.autorun(()=>{this.action&&(this.action.time=this.start+this.progress*this.duration)},{name:"AnimationScrubber set time"}),s.Lotus.scene.eventPool.register(this)}onLoop(){this.animationMixer&&this.animationMixer.update(1/60)}destroy(){super.destroy()}}t.AnimationScrubber=d;const c=t.AnimationScrubberFields={id:{defaultValue:"",editable:!1,type:"String"},animationName:{defaultValue:"",type:"String"},start:{defaultValue:0,type:"Number"},duration:{defaultValue:1,type:"Number"},progress:{defaultValue:0,type:"Slider",min:0,max:1,step:.001}};d.fields=c,d.supports=["file"]},"OJhHH5Nrn5Av8/a7vghL":function(e,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.CameraMixerOffset=void 0;const{Lotus:s}=window,{MobX:n,CameraMixer:r}=s,{makeObservable:a,observable:o}=n;class l extends r{constructor({component:e,data:t}){super({component:e,data:t}),this.script="CameraMixerOffset",this.offset=[0,0],a(this,{offset:o}),this.autorun(()=>{this.offset[0]=this.data.offset[0],this.offset[1]=this.data.offset[1]})}onLoop(){if(super.onLoop(),this.ready){const{aspect:e}=this.camera;this.camera.setViewOffset(2*e,2,-this.offset[0]*e,this.offset[1],2*e,2)}}}t.CameraMixerOffset=l,l.fields={...r.fields,offset:{defaultValue:[0,0],type:"Vector"}}},"QEikGNFzm1WGbKgdoGe8":function(e,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.FadeThroughBlack=void 0;const{Lotus:s}=window,{Lotus:n,Base:r,MobX:a,THREE:o}=s,{makeObservable:l,observable:d}=a,{MathUtils:c}=o,{smoothstep:h}=c;class u extends r{constructor({component:e,data:t}){super(),this.script="FadeThroughBlack",this.component=e,this.data=t,this.fadeDuration=0,this.holdDuration=0,l(this,{data:d,fadeDuration:d,holdDuration:d}),this.autorun(()=>{this.fadeDuration=this.data.fadeDuration,this.holdDuration=this.data.holdDuration}),this._holdElapsed=0,this._exposureReady=!1,this._meshesReady=!1,this._initialResolved=!1,this.reaction(()=>this.component.fileReady,()=>{this.init()}),n.scene.eventPool.register(this)}async init(){await this.initFadeConfig(),this.initWeights(),this.initFadeThroughBlackTransition(),this.initMeshAdjustments()}async initFadeConfig(){this.TEXTURE_LOOKUP=await s.Assets.getAssetPromise(this.data.texturesList),this.SCREEN_TEXTURES=await this.preloadScreenTextures(this.TEXTURE_LOOKUP),this.DARK=0,this.BRIGHT=1}async preloadScreenTextures(e){delete e.needsUpdate;const t=[...new Set(Object.values(e).flat())].filter(e=>"wp"!==e),i=await Promise.all(t.map(e=>s.Assets.getAssetPromise(e)));return this.data.staticScreensFlipVertical&&i.forEach(e=>{e.offset.y=1,e.repeat.y=-1,e.needsUpdate=!0}),Object.fromEntries(t.map((e,t)=>[e,i[t]]))}initWeights(){const e=n.scene.getComponent(this.data.weights);e?(this.weightsMain=[...e.scripts.values()].find(e=>e.interpolation),this.weightsMain||console.error(`FadeThroughBlack: Couldn't find weights script on '${e.name}' (${e.id})`)):console.error("FadeThroughBlack: Couldn't find weights component.")}initFadeThroughBlackTransition(){this._exposureValue=this.BRIGHT,this._exposureFrom=this.BRIGHT,this._exposureTo=this.BRIGHT,this._exposureElapsed=0,this._exposureActive=!1,this._exposureReady=!0}setExposureTarget(e){e!==this._exposureTo&&(this._exposureFrom=this._exposureValue,this._exposureTo=e,this._exposureElapsed=0,this._exposureActive=!0)}updateExposure(e){if(!this._exposureActive)return this._exposureValue;this._exposureElapsed+=e;const t=Math.min(1,this._exposureElapsed/this.fadeDuration);return this._exposureValue=((e,t,i)=>e+(t-e)*i)(this._exposureFrom,this._exposureTo,t),t>=1&&(this._exposureActive=!1),this._exposureValue}initMeshAdjustments(){this.outsideMesh=this.component.element.getObjectByName(this.data.screenOuterMeshName),this.data.screenOuterMaterialName=this.outsideMesh.material.name,this.originalMapOutside=this.outsideMesh.material.clone(),this.originalMapOutside.emissiveMapTarget=this.outsideMesh.material.emissiveMapTarget,this.insideMesh=this.component.element.getObjectByName(this.data.screenInnerMeshName),this.data.screenInnerMaterialName=this.insideMesh.material.name,this.originalMapInside=this.insideMesh.material.clone(),this.originalMapInside.emissiveMapTarget=this.insideMesh.material.emissiveMapTarget,this.insideMesh.parent.children[29].renderOrder=1,this._meshesReady=!0}resolveTexture(){var e;const{a:t}=this.weightsMain.interpolation.interpolations,i=t.label;return null!==(e=this.TEXTURE_LOOKUP[i])&&void 0!==e?e:[null,null]}resolveTextureForKey(e,t){return"wp"===e?t.emissiveMapTarget:this.SCREEN_TEXTURES[e]}findNextTextures(e){if(!e)return null;const[t,i]=e;return[this.resolveTextureForKey(t,this.originalMapInside),this.resolveTextureForKey(i,this.originalMapOutside)]}isTextureChanging(e){const[t,i]=e;return this.insideMesh.material.emissiveMapTarget!==t||this.outsideMesh.material.emissiveMapTarget!==i}applyScreenTextures(e){const[t,i]=e,s=this.resolveTextureForKey(t,this.originalMapInside),n=this.resolveTextureForKey(i,this.originalMapOutside),r=null===t||"wp"===t;this.insideMesh.material.uniforms.enableFraming.value=r,this.outsideMesh.material.uniforms.enableFraming.value=r,s&&(this.insideMesh.material.emissiveMapTarget=s),n&&(this.outsideMesh.material.emissiveMapTarget=n)}applyVisualTransition(e){const t=this.updateExposure(e),i=Math.min(1,Math.max(0,(s=t,r=this.DARK,a=this.BRIGHT,(s-r)*(1-(o=0))/(a-r)+o)));var s,r,a,o;const l=h(i**1.3,0,.8),d=this.insideMesh.material.emissiveIntensity;this.insideMesh.material.emissiveIntensity=l,this.outsideMesh.material.emissiveIntensity=l,d!==l&&n.tryRequestAnimationFrame()}onLoop({delta:e}){if(!this._exposureReady||!this.weightsMain||!this._meshesReady)return;const t=this.resolveTexture();t!==this._lastTextureKeys&&(this._cachedNextTextures=this.findNextTextures(t),this._lastTextureKeys=t);const i=this._cachedNextTextures;if(i){if(!this._initialResolved)return this._initialResolved=!0,void this.applyScreenTextures(t);this.isTextureChanging(i)?(this.setExposureTarget(this.DARK-.01),this._exposureValue=this.holdDuration&&this.setExposureTarget(this.BRIGHT)),this.applyVisualTransition(e)}}}t.FadeThroughBlack=u,u.supports=["file"],u.fields={id:{defaultValue:"",editable:!1,type:"String"},fadeDuration:{defaultValue:.5,type:"Number"},holdDuration:{defaultValue:0,type:"Number"},screenOuterMeshName:{default:"skeleton_0_7_outerDisplayScreenTexture_geo",type:"String"},screenOuterMaterialName:{type:"String",editable:!1},screenInnerMeshName:{default:"skeleton_0_3_screenTexture_geo",type:"String"},screenInnerMaterialName:{type:"String",editable:!1},weights:{type:"Component",render:e=>"script"!==e.type,componentFilter:e=>{var t;return e&&[...null===(t=e.scripts)||void 0===t?void 0:t.values()].some(e=>{var t;return null===(t=e.interpolation)||void 0===t?void 0:t.interpolations})}},texturesList:{defaultValue:"",filter:"lsd",type:"Asset"},staticScreensFlipVertical:{defaultValue:!0,type:"Boolean"}}},"a6KkYNc7ItI2tZbDpVEF":function(e,t,i){"use strict";var s=i("TqRtNiF+JaFOr10x9fxR");Object.defineProperty(t,"__esModule",{value:!0}),t.Hinge=void 0;var n=s(i("ju1MucNkkwbyrNP8rxxT"));const{Lotus:r}=window,{Lotus:a,Base:o,MobX:l}=r,{makeObservable:d,observable:c}=l;class h extends o{constructor({component:e,data:t}){super(),this.script="Hinge",this.component=e,this.data=t,this.target=.333,this.position=.333,this.sliderProgress=.333,this.sliderPointer=!1,this.isClick=!1,this.sliderIsActive=!1,d(this,{target:c,position:c,data:c}),this.autorun(()=>{var e;this.target=null!==(e=this.data.target)&&void 0!==e?e:0}),this.hingeController=this.component.scripts.get("AnimationScrubber"),a.scene.eventPool.register(this),this.simulator=new n.default({spring:{duration:.7,bounce:0},value:this.target,magnets:[{origin:0,strength:20,radius:.08},{origin:1,strength:20,radius:.08}]}),this.autorun(()=>{this.simulator.magnets[0].strength=this.data.magnetClosedStrength,this.simulator.magnets[0].radius=this.data.magnetClosedRadius,this.simulator.magnets[1].strength=this.data.magnetOpenStrength,this.simulator.magnets[1].radius=this.data.magnetOpenRadius,this.simulator.setSpringParams(this.data.springDuration,this.data.springBounce)})}onLoop(){this.sliderIsActive?this.simulator.magnetEngaging&&this.isClick?(this.simulator.simulate(this.sliderProgress,!1),this.isClick=!1,this.sliderPointer=!1):this.simulator.simulate(this.sliderProgress,this.sliderPointer):this.simulator.simulate(this.target,!0),this.hingeController.progress=this.simulator.currentState.position,this.position=this.simulator.currentState.position}}t.Hinge=h,h.supports=["file"],h.fields={id:{defaultValue:"",editable:!1,type:"String"},target:{defaultValue:0,type:"Number"},springDuration:{defaultValue:.4,type:"Slider",min:0,max:1},springBounce:{defaultValue:.4,type:"Slider",min:-.5,max:1},magnetClosedStrength:{defaultValue:.8,type:"Number"},magnetClosedRadius:{defaultValue:.08,type:"Number"},magnetOpenStrength:{defaultValue:.8,type:"Number"},magnetOpenRadius:{defaultValue:.08,type:"Number"}}},"ju1MucNkkwbyrNP8rxxT":function(e,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var s=i("4DQdGmPNEbR9KnzLFdFX");class n extends s.EventEmitterMicro{constructor(e){super(),this.RAF=(0,s.create)(),this.options=e,this.pointerDown=null,this.spring={},this.bounds=[],this.magnets=null,this.detentInput=document.querySelector(".control-detent-slider--input"),this.sliderAria=JSON.parse(this.detentInput.dataset.sliderAria),this.GLOBAL_THRESHOLD=1e-5,this.mounted()}setSpringParams(e,t){this.spring.mass=1,this.spring.stiffness=(2*Math.PI/e)**2,this.spring.damping=(1-t)*(4*Math.PI)/e}mounted(){this.setSpringParams(this.options.spring.duration,this.options.spring.bounce),this.initialValue=this.options.value,this.magnets=this.options.magnets,this.bounds=this.options.bounds,this.magnetEngaged=null,this.magnetEngaging=null,this.magnetDisengaging=null,this.maxMagnetStrength=0,this.magnets.forEach(e=>{parseFloat(e.strength)>this.maxMagnetStrength&&(this.maxMagnetStrength=parseFloat(e.strength))}),this._initEnhanced()}reset(e){this.currentState.position=this.currentState.target=e,this.currentState.stretchPosition=this.currentState.stretchTarget=e,this.currentState.velocity=this.currentState.stretchVelocity=0,this.previousState=JSON.parse(JSON.stringify(this.currentState)),this.renderState=JSON.parse(JSON.stringify(this.currentState)),this.magnetEngaging=this.magnetEngaged=this.magnetDisengaging=null,this.pointerDown=!1,this.RAF.run()}simulate(e,t){null!==this.magnetEngaging&&null!==this.magnetEngaged||(this.currentState.target=e),this.currentState.stretchTarget=e,this.pointerDown=t,this.pointerDown||(this.magnetEngaging&&(this.currentState.target=this.currentState.stretchTarget=this.magnetEngaging.origin),this.magnetEngaged&&(this.currentState.target=this.currentState.stretchTarget=this.magnetEngaged.origin)),this.RAF.run()}destroy(){return this.RAF.destroy(),this.RAF=null,this.options=null,this.pointerDown=null,this.spring=null,this.bounds=null,this.magnets=null,this.updateCallback=null,this.frameTime=null,this.frameTimeTarget=null,this.frameTimeAccumulator=null,super.destroy(),null}_initEnhanced(){this.frameTimeTarget=1/60,this.frameTimeAccumulator=0,this.fpsThen=performance.now(),this.currentState={position:this.initialValue,target:this.initialValue,velocity:0,stretchPosition:this.initialValue,stretchTarget:this.initialValue,stretchVelocity:0},this.previousState=JSON.parse(JSON.stringify(this.currentState)),this.renderState=JSON.parse(JSON.stringify(this.currentState)),this._onUpdate=this._onUpdate.bind(this),this._onDraw=this._onDraw.bind(this),this.RAF.on("update",this._onUpdate),this.RAF.on("draw",this._onDraw)}_inRadius(e,t){return"position"===t?Math.abs(this.renderState.position-e.origin)<=e.radius:"stretch"===t&&Math.abs(this.renderState.stretchPosition-e.origin)<=e.radius}_targetInRadius(e,t){return("position"===t||"stretch"===t)&&Math.abs(this.currentState.target-e.origin)<=e.radius}_isAttached(e){return Math.sign(this.currentState.position-e.origin)!==this.attractionDirection||this.currentState.position===e.origin}_isNear(e,t){let i=!1,s=!1;return"position"===t?(i=Math.abs(this.currentState.position-this.currentState.target)=1-this.magnets[1].radius?this.sliderAria[1]:this.sliderAria.default,this.trigger("simulationUpdate",{position:this.currentState.position,stretchPosition:this.currentState.stretchPosition,stretchMax:this.maxMagnetStrength,aria:t}),e||this.RAF.run()}_onUpdate(){this.fpsNow=performance.now();const e=.001*(this.fpsNow-this.fpsThen);for(this.fpsThen=this.fpsNow,this.frameTime=Math.min(1/30,e),this.frameTimeAccumulator+=this.frameTime;this.frameTimeAccumulator>=this.frameTimeTarget;){if(this.previousState.position=this.currentState.position,this.previousState.velocity=this.currentState.velocity,this.previousState.stretchPosition=this.currentState.stretchPosition,this.previousState.stretchVelocity=this.currentState.stretchVelocity,null!==this.magnetEngaging&&null===this.magnetEngaged&&null===this.magnetDisengaging){if(this.pointerDown||(this.currentState.target=this.currentState.stretchTarget=this.magnetEngaging.origin),this._isAttached(this.magnetEngaging))this.currentState.position=this.previousState.position=this.renderState.position=this.magnetEngaging.origin,this.currentState.velocity=this.previousState.velocity=this.renderState.velocity=0;else{const{newPosition:e,newVelocity:t}=this._magnet(this.magnetEngaging.strength,this.magnetEngaging.radius,this.currentState.position,Math.abs(this.currentState.velocity)*-this.attractionDirection,this.magnetEngaging.origin);this.currentState.velocity=t,this.currentState.position=e}if(this._isNear(this.GLOBAL_THRESHOLD,"stretch"))this.currentState.stretchPosition=this.previousState.stretchPosition=this.renderState.stretchPosition=this.currentState.stretchTarget,this.currentState.stretchVelocity=this.previousState.stretchVelocity=this.renderState.stretchVelocity=0;else{const{newPosition:e,newVelocity:t}=this._spring(this.spring.mass,this.spring.stiffness,this.spring.damping,this.currentState.stretchPosition,this.currentState.stretchVelocity,this.currentState.stretchTarget);this.currentState.stretchVelocity=t,this.currentState.stretchPosition=e}}else if(null===this.magnetEngaging&&null===this.magnetEngaged&&null===this.magnetDisengaging){if(this._isNear(this.GLOBAL_THRESHOLD,"position"))this.currentState.position=this.previousState.position=this.renderState.position=this.currentState.target,this.currentState.velocity=this.previousState.velocity=this.renderState.velocity=0;else{const{newPosition:e,newVelocity:t}=this._spring(this.spring.mass,this.spring.stiffness,this.spring.damping,this.currentState.position,this.currentState.velocity,this.currentState.target);this.currentState.velocity=t,this.currentState.position=e}if(this._isNear(this.GLOBAL_THRESHOLD,"stretch"))this.currentState.stretchPosition=this.previousState.stretchPosition=this.renderState.stretchPosition=this.currentState.stretchTarget,this.currentState.stretchVelocity=this.previousState.stretchVelocity=this.renderState.stretchVelocity=0;else{const{newPosition:e,newVelocity:t}=this._spring(this.spring.mass,this.spring.stiffness,this.spring.damping,this.currentState.stretchPosition,this.currentState.stretchVelocity,this.currentState.stretchTarget);this.currentState.stretchVelocity=t,this.currentState.stretchPosition=e}for(let e=0;e=0;i--)void 0!==t?this._events[e][i](t):this._events[e][i]()},n.has=function(e){return e in this._events!=!1&&0!==this._events[e].length},n.destroy=function(){for(let e in this._events)this._events[e]=null;this._events=null},e.exports=s},"b6RiMODc4pMsj5JA4KeA":function(e,t,i){"use strict";Object.defineProperty(t,Symbol.toStringTag,{value:"Module"});var s="undefined"!=typeof window?window:{},n="SharedInstance",r=s.AC,a=function(){var e={};return{get:function(t,i){var s=null;return e[t]&&e[t][i]&&(s=e[t][i]),s},set:function(t,i,s){return e[t]||(e[t]={}),e[t][i]="function"==typeof s?new s:s,e[t][i]},share:function(e,t,i){var s=this.get(e,t);return s||(s=this.set(e,t,i)),s},remove:function(t,i){var s=typeof i;if("string"!==s&&"number"!==s)e[t]&&(e[t]=null);else{if(!e[t]||!e[t][i])return;e[t][i]=null}}}}();r||(r=s.AC={}),r[n]||(r[n]=a);var o={SharedInstance:r[n]};const l=e=>`${e[0].toUpperCase()+e.slice(1)}`,d=["before:update","update","after:update","before:draw","draw","after:draw"],c=(e,t,i)=>{let s=l(i);[`before${s}`,i,`after${s}`].forEach(e=>{const i=e.replace(/[A-Z]/,e=>`:${e[0].toLowerCase()}`);t[e]=e=>t.once(i,e,!0),t[`next${l(e)}`]=e=>{let s=0,n=()=>{if(1===s++)return e(),t.off(i,n);t.run()};return t.on(i,n,!0)},t[`cancel${l(e)}`]=t[`cancelNext${l(e)}`]=e=>t.off(i,e)})};let h=null;class u{constructor(){this.scheduled=!1,this.e={},h||(h=this,this.raf="undefined"!=typeof window?window.requestAnimationFrame.bind(window):()=>{},this.emitters=new Set([this]),this._setExec(this),this.cancel=this.destroy=()=>{},this.create=()=>(new u)._setExec(this),this.perform=()=>{this.scheduled=!1;let e=this.emitters;this.emitters=new Set([this]),d.forEach(t=>{e.forEach(e=>{t===d[0]&&(e.scheduled=!1),e.trigger(t)})})},this.schedule=e=>{this.emitters.add(e),this.scheduled||(this.scheduled=!0,this.raf(this.perform))})}_setExec(e){return this.exec=e,c(this.exec,this,"update"),c(this.exec,this,"draw"),this}run(){this.scheduled||(this.exec.schedule(this),this.scheduled=!0)}destroy(){this.cancel(),Object.freeze(this.e={})}cancel(){this.scheduled=!1,this.exec.emitters.delete(this)}on(e,t,i){return i&&this.run(),this.e[e]=this.e[e]||[],this.e[e].push(t),t}once(e,t,i){const s=()=>{this.off(e,s),t()};return this.on(e,s,i)}has(e){return e in this.e&&0!==this.e[e].length}off(e,t){if(!this.has(e))return;if(!t)return void delete this.e[e];const i=this.e[e].indexOf(t);-1!==i&&this.e[e].splice(i,1)}trigger(e){this.has(e)&&this.e[e].slice().forEach(t=>{this.e[e].includes(t)&&t()})}}const p=o.SharedInstance.share("RAFEmitter","2.x",new u),m=p.create,f=p.beforeUpdate,g=p.update,v=p.afterUpdate,_=p.beforeDraw,E=p.draw,y=p.afterDraw,A=p.nextBeforeUpdate,b=p.nextUpdate,C=p.nextAfterUpdate,T=p.nextBeforeDraw,S=p.nextDraw,w=p.nextAfterDraw,x=p.cancelBeforeUpdate,I=p.cancelUpdate,P=p.cancelAfterUpdate,M=p.cancelBeforeDraw,O=p.cancelDraw,R=p.cancelAfterDraw,L=p.cancelNextBeforeUpdate,N=p.cancelNextUpdate,D=p.cancelNextAfterUpdate,k=p.cancelNextBeforeDraw,F=p.cancelNextDraw,V=p.cancelNextAfterDraw;t.afterDraw=y,t.afterUpdate=v,t.beforeDraw=_,t.beforeUpdate=f,t.cancelAfterDraw=R,t.cancelAfterUpdate=P,t.cancelBeforeDraw=M,t.cancelBeforeUpdate=x,t.cancelDraw=O,t.cancelNextAfterDraw=V,t.cancelNextAfterUpdate=D,t.cancelNextBeforeDraw=k,t.cancelNextBeforeUpdate=L,t.cancelNextDraw=F,t.cancelNextUpdate=N,t.cancelUpdate=I,t.create=m,t.draw=E,t.nextAfterDraw=w,t.nextAfterUpdate=C,t.nextBeforeDraw=T,t.nextBeforeUpdate=A,t.nextDraw=S,t.nextUpdate=b,t.rafEmitter=p,t.update=g},"Xci3QsCa8MxXYXf24Gwn":function(e,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.StencilMasking=void 0;var s=i("4GzP9fp+/F8MN42fa749");const{Lotus:n}=window,{Lotus:r,Base:a,MobX:o}=n,{makeObservable:l,observable:d}=o;class c extends a{constructor({component:e,data:t}){super(),this.script="StencilMasking",this.data=t,this.component=e,this.ready=!1,l(this,{ready:d}),this.reaction(()=>this.component.fileReady,()=>{this.init()})}async init(){const e=await n.Assets.getAssetPromise(this.data.maskConfiguration);this.createMasks(e),this.ready=!0}createMasks(e){if(null==e||!e.length)return;const t=r.scene;if(!t.renderer.stencil)throw new Error("Stencil rendering not enabled for this scene. Enable in scene configuration.");e.forEach(({targets:e,footprints:i,blockers:n},r)=>{(0,s.setupMasks)(t,e,i,null!=n?n:[],r)})}}t.StencilMasking=c,c.supports=["file"],c.fields={id:{defaultValue:"",editable:!1,type:"String"},maskConfiguration:{type:"Asset",filter:"lsd"}}},"4GzP9fp+/F8MN42fa749":function(e,t,i){"use strict";function s(e,t){let i;return e.traverse(e=>{var s;(null===(s=e.userData)||void 0===s?void 0:s.uuid)===t&&(i=e)}),i}function n(e,t=[],i=[],s=0){const n=e.material;n.stencilWrite=!0,n.stencilFunc=Lotus.THREE.AlwaysStencilFunc,n.stencilFail=Lotus.THREE.KeepStencilOp,n.stencilZFail=Lotus.THREE.KeepStencilOp,n.stencilZPass=Lotus.THREE.KeepStencilOp,n.stencilFuncMask=1<{var i,n;return null!==(i=null!==(n=s(e,t))&&void 0!==n?n:e.getComponentByName(t))&&void 0!==i?i:t}),c=i.map(t=>{var i,n;return null!==(i=null!==(n=s(e,t))&&void 0!==n?n:e.getComponentByName(t))&&void 0!==i?i:t}),h=o.map(t=>{var i,n;return null!==(i=null!==(n=s(e,t))&&void 0!==n?n:e.getComponentByName(t))&&void 0!==i?i:t});if(0===t.length||0===i.length)throw new Error("Mask initialized with no targets or footprints.");const u=[c,h,d].flatMap(e=>e.filter(e=>"string"==typeof e));if(u.length>0)return void console.warn(`Mask missing meshes: ${u.join(", ")} (for ${t.join(",")}).`);d.forEach(e=>n(e,c,h,l)),c.forEach(e=>r(e,l)),h.forEach(e=>a(e,l)),e.onBeforeRender=function(e,t,i){d.forEach(e=>{const t=e.material;t.colorWrite=!1,t.depthTest=!0,t.polygonOffset=!1,t.polygonOffsetUnits=0,t.stencilFunc=Lotus.THREE.AlwaysStencilFunc})},e.onAfterRender=function(e,t,i){d.forEach(t=>{const s=t.material;s.colorWrite=!0,s.depthTest=!0,s.polygonOffset=!0,s.polygonOffsetUnits=-1e6,s.stencilFunc=Lotus.THREE.EqualStencilFunc,e.render(t,i)})}}}};const cache={};function require(id){if(cache[id])return cache[id].exports;const module=cache[id]={i:id,l:false,exports:{}};if(!modules[id])throw new Error('Missing graphics module '+id);modules[id].call(module.exports,module,module.exports,require);module.l=true;return module.exports;}require.d=(object,name,getter)=>{if(!Object.prototype.hasOwnProperty.call(object,name))Object.defineProperty(object,name,{enumerable:true,get:getter});};require.r=object=>{Object.defineProperty(object,'__esModule',{value:true});};require.n=module=>{const getter=module&&module.__esModule?()=>module.default:()=>module;require.d(getter,'a',getter);return getter;};require.o=(o,k)=>Object.prototype.hasOwnProperty.call(o,k);require.p='';const Lotus=require('YEMv/39/pw6MbIjSlRSe');window.Lotus=Lotus;window.LinkShellDuoGraphics={Lotus,chunks:{DetailChunk:require('rPr0FRAY05W5smljnBUZ').DetailChunk,Wipe:require('3KWH7xpHANxtsy7reUMs').Wipe},scripts:{AnimationScrubber:require('kjH2WT2JtSgZLYUFj9jM').AnimationScrubber,CameraMixerOffset:require('OJhHH5Nrn5Av8/a7vghL').CameraMixerOffset,FadeThroughBlack:require('QEikGNFzm1WGbKgdoGe8').FadeThroughBlack,Hinge:require('a6KkYNc7ItI2tZbDpVEF').Hinge,StencilMasking:require('Xci3QsCa8MxXYXf24Gwn').StencilMasking}};})();